]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Add InsertOnNewline argument tag
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 575
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 utf8
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 \use_lineno 0
106 \lineno_options 
107 \notefontcolor #0000ff
108 \branch OutDated
109 \selected 0
110 \filename_suffix 0
111 \color #f5fae7
112 \end_branch
113 \index Index
114 \shortcut idx
115 \color #008000
116 \end_index
117 \secnumdepth 3
118 \tocdepth 3
119 \paragraph_separation indent
120 \paragraph_indentation default
121 \is_math_indent 1
122 \math_indentation default
123 \math_numbering_side default
124 \quotes_style english
125 \dynamic_quotes 0
126 \papercolumns 1
127 \papersides 2
128 \paperpagestyle headings
129 \tablestyle default
130 \tracking_changes true
131 \output_changes false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict true
135 \author -712698321 "Jürgen Spitzmüller"
136 \author -495245474 "Jean-Marc Lasgouttes"
137 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
138 \end_header
139
140 \begin_body
141
142 \begin_layout Title
143 Customizing \SpecialChar LyX
144 : Features for the Advanced User
145 \end_layout
146
147 \begin_layout Author
148 by the \SpecialChar LyX
149  Team
150 \begin_inset Foot
151 status collapsed
152
153 \begin_layout Plain Layout
154 \noindent
155 If you have comments or error corrections, please send them to the \SpecialChar LyX
156  Documentatio
157 n mailing list, 
158 \begin_inset CommandInset href
159 LatexCommand href
160 target "lyx-docs@lists.lyx.org"
161 type "mailto:"
162 literal "false"
163
164 \end_inset
165
166 .
167  Include 
168 \begin_inset Quotes eld
169 \end_inset
170
171 [Customization]
172 \begin_inset Quotes erd
173 \end_inset
174
175  in the subject header, and please cc the current maintainer of this file,
176  Richard Heck <rgheck@comcast.net>.
177 \end_layout
178
179 \end_inset
180
181
182 \begin_inset Newline newline
183 \end_inset
184
185
186 \begin_inset Newline newline
187 \end_inset
188
189 Version 2.3.x 
190 \end_layout
191
192 \begin_layout Standard
193 \begin_inset CommandInset toc
194 LatexCommand tableofcontents
195
196 \end_inset
197
198
199 \end_layout
200
201 \begin_layout Standard
202 \begin_inset Note Note
203 status open
204
205 \begin_layout Plain Layout
206 Please use change tracking when modifying this document.
207  This makes it easier for our translators to recognize things that have
208  been changed, and it helps the maintainer keep up-to-date with what's been
209  done.
210 \end_layout
211
212 \end_inset
213
214
215 \end_layout
216
217 \begin_layout Chapter
218 Introduction
219 \end_layout
220
221 \begin_layout Standard
222 This manual covers the customization features present in \SpecialChar LyX
223 .
224  In it, we discuss issues like keyboard shortcuts, screen previewing options,
225  printer options, sending commands to \SpecialChar LyX
226  via the \SpecialChar LyX
227  Server, internationalization,
228  installing new \SpecialChar LaTeX
229  classes and \SpecialChar LyX
230  layouts, etc.
231  We can't possibly hope to touch on everything you can change—our developers
232  add new features faster than we can document them—but we will explain the
233  most common customizations and hopefully point you in the right direction
234  for some of the more obscure ones.
235 \end_layout
236
237 \begin_layout Standard
238 \begin_inset Branch OutDated
239 inverted 0
240 status collapsed
241
242 \begin_layout Standard
243 Information from previous versions of this document that now seems to be
244  outdated is contained in the OutDated branch of this document.
245  By default, this information will not appear in the \SpecialChar LaTeX
246  output.
247 \end_layout
248
249 \end_inset
250
251
252 \end_layout
253
254 \begin_layout Chapter
255 \SpecialChar LyX
256  configuration files
257 \end_layout
258
259 \begin_layout Standard
260 This chapter aims to help you to find your way through the \SpecialChar LyX
261  configuration
262  files.
263  Before continuing to read this chapter, you should find out where your
264  \SpecialChar LyX
265  library and user directories are by using 
266 \begin_inset Flex Noun
267 status collapsed
268
269 \begin_layout Plain Layout
270 Help\SpecialChar menuseparator
271 About
272 \begin_inset space ~
273 \end_inset
274
275 LyX
276 \end_layout
277
278 \end_inset
279
280 .
281  The library directory is the place where \SpecialChar LyX
282  places its system-wide configuration
283  files; the user directory is where you can place your modified versions.
284  We will call the former 
285 \begin_inset Flex Code
286 status collapsed
287
288 \begin_layout Plain Layout
289 LyXDir
290 \end_layout
291
292 \end_inset
293
294  and the latter 
295 \begin_inset Flex Noun
296 status collapsed
297
298 \begin_layout Plain Layout
299 UserDir
300 \end_layout
301
302 \end_inset
303
304  in the remainder of this document.
305  
306 \end_layout
307
308 \begin_layout Section
309 What's in 
310 \begin_inset Flex Code
311 status collapsed
312
313 \begin_layout Plain Layout
314 LyXDir
315 \end_layout
316
317 \end_inset
318
319 ?
320 \end_layout
321
322 \begin_layout Standard
323 \begin_inset Flex Code
324 status collapsed
325
326 \begin_layout Plain Layout
327 LyXDir
328 \end_layout
329
330 \end_inset
331
332  and its sub-directories contain a number of files and that can be used
333  to customize \SpecialChar LyX
334 's behavior.
335  You can change many of these files from within \SpecialChar LyX
336  itself through the 
337 \begin_inset Flex Noun
338 status collapsed
339
340 \begin_layout Plain Layout
341 Tools\SpecialChar menuseparator
342 Preferences
343 \end_layout
344
345 \end_inset
346
347  dialog.
348  Most customization that you will want to do in \SpecialChar LyX
349  is possible through this
350  dialog.
351  However, many other inner aspects of \SpecialChar LyX
352  can be customized by modifying the
353  files in 
354 \begin_inset Flex Code
355 status collapsed
356
357 \begin_layout Plain Layout
358 LyXDir
359 \end_layout
360
361 \end_inset
362
363 .
364  These files fall in different categories, described in the following subsection
365 s.
366 \end_layout
367
368 \begin_layout Subsection
369 Automatically generated files
370 \end_layout
371
372 \begin_layout Standard
373 The files, which are to be found in 
374 \begin_inset Flex Noun
375 status collapsed
376
377 \begin_layout Plain Layout
378 UserDir
379 \end_layout
380
381 \end_inset
382
383 , are generated when you configure \SpecialChar LyX
384 .
385  They contain various default values that are guessed by inspection.
386  In general, it is not a good idea to modify them, since they might be overwritt
387 en at any time.
388 \end_layout
389
390 \begin_layout Labeling
391 \labelwidthstring 00.00.0000
392 \begin_inset Flex Code
393 status collapsed
394
395 \begin_layout Plain Layout
396 lyxrc.defaults
397 \end_layout
398
399 \end_inset
400
401  contains defaults for various commands.
402 \end_layout
403
404 \begin_layout Labeling
405 \labelwidthstring 00.00.0000
406 \begin_inset Flex Code
407 status collapsed
408
409 \begin_layout Plain Layout
410 packages.lst
411 \end_layout
412
413 \end_inset
414
415  contains the list of packages that have been recognized by \SpecialChar LyX
416 .
417  It is currently unused by the \SpecialChar LyX
418  program itself, but the information extracted,
419  and more, is made available with 
420 \begin_inset Flex Noun
421 status collapsed
422
423 \begin_layout Plain Layout
424 Help\SpecialChar menuseparator
425 \SpecialChar LaTeX
426
427 \begin_inset space ~
428 \end_inset
429
430 Configuration
431 \end_layout
432
433 \end_inset
434
435 .
436 \end_layout
437
438 \begin_layout Labeling
439 \labelwidthstring 00.00.0000
440 \begin_inset Flex Code
441 status collapsed
442
443 \begin_layout Plain Layout
444 textclass.lst
445 \end_layout
446
447 \end_inset
448
449  the list of text classes that have been found in your 
450 \begin_inset Flex Code
451 status collapsed
452
453 \begin_layout Plain Layout
454 layout/
455 \end_layout
456
457 \end_inset
458
459  directories, along with the associated \SpecialChar LaTeX
460  document class and their description.
461 \end_layout
462
463 \begin_layout Labeling
464 \labelwidthstring 00.00.0000
465 \begin_inset Flex Code
466 status collapsed
467
468 \begin_layout Plain Layout
469 lyxmodules.lst
470 \end_layout
471
472 \end_inset
473
474  the list of layout modules found in your 
475 \begin_inset Flex Code
476 status collapsed
477
478 \begin_layout Plain Layout
479 layout/
480 \end_layout
481
482 \end_inset
483
484  directories
485 \end_layout
486
487 \begin_layout Labeling
488 \labelwidthstring 00.00.0000
489 \begin_inset Flex Code
490 status collapsed
491
492 \begin_layout Plain Layout
493 *files.lst
494 \end_layout
495
496 \end_inset
497
498  lists of various sorts of \SpecialChar LaTeX
499 -related files found on your system
500 \end_layout
501
502 \begin_layout Labeling
503 \labelwidthstring 00.00.0000
504 \begin_inset Flex Code
505 status collapsed
506
507 \begin_layout Plain Layout
508 doc/\SpecialChar LaTeX
509 Config.lyx
510 \end_layout
511
512 \end_inset
513
514  is automatically generated during configuration from the file 
515 \begin_inset Flex Code
516 status collapsed
517
518 \begin_layout Plain Layout
519 \SpecialChar LaTeX
520 Config.lyx.in
521 \end_layout
522
523 \end_inset
524
525 .
526  It contains information on your \SpecialChar LaTeX
527  configuration.
528 \end_layout
529
530 \begin_layout Subsection
531 Directories
532 \end_layout
533
534 \begin_layout Standard
535 These directories are duplicated between 
536 \begin_inset Flex Code
537 status collapsed
538
539 \begin_layout Plain Layout
540 LyXDir
541 \end_layout
542
543 \end_inset
544
545  and 
546 \begin_inset Flex Code
547 status collapsed
548
549 \begin_layout Plain Layout
550 UserDir
551 \end_layout
552
553 \end_inset
554
555 .
556  If a particular files exists in both places, the one in 
557 \begin_inset Flex Code
558 status collapsed
559
560 \begin_layout Plain Layout
561 UserDir
562 \end_layout
563
564 \end_inset
565
566  will be used.
567 \end_layout
568
569 \begin_layout Labeling
570 \labelwidthstring 00.00.0000
571 \begin_inset Flex Code
572 status collapsed
573
574 \begin_layout Plain Layout
575 bind/
576 \end_layout
577
578 \end_inset
579
580  this directory contains files with the extension 
581 \begin_inset Flex Code
582 status collapsed
583
584 \begin_layout Plain Layout
585 .bind
586 \end_layout
587
588 \end_inset
589
590  that define the keybindings used in \SpecialChar LyX
591 .
592  If there exists an internationalized version of the bind file named 
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 $LANG_xxx.bind
598 \end_layout
599
600 \end_inset
601
602 , that will be used first.
603 \end_layout
604
605 \begin_layout Labeling
606 \labelwidthstring 00.00.0000
607 \begin_inset Flex Code
608 status collapsed
609
610 \begin_layout Plain Layout
611 citeengines/
612 \end_layout
613
614 \end_inset
615
616  contains files with the extension 
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621 .citeengine
622 \end_layout
623
624 \end_inset
625
626  which define the diverse citation possibilities (natbib, biblatex etc.).
627  See 
628 \begin_inset CommandInset ref
629 LatexCommand ref
630 reference "subsec:Cite-Engine-Files"
631 plural "false"
632 caps "false"
633 noprefix "false"
634
635 \end_inset
636
637  for details.
638 \end_layout
639
640 \begin_layout Labeling
641 \labelwidthstring 00.00.0000
642 \begin_inset Flex Code
643 status collapsed
644
645 \begin_layout Plain Layout
646 clipart/
647 \end_layout
648
649 \end_inset
650
651  contains graphics files that can be included in documents.
652  
653 \end_layout
654
655 \begin_layout Labeling
656 \labelwidthstring 00.00.0000
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661 doc/
662 \end_layout
663
664 \end_inset
665
666  contains \SpecialChar LyX
667  documentation files (including the one you are currently reading).
668  The file 
669 \begin_inset Flex Code
670 status collapsed
671
672 \begin_layout Plain Layout
673 \SpecialChar LaTeX
674 Config.lyx
675 \end_layout
676
677 \end_inset
678
679  deserves special attention, as noted above.
680  The internationalized help docs are in subdirectories 
681 \begin_inset Flex Code
682 status collapsed
683
684 \begin_layout Plain Layout
685 doc/xx
686 \end_layout
687
688 \end_inset
689
690  where 
691 \begin_inset Quotes eld
692 \end_inset
693
694 xx
695 \begin_inset Quotes erd
696 \end_inset
697
698  is the ISO language code.
699  See 
700 \begin_inset CommandInset ref
701 LatexCommand ref
702 reference "cha:Internationalizing-LyX"
703
704 \end_inset
705
706  for details.
707 \end_layout
708
709 \begin_layout Labeling
710 \labelwidthstring 00.00.0000
711 \begin_inset Flex Code
712 status collapsed
713
714 \begin_layout Plain Layout
715 examples/
716 \end_layout
717
718 \end_inset
719
720  contains example files that explain how to use some features.
721  In the file browser, press the 
722 \begin_inset Flex Noun
723 status collapsed
724
725 \begin_layout Plain Layout
726 Examples
727 \end_layout
728
729 \end_inset
730
731  button to get there.
732 \end_layout
733
734 \begin_layout Labeling
735 \labelwidthstring 00.00.0000
736 \begin_inset Flex Code
737 status collapsed
738
739 \begin_layout Plain Layout
740 images/
741 \end_layout
742
743 \end_inset
744
745  contains image files that are used by the 
746 \begin_inset Flex Noun
747 status collapsed
748
749 \begin_layout Plain Layout
750 Document
751 \end_layout
752
753 \end_inset
754
755  dialog.
756  In addition, it also contains the individual icons used in the toolbar
757  and the banners that can be shown when \SpecialChar LyX
758  is launched.
759 \end_layout
760
761 \begin_layout Labeling
762 \labelwidthstring 00.00.0000
763 \begin_inset Flex Code
764 status collapsed
765
766 \begin_layout Plain Layout
767 kbd/
768 \end_layout
769
770 \end_inset
771
772  contains keyboard keymapping files.
773  See 
774 \begin_inset CommandInset ref
775 LatexCommand ref
776 reference "sec:International-Keymap-Stuff"
777
778 \end_inset
779
780  for details.
781 \end_layout
782
783 \begin_layout Labeling
784 \labelwidthstring 00.00.0000
785 \begin_inset Flex Code
786 status collapsed
787
788 \begin_layout Plain Layout
789 layouts/
790 \end_layout
791
792 \end_inset
793
794  contains the text class and module files described in 
795 \begin_inset CommandInset ref
796 LatexCommand ref
797 reference "cha:Installing-New-Document"
798
799 \end_inset
800
801 .
802 \end_layout
803
804 \begin_layout Labeling
805 \labelwidthstring 00.00.0000
806 \begin_inset Flex Code
807 status collapsed
808
809 \begin_layout Plain Layout
810 lyx2lyx
811 \end_layout
812
813 \end_inset
814
815  contains the 
816 \begin_inset Flex Code
817 status collapsed
818
819 \begin_layout Plain Layout
820 lyx2lyx
821 \end_layout
822
823 \end_inset
824
825  Python scripts used to convert between \SpecialChar LyX
826  versions.
827  These can be run from the command line if, say, you want to batch-convert
828  files.
829 \end_layout
830
831 \begin_layout Labeling
832 \labelwidthstring 00.00.0000
833 \begin_inset Flex Code
834 status collapsed
835
836 \begin_layout Plain Layout
837 scripts/
838 \end_layout
839
840 \end_inset
841
842  contains some files that demonstrate the capabilities of the 
843 \begin_inset Flex Noun
844 status collapsed
845
846 \begin_layout Plain Layout
847 External
848 \begin_inset space ~
849 \end_inset
850
851 Template
852 \end_layout
853
854 \end_inset
855
856  feature.
857  Also contains some scripts used by \SpecialChar LyX
858  itself.
859 \end_layout
860
861 \begin_layout Labeling
862 \labelwidthstring 00.00.0000
863 \begin_inset Flex Code
864 status collapsed
865
866 \begin_layout Plain Layout
867 templates/
868 \end_layout
869
870 \end_inset
871
872  contains the standard \SpecialChar LyX
873  template files described in 
874 \begin_inset CommandInset ref
875 LatexCommand ref
876 reference "subsec:Creating-Templates"
877
878 \end_inset
879
880 .
881 \end_layout
882
883 \begin_layout Labeling
884 \labelwidthstring 00.00.0000
885 \begin_inset Flex Code
886 status collapsed
887
888 \begin_layout Plain Layout
889 ui/
890 \end_layout
891
892 \end_inset
893
894  contains files with the extension 
895 \begin_inset Flex Code
896 status collapsed
897
898 \begin_layout Plain Layout
899 .ui
900 \end_layout
901
902 \end_inset
903
904  that define the user interface to \SpecialChar LyX
905 .
906  That is, the files define which items appear in which menus and the items
907  appearing on the toolbar.
908 \end_layout
909
910 \begin_layout Labeling
911 \labelwidthstring 00.00.0000
912 \begin_inset Flex Code
913 status collapsed
914
915 \begin_layout Plain Layout
916 xtemplates/
917 \end_layout
918
919 \end_inset
920
921  contains files with the extension 
922 \begin_inset Flex Code
923 status collapsed
924
925 \begin_layout Plain Layout
926 .xtemplate
927 \end_layout
928
929 \end_inset
930
931  which define the templates for the insertion of external material to a
932  \SpecialChar LyX
933  document; see 
934 \begin_inset CommandInset ref
935 LatexCommand ref
936 reference "chap:Including-External-Material"
937
938 \end_inset
939
940 .
941 \end_layout
942
943 \begin_layout Subsection
944 Files you don't want to modify
945 \end_layout
946
947 \begin_layout Standard
948 These files are used internally by \SpecialChar LyX
949  and you generally do not need to modify
950  them unless you are a developer.
951 \end_layout
952
953 \begin_layout Labeling
954 \labelwidthstring 00.00.0000
955 \begin_inset Flex Code
956 status collapsed
957
958 \begin_layout Plain Layout
959 CREDITS
960 \end_layout
961
962 \end_inset
963
964  this file contains the list of \SpecialChar LyX
965  developers.
966  The contents are displayed with the menu entry 
967 \begin_inset Flex Noun
968 status collapsed
969
970 \begin_layout Plain Layout
971 Help\SpecialChar menuseparator
972 About
973 \begin_inset space ~
974 \end_inset
975
976 LyX
977 \end_layout
978
979 \end_inset
980
981 .
982 \end_layout
983
984 \begin_layout Labeling
985 \labelwidthstring 00.00.0000
986 \begin_inset Flex Code
987 status collapsed
988
989 \begin_layout Plain Layout
990 chkconfig.ltx
991 \end_layout
992
993 \end_inset
994
995  this is a \SpecialChar LaTeX
996  script used during the configuration process.
997  Do not run directly.
998 \end_layout
999
1000 \begin_layout Labeling
1001 \labelwidthstring 00.00.0000
1002 \begin_inset Flex Code
1003 status collapsed
1004
1005 \begin_layout Plain Layout
1006 configure.py
1007 \end_layout
1008
1009 \end_inset
1010
1011  this is a Python script that is used to re-configure \SpecialChar LyX
1012 .
1013  It creates configuration files in the directory it was run from.
1014 \end_layout
1015
1016 \begin_layout Subsection
1017 Other files needing a line or two
1018 \end_layout
1019
1020 \begin_layout Labeling
1021 \labelwidthstring 00.00.0000
1022 \begin_inset Flex Code
1023 status collapsed
1024
1025 \begin_layout Plain Layout
1026 encodings
1027 \end_layout
1028
1029 \end_inset
1030
1031  this contains tables describing how different character encodings can be
1032  mapped to Unicode
1033 \end_layout
1034
1035 \begin_layout Labeling
1036 \labelwidthstring 00.00.0000
1037 \begin_inset Flex Code
1038 status collapsed
1039
1040 \begin_layout Plain Layout
1041 languages
1042 \end_layout
1043
1044 \end_inset
1045
1046  this file contains a list of all the languages currently supported by \SpecialChar LyX
1047 .
1048 \end_layout
1049
1050 \begin_layout Labeling
1051 \labelwidthstring 00.00.0000
1052 \begin_inset Flex Code
1053 status collapsed
1054
1055 \begin_layout Plain Layout
1056 latexfonts
1057 \end_layout
1058
1059 \end_inset
1060
1061  contains information about the supported fonts.
1062 \end_layout
1063
1064 \begin_layout Labeling
1065 \labelwidthstring 00.00.0000
1066 \begin_inset Flex Code
1067 status collapsed
1068
1069 \begin_layout Plain Layout
1070 layouttranslations
1071 \end_layout
1072
1073 \end_inset
1074
1075  this file contains translations for internationalized paragraph styles
1076  (see 
1077 \begin_inset CommandInset ref
1078 LatexCommand ref
1079 reference "subsec:I18n"
1080
1081 \end_inset
1082
1083 ).
1084 \end_layout
1085
1086 \begin_layout Labeling
1087 \labelwidthstring 00.00.0000
1088 \begin_inset Flex Code
1089 status collapsed
1090
1091 \begin_layout Plain Layout
1092 unicodesymbols
1093 \end_layout
1094
1095 \end_inset
1096
1097  this file contains information about Unicode-encoded glyphs and the way
1098  they are supported by \SpecialChar LyX
1099  via \SpecialChar LaTeX
1100 .
1101 \end_layout
1102
1103 \begin_layout Section
1104 Your local configuration directory
1105 \end_layout
1106
1107 \begin_layout Standard
1108 Even if you are using \SpecialChar LyX
1109  as an unprivileged user, you might want to change
1110  \SpecialChar LyX
1111  configuration for your own use.
1112  The 
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 UserDir
1118 \end_layout
1119
1120 \end_inset
1121
1122  directory contains all your personal configuration files.
1123  This is the directory described as 
1124 \begin_inset Quotes eld
1125 \end_inset
1126
1127 user directory
1128 \begin_inset Quotes erd
1129 \end_inset
1130
1131  in 
1132 \begin_inset Flex Noun
1133 status collapsed
1134
1135 \begin_layout Plain Layout
1136 Help\SpecialChar menuseparator
1137 About
1138 \begin_inset space ~
1139 \end_inset
1140
1141 LyX
1142 \end_layout
1143
1144 \end_inset
1145
1146 .
1147  This directory is used as a mirror of 
1148 \begin_inset Flex Code
1149 status collapsed
1150
1151 \begin_layout Plain Layout
1152 LyXDir
1153 \end_layout
1154
1155 \end_inset
1156
1157 , which means that every file in 
1158 \begin_inset Flex Code
1159 status collapsed
1160
1161 \begin_layout Plain Layout
1162 UserDir
1163 \end_layout
1164
1165 \end_inset
1166
1167  is a replacement for the corresponding file in 
1168 \begin_inset Flex Code
1169 status collapsed
1170
1171 \begin_layout Plain Layout
1172 LyXDir
1173 \end_layout
1174
1175 \end_inset
1176
1177 .
1178  Any configuration file described in the above sections can be placed either
1179  in the system-wide directory, in which case it will affect all users, or
1180  in your local directory for your own use.
1181 \end_layout
1182
1183 \begin_layout Standard
1184 To make things clearer, let's provide a few examples:
1185 \end_layout
1186
1187 \begin_layout Itemize
1188 The preferences set in the 
1189 \begin_inset Flex Noun
1190 status collapsed
1191
1192 \begin_layout Plain Layout
1193 Tools\SpecialChar menuseparator
1194 Preferences
1195 \end_layout
1196
1197 \end_inset
1198
1199  dialog are saved to a file 
1200 \begin_inset Flex Code
1201 status collapsed
1202
1203 \begin_layout Plain Layout
1204 preferences
1205 \end_layout
1206
1207 \end_inset
1208
1209  in 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214 UserDir
1215 \end_layout
1216
1217 \end_inset
1218
1219 .
1220 \end_layout
1221
1222 \begin_layout Itemize
1223 When you reconfigure using 
1224 \begin_inset Flex Noun
1225 status collapsed
1226
1227 \begin_layout Plain Layout
1228 Tools\SpecialChar menuseparator
1229 Reconfigure
1230 \end_layout
1231
1232 \end_inset
1233
1234 , \SpecialChar LyX
1235  runs the 
1236 \begin_inset Flex Code
1237 status collapsed
1238
1239 \begin_layout Plain Layout
1240 configure.py
1241 \end_layout
1242
1243 \end_inset
1244
1245  script, and the resulting files are written in your local configuration
1246  directory.
1247  This means that any additional text class file that you might have added
1248  in 
1249 \begin_inset Flex Code
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 UserDir/layouts
1254 \end_layout
1255
1256 \end_inset
1257
1258  will be added to the list of classes in the 
1259 \begin_inset Flex Noun
1260 status collapsed
1261
1262 \begin_layout Plain Layout
1263 Document\SpecialChar menuseparator
1264 Settings
1265 \end_layout
1266
1267 \end_inset
1268
1269  dialog.
1270 \end_layout
1271
1272 \begin_layout Itemize
1273 If you get some updated documentation from \SpecialChar LyX
1274  ftp site and cannot install
1275  it because you do not have sysadmin rights on your system, you can just
1276  copy the files in 
1277 \begin_inset Flex Code
1278 status collapsed
1279
1280 \begin_layout Plain Layout
1281 UserDir/doc/
1282 \end_layout
1283
1284 \end_inset
1285
1286  and the items in the 
1287 \begin_inset Flex Noun
1288 status collapsed
1289
1290 \begin_layout Plain Layout
1291 Help
1292 \end_layout
1293
1294 \end_inset
1295
1296  menu will open them!
1297 \end_layout
1298
1299 \begin_layout Section
1300 Running \SpecialChar LyX
1301  with multiple configurations
1302 \end_layout
1303
1304 \begin_layout Standard
1305 The configuration freedom of the local configuration directory may not suffice
1306  if you want to have more than one configuration at your disposal.
1307  For example, you may want to be use different key bindings or printer settings
1308  at different times.
1309  You can achieve this by having several such directories.
1310  You then specify which directory to use at run-time.
1311 \end_layout
1312
1313 \begin_layout Standard
1314 Invoking \SpecialChar LyX
1315  with the command line switch 
1316 \begin_inset Flex Code
1317 status collapsed
1318
1319 \begin_layout Plain Layout
1320 -userdir
1321 \end_layout
1322
1323 \end_inset
1324
1325  
1326 \emph on
1327 <some directory>
1328 \emph default
1329  instructs the program to read the configuration from that directory, and
1330  not from the default directory.
1331  (You can determine the default directory by running \SpecialChar LyX
1332  without the 
1333 \begin_inset Flex Code
1334 status collapsed
1335
1336 \begin_layout Plain Layout
1337 -userdir
1338 \end_layout
1339
1340 \end_inset
1341
1342  switch.) If the specified directory does not exist, \SpecialChar LyX
1343  offers to create it
1344  for you, just like it does for the default directory on the first time
1345  you run the program.
1346  You can modify the configuration options in this additional user directory
1347  exactly as you would for the default directory.
1348  These directories are completely independent (but read on).
1349  Note that setting the environment variable 
1350 \begin_inset Flex Code
1351 status collapsed
1352
1353 \begin_layout Plain Layout
1354 LYX_USERDIR_VER
1355 \end_layout
1356
1357 \end_inset
1358
1359  to some value has exactly the same effect.
1360 \end_layout
1361
1362 \begin_layout Standard
1363 Having several configurations also requires more maintenance: if you want
1364  to add a new layout to 
1365 \begin_inset Flex Code
1366 status collapsed
1367
1368 \begin_layout Plain Layout
1369 NewUserDir/layouts
1370 \end_layout
1371
1372 \end_inset
1373
1374  which you want available from all your configurations, you must add it
1375  to each directory separately.
1376  You can avoid this with the following trick: after \SpecialChar LyX
1377  creates the additional
1378  directory, most of the subdirectories (see above) are empty.
1379  If you want the new configuration to mirror an existing one, replace the
1380  empty subdirectory with a symbolic link to the matching subdirectory in
1381  the existing configuration.
1382  Take care with the 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387 doc/
1388 \end_layout
1389
1390 \end_inset
1391
1392  subdirectory, however, since it contains a file written by the configuration
1393  script (also accessible through 
1394 \begin_inset Flex Noun
1395 status collapsed
1396
1397 \begin_layout Plain Layout
1398 Tools\SpecialChar menuseparator
1399 Reconfigure
1400 \end_layout
1401
1402 \end_inset
1403
1404 ) which is configuration-specific.
1405 \end_layout
1406
1407 \begin_layout Chapter
1408 The Preferences dialog
1409 \end_layout
1410
1411 \begin_layout Standard
1412 All options of the preferences dialog are described in the Appendix 
1413 \emph on
1414 The Preferences Dialog
1415 \emph default
1416  in the 
1417 \emph on
1418 User's Guide
1419 \emph default
1420 .
1421  For some options you might find here more details.
1422 \end_layout
1423
1424 \begin_layout Section
1425 Formats
1426 \begin_inset CommandInset label
1427 LatexCommand label
1428 name "sec:Formats"
1429
1430 \end_inset
1431
1432
1433 \end_layout
1434
1435 \begin_layout Standard
1436 The first step is to define your file formats if they are not already defined.
1437  To do so, open the 
1438 \begin_inset Flex Noun
1439 status collapsed
1440
1441 \begin_layout Plain Layout
1442 Tools\SpecialChar menuseparator
1443 Preferences
1444 \end_layout
1445
1446 \end_inset
1447
1448  dialog.
1449  Under 
1450 \begin_inset Flex Noun
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454 File Handling\SpecialChar menuseparator
1455 File formats
1456 \end_layout
1457
1458 \end_inset
1459
1460  press the 
1461 \begin_inset Flex Noun
1462 status collapsed
1463
1464 \begin_layout Plain Layout
1465 New
1466 \end_layout
1467
1468 \end_inset
1469
1470  button to define your new format.
1471  The 
1472 \begin_inset Flex Noun
1473 status collapsed
1474
1475 \begin_layout Plain Layout
1476 Format
1477 \end_layout
1478
1479 \end_inset
1480
1481  field contains the name used to identify the format in the GUI.
1482  The 
1483 \begin_inset Flex Noun
1484 status collapsed
1485
1486 \begin_layout Plain Layout
1487 Short Name
1488 \end_layout
1489
1490 \end_inset
1491
1492  is used to identify the format internally.
1493  You will also need to enter a file extension.
1494  These are all required.
1495  The optional 
1496 \begin_inset Flex Noun
1497 status collapsed
1498
1499 \begin_layout Plain Layout
1500 Shortcut
1501 \end_layout
1502
1503 \end_inset
1504
1505  field is used to provide a keyboard shortcut on the menus.
1506  (For example, pressing 
1507 \begin_inset Flex Noun
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 Ctrl+D
1512 \end_layout
1513
1514 \end_inset
1515
1516  will 
1517 \begin_inset Flex Noun
1518 status collapsed
1519
1520 \begin_layout Plain Layout
1521 Document\SpecialChar menuseparator
1522 View (Other Formats)\SpecialChar menuseparator
1523 DVI
1524 \end_layout
1525
1526 \end_inset
1527
1528 .) 
1529 \end_layout
1530
1531 \begin_layout Standard
1532 A Format can have a 
1533 \begin_inset Flex Noun
1534 status collapsed
1535
1536 \begin_layout Plain Layout
1537 Viewer
1538 \end_layout
1539
1540 \end_inset
1541
1542  and an 
1543 \begin_inset Flex Noun
1544 status collapsed
1545
1546 \begin_layout Plain Layout
1547 Editor
1548 \end_layout
1549
1550 \end_inset
1551
1552  associated with it.
1553  For example, you might want to use 
1554 \begin_inset Flex Noun
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558 Ghostview
1559 \end_layout
1560
1561 \end_inset
1562
1563  to view PostScript files.
1564  You can enter the command needed to start the program in the corresponding
1565  fields.
1566  In defining this command, you can use the four variables listed in the
1567  next section.
1568  The viewer is launched when you view an image in \SpecialChar LyX
1569  or use the 
1570 \begin_inset Flex Noun
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 Document\SpecialChar menuseparator
1575 View
1576 \end_layout
1577
1578 \end_inset
1579
1580  menu.
1581  The editor is for example launched when you right-click on an image and
1582  choose 
1583 \begin_inset Flex Noun
1584 status collapsed
1585
1586 \begin_layout Plain Layout
1587 Edit externally
1588 \end_layout
1589
1590 \end_inset
1591
1592  in the appearing context menu.
1593 \end_layout
1594
1595 \begin_layout Standard
1596 The 
1597 \begin_inset Flex Noun
1598 status collapsed
1599
1600 \begin_layout Plain Layout
1601 MIME
1602 \end_layout
1603
1604 \end_inset
1605
1606  type of a format is optional, but if it is specified, it must be unique
1607  across all formats.
1608  It is used to detect files of this format from the file contents.
1609  For some important file formats there is no MIME type officially registered
1610  with the 
1611 \begin_inset CommandInset href
1612 LatexCommand href
1613 name "IANA"
1614 target "http://www.iana.org/assignments/media-types/"
1615 literal "false"
1616
1617 \end_inset
1618
1619 .
1620  Therefore \SpecialChar LyX
1621  uses the extended list of MIME types as specified by 
1622 \begin_inset CommandInset href
1623 LatexCommand href
1624 name "freedesktop.org"
1625 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1626 literal "false"
1627
1628 \end_inset
1629
1630 .
1631 \end_layout
1632
1633 \begin_layout Standard
1634 The 
1635 \begin_inset Flex Noun
1636 status collapsed
1637
1638 \begin_layout Plain Layout
1639 Document format
1640 \end_layout
1641
1642 \end_inset
1643
1644  option tells \SpecialChar LyX
1645  that a format is suitable for document export.
1646  If this is set and if a suitable conversion route exists (see 
1647 \begin_inset CommandInset ref
1648 LatexCommand ref
1649 reference "sec:Converters"
1650
1651 \end_inset
1652
1653 ), the format will appear in the 
1654 \begin_inset Flex Noun
1655 status collapsed
1656
1657 \begin_layout Plain Layout
1658 File\SpecialChar menuseparator
1659 Export
1660 \end_layout
1661
1662 \end_inset
1663
1664  menu.
1665  The format will also appear in the 
1666 \begin_inset Flex Noun
1667 status collapsed
1668
1669 \begin_layout Plain Layout
1670 Document\SpecialChar menuseparator
1671 View
1672 \end_layout
1673
1674 \end_inset
1675
1676  menu if a viewer is specified for the format.
1677  Pure image formats, such as 
1678 \begin_inset Flex Code
1679 status collapsed
1680
1681 \begin_layout Plain Layout
1682 png
1683 \end_layout
1684
1685 \end_inset
1686
1687 , should not use this option.
1688  Formats that can both represent vector graphics and documents like 
1689 \begin_inset Flex Code
1690 status collapsed
1691
1692 \begin_layout Plain Layout
1693 pdf
1694 \end_layout
1695
1696 \end_inset
1697
1698  should use it.
1699 \end_layout
1700
1701 \begin_layout Standard
1702 The option 
1703 \begin_inset Flex Noun
1704 status collapsed
1705
1706 \begin_layout Plain Layout
1707 Vector graphics format
1708 \end_layout
1709
1710 \end_inset
1711
1712  tells \SpecialChar LyX
1713  that a format can contain vector graphics.
1714  This information is used to determine the target format of included graphics
1715  for 
1716 \begin_inset Flex Noun
1717 status collapsed
1718
1719 \begin_layout Plain Layout
1720 pdflatex
1721 \end_layout
1722
1723 \end_inset
1724
1725  export.
1726  Included graphics may need to be converted to either 
1727 \begin_inset Flex Noun
1728 status collapsed
1729
1730 \begin_layout Plain Layout
1731 pdf
1732 \end_layout
1733
1734 \end_inset
1735
1736
1737 \begin_inset Flex Noun
1738 status collapsed
1739
1740 \begin_layout Plain Layout
1741 png
1742 \end_layout
1743
1744 \end_inset
1745
1746 , or 
1747 \begin_inset Flex Noun
1748 status collapsed
1749
1750 \begin_layout Plain Layout
1751 jpg
1752 \end_layout
1753
1754 \end_inset
1755
1756 , since 
1757 \begin_inset Flex Noun
1758 status collapsed
1759
1760 \begin_layout Plain Layout
1761 pdflatex
1762 \end_layout
1763
1764 \end_inset
1765
1766  cannot handle other image formats.
1767  If an included graphic is not already in 
1768 \begin_inset Flex Noun
1769 status collapsed
1770
1771 \begin_layout Plain Layout
1772 pdf
1773 \end_layout
1774
1775 \end_inset
1776
1777
1778 \begin_inset Flex Noun
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 png
1783 \end_layout
1784
1785 \end_inset
1786
1787 , or 
1788 \begin_inset Flex Noun
1789 status collapsed
1790
1791 \begin_layout Plain Layout
1792 jpg
1793 \end_layout
1794
1795 \end_inset
1796
1797  format, it is converted to 
1798 \begin_inset Flex Noun
1799 status collapsed
1800
1801 \begin_layout Plain Layout
1802 pdf
1803 \end_layout
1804
1805 \end_inset
1806
1807  if the vector format option is set, and otherwise to 
1808 \begin_inset Flex Noun
1809 status collapsed
1810
1811 \begin_layout Plain Layout
1812 png
1813 \end_layout
1814
1815 \end_inset
1816
1817 .
1818 \end_layout
1819
1820 \begin_layout Section
1821 Copiers
1822 \end_layout
1823
1824 \begin_layout Standard
1825 Since all conversions from one format to another take place in \SpecialChar LyX
1826 's temporary
1827  directory, it is sometimes necessary to modify a file before copying it
1828  to the temporary directory in order that the conversion may be performed.
1829 \begin_inset Foot
1830 status collapsed
1831
1832 \begin_layout Plain Layout
1833 For example, the file may refer to other files—images, for example—using
1834  relative file names, and these may become invalid when the file is copied
1835  to the temporary directory.
1836 \end_layout
1837
1838 \end_inset
1839
1840  This is done by a Copier: It copies a file to (or from) the temporary directory
1841  and may modify it in the process.
1842 \end_layout
1843
1844 \begin_layout Standard
1845 The definitions of the copiers may use eight variables:
1846 \end_layout
1847
1848 \begin_layout Labeling
1849 \labelwidthstring 00.00.0000
1850 \begin_inset Flex Code
1851 status collapsed
1852
1853 \begin_layout Plain Layout
1854 $$s
1855 \end_layout
1856
1857 \end_inset
1858
1859  The \SpecialChar LyX
1860  system directory (e.
1861 \begin_inset space \thinspace{}
1862 \end_inset
1863
1864 g.
1865 \begin_inset space \space{}
1866 \end_inset
1867
1868
1869 \begin_inset Flex Noun
1870 status collapsed
1871
1872 \begin_layout Plain Layout
1873 /usr/share/lyx
1874 \end_layout
1875
1876 \end_inset
1877
1878 ).
1879 \end_layout
1880
1881 \begin_layout Labeling
1882 \labelwidthstring 00.00.0000
1883 \begin_inset Flex Code
1884 status collapsed
1885
1886 \begin_layout Plain Layout
1887 $$i
1888 \end_layout
1889
1890 \end_inset
1891
1892  The input file
1893 \end_layout
1894
1895 \begin_layout Labeling
1896 \labelwidthstring 00.00.0000
1897 \begin_inset Flex Code
1898 status collapsed
1899
1900 \begin_layout Plain Layout
1901 $$o
1902 \end_layout
1903
1904 \end_inset
1905
1906  The output file
1907 \end_layout
1908
1909 \begin_layout Labeling
1910 \labelwidthstring 00.00.0000
1911 \begin_inset Flex Code
1912 status collapsed
1913
1914 \begin_layout Plain Layout
1915 $$b
1916 \end_layout
1917
1918 \end_inset
1919
1920  The base name (without filename extension) in the \SpecialChar LyX
1921  temporary directory
1922 \end_layout
1923
1924 \begin_layout Labeling
1925 \labelwidthstring 00.00.0000
1926 \begin_inset Flex Code
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930 $$p
1931 \end_layout
1932
1933 \end_inset
1934
1935  The full directory path of the \SpecialChar LyX
1936  temporary directory
1937 \end_layout
1938
1939 \begin_layout Labeling
1940 \labelwidthstring 00.00.0000
1941 \begin_inset Flex Code
1942 status collapsed
1943
1944 \begin_layout Plain Layout
1945 $$r
1946 \end_layout
1947
1948 \end_inset
1949
1950  The full pathname to the original \SpecialChar LyX
1951  file being processed
1952 \end_layout
1953
1954 \begin_layout Labeling
1955 \labelwidthstring 00.00.0000
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 $$f
1961 \end_layout
1962
1963 \end_inset
1964
1965  The filename (without any directory path) of the \SpecialChar LyX
1966  file.
1967 \end_layout
1968
1969 \begin_layout Labeling
1970 \labelwidthstring 00.00.0000
1971 \begin_inset Flex Code
1972 status collapsed
1973
1974 \begin_layout Plain Layout
1975 $$l
1976 \end_layout
1977
1978 \end_inset
1979
1980  The `\SpecialChar LaTeX
1981  name'
1982 \end_layout
1983
1984 \begin_layout Standard
1985 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1986 's 
1987 \series bold
1988
1989 \backslash
1990 include
1991 \series default
1992  command.
1993  It is relevant only when exporting files suitable for such inclusion.
1994 \end_layout
1995
1996 \begin_layout Standard
1997 Copiers can be used to do almost anything with output files.
1998  For example, suppose you want generated pdf files to be copied to a special
1999  directory, 
2000 \begin_inset Flex Code
2001 status collapsed
2002
2003 \begin_layout Plain Layout
2004 /home/you/pdf/
2005 \end_layout
2006
2007 \end_inset
2008
2009 .
2010  Then you could write a shell script such as this one:
2011 \end_layout
2012
2013 \begin_layout Standard
2014 \begin_inset listings
2015 inline false
2016 status open
2017
2018 \begin_layout Plain Layout
2019
2020 #!/bin/bash
2021 \end_layout
2022
2023 \begin_layout Plain Layout
2024
2025 FROMFILE=$1
2026 \end_layout
2027
2028 \begin_layout Plain Layout
2029
2030 TOFILE=`basename $2`
2031 \end_layout
2032
2033 \begin_layout Plain Layout
2034
2035 cp $FROMFILE /home/you/pdf/$TOFILE
2036 \end_layout
2037
2038 \end_inset
2039
2040 Save it in your local \SpecialChar LyX
2041  directory—say, 
2042 \begin_inset Flex Code
2043 status collapsed
2044
2045 \begin_layout Plain Layout
2046 /home/you/.lyx/scripts/pdfcopier.sh
2047 \end_layout
2048
2049 \end_inset
2050
2051 —and make it executable, if you need to do so on your platform.
2052  Then, in the 
2053 \begin_inset Flex Noun
2054 status collapsed
2055
2056 \begin_layout Plain Layout
2057 Tools\SpecialChar menuseparator
2058 Preferences
2059 \end_layout
2060
2061 \end_inset
2062
2063  dialog, select under 
2064 \begin_inset Flex Noun
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 File Handling\SpecialChar menuseparator
2069 File formats
2070 \end_layout
2071
2072 \end_inset
2073
2074  the 
2075 \begin_inset Flex Noun
2076 status collapsed
2077
2078 \begin_layout Plain Layout
2079 PDF(pdflatex)
2080 \end_layout
2081
2082 \end_inset
2083
2084  format—or one of the other pdf formats—and enter 
2085 \begin_inset Flex Code
2086 status collapsed
2087
2088 \begin_layout Plain Layout
2089 pdfcopier.sh $$i $$o
2090 \end_layout
2091
2092 \end_inset
2093
2094  into the 
2095 \begin_inset Flex Noun
2096 status collapsed
2097
2098 \begin_layout Plain Layout
2099 Copier
2100 \end_layout
2101
2102 \end_inset
2103
2104  field.
2105  
2106 \end_layout
2107
2108 \begin_layout Standard
2109 Copiers are used by \SpecialChar LyX
2110  in various of its own conversions.
2111  For example, if appropriate programs are found, \SpecialChar LyX
2112  will automatically install
2113  copiers for the 
2114 \begin_inset Flex Noun
2115 status collapsed
2116
2117 \begin_layout Plain Layout
2118 HTML
2119 \end_layout
2120
2121 \end_inset
2122
2123  and 
2124 \begin_inset Flex Noun
2125 status collapsed
2126
2127 \begin_layout Plain Layout
2128 HTML
2129 \begin_inset space ~
2130 \end_inset
2131
2132 (MS Word)
2133 \end_layout
2134
2135 \end_inset
2136
2137  formats.
2138  When these formats are exported, the copier sees that not just the main
2139  HTML file but various associated files (style files, images, etc.) are also
2140  copied.
2141  All these files are written to a subdirectory of the directory in which
2142  the original \SpecialChar LyX
2143  file was found.
2144 \begin_inset Foot
2145 status collapsed
2146
2147 \begin_layout Plain Layout
2148 This copier can be customized.
2149  The optional 
2150 \begin_inset Quotes eld
2151 \end_inset
2152
2153 -e
2154 \begin_inset Quotes erd
2155 \end_inset
2156
2157  argument takes a comma-separated list of extensions to be copied; if it
2158  is omitted, all files will be copied.
2159  The 
2160 \begin_inset Quotes eld
2161 \end_inset
2162
2163 -t
2164 \begin_inset Quotes erd
2165 \end_inset
2166
2167  argument determines the extension added to the generated directory.
2168  By default, it is 
2169 \begin_inset Quotes eld
2170 \end_inset
2171
2172
2173 \begin_inset Flex Noun
2174 status collapsed
2175
2176 \begin_layout Plain Layout
2177 LyXconv
2178 \end_layout
2179
2180 \end_inset
2181
2182
2183 \begin_inset Quotes erd
2184 \end_inset
2185
2186 , so HTML generated from 
2187 \begin_inset Flex Noun
2188 status collapsed
2189
2190 \begin_layout Plain Layout
2191 /path/to/filename.lyx
2192 \end_layout
2193
2194 \end_inset
2195
2196  will end up in 
2197 \begin_inset Flex Noun
2198 status collapsed
2199
2200 \begin_layout Plain Layout
2201 /path/to/filename.html.LyXconv
2202 \end_layout
2203
2204 \end_inset
2205
2206 .
2207  
2208 \end_layout
2209
2210 \end_inset
2211
2212
2213 \end_layout
2214
2215 \begin_layout Section
2216 Converters
2217 \begin_inset CommandInset label
2218 LatexCommand label
2219 name "sec:Converters"
2220
2221 \end_inset
2222
2223
2224 \end_layout
2225
2226 \begin_layout Standard
2227 You can define your own Converters to convert files between different formats.
2228  This is done in the 
2229 \begin_inset Flex Noun
2230 status collapsed
2231
2232 \begin_layout Plain Layout
2233 Tools\SpecialChar menuseparator
2234 Preferences\SpecialChar menuseparator
2235 File Handling\SpecialChar menuseparator
2236 Converters
2237 \end_layout
2238
2239 \end_inset
2240
2241  dialog.
2242 \end_layout
2243
2244 \begin_layout Standard
2245 To define a new converter, select the 
2246 \begin_inset Flex Noun
2247 status collapsed
2248
2249 \begin_layout Plain Layout
2250 From
2251 \begin_inset space ~
2252 \end_inset
2253
2254 format
2255 \end_layout
2256
2257 \end_inset
2258
2259  and 
2260 \begin_inset Flex Noun
2261 status collapsed
2262
2263 \begin_layout Plain Layout
2264 To
2265 \begin_inset space ~
2266 \end_inset
2267
2268 format
2269 \end_layout
2270
2271 \end_inset
2272
2273  from the drop-down lists, enter the command needed for the conversion,
2274  and then press the 
2275 \begin_inset Flex Noun
2276 status collapsed
2277
2278 \begin_layout Plain Layout
2279 Add
2280 \end_layout
2281
2282 \end_inset
2283
2284  button.
2285  Several variables can be used in the definition of converters:
2286 \end_layout
2287
2288 \begin_layout Labeling
2289 \labelwidthstring 00.00.0000
2290 \begin_inset Flex Code
2291 status collapsed
2292
2293 \begin_layout Plain Layout
2294 $$s
2295 \end_layout
2296
2297 \end_inset
2298
2299  The \SpecialChar LyX
2300  system directory
2301 \end_layout
2302
2303 \begin_layout Labeling
2304 \labelwidthstring 00.00.0000
2305 \begin_inset Flex Code
2306 status collapsed
2307
2308 \begin_layout Plain Layout
2309 $$i
2310 \end_layout
2311
2312 \end_inset
2313
2314  The input file
2315 \end_layout
2316
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Flex Code
2320 status collapsed
2321
2322 \begin_layout Plain Layout
2323 $$o
2324 \end_layout
2325
2326 \end_inset
2327
2328  The output file
2329 \end_layout
2330
2331 \begin_layout Labeling
2332 \labelwidthstring 00.00.0000
2333 \begin_inset Flex Code
2334 status collapsed
2335
2336 \begin_layout Plain Layout
2337 $$b
2338 \end_layout
2339
2340 \end_inset
2341
2342  The base filename of the input file (i.
2343 \begin_inset space \thinspace{}
2344 \end_inset
2345
2346 g., without the extension)
2347 \end_layout
2348
2349 \begin_layout Labeling
2350 \labelwidthstring 00.00.0000
2351 \begin_inset Flex Code
2352 status collapsed
2353
2354 \begin_layout Plain Layout
2355 $$p
2356 \end_layout
2357
2358 \end_inset
2359
2360  The path to the input file
2361 \end_layout
2362
2363 \begin_layout Labeling
2364 \labelwidthstring 00.00.0000
2365 \begin_inset Flex Code
2366 status collapsed
2367
2368 \begin_layout Plain Layout
2369 $$r
2370 \end_layout
2371
2372 \end_inset
2373
2374  The path to the original input file (this is different from $$p when a
2375  chain of converters is called)
2376 \end_layout
2377
2378 \begin_layout Labeling
2379 \labelwidthstring 00.00.0000
2380 \begin_inset Flex Code
2381 status collapsed
2382
2383 \begin_layout Plain Layout
2384 $$e
2385 \end_layout
2386
2387 \end_inset
2388
2389  The iconv name for the encoding of the document.
2390 \end_layout
2391
2392 \begin_layout Standard
2393 In the 
2394 \begin_inset Flex Noun
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 Extra
2399 \begin_inset space ~
2400 \end_inset
2401
2402 Flag
2403 \end_layout
2404
2405 \end_inset
2406
2407  field you can enter the following flags, separated by commas:
2408 \end_layout
2409
2410 \begin_layout Labeling
2411 \labelwidthstring 00.00.0000
2412 \begin_inset Flex Code
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 latex
2417 \change_inserted -712698321 1524656940
2418 =flavor
2419 \change_unchanged
2420
2421 \end_layout
2422
2423 \end_inset
2424
2425  This converter runs some form of \SpecialChar LaTeX
2426 .
2427  This will make \SpecialChar LyX
2428 's \SpecialChar LaTeX
2429  error logs available.
2430
2431 \change_inserted -712698321 1524657018
2432  The optional 
2433 \begin_inset Flex Code
2434 status open
2435
2436 \begin_layout Plain Layout
2437
2438 \change_inserted -712698321 1524657012
2439 flavor
2440 \change_unchanged
2441
2442 \end_layout
2443
2444 \end_inset
2445
2446  value specifies the form of \SpecialChar LaTeX
2447  that is run (
2448 \begin_inset Flex Code
2449 status open
2450
2451 \begin_layout Plain Layout
2452
2453 \change_inserted -712698321 1524657005
2454 latex, pdflatex, platex, xetex, luatex
2455 \change_unchanged
2456
2457 \end_layout
2458
2459 \end_inset
2460
2461 ).
2462  If no value is specified, 
2463 \begin_inset Flex Code
2464 status open
2465
2466 \begin_layout Plain Layout
2467
2468 \change_inserted -712698321 1524657018
2469 latex
2470 \change_unchanged
2471
2472 \end_layout
2473
2474 \end_inset
2475
2476  is used.
2477 \change_unchanged
2478
2479 \end_layout
2480
2481 \begin_layout Labeling
2482 \labelwidthstring 00.00.0000
2483 \begin_inset Flex Code
2484 status collapsed
2485
2486 \begin_layout Plain Layout
2487 needaux
2488 \change_inserted -712698321 1524656935
2489 =flavor
2490 \change_unchanged
2491
2492 \end_layout
2493
2494 \end_inset
2495
2496  Needs the \SpecialChar LaTeX
2497  
2498 \begin_inset Flex Noun
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 .aux
2503 \end_layout
2504
2505 \end_inset
2506
2507  file for the conversion.
2508
2509 \change_inserted -712698321 1524657047
2510  The optional 
2511 \begin_inset Flex Code
2512 status open
2513
2514 \begin_layout Plain Layout
2515
2516 \change_inserted -712698321 1524657030
2517 flavor
2518 \end_layout
2519
2520 \end_inset
2521
2522  value specifies the form of \SpecialChar LaTeX
2523  that is run in order to generate the 
2524 \begin_inset Flex Noun
2525 status collapsed
2526
2527 \begin_layout Plain Layout
2528
2529 \change_inserted -712698321 1524657047
2530 .aux
2531 \end_layout
2532
2533 \end_inset
2534
2535  file (
2536 \begin_inset Flex Code
2537 status open
2538
2539 \begin_layout Plain Layout
2540
2541 \change_inserted -712698321 1524657030
2542 latex, pdflatex, platex, xetex, luatex
2543 \end_layout
2544
2545 \end_inset
2546
2547 ).
2548  If no value is specified, 
2549 \begin_inset Flex Code
2550 status open
2551
2552 \begin_layout Plain Layout
2553
2554 \change_inserted -712698321 1524657030
2555 latex
2556 \end_layout
2557
2558 \end_inset
2559
2560  is used.
2561 \change_unchanged
2562
2563 \end_layout
2564
2565 \begin_layout Labeling
2566 \labelwidthstring 00.00.0000
2567 \begin_inset Flex Code
2568 status collapsed
2569
2570 \begin_layout Plain Layout
2571 nice
2572 \end_layout
2573
2574 \end_inset
2575
2576  Needs a 
2577 \begin_inset Quotes eld
2578 \end_inset
2579
2580 nice
2581 \begin_inset Quotes erd
2582 \end_inset
2583
2584  file from the backend, which in practice means a \SpecialChar LaTeX
2585  file like the one we
2586  would export, without 
2587 \begin_inset Flex Code
2588 status collapsed
2589
2590 \begin_layout Plain Layout
2591 input@path
2592 \end_layout
2593
2594 \end_inset
2595
2596 .
2597 \end_layout
2598
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2601 \begin_inset Flex Code
2602 status collapsed
2603
2604 \begin_layout Plain Layout
2605 xml
2606 \end_layout
2607
2608 \end_inset
2609
2610  Output is XML.
2611 \end_layout
2612
2613 \begin_layout Standard
2614 The following three flags are not really flags at all because they take
2615  an argument in the 
2616 \begin_inset Flex Noun
2617 status collapsed
2618
2619 \begin_layout Plain Layout
2620 key
2621 \begin_inset space ~
2622 \end_inset
2623
2624 =
2625 \begin_inset space ~
2626 \end_inset
2627
2628 value
2629 \end_layout
2630
2631 \end_inset
2632
2633  format:
2634 \end_layout
2635
2636 \begin_layout Labeling
2637 \labelwidthstring 00.00.0000
2638
2639 \change_inserted -712698321 1523206314
2640 \begin_inset Flex Code
2641 status collapsed
2642
2643 \begin_layout Plain Layout
2644
2645 \change_inserted -712698321 1523206193
2646 hyperref-driver
2647 \end_layout
2648
2649 \end_inset
2650
2651  The name of the driver that needs to be loaded with the 
2652 \family sans
2653 hyperref
2654 \family default
2655  package for this converter.
2656  The loading of the correct driver is necessary to get some PDF-specific
2657  features.
2658  See the 
2659 \family sans
2660 hyperref
2661 \family default
2662  manual for details.
2663 \end_layout
2664
2665 \begin_layout Labeling
2666 \labelwidthstring 00.00.0000
2667 \begin_inset Flex Code
2668 status collapsed
2669
2670 \begin_layout Plain Layout
2671 parselog
2672 \end_layout
2673
2674 \end_inset
2675
2676  If set, the converter's standard error will be redirected to a file 
2677 \begin_inset Flex Code
2678 status collapsed
2679
2680 \begin_layout Plain Layout
2681 infile.out
2682 \end_layout
2683
2684 \end_inset
2685
2686 , and the script given as argument will be run as: 
2687 \begin_inset Flex Code
2688 status collapsed
2689
2690 \begin_layout Plain Layout
2691 script < infile.out > infile.log
2692 \end_layout
2693
2694 \end_inset
2695
2696 .
2697  The argument may contain 
2698 \begin_inset Flex Code
2699 status collapsed
2700
2701 \begin_layout Plain Layout
2702 $$s
2703 \end_layout
2704
2705 \end_inset
2706
2707 .
2708 \end_layout
2709
2710 \begin_layout Labeling
2711 \labelwidthstring 00.00.0000
2712 \begin_inset Flex Code
2713 status collapsed
2714
2715 \begin_layout Plain Layout
2716 resultdir
2717 \end_layout
2718
2719 \end_inset
2720
2721  The name of the directory in which the converter will dump the generated
2722  files.
2723  \SpecialChar LyX
2724  will not create this directory, and it does not copy anything into it,
2725  though it will copy this directory to the destination.
2726  The argument may contain 
2727 \begin_inset Flex Code
2728 status collapsed
2729
2730 \begin_layout Plain Layout
2731 $$b
2732 \end_layout
2733
2734 \end_inset
2735
2736 , which will be replaced by the base name of the input and output files,
2737  respectively, when the directory is copied.
2738 \begin_inset Newline newline
2739 \end_inset
2740
2741 Note that resultdir and usetempdir make no sense together.
2742  The latter will be ignored if the former is given.
2743 \end_layout
2744
2745 \begin_layout Labeling
2746 \labelwidthstring 00.00.0000
2747 \begin_inset Flex Code
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 resultfile
2752 \end_layout
2753
2754 \end_inset
2755
2756  Determines the output file name and may, contain 
2757 \begin_inset Flex Code
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 $$b
2762 \end_layout
2763
2764 \end_inset
2765
2766 .
2767  Sensible only with resultdir and optional even then; if not given, it defaults
2768  to `index'.
2769 \end_layout
2770
2771 \begin_layout Standard
2772
2773 \change_inserted -712698321 1523206384
2774 A suitable hyperref-driver is set for some converters that are installed
2775  with \SpecialChar LyX
2776 .
2777  
2778 \change_deleted -712698321 1523206388
2779 None of these
2780 \change_inserted -712698321 1523206389
2781 The
2782 \change_unchanged
2783  last three
2784 \change_inserted -712698321 1523206400
2785  flags, however,
2786 \change_unchanged
2787  are presently 
2788 \change_inserted -712698321 1523206407
2789 not 
2790 \change_unchanged
2791 used in any of the 
2792 \change_inserted -712698321 1523206437
2793 pre-installed 
2794 \change_unchanged
2795 converters
2796 \change_deleted -712698321 1523206442
2797  that are installed with \SpecialChar LyX
2798
2799 \change_unchanged
2800 .
2801  
2802 \end_layout
2803
2804 \begin_layout Standard
2805 You do not have to define converters for all formats between which you want
2806  to convert.
2807  For example, you will note that there is no `\SpecialChar LyX
2808  to PostScript' converter,
2809  but \SpecialChar LyX
2810  will export PostScript.
2811  It does so by first creating a \SpecialChar LaTeX
2812  file (no converter needs to be defined
2813  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2814  to DVI' converter,
2815  and finally converting the resulting DVI file to PostScript.
2816  \SpecialChar LyX
2817  finds such `chains' of converters automatically, and it will always choose
2818  the shortest possible chain.
2819  You can, though, still define multiple conversion methods between file
2820  formats.
2821  For example, the standard \SpecialChar LyX
2822  configuration provides five ways to convert
2823  \SpecialChar LaTeX
2824  to PDF:
2825 \end_layout
2826
2827 \begin_layout Enumerate
2828 Directly, using 
2829 \begin_inset Flex Noun
2830 status collapsed
2831
2832 \begin_layout Plain Layout
2833 pdflatex
2834 \end_layout
2835
2836 \end_inset
2837
2838
2839 \end_layout
2840
2841 \begin_layout Enumerate
2842 via (DVI and) PostScript, using 
2843 \begin_inset Flex Noun
2844 status collapsed
2845
2846 \begin_layout Plain Layout
2847 ps2pdf
2848 \end_layout
2849
2850 \end_inset
2851
2852
2853 \end_layout
2854
2855 \begin_layout Enumerate
2856 via DVI, using 
2857 \begin_inset Flex Noun
2858 status collapsed
2859
2860 \begin_layout Plain Layout
2861 dvipdfm
2862 \end_layout
2863
2864 \end_inset
2865
2866
2867 \end_layout
2868
2869 \begin_layout Enumerate
2870 directly using 
2871 \begin_inset Flex Noun
2872 status collapsed
2873
2874 \begin_layout Plain Layout
2875 Xe\SpecialChar TeX
2876
2877 \end_layout
2878
2879 \end_inset
2880
2881
2882 \end_layout
2883
2884 \begin_layout Enumerate
2885 directly using 
2886 \begin_inset Flex Noun
2887 status collapsed
2888
2889 \begin_layout Plain Layout
2890 Lua\SpecialChar TeX
2891
2892 \end_layout
2893
2894 \end_inset
2895
2896
2897 \end_layout
2898
2899 \begin_layout Standard
2900 To define such alternate chains, you must define multiple target `file formats',
2901  as described in 
2902 \begin_inset CommandInset ref
2903 LatexCommand ref
2904 reference "sec:Formats"
2905
2906 \end_inset
2907
2908 .
2909  For example, in the standard configuration, the formats named 
2910 \begin_inset Flex Noun
2911 status collapsed
2912
2913 \begin_layout Plain Layout
2914 pdf
2915 \end_layout
2916
2917 \end_inset
2918
2919  (for 
2920 \begin_inset Flex Noun
2921 status collapsed
2922
2923 \begin_layout Plain Layout
2924 ps2pdf
2925 \end_layout
2926
2927 \end_inset
2928
2929 ), 
2930 \begin_inset Flex Noun
2931 status collapsed
2932
2933 \begin_layout Plain Layout
2934 pdf2
2935 \end_layout
2936
2937 \end_inset
2938
2939  (for 
2940 \begin_inset Flex Noun
2941 status collapsed
2942
2943 \begin_layout Plain Layout
2944 pdflatex
2945 \end_layout
2946
2947 \end_inset
2948
2949 ), 
2950 \begin_inset Flex Noun
2951 status collapsed
2952
2953 \begin_layout Plain Layout
2954 pdf3
2955 \end_layout
2956
2957 \end_inset
2958
2959  (for 
2960 \begin_inset Flex Noun
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 dvipdfm
2965 \end_layout
2966
2967 \end_inset
2968
2969 ), 
2970 \begin_inset Flex Noun
2971 status collapsed
2972
2973 \begin_layout Plain Layout
2974 pdf4
2975 \end_layout
2976
2977 \end_inset
2978
2979  (for 
2980 \begin_inset Flex Noun
2981 status collapsed
2982
2983 \begin_layout Plain Layout
2984 Xe\SpecialChar TeX
2985
2986 \end_layout
2987
2988 \end_inset
2989
2990 ), and 
2991 \begin_inset Flex Noun
2992 status collapsed
2993
2994 \begin_layout Plain Layout
2995 pdf5
2996 \end_layout
2997
2998 \end_inset
2999
3000  (for 
3001 \begin_inset Flex Noun
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005 Lua\SpecialChar TeX
3006
3007 \end_layout
3008
3009 \end_inset
3010
3011 ) are defined, all of which share the extension 
3012 \begin_inset Flex Noun
3013 status collapsed
3014
3015 \begin_layout Plain Layout
3016 .pdf
3017 \end_layout
3018
3019 \end_inset
3020
3021 , and which correspond to the conversion methods just mentioned.
3022 \end_layout
3023
3024 \begin_layout Chapter
3025 Internationalizing \SpecialChar LyX
3026
3027 \begin_inset CommandInset label
3028 LatexCommand label
3029 name "cha:Internationalizing-LyX"
3030
3031 \end_inset
3032
3033
3034 \end_layout
3035
3036 \begin_layout Standard
3037 \SpecialChar LyX
3038  supports using a translated interface.
3039  Last time we checked, \SpecialChar LyX
3040  provided text in thirty languages.
3041  The language of choice is called your 
3042 \emph on
3043 locale
3044 \emph default
3045 .
3046  (For further reading on locale settings, see also the documentation for
3047  locale that comes with your operating system.
3048  For Linux, the manual page for 
3049 \begin_inset Flex Code
3050 status collapsed
3051
3052 \begin_layout Plain Layout
3053 locale(5)
3054 \end_layout
3055
3056 \end_inset
3057
3058  could be a good place to start).
3059 \end_layout
3060
3061 \begin_layout Standard
3062 Notice that these translations will work, but do contain a few flaws.
3063  In particular, all dialogs have been designed with the English text in
3064  mind, which means that some of the translated text will be too large to
3065  fit within the space allocated.
3066  This is only a display problem and will not cause any harm.
3067  Also, you will find that some of the translations do not define shortcut
3068  keys for everything.
3069  Sometimes, there are simply not enough free letters to do it.
3070  Other times, the translator just hasn't got around to doing it yet.
3071  Our localization team, which you may wish to join,
3072 \begin_inset Foot
3073 status collapsed
3074
3075 \begin_layout Plain Layout
3076 If you are a fluent speaker of a language other than English, joining these
3077  teams is a great way to give back to the \SpecialChar LyX
3078  community!
3079 \end_layout
3080
3081 \end_inset
3082
3083  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3084 .
3085 \end_layout
3086
3087 \begin_layout Section
3088 Translating \SpecialChar LyX
3089
3090 \end_layout
3091
3092 \begin_layout Subsection
3093 Translating the graphical user interface (text messages).
3094 \end_layout
3095
3096 \begin_layout Standard
3097 \SpecialChar LyX
3098  uses the GNU 
3099 \begin_inset Flex Code
3100 status collapsed
3101
3102 \begin_layout Plain Layout
3103 gettext
3104 \end_layout
3105
3106 \end_inset
3107
3108  library to handle the internationalization of the interface.
3109  To have \SpecialChar LyX
3110  speak your favorite language in all menus and dialogs, you need
3111  a 
3112 \begin_inset Flex Code
3113 status collapsed
3114
3115 \begin_layout Plain Layout
3116 po
3117 \end_layout
3118
3119 \end_inset
3120
3121 -file for that language.
3122  When this is available, you'll have to generate a 
3123 \begin_inset Flex Code
3124 status collapsed
3125
3126 \begin_layout Plain Layout
3127 mo
3128 \end_layout
3129
3130 \end_inset
3131
3132 -file from it and install the 
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 mo
3138 \end_layout
3139
3140 \end_inset
3141
3142 -file.
3143  The process of doing all of this is explained in the documentation for
3144  GNU 
3145 \begin_inset Flex Code
3146 status collapsed
3147
3148 \begin_layout Plain Layout
3149 gettext
3150 \end_layout
3151
3152 \end_inset
3153
3154 .
3155  It is possible to do this just for yourself, but if you're going to do
3156  it, you might as well share the results of your labors with the rest of
3157  the \SpecialChar LyX
3158  community.
3159  Send a message to the \SpecialChar LyX
3160  developers' list for more information about how
3161  to proceed.
3162 \end_layout
3163
3164 \begin_layout Standard
3165 In short, this is what you should do (xx denotes the language code):
3166 \end_layout
3167
3168 \begin_layout Itemize
3169 Check out the \SpecialChar LyX
3170  source code.
3171  (See the 
3172 \begin_inset CommandInset href
3173 LatexCommand href
3174 name "information on the web"
3175 target "https://www.lyx.org/HowToUseGIT"
3176 literal "false"
3177
3178 \end_inset
3179
3180 .)
3181 \end_layout
3182
3183 \begin_layout Itemize
3184 Copy the file 
3185 \begin_inset Flex Code
3186 status collapsed
3187
3188 \begin_layout Plain Layout
3189 lyx.pot
3190 \end_layout
3191
3192 \end_inset
3193
3194  to the folder of the 
3195 \begin_inset Flex Code
3196 status collapsed
3197
3198 \begin_layout Plain Layout
3199 **.po
3200 \end_layout
3201
3202 \end_inset
3203
3204  files.
3205  Then rename it to 
3206 \begin_inset Flex Code
3207 status collapsed
3208
3209 \begin_layout Plain Layout
3210 xx.po
3211 \end_layout
3212
3213 \end_inset
3214
3215 .
3216  (If 
3217 \begin_inset Flex Code
3218 status collapsed
3219
3220 \begin_layout Plain Layout
3221 lyx.pot
3222 \end_layout
3223
3224 \end_inset
3225
3226  doesn't exist anywhere, it can be remade with the console command 
3227 \begin_inset Flex Code
3228 status collapsed
3229
3230 \begin_layout Plain Layout
3231 make lyx.pot
3232 \end_layout
3233
3234 \end_inset
3235
3236  in that directory, or you can use an existing po-file for some other language
3237  as a template).
3238 \end_layout
3239
3240 \begin_layout Itemize
3241 Edit 
3242 \begin_inset Flex Code
3243 status collapsed
3244
3245 \begin_layout Plain Layout
3246 xx.po
3247 \end_layout
3248
3249 \end_inset
3250
3251 .
3252 \begin_inset Foot
3253 status collapsed
3254
3255 \begin_layout Plain Layout
3256 This is just a text file, so it can be edited in any text editor.
3257  But there are also specialized programs that support such editing, such
3258  as 
3259 \family typewriter
3260 Poedit
3261 \family default
3262  (for all platforms) or 
3263 \family typewriter
3264 KBabel
3265 \family default
3266  (for KDE).
3267  
3268 \family typewriter
3269 Emacs
3270 \family default
3271  contains a `mode' for editing 
3272 \begin_inset Flex Code
3273 status collapsed
3274
3275 \begin_layout Plain Layout
3276 po
3277 \end_layout
3278
3279 \end_inset
3280
3281  files, as well, see 
3282 \begin_inset Flex URL
3283 status open
3284
3285 \begin_layout Plain Layout
3286
3287 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3288 \end_layout
3289
3290 \end_inset
3291
3292 .
3293 \end_layout
3294
3295 \end_inset
3296
3297  For some menu- and widget-labels, there are also shortcut keys that should
3298  be translated.
3299  Those keys are marked after a `|', and should be translated according to
3300  the words and phrases of the language.
3301  You should also fill also out the information at the beginning of the new
3302  
3303 \begin_inset Flex Code
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 po
3308 \end_layout
3309
3310 \end_inset
3311
3312 -file with your email-address, etc., so people know where to reach you with
3313  suggestions and entertaining flames.
3314 \end_layout
3315
3316 \begin_layout Standard
3317 If you are just doing this on your own, then:
3318 \end_layout
3319
3320 \begin_layout Itemize
3321 Generate 
3322 \begin_inset Flex Code
3323 status collapsed
3324
3325 \begin_layout Plain Layout
3326 xx.mo
3327 \end_layout
3328
3329 \end_inset
3330
3331 .
3332  This can be done with 
3333 \begin_inset Flex Code
3334 status collapsed
3335
3336 \begin_layout Plain Layout
3337 msgfmt -o xx.mo < xx.po
3338 \end_layout
3339
3340 \end_inset
3341
3342 .
3343 \end_layout
3344
3345 \begin_layout Itemize
3346 Copy the 
3347 \begin_inset Flex Code
3348 status collapsed
3349
3350 \begin_layout Plain Layout
3351 mo
3352 \end_layout
3353
3354 \end_inset
3355
3356 -file to your locale-tree, at the correct directory for application messages
3357  for the language
3358 \series bold
3359  
3360 \series default
3361 xx, and under the name 
3362 \begin_inset Flex Code
3363 status collapsed
3364
3365 \begin_layout Plain Layout
3366 lyx.mo
3367 \end_layout
3368
3369 \end_inset
3370
3371  (e.
3372 \begin_inset space \thinspace{}
3373 \end_inset
3374
3375 g.
3376 \begin_inset space \space{}
3377 \end_inset
3378
3379
3380 \begin_inset Flex Code
3381 status collapsed
3382
3383 \begin_layout Plain Layout
3384 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3385 \end_layout
3386
3387 \end_inset
3388
3389
3390 \series bold
3391 .
3392 \end_layout
3393
3394 \begin_layout Standard
3395 As said, however, it would be best if the new 
3396 \begin_inset Flex Code
3397 status collapsed
3398
3399 \begin_layout Plain Layout
3400 po
3401 \end_layout
3402
3403 \end_inset
3404
3405  file could be added to the \SpecialChar LyX
3406  distribution, so others can use it.
3407  Adding it involves making additional changes to \SpecialChar LyX
3408 .
3409  So send an email to the developers' mailing list if you're interested in
3410  doing that.
3411 \end_layout
3412
3413 \begin_layout Subsubsection
3414 Ambiguous messages
3415 \end_layout
3416
3417 \begin_layout Standard
3418 Sometimes it turns out that one English message needs to be translated into
3419  different messages in the target language.
3420  One example is the message 
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 To
3426 \end_layout
3427
3428 \end_inset
3429
3430  which has the German translation 
3431 \lang german
3432 Nach
3433 \lang english
3434  or 
3435 \lang german
3436 Bis
3437 \lang english
3438 , depending upon exactly what the English 
3439 \begin_inset Quotes eld
3440 \end_inset
3441
3442 to
3443 \begin_inset Quotes erd
3444 \end_inset
3445
3446  means.
3447  GNU 
3448 \begin_inset Flex Code
3449 status collapsed
3450
3451 \begin_layout Plain Layout
3452 gettext
3453 \end_layout
3454
3455 \end_inset
3456
3457  does not handle such ambiguous translations.
3458  Therefore you have to add some context information to the message: Instead
3459  of 
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464 To
3465 \end_layout
3466
3467 \end_inset
3468
3469  it becomes 
3470 \begin_inset Flex Code
3471 status collapsed
3472
3473 \begin_layout Plain Layout
3474 To[[as in 'From format x to format y']]
3475 \end_layout
3476
3477 \end_inset
3478
3479  and 
3480 \begin_inset Flex Code
3481 status collapsed
3482
3483 \begin_layout Plain Layout
3484 To[[as in 'From page x to page y']].
3485 \end_layout
3486
3487 \end_inset
3488
3489  Now the two occurrences of 
3490 \begin_inset Flex Code
3491 status collapsed
3492
3493 \begin_layout Plain Layout
3494 To
3495 \end_layout
3496
3497 \end_inset
3498
3499  are different for 
3500 \begin_inset Flex Code
3501 status collapsed
3502
3503 \begin_layout Plain Layout
3504 gettext
3505 \end_layout
3506
3507 \end_inset
3508
3509  and can be translated correctly to 
3510 \lang german
3511 Nach
3512 \lang english
3513  and 
3514 \lang german
3515 Bis
3516 \lang english
3517 , respectively.
3518 \end_layout
3519
3520 \begin_layout Standard
3521 Of course the context information needs to be stripped off the original
3522  message when no translation is used.
3523  Therefore you have to put it in double square brackets at the end of the
3524  message (see the example above).
3525  The translation mechanism of \SpecialChar LyX
3526  ensures that everything in double square
3527  brackets at the end of messages is removed before displaying the message.
3528 \end_layout
3529
3530 \begin_layout Subsection
3531 Translating the documentation.
3532 \end_layout
3533
3534 \begin_layout Standard
3535 The online documentation (in the 
3536 \begin_inset Flex Noun
3537 status collapsed
3538
3539 \begin_layout Plain Layout
3540 Help
3541 \end_layout
3542
3543 \end_inset
3544
3545 -menu) can (and should!) be translated.
3546  If there are translated versions of the documentation available
3547 \begin_inset Foot
3548 status collapsed
3549
3550 \begin_layout Plain Layout
3551 As of March 2008, at least some of the documents have been translated into
3552  fourteen languages, with the Tutorial available in a few more.
3553 \end_layout
3554
3555 \end_inset
3556
3557  and the locale is set accordingly, these will be used automagically by
3558  \SpecialChar LyX
3559 .
3560  \SpecialChar LyX
3561  looks for translated versions as 
3562 \begin_inset Flex Code
3563 status collapsed
3564
3565 \begin_layout Plain Layout
3566 LyXDir/doc/xx/DocName.lyx
3567 \end_layout
3568
3569 \end_inset
3570
3571 , where 
3572 \begin_inset Flex Code
3573 status collapsed
3574
3575 \begin_layout Plain Layout
3576 xx
3577 \end_layout
3578
3579 \end_inset
3580
3581  is the code for the language currently in use.
3582  If there are no translated documents, the default English versions will
3583  be displayed.
3584  Note that the translated versions must have the same filenames (
3585 \begin_inset Flex Code
3586 status collapsed
3587
3588 \begin_layout Plain Layout
3589 DocName
3590 \end_layout
3591
3592 \end_inset
3593
3594  above) as the original.
3595  If you feel up to translating the documentation (an excellent way to proof-read
3596  the original documentation by the way!), there are a few things you should
3597  do right away:
3598 \end_layout
3599
3600 \begin_layout Itemize
3601 Check out the documentation translation web page at 
3602 \begin_inset CommandInset href
3603 LatexCommand href
3604 name "https://www.lyx.org/Translation"
3605 target "https://www.lyx.org/Translation"
3606 literal "false"
3607
3608 \end_inset
3609
3610 .
3611  That way, you can find out which (if any) documents have already been translate
3612 d into your language.
3613  You can also find out who (if anyone) is organizing the effort to translate
3614  the documentation into your language.
3615  If no one is organizing the effort, please let us know that you're interested.
3616 \end_layout
3617
3618 \begin_layout Standard
3619 Once you get to actually translating, here's a few hints for you that may
3620  save you trouble:
3621 \end_layout
3622
3623 \begin_layout Itemize
3624 Join the documentation team! There is information on how to do that in 
3625 \begin_inset Flex Code
3626 status collapsed
3627
3628 \begin_layout Plain Layout
3629 Intro.lyx
3630 \end_layout
3631
3632 \end_inset
3633
3634  (
3635 \begin_inset Flex Noun
3636 status collapsed
3637
3638 \begin_layout Plain Layout
3639 Help\SpecialChar menuseparator
3640 Introduction
3641 \end_layout
3642
3643 \end_inset
3644
3645 ), which by the way is the first document you should translate.
3646 \end_layout
3647
3648 \begin_layout Itemize
3649 Learn the typographic conventions for the language you are translating to.
3650  Typography is an ancient art and over the centuries, a great variety of
3651  conventions have developed throughout different parts of the world.
3652  Also study the professional terminology amongst typographers in your country.
3653  Inventing your own terminology will only confuse the users.
3654  
3655 \emph on
3656 (Warning! Typography is addictive!)
3657 \end_layout
3658
3659 \begin_layout Itemize
3660 Make a copy of the document.
3661  This will be your working copy.
3662  You can use this as your personal translated help-file by placing it in
3663  your 
3664 \begin_inset Flex Code
3665 status collapsed
3666
3667 \begin_layout Plain Layout
3668 UserDir/doc/xx/
3669 \end_layout
3670
3671 \end_inset
3672
3673  directory.
3674 \begin_inset Note Greyedout
3675 status open
3676
3677 \begin_layout Plain Layout
3678
3679 \series bold
3680 Note:
3681 \series default
3682  For a complex document with external material (images, etc.), if you make
3683  a copy e.
3684 \begin_inset space \thinspace{}
3685 \end_inset
3686
3687 g.
3688 \begin_inset space \space{}
3689 \end_inset
3690
3691 in a temp dir, beware that the links to external material may be broken
3692  when the document is moved to a different place.
3693  The best way is to retrieve the \SpecialChar LyX
3694  tree from git (see 
3695 \begin_inset Flex URL
3696 status collapsed
3697
3698 \begin_layout Plain Layout
3699
3700 https://www.lyx.org/HowToUseGIT
3701 \end_layout
3702
3703 \end_inset
3704
3705 ) and to edit the doc file in place.
3706 \end_layout
3707
3708 \end_inset
3709
3710
3711 \end_layout
3712
3713 \begin_layout Itemize
3714 Sometimes the original document (from the \SpecialChar LyX
3715  team) will be updated.
3716  Use the source viewer at 
3717 \begin_inset CommandInset href
3718 LatexCommand href
3719 name "https://www.lyx.org/trac/timeline"
3720 target "https://www.lyx.org/trac/timeline"
3721 literal "false"
3722
3723 \end_inset
3724
3725  to see what has been changed.
3726  That way you can easily see which parts of the translated document need
3727  to be updated.
3728 \end_layout
3729
3730 \begin_layout Standard
3731 If you ever find an error in the original document, fix it and notify the
3732  rest of the documentation team of the changes! (You didn't forget to join
3733  the documentation team, did you?)
3734 \end_layout
3735
3736 \begin_layout Standard
3737 \begin_inset Branch OutDated
3738 inverted 0
3739 status collapsed
3740
3741 \begin_layout Section
3742 International Keyboard Support
3743 \end_layout
3744
3745 \begin_layout Standard
3746
3747 \emph on
3748 [Editor's Note: The following section is by
3749 \emph default
3750  
3751 \shape smallcaps
3752 \emph on
3753 Ivan Schreter
3754 \shape default
3755 .
3756  It needs to be fixed to conform to the new Documentation Style sheet and
3757  to make use of the new v1.0 features.
3758  The whole thing also needs to be merged with the section following it.-jw
3759  It may also be badly out of date.-rh (2008)]
3760 \end_layout
3761
3762 \begin_layout Subsection
3763 Defining Own Keymaps: Keymap File Format
3764 \end_layout
3765
3766 \begin_layout Standard
3767 Let's look at a keyboard definition file a little closer.
3768  It is a plain text file defining
3769 \end_layout
3770
3771 \begin_layout Itemize
3772 key-to-key or key-to-string translations
3773 \end_layout
3774
3775 \begin_layout Itemize
3776 dead keys
3777 \end_layout
3778
3779 \begin_layout Itemize
3780 dead keys exceptions
3781 \end_layout
3782
3783 \begin_layout Standard
3784 To define key-to-key or key-to-string translation, use this command:
3785 \end_layout
3786
3787 \begin_layout Quotation
3788 \begin_inset Flex Code
3789 status collapsed
3790
3791 \begin_layout Plain Layout
3792
3793 \backslash
3794 kmap
3795 \end_layout
3796
3797 \end_inset
3798
3799  
3800 \begin_inset Flex Code
3801 status collapsed
3802
3803 \begin_layout Plain Layout
3804 key
3805 \end_layout
3806
3807 \end_inset
3808
3809  outstring 
3810 \end_layout
3811
3812 \begin_layout Standard
3813 where 
3814 \begin_inset Flex Code
3815 status collapsed
3816
3817 \begin_layout Plain Layout
3818 key
3819 \end_layout
3820
3821 \end_inset
3822
3823  is the key to be translated and 
3824 \begin_inset Flex Code
3825 status collapsed
3826
3827 \begin_layout Plain Layout
3828 outstring
3829 \end_layout
3830
3831 \end_inset
3832
3833  is the string to be inserted into the document.
3834  To define dead keys, use:
3835 \end_layout
3836
3837 \begin_layout Quotation
3838 \begin_inset Flex Code
3839 status collapsed
3840
3841 \begin_layout Plain Layout
3842
3843 \backslash
3844 kmod
3845 \end_layout
3846
3847 \end_inset
3848
3849  
3850 \begin_inset Flex Code
3851 status collapsed
3852
3853 \begin_layout Plain Layout
3854 key
3855 \end_layout
3856
3857 \end_inset
3858
3859  deadkey
3860 \end_layout
3861
3862 \begin_layout Standard
3863 where 
3864 \begin_inset Flex Code
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868 key
3869 \end_layout
3870
3871 \end_inset
3872
3873  is a keyboard key and 
3874 \begin_inset Flex Code
3875 status collapsed
3876
3877 \begin_layout Plain Layout
3878 deadkey
3879 \end_layout
3880
3881 \end_inset
3882
3883  is dead key name.
3884  The following dead keys are supported (shortcut name is in parentheses):
3885 \end_layout
3886
3887 \begin_layout Quotation
3888
3889 \emph on
3890 Name
3891 \begin_inset space \hfill{}
3892 \end_inset
3893
3894 Example
3895 \end_layout
3896
3897 \begin_layout Quotation
3898 acute (acu)
3899 \begin_inset space \hfill{}
3900 \end_inset
3901
3902 áéíóú
3903 \end_layout
3904
3905 \begin_layout Quotation
3906 grave (gra)
3907 \begin_inset space \hfill{}
3908 \end_inset
3909
3910 àèìòù
3911 \end_layout
3912
3913 \begin_layout Quotation
3914 macron (mac)
3915 \begin_inset space \hfill{}
3916 \end_inset
3917
3918  ō
3919 \end_layout
3920
3921 \begin_layout Quotation
3922 tilde (til)
3923 \begin_inset space \hfill{}
3924 \end_inset
3925
3926 ñÑ
3927 \end_layout
3928
3929 \begin_layout Quotation
3930 underbar (underb)
3931 \begin_inset space \hfill{}
3932 \end_inset
3933
3934
3935 \begin_inset ERT
3936 status open
3937
3938 \begin_layout Plain Layout
3939
3940
3941 \backslash
3942 b o
3943 \end_layout
3944
3945 \end_inset
3946
3947
3948 \end_layout
3949
3950 \begin_layout Quotation
3951 cedilla (ced)
3952 \begin_inset space \hfill{}
3953 \end_inset
3954
3955 çÇ
3956 \end_layout
3957
3958 \begin_layout Quotation
3959 underdot (underd)
3960 \begin_inset space \hfill{}
3961 \end_inset
3962
3963
3964 \begin_inset ERT
3965 status open
3966
3967 \begin_layout Plain Layout
3968
3969
3970 \backslash
3971 d o
3972 \end_layout
3973
3974 \end_inset
3975
3976
3977 \end_layout
3978
3979 \begin_layout Quotation
3980 circumflex (circu)
3981 \begin_inset space \hfill{}
3982 \end_inset
3983
3984 âêîôû
3985 \end_layout
3986
3987 \begin_layout Quotation
3988 circle (circl)
3989 \begin_inset space \hfill{}
3990 \end_inset
3991
3992 ÅůŮ
3993 \end_layout
3994
3995 \begin_layout Quotation
3996 tie (tie)
3997 \begin_inset space \hfill{}
3998 \end_inset
3999
4000
4001 \begin_inset ERT
4002 status open
4003
4004 \begin_layout Plain Layout
4005
4006
4007 \backslash
4008 t o
4009 \end_layout
4010
4011 \end_inset
4012
4013
4014 \end_layout
4015
4016 \begin_layout Quotation
4017 breve (bre)
4018 \begin_inset space \hfill{}
4019 \end_inset
4020
4021 ă
4022 \begin_inset ERT
4023 status open
4024
4025 \begin_layout Plain Layout
4026
4027
4028 \backslash
4029 u o
4030 \end_layout
4031
4032 \end_inset
4033
4034
4035 \end_layout
4036
4037 \begin_layout Quotation
4038 caron (car)
4039 \begin_inset space \hfill{}
4040 \end_inset
4041
4042 čšž
4043 \end_layout
4044
4045 \begin_layout Quotation
4046 hungarian umlaut (hug)
4047 \begin_inset space \hfill{}
4048 \end_inset
4049
4050 őű
4051 \end_layout
4052
4053 \begin_layout Quotation
4054 umlaut (uml)
4055 \begin_inset space \hfill{}
4056 \end_inset
4057
4058 äöü
4059 \end_layout
4060
4061 \begin_layout Quotation
4062 dot (dot)
4063 \begin_inset space \hfill{}
4064 \end_inset
4065
4066 ż
4067 \begin_inset ERT
4068 status open
4069
4070 \begin_layout Plain Layout
4071
4072
4073 \backslash
4074 .s
4075 \end_layout
4076
4077 \end_inset
4078
4079
4080 \end_layout
4081
4082 \begin_layout Standard
4083 Since in many international keyboards there are exceptions to what some
4084  dead keys should do, you can define them using
4085 \end_layout
4086
4087 \begin_layout Quotation
4088 \begin_inset Flex Code
4089 status collapsed
4090
4091 \begin_layout Plain Layout
4092
4093 \backslash
4094 kxmod
4095 \end_layout
4096
4097 \end_inset
4098
4099  deadkey key outstring
4100 \end_layout
4101
4102 \begin_layout Standard
4103 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4104 , so you put in
4105 \end_layout
4106
4107 \begin_layout Quotation
4108 \begin_inset Flex Code
4109 status collapsed
4110
4111 \begin_layout Plain Layout
4112
4113 \backslash
4114 kxmod
4115 \end_layout
4116
4117 \end_inset
4118
4119  caron o "
4120 \backslash
4121 ^o"
4122 \end_layout
4123
4124 \begin_layout Standard
4125 to make it work correctly.
4126  Also, you have to define as exceptions dead keys over i and j, to remove
4127  the dot from them before inserting an accent mark.
4128  I will change this when the time comes, but so far I haven't had time.
4129 \end_layout
4130
4131 \begin_layout Standard
4132 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4133  double backslash.
4134  Also, quotes and 
4135 \begin_inset Flex Code
4136 status collapsed
4137
4138 \begin_layout Plain Layout
4139 #
4140 \end_layout
4141
4142 \end_inset
4143
4144  have different meaning.
4145  
4146 \begin_inset Flex Code
4147 status collapsed
4148
4149 \begin_layout Plain Layout
4150 #
4151 \end_layout
4152
4153 \end_inset
4154
4155  marks comments, quotes start and end \SpecialChar LaTeX
4156 -style commands.
4157  To enter quote, you'll need to use 
4158 \begin_inset Flex Code
4159 status collapsed
4160
4161 \begin_layout Plain Layout
4162
4163 \backslash
4164 "
4165 \end_layout
4166
4167 \end_inset
4168
4169 , to enter 
4170 \begin_inset Flex Code
4171 status collapsed
4172
4173 \begin_layout Plain Layout
4174 #
4175 \end_layout
4176
4177 \end_inset
4178
4179 , use 
4180 \begin_inset Flex Code
4181 status collapsed
4182
4183 \begin_layout Plain Layout
4184
4185 \backslash
4186 #
4187 \end_layout
4188
4189 \end_inset
4190
4191 .
4192 \end_layout
4193
4194 \begin_layout Standard
4195 If you make a keyboard description file that works for your language, please
4196  mail it to me, so I can include it in the next keymap distribution.
4197 \end_layout
4198
4199 \begin_layout Standard
4200 More keywords will be supported in keymap configuration file in future,
4201  like
4202 \end_layout
4203
4204 \begin_layout Itemize
4205 \begin_inset Flex Code
4206 status collapsed
4207
4208 \begin_layout Plain Layout
4209
4210 \backslash
4211 kinclude filename
4212 \end_layout
4213
4214 \end_inset
4215
4216
4217 \emph on
4218
4219 \begin_inset space \hfill{}
4220 \end_inset
4221
4222
4223 \begin_inset Flex Code
4224 status collapsed
4225
4226 \begin_layout Plain Layout
4227 include
4228 \end_layout
4229
4230 \end_inset
4231
4232  another file
4233 \end_layout
4234
4235 \begin_layout Itemize
4236 \begin_inset Flex Code
4237 status collapsed
4238
4239 \begin_layout Plain Layout
4240
4241 \backslash
4242 kprog program
4243 \end_layout
4244
4245 \end_inset
4246
4247
4248 \emph on
4249
4250 \begin_inset space \hfill{}
4251 \end_inset
4252
4253
4254 \begin_inset Flex Code
4255 status collapsed
4256
4257 \begin_layout Plain Layout
4258 define
4259 \end_layout
4260
4261 \end_inset
4262
4263  an external keymap translation program 
4264 \end_layout
4265
4266 \begin_layout Standard
4267 Also, it should look into 
4268 \begin_inset Flex Code
4269 status collapsed
4270
4271 \begin_layout Plain Layout
4272 lyxrc
4273 \end_layout
4274
4275 \end_inset
4276
4277  file for defaults, too (for example, a 
4278 \begin_inset Flex Code
4279 status collapsed
4280
4281 \begin_layout Plain Layout
4282
4283 \backslash
4284 kinclude
4285 \end_layout
4286
4287 \end_inset
4288
4289  option to include default keyboard).
4290 \end_layout
4291
4292 \end_inset
4293
4294
4295 \end_layout
4296
4297 \begin_layout Section
4298 International Keymap Stuff
4299 \begin_inset CommandInset label
4300 LatexCommand label
4301 name "sec:International-Keymap-Stuff"
4302
4303 \end_inset
4304
4305
4306 \end_layout
4307
4308 \begin_layout Standard
4309 \begin_inset Note Note
4310 status open
4311
4312 \begin_layout Plain Layout
4313 In doing the revisions on this document in March 2008, I did not look over
4314  this stuff, as I do not understand it.
4315  It would be good if someone else could do so.
4316  (RH)
4317 \end_layout
4318
4319 \end_inset
4320
4321
4322 \end_layout
4323
4324 \begin_layout Standard
4325 The next two sections describe the 
4326 \begin_inset Flex Code
4327 status collapsed
4328
4329 \begin_layout Plain Layout
4330
4331 \shape up
4332 .kmap
4333 \end_layout
4334
4335 \end_inset
4336
4337  and 
4338 \begin_inset Flex Code
4339 status collapsed
4340
4341 \begin_layout Plain Layout
4342
4343 \shape up
4344 .cdef
4345 \end_layout
4346
4347 \end_inset
4348
4349  file syntax in detail.
4350  These sections should help you design your own key map if the ones provided
4351  do not meet your needs.
4352 \end_layout
4353
4354 \begin_layout Subsection
4355 The .kmap File
4356 \end_layout
4357
4358 \begin_layout Standard
4359
4360 \shape up
4361 .
4362 \begin_inset Flex Code
4363 status collapsed
4364
4365 \begin_layout Plain Layout
4366 kmap
4367 \end_layout
4368
4369 \end_inset
4370
4371  file maps keystrokes to characters or strings.
4372  As the name suggests, it sets a keyboard mapping.
4373  The 
4374 \begin_inset Flex Code
4375 status collapsed
4376
4377 \begin_layout Plain Layout
4378 .kmap
4379 \end_layout
4380
4381 \end_inset
4382
4383
4384 \shape default
4385  file keywords 
4386 \shape up
4387
4388 \begin_inset Flex Code
4389 status collapsed
4390
4391 \begin_layout Plain Layout
4392
4393 \shape up
4394 kmap
4395 \end_layout
4396
4397 \end_inset
4398
4399
4400 \shape default
4401 ,
4402 \shape up
4403  
4404 \shape default
4405
4406 \begin_inset Flex Code
4407 status collapsed
4408
4409 \begin_layout Plain Layout
4410
4411 \shape up
4412 kmod
4413 \end_layout
4414
4415 \end_inset
4416
4417 ,
4418 \shape up
4419  
4420 \shape default
4421
4422 \begin_inset Flex Code
4423 status collapsed
4424
4425 \begin_layout Plain Layout
4426
4427 \shape up
4428 kxmod
4429 \end_layout
4430
4431 \end_inset
4432
4433 , and 
4434 \begin_inset Flex Code
4435 status collapsed
4436
4437 \begin_layout Plain Layout
4438
4439 \shape up
4440 kcomb
4441 \end_layout
4442
4443 \end_inset
4444
4445  are described in this section.
4446 \end_layout
4447
4448 \begin_layout Labeling
4449 \labelwidthstring 00.00.0000
4450 \begin_inset Flex Code
4451 status collapsed
4452
4453 \begin_layout Plain Layout
4454
4455 \shape up
4456 kmap
4457 \end_layout
4458
4459 \end_inset
4460
4461  Map a character to a string
4462 \end_layout
4463
4464 \begin_layout LyX-Code
4465
4466 \backslash
4467 kmap 
4468 \family roman
4469 \emph on
4470 char
4471 \family default
4472 \emph default
4473  
4474 \family roman
4475 \emph on
4476 string
4477 \end_layout
4478
4479 \begin_layout Standard
4480 This will ma
4481 \family roman
4482 p
4483 \family default
4484  
4485 \family roman
4486 \emph on
4487 char
4488 \family default
4489 \emph default
4490  
4491 \family roman
4492 to
4493 \family default
4494  
4495 \family roman
4496 \emph on
4497 string
4498 \emph default
4499 .
4500  Note that in
4501 \family default
4502  
4503 \family roman
4504 \emph on
4505 string
4506 \emph default
4507 ,
4508 \family default
4509  
4510 \family roman
4511 \shape up
4512 the double-quote (")
4513 \family default
4514 \shape default
4515  
4516 \family roman
4517 and
4518 \family default
4519  
4520 \family roman
4521 \shape up
4522 the backslash (
4523 \backslash
4524 )
4525 \family default
4526 \shape default
4527  
4528 \family roman
4529 must be escaped with a preceding backslash (
4530 \shape up
4531
4532 \backslash
4533
4534 \shape default
4535 )
4536 \family default
4537 .
4538 \end_layout
4539
4540 \begin_layout Standard
4541 An example of a 
4542 \begin_inset Flex Noun
4543 status collapsed
4544
4545 \begin_layout Plain Layout
4546
4547 \shape up
4548 kmap
4549 \end_layout
4550
4551 \end_inset
4552
4553  statement to cause the symbol 
4554 \begin_inset Flex Noun
4555 status collapsed
4556
4557 \begin_layout Plain Layout
4558
4559 \shape up
4560 /
4561 \end_layout
4562
4563 \end_inset
4564
4565  to be output for the keystroke 
4566 \begin_inset Flex Noun
4567 status collapsed
4568
4569 \begin_layout Plain Layout
4570
4571 \shape up
4572 &
4573 \end_layout
4574
4575 \end_inset
4576
4577  is:
4578 \end_layout
4579
4580 \begin_layout LyX-Code
4581
4582 \backslash
4583 kmap & /
4584 \end_layout
4585
4586 \begin_layout Labeling
4587 \labelwidthstring 00.00.0000
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592
4593 \shape up
4594 kmod
4595 \end_layout
4596
4597 \end_inset
4598
4599  Specify an accent character
4600 \end_layout
4601
4602 \begin_layout LyX-Code
4603
4604 \backslash
4605 kmod 
4606 \family roman
4607 \emph on
4608 char accent allowed
4609 \end_layout
4610
4611 \begin_layout Standard
4612 This will make the cha
4613 \family roman
4614 racter
4615 \family default
4616  
4617 \family roman
4618 \emph on
4619 char
4620 \family default
4621 \emph default
4622  
4623 \family roman
4624 \shape up
4625 \emph on
4626 be an accent
4627 \family default
4628 \shape default
4629 \emph default
4630  
4631 \family roman
4632 \shape up
4633 on the
4634 \family default
4635 \shape default
4636  
4637 \family roman
4638 \shape up
4639 \emph on
4640 allowed
4641 \family default
4642 \shape default
4643 \emph default
4644  
4645 \family roman
4646 \shape up
4647 cha
4648 \family default
4649 racter(s).
4650  This is the dead key
4651 \begin_inset Foot
4652 status collapsed
4653
4654 \begin_layout Plain Layout
4655 The term 
4656 \family roman
4657 \emph on
4658 dead key
4659 \family default
4660 \emph default
4661  refers to a key that does not produce a character by itself, but when followed
4662  with another key, produces the desired accent character.
4663  For example, a German characte
4664 \family roman
4665 r with an umlaut like
4666 \family default
4667  
4668 \family roman
4669 \emph on
4670 ä
4671 \family default
4672 \emph default
4673  
4674 \family roman
4675 can be produced in this manner.
4676 \end_layout
4677
4678 \end_inset
4679
4680  mechanism.
4681  
4682 \end_layout
4683
4684 \begin_layout Standard
4685 If you 
4686 \family roman
4687 hit
4688 \family default
4689  
4690 \family roman
4691 \emph on
4692 char
4693 \family default
4694 \emph default
4695  
4696 \family roman
4697 and then another key not in
4698 \family default
4699  
4700 \family roman
4701 \emph on
4702 allowed
4703 \emph default
4704 , you will get a
4705 \family default
4706  
4707 \family roman
4708 \emph on
4709 char
4710 \family default
4711 \emph default
4712  
4713 \family roman
4714 followed by the other, not allowed key, as output.
4715
4716 \family default
4717  Note that a 
4718 \begin_inset Flex Noun
4719 status collapsed
4720
4721 \begin_layout Plain Layout
4722
4723 \shape up
4724 Backspace
4725 \end_layout
4726
4727 \end_inset
4728
4729  cancels a dead key, so if 
4730 \family roman
4731 you hit
4732 \family default
4733  
4734 \family roman
4735 \emph on
4736 char
4737 \family default
4738 \emph default
4739  
4740 \begin_inset Flex Noun
4741 status collapsed
4742
4743 \begin_layout Plain Layout
4744
4745 \shape up
4746 \emph on
4747 Backspace
4748 \end_layout
4749
4750 \end_inset
4751
4752 , the cursor will not go one position backwards but will instead cancel
4753  the effect t
4754 \family roman
4755 hat
4756 \family default
4757  
4758 \family roman
4759 \shape up
4760 \emph on
4761 char
4762 \family default
4763 \shape default
4764 \emph default
4765  
4766 \family roman
4767 \shape up
4768 might have had on the next keystroke.
4769  
4770 \end_layout
4771
4772 \begin_layout Standard
4773 The following example specifies that the character ' is to be an acute accent,
4774  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4775 \end_layout
4776
4777 \begin_layout LyX-Code
4778
4779 \backslash
4780 kmod ' acute aeiouAEIOU
4781 \end_layout
4782
4783 \begin_layout Labeling
4784 \labelwidthstring 00.00.0000
4785 \begin_inset Flex Code
4786 status collapsed
4787
4788 \begin_layout Plain Layout
4789 kxmod
4790 \end_layout
4791
4792 \end_inset
4793
4794  Specify an exception to the accent character
4795 \end_layout
4796
4797 \begin_layout LyX-Code
4798
4799 \backslash
4800 kxmod  
4801 \family roman
4802 \emph on
4803 accent char result
4804 \end_layout
4805
4806 \begin_layout Standard
4807 This defines an exce
4808 \family roman
4809 ption for
4810 \family default
4811  
4812 \family roman
4813 \emph on
4814 accent
4815 \family default
4816 \emph default
4817  
4818 \family roman
4819 on
4820 \family default
4821  
4822 \family roman
4823 \emph on
4824 char
4825 \emph default
4826 .
4827  T
4828 \shape up
4829 he
4830 \family default
4831 \shape default
4832  
4833 \family roman
4834 \shape up
4835 \emph on
4836 accent
4837 \family default
4838 \shape default
4839 \emph default
4840  
4841 \family roman
4842 \shape up
4843 must
4844 \family default
4845 \shape default
4846  
4847 \shape up
4848 have been assigned a keystroke with a previous
4849 \shape default
4850  
4851 \begin_inset Flex Code
4852 status collapsed
4853
4854 \begin_layout Plain Layout
4855
4856 \shape up
4857
4858 \backslash
4859 kmo
4860 \shape default
4861 d
4862 \end_layout
4863
4864 \end_inset
4865
4866  declar
4867 \family roman
4868 ation and
4869 \family default
4870  
4871 \family roman
4872 \emph on
4873 char
4874 \family default
4875 \emph default
4876  
4877 \family roman
4878 must not belong in the
4879 \family default
4880  
4881 \family roman
4882 \emph on
4883 allowed
4884 \family default
4885 \emph default
4886  
4887 \family roman
4888 set of
4889 \family default
4890  
4891 \family roman
4892 \emph on
4893 accent
4894 \emph default
4895 .
4896  When
4897 \family default
4898  
4899 \family roman
4900 \shape up
4901 you enter the
4902 \family default
4903 \shape default
4904  
4905 \family roman
4906 \shape up
4907 \emph on
4908 accent char
4909 \family default
4910 \shape default
4911 \emph default
4912  
4913 \family roman
4914 \shape up
4915 sequence,
4916 \family default
4917 \shape default
4918  
4919 \family roman
4920 \shape up
4921 \emph on
4922 result
4923 \emph default
4924  is produced.
4925  If such a declaration does not exist in
4926 \family default
4927 \shape default
4928  
4929 \shape up
4930 the
4931 \shape default
4932  
4933 \begin_inset Flex Code
4934 status collapsed
4935
4936 \begin_layout Plain Layout
4937
4938 \shape up
4939 .kmap
4940 \end_layout
4941
4942 \end_inset
4943
4944  file and yo
4945 \family roman
4946 u enter
4947 \family default
4948  
4949 \family roman
4950 \emph on
4951 accent char
4952 \emph default
4953 , you get
4954 \family default
4955  
4956 \family roman
4957 \emph on
4958 accent_key char
4959 \emph default
4960  where
4961 \family default
4962  
4963 \family roman
4964 \emph on
4965 accent_key
4966 \emph default
4967  is the first arg
4968 \family default
4969 ument of the 
4970 \begin_inset Flex Code
4971 status collapsed
4972
4973 \begin_layout Plain Layout
4974
4975 \shape up
4976
4977 \backslash
4978 kmod
4979 \end_layout
4980
4981 \end_inset
4982
4983  declaration.
4984  
4985 \end_layout
4986
4987 \begin_layout Standard
4988 The following command produces causes äi to be produced when you enter acute-i
4989  ('i):
4990 \end_layout
4991
4992 \begin_layout LyX-Code
4993
4994 \backslash
4995 kxmod acute i "
4996 \backslash
4997
4998 \backslash
4999 '{
5000 \backslash
5001
5002 \backslash
5003 i}"
5004 \end_layout
5005
5006 \begin_layout Labeling
5007 \labelwidthstring 00.00.0000
5008 \begin_inset Flex Code
5009 status collapsed
5010
5011 \begin_layout Plain Layout
5012 kcomb
5013 \end_layout
5014
5015 \end_inset
5016
5017  Combine two accent characters
5018 \end_layout
5019
5020 \begin_layout LyX-Code
5021
5022 \backslash
5023 kcomb 
5024 \family roman
5025 \emph on
5026 accent1 accent2 allowed
5027 \end_layout
5028
5029 \begin_layout Standard
5030 This one is getting pretty esoteric.
5031  It allows you to combine the effect 
5032 \family roman
5033 of
5034 \family default
5035  
5036 \family roman
5037 \emph on
5038 accent1
5039 \family default
5040 \emph default
5041  
5042 \family roman
5043 and
5044 \family default
5045  
5046 \family roman
5047 \emph on
5048 accent2
5049 \family default
5050 \emph default
5051  
5052 \family roman
5053 (in that order!) on
5054 \family default
5055  
5056 \family roman
5057 \emph on
5058 allowed
5059 \family default
5060 \emph default
5061  
5062 \family roman
5063 chars.
5064  The keystrokes for
5065 \family default
5066  
5067 \family roman
5068 \emph on
5069 accent1
5070 \family default
5071 \emph default
5072  
5073 \family roman
5074 and
5075 \family default
5076  
5077 \family roman
5078 \emph on
5079 accent2
5080 \family default
5081 \emph default
5082  
5083 \family roman
5084 must have be
5085 \family default
5086 en set with a 
5087 \begin_inset Flex Code
5088 status collapsed
5089
5090 \begin_layout Plain Layout
5091
5092 \shape up
5093
5094 \backslash
5095 kmod
5096 \end_layout
5097
5098 \end_inset
5099
5100  command at 
5101 \family roman
5102 a
5103 \family default
5104  
5105 \family roman
5106 \emph on
5107 previous
5108 \family default
5109 \emph default
5110  
5111 \family roman
5112 point in the
5113 \family default
5114  file.
5115  
5116 \end_layout
5117
5118 \begin_layout Standard
5119 Consider this example from the 
5120 \begin_inset Flex Code
5121 status collapsed
5122
5123 \begin_layout Plain Layout
5124
5125 \shape up
5126 greek.kmap
5127 \end_layout
5128
5129 \end_inset
5130
5131  file:
5132 \end_layout
5133
5134 \begin_layout LyX-Code
5135
5136 \backslash
5137 kmod ; acute aeioyvhAEIOYVH 
5138 \backslash
5139 kmod : umlaut iyIY 
5140 \backslash
5141 kcomb acute umlaut iyIY
5142 \end_layout
5143
5144 \begin_layout Standard
5145 This allows you to press 
5146 \begin_inset Flex Noun
5147 status collapsed
5148
5149 \begin_layout Plain Layout
5150
5151 \shape up
5152 ;:i
5153 \end_layout
5154
5155 \end_inset
5156
5157  and get the effect of 
5158 \begin_inset Flex Code
5159 status collapsed
5160
5161 \begin_layout Plain Layout
5162
5163 \shape up
5164
5165 \backslash
5166 '{
5167 \backslash
5168 "{i}}
5169 \end_layout
5170
5171 \end_inset
5172
5173 .
5174  
5175 \family roman
5176 \shape up
5177 A backspace
5178 \family default
5179 \shape default
5180  in this case cancels the last dead key, so if you press 
5181 \begin_inset Flex Noun
5182 status collapsed
5183
5184 \begin_layout Plain Layout
5185
5186 \shape up
5187 ;: Backspace i
5188 \end_layout
5189
5190 \end_inset
5191
5192  you get 
5193 \begin_inset Flex Code
5194 status collapsed
5195
5196 \begin_layout Plain Layout
5197
5198 \shape up
5199
5200 \backslash
5201 '{i}
5202 \end_layout
5203
5204 \end_inset
5205
5206 .
5207 \end_layout
5208
5209 \begin_layout Subsection
5210 The .cdef File
5211 \end_layout
5212
5213 \begin_layout Standard
5214 After the 
5215 \begin_inset Flex Code
5216 status collapsed
5217
5218 \begin_layout Plain Layout
5219
5220 \shape up
5221 .kmap
5222 \end_layout
5223
5224 \end_inset
5225
5226  mapping is performed, a 
5227 \begin_inset Flex Code
5228 status collapsed
5229
5230 \begin_layout Plain Layout
5231
5232 \shape up
5233 .cde
5234 \shape default
5235 f
5236 \end_layout
5237
5238 \end_inset
5239
5240  file maps the strings that the symbols generate to characters in the current
5241  font.
5242  The \SpecialChar LyX
5243  distribution currently includes at least the 
5244 \begin_inset Flex Code
5245 status collapsed
5246
5247 \begin_layout Plain Layout
5248
5249 \shape up
5250 iso8859-1.cdef
5251 \end_layout
5252
5253 \end_inset
5254
5255  and 
5256 \begin_inset Flex Code
5257 status collapsed
5258
5259 \begin_layout Plain Layout
5260
5261 \shape up
5262 iso8859-2.cdef
5263 \end_layout
5264
5265 \end_inset
5266
5267  files.
5268 \end_layout
5269
5270 \begin_layout Standard
5271 In general the 
5272 \begin_inset Flex Code
5273 status collapsed
5274
5275 \begin_layout Plain Layout
5276
5277 \shape up
5278 .cdef
5279 \end_layout
5280
5281 \end_inset
5282
5283  file is a sequence of declarations of the form
5284 \end_layout
5285
5286 \begin_layout LyX-Code
5287
5288 \family roman
5289 \emph on
5290 char_index_in_set
5291 \family default
5292 \emph default
5293  
5294 \family roman
5295 \emph on
5296  string
5297 \end_layout
5298
5299 \begin_layout Standard
5300 For example, in order to map 
5301 \begin_inset Flex Noun
5302 status collapsed
5303
5304 \begin_layout Plain Layout
5305
5306 \shape up
5307
5308 \backslash
5309 '{e}
5310 \end_layout
5311
5312 \end_inset
5313
5314  to the corresponding character in the iso-8859-1 set (233), the following
5315  declaration is used
5316 \end_layout
5317
5318 \begin_layout LyX-Code
5319 233 "
5320 \backslash
5321
5322 \backslash
5323 '{e}"
5324 \end_layout
5325
5326 \begin_layout Standard
5327 with 
5328 \begin_inset Flex Code
5329 status collapsed
5330
5331 \begin_layout Plain Layout
5332
5333 \backslash
5334
5335 \end_layout
5336
5337 \end_inset
5338
5339  and 
5340 \begin_inset Flex Code
5341 status collapsed
5342
5343 \begin_layout Plain Layout
5344 "
5345 \end_layout
5346
5347 \end_inset
5348
5349  being escap
5350 \family roman
5351 ed in
5352 \family default
5353  
5354 \family roman
5355 \emph on
5356 string
5357 \emph default
5358 .
5359  Note that
5360 \family default
5361  the same character can apply to more than one string.
5362  In the 
5363 \begin_inset Flex Code
5364 status collapsed
5365
5366 \begin_layout Plain Layout
5367 i
5368 \shape up
5369 so-8859-7.cdef
5370 \end_layout
5371
5372 \end_inset
5373
5374  file you have
5375 \end_layout
5376
5377 \begin_layout LyX-Code
5378 192 "
5379 \backslash
5380
5381 \backslash
5382 '{
5383 \backslash
5384
5385 \backslash
5386
5387 \backslash
5388 "{i}}"
5389 \begin_inset Newline newline
5390 \end_inset
5391
5392 192 "
5393 \backslash
5394
5395 \backslash
5396
5397 \backslash
5398 "{
5399 \backslash
5400
5401 \backslash
5402 '{i}}"
5403 \end_layout
5404
5405 \begin_layout Standard
5406 If \SpecialChar LyX
5407  cannot find a mapping for the string produced by the keystroke or a
5408  deadkey sequence, it will check if it looks like an accented char and try
5409  to draw an accent over the character on screen.
5410 \end_layout
5411
5412 \begin_layout Subsection
5413 Dead Keys
5414 \end_layout
5415
5416 \begin_layout Standard
5417 There is a second way to add support for international characters through
5418  so-called dead-keys.
5419  A dead-key works in combination with a letter to produce an accented character.
5420  Here, we'll explain how to create a really simple dead-key to illustrate
5421  how they work.
5422 \end_layout
5423
5424 \begin_layout Standard
5425 Suppose you happen to need the circumflex character, 
5426 \begin_inset Quotes eld
5427 \end_inset
5428
5429  ̂
5430 \begin_inset Quotes erd
5431 \end_inset
5432
5433 .
5434  You could bind the 
5435 \begin_inset Flex Noun
5436 status collapsed
5437
5438 \begin_layout Plain Layout
5439 ^
5440 \end_layout
5441
5442 \end_inset
5443
5444 -key [a.k.a.
5445 \begin_inset space ~
5446 \end_inset
5447
5448
5449 \begin_inset Flex Noun
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 Shift-6
5454 \end_layout
5455
5456 \end_inset
5457
5458 ] to the \SpecialChar LyX
5459  command 
5460 \begin_inset Flex Code
5461 status collapsed
5462
5463 \begin_layout Plain Layout
5464 accent-circumflex
5465 \end_layout
5466
5467 \end_inset
5468
5469  in your 
5470 \begin_inset Flex Code
5471 status collapsed
5472
5473 \begin_layout Plain Layout
5474 lyxrc
5475 \end_layout
5476
5477 \end_inset
5478
5479  file.
5480  Now, whenever you type the 
5481 \begin_inset Flex Noun
5482 status collapsed
5483
5484 \begin_layout Plain Layout
5485 ^
5486 \end_layout
5487
5488 \end_inset
5489
5490 -key followed by a letter, that letter will have a circumflex accent on
5491  it.
5492  For example, the sequence 
5493 \begin_inset Quotes eld
5494 \end_inset
5495
5496
5497 \begin_inset Flex Noun
5498 status collapsed
5499
5500 \begin_layout Plain Layout
5501 ^e
5502 \end_layout
5503
5504 \end_inset
5505
5506
5507 \begin_inset Quotes erd
5508 \end_inset
5509
5510  produces the letter: 
5511 \begin_inset Quotes eld
5512 \end_inset
5513
5514 ê
5515 \begin_inset Quotes erd
5516 \end_inset
5517
5518 .
5519  If you tried to type 
5520 \begin_inset Quotes eld
5521 \end_inset
5522
5523
5524 \begin_inset Flex Noun
5525 status collapsed
5526
5527 \begin_layout Plain Layout
5528 ^t
5529 \end_layout
5530
5531 \end_inset
5532
5533
5534 \begin_inset Quotes erd
5535 \end_inset
5536
5537 , however, \SpecialChar LyX
5538  will complain with a beep, since a 
5539 \begin_inset Quotes eld
5540 \end_inset
5541
5542
5543 \begin_inset Flex Noun
5544 status collapsed
5545
5546 \begin_layout Plain Layout
5547 t
5548 \end_layout
5549
5550 \end_inset
5551
5552
5553 \begin_inset Quotes erd
5554 \end_inset
5555
5556  never takes a circumflex accent.
5557  Hitting 
5558 \begin_inset Flex Noun
5559 status collapsed
5560
5561 \begin_layout Plain Layout
5562 Space
5563 \end_layout
5564
5565 \end_inset
5566
5567  after a dead-key produces the bare-accent.
5568  Please note this last point! If you bind a key to a dead-key, you'll need
5569  to rebind the character on that key to yet another key.
5570  Binding the 
5571 \begin_inset Flex Noun
5572 status collapsed
5573
5574 \begin_layout Plain Layout
5575 ,-key
5576 \end_layout
5577
5578 \end_inset
5579
5580  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5581 \end_layout
5582
5583 \begin_layout Standard
5584 One common way to bind dead-keys is to use 
5585 \begin_inset Flex Noun
5586 status collapsed
5587
5588 \begin_layout Plain Layout
5589 Meta-
5590 \end_layout
5591
5592 \end_inset
5593
5594
5595 \begin_inset Flex Noun
5596 status collapsed
5597
5598 \begin_layout Plain Layout
5599 Ctrl-
5600 \end_layout
5601
5602 \end_inset
5603
5604 , and 
5605 \begin_inset Flex Noun
5606 status collapsed
5607
5608 \begin_layout Plain Layout
5609 Shift-
5610 \end_layout
5611
5612 \end_inset
5613
5614  in combination with an accent, like 
5615 \begin_inset Quotes eld
5616 \end_inset
5617
5618
5619 \begin_inset Flex Noun
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623 ~
5624 \end_layout
5625
5626 \end_inset
5627
5628
5629 \begin_inset Quotes erd
5630 \end_inset
5631
5632  or 
5633 \begin_inset Quotes eld
5634 \end_inset
5635
5636
5637 \begin_inset Flex Noun
5638 status collapsed
5639
5640 \begin_layout Plain Layout
5641 ,
5642 \end_layout
5643
5644 \end_inset
5645
5646
5647 \begin_inset Quotes erd
5648 \end_inset
5649
5650  or 
5651 \begin_inset Quotes eld
5652 \end_inset
5653
5654
5655 \begin_inset Flex Noun
5656 status collapsed
5657
5658 \begin_layout Plain Layout
5659 ^
5660 \end_layout
5661
5662 \end_inset
5663
5664
5665 \begin_inset Quotes erd
5666 \end_inset
5667
5668 .
5669  Another way involves using 
5670 \begin_inset Flex Code
5671 status collapsed
5672
5673 \begin_layout Plain Layout
5674 xmodmap
5675 \end_layout
5676
5677 \end_inset
5678
5679  and 
5680 \begin_inset Flex Code
5681 status collapsed
5682
5683 \begin_layout Plain Layout
5684 xkeycaps
5685 \end_layout
5686
5687 \end_inset
5688
5689  to set up the special 
5690 \begin_inset Flex Code
5691 status collapsed
5692
5693 \begin_layout Plain Layout
5694 Mode_Switch
5695 \end_layout
5696
5697 \end_inset
5698
5699  key.
5700  The 
5701 \begin_inset Flex Code
5702 status collapsed
5703
5704 \begin_layout Plain Layout
5705 Mode_Switch
5706 \end_layout
5707
5708 \end_inset
5709
5710  acts in some ways just like 
5711 \begin_inset Flex Noun
5712 status collapsed
5713
5714 \begin_layout Plain Layout
5715 Shift
5716 \end_layout
5717
5718 \end_inset
5719
5720  and permits you to bind keys to accented characters.
5721  You can also turn keys into dead-keys by binding them to something like
5722  
5723 \begin_inset Flex Code
5724 status collapsed
5725
5726 \begin_layout Plain Layout
5727 usldead_cedilla
5728 \end_layout
5729
5730 \end_inset
5731
5732  and then binding this symbolic key to the corresponding \SpecialChar LyX
5733  command.
5734 \begin_inset Foot
5735 status collapsed
5736
5737 \begin_layout Plain Layout
5738 Note from 
5739 \noun on
5740 John Weiss
5741 \noun default
5742 : This is exactly what I do in my 
5743 \begin_inset Flex Code
5744 status collapsed
5745
5746 \begin_layout Plain Layout
5747 ~/.lyx/lyxrc
5748 \end_layout
5749
5750 \end_inset
5751
5752  and my 
5753 \begin_inset Flex Code
5754 status collapsed
5755
5756 \begin_layout Plain Layout
5757 ~/.xmodmap
5758 \end_layout
5759
5760 \end_inset
5761
5762  files.
5763  I have my 
5764 \begin_inset Flex Noun
5765 status collapsed
5766
5767 \begin_layout Plain Layout
5768 Scroll
5769 \begin_inset space ~
5770 \end_inset
5771
5772 Lock
5773 \end_layout
5774
5775 \end_inset
5776
5777  key set up as 
5778 \begin_inset Flex Code
5779 status collapsed
5780
5781 \begin_layout Plain Layout
5782 Mode_Shift
5783 \end_layout
5784
5785 \end_inset
5786
5787  and a bunch of these 
5788 \begin_inset Quotes eld
5789 \end_inset
5790
5791
5792 \begin_inset Flex Code
5793 status collapsed
5794
5795 \begin_layout Plain Layout
5796 usldead_*
5797 \end_layout
5798
5799 \end_inset
5800
5801
5802 \begin_inset Quotes erd
5803 \end_inset
5804
5805  symbolic keys bound such things as 
5806 \begin_inset Flex Noun
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 Scroll
5811 \begin_inset space ~
5812 \end_inset
5813
5814 Lock-^
5815 \end_layout
5816
5817 \end_inset
5818
5819  and 
5820 \begin_inset Flex Noun
5821 status collapsed
5822
5823 \begin_layout Plain Layout
5824 Scroll
5825 \begin_inset space ~
5826 \end_inset
5827
5828 Lock-~
5829 \end_layout
5830
5831 \end_inset
5832
5833 .
5834  This is how I produce my accented characters.
5835 \end_layout
5836
5837 \end_inset
5838
5839  You can make just about anything into the 
5840 \begin_inset Flex Code
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 Mode_Switch
5845 \end_layout
5846
5847 \end_inset
5848
5849  key: One of the 
5850 \begin_inset Flex Noun
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854 Ctrl-
5855 \end_layout
5856
5857 \end_inset
5858
5859  keys, a spare function key, etc.
5860  As for the \SpecialChar LyX
5861  commands that produce accents, check the entry for 
5862 \begin_inset Flex Code
5863 status collapsed
5864
5865 \begin_layout Plain Layout
5866 accent-acute
5867 \end_layout
5868
5869 \end_inset
5870
5871  in the 
5872 \emph on
5873 Reference Manual
5874 \emph default
5875 .
5876  You'll find the complete list there.
5877 \end_layout
5878
5879 \begin_layout Subsection
5880 Saving your Language Configuration
5881 \end_layout
5882
5883 \begin_layout Standard
5884 You can edit your preferences so that your desired language environment
5885  is automatically configured when \SpecialChar LyX
5886  starts up, via the 
5887 \begin_inset Flex Noun
5888 status collapsed
5889
5890 \begin_layout Plain Layout
5891 Edit\SpecialChar menuseparator
5892 Preferences
5893 \end_layout
5894
5895 \end_inset
5896
5897  dialog.
5898 \end_layout
5899
5900 \begin_layout Chapter
5901 Installing New Document Classes, Layouts, and Templates
5902 \begin_inset CommandInset label
5903 LatexCommand label
5904 name "cha:Installing-New-Document"
5905
5906 \end_inset
5907
5908
5909 \begin_inset Argument 1
5910 status collapsed
5911
5912 \begin_layout Plain Layout
5913 Installing New Document Classes
5914 \end_layout
5915
5916 \end_inset
5917
5918
5919 \end_layout
5920
5921 \begin_layout Standard
5922 In this chapter, we describe the procedures for creating and installing
5923  new \SpecialChar LyX
5924  layout and template files, as well as offer a refresher on correctly
5925  installing new \SpecialChar LaTeX
5926  document classes.
5927  
5928 \end_layout
5929
5930 \begin_layout Standard
5931 First, let us a say a few words about how one ought to think about the relation
5932  between \SpecialChar LyX
5933  and \SpecialChar LaTeX
5934 .
5935  The thing to understand is that, in a certain sense, \SpecialChar LyX
5936  doesn't know anything
5937  about \SpecialChar LaTeX
5938 .
5939  Indeed, from \SpecialChar LyX
5940 's point of view, \SpecialChar LaTeX
5941  is just one of several 
5942 \begin_inset Quotes eld
5943 \end_inset
5944
5945 backend formats
5946 \begin_inset Quotes erd
5947 \end_inset
5948
5949  in which it is capable of producing output.
5950  Other such formats are DocBook, plaintext, and XHTML.
5951  \SpecialChar LaTeX
5952  is, of course, a particularly important format, but very little of the
5953  information \SpecialChar LyX
5954  has about \SpecialChar LaTeX
5955  is actually contained in the program itself.
5956 \begin_inset Foot
5957 status collapsed
5958
5959 \begin_layout Plain Layout
5960 Some commands are sufficiently complex that they are 
5961 \begin_inset Quotes eld
5962 \end_inset
5963
5964 hardcoded
5965 \begin_inset Quotes erd
5966 \end_inset
5967
5968  into \SpecialChar LyX
5969 .
5970  But the developers generally regard this as a Bad Thing.
5971 \end_layout
5972
5973 \end_inset
5974
5975  Rather, that information, even for the standard classes like 
5976 \begin_inset Flex Code
5977 status collapsed
5978
5979 \begin_layout Plain Layout
5980 article.cls
5981 \end_layout
5982
5983 \end_inset
5984
5985 , is contained in `layout files'.
5986  Similarly, \SpecialChar LyX
5987  itself does not know much about DocBook or XHTML.
5988  What it knows is contained in layout files.
5989 \end_layout
5990
5991 \begin_layout Standard
5992 You can think of the layout file for a given document class as a translation
5993  manual between \SpecialChar LyX
5994  constructs—paragraphs with their corresponding styles,
5995  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5996 , DocBook, or XHTML
5997  constructs.
5998  Almost everything \SpecialChar LyX
5999  knows about 
6000 \begin_inset Flex Code
6001 status collapsed
6002
6003 \begin_layout Plain Layout
6004 article.cls
6005 \end_layout
6006
6007 \end_inset
6008
6009 , for example, is contained in the file 
6010 \begin_inset Flex Code
6011 status collapsed
6012
6013 \begin_layout Plain Layout
6014 article.layout
6015 \end_layout
6016
6017 \end_inset
6018
6019  and in various other files it includes.
6020  For this reason, anyone intending to write layout files should plan to
6021  study the existing files.
6022  A good place to start is with 
6023 \begin_inset Flex Code
6024 status collapsed
6025
6026 \begin_layout Plain Layout
6027 stdsections.inc
6028 \end_layout
6029
6030 \end_inset
6031
6032 , which is included in 
6033 \begin_inset Flex Code
6034 status collapsed
6035
6036 \begin_layout Plain Layout
6037 article.layout
6038 \end_layout
6039
6040 \end_inset
6041
6042
6043 \begin_inset Flex Code
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 book.layout
6048 \end_layout
6049
6050 \end_inset
6051
6052 , and many of the other layout files for document classes.
6053  This file is where sections and the like are defined: 
6054 \begin_inset Flex Code
6055 status collapsed
6056
6057 \begin_layout Plain Layout
6058 stdsections.inc
6059 \end_layout
6060
6061 \end_inset
6062
6063  tells \SpecialChar LyX
6064  how paragraphs that are marked with the Section, Subsection, etc,
6065  styles can be translated into corresponding \SpecialChar LaTeX
6066 , DocBook, and XHTML commands
6067  and tags.
6068  The 
6069 \begin_inset Flex Code
6070 status collapsed
6071
6072 \begin_layout Plain Layout
6073 article.layout
6074 \end_layout
6075
6076 \end_inset
6077
6078  file basically just includes several of these 
6079 \begin_inset Flex Code
6080 status collapsed
6081
6082 \begin_layout Plain Layout
6083 std*.inc
6084 \end_layout
6085
6086 \end_inset
6087
6088  files.
6089 \end_layout
6090
6091 \begin_layout Standard
6092 Defining the \SpecialChar LyX
6093 –\SpecialChar LaTeX
6094  correspondence is not the only thing layout files do, though.
6095  Their other job is to define how the \SpecialChar LyX
6096  constructs themselves will appear
6097  on-screen.
6098  The fact that layout files have these two jobs is often a source of confusion,
6099  because they are completely separate.
6100  Telling \SpecialChar LyX
6101  how to translate a certain paragraph style into \SpecialChar LaTeX
6102  does not tell
6103  \SpecialChar LyX
6104  how to display it; conversely, telling \SpecialChar LyX
6105  how to display a certain paragraph
6106  style does not tell \SpecialChar LyX
6107  how to translate it into \SpecialChar LaTeX
6108  (let alone tell \SpecialChar LaTeX
6109  how to
6110  display it).
6111  So, in general, when you define a new \SpecialChar LyX
6112  construct, you must always do two
6113  quite separate things: (i)
6114 \begin_inset space ~
6115 \end_inset
6116
6117 tell \SpecialChar LyX
6118  how to translate it into \SpecialChar LaTeX
6119  and (ii)
6120 \begin_inset space ~
6121 \end_inset
6122
6123 tell \SpecialChar LyX
6124  how to display it.
6125 \end_layout
6126
6127 \begin_layout Standard
6128 Much the same is true, of course, as regards \SpecialChar LyX
6129 's other backend formats, though
6130  XHTML is in some ways different, because in that case \SpecialChar LyX
6131  
6132 \emph on
6133 is
6134 \emph default
6135  able, to some extent, to use information about how it should display a
6136  paragraph on the screen to output information (in the form of CSS) about
6137  how the paragraph should be displayed in a browser.
6138  Even in this case, however, the distinction between what \SpecialChar LyX
6139  does internally
6140  and how things are rendered externally remains in force, and the two can
6141  be controlled separately.
6142  See 
6143 \begin_inset CommandInset ref
6144 LatexCommand ref
6145 reference "sec:Tags-for-XHTML"
6146
6147 \end_inset
6148
6149  for the details.
6150 \end_layout
6151
6152 \begin_layout Section
6153 Installing new \SpecialChar LaTeX
6154  files
6155 \end_layout
6156
6157 \begin_layout Standard
6158 Some installations may not include a \SpecialChar LaTeX
6159  package or class file that you would
6160  like to use within \SpecialChar LyX
6161 .
6162  For example, you might need Foil\SpecialChar TeX
6163 , a package for preparing slides for overhead
6164  projectors.
6165  Modern \SpecialChar LaTeX
6166  distributions like \SpecialChar TeX
6167 Live (2008 or newer) or MiK\SpecialChar TeX
6168  provide a user interface
6169  for installing such packages.
6170  For example, with MiK\SpecialChar TeX
6171 , you start the program 
6172 \begin_inset Quotes eld
6173 \end_inset
6174
6175 Package
6176 \begin_inset space ~
6177 \end_inset
6178
6179 Manager
6180 \begin_inset Quotes erd
6181 \end_inset
6182
6183  to get a list of available packages.
6184  To install one of them, right click on it or use the corresponding toolbar
6185  button.
6186 \end_layout
6187
6188 \begin_layout Standard
6189 If your \SpecialChar LaTeX
6190  distribution does not provide such a `package manager', or if the
6191  package is not available from your distribution, then follow these steps
6192  to install it manually:
6193 \end_layout
6194
6195 \begin_layout Enumerate
6196 Get the package from 
6197 \begin_inset CommandInset href
6198 LatexCommand href
6199 name "CTAN"
6200 target "http://www.ctan.org/"
6201 literal "false"
6202
6203 \end_inset
6204
6205  or wherever.
6206 \end_layout
6207
6208 \begin_layout Enumerate
6209 If the package contains a file with the ending 
6210 \begin_inset Quotes eld
6211 \end_inset
6212
6213
6214 \begin_inset Flex Code
6215 status collapsed
6216
6217 \begin_layout Plain Layout
6218 .ins
6219 \end_layout
6220
6221 \end_inset
6222
6223
6224 \begin_inset Quotes erd
6225 \end_inset
6226
6227  (is the case for Foil\SpecialChar TeX
6228 ) then open a console, change to the folder of this
6229  file and execute the command 
6230 \begin_inset Flex Code
6231 status collapsed
6232
6233 \begin_layout Plain Layout
6234 latex foiltex.ins
6235 \end_layout
6236
6237 \end_inset
6238
6239 .
6240  You have now unpacked the package and have all files to install it.
6241  Most \SpecialChar LaTeX
6242 -packages are not packed and you can skip this step.
6243 \end_layout
6244
6245 \begin_layout Enumerate
6246 Now you need to decide if the package should be available for all users
6247  or only for you.
6248 \end_layout
6249
6250 \begin_deeper
6251 \begin_layout Enumerate
6252 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6253  for all users on your system, then install it in your `local' \SpecialChar TeX
6254  tree, otherwise
6255  install it in your own `user' \SpecialChar TeX
6256  tree.
6257  Where these trees should be created, if they do not already exist, depends
6258  on your system.
6259  To find this out, look in the file 
6260 \begin_inset Flex Code
6261 status collapsed
6262
6263 \begin_layout Plain Layout
6264 texmf.cnf
6265 \end_layout
6266
6267 \end_inset
6268
6269 .
6270 \begin_inset Foot
6271 status collapsed
6272
6273 \begin_layout Plain Layout
6274 This is usually in the directory 
6275 \begin_inset Flex Code
6276 status collapsed
6277
6278 \begin_layout Plain Layout
6279 $TEXMF/web2c
6280 \end_layout
6281
6282 \end_inset
6283
6284 , though you can execute the command 
6285 \begin_inset Flex Code
6286 status collapsed
6287
6288 \begin_layout Plain Layout
6289 kpsewhich texmf.cnf
6290 \end_layout
6291
6292 \end_inset
6293
6294  to locate it.
6295 \end_layout
6296
6297 \end_inset
6298
6299  The location of the `local' \SpecialChar TeX
6300  tree is defined by the 
6301 \begin_inset Flex Code
6302 status collapsed
6303
6304 \begin_layout Plain Layout
6305 TEXMFLOCAL
6306 \end_layout
6307
6308 \end_inset
6309
6310  variable; this is usually somewhere like 
6311 \begin_inset Flex Code
6312 status collapsed
6313
6314 \begin_layout Plain Layout
6315 /usr/local/share/texmf
6316 \end_layout
6317
6318 \end_inset
6319
6320  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6321 Live
6322  distribution.
6323  The location of the `user' \SpecialChar TeX
6324  tree is defined by 
6325 \begin_inset Flex Code
6326 status collapsed
6327
6328 \begin_layout Plain Layout
6329 TEXMFHOME
6330 \end_layout
6331
6332 \end_inset
6333
6334  and is commonly 
6335 \begin_inset Flex Code
6336 status collapsed
6337
6338 \begin_layout Plain Layout
6339 $HOME/texmf
6340 \end_layout
6341
6342 \end_inset
6343
6344  or 
6345 \begin_inset Flex Code
6346 status collapsed
6347
6348 \begin_layout Plain Layout
6349
6350 \family sans
6351 $HOME/.texliveXXXX
6352 \end_layout
6353
6354 \end_inset
6355
6356 .
6357  (If these variables are not predefined, you have to define them.) You'll
6358  probably need root permissions to create or modify the `local' tree, but
6359  not for your `user' tree.
6360 \begin_inset Newline newline
6361 \end_inset
6362
6363 In general, it is recommended to install in the user tree because your user
6364  will not be modified or even overwritten when you upgrade your system.
6365  It will typically also be backed up together with everything else when
6366  you backup your home directory (which, of course, you do on a regular basis).
6367 \end_layout
6368
6369 \begin_layout Enumerate
6370 On Windows, if you want the new package to be available for all users on
6371  your system, change to the folder where \SpecialChar LaTeX
6372  is installed and then change to
6373  the subfolder 
6374 \begin_inset Flex Code
6375 status collapsed
6376
6377 \begin_layout Plain Layout
6378 ~
6379 \backslash
6380 tex
6381 \backslash
6382 latex
6383 \end_layout
6384
6385 \end_inset
6386
6387 .
6388  (For MiK\SpecialChar TeX
6389 , this would be by default the folder 
6390 \begin_inset Flex Code
6391 status collapsed
6392
6393 \begin_layout Plain Layout
6394 ~:
6395 \backslash
6396 Programs
6397 \backslash
6398 MiKTeX
6399 \backslash
6400 tex
6401 \backslash
6402 latex
6403 \end_layout
6404
6405 \end_inset
6406
6407 .)
6408 \begin_inset Foot
6409 status collapsed
6410
6411 \begin_layout Plain Layout
6412 Note that this will be the correct path only on English installations.
6413  On a German one, it would be 
6414 \begin_inset Flex Code
6415 status collapsed
6416
6417 \begin_layout Plain Layout
6418 ~:
6419 \backslash
6420 Programme
6421 \backslash
6422 MiKTeX
6423 \backslash
6424 tex
6425 \backslash
6426 latex
6427 \end_layout
6428
6429 \end_inset
6430
6431 , and similarly for other languages.
6432 \end_layout
6433
6434 \end_inset
6435
6436  Create there a new folder 
6437 \begin_inset Flex Code
6438 status collapsed
6439
6440 \begin_layout Plain Layout
6441 foiltex
6442 \end_layout
6443
6444 \end_inset
6445
6446  and copy all files of the package into it.
6447  
6448 \begin_inset Newline newline
6449 \end_inset
6450
6451 If the package should only available for you or you don't have admin permissions
6452 , do the same, but in the local \SpecialChar LaTeX
6453  folder.
6454  E.
6455 \begin_inset space \thinspace{}
6456 \end_inset
6457
6458 g., for MiK\SpecialChar TeX
6459
6460 \begin_inset space ~
6461 \end_inset
6462
6463 2.8 under Windows XP, this would be the folder:
6464 \begin_inset Newline newline
6465 \end_inset
6466
6467
6468 \family sans
6469
6470 \begin_inset Flex Code
6471 status collapsed
6472
6473 \begin_layout Plain Layout
6474 ~:
6475 \backslash
6476 Documents and Settings
6477 \backslash
6478 <username>
6479 \backslash
6480 Application Data
6481 \backslash
6482
6483 \end_layout
6484
6485 \end_inset
6486
6487
6488 \begin_inset Newline newline
6489 \end_inset
6490
6491
6492 \family default
6493
6494 \begin_inset Phantom HPhantom
6495 status open
6496
6497 \begin_layout Plain Layout
6498
6499 \family sans
6500 ~:
6501 \backslash
6502
6503 \end_layout
6504
6505 \end_inset
6506
6507
6508 \begin_inset Flex Code
6509 status collapsed
6510
6511 \begin_layout Plain Layout
6512 MiKTeX
6513 \backslash
6514 2.8
6515 \backslash
6516 tex
6517 \backslash
6518 latex
6519 \end_layout
6520
6521 \end_inset
6522
6523
6524 \begin_inset Newline newline
6525 \end_inset
6526
6527 On Vista, it would be:
6528 \begin_inset Newline newline
6529 \end_inset
6530
6531
6532 \begin_inset Flex Code
6533 status collapsed
6534
6535 \begin_layout Plain Layout
6536 ~:
6537 \backslash
6538 Users
6539 \backslash
6540 <username>
6541 \backslash
6542 AppData
6543 \backslash
6544 Roaming
6545 \backslash
6546 2.8
6547 \backslash
6548 MiKTeX
6549 \backslash
6550 tex
6551 \backslash
6552 latex
6553 \end_layout
6554
6555 \end_inset
6556
6557
6558 \end_layout
6559
6560 \end_deeper
6561 \begin_layout Enumerate
6562 Now one only need to tell \SpecialChar LaTeX
6563  that there are new files.
6564  This depends on the used \SpecialChar LaTeX
6565 -Distribution:
6566 \end_layout
6567
6568 \begin_deeper
6569 \begin_layout Enumerate
6570 For \SpecialChar TeX
6571 Live execute the command 
6572 \begin_inset Flex Code
6573 status collapsed
6574
6575 \begin_layout Plain Layout
6576 texhash
6577 \end_layout
6578
6579 \end_inset
6580
6581  from a console.
6582  If you installed the package for all users, then you will probably need
6583  to have root permissions for that.
6584 \end_layout
6585
6586 \begin_layout Enumerate
6587 For MiK\SpecialChar TeX
6588 , if you have installed the package for all users, start the program
6589  
6590 \begin_inset Quotes eld
6591 \end_inset
6592
6593 Settings
6594 \begin_inset space ~
6595 \end_inset
6596
6597 (Admin)
6598 \begin_inset Quotes erd
6599 \end_inset
6600
6601  and press the button marked 
6602 \begin_inset Quotes eld
6603 \end_inset
6604
6605 Refresh FNDB
6606 \begin_inset Quotes erd
6607 \end_inset
6608
6609 .
6610  Otherwise start the program 
6611 \begin_inset Quotes eld
6612 \end_inset
6613
6614 Settings
6615 \begin_inset Quotes erd
6616 \end_inset
6617
6618  and do the same.
6619 \end_layout
6620
6621 \end_deeper
6622 \begin_layout Enumerate
6623 Finally, you need to tell \SpecialChar LyX
6624  that there are new packages available.
6625  So, in \SpecialChar LyX
6626 , use the menu 
6627 \begin_inset Flex Noun
6628 status collapsed
6629
6630 \begin_layout Plain Layout
6631 Tools
6632 \family sans
6633 \SpecialChar menuseparator
6634 Reconfigure
6635 \end_layout
6636
6637 \end_inset
6638
6639  and then restart \SpecialChar LyX
6640 .
6641 \end_layout
6642
6643 \begin_layout Standard
6644 Now the package is installed.
6645  In our example, the document class 
6646 \begin_inset Flex Code
6647 status collapsed
6648
6649 \begin_layout Plain Layout
6650 FoilTex
6651 \end_layout
6652
6653 \end_inset
6654
6655  will now be available under 
6656 \begin_inset Flex Noun
6657 status collapsed
6658
6659 \begin_layout Plain Layout
6660 Document\SpecialChar menuseparator
6661 Settings\SpecialChar menuseparator
6662 Document Class
6663 \end_layout
6664
6665 \end_inset
6666
6667  (in the 
6668 \begin_inset Quotes eld
6669 \end_inset
6670
6671 Presentations
6672 \begin_inset Quotes erd
6673 \end_inset
6674
6675  category).
6676  
6677 \end_layout
6678
6679 \begin_layout Standard
6680 If you would like to use a \SpecialChar LaTeX
6681  document class that is not even listed in the
6682  menu 
6683 \begin_inset Flex Noun
6684 status collapsed
6685
6686 \begin_layout Plain Layout
6687 Document\SpecialChar menuseparator
6688 Settings\SpecialChar menuseparator
6689 Document Class
6690 \end_layout
6691
6692 \end_inset
6693
6694 , then you need to create a `layout' file for it.
6695  That is the topic of the next section.
6696 \end_layout
6697
6698 \begin_layout Section
6699 Types of layout files
6700 \end_layout
6701
6702 \begin_layout Standard
6703 This section describes the various sorts of \SpecialChar LyX
6704  files that contain layout informati
6705 on.
6706  These files describe various paragraph and character styles, determining
6707  how \SpecialChar LyX
6708  should display them and how they should be translated into \SpecialChar LaTeX
6709 , DocBook,
6710  XHTML, or whatever output format is being used.
6711  
6712 \end_layout
6713
6714 \begin_layout Standard
6715 We shall try to provide a thorough description of the process of writing
6716  layout files here.
6717  However, there are so many different types of documents supported even
6718  by just \SpecialChar LaTeX
6719  that we can't hope to cover every different possibility or problem
6720  you might encounter.
6721  The \SpecialChar LyX
6722  users' list is frequented by people with lots of experience with layout
6723  design who are willing to share what they've learned, so please feel free
6724  to ask questions there.
6725 \end_layout
6726
6727 \begin_layout Standard
6728 As you prepare to write a new layout, it is extremely helpful to look at
6729  the layouts distributed with \SpecialChar LyX
6730 .
6731  If you write a \SpecialChar LyX
6732  layout for a \SpecialChar LaTeX
6733  document class that might also be used by
6734  others, or write a module that might be useful to others, then you should
6735  consider posting your layout to the 
6736 \begin_inset CommandInset href
6737 LatexCommand href
6738 name "layout section on the LyX wiki"
6739 target "https://wiki.lyx.org/Layouts/Layouts"
6740 literal "false"
6741
6742 \end_inset
6743
6744  or even to the \SpecialChar LyX
6745  developers' list, so that it might be included in \SpecialChar LyX
6746  itself.
6747 \begin_inset Foot
6748 status collapsed
6749
6750 \begin_layout Plain Layout
6751 Note that \SpecialChar LyX
6752  is licensed under the General Public License, so any material
6753  that is contributed to \SpecialChar LyX
6754  must be similarly licensed.
6755 \end_layout
6756
6757 \end_inset
6758
6759
6760 \end_layout
6761
6762 \begin_layout Subsection
6763 Layout modules
6764 \begin_inset CommandInset label
6765 LatexCommand label
6766 name "subsec:Layout-modules"
6767
6768 \end_inset
6769
6770
6771 \end_layout
6772
6773 \begin_layout Standard
6774 We have spoken to this point about `layout files'.
6775  But there are different sorts of files that contain layout information.
6776  Layout files, strictly so called, have the 
6777 \begin_inset Flex Code
6778 status collapsed
6779
6780 \begin_layout Plain Layout
6781 .layout
6782 \end_layout
6783
6784 \end_inset
6785
6786  extension and provide \SpecialChar LyX
6787  with information about document classes.
6788  Since \SpecialChar LyX
6789  1.6 layout information can also be contained in layout 
6790 \emph on
6791 modules
6792 \emph default
6793 , which have the 
6794 \begin_inset Flex Code
6795 status collapsed
6796
6797 \begin_layout Plain Layout
6798 .module
6799 \end_layout
6800
6801 \end_inset
6802
6803  extension.
6804  Modules are to \SpecialChar LaTeX
6805  packages much as layouts are to \SpecialChar LaTeX
6806  classes, and some modules—such
6807  as the 
6808 \begin_inset Flex Code
6809 status collapsed
6810
6811 \begin_layout Plain Layout
6812 endnotes
6813 \end_layout
6814
6815 \end_inset
6816
6817  module—specifically provide support for one package.
6818  In a sense, layout modules are similar to included
6819 \begin_inset Foot
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 These can have any extension, but by convention have the 
6824 \begin_inset Flex Code
6825 status collapsed
6826
6827 \begin_layout Plain Layout
6828 .inc
6829 \end_layout
6830
6831 \end_inset
6832
6833  extension.
6834 \end_layout
6835
6836 \end_inset
6837
6838  files—files like 
6839 \begin_inset Flex Code
6840 status collapsed
6841
6842 \begin_layout Plain Layout
6843 stdsections.inc
6844 \end_layout
6845
6846 \end_inset
6847
6848 —in that modules are not specific to a given document class but may be used
6849  with many different classes.
6850  The difference is that using an included file with 
6851 \begin_inset Flex Code
6852 status collapsed
6853
6854 \begin_layout Plain Layout
6855 article.cls
6856 \end_layout
6857
6858 \end_inset
6859
6860  requires editing that file.
6861  Modules, by contrast, are selected in the 
6862 \begin_inset Flex Noun
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 Document\SpecialChar menuseparator
6867 Settings
6868 \end_layout
6869
6870 \end_inset
6871
6872  dialog.
6873 \end_layout
6874
6875 \begin_layout Standard
6876 Building modules is the easiest way to get started with layout editing,
6877  since it can be as simple as adding a single new paragraph style or flex
6878  inset.
6879  But modules may, in principle, contain anything a layout file can contain.
6880 \end_layout
6881
6882 \begin_layout Standard
6883 After creating a new module and copying it to the 
6884 \begin_inset Flex Code
6885 status collapsed
6886
6887 \begin_layout Plain Layout
6888 layouts/
6889 \end_layout
6890
6891 \end_inset
6892
6893  folder, you will need to reconfigure and then restart \SpecialChar LyX
6894  for the module to
6895  appear in the menu.
6896  However, changes you make to the module will be seen immediately, if you
6897  open 
6898 \begin_inset Flex Noun
6899 status collapsed
6900
6901 \begin_layout Plain Layout
6902 Document\SpecialChar menuseparator
6903 Settings
6904 \end_layout
6905
6906 \end_inset
6907
6908 , highlight something, and then hit 
6909 \begin_inset Quotes eld
6910 \end_inset
6911
6912 OK
6913 \begin_inset Quotes erd
6914 \end_inset
6915
6916 .
6917  
6918 \emph on
6919 It is strongly recommended that you save your work before doing this
6920 \emph default
6921 .
6922  In fact, 
6923 \emph on
6924 it is strongly recommended that you not attempt to edit modules while simultaneo
6925 usly working on actual documents
6926 \emph default
6927 .
6928  Though of course the developers strive to keep \SpecialChar LyX
6929  stable in such situations,
6930  syntax errors and the like in your module file could cause strange behavior.
6931 \end_layout
6932
6933 \begin_layout Subsubsection
6934 Local Layout
6935 \end_layout
6936
6937 \begin_layout Standard
6938 Modules are to \SpecialChar LyX
6939  as packages are to \SpecialChar LaTeX
6940 .
6941  Sometimes, however, you find yourself wanting a specific inset or character
6942  style just for one document and writing a module that will also be available
6943  to other documents makes little sense.
6944  What you need is \SpecialChar LyX
6945 's 
6946 \begin_inset Quotes eld
6947 \end_inset
6948
6949 Local Layout
6950 \begin_inset Quotes erd
6951 \end_inset
6952
6953 .
6954 \end_layout
6955
6956 \begin_layout Standard
6957 You will find it under 
6958 \family sans
6959 Document\SpecialChar menuseparator
6960 Settings\SpecialChar menuseparator
6961 Local Layout
6962 \family default
6963 .
6964  The large text box allows you to enter anything that you might enter in
6965  a layout file or module.
6966  You can think of a document's local layout, in fact, as a module that belongs
6967  just to it.
6968  So, in particular, you must enter a 
6969 \begin_inset Flex Code
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973 Format
6974 \end_layout
6975
6976 \end_inset
6977
6978  tag.
6979  Any format is acceptable, but one would normally use the format current
6980  at the time.
6981  (In \SpecialChar LyX
6982  
6983 \begin_inset Info
6984 type  "lyxinfo"
6985 arg   "version"
6986 \end_inset
6987
6988 , the current layout format is 
6989 \begin_inset Info
6990 type  "lyxinfo"
6991 arg   "layoutformat"
6992 \end_inset
6993
6994 .)
6995 \end_layout
6996
6997 \begin_layout Standard
6998 When you have entered something in the 
6999 \begin_inset Flex Code
7000 status collapsed
7001
7002 \begin_layout Plain Layout
7003 Local Layout
7004 \end_layout
7005
7006 \end_inset
7007
7008  pane, \SpecialChar LyX
7009  will enable the 
7010 \begin_inset Quotes eld
7011 \end_inset
7012
7013 Validate
7014 \begin_inset Quotes erd
7015 \end_inset
7016
7017  button at the bottom.
7018  Clicking this button will cause \SpecialChar LyX
7019  to determine whether what you have entered
7020  is valid layout information for the chosen format.
7021  \SpecialChar LyX
7022  will report the result but, unfortunately, will not tell you what errors
7023  there might have been.
7024  These will be written to the terminal, however, if \SpecialChar LyX
7025  is started from a terminal.
7026  You will not be permitted to save your local layout until you have entered
7027  something valid.
7028 \end_layout
7029
7030 \begin_layout Standard
7031 The warnings at the end of the previous section apply here, too.
7032  Do not play with local layout while you are actually working, especially
7033  if you have not saved your document.
7034  That said, using local layout with a test document can be a very convenient
7035  way to try out layout ideas, or even to start developing a module.
7036 \end_layout
7037
7038 \begin_layout Subsection
7039 Layout for 
7040 \begin_inset Flex Noun
7041 status collapsed
7042
7043 \begin_layout Plain Layout
7044 .sty
7045 \end_layout
7046
7047 \end_inset
7048
7049  files
7050 \end_layout
7051
7052 \begin_layout Standard
7053 There are two situations you are likely to encounter when wanting to support
7054  a new \SpecialChar LaTeX
7055  document class, involving style (
7056 \begin_inset Flex Code
7057 status collapsed
7058
7059 \begin_layout Plain Layout
7060 .sty
7061 \end_layout
7062
7063 \end_inset
7064
7065 ) files and \SpecialChar LaTeX2e
7066  class (
7067 \begin_inset Flex Code
7068 status collapsed
7069
7070 \begin_layout Plain Layout
7071 .cls
7072 \end_layout
7073
7074 \end_inset
7075
7076 ) .
7077  Supporting a style file is usually fairly easy.
7078  Supporting a new class file is a bit harder.
7079  We'll discuss the former in this section and the latter in the next.
7080  Similar remarks apply, of course, if you want to support a new DocBook
7081  DTD.
7082 \end_layout
7083
7084 \begin_layout Standard
7085 The easier case is the one in which your new document class is provided
7086  as a style file that is to be used in conjunction with an already supported
7087  document class.
7088  For the sake of the example, we'll assume that the style file is called
7089  
7090 \begin_inset Flex Noun
7091 status collapsed
7092
7093 \begin_layout Plain Layout
7094 myclass.sty
7095 \end_layout
7096
7097 \end_inset
7098
7099  and that it is meant to be used with 
7100 \begin_inset Flex Noun
7101 status collapsed
7102
7103 \begin_layout Plain Layout
7104 report.cls
7105 \end_layout
7106
7107 \end_inset
7108
7109 , which is a standard class.
7110  
7111 \end_layout
7112
7113 \begin_layout Standard
7114 Start by copying the existing class's layout file into your local directory:
7115 \begin_inset Foot
7116 status collapsed
7117
7118 \begin_layout Plain Layout
7119 Of course, which directory is your local directory will vary by platform,
7120  and \SpecialChar LyX
7121  allows you to specify your local directory on startup, too, using
7122  the 
7123 \begin_inset Flex Code
7124 status collapsed
7125
7126 \begin_layout Plain Layout
7127 -userdir
7128 \end_layout
7129
7130 \end_inset
7131
7132  option.
7133 \end_layout
7134
7135 \end_inset
7136
7137
7138 \end_layout
7139
7140 \begin_layout LyX-Code
7141 cp report.layout ~/.lyx/layouts/myclass.layout
7142 \end_layout
7143
7144 \begin_layout Standard
7145 Then edit 
7146 \begin_inset Flex Code
7147 status collapsed
7148
7149 \begin_layout Plain Layout
7150 myclass.layout
7151 \end_layout
7152
7153 \end_inset
7154
7155  and change the line: 
7156 \end_layout
7157
7158 \begin_layout LyX-Code
7159
7160 \backslash
7161 DeclareLaTeXClass{Report (Standard Class)}
7162 \end_layout
7163
7164 \begin_layout Standard
7165 to read
7166 \end_layout
7167
7168 \begin_layout LyX-Code
7169
7170 \backslash
7171 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7172 \end_layout
7173
7174 \begin_layout Standard
7175 Then add:
7176 \end_layout
7177
7178 \begin_layout LyX-Code
7179 Preamble 
7180 \begin_inset Newline newline
7181 \end_inset
7182
7183     
7184 \backslash
7185 usepackage{myclass}
7186 \begin_inset Newline newline
7187 \end_inset
7188
7189 EndPreamble
7190 \end_layout
7191
7192 \begin_layout Standard
7193 near the top of the file.
7194 \end_layout
7195
7196 \begin_layout Standard
7197 Start \SpecialChar LyX
7198  and select 
7199 \begin_inset Flex Noun
7200 status collapsed
7201
7202 \begin_layout Plain Layout
7203 Tools\SpecialChar menuseparator
7204 Reconfigure
7205 \end_layout
7206
7207 \end_inset
7208
7209 .
7210  Then restart \SpecialChar LyX
7211  and try creating a new document.
7212  You should see "
7213 \begin_inset Flex Noun
7214 status collapsed
7215
7216 \begin_layout Plain Layout
7217 Report (My Class)
7218 \end_layout
7219
7220 \end_inset
7221
7222 " as a document class option in the 
7223 \begin_inset Flex Noun
7224 status collapsed
7225
7226 \begin_layout Plain Layout
7227 Document\SpecialChar menuseparator
7228 Settings
7229 \end_layout
7230
7231 \end_inset
7232
7233  dialog.
7234  It is likely that some of the sectioning commands and such in your new
7235  class will work differently from how they worked in the base class—
7236 \begin_inset Flex Code
7237 status collapsed
7238
7239 \begin_layout Plain Layout
7240 report
7241 \end_layout
7242
7243 \end_inset
7244
7245  in this example—so you can fiddle around with the settings for the different
7246  sections if you wish.
7247  The layout information for sections is contained in 
7248 \begin_inset Flex Code
7249 status collapsed
7250
7251 \begin_layout Plain Layout
7252 stdsections.inc
7253 \end_layout
7254
7255 \end_inset
7256
7257 , but you do not need to copy and change this file.
7258  Instead, you can simply add your changes to your layout file, after the
7259  line 
7260 \begin_inset Flex Code
7261 status collapsed
7262
7263 \begin_layout Plain Layout
7264 Input stdclass.inc
7265 \end_layout
7266
7267 \end_inset
7268
7269 , which itself includes 
7270 \begin_inset Flex Code
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 stdsections.inc
7275 \end_layout
7276
7277 \end_inset
7278
7279 .
7280  For example, you might add these lines:
7281 \end_layout
7282
7283 \begin_layout LyX-Code
7284 Style Chapter
7285 \end_layout
7286
7287 \begin_layout LyX-Code
7288     Font
7289 \end_layout
7290
7291 \begin_layout LyX-Code
7292         Family Sans
7293 \end_layout
7294
7295 \begin_layout LyX-Code
7296     EndFont
7297 \end_layout
7298
7299 \begin_layout LyX-Code
7300 End
7301 \end_layout
7302
7303 \begin_layout Standard
7304 to change the font for chapter headings to sans-serif.
7305  This will override (or, in this case, add to) the existing declaration
7306  for the Chapter style.
7307  
7308 \end_layout
7309
7310 \begin_layout Standard
7311 Your new package may also provide commands or environments not present in
7312  the base class.
7313  In this case, you will want to add these to the layout file.
7314  See 
7315 \begin_inset CommandInset ref
7316 LatexCommand ref
7317 reference "sec:TextClass"
7318
7319 \end_inset
7320
7321  for information on how to do so.
7322 \end_layout
7323
7324 \begin_layout Standard
7325 If 
7326 \begin_inset Flex Noun
7327 status collapsed
7328
7329 \begin_layout Plain Layout
7330 myclass.sty
7331 \end_layout
7332
7333 \end_inset
7334
7335  can be used with several different document classes, and even if it cannot,
7336  you might find it easiest just to write a module that you can load with
7337  the base class.
7338  The simplest possible such module would be:
7339 \end_layout
7340
7341 \begin_layout LyX-Code
7342 #
7343 \backslash
7344 DeclareLyXModule{My Class} 
7345 \end_layout
7346
7347 \begin_layout LyX-Code
7348 #DescriptionBegin 
7349 \end_layout
7350
7351 \begin_layout LyX-Code
7352 #Support for myclass.sty.
7353 \end_layout
7354
7355 \begin_layout LyX-Code
7356 #DescriptionEnd
7357 \begin_inset Newline newline
7358 \end_inset
7359
7360
7361 \end_layout
7362
7363 \begin_layout LyX-Code
7364 Format 
7365 \begin_inset Info
7366 type  "lyxinfo"
7367 arg   "layoutformat"
7368 \end_inset
7369
7370
7371 \begin_inset Newline newline
7372 \end_inset
7373
7374
7375 \end_layout
7376
7377 \begin_layout LyX-Code
7378 Preamble
7379 \begin_inset Newline newline
7380 \end_inset
7381
7382     
7383 \backslash
7384 usepackage{myclass}
7385 \begin_inset Newline newline
7386 \end_inset
7387
7388 EndPreamble
7389 \end_layout
7390
7391 \begin_layout Standard
7392 A more complex module might modify the behavior of some existing constructs
7393  or define some new ones.
7394  Again, see 
7395 \begin_inset CommandInset ref
7396 LatexCommand ref
7397 reference "sec:TextClass"
7398
7399 \end_inset
7400
7401  for discussion.
7402 \end_layout
7403
7404 \begin_layout Subsection
7405 Layout for 
7406 \begin_inset Flex Noun
7407 status collapsed
7408
7409 \begin_layout Plain Layout
7410 .cls
7411 \end_layout
7412
7413 \end_inset
7414
7415  files
7416 \end_layout
7417
7418 \begin_layout Standard
7419 There are two possibilities here.
7420  One is that the class file is itself based upon an existing document class.
7421  For example, many thesis classes are based upon 
7422 \begin_inset Flex Noun
7423 status collapsed
7424
7425 \begin_layout Plain Layout
7426 book.cls
7427 \end_layout
7428
7429 \end_inset
7430
7431 .
7432  To see whether yours is, look for a line like
7433 \end_layout
7434
7435 \begin_layout LyX-Code
7436
7437 \backslash
7438 LoadClass{book}
7439 \end_layout
7440
7441 \begin_layout Standard
7442 in the file.
7443  If so, then you may proceed largely as in the previous section, though
7444  the 
7445 \begin_inset Flex Code
7446 status collapsed
7447
7448 \begin_layout Plain Layout
7449 Declare\SpecialChar LaTeX
7450 Class
7451 \end_layout
7452
7453 \end_inset
7454
7455  line will be different.
7456  If your new class is 
7457 \begin_inset Flex Code
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 thesis
7462 \end_layout
7463
7464 \end_inset
7465
7466  and it is based upon 
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 book
7472 \end_layout
7473
7474 \end_inset
7475
7476 , then the line should read:
7477 \begin_inset Foot
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 And it will be easiest if you save the file to 
7482 \begin_inset Flex Code
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 thesis.layout
7487 \end_layout
7488
7489 \end_inset
7490
7491 : \SpecialChar LyX
7492  assumes that the document class has the same name as the layout file.
7493  
7494 \end_layout
7495
7496 \end_inset
7497
7498
7499 \end_layout
7500
7501 \begin_layout LyX-Code
7502
7503 \backslash
7504 DeclareLaTeXClass[thesis,book]{thesis}
7505 \end_layout
7506
7507 \begin_layout Standard
7508 If, on the other hand, the new class is not based upon an existing class,
7509  you will probably have to 
7510 \begin_inset Quotes eld
7511 \end_inset
7512
7513 roll your own
7514 \begin_inset Quotes erd
7515 \end_inset
7516
7517  layout.
7518  We strongly suggest copying an existing layout file which uses a similar
7519  \SpecialChar LaTeX
7520  class and then modifying it, if you can do so.
7521  At least use an existing file as a starting point so you can find out what
7522  items you need to worry about.
7523  Again, the specifics are covered below.
7524 \end_layout
7525
7526 \begin_layout Subsection
7527 Creating templates
7528 \begin_inset CommandInset label
7529 LatexCommand label
7530 name "subsec:Creating-Templates"
7531
7532 \end_inset
7533
7534
7535 \end_layout
7536
7537 \begin_layout Standard
7538 Once you have written a layout file for a new document class, you might
7539  want to consider writing a 
7540 \emph on
7541 template
7542 \emph default
7543  for it, too.
7544  A template acts as a kind of tutorial for your layout, showing how it might
7545  be used, though containing dummy content.
7546  You can of course look at the various templates included with \SpecialChar LyX
7547  for ideas.
7548 \end_layout
7549
7550 \begin_layout Standard
7551 Templates are created just like usual documents: using \SpecialChar LyX
7552 .
7553  The only difference is that usual documents contain all possible settings,
7554  including the font scheme and the paper size.
7555  Usually a user doesn't want a template to overwrite his preferred settings
7556  for such parameters.
7557  For that reason, the designer of a template should remove the corresponding
7558  commands like 
7559 \begin_inset Flex Code
7560 status collapsed
7561
7562 \begin_layout Plain Layout
7563
7564 \backslash
7565 font_roman
7566 \end_layout
7567
7568 \end_inset
7569
7570  or 
7571 \begin_inset Flex Code
7572 status collapsed
7573
7574 \begin_layout Plain Layout
7575
7576 \backslash
7577 papersize
7578 \end_layout
7579
7580 \end_inset
7581
7582  from the template \SpecialChar LyX
7583  file.
7584  This can be done with any simple text-editor, for example 
7585 \begin_inset Flex Code
7586 status collapsed
7587
7588 \begin_layout Plain Layout
7589 vi
7590 \end_layout
7591
7592 \end_inset
7593
7594  or 
7595 \begin_inset Flex Code
7596 status collapsed
7597
7598 \begin_layout Plain Layout
7599 notepad
7600 \end_layout
7601
7602 \end_inset
7603
7604 .
7605 \end_layout
7606
7607 \begin_layout Standard
7608 Put the edited template files you create in 
7609 \begin_inset Flex Code
7610 status collapsed
7611
7612 \begin_layout Plain Layout
7613 UserDir/templates/
7614 \end_layout
7615
7616 \end_inset
7617
7618 , copy the ones you use from the global template directory in 
7619 \begin_inset Flex Code
7620 status collapsed
7621
7622 \begin_layout Plain Layout
7623 LyXDir/templates/
7624 \end_layout
7625
7626 \end_inset
7627
7628  to the same place, and redefine the template path in the 
7629 \begin_inset Flex Noun
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633 Tools\SpecialChar menuseparator
7634 Preferences\SpecialChar menuseparator
7635 Paths
7636 \end_layout
7637
7638 \end_inset
7639
7640  dialog.
7641 \end_layout
7642
7643 \begin_layout Standard
7644 Note, by the way, that there is a template which has a particular meaning:
7645 \begin_inset Newline linebreak
7646 \end_inset
7647
7648
7649 \begin_inset Flex Code
7650 status collapsed
7651
7652 \begin_layout Plain Layout
7653 defaults.lyx
7654 \end_layout
7655
7656 \end_inset
7657
7658 .
7659  This template is loaded every time you create a new document with 
7660 \begin_inset Flex Noun
7661 status collapsed
7662
7663 \begin_layout Plain Layout
7664 File\SpecialChar menuseparator
7665 New
7666 \end_layout
7667
7668 \end_inset
7669
7670  in order to provide useful defaults.
7671  To create this template from inside \SpecialChar LyX
7672 , all you have to do is to open a document
7673  with the correct settings, and use the 
7674 \begin_inset Flex Noun
7675 status collapsed
7676
7677 \begin_layout Plain Layout
7678 Save as Document Defaults
7679 \end_layout
7680
7681 \end_inset
7682
7683  button.
7684 \end_layout
7685
7686 \begin_layout Subsection
7687 Upgrading old layout files
7688 \end_layout
7689
7690 \begin_layout Standard
7691 The format of layout files changes with each \SpecialChar LyX
7692  release, so old layout files
7693  need to be converted to the new format.
7694  If \SpecialChar LyX
7695  reads a layout file in an older format, it automatically calls the
7696  script 
7697 \begin_inset Flex Code
7698 status collapsed
7699
7700 \begin_layout Plain Layout
7701 layout2layout.py
7702 \end_layout
7703
7704 \end_inset
7705
7706  to convert it to a temporary file in current format.
7707  The original file is left untouched.
7708  If you use the layout file often, then, you may want to convert it permanently,
7709  so that \SpecialChar LyX
7710  does not have to do so itself every time.
7711  To do this, you can call the converter manually:
7712 \end_layout
7713
7714 \begin_layout Enumerate
7715 rename the file 
7716 \begin_inset Flex Code
7717 status collapsed
7718
7719 \begin_layout Plain Layout
7720 myclass.layout
7721 \end_layout
7722
7723 \end_inset
7724
7725  to 
7726 \begin_inset Flex Code
7727 status collapsed
7728
7729 \begin_layout Plain Layout
7730 myclass.old
7731 \end_layout
7732
7733 \end_inset
7734
7735
7736 \end_layout
7737
7738 \begin_layout Enumerate
7739 Call the command
7740 \begin_inset Newline newline
7741 \end_inset
7742
7743
7744 \begin_inset Flex Code
7745 status collapsed
7746
7747 \begin_layout Plain Layout
7748 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7749 \end_layout
7750
7751 \end_inset
7752
7753
7754 \begin_inset Newline newline
7755 \end_inset
7756
7757 where 
7758 \begin_inset Flex Code
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 LyXDir
7763 \end_layout
7764
7765 \end_inset
7766
7767  is the name of your \SpecialChar LyX
7768  system directory.
7769 \end_layout
7770
7771 \begin_layout Standard
7772 Note that manual conversion does not affect included files, so these will
7773  have to be converted separately.
7774 \end_layout
7775
7776 \begin_layout Subsection
7777 \begin_inset CommandInset label
7778 LatexCommand label
7779 name "subsec:Cite-Engine-Files"
7780
7781 \end_inset
7782
7783 Cite engine files
7784 \end_layout
7785
7786 \begin_layout Standard
7787 A specific form of layout files are the so-called 
7788 \begin_inset Flex Code
7789 status collapsed
7790
7791 \begin_layout Plain Layout
7792 *.citeengine
7793 \end_layout
7794
7795 \end_inset
7796
7797  files that are located in the 
7798 \begin_inset Flex Code
7799 status collapsed
7800
7801 \begin_layout Plain Layout
7802 citeengines/
7803 \end_layout
7804
7805 \end_inset
7806
7807  sub-directory.
7808  Their purpose is to define the specifics of \SpecialChar LaTeX
7809  packages aimed at bibliography
7810  generation, such as 
7811 \family sans
7812 natbib
7813 \family default
7814 ,
7815 \family sans
7816  jurabib
7817 \family default
7818  or 
7819 \family sans
7820 biblatex
7821 \family default
7822 , but also the way how normal Bib\SpecialChar TeX
7823  citations (without additional packages)
7824  are handled in \SpecialChar LyX
7825  is defined in such a file.
7826  
7827 \end_layout
7828
7829 \begin_layout Standard
7830 More specifically, it is defined which packages \SpecialChar LyX
7831  needs to load, which citation
7832  commands are available, how these are to be displayed in \SpecialChar LyX
7833  (in the workarea,
7834  the dialogs, the context menus) as well as in the XHTML and plain text
7835  output.
7836  Furthermore, the files specify available style variants (author-year, numerical
7837 , etc.) and their specifics.
7838  The cite engine files are also used to generate the options that are available
7839  in 
7840 \family sans
7841 Document\SpecialChar menuseparator
7842 Settings\SpecialChar menuseparator
7843 Bibliography\SpecialChar menuseparator
7844 Style engine
7845 \family default
7846 .
7847 \end_layout
7848
7849 \begin_layout Standard
7850 Even though a cite engine file is essentially a normal layout file that
7851  could theoretically include any layout information, it usually primarily
7852  includes some specific parameters such as 
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 MaxCiteNames
7858 \end_layout
7859
7860 \end_inset
7861
7862
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 CiteFramework
7868 \end_layout
7869
7870 \end_inset
7871
7872
7873 \begin_inset Flex Code
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 CiteEngine
7878 \end_layout
7879
7880 \end_inset
7881
7882  and 
7883 \begin_inset Flex Code
7884 status collapsed
7885
7886 \begin_layout Plain Layout
7887 CiteFormat
7888 \end_layout
7889
7890 \end_inset
7891
7892  blocks.
7893  The syntax of the latter two is described in 
7894 \begin_inset CommandInset ref
7895 LatexCommand ref
7896 reference "subsec:Citation-engine-description"
7897 plural "false"
7898 caps "false"
7899 noprefix "false"
7900
7901 \end_inset
7902
7903  and 
7904 \begin_inset CommandInset ref
7905 LatexCommand ref
7906 reference "subsec:Citation-format-description"
7907
7908 \end_inset
7909
7910 , as well as in the files themselves.
7911 \end_layout
7912
7913 \begin_layout Section
7914 \begin_inset CommandInset label
7915 LatexCommand label
7916 name "sec:TextClass"
7917
7918 \end_inset
7919
7920 The layout file format
7921 \end_layout
7922
7923 \begin_layout Standard
7924 The following sections describe how layout files are structured and written.
7925  Our advice is to go slowly, save and test often.
7926  It is really not that hard, except that the multitude of options can become
7927  overwhelming, especially if you try to check out too many at once.
7928  It becomes easier if you use existing layouts of \SpecialChar LyX
7929  as examples/reference
7930  or if you modify an existing layout to your needs.
7931 \end_layout
7932
7933 \begin_layout Standard
7934 Note that all the tags used in layout files are case-insensitive.
7935  This means that 
7936 \begin_inset Flex Code
7937 status collapsed
7938
7939 \begin_layout Plain Layout
7940 Style
7941 \end_layout
7942
7943 \end_inset
7944
7945
7946 \begin_inset Flex Code
7947 status collapsed
7948
7949 \begin_layout Plain Layout
7950 style
7951 \end_layout
7952
7953 \end_inset
7954
7955  and 
7956 \begin_inset Flex Code
7957 status collapsed
7958
7959 \begin_layout Plain Layout
7960 StYlE
7961 \end_layout
7962
7963 \end_inset
7964
7965  are really the same tag.
7966  The possible arguments are printed in brackets after the tag's name.
7967  The default argument is typeset 
7968 \begin_inset Flex Code
7969 status collapsed
7970
7971 \begin_layout Plain Layout
7972
7973 \emph on
7974 emphasized
7975 \end_layout
7976
7977 \end_inset
7978
7979 .
7980  If the argument has a data type like 
7981 \begin_inset Quotes eld
7982 \end_inset
7983
7984 string
7985 \begin_inset Quotes erd
7986 \end_inset
7987
7988  or 
7989 \begin_inset Quotes eld
7990 \end_inset
7991
7992 float
7993 \begin_inset Quotes erd
7994 \end_inset
7995
7996 , the default is shown like this: 
7997 \begin_inset Flex Code
7998 status collapsed
7999
8000 \begin_layout Plain Layout
8001 float=
8002 \emph on
8003 default
8004 \end_layout
8005
8006 \end_inset
8007
8008 .
8009 \end_layout
8010
8011 \begin_layout Subsection
8012 The document class declaration and classification
8013 \end_layout
8014
8015 \begin_layout Standard
8016 Lines in a layout file which begin with 
8017 \begin_inset Flex Code
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 #
8022 \end_layout
8023
8024 \end_inset
8025
8026  are comments.
8027  There is one exception to this rule.
8028  All 
8029 \begin_inset Flex Code
8030 status collapsed
8031
8032 \begin_layout Plain Layout
8033 *.layout
8034 \end_layout
8035
8036 \end_inset
8037
8038  files should begin with lines like:
8039 \end_layout
8040
8041 \begin_layout LyX-Code
8042
8043 \size small
8044 #% Do not delete the line below; configure depends on this 
8045 \end_layout
8046
8047 \begin_layout LyX-Code
8048
8049 \size small
8050 #  
8051 \backslash
8052 DeclareLaTeXClass{Article (Standard Class)}
8053 \end_layout
8054
8055 \begin_layout LyX-Code
8056
8057 \size small
8058 #  
8059 \backslash
8060 DeclareCategory{Articles}
8061 \end_layout
8062
8063 \begin_layout Standard
8064 The second and third lines are used when you (re)configure \SpecialChar LyX
8065 .
8066  The layout file is read by the \SpecialChar LaTeX
8067  script 
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 chkconfig.ltx
8073 \end_layout
8074
8075 \end_inset
8076
8077 , in a special mode where 
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 #
8083 \end_layout
8084
8085 \end_inset
8086
8087  is ignored.
8088  The first line is just a \SpecialChar LaTeX
8089  comment, the second one contains the mandatory
8090  declaration of the text class and the third line contains the optional
8091  classification of the class.
8092  If these lines appear in a file named 
8093 \begin_inset Flex Code
8094 status collapsed
8095
8096 \begin_layout Plain Layout
8097 article.layout
8098 \end_layout
8099
8100 \end_inset
8101
8102 , then they define a text class of name 
8103 \begin_inset Flex Code
8104 status collapsed
8105
8106 \begin_layout Plain Layout
8107 article
8108 \end_layout
8109
8110 \end_inset
8111
8112  (the name of the layout file) which uses the \SpecialChar LaTeX
8113  document class 
8114 \begin_inset Flex Code
8115 status collapsed
8116
8117 \begin_layout Plain Layout
8118 article.cls
8119 \end_layout
8120
8121 \end_inset
8122
8123  (the default is to use the same name as the layout).
8124  The string 
8125 \begin_inset Quotes eld
8126 \end_inset
8127
8128 Article (Standard Class)
8129 \begin_inset Quotes erd
8130 \end_inset
8131
8132  that appears above is used as a description of the text class in the 
8133 \begin_inset Flex Noun
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137 Document\SpecialChar menuseparator
8138 Settings
8139 \end_layout
8140
8141 \end_inset
8142
8143  dialog.
8144  The category (
8145 \begin_inset Quotes eld
8146 \end_inset
8147
8148 Articles
8149 \begin_inset Quotes erd
8150 \end_inset
8151
8152  in the example) is also used in the 
8153 \begin_inset Flex Noun
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 Document\SpecialChar menuseparator
8158 Settings
8159 \end_layout
8160
8161 \end_inset
8162
8163  dialog: the text classes are grouped by these categories (which are usually
8164  genres, so typical categories are 
8165 \begin_inset Quotes eld
8166 \end_inset
8167
8168 Articles
8169 \begin_inset Quotes erd
8170 \end_inset
8171
8172
8173 \begin_inset Quotes eld
8174 \end_inset
8175
8176 Books
8177 \begin_inset Quotes erd
8178 \end_inset
8179
8180
8181 \begin_inset Quotes eld
8182 \end_inset
8183
8184 Reports
8185 \begin_inset Quotes erd
8186 \end_inset
8187
8188
8189 \begin_inset Quotes eld
8190 \end_inset
8191
8192 Letters
8193 \begin_inset Quotes erd
8194 \end_inset
8195
8196
8197 \begin_inset Quotes eld
8198 \end_inset
8199
8200 Presentations
8201 \begin_inset Quotes erd
8202 \end_inset
8203
8204
8205 \begin_inset Quotes eld
8206 \end_inset
8207
8208 Curricula Vitae
8209 \begin_inset Quotes erd
8210 \end_inset
8211
8212  etc.).
8213  If no category has been declared, the class will be put in the 
8214 \begin_inset Quotes eld
8215 \end_inset
8216
8217 Uncategorized
8218 \begin_inset Quotes erd
8219 \end_inset
8220
8221  group.
8222 \end_layout
8223
8224 \begin_layout Standard
8225 Let's assume that you wrote your own text class that uses the 
8226 \begin_inset Flex Code
8227 status collapsed
8228
8229 \begin_layout Plain Layout
8230 article.cls
8231 \end_layout
8232
8233 \end_inset
8234
8235  document class, but where you changed the appearance of the section headings.
8236  If you put it in a file 
8237 \begin_inset Flex Code
8238 status collapsed
8239
8240 \begin_layout Plain Layout
8241 myarticle.layout
8242 \end_layout
8243
8244 \end_inset
8245
8246 , the header of this file should be:
8247 \end_layout
8248
8249 \begin_layout LyX-Code
8250
8251 \size small
8252 #% Do not delete the line below; configure depends on this 
8253 \end_layout
8254
8255 \begin_layout LyX-Code
8256
8257 \size small
8258 #  
8259 \backslash
8260 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8261 \end_layout
8262
8263 \begin_layout LyX-Code
8264
8265 \size small
8266 #  
8267 \backslash
8268 DeclareCategory{Articles}
8269 \end_layout
8270
8271 \begin_layout Standard
8272 This declares a text class 
8273 \begin_inset Flex Code
8274 status collapsed
8275
8276 \begin_layout Plain Layout
8277 myarticle
8278 \end_layout
8279
8280 \end_inset
8281
8282 , associated with the \SpecialChar LaTeX
8283  document class 
8284 \begin_inset Flex Code
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 article.cls
8289 \end_layout
8290
8291 \end_inset
8292
8293  and described as 
8294 \begin_inset Quotes eld
8295 \end_inset
8296
8297 Article (with My Own Headings)
8298 \begin_inset Quotes erd
8299 \end_inset
8300
8301 .
8302  If your text class depends on several packages, you can declare it as:
8303 \end_layout
8304
8305 \begin_layout LyX-Code
8306
8307 \size small
8308 #% Do not delete the line below; configure depends on this 
8309 \end_layout
8310
8311 \begin_layout LyX-Code
8312
8313 \size small
8314 #  
8315 \backslash
8316 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8317 \end_layout
8318
8319 \begin_layout LyX-Code
8320
8321 \size small
8322 #  
8323 \backslash
8324 DeclareCategory{Articles}
8325 \end_layout
8326
8327 \begin_layout Standard
8328 This indicates that your text class uses the 
8329 \begin_inset Flex Code
8330 status collapsed
8331
8332 \begin_layout Plain Layout
8333 foo.sty
8334 \end_layout
8335
8336 \end_inset
8337
8338  package.
8339  Finally, it is also possible to declare classes for DocBook code.
8340  Typical declarations will look like:
8341 \end_layout
8342
8343 \begin_layout LyX-Code
8344
8345 \size small
8346 #% Do not delete the line below; configure depends on this 
8347 \end_layout
8348
8349 \begin_layout LyX-Code
8350
8351 \size small
8352
8353 \backslash
8354 DeclareDocBookClass[article]{SGML (DocBook Article)}
8355 \end_layout
8356
8357 \begin_layout LyX-Code
8358
8359 \size small
8360
8361 \backslash
8362 DeclareCategory{Articles (DocBook)}
8363 \end_layout
8364
8365 \begin_layout Standard
8366 Note that these declarations can also be given an optional parameter declaring
8367  the name of the document class (but not a list).
8368 \end_layout
8369
8370 \begin_layout Standard
8371 So, to be as explicit as possible, the form of the layout declaration is:
8372 \end_layout
8373
8374 \begin_layout LyX-Code
8375
8376 \size small
8377 #  
8378 \backslash
8379 DeclareLaTeXClass[class,package.sty]{layout description}
8380 \end_layout
8381
8382 \begin_layout LyX-Code
8383
8384 \size small
8385 #  
8386 \backslash
8387 DeclareCategory{category}
8388 \end_layout
8389
8390 \begin_layout Standard
8391 The class need only be specified if the name of the \SpecialChar LaTeX
8392  class file and the
8393  name of the layout file are different or if there are packages to load.
8394  If the name of the class file is not specified, then \SpecialChar LyX
8395  will simply assume
8396  that it is the same as the name of the layout file.
8397 \end_layout
8398
8399 \begin_layout Standard
8400 When the text class has been modified to your taste, all you have to do
8401  is to copy it either to 
8402 \begin_inset Flex Code
8403 status collapsed
8404
8405 \begin_layout Plain Layout
8406 LyXDir/layouts/
8407 \end_layout
8408
8409 \end_inset
8410
8411  or to 
8412 \begin_inset Flex Code
8413 status collapsed
8414
8415 \begin_layout Plain Layout
8416 UserDir/layouts
8417 \end_layout
8418
8419 \end_inset
8420
8421 , run 
8422 \begin_inset Flex Noun
8423 status collapsed
8424
8425 \begin_layout Plain Layout
8426 Tools\SpecialChar menuseparator
8427 Reconfigure
8428 \end_layout
8429
8430 \end_inset
8431
8432 , exit \SpecialChar LyX
8433  and restart.
8434  Then your new text class should be available along with the others.
8435 \end_layout
8436
8437 \begin_layout Standard
8438 Once the layout file is installed, you can edit it and see your changes
8439  without having to reconfigure or to restart \SpecialChar LyX
8440 .
8441 \begin_inset Foot
8442 status collapsed
8443
8444 \begin_layout Plain Layout
8445 In versions of \SpecialChar LyX
8446  prior to 1.6, this was not true.
8447  As a result, editing layout files was very time consuming, since you had
8448  constantly to restart \SpecialChar LyX
8449  to see changes.
8450 \end_layout
8451
8452 \end_inset
8453
8454  You can force a reload of the current layout by using the \SpecialChar LyX
8455  function 
8456 \begin_inset Flex Noun
8457 status collapsed
8458
8459 \begin_layout Plain Layout
8460 layout-reload
8461 \end_layout
8462
8463 \end_inset
8464
8465 .
8466  There is no default binding for this function—though, of course, you can
8467  bind it to a key yourself.
8468  But you will normally use this function simply by entering it in the mini-buffe
8469 r.
8470  
8471 \end_layout
8472
8473 \begin_layout Standard
8474
8475 \emph on
8476 Warning
8477 \emph default
8478
8479 \begin_inset Flex Noun
8480 status collapsed
8481
8482 \begin_layout Plain Layout
8483 layout-reload
8484 \end_layout
8485
8486 \end_inset
8487
8488  is very much an `advanced feature'.
8489  It is 
8490 \emph on
8491 strongly
8492 \emph default
8493  recommended that you save your work before using this function.
8494  In fact, it is 
8495 \emph on
8496 strongly
8497 \emph default
8498  recommended that you not attempt to edit layout information while simultaneousl
8499 y working on a document that you care about.
8500  Use a test document.
8501  Syntax errors and the like in your layout file could cause peculiar behavior.
8502  In particular, such errors could cause \SpecialChar LyX
8503  to regard the current layout as
8504  invalid and to attempt to switch to some other layout.
8505 \begin_inset Foot
8506 status collapsed
8507
8508 \begin_layout Plain Layout
8509 Really bad syntax errors may even caused \SpecialChar LyX
8510  to exit.
8511  This is because certain sorts of errors may make \SpecialChar LyX
8512  unable to read 
8513 \emph on
8514 any
8515 \emph default
8516  layout information.
8517  Please be careful.
8518 \end_layout
8519
8520 \end_inset
8521
8522  The \SpecialChar LyX
8523  team strives to keep \SpecialChar LyX
8524  stable in such situations, but safe is better
8525  than sorry.
8526 \begin_inset Foot
8527 status collapsed
8528
8529 \begin_layout Plain Layout
8530 While we're giving advice: make regular backups.
8531  And be nice to your mother.
8532 \end_layout
8533
8534 \end_inset
8535
8536
8537 \end_layout
8538
8539 \begin_layout Subsection
8540 The Module declaration
8541 \end_layout
8542
8543 \begin_layout Standard
8544 A module must begin with a line like the following:
8545 \end_layout
8546
8547 \begin_layout LyX-Code
8548 #
8549 \backslash
8550 DeclareLyXModule[endnotes.sty]{Endnotes}
8551 \change_inserted -712698321 1554395911
8552
8553 \end_layout
8554
8555 \begin_layout LyX-Code
8556
8557 \change_inserted -712698321 1554395924
8558
8559 \size small
8560 #
8561 \backslash
8562 DeclareCategory{Foot- and Endnotes}
8563 \change_deleted -712698321 1554395911
8564
8565 \size default
8566  
8567 \change_unchanged
8568
8569 \end_layout
8570
8571 \begin_layout Standard
8572 The mandatory argument
8573 \change_inserted -712698321 1554395956
8574  of 
8575 \family typewriter
8576
8577 \backslash
8578 DeclareLyXModule
8579 \change_unchanged
8580
8581 \family default
8582 , in curly brackets, is the name of the module, as it should appear in 
8583 \begin_inset Flex Noun
8584 status collapsed
8585
8586 \begin_layout Plain Layout
8587 Document\SpecialChar menuseparator
8588 Settings\SpecialChar menuseparator
8589 Modules
8590 \end_layout
8591
8592 \end_inset
8593
8594 .
8595  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8596  packages
8597  on which the module depends.
8598  It is also possible to use the form 
8599 \begin_inset Flex Noun
8600 status collapsed
8601
8602 \begin_layout Plain Layout
8603 from->to
8604 \end_layout
8605
8606 \end_inset
8607
8608  as an optional argument, which declares that the module can only be used
8609  when there exists a conversion chain between the formats `
8610 \begin_inset Flex Code
8611 status collapsed
8612
8613 \begin_layout Plain Layout
8614 from
8615 \end_layout
8616
8617 \end_inset
8618
8619 ' and `
8620 \begin_inset Flex Code
8621 status collapsed
8622
8623 \begin_layout Plain Layout
8624 to
8625 \end_layout
8626
8627 \end_inset
8628
8629 '.
8630
8631 \change_inserted -712698321 1554396133
8632  The 
8633 \family typewriter
8634
8635 \backslash
8636 DeclareCategory
8637 \family default
8638  declaration is not strictly mandatory, but you should add it, since it
8639  is helpful to find the module.
8640  Please have a look at the existing module categories and if appropriate,
8641  use one of those.
8642 \change_unchanged
8643
8644 \end_layout
8645
8646 \begin_layout Standard
8647 The module 
8648 \change_inserted -712698321 1554395988
8649 and category 
8650 \change_unchanged
8651 declaration should then be followed by lines like the following:
8652 \begin_inset Foot
8653 status collapsed
8654
8655 \begin_layout Plain Layout
8656 Preferably in English if the module should be published with \SpecialChar LyX
8657 .
8658  This description will appear in the list of messages to be translated and
8659  will be thus translated with the next interface update.
8660 \end_layout
8661
8662 \end_inset
8663
8664
8665 \end_layout
8666
8667 \begin_layout LyX-Code
8668 #DescriptionBegin 
8669 \end_layout
8670
8671 \begin_layout LyX-Code
8672 #Adds an endnote command, in addition to footnotes.
8673  
8674 \end_layout
8675
8676 \begin_layout LyX-Code
8677 #You will need to add  
8678 \backslash
8679 theendnotes in TeX code where you 
8680 \end_layout
8681
8682 \begin_layout LyX-Code
8683 #want the endnotes to appear.
8684  
8685 \end_layout
8686
8687 \begin_layout LyX-Code
8688 #DescriptionEnd 
8689 \end_layout
8690
8691 \begin_layout LyX-Code
8692 #Requires: somemodule | othermodule
8693 \end_layout
8694
8695 \begin_layout LyX-Code
8696 #Excludes: badmodule
8697 \end_layout
8698
8699 \begin_layout Standard
8700 The description is used in 
8701 \begin_inset Flex Noun
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705 Document\SpecialChar menuseparator
8706 Settings\SpecialChar menuseparator
8707 Modules
8708 \end_layout
8709
8710 \end_inset
8711
8712  to provide the user with information about what the module does.
8713  The 
8714 \begin_inset Flex Code
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718 Requires
8719 \end_layout
8720
8721 \end_inset
8722
8723  line is used to identify other modules with which this one must be used;
8724  the 
8725 \begin_inset Flex Code
8726 status collapsed
8727
8728 \begin_layout Plain Layout
8729 Excludes
8730 \end_layout
8731
8732 \end_inset
8733
8734  line is used to identify modules with which this one may not be used.
8735  Both are optional, and, as shown, multiple modules should be separated
8736  with the pipe symbol: |.
8737  Note that the required modules are treated disjunctively: 
8738 \emph on
8739 at least one
8740 \emph default
8741  of the required modules must be used.
8742  Similarly, 
8743 \emph on
8744 no
8745 \emph default
8746  excluded module may be used.
8747  Note that modules are identified here by their filenames without the 
8748 \begin_inset Flex Code
8749 status collapsed
8750
8751 \begin_layout Plain Layout
8752 .module
8753 \end_layout
8754
8755 \end_inset
8756
8757  extension.
8758  So 
8759 \begin_inset Flex Code
8760 status collapsed
8761
8762 \begin_layout Plain Layout
8763 somemodule
8764 \end_layout
8765
8766 \end_inset
8767
8768  is really 
8769 \begin_inset Flex Code
8770 status collapsed
8771
8772 \begin_layout Plain Layout
8773 somemodule.module
8774 \end_layout
8775
8776 \end_inset
8777
8778 .
8779 \end_layout
8780
8781 \begin_layout Subsection
8782 The CiteEngine file declaration
8783 \end_layout
8784
8785 \begin_layout Standard
8786 A cite engine file must begin with a line like the following:
8787 \end_layout
8788
8789 \begin_layout LyX-Code
8790 #
8791 \backslash
8792 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8793 \end_layout
8794
8795 \begin_layout Standard
8796 The mandatory argument, in curly brackets, is the name of the cite style,
8797  as it should appear in 
8798 \begin_inset Flex Noun
8799 status collapsed
8800
8801 \begin_layout Plain Layout
8802 Document\SpecialChar menuseparator
8803 Settings\SpecialChar menuseparator
8804 Bibliography
8805 \end_layout
8806
8807 \end_inset
8808
8809 .
8810  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8811  packages
8812  on which the cite engine depends.
8813 \end_layout
8814
8815 \begin_layout Standard
8816 The cite engine declaration should then be followed by lines like the following:
8817 \begin_inset Foot
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 Preferably in English if the module should be published with \SpecialChar LyX
8822 .
8823  This description will appear in the list of messages to be translated and
8824  will be thus translated with the next interface update.
8825 \end_layout
8826
8827 \end_inset
8828
8829
8830 \end_layout
8831
8832 \begin_layout LyX-Code
8833 # DescriptionBegin
8834 \end_layout
8835
8836 \begin_layout LyX-Code
8837 #   Biblatex supports many author-year and numerical styles.
8838 \end_layout
8839
8840 \begin_layout LyX-Code
8841 #   It is mainly aimed at the Humanities.
8842  It is highly
8843 \end_layout
8844
8845 \begin_layout LyX-Code
8846 #   customizable, fully localized and provides many features
8847 \end_layout
8848
8849 \begin_layout LyX-Code
8850 #   that are not possible with BibTeX.
8851  The use of 'biber' as
8852 \end_layout
8853
8854 \begin_layout LyX-Code
8855 #   bibliography processor is advised.
8856 \end_layout
8857
8858 \begin_layout LyX-Code
8859 # DescriptionEnd
8860 \end_layout
8861
8862 \begin_layout Standard
8863 The description is used in 
8864 \begin_inset Flex Noun
8865 status collapsed
8866
8867 \begin_layout Plain Layout
8868 Document\SpecialChar menuseparator
8869 Settings\SpecialChar menuseparator
8870 Bibliography
8871 \end_layout
8872
8873 \end_inset
8874
8875  to provide the user with information about the cite engine.
8876 \end_layout
8877
8878 \begin_layout Subsection
8879 Format number
8880 \end_layout
8881
8882 \begin_layout Standard
8883 The first non-comment line of any layout file, included file, or module
8884  
8885 \emph on
8886 must
8887 \emph default
8888  contain the file format number:
8889 \end_layout
8890
8891 \begin_layout Description
8892 \begin_inset Flex Code
8893 status collapsed
8894
8895 \begin_layout Plain Layout
8896 Format
8897 \end_layout
8898
8899 \end_inset
8900
8901  [
8902 \begin_inset Flex Code
8903 status collapsed
8904
8905 \begin_layout Plain Layout
8906 int
8907 \end_layout
8908
8909 \end_inset
8910
8911 ] The format number of the layout file.
8912 \end_layout
8913
8914 \begin_layout Standard
8915 This tag was introduced with \SpecialChar LyX
8916
8917 \begin_inset space ~
8918 \end_inset
8919
8920 1.4.0.
8921  Layout files from older \SpecialChar LyX
8922  versions do not have an explicit file format and
8923  are considered to have 
8924 \begin_inset Flex Code
8925 status collapsed
8926
8927 \begin_layout Plain Layout
8928 Format
8929 \begin_inset space ~
8930 \end_inset
8931
8932 1
8933 \end_layout
8934
8935 \end_inset
8936
8937 .
8938  The format for the present version of \SpecialChar LyX
8939  is format 60.
8940  But each version of \SpecialChar LyX
8941  is capable of reading earlier versions' layout files,
8942  just as they are capable of reading files produced by earlier versions
8943  of \SpecialChar LyX
8944 .
8945  There is, however, no provision for converting to earlier formats.
8946 \end_layout
8947
8948 \begin_layout Subsection
8949 \begin_inset CommandInset label
8950 LatexCommand label
8951 name "subsec:General-text-class"
8952
8953 \end_inset
8954
8955 General text class parameters
8956 \end_layout
8957
8958 \begin_layout Standard
8959 These are general parameters that govern the behavior of an entire document
8960  class.
8961  (This does 
8962 \emph on
8963 not
8964 \emph default
8965  mean that they must appear in 
8966 \begin_inset Flex Code
8967 status collapsed
8968
8969 \begin_layout Plain Layout
8970 .layout
8971 \end_layout
8972
8973 \end_inset
8974
8975  files rather than in modules.
8976  A module can contain any layout tag.)
8977 \end_layout
8978
8979 \begin_layout Description
8980
8981 \change_inserted -712698321 1526899478
8982 \begin_inset Flex Code
8983 status collapsed
8984
8985 \begin_layout Plain Layout
8986
8987 \change_inserted -712698321 1526898610
8988 AddToCiteEngine <engine>
8989 \end_layout
8990
8991 \end_inset
8992
8993  Extends the possibilities for displaying citation references.
8994  See 
8995 \begin_inset CommandInset ref
8996 LatexCommand ref
8997 reference "subsec:Citation-engine-description"
8998 plural "false"
8999 caps "false"
9000 noprefix "false"
9001
9002 \end_inset
9003
9004  for details.
9005  Must end with 
9006 \begin_inset Flex Code
9007 status collapsed
9008
9009 \begin_layout Plain Layout
9010
9011 \change_inserted -712698321 1526898823
9012 End
9013 \change_unchanged
9014
9015 \end_layout
9016
9017 \end_inset
9018
9019 .
9020 \end_layout
9021
9022 \begin_layout Description
9023 \begin_inset Flex Code
9024 status collapsed
9025
9026 \begin_layout Plain Layout
9027 AddToHTMLPreamble
9028 \end_layout
9029
9030 \end_inset
9031
9032  Adds information that will be output in the 
9033 \begin_inset Flex Code
9034 status collapsed
9035
9036 \begin_layout Plain Layout
9037 <head>
9038 \end_layout
9039
9040 \end_inset
9041
9042  block when the document is output to XHTML.
9043  Typically, this would be used to output CSS style information, but it can
9044  be used for anything that can appear in 
9045 \begin_inset Flex Code
9046 status collapsed
9047
9048 \begin_layout Plain Layout
9049 <head>
9050 \end_layout
9051
9052 \end_inset
9053
9054 .
9055  Must end with 
9056 \begin_inset Quotes eld
9057 \end_inset
9058
9059
9060 \begin_inset Flex Code
9061 status collapsed
9062
9063 \begin_layout Plain Layout
9064 EndPreamble
9065 \end_layout
9066
9067 \end_inset
9068
9069
9070 \begin_inset Quotes erd
9071 \end_inset
9072
9073 .
9074 \end_layout
9075
9076 \begin_layout Description
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 AddToPreamble
9082 \end_layout
9083
9084 \end_inset
9085
9086  Adds information to the document preamble.
9087  Must end with
9088 \begin_inset Newline newline
9089 \end_inset
9090
9091
9092 \begin_inset Quotes eld
9093 \end_inset
9094
9095
9096 \begin_inset Flex Code
9097 status collapsed
9098
9099 \begin_layout Plain Layout
9100 EndPreamble
9101 \end_layout
9102
9103 \end_inset
9104
9105
9106 \begin_inset Quotes erd
9107 \end_inset
9108
9109 .
9110 \end_layout
9111
9112 \begin_layout Description
9113 \begin_inset Flex Code
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 CiteEngine <engine>
9118 \end_layout
9119
9120 \end_inset
9121
9122  Defines the possibilities for displaying citation references.
9123  See 
9124 \begin_inset CommandInset ref
9125 LatexCommand ref
9126 reference "subsec:Citation-engine-description"
9127 plural "false"
9128 caps "false"
9129 noprefix "false"
9130
9131 \end_inset
9132
9133  for details.
9134  Must end with 
9135 \begin_inset Quotes eld
9136 \end_inset
9137
9138
9139 \begin_inset Flex Code
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 End
9144 \end_layout
9145
9146 \end_inset
9147
9148
9149 \begin_inset Quotes erd
9150 \end_inset
9151
9152 .
9153  Primarily used in cite engine files (see 
9154 \begin_inset CommandInset ref
9155 LatexCommand ref
9156 reference "subsec:Cite-Engine-Files"
9157 plural "false"
9158 caps "false"
9159 noprefix "false"
9160
9161 \end_inset
9162
9163 ).
9164
9165 \change_inserted -712698321 1526898530
9166  Note that if you specify this in a layout file or module, any cite engine
9167  definition will be overridden.
9168  Also see 
9169 \begin_inset Flex Code
9170 status collapsed
9171
9172 \begin_layout Plain Layout
9173
9174 \change_inserted -712698321 1526898530
9175 AddToCiteEngine
9176 \change_unchanged
9177
9178 \end_layout
9179
9180 \end_inset
9181
9182 .
9183 \change_unchanged
9184
9185 \end_layout
9186
9187 \begin_layout Description
9188 \begin_inset Flex Code
9189 status collapsed
9190
9191 \begin_layout Plain Layout
9192 CiteFormat
9193 \end_layout
9194
9195 \end_inset
9196
9197  Defines formats for use in the display of bibliographic information.
9198  See 
9199 \begin_inset CommandInset ref
9200 LatexCommand ref
9201 reference "subsec:Citation-format-description"
9202
9203 \end_inset
9204
9205  for details.
9206  Must end with 
9207 \begin_inset Quotes eld
9208 \end_inset
9209
9210
9211 \begin_inset Flex Code
9212 status collapsed
9213
9214 \begin_layout Plain Layout
9215 End
9216 \end_layout
9217
9218 \end_inset
9219
9220
9221 \begin_inset Quotes erd
9222 \end_inset
9223
9224 .
9225  Primarily used in cite engine files (see 
9226 \begin_inset CommandInset ref
9227 LatexCommand ref
9228 reference "subsec:Cite-Engine-Files"
9229 plural "false"
9230 caps "false"
9231 noprefix "false"
9232
9233 \end_inset
9234
9235 ).
9236
9237 \change_inserted -712698321 1526898585
9238  A cite format defined in a layout or module will override the cite engine
9239  definition.
9240 \change_unchanged
9241
9242 \end_layout
9243
9244 \begin_layout Description
9245 \begin_inset Flex Code
9246 status collapsed
9247
9248 \begin_layout Plain Layout
9249 CiteFramework
9250 \end_layout
9251
9252 \end_inset
9253
9254  [
9255 \begin_inset Flex Code
9256 status collapsed
9257
9258 \begin_layout Plain Layout
9259
9260 \emph on
9261 bibtex
9262 \end_layout
9263
9264 \end_inset
9265
9266 ,
9267 \begin_inset Flex Code
9268 status collapsed
9269
9270 \begin_layout Plain Layout
9271 biblatex
9272 \end_layout
9273
9274 \end_inset
9275
9276 ] Determines whether 
9277 \family sans
9278 Biblatex
9279 \family default
9280  or Bib\SpecialChar TeX
9281  is used to generate a Bibliography.
9282  Primarily used in cite engine files (see 
9283 \begin_inset CommandInset ref
9284 LatexCommand ref
9285 reference "subsec:Cite-Engine-Files"
9286 plural "false"
9287 caps "false"
9288 noprefix "false"
9289
9290 \end_inset
9291
9292 ).
9293 \end_layout
9294
9295 \begin_layout Description
9296 \begin_inset Flex Code
9297 status collapsed
9298
9299 \begin_layout Plain Layout
9300 ClassOptions
9301 \end_layout
9302
9303 \end_inset
9304
9305  Describes various global options supported by the document class.
9306  See 
9307 \begin_inset CommandInset ref
9308 LatexCommand ref
9309 reference "subsec:ClassOptions"
9310
9311 \end_inset
9312
9313  for a description.
9314  Must end with 
9315 \begin_inset Quotes eld
9316 \end_inset
9317
9318
9319 \begin_inset Flex Code
9320 status collapsed
9321
9322 \begin_layout Plain Layout
9323 End
9324 \end_layout
9325
9326 \end_inset
9327
9328
9329 \begin_inset Quotes erd
9330 \end_inset
9331
9332 .
9333 \end_layout
9334
9335 \begin_layout Description
9336 \begin_inset Flex Code
9337 status collapsed
9338
9339 \begin_layout Plain Layout
9340 Columns
9341 \end_layout
9342
9343 \end_inset
9344
9345  [
9346 \begin_inset Flex Code
9347 status collapsed
9348
9349 \begin_layout Plain Layout
9350
9351 \emph on
9352 1
9353 \end_layout
9354
9355 \end_inset
9356
9357 ,
9358 \begin_inset space \thinspace{}
9359 \end_inset
9360
9361
9362 \begin_inset Flex Code
9363 status collapsed
9364
9365 \begin_layout Plain Layout
9366 2
9367 \end_layout
9368
9369 \end_inset
9370
9371 ] Whether the class should 
9372 \emph on
9373 default
9374 \emph default
9375  to having one or two columns.
9376  Can be changed in the 
9377 \begin_inset Flex Noun
9378 status collapsed
9379
9380 \begin_layout Plain Layout
9381 Document\SpecialChar menuseparator
9382 Settings
9383 \end_layout
9384
9385 \end_inset
9386
9387  dialog.
9388 \end_layout
9389
9390 \begin_layout Description
9391 \begin_inset Flex Code
9392 status collapsed
9393
9394 \begin_layout Plain Layout
9395 Counter
9396 \end_layout
9397
9398 \end_inset
9399
9400  [
9401 \begin_inset Flex Code
9402 status collapsed
9403
9404 \begin_layout Plain Layout
9405 string
9406 \end_layout
9407
9408 \end_inset
9409
9410 ] This sequence defines the properties for a counter.
9411  If the counter does not yet exist, it is created; if it does exist, it
9412  is modified.
9413  Must end with 
9414 \begin_inset Quotes eld
9415 \end_inset
9416
9417
9418 \begin_inset Flex Code
9419 status collapsed
9420
9421 \begin_layout Plain Layout
9422 End
9423 \end_layout
9424
9425 \end_inset
9426
9427
9428 \begin_inset Quotes erd
9429 \end_inset
9430
9431 .
9432 \begin_inset Newline newline
9433 \end_inset
9434
9435 See 
9436 \begin_inset CommandInset ref
9437 LatexCommand ref
9438 reference "subsec:Counters"
9439
9440 \end_inset
9441
9442  for details on counters.
9443 \end_layout
9444
9445 \begin_layout Description
9446 \begin_inset Flex Code
9447 status collapsed
9448
9449 \begin_layout Plain Layout
9450 DefaultFont
9451 \end_layout
9452
9453 \end_inset
9454
9455  Sets the default font used to display the document.
9456  See 
9457 \begin_inset CommandInset ref
9458 LatexCommand ref
9459 reference "subsec:Font-description"
9460
9461 \end_inset
9462
9463  for how to declare fonts.
9464  Must end with 
9465 \begin_inset Quotes eld
9466 \end_inset
9467
9468
9469 \begin_inset Flex Code
9470 status collapsed
9471
9472 \begin_layout Plain Layout
9473 EndFont
9474 \end_layout
9475
9476 \end_inset
9477
9478
9479 \begin_inset Quotes erd
9480 \end_inset
9481
9482 .
9483 \end_layout
9484
9485 \begin_layout Description
9486 \begin_inset Flex Code
9487 status collapsed
9488
9489 \begin_layout Plain Layout
9490 DefaultModule
9491 \end_layout
9492
9493 \end_inset
9494
9495  [
9496 \begin_inset Flex Code
9497 status collapsed
9498
9499 \begin_layout Plain Layout
9500 <module>
9501 \end_layout
9502
9503 \end_inset
9504
9505 ] Specifies a module to be included by default with this document class.
9506  The module is specified as filename without the 
9507 \begin_inset Flex Code
9508 status collapsed
9509
9510 \begin_layout Plain Layout
9511 .module
9512 \end_layout
9513
9514 \end_inset
9515
9516  extension.
9517  The user can still remove the module, but it will be active at the outset.
9518  (This applies only when new files are created, or when this class is chosen
9519  for an existing document.)
9520 \end_layout
9521
9522 \begin_layout Description
9523 \begin_inset Flex Code
9524 status collapsed
9525
9526 \begin_layout Plain Layout
9527 DefaultStyle
9528 \end_layout
9529
9530 \end_inset
9531
9532  [
9533 \begin_inset Flex Code
9534 status collapsed
9535
9536 \begin_layout Plain Layout
9537 <style>
9538 \end_layout
9539
9540 \end_inset
9541
9542 ] This is the style that will be assigned to new paragraphs, usually 
9543 \begin_inset Flex Noun
9544 status collapsed
9545
9546 \begin_layout Plain Layout
9547 Standard
9548 \end_layout
9549
9550 \end_inset
9551
9552 .
9553  This will default to the first defined style if not given, but you are
9554  encouraged to use this directive.
9555 \end_layout
9556
9557 \begin_layout Description
9558 \begin_inset Flex Code
9559 status collapsed
9560
9561 \begin_layout Plain Layout
9562 ExcludesModule
9563 \end_layout
9564
9565 \end_inset
9566
9567  [
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 <module>
9573 \end_layout
9574
9575 \end_inset
9576
9577 ] This tag indicates that the module (which is specified by filename without
9578  the 
9579 \begin_inset Flex Code
9580 status collapsed
9581
9582 \begin_layout Plain Layout
9583 .module
9584 \end_layout
9585
9586 \end_inset
9587
9588  extension) cannot be used with this document class.
9589  This might be used in a journal-specific layout file to prevent, say, the
9590  use of the 
9591 \begin_inset Flex Code
9592 status collapsed
9593
9594 \begin_layout Plain Layout
9595 theorems-sec
9596 \end_layout
9597
9598 \end_inset
9599
9600  module that numbers theorems by section.
9601  This tag may 
9602 \emph on
9603 not
9604 \emph default
9605  be used in a module.
9606  Modules have their own way of excluding other modules (see 
9607 \begin_inset CommandInset ref
9608 LatexCommand ref
9609 reference "subsec:Layout-modules"
9610
9611 \end_inset
9612
9613 ).
9614 \end_layout
9615
9616 \begin_layout Description
9617 \begin_inset Flex Code
9618 status collapsed
9619
9620 \begin_layout Plain Layout
9621 Float
9622 \end_layout
9623
9624 \end_inset
9625
9626  Defines a new float.
9627  See 
9628 \begin_inset CommandInset ref
9629 LatexCommand ref
9630 reference "subsec:Floats"
9631
9632 \end_inset
9633
9634  for details.
9635  Must end with 
9636 \begin_inset Quotes eld
9637 \end_inset
9638
9639
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644 End
9645 \end_layout
9646
9647 \end_inset
9648
9649
9650 \begin_inset Quotes erd
9651 \end_inset
9652
9653 .
9654 \end_layout
9655
9656 \begin_layout Description
9657 \begin_inset Flex Code
9658 status collapsed
9659
9660 \begin_layout Plain Layout
9661 HTMLPreamble
9662 \end_layout
9663
9664 \end_inset
9665
9666  Sets the information that will be output in the 
9667 \begin_inset Flex Code
9668 status collapsed
9669
9670 \begin_layout Plain Layout
9671 <head>
9672 \end_layout
9673
9674 \end_inset
9675
9676  block when this document class is output to XHTML.
9677  Note that this will completely override any prior 
9678 \begin_inset Flex Code
9679 status collapsed
9680
9681 \begin_layout Plain Layout
9682 HTMLPreamble
9683 \end_layout
9684
9685 \end_inset
9686
9687  or 
9688 \begin_inset Flex Code
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 AddToHTMLPreamble
9693 \end_layout
9694
9695 \end_inset
9696
9697  declarations.
9698  (Use
9699 \begin_inset Newline newline
9700 \end_inset
9701
9702
9703 \begin_inset Flex Code
9704 status collapsed
9705
9706 \begin_layout Plain Layout
9707 AddToHTMLPreamble
9708 \end_layout
9709
9710 \end_inset
9711
9712  if you just want to add material to the preamble.) Must end with 
9713 \begin_inset Quotes eld
9714 \end_inset
9715
9716
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 EndPreamble
9722 \end_layout
9723
9724 \end_inset
9725
9726
9727 \begin_inset Quotes erd
9728 \end_inset
9729
9730 .
9731 \end_layout
9732
9733 \begin_layout Description
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 HTMLTOCSection
9739 \end_layout
9740
9741 \end_inset
9742
9743  [
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 <style>
9749 \end_layout
9750
9751 \end_inset
9752
9753 ] The style to use for the table of contents, bibliography, and so forth,
9754  when the document is output to HTML.
9755  For articles, this should normally be 
9756 \begin_inset Flex Code
9757 status collapsed
9758
9759 \begin_layout Plain Layout
9760 Section
9761 \end_layout
9762
9763 \end_inset
9764
9765 ; for books 
9766 \begin_inset Flex Code
9767 status collapsed
9768
9769 \begin_layout Plain Layout
9770 Chapter
9771 \end_layout
9772
9773 \end_inset
9774
9775 .
9776  If it is not given, then \SpecialChar LyX
9777  will attempt to figure out which layout to use.
9778 \end_layout
9779
9780 \begin_layout Description
9781 \begin_inset Flex Code
9782 status collapsed
9783
9784 \begin_layout Plain Layout
9785 IfCounter
9786 \end_layout
9787
9788 \end_inset
9789
9790  [
9791 \begin_inset Flex Code
9792 status collapsed
9793
9794 \begin_layout Plain Layout
9795 <counter>
9796 \end_layout
9797
9798 \end_inset
9799
9800 ] Modifies the properties of the given counter.
9801  If the counter does not exist, the statement is ignored.
9802  Must end with 
9803 \begin_inset Quotes eld
9804 \end_inset
9805
9806
9807 \begin_inset Flex Code
9808 status collapsed
9809
9810 \begin_layout Plain Layout
9811 End
9812 \end_layout
9813
9814 \end_inset
9815
9816
9817 \begin_inset Quotes erd
9818 \end_inset
9819
9820 .
9821 \begin_inset Newline newline
9822 \end_inset
9823
9824 See 
9825 \begin_inset CommandInset ref
9826 LatexCommand ref
9827 reference "subsec:Counters"
9828
9829 \end_inset
9830
9831  for details on counters.
9832 \end_layout
9833
9834 \begin_layout Description
9835 \begin_inset Flex Code
9836 status collapsed
9837
9838 \begin_layout Plain Layout
9839 Input
9840 \end_layout
9841
9842 \end_inset
9843
9844  [
9845 \begin_inset Flex Code
9846 status collapsed
9847
9848 \begin_layout Plain Layout
9849 <filename>
9850 \end_layout
9851
9852 \end_inset
9853
9854 ] This allows you to include another layout definition file within yours
9855  to avoid duplicating commands.
9856  Common examples are the standard layout files, for example, 
9857 \begin_inset Flex Code
9858 status collapsed
9859
9860 \begin_layout Plain Layout
9861 stdclass.inc
9862 \end_layout
9863
9864 \end_inset
9865
9866 , which contains most of the basic layouts.
9867 \end_layout
9868
9869 \begin_layout Description
9870 \begin_inset Flex Code
9871 status collapsed
9872
9873 \begin_layout Plain Layout
9874 InsetLayout
9875 \end_layout
9876
9877 \end_inset
9878
9879  [
9880 \begin_inset Flex Code
9881 status collapsed
9882
9883 \begin_layout Plain Layout
9884 <type>
9885 \end_layout
9886
9887 \end_inset
9888
9889 ] This section (re-)defines the layout of an inset.
9890  It can be applied to an existing inset or to a new, user-defined inset,
9891  e.g., a new character style.
9892  Must end with 
9893 \begin_inset Quotes eld
9894 \end_inset
9895
9896
9897 \begin_inset Flex Code
9898 status collapsed
9899
9900 \begin_layout Plain Layout
9901 End
9902 \end_layout
9903
9904 \end_inset
9905
9906
9907 \begin_inset Quotes erd
9908 \end_inset
9909
9910 .
9911 \begin_inset Newline newline
9912 \end_inset
9913
9914 See 
9915 \begin_inset CommandInset ref
9916 LatexCommand ref
9917 reference "subsec:Flex-insets-and"
9918
9919 \end_inset
9920
9921  for more information.
9922  
9923 \end_layout
9924
9925 \begin_layout Description
9926 \begin_inset Flex Code
9927 status collapsed
9928
9929 \begin_layout Plain Layout
9930 LeftMargin
9931 \end_layout
9932
9933 \end_inset
9934
9935  [
9936 \begin_inset Flex Code
9937 status collapsed
9938
9939 \begin_layout Plain Layout
9940 string
9941 \end_layout
9942
9943 \end_inset
9944
9945 ] A string that indicates the width of the left margin on the screen, for
9946  example, 
9947 \begin_inset Quotes eld
9948 \end_inset
9949
9950
9951 \begin_inset Flex Code
9952 status collapsed
9953
9954 \begin_layout Plain Layout
9955 MMMMM
9956 \end_layout
9957
9958 \end_inset
9959
9960
9961 \begin_inset Quotes erd
9962 \end_inset
9963
9964 .
9965  (Note that this is not a `length', like 
9966 \begin_inset Quotes eld
9967 \end_inset
9968
9969 2ex
9970 \begin_inset Quotes erd
9971 \end_inset
9972
9973 .)
9974 \end_layout
9975
9976 \begin_layout Description
9977 \begin_inset Flex Code
9978 status collapsed
9979
9980 \begin_layout Plain Layout
9981 MaxCiteNames
9982 \end_layout
9983
9984 \end_inset
9985
9986  [
9987 \begin_inset Flex Code
9988 status collapsed
9989
9990 \begin_layout Plain Layout
9991 integer
9992 \end_layout
9993
9994 \end_inset
9995
9996 ] An integer that determines the maximal number of names displayed in an
9997  author-year citation before the citation switches to 
9998 \begin_inset Quotes eld
9999 \end_inset
10000
10001 FirstAuthor et al.
10002 \begin_inset Quotes erd
10003 \end_inset
10004
10005 .
10006  Primarily used in cite engine files (see 
10007 \begin_inset CommandInset ref
10008 LatexCommand ref
10009 reference "subsec:Cite-Engine-Files"
10010 plural "false"
10011 caps "false"
10012 noprefix "false"
10013
10014 \end_inset
10015
10016 ).
10017 \end_layout
10018
10019 \begin_layout Description
10020 \begin_inset Flex Code
10021 status collapsed
10022
10023 \begin_layout Plain Layout
10024 ModifyStyle
10025 \end_layout
10026
10027 \end_inset
10028
10029  [
10030 \begin_inset Flex Code
10031 status collapsed
10032
10033 \begin_layout Plain Layout
10034 <style>
10035 \end_layout
10036
10037 \end_inset
10038
10039 ] Modifies the properties of the given paragraph style.
10040  If the style does not exist, this section is ignored.
10041  Must end with 
10042 \begin_inset Quotes eld
10043 \end_inset
10044
10045
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050 End
10051 \end_layout
10052
10053 \end_inset
10054
10055
10056 \begin_inset Quotes erd
10057 \end_inset
10058
10059 .
10060 \end_layout
10061
10062 \begin_layout Description
10063 \begin_inset Flex Code
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067 NoCounter
10068 \end_layout
10069
10070 \end_inset
10071
10072  [
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 <counter>
10078 \end_layout
10079
10080 \end_inset
10081
10082 ] Deletes an existing counter, usually one defined in an included file.
10083 \end_layout
10084
10085 \begin_layout Description
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 NoFloat
10091 \end_layout
10092
10093 \end_inset
10094
10095  [
10096 \begin_inset Flex Code
10097 status collapsed
10098
10099 \begin_layout Plain Layout
10100 <float>
10101 \end_layout
10102
10103 \end_inset
10104
10105 ] Deletes an existing float.
10106  This is particularly useful when you want to suppress a float that has
10107  been defined in an input file.
10108 \end_layout
10109
10110 \begin_layout Description
10111 \begin_inset Flex Code
10112 status collapsed
10113
10114 \begin_layout Plain Layout
10115 NoStyle
10116 \end_layout
10117
10118 \end_inset
10119
10120  [
10121 \begin_inset Flex Code
10122 status collapsed
10123
10124 \begin_layout Plain Layout
10125 <style>
10126 \end_layout
10127
10128 \end_inset
10129
10130 ] Deletes an existing style.
10131 \end_layout
10132
10133 \begin_layout Description
10134 \begin_inset Flex Code
10135 status collapsed
10136
10137 \begin_layout Plain Layout
10138 OutlinerName
10139 \end_layout
10140
10141 \end_inset
10142
10143  [
10144 \begin_inset Flex Code
10145 status collapsed
10146
10147 \begin_layout Plain Layout
10148 <type>
10149 \end_layout
10150
10151 \end_inset
10152
10153 ] [
10154 \begin_inset Flex Code
10155 status collapsed
10156
10157 \begin_layout Plain Layout
10158 <string>
10159 \end_layout
10160
10161 \end_inset
10162
10163 ] Define a new table of contents with type 
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 <type>
10169 \end_layout
10170
10171 \end_inset
10172
10173  and name 
10174 \begin_inset Flex Code
10175 status collapsed
10176
10177 \begin_layout Plain Layout
10178 <string>
10179 \end_layout
10180
10181 \end_inset
10182
10183 .
10184  See also the AddToToc commands.
10185 \end_layout
10186
10187 \begin_layout Description
10188 \begin_inset Flex Code
10189 status collapsed
10190
10191 \begin_layout Plain Layout
10192 OutputFormat
10193 \end_layout
10194
10195 \end_inset
10196
10197  [
10198 \begin_inset Flex Code
10199 status collapsed
10200
10201 \begin_layout Plain Layout
10202 <format>
10203 \end_layout
10204
10205 \end_inset
10206
10207 ] The file format (as defined in the \SpecialChar LyX
10208  preferences) produced by this document
10209  class.
10210  It is mainly useful when 
10211 \begin_inset Flex Code
10212 status collapsed
10213
10214 \begin_layout Plain Layout
10215 OutputType
10216 \end_layout
10217
10218 \end_inset
10219
10220  is 
10221 \begin_inset Flex Code
10222 status collapsed
10223
10224 \begin_layout Plain Layout
10225 literate
10226 \end_layout
10227
10228 \end_inset
10229
10230  and one wants to define a new type of literate document.
10231  The format is reset to 
10232 \begin_inset Quotes eld
10233 \end_inset
10234
10235
10236 \begin_inset Flex Code
10237 status collapsed
10238
10239 \begin_layout Plain Layout
10240 docbook
10241 \end_layout
10242
10243 \end_inset
10244
10245
10246 \begin_inset Quotes erd
10247 \end_inset
10248
10249  or 
10250 \begin_inset Quotes eld
10251 \end_inset
10252
10253
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 latex
10259 \end_layout
10260
10261 \end_inset
10262
10263
10264 \begin_inset Quotes erd
10265 \end_inset
10266
10267  when the corresponding 
10268 \begin_inset Flex Code
10269 status collapsed
10270
10271 \begin_layout Plain Layout
10272 OutputType
10273 \end_layout
10274
10275 \end_inset
10276
10277  parameter is encountered.
10278 \end_layout
10279
10280 \begin_layout Description
10281 \begin_inset Flex Code
10282 status collapsed
10283
10284 \begin_layout Plain Layout
10285 OutputType
10286 \end_layout
10287
10288 \end_inset
10289
10290  [
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295
10296 \emph on
10297 lat
10298 \emph default
10299 ex
10300 \end_layout
10301
10302 \end_inset
10303
10304
10305 \begin_inset Flex Code
10306 status collapsed
10307
10308 \begin_layout Plain Layout
10309 docbook
10310 \end_layout
10311
10312 \end_inset
10313
10314
10315 \begin_inset Flex Code
10316 status collapsed
10317
10318 \begin_layout Plain Layout
10319 literate
10320 \end_layout
10321
10322 \end_inset
10323
10324 ] Specifies what sort of output documents using this class will produce.
10325 \end_layout
10326
10327 \begin_layout Description
10328 \begin_inset Flex Code
10329 status collapsed
10330
10331 \begin_layout Plain Layout
10332 PackageOptions
10333 \end_layout
10334
10335 \end_inset
10336
10337  [
10338 \begin_inset Flex Code
10339 status collapsed
10340
10341 \begin_layout Plain Layout
10342 string
10343 \end_layout
10344
10345 \end_inset
10346
10347  
10348 \begin_inset Flex Code
10349 status collapsed
10350
10351 \begin_layout Plain Layout
10352 string
10353 \end_layout
10354
10355 \end_inset
10356
10357 ] Specifies options, given in the second string, for the package named by
10358  the first string.
10359  For example, 
10360 \begin_inset Quotes eld
10361 \end_inset
10362
10363
10364 \begin_inset Flex Code
10365 status collapsed
10366
10367 \begin_layout Plain Layout
10368 PackageOptions natbib square
10369 \end_layout
10370
10371 \end_inset
10372
10373
10374 \begin_inset Quotes erd
10375 \end_inset
10376
10377  will cause 
10378 \begin_inset Flex Code
10379 status collapsed
10380
10381 \begin_layout Plain Layout
10382 natbib
10383 \end_layout
10384
10385 \end_inset
10386
10387  to be loaded with the 
10388 \begin_inset Flex Code
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392 square
10393 \end_layout
10394
10395 \end_inset
10396
10397  option.
10398  (For \SpecialChar TeX
10399 perts, this causes \SpecialChar LyX
10400  to output: 
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405
10406 \backslash
10407 PassOptionsToPackage{natbib}{square}
10408 \end_layout
10409
10410 \end_inset
10411
10412  prior to loading 
10413 \begin_inset Flex Code
10414 status collapsed
10415
10416 \begin_layout Plain Layout
10417 natbib
10418 \end_layout
10419
10420 \end_inset
10421
10422 .)
10423 \end_layout
10424
10425 \begin_layout Description
10426 \begin_inset Flex Code
10427 status collapsed
10428
10429 \begin_layout Plain Layout
10430 PageStyle
10431 \end_layout
10432
10433 \end_inset
10434
10435  [
10436 \begin_inset Flex Code
10437 status collapsed
10438
10439 \begin_layout Plain Layout
10440
10441 \emph on
10442 plain
10443 \end_layout
10444
10445 \end_inset
10446
10447
10448 \begin_inset Flex Code
10449 status collapsed
10450
10451 \begin_layout Plain Layout
10452 empty
10453 \end_layout
10454
10455 \end_inset
10456
10457
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 headings
10463 \end_layout
10464
10465 \end_inset
10466
10467 ] The default pagestyle.
10468  Can be changed in the 
10469 \begin_inset Flex Noun
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 Document\SpecialChar menuseparator
10474 Settings
10475 \end_layout
10476
10477 \end_inset
10478
10479  dialog.
10480 \end_layout
10481
10482 \begin_layout Description
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 Preamble
10488 \end_layout
10489
10490 \end_inset
10491
10492  Sets the preamble for the \SpecialChar LaTeX
10493  document.
10494  Note that this will completely override any prior 
10495 \begin_inset Flex Code
10496 status collapsed
10497
10498 \begin_layout Plain Layout
10499 Preamble
10500 \end_layout
10501
10502 \end_inset
10503
10504  or 
10505 \begin_inset Flex Code
10506 status collapsed
10507
10508 \begin_layout Plain Layout
10509 AddToPreamble
10510 \end_layout
10511
10512 \end_inset
10513
10514  declarations.
10515  (Use 
10516 \begin_inset Flex Code
10517 status collapsed
10518
10519 \begin_layout Plain Layout
10520 AddToPreamble
10521 \end_layout
10522
10523 \end_inset
10524
10525  if you just want to add material to the preamble.) Must end with 
10526 \begin_inset Quotes eld
10527 \end_inset
10528
10529
10530 \begin_inset Flex Code
10531 status collapsed
10532
10533 \begin_layout Plain Layout
10534 EndPreamble
10535 \end_layout
10536
10537 \end_inset
10538
10539
10540 \begin_inset Quotes erd
10541 \end_inset
10542
10543 .
10544 \end_layout
10545
10546 \begin_layout Description
10547 \begin_inset Flex Code
10548 status collapsed
10549
10550 \begin_layout Plain Layout
10551 Provides
10552 \end_layout
10553
10554 \end_inset
10555
10556  [
10557 \begin_inset Flex Code
10558 status collapsed
10559
10560 \begin_layout Plain Layout
10561 string
10562 \end_layout
10563
10564 \end_inset
10565
10566 ] [
10567 \begin_inset Flex Code
10568 status collapsed
10569
10570 \begin_layout Plain Layout
10571
10572 \emph on
10573 0
10574 \end_layout
10575
10576 \end_inset
10577
10578 ,
10579 \begin_inset space \thinspace{}
10580 \end_inset
10581
10582
10583 \begin_inset Flex Code
10584 status collapsed
10585
10586 \begin_layout Plain Layout
10587 1
10588 \end_layout
10589
10590 \end_inset
10591
10592 ] Whether the class already provides the feature 
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 string
10598 \end_layout
10599
10600 \end_inset
10601
10602 .
10603  A feature is in general the name of a package (e.
10604 \begin_inset space \thinspace{}
10605 \end_inset
10606
10607 g.
10608 \begin_inset space \space{}
10609 \end_inset
10610
10611
10612 \begin_inset Flex Code
10613 status collapsed
10614
10615 \begin_layout Plain Layout
10616 amsmath
10617 \end_layout
10618
10619 \end_inset
10620
10621  or 
10622 \begin_inset Flex Code
10623 status collapsed
10624
10625 \begin_layout Plain Layout
10626 makeidx
10627 \end_layout
10628
10629 \end_inset
10630
10631 ) or a macro (e.
10632 \begin_inset space \thinspace{}
10633 \end_inset
10634
10635 g.
10636 \begin_inset space \space{}
10637 \end_inset
10638
10639
10640 \begin_inset Flex Code
10641 status collapsed
10642
10643 \begin_layout Plain Layout
10644 url
10645 \end_layout
10646
10647 \end_inset
10648
10649  or 
10650 \begin_inset Flex Code
10651 status collapsed
10652
10653 \begin_layout Plain Layout
10654 boldsymbol
10655 \end_layout
10656
10657 \end_inset
10658
10659 ).
10660  See 
10661 \begin_inset CommandInset ref
10662 LatexCommand ref
10663 reference "chap:List-of-functions"
10664
10665 \end_inset
10666
10667  for the list of features.
10668 \end_layout
10669
10670 \begin_layout Description
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 ProvidesModule
10676 \end_layout
10677
10678 \end_inset
10679
10680  [
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 string
10686 \end_layout
10687
10688 \end_inset
10689
10690 ] Indicates that this layout provides the functionality of the module mentioned,
10691  which should be specified by the filename without the 
10692 \begin_inset Flex Code
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 .module
10697 \end_layout
10698
10699 \end_inset
10700
10701  extension.
10702  This will typically be used if the layout includes the module directly,
10703  rather than using the 
10704 \begin_inset Flex Code
10705 status collapsed
10706
10707 \begin_layout Plain Layout
10708 DefaultModule
10709 \end_layout
10710
10711 \end_inset
10712
10713  tag to indicate that it ought to be used.
10714  It could also be used in a module that provided an alternate implementation
10715  of the same functionality.
10716 \end_layout
10717
10718 \begin_layout Description
10719 \begin_inset Flex Code
10720 status collapsed
10721
10722 \begin_layout Plain Layout
10723 ProvideStyle
10724 \end_layout
10725
10726 \end_inset
10727
10728  [
10729 \begin_inset Flex Code
10730 status collapsed
10731
10732 \begin_layout Plain Layout
10733 <style>
10734 \end_layout
10735
10736 \end_inset
10737
10738 ] Creates a new paragraph style if it does not already exist.
10739  If the style does exist, this section is ignored.
10740  Must end with 
10741 \begin_inset Quotes eld
10742 \end_inset
10743
10744
10745 \begin_inset Flex Code
10746 status collapsed
10747
10748 \begin_layout Plain Layout
10749 End
10750 \end_layout
10751
10752 \end_inset
10753
10754
10755 \begin_inset Quotes erd
10756 \end_inset
10757
10758 .
10759 \end_layout
10760
10761 \begin_layout Description
10762 \begin_inset Flex Code
10763 status collapsed
10764
10765 \begin_layout Plain Layout
10766 Requires
10767 \end_layout
10768
10769 \end_inset
10770
10771  [
10772 \begin_inset Flex Code
10773 status collapsed
10774
10775 \begin_layout Plain Layout
10776 string
10777 \end_layout
10778
10779 \end_inset
10780
10781 ] Whether the class requires the feature 
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786 string
10787 \end_layout
10788
10789 \end_inset
10790
10791 .
10792  Multiple features must be separated by commas.
10793  Note that you can only request supported features.
10794  (See 
10795 \begin_inset CommandInset ref
10796 LatexCommand ref
10797 reference "chap:List-of-functions"
10798
10799 \end_inset
10800
10801  for the list of features.).
10802  If you require a package with specific options, you can additionally use
10803  
10804 \begin_inset Flex Code
10805 status collapsed
10806
10807 \begin_layout Plain Layout
10808 PackageOptions
10809 \end_layout
10810
10811 \end_inset
10812
10813 .
10814 \end_layout
10815
10816 \begin_layout Description
10817 \begin_inset Flex Code
10818 status collapsed
10819
10820 \begin_layout Plain Layout
10821 RightMargin
10822 \end_layout
10823
10824 \end_inset
10825
10826  [
10827 \begin_inset Flex Code
10828 status collapsed
10829
10830 \begin_layout Plain Layout
10831 string
10832 \end_layout
10833
10834 \end_inset
10835
10836 ] A string that indicates the width of the right margin on the screen, for
10837  example, 
10838 \begin_inset Quotes eld
10839 \end_inset
10840
10841
10842 \begin_inset Flex Code
10843 status collapsed
10844
10845 \begin_layout Plain Layout
10846 MMMMM
10847 \end_layout
10848
10849 \end_inset
10850
10851
10852 \begin_inset Quotes erd
10853 \end_inset
10854
10855 .
10856 \end_layout
10857
10858 \begin_layout Description
10859 \begin_inset Flex Code
10860 status collapsed
10861
10862 \begin_layout Plain Layout
10863 SecNumDepth
10864 \end_layout
10865
10866 \end_inset
10867
10868  [
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873 int=3
10874 \end_layout
10875
10876 \end_inset
10877
10878 ] Sets which divisions get numbered.
10879  Corresponds to the
10880 \begin_inset Newline newline
10881 \end_inset
10882
10883
10884 \begin_inset Flex Code
10885 status collapsed
10886
10887 \begin_layout Plain Layout
10888 secnumdepth
10889 \end_layout
10890
10891 \end_inset
10892
10893  counter in \SpecialChar LaTeX
10894 .
10895 \end_layout
10896
10897 \begin_layout Description
10898 \begin_inset Flex Code
10899 status collapsed
10900
10901 \begin_layout Plain Layout
10902 Sides
10903 \end_layout
10904
10905 \end_inset
10906
10907  [
10908 \begin_inset Flex Code
10909 status collapsed
10910
10911 \begin_layout Plain Layout
10912
10913 \emph on
10914 1
10915 \end_layout
10916
10917 \end_inset
10918
10919 ,
10920 \begin_inset space \thinspace{}
10921 \end_inset
10922
10923
10924 \begin_inset Flex Code
10925 status collapsed
10926
10927 \begin_layout Plain Layout
10928 2
10929 \end_layout
10930
10931 \end_inset
10932
10933 ] Whether the class-default should be printing on one or both sides of the
10934  paper.
10935  Can be changed in the 
10936 \begin_inset Flex Noun
10937 status collapsed
10938
10939 \begin_layout Plain Layout
10940 Document\SpecialChar menuseparator
10941 Settings
10942 \end_layout
10943
10944 \end_inset
10945
10946  dialog.
10947 \end_layout
10948
10949 \begin_layout Description
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 Style
10955 \end_layout
10956
10957 \end_inset
10958
10959  [
10960 \begin_inset Flex Code
10961 status collapsed
10962
10963 \begin_layout Plain Layout
10964 <name>
10965 \end_layout
10966
10967 \end_inset
10968
10969 ] This sequence defines a paragraph style.
10970  If the style does not yet exist, it is created; if it does exist, its parameter
10971 s are modified.
10972  Must end with 
10973 \begin_inset Quotes eld
10974 \end_inset
10975
10976
10977 \begin_inset Flex Code
10978 status collapsed
10979
10980 \begin_layout Plain Layout
10981 End
10982 \end_layout
10983
10984 \end_inset
10985
10986
10987 \begin_inset Quotes erd
10988 \end_inset
10989
10990 .
10991 \begin_inset Newline newline
10992 \end_inset
10993
10994 See 
10995 \begin_inset CommandInset ref
10996 LatexCommand ref
10997 reference "subsec:Paragraph-Styles"
10998
10999 \end_inset
11000
11001  for details on paragraph styles.
11002 \change_inserted -712698321 1553617804
11003
11004 \end_layout
11005
11006 \begin_layout Description
11007
11008 \change_inserted -712698321 1553617862
11009 \begin_inset Flex Code
11010 status collapsed
11011
11012 \begin_layout Plain Layout
11013
11014 \change_inserted -712698321 1553617809
11015 TableStyle
11016 \end_layout
11017
11018 \end_inset
11019
11020  [
11021 \begin_inset Flex Code
11022 status collapsed
11023
11024 \begin_layout Plain Layout
11025
11026 \change_inserted -712698321 1553617805
11027 <name>
11028 \end_layout
11029
11030 \end_inset
11031
11032 ] defines the default table style that is used when inserting a table.
11033  The following styles are available:
11034 \end_layout
11035
11036 \begin_deeper
11037 \begin_layout Itemize
11038
11039 \change_inserted -712698321 1554308039
11040 \begin_inset Flex Code
11041 status collapsed
11042
11043 \begin_layout Plain Layout
11044
11045 \change_inserted -712698321 1554307928
11046 Formal_with_Footline
11047 \change_unchanged
11048
11049 \end_layout
11050
11051 \end_inset
11052
11053 : formal (
11054 \begin_inset Quotes eld
11055 \end_inset
11056
11057 booktabs
11058 \begin_inset Quotes erd
11059 \end_inset
11060
11061 ) style with horizontal lines only, using a bold top and bottom line, the
11062  first and last row are additionally separated from the table body with
11063  a thin middle line.
11064 \end_layout
11065
11066 \begin_layout Itemize
11067
11068 \change_inserted -712698321 1554308087
11069 \begin_inset Flex Code
11070 status collapsed
11071
11072 \begin_layout Plain Layout
11073
11074 \change_inserted -712698321 1554308042
11075 Formal_without_Footline
11076 \end_layout
11077
11078 \end_inset
11079
11080 : same as the above, but the last row is not separated with a middle line
11081  from the body.
11082 \end_layout
11083
11084 \begin_layout Itemize
11085
11086 \change_inserted -712698321 1553618031
11087 \begin_inset Flex Code
11088 status collapsed
11089
11090 \begin_layout Plain Layout
11091
11092 \change_inserted -712698321 1553618006
11093 Simple_Grid
11094 \end_layout
11095
11096 \end_inset
11097
11098 : Simple table lines.
11099 \end_layout
11100
11101 \begin_layout Itemize
11102
11103 \change_inserted -712698321 1553618309
11104 \begin_inset Flex Code
11105 status collapsed
11106
11107 \begin_layout Plain Layout
11108
11109 \change_inserted -712698321 1553618031
11110 Grid_with_Head
11111 \end_layout
11112
11113 \end_inset
11114
11115 : Like 
11116 \begin_inset Flex Code
11117 status collapsed
11118
11119 \begin_layout Plain Layout
11120
11121 \change_inserted -712698321 1553618043
11122 Simple_Grid
11123 \end_layout
11124
11125 \end_inset
11126
11127 , but with the header column offset with a second horizontal line.
11128  This is also the default style of \SpecialChar LyX
11129 .
11130 \end_layout
11131
11132 \begin_layout Itemize
11133
11134 \change_inserted -712698321 1553618280
11135 \begin_inset Flex Code
11136 status collapsed
11137
11138 \begin_layout Plain Layout
11139
11140 \change_inserted -712698321 1553618261
11141 No_Borders
11142 \end_layout
11143
11144 \end_inset
11145
11146 : Table without lines.
11147 \change_unchanged
11148
11149 \end_layout
11150
11151 \end_deeper
11152 \begin_layout Description
11153 \begin_inset Flex Code
11154 status collapsed
11155
11156 \begin_layout Plain Layout
11157 TitleLatexName
11158 \end_layout
11159
11160 \end_inset
11161
11162  [
11163 \begin_inset Flex Code
11164 status collapsed
11165
11166 \begin_layout Plain Layout
11167 string="maketitle"
11168 \end_layout
11169
11170 \end_inset
11171
11172 ] The name of the command or environment to be used with 
11173 \begin_inset Flex Code
11174 status collapsed
11175
11176 \begin_layout Plain Layout
11177 TitleLatexType
11178 \end_layout
11179
11180 \end_inset
11181
11182 .
11183 \end_layout
11184
11185 \begin_layout Description
11186 \begin_inset Flex Code
11187 status collapsed
11188
11189 \begin_layout Plain Layout
11190 TitleLatexType
11191 \end_layout
11192
11193 \end_inset
11194
11195  [
11196 \begin_inset Flex Code
11197 status collapsed
11198
11199 \begin_layout Plain Layout
11200
11201 \emph on
11202 CommandAfter
11203 \end_layout
11204
11205 \end_inset
11206
11207
11208 \begin_inset Flex Code
11209 status collapsed
11210
11211 \begin_layout Plain Layout
11212 Environment
11213 \end_layout
11214
11215 \end_inset
11216
11217 ] Indicates what kind of markup is used to define the title of a document.
11218  
11219 \begin_inset Flex Code
11220 status collapsed
11221
11222 \begin_layout Plain Layout
11223 CommandAfter
11224 \end_layout
11225
11226 \end_inset
11227
11228  means that the macro with name 
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 TitleLatexName
11234 \end_layout
11235
11236 \end_inset
11237
11238  will be inserted after the last layout which has 
11239 \begin_inset Quotes eld
11240 \end_inset
11241
11242
11243 \begin_inset Flex Code
11244 status collapsed
11245
11246 \begin_layout Plain Layout
11247 InTitle
11248 \begin_inset space ~
11249 \end_inset
11250
11251 1
11252 \end_layout
11253
11254 \end_inset
11255
11256
11257 \begin_inset Quotes erd
11258 \end_inset
11259
11260 .
11261  
11262 \begin_inset Flex Code
11263 status collapsed
11264
11265 \begin_layout Plain Layout
11266 Environment
11267 \end_layout
11268
11269 \end_inset
11270
11271  corresponds to the case where all layouts which have 
11272 \begin_inset Quotes eld
11273 \end_inset
11274
11275
11276 \begin_inset Flex Code
11277 status collapsed
11278
11279 \begin_layout Plain Layout
11280 InTitle
11281 \begin_inset space ~
11282 \end_inset
11283
11284 1
11285 \end_layout
11286
11287 \end_inset
11288
11289
11290 \begin_inset Quotes erd
11291 \end_inset
11292
11293  should be enclosed into the 
11294 \begin_inset Flex Code
11295 status collapsed
11296
11297 \begin_layout Plain Layout
11298 TitleLatexName
11299 \end_layout
11300
11301 \end_inset
11302
11303  environment.
11304 \end_layout
11305
11306 \begin_layout Description
11307 \begin_inset Flex Code
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311 TocDepth
11312 \end_layout
11313
11314 \end_inset
11315
11316  [
11317 \begin_inset Flex Code
11318 status collapsed
11319
11320 \begin_layout Plain Layout
11321 int=3
11322 \end_layout
11323
11324 \end_inset
11325
11326 ] Sets which divisions are included in the table of contents.
11327  Corresponds to the 
11328 \begin_inset Flex Code
11329 status collapsed
11330
11331 \begin_layout Plain Layout
11332 tocdepth
11333 \end_layout
11334
11335 \end_inset
11336
11337  counter in \SpecialChar LaTeX
11338 .
11339 \end_layout
11340
11341 \begin_layout Subsection
11342 \begin_inset Flex Code
11343 status collapsed
11344
11345 \begin_layout Plain Layout
11346 ClassOptions
11347 \end_layout
11348
11349 \end_inset
11350
11351  section
11352 \begin_inset CommandInset label
11353 LatexCommand label
11354 name "subsec:ClassOptions"
11355
11356 \end_inset
11357
11358
11359 \end_layout
11360
11361 \begin_layout Standard
11362 The 
11363 \begin_inset Flex Code
11364 status collapsed
11365
11366 \begin_layout Plain Layout
11367 ClassOptions
11368 \end_layout
11369
11370 \end_inset
11371
11372  section can contain the following entries:
11373 \end_layout
11374
11375 \begin_layout Description
11376 \begin_inset Flex Code
11377 status collapsed
11378
11379 \begin_layout Plain Layout
11380 FontSize
11381 \end_layout
11382
11383 \end_inset
11384
11385  [
11386 \begin_inset Flex Code
11387 status collapsed
11388
11389 \begin_layout Plain Layout
11390 string="10|11|12"
11391 \end_layout
11392
11393 \end_inset
11394
11395 ] The list of available font sizes for the document's main font, separated
11396  by 
11397 \begin_inset Quotes eld
11398 \end_inset
11399
11400
11401 \begin_inset Flex Code
11402 status collapsed
11403
11404 \begin_layout Plain Layout
11405 |
11406 \end_layout
11407
11408 \end_inset
11409
11410
11411 \begin_inset Quotes erd
11412 \end_inset
11413
11414 .
11415 \end_layout
11416
11417 \begin_layout Description
11418 \begin_inset Flex Code
11419 status collapsed
11420
11421 \begin_layout Plain Layout
11422 Header
11423 \end_layout
11424
11425 \end_inset
11426
11427  Used to set the DTD line with XML-based output classes.
11428  E.
11429 \begin_inset space \thinspace{}
11430 \end_inset
11431
11432 g.: PUBLIC 
11433 \begin_inset Quotes eld
11434 \end_inset
11435
11436 -//OASIS//DTD DocBook V4.2//EN
11437 \begin_inset Quotes erd
11438 \end_inset
11439
11440 .
11441 \end_layout
11442
11443 \begin_layout Description
11444 \begin_inset Flex Code
11445 status collapsed
11446
11447 \begin_layout Plain Layout
11448 PageStyle
11449 \end_layout
11450
11451 \end_inset
11452
11453  [
11454 \begin_inset Flex Code
11455 status collapsed
11456
11457 \begin_layout Plain Layout
11458 string="empty|plain|headings|fancy"
11459 \end_layout
11460
11461 \end_inset
11462
11463 ] The list of available page sty\SpecialChar softhyphen
11464 les, separated by 
11465 \begin_inset Quotes eld
11466 \end_inset
11467
11468
11469 \begin_inset Flex Code
11470 status collapsed
11471
11472 \begin_layout Plain Layout
11473 |
11474 \end_layout
11475
11476 \end_inset
11477
11478
11479 \begin_inset Quotes erd
11480 \end_inset
11481
11482 .
11483 \end_layout
11484
11485 \begin_layout Description
11486 \begin_inset Flex Code
11487 status collapsed
11488
11489 \begin_layout Plain Layout
11490 Other
11491 \end_layout
11492
11493 \end_inset
11494
11495  [
11496 \begin_inset Flex Code
11497 status collapsed
11498
11499 \begin_layout Plain Layout
11500 string=""
11501 \end_layout
11502
11503 \end_inset
11504
11505 ] Some document class options, separated by a comma, that will be added
11506  to the optional part of the 
11507 \begin_inset Flex Code
11508 status collapsed
11509
11510 \begin_layout Plain Layout
11511
11512 \backslash
11513 documentclass
11514 \end_layout
11515
11516 \end_inset
11517
11518  command.
11519 \end_layout
11520
11521 \begin_layout Standard
11522 The 
11523 \begin_inset Flex Code
11524 status collapsed
11525
11526 \begin_layout Plain Layout
11527 ClassOptions
11528 \end_layout
11529
11530 \end_inset
11531
11532  section must end with 
11533 \begin_inset Quotes eld
11534 \end_inset
11535
11536
11537 \begin_inset Flex Code
11538 status collapsed
11539
11540 \begin_layout Plain Layout
11541 End
11542 \end_layout
11543
11544 \end_inset
11545
11546
11547 \begin_inset Quotes erd
11548 \end_inset
11549
11550 .
11551 \end_layout
11552
11553 \begin_layout Subsection
11554 Paragraph styles
11555 \begin_inset CommandInset label
11556 LatexCommand label
11557 name "subsec:Paragraph-Styles"
11558
11559 \end_inset
11560
11561
11562 \end_layout
11563
11564 \begin_layout Standard
11565 A paragraph style description looks like this:
11566 \begin_inset Foot
11567 status collapsed
11568
11569 \begin_layout Plain Layout
11570 Note that this will either define a new style or modify an existing one.
11571 \end_layout
11572
11573 \end_inset
11574
11575
11576 \end_layout
11577
11578 \begin_layout LyX-Code
11579 Style 
11580 \family roman
11581 \emph on
11582 name
11583 \end_layout
11584
11585 \begin_layout LyX-Code
11586  ...
11587 \end_layout
11588
11589 \begin_layout LyX-Code
11590 End
11591 \end_layout
11592
11593 \begin_layout Standard
11594 where the following commands are allowed:
11595 \end_layout
11596
11597 \begin_layout Description
11598 \begin_inset Flex Code
11599 status collapsed
11600
11601 \begin_layout Plain Layout
11602 AddToToc
11603 \end_layout
11604
11605 \end_inset
11606
11607  [
11608 \begin_inset Flex Code
11609 status collapsed
11610
11611 \begin_layout Plain Layout
11612 string
11613 \end_layout
11614
11615 \end_inset
11616
11617 =""] This paragraph will appear in the table of contents of the given type.
11618  An empty string disables.
11619  See also the OutlinerName and the IsTocCaption commands.
11620  Default: disabled.
11621 \end_layout
11622
11623 \begin_layout Description
11624 \begin_inset Flex Code
11625 status collapsed
11626
11627 \begin_layout Plain Layout
11628 Align
11629 \end_layout
11630
11631 \end_inset
11632
11633  [
11634 \begin_inset Flex Code
11635 status collapsed
11636
11637 \begin_layout Plain Layout
11638
11639 \emph on
11640 block
11641 \emph default
11642 , left, right, center
11643 \end_layout
11644
11645 \end_inset
11646
11647 ] Paragraph alignment.
11648 \end_layout
11649
11650 \begin_layout Description
11651 \begin_inset Flex Code
11652 status collapsed
11653
11654 \begin_layout Plain Layout
11655 AlignPossible
11656 \end_layout
11657
11658 \end_inset
11659
11660  [
11661 \begin_inset Flex Code
11662 status collapsed
11663
11664 \begin_layout Plain Layout
11665
11666 \emph on
11667 block
11668 \emph default
11669 , left, right, center
11670 \end_layout
11671
11672 \end_inset
11673
11674 ] A comma separated list of permitted alignments.
11675  (Some \SpecialChar LaTeX
11676  styles prohibit certain alignments, since those wouldn't make sense.
11677  For example a right-aligned or centered enumeration isn't possible.)
11678 \end_layout
11679
11680 \begin_layout Description
11681 \begin_inset Flex Code
11682 status collapsed
11683
11684 \begin_layout Plain Layout
11685 Argument
11686 \end_layout
11687
11688 \end_inset
11689
11690  [
11691 \begin_inset Flex Code
11692 status collapsed
11693
11694 \begin_layout Plain Layout
11695 int
11696 \end_layout
11697
11698 \end_inset
11699
11700 ] Defines argument number <int> of a command\SpecialChar breakableslash
11701 environment associated with
11702  the current style.
11703  This is useful for things like section headings, and only makes sense with
11704  \SpecialChar LaTeX
11705 .
11706  Every (optional or required) argument of a command or environment – except
11707  for the required argument that is associated with the content of the paragraph
11708  itself – has a separate definition, where the number specifies the order
11709  of the arguments.
11710  The definition must end with 
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715 EndArgument
11716 \end_layout
11717
11718 \end_inset
11719
11720 .
11721  So a command with two optional arguments has:
11722 \end_layout
11723
11724 \begin_deeper
11725 \begin_layout Quote
11726
11727 \family typewriter
11728 Argument 1
11729 \end_layout
11730
11731 \begin_layout Quote
11732
11733 \family typewriter
11734 ...
11735 \end_layout
11736
11737 \begin_layout Quote
11738
11739 \family typewriter
11740 EndArgument
11741 \end_layout
11742
11743 \begin_layout Quote
11744
11745 \family typewriter
11746 Argument 2
11747 \end_layout
11748
11749 \begin_layout Quote
11750
11751 \family typewriter
11752 ...
11753 \end_layout
11754
11755 \begin_layout Quote
11756
11757 \family typewriter
11758 EndArgument
11759 \end_layout
11760
11761 \begin_layout Standard
11762 Inside the 
11763 \begin_inset Flex Code
11764 status collapsed
11765
11766 \begin_layout Plain Layout
11767 Argument
11768 \end_layout
11769
11770 \end_inset
11771
11772  definition, the following specifications are possible:
11773 \end_layout
11774
11775 \begin_layout Itemize
11776 \begin_inset Flex Code
11777 status collapsed
11778
11779 \begin_layout Plain Layout
11780 LabelString
11781 \end_layout
11782
11783 \end_inset
11784
11785  
11786 \begin_inset Flex Code
11787 status collapsed
11788
11789 \begin_layout Plain Layout
11790 [string]
11791 \end_layout
11792
11793 \end_inset
11794
11795  The string that will appear both in the menu (to insert this argument)
11796  and on the argument inset button (unless you also specify a separate 
11797 \begin_inset Flex Code
11798 status collapsed
11799
11800 \begin_layout Plain Layout
11801 MenuString
11802 \end_layout
11803
11804 \end_inset
11805
11806 ).
11807  For the menu, you can define an accelerator by appending the respective
11808  character to the string, divided by 
11809 \begin_inset Quotes eld
11810 \end_inset
11811
11812 |
11813 \begin_inset Quotes erd
11814 \end_inset
11815
11816  (e.
11817 \begin_inset space \thinspace{}
11818 \end_inset
11819
11820 g.
11821 \begin_inset space \space{}
11822 \end_inset
11823
11824
11825 \begin_inset Quotes eld
11826 \end_inset
11827
11828
11829 \begin_inset Flex Code
11830 status collapsed
11831
11832 \begin_layout Plain Layout
11833 Short Title|S
11834 \end_layout
11835
11836 \end_inset
11837
11838
11839 \begin_inset Quotes erd
11840 \end_inset
11841
11842 ).
11843 \end_layout
11844
11845 \begin_layout Itemize
11846 \begin_inset Flex Code
11847 status collapsed
11848
11849 \begin_layout Plain Layout
11850 MenuString
11851 \end_layout
11852
11853 \end_inset
11854
11855  
11856 \begin_inset Flex Code
11857 status collapsed
11858
11859 \begin_layout Plain Layout
11860 [string]
11861 \end_layout
11862
11863 \end_inset
11864
11865  A separate string for the menu.
11866  You can define an accelerator by appending the respective character to
11867  the string, divided by 
11868 \begin_inset Quotes eld
11869 \end_inset
11870
11871 |
11872 \begin_inset Quotes erd
11873 \end_inset
11874
11875  (e.
11876 \begin_inset space \thinspace{}
11877 \end_inset
11878
11879 g.
11880 \begin_inset space \space{}
11881 \end_inset
11882
11883
11884 \begin_inset Quotes eld
11885 \end_inset
11886
11887
11888 \begin_inset Flex Code
11889 status collapsed
11890
11891 \begin_layout Plain Layout
11892 Short Title|S
11893 \end_layout
11894
11895 \end_inset
11896
11897
11898 \begin_inset Quotes erd
11899 \end_inset
11900
11901 ).
11902  This specification is optional.
11903  If it is not given the 
11904 \begin_inset Flex Code
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908 LabelString
11909 \end_layout
11910
11911 \end_inset
11912
11913  will be used instead for the menu.
11914 \end_layout
11915
11916 \begin_layout Itemize
11917 \begin_inset Flex Code
11918 status collapsed
11919
11920 \begin_layout Plain Layout
11921 Tooltip
11922 \end_layout
11923
11924 \end_inset
11925
11926  
11927 \begin_inset Flex Code
11928 status collapsed
11929
11930 \begin_layout Plain Layout
11931 [string]
11932 \end_layout
11933
11934 \end_inset
11935
11936  A longer explanatory text that appears in the tooltip when hovering over
11937  the argument inset.
11938 \end_layout
11939
11940 \begin_layout Itemize
11941 \begin_inset Flex Code
11942 status collapsed
11943
11944 \begin_layout Plain Layout
11945 Mandatory
11946 \end_layout
11947
11948 \end_inset
11949
11950  [
11951 \begin_inset Flex Code
11952 status collapsed
11953
11954 \begin_layout Plain Layout
11955
11956 \emph on
11957 0
11958 \end_layout
11959
11960 \end_inset
11961
11962 ,
11963 \begin_inset space \thinspace{}
11964 \end_inset
11965
11966
11967 \begin_inset Flex Code
11968 status collapsed
11969
11970 \begin_layout Plain Layout
11971 1
11972 \end_layout
11973
11974 \end_inset
11975
11976 ] Declare if this is a mandatory (1) or an optional (0) argument.
11977  Mandatory arguments will be output empty if not given, while optional arguments
11978  will not be output at all.
11979  By default, mandatory arguments are delimited by 
11980 \begin_inset Flex Code
11981 status collapsed
11982
11983 \begin_layout Plain Layout
11984 {...}
11985 \end_layout
11986
11987 \end_inset
11988
11989 , while optional arguments are delimited by 
11990 \begin_inset Flex Code
11991 status collapsed
11992
11993 \begin_layout Plain Layout
11994 [...]
11995 \end_layout
11996
11997 \end_inset
11998
11999
12000 \change_inserted -712698321 1555579782
12001
12002 \end_layout
12003
12004 \begin_layout Itemize
12005
12006 \change_inserted -712698321 1555579780
12007 \begin_inset Flex Code
12008 status collapsed
12009
12010 \begin_layout Plain Layout
12011
12012 \change_inserted -712698321 1555579780
12013 NewlineCmd
12014 \end_layout
12015
12016 \end_inset
12017
12018  
12019 \begin_inset Flex Code
12020 status collapsed
12021
12022 \begin_layout Plain Layout
12023
12024 \change_inserted -712698321 1555579780
12025 [string]
12026 \end_layout
12027
12028 \end_inset
12029
12030  Option to define a different command (from the default 
12031 \begin_inset Flex Code
12032 status collapsed
12033
12034 \begin_layout Plain Layout
12035
12036 \change_inserted -712698321 1555579780
12037
12038 \backslash
12039
12040 \backslash
12041
12042 \end_layout
12043
12044 \end_inset
12045
12046 ) to be used for line breaks.
12047  The initial backslash must not be specified.
12048 \change_unchanged
12049
12050 \end_layout
12051
12052 \begin_layout Itemize
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057 Requires
12058 \end_layout
12059
12060 \end_inset
12061
12062  
12063 \begin_inset Flex Code
12064 status collapsed
12065
12066 \begin_layout Plain Layout
12067 [int=0]
12068 \end_layout
12069
12070 \end_inset
12071
12072  defines another argument (by its number) which this argument requires to
12073  be output if it is itself output.
12074  E.
12075 \begin_inset space \thinspace{}
12076 \end_inset
12077
12078 g., in \SpecialChar LaTeX
12079  commands, optional arguments often require previous optional arguments
12080  to be output (at least empty), as in 
12081 \begin_inset Flex Code
12082 status collapsed
12083
12084 \begin_layout Plain Layout
12085
12086 \backslash
12087 command[][argument]{text}
12088 \end_layout
12089
12090 \end_inset
12091
12092 .
12093  This can be achieved by the statement 
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098 Requires 1
12099 \end_layout
12100
12101 \end_inset
12102
12103  within 
12104 \begin_inset Flex Code
12105 status collapsed
12106
12107 \begin_layout Plain Layout
12108 Argument 2
12109 \end_layout
12110
12111 \end_inset
12112
12113 .
12114 \end_layout
12115
12116 \begin_layout Itemize
12117 \begin_inset Flex Code
12118 status collapsed
12119
12120 \begin_layout Plain Layout
12121 LeftDelim
12122 \end_layout
12123
12124 \end_inset
12125
12126  
12127 \begin_inset Flex Code
12128 status collapsed
12129
12130 \begin_layout Plain Layout
12131 [string]
12132 \end_layout
12133
12134 \end_inset
12135
12136  defines a custom left delimiter (instead of 
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 {
12142 \end_layout
12143
12144 \end_inset
12145
12146  or 
12147 \begin_inset Flex Code
12148 status collapsed
12149
12150 \begin_layout Plain Layout
12151 [
12152 \end_layout
12153
12154 \end_inset
12155
12156 ).
12157  A line break in the output can be indicated by 
12158 \begin_inset Flex Code
12159 status collapsed
12160
12161 \begin_layout Plain Layout
12162 <br/>
12163 \end_layout
12164
12165 \end_inset
12166
12167 .
12168 \end_layout
12169
12170 \begin_layout Itemize
12171 \begin_inset Flex Code
12172 status collapsed
12173
12174 \begin_layout Plain Layout
12175 RightDelim
12176 \end_layout
12177
12178 \end_inset
12179
12180  
12181 \begin_inset Flex Code
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185 [string]
12186 \end_layout
12187
12188 \end_inset
12189
12190  defines a custom right delimiter (instead of 
12191 \begin_inset Flex Code
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195 }
12196 \end_layout
12197
12198 \end_inset
12199
12200  or 
12201 \begin_inset Flex Code
12202 status collapsed
12203
12204 \begin_layout Plain Layout
12205 ]
12206 \end_layout
12207
12208 \end_inset
12209
12210 ).
12211  A line break in the output can be indicated by 
12212 \begin_inset Flex Code
12213 status collapsed
12214
12215 \begin_layout Plain Layout
12216 <br/>
12217 \end_layout
12218
12219 \end_inset
12220
12221 .
12222 \end_layout
12223
12224 \begin_layout Itemize
12225 \begin_inset Flex Code
12226 status collapsed
12227
12228 \begin_layout Plain Layout
12229 DefaultArg
12230 \end_layout
12231
12232 \end_inset
12233
12234  
12235 \begin_inset Flex Code
12236 status collapsed
12237
12238 \begin_layout Plain Layout
12239 [string]
12240 \end_layout
12241
12242 \end_inset
12243
12244  defines an argument that is inserted if and only if no user-specified arguments
12245  were given, i.
12246 \begin_inset space \thinspace{}
12247 \end_inset
12248
12249 e.
12250 \begin_inset space \space{}
12251 \end_inset
12252
12253 if no argument inset has been inserted (note that also an empty argument
12254  inset omits the DefaultArg).
12255  Multiple arguments need to be separated by comma.
12256 \end_layout
12257
12258 \begin_layout Itemize
12259 \begin_inset Flex Code
12260 status collapsed
12261
12262 \begin_layout Plain Layout
12263 PresetArg
12264 \end_layout
12265
12266 \end_inset
12267
12268  
12269 \begin_inset Flex Code
12270 status collapsed
12271
12272 \begin_layout Plain Layout
12273 [string]
12274 \end_layout
12275
12276 \end_inset
12277
12278  defines an argument that is inserted in any case (alone or in addition
12279  to user-specified arguments).
12280  Multiple arguments need to be separated by comma.
12281 \end_layout
12282
12283 \begin_layout Itemize
12284 \begin_inset Flex Code
12285 status collapsed
12286
12287 \begin_layout Plain Layout
12288 Font
12289 \end_layout
12290
12291 \end_inset
12292
12293  The font used for the argument content, see 
12294 \begin_inset CommandInset ref
12295 LatexCommand ref
12296 reference "subsec:Font-description"
12297
12298 \end_inset
12299
12300 .
12301 \change_inserted -712698321 1559484228
12302
12303 \end_layout
12304
12305 \begin_layout Itemize
12306
12307 \change_inserted -712698321 1559484228
12308 \begin_inset Flex Code
12309 status collapsed
12310
12311 \begin_layout Plain Layout
12312
12313 \change_inserted -712698321 1559484228
12314 FreeSpacing
12315 \end_layout
12316
12317 \end_inset
12318
12319  [
12320 \begin_inset Flex Code
12321 status collapsed
12322
12323 \begin_layout Plain Layout
12324
12325 \change_inserted -712698321 1559484228
12326
12327 \emph on
12328 0
12329 \end_layout
12330
12331 \end_inset
12332
12333 ,
12334 \begin_inset space \thinspace{}
12335 \end_inset
12336
12337
12338 \begin_inset Flex Code
12339 status collapsed
12340
12341 \begin_layout Plain Layout
12342
12343 \change_inserted -712698321 1559484228
12344 1
12345 \end_layout
12346
12347 \end_inset
12348
12349 ] As with paragraph styles, see 
12350 \begin_inset CommandInset ref
12351 LatexCommand ref
12352 reference "subsec:Paragraph-Styles"
12353
12354 \end_inset
12355
12356 .
12357 \change_unchanged
12358
12359 \end_layout
12360
12361 \begin_layout Itemize
12362 \begin_inset Flex Code
12363 status collapsed
12364
12365 \begin_layout Plain Layout
12366 LabelFont
12367 \end_layout
12368
12369 \end_inset
12370
12371  The font used for the label; see 
12372 \begin_inset CommandInset ref
12373 LatexCommand ref
12374 reference "subsec:Font-description"
12375
12376 \end_inset
12377
12378 .
12379 \end_layout
12380
12381 \begin_layout Itemize
12382 \begin_inset Flex Code
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 Decoration
12387 \end_layout
12388
12389 \end_inset
12390
12391  [
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396
12397 \emph on
12398 Classic
12399 \emph default
12400 , Minimalistic, Conglomerate
12401 \end_layout
12402
12403 \end_inset
12404
12405 ] describes the rendering style used for the inset's frame and buttons.
12406 \end_layout
12407
12408 \begin_layout Itemize
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 AutoInsert
12414 \end_layout
12415
12416 \end_inset
12417
12418  
12419 \begin_inset Flex Code
12420 status collapsed
12421
12422 \begin_layout Plain Layout
12423 [int=0]
12424 \end_layout
12425
12426 \end_inset
12427
12428  If this is set to 
12429 \begin_inset Flex Code
12430 status collapsed
12431
12432 \begin_layout Plain Layout
12433 1
12434 \end_layout
12435
12436 \end_inset
12437
12438 , this argument is automatically inserted when the respective style is selected.
12439
12440 \change_deleted -712698321 1559484200
12441  Currently, only one argument per style\SpecialChar breakableslash
12442 layout can be automatically inserted.
12443 \change_unchanged
12444
12445 \end_layout
12446
12447 \begin_layout Itemize
12448
12449 \change_inserted -712698321 1559491402
12450 \begin_inset Flex Code
12451 status collapsed
12452
12453 \begin_layout Plain Layout
12454
12455 \change_inserted -712698321 1559490711
12456 InsertOnNewline
12457 \end_layout
12458
12459 \end_inset
12460
12461  
12462 \begin_inset Flex Code
12463 status collapsed
12464
12465 \begin_layout Plain Layout
12466
12467 \change_inserted -712698321 1559490703
12468 [int=0]
12469 \end_layout
12470
12471 \end_inset
12472
12473  If this is set to 
12474 \begin_inset Flex Code
12475 status collapsed
12476
12477 \begin_layout Plain Layout
12478
12479 \change_inserted -712698321 1559490703
12480 1
12481 \end_layout
12482
12483 \end_inset
12484
12485 , this argument will be inserted on a new line with 
12486 \begin_inset Flex Code
12487 status collapsed
12488
12489 \begin_layout Plain Layout
12490
12491 \change_inserted -712698321 1559491402
12492 AutoInsert
12493 \end_layout
12494
12495 \end_inset
12496
12497  (only available within Flex insets).
12498 \end_layout
12499
12500 \begin_layout Itemize
12501 \begin_inset Flex Code
12502 status collapsed
12503
12504 \begin_layout Plain Layout
12505 InsertCotext
12506 \end_layout
12507
12508 \end_inset
12509
12510  
12511 \begin_inset Flex Code
12512 status collapsed
12513
12514 \begin_layout Plain Layout
12515 [int=0]
12516 \end_layout
12517
12518 \end_inset
12519
12520  If this is set to 
12521 \begin_inset Flex Code
12522 status collapsed
12523
12524 \begin_layout Plain Layout
12525 1
12526 \end_layout
12527
12528 \end_inset
12529
12530 , this argument will be inserted with a copy of the co-text (either selected
12531  text or the whole paragraph) as content.
12532 \end_layout
12533
12534 \begin_layout Itemize
12535 \begin_inset Flex Code
12536 status collapsed
12537
12538 \begin_layout Plain Layout
12539 PassThru
12540 \end_layout
12541
12542 \end_inset
12543
12544  [
12545 \begin_inset Flex Code
12546 status collapsed
12547
12548 \begin_layout Plain Layout
12549
12550 \emph on
12551 inherited
12552 \emph default
12553 , true, false
12554 \end_layout
12555
12556 \end_inset
12557
12558 ] Whether the contents of this argument should be output in raw form, meaning
12559  without special translations that \SpecialChar LaTeX
12560  would require.
12561  By default, the 
12562 \begin_inset Flex Code
12563 status collapsed
12564
12565 \begin_layout Plain Layout
12566 PassThru
12567 \end_layout
12568
12569 \end_inset
12570
12571  status is inherited by the inset or paragraph layout the argument belongs
12572  to, true and false change the status for the given argument only.
12573 \end_layout
12574
12575 \begin_layout Itemize
12576 \begin_inset Flex Code
12577 status collapsed
12578
12579 \begin_layout Plain Layout
12580 PassThruChars
12581 \end_layout
12582
12583 \end_inset
12584
12585  [
12586 \begin_inset Flex Code
12587 status collapsed
12588
12589 \begin_layout Plain Layout
12590 string of characters
12591 \end_layout
12592
12593 \end_inset
12594
12595 ]
12596 \family typewriter
12597  
12598 \family default
12599 Defines individual characters
12600 \begin_inset Newline linebreak
12601 \end_inset
12602
12603 that should be output in raw form, meaning without special translations
12604  that \SpecialChar LaTeX
12605  would require.
12606  Note that, contrary to PassThru, this needs to be explicitly defined for
12607  arguments.
12608  That is, arguments do not inherit PassThruChars from their parent inset
12609  or layout.
12610 \end_layout
12611
12612 \begin_layout Itemize
12613 \begin_inset Flex Code
12614 status collapsed
12615
12616 \begin_layout Plain Layout
12617 IsTocCaption
12618 \end_layout
12619
12620 \end_inset
12621
12622  [
12623 \begin_inset Flex Code
12624 status collapsed
12625
12626 \begin_layout Plain Layout
12627
12628 \emph on
12629 0
12630 \end_layout
12631
12632 \end_inset
12633
12634 ,
12635 \begin_inset space \thinspace{}
12636 \end_inset
12637
12638
12639 \begin_inset Flex Code
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643 1
12644 \end_layout
12645
12646 \end_inset
12647
12648 ] If this is set to 1, the argument will output its content in the corresponding
12649  item in the table of contents.
12650  See AddToToc.
12651 \end_layout
12652
12653 \begin_layout Standard
12654 By default, the text entered in the \SpecialChar LyX
12655  workarea in the respective layout is
12656  the last (mandatory) argument of a command if the 
12657 \begin_inset Flex Code
12658 status collapsed
12659
12660 \begin_layout Plain Layout
12661 LatexType
12662 \end_layout
12663
12664 \end_inset
12665
12666  is 
12667 \begin_inset Flex Code
12668 status collapsed
12669
12670 \begin_layout Plain Layout
12671 Command
12672 \end_layout
12673
12674 \end_inset
12675
12676 .
12677  However, arguments with the prefix 
12678 \begin_inset Flex Code
12679 status collapsed
12680
12681 \begin_layout Plain Layout
12682 post:
12683 \end_layout
12684
12685 \end_inset
12686
12687  are output after this workarea argument.
12688  Note that post-argument numbering restarts at 1, so the first argument
12689  following the workarea argument is 
12690 \begin_inset Flex Code
12691 status collapsed
12692
12693 \begin_layout Plain Layout
12694 post:1
12695 \end_layout
12696
12697 \end_inset
12698
12699 .
12700  Post-arguments are ignored in any other 
12701 \begin_inset Flex Code
12702 status collapsed
12703
12704 \begin_layout Plain Layout
12705 LatexType
12706 \end_layout
12707
12708 \end_inset
12709
12710  than 
12711 \begin_inset Flex Code
12712 status collapsed
12713
12714 \begin_layout Plain Layout
12715 Command
12716 \end_layout
12717
12718 \end_inset
12719
12720 .
12721 \end_layout
12722
12723 \begin_layout Standard
12724 Arguments for list 
12725 \begin_inset Flex Code
12726 status collapsed
12727
12728 \begin_layout Plain Layout
12729
12730 \backslash
12731 item
12732 \end_layout
12733
12734 \end_inset
12735
12736 s (as in 
12737 \begin_inset Flex Code
12738 status collapsed
12739
12740 \begin_layout Plain Layout
12741
12742 \backslash
12743 item[foo]
12744 \end_layout
12745
12746 \end_inset
12747
12748 ) have the prefix 
12749 \begin_inset Flex Code
12750 status collapsed
12751
12752 \begin_layout Plain Layout
12753 item:
12754 \end_layout
12755
12756 \end_inset
12757
12758  followed by the number (e.
12759 \begin_inset space \thinspace{}
12760 \end_inset
12761
12762 g.
12763 \begin_inset space \space{}
12764 \end_inset
12765
12766
12767 \begin_inset Flex Code
12768 status collapsed
12769
12770 \begin_layout Plain Layout
12771 Argument item:1
12772 \end_layout
12773
12774 \end_inset
12775
12776 ).
12777 \change_inserted -712698321 1534487781
12778
12779 \end_layout
12780
12781 \begin_layout Standard
12782
12783 \change_inserted -712698321 1534488561
12784 Finally, there is a special argument type with the prefix 
12785 \begin_inset Flex Code
12786 status collapsed
12787
12788 \begin_layout Plain Layout
12789
12790 \change_inserted -712698321 1534487844
12791 listpreamble:
12792 \change_unchanged
12793
12794 \end_layout
12795
12796 \end_inset
12797
12798 .
12799  It is not really an argument, but uses the argument interface (thus, the
12800  prefix is also followed by a number, e.
12801 \begin_inset space \thinspace{}
12802 \end_inset
12803
12804 g.
12805  
12806 \begin_inset Flex Code
12807 status collapsed
12808
12809 \begin_layout Plain Layout
12810
12811 \change_inserted -712698321 1534488412
12812 Argument listpreamble:1
12813 \end_layout
12814
12815 \end_inset
12816
12817 ).
12818  As the name implies, it is targeted at lists such as 
12819 \family sans
12820 Itemize
12821 \family default
12822
12823 \family sans
12824 Enumerate
12825 \family default
12826
12827 \family sans
12828 Description
12829 \family default
12830 , or 
12831 \family sans
12832 Bibliography
12833 \family default
12834 .
12835  Its content will be output at the list start, before the first 
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840
12841 \change_inserted -712698321 1534488058
12842
12843 \backslash
12844 item
12845 \change_unchanged
12846
12847 \end_layout
12848
12849 \end_inset
12850
12851 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12852 ).
12853  This way, users can insert redefinitions (of lengths etc.) to individual
12854  lists.
12855  By default, these arguments do not have a delimiter.
12856 \change_unchanged
12857
12858 \end_layout
12859
12860 \end_deeper
12861 \begin_layout Description
12862 \begin_inset Flex Code
12863 status collapsed
12864
12865 \begin_layout Plain Layout
12866 AutoNests
12867 \end_layout
12868
12869 \end_inset
12870
12871  Includes a comma-separated list of layouts that should be nested in and
12872  after the current layout.
12873  Only makes sense for nestable layouts (such as environments).
12874  Must be ended by 
12875 \begin_inset Quotes eld
12876 \end_inset
12877
12878
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883 EndAutoNests
12884 \end_layout
12885
12886 \end_inset
12887
12888
12889 \begin_inset Quotes erd
12890 \end_inset
12891
12892 .
12893  See also 
12894 \begin_inset Flex Code
12895 status collapsed
12896
12897 \begin_layout Plain Layout
12898 IsAutoNestedBy
12899 \end_layout
12900
12901 \end_inset
12902
12903 .
12904 \end_layout
12905
12906 \begin_layout Description
12907 \begin_inset Flex Code
12908 status collapsed
12909
12910 \begin_layout Plain Layout
12911 BabelPreamble
12912 \end_layout
12913
12914 \end_inset
12915
12916  Note that this will completely override any prior 
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 BabelPreamble
12922 \end_layout
12923
12924 \end_inset
12925
12926  declaration for this style.
12927  Must end with 
12928 \begin_inset Quotes eld
12929 \end_inset
12930
12931
12932 \begin_inset Flex Code
12933 status collapsed
12934
12935 \begin_layout Plain Layout
12936 EndBabelPreamble
12937 \end_layout
12938
12939 \end_inset
12940
12941
12942 \begin_inset Quotes erd
12943 \end_inset
12944
12945 .
12946  See 
12947 \begin_inset CommandInset ref
12948 LatexCommand ref
12949 reference "subsec:I18n"
12950
12951 \end_inset
12952
12953  for details on its use.
12954 \end_layout
12955
12956 \begin_layout Description
12957 \begin_inset Flex Code
12958 status collapsed
12959
12960 \begin_layout Plain Layout
12961 BottomSep
12962 \end_layout
12963
12964 \end_inset
12965
12966  [
12967 \begin_inset Flex Code
12968 status collapsed
12969
12970 \begin_layout Plain Layout
12971 float=0
12972 \end_layout
12973
12974 \end_inset
12975
12976 ]
12977 \begin_inset Foot
12978 status collapsed
12979
12980 \begin_layout Plain Layout
12981 Note that a `float' here is a real number, such as: 1.5.
12982 \end_layout
12983
12984 \end_inset
12985
12986  The vertical space with which the last of a chain of paragraphs with this
12987  style is separated from the following paragraph.
12988  If the next paragraph has another style, the separations are not simply
12989  added, but the maximum is taken.
12990 \end_layout
12991
12992 \begin_layout Description
12993 \begin_inset Flex Code
12994 status collapsed
12995
12996 \begin_layout Plain Layout
12997 Category
12998 \end_layout
12999
13000 \end_inset
13001
13002  [
13003 \begin_inset Flex Code
13004 status collapsed
13005
13006 \begin_layout Plain Layout
13007 string
13008 \end_layout
13009
13010 \end_inset
13011
13012 ] The category for this style.
13013  This is used to group related styles in the style combobox on the toolbar.
13014  Any string can be used, but you may want to use existing categories with
13015  your own styles.
13016  
13017 \end_layout
13018
13019 \begin_layout Description
13020 \begin_inset Flex Code
13021 status collapsed
13022
13023 \begin_layout Plain Layout
13024 CommandDepth
13025 \end_layout
13026
13027 \end_inset
13028
13029  Depth of XML command.
13030  Used only with XML-type formats.
13031 \end_layout
13032
13033 \begin_layout Description
13034 \begin_inset Flex Code
13035 status collapsed
13036
13037 \begin_layout Plain Layout
13038 CopyStyle
13039 \end_layout
13040
13041 \end_inset
13042
13043  [
13044 \begin_inset Flex Code
13045 status collapsed
13046
13047 \begin_layout Plain Layout
13048 string
13049 \end_layout
13050
13051 \end_inset
13052
13053 ] Copies all the features of an existing style into the current one.
13054  
13055 \end_layout
13056
13057 \begin_layout Description
13058 \begin_inset Flex Code
13059 status collapsed
13060
13061 \begin_layout Plain Layout
13062 DependsOn
13063 \end_layout
13064
13065 \end_inset
13066
13067  [
13068 \begin_inset Flex Code
13069 status collapsed
13070
13071 \begin_layout Plain Layout
13072 <name>
13073 \end_layout
13074
13075 \end_inset
13076
13077 ] The name of a style whose preamble should be output 
13078 \emph on
13079 before
13080 \emph default
13081  this one.
13082  This allows to ensure some ordering of the preamble snippets when macros
13083  definitions depend on one another.
13084 \begin_inset Foot
13085 status collapsed
13086
13087 \begin_layout Plain Layout
13088 Note that, besides that functionality, there is no way to ensure any ordering
13089  of preambles.
13090  The ordering that you see in a given version of \SpecialChar LyX
13091  may change without warning
13092  in later versions.
13093 \end_layout
13094
13095 \end_inset
13096
13097
13098 \end_layout
13099
13100 \begin_layout Description
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 EndLabeltype
13106 \end_layout
13107
13108 \end_inset
13109
13110  [
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115
13116 \emph on
13117 No_Label
13118 \emph default
13119 , Box, Filled_Box, Static
13120 \end_layout
13121
13122 \end_inset
13123
13124 ] The type of label that stands at the end of the paragraph (or sequence
13125  of paragraphs if 
13126 \begin_inset Flex Code
13127 status collapsed
13128
13129 \begin_layout Plain Layout
13130 LatexType
13131 \end_layout
13132
13133 \end_inset
13134
13135  is
13136 \begin_inset Newline newline
13137 \end_inset
13138
13139
13140 \begin_inset Flex Code
13141 status collapsed
13142
13143 \begin_layout Plain Layout
13144 Environment
13145 \end_layout
13146
13147 \end_inset
13148
13149
13150 \begin_inset Flex Code
13151 status collapsed
13152
13153 \begin_layout Plain Layout
13154 Item_Environment
13155 \end_layout
13156
13157 \end_inset
13158
13159  or 
13160 \begin_inset Flex Code
13161 status collapsed
13162
13163 \begin_layout Plain Layout
13164 List_Environment
13165 \end_layout
13166
13167 \end_inset
13168
13169 ).
13170  
13171 \begin_inset Flex Code
13172 status collapsed
13173
13174 \begin_layout Plain Layout
13175 No_Label
13176 \end_layout
13177
13178 \end_inset
13179
13180  means 
13181 \begin_inset Quotes eld
13182 \end_inset
13183
13184 nothing
13185 \begin_inset Quotes erd
13186 \end_inset
13187
13188
13189 \begin_inset Flex Code
13190 status collapsed
13191
13192 \begin_layout Plain Layout
13193 Box
13194 \end_layout
13195
13196 \end_inset
13197
13198  (resp.
13199 \begin_inset space \space{}
13200 \end_inset
13201
13202
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 Filled_Box
13208 \end_layout
13209
13210 \end_inset
13211
13212 ) is a white (resp.
13213 \begin_inset space ~
13214 \end_inset
13215
13216 black) square suitable for end of proof markers, 
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 Static
13222 \end_layout
13223
13224 \end_inset
13225
13226  is an explicit text string.
13227 \end_layout
13228
13229 \begin_layout Description
13230 \begin_inset Flex Code
13231 status collapsed
13232
13233 \begin_layout Plain Layout
13234 EndLabelString
13235 \end_layout
13236
13237 \end_inset
13238
13239  [
13240 \begin_inset Flex Code
13241 status collapsed
13242
13243 \begin_layout Plain Layout
13244 string=""
13245 \end_layout
13246
13247 \end_inset
13248
13249 ] The string used for a label with a 
13250 \begin_inset Flex Code
13251 status collapsed
13252
13253 \begin_layout Plain Layout
13254 Static
13255 \end_layout
13256
13257 \end_inset
13258
13259
13260 \begin_inset Newline newline
13261 \end_inset
13262
13263
13264 \begin_inset Flex Code
13265 status collapsed
13266
13267 \begin_layout Plain Layout
13268 EndLabelType
13269 \end_layout
13270
13271 \end_inset
13272
13273 .
13274  
13275 \end_layout
13276
13277 \begin_layout Description
13278 \begin_inset Flex Code
13279 status collapsed
13280
13281 \begin_layout Plain Layout
13282 Font
13283 \end_layout
13284
13285 \end_inset
13286
13287  The font used for both the text body 
13288 \emph on
13289 and
13290 \emph default
13291  the label.
13292  See 
13293 \begin_inset CommandInset ref
13294 LatexCommand ref
13295 reference "subsec:Font-description"
13296
13297 \end_inset
13298
13299 .
13300  Note that defining this font automatically defines the 
13301 \begin_inset Flex Code
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305 LabelFont
13306 \end_layout
13307
13308 \end_inset
13309
13310  to the same value.
13311  So you should define this one first if you also want to define 
13312 \begin_inset Flex Code
13313 status collapsed
13314
13315 \begin_layout Plain Layout
13316 LabelFont
13317 \end_layout
13318
13319 \end_inset
13320
13321 .
13322 \end_layout
13323
13324 \begin_layout Description
13325 \begin_inset Flex Code
13326 status collapsed
13327
13328 \begin_layout Plain Layout
13329 ForceLocal
13330 \end_layout
13331
13332 \end_inset
13333
13334  [
13335 \begin_inset Flex Code
13336 status collapsed
13337
13338 \begin_layout Plain Layout
13339 int=0
13340 \end_layout
13341
13342 \end_inset
13343
13344 ] Used for backporting new styles to stable \SpecialChar LyX
13345  versions.
13346  The first stable version that supports this tag is \SpecialChar LyX
13347  2.1.0.
13348  The argument is a number which may either be 0, -1 or any value greater
13349  than zero.
13350  If the 
13351 \begin_inset Flex Code
13352 status collapsed
13353
13354 \begin_layout Plain Layout
13355 ForceLocal
13356 \end_layout
13357
13358 \end_inset
13359
13360  flag of a style is greater than zero, it will always be written to the
13361  document header.
13362  If a .lyx file is read, the style definitions from the document header are
13363  added to the document class.
13364  Therefore even older \SpecialChar LyX
13365  versions can handle the style.
13366  The argument of 
13367 \begin_inset Flex Code
13368 status collapsed
13369
13370 \begin_layout Plain Layout
13371 ForceLocal
13372 \end_layout
13373
13374 \end_inset
13375
13376  is a version number: if the style is read, and the version number is less
13377  than the version number of the already existing style in the document class,
13378  the new style is ignored.
13379  If the version number is greater, the new style replaces the existing style.
13380  A value of -1 means an infinite version number, i.
13381 \begin_inset space \thinspace{}
13382 \end_inset
13383
13384 e.
13385 \begin_inset space \space{}
13386 \end_inset
13387
13388 the style is always used.
13389 \end_layout
13390
13391 \begin_layout Description
13392 \begin_inset Flex Code
13393 status collapsed
13394
13395 \begin_layout Plain Layout
13396 FreeSpacing
13397 \end_layout
13398
13399 \end_inset
13400
13401  [
13402 \begin_inset Flex Code
13403 status collapsed
13404
13405 \begin_layout Plain Layout
13406
13407 \emph on
13408 0
13409 \end_layout
13410
13411 \end_inset
13412
13413 ,
13414 \begin_inset space \thinspace{}
13415 \end_inset
13416
13417
13418 \begin_inset Flex Code
13419 status collapsed
13420
13421 \begin_layout Plain Layout
13422 1
13423 \end_layout
13424
13425 \end_inset
13426
13427 ] Usually \SpecialChar LyX
13428  does not allow you to insert more than one space between words,
13429  since a space is considered as the separation between two words, not a
13430  character or symbol of its own.
13431  This is a very fine thing but sometimes annoying, for example, when typing
13432  program code or plain \SpecialChar LaTeX
13433  code.
13434  For this reason, 
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439 FreeSpacing
13440 \end_layout
13441
13442 \end_inset
13443
13444  can be enabled.
13445  
13446 \change_deleted -495245474 1550490105
13447 Note that 
13448 \change_unchanged
13449 \SpecialChar LyX
13450  will create protected blanks for the additional blanks when in 
13451 \change_inserted -495245474 1550490096
13452
13453 \begin_inset Flex Code
13454 status collapsed
13455
13456 \begin_layout Plain Layout
13457
13458 \change_inserted -495245474 1550490089
13459 Passthru 1
13460 \end_layout
13461
13462 \end_inset
13463
13464  is not specified.
13465 \change_deleted -495245474 1550490116
13466 another mode than \SpecialChar LaTeX
13467 -mode.
13468
13469 \change_inserted -495245474 1550247760
13470  Note that 
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475
13476 \change_inserted -495245474 1550247736
13477 FreeSpacing
13478 \end_layout
13479
13480 \end_inset
13481
13482  implies 
13483 \begin_inset Flex Code
13484 status collapsed
13485
13486 \begin_layout Plain Layout
13487
13488 \change_inserted -495245474 1550247755
13489 KeepEmpty
13490 \end_layout
13491
13492 \end_inset
13493
13494 .
13495 \change_unchanged
13496
13497 \end_layout
13498
13499 \begin_layout Description
13500 \begin_inset Flex Code
13501 status collapsed
13502
13503 \begin_layout Plain Layout
13504 HTML*
13505 \end_layout
13506
13507 \end_inset
13508
13509  These tags are used with XHTML output.
13510  See 
13511 \begin_inset CommandInset ref
13512 LatexCommand ref
13513 reference "subsec:Paragraph-Style-XHTML"
13514
13515 \end_inset
13516
13517 .
13518 \end_layout
13519
13520 \begin_layout Description
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525 InnerTag
13526 \end_layout
13527
13528 \end_inset
13529
13530  [FIXME] (Used only with XML-type formats.)
13531 \end_layout
13532
13533 \begin_layout Description
13534 \begin_inset Flex Code
13535 status collapsed
13536
13537 \begin_layout Plain Layout
13538 InPreamble
13539 \end_layout
13540
13541 \end_inset
13542
13543  [
13544 \begin_inset Flex Code
13545 status collapsed
13546
13547 \begin_layout Plain Layout
13548
13549 \emph on
13550 0
13551 \end_layout
13552
13553 \end_inset
13554
13555 ,
13556 \begin_inset space \thinspace{}
13557 \end_inset
13558
13559
13560 \begin_inset Flex Code
13561 status collapsed
13562
13563 \begin_layout Plain Layout
13564 1
13565 \end_layout
13566
13567 \end_inset
13568
13569 ] If 
13570 \begin_inset Flex Code
13571 status collapsed
13572
13573 \begin_layout Plain Layout
13574 1
13575 \end_layout
13576
13577 \end_inset
13578
13579 , marks the style as to be included in the document preamble and not in
13580  the document body.
13581  This is useful for document classes that want such information as the title
13582  and author to appear in the preamble.
13583  Note that this works only for styles for which the 
13584 \begin_inset Flex Code
13585 status collapsed
13586
13587 \begin_layout Plain Layout
13588 LatexType
13589 \end_layout
13590
13591 \end_inset
13592
13593  is 
13594 \begin_inset Flex Code
13595 status collapsed
13596
13597 \begin_layout Plain Layout
13598 Command
13599 \end_layout
13600
13601 \end_inset
13602
13603  or 
13604 \begin_inset Flex Code
13605 status collapsed
13606
13607 \begin_layout Plain Layout
13608 Paragraph
13609 \end_layout
13610
13611 \end_inset
13612
13613 .
13614 \end_layout
13615
13616 \begin_layout Description
13617 \begin_inset Flex Code
13618 status collapsed
13619
13620 \begin_layout Plain Layout
13621 InTitle
13622 \end_layout
13623
13624 \end_inset
13625
13626  [
13627 \begin_inset Flex Code
13628 status collapsed
13629
13630 \begin_layout Plain Layout
13631
13632 \emph on
13633 0
13634 \end_layout
13635
13636 \end_inset
13637
13638 ,
13639 \begin_inset space \thinspace{}
13640 \end_inset
13641
13642
13643 \begin_inset Flex Code
13644 status collapsed
13645
13646 \begin_layout Plain Layout
13647 1
13648 \end_layout
13649
13650 \end_inset
13651
13652 ] If 
13653 \begin_inset Flex Code
13654 status collapsed
13655
13656 \begin_layout Plain Layout
13657 1
13658 \end_layout
13659
13660 \end_inset
13661
13662 , marks the style as being part of a title block (see also the 
13663 \begin_inset Flex Code
13664 status collapsed
13665
13666 \begin_layout Plain Layout
13667 TitleLatexType
13668 \end_layout
13669
13670 \end_inset
13671
13672  and 
13673 \begin_inset Flex Code
13674 status collapsed
13675
13676 \begin_layout Plain Layout
13677 TitleLatexName
13678 \end_layout
13679
13680 \end_inset
13681
13682  global entries).
13683 \end_layout
13684
13685 \begin_layout Description
13686 \begin_inset Flex Code
13687 status collapsed
13688
13689 \begin_layout Plain Layout
13690 IsAutoNestedBy
13691 \end_layout
13692
13693 \end_inset
13694
13695  Includes a comma-separated list of layouts after which this one should
13696  be nested.
13697  Only makes sense with regard to nestable layouts (such as environments).
13698  Must be ended by 
13699 \begin_inset Quotes eld
13700 \end_inset
13701
13702
13703 \begin_inset Flex Code
13704 status collapsed
13705
13706 \begin_layout Plain Layout
13707 EndIsAutoNestedBy
13708 \end_layout
13709
13710 \end_inset
13711
13712
13713 \begin_inset Quotes erd
13714 \end_inset
13715
13716 .
13717  See also 
13718 \begin_inset Flex Code
13719 status collapsed
13720
13721 \begin_layout Plain Layout
13722 AutoNests
13723 \end_layout
13724
13725 \end_inset
13726
13727 .
13728 \end_layout
13729
13730 \begin_layout Description
13731 \begin_inset Flex Code
13732 status collapsed
13733
13734 \begin_layout Plain Layout
13735 IsTocCaption
13736 \end_layout
13737
13738 \end_inset
13739
13740  [
13741 \begin_inset Flex Code
13742 status collapsed
13743
13744 \begin_layout Plain Layout
13745
13746 \emph on
13747 0
13748 \end_layout
13749
13750 \end_inset
13751
13752 ,
13753 \begin_inset space \thinspace{}
13754 \end_inset
13755
13756
13757 \begin_inset Flex Code
13758 status collapsed
13759
13760 \begin_layout Plain Layout
13761 1
13762 \end_layout
13763
13764 \end_inset
13765
13766 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13767  of its contents in its item in the table of contents.
13768  Otherwise, only the label, if it exists, appears.
13769 \end_layout
13770
13771 \begin_layout Description
13772 \begin_inset Flex Code
13773 status collapsed
13774
13775 \begin_layout Plain Layout
13776 ItemCommand
13777 \end_layout
13778
13779 \end_inset
13780
13781  [
13782 \begin_inset Flex Code
13783 status collapsed
13784
13785 \begin_layout Plain Layout
13786 string="item"
13787 \end_layout
13788
13789 \end_inset
13790
13791 ] The \SpecialChar LaTeX
13792  command sequence declaring an item in a list.
13793  The command is to be defined without the preceding backslash (the default
13794  is 
13795 \begin_inset Quotes eld
13796 \end_inset
13797
13798 item
13799 \begin_inset Quotes erd
13800 \end_inset
13801
13802 , resulting in 
13803 \begin_inset Flex Code
13804 status collapsed
13805
13806 \begin_layout Plain Layout
13807
13808 \backslash
13809 item
13810 \end_layout
13811
13812 \end_inset
13813
13814  in the \SpecialChar LaTeX
13815  output).
13816 \end_layout
13817
13818 \begin_layout Description
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 ItemSep
13824 \end_layout
13825
13826 \end_inset
13827
13828  [
13829 \begin_inset Flex Code
13830 status collapsed
13831
13832 \begin_layout Plain Layout
13833 float=0
13834 \end_layout
13835
13836 \end_inset
13837
13838 ] This provides extra space between paragraphs that have the same style.
13839  If you put other styles into an environment, each is separated with the
13840  environment's 
13841 \begin_inset Flex Code
13842 status collapsed
13843
13844 \begin_layout Plain Layout
13845 ParSep
13846 \end_layout
13847
13848 \end_inset
13849
13850 .
13851  But the whole items of the environment are additionally separated with
13852  this 
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 ItemSep
13858 \end_layout
13859
13860 \end_inset
13861
13862 .
13863  Note that this is a
13864 \emph on
13865  multiplier.
13866 \end_layout
13867
13868 \begin_layout Description
13869 \begin_inset Flex Code
13870 status collapsed
13871
13872 \begin_layout Plain Layout
13873 ItemTag
13874 \end_layout
13875
13876 \end_inset
13877
13878  [FIXME] (Used only with XML-type formats.)
13879 \end_layout
13880
13881 \begin_layout Description
13882 \begin_inset Flex Code
13883 status collapsed
13884
13885 \begin_layout Plain Layout
13886 KeepEmpty
13887 \end_layout
13888
13889 \end_inset
13890
13891  [
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896
13897 \emph on
13898 0
13899 \end_layout
13900
13901 \end_inset
13902
13903 ,
13904 \begin_inset space \thinspace{}
13905 \end_inset
13906
13907
13908 \begin_inset Flex Code
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 1
13913 \end_layout
13914
13915 \end_inset
13916
13917 ] Usually \SpecialChar LyX
13918  does not allow you to leave a paragraph empty, since it would
13919  lead to empty \SpecialChar LaTeX
13920  output.
13921  There are some cases where this could be desirable however: in a letter
13922  template, the required fields can be provided as empty fields, so that
13923  people do not forget them; in some special classes, a style can be used
13924  as some kind of break, which does not contain actual text.
13925 \end_layout
13926
13927 \begin_layout Description
13928 \begin_inset Flex Code
13929 status collapsed
13930
13931 \begin_layout Plain Layout
13932 LabelBottomsep
13933 \end_layout
13934
13935 \end_inset
13936
13937  [
13938 \begin_inset Flex Code
13939 status collapsed
13940
13941 \begin_layout Plain Layout
13942 float=0
13943 \end_layout
13944
13945 \end_inset
13946
13947 ] The vertical space between the label and the text body.
13948  Only used for labels that are above the text body (
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 Top_Environment
13954 \end_layout
13955
13956 \end_inset
13957
13958  and
13959 \begin_inset Newline newline
13960 \end_inset
13961
13962
13963 \begin_inset Flex Code
13964 status collapsed
13965
13966 \begin_layout Plain Layout
13967 Centered_Top_Environment
13968 \end_layout
13969
13970 \end_inset
13971
13972 ).
13973 \end_layout
13974
13975 \begin_layout Description
13976 \begin_inset Flex Code
13977 status collapsed
13978
13979 \begin_layout Plain Layout
13980 LabelCounter
13981 \end_layout
13982
13983 \end_inset
13984
13985  [
13986 \begin_inset Flex Code
13987 status collapsed
13988
13989 \begin_layout Plain Layout
13990 string=""
13991 \end_layout
13992
13993 \end_inset
13994
13995 ] The name of the counter for automatic numbering.
13996  In order to have the counter appear with your label, you will need to reference
13997  it in the 
13998 \begin_inset Flex Code
13999 status collapsed
14000
14001 \begin_layout Plain Layout
14002
14003 \family typewriter
14004 LabelString
14005 \end_layout
14006
14007 \end_inset
14008
14009 .
14010  This will work with 
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 LabelType
14016 \end_layout
14017
14018 \end_inset
14019
14020 s, 
14021 \begin_inset Flex Code
14022 status collapsed
14023
14024 \begin_layout Plain Layout
14025 Static
14026 \end_layout
14027
14028 \end_inset
14029
14030
14031 \begin_inset Flex Code
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035 Above
14036 \end_layout
14037
14038 \end_inset
14039
14040  and 
14041 \begin_inset Flex Code
14042 status collapsed
14043
14044 \begin_layout Plain Layout
14045 Centered
14046 \end_layout
14047
14048 \end_inset
14049
14050 , at least.
14051 \begin_inset Newline newline
14052 \end_inset
14053
14054 This 
14055 \emph on
14056 may
14057 \emph default
14058  also be given if 
14059 \begin_inset Flex Code
14060 status collapsed
14061
14062 \begin_layout Plain Layout
14063 LabelType
14064 \end_layout
14065
14066 \end_inset
14067
14068  is 
14069 \begin_inset Flex Code
14070 status collapsed
14071
14072 \begin_layout Plain Layout
14073 Enumerate
14074 \end_layout
14075
14076 \end_inset
14077
14078 , though this case is a bit complicated.
14079  Suppose you declare 
14080 \begin_inset Quotes eld
14081 \end_inset
14082
14083
14084 \begin_inset Flex Code
14085 status collapsed
14086
14087 \begin_layout Plain Layout
14088 LabelCounter myenum
14089 \end_layout
14090
14091 \end_inset
14092
14093
14094 \begin_inset Quotes erd
14095 \end_inset
14096
14097 .
14098  Then the actual counters used are 
14099 \begin_inset Flex Code
14100 status collapsed
14101
14102 \begin_layout Plain Layout
14103 myenumi
14104 \end_layout
14105
14106 \end_inset
14107
14108
14109 \begin_inset Flex Code
14110 status collapsed
14111
14112 \begin_layout Plain Layout
14113 myenumii
14114 \end_layout
14115
14116 \end_inset
14117
14118
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123 myenumiii
14124 \end_layout
14125
14126 \end_inset
14127
14128  and 
14129 \begin_inset Flex Code
14130 status collapsed
14131
14132 \begin_layout Plain Layout
14133 myenumiv
14134 \end_layout
14135
14136 \end_inset
14137
14138 , much as in \SpecialChar LaTeX
14139 .
14140  These counters must all be declared separately.
14141 \begin_inset Newline newline
14142 \end_inset
14143
14144 See 
14145 \begin_inset CommandInset ref
14146 LatexCommand ref
14147 reference "subsec:Counters"
14148
14149 \end_inset
14150
14151  for details on counters.
14152 \end_layout
14153
14154 \begin_layout Description
14155 \begin_inset Flex Code
14156 status collapsed
14157
14158 \begin_layout Plain Layout
14159 LabelFont
14160 \end_layout
14161
14162 \end_inset
14163
14164  The font used for the label.
14165  See 
14166 \begin_inset CommandInset ref
14167 LatexCommand ref
14168 reference "subsec:Font-description"
14169
14170 \end_inset
14171
14172 .
14173 \end_layout
14174
14175 \begin_layout Description
14176 \begin_inset Flex Code
14177 status collapsed
14178
14179 \begin_layout Plain Layout
14180 LabelIndent
14181 \end_layout
14182
14183 \end_inset
14184
14185  [
14186 \begin_inset Flex Code
14187 status collapsed
14188
14189 \begin_layout Plain Layout
14190 string=""
14191 \end_layout
14192
14193 \end_inset
14194
14195 ] Text that indicates how far a label should be indented.
14196 \end_layout
14197
14198 \begin_layout Description
14199 \begin_inset Flex Code
14200 status collapsed
14201
14202 \begin_layout Plain Layout
14203 LabelSep
14204 \end_layout
14205
14206 \end_inset
14207
14208  [
14209 \begin_inset Flex Code
14210 status collapsed
14211
14212 \begin_layout Plain Layout
14213 string=""
14214 \end_layout
14215
14216 \end_inset
14217
14218 ] Text that indicates the amount of horizontal space between the label and
14219  the text body.
14220  Only used for labels that are not above the text body.
14221 \end_layout
14222
14223 \begin_layout Description
14224 \begin_inset Flex Code
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 LabelString
14229 \end_layout
14230
14231 \end_inset
14232
14233  [
14234 \begin_inset Flex Code
14235 status collapsed
14236
14237 \begin_layout Plain Layout
14238 string=""
14239 \end_layout
14240
14241 \end_inset
14242
14243 ] The string used for the label.
14244  When 
14245 \begin_inset Flex Code
14246 status collapsed
14247
14248 \begin_layout Plain Layout
14249 LabelCounter
14250 \end_layout
14251
14252 \end_inset
14253
14254  is set, this string can be contain the special formatting commands described
14255  in 
14256 \begin_inset CommandInset ref
14257 LatexCommand ref
14258 reference "subsec:Counters"
14259
14260 \end_inset
14261
14262 .
14263 \end_layout
14264
14265 \begin_layout Description
14266 \begin_inset Flex Code
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270 LabelStringAppendix
14271 \end_layout
14272
14273 \end_inset
14274
14275  [
14276 \begin_inset Flex Code
14277 status collapsed
14278
14279 \begin_layout Plain Layout
14280 string=""
14281 \end_layout
14282
14283 \end_inset
14284
14285 ] This is used inside the appendix instead of
14286 \begin_inset Newline newline
14287 \end_inset
14288
14289
14290 \begin_inset Flex Code
14291 status collapsed
14292
14293 \begin_layout Plain Layout
14294 LabelString
14295 \end_layout
14296
14297 \end_inset
14298
14299 .
14300  Note that every 
14301 \begin_inset Flex Code
14302 status collapsed
14303
14304 \begin_layout Plain Layout
14305 LabelString
14306 \end_layout
14307
14308 \end_inset
14309
14310  statement resets
14311 \begin_inset Newline newline
14312 \end_inset
14313
14314
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 LabelStringAppendix
14320 \end_layout
14321
14322 \end_inset
14323
14324  too.
14325 \end_layout
14326
14327 \begin_layout Description
14328 \begin_inset Flex Code
14329 status collapsed
14330
14331 \begin_layout Plain Layout
14332 LabelTag
14333 \end_layout
14334
14335 \end_inset
14336
14337  [FIXME] (Used only with XML-type formats.)
14338 \end_layout
14339
14340 \begin_layout Description
14341 \begin_inset Flex Code
14342 status collapsed
14343
14344 \begin_layout Plain Layout
14345 LabelType
14346 \end_layout
14347
14348 \end_inset
14349
14350  [
14351 \begin_inset Flex Code
14352 status collapsed
14353
14354 \begin_layout Plain Layout
14355
14356 \emph on
14357 No_Label
14358 \emph default
14359 , Manual, Static, Above, 
14360 \begin_inset Newline newline
14361 \end_inset
14362
14363 Centered, Sensitive, Enumerate,
14364 \begin_inset Newline newline
14365 \end_inset
14366
14367 Itemize, Bibliography
14368 \end_layout
14369
14370 \end_inset
14371
14372 ]
14373 \end_layout
14374
14375 \begin_deeper
14376 \begin_layout Description
14377 \begin_inset Flex Code
14378 status collapsed
14379
14380 \begin_layout Plain Layout
14381 Manual
14382 \end_layout
14383
14384 \end_inset
14385
14386  means the label is the very first word (up to the first real blank).
14387  Use protected spaces if you want more than one word as the label.
14388  
14389 \end_layout
14390
14391 \begin_layout Description
14392 \begin_inset Flex Code
14393 status collapsed
14394
14395 \begin_layout Plain Layout
14396 Static
14397 \end_layout
14398
14399 \end_inset
14400
14401  means the label is simply what is declared as 
14402 \begin_inset Flex Code
14403 status collapsed
14404
14405 \begin_layout Plain Layout
14406 LabelString
14407 \end_layout
14408
14409 \end_inset
14410
14411 .
14412  This will be displayed 
14413 \begin_inset Quotes eld
14414 \end_inset
14415
14416 inline
14417 \begin_inset Quotes erd
14418 \end_inset
14419
14420 , at the beginning of the paragraph.
14421  If the 
14422 \begin_inset Flex Code
14423 status collapsed
14424
14425 \begin_layout Plain Layout
14426 LatexType
14427 \end_layout
14428
14429 \end_inset
14430
14431  is 
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436 Environment
14437 \end_layout
14438
14439 \end_inset
14440
14441 , then it will be displayed only in the first paragraph of any sequence
14442  of paragraphs with the same 
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447 Style
14448 \end_layout
14449
14450 \end_inset
14451
14452 .
14453 \end_layout
14454
14455 \begin_layout Description
14456 \begin_inset Flex Code
14457 status collapsed
14458
14459 \begin_layout Plain Layout
14460 Above
14461 \end_layout
14462
14463 \end_inset
14464
14465
14466 \begin_inset space ~
14467 \end_inset
14468
14469 and
14470 \begin_inset space ~
14471 \end_inset
14472
14473
14474 \begin_inset Flex Code
14475 status collapsed
14476
14477 \begin_layout Plain Layout
14478 Centered
14479 \end_layout
14480
14481 \end_inset
14482
14483  are special cases of 
14484 \begin_inset Flex Code
14485 status collapsed
14486
14487 \begin_layout Plain Layout
14488 Static
14489 \end_layout
14490
14491 \end_inset
14492
14493 .
14494  The label will be printed above the paragraph either at the beginning of
14495  the line or centered.
14496 \end_layout
14497
14498 \begin_layout Description
14499 \begin_inset Flex Code
14500 status collapsed
14501
14502 \begin_layout Plain Layout
14503 Sensitive
14504 \end_layout
14505
14506 \end_inset
14507
14508  is a special case for the caption-labels 
14509 \begin_inset Quotes eld
14510 \end_inset
14511
14512 Figure
14513 \begin_inset Quotes erd
14514 \end_inset
14515
14516  and 
14517 \begin_inset Quotes eld
14518 \end_inset
14519
14520 Table
14521 \begin_inset Quotes erd
14522 \end_inset
14523
14524 .
14525 \begin_inset Newline newline
14526 \end_inset
14527
14528
14529 \begin_inset Flex Code
14530 status collapsed
14531
14532 \begin_layout Plain Layout
14533 Sensitive
14534 \end_layout
14535
14536 \end_inset
14537
14538  means the (hardcoded) label string depends on the kind of float: It is
14539  hardcoded to be `FloatType N', where N is the value of the counter associated
14540  with the float.
14541  For the case that a caption is inserted outside of a float the 
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 LabelString
14547 \end_layout
14548
14549 \end_inset
14550
14551  will appear as 
14552 \begin_inset Quotes eld
14553 \end_inset
14554
14555 Senseless!
14556 \begin_inset Quotes erd
14557 \end_inset
14558
14559 .
14560 \end_layout
14561
14562 \begin_layout Description
14563 \begin_inset Flex Code
14564 status collapsed
14565
14566 \begin_layout Plain Layout
14567 Enumerate
14568 \end_layout
14569
14570 \end_inset
14571
14572  produces the usual sort of enumeration labels.
14573  The number type needs to be set in the 
14574 \family sans
14575 Counter
14576 \family default
14577 , see 
14578 \begin_inset CommandInset ref
14579 LatexCommand ref
14580 reference "subsec:Counters"
14581
14582 \end_inset
14583
14584 .
14585 \end_layout
14586
14587 \begin_layout Description
14588 \begin_inset Flex Code
14589 status collapsed
14590
14591 \begin_layout Plain Layout
14592 Itemize
14593 \end_layout
14594
14595 \end_inset
14596
14597  produces various bullets at the different levels.
14598  The bullet types displayed can be set via 
14599 \begin_inset Flex Noun
14600 status collapsed
14601
14602 \begin_layout Plain Layout
14603 Document\SpecialChar menuseparator
14604 Settings\SpecialChar menuseparator
14605 Bullets
14606 \end_layout
14607
14608 \end_inset
14609
14610 .
14611 \end_layout
14612
14613 \begin_layout Description
14614 \begin_inset Flex Code
14615 status collapsed
14616
14617 \begin_layout Plain Layout
14618 Bibliography
14619 \end_layout
14620
14621 \end_inset
14622
14623  should be used only with 
14624 \begin_inset Flex Code
14625 status collapsed
14626
14627 \begin_layout Plain Layout
14628 LatexType BibEnvironment
14629 \end_layout
14630
14631 \end_inset
14632
14633 .
14634 \end_layout
14635
14636 \end_deeper
14637 \begin_layout Description
14638 \begin_inset Flex Code
14639 status collapsed
14640
14641 \begin_layout Plain Layout
14642 LangPreamble
14643 \end_layout
14644
14645 \end_inset
14646
14647  Note that this will completely override any prior 
14648 \begin_inset Flex Code
14649 status collapsed
14650
14651 \begin_layout Plain Layout
14652 LangPreamble
14653 \end_layout
14654
14655 \end_inset
14656
14657  declaration for this style.
14658  Must end with 
14659 \begin_inset Quotes eld
14660 \end_inset
14661
14662
14663 \begin_inset Flex Code
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667 EndLangPreamble
14668 \end_layout
14669
14670 \end_inset
14671
14672
14673 \begin_inset Quotes erd
14674 \end_inset
14675
14676 .
14677  See 
14678 \begin_inset CommandInset ref
14679 LatexCommand ref
14680 reference "subsec:I18n"
14681
14682 \end_inset
14683
14684  for details on its use.
14685 \end_layout
14686
14687 \begin_layout Description
14688 \begin_inset Flex Code
14689 status collapsed
14690
14691 \begin_layout Plain Layout
14692 LatexName
14693 \end_layout
14694
14695 \end_inset
14696
14697  [
14698 \begin_inset Flex Code
14699 status collapsed
14700
14701 \begin_layout Plain Layout
14702 <name>
14703 \end_layout
14704
14705 \end_inset
14706
14707 ] The name of the corresponding \SpecialChar LaTeX
14708  stuff.
14709  Either the environment or command name.
14710 \end_layout
14711
14712 \begin_layout Description
14713 \begin_inset Flex Code
14714 status collapsed
14715
14716 \begin_layout Plain Layout
14717 LatexParam
14718 \end_layout
14719
14720 \end_inset
14721
14722  [
14723 \begin_inset Flex Code
14724 status collapsed
14725
14726 \begin_layout Plain Layout
14727 <parameter>
14728 \end_layout
14729
14730 \end_inset
14731
14732 ] An optional parameter for the corresponding 
14733 \begin_inset Flex Code
14734 status collapsed
14735
14736 \begin_layout Plain Layout
14737 LatexName
14738 \end_layout
14739
14740 \end_inset
14741
14742  stuff.
14743  This parameter cannot be changed from within \SpecialChar LyX
14744  (use 
14745 \begin_inset Flex Code
14746 status collapsed
14747
14748 \begin_layout Plain Layout
14749 Argument
14750 \end_layout
14751
14752 \end_inset
14753
14754  for customizable parameters).
14755  This will be output as is after all \SpecialChar LaTeX
14756  
14757 \begin_inset Flex Code
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761 Argument
14762 \end_layout
14763
14764 \end_inset
14765
14766 s.
14767 \end_layout
14768
14769 \begin_layout Description
14770 \begin_inset Flex Code
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774 LatexType
14775 \end_layout
14776
14777 \end_inset
14778
14779  [
14780 \begin_inset Flex Code
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784
14785 \emph on
14786 Paragraph
14787 \emph default
14788 , Command, Environment, Item_Environment,
14789 \begin_inset Newline newline
14790 \end_inset
14791
14792 List_Environment, Bib_Environment
14793 \end_layout
14794
14795 \end_inset
14796
14797 ] How the style should be translated into \SpecialChar LaTeX
14798 .
14799 \begin_inset Foot
14800 status collapsed
14801
14802 \begin_layout Plain Layout
14803 \begin_inset Flex Code
14804 status collapsed
14805
14806 \begin_layout Plain Layout
14807 LatexType
14808 \end_layout
14809
14810 \end_inset
14811
14812  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14813  Visit the SGML class files for specific examples.
14814 \end_layout
14815
14816 \end_inset
14817
14818
14819 \end_layout
14820
14821 \begin_deeper
14822 \begin_layout Description
14823 \begin_inset Flex Code
14824 status collapsed
14825
14826 \begin_layout Plain Layout
14827 Paragraph
14828 \end_layout
14829
14830 \end_inset
14831
14832  means nothing special.
14833 \end_layout
14834
14835 \begin_layout Description
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 Command
14841 \end_layout
14842
14843 \end_inset
14844
14845  means 
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850
14851 \backslash
14852
14853 \emph on
14854 LatexName
14855 \emph default
14856 {\SpecialChar ldots
14857 }
14858 \end_layout
14859
14860 \end_inset
14861
14862 .
14863 \end_layout
14864
14865 \begin_layout Description
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 Environment
14871 \end_layout
14872
14873 \end_inset
14874
14875  means 
14876 \begin_inset Flex Code
14877 status collapsed
14878
14879 \begin_layout Plain Layout
14880
14881 \backslash
14882 begin{
14883 \emph on
14884 LatexName
14885 \emph default
14886 }\SpecialChar ldots
14887
14888 \backslash
14889 end{
14890 \emph on
14891 LatexName
14892 \emph default
14893 }
14894 \end_layout
14895
14896 \end_inset
14897
14898 .
14899  
14900 \end_layout
14901
14902 \begin_layout Description
14903 \begin_inset Flex Code
14904 status collapsed
14905
14906 \begin_layout Plain Layout
14907 Item_Environment
14908 \end_layout
14909
14910 \end_inset
14911
14912  is the same as 
14913 \begin_inset Flex Code
14914 status collapsed
14915
14916 \begin_layout Plain Layout
14917 Environment
14918 \end_layout
14919
14920 \end_inset
14921
14922 , except that an 
14923 \begin_inset Flex Code
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927
14928 \backslash
14929 item
14930 \end_layout
14931
14932 \end_inset
14933
14934  is generated for each paragraph of this environment.
14935  
14936 \end_layout
14937
14938 \begin_layout Description
14939 \begin_inset Flex Code
14940 status collapsed
14941
14942 \begin_layout Plain Layout
14943 List_Environment
14944 \end_layout
14945
14946 \end_inset
14947
14948  is the same as 
14949 \begin_inset Flex Code
14950 status collapsed
14951
14952 \begin_layout Plain Layout
14953 Item_Environment
14954 \end_layout
14955
14956 \end_inset
14957
14958 , except that
14959 \begin_inset Newline newline
14960 \end_inset
14961
14962
14963 \begin_inset Flex Code
14964 status collapsed
14965
14966 \begin_layout Plain Layout
14967 LabelWidthString
14968 \end_layout
14969
14970 \end_inset
14971
14972  is passed as an argument to the environment.
14973 \begin_inset Newline newline
14974 \end_inset
14975
14976
14977 \begin_inset Flex Code
14978 status collapsed
14979
14980 \begin_layout Plain Layout
14981 LabelWidthString
14982 \end_layout
14983
14984 \end_inset
14985
14986  can be defined in the 
14987 \begin_inset Flex Noun
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991 Edit\SpecialChar menuseparator
14992 Paragraph
14993 \begin_inset space ~
14994 \end_inset
14995
14996 settings
14997 \end_layout
14998
14999 \end_inset
15000
15001  dialog.
15002 \end_layout
15003
15004 \begin_layout Description
15005 \begin_inset Flex Code
15006 status collapsed
15007
15008 \begin_layout Plain Layout
15009 Bib_Environment
15010 \end_layout
15011
15012 \end_inset
15013
15014  is like 
15015 \begin_inset Flex Code
15016 status collapsed
15017
15018 \begin_layout Plain Layout
15019 Environment
15020 \end_layout
15021
15022 \end_inset
15023
15024  but adds the necessary mandatory argument (the longest label) to the begin
15025  statement of the bibliography environment:
15026 \begin_inset Newline newline
15027 \end_inset
15028
15029
15030 \begin_inset Flex Code
15031 status collapsed
15032
15033 \begin_layout Plain Layout
15034
15035 \backslash
15036 begin{thebibliography}{99}
15037 \end_layout
15038
15039 \end_inset
15040
15041 .
15042  It is therefore only useful for bibliography environments.
15043  The default longest label 
15044 \begin_inset Quotes eld
15045 \end_inset
15046
15047 99
15048 \begin_inset Quotes erd
15049 \end_inset
15050
15051  can be changed by the user in the paragraph settings of a bibliography
15052  item.
15053 \end_layout
15054
15055 \begin_layout Standard
15056 Putting the last few things together, the \SpecialChar LaTeX
15057  output will be either: 
15058 \end_layout
15059
15060 \begin_layout LyX-Code
15061
15062 \backslash
15063 LatexName[LatexParam]{\SpecialChar ldots
15064 }
15065 \end_layout
15066
15067 \begin_layout Standard
15068 or: 
15069 \end_layout
15070
15071 \begin_layout LyX-Code
15072
15073 \backslash
15074 begin{LatexName}[LatexParam] \SpecialChar ldots
15075  
15076 \backslash
15077 end{LatexName}.
15078 \end_layout
15079
15080 \begin_layout Standard
15081 depending upon the \SpecialChar LaTeX
15082  type.
15083 \end_layout
15084
15085 \end_deeper
15086 \begin_layout Description
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 LeftDelim
15092 \end_layout
15093
15094 \end_inset
15095
15096  [
15097 \begin_inset Flex Code
15098 status collapsed
15099
15100 \begin_layout Plain Layout
15101 string
15102 \end_layout
15103
15104 \end_inset
15105
15106 ] A string that is put at the beginning of the style content.
15107  A line break in the output can be indicated by 
15108 \begin_inset Flex Code
15109 status collapsed
15110
15111 \begin_layout Plain Layout
15112 <br/>
15113 \end_layout
15114
15115 \end_inset
15116
15117 .
15118 \end_layout
15119
15120 \begin_layout Description
15121 \begin_inset Flex Code
15122 status collapsed
15123
15124 \begin_layout Plain Layout
15125 LeftMargin
15126 \end_layout
15127
15128 \end_inset
15129
15130  [
15131 \begin_inset Flex Code
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135 string=""
15136 \end_layout
15137
15138 \end_inset
15139
15140 ] If you put styles into environments, the different 
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 LeftMargin
15146 \end_layout
15147
15148 \end_inset
15149
15150  are not simply added, but added with a factor 
15151 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15152 \end_inset
15153
15154 .
15155  Note that this parameter is also used when 
15156 \begin_inset Flex Code
15157 status collapsed
15158
15159 \begin_layout Plain Layout
15160 Margin
15161 \end_layout
15162
15163 \end_inset
15164
15165  is defined as 
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 Manual
15171 \end_layout
15172
15173 \end_inset
15174
15175  or 
15176 \begin_inset Flex Code
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180 Dynamic
15181 \end_layout
15182
15183 \end_inset
15184
15185 .
15186  Then it is added to the manual or dynamic margin.
15187 \begin_inset Newline newline
15188 \end_inset
15189
15190 For example 
15191 \begin_inset Quotes eld
15192 \end_inset
15193
15194
15195 \begin_inset Flex Code
15196 status collapsed
15197
15198 \begin_layout Plain Layout
15199 MM
15200 \end_layout
15201
15202 \end_inset
15203
15204
15205 \begin_inset Quotes erd
15206 \end_inset
15207
15208  means that the paragraph is indented with the width of 
15209 \begin_inset Quotes eld
15210 \end_inset
15211
15212
15213 \begin_inset Flex Code
15214 status collapsed
15215
15216 \begin_layout Plain Layout
15217 MM
15218 \end_layout
15219
15220 \end_inset
15221
15222
15223 \begin_inset Quotes erd
15224 \end_inset
15225
15226  in the normal font.
15227  You can get a negative width by prefixing the string with 
15228 \begin_inset Quotes eld
15229 \end_inset
15230
15231
15232 \begin_inset Flex Code
15233 status collapsed
15234
15235 \begin_layout Plain Layout
15236 -
15237 \end_layout
15238
15239 \end_inset
15240
15241
15242 \begin_inset Quotes erd
15243 \end_inset
15244
15245 .
15246  This way was chosen so that the look is the same with each used screen
15247  font.
15248 \end_layout
15249
15250 \begin_layout Description
15251 \begin_inset Flex Code
15252 status collapsed
15253
15254 \begin_layout Plain Layout
15255 Margin
15256 \end_layout
15257
15258 \end_inset
15259
15260  [
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265
15266 \emph on
15267 Static
15268 \emph default
15269 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15270 \end_layout
15271
15272 \end_inset
15273
15274
15275 \begin_inset Newline newline
15276 \end_inset
15277
15278 The kind of margin that the style has on the left side.
15279 \end_layout
15280
15281 \begin_deeper
15282 \begin_layout Description
15283 \begin_inset Flex Code
15284 status collapsed
15285
15286 \begin_layout Plain Layout
15287 Static
15288 \end_layout
15289
15290 \end_inset
15291
15292  just means a fixed margin.
15293 \end_layout
15294
15295 \begin_layout Description
15296 \begin_inset Flex Code
15297 status collapsed
15298
15299 \begin_layout Plain Layout
15300 Manual
15301 \end_layout
15302
15303 \end_inset
15304
15305  means that the left margin depends on the string entered in the 
15306 \begin_inset Flex Noun
15307 status collapsed
15308
15309 \begin_layout Plain Layout
15310 Edit\SpecialChar menuseparator
15311 Paragraph
15312 \begin_inset space ~
15313 \end_inset
15314
15315 Settings
15316 \end_layout
15317
15318 \end_inset
15319
15320  dialog.
15321  This is used to typeset nice lists without tabulators.
15322 \end_layout
15323
15324 \begin_layout Description
15325 \begin_inset Flex Code
15326 status collapsed
15327
15328 \begin_layout Plain Layout
15329 Dynamic
15330 \end_layout
15331
15332 \end_inset
15333
15334  means that the margin depends on the size of the label.
15335  This is used for automatic enumerated headlines.
15336  It is obvious that the headline 
15337 \begin_inset Quotes eld
15338 \end_inset
15339
15340 5.4.3.2.1 Very long headline
15341 \begin_inset Quotes erd
15342 \end_inset
15343
15344  must have a wider left margin (as wide as 
15345 \begin_inset Quotes eld
15346 \end_inset
15347
15348 5.4.3.2.1
15349 \begin_inset Quotes erd
15350 \end_inset
15351
15352  plus the space) than 
15353 \begin_inset Quotes eld
15354 \end_inset
15355
15356 3.2 Very long headline
15357 \begin_inset Quotes erd
15358 \end_inset
15359
15360 , even if standard 
15361 \begin_inset Quotes eld
15362 \end_inset
15363
15364 word processors
15365 \begin_inset Quotes erd
15366 \end_inset
15367
15368  are not able to do this.
15369 \end_layout
15370
15371 \begin_layout Description
15372 \begin_inset Flex Code
15373 status collapsed
15374
15375 \begin_layout Plain Layout
15376 First_Dynamic
15377 \end_layout
15378
15379 \end_inset
15380
15381  is similar, but only the very first row of the paragraph is dynamic, while
15382  the others are static; this is used, for example, for descriptions.
15383 \end_layout
15384
15385 \begin_layout Description
15386 \begin_inset Flex Code
15387 status collapsed
15388
15389 \begin_layout Plain Layout
15390 Right_Address_Box
15391 \end_layout
15392
15393 \end_inset
15394
15395  means the margin is chosen in a way that the longest row of this paragraph
15396  fits to the right margin.
15397  This is used to typeset an address on the right edge of the page.
15398 \end_layout
15399
15400 \end_deeper
15401 \begin_layout Description
15402 \begin_inset Flex Code
15403 status collapsed
15404
15405 \begin_layout Plain Layout
15406 NeedProtect
15407 \end_layout
15408
15409 \end_inset
15410
15411  [
15412 \begin_inset Flex Code
15413 status collapsed
15414
15415 \begin_layout Plain Layout
15416
15417 \emph on
15418 0
15419 \end_layout
15420
15421 \end_inset
15422
15423 ,
15424 \begin_inset space \thinspace{}
15425 \end_inset
15426
15427
15428 \begin_inset Flex Code
15429 status collapsed
15430
15431 \begin_layout Plain Layout
15432 1
15433 \end_layout
15434
15435 \end_inset
15436
15437 ] Whether fragile commands in this style should be 
15438 \begin_inset Flex Code
15439 status collapsed
15440
15441 \begin_layout Plain Layout
15442
15443 \backslash
15444 protect
15445 \end_layout
15446
15447 \end_inset
15448
15449 'ed.
15450  (Note: This is 
15451 \emph on
15452 not
15453 \emph default
15454  whether this command should itself be protected.)
15455 \change_inserted -712698321 1523696949
15456
15457 \end_layout
15458
15459 \begin_layout Description
15460
15461 \change_inserted -712698321 1552395557
15462 \begin_inset Flex Code
15463 status collapsed
15464
15465 \begin_layout Plain Layout
15466
15467 \change_inserted -712698321 1523696950
15468 NeedCProtect
15469 \end_layout
15470
15471 \end_inset
15472
15473  [
15474 \begin_inset Flex Code
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478
15479 \change_inserted -712698321 1523696950
15480
15481 \emph on
15482 0
15483 \end_layout
15484
15485 \end_inset
15486
15487 ,
15488 \begin_inset space \thinspace{}
15489 \end_inset
15490
15491
15492 \begin_inset Flex Code
15493 status collapsed
15494
15495 \begin_layout Plain Layout
15496
15497 \change_inserted -712698321 1523696950
15498 1
15499 \end_layout
15500
15501 \end_inset
15502
15503 ] This causes macros that contain this layout to be protected with 
15504 \begin_inset Flex Code
15505 status collapsed
15506
15507 \begin_layout Plain Layout
15508
15509 \change_inserted -712698321 1523696950
15510
15511 \backslash
15512 cprotect
15513 \end_layout
15514
15515 \end_inset
15516
15517  (cf.
15518  package 
15519 \family sans
15520 cprotect
15521 \family default
15522 ) if necessary and thus allows (some) verbatim stuff in macros.
15523 \end_layout
15524
15525 \begin_layout Description
15526
15527 \change_inserted -712698321 1552395844
15528 \begin_inset Flex Code
15529 status collapsed
15530
15531 \begin_layout Plain Layout
15532
15533 \change_inserted -712698321 1552395561
15534 NeedMBoxProtect
15535 \end_layout
15536
15537 \end_inset
15538
15539  [
15540 \begin_inset Flex Code
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544
15545 \change_inserted -712698321 1552395557
15546
15547 \emph on
15548 0
15549 \end_layout
15550
15551 \end_inset
15552
15553 ,
15554 \begin_inset space \thinspace{}
15555 \end_inset
15556
15557
15558 \begin_inset Flex Code
15559 status collapsed
15560
15561 \begin_layout Plain Layout
15562
15563 \change_inserted -712698321 1552395557
15564 1
15565 \end_layout
15566
15567 \end_inset
15568
15569 ] Whether specific commands in this style (such as 
15570 \begin_inset Flex Code
15571 status collapsed
15572
15573 \begin_layout Plain Layout
15574
15575 \change_inserted -712698321 1552395655
15576
15577 \backslash
15578 cite
15579 \change_unchanged
15580
15581 \end_layout
15582
15583 \end_inset
15584
15585  and 
15586 \begin_inset Flex Code
15587 status collapsed
15588
15589 \begin_layout Plain Layout
15590
15591 \change_inserted -712698321 1552395661
15592
15593 \backslash
15594 ref
15595 \change_unchanged
15596
15597 \end_layout
15598
15599 \end_inset
15600
15601 ) should be protected in an 
15602 \begin_inset Flex Code
15603 status collapsed
15604
15605 \begin_layout Plain Layout
15606
15607 \change_inserted -712698321 1552395631
15608
15609 \backslash
15610 mbox
15611 \change_unchanged
15612
15613 \end_layout
15614
15615 \end_inset
15616
15617 .
15618  This is particularly needed for styles that draw on 
15619 \family sans
15620 ulem
15621 \family default
15622  or 
15623 \family sans
15624 soul
15625 \family default
15626  commands which parse their content in complex ways.
15627 \change_unchanged
15628
15629 \end_layout
15630
15631 \begin_layout Description
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 Newline
15637 \end_layout
15638
15639 \end_inset
15640
15641  [
15642 \begin_inset Flex Code
15643 status collapsed
15644
15645 \begin_layout Plain Layout
15646 0
15647 \end_layout
15648
15649 \end_inset
15650
15651 ,
15652 \begin_inset space \thinspace{}
15653 \end_inset
15654
15655
15656 \begin_inset Flex Code
15657 status collapsed
15658
15659 \begin_layout Plain Layout
15660
15661 \emph on
15662 1
15663 \end_layout
15664
15665 \end_inset
15666
15667 ] Whether newlines are translated into \SpecialChar LaTeX
15668  newlines (
15669 \begin_inset Flex Code
15670 status collapsed
15671
15672 \begin_layout Plain Layout
15673
15674 \backslash
15675
15676 \backslash
15677
15678 \end_layout
15679
15680 \end_inset
15681
15682 ) or not.
15683  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15684  editing
15685  inside \SpecialChar LyX
15686 .
15687 \end_layout
15688
15689 \begin_layout Description
15690 \begin_inset Flex Code
15691 status collapsed
15692
15693 \begin_layout Plain Layout
15694 NextNoIndent
15695 \end_layout
15696
15697 \end_inset
15698
15699  [
15700 \begin_inset Flex Code
15701 status collapsed
15702
15703 \begin_layout Plain Layout
15704
15705 \emph on
15706 0
15707 \end_layout
15708
15709 \end_inset
15710
15711 ,
15712 \begin_inset space \thinspace{}
15713 \end_inset
15714
15715
15716 \begin_inset Flex Code
15717 status collapsed
15718
15719 \begin_layout Plain Layout
15720 1
15721 \end_layout
15722
15723 \end_inset
15724
15725 ] If set to true, and if 
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730 DefaultStyle
15731 \end_layout
15732
15733 \end_inset
15734
15735  (usually 
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 Standard
15741 \end_layout
15742
15743 \end_inset
15744
15745 ) paragraphs are being indented, then the indentation of such a paragraph
15746  following one of this type will be suppressed.
15747  (So this will not affect the display of non-default paragraphs.)
15748 \end_layout
15749
15750 \begin_layout Description
15751 \begin_inset Flex Code
15752 status collapsed
15753
15754 \begin_layout Plain Layout
15755 ObsoletedBy
15756 \end_layout
15757
15758 \end_inset
15759
15760  [
15761 \begin_inset Flex Code
15762 status collapsed
15763
15764 \begin_layout Plain Layout
15765 <name>
15766 \end_layout
15767
15768 \end_inset
15769
15770 ] Name of a style that has replaced this style.
15771  This is used to rename a style, while keeping backward compatibility.
15772 \end_layout
15773
15774 \begin_layout Description
15775 \begin_inset Flex Code
15776 status collapsed
15777
15778 \begin_layout Plain Layout
15779 ParagraphGroup
15780 \end_layout
15781
15782 \end_inset
15783
15784  [
15785 \begin_inset Flex Code
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789 0
15790 \end_layout
15791
15792 \end_inset
15793
15794 ,
15795 \begin_inset space \thinspace{}
15796 \end_inset
15797
15798
15799 \begin_inset Flex Code
15800 status collapsed
15801
15802 \begin_layout Plain Layout
15803 1
15804 \end_layout
15805
15806 \end_inset
15807
15808 ] Determines whether consecutive paragraphs of the same type are treated
15809  as belonging together.
15810  This has the effect that the 
15811 \begin_inset Flex Code
15812 status collapsed
15813
15814 \begin_layout Plain Layout
15815 GuiLabel
15816 \end_layout
15817
15818 \end_inset
15819
15820  is only printed once before such a group.
15821  By default, this is true for 
15822 \begin_inset Flex Code
15823 status collapsed
15824
15825 \begin_layout Plain Layout
15826 LaTeXType
15827 \end_layout
15828
15829 \end_inset
15830
15831  
15832 \begin_inset Flex Code
15833 status collapsed
15834
15835 \begin_layout Plain Layout
15836 Environment
15837 \end_layout
15838
15839 \end_inset
15840
15841  and 
15842 \begin_inset Flex Code
15843 status collapsed
15844
15845 \begin_layout Plain Layout
15846 Bib_Environment
15847 \end_layout
15848
15849 \end_inset
15850
15851  and false for all other types.
15852 \end_layout
15853
15854 \begin_layout Description
15855 \begin_inset Flex Code
15856 status collapsed
15857
15858 \begin_layout Plain Layout
15859 ParbreakIsNewline
15860 \end_layout
15861
15862 \end_inset
15863
15864  [
15865 \begin_inset Flex Code
15866 status collapsed
15867
15868 \begin_layout Plain Layout
15869
15870 \emph on
15871 0
15872 \end_layout
15873
15874 \end_inset
15875
15876 ,
15877 \begin_inset space \thinspace{}
15878 \end_inset
15879
15880
15881 \begin_inset Flex Code
15882 status collapsed
15883
15884 \begin_layout Plain Layout
15885 1
15886 \end_layout
15887
15888 \end_inset
15889
15890 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15891  output,
15892  but only by a line break; together with 
15893 \begin_inset Flex Code
15894 status collapsed
15895
15896 \begin_layout Plain Layout
15897 PassThru 1
15898 \end_layout
15899
15900 \end_inset
15901
15902 , this allows to emulate a plain text editor (like the ERT inset).
15903 \end_layout
15904
15905 \begin_layout Description
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 ParIndent
15911 \end_layout
15912
15913 \end_inset
15914
15915  [
15916 \begin_inset Flex Code
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920 string=""
15921 \end_layout
15922
15923 \end_inset
15924
15925 ] The indent of the very first line of a paragraph.
15926  The
15927 \begin_inset Newline newline
15928 \end_inset
15929
15930
15931 \begin_inset Flex Code
15932 status collapsed
15933
15934 \begin_layout Plain Layout
15935 Parindent
15936 \end_layout
15937
15938 \end_inset
15939
15940  will be fixed for a certain style.
15941  The exception is the default style, since the indentation for these paragraphs
15942  can be prohibited with 
15943 \begin_inset Flex Code
15944 status collapsed
15945
15946 \begin_layout Plain Layout
15947 NextNoIndent
15948 \end_layout
15949
15950 \end_inset
15951
15952 .
15953  Also, 
15954 \begin_inset Flex Code
15955 status collapsed
15956
15957 \begin_layout Plain Layout
15958 Standard
15959 \end_layout
15960
15961 \end_inset
15962
15963  style paragraphs inside environments use the 
15964 \begin_inset Flex Code
15965 status collapsed
15966
15967 \begin_layout Plain Layout
15968 Parindent
15969 \end_layout
15970
15971 \end_inset
15972
15973  of the environment, not their native one.
15974  For example, 
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979 Standard
15980 \end_layout
15981
15982 \end_inset
15983
15984  paragraphs inside an enumeration are not indented.
15985 \end_layout
15986
15987 \begin_layout Description
15988 \begin_inset Flex Code
15989 status collapsed
15990
15991 \begin_layout Plain Layout
15992 ParSep
15993 \end_layout
15994
15995 \end_inset
15996
15997  [
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002 float=0
16003 \end_layout
16004
16005 \end_inset
16006
16007 ] The vertical space between two paragraphs of this style.
16008 \end_layout
16009
16010 \begin_layout Description
16011 \begin_inset Flex Code
16012 status collapsed
16013
16014 \begin_layout Plain Layout
16015 Parskip
16016 \end_layout
16017
16018 \end_inset
16019
16020  [
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 float=0
16026 \end_layout
16027
16028 \end_inset
16029
16030 ] \SpecialChar LyX
16031  allows the user to choose either 
16032 \begin_inset Quotes eld
16033 \end_inset
16034
16035 indent
16036 \begin_inset Quotes erd
16037 \end_inset
16038
16039  or 
16040 \begin_inset Quotes eld
16041 \end_inset
16042
16043 skip
16044 \begin_inset Quotes erd
16045 \end_inset
16046
16047  to separate paragraphs.
16048  When 
16049 \begin_inset Quotes eld
16050 \end_inset
16051
16052 indent
16053 \begin_inset Quotes erd
16054 \end_inset
16055
16056  is chosen, 
16057 \begin_inset Flex Code
16058 status collapsed
16059
16060 \begin_layout Plain Layout
16061 Parskip
16062 \end_layout
16063
16064 \end_inset
16065
16066  is ignored.
16067  When 
16068 \begin_inset Quotes eld
16069 \end_inset
16070
16071 skip
16072 \begin_inset Quotes erd
16073 \end_inset
16074
16075  is chosen, 
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 ParIndent
16081 \end_layout
16082
16083 \end_inset
16084
16085  is ignored and all paragraphs are separated by the 
16086 \begin_inset Flex Code
16087 status collapsed
16088
16089 \begin_layout Plain Layout
16090 Parskip
16091 \end_layout
16092
16093 \end_inset
16094
16095  argument.
16096  The vertical space is calculated with 
16097 \begin_inset Flex Code
16098 status collapsed
16099
16100 \begin_layout Plain Layout
16101 Parskip
16102 \begin_inset space ~
16103 \end_inset
16104
16105 * DefaultHeight
16106 \end_layout
16107
16108 \end_inset
16109
16110  where 
16111 \begin_inset Flex Code
16112 status collapsed
16113
16114 \begin_layout Plain Layout
16115 DefaultHeight
16116 \end_layout
16117
16118 \end_inset
16119
16120  is the height of a row with the normal font.
16121  This way, the look stays the same with different screen fonts.
16122 \end_layout
16123
16124 \begin_layout Description
16125 \begin_inset Flex Code
16126 status collapsed
16127
16128 \begin_layout Plain Layout
16129 PassThru
16130 \end_layout
16131
16132 \end_inset
16133
16134  [
16135 \begin_inset Flex Code
16136 status collapsed
16137
16138 \begin_layout Plain Layout
16139
16140 \emph on
16141 0
16142 \end_layout
16143
16144 \end_inset
16145
16146 ,
16147 \begin_inset space \thinspace{}
16148 \end_inset
16149
16150
16151 \begin_inset Flex Code
16152 status collapsed
16153
16154 \begin_layout Plain Layout
16155 1
16156 \end_layout
16157
16158 \end_inset
16159
16160 ] Whether the contents of this paragraph should be output in raw form, meaning
16161  without special translations that \SpecialChar LaTeX
16162  would require.
16163 \end_layout
16164
16165 \begin_layout Description
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 PassThruChars
16171 \end_layout
16172
16173 \end_inset
16174
16175  [
16176 \begin_inset Flex Code
16177 status collapsed
16178
16179 \begin_layout Plain Layout
16180 string
16181 \end_layout
16182
16183 \end_inset
16184
16185 ]
16186 \family typewriter
16187  
16188 \family default
16189 Defines individual characters that should be output in raw form, meaning
16190  without special translations that \SpecialChar LaTeX
16191  would require.
16192 \end_layout
16193
16194 \begin_layout Description
16195 \begin_inset Flex Code
16196 status collapsed
16197
16198 \begin_layout Plain Layout
16199 Preamble
16200 \end_layout
16201
16202 \end_inset
16203
16204  Information to be included in the \SpecialChar LaTeX
16205  preamble when this style is used.
16206  Used to define macros, load packages, etc., required by this particular
16207  style.
16208  Must end with 
16209 \begin_inset Quotes eld
16210 \end_inset
16211
16212
16213 \begin_inset Flex Code
16214 status collapsed
16215
16216 \begin_layout Plain Layout
16217 EndPreamble
16218 \end_layout
16219
16220 \end_inset
16221
16222
16223 \begin_inset Quotes erd
16224 \end_inset
16225
16226 .
16227 \end_layout
16228
16229 \begin_layout Description
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 RefPrefix
16235 \end_layout
16236
16237 \end_inset
16238
16239  [
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244 string
16245 \end_layout
16246
16247 \end_inset
16248
16249 ] The prefix to use when creating labels referring to paragraphs of this
16250  type.
16251  This allows the use of formatted references.
16252 \end_layout
16253
16254 \begin_layout Description
16255 \begin_inset Flex Code
16256 status collapsed
16257
16258 \begin_layout Plain Layout
16259 Requires 
16260 \end_layout
16261
16262 \end_inset
16263
16264  [
16265 \begin_inset Flex Code
16266 status collapsed
16267
16268 \begin_layout Plain Layout
16269 string
16270 \end_layout
16271
16272 \end_inset
16273
16274 ] Whether the style requires the feature 
16275 \begin_inset Flex Code
16276 status collapsed
16277
16278 \begin_layout Plain Layout
16279 string
16280 \end_layout
16281
16282 \end_inset
16283
16284  (see 
16285 \begin_inset CommandInset ref
16286 LatexCommand ref
16287 reference "chap:List-of-functions"
16288
16289 \end_inset
16290
16291  for the list of features).
16292  If you require a package with specific options, you can additionally use
16293  
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 PackageOptions
16299 \end_layout
16300
16301 \end_inset
16302
16303  as a general text class parameter (see 
16304 \begin_inset CommandInset ref
16305 LatexCommand ref
16306 reference "subsec:General-text-class"
16307
16308 \end_inset
16309
16310 ).
16311 \end_layout
16312
16313 \begin_layout Description
16314 \begin_inset Flex Code
16315 status collapsed
16316
16317 \begin_layout Plain Layout
16318 ResetArgs
16319 \end_layout
16320
16321 \end_inset
16322
16323  [
16324 \begin_inset Flex Code
16325 status collapsed
16326
16327 \begin_layout Plain Layout
16328
16329 \emph on
16330 0
16331 \end_layout
16332
16333 \end_inset
16334
16335 ,
16336 \begin_inset Flex Code
16337 status collapsed
16338
16339 \begin_layout Plain Layout
16340 1
16341 \end_layout
16342
16343 \end_inset
16344
16345 ] Resets the \SpecialChar LaTeX
16346  arguments of this style (as defined via the 
16347 \begin_inset Flex Code
16348 status collapsed
16349
16350 \begin_layout Plain Layout
16351 Argument
16352 \end_layout
16353
16354 \end_inset
16355
16356  tag).
16357  This is useful if you have copied a style via 
16358 \begin_inset Flex Code
16359 status collapsed
16360
16361 \begin_layout Plain Layout
16362 CopyStyle
16363 \end_layout
16364
16365 \end_inset
16366
16367 , but you do not want to inherit its (required and optional) arguments.
16368 \end_layout
16369
16370 \begin_layout Description
16371 \begin_inset Flex Code
16372 status collapsed
16373
16374 \begin_layout Plain Layout
16375 ResumeCounter
16376 \end_layout
16377
16378 \end_inset
16379
16380  [
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385
16386 \emph on
16387 0
16388 \end_layout
16389
16390 \end_inset
16391
16392 ,
16393 \begin_inset Flex Code
16394 status collapsed
16395
16396 \begin_layout Plain Layout
16397 1
16398 \end_layout
16399
16400 \end_inset
16401
16402 ] Resumes a counter that is usually reset at each new sequence of layouts.
16403  This is currently only useful when 
16404 \begin_inset Flex Code
16405 status collapsed
16406
16407 \begin_layout Plain Layout
16408 LabelType
16409 \end_layout
16410
16411 \end_inset
16412
16413  is 
16414 \begin_inset Flex Code
16415 status collapsed
16416
16417 \begin_layout Plain Layout
16418 Enumerate
16419 \end_layout
16420
16421 \end_inset
16422
16423 .
16424 \end_layout
16425
16426 \begin_layout Description
16427 \begin_inset Flex Code
16428 status collapsed
16429
16430 \begin_layout Plain Layout
16431 RightDelim
16432 \end_layout
16433
16434 \end_inset
16435
16436  [
16437 \begin_inset Flex Code
16438 status collapsed
16439
16440 \begin_layout Plain Layout
16441 string
16442 \end_layout
16443
16444 \end_inset
16445
16446 ] A string that is put at the end of the layout content.
16447  A line break in the output can be indicated by 
16448 \begin_inset Flex Code
16449 status collapsed
16450
16451 \begin_layout Plain Layout
16452 <br/>
16453 \end_layout
16454
16455 \end_inset
16456
16457 .
16458 \end_layout
16459
16460 \begin_layout Description
16461 \begin_inset Flex Code
16462 status collapsed
16463
16464 \begin_layout Plain Layout
16465 RightMargin
16466 \end_layout
16467
16468 \end_inset
16469
16470  [
16471 \begin_inset Flex Code
16472 status collapsed
16473
16474 \begin_layout Plain Layout
16475 string=""
16476 \end_layout
16477
16478 \end_inset
16479
16480 ] Similar to 
16481 \begin_inset Flex Code
16482 status collapsed
16483
16484 \begin_layout Plain Layout
16485 LeftMargin
16486 \end_layout
16487
16488 \end_inset
16489
16490 .
16491 \end_layout
16492
16493 \begin_layout Description
16494 \begin_inset Flex Code
16495 status collapsed
16496
16497 \begin_layout Plain Layout
16498 Spacing
16499 \end_layout
16500
16501 \end_inset
16502
16503  [
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508
16509 \emph on
16510 single
16511 \end_layout
16512
16513 \end_inset
16514
16515
16516 \begin_inset Flex Code
16517 status collapsed
16518
16519 \begin_layout Plain Layout
16520 onehalf
16521 \end_layout
16522
16523 \end_inset
16524
16525
16526 \begin_inset Flex Code
16527 status collapsed
16528
16529 \begin_layout Plain Layout
16530 double
16531 \end_layout
16532
16533 \end_inset
16534
16535
16536 \begin_inset Flex Code
16537 status collapsed
16538
16539 \begin_layout Plain Layout
16540 other
16541 \begin_inset space ~
16542 \end_inset
16543
16544 <value>
16545 \end_layout
16546
16547 \end_inset
16548
16549 ] This defines what the default spacing should be in the style.
16550  The arguments 
16551 \begin_inset Flex Code
16552 status collapsed
16553
16554 \begin_layout Plain Layout
16555 single
16556 \end_layout
16557
16558 \end_inset
16559
16560
16561 \begin_inset Flex Code
16562 status collapsed
16563
16564 \begin_layout Plain Layout
16565 onehalf
16566 \end_layout
16567
16568 \end_inset
16569
16570  and 
16571 \begin_inset Flex Code
16572 status collapsed
16573
16574 \begin_layout Plain Layout
16575 double
16576 \end_layout
16577
16578 \end_inset
16579
16580  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16581  If you specify the argument 
16582 \begin_inset Flex Code
16583 status collapsed
16584
16585 \begin_layout Plain Layout
16586 other
16587 \end_layout
16588
16589 \end_inset
16590
16591 , then you must also provide a value argument which will be the actual multiplie
16592 r value.
16593  Note that, contrary to other parameters, 
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 Spacing
16599 \end_layout
16600
16601 \end_inset
16602
16603  implies the generation of specific \SpecialChar LaTeX
16604  code, using the \SpecialChar LaTeX
16605  package 
16606 \family roman
16607
16608 \begin_inset Flex Code
16609 status collapsed
16610
16611 \begin_layout Plain Layout
16612 setspace
16613 \end_layout
16614
16615 \end_inset
16616
16617 .
16618 \end_layout
16619
16620 \begin_layout Description
16621 \begin_inset Flex Code
16622 status collapsed
16623
16624 \begin_layout Plain Layout
16625 Spellcheck
16626 \end_layout
16627
16628 \end_inset
16629
16630  [
16631 \begin_inset Flex Code
16632 status collapsed
16633
16634 \begin_layout Plain Layout
16635 0
16636 \end_layout
16637
16638 \end_inset
16639
16640 ,
16641 \begin_inset space \thinspace{}
16642 \end_inset
16643
16644
16645 \begin_inset Flex Code
16646 status collapsed
16647
16648 \begin_layout Plain Layout
16649
16650 \emph on
16651 1
16652 \end_layout
16653
16654 \end_inset
16655
16656 ] Allow spell-checking paragraphs of this style.
16657  Default is true.
16658 \end_layout
16659
16660 \begin_layout Description
16661 \begin_inset Flex Code
16662 status collapsed
16663
16664 \begin_layout Plain Layout
16665 StepMasterCounter
16666 \end_layout
16667
16668 \end_inset
16669
16670  [
16671 \begin_inset Flex Code
16672 status collapsed
16673
16674 \begin_layout Plain Layout
16675
16676 \emph on
16677 0
16678 \end_layout
16679
16680 \end_inset
16681
16682 ,
16683 \begin_inset Flex Code
16684 status collapsed
16685
16686 \begin_layout Plain Layout
16687 1
16688 \end_layout
16689
16690 \end_inset
16691
16692 ] Steps the master counter of a given counter at the beginning of a new
16693  sequence of layouts.
16694  This is currently only useful when 
16695 \begin_inset Flex Code
16696 status collapsed
16697
16698 \begin_layout Plain Layout
16699 LabelType
16700 \end_layout
16701
16702 \end_inset
16703
16704  is 
16705 \begin_inset Flex Code
16706 status collapsed
16707
16708 \begin_layout Plain Layout
16709 Enumerate
16710 \end_layout
16711
16712 \end_inset
16713
16714 .
16715 \end_layout
16716
16717 \begin_layout Description
16718 \begin_inset Flex Code
16719 status collapsed
16720
16721 \begin_layout Plain Layout
16722 TextFont
16723 \end_layout
16724
16725 \end_inset
16726
16727  The font used for the text body .
16728  See 
16729 \begin_inset CommandInset ref
16730 LatexCommand ref
16731 reference "subsec:Font-description"
16732
16733 \end_inset
16734
16735 .
16736 \end_layout
16737
16738 \begin_layout Description
16739 \begin_inset Flex Code
16740 status collapsed
16741
16742 \begin_layout Plain Layout
16743 TocLevel
16744 \end_layout
16745
16746 \end_inset
16747
16748
16749 \series medium
16750  [
16751 \begin_inset Flex Code
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755
16756 \series medium
16757 int=3
16758 \end_layout
16759
16760 \end_inset
16761
16762 ]
16763 \series default
16764  The level of the style in the table of contents.
16765  This is used for automatic numbering of section headings.
16766 \end_layout
16767
16768 \begin_layout Description
16769 \begin_inset Flex Code
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 ToggleIndent
16774 \end_layout
16775
16776 \end_inset
16777
16778  [
16779 \emph on
16780
16781 \begin_inset Flex Code
16782 status collapsed
16783
16784 \begin_layout Plain Layout
16785
16786 \emph on
16787 default
16788 \end_layout
16789
16790 \end_inset
16791
16792
16793 \emph default
16794
16795 \begin_inset Flex Code
16796 status collapsed
16797
16798 \begin_layout Plain Layout
16799 always
16800 \end_layout
16801
16802 \end_inset
16803
16804
16805 \begin_inset Flex Code
16806 status collapsed
16807
16808 \begin_layout Plain Layout
16809 never
16810 \end_layout
16811
16812 \end_inset
16813
16814 ] This tag determines whether the first line indentation of this paragraph
16815  can be toggled via the Paragraph settings dialog.
16816  If 
16817 \emph on
16818
16819 \begin_inset Flex Code
16820 status collapsed
16821
16822 \begin_layout Plain Layout
16823
16824 \emph off
16825 default
16826 \end_layout
16827
16828 \end_inset
16829
16830
16831 \emph default
16832  is set, indentation can be toggled if the document settings use 
16833 \begin_inset Quotes eld
16834 \end_inset
16835
16836 indent
16837 \begin_inset Quotes erd
16838 \end_inset
16839
16840  paragraph style, with 
16841 \begin_inset Flex Code
16842 status collapsed
16843
16844 \begin_layout Plain Layout
16845 always
16846 \end_layout
16847
16848 \end_inset
16849
16850 , indentation can always be toggled, notwithstanding the document settings,
16851  with 
16852 \begin_inset Flex Code
16853 status collapsed
16854
16855 \begin_layout Plain Layout
16856 never
16857 \end_layout
16858
16859 \end_inset
16860
16861 , indentation can never be toggled.
16862 \end_layout
16863
16864 \begin_layout Description
16865 \begin_inset Flex Code
16866 status collapsed
16867
16868 \begin_layout Plain Layout
16869 TopSep
16870 \end_layout
16871
16872 \end_inset
16873
16874  [
16875 \begin_inset Flex Code
16876 status collapsed
16877
16878 \begin_layout Plain Layout
16879 float=0
16880 \end_layout
16881
16882 \end_inset
16883
16884 ] The vertical space with which the very first of a chain of paragraphs
16885  with this style is separated from the previous paragraph.
16886  If the previous paragraph has another style, the separations are not simply
16887  added, but the maximum is taken.
16888 \end_layout
16889
16890 \begin_layout Subsection
16891 \begin_inset CommandInset label
16892 LatexCommand label
16893 name "subsec:I18n"
16894
16895 \end_inset
16896
16897 Internationalization of Paragraph Styles
16898 \end_layout
16899
16900 \begin_layout Standard
16901 \SpecialChar LyX
16902  has long supported internationalization of layout information, but, until
16903  version 2.0, this applied only to the user interface and not to, say, PDF
16904  output.
16905  Thus, French authors were forced to resort to ugly hacks if they wanted
16906  `
16907 \lang french
16908 Théorème
16909 \lang english
16910  1' instead of `Theorem 1'.
16911  Thanks to Georg Baum, that is no longer the case.
16912 \end_layout
16913
16914 \begin_layout Standard
16915 If a 
16916 \begin_inset Flex Code
16917 status collapsed
16918
16919 \begin_layout Plain Layout
16920 Style
16921 \end_layout
16922
16923 \end_inset
16924
16925  defines text that is to appear in the typeset document, it may use 
16926 \begin_inset Flex Code
16927 status collapsed
16928
16929 \begin_layout Plain Layout
16930 LangPreamble
16931 \end_layout
16932
16933 \end_inset
16934
16935  and 
16936 \begin_inset Flex Code
16937 status collapsed
16938
16939 \begin_layout Plain Layout
16940 BabelPreamble
16941 \end_layout
16942
16943 \end_inset
16944
16945  to support non-English and even multi-language documents correctly.
16946  The following excerpt (from the 
16947 \begin_inset Flex Code
16948 status collapsed
16949
16950 \begin_layout Plain Layout
16951 theorems-ams.inc
16952 \end_layout
16953
16954 \end_inset
16955
16956  file) shows how this works:
16957 \end_layout
16958
16959 \begin_layout LyX-Code
16960 Preamble
16961 \end_layout
16962
16963 \begin_deeper
16964 \begin_layout LyX-Code
16965   
16966 \backslash
16967 theoremstyle{remark}
16968 \end_layout
16969
16970 \begin_layout LyX-Code
16971   
16972 \backslash
16973 newtheorem{claim}[thm]{
16974 \backslash
16975 protect
16976 \backslash
16977 claimname}
16978 \end_layout
16979
16980 \begin_layout LyX-Code
16981 EndPreamble
16982 \end_layout
16983
16984 \begin_layout LyX-Code
16985 LangPreamble
16986 \end_layout
16987
16988 \begin_layout LyX-Code
16989   
16990 \backslash
16991 providecommand{
16992 \backslash
16993 claimname}{_(Claim)}
16994 \end_layout
16995
16996 \begin_layout LyX-Code
16997 EndLangPreamble
16998 \end_layout
16999
17000 \begin_layout LyX-Code
17001 BabelPreamble
17002 \end_layout
17003
17004 \begin_layout LyX-Code
17005     
17006 \backslash
17007 addto
17008 \backslash
17009 captions$$lang{
17010 \backslash
17011 renewcommand{
17012 \backslash
17013 claimname}{_(Claim)}}
17014 \end_layout
17015
17016 \begin_layout LyX-Code
17017 EndBabelPreamble
17018 \end_layout
17019
17020 \end_deeper
17021 \begin_layout Standard
17022 In principle, any legal \SpecialChar LaTeX
17023  may appear in the 
17024 \begin_inset Flex Code
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028 LangPreamble
17029 \end_layout
17030
17031 \end_inset
17032
17033  and 
17034 \begin_inset Flex Code
17035 status collapsed
17036
17037 \begin_layout Plain Layout
17038 BabelPreamble
17039 \end_layout
17040
17041 \end_inset
17042
17043  tags, but in practice they will typically look as they do here.
17044  The key to correct translation of the typeset text is the definition of
17045  the \SpecialChar LaTeX
17046  command 
17047 \begin_inset Flex Code
17048 status collapsed
17049
17050 \begin_layout Plain Layout
17051
17052 \backslash
17053 claimname
17054 \end_layout
17055
17056 \end_inset
17057
17058  and its use in 
17059 \begin_inset Flex Code
17060 status collapsed
17061
17062 \begin_layout Plain Layout
17063
17064 \backslash
17065 newtheorem
17066 \end_layout
17067
17068 \end_inset
17069
17070 .
17071  
17072 \end_layout
17073
17074 \begin_layout Standard
17075 The 
17076 \begin_inset Flex Code
17077 status collapsed
17078
17079 \begin_layout Plain Layout
17080 LangPreamble
17081 \end_layout
17082
17083 \end_inset
17084
17085  tag provides for internationalization based upon the overall language of
17086  the document.
17087  The contents of the tag will be included in the preamble, just as with
17088  the 
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 Preamble
17094 \end_layout
17095
17096 \end_inset
17097
17098  tag.
17099  What makes it special is the use of the 
17100 \begin_inset Quotes eld
17101 \end_inset
17102
17103 function
17104 \begin_inset Quotes erd
17105 \end_inset
17106
17107  
17108 \begin_inset Flex Code
17109 status collapsed
17110
17111 \begin_layout Plain Layout
17112 _()
17113 \end_layout
17114
17115 \end_inset
17116
17117 , which will be replaced, when \SpecialChar LyX
17118  produces \SpecialChar LaTeX
17119  output, with the translation of
17120  its argument into the document language.
17121 \end_layout
17122
17123 \begin_layout Standard
17124 The 
17125 \begin_inset Flex Code
17126 status collapsed
17127
17128 \begin_layout Plain Layout
17129 BabelPreamble
17130 \end_layout
17131
17132 \end_inset
17133
17134  tag is more complex, since it is meant to provide support for multi-language
17135  documents and so offers an interface to the 
17136 \begin_inset Flex Code
17137 status collapsed
17138
17139 \begin_layout Plain Layout
17140 babel
17141 \end_layout
17142
17143 \end_inset
17144
17145  package.
17146  Its contents will be added to the preamble once for each language that
17147  appears in the document.
17148  In this case, the argument to 
17149 \begin_inset Flex Code
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153 _()
17154 \end_layout
17155
17156 \end_inset
17157
17158  will be replaced with its translation into the language in question; the
17159  expression 
17160 \begin_inset Flex Code
17161 status collapsed
17162
17163 \begin_layout Plain Layout
17164 $$lang
17165 \end_layout
17166
17167 \end_inset
17168
17169  is replaced by the language name (as used by the babel package).
17170 \end_layout
17171
17172 \begin_layout Standard
17173 A German document that also included a French section would thus have the
17174  following in the preamble:
17175 \end_layout
17176
17177 \begin_layout LyX-Code
17178
17179 \backslash
17180 addto
17181 \backslash
17182 captionsfrench{
17183 \backslash
17184 renewcommand{
17185 \backslash
17186 claimname}{Affirmation}}
17187 \begin_inset Newline newline
17188 \end_inset
17189
17190
17191 \backslash
17192 addto
17193 \backslash
17194 captionsngerman{
17195 \backslash
17196 renewcommand{
17197 \backslash
17198 claimname}{Behauptung}}
17199 \begin_inset Newline newline
17200 \end_inset
17201
17202
17203 \backslash
17204 providecommand{
17205 \backslash
17206 claimname}{Behauptung}
17207 \end_layout
17208
17209 \begin_layout Standard
17210 \SpecialChar LaTeX
17211  and 
17212 \begin_inset Flex Code
17213 status collapsed
17214
17215 \begin_layout Plain Layout
17216 babel
17217 \end_layout
17218
17219 \end_inset
17220
17221  will then conspire to produce the correct text in the output.
17222 \end_layout
17223
17224 \begin_layout Standard
17225 One important point to note here is that the translations are provided by
17226  \SpecialChar LyX
17227  itself, through the file 
17228 \begin_inset Flex Code
17229 status collapsed
17230
17231 \begin_layout Plain Layout
17232 layouttranslations
17233 \end_layout
17234
17235 \end_inset
17236
17237 .
17238  This means, in effect, that 
17239 \begin_inset Flex Code
17240 status collapsed
17241
17242 \begin_layout Plain Layout
17243 LangPreamble
17244 \end_layout
17245
17246 \end_inset
17247
17248  and 
17249 \begin_inset Flex Code
17250 status collapsed
17251
17252 \begin_layout Plain Layout
17253 BabelPreamble
17254 \end_layout
17255
17256 \end_inset
17257
17258  are really only of use in layout files that are provided with \SpecialChar LyX
17259 , since text
17260  entered in user-created layout files will not be seen by \SpecialChar LyX
17261 's internationalizatio
17262 n routines unless the 
17263 \begin_inset Flex Code
17264 status collapsed
17265
17266 \begin_layout Plain Layout
17267 layouttranslations
17268 \end_layout
17269
17270 \end_inset
17271
17272  file is modified accordingly.
17273  That said, however, any layout created with the intention that it will
17274  be included with \SpecialChar LyX
17275  should use these tags where appropriate.
17276  Please note that the paragraph style translations provided by \SpecialChar LyX
17277  will never
17278  change with a minor update (e.
17279 \begin_inset space \thinspace{}
17280 \end_inset
17281
17282 g.
17283 \begin_inset space \space{}
17284 \end_inset
17285
17286 from version 2.1.x to 2.1.y).
17287  It is however quite likely that a major update (e.
17288 \begin_inset space \thinspace{}
17289 \end_inset
17290
17291 g.
17292 \begin_inset space \space{}
17293 \end_inset
17294
17295 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17296 \end_layout
17297
17298 \begin_layout Subsection
17299 Floats
17300 \begin_inset CommandInset label
17301 LatexCommand label
17302 name "subsec:Floats"
17303
17304 \end_inset
17305
17306
17307 \end_layout
17308
17309 \begin_layout Standard
17310 It is necessary to define the floats (
17311 \begin_inset Flex Noun
17312 status collapsed
17313
17314 \begin_layout Plain Layout
17315 figure
17316 \end_layout
17317
17318 \end_inset
17319
17320
17321 \begin_inset Flex Noun
17322 status collapsed
17323
17324 \begin_layout Plain Layout
17325 table
17326 \end_layout
17327
17328 \end_inset
17329
17330 , \SpecialChar ldots
17331 ) in the text class itself.
17332  Standard floats are included in the file 
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337 stdfloats.inc
17338 \end_layout
17339
17340 \end_inset
17341
17342 , so you may have to do no more than add
17343 \end_layout
17344
17345 \begin_layout LyX-Code
17346 Input stdfloats.inc
17347 \end_layout
17348
17349 \begin_layout Standard
17350 to your layout file.
17351  If you want to implement a text class that proposes some other float types
17352  (like the AGU class bundled with \SpecialChar LyX
17353 ), the information below will hopefully
17354  help you:
17355 \end_layout
17356
17357 \begin_layout Description
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 AllowedPlacement
17363 \end_layout
17364
17365 \end_inset
17366
17367  [
17368 \begin_inset Flex Code
17369 status collapsed
17370
17371 \begin_layout Plain Layout
17372 string
17373 \end_layout
17374
17375 \end_inset
17376
17377 =!htbpH] Allowed placement options for this float type.
17378  The value is a string of placement characters.
17379  Possible characters include: 
17380 \emph on
17381 h
17382 \emph default
17383  (
17384 \begin_inset Quotes eld
17385 \end_inset
17386
17387 here if possible
17388 \begin_inset Quotes erd
17389 \end_inset
17390
17391 ), 
17392 \emph on
17393 t
17394 \emph default
17395  (
17396 \begin_inset Quotes eld
17397 \end_inset
17398
17399 top of page
17400 \begin_inset Quotes erd
17401 \end_inset
17402
17403 ), 
17404 \emph on
17405 b
17406 \emph default
17407  (
17408 \begin_inset Quotes eld
17409 \end_inset
17410
17411 bottom of page
17412 \begin_inset Quotes erd
17413 \end_inset
17414
17415 ), 
17416 \emph on
17417 p
17418 \emph default
17419  (
17420 \begin_inset Quotes eld
17421 \end_inset
17422
17423 page of floats
17424 \begin_inset Quotes erd
17425 \end_inset
17426
17427 ), 
17428 \emph on
17429 H
17430 \emph default
17431  (
17432 \begin_inset Quotes eld
17433 \end_inset
17434
17435 here definitely
17436 \begin_inset Quotes erd
17437 \end_inset
17438
17439 ) and 
17440 \emph on
17441 !
17442 \emph default
17443  (
17444 \begin_inset Quotes eld
17445 \end_inset
17446
17447 ignore LaTeX rules
17448 \begin_inset Quotes erd
17449 \end_inset
17450
17451 ).
17452  The order of the characters in the string does not matter.
17453  If no placement options are allowed, use the string 
17454 \emph on
17455 none
17456 \emph default
17457 .
17458 \end_layout
17459
17460 \begin_layout Description
17461 \begin_inset Flex Code
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465 AllowsSideways
17466 \end_layout
17467
17468 \end_inset
17469
17470  [
17471 \begin_inset Flex Code
17472 status collapsed
17473
17474 \begin_layout Plain Layout
17475
17476 \emph off
17477 0
17478 \end_layout
17479
17480 \end_inset
17481
17482 ,
17483 \begin_inset space \thinspace{}
17484 \end_inset
17485
17486
17487 \emph on
17488
17489 \begin_inset Flex Code
17490 status collapsed
17491
17492 \begin_layout Plain Layout
17493
17494 \emph on
17495 1
17496 \end_layout
17497
17498 \end_inset
17499
17500
17501 \emph default
17502 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17503 -package 
17504 \family typewriter
17505 rotfloat
17506 \family default
17507  (sidewaysfloat).
17508  Set to 
17509 \begin_inset Flex Code
17510 status collapsed
17511
17512 \begin_layout Plain Layout
17513 0
17514 \end_layout
17515
17516 \end_inset
17517
17518  if the float does not support this feature.
17519 \end_layout
17520
17521 \begin_layout Description
17522 \begin_inset Flex Code
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526 AllowsWide
17527 \end_layout
17528
17529 \end_inset
17530
17531  [
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536
17537 \emph off
17538 0
17539 \end_layout
17540
17541 \end_inset
17542
17543 ,
17544 \begin_inset space \thinspace{}
17545 \end_inset
17546
17547
17548 \emph on
17549
17550 \begin_inset Flex Code
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554
17555 \emph on
17556 1
17557 \end_layout
17558
17559 \end_inset
17560
17561
17562 \emph default
17563 ] Defines whether the float has a starred variant that spans columns in
17564  a two column paragraph.
17565  Set to 
17566 \begin_inset Flex Code
17567 status collapsed
17568
17569 \begin_layout Plain Layout
17570 0
17571 \end_layout
17572
17573 \end_inset
17574
17575  if the float does not support this feature.
17576 \end_layout
17577
17578 \begin_layout Description
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 Extension
17584 \end_layout
17585
17586 \end_inset
17587
17588  [
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 string
17594 \end_layout
17595
17596 \end_inset
17597
17598 =
17599 \begin_inset Quotes erd
17600 \end_inset
17601
17602
17603 \begin_inset Quotes erd
17604 \end_inset
17605
17606 ] The file name extension of an auxiliary file for the list of figures (or
17607  whatever).
17608  \SpecialChar LaTeX
17609  writes the captions to this file.
17610 \end_layout
17611
17612 \begin_layout Description
17613 \begin_inset Flex Code
17614 status collapsed
17615
17616 \begin_layout Plain Layout
17617 GuiName
17618 \end_layout
17619
17620 \end_inset
17621
17622  [
17623 \begin_inset Flex Code
17624 status collapsed
17625
17626 \begin_layout Plain Layout
17627 string
17628 \end_layout
17629
17630 \end_inset
17631
17632 =
17633 \begin_inset Quotes erd
17634 \end_inset
17635
17636
17637 \begin_inset Quotes erd
17638 \end_inset
17639
17640 ] The string that will be used in the menus and also for the caption.
17641  This is translated to the current language if babel is used.
17642 \end_layout
17643
17644 \begin_layout Description
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 HTML*
17650 \end_layout
17651
17652 \end_inset
17653
17654  These tags control the XHTML output.
17655  See 
17656 \begin_inset CommandInset ref
17657 LatexCommand ref
17658 reference "sec:Tags-for-XHTML"
17659
17660 \end_inset
17661
17662 .
17663 \end_layout
17664
17665 \begin_layout Description
17666 \begin_inset Flex Code
17667 status collapsed
17668
17669 \begin_layout Plain Layout
17670 IsPredefined
17671 \end_layout
17672
17673 \end_inset
17674
17675  [
17676 \emph on
17677
17678 \begin_inset Flex Code
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682 0
17683 \end_layout
17684
17685 \end_inset
17686
17687
17688 \emph default
17689 ,
17690 \begin_inset space \thinspace{}
17691 \end_inset
17692
17693
17694 \begin_inset Flex Code
17695 status collapsed
17696
17697 \begin_layout Plain Layout
17698 1
17699 \end_layout
17700
17701 \end_inset
17702
17703 ] Indicates whether the float is already defined in the document class or
17704  if instead the \SpecialChar LaTeX
17705  package 
17706 \begin_inset Flex Code
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710 float
17711 \end_layout
17712
17713 \end_inset
17714
17715  needs to be loaded to define it on-the-fly.
17716  The default is 
17717 \begin_inset Flex Code
17718 status collapsed
17719
17720 \begin_layout Plain Layout
17721 0
17722 \end_layout
17723
17724 \end_inset
17725
17726 , which means: 
17727 \begin_inset Flex Code
17728 status collapsed
17729
17730 \begin_layout Plain Layout
17731 float
17732 \end_layout
17733
17734 \end_inset
17735
17736  is used.
17737  It should be set to 
17738 \begin_inset Flex Code
17739 status collapsed
17740
17741 \begin_layout Plain Layout
17742 1
17743 \end_layout
17744
17745 \end_inset
17746
17747  if the float is already defined by the \SpecialChar LaTeX
17748  document class.
17749 \end_layout
17750
17751 \begin_layout Description
17752 \begin_inset Flex Code
17753 status collapsed
17754
17755 \begin_layout Plain Layout
17756 ListCommand
17757 \end_layout
17758
17759 \end_inset
17760
17761  [
17762 \begin_inset Flex Code
17763 status collapsed
17764
17765 \begin_layout Plain Layout
17766 string
17767 \end_layout
17768
17769 \end_inset
17770
17771 =
17772 \begin_inset Quotes erd
17773 \end_inset
17774
17775
17776 \begin_inset Quotes erd
17777 \end_inset
17778
17779 ] The command used to generate a list of floats of this type; the leading
17780  `
17781 \backslash
17782 ' must be omitted.
17783  This 
17784 \emph on
17785 must
17786 \emph default
17787  be given if 
17788 \begin_inset Flex Code
17789 status collapsed
17790
17791 \begin_layout Plain Layout
17792 UsesFloatPkg
17793 \end_layout
17794
17795 \end_inset
17796
17797  is false, since there is no standard way to generate this command.
17798  It is ignored if 
17799 \begin_inset Flex Code
17800 status collapsed
17801
17802 \begin_layout Plain Layout
17803 UsesFloatPkg
17804 \end_layout
17805
17806 \end_inset
17807
17808  is true, since in that case there is a standard way to define the command.
17809 \end_layout
17810
17811 \begin_layout Description
17812 \begin_inset Flex Code
17813 status collapsed
17814
17815 \begin_layout Plain Layout
17816 ListName
17817 \end_layout
17818
17819 \end_inset
17820
17821  [
17822 \begin_inset Flex Code
17823 status collapsed
17824
17825 \begin_layout Plain Layout
17826 string
17827 \end_layout
17828
17829 \end_inset
17830
17831 =
17832 \begin_inset Quotes erd
17833 \end_inset
17834
17835
17836 \begin_inset Quotes erd
17837 \end_inset
17838
17839 ] A title for a list of floats of this kind (list of figures, tables, or
17840  whatever).
17841  It is used for the screen label within \SpecialChar LyX
17842 , it is used by \SpecialChar LaTeX
17843  for the title and
17844  it is used as the title in the XHTML output.
17845  It will be translated to the document language.
17846 \end_layout
17847
17848 \begin_layout Description
17849 \begin_inset Flex Code
17850 status collapsed
17851
17852 \begin_layout Plain Layout
17853 NumberWithin
17854 \end_layout
17855
17856 \end_inset
17857
17858  [
17859 \begin_inset Flex Code
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863 string
17864 \end_layout
17865
17866 \end_inset
17867
17868 =
17869 \begin_inset Quotes erd
17870 \end_inset
17871
17872
17873 \begin_inset Quotes erd
17874 \end_inset
17875
17876 ] This (optional) argument determines whether floats of this class will
17877  be numbered within some sectional unit of the document.
17878  For example, if 
17879 \begin_inset Flex Code
17880 status collapsed
17881
17882 \begin_layout Plain Layout
17883 NumberWithin
17884 \end_layout
17885
17886 \end_inset
17887
17888  is set to 
17889 \begin_inset Quotes eld
17890 \end_inset
17891
17892
17893 \begin_inset Flex Code
17894 status collapsed
17895
17896 \begin_layout Plain Layout
17897 chapter
17898 \end_layout
17899
17900 \end_inset
17901
17902
17903 \begin_inset Quotes erd
17904 \end_inset
17905
17906 , the floats will be numbered within chapters.
17907  
17908 \end_layout
17909
17910 \begin_layout Description
17911 \begin_inset Flex Code
17912 status collapsed
17913
17914 \begin_layout Plain Layout
17915 Placement
17916 \end_layout
17917
17918 \end_inset
17919
17920  [
17921 \begin_inset Flex Code
17922 status collapsed
17923
17924 \begin_layout Plain Layout
17925 string
17926 \end_layout
17927
17928 \end_inset
17929
17930 =
17931 \begin_inset Quotes erd
17932 \end_inset
17933
17934
17935 \begin_inset Quotes erd
17936 \end_inset
17937
17938 ] The default placement for the given class of floats.
17939  The string should be as in standard \SpecialChar LaTeX
17940
17941 \begin_inset Flex Code
17942 status collapsed
17943
17944 \begin_layout Plain Layout
17945 t
17946 \end_layout
17947
17948 \end_inset
17949
17950
17951 \begin_inset Flex Code
17952 status collapsed
17953
17954 \begin_layout Plain Layout
17955 b
17956 \end_layout
17957
17958 \end_inset
17959
17960
17961 \begin_inset Flex Code
17962 status collapsed
17963
17964 \begin_layout Plain Layout
17965 p
17966 \end_layout
17967
17968 \end_inset
17969
17970  and 
17971 \begin_inset Flex Code
17972 status collapsed
17973
17974 \begin_layout Plain Layout
17975 h
17976 \end_layout
17977
17978 \end_inset
17979
17980  for top, bottom, page, and here, respectively.
17981 \begin_inset Foot
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985 Note that the order of these letters in the string is irrelevant, like in
17986  \SpecialChar LaTeX
17987 .
17988 \end_layout
17989
17990 \end_inset
17991
17992  On top of that there is a new type, 
17993 \begin_inset Flex Code
17994 status collapsed
17995
17996 \begin_layout Plain Layout
17997 H
17998 \end_layout
17999
18000 \end_inset
18001
18002 , which does not really correspond to a float, since it means: put it 
18003 \begin_inset Quotes eld
18004 \end_inset
18005
18006 here
18007 \begin_inset Quotes erd
18008 \end_inset
18009
18010  and nowhere else.
18011  Note however that the 
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016 H
18017 \end_layout
18018
18019 \end_inset
18020
18021  specifier is special and, because of implementation details, cannot be
18022  used in non-built in float types.
18023  If you do not understand what this means, just use 
18024 \begin_inset Quotes eld
18025 \end_inset
18026
18027
18028 \begin_inset Flex Code
18029 status collapsed
18030
18031 \begin_layout Plain Layout
18032 tbp
18033 \end_layout
18034
18035 \end_inset
18036
18037
18038 \begin_inset Quotes erd
18039 \end_inset
18040
18041 .
18042 \end_layout
18043
18044 \begin_layout Description
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 RefPrefix
18050 \end_layout
18051
18052 \end_inset
18053
18054  [
18055 \begin_inset Flex Code
18056 status collapsed
18057
18058 \begin_layout Plain Layout
18059 string
18060 \end_layout
18061
18062 \end_inset
18063
18064 ] The prefix to use when creating labels referring to floats of this type.
18065  This allows the use of formatted references.
18066  Note that you can remove any 
18067 \begin_inset Flex Code
18068 status collapsed
18069
18070 \begin_layout Plain Layout
18071 RefPrefix
18072 \end_layout
18073
18074 \end_inset
18075
18076  set by a copied style by using the special value 
18077 \begin_inset Quotes eld
18078 \end_inset
18079
18080 OFF
18081 \begin_inset Quotes erd
18082 \end_inset
18083
18084 , which must be all caps.
18085 \end_layout
18086
18087 \begin_layout Description
18088 \begin_inset Flex Code
18089 status collapsed
18090
18091 \begin_layout Plain Layout
18092 Style
18093 \end_layout
18094
18095 \end_inset
18096
18097  [
18098 \begin_inset Flex Code
18099 status collapsed
18100
18101 \begin_layout Plain Layout
18102 string
18103 \end_layout
18104
18105 \end_inset
18106
18107 =
18108 \begin_inset Quotes erd
18109 \end_inset
18110
18111
18112 \begin_inset Quotes erd
18113 \end_inset
18114
18115 ] The style used when defining the float using 
18116 \begin_inset Flex Code
18117 status collapsed
18118
18119 \begin_layout Plain Layout
18120
18121 \backslash
18122 newfloat
18123 \end_layout
18124
18125 \end_inset
18126
18127 .
18128 \end_layout
18129
18130 \begin_layout Description
18131 \begin_inset Flex Code
18132 status collapsed
18133
18134 \begin_layout Plain Layout
18135 Type
18136 \end_layout
18137
18138 \end_inset
18139
18140  [
18141 \begin_inset Flex Code
18142 status collapsed
18143
18144 \begin_layout Plain Layout
18145 string
18146 \end_layout
18147
18148 \end_inset
18149
18150 =
18151 \begin_inset Quotes erd
18152 \end_inset
18153
18154
18155 \begin_inset Quotes erd
18156 \end_inset
18157
18158 ] The 
18159 \begin_inset Quotes eld
18160 \end_inset
18161
18162 type
18163 \begin_inset Quotes erd
18164 \end_inset
18165
18166  of the new class of floats, like program or algorithm.
18167  After the appropriate 
18168 \begin_inset Flex Code
18169 status collapsed
18170
18171 \begin_layout Plain Layout
18172
18173 \backslash
18174 newfloat
18175 \end_layout
18176
18177 \end_inset
18178
18179 , commands such as 
18180 \begin_inset Flex Code
18181 status collapsed
18182
18183 \begin_layout Plain Layout
18184
18185 \backslash
18186 begin{program}
18187 \end_layout
18188
18189 \end_inset
18190
18191  or 
18192 \begin_inset Flex Code
18193 status collapsed
18194
18195 \begin_layout Plain Layout
18196
18197 \backslash
18198 end{algorithm*}
18199 \end_layout
18200
18201 \end_inset
18202
18203  will be available.
18204 \end_layout
18205
18206 \begin_layout Description
18207 \begin_inset Flex Code
18208 status collapsed
18209
18210 \begin_layout Plain Layout
18211 UsesFloatPkg
18212 \end_layout
18213
18214 \end_inset
18215
18216  [
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 0
18222 \end_layout
18223
18224 \end_inset
18225
18226 ,
18227 \begin_inset space \thinspace{}
18228 \end_inset
18229
18230
18231 \begin_inset Flex Code
18232 status collapsed
18233
18234 \begin_layout Plain Layout
18235
18236 \emph on
18237 1
18238 \end_layout
18239
18240 \end_inset
18241
18242 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18243  package 
18244 \begin_inset Flex Code
18245 status collapsed
18246
18247 \begin_layout Plain Layout
18248 float
18249 \end_layout
18250
18251 \end_inset
18252
18253 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18254  itself.
18255 \end_layout
18256
18257 \begin_layout Standard
18258 Note that defining a float with type 
18259 \begin_inset Flex Code
18260 status collapsed
18261
18262 \begin_layout Plain Layout
18263
18264 \emph on
18265 type
18266 \end_layout
18267
18268 \end_inset
18269
18270  automatically defines the corresponding counter with name 
18271 \begin_inset Flex Code
18272 status collapsed
18273
18274 \begin_layout Plain Layout
18275
18276 \emph on
18277 type
18278 \end_layout
18279
18280 \end_inset
18281
18282 .
18283 \end_layout
18284
18285 \begin_layout Subsection
18286 Flex insets and InsetLayout
18287 \begin_inset CommandInset label
18288 LatexCommand label
18289 name "subsec:Flex-insets-and"
18290
18291 \end_inset
18292
18293
18294 \end_layout
18295
18296 \begin_layout Standard
18297 Flex insets come in three different kinds: 
18298 \end_layout
18299
18300 \begin_layout Itemize
18301 character style (
18302 \begin_inset Flex Code
18303 status collapsed
18304
18305 \begin_layout Plain Layout
18306 CharStyle
18307 \end_layout
18308
18309 \end_inset
18310
18311 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18312  commands as 
18313 \begin_inset Flex Code
18314 status collapsed
18315
18316 \begin_layout Plain Layout
18317
18318 \backslash
18319 noun
18320 \end_layout
18321
18322 \end_inset
18323
18324  and 
18325 \begin_inset Flex Code
18326 status collapsed
18327
18328 \begin_layout Plain Layout
18329
18330 \backslash
18331 code
18332 \end_layout
18333
18334 \end_inset
18335
18336 .
18337 \end_layout
18338
18339 \begin_layout Itemize
18340 user custom (
18341 \begin_inset Flex Code
18342 status collapsed
18343
18344 \begin_layout Plain Layout
18345 Custom
18346 \end_layout
18347
18348 \end_inset
18349
18350 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18351  code,
18352  footnote, and the like.
18353  An obvious example is an endnote inset, which is defined in the 
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358 endnote
18359 \end_layout
18360
18361 \end_inset
18362
18363  module.
18364 \end_layout
18365
18366 \begin_layout Itemize
18367 XML elements (
18368 \begin_inset Flex Code
18369 status collapsed
18370
18371 \begin_layout Plain Layout
18372 Element
18373 \end_layout
18374
18375 \end_inset
18376
18377 ): For use with DocBook classes.
18378 \end_layout
18379
18380 \begin_layout Standard
18381 Flex insets are defined using the 
18382 \begin_inset Flex Code
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386 InsetLayout
18387 \end_layout
18388
18389 \end_inset
18390
18391  tag, which shall be explained in a moment.
18392 \end_layout
18393
18394 \begin_layout Standard
18395 The 
18396 \begin_inset Flex Code
18397 status collapsed
18398
18399 \begin_layout Plain Layout
18400 InsetLayout
18401 \end_layout
18402
18403 \end_inset
18404
18405  tag also serves another function: It can be used to customize the general
18406  layout of many different types of insets.
18407  Currently, 
18408 \begin_inset Flex Code
18409 status collapsed
18410
18411 \begin_layout Plain Layout
18412 InsetLayout
18413 \end_layout
18414
18415 \end_inset
18416
18417  can be used to customize the layout parameters for footnotes, marginal
18418  notes, note insets, \SpecialChar TeX
18419  code (ERT) insets, branches, listings, indexes, boxes,
18420  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18421 \end_layout
18422
18423 \begin_layout Standard
18424 The 
18425 \begin_inset Flex Code
18426 status collapsed
18427
18428 \begin_layout Plain Layout
18429 InsetLayout
18430 \end_layout
18431
18432 \end_inset
18433
18434  definition must begin with a line of the form:
18435 \end_layout
18436
18437 \begin_layout LyX-Code
18438 InsetLayout <type>
18439 \end_layout
18440
18441 \begin_layout Standard
18442 Here 
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447 <Type>
18448 \end_layout
18449
18450 \end_inset
18451
18452  indicates the inset whose layout is being defined, and here there are four
18453  cases.
18454 \end_layout
18455
18456 \begin_layout Enumerate
18457 The layout for a pre-existing inset is being modified.
18458  In this case, can be 
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463 <Type>
18464 \end_layout
18465
18466 \end_inset
18467
18468  any one of the following: 
18469 \begin_inset Flex Code
18470 status collapsed
18471
18472 \begin_layout Plain Layout
18473 Algorithm
18474 \end_layout
18475
18476 \end_inset
18477
18478
18479 \begin_inset Flex Code
18480 status collapsed
18481
18482 \begin_layout Plain Layout
18483 Branch
18484 \end_layout
18485
18486 \end_inset
18487
18488
18489 \begin_inset Flex Code
18490 status collapsed
18491
18492 \begin_layout Plain Layout
18493 Box
18494 \end_layout
18495
18496 \end_inset
18497
18498
18499 \begin_inset Flex Code
18500 status collapsed
18501
18502 \begin_layout Plain Layout
18503 Box:shaded
18504 \end_layout
18505
18506 \end_inset
18507
18508
18509 \begin_inset Flex Code
18510 status collapsed
18511
18512 \begin_layout Plain Layout
18513 Caption:Standard
18514 \end_layout
18515
18516 \end_inset
18517
18518
18519 \begin_inset Flex Code
18520 status collapsed
18521
18522 \begin_layout Plain Layout
18523 ERT
18524 \end_layout
18525
18526 \end_inset
18527
18528
18529 \begin_inset Flex Code
18530 status collapsed
18531
18532 \begin_layout Plain Layout
18533 Figure
18534 \end_layout
18535
18536 \end_inset
18537
18538
18539 \begin_inset Flex Code
18540 status collapsed
18541
18542 \begin_layout Plain Layout
18543 Foot
18544 \end_layout
18545
18546 \end_inset
18547
18548
18549 \begin_inset Flex Code
18550 status collapsed
18551
18552 \begin_layout Plain Layout
18553 Index
18554 \end_layout
18555
18556 \end_inset
18557
18558
18559 \begin_inset Flex Code
18560 status collapsed
18561
18562 \begin_layout Plain Layout
18563 Info
18564 \end_layout
18565
18566 \end_inset
18567
18568
18569 \begin_inset Flex Code
18570 status collapsed
18571
18572 \begin_layout Plain Layout
18573 Info:menu
18574 \end_layout
18575
18576 \end_inset
18577
18578
18579 \begin_inset Flex Code
18580 status collapsed
18581
18582 \begin_layout Plain Layout
18583 Info:shortcut
18584 \end_layout
18585
18586 \end_inset
18587
18588
18589 \begin_inset Flex Code
18590 status collapsed
18591
18592 \begin_layout Plain Layout
18593 Info:shortcuts
18594 \end_layout
18595
18596 \end_inset
18597
18598
18599 \begin_inset Flex Code
18600 status collapsed
18601
18602 \begin_layout Plain Layout
18603 Listings
18604 \end_layout
18605
18606 \end_inset
18607
18608
18609 \begin_inset Flex Code
18610 status collapsed
18611
18612 \begin_layout Plain Layout
18613 Marginal
18614 \end_layout
18615
18616 \end_inset
18617
18618
18619 \begin_inset Flex Code
18620 status collapsed
18621
18622 \begin_layout Plain Layout
18623 Note:Comment
18624 \end_layout
18625
18626 \end_inset
18627
18628
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 Note:Note
18634 \end_layout
18635
18636 \end_inset
18637
18638
18639 \begin_inset Flex Code
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643 Note:Greyedout
18644 \end_layout
18645
18646 \end_inset
18647
18648
18649 \begin_inset Flex Code
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653 Table
18654 \end_layout
18655
18656 \end_inset
18657
18658 , or 
18659 \begin_inset Flex Code
18660 status collapsed
18661
18662 \begin_layout Plain Layout
18663 URL
18664 \end_layout
18665
18666 \end_inset
18667
18668 .
18669 \end_layout
18670
18671 \begin_layout Enumerate
18672 The layout for a Flex inset is being defined.
18673  In this case, 
18674 \begin_inset Flex Code
18675 status collapsed
18676
18677 \begin_layout Plain Layout
18678 <Type>
18679 \end_layout
18680
18681 \end_inset
18682
18683  must be of the form 
18684 \begin_inset Quotes eld
18685 \end_inset
18686
18687
18688 \begin_inset Flex Code
18689 status collapsed
18690
18691 \begin_layout Plain Layout
18692 Flex:<name>
18693 \end_layout
18694
18695 \end_inset
18696
18697
18698 \begin_inset Quotes erd
18699 \end_inset
18700
18701 , where 
18702 \begin_inset Flex Code
18703 status collapsed
18704
18705 \begin_layout Plain Layout
18706 name
18707 \end_layout
18708
18709 \end_inset
18710
18711  may be be any valid identifier not used by a pre-existing Flex inset.
18712  The identifier may include spaces, but in that case the whole thing must
18713  be wrapped in quotes.
18714  Note that the definition of a flex inset 
18715 \emph on
18716 must 
18717 \emph default
18718 also include a 
18719 \begin_inset Flex Code
18720 status collapsed
18721
18722 \begin_layout Plain Layout
18723 LyXType
18724 \end_layout
18725
18726 \end_inset
18727
18728  entry, declaring which type of inset it defines.
18729 \end_layout
18730
18731 \begin_layout Enumerate
18732 The layout for user specific branch is being defined.
18733  In this case, 
18734 \begin_inset Flex Code
18735 status collapsed
18736
18737 \begin_layout Plain Layout
18738 <Type>
18739 \end_layout
18740
18741 \end_inset
18742
18743  must be of the form 
18744 \begin_inset Quotes eld
18745 \end_inset
18746
18747
18748 \begin_inset Flex Code
18749 status collapsed
18750
18751 \begin_layout Plain Layout
18752 Branch:<name>
18753 \end_layout
18754
18755 \end_inset
18756
18757
18758 \begin_inset Quotes erd
18759 \end_inset
18760
18761 , where 
18762 \begin_inset Flex Code
18763 status collapsed
18764
18765 \begin_layout Plain Layout
18766 name
18767 \end_layout
18768
18769 \end_inset
18770
18771  may be be any valid identifier of branch defined in user's document.
18772  The identifier may include spaces, but in that case the whole thing must
18773  be wrapped in quotes.
18774  The main purpose of this feature is to allow \SpecialChar LaTeX
18775  wrapping around specific
18776  branches as user needs.
18777 \end_layout
18778
18779 \begin_layout Enumerate
18780 The layout of a user (or class) specific caption is being defined.
18781  In this case, 
18782 \begin_inset Flex Code
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786 <Type>
18787 \end_layout
18788
18789 \end_inset
18790
18791  must be of the form 
18792 \begin_inset Quotes eld
18793 \end_inset
18794
18795
18796 \begin_inset Flex Code
18797 status collapsed
18798
18799 \begin_layout Plain Layout
18800 Caption:<name>
18801 \end_layout
18802
18803 \end_inset
18804
18805
18806 \begin_inset Quotes erd
18807 \end_inset
18808
18809 , where 
18810 \begin_inset Flex Code
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814 name
18815 \end_layout
18816
18817 \end_inset
18818
18819  specifies the name of the caption as it appears in the menu.
18820  Have a look at the standard caption (
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 Caption:Standard
18826 \end_layout
18827
18828 \end_inset
18829
18830 ), the specific captions of the KOMA-Script classes (
18831 \begin_inset Flex Code
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835 Caption:Above
18836 \end_layout
18837
18838 \end_inset
18839
18840
18841 \begin_inset Flex Code
18842 status collapsed
18843
18844 \begin_layout Plain Layout
18845 Caption:Below
18846 \end_layout
18847
18848 \end_inset
18849
18850 ) or the module 
18851 \family sans
18852 Multilingual
18853 \begin_inset space ~
18854 \end_inset
18855
18856 Captions
18857 \begin_inset Newline linebreak
18858 \end_inset
18859
18860
18861 \family default
18862 (
18863 \begin_inset Flex Code
18864 status collapsed
18865
18866 \begin_layout Plain Layout
18867 Caption:Bicaption
18868 \end_layout
18869
18870 \end_inset
18871
18872 ) for applications.
18873 \end_layout
18874
18875 \begin_layout Standard
18876 The 
18877 \begin_inset Flex Code
18878 status collapsed
18879
18880 \begin_layout Plain Layout
18881 InsetLayout
18882 \end_layout
18883
18884 \end_inset
18885
18886  definition can contain the following entries:
18887 \end_layout
18888
18889 \begin_layout Description
18890 \begin_inset Flex Code
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894 AddToToc
18895 \end_layout
18896
18897 \end_inset
18898
18899  [
18900 \begin_inset Flex Code
18901 status collapsed
18902
18903 \begin_layout Plain Layout
18904 string
18905 \end_layout
18906
18907 \end_inset
18908
18909 =""] This inset will appear in the table of contents of the given type.
18910  An empty string disables.
18911  See also the OutlinerName and the IsTocCaption commands.
18912  This is only implemented for Flex insets.
18913  Default: disabled.
18914 \end_layout
18915
18916 \begin_layout Description
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 Argument
18922 \end_layout
18923
18924 \end_inset
18925
18926  [
18927 \begin_inset Flex Code
18928 status collapsed
18929
18930 \begin_layout Plain Layout
18931 int
18932 \end_layout
18933
18934 \end_inset
18935
18936 ] Defines argument number of a command\SpecialChar breakableslash
18937 environment associated with the current
18938  layout.
18939  The definition must end with 
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 EndArgument
18945 \end_layout
18946
18947 \end_inset
18948
18949 .
18950  See 
18951 \begin_inset CommandInset ref
18952 LatexCommand ref
18953 reference "subsec:Paragraph-Styles"
18954
18955 \end_inset
18956
18957  for details.
18958 \end_layout
18959
18960 \begin_layout Description
18961 \begin_inset Flex Code
18962 status collapsed
18963
18964 \begin_layout Plain Layout
18965 BabelPreamble
18966 \end_layout
18967
18968 \end_inset
18969
18970  Preamble for changing language commands; see 
18971 \begin_inset CommandInset ref
18972 LatexCommand ref
18973 reference "subsec:I18n"
18974
18975 \end_inset
18976
18977 .
18978 \end_layout
18979
18980 \begin_layout Description
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 BgColor
18986 \end_layout
18987
18988 \end_inset
18989
18990  [
18991 \begin_inset Flex Code
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 <name>
18996 \end_layout
18997
18998 \end_inset
18999
19000 ] The color for the inset's background.
19001  See 
19002 \begin_inset CommandInset ref
19003 LatexCommand ref
19004 reference "chap:Names-of-colors"
19005
19006 \end_inset
19007
19008  for a list of the available color names.
19009 \end_layout
19010
19011 \begin_layout Description
19012 \begin_inset Flex Code
19013 status collapsed
19014
19015 \begin_layout Plain Layout
19016 ContentAsLabel
19017 \end_layout
19018
19019 \end_inset
19020
19021  [
19022 \begin_inset Flex Code
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026
19027 \emph on
19028 0
19029 \end_layout
19030
19031 \end_inset
19032
19033 ,
19034 \begin_inset space \thinspace{}
19035 \end_inset
19036
19037
19038 \begin_inset Flex Code
19039 status collapsed
19040
19041 \begin_layout Plain Layout
19042 1
19043 \end_layout
19044
19045 \end_inset
19046
19047 ] Whether to use the content of the inset as the label, when the inset is
19048  closed.
19049  Default is false.
19050 \end_layout
19051
19052 \begin_layout Description
19053 \begin_inset Flex Code
19054 status collapsed
19055
19056 \begin_layout Plain Layout
19057 CopyStyle
19058 \end_layout
19059
19060 \end_inset
19061
19062  [
19063 \begin_inset Flex Code
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067 <type>
19068 \end_layout
19069
19070 \end_inset
19071
19072 ] As with paragraph styles, see 
19073 \begin_inset CommandInset ref
19074 LatexCommand ref
19075 reference "subsec:Paragraph-Styles"
19076
19077 \end_inset
19078
19079 .
19080  Note that you need to specify the complete type, e.
19081 \begin_inset space \thinspace{}
19082 \end_inset
19083
19084 g.
19085 \begin_inset space ~
19086 \end_inset
19087
19088
19089 \begin_inset Flex Code
19090 status collapsed
19091
19092 \begin_layout Plain Layout
19093 CopyStyle Flex:<name>
19094 \end_layout
19095
19096 \end_inset
19097
19098 .
19099 \end_layout
19100
19101 \begin_layout Description
19102 \begin_inset Flex Code
19103 status collapsed
19104
19105 \begin_layout Plain Layout
19106 CustomPars
19107 \end_layout
19108
19109 \end_inset
19110
19111  [
19112 \begin_inset Flex Code
19113 status collapsed
19114
19115 \begin_layout Plain Layout
19116
19117 \emph on
19118 0
19119 \end_layout
19120
19121 \end_inset
19122
19123 ,
19124 \begin_inset space \thinspace{}
19125 \end_inset
19126
19127
19128 \begin_inset Flex Code
19129 status collapsed
19130
19131 \begin_layout Plain Layout
19132 1
19133 \end_layout
19134
19135 \end_inset
19136
19137 ] Indicates whether the user may employ the Paragraph Settings dialog to
19138  customize the paragraph.
19139 \end_layout
19140
19141 \begin_layout Description
19142 \begin_inset Flex Code
19143 status collapsed
19144
19145 \begin_layout Plain Layout
19146 Decoration
19147 \end_layout
19148
19149 \end_inset
19150
19151  can be 
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156 Classic
19157 \end_layout
19158
19159 \end_inset
19160
19161
19162 \begin_inset Flex Code
19163 status collapsed
19164
19165 \begin_layout Plain Layout
19166 Minimalistic
19167 \end_layout
19168
19169 \end_inset
19170
19171 , or 
19172 \begin_inset Flex Code
19173 status collapsed
19174
19175 \begin_layout Plain Layout
19176 Conglomerate
19177 \end_layout
19178
19179 \end_inset
19180
19181 , describing the rendering style used for the inset's frame and buttons.
19182  Footnotes generally use 
19183 \begin_inset Flex Code
19184 status collapsed
19185
19186 \begin_layout Plain Layout
19187 Classic
19188 \end_layout
19189
19190 \end_inset
19191
19192 , ERT insets generally 
19193 \begin_inset Flex Code
19194 status collapsed
19195
19196 \begin_layout Plain Layout
19197 Minimalistic
19198 \end_layout
19199
19200 \end_inset
19201
19202 , and character styles 
19203 \begin_inset Flex Code
19204 status collapsed
19205
19206 \begin_layout Plain Layout
19207 Conglomerate
19208 \end_layout
19209
19210 \end_inset
19211
19212 .
19213 \end_layout
19214
19215 \begin_layout Description
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 Display
19221 \end_layout
19222
19223 \end_inset
19224
19225  [
19226 \begin_inset Flex Code
19227 status collapsed
19228
19229 \begin_layout Plain Layout
19230 0
19231 \end_layout
19232
19233 \end_inset
19234
19235 ,
19236 \emph on
19237
19238 \begin_inset space \thinspace{}
19239 \end_inset
19240
19241
19242 \emph default
19243
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248
19249 \emph on
19250 1
19251 \end_layout
19252
19253 \end_inset
19254
19255 ] Only useful if 
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 LatexType
19261 \end_layout
19262
19263 \end_inset
19264
19265  is 
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 Environment
19271 \end_layout
19272
19273 \end_inset
19274
19275 .
19276  Indicates whether the environment will stand on its own in the output or
19277  will appear inline with the surrounding text.
19278  If set to false, it is supposed that the \SpecialChar LaTeX
19279  environment ignores white space
19280  (including one newline character) after the 
19281 \begin_inset Flex Code
19282 status collapsed
19283
19284 \begin_layout Plain Layout
19285
19286 \backslash
19287 begin{
19288 \emph on
19289 LatexName
19290 \emph default
19291 }
19292 \end_layout
19293
19294 \end_inset
19295
19296  and 
19297 \begin_inset Flex Code
19298 status collapsed
19299
19300 \begin_layout Plain Layout
19301
19302 \backslash
19303 end{
19304 \emph on
19305 LatexName
19306 \emph default
19307 }
19308 \end_layout
19309
19310 \end_inset
19311
19312  tags.
19313  Default is true.
19314 \change_inserted 731793113 1538674858
19315
19316 \end_layout
19317
19318 \begin_layout Description
19319
19320 \change_inserted 731793113 1538674891
19321 \begin_inset Flex Code
19322 status open
19323
19324 \begin_layout Plain Layout
19325
19326 \change_inserted 731793113 1538674863
19327 EditExternal
19328 \change_unchanged
19329
19330 \end_layout
19331
19332 \end_inset
19333
19334  [
19335 \emph on
19336 0
19337 \emph default
19338 ,1] Allow the contents of the inset to be edited externally (using whatever
19339  editor is defined for the document's output format).
19340 \change_unchanged
19341
19342 \end_layout
19343
19344 \begin_layout Description
19345 \begin_inset Flex Code
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349 End
19350 \end_layout
19351
19352 \end_inset
19353
19354  Required at the end of the 
19355 \begin_inset Flex Code
19356 status collapsed
19357
19358 \begin_layout Plain Layout
19359 InsetLayout
19360 \end_layout
19361
19362 \end_inset
19363
19364  declarations.
19365 \end_layout
19366
19367 \begin_layout Description
19368 \begin_inset Flex Code
19369 status collapsed
19370
19371 \begin_layout Plain Layout
19372 Font
19373 \end_layout
19374
19375 \end_inset
19376
19377  The font used for both the text body 
19378 \emph on
19379 and
19380 \emph default
19381  the label.
19382  See 
19383 \begin_inset CommandInset ref
19384 LatexCommand ref
19385 reference "subsec:Font-description"
19386
19387 \end_inset
19388
19389 .
19390  Note that defining this font automatically defines the 
19391 \begin_inset Flex Code
19392 status collapsed
19393
19394 \begin_layout Plain Layout
19395 LabelFont
19396 \end_layout
19397
19398 \end_inset
19399
19400  to the same value, so define this first and define 
19401 \begin_inset Flex Code
19402 status collapsed
19403
19404 \begin_layout Plain Layout
19405 LabelFont
19406 \end_layout
19407
19408 \end_inset
19409
19410  later if you want them to be different.
19411 \end_layout
19412
19413 \begin_layout Description
19414 \begin_inset Flex Code
19415 status collapsed
19416
19417 \begin_layout Plain Layout
19418 FixedWidthPreambleEncoding
19419 \end_layout
19420
19421 \end_inset
19422
19423  [
19424 \begin_inset Flex Code
19425 status collapsed
19426
19427 \begin_layout Plain Layout
19428
19429 \emph on
19430 0
19431 \end_layout
19432
19433 \end_inset
19434
19435 ,
19436 \begin_inset space \thinspace{}
19437 \end_inset
19438
19439
19440 \begin_inset Flex Code
19441 status collapsed
19442
19443 \begin_layout Plain Layout
19444 1
19445 \end_layout
19446
19447 \end_inset
19448
19449 ] Force a fixed width encoding for the translated contents of 
19450 \begin_inset Flex Code
19451 status collapsed
19452
19453 \begin_layout Plain Layout
19454 BabelPreamble
19455 \end_layout
19456
19457 \end_inset
19458
19459  and 
19460 \begin_inset Flex Code
19461 status collapsed
19462
19463 \begin_layout Plain Layout
19464 LangPreamble
19465 \end_layout
19466
19467 \end_inset
19468
19469  code generated by this layout.
19470  This is needed for special \SpecialChar LaTeX
19471 -packages like 
19472 \family typewriter
19473 listings
19474 \family default
19475  that do not work with variable width encodings such as 
19476 \family sans
19477 utf8
19478 \family default
19479 .
19480  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19481  backends such as Xe\SpecialChar TeX
19482  or
19483  Lua\SpecialChar TeX
19484  are used.
19485 \end_layout
19486
19487 \begin_layout Description
19488 \begin_inset Flex Code
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492 ForceLocalFontSwitch
19493 \end_layout
19494
19495 \end_inset
19496
19497  [
19498 \begin_inset Flex Code
19499 status collapsed
19500
19501 \begin_layout Plain Layout
19502
19503 \emph on
19504 0
19505 \end_layout
19506
19507 \end_inset
19508
19509 ,
19510 \begin_inset space \thinspace{}
19511 \end_inset
19512
19513
19514 \begin_inset Flex Code
19515 status collapsed
19516
19517 \begin_layout Plain Layout
19518 1
19519 \end_layout
19520
19521 \end_inset
19522
19523 ] When using babel, always use a local font switch (
19524 \begin_inset Flex Code
19525 status collapsed
19526
19527 \begin_layout Plain Layout
19528
19529 \backslash
19530 foreignlanguage
19531 \end_layout
19532
19533 \end_inset
19534
19535 ), never a global one (such as 
19536 \begin_inset Flex Code
19537 status collapsed
19538
19539 \begin_layout Plain Layout
19540
19541 \backslash
19542 selectlanguage
19543 \end_layout
19544
19545 \end_inset
19546
19547 ).
19548 \end_layout
19549
19550 \begin_layout Description
19551 \begin_inset Flex Code
19552 status collapsed
19553
19554 \begin_layout Plain Layout
19555 ForceLTR
19556 \end_layout
19557
19558 \end_inset
19559
19560  [
19561 \begin_inset Flex Code
19562 status collapsed
19563
19564 \begin_layout Plain Layout
19565
19566 \emph on
19567 0
19568 \end_layout
19569
19570 \end_inset
19571
19572 ,
19573 \begin_inset space \thinspace{}
19574 \end_inset
19575
19576
19577 \begin_inset Flex Code
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 1
19582 \end_layout
19583
19584 \end_inset
19585
19586 ] Force the 
19587 \begin_inset Quotes eld
19588 \end_inset
19589
19590 latex
19591 \begin_inset Quotes erd
19592 \end_inset
19593
19594  language, leading to Left-to-Right (Latin) output, e.
19595 \begin_inset space \thinspace{}
19596 \end_inset
19597
19598 g.
19599 \begin_inset space \space{}
19600 \end_inset
19601
19602 in \SpecialChar TeX
19603  code or URL.
19604  A kludge.
19605 \end_layout
19606
19607 \begin_layout Description
19608 \begin_inset Flex Code
19609 status collapsed
19610
19611 \begin_layout Plain Layout
19612 ForceOwnlines
19613 \end_layout
19614
19615 \end_inset
19616
19617  [
19618 \begin_inset Flex Code
19619 status collapsed
19620
19621 \begin_layout Plain Layout
19622
19623 \emph on
19624 0
19625 \end_layout
19626
19627 \end_inset
19628
19629 ,
19630 \begin_inset space \thinspace{}
19631 \end_inset
19632
19633
19634 \begin_inset Flex Code
19635 status collapsed
19636
19637 \begin_layout Plain Layout
19638 1
19639 \end_layout
19640
19641 \end_inset
19642
19643 ] Force a a line break in the \SpecialChar LaTeX
19644  output before the inset starts and after
19645  the inset ends.
19646  This assures the inset itself is output on its own lines, for parsing purposes.
19647 \end_layout
19648
19649 \begin_layout Description
19650 \begin_inset Flex Code
19651 status collapsed
19652
19653 \begin_layout Plain Layout
19654 ForcePlain
19655 \end_layout
19656
19657 \end_inset
19658
19659  [
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664
19665 \emph on
19666 0
19667 \end_layout
19668
19669 \end_inset
19670
19671 ,
19672 \begin_inset space \thinspace{}
19673 \end_inset
19674
19675
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 1
19681 \end_layout
19682
19683 \end_inset
19684
19685 ] Indicates whether the 
19686 \begin_inset Flex Code
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690 PlainLayout
19691 \end_layout
19692
19693 \end_inset
19694
19695  should be used or, instead, the user can change the paragraph style used
19696  in the inset.
19697  Default is false.
19698 \end_layout
19699
19700 \begin_layout Description
19701 \begin_inset Flex Code
19702 status collapsed
19703
19704 \begin_layout Plain Layout
19705 FreeSpacing
19706 \end_layout
19707
19708 \end_inset
19709
19710  [
19711 \begin_inset Flex Code
19712 status collapsed
19713
19714 \begin_layout Plain Layout
19715
19716 \emph on
19717 0
19718 \end_layout
19719
19720 \end_inset
19721
19722 ,
19723 \begin_inset space \thinspace{}
19724 \end_inset
19725
19726
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731 1
19732 \end_layout
19733
19734 \end_inset
19735
19736 ] As with paragraph styles, see 
19737 \begin_inset CommandInset ref
19738 LatexCommand ref
19739 reference "subsec:Paragraph-Styles"
19740
19741 \end_inset
19742
19743 .
19744 \end_layout
19745
19746 \begin_layout Description
19747 \begin_inset Flex Code
19748 status collapsed
19749
19750 \begin_layout Plain Layout
19751 HTML*
19752 \end_layout
19753
19754 \end_inset
19755
19756  These tags control the XHTML output.
19757  See 
19758 \begin_inset CommandInset ref
19759 LatexCommand ref
19760 reference "sec:Tags-for-XHTML"
19761
19762 \end_inset
19763
19764 .
19765 \end_layout
19766
19767 \begin_layout Description
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 InToc
19773 \end_layout
19774
19775 \end_inset
19776
19777  [
19778 \begin_inset Flex Code
19779 status collapsed
19780
19781 \begin_layout Plain Layout
19782
19783 \emph on
19784 0
19785 \end_layout
19786
19787 \end_inset
19788
19789 ,
19790 \begin_inset space \thinspace{}
19791 \end_inset
19792
19793
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 1
19799 \end_layout
19800
19801 \end_inset
19802
19803 ] Whether to include the contents of this inset in the strings generated
19804  for the `Outline' pane for all table of contents, regardless of the AddToToc
19805  setting.
19806  One would not, for example, want the content of a footnote in a section
19807  header to be included in the TOC displayed in the outline, but one would
19808  normally want the content of a character style displayed.
19809  Default is false: not to include.
19810 \end_layout
19811
19812 \begin_layout Description
19813 \begin_inset Flex Code
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 IsTocCaption
19818 \end_layout
19819
19820 \end_inset
19821
19822  [
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827
19828 \emph on
19829 0
19830 \end_layout
19831
19832 \end_inset
19833
19834 ,
19835 \begin_inset space \thinspace{}
19836 \end_inset
19837
19838
19839 \begin_inset Flex Code
19840 status collapsed
19841
19842 \begin_layout Plain Layout
19843 1
19844 \end_layout
19845
19846 \end_inset
19847
19848 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19849  of its contents in its item in the table of contents.
19850  Otherwise, only the label appears.
19851 \end_layout
19852
19853 \begin_layout Description
19854 \begin_inset Flex Code
19855 status collapsed
19856
19857 \begin_layout Plain Layout
19858 KeepEmpty
19859 \end_layout
19860
19861 \end_inset
19862
19863  [
19864 \emph on
19865
19866 \begin_inset Flex Code
19867 status collapsed
19868
19869 \begin_layout Plain Layout
19870 0
19871 \end_layout
19872
19873 \end_inset
19874
19875
19876 \emph default
19877 ,
19878 \begin_inset space \thinspace{}
19879 \end_inset
19880
19881
19882 \begin_inset Flex Code
19883 status collapsed
19884
19885 \begin_layout Plain Layout
19886 1
19887 \end_layout
19888
19889 \end_inset
19890
19891 ] As with paragraph styles, see 
19892 \begin_inset CommandInset ref
19893 LatexCommand ref
19894 reference "subsec:Paragraph-Styles"
19895
19896 \end_inset
19897
19898 .
19899 \end_layout
19900
19901 \begin_layout Description
19902 \begin_inset Flex Code
19903 status collapsed
19904
19905 \begin_layout Plain Layout
19906 LabelFont
19907 \end_layout
19908
19909 \end_inset
19910
19911  The font used for the label.
19912  See 
19913 \begin_inset CommandInset ref
19914 LatexCommand ref
19915 reference "subsec:Font-description"
19916
19917 \end_inset
19918
19919 .
19920  Note that this definition can never appear before 
19921 \begin_inset Flex Code
19922 status collapsed
19923
19924 \begin_layout Plain Layout
19925 Font
19926 \end_layout
19927
19928 \end_inset
19929
19930 , lest it be ineffective.
19931 \end_layout
19932
19933 \begin_layout Description
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 LabelString
19939 \end_layout
19940
19941 \end_inset
19942
19943  [
19944 \begin_inset Flex Code
19945 status collapsed
19946
19947 \begin_layout Plain Layout
19948 string
19949 \end_layout
19950
19951 \end_inset
19952
19953 =
19954 \begin_inset Quotes erd
19955 \end_inset
19956
19957
19958 \begin_inset Quotes erd
19959 \end_inset
19960
19961 ] What will be displayed on the button or elsewhere as the inset label.
19962  Some inset types (
19963 \begin_inset Flex Code
19964 status collapsed
19965
19966 \begin_layout Plain Layout
19967 \SpecialChar TeX
19968  code
19969 \end_layout
19970
19971 \end_inset
19972
19973  and 
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978 Branch
19979 \end_layout
19980
19981 \end_inset
19982
19983 ) modify this label on the fly.
19984 \end_layout
19985
19986 \begin_layout Description
19987 \begin_inset Flex Code
19988 status collapsed
19989
19990 \begin_layout Plain Layout
19991 LangPreamble
19992 \end_layout
19993
19994 \end_inset
19995
19996  Language dependent preamble; see 
19997 \begin_inset CommandInset ref
19998 LatexCommand ref
19999 reference "subsec:I18n"
20000
20001 \end_inset
20002
20003 .
20004 \end_layout
20005
20006 \begin_layout Description
20007 \begin_inset Flex Code
20008 status collapsed
20009
20010 \begin_layout Plain Layout
20011 LatexName
20012 \end_layout
20013
20014 \end_inset
20015
20016  [
20017 \begin_inset Flex Code
20018 status collapsed
20019
20020 \begin_layout Plain Layout
20021 <name>
20022 \end_layout
20023
20024 \end_inset
20025
20026 ] The name of the corresponding \SpecialChar LaTeX
20027  stuff.
20028  Either the environment or command name.
20029 \end_layout
20030
20031 \begin_layout Description
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 LatexParam
20037 \end_layout
20038
20039 \end_inset
20040
20041  [
20042 \begin_inset Flex Code
20043 status collapsed
20044
20045 \begin_layout Plain Layout
20046 <parameter>
20047 \end_layout
20048
20049 \end_inset
20050
20051 ] The optional parameter for the corresponding 
20052 \begin_inset Flex Code
20053 status collapsed
20054
20055 \begin_layout Plain Layout
20056 LatexName
20057 \end_layout
20058
20059 \end_inset
20060
20061  stuff, including possible bracket pairs like 
20062 \begin_inset Flex Code
20063 status collapsed
20064
20065 \begin_layout Plain Layout
20066 []
20067 \end_layout
20068
20069 \end_inset
20070
20071 .
20072  This parameter cannot be changed from within \SpecialChar LyX
20073  (use 
20074 \begin_inset Flex Code
20075 status collapsed
20076
20077 \begin_layout Plain Layout
20078 Argument
20079 \end_layout
20080
20081 \end_inset
20082
20083  for customizable parameters).
20084  It will be output as is after all \SpecialChar LaTeX
20085  
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 Argument
20091 \end_layout
20092
20093 \end_inset
20094
20095 s.
20096 \end_layout
20097
20098 \begin_layout Description
20099 \begin_inset Flex Code
20100 status collapsed
20101
20102 \begin_layout Plain Layout
20103 LatexType
20104 \end_layout
20105
20106 \end_inset
20107
20108  [
20109 \begin_inset Flex Code
20110 status collapsed
20111
20112 \begin_layout Plain Layout
20113 Command, Environment, None
20114 \end_layout
20115
20116 \end_inset
20117
20118 ] How the style should be translated into \SpecialChar LaTeX
20119 .
20120 \begin_inset Foot
20121 status collapsed
20122
20123 \begin_layout Plain Layout
20124 \begin_inset Flex Code
20125 status collapsed
20126
20127 \begin_layout Plain Layout
20128 LatexType
20129 \end_layout
20130
20131 \end_inset
20132
20133  is perhaps a bit misleading, since these rules apply to SGML classes too.
20134  Visit the SGML class files for specific examples.
20135 \end_layout
20136
20137 \end_inset
20138
20139
20140 \end_layout
20141
20142 \begin_deeper
20143 \begin_layout Description
20144 \begin_inset Flex Code
20145 status collapsed
20146
20147 \begin_layout Plain Layout
20148 None
20149 \end_layout
20150
20151 \end_inset
20152
20153  means nothing special
20154 \end_layout
20155
20156 \begin_layout Description
20157 \begin_inset Flex Code
20158 status collapsed
20159
20160 \begin_layout Plain Layout
20161 Command
20162 \end_layout
20163
20164 \end_inset
20165
20166  means 
20167 \begin_inset Flex Code
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171
20172 \backslash
20173
20174 \emph on
20175 LatexName
20176 \emph default
20177 {\SpecialChar ldots
20178 }
20179 \end_layout
20180
20181 \end_inset
20182
20183
20184 \end_layout
20185
20186 \begin_layout Description
20187 \begin_inset Flex Code
20188 status collapsed
20189
20190 \begin_layout Plain Layout
20191 Environment
20192 \end_layout
20193
20194 \end_inset
20195
20196  means 
20197 \begin_inset Flex Code
20198 status collapsed
20199
20200 \begin_layout Plain Layout
20201
20202 \backslash
20203 begin{
20204 \emph on
20205 LatexName
20206 \emph default
20207 }\SpecialChar ldots
20208
20209 \backslash
20210 end{
20211 \emph on
20212 LatexName
20213 \emph default
20214 }
20215 \end_layout
20216
20217 \end_inset
20218
20219
20220 \end_layout
20221
20222 \begin_layout Standard
20223 Putting the last few things together, the \SpecialChar LaTeX
20224  output will be either: 
20225 \end_layout
20226
20227 \begin_layout LyX-Code
20228
20229 \backslash
20230 LatexName[LatexParam]{\SpecialChar ldots
20231 }
20232 \end_layout
20233
20234 \begin_layout Standard
20235 or: 
20236 \end_layout
20237
20238 \begin_layout LyX-Code
20239
20240 \backslash
20241 begin{LatexName}[LatexParam] \SpecialChar ldots
20242  
20243 \backslash
20244 end{LatexName}
20245 \end_layout
20246
20247 \begin_layout Standard
20248 depending upon the \SpecialChar LaTeX
20249  type.
20250 \end_layout
20251
20252 \end_deeper
20253 \begin_layout Description
20254 \begin_inset Flex Code
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 LeftDelim
20259 \end_layout
20260
20261 \end_inset
20262
20263  [
20264 \begin_inset Flex Code
20265 status collapsed
20266
20267 \begin_layout Plain Layout
20268 string
20269 \end_layout
20270
20271 \end_inset
20272
20273 ] A string that is put at the beginning of the layout content.
20274  A line break in the output can be indicated by 
20275 \begin_inset Flex Code
20276 status collapsed
20277
20278 \begin_layout Plain Layout
20279 <br/>
20280 \end_layout
20281
20282 \end_inset
20283
20284 .
20285 \end_layout
20286
20287 \begin_layout Description
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 LyxType
20293 \end_layout
20294
20295 \end_inset
20296
20297  Can be 
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 charstyle
20303 \end_layout
20304
20305 \end_inset
20306
20307
20308 \begin_inset Flex Code
20309 status collapsed
20310
20311 \begin_layout Plain Layout
20312 custom
20313 \end_layout
20314
20315 \end_inset
20316
20317
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 element
20323 \end_layout
20324
20325 \end_inset
20326
20327  or 
20328 \begin_inset Flex Code
20329 status collapsed
20330
20331 \begin_layout Plain Layout
20332 end
20333 \end_layout
20334
20335 \end_inset
20336
20337  (indicating a dummy definition ending definitions of charstyles, etc).
20338  This entry is required in and is only meaningful for Flex insets.
20339  Among other things, it determines on which menu this inset will appear.
20340  Setting 
20341 \begin_inset Flex Code
20342 status collapsed
20343
20344 \begin_layout Plain Layout
20345 LyxType
20346 \end_layout
20347
20348 \end_inset
20349
20350  to 
20351 \begin_inset Flex Code
20352 status collapsed
20353
20354 \begin_layout Plain Layout
20355 charstyle
20356 \end_layout
20357
20358 \end_inset
20359
20360  will automatically set 
20361 \begin_inset Flex Code
20362 status collapsed
20363
20364 \begin_layout Plain Layout
20365 MultiPar
20366 \end_layout
20367
20368 \end_inset
20369
20370  to false and 
20371 \begin_inset Flex Code
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 ForcePlain
20376 \end_layout
20377
20378 \end_inset
20379
20380  to true.
20381  
20382 \begin_inset Flex Code
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386 MultiPar
20387 \end_layout
20388
20389 \end_inset
20390
20391  can be set to true, or 
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 ForcePlain
20397 \end_layout
20398
20399 \end_inset
20400
20401  to false, for 
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406 charstyle
20407 \end_layout
20408
20409 \end_inset
20410
20411  insets by setting it 
20412 \emph on
20413 after
20414 \emph default
20415  you set the 
20416 \begin_inset Flex Code
20417 status collapsed
20418
20419 \begin_layout Plain Layout
20420 LyxType
20421 \end_layout
20422
20423 \end_inset
20424
20425 .
20426 \change_inserted -712698321 1555575738
20427
20428 \end_layout
20429
20430 \begin_layout Description
20431
20432 \change_inserted -712698321 1555575844
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437
20438 \change_inserted -712698321 1555575740
20439 MenuString
20440 \end_layout
20441
20442 \end_inset
20443
20444  
20445 \begin_inset Flex Code
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449
20450 \change_inserted -712698321 1555575740
20451 [string]
20452 \end_layout
20453
20454 \end_inset
20455
20456  A dedicated string for the menu.
20457  You can define an accelerator by appending the respective character to
20458  the string, divided by 
20459 \begin_inset Quotes eld
20460 \end_inset
20461
20462 |
20463 \begin_inset Quotes erd
20464 \end_inset
20465
20466  (e.
20467 \begin_inset space \thinspace{}
20468 \end_inset
20469
20470 g.
20471 \begin_inset space \space{}
20472 \end_inset
20473
20474
20475 \begin_inset Quotes eld
20476 \end_inset
20477
20478
20479 \begin_inset Flex Code
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483
20484 \change_inserted -712698321 1555575781
20485 My Inset|M
20486 \end_layout
20487
20488 \end_inset
20489
20490
20491 \begin_inset Quotes erd
20492 \end_inset
20493
20494 ).
20495  This specification is optional.
20496  If it is not given the inset name as specified in the type declaration
20497  will be used instead for the menu.
20498 \change_unchanged
20499
20500 \end_layout
20501
20502 \begin_layout Description
20503 \begin_inset Flex Code
20504 status collapsed
20505
20506 \begin_layout Plain Layout
20507 MultiPar
20508 \end_layout
20509
20510 \end_inset
20511
20512  [
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517
20518 \emph on
20519 0
20520 \end_layout
20521
20522 \end_inset
20523
20524 ,
20525 \begin_inset space \thinspace{}
20526 \end_inset
20527
20528
20529 \begin_inset Flex Code
20530 status collapsed
20531
20532 \begin_layout Plain Layout
20533 1
20534 \end_layout
20535
20536 \end_inset
20537
20538 ] Whether multiple paragraphs are permitted in this inset.
20539  This will also set 
20540 \begin_inset Flex Code
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 CustomPars
20545 \end_layout
20546
20547 \end_inset
20548
20549  to the same value and 
20550 \begin_inset Flex Code
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554 ForcePlain
20555 \end_layout
20556
20557 \end_inset
20558
20559  to the opposite value.
20560  These can be reset to other values, if they are used 
20561 \emph on
20562 after
20563 \emph default
20564  
20565 \begin_inset Flex Code
20566 status collapsed
20567
20568 \begin_layout Plain Layout
20569 MultiPar
20570 \end_layout
20571
20572 \end_inset
20573
20574 .
20575  Default is true.
20576 \end_layout
20577
20578 \begin_layout Description
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 NeedProtect
20584 \end_layout
20585
20586 \end_inset
20587
20588  [
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593
20594 \emph on
20595 0
20596 \end_layout
20597
20598 \end_inset
20599
20600 ,
20601 \begin_inset space \thinspace{}
20602 \end_inset
20603
20604
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 1
20610 \end_layout
20611
20612 \end_inset
20613
20614 ] Whether fragile commands in this inset should be 
20615 \begin_inset Flex Code
20616 status collapsed
20617
20618 \begin_layout Plain Layout
20619
20620 \backslash
20621 protect
20622 \end_layout
20623
20624 \end_inset
20625
20626 'ed.
20627  (Note: This is 
20628 \emph on
20629 not
20630 \emph default
20631  whether the command should itself be protected.) Default is false.
20632 \change_inserted -712698321 1523633958
20633
20634 \end_layout
20635
20636 \begin_layout Description
20637
20638 \change_inserted -712698321 1552395786
20639 \begin_inset Flex Code
20640 status collapsed
20641
20642 \begin_layout Plain Layout
20643
20644 \change_inserted -712698321 1523633961
20645 NeedCProtect
20646 \end_layout
20647
20648 \end_inset
20649
20650  [
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655
20656 \change_inserted -712698321 1523633958
20657
20658 \emph on
20659 0
20660 \end_layout
20661
20662 \end_inset
20663
20664 ,
20665 \begin_inset space \thinspace{}
20666 \end_inset
20667
20668
20669 \begin_inset Flex Code
20670 status collapsed
20671
20672 \begin_layout Plain Layout
20673
20674 \change_inserted -712698321 1523633958
20675 1
20676 \end_layout
20677
20678 \end_inset
20679
20680 ] This causes macros that contain this inset to be protected with 
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685
20686 \change_inserted -712698321 1523634038
20687
20688 \backslash
20689 cprotect
20690 \change_unchanged
20691
20692 \end_layout
20693
20694 \end_inset
20695
20696  (cf.
20697  package 
20698 \family sans
20699 cprotect
20700 \family default
20701 ) if necessary and thus allows (some) verbatim stuff in macros.
20702  Default is false.
20703 \end_layout
20704
20705 \begin_layout Description
20706
20707 \change_inserted -712698321 1555579651
20708 \begin_inset Flex Code
20709 status collapsed
20710
20711 \begin_layout Plain Layout
20712
20713 \change_inserted -712698321 1552395787
20714 NeedMBoxProtect
20715 \end_layout
20716
20717 \end_inset
20718
20719  [
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724
20725 \change_inserted -712698321 1552395787
20726
20727 \emph on
20728 0
20729 \end_layout
20730
20731 \end_inset
20732
20733 ,
20734 \begin_inset space \thinspace{}
20735 \end_inset
20736
20737
20738 \begin_inset Flex Code
20739 status collapsed
20740
20741 \begin_layout Plain Layout
20742
20743 \change_inserted -712698321 1552395787
20744 1
20745 \end_layout
20746
20747 \end_inset
20748
20749 ] Whether specific commands in this inset (such as 
20750 \begin_inset Flex Code
20751 status collapsed
20752
20753 \begin_layout Plain Layout
20754
20755 \change_inserted -712698321 1552395787
20756
20757 \backslash
20758 cite
20759 \end_layout
20760
20761 \end_inset
20762
20763  and 
20764 \begin_inset Flex Code
20765 status collapsed
20766
20767 \begin_layout Plain Layout
20768
20769 \change_inserted -712698321 1552395787
20770
20771 \backslash
20772 ref
20773 \end_layout
20774
20775 \end_inset
20776
20777 ) should be protected in an 
20778 \begin_inset Flex Code
20779 status collapsed
20780
20781 \begin_layout Plain Layout
20782
20783 \change_inserted -712698321 1552395787
20784
20785 \backslash
20786 mbox
20787 \end_layout
20788
20789 \end_inset
20790
20791 .
20792  This is particularly needed for insets that draw on 
20793 \family sans
20794 ulem
20795 \family default
20796  or 
20797 \family sans
20798 soul
20799 \family default
20800  commands which parse their content in complex ways.
20801  Default is false.
20802 \end_layout
20803
20804 \begin_layout Description
20805
20806 \change_inserted -712698321 1555579742
20807 \begin_inset Flex Code
20808 status collapsed
20809
20810 \begin_layout Plain Layout
20811
20812 \change_inserted -712698321 1555579658
20813 NewlineCmd
20814 \end_layout
20815
20816 \end_inset
20817
20818  
20819 \begin_inset Flex Code
20820 status collapsed
20821
20822 \begin_layout Plain Layout
20823
20824 \change_inserted -712698321 1555579651
20825 [string]
20826 \end_layout
20827
20828 \end_inset
20829
20830  Option to define a different command (from the default 
20831 \begin_inset Flex Code
20832 status collapsed
20833
20834 \begin_layout Plain Layout
20835
20836 \change_inserted -712698321 1555579742
20837
20838 \backslash
20839
20840 \backslash
20841
20842 \change_unchanged
20843
20844 \end_layout
20845
20846 \end_inset
20847
20848 ) to be used for line breaks.
20849  The initial backslash must not be specified.
20850 \change_unchanged
20851
20852 \end_layout
20853
20854 \begin_layout Description
20855 \begin_inset Flex Code
20856 status collapsed
20857
20858 \begin_layout Plain Layout
20859 NoInsetLayout
20860 \end_layout
20861
20862 \end_inset
20863
20864  [
20865 \begin_inset Flex Code
20866 status collapsed
20867
20868 \begin_layout Plain Layout
20869 <layout>
20870 \end_layout
20871
20872 \end_inset
20873
20874 ] Deletes an existing 
20875 \begin_inset Flex Code
20876 status collapsed
20877
20878 \begin_layout Plain Layout
20879 InsetLayout
20880 \end_layout
20881
20882 \end_inset
20883
20884 .
20885 \end_layout
20886
20887 \begin_layout Description
20888 \begin_inset Flex Code
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892 ObsoletedBy
20893 \end_layout
20894
20895 \end_inset
20896
20897  [
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 <layout>
20903 \end_layout
20904
20905 \end_inset
20906
20907 ] Name of an 
20908 \begin_inset Flex Code
20909 status collapsed
20910
20911 \begin_layout Plain Layout
20912 InsetLayout
20913 \end_layout
20914
20915 \end_inset
20916
20917  that has replaced this 
20918 \begin_inset Flex Code
20919 status collapsed
20920
20921 \begin_layout Plain Layout
20922 InsetLayout
20923 \end_layout
20924
20925 \end_inset
20926
20927 .
20928  This is used to rename an 
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 InsetLayout
20934 \end_layout
20935
20936 \end_inset
20937
20938 , while keeping backward compatibility.
20939 \end_layout
20940
20941 \begin_layout Description
20942 \begin_inset Flex Code
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946 ParbreakIsNewline
20947 \end_layout
20948
20949 \end_inset
20950
20951  [
20952 \begin_inset Flex Code
20953 status collapsed
20954
20955 \begin_layout Plain Layout
20956
20957 \emph on
20958 0
20959 \end_layout
20960
20961 \end_inset
20962
20963 ,
20964 \begin_inset space \thinspace{}
20965 \end_inset
20966
20967
20968 \begin_inset Flex Code
20969 status collapsed
20970
20971 \begin_layout Plain Layout
20972 1
20973 \end_layout
20974
20975 \end_inset
20976
20977 ] As with paragraph styles, see 
20978 \begin_inset CommandInset ref
20979 LatexCommand ref
20980 reference "subsec:Paragraph-Styles"
20981
20982 \end_inset
20983
20984 .
20985  Default is false.
20986 \end_layout
20987
20988 \begin_layout Description
20989 \begin_inset Flex Code
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993 PassThru
20994 \end_layout
20995
20996 \end_inset
20997
20998  [
20999 \begin_inset Flex Code
21000 status collapsed
21001
21002 \begin_layout Plain Layout
21003
21004 \emph on
21005 0
21006 \end_layout
21007
21008 \end_inset
21009
21010 ,
21011 \begin_inset space \thinspace{}
21012 \end_inset
21013
21014
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 1
21020 \end_layout
21021
21022 \end_inset
21023
21024 ] As with paragraph styles, see 
21025 \begin_inset CommandInset ref
21026 LatexCommand ref
21027 reference "subsec:Paragraph-Styles"
21028
21029 \end_inset
21030
21031 .
21032  Default is false.
21033 \end_layout
21034
21035 \begin_layout Description
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 Preamble
21041 \end_layout
21042
21043 \end_inset
21044
21045  As with paragraph styles, see 
21046 \begin_inset CommandInset ref
21047 LatexCommand ref
21048 reference "subsec:Paragraph-Styles"
21049
21050 \end_inset
21051
21052 .
21053 \end_layout
21054
21055 \begin_layout Description
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 RefPrefix
21061 \end_layout
21062
21063 \end_inset
21064
21065  [
21066 \begin_inset Flex Code
21067 status collapsed
21068
21069 \begin_layout Plain Layout
21070 string
21071 \end_layout
21072
21073 \end_inset
21074
21075 ] The prefix to use when creating labels referring to insets of this type.
21076  This allows the use of formatted references.
21077 \end_layout
21078
21079 \begin_layout Description
21080 \begin_inset Flex Code
21081 status collapsed
21082
21083 \begin_layout Plain Layout
21084 Requires
21085 \end_layout
21086
21087 \end_inset
21088
21089  [
21090 \begin_inset Flex Code
21091 status collapsed
21092
21093 \begin_layout Plain Layout
21094 string
21095 \end_layout
21096
21097 \end_inset
21098
21099 ] As with paragraph styles, see 
21100 \begin_inset CommandInset ref
21101 LatexCommand ref
21102 reference "subsec:Paragraph-Styles"
21103
21104 \end_inset
21105
21106 .
21107 \end_layout
21108
21109 \begin_layout Description
21110 \begin_inset Flex Code
21111 status collapsed
21112
21113 \begin_layout Plain Layout
21114 ResetArgs
21115 \end_layout
21116
21117 \end_inset
21118
21119  [
21120 \begin_inset Flex Code
21121 status collapsed
21122
21123 \begin_layout Plain Layout
21124
21125 \emph on
21126 0
21127 \end_layout
21128
21129 \end_inset
21130
21131 ,
21132 \begin_inset space \thinspace{}
21133 \end_inset
21134
21135
21136 \begin_inset Flex Code
21137 status collapsed
21138
21139 \begin_layout Plain Layout
21140 1
21141 \end_layout
21142
21143 \end_inset
21144
21145 ] Resets the \SpecialChar LaTeX
21146  arguments of this layout (as defined via the 
21147 \begin_inset Flex Code
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 Argument
21152 \end_layout
21153
21154 \end_inset
21155
21156  tag).
21157  This is useful if you have copied a style via 
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 CopyStyle
21163 \end_layout
21164
21165 \end_inset
21166
21167 , but you do not want to inherit its (required and optional) arguments.
21168 \end_layout
21169
21170 \begin_layout Description
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 ResetsFont
21176 \end_layout
21177
21178 \end_inset
21179
21180  [
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185 0
21186 \end_layout
21187
21188 \end_inset
21189
21190 ,
21191 \begin_inset space \thinspace{}
21192 \end_inset
21193
21194
21195 \begin_inset Flex Code
21196 status collapsed
21197
21198 \begin_layout Plain Layout
21199
21200 \emph on
21201 1
21202 \end_layout
21203
21204 \end_inset
21205
21206 ] Whether this inset should use the font of its surrounding environment
21207  or uses its own.
21208  Default is false: use the font of the surrounding environment.
21209 \end_layout
21210
21211 \begin_layout Description
21212 \begin_inset Flex Code
21213 status collapsed
21214
21215 \begin_layout Plain Layout
21216 RightDelim
21217 \end_layout
21218
21219 \end_inset
21220
21221  [
21222 \begin_inset Flex Code
21223 status collapsed
21224
21225 \begin_layout Plain Layout
21226 string
21227 \end_layout
21228
21229 \end_inset
21230
21231 ] A string that is put at the end of the layout content.
21232  A line break in the output can be indicated by 
21233 \begin_inset Flex Code
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237 <br/>
21238 \end_layout
21239
21240 \end_inset
21241
21242 .
21243 \end_layout
21244
21245 \begin_layout Description
21246 \begin_inset Flex Code
21247 status collapsed
21248
21249 \begin_layout Plain Layout
21250 Spellcheck
21251 \end_layout
21252
21253 \end_inset
21254
21255  [
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 0
21261 \end_layout
21262
21263 \end_inset
21264
21265 ,
21266 \begin_inset space \thinspace{}
21267 \end_inset
21268
21269
21270 \begin_inset Flex Code
21271 status collapsed
21272
21273 \begin_layout Plain Layout
21274
21275 \emph on
21276 1
21277 \end_layout
21278
21279 \end_inset
21280
21281 ] Allow spell-checking the contents of this inset.
21282  Default is true.
21283 \end_layout
21284
21285 \begin_layout Subsection
21286 Counters
21287 \begin_inset CommandInset label
21288 LatexCommand label
21289 name "subsec:Counters"
21290
21291 \end_inset
21292
21293
21294 \end_layout
21295
21296 \begin_layout Standard
21297 It is necessary to define the counters (
21298 \begin_inset Flex Noun
21299 status collapsed
21300
21301 \begin_layout Plain Layout
21302 chapter
21303 \end_layout
21304
21305 \end_inset
21306
21307
21308 \begin_inset Flex Noun
21309 status collapsed
21310
21311 \begin_layout Plain Layout
21312 figure
21313 \end_layout
21314
21315 \end_inset
21316
21317 , \SpecialChar ldots
21318 ) in the text class itself.
21319  The standard counters are defined in the file 
21320 \begin_inset Flex Code
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324 stdcounters.inc
21325 \end_layout
21326
21327 \end_inset
21328
21329 , so you may have to do no more than add
21330 \end_layout
21331
21332 \begin_layout LyX-Code
21333 Input stdcounters.inc
21334 \end_layout
21335
21336 \begin_layout Standard
21337 to your layout file to get them to work.
21338  But if you want to define custom counters, then you can do so.
21339  The counter declaration must begin with:
21340 \end_layout
21341
21342 \begin_layout LyX-Code
21343 Counter CounterName
21344 \end_layout
21345
21346 \begin_layout Standard
21347 where of course `
21348 \begin_inset Flex Code
21349 status collapsed
21350
21351 \begin_layout Plain Layout
21352 CounterName
21353 \end_layout
21354
21355 \end_inset
21356
21357 ' is replaced by the name of the counter.
21358  And it must end with 
21359 \begin_inset Quotes eld
21360 \end_inset
21361
21362
21363 \begin_inset Flex Code
21364 status collapsed
21365
21366 \begin_layout Plain Layout
21367 End
21368 \end_layout
21369
21370 \end_inset
21371
21372
21373 \begin_inset Quotes erd
21374 \end_inset
21375
21376 .
21377  The following parameters can also be used:
21378 \end_layout
21379
21380 \begin_layout Description
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 InitialValue
21386 \end_layout
21387
21388 \end_inset
21389
21390  [
21391 \begin_inset Flex Code
21392 status collapsed
21393
21394 \begin_layout Plain Layout
21395 int=1
21396 \end_layout
21397
21398 \end_inset
21399
21400 ] Sets the initial value for the counter, to which it will be reset whenever
21401  that happens.
21402  Normally, one will want the default, 1.
21403 \end_layout
21404
21405 \begin_layout Description
21406 \begin_inset Flex Code
21407 status collapsed
21408
21409 \begin_layout Plain Layout
21410 LabelString
21411 \end_layout
21412
21413 \end_inset
21414
21415  [
21416 \begin_inset Flex Code
21417 status collapsed
21418
21419 \begin_layout Plain Layout
21420 string
21421 \end_layout
21422
21423 \end_inset
21424
21425 =
21426 \begin_inset Quotes erd
21427 \end_inset
21428
21429
21430 \begin_inset Quotes erd
21431 \end_inset
21432
21433 ] When defined, this string defines how the counter is displayed.
21434  Setting this value sets 
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 LabelStringAppendix
21440 \end_layout
21441
21442 \end_inset
21443
21444  to the same value.
21445  The following special constructs can be used in the string:
21446 \end_layout
21447
21448 \begin_deeper
21449 \begin_layout Itemize
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454
21455 \backslash
21456 thecounter
21457 \end_layout
21458
21459 \end_inset
21460
21461  will be replaced by the expansion of the 
21462 \begin_inset Flex Code
21463 status collapsed
21464
21465 \begin_layout Plain Layout
21466 LabelString
21467 \end_layout
21468
21469 \end_inset
21470
21471  (or 
21472 \begin_inset Flex Code
21473 status collapsed
21474
21475 \begin_layout Plain Layout
21476 LabelStringAppendix
21477 \end_layout
21478
21479 \end_inset
21480
21481 ) of the counter 
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 counter
21487 \end_layout
21488
21489 \end_inset
21490
21491 .
21492  
21493 \end_layout
21494
21495 \begin_layout Itemize
21496 counter values can be expressed using \SpecialChar LaTeX
21497 -like macros
21498 \begin_inset Newline newline
21499 \end_inset
21500
21501
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506
21507 \backslash
21508
21509 \emph on
21510 numbertype
21511 \emph default
21512 {
21513 \emph on
21514 counter
21515 \emph default
21516 }
21517 \end_layout
21518
21519 \end_inset
21520
21521 , where 
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526
21527 \emph on
21528 numbertype
21529 \end_layout
21530
21531 \end_inset
21532
21533  can be:
21534 \begin_inset Foot
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538
21539 \family roman
21540 \series medium
21541 \shape up
21542 \size normal
21543 \emph off
21544 \bar no
21545 \noun off
21546 \color none
21547 Actually, the situation is a bit more complicated: any
21548 \family default
21549 \series default
21550 \shape default
21551 \emph default
21552 \bar default
21553  
21554 \size default
21555 \emph on
21556 \noun default
21557 \color inherit
21558 numbertype
21559 \family roman
21560 \series medium
21561 \shape up
21562 \size normal
21563 \emph off
21564 \bar no
21565 \noun off
21566  other than those described below will produce arabic numerals.
21567  It would not be surprising to see this change in the future.
21568 \end_layout
21569
21570 \end_inset
21571
21572  
21573 \begin_inset Flex Code
21574 status collapsed
21575
21576 \begin_layout Plain Layout
21577 arabic
21578 \end_layout
21579
21580 \end_inset
21581
21582 : 1, 2, 3,\SpecialChar ldots
21583
21584 \begin_inset Flex Code
21585 status collapsed
21586
21587 \begin_layout Plain Layout
21588 alph
21589 \end_layout
21590
21591 \end_inset
21592
21593  for lower-case letters: a, b, c, \SpecialChar ldots
21594
21595 \begin_inset Flex Code
21596 status collapsed
21597
21598 \begin_layout Plain Layout
21599 Alph
21600 \end_layout
21601
21602 \end_inset
21603
21604  for upper-case letters: A, B, C, \SpecialChar ldots
21605
21606 \begin_inset Flex Code
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 roman
21611 \end_layout
21612
21613 \end_inset
21614
21615  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21616
21617 \begin_inset Flex Code
21618 status collapsed
21619
21620 \begin_layout Plain Layout
21621 Roman
21622 \end_layout
21623
21624 \end_inset
21625
21626  for upper-case roman numerals: I, II, III\SpecialChar ldots
21627
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 hebrew
21633 \end_layout
21634
21635 \end_inset
21636
21637  for hebrew numerals.
21638 \end_layout
21639
21640 \end_deeper
21641 \begin_layout Standard
21642 If LabelString is not defined, a default value is constructed as follows:
21643  if the counter has a master counter 
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 master
21649 \end_layout
21650
21651 \end_inset
21652
21653  (defined via 
21654 \begin_inset Flex Code
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 Within
21659 \end_layout
21660
21661 \end_inset
21662
21663 ), the string
21664 \begin_inset Newline newline
21665 \end_inset
21666
21667
21668 \begin_inset Flex Code
21669 status collapsed
21670
21671 \begin_layout Plain Layout
21672
21673 \backslash
21674 themaster.
21675 \backslash
21676 arabic{counter}
21677 \end_layout
21678
21679 \end_inset
21680
21681  is used; otherwise the string 
21682 \begin_inset Flex Code
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686
21687 \backslash
21688 arabic{counter}
21689 \end_layout
21690
21691 \end_inset
21692
21693  is used.
21694 \end_layout
21695
21696 \begin_layout Description
21697 \begin_inset Flex Code
21698 status collapsed
21699
21700 \begin_layout Plain Layout
21701 LabelStringAppendix
21702 \end_layout
21703
21704 \end_inset
21705
21706  [
21707 \begin_inset Flex Code
21708 status collapsed
21709
21710 \begin_layout Plain Layout
21711 string
21712 \end_layout
21713
21714 \end_inset
21715
21716 =
21717 \begin_inset Quotes erd
21718 \end_inset
21719
21720
21721 \begin_inset Quotes erd
21722 \end_inset
21723
21724 ] Same as 
21725 \begin_inset Flex Code
21726 status collapsed
21727
21728 \begin_layout Plain Layout
21729 LabelString
21730 \end_layout
21731
21732 \end_inset
21733
21734 , but for use in the Appendix.
21735 \end_layout
21736
21737 \begin_layout Description
21738 \begin_inset Flex Code
21739 status collapsed
21740
21741 \begin_layout Plain Layout
21742 PrettyFormat
21743 \end_layout
21744
21745 \end_inset
21746
21747  [
21748 \begin_inset Flex Code
21749 status collapsed
21750
21751 \begin_layout Plain Layout
21752 string
21753 \end_layout
21754
21755 \end_inset
21756
21757 =
21758 \begin_inset Quotes erd
21759 \end_inset
21760
21761
21762 \begin_inset Quotes erd
21763 \end_inset
21764
21765 ] A format for use with formatted references to this counter.
21766  For example, one might want to have references to section numbers appear
21767  as 
21768 \begin_inset Quotes eld
21769 \end_inset
21770
21771 Section 2.4
21772 \begin_inset Quotes erd
21773 \end_inset
21774
21775 .
21776  The string should contain 
21777 \begin_inset Quotes eld
21778 \end_inset
21779
21780 ##
21781 \begin_inset Quotes erd
21782 \end_inset
21783
21784 .
21785  This will be replaced by the counter number itself.
21786  So, for sections, it would be: Section ##.
21787 \end_layout
21788
21789 \begin_layout Description
21790 \begin_inset Flex Code
21791 status collapsed
21792
21793 \begin_layout Plain Layout
21794 Within
21795 \end_layout
21796
21797 \end_inset
21798
21799  [
21800 \begin_inset Flex Code
21801 status collapsed
21802
21803 \begin_layout Plain Layout
21804 string
21805 \end_layout
21806
21807 \end_inset
21808
21809 =
21810 \begin_inset Quotes erd
21811 \end_inset
21812
21813
21814 \begin_inset Quotes erd
21815 \end_inset
21816
21817 ] If this is set to the name of another counter, the present counter will
21818  be reset every time the other one is increased.
21819  For example, 
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824 subsection
21825 \end_layout
21826
21827 \end_inset
21828
21829  is numbered inside 
21830 \begin_inset Flex Code
21831 status collapsed
21832
21833 \begin_layout Plain Layout
21834 section
21835 \end_layout
21836
21837 \end_inset
21838
21839 .
21840 \end_layout
21841
21842 \begin_layout Subsection
21843 Font description
21844 \begin_inset CommandInset label
21845 LatexCommand label
21846 name "subsec:Font-description"
21847
21848 \end_inset
21849
21850
21851 \end_layout
21852
21853 \begin_layout Standard
21854 A font description looks like this:
21855 \end_layout
21856
21857 \begin_layout LyX-Code
21858 Font 
21859 \family roman
21860 \emph on
21861 or
21862 \family default
21863 \emph default
21864  LabelFont
21865 \emph on
21866  
21867 \family roman
21868 or
21869 \family default
21870 \emph default
21871  DefaultFont
21872 \end_layout
21873
21874 \begin_layout LyX-Code
21875  ...
21876 \end_layout
21877
21878 \begin_layout LyX-Code
21879 EndFont
21880 \end_layout
21881
21882 \begin_layout Standard
21883 The following commands are available:
21884 \end_layout
21885
21886 \begin_layout Description
21887 \begin_inset Flex Code
21888 status collapsed
21889
21890 \begin_layout Plain Layout
21891 Color
21892 \end_layout
21893
21894 \end_inset
21895
21896  [
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901
21902 \emph on
21903 none
21904 \end_layout
21905
21906 \end_inset
21907
21908
21909 \begin_inset Flex Code
21910 status collapsed
21911
21912 \begin_layout Plain Layout
21913 black
21914 \end_layout
21915
21916 \end_inset
21917
21918
21919 \begin_inset Flex Code
21920 status collapsed
21921
21922 \begin_layout Plain Layout
21923 white
21924 \end_layout
21925
21926 \end_inset
21927
21928
21929 \begin_inset Flex Code
21930 status collapsed
21931
21932 \begin_layout Plain Layout
21933 red
21934 \end_layout
21935
21936 \end_inset
21937
21938
21939 \begin_inset Flex Code
21940 status collapsed
21941
21942 \begin_layout Plain Layout
21943 green
21944 \end_layout
21945
21946 \end_inset
21947
21948
21949 \begin_inset Flex Code
21950 status collapsed
21951
21952 \begin_layout Plain Layout
21953 blue
21954 \end_layout
21955
21956 \end_inset
21957
21958
21959 \begin_inset Flex Code
21960 status collapsed
21961
21962 \begin_layout Plain Layout
21963 cyan
21964 \end_layout
21965
21966 \end_inset
21967
21968
21969 \begin_inset Flex Code
21970 status collapsed
21971
21972 \begin_layout Plain Layout
21973 magenta
21974 \end_layout
21975
21976 \end_inset
21977
21978
21979 \begin_inset Flex Code
21980 status collapsed
21981
21982 \begin_layout Plain Layout
21983 yellow
21984 \end_layout
21985
21986 \end_inset
21987
21988
21989 \begin_inset Flex Code
21990 status collapsed
21991
21992 \begin_layout Plain Layout
21993 brown
21994 \end_layout
21995
21996 \end_inset
21997
21998
21999 \begin_inset Flex Code
22000 status collapsed
22001
22002 \begin_layout Plain Layout
22003 darkgray
22004 \end_layout
22005
22006 \end_inset
22007
22008
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013 gray
22014 \end_layout
22015
22016 \end_inset
22017
22018
22019 \begin_inset Flex Code
22020 status collapsed
22021
22022 \begin_layout Plain Layout
22023 lightgray
22024 \end_layout
22025
22026 \end_inset
22027
22028
22029 \begin_inset Flex Code
22030 status collapsed
22031
22032 \begin_layout Plain Layout
22033 lime
22034 \end_layout
22035
22036 \end_inset
22037
22038
22039 \begin_inset Flex Code
22040 status collapsed
22041
22042 \begin_layout Plain Layout
22043 orange
22044 \end_layout
22045
22046 \end_inset
22047
22048
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053 olive
22054 \end_layout
22055
22056 \end_inset
22057
22058
22059 \begin_inset Flex Code
22060 status collapsed
22061
22062 \begin_layout Plain Layout
22063 pink
22064 \end_layout
22065
22066 \end_inset
22067
22068
22069 \begin_inset Flex Code
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073 purple
22074 \end_layout
22075
22076 \end_inset
22077
22078
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 teal
22084 \end_layout
22085
22086 \end_inset
22087
22088
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 violet
22094 \end_layout
22095
22096 \end_inset
22097
22098 ]
22099 \end_layout
22100
22101 \begin_layout Description
22102 \begin_inset Flex Code
22103 status collapsed
22104
22105 \begin_layout Plain Layout
22106 Family
22107 \end_layout
22108
22109 \end_inset
22110
22111  [
22112 \begin_inset Flex Code
22113 status collapsed
22114
22115 \begin_layout Plain Layout
22116
22117 \emph on
22118 Roman
22119 \end_layout
22120
22121 \end_inset
22122
22123
22124 \begin_inset Flex Code
22125 status collapsed
22126
22127 \begin_layout Plain Layout
22128 Sans
22129 \end_layout
22130
22131 \end_inset
22132
22133
22134 \begin_inset Flex Code
22135 status collapsed
22136
22137 \begin_layout Plain Layout
22138 Typewriter
22139 \end_layout
22140
22141 \end_inset
22142
22143 ]
22144 \end_layout
22145
22146 \begin_layout Description
22147 \begin_inset Flex Code
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151 Misc
22152 \end_layout
22153
22154 \end_inset
22155
22156  [
22157 \begin_inset Flex Code
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161 string
22162 \end_layout
22163
22164 \end_inset
22165
22166 ] Valid arguments are: 
22167 \begin_inset Flex Code
22168 status collapsed
22169
22170 \begin_layout Plain Layout
22171 emph
22172 \end_layout
22173
22174 \end_inset
22175
22176
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181 noun
22182 \end_layout
22183
22184 \end_inset
22185
22186
22187 \begin_inset Flex Code
22188 status collapsed
22189
22190 \begin_layout Plain Layout
22191 strikeout
22192 \end_layout
22193
22194 \end_inset
22195
22196
22197 \begin_inset Flex Code
22198 status collapsed
22199
22200 \begin_layout Plain Layout
22201 underbar
22202 \end_layout
22203
22204 \end_inset
22205
22206
22207 \begin_inset Flex Code
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 uuline
22212 \end_layout
22213
22214 \end_inset
22215
22216
22217 \begin_inset Flex Code
22218 status collapsed
22219
22220 \begin_layout Plain Layout
22221 uwave
22222 \end_layout
22223
22224 \end_inset
22225
22226
22227 \begin_inset Flex Code
22228 status collapsed
22229
22230 \begin_layout Plain Layout
22231 no_emph
22232 \end_layout
22233
22234 \end_inset
22235
22236
22237 \begin_inset Flex Code
22238 status collapsed
22239
22240 \begin_layout Plain Layout
22241 no_noun
22242 \end_layout
22243
22244 \end_inset
22245
22246
22247 \begin_inset Flex Code
22248 status collapsed
22249
22250 \begin_layout Plain Layout
22251 no_strikeout
22252 \end_layout
22253
22254 \end_inset
22255
22256
22257 \begin_inset Flex Code
22258 status collapsed
22259
22260 \begin_layout Plain Layout
22261 no_bar
22262 \end_layout
22263
22264 \end_inset
22265
22266
22267 \begin_inset Flex Code
22268 status collapsed
22269
22270 \begin_layout Plain Layout
22271 no_uuline
22272 \end_layout
22273
22274 \end_inset
22275
22276  and 
22277 \begin_inset Flex Code
22278 status collapsed
22279
22280 \begin_layout Plain Layout
22281 no_uwave
22282 \end_layout
22283
22284 \end_inset
22285
22286 .
22287  Each of these turns on or off the corresponding attribute.
22288  For example, 
22289 \begin_inset Flex Code
22290 status collapsed
22291
22292 \begin_layout Plain Layout
22293 emph
22294 \end_layout
22295
22296 \end_inset
22297
22298  turns on emphasis, and 
22299 \begin_inset Flex Code
22300 status collapsed
22301
22302 \begin_layout Plain Layout
22303 no_emph
22304 \end_layout
22305
22306 \end_inset
22307
22308  turns it off.
22309  
22310 \begin_inset Newline newline
22311 \end_inset
22312
22313 If the latter seems puzzling, remember that the font settings for the present
22314  context are generally inherited from the surrounding context.
22315  So 
22316 \begin_inset Flex Code
22317 status collapsed
22318
22319 \begin_layout Plain Layout
22320 no_emph
22321 \end_layout
22322
22323 \end_inset
22324
22325  would turn off the emphasis that was anyway in effect, say, in a theorem
22326  environment.
22327 \end_layout
22328
22329 \begin_layout Description
22330 \begin_inset Flex Code
22331 status collapsed
22332
22333 \begin_layout Plain Layout
22334 Series
22335 \end_layout
22336
22337 \end_inset
22338
22339  [
22340 \begin_inset Flex Code
22341 status collapsed
22342
22343 \begin_layout Plain Layout
22344
22345 \emph on
22346 Medium
22347 \end_layout
22348
22349 \end_inset
22350
22351
22352 \begin_inset Flex Code
22353 status collapsed
22354
22355 \begin_layout Plain Layout
22356 Bold
22357 \end_layout
22358
22359 \end_inset
22360
22361
22362 \end_layout
22363
22364 \begin_layout Description
22365 \begin_inset Flex Code
22366 status collapsed
22367
22368 \begin_layout Plain Layout
22369 Shape
22370 \end_layout
22371
22372 \end_inset
22373
22374  [
22375 \begin_inset Flex Code
22376 status collapsed
22377
22378 \begin_layout Plain Layout
22379
22380 \emph on
22381 Up
22382 \end_layout
22383
22384 \end_inset
22385
22386
22387 \begin_inset Flex Code
22388 status collapsed
22389
22390 \begin_layout Plain Layout
22391 Italic
22392 \end_layout
22393
22394 \end_inset
22395
22396
22397 \begin_inset Flex Code
22398 status collapsed
22399
22400 \begin_layout Plain Layout
22401 SmallCaps
22402 \end_layout
22403
22404 \end_inset
22405
22406
22407 \begin_inset Flex Code
22408 status collapsed
22409
22410 \begin_layout Plain Layout
22411 Slanted
22412 \end_layout
22413
22414 \end_inset
22415
22416
22417 \end_layout
22418
22419 \begin_layout Description
22420 \begin_inset Flex Code
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424 Size
22425 \end_layout
22426
22427 \end_inset
22428
22429  [
22430 \begin_inset Flex Code
22431 status collapsed
22432
22433 \begin_layout Plain Layout
22434 tiny
22435 \end_layout
22436
22437 \end_inset
22438
22439
22440 \begin_inset Flex Code
22441 status collapsed
22442
22443 \begin_layout Plain Layout
22444 small
22445 \end_layout
22446
22447 \end_inset
22448
22449
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454
22455 \emph on
22456 normal
22457 \end_layout
22458
22459 \end_inset
22460
22461
22462 \begin_inset Flex Code
22463 status collapsed
22464
22465 \begin_layout Plain Layout
22466 large
22467 \end_layout
22468
22469 \end_inset
22470
22471
22472 \begin_inset Flex Code
22473 status collapsed
22474
22475 \begin_layout Plain Layout
22476 larger
22477 \end_layout
22478
22479 \end_inset
22480
22481
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 largest
22487 \end_layout
22488
22489 \end_inset
22490
22491
22492 \begin_inset Flex Code
22493 status collapsed
22494
22495 \begin_layout Plain Layout
22496 huge
22497 \end_layout
22498
22499 \end_inset
22500
22501
22502 \begin_inset Flex Code
22503 status collapsed
22504
22505 \begin_layout Plain Layout
22506 giant
22507 \end_layout
22508
22509 \end_inset
22510
22511 ]
22512 \end_layout
22513
22514 \begin_layout Subsection
22515 \begin_inset CommandInset label
22516 LatexCommand label
22517 name "subsec:Citation-engine-description"
22518
22519 \end_inset
22520
22521 Cite engine description
22522 \end_layout
22523
22524 \begin_layout Standard
22525 The 
22526 \begin_inset Flex Code
22527 status collapsed
22528
22529 \begin_layout Plain Layout
22530 CiteEngine
22531 \end_layout
22532
22533 \end_inset
22534
22535  blocks, as used mainly in cite engine files (see 
22536 \begin_inset CommandInset ref
22537 LatexCommand ref
22538 reference "subsec:Cite-Engine-Files"
22539 plural "false"
22540 caps "false"
22541 noprefix "false"
22542
22543 \end_inset
22544
22545 ), define the citation commands provided by a specific 
22546 \begin_inset Quotes eld
22547 \end_inset
22548
22549 cite engine
22550 \begin_inset Quotes erd
22551 \end_inset
22552
22553 .
22554  A cite engine, in \SpecialChar LyX
22555  terms, is way specific way to format citations, using
22556  numbers, author names and/or years.
22557  Currently, \SpecialChar LyX
22558  supports three such engine types, namely:
22559 \end_layout
22560
22561 \begin_layout Enumerate
22562 \begin_inset Flex Code
22563 status collapsed
22564
22565 \begin_layout Plain Layout
22566 default
22567 \end_layout
22568
22569 \end_inset
22570
22571 : the default Bib\SpecialChar TeX
22572  way to format citations, a simple numeric style (e.
22573 \begin_inset space \thinspace{}
22574 \end_inset
22575
22576 g., 
22577 \begin_inset Quotes eld
22578 \end_inset
22579
22580 [1]
22581 \begin_inset Quotes erd
22582 \end_inset
22583
22584 )
22585 \end_layout
22586
22587 \begin_layout Enumerate
22588 \begin_inset Flex Code
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592 authoryear
22593 \end_layout
22594
22595 \end_inset
22596
22597 : Harvard-styled citations using author names and publication year (e.
22598 \begin_inset space \thinspace{}
22599 \end_inset
22600
22601 g., 
22602 \begin_inset Quotes eld
22603 \end_inset
22604
22605 Smith and Miller (2017b)
22606 \begin_inset Quotes erd
22607 \end_inset
22608
22609 )
22610 \end_layout
22611
22612 \begin_layout Enumerate
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 numerical
22618 \end_layout
22619
22620 \end_inset
22621
22622 : extended numerical citations that also allow for author or title next
22623  to the number (e.
22624 \begin_inset space \thinspace{}
22625 \end_inset
22626
22627 g., 
22628 \begin_inset Quotes eld
22629 \end_inset
22630
22631 Smith and Miller [1]
22632 \begin_inset Quotes erd
22633 \end_inset
22634
22635 )
22636 \end_layout
22637
22638 \begin_layout Standard
22639 \begin_inset Flex Code
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 CiteEngine
22644 \end_layout
22645
22646 \end_inset
22647
22648  blocks look like this:
22649 \end_layout
22650
22651 \begin_layout LyX-Code
22652 CiteEngine default
22653 \end_layout
22654
22655 \begin_layout LyX-Code
22656  cite
22657 \end_layout
22658
22659 \begin_layout LyX-Code
22660  Citep*[][]
22661 \end_layout
22662
22663 \begin_layout LyX-Code
22664  citeyearpar[][]=parencite*
22665 \end_layout
22666
22667 \begin_layout LyX-Code
22668  ...
22669 \end_layout
22670
22671 \begin_layout LyX-Code
22672 End
22673 \end_layout
22674
22675 \begin_layout Standard
22676 The tag following 
22677 \begin_inset Flex Code
22678 status collapsed
22679
22680 \begin_layout Plain Layout
22681 CiteEngine
22682 \end_layout
22683
22684 \end_inset
22685
22686  denotes the engine.
22687  The individual lines respectively define a cite command or cite command
22688  paradigm supported by this engine.
22689  The line can be as simple as a cite command that is used both to name the
22690  respective \SpecialChar LyX
22691  command and the \SpecialChar LaTeX
22692  output or more complex in order to differentiate
22693  things.
22694  The full syntax is:
22695 \end_layout
22696
22697 \begin_layout LyX-Code
22698 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22699 \end_layout
22700
22701 \begin_layout Itemize
22702 \begin_inset Flex Code
22703 status collapsed
22704
22705 \begin_layout Plain Layout
22706 LyXName
22707 \end_layout
22708
22709 \end_inset
22710
22711 : The name as used in the 
22712 \begin_inset Flex Code
22713 status collapsed
22714
22715 \begin_layout Plain Layout
22716 *.lyx
22717 \end_layout
22718
22719 \end_inset
22720
22721  file.
22722 \end_layout
22723
22724 \begin_deeper
22725 \begin_layout Standard
22726 For portability reasons, we try to use the same name for same-formatted
22727  commands in different cite packages (thus many names stem from natbib,
22728  and thus we need to differentiate a 
22729 \begin_inset Flex Code
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 latexcmd
22734 \end_layout
22735
22736 \end_inset
22737
22738  sometimes, if the \SpecialChar LaTeX
22739  command names differ).
22740 \end_layout
22741
22742 \end_deeper
22743 \begin_layout Itemize
22744 \begin_inset Flex Code
22745 status collapsed
22746
22747 \begin_layout Plain Layout
22748 alias
22749 \end_layout
22750
22751 \end_inset
22752
22753 : a (comma-separated) list of commands that fall back to the given 
22754 \begin_inset Flex Code
22755 status collapsed
22756
22757 \begin_layout Plain Layout
22758 LyXName
22759 \end_layout
22760
22761 \end_inset
22762
22763  in the current engine.
22764  This eases the switch of citation packages and engines.
22765  The 
22766 \begin_inset Flex Code
22767 status collapsed
22768
22769 \begin_layout Plain Layout
22770 alias
22771 \end_layout
22772
22773 \end_inset
22774
22775  can be compared to 
22776 \begin_inset Flex Code
22777 status collapsed
22778
22779 \begin_layout Plain Layout
22780 ObsoletedBy
22781 \end_layout
22782
22783 \end_inset
22784
22785  in layout definitions.
22786 \end_layout
22787
22788 \begin_layout Itemize
22789 \begin_inset Flex Code
22790 status collapsed
22791
22792 \begin_layout Plain Layout
22793 latexcmd
22794 \end_layout
22795
22796 \end_inset
22797
22798 : The actual \SpecialChar LaTeX
22799  command that is output.
22800  
22801 \end_layout
22802
22803 \begin_layout Standard
22804 \begin_inset Flex Code
22805 status collapsed
22806
22807 \begin_layout Plain Layout
22808 Alias
22809 \end_layout
22810
22811 \end_inset
22812
22813  and 
22814 \begin_inset Flex Code
22815 status collapsed
22816
22817 \begin_layout Plain Layout
22818 latexcmd
22819 \end_layout
22820
22821 \end_inset
22822
22823  are optional.
22824  If no 
22825 \begin_inset Flex Code
22826 status collapsed
22827
22828 \begin_layout Plain Layout
22829 latexcmd
22830 \end_layout
22831
22832 \end_inset
22833
22834  is given, the 
22835 \begin_inset Flex Code
22836 status collapsed
22837
22838 \begin_layout Plain Layout
22839 LyXName
22840 \end_layout
22841
22842 \end_inset
22843
22844  will be output to \SpecialChar LaTeX
22845 .
22846 \end_layout
22847
22848 \begin_layout Standard
22849 Note further:
22850 \end_layout
22851
22852 \begin_layout Itemize
22853 Capitalization indicates that the command also has a capitalized form (
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858
22859 \backslash
22860 Latexcmd
22861 \end_layout
22862
22863 \end_inset
22864
22865  vs.
22866  
22867 \begin_inset Flex Code
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871
22872 \backslash
22873 latexcmd
22874 \end_layout
22875
22876 \end_inset
22877
22878 ).
22879  These usually enforce up-casing of name prefixes (
22880 \emph on
22881 von Goethe
22882 \emph default
22883  
22884 \begin_inset Formula $\Rightarrow$
22885 \end_inset
22886
22887  
22888 \emph on
22889 Von Goethe
22890 \emph default
22891 ).
22892 \end_layout
22893
22894 \begin_layout Itemize
22895 Brackets 
22896 \begin_inset Flex Code
22897 status collapsed
22898
22899 \begin_layout Plain Layout
22900 []
22901 \end_layout
22902
22903 \end_inset
22904
22905  indicate the number of optional arguments (there can be 0–2).
22906 \end_layout
22907
22908 \begin_layout Itemize
22909 A star 
22910 \begin_inset Flex Code
22911 status collapsed
22912
22913 \begin_layout Plain Layout
22914 *
22915 \end_layout
22916
22917 \end_inset
22918
22919  indicates there is a starred version of the command (
22920 \begin_inset Flex Code
22921 status collapsed
22922
22923 \begin_layout Plain Layout
22924
22925 \backslash
22926 latexcmd*
22927 \end_layout
22928
22929 \end_inset
22930
22931  vs.
22932  
22933 \begin_inset Flex Code
22934 status collapsed
22935
22936 \begin_layout Plain Layout
22937
22938 \backslash
22939 latexcmd
22940 \end_layout
22941
22942 \end_inset
22943
22944 ).
22945  
22946 \end_layout
22947
22948 \begin_deeper
22949 \begin_layout Standard
22950 By default, the starred version means: Output all authors even if it should
22951  be shortened with 
22952 \begin_inset Quotes eld
22953 \end_inset
22954
22955 et al.
22956 \begin_inset Quotes erd
22957 \end_inset
22958
22959  due to the 
22960 \begin_inset Flex Code
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964 MaxCiteNames
22965 \end_layout
22966
22967 \end_inset
22968
22969  threshold.
22970 \end_layout
22971
22972 \begin_layout Standard
22973 If the star has a different meaning for a given command, it can be specified
22974  in angle brackets: 
22975 \begin_inset Flex Code
22976 status collapsed
22977
22978 \begin_layout Plain Layout
22979 <!_stardesc!_stardesctooltip>
22980 \end_layout
22981
22982 \end_inset
22983
22984 .
22985  Maximal two translatable macro keywords, marked by the prefix 
22986 \begin_inset Flex Code
22987 status collapsed
22988
22989 \begin_layout Plain Layout
22990 !_
22991 \end_layout
22992
22993 \end_inset
22994
22995 , can be given.
22996  The first points to the string that replaces the 
22997 \begin_inset Quotes eld
22998 \end_inset
22999
23000 Full aut&hor list
23001 \begin_inset Quotes erd
23002 \end_inset
23003
23004  checkbox label in the citation dialog, the second one to an optional tool
23005  tip for this checkbox.
23006  
23007 \end_layout
23008
23009 \begin_layout Standard
23010 Note that these two macros have to be defined in a 
23011 \begin_inset Flex Code
23012 status collapsed
23013
23014 \begin_layout Plain Layout
23015 CiteFormat
23016 \end_layout
23017
23018 \end_inset
23019
23020  (see next section), dropping the 
23021 \begin_inset Flex Code
23022 status collapsed
23023
23024 \begin_layout Plain Layout
23025 !
23026 \end_layout
23027
23028 \end_inset
23029
23030  from the prefix, like this: 
23031 \end_layout
23032
23033 \begin_layout LyX-Code
23034 _stardesc Sta&rred command label
23035 \end_layout
23036
23037 \begin_layout LyX-Code
23038 _stardesctooltip Tooltip for the starred command checkbox.
23039 \end_layout
23040
23041 \end_deeper
23042 \begin_layout Itemize
23043 A dollar sign 
23044 \begin_inset Flex Code
23045 status collapsed
23046
23047 \begin_layout Plain Layout
23048 $
23049 \end_layout
23050
23051 \end_inset
23052
23053  indicates that this command features 
23054 \begin_inset Quotes eld
23055 \end_inset
23056
23057 qualified citation lists
23058 \begin_inset Quotes erd
23059 \end_inset
23060
23061 .
23062  This is a 
23063 \family sans
23064 Biblatex
23065 \family default
23066 -specific feature for multi-reference citations where an individual pre-
23067  and postnote can be given to each reference in the list.
23068  Please refer to the 
23069 \family sans
23070 Biblatex
23071 \family default
23072  manual for details.
23073 \change_inserted -712698321 1526898670
23074
23075 \end_layout
23076
23077 \begin_layout Standard
23078
23079 \change_inserted -712698321 1526899524
23080 If you want to add a cite command to a cite engine (e.
23081 \begin_inset space \thinspace{}
23082 \end_inset
23083
23084 g., add a specific command provided by a class), you can use 
23085 \begin_inset Flex Code
23086 status collapsed
23087
23088 \begin_layout Plain Layout
23089
23090 \change_inserted -712698321 1526898768
23091 AddToCiteEngine <engine type> \SpecialChar ldots
23092  End
23093 \change_unchanged
23094
23095 \end_layout
23096
23097 \end_inset
23098
23099 .
23100  Note that only cite commands that do not exist yet are added.
23101 \change_unchanged
23102
23103 \end_layout
23104
23105 \begin_layout Subsection
23106 \begin_inset CommandInset label
23107 LatexCommand label
23108 name "subsec:Citation-format-description"
23109
23110 \end_inset
23111
23112 Cite format description
23113 \end_layout
23114
23115 \begin_layout Standard
23116 The 
23117 \begin_inset Flex Code
23118 status collapsed
23119
23120 \begin_layout Plain Layout
23121 CiteFormat
23122 \end_layout
23123
23124 \end_inset
23125
23126  blocks are used to describe how bibliographic information should be displayed,
23127  both within \SpecialChar LyX
23128  itself (in the citation dialog and in tooltips, for example)
23129  and in XHTML output.
23130  Such a block might look like this:
23131 \end_layout
23132
23133 \begin_layout LyX-Code
23134 CiteFormat
23135 \end_layout
23136
23137 \begin_layout LyX-Code
23138  article ...
23139 \end_layout
23140
23141 \begin_layout LyX-Code
23142  book ...
23143 \end_layout
23144
23145 \begin_layout LyX-Code
23146 End
23147 \end_layout
23148
23149 \begin_layout Standard
23150 or
23151 \end_layout
23152
23153 \begin_layout LyX-Code
23154 CiteFormat
23155 \end_layout
23156
23157 \begin_layout LyX-Code
23158  cite ...
23159 \end_layout
23160
23161 \begin_layout LyX-Code
23162  citet*[][] ...
23163 \end_layout
23164
23165 \begin_layout LyX-Code
23166 End
23167 \end_layout
23168
23169 \begin_layout Standard
23170 In the first case, the individual lines define how the bibliographic information
23171  associated with an article or book, respectively, is to be displayed, and
23172  such a definition can be given for any 
23173 \begin_inset Quotes els
23174 \end_inset
23175
23176 entry type
23177 \begin_inset Quotes ers
23178 \end_inset
23179
23180  that might be present in a Bib\SpecialChar TeX
23181  file.
23182  \SpecialChar LyX
23183  defines a default format in the source code that will be used if no specific
23184  definition has been given.
23185  \SpecialChar LyX
23186  predefines several formats in the file 
23187 \begin_inset Flex Code
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191 stdciteformats.inc
23192 \end_layout
23193
23194 \end_inset
23195
23196 , which is included in most of \SpecialChar LyX
23197 's document classes.
23198 \end_layout
23199
23200 \begin_layout Standard
23201 In the second case, the lines define how a specific citation command (in
23202  the example 
23203 \begin_inset Flex Code
23204 status collapsed
23205
23206 \begin_layout Plain Layout
23207
23208 \backslash
23209 cite
23210 \end_layout
23211
23212 \end_inset
23213
23214
23215 \begin_inset Flex Code
23216 status collapsed
23217
23218 \begin_layout Plain Layout
23219
23220 \backslash
23221 citet
23222 \end_layout
23223
23224 \end_inset
23225
23226 ) is to be displayed on the citation inset label, in the citation dialog,
23227  menu or XHTML output.
23228  \SpecialChar LyX
23229  defines such formats for the citation style variants it supports via 
23230 \family sans
23231 Document\SpecialChar menuseparator
23232 Setting\SpecialChar menuseparator
23233 Bibliography\SpecialChar ldots
23234
23235 \family default
23236  in specific 
23237 \begin_inset Flex Code
23238 status collapsed
23239
23240 \begin_layout Plain Layout
23241 *.citeengine
23242 \end_layout
23243
23244 \end_inset
23245
23246  files that are shipped with \SpecialChar LyX
23247  (see 
23248 \begin_inset CommandInset ref
23249 LatexCommand ref
23250 reference "subsec:Cite-Engine-Files"
23251 plural "false"
23252 caps "false"
23253 noprefix "false"
23254
23255 \end_inset
23256
23257 ).
23258 \end_layout
23259
23260 \begin_layout Standard
23261 The definitions use a simple language that allows Bib\SpecialChar TeX
23262  keys to be replaced
23263  with their values.
23264  Keys should be enclosed in 
23265 \begin_inset Flex Code
23266 status collapsed
23267
23268 \begin_layout Plain Layout
23269 %
23270 \end_layout
23271
23272 \end_inset
23273
23274  signs, e.g.: 
23275 \begin_inset Flex Code
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279 %author%
23280 \end_layout
23281
23282 \end_inset
23283
23284 .
23285  So a simple definition might look like this:
23286 \end_layout
23287
23288 \begin_layout LyX-Code
23289 misc %author%, 
23290 \begin_inset Quotes eld
23291 \end_inset
23292
23293 %title%
23294 \begin_inset Quotes erd
23295 \end_inset
23296
23297 .
23298 \end_layout
23299
23300 \begin_layout Standard
23301 This would print the author, followed by a comma, followed by the title,
23302  in quotes, followed by a period.
23303 \end_layout
23304
23305 \begin_layout Standard
23306 Of course, sometimes you may want to print a key only if it exists.
23307  This can be done by using a conditional construction, such as: 
23308 \begin_inset Flex Code
23309 status collapsed
23310
23311 \begin_layout Plain Layout
23312 {%volume%[[vol.
23313 \begin_inset space ~
23314 \end_inset
23315
23316 %volume%]]}
23317 \end_layout
23318
23319 \end_inset
23320
23321 .
23322  This says: If the 
23323 \begin_inset Flex Code
23324 status collapsed
23325
23326 \begin_layout Plain Layout
23327 volume
23328 \end_layout
23329
23330 \end_inset
23331
23332  key exists, then print 
23333 \begin_inset Quotes eld
23334 \end_inset
23335
23336 vol.
23337 \begin_inset space ~
23338 \end_inset
23339
23340
23341 \begin_inset Quotes erd
23342 \end_inset
23343
23344  followed by the volume key.
23345  It is also possible to have an else clause in the conditional, such as:
23346 \begin_inset Newline newline
23347 \end_inset
23348
23349
23350 \begin_inset Flex Code
23351 status collapsed
23352
23353 \begin_layout Plain Layout
23354 {%author%[[%author%]][[%editor%, ed.]]}
23355 \end_layout
23356
23357 \end_inset
23358
23359 .
23360 \begin_inset Newline newline
23361 \end_inset
23362
23363 Here, the 
23364 \begin_inset Flex Code
23365 status collapsed
23366
23367 \begin_layout Plain Layout
23368 author
23369 \end_layout
23370
23371 \end_inset
23372
23373  key is printed if it exists; otherwise, the editor key is printed, followed
23374  by 
23375 \begin_inset Quotes eld
23376 \end_inset
23377
23378 ,
23379 \begin_inset space ~
23380 \end_inset
23381
23382 ed.
23383 \begin_inset Quotes erd
23384 \end_inset
23385
23386  Note that the key is again enclosed in 
23387 \begin_inset Flex Code
23388 status collapsed
23389
23390 \begin_layout Plain Layout
23391 %
23392 \end_layout
23393
23394 \end_inset
23395
23396  signs; the entire conditional is enclosed in braces; and the if and else
23397  clauses are enclosed in double brackets, 
23398 \begin_inset Quotes eld
23399 \end_inset
23400
23401
23402 \begin_inset Flex Code
23403 status collapsed
23404
23405 \begin_layout Plain Layout
23406 [[
23407 \end_layout
23408
23409 \end_inset
23410
23411
23412 \begin_inset Quotes eld
23413 \end_inset
23414
23415  and 
23416 \begin_inset Quotes eld
23417 \end_inset
23418
23419
23420 \begin_inset Flex Code
23421 status collapsed
23422
23423 \begin_layout Plain Layout
23424 ]]
23425 \end_layout
23426
23427 \end_inset
23428
23429
23430 \begin_inset Quotes erd
23431 \end_inset
23432
23433 .
23434  There must be no space between any of these.
23435 \end_layout
23436
23437 \begin_layout Standard
23438 Next to the entry keys, there are some special keys that can be used for
23439  these conditionals:
23440 \end_layout
23441
23442 \begin_layout Itemize
23443 \begin_inset Flex Code
23444 status collapsed
23445
23446 \begin_layout Plain Layout
23447 {%dialog%[[true]][[false]]}
23448 \end_layout
23449
23450 \end_inset
23451
23452 : process the 
23453 \begin_inset Quotes eld
23454 \end_inset
23455
23456 true
23457 \begin_inset Quotes erd
23458 \end_inset
23459
23460  part for dialogs and menus, the 
23461 \begin_inset Quotes eld
23462 \end_inset
23463
23464 false
23465 \begin_inset Quotes erd
23466 \end_inset
23467
23468  part for other contexts (workarea, export)
23469 \end_layout
23470
23471 \begin_layout Itemize
23472 \begin_inset Flex Code
23473 status collapsed
23474
23475 \begin_layout Plain Layout
23476 {%export%[[true]][[false]]}
23477 \end_layout
23478
23479 \end_inset
23480
23481 : process the 
23482 \begin_inset Quotes eld
23483 \end_inset
23484
23485 true
23486 \begin_inset Quotes erd
23487 \end_inset
23488
23489  part for export and menus, the 
23490 \begin_inset Quotes eld
23491 \end_inset
23492
23493 false
23494 \begin_inset Quotes erd
23495 \end_inset
23496
23497  part for other contexts (workarea, dialog)
23498 \end_layout
23499
23500 \begin_layout Itemize
23501 \begin_inset Flex Code
23502 status collapsed
23503
23504 \begin_layout Plain Layout
23505 {%next%[[true]]}
23506 \end_layout
23507
23508 \end_inset
23509
23510 : process the 
23511 \begin_inset Quotes eld
23512 \end_inset
23513
23514 true
23515 \begin_inset Quotes erd
23516 \end_inset
23517
23518  part if another item follows (e.
23519 \begin_inset space \thinspace{}
23520 \end_inset
23521
23522 g., in a citation with multiple keys)
23523 \end_layout
23524
23525 \begin_layout Itemize
23526 \begin_inset Flex Code
23527 status collapsed
23528
23529 \begin_layout Plain Layout
23530 {%second%[[true]][[false]]}
23531 \end_layout
23532
23533 \end_inset
23534
23535 : process the 
23536 \begin_inset Quotes eld
23537 \end_inset
23538
23539 true
23540 \begin_inset Quotes erd
23541 \end_inset
23542
23543  if this is the second of multiple items, else the 
23544 \begin_inset Quotes eld
23545 \end_inset
23546
23547 false
23548 \begin_inset Quotes erd
23549 \end_inset
23550
23551  part
23552 \end_layout
23553
23554 \begin_layout Itemize
23555 \begin_inset Flex Code
23556 status collapsed
23557
23558 \begin_layout Plain Layout
23559 {%ifstar%[[true]][[false]]}
23560 \end_layout
23561
23562 \end_inset
23563
23564 : process the 
23565 \begin_inset Quotes eld
23566 \end_inset
23567
23568 true
23569 \begin_inset Quotes erd
23570 \end_inset
23571
23572  part for starred citation commands (such as 
23573 \begin_inset Flex Code
23574 status collapsed
23575
23576 \begin_layout Plain Layout
23577
23578 \backslash
23579 cite*
23580 \end_layout
23581
23582 \end_inset
23583
23584 ), the false part for unstarred
23585 \end_layout
23586
23587 \begin_layout Itemize
23588 \begin_inset Flex Code
23589 status collapsed
23590
23591 \begin_layout Plain Layout
23592 {%ifentrytype:<type>%[[true]][[false]]}
23593 \end_layout
23594
23595 \end_inset
23596
23597 : process the 
23598 \begin_inset Quotes eld
23599 \end_inset
23600
23601 true
23602 \begin_inset Quotes erd
23603 \end_inset
23604
23605  if the current entry type matches 
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 <type>
23611 \end_layout
23612
23613 \end_inset
23614
23615 , else the false part (e.g., in a citation definition: 
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23621 \end_layout
23622
23623 \end_inset
23624
23625 )
23626 \end_layout
23627
23628 \begin_layout Itemize
23629 \begin_inset Flex Code
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633 {%ifmultiple:<authortype>%[[true]][[false]]}
23634 \end_layout
23635
23636 \end_inset
23637
23638 : process the 
23639 \begin_inset Quotes eld
23640 \end_inset
23641
23642 true
23643 \begin_inset Quotes erd
23644 \end_inset
23645
23646  if the current author type (author, editor etc.) has multiple authors, else
23647  the false part (e.g., in a bibliography definition: 
23648 \begin_inset Flex Code
23649 status collapsed
23650
23651 \begin_layout Plain Layout
23652 {%ifmultiple:editor%[[eds.]][[ed.]]}
23653 \end_layout
23654
23655 \end_inset
23656
23657 )
23658 \end_layout
23659
23660 \begin_layout Itemize
23661 \begin_inset Flex Code
23662 status collapsed
23663
23664 \begin_layout Plain Layout
23665 {%ifqualified%[[true]][[false]]}
23666 \end_layout
23667
23668 \end_inset
23669
23670 : process the 
23671 \begin_inset Quotes eld
23672 \end_inset
23673
23674 true
23675 \begin_inset Quotes erd
23676 \end_inset
23677
23678  part if the current citation is a qualified citation list (a specific 
23679 \family sans
23680 Biblatex
23681 \family default
23682  format for multi-reference citations), the false part if this is not the
23683  case.
23684 \end_layout
23685
23686 \begin_layout Standard
23687 We said that 
23688 \begin_inset Flex Code
23689 status collapsed
23690
23691 \begin_layout Plain Layout
23692 %author%
23693 \end_layout
23694
23695 \end_inset
23696
23697  prints the author key as it is recorded in the bibliography file.
23698  This might not be what you want, since it will result in a string such
23699  as 
23700 \begin_inset Quotes eld
23701 \end_inset
23702
23703 Miller, Peter and Smith, Mary and White, Jane
23704 \begin_inset Quotes erd
23705 \end_inset
23706
23707  (since 
23708 \begin_inset Quotes eld
23709 \end_inset
23710
23711 and
23712 \begin_inset Quotes erd
23713 \end_inset
23714
23715  is used by Bib\SpecialChar TeX
23716  to delimit authors).
23717  \SpecialChar LyX
23718  therefore provides some methods to get properly formatted name lists (which
23719  will also get translated).
23720  The following keys are provided:
23721 \end_layout
23722
23723 \begin_layout Enumerate
23724 For name lists with pre- and surname, suitable for the main authors/editors
23725  of a bibliography item.
23726  The 
23727 \begin_inset Flex Code
23728 status collapsed
23729
23730 \begin_layout Plain Layout
23731 <nametype>
23732 \end_layout
23733
23734 \end_inset
23735
23736  part denotes the kind of list that is requested (e.g.
23737  
23738 \begin_inset Flex Code
23739 status collapsed
23740
23741 \begin_layout Plain Layout
23742 <nametype:author>
23743 \end_layout
23744
23745 \end_inset
23746
23747 ):
23748 \end_layout
23749
23750 \begin_deeper
23751 \begin_layout Itemize
23752 \begin_inset Flex Code
23753 status collapsed
23754
23755 \begin_layout Plain Layout
23756 %abbrvnames:<nametype>%
23757 \end_layout
23758
23759 \end_inset
23760
23761 : Provides a name list which is abbreviated (with 
23762 \begin_inset Quotes eld
23763 \end_inset
23764
23765 et al.
23766 \begin_inset Quotes erd
23767 \end_inset
23768
23769 ) when 
23770 \begin_inset Flex Code
23771 status collapsed
23772
23773 \begin_layout Plain Layout
23774 MaxCiteNames
23775 \end_layout
23776
23777 \end_inset
23778
23779  is reached.
23780 \end_layout
23781
23782 \begin_layout Itemize
23783 \begin_inset Flex Code
23784 status collapsed
23785
23786 \begin_layout Plain Layout
23787 %fullnames:<nametype>%
23788 \end_layout
23789
23790 \end_inset
23791
23792 : Provides a full name list (never abbreviated with 
23793 \begin_inset Quotes eld
23794 \end_inset
23795
23796 et al.
23797 \begin_inset Quotes erd
23798 \end_inset
23799
23800 ).
23801 \end_layout
23802
23803 \begin_layout Itemize
23804 \begin_inset Flex Code
23805 status collapsed
23806
23807 \begin_layout Plain Layout
23808 %forceabbrvnames:<nametype>%
23809 \end_layout
23810
23811 \end_inset
23812
23813 : Provides a name list which is always abbreviated (with 
23814 \begin_inset Quotes eld
23815 \end_inset
23816
23817 et al.
23818 \begin_inset Quotes erd
23819 \end_inset
23820
23821 ) irrespective of 
23822 \begin_inset Flex Code
23823 status collapsed
23824
23825 \begin_layout Plain Layout
23826 MaxCiteNames
23827 \end_layout
23828
23829 \end_inset
23830
23831 .
23832 \end_layout
23833
23834 \end_deeper
23835 \begin_layout Enumerate
23836 Alternative name lists with pre- and surname, if the order of pre- and surname
23837  inside the bibliography item differs (as in: 
23838 \begin_inset Quotes eld
23839 \end_inset
23840
23841 Miller, John: Some text, in: Mary Smith, ed.: A volume
23842 \begin_inset Quotes erd
23843 \end_inset
23844
23845 ):
23846 \end_layout
23847
23848 \begin_deeper
23849 \begin_layout Itemize
23850 \begin_inset Flex Code
23851 status collapsed
23852
23853 \begin_layout Plain Layout
23854 %abbrvbynames:<nametype>%
23855 \end_layout
23856
23857 \end_inset
23858
23859 : Provides a name list which is abbreviated (with 
23860 \begin_inset Quotes eld
23861 \end_inset
23862
23863 et al.
23864 \begin_inset Quotes erd
23865 \end_inset
23866
23867 ) when 
23868 \begin_inset Flex Code
23869 status collapsed
23870
23871 \begin_layout Plain Layout
23872 MaxCiteNames
23873 \end_layout
23874
23875 \end_inset
23876
23877  is reached.
23878 \end_layout
23879
23880 \begin_layout Itemize
23881 \begin_inset Flex Code
23882 status collapsed
23883
23884 \begin_layout Plain Layout
23885 %fullbynames:<nametype>%
23886 \end_layout
23887
23888 \end_inset
23889
23890 : Provides a full name list (never abbreviated with 
23891 \begin_inset Quotes eld
23892 \end_inset
23893
23894 et al.
23895 \begin_inset Quotes erd
23896 \end_inset
23897
23898 ).
23899 \end_layout
23900
23901 \begin_layout Itemize
23902 \begin_inset Flex Code
23903 status collapsed
23904
23905 \begin_layout Plain Layout
23906 %forceabbrvbynames:<nametype>%
23907 \end_layout
23908
23909 \end_inset
23910
23911 : Provides a name list which is always abbreviated (with 
23912 \begin_inset Quotes eld
23913 \end_inset
23914
23915 et al.
23916 \begin_inset Quotes erd
23917 \end_inset
23918
23919 ) irrespective of 
23920 \begin_inset Flex Code
23921 status collapsed
23922
23923 \begin_layout Plain Layout
23924 MaxCiteNames
23925 \end_layout
23926
23927 \end_inset
23928
23929 .
23930 \end_layout
23931
23932 \end_deeper
23933 \begin_layout Enumerate
23934 And finally name lists which consist of family names only, as used in author-yea
23935 r citation labels.
23936  These do not take a 
23937 \begin_inset Flex Code
23938 status collapsed
23939
23940 \begin_layout Plain Layout
23941 <nametype>
23942 \end_layout
23943
23944 \end_inset
23945
23946  part, but always return either an author list or, if this does not exist,
23947  an editor list (as common in author-year labels):
23948 \end_layout
23949
23950 \begin_deeper
23951 \begin_layout Itemize
23952 \begin_inset Flex Code
23953 status collapsed
23954
23955 \begin_layout Plain Layout
23956 %abbrvciteauthor%
23957 \end_layout
23958
23959 \end_inset
23960
23961 : Provides a name list which is abbreviated (with 
23962 \begin_inset Quotes eld
23963 \end_inset
23964
23965 et al.
23966 \begin_inset Quotes erd
23967 \end_inset
23968
23969 ) when 
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 MaxCiteNames
23975 \end_layout
23976
23977 \end_inset
23978
23979  is reached.
23980 \end_layout
23981
23982 \begin_layout Itemize
23983 \begin_inset Flex Code
23984 status collapsed
23985
23986 \begin_layout Plain Layout
23987 %fullciteauthor%
23988 \end_layout
23989
23990 \end_inset
23991
23992 : Provides a full name list (never abbreviated with 
23993 \begin_inset Quotes eld
23994 \end_inset
23995
23996 et al.
23997 \begin_inset Quotes erd
23998 \end_inset
23999
24000 ).
24001 \end_layout
24002
24003 \begin_layout Itemize
24004 \begin_inset Flex Code
24005 status collapsed
24006
24007 \begin_layout Plain Layout
24008 %forceabbrvciteauthor%
24009 \end_layout
24010
24011 \end_inset
24012
24013 : Provides a name list which is always abbreviated (with 
24014 \begin_inset Quotes eld
24015 \end_inset
24016
24017 et al.
24018 \begin_inset Quotes erd
24019 \end_inset
24020
24021 ) irrespective of 
24022 \begin_inset Flex Code
24023 status collapsed
24024
24025 \begin_layout Plain Layout
24026 MaxCiteNames
24027 \end_layout
24028
24029 \end_inset
24030
24031 .
24032 \end_layout
24033
24034 \end_deeper
24035 \begin_layout Standard
24036 The order of pre- and surname in the former two lists can be adjusted by
24037  these macros:
24038 \end_layout
24039
24040 \begin_layout Itemize
24041 \begin_inset Flex Code
24042 status collapsed
24043
24044 \begin_layout Plain Layout
24045 !firstnameform %surname%, %prename%
24046 \end_layout
24047
24048 \end_inset
24049
24050  (first author in lists of type 1)
24051 \end_layout
24052
24053 \begin_layout Itemize
24054 \begin_inset Flex Code
24055 status collapsed
24056
24057 \begin_layout Plain Layout
24058 !othernameform %surname%, %prename%
24059 \end_layout
24060
24061 \end_inset
24062
24063  (other authors in lists of type 1)
24064 \end_layout
24065
24066 \begin_layout Itemize
24067 \begin_inset Flex Code
24068 status collapsed
24069
24070 \begin_layout Plain Layout
24071 !firstbynameform %prename% %surname%
24072 \end_layout
24073
24074 \end_inset
24075
24076  (first author in lists of type 2)
24077 \end_layout
24078
24079 \begin_layout Itemize
24080 \begin_inset Flex Code
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084 !otherbynameform %prename% %surname%
24085 \end_layout
24086
24087 \end_inset
24088
24089  (other authors in lists of type 2)
24090 \end_layout
24091
24092 \begin_layout Standard
24093 This allows you to configure namings like 
24094 \begin_inset Quotes eld
24095 \end_inset
24096
24097 Miller, Peter and Mary Smith: \SpecialChar ldots
24098 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24099
24100 \begin_inset Quotes erd
24101 \end_inset
24102
24103 .
24104 \end_layout
24105
24106 \begin_layout Standard
24107 There is one other piece of syntax available in definitions, which looks
24108  like this: 
24109 \begin_inset Flex Code
24110 status collapsed
24111
24112 \begin_layout Plain Layout
24113 {!<i>!}
24114 \end_layout
24115
24116 \end_inset
24117
24118 .
24119  This defines a piece of formatting information that is to be used when
24120  creating 
24121 \begin_inset Quotes eld
24122 \end_inset
24123
24124 rich text
24125 \begin_inset Quotes erd
24126 \end_inset
24127
24128 .
24129  Obviously, we do not want to output HTML tags when writing plain text,
24130  so they should be wrapped in 
24131 \begin_inset Quotes eld
24132 \end_inset
24133
24134 {!
24135 \begin_inset Quotes erd
24136 \end_inset
24137
24138  and 
24139 \begin_inset Quotes eld
24140 \end_inset
24141
24142 !}
24143 \begin_inset Quotes erd
24144 \end_inset
24145
24146 .
24147 \end_layout
24148
24149 \begin_layout Standard
24150 Two special sorts of definitions are also possible in a 
24151 \begin_inset Flex Code
24152 status collapsed
24153
24154 \begin_layout Plain Layout
24155 CiteFormat
24156 \end_layout
24157
24158 \end_inset
24159
24160  block.
24161  An example of the first would be:
24162 \end_layout
24163
24164 \begin_layout LyX-Code
24165 !quotetitle 
24166 \begin_inset Quotes eld
24167 \end_inset
24168
24169 %title%
24170 \begin_inset Quotes erd
24171 \end_inset
24172
24173
24174 \end_layout
24175
24176 \begin_layout Standard
24177 This is an abbreviation, or macro, and it can be used by treating it as
24178  if it were a key: 
24179 \begin_inset Flex Code
24180 status collapsed
24181
24182 \begin_layout Plain Layout
24183 %!quotetitle%
24184 \end_layout
24185
24186 \end_inset
24187
24188 .
24189  \SpecialChar LyX
24190  will treat 
24191 \begin_inset Flex Code
24192 status collapsed
24193
24194 \begin_layout Plain Layout
24195 %!quotetitle%
24196 \end_layout
24197
24198 \end_inset
24199
24200  exactly as it would treat its definition.
24201  So, let us issue the obvious 
24202 \emph on
24203 warning
24204 \emph default
24205 .
24206  Do not do this:
24207 \end_layout
24208
24209 \begin_layout LyX-Code
24210 !funfun %funfun%
24211 \end_layout
24212
24213 \begin_layout Standard
24214 or anything like it.
24215  \SpecialChar LyX
24216  shouldn't go into an infinite loop, but it may go into a long one before
24217  it gives up.
24218 \end_layout
24219
24220 \begin_layout Standard
24221 The second sort of special definition might look like this:
24222 \end_layout
24223
24224 \begin_layout LyX-Code
24225 B_pptext pp.
24226 \end_layout
24227
24228 \begin_layout Standard
24229 This defines a translatable piece of text, which allows relevant parts of
24230  the bibliography or citation to be translated.
24231  It can be included in a definition by treating it as a key: 
24232 \begin_inset Flex Code
24233 status collapsed
24234
24235 \begin_layout Plain Layout
24236 %B_pptext%
24237 \end_layout
24238
24239 \end_inset
24240
24241 .
24242  Note that there are two different translation paths: All definitions starting
24243  with 
24244 \begin_inset Flex Code
24245 status collapsed
24246
24247 \begin_layout Plain Layout
24248 B_
24249 \end_layout
24250
24251 \end_inset
24252
24253 , such as in the example above, will be translated to the currently active
24254  buffer language (so the translation will match the generated document).
24255  All definitions starting with underscore only will be translated to the
24256  GUI language.
24257  This is the proper translation for strings that only occur in the dialogs
24258  or on buttons, such as this one:
24259 \end_layout
24260
24261 \begin_layout LyX-Code
24262 _addtobib Add to bibliography only.
24263 \end_layout
24264
24265 \begin_layout Standard
24266 Several of these translatable strings are predefined in 
24267 \begin_inset Flex Code
24268 status collapsed
24269
24270 \begin_layout Plain Layout
24271 stdciteformats.inc
24272 \end_layout
24273
24274 \end_inset
24275
24276  and the diverse 
24277 \begin_inset Flex Code
24278 status collapsed
24279
24280 \begin_layout Plain Layout
24281 *.citeengine
24282 \end_layout
24283
24284 \end_inset
24285
24286  files.
24287  Note that these are not macros, in the sense just defined.
24288  They will not be expanded.
24289 \end_layout
24290
24291 \begin_layout Standard
24292 So here then is an example that uses several of these features:
24293 \begin_inset VSpace defskip
24294 \end_inset
24295
24296
24297 \end_layout
24298
24299 \begin_layout Standard
24300 \noindent
24301
24302 \family sans
24303 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24304 \end_layout
24305
24306 \begin_layout Standard
24307 \begin_inset VSpace defskip
24308 \end_inset
24309
24310 This defines a macro that prints the author, followed by a comma, if the
24311  
24312 \begin_inset Flex Code
24313 status collapsed
24314
24315 \begin_layout Plain Layout
24316 author
24317 \end_layout
24318
24319 \end_inset
24320
24321  key is defined, or else prints the name of the editor, followed by the
24322  
24323 \begin_inset Flex Code
24324 status collapsed
24325
24326 \begin_layout Plain Layout
24327 B_edtext
24328 \end_layout
24329
24330 \end_inset
24331
24332  or its translation (it is by default 
24333 \begin_inset Quotes eld
24334 \end_inset
24335
24336 ed.
24337 \begin_inset Quotes erd
24338 \end_inset
24339
24340 ), if the 
24341 \begin_inset Flex Code
24342 status collapsed
24343
24344 \begin_layout Plain Layout
24345 editor
24346 \end_layout
24347
24348 \end_inset
24349
24350  key is defined.
24351  Note that this is in fact defined in 
24352 \begin_inset Flex Code
24353 status collapsed
24354
24355 \begin_layout Plain Layout
24356 stdciteformats.inc
24357 \end_layout
24358
24359 \end_inset
24360
24361 , so you can use it in your own definitions, or re-definitions, if you load
24362  that file first.
24363 \end_layout
24364
24365 \begin_layout Section
24366 \begin_inset CommandInset label
24367 LatexCommand label
24368 name "sec:Tags-for-XHTML"
24369
24370 \end_inset
24371
24372 Tags for XHTML output
24373 \end_layout
24374
24375 \begin_layout Standard
24376 As with \SpecialChar LaTeX
24377  or DocBook, the format of \SpecialChar LyX
24378 's XHTML output is also controlled by
24379  layout information.
24380  In general, \SpecialChar LyX
24381  provides sensible defaults and, as mentioned earlier, it will
24382  even construct default CSS style rules from the other layout tags.
24383  For example, \SpecialChar LyX
24384  will attempt to use the information provided in the 
24385 \begin_inset Flex Code
24386 status collapsed
24387
24388 \begin_layout Plain Layout
24389 Font
24390 \end_layout
24391
24392 \end_inset
24393
24394  declaration for the Chapter style to write CSS that will appropriately
24395  format chapter headings.
24396 \end_layout
24397
24398 \begin_layout Standard
24399 In many cases, then, you may not have to do anything at all to get acceptable
24400  XHTML output for your own environments, custom insets, and so forth.
24401  But in some cases you will, and so \SpecialChar LyX
24402  provides a number of layout tags that
24403  can be used to customize the XHTML and CSS that are generated.
24404 \end_layout
24405
24406 \begin_layout Standard
24407 Note that there are two tags, 
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412 HTMLPreamble
24413 \end_layout
24414
24415 \end_inset
24416
24417  and 
24418 \begin_inset Flex Code
24419 status collapsed
24420
24421 \begin_layout Plain Layout
24422 AddToHTMLPreamble
24423 \end_layout
24424
24425 \end_inset
24426
24427  that may appear outside style and inset declarations.
24428  See 
24429 \begin_inset CommandInset ref
24430 LatexCommand ref
24431 reference "subsec:General-text-class"
24432
24433 \end_inset
24434
24435  for details on these.
24436 \end_layout
24437
24438 \begin_layout Subsection
24439 \begin_inset CommandInset label
24440 LatexCommand label
24441 name "subsec:Paragraph-Style-XHTML"
24442
24443 \end_inset
24444
24445 Paragraph styles
24446 \end_layout
24447
24448 \begin_layout Standard
24449 The sort of XHTML \SpecialChar LyX
24450  outputs for a paragraph depends upon whether we are dealing
24451  with a normal paragraph, a command, or an environment, where this is itself
24452  determined by the contents of the corresponding 
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 \SpecialChar LaTeX
24458 Type
24459 \end_layout
24460
24461 \end_inset
24462
24463  tag.
24464  
24465 \end_layout
24466
24467 \begin_layout Standard
24468 For a command or normal paragraph, the output XHTML has the following form:
24469 \end_layout
24470
24471 \begin_layout LyX-Code
24472
24473 \family sans
24474 <tag attr=
24475 \begin_inset Quotes erd
24476 \end_inset
24477
24478 value
24479 \begin_inset Quotes erd
24480 \end_inset
24481
24482 >
24483 \end_layout
24484
24485 \begin_layout LyX-Code
24486
24487 \family sans
24488 <labeltag attr=
24489 \begin_inset Quotes erd
24490 \end_inset
24491
24492 value
24493 \begin_inset Quotes erd
24494 \end_inset
24495
24496 >Label</labeltag>
24497 \end_layout
24498
24499 \begin_layout LyX-Code
24500
24501 \family sans
24502 Contents of the paragraph.
24503 \end_layout
24504
24505 \begin_layout LyX-Code
24506
24507 \family sans
24508 </tag>
24509 \end_layout
24510
24511 \begin_layout Standard
24512 The label tags are of course omitted if the paragraph does not have a label.
24513 \end_layout
24514
24515 \begin_layout Standard
24516 For an environment that is not some sort of list, the XHTML takes this form:
24517 \end_layout
24518
24519 \begin_layout LyX-Code
24520
24521 \family sans
24522 <tag attr=
24523 \begin_inset Quotes erd
24524 \end_inset
24525
24526 value
24527 \begin_inset Quotes erd
24528 \end_inset
24529
24530 >
24531 \end_layout
24532
24533 \begin_layout LyX-Code
24534
24535 \family sans
24536 <itemtag attr=
24537 \begin_inset Quotes erd
24538 \end_inset
24539
24540 value
24541 \begin_inset Quotes erd
24542 \end_inset
24543
24544 ><labeltag attr=
24545 \begin_inset Quotes erd
24546 \end_inset
24547
24548 value
24549 \begin_inset Quotes erd
24550 \end_inset
24551
24552 >Environment Label</labeltag>First paragraph.</itemtag>
24553 \end_layout
24554
24555 \begin_layout LyX-Code
24556
24557 \family sans
24558 <itemtag>Second paragraph.</itemtag>
24559 \end_layout
24560
24561 \begin_layout LyX-Code
24562
24563 \family sans
24564 </tag>
24565 \end_layout
24566
24567 \begin_layout Standard
24568 Note that the label is output only for the first paragraph, as it should
24569  be for a theorem, for example.
24570  
24571 \end_layout
24572
24573 \begin_layout Standard
24574 For a list, we have one of these forms:
24575 \end_layout
24576
24577 \begin_layout LyX-Code
24578
24579 \family sans
24580 <tag attr=
24581 \begin_inset Quotes erd
24582 \end_inset
24583
24584 value
24585 \begin_inset Quotes erd
24586 \end_inset
24587
24588 >
24589 \end_layout
24590
24591 \begin_layout LyX-Code
24592
24593 \family sans
24594 <itemtag attr=
24595 \begin_inset Quotes erd
24596 \end_inset
24597
24598 value
24599 \begin_inset Quotes erd
24600 \end_inset
24601
24602 ><labeltag attr=
24603 \begin_inset Quotes erd
24604 \end_inset
24605
24606 value
24607 \begin_inset Quotes erd
24608 \end_inset
24609
24610 >List Label</labeltag>First item.</itemtag>
24611 \end_layout
24612
24613 \begin_layout LyX-Code
24614
24615 \family sans
24616 <itemtag attr=
24617 \begin_inset Quotes erd
24618 \end_inset
24619
24620 value
24621 \begin_inset Quotes erd
24622 \end_inset
24623
24624 ><labeltag attr=
24625 \begin_inset Quotes erd
24626 \end_inset
24627
24628 value
24629 \begin_inset Quotes erd
24630 \end_inset
24631
24632 >List Label</labeltag>Second item.</itemtag>
24633 \end_layout
24634
24635 \begin_layout LyX-Code
24636
24637 \family sans
24638 </tag>
24639 \end_layout
24640
24641 \begin_layout LyX-Code
24642
24643 \end_layout
24644
24645 \begin_layout LyX-Code
24646
24647 \family sans
24648 <tag attr=
24649 \begin_inset Quotes erd
24650 \end_inset
24651
24652 value
24653 \begin_inset Quotes erd
24654 \end_inset
24655
24656 >
24657 \end_layout
24658
24659 \begin_layout LyX-Code
24660
24661 \family sans
24662 <labeltag attr=
24663 \begin_inset Quotes erd
24664 \end_inset
24665
24666 value
24667 \begin_inset Quotes erd
24668 \end_inset
24669
24670 >List Label</labeltag><itemtag attr=
24671 \begin_inset Quotes erd
24672 \end_inset
24673
24674 value
24675 \begin_inset Quotes erd
24676 \end_inset
24677
24678 >First item.</itemtag>
24679 \end_layout
24680
24681 \begin_layout LyX-Code
24682
24683 \family sans
24684 <labeltag attr=
24685 \begin_inset Quotes erd
24686 \end_inset
24687
24688 value
24689 \begin_inset Quotes erd
24690 \end_inset
24691
24692 >List Label</labeltag><itemtag attr=
24693 \begin_inset Quotes erd
24694 \end_inset
24695
24696 value
24697 \begin_inset Quotes erd
24698 \end_inset
24699
24700 >Second item.</itemtag>
24701 \end_layout
24702
24703 \begin_layout LyX-Code
24704
24705 \family sans
24706 </tag>
24707 \end_layout
24708
24709 \begin_layout Standard
24710 Note the different orders of 
24711 \begin_inset Flex Code
24712 status collapsed
24713
24714 \begin_layout Plain Layout
24715 labeltag
24716 \end_layout
24717
24718 \end_inset
24719
24720  and 
24721 \begin_inset Flex Code
24722 status collapsed
24723
24724 \begin_layout Plain Layout
24725 itemtag
24726 \end_layout
24727
24728 \end_inset
24729
24730 .
24731  Which order we get depends upon the setting of 
24732 \begin_inset Flex Code
24733 status collapsed
24734
24735 \begin_layout Plain Layout
24736 HTMLLabelFirst
24737 \end_layout
24738
24739 \end_inset
24740
24741 : If 
24742 \begin_inset Flex Code
24743 status collapsed
24744
24745 \begin_layout Plain Layout
24746 HTMLLabelFirst
24747 \end_layout
24748
24749 \end_inset
24750
24751  is false (the default), you get the first of these, with the label within
24752  the item; if true, you get the second, with the label outside the item.
24753 \end_layout
24754
24755 \begin_layout Standard
24756 The specific tags and attributes output for each paragraph type can be controlle
24757 d by means of the layout tags we are about to describe.
24758  As mentioned earlier, however, \SpecialChar LyX
24759  uses sensible defaults for many of these,
24760  so you often may not need to do very much to get good XHTML output.
24761  Think of the available tags as there so you can tweak things to your liking.
24762 \end_layout
24763
24764 \begin_layout Description
24765 \begin_inset Flex Code
24766 status collapsed
24767
24768 \begin_layout Plain Layout
24769 HTMLAttr
24770 \end_layout
24771
24772 \end_inset
24773
24774  [
24775 \begin_inset Flex Code
24776 status collapsed
24777
24778 \begin_layout Plain Layout
24779 string
24780 \end_layout
24781
24782 \end_inset
24783
24784 ] Specifies attribute information to be output with the main tag.
24785  For example, 
24786 \begin_inset Quotes eld
24787 \end_inset
24788
24789
24790 \begin_inset Flex Code
24791 status collapsed
24792
24793 \begin_layout Plain Layout
24794 class=`mydiv'
24795 \end_layout
24796
24797 \end_inset
24798
24799
24800 \begin_inset Quotes erd
24801 \end_inset
24802
24803 .
24804  By default, \SpecialChar LyX
24805  will output 
24806 \begin_inset Quotes eld
24807 \end_inset
24808
24809
24810 \begin_inset Flex Code
24811 status collapsed
24812
24813 \begin_layout Plain Layout
24814 class=`layoutname'
24815 \end_layout
24816
24817 \end_inset
24818
24819
24820 \begin_inset Quotes erd
24821 \end_inset
24822
24823 , where 
24824 \begin_inset Flex Code
24825 status collapsed
24826
24827 \begin_layout Plain Layout
24828 layoutname
24829 \end_layout
24830
24831 \end_inset
24832
24833  is the \SpecialChar LyX
24834  name of the layout, made lowercase, for example: chapter.
24835  This should 
24836 \emph on
24837 not
24838 \emph default
24839  contain any style information.
24840  Use 
24841 \begin_inset Flex Code
24842 status collapsed
24843
24844 \begin_layout Plain Layout
24845 HTMLStyle
24846 \end_layout
24847
24848 \end_inset
24849
24850  for that purpose.
24851 \end_layout
24852
24853 \begin_layout Description
24854 \begin_inset Flex Code
24855 status collapsed
24856
24857 \begin_layout Plain Layout
24858 HTMLForceCSS
24859 \end_layout
24860
24861 \end_inset
24862
24863  [
24864 \begin_inset Flex Code
24865 status collapsed
24866
24867 \begin_layout Plain Layout
24868
24869 \emph on
24870 0
24871 \emph default
24872 ,1
24873 \end_layout
24874
24875 \end_inset
24876
24877 ] Whether to output the default CSS information \SpecialChar LyX
24878  generates for this layout,
24879  even if additional information is explicitly provided via 
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 HTMLStyle
24885 \end_layout
24886
24887 \end_inset
24888
24889 .
24890  Setting this to 
24891 \begin_inset Flex Code
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 1
24896 \end_layout
24897
24898 \end_inset
24899
24900  allows you to alter or augment the generated CSS, rather than to override
24901  it completely.
24902  Default is 
24903 \begin_inset Flex Code
24904 status collapsed
24905
24906 \begin_layout Plain Layout
24907 0
24908 \end_layout
24909
24910 \end_inset
24911
24912 .
24913 \end_layout
24914
24915 \begin_layout Description
24916 \begin_inset Flex Code
24917 status collapsed
24918
24919 \begin_layout Plain Layout
24920 HTMLItem
24921 \end_layout
24922
24923 \end_inset
24924
24925  [
24926 \begin_inset Flex Code
24927 status collapsed
24928
24929 \begin_layout Plain Layout
24930 string
24931 \end_layout
24932
24933 \end_inset
24934
24935 ] The tag to be used for individual paragraphs of environments, replacing
24936  
24937 \begin_inset Flex Code
24938 status collapsed
24939
24940 \begin_layout Plain Layout
24941 itemtag
24942 \end_layout
24943
24944 \end_inset
24945
24946  in the examples above.
24947  Defaults to 
24948 \begin_inset Flex Code
24949 status collapsed
24950
24951 \begin_layout Plain Layout
24952 div
24953 \end_layout
24954
24955 \end_inset
24956
24957 .
24958 \end_layout
24959
24960 \begin_layout Description
24961 \begin_inset Flex Code
24962 status collapsed
24963
24964 \begin_layout Plain Layout
24965 HTMLItemAttr
24966 \end_layout
24967
24968 \end_inset
24969
24970  [
24971 \begin_inset Flex Code
24972 status collapsed
24973
24974 \begin_layout Plain Layout
24975 string
24976 \end_layout
24977
24978 \end_inset
24979
24980 ] Attributes for the item tag.
24981  Defaults to
24982 \begin_inset Newline newline
24983 \end_inset
24984
24985
24986 \begin_inset Quotes eld
24987 \end_inset
24988
24989
24990 \begin_inset Flex Code
24991 status collapsed
24992
24993 \begin_layout Plain Layout
24994 class=`layoutname_item'
24995 \end_layout
24996
24997 \end_inset
24998
24999
25000 \begin_inset Quotes erd
25001 \end_inset
25002
25003 .
25004  This should 
25005 \emph on
25006 not
25007 \emph default
25008  contain any style information.
25009  Use 
25010 \begin_inset Flex Code
25011 status collapsed
25012
25013 \begin_layout Plain Layout
25014 HTMLStyle
25015 \end_layout
25016
25017 \end_inset
25018
25019  for that purpose.
25020 \end_layout
25021
25022 \begin_layout Description
25023 \begin_inset Flex Code
25024 status collapsed
25025
25026 \begin_layout Plain Layout
25027 HTMLLabel
25028 \end_layout
25029
25030 \end_inset
25031
25032  [
25033 \begin_inset Flex Code
25034 status collapsed
25035
25036 \begin_layout Plain Layout
25037 string
25038 \end_layout
25039
25040 \end_inset
25041
25042 ] The tag to be used for paragraph and item labels, replacing 
25043 \begin_inset Flex Code
25044 status collapsed
25045
25046 \begin_layout Plain Layout
25047 labeltag
25048 \end_layout
25049
25050 \end_inset
25051
25052  in the examples above.
25053  Defaults to 
25054 \begin_inset Flex Code
25055 status collapsed
25056
25057 \begin_layout Plain Layout
25058 span
25059 \end_layout
25060
25061 \end_inset
25062
25063 , unless 
25064 \begin_inset Flex Code
25065 status collapsed
25066
25067 \begin_layout Plain Layout
25068 LabelType
25069 \end_layout
25070
25071 \end_inset
25072
25073  is either 
25074 \begin_inset Flex Code
25075 status collapsed
25076
25077 \begin_layout Plain Layout
25078 Top_Environment
25079 \end_layout
25080
25081 \end_inset
25082
25083  or 
25084 \begin_inset Flex Code
25085 status collapsed
25086
25087 \begin_layout Plain Layout
25088 Centered_Top_Environment
25089 \end_layout
25090
25091 \end_inset
25092
25093 , in which case it defaults to 
25094 \begin_inset Flex Code
25095 status collapsed
25096
25097 \begin_layout Plain Layout
25098 div
25099 \end_layout
25100
25101 \end_inset
25102
25103 .
25104 \end_layout
25105
25106 \begin_layout Description
25107 \begin_inset Flex Code
25108 status collapsed
25109
25110 \begin_layout Plain Layout
25111 HTMLLabelAttr
25112 \end_layout
25113
25114 \end_inset
25115
25116  [
25117 \begin_inset Flex Code
25118 status collapsed
25119
25120 \begin_layout Plain Layout
25121 string
25122 \end_layout
25123
25124 \end_inset
25125
25126 ] Attributes for the label tag.
25127  Defaults to
25128 \begin_inset Newline newline
25129 \end_inset
25130
25131
25132 \begin_inset Quotes eld
25133 \end_inset
25134
25135
25136 \begin_inset Flex Code
25137 status collapsed
25138
25139 \begin_layout Plain Layout
25140 class=`layoutname_label'
25141 \end_layout
25142
25143 \end_inset
25144
25145
25146 \begin_inset Quotes erd
25147 \end_inset
25148
25149 .
25150  This should 
25151 \emph on
25152 not
25153 \emph default
25154  contain any style information.
25155  Use 
25156 \begin_inset Flex Code
25157 status collapsed
25158
25159 \begin_layout Plain Layout
25160 HTMLStyle
25161 \end_layout
25162
25163 \end_inset
25164
25165  for that purpose.
25166 \end_layout
25167
25168 \begin_layout Description
25169 \begin_inset Flex Code
25170 status collapsed
25171
25172 \begin_layout Plain Layout
25173 HTMLLabelFirst
25174 \end_layout
25175
25176 \end_inset
25177
25178  [
25179 \begin_inset Flex Code
25180 status collapsed
25181
25182 \begin_layout Plain Layout
25183
25184 \emph on
25185 0
25186 \emph default
25187 ,1
25188 \end_layout
25189
25190 \end_inset
25191
25192 ] Meaningful only for list-like environments, this tag controls whether
25193  the label tag is output before or inside the item tag.
25194  This is used, for example, in the description environment, where we want
25195  `
25196 \begin_inset Flex Code
25197 status collapsed
25198
25199 \begin_layout Plain Layout
25200 <dt>\SpecialChar ldots
25201 </dt><dd>\SpecialChar ldots
25202 </dd>
25203 \end_layout
25204
25205 \end_inset
25206
25207 .
25208  Default is 
25209 \begin_inset Flex Code
25210 status collapsed
25211
25212 \begin_layout Plain Layout
25213 0
25214 \end_layout
25215
25216 \end_inset
25217
25218 : The label tag is output inside the item tag.
25219 \end_layout
25220
25221 \begin_layout Description
25222 \begin_inset Flex Code
25223 status collapsed
25224
25225 \begin_layout Plain Layout
25226 HTMLPreamble
25227 \end_layout
25228
25229 \end_inset
25230
25231  Information to be output in the 
25232 \begin_inset Flex Code
25233 status collapsed
25234
25235 \begin_layout Plain Layout
25236 <head>
25237 \end_layout
25238
25239 \end_inset
25240
25241  section when this style is used.
25242  This might, for example, be used to include a 
25243 \begin_inset Flex Code
25244 status collapsed
25245
25246 \begin_layout Plain Layout
25247 <script>
25248 \end_layout
25249
25250 \end_inset
25251
25252  block defining an 
25253 \begin_inset Flex Code
25254 status collapsed
25255
25256 \begin_layout Plain Layout
25257 onclick
25258 \end_layout
25259
25260 \end_inset
25261
25262  handler.
25263 \end_layout
25264
25265 \begin_layout Description
25266 \begin_inset Flex Code
25267 status collapsed
25268
25269 \begin_layout Plain Layout
25270 HTMLStyle
25271 \end_layout
25272
25273 \end_inset
25274
25275  CSS style information to be included when this style is used.
25276  Note that this will automatically be wrapped in a layout-generated 
25277 \begin_inset Flex Code
25278 status collapsed
25279
25280 \begin_layout Plain Layout
25281 <style>
25282 \end_layout
25283
25284 \end_inset
25285
25286  block, so only the CSS itself need be included.
25287  Must end with 
25288 \begin_inset Flex Code
25289 status collapsed
25290
25291 \begin_layout Plain Layout
25292 EndHTMLStyle
25293 \end_layout
25294
25295 \end_inset
25296
25297 .
25298 \end_layout
25299
25300 \begin_layout Description
25301 \begin_inset Flex Code
25302 status collapsed
25303
25304 \begin_layout Plain Layout
25305 HTMLTag
25306 \end_layout
25307
25308 \end_inset
25309
25310  [
25311 \begin_inset Flex Code
25312 status collapsed
25313
25314 \begin_layout Plain Layout
25315 string
25316 \end_layout
25317
25318 \end_inset
25319
25320 ] The tag to be used for the main label, replacing 
25321 \begin_inset Flex Code
25322 status collapsed
25323
25324 \begin_layout Plain Layout
25325 tag
25326 \end_layout
25327
25328 \end_inset
25329
25330  in the examples above.
25331  Defaults to 
25332 \begin_inset Flex Code
25333 status collapsed
25334
25335 \begin_layout Plain Layout
25336 div
25337 \end_layout
25338
25339 \end_inset
25340
25341 .
25342 \end_layout
25343
25344 \begin_layout Description
25345 \begin_inset Flex Code
25346 status collapsed
25347
25348 \begin_layout Plain Layout
25349 HTMLTitle
25350 \end_layout
25351
25352 \end_inset
25353
25354  [
25355 \begin_inset Flex Code
25356 status collapsed
25357
25358 \begin_layout Plain Layout
25359
25360 \emph on
25361 0
25362 \emph default
25363 ,1
25364 \end_layout
25365
25366 \end_inset
25367
25368 ] Marks this style as the one to be used to generate the 
25369 \begin_inset Flex Code
25370 status collapsed
25371
25372 \begin_layout Plain Layout
25373 <title>
25374 \end_layout
25375
25376 \end_inset
25377
25378  tag for the XHTML file.
25379  By default, it is false.
25380  The 
25381 \begin_inset Flex Code
25382 status collapsed
25383
25384 \begin_layout Plain Layout
25385 stdtitle.inc
25386 \end_layout
25387
25388 \end_inset
25389
25390  file sets it to true for the 
25391 \begin_inset Flex Code
25392 status collapsed
25393
25394 \begin_layout Plain Layout
25395 title
25396 \end_layout
25397
25398 \end_inset
25399
25400  environment.
25401  
25402 \end_layout
25403
25404 \begin_layout Subsection
25405 InsetLayout XHTML
25406 \end_layout
25407
25408 \begin_layout Standard
25409 The XHTML output of insets can also be controlled by information in layout
25410  files.
25411 \begin_inset Foot
25412 status collapsed
25413
25414 \begin_layout Plain Layout
25415 At present, this is true only for 
25416 \begin_inset Quotes eld
25417 \end_inset
25418
25419 text
25420 \begin_inset Quotes erd
25421 \end_inset
25422
25423  insets (insets you can type into) and is not true for 
25424 \begin_inset Quotes eld
25425 \end_inset
25426
25427 command
25428 \begin_inset Quotes erd
25429 \end_inset
25430
25431  insets (insets that are associated with dialog boxes).
25432 \end_layout
25433
25434 \end_inset
25435
25436  Here, too, \SpecialChar LyX
25437  tries to provide sensible defaults, and it constructs default
25438  CSS style rules.
25439  But everything can be customized.
25440 \end_layout
25441
25442 \begin_layout Standard
25443 The XHTML \SpecialChar LyX
25444  outputs for an inset has the following form:
25445 \end_layout
25446
25447 \begin_layout LyX-Code
25448 <tag attr=
25449 \begin_inset Quotes erd
25450 \end_inset
25451
25452 value
25453 \begin_inset Quotes erd
25454 \end_inset
25455
25456 >
25457 \end_layout
25458
25459 \begin_layout LyX-Code
25460 <labeltag>Label</labeltag>
25461 \end_layout
25462
25463 \begin_layout LyX-Code
25464 <innertag attr=
25465 \begin_inset Quotes erd
25466 \end_inset
25467
25468 value
25469 \begin_inset Quotes erd
25470 \end_inset
25471
25472 >Contents of the inset.</innertag>
25473 \end_layout
25474
25475 \begin_layout LyX-Code
25476 </tag>
25477 \end_layout
25478
25479 \begin_layout Standard
25480 If the inset permits multiple paragraphs—that is, if 
25481 \begin_inset Flex Code
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485 MultiPar
25486 \end_layout
25487
25488 \end_inset
25489
25490  is true—then the contents of the inset will itself be output as paragraphs
25491  formatted according to the styles used for those paragraphs (standard,
25492  quote, and the like).
25493  The label tag is of course omitted if the paragraph does not have a label
25494  and, at present, is always 
25495 \begin_inset Flex Code
25496 status collapsed
25497
25498 \begin_layout Plain Layout
25499 span
25500 \end_layout
25501
25502 \end_inset
25503
25504 .
25505  The inner tag is optional and, by default, does not appear.
25506 \end_layout
25507
25508 \begin_layout Standard
25509 The specific tags and attributes output for each inset can be controlled
25510  by means of the following layout tags.
25511 \end_layout
25512
25513 \begin_layout Description
25514 \begin_inset Flex Code
25515 status collapsed
25516
25517 \begin_layout Plain Layout
25518 HTMLAttr
25519 \end_layout
25520
25521 \end_inset
25522
25523  [
25524 \begin_inset Flex Code
25525 status collapsed
25526
25527 \begin_layout Plain Layout
25528 string
25529 \end_layout
25530
25531 \end_inset
25532
25533 ] Specifies attribute information to be output with the main tag.
25534  For example, 
25535 \begin_inset Quotes eld
25536 \end_inset
25537
25538
25539 \begin_inset Flex Code
25540 status collapsed
25541
25542 \begin_layout Plain Layout
25543 class=`myinset' onclick=`\SpecialChar ldots
25544 '
25545 \end_layout
25546
25547 \end_inset
25548
25549
25550 \begin_inset Quotes erd
25551 \end_inset
25552
25553 .
25554  By default, \SpecialChar LyX
25555  will output 
25556 \begin_inset Quotes eld
25557 \end_inset
25558
25559
25560 \begin_inset Flex Code
25561 status collapsed
25562
25563 \begin_layout Plain Layout
25564 class=`insetname'
25565 \end_layout
25566
25567 \end_inset
25568
25569
25570 \begin_inset Quotes erd
25571 \end_inset
25572
25573 , where 
25574 \begin_inset Flex Code
25575 status collapsed
25576
25577 \begin_layout Plain Layout
25578 insetname
25579 \end_layout
25580
25581 \end_inset
25582
25583  is the \SpecialChar LyX
25584  name of the inset, made lowercase and with non-alphanumeric characters
25585  converted to underscores, for example: footnote.
25586 \end_layout
25587
25588 \begin_layout Description
25589 \begin_inset Flex Code
25590 status collapsed
25591
25592 \begin_layout Plain Layout
25593 HTMLForceCSS
25594 \end_layout
25595
25596 \end_inset
25597
25598  [
25599 \begin_inset Flex Code
25600 status collapsed
25601
25602 \begin_layout Plain Layout
25603
25604 \emph on
25605 0
25606 \emph default
25607 ,1
25608 \end_layout
25609
25610 \end_inset
25611
25612 ] Whether to output the default CSS information \SpecialChar LyX
25613  generates for this layout,
25614  even if additional information is explicitly provided via 
25615 \begin_inset Flex Code
25616 status collapsed
25617
25618 \begin_layout Plain Layout
25619 HTMLStyle
25620 \end_layout
25621
25622 \end_inset
25623
25624 .
25625  Setting this to 
25626 \begin_inset Flex Code
25627 status collapsed
25628
25629 \begin_layout Plain Layout
25630 1
25631 \end_layout
25632
25633 \end_inset
25634
25635  allows you to alter or augment the generated CSS, rather than to override
25636  it completely.
25637  Default is 0.
25638 \end_layout
25639
25640 \begin_layout Description
25641 \begin_inset Flex Code
25642 status collapsed
25643
25644 \begin_layout Plain Layout
25645 HTMLInnerAttr
25646 \end_layout
25647
25648 \end_inset
25649
25650  [
25651 \begin_inset Flex Code
25652 status collapsed
25653
25654 \begin_layout Plain Layout
25655 string
25656 \end_layout
25657
25658 \end_inset
25659
25660 ] Attributes for the inner tag.
25661  Defaults to
25662 \begin_inset Newline newline
25663 \end_inset
25664
25665
25666 \begin_inset Quotes eld
25667 \end_inset
25668
25669
25670 \begin_inset Flex Code
25671 status collapsed
25672
25673 \begin_layout Plain Layout
25674 class=`insetname_inner'
25675 \end_layout
25676
25677 \end_inset
25678
25679
25680 \begin_inset Quotes erd
25681 \end_inset
25682
25683 .
25684 \end_layout
25685
25686 \begin_layout Description
25687 \begin_inset Flex Code
25688 status collapsed
25689
25690 \begin_layout Plain Layout
25691 HTMLInnerTag
25692 \end_layout
25693
25694 \end_inset
25695
25696  [
25697 \begin_inset Flex Code
25698 status collapsed
25699
25700 \begin_layout Plain Layout
25701 string
25702 \end_layout
25703
25704 \end_inset
25705
25706 ] The inner tag, replacing 
25707 \begin_inset Flex Code
25708 status collapsed
25709
25710 \begin_layout Plain Layout
25711 innertag
25712 \end_layout
25713
25714 \end_inset
25715
25716  in the examples above.
25717  By default, there is none.
25718 \end_layout
25719
25720 \begin_layout Description
25721 \begin_inset Flex Code
25722 status collapsed
25723
25724 \begin_layout Plain Layout
25725 HTMLIsBlock
25726 \end_layout
25727
25728 \end_inset
25729
25730  [
25731 \begin_inset Flex Code
25732 status collapsed
25733
25734 \begin_layout Plain Layout
25735 0,
25736 \emph on
25737 1
25738 \end_layout
25739
25740 \end_inset
25741
25742 ] Whether this inset represents a standalone block of text (such as a footnote)
25743  or instead represents material that is included in the surrounding text
25744  (such as a branch).
25745  Defaults to 1.
25746 \end_layout
25747
25748 \begin_layout Description
25749 \begin_inset Flex Code
25750 status collapsed
25751
25752 \begin_layout Plain Layout
25753 HTMLLabel
25754 \end_layout
25755
25756 \end_inset
25757
25758  [
25759 \begin_inset Flex Code
25760 status collapsed
25761
25762 \begin_layout Plain Layout
25763 string
25764 \end_layout
25765
25766 \end_inset
25767
25768 ] A label for this inset, possibly including a reference to a counter.
25769  For example, for footnote, it might be: 
25770 \begin_inset Flex Code
25771 status collapsed
25772
25773 \begin_layout Plain Layout
25774
25775 \backslash
25776 arabic{footnote}
25777 \end_layout
25778
25779 \end_inset
25780
25781 .
25782  This is optional, and there is no default.
25783 \end_layout
25784
25785 \begin_layout Description
25786 \begin_inset Flex Code
25787 status collapsed
25788
25789 \begin_layout Plain Layout
25790 HTMLPreamble
25791 \end_layout
25792
25793 \end_inset
25794
25795  Information to be output in the 
25796 \begin_inset Flex Code
25797 status collapsed
25798
25799 \begin_layout Plain Layout
25800 <head>
25801 \end_layout
25802
25803 \end_inset
25804
25805  section when this style is used.
25806  This might, for example, be used to include a 
25807 \begin_inset Flex Code
25808 status collapsed
25809
25810 \begin_layout Plain Layout
25811 <script>
25812 \end_layout
25813
25814 \end_inset
25815
25816  block defining an 
25817 \begin_inset Flex Code
25818 status collapsed
25819
25820 \begin_layout Plain Layout
25821 onclick
25822 \end_layout
25823
25824 \end_inset
25825
25826  handler.
25827 \end_layout
25828
25829 \begin_layout Description
25830 \begin_inset Flex Code
25831 status collapsed
25832
25833 \begin_layout Plain Layout
25834 HTMLStyle
25835 \end_layout
25836
25837 \end_inset
25838
25839  CSS style information to be included when this style is used.
25840  Note that this will automatically be wrapped in a layout-generated 
25841 \begin_inset Flex Code
25842 status collapsed
25843
25844 \begin_layout Plain Layout
25845 <style>
25846 \end_layout
25847
25848 \end_inset
25849
25850  block, so only the CSS itself need be included.
25851 \end_layout
25852
25853 \begin_layout Description
25854 \begin_inset Flex Code
25855 status collapsed
25856
25857 \begin_layout Plain Layout
25858 HTMLTag
25859 \end_layout
25860
25861 \end_inset
25862
25863  [
25864 \begin_inset Flex Code
25865 status collapsed
25866
25867 \begin_layout Plain Layout
25868 string
25869 \end_layout
25870
25871 \end_inset
25872
25873 ] The tag to be used for the main label, replacing 
25874 \begin_inset Flex Code
25875 status collapsed
25876
25877 \begin_layout Plain Layout
25878 tag
25879 \end_layout
25880
25881 \end_inset
25882
25883  in the examples above.
25884  The default depends upon the setting of 
25885 \begin_inset Flex Code
25886 status collapsed
25887
25888 \begin_layout Plain Layout
25889 MultiPar
25890 \end_layout
25891
25892 \end_inset
25893
25894 : If 
25895 \begin_inset Flex Code
25896 status collapsed
25897
25898 \begin_layout Plain Layout
25899 MultiPar
25900 \end_layout
25901
25902 \end_inset
25903
25904  is true, the default is 
25905 \begin_inset Flex Code
25906 status collapsed
25907
25908 \begin_layout Plain Layout
25909 div
25910 \end_layout
25911
25912 \end_inset
25913
25914 ; if it is false, the default is 
25915 \begin_inset Flex Code
25916 status collapsed
25917
25918 \begin_layout Plain Layout
25919 span
25920 \end_layout
25921
25922 \end_inset
25923
25924 .
25925 \end_layout
25926
25927 \begin_layout Subsection
25928 Float XHTML
25929 \end_layout
25930
25931 \begin_layout Standard
25932 The XHTML output for floats too can be controlled by layout information.
25933  The output has the following form:
25934 \end_layout
25935
25936 \begin_layout LyX-Code
25937 <tag attr=
25938 \begin_inset Quotes erd
25939 \end_inset
25940
25941 value
25942 \begin_inset Quotes erd
25943 \end_inset
25944
25945 >
25946 \end_layout
25947
25948 \begin_layout LyX-Code
25949 Contents of the float.
25950 \end_layout
25951
25952 \begin_layout LyX-Code
25953 </tag>
25954 \end_layout
25955
25956 \begin_layout Standard
25957 The caption, if there is one, is a separate inset and will be output as
25958  such.
25959  Its appearance can be controlled via the InsetLayout for caption insets.
25960  
25961 \end_layout
25962
25963 \begin_layout Description
25964 \begin_inset Flex Code
25965 status collapsed
25966
25967 \begin_layout Plain Layout
25968 HTMLAttr
25969 \end_layout
25970
25971 \end_inset
25972
25973  [
25974 \begin_inset Flex Code
25975 status collapsed
25976
25977 \begin_layout Plain Layout
25978 string
25979 \end_layout
25980
25981 \end_inset
25982
25983 ] Specifies attribute information to be output with the main tag.
25984  For example, 
25985 \begin_inset Quotes eld
25986 \end_inset
25987
25988
25989 \begin_inset Flex Code
25990 status collapsed
25991
25992 \begin_layout Plain Layout
25993 class=`myfloat' onclick=`\SpecialChar ldots
25994 '
25995 \end_layout
25996
25997 \end_inset
25998
25999
26000 \begin_inset Quotes erd
26001 \end_inset
26002
26003 .
26004  By default, \SpecialChar LyX
26005  will output 
26006 \begin_inset Quotes eld
26007 \end_inset
26008
26009
26010 \begin_inset Flex Code
26011 status collapsed
26012
26013 \begin_layout Plain Layout
26014 class=`float float-floattype'
26015 \end_layout
26016
26017 \end_inset
26018
26019
26020 \begin_inset Quotes erd
26021 \end_inset
26022
26023 , where 
26024 \begin_inset Flex Code
26025 status collapsed
26026
26027 \begin_layout Plain Layout
26028 floattype
26029 \end_layout
26030
26031 \end_inset
26032
26033  is \SpecialChar LyX
26034 's name for this type of float, as determined by the float declaration
26035  (see 
26036 \begin_inset CommandInset ref
26037 LatexCommand ref
26038 reference "subsec:Floats"
26039
26040 \end_inset
26041
26042 ), though made lowercase and with non-alphanumeric characters converted
26043  to underscores, for example: float-table.
26044 \end_layout
26045
26046 \begin_layout Description
26047 \begin_inset Flex Code
26048 status collapsed
26049
26050 \begin_layout Plain Layout
26051 HTMLStyle
26052 \end_layout
26053
26054 \end_inset
26055
26056  CSS style information to be included when this float is used.
26057  Note that this will automatically be wrapped in a layout-generated 
26058 \begin_inset Flex Code
26059 status collapsed
26060
26061 \begin_layout Plain Layout
26062 <style>
26063 \end_layout
26064
26065 \end_inset
26066
26067  block, so only the CSS itself need be included.
26068 \end_layout
26069
26070 \begin_layout Description
26071 \begin_inset Flex Code
26072 status collapsed
26073
26074 \begin_layout Plain Layout
26075 HTMLTag
26076 \end_layout
26077
26078 \end_inset
26079
26080  [
26081 \begin_inset Flex Code
26082 status collapsed
26083
26084 \begin_layout Plain Layout
26085 string
26086 \end_layout
26087
26088 \end_inset
26089
26090 ] The tag to be used for this float, replacing 
26091 \begin_inset Quotes eld
26092 \end_inset
26093
26094
26095 \begin_inset Flex Code
26096 status collapsed
26097
26098 \begin_layout Plain Layout
26099 tag
26100 \end_layout
26101
26102 \end_inset
26103
26104
26105 \begin_inset Quotes erd
26106 \end_inset
26107
26108  in the example above.
26109  The default is 
26110 \begin_inset Flex Code
26111 status collapsed
26112
26113 \begin_layout Plain Layout
26114 div
26115 \end_layout
26116
26117 \end_inset
26118
26119  and will rarely need changing.
26120 \end_layout
26121
26122 \begin_layout Subsection
26123 Bibliography formatting
26124 \end_layout
26125
26126 \begin_layout Standard
26127 The bibliography can be formatted using 
26128 \begin_inset Flex Code
26129 status collapsed
26130
26131 \begin_layout Plain Layout
26132 CiteFormat
26133 \end_layout
26134
26135 \end_inset
26136
26137  blocks.
26138  See 
26139 \begin_inset CommandInset ref
26140 LatexCommand ref
26141 reference "subsec:Citation-format-description"
26142
26143 \end_inset
26144
26145  for the details.
26146 \end_layout
26147
26148 \begin_layout Subsection
26149 \SpecialChar LyX
26150 -generated CSS
26151 \end_layout
26152
26153 \begin_layout Standard
26154 We have several times mentioned that \SpecialChar LyX
26155  will generate default CSS style rules
26156  for both insets and paragraph styles, based upon the other layout information
26157  that is provided.
26158  In this section, we shall say a word about which layout information \SpecialChar LyX
26159  uses
26160  and how.
26161 \end_layout
26162
26163 \begin_layout Standard
26164 At present, \SpecialChar LyX
26165  auto-generates CSS only for font information, making use of
26166  the 
26167 \begin_inset Flex Code
26168 status collapsed
26169
26170 \begin_layout Plain Layout
26171 Family
26172 \end_layout
26173
26174 \end_inset
26175
26176
26177 \begin_inset Flex Code
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 Series
26182 \end_layout
26183
26184 \end_inset
26185
26186
26187 \begin_inset Flex Code
26188 status collapsed
26189
26190 \begin_layout Plain Layout
26191 Shape
26192 \end_layout
26193
26194 \end_inset
26195
26196 , and 
26197 \begin_inset Flex Code
26198 status collapsed
26199
26200 \begin_layout Plain Layout
26201 Size
26202 \end_layout
26203
26204 \end_inset
26205
26206  specified in the 
26207 \begin_inset Flex Code
26208 status collapsed
26209
26210 \begin_layout Plain Layout
26211 Font
26212 \end_layout
26213
26214 \end_inset
26215
26216  declaration (see 
26217 \begin_inset CommandInset ref
26218 LatexCommand ref
26219 reference "subsec:Font-description"
26220
26221 \end_inset
26222
26223 ).
26224  The translation is mostly straightforward and obvious.
26225  For example, 
26226 \begin_inset Quotes eld
26227 \end_inset
26228
26229
26230 \begin_inset Flex Code
26231 status collapsed
26232
26233 \begin_layout Plain Layout
26234 Family Sans
26235 \end_layout
26236
26237 \end_inset
26238
26239
26240 \begin_inset Quotes erd
26241 \end_inset
26242
26243  becomes 
26244 \begin_inset Quotes eld
26245 \end_inset
26246
26247
26248 \begin_inset Flex Code
26249 status collapsed
26250
26251 \begin_layout Plain Layout
26252 font-family: sans-serif;
26253 \end_layout
26254
26255 \end_inset
26256
26257
26258 \begin_inset Quotes erd
26259 \end_inset
26260
26261 .
26262  The correspondence of \SpecialChar LyX
26263  sizes and CSS sizes is a little less obvious but
26264  nonetheless intuitive.
26265  See the 
26266 \begin_inset Flex Code
26267 status collapsed
26268
26269 \begin_layout Plain Layout
26270 getSizeCSS()
26271 \end_layout
26272
26273 \end_inset
26274
26275  function in 
26276 \begin_inset Flex URL
26277 status collapsed
26278
26279 \begin_layout Plain Layout
26280
26281 src/FontInfo.cpp
26282 \end_layout
26283
26284 \end_inset
26285
26286  for the details.
26287 \end_layout
26288
26289 \begin_layout Chapter
26290 Including External Material
26291 \begin_inset CommandInset label
26292 LatexCommand label
26293 name "chap:Including-External-Material"
26294
26295 \end_inset
26296
26297
26298 \end_layout
26299
26300 \begin_layout Standard
26301 \begin_inset Box Shadowbox
26302 position "t"
26303 hor_pos "c"
26304 has_inner_box 1
26305 inner_pos "t"
26306 use_parbox 0
26307 use_makebox 0
26308 width "100col%"
26309 special "none"
26310 height "1in"
26311 height_special "totalheight"
26312 thickness "0.4pt"
26313 separation "3pt"
26314 shadowsize "4pt"
26315 framecolor "black"
26316 backgroundcolor "none"
26317 status open
26318
26319 \begin_layout Plain Layout
26320 WARNING: This portion of the documentation has not been updated for some
26321  time.
26322  We certainly hope that it is still accurate, but there are no guarantees.
26323 \end_layout
26324
26325 \end_inset
26326
26327
26328 \end_layout
26329
26330 \begin_layout Standard
26331 The use of material from sources external to \SpecialChar LyX
26332  is covered in detail in the
26333  
26334 \emph on
26335 Embedded Objects
26336 \emph default
26337  manual.
26338  This part of the manual covers what needs to happen behind the scenes for
26339  new sorts of material to be included.
26340 \end_layout
26341
26342 \begin_layout Section
26343 How does it work?
26344 \end_layout
26345
26346 \begin_layout Standard
26347 The external material feature is based on the concept of a 
26348 \emph on
26349 template
26350 \emph default
26351 .
26352  A template is a specification of how \SpecialChar LyX
26353  should interface with a certain kind
26354  of material.
26355  As bundled, \SpecialChar LyX
26356  comes with predefined templates for Xfig figures, various
26357  raster format images, chess diagrams, and LilyPond music notation.
26358  You can check the actual list by using the menu 
26359 \begin_inset Flex Noun
26360 status collapsed
26361
26362 \begin_layout Plain Layout
26363 Insert\SpecialChar menuseparator
26364 File\SpecialChar menuseparator
26365 External Material
26366 \end_layout
26367
26368 \end_inset
26369
26370 .
26371  Furthermore, it is possible to roll your own template to support a specific
26372  kind of material.
26373  Later we'll describe in more detail what is involved, and hopefully you
26374  will submit all the templates you create so we can include them in a later
26375  \SpecialChar LyX
26376  version.
26377 \end_layout
26378
26379 \begin_layout Standard
26380 Another basic idea of the external material feature is to distinguish between
26381  the original file that serves as a base for final material and the produced
26382  file that is included in your exported or printed document.
26383  For example, consider the case of a figure produced with 
26384 \begin_inset Flex Code
26385 status collapsed
26386
26387 \begin_layout Plain Layout
26388 Xfig
26389 \end_layout
26390
26391 \end_inset
26392
26393 .
26394  The Xfig application itself works on an original file with the 
26395 \begin_inset Flex Code
26396 status collapsed
26397
26398 \begin_layout Plain Layout
26399 .fig
26400 \end_layout
26401
26402 \end_inset
26403
26404  extension.
26405  Within Xfig, you create and change your figure, and when you are done,
26406  you save the 
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 fig
26412 \end_layout
26413
26414 \end_inset
26415
26416 -file.
26417  When you want to include the figure in your document, you invoke 
26418 \begin_inset Flex Code
26419 status collapsed
26420
26421 \begin_layout Plain Layout
26422 transfig
26423 \end_layout
26424
26425 \end_inset
26426
26427  in order to create a PostScript file that can readily be included in your
26428  \SpecialChar LaTeX
26429  file.
26430  In this case, the 
26431 \begin_inset Flex Code
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435 .fig
26436 \end_layout
26437
26438 \end_inset
26439
26440  file is the original file, and the PostScript file is the produced file.
26441 \end_layout
26442
26443 \begin_layout Standard
26444 This distinction is important in order to allow updating of the material
26445  while you are in the process of writing the document.
26446  Furthermore, it provides us with the flexibility that is needed to support
26447  multiple export formats.
26448  For instance, in the case of a plain text file, it is not exactly an award-winn
26449 ing idea to include the figure as raw PostScript.
26450  Instead, you would either prefer to just include a reference to the figure
26451  or try to invoke some graphics to ASCII converter to make the final result
26452  look similar to the real graphics.
26453  The external material management allows you to do this, because it is parametri
26454 zed on the different export formats that \SpecialChar LyX
26455  supports.
26456 \end_layout
26457
26458 \begin_layout Standard
26459 Besides supporting the production of different products according to the
26460  exported format, it supports tight integration with editing and viewing
26461  applications.
26462  In the case of an Xfig figure, you are able to invoke Xfig on the original
26463  file with a single click from within the external material dialog in \SpecialChar LyX
26464 ,
26465  and also preview the produced PostScript file with Ghostview with another
26466  click.
26467  No more fiddling around with the command line and/or file browsers to locate
26468  and manipulate the original or produced files.
26469  In this way, you are finally able to take full advantage of the many different
26470  applications that are relevant to use when you write your documents, and
26471  ultimately be more productive.
26472 \end_layout
26473
26474 \begin_layout Section
26475 The external template configuration files
26476 \end_layout
26477
26478 \begin_layout Standard
26479 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26480 .
26481  However, be aware that doing this in an careless manner most probably 
26482 \emph on
26483 will
26484 \emph default
26485  introduce an easily exploitable security hole.
26486  So before you do this, please read the discussion about security in 
26487 \begin_inset CommandInset ref
26488 LatexCommand ref
26489 reference "sec:Security-discussion"
26490
26491 \end_inset
26492
26493 .
26494 \end_layout
26495
26496 \begin_layout Standard
26497 Having said that, we encourage you to submit any interesting templates that
26498  you create.
26499  
26500 \end_layout
26501
26502 \begin_layout Standard
26503 The external templates are defined in the 
26504 \begin_inset Flex Code
26505 status collapsed
26506
26507 \begin_layout Plain Layout
26508 *.xtemplate
26509 \end_layout
26510
26511 \end_inset
26512
26513  files that are stored in the 
26514 \begin_inset Flex Code
26515 status collapsed
26516
26517 \begin_layout Plain Layout
26518 LyXDir/lib/xtemplates/
26519 \end_layout
26520
26521 \end_inset
26522
26523  directory.
26524  Each template is defined in a file of its own.
26525  You can place your own templates in 
26526 \begin_inset Flex Code
26527 status collapsed
26528
26529 \begin_layout Plain Layout
26530 UserDir/xtemplates/
26531 \end_layout
26532
26533 \end_inset
26534
26535  or copy existing templates to that directory in order to modify them.
26536 \end_layout
26537
26538 \begin_layout Standard
26539 A typical template looks like this:
26540 \end_layout
26541
26542 \begin_layout LyX-Code
26543 Template XFig
26544 \end_layout
26545
26546 \begin_layout LyX-Code
26547 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26548 \end_layout
26549
26550 \begin_layout LyX-Code
26551 HelpText
26552 \end_layout
26553
26554 \begin_layout LyX-Code
26555 An XFig figure.
26556 \end_layout
26557
26558 \begin_layout LyX-Code
26559 HelpTextEnd
26560 \end_layout
26561
26562 \begin_layout LyX-Code
26563 InputFormat fig
26564 \end_layout
26565
26566 \begin_layout LyX-Code
26567 FileFilter "*.fig"
26568 \end_layout
26569
26570 \begin_layout LyX-Code
26571 AutomaticProduction true
26572 \end_layout
26573
26574 \begin_layout LyX-Code
26575 Transform Rotate
26576 \end_layout
26577
26578 \begin_layout LyX-Code
26579 Transform Resize
26580 \end_layout
26581
26582 \begin_layout LyX-Code
26583 Format LaTeX
26584 \end_layout
26585
26586 \begin_layout LyX-Code
26587 TransformCommand Rotate RotationLatexCommand
26588 \end_layout
26589
26590 \begin_layout LyX-Code
26591 TransformCommand Resize ResizeLatexCommand
26592 \end_layout
26593
26594 \begin_layout LyX-Code
26595 Product "$$RotateFront$$ResizeFront
26596 \end_layout
26597
26598 \begin_layout LyX-Code
26599          
26600 \backslash
26601
26602 \backslash
26603 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26604 \end_layout
26605
26606 \begin_layout LyX-Code
26607          $$ResizeBack$$RotateBack"
26608 \end_layout
26609
26610 \begin_layout LyX-Code
26611 UpdateFormat pstex
26612 \end_layout
26613
26614 \begin_layout LyX-Code
26615 UpdateResult "$$AbsPath$$Basename.pstex_t"
26616 \end_layout
26617
26618 \begin_layout LyX-Code
26619 Requirement "graphicx"
26620 \end_layout
26621
26622 \begin_layout LyX-Code
26623 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26624 \end_layout
26625
26626 \begin_layout LyX-Code
26627 ReferencedFile latex "$$AbsPath$$Basename.eps"
26628 \end_layout
26629
26630 \begin_layout LyX-Code
26631 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26632 \end_layout
26633
26634 \begin_layout LyX-Code
26635 FormatEnd
26636 \end_layout
26637
26638 \begin_layout LyX-Code
26639 Format PDFLaTeX
26640 \end_layout
26641
26642 \begin_layout LyX-Code
26643 TransformCommand Rotate RotationLatexCommand
26644 \end_layout
26645
26646 \begin_layout LyX-Code
26647 TransformCommand Resize ResizeLatexCommand
26648 \end_layout
26649
26650 \begin_layout LyX-Code
26651 Product "$$RotateFront$$ResizeFront
26652 \end_layout
26653
26654 \begin_layout LyX-Code
26655          
26656 \backslash
26657
26658 \backslash
26659 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
26660 \end_layout
26661
26662 \begin_layout LyX-Code
26663          $$ResizeBack$$RotateBack"
26664 \end_layout
26665
26666 \begin_layout LyX-Code
26667 UpdateFormat pdftex
26668 \end_layout
26669
26670 \begin_layout LyX-Code
26671 UpdateResult "$$AbsPath$$Basename.pdftex_t"
26672 \end_layout
26673
26674 \begin_layout LyX-Code
26675 Requirement "graphicx"
26676 \end_layout
26677
26678 \begin_layout LyX-Code
26679 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
26680 \end_layout
26681
26682 \begin_layout LyX-Code
26683 ReferencedFile latex "$$AbsPath$$Basename.pdf"
26684 \end_layout
26685
26686 \begin_layout LyX-Code
26687 FormatEnd
26688 \end_layout
26689
26690 \begin_layout LyX-Code
26691 Format Ascii
26692 \end_layout
26693
26694 \begin_layout LyX-Code
26695 Product "[XFig: $$FName]"
26696 \end_layout
26697
26698 \begin_layout LyX-Code
26699 FormatEnd
26700 \end_layout
26701
26702 \begin_layout LyX-Code
26703 Format DocBook
26704 \end_layout
26705
26706 \begin_layout LyX-Code
26707 Product "<graphic fileref=
26708 \backslash
26709 "$$AbsOrRelPathMaster$$Basename.eps
26710 \backslash
26711 ">
26712 \end_layout
26713
26714 \begin_layout LyX-Code
26715          </graphic>"
26716 \end_layout
26717
26718 \begin_layout LyX-Code
26719 UpdateFormat eps
26720 \end_layout
26721
26722 \begin_layout LyX-Code
26723 UpdateResult "$$AbsPath$$Basename.eps"
26724 \end_layout
26725
26726 \begin_layout LyX-Code
26727 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26728 \end_layout
26729
26730 \begin_layout LyX-Code
26731 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26732 \end_layout
26733
26734 \begin_layout LyX-Code
26735 FormatEnd
26736 \end_layout
26737
26738 \begin_layout LyX-Code
26739 TemplateEnd
26740 \end_layout
26741
26742 \begin_layout Standard
26743 As you can see, the template is enclosed in 
26744 \begin_inset Flex Code
26745 status collapsed
26746
26747 \begin_layout Plain Layout
26748 Template
26749 \end_layout
26750
26751 \end_inset
26752
26753  \SpecialChar ldots
26754  
26755 \begin_inset Flex Code
26756 status collapsed
26757
26758 \begin_layout Plain Layout
26759 TemplateEnd
26760 \end_layout
26761
26762 \end_inset
26763
26764 .
26765  It contains a header specifying some general settings and, for each supported
26766  primary document file format, a section 
26767 \begin_inset Flex Code
26768 status collapsed
26769
26770 \begin_layout Plain Layout
26771 Format
26772 \end_layout
26773
26774 \end_inset
26775
26776  \SpecialChar ldots
26777  
26778 \begin_inset Flex Code
26779 status collapsed
26780
26781 \begin_layout Plain Layout
26782 FormatEnd
26783 \end_layout
26784
26785 \end_inset
26786
26787 .
26788 \end_layout
26789
26790 \begin_layout Subsection
26791 The template header
26792 \end_layout
26793
26794 \begin_layout Description
26795 \begin_inset Flex Code
26796 status collapsed
26797
26798 \begin_layout Plain Layout
26799 AutomaticProduction
26800 \begin_inset space ~
26801 \end_inset
26802
26803 true|false
26804 \end_layout
26805
26806 \end_inset
26807
26808  Whether the file represented by the template must be generated by \SpecialChar LyX
26809 .
26810  This command must occur exactly once.
26811 \end_layout
26812
26813 \begin_layout Description
26814 \begin_inset Flex Code
26815 status collapsed
26816
26817 \begin_layout Plain Layout
26818 FileFilter
26819 \begin_inset space ~
26820 \end_inset
26821
26822 <pattern>
26823 \end_layout
26824
26825 \end_inset
26826
26827  A glob pattern that is used in the file dialog to filter out the desired
26828  files.
26829  If there is more than one possible file extension (e.
26830 \begin_inset space \thinspace{}
26831 \end_inset
26832
26833 g.
26834 \begin_inset space \space{}
26835 \end_inset
26836
26837 tgif has 
26838 \begin_inset Flex Code
26839 status collapsed
26840
26841 \begin_layout Plain Layout
26842 .obj
26843 \end_layout
26844
26845 \end_inset
26846
26847  and 
26848 \begin_inset Flex Code
26849 status collapsed
26850
26851 \begin_layout Plain Layout
26852 .tgo
26853 \end_layout
26854
26855 \end_inset
26856
26857 ), use something like 
26858 \begin_inset Flex Code
26859 status collapsed
26860
26861 \begin_layout Plain Layout
26862 "*.{obj,tgo}"
26863 \end_layout
26864
26865 \end_inset
26866
26867 .
26868  This command must occur exactly once.
26869 \end_layout
26870
26871 \begin_layout Description
26872 \begin_inset Flex Code
26873 status collapsed
26874
26875 \begin_layout Plain Layout
26876 GuiName
26877 \begin_inset space ~
26878 \end_inset
26879
26880 <guiname>
26881 \end_layout
26882
26883 \end_inset
26884
26885  The text that is displayed on the button.
26886  This command must occur exactly once.
26887 \end_layout
26888
26889 \begin_layout Description
26890 \begin_inset Flex Code
26891 status collapsed
26892
26893 \begin_layout Plain Layout
26894 HelpText
26895 \begin_inset space ~
26896 \end_inset
26897
26898 <text>
26899 \begin_inset space ~
26900 \end_inset
26901
26902 HelpTextEnd
26903 \end_layout
26904
26905 \end_inset
26906
26907  The help text that is used in the External dialog.
26908  Provide enough information to explain to the user just what the template
26909  can provide him with.
26910  This command must occur exactly once.
26911 \end_layout
26912
26913 \begin_layout Description
26914 \begin_inset Flex Code
26915 status collapsed
26916
26917 \begin_layout Plain Layout
26918 InputFormat
26919 \begin_inset space ~
26920 \end_inset
26921
26922 <format>
26923 \end_layout
26924
26925 \end_inset
26926
26927  The file format of the original file.
26928  This must be the name of a format that is known to \SpecialChar LyX
26929  (see 
26930 \begin_inset CommandInset ref
26931 LatexCommand ref
26932 reference "sec:Formats"
26933
26934 \end_inset
26935
26936 ).
26937  Use 
26938 \begin_inset Quotes eld
26939 \end_inset
26940
26941
26942 \begin_inset Flex Code
26943 status collapsed
26944
26945 \begin_layout Plain Layout
26946 *
26947 \end_layout
26948
26949 \end_inset
26950
26951
26952 \begin_inset Quotes erd
26953 \end_inset
26954
26955  if the template can handle original files of more than one format.
26956  \SpecialChar LyX
26957  will attempt to interrogate the file itself in order to deduce its format
26958  in this case.
26959  This command must occur exactly once.
26960 \end_layout
26961
26962 \begin_layout Description
26963 \begin_inset Flex Code
26964 status collapsed
26965
26966 \begin_layout Plain Layout
26967 Template
26968 \begin_inset space ~
26969 \end_inset
26970
26971 <id>
26972 \end_layout
26973
26974 \end_inset
26975
26976  A unique name for the template.
26977  It must not contain substitution macros (see below).
26978 \end_layout
26979
26980 \begin_layout Description
26981 \begin_inset Flex Code
26982 status collapsed
26983
26984 \begin_layout Plain Layout
26985 Transform
26986 \begin_inset space ~
26987 \end_inset
26988
26989 Rotate|Resize|Clip|Extra
26990 \end_layout
26991
26992 \end_inset
26993
26994  This command specifies which transformations are supported by this template.
26995  It may occur zero or more times.
26996  This command enables the corresponding tabs in the external dialog.
26997  Each 
26998 \begin_inset Flex Code
26999 status collapsed
27000
27001 \begin_layout Plain Layout
27002 Transform
27003 \end_layout
27004
27005 \end_inset
27006
27007  command must have either a corresponding 
27008 \begin_inset Flex Code
27009 status collapsed
27010
27011 \begin_layout Plain Layout
27012 TransformCommand
27013 \end_layout
27014
27015 \end_inset
27016
27017  or a 
27018 \begin_inset Flex Code
27019 status collapsed
27020
27021 \begin_layout Plain Layout
27022 TransformOption
27023 \end_layout
27024
27025 \end_inset
27026
27027  command in the 
27028 \begin_inset Flex Code
27029 status collapsed
27030
27031 \begin_layout Plain Layout
27032 Format
27033 \end_layout
27034
27035 \end_inset
27036
27037  section.
27038  Otherwise the transformation will not be supported by that format.
27039 \end_layout
27040
27041 \begin_layout Subsection
27042 The Format section
27043 \end_layout
27044
27045 \begin_layout Description
27046 \begin_inset Flex Code
27047 status collapsed
27048
27049 \begin_layout Plain Layout
27050 Format
27051 \begin_inset space ~
27052 \end_inset
27053
27054 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
27055 \end_layout
27056
27057 \end_inset
27058
27059  The primary document file format that this format definition is for.
27060  Not every template has a sensible representation in all document file formats.
27061  Please define nevertheless a 
27062 \begin_inset Flex Code
27063 status collapsed
27064
27065 \begin_layout Plain Layout
27066 Format
27067 \end_layout
27068
27069 \end_inset
27070
27071  section for all templates.
27072  Use a dummy text when no representation is available.
27073  Then you can at least see a reference to the external material in the exported
27074  document.
27075 \end_layout
27076
27077 \begin_layout Description
27078 \begin_inset Flex Code
27079 status collapsed
27080
27081 \begin_layout Plain Layout
27082 Option
27083 \begin_inset space ~
27084 \end_inset
27085
27086 <name>
27087 \begin_inset space ~
27088 \end_inset
27089
27090 <value>
27091 \end_layout
27092
27093 \end_inset
27094
27095  This command defines an additional macro 
27096 \begin_inset Flex Code
27097 status collapsed
27098
27099 \begin_layout Plain Layout
27100 $$<name>
27101 \end_layout
27102
27103 \end_inset
27104
27105  for substitution in 
27106 \begin_inset Flex Code
27107 status collapsed
27108
27109 \begin_layout Plain Layout
27110 Product
27111 \end_layout
27112
27113 \end_inset
27114
27115 .
27116  
27117 \begin_inset Flex Code
27118 status collapsed
27119
27120 \begin_layout Plain Layout
27121 <value>
27122 \end_layout
27123
27124 \end_inset
27125
27126  itself may contain substitution macros.
27127  The advantage over using 
27128 \begin_inset Flex Code
27129 status collapsed
27130
27131 \begin_layout Plain Layout
27132 <value>
27133 \end_layout
27134
27135 \end_inset
27136
27137  directly in 
27138 \begin_inset Flex Code
27139 status collapsed
27140
27141 \begin_layout Plain Layout
27142 Product
27143 \end_layout
27144
27145 \end_inset
27146
27147  is that the substituted value of 
27148 \begin_inset Flex Code
27149 status collapsed
27150
27151 \begin_layout Plain Layout
27152 $$<name>
27153 \end_layout
27154
27155 \end_inset
27156
27157  is sanitized so that it is a valid optional argument in the document format.
27158  This command may occur zero or more times.
27159 \end_layout
27160
27161 \begin_layout Description
27162 \begin_inset Flex Code
27163 status collapsed
27164
27165 \begin_layout Plain Layout
27166 Product
27167 \begin_inset space ~
27168 \end_inset
27169
27170 <text>
27171 \end_layout
27172
27173 \end_inset
27174
27175  The text that is inserted in the exported document.
27176  This is actually the most important command and can be quite complex.
27177  This command must occur exactly once.
27178 \end_layout
27179
27180 \begin_layout Description
27181 \begin_inset Flex Code
27182 status collapsed
27183
27184 \begin_layout Plain Layout
27185 Preamble
27186 \begin_inset space ~
27187 \end_inset
27188
27189 <name>
27190 \end_layout
27191
27192 \end_inset
27193
27194  This command specifies a preamble snippet that will be included in the
27195  \SpecialChar LaTeX
27196  preamble.
27197  It has to be defined using 
27198 \begin_inset Flex Code
27199 status collapsed
27200
27201 \begin_layout Plain Layout
27202 PreambleDef
27203 \end_layout
27204
27205 \end_inset
27206
27207  \SpecialChar ldots
27208  
27209 \begin_inset Flex Code
27210 status collapsed
27211
27212 \begin_layout Plain Layout
27213 PreambleDefEnd
27214 \end_layout
27215
27216 \end_inset
27217
27218 .
27219  This command may occur zero or more times.
27220 \end_layout
27221
27222 \begin_layout Description
27223 \begin_inset Flex Code
27224 status collapsed
27225
27226 \begin_layout Plain Layout
27227 ReferencedFile
27228 \begin_inset space ~
27229 \end_inset
27230
27231 <format>
27232 \begin_inset space ~
27233 \end_inset
27234
27235 <filename>
27236 \end_layout
27237
27238 \end_inset
27239
27240  This command denotes files that are created by the conversion process and
27241  are needed for a particular export format.
27242  If the filename is relative, it is interpreted relative to the master document.
27243  This command may be given zero or more times.
27244 \end_layout
27245
27246 \begin_layout Description
27247 \begin_inset Flex Code
27248 status collapsed
27249
27250 \begin_layout Plain Layout
27251 Requirement
27252 \begin_inset space ~
27253 \end_inset
27254
27255 <package>
27256 \end_layout
27257
27258 \end_inset
27259
27260  The name of a required \SpecialChar LaTeX
27261  package.
27262  The package is included via 
27263 \begin_inset Flex Code
27264 status collapsed
27265
27266 \begin_layout Plain Layout
27267
27268 \backslash
27269 usepackage{}
27270 \end_layout
27271
27272 \end_inset
27273
27274  in the \SpecialChar LaTeX
27275  preamble.
27276  This command may occur zero or more times.
27277 \end_layout
27278
27279 \begin_layout Description
27280 \begin_inset Flex Code
27281 status collapsed
27282
27283 \begin_layout Plain Layout
27284 TransformCommand
27285 \begin_inset space ~
27286 \end_inset
27287
27288 Rotate
27289 \begin_inset space ~
27290 \end_inset
27291
27292 RotationLatexCommand
27293 \end_layout
27294
27295 \end_inset
27296
27297  This command specifies that the built in \SpecialChar LaTeX
27298  command should be used for rotation.
27299  This command may occur once or not at all.
27300 \end_layout
27301
27302 \begin_layout Description
27303 \begin_inset Flex Code
27304 status collapsed
27305
27306 \begin_layout Plain Layout
27307 TransformCommand
27308 \begin_inset space ~
27309 \end_inset
27310
27311 Resize
27312 \begin_inset space ~
27313 \end_inset
27314
27315 ResizeLatexCommand
27316 \end_layout
27317
27318 \end_inset
27319
27320  This command specifies that the built in \SpecialChar LaTeX
27321  command should be used for resizing.
27322  This command may occur once or not at all.
27323 \end_layout
27324
27325 \begin_layout Description
27326 \begin_inset Flex Code
27327 status collapsed
27328
27329 \begin_layout Plain Layout
27330 TransformOption
27331 \begin_inset space ~
27332 \end_inset
27333
27334 Rotate
27335 \begin_inset space ~
27336 \end_inset
27337
27338 RotationLatexOption
27339 \end_layout
27340
27341 \end_inset
27342
27343  This command specifies that rotation is done via an optional argument.
27344  This command may occur once or not at all.
27345 \end_layout
27346
27347 \begin_layout Description
27348 \begin_inset Flex Code
27349 status collapsed
27350
27351 \begin_layout Plain Layout
27352 TransformOption
27353 \begin_inset space ~
27354 \end_inset
27355
27356 Resize
27357 \begin_inset space ~
27358 \end_inset
27359
27360 ResizeLatexOption
27361 \end_layout
27362
27363 \end_inset
27364
27365  This command specifies that resizing is done via an optional argument.
27366  This command may occur once or not at all.
27367 \end_layout
27368
27369 \begin_layout Description
27370 \begin_inset Flex Code
27371 status collapsed
27372
27373 \begin_layout Plain Layout
27374 TransformOption
27375 \begin_inset space ~
27376 \end_inset
27377
27378 Clip
27379 \begin_inset space ~
27380 \end_inset
27381
27382 ClipLatexOption
27383 \end_layout
27384
27385 \end_inset
27386
27387  This command specifies that clipping is done via an optional argument.
27388  This command may occur once or not at all.
27389 \end_layout
27390
27391 \begin_layout Description
27392 \begin_inset Flex Code
27393 status collapsed
27394
27395 \begin_layout Plain Layout
27396 TransformOption
27397 \begin_inset space ~
27398 \end_inset
27399
27400 Extra
27401 \begin_inset space ~
27402 \end_inset
27403
27404 ExtraLatexOption
27405 \end_layout
27406
27407 \end_inset
27408
27409  This command specifies that an extra optional argument is used.
27410  This command may occur once or not at all.
27411 \end_layout
27412
27413 \begin_layout Description
27414 \begin_inset Flex Code
27415 status collapsed
27416
27417 \begin_layout Plain Layout
27418 UpdateFormat
27419 \begin_inset space ~
27420 \end_inset
27421
27422 <format>
27423 \end_layout
27424
27425 \end_inset
27426
27427  The file format of the converted file.
27428  This must be the name of a format that is known to \SpecialChar LyX
27429  (see the 
27430 \begin_inset Flex Noun
27431 status collapsed
27432
27433 \begin_layout Plain Layout
27434 Tools\SpecialChar menuseparator
27435 Preferences\SpecialChar menuseparator
27436 File Handling\SpecialChar menuseparator
27437 File Format
27438 \end_layout
27439
27440 \end_inset
27441
27442  dialog).
27443  This command must occur exactly once.
27444  If the resulting file format is PDF, you need to specify the format 
27445 \begin_inset Flex Code
27446 status collapsed
27447
27448 \begin_layout Plain Layout
27449 pdf6
27450 \end_layout
27451
27452 \end_inset
27453
27454 .
27455  This is the PDF format used for including graphics.
27456  The other defined PDF formats are for document export.
27457 \end_layout
27458
27459 \begin_layout Description
27460 \begin_inset Flex Code
27461 status collapsed
27462
27463 \begin_layout Plain Layout
27464 UpdateResult
27465 \begin_inset space ~
27466 \end_inset
27467
27468 <filename>
27469 \end_layout
27470
27471 \end_inset
27472
27473  The file name of the converted file.
27474  The file name must be absolute.
27475  This command must occur exactly once.
27476 \end_layout
27477
27478 \begin_layout Subsection
27479 Preamble definitions
27480 \end_layout
27481
27482 \begin_layout Standard
27483 The external template configuration file may contain additional preamble
27484  definitions enclosed by 
27485 \begin_inset Flex Code
27486 status collapsed
27487
27488 \begin_layout Plain Layout
27489 PreambleDef
27490 \end_layout
27491
27492 \end_inset
27493
27494  \SpecialChar ldots
27495  
27496 \begin_inset Flex Code
27497 status collapsed
27498
27499 \begin_layout Plain Layout
27500 PreambleDefEnd
27501 \end_layout
27502
27503 \end_inset
27504
27505 .
27506  They can be used by the templates in the 
27507 \begin_inset Flex Code
27508 status collapsed
27509
27510 \begin_layout Plain Layout
27511 Format
27512 \end_layout
27513
27514 \end_inset
27515
27516  section.
27517 \end_layout
27518
27519 \begin_layout Section
27520 The substitution mechanism
27521 \end_layout
27522
27523 \begin_layout Standard
27524 When the external material facility invokes an external program, it is done
27525  on the basis of a command defined in the template configuration file.
27526  These commands can contain various macros that are expanded before execution.
27527  Execution always take place in the directory of the containing document.
27528 \end_layout
27529
27530 \begin_layout Standard
27531 Also, whenever external material is to be displayed, the name will be produced
27532  by the substitution mechanism, and most other commands in the template
27533  definition support substitution as well.
27534 \end_layout
27535
27536 \begin_layout Standard
27537 The available macros are the following:
27538 \end_layout
27539
27540 \begin_layout Description
27541 \begin_inset Flex Code
27542 status collapsed
27543
27544 \begin_layout Plain Layout
27545 $$AbsOrRelPathMaster
27546 \end_layout
27547
27548 \end_inset
27549
27550  The file path, absolute or relative to the master \SpecialChar LyX
27551  document.
27552 \end_layout
27553
27554 \begin_layout Description
27555 \begin_inset Flex Code
27556 status collapsed
27557
27558 \begin_layout Plain Layout
27559 $$AbsOrRelPathParent
27560 \end_layout
27561
27562 \end_inset
27563
27564  The file path, absolute or relative to the \SpecialChar LyX
27565  document.
27566 \end_layout
27567
27568 \begin_layout Description
27569 \begin_inset Flex Code
27570 status collapsed
27571
27572 \begin_layout Plain Layout
27573 $$AbsPath
27574 \end_layout
27575
27576 \end_inset
27577
27578  The absolute file path.
27579 \end_layout
27580
27581 \begin_layout Description
27582 \begin_inset Flex Code
27583 status collapsed
27584
27585 \begin_layout Plain Layout
27586 $$Basename
27587 \end_layout
27588
27589 \end_inset
27590
27591  The filename without path and without the extension.
27592 \end_layout
27593
27594 \begin_layout Description
27595 \begin_inset Flex Code
27596 status collapsed
27597
27598 \begin_layout Plain Layout
27599 $$Contents(
27600 \begin_inset Quotes eld
27601 \end_inset
27602
27603 filename.ext
27604 \begin_inset Quotes erd
27605 \end_inset
27606
27607 )
27608 \end_layout
27609
27610 \end_inset
27611
27612  This macro will expand to the contents of the file with the name 
27613 \begin_inset Flex Code
27614 status collapsed
27615
27616 \begin_layout Plain Layout
27617 filename.ext
27618 \end_layout
27619
27620 \end_inset
27621
27622 .
27623 \end_layout
27624
27625 \begin_layout Description
27626 \begin_inset Flex Code
27627 status collapsed
27628
27629 \begin_layout Plain Layout
27630 $$Extension
27631 \end_layout
27632
27633 \end_inset
27634
27635  The file extension (including the dot).
27636 \end_layout
27637
27638 \begin_layout Description
27639 \begin_inset Flex Code
27640 status collapsed
27641
27642 \begin_layout Plain Layout
27643 $$pngOrjpg
27644 \end_layout
27645
27646 \end_inset
27647
27648  This will be the string 
27649 \begin_inset Quotes eld
27650 \end_inset
27651
27652 jpg
27653 \begin_inset Quotes erd
27654 \end_inset
27655
27656  if the file is in JPEG format, otherwise it will be the string 
27657 \begin_inset Quotes eld
27658 \end_inset
27659
27660 png
27661 \begin_inset Quotes erd
27662 \end_inset
27663
27664 .
27665  This is useful to avoid uneeded conversions for output formats that support
27666  both PNG and JPEG fomats.
27667  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
27668  output
27669  format.
27670 \end_layout
27671
27672 \begin_layout Description
27673 \begin_inset Flex Code
27674 status collapsed
27675
27676 \begin_layout Plain Layout
27677 $$FName
27678 \end_layout
27679
27680 \end_inset
27681
27682  The filename of the file specified in the external material dialog.
27683  This is either an absolute name, or it is relative to the \SpecialChar LyX
27684  document.
27685 \end_layout
27686
27687 \begin_layout Description
27688 \begin_inset Flex Code
27689 status collapsed
27690
27691 \begin_layout Plain Layout
27692 $$FPath
27693 \end_layout
27694
27695 \end_inset
27696
27697  The path part of 
27698 \begin_inset Flex Code
27699 status collapsed
27700
27701 \begin_layout Plain Layout
27702 $$FName
27703 \end_layout
27704
27705 \end_inset
27706
27707  (absolute name or relative to the \SpecialChar LyX
27708  document).
27709 \end_layout
27710
27711 \begin_layout Description
27712 \begin_inset Flex Code
27713 status collapsed
27714
27715 \begin_layout Plain Layout
27716 $$RelPathMaster
27717 \end_layout
27718
27719 \end_inset
27720
27721  The file path, relative to the master \SpecialChar LyX
27722  document.
27723 \end_layout
27724
27725 \begin_layout Description
27726 \begin_inset Flex Code
27727 status collapsed
27728
27729 \begin_layout Plain Layout
27730 $$RelPathParent
27731 \end_layout
27732
27733 \end_inset
27734
27735  The file path, relative to the \SpecialChar LyX
27736  document.
27737 \end_layout
27738
27739 \begin_layout Description
27740 \begin_inset Flex Code
27741 status collapsed
27742
27743 \begin_layout Plain Layout
27744 $$Sysdir
27745 \end_layout
27746
27747 \end_inset
27748
27749  This macro will expand to the absolute path of the system directory.
27750  This is typically used to point to the various helper scripts that are
27751  bundled with \SpecialChar LyX
27752 .
27753 \end_layout
27754
27755 \begin_layout Description
27756 \begin_inset Flex Code
27757 status collapsed
27758
27759 \begin_layout Plain Layout
27760 $$Tempname
27761 \end_layout
27762
27763 \end_inset
27764
27765  A name and full path to a temporary file which will be automatically deleted
27766  whenever the containing document is closed, or the external material insertion
27767  deleted.
27768 \end_layout
27769
27770 \begin_layout Standard
27771 All path macros contain a trailing directory separator, so you can construct
27772  e.
27773 \begin_inset space \thinspace{}
27774 \end_inset
27775
27776 g.
27777 \begin_inset space \space{}
27778 \end_inset
27779
27780 the absolute filename with 
27781 \begin_inset Flex Code
27782 status collapsed
27783
27784 \begin_layout Plain Layout
27785 $$AbsPath$$Basename$$Extension
27786 \end_layout
27787
27788 \end_inset
27789
27790 .
27791 \end_layout
27792
27793 \begin_layout Standard
27794 The macros above are substituted in all commands unless otherwise noted.
27795  The command 
27796 \begin_inset Flex Code
27797 status collapsed
27798
27799 \begin_layout Plain Layout
27800 Product
27801 \end_layout
27802
27803 \end_inset
27804
27805  supports additionally the following substitutions if they are enabled by
27806  the 
27807 \begin_inset Flex Code
27808 status collapsed
27809
27810 \begin_layout Plain Layout
27811 Transform
27812 \end_layout
27813
27814 \end_inset
27815
27816  and 
27817 \begin_inset Flex Code
27818 status collapsed
27819
27820 \begin_layout Plain Layout
27821 TransformCommand
27822 \end_layout
27823
27824 \end_inset
27825
27826  commands:
27827 \end_layout
27828
27829 \begin_layout Description
27830 \begin_inset Flex Code
27831 status collapsed
27832
27833 \begin_layout Plain Layout
27834 $$ResizeFront
27835 \end_layout
27836
27837 \end_inset
27838
27839  The front part of the resize command.
27840 \end_layout
27841
27842 \begin_layout Description
27843 \begin_inset Flex Code
27844 status collapsed
27845
27846 \begin_layout Plain Layout
27847 $$ResizeBack
27848 \end_layout
27849
27850 \end_inset
27851
27852  The back part of the resize command.
27853 \end_layout
27854
27855 \begin_layout Description
27856 \begin_inset Flex Code
27857 status collapsed
27858
27859 \begin_layout Plain Layout
27860 $$RotateFront
27861 \end_layout
27862
27863 \end_inset
27864
27865  The front part of the rotation command.
27866 \end_layout
27867
27868 \begin_layout Description
27869 \begin_inset Flex Code
27870 status collapsed
27871
27872 \begin_layout Plain Layout
27873 $$RotateBack
27874 \end_layout
27875
27876 \end_inset
27877
27878  The back part of the rotation command.
27879 \end_layout
27880
27881 \begin_layout Standard
27882 The value string of the 
27883 \begin_inset Flex Code
27884 status collapsed
27885
27886 \begin_layout Plain Layout
27887 Option
27888 \end_layout
27889
27890 \end_inset
27891
27892  command supports additionally the following substitutions if they are enabled
27893  by the 
27894 \begin_inset Flex Code
27895 status collapsed
27896
27897 \begin_layout Plain Layout
27898 Transform
27899 \end_layout
27900
27901 \end_inset
27902
27903  and 
27904 \begin_inset Flex Code
27905 status collapsed
27906
27907 \begin_layout Plain Layout
27908 TransformOption
27909 \end_layout
27910
27911 \end_inset
27912
27913  commands:
27914 \end_layout
27915
27916 \begin_layout Description
27917 \begin_inset Flex Code
27918 status collapsed
27919
27920 \begin_layout Plain Layout
27921 $$Clip
27922 \end_layout
27923
27924 \end_inset
27925
27926  The clip option.
27927 \end_layout
27928
27929 \begin_layout Description
27930 \begin_inset Flex Code
27931 status collapsed
27932
27933 \begin_layout Plain Layout
27934 $$Extra
27935 \end_layout
27936
27937 \end_inset
27938
27939  The extra option.
27940 \end_layout
27941
27942 \begin_layout Description
27943 \begin_inset Flex Code
27944 status collapsed
27945
27946 \begin_layout Plain Layout
27947 $$Resize
27948 \end_layout
27949
27950 \end_inset
27951
27952  The resize option.
27953 \end_layout
27954
27955 \begin_layout Description
27956 \begin_inset Flex Code
27957 status collapsed
27958
27959 \begin_layout Plain Layout
27960 $$Rotate
27961 \end_layout
27962
27963 \end_inset
27964
27965  The rotation option.
27966 \end_layout
27967
27968 \begin_layout Standard
27969 You may ask why there are so many path macros.
27970  There are mainly two reasons:
27971 \end_layout
27972
27973 \begin_layout Enumerate
27974 Relative and absolute file names should remain relative or absolute, respectivel
27975 y.
27976  Users may have reasons to prefer either form.
27977  Relative names are useful for portable documents that should work on different
27978  machines, for example.
27979  Absolute names may be required by some programs.
27980 \end_layout
27981
27982 \begin_layout Enumerate
27983 \SpecialChar LaTeX
27984  treats relative file names differently than \SpecialChar LyX
27985  and other programs in nested
27986  included files.
27987  For \SpecialChar LyX
27988 , a relative file name is always relative to the document that contains
27989  the file name.
27990  For \SpecialChar LaTeX
27991 , it is always relative to the master document.
27992  These two definitions are identical if you have only one document, but
27993  differ if you have a master document that includes part documents.
27994  That means that relative filenames must be transformed when presented to
27995  \SpecialChar LaTeX
27996 .
27997  Fortunately \SpecialChar LyX
27998  does this automatically for you if you choose the right macros.
27999 \end_layout
28000
28001 \begin_layout Standard
28002 So which path macro should be used in new template definitions? The rule
28003  is not difficult:
28004 \end_layout
28005
28006 \begin_layout Itemize
28007 Use 
28008 \begin_inset Flex Code
28009 status collapsed
28010
28011 \begin_layout Plain Layout
28012 $$AbsPath
28013 \end_layout
28014
28015 \end_inset
28016
28017  if an absolute path is required.
28018 \end_layout
28019
28020 \begin_layout Itemize
28021 Use 
28022 \begin_inset Flex Code
28023 status collapsed
28024
28025 \begin_layout Plain Layout
28026 $$AbsOrRelPathMaster
28027 \end_layout
28028
28029 \end_inset
28030
28031  if the substituted string is some kind of \SpecialChar LaTeX
28032  input.
28033 \end_layout
28034
28035 \begin_layout Itemize
28036 Else use 
28037 \begin_inset Flex Code
28038 status collapsed
28039
28040 \begin_layout Plain Layout
28041 $$AbsOrRelPathParent
28042 \end_layout
28043
28044 \end_inset
28045
28046  in order to preserve the user's choice.
28047 \end_layout
28048
28049 \begin_layout Standard
28050 There are special cases where this rule does not work and e.
28051 \begin_inset space \thinspace{}
28052 \end_inset
28053
28054 g.
28055 \begin_inset space \space{}
28056 \end_inset
28057
28058 relative names are needed, but normally it will work just fine.
28059  One example for such a case is the command 
28060 \begin_inset Flex Code
28061 status collapsed
28062
28063 \begin_layout Plain Layout
28064 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28065 \end_layout
28066
28067 \end_inset
28068
28069  in the XFig template above: We can't use the absolute name because the
28070  copier for 
28071 \begin_inset Flex Code
28072 status collapsed
28073
28074 \begin_layout Plain Layout
28075 .pstex_t
28076 \end_layout
28077
28078 \end_inset
28079
28080  files needs the relative name in order to rewrite the file content.
28081 \end_layout
28082
28083 \begin_layout Section
28084 Security discussion
28085 \begin_inset CommandInset label
28086 LatexCommand label
28087 name "sec:Security-discussion"
28088
28089 \end_inset
28090
28091
28092 \end_layout
28093
28094 \begin_layout Standard
28095 The external material feature interfaces with a lot of external programs
28096  and does so automatically, so we have to consider the security implications
28097  of this.
28098  In particular, since you have the option of including your own filenames
28099  and/or parameter strings and those are expanded into a command, it seems
28100  that it would be possible to create a malicious document which executes
28101  arbitrary commands when a user views or prints the document.
28102  This is something we definitely want to avoid.
28103 \end_layout
28104
28105 \begin_layout Standard
28106 However, since the external program commands are specified in the template
28107  configuration file only, there are no security issues if \SpecialChar LyX
28108  is properly configure
28109 d with safe templates only.
28110  This is so because the external programs are invoked with the 
28111 \begin_inset Flex Code
28112 status collapsed
28113
28114 \begin_layout Plain Layout
28115 execvp
28116 \end_layout
28117
28118 \end_inset
28119
28120 -system call rather than the 
28121 \begin_inset Flex Code
28122 status collapsed
28123
28124 \begin_layout Plain Layout
28125 system
28126 \end_layout
28127
28128 \end_inset
28129
28130  system-call, so it's not possible to execute arbitrary commands from the
28131  filename or parameter section via the shell.
28132 \end_layout
28133
28134 \begin_layout Standard
28135 This also implies that you are restricted in what command strings you can
28136  use in the external material templates.
28137  In particular, pipes and redirection are not readily available.
28138  This has to be so if \SpecialChar LyX
28139  should remain safe.
28140  If you want to use some of the shell features, you should write a safe
28141  script to do this in a controlled manner, and then invoke the script from
28142  the command string.
28143  
28144 \end_layout
28145
28146 \begin_layout Standard
28147 It is possible to design a template that interacts directly with the shell,
28148  but since this would allow a malicious user to execute arbitrary commands
28149  by writing clever filenames and/or parameters, we generally recommend that
28150  you only use safe scripts that work with the 
28151 \begin_inset Flex Code
28152 status collapsed
28153
28154 \begin_layout Plain Layout
28155 execvp
28156 \end_layout
28157
28158 \end_inset
28159
28160  system call in a controlled manner.
28161  Of course, for use in a controlled environment, it can be tempting to just
28162  fall back to use ordinary shell scripts.
28163  If you do so, be aware that you 
28164 \emph on
28165 will
28166 \emph default
28167  provide an easily exploitable security hole in your system.
28168  Of course it stands to reason that such unsafe templates will never be
28169  included in the standard \SpecialChar LyX
28170  distribution, although we do encourage people
28171  to submit new templates in the open source tradition.
28172  But \SpecialChar LyX
28173  as shipped from the official distribution channels will never have
28174  unsafe templates.
28175 \end_layout
28176
28177 \begin_layout Standard
28178 Including external material provides a lot of power, and you have to be
28179  careful not to introduce security hazards with this power.
28180  A subtle error in a single line in an innocent looking script can open
28181  the door to huge security problems.
28182  So if you do not fully understand the issues, we recommend that you consult
28183  a knowledgeable security professional or the \SpecialChar LyX
28184  development team if you have
28185  any questions about whether a given template is safe or not.
28186  And do this before you use it in an uncontrolled environment.
28187 \end_layout
28188
28189 \begin_layout Chapter
28190 \start_of_appendix
28191 List of supported \SpecialChar LyX
28192  functions to be used in layouts
28193 \begin_inset CommandInset label
28194 LatexCommand label
28195 name "chap:List-of-functions"
28196
28197 \end_inset
28198
28199
28200 \end_layout
28201
28202 \begin_layout Standard
28203 \align center
28204 \begin_inset Tabular
28205 <lyxtabular version="3" rows="11" columns="8">
28206 <features tabularvalignment="middle">
28207 <column alignment="left" valignment="top">
28208 <column alignment="left" valignment="top">
28209 <column alignment="left" valignment="top">
28210 <column alignment="left" valignment="top">
28211 <column alignment="left" valignment="top">
28212 <column alignment="left" valignment="top">
28213 <column alignment="left" valignment="top">
28214 <column alignment="left" valignment="top">
28215 <row>
28216 <cell alignment="left" valignment="top" usebox="none">
28217 \begin_inset Text
28218
28219 \begin_layout Plain Layout
28220 accents
28221 \end_layout
28222
28223 \end_inset
28224 </cell>
28225 <cell alignment="left" valignment="top" usebox="none">
28226 \begin_inset Text
28227
28228 \begin_layout Plain Layout
28229 booktabs
28230 \end_layout
28231
28232 \end_inset
28233 </cell>
28234 <cell alignment="left" valignment="top" usebox="none">
28235 \begin_inset Text
28236
28237 \begin_layout Plain Layout
28238 feyn
28239 \end_layout
28240
28241 \end_inset
28242 </cell>
28243 <cell alignment="left" valignment="top" usebox="none">
28244 \begin_inset Text
28245
28246 \begin_layout Plain Layout
28247 listings
28248 \end_layout
28249
28250 \end_inset
28251 </cell>
28252 <cell alignment="center" valignment="top" usebox="none">
28253 \begin_inset Text
28254
28255 \begin_layout Plain Layout
28256 natbib
28257 \end_layout
28258
28259 \end_inset
28260 </cell>
28261 <cell alignment="center" valignment="top" usebox="none">
28262 \begin_inset Text
28263
28264 \begin_layout Plain Layout
28265 rotfloat
28266 \end_layout
28267
28268 \end_inset
28269 </cell>
28270 <cell alignment="center" valignment="top" usebox="none">
28271 \begin_inset Text
28272
28273 \begin_layout Plain Layout
28274 tfrupee
28275 \end_layout
28276
28277 \end_inset
28278 </cell>
28279 <cell alignment="center" valignment="top" usebox="none">
28280 \begin_inset Text
28281
28282 \begin_layout Plain Layout
28283 wasysym
28284 \end_layout
28285
28286 \end_inset
28287 </cell>
28288 </row>
28289 <row>
28290 <cell alignment="left" valignment="top" usebox="none">
28291 \begin_inset Text
28292
28293 \begin_layout Plain Layout
28294 amsbsy
28295 \end_layout
28296
28297 \end_inset
28298 </cell>
28299 <cell alignment="left" valignment="top" usebox="none">
28300 \begin_inset Text
28301
28302 \begin_layout Plain Layout
28303 calc
28304 \end_layout
28305
28306 \end_inset
28307 </cell>
28308 <cell alignment="left" valignment="top" usebox="none">
28309 \begin_inset Text
28310
28311 \begin_layout Plain Layout
28312 fixltx2e
28313 \end_layout
28314
28315 \end_inset
28316 </cell>
28317 <cell alignment="left" valignment="top" usebox="none">
28318 \begin_inset Text
28319
28320 \begin_layout Plain Layout
28321 longtable
28322 \end_layout
28323
28324 \end_inset
28325 </cell>
28326 <cell alignment="center" valignment="top" usebox="none">
28327 \begin_inset Text
28328
28329 \begin_layout Plain Layout
28330 nomencl
28331 \end_layout
28332
28333 \end_inset
28334 </cell>
28335 <cell alignment="center" valignment="top" usebox="none">
28336 \begin_inset Text
28337
28338 \begin_layout Plain Layout
28339 rsphrase
28340 \end_layout
28341
28342 \end_inset
28343 </cell>
28344 <cell alignment="center" valignment="top" usebox="none">
28345 \begin_inset Text
28346
28347 \begin_layout Plain Layout
28348 tipa
28349 \end_layout
28350
28351 \end_inset
28352 </cell>
28353 <cell alignment="center" valignment="top" usebox="none">
28354 \begin_inset Text
28355
28356 \begin_layout Plain Layout
28357 wrapfig
28358 \end_layout
28359
28360 \end_inset
28361 </cell>
28362 </row>
28363 <row>
28364 <cell alignment="left" valignment="top" usebox="none">
28365 \begin_inset Text
28366
28367 \begin_layout Plain Layout
28368 amscd
28369 \end_layout
28370
28371 \end_inset
28372 </cell>
28373 <cell alignment="left" valignment="top" usebox="none">
28374 \begin_inset Text
28375
28376 \begin_layout Plain Layout
28377 CJK
28378 \end_layout
28379
28380 \end_inset
28381 </cell>
28382 <cell alignment="left" valignment="top" usebox="none">
28383 \begin_inset Text
28384
28385 \begin_layout Plain Layout
28386 float
28387 \end_layout
28388
28389 \end_inset
28390 </cell>
28391 <cell alignment="left" valignment="top" usebox="none">
28392 \begin_inset Text
28393
28394 \begin_layout Plain Layout
28395 lyxskak
28396 \end_layout
28397
28398 \end_inset
28399 </cell>
28400 <cell alignment="center" valignment="top" usebox="none">
28401 \begin_inset Text
28402
28403 \begin_layout Plain Layout
28404 pdfcolmk
28405 \end_layout
28406
28407 \end_inset
28408 </cell>
28409 <cell alignment="center" valignment="top" usebox="none">
28410 \begin_inset Text
28411
28412 \begin_layout Plain Layout
28413 setspace
28414 \end_layout
28415
28416 \end_inset
28417 </cell>
28418 <cell alignment="center" valignment="top" usebox="none">
28419 \begin_inset Text
28420
28421 \begin_layout Plain Layout
28422 tipx
28423 \end_layout
28424
28425 \end_inset
28426 </cell>
28427 <cell alignment="center" valignment="top" usebox="none">
28428 \begin_inset Text
28429
28430 \begin_layout Plain Layout
28431 xargs
28432 \end_layout
28433
28434 \end_inset
28435 </cell>
28436 </row>
28437 <row>
28438 <cell alignment="left" valignment="top" usebox="none">
28439 \begin_inset Text
28440
28441 \begin_layout Plain Layout
28442 amsmath
28443 \end_layout
28444
28445 \end_inset
28446 </cell>
28447 <cell alignment="left" valignment="top" usebox="none">
28448 \begin_inset Text
28449
28450 \begin_layout Plain Layout
28451 color
28452 \end_layout
28453
28454 \end_inset
28455 </cell>
28456 <cell alignment="left" valignment="top" usebox="none">
28457 \begin_inset Text
28458
28459 \begin_layout Plain Layout
28460 framed
28461 \end_layout
28462
28463 \end_inset
28464 </cell>
28465 <cell alignment="left" valignment="top" usebox="none">
28466 \begin_inset Text
28467
28468 \begin_layout Plain Layout
28469 makeidx
28470 \end_layout
28471
28472 \end_inset
28473 </cell>
28474 <cell alignment="center" valignment="top" usebox="none">
28475 \begin_inset Text
28476
28477 \begin_layout Plain Layout
28478 pdfpages
28479 \end_layout
28480
28481 \end_inset
28482 </cell>
28483 <cell alignment="center" valignment="top" usebox="none">
28484 \begin_inset Text
28485
28486 \begin_layout Plain Layout
28487 shapepar
28488 \end_layout
28489
28490 \end_inset
28491 </cell>
28492 <cell alignment="center" valignment="top" usebox="none">
28493 \begin_inset Text
28494
28495 \begin_layout Plain Layout
28496 tone
28497 \end_layout
28498
28499 \end_inset
28500 </cell>
28501 <cell alignment="center" valignment="top" usebox="none">
28502 \begin_inset Text
28503
28504 \begin_layout Plain Layout
28505 xcolor
28506 \end_layout
28507
28508 \end_inset
28509 </cell>
28510 </row>
28511 <row>
28512 <cell alignment="left" valignment="top" usebox="none">
28513 \begin_inset Text
28514
28515 \begin_layout Plain Layout
28516 amssymb
28517 \end_layout
28518
28519 \end_inset
28520 </cell>
28521 <cell alignment="left" valignment="top" usebox="none">
28522 \begin_inset Text
28523
28524 \begin_layout Plain Layout
28525 covington
28526 \end_layout
28527
28528 \end_inset
28529 </cell>
28530 <cell alignment="left" valignment="top" usebox="none">
28531 \begin_inset Text
28532
28533 \begin_layout Plain Layout
28534 graphicx
28535 \end_layout
28536
28537 \end_inset
28538 </cell>
28539 <cell alignment="left" valignment="top" usebox="none">
28540 \begin_inset Text
28541
28542 \begin_layout Plain Layout
28543 marvosym
28544 \end_layout
28545
28546 \end_inset
28547 </cell>
28548 <cell alignment="center" valignment="top" usebox="none">
28549 \begin_inset Text
28550
28551 \begin_layout Plain Layout
28552 pifont
28553 \end_layout
28554
28555 \end_inset
28556 </cell>
28557 <cell alignment="center" valignment="top" usebox="none">
28558 \begin_inset Text
28559
28560 \begin_layout Plain Layout
28561 slashed
28562 \end_layout
28563
28564 \end_inset
28565 </cell>
28566 <cell alignment="center" valignment="top" usebox="none">
28567 \begin_inset Text
28568
28569 \begin_layout Plain Layout
28570 txfonts
28571 \end_layout
28572
28573 \end_inset
28574 </cell>
28575 <cell alignment="center" valignment="top" usebox="none">
28576 \begin_inset Text
28577
28578 \begin_layout Plain Layout
28579 xy
28580 \end_layout
28581
28582 \end_inset
28583 </cell>
28584 </row>
28585 <row>
28586 <cell alignment="left" valignment="top" usebox="none">
28587 \begin_inset Text
28588
28589 \begin_layout Plain Layout
28590 amstext
28591 \end_layout
28592
28593 \end_inset
28594 </cell>
28595 <cell alignment="left" valignment="top" usebox="none">
28596 \begin_inset Text
28597
28598 \begin_layout Plain Layout
28599 csquotes
28600 \end_layout
28601
28602 \end_inset
28603 </cell>
28604 <cell alignment="left" valignment="top" usebox="none">
28605 \begin_inset Text
28606
28607 \begin_layout Plain Layout
28608 hhline
28609 \end_layout
28610
28611 \end_inset
28612 </cell>
28613 <cell alignment="left" valignment="top" usebox="none">
28614 \begin_inset Text
28615
28616 \begin_layout Plain Layout
28617 mathdesign
28618 \end_layout
28619
28620 \end_inset
28621 </cell>
28622 <cell alignment="center" valignment="top" usebox="none">
28623 \begin_inset Text
28624
28625 \begin_layout Plain Layout
28626 pmboxdraw
28627 \end_layout
28628
28629 \end_inset
28630 </cell>
28631 <cell alignment="center" valignment="top" usebox="none">
28632 \begin_inset Text
28633
28634 \begin_layout Plain Layout
28635 soul
28636 \end_layout
28637
28638 \end_inset
28639 </cell>
28640 <cell alignment="center" valignment="top" usebox="none">
28641 \begin_inset Text
28642
28643 \begin_layout Plain Layout
28644 ulem
28645 \end_layout
28646
28647 \end_inset
28648 </cell>
28649 <cell alignment="center" valignment="top" usebox="none">
28650 \begin_inset Text
28651
28652 \begin_layout Plain Layout
28653 yhmath
28654 \end_layout
28655
28656 \end_inset
28657 </cell>
28658 </row>
28659 <row>
28660 <cell alignment="left" valignment="top" usebox="none">
28661 \begin_inset Text
28662
28663 \begin_layout Plain Layout
28664 amsthm
28665 \end_layout
28666
28667 \end_inset
28668 </cell>
28669 <cell alignment="left" valignment="top" usebox="none">
28670 \begin_inset Text
28671
28672 \begin_layout Plain Layout
28673 dvipost
28674 \end_layout
28675
28676 \end_inset
28677 </cell>
28678 <cell alignment="left" valignment="top" usebox="none">
28679 \begin_inset Text
28680
28681 \begin_layout Plain Layout
28682 hyperref
28683 \end_layout
28684
28685 \end_inset
28686 </cell>
28687 <cell alignment="left" valignment="top" usebox="none">
28688 \begin_inset Text
28689
28690 \begin_layout Plain Layout
28691 mathdots
28692 \end_layout
28693
28694 \end_inset
28695 </cell>
28696 <cell alignment="center" valignment="top" usebox="none">
28697 \begin_inset Text
28698
28699 \begin_layout Plain Layout
28700 polyglossia
28701 \end_layout
28702
28703 \end_inset
28704 </cell>
28705 <cell alignment="center" valignment="top" usebox="none">
28706 \begin_inset Text
28707
28708 \begin_layout Plain Layout
28709 splitidx
28710 \end_layout
28711
28712 \end_inset
28713 </cell>
28714 <cell alignment="center" valignment="top" usebox="none">
28715 \begin_inset Text
28716
28717 \begin_layout Plain Layout
28718 undertilde
28719 \end_layout
28720
28721 \end_inset
28722 </cell>
28723 <cell alignment="center" valignment="top" usebox="none">
28724 \begin_inset Text
28725
28726 \begin_layout Plain Layout
28727
28728 \end_layout
28729
28730 \end_inset
28731 </cell>
28732 </row>
28733 <row>
28734 <cell alignment="left" valignment="top" usebox="none">
28735 \begin_inset Text
28736
28737 \begin_layout Plain Layout
28738 array
28739 \end_layout
28740
28741 \end_inset
28742 </cell>
28743 <cell alignment="left" valignment="top" usebox="none">
28744 \begin_inset Text
28745
28746 \begin_layout Plain Layout
28747 endnotes
28748 \end_layout
28749
28750 \end_inset
28751 </cell>
28752 <cell alignment="left" valignment="top" usebox="none">
28753 \begin_inset Text
28754
28755 \begin_layout Plain Layout
28756 ifsym
28757 \end_layout
28758
28759 \end_inset
28760 </cell>
28761 <cell alignment="left" valignment="top" usebox="none">
28762 \begin_inset Text
28763
28764 \begin_layout Plain Layout
28765 mathrsfs
28766 \end_layout
28767
28768 \end_inset
28769 </cell>
28770 <cell alignment="center" valignment="top" usebox="none">
28771 \begin_inset Text
28772
28773 \begin_layout Plain Layout
28774 prettyref
28775 \end_layout
28776
28777 \end_inset
28778 </cell>
28779 <cell alignment="center" valignment="top" usebox="none">
28780 \begin_inset Text
28781
28782 \begin_layout Plain Layout
28783 subfig
28784 \end_layout
28785
28786 \end_inset
28787 </cell>
28788 <cell alignment="center" valignment="top" usebox="none">
28789 \begin_inset Text
28790
28791 \begin_layout Plain Layout
28792 units
28793 \end_layout
28794
28795 \end_inset
28796 </cell>
28797 <cell alignment="center" valignment="top" usebox="none">
28798 \begin_inset Text
28799
28800 \begin_layout Plain Layout
28801
28802 \end_layout
28803
28804 \end_inset
28805 </cell>
28806 </row>
28807 <row>
28808 <cell alignment="left" valignment="top" usebox="none">
28809 \begin_inset Text
28810
28811 \begin_layout Plain Layout
28812 ascii
28813 \end_layout
28814
28815 \end_inset
28816 </cell>
28817 <cell alignment="left" valignment="top" usebox="none">
28818 \begin_inset Text
28819
28820 \begin_layout Plain Layout
28821 enumitem
28822 \end_layout
28823
28824 \end_inset
28825 </cell>
28826 <cell alignment="left" valignment="top" usebox="none">
28827 \begin_inset Text
28828
28829 \begin_layout Plain Layout
28830 ifthen
28831 \end_layout
28832
28833 \end_inset
28834 </cell>
28835 <cell alignment="left" valignment="top" usebox="none">
28836 \begin_inset Text
28837
28838 \begin_layout Plain Layout
28839 mhchem
28840 \end_layout
28841
28842 \end_inset
28843 </cell>
28844 <cell alignment="center" valignment="top" usebox="none">
28845 \begin_inset Text
28846
28847 \begin_layout Plain Layout
28848 pxfonts
28849 \end_layout
28850
28851 \end_inset
28852 </cell>
28853 <cell alignment="center" valignment="top" usebox="none">
28854 \begin_inset Text
28855
28856 \begin_layout Plain Layout
28857 subscript
28858 \end_layout
28859
28860 \end_inset
28861 </cell>
28862 <cell alignment="center" valignment="top" usebox="none">
28863 \begin_inset Text
28864
28865 \begin_layout Plain Layout
28866 url
28867 \end_layout
28868
28869 \end_inset
28870 </cell>
28871 <cell alignment="center" valignment="top" usebox="none">
28872 \begin_inset Text
28873
28874 \begin_layout Plain Layout
28875
28876 \end_layout
28877
28878 \end_inset
28879 </cell>
28880 </row>
28881 <row>
28882 <cell alignment="left" valignment="top" usebox="none">
28883 \begin_inset Text
28884
28885 \begin_layout Plain Layout
28886 bbding
28887 \end_layout
28888
28889 \end_inset
28890 </cell>
28891 <cell alignment="left" valignment="top" usebox="none">
28892 \begin_inset Text
28893
28894 \begin_layout Plain Layout
28895 esint
28896 \end_layout
28897
28898 \end_inset
28899 </cell>
28900 <cell alignment="left" valignment="top" usebox="none">
28901 \begin_inset Text
28902
28903 \begin_layout Plain Layout
28904 jurabib
28905 \end_layout
28906
28907 \end_inset
28908 </cell>
28909 <cell alignment="left" valignment="top" usebox="none">
28910 \begin_inset Text
28911
28912 \begin_layout Plain Layout
28913 multicol
28914 \end_layout
28915
28916 \end_inset
28917 </cell>
28918 <cell alignment="center" valignment="top" usebox="none">
28919 \begin_inset Text
28920
28921 \begin_layout Plain Layout
28922 refstyle
28923 \end_layout
28924
28925 \end_inset
28926 </cell>
28927 <cell alignment="center" valignment="top" usebox="none">
28928 \begin_inset Text
28929
28930 \begin_layout Plain Layout
28931 textcomp
28932 \end_layout
28933
28934 \end_inset
28935 </cell>
28936 <cell alignment="center" valignment="top" usebox="none">
28937 \begin_inset Text
28938
28939 \begin_layout Plain Layout
28940 varioref
28941 \end_layout
28942
28943 \end_inset
28944 </cell>
28945 <cell alignment="center" valignment="top" usebox="none">
28946 \begin_inset Text
28947
28948 \begin_layout Plain Layout
28949
28950 \end_layout
28951
28952 \end_inset
28953 </cell>
28954 </row>
28955 <row>
28956 <cell alignment="center" valignment="top" usebox="none">
28957 \begin_inset Text
28958
28959 \begin_layout Plain Layout
28960 bm
28961 \end_layout
28962
28963 \end_inset
28964 </cell>
28965 <cell alignment="center" valignment="top" usebox="none">
28966 \begin_inset Text
28967
28968 \begin_layout Plain Layout
28969 fancybox
28970 \end_layout
28971
28972 \end_inset
28973 </cell>
28974 <cell alignment="center" valignment="top" usebox="none">
28975 \begin_inset Text
28976
28977 \begin_layout Plain Layout
28978 latexsym
28979 \end_layout
28980
28981 \end_inset
28982 </cell>
28983 <cell alignment="center" valignment="top" usebox="none">
28984 \begin_inset Text
28985
28986 \begin_layout Plain Layout
28987 multirow
28988 \end_layout
28989
28990 \end_inset
28991 </cell>
28992 <cell alignment="center" valignment="top" usebox="none">
28993 \begin_inset Text
28994
28995 \begin_layout Plain Layout
28996 rotating
28997 \end_layout
28998
28999 \end_inset
29000 </cell>
29001 <cell alignment="center" valignment="top" usebox="none">
29002 \begin_inset Text
29003
29004 \begin_layout Plain Layout
29005 textgreek
29006 \end_layout
29007
29008 \end_inset
29009 </cell>
29010 <cell alignment="center" valignment="top" usebox="none">
29011 \begin_inset Text
29012
29013 \begin_layout Plain Layout
29014 verbatim
29015 \end_layout
29016
29017 \end_inset
29018 </cell>
29019 <cell alignment="center" valignment="top" usebox="none">
29020 \begin_inset Text
29021
29022 \begin_layout Plain Layout
29023
29024 \end_layout
29025
29026 \end_inset
29027 </cell>
29028 </row>
29029 </lyxtabular>
29030
29031 \end_inset
29032
29033
29034 \end_layout
29035
29036 \begin_layout Chapter
29037 Names of available colors to be used in layouts
29038 \begin_inset CommandInset label
29039 LatexCommand label
29040 name "chap:Names-of-colors"
29041
29042 \end_inset
29043
29044
29045 \end_layout
29046
29047 \begin_layout Standard
29048 The colors listed below are the standard colors and those that you can adjust
29049  in the \SpecialChar LyX
29050  preferences.
29051 \end_layout
29052
29053 \begin_layout Section
29054 Color functions
29055 \end_layout
29056
29057 \begin_layout Standard
29058 The following are no real colors, but rather act on color definitions:
29059 \end_layout
29060
29061 \begin_layout Description
29062 ignore The color is ignored
29063 \end_layout
29064
29065 \begin_layout Description
29066 inherit The color is inherited
29067 \end_layout
29068
29069 \begin_layout Description
29070 none
29071 \family roman
29072 \series medium
29073 \shape up
29074 \size normal
29075 \emph off
29076 \bar no
29077 \strikeout off
29078 \uuline off
29079 \uwave off
29080 \noun off
29081 \color none
29082  No particular color – clear or default
29083 \end_layout
29084
29085 \begin_layout Section
29086 Static colors
29087 \end_layout
29088
29089 \begin_layout Standard
29090 These are fixed colors that cannot me customized:
29091 \end_layout
29092
29093 \begin_layout Description
29094 black
29095 \end_layout
29096
29097 \begin_layout Description
29098 white
29099 \end_layout
29100
29101 \begin_layout Description
29102 blue
29103 \end_layout
29104
29105 \begin_layout Description
29106 brown
29107 \end_layout
29108
29109 \begin_layout Description
29110 cyan
29111 \end_layout
29112
29113 \begin_layout Description
29114 darkgray
29115 \end_layout
29116
29117 \begin_layout Description
29118 gray
29119 \end_layout
29120
29121 \begin_layout Description
29122 green
29123 \end_layout
29124
29125 \begin_layout Description
29126 lightgray
29127 \end_layout
29128
29129 \begin_layout Description
29130 lime
29131 \end_layout
29132
29133 \begin_layout Description
29134 magenta
29135 \end_layout
29136
29137 \begin_layout Description
29138 olive
29139 \end_layout
29140
29141 \begin_layout Description
29142 orange
29143 \end_layout
29144
29145 \begin_layout Description
29146 pink
29147 \end_layout
29148
29149 \begin_layout Description
29150 purple
29151 \end_layout
29152
29153 \begin_layout Description
29154 red
29155 \end_layout
29156
29157 \begin_layout Description
29158 teal
29159 \end_layout
29160
29161 \begin_layout Description
29162 violet
29163 \end_layout
29164
29165 \begin_layout Description
29166 yellow
29167 \end_layout
29168
29169 \begin_layout Section
29170 Dynamic colors
29171 \end_layout
29172
29173 \begin_layout Standard
29174 These are the colors allocated to specific elements in 
29175 \begin_inset Info
29176 type  "menu"
29177 arg   "dialog-show prefs"
29178 \end_inset
29179
29180 :
29181 \end_layout
29182
29183 \begin_layout Description
29184 added_space Added space color
29185 \end_layout
29186
29187 \begin_layout Description
29188 addedtext Added text color
29189 \end_layout
29190
29191 \begin_layout Description
29192 appendix Appendix marker color
29193 \end_layout
29194
29195 \begin_layout Description
29196 background Background color
29197 \end_layout
29198
29199 \begin_layout Description
29200 bottomarea Bottom area color
29201 \end_layout
29202
29203 \begin_layout Description
29204 branchlabel Label color for branches
29205 \end_layout
29206
29207 \begin_layout Description
29208 buttonbg Color used for button background
29209 \end_layout
29210
29211 \begin_layout Description
29212 buttonframe Color for inset button frames
29213 \end_layout
29214
29215 \begin_layout Description
29216 buttonhoverbg Color used for button background under focus
29217 \end_layout
29218
29219 \begin_layout Description
29220 changebar Changebar color
29221 \end_layout
29222
29223 \begin_layout Description
29224 changedtextauthor1 Changed text color author 1
29225 \end_layout
29226
29227 \begin_layout Description
29228 changedtextauthor2 Changed text color author 2
29229 \end_layout
29230
29231 \begin_layout Description
29232 changedtextauthor3 Changed text color author 3
29233 \end_layout
29234
29235 \begin_layout Description
29236 changedtextauthor4 Changed text color author 4
29237 \end_layout
29238
29239 \begin_layout Description
29240 changedtextauthor5 Changed text color author 5
29241 \end_layout
29242
29243 \begin_layout Description
29244 collapsible Collapsible insets text color
29245 \end_layout
29246
29247 \begin_layout Description
29248 collapsibleframe Collapsible insets framecolor
29249 \end_layout
29250
29251 \begin_layout Description
29252 command Text color for command insets
29253 \end_layout
29254
29255 \begin_layout Description
29256 commandbg Background color for command insets
29257 \end_layout
29258
29259 \begin_layout Description
29260 commandframe Frame color for command insets
29261 \end_layout
29262
29263 \begin_layout Description
29264 comment Label color for comments
29265 \end_layout
29266
29267 \begin_layout Description
29268 commentbg Background color of comments
29269 \end_layout
29270
29271 \begin_layout Description
29272 cursor Cursor color
29273 \end_layout
29274
29275 \begin_layout Description
29276 deletedtext Deleted text color
29277 \end_layout
29278
29279 \begin_layout Description
29280 deletedtextmodifier Deleted text modifying color
29281 \end_layout
29282
29283 \begin_layout Description
29284 depthbar Color for the depth bars in the margin
29285 \end_layout
29286
29287 \begin_layout Description
29288 eolmarker End of line marker color
29289 \end_layout
29290
29291 \begin_layout Description
29292 error Color of the \SpecialChar LaTeX
29293  error box
29294 \end_layout
29295
29296 \begin_layout Description
29297 footlabel Label color for footnotes
29298 \end_layout
29299
29300 \begin_layout Description
29301 foreground Foreground color
29302 \end_layout
29303
29304 \begin_layout Description
29305 graphicsbg Graphics inset background color
29306 \end_layout
29307
29308 \begin_layout Description
29309 greyedoutbg Background color of greyedout inset
29310 \end_layout
29311
29312 \begin_layout Description
29313 greyedoutlabel Label color for greyedout insets
29314 \end_layout
29315
29316 \begin_layout Description
29317 greyedouttext Color for greyedout inset text
29318 \end_layout
29319
29320 \begin_layout Description
29321 indexlabel Label color for index insets
29322 \end_layout
29323
29324 \begin_layout Description
29325 inlinecompletion Inline completion color
29326 \end_layout
29327
29328 \begin_layout Description
29329 insetbg Inset marker background color
29330 \end_layout
29331
29332 \begin_layout Description
29333 insetframe Inset marker frame color
29334 \end_layout
29335
29336 \begin_layout Description
29337 language Color for marking foreign language words
29338 \end_layout
29339
29340 \begin_layout Description
29341 latex Text color in \SpecialChar LaTeX
29342  mode
29343 \end_layout
29344
29345 \begin_layout Description
29346 listingsbg Background color of listings inset
29347 \end_layout
29348
29349 \begin_layout Description
29350 marginlabel Label color for margin notes
29351 \end_layout
29352
29353 \begin_layout Description
29354 math Math inset text color
29355 \end_layout
29356
29357 \begin_layout Description
29358 mathbg Math inset background color
29359 \end_layout
29360
29361 \begin_layout Description
29362 mathcorners Math inset frame color not under focus
29363 \end_layout
29364
29365 \begin_layout Description
29366 mathframe Math inset frame color under focus
29367 \end_layout
29368
29369 \begin_layout Description
29370 mathline Math line color
29371 \end_layout
29372
29373 \begin_layout Description
29374 mathmacrobg Macro math inset background color
29375 \end_layout
29376
29377 \begin_layout Description
29378 mathmacroblend Macro math blended color
29379 \end_layout
29380
29381 \begin_layout Description
29382 mathmacroframe Macro math frame color
29383 \end_layout
29384
29385 \begin_layout Description
29386 mathmacrohoverbg Macro math inset background color hovered
29387 \end_layout
29388
29389 \begin_layout Description
29390 mathmacrolabel Macro math label color
29391 \end_layout
29392
29393 \begin_layout Description
29394 mathmacronewarg Macro template color for new parameters
29395 \end_layout
29396
29397 \begin_layout Description
29398 mathmacrooldarg Macro template color for old parameters
29399 \end_layout
29400
29401 \begin_layout Description
29402 newpage New page color
29403 \end_layout
29404
29405 \begin_layout Description
29406 nonunique_inlinecompletion Inline completion color for the non-unique part
29407 \end_layout
29408
29409 \begin_layout Description
29410 note Label color for notes
29411 \end_layout
29412
29413 \begin_layout Description
29414 notebg Background color of notes
29415 \end_layout
29416
29417 \begin_layout Description
29418 pagebreak Page break/line break color
29419 \end_layout
29420
29421 \begin_layout Description
29422 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29423 \end_layout
29424
29425 \begin_layout Description
29426 phantomtext Text color for phantom insets
29427 \end_layout
29428
29429 \begin_layout Description
29430 preview The color used for previews
29431 \end_layout
29432
29433 \begin_layout Description
29434 previewframe Preview frame color
29435 \end_layout
29436
29437 \begin_layout Description
29438 regexpframe Color for regexp frame
29439 \end_layout
29440
29441 \begin_layout Description
29442 scroll Color that indicates when a row can be scrolled 
29443 \end_layout
29444
29445 \begin_layout Description
29446 selection Background color of selected text
29447 \end_layout
29448
29449 \begin_layout Description
29450 selectiontext Foreground color of selected text
29451 \end_layout
29452
29453 \begin_layout Description
29454 shadedbg Background color of shaded box
29455 \end_layout
29456
29457 \begin_layout Description
29458 special Special chars text color
29459 \end_layout
29460
29461 \begin_layout Description
29462 tabularline Table line color
29463 \end_layout
29464
29465 \begin_layout Description
29466 tabularonoffline Table line color
29467 \end_layout
29468
29469 \begin_layout Description
29470 urllabel Label color for URL insets
29471 \end_layout
29472
29473 \begin_layout Description
29474 urltext Color for URL inset text
29475 \end_layout
29476
29477 \end_body
29478 \end_document