]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
New InsetLayout tag ParbreakIgnored
[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 \change_inserted -712698321 1559491850
20940
20941 \end_layout
20942
20943 \begin_layout Description
20944
20945 \change_inserted -712698321 1559492002
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950
20951 \change_inserted -712698321 1559491854
20952 ParbreakIgnored
20953 \end_layout
20954
20955 \end_inset
20956
20957  [
20958 \begin_inset Flex Code
20959 status collapsed
20960
20961 \begin_layout Plain Layout
20962
20963 \change_inserted -712698321 1559491850
20964
20965 \emph on
20966 0
20967 \end_layout
20968
20969 \end_inset
20970
20971 ,
20972 \begin_inset space \thinspace{}
20973 \end_inset
20974
20975
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980
20981 \change_inserted -712698321 1559491850
20982 1
20983 \end_layout
20984
20985 \end_inset
20986
20987 ] If this is set to 
20988 \begin_inset Flex Code
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992
20993 \change_inserted -712698321 1559491881
20994 1
20995 \change_unchanged
20996
20997 \end_layout
20998
20999 \end_inset
21000
21001 , paragraph breaks will be ignored in the output.
21002  This might be useful for insets where the content should be alignable on
21003  different lines only in the \SpecialChar LyX
21004  workarea, without any effect in the output.
21005 \change_unchanged
21006
21007 \end_layout
21008
21009 \begin_layout Description
21010 \begin_inset Flex Code
21011 status collapsed
21012
21013 \begin_layout Plain Layout
21014 ParbreakIsNewline
21015 \end_layout
21016
21017 \end_inset
21018
21019  [
21020 \begin_inset Flex Code
21021 status collapsed
21022
21023 \begin_layout Plain Layout
21024
21025 \emph on
21026 0
21027 \end_layout
21028
21029 \end_inset
21030
21031 ,
21032 \begin_inset space \thinspace{}
21033 \end_inset
21034
21035
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 1
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  Default is false.
21054 \end_layout
21055
21056 \begin_layout Description
21057 \begin_inset Flex Code
21058 status collapsed
21059
21060 \begin_layout Plain Layout
21061 PassThru
21062 \end_layout
21063
21064 \end_inset
21065
21066  [
21067 \begin_inset Flex Code
21068 status collapsed
21069
21070 \begin_layout Plain Layout
21071
21072 \emph on
21073 0
21074 \end_layout
21075
21076 \end_inset
21077
21078 ,
21079 \begin_inset space \thinspace{}
21080 \end_inset
21081
21082
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087 1
21088 \end_layout
21089
21090 \end_inset
21091
21092 ] As with paragraph styles, see 
21093 \begin_inset CommandInset ref
21094 LatexCommand ref
21095 reference "subsec:Paragraph-Styles"
21096
21097 \end_inset
21098
21099 .
21100  Default is false.
21101 \end_layout
21102
21103 \begin_layout Description
21104 \begin_inset Flex Code
21105 status collapsed
21106
21107 \begin_layout Plain Layout
21108 Preamble
21109 \end_layout
21110
21111 \end_inset
21112
21113  As with paragraph styles, see 
21114 \begin_inset CommandInset ref
21115 LatexCommand ref
21116 reference "subsec:Paragraph-Styles"
21117
21118 \end_inset
21119
21120 .
21121 \end_layout
21122
21123 \begin_layout Description
21124 \begin_inset Flex Code
21125 status collapsed
21126
21127 \begin_layout Plain Layout
21128 RefPrefix
21129 \end_layout
21130
21131 \end_inset
21132
21133  [
21134 \begin_inset Flex Code
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138 string
21139 \end_layout
21140
21141 \end_inset
21142
21143 ] The prefix to use when creating labels referring to insets of this type.
21144  This allows the use of formatted references.
21145 \end_layout
21146
21147 \begin_layout Description
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 Requires
21153 \end_layout
21154
21155 \end_inset
21156
21157  [
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 string
21163 \end_layout
21164
21165 \end_inset
21166
21167 ] As with paragraph styles, see 
21168 \begin_inset CommandInset ref
21169 LatexCommand ref
21170 reference "subsec:Paragraph-Styles"
21171
21172 \end_inset
21173
21174 .
21175 \end_layout
21176
21177 \begin_layout Description
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 ResetArgs
21183 \end_layout
21184
21185 \end_inset
21186
21187  [
21188 \begin_inset Flex Code
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192
21193 \emph on
21194 0
21195 \end_layout
21196
21197 \end_inset
21198
21199 ,
21200 \begin_inset space \thinspace{}
21201 \end_inset
21202
21203
21204 \begin_inset Flex Code
21205 status collapsed
21206
21207 \begin_layout Plain Layout
21208 1
21209 \end_layout
21210
21211 \end_inset
21212
21213 ] Resets the \SpecialChar LaTeX
21214  arguments of this layout (as defined via the 
21215 \begin_inset Flex Code
21216 status collapsed
21217
21218 \begin_layout Plain Layout
21219 Argument
21220 \end_layout
21221
21222 \end_inset
21223
21224  tag).
21225  This is useful if you have copied a style via 
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230 CopyStyle
21231 \end_layout
21232
21233 \end_inset
21234
21235 , but you do not want to inherit its (required and optional) arguments.
21236 \end_layout
21237
21238 \begin_layout Description
21239 \begin_inset Flex Code
21240 status collapsed
21241
21242 \begin_layout Plain Layout
21243 ResetsFont
21244 \end_layout
21245
21246 \end_inset
21247
21248  [
21249 \begin_inset Flex Code
21250 status collapsed
21251
21252 \begin_layout Plain Layout
21253 0
21254 \end_layout
21255
21256 \end_inset
21257
21258 ,
21259 \begin_inset space \thinspace{}
21260 \end_inset
21261
21262
21263 \begin_inset Flex Code
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267
21268 \emph on
21269 1
21270 \end_layout
21271
21272 \end_inset
21273
21274 ] Whether this inset should use the font of its surrounding environment
21275  or uses its own.
21276  Default is false: use the font of the surrounding environment.
21277 \end_layout
21278
21279 \begin_layout Description
21280 \begin_inset Flex Code
21281 status collapsed
21282
21283 \begin_layout Plain Layout
21284 RightDelim
21285 \end_layout
21286
21287 \end_inset
21288
21289  [
21290 \begin_inset Flex Code
21291 status collapsed
21292
21293 \begin_layout Plain Layout
21294 string
21295 \end_layout
21296
21297 \end_inset
21298
21299 ] A string that is put at the end of the layout content.
21300  A line break in the output can be indicated by 
21301 \begin_inset Flex Code
21302 status collapsed
21303
21304 \begin_layout Plain Layout
21305 <br/>
21306 \end_layout
21307
21308 \end_inset
21309
21310 .
21311 \end_layout
21312
21313 \begin_layout Description
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 Spellcheck
21319 \end_layout
21320
21321 \end_inset
21322
21323  [
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 0
21329 \end_layout
21330
21331 \end_inset
21332
21333 ,
21334 \begin_inset space \thinspace{}
21335 \end_inset
21336
21337
21338 \begin_inset Flex Code
21339 status collapsed
21340
21341 \begin_layout Plain Layout
21342
21343 \emph on
21344 1
21345 \end_layout
21346
21347 \end_inset
21348
21349 ] Allow spell-checking the contents of this inset.
21350  Default is true.
21351 \end_layout
21352
21353 \begin_layout Subsection
21354 Counters
21355 \begin_inset CommandInset label
21356 LatexCommand label
21357 name "subsec:Counters"
21358
21359 \end_inset
21360
21361
21362 \end_layout
21363
21364 \begin_layout Standard
21365 It is necessary to define the counters (
21366 \begin_inset Flex Noun
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370 chapter
21371 \end_layout
21372
21373 \end_inset
21374
21375
21376 \begin_inset Flex Noun
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 figure
21381 \end_layout
21382
21383 \end_inset
21384
21385 , \SpecialChar ldots
21386 ) in the text class itself.
21387  The standard counters are defined in the file 
21388 \begin_inset Flex Code
21389 status collapsed
21390
21391 \begin_layout Plain Layout
21392 stdcounters.inc
21393 \end_layout
21394
21395 \end_inset
21396
21397 , so you may have to do no more than add
21398 \end_layout
21399
21400 \begin_layout LyX-Code
21401 Input stdcounters.inc
21402 \end_layout
21403
21404 \begin_layout Standard
21405 to your layout file to get them to work.
21406  But if you want to define custom counters, then you can do so.
21407  The counter declaration must begin with:
21408 \end_layout
21409
21410 \begin_layout LyX-Code
21411 Counter CounterName
21412 \end_layout
21413
21414 \begin_layout Standard
21415 where of course `
21416 \begin_inset Flex Code
21417 status collapsed
21418
21419 \begin_layout Plain Layout
21420 CounterName
21421 \end_layout
21422
21423 \end_inset
21424
21425 ' is replaced by the name of the counter.
21426  And it must end with 
21427 \begin_inset Quotes eld
21428 \end_inset
21429
21430
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 End
21436 \end_layout
21437
21438 \end_inset
21439
21440
21441 \begin_inset Quotes erd
21442 \end_inset
21443
21444 .
21445  The following parameters can also be used:
21446 \end_layout
21447
21448 \begin_layout Description
21449 \begin_inset Flex Code
21450 status collapsed
21451
21452 \begin_layout Plain Layout
21453 InitialValue
21454 \end_layout
21455
21456 \end_inset
21457
21458  [
21459 \begin_inset Flex Code
21460 status collapsed
21461
21462 \begin_layout Plain Layout
21463 int=1
21464 \end_layout
21465
21466 \end_inset
21467
21468 ] Sets the initial value for the counter, to which it will be reset whenever
21469  that happens.
21470  Normally, one will want the default, 1.
21471 \end_layout
21472
21473 \begin_layout Description
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 LabelString
21479 \end_layout
21480
21481 \end_inset
21482
21483  [
21484 \begin_inset Flex Code
21485 status collapsed
21486
21487 \begin_layout Plain Layout
21488 string
21489 \end_layout
21490
21491 \end_inset
21492
21493 =
21494 \begin_inset Quotes erd
21495 \end_inset
21496
21497
21498 \begin_inset Quotes erd
21499 \end_inset
21500
21501 ] When defined, this string defines how the counter is displayed.
21502  Setting this value sets 
21503 \begin_inset Flex Code
21504 status collapsed
21505
21506 \begin_layout Plain Layout
21507 LabelStringAppendix
21508 \end_layout
21509
21510 \end_inset
21511
21512  to the same value.
21513  The following special constructs can be used in the string:
21514 \end_layout
21515
21516 \begin_deeper
21517 \begin_layout Itemize
21518 \begin_inset Flex Code
21519 status collapsed
21520
21521 \begin_layout Plain Layout
21522
21523 \backslash
21524 thecounter
21525 \end_layout
21526
21527 \end_inset
21528
21529  will be replaced by the expansion of the 
21530 \begin_inset Flex Code
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534 LabelString
21535 \end_layout
21536
21537 \end_inset
21538
21539  (or 
21540 \begin_inset Flex Code
21541 status collapsed
21542
21543 \begin_layout Plain Layout
21544 LabelStringAppendix
21545 \end_layout
21546
21547 \end_inset
21548
21549 ) of the counter 
21550 \begin_inset Flex Code
21551 status collapsed
21552
21553 \begin_layout Plain Layout
21554 counter
21555 \end_layout
21556
21557 \end_inset
21558
21559 .
21560  
21561 \end_layout
21562
21563 \begin_layout Itemize
21564 counter values can be expressed using \SpecialChar LaTeX
21565 -like macros
21566 \begin_inset Newline newline
21567 \end_inset
21568
21569
21570 \begin_inset Flex Code
21571 status collapsed
21572
21573 \begin_layout Plain Layout
21574
21575 \backslash
21576
21577 \emph on
21578 numbertype
21579 \emph default
21580 {
21581 \emph on
21582 counter
21583 \emph default
21584 }
21585 \end_layout
21586
21587 \end_inset
21588
21589 , where 
21590 \begin_inset Flex Code
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594
21595 \emph on
21596 numbertype
21597 \end_layout
21598
21599 \end_inset
21600
21601  can be:
21602 \begin_inset Foot
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606
21607 \family roman
21608 \series medium
21609 \shape up
21610 \size normal
21611 \emph off
21612 \bar no
21613 \noun off
21614 \color none
21615 Actually, the situation is a bit more complicated: any
21616 \family default
21617 \series default
21618 \shape default
21619 \emph default
21620 \bar default
21621  
21622 \size default
21623 \emph on
21624 \noun default
21625 \color inherit
21626 numbertype
21627 \family roman
21628 \series medium
21629 \shape up
21630 \size normal
21631 \emph off
21632 \bar no
21633 \noun off
21634  other than those described below will produce arabic numerals.
21635  It would not be surprising to see this change in the future.
21636 \end_layout
21637
21638 \end_inset
21639
21640  
21641 \begin_inset Flex Code
21642 status collapsed
21643
21644 \begin_layout Plain Layout
21645 arabic
21646 \end_layout
21647
21648 \end_inset
21649
21650 : 1, 2, 3,\SpecialChar ldots
21651
21652 \begin_inset Flex Code
21653 status collapsed
21654
21655 \begin_layout Plain Layout
21656 alph
21657 \end_layout
21658
21659 \end_inset
21660
21661  for lower-case letters: a, b, c, \SpecialChar ldots
21662
21663 \begin_inset Flex Code
21664 status collapsed
21665
21666 \begin_layout Plain Layout
21667 Alph
21668 \end_layout
21669
21670 \end_inset
21671
21672  for upper-case letters: A, B, C, \SpecialChar ldots
21673
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 roman
21679 \end_layout
21680
21681 \end_inset
21682
21683  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21684
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 Roman
21690 \end_layout
21691
21692 \end_inset
21693
21694  for upper-case roman numerals: I, II, III\SpecialChar ldots
21695
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700 hebrew
21701 \end_layout
21702
21703 \end_inset
21704
21705  for hebrew numerals.
21706 \end_layout
21707
21708 \end_deeper
21709 \begin_layout Standard
21710 If LabelString is not defined, a default value is constructed as follows:
21711  if the counter has a master counter 
21712 \begin_inset Flex Code
21713 status collapsed
21714
21715 \begin_layout Plain Layout
21716 master
21717 \end_layout
21718
21719 \end_inset
21720
21721  (defined via 
21722 \begin_inset Flex Code
21723 status collapsed
21724
21725 \begin_layout Plain Layout
21726 Within
21727 \end_layout
21728
21729 \end_inset
21730
21731 ), the string
21732 \begin_inset Newline newline
21733 \end_inset
21734
21735
21736 \begin_inset Flex Code
21737 status collapsed
21738
21739 \begin_layout Plain Layout
21740
21741 \backslash
21742 themaster.
21743 \backslash
21744 arabic{counter}
21745 \end_layout
21746
21747 \end_inset
21748
21749  is used; otherwise the string 
21750 \begin_inset Flex Code
21751 status collapsed
21752
21753 \begin_layout Plain Layout
21754
21755 \backslash
21756 arabic{counter}
21757 \end_layout
21758
21759 \end_inset
21760
21761  is used.
21762 \end_layout
21763
21764 \begin_layout Description
21765 \begin_inset Flex Code
21766 status collapsed
21767
21768 \begin_layout Plain Layout
21769 LabelStringAppendix
21770 \end_layout
21771
21772 \end_inset
21773
21774  [
21775 \begin_inset Flex Code
21776 status collapsed
21777
21778 \begin_layout Plain Layout
21779 string
21780 \end_layout
21781
21782 \end_inset
21783
21784 =
21785 \begin_inset Quotes erd
21786 \end_inset
21787
21788
21789 \begin_inset Quotes erd
21790 \end_inset
21791
21792 ] Same as 
21793 \begin_inset Flex Code
21794 status collapsed
21795
21796 \begin_layout Plain Layout
21797 LabelString
21798 \end_layout
21799
21800 \end_inset
21801
21802 , but for use in the Appendix.
21803 \end_layout
21804
21805 \begin_layout Description
21806 \begin_inset Flex Code
21807 status collapsed
21808
21809 \begin_layout Plain Layout
21810 PrettyFormat
21811 \end_layout
21812
21813 \end_inset
21814
21815  [
21816 \begin_inset Flex Code
21817 status collapsed
21818
21819 \begin_layout Plain Layout
21820 string
21821 \end_layout
21822
21823 \end_inset
21824
21825 =
21826 \begin_inset Quotes erd
21827 \end_inset
21828
21829
21830 \begin_inset Quotes erd
21831 \end_inset
21832
21833 ] A format for use with formatted references to this counter.
21834  For example, one might want to have references to section numbers appear
21835  as 
21836 \begin_inset Quotes eld
21837 \end_inset
21838
21839 Section 2.4
21840 \begin_inset Quotes erd
21841 \end_inset
21842
21843 .
21844  The string should contain 
21845 \begin_inset Quotes eld
21846 \end_inset
21847
21848 ##
21849 \begin_inset Quotes erd
21850 \end_inset
21851
21852 .
21853  This will be replaced by the counter number itself.
21854  So, for sections, it would be: Section ##.
21855 \end_layout
21856
21857 \begin_layout Description
21858 \begin_inset Flex Code
21859 status collapsed
21860
21861 \begin_layout Plain Layout
21862 Within
21863 \end_layout
21864
21865 \end_inset
21866
21867  [
21868 \begin_inset Flex Code
21869 status collapsed
21870
21871 \begin_layout Plain Layout
21872 string
21873 \end_layout
21874
21875 \end_inset
21876
21877 =
21878 \begin_inset Quotes erd
21879 \end_inset
21880
21881
21882 \begin_inset Quotes erd
21883 \end_inset
21884
21885 ] If this is set to the name of another counter, the present counter will
21886  be reset every time the other one is increased.
21887  For example, 
21888 \begin_inset Flex Code
21889 status collapsed
21890
21891 \begin_layout Plain Layout
21892 subsection
21893 \end_layout
21894
21895 \end_inset
21896
21897  is numbered inside 
21898 \begin_inset Flex Code
21899 status collapsed
21900
21901 \begin_layout Plain Layout
21902 section
21903 \end_layout
21904
21905 \end_inset
21906
21907 .
21908 \end_layout
21909
21910 \begin_layout Subsection
21911 Font description
21912 \begin_inset CommandInset label
21913 LatexCommand label
21914 name "subsec:Font-description"
21915
21916 \end_inset
21917
21918
21919 \end_layout
21920
21921 \begin_layout Standard
21922 A font description looks like this:
21923 \end_layout
21924
21925 \begin_layout LyX-Code
21926 Font 
21927 \family roman
21928 \emph on
21929 or
21930 \family default
21931 \emph default
21932  LabelFont
21933 \emph on
21934  
21935 \family roman
21936 or
21937 \family default
21938 \emph default
21939  DefaultFont
21940 \end_layout
21941
21942 \begin_layout LyX-Code
21943  ...
21944 \end_layout
21945
21946 \begin_layout LyX-Code
21947 EndFont
21948 \end_layout
21949
21950 \begin_layout Standard
21951 The following commands are available:
21952 \end_layout
21953
21954 \begin_layout Description
21955 \begin_inset Flex Code
21956 status collapsed
21957
21958 \begin_layout Plain Layout
21959 Color
21960 \end_layout
21961
21962 \end_inset
21963
21964  [
21965 \begin_inset Flex Code
21966 status collapsed
21967
21968 \begin_layout Plain Layout
21969
21970 \emph on
21971 none
21972 \end_layout
21973
21974 \end_inset
21975
21976
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 black
21982 \end_layout
21983
21984 \end_inset
21985
21986
21987 \begin_inset Flex Code
21988 status collapsed
21989
21990 \begin_layout Plain Layout
21991 white
21992 \end_layout
21993
21994 \end_inset
21995
21996
21997 \begin_inset Flex Code
21998 status collapsed
21999
22000 \begin_layout Plain Layout
22001 red
22002 \end_layout
22003
22004 \end_inset
22005
22006
22007 \begin_inset Flex Code
22008 status collapsed
22009
22010 \begin_layout Plain Layout
22011 green
22012 \end_layout
22013
22014 \end_inset
22015
22016
22017 \begin_inset Flex Code
22018 status collapsed
22019
22020 \begin_layout Plain Layout
22021 blue
22022 \end_layout
22023
22024 \end_inset
22025
22026
22027 \begin_inset Flex Code
22028 status collapsed
22029
22030 \begin_layout Plain Layout
22031 cyan
22032 \end_layout
22033
22034 \end_inset
22035
22036
22037 \begin_inset Flex Code
22038 status collapsed
22039
22040 \begin_layout Plain Layout
22041 magenta
22042 \end_layout
22043
22044 \end_inset
22045
22046
22047 \begin_inset Flex Code
22048 status collapsed
22049
22050 \begin_layout Plain Layout
22051 yellow
22052 \end_layout
22053
22054 \end_inset
22055
22056
22057 \begin_inset Flex Code
22058 status collapsed
22059
22060 \begin_layout Plain Layout
22061 brown
22062 \end_layout
22063
22064 \end_inset
22065
22066
22067 \begin_inset Flex Code
22068 status collapsed
22069
22070 \begin_layout Plain Layout
22071 darkgray
22072 \end_layout
22073
22074 \end_inset
22075
22076
22077 \begin_inset Flex Code
22078 status collapsed
22079
22080 \begin_layout Plain Layout
22081 gray
22082 \end_layout
22083
22084 \end_inset
22085
22086
22087 \begin_inset Flex Code
22088 status collapsed
22089
22090 \begin_layout Plain Layout
22091 lightgray
22092 \end_layout
22093
22094 \end_inset
22095
22096
22097 \begin_inset Flex Code
22098 status collapsed
22099
22100 \begin_layout Plain Layout
22101 lime
22102 \end_layout
22103
22104 \end_inset
22105
22106
22107 \begin_inset Flex Code
22108 status collapsed
22109
22110 \begin_layout Plain Layout
22111 orange
22112 \end_layout
22113
22114 \end_inset
22115
22116
22117 \begin_inset Flex Code
22118 status collapsed
22119
22120 \begin_layout Plain Layout
22121 olive
22122 \end_layout
22123
22124 \end_inset
22125
22126
22127 \begin_inset Flex Code
22128 status collapsed
22129
22130 \begin_layout Plain Layout
22131 pink
22132 \end_layout
22133
22134 \end_inset
22135
22136
22137 \begin_inset Flex Code
22138 status collapsed
22139
22140 \begin_layout Plain Layout
22141 purple
22142 \end_layout
22143
22144 \end_inset
22145
22146
22147 \begin_inset Flex Code
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151 teal
22152 \end_layout
22153
22154 \end_inset
22155
22156
22157 \begin_inset Flex Code
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161 violet
22162 \end_layout
22163
22164 \end_inset
22165
22166 ]
22167 \end_layout
22168
22169 \begin_layout Description
22170 \begin_inset Flex Code
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174 Family
22175 \end_layout
22176
22177 \end_inset
22178
22179  [
22180 \begin_inset Flex Code
22181 status collapsed
22182
22183 \begin_layout Plain Layout
22184
22185 \emph on
22186 Roman
22187 \end_layout
22188
22189 \end_inset
22190
22191
22192 \begin_inset Flex Code
22193 status collapsed
22194
22195 \begin_layout Plain Layout
22196 Sans
22197 \end_layout
22198
22199 \end_inset
22200
22201
22202 \begin_inset Flex Code
22203 status collapsed
22204
22205 \begin_layout Plain Layout
22206 Typewriter
22207 \end_layout
22208
22209 \end_inset
22210
22211 ]
22212 \end_layout
22213
22214 \begin_layout Description
22215 \begin_inset Flex Code
22216 status collapsed
22217
22218 \begin_layout Plain Layout
22219 Misc
22220 \end_layout
22221
22222 \end_inset
22223
22224  [
22225 \begin_inset Flex Code
22226 status collapsed
22227
22228 \begin_layout Plain Layout
22229 string
22230 \end_layout
22231
22232 \end_inset
22233
22234 ] Valid arguments are: 
22235 \begin_inset Flex Code
22236 status collapsed
22237
22238 \begin_layout Plain Layout
22239 emph
22240 \end_layout
22241
22242 \end_inset
22243
22244
22245 \begin_inset Flex Code
22246 status collapsed
22247
22248 \begin_layout Plain Layout
22249 noun
22250 \end_layout
22251
22252 \end_inset
22253
22254
22255 \begin_inset Flex Code
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259 strikeout
22260 \end_layout
22261
22262 \end_inset
22263
22264
22265 \begin_inset Flex Code
22266 status collapsed
22267
22268 \begin_layout Plain Layout
22269 underbar
22270 \end_layout
22271
22272 \end_inset
22273
22274
22275 \begin_inset Flex Code
22276 status collapsed
22277
22278 \begin_layout Plain Layout
22279 uuline
22280 \end_layout
22281
22282 \end_inset
22283
22284
22285 \begin_inset Flex Code
22286 status collapsed
22287
22288 \begin_layout Plain Layout
22289 uwave
22290 \end_layout
22291
22292 \end_inset
22293
22294
22295 \begin_inset Flex Code
22296 status collapsed
22297
22298 \begin_layout Plain Layout
22299 no_emph
22300 \end_layout
22301
22302 \end_inset
22303
22304
22305 \begin_inset Flex Code
22306 status collapsed
22307
22308 \begin_layout Plain Layout
22309 no_noun
22310 \end_layout
22311
22312 \end_inset
22313
22314
22315 \begin_inset Flex Code
22316 status collapsed
22317
22318 \begin_layout Plain Layout
22319 no_strikeout
22320 \end_layout
22321
22322 \end_inset
22323
22324
22325 \begin_inset Flex Code
22326 status collapsed
22327
22328 \begin_layout Plain Layout
22329 no_bar
22330 \end_layout
22331
22332 \end_inset
22333
22334
22335 \begin_inset Flex Code
22336 status collapsed
22337
22338 \begin_layout Plain Layout
22339 no_uuline
22340 \end_layout
22341
22342 \end_inset
22343
22344  and 
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 no_uwave
22350 \end_layout
22351
22352 \end_inset
22353
22354 .
22355  Each of these turns on or off the corresponding attribute.
22356  For example, 
22357 \begin_inset Flex Code
22358 status collapsed
22359
22360 \begin_layout Plain Layout
22361 emph
22362 \end_layout
22363
22364 \end_inset
22365
22366  turns on emphasis, and 
22367 \begin_inset Flex Code
22368 status collapsed
22369
22370 \begin_layout Plain Layout
22371 no_emph
22372 \end_layout
22373
22374 \end_inset
22375
22376  turns it off.
22377  
22378 \begin_inset Newline newline
22379 \end_inset
22380
22381 If the latter seems puzzling, remember that the font settings for the present
22382  context are generally inherited from the surrounding context.
22383  So 
22384 \begin_inset Flex Code
22385 status collapsed
22386
22387 \begin_layout Plain Layout
22388 no_emph
22389 \end_layout
22390
22391 \end_inset
22392
22393  would turn off the emphasis that was anyway in effect, say, in a theorem
22394  environment.
22395 \end_layout
22396
22397 \begin_layout Description
22398 \begin_inset Flex Code
22399 status collapsed
22400
22401 \begin_layout Plain Layout
22402 Series
22403 \end_layout
22404
22405 \end_inset
22406
22407  [
22408 \begin_inset Flex Code
22409 status collapsed
22410
22411 \begin_layout Plain Layout
22412
22413 \emph on
22414 Medium
22415 \end_layout
22416
22417 \end_inset
22418
22419
22420 \begin_inset Flex Code
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424 Bold
22425 \end_layout
22426
22427 \end_inset
22428
22429
22430 \end_layout
22431
22432 \begin_layout Description
22433 \begin_inset Flex Code
22434 status collapsed
22435
22436 \begin_layout Plain Layout
22437 Shape
22438 \end_layout
22439
22440 \end_inset
22441
22442  [
22443 \begin_inset Flex Code
22444 status collapsed
22445
22446 \begin_layout Plain Layout
22447
22448 \emph on
22449 Up
22450 \end_layout
22451
22452 \end_inset
22453
22454
22455 \begin_inset Flex Code
22456 status collapsed
22457
22458 \begin_layout Plain Layout
22459 Italic
22460 \end_layout
22461
22462 \end_inset
22463
22464
22465 \begin_inset Flex Code
22466 status collapsed
22467
22468 \begin_layout Plain Layout
22469 SmallCaps
22470 \end_layout
22471
22472 \end_inset
22473
22474
22475 \begin_inset Flex Code
22476 status collapsed
22477
22478 \begin_layout Plain Layout
22479 Slanted
22480 \end_layout
22481
22482 \end_inset
22483
22484
22485 \end_layout
22486
22487 \begin_layout Description
22488 \begin_inset Flex Code
22489 status collapsed
22490
22491 \begin_layout Plain Layout
22492 Size
22493 \end_layout
22494
22495 \end_inset
22496
22497  [
22498 \begin_inset Flex Code
22499 status collapsed
22500
22501 \begin_layout Plain Layout
22502 tiny
22503 \end_layout
22504
22505 \end_inset
22506
22507
22508 \begin_inset Flex Code
22509 status collapsed
22510
22511 \begin_layout Plain Layout
22512 small
22513 \end_layout
22514
22515 \end_inset
22516
22517
22518 \begin_inset Flex Code
22519 status collapsed
22520
22521 \begin_layout Plain Layout
22522
22523 \emph on
22524 normal
22525 \end_layout
22526
22527 \end_inset
22528
22529
22530 \begin_inset Flex Code
22531 status collapsed
22532
22533 \begin_layout Plain Layout
22534 large
22535 \end_layout
22536
22537 \end_inset
22538
22539
22540 \begin_inset Flex Code
22541 status collapsed
22542
22543 \begin_layout Plain Layout
22544 larger
22545 \end_layout
22546
22547 \end_inset
22548
22549
22550 \begin_inset Flex Code
22551 status collapsed
22552
22553 \begin_layout Plain Layout
22554 largest
22555 \end_layout
22556
22557 \end_inset
22558
22559
22560 \begin_inset Flex Code
22561 status collapsed
22562
22563 \begin_layout Plain Layout
22564 huge
22565 \end_layout
22566
22567 \end_inset
22568
22569
22570 \begin_inset Flex Code
22571 status collapsed
22572
22573 \begin_layout Plain Layout
22574 giant
22575 \end_layout
22576
22577 \end_inset
22578
22579 ]
22580 \end_layout
22581
22582 \begin_layout Subsection
22583 \begin_inset CommandInset label
22584 LatexCommand label
22585 name "subsec:Citation-engine-description"
22586
22587 \end_inset
22588
22589 Cite engine description
22590 \end_layout
22591
22592 \begin_layout Standard
22593 The 
22594 \begin_inset Flex Code
22595 status collapsed
22596
22597 \begin_layout Plain Layout
22598 CiteEngine
22599 \end_layout
22600
22601 \end_inset
22602
22603  blocks, as used mainly in cite engine files (see 
22604 \begin_inset CommandInset ref
22605 LatexCommand ref
22606 reference "subsec:Cite-Engine-Files"
22607 plural "false"
22608 caps "false"
22609 noprefix "false"
22610
22611 \end_inset
22612
22613 ), define the citation commands provided by a specific 
22614 \begin_inset Quotes eld
22615 \end_inset
22616
22617 cite engine
22618 \begin_inset Quotes erd
22619 \end_inset
22620
22621 .
22622  A cite engine, in \SpecialChar LyX
22623  terms, is way specific way to format citations, using
22624  numbers, author names and/or years.
22625  Currently, \SpecialChar LyX
22626  supports three such engine types, namely:
22627 \end_layout
22628
22629 \begin_layout Enumerate
22630 \begin_inset Flex Code
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634 default
22635 \end_layout
22636
22637 \end_inset
22638
22639 : the default Bib\SpecialChar TeX
22640  way to format citations, a simple numeric style (e.
22641 \begin_inset space \thinspace{}
22642 \end_inset
22643
22644 g., 
22645 \begin_inset Quotes eld
22646 \end_inset
22647
22648 [1]
22649 \begin_inset Quotes erd
22650 \end_inset
22651
22652 )
22653 \end_layout
22654
22655 \begin_layout Enumerate
22656 \begin_inset Flex Code
22657 status collapsed
22658
22659 \begin_layout Plain Layout
22660 authoryear
22661 \end_layout
22662
22663 \end_inset
22664
22665 : Harvard-styled citations using author names and publication year (e.
22666 \begin_inset space \thinspace{}
22667 \end_inset
22668
22669 g., 
22670 \begin_inset Quotes eld
22671 \end_inset
22672
22673 Smith and Miller (2017b)
22674 \begin_inset Quotes erd
22675 \end_inset
22676
22677 )
22678 \end_layout
22679
22680 \begin_layout Enumerate
22681 \begin_inset Flex Code
22682 status collapsed
22683
22684 \begin_layout Plain Layout
22685 numerical
22686 \end_layout
22687
22688 \end_inset
22689
22690 : extended numerical citations that also allow for author or title next
22691  to the number (e.
22692 \begin_inset space \thinspace{}
22693 \end_inset
22694
22695 g., 
22696 \begin_inset Quotes eld
22697 \end_inset
22698
22699 Smith and Miller [1]
22700 \begin_inset Quotes erd
22701 \end_inset
22702
22703 )
22704 \end_layout
22705
22706 \begin_layout Standard
22707 \begin_inset Flex Code
22708 status collapsed
22709
22710 \begin_layout Plain Layout
22711 CiteEngine
22712 \end_layout
22713
22714 \end_inset
22715
22716  blocks look like this:
22717 \end_layout
22718
22719 \begin_layout LyX-Code
22720 CiteEngine default
22721 \end_layout
22722
22723 \begin_layout LyX-Code
22724  cite
22725 \end_layout
22726
22727 \begin_layout LyX-Code
22728  Citep*[][]
22729 \end_layout
22730
22731 \begin_layout LyX-Code
22732  citeyearpar[][]=parencite*
22733 \end_layout
22734
22735 \begin_layout LyX-Code
22736  ...
22737 \end_layout
22738
22739 \begin_layout LyX-Code
22740 End
22741 \end_layout
22742
22743 \begin_layout Standard
22744 The tag following 
22745 \begin_inset Flex Code
22746 status collapsed
22747
22748 \begin_layout Plain Layout
22749 CiteEngine
22750 \end_layout
22751
22752 \end_inset
22753
22754  denotes the engine.
22755  The individual lines respectively define a cite command or cite command
22756  paradigm supported by this engine.
22757  The line can be as simple as a cite command that is used both to name the
22758  respective \SpecialChar LyX
22759  command and the \SpecialChar LaTeX
22760  output or more complex in order to differentiate
22761  things.
22762  The full syntax is:
22763 \end_layout
22764
22765 \begin_layout LyX-Code
22766 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22767 \end_layout
22768
22769 \begin_layout Itemize
22770 \begin_inset Flex Code
22771 status collapsed
22772
22773 \begin_layout Plain Layout
22774 LyXName
22775 \end_layout
22776
22777 \end_inset
22778
22779 : The name as used in the 
22780 \begin_inset Flex Code
22781 status collapsed
22782
22783 \begin_layout Plain Layout
22784 *.lyx
22785 \end_layout
22786
22787 \end_inset
22788
22789  file.
22790 \end_layout
22791
22792 \begin_deeper
22793 \begin_layout Standard
22794 For portability reasons, we try to use the same name for same-formatted
22795  commands in different cite packages (thus many names stem from natbib,
22796  and thus we need to differentiate a 
22797 \begin_inset Flex Code
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801 latexcmd
22802 \end_layout
22803
22804 \end_inset
22805
22806  sometimes, if the \SpecialChar LaTeX
22807  command names differ).
22808 \end_layout
22809
22810 \end_deeper
22811 \begin_layout Itemize
22812 \begin_inset Flex Code
22813 status collapsed
22814
22815 \begin_layout Plain Layout
22816 alias
22817 \end_layout
22818
22819 \end_inset
22820
22821 : a (comma-separated) list of commands that fall back to the given 
22822 \begin_inset Flex Code
22823 status collapsed
22824
22825 \begin_layout Plain Layout
22826 LyXName
22827 \end_layout
22828
22829 \end_inset
22830
22831  in the current engine.
22832  This eases the switch of citation packages and engines.
22833  The 
22834 \begin_inset Flex Code
22835 status collapsed
22836
22837 \begin_layout Plain Layout
22838 alias
22839 \end_layout
22840
22841 \end_inset
22842
22843  can be compared to 
22844 \begin_inset Flex Code
22845 status collapsed
22846
22847 \begin_layout Plain Layout
22848 ObsoletedBy
22849 \end_layout
22850
22851 \end_inset
22852
22853  in layout definitions.
22854 \end_layout
22855
22856 \begin_layout Itemize
22857 \begin_inset Flex Code
22858 status collapsed
22859
22860 \begin_layout Plain Layout
22861 latexcmd
22862 \end_layout
22863
22864 \end_inset
22865
22866 : The actual \SpecialChar LaTeX
22867  command that is output.
22868  
22869 \end_layout
22870
22871 \begin_layout Standard
22872 \begin_inset Flex Code
22873 status collapsed
22874
22875 \begin_layout Plain Layout
22876 Alias
22877 \end_layout
22878
22879 \end_inset
22880
22881  and 
22882 \begin_inset Flex Code
22883 status collapsed
22884
22885 \begin_layout Plain Layout
22886 latexcmd
22887 \end_layout
22888
22889 \end_inset
22890
22891  are optional.
22892  If no 
22893 \begin_inset Flex Code
22894 status collapsed
22895
22896 \begin_layout Plain Layout
22897 latexcmd
22898 \end_layout
22899
22900 \end_inset
22901
22902  is given, the 
22903 \begin_inset Flex Code
22904 status collapsed
22905
22906 \begin_layout Plain Layout
22907 LyXName
22908 \end_layout
22909
22910 \end_inset
22911
22912  will be output to \SpecialChar LaTeX
22913 .
22914 \end_layout
22915
22916 \begin_layout Standard
22917 Note further:
22918 \end_layout
22919
22920 \begin_layout Itemize
22921 Capitalization indicates that the command also has a capitalized form (
22922 \begin_inset Flex Code
22923 status collapsed
22924
22925 \begin_layout Plain Layout
22926
22927 \backslash
22928 Latexcmd
22929 \end_layout
22930
22931 \end_inset
22932
22933  vs.
22934  
22935 \begin_inset Flex Code
22936 status collapsed
22937
22938 \begin_layout Plain Layout
22939
22940 \backslash
22941 latexcmd
22942 \end_layout
22943
22944 \end_inset
22945
22946 ).
22947  These usually enforce up-casing of name prefixes (
22948 \emph on
22949 von Goethe
22950 \emph default
22951  
22952 \begin_inset Formula $\Rightarrow$
22953 \end_inset
22954
22955  
22956 \emph on
22957 Von Goethe
22958 \emph default
22959 ).
22960 \end_layout
22961
22962 \begin_layout Itemize
22963 Brackets 
22964 \begin_inset Flex Code
22965 status collapsed
22966
22967 \begin_layout Plain Layout
22968 []
22969 \end_layout
22970
22971 \end_inset
22972
22973  indicate the number of optional arguments (there can be 0–2).
22974 \end_layout
22975
22976 \begin_layout Itemize
22977 A star 
22978 \begin_inset Flex Code
22979 status collapsed
22980
22981 \begin_layout Plain Layout
22982 *
22983 \end_layout
22984
22985 \end_inset
22986
22987  indicates there is a starred version of the command (
22988 \begin_inset Flex Code
22989 status collapsed
22990
22991 \begin_layout Plain Layout
22992
22993 \backslash
22994 latexcmd*
22995 \end_layout
22996
22997 \end_inset
22998
22999  vs.
23000  
23001 \begin_inset Flex Code
23002 status collapsed
23003
23004 \begin_layout Plain Layout
23005
23006 \backslash
23007 latexcmd
23008 \end_layout
23009
23010 \end_inset
23011
23012 ).
23013  
23014 \end_layout
23015
23016 \begin_deeper
23017 \begin_layout Standard
23018 By default, the starred version means: Output all authors even if it should
23019  be shortened with 
23020 \begin_inset Quotes eld
23021 \end_inset
23022
23023 et al.
23024 \begin_inset Quotes erd
23025 \end_inset
23026
23027  due to the 
23028 \begin_inset Flex Code
23029 status collapsed
23030
23031 \begin_layout Plain Layout
23032 MaxCiteNames
23033 \end_layout
23034
23035 \end_inset
23036
23037  threshold.
23038 \end_layout
23039
23040 \begin_layout Standard
23041 If the star has a different meaning for a given command, it can be specified
23042  in angle brackets: 
23043 \begin_inset Flex Code
23044 status collapsed
23045
23046 \begin_layout Plain Layout
23047 <!_stardesc!_stardesctooltip>
23048 \end_layout
23049
23050 \end_inset
23051
23052 .
23053  Maximal two translatable macro keywords, marked by the prefix 
23054 \begin_inset Flex Code
23055 status collapsed
23056
23057 \begin_layout Plain Layout
23058 !_
23059 \end_layout
23060
23061 \end_inset
23062
23063 , can be given.
23064  The first points to the string that replaces the 
23065 \begin_inset Quotes eld
23066 \end_inset
23067
23068 Full aut&hor list
23069 \begin_inset Quotes erd
23070 \end_inset
23071
23072  checkbox label in the citation dialog, the second one to an optional tool
23073  tip for this checkbox.
23074  
23075 \end_layout
23076
23077 \begin_layout Standard
23078 Note that these two macros have to be defined in a 
23079 \begin_inset Flex Code
23080 status collapsed
23081
23082 \begin_layout Plain Layout
23083 CiteFormat
23084 \end_layout
23085
23086 \end_inset
23087
23088  (see next section), dropping the 
23089 \begin_inset Flex Code
23090 status collapsed
23091
23092 \begin_layout Plain Layout
23093 !
23094 \end_layout
23095
23096 \end_inset
23097
23098  from the prefix, like this: 
23099 \end_layout
23100
23101 \begin_layout LyX-Code
23102 _stardesc Sta&rred command label
23103 \end_layout
23104
23105 \begin_layout LyX-Code
23106 _stardesctooltip Tooltip for the starred command checkbox.
23107 \end_layout
23108
23109 \end_deeper
23110 \begin_layout Itemize
23111 A dollar sign 
23112 \begin_inset Flex Code
23113 status collapsed
23114
23115 \begin_layout Plain Layout
23116 $
23117 \end_layout
23118
23119 \end_inset
23120
23121  indicates that this command features 
23122 \begin_inset Quotes eld
23123 \end_inset
23124
23125 qualified citation lists
23126 \begin_inset Quotes erd
23127 \end_inset
23128
23129 .
23130  This is a 
23131 \family sans
23132 Biblatex
23133 \family default
23134 -specific feature for multi-reference citations where an individual pre-
23135  and postnote can be given to each reference in the list.
23136  Please refer to the 
23137 \family sans
23138 Biblatex
23139 \family default
23140  manual for details.
23141 \change_inserted -712698321 1526898670
23142
23143 \end_layout
23144
23145 \begin_layout Standard
23146
23147 \change_inserted -712698321 1526899524
23148 If you want to add a cite command to a cite engine (e.
23149 \begin_inset space \thinspace{}
23150 \end_inset
23151
23152 g., add a specific command provided by a class), you can use 
23153 \begin_inset Flex Code
23154 status collapsed
23155
23156 \begin_layout Plain Layout
23157
23158 \change_inserted -712698321 1526898768
23159 AddToCiteEngine <engine type> \SpecialChar ldots
23160  End
23161 \change_unchanged
23162
23163 \end_layout
23164
23165 \end_inset
23166
23167 .
23168  Note that only cite commands that do not exist yet are added.
23169 \change_unchanged
23170
23171 \end_layout
23172
23173 \begin_layout Subsection
23174 \begin_inset CommandInset label
23175 LatexCommand label
23176 name "subsec:Citation-format-description"
23177
23178 \end_inset
23179
23180 Cite format description
23181 \end_layout
23182
23183 \begin_layout Standard
23184 The 
23185 \begin_inset Flex Code
23186 status collapsed
23187
23188 \begin_layout Plain Layout
23189 CiteFormat
23190 \end_layout
23191
23192 \end_inset
23193
23194  blocks are used to describe how bibliographic information should be displayed,
23195  both within \SpecialChar LyX
23196  itself (in the citation dialog and in tooltips, for example)
23197  and in XHTML output.
23198  Such a block might look like this:
23199 \end_layout
23200
23201 \begin_layout LyX-Code
23202 CiteFormat
23203 \end_layout
23204
23205 \begin_layout LyX-Code
23206  article ...
23207 \end_layout
23208
23209 \begin_layout LyX-Code
23210  book ...
23211 \end_layout
23212
23213 \begin_layout LyX-Code
23214 End
23215 \end_layout
23216
23217 \begin_layout Standard
23218 or
23219 \end_layout
23220
23221 \begin_layout LyX-Code
23222 CiteFormat
23223 \end_layout
23224
23225 \begin_layout LyX-Code
23226  cite ...
23227 \end_layout
23228
23229 \begin_layout LyX-Code
23230  citet*[][] ...
23231 \end_layout
23232
23233 \begin_layout LyX-Code
23234 End
23235 \end_layout
23236
23237 \begin_layout Standard
23238 In the first case, the individual lines define how the bibliographic information
23239  associated with an article or book, respectively, is to be displayed, and
23240  such a definition can be given for any 
23241 \begin_inset Quotes els
23242 \end_inset
23243
23244 entry type
23245 \begin_inset Quotes ers
23246 \end_inset
23247
23248  that might be present in a Bib\SpecialChar TeX
23249  file.
23250  \SpecialChar LyX
23251  defines a default format in the source code that will be used if no specific
23252  definition has been given.
23253  \SpecialChar LyX
23254  predefines several formats in the file 
23255 \begin_inset Flex Code
23256 status collapsed
23257
23258 \begin_layout Plain Layout
23259 stdciteformats.inc
23260 \end_layout
23261
23262 \end_inset
23263
23264 , which is included in most of \SpecialChar LyX
23265 's document classes.
23266 \end_layout
23267
23268 \begin_layout Standard
23269 In the second case, the lines define how a specific citation command (in
23270  the example 
23271 \begin_inset Flex Code
23272 status collapsed
23273
23274 \begin_layout Plain Layout
23275
23276 \backslash
23277 cite
23278 \end_layout
23279
23280 \end_inset
23281
23282
23283 \begin_inset Flex Code
23284 status collapsed
23285
23286 \begin_layout Plain Layout
23287
23288 \backslash
23289 citet
23290 \end_layout
23291
23292 \end_inset
23293
23294 ) is to be displayed on the citation inset label, in the citation dialog,
23295  menu or XHTML output.
23296  \SpecialChar LyX
23297  defines such formats for the citation style variants it supports via 
23298 \family sans
23299 Document\SpecialChar menuseparator
23300 Setting\SpecialChar menuseparator
23301 Bibliography\SpecialChar ldots
23302
23303 \family default
23304  in specific 
23305 \begin_inset Flex Code
23306 status collapsed
23307
23308 \begin_layout Plain Layout
23309 *.citeengine
23310 \end_layout
23311
23312 \end_inset
23313
23314  files that are shipped with \SpecialChar LyX
23315  (see 
23316 \begin_inset CommandInset ref
23317 LatexCommand ref
23318 reference "subsec:Cite-Engine-Files"
23319 plural "false"
23320 caps "false"
23321 noprefix "false"
23322
23323 \end_inset
23324
23325 ).
23326 \end_layout
23327
23328 \begin_layout Standard
23329 The definitions use a simple language that allows Bib\SpecialChar TeX
23330  keys to be replaced
23331  with their values.
23332  Keys should be enclosed in 
23333 \begin_inset Flex Code
23334 status collapsed
23335
23336 \begin_layout Plain Layout
23337 %
23338 \end_layout
23339
23340 \end_inset
23341
23342  signs, e.g.: 
23343 \begin_inset Flex Code
23344 status collapsed
23345
23346 \begin_layout Plain Layout
23347 %author%
23348 \end_layout
23349
23350 \end_inset
23351
23352 .
23353  So a simple definition might look like this:
23354 \end_layout
23355
23356 \begin_layout LyX-Code
23357 misc %author%, 
23358 \begin_inset Quotes eld
23359 \end_inset
23360
23361 %title%
23362 \begin_inset Quotes erd
23363 \end_inset
23364
23365 .
23366 \end_layout
23367
23368 \begin_layout Standard
23369 This would print the author, followed by a comma, followed by the title,
23370  in quotes, followed by a period.
23371 \end_layout
23372
23373 \begin_layout Standard
23374 Of course, sometimes you may want to print a key only if it exists.
23375  This can be done by using a conditional construction, such as: 
23376 \begin_inset Flex Code
23377 status collapsed
23378
23379 \begin_layout Plain Layout
23380 {%volume%[[vol.
23381 \begin_inset space ~
23382 \end_inset
23383
23384 %volume%]]}
23385 \end_layout
23386
23387 \end_inset
23388
23389 .
23390  This says: If the 
23391 \begin_inset Flex Code
23392 status collapsed
23393
23394 \begin_layout Plain Layout
23395 volume
23396 \end_layout
23397
23398 \end_inset
23399
23400  key exists, then print 
23401 \begin_inset Quotes eld
23402 \end_inset
23403
23404 vol.
23405 \begin_inset space ~
23406 \end_inset
23407
23408
23409 \begin_inset Quotes erd
23410 \end_inset
23411
23412  followed by the volume key.
23413  It is also possible to have an else clause in the conditional, such as:
23414 \begin_inset Newline newline
23415 \end_inset
23416
23417
23418 \begin_inset Flex Code
23419 status collapsed
23420
23421 \begin_layout Plain Layout
23422 {%author%[[%author%]][[%editor%, ed.]]}
23423 \end_layout
23424
23425 \end_inset
23426
23427 .
23428 \begin_inset Newline newline
23429 \end_inset
23430
23431 Here, the 
23432 \begin_inset Flex Code
23433 status collapsed
23434
23435 \begin_layout Plain Layout
23436 author
23437 \end_layout
23438
23439 \end_inset
23440
23441  key is printed if it exists; otherwise, the editor key is printed, followed
23442  by 
23443 \begin_inset Quotes eld
23444 \end_inset
23445
23446 ,
23447 \begin_inset space ~
23448 \end_inset
23449
23450 ed.
23451 \begin_inset Quotes erd
23452 \end_inset
23453
23454  Note that the key is again enclosed in 
23455 \begin_inset Flex Code
23456 status collapsed
23457
23458 \begin_layout Plain Layout
23459 %
23460 \end_layout
23461
23462 \end_inset
23463
23464  signs; the entire conditional is enclosed in braces; and the if and else
23465  clauses are enclosed in double brackets, 
23466 \begin_inset Quotes eld
23467 \end_inset
23468
23469
23470 \begin_inset Flex Code
23471 status collapsed
23472
23473 \begin_layout Plain Layout
23474 [[
23475 \end_layout
23476
23477 \end_inset
23478
23479
23480 \begin_inset Quotes eld
23481 \end_inset
23482
23483  and 
23484 \begin_inset Quotes eld
23485 \end_inset
23486
23487
23488 \begin_inset Flex Code
23489 status collapsed
23490
23491 \begin_layout Plain Layout
23492 ]]
23493 \end_layout
23494
23495 \end_inset
23496
23497
23498 \begin_inset Quotes erd
23499 \end_inset
23500
23501 .
23502  There must be no space between any of these.
23503 \end_layout
23504
23505 \begin_layout Standard
23506 Next to the entry keys, there are some special keys that can be used for
23507  these conditionals:
23508 \end_layout
23509
23510 \begin_layout Itemize
23511 \begin_inset Flex Code
23512 status collapsed
23513
23514 \begin_layout Plain Layout
23515 {%dialog%[[true]][[false]]}
23516 \end_layout
23517
23518 \end_inset
23519
23520 : process the 
23521 \begin_inset Quotes eld
23522 \end_inset
23523
23524 true
23525 \begin_inset Quotes erd
23526 \end_inset
23527
23528  part for dialogs and menus, the 
23529 \begin_inset Quotes eld
23530 \end_inset
23531
23532 false
23533 \begin_inset Quotes erd
23534 \end_inset
23535
23536  part for other contexts (workarea, export)
23537 \end_layout
23538
23539 \begin_layout Itemize
23540 \begin_inset Flex Code
23541 status collapsed
23542
23543 \begin_layout Plain Layout
23544 {%export%[[true]][[false]]}
23545 \end_layout
23546
23547 \end_inset
23548
23549 : process the 
23550 \begin_inset Quotes eld
23551 \end_inset
23552
23553 true
23554 \begin_inset Quotes erd
23555 \end_inset
23556
23557  part for export and menus, the 
23558 \begin_inset Quotes eld
23559 \end_inset
23560
23561 false
23562 \begin_inset Quotes erd
23563 \end_inset
23564
23565  part for other contexts (workarea, dialog)
23566 \end_layout
23567
23568 \begin_layout Itemize
23569 \begin_inset Flex Code
23570 status collapsed
23571
23572 \begin_layout Plain Layout
23573 {%next%[[true]]}
23574 \end_layout
23575
23576 \end_inset
23577
23578 : process the 
23579 \begin_inset Quotes eld
23580 \end_inset
23581
23582 true
23583 \begin_inset Quotes erd
23584 \end_inset
23585
23586  part if another item follows (e.
23587 \begin_inset space \thinspace{}
23588 \end_inset
23589
23590 g., in a citation with multiple keys)
23591 \end_layout
23592
23593 \begin_layout Itemize
23594 \begin_inset Flex Code
23595 status collapsed
23596
23597 \begin_layout Plain Layout
23598 {%second%[[true]][[false]]}
23599 \end_layout
23600
23601 \end_inset
23602
23603 : process the 
23604 \begin_inset Quotes eld
23605 \end_inset
23606
23607 true
23608 \begin_inset Quotes erd
23609 \end_inset
23610
23611  if this is the second of multiple items, else the 
23612 \begin_inset Quotes eld
23613 \end_inset
23614
23615 false
23616 \begin_inset Quotes erd
23617 \end_inset
23618
23619  part
23620 \end_layout
23621
23622 \begin_layout Itemize
23623 \begin_inset Flex Code
23624 status collapsed
23625
23626 \begin_layout Plain Layout
23627 {%ifstar%[[true]][[false]]}
23628 \end_layout
23629
23630 \end_inset
23631
23632 : process the 
23633 \begin_inset Quotes eld
23634 \end_inset
23635
23636 true
23637 \begin_inset Quotes erd
23638 \end_inset
23639
23640  part for starred citation commands (such as 
23641 \begin_inset Flex Code
23642 status collapsed
23643
23644 \begin_layout Plain Layout
23645
23646 \backslash
23647 cite*
23648 \end_layout
23649
23650 \end_inset
23651
23652 ), the false part for unstarred
23653 \end_layout
23654
23655 \begin_layout Itemize
23656 \begin_inset Flex Code
23657 status collapsed
23658
23659 \begin_layout Plain Layout
23660 {%ifentrytype:<type>%[[true]][[false]]}
23661 \end_layout
23662
23663 \end_inset
23664
23665 : process the 
23666 \begin_inset Quotes eld
23667 \end_inset
23668
23669 true
23670 \begin_inset Quotes erd
23671 \end_inset
23672
23673  if the current entry type matches 
23674 \begin_inset Flex Code
23675 status collapsed
23676
23677 \begin_layout Plain Layout
23678 <type>
23679 \end_layout
23680
23681 \end_inset
23682
23683 , else the false part (e.g., in a citation definition: 
23684 \begin_inset Flex Code
23685 status collapsed
23686
23687 \begin_layout Plain Layout
23688 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23689 \end_layout
23690
23691 \end_inset
23692
23693 )
23694 \end_layout
23695
23696 \begin_layout Itemize
23697 \begin_inset Flex Code
23698 status collapsed
23699
23700 \begin_layout Plain Layout
23701 {%ifmultiple:<authortype>%[[true]][[false]]}
23702 \end_layout
23703
23704 \end_inset
23705
23706 : process the 
23707 \begin_inset Quotes eld
23708 \end_inset
23709
23710 true
23711 \begin_inset Quotes erd
23712 \end_inset
23713
23714  if the current author type (author, editor etc.) has multiple authors, else
23715  the false part (e.g., in a bibliography definition: 
23716 \begin_inset Flex Code
23717 status collapsed
23718
23719 \begin_layout Plain Layout
23720 {%ifmultiple:editor%[[eds.]][[ed.]]}
23721 \end_layout
23722
23723 \end_inset
23724
23725 )
23726 \end_layout
23727
23728 \begin_layout Itemize
23729 \begin_inset Flex Code
23730 status collapsed
23731
23732 \begin_layout Plain Layout
23733 {%ifqualified%[[true]][[false]]}
23734 \end_layout
23735
23736 \end_inset
23737
23738 : process the 
23739 \begin_inset Quotes eld
23740 \end_inset
23741
23742 true
23743 \begin_inset Quotes erd
23744 \end_inset
23745
23746  part if the current citation is a qualified citation list (a specific 
23747 \family sans
23748 Biblatex
23749 \family default
23750  format for multi-reference citations), the false part if this is not the
23751  case.
23752 \end_layout
23753
23754 \begin_layout Standard
23755 We said that 
23756 \begin_inset Flex Code
23757 status collapsed
23758
23759 \begin_layout Plain Layout
23760 %author%
23761 \end_layout
23762
23763 \end_inset
23764
23765  prints the author key as it is recorded in the bibliography file.
23766  This might not be what you want, since it will result in a string such
23767  as 
23768 \begin_inset Quotes eld
23769 \end_inset
23770
23771 Miller, Peter and Smith, Mary and White, Jane
23772 \begin_inset Quotes erd
23773 \end_inset
23774
23775  (since 
23776 \begin_inset Quotes eld
23777 \end_inset
23778
23779 and
23780 \begin_inset Quotes erd
23781 \end_inset
23782
23783  is used by Bib\SpecialChar TeX
23784  to delimit authors).
23785  \SpecialChar LyX
23786  therefore provides some methods to get properly formatted name lists (which
23787  will also get translated).
23788  The following keys are provided:
23789 \end_layout
23790
23791 \begin_layout Enumerate
23792 For name lists with pre- and surname, suitable for the main authors/editors
23793  of a bibliography item.
23794  The 
23795 \begin_inset Flex Code
23796 status collapsed
23797
23798 \begin_layout Plain Layout
23799 <nametype>
23800 \end_layout
23801
23802 \end_inset
23803
23804  part denotes the kind of list that is requested (e.g.
23805  
23806 \begin_inset Flex Code
23807 status collapsed
23808
23809 \begin_layout Plain Layout
23810 <nametype:author>
23811 \end_layout
23812
23813 \end_inset
23814
23815 ):
23816 \end_layout
23817
23818 \begin_deeper
23819 \begin_layout Itemize
23820 \begin_inset Flex Code
23821 status collapsed
23822
23823 \begin_layout Plain Layout
23824 %abbrvnames:<nametype>%
23825 \end_layout
23826
23827 \end_inset
23828
23829 : Provides a name list which is abbreviated (with 
23830 \begin_inset Quotes eld
23831 \end_inset
23832
23833 et al.
23834 \begin_inset Quotes erd
23835 \end_inset
23836
23837 ) when 
23838 \begin_inset Flex Code
23839 status collapsed
23840
23841 \begin_layout Plain Layout
23842 MaxCiteNames
23843 \end_layout
23844
23845 \end_inset
23846
23847  is reached.
23848 \end_layout
23849
23850 \begin_layout Itemize
23851 \begin_inset Flex Code
23852 status collapsed
23853
23854 \begin_layout Plain Layout
23855 %fullnames:<nametype>%
23856 \end_layout
23857
23858 \end_inset
23859
23860 : Provides a full name list (never abbreviated with 
23861 \begin_inset Quotes eld
23862 \end_inset
23863
23864 et al.
23865 \begin_inset Quotes erd
23866 \end_inset
23867
23868 ).
23869 \end_layout
23870
23871 \begin_layout Itemize
23872 \begin_inset Flex Code
23873 status collapsed
23874
23875 \begin_layout Plain Layout
23876 %forceabbrvnames:<nametype>%
23877 \end_layout
23878
23879 \end_inset
23880
23881 : Provides a name list which is always abbreviated (with 
23882 \begin_inset Quotes eld
23883 \end_inset
23884
23885 et al.
23886 \begin_inset Quotes erd
23887 \end_inset
23888
23889 ) irrespective of 
23890 \begin_inset Flex Code
23891 status collapsed
23892
23893 \begin_layout Plain Layout
23894 MaxCiteNames
23895 \end_layout
23896
23897 \end_inset
23898
23899 .
23900 \end_layout
23901
23902 \end_deeper
23903 \begin_layout Enumerate
23904 Alternative name lists with pre- and surname, if the order of pre- and surname
23905  inside the bibliography item differs (as in: 
23906 \begin_inset Quotes eld
23907 \end_inset
23908
23909 Miller, John: Some text, in: Mary Smith, ed.: A volume
23910 \begin_inset Quotes erd
23911 \end_inset
23912
23913 ):
23914 \end_layout
23915
23916 \begin_deeper
23917 \begin_layout Itemize
23918 \begin_inset Flex Code
23919 status collapsed
23920
23921 \begin_layout Plain Layout
23922 %abbrvbynames:<nametype>%
23923 \end_layout
23924
23925 \end_inset
23926
23927 : Provides a name list which is abbreviated (with 
23928 \begin_inset Quotes eld
23929 \end_inset
23930
23931 et al.
23932 \begin_inset Quotes erd
23933 \end_inset
23934
23935 ) when 
23936 \begin_inset Flex Code
23937 status collapsed
23938
23939 \begin_layout Plain Layout
23940 MaxCiteNames
23941 \end_layout
23942
23943 \end_inset
23944
23945  is reached.
23946 \end_layout
23947
23948 \begin_layout Itemize
23949 \begin_inset Flex Code
23950 status collapsed
23951
23952 \begin_layout Plain Layout
23953 %fullbynames:<nametype>%
23954 \end_layout
23955
23956 \end_inset
23957
23958 : Provides a full name list (never abbreviated with 
23959 \begin_inset Quotes eld
23960 \end_inset
23961
23962 et al.
23963 \begin_inset Quotes erd
23964 \end_inset
23965
23966 ).
23967 \end_layout
23968
23969 \begin_layout Itemize
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 %forceabbrvbynames:<nametype>%
23975 \end_layout
23976
23977 \end_inset
23978
23979 : Provides a name list which is always abbreviated (with 
23980 \begin_inset Quotes eld
23981 \end_inset
23982
23983 et al.
23984 \begin_inset Quotes erd
23985 \end_inset
23986
23987 ) irrespective of 
23988 \begin_inset Flex Code
23989 status collapsed
23990
23991 \begin_layout Plain Layout
23992 MaxCiteNames
23993 \end_layout
23994
23995 \end_inset
23996
23997 .
23998 \end_layout
23999
24000 \end_deeper
24001 \begin_layout Enumerate
24002 And finally name lists which consist of family names only, as used in author-yea
24003 r citation labels.
24004  These do not take a 
24005 \begin_inset Flex Code
24006 status collapsed
24007
24008 \begin_layout Plain Layout
24009 <nametype>
24010 \end_layout
24011
24012 \end_inset
24013
24014  part, but always return either an author list or, if this does not exist,
24015  an editor list (as common in author-year labels):
24016 \end_layout
24017
24018 \begin_deeper
24019 \begin_layout Itemize
24020 \begin_inset Flex Code
24021 status collapsed
24022
24023 \begin_layout Plain Layout
24024 %abbrvciteauthor%
24025 \end_layout
24026
24027 \end_inset
24028
24029 : Provides a name list which is abbreviated (with 
24030 \begin_inset Quotes eld
24031 \end_inset
24032
24033 et al.
24034 \begin_inset Quotes erd
24035 \end_inset
24036
24037 ) when 
24038 \begin_inset Flex Code
24039 status collapsed
24040
24041 \begin_layout Plain Layout
24042 MaxCiteNames
24043 \end_layout
24044
24045 \end_inset
24046
24047  is reached.
24048 \end_layout
24049
24050 \begin_layout Itemize
24051 \begin_inset Flex Code
24052 status collapsed
24053
24054 \begin_layout Plain Layout
24055 %fullciteauthor%
24056 \end_layout
24057
24058 \end_inset
24059
24060 : Provides a full name list (never abbreviated with 
24061 \begin_inset Quotes eld
24062 \end_inset
24063
24064 et al.
24065 \begin_inset Quotes erd
24066 \end_inset
24067
24068 ).
24069 \end_layout
24070
24071 \begin_layout Itemize
24072 \begin_inset Flex Code
24073 status collapsed
24074
24075 \begin_layout Plain Layout
24076 %forceabbrvciteauthor%
24077 \end_layout
24078
24079 \end_inset
24080
24081 : Provides a name list which is always abbreviated (with 
24082 \begin_inset Quotes eld
24083 \end_inset
24084
24085 et al.
24086 \begin_inset Quotes erd
24087 \end_inset
24088
24089 ) irrespective of 
24090 \begin_inset Flex Code
24091 status collapsed
24092
24093 \begin_layout Plain Layout
24094 MaxCiteNames
24095 \end_layout
24096
24097 \end_inset
24098
24099 .
24100 \end_layout
24101
24102 \end_deeper
24103 \begin_layout Standard
24104 The order of pre- and surname in the former two lists can be adjusted by
24105  these macros:
24106 \end_layout
24107
24108 \begin_layout Itemize
24109 \begin_inset Flex Code
24110 status collapsed
24111
24112 \begin_layout Plain Layout
24113 !firstnameform %surname%, %prename%
24114 \end_layout
24115
24116 \end_inset
24117
24118  (first author in lists of type 1)
24119 \end_layout
24120
24121 \begin_layout Itemize
24122 \begin_inset Flex Code
24123 status collapsed
24124
24125 \begin_layout Plain Layout
24126 !othernameform %surname%, %prename%
24127 \end_layout
24128
24129 \end_inset
24130
24131  (other authors in lists of type 1)
24132 \end_layout
24133
24134 \begin_layout Itemize
24135 \begin_inset Flex Code
24136 status collapsed
24137
24138 \begin_layout Plain Layout
24139 !firstbynameform %prename% %surname%
24140 \end_layout
24141
24142 \end_inset
24143
24144  (first author in lists of type 2)
24145 \end_layout
24146
24147 \begin_layout Itemize
24148 \begin_inset Flex Code
24149 status collapsed
24150
24151 \begin_layout Plain Layout
24152 !otherbynameform %prename% %surname%
24153 \end_layout
24154
24155 \end_inset
24156
24157  (other authors in lists of type 2)
24158 \end_layout
24159
24160 \begin_layout Standard
24161 This allows you to configure namings like 
24162 \begin_inset Quotes eld
24163 \end_inset
24164
24165 Miller, Peter and Mary Smith: \SpecialChar ldots
24166 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24167
24168 \begin_inset Quotes erd
24169 \end_inset
24170
24171 .
24172 \end_layout
24173
24174 \begin_layout Standard
24175 There is one other piece of syntax available in definitions, which looks
24176  like this: 
24177 \begin_inset Flex Code
24178 status collapsed
24179
24180 \begin_layout Plain Layout
24181 {!<i>!}
24182 \end_layout
24183
24184 \end_inset
24185
24186 .
24187  This defines a piece of formatting information that is to be used when
24188  creating 
24189 \begin_inset Quotes eld
24190 \end_inset
24191
24192 rich text
24193 \begin_inset Quotes erd
24194 \end_inset
24195
24196 .
24197  Obviously, we do not want to output HTML tags when writing plain text,
24198  so they should be wrapped in 
24199 \begin_inset Quotes eld
24200 \end_inset
24201
24202 {!
24203 \begin_inset Quotes erd
24204 \end_inset
24205
24206  and 
24207 \begin_inset Quotes eld
24208 \end_inset
24209
24210 !}
24211 \begin_inset Quotes erd
24212 \end_inset
24213
24214 .
24215 \end_layout
24216
24217 \begin_layout Standard
24218 Two special sorts of definitions are also possible in a 
24219 \begin_inset Flex Code
24220 status collapsed
24221
24222 \begin_layout Plain Layout
24223 CiteFormat
24224 \end_layout
24225
24226 \end_inset
24227
24228  block.
24229  An example of the first would be:
24230 \end_layout
24231
24232 \begin_layout LyX-Code
24233 !quotetitle 
24234 \begin_inset Quotes eld
24235 \end_inset
24236
24237 %title%
24238 \begin_inset Quotes erd
24239 \end_inset
24240
24241
24242 \end_layout
24243
24244 \begin_layout Standard
24245 This is an abbreviation, or macro, and it can be used by treating it as
24246  if it were a key: 
24247 \begin_inset Flex Code
24248 status collapsed
24249
24250 \begin_layout Plain Layout
24251 %!quotetitle%
24252 \end_layout
24253
24254 \end_inset
24255
24256 .
24257  \SpecialChar LyX
24258  will treat 
24259 \begin_inset Flex Code
24260 status collapsed
24261
24262 \begin_layout Plain Layout
24263 %!quotetitle%
24264 \end_layout
24265
24266 \end_inset
24267
24268  exactly as it would treat its definition.
24269  So, let us issue the obvious 
24270 \emph on
24271 warning
24272 \emph default
24273 .
24274  Do not do this:
24275 \end_layout
24276
24277 \begin_layout LyX-Code
24278 !funfun %funfun%
24279 \end_layout
24280
24281 \begin_layout Standard
24282 or anything like it.
24283  \SpecialChar LyX
24284  shouldn't go into an infinite loop, but it may go into a long one before
24285  it gives up.
24286 \end_layout
24287
24288 \begin_layout Standard
24289 The second sort of special definition might look like this:
24290 \end_layout
24291
24292 \begin_layout LyX-Code
24293 B_pptext pp.
24294 \end_layout
24295
24296 \begin_layout Standard
24297 This defines a translatable piece of text, which allows relevant parts of
24298  the bibliography or citation to be translated.
24299  It can be included in a definition by treating it as a key: 
24300 \begin_inset Flex Code
24301 status collapsed
24302
24303 \begin_layout Plain Layout
24304 %B_pptext%
24305 \end_layout
24306
24307 \end_inset
24308
24309 .
24310  Note that there are two different translation paths: All definitions starting
24311  with 
24312 \begin_inset Flex Code
24313 status collapsed
24314
24315 \begin_layout Plain Layout
24316 B_
24317 \end_layout
24318
24319 \end_inset
24320
24321 , such as in the example above, will be translated to the currently active
24322  buffer language (so the translation will match the generated document).
24323  All definitions starting with underscore only will be translated to the
24324  GUI language.
24325  This is the proper translation for strings that only occur in the dialogs
24326  or on buttons, such as this one:
24327 \end_layout
24328
24329 \begin_layout LyX-Code
24330 _addtobib Add to bibliography only.
24331 \end_layout
24332
24333 \begin_layout Standard
24334 Several of these translatable strings are predefined in 
24335 \begin_inset Flex Code
24336 status collapsed
24337
24338 \begin_layout Plain Layout
24339 stdciteformats.inc
24340 \end_layout
24341
24342 \end_inset
24343
24344  and the diverse 
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 *.citeengine
24350 \end_layout
24351
24352 \end_inset
24353
24354  files.
24355  Note that these are not macros, in the sense just defined.
24356  They will not be expanded.
24357 \end_layout
24358
24359 \begin_layout Standard
24360 So here then is an example that uses several of these features:
24361 \begin_inset VSpace defskip
24362 \end_inset
24363
24364
24365 \end_layout
24366
24367 \begin_layout Standard
24368 \noindent
24369
24370 \family sans
24371 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24372 \end_layout
24373
24374 \begin_layout Standard
24375 \begin_inset VSpace defskip
24376 \end_inset
24377
24378 This defines a macro that prints the author, followed by a comma, if the
24379  
24380 \begin_inset Flex Code
24381 status collapsed
24382
24383 \begin_layout Plain Layout
24384 author
24385 \end_layout
24386
24387 \end_inset
24388
24389  key is defined, or else prints the name of the editor, followed by the
24390  
24391 \begin_inset Flex Code
24392 status collapsed
24393
24394 \begin_layout Plain Layout
24395 B_edtext
24396 \end_layout
24397
24398 \end_inset
24399
24400  or its translation (it is by default 
24401 \begin_inset Quotes eld
24402 \end_inset
24403
24404 ed.
24405 \begin_inset Quotes erd
24406 \end_inset
24407
24408 ), if the 
24409 \begin_inset Flex Code
24410 status collapsed
24411
24412 \begin_layout Plain Layout
24413 editor
24414 \end_layout
24415
24416 \end_inset
24417
24418  key is defined.
24419  Note that this is in fact defined in 
24420 \begin_inset Flex Code
24421 status collapsed
24422
24423 \begin_layout Plain Layout
24424 stdciteformats.inc
24425 \end_layout
24426
24427 \end_inset
24428
24429 , so you can use it in your own definitions, or re-definitions, if you load
24430  that file first.
24431 \end_layout
24432
24433 \begin_layout Section
24434 \begin_inset CommandInset label
24435 LatexCommand label
24436 name "sec:Tags-for-XHTML"
24437
24438 \end_inset
24439
24440 Tags for XHTML output
24441 \end_layout
24442
24443 \begin_layout Standard
24444 As with \SpecialChar LaTeX
24445  or DocBook, the format of \SpecialChar LyX
24446 's XHTML output is also controlled by
24447  layout information.
24448  In general, \SpecialChar LyX
24449  provides sensible defaults and, as mentioned earlier, it will
24450  even construct default CSS style rules from the other layout tags.
24451  For example, \SpecialChar LyX
24452  will attempt to use the information provided in the 
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 Font
24458 \end_layout
24459
24460 \end_inset
24461
24462  declaration for the Chapter style to write CSS that will appropriately
24463  format chapter headings.
24464 \end_layout
24465
24466 \begin_layout Standard
24467 In many cases, then, you may not have to do anything at all to get acceptable
24468  XHTML output for your own environments, custom insets, and so forth.
24469  But in some cases you will, and so \SpecialChar LyX
24470  provides a number of layout tags that
24471  can be used to customize the XHTML and CSS that are generated.
24472 \end_layout
24473
24474 \begin_layout Standard
24475 Note that there are two tags, 
24476 \begin_inset Flex Code
24477 status collapsed
24478
24479 \begin_layout Plain Layout
24480 HTMLPreamble
24481 \end_layout
24482
24483 \end_inset
24484
24485  and 
24486 \begin_inset Flex Code
24487 status collapsed
24488
24489 \begin_layout Plain Layout
24490 AddToHTMLPreamble
24491 \end_layout
24492
24493 \end_inset
24494
24495  that may appear outside style and inset declarations.
24496  See 
24497 \begin_inset CommandInset ref
24498 LatexCommand ref
24499 reference "subsec:General-text-class"
24500
24501 \end_inset
24502
24503  for details on these.
24504 \end_layout
24505
24506 \begin_layout Subsection
24507 \begin_inset CommandInset label
24508 LatexCommand label
24509 name "subsec:Paragraph-Style-XHTML"
24510
24511 \end_inset
24512
24513 Paragraph styles
24514 \end_layout
24515
24516 \begin_layout Standard
24517 The sort of XHTML \SpecialChar LyX
24518  outputs for a paragraph depends upon whether we are dealing
24519  with a normal paragraph, a command, or an environment, where this is itself
24520  determined by the contents of the corresponding 
24521 \begin_inset Flex Code
24522 status collapsed
24523
24524 \begin_layout Plain Layout
24525 \SpecialChar LaTeX
24526 Type
24527 \end_layout
24528
24529 \end_inset
24530
24531  tag.
24532  
24533 \end_layout
24534
24535 \begin_layout Standard
24536 For a command or normal paragraph, the output XHTML has the following form:
24537 \end_layout
24538
24539 \begin_layout LyX-Code
24540
24541 \family sans
24542 <tag attr=
24543 \begin_inset Quotes erd
24544 \end_inset
24545
24546 value
24547 \begin_inset Quotes erd
24548 \end_inset
24549
24550 >
24551 \end_layout
24552
24553 \begin_layout LyX-Code
24554
24555 \family sans
24556 <labeltag attr=
24557 \begin_inset Quotes erd
24558 \end_inset
24559
24560 value
24561 \begin_inset Quotes erd
24562 \end_inset
24563
24564 >Label</labeltag>
24565 \end_layout
24566
24567 \begin_layout LyX-Code
24568
24569 \family sans
24570 Contents of the paragraph.
24571 \end_layout
24572
24573 \begin_layout LyX-Code
24574
24575 \family sans
24576 </tag>
24577 \end_layout
24578
24579 \begin_layout Standard
24580 The label tags are of course omitted if the paragraph does not have a label.
24581 \end_layout
24582
24583 \begin_layout Standard
24584 For an environment that is not some sort of list, the XHTML takes this form:
24585 \end_layout
24586
24587 \begin_layout LyX-Code
24588
24589 \family sans
24590 <tag attr=
24591 \begin_inset Quotes erd
24592 \end_inset
24593
24594 value
24595 \begin_inset Quotes erd
24596 \end_inset
24597
24598 >
24599 \end_layout
24600
24601 \begin_layout LyX-Code
24602
24603 \family sans
24604 <itemtag attr=
24605 \begin_inset Quotes erd
24606 \end_inset
24607
24608 value
24609 \begin_inset Quotes erd
24610 \end_inset
24611
24612 ><labeltag attr=
24613 \begin_inset Quotes erd
24614 \end_inset
24615
24616 value
24617 \begin_inset Quotes erd
24618 \end_inset
24619
24620 >Environment Label</labeltag>First paragraph.</itemtag>
24621 \end_layout
24622
24623 \begin_layout LyX-Code
24624
24625 \family sans
24626 <itemtag>Second paragraph.</itemtag>
24627 \end_layout
24628
24629 \begin_layout LyX-Code
24630
24631 \family sans
24632 </tag>
24633 \end_layout
24634
24635 \begin_layout Standard
24636 Note that the label is output only for the first paragraph, as it should
24637  be for a theorem, for example.
24638  
24639 \end_layout
24640
24641 \begin_layout Standard
24642 For a list, we have one of these forms:
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 <itemtag attr=
24663 \begin_inset Quotes erd
24664 \end_inset
24665
24666 value
24667 \begin_inset Quotes erd
24668 \end_inset
24669
24670 ><labeltag attr=
24671 \begin_inset Quotes erd
24672 \end_inset
24673
24674 value
24675 \begin_inset Quotes erd
24676 \end_inset
24677
24678 >List Label</labeltag>First item.</itemtag>
24679 \end_layout
24680
24681 \begin_layout LyX-Code
24682
24683 \family sans
24684 <itemtag attr=
24685 \begin_inset Quotes erd
24686 \end_inset
24687
24688 value
24689 \begin_inset Quotes erd
24690 \end_inset
24691
24692 ><labeltag attr=
24693 \begin_inset Quotes erd
24694 \end_inset
24695
24696 value
24697 \begin_inset Quotes erd
24698 \end_inset
24699
24700 >List Label</labeltag>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 LyX-Code
24710
24711 \end_layout
24712
24713 \begin_layout LyX-Code
24714
24715 \family sans
24716 <tag attr=
24717 \begin_inset Quotes erd
24718 \end_inset
24719
24720 value
24721 \begin_inset Quotes erd
24722 \end_inset
24723
24724 >
24725 \end_layout
24726
24727 \begin_layout LyX-Code
24728
24729 \family sans
24730 <labeltag attr=
24731 \begin_inset Quotes erd
24732 \end_inset
24733
24734 value
24735 \begin_inset Quotes erd
24736 \end_inset
24737
24738 >List Label</labeltag><itemtag attr=
24739 \begin_inset Quotes erd
24740 \end_inset
24741
24742 value
24743 \begin_inset Quotes erd
24744 \end_inset
24745
24746 >First item.</itemtag>
24747 \end_layout
24748
24749 \begin_layout LyX-Code
24750
24751 \family sans
24752 <labeltag attr=
24753 \begin_inset Quotes erd
24754 \end_inset
24755
24756 value
24757 \begin_inset Quotes erd
24758 \end_inset
24759
24760 >List Label</labeltag><itemtag attr=
24761 \begin_inset Quotes erd
24762 \end_inset
24763
24764 value
24765 \begin_inset Quotes erd
24766 \end_inset
24767
24768 >Second item.</itemtag>
24769 \end_layout
24770
24771 \begin_layout LyX-Code
24772
24773 \family sans
24774 </tag>
24775 \end_layout
24776
24777 \begin_layout Standard
24778 Note the different orders of 
24779 \begin_inset Flex Code
24780 status collapsed
24781
24782 \begin_layout Plain Layout
24783 labeltag
24784 \end_layout
24785
24786 \end_inset
24787
24788  and 
24789 \begin_inset Flex Code
24790 status collapsed
24791
24792 \begin_layout Plain Layout
24793 itemtag
24794 \end_layout
24795
24796 \end_inset
24797
24798 .
24799  Which order we get depends upon the setting of 
24800 \begin_inset Flex Code
24801 status collapsed
24802
24803 \begin_layout Plain Layout
24804 HTMLLabelFirst
24805 \end_layout
24806
24807 \end_inset
24808
24809 : If 
24810 \begin_inset Flex Code
24811 status collapsed
24812
24813 \begin_layout Plain Layout
24814 HTMLLabelFirst
24815 \end_layout
24816
24817 \end_inset
24818
24819  is false (the default), you get the first of these, with the label within
24820  the item; if true, you get the second, with the label outside the item.
24821 \end_layout
24822
24823 \begin_layout Standard
24824 The specific tags and attributes output for each paragraph type can be controlle
24825 d by means of the layout tags we are about to describe.
24826  As mentioned earlier, however, \SpecialChar LyX
24827  uses sensible defaults for many of these,
24828  so you often may not need to do very much to get good XHTML output.
24829  Think of the available tags as there so you can tweak things to your liking.
24830 \end_layout
24831
24832 \begin_layout Description
24833 \begin_inset Flex Code
24834 status collapsed
24835
24836 \begin_layout Plain Layout
24837 HTMLAttr
24838 \end_layout
24839
24840 \end_inset
24841
24842  [
24843 \begin_inset Flex Code
24844 status collapsed
24845
24846 \begin_layout Plain Layout
24847 string
24848 \end_layout
24849
24850 \end_inset
24851
24852 ] Specifies attribute information to be output with the main tag.
24853  For example, 
24854 \begin_inset Quotes eld
24855 \end_inset
24856
24857
24858 \begin_inset Flex Code
24859 status collapsed
24860
24861 \begin_layout Plain Layout
24862 class=`mydiv'
24863 \end_layout
24864
24865 \end_inset
24866
24867
24868 \begin_inset Quotes erd
24869 \end_inset
24870
24871 .
24872  By default, \SpecialChar LyX
24873  will output 
24874 \begin_inset Quotes eld
24875 \end_inset
24876
24877
24878 \begin_inset Flex Code
24879 status collapsed
24880
24881 \begin_layout Plain Layout
24882 class=`layoutname'
24883 \end_layout
24884
24885 \end_inset
24886
24887
24888 \begin_inset Quotes erd
24889 \end_inset
24890
24891 , where 
24892 \begin_inset Flex Code
24893 status collapsed
24894
24895 \begin_layout Plain Layout
24896 layoutname
24897 \end_layout
24898
24899 \end_inset
24900
24901  is the \SpecialChar LyX
24902  name of the layout, made lowercase, for example: chapter.
24903  This should 
24904 \emph on
24905 not
24906 \emph default
24907  contain any style information.
24908  Use 
24909 \begin_inset Flex Code
24910 status collapsed
24911
24912 \begin_layout Plain Layout
24913 HTMLStyle
24914 \end_layout
24915
24916 \end_inset
24917
24918  for that purpose.
24919 \end_layout
24920
24921 \begin_layout Description
24922 \begin_inset Flex Code
24923 status collapsed
24924
24925 \begin_layout Plain Layout
24926 HTMLForceCSS
24927 \end_layout
24928
24929 \end_inset
24930
24931  [
24932 \begin_inset Flex Code
24933 status collapsed
24934
24935 \begin_layout Plain Layout
24936
24937 \emph on
24938 0
24939 \emph default
24940 ,1
24941 \end_layout
24942
24943 \end_inset
24944
24945 ] Whether to output the default CSS information \SpecialChar LyX
24946  generates for this layout,
24947  even if additional information is explicitly provided via 
24948 \begin_inset Flex Code
24949 status collapsed
24950
24951 \begin_layout Plain Layout
24952 HTMLStyle
24953 \end_layout
24954
24955 \end_inset
24956
24957 .
24958  Setting this to 
24959 \begin_inset Flex Code
24960 status collapsed
24961
24962 \begin_layout Plain Layout
24963 1
24964 \end_layout
24965
24966 \end_inset
24967
24968  allows you to alter or augment the generated CSS, rather than to override
24969  it completely.
24970  Default is 
24971 \begin_inset Flex Code
24972 status collapsed
24973
24974 \begin_layout Plain Layout
24975 0
24976 \end_layout
24977
24978 \end_inset
24979
24980 .
24981 \end_layout
24982
24983 \begin_layout Description
24984 \begin_inset Flex Code
24985 status collapsed
24986
24987 \begin_layout Plain Layout
24988 HTMLItem
24989 \end_layout
24990
24991 \end_inset
24992
24993  [
24994 \begin_inset Flex Code
24995 status collapsed
24996
24997 \begin_layout Plain Layout
24998 string
24999 \end_layout
25000
25001 \end_inset
25002
25003 ] The tag to be used for individual paragraphs of environments, replacing
25004  
25005 \begin_inset Flex Code
25006 status collapsed
25007
25008 \begin_layout Plain Layout
25009 itemtag
25010 \end_layout
25011
25012 \end_inset
25013
25014  in the examples above.
25015  Defaults to 
25016 \begin_inset Flex Code
25017 status collapsed
25018
25019 \begin_layout Plain Layout
25020 div
25021 \end_layout
25022
25023 \end_inset
25024
25025 .
25026 \end_layout
25027
25028 \begin_layout Description
25029 \begin_inset Flex Code
25030 status collapsed
25031
25032 \begin_layout Plain Layout
25033 HTMLItemAttr
25034 \end_layout
25035
25036 \end_inset
25037
25038  [
25039 \begin_inset Flex Code
25040 status collapsed
25041
25042 \begin_layout Plain Layout
25043 string
25044 \end_layout
25045
25046 \end_inset
25047
25048 ] Attributes for the item tag.
25049  Defaults to
25050 \begin_inset Newline newline
25051 \end_inset
25052
25053
25054 \begin_inset Quotes eld
25055 \end_inset
25056
25057
25058 \begin_inset Flex Code
25059 status collapsed
25060
25061 \begin_layout Plain Layout
25062 class=`layoutname_item'
25063 \end_layout
25064
25065 \end_inset
25066
25067
25068 \begin_inset Quotes erd
25069 \end_inset
25070
25071 .
25072  This should 
25073 \emph on
25074 not
25075 \emph default
25076  contain any style information.
25077  Use 
25078 \begin_inset Flex Code
25079 status collapsed
25080
25081 \begin_layout Plain Layout
25082 HTMLStyle
25083 \end_layout
25084
25085 \end_inset
25086
25087  for that purpose.
25088 \end_layout
25089
25090 \begin_layout Description
25091 \begin_inset Flex Code
25092 status collapsed
25093
25094 \begin_layout Plain Layout
25095 HTMLLabel
25096 \end_layout
25097
25098 \end_inset
25099
25100  [
25101 \begin_inset Flex Code
25102 status collapsed
25103
25104 \begin_layout Plain Layout
25105 string
25106 \end_layout
25107
25108 \end_inset
25109
25110 ] The tag to be used for paragraph and item labels, replacing 
25111 \begin_inset Flex Code
25112 status collapsed
25113
25114 \begin_layout Plain Layout
25115 labeltag
25116 \end_layout
25117
25118 \end_inset
25119
25120  in the examples above.
25121  Defaults to 
25122 \begin_inset Flex Code
25123 status collapsed
25124
25125 \begin_layout Plain Layout
25126 span
25127 \end_layout
25128
25129 \end_inset
25130
25131 , unless 
25132 \begin_inset Flex Code
25133 status collapsed
25134
25135 \begin_layout Plain Layout
25136 LabelType
25137 \end_layout
25138
25139 \end_inset
25140
25141  is either 
25142 \begin_inset Flex Code
25143 status collapsed
25144
25145 \begin_layout Plain Layout
25146 Top_Environment
25147 \end_layout
25148
25149 \end_inset
25150
25151  or 
25152 \begin_inset Flex Code
25153 status collapsed
25154
25155 \begin_layout Plain Layout
25156 Centered_Top_Environment
25157 \end_layout
25158
25159 \end_inset
25160
25161 , in which case it defaults to 
25162 \begin_inset Flex Code
25163 status collapsed
25164
25165 \begin_layout Plain Layout
25166 div
25167 \end_layout
25168
25169 \end_inset
25170
25171 .
25172 \end_layout
25173
25174 \begin_layout Description
25175 \begin_inset Flex Code
25176 status collapsed
25177
25178 \begin_layout Plain Layout
25179 HTMLLabelAttr
25180 \end_layout
25181
25182 \end_inset
25183
25184  [
25185 \begin_inset Flex Code
25186 status collapsed
25187
25188 \begin_layout Plain Layout
25189 string
25190 \end_layout
25191
25192 \end_inset
25193
25194 ] Attributes for the label tag.
25195  Defaults to
25196 \begin_inset Newline newline
25197 \end_inset
25198
25199
25200 \begin_inset Quotes eld
25201 \end_inset
25202
25203
25204 \begin_inset Flex Code
25205 status collapsed
25206
25207 \begin_layout Plain Layout
25208 class=`layoutname_label'
25209 \end_layout
25210
25211 \end_inset
25212
25213
25214 \begin_inset Quotes erd
25215 \end_inset
25216
25217 .
25218  This should 
25219 \emph on
25220 not
25221 \emph default
25222  contain any style information.
25223  Use 
25224 \begin_inset Flex Code
25225 status collapsed
25226
25227 \begin_layout Plain Layout
25228 HTMLStyle
25229 \end_layout
25230
25231 \end_inset
25232
25233  for that purpose.
25234 \end_layout
25235
25236 \begin_layout Description
25237 \begin_inset Flex Code
25238 status collapsed
25239
25240 \begin_layout Plain Layout
25241 HTMLLabelFirst
25242 \end_layout
25243
25244 \end_inset
25245
25246  [
25247 \begin_inset Flex Code
25248 status collapsed
25249
25250 \begin_layout Plain Layout
25251
25252 \emph on
25253 0
25254 \emph default
25255 ,1
25256 \end_layout
25257
25258 \end_inset
25259
25260 ] Meaningful only for list-like environments, this tag controls whether
25261  the label tag is output before or inside the item tag.
25262  This is used, for example, in the description environment, where we want
25263  `
25264 \begin_inset Flex Code
25265 status collapsed
25266
25267 \begin_layout Plain Layout
25268 <dt>\SpecialChar ldots
25269 </dt><dd>\SpecialChar ldots
25270 </dd>
25271 \end_layout
25272
25273 \end_inset
25274
25275 .
25276  Default is 
25277 \begin_inset Flex Code
25278 status collapsed
25279
25280 \begin_layout Plain Layout
25281 0
25282 \end_layout
25283
25284 \end_inset
25285
25286 : The label tag is output inside the item tag.
25287 \end_layout
25288
25289 \begin_layout Description
25290 \begin_inset Flex Code
25291 status collapsed
25292
25293 \begin_layout Plain Layout
25294 HTMLPreamble
25295 \end_layout
25296
25297 \end_inset
25298
25299  Information to be output in the 
25300 \begin_inset Flex Code
25301 status collapsed
25302
25303 \begin_layout Plain Layout
25304 <head>
25305 \end_layout
25306
25307 \end_inset
25308
25309  section when this style is used.
25310  This might, for example, be used to include a 
25311 \begin_inset Flex Code
25312 status collapsed
25313
25314 \begin_layout Plain Layout
25315 <script>
25316 \end_layout
25317
25318 \end_inset
25319
25320  block defining an 
25321 \begin_inset Flex Code
25322 status collapsed
25323
25324 \begin_layout Plain Layout
25325 onclick
25326 \end_layout
25327
25328 \end_inset
25329
25330  handler.
25331 \end_layout
25332
25333 \begin_layout Description
25334 \begin_inset Flex Code
25335 status collapsed
25336
25337 \begin_layout Plain Layout
25338 HTMLStyle
25339 \end_layout
25340
25341 \end_inset
25342
25343  CSS style information to be included when this style is used.
25344  Note that this will automatically be wrapped in a layout-generated 
25345 \begin_inset Flex Code
25346 status collapsed
25347
25348 \begin_layout Plain Layout
25349 <style>
25350 \end_layout
25351
25352 \end_inset
25353
25354  block, so only the CSS itself need be included.
25355  Must end with 
25356 \begin_inset Flex Code
25357 status collapsed
25358
25359 \begin_layout Plain Layout
25360 EndHTMLStyle
25361 \end_layout
25362
25363 \end_inset
25364
25365 .
25366 \end_layout
25367
25368 \begin_layout Description
25369 \begin_inset Flex Code
25370 status collapsed
25371
25372 \begin_layout Plain Layout
25373 HTMLTag
25374 \end_layout
25375
25376 \end_inset
25377
25378  [
25379 \begin_inset Flex Code
25380 status collapsed
25381
25382 \begin_layout Plain Layout
25383 string
25384 \end_layout
25385
25386 \end_inset
25387
25388 ] The tag to be used for the main label, replacing 
25389 \begin_inset Flex Code
25390 status collapsed
25391
25392 \begin_layout Plain Layout
25393 tag
25394 \end_layout
25395
25396 \end_inset
25397
25398  in the examples above.
25399  Defaults to 
25400 \begin_inset Flex Code
25401 status collapsed
25402
25403 \begin_layout Plain Layout
25404 div
25405 \end_layout
25406
25407 \end_inset
25408
25409 .
25410 \end_layout
25411
25412 \begin_layout Description
25413 \begin_inset Flex Code
25414 status collapsed
25415
25416 \begin_layout Plain Layout
25417 HTMLTitle
25418 \end_layout
25419
25420 \end_inset
25421
25422  [
25423 \begin_inset Flex Code
25424 status collapsed
25425
25426 \begin_layout Plain Layout
25427
25428 \emph on
25429 0
25430 \emph default
25431 ,1
25432 \end_layout
25433
25434 \end_inset
25435
25436 ] Marks this style as the one to be used to generate the 
25437 \begin_inset Flex Code
25438 status collapsed
25439
25440 \begin_layout Plain Layout
25441 <title>
25442 \end_layout
25443
25444 \end_inset
25445
25446  tag for the XHTML file.
25447  By default, it is false.
25448  The 
25449 \begin_inset Flex Code
25450 status collapsed
25451
25452 \begin_layout Plain Layout
25453 stdtitle.inc
25454 \end_layout
25455
25456 \end_inset
25457
25458  file sets it to true for the 
25459 \begin_inset Flex Code
25460 status collapsed
25461
25462 \begin_layout Plain Layout
25463 title
25464 \end_layout
25465
25466 \end_inset
25467
25468  environment.
25469  
25470 \end_layout
25471
25472 \begin_layout Subsection
25473 InsetLayout XHTML
25474 \end_layout
25475
25476 \begin_layout Standard
25477 The XHTML output of insets can also be controlled by information in layout
25478  files.
25479 \begin_inset Foot
25480 status collapsed
25481
25482 \begin_layout Plain Layout
25483 At present, this is true only for 
25484 \begin_inset Quotes eld
25485 \end_inset
25486
25487 text
25488 \begin_inset Quotes erd
25489 \end_inset
25490
25491  insets (insets you can type into) and is not true for 
25492 \begin_inset Quotes eld
25493 \end_inset
25494
25495 command
25496 \begin_inset Quotes erd
25497 \end_inset
25498
25499  insets (insets that are associated with dialog boxes).
25500 \end_layout
25501
25502 \end_inset
25503
25504  Here, too, \SpecialChar LyX
25505  tries to provide sensible defaults, and it constructs default
25506  CSS style rules.
25507  But everything can be customized.
25508 \end_layout
25509
25510 \begin_layout Standard
25511 The XHTML \SpecialChar LyX
25512  outputs for an inset has the following form:
25513 \end_layout
25514
25515 \begin_layout LyX-Code
25516 <tag attr=
25517 \begin_inset Quotes erd
25518 \end_inset
25519
25520 value
25521 \begin_inset Quotes erd
25522 \end_inset
25523
25524 >
25525 \end_layout
25526
25527 \begin_layout LyX-Code
25528 <labeltag>Label</labeltag>
25529 \end_layout
25530
25531 \begin_layout LyX-Code
25532 <innertag attr=
25533 \begin_inset Quotes erd
25534 \end_inset
25535
25536 value
25537 \begin_inset Quotes erd
25538 \end_inset
25539
25540 >Contents of the inset.</innertag>
25541 \end_layout
25542
25543 \begin_layout LyX-Code
25544 </tag>
25545 \end_layout
25546
25547 \begin_layout Standard
25548 If the inset permits multiple paragraphs—that is, if 
25549 \begin_inset Flex Code
25550 status collapsed
25551
25552 \begin_layout Plain Layout
25553 MultiPar
25554 \end_layout
25555
25556 \end_inset
25557
25558  is true—then the contents of the inset will itself be output as paragraphs
25559  formatted according to the styles used for those paragraphs (standard,
25560  quote, and the like).
25561  The label tag is of course omitted if the paragraph does not have a label
25562  and, at present, is always 
25563 \begin_inset Flex Code
25564 status collapsed
25565
25566 \begin_layout Plain Layout
25567 span
25568 \end_layout
25569
25570 \end_inset
25571
25572 .
25573  The inner tag is optional and, by default, does not appear.
25574 \end_layout
25575
25576 \begin_layout Standard
25577 The specific tags and attributes output for each inset can be controlled
25578  by means of the following layout tags.
25579 \end_layout
25580
25581 \begin_layout Description
25582 \begin_inset Flex Code
25583 status collapsed
25584
25585 \begin_layout Plain Layout
25586 HTMLAttr
25587 \end_layout
25588
25589 \end_inset
25590
25591  [
25592 \begin_inset Flex Code
25593 status collapsed
25594
25595 \begin_layout Plain Layout
25596 string
25597 \end_layout
25598
25599 \end_inset
25600
25601 ] Specifies attribute information to be output with the main tag.
25602  For example, 
25603 \begin_inset Quotes eld
25604 \end_inset
25605
25606
25607 \begin_inset Flex Code
25608 status collapsed
25609
25610 \begin_layout Plain Layout
25611 class=`myinset' onclick=`\SpecialChar ldots
25612 '
25613 \end_layout
25614
25615 \end_inset
25616
25617
25618 \begin_inset Quotes erd
25619 \end_inset
25620
25621 .
25622  By default, \SpecialChar LyX
25623  will output 
25624 \begin_inset Quotes eld
25625 \end_inset
25626
25627
25628 \begin_inset Flex Code
25629 status collapsed
25630
25631 \begin_layout Plain Layout
25632 class=`insetname'
25633 \end_layout
25634
25635 \end_inset
25636
25637
25638 \begin_inset Quotes erd
25639 \end_inset
25640
25641 , where 
25642 \begin_inset Flex Code
25643 status collapsed
25644
25645 \begin_layout Plain Layout
25646 insetname
25647 \end_layout
25648
25649 \end_inset
25650
25651  is the \SpecialChar LyX
25652  name of the inset, made lowercase and with non-alphanumeric characters
25653  converted to underscores, for example: footnote.
25654 \end_layout
25655
25656 \begin_layout Description
25657 \begin_inset Flex Code
25658 status collapsed
25659
25660 \begin_layout Plain Layout
25661 HTMLForceCSS
25662 \end_layout
25663
25664 \end_inset
25665
25666  [
25667 \begin_inset Flex Code
25668 status collapsed
25669
25670 \begin_layout Plain Layout
25671
25672 \emph on
25673 0
25674 \emph default
25675 ,1
25676 \end_layout
25677
25678 \end_inset
25679
25680 ] Whether to output the default CSS information \SpecialChar LyX
25681  generates for this layout,
25682  even if additional information is explicitly provided via 
25683 \begin_inset Flex Code
25684 status collapsed
25685
25686 \begin_layout Plain Layout
25687 HTMLStyle
25688 \end_layout
25689
25690 \end_inset
25691
25692 .
25693  Setting this to 
25694 \begin_inset Flex Code
25695 status collapsed
25696
25697 \begin_layout Plain Layout
25698 1
25699 \end_layout
25700
25701 \end_inset
25702
25703  allows you to alter or augment the generated CSS, rather than to override
25704  it completely.
25705  Default is 0.
25706 \end_layout
25707
25708 \begin_layout Description
25709 \begin_inset Flex Code
25710 status collapsed
25711
25712 \begin_layout Plain Layout
25713 HTMLInnerAttr
25714 \end_layout
25715
25716 \end_inset
25717
25718  [
25719 \begin_inset Flex Code
25720 status collapsed
25721
25722 \begin_layout Plain Layout
25723 string
25724 \end_layout
25725
25726 \end_inset
25727
25728 ] Attributes for the inner tag.
25729  Defaults to
25730 \begin_inset Newline newline
25731 \end_inset
25732
25733
25734 \begin_inset Quotes eld
25735 \end_inset
25736
25737
25738 \begin_inset Flex Code
25739 status collapsed
25740
25741 \begin_layout Plain Layout
25742 class=`insetname_inner'
25743 \end_layout
25744
25745 \end_inset
25746
25747
25748 \begin_inset Quotes erd
25749 \end_inset
25750
25751 .
25752 \end_layout
25753
25754 \begin_layout Description
25755 \begin_inset Flex Code
25756 status collapsed
25757
25758 \begin_layout Plain Layout
25759 HTMLInnerTag
25760 \end_layout
25761
25762 \end_inset
25763
25764  [
25765 \begin_inset Flex Code
25766 status collapsed
25767
25768 \begin_layout Plain Layout
25769 string
25770 \end_layout
25771
25772 \end_inset
25773
25774 ] The inner tag, replacing 
25775 \begin_inset Flex Code
25776 status collapsed
25777
25778 \begin_layout Plain Layout
25779 innertag
25780 \end_layout
25781
25782 \end_inset
25783
25784  in the examples above.
25785  By default, there is none.
25786 \end_layout
25787
25788 \begin_layout Description
25789 \begin_inset Flex Code
25790 status collapsed
25791
25792 \begin_layout Plain Layout
25793 HTMLIsBlock
25794 \end_layout
25795
25796 \end_inset
25797
25798  [
25799 \begin_inset Flex Code
25800 status collapsed
25801
25802 \begin_layout Plain Layout
25803 0,
25804 \emph on
25805 1
25806 \end_layout
25807
25808 \end_inset
25809
25810 ] Whether this inset represents a standalone block of text (such as a footnote)
25811  or instead represents material that is included in the surrounding text
25812  (such as a branch).
25813  Defaults to 1.
25814 \end_layout
25815
25816 \begin_layout Description
25817 \begin_inset Flex Code
25818 status collapsed
25819
25820 \begin_layout Plain Layout
25821 HTMLLabel
25822 \end_layout
25823
25824 \end_inset
25825
25826  [
25827 \begin_inset Flex Code
25828 status collapsed
25829
25830 \begin_layout Plain Layout
25831 string
25832 \end_layout
25833
25834 \end_inset
25835
25836 ] A label for this inset, possibly including a reference to a counter.
25837  For example, for footnote, it might be: 
25838 \begin_inset Flex Code
25839 status collapsed
25840
25841 \begin_layout Plain Layout
25842
25843 \backslash
25844 arabic{footnote}
25845 \end_layout
25846
25847 \end_inset
25848
25849 .
25850  This is optional, and there is no default.
25851 \end_layout
25852
25853 \begin_layout Description
25854 \begin_inset Flex Code
25855 status collapsed
25856
25857 \begin_layout Plain Layout
25858 HTMLPreamble
25859 \end_layout
25860
25861 \end_inset
25862
25863  Information to be output in the 
25864 \begin_inset Flex Code
25865 status collapsed
25866
25867 \begin_layout Plain Layout
25868 <head>
25869 \end_layout
25870
25871 \end_inset
25872
25873  section when this style is used.
25874  This might, for example, be used to include a 
25875 \begin_inset Flex Code
25876 status collapsed
25877
25878 \begin_layout Plain Layout
25879 <script>
25880 \end_layout
25881
25882 \end_inset
25883
25884  block defining an 
25885 \begin_inset Flex Code
25886 status collapsed
25887
25888 \begin_layout Plain Layout
25889 onclick
25890 \end_layout
25891
25892 \end_inset
25893
25894  handler.
25895 \end_layout
25896
25897 \begin_layout Description
25898 \begin_inset Flex Code
25899 status collapsed
25900
25901 \begin_layout Plain Layout
25902 HTMLStyle
25903 \end_layout
25904
25905 \end_inset
25906
25907  CSS style information to be included when this style is used.
25908  Note that this will automatically be wrapped in a layout-generated 
25909 \begin_inset Flex Code
25910 status collapsed
25911
25912 \begin_layout Plain Layout
25913 <style>
25914 \end_layout
25915
25916 \end_inset
25917
25918  block, so only the CSS itself need be included.
25919 \end_layout
25920
25921 \begin_layout Description
25922 \begin_inset Flex Code
25923 status collapsed
25924
25925 \begin_layout Plain Layout
25926 HTMLTag
25927 \end_layout
25928
25929 \end_inset
25930
25931  [
25932 \begin_inset Flex Code
25933 status collapsed
25934
25935 \begin_layout Plain Layout
25936 string
25937 \end_layout
25938
25939 \end_inset
25940
25941 ] The tag to be used for the main label, replacing 
25942 \begin_inset Flex Code
25943 status collapsed
25944
25945 \begin_layout Plain Layout
25946 tag
25947 \end_layout
25948
25949 \end_inset
25950
25951  in the examples above.
25952  The default depends upon the setting of 
25953 \begin_inset Flex Code
25954 status collapsed
25955
25956 \begin_layout Plain Layout
25957 MultiPar
25958 \end_layout
25959
25960 \end_inset
25961
25962 : If 
25963 \begin_inset Flex Code
25964 status collapsed
25965
25966 \begin_layout Plain Layout
25967 MultiPar
25968 \end_layout
25969
25970 \end_inset
25971
25972  is true, the default is 
25973 \begin_inset Flex Code
25974 status collapsed
25975
25976 \begin_layout Plain Layout
25977 div
25978 \end_layout
25979
25980 \end_inset
25981
25982 ; if it is false, the default is 
25983 \begin_inset Flex Code
25984 status collapsed
25985
25986 \begin_layout Plain Layout
25987 span
25988 \end_layout
25989
25990 \end_inset
25991
25992 .
25993 \end_layout
25994
25995 \begin_layout Subsection
25996 Float XHTML
25997 \end_layout
25998
25999 \begin_layout Standard
26000 The XHTML output for floats too can be controlled by layout information.
26001  The output has the following form:
26002 \end_layout
26003
26004 \begin_layout LyX-Code
26005 <tag attr=
26006 \begin_inset Quotes erd
26007 \end_inset
26008
26009 value
26010 \begin_inset Quotes erd
26011 \end_inset
26012
26013 >
26014 \end_layout
26015
26016 \begin_layout LyX-Code
26017 Contents of the float.
26018 \end_layout
26019
26020 \begin_layout LyX-Code
26021 </tag>
26022 \end_layout
26023
26024 \begin_layout Standard
26025 The caption, if there is one, is a separate inset and will be output as
26026  such.
26027  Its appearance can be controlled via the InsetLayout for caption insets.
26028  
26029 \end_layout
26030
26031 \begin_layout Description
26032 \begin_inset Flex Code
26033 status collapsed
26034
26035 \begin_layout Plain Layout
26036 HTMLAttr
26037 \end_layout
26038
26039 \end_inset
26040
26041  [
26042 \begin_inset Flex Code
26043 status collapsed
26044
26045 \begin_layout Plain Layout
26046 string
26047 \end_layout
26048
26049 \end_inset
26050
26051 ] Specifies attribute information to be output with the main tag.
26052  For example, 
26053 \begin_inset Quotes eld
26054 \end_inset
26055
26056
26057 \begin_inset Flex Code
26058 status collapsed
26059
26060 \begin_layout Plain Layout
26061 class=`myfloat' onclick=`\SpecialChar ldots
26062 '
26063 \end_layout
26064
26065 \end_inset
26066
26067
26068 \begin_inset Quotes erd
26069 \end_inset
26070
26071 .
26072  By default, \SpecialChar LyX
26073  will output 
26074 \begin_inset Quotes eld
26075 \end_inset
26076
26077
26078 \begin_inset Flex Code
26079 status collapsed
26080
26081 \begin_layout Plain Layout
26082 class=`float float-floattype'
26083 \end_layout
26084
26085 \end_inset
26086
26087
26088 \begin_inset Quotes erd
26089 \end_inset
26090
26091 , where 
26092 \begin_inset Flex Code
26093 status collapsed
26094
26095 \begin_layout Plain Layout
26096 floattype
26097 \end_layout
26098
26099 \end_inset
26100
26101  is \SpecialChar LyX
26102 's name for this type of float, as determined by the float declaration
26103  (see 
26104 \begin_inset CommandInset ref
26105 LatexCommand ref
26106 reference "subsec:Floats"
26107
26108 \end_inset
26109
26110 ), though made lowercase and with non-alphanumeric characters converted
26111  to underscores, for example: float-table.
26112 \end_layout
26113
26114 \begin_layout Description
26115 \begin_inset Flex Code
26116 status collapsed
26117
26118 \begin_layout Plain Layout
26119 HTMLStyle
26120 \end_layout
26121
26122 \end_inset
26123
26124  CSS style information to be included when this float is used.
26125  Note that this will automatically be wrapped in a layout-generated 
26126 \begin_inset Flex Code
26127 status collapsed
26128
26129 \begin_layout Plain Layout
26130 <style>
26131 \end_layout
26132
26133 \end_inset
26134
26135  block, so only the CSS itself need be included.
26136 \end_layout
26137
26138 \begin_layout Description
26139 \begin_inset Flex Code
26140 status collapsed
26141
26142 \begin_layout Plain Layout
26143 HTMLTag
26144 \end_layout
26145
26146 \end_inset
26147
26148  [
26149 \begin_inset Flex Code
26150 status collapsed
26151
26152 \begin_layout Plain Layout
26153 string
26154 \end_layout
26155
26156 \end_inset
26157
26158 ] The tag to be used for this float, replacing 
26159 \begin_inset Quotes eld
26160 \end_inset
26161
26162
26163 \begin_inset Flex Code
26164 status collapsed
26165
26166 \begin_layout Plain Layout
26167 tag
26168 \end_layout
26169
26170 \end_inset
26171
26172
26173 \begin_inset Quotes erd
26174 \end_inset
26175
26176  in the example above.
26177  The default is 
26178 \begin_inset Flex Code
26179 status collapsed
26180
26181 \begin_layout Plain Layout
26182 div
26183 \end_layout
26184
26185 \end_inset
26186
26187  and will rarely need changing.
26188 \end_layout
26189
26190 \begin_layout Subsection
26191 Bibliography formatting
26192 \end_layout
26193
26194 \begin_layout Standard
26195 The bibliography can be formatted using 
26196 \begin_inset Flex Code
26197 status collapsed
26198
26199 \begin_layout Plain Layout
26200 CiteFormat
26201 \end_layout
26202
26203 \end_inset
26204
26205  blocks.
26206  See 
26207 \begin_inset CommandInset ref
26208 LatexCommand ref
26209 reference "subsec:Citation-format-description"
26210
26211 \end_inset
26212
26213  for the details.
26214 \end_layout
26215
26216 \begin_layout Subsection
26217 \SpecialChar LyX
26218 -generated CSS
26219 \end_layout
26220
26221 \begin_layout Standard
26222 We have several times mentioned that \SpecialChar LyX
26223  will generate default CSS style rules
26224  for both insets and paragraph styles, based upon the other layout information
26225  that is provided.
26226  In this section, we shall say a word about which layout information \SpecialChar LyX
26227  uses
26228  and how.
26229 \end_layout
26230
26231 \begin_layout Standard
26232 At present, \SpecialChar LyX
26233  auto-generates CSS only for font information, making use of
26234  the 
26235 \begin_inset Flex Code
26236 status collapsed
26237
26238 \begin_layout Plain Layout
26239 Family
26240 \end_layout
26241
26242 \end_inset
26243
26244
26245 \begin_inset Flex Code
26246 status collapsed
26247
26248 \begin_layout Plain Layout
26249 Series
26250 \end_layout
26251
26252 \end_inset
26253
26254
26255 \begin_inset Flex Code
26256 status collapsed
26257
26258 \begin_layout Plain Layout
26259 Shape
26260 \end_layout
26261
26262 \end_inset
26263
26264 , and 
26265 \begin_inset Flex Code
26266 status collapsed
26267
26268 \begin_layout Plain Layout
26269 Size
26270 \end_layout
26271
26272 \end_inset
26273
26274  specified in the 
26275 \begin_inset Flex Code
26276 status collapsed
26277
26278 \begin_layout Plain Layout
26279 Font
26280 \end_layout
26281
26282 \end_inset
26283
26284  declaration (see 
26285 \begin_inset CommandInset ref
26286 LatexCommand ref
26287 reference "subsec:Font-description"
26288
26289 \end_inset
26290
26291 ).
26292  The translation is mostly straightforward and obvious.
26293  For example, 
26294 \begin_inset Quotes eld
26295 \end_inset
26296
26297
26298 \begin_inset Flex Code
26299 status collapsed
26300
26301 \begin_layout Plain Layout
26302 Family Sans
26303 \end_layout
26304
26305 \end_inset
26306
26307
26308 \begin_inset Quotes erd
26309 \end_inset
26310
26311  becomes 
26312 \begin_inset Quotes eld
26313 \end_inset
26314
26315
26316 \begin_inset Flex Code
26317 status collapsed
26318
26319 \begin_layout Plain Layout
26320 font-family: sans-serif;
26321 \end_layout
26322
26323 \end_inset
26324
26325
26326 \begin_inset Quotes erd
26327 \end_inset
26328
26329 .
26330  The correspondence of \SpecialChar LyX
26331  sizes and CSS sizes is a little less obvious but
26332  nonetheless intuitive.
26333  See the 
26334 \begin_inset Flex Code
26335 status collapsed
26336
26337 \begin_layout Plain Layout
26338 getSizeCSS()
26339 \end_layout
26340
26341 \end_inset
26342
26343  function in 
26344 \begin_inset Flex URL
26345 status collapsed
26346
26347 \begin_layout Plain Layout
26348
26349 src/FontInfo.cpp
26350 \end_layout
26351
26352 \end_inset
26353
26354  for the details.
26355 \end_layout
26356
26357 \begin_layout Chapter
26358 Including External Material
26359 \begin_inset CommandInset label
26360 LatexCommand label
26361 name "chap:Including-External-Material"
26362
26363 \end_inset
26364
26365
26366 \end_layout
26367
26368 \begin_layout Standard
26369 \begin_inset Box Shadowbox
26370 position "t"
26371 hor_pos "c"
26372 has_inner_box 1
26373 inner_pos "t"
26374 use_parbox 0
26375 use_makebox 0
26376 width "100col%"
26377 special "none"
26378 height "1in"
26379 height_special "totalheight"
26380 thickness "0.4pt"
26381 separation "3pt"
26382 shadowsize "4pt"
26383 framecolor "black"
26384 backgroundcolor "none"
26385 status open
26386
26387 \begin_layout Plain Layout
26388 WARNING: This portion of the documentation has not been updated for some
26389  time.
26390  We certainly hope that it is still accurate, but there are no guarantees.
26391 \end_layout
26392
26393 \end_inset
26394
26395
26396 \end_layout
26397
26398 \begin_layout Standard
26399 The use of material from sources external to \SpecialChar LyX
26400  is covered in detail in the
26401  
26402 \emph on
26403 Embedded Objects
26404 \emph default
26405  manual.
26406  This part of the manual covers what needs to happen behind the scenes for
26407  new sorts of material to be included.
26408 \end_layout
26409
26410 \begin_layout Section
26411 How does it work?
26412 \end_layout
26413
26414 \begin_layout Standard
26415 The external material feature is based on the concept of a 
26416 \emph on
26417 template
26418 \emph default
26419 .
26420  A template is a specification of how \SpecialChar LyX
26421  should interface with a certain kind
26422  of material.
26423  As bundled, \SpecialChar LyX
26424  comes with predefined templates for Xfig figures, various
26425  raster format images, chess diagrams, and LilyPond music notation.
26426  You can check the actual list by using the menu 
26427 \begin_inset Flex Noun
26428 status collapsed
26429
26430 \begin_layout Plain Layout
26431 Insert\SpecialChar menuseparator
26432 File\SpecialChar menuseparator
26433 External Material
26434 \end_layout
26435
26436 \end_inset
26437
26438 .
26439  Furthermore, it is possible to roll your own template to support a specific
26440  kind of material.
26441  Later we'll describe in more detail what is involved, and hopefully you
26442  will submit all the templates you create so we can include them in a later
26443  \SpecialChar LyX
26444  version.
26445 \end_layout
26446
26447 \begin_layout Standard
26448 Another basic idea of the external material feature is to distinguish between
26449  the original file that serves as a base for final material and the produced
26450  file that is included in your exported or printed document.
26451  For example, consider the case of a figure produced with 
26452 \begin_inset Flex Code
26453 status collapsed
26454
26455 \begin_layout Plain Layout
26456 Xfig
26457 \end_layout
26458
26459 \end_inset
26460
26461 .
26462  The Xfig application itself works on an original file with the 
26463 \begin_inset Flex Code
26464 status collapsed
26465
26466 \begin_layout Plain Layout
26467 .fig
26468 \end_layout
26469
26470 \end_inset
26471
26472  extension.
26473  Within Xfig, you create and change your figure, and when you are done,
26474  you save the 
26475 \begin_inset Flex Code
26476 status collapsed
26477
26478 \begin_layout Plain Layout
26479 fig
26480 \end_layout
26481
26482 \end_inset
26483
26484 -file.
26485  When you want to include the figure in your document, you invoke 
26486 \begin_inset Flex Code
26487 status collapsed
26488
26489 \begin_layout Plain Layout
26490 transfig
26491 \end_layout
26492
26493 \end_inset
26494
26495  in order to create a PostScript file that can readily be included in your
26496  \SpecialChar LaTeX
26497  file.
26498  In this case, the 
26499 \begin_inset Flex Code
26500 status collapsed
26501
26502 \begin_layout Plain Layout
26503 .fig
26504 \end_layout
26505
26506 \end_inset
26507
26508  file is the original file, and the PostScript file is the produced file.
26509 \end_layout
26510
26511 \begin_layout Standard
26512 This distinction is important in order to allow updating of the material
26513  while you are in the process of writing the document.
26514  Furthermore, it provides us with the flexibility that is needed to support
26515  multiple export formats.
26516  For instance, in the case of a plain text file, it is not exactly an award-winn
26517 ing idea to include the figure as raw PostScript.
26518  Instead, you would either prefer to just include a reference to the figure
26519  or try to invoke some graphics to ASCII converter to make the final result
26520  look similar to the real graphics.
26521  The external material management allows you to do this, because it is parametri
26522 zed on the different export formats that \SpecialChar LyX
26523  supports.
26524 \end_layout
26525
26526 \begin_layout Standard
26527 Besides supporting the production of different products according to the
26528  exported format, it supports tight integration with editing and viewing
26529  applications.
26530  In the case of an Xfig figure, you are able to invoke Xfig on the original
26531  file with a single click from within the external material dialog in \SpecialChar LyX
26532 ,
26533  and also preview the produced PostScript file with Ghostview with another
26534  click.
26535  No more fiddling around with the command line and/or file browsers to locate
26536  and manipulate the original or produced files.
26537  In this way, you are finally able to take full advantage of the many different
26538  applications that are relevant to use when you write your documents, and
26539  ultimately be more productive.
26540 \end_layout
26541
26542 \begin_layout Section
26543 The external template configuration files
26544 \end_layout
26545
26546 \begin_layout Standard
26547 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26548 .
26549  However, be aware that doing this in an careless manner most probably 
26550 \emph on
26551 will
26552 \emph default
26553  introduce an easily exploitable security hole.
26554  So before you do this, please read the discussion about security in 
26555 \begin_inset CommandInset ref
26556 LatexCommand ref
26557 reference "sec:Security-discussion"
26558
26559 \end_inset
26560
26561 .
26562 \end_layout
26563
26564 \begin_layout Standard
26565 Having said that, we encourage you to submit any interesting templates that
26566  you create.
26567  
26568 \end_layout
26569
26570 \begin_layout Standard
26571 The external templates are defined in the 
26572 \begin_inset Flex Code
26573 status collapsed
26574
26575 \begin_layout Plain Layout
26576 *.xtemplate
26577 \end_layout
26578
26579 \end_inset
26580
26581  files that are stored in the 
26582 \begin_inset Flex Code
26583 status collapsed
26584
26585 \begin_layout Plain Layout
26586 LyXDir/lib/xtemplates/
26587 \end_layout
26588
26589 \end_inset
26590
26591  directory.
26592  Each template is defined in a file of its own.
26593  You can place your own templates in 
26594 \begin_inset Flex Code
26595 status collapsed
26596
26597 \begin_layout Plain Layout
26598 UserDir/xtemplates/
26599 \end_layout
26600
26601 \end_inset
26602
26603  or copy existing templates to that directory in order to modify them.
26604 \end_layout
26605
26606 \begin_layout Standard
26607 A typical template looks like this:
26608 \end_layout
26609
26610 \begin_layout LyX-Code
26611 Template XFig
26612 \end_layout
26613
26614 \begin_layout LyX-Code
26615 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26616 \end_layout
26617
26618 \begin_layout LyX-Code
26619 HelpText
26620 \end_layout
26621
26622 \begin_layout LyX-Code
26623 An XFig figure.
26624 \end_layout
26625
26626 \begin_layout LyX-Code
26627 HelpTextEnd
26628 \end_layout
26629
26630 \begin_layout LyX-Code
26631 InputFormat fig
26632 \end_layout
26633
26634 \begin_layout LyX-Code
26635 FileFilter "*.fig"
26636 \end_layout
26637
26638 \begin_layout LyX-Code
26639 AutomaticProduction true
26640 \end_layout
26641
26642 \begin_layout LyX-Code
26643 Transform Rotate
26644 \end_layout
26645
26646 \begin_layout LyX-Code
26647 Transform Resize
26648 \end_layout
26649
26650 \begin_layout LyX-Code
26651 Format LaTeX
26652 \end_layout
26653
26654 \begin_layout LyX-Code
26655 TransformCommand Rotate RotationLatexCommand
26656 \end_layout
26657
26658 \begin_layout LyX-Code
26659 TransformCommand Resize ResizeLatexCommand
26660 \end_layout
26661
26662 \begin_layout LyX-Code
26663 Product "$$RotateFront$$ResizeFront
26664 \end_layout
26665
26666 \begin_layout LyX-Code
26667          
26668 \backslash
26669
26670 \backslash
26671 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26672 \end_layout
26673
26674 \begin_layout LyX-Code
26675          $$ResizeBack$$RotateBack"
26676 \end_layout
26677
26678 \begin_layout LyX-Code
26679 UpdateFormat pstex
26680 \end_layout
26681
26682 \begin_layout LyX-Code
26683 UpdateResult "$$AbsPath$$Basename.pstex_t"
26684 \end_layout
26685
26686 \begin_layout LyX-Code
26687 Requirement "graphicx"
26688 \end_layout
26689
26690 \begin_layout LyX-Code
26691 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26692 \end_layout
26693
26694 \begin_layout LyX-Code
26695 ReferencedFile latex "$$AbsPath$$Basename.eps"
26696 \end_layout
26697
26698 \begin_layout LyX-Code
26699 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26700 \end_layout
26701
26702 \begin_layout LyX-Code
26703 FormatEnd
26704 \end_layout
26705
26706 \begin_layout LyX-Code
26707 Format PDFLaTeX
26708 \end_layout
26709
26710 \begin_layout LyX-Code
26711 TransformCommand Rotate RotationLatexCommand
26712 \end_layout
26713
26714 \begin_layout LyX-Code
26715 TransformCommand Resize ResizeLatexCommand
26716 \end_layout
26717
26718 \begin_layout LyX-Code
26719 Product "$$RotateFront$$ResizeFront
26720 \end_layout
26721
26722 \begin_layout LyX-Code
26723          
26724 \backslash
26725
26726 \backslash
26727 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
26728 \end_layout
26729
26730 \begin_layout LyX-Code
26731          $$ResizeBack$$RotateBack"
26732 \end_layout
26733
26734 \begin_layout LyX-Code
26735 UpdateFormat pdftex
26736 \end_layout
26737
26738 \begin_layout LyX-Code
26739 UpdateResult "$$AbsPath$$Basename.pdftex_t"
26740 \end_layout
26741
26742 \begin_layout LyX-Code
26743 Requirement "graphicx"
26744 \end_layout
26745
26746 \begin_layout LyX-Code
26747 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
26748 \end_layout
26749
26750 \begin_layout LyX-Code
26751 ReferencedFile latex "$$AbsPath$$Basename.pdf"
26752 \end_layout
26753
26754 \begin_layout LyX-Code
26755 FormatEnd
26756 \end_layout
26757
26758 \begin_layout LyX-Code
26759 Format Ascii
26760 \end_layout
26761
26762 \begin_layout LyX-Code
26763 Product "[XFig: $$FName]"
26764 \end_layout
26765
26766 \begin_layout LyX-Code
26767 FormatEnd
26768 \end_layout
26769
26770 \begin_layout LyX-Code
26771 Format DocBook
26772 \end_layout
26773
26774 \begin_layout LyX-Code
26775 Product "<graphic fileref=
26776 \backslash
26777 "$$AbsOrRelPathMaster$$Basename.eps
26778 \backslash
26779 ">
26780 \end_layout
26781
26782 \begin_layout LyX-Code
26783          </graphic>"
26784 \end_layout
26785
26786 \begin_layout LyX-Code
26787 UpdateFormat eps
26788 \end_layout
26789
26790 \begin_layout LyX-Code
26791 UpdateResult "$$AbsPath$$Basename.eps"
26792 \end_layout
26793
26794 \begin_layout LyX-Code
26795 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26796 \end_layout
26797
26798 \begin_layout LyX-Code
26799 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26800 \end_layout
26801
26802 \begin_layout LyX-Code
26803 FormatEnd
26804 \end_layout
26805
26806 \begin_layout LyX-Code
26807 TemplateEnd
26808 \end_layout
26809
26810 \begin_layout Standard
26811 As you can see, the template is enclosed in 
26812 \begin_inset Flex Code
26813 status collapsed
26814
26815 \begin_layout Plain Layout
26816 Template
26817 \end_layout
26818
26819 \end_inset
26820
26821  \SpecialChar ldots
26822  
26823 \begin_inset Flex Code
26824 status collapsed
26825
26826 \begin_layout Plain Layout
26827 TemplateEnd
26828 \end_layout
26829
26830 \end_inset
26831
26832 .
26833  It contains a header specifying some general settings and, for each supported
26834  primary document file format, a section 
26835 \begin_inset Flex Code
26836 status collapsed
26837
26838 \begin_layout Plain Layout
26839 Format
26840 \end_layout
26841
26842 \end_inset
26843
26844  \SpecialChar ldots
26845  
26846 \begin_inset Flex Code
26847 status collapsed
26848
26849 \begin_layout Plain Layout
26850 FormatEnd
26851 \end_layout
26852
26853 \end_inset
26854
26855 .
26856 \end_layout
26857
26858 \begin_layout Subsection
26859 The template header
26860 \end_layout
26861
26862 \begin_layout Description
26863 \begin_inset Flex Code
26864 status collapsed
26865
26866 \begin_layout Plain Layout
26867 AutomaticProduction
26868 \begin_inset space ~
26869 \end_inset
26870
26871 true|false
26872 \end_layout
26873
26874 \end_inset
26875
26876  Whether the file represented by the template must be generated by \SpecialChar LyX
26877 .
26878  This command must occur exactly once.
26879 \end_layout
26880
26881 \begin_layout Description
26882 \begin_inset Flex Code
26883 status collapsed
26884
26885 \begin_layout Plain Layout
26886 FileFilter
26887 \begin_inset space ~
26888 \end_inset
26889
26890 <pattern>
26891 \end_layout
26892
26893 \end_inset
26894
26895  A glob pattern that is used in the file dialog to filter out the desired
26896  files.
26897  If there is more than one possible file extension (e.
26898 \begin_inset space \thinspace{}
26899 \end_inset
26900
26901 g.
26902 \begin_inset space \space{}
26903 \end_inset
26904
26905 tgif has 
26906 \begin_inset Flex Code
26907 status collapsed
26908
26909 \begin_layout Plain Layout
26910 .obj
26911 \end_layout
26912
26913 \end_inset
26914
26915  and 
26916 \begin_inset Flex Code
26917 status collapsed
26918
26919 \begin_layout Plain Layout
26920 .tgo
26921 \end_layout
26922
26923 \end_inset
26924
26925 ), use something like 
26926 \begin_inset Flex Code
26927 status collapsed
26928
26929 \begin_layout Plain Layout
26930 "*.{obj,tgo}"
26931 \end_layout
26932
26933 \end_inset
26934
26935 .
26936  This command must occur exactly once.
26937 \end_layout
26938
26939 \begin_layout Description
26940 \begin_inset Flex Code
26941 status collapsed
26942
26943 \begin_layout Plain Layout
26944 GuiName
26945 \begin_inset space ~
26946 \end_inset
26947
26948 <guiname>
26949 \end_layout
26950
26951 \end_inset
26952
26953  The text that is displayed on the button.
26954  This command must occur exactly once.
26955 \end_layout
26956
26957 \begin_layout Description
26958 \begin_inset Flex Code
26959 status collapsed
26960
26961 \begin_layout Plain Layout
26962 HelpText
26963 \begin_inset space ~
26964 \end_inset
26965
26966 <text>
26967 \begin_inset space ~
26968 \end_inset
26969
26970 HelpTextEnd
26971 \end_layout
26972
26973 \end_inset
26974
26975  The help text that is used in the External dialog.
26976  Provide enough information to explain to the user just what the template
26977  can provide him with.
26978  This command must occur exactly once.
26979 \end_layout
26980
26981 \begin_layout Description
26982 \begin_inset Flex Code
26983 status collapsed
26984
26985 \begin_layout Plain Layout
26986 InputFormat
26987 \begin_inset space ~
26988 \end_inset
26989
26990 <format>
26991 \end_layout
26992
26993 \end_inset
26994
26995  The file format of the original file.
26996  This must be the name of a format that is known to \SpecialChar LyX
26997  (see 
26998 \begin_inset CommandInset ref
26999 LatexCommand ref
27000 reference "sec:Formats"
27001
27002 \end_inset
27003
27004 ).
27005  Use 
27006 \begin_inset Quotes eld
27007 \end_inset
27008
27009
27010 \begin_inset Flex Code
27011 status collapsed
27012
27013 \begin_layout Plain Layout
27014 *
27015 \end_layout
27016
27017 \end_inset
27018
27019
27020 \begin_inset Quotes erd
27021 \end_inset
27022
27023  if the template can handle original files of more than one format.
27024  \SpecialChar LyX
27025  will attempt to interrogate the file itself in order to deduce its format
27026  in this case.
27027  This command must occur exactly once.
27028 \end_layout
27029
27030 \begin_layout Description
27031 \begin_inset Flex Code
27032 status collapsed
27033
27034 \begin_layout Plain Layout
27035 Template
27036 \begin_inset space ~
27037 \end_inset
27038
27039 <id>
27040 \end_layout
27041
27042 \end_inset
27043
27044  A unique name for the template.
27045  It must not contain substitution macros (see below).
27046 \end_layout
27047
27048 \begin_layout Description
27049 \begin_inset Flex Code
27050 status collapsed
27051
27052 \begin_layout Plain Layout
27053 Transform
27054 \begin_inset space ~
27055 \end_inset
27056
27057 Rotate|Resize|Clip|Extra
27058 \end_layout
27059
27060 \end_inset
27061
27062  This command specifies which transformations are supported by this template.
27063  It may occur zero or more times.
27064  This command enables the corresponding tabs in the external dialog.
27065  Each 
27066 \begin_inset Flex Code
27067 status collapsed
27068
27069 \begin_layout Plain Layout
27070 Transform
27071 \end_layout
27072
27073 \end_inset
27074
27075  command must have either a corresponding 
27076 \begin_inset Flex Code
27077 status collapsed
27078
27079 \begin_layout Plain Layout
27080 TransformCommand
27081 \end_layout
27082
27083 \end_inset
27084
27085  or a 
27086 \begin_inset Flex Code
27087 status collapsed
27088
27089 \begin_layout Plain Layout
27090 TransformOption
27091 \end_layout
27092
27093 \end_inset
27094
27095  command in the 
27096 \begin_inset Flex Code
27097 status collapsed
27098
27099 \begin_layout Plain Layout
27100 Format
27101 \end_layout
27102
27103 \end_inset
27104
27105  section.
27106  Otherwise the transformation will not be supported by that format.
27107 \end_layout
27108
27109 \begin_layout Subsection
27110 The Format section
27111 \end_layout
27112
27113 \begin_layout Description
27114 \begin_inset Flex Code
27115 status collapsed
27116
27117 \begin_layout Plain Layout
27118 Format
27119 \begin_inset space ~
27120 \end_inset
27121
27122 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
27123 \end_layout
27124
27125 \end_inset
27126
27127  The primary document file format that this format definition is for.
27128  Not every template has a sensible representation in all document file formats.
27129  Please define nevertheless a 
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134 Format
27135 \end_layout
27136
27137 \end_inset
27138
27139  section for all templates.
27140  Use a dummy text when no representation is available.
27141  Then you can at least see a reference to the external material in the exported
27142  document.
27143 \end_layout
27144
27145 \begin_layout Description
27146 \begin_inset Flex Code
27147 status collapsed
27148
27149 \begin_layout Plain Layout
27150 Option
27151 \begin_inset space ~
27152 \end_inset
27153
27154 <name>
27155 \begin_inset space ~
27156 \end_inset
27157
27158 <value>
27159 \end_layout
27160
27161 \end_inset
27162
27163  This command defines an additional macro 
27164 \begin_inset Flex Code
27165 status collapsed
27166
27167 \begin_layout Plain Layout
27168 $$<name>
27169 \end_layout
27170
27171 \end_inset
27172
27173  for substitution in 
27174 \begin_inset Flex Code
27175 status collapsed
27176
27177 \begin_layout Plain Layout
27178 Product
27179 \end_layout
27180
27181 \end_inset
27182
27183 .
27184  
27185 \begin_inset Flex Code
27186 status collapsed
27187
27188 \begin_layout Plain Layout
27189 <value>
27190 \end_layout
27191
27192 \end_inset
27193
27194  itself may contain substitution macros.
27195  The advantage over using 
27196 \begin_inset Flex Code
27197 status collapsed
27198
27199 \begin_layout Plain Layout
27200 <value>
27201 \end_layout
27202
27203 \end_inset
27204
27205  directly in 
27206 \begin_inset Flex Code
27207 status collapsed
27208
27209 \begin_layout Plain Layout
27210 Product
27211 \end_layout
27212
27213 \end_inset
27214
27215  is that the substituted value of 
27216 \begin_inset Flex Code
27217 status collapsed
27218
27219 \begin_layout Plain Layout
27220 $$<name>
27221 \end_layout
27222
27223 \end_inset
27224
27225  is sanitized so that it is a valid optional argument in the document format.
27226  This command may occur zero or more times.
27227 \end_layout
27228
27229 \begin_layout Description
27230 \begin_inset Flex Code
27231 status collapsed
27232
27233 \begin_layout Plain Layout
27234 Product
27235 \begin_inset space ~
27236 \end_inset
27237
27238 <text>
27239 \end_layout
27240
27241 \end_inset
27242
27243  The text that is inserted in the exported document.
27244  This is actually the most important command and can be quite complex.
27245  This command must occur exactly once.
27246 \end_layout
27247
27248 \begin_layout Description
27249 \begin_inset Flex Code
27250 status collapsed
27251
27252 \begin_layout Plain Layout
27253 Preamble
27254 \begin_inset space ~
27255 \end_inset
27256
27257 <name>
27258 \end_layout
27259
27260 \end_inset
27261
27262  This command specifies a preamble snippet that will be included in the
27263  \SpecialChar LaTeX
27264  preamble.
27265  It has to be defined using 
27266 \begin_inset Flex Code
27267 status collapsed
27268
27269 \begin_layout Plain Layout
27270 PreambleDef
27271 \end_layout
27272
27273 \end_inset
27274
27275  \SpecialChar ldots
27276  
27277 \begin_inset Flex Code
27278 status collapsed
27279
27280 \begin_layout Plain Layout
27281 PreambleDefEnd
27282 \end_layout
27283
27284 \end_inset
27285
27286 .
27287  This command may occur zero or more times.
27288 \end_layout
27289
27290 \begin_layout Description
27291 \begin_inset Flex Code
27292 status collapsed
27293
27294 \begin_layout Plain Layout
27295 ReferencedFile
27296 \begin_inset space ~
27297 \end_inset
27298
27299 <format>
27300 \begin_inset space ~
27301 \end_inset
27302
27303 <filename>
27304 \end_layout
27305
27306 \end_inset
27307
27308  This command denotes files that are created by the conversion process and
27309  are needed for a particular export format.
27310  If the filename is relative, it is interpreted relative to the master document.
27311  This command may be given zero or more times.
27312 \end_layout
27313
27314 \begin_layout Description
27315 \begin_inset Flex Code
27316 status collapsed
27317
27318 \begin_layout Plain Layout
27319 Requirement
27320 \begin_inset space ~
27321 \end_inset
27322
27323 <package>
27324 \end_layout
27325
27326 \end_inset
27327
27328  The name of a required \SpecialChar LaTeX
27329  package.
27330  The package is included via 
27331 \begin_inset Flex Code
27332 status collapsed
27333
27334 \begin_layout Plain Layout
27335
27336 \backslash
27337 usepackage{}
27338 \end_layout
27339
27340 \end_inset
27341
27342  in the \SpecialChar LaTeX
27343  preamble.
27344  This command may occur zero or more times.
27345 \end_layout
27346
27347 \begin_layout Description
27348 \begin_inset Flex Code
27349 status collapsed
27350
27351 \begin_layout Plain Layout
27352 TransformCommand
27353 \begin_inset space ~
27354 \end_inset
27355
27356 Rotate
27357 \begin_inset space ~
27358 \end_inset
27359
27360 RotationLatexCommand
27361 \end_layout
27362
27363 \end_inset
27364
27365  This command specifies that the built in \SpecialChar LaTeX
27366  command should be used for rotation.
27367  This command may occur once or not at all.
27368 \end_layout
27369
27370 \begin_layout Description
27371 \begin_inset Flex Code
27372 status collapsed
27373
27374 \begin_layout Plain Layout
27375 TransformCommand
27376 \begin_inset space ~
27377 \end_inset
27378
27379 Resize
27380 \begin_inset space ~
27381 \end_inset
27382
27383 ResizeLatexCommand
27384 \end_layout
27385
27386 \end_inset
27387
27388  This command specifies that the built in \SpecialChar LaTeX
27389  command should be used for resizing.
27390  This command may occur once or not at all.
27391 \end_layout
27392
27393 \begin_layout Description
27394 \begin_inset Flex Code
27395 status collapsed
27396
27397 \begin_layout Plain Layout
27398 TransformOption
27399 \begin_inset space ~
27400 \end_inset
27401
27402 Rotate
27403 \begin_inset space ~
27404 \end_inset
27405
27406 RotationLatexOption
27407 \end_layout
27408
27409 \end_inset
27410
27411  This command specifies that rotation is done via an optional argument.
27412  This command may occur once or not at all.
27413 \end_layout
27414
27415 \begin_layout Description
27416 \begin_inset Flex Code
27417 status collapsed
27418
27419 \begin_layout Plain Layout
27420 TransformOption
27421 \begin_inset space ~
27422 \end_inset
27423
27424 Resize
27425 \begin_inset space ~
27426 \end_inset
27427
27428 ResizeLatexOption
27429 \end_layout
27430
27431 \end_inset
27432
27433  This command specifies that resizing is done via an optional argument.
27434  This command may occur once or not at all.
27435 \end_layout
27436
27437 \begin_layout Description
27438 \begin_inset Flex Code
27439 status collapsed
27440
27441 \begin_layout Plain Layout
27442 TransformOption
27443 \begin_inset space ~
27444 \end_inset
27445
27446 Clip
27447 \begin_inset space ~
27448 \end_inset
27449
27450 ClipLatexOption
27451 \end_layout
27452
27453 \end_inset
27454
27455  This command specifies that clipping is done via an optional argument.
27456  This command may occur once or not at all.
27457 \end_layout
27458
27459 \begin_layout Description
27460 \begin_inset Flex Code
27461 status collapsed
27462
27463 \begin_layout Plain Layout
27464 TransformOption
27465 \begin_inset space ~
27466 \end_inset
27467
27468 Extra
27469 \begin_inset space ~
27470 \end_inset
27471
27472 ExtraLatexOption
27473 \end_layout
27474
27475 \end_inset
27476
27477  This command specifies that an extra optional argument is used.
27478  This command may occur once or not at all.
27479 \end_layout
27480
27481 \begin_layout Description
27482 \begin_inset Flex Code
27483 status collapsed
27484
27485 \begin_layout Plain Layout
27486 UpdateFormat
27487 \begin_inset space ~
27488 \end_inset
27489
27490 <format>
27491 \end_layout
27492
27493 \end_inset
27494
27495  The file format of the converted file.
27496  This must be the name of a format that is known to \SpecialChar LyX
27497  (see the 
27498 \begin_inset Flex Noun
27499 status collapsed
27500
27501 \begin_layout Plain Layout
27502 Tools\SpecialChar menuseparator
27503 Preferences\SpecialChar menuseparator
27504 File Handling\SpecialChar menuseparator
27505 File Format
27506 \end_layout
27507
27508 \end_inset
27509
27510  dialog).
27511  This command must occur exactly once.
27512  If the resulting file format is PDF, you need to specify the format 
27513 \begin_inset Flex Code
27514 status collapsed
27515
27516 \begin_layout Plain Layout
27517 pdf6
27518 \end_layout
27519
27520 \end_inset
27521
27522 .
27523  This is the PDF format used for including graphics.
27524  The other defined PDF formats are for document export.
27525 \end_layout
27526
27527 \begin_layout Description
27528 \begin_inset Flex Code
27529 status collapsed
27530
27531 \begin_layout Plain Layout
27532 UpdateResult
27533 \begin_inset space ~
27534 \end_inset
27535
27536 <filename>
27537 \end_layout
27538
27539 \end_inset
27540
27541  The file name of the converted file.
27542  The file name must be absolute.
27543  This command must occur exactly once.
27544 \end_layout
27545
27546 \begin_layout Subsection
27547 Preamble definitions
27548 \end_layout
27549
27550 \begin_layout Standard
27551 The external template configuration file may contain additional preamble
27552  definitions enclosed by 
27553 \begin_inset Flex Code
27554 status collapsed
27555
27556 \begin_layout Plain Layout
27557 PreambleDef
27558 \end_layout
27559
27560 \end_inset
27561
27562  \SpecialChar ldots
27563  
27564 \begin_inset Flex Code
27565 status collapsed
27566
27567 \begin_layout Plain Layout
27568 PreambleDefEnd
27569 \end_layout
27570
27571 \end_inset
27572
27573 .
27574  They can be used by the templates in the 
27575 \begin_inset Flex Code
27576 status collapsed
27577
27578 \begin_layout Plain Layout
27579 Format
27580 \end_layout
27581
27582 \end_inset
27583
27584  section.
27585 \end_layout
27586
27587 \begin_layout Section
27588 The substitution mechanism
27589 \end_layout
27590
27591 \begin_layout Standard
27592 When the external material facility invokes an external program, it is done
27593  on the basis of a command defined in the template configuration file.
27594  These commands can contain various macros that are expanded before execution.
27595  Execution always take place in the directory of the containing document.
27596 \end_layout
27597
27598 \begin_layout Standard
27599 Also, whenever external material is to be displayed, the name will be produced
27600  by the substitution mechanism, and most other commands in the template
27601  definition support substitution as well.
27602 \end_layout
27603
27604 \begin_layout Standard
27605 The available macros are the following:
27606 \end_layout
27607
27608 \begin_layout Description
27609 \begin_inset Flex Code
27610 status collapsed
27611
27612 \begin_layout Plain Layout
27613 $$AbsOrRelPathMaster
27614 \end_layout
27615
27616 \end_inset
27617
27618  The file path, absolute or relative to the master \SpecialChar LyX
27619  document.
27620 \end_layout
27621
27622 \begin_layout Description
27623 \begin_inset Flex Code
27624 status collapsed
27625
27626 \begin_layout Plain Layout
27627 $$AbsOrRelPathParent
27628 \end_layout
27629
27630 \end_inset
27631
27632  The file path, absolute or relative to the \SpecialChar LyX
27633  document.
27634 \end_layout
27635
27636 \begin_layout Description
27637 \begin_inset Flex Code
27638 status collapsed
27639
27640 \begin_layout Plain Layout
27641 $$AbsPath
27642 \end_layout
27643
27644 \end_inset
27645
27646  The absolute file path.
27647 \end_layout
27648
27649 \begin_layout Description
27650 \begin_inset Flex Code
27651 status collapsed
27652
27653 \begin_layout Plain Layout
27654 $$Basename
27655 \end_layout
27656
27657 \end_inset
27658
27659  The filename without path and without the extension.
27660 \end_layout
27661
27662 \begin_layout Description
27663 \begin_inset Flex Code
27664 status collapsed
27665
27666 \begin_layout Plain Layout
27667 $$Contents(
27668 \begin_inset Quotes eld
27669 \end_inset
27670
27671 filename.ext
27672 \begin_inset Quotes erd
27673 \end_inset
27674
27675 )
27676 \end_layout
27677
27678 \end_inset
27679
27680  This macro will expand to the contents of the file with the name 
27681 \begin_inset Flex Code
27682 status collapsed
27683
27684 \begin_layout Plain Layout
27685 filename.ext
27686 \end_layout
27687
27688 \end_inset
27689
27690 .
27691 \end_layout
27692
27693 \begin_layout Description
27694 \begin_inset Flex Code
27695 status collapsed
27696
27697 \begin_layout Plain Layout
27698 $$Extension
27699 \end_layout
27700
27701 \end_inset
27702
27703  The file extension (including the dot).
27704 \end_layout
27705
27706 \begin_layout Description
27707 \begin_inset Flex Code
27708 status collapsed
27709
27710 \begin_layout Plain Layout
27711 $$pngOrjpg
27712 \end_layout
27713
27714 \end_inset
27715
27716  This will be the string 
27717 \begin_inset Quotes eld
27718 \end_inset
27719
27720 jpg
27721 \begin_inset Quotes erd
27722 \end_inset
27723
27724  if the file is in JPEG format, otherwise it will be the string 
27725 \begin_inset Quotes eld
27726 \end_inset
27727
27728 png
27729 \begin_inset Quotes erd
27730 \end_inset
27731
27732 .
27733  This is useful to avoid uneeded conversions for output formats that support
27734  both PNG and JPEG fomats.
27735  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
27736  output
27737  format.
27738 \end_layout
27739
27740 \begin_layout Description
27741 \begin_inset Flex Code
27742 status collapsed
27743
27744 \begin_layout Plain Layout
27745 $$FName
27746 \end_layout
27747
27748 \end_inset
27749
27750  The filename of the file specified in the external material dialog.
27751  This is either an absolute name, or it is relative to the \SpecialChar LyX
27752  document.
27753 \end_layout
27754
27755 \begin_layout Description
27756 \begin_inset Flex Code
27757 status collapsed
27758
27759 \begin_layout Plain Layout
27760 $$FPath
27761 \end_layout
27762
27763 \end_inset
27764
27765  The path part of 
27766 \begin_inset Flex Code
27767 status collapsed
27768
27769 \begin_layout Plain Layout
27770 $$FName
27771 \end_layout
27772
27773 \end_inset
27774
27775  (absolute name or relative to the \SpecialChar LyX
27776  document).
27777 \end_layout
27778
27779 \begin_layout Description
27780 \begin_inset Flex Code
27781 status collapsed
27782
27783 \begin_layout Plain Layout
27784 $$RelPathMaster
27785 \end_layout
27786
27787 \end_inset
27788
27789  The file path, relative to the master \SpecialChar LyX
27790  document.
27791 \end_layout
27792
27793 \begin_layout Description
27794 \begin_inset Flex Code
27795 status collapsed
27796
27797 \begin_layout Plain Layout
27798 $$RelPathParent
27799 \end_layout
27800
27801 \end_inset
27802
27803  The file path, relative to the \SpecialChar LyX
27804  document.
27805 \end_layout
27806
27807 \begin_layout Description
27808 \begin_inset Flex Code
27809 status collapsed
27810
27811 \begin_layout Plain Layout
27812 $$Sysdir
27813 \end_layout
27814
27815 \end_inset
27816
27817  This macro will expand to the absolute path of the system directory.
27818  This is typically used to point to the various helper scripts that are
27819  bundled with \SpecialChar LyX
27820 .
27821 \end_layout
27822
27823 \begin_layout Description
27824 \begin_inset Flex Code
27825 status collapsed
27826
27827 \begin_layout Plain Layout
27828 $$Tempname
27829 \end_layout
27830
27831 \end_inset
27832
27833  A name and full path to a temporary file which will be automatically deleted
27834  whenever the containing document is closed, or the external material insertion
27835  deleted.
27836 \end_layout
27837
27838 \begin_layout Standard
27839 All path macros contain a trailing directory separator, so you can construct
27840  e.
27841 \begin_inset space \thinspace{}
27842 \end_inset
27843
27844 g.
27845 \begin_inset space \space{}
27846 \end_inset
27847
27848 the absolute filename with 
27849 \begin_inset Flex Code
27850 status collapsed
27851
27852 \begin_layout Plain Layout
27853 $$AbsPath$$Basename$$Extension
27854 \end_layout
27855
27856 \end_inset
27857
27858 .
27859 \end_layout
27860
27861 \begin_layout Standard
27862 The macros above are substituted in all commands unless otherwise noted.
27863  The command 
27864 \begin_inset Flex Code
27865 status collapsed
27866
27867 \begin_layout Plain Layout
27868 Product
27869 \end_layout
27870
27871 \end_inset
27872
27873  supports additionally the following substitutions if they are enabled by
27874  the 
27875 \begin_inset Flex Code
27876 status collapsed
27877
27878 \begin_layout Plain Layout
27879 Transform
27880 \end_layout
27881
27882 \end_inset
27883
27884  and 
27885 \begin_inset Flex Code
27886 status collapsed
27887
27888 \begin_layout Plain Layout
27889 TransformCommand
27890 \end_layout
27891
27892 \end_inset
27893
27894  commands:
27895 \end_layout
27896
27897 \begin_layout Description
27898 \begin_inset Flex Code
27899 status collapsed
27900
27901 \begin_layout Plain Layout
27902 $$ResizeFront
27903 \end_layout
27904
27905 \end_inset
27906
27907  The front part of the resize command.
27908 \end_layout
27909
27910 \begin_layout Description
27911 \begin_inset Flex Code
27912 status collapsed
27913
27914 \begin_layout Plain Layout
27915 $$ResizeBack
27916 \end_layout
27917
27918 \end_inset
27919
27920  The back part of the resize command.
27921 \end_layout
27922
27923 \begin_layout Description
27924 \begin_inset Flex Code
27925 status collapsed
27926
27927 \begin_layout Plain Layout
27928 $$RotateFront
27929 \end_layout
27930
27931 \end_inset
27932
27933  The front part of the rotation command.
27934 \end_layout
27935
27936 \begin_layout Description
27937 \begin_inset Flex Code
27938 status collapsed
27939
27940 \begin_layout Plain Layout
27941 $$RotateBack
27942 \end_layout
27943
27944 \end_inset
27945
27946  The back part of the rotation command.
27947 \end_layout
27948
27949 \begin_layout Standard
27950 The value string of the 
27951 \begin_inset Flex Code
27952 status collapsed
27953
27954 \begin_layout Plain Layout
27955 Option
27956 \end_layout
27957
27958 \end_inset
27959
27960  command supports additionally the following substitutions if they are enabled
27961  by the 
27962 \begin_inset Flex Code
27963 status collapsed
27964
27965 \begin_layout Plain Layout
27966 Transform
27967 \end_layout
27968
27969 \end_inset
27970
27971  and 
27972 \begin_inset Flex Code
27973 status collapsed
27974
27975 \begin_layout Plain Layout
27976 TransformOption
27977 \end_layout
27978
27979 \end_inset
27980
27981  commands:
27982 \end_layout
27983
27984 \begin_layout Description
27985 \begin_inset Flex Code
27986 status collapsed
27987
27988 \begin_layout Plain Layout
27989 $$Clip
27990 \end_layout
27991
27992 \end_inset
27993
27994  The clip option.
27995 \end_layout
27996
27997 \begin_layout Description
27998 \begin_inset Flex Code
27999 status collapsed
28000
28001 \begin_layout Plain Layout
28002 $$Extra
28003 \end_layout
28004
28005 \end_inset
28006
28007  The extra option.
28008 \end_layout
28009
28010 \begin_layout Description
28011 \begin_inset Flex Code
28012 status collapsed
28013
28014 \begin_layout Plain Layout
28015 $$Resize
28016 \end_layout
28017
28018 \end_inset
28019
28020  The resize option.
28021 \end_layout
28022
28023 \begin_layout Description
28024 \begin_inset Flex Code
28025 status collapsed
28026
28027 \begin_layout Plain Layout
28028 $$Rotate
28029 \end_layout
28030
28031 \end_inset
28032
28033  The rotation option.
28034 \end_layout
28035
28036 \begin_layout Standard
28037 You may ask why there are so many path macros.
28038  There are mainly two reasons:
28039 \end_layout
28040
28041 \begin_layout Enumerate
28042 Relative and absolute file names should remain relative or absolute, respectivel
28043 y.
28044  Users may have reasons to prefer either form.
28045  Relative names are useful for portable documents that should work on different
28046  machines, for example.
28047  Absolute names may be required by some programs.
28048 \end_layout
28049
28050 \begin_layout Enumerate
28051 \SpecialChar LaTeX
28052  treats relative file names differently than \SpecialChar LyX
28053  and other programs in nested
28054  included files.
28055  For \SpecialChar LyX
28056 , a relative file name is always relative to the document that contains
28057  the file name.
28058  For \SpecialChar LaTeX
28059 , it is always relative to the master document.
28060  These two definitions are identical if you have only one document, but
28061  differ if you have a master document that includes part documents.
28062  That means that relative filenames must be transformed when presented to
28063  \SpecialChar LaTeX
28064 .
28065  Fortunately \SpecialChar LyX
28066  does this automatically for you if you choose the right macros.
28067 \end_layout
28068
28069 \begin_layout Standard
28070 So which path macro should be used in new template definitions? The rule
28071  is not difficult:
28072 \end_layout
28073
28074 \begin_layout Itemize
28075 Use 
28076 \begin_inset Flex Code
28077 status collapsed
28078
28079 \begin_layout Plain Layout
28080 $$AbsPath
28081 \end_layout
28082
28083 \end_inset
28084
28085  if an absolute path is required.
28086 \end_layout
28087
28088 \begin_layout Itemize
28089 Use 
28090 \begin_inset Flex Code
28091 status collapsed
28092
28093 \begin_layout Plain Layout
28094 $$AbsOrRelPathMaster
28095 \end_layout
28096
28097 \end_inset
28098
28099  if the substituted string is some kind of \SpecialChar LaTeX
28100  input.
28101 \end_layout
28102
28103 \begin_layout Itemize
28104 Else use 
28105 \begin_inset Flex Code
28106 status collapsed
28107
28108 \begin_layout Plain Layout
28109 $$AbsOrRelPathParent
28110 \end_layout
28111
28112 \end_inset
28113
28114  in order to preserve the user's choice.
28115 \end_layout
28116
28117 \begin_layout Standard
28118 There are special cases where this rule does not work and e.
28119 \begin_inset space \thinspace{}
28120 \end_inset
28121
28122 g.
28123 \begin_inset space \space{}
28124 \end_inset
28125
28126 relative names are needed, but normally it will work just fine.
28127  One example for such a case is the command 
28128 \begin_inset Flex Code
28129 status collapsed
28130
28131 \begin_layout Plain Layout
28132 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28133 \end_layout
28134
28135 \end_inset
28136
28137  in the XFig template above: We can't use the absolute name because the
28138  copier for 
28139 \begin_inset Flex Code
28140 status collapsed
28141
28142 \begin_layout Plain Layout
28143 .pstex_t
28144 \end_layout
28145
28146 \end_inset
28147
28148  files needs the relative name in order to rewrite the file content.
28149 \end_layout
28150
28151 \begin_layout Section
28152 Security discussion
28153 \begin_inset CommandInset label
28154 LatexCommand label
28155 name "sec:Security-discussion"
28156
28157 \end_inset
28158
28159
28160 \end_layout
28161
28162 \begin_layout Standard
28163 The external material feature interfaces with a lot of external programs
28164  and does so automatically, so we have to consider the security implications
28165  of this.
28166  In particular, since you have the option of including your own filenames
28167  and/or parameter strings and those are expanded into a command, it seems
28168  that it would be possible to create a malicious document which executes
28169  arbitrary commands when a user views or prints the document.
28170  This is something we definitely want to avoid.
28171 \end_layout
28172
28173 \begin_layout Standard
28174 However, since the external program commands are specified in the template
28175  configuration file only, there are no security issues if \SpecialChar LyX
28176  is properly configure
28177 d with safe templates only.
28178  This is so because the external programs are invoked with the 
28179 \begin_inset Flex Code
28180 status collapsed
28181
28182 \begin_layout Plain Layout
28183 execvp
28184 \end_layout
28185
28186 \end_inset
28187
28188 -system call rather than the 
28189 \begin_inset Flex Code
28190 status collapsed
28191
28192 \begin_layout Plain Layout
28193 system
28194 \end_layout
28195
28196 \end_inset
28197
28198  system-call, so it's not possible to execute arbitrary commands from the
28199  filename or parameter section via the shell.
28200 \end_layout
28201
28202 \begin_layout Standard
28203 This also implies that you are restricted in what command strings you can
28204  use in the external material templates.
28205  In particular, pipes and redirection are not readily available.
28206  This has to be so if \SpecialChar LyX
28207  should remain safe.
28208  If you want to use some of the shell features, you should write a safe
28209  script to do this in a controlled manner, and then invoke the script from
28210  the command string.
28211  
28212 \end_layout
28213
28214 \begin_layout Standard
28215 It is possible to design a template that interacts directly with the shell,
28216  but since this would allow a malicious user to execute arbitrary commands
28217  by writing clever filenames and/or parameters, we generally recommend that
28218  you only use safe scripts that work with the 
28219 \begin_inset Flex Code
28220 status collapsed
28221
28222 \begin_layout Plain Layout
28223 execvp
28224 \end_layout
28225
28226 \end_inset
28227
28228  system call in a controlled manner.
28229  Of course, for use in a controlled environment, it can be tempting to just
28230  fall back to use ordinary shell scripts.
28231  If you do so, be aware that you 
28232 \emph on
28233 will
28234 \emph default
28235  provide an easily exploitable security hole in your system.
28236  Of course it stands to reason that such unsafe templates will never be
28237  included in the standard \SpecialChar LyX
28238  distribution, although we do encourage people
28239  to submit new templates in the open source tradition.
28240  But \SpecialChar LyX
28241  as shipped from the official distribution channels will never have
28242  unsafe templates.
28243 \end_layout
28244
28245 \begin_layout Standard
28246 Including external material provides a lot of power, and you have to be
28247  careful not to introduce security hazards with this power.
28248  A subtle error in a single line in an innocent looking script can open
28249  the door to huge security problems.
28250  So if you do not fully understand the issues, we recommend that you consult
28251  a knowledgeable security professional or the \SpecialChar LyX
28252  development team if you have
28253  any questions about whether a given template is safe or not.
28254  And do this before you use it in an uncontrolled environment.
28255 \end_layout
28256
28257 \begin_layout Chapter
28258 \start_of_appendix
28259 List of supported \SpecialChar LyX
28260  functions to be used in layouts
28261 \begin_inset CommandInset label
28262 LatexCommand label
28263 name "chap:List-of-functions"
28264
28265 \end_inset
28266
28267
28268 \end_layout
28269
28270 \begin_layout Standard
28271 \align center
28272 \begin_inset Tabular
28273 <lyxtabular version="3" rows="11" columns="8">
28274 <features tabularvalignment="middle">
28275 <column alignment="left" valignment="top">
28276 <column alignment="left" valignment="top">
28277 <column alignment="left" valignment="top">
28278 <column alignment="left" valignment="top">
28279 <column alignment="left" valignment="top">
28280 <column alignment="left" valignment="top">
28281 <column alignment="left" valignment="top">
28282 <column alignment="left" valignment="top">
28283 <row>
28284 <cell alignment="left" valignment="top" usebox="none">
28285 \begin_inset Text
28286
28287 \begin_layout Plain Layout
28288 accents
28289 \end_layout
28290
28291 \end_inset
28292 </cell>
28293 <cell alignment="left" valignment="top" usebox="none">
28294 \begin_inset Text
28295
28296 \begin_layout Plain Layout
28297 booktabs
28298 \end_layout
28299
28300 \end_inset
28301 </cell>
28302 <cell alignment="left" valignment="top" usebox="none">
28303 \begin_inset Text
28304
28305 \begin_layout Plain Layout
28306 feyn
28307 \end_layout
28308
28309 \end_inset
28310 </cell>
28311 <cell alignment="left" valignment="top" usebox="none">
28312 \begin_inset Text
28313
28314 \begin_layout Plain Layout
28315 listings
28316 \end_layout
28317
28318 \end_inset
28319 </cell>
28320 <cell alignment="center" valignment="top" usebox="none">
28321 \begin_inset Text
28322
28323 \begin_layout Plain Layout
28324 natbib
28325 \end_layout
28326
28327 \end_inset
28328 </cell>
28329 <cell alignment="center" valignment="top" usebox="none">
28330 \begin_inset Text
28331
28332 \begin_layout Plain Layout
28333 rotfloat
28334 \end_layout
28335
28336 \end_inset
28337 </cell>
28338 <cell alignment="center" valignment="top" usebox="none">
28339 \begin_inset Text
28340
28341 \begin_layout Plain Layout
28342 tfrupee
28343 \end_layout
28344
28345 \end_inset
28346 </cell>
28347 <cell alignment="center" valignment="top" usebox="none">
28348 \begin_inset Text
28349
28350 \begin_layout Plain Layout
28351 wasysym
28352 \end_layout
28353
28354 \end_inset
28355 </cell>
28356 </row>
28357 <row>
28358 <cell alignment="left" valignment="top" usebox="none">
28359 \begin_inset Text
28360
28361 \begin_layout Plain Layout
28362 amsbsy
28363 \end_layout
28364
28365 \end_inset
28366 </cell>
28367 <cell alignment="left" valignment="top" usebox="none">
28368 \begin_inset Text
28369
28370 \begin_layout Plain Layout
28371 calc
28372 \end_layout
28373
28374 \end_inset
28375 </cell>
28376 <cell alignment="left" valignment="top" usebox="none">
28377 \begin_inset Text
28378
28379 \begin_layout Plain Layout
28380 fixltx2e
28381 \end_layout
28382
28383 \end_inset
28384 </cell>
28385 <cell alignment="left" valignment="top" usebox="none">
28386 \begin_inset Text
28387
28388 \begin_layout Plain Layout
28389 longtable
28390 \end_layout
28391
28392 \end_inset
28393 </cell>
28394 <cell alignment="center" valignment="top" usebox="none">
28395 \begin_inset Text
28396
28397 \begin_layout Plain Layout
28398 nomencl
28399 \end_layout
28400
28401 \end_inset
28402 </cell>
28403 <cell alignment="center" valignment="top" usebox="none">
28404 \begin_inset Text
28405
28406 \begin_layout Plain Layout
28407 rsphrase
28408 \end_layout
28409
28410 \end_inset
28411 </cell>
28412 <cell alignment="center" valignment="top" usebox="none">
28413 \begin_inset Text
28414
28415 \begin_layout Plain Layout
28416 tipa
28417 \end_layout
28418
28419 \end_inset
28420 </cell>
28421 <cell alignment="center" valignment="top" usebox="none">
28422 \begin_inset Text
28423
28424 \begin_layout Plain Layout
28425 wrapfig
28426 \end_layout
28427
28428 \end_inset
28429 </cell>
28430 </row>
28431 <row>
28432 <cell alignment="left" valignment="top" usebox="none">
28433 \begin_inset Text
28434
28435 \begin_layout Plain Layout
28436 amscd
28437 \end_layout
28438
28439 \end_inset
28440 </cell>
28441 <cell alignment="left" valignment="top" usebox="none">
28442 \begin_inset Text
28443
28444 \begin_layout Plain Layout
28445 CJK
28446 \end_layout
28447
28448 \end_inset
28449 </cell>
28450 <cell alignment="left" valignment="top" usebox="none">
28451 \begin_inset Text
28452
28453 \begin_layout Plain Layout
28454 float
28455 \end_layout
28456
28457 \end_inset
28458 </cell>
28459 <cell alignment="left" valignment="top" usebox="none">
28460 \begin_inset Text
28461
28462 \begin_layout Plain Layout
28463 lyxskak
28464 \end_layout
28465
28466 \end_inset
28467 </cell>
28468 <cell alignment="center" valignment="top" usebox="none">
28469 \begin_inset Text
28470
28471 \begin_layout Plain Layout
28472 pdfcolmk
28473 \end_layout
28474
28475 \end_inset
28476 </cell>
28477 <cell alignment="center" valignment="top" usebox="none">
28478 \begin_inset Text
28479
28480 \begin_layout Plain Layout
28481 setspace
28482 \end_layout
28483
28484 \end_inset
28485 </cell>
28486 <cell alignment="center" valignment="top" usebox="none">
28487 \begin_inset Text
28488
28489 \begin_layout Plain Layout
28490 tipx
28491 \end_layout
28492
28493 \end_inset
28494 </cell>
28495 <cell alignment="center" valignment="top" usebox="none">
28496 \begin_inset Text
28497
28498 \begin_layout Plain Layout
28499 xargs
28500 \end_layout
28501
28502 \end_inset
28503 </cell>
28504 </row>
28505 <row>
28506 <cell alignment="left" valignment="top" usebox="none">
28507 \begin_inset Text
28508
28509 \begin_layout Plain Layout
28510 amsmath
28511 \end_layout
28512
28513 \end_inset
28514 </cell>
28515 <cell alignment="left" valignment="top" usebox="none">
28516 \begin_inset Text
28517
28518 \begin_layout Plain Layout
28519 color
28520 \end_layout
28521
28522 \end_inset
28523 </cell>
28524 <cell alignment="left" valignment="top" usebox="none">
28525 \begin_inset Text
28526
28527 \begin_layout Plain Layout
28528 framed
28529 \end_layout
28530
28531 \end_inset
28532 </cell>
28533 <cell alignment="left" valignment="top" usebox="none">
28534 \begin_inset Text
28535
28536 \begin_layout Plain Layout
28537 makeidx
28538 \end_layout
28539
28540 \end_inset
28541 </cell>
28542 <cell alignment="center" valignment="top" usebox="none">
28543 \begin_inset Text
28544
28545 \begin_layout Plain Layout
28546 pdfpages
28547 \end_layout
28548
28549 \end_inset
28550 </cell>
28551 <cell alignment="center" valignment="top" usebox="none">
28552 \begin_inset Text
28553
28554 \begin_layout Plain Layout
28555 shapepar
28556 \end_layout
28557
28558 \end_inset
28559 </cell>
28560 <cell alignment="center" valignment="top" usebox="none">
28561 \begin_inset Text
28562
28563 \begin_layout Plain Layout
28564 tone
28565 \end_layout
28566
28567 \end_inset
28568 </cell>
28569 <cell alignment="center" valignment="top" usebox="none">
28570 \begin_inset Text
28571
28572 \begin_layout Plain Layout
28573 xcolor
28574 \end_layout
28575
28576 \end_inset
28577 </cell>
28578 </row>
28579 <row>
28580 <cell alignment="left" valignment="top" usebox="none">
28581 \begin_inset Text
28582
28583 \begin_layout Plain Layout
28584 amssymb
28585 \end_layout
28586
28587 \end_inset
28588 </cell>
28589 <cell alignment="left" valignment="top" usebox="none">
28590 \begin_inset Text
28591
28592 \begin_layout Plain Layout
28593 covington
28594 \end_layout
28595
28596 \end_inset
28597 </cell>
28598 <cell alignment="left" valignment="top" usebox="none">
28599 \begin_inset Text
28600
28601 \begin_layout Plain Layout
28602 graphicx
28603 \end_layout
28604
28605 \end_inset
28606 </cell>
28607 <cell alignment="left" valignment="top" usebox="none">
28608 \begin_inset Text
28609
28610 \begin_layout Plain Layout
28611 marvosym
28612 \end_layout
28613
28614 \end_inset
28615 </cell>
28616 <cell alignment="center" valignment="top" usebox="none">
28617 \begin_inset Text
28618
28619 \begin_layout Plain Layout
28620 pifont
28621 \end_layout
28622
28623 \end_inset
28624 </cell>
28625 <cell alignment="center" valignment="top" usebox="none">
28626 \begin_inset Text
28627
28628 \begin_layout Plain Layout
28629 slashed
28630 \end_layout
28631
28632 \end_inset
28633 </cell>
28634 <cell alignment="center" valignment="top" usebox="none">
28635 \begin_inset Text
28636
28637 \begin_layout Plain Layout
28638 txfonts
28639 \end_layout
28640
28641 \end_inset
28642 </cell>
28643 <cell alignment="center" valignment="top" usebox="none">
28644 \begin_inset Text
28645
28646 \begin_layout Plain Layout
28647 xy
28648 \end_layout
28649
28650 \end_inset
28651 </cell>
28652 </row>
28653 <row>
28654 <cell alignment="left" valignment="top" usebox="none">
28655 \begin_inset Text
28656
28657 \begin_layout Plain Layout
28658 amstext
28659 \end_layout
28660
28661 \end_inset
28662 </cell>
28663 <cell alignment="left" valignment="top" usebox="none">
28664 \begin_inset Text
28665
28666 \begin_layout Plain Layout
28667 csquotes
28668 \end_layout
28669
28670 \end_inset
28671 </cell>
28672 <cell alignment="left" valignment="top" usebox="none">
28673 \begin_inset Text
28674
28675 \begin_layout Plain Layout
28676 hhline
28677 \end_layout
28678
28679 \end_inset
28680 </cell>
28681 <cell alignment="left" valignment="top" usebox="none">
28682 \begin_inset Text
28683
28684 \begin_layout Plain Layout
28685 mathdesign
28686 \end_layout
28687
28688 \end_inset
28689 </cell>
28690 <cell alignment="center" valignment="top" usebox="none">
28691 \begin_inset Text
28692
28693 \begin_layout Plain Layout
28694 pmboxdraw
28695 \end_layout
28696
28697 \end_inset
28698 </cell>
28699 <cell alignment="center" valignment="top" usebox="none">
28700 \begin_inset Text
28701
28702 \begin_layout Plain Layout
28703 soul
28704 \end_layout
28705
28706 \end_inset
28707 </cell>
28708 <cell alignment="center" valignment="top" usebox="none">
28709 \begin_inset Text
28710
28711 \begin_layout Plain Layout
28712 ulem
28713 \end_layout
28714
28715 \end_inset
28716 </cell>
28717 <cell alignment="center" valignment="top" usebox="none">
28718 \begin_inset Text
28719
28720 \begin_layout Plain Layout
28721 yhmath
28722 \end_layout
28723
28724 \end_inset
28725 </cell>
28726 </row>
28727 <row>
28728 <cell alignment="left" valignment="top" usebox="none">
28729 \begin_inset Text
28730
28731 \begin_layout Plain Layout
28732 amsthm
28733 \end_layout
28734
28735 \end_inset
28736 </cell>
28737 <cell alignment="left" valignment="top" usebox="none">
28738 \begin_inset Text
28739
28740 \begin_layout Plain Layout
28741 dvipost
28742 \end_layout
28743
28744 \end_inset
28745 </cell>
28746 <cell alignment="left" valignment="top" usebox="none">
28747 \begin_inset Text
28748
28749 \begin_layout Plain Layout
28750 hyperref
28751 \end_layout
28752
28753 \end_inset
28754 </cell>
28755 <cell alignment="left" valignment="top" usebox="none">
28756 \begin_inset Text
28757
28758 \begin_layout Plain Layout
28759 mathdots
28760 \end_layout
28761
28762 \end_inset
28763 </cell>
28764 <cell alignment="center" valignment="top" usebox="none">
28765 \begin_inset Text
28766
28767 \begin_layout Plain Layout
28768 polyglossia
28769 \end_layout
28770
28771 \end_inset
28772 </cell>
28773 <cell alignment="center" valignment="top" usebox="none">
28774 \begin_inset Text
28775
28776 \begin_layout Plain Layout
28777 splitidx
28778 \end_layout
28779
28780 \end_inset
28781 </cell>
28782 <cell alignment="center" valignment="top" usebox="none">
28783 \begin_inset Text
28784
28785 \begin_layout Plain Layout
28786 undertilde
28787 \end_layout
28788
28789 \end_inset
28790 </cell>
28791 <cell alignment="center" valignment="top" usebox="none">
28792 \begin_inset Text
28793
28794 \begin_layout Plain Layout
28795
28796 \end_layout
28797
28798 \end_inset
28799 </cell>
28800 </row>
28801 <row>
28802 <cell alignment="left" valignment="top" usebox="none">
28803 \begin_inset Text
28804
28805 \begin_layout Plain Layout
28806 array
28807 \end_layout
28808
28809 \end_inset
28810 </cell>
28811 <cell alignment="left" valignment="top" usebox="none">
28812 \begin_inset Text
28813
28814 \begin_layout Plain Layout
28815 endnotes
28816 \end_layout
28817
28818 \end_inset
28819 </cell>
28820 <cell alignment="left" valignment="top" usebox="none">
28821 \begin_inset Text
28822
28823 \begin_layout Plain Layout
28824 ifsym
28825 \end_layout
28826
28827 \end_inset
28828 </cell>
28829 <cell alignment="left" valignment="top" usebox="none">
28830 \begin_inset Text
28831
28832 \begin_layout Plain Layout
28833 mathrsfs
28834 \end_layout
28835
28836 \end_inset
28837 </cell>
28838 <cell alignment="center" valignment="top" usebox="none">
28839 \begin_inset Text
28840
28841 \begin_layout Plain Layout
28842 prettyref
28843 \end_layout
28844
28845 \end_inset
28846 </cell>
28847 <cell alignment="center" valignment="top" usebox="none">
28848 \begin_inset Text
28849
28850 \begin_layout Plain Layout
28851 subfig
28852 \end_layout
28853
28854 \end_inset
28855 </cell>
28856 <cell alignment="center" valignment="top" usebox="none">
28857 \begin_inset Text
28858
28859 \begin_layout Plain Layout
28860 units
28861 \end_layout
28862
28863 \end_inset
28864 </cell>
28865 <cell alignment="center" valignment="top" usebox="none">
28866 \begin_inset Text
28867
28868 \begin_layout Plain Layout
28869
28870 \end_layout
28871
28872 \end_inset
28873 </cell>
28874 </row>
28875 <row>
28876 <cell alignment="left" valignment="top" usebox="none">
28877 \begin_inset Text
28878
28879 \begin_layout Plain Layout
28880 ascii
28881 \end_layout
28882
28883 \end_inset
28884 </cell>
28885 <cell alignment="left" valignment="top" usebox="none">
28886 \begin_inset Text
28887
28888 \begin_layout Plain Layout
28889 enumitem
28890 \end_layout
28891
28892 \end_inset
28893 </cell>
28894 <cell alignment="left" valignment="top" usebox="none">
28895 \begin_inset Text
28896
28897 \begin_layout Plain Layout
28898 ifthen
28899 \end_layout
28900
28901 \end_inset
28902 </cell>
28903 <cell alignment="left" valignment="top" usebox="none">
28904 \begin_inset Text
28905
28906 \begin_layout Plain Layout
28907 mhchem
28908 \end_layout
28909
28910 \end_inset
28911 </cell>
28912 <cell alignment="center" valignment="top" usebox="none">
28913 \begin_inset Text
28914
28915 \begin_layout Plain Layout
28916 pxfonts
28917 \end_layout
28918
28919 \end_inset
28920 </cell>
28921 <cell alignment="center" valignment="top" usebox="none">
28922 \begin_inset Text
28923
28924 \begin_layout Plain Layout
28925 subscript
28926 \end_layout
28927
28928 \end_inset
28929 </cell>
28930 <cell alignment="center" valignment="top" usebox="none">
28931 \begin_inset Text
28932
28933 \begin_layout Plain Layout
28934 url
28935 \end_layout
28936
28937 \end_inset
28938 </cell>
28939 <cell alignment="center" valignment="top" usebox="none">
28940 \begin_inset Text
28941
28942 \begin_layout Plain Layout
28943
28944 \end_layout
28945
28946 \end_inset
28947 </cell>
28948 </row>
28949 <row>
28950 <cell alignment="left" valignment="top" usebox="none">
28951 \begin_inset Text
28952
28953 \begin_layout Plain Layout
28954 bbding
28955 \end_layout
28956
28957 \end_inset
28958 </cell>
28959 <cell alignment="left" valignment="top" usebox="none">
28960 \begin_inset Text
28961
28962 \begin_layout Plain Layout
28963 esint
28964 \end_layout
28965
28966 \end_inset
28967 </cell>
28968 <cell alignment="left" valignment="top" usebox="none">
28969 \begin_inset Text
28970
28971 \begin_layout Plain Layout
28972 jurabib
28973 \end_layout
28974
28975 \end_inset
28976 </cell>
28977 <cell alignment="left" valignment="top" usebox="none">
28978 \begin_inset Text
28979
28980 \begin_layout Plain Layout
28981 multicol
28982 \end_layout
28983
28984 \end_inset
28985 </cell>
28986 <cell alignment="center" valignment="top" usebox="none">
28987 \begin_inset Text
28988
28989 \begin_layout Plain Layout
28990 refstyle
28991 \end_layout
28992
28993 \end_inset
28994 </cell>
28995 <cell alignment="center" valignment="top" usebox="none">
28996 \begin_inset Text
28997
28998 \begin_layout Plain Layout
28999 textcomp
29000 \end_layout
29001
29002 \end_inset
29003 </cell>
29004 <cell alignment="center" valignment="top" usebox="none">
29005 \begin_inset Text
29006
29007 \begin_layout Plain Layout
29008 varioref
29009 \end_layout
29010
29011 \end_inset
29012 </cell>
29013 <cell alignment="center" valignment="top" usebox="none">
29014 \begin_inset Text
29015
29016 \begin_layout Plain Layout
29017
29018 \end_layout
29019
29020 \end_inset
29021 </cell>
29022 </row>
29023 <row>
29024 <cell alignment="center" valignment="top" usebox="none">
29025 \begin_inset Text
29026
29027 \begin_layout Plain Layout
29028 bm
29029 \end_layout
29030
29031 \end_inset
29032 </cell>
29033 <cell alignment="center" valignment="top" usebox="none">
29034 \begin_inset Text
29035
29036 \begin_layout Plain Layout
29037 fancybox
29038 \end_layout
29039
29040 \end_inset
29041 </cell>
29042 <cell alignment="center" valignment="top" usebox="none">
29043 \begin_inset Text
29044
29045 \begin_layout Plain Layout
29046 latexsym
29047 \end_layout
29048
29049 \end_inset
29050 </cell>
29051 <cell alignment="center" valignment="top" usebox="none">
29052 \begin_inset Text
29053
29054 \begin_layout Plain Layout
29055 multirow
29056 \end_layout
29057
29058 \end_inset
29059 </cell>
29060 <cell alignment="center" valignment="top" usebox="none">
29061 \begin_inset Text
29062
29063 \begin_layout Plain Layout
29064 rotating
29065 \end_layout
29066
29067 \end_inset
29068 </cell>
29069 <cell alignment="center" valignment="top" usebox="none">
29070 \begin_inset Text
29071
29072 \begin_layout Plain Layout
29073 textgreek
29074 \end_layout
29075
29076 \end_inset
29077 </cell>
29078 <cell alignment="center" valignment="top" usebox="none">
29079 \begin_inset Text
29080
29081 \begin_layout Plain Layout
29082 verbatim
29083 \end_layout
29084
29085 \end_inset
29086 </cell>
29087 <cell alignment="center" valignment="top" usebox="none">
29088 \begin_inset Text
29089
29090 \begin_layout Plain Layout
29091
29092 \end_layout
29093
29094 \end_inset
29095 </cell>
29096 </row>
29097 </lyxtabular>
29098
29099 \end_inset
29100
29101
29102 \end_layout
29103
29104 \begin_layout Chapter
29105 Names of available colors to be used in layouts
29106 \begin_inset CommandInset label
29107 LatexCommand label
29108 name "chap:Names-of-colors"
29109
29110 \end_inset
29111
29112
29113 \end_layout
29114
29115 \begin_layout Standard
29116 The colors listed below are the standard colors and those that you can adjust
29117  in the \SpecialChar LyX
29118  preferences.
29119 \end_layout
29120
29121 \begin_layout Section
29122 Color functions
29123 \end_layout
29124
29125 \begin_layout Standard
29126 The following are no real colors, but rather act on color definitions:
29127 \end_layout
29128
29129 \begin_layout Description
29130 ignore The color is ignored
29131 \end_layout
29132
29133 \begin_layout Description
29134 inherit The color is inherited
29135 \end_layout
29136
29137 \begin_layout Description
29138 none
29139 \family roman
29140 \series medium
29141 \shape up
29142 \size normal
29143 \emph off
29144 \bar no
29145 \strikeout off
29146 \uuline off
29147 \uwave off
29148 \noun off
29149 \color none
29150  No particular color – clear or default
29151 \end_layout
29152
29153 \begin_layout Section
29154 Static colors
29155 \end_layout
29156
29157 \begin_layout Standard
29158 These are fixed colors that cannot me customized:
29159 \end_layout
29160
29161 \begin_layout Description
29162 black
29163 \end_layout
29164
29165 \begin_layout Description
29166 white
29167 \end_layout
29168
29169 \begin_layout Description
29170 blue
29171 \end_layout
29172
29173 \begin_layout Description
29174 brown
29175 \end_layout
29176
29177 \begin_layout Description
29178 cyan
29179 \end_layout
29180
29181 \begin_layout Description
29182 darkgray
29183 \end_layout
29184
29185 \begin_layout Description
29186 gray
29187 \end_layout
29188
29189 \begin_layout Description
29190 green
29191 \end_layout
29192
29193 \begin_layout Description
29194 lightgray
29195 \end_layout
29196
29197 \begin_layout Description
29198 lime
29199 \end_layout
29200
29201 \begin_layout Description
29202 magenta
29203 \end_layout
29204
29205 \begin_layout Description
29206 olive
29207 \end_layout
29208
29209 \begin_layout Description
29210 orange
29211 \end_layout
29212
29213 \begin_layout Description
29214 pink
29215 \end_layout
29216
29217 \begin_layout Description
29218 purple
29219 \end_layout
29220
29221 \begin_layout Description
29222 red
29223 \end_layout
29224
29225 \begin_layout Description
29226 teal
29227 \end_layout
29228
29229 \begin_layout Description
29230 violet
29231 \end_layout
29232
29233 \begin_layout Description
29234 yellow
29235 \end_layout
29236
29237 \begin_layout Section
29238 Dynamic colors
29239 \end_layout
29240
29241 \begin_layout Standard
29242 These are the colors allocated to specific elements in 
29243 \begin_inset Info
29244 type  "menu"
29245 arg   "dialog-show prefs"
29246 \end_inset
29247
29248 :
29249 \end_layout
29250
29251 \begin_layout Description
29252 added_space Added space color
29253 \end_layout
29254
29255 \begin_layout Description
29256 addedtext Added text color
29257 \end_layout
29258
29259 \begin_layout Description
29260 appendix Appendix marker color
29261 \end_layout
29262
29263 \begin_layout Description
29264 background Background color
29265 \end_layout
29266
29267 \begin_layout Description
29268 bottomarea Bottom area color
29269 \end_layout
29270
29271 \begin_layout Description
29272 branchlabel Label color for branches
29273 \end_layout
29274
29275 \begin_layout Description
29276 buttonbg Color used for button background
29277 \end_layout
29278
29279 \begin_layout Description
29280 buttonframe Color for inset button frames
29281 \end_layout
29282
29283 \begin_layout Description
29284 buttonhoverbg Color used for button background under focus
29285 \end_layout
29286
29287 \begin_layout Description
29288 changebar Changebar color
29289 \end_layout
29290
29291 \begin_layout Description
29292 changedtextauthor1 Changed text color author 1
29293 \end_layout
29294
29295 \begin_layout Description
29296 changedtextauthor2 Changed text color author 2
29297 \end_layout
29298
29299 \begin_layout Description
29300 changedtextauthor3 Changed text color author 3
29301 \end_layout
29302
29303 \begin_layout Description
29304 changedtextauthor4 Changed text color author 4
29305 \end_layout
29306
29307 \begin_layout Description
29308 changedtextauthor5 Changed text color author 5
29309 \end_layout
29310
29311 \begin_layout Description
29312 collapsible Collapsible insets text color
29313 \end_layout
29314
29315 \begin_layout Description
29316 collapsibleframe Collapsible insets framecolor
29317 \end_layout
29318
29319 \begin_layout Description
29320 command Text color for command insets
29321 \end_layout
29322
29323 \begin_layout Description
29324 commandbg Background color for command insets
29325 \end_layout
29326
29327 \begin_layout Description
29328 commandframe Frame color for command insets
29329 \end_layout
29330
29331 \begin_layout Description
29332 comment Label color for comments
29333 \end_layout
29334
29335 \begin_layout Description
29336 commentbg Background color of comments
29337 \end_layout
29338
29339 \begin_layout Description
29340 cursor Cursor color
29341 \end_layout
29342
29343 \begin_layout Description
29344 deletedtext Deleted text color
29345 \end_layout
29346
29347 \begin_layout Description
29348 deletedtextmodifier Deleted text modifying color
29349 \end_layout
29350
29351 \begin_layout Description
29352 depthbar Color for the depth bars in the margin
29353 \end_layout
29354
29355 \begin_layout Description
29356 eolmarker End of line marker color
29357 \end_layout
29358
29359 \begin_layout Description
29360 error Color of the \SpecialChar LaTeX
29361  error box
29362 \end_layout
29363
29364 \begin_layout Description
29365 footlabel Label color for footnotes
29366 \end_layout
29367
29368 \begin_layout Description
29369 foreground Foreground color
29370 \end_layout
29371
29372 \begin_layout Description
29373 graphicsbg Graphics inset background color
29374 \end_layout
29375
29376 \begin_layout Description
29377 greyedoutbg Background color of greyedout inset
29378 \end_layout
29379
29380 \begin_layout Description
29381 greyedoutlabel Label color for greyedout insets
29382 \end_layout
29383
29384 \begin_layout Description
29385 greyedouttext Color for greyedout inset text
29386 \end_layout
29387
29388 \begin_layout Description
29389 indexlabel Label color for index insets
29390 \end_layout
29391
29392 \begin_layout Description
29393 inlinecompletion Inline completion color
29394 \end_layout
29395
29396 \begin_layout Description
29397 insetbg Inset marker background color
29398 \end_layout
29399
29400 \begin_layout Description
29401 insetframe Inset marker frame color
29402 \end_layout
29403
29404 \begin_layout Description
29405 language Color for marking foreign language words
29406 \end_layout
29407
29408 \begin_layout Description
29409 latex Text color in \SpecialChar LaTeX
29410  mode
29411 \end_layout
29412
29413 \begin_layout Description
29414 listingsbg Background color of listings inset
29415 \end_layout
29416
29417 \begin_layout Description
29418 marginlabel Label color for margin notes
29419 \end_layout
29420
29421 \begin_layout Description
29422 math Math inset text color
29423 \end_layout
29424
29425 \begin_layout Description
29426 mathbg Math inset background color
29427 \end_layout
29428
29429 \begin_layout Description
29430 mathcorners Math inset frame color not under focus
29431 \end_layout
29432
29433 \begin_layout Description
29434 mathframe Math inset frame color under focus
29435 \end_layout
29436
29437 \begin_layout Description
29438 mathline Math line color
29439 \end_layout
29440
29441 \begin_layout Description
29442 mathmacrobg Macro math inset background color
29443 \end_layout
29444
29445 \begin_layout Description
29446 mathmacroblend Macro math blended color
29447 \end_layout
29448
29449 \begin_layout Description
29450 mathmacroframe Macro math frame color
29451 \end_layout
29452
29453 \begin_layout Description
29454 mathmacrohoverbg Macro math inset background color hovered
29455 \end_layout
29456
29457 \begin_layout Description
29458 mathmacrolabel Macro math label color
29459 \end_layout
29460
29461 \begin_layout Description
29462 mathmacronewarg Macro template color for new parameters
29463 \end_layout
29464
29465 \begin_layout Description
29466 mathmacrooldarg Macro template color for old parameters
29467 \end_layout
29468
29469 \begin_layout Description
29470 newpage New page color
29471 \end_layout
29472
29473 \begin_layout Description
29474 nonunique_inlinecompletion Inline completion color for the non-unique part
29475 \end_layout
29476
29477 \begin_layout Description
29478 note Label color for notes
29479 \end_layout
29480
29481 \begin_layout Description
29482 notebg Background color of notes
29483 \end_layout
29484
29485 \begin_layout Description
29486 pagebreak Page break/line break color
29487 \end_layout
29488
29489 \begin_layout Description
29490 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29491 \end_layout
29492
29493 \begin_layout Description
29494 phantomtext Text color for phantom insets
29495 \end_layout
29496
29497 \begin_layout Description
29498 preview The color used for previews
29499 \end_layout
29500
29501 \begin_layout Description
29502 previewframe Preview frame color
29503 \end_layout
29504
29505 \begin_layout Description
29506 regexpframe Color for regexp frame
29507 \end_layout
29508
29509 \begin_layout Description
29510 scroll Color that indicates when a row can be scrolled 
29511 \end_layout
29512
29513 \begin_layout Description
29514 selection Background color of selected text
29515 \end_layout
29516
29517 \begin_layout Description
29518 selectiontext Foreground color of selected text
29519 \end_layout
29520
29521 \begin_layout Description
29522 shadedbg Background color of shaded box
29523 \end_layout
29524
29525 \begin_layout Description
29526 special Special chars text color
29527 \end_layout
29528
29529 \begin_layout Description
29530 tabularline Table line color
29531 \end_layout
29532
29533 \begin_layout Description
29534 tabularonoffline Table line color
29535 \end_layout
29536
29537 \begin_layout Description
29538 urllabel Label color for URL insets
29539 \end_layout
29540
29541 \begin_layout Description
29542 urltext Color for URL inset text
29543 \end_layout
29544
29545 \end_body
29546 \end_document