]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
tabular-style-insert: add rows also for 1x and 2x tables
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 571
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tablestyle default
128 \tracking_changes true
129 \output_changes false
130 \html_math_output 0
131 \html_css_as_file 0
132 \html_be_strict true
133 \author -712698321 "Jürgen Spitzmüller"
134 \author -495245474 "Jean-Marc Lasgouttes"
135 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
136 \end_header
137
138 \begin_body
139
140 \begin_layout Title
141 Customizing \SpecialChar LyX
142 : Features for the Advanced User
143 \end_layout
144
145 \begin_layout Author
146 by the \SpecialChar LyX
147  Team
148 \begin_inset Foot
149 status collapsed
150
151 \begin_layout Plain Layout
152 \noindent
153 If you have comments or error corrections, please send them to the \SpecialChar LyX
154  Documentatio
155 n mailing list, 
156 \begin_inset CommandInset href
157 LatexCommand href
158 target "lyx-docs@lists.lyx.org"
159 type "mailto:"
160 literal "false"
161
162 \end_inset
163
164 .
165  Include 
166 \begin_inset Quotes eld
167 \end_inset
168
169 [Customization]
170 \begin_inset Quotes erd
171 \end_inset
172
173  in the subject header, and please cc the current maintainer of this file,
174  Richard Heck <rgheck@comcast.net>.
175 \end_layout
176
177 \end_inset
178
179
180 \begin_inset Newline newline
181 \end_inset
182
183
184 \begin_inset Newline newline
185 \end_inset
186
187 Version 2.3.x 
188 \end_layout
189
190 \begin_layout Standard
191 \begin_inset CommandInset toc
192 LatexCommand tableofcontents
193
194 \end_inset
195
196
197 \end_layout
198
199 \begin_layout Standard
200 \begin_inset Note Note
201 status open
202
203 \begin_layout Plain Layout
204 Please use change tracking when modifying this document.
205  This makes it easier for our translators to recognize things that have
206  been changed, and it helps the maintainer keep up-to-date with what's been
207  done.
208 \end_layout
209
210 \end_inset
211
212
213 \end_layout
214
215 \begin_layout Chapter
216 Introduction
217 \end_layout
218
219 \begin_layout Standard
220 This manual covers the customization features present in \SpecialChar LyX
221 .
222  In it, we discuss issues like keyboard shortcuts, screen previewing options,
223  printer options, sending commands to \SpecialChar LyX
224  via the \SpecialChar LyX
225  Server, internationalization,
226  installing new \SpecialChar LaTeX
227  classes and \SpecialChar LyX
228  layouts, etc.
229  We can't possibly hope to touch on everything you can change—our developers
230  add new features faster than we can document them—but we will explain the
231  most common customizations and hopefully point you in the right direction
232  for some of the more obscure ones.
233 \end_layout
234
235 \begin_layout Standard
236 \begin_inset Branch OutDated
237 inverted 0
238 status collapsed
239
240 \begin_layout Standard
241 Information from previous versions of this document that now seems to be
242  outdated is contained in the OutDated branch of this document.
243  By default, this information will not appear in the \SpecialChar LaTeX
244  output.
245 \end_layout
246
247 \end_inset
248
249
250 \end_layout
251
252 \begin_layout Chapter
253 \SpecialChar LyX
254  configuration files
255 \end_layout
256
257 \begin_layout Standard
258 This chapter aims to help you to find your way through the \SpecialChar LyX
259  configuration
260  files.
261  Before continuing to read this chapter, you should find out where your
262  \SpecialChar LyX
263  library and user directories are by using 
264 \begin_inset Flex Noun
265 status collapsed
266
267 \begin_layout Plain Layout
268 Help\SpecialChar menuseparator
269 About
270 \begin_inset space ~
271 \end_inset
272
273 LyX
274 \end_layout
275
276 \end_inset
277
278 .
279  The library directory is the place where \SpecialChar LyX
280  places its system-wide configuration
281  files; the user directory is where you can place your modified versions.
282  We will call the former 
283 \begin_inset Flex Code
284 status collapsed
285
286 \begin_layout Plain Layout
287 LyXDir
288 \end_layout
289
290 \end_inset
291
292  and the latter 
293 \begin_inset Flex Noun
294 status collapsed
295
296 \begin_layout Plain Layout
297 UserDir
298 \end_layout
299
300 \end_inset
301
302  in the remainder of this document.
303  
304 \end_layout
305
306 \begin_layout Section
307 What's in 
308 \begin_inset Flex Code
309 status collapsed
310
311 \begin_layout Plain Layout
312 LyXDir
313 \end_layout
314
315 \end_inset
316
317 ?
318 \end_layout
319
320 \begin_layout Standard
321 \begin_inset Flex Code
322 status collapsed
323
324 \begin_layout Plain Layout
325 LyXDir
326 \end_layout
327
328 \end_inset
329
330  and its sub-directories contain a number of files and that can be used
331  to customize \SpecialChar LyX
332 's behavior.
333  You can change many of these files from within \SpecialChar LyX
334  itself through the 
335 \begin_inset Flex Noun
336 status collapsed
337
338 \begin_layout Plain Layout
339 Tools\SpecialChar menuseparator
340 Preferences
341 \end_layout
342
343 \end_inset
344
345  dialog.
346  Most customization that you will want to do in \SpecialChar LyX
347  is possible through this
348  dialog.
349  However, many other inner aspects of \SpecialChar LyX
350  can be customized by modifying the
351  files in 
352 \begin_inset Flex Code
353 status collapsed
354
355 \begin_layout Plain Layout
356 LyXDir
357 \end_layout
358
359 \end_inset
360
361 .
362  These files fall in different categories, described in the following subsection
363 s.
364 \end_layout
365
366 \begin_layout Subsection
367 Automatically generated files
368 \end_layout
369
370 \begin_layout Standard
371 The files, which are to be found in 
372 \begin_inset Flex Noun
373 status collapsed
374
375 \begin_layout Plain Layout
376 UserDir
377 \end_layout
378
379 \end_inset
380
381 , are generated when you configure \SpecialChar LyX
382 .
383  They contain various default values that are guessed by inspection.
384  In general, it is not a good idea to modify them, since they might be overwritt
385 en at any time.
386 \end_layout
387
388 \begin_layout Labeling
389 \labelwidthstring 00.00.0000
390 \begin_inset Flex Code
391 status collapsed
392
393 \begin_layout Plain Layout
394 lyxrc.defaults
395 \end_layout
396
397 \end_inset
398
399  contains defaults for various commands.
400 \end_layout
401
402 \begin_layout Labeling
403 \labelwidthstring 00.00.0000
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 packages.lst
409 \end_layout
410
411 \end_inset
412
413  contains the list of packages that have been recognized by \SpecialChar LyX
414 .
415  It is currently unused by the \SpecialChar LyX
416  program itself, but the information extracted,
417  and more, is made available with 
418 \begin_inset Flex Noun
419 status collapsed
420
421 \begin_layout Plain Layout
422 Help\SpecialChar menuseparator
423 \SpecialChar LaTeX
424
425 \begin_inset space ~
426 \end_inset
427
428 Configuration
429 \end_layout
430
431 \end_inset
432
433 .
434 \end_layout
435
436 \begin_layout Labeling
437 \labelwidthstring 00.00.0000
438 \begin_inset Flex Code
439 status collapsed
440
441 \begin_layout Plain Layout
442 textclass.lst
443 \end_layout
444
445 \end_inset
446
447  the list of text classes that have been found in your 
448 \begin_inset Flex Code
449 status collapsed
450
451 \begin_layout Plain Layout
452 layout/
453 \end_layout
454
455 \end_inset
456
457  directories, along with the associated \SpecialChar LaTeX
458  document class and their description.
459 \end_layout
460
461 \begin_layout Labeling
462 \labelwidthstring 00.00.0000
463 \begin_inset Flex Code
464 status collapsed
465
466 \begin_layout Plain Layout
467 lyxmodules.lst
468 \end_layout
469
470 \end_inset
471
472  the list of layout modules found in your 
473 \begin_inset Flex Code
474 status collapsed
475
476 \begin_layout Plain Layout
477 layout/
478 \end_layout
479
480 \end_inset
481
482  directories
483 \end_layout
484
485 \begin_layout Labeling
486 \labelwidthstring 00.00.0000
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 *files.lst
492 \end_layout
493
494 \end_inset
495
496  lists of various sorts of \SpecialChar LaTeX
497 -related files found on your system
498 \end_layout
499
500 \begin_layout Labeling
501 \labelwidthstring 00.00.0000
502 \begin_inset Flex Code
503 status collapsed
504
505 \begin_layout Plain Layout
506 doc/\SpecialChar LaTeX
507 Config.lyx
508 \end_layout
509
510 \end_inset
511
512  is automatically generated during configuration from the file 
513 \begin_inset Flex Code
514 status collapsed
515
516 \begin_layout Plain Layout
517 \SpecialChar LaTeX
518 Config.lyx.in
519 \end_layout
520
521 \end_inset
522
523 .
524  It contains information on your \SpecialChar LaTeX
525  configuration.
526 \end_layout
527
528 \begin_layout Subsection
529 Directories
530 \end_layout
531
532 \begin_layout Standard
533 These directories are duplicated between 
534 \begin_inset Flex Code
535 status collapsed
536
537 \begin_layout Plain Layout
538 LyXDir
539 \end_layout
540
541 \end_inset
542
543  and 
544 \begin_inset Flex Code
545 status collapsed
546
547 \begin_layout Plain Layout
548 UserDir
549 \end_layout
550
551 \end_inset
552
553 .
554  If a particular files exists in both places, the one in 
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 UserDir
560 \end_layout
561
562 \end_inset
563
564  will be used.
565 \end_layout
566
567 \begin_layout Labeling
568 \labelwidthstring 00.00.0000
569 \begin_inset Flex Code
570 status collapsed
571
572 \begin_layout Plain Layout
573 bind/
574 \end_layout
575
576 \end_inset
577
578  this directory contains files with the extension 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 .bind
584 \end_layout
585
586 \end_inset
587
588  that define the keybindings used in \SpecialChar LyX
589 .
590  If there exists an internationalized version of the bind file named 
591 \begin_inset Flex Code
592 status collapsed
593
594 \begin_layout Plain Layout
595 $LANG_xxx.bind
596 \end_layout
597
598 \end_inset
599
600 , that will be used first.
601 \end_layout
602
603 \begin_layout Labeling
604 \labelwidthstring 00.00.0000
605 \begin_inset Flex Code
606 status collapsed
607
608 \begin_layout Plain Layout
609 citeengines/
610 \end_layout
611
612 \end_inset
613
614  contains files with the extension 
615 \begin_inset Flex Code
616 status collapsed
617
618 \begin_layout Plain Layout
619 .citeengine
620 \end_layout
621
622 \end_inset
623
624  which define the diverse citation possibilities (natbib, biblatex etc.).
625  See 
626 \begin_inset CommandInset ref
627 LatexCommand ref
628 reference "subsec:Cite-Engine-Files"
629 plural "false"
630 caps "false"
631 noprefix "false"
632
633 \end_inset
634
635  for details.
636 \end_layout
637
638 \begin_layout Labeling
639 \labelwidthstring 00.00.0000
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 clipart/
645 \end_layout
646
647 \end_inset
648
649  contains graphics files that can be included in documents.
650  
651 \end_layout
652
653 \begin_layout Labeling
654 \labelwidthstring 00.00.0000
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 doc/
660 \end_layout
661
662 \end_inset
663
664  contains \SpecialChar LyX
665  documentation files (including the one you are currently reading).
666  The file 
667 \begin_inset Flex Code
668 status collapsed
669
670 \begin_layout Plain Layout
671 \SpecialChar LaTeX
672 Config.lyx
673 \end_layout
674
675 \end_inset
676
677  deserves special attention, as noted above.
678  The internationalized help docs are in subdirectories 
679 \begin_inset Flex Code
680 status collapsed
681
682 \begin_layout Plain Layout
683 doc/xx
684 \end_layout
685
686 \end_inset
687
688  where 
689 \begin_inset Quotes eld
690 \end_inset
691
692 xx
693 \begin_inset Quotes erd
694 \end_inset
695
696  is the ISO language code.
697  See 
698 \begin_inset CommandInset ref
699 LatexCommand ref
700 reference "cha:Internationalizing-LyX"
701
702 \end_inset
703
704  for details.
705 \end_layout
706
707 \begin_layout Labeling
708 \labelwidthstring 00.00.0000
709 \begin_inset Flex Code
710 status collapsed
711
712 \begin_layout Plain Layout
713 examples/
714 \end_layout
715
716 \end_inset
717
718  contains example files that explain how to use some features.
719  In the file browser, press the 
720 \begin_inset Flex Noun
721 status collapsed
722
723 \begin_layout Plain Layout
724 Examples
725 \end_layout
726
727 \end_inset
728
729  button to get there.
730 \end_layout
731
732 \begin_layout Labeling
733 \labelwidthstring 00.00.0000
734 \begin_inset Flex Code
735 status collapsed
736
737 \begin_layout Plain Layout
738 images/
739 \end_layout
740
741 \end_inset
742
743  contains image files that are used by the 
744 \begin_inset Flex Noun
745 status collapsed
746
747 \begin_layout Plain Layout
748 Document
749 \end_layout
750
751 \end_inset
752
753  dialog.
754  In addition, it also contains the individual icons used in the toolbar
755  and the banners that can be shown when \SpecialChar LyX
756  is launched.
757 \end_layout
758
759 \begin_layout Labeling
760 \labelwidthstring 00.00.0000
761 \begin_inset Flex Code
762 status collapsed
763
764 \begin_layout Plain Layout
765 kbd/
766 \end_layout
767
768 \end_inset
769
770  contains keyboard keymapping files.
771  See 
772 \begin_inset CommandInset ref
773 LatexCommand ref
774 reference "sec:International-Keymap-Stuff"
775
776 \end_inset
777
778  for details.
779 \end_layout
780
781 \begin_layout Labeling
782 \labelwidthstring 00.00.0000
783 \begin_inset Flex Code
784 status collapsed
785
786 \begin_layout Plain Layout
787 layouts/
788 \end_layout
789
790 \end_inset
791
792  contains the text class and module files described in 
793 \begin_inset CommandInset ref
794 LatexCommand ref
795 reference "cha:Installing-New-Document"
796
797 \end_inset
798
799 .
800 \end_layout
801
802 \begin_layout Labeling
803 \labelwidthstring 00.00.0000
804 \begin_inset Flex Code
805 status collapsed
806
807 \begin_layout Plain Layout
808 lyx2lyx
809 \end_layout
810
811 \end_inset
812
813  contains the 
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818 lyx2lyx
819 \end_layout
820
821 \end_inset
822
823  Python scripts used to convert between \SpecialChar LyX
824  versions.
825  These can be run from the command line if, say, you want to batch-convert
826  files.
827 \end_layout
828
829 \begin_layout Labeling
830 \labelwidthstring 00.00.0000
831 \begin_inset Flex Code
832 status collapsed
833
834 \begin_layout Plain Layout
835 scripts/
836 \end_layout
837
838 \end_inset
839
840  contains some files that demonstrate the capabilities of the 
841 \begin_inset Flex Noun
842 status collapsed
843
844 \begin_layout Plain Layout
845 External
846 \begin_inset space ~
847 \end_inset
848
849 Template
850 \end_layout
851
852 \end_inset
853
854  feature.
855  Also contains some scripts used by \SpecialChar LyX
856  itself.
857 \end_layout
858
859 \begin_layout Labeling
860 \labelwidthstring 00.00.0000
861 \begin_inset Flex Code
862 status collapsed
863
864 \begin_layout Plain Layout
865 templates/
866 \end_layout
867
868 \end_inset
869
870  contains the standard \SpecialChar LyX
871  template files described in 
872 \begin_inset CommandInset ref
873 LatexCommand ref
874 reference "subsec:Creating-Templates"
875
876 \end_inset
877
878 .
879 \end_layout
880
881 \begin_layout Labeling
882 \labelwidthstring 00.00.0000
883 \begin_inset Flex Code
884 status collapsed
885
886 \begin_layout Plain Layout
887 ui/
888 \end_layout
889
890 \end_inset
891
892  contains files with the extension 
893 \begin_inset Flex Code
894 status collapsed
895
896 \begin_layout Plain Layout
897 .ui
898 \end_layout
899
900 \end_inset
901
902  that define the user interface to \SpecialChar LyX
903 .
904  That is, the files define which items appear in which menus and the items
905  appearing on the toolbar.
906 \end_layout
907
908 \begin_layout Labeling
909 \labelwidthstring 00.00.0000
910 \begin_inset Flex Code
911 status collapsed
912
913 \begin_layout Plain Layout
914 xtemplates/
915 \end_layout
916
917 \end_inset
918
919  contains files with the extension 
920 \begin_inset Flex Code
921 status collapsed
922
923 \begin_layout Plain Layout
924 .xtemplate
925 \end_layout
926
927 \end_inset
928
929  which define the templates for the insertion of external material to a
930  \SpecialChar LyX
931  document; see 
932 \begin_inset CommandInset ref
933 LatexCommand ref
934 reference "chap:Including-External-Material"
935
936 \end_inset
937
938 .
939 \end_layout
940
941 \begin_layout Subsection
942 Files you don't want to modify
943 \end_layout
944
945 \begin_layout Standard
946 These files are used internally by \SpecialChar LyX
947  and you generally do not need to modify
948  them unless you are a developer.
949 \end_layout
950
951 \begin_layout Labeling
952 \labelwidthstring 00.00.0000
953 \begin_inset Flex Code
954 status collapsed
955
956 \begin_layout Plain Layout
957 CREDITS
958 \end_layout
959
960 \end_inset
961
962  this file contains the list of \SpecialChar LyX
963  developers.
964  The contents are displayed with the menu entry 
965 \begin_inset Flex Noun
966 status collapsed
967
968 \begin_layout Plain Layout
969 Help\SpecialChar menuseparator
970 About
971 \begin_inset space ~
972 \end_inset
973
974 LyX
975 \end_layout
976
977 \end_inset
978
979 .
980 \end_layout
981
982 \begin_layout Labeling
983 \labelwidthstring 00.00.0000
984 \begin_inset Flex Code
985 status collapsed
986
987 \begin_layout Plain Layout
988 chkconfig.ltx
989 \end_layout
990
991 \end_inset
992
993  this is a \SpecialChar LaTeX
994  script used during the configuration process.
995  Do not run directly.
996 \end_layout
997
998 \begin_layout Labeling
999 \labelwidthstring 00.00.0000
1000 \begin_inset Flex Code
1001 status collapsed
1002
1003 \begin_layout Plain Layout
1004 configure.py
1005 \end_layout
1006
1007 \end_inset
1008
1009  this is a Python script that is used to re-configure \SpecialChar LyX
1010 .
1011  It creates configuration files in the directory it was run from.
1012 \end_layout
1013
1014 \begin_layout Subsection
1015 Other files needing a line or two
1016 \end_layout
1017
1018 \begin_layout Labeling
1019 \labelwidthstring 00.00.0000
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024 encodings
1025 \end_layout
1026
1027 \end_inset
1028
1029  this contains tables describing how different character encodings can be
1030  mapped to Unicode
1031 \end_layout
1032
1033 \begin_layout Labeling
1034 \labelwidthstring 00.00.0000
1035 \begin_inset Flex Code
1036 status collapsed
1037
1038 \begin_layout Plain Layout
1039 languages
1040 \end_layout
1041
1042 \end_inset
1043
1044  this file contains a list of all the languages currently supported by \SpecialChar LyX
1045 .
1046 \end_layout
1047
1048 \begin_layout Labeling
1049 \labelwidthstring 00.00.0000
1050 \begin_inset Flex Code
1051 status collapsed
1052
1053 \begin_layout Plain Layout
1054 latexfonts
1055 \end_layout
1056
1057 \end_inset
1058
1059  contains information about the supported fonts.
1060 \end_layout
1061
1062 \begin_layout Labeling
1063 \labelwidthstring 00.00.0000
1064 \begin_inset Flex Code
1065 status collapsed
1066
1067 \begin_layout Plain Layout
1068 layouttranslations
1069 \end_layout
1070
1071 \end_inset
1072
1073  this file contains translations for internationalized paragraph styles
1074  (see 
1075 \begin_inset CommandInset ref
1076 LatexCommand ref
1077 reference "subsec:I18n"
1078
1079 \end_inset
1080
1081 ).
1082 \end_layout
1083
1084 \begin_layout Labeling
1085 \labelwidthstring 00.00.0000
1086 \begin_inset Flex Code
1087 status collapsed
1088
1089 \begin_layout Plain Layout
1090 unicodesymbols
1091 \end_layout
1092
1093 \end_inset
1094
1095  this file contains information about Unicode-encoded glyphs and the way
1096  they are supported by \SpecialChar LyX
1097  via \SpecialChar LaTeX
1098 .
1099 \end_layout
1100
1101 \begin_layout Section
1102 Your local configuration directory
1103 \end_layout
1104
1105 \begin_layout Standard
1106 Even if you are using \SpecialChar LyX
1107  as an unprivileged user, you might want to change
1108  \SpecialChar LyX
1109  configuration for your own use.
1110  The 
1111 \begin_inset Flex Code
1112 status collapsed
1113
1114 \begin_layout Plain Layout
1115 UserDir
1116 \end_layout
1117
1118 \end_inset
1119
1120  directory contains all your personal configuration files.
1121  This is the directory described as 
1122 \begin_inset Quotes eld
1123 \end_inset
1124
1125 user directory
1126 \begin_inset Quotes erd
1127 \end_inset
1128
1129  in 
1130 \begin_inset Flex Noun
1131 status collapsed
1132
1133 \begin_layout Plain Layout
1134 Help\SpecialChar menuseparator
1135 About
1136 \begin_inset space ~
1137 \end_inset
1138
1139 LyX
1140 \end_layout
1141
1142 \end_inset
1143
1144 .
1145  This directory is used as a mirror of 
1146 \begin_inset Flex Code
1147 status collapsed
1148
1149 \begin_layout Plain Layout
1150 LyXDir
1151 \end_layout
1152
1153 \end_inset
1154
1155 , which means that every file in 
1156 \begin_inset Flex Code
1157 status collapsed
1158
1159 \begin_layout Plain Layout
1160 UserDir
1161 \end_layout
1162
1163 \end_inset
1164
1165  is a replacement for the corresponding file in 
1166 \begin_inset Flex Code
1167 status collapsed
1168
1169 \begin_layout Plain Layout
1170 LyXDir
1171 \end_layout
1172
1173 \end_inset
1174
1175 .
1176  Any configuration file described in the above sections can be placed either
1177  in the system-wide directory, in which case it will affect all users, or
1178  in your local directory for your own use.
1179 \end_layout
1180
1181 \begin_layout Standard
1182 To make things clearer, let's provide a few examples:
1183 \end_layout
1184
1185 \begin_layout Itemize
1186 The preferences set in the 
1187 \begin_inset Flex Noun
1188 status collapsed
1189
1190 \begin_layout Plain Layout
1191 Tools\SpecialChar menuseparator
1192 Preferences
1193 \end_layout
1194
1195 \end_inset
1196
1197  dialog are saved to a file 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202 preferences
1203 \end_layout
1204
1205 \end_inset
1206
1207  in 
1208 \begin_inset Flex Code
1209 status collapsed
1210
1211 \begin_layout Plain Layout
1212 UserDir
1213 \end_layout
1214
1215 \end_inset
1216
1217 .
1218 \end_layout
1219
1220 \begin_layout Itemize
1221 When you reconfigure using 
1222 \begin_inset Flex Noun
1223 status collapsed
1224
1225 \begin_layout Plain Layout
1226 Tools\SpecialChar menuseparator
1227 Reconfigure
1228 \end_layout
1229
1230 \end_inset
1231
1232 , \SpecialChar LyX
1233  runs the 
1234 \begin_inset Flex Code
1235 status collapsed
1236
1237 \begin_layout Plain Layout
1238 configure.py
1239 \end_layout
1240
1241 \end_inset
1242
1243  script, and the resulting files are written in your local configuration
1244  directory.
1245  This means that any additional text class file that you might have added
1246  in 
1247 \begin_inset Flex Code
1248 status collapsed
1249
1250 \begin_layout Plain Layout
1251 UserDir/layouts
1252 \end_layout
1253
1254 \end_inset
1255
1256  will be added to the list of classes in the 
1257 \begin_inset Flex Noun
1258 status collapsed
1259
1260 \begin_layout Plain Layout
1261 Document\SpecialChar menuseparator
1262 Settings
1263 \end_layout
1264
1265 \end_inset
1266
1267  dialog.
1268 \end_layout
1269
1270 \begin_layout Itemize
1271 If you get some updated documentation from \SpecialChar LyX
1272  ftp site and cannot install
1273  it because you do not have sysadmin rights on your system, you can just
1274  copy the files in 
1275 \begin_inset Flex Code
1276 status collapsed
1277
1278 \begin_layout Plain Layout
1279 UserDir/doc/
1280 \end_layout
1281
1282 \end_inset
1283
1284  and the items in the 
1285 \begin_inset Flex Noun
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 Help
1290 \end_layout
1291
1292 \end_inset
1293
1294  menu will open them!
1295 \end_layout
1296
1297 \begin_layout Section
1298 Running \SpecialChar LyX
1299  with multiple configurations
1300 \end_layout
1301
1302 \begin_layout Standard
1303 The configuration freedom of the local configuration directory may not suffice
1304  if you want to have more than one configuration at your disposal.
1305  For example, you may want to be use different key bindings or printer settings
1306  at different times.
1307  You can achieve this by having several such directories.
1308  You then specify which directory to use at run-time.
1309 \end_layout
1310
1311 \begin_layout Standard
1312 Invoking \SpecialChar LyX
1313  with the command line switch 
1314 \begin_inset Flex Code
1315 status collapsed
1316
1317 \begin_layout Plain Layout
1318 -userdir
1319 \end_layout
1320
1321 \end_inset
1322
1323  
1324 \emph on
1325 <some directory>
1326 \emph default
1327  instructs the program to read the configuration from that directory, and
1328  not from the default directory.
1329  (You can determine the default directory by running \SpecialChar LyX
1330  without the 
1331 \begin_inset Flex Code
1332 status collapsed
1333
1334 \begin_layout Plain Layout
1335 -userdir
1336 \end_layout
1337
1338 \end_inset
1339
1340  switch.) If the specified directory does not exist, \SpecialChar LyX
1341  offers to create it
1342  for you, just like it does for the default directory on the first time
1343  you run the program.
1344  You can modify the configuration options in this additional user directory
1345  exactly as you would for the default directory.
1346  These directories are completely independent (but read on).
1347  Note that setting the environment variable 
1348 \begin_inset Flex Code
1349 status collapsed
1350
1351 \begin_layout Plain Layout
1352 LYX_USERDIR_VER
1353 \end_layout
1354
1355 \end_inset
1356
1357  to some value has exactly the same effect.
1358 \end_layout
1359
1360 \begin_layout Standard
1361 Having several configurations also requires more maintenance: if you want
1362  to add a new layout to 
1363 \begin_inset Flex Code
1364 status collapsed
1365
1366 \begin_layout Plain Layout
1367 NewUserDir/layouts
1368 \end_layout
1369
1370 \end_inset
1371
1372  which you want available from all your configurations, you must add it
1373  to each directory separately.
1374  You can avoid this with the following trick: after \SpecialChar LyX
1375  creates the additional
1376  directory, most of the subdirectories (see above) are empty.
1377  If you want the new configuration to mirror an existing one, replace the
1378  empty subdirectory with a symbolic link to the matching subdirectory in
1379  the existing configuration.
1380  Take care with the 
1381 \begin_inset Flex Code
1382 status collapsed
1383
1384 \begin_layout Plain Layout
1385 doc/
1386 \end_layout
1387
1388 \end_inset
1389
1390  subdirectory, however, since it contains a file written by the configuration
1391  script (also accessible through 
1392 \begin_inset Flex Noun
1393 status collapsed
1394
1395 \begin_layout Plain Layout
1396 Tools\SpecialChar menuseparator
1397 Reconfigure
1398 \end_layout
1399
1400 \end_inset
1401
1402 ) which is configuration-specific.
1403 \end_layout
1404
1405 \begin_layout Chapter
1406 The Preferences dialog
1407 \end_layout
1408
1409 \begin_layout Standard
1410 All options of the preferences dialog are described in the Appendix 
1411 \emph on
1412 The Preferences Dialog
1413 \emph default
1414  in the 
1415 \emph on
1416 User's Guide
1417 \emph default
1418 .
1419  For some options you might find here more details.
1420 \end_layout
1421
1422 \begin_layout Section
1423 Formats
1424 \begin_inset CommandInset label
1425 LatexCommand label
1426 name "sec:Formats"
1427
1428 \end_inset
1429
1430
1431 \end_layout
1432
1433 \begin_layout Standard
1434 The first step is to define your file formats if they are not already defined.
1435  To do so, open the 
1436 \begin_inset Flex Noun
1437 status collapsed
1438
1439 \begin_layout Plain Layout
1440 Tools\SpecialChar menuseparator
1441 Preferences
1442 \end_layout
1443
1444 \end_inset
1445
1446  dialog.
1447  Under 
1448 \begin_inset Flex Noun
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 File Handling\SpecialChar menuseparator
1453 File formats
1454 \end_layout
1455
1456 \end_inset
1457
1458  press the 
1459 \begin_inset Flex Noun
1460 status collapsed
1461
1462 \begin_layout Plain Layout
1463 New
1464 \end_layout
1465
1466 \end_inset
1467
1468  button to define your new format.
1469  The 
1470 \begin_inset Flex Noun
1471 status collapsed
1472
1473 \begin_layout Plain Layout
1474 Format
1475 \end_layout
1476
1477 \end_inset
1478
1479  field contains the name used to identify the format in the GUI.
1480  The 
1481 \begin_inset Flex Noun
1482 status collapsed
1483
1484 \begin_layout Plain Layout
1485 Short Name
1486 \end_layout
1487
1488 \end_inset
1489
1490  is used to identify the format internally.
1491  You will also need to enter a file extension.
1492  These are all required.
1493  The optional 
1494 \begin_inset Flex Noun
1495 status collapsed
1496
1497 \begin_layout Plain Layout
1498 Shortcut
1499 \end_layout
1500
1501 \end_inset
1502
1503  field is used to provide a keyboard shortcut on the menus.
1504  (For example, pressing 
1505 \begin_inset Flex Noun
1506 status collapsed
1507
1508 \begin_layout Plain Layout
1509 Ctrl+D
1510 \end_layout
1511
1512 \end_inset
1513
1514  will 
1515 \begin_inset Flex Noun
1516 status collapsed
1517
1518 \begin_layout Plain Layout
1519 Document\SpecialChar menuseparator
1520 View (Other Formats)\SpecialChar menuseparator
1521 DVI
1522 \end_layout
1523
1524 \end_inset
1525
1526 .) 
1527 \end_layout
1528
1529 \begin_layout Standard
1530 A Format can have a 
1531 \begin_inset Flex Noun
1532 status collapsed
1533
1534 \begin_layout Plain Layout
1535 Viewer
1536 \end_layout
1537
1538 \end_inset
1539
1540  and an 
1541 \begin_inset Flex Noun
1542 status collapsed
1543
1544 \begin_layout Plain Layout
1545 Editor
1546 \end_layout
1547
1548 \end_inset
1549
1550  associated with it.
1551  For example, you might want to use 
1552 \begin_inset Flex Noun
1553 status collapsed
1554
1555 \begin_layout Plain Layout
1556 Ghostview
1557 \end_layout
1558
1559 \end_inset
1560
1561  to view PostScript files.
1562  You can enter the command needed to start the program in the corresponding
1563  fields.
1564  In defining this command, you can use the four variables listed in the
1565  next section.
1566  The viewer is launched when you view an image in \SpecialChar LyX
1567  or use the 
1568 \begin_inset Flex Noun
1569 status collapsed
1570
1571 \begin_layout Plain Layout
1572 Document\SpecialChar menuseparator
1573 View
1574 \end_layout
1575
1576 \end_inset
1577
1578  menu.
1579  The editor is for example launched when you right-click on an image and
1580  choose 
1581 \begin_inset Flex Noun
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 Edit externally
1586 \end_layout
1587
1588 \end_inset
1589
1590  in the appearing context menu.
1591 \end_layout
1592
1593 \begin_layout Standard
1594 The 
1595 \begin_inset Flex Noun
1596 status collapsed
1597
1598 \begin_layout Plain Layout
1599 MIME
1600 \end_layout
1601
1602 \end_inset
1603
1604  type of a format is optional, but if it is specified, it must be unique
1605  across all formats.
1606  It is used to detect files of this format from the file contents.
1607  For some important file formats there is no MIME type officially registered
1608  with the 
1609 \begin_inset CommandInset href
1610 LatexCommand href
1611 name "IANA"
1612 target "http://www.iana.org/assignments/media-types/"
1613 literal "false"
1614
1615 \end_inset
1616
1617 .
1618  Therefore \SpecialChar LyX
1619  uses the extended list of MIME types as specified by 
1620 \begin_inset CommandInset href
1621 LatexCommand href
1622 name "freedesktop.org"
1623 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1624 literal "false"
1625
1626 \end_inset
1627
1628 .
1629 \end_layout
1630
1631 \begin_layout Standard
1632 The 
1633 \begin_inset Flex Noun
1634 status collapsed
1635
1636 \begin_layout Plain Layout
1637 Document format
1638 \end_layout
1639
1640 \end_inset
1641
1642  option tells \SpecialChar LyX
1643  that a format is suitable for document export.
1644  If this is set and if a suitable conversion route exists (see 
1645 \begin_inset CommandInset ref
1646 LatexCommand ref
1647 reference "sec:Converters"
1648
1649 \end_inset
1650
1651 ), the format will appear in the 
1652 \begin_inset Flex Noun
1653 status collapsed
1654
1655 \begin_layout Plain Layout
1656 File\SpecialChar menuseparator
1657 Export
1658 \end_layout
1659
1660 \end_inset
1661
1662  menu.
1663  The format will also appear in the 
1664 \begin_inset Flex Noun
1665 status collapsed
1666
1667 \begin_layout Plain Layout
1668 Document\SpecialChar menuseparator
1669 View
1670 \end_layout
1671
1672 \end_inset
1673
1674  menu if a viewer is specified for the format.
1675  Pure image formats, such as 
1676 \begin_inset Flex Code
1677 status collapsed
1678
1679 \begin_layout Plain Layout
1680 png
1681 \end_layout
1682
1683 \end_inset
1684
1685 , should not use this option.
1686  Formats that can both represent vector graphics and documents like 
1687 \begin_inset Flex Code
1688 status collapsed
1689
1690 \begin_layout Plain Layout
1691 pdf
1692 \end_layout
1693
1694 \end_inset
1695
1696  should use it.
1697 \end_layout
1698
1699 \begin_layout Standard
1700 The option 
1701 \begin_inset Flex Noun
1702 status collapsed
1703
1704 \begin_layout Plain Layout
1705 Vector graphics format
1706 \end_layout
1707
1708 \end_inset
1709
1710  tells \SpecialChar LyX
1711  that a format can contain vector graphics.
1712  This information is used to determine the target format of included graphics
1713  for 
1714 \begin_inset Flex Noun
1715 status collapsed
1716
1717 \begin_layout Plain Layout
1718 pdflatex
1719 \end_layout
1720
1721 \end_inset
1722
1723  export.
1724  Included graphics may need to be converted to either 
1725 \begin_inset Flex Noun
1726 status collapsed
1727
1728 \begin_layout Plain Layout
1729 pdf
1730 \end_layout
1731
1732 \end_inset
1733
1734
1735 \begin_inset Flex Noun
1736 status collapsed
1737
1738 \begin_layout Plain Layout
1739 png
1740 \end_layout
1741
1742 \end_inset
1743
1744 , or 
1745 \begin_inset Flex Noun
1746 status collapsed
1747
1748 \begin_layout Plain Layout
1749 jpg
1750 \end_layout
1751
1752 \end_inset
1753
1754 , since 
1755 \begin_inset Flex Noun
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759 pdflatex
1760 \end_layout
1761
1762 \end_inset
1763
1764  cannot handle other image formats.
1765  If an included graphic is not already in 
1766 \begin_inset Flex Noun
1767 status collapsed
1768
1769 \begin_layout Plain Layout
1770 pdf
1771 \end_layout
1772
1773 \end_inset
1774
1775
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 png
1781 \end_layout
1782
1783 \end_inset
1784
1785 , or 
1786 \begin_inset Flex Noun
1787 status collapsed
1788
1789 \begin_layout Plain Layout
1790 jpg
1791 \end_layout
1792
1793 \end_inset
1794
1795  format, it is converted to 
1796 \begin_inset Flex Noun
1797 status collapsed
1798
1799 \begin_layout Plain Layout
1800 pdf
1801 \end_layout
1802
1803 \end_inset
1804
1805  if the vector format option is set, and otherwise to 
1806 \begin_inset Flex Noun
1807 status collapsed
1808
1809 \begin_layout Plain Layout
1810 png
1811 \end_layout
1812
1813 \end_inset
1814
1815 .
1816 \end_layout
1817
1818 \begin_layout Section
1819 Copiers
1820 \end_layout
1821
1822 \begin_layout Standard
1823 Since all conversions from one format to another take place in \SpecialChar LyX
1824 's temporary
1825  directory, it is sometimes necessary to modify a file before copying it
1826  to the temporary directory in order that the conversion may be performed.
1827 \begin_inset Foot
1828 status collapsed
1829
1830 \begin_layout Plain Layout
1831 For example, the file may refer to other files—images, for example—using
1832  relative file names, and these may become invalid when the file is copied
1833  to the temporary directory.
1834 \end_layout
1835
1836 \end_inset
1837
1838  This is done by a Copier: It copies a file to (or from) the temporary directory
1839  and may modify it in the process.
1840 \end_layout
1841
1842 \begin_layout Standard
1843 The definitions of the copiers may use eight variables:
1844 \end_layout
1845
1846 \begin_layout Labeling
1847 \labelwidthstring 00.00.0000
1848 \begin_inset Flex Code
1849 status collapsed
1850
1851 \begin_layout Plain Layout
1852 $$s
1853 \end_layout
1854
1855 \end_inset
1856
1857  The \SpecialChar LyX
1858  system directory (e.
1859 \begin_inset space \thinspace{}
1860 \end_inset
1861
1862 g.
1863 \begin_inset space \space{}
1864 \end_inset
1865
1866
1867 \begin_inset Flex Noun
1868 status collapsed
1869
1870 \begin_layout Plain Layout
1871 /usr/share/lyx
1872 \end_layout
1873
1874 \end_inset
1875
1876 ).
1877 \end_layout
1878
1879 \begin_layout Labeling
1880 \labelwidthstring 00.00.0000
1881 \begin_inset Flex Code
1882 status collapsed
1883
1884 \begin_layout Plain Layout
1885 $$i
1886 \end_layout
1887
1888 \end_inset
1889
1890  The input file
1891 \end_layout
1892
1893 \begin_layout Labeling
1894 \labelwidthstring 00.00.0000
1895 \begin_inset Flex Code
1896 status collapsed
1897
1898 \begin_layout Plain Layout
1899 $$o
1900 \end_layout
1901
1902 \end_inset
1903
1904  The output file
1905 \end_layout
1906
1907 \begin_layout Labeling
1908 \labelwidthstring 00.00.0000
1909 \begin_inset Flex Code
1910 status collapsed
1911
1912 \begin_layout Plain Layout
1913 $$b
1914 \end_layout
1915
1916 \end_inset
1917
1918  The base name (without filename extension) in the \SpecialChar LyX
1919  temporary directory
1920 \end_layout
1921
1922 \begin_layout Labeling
1923 \labelwidthstring 00.00.0000
1924 \begin_inset Flex Code
1925 status collapsed
1926
1927 \begin_layout Plain Layout
1928 $$p
1929 \end_layout
1930
1931 \end_inset
1932
1933  The full directory path of the \SpecialChar LyX
1934  temporary directory
1935 \end_layout
1936
1937 \begin_layout Labeling
1938 \labelwidthstring 00.00.0000
1939 \begin_inset Flex Code
1940 status collapsed
1941
1942 \begin_layout Plain Layout
1943 $$r
1944 \end_layout
1945
1946 \end_inset
1947
1948  The full pathname to the original \SpecialChar LyX
1949  file being processed
1950 \end_layout
1951
1952 \begin_layout Labeling
1953 \labelwidthstring 00.00.0000
1954 \begin_inset Flex Code
1955 status collapsed
1956
1957 \begin_layout Plain Layout
1958 $$f
1959 \end_layout
1960
1961 \end_inset
1962
1963  The filename (without any directory path) of the \SpecialChar LyX
1964  file.
1965 \end_layout
1966
1967 \begin_layout Labeling
1968 \labelwidthstring 00.00.0000
1969 \begin_inset Flex Code
1970 status collapsed
1971
1972 \begin_layout Plain Layout
1973 $$l
1974 \end_layout
1975
1976 \end_inset
1977
1978  The `\SpecialChar LaTeX
1979  name'
1980 \end_layout
1981
1982 \begin_layout Standard
1983 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1984 's 
1985 \series bold
1986
1987 \backslash
1988 include
1989 \series default
1990  command.
1991  It is relevant only when exporting files suitable for such inclusion.
1992 \end_layout
1993
1994 \begin_layout Standard
1995 Copiers can be used to do almost anything with output files.
1996  For example, suppose you want generated pdf files to be copied to a special
1997  directory, 
1998 \begin_inset Flex Code
1999 status collapsed
2000
2001 \begin_layout Plain Layout
2002 /home/you/pdf/
2003 \end_layout
2004
2005 \end_inset
2006
2007 .
2008  Then you could write a shell script such as this one:
2009 \end_layout
2010
2011 \begin_layout Standard
2012 \begin_inset listings
2013 inline false
2014 status open
2015
2016 \begin_layout Plain Layout
2017
2018 #!/bin/bash
2019 \end_layout
2020
2021 \begin_layout Plain Layout
2022
2023 FROMFILE=$1
2024 \end_layout
2025
2026 \begin_layout Plain Layout
2027
2028 TOFILE=`basename $2`
2029 \end_layout
2030
2031 \begin_layout Plain Layout
2032
2033 cp $FROMFILE /home/you/pdf/$TOFILE
2034 \end_layout
2035
2036 \end_inset
2037
2038 Save it in your local \SpecialChar LyX
2039  directory—say, 
2040 \begin_inset Flex Code
2041 status collapsed
2042
2043 \begin_layout Plain Layout
2044 /home/you/.lyx/scripts/pdfcopier.sh
2045 \end_layout
2046
2047 \end_inset
2048
2049 —and make it executable, if you need to do so on your platform.
2050  Then, in the 
2051 \begin_inset Flex Noun
2052 status collapsed
2053
2054 \begin_layout Plain Layout
2055 Tools\SpecialChar menuseparator
2056 Preferences
2057 \end_layout
2058
2059 \end_inset
2060
2061  dialog, select under 
2062 \begin_inset Flex Noun
2063 status collapsed
2064
2065 \begin_layout Plain Layout
2066 File Handling\SpecialChar menuseparator
2067 File formats
2068 \end_layout
2069
2070 \end_inset
2071
2072  the 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 PDF(pdflatex)
2078 \end_layout
2079
2080 \end_inset
2081
2082  format—or one of the other pdf formats—and enter 
2083 \begin_inset Flex Code
2084 status collapsed
2085
2086 \begin_layout Plain Layout
2087 pdfcopier.sh $$i $$o
2088 \end_layout
2089
2090 \end_inset
2091
2092  into the 
2093 \begin_inset Flex Noun
2094 status collapsed
2095
2096 \begin_layout Plain Layout
2097 Copier
2098 \end_layout
2099
2100 \end_inset
2101
2102  field.
2103  
2104 \end_layout
2105
2106 \begin_layout Standard
2107 Copiers are used by \SpecialChar LyX
2108  in various of its own conversions.
2109  For example, if appropriate programs are found, \SpecialChar LyX
2110  will automatically install
2111  copiers for the 
2112 \begin_inset Flex Noun
2113 status collapsed
2114
2115 \begin_layout Plain Layout
2116 HTML
2117 \end_layout
2118
2119 \end_inset
2120
2121  and 
2122 \begin_inset Flex Noun
2123 status collapsed
2124
2125 \begin_layout Plain Layout
2126 HTML
2127 \begin_inset space ~
2128 \end_inset
2129
2130 (MS Word)
2131 \end_layout
2132
2133 \end_inset
2134
2135  formats.
2136  When these formats are exported, the copier sees that not just the main
2137  HTML file but various associated files (style files, images, etc.) are also
2138  copied.
2139  All these files are written to a subdirectory of the directory in which
2140  the original \SpecialChar LyX
2141  file was found.
2142 \begin_inset Foot
2143 status collapsed
2144
2145 \begin_layout Plain Layout
2146 This copier can be customized.
2147  The optional 
2148 \begin_inset Quotes eld
2149 \end_inset
2150
2151 -e
2152 \begin_inset Quotes erd
2153 \end_inset
2154
2155  argument takes a comma-separated list of extensions to be copied; if it
2156  is omitted, all files will be copied.
2157  The 
2158 \begin_inset Quotes eld
2159 \end_inset
2160
2161 -t
2162 \begin_inset Quotes erd
2163 \end_inset
2164
2165  argument determines the extension added to the generated directory.
2166  By default, it is 
2167 \begin_inset Quotes eld
2168 \end_inset
2169
2170
2171 \begin_inset Flex Noun
2172 status collapsed
2173
2174 \begin_layout Plain Layout
2175 LyXconv
2176 \end_layout
2177
2178 \end_inset
2179
2180
2181 \begin_inset Quotes erd
2182 \end_inset
2183
2184 , so HTML generated from 
2185 \begin_inset Flex Noun
2186 status collapsed
2187
2188 \begin_layout Plain Layout
2189 /path/to/filename.lyx
2190 \end_layout
2191
2192 \end_inset
2193
2194  will end up in 
2195 \begin_inset Flex Noun
2196 status collapsed
2197
2198 \begin_layout Plain Layout
2199 /path/to/filename.html.LyXconv
2200 \end_layout
2201
2202 \end_inset
2203
2204 .
2205  
2206 \end_layout
2207
2208 \end_inset
2209
2210
2211 \end_layout
2212
2213 \begin_layout Section
2214 Converters
2215 \begin_inset CommandInset label
2216 LatexCommand label
2217 name "sec:Converters"
2218
2219 \end_inset
2220
2221
2222 \end_layout
2223
2224 \begin_layout Standard
2225 You can define your own Converters to convert files between different formats.
2226  This is done in the 
2227 \begin_inset Flex Noun
2228 status collapsed
2229
2230 \begin_layout Plain Layout
2231 Tools\SpecialChar menuseparator
2232 Preferences\SpecialChar menuseparator
2233 File Handling\SpecialChar menuseparator
2234 Converters
2235 \end_layout
2236
2237 \end_inset
2238
2239  dialog.
2240 \end_layout
2241
2242 \begin_layout Standard
2243 To define a new converter, select the 
2244 \begin_inset Flex Noun
2245 status collapsed
2246
2247 \begin_layout Plain Layout
2248 From
2249 \begin_inset space ~
2250 \end_inset
2251
2252 format
2253 \end_layout
2254
2255 \end_inset
2256
2257  and 
2258 \begin_inset Flex Noun
2259 status collapsed
2260
2261 \begin_layout Plain Layout
2262 To
2263 \begin_inset space ~
2264 \end_inset
2265
2266 format
2267 \end_layout
2268
2269 \end_inset
2270
2271  from the drop-down lists, enter the command needed for the conversion,
2272  and then press the 
2273 \begin_inset Flex Noun
2274 status collapsed
2275
2276 \begin_layout Plain Layout
2277 Add
2278 \end_layout
2279
2280 \end_inset
2281
2282  button.
2283  Several variables can be used in the definition of converters:
2284 \end_layout
2285
2286 \begin_layout Labeling
2287 \labelwidthstring 00.00.0000
2288 \begin_inset Flex Code
2289 status collapsed
2290
2291 \begin_layout Plain Layout
2292 $$s
2293 \end_layout
2294
2295 \end_inset
2296
2297  The \SpecialChar LyX
2298  system directory
2299 \end_layout
2300
2301 \begin_layout Labeling
2302 \labelwidthstring 00.00.0000
2303 \begin_inset Flex Code
2304 status collapsed
2305
2306 \begin_layout Plain Layout
2307 $$i
2308 \end_layout
2309
2310 \end_inset
2311
2312  The input file
2313 \end_layout
2314
2315 \begin_layout Labeling
2316 \labelwidthstring 00.00.0000
2317 \begin_inset Flex Code
2318 status collapsed
2319
2320 \begin_layout Plain Layout
2321 $$o
2322 \end_layout
2323
2324 \end_inset
2325
2326  The output file
2327 \end_layout
2328
2329 \begin_layout Labeling
2330 \labelwidthstring 00.00.0000
2331 \begin_inset Flex Code
2332 status collapsed
2333
2334 \begin_layout Plain Layout
2335 $$b
2336 \end_layout
2337
2338 \end_inset
2339
2340  The base filename of the input file (i.
2341 \begin_inset space \thinspace{}
2342 \end_inset
2343
2344 g., without the extension)
2345 \end_layout
2346
2347 \begin_layout Labeling
2348 \labelwidthstring 00.00.0000
2349 \begin_inset Flex Code
2350 status collapsed
2351
2352 \begin_layout Plain Layout
2353 $$p
2354 \end_layout
2355
2356 \end_inset
2357
2358  The path to the input file
2359 \end_layout
2360
2361 \begin_layout Labeling
2362 \labelwidthstring 00.00.0000
2363 \begin_inset Flex Code
2364 status collapsed
2365
2366 \begin_layout Plain Layout
2367 $$r
2368 \end_layout
2369
2370 \end_inset
2371
2372  The path to the original input file (this is different from $$p when a
2373  chain of converters is called)
2374 \end_layout
2375
2376 \begin_layout Labeling
2377 \labelwidthstring 00.00.0000
2378 \begin_inset Flex Code
2379 status collapsed
2380
2381 \begin_layout Plain Layout
2382 $$e
2383 \end_layout
2384
2385 \end_inset
2386
2387  The iconv name for the encoding of the document.
2388 \end_layout
2389
2390 \begin_layout Standard
2391 In the 
2392 \begin_inset Flex Noun
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396 Extra
2397 \begin_inset space ~
2398 \end_inset
2399
2400 Flag
2401 \end_layout
2402
2403 \end_inset
2404
2405  field you can enter the following flags, separated by commas:
2406 \end_layout
2407
2408 \begin_layout Labeling
2409 \labelwidthstring 00.00.0000
2410 \begin_inset Flex Code
2411 status collapsed
2412
2413 \begin_layout Plain Layout
2414 latex
2415 \change_inserted -712698321 1524656940
2416 =flavor
2417 \change_unchanged
2418
2419 \end_layout
2420
2421 \end_inset
2422
2423  This converter runs some form of \SpecialChar LaTeX
2424 .
2425  This will make \SpecialChar LyX
2426 's \SpecialChar LaTeX
2427  error logs available.
2428
2429 \change_inserted -712698321 1524657018
2430  The optional 
2431 \begin_inset Flex Code
2432 status open
2433
2434 \begin_layout Plain Layout
2435
2436 \change_inserted -712698321 1524657012
2437 flavor
2438 \change_unchanged
2439
2440 \end_layout
2441
2442 \end_inset
2443
2444  value specifies the form of \SpecialChar LaTeX
2445  that is run (
2446 \begin_inset Flex Code
2447 status open
2448
2449 \begin_layout Plain Layout
2450
2451 \change_inserted -712698321 1524657005
2452 latex, pdflatex, platex, xetex, luatex
2453 \change_unchanged
2454
2455 \end_layout
2456
2457 \end_inset
2458
2459 ).
2460  If no value is specified, 
2461 \begin_inset Flex Code
2462 status open
2463
2464 \begin_layout Plain Layout
2465
2466 \change_inserted -712698321 1524657018
2467 latex
2468 \change_unchanged
2469
2470 \end_layout
2471
2472 \end_inset
2473
2474  is used.
2475 \change_unchanged
2476
2477 \end_layout
2478
2479 \begin_layout Labeling
2480 \labelwidthstring 00.00.0000
2481 \begin_inset Flex Code
2482 status collapsed
2483
2484 \begin_layout Plain Layout
2485 needaux
2486 \change_inserted -712698321 1524656935
2487 =flavor
2488 \change_unchanged
2489
2490 \end_layout
2491
2492 \end_inset
2493
2494  Needs the \SpecialChar LaTeX
2495  
2496 \begin_inset Flex Noun
2497 status collapsed
2498
2499 \begin_layout Plain Layout
2500 .aux
2501 \end_layout
2502
2503 \end_inset
2504
2505  file for the conversion.
2506
2507 \change_inserted -712698321 1524657047
2508  The optional 
2509 \begin_inset Flex Code
2510 status open
2511
2512 \begin_layout Plain Layout
2513
2514 \change_inserted -712698321 1524657030
2515 flavor
2516 \end_layout
2517
2518 \end_inset
2519
2520  value specifies the form of \SpecialChar LaTeX
2521  that is run in order to generate the 
2522 \begin_inset Flex Noun
2523 status collapsed
2524
2525 \begin_layout Plain Layout
2526
2527 \change_inserted -712698321 1524657047
2528 .aux
2529 \end_layout
2530
2531 \end_inset
2532
2533  file (
2534 \begin_inset Flex Code
2535 status open
2536
2537 \begin_layout Plain Layout
2538
2539 \change_inserted -712698321 1524657030
2540 latex, pdflatex, platex, xetex, luatex
2541 \end_layout
2542
2543 \end_inset
2544
2545 ).
2546  If no value is specified, 
2547 \begin_inset Flex Code
2548 status open
2549
2550 \begin_layout Plain Layout
2551
2552 \change_inserted -712698321 1524657030
2553 latex
2554 \end_layout
2555
2556 \end_inset
2557
2558  is used.
2559 \change_unchanged
2560
2561 \end_layout
2562
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2565 \begin_inset Flex Code
2566 status collapsed
2567
2568 \begin_layout Plain Layout
2569 nice
2570 \end_layout
2571
2572 \end_inset
2573
2574  Needs a 
2575 \begin_inset Quotes eld
2576 \end_inset
2577
2578 nice
2579 \begin_inset Quotes erd
2580 \end_inset
2581
2582  file from the backend, which in practice means a \SpecialChar LaTeX
2583  file like the one we
2584  would export, without 
2585 \begin_inset Flex Code
2586 status collapsed
2587
2588 \begin_layout Plain Layout
2589 input@path
2590 \end_layout
2591
2592 \end_inset
2593
2594 .
2595 \end_layout
2596
2597 \begin_layout Labeling
2598 \labelwidthstring 00.00.0000
2599 \begin_inset Flex Code
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 xml
2604 \end_layout
2605
2606 \end_inset
2607
2608  Output is XML.
2609 \end_layout
2610
2611 \begin_layout Standard
2612 The following three flags are not really flags at all because they take
2613  an argument in the 
2614 \begin_inset Flex Noun
2615 status collapsed
2616
2617 \begin_layout Plain Layout
2618 key
2619 \begin_inset space ~
2620 \end_inset
2621
2622 =
2623 \begin_inset space ~
2624 \end_inset
2625
2626 value
2627 \end_layout
2628
2629 \end_inset
2630
2631  format:
2632 \end_layout
2633
2634 \begin_layout Labeling
2635 \labelwidthstring 00.00.0000
2636
2637 \change_inserted -712698321 1523206314
2638 \begin_inset Flex Code
2639 status collapsed
2640
2641 \begin_layout Plain Layout
2642
2643 \change_inserted -712698321 1523206193
2644 hyperref-driver
2645 \end_layout
2646
2647 \end_inset
2648
2649  The name of the driver that needs to be loaded with the 
2650 \family sans
2651 hyperref
2652 \family default
2653  package for this converter.
2654  The loading of the correct driver is necessary to get some PDF-specific
2655  features.
2656  See the 
2657 \family sans
2658 hyperref
2659 \family default
2660  manual for details.
2661 \end_layout
2662
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2665 \begin_inset Flex Code
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 parselog
2670 \end_layout
2671
2672 \end_inset
2673
2674  If set, the converter's standard error will be redirected to a file 
2675 \begin_inset Flex Code
2676 status collapsed
2677
2678 \begin_layout Plain Layout
2679 infile.out
2680 \end_layout
2681
2682 \end_inset
2683
2684 , and the script given as argument will be run as: 
2685 \begin_inset Flex Code
2686 status collapsed
2687
2688 \begin_layout Plain Layout
2689 script < infile.out > infile.log
2690 \end_layout
2691
2692 \end_inset
2693
2694 .
2695  The argument may contain 
2696 \begin_inset Flex Code
2697 status collapsed
2698
2699 \begin_layout Plain Layout
2700 $$s
2701 \end_layout
2702
2703 \end_inset
2704
2705 .
2706 \end_layout
2707
2708 \begin_layout Labeling
2709 \labelwidthstring 00.00.0000
2710 \begin_inset Flex Code
2711 status collapsed
2712
2713 \begin_layout Plain Layout
2714 resultdir
2715 \end_layout
2716
2717 \end_inset
2718
2719  The name of the directory in which the converter will dump the generated
2720  files.
2721  \SpecialChar LyX
2722  will not create this directory, and it does not copy anything into it,
2723  though it will copy this directory to the destination.
2724  The argument may contain 
2725 \begin_inset Flex Code
2726 status collapsed
2727
2728 \begin_layout Plain Layout
2729 $$b
2730 \end_layout
2731
2732 \end_inset
2733
2734 , which will be replaced by the base name of the input and output files,
2735  respectively, when the directory is copied.
2736 \begin_inset Newline newline
2737 \end_inset
2738
2739 Note that resultdir and usetempdir make no sense together.
2740  The latter will be ignored if the former is given.
2741 \end_layout
2742
2743 \begin_layout Labeling
2744 \labelwidthstring 00.00.0000
2745 \begin_inset Flex Code
2746 status collapsed
2747
2748 \begin_layout Plain Layout
2749 resultfile
2750 \end_layout
2751
2752 \end_inset
2753
2754  Determines the output file name and may, contain 
2755 \begin_inset Flex Code
2756 status collapsed
2757
2758 \begin_layout Plain Layout
2759 $$b
2760 \end_layout
2761
2762 \end_inset
2763
2764 .
2765  Sensible only with resultdir and optional even then; if not given, it defaults
2766  to `index'.
2767 \end_layout
2768
2769 \begin_layout Standard
2770
2771 \change_inserted -712698321 1523206384
2772 A suitable hyperref-driver is set for some converters that are installed
2773  with \SpecialChar LyX
2774 .
2775  
2776 \change_deleted -712698321 1523206388
2777 None of these
2778 \change_inserted -712698321 1523206389
2779 The
2780 \change_unchanged
2781  last three
2782 \change_inserted -712698321 1523206400
2783  flags, however,
2784 \change_unchanged
2785  are presently 
2786 \change_inserted -712698321 1523206407
2787 not 
2788 \change_unchanged
2789 used in any of the 
2790 \change_inserted -712698321 1523206437
2791 pre-installed 
2792 \change_unchanged
2793 converters
2794 \change_deleted -712698321 1523206442
2795  that are installed with \SpecialChar LyX
2796
2797 \change_unchanged
2798 .
2799  
2800 \end_layout
2801
2802 \begin_layout Standard
2803 You do not have to define converters for all formats between which you want
2804  to convert.
2805  For example, you will note that there is no `\SpecialChar LyX
2806  to PostScript' converter,
2807  but \SpecialChar LyX
2808  will export PostScript.
2809  It does so by first creating a \SpecialChar LaTeX
2810  file (no converter needs to be defined
2811  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2812  to DVI' converter,
2813  and finally converting the resulting DVI file to PostScript.
2814  \SpecialChar LyX
2815  finds such `chains' of converters automatically, and it will always choose
2816  the shortest possible chain.
2817  You can, though, still define multiple conversion methods between file
2818  formats.
2819  For example, the standard \SpecialChar LyX
2820  configuration provides five ways to convert
2821  \SpecialChar LaTeX
2822  to PDF:
2823 \end_layout
2824
2825 \begin_layout Enumerate
2826 Directly, using 
2827 \begin_inset Flex Noun
2828 status collapsed
2829
2830 \begin_layout Plain Layout
2831 pdflatex
2832 \end_layout
2833
2834 \end_inset
2835
2836
2837 \end_layout
2838
2839 \begin_layout Enumerate
2840 via (DVI and) PostScript, using 
2841 \begin_inset Flex Noun
2842 status collapsed
2843
2844 \begin_layout Plain Layout
2845 ps2pdf
2846 \end_layout
2847
2848 \end_inset
2849
2850
2851 \end_layout
2852
2853 \begin_layout Enumerate
2854 via DVI, using 
2855 \begin_inset Flex Noun
2856 status collapsed
2857
2858 \begin_layout Plain Layout
2859 dvipdfm
2860 \end_layout
2861
2862 \end_inset
2863
2864
2865 \end_layout
2866
2867 \begin_layout Enumerate
2868 directly using 
2869 \begin_inset Flex Noun
2870 status collapsed
2871
2872 \begin_layout Plain Layout
2873 Xe\SpecialChar TeX
2874
2875 \end_layout
2876
2877 \end_inset
2878
2879
2880 \end_layout
2881
2882 \begin_layout Enumerate
2883 directly using 
2884 \begin_inset Flex Noun
2885 status collapsed
2886
2887 \begin_layout Plain Layout
2888 Lua\SpecialChar TeX
2889
2890 \end_layout
2891
2892 \end_inset
2893
2894
2895 \end_layout
2896
2897 \begin_layout Standard
2898 To define such alternate chains, you must define multiple target `file formats',
2899  as described in 
2900 \begin_inset CommandInset ref
2901 LatexCommand ref
2902 reference "sec:Formats"
2903
2904 \end_inset
2905
2906 .
2907  For example, in the standard configuration, the formats named 
2908 \begin_inset Flex Noun
2909 status collapsed
2910
2911 \begin_layout Plain Layout
2912 pdf
2913 \end_layout
2914
2915 \end_inset
2916
2917  (for 
2918 \begin_inset Flex Noun
2919 status collapsed
2920
2921 \begin_layout Plain Layout
2922 ps2pdf
2923 \end_layout
2924
2925 \end_inset
2926
2927 ), 
2928 \begin_inset Flex Noun
2929 status collapsed
2930
2931 \begin_layout Plain Layout
2932 pdf2
2933 \end_layout
2934
2935 \end_inset
2936
2937  (for 
2938 \begin_inset Flex Noun
2939 status collapsed
2940
2941 \begin_layout Plain Layout
2942 pdflatex
2943 \end_layout
2944
2945 \end_inset
2946
2947 ), 
2948 \begin_inset Flex Noun
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952 pdf3
2953 \end_layout
2954
2955 \end_inset
2956
2957  (for 
2958 \begin_inset Flex Noun
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962 dvipdfm
2963 \end_layout
2964
2965 \end_inset
2966
2967 ), 
2968 \begin_inset Flex Noun
2969 status collapsed
2970
2971 \begin_layout Plain Layout
2972 pdf4
2973 \end_layout
2974
2975 \end_inset
2976
2977  (for 
2978 \begin_inset Flex Noun
2979 status collapsed
2980
2981 \begin_layout Plain Layout
2982 Xe\SpecialChar TeX
2983
2984 \end_layout
2985
2986 \end_inset
2987
2988 ), and 
2989 \begin_inset Flex Noun
2990 status collapsed
2991
2992 \begin_layout Plain Layout
2993 pdf5
2994 \end_layout
2995
2996 \end_inset
2997
2998  (for 
2999 \begin_inset Flex Noun
3000 status collapsed
3001
3002 \begin_layout Plain Layout
3003 Lua\SpecialChar TeX
3004
3005 \end_layout
3006
3007 \end_inset
3008
3009 ) are defined, all of which share the extension 
3010 \begin_inset Flex Noun
3011 status collapsed
3012
3013 \begin_layout Plain Layout
3014 .pdf
3015 \end_layout
3016
3017 \end_inset
3018
3019 , and which correspond to the conversion methods just mentioned.
3020 \end_layout
3021
3022 \begin_layout Chapter
3023 Internationalizing \SpecialChar LyX
3024
3025 \begin_inset CommandInset label
3026 LatexCommand label
3027 name "cha:Internationalizing-LyX"
3028
3029 \end_inset
3030
3031
3032 \end_layout
3033
3034 \begin_layout Standard
3035 \SpecialChar LyX
3036  supports using a translated interface.
3037  Last time we checked, \SpecialChar LyX
3038  provided text in thirty languages.
3039  The language of choice is called your 
3040 \emph on
3041 locale
3042 \emph default
3043 .
3044  (For further reading on locale settings, see also the documentation for
3045  locale that comes with your operating system.
3046  For Linux, the manual page for 
3047 \begin_inset Flex Code
3048 status collapsed
3049
3050 \begin_layout Plain Layout
3051 locale(5)
3052 \end_layout
3053
3054 \end_inset
3055
3056  could be a good place to start).
3057 \end_layout
3058
3059 \begin_layout Standard
3060 Notice that these translations will work, but do contain a few flaws.
3061  In particular, all dialogs have been designed with the English text in
3062  mind, which means that some of the translated text will be too large to
3063  fit within the space allocated.
3064  This is only a display problem and will not cause any harm.
3065  Also, you will find that some of the translations do not define shortcut
3066  keys for everything.
3067  Sometimes, there are simply not enough free letters to do it.
3068  Other times, the translator just hasn't got around to doing it yet.
3069  Our localization team, which you may wish to join,
3070 \begin_inset Foot
3071 status collapsed
3072
3073 \begin_layout Plain Layout
3074 If you are a fluent speaker of a language other than English, joining these
3075  teams is a great way to give back to the \SpecialChar LyX
3076  community!
3077 \end_layout
3078
3079 \end_inset
3080
3081  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3082 .
3083 \end_layout
3084
3085 \begin_layout Section
3086 Translating \SpecialChar LyX
3087
3088 \end_layout
3089
3090 \begin_layout Subsection
3091 Translating the graphical user interface (text messages).
3092 \end_layout
3093
3094 \begin_layout Standard
3095 \SpecialChar LyX
3096  uses the GNU 
3097 \begin_inset Flex Code
3098 status collapsed
3099
3100 \begin_layout Plain Layout
3101 gettext
3102 \end_layout
3103
3104 \end_inset
3105
3106  library to handle the internationalization of the interface.
3107  To have \SpecialChar LyX
3108  speak your favorite language in all menus and dialogs, you need
3109  a 
3110 \begin_inset Flex Code
3111 status collapsed
3112
3113 \begin_layout Plain Layout
3114 po
3115 \end_layout
3116
3117 \end_inset
3118
3119 -file for that language.
3120  When this is available, you'll have to generate a 
3121 \begin_inset Flex Code
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 mo
3126 \end_layout
3127
3128 \end_inset
3129
3130 -file from it and install the 
3131 \begin_inset Flex Code
3132 status collapsed
3133
3134 \begin_layout Plain Layout
3135 mo
3136 \end_layout
3137
3138 \end_inset
3139
3140 -file.
3141  The process of doing all of this is explained in the documentation for
3142  GNU 
3143 \begin_inset Flex Code
3144 status collapsed
3145
3146 \begin_layout Plain Layout
3147 gettext
3148 \end_layout
3149
3150 \end_inset
3151
3152 .
3153  It is possible to do this just for yourself, but if you're going to do
3154  it, you might as well share the results of your labors with the rest of
3155  the \SpecialChar LyX
3156  community.
3157  Send a message to the \SpecialChar LyX
3158  developers' list for more information about how
3159  to proceed.
3160 \end_layout
3161
3162 \begin_layout Standard
3163 In short, this is what you should do (xx denotes the language code):
3164 \end_layout
3165
3166 \begin_layout Itemize
3167 Check out the \SpecialChar LyX
3168  source code.
3169  (See the 
3170 \begin_inset CommandInset href
3171 LatexCommand href
3172 name "information on the web"
3173 target "https://www.lyx.org/HowToUseGIT"
3174 literal "false"
3175
3176 \end_inset
3177
3178 .)
3179 \end_layout
3180
3181 \begin_layout Itemize
3182 Copy the file 
3183 \begin_inset Flex Code
3184 status collapsed
3185
3186 \begin_layout Plain Layout
3187 lyx.pot
3188 \end_layout
3189
3190 \end_inset
3191
3192  to the folder of the 
3193 \begin_inset Flex Code
3194 status collapsed
3195
3196 \begin_layout Plain Layout
3197 **.po
3198 \end_layout
3199
3200 \end_inset
3201
3202  files.
3203  Then rename it to 
3204 \begin_inset Flex Code
3205 status collapsed
3206
3207 \begin_layout Plain Layout
3208 xx.po
3209 \end_layout
3210
3211 \end_inset
3212
3213 .
3214  (If 
3215 \begin_inset Flex Code
3216 status collapsed
3217
3218 \begin_layout Plain Layout
3219 lyx.pot
3220 \end_layout
3221
3222 \end_inset
3223
3224  doesn't exist anywhere, it can be remade with the console command 
3225 \begin_inset Flex Code
3226 status collapsed
3227
3228 \begin_layout Plain Layout
3229 make lyx.pot
3230 \end_layout
3231
3232 \end_inset
3233
3234  in that directory, or you can use an existing po-file for some other language
3235  as a template).
3236 \end_layout
3237
3238 \begin_layout Itemize
3239 Edit 
3240 \begin_inset Flex Code
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244 xx.po
3245 \end_layout
3246
3247 \end_inset
3248
3249 .
3250 \begin_inset Foot
3251 status collapsed
3252
3253 \begin_layout Plain Layout
3254 This is just a text file, so it can be edited in any text editor.
3255  But there are also specialized programs that support such editing, such
3256  as 
3257 \family typewriter
3258 Poedit
3259 \family default
3260  (for all platforms) or 
3261 \family typewriter
3262 KBabel
3263 \family default
3264  (for KDE).
3265  
3266 \family typewriter
3267 Emacs
3268 \family default
3269  contains a `mode' for editing 
3270 \begin_inset Flex Code
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 po
3275 \end_layout
3276
3277 \end_inset
3278
3279  files, as well, see 
3280 \begin_inset Flex URL
3281 status open
3282
3283 \begin_layout Plain Layout
3284
3285 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3286 \end_layout
3287
3288 \end_inset
3289
3290 .
3291 \end_layout
3292
3293 \end_inset
3294
3295  For some menu- and widget-labels, there are also shortcut keys that should
3296  be translated.
3297  Those keys are marked after a `|', and should be translated according to
3298  the words and phrases of the language.
3299  You should also fill also out the information at the beginning of the new
3300  
3301 \begin_inset Flex Code
3302 status collapsed
3303
3304 \begin_layout Plain Layout
3305 po
3306 \end_layout
3307
3308 \end_inset
3309
3310 -file with your email-address, etc., so people know where to reach you with
3311  suggestions and entertaining flames.
3312 \end_layout
3313
3314 \begin_layout Standard
3315 If you are just doing this on your own, then:
3316 \end_layout
3317
3318 \begin_layout Itemize
3319 Generate 
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324 xx.mo
3325 \end_layout
3326
3327 \end_inset
3328
3329 .
3330  This can be done with 
3331 \begin_inset Flex Code
3332 status collapsed
3333
3334 \begin_layout Plain Layout
3335 msgfmt -o xx.mo < xx.po
3336 \end_layout
3337
3338 \end_inset
3339
3340 .
3341 \end_layout
3342
3343 \begin_layout Itemize
3344 Copy the 
3345 \begin_inset Flex Code
3346 status collapsed
3347
3348 \begin_layout Plain Layout
3349 mo
3350 \end_layout
3351
3352 \end_inset
3353
3354 -file to your locale-tree, at the correct directory for application messages
3355  for the language
3356 \series bold
3357  
3358 \series default
3359 xx, and under the name 
3360 \begin_inset Flex Code
3361 status collapsed
3362
3363 \begin_layout Plain Layout
3364 lyx.mo
3365 \end_layout
3366
3367 \end_inset
3368
3369  (e.
3370 \begin_inset space \thinspace{}
3371 \end_inset
3372
3373 g.
3374 \begin_inset space \space{}
3375 \end_inset
3376
3377
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3383 \end_layout
3384
3385 \end_inset
3386
3387
3388 \series bold
3389 .
3390 \end_layout
3391
3392 \begin_layout Standard
3393 As said, however, it would be best if the new 
3394 \begin_inset Flex Code
3395 status collapsed
3396
3397 \begin_layout Plain Layout
3398 po
3399 \end_layout
3400
3401 \end_inset
3402
3403  file could be added to the \SpecialChar LyX
3404  distribution, so others can use it.
3405  Adding it involves making additional changes to \SpecialChar LyX
3406 .
3407  So send an email to the developers' mailing list if you're interested in
3408  doing that.
3409 \end_layout
3410
3411 \begin_layout Subsubsection
3412 Ambiguous messages
3413 \end_layout
3414
3415 \begin_layout Standard
3416 Sometimes it turns out that one English message needs to be translated into
3417  different messages in the target language.
3418  One example is the message 
3419 \begin_inset Flex Code
3420 status collapsed
3421
3422 \begin_layout Plain Layout
3423 To
3424 \end_layout
3425
3426 \end_inset
3427
3428  which has the German translation 
3429 \lang german
3430 Nach
3431 \lang english
3432  or 
3433 \lang german
3434 Bis
3435 \lang english
3436 , depending upon exactly what the English 
3437 \begin_inset Quotes eld
3438 \end_inset
3439
3440 to
3441 \begin_inset Quotes erd
3442 \end_inset
3443
3444  means.
3445  GNU 
3446 \begin_inset Flex Code
3447 status collapsed
3448
3449 \begin_layout Plain Layout
3450 gettext
3451 \end_layout
3452
3453 \end_inset
3454
3455  does not handle such ambiguous translations.
3456  Therefore you have to add some context information to the message: Instead
3457  of 
3458 \begin_inset Flex Code
3459 status collapsed
3460
3461 \begin_layout Plain Layout
3462 To
3463 \end_layout
3464
3465 \end_inset
3466
3467  it becomes 
3468 \begin_inset Flex Code
3469 status collapsed
3470
3471 \begin_layout Plain Layout
3472 To[[as in 'From format x to format y']]
3473 \end_layout
3474
3475 \end_inset
3476
3477  and 
3478 \begin_inset Flex Code
3479 status collapsed
3480
3481 \begin_layout Plain Layout
3482 To[[as in 'From page x to page y']].
3483 \end_layout
3484
3485 \end_inset
3486
3487  Now the two occurrences of 
3488 \begin_inset Flex Code
3489 status collapsed
3490
3491 \begin_layout Plain Layout
3492 To
3493 \end_layout
3494
3495 \end_inset
3496
3497  are different for 
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502 gettext
3503 \end_layout
3504
3505 \end_inset
3506
3507  and can be translated correctly to 
3508 \lang german
3509 Nach
3510 \lang english
3511  and 
3512 \lang german
3513 Bis
3514 \lang english
3515 , respectively.
3516 \end_layout
3517
3518 \begin_layout Standard
3519 Of course the context information needs to be stripped off the original
3520  message when no translation is used.
3521  Therefore you have to put it in double square brackets at the end of the
3522  message (see the example above).
3523  The translation mechanism of \SpecialChar LyX
3524  ensures that everything in double square
3525  brackets at the end of messages is removed before displaying the message.
3526 \end_layout
3527
3528 \begin_layout Subsection
3529 Translating the documentation.
3530 \end_layout
3531
3532 \begin_layout Standard
3533 The online documentation (in the 
3534 \begin_inset Flex Noun
3535 status collapsed
3536
3537 \begin_layout Plain Layout
3538 Help
3539 \end_layout
3540
3541 \end_inset
3542
3543 -menu) can (and should!) be translated.
3544  If there are translated versions of the documentation available
3545 \begin_inset Foot
3546 status collapsed
3547
3548 \begin_layout Plain Layout
3549 As of March 2008, at least some of the documents have been translated into
3550  fourteen languages, with the Tutorial available in a few more.
3551 \end_layout
3552
3553 \end_inset
3554
3555  and the locale is set accordingly, these will be used automagically by
3556  \SpecialChar LyX
3557 .
3558  \SpecialChar LyX
3559  looks for translated versions as 
3560 \begin_inset Flex Code
3561 status collapsed
3562
3563 \begin_layout Plain Layout
3564 LyXDir/doc/xx/DocName.lyx
3565 \end_layout
3566
3567 \end_inset
3568
3569 , where 
3570 \begin_inset Flex Code
3571 status collapsed
3572
3573 \begin_layout Plain Layout
3574 xx
3575 \end_layout
3576
3577 \end_inset
3578
3579  is the code for the language currently in use.
3580  If there are no translated documents, the default English versions will
3581  be displayed.
3582  Note that the translated versions must have the same filenames (
3583 \begin_inset Flex Code
3584 status collapsed
3585
3586 \begin_layout Plain Layout
3587 DocName
3588 \end_layout
3589
3590 \end_inset
3591
3592  above) as the original.
3593  If you feel up to translating the documentation (an excellent way to proof-read
3594  the original documentation by the way!), there are a few things you should
3595  do right away:
3596 \end_layout
3597
3598 \begin_layout Itemize
3599 Check out the documentation translation web page at 
3600 \begin_inset CommandInset href
3601 LatexCommand href
3602 name "https://www.lyx.org/Translation"
3603 target "https://www.lyx.org/Translation"
3604 literal "false"
3605
3606 \end_inset
3607
3608 .
3609  That way, you can find out which (if any) documents have already been translate
3610 d into your language.
3611  You can also find out who (if anyone) is organizing the effort to translate
3612  the documentation into your language.
3613  If no one is organizing the effort, please let us know that you're interested.
3614 \end_layout
3615
3616 \begin_layout Standard
3617 Once you get to actually translating, here's a few hints for you that may
3618  save you trouble:
3619 \end_layout
3620
3621 \begin_layout Itemize
3622 Join the documentation team! There is information on how to do that in 
3623 \begin_inset Flex Code
3624 status collapsed
3625
3626 \begin_layout Plain Layout
3627 Intro.lyx
3628 \end_layout
3629
3630 \end_inset
3631
3632  (
3633 \begin_inset Flex Noun
3634 status collapsed
3635
3636 \begin_layout Plain Layout
3637 Help\SpecialChar menuseparator
3638 Introduction
3639 \end_layout
3640
3641 \end_inset
3642
3643 ), which by the way is the first document you should translate.
3644 \end_layout
3645
3646 \begin_layout Itemize
3647 Learn the typographic conventions for the language you are translating to.
3648  Typography is an ancient art and over the centuries, a great variety of
3649  conventions have developed throughout different parts of the world.
3650  Also study the professional terminology amongst typographers in your country.
3651  Inventing your own terminology will only confuse the users.
3652  
3653 \emph on
3654 (Warning! Typography is addictive!)
3655 \end_layout
3656
3657 \begin_layout Itemize
3658 Make a copy of the document.
3659  This will be your working copy.
3660  You can use this as your personal translated help-file by placing it in
3661  your 
3662 \begin_inset Flex Code
3663 status collapsed
3664
3665 \begin_layout Plain Layout
3666 UserDir/doc/xx/
3667 \end_layout
3668
3669 \end_inset
3670
3671  directory.
3672 \begin_inset Note Greyedout
3673 status open
3674
3675 \begin_layout Plain Layout
3676
3677 \series bold
3678 Note:
3679 \series default
3680  For a complex document with external material (images, etc.), if you make
3681  a copy e.
3682 \begin_inset space \thinspace{}
3683 \end_inset
3684
3685 g.
3686 \begin_inset space \space{}
3687 \end_inset
3688
3689 in a temp dir, beware that the links to external material may be broken
3690  when the document is moved to a different place.
3691  The best way is to retrieve the \SpecialChar LyX
3692  tree from git (see 
3693 \begin_inset Flex URL
3694 status collapsed
3695
3696 \begin_layout Plain Layout
3697
3698 https://www.lyx.org/HowToUseGIT
3699 \end_layout
3700
3701 \end_inset
3702
3703 ) and to edit the doc file in place.
3704 \end_layout
3705
3706 \end_inset
3707
3708
3709 \end_layout
3710
3711 \begin_layout Itemize
3712 Sometimes the original document (from the \SpecialChar LyX
3713  team) will be updated.
3714  Use the source viewer at 
3715 \begin_inset CommandInset href
3716 LatexCommand href
3717 name "https://www.lyx.org/trac/timeline"
3718 target "https://www.lyx.org/trac/timeline"
3719 literal "false"
3720
3721 \end_inset
3722
3723  to see what has been changed.
3724  That way you can easily see which parts of the translated document need
3725  to be updated.
3726 \end_layout
3727
3728 \begin_layout Standard
3729 If you ever find an error in the original document, fix it and notify the
3730  rest of the documentation team of the changes! (You didn't forget to join
3731  the documentation team, did you?)
3732 \end_layout
3733
3734 \begin_layout Standard
3735 \begin_inset Branch OutDated
3736 inverted 0
3737 status collapsed
3738
3739 \begin_layout Section
3740 International Keyboard Support
3741 \end_layout
3742
3743 \begin_layout Standard
3744
3745 \emph on
3746 [Editor's Note: The following section is by
3747 \emph default
3748  
3749 \shape smallcaps
3750 \emph on
3751 Ivan Schreter
3752 \shape default
3753 .
3754  It needs to be fixed to conform to the new Documentation Style sheet and
3755  to make use of the new v1.0 features.
3756  The whole thing also needs to be merged with the section following it.-jw
3757  It may also be badly out of date.-rh (2008)]
3758 \end_layout
3759
3760 \begin_layout Subsection
3761 Defining Own Keymaps: Keymap File Format
3762 \end_layout
3763
3764 \begin_layout Standard
3765 Let's look at a keyboard definition file a little closer.
3766  It is a plain text file defining
3767 \end_layout
3768
3769 \begin_layout Itemize
3770 key-to-key or key-to-string translations
3771 \end_layout
3772
3773 \begin_layout Itemize
3774 dead keys
3775 \end_layout
3776
3777 \begin_layout Itemize
3778 dead keys exceptions
3779 \end_layout
3780
3781 \begin_layout Standard
3782 To define key-to-key or key-to-string translation, use this command:
3783 \end_layout
3784
3785 \begin_layout Quotation
3786 \begin_inset Flex Code
3787 status collapsed
3788
3789 \begin_layout Plain Layout
3790
3791 \backslash
3792 kmap
3793 \end_layout
3794
3795 \end_inset
3796
3797  
3798 \begin_inset Flex Code
3799 status collapsed
3800
3801 \begin_layout Plain Layout
3802 key
3803 \end_layout
3804
3805 \end_inset
3806
3807  outstring 
3808 \end_layout
3809
3810 \begin_layout Standard
3811 where 
3812 \begin_inset Flex Code
3813 status collapsed
3814
3815 \begin_layout Plain Layout
3816 key
3817 \end_layout
3818
3819 \end_inset
3820
3821  is the key to be translated and 
3822 \begin_inset Flex Code
3823 status collapsed
3824
3825 \begin_layout Plain Layout
3826 outstring
3827 \end_layout
3828
3829 \end_inset
3830
3831  is the string to be inserted into the document.
3832  To define dead keys, use:
3833 \end_layout
3834
3835 \begin_layout Quotation
3836 \begin_inset Flex Code
3837 status collapsed
3838
3839 \begin_layout Plain Layout
3840
3841 \backslash
3842 kmod
3843 \end_layout
3844
3845 \end_inset
3846
3847  
3848 \begin_inset Flex Code
3849 status collapsed
3850
3851 \begin_layout Plain Layout
3852 key
3853 \end_layout
3854
3855 \end_inset
3856
3857  deadkey
3858 \end_layout
3859
3860 \begin_layout Standard
3861 where 
3862 \begin_inset Flex Code
3863 status collapsed
3864
3865 \begin_layout Plain Layout
3866 key
3867 \end_layout
3868
3869 \end_inset
3870
3871  is a keyboard key and 
3872 \begin_inset Flex Code
3873 status collapsed
3874
3875 \begin_layout Plain Layout
3876 deadkey
3877 \end_layout
3878
3879 \end_inset
3880
3881  is dead key name.
3882  The following dead keys are supported (shortcut name is in parentheses):
3883 \end_layout
3884
3885 \begin_layout Quotation
3886
3887 \emph on
3888 Name
3889 \begin_inset space \hfill{}
3890 \end_inset
3891
3892 Example
3893 \end_layout
3894
3895 \begin_layout Quotation
3896 acute (acu)
3897 \begin_inset space \hfill{}
3898 \end_inset
3899
3900 áéíóú
3901 \end_layout
3902
3903 \begin_layout Quotation
3904 grave (gra)
3905 \begin_inset space \hfill{}
3906 \end_inset
3907
3908 àèìòù
3909 \end_layout
3910
3911 \begin_layout Quotation
3912 macron (mac)
3913 \begin_inset space \hfill{}
3914 \end_inset
3915
3916  ō
3917 \end_layout
3918
3919 \begin_layout Quotation
3920 tilde (til)
3921 \begin_inset space \hfill{}
3922 \end_inset
3923
3924 ñÑ
3925 \end_layout
3926
3927 \begin_layout Quotation
3928 underbar (underb)
3929 \begin_inset space \hfill{}
3930 \end_inset
3931
3932
3933 \begin_inset ERT
3934 status open
3935
3936 \begin_layout Plain Layout
3937
3938
3939 \backslash
3940 b o
3941 \end_layout
3942
3943 \end_inset
3944
3945
3946 \end_layout
3947
3948 \begin_layout Quotation
3949 cedilla (ced)
3950 \begin_inset space \hfill{}
3951 \end_inset
3952
3953 çÇ
3954 \end_layout
3955
3956 \begin_layout Quotation
3957 underdot (underd)
3958 \begin_inset space \hfill{}
3959 \end_inset
3960
3961
3962 \begin_inset ERT
3963 status open
3964
3965 \begin_layout Plain Layout
3966
3967
3968 \backslash
3969 d o
3970 \end_layout
3971
3972 \end_inset
3973
3974
3975 \end_layout
3976
3977 \begin_layout Quotation
3978 circumflex (circu)
3979 \begin_inset space \hfill{}
3980 \end_inset
3981
3982 âêîôû
3983 \end_layout
3984
3985 \begin_layout Quotation
3986 circle (circl)
3987 \begin_inset space \hfill{}
3988 \end_inset
3989
3990 ÅůŮ
3991 \end_layout
3992
3993 \begin_layout Quotation
3994 tie (tie)
3995 \begin_inset space \hfill{}
3996 \end_inset
3997
3998
3999 \begin_inset ERT
4000 status open
4001
4002 \begin_layout Plain Layout
4003
4004
4005 \backslash
4006 t o
4007 \end_layout
4008
4009 \end_inset
4010
4011
4012 \end_layout
4013
4014 \begin_layout Quotation
4015 breve (bre)
4016 \begin_inset space \hfill{}
4017 \end_inset
4018
4019 ă
4020 \begin_inset ERT
4021 status open
4022
4023 \begin_layout Plain Layout
4024
4025
4026 \backslash
4027 u o
4028 \end_layout
4029
4030 \end_inset
4031
4032
4033 \end_layout
4034
4035 \begin_layout Quotation
4036 caron (car)
4037 \begin_inset space \hfill{}
4038 \end_inset
4039
4040 čšž
4041 \end_layout
4042
4043 \begin_layout Quotation
4044 hungarian umlaut (hug)
4045 \begin_inset space \hfill{}
4046 \end_inset
4047
4048 őű
4049 \end_layout
4050
4051 \begin_layout Quotation
4052 umlaut (uml)
4053 \begin_inset space \hfill{}
4054 \end_inset
4055
4056 äöü
4057 \end_layout
4058
4059 \begin_layout Quotation
4060 dot (dot)
4061 \begin_inset space \hfill{}
4062 \end_inset
4063
4064 ż
4065 \begin_inset ERT
4066 status open
4067
4068 \begin_layout Plain Layout
4069
4070
4071 \backslash
4072 .s
4073 \end_layout
4074
4075 \end_inset
4076
4077
4078 \end_layout
4079
4080 \begin_layout Standard
4081 Since in many international keyboards there are exceptions to what some
4082  dead keys should do, you can define them using
4083 \end_layout
4084
4085 \begin_layout Quotation
4086 \begin_inset Flex Code
4087 status collapsed
4088
4089 \begin_layout Plain Layout
4090
4091 \backslash
4092 kxmod
4093 \end_layout
4094
4095 \end_inset
4096
4097  deadkey key outstring
4098 \end_layout
4099
4100 \begin_layout Standard
4101 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4102 , so you put in
4103 \end_layout
4104
4105 \begin_layout Quotation
4106 \begin_inset Flex Code
4107 status collapsed
4108
4109 \begin_layout Plain Layout
4110
4111 \backslash
4112 kxmod
4113 \end_layout
4114
4115 \end_inset
4116
4117  caron o "
4118 \backslash
4119 ^o"
4120 \end_layout
4121
4122 \begin_layout Standard
4123 to make it work correctly.
4124  Also, you have to define as exceptions dead keys over i and j, to remove
4125  the dot from them before inserting an accent mark.
4126  I will change this when the time comes, but so far I haven't had time.
4127 \end_layout
4128
4129 \begin_layout Standard
4130 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4131  double backslash.
4132  Also, quotes and 
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137 #
4138 \end_layout
4139
4140 \end_inset
4141
4142  have different meaning.
4143  
4144 \begin_inset Flex Code
4145 status collapsed
4146
4147 \begin_layout Plain Layout
4148 #
4149 \end_layout
4150
4151 \end_inset
4152
4153  marks comments, quotes start and end \SpecialChar LaTeX
4154 -style commands.
4155  To enter quote, you'll need to use 
4156 \begin_inset Flex Code
4157 status collapsed
4158
4159 \begin_layout Plain Layout
4160
4161 \backslash
4162 "
4163 \end_layout
4164
4165 \end_inset
4166
4167 , to enter 
4168 \begin_inset Flex Code
4169 status collapsed
4170
4171 \begin_layout Plain Layout
4172 #
4173 \end_layout
4174
4175 \end_inset
4176
4177 , use 
4178 \begin_inset Flex Code
4179 status collapsed
4180
4181 \begin_layout Plain Layout
4182
4183 \backslash
4184 #
4185 \end_layout
4186
4187 \end_inset
4188
4189 .
4190 \end_layout
4191
4192 \begin_layout Standard
4193 If you make a keyboard description file that works for your language, please
4194  mail it to me, so I can include it in the next keymap distribution.
4195 \end_layout
4196
4197 \begin_layout Standard
4198 More keywords will be supported in keymap configuration file in future,
4199  like
4200 \end_layout
4201
4202 \begin_layout Itemize
4203 \begin_inset Flex Code
4204 status collapsed
4205
4206 \begin_layout Plain Layout
4207
4208 \backslash
4209 kinclude filename
4210 \end_layout
4211
4212 \end_inset
4213
4214
4215 \emph on
4216
4217 \begin_inset space \hfill{}
4218 \end_inset
4219
4220
4221 \begin_inset Flex Code
4222 status collapsed
4223
4224 \begin_layout Plain Layout
4225 include
4226 \end_layout
4227
4228 \end_inset
4229
4230  another file
4231 \end_layout
4232
4233 \begin_layout Itemize
4234 \begin_inset Flex Code
4235 status collapsed
4236
4237 \begin_layout Plain Layout
4238
4239 \backslash
4240 kprog program
4241 \end_layout
4242
4243 \end_inset
4244
4245
4246 \emph on
4247
4248 \begin_inset space \hfill{}
4249 \end_inset
4250
4251
4252 \begin_inset Flex Code
4253 status collapsed
4254
4255 \begin_layout Plain Layout
4256 define
4257 \end_layout
4258
4259 \end_inset
4260
4261  an external keymap translation program 
4262 \end_layout
4263
4264 \begin_layout Standard
4265 Also, it should look into 
4266 \begin_inset Flex Code
4267 status collapsed
4268
4269 \begin_layout Plain Layout
4270 lyxrc
4271 \end_layout
4272
4273 \end_inset
4274
4275  file for defaults, too (for example, a 
4276 \begin_inset Flex Code
4277 status collapsed
4278
4279 \begin_layout Plain Layout
4280
4281 \backslash
4282 kinclude
4283 \end_layout
4284
4285 \end_inset
4286
4287  option to include default keyboard).
4288 \end_layout
4289
4290 \end_inset
4291
4292
4293 \end_layout
4294
4295 \begin_layout Section
4296 International Keymap Stuff
4297 \begin_inset CommandInset label
4298 LatexCommand label
4299 name "sec:International-Keymap-Stuff"
4300
4301 \end_inset
4302
4303
4304 \end_layout
4305
4306 \begin_layout Standard
4307 \begin_inset Note Note
4308 status open
4309
4310 \begin_layout Plain Layout
4311 In doing the revisions on this document in March 2008, I did not look over
4312  this stuff, as I do not understand it.
4313  It would be good if someone else could do so.
4314  (RH)
4315 \end_layout
4316
4317 \end_inset
4318
4319
4320 \end_layout
4321
4322 \begin_layout Standard
4323 The next two sections describe the 
4324 \begin_inset Flex Code
4325 status collapsed
4326
4327 \begin_layout Plain Layout
4328
4329 \shape up
4330 .kmap
4331 \end_layout
4332
4333 \end_inset
4334
4335  and 
4336 \begin_inset Flex Code
4337 status collapsed
4338
4339 \begin_layout Plain Layout
4340
4341 \shape up
4342 .cdef
4343 \end_layout
4344
4345 \end_inset
4346
4347  file syntax in detail.
4348  These sections should help you design your own key map if the ones provided
4349  do not meet your needs.
4350 \end_layout
4351
4352 \begin_layout Subsection
4353 The .kmap File
4354 \end_layout
4355
4356 \begin_layout Standard
4357
4358 \shape up
4359 .
4360 \begin_inset Flex Code
4361 status collapsed
4362
4363 \begin_layout Plain Layout
4364 kmap
4365 \end_layout
4366
4367 \end_inset
4368
4369  file maps keystrokes to characters or strings.
4370  As the name suggests, it sets a keyboard mapping.
4371  The 
4372 \begin_inset Flex Code
4373 status collapsed
4374
4375 \begin_layout Plain Layout
4376 .kmap
4377 \end_layout
4378
4379 \end_inset
4380
4381
4382 \shape default
4383  file keywords 
4384 \shape up
4385
4386 \begin_inset Flex Code
4387 status collapsed
4388
4389 \begin_layout Plain Layout
4390
4391 \shape up
4392 kmap
4393 \end_layout
4394
4395 \end_inset
4396
4397
4398 \shape default
4399 ,
4400 \shape up
4401  
4402 \shape default
4403
4404 \begin_inset Flex Code
4405 status collapsed
4406
4407 \begin_layout Plain Layout
4408
4409 \shape up
4410 kmod
4411 \end_layout
4412
4413 \end_inset
4414
4415 ,
4416 \shape up
4417  
4418 \shape default
4419
4420 \begin_inset Flex Code
4421 status collapsed
4422
4423 \begin_layout Plain Layout
4424
4425 \shape up
4426 kxmod
4427 \end_layout
4428
4429 \end_inset
4430
4431 , and 
4432 \begin_inset Flex Code
4433 status collapsed
4434
4435 \begin_layout Plain Layout
4436
4437 \shape up
4438 kcomb
4439 \end_layout
4440
4441 \end_inset
4442
4443  are described in this section.
4444 \end_layout
4445
4446 \begin_layout Labeling
4447 \labelwidthstring 00.00.0000
4448 \begin_inset Flex Code
4449 status collapsed
4450
4451 \begin_layout Plain Layout
4452
4453 \shape up
4454 kmap
4455 \end_layout
4456
4457 \end_inset
4458
4459  Map a character to a string
4460 \end_layout
4461
4462 \begin_layout LyX-Code
4463
4464 \backslash
4465 kmap 
4466 \family roman
4467 \emph on
4468 char
4469 \family default
4470 \emph default
4471  
4472 \family roman
4473 \emph on
4474 string
4475 \end_layout
4476
4477 \begin_layout Standard
4478 This will ma
4479 \family roman
4480 p
4481 \family default
4482  
4483 \family roman
4484 \emph on
4485 char
4486 \family default
4487 \emph default
4488  
4489 \family roman
4490 to
4491 \family default
4492  
4493 \family roman
4494 \emph on
4495 string
4496 \emph default
4497 .
4498  Note that in
4499 \family default
4500  
4501 \family roman
4502 \emph on
4503 string
4504 \emph default
4505 ,
4506 \family default
4507  
4508 \family roman
4509 \shape up
4510 the double-quote (")
4511 \family default
4512 \shape default
4513  
4514 \family roman
4515 and
4516 \family default
4517  
4518 \family roman
4519 \shape up
4520 the backslash (
4521 \backslash
4522 )
4523 \family default
4524 \shape default
4525  
4526 \family roman
4527 must be escaped with a preceding backslash (
4528 \shape up
4529
4530 \backslash
4531
4532 \shape default
4533 )
4534 \family default
4535 .
4536 \end_layout
4537
4538 \begin_layout Standard
4539 An example of a 
4540 \begin_inset Flex Noun
4541 status collapsed
4542
4543 \begin_layout Plain Layout
4544
4545 \shape up
4546 kmap
4547 \end_layout
4548
4549 \end_inset
4550
4551  statement to cause the symbol 
4552 \begin_inset Flex Noun
4553 status collapsed
4554
4555 \begin_layout Plain Layout
4556
4557 \shape up
4558 /
4559 \end_layout
4560
4561 \end_inset
4562
4563  to be output for the keystroke 
4564 \begin_inset Flex Noun
4565 status collapsed
4566
4567 \begin_layout Plain Layout
4568
4569 \shape up
4570 &
4571 \end_layout
4572
4573 \end_inset
4574
4575  is:
4576 \end_layout
4577
4578 \begin_layout LyX-Code
4579
4580 \backslash
4581 kmap & /
4582 \end_layout
4583
4584 \begin_layout Labeling
4585 \labelwidthstring 00.00.0000
4586 \begin_inset Flex Code
4587 status collapsed
4588
4589 \begin_layout Plain Layout
4590
4591 \shape up
4592 kmod
4593 \end_layout
4594
4595 \end_inset
4596
4597  Specify an accent character
4598 \end_layout
4599
4600 \begin_layout LyX-Code
4601
4602 \backslash
4603 kmod 
4604 \family roman
4605 \emph on
4606 char accent allowed
4607 \end_layout
4608
4609 \begin_layout Standard
4610 This will make the cha
4611 \family roman
4612 racter
4613 \family default
4614  
4615 \family roman
4616 \emph on
4617 char
4618 \family default
4619 \emph default
4620  
4621 \family roman
4622 \shape up
4623 \emph on
4624 be an accent
4625 \family default
4626 \shape default
4627 \emph default
4628  
4629 \family roman
4630 \shape up
4631 on the
4632 \family default
4633 \shape default
4634  
4635 \family roman
4636 \shape up
4637 \emph on
4638 allowed
4639 \family default
4640 \shape default
4641 \emph default
4642  
4643 \family roman
4644 \shape up
4645 cha
4646 \family default
4647 racter(s).
4648  This is the dead key
4649 \begin_inset Foot
4650 status collapsed
4651
4652 \begin_layout Plain Layout
4653 The term 
4654 \family roman
4655 \emph on
4656 dead key
4657 \family default
4658 \emph default
4659  refers to a key that does not produce a character by itself, but when followed
4660  with another key, produces the desired accent character.
4661  For example, a German characte
4662 \family roman
4663 r with an umlaut like
4664 \family default
4665  
4666 \family roman
4667 \emph on
4668 ä
4669 \family default
4670 \emph default
4671  
4672 \family roman
4673 can be produced in this manner.
4674 \end_layout
4675
4676 \end_inset
4677
4678  mechanism.
4679  
4680 \end_layout
4681
4682 \begin_layout Standard
4683 If you 
4684 \family roman
4685 hit
4686 \family default
4687  
4688 \family roman
4689 \emph on
4690 char
4691 \family default
4692 \emph default
4693  
4694 \family roman
4695 and then another key not in
4696 \family default
4697  
4698 \family roman
4699 \emph on
4700 allowed
4701 \emph default
4702 , you will get a
4703 \family default
4704  
4705 \family roman
4706 \emph on
4707 char
4708 \family default
4709 \emph default
4710  
4711 \family roman
4712 followed by the other, not allowed key, as output.
4713
4714 \family default
4715  Note that a 
4716 \begin_inset Flex Noun
4717 status collapsed
4718
4719 \begin_layout Plain Layout
4720
4721 \shape up
4722 Backspace
4723 \end_layout
4724
4725 \end_inset
4726
4727  cancels a dead key, so if 
4728 \family roman
4729 you hit
4730 \family default
4731  
4732 \family roman
4733 \emph on
4734 char
4735 \family default
4736 \emph default
4737  
4738 \begin_inset Flex Noun
4739 status collapsed
4740
4741 \begin_layout Plain Layout
4742
4743 \shape up
4744 \emph on
4745 Backspace
4746 \end_layout
4747
4748 \end_inset
4749
4750 , the cursor will not go one position backwards but will instead cancel
4751  the effect t
4752 \family roman
4753 hat
4754 \family default
4755  
4756 \family roman
4757 \shape up
4758 \emph on
4759 char
4760 \family default
4761 \shape default
4762 \emph default
4763  
4764 \family roman
4765 \shape up
4766 might have had on the next keystroke.
4767  
4768 \end_layout
4769
4770 \begin_layout Standard
4771 The following example specifies that the character ' is to be an acute accent,
4772  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4773 \end_layout
4774
4775 \begin_layout LyX-Code
4776
4777 \backslash
4778 kmod ' acute aeiouAEIOU
4779 \end_layout
4780
4781 \begin_layout Labeling
4782 \labelwidthstring 00.00.0000
4783 \begin_inset Flex Code
4784 status collapsed
4785
4786 \begin_layout Plain Layout
4787 kxmod
4788 \end_layout
4789
4790 \end_inset
4791
4792  Specify an exception to the accent character
4793 \end_layout
4794
4795 \begin_layout LyX-Code
4796
4797 \backslash
4798 kxmod  
4799 \family roman
4800 \emph on
4801 accent char result
4802 \end_layout
4803
4804 \begin_layout Standard
4805 This defines an exce
4806 \family roman
4807 ption for
4808 \family default
4809  
4810 \family roman
4811 \emph on
4812 accent
4813 \family default
4814 \emph default
4815  
4816 \family roman
4817 on
4818 \family default
4819  
4820 \family roman
4821 \emph on
4822 char
4823 \emph default
4824 .
4825  T
4826 \shape up
4827 he
4828 \family default
4829 \shape default
4830  
4831 \family roman
4832 \shape up
4833 \emph on
4834 accent
4835 \family default
4836 \shape default
4837 \emph default
4838  
4839 \family roman
4840 \shape up
4841 must
4842 \family default
4843 \shape default
4844  
4845 \shape up
4846 have been assigned a keystroke with a previous
4847 \shape default
4848  
4849 \begin_inset Flex Code
4850 status collapsed
4851
4852 \begin_layout Plain Layout
4853
4854 \shape up
4855
4856 \backslash
4857 kmo
4858 \shape default
4859 d
4860 \end_layout
4861
4862 \end_inset
4863
4864  declar
4865 \family roman
4866 ation and
4867 \family default
4868  
4869 \family roman
4870 \emph on
4871 char
4872 \family default
4873 \emph default
4874  
4875 \family roman
4876 must not belong in the
4877 \family default
4878  
4879 \family roman
4880 \emph on
4881 allowed
4882 \family default
4883 \emph default
4884  
4885 \family roman
4886 set of
4887 \family default
4888  
4889 \family roman
4890 \emph on
4891 accent
4892 \emph default
4893 .
4894  When
4895 \family default
4896  
4897 \family roman
4898 \shape up
4899 you enter the
4900 \family default
4901 \shape default
4902  
4903 \family roman
4904 \shape up
4905 \emph on
4906 accent char
4907 \family default
4908 \shape default
4909 \emph default
4910  
4911 \family roman
4912 \shape up
4913 sequence,
4914 \family default
4915 \shape default
4916  
4917 \family roman
4918 \shape up
4919 \emph on
4920 result
4921 \emph default
4922  is produced.
4923  If such a declaration does not exist in
4924 \family default
4925 \shape default
4926  
4927 \shape up
4928 the
4929 \shape default
4930  
4931 \begin_inset Flex Code
4932 status collapsed
4933
4934 \begin_layout Plain Layout
4935
4936 \shape up
4937 .kmap
4938 \end_layout
4939
4940 \end_inset
4941
4942  file and yo
4943 \family roman
4944 u enter
4945 \family default
4946  
4947 \family roman
4948 \emph on
4949 accent char
4950 \emph default
4951 , you get
4952 \family default
4953  
4954 \family roman
4955 \emph on
4956 accent_key char
4957 \emph default
4958  where
4959 \family default
4960  
4961 \family roman
4962 \emph on
4963 accent_key
4964 \emph default
4965  is the first arg
4966 \family default
4967 ument of the 
4968 \begin_inset Flex Code
4969 status collapsed
4970
4971 \begin_layout Plain Layout
4972
4973 \shape up
4974
4975 \backslash
4976 kmod
4977 \end_layout
4978
4979 \end_inset
4980
4981  declaration.
4982  
4983 \end_layout
4984
4985 \begin_layout Standard
4986 The following command produces causes äi to be produced when you enter acute-i
4987  ('i):
4988 \end_layout
4989
4990 \begin_layout LyX-Code
4991
4992 \backslash
4993 kxmod acute i "
4994 \backslash
4995
4996 \backslash
4997 '{
4998 \backslash
4999
5000 \backslash
5001 i}"
5002 \end_layout
5003
5004 \begin_layout Labeling
5005 \labelwidthstring 00.00.0000
5006 \begin_inset Flex Code
5007 status collapsed
5008
5009 \begin_layout Plain Layout
5010 kcomb
5011 \end_layout
5012
5013 \end_inset
5014
5015  Combine two accent characters
5016 \end_layout
5017
5018 \begin_layout LyX-Code
5019
5020 \backslash
5021 kcomb 
5022 \family roman
5023 \emph on
5024 accent1 accent2 allowed
5025 \end_layout
5026
5027 \begin_layout Standard
5028 This one is getting pretty esoteric.
5029  It allows you to combine the effect 
5030 \family roman
5031 of
5032 \family default
5033  
5034 \family roman
5035 \emph on
5036 accent1
5037 \family default
5038 \emph default
5039  
5040 \family roman
5041 and
5042 \family default
5043  
5044 \family roman
5045 \emph on
5046 accent2
5047 \family default
5048 \emph default
5049  
5050 \family roman
5051 (in that order!) on
5052 \family default
5053  
5054 \family roman
5055 \emph on
5056 allowed
5057 \family default
5058 \emph default
5059  
5060 \family roman
5061 chars.
5062  The keystrokes for
5063 \family default
5064  
5065 \family roman
5066 \emph on
5067 accent1
5068 \family default
5069 \emph default
5070  
5071 \family roman
5072 and
5073 \family default
5074  
5075 \family roman
5076 \emph on
5077 accent2
5078 \family default
5079 \emph default
5080  
5081 \family roman
5082 must have be
5083 \family default
5084 en set with a 
5085 \begin_inset Flex Code
5086 status collapsed
5087
5088 \begin_layout Plain Layout
5089
5090 \shape up
5091
5092 \backslash
5093 kmod
5094 \end_layout
5095
5096 \end_inset
5097
5098  command at 
5099 \family roman
5100 a
5101 \family default
5102  
5103 \family roman
5104 \emph on
5105 previous
5106 \family default
5107 \emph default
5108  
5109 \family roman
5110 point in the
5111 \family default
5112  file.
5113  
5114 \end_layout
5115
5116 \begin_layout Standard
5117 Consider this example from the 
5118 \begin_inset Flex Code
5119 status collapsed
5120
5121 \begin_layout Plain Layout
5122
5123 \shape up
5124 greek.kmap
5125 \end_layout
5126
5127 \end_inset
5128
5129  file:
5130 \end_layout
5131
5132 \begin_layout LyX-Code
5133
5134 \backslash
5135 kmod ; acute aeioyvhAEIOYVH 
5136 \backslash
5137 kmod : umlaut iyIY 
5138 \backslash
5139 kcomb acute umlaut iyIY
5140 \end_layout
5141
5142 \begin_layout Standard
5143 This allows you to press 
5144 \begin_inset Flex Noun
5145 status collapsed
5146
5147 \begin_layout Plain Layout
5148
5149 \shape up
5150 ;:i
5151 \end_layout
5152
5153 \end_inset
5154
5155  and get the effect of 
5156 \begin_inset Flex Code
5157 status collapsed
5158
5159 \begin_layout Plain Layout
5160
5161 \shape up
5162
5163 \backslash
5164 '{
5165 \backslash
5166 "{i}}
5167 \end_layout
5168
5169 \end_inset
5170
5171 .
5172  
5173 \family roman
5174 \shape up
5175 A backspace
5176 \family default
5177 \shape default
5178  in this case cancels the last dead key, so if you press 
5179 \begin_inset Flex Noun
5180 status collapsed
5181
5182 \begin_layout Plain Layout
5183
5184 \shape up
5185 ;: Backspace i
5186 \end_layout
5187
5188 \end_inset
5189
5190  you get 
5191 \begin_inset Flex Code
5192 status collapsed
5193
5194 \begin_layout Plain Layout
5195
5196 \shape up
5197
5198 \backslash
5199 '{i}
5200 \end_layout
5201
5202 \end_inset
5203
5204 .
5205 \end_layout
5206
5207 \begin_layout Subsection
5208 The .cdef File
5209 \end_layout
5210
5211 \begin_layout Standard
5212 After the 
5213 \begin_inset Flex Code
5214 status collapsed
5215
5216 \begin_layout Plain Layout
5217
5218 \shape up
5219 .kmap
5220 \end_layout
5221
5222 \end_inset
5223
5224  mapping is performed, a 
5225 \begin_inset Flex Code
5226 status collapsed
5227
5228 \begin_layout Plain Layout
5229
5230 \shape up
5231 .cde
5232 \shape default
5233 f
5234 \end_layout
5235
5236 \end_inset
5237
5238  file maps the strings that the symbols generate to characters in the current
5239  font.
5240  The \SpecialChar LyX
5241  distribution currently includes at least the 
5242 \begin_inset Flex Code
5243 status collapsed
5244
5245 \begin_layout Plain Layout
5246
5247 \shape up
5248 iso8859-1.cdef
5249 \end_layout
5250
5251 \end_inset
5252
5253  and 
5254 \begin_inset Flex Code
5255 status collapsed
5256
5257 \begin_layout Plain Layout
5258
5259 \shape up
5260 iso8859-2.cdef
5261 \end_layout
5262
5263 \end_inset
5264
5265  files.
5266 \end_layout
5267
5268 \begin_layout Standard
5269 In general the 
5270 \begin_inset Flex Code
5271 status collapsed
5272
5273 \begin_layout Plain Layout
5274
5275 \shape up
5276 .cdef
5277 \end_layout
5278
5279 \end_inset
5280
5281  file is a sequence of declarations of the form
5282 \end_layout
5283
5284 \begin_layout LyX-Code
5285
5286 \family roman
5287 \emph on
5288 char_index_in_set
5289 \family default
5290 \emph default
5291  
5292 \family roman
5293 \emph on
5294  string
5295 \end_layout
5296
5297 \begin_layout Standard
5298 For example, in order to map 
5299 \begin_inset Flex Noun
5300 status collapsed
5301
5302 \begin_layout Plain Layout
5303
5304 \shape up
5305
5306 \backslash
5307 '{e}
5308 \end_layout
5309
5310 \end_inset
5311
5312  to the corresponding character in the iso-8859-1 set (233), the following
5313  declaration is used
5314 \end_layout
5315
5316 \begin_layout LyX-Code
5317 233 "
5318 \backslash
5319
5320 \backslash
5321 '{e}"
5322 \end_layout
5323
5324 \begin_layout Standard
5325 with 
5326 \begin_inset Flex Code
5327 status collapsed
5328
5329 \begin_layout Plain Layout
5330
5331 \backslash
5332
5333 \end_layout
5334
5335 \end_inset
5336
5337  and 
5338 \begin_inset Flex Code
5339 status collapsed
5340
5341 \begin_layout Plain Layout
5342 "
5343 \end_layout
5344
5345 \end_inset
5346
5347  being escap
5348 \family roman
5349 ed in
5350 \family default
5351  
5352 \family roman
5353 \emph on
5354 string
5355 \emph default
5356 .
5357  Note that
5358 \family default
5359  the same character can apply to more than one string.
5360  In the 
5361 \begin_inset Flex Code
5362 status collapsed
5363
5364 \begin_layout Plain Layout
5365 i
5366 \shape up
5367 so-8859-7.cdef
5368 \end_layout
5369
5370 \end_inset
5371
5372  file you have
5373 \end_layout
5374
5375 \begin_layout LyX-Code
5376 192 "
5377 \backslash
5378
5379 \backslash
5380 '{
5381 \backslash
5382
5383 \backslash
5384
5385 \backslash
5386 "{i}}"
5387 \begin_inset Newline newline
5388 \end_inset
5389
5390 192 "
5391 \backslash
5392
5393 \backslash
5394
5395 \backslash
5396 "{
5397 \backslash
5398
5399 \backslash
5400 '{i}}"
5401 \end_layout
5402
5403 \begin_layout Standard
5404 If \SpecialChar LyX
5405  cannot find a mapping for the string produced by the keystroke or a
5406  deadkey sequence, it will check if it looks like an accented char and try
5407  to draw an accent over the character on screen.
5408 \end_layout
5409
5410 \begin_layout Subsection
5411 Dead Keys
5412 \end_layout
5413
5414 \begin_layout Standard
5415 There is a second way to add support for international characters through
5416  so-called dead-keys.
5417  A dead-key works in combination with a letter to produce an accented character.
5418  Here, we'll explain how to create a really simple dead-key to illustrate
5419  how they work.
5420 \end_layout
5421
5422 \begin_layout Standard
5423 Suppose you happen to need the circumflex character, 
5424 \begin_inset Quotes eld
5425 \end_inset
5426
5427  ̂
5428 \begin_inset Quotes erd
5429 \end_inset
5430
5431 .
5432  You could bind the 
5433 \begin_inset Flex Noun
5434 status collapsed
5435
5436 \begin_layout Plain Layout
5437 ^
5438 \end_layout
5439
5440 \end_inset
5441
5442 -key [a.k.a.
5443 \begin_inset space ~
5444 \end_inset
5445
5446
5447 \begin_inset Flex Noun
5448 status collapsed
5449
5450 \begin_layout Plain Layout
5451 Shift-6
5452 \end_layout
5453
5454 \end_inset
5455
5456 ] to the \SpecialChar LyX
5457  command 
5458 \begin_inset Flex Code
5459 status collapsed
5460
5461 \begin_layout Plain Layout
5462 accent-circumflex
5463 \end_layout
5464
5465 \end_inset
5466
5467  in your 
5468 \begin_inset Flex Code
5469 status collapsed
5470
5471 \begin_layout Plain Layout
5472 lyxrc
5473 \end_layout
5474
5475 \end_inset
5476
5477  file.
5478  Now, whenever you type the 
5479 \begin_inset Flex Noun
5480 status collapsed
5481
5482 \begin_layout Plain Layout
5483 ^
5484 \end_layout
5485
5486 \end_inset
5487
5488 -key followed by a letter, that letter will have a circumflex accent on
5489  it.
5490  For example, the sequence 
5491 \begin_inset Quotes eld
5492 \end_inset
5493
5494
5495 \begin_inset Flex Noun
5496 status collapsed
5497
5498 \begin_layout Plain Layout
5499 ^e
5500 \end_layout
5501
5502 \end_inset
5503
5504
5505 \begin_inset Quotes erd
5506 \end_inset
5507
5508  produces the letter: 
5509 \begin_inset Quotes eld
5510 \end_inset
5511
5512 ê
5513 \begin_inset Quotes erd
5514 \end_inset
5515
5516 .
5517  If you tried to type 
5518 \begin_inset Quotes eld
5519 \end_inset
5520
5521
5522 \begin_inset Flex Noun
5523 status collapsed
5524
5525 \begin_layout Plain Layout
5526 ^t
5527 \end_layout
5528
5529 \end_inset
5530
5531
5532 \begin_inset Quotes erd
5533 \end_inset
5534
5535 , however, \SpecialChar LyX
5536  will complain with a beep, since a 
5537 \begin_inset Quotes eld
5538 \end_inset
5539
5540
5541 \begin_inset Flex Noun
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 t
5546 \end_layout
5547
5548 \end_inset
5549
5550
5551 \begin_inset Quotes erd
5552 \end_inset
5553
5554  never takes a circumflex accent.
5555  Hitting 
5556 \begin_inset Flex Noun
5557 status collapsed
5558
5559 \begin_layout Plain Layout
5560 Space
5561 \end_layout
5562
5563 \end_inset
5564
5565  after a dead-key produces the bare-accent.
5566  Please note this last point! If you bind a key to a dead-key, you'll need
5567  to rebind the character on that key to yet another key.
5568  Binding the 
5569 \begin_inset Flex Noun
5570 status collapsed
5571
5572 \begin_layout Plain Layout
5573 ,-key
5574 \end_layout
5575
5576 \end_inset
5577
5578  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5579 \end_layout
5580
5581 \begin_layout Standard
5582 One common way to bind dead-keys is to use 
5583 \begin_inset Flex Noun
5584 status collapsed
5585
5586 \begin_layout Plain Layout
5587 Meta-
5588 \end_layout
5589
5590 \end_inset
5591
5592
5593 \begin_inset Flex Noun
5594 status collapsed
5595
5596 \begin_layout Plain Layout
5597 Ctrl-
5598 \end_layout
5599
5600 \end_inset
5601
5602 , and 
5603 \begin_inset Flex Noun
5604 status collapsed
5605
5606 \begin_layout Plain Layout
5607 Shift-
5608 \end_layout
5609
5610 \end_inset
5611
5612  in combination with an accent, like 
5613 \begin_inset Quotes eld
5614 \end_inset
5615
5616
5617 \begin_inset Flex Noun
5618 status collapsed
5619
5620 \begin_layout Plain Layout
5621 ~
5622 \end_layout
5623
5624 \end_inset
5625
5626
5627 \begin_inset Quotes erd
5628 \end_inset
5629
5630  or 
5631 \begin_inset Quotes eld
5632 \end_inset
5633
5634
5635 \begin_inset Flex Noun
5636 status collapsed
5637
5638 \begin_layout Plain Layout
5639 ,
5640 \end_layout
5641
5642 \end_inset
5643
5644
5645 \begin_inset Quotes erd
5646 \end_inset
5647
5648  or 
5649 \begin_inset Quotes eld
5650 \end_inset
5651
5652
5653 \begin_inset Flex Noun
5654 status collapsed
5655
5656 \begin_layout Plain Layout
5657 ^
5658 \end_layout
5659
5660 \end_inset
5661
5662
5663 \begin_inset Quotes erd
5664 \end_inset
5665
5666 .
5667  Another way involves using 
5668 \begin_inset Flex Code
5669 status collapsed
5670
5671 \begin_layout Plain Layout
5672 xmodmap
5673 \end_layout
5674
5675 \end_inset
5676
5677  and 
5678 \begin_inset Flex Code
5679 status collapsed
5680
5681 \begin_layout Plain Layout
5682 xkeycaps
5683 \end_layout
5684
5685 \end_inset
5686
5687  to set up the special 
5688 \begin_inset Flex Code
5689 status collapsed
5690
5691 \begin_layout Plain Layout
5692 Mode_Switch
5693 \end_layout
5694
5695 \end_inset
5696
5697  key.
5698  The 
5699 \begin_inset Flex Code
5700 status collapsed
5701
5702 \begin_layout Plain Layout
5703 Mode_Switch
5704 \end_layout
5705
5706 \end_inset
5707
5708  acts in some ways just like 
5709 \begin_inset Flex Noun
5710 status collapsed
5711
5712 \begin_layout Plain Layout
5713 Shift
5714 \end_layout
5715
5716 \end_inset
5717
5718  and permits you to bind keys to accented characters.
5719  You can also turn keys into dead-keys by binding them to something like
5720  
5721 \begin_inset Flex Code
5722 status collapsed
5723
5724 \begin_layout Plain Layout
5725 usldead_cedilla
5726 \end_layout
5727
5728 \end_inset
5729
5730  and then binding this symbolic key to the corresponding \SpecialChar LyX
5731  command.
5732 \begin_inset Foot
5733 status collapsed
5734
5735 \begin_layout Plain Layout
5736 Note from 
5737 \noun on
5738 John Weiss
5739 \noun default
5740 : This is exactly what I do in my 
5741 \begin_inset Flex Code
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745 ~/.lyx/lyxrc
5746 \end_layout
5747
5748 \end_inset
5749
5750  and my 
5751 \begin_inset Flex Code
5752 status collapsed
5753
5754 \begin_layout Plain Layout
5755 ~/.xmodmap
5756 \end_layout
5757
5758 \end_inset
5759
5760  files.
5761  I have my 
5762 \begin_inset Flex Noun
5763 status collapsed
5764
5765 \begin_layout Plain Layout
5766 Scroll
5767 \begin_inset space ~
5768 \end_inset
5769
5770 Lock
5771 \end_layout
5772
5773 \end_inset
5774
5775  key set up as 
5776 \begin_inset Flex Code
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 Mode_Shift
5781 \end_layout
5782
5783 \end_inset
5784
5785  and a bunch of these 
5786 \begin_inset Quotes eld
5787 \end_inset
5788
5789
5790 \begin_inset Flex Code
5791 status collapsed
5792
5793 \begin_layout Plain Layout
5794 usldead_*
5795 \end_layout
5796
5797 \end_inset
5798
5799
5800 \begin_inset Quotes erd
5801 \end_inset
5802
5803  symbolic keys bound such things as 
5804 \begin_inset Flex Noun
5805 status collapsed
5806
5807 \begin_layout Plain Layout
5808 Scroll
5809 \begin_inset space ~
5810 \end_inset
5811
5812 Lock-^
5813 \end_layout
5814
5815 \end_inset
5816
5817  and 
5818 \begin_inset Flex Noun
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822 Scroll
5823 \begin_inset space ~
5824 \end_inset
5825
5826 Lock-~
5827 \end_layout
5828
5829 \end_inset
5830
5831 .
5832  This is how I produce my accented characters.
5833 \end_layout
5834
5835 \end_inset
5836
5837  You can make just about anything into the 
5838 \begin_inset Flex Code
5839 status collapsed
5840
5841 \begin_layout Plain Layout
5842 Mode_Switch
5843 \end_layout
5844
5845 \end_inset
5846
5847  key: One of the 
5848 \begin_inset Flex Noun
5849 status collapsed
5850
5851 \begin_layout Plain Layout
5852 Ctrl-
5853 \end_layout
5854
5855 \end_inset
5856
5857  keys, a spare function key, etc.
5858  As for the \SpecialChar LyX
5859  commands that produce accents, check the entry for 
5860 \begin_inset Flex Code
5861 status collapsed
5862
5863 \begin_layout Plain Layout
5864 accent-acute
5865 \end_layout
5866
5867 \end_inset
5868
5869  in the 
5870 \emph on
5871 Reference Manual
5872 \emph default
5873 .
5874  You'll find the complete list there.
5875 \end_layout
5876
5877 \begin_layout Subsection
5878 Saving your Language Configuration
5879 \end_layout
5880
5881 \begin_layout Standard
5882 You can edit your preferences so that your desired language environment
5883  is automatically configured when \SpecialChar LyX
5884  starts up, via the 
5885 \begin_inset Flex Noun
5886 status collapsed
5887
5888 \begin_layout Plain Layout
5889 Edit\SpecialChar menuseparator
5890 Preferences
5891 \end_layout
5892
5893 \end_inset
5894
5895  dialog.
5896 \end_layout
5897
5898 \begin_layout Chapter
5899 Installing New Document Classes, Layouts, and Templates
5900 \begin_inset CommandInset label
5901 LatexCommand label
5902 name "cha:Installing-New-Document"
5903
5904 \end_inset
5905
5906
5907 \begin_inset Argument 1
5908 status collapsed
5909
5910 \begin_layout Plain Layout
5911 Installing New Document Classes
5912 \end_layout
5913
5914 \end_inset
5915
5916
5917 \end_layout
5918
5919 \begin_layout Standard
5920 In this chapter, we describe the procedures for creating and installing
5921  new \SpecialChar LyX
5922  layout and template files, as well as offer a refresher on correctly
5923  installing new \SpecialChar LaTeX
5924  document classes.
5925  
5926 \end_layout
5927
5928 \begin_layout Standard
5929 First, let us a say a few words about how one ought to think about the relation
5930  between \SpecialChar LyX
5931  and \SpecialChar LaTeX
5932 .
5933  The thing to understand is that, in a certain sense, \SpecialChar LyX
5934  doesn't know anything
5935  about \SpecialChar LaTeX
5936 .
5937  Indeed, from \SpecialChar LyX
5938 's point of view, \SpecialChar LaTeX
5939  is just one of several 
5940 \begin_inset Quotes eld
5941 \end_inset
5942
5943 backend formats
5944 \begin_inset Quotes erd
5945 \end_inset
5946
5947  in which it is capable of producing output.
5948  Other such formats are DocBook, plaintext, and XHTML.
5949  \SpecialChar LaTeX
5950  is, of course, a particularly important format, but very little of the
5951  information \SpecialChar LyX
5952  has about \SpecialChar LaTeX
5953  is actually contained in the program itself.
5954 \begin_inset Foot
5955 status collapsed
5956
5957 \begin_layout Plain Layout
5958 Some commands are sufficiently complex that they are 
5959 \begin_inset Quotes eld
5960 \end_inset
5961
5962 hardcoded
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966  into \SpecialChar LyX
5967 .
5968  But the developers generally regard this as a Bad Thing.
5969 \end_layout
5970
5971 \end_inset
5972
5973  Rather, that information, even for the standard classes like 
5974 \begin_inset Flex Code
5975 status collapsed
5976
5977 \begin_layout Plain Layout
5978 article.cls
5979 \end_layout
5980
5981 \end_inset
5982
5983 , is contained in `layout files'.
5984  Similarly, \SpecialChar LyX
5985  itself does not know much about DocBook or XHTML.
5986  What it knows is contained in layout files.
5987 \end_layout
5988
5989 \begin_layout Standard
5990 You can think of the layout file for a given document class as a translation
5991  manual between \SpecialChar LyX
5992  constructs—paragraphs with their corresponding styles,
5993  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5994 , DocBook, or XHTML
5995  constructs.
5996  Almost everything \SpecialChar LyX
5997  knows about 
5998 \begin_inset Flex Code
5999 status collapsed
6000
6001 \begin_layout Plain Layout
6002 article.cls
6003 \end_layout
6004
6005 \end_inset
6006
6007 , for example, is contained in the file 
6008 \begin_inset Flex Code
6009 status collapsed
6010
6011 \begin_layout Plain Layout
6012 article.layout
6013 \end_layout
6014
6015 \end_inset
6016
6017  and in various other files it includes.
6018  For this reason, anyone intending to write layout files should plan to
6019  study the existing files.
6020  A good place to start is with 
6021 \begin_inset Flex Code
6022 status collapsed
6023
6024 \begin_layout Plain Layout
6025 stdsections.inc
6026 \end_layout
6027
6028 \end_inset
6029
6030 , which is included in 
6031 \begin_inset Flex Code
6032 status collapsed
6033
6034 \begin_layout Plain Layout
6035 article.layout
6036 \end_layout
6037
6038 \end_inset
6039
6040
6041 \begin_inset Flex Code
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045 book.layout
6046 \end_layout
6047
6048 \end_inset
6049
6050 , and many of the other layout files for document classes.
6051  This file is where sections and the like are defined: 
6052 \begin_inset Flex Code
6053 status collapsed
6054
6055 \begin_layout Plain Layout
6056 stdsections.inc
6057 \end_layout
6058
6059 \end_inset
6060
6061  tells \SpecialChar LyX
6062  how paragraphs that are marked with the Section, Subsection, etc,
6063  styles can be translated into corresponding \SpecialChar LaTeX
6064 , DocBook, and XHTML commands
6065  and tags.
6066  The 
6067 \begin_inset Flex Code
6068 status collapsed
6069
6070 \begin_layout Plain Layout
6071 article.layout
6072 \end_layout
6073
6074 \end_inset
6075
6076  file basically just includes several of these 
6077 \begin_inset Flex Code
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081 std*.inc
6082 \end_layout
6083
6084 \end_inset
6085
6086  files.
6087 \end_layout
6088
6089 \begin_layout Standard
6090 Defining the \SpecialChar LyX
6091 –\SpecialChar LaTeX
6092  correspondence is not the only thing layout files do, though.
6093  Their other job is to define how the \SpecialChar LyX
6094  constructs themselves will appear
6095  on-screen.
6096  The fact that layout files have these two jobs is often a source of confusion,
6097  because they are completely separate.
6098  Telling \SpecialChar LyX
6099  how to translate a certain paragraph style into \SpecialChar LaTeX
6100  does not tell
6101  \SpecialChar LyX
6102  how to display it; conversely, telling \SpecialChar LyX
6103  how to display a certain paragraph
6104  style does not tell \SpecialChar LyX
6105  how to translate it into \SpecialChar LaTeX
6106  (let alone tell \SpecialChar LaTeX
6107  how to
6108  display it).
6109  So, in general, when you define a new \SpecialChar LyX
6110  construct, you must always do two
6111  quite separate things: (i)
6112 \begin_inset space ~
6113 \end_inset
6114
6115 tell \SpecialChar LyX
6116  how to translate it into \SpecialChar LaTeX
6117  and (ii)
6118 \begin_inset space ~
6119 \end_inset
6120
6121 tell \SpecialChar LyX
6122  how to display it.
6123 \end_layout
6124
6125 \begin_layout Standard
6126 Much the same is true, of course, as regards \SpecialChar LyX
6127 's other backend formats, though
6128  XHTML is in some ways different, because in that case \SpecialChar LyX
6129  
6130 \emph on
6131 is
6132 \emph default
6133  able, to some extent, to use information about how it should display a
6134  paragraph on the screen to output information (in the form of CSS) about
6135  how the paragraph should be displayed in a browser.
6136  Even in this case, however, the distinction between what \SpecialChar LyX
6137  does internally
6138  and how things are rendered externally remains in force, and the two can
6139  be controlled separately.
6140  See 
6141 \begin_inset CommandInset ref
6142 LatexCommand ref
6143 reference "sec:Tags-for-XHTML"
6144
6145 \end_inset
6146
6147  for the details.
6148 \end_layout
6149
6150 \begin_layout Section
6151 Installing new \SpecialChar LaTeX
6152  files
6153 \end_layout
6154
6155 \begin_layout Standard
6156 Some installations may not include a \SpecialChar LaTeX
6157  package or class file that you would
6158  like to use within \SpecialChar LyX
6159 .
6160  For example, you might need Foil\SpecialChar TeX
6161 , a package for preparing slides for overhead
6162  projectors.
6163  Modern \SpecialChar LaTeX
6164  distributions like \SpecialChar TeX
6165 Live (2008 or newer) or MiK\SpecialChar TeX
6166  provide a user interface
6167  for installing such packages.
6168  For example, with MiK\SpecialChar TeX
6169 , you start the program 
6170 \begin_inset Quotes eld
6171 \end_inset
6172
6173 Package
6174 \begin_inset space ~
6175 \end_inset
6176
6177 Manager
6178 \begin_inset Quotes erd
6179 \end_inset
6180
6181  to get a list of available packages.
6182  To install one of them, right click on it or use the corresponding toolbar
6183  button.
6184 \end_layout
6185
6186 \begin_layout Standard
6187 If your \SpecialChar LaTeX
6188  distribution does not provide such a `package manager', or if the
6189  package is not available from your distribution, then follow these steps
6190  to install it manually:
6191 \end_layout
6192
6193 \begin_layout Enumerate
6194 Get the package from 
6195 \begin_inset CommandInset href
6196 LatexCommand href
6197 name "CTAN"
6198 target "http://www.ctan.org/"
6199 literal "false"
6200
6201 \end_inset
6202
6203  or wherever.
6204 \end_layout
6205
6206 \begin_layout Enumerate
6207 If the package contains a file with the ending 
6208 \begin_inset Quotes eld
6209 \end_inset
6210
6211
6212 \begin_inset Flex Code
6213 status collapsed
6214
6215 \begin_layout Plain Layout
6216 .ins
6217 \end_layout
6218
6219 \end_inset
6220
6221
6222 \begin_inset Quotes erd
6223 \end_inset
6224
6225  (is the case for Foil\SpecialChar TeX
6226 ) then open a console, change to the folder of this
6227  file and execute the command 
6228 \begin_inset Flex Code
6229 status collapsed
6230
6231 \begin_layout Plain Layout
6232 latex foiltex.ins
6233 \end_layout
6234
6235 \end_inset
6236
6237 .
6238  You have now unpacked the package and have all files to install it.
6239  Most \SpecialChar LaTeX
6240 -packages are not packed and you can skip this step.
6241 \end_layout
6242
6243 \begin_layout Enumerate
6244 Now you need to decide if the package should be available for all users
6245  or only for you.
6246 \end_layout
6247
6248 \begin_deeper
6249 \begin_layout Enumerate
6250 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6251  for all users on your system, then install it in your `local' \SpecialChar TeX
6252  tree, otherwise
6253  install it in your own `user' \SpecialChar TeX
6254  tree.
6255  Where these trees should be created, if they do not already exist, depends
6256  on your system.
6257  To find this out, look in the file 
6258 \begin_inset Flex Code
6259 status collapsed
6260
6261 \begin_layout Plain Layout
6262 texmf.cnf
6263 \end_layout
6264
6265 \end_inset
6266
6267 .
6268 \begin_inset Foot
6269 status collapsed
6270
6271 \begin_layout Plain Layout
6272 This is usually in the directory 
6273 \begin_inset Flex Code
6274 status collapsed
6275
6276 \begin_layout Plain Layout
6277 $TEXMF/web2c
6278 \end_layout
6279
6280 \end_inset
6281
6282 , though you can execute the command 
6283 \begin_inset Flex Code
6284 status collapsed
6285
6286 \begin_layout Plain Layout
6287 kpsewhich texmf.cnf
6288 \end_layout
6289
6290 \end_inset
6291
6292  to locate it.
6293 \end_layout
6294
6295 \end_inset
6296
6297  The location of the `local' \SpecialChar TeX
6298  tree is defined by the 
6299 \begin_inset Flex Code
6300 status collapsed
6301
6302 \begin_layout Plain Layout
6303 TEXMFLOCAL
6304 \end_layout
6305
6306 \end_inset
6307
6308  variable; this is usually somewhere like 
6309 \begin_inset Flex Code
6310 status collapsed
6311
6312 \begin_layout Plain Layout
6313 /usr/local/share/texmf
6314 \end_layout
6315
6316 \end_inset
6317
6318  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6319 Live
6320  distribution.
6321  The location of the `user' \SpecialChar TeX
6322  tree is defined by 
6323 \begin_inset Flex Code
6324 status collapsed
6325
6326 \begin_layout Plain Layout
6327 TEXMFHOME
6328 \end_layout
6329
6330 \end_inset
6331
6332  and is commonly 
6333 \begin_inset Flex Code
6334 status collapsed
6335
6336 \begin_layout Plain Layout
6337 $HOME/texmf
6338 \end_layout
6339
6340 \end_inset
6341
6342  or 
6343 \begin_inset Flex Code
6344 status collapsed
6345
6346 \begin_layout Plain Layout
6347
6348 \family sans
6349 $HOME/.texliveXXXX
6350 \end_layout
6351
6352 \end_inset
6353
6354 .
6355  (If these variables are not predefined, you have to define them.) You'll
6356  probably need root permissions to create or modify the `local' tree, but
6357  not for your `user' tree.
6358 \begin_inset Newline newline
6359 \end_inset
6360
6361 In general, it is recommended to install in the user tree because your user
6362  will not be modified or even overwritten when you upgrade your system.
6363  It will typically also be backed up together with everything else when
6364  you backup your home directory (which, of course, you do on a regular basis).
6365 \end_layout
6366
6367 \begin_layout Enumerate
6368 On Windows, if you want the new package to be available for all users on
6369  your system, change to the folder where \SpecialChar LaTeX
6370  is installed and then change to
6371  the subfolder 
6372 \begin_inset Flex Code
6373 status collapsed
6374
6375 \begin_layout Plain Layout
6376 ~
6377 \backslash
6378 tex
6379 \backslash
6380 latex
6381 \end_layout
6382
6383 \end_inset
6384
6385 .
6386  (For MiK\SpecialChar TeX
6387 , this would be by default the folder 
6388 \begin_inset Flex Code
6389 status collapsed
6390
6391 \begin_layout Plain Layout
6392 ~:
6393 \backslash
6394 Programs
6395 \backslash
6396 MiKTeX
6397 \backslash
6398 tex
6399 \backslash
6400 latex
6401 \end_layout
6402
6403 \end_inset
6404
6405 .)
6406 \begin_inset Foot
6407 status collapsed
6408
6409 \begin_layout Plain Layout
6410 Note that this will be the correct path only on English installations.
6411  On a German one, it would be 
6412 \begin_inset Flex Code
6413 status collapsed
6414
6415 \begin_layout Plain Layout
6416 ~:
6417 \backslash
6418 Programme
6419 \backslash
6420 MiKTeX
6421 \backslash
6422 tex
6423 \backslash
6424 latex
6425 \end_layout
6426
6427 \end_inset
6428
6429 , and similarly for other languages.
6430 \end_layout
6431
6432 \end_inset
6433
6434  Create there a new folder 
6435 \begin_inset Flex Code
6436 status collapsed
6437
6438 \begin_layout Plain Layout
6439 foiltex
6440 \end_layout
6441
6442 \end_inset
6443
6444  and copy all files of the package into it.
6445  
6446 \begin_inset Newline newline
6447 \end_inset
6448
6449 If the package should only available for you or you don't have admin permissions
6450 , do the same, but in the local \SpecialChar LaTeX
6451  folder.
6452  E.
6453 \begin_inset space \thinspace{}
6454 \end_inset
6455
6456 g., for MiK\SpecialChar TeX
6457
6458 \begin_inset space ~
6459 \end_inset
6460
6461 2.8 under Windows XP, this would be the folder:
6462 \begin_inset Newline newline
6463 \end_inset
6464
6465
6466 \family sans
6467
6468 \begin_inset Flex Code
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472 ~:
6473 \backslash
6474 Documents and Settings
6475 \backslash
6476 <username>
6477 \backslash
6478 Application Data
6479 \backslash
6480
6481 \end_layout
6482
6483 \end_inset
6484
6485
6486 \begin_inset Newline newline
6487 \end_inset
6488
6489
6490 \family default
6491
6492 \begin_inset Phantom HPhantom
6493 status open
6494
6495 \begin_layout Plain Layout
6496
6497 \family sans
6498 ~:
6499 \backslash
6500
6501 \end_layout
6502
6503 \end_inset
6504
6505
6506 \begin_inset Flex Code
6507 status collapsed
6508
6509 \begin_layout Plain Layout
6510 MiKTeX
6511 \backslash
6512 2.8
6513 \backslash
6514 tex
6515 \backslash
6516 latex
6517 \end_layout
6518
6519 \end_inset
6520
6521
6522 \begin_inset Newline newline
6523 \end_inset
6524
6525 On Vista, it would be:
6526 \begin_inset Newline newline
6527 \end_inset
6528
6529
6530 \begin_inset Flex Code
6531 status collapsed
6532
6533 \begin_layout Plain Layout
6534 ~:
6535 \backslash
6536 Users
6537 \backslash
6538 <username>
6539 \backslash
6540 AppData
6541 \backslash
6542 Roaming
6543 \backslash
6544 2.8
6545 \backslash
6546 MiKTeX
6547 \backslash
6548 tex
6549 \backslash
6550 latex
6551 \end_layout
6552
6553 \end_inset
6554
6555
6556 \end_layout
6557
6558 \end_deeper
6559 \begin_layout Enumerate
6560 Now one only need to tell \SpecialChar LaTeX
6561  that there are new files.
6562  This depends on the used \SpecialChar LaTeX
6563 -Distribution:
6564 \end_layout
6565
6566 \begin_deeper
6567 \begin_layout Enumerate
6568 For \SpecialChar TeX
6569 Live execute the command 
6570 \begin_inset Flex Code
6571 status collapsed
6572
6573 \begin_layout Plain Layout
6574 texhash
6575 \end_layout
6576
6577 \end_inset
6578
6579  from a console.
6580  If you installed the package for all users, then you will probably need
6581  to have root permissions for that.
6582 \end_layout
6583
6584 \begin_layout Enumerate
6585 For MiK\SpecialChar TeX
6586 , if you have installed the package for all users, start the program
6587  
6588 \begin_inset Quotes eld
6589 \end_inset
6590
6591 Settings
6592 \begin_inset space ~
6593 \end_inset
6594
6595 (Admin)
6596 \begin_inset Quotes erd
6597 \end_inset
6598
6599  and press the button marked 
6600 \begin_inset Quotes eld
6601 \end_inset
6602
6603 Refresh FNDB
6604 \begin_inset Quotes erd
6605 \end_inset
6606
6607 .
6608  Otherwise start the program 
6609 \begin_inset Quotes eld
6610 \end_inset
6611
6612 Settings
6613 \begin_inset Quotes erd
6614 \end_inset
6615
6616  and do the same.
6617 \end_layout
6618
6619 \end_deeper
6620 \begin_layout Enumerate
6621 Finally, you need to tell \SpecialChar LyX
6622  that there are new packages available.
6623  So, in \SpecialChar LyX
6624 , use the menu 
6625 \begin_inset Flex Noun
6626 status collapsed
6627
6628 \begin_layout Plain Layout
6629 Tools
6630 \family sans
6631 \SpecialChar menuseparator
6632 Reconfigure
6633 \end_layout
6634
6635 \end_inset
6636
6637  and then restart \SpecialChar LyX
6638 .
6639 \end_layout
6640
6641 \begin_layout Standard
6642 Now the package is installed.
6643  In our example, the document class 
6644 \begin_inset Flex Code
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 FoilTex
6649 \end_layout
6650
6651 \end_inset
6652
6653  will now be available under 
6654 \begin_inset Flex Noun
6655 status collapsed
6656
6657 \begin_layout Plain Layout
6658 Document\SpecialChar menuseparator
6659 Settings\SpecialChar menuseparator
6660 Document Class
6661 \end_layout
6662
6663 \end_inset
6664
6665  (in the 
6666 \begin_inset Quotes eld
6667 \end_inset
6668
6669 Presentations
6670 \begin_inset Quotes erd
6671 \end_inset
6672
6673  category).
6674  
6675 \end_layout
6676
6677 \begin_layout Standard
6678 If you would like to use a \SpecialChar LaTeX
6679  document class that is not even listed in the
6680  menu 
6681 \begin_inset Flex Noun
6682 status collapsed
6683
6684 \begin_layout Plain Layout
6685 Document\SpecialChar menuseparator
6686 Settings\SpecialChar menuseparator
6687 Document Class
6688 \end_layout
6689
6690 \end_inset
6691
6692 , then you need to create a `layout' file for it.
6693  That is the topic of the next section.
6694 \end_layout
6695
6696 \begin_layout Section
6697 Types of layout files
6698 \end_layout
6699
6700 \begin_layout Standard
6701 This section describes the various sorts of \SpecialChar LyX
6702  files that contain layout informati
6703 on.
6704  These files describe various paragraph and character styles, determining
6705  how \SpecialChar LyX
6706  should display them and how they should be translated into \SpecialChar LaTeX
6707 , DocBook,
6708  XHTML, or whatever output format is being used.
6709  
6710 \end_layout
6711
6712 \begin_layout Standard
6713 We shall try to provide a thorough description of the process of writing
6714  layout files here.
6715  However, there are so many different types of documents supported even
6716  by just \SpecialChar LaTeX
6717  that we can't hope to cover every different possibility or problem
6718  you might encounter.
6719  The \SpecialChar LyX
6720  users' list is frequented by people with lots of experience with layout
6721  design who are willing to share what they've learned, so please feel free
6722  to ask questions there.
6723 \end_layout
6724
6725 \begin_layout Standard
6726 As you prepare to write a new layout, it is extremely helpful to look at
6727  the layouts distributed with \SpecialChar LyX
6728 .
6729  If you write a \SpecialChar LyX
6730  layout for a \SpecialChar LaTeX
6731  document class that might also be used by
6732  others, or write a module that might be useful to others, then you should
6733  consider posting your layout to the 
6734 \begin_inset CommandInset href
6735 LatexCommand href
6736 name "layout section on the LyX wiki"
6737 target "https://wiki.lyx.org/Layouts/Layouts"
6738 literal "false"
6739
6740 \end_inset
6741
6742  or even to the \SpecialChar LyX
6743  developers' list, so that it might be included in \SpecialChar LyX
6744  itself.
6745 \begin_inset Foot
6746 status collapsed
6747
6748 \begin_layout Plain Layout
6749 Note that \SpecialChar LyX
6750  is licensed under the General Public License, so any material
6751  that is contributed to \SpecialChar LyX
6752  must be similarly licensed.
6753 \end_layout
6754
6755 \end_inset
6756
6757
6758 \end_layout
6759
6760 \begin_layout Subsection
6761 Layout modules
6762 \begin_inset CommandInset label
6763 LatexCommand label
6764 name "subsec:Layout-modules"
6765
6766 \end_inset
6767
6768
6769 \end_layout
6770
6771 \begin_layout Standard
6772 We have spoken to this point about `layout files'.
6773  But there are different sorts of files that contain layout information.
6774  Layout files, strictly so called, have the 
6775 \begin_inset Flex Code
6776 status collapsed
6777
6778 \begin_layout Plain Layout
6779 .layout
6780 \end_layout
6781
6782 \end_inset
6783
6784  extension and provide \SpecialChar LyX
6785  with information about document classes.
6786  Since \SpecialChar LyX
6787  1.6 layout information can also be contained in layout 
6788 \emph on
6789 modules
6790 \emph default
6791 , which have the 
6792 \begin_inset Flex Code
6793 status collapsed
6794
6795 \begin_layout Plain Layout
6796 .module
6797 \end_layout
6798
6799 \end_inset
6800
6801  extension.
6802  Modules are to \SpecialChar LaTeX
6803  packages much as layouts are to \SpecialChar LaTeX
6804  classes, and some modules—such
6805  as the 
6806 \begin_inset Flex Code
6807 status collapsed
6808
6809 \begin_layout Plain Layout
6810 endnotes
6811 \end_layout
6812
6813 \end_inset
6814
6815  module—specifically provide support for one package.
6816  In a sense, layout modules are similar to included
6817 \begin_inset Foot
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 These can have any extension, but by convention have the 
6822 \begin_inset Flex Code
6823 status collapsed
6824
6825 \begin_layout Plain Layout
6826 .inc
6827 \end_layout
6828
6829 \end_inset
6830
6831  extension.
6832 \end_layout
6833
6834 \end_inset
6835
6836  files—files like 
6837 \begin_inset Flex Code
6838 status collapsed
6839
6840 \begin_layout Plain Layout
6841 stdsections.inc
6842 \end_layout
6843
6844 \end_inset
6845
6846 —in that modules are not specific to a given document class but may be used
6847  with many different classes.
6848  The difference is that using an included file with 
6849 \begin_inset Flex Code
6850 status collapsed
6851
6852 \begin_layout Plain Layout
6853 article.cls
6854 \end_layout
6855
6856 \end_inset
6857
6858  requires editing that file.
6859  Modules, by contrast, are selected in the 
6860 \begin_inset Flex Noun
6861 status collapsed
6862
6863 \begin_layout Plain Layout
6864 Document\SpecialChar menuseparator
6865 Settings
6866 \end_layout
6867
6868 \end_inset
6869
6870  dialog.
6871 \end_layout
6872
6873 \begin_layout Standard
6874 Building modules is the easiest way to get started with layout editing,
6875  since it can be as simple as adding a single new paragraph style or flex
6876  inset.
6877  But modules may, in principle, contain anything a layout file can contain.
6878 \end_layout
6879
6880 \begin_layout Standard
6881 After creating a new module and copying it to the 
6882 \begin_inset Flex Code
6883 status collapsed
6884
6885 \begin_layout Plain Layout
6886 layouts/
6887 \end_layout
6888
6889 \end_inset
6890
6891  folder, you will need to reconfigure and then restart \SpecialChar LyX
6892  for the module to
6893  appear in the menu.
6894  However, changes you make to the module will be seen immediately, if you
6895  open 
6896 \begin_inset Flex Noun
6897 status collapsed
6898
6899 \begin_layout Plain Layout
6900 Document\SpecialChar menuseparator
6901 Settings
6902 \end_layout
6903
6904 \end_inset
6905
6906 , highlight something, and then hit 
6907 \begin_inset Quotes eld
6908 \end_inset
6909
6910 OK
6911 \begin_inset Quotes erd
6912 \end_inset
6913
6914 .
6915  
6916 \emph on
6917 It is strongly recommended that you save your work before doing this
6918 \emph default
6919 .
6920  In fact, 
6921 \emph on
6922 it is strongly recommended that you not attempt to edit modules while simultaneo
6923 usly working on actual documents
6924 \emph default
6925 .
6926  Though of course the developers strive to keep \SpecialChar LyX
6927  stable in such situations,
6928  syntax errors and the like in your module file could cause strange behavior.
6929 \end_layout
6930
6931 \begin_layout Subsubsection
6932 Local Layout
6933 \end_layout
6934
6935 \begin_layout Standard
6936 Modules are to \SpecialChar LyX
6937  as packages are to \SpecialChar LaTeX
6938 .
6939  Sometimes, however, you find yourself wanting a specific inset or character
6940  style just for one document and writing a module that will also be available
6941  to other documents makes little sense.
6942  What you need is \SpecialChar LyX
6943 's 
6944 \begin_inset Quotes eld
6945 \end_inset
6946
6947 Local Layout
6948 \begin_inset Quotes erd
6949 \end_inset
6950
6951 .
6952 \end_layout
6953
6954 \begin_layout Standard
6955 You will find it under 
6956 \family sans
6957 Document\SpecialChar menuseparator
6958 Settings\SpecialChar menuseparator
6959 Local Layout
6960 \family default
6961 .
6962  The large text box allows you to enter anything that you might enter in
6963  a layout file or module.
6964  You can think of a document's local layout, in fact, as a module that belongs
6965  just to it.
6966  So, in particular, you must enter a 
6967 \begin_inset Flex Code
6968 status collapsed
6969
6970 \begin_layout Plain Layout
6971 Format
6972 \end_layout
6973
6974 \end_inset
6975
6976  tag.
6977  Any format is acceptable, but one would normally use the format current
6978  at the time.
6979  (In \SpecialChar LyX
6980  
6981 \begin_inset Info
6982 type  "lyxinfo"
6983 arg   "version"
6984 \end_inset
6985
6986 , the current layout format is 
6987 \begin_inset Info
6988 type  "lyxinfo"
6989 arg   "layoutformat"
6990 \end_inset
6991
6992 .)
6993 \end_layout
6994
6995 \begin_layout Standard
6996 When you have entered something in the 
6997 \begin_inset Flex Code
6998 status collapsed
6999
7000 \begin_layout Plain Layout
7001 Local Layout
7002 \end_layout
7003
7004 \end_inset
7005
7006  pane, \SpecialChar LyX
7007  will enable the 
7008 \begin_inset Quotes eld
7009 \end_inset
7010
7011 Validate
7012 \begin_inset Quotes erd
7013 \end_inset
7014
7015  button at the bottom.
7016  Clicking this button will cause \SpecialChar LyX
7017  to determine whether what you have entered
7018  is valid layout information for the chosen format.
7019  \SpecialChar LyX
7020  will report the result but, unfortunately, will not tell you what errors
7021  there might have been.
7022  These will be written to the terminal, however, if \SpecialChar LyX
7023  is started from a terminal.
7024  You will not be permitted to save your local layout until you have entered
7025  something valid.
7026 \end_layout
7027
7028 \begin_layout Standard
7029 The warnings at the end of the previous section apply here, too.
7030  Do not play with local layout while you are actually working, especially
7031  if you have not saved your document.
7032  That said, using local layout with a test document can be a very convenient
7033  way to try out layout ideas, or even to start developing a module.
7034 \end_layout
7035
7036 \begin_layout Subsection
7037 Layout for 
7038 \begin_inset Flex Noun
7039 status collapsed
7040
7041 \begin_layout Plain Layout
7042 .sty
7043 \end_layout
7044
7045 \end_inset
7046
7047  files
7048 \end_layout
7049
7050 \begin_layout Standard
7051 There are two situations you are likely to encounter when wanting to support
7052  a new \SpecialChar LaTeX
7053  document class, involving style (
7054 \begin_inset Flex Code
7055 status collapsed
7056
7057 \begin_layout Plain Layout
7058 .sty
7059 \end_layout
7060
7061 \end_inset
7062
7063 ) files and \SpecialChar LaTeX2e
7064  class (
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 .cls
7070 \end_layout
7071
7072 \end_inset
7073
7074 ) .
7075  Supporting a style file is usually fairly easy.
7076  Supporting a new class file is a bit harder.
7077  We'll discuss the former in this section and the latter in the next.
7078  Similar remarks apply, of course, if you want to support a new DocBook
7079  DTD.
7080 \end_layout
7081
7082 \begin_layout Standard
7083 The easier case is the one in which your new document class is provided
7084  as a style file that is to be used in conjunction with an already supported
7085  document class.
7086  For the sake of the example, we'll assume that the style file is called
7087  
7088 \begin_inset Flex Noun
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 myclass.sty
7093 \end_layout
7094
7095 \end_inset
7096
7097  and that it is meant to be used with 
7098 \begin_inset Flex Noun
7099 status collapsed
7100
7101 \begin_layout Plain Layout
7102 report.cls
7103 \end_layout
7104
7105 \end_inset
7106
7107 , which is a standard class.
7108  
7109 \end_layout
7110
7111 \begin_layout Standard
7112 Start by copying the existing class's layout file into your local directory:
7113 \begin_inset Foot
7114 status collapsed
7115
7116 \begin_layout Plain Layout
7117 Of course, which directory is your local directory will vary by platform,
7118  and \SpecialChar LyX
7119  allows you to specify your local directory on startup, too, using
7120  the 
7121 \begin_inset Flex Code
7122 status collapsed
7123
7124 \begin_layout Plain Layout
7125 -userdir
7126 \end_layout
7127
7128 \end_inset
7129
7130  option.
7131 \end_layout
7132
7133 \end_inset
7134
7135
7136 \end_layout
7137
7138 \begin_layout LyX-Code
7139 cp report.layout ~/.lyx/layouts/myclass.layout
7140 \end_layout
7141
7142 \begin_layout Standard
7143 Then edit 
7144 \begin_inset Flex Code
7145 status collapsed
7146
7147 \begin_layout Plain Layout
7148 myclass.layout
7149 \end_layout
7150
7151 \end_inset
7152
7153  and change the line: 
7154 \end_layout
7155
7156 \begin_layout LyX-Code
7157
7158 \backslash
7159 DeclareLaTeXClass{Report (Standard Class)}
7160 \end_layout
7161
7162 \begin_layout Standard
7163 to read
7164 \end_layout
7165
7166 \begin_layout LyX-Code
7167
7168 \backslash
7169 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7170 \end_layout
7171
7172 \begin_layout Standard
7173 Then add:
7174 \end_layout
7175
7176 \begin_layout LyX-Code
7177 Preamble 
7178 \begin_inset Newline newline
7179 \end_inset
7180
7181     
7182 \backslash
7183 usepackage{myclass}
7184 \begin_inset Newline newline
7185 \end_inset
7186
7187 EndPreamble
7188 \end_layout
7189
7190 \begin_layout Standard
7191 near the top of the file.
7192 \end_layout
7193
7194 \begin_layout Standard
7195 Start \SpecialChar LyX
7196  and select 
7197 \begin_inset Flex Noun
7198 status collapsed
7199
7200 \begin_layout Plain Layout
7201 Tools\SpecialChar menuseparator
7202 Reconfigure
7203 \end_layout
7204
7205 \end_inset
7206
7207 .
7208  Then restart \SpecialChar LyX
7209  and try creating a new document.
7210  You should see "
7211 \begin_inset Flex Noun
7212 status collapsed
7213
7214 \begin_layout Plain Layout
7215 Report (My Class)
7216 \end_layout
7217
7218 \end_inset
7219
7220 " as a document class option in the 
7221 \begin_inset Flex Noun
7222 status collapsed
7223
7224 \begin_layout Plain Layout
7225 Document\SpecialChar menuseparator
7226 Settings
7227 \end_layout
7228
7229 \end_inset
7230
7231  dialog.
7232  It is likely that some of the sectioning commands and such in your new
7233  class will work differently from how they worked in the base class—
7234 \begin_inset Flex Code
7235 status collapsed
7236
7237 \begin_layout Plain Layout
7238 report
7239 \end_layout
7240
7241 \end_inset
7242
7243  in this example—so you can fiddle around with the settings for the different
7244  sections if you wish.
7245  The layout information for sections is contained in 
7246 \begin_inset Flex Code
7247 status collapsed
7248
7249 \begin_layout Plain Layout
7250 stdsections.inc
7251 \end_layout
7252
7253 \end_inset
7254
7255 , but you do not need to copy and change this file.
7256  Instead, you can simply add your changes to your layout file, after the
7257  line 
7258 \begin_inset Flex Code
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262 Input stdclass.inc
7263 \end_layout
7264
7265 \end_inset
7266
7267 , which itself includes 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 stdsections.inc
7273 \end_layout
7274
7275 \end_inset
7276
7277 .
7278  For example, you might add these lines:
7279 \end_layout
7280
7281 \begin_layout LyX-Code
7282 Style Chapter
7283 \end_layout
7284
7285 \begin_layout LyX-Code
7286     Font
7287 \end_layout
7288
7289 \begin_layout LyX-Code
7290         Family Sans
7291 \end_layout
7292
7293 \begin_layout LyX-Code
7294     EndFont
7295 \end_layout
7296
7297 \begin_layout LyX-Code
7298 End
7299 \end_layout
7300
7301 \begin_layout Standard
7302 to change the font for chapter headings to sans-serif.
7303  This will override (or, in this case, add to) the existing declaration
7304  for the Chapter style.
7305  
7306 \end_layout
7307
7308 \begin_layout Standard
7309 Your new package may also provide commands or environments not present in
7310  the base class.
7311  In this case, you will want to add these to the layout file.
7312  See 
7313 \begin_inset CommandInset ref
7314 LatexCommand ref
7315 reference "sec:TextClass"
7316
7317 \end_inset
7318
7319  for information on how to do so.
7320 \end_layout
7321
7322 \begin_layout Standard
7323 If 
7324 \begin_inset Flex Noun
7325 status collapsed
7326
7327 \begin_layout Plain Layout
7328 myclass.sty
7329 \end_layout
7330
7331 \end_inset
7332
7333  can be used with several different document classes, and even if it cannot,
7334  you might find it easiest just to write a module that you can load with
7335  the base class.
7336  The simplest possible such module would be:
7337 \end_layout
7338
7339 \begin_layout LyX-Code
7340 #
7341 \backslash
7342 DeclareLyXModule{My Class} 
7343 \end_layout
7344
7345 \begin_layout LyX-Code
7346 #DescriptionBegin 
7347 \end_layout
7348
7349 \begin_layout LyX-Code
7350 #Support for myclass.sty.
7351 \end_layout
7352
7353 \begin_layout LyX-Code
7354 #DescriptionEnd
7355 \begin_inset Newline newline
7356 \end_inset
7357
7358
7359 \end_layout
7360
7361 \begin_layout LyX-Code
7362 Format 
7363 \begin_inset Info
7364 type  "lyxinfo"
7365 arg   "layoutformat"
7366 \end_inset
7367
7368
7369 \begin_inset Newline newline
7370 \end_inset
7371
7372
7373 \end_layout
7374
7375 \begin_layout LyX-Code
7376 Preamble
7377 \begin_inset Newline newline
7378 \end_inset
7379
7380     
7381 \backslash
7382 usepackage{myclass}
7383 \begin_inset Newline newline
7384 \end_inset
7385
7386 EndPreamble
7387 \end_layout
7388
7389 \begin_layout Standard
7390 A more complex module might modify the behavior of some existing constructs
7391  or define some new ones.
7392  Again, see 
7393 \begin_inset CommandInset ref
7394 LatexCommand ref
7395 reference "sec:TextClass"
7396
7397 \end_inset
7398
7399  for discussion.
7400 \end_layout
7401
7402 \begin_layout Subsection
7403 Layout for 
7404 \begin_inset Flex Noun
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 .cls
7409 \end_layout
7410
7411 \end_inset
7412
7413  files
7414 \end_layout
7415
7416 \begin_layout Standard
7417 There are two possibilities here.
7418  One is that the class file is itself based upon an existing document class.
7419  For example, many thesis classes are based upon 
7420 \begin_inset Flex Noun
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 book.cls
7425 \end_layout
7426
7427 \end_inset
7428
7429 .
7430  To see whether yours is, look for a line like
7431 \end_layout
7432
7433 \begin_layout LyX-Code
7434
7435 \backslash
7436 LoadClass{book}
7437 \end_layout
7438
7439 \begin_layout Standard
7440 in the file.
7441  If so, then you may proceed largely as in the previous section, though
7442  the 
7443 \begin_inset Flex Code
7444 status collapsed
7445
7446 \begin_layout Plain Layout
7447 Declare\SpecialChar LaTeX
7448 Class
7449 \end_layout
7450
7451 \end_inset
7452
7453  line will be different.
7454  If your new class is 
7455 \begin_inset Flex Code
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 thesis
7460 \end_layout
7461
7462 \end_inset
7463
7464  and it is based upon 
7465 \begin_inset Flex Code
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 book
7470 \end_layout
7471
7472 \end_inset
7473
7474 , then the line should read:
7475 \begin_inset Foot
7476 status collapsed
7477
7478 \begin_layout Plain Layout
7479 And it will be easiest if you save the file to 
7480 \begin_inset Flex Code
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484 thesis.layout
7485 \end_layout
7486
7487 \end_inset
7488
7489 : \SpecialChar LyX
7490  assumes that the document class has the same name as the layout file.
7491  
7492 \end_layout
7493
7494 \end_inset
7495
7496
7497 \end_layout
7498
7499 \begin_layout LyX-Code
7500
7501 \backslash
7502 DeclareLaTeXClass[thesis,book]{thesis}
7503 \end_layout
7504
7505 \begin_layout Standard
7506 If, on the other hand, the new class is not based upon an existing class,
7507  you will probably have to 
7508 \begin_inset Quotes eld
7509 \end_inset
7510
7511 roll your own
7512 \begin_inset Quotes erd
7513 \end_inset
7514
7515  layout.
7516  We strongly suggest copying an existing layout file which uses a similar
7517  \SpecialChar LaTeX
7518  class and then modifying it, if you can do so.
7519  At least use an existing file as a starting point so you can find out what
7520  items you need to worry about.
7521  Again, the specifics are covered below.
7522 \end_layout
7523
7524 \begin_layout Subsection
7525 Creating templates
7526 \begin_inset CommandInset label
7527 LatexCommand label
7528 name "subsec:Creating-Templates"
7529
7530 \end_inset
7531
7532
7533 \end_layout
7534
7535 \begin_layout Standard
7536 Once you have written a layout file for a new document class, you might
7537  want to consider writing a 
7538 \emph on
7539 template
7540 \emph default
7541  for it, too.
7542  A template acts as a kind of tutorial for your layout, showing how it might
7543  be used, though containing dummy content.
7544  You can of course look at the various templates included with \SpecialChar LyX
7545  for ideas.
7546 \end_layout
7547
7548 \begin_layout Standard
7549 Templates are created just like usual documents: using \SpecialChar LyX
7550 .
7551  The only difference is that usual documents contain all possible settings,
7552  including the font scheme and the paper size.
7553  Usually a user doesn't want a template to overwrite his preferred settings
7554  for such parameters.
7555  For that reason, the designer of a template should remove the corresponding
7556  commands like 
7557 \begin_inset Flex Code
7558 status collapsed
7559
7560 \begin_layout Plain Layout
7561
7562 \backslash
7563 font_roman
7564 \end_layout
7565
7566 \end_inset
7567
7568  or 
7569 \begin_inset Flex Code
7570 status collapsed
7571
7572 \begin_layout Plain Layout
7573
7574 \backslash
7575 papersize
7576 \end_layout
7577
7578 \end_inset
7579
7580  from the template \SpecialChar LyX
7581  file.
7582  This can be done with any simple text-editor, for example 
7583 \begin_inset Flex Code
7584 status collapsed
7585
7586 \begin_layout Plain Layout
7587 vi
7588 \end_layout
7589
7590 \end_inset
7591
7592  or 
7593 \begin_inset Flex Code
7594 status collapsed
7595
7596 \begin_layout Plain Layout
7597 notepad
7598 \end_layout
7599
7600 \end_inset
7601
7602 .
7603 \end_layout
7604
7605 \begin_layout Standard
7606 Put the edited template files you create in 
7607 \begin_inset Flex Code
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 UserDir/templates/
7612 \end_layout
7613
7614 \end_inset
7615
7616 , copy the ones you use from the global template directory in 
7617 \begin_inset Flex Code
7618 status collapsed
7619
7620 \begin_layout Plain Layout
7621 LyXDir/templates/
7622 \end_layout
7623
7624 \end_inset
7625
7626  to the same place, and redefine the template path in the 
7627 \begin_inset Flex Noun
7628 status collapsed
7629
7630 \begin_layout Plain Layout
7631 Tools\SpecialChar menuseparator
7632 Preferences\SpecialChar menuseparator
7633 Paths
7634 \end_layout
7635
7636 \end_inset
7637
7638  dialog.
7639 \end_layout
7640
7641 \begin_layout Standard
7642 Note, by the way, that there is a template which has a particular meaning:
7643 \begin_inset Newline linebreak
7644 \end_inset
7645
7646
7647 \begin_inset Flex Code
7648 status collapsed
7649
7650 \begin_layout Plain Layout
7651 defaults.lyx
7652 \end_layout
7653
7654 \end_inset
7655
7656 .
7657  This template is loaded every time you create a new document with 
7658 \begin_inset Flex Noun
7659 status collapsed
7660
7661 \begin_layout Plain Layout
7662 File\SpecialChar menuseparator
7663 New
7664 \end_layout
7665
7666 \end_inset
7667
7668  in order to provide useful defaults.
7669  To create this template from inside \SpecialChar LyX
7670 , all you have to do is to open a document
7671  with the correct settings, and use the 
7672 \begin_inset Flex Noun
7673 status collapsed
7674
7675 \begin_layout Plain Layout
7676 Save as Document Defaults
7677 \end_layout
7678
7679 \end_inset
7680
7681  button.
7682 \end_layout
7683
7684 \begin_layout Subsection
7685 Upgrading old layout files
7686 \end_layout
7687
7688 \begin_layout Standard
7689 The format of layout files changes with each \SpecialChar LyX
7690  release, so old layout files
7691  need to be converted to the new format.
7692  If \SpecialChar LyX
7693  reads a layout file in an older format, it automatically calls the
7694  script 
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 layout2layout.py
7700 \end_layout
7701
7702 \end_inset
7703
7704  to convert it to a temporary file in current format.
7705  The original file is left untouched.
7706  If you use the layout file often, then, you may want to convert it permanently,
7707  so that \SpecialChar LyX
7708  does not have to do so itself every time.
7709  To do this, you can call the converter manually:
7710 \end_layout
7711
7712 \begin_layout Enumerate
7713 rename the file 
7714 \begin_inset Flex Code
7715 status collapsed
7716
7717 \begin_layout Plain Layout
7718 myclass.layout
7719 \end_layout
7720
7721 \end_inset
7722
7723  to 
7724 \begin_inset Flex Code
7725 status collapsed
7726
7727 \begin_layout Plain Layout
7728 myclass.old
7729 \end_layout
7730
7731 \end_inset
7732
7733
7734 \end_layout
7735
7736 \begin_layout Enumerate
7737 Call the command
7738 \begin_inset Newline newline
7739 \end_inset
7740
7741
7742 \begin_inset Flex Code
7743 status collapsed
7744
7745 \begin_layout Plain Layout
7746 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7747 \end_layout
7748
7749 \end_inset
7750
7751
7752 \begin_inset Newline newline
7753 \end_inset
7754
7755 where 
7756 \begin_inset Flex Code
7757 status collapsed
7758
7759 \begin_layout Plain Layout
7760 LyXDir
7761 \end_layout
7762
7763 \end_inset
7764
7765  is the name of your \SpecialChar LyX
7766  system directory.
7767 \end_layout
7768
7769 \begin_layout Standard
7770 Note that manual conversion does not affect included files, so these will
7771  have to be converted separately.
7772 \end_layout
7773
7774 \begin_layout Subsection
7775 \begin_inset CommandInset label
7776 LatexCommand label
7777 name "subsec:Cite-Engine-Files"
7778
7779 \end_inset
7780
7781 Cite engine files
7782 \end_layout
7783
7784 \begin_layout Standard
7785 A specific form of layout files are the so-called 
7786 \begin_inset Flex Code
7787 status collapsed
7788
7789 \begin_layout Plain Layout
7790 *.citeengine
7791 \end_layout
7792
7793 \end_inset
7794
7795  files that are located in the 
7796 \begin_inset Flex Code
7797 status collapsed
7798
7799 \begin_layout Plain Layout
7800 citeengines/
7801 \end_layout
7802
7803 \end_inset
7804
7805  sub-directory.
7806  Their purpose is to define the specifics of \SpecialChar LaTeX
7807  packages aimed at bibliography
7808  generation, such as 
7809 \family sans
7810 natbib
7811 \family default
7812 ,
7813 \family sans
7814  jurabib
7815 \family default
7816  or 
7817 \family sans
7818 biblatex
7819 \family default
7820 , but also the way how normal Bib\SpecialChar TeX
7821  citations (without additional packages)
7822  are handled in \SpecialChar LyX
7823  is defined in such a file.
7824  
7825 \end_layout
7826
7827 \begin_layout Standard
7828 More specifically, it is defined which packages \SpecialChar LyX
7829  needs to load, which citation
7830  commands are available, how these are to be displayed in \SpecialChar LyX
7831  (in the workarea,
7832  the dialogs, the context menus) as well as in the XHTML and plain text
7833  output.
7834  Furthermore, the files specify available style variants (author-year, numerical
7835 , etc.) and their specifics.
7836  The cite engine files are also used to generate the options that are available
7837  in 
7838 \family sans
7839 Document\SpecialChar menuseparator
7840 Settings\SpecialChar menuseparator
7841 Bibliography\SpecialChar menuseparator
7842 Style engine
7843 \family default
7844 .
7845 \end_layout
7846
7847 \begin_layout Standard
7848 Even though a cite engine file is essentially a normal layout file that
7849  could theoretically include any layout information, it usually primarily
7850  includes some specific parameters such as 
7851 \begin_inset Flex Code
7852 status collapsed
7853
7854 \begin_layout Plain Layout
7855 MaxCiteNames
7856 \end_layout
7857
7858 \end_inset
7859
7860
7861 \begin_inset Flex Code
7862 status collapsed
7863
7864 \begin_layout Plain Layout
7865 CiteFramework
7866 \end_layout
7867
7868 \end_inset
7869
7870
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 CiteEngine
7876 \end_layout
7877
7878 \end_inset
7879
7880  and 
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 CiteFormat
7886 \end_layout
7887
7888 \end_inset
7889
7890  blocks.
7891  The syntax of the latter two is described in 
7892 \begin_inset CommandInset ref
7893 LatexCommand ref
7894 reference "subsec:Citation-engine-description"
7895 plural "false"
7896 caps "false"
7897 noprefix "false"
7898
7899 \end_inset
7900
7901  and 
7902 \begin_inset CommandInset ref
7903 LatexCommand ref
7904 reference "subsec:Citation-format-description"
7905
7906 \end_inset
7907
7908 , as well as in the files themselves.
7909 \end_layout
7910
7911 \begin_layout Section
7912 \begin_inset CommandInset label
7913 LatexCommand label
7914 name "sec:TextClass"
7915
7916 \end_inset
7917
7918 The layout file format
7919 \end_layout
7920
7921 \begin_layout Standard
7922 The following sections describe how layout files are structured and written.
7923  Our advice is to go slowly, save and test often.
7924  It is really not that hard, except that the multitude of options can become
7925  overwhelming, especially if you try to check out too many at once.
7926  It becomes easier if you use existing layouts of \SpecialChar LyX
7927  as examples/reference
7928  or if you modify an existing layout to your needs.
7929 \end_layout
7930
7931 \begin_layout Standard
7932 Note that all the tags used in layout files are case-insensitive.
7933  This means that 
7934 \begin_inset Flex Code
7935 status collapsed
7936
7937 \begin_layout Plain Layout
7938 Style
7939 \end_layout
7940
7941 \end_inset
7942
7943
7944 \begin_inset Flex Code
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 style
7949 \end_layout
7950
7951 \end_inset
7952
7953  and 
7954 \begin_inset Flex Code
7955 status collapsed
7956
7957 \begin_layout Plain Layout
7958 StYlE
7959 \end_layout
7960
7961 \end_inset
7962
7963  are really the same tag.
7964  The possible arguments are printed in brackets after the tag's name.
7965  The default argument is typeset 
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970
7971 \emph on
7972 emphasized
7973 \end_layout
7974
7975 \end_inset
7976
7977 .
7978  If the argument has a data type like 
7979 \begin_inset Quotes eld
7980 \end_inset
7981
7982 string
7983 \begin_inset Quotes erd
7984 \end_inset
7985
7986  or 
7987 \begin_inset Quotes eld
7988 \end_inset
7989
7990 float
7991 \begin_inset Quotes erd
7992 \end_inset
7993
7994 , the default is shown like this: 
7995 \begin_inset Flex Code
7996 status collapsed
7997
7998 \begin_layout Plain Layout
7999 float=
8000 \emph on
8001 default
8002 \end_layout
8003
8004 \end_inset
8005
8006 .
8007 \end_layout
8008
8009 \begin_layout Subsection
8010 The document class declaration and classification
8011 \end_layout
8012
8013 \begin_layout Standard
8014 Lines in a layout file which begin with 
8015 \begin_inset Flex Code
8016 status collapsed
8017
8018 \begin_layout Plain Layout
8019 #
8020 \end_layout
8021
8022 \end_inset
8023
8024  are comments.
8025  There is one exception to this rule.
8026  All 
8027 \begin_inset Flex Code
8028 status collapsed
8029
8030 \begin_layout Plain Layout
8031 *.layout
8032 \end_layout
8033
8034 \end_inset
8035
8036  files should begin with lines like:
8037 \end_layout
8038
8039 \begin_layout LyX-Code
8040
8041 \size small
8042 #% Do not delete the line below; configure depends on this 
8043 \end_layout
8044
8045 \begin_layout LyX-Code
8046
8047 \size small
8048 #  
8049 \backslash
8050 DeclareLaTeXClass{Article (Standard Class)}
8051 \end_layout
8052
8053 \begin_layout LyX-Code
8054
8055 \size small
8056 #  
8057 \backslash
8058 DeclareCategory{Articles}
8059 \end_layout
8060
8061 \begin_layout Standard
8062 The second and third lines are used when you (re)configure \SpecialChar LyX
8063 .
8064  The layout file is read by the \SpecialChar LaTeX
8065  script 
8066 \begin_inset Flex Code
8067 status collapsed
8068
8069 \begin_layout Plain Layout
8070 chkconfig.ltx
8071 \end_layout
8072
8073 \end_inset
8074
8075 , in a special mode where 
8076 \begin_inset Flex Code
8077 status collapsed
8078
8079 \begin_layout Plain Layout
8080 #
8081 \end_layout
8082
8083 \end_inset
8084
8085  is ignored.
8086  The first line is just a \SpecialChar LaTeX
8087  comment, the second one contains the mandatory
8088  declaration of the text class and the third line contains the optional
8089  classification of the class.
8090  If these lines appear in a file named 
8091 \begin_inset Flex Code
8092 status collapsed
8093
8094 \begin_layout Plain Layout
8095 article.layout
8096 \end_layout
8097
8098 \end_inset
8099
8100 , then they define a text class of name 
8101 \begin_inset Flex Code
8102 status collapsed
8103
8104 \begin_layout Plain Layout
8105 article
8106 \end_layout
8107
8108 \end_inset
8109
8110  (the name of the layout file) which uses the \SpecialChar LaTeX
8111  document class 
8112 \begin_inset Flex Code
8113 status collapsed
8114
8115 \begin_layout Plain Layout
8116 article.cls
8117 \end_layout
8118
8119 \end_inset
8120
8121  (the default is to use the same name as the layout).
8122  The string 
8123 \begin_inset Quotes eld
8124 \end_inset
8125
8126 Article (Standard Class)
8127 \begin_inset Quotes erd
8128 \end_inset
8129
8130  that appears above is used as a description of the text class in the 
8131 \begin_inset Flex Noun
8132 status collapsed
8133
8134 \begin_layout Plain Layout
8135 Document\SpecialChar menuseparator
8136 Settings
8137 \end_layout
8138
8139 \end_inset
8140
8141  dialog.
8142  The category (
8143 \begin_inset Quotes eld
8144 \end_inset
8145
8146 Articles
8147 \begin_inset Quotes erd
8148 \end_inset
8149
8150  in the example) is also used in the 
8151 \begin_inset Flex Noun
8152 status collapsed
8153
8154 \begin_layout Plain Layout
8155 Document\SpecialChar menuseparator
8156 Settings
8157 \end_layout
8158
8159 \end_inset
8160
8161  dialog: the text classes are grouped by these categories (which are usually
8162  genres, so typical categories are 
8163 \begin_inset Quotes eld
8164 \end_inset
8165
8166 Articles
8167 \begin_inset Quotes erd
8168 \end_inset
8169
8170
8171 \begin_inset Quotes eld
8172 \end_inset
8173
8174 Books
8175 \begin_inset Quotes erd
8176 \end_inset
8177
8178
8179 \begin_inset Quotes eld
8180 \end_inset
8181
8182 Reports
8183 \begin_inset Quotes erd
8184 \end_inset
8185
8186
8187 \begin_inset Quotes eld
8188 \end_inset
8189
8190 Letters
8191 \begin_inset Quotes erd
8192 \end_inset
8193
8194
8195 \begin_inset Quotes eld
8196 \end_inset
8197
8198 Presentations
8199 \begin_inset Quotes erd
8200 \end_inset
8201
8202
8203 \begin_inset Quotes eld
8204 \end_inset
8205
8206 Curricula Vitae
8207 \begin_inset Quotes erd
8208 \end_inset
8209
8210  etc.).
8211  If no category has been declared, the class will be put in the 
8212 \begin_inset Quotes eld
8213 \end_inset
8214
8215 Uncategorized
8216 \begin_inset Quotes erd
8217 \end_inset
8218
8219  group.
8220 \end_layout
8221
8222 \begin_layout Standard
8223 Let's assume that you wrote your own text class that uses the 
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228 article.cls
8229 \end_layout
8230
8231 \end_inset
8232
8233  document class, but where you changed the appearance of the section headings.
8234  If you put it in a file 
8235 \begin_inset Flex Code
8236 status collapsed
8237
8238 \begin_layout Plain Layout
8239 myarticle.layout
8240 \end_layout
8241
8242 \end_inset
8243
8244 , the header of this file should be:
8245 \end_layout
8246
8247 \begin_layout LyX-Code
8248
8249 \size small
8250 #% Do not delete the line below; configure depends on this 
8251 \end_layout
8252
8253 \begin_layout LyX-Code
8254
8255 \size small
8256 #  
8257 \backslash
8258 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8259 \end_layout
8260
8261 \begin_layout LyX-Code
8262
8263 \size small
8264 #  
8265 \backslash
8266 DeclareCategory{Articles}
8267 \end_layout
8268
8269 \begin_layout Standard
8270 This declares a text class 
8271 \begin_inset Flex Code
8272 status collapsed
8273
8274 \begin_layout Plain Layout
8275 myarticle
8276 \end_layout
8277
8278 \end_inset
8279
8280 , associated with the \SpecialChar LaTeX
8281  document class 
8282 \begin_inset Flex Code
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 article.cls
8287 \end_layout
8288
8289 \end_inset
8290
8291  and described as 
8292 \begin_inset Quotes eld
8293 \end_inset
8294
8295 Article (with My Own Headings)
8296 \begin_inset Quotes erd
8297 \end_inset
8298
8299 .
8300  If your text class depends on several packages, you can declare it as:
8301 \end_layout
8302
8303 \begin_layout LyX-Code
8304
8305 \size small
8306 #% Do not delete the line below; configure depends on this 
8307 \end_layout
8308
8309 \begin_layout LyX-Code
8310
8311 \size small
8312 #  
8313 \backslash
8314 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8315 \end_layout
8316
8317 \begin_layout LyX-Code
8318
8319 \size small
8320 #  
8321 \backslash
8322 DeclareCategory{Articles}
8323 \end_layout
8324
8325 \begin_layout Standard
8326 This indicates that your text class uses the 
8327 \begin_inset Flex Code
8328 status collapsed
8329
8330 \begin_layout Plain Layout
8331 foo.sty
8332 \end_layout
8333
8334 \end_inset
8335
8336  package.
8337  Finally, it is also possible to declare classes for DocBook code.
8338  Typical declarations will look like:
8339 \end_layout
8340
8341 \begin_layout LyX-Code
8342
8343 \size small
8344 #% Do not delete the line below; configure depends on this 
8345 \end_layout
8346
8347 \begin_layout LyX-Code
8348
8349 \size small
8350
8351 \backslash
8352 DeclareDocBookClass[article]{SGML (DocBook Article)}
8353 \end_layout
8354
8355 \begin_layout LyX-Code
8356
8357 \size small
8358
8359 \backslash
8360 DeclareCategory{Articles (DocBook)}
8361 \end_layout
8362
8363 \begin_layout Standard
8364 Note that these declarations can also be given an optional parameter declaring
8365  the name of the document class (but not a list).
8366 \end_layout
8367
8368 \begin_layout Standard
8369 So, to be as explicit as possible, the form of the layout declaration is:
8370 \end_layout
8371
8372 \begin_layout LyX-Code
8373
8374 \size small
8375 #  
8376 \backslash
8377 DeclareLaTeXClass[class,package.sty]{layout description}
8378 \end_layout
8379
8380 \begin_layout LyX-Code
8381
8382 \size small
8383 #  
8384 \backslash
8385 DeclareCategory{category}
8386 \end_layout
8387
8388 \begin_layout Standard
8389 The class need only be specified if the name of the \SpecialChar LaTeX
8390  class file and the
8391  name of the layout file are different or if there are packages to load.
8392  If the name of the class file is not specified, then \SpecialChar LyX
8393  will simply assume
8394  that it is the same as the name of the layout file.
8395 \end_layout
8396
8397 \begin_layout Standard
8398 When the text class has been modified to your taste, all you have to do
8399  is to copy it either to 
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 LyXDir/layouts/
8405 \end_layout
8406
8407 \end_inset
8408
8409  or to 
8410 \begin_inset Flex Code
8411 status collapsed
8412
8413 \begin_layout Plain Layout
8414 UserDir/layouts
8415 \end_layout
8416
8417 \end_inset
8418
8419 , run 
8420 \begin_inset Flex Noun
8421 status collapsed
8422
8423 \begin_layout Plain Layout
8424 Tools\SpecialChar menuseparator
8425 Reconfigure
8426 \end_layout
8427
8428 \end_inset
8429
8430 , exit \SpecialChar LyX
8431  and restart.
8432  Then your new text class should be available along with the others.
8433 \end_layout
8434
8435 \begin_layout Standard
8436 Once the layout file is installed, you can edit it and see your changes
8437  without having to reconfigure or to restart \SpecialChar LyX
8438 .
8439 \begin_inset Foot
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 In versions of \SpecialChar LyX
8444  prior to 1.6, this was not true.
8445  As a result, editing layout files was very time consuming, since you had
8446  constantly to restart \SpecialChar LyX
8447  to see changes.
8448 \end_layout
8449
8450 \end_inset
8451
8452  You can force a reload of the current layout by using the \SpecialChar LyX
8453  function 
8454 \begin_inset Flex Noun
8455 status collapsed
8456
8457 \begin_layout Plain Layout
8458 layout-reload
8459 \end_layout
8460
8461 \end_inset
8462
8463 .
8464  There is no default binding for this function—though, of course, you can
8465  bind it to a key yourself.
8466  But you will normally use this function simply by entering it in the mini-buffe
8467 r.
8468  
8469 \end_layout
8470
8471 \begin_layout Standard
8472
8473 \emph on
8474 Warning
8475 \emph default
8476
8477 \begin_inset Flex Noun
8478 status collapsed
8479
8480 \begin_layout Plain Layout
8481 layout-reload
8482 \end_layout
8483
8484 \end_inset
8485
8486  is very much an `advanced feature'.
8487  It is 
8488 \emph on
8489 strongly
8490 \emph default
8491  recommended that you save your work before using this function.
8492  In fact, it is 
8493 \emph on
8494 strongly
8495 \emph default
8496  recommended that you not attempt to edit layout information while simultaneousl
8497 y working on a document that you care about.
8498  Use a test document.
8499  Syntax errors and the like in your layout file could cause peculiar behavior.
8500  In particular, such errors could cause \SpecialChar LyX
8501  to regard the current layout as
8502  invalid and to attempt to switch to some other layout.
8503 \begin_inset Foot
8504 status collapsed
8505
8506 \begin_layout Plain Layout
8507 Really bad syntax errors may even caused \SpecialChar LyX
8508  to exit.
8509  This is because certain sorts of errors may make \SpecialChar LyX
8510  unable to read 
8511 \emph on
8512 any
8513 \emph default
8514  layout information.
8515  Please be careful.
8516 \end_layout
8517
8518 \end_inset
8519
8520  The \SpecialChar LyX
8521  team strives to keep \SpecialChar LyX
8522  stable in such situations, but safe is better
8523  than sorry.
8524 \begin_inset Foot
8525 status collapsed
8526
8527 \begin_layout Plain Layout
8528 While we're giving advice: make regular backups.
8529  And be nice to your mother.
8530 \end_layout
8531
8532 \end_inset
8533
8534
8535 \end_layout
8536
8537 \begin_layout Subsection
8538 The Module declaration
8539 \end_layout
8540
8541 \begin_layout Standard
8542 A module must begin with a line like the following:
8543 \end_layout
8544
8545 \begin_layout LyX-Code
8546 #
8547 \backslash
8548 DeclareLyXModule[endnotes.sty]{Endnotes}
8549 \change_inserted -712698321 1554395911
8550
8551 \end_layout
8552
8553 \begin_layout LyX-Code
8554
8555 \change_inserted -712698321 1554395924
8556
8557 \size small
8558 #
8559 \backslash
8560 DeclareCategory{Foot- and Endnotes}
8561 \change_deleted -712698321 1554395911
8562
8563 \size default
8564  
8565 \change_unchanged
8566
8567 \end_layout
8568
8569 \begin_layout Standard
8570 The mandatory argument
8571 \change_inserted -712698321 1554395956
8572  of 
8573 \family typewriter
8574
8575 \backslash
8576 DeclareLyXModule
8577 \change_unchanged
8578
8579 \family default
8580 , in curly brackets, is the name of the module, as it should appear in 
8581 \begin_inset Flex Noun
8582 status collapsed
8583
8584 \begin_layout Plain Layout
8585 Document\SpecialChar menuseparator
8586 Settings\SpecialChar menuseparator
8587 Modules
8588 \end_layout
8589
8590 \end_inset
8591
8592 .
8593  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8594  packages
8595  on which the module depends.
8596  It is also possible to use the form 
8597 \begin_inset Flex Noun
8598 status collapsed
8599
8600 \begin_layout Plain Layout
8601 from->to
8602 \end_layout
8603
8604 \end_inset
8605
8606  as an optional argument, which declares that the module can only be used
8607  when there exists a conversion chain between the formats `
8608 \begin_inset Flex Code
8609 status collapsed
8610
8611 \begin_layout Plain Layout
8612 from
8613 \end_layout
8614
8615 \end_inset
8616
8617 ' and `
8618 \begin_inset Flex Code
8619 status collapsed
8620
8621 \begin_layout Plain Layout
8622 to
8623 \end_layout
8624
8625 \end_inset
8626
8627 '.
8628
8629 \change_inserted -712698321 1554396133
8630  The 
8631 \family typewriter
8632
8633 \backslash
8634 DeclareCategory
8635 \family default
8636  declaration is not strictly mandatory, but you should add it, since it
8637  is helpful to find the module.
8638  Please have a look at the existing module categories and if appropriate,
8639  use one of those.
8640 \change_unchanged
8641
8642 \end_layout
8643
8644 \begin_layout Standard
8645 The module 
8646 \change_inserted -712698321 1554395988
8647 and category 
8648 \change_unchanged
8649 declaration should then be followed by lines like the following:
8650 \begin_inset Foot
8651 status collapsed
8652
8653 \begin_layout Plain Layout
8654 Preferably in English if the module should be published with \SpecialChar LyX
8655 .
8656  This description will appear in the list of messages to be translated and
8657  will be thus translated with the next interface update.
8658 \end_layout
8659
8660 \end_inset
8661
8662
8663 \end_layout
8664
8665 \begin_layout LyX-Code
8666 #DescriptionBegin 
8667 \end_layout
8668
8669 \begin_layout LyX-Code
8670 #Adds an endnote command, in addition to footnotes.
8671  
8672 \end_layout
8673
8674 \begin_layout LyX-Code
8675 #You will need to add  
8676 \backslash
8677 theendnotes in TeX code where you 
8678 \end_layout
8679
8680 \begin_layout LyX-Code
8681 #want the endnotes to appear.
8682  
8683 \end_layout
8684
8685 \begin_layout LyX-Code
8686 #DescriptionEnd 
8687 \end_layout
8688
8689 \begin_layout LyX-Code
8690 #Requires: somemodule | othermodule
8691 \end_layout
8692
8693 \begin_layout LyX-Code
8694 #Excludes: badmodule
8695 \end_layout
8696
8697 \begin_layout Standard
8698 The description is used in 
8699 \begin_inset Flex Noun
8700 status collapsed
8701
8702 \begin_layout Plain Layout
8703 Document\SpecialChar menuseparator
8704 Settings\SpecialChar menuseparator
8705 Modules
8706 \end_layout
8707
8708 \end_inset
8709
8710  to provide the user with information about what the module does.
8711  The 
8712 \begin_inset Flex Code
8713 status collapsed
8714
8715 \begin_layout Plain Layout
8716 Requires
8717 \end_layout
8718
8719 \end_inset
8720
8721  line is used to identify other modules with which this one must be used;
8722  the 
8723 \begin_inset Flex Code
8724 status collapsed
8725
8726 \begin_layout Plain Layout
8727 Excludes
8728 \end_layout
8729
8730 \end_inset
8731
8732  line is used to identify modules with which this one may not be used.
8733  Both are optional, and, as shown, multiple modules should be separated
8734  with the pipe symbol: |.
8735  Note that the required modules are treated disjunctively: 
8736 \emph on
8737 at least one
8738 \emph default
8739  of the required modules must be used.
8740  Similarly, 
8741 \emph on
8742 no
8743 \emph default
8744  excluded module may be used.
8745  Note that modules are identified here by their filenames without the 
8746 \begin_inset Flex Code
8747 status collapsed
8748
8749 \begin_layout Plain Layout
8750 .module
8751 \end_layout
8752
8753 \end_inset
8754
8755  extension.
8756  So 
8757 \begin_inset Flex Code
8758 status collapsed
8759
8760 \begin_layout Plain Layout
8761 somemodule
8762 \end_layout
8763
8764 \end_inset
8765
8766  is really 
8767 \begin_inset Flex Code
8768 status collapsed
8769
8770 \begin_layout Plain Layout
8771 somemodule.module
8772 \end_layout
8773
8774 \end_inset
8775
8776 .
8777 \end_layout
8778
8779 \begin_layout Subsection
8780 The CiteEngine file declaration
8781 \end_layout
8782
8783 \begin_layout Standard
8784 A cite engine file must begin with a line like the following:
8785 \end_layout
8786
8787 \begin_layout LyX-Code
8788 #
8789 \backslash
8790 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8791 \end_layout
8792
8793 \begin_layout Standard
8794 The mandatory argument, in curly brackets, is the name of the cite style,
8795  as it should appear in 
8796 \begin_inset Flex Noun
8797 status collapsed
8798
8799 \begin_layout Plain Layout
8800 Document\SpecialChar menuseparator
8801 Settings\SpecialChar menuseparator
8802 Bibliography
8803 \end_layout
8804
8805 \end_inset
8806
8807 .
8808  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8809  packages
8810  on which the cite engine depends.
8811 \end_layout
8812
8813 \begin_layout Standard
8814 The cite engine declaration should then be followed by lines like the following:
8815 \begin_inset Foot
8816 status collapsed
8817
8818 \begin_layout Plain Layout
8819 Preferably in English if the module should be published with \SpecialChar LyX
8820 .
8821  This description will appear in the list of messages to be translated and
8822  will be thus translated with the next interface update.
8823 \end_layout
8824
8825 \end_inset
8826
8827
8828 \end_layout
8829
8830 \begin_layout LyX-Code
8831 # DescriptionBegin
8832 \end_layout
8833
8834 \begin_layout LyX-Code
8835 #   Biblatex supports many author-year and numerical styles.
8836 \end_layout
8837
8838 \begin_layout LyX-Code
8839 #   It is mainly aimed at the Humanities.
8840  It is highly
8841 \end_layout
8842
8843 \begin_layout LyX-Code
8844 #   customizable, fully localized and provides many features
8845 \end_layout
8846
8847 \begin_layout LyX-Code
8848 #   that are not possible with BibTeX.
8849  The use of 'biber' as
8850 \end_layout
8851
8852 \begin_layout LyX-Code
8853 #   bibliography processor is advised.
8854 \end_layout
8855
8856 \begin_layout LyX-Code
8857 # DescriptionEnd
8858 \end_layout
8859
8860 \begin_layout Standard
8861 The description is used in 
8862 \begin_inset Flex Noun
8863 status collapsed
8864
8865 \begin_layout Plain Layout
8866 Document\SpecialChar menuseparator
8867 Settings\SpecialChar menuseparator
8868 Bibliography
8869 \end_layout
8870
8871 \end_inset
8872
8873  to provide the user with information about the cite engine.
8874 \end_layout
8875
8876 \begin_layout Subsection
8877 Format number
8878 \end_layout
8879
8880 \begin_layout Standard
8881 The first non-comment line of any layout file, included file, or module
8882  
8883 \emph on
8884 must
8885 \emph default
8886  contain the file format number:
8887 \end_layout
8888
8889 \begin_layout Description
8890 \begin_inset Flex Code
8891 status collapsed
8892
8893 \begin_layout Plain Layout
8894 Format
8895 \end_layout
8896
8897 \end_inset
8898
8899  [
8900 \begin_inset Flex Code
8901 status collapsed
8902
8903 \begin_layout Plain Layout
8904 int
8905 \end_layout
8906
8907 \end_inset
8908
8909 ] The format number of the layout file.
8910 \end_layout
8911
8912 \begin_layout Standard
8913 This tag was introduced with \SpecialChar LyX
8914
8915 \begin_inset space ~
8916 \end_inset
8917
8918 1.4.0.
8919  Layout files from older \SpecialChar LyX
8920  versions do not have an explicit file format and
8921  are considered to have 
8922 \begin_inset Flex Code
8923 status collapsed
8924
8925 \begin_layout Plain Layout
8926 Format
8927 \begin_inset space ~
8928 \end_inset
8929
8930 1
8931 \end_layout
8932
8933 \end_inset
8934
8935 .
8936  The format for the present version of \SpecialChar LyX
8937  is format 60.
8938  But each version of \SpecialChar LyX
8939  is capable of reading earlier versions' layout files,
8940  just as they are capable of reading files produced by earlier versions
8941  of \SpecialChar LyX
8942 .
8943  There is, however, no provision for converting to earlier formats.
8944 \end_layout
8945
8946 \begin_layout Subsection
8947 \begin_inset CommandInset label
8948 LatexCommand label
8949 name "subsec:General-text-class"
8950
8951 \end_inset
8952
8953 General text class parameters
8954 \end_layout
8955
8956 \begin_layout Standard
8957 These are general parameters that govern the behavior of an entire document
8958  class.
8959  (This does 
8960 \emph on
8961 not
8962 \emph default
8963  mean that they must appear in 
8964 \begin_inset Flex Code
8965 status collapsed
8966
8967 \begin_layout Plain Layout
8968 .layout
8969 \end_layout
8970
8971 \end_inset
8972
8973  files rather than in modules.
8974  A module can contain any layout tag.)
8975 \end_layout
8976
8977 \begin_layout Description
8978
8979 \change_inserted -712698321 1526899478
8980 \begin_inset Flex Code
8981 status collapsed
8982
8983 \begin_layout Plain Layout
8984
8985 \change_inserted -712698321 1526898610
8986 AddToCiteEngine <engine>
8987 \end_layout
8988
8989 \end_inset
8990
8991  Extends the possibilities for displaying citation references.
8992  See 
8993 \begin_inset CommandInset ref
8994 LatexCommand ref
8995 reference "subsec:Citation-engine-description"
8996 plural "false"
8997 caps "false"
8998 noprefix "false"
8999
9000 \end_inset
9001
9002  for details.
9003  Must end with 
9004 \begin_inset Flex Code
9005 status collapsed
9006
9007 \begin_layout Plain Layout
9008
9009 \change_inserted -712698321 1526898823
9010 End
9011 \change_unchanged
9012
9013 \end_layout
9014
9015 \end_inset
9016
9017 .
9018 \end_layout
9019
9020 \begin_layout Description
9021 \begin_inset Flex Code
9022 status collapsed
9023
9024 \begin_layout Plain Layout
9025 AddToHTMLPreamble
9026 \end_layout
9027
9028 \end_inset
9029
9030  Adds information that will be output in the 
9031 \begin_inset Flex Code
9032 status collapsed
9033
9034 \begin_layout Plain Layout
9035 <head>
9036 \end_layout
9037
9038 \end_inset
9039
9040  block when the document is output to XHTML.
9041  Typically, this would be used to output CSS style information, but it can
9042  be used for anything that can appear in 
9043 \begin_inset Flex Code
9044 status collapsed
9045
9046 \begin_layout Plain Layout
9047 <head>
9048 \end_layout
9049
9050 \end_inset
9051
9052 .
9053  Must end with 
9054 \begin_inset Quotes eld
9055 \end_inset
9056
9057
9058 \begin_inset Flex Code
9059 status collapsed
9060
9061 \begin_layout Plain Layout
9062 EndPreamble
9063 \end_layout
9064
9065 \end_inset
9066
9067
9068 \begin_inset Quotes erd
9069 \end_inset
9070
9071 .
9072 \end_layout
9073
9074 \begin_layout Description
9075 \begin_inset Flex Code
9076 status collapsed
9077
9078 \begin_layout Plain Layout
9079 AddToPreamble
9080 \end_layout
9081
9082 \end_inset
9083
9084  Adds information to the document preamble.
9085  Must end with
9086 \begin_inset Newline newline
9087 \end_inset
9088
9089
9090 \begin_inset Quotes eld
9091 \end_inset
9092
9093
9094 \begin_inset Flex Code
9095 status collapsed
9096
9097 \begin_layout Plain Layout
9098 EndPreamble
9099 \end_layout
9100
9101 \end_inset
9102
9103
9104 \begin_inset Quotes erd
9105 \end_inset
9106
9107 .
9108 \end_layout
9109
9110 \begin_layout Description
9111 \begin_inset Flex Code
9112 status collapsed
9113
9114 \begin_layout Plain Layout
9115 CiteEngine <engine>
9116 \end_layout
9117
9118 \end_inset
9119
9120  Defines the possibilities for displaying citation references.
9121  See 
9122 \begin_inset CommandInset ref
9123 LatexCommand ref
9124 reference "subsec:Citation-engine-description"
9125 plural "false"
9126 caps "false"
9127 noprefix "false"
9128
9129 \end_inset
9130
9131  for details.
9132  Must end with 
9133 \begin_inset Quotes eld
9134 \end_inset
9135
9136
9137 \begin_inset Flex Code
9138 status collapsed
9139
9140 \begin_layout Plain Layout
9141 End
9142 \end_layout
9143
9144 \end_inset
9145
9146
9147 \begin_inset Quotes erd
9148 \end_inset
9149
9150 .
9151  Primarily used in cite engine files (see 
9152 \begin_inset CommandInset ref
9153 LatexCommand ref
9154 reference "subsec:Cite-Engine-Files"
9155 plural "false"
9156 caps "false"
9157 noprefix "false"
9158
9159 \end_inset
9160
9161 ).
9162
9163 \change_inserted -712698321 1526898530
9164  Note that if you specify this in a layout file or module, any cite engine
9165  definition will be overridden.
9166  Also see 
9167 \begin_inset Flex Code
9168 status collapsed
9169
9170 \begin_layout Plain Layout
9171
9172 \change_inserted -712698321 1526898530
9173 AddToCiteEngine
9174 \change_unchanged
9175
9176 \end_layout
9177
9178 \end_inset
9179
9180 .
9181 \change_unchanged
9182
9183 \end_layout
9184
9185 \begin_layout Description
9186 \begin_inset Flex Code
9187 status collapsed
9188
9189 \begin_layout Plain Layout
9190 CiteFormat
9191 \end_layout
9192
9193 \end_inset
9194
9195  Defines formats for use in the display of bibliographic information.
9196  See 
9197 \begin_inset CommandInset ref
9198 LatexCommand ref
9199 reference "subsec:Citation-format-description"
9200
9201 \end_inset
9202
9203  for details.
9204  Must end with 
9205 \begin_inset Quotes eld
9206 \end_inset
9207
9208
9209 \begin_inset Flex Code
9210 status collapsed
9211
9212 \begin_layout Plain Layout
9213 End
9214 \end_layout
9215
9216 \end_inset
9217
9218
9219 \begin_inset Quotes erd
9220 \end_inset
9221
9222 .
9223  Primarily used in cite engine files (see 
9224 \begin_inset CommandInset ref
9225 LatexCommand ref
9226 reference "subsec:Cite-Engine-Files"
9227 plural "false"
9228 caps "false"
9229 noprefix "false"
9230
9231 \end_inset
9232
9233 ).
9234
9235 \change_inserted -712698321 1526898585
9236  A cite format defined in a layout or module will override the cite engine
9237  definition.
9238 \change_unchanged
9239
9240 \end_layout
9241
9242 \begin_layout Description
9243 \begin_inset Flex Code
9244 status collapsed
9245
9246 \begin_layout Plain Layout
9247 CiteFramework
9248 \end_layout
9249
9250 \end_inset
9251
9252  [
9253 \begin_inset Flex Code
9254 status collapsed
9255
9256 \begin_layout Plain Layout
9257
9258 \emph on
9259 bibtex
9260 \end_layout
9261
9262 \end_inset
9263
9264 ,
9265 \begin_inset Flex Code
9266 status collapsed
9267
9268 \begin_layout Plain Layout
9269 biblatex
9270 \end_layout
9271
9272 \end_inset
9273
9274 ] Determines whether 
9275 \family sans
9276 Biblatex
9277 \family default
9278  or Bib\SpecialChar TeX
9279  is used to generate a Bibliography.
9280  Primarily used in cite engine files (see 
9281 \begin_inset CommandInset ref
9282 LatexCommand ref
9283 reference "subsec:Cite-Engine-Files"
9284 plural "false"
9285 caps "false"
9286 noprefix "false"
9287
9288 \end_inset
9289
9290 ).
9291 \end_layout
9292
9293 \begin_layout Description
9294 \begin_inset Flex Code
9295 status collapsed
9296
9297 \begin_layout Plain Layout
9298 ClassOptions
9299 \end_layout
9300
9301 \end_inset
9302
9303  Describes various global options supported by the document class.
9304  See 
9305 \begin_inset CommandInset ref
9306 LatexCommand ref
9307 reference "subsec:ClassOptions"
9308
9309 \end_inset
9310
9311  for a description.
9312  Must end with 
9313 \begin_inset Quotes eld
9314 \end_inset
9315
9316
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 End
9322 \end_layout
9323
9324 \end_inset
9325
9326
9327 \begin_inset Quotes erd
9328 \end_inset
9329
9330 .
9331 \end_layout
9332
9333 \begin_layout Description
9334 \begin_inset Flex Code
9335 status collapsed
9336
9337 \begin_layout Plain Layout
9338 Columns
9339 \end_layout
9340
9341 \end_inset
9342
9343  [
9344 \begin_inset Flex Code
9345 status collapsed
9346
9347 \begin_layout Plain Layout
9348
9349 \emph on
9350 1
9351 \end_layout
9352
9353 \end_inset
9354
9355 ,
9356 \begin_inset space \thinspace{}
9357 \end_inset
9358
9359
9360 \begin_inset Flex Code
9361 status collapsed
9362
9363 \begin_layout Plain Layout
9364 2
9365 \end_layout
9366
9367 \end_inset
9368
9369 ] Whether the class should 
9370 \emph on
9371 default
9372 \emph default
9373  to having one or two columns.
9374  Can be changed in the 
9375 \begin_inset Flex Noun
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 Document\SpecialChar menuseparator
9380 Settings
9381 \end_layout
9382
9383 \end_inset
9384
9385  dialog.
9386 \end_layout
9387
9388 \begin_layout Description
9389 \begin_inset Flex Code
9390 status collapsed
9391
9392 \begin_layout Plain Layout
9393 Counter
9394 \end_layout
9395
9396 \end_inset
9397
9398  [
9399 \begin_inset Flex Code
9400 status collapsed
9401
9402 \begin_layout Plain Layout
9403 string
9404 \end_layout
9405
9406 \end_inset
9407
9408 ] This sequence defines the properties for a counter.
9409  If the counter does not yet exist, it is created; if it does exist, it
9410  is modified.
9411  Must end with 
9412 \begin_inset Quotes eld
9413 \end_inset
9414
9415
9416 \begin_inset Flex Code
9417 status collapsed
9418
9419 \begin_layout Plain Layout
9420 End
9421 \end_layout
9422
9423 \end_inset
9424
9425
9426 \begin_inset Quotes erd
9427 \end_inset
9428
9429 .
9430 \begin_inset Newline newline
9431 \end_inset
9432
9433 See 
9434 \begin_inset CommandInset ref
9435 LatexCommand ref
9436 reference "subsec:Counters"
9437
9438 \end_inset
9439
9440  for details on counters.
9441 \end_layout
9442
9443 \begin_layout Description
9444 \begin_inset Flex Code
9445 status collapsed
9446
9447 \begin_layout Plain Layout
9448 DefaultFont
9449 \end_layout
9450
9451 \end_inset
9452
9453  Sets the default font used to display the document.
9454  See 
9455 \begin_inset CommandInset ref
9456 LatexCommand ref
9457 reference "subsec:Font-description"
9458
9459 \end_inset
9460
9461  for how to declare fonts.
9462  Must end with 
9463 \begin_inset Quotes eld
9464 \end_inset
9465
9466
9467 \begin_inset Flex Code
9468 status collapsed
9469
9470 \begin_layout Plain Layout
9471 EndFont
9472 \end_layout
9473
9474 \end_inset
9475
9476
9477 \begin_inset Quotes erd
9478 \end_inset
9479
9480 .
9481 \end_layout
9482
9483 \begin_layout Description
9484 \begin_inset Flex Code
9485 status collapsed
9486
9487 \begin_layout Plain Layout
9488 DefaultModule
9489 \end_layout
9490
9491 \end_inset
9492
9493  [
9494 \begin_inset Flex Code
9495 status collapsed
9496
9497 \begin_layout Plain Layout
9498 <module>
9499 \end_layout
9500
9501 \end_inset
9502
9503 ] Specifies a module to be included by default with this document class.
9504  The module is specified as filename without the 
9505 \begin_inset Flex Code
9506 status collapsed
9507
9508 \begin_layout Plain Layout
9509 .module
9510 \end_layout
9511
9512 \end_inset
9513
9514  extension.
9515  The user can still remove the module, but it will be active at the outset.
9516  (This applies only when new files are created, or when this class is chosen
9517  for an existing document.)
9518 \end_layout
9519
9520 \begin_layout Description
9521 \begin_inset Flex Code
9522 status collapsed
9523
9524 \begin_layout Plain Layout
9525 DefaultStyle
9526 \end_layout
9527
9528 \end_inset
9529
9530  [
9531 \begin_inset Flex Code
9532 status collapsed
9533
9534 \begin_layout Plain Layout
9535 <style>
9536 \end_layout
9537
9538 \end_inset
9539
9540 ] This is the style that will be assigned to new paragraphs, usually 
9541 \begin_inset Flex Noun
9542 status collapsed
9543
9544 \begin_layout Plain Layout
9545 Standard
9546 \end_layout
9547
9548 \end_inset
9549
9550 .
9551  This will default to the first defined style if not given, but you are
9552  encouraged to use this directive.
9553 \end_layout
9554
9555 \begin_layout Description
9556 \begin_inset Flex Code
9557 status collapsed
9558
9559 \begin_layout Plain Layout
9560 ExcludesModule
9561 \end_layout
9562
9563 \end_inset
9564
9565  [
9566 \begin_inset Flex Code
9567 status collapsed
9568
9569 \begin_layout Plain Layout
9570 <module>
9571 \end_layout
9572
9573 \end_inset
9574
9575 ] This tag indicates that the module (which is specified by filename without
9576  the 
9577 \begin_inset Flex Code
9578 status collapsed
9579
9580 \begin_layout Plain Layout
9581 .module
9582 \end_layout
9583
9584 \end_inset
9585
9586  extension) cannot be used with this document class.
9587  This might be used in a journal-specific layout file to prevent, say, the
9588  use of the 
9589 \begin_inset Flex Code
9590 status collapsed
9591
9592 \begin_layout Plain Layout
9593 theorems-sec
9594 \end_layout
9595
9596 \end_inset
9597
9598  module that numbers theorems by section.
9599  This tag may 
9600 \emph on
9601 not
9602 \emph default
9603  be used in a module.
9604  Modules have their own way of excluding other modules (see 
9605 \begin_inset CommandInset ref
9606 LatexCommand ref
9607 reference "subsec:Layout-modules"
9608
9609 \end_inset
9610
9611 ).
9612 \end_layout
9613
9614 \begin_layout Description
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619 Float
9620 \end_layout
9621
9622 \end_inset
9623
9624  Defines a new float.
9625  See 
9626 \begin_inset CommandInset ref
9627 LatexCommand ref
9628 reference "subsec:Floats"
9629
9630 \end_inset
9631
9632  for details.
9633  Must end with 
9634 \begin_inset Quotes eld
9635 \end_inset
9636
9637
9638 \begin_inset Flex Code
9639 status collapsed
9640
9641 \begin_layout Plain Layout
9642 End
9643 \end_layout
9644
9645 \end_inset
9646
9647
9648 \begin_inset Quotes erd
9649 \end_inset
9650
9651 .
9652 \end_layout
9653
9654 \begin_layout Description
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 HTMLPreamble
9660 \end_layout
9661
9662 \end_inset
9663
9664  Sets the information that will be output in the 
9665 \begin_inset Flex Code
9666 status collapsed
9667
9668 \begin_layout Plain Layout
9669 <head>
9670 \end_layout
9671
9672 \end_inset
9673
9674  block when this document class is output to XHTML.
9675  Note that this will completely override any prior 
9676 \begin_inset Flex Code
9677 status collapsed
9678
9679 \begin_layout Plain Layout
9680 HTMLPreamble
9681 \end_layout
9682
9683 \end_inset
9684
9685  or 
9686 \begin_inset Flex Code
9687 status collapsed
9688
9689 \begin_layout Plain Layout
9690 AddToHTMLPreamble
9691 \end_layout
9692
9693 \end_inset
9694
9695  declarations.
9696  (Use
9697 \begin_inset Newline newline
9698 \end_inset
9699
9700
9701 \begin_inset Flex Code
9702 status collapsed
9703
9704 \begin_layout Plain Layout
9705 AddToHTMLPreamble
9706 \end_layout
9707
9708 \end_inset
9709
9710  if you just want to add material to the preamble.) Must end with 
9711 \begin_inset Quotes eld
9712 \end_inset
9713
9714
9715 \begin_inset Flex Code
9716 status collapsed
9717
9718 \begin_layout Plain Layout
9719 EndPreamble
9720 \end_layout
9721
9722 \end_inset
9723
9724
9725 \begin_inset Quotes erd
9726 \end_inset
9727
9728 .
9729 \end_layout
9730
9731 \begin_layout Description
9732 \begin_inset Flex Code
9733 status collapsed
9734
9735 \begin_layout Plain Layout
9736 HTMLTOCSection
9737 \end_layout
9738
9739 \end_inset
9740
9741  [
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 <style>
9747 \end_layout
9748
9749 \end_inset
9750
9751 ] The style to use for the table of contents, bibliography, and so forth,
9752  when the document is output to HTML.
9753  For articles, this should normally be 
9754 \begin_inset Flex Code
9755 status collapsed
9756
9757 \begin_layout Plain Layout
9758 Section
9759 \end_layout
9760
9761 \end_inset
9762
9763 ; for books 
9764 \begin_inset Flex Code
9765 status collapsed
9766
9767 \begin_layout Plain Layout
9768 Chapter
9769 \end_layout
9770
9771 \end_inset
9772
9773 .
9774  If it is not given, then \SpecialChar LyX
9775  will attempt to figure out which layout to use.
9776 \end_layout
9777
9778 \begin_layout Description
9779 \begin_inset Flex Code
9780 status collapsed
9781
9782 \begin_layout Plain Layout
9783 IfCounter
9784 \end_layout
9785
9786 \end_inset
9787
9788  [
9789 \begin_inset Flex Code
9790 status collapsed
9791
9792 \begin_layout Plain Layout
9793 <counter>
9794 \end_layout
9795
9796 \end_inset
9797
9798 ] Modifies the properties of the given counter.
9799  If the counter does not exist, the statement is ignored.
9800  Must end with 
9801 \begin_inset Quotes eld
9802 \end_inset
9803
9804
9805 \begin_inset Flex Code
9806 status collapsed
9807
9808 \begin_layout Plain Layout
9809 End
9810 \end_layout
9811
9812 \end_inset
9813
9814
9815 \begin_inset Quotes erd
9816 \end_inset
9817
9818 .
9819 \begin_inset Newline newline
9820 \end_inset
9821
9822 See 
9823 \begin_inset CommandInset ref
9824 LatexCommand ref
9825 reference "subsec:Counters"
9826
9827 \end_inset
9828
9829  for details on counters.
9830 \end_layout
9831
9832 \begin_layout Description
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 Input
9838 \end_layout
9839
9840 \end_inset
9841
9842  [
9843 \begin_inset Flex Code
9844 status collapsed
9845
9846 \begin_layout Plain Layout
9847 <filename>
9848 \end_layout
9849
9850 \end_inset
9851
9852 ] This allows you to include another layout definition file within yours
9853  to avoid duplicating commands.
9854  Common examples are the standard layout files, for example, 
9855 \begin_inset Flex Code
9856 status collapsed
9857
9858 \begin_layout Plain Layout
9859 stdclass.inc
9860 \end_layout
9861
9862 \end_inset
9863
9864 , which contains most of the basic layouts.
9865 \end_layout
9866
9867 \begin_layout Description
9868 \begin_inset Flex Code
9869 status collapsed
9870
9871 \begin_layout Plain Layout
9872 InsetLayout
9873 \end_layout
9874
9875 \end_inset
9876
9877  [
9878 \begin_inset Flex Code
9879 status collapsed
9880
9881 \begin_layout Plain Layout
9882 <type>
9883 \end_layout
9884
9885 \end_inset
9886
9887 ] This section (re-)defines the layout of an inset.
9888  It can be applied to an existing inset or to a new, user-defined inset,
9889  e.g., a new character style.
9890  Must end with 
9891 \begin_inset Quotes eld
9892 \end_inset
9893
9894
9895 \begin_inset Flex Code
9896 status collapsed
9897
9898 \begin_layout Plain Layout
9899 End
9900 \end_layout
9901
9902 \end_inset
9903
9904
9905 \begin_inset Quotes erd
9906 \end_inset
9907
9908 .
9909 \begin_inset Newline newline
9910 \end_inset
9911
9912 See 
9913 \begin_inset CommandInset ref
9914 LatexCommand ref
9915 reference "subsec:Flex-insets-and"
9916
9917 \end_inset
9918
9919  for more information.
9920  
9921 \end_layout
9922
9923 \begin_layout Description
9924 \begin_inset Flex Code
9925 status collapsed
9926
9927 \begin_layout Plain Layout
9928 LeftMargin
9929 \end_layout
9930
9931 \end_inset
9932
9933  [
9934 \begin_inset Flex Code
9935 status collapsed
9936
9937 \begin_layout Plain Layout
9938 string
9939 \end_layout
9940
9941 \end_inset
9942
9943 ] A string that indicates the width of the left margin on the screen, for
9944  example, 
9945 \begin_inset Quotes eld
9946 \end_inset
9947
9948
9949 \begin_inset Flex Code
9950 status collapsed
9951
9952 \begin_layout Plain Layout
9953 MMMMM
9954 \end_layout
9955
9956 \end_inset
9957
9958
9959 \begin_inset Quotes erd
9960 \end_inset
9961
9962 .
9963  (Note that this is not a `length', like 
9964 \begin_inset Quotes eld
9965 \end_inset
9966
9967 2ex
9968 \begin_inset Quotes erd
9969 \end_inset
9970
9971 .)
9972 \end_layout
9973
9974 \begin_layout Description
9975 \begin_inset Flex Code
9976 status collapsed
9977
9978 \begin_layout Plain Layout
9979 MaxCiteNames
9980 \end_layout
9981
9982 \end_inset
9983
9984  [
9985 \begin_inset Flex Code
9986 status collapsed
9987
9988 \begin_layout Plain Layout
9989 integer
9990 \end_layout
9991
9992 \end_inset
9993
9994 ] An integer that determines the maximal number of names displayed in an
9995  author-year citation before the citation switches to 
9996 \begin_inset Quotes eld
9997 \end_inset
9998
9999 FirstAuthor et al.
10000 \begin_inset Quotes erd
10001 \end_inset
10002
10003 .
10004  Primarily used in cite engine files (see 
10005 \begin_inset CommandInset ref
10006 LatexCommand ref
10007 reference "subsec:Cite-Engine-Files"
10008 plural "false"
10009 caps "false"
10010 noprefix "false"
10011
10012 \end_inset
10013
10014 ).
10015 \end_layout
10016
10017 \begin_layout Description
10018 \begin_inset Flex Code
10019 status collapsed
10020
10021 \begin_layout Plain Layout
10022 ModifyStyle
10023 \end_layout
10024
10025 \end_inset
10026
10027  [
10028 \begin_inset Flex Code
10029 status collapsed
10030
10031 \begin_layout Plain Layout
10032 <style>
10033 \end_layout
10034
10035 \end_inset
10036
10037 ] Modifies the properties of the given paragraph style.
10038  If the style does not exist, this section is ignored.
10039  Must end with 
10040 \begin_inset Quotes eld
10041 \end_inset
10042
10043
10044 \begin_inset Flex Code
10045 status collapsed
10046
10047 \begin_layout Plain Layout
10048 End
10049 \end_layout
10050
10051 \end_inset
10052
10053
10054 \begin_inset Quotes erd
10055 \end_inset
10056
10057 .
10058 \end_layout
10059
10060 \begin_layout Description
10061 \begin_inset Flex Code
10062 status collapsed
10063
10064 \begin_layout Plain Layout
10065 NoCounter
10066 \end_layout
10067
10068 \end_inset
10069
10070  [
10071 \begin_inset Flex Code
10072 status collapsed
10073
10074 \begin_layout Plain Layout
10075 <counter>
10076 \end_layout
10077
10078 \end_inset
10079
10080 ] Deletes an existing counter, usually one defined in an included file.
10081 \end_layout
10082
10083 \begin_layout Description
10084 \begin_inset Flex Code
10085 status collapsed
10086
10087 \begin_layout Plain Layout
10088 NoFloat
10089 \end_layout
10090
10091 \end_inset
10092
10093  [
10094 \begin_inset Flex Code
10095 status collapsed
10096
10097 \begin_layout Plain Layout
10098 <float>
10099 \end_layout
10100
10101 \end_inset
10102
10103 ] Deletes an existing float.
10104  This is particularly useful when you want to suppress a float that has
10105  been defined in an input file.
10106 \end_layout
10107
10108 \begin_layout Description
10109 \begin_inset Flex Code
10110 status collapsed
10111
10112 \begin_layout Plain Layout
10113 NoStyle
10114 \end_layout
10115
10116 \end_inset
10117
10118  [
10119 \begin_inset Flex Code
10120 status collapsed
10121
10122 \begin_layout Plain Layout
10123 <style>
10124 \end_layout
10125
10126 \end_inset
10127
10128 ] Deletes an existing style.
10129 \end_layout
10130
10131 \begin_layout Description
10132 \begin_inset Flex Code
10133 status collapsed
10134
10135 \begin_layout Plain Layout
10136 OutlinerName
10137 \end_layout
10138
10139 \end_inset
10140
10141  [
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 <type>
10147 \end_layout
10148
10149 \end_inset
10150
10151 ] [
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 <string>
10157 \end_layout
10158
10159 \end_inset
10160
10161 ] Define a new table of contents with type 
10162 \begin_inset Flex Code
10163 status collapsed
10164
10165 \begin_layout Plain Layout
10166 <type>
10167 \end_layout
10168
10169 \end_inset
10170
10171  and name 
10172 \begin_inset Flex Code
10173 status collapsed
10174
10175 \begin_layout Plain Layout
10176 <string>
10177 \end_layout
10178
10179 \end_inset
10180
10181 .
10182  See also the AddToToc commands.
10183 \end_layout
10184
10185 \begin_layout Description
10186 \begin_inset Flex Code
10187 status collapsed
10188
10189 \begin_layout Plain Layout
10190 OutputFormat
10191 \end_layout
10192
10193 \end_inset
10194
10195  [
10196 \begin_inset Flex Code
10197 status collapsed
10198
10199 \begin_layout Plain Layout
10200 <format>
10201 \end_layout
10202
10203 \end_inset
10204
10205 ] The file format (as defined in the \SpecialChar LyX
10206  preferences) produced by this document
10207  class.
10208  It is mainly useful when 
10209 \begin_inset Flex Code
10210 status collapsed
10211
10212 \begin_layout Plain Layout
10213 OutputType
10214 \end_layout
10215
10216 \end_inset
10217
10218  is 
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 literate
10224 \end_layout
10225
10226 \end_inset
10227
10228  and one wants to define a new type of literate document.
10229  The format is reset to 
10230 \begin_inset Quotes eld
10231 \end_inset
10232
10233
10234 \begin_inset Flex Code
10235 status collapsed
10236
10237 \begin_layout Plain Layout
10238 docbook
10239 \end_layout
10240
10241 \end_inset
10242
10243
10244 \begin_inset Quotes erd
10245 \end_inset
10246
10247  or 
10248 \begin_inset Quotes eld
10249 \end_inset
10250
10251
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 latex
10257 \end_layout
10258
10259 \end_inset
10260
10261
10262 \begin_inset Quotes erd
10263 \end_inset
10264
10265  when the corresponding 
10266 \begin_inset Flex Code
10267 status collapsed
10268
10269 \begin_layout Plain Layout
10270 OutputType
10271 \end_layout
10272
10273 \end_inset
10274
10275  parameter is encountered.
10276 \end_layout
10277
10278 \begin_layout Description
10279 \begin_inset Flex Code
10280 status collapsed
10281
10282 \begin_layout Plain Layout
10283 OutputType
10284 \end_layout
10285
10286 \end_inset
10287
10288  [
10289 \begin_inset Flex Code
10290 status collapsed
10291
10292 \begin_layout Plain Layout
10293
10294 \emph on
10295 lat
10296 \emph default
10297 ex
10298 \end_layout
10299
10300 \end_inset
10301
10302
10303 \begin_inset Flex Code
10304 status collapsed
10305
10306 \begin_layout Plain Layout
10307 docbook
10308 \end_layout
10309
10310 \end_inset
10311
10312
10313 \begin_inset Flex Code
10314 status collapsed
10315
10316 \begin_layout Plain Layout
10317 literate
10318 \end_layout
10319
10320 \end_inset
10321
10322 ] Specifies what sort of output documents using this class will produce.
10323 \end_layout
10324
10325 \begin_layout Description
10326 \begin_inset Flex Code
10327 status collapsed
10328
10329 \begin_layout Plain Layout
10330 PackageOptions
10331 \end_layout
10332
10333 \end_inset
10334
10335  [
10336 \begin_inset Flex Code
10337 status collapsed
10338
10339 \begin_layout Plain Layout
10340 string
10341 \end_layout
10342
10343 \end_inset
10344
10345  
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350 string
10351 \end_layout
10352
10353 \end_inset
10354
10355 ] Specifies options, given in the second string, for the package named by
10356  the first string.
10357  For example, 
10358 \begin_inset Quotes eld
10359 \end_inset
10360
10361
10362 \begin_inset Flex Code
10363 status collapsed
10364
10365 \begin_layout Plain Layout
10366 PackageOptions natbib square
10367 \end_layout
10368
10369 \end_inset
10370
10371
10372 \begin_inset Quotes erd
10373 \end_inset
10374
10375  will cause 
10376 \begin_inset Flex Code
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380 natbib
10381 \end_layout
10382
10383 \end_inset
10384
10385  to be loaded with the 
10386 \begin_inset Flex Code
10387 status collapsed
10388
10389 \begin_layout Plain Layout
10390 square
10391 \end_layout
10392
10393 \end_inset
10394
10395  option.
10396  (For \SpecialChar TeX
10397 perts, this causes \SpecialChar LyX
10398  to output: 
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403
10404 \backslash
10405 PassOptionsToPackage{natbib}{square}
10406 \end_layout
10407
10408 \end_inset
10409
10410  prior to loading 
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 natbib
10416 \end_layout
10417
10418 \end_inset
10419
10420 .)
10421 \end_layout
10422
10423 \begin_layout Description
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 PageStyle
10429 \end_layout
10430
10431 \end_inset
10432
10433  [
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438
10439 \emph on
10440 plain
10441 \end_layout
10442
10443 \end_inset
10444
10445
10446 \begin_inset Flex Code
10447 status collapsed
10448
10449 \begin_layout Plain Layout
10450 empty
10451 \end_layout
10452
10453 \end_inset
10454
10455
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 headings
10461 \end_layout
10462
10463 \end_inset
10464
10465 ] The default pagestyle.
10466  Can be changed in the 
10467 \begin_inset Flex Noun
10468 status collapsed
10469
10470 \begin_layout Plain Layout
10471 Document\SpecialChar menuseparator
10472 Settings
10473 \end_layout
10474
10475 \end_inset
10476
10477  dialog.
10478 \end_layout
10479
10480 \begin_layout Description
10481 \begin_inset Flex Code
10482 status collapsed
10483
10484 \begin_layout Plain Layout
10485 Preamble
10486 \end_layout
10487
10488 \end_inset
10489
10490  Sets the preamble for the \SpecialChar LaTeX
10491  document.
10492  Note that this will completely override any prior 
10493 \begin_inset Flex Code
10494 status collapsed
10495
10496 \begin_layout Plain Layout
10497 Preamble
10498 \end_layout
10499
10500 \end_inset
10501
10502  or 
10503 \begin_inset Flex Code
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 AddToPreamble
10508 \end_layout
10509
10510 \end_inset
10511
10512  declarations.
10513  (Use 
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 AddToPreamble
10519 \end_layout
10520
10521 \end_inset
10522
10523  if you just want to add material to the preamble.) Must end with 
10524 \begin_inset Quotes eld
10525 \end_inset
10526
10527
10528 \begin_inset Flex Code
10529 status collapsed
10530
10531 \begin_layout Plain Layout
10532 EndPreamble
10533 \end_layout
10534
10535 \end_inset
10536
10537
10538 \begin_inset Quotes erd
10539 \end_inset
10540
10541 .
10542 \end_layout
10543
10544 \begin_layout Description
10545 \begin_inset Flex Code
10546 status collapsed
10547
10548 \begin_layout Plain Layout
10549 Provides
10550 \end_layout
10551
10552 \end_inset
10553
10554  [
10555 \begin_inset Flex Code
10556 status collapsed
10557
10558 \begin_layout Plain Layout
10559 string
10560 \end_layout
10561
10562 \end_inset
10563
10564 ] [
10565 \begin_inset Flex Code
10566 status collapsed
10567
10568 \begin_layout Plain Layout
10569
10570 \emph on
10571 0
10572 \end_layout
10573
10574 \end_inset
10575
10576 ,
10577 \begin_inset space \thinspace{}
10578 \end_inset
10579
10580
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 1
10586 \end_layout
10587
10588 \end_inset
10589
10590 ] Whether the class already provides the feature 
10591 \begin_inset Flex Code
10592 status collapsed
10593
10594 \begin_layout Plain Layout
10595 string
10596 \end_layout
10597
10598 \end_inset
10599
10600 .
10601  A feature is in general the name of a package (e.
10602 \begin_inset space \thinspace{}
10603 \end_inset
10604
10605 g.
10606 \begin_inset space \space{}
10607 \end_inset
10608
10609
10610 \begin_inset Flex Code
10611 status collapsed
10612
10613 \begin_layout Plain Layout
10614 amsmath
10615 \end_layout
10616
10617 \end_inset
10618
10619  or 
10620 \begin_inset Flex Code
10621 status collapsed
10622
10623 \begin_layout Plain Layout
10624 makeidx
10625 \end_layout
10626
10627 \end_inset
10628
10629 ) or a macro (e.
10630 \begin_inset space \thinspace{}
10631 \end_inset
10632
10633 g.
10634 \begin_inset space \space{}
10635 \end_inset
10636
10637
10638 \begin_inset Flex Code
10639 status collapsed
10640
10641 \begin_layout Plain Layout
10642 url
10643 \end_layout
10644
10645 \end_inset
10646
10647  or 
10648 \begin_inset Flex Code
10649 status collapsed
10650
10651 \begin_layout Plain Layout
10652 boldsymbol
10653 \end_layout
10654
10655 \end_inset
10656
10657 ).
10658  See 
10659 \begin_inset CommandInset ref
10660 LatexCommand ref
10661 reference "chap:List-of-functions"
10662
10663 \end_inset
10664
10665  for the list of features.
10666 \end_layout
10667
10668 \begin_layout Description
10669 \begin_inset Flex Code
10670 status collapsed
10671
10672 \begin_layout Plain Layout
10673 ProvidesModule
10674 \end_layout
10675
10676 \end_inset
10677
10678  [
10679 \begin_inset Flex Code
10680 status collapsed
10681
10682 \begin_layout Plain Layout
10683 string
10684 \end_layout
10685
10686 \end_inset
10687
10688 ] Indicates that this layout provides the functionality of the module mentioned,
10689  which should be specified by the filename without the 
10690 \begin_inset Flex Code
10691 status collapsed
10692
10693 \begin_layout Plain Layout
10694 .module
10695 \end_layout
10696
10697 \end_inset
10698
10699  extension.
10700  This will typically be used if the layout includes the module directly,
10701  rather than using the 
10702 \begin_inset Flex Code
10703 status collapsed
10704
10705 \begin_layout Plain Layout
10706 DefaultModule
10707 \end_layout
10708
10709 \end_inset
10710
10711  tag to indicate that it ought to be used.
10712  It could also be used in a module that provided an alternate implementation
10713  of the same functionality.
10714 \end_layout
10715
10716 \begin_layout Description
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 ProvideStyle
10722 \end_layout
10723
10724 \end_inset
10725
10726  [
10727 \begin_inset Flex Code
10728 status collapsed
10729
10730 \begin_layout Plain Layout
10731 <style>
10732 \end_layout
10733
10734 \end_inset
10735
10736 ] Creates a new paragraph style if it does not already exist.
10737  If the style does exist, this section is ignored.
10738  Must end with 
10739 \begin_inset Quotes eld
10740 \end_inset
10741
10742
10743 \begin_inset Flex Code
10744 status collapsed
10745
10746 \begin_layout Plain Layout
10747 End
10748 \end_layout
10749
10750 \end_inset
10751
10752
10753 \begin_inset Quotes erd
10754 \end_inset
10755
10756 .
10757 \end_layout
10758
10759 \begin_layout Description
10760 \begin_inset Flex Code
10761 status collapsed
10762
10763 \begin_layout Plain Layout
10764 Requires
10765 \end_layout
10766
10767 \end_inset
10768
10769  [
10770 \begin_inset Flex Code
10771 status collapsed
10772
10773 \begin_layout Plain Layout
10774 string
10775 \end_layout
10776
10777 \end_inset
10778
10779 ] Whether the class requires the feature 
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 string
10785 \end_layout
10786
10787 \end_inset
10788
10789 .
10790  Multiple features must be separated by commas.
10791  Note that you can only request supported features.
10792  (See 
10793 \begin_inset CommandInset ref
10794 LatexCommand ref
10795 reference "chap:List-of-functions"
10796
10797 \end_inset
10798
10799  for the list of features.).
10800  If you require a package with specific options, you can additionally use
10801  
10802 \begin_inset Flex Code
10803 status collapsed
10804
10805 \begin_layout Plain Layout
10806 PackageOptions
10807 \end_layout
10808
10809 \end_inset
10810
10811 .
10812 \end_layout
10813
10814 \begin_layout Description
10815 \begin_inset Flex Code
10816 status collapsed
10817
10818 \begin_layout Plain Layout
10819 RightMargin
10820 \end_layout
10821
10822 \end_inset
10823
10824  [
10825 \begin_inset Flex Code
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829 string
10830 \end_layout
10831
10832 \end_inset
10833
10834 ] A string that indicates the width of the right margin on the screen, for
10835  example, 
10836 \begin_inset Quotes eld
10837 \end_inset
10838
10839
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844 MMMMM
10845 \end_layout
10846
10847 \end_inset
10848
10849
10850 \begin_inset Quotes erd
10851 \end_inset
10852
10853 .
10854 \end_layout
10855
10856 \begin_layout Description
10857 \begin_inset Flex Code
10858 status collapsed
10859
10860 \begin_layout Plain Layout
10861 SecNumDepth
10862 \end_layout
10863
10864 \end_inset
10865
10866  [
10867 \begin_inset Flex Code
10868 status collapsed
10869
10870 \begin_layout Plain Layout
10871 int=3
10872 \end_layout
10873
10874 \end_inset
10875
10876 ] Sets which divisions get numbered.
10877  Corresponds to the
10878 \begin_inset Newline newline
10879 \end_inset
10880
10881
10882 \begin_inset Flex Code
10883 status collapsed
10884
10885 \begin_layout Plain Layout
10886 secnumdepth
10887 \end_layout
10888
10889 \end_inset
10890
10891  counter in \SpecialChar LaTeX
10892 .
10893 \end_layout
10894
10895 \begin_layout Description
10896 \begin_inset Flex Code
10897 status collapsed
10898
10899 \begin_layout Plain Layout
10900 Sides
10901 \end_layout
10902
10903 \end_inset
10904
10905  [
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910
10911 \emph on
10912 1
10913 \end_layout
10914
10915 \end_inset
10916
10917 ,
10918 \begin_inset space \thinspace{}
10919 \end_inset
10920
10921
10922 \begin_inset Flex Code
10923 status collapsed
10924
10925 \begin_layout Plain Layout
10926 2
10927 \end_layout
10928
10929 \end_inset
10930
10931 ] Whether the class-default should be printing on one or both sides of the
10932  paper.
10933  Can be changed in the 
10934 \begin_inset Flex Noun
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938 Document\SpecialChar menuseparator
10939 Settings
10940 \end_layout
10941
10942 \end_inset
10943
10944  dialog.
10945 \end_layout
10946
10947 \begin_layout Description
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 Style
10953 \end_layout
10954
10955 \end_inset
10956
10957  [
10958 \begin_inset Flex Code
10959 status collapsed
10960
10961 \begin_layout Plain Layout
10962 <name>
10963 \end_layout
10964
10965 \end_inset
10966
10967 ] This sequence defines a paragraph style.
10968  If the style does not yet exist, it is created; if it does exist, its parameter
10969 s are modified.
10970  Must end with 
10971 \begin_inset Quotes eld
10972 \end_inset
10973
10974
10975 \begin_inset Flex Code
10976 status collapsed
10977
10978 \begin_layout Plain Layout
10979 End
10980 \end_layout
10981
10982 \end_inset
10983
10984
10985 \begin_inset Quotes erd
10986 \end_inset
10987
10988 .
10989 \begin_inset Newline newline
10990 \end_inset
10991
10992 See 
10993 \begin_inset CommandInset ref
10994 LatexCommand ref
10995 reference "subsec:Paragraph-Styles"
10996
10997 \end_inset
10998
10999  for details on paragraph styles.
11000 \change_inserted -712698321 1553617804
11001
11002 \end_layout
11003
11004 \begin_layout Description
11005
11006 \change_inserted -712698321 1553617862
11007 \begin_inset Flex Code
11008 status collapsed
11009
11010 \begin_layout Plain Layout
11011
11012 \change_inserted -712698321 1553617809
11013 TableStyle
11014 \end_layout
11015
11016 \end_inset
11017
11018  [
11019 \begin_inset Flex Code
11020 status collapsed
11021
11022 \begin_layout Plain Layout
11023
11024 \change_inserted -712698321 1553617805
11025 <name>
11026 \end_layout
11027
11028 \end_inset
11029
11030 ] defines the default table style that is used when inserting a table.
11031  The following styles are available:
11032 \end_layout
11033
11034 \begin_deeper
11035 \begin_layout Itemize
11036
11037 \change_inserted -712698321 1554308039
11038 \begin_inset Flex Code
11039 status collapsed
11040
11041 \begin_layout Plain Layout
11042
11043 \change_inserted -712698321 1554307928
11044 Formal_with_Footline
11045 \change_unchanged
11046
11047 \end_layout
11048
11049 \end_inset
11050
11051 : formal (
11052 \begin_inset Quotes eld
11053 \end_inset
11054
11055 booktabs
11056 \begin_inset Quotes erd
11057 \end_inset
11058
11059 ) style with horizontal lines only, using a bold top and bottom line, the
11060  first and last row are additionally separated from the table body with
11061  a thin middle line.
11062 \end_layout
11063
11064 \begin_layout Itemize
11065
11066 \change_inserted -712698321 1554308087
11067 \begin_inset Flex Code
11068 status collapsed
11069
11070 \begin_layout Plain Layout
11071
11072 \change_inserted -712698321 1554308042
11073 Formal_without_Footline
11074 \end_layout
11075
11076 \end_inset
11077
11078 : same as the above, but the last row is not separated with a middle line
11079  from the body.
11080 \end_layout
11081
11082 \begin_layout Itemize
11083
11084 \change_inserted -712698321 1553618031
11085 \begin_inset Flex Code
11086 status collapsed
11087
11088 \begin_layout Plain Layout
11089
11090 \change_inserted -712698321 1553618006
11091 Simple_Grid
11092 \end_layout
11093
11094 \end_inset
11095
11096 : Simple table lines.
11097 \end_layout
11098
11099 \begin_layout Itemize
11100
11101 \change_inserted -712698321 1553618309
11102 \begin_inset Flex Code
11103 status collapsed
11104
11105 \begin_layout Plain Layout
11106
11107 \change_inserted -712698321 1553618031
11108 Grid_with_Head
11109 \end_layout
11110
11111 \end_inset
11112
11113 : Like 
11114 \begin_inset Flex Code
11115 status collapsed
11116
11117 \begin_layout Plain Layout
11118
11119 \change_inserted -712698321 1553618043
11120 Simple_Grid
11121 \end_layout
11122
11123 \end_inset
11124
11125 , but with the header column offset with a second horizontal line.
11126  This is also the default style of \SpecialChar LyX
11127 .
11128 \end_layout
11129
11130 \begin_layout Itemize
11131
11132 \change_inserted -712698321 1553618280
11133 \begin_inset Flex Code
11134 status collapsed
11135
11136 \begin_layout Plain Layout
11137
11138 \change_inserted -712698321 1553618261
11139 No_Borders
11140 \end_layout
11141
11142 \end_inset
11143
11144 : Table without lines.
11145 \change_unchanged
11146
11147 \end_layout
11148
11149 \end_deeper
11150 \begin_layout Description
11151 \begin_inset Flex Code
11152 status collapsed
11153
11154 \begin_layout Plain Layout
11155 TitleLatexName
11156 \end_layout
11157
11158 \end_inset
11159
11160  [
11161 \begin_inset Flex Code
11162 status collapsed
11163
11164 \begin_layout Plain Layout
11165 string="maketitle"
11166 \end_layout
11167
11168 \end_inset
11169
11170 ] The name of the command or environment to be used with 
11171 \begin_inset Flex Code
11172 status collapsed
11173
11174 \begin_layout Plain Layout
11175 TitleLatexType
11176 \end_layout
11177
11178 \end_inset
11179
11180 .
11181 \end_layout
11182
11183 \begin_layout Description
11184 \begin_inset Flex Code
11185 status collapsed
11186
11187 \begin_layout Plain Layout
11188 TitleLatexType
11189 \end_layout
11190
11191 \end_inset
11192
11193  [
11194 \begin_inset Flex Code
11195 status collapsed
11196
11197 \begin_layout Plain Layout
11198
11199 \emph on
11200 CommandAfter
11201 \end_layout
11202
11203 \end_inset
11204
11205
11206 \begin_inset Flex Code
11207 status collapsed
11208
11209 \begin_layout Plain Layout
11210 Environment
11211 \end_layout
11212
11213 \end_inset
11214
11215 ] Indicates what kind of markup is used to define the title of a document.
11216  
11217 \begin_inset Flex Code
11218 status collapsed
11219
11220 \begin_layout Plain Layout
11221 CommandAfter
11222 \end_layout
11223
11224 \end_inset
11225
11226  means that the macro with name 
11227 \begin_inset Flex Code
11228 status collapsed
11229
11230 \begin_layout Plain Layout
11231 TitleLatexName
11232 \end_layout
11233
11234 \end_inset
11235
11236  will be inserted after the last layout which has 
11237 \begin_inset Quotes eld
11238 \end_inset
11239
11240
11241 \begin_inset Flex Code
11242 status collapsed
11243
11244 \begin_layout Plain Layout
11245 InTitle
11246 \begin_inset space ~
11247 \end_inset
11248
11249 1
11250 \end_layout
11251
11252 \end_inset
11253
11254
11255 \begin_inset Quotes erd
11256 \end_inset
11257
11258 .
11259  
11260 \begin_inset Flex Code
11261 status collapsed
11262
11263 \begin_layout Plain Layout
11264 Environment
11265 \end_layout
11266
11267 \end_inset
11268
11269  corresponds to the case where all layouts which have 
11270 \begin_inset Quotes eld
11271 \end_inset
11272
11273
11274 \begin_inset Flex Code
11275 status collapsed
11276
11277 \begin_layout Plain Layout
11278 InTitle
11279 \begin_inset space ~
11280 \end_inset
11281
11282 1
11283 \end_layout
11284
11285 \end_inset
11286
11287
11288 \begin_inset Quotes erd
11289 \end_inset
11290
11291  should be enclosed into the 
11292 \begin_inset Flex Code
11293 status collapsed
11294
11295 \begin_layout Plain Layout
11296 TitleLatexName
11297 \end_layout
11298
11299 \end_inset
11300
11301  environment.
11302 \end_layout
11303
11304 \begin_layout Description
11305 \begin_inset Flex Code
11306 status collapsed
11307
11308 \begin_layout Plain Layout
11309 TocDepth
11310 \end_layout
11311
11312 \end_inset
11313
11314  [
11315 \begin_inset Flex Code
11316 status collapsed
11317
11318 \begin_layout Plain Layout
11319 int=3
11320 \end_layout
11321
11322 \end_inset
11323
11324 ] Sets which divisions are included in the table of contents.
11325  Corresponds to the 
11326 \begin_inset Flex Code
11327 status collapsed
11328
11329 \begin_layout Plain Layout
11330 tocdepth
11331 \end_layout
11332
11333 \end_inset
11334
11335  counter in \SpecialChar LaTeX
11336 .
11337 \end_layout
11338
11339 \begin_layout Subsection
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 ClassOptions
11345 \end_layout
11346
11347 \end_inset
11348
11349  section
11350 \begin_inset CommandInset label
11351 LatexCommand label
11352 name "subsec:ClassOptions"
11353
11354 \end_inset
11355
11356
11357 \end_layout
11358
11359 \begin_layout Standard
11360 The 
11361 \begin_inset Flex Code
11362 status collapsed
11363
11364 \begin_layout Plain Layout
11365 ClassOptions
11366 \end_layout
11367
11368 \end_inset
11369
11370  section can contain the following entries:
11371 \end_layout
11372
11373 \begin_layout Description
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378 FontSize
11379 \end_layout
11380
11381 \end_inset
11382
11383  [
11384 \begin_inset Flex Code
11385 status collapsed
11386
11387 \begin_layout Plain Layout
11388 string="10|11|12"
11389 \end_layout
11390
11391 \end_inset
11392
11393 ] The list of available font sizes for the document's main font, separated
11394  by 
11395 \begin_inset Quotes eld
11396 \end_inset
11397
11398
11399 \begin_inset Flex Code
11400 status collapsed
11401
11402 \begin_layout Plain Layout
11403 |
11404 \end_layout
11405
11406 \end_inset
11407
11408
11409 \begin_inset Quotes erd
11410 \end_inset
11411
11412 .
11413 \end_layout
11414
11415 \begin_layout Description
11416 \begin_inset Flex Code
11417 status collapsed
11418
11419 \begin_layout Plain Layout
11420 Header
11421 \end_layout
11422
11423 \end_inset
11424
11425  Used to set the DTD line with XML-based output classes.
11426  E.
11427 \begin_inset space \thinspace{}
11428 \end_inset
11429
11430 g.: PUBLIC 
11431 \begin_inset Quotes eld
11432 \end_inset
11433
11434 -//OASIS//DTD DocBook V4.2//EN
11435 \begin_inset Quotes erd
11436 \end_inset
11437
11438 .
11439 \end_layout
11440
11441 \begin_layout Description
11442 \begin_inset Flex Code
11443 status collapsed
11444
11445 \begin_layout Plain Layout
11446 PageStyle
11447 \end_layout
11448
11449 \end_inset
11450
11451  [
11452 \begin_inset Flex Code
11453 status collapsed
11454
11455 \begin_layout Plain Layout
11456 string="empty|plain|headings|fancy"
11457 \end_layout
11458
11459 \end_inset
11460
11461 ] The list of available page sty\SpecialChar softhyphen
11462 les, separated by 
11463 \begin_inset Quotes eld
11464 \end_inset
11465
11466
11467 \begin_inset Flex Code
11468 status collapsed
11469
11470 \begin_layout Plain Layout
11471 |
11472 \end_layout
11473
11474 \end_inset
11475
11476
11477 \begin_inset Quotes erd
11478 \end_inset
11479
11480 .
11481 \end_layout
11482
11483 \begin_layout Description
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 Other
11489 \end_layout
11490
11491 \end_inset
11492
11493  [
11494 \begin_inset Flex Code
11495 status collapsed
11496
11497 \begin_layout Plain Layout
11498 string=""
11499 \end_layout
11500
11501 \end_inset
11502
11503 ] Some document class options, separated by a comma, that will be added
11504  to the optional part of the 
11505 \begin_inset Flex Code
11506 status collapsed
11507
11508 \begin_layout Plain Layout
11509
11510 \backslash
11511 documentclass
11512 \end_layout
11513
11514 \end_inset
11515
11516  command.
11517 \end_layout
11518
11519 \begin_layout Standard
11520 The 
11521 \begin_inset Flex Code
11522 status collapsed
11523
11524 \begin_layout Plain Layout
11525 ClassOptions
11526 \end_layout
11527
11528 \end_inset
11529
11530  section must end with 
11531 \begin_inset Quotes eld
11532 \end_inset
11533
11534
11535 \begin_inset Flex Code
11536 status collapsed
11537
11538 \begin_layout Plain Layout
11539 End
11540 \end_layout
11541
11542 \end_inset
11543
11544
11545 \begin_inset Quotes erd
11546 \end_inset
11547
11548 .
11549 \end_layout
11550
11551 \begin_layout Subsection
11552 Paragraph styles
11553 \begin_inset CommandInset label
11554 LatexCommand label
11555 name "subsec:Paragraph-Styles"
11556
11557 \end_inset
11558
11559
11560 \end_layout
11561
11562 \begin_layout Standard
11563 A paragraph style description looks like this:
11564 \begin_inset Foot
11565 status collapsed
11566
11567 \begin_layout Plain Layout
11568 Note that this will either define a new style or modify an existing one.
11569 \end_layout
11570
11571 \end_inset
11572
11573
11574 \end_layout
11575
11576 \begin_layout LyX-Code
11577 Style 
11578 \family roman
11579 \emph on
11580 name
11581 \end_layout
11582
11583 \begin_layout LyX-Code
11584  ...
11585 \end_layout
11586
11587 \begin_layout LyX-Code
11588 End
11589 \end_layout
11590
11591 \begin_layout Standard
11592 where the following commands are allowed:
11593 \end_layout
11594
11595 \begin_layout Description
11596 \begin_inset Flex Code
11597 status collapsed
11598
11599 \begin_layout Plain Layout
11600 AddToToc
11601 \end_layout
11602
11603 \end_inset
11604
11605  [
11606 \begin_inset Flex Code
11607 status collapsed
11608
11609 \begin_layout Plain Layout
11610 string
11611 \end_layout
11612
11613 \end_inset
11614
11615 =""] This paragraph will appear in the table of contents of the given type.
11616  An empty string disables.
11617  See also the OutlinerName and the IsTocCaption commands.
11618  Default: disabled.
11619 \end_layout
11620
11621 \begin_layout Description
11622 \begin_inset Flex Code
11623 status collapsed
11624
11625 \begin_layout Plain Layout
11626 Align
11627 \end_layout
11628
11629 \end_inset
11630
11631  [
11632 \begin_inset Flex Code
11633 status collapsed
11634
11635 \begin_layout Plain Layout
11636
11637 \emph on
11638 block
11639 \emph default
11640 , left, right, center
11641 \end_layout
11642
11643 \end_inset
11644
11645 ] Paragraph alignment.
11646 \end_layout
11647
11648 \begin_layout Description
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 AlignPossible
11654 \end_layout
11655
11656 \end_inset
11657
11658  [
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663
11664 \emph on
11665 block
11666 \emph default
11667 , left, right, center
11668 \end_layout
11669
11670 \end_inset
11671
11672 ] A comma separated list of permitted alignments.
11673  (Some \SpecialChar LaTeX
11674  styles prohibit certain alignments, since those wouldn't make sense.
11675  For example a right-aligned or centered enumeration isn't possible.)
11676 \end_layout
11677
11678 \begin_layout Description
11679 \begin_inset Flex Code
11680 status collapsed
11681
11682 \begin_layout Plain Layout
11683 Argument
11684 \end_layout
11685
11686 \end_inset
11687
11688  [
11689 \begin_inset Flex Code
11690 status collapsed
11691
11692 \begin_layout Plain Layout
11693 int
11694 \end_layout
11695
11696 \end_inset
11697
11698 ] Defines argument number <int> of a command\SpecialChar breakableslash
11699 environment associated with
11700  the current style.
11701  This is useful for things like section headings, and only makes sense with
11702  \SpecialChar LaTeX
11703 .
11704  Every (optional or required) argument of a command or environment – except
11705  for the required argument that is associated with the content of the paragraph
11706  itself – has a separate definition, where the number specifies the order
11707  of the arguments.
11708  The definition must end with 
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713 EndArgument
11714 \end_layout
11715
11716 \end_inset
11717
11718 .
11719  So a command with two optional arguments has:
11720 \end_layout
11721
11722 \begin_deeper
11723 \begin_layout Quote
11724
11725 \family typewriter
11726 Argument 1
11727 \end_layout
11728
11729 \begin_layout Quote
11730
11731 \family typewriter
11732 ...
11733 \end_layout
11734
11735 \begin_layout Quote
11736
11737 \family typewriter
11738 EndArgument
11739 \end_layout
11740
11741 \begin_layout Quote
11742
11743 \family typewriter
11744 Argument 2
11745 \end_layout
11746
11747 \begin_layout Quote
11748
11749 \family typewriter
11750 ...
11751 \end_layout
11752
11753 \begin_layout Quote
11754
11755 \family typewriter
11756 EndArgument
11757 \end_layout
11758
11759 \begin_layout Standard
11760 Inside the 
11761 \begin_inset Flex Code
11762 status collapsed
11763
11764 \begin_layout Plain Layout
11765 Argument
11766 \end_layout
11767
11768 \end_inset
11769
11770  definition, the following specifications are possible:
11771 \end_layout
11772
11773 \begin_layout Itemize
11774 \begin_inset Flex Code
11775 status collapsed
11776
11777 \begin_layout Plain Layout
11778 LabelString
11779 \end_layout
11780
11781 \end_inset
11782
11783  
11784 \begin_inset Flex Code
11785 status collapsed
11786
11787 \begin_layout Plain Layout
11788 [string]
11789 \end_layout
11790
11791 \end_inset
11792
11793  The string that will appear both in the menu (to insert this argument)
11794  and on the argument inset button (unless you also specify a separate 
11795 \begin_inset Flex Code
11796 status collapsed
11797
11798 \begin_layout Plain Layout
11799 MenuString
11800 \end_layout
11801
11802 \end_inset
11803
11804 ).
11805  For the menu, you can define an accelerator by appending the respective
11806  character to the string, divided by 
11807 \begin_inset Quotes eld
11808 \end_inset
11809
11810 |
11811 \begin_inset Quotes erd
11812 \end_inset
11813
11814  (e.
11815 \begin_inset space \thinspace{}
11816 \end_inset
11817
11818 g.
11819 \begin_inset space \space{}
11820 \end_inset
11821
11822
11823 \begin_inset Quotes eld
11824 \end_inset
11825
11826
11827 \begin_inset Flex Code
11828 status collapsed
11829
11830 \begin_layout Plain Layout
11831 Short Title|S
11832 \end_layout
11833
11834 \end_inset
11835
11836
11837 \begin_inset Quotes erd
11838 \end_inset
11839
11840 ).
11841 \end_layout
11842
11843 \begin_layout Itemize
11844 \begin_inset Flex Code
11845 status collapsed
11846
11847 \begin_layout Plain Layout
11848 MenuString
11849 \end_layout
11850
11851 \end_inset
11852
11853  
11854 \begin_inset Flex Code
11855 status collapsed
11856
11857 \begin_layout Plain Layout
11858 [string]
11859 \end_layout
11860
11861 \end_inset
11862
11863  A separate string for the menu.
11864  You can define an accelerator by appending the respective character to
11865  the string, divided by 
11866 \begin_inset Quotes eld
11867 \end_inset
11868
11869 |
11870 \begin_inset Quotes erd
11871 \end_inset
11872
11873  (e.
11874 \begin_inset space \thinspace{}
11875 \end_inset
11876
11877 g.
11878 \begin_inset space \space{}
11879 \end_inset
11880
11881
11882 \begin_inset Quotes eld
11883 \end_inset
11884
11885
11886 \begin_inset Flex Code
11887 status collapsed
11888
11889 \begin_layout Plain Layout
11890 Short Title|S
11891 \end_layout
11892
11893 \end_inset
11894
11895
11896 \begin_inset Quotes erd
11897 \end_inset
11898
11899 ).
11900  This specification is optional.
11901  If it is not given the 
11902 \begin_inset Flex Code
11903 status collapsed
11904
11905 \begin_layout Plain Layout
11906 LabelString
11907 \end_layout
11908
11909 \end_inset
11910
11911  will be used instead for the menu.
11912 \end_layout
11913
11914 \begin_layout Itemize
11915 \begin_inset Flex Code
11916 status collapsed
11917
11918 \begin_layout Plain Layout
11919 Tooltip
11920 \end_layout
11921
11922 \end_inset
11923
11924  
11925 \begin_inset Flex Code
11926 status collapsed
11927
11928 \begin_layout Plain Layout
11929 [string]
11930 \end_layout
11931
11932 \end_inset
11933
11934  A longer explanatory text that appears in the tooltip when hovering over
11935  the argument inset.
11936 \end_layout
11937
11938 \begin_layout Itemize
11939 \begin_inset Flex Code
11940 status collapsed
11941
11942 \begin_layout Plain Layout
11943 Mandatory
11944 \end_layout
11945
11946 \end_inset
11947
11948  [
11949 \begin_inset Flex Code
11950 status collapsed
11951
11952 \begin_layout Plain Layout
11953
11954 \emph on
11955 0
11956 \end_layout
11957
11958 \end_inset
11959
11960 ,
11961 \begin_inset space \thinspace{}
11962 \end_inset
11963
11964
11965 \begin_inset Flex Code
11966 status collapsed
11967
11968 \begin_layout Plain Layout
11969 1
11970 \end_layout
11971
11972 \end_inset
11973
11974 ] Declare if this is a mandatory (1) or an optional (0) argument.
11975  Mandatory arguments will be output empty if not given, while optional arguments
11976  will not be output at all.
11977  By default, mandatory arguments are delimited by 
11978 \begin_inset Flex Code
11979 status collapsed
11980
11981 \begin_layout Plain Layout
11982 {...}
11983 \end_layout
11984
11985 \end_inset
11986
11987 , while optional arguments are delimited by 
11988 \begin_inset Flex Code
11989 status collapsed
11990
11991 \begin_layout Plain Layout
11992 [...]
11993 \end_layout
11994
11995 \end_inset
11996
11997
11998 \end_layout
11999
12000 \begin_layout Itemize
12001 \begin_inset Flex Code
12002 status collapsed
12003
12004 \begin_layout Plain Layout
12005 Requires
12006 \end_layout
12007
12008 \end_inset
12009
12010  
12011 \begin_inset Flex Code
12012 status collapsed
12013
12014 \begin_layout Plain Layout
12015 [int=0]
12016 \end_layout
12017
12018 \end_inset
12019
12020  defines another argument (by its number) which this argument requires to
12021  be output if it is itself output.
12022  E.
12023 \begin_inset space \thinspace{}
12024 \end_inset
12025
12026 g., in \SpecialChar LaTeX
12027  commands, optional arguments often require previous optional arguments
12028  to be output (at least empty), as in 
12029 \begin_inset Flex Code
12030 status collapsed
12031
12032 \begin_layout Plain Layout
12033
12034 \backslash
12035 command[][argument]{text}
12036 \end_layout
12037
12038 \end_inset
12039
12040 .
12041  This can be achieved by the statement 
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046 Requires 1
12047 \end_layout
12048
12049 \end_inset
12050
12051  within 
12052 \begin_inset Flex Code
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056 Argument 2
12057 \end_layout
12058
12059 \end_inset
12060
12061 .
12062 \end_layout
12063
12064 \begin_layout Itemize
12065 \begin_inset Flex Code
12066 status collapsed
12067
12068 \begin_layout Plain Layout
12069 LeftDelim
12070 \end_layout
12071
12072 \end_inset
12073
12074  
12075 \begin_inset Flex Code
12076 status collapsed
12077
12078 \begin_layout Plain Layout
12079 [string]
12080 \end_layout
12081
12082 \end_inset
12083
12084  defines a custom left delimiter (instead of 
12085 \begin_inset Flex Code
12086 status collapsed
12087
12088 \begin_layout Plain Layout
12089 {
12090 \end_layout
12091
12092 \end_inset
12093
12094  or 
12095 \begin_inset Flex Code
12096 status collapsed
12097
12098 \begin_layout Plain Layout
12099 [
12100 \end_layout
12101
12102 \end_inset
12103
12104 ).
12105  A line break in the output can be indicated by 
12106 \begin_inset Flex Code
12107 status collapsed
12108
12109 \begin_layout Plain Layout
12110 <br/>
12111 \end_layout
12112
12113 \end_inset
12114
12115 .
12116 \end_layout
12117
12118 \begin_layout Itemize
12119 \begin_inset Flex Code
12120 status collapsed
12121
12122 \begin_layout Plain Layout
12123 RightDelim
12124 \end_layout
12125
12126 \end_inset
12127
12128  
12129 \begin_inset Flex Code
12130 status collapsed
12131
12132 \begin_layout Plain Layout
12133 [string]
12134 \end_layout
12135
12136 \end_inset
12137
12138  defines a custom right delimiter (instead of 
12139 \begin_inset Flex Code
12140 status collapsed
12141
12142 \begin_layout Plain Layout
12143 }
12144 \end_layout
12145
12146 \end_inset
12147
12148  or 
12149 \begin_inset Flex Code
12150 status collapsed
12151
12152 \begin_layout Plain Layout
12153 ]
12154 \end_layout
12155
12156 \end_inset
12157
12158 ).
12159  A line break in the output can be indicated by 
12160 \begin_inset Flex Code
12161 status collapsed
12162
12163 \begin_layout Plain Layout
12164 <br/>
12165 \end_layout
12166
12167 \end_inset
12168
12169 .
12170 \end_layout
12171
12172 \begin_layout Itemize
12173 \begin_inset Flex Code
12174 status collapsed
12175
12176 \begin_layout Plain Layout
12177 DefaultArg
12178 \end_layout
12179
12180 \end_inset
12181
12182  
12183 \begin_inset Flex Code
12184 status collapsed
12185
12186 \begin_layout Plain Layout
12187 [string]
12188 \end_layout
12189
12190 \end_inset
12191
12192  defines an argument that is inserted if and only if no user-specified arguments
12193  were given, i.
12194 \begin_inset space \thinspace{}
12195 \end_inset
12196
12197 e.
12198 \begin_inset space \space{}
12199 \end_inset
12200
12201 if no argument inset has been inserted (note that also an empty argument
12202  inset omits the DefaultArg).
12203  Multiple arguments need to be separated by comma.
12204 \end_layout
12205
12206 \begin_layout Itemize
12207 \begin_inset Flex Code
12208 status collapsed
12209
12210 \begin_layout Plain Layout
12211 PresetArg
12212 \end_layout
12213
12214 \end_inset
12215
12216  
12217 \begin_inset Flex Code
12218 status collapsed
12219
12220 \begin_layout Plain Layout
12221 [string]
12222 \end_layout
12223
12224 \end_inset
12225
12226  defines an argument that is inserted in any case (alone or in addition
12227  to user-specified arguments).
12228  Multiple arguments need to be separated by comma.
12229 \end_layout
12230
12231 \begin_layout Itemize
12232 \begin_inset Flex Code
12233 status collapsed
12234
12235 \begin_layout Plain Layout
12236 Font
12237 \end_layout
12238
12239 \end_inset
12240
12241  The font used for the argument content, see 
12242 \begin_inset CommandInset ref
12243 LatexCommand ref
12244 reference "subsec:Font-description"
12245
12246 \end_inset
12247
12248 .
12249 \end_layout
12250
12251 \begin_layout Itemize
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 LabelFont
12257 \end_layout
12258
12259 \end_inset
12260
12261  The font used for the label; see 
12262 \begin_inset CommandInset ref
12263 LatexCommand ref
12264 reference "subsec:Font-description"
12265
12266 \end_inset
12267
12268 .
12269 \end_layout
12270
12271 \begin_layout Itemize
12272 \begin_inset Flex Code
12273 status collapsed
12274
12275 \begin_layout Plain Layout
12276 Decoration
12277 \end_layout
12278
12279 \end_inset
12280
12281  [
12282 \begin_inset Flex Code
12283 status collapsed
12284
12285 \begin_layout Plain Layout
12286
12287 \emph on
12288 Classic
12289 \emph default
12290 , Minimalistic, Conglomerate
12291 \end_layout
12292
12293 \end_inset
12294
12295 ] describes the rendering style used for the inset's frame and buttons.
12296 \end_layout
12297
12298 \begin_layout Itemize
12299 \begin_inset Flex Code
12300 status collapsed
12301
12302 \begin_layout Plain Layout
12303 AutoInsert
12304 \end_layout
12305
12306 \end_inset
12307
12308  
12309 \begin_inset Flex Code
12310 status collapsed
12311
12312 \begin_layout Plain Layout
12313 [int=0]
12314 \end_layout
12315
12316 \end_inset
12317
12318  If this is set to 
12319 \begin_inset Flex Code
12320 status collapsed
12321
12322 \begin_layout Plain Layout
12323 1
12324 \end_layout
12325
12326 \end_inset
12327
12328 , this argument is automatically inserted when the respective style is selected.
12329  Currently, only one argument per style\SpecialChar breakableslash
12330 layout can be automatically inserted.
12331 \end_layout
12332
12333 \begin_layout Itemize
12334 \begin_inset Flex Code
12335 status collapsed
12336
12337 \begin_layout Plain Layout
12338 InsertCotext
12339 \end_layout
12340
12341 \end_inset
12342
12343  
12344 \begin_inset Flex Code
12345 status collapsed
12346
12347 \begin_layout Plain Layout
12348 [int=0]
12349 \end_layout
12350
12351 \end_inset
12352
12353  If this is set to 
12354 \begin_inset Flex Code
12355 status collapsed
12356
12357 \begin_layout Plain Layout
12358 1
12359 \end_layout
12360
12361 \end_inset
12362
12363 , this argument will be inserted with a copy of the co-text (either selected
12364  text or the whole paragraph) as content.
12365 \end_layout
12366
12367 \begin_layout Itemize
12368 \begin_inset Flex Code
12369 status collapsed
12370
12371 \begin_layout Plain Layout
12372 PassThru
12373 \end_layout
12374
12375 \end_inset
12376
12377  [
12378 \begin_inset Flex Code
12379 status collapsed
12380
12381 \begin_layout Plain Layout
12382
12383 \emph on
12384 inherited
12385 \emph default
12386 , true, false
12387 \end_layout
12388
12389 \end_inset
12390
12391 ] Whether the contents of this argument should be output in raw form, meaning
12392  without special translations that \SpecialChar LaTeX
12393  would require.
12394  By default, the 
12395 \begin_inset Flex Code
12396 status collapsed
12397
12398 \begin_layout Plain Layout
12399 PassThru
12400 \end_layout
12401
12402 \end_inset
12403
12404  status is inherited by the inset or paragraph layout the argument belongs
12405  to, true and false change the status for the given argument only.
12406 \end_layout
12407
12408 \begin_layout Itemize
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 PassThruChars
12414 \end_layout
12415
12416 \end_inset
12417
12418  [
12419 \begin_inset Flex Code
12420 status collapsed
12421
12422 \begin_layout Plain Layout
12423 string of characters
12424 \end_layout
12425
12426 \end_inset
12427
12428 ]
12429 \family typewriter
12430  
12431 \family default
12432 Defines individual characters
12433 \begin_inset Newline linebreak
12434 \end_inset
12435
12436 that should be output in raw form, meaning without special translations
12437  that \SpecialChar LaTeX
12438  would require.
12439  Note that, contrary to PassThru, this needs to be explicitly defined for
12440  arguments.
12441  That is, arguments do not inherit PassThruChars from their parent inset
12442  or layout.
12443 \end_layout
12444
12445 \begin_layout Itemize
12446 \begin_inset Flex Code
12447 status collapsed
12448
12449 \begin_layout Plain Layout
12450 IsTocCaption
12451 \end_layout
12452
12453 \end_inset
12454
12455  [
12456 \begin_inset Flex Code
12457 status collapsed
12458
12459 \begin_layout Plain Layout
12460
12461 \emph on
12462 0
12463 \end_layout
12464
12465 \end_inset
12466
12467 ,
12468 \begin_inset space \thinspace{}
12469 \end_inset
12470
12471
12472 \begin_inset Flex Code
12473 status collapsed
12474
12475 \begin_layout Plain Layout
12476 1
12477 \end_layout
12478
12479 \end_inset
12480
12481 ] If this is set to 1, the argument will output its content in the corresponding
12482  item in the table of contents.
12483  See AddToToc.
12484 \end_layout
12485
12486 \begin_layout Standard
12487 By default, the text entered in the \SpecialChar LyX
12488  workarea in the respective layout is
12489  the last (mandatory) argument of a command if the 
12490 \begin_inset Flex Code
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494 LatexType
12495 \end_layout
12496
12497 \end_inset
12498
12499  is 
12500 \begin_inset Flex Code
12501 status collapsed
12502
12503 \begin_layout Plain Layout
12504 Command
12505 \end_layout
12506
12507 \end_inset
12508
12509 .
12510  However, arguments with the prefix 
12511 \begin_inset Flex Code
12512 status collapsed
12513
12514 \begin_layout Plain Layout
12515 post:
12516 \end_layout
12517
12518 \end_inset
12519
12520  are output after this workarea argument.
12521  Note that post-argument numbering restarts at 1, so the first argument
12522  following the workarea argument is 
12523 \begin_inset Flex Code
12524 status collapsed
12525
12526 \begin_layout Plain Layout
12527 post:1
12528 \end_layout
12529
12530 \end_inset
12531
12532 .
12533  Post-arguments are ignored in any other 
12534 \begin_inset Flex Code
12535 status collapsed
12536
12537 \begin_layout Plain Layout
12538 LatexType
12539 \end_layout
12540
12541 \end_inset
12542
12543  than 
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548 Command
12549 \end_layout
12550
12551 \end_inset
12552
12553 .
12554 \end_layout
12555
12556 \begin_layout Standard
12557 Arguments for list 
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562
12563 \backslash
12564 item
12565 \end_layout
12566
12567 \end_inset
12568
12569 s (as in 
12570 \begin_inset Flex Code
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574
12575 \backslash
12576 item[foo]
12577 \end_layout
12578
12579 \end_inset
12580
12581 ) have the prefix 
12582 \begin_inset Flex Code
12583 status collapsed
12584
12585 \begin_layout Plain Layout
12586 item:
12587 \end_layout
12588
12589 \end_inset
12590
12591  followed by the number (e.
12592 \begin_inset space \thinspace{}
12593 \end_inset
12594
12595 g.
12596 \begin_inset space \space{}
12597 \end_inset
12598
12599
12600 \begin_inset Flex Code
12601 status collapsed
12602
12603 \begin_layout Plain Layout
12604 Argument item:1
12605 \end_layout
12606
12607 \end_inset
12608
12609 ).
12610 \change_inserted -712698321 1534487781
12611
12612 \end_layout
12613
12614 \begin_layout Standard
12615
12616 \change_inserted -712698321 1534488561
12617 Finally, there is a special argument type with the prefix 
12618 \begin_inset Flex Code
12619 status collapsed
12620
12621 \begin_layout Plain Layout
12622
12623 \change_inserted -712698321 1534487844
12624 listpreamble:
12625 \change_unchanged
12626
12627 \end_layout
12628
12629 \end_inset
12630
12631 .
12632  It is not really an argument, but uses the argument interface (thus, the
12633  prefix is also followed by a number, e.
12634 \begin_inset space \thinspace{}
12635 \end_inset
12636
12637 g.
12638  
12639 \begin_inset Flex Code
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643
12644 \change_inserted -712698321 1534488412
12645 Argument listpreamble:1
12646 \end_layout
12647
12648 \end_inset
12649
12650 ).
12651  As the name implies, it is targeted at lists such as 
12652 \family sans
12653 Itemize
12654 \family default
12655
12656 \family sans
12657 Enumerate
12658 \family default
12659
12660 \family sans
12661 Description
12662 \family default
12663 , or 
12664 \family sans
12665 Bibliography
12666 \family default
12667 .
12668  Its content will be output at the list start, before the first 
12669 \begin_inset Flex Code
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673
12674 \change_inserted -712698321 1534488058
12675
12676 \backslash
12677 item
12678 \change_unchanged
12679
12680 \end_layout
12681
12682 \end_inset
12683
12684 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12685 ).
12686  This way, users can insert redefinitions (of lengths etc.) to individual
12687  lists.
12688  By default, these arguments do not have a delimiter.
12689 \change_unchanged
12690
12691 \end_layout
12692
12693 \end_deeper
12694 \begin_layout Description
12695 \begin_inset Flex Code
12696 status collapsed
12697
12698 \begin_layout Plain Layout
12699 AutoNests
12700 \end_layout
12701
12702 \end_inset
12703
12704  Includes a comma-separated list of layouts that should be nested in and
12705  after the current layout.
12706  Only makes sense for nestable layouts (such as environments).
12707  Must be ended by 
12708 \begin_inset Quotes eld
12709 \end_inset
12710
12711
12712 \begin_inset Flex Code
12713 status collapsed
12714
12715 \begin_layout Plain Layout
12716 EndAutoNests
12717 \end_layout
12718
12719 \end_inset
12720
12721
12722 \begin_inset Quotes erd
12723 \end_inset
12724
12725 .
12726  See also 
12727 \begin_inset Flex Code
12728 status collapsed
12729
12730 \begin_layout Plain Layout
12731 IsAutoNestedBy
12732 \end_layout
12733
12734 \end_inset
12735
12736 .
12737 \end_layout
12738
12739 \begin_layout Description
12740 \begin_inset Flex Code
12741 status collapsed
12742
12743 \begin_layout Plain Layout
12744 BabelPreamble
12745 \end_layout
12746
12747 \end_inset
12748
12749  Note that this will completely override any prior 
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754 BabelPreamble
12755 \end_layout
12756
12757 \end_inset
12758
12759  declaration for this style.
12760  Must end with 
12761 \begin_inset Quotes eld
12762 \end_inset
12763
12764
12765 \begin_inset Flex Code
12766 status collapsed
12767
12768 \begin_layout Plain Layout
12769 EndBabelPreamble
12770 \end_layout
12771
12772 \end_inset
12773
12774
12775 \begin_inset Quotes erd
12776 \end_inset
12777
12778 .
12779  See 
12780 \begin_inset CommandInset ref
12781 LatexCommand ref
12782 reference "subsec:I18n"
12783
12784 \end_inset
12785
12786  for details on its use.
12787 \end_layout
12788
12789 \begin_layout Description
12790 \begin_inset Flex Code
12791 status collapsed
12792
12793 \begin_layout Plain Layout
12794 BottomSep
12795 \end_layout
12796
12797 \end_inset
12798
12799  [
12800 \begin_inset Flex Code
12801 status collapsed
12802
12803 \begin_layout Plain Layout
12804 float=0
12805 \end_layout
12806
12807 \end_inset
12808
12809 ]
12810 \begin_inset Foot
12811 status collapsed
12812
12813 \begin_layout Plain Layout
12814 Note that a `float' here is a real number, such as: 1.5.
12815 \end_layout
12816
12817 \end_inset
12818
12819  The vertical space with which the last of a chain of paragraphs with this
12820  style is separated from the following paragraph.
12821  If the next paragraph has another style, the separations are not simply
12822  added, but the maximum is taken.
12823 \end_layout
12824
12825 \begin_layout Description
12826 \begin_inset Flex Code
12827 status collapsed
12828
12829 \begin_layout Plain Layout
12830 Category
12831 \end_layout
12832
12833 \end_inset
12834
12835  [
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840 string
12841 \end_layout
12842
12843 \end_inset
12844
12845 ] The category for this style.
12846  This is used to group related styles in the style combobox on the toolbar.
12847  Any string can be used, but you may want to use existing categories with
12848  your own styles.
12849  
12850 \end_layout
12851
12852 \begin_layout Description
12853 \begin_inset Flex Code
12854 status collapsed
12855
12856 \begin_layout Plain Layout
12857 CommandDepth
12858 \end_layout
12859
12860 \end_inset
12861
12862  Depth of XML command.
12863  Used only with XML-type formats.
12864 \end_layout
12865
12866 \begin_layout Description
12867 \begin_inset Flex Code
12868 status collapsed
12869
12870 \begin_layout Plain Layout
12871 CopyStyle
12872 \end_layout
12873
12874 \end_inset
12875
12876  [
12877 \begin_inset Flex Code
12878 status collapsed
12879
12880 \begin_layout Plain Layout
12881 string
12882 \end_layout
12883
12884 \end_inset
12885
12886 ] Copies all the features of an existing style into the current one.
12887  
12888 \end_layout
12889
12890 \begin_layout Description
12891 \begin_inset Flex Code
12892 status collapsed
12893
12894 \begin_layout Plain Layout
12895 DependsOn
12896 \end_layout
12897
12898 \end_inset
12899
12900  [
12901 \begin_inset Flex Code
12902 status collapsed
12903
12904 \begin_layout Plain Layout
12905 <name>
12906 \end_layout
12907
12908 \end_inset
12909
12910 ] The name of a style whose preamble should be output 
12911 \emph on
12912 before
12913 \emph default
12914  this one.
12915  This allows to ensure some ordering of the preamble snippets when macros
12916  definitions depend on one another.
12917 \begin_inset Foot
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 Note that, besides that functionality, there is no way to ensure any ordering
12922  of preambles.
12923  The ordering that you see in a given version of \SpecialChar LyX
12924  may change without warning
12925  in later versions.
12926 \end_layout
12927
12928 \end_inset
12929
12930
12931 \end_layout
12932
12933 \begin_layout Description
12934 \begin_inset Flex Code
12935 status collapsed
12936
12937 \begin_layout Plain Layout
12938 EndLabeltype
12939 \end_layout
12940
12941 \end_inset
12942
12943  [
12944 \begin_inset Flex Code
12945 status collapsed
12946
12947 \begin_layout Plain Layout
12948
12949 \emph on
12950 No_Label
12951 \emph default
12952 , Box, Filled_Box, Static
12953 \end_layout
12954
12955 \end_inset
12956
12957 ] The type of label that stands at the end of the paragraph (or sequence
12958  of paragraphs if 
12959 \begin_inset Flex Code
12960 status collapsed
12961
12962 \begin_layout Plain Layout
12963 LatexType
12964 \end_layout
12965
12966 \end_inset
12967
12968  is
12969 \begin_inset Newline newline
12970 \end_inset
12971
12972
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 Environment
12978 \end_layout
12979
12980 \end_inset
12981
12982
12983 \begin_inset Flex Code
12984 status collapsed
12985
12986 \begin_layout Plain Layout
12987 Item_Environment
12988 \end_layout
12989
12990 \end_inset
12991
12992  or 
12993 \begin_inset Flex Code
12994 status collapsed
12995
12996 \begin_layout Plain Layout
12997 List_Environment
12998 \end_layout
12999
13000 \end_inset
13001
13002 ).
13003  
13004 \begin_inset Flex Code
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 No_Label
13009 \end_layout
13010
13011 \end_inset
13012
13013  means 
13014 \begin_inset Quotes eld
13015 \end_inset
13016
13017 nothing
13018 \begin_inset Quotes erd
13019 \end_inset
13020
13021
13022 \begin_inset Flex Code
13023 status collapsed
13024
13025 \begin_layout Plain Layout
13026 Box
13027 \end_layout
13028
13029 \end_inset
13030
13031  (resp.
13032 \begin_inset space \space{}
13033 \end_inset
13034
13035
13036 \begin_inset Flex Code
13037 status collapsed
13038
13039 \begin_layout Plain Layout
13040 Filled_Box
13041 \end_layout
13042
13043 \end_inset
13044
13045 ) is a white (resp.
13046 \begin_inset space ~
13047 \end_inset
13048
13049 black) square suitable for end of proof markers, 
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054 Static
13055 \end_layout
13056
13057 \end_inset
13058
13059  is an explicit text string.
13060 \end_layout
13061
13062 \begin_layout Description
13063 \begin_inset Flex Code
13064 status collapsed
13065
13066 \begin_layout Plain Layout
13067 EndLabelString
13068 \end_layout
13069
13070 \end_inset
13071
13072  [
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 string=""
13078 \end_layout
13079
13080 \end_inset
13081
13082 ] The string used for a label with a 
13083 \begin_inset Flex Code
13084 status collapsed
13085
13086 \begin_layout Plain Layout
13087 Static
13088 \end_layout
13089
13090 \end_inset
13091
13092
13093 \begin_inset Newline newline
13094 \end_inset
13095
13096
13097 \begin_inset Flex Code
13098 status collapsed
13099
13100 \begin_layout Plain Layout
13101 EndLabelType
13102 \end_layout
13103
13104 \end_inset
13105
13106 .
13107  
13108 \end_layout
13109
13110 \begin_layout Description
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115 Font
13116 \end_layout
13117
13118 \end_inset
13119
13120  The font used for both the text body 
13121 \emph on
13122 and
13123 \emph default
13124  the label.
13125  See 
13126 \begin_inset CommandInset ref
13127 LatexCommand ref
13128 reference "subsec:Font-description"
13129
13130 \end_inset
13131
13132 .
13133  Note that defining this font automatically defines the 
13134 \begin_inset Flex Code
13135 status collapsed
13136
13137 \begin_layout Plain Layout
13138 LabelFont
13139 \end_layout
13140
13141 \end_inset
13142
13143  to the same value.
13144  So you should define this one first if you also want to define 
13145 \begin_inset Flex Code
13146 status collapsed
13147
13148 \begin_layout Plain Layout
13149 LabelFont
13150 \end_layout
13151
13152 \end_inset
13153
13154 .
13155 \end_layout
13156
13157 \begin_layout Description
13158 \begin_inset Flex Code
13159 status collapsed
13160
13161 \begin_layout Plain Layout
13162 ForceLocal
13163 \end_layout
13164
13165 \end_inset
13166
13167  [
13168 \begin_inset Flex Code
13169 status collapsed
13170
13171 \begin_layout Plain Layout
13172 int=0
13173 \end_layout
13174
13175 \end_inset
13176
13177 ] Used for backporting new styles to stable \SpecialChar LyX
13178  versions.
13179  The first stable version that supports this tag is \SpecialChar LyX
13180  2.1.0.
13181  The argument is a number which may either be 0, -1 or any value greater
13182  than zero.
13183  If the 
13184 \begin_inset Flex Code
13185 status collapsed
13186
13187 \begin_layout Plain Layout
13188 ForceLocal
13189 \end_layout
13190
13191 \end_inset
13192
13193  flag of a style is greater than zero, it will always be written to the
13194  document header.
13195  If a .lyx file is read, the style definitions from the document header are
13196  added to the document class.
13197  Therefore even older \SpecialChar LyX
13198  versions can handle the style.
13199  The argument of 
13200 \begin_inset Flex Code
13201 status collapsed
13202
13203 \begin_layout Plain Layout
13204 ForceLocal
13205 \end_layout
13206
13207 \end_inset
13208
13209  is a version number: if the style is read, and the version number is less
13210  than the version number of the already existing style in the document class,
13211  the new style is ignored.
13212  If the version number is greater, the new style replaces the existing style.
13213  A value of -1 means an infinite version number, i.
13214 \begin_inset space \thinspace{}
13215 \end_inset
13216
13217 e.
13218 \begin_inset space \space{}
13219 \end_inset
13220
13221 the style is always used.
13222 \end_layout
13223
13224 \begin_layout Description
13225 \begin_inset Flex Code
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229 FreeSpacing
13230 \end_layout
13231
13232 \end_inset
13233
13234  [
13235 \begin_inset Flex Code
13236 status collapsed
13237
13238 \begin_layout Plain Layout
13239
13240 \emph on
13241 0
13242 \end_layout
13243
13244 \end_inset
13245
13246 ,
13247 \begin_inset space \thinspace{}
13248 \end_inset
13249
13250
13251 \begin_inset Flex Code
13252 status collapsed
13253
13254 \begin_layout Plain Layout
13255 1
13256 \end_layout
13257
13258 \end_inset
13259
13260 ] Usually \SpecialChar LyX
13261  does not allow you to insert more than one space between words,
13262  since a space is considered as the separation between two words, not a
13263  character or symbol of its own.
13264  This is a very fine thing but sometimes annoying, for example, when typing
13265  program code or plain \SpecialChar LaTeX
13266  code.
13267  For this reason, 
13268 \begin_inset Flex Code
13269 status collapsed
13270
13271 \begin_layout Plain Layout
13272 FreeSpacing
13273 \end_layout
13274
13275 \end_inset
13276
13277  can be enabled.
13278  
13279 \change_deleted -495245474 1550490105
13280 Note that 
13281 \change_unchanged
13282 \SpecialChar LyX
13283  will create protected blanks for the additional blanks when in 
13284 \change_inserted -495245474 1550490096
13285
13286 \begin_inset Flex Code
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290
13291 \change_inserted -495245474 1550490089
13292 Passthru 1
13293 \end_layout
13294
13295 \end_inset
13296
13297  is not specified.
13298 \change_deleted -495245474 1550490116
13299 another mode than \SpecialChar LaTeX
13300 -mode.
13301
13302 \change_inserted -495245474 1550247760
13303  Note that 
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308
13309 \change_inserted -495245474 1550247736
13310 FreeSpacing
13311 \end_layout
13312
13313 \end_inset
13314
13315  implies 
13316 \begin_inset Flex Code
13317 status collapsed
13318
13319 \begin_layout Plain Layout
13320
13321 \change_inserted -495245474 1550247755
13322 KeepEmpty
13323 \end_layout
13324
13325 \end_inset
13326
13327 .
13328 \change_unchanged
13329
13330 \end_layout
13331
13332 \begin_layout Description
13333 \begin_inset Flex Code
13334 status collapsed
13335
13336 \begin_layout Plain Layout
13337 HTML*
13338 \end_layout
13339
13340 \end_inset
13341
13342  These tags are used with XHTML output.
13343  See 
13344 \begin_inset CommandInset ref
13345 LatexCommand ref
13346 reference "subsec:Paragraph-Style-XHTML"
13347
13348 \end_inset
13349
13350 .
13351 \end_layout
13352
13353 \begin_layout Description
13354 \begin_inset Flex Code
13355 status collapsed
13356
13357 \begin_layout Plain Layout
13358 InnerTag
13359 \end_layout
13360
13361 \end_inset
13362
13363  [FIXME] (Used only with XML-type formats.)
13364 \end_layout
13365
13366 \begin_layout Description
13367 \begin_inset Flex Code
13368 status collapsed
13369
13370 \begin_layout Plain Layout
13371 InPreamble
13372 \end_layout
13373
13374 \end_inset
13375
13376  [
13377 \begin_inset Flex Code
13378 status collapsed
13379
13380 \begin_layout Plain Layout
13381
13382 \emph on
13383 0
13384 \end_layout
13385
13386 \end_inset
13387
13388 ,
13389 \begin_inset space \thinspace{}
13390 \end_inset
13391
13392
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 1
13398 \end_layout
13399
13400 \end_inset
13401
13402 ] If 
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 1
13408 \end_layout
13409
13410 \end_inset
13411
13412 , marks the style as to be included in the document preamble and not in
13413  the document body.
13414  This is useful for document classes that want such information as the title
13415  and author to appear in the preamble.
13416  Note that this works only for styles for which the 
13417 \begin_inset Flex Code
13418 status collapsed
13419
13420 \begin_layout Plain Layout
13421 LatexType
13422 \end_layout
13423
13424 \end_inset
13425
13426  is 
13427 \begin_inset Flex Code
13428 status collapsed
13429
13430 \begin_layout Plain Layout
13431 Command
13432 \end_layout
13433
13434 \end_inset
13435
13436  or 
13437 \begin_inset Flex Code
13438 status collapsed
13439
13440 \begin_layout Plain Layout
13441 Paragraph
13442 \end_layout
13443
13444 \end_inset
13445
13446 .
13447 \end_layout
13448
13449 \begin_layout Description
13450 \begin_inset Flex Code
13451 status collapsed
13452
13453 \begin_layout Plain Layout
13454 InTitle
13455 \end_layout
13456
13457 \end_inset
13458
13459  [
13460 \begin_inset Flex Code
13461 status collapsed
13462
13463 \begin_layout Plain Layout
13464
13465 \emph on
13466 0
13467 \end_layout
13468
13469 \end_inset
13470
13471 ,
13472 \begin_inset space \thinspace{}
13473 \end_inset
13474
13475
13476 \begin_inset Flex Code
13477 status collapsed
13478
13479 \begin_layout Plain Layout
13480 1
13481 \end_layout
13482
13483 \end_inset
13484
13485 ] If 
13486 \begin_inset Flex Code
13487 status collapsed
13488
13489 \begin_layout Plain Layout
13490 1
13491 \end_layout
13492
13493 \end_inset
13494
13495 , marks the style as being part of a title block (see also the 
13496 \begin_inset Flex Code
13497 status collapsed
13498
13499 \begin_layout Plain Layout
13500 TitleLatexType
13501 \end_layout
13502
13503 \end_inset
13504
13505  and 
13506 \begin_inset Flex Code
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 TitleLatexName
13511 \end_layout
13512
13513 \end_inset
13514
13515  global entries).
13516 \end_layout
13517
13518 \begin_layout Description
13519 \begin_inset Flex Code
13520 status collapsed
13521
13522 \begin_layout Plain Layout
13523 IsAutoNestedBy
13524 \end_layout
13525
13526 \end_inset
13527
13528  Includes a comma-separated list of layouts after which this one should
13529  be nested.
13530  Only makes sense with regard to nestable layouts (such as environments).
13531  Must be ended by 
13532 \begin_inset Quotes eld
13533 \end_inset
13534
13535
13536 \begin_inset Flex Code
13537 status collapsed
13538
13539 \begin_layout Plain Layout
13540 EndIsAutoNestedBy
13541 \end_layout
13542
13543 \end_inset
13544
13545
13546 \begin_inset Quotes erd
13547 \end_inset
13548
13549 .
13550  See also 
13551 \begin_inset Flex Code
13552 status collapsed
13553
13554 \begin_layout Plain Layout
13555 AutoNests
13556 \end_layout
13557
13558 \end_inset
13559
13560 .
13561 \end_layout
13562
13563 \begin_layout Description
13564 \begin_inset Flex Code
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568 IsTocCaption
13569 \end_layout
13570
13571 \end_inset
13572
13573  [
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578
13579 \emph on
13580 0
13581 \end_layout
13582
13583 \end_inset
13584
13585 ,
13586 \begin_inset space \thinspace{}
13587 \end_inset
13588
13589
13590 \begin_inset Flex Code
13591 status collapsed
13592
13593 \begin_layout Plain Layout
13594 1
13595 \end_layout
13596
13597 \end_inset
13598
13599 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13600  of its contents in its item in the table of contents.
13601  Otherwise, only the label, if it exists, appears.
13602 \end_layout
13603
13604 \begin_layout Description
13605 \begin_inset Flex Code
13606 status collapsed
13607
13608 \begin_layout Plain Layout
13609 ItemCommand
13610 \end_layout
13611
13612 \end_inset
13613
13614  [
13615 \begin_inset Flex Code
13616 status collapsed
13617
13618 \begin_layout Plain Layout
13619 string="item"
13620 \end_layout
13621
13622 \end_inset
13623
13624 ] The \SpecialChar LaTeX
13625  command sequence declaring an item in a list.
13626  The command is to be defined without the preceding backslash (the default
13627  is 
13628 \begin_inset Quotes eld
13629 \end_inset
13630
13631 item
13632 \begin_inset Quotes erd
13633 \end_inset
13634
13635 , resulting in 
13636 \begin_inset Flex Code
13637 status collapsed
13638
13639 \begin_layout Plain Layout
13640
13641 \backslash
13642 item
13643 \end_layout
13644
13645 \end_inset
13646
13647  in the \SpecialChar LaTeX
13648  output).
13649 \end_layout
13650
13651 \begin_layout Description
13652 \begin_inset Flex Code
13653 status collapsed
13654
13655 \begin_layout Plain Layout
13656 ItemSep
13657 \end_layout
13658
13659 \end_inset
13660
13661  [
13662 \begin_inset Flex Code
13663 status collapsed
13664
13665 \begin_layout Plain Layout
13666 float=0
13667 \end_layout
13668
13669 \end_inset
13670
13671 ] This provides extra space between paragraphs that have the same style.
13672  If you put other styles into an environment, each is separated with the
13673  environment's 
13674 \begin_inset Flex Code
13675 status collapsed
13676
13677 \begin_layout Plain Layout
13678 ParSep
13679 \end_layout
13680
13681 \end_inset
13682
13683 .
13684  But the whole items of the environment are additionally separated with
13685  this 
13686 \begin_inset Flex Code
13687 status collapsed
13688
13689 \begin_layout Plain Layout
13690 ItemSep
13691 \end_layout
13692
13693 \end_inset
13694
13695 .
13696  Note that this is a
13697 \emph on
13698  multiplier.
13699 \end_layout
13700
13701 \begin_layout Description
13702 \begin_inset Flex Code
13703 status collapsed
13704
13705 \begin_layout Plain Layout
13706 ItemTag
13707 \end_layout
13708
13709 \end_inset
13710
13711  [FIXME] (Used only with XML-type formats.)
13712 \end_layout
13713
13714 \begin_layout Description
13715 \begin_inset Flex Code
13716 status collapsed
13717
13718 \begin_layout Plain Layout
13719 KeepEmpty
13720 \end_layout
13721
13722 \end_inset
13723
13724  [
13725 \begin_inset Flex Code
13726 status collapsed
13727
13728 \begin_layout Plain Layout
13729
13730 \emph on
13731 0
13732 \end_layout
13733
13734 \end_inset
13735
13736 ,
13737 \begin_inset space \thinspace{}
13738 \end_inset
13739
13740
13741 \begin_inset Flex Code
13742 status collapsed
13743
13744 \begin_layout Plain Layout
13745 1
13746 \end_layout
13747
13748 \end_inset
13749
13750 ] Usually \SpecialChar LyX
13751  does not allow you to leave a paragraph empty, since it would
13752  lead to empty \SpecialChar LaTeX
13753  output.
13754  There are some cases where this could be desirable however: in a letter
13755  template, the required fields can be provided as empty fields, so that
13756  people do not forget them; in some special classes, a style can be used
13757  as some kind of break, which does not contain actual text.
13758 \end_layout
13759
13760 \begin_layout Description
13761 \begin_inset Flex Code
13762 status collapsed
13763
13764 \begin_layout Plain Layout
13765 LabelBottomsep
13766 \end_layout
13767
13768 \end_inset
13769
13770  [
13771 \begin_inset Flex Code
13772 status collapsed
13773
13774 \begin_layout Plain Layout
13775 float=0
13776 \end_layout
13777
13778 \end_inset
13779
13780 ] The vertical space between the label and the text body.
13781  Only used for labels that are above the text body (
13782 \begin_inset Flex Code
13783 status collapsed
13784
13785 \begin_layout Plain Layout
13786 Top_Environment
13787 \end_layout
13788
13789 \end_inset
13790
13791  and
13792 \begin_inset Newline newline
13793 \end_inset
13794
13795
13796 \begin_inset Flex Code
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 Centered_Top_Environment
13801 \end_layout
13802
13803 \end_inset
13804
13805 ).
13806 \end_layout
13807
13808 \begin_layout Description
13809 \begin_inset Flex Code
13810 status collapsed
13811
13812 \begin_layout Plain Layout
13813 LabelCounter
13814 \end_layout
13815
13816 \end_inset
13817
13818  [
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 string=""
13824 \end_layout
13825
13826 \end_inset
13827
13828 ] The name of the counter for automatic numbering.
13829  In order to have the counter appear with your label, you will need to reference
13830  it in the 
13831 \begin_inset Flex Code
13832 status collapsed
13833
13834 \begin_layout Plain Layout
13835
13836 \family typewriter
13837 LabelString
13838 \end_layout
13839
13840 \end_inset
13841
13842 .
13843  This will work with 
13844 \begin_inset Flex Code
13845 status collapsed
13846
13847 \begin_layout Plain Layout
13848 LabelType
13849 \end_layout
13850
13851 \end_inset
13852
13853 s, 
13854 \begin_inset Flex Code
13855 status collapsed
13856
13857 \begin_layout Plain Layout
13858 Static
13859 \end_layout
13860
13861 \end_inset
13862
13863
13864 \begin_inset Flex Code
13865 status collapsed
13866
13867 \begin_layout Plain Layout
13868 Above
13869 \end_layout
13870
13871 \end_inset
13872
13873  and 
13874 \begin_inset Flex Code
13875 status collapsed
13876
13877 \begin_layout Plain Layout
13878 Centered
13879 \end_layout
13880
13881 \end_inset
13882
13883 , at least.
13884 \begin_inset Newline newline
13885 \end_inset
13886
13887 This 
13888 \emph on
13889 may
13890 \emph default
13891  also be given if 
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 LabelType
13897 \end_layout
13898
13899 \end_inset
13900
13901  is 
13902 \begin_inset Flex Code
13903 status collapsed
13904
13905 \begin_layout Plain Layout
13906 Enumerate
13907 \end_layout
13908
13909 \end_inset
13910
13911 , though this case is a bit complicated.
13912  Suppose you declare 
13913 \begin_inset Quotes eld
13914 \end_inset
13915
13916
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921 LabelCounter myenum
13922 \end_layout
13923
13924 \end_inset
13925
13926
13927 \begin_inset Quotes erd
13928 \end_inset
13929
13930 .
13931  Then the actual counters used are 
13932 \begin_inset Flex Code
13933 status collapsed
13934
13935 \begin_layout Plain Layout
13936 myenumi
13937 \end_layout
13938
13939 \end_inset
13940
13941
13942 \begin_inset Flex Code
13943 status collapsed
13944
13945 \begin_layout Plain Layout
13946 myenumii
13947 \end_layout
13948
13949 \end_inset
13950
13951
13952 \begin_inset Flex Code
13953 status collapsed
13954
13955 \begin_layout Plain Layout
13956 myenumiii
13957 \end_layout
13958
13959 \end_inset
13960
13961  and 
13962 \begin_inset Flex Code
13963 status collapsed
13964
13965 \begin_layout Plain Layout
13966 myenumiv
13967 \end_layout
13968
13969 \end_inset
13970
13971 , much as in \SpecialChar LaTeX
13972 .
13973  These counters must all be declared separately.
13974 \begin_inset Newline newline
13975 \end_inset
13976
13977 See 
13978 \begin_inset CommandInset ref
13979 LatexCommand ref
13980 reference "subsec:Counters"
13981
13982 \end_inset
13983
13984  for details on counters.
13985 \end_layout
13986
13987 \begin_layout Description
13988 \begin_inset Flex Code
13989 status collapsed
13990
13991 \begin_layout Plain Layout
13992 LabelFont
13993 \end_layout
13994
13995 \end_inset
13996
13997  The font used for the label.
13998  See 
13999 \begin_inset CommandInset ref
14000 LatexCommand ref
14001 reference "subsec:Font-description"
14002
14003 \end_inset
14004
14005 .
14006 \end_layout
14007
14008 \begin_layout Description
14009 \begin_inset Flex Code
14010 status collapsed
14011
14012 \begin_layout Plain Layout
14013 LabelIndent
14014 \end_layout
14015
14016 \end_inset
14017
14018  [
14019 \begin_inset Flex Code
14020 status collapsed
14021
14022 \begin_layout Plain Layout
14023 string=""
14024 \end_layout
14025
14026 \end_inset
14027
14028 ] Text that indicates how far a label should be indented.
14029 \end_layout
14030
14031 \begin_layout Description
14032 \begin_inset Flex Code
14033 status collapsed
14034
14035 \begin_layout Plain Layout
14036 LabelSep
14037 \end_layout
14038
14039 \end_inset
14040
14041  [
14042 \begin_inset Flex Code
14043 status collapsed
14044
14045 \begin_layout Plain Layout
14046 string=""
14047 \end_layout
14048
14049 \end_inset
14050
14051 ] Text that indicates the amount of horizontal space between the label and
14052  the text body.
14053  Only used for labels that are not above the text body.
14054 \end_layout
14055
14056 \begin_layout Description
14057 \begin_inset Flex Code
14058 status collapsed
14059
14060 \begin_layout Plain Layout
14061 LabelString
14062 \end_layout
14063
14064 \end_inset
14065
14066  [
14067 \begin_inset Flex Code
14068 status collapsed
14069
14070 \begin_layout Plain Layout
14071 string=""
14072 \end_layout
14073
14074 \end_inset
14075
14076 ] The string used for the label.
14077  When 
14078 \begin_inset Flex Code
14079 status collapsed
14080
14081 \begin_layout Plain Layout
14082 LabelCounter
14083 \end_layout
14084
14085 \end_inset
14086
14087  is set, this string can be contain the special formatting commands described
14088  in 
14089 \begin_inset CommandInset ref
14090 LatexCommand ref
14091 reference "subsec:Counters"
14092
14093 \end_inset
14094
14095 .
14096 \end_layout
14097
14098 \begin_layout Description
14099 \begin_inset Flex Code
14100 status collapsed
14101
14102 \begin_layout Plain Layout
14103 LabelStringAppendix
14104 \end_layout
14105
14106 \end_inset
14107
14108  [
14109 \begin_inset Flex Code
14110 status collapsed
14111
14112 \begin_layout Plain Layout
14113 string=""
14114 \end_layout
14115
14116 \end_inset
14117
14118 ] This is used inside the appendix instead of
14119 \begin_inset Newline newline
14120 \end_inset
14121
14122
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 LabelString
14128 \end_layout
14129
14130 \end_inset
14131
14132 .
14133  Note that every 
14134 \begin_inset Flex Code
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138 LabelString
14139 \end_layout
14140
14141 \end_inset
14142
14143  statement resets
14144 \begin_inset Newline newline
14145 \end_inset
14146
14147
14148 \begin_inset Flex Code
14149 status collapsed
14150
14151 \begin_layout Plain Layout
14152 LabelStringAppendix
14153 \end_layout
14154
14155 \end_inset
14156
14157  too.
14158 \end_layout
14159
14160 \begin_layout Description
14161 \begin_inset Flex Code
14162 status collapsed
14163
14164 \begin_layout Plain Layout
14165 LabelTag
14166 \end_layout
14167
14168 \end_inset
14169
14170  [FIXME] (Used only with XML-type formats.)
14171 \end_layout
14172
14173 \begin_layout Description
14174 \begin_inset Flex Code
14175 status collapsed
14176
14177 \begin_layout Plain Layout
14178 LabelType
14179 \end_layout
14180
14181 \end_inset
14182
14183  [
14184 \begin_inset Flex Code
14185 status collapsed
14186
14187 \begin_layout Plain Layout
14188
14189 \emph on
14190 No_Label
14191 \emph default
14192 , Manual, Static, Above, 
14193 \begin_inset Newline newline
14194 \end_inset
14195
14196 Centered, Sensitive, Enumerate,
14197 \begin_inset Newline newline
14198 \end_inset
14199
14200 Itemize, Bibliography
14201 \end_layout
14202
14203 \end_inset
14204
14205 ]
14206 \end_layout
14207
14208 \begin_deeper
14209 \begin_layout Description
14210 \begin_inset Flex Code
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214 Manual
14215 \end_layout
14216
14217 \end_inset
14218
14219  means the label is the very first word (up to the first real blank).
14220  Use protected spaces if you want more than one word as the label.
14221  
14222 \end_layout
14223
14224 \begin_layout Description
14225 \begin_inset Flex Code
14226 status collapsed
14227
14228 \begin_layout Plain Layout
14229 Static
14230 \end_layout
14231
14232 \end_inset
14233
14234  means the label is simply what is declared as 
14235 \begin_inset Flex Code
14236 status collapsed
14237
14238 \begin_layout Plain Layout
14239 LabelString
14240 \end_layout
14241
14242 \end_inset
14243
14244 .
14245  This will be displayed 
14246 \begin_inset Quotes eld
14247 \end_inset
14248
14249 inline
14250 \begin_inset Quotes erd
14251 \end_inset
14252
14253 , at the beginning of the paragraph.
14254  If the 
14255 \begin_inset Flex Code
14256 status collapsed
14257
14258 \begin_layout Plain Layout
14259 LatexType
14260 \end_layout
14261
14262 \end_inset
14263
14264  is 
14265 \begin_inset Flex Code
14266 status collapsed
14267
14268 \begin_layout Plain Layout
14269 Environment
14270 \end_layout
14271
14272 \end_inset
14273
14274 , then it will be displayed only in the first paragraph of any sequence
14275  of paragraphs with the same 
14276 \begin_inset Flex Code
14277 status collapsed
14278
14279 \begin_layout Plain Layout
14280 Style
14281 \end_layout
14282
14283 \end_inset
14284
14285 .
14286 \end_layout
14287
14288 \begin_layout Description
14289 \begin_inset Flex Code
14290 status collapsed
14291
14292 \begin_layout Plain Layout
14293 Above
14294 \end_layout
14295
14296 \end_inset
14297
14298
14299 \begin_inset space ~
14300 \end_inset
14301
14302 and
14303 \begin_inset space ~
14304 \end_inset
14305
14306
14307 \begin_inset Flex Code
14308 status collapsed
14309
14310 \begin_layout Plain Layout
14311 Centered
14312 \end_layout
14313
14314 \end_inset
14315
14316  are special cases of 
14317 \begin_inset Flex Code
14318 status collapsed
14319
14320 \begin_layout Plain Layout
14321 Static
14322 \end_layout
14323
14324 \end_inset
14325
14326 .
14327  The label will be printed above the paragraph either at the beginning of
14328  the line or centered.
14329 \end_layout
14330
14331 \begin_layout Description
14332 \begin_inset Flex Code
14333 status collapsed
14334
14335 \begin_layout Plain Layout
14336 Sensitive
14337 \end_layout
14338
14339 \end_inset
14340
14341  is a special case for the caption-labels 
14342 \begin_inset Quotes eld
14343 \end_inset
14344
14345 Figure
14346 \begin_inset Quotes erd
14347 \end_inset
14348
14349  and 
14350 \begin_inset Quotes eld
14351 \end_inset
14352
14353 Table
14354 \begin_inset Quotes erd
14355 \end_inset
14356
14357 .
14358 \begin_inset Newline newline
14359 \end_inset
14360
14361
14362 \begin_inset Flex Code
14363 status collapsed
14364
14365 \begin_layout Plain Layout
14366 Sensitive
14367 \end_layout
14368
14369 \end_inset
14370
14371  means the (hardcoded) label string depends on the kind of float: It is
14372  hardcoded to be `FloatType N', where N is the value of the counter associated
14373  with the float.
14374  For the case that a caption is inserted outside of a float the 
14375 \begin_inset Flex Code
14376 status collapsed
14377
14378 \begin_layout Plain Layout
14379 LabelString
14380 \end_layout
14381
14382 \end_inset
14383
14384  will appear as 
14385 \begin_inset Quotes eld
14386 \end_inset
14387
14388 Senseless!
14389 \begin_inset Quotes erd
14390 \end_inset
14391
14392 .
14393 \end_layout
14394
14395 \begin_layout Description
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 Enumerate
14401 \end_layout
14402
14403 \end_inset
14404
14405  produces the usual sort of enumeration labels.
14406  The number type needs to be set in the 
14407 \family sans
14408 Counter
14409 \family default
14410 , see 
14411 \begin_inset CommandInset ref
14412 LatexCommand ref
14413 reference "subsec:Counters"
14414
14415 \end_inset
14416
14417 .
14418 \end_layout
14419
14420 \begin_layout Description
14421 \begin_inset Flex Code
14422 status collapsed
14423
14424 \begin_layout Plain Layout
14425 Itemize
14426 \end_layout
14427
14428 \end_inset
14429
14430  produces various bullets at the different levels.
14431  The bullet types displayed can be set via 
14432 \begin_inset Flex Noun
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436 Document\SpecialChar menuseparator
14437 Settings\SpecialChar menuseparator
14438 Bullets
14439 \end_layout
14440
14441 \end_inset
14442
14443 .
14444 \end_layout
14445
14446 \begin_layout Description
14447 \begin_inset Flex Code
14448 status collapsed
14449
14450 \begin_layout Plain Layout
14451 Bibliography
14452 \end_layout
14453
14454 \end_inset
14455
14456  should be used only with 
14457 \begin_inset Flex Code
14458 status collapsed
14459
14460 \begin_layout Plain Layout
14461 LatexType BibEnvironment
14462 \end_layout
14463
14464 \end_inset
14465
14466 .
14467 \end_layout
14468
14469 \end_deeper
14470 \begin_layout Description
14471 \begin_inset Flex Code
14472 status collapsed
14473
14474 \begin_layout Plain Layout
14475 LangPreamble
14476 \end_layout
14477
14478 \end_inset
14479
14480  Note that this will completely override any prior 
14481 \begin_inset Flex Code
14482 status collapsed
14483
14484 \begin_layout Plain Layout
14485 LangPreamble
14486 \end_layout
14487
14488 \end_inset
14489
14490  declaration for this style.
14491  Must end with 
14492 \begin_inset Quotes eld
14493 \end_inset
14494
14495
14496 \begin_inset Flex Code
14497 status collapsed
14498
14499 \begin_layout Plain Layout
14500 EndLangPreamble
14501 \end_layout
14502
14503 \end_inset
14504
14505
14506 \begin_inset Quotes erd
14507 \end_inset
14508
14509 .
14510  See 
14511 \begin_inset CommandInset ref
14512 LatexCommand ref
14513 reference "subsec:I18n"
14514
14515 \end_inset
14516
14517  for details on its use.
14518 \end_layout
14519
14520 \begin_layout Description
14521 \begin_inset Flex Code
14522 status collapsed
14523
14524 \begin_layout Plain Layout
14525 LatexName
14526 \end_layout
14527
14528 \end_inset
14529
14530  [
14531 \begin_inset Flex Code
14532 status collapsed
14533
14534 \begin_layout Plain Layout
14535 <name>
14536 \end_layout
14537
14538 \end_inset
14539
14540 ] The name of the corresponding \SpecialChar LaTeX
14541  stuff.
14542  Either the environment or command name.
14543 \end_layout
14544
14545 \begin_layout Description
14546 \begin_inset Flex Code
14547 status collapsed
14548
14549 \begin_layout Plain Layout
14550 LatexParam
14551 \end_layout
14552
14553 \end_inset
14554
14555  [
14556 \begin_inset Flex Code
14557 status collapsed
14558
14559 \begin_layout Plain Layout
14560 <parameter>
14561 \end_layout
14562
14563 \end_inset
14564
14565 ] An optional parameter for the corresponding 
14566 \begin_inset Flex Code
14567 status collapsed
14568
14569 \begin_layout Plain Layout
14570 LatexName
14571 \end_layout
14572
14573 \end_inset
14574
14575  stuff.
14576  This parameter cannot be changed from within \SpecialChar LyX
14577  (use 
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 Argument
14583 \end_layout
14584
14585 \end_inset
14586
14587  for customizable parameters).
14588  This will be output as is after all \SpecialChar LaTeX
14589  
14590 \begin_inset Flex Code
14591 status collapsed
14592
14593 \begin_layout Plain Layout
14594 Argument
14595 \end_layout
14596
14597 \end_inset
14598
14599 s.
14600 \end_layout
14601
14602 \begin_layout Description
14603 \begin_inset Flex Code
14604 status collapsed
14605
14606 \begin_layout Plain Layout
14607 LatexType
14608 \end_layout
14609
14610 \end_inset
14611
14612  [
14613 \begin_inset Flex Code
14614 status collapsed
14615
14616 \begin_layout Plain Layout
14617
14618 \emph on
14619 Paragraph
14620 \emph default
14621 , Command, Environment, Item_Environment,
14622 \begin_inset Newline newline
14623 \end_inset
14624
14625 List_Environment, Bib_Environment
14626 \end_layout
14627
14628 \end_inset
14629
14630 ] How the style should be translated into \SpecialChar LaTeX
14631 .
14632 \begin_inset Foot
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636 \begin_inset Flex Code
14637 status collapsed
14638
14639 \begin_layout Plain Layout
14640 LatexType
14641 \end_layout
14642
14643 \end_inset
14644
14645  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14646  Visit the SGML class files for specific examples.
14647 \end_layout
14648
14649 \end_inset
14650
14651
14652 \end_layout
14653
14654 \begin_deeper
14655 \begin_layout Description
14656 \begin_inset Flex Code
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660 Paragraph
14661 \end_layout
14662
14663 \end_inset
14664
14665  means nothing special.
14666 \end_layout
14667
14668 \begin_layout Description
14669 \begin_inset Flex Code
14670 status collapsed
14671
14672 \begin_layout Plain Layout
14673 Command
14674 \end_layout
14675
14676 \end_inset
14677
14678  means 
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683
14684 \backslash
14685
14686 \emph on
14687 LatexName
14688 \emph default
14689 {\SpecialChar ldots
14690 }
14691 \end_layout
14692
14693 \end_inset
14694
14695 .
14696 \end_layout
14697
14698 \begin_layout Description
14699 \begin_inset Flex Code
14700 status collapsed
14701
14702 \begin_layout Plain Layout
14703 Environment
14704 \end_layout
14705
14706 \end_inset
14707
14708  means 
14709 \begin_inset Flex Code
14710 status collapsed
14711
14712 \begin_layout Plain Layout
14713
14714 \backslash
14715 begin{
14716 \emph on
14717 LatexName
14718 \emph default
14719 }\SpecialChar ldots
14720
14721 \backslash
14722 end{
14723 \emph on
14724 LatexName
14725 \emph default
14726 }
14727 \end_layout
14728
14729 \end_inset
14730
14731 .
14732  
14733 \end_layout
14734
14735 \begin_layout Description
14736 \begin_inset Flex Code
14737 status collapsed
14738
14739 \begin_layout Plain Layout
14740 Item_Environment
14741 \end_layout
14742
14743 \end_inset
14744
14745  is the same as 
14746 \begin_inset Flex Code
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 Environment
14751 \end_layout
14752
14753 \end_inset
14754
14755 , except that an 
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760
14761 \backslash
14762 item
14763 \end_layout
14764
14765 \end_inset
14766
14767  is generated for each paragraph of this environment.
14768  
14769 \end_layout
14770
14771 \begin_layout Description
14772 \begin_inset Flex Code
14773 status collapsed
14774
14775 \begin_layout Plain Layout
14776 List_Environment
14777 \end_layout
14778
14779 \end_inset
14780
14781  is the same as 
14782 \begin_inset Flex Code
14783 status collapsed
14784
14785 \begin_layout Plain Layout
14786 Item_Environment
14787 \end_layout
14788
14789 \end_inset
14790
14791 , except that
14792 \begin_inset Newline newline
14793 \end_inset
14794
14795
14796 \begin_inset Flex Code
14797 status collapsed
14798
14799 \begin_layout Plain Layout
14800 LabelWidthString
14801 \end_layout
14802
14803 \end_inset
14804
14805  is passed as an argument to the environment.
14806 \begin_inset Newline newline
14807 \end_inset
14808
14809
14810 \begin_inset Flex Code
14811 status collapsed
14812
14813 \begin_layout Plain Layout
14814 LabelWidthString
14815 \end_layout
14816
14817 \end_inset
14818
14819  can be defined in the 
14820 \begin_inset Flex Noun
14821 status collapsed
14822
14823 \begin_layout Plain Layout
14824 Edit\SpecialChar menuseparator
14825 Paragraph
14826 \begin_inset space ~
14827 \end_inset
14828
14829 settings
14830 \end_layout
14831
14832 \end_inset
14833
14834  dialog.
14835 \end_layout
14836
14837 \begin_layout Description
14838 \begin_inset Flex Code
14839 status collapsed
14840
14841 \begin_layout Plain Layout
14842 Bib_Environment
14843 \end_layout
14844
14845 \end_inset
14846
14847  is like 
14848 \begin_inset Flex Code
14849 status collapsed
14850
14851 \begin_layout Plain Layout
14852 Environment
14853 \end_layout
14854
14855 \end_inset
14856
14857  but adds the necessary mandatory argument (the longest label) to the begin
14858  statement of the bibliography environment:
14859 \begin_inset Newline newline
14860 \end_inset
14861
14862
14863 \begin_inset Flex Code
14864 status collapsed
14865
14866 \begin_layout Plain Layout
14867
14868 \backslash
14869 begin{thebibliography}{99}
14870 \end_layout
14871
14872 \end_inset
14873
14874 .
14875  It is therefore only useful for bibliography environments.
14876  The default longest label 
14877 \begin_inset Quotes eld
14878 \end_inset
14879
14880 99
14881 \begin_inset Quotes erd
14882 \end_inset
14883
14884  can be changed by the user in the paragraph settings of a bibliography
14885  item.
14886 \end_layout
14887
14888 \begin_layout Standard
14889 Putting the last few things together, the \SpecialChar LaTeX
14890  output will be either: 
14891 \end_layout
14892
14893 \begin_layout LyX-Code
14894
14895 \backslash
14896 LatexName[LatexParam]{\SpecialChar ldots
14897 }
14898 \end_layout
14899
14900 \begin_layout Standard
14901 or: 
14902 \end_layout
14903
14904 \begin_layout LyX-Code
14905
14906 \backslash
14907 begin{LatexName}[LatexParam] \SpecialChar ldots
14908  
14909 \backslash
14910 end{LatexName}.
14911 \end_layout
14912
14913 \begin_layout Standard
14914 depending upon the \SpecialChar LaTeX
14915  type.
14916 \end_layout
14917
14918 \end_deeper
14919 \begin_layout Description
14920 \begin_inset Flex Code
14921 status collapsed
14922
14923 \begin_layout Plain Layout
14924 LeftDelim
14925 \end_layout
14926
14927 \end_inset
14928
14929  [
14930 \begin_inset Flex Code
14931 status collapsed
14932
14933 \begin_layout Plain Layout
14934 string
14935 \end_layout
14936
14937 \end_inset
14938
14939 ] A string that is put at the beginning of the style content.
14940  A line break in the output can be indicated by 
14941 \begin_inset Flex Code
14942 status collapsed
14943
14944 \begin_layout Plain Layout
14945 <br/>
14946 \end_layout
14947
14948 \end_inset
14949
14950 .
14951 \end_layout
14952
14953 \begin_layout Description
14954 \begin_inset Flex Code
14955 status collapsed
14956
14957 \begin_layout Plain Layout
14958 LeftMargin
14959 \end_layout
14960
14961 \end_inset
14962
14963  [
14964 \begin_inset Flex Code
14965 status collapsed
14966
14967 \begin_layout Plain Layout
14968 string=""
14969 \end_layout
14970
14971 \end_inset
14972
14973 ] If you put styles into environments, the different 
14974 \begin_inset Flex Code
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978 LeftMargin
14979 \end_layout
14980
14981 \end_inset
14982
14983  are not simply added, but added with a factor 
14984 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14985 \end_inset
14986
14987 .
14988  Note that this parameter is also used when 
14989 \begin_inset Flex Code
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993 Margin
14994 \end_layout
14995
14996 \end_inset
14997
14998  is defined as 
14999 \begin_inset Flex Code
15000 status collapsed
15001
15002 \begin_layout Plain Layout
15003 Manual
15004 \end_layout
15005
15006 \end_inset
15007
15008  or 
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013 Dynamic
15014 \end_layout
15015
15016 \end_inset
15017
15018 .
15019  Then it is added to the manual or dynamic margin.
15020 \begin_inset Newline newline
15021 \end_inset
15022
15023 For example 
15024 \begin_inset Quotes eld
15025 \end_inset
15026
15027
15028 \begin_inset Flex Code
15029 status collapsed
15030
15031 \begin_layout Plain Layout
15032 MM
15033 \end_layout
15034
15035 \end_inset
15036
15037
15038 \begin_inset Quotes erd
15039 \end_inset
15040
15041  means that the paragraph is indented with the width of 
15042 \begin_inset Quotes eld
15043 \end_inset
15044
15045
15046 \begin_inset Flex Code
15047 status collapsed
15048
15049 \begin_layout Plain Layout
15050 MM
15051 \end_layout
15052
15053 \end_inset
15054
15055
15056 \begin_inset Quotes erd
15057 \end_inset
15058
15059  in the normal font.
15060  You can get a negative width by prefixing the string with 
15061 \begin_inset Quotes eld
15062 \end_inset
15063
15064
15065 \begin_inset Flex Code
15066 status collapsed
15067
15068 \begin_layout Plain Layout
15069 -
15070 \end_layout
15071
15072 \end_inset
15073
15074
15075 \begin_inset Quotes erd
15076 \end_inset
15077
15078 .
15079  This way was chosen so that the look is the same with each used screen
15080  font.
15081 \end_layout
15082
15083 \begin_layout Description
15084 \begin_inset Flex Code
15085 status collapsed
15086
15087 \begin_layout Plain Layout
15088 Margin
15089 \end_layout
15090
15091 \end_inset
15092
15093  [
15094 \begin_inset Flex Code
15095 status collapsed
15096
15097 \begin_layout Plain Layout
15098
15099 \emph on
15100 Static
15101 \emph default
15102 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15103 \end_layout
15104
15105 \end_inset
15106
15107
15108 \begin_inset Newline newline
15109 \end_inset
15110
15111 The kind of margin that the style has on the left side.
15112 \end_layout
15113
15114 \begin_deeper
15115 \begin_layout Description
15116 \begin_inset Flex Code
15117 status collapsed
15118
15119 \begin_layout Plain Layout
15120 Static
15121 \end_layout
15122
15123 \end_inset
15124
15125  just means a fixed margin.
15126 \end_layout
15127
15128 \begin_layout Description
15129 \begin_inset Flex Code
15130 status collapsed
15131
15132 \begin_layout Plain Layout
15133 Manual
15134 \end_layout
15135
15136 \end_inset
15137
15138  means that the left margin depends on the string entered in the 
15139 \begin_inset Flex Noun
15140 status collapsed
15141
15142 \begin_layout Plain Layout
15143 Edit\SpecialChar menuseparator
15144 Paragraph
15145 \begin_inset space ~
15146 \end_inset
15147
15148 Settings
15149 \end_layout
15150
15151 \end_inset
15152
15153  dialog.
15154  This is used to typeset nice lists without tabulators.
15155 \end_layout
15156
15157 \begin_layout Description
15158 \begin_inset Flex Code
15159 status collapsed
15160
15161 \begin_layout Plain Layout
15162 Dynamic
15163 \end_layout
15164
15165 \end_inset
15166
15167  means that the margin depends on the size of the label.
15168  This is used for automatic enumerated headlines.
15169  It is obvious that the headline 
15170 \begin_inset Quotes eld
15171 \end_inset
15172
15173 5.4.3.2.1 Very long headline
15174 \begin_inset Quotes erd
15175 \end_inset
15176
15177  must have a wider left margin (as wide as 
15178 \begin_inset Quotes eld
15179 \end_inset
15180
15181 5.4.3.2.1
15182 \begin_inset Quotes erd
15183 \end_inset
15184
15185  plus the space) than 
15186 \begin_inset Quotes eld
15187 \end_inset
15188
15189 3.2 Very long headline
15190 \begin_inset Quotes erd
15191 \end_inset
15192
15193 , even if standard 
15194 \begin_inset Quotes eld
15195 \end_inset
15196
15197 word processors
15198 \begin_inset Quotes erd
15199 \end_inset
15200
15201  are not able to do this.
15202 \end_layout
15203
15204 \begin_layout Description
15205 \begin_inset Flex Code
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 First_Dynamic
15210 \end_layout
15211
15212 \end_inset
15213
15214  is similar, but only the very first row of the paragraph is dynamic, while
15215  the others are static; this is used, for example, for descriptions.
15216 \end_layout
15217
15218 \begin_layout Description
15219 \begin_inset Flex Code
15220 status collapsed
15221
15222 \begin_layout Plain Layout
15223 Right_Address_Box
15224 \end_layout
15225
15226 \end_inset
15227
15228  means the margin is chosen in a way that the longest row of this paragraph
15229  fits to the right margin.
15230  This is used to typeset an address on the right edge of the page.
15231 \end_layout
15232
15233 \end_deeper
15234 \begin_layout Description
15235 \begin_inset Flex Code
15236 status collapsed
15237
15238 \begin_layout Plain Layout
15239 NeedProtect
15240 \end_layout
15241
15242 \end_inset
15243
15244  [
15245 \begin_inset Flex Code
15246 status collapsed
15247
15248 \begin_layout Plain Layout
15249
15250 \emph on
15251 0
15252 \end_layout
15253
15254 \end_inset
15255
15256 ,
15257 \begin_inset space \thinspace{}
15258 \end_inset
15259
15260
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 1
15266 \end_layout
15267
15268 \end_inset
15269
15270 ] Whether fragile commands in this style should be 
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275
15276 \backslash
15277 protect
15278 \end_layout
15279
15280 \end_inset
15281
15282 'ed.
15283  (Note: This is 
15284 \emph on
15285 not
15286 \emph default
15287  whether this command should itself be protected.)
15288 \change_inserted -712698321 1523696949
15289
15290 \end_layout
15291
15292 \begin_layout Description
15293
15294 \change_inserted -712698321 1552395557
15295 \begin_inset Flex Code
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299
15300 \change_inserted -712698321 1523696950
15301 NeedCProtect
15302 \end_layout
15303
15304 \end_inset
15305
15306  [
15307 \begin_inset Flex Code
15308 status collapsed
15309
15310 \begin_layout Plain Layout
15311
15312 \change_inserted -712698321 1523696950
15313
15314 \emph on
15315 0
15316 \end_layout
15317
15318 \end_inset
15319
15320 ,
15321 \begin_inset space \thinspace{}
15322 \end_inset
15323
15324
15325 \begin_inset Flex Code
15326 status collapsed
15327
15328 \begin_layout Plain Layout
15329
15330 \change_inserted -712698321 1523696950
15331 1
15332 \end_layout
15333
15334 \end_inset
15335
15336 ] This causes macros that contain this layout to be protected with 
15337 \begin_inset Flex Code
15338 status collapsed
15339
15340 \begin_layout Plain Layout
15341
15342 \change_inserted -712698321 1523696950
15343
15344 \backslash
15345 cprotect
15346 \end_layout
15347
15348 \end_inset
15349
15350  (cf.
15351  package 
15352 \family sans
15353 cprotect
15354 \family default
15355 ) if necessary and thus allows (some) verbatim stuff in macros.
15356 \end_layout
15357
15358 \begin_layout Description
15359
15360 \change_inserted -712698321 1552395844
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365
15366 \change_inserted -712698321 1552395561
15367 NeedMBoxProtect
15368 \end_layout
15369
15370 \end_inset
15371
15372  [
15373 \begin_inset Flex Code
15374 status collapsed
15375
15376 \begin_layout Plain Layout
15377
15378 \change_inserted -712698321 1552395557
15379
15380 \emph on
15381 0
15382 \end_layout
15383
15384 \end_inset
15385
15386 ,
15387 \begin_inset space \thinspace{}
15388 \end_inset
15389
15390
15391 \begin_inset Flex Code
15392 status collapsed
15393
15394 \begin_layout Plain Layout
15395
15396 \change_inserted -712698321 1552395557
15397 1
15398 \end_layout
15399
15400 \end_inset
15401
15402 ] Whether specific commands in this style (such as 
15403 \begin_inset Flex Code
15404 status collapsed
15405
15406 \begin_layout Plain Layout
15407
15408 \change_inserted -712698321 1552395655
15409
15410 \backslash
15411 cite
15412 \change_unchanged
15413
15414 \end_layout
15415
15416 \end_inset
15417
15418  and 
15419 \begin_inset Flex Code
15420 status collapsed
15421
15422 \begin_layout Plain Layout
15423
15424 \change_inserted -712698321 1552395661
15425
15426 \backslash
15427 ref
15428 \change_unchanged
15429
15430 \end_layout
15431
15432 \end_inset
15433
15434 ) should be protected in an 
15435 \begin_inset Flex Code
15436 status collapsed
15437
15438 \begin_layout Plain Layout
15439
15440 \change_inserted -712698321 1552395631
15441
15442 \backslash
15443 mbox
15444 \change_unchanged
15445
15446 \end_layout
15447
15448 \end_inset
15449
15450 .
15451  This is particularly needed for styles that draw on 
15452 \family sans
15453 ulem
15454 \family default
15455  or 
15456 \family sans
15457 soul
15458 \family default
15459  commands which parse their content in complex ways.
15460 \change_unchanged
15461
15462 \end_layout
15463
15464 \begin_layout Description
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 Newline
15470 \end_layout
15471
15472 \end_inset
15473
15474  [
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479 0
15480 \end_layout
15481
15482 \end_inset
15483
15484 ,
15485 \begin_inset space \thinspace{}
15486 \end_inset
15487
15488
15489 \begin_inset Flex Code
15490 status collapsed
15491
15492 \begin_layout Plain Layout
15493
15494 \emph on
15495 1
15496 \end_layout
15497
15498 \end_inset
15499
15500 ] Whether newlines are translated into \SpecialChar LaTeX
15501  newlines (
15502 \begin_inset Flex Code
15503 status collapsed
15504
15505 \begin_layout Plain Layout
15506
15507 \backslash
15508
15509 \backslash
15510
15511 \end_layout
15512
15513 \end_inset
15514
15515 ) or not.
15516  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15517  editing
15518  inside \SpecialChar LyX
15519 .
15520 \end_layout
15521
15522 \begin_layout Description
15523 \begin_inset Flex Code
15524 status collapsed
15525
15526 \begin_layout Plain Layout
15527 NextNoIndent
15528 \end_layout
15529
15530 \end_inset
15531
15532  [
15533 \begin_inset Flex Code
15534 status collapsed
15535
15536 \begin_layout Plain Layout
15537
15538 \emph on
15539 0
15540 \end_layout
15541
15542 \end_inset
15543
15544 ,
15545 \begin_inset space \thinspace{}
15546 \end_inset
15547
15548
15549 \begin_inset Flex Code
15550 status collapsed
15551
15552 \begin_layout Plain Layout
15553 1
15554 \end_layout
15555
15556 \end_inset
15557
15558 ] If set to true, and if 
15559 \begin_inset Flex Code
15560 status collapsed
15561
15562 \begin_layout Plain Layout
15563 DefaultStyle
15564 \end_layout
15565
15566 \end_inset
15567
15568  (usually 
15569 \begin_inset Flex Code
15570 status collapsed
15571
15572 \begin_layout Plain Layout
15573 Standard
15574 \end_layout
15575
15576 \end_inset
15577
15578 ) paragraphs are being indented, then the indentation of such a paragraph
15579  following one of this type will be suppressed.
15580  (So this will not affect the display of non-default paragraphs.)
15581 \end_layout
15582
15583 \begin_layout Description
15584 \begin_inset Flex Code
15585 status collapsed
15586
15587 \begin_layout Plain Layout
15588 ObsoletedBy
15589 \end_layout
15590
15591 \end_inset
15592
15593  [
15594 \begin_inset Flex Code
15595 status collapsed
15596
15597 \begin_layout Plain Layout
15598 <name>
15599 \end_layout
15600
15601 \end_inset
15602
15603 ] Name of a style that has replaced this style.
15604  This is used to rename a style, while keeping backward compatibility.
15605 \end_layout
15606
15607 \begin_layout Description
15608 \begin_inset Flex Code
15609 status collapsed
15610
15611 \begin_layout Plain Layout
15612 ParagraphGroup
15613 \end_layout
15614
15615 \end_inset
15616
15617  [
15618 \begin_inset Flex Code
15619 status collapsed
15620
15621 \begin_layout Plain Layout
15622 0
15623 \end_layout
15624
15625 \end_inset
15626
15627 ,
15628 \begin_inset space \thinspace{}
15629 \end_inset
15630
15631
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 1
15637 \end_layout
15638
15639 \end_inset
15640
15641 ] Determines whether consecutive paragraphs of the same type are treated
15642  as belonging together.
15643  This has the effect that the 
15644 \begin_inset Flex Code
15645 status collapsed
15646
15647 \begin_layout Plain Layout
15648 GuiLabel
15649 \end_layout
15650
15651 \end_inset
15652
15653  is only printed once before such a group.
15654  By default, this is true for 
15655 \begin_inset Flex Code
15656 status collapsed
15657
15658 \begin_layout Plain Layout
15659 LaTeXType
15660 \end_layout
15661
15662 \end_inset
15663
15664  
15665 \begin_inset Flex Code
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669 Environment
15670 \end_layout
15671
15672 \end_inset
15673
15674  and 
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679 Bib_Environment
15680 \end_layout
15681
15682 \end_inset
15683
15684  and false for all other types.
15685 \end_layout
15686
15687 \begin_layout Description
15688 \begin_inset Flex Code
15689 status collapsed
15690
15691 \begin_layout Plain Layout
15692 ParbreakIsNewline
15693 \end_layout
15694
15695 \end_inset
15696
15697  [
15698 \begin_inset Flex Code
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702
15703 \emph on
15704 0
15705 \end_layout
15706
15707 \end_inset
15708
15709 ,
15710 \begin_inset space \thinspace{}
15711 \end_inset
15712
15713
15714 \begin_inset Flex Code
15715 status collapsed
15716
15717 \begin_layout Plain Layout
15718 1
15719 \end_layout
15720
15721 \end_inset
15722
15723 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15724  output,
15725  but only by a line break; together with 
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730 PassThru 1
15731 \end_layout
15732
15733 \end_inset
15734
15735 , this allows to emulate a plain text editor (like the ERT inset).
15736 \end_layout
15737
15738 \begin_layout Description
15739 \begin_inset Flex Code
15740 status collapsed
15741
15742 \begin_layout Plain Layout
15743 ParIndent
15744 \end_layout
15745
15746 \end_inset
15747
15748  [
15749 \begin_inset Flex Code
15750 status collapsed
15751
15752 \begin_layout Plain Layout
15753 string=""
15754 \end_layout
15755
15756 \end_inset
15757
15758 ] The indent of the very first line of a paragraph.
15759  The
15760 \begin_inset Newline newline
15761 \end_inset
15762
15763
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 Parindent
15769 \end_layout
15770
15771 \end_inset
15772
15773  will be fixed for a certain style.
15774  The exception is the default style, since the indentation for these paragraphs
15775  can be prohibited with 
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780 NextNoIndent
15781 \end_layout
15782
15783 \end_inset
15784
15785 .
15786  Also, 
15787 \begin_inset Flex Code
15788 status collapsed
15789
15790 \begin_layout Plain Layout
15791 Standard
15792 \end_layout
15793
15794 \end_inset
15795
15796  style paragraphs inside environments use the 
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801 Parindent
15802 \end_layout
15803
15804 \end_inset
15805
15806  of the environment, not their native one.
15807  For example, 
15808 \begin_inset Flex Code
15809 status collapsed
15810
15811 \begin_layout Plain Layout
15812 Standard
15813 \end_layout
15814
15815 \end_inset
15816
15817  paragraphs inside an enumeration are not indented.
15818 \end_layout
15819
15820 \begin_layout Description
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 ParSep
15826 \end_layout
15827
15828 \end_inset
15829
15830  [
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 float=0
15836 \end_layout
15837
15838 \end_inset
15839
15840 ] The vertical space between two paragraphs of this style.
15841 \end_layout
15842
15843 \begin_layout Description
15844 \begin_inset Flex Code
15845 status collapsed
15846
15847 \begin_layout Plain Layout
15848 Parskip
15849 \end_layout
15850
15851 \end_inset
15852
15853  [
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 float=0
15859 \end_layout
15860
15861 \end_inset
15862
15863 ] \SpecialChar LyX
15864  allows the user to choose either 
15865 \begin_inset Quotes eld
15866 \end_inset
15867
15868 indent
15869 \begin_inset Quotes erd
15870 \end_inset
15871
15872  or 
15873 \begin_inset Quotes eld
15874 \end_inset
15875
15876 skip
15877 \begin_inset Quotes erd
15878 \end_inset
15879
15880  to separate paragraphs.
15881  When 
15882 \begin_inset Quotes eld
15883 \end_inset
15884
15885 indent
15886 \begin_inset Quotes erd
15887 \end_inset
15888
15889  is chosen, 
15890 \begin_inset Flex Code
15891 status collapsed
15892
15893 \begin_layout Plain Layout
15894 Parskip
15895 \end_layout
15896
15897 \end_inset
15898
15899  is ignored.
15900  When 
15901 \begin_inset Quotes eld
15902 \end_inset
15903
15904 skip
15905 \begin_inset Quotes erd
15906 \end_inset
15907
15908  is chosen, 
15909 \begin_inset Flex Code
15910 status collapsed
15911
15912 \begin_layout Plain Layout
15913 ParIndent
15914 \end_layout
15915
15916 \end_inset
15917
15918  is ignored and all paragraphs are separated by the 
15919 \begin_inset Flex Code
15920 status collapsed
15921
15922 \begin_layout Plain Layout
15923 Parskip
15924 \end_layout
15925
15926 \end_inset
15927
15928  argument.
15929  The vertical space is calculated with 
15930 \begin_inset Flex Code
15931 status collapsed
15932
15933 \begin_layout Plain Layout
15934 Parskip
15935 \begin_inset space ~
15936 \end_inset
15937
15938 * DefaultHeight
15939 \end_layout
15940
15941 \end_inset
15942
15943  where 
15944 \begin_inset Flex Code
15945 status collapsed
15946
15947 \begin_layout Plain Layout
15948 DefaultHeight
15949 \end_layout
15950
15951 \end_inset
15952
15953  is the height of a row with the normal font.
15954  This way, the look stays the same with different screen fonts.
15955 \end_layout
15956
15957 \begin_layout Description
15958 \begin_inset Flex Code
15959 status collapsed
15960
15961 \begin_layout Plain Layout
15962 PassThru
15963 \end_layout
15964
15965 \end_inset
15966
15967  [
15968 \begin_inset Flex Code
15969 status collapsed
15970
15971 \begin_layout Plain Layout
15972
15973 \emph on
15974 0
15975 \end_layout
15976
15977 \end_inset
15978
15979 ,
15980 \begin_inset space \thinspace{}
15981 \end_inset
15982
15983
15984 \begin_inset Flex Code
15985 status collapsed
15986
15987 \begin_layout Plain Layout
15988 1
15989 \end_layout
15990
15991 \end_inset
15992
15993 ] Whether the contents of this paragraph should be output in raw form, meaning
15994  without special translations that \SpecialChar LaTeX
15995  would require.
15996 \end_layout
15997
15998 \begin_layout Description
15999 \begin_inset Flex Code
16000 status collapsed
16001
16002 \begin_layout Plain Layout
16003 PassThruChars
16004 \end_layout
16005
16006 \end_inset
16007
16008  [
16009 \begin_inset Flex Code
16010 status collapsed
16011
16012 \begin_layout Plain Layout
16013 string
16014 \end_layout
16015
16016 \end_inset
16017
16018 ]
16019 \family typewriter
16020  
16021 \family default
16022 Defines individual characters that should be output in raw form, meaning
16023  without special translations that \SpecialChar LaTeX
16024  would require.
16025 \end_layout
16026
16027 \begin_layout Description
16028 \begin_inset Flex Code
16029 status collapsed
16030
16031 \begin_layout Plain Layout
16032 Preamble
16033 \end_layout
16034
16035 \end_inset
16036
16037  Information to be included in the \SpecialChar LaTeX
16038  preamble when this style is used.
16039  Used to define macros, load packages, etc., required by this particular
16040  style.
16041  Must end with 
16042 \begin_inset Quotes eld
16043 \end_inset
16044
16045
16046 \begin_inset Flex Code
16047 status collapsed
16048
16049 \begin_layout Plain Layout
16050 EndPreamble
16051 \end_layout
16052
16053 \end_inset
16054
16055
16056 \begin_inset Quotes erd
16057 \end_inset
16058
16059 .
16060 \end_layout
16061
16062 \begin_layout Description
16063 \begin_inset Flex Code
16064 status collapsed
16065
16066 \begin_layout Plain Layout
16067 RefPrefix
16068 \end_layout
16069
16070 \end_inset
16071
16072  [
16073 \begin_inset Flex Code
16074 status collapsed
16075
16076 \begin_layout Plain Layout
16077 string
16078 \end_layout
16079
16080 \end_inset
16081
16082 ] The prefix to use when creating labels referring to paragraphs of this
16083  type.
16084  This allows the use of formatted references.
16085 \end_layout
16086
16087 \begin_layout Description
16088 \begin_inset Flex Code
16089 status collapsed
16090
16091 \begin_layout Plain Layout
16092 Requires 
16093 \end_layout
16094
16095 \end_inset
16096
16097  [
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 string
16103 \end_layout
16104
16105 \end_inset
16106
16107 ] Whether the style requires the feature 
16108 \begin_inset Flex Code
16109 status collapsed
16110
16111 \begin_layout Plain Layout
16112 string
16113 \end_layout
16114
16115 \end_inset
16116
16117  (see 
16118 \begin_inset CommandInset ref
16119 LatexCommand ref
16120 reference "chap:List-of-functions"
16121
16122 \end_inset
16123
16124  for the list of features).
16125  If you require a package with specific options, you can additionally use
16126  
16127 \begin_inset Flex Code
16128 status collapsed
16129
16130 \begin_layout Plain Layout
16131 PackageOptions
16132 \end_layout
16133
16134 \end_inset
16135
16136  as a general text class parameter (see 
16137 \begin_inset CommandInset ref
16138 LatexCommand ref
16139 reference "subsec:General-text-class"
16140
16141 \end_inset
16142
16143 ).
16144 \end_layout
16145
16146 \begin_layout Description
16147 \begin_inset Flex Code
16148 status collapsed
16149
16150 \begin_layout Plain Layout
16151 ResetArgs
16152 \end_layout
16153
16154 \end_inset
16155
16156  [
16157 \begin_inset Flex Code
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161
16162 \emph on
16163 0
16164 \end_layout
16165
16166 \end_inset
16167
16168 ,
16169 \begin_inset Flex Code
16170 status collapsed
16171
16172 \begin_layout Plain Layout
16173 1
16174 \end_layout
16175
16176 \end_inset
16177
16178 ] Resets the \SpecialChar LaTeX
16179  arguments of this style (as defined via the 
16180 \begin_inset Flex Code
16181 status collapsed
16182
16183 \begin_layout Plain Layout
16184 Argument
16185 \end_layout
16186
16187 \end_inset
16188
16189  tag).
16190  This is useful if you have copied a style via 
16191 \begin_inset Flex Code
16192 status collapsed
16193
16194 \begin_layout Plain Layout
16195 CopyStyle
16196 \end_layout
16197
16198 \end_inset
16199
16200 , but you do not want to inherit its (required and optional) arguments.
16201 \end_layout
16202
16203 \begin_layout Description
16204 \begin_inset Flex Code
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 ResumeCounter
16209 \end_layout
16210
16211 \end_inset
16212
16213  [
16214 \begin_inset Flex Code
16215 status collapsed
16216
16217 \begin_layout Plain Layout
16218
16219 \emph on
16220 0
16221 \end_layout
16222
16223 \end_inset
16224
16225 ,
16226 \begin_inset Flex Code
16227 status collapsed
16228
16229 \begin_layout Plain Layout
16230 1
16231 \end_layout
16232
16233 \end_inset
16234
16235 ] Resumes a counter that is usually reset at each new sequence of layouts.
16236  This is currently only useful when 
16237 \begin_inset Flex Code
16238 status collapsed
16239
16240 \begin_layout Plain Layout
16241 LabelType
16242 \end_layout
16243
16244 \end_inset
16245
16246  is 
16247 \begin_inset Flex Code
16248 status collapsed
16249
16250 \begin_layout Plain Layout
16251 Enumerate
16252 \end_layout
16253
16254 \end_inset
16255
16256 .
16257 \end_layout
16258
16259 \begin_layout Description
16260 \begin_inset Flex Code
16261 status collapsed
16262
16263 \begin_layout Plain Layout
16264 RightDelim
16265 \end_layout
16266
16267 \end_inset
16268
16269  [
16270 \begin_inset Flex Code
16271 status collapsed
16272
16273 \begin_layout Plain Layout
16274 string
16275 \end_layout
16276
16277 \end_inset
16278
16279 ] A string that is put at the end of the layout content.
16280  A line break in the output can be indicated by 
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 <br/>
16286 \end_layout
16287
16288 \end_inset
16289
16290 .
16291 \end_layout
16292
16293 \begin_layout Description
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 RightMargin
16299 \end_layout
16300
16301 \end_inset
16302
16303  [
16304 \begin_inset Flex Code
16305 status collapsed
16306
16307 \begin_layout Plain Layout
16308 string=""
16309 \end_layout
16310
16311 \end_inset
16312
16313 ] Similar to 
16314 \begin_inset Flex Code
16315 status collapsed
16316
16317 \begin_layout Plain Layout
16318 LeftMargin
16319 \end_layout
16320
16321 \end_inset
16322
16323 .
16324 \end_layout
16325
16326 \begin_layout Description
16327 \begin_inset Flex Code
16328 status collapsed
16329
16330 \begin_layout Plain Layout
16331 Spacing
16332 \end_layout
16333
16334 \end_inset
16335
16336  [
16337 \begin_inset Flex Code
16338 status collapsed
16339
16340 \begin_layout Plain Layout
16341
16342 \emph on
16343 single
16344 \end_layout
16345
16346 \end_inset
16347
16348
16349 \begin_inset Flex Code
16350 status collapsed
16351
16352 \begin_layout Plain Layout
16353 onehalf
16354 \end_layout
16355
16356 \end_inset
16357
16358
16359 \begin_inset Flex Code
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 double
16364 \end_layout
16365
16366 \end_inset
16367
16368
16369 \begin_inset Flex Code
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373 other
16374 \begin_inset space ~
16375 \end_inset
16376
16377 <value>
16378 \end_layout
16379
16380 \end_inset
16381
16382 ] This defines what the default spacing should be in the style.
16383  The arguments 
16384 \begin_inset Flex Code
16385 status collapsed
16386
16387 \begin_layout Plain Layout
16388 single
16389 \end_layout
16390
16391 \end_inset
16392
16393
16394 \begin_inset Flex Code
16395 status collapsed
16396
16397 \begin_layout Plain Layout
16398 onehalf
16399 \end_layout
16400
16401 \end_inset
16402
16403  and 
16404 \begin_inset Flex Code
16405 status collapsed
16406
16407 \begin_layout Plain Layout
16408 double
16409 \end_layout
16410
16411 \end_inset
16412
16413  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16414  If you specify the argument 
16415 \begin_inset Flex Code
16416 status collapsed
16417
16418 \begin_layout Plain Layout
16419 other
16420 \end_layout
16421
16422 \end_inset
16423
16424 , then you must also provide a value argument which will be the actual multiplie
16425 r value.
16426  Note that, contrary to other parameters, 
16427 \begin_inset Flex Code
16428 status collapsed
16429
16430 \begin_layout Plain Layout
16431 Spacing
16432 \end_layout
16433
16434 \end_inset
16435
16436  implies the generation of specific \SpecialChar LaTeX
16437  code, using the \SpecialChar LaTeX
16438  package 
16439 \family roman
16440
16441 \begin_inset Flex Code
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445 setspace
16446 \end_layout
16447
16448 \end_inset
16449
16450 .
16451 \end_layout
16452
16453 \begin_layout Description
16454 \begin_inset Flex Code
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458 Spellcheck
16459 \end_layout
16460
16461 \end_inset
16462
16463  [
16464 \begin_inset Flex Code
16465 status collapsed
16466
16467 \begin_layout Plain Layout
16468 0
16469 \end_layout
16470
16471 \end_inset
16472
16473 ,
16474 \begin_inset space \thinspace{}
16475 \end_inset
16476
16477
16478 \begin_inset Flex Code
16479 status collapsed
16480
16481 \begin_layout Plain Layout
16482
16483 \emph on
16484 1
16485 \end_layout
16486
16487 \end_inset
16488
16489 ] Allow spell-checking paragraphs of this style.
16490  Default is true.
16491 \end_layout
16492
16493 \begin_layout Description
16494 \begin_inset Flex Code
16495 status collapsed
16496
16497 \begin_layout Plain Layout
16498 StepMasterCounter
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 0
16511 \end_layout
16512
16513 \end_inset
16514
16515 ,
16516 \begin_inset Flex Code
16517 status collapsed
16518
16519 \begin_layout Plain Layout
16520 1
16521 \end_layout
16522
16523 \end_inset
16524
16525 ] Steps the master counter of a given counter at the beginning of a new
16526  sequence of layouts.
16527  This is currently only useful when 
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 LabelType
16533 \end_layout
16534
16535 \end_inset
16536
16537  is 
16538 \begin_inset Flex Code
16539 status collapsed
16540
16541 \begin_layout Plain Layout
16542 Enumerate
16543 \end_layout
16544
16545 \end_inset
16546
16547 .
16548 \end_layout
16549
16550 \begin_layout Description
16551 \begin_inset Flex Code
16552 status collapsed
16553
16554 \begin_layout Plain Layout
16555 TextFont
16556 \end_layout
16557
16558 \end_inset
16559
16560  The font used for the text body .
16561  See 
16562 \begin_inset CommandInset ref
16563 LatexCommand ref
16564 reference "subsec:Font-description"
16565
16566 \end_inset
16567
16568 .
16569 \end_layout
16570
16571 \begin_layout Description
16572 \begin_inset Flex Code
16573 status collapsed
16574
16575 \begin_layout Plain Layout
16576 TocLevel
16577 \end_layout
16578
16579 \end_inset
16580
16581
16582 \series medium
16583  [
16584 \begin_inset Flex Code
16585 status collapsed
16586
16587 \begin_layout Plain Layout
16588
16589 \series medium
16590 int=3
16591 \end_layout
16592
16593 \end_inset
16594
16595 ]
16596 \series default
16597  The level of the style in the table of contents.
16598  This is used for automatic numbering of section headings.
16599 \end_layout
16600
16601 \begin_layout Description
16602 \begin_inset Flex Code
16603 status collapsed
16604
16605 \begin_layout Plain Layout
16606 ToggleIndent
16607 \end_layout
16608
16609 \end_inset
16610
16611  [
16612 \emph on
16613
16614 \begin_inset Flex Code
16615 status collapsed
16616
16617 \begin_layout Plain Layout
16618
16619 \emph on
16620 default
16621 \end_layout
16622
16623 \end_inset
16624
16625
16626 \emph default
16627
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 always
16633 \end_layout
16634
16635 \end_inset
16636
16637
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 never
16643 \end_layout
16644
16645 \end_inset
16646
16647 ] This tag determines whether the first line indentation of this paragraph
16648  can be toggled via the Paragraph settings dialog.
16649  If 
16650 \emph on
16651
16652 \begin_inset Flex Code
16653 status collapsed
16654
16655 \begin_layout Plain Layout
16656
16657 \emph off
16658 default
16659 \end_layout
16660
16661 \end_inset
16662
16663
16664 \emph default
16665  is set, indentation can be toggled if the document settings use 
16666 \begin_inset Quotes eld
16667 \end_inset
16668
16669 indent
16670 \begin_inset Quotes erd
16671 \end_inset
16672
16673  paragraph style, with 
16674 \begin_inset Flex Code
16675 status collapsed
16676
16677 \begin_layout Plain Layout
16678 always
16679 \end_layout
16680
16681 \end_inset
16682
16683 , indentation can always be toggled, notwithstanding the document settings,
16684  with 
16685 \begin_inset Flex Code
16686 status collapsed
16687
16688 \begin_layout Plain Layout
16689 never
16690 \end_layout
16691
16692 \end_inset
16693
16694 , indentation can never be toggled.
16695 \end_layout
16696
16697 \begin_layout Description
16698 \begin_inset Flex Code
16699 status collapsed
16700
16701 \begin_layout Plain Layout
16702 TopSep
16703 \end_layout
16704
16705 \end_inset
16706
16707  [
16708 \begin_inset Flex Code
16709 status collapsed
16710
16711 \begin_layout Plain Layout
16712 float=0
16713 \end_layout
16714
16715 \end_inset
16716
16717 ] The vertical space with which the very first of a chain of paragraphs
16718  with this style is separated from the previous paragraph.
16719  If the previous paragraph has another style, the separations are not simply
16720  added, but the maximum is taken.
16721 \end_layout
16722
16723 \begin_layout Subsection
16724 \begin_inset CommandInset label
16725 LatexCommand label
16726 name "subsec:I18n"
16727
16728 \end_inset
16729
16730 Internationalization of Paragraph Styles
16731 \end_layout
16732
16733 \begin_layout Standard
16734 \SpecialChar LyX
16735  has long supported internationalization of layout information, but, until
16736  version 2.0, this applied only to the user interface and not to, say, PDF
16737  output.
16738  Thus, French authors were forced to resort to ugly hacks if they wanted
16739  `
16740 \lang french
16741 Théorème
16742 \lang english
16743  1' instead of `Theorem 1'.
16744  Thanks to Georg Baum, that is no longer the case.
16745 \end_layout
16746
16747 \begin_layout Standard
16748 If a 
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753 Style
16754 \end_layout
16755
16756 \end_inset
16757
16758  defines text that is to appear in the typeset document, it may use 
16759 \begin_inset Flex Code
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 LangPreamble
16764 \end_layout
16765
16766 \end_inset
16767
16768  and 
16769 \begin_inset Flex Code
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 BabelPreamble
16774 \end_layout
16775
16776 \end_inset
16777
16778  to support non-English and even multi-language documents correctly.
16779  The following excerpt (from the 
16780 \begin_inset Flex Code
16781 status collapsed
16782
16783 \begin_layout Plain Layout
16784 theorems-ams.inc
16785 \end_layout
16786
16787 \end_inset
16788
16789  file) shows how this works:
16790 \end_layout
16791
16792 \begin_layout LyX-Code
16793 Preamble
16794 \end_layout
16795
16796 \begin_deeper
16797 \begin_layout LyX-Code
16798   
16799 \backslash
16800 theoremstyle{remark}
16801 \end_layout
16802
16803 \begin_layout LyX-Code
16804   
16805 \backslash
16806 newtheorem{claim}[thm]{
16807 \backslash
16808 protect
16809 \backslash
16810 claimname}
16811 \end_layout
16812
16813 \begin_layout LyX-Code
16814 EndPreamble
16815 \end_layout
16816
16817 \begin_layout LyX-Code
16818 LangPreamble
16819 \end_layout
16820
16821 \begin_layout LyX-Code
16822   
16823 \backslash
16824 providecommand{
16825 \backslash
16826 claimname}{_(Claim)}
16827 \end_layout
16828
16829 \begin_layout LyX-Code
16830 EndLangPreamble
16831 \end_layout
16832
16833 \begin_layout LyX-Code
16834 BabelPreamble
16835 \end_layout
16836
16837 \begin_layout LyX-Code
16838     
16839 \backslash
16840 addto
16841 \backslash
16842 captions$$lang{
16843 \backslash
16844 renewcommand{
16845 \backslash
16846 claimname}{_(Claim)}}
16847 \end_layout
16848
16849 \begin_layout LyX-Code
16850 EndBabelPreamble
16851 \end_layout
16852
16853 \end_deeper
16854 \begin_layout Standard
16855 In principle, any legal \SpecialChar LaTeX
16856  may appear in the 
16857 \begin_inset Flex Code
16858 status collapsed
16859
16860 \begin_layout Plain Layout
16861 LangPreamble
16862 \end_layout
16863
16864 \end_inset
16865
16866  and 
16867 \begin_inset Flex Code
16868 status collapsed
16869
16870 \begin_layout Plain Layout
16871 BabelPreamble
16872 \end_layout
16873
16874 \end_inset
16875
16876  tags, but in practice they will typically look as they do here.
16877  The key to correct translation of the typeset text is the definition of
16878  the \SpecialChar LaTeX
16879  command 
16880 \begin_inset Flex Code
16881 status collapsed
16882
16883 \begin_layout Plain Layout
16884
16885 \backslash
16886 claimname
16887 \end_layout
16888
16889 \end_inset
16890
16891  and its use in 
16892 \begin_inset Flex Code
16893 status collapsed
16894
16895 \begin_layout Plain Layout
16896
16897 \backslash
16898 newtheorem
16899 \end_layout
16900
16901 \end_inset
16902
16903 .
16904  
16905 \end_layout
16906
16907 \begin_layout Standard
16908 The 
16909 \begin_inset Flex Code
16910 status collapsed
16911
16912 \begin_layout Plain Layout
16913 LangPreamble
16914 \end_layout
16915
16916 \end_inset
16917
16918  tag provides for internationalization based upon the overall language of
16919  the document.
16920  The contents of the tag will be included in the preamble, just as with
16921  the 
16922 \begin_inset Flex Code
16923 status collapsed
16924
16925 \begin_layout Plain Layout
16926 Preamble
16927 \end_layout
16928
16929 \end_inset
16930
16931  tag.
16932  What makes it special is the use of the 
16933 \begin_inset Quotes eld
16934 \end_inset
16935
16936 function
16937 \begin_inset Quotes erd
16938 \end_inset
16939
16940  
16941 \begin_inset Flex Code
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 _()
16946 \end_layout
16947
16948 \end_inset
16949
16950 , which will be replaced, when \SpecialChar LyX
16951  produces \SpecialChar LaTeX
16952  output, with the translation of
16953  its argument into the document language.
16954 \end_layout
16955
16956 \begin_layout Standard
16957 The 
16958 \begin_inset Flex Code
16959 status collapsed
16960
16961 \begin_layout Plain Layout
16962 BabelPreamble
16963 \end_layout
16964
16965 \end_inset
16966
16967  tag is more complex, since it is meant to provide support for multi-language
16968  documents and so offers an interface to the 
16969 \begin_inset Flex Code
16970 status collapsed
16971
16972 \begin_layout Plain Layout
16973 babel
16974 \end_layout
16975
16976 \end_inset
16977
16978  package.
16979  Its contents will be added to the preamble once for each language that
16980  appears in the document.
16981  In this case, the argument to 
16982 \begin_inset Flex Code
16983 status collapsed
16984
16985 \begin_layout Plain Layout
16986 _()
16987 \end_layout
16988
16989 \end_inset
16990
16991  will be replaced with its translation into the language in question; the
16992  expression 
16993 \begin_inset Flex Code
16994 status collapsed
16995
16996 \begin_layout Plain Layout
16997 $$lang
16998 \end_layout
16999
17000 \end_inset
17001
17002  is replaced by the language name (as used by the babel package).
17003 \end_layout
17004
17005 \begin_layout Standard
17006 A German document that also included a French section would thus have the
17007  following in the preamble:
17008 \end_layout
17009
17010 \begin_layout LyX-Code
17011
17012 \backslash
17013 addto
17014 \backslash
17015 captionsfrench{
17016 \backslash
17017 renewcommand{
17018 \backslash
17019 claimname}{Affirmation}}
17020 \begin_inset Newline newline
17021 \end_inset
17022
17023
17024 \backslash
17025 addto
17026 \backslash
17027 captionsngerman{
17028 \backslash
17029 renewcommand{
17030 \backslash
17031 claimname}{Behauptung}}
17032 \begin_inset Newline newline
17033 \end_inset
17034
17035
17036 \backslash
17037 providecommand{
17038 \backslash
17039 claimname}{Behauptung}
17040 \end_layout
17041
17042 \begin_layout Standard
17043 \SpecialChar LaTeX
17044  and 
17045 \begin_inset Flex Code
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049 babel
17050 \end_layout
17051
17052 \end_inset
17053
17054  will then conspire to produce the correct text in the output.
17055 \end_layout
17056
17057 \begin_layout Standard
17058 One important point to note here is that the translations are provided by
17059  \SpecialChar LyX
17060  itself, through the file 
17061 \begin_inset Flex Code
17062 status collapsed
17063
17064 \begin_layout Plain Layout
17065 layouttranslations
17066 \end_layout
17067
17068 \end_inset
17069
17070 .
17071  This means, in effect, that 
17072 \begin_inset Flex Code
17073 status collapsed
17074
17075 \begin_layout Plain Layout
17076 LangPreamble
17077 \end_layout
17078
17079 \end_inset
17080
17081  and 
17082 \begin_inset Flex Code
17083 status collapsed
17084
17085 \begin_layout Plain Layout
17086 BabelPreamble
17087 \end_layout
17088
17089 \end_inset
17090
17091  are really only of use in layout files that are provided with \SpecialChar LyX
17092 , since text
17093  entered in user-created layout files will not be seen by \SpecialChar LyX
17094 's internationalizatio
17095 n routines unless the 
17096 \begin_inset Flex Code
17097 status collapsed
17098
17099 \begin_layout Plain Layout
17100 layouttranslations
17101 \end_layout
17102
17103 \end_inset
17104
17105  file is modified accordingly.
17106  That said, however, any layout created with the intention that it will
17107  be included with \SpecialChar LyX
17108  should use these tags where appropriate.
17109  Please note that the paragraph style translations provided by \SpecialChar LyX
17110  will never
17111  change with a minor update (e.
17112 \begin_inset space \thinspace{}
17113 \end_inset
17114
17115 g.
17116 \begin_inset space \space{}
17117 \end_inset
17118
17119 from version 2.1.x to 2.1.y).
17120  It is however quite likely that a major update (e.
17121 \begin_inset space \thinspace{}
17122 \end_inset
17123
17124 g.
17125 \begin_inset space \space{}
17126 \end_inset
17127
17128 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17129 \end_layout
17130
17131 \begin_layout Subsection
17132 Floats
17133 \begin_inset CommandInset label
17134 LatexCommand label
17135 name "subsec:Floats"
17136
17137 \end_inset
17138
17139
17140 \end_layout
17141
17142 \begin_layout Standard
17143 It is necessary to define the floats (
17144 \begin_inset Flex Noun
17145 status collapsed
17146
17147 \begin_layout Plain Layout
17148 figure
17149 \end_layout
17150
17151 \end_inset
17152
17153
17154 \begin_inset Flex Noun
17155 status collapsed
17156
17157 \begin_layout Plain Layout
17158 table
17159 \end_layout
17160
17161 \end_inset
17162
17163 , \SpecialChar ldots
17164 ) in the text class itself.
17165  Standard floats are included in the file 
17166 \begin_inset Flex Code
17167 status collapsed
17168
17169 \begin_layout Plain Layout
17170 stdfloats.inc
17171 \end_layout
17172
17173 \end_inset
17174
17175 , so you may have to do no more than add
17176 \end_layout
17177
17178 \begin_layout LyX-Code
17179 Input stdfloats.inc
17180 \end_layout
17181
17182 \begin_layout Standard
17183 to your layout file.
17184  If you want to implement a text class that proposes some other float types
17185  (like the AGU class bundled with \SpecialChar LyX
17186 ), the information below will hopefully
17187  help you:
17188 \end_layout
17189
17190 \begin_layout Description
17191 \begin_inset Flex Code
17192 status collapsed
17193
17194 \begin_layout Plain Layout
17195 AllowedPlacement
17196 \end_layout
17197
17198 \end_inset
17199
17200  [
17201 \begin_inset Flex Code
17202 status collapsed
17203
17204 \begin_layout Plain Layout
17205 string
17206 \end_layout
17207
17208 \end_inset
17209
17210 =!htbpH] Allowed placement options for this float type.
17211  The value is a string of placement characters.
17212  Possible characters include: 
17213 \emph on
17214 h
17215 \emph default
17216  (
17217 \begin_inset Quotes eld
17218 \end_inset
17219
17220 here if possible
17221 \begin_inset Quotes erd
17222 \end_inset
17223
17224 ), 
17225 \emph on
17226 t
17227 \emph default
17228  (
17229 \begin_inset Quotes eld
17230 \end_inset
17231
17232 top of page
17233 \begin_inset Quotes erd
17234 \end_inset
17235
17236 ), 
17237 \emph on
17238 b
17239 \emph default
17240  (
17241 \begin_inset Quotes eld
17242 \end_inset
17243
17244 bottom of page
17245 \begin_inset Quotes erd
17246 \end_inset
17247
17248 ), 
17249 \emph on
17250 p
17251 \emph default
17252  (
17253 \begin_inset Quotes eld
17254 \end_inset
17255
17256 page of floats
17257 \begin_inset Quotes erd
17258 \end_inset
17259
17260 ), 
17261 \emph on
17262 H
17263 \emph default
17264  (
17265 \begin_inset Quotes eld
17266 \end_inset
17267
17268 here definitely
17269 \begin_inset Quotes erd
17270 \end_inset
17271
17272 ) and 
17273 \emph on
17274 !
17275 \emph default
17276  (
17277 \begin_inset Quotes eld
17278 \end_inset
17279
17280 ignore LaTeX rules
17281 \begin_inset Quotes erd
17282 \end_inset
17283
17284 ).
17285  The order of the characters in the string does not matter.
17286  If no placement options are allowed, use the string 
17287 \emph on
17288 none
17289 \emph default
17290 .
17291 \end_layout
17292
17293 \begin_layout Description
17294 \begin_inset Flex Code
17295 status collapsed
17296
17297 \begin_layout Plain Layout
17298 AllowsSideways
17299 \end_layout
17300
17301 \end_inset
17302
17303  [
17304 \begin_inset Flex Code
17305 status collapsed
17306
17307 \begin_layout Plain Layout
17308
17309 \emph off
17310 0
17311 \end_layout
17312
17313 \end_inset
17314
17315 ,
17316 \begin_inset space \thinspace{}
17317 \end_inset
17318
17319
17320 \emph on
17321
17322 \begin_inset Flex Code
17323 status collapsed
17324
17325 \begin_layout Plain Layout
17326
17327 \emph on
17328 1
17329 \end_layout
17330
17331 \end_inset
17332
17333
17334 \emph default
17335 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17336 -package 
17337 \family typewriter
17338 rotfloat
17339 \family default
17340  (sidewaysfloat).
17341  Set to 
17342 \begin_inset Flex Code
17343 status collapsed
17344
17345 \begin_layout Plain Layout
17346 0
17347 \end_layout
17348
17349 \end_inset
17350
17351  if the float does not support this feature.
17352 \end_layout
17353
17354 \begin_layout Description
17355 \begin_inset Flex Code
17356 status collapsed
17357
17358 \begin_layout Plain Layout
17359 AllowsWide
17360 \end_layout
17361
17362 \end_inset
17363
17364  [
17365 \begin_inset Flex Code
17366 status collapsed
17367
17368 \begin_layout Plain Layout
17369
17370 \emph off
17371 0
17372 \end_layout
17373
17374 \end_inset
17375
17376 ,
17377 \begin_inset space \thinspace{}
17378 \end_inset
17379
17380
17381 \emph on
17382
17383 \begin_inset Flex Code
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387
17388 \emph on
17389 1
17390 \end_layout
17391
17392 \end_inset
17393
17394
17395 \emph default
17396 ] Defines whether the float has a starred variant that spans columns in
17397  a two column paragraph.
17398  Set to 
17399 \begin_inset Flex Code
17400 status collapsed
17401
17402 \begin_layout Plain Layout
17403 0
17404 \end_layout
17405
17406 \end_inset
17407
17408  if the float does not support this feature.
17409 \end_layout
17410
17411 \begin_layout Description
17412 \begin_inset Flex Code
17413 status collapsed
17414
17415 \begin_layout Plain Layout
17416 Extension
17417 \end_layout
17418
17419 \end_inset
17420
17421  [
17422 \begin_inset Flex Code
17423 status collapsed
17424
17425 \begin_layout Plain Layout
17426 string
17427 \end_layout
17428
17429 \end_inset
17430
17431 =
17432 \begin_inset Quotes erd
17433 \end_inset
17434
17435
17436 \begin_inset Quotes erd
17437 \end_inset
17438
17439 ] The file name extension of an auxiliary file for the list of figures (or
17440  whatever).
17441  \SpecialChar LaTeX
17442  writes the captions to this file.
17443 \end_layout
17444
17445 \begin_layout Description
17446 \begin_inset Flex Code
17447 status collapsed
17448
17449 \begin_layout Plain Layout
17450 GuiName
17451 \end_layout
17452
17453 \end_inset
17454
17455  [
17456 \begin_inset Flex Code
17457 status collapsed
17458
17459 \begin_layout Plain Layout
17460 string
17461 \end_layout
17462
17463 \end_inset
17464
17465 =
17466 \begin_inset Quotes erd
17467 \end_inset
17468
17469
17470 \begin_inset Quotes erd
17471 \end_inset
17472
17473 ] The string that will be used in the menus and also for the caption.
17474  This is translated to the current language if babel is used.
17475 \end_layout
17476
17477 \begin_layout Description
17478 \begin_inset Flex Code
17479 status collapsed
17480
17481 \begin_layout Plain Layout
17482 HTML*
17483 \end_layout
17484
17485 \end_inset
17486
17487  These tags control the XHTML output.
17488  See 
17489 \begin_inset CommandInset ref
17490 LatexCommand ref
17491 reference "sec:Tags-for-XHTML"
17492
17493 \end_inset
17494
17495 .
17496 \end_layout
17497
17498 \begin_layout Description
17499 \begin_inset Flex Code
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503 IsPredefined
17504 \end_layout
17505
17506 \end_inset
17507
17508  [
17509 \emph on
17510
17511 \begin_inset Flex Code
17512 status collapsed
17513
17514 \begin_layout Plain Layout
17515 0
17516 \end_layout
17517
17518 \end_inset
17519
17520
17521 \emph default
17522 ,
17523 \begin_inset space \thinspace{}
17524 \end_inset
17525
17526
17527 \begin_inset Flex Code
17528 status collapsed
17529
17530 \begin_layout Plain Layout
17531 1
17532 \end_layout
17533
17534 \end_inset
17535
17536 ] Indicates whether the float is already defined in the document class or
17537  if instead the \SpecialChar LaTeX
17538  package 
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 float
17544 \end_layout
17545
17546 \end_inset
17547
17548  needs to be loaded to define it on-the-fly.
17549  The default is 
17550 \begin_inset Flex Code
17551 status collapsed
17552
17553 \begin_layout Plain Layout
17554 0
17555 \end_layout
17556
17557 \end_inset
17558
17559 , which means: 
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 float
17565 \end_layout
17566
17567 \end_inset
17568
17569  is used.
17570  It should be set to 
17571 \begin_inset Flex Code
17572 status collapsed
17573
17574 \begin_layout Plain Layout
17575 1
17576 \end_layout
17577
17578 \end_inset
17579
17580  if the float is already defined by the \SpecialChar LaTeX
17581  document class.
17582 \end_layout
17583
17584 \begin_layout Description
17585 \begin_inset Flex Code
17586 status collapsed
17587
17588 \begin_layout Plain Layout
17589 ListCommand
17590 \end_layout
17591
17592 \end_inset
17593
17594  [
17595 \begin_inset Flex Code
17596 status collapsed
17597
17598 \begin_layout Plain Layout
17599 string
17600 \end_layout
17601
17602 \end_inset
17603
17604 =
17605 \begin_inset Quotes erd
17606 \end_inset
17607
17608
17609 \begin_inset Quotes erd
17610 \end_inset
17611
17612 ] The command used to generate a list of floats of this type; the leading
17613  `
17614 \backslash
17615 ' must be omitted.
17616  This 
17617 \emph on
17618 must
17619 \emph default
17620  be given if 
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 UsesFloatPkg
17626 \end_layout
17627
17628 \end_inset
17629
17630  is false, since there is no standard way to generate this command.
17631  It is ignored if 
17632 \begin_inset Flex Code
17633 status collapsed
17634
17635 \begin_layout Plain Layout
17636 UsesFloatPkg
17637 \end_layout
17638
17639 \end_inset
17640
17641  is true, since in that case there is a standard way to define the command.
17642 \end_layout
17643
17644 \begin_layout Description
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 ListName
17650 \end_layout
17651
17652 \end_inset
17653
17654  [
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 string
17660 \end_layout
17661
17662 \end_inset
17663
17664 =
17665 \begin_inset Quotes erd
17666 \end_inset
17667
17668
17669 \begin_inset Quotes erd
17670 \end_inset
17671
17672 ] A title for a list of floats of this kind (list of figures, tables, or
17673  whatever).
17674  It is used for the screen label within \SpecialChar LyX
17675 , it is used by \SpecialChar LaTeX
17676  for the title and
17677  it is used as the title in the XHTML output.
17678  It will be translated to the document language.
17679 \end_layout
17680
17681 \begin_layout Description
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 NumberWithin
17687 \end_layout
17688
17689 \end_inset
17690
17691  [
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696 string
17697 \end_layout
17698
17699 \end_inset
17700
17701 =
17702 \begin_inset Quotes erd
17703 \end_inset
17704
17705
17706 \begin_inset Quotes erd
17707 \end_inset
17708
17709 ] This (optional) argument determines whether floats of this class will
17710  be numbered within some sectional unit of the document.
17711  For example, if 
17712 \begin_inset Flex Code
17713 status collapsed
17714
17715 \begin_layout Plain Layout
17716 NumberWithin
17717 \end_layout
17718
17719 \end_inset
17720
17721  is set to 
17722 \begin_inset Quotes eld
17723 \end_inset
17724
17725
17726 \begin_inset Flex Code
17727 status collapsed
17728
17729 \begin_layout Plain Layout
17730 chapter
17731 \end_layout
17732
17733 \end_inset
17734
17735
17736 \begin_inset Quotes erd
17737 \end_inset
17738
17739 , the floats will be numbered within chapters.
17740  
17741 \end_layout
17742
17743 \begin_layout Description
17744 \begin_inset Flex Code
17745 status collapsed
17746
17747 \begin_layout Plain Layout
17748 Placement
17749 \end_layout
17750
17751 \end_inset
17752
17753  [
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 string
17759 \end_layout
17760
17761 \end_inset
17762
17763 =
17764 \begin_inset Quotes erd
17765 \end_inset
17766
17767
17768 \begin_inset Quotes erd
17769 \end_inset
17770
17771 ] The default placement for the given class of floats.
17772  The string should be as in standard \SpecialChar LaTeX
17773
17774 \begin_inset Flex Code
17775 status collapsed
17776
17777 \begin_layout Plain Layout
17778 t
17779 \end_layout
17780
17781 \end_inset
17782
17783
17784 \begin_inset Flex Code
17785 status collapsed
17786
17787 \begin_layout Plain Layout
17788 b
17789 \end_layout
17790
17791 \end_inset
17792
17793
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798 p
17799 \end_layout
17800
17801 \end_inset
17802
17803  and 
17804 \begin_inset Flex Code
17805 status collapsed
17806
17807 \begin_layout Plain Layout
17808 h
17809 \end_layout
17810
17811 \end_inset
17812
17813  for top, bottom, page, and here, respectively.
17814 \begin_inset Foot
17815 status collapsed
17816
17817 \begin_layout Plain Layout
17818 Note that the order of these letters in the string is irrelevant, like in
17819  \SpecialChar LaTeX
17820 .
17821 \end_layout
17822
17823 \end_inset
17824
17825  On top of that there is a new type, 
17826 \begin_inset Flex Code
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 H
17831 \end_layout
17832
17833 \end_inset
17834
17835 , which does not really correspond to a float, since it means: put it 
17836 \begin_inset Quotes eld
17837 \end_inset
17838
17839 here
17840 \begin_inset Quotes erd
17841 \end_inset
17842
17843  and nowhere else.
17844  Note however that the 
17845 \begin_inset Flex Code
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849 H
17850 \end_layout
17851
17852 \end_inset
17853
17854  specifier is special and, because of implementation details, cannot be
17855  used in non-built in float types.
17856  If you do not understand what this means, just use 
17857 \begin_inset Quotes eld
17858 \end_inset
17859
17860
17861 \begin_inset Flex Code
17862 status collapsed
17863
17864 \begin_layout Plain Layout
17865 tbp
17866 \end_layout
17867
17868 \end_inset
17869
17870
17871 \begin_inset Quotes erd
17872 \end_inset
17873
17874 .
17875 \end_layout
17876
17877 \begin_layout Description
17878 \begin_inset Flex Code
17879 status collapsed
17880
17881 \begin_layout Plain Layout
17882 RefPrefix
17883 \end_layout
17884
17885 \end_inset
17886
17887  [
17888 \begin_inset Flex Code
17889 status collapsed
17890
17891 \begin_layout Plain Layout
17892 string
17893 \end_layout
17894
17895 \end_inset
17896
17897 ] The prefix to use when creating labels referring to floats of this type.
17898  This allows the use of formatted references.
17899  Note that you can remove any 
17900 \begin_inset Flex Code
17901 status collapsed
17902
17903 \begin_layout Plain Layout
17904 RefPrefix
17905 \end_layout
17906
17907 \end_inset
17908
17909  set by a copied style by using the special value 
17910 \begin_inset Quotes eld
17911 \end_inset
17912
17913 OFF
17914 \begin_inset Quotes erd
17915 \end_inset
17916
17917 , which must be all caps.
17918 \end_layout
17919
17920 \begin_layout Description
17921 \begin_inset Flex Code
17922 status collapsed
17923
17924 \begin_layout Plain Layout
17925 Style
17926 \end_layout
17927
17928 \end_inset
17929
17930  [
17931 \begin_inset Flex Code
17932 status collapsed
17933
17934 \begin_layout Plain Layout
17935 string
17936 \end_layout
17937
17938 \end_inset
17939
17940 =
17941 \begin_inset Quotes erd
17942 \end_inset
17943
17944
17945 \begin_inset Quotes erd
17946 \end_inset
17947
17948 ] The style used when defining the float using 
17949 \begin_inset Flex Code
17950 status collapsed
17951
17952 \begin_layout Plain Layout
17953
17954 \backslash
17955 newfloat
17956 \end_layout
17957
17958 \end_inset
17959
17960 .
17961 \end_layout
17962
17963 \begin_layout Description
17964 \begin_inset Flex Code
17965 status collapsed
17966
17967 \begin_layout Plain Layout
17968 Type
17969 \end_layout
17970
17971 \end_inset
17972
17973  [
17974 \begin_inset Flex Code
17975 status collapsed
17976
17977 \begin_layout Plain Layout
17978 string
17979 \end_layout
17980
17981 \end_inset
17982
17983 =
17984 \begin_inset Quotes erd
17985 \end_inset
17986
17987
17988 \begin_inset Quotes erd
17989 \end_inset
17990
17991 ] The 
17992 \begin_inset Quotes eld
17993 \end_inset
17994
17995 type
17996 \begin_inset Quotes erd
17997 \end_inset
17998
17999  of the new class of floats, like program or algorithm.
18000  After the appropriate 
18001 \begin_inset Flex Code
18002 status collapsed
18003
18004 \begin_layout Plain Layout
18005
18006 \backslash
18007 newfloat
18008 \end_layout
18009
18010 \end_inset
18011
18012 , commands such as 
18013 \begin_inset Flex Code
18014 status collapsed
18015
18016 \begin_layout Plain Layout
18017
18018 \backslash
18019 begin{program}
18020 \end_layout
18021
18022 \end_inset
18023
18024  or 
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029
18030 \backslash
18031 end{algorithm*}
18032 \end_layout
18033
18034 \end_inset
18035
18036  will be available.
18037 \end_layout
18038
18039 \begin_layout Description
18040 \begin_inset Flex Code
18041 status collapsed
18042
18043 \begin_layout Plain Layout
18044 UsesFloatPkg
18045 \end_layout
18046
18047 \end_inset
18048
18049  [
18050 \begin_inset Flex Code
18051 status collapsed
18052
18053 \begin_layout Plain Layout
18054 0
18055 \end_layout
18056
18057 \end_inset
18058
18059 ,
18060 \begin_inset space \thinspace{}
18061 \end_inset
18062
18063
18064 \begin_inset Flex Code
18065 status collapsed
18066
18067 \begin_layout Plain Layout
18068
18069 \emph on
18070 1
18071 \end_layout
18072
18073 \end_inset
18074
18075 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18076  package 
18077 \begin_inset Flex Code
18078 status collapsed
18079
18080 \begin_layout Plain Layout
18081 float
18082 \end_layout
18083
18084 \end_inset
18085
18086 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18087  itself.
18088 \end_layout
18089
18090 \begin_layout Standard
18091 Note that defining a float with type 
18092 \begin_inset Flex Code
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096
18097 \emph on
18098 type
18099 \end_layout
18100
18101 \end_inset
18102
18103  automatically defines the corresponding counter with name 
18104 \begin_inset Flex Code
18105 status collapsed
18106
18107 \begin_layout Plain Layout
18108
18109 \emph on
18110 type
18111 \end_layout
18112
18113 \end_inset
18114
18115 .
18116 \end_layout
18117
18118 \begin_layout Subsection
18119 Flex insets and InsetLayout
18120 \begin_inset CommandInset label
18121 LatexCommand label
18122 name "subsec:Flex-insets-and"
18123
18124 \end_inset
18125
18126
18127 \end_layout
18128
18129 \begin_layout Standard
18130 Flex insets come in three different kinds: 
18131 \end_layout
18132
18133 \begin_layout Itemize
18134 character style (
18135 \begin_inset Flex Code
18136 status collapsed
18137
18138 \begin_layout Plain Layout
18139 CharStyle
18140 \end_layout
18141
18142 \end_inset
18143
18144 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18145  commands as 
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150
18151 \backslash
18152 noun
18153 \end_layout
18154
18155 \end_inset
18156
18157  and 
18158 \begin_inset Flex Code
18159 status collapsed
18160
18161 \begin_layout Plain Layout
18162
18163 \backslash
18164 code
18165 \end_layout
18166
18167 \end_inset
18168
18169 .
18170 \end_layout
18171
18172 \begin_layout Itemize
18173 user custom (
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178 Custom
18179 \end_layout
18180
18181 \end_inset
18182
18183 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18184  code,
18185  footnote, and the like.
18186  An obvious example is an endnote inset, which is defined in the 
18187 \begin_inset Flex Code
18188 status collapsed
18189
18190 \begin_layout Plain Layout
18191 endnote
18192 \end_layout
18193
18194 \end_inset
18195
18196  module.
18197 \end_layout
18198
18199 \begin_layout Itemize
18200 XML elements (
18201 \begin_inset Flex Code
18202 status collapsed
18203
18204 \begin_layout Plain Layout
18205 Element
18206 \end_layout
18207
18208 \end_inset
18209
18210 ): For use with DocBook classes.
18211 \end_layout
18212
18213 \begin_layout Standard
18214 Flex insets are defined using the 
18215 \begin_inset Flex Code
18216 status collapsed
18217
18218 \begin_layout Plain Layout
18219 InsetLayout
18220 \end_layout
18221
18222 \end_inset
18223
18224  tag, which shall be explained in a moment.
18225 \end_layout
18226
18227 \begin_layout Standard
18228 The 
18229 \begin_inset Flex Code
18230 status collapsed
18231
18232 \begin_layout Plain Layout
18233 InsetLayout
18234 \end_layout
18235
18236 \end_inset
18237
18238  tag also serves another function: It can be used to customize the general
18239  layout of many different types of insets.
18240  Currently, 
18241 \begin_inset Flex Code
18242 status collapsed
18243
18244 \begin_layout Plain Layout
18245 InsetLayout
18246 \end_layout
18247
18248 \end_inset
18249
18250  can be used to customize the layout parameters for footnotes, marginal
18251  notes, note insets, \SpecialChar TeX
18252  code (ERT) insets, branches, listings, indexes, boxes,
18253  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18254 \end_layout
18255
18256 \begin_layout Standard
18257 The 
18258 \begin_inset Flex Code
18259 status collapsed
18260
18261 \begin_layout Plain Layout
18262 InsetLayout
18263 \end_layout
18264
18265 \end_inset
18266
18267  definition must begin with a line of the form:
18268 \end_layout
18269
18270 \begin_layout LyX-Code
18271 InsetLayout <type>
18272 \end_layout
18273
18274 \begin_layout Standard
18275 Here 
18276 \begin_inset Flex Code
18277 status collapsed
18278
18279 \begin_layout Plain Layout
18280 <Type>
18281 \end_layout
18282
18283 \end_inset
18284
18285  indicates the inset whose layout is being defined, and here there are four
18286  cases.
18287 \end_layout
18288
18289 \begin_layout Enumerate
18290 The layout for a pre-existing inset is being modified.
18291  In this case, can be 
18292 \begin_inset Flex Code
18293 status collapsed
18294
18295 \begin_layout Plain Layout
18296 <Type>
18297 \end_layout
18298
18299 \end_inset
18300
18301  any one of the following: 
18302 \begin_inset Flex Code
18303 status collapsed
18304
18305 \begin_layout Plain Layout
18306 Algorithm
18307 \end_layout
18308
18309 \end_inset
18310
18311
18312 \begin_inset Flex Code
18313 status collapsed
18314
18315 \begin_layout Plain Layout
18316 Branch
18317 \end_layout
18318
18319 \end_inset
18320
18321
18322 \begin_inset Flex Code
18323 status collapsed
18324
18325 \begin_layout Plain Layout
18326 Box
18327 \end_layout
18328
18329 \end_inset
18330
18331
18332 \begin_inset Flex Code
18333 status collapsed
18334
18335 \begin_layout Plain Layout
18336 Box:shaded
18337 \end_layout
18338
18339 \end_inset
18340
18341
18342 \begin_inset Flex Code
18343 status collapsed
18344
18345 \begin_layout Plain Layout
18346 Caption:Standard
18347 \end_layout
18348
18349 \end_inset
18350
18351
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356 ERT
18357 \end_layout
18358
18359 \end_inset
18360
18361
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366 Figure
18367 \end_layout
18368
18369 \end_inset
18370
18371
18372 \begin_inset Flex Code
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376 Foot
18377 \end_layout
18378
18379 \end_inset
18380
18381
18382 \begin_inset Flex Code
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386 Index
18387 \end_layout
18388
18389 \end_inset
18390
18391
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396 Info
18397 \end_layout
18398
18399 \end_inset
18400
18401
18402 \begin_inset Flex Code
18403 status collapsed
18404
18405 \begin_layout Plain Layout
18406 Info:menu
18407 \end_layout
18408
18409 \end_inset
18410
18411
18412 \begin_inset Flex Code
18413 status collapsed
18414
18415 \begin_layout Plain Layout
18416 Info:shortcut
18417 \end_layout
18418
18419 \end_inset
18420
18421
18422 \begin_inset Flex Code
18423 status collapsed
18424
18425 \begin_layout Plain Layout
18426 Info:shortcuts
18427 \end_layout
18428
18429 \end_inset
18430
18431
18432 \begin_inset Flex Code
18433 status collapsed
18434
18435 \begin_layout Plain Layout
18436 Listings
18437 \end_layout
18438
18439 \end_inset
18440
18441
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 Marginal
18447 \end_layout
18448
18449 \end_inset
18450
18451
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456 Note:Comment
18457 \end_layout
18458
18459 \end_inset
18460
18461
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466 Note:Note
18467 \end_layout
18468
18469 \end_inset
18470
18471
18472 \begin_inset Flex Code
18473 status collapsed
18474
18475 \begin_layout Plain Layout
18476 Note:Greyedout
18477 \end_layout
18478
18479 \end_inset
18480
18481
18482 \begin_inset Flex Code
18483 status collapsed
18484
18485 \begin_layout Plain Layout
18486 Table
18487 \end_layout
18488
18489 \end_inset
18490
18491 , or 
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496 URL
18497 \end_layout
18498
18499 \end_inset
18500
18501 .
18502 \end_layout
18503
18504 \begin_layout Enumerate
18505 The layout for a Flex inset is being defined.
18506  In this case, 
18507 \begin_inset Flex Code
18508 status collapsed
18509
18510 \begin_layout Plain Layout
18511 <Type>
18512 \end_layout
18513
18514 \end_inset
18515
18516  must be of the form 
18517 \begin_inset Quotes eld
18518 \end_inset
18519
18520
18521 \begin_inset Flex Code
18522 status collapsed
18523
18524 \begin_layout Plain Layout
18525 Flex:<name>
18526 \end_layout
18527
18528 \end_inset
18529
18530
18531 \begin_inset Quotes erd
18532 \end_inset
18533
18534 , where 
18535 \begin_inset Flex Code
18536 status collapsed
18537
18538 \begin_layout Plain Layout
18539 name
18540 \end_layout
18541
18542 \end_inset
18543
18544  may be be any valid identifier not used by a pre-existing Flex inset.
18545  The identifier may include spaces, but in that case the whole thing must
18546  be wrapped in quotes.
18547  Note that the definition of a flex inset 
18548 \emph on
18549 must 
18550 \emph default
18551 also include a 
18552 \begin_inset Flex Code
18553 status collapsed
18554
18555 \begin_layout Plain Layout
18556 LyXType
18557 \end_layout
18558
18559 \end_inset
18560
18561  entry, declaring which type of inset it defines.
18562 \end_layout
18563
18564 \begin_layout Enumerate
18565 The layout for user specific branch is being defined.
18566  In this case, 
18567 \begin_inset Flex Code
18568 status collapsed
18569
18570 \begin_layout Plain Layout
18571 <Type>
18572 \end_layout
18573
18574 \end_inset
18575
18576  must be of the form 
18577 \begin_inset Quotes eld
18578 \end_inset
18579
18580
18581 \begin_inset Flex Code
18582 status collapsed
18583
18584 \begin_layout Plain Layout
18585 Branch:<name>
18586 \end_layout
18587
18588 \end_inset
18589
18590
18591 \begin_inset Quotes erd
18592 \end_inset
18593
18594 , where 
18595 \begin_inset Flex Code
18596 status collapsed
18597
18598 \begin_layout Plain Layout
18599 name
18600 \end_layout
18601
18602 \end_inset
18603
18604  may be be any valid identifier of branch defined in user's document.
18605  The identifier may include spaces, but in that case the whole thing must
18606  be wrapped in quotes.
18607  The main purpose of this feature is to allow \SpecialChar LaTeX
18608  wrapping around specific
18609  branches as user needs.
18610 \end_layout
18611
18612 \begin_layout Enumerate
18613 The layout of a user (or class) specific caption is being defined.
18614  In this case, 
18615 \begin_inset Flex Code
18616 status collapsed
18617
18618 \begin_layout Plain Layout
18619 <Type>
18620 \end_layout
18621
18622 \end_inset
18623
18624  must be of the form 
18625 \begin_inset Quotes eld
18626 \end_inset
18627
18628
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 Caption:<name>
18634 \end_layout
18635
18636 \end_inset
18637
18638
18639 \begin_inset Quotes erd
18640 \end_inset
18641
18642 , where 
18643 \begin_inset Flex Code
18644 status collapsed
18645
18646 \begin_layout Plain Layout
18647 name
18648 \end_layout
18649
18650 \end_inset
18651
18652  specifies the name of the caption as it appears in the menu.
18653  Have a look at the standard caption (
18654 \begin_inset Flex Code
18655 status collapsed
18656
18657 \begin_layout Plain Layout
18658 Caption:Standard
18659 \end_layout
18660
18661 \end_inset
18662
18663 ), the specific captions of the KOMA-Script classes (
18664 \begin_inset Flex Code
18665 status collapsed
18666
18667 \begin_layout Plain Layout
18668 Caption:Above
18669 \end_layout
18670
18671 \end_inset
18672
18673
18674 \begin_inset Flex Code
18675 status collapsed
18676
18677 \begin_layout Plain Layout
18678 Caption:Below
18679 \end_layout
18680
18681 \end_inset
18682
18683 ) or the module 
18684 \family sans
18685 Multilingual
18686 \begin_inset space ~
18687 \end_inset
18688
18689 Captions
18690 \begin_inset Newline linebreak
18691 \end_inset
18692
18693
18694 \family default
18695 (
18696 \begin_inset Flex Code
18697 status collapsed
18698
18699 \begin_layout Plain Layout
18700 Caption:Bicaption
18701 \end_layout
18702
18703 \end_inset
18704
18705 ) for applications.
18706 \end_layout
18707
18708 \begin_layout Standard
18709 The 
18710 \begin_inset Flex Code
18711 status collapsed
18712
18713 \begin_layout Plain Layout
18714 InsetLayout
18715 \end_layout
18716
18717 \end_inset
18718
18719  definition can contain the following entries:
18720 \end_layout
18721
18722 \begin_layout Description
18723 \begin_inset Flex Code
18724 status collapsed
18725
18726 \begin_layout Plain Layout
18727 AddToToc
18728 \end_layout
18729
18730 \end_inset
18731
18732  [
18733 \begin_inset Flex Code
18734 status collapsed
18735
18736 \begin_layout Plain Layout
18737 string
18738 \end_layout
18739
18740 \end_inset
18741
18742 =""] This inset will appear in the table of contents of the given type.
18743  An empty string disables.
18744  See also the OutlinerName and the IsTocCaption commands.
18745  This is only implemented for Flex insets.
18746  Default: disabled.
18747 \end_layout
18748
18749 \begin_layout Description
18750 \begin_inset Flex Code
18751 status collapsed
18752
18753 \begin_layout Plain Layout
18754 Argument
18755 \end_layout
18756
18757 \end_inset
18758
18759  [
18760 \begin_inset Flex Code
18761 status collapsed
18762
18763 \begin_layout Plain Layout
18764 int
18765 \end_layout
18766
18767 \end_inset
18768
18769 ] Defines argument number of a command\SpecialChar breakableslash
18770 environment associated with the current
18771  layout.
18772  The definition must end with 
18773 \begin_inset Flex Code
18774 status collapsed
18775
18776 \begin_layout Plain Layout
18777 EndArgument
18778 \end_layout
18779
18780 \end_inset
18781
18782 .
18783  See 
18784 \begin_inset CommandInset ref
18785 LatexCommand ref
18786 reference "subsec:Paragraph-Styles"
18787
18788 \end_inset
18789
18790  for details.
18791 \end_layout
18792
18793 \begin_layout Description
18794 \begin_inset Flex Code
18795 status collapsed
18796
18797 \begin_layout Plain Layout
18798 BabelPreamble
18799 \end_layout
18800
18801 \end_inset
18802
18803  Preamble for changing language commands; see 
18804 \begin_inset CommandInset ref
18805 LatexCommand ref
18806 reference "subsec:I18n"
18807
18808 \end_inset
18809
18810 .
18811 \end_layout
18812
18813 \begin_layout Description
18814 \begin_inset Flex Code
18815 status collapsed
18816
18817 \begin_layout Plain Layout
18818 BgColor
18819 \end_layout
18820
18821 \end_inset
18822
18823  [
18824 \begin_inset Flex Code
18825 status collapsed
18826
18827 \begin_layout Plain Layout
18828 <name>
18829 \end_layout
18830
18831 \end_inset
18832
18833 ] The color for the inset's background.
18834  See 
18835 \begin_inset CommandInset ref
18836 LatexCommand ref
18837 reference "chap:Names-of-colors"
18838
18839 \end_inset
18840
18841  for a list of the available color names.
18842 \end_layout
18843
18844 \begin_layout Description
18845 \begin_inset Flex Code
18846 status collapsed
18847
18848 \begin_layout Plain Layout
18849 ContentAsLabel
18850 \end_layout
18851
18852 \end_inset
18853
18854  [
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859
18860 \emph on
18861 0
18862 \end_layout
18863
18864 \end_inset
18865
18866 ,
18867 \begin_inset space \thinspace{}
18868 \end_inset
18869
18870
18871 \begin_inset Flex Code
18872 status collapsed
18873
18874 \begin_layout Plain Layout
18875 1
18876 \end_layout
18877
18878 \end_inset
18879
18880 ] Whether to use the content of the inset as the label, when the inset is
18881  closed.
18882  Default is false.
18883 \end_layout
18884
18885 \begin_layout Description
18886 \begin_inset Flex Code
18887 status collapsed
18888
18889 \begin_layout Plain Layout
18890 CopyStyle
18891 \end_layout
18892
18893 \end_inset
18894
18895  [
18896 \begin_inset Flex Code
18897 status collapsed
18898
18899 \begin_layout Plain Layout
18900 <type>
18901 \end_layout
18902
18903 \end_inset
18904
18905 ] As with paragraph styles, see 
18906 \begin_inset CommandInset ref
18907 LatexCommand ref
18908 reference "subsec:Paragraph-Styles"
18909
18910 \end_inset
18911
18912 .
18913  Note that you need to specify the complete type, e.
18914 \begin_inset space \thinspace{}
18915 \end_inset
18916
18917 g.
18918 \begin_inset space ~
18919 \end_inset
18920
18921
18922 \begin_inset Flex Code
18923 status collapsed
18924
18925 \begin_layout Plain Layout
18926 CopyStyle Flex:<name>
18927 \end_layout
18928
18929 \end_inset
18930
18931 .
18932 \end_layout
18933
18934 \begin_layout Description
18935 \begin_inset Flex Code
18936 status collapsed
18937
18938 \begin_layout Plain Layout
18939 CustomPars
18940 \end_layout
18941
18942 \end_inset
18943
18944  [
18945 \begin_inset Flex Code
18946 status collapsed
18947
18948 \begin_layout Plain Layout
18949
18950 \emph on
18951 0
18952 \end_layout
18953
18954 \end_inset
18955
18956 ,
18957 \begin_inset space \thinspace{}
18958 \end_inset
18959
18960
18961 \begin_inset Flex Code
18962 status collapsed
18963
18964 \begin_layout Plain Layout
18965 1
18966 \end_layout
18967
18968 \end_inset
18969
18970 ] Indicates whether the user may employ the Paragraph Settings dialog to
18971  customize the paragraph.
18972 \end_layout
18973
18974 \begin_layout Description
18975 \begin_inset Flex Code
18976 status collapsed
18977
18978 \begin_layout Plain Layout
18979 Decoration
18980 \end_layout
18981
18982 \end_inset
18983
18984  can be 
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 Classic
18990 \end_layout
18991
18992 \end_inset
18993
18994
18995 \begin_inset Flex Code
18996 status collapsed
18997
18998 \begin_layout Plain Layout
18999 Minimalistic
19000 \end_layout
19001
19002 \end_inset
19003
19004 , or 
19005 \begin_inset Flex Code
19006 status collapsed
19007
19008 \begin_layout Plain Layout
19009 Conglomerate
19010 \end_layout
19011
19012 \end_inset
19013
19014 , describing the rendering style used for the inset's frame and buttons.
19015  Footnotes generally use 
19016 \begin_inset Flex Code
19017 status collapsed
19018
19019 \begin_layout Plain Layout
19020 Classic
19021 \end_layout
19022
19023 \end_inset
19024
19025 , ERT insets generally 
19026 \begin_inset Flex Code
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 Minimalistic
19031 \end_layout
19032
19033 \end_inset
19034
19035 , and character styles 
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 Conglomerate
19041 \end_layout
19042
19043 \end_inset
19044
19045 .
19046 \end_layout
19047
19048 \begin_layout Description
19049 \begin_inset Flex Code
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053 Display
19054 \end_layout
19055
19056 \end_inset
19057
19058  [
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063 0
19064 \end_layout
19065
19066 \end_inset
19067
19068 ,
19069 \emph on
19070
19071 \begin_inset space \thinspace{}
19072 \end_inset
19073
19074
19075 \emph default
19076
19077 \begin_inset Flex Code
19078 status collapsed
19079
19080 \begin_layout Plain Layout
19081
19082 \emph on
19083 1
19084 \end_layout
19085
19086 \end_inset
19087
19088 ] Only useful if 
19089 \begin_inset Flex Code
19090 status collapsed
19091
19092 \begin_layout Plain Layout
19093 LatexType
19094 \end_layout
19095
19096 \end_inset
19097
19098  is 
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103 Environment
19104 \end_layout
19105
19106 \end_inset
19107
19108 .
19109  Indicates whether the environment will stand on its own in the output or
19110  will appear inline with the surrounding text.
19111  If set to false, it is supposed that the \SpecialChar LaTeX
19112  environment ignores white space
19113  (including one newline character) after the 
19114 \begin_inset Flex Code
19115 status collapsed
19116
19117 \begin_layout Plain Layout
19118
19119 \backslash
19120 begin{
19121 \emph on
19122 LatexName
19123 \emph default
19124 }
19125 \end_layout
19126
19127 \end_inset
19128
19129  and 
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134
19135 \backslash
19136 end{
19137 \emph on
19138 LatexName
19139 \emph default
19140 }
19141 \end_layout
19142
19143 \end_inset
19144
19145  tags.
19146  Default is true.
19147 \change_inserted 731793113 1538674858
19148
19149 \end_layout
19150
19151 \begin_layout Description
19152
19153 \change_inserted 731793113 1538674891
19154 \begin_inset Flex Code
19155 status open
19156
19157 \begin_layout Plain Layout
19158
19159 \change_inserted 731793113 1538674863
19160 EditExternal
19161 \change_unchanged
19162
19163 \end_layout
19164
19165 \end_inset
19166
19167  [
19168 \emph on
19169 0
19170 \emph default
19171 ,1] Allow the contents of the inset to be edited externally (using whatever
19172  editor is defined for the document's output format).
19173 \change_unchanged
19174
19175 \end_layout
19176
19177 \begin_layout Description
19178 \begin_inset Flex Code
19179 status collapsed
19180
19181 \begin_layout Plain Layout
19182 End
19183 \end_layout
19184
19185 \end_inset
19186
19187  Required at the end of the 
19188 \begin_inset Flex Code
19189 status collapsed
19190
19191 \begin_layout Plain Layout
19192 InsetLayout
19193 \end_layout
19194
19195 \end_inset
19196
19197  declarations.
19198 \end_layout
19199
19200 \begin_layout Description
19201 \begin_inset Flex Code
19202 status collapsed
19203
19204 \begin_layout Plain Layout
19205 Font
19206 \end_layout
19207
19208 \end_inset
19209
19210  The font used for both the text body 
19211 \emph on
19212 and
19213 \emph default
19214  the label.
19215  See 
19216 \begin_inset CommandInset ref
19217 LatexCommand ref
19218 reference "subsec:Font-description"
19219
19220 \end_inset
19221
19222 .
19223  Note that defining this font automatically defines the 
19224 \begin_inset Flex Code
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228 LabelFont
19229 \end_layout
19230
19231 \end_inset
19232
19233  to the same value, so define this first and define 
19234 \begin_inset Flex Code
19235 status collapsed
19236
19237 \begin_layout Plain Layout
19238 LabelFont
19239 \end_layout
19240
19241 \end_inset
19242
19243  later if you want them to be different.
19244 \end_layout
19245
19246 \begin_layout Description
19247 \begin_inset Flex Code
19248 status collapsed
19249
19250 \begin_layout Plain Layout
19251 FixedWidthPreambleEncoding
19252 \end_layout
19253
19254 \end_inset
19255
19256  [
19257 \begin_inset Flex Code
19258 status collapsed
19259
19260 \begin_layout Plain Layout
19261
19262 \emph on
19263 0
19264 \end_layout
19265
19266 \end_inset
19267
19268 ,
19269 \begin_inset space \thinspace{}
19270 \end_inset
19271
19272
19273 \begin_inset Flex Code
19274 status collapsed
19275
19276 \begin_layout Plain Layout
19277 1
19278 \end_layout
19279
19280 \end_inset
19281
19282 ] Force a fixed width encoding for the translated contents of 
19283 \begin_inset Flex Code
19284 status collapsed
19285
19286 \begin_layout Plain Layout
19287 BabelPreamble
19288 \end_layout
19289
19290 \end_inset
19291
19292  and 
19293 \begin_inset Flex Code
19294 status collapsed
19295
19296 \begin_layout Plain Layout
19297 LangPreamble
19298 \end_layout
19299
19300 \end_inset
19301
19302  code generated by this layout.
19303  This is needed for special \SpecialChar LaTeX
19304 -packages like 
19305 \family typewriter
19306 listings
19307 \family default
19308  that do not work with variable width encodings such as 
19309 \family sans
19310 utf8
19311 \family default
19312 .
19313  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19314  backends such as Xe\SpecialChar TeX
19315  or
19316  Lua\SpecialChar TeX
19317  are used.
19318 \end_layout
19319
19320 \begin_layout Description
19321 \begin_inset Flex Code
19322 status collapsed
19323
19324 \begin_layout Plain Layout
19325 ForceLocalFontSwitch
19326 \end_layout
19327
19328 \end_inset
19329
19330  [
19331 \begin_inset Flex Code
19332 status collapsed
19333
19334 \begin_layout Plain Layout
19335
19336 \emph on
19337 0
19338 \end_layout
19339
19340 \end_inset
19341
19342 ,
19343 \begin_inset space \thinspace{}
19344 \end_inset
19345
19346
19347 \begin_inset Flex Code
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 1
19352 \end_layout
19353
19354 \end_inset
19355
19356 ] When using babel, always use a local font switch (
19357 \begin_inset Flex Code
19358 status collapsed
19359
19360 \begin_layout Plain Layout
19361
19362 \backslash
19363 foreignlanguage
19364 \end_layout
19365
19366 \end_inset
19367
19368 ), never a global one (such as 
19369 \begin_inset Flex Code
19370 status collapsed
19371
19372 \begin_layout Plain Layout
19373
19374 \backslash
19375 selectlanguage
19376 \end_layout
19377
19378 \end_inset
19379
19380 ).
19381 \end_layout
19382
19383 \begin_layout Description
19384 \begin_inset Flex Code
19385 status collapsed
19386
19387 \begin_layout Plain Layout
19388 ForceLTR
19389 \end_layout
19390
19391 \end_inset
19392
19393  [
19394 \begin_inset Flex Code
19395 status collapsed
19396
19397 \begin_layout Plain Layout
19398
19399 \emph on
19400 0
19401 \end_layout
19402
19403 \end_inset
19404
19405 ,
19406 \begin_inset space \thinspace{}
19407 \end_inset
19408
19409
19410 \begin_inset Flex Code
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414 1
19415 \end_layout
19416
19417 \end_inset
19418
19419 ] Force the 
19420 \begin_inset Quotes eld
19421 \end_inset
19422
19423 latex
19424 \begin_inset Quotes erd
19425 \end_inset
19426
19427  language, leading to Left-to-Right (Latin) output, e.
19428 \begin_inset space \thinspace{}
19429 \end_inset
19430
19431 g.
19432 \begin_inset space \space{}
19433 \end_inset
19434
19435 in \SpecialChar TeX
19436  code or URL.
19437  A kludge.
19438 \end_layout
19439
19440 \begin_layout Description
19441 \begin_inset Flex Code
19442 status collapsed
19443
19444 \begin_layout Plain Layout
19445 ForceOwnlines
19446 \end_layout
19447
19448 \end_inset
19449
19450  [
19451 \begin_inset Flex Code
19452 status collapsed
19453
19454 \begin_layout Plain Layout
19455
19456 \emph on
19457 0
19458 \end_layout
19459
19460 \end_inset
19461
19462 ,
19463 \begin_inset space \thinspace{}
19464 \end_inset
19465
19466
19467 \begin_inset Flex Code
19468 status collapsed
19469
19470 \begin_layout Plain Layout
19471 1
19472 \end_layout
19473
19474 \end_inset
19475
19476 ] Force a a line break in the \SpecialChar LaTeX
19477  output before the inset starts and after
19478  the inset ends.
19479  This assures the inset itself is output on its own lines, for parsing purposes.
19480 \end_layout
19481
19482 \begin_layout Description
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 ForcePlain
19488 \end_layout
19489
19490 \end_inset
19491
19492  [
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497
19498 \emph on
19499 0
19500 \end_layout
19501
19502 \end_inset
19503
19504 ,
19505 \begin_inset space \thinspace{}
19506 \end_inset
19507
19508
19509 \begin_inset Flex Code
19510 status collapsed
19511
19512 \begin_layout Plain Layout
19513 1
19514 \end_layout
19515
19516 \end_inset
19517
19518 ] Indicates whether the 
19519 \begin_inset Flex Code
19520 status collapsed
19521
19522 \begin_layout Plain Layout
19523 PlainLayout
19524 \end_layout
19525
19526 \end_inset
19527
19528  should be used or, instead, the user can change the paragraph style used
19529  in the inset.
19530  Default is false.
19531 \end_layout
19532
19533 \begin_layout Description
19534 \begin_inset Flex Code
19535 status collapsed
19536
19537 \begin_layout Plain Layout
19538 FreeSpacing
19539 \end_layout
19540
19541 \end_inset
19542
19543  [
19544 \begin_inset Flex Code
19545 status collapsed
19546
19547 \begin_layout Plain Layout
19548
19549 \emph on
19550 0
19551 \end_layout
19552
19553 \end_inset
19554
19555 ,
19556 \begin_inset space \thinspace{}
19557 \end_inset
19558
19559
19560 \begin_inset Flex Code
19561 status collapsed
19562
19563 \begin_layout Plain Layout
19564 1
19565 \end_layout
19566
19567 \end_inset
19568
19569 ] As with paragraph styles, see 
19570 \begin_inset CommandInset ref
19571 LatexCommand ref
19572 reference "subsec:Paragraph-Styles"
19573
19574 \end_inset
19575
19576 .
19577 \end_layout
19578
19579 \begin_layout Description
19580 \begin_inset Flex Code
19581 status collapsed
19582
19583 \begin_layout Plain Layout
19584 HTML*
19585 \end_layout
19586
19587 \end_inset
19588
19589  These tags control the XHTML output.
19590  See 
19591 \begin_inset CommandInset ref
19592 LatexCommand ref
19593 reference "sec:Tags-for-XHTML"
19594
19595 \end_inset
19596
19597 .
19598 \end_layout
19599
19600 \begin_layout Description
19601 \begin_inset Flex Code
19602 status collapsed
19603
19604 \begin_layout Plain Layout
19605 InToc
19606 \end_layout
19607
19608 \end_inset
19609
19610  [
19611 \begin_inset Flex Code
19612 status collapsed
19613
19614 \begin_layout Plain Layout
19615
19616 \emph on
19617 0
19618 \end_layout
19619
19620 \end_inset
19621
19622 ,
19623 \begin_inset space \thinspace{}
19624 \end_inset
19625
19626
19627 \begin_inset Flex Code
19628 status collapsed
19629
19630 \begin_layout Plain Layout
19631 1
19632 \end_layout
19633
19634 \end_inset
19635
19636 ] Whether to include the contents of this inset in the strings generated
19637  for the `Outline' pane for all table of contents, regardless of the AddToToc
19638  setting.
19639  One would not, for example, want the content of a footnote in a section
19640  header to be included in the TOC displayed in the outline, but one would
19641  normally want the content of a character style displayed.
19642  Default is false: not to include.
19643 \end_layout
19644
19645 \begin_layout Description
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 IsTocCaption
19651 \end_layout
19652
19653 \end_inset
19654
19655  [
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660
19661 \emph on
19662 0
19663 \end_layout
19664
19665 \end_inset
19666
19667 ,
19668 \begin_inset space \thinspace{}
19669 \end_inset
19670
19671
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676 1
19677 \end_layout
19678
19679 \end_inset
19680
19681 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19682  of its contents in its item in the table of contents.
19683  Otherwise, only the label appears.
19684 \end_layout
19685
19686 \begin_layout Description
19687 \begin_inset Flex Code
19688 status collapsed
19689
19690 \begin_layout Plain Layout
19691 KeepEmpty
19692 \end_layout
19693
19694 \end_inset
19695
19696  [
19697 \emph on
19698
19699 \begin_inset Flex Code
19700 status collapsed
19701
19702 \begin_layout Plain Layout
19703 0
19704 \end_layout
19705
19706 \end_inset
19707
19708
19709 \emph default
19710 ,
19711 \begin_inset space \thinspace{}
19712 \end_inset
19713
19714
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 1
19720 \end_layout
19721
19722 \end_inset
19723
19724 ] As with paragraph styles, see 
19725 \begin_inset CommandInset ref
19726 LatexCommand ref
19727 reference "subsec:Paragraph-Styles"
19728
19729 \end_inset
19730
19731 .
19732 \end_layout
19733
19734 \begin_layout Description
19735 \begin_inset Flex Code
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 LabelFont
19740 \end_layout
19741
19742 \end_inset
19743
19744  The font used for the label.
19745  See 
19746 \begin_inset CommandInset ref
19747 LatexCommand ref
19748 reference "subsec:Font-description"
19749
19750 \end_inset
19751
19752 .
19753  Note that this definition can never appear before 
19754 \begin_inset Flex Code
19755 status collapsed
19756
19757 \begin_layout Plain Layout
19758 Font
19759 \end_layout
19760
19761 \end_inset
19762
19763 , lest it be ineffective.
19764 \end_layout
19765
19766 \begin_layout Description
19767 \begin_inset Flex Code
19768 status collapsed
19769
19770 \begin_layout Plain Layout
19771 LabelString
19772 \end_layout
19773
19774 \end_inset
19775
19776  [
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781 string
19782 \end_layout
19783
19784 \end_inset
19785
19786 =
19787 \begin_inset Quotes erd
19788 \end_inset
19789
19790
19791 \begin_inset Quotes erd
19792 \end_inset
19793
19794 ] What will be displayed on the button or elsewhere as the inset label.
19795  Some inset types (
19796 \begin_inset Flex Code
19797 status collapsed
19798
19799 \begin_layout Plain Layout
19800 \SpecialChar TeX
19801  code
19802 \end_layout
19803
19804 \end_inset
19805
19806  and 
19807 \begin_inset Flex Code
19808 status collapsed
19809
19810 \begin_layout Plain Layout
19811 Branch
19812 \end_layout
19813
19814 \end_inset
19815
19816 ) modify this label on the fly.
19817 \end_layout
19818
19819 \begin_layout Description
19820 \begin_inset Flex Code
19821 status collapsed
19822
19823 \begin_layout Plain Layout
19824 LangPreamble
19825 \end_layout
19826
19827 \end_inset
19828
19829  Language dependent preamble; see 
19830 \begin_inset CommandInset ref
19831 LatexCommand ref
19832 reference "subsec:I18n"
19833
19834 \end_inset
19835
19836 .
19837 \end_layout
19838
19839 \begin_layout Description
19840 \begin_inset Flex Code
19841 status collapsed
19842
19843 \begin_layout Plain Layout
19844 LatexName
19845 \end_layout
19846
19847 \end_inset
19848
19849  [
19850 \begin_inset Flex Code
19851 status collapsed
19852
19853 \begin_layout Plain Layout
19854 <name>
19855 \end_layout
19856
19857 \end_inset
19858
19859 ] The name of the corresponding \SpecialChar LaTeX
19860  stuff.
19861  Either the environment or command name.
19862 \end_layout
19863
19864 \begin_layout Description
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 LatexParam
19870 \end_layout
19871
19872 \end_inset
19873
19874  [
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 <parameter>
19880 \end_layout
19881
19882 \end_inset
19883
19884 ] The optional parameter for the corresponding 
19885 \begin_inset Flex Code
19886 status collapsed
19887
19888 \begin_layout Plain Layout
19889 LatexName
19890 \end_layout
19891
19892 \end_inset
19893
19894  stuff, including possible bracket pairs like 
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899 []
19900 \end_layout
19901
19902 \end_inset
19903
19904 .
19905  This parameter cannot be changed from within \SpecialChar LyX
19906  (use 
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 Argument
19912 \end_layout
19913
19914 \end_inset
19915
19916  for customizable parameters).
19917  It will be output as is after all \SpecialChar LaTeX
19918  
19919 \begin_inset Flex Code
19920 status collapsed
19921
19922 \begin_layout Plain Layout
19923 Argument
19924 \end_layout
19925
19926 \end_inset
19927
19928 s.
19929 \end_layout
19930
19931 \begin_layout Description
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 LatexType
19937 \end_layout
19938
19939 \end_inset
19940
19941  [
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946 Command, Environment, None
19947 \end_layout
19948
19949 \end_inset
19950
19951 ] How the style should be translated into \SpecialChar LaTeX
19952 .
19953 \begin_inset Foot
19954 status collapsed
19955
19956 \begin_layout Plain Layout
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 LatexType
19962 \end_layout
19963
19964 \end_inset
19965
19966  is perhaps a bit misleading, since these rules apply to SGML classes too.
19967  Visit the SGML class files for specific examples.
19968 \end_layout
19969
19970 \end_inset
19971
19972
19973 \end_layout
19974
19975 \begin_deeper
19976 \begin_layout Description
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 None
19982 \end_layout
19983
19984 \end_inset
19985
19986  means nothing special
19987 \end_layout
19988
19989 \begin_layout Description
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 Command
19995 \end_layout
19996
19997 \end_inset
19998
19999  means 
20000 \begin_inset Flex Code
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004
20005 \backslash
20006
20007 \emph on
20008 LatexName
20009 \emph default
20010 {\SpecialChar ldots
20011 }
20012 \end_layout
20013
20014 \end_inset
20015
20016
20017 \end_layout
20018
20019 \begin_layout Description
20020 \begin_inset Flex Code
20021 status collapsed
20022
20023 \begin_layout Plain Layout
20024 Environment
20025 \end_layout
20026
20027 \end_inset
20028
20029  means 
20030 \begin_inset Flex Code
20031 status collapsed
20032
20033 \begin_layout Plain Layout
20034
20035 \backslash
20036 begin{
20037 \emph on
20038 LatexName
20039 \emph default
20040 }\SpecialChar ldots
20041
20042 \backslash
20043 end{
20044 \emph on
20045 LatexName
20046 \emph default
20047 }
20048 \end_layout
20049
20050 \end_inset
20051
20052
20053 \end_layout
20054
20055 \begin_layout Standard
20056 Putting the last few things together, the \SpecialChar LaTeX
20057  output will be either: 
20058 \end_layout
20059
20060 \begin_layout LyX-Code
20061
20062 \backslash
20063 LatexName[LatexParam]{\SpecialChar ldots
20064 }
20065 \end_layout
20066
20067 \begin_layout Standard
20068 or: 
20069 \end_layout
20070
20071 \begin_layout LyX-Code
20072
20073 \backslash
20074 begin{LatexName}[LatexParam] \SpecialChar ldots
20075  
20076 \backslash
20077 end{LatexName}
20078 \end_layout
20079
20080 \begin_layout Standard
20081 depending upon the \SpecialChar LaTeX
20082  type.
20083 \end_layout
20084
20085 \end_deeper
20086 \begin_layout Description
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 LeftDelim
20092 \end_layout
20093
20094 \end_inset
20095
20096  [
20097 \begin_inset Flex Code
20098 status collapsed
20099
20100 \begin_layout Plain Layout
20101 string
20102 \end_layout
20103
20104 \end_inset
20105
20106 ] A string that is put at the beginning of the layout content.
20107  A line break in the output can be indicated by 
20108 \begin_inset Flex Code
20109 status collapsed
20110
20111 \begin_layout Plain Layout
20112 <br/>
20113 \end_layout
20114
20115 \end_inset
20116
20117 .
20118 \end_layout
20119
20120 \begin_layout Description
20121 \begin_inset Flex Code
20122 status collapsed
20123
20124 \begin_layout Plain Layout
20125 LyxType
20126 \end_layout
20127
20128 \end_inset
20129
20130  Can be 
20131 \begin_inset Flex Code
20132 status collapsed
20133
20134 \begin_layout Plain Layout
20135 charstyle
20136 \end_layout
20137
20138 \end_inset
20139
20140
20141 \begin_inset Flex Code
20142 status collapsed
20143
20144 \begin_layout Plain Layout
20145 custom
20146 \end_layout
20147
20148 \end_inset
20149
20150
20151 \begin_inset Flex Code
20152 status collapsed
20153
20154 \begin_layout Plain Layout
20155 element
20156 \end_layout
20157
20158 \end_inset
20159
20160  or 
20161 \begin_inset Flex Code
20162 status collapsed
20163
20164 \begin_layout Plain Layout
20165 end
20166 \end_layout
20167
20168 \end_inset
20169
20170  (indicating a dummy definition ending definitions of charstyles, etc).
20171  This entry is required in and is only meaningful for Flex insets.
20172  Among other things, it determines on which menu this inset will appear.
20173  Setting 
20174 \begin_inset Flex Code
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178 LyxType
20179 \end_layout
20180
20181 \end_inset
20182
20183  to 
20184 \begin_inset Flex Code
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 charstyle
20189 \end_layout
20190
20191 \end_inset
20192
20193  will automatically set 
20194 \begin_inset Flex Code
20195 status collapsed
20196
20197 \begin_layout Plain Layout
20198 MultiPar
20199 \end_layout
20200
20201 \end_inset
20202
20203  to false and 
20204 \begin_inset Flex Code
20205 status collapsed
20206
20207 \begin_layout Plain Layout
20208 ForcePlain
20209 \end_layout
20210
20211 \end_inset
20212
20213  to true.
20214  
20215 \begin_inset Flex Code
20216 status collapsed
20217
20218 \begin_layout Plain Layout
20219 MultiPar
20220 \end_layout
20221
20222 \end_inset
20223
20224  can be set to true, or 
20225 \begin_inset Flex Code
20226 status collapsed
20227
20228 \begin_layout Plain Layout
20229 ForcePlain
20230 \end_layout
20231
20232 \end_inset
20233
20234  to false, for 
20235 \begin_inset Flex Code
20236 status collapsed
20237
20238 \begin_layout Plain Layout
20239 charstyle
20240 \end_layout
20241
20242 \end_inset
20243
20244  insets by setting it 
20245 \emph on
20246 after
20247 \emph default
20248  you set the 
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253 LyxType
20254 \end_layout
20255
20256 \end_inset
20257
20258 .
20259 \end_layout
20260
20261 \begin_layout Description
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266 MultiPar
20267 \end_layout
20268
20269 \end_inset
20270
20271  [
20272 \begin_inset Flex Code
20273 status collapsed
20274
20275 \begin_layout Plain Layout
20276
20277 \emph on
20278 0
20279 \end_layout
20280
20281 \end_inset
20282
20283 ,
20284 \begin_inset space \thinspace{}
20285 \end_inset
20286
20287
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 1
20293 \end_layout
20294
20295 \end_inset
20296
20297 ] Whether multiple paragraphs are permitted in this inset.
20298  This will also set 
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 CustomPars
20304 \end_layout
20305
20306 \end_inset
20307
20308  to the same value and 
20309 \begin_inset Flex Code
20310 status collapsed
20311
20312 \begin_layout Plain Layout
20313 ForcePlain
20314 \end_layout
20315
20316 \end_inset
20317
20318  to the opposite value.
20319  These can be reset to other values, if they are used 
20320 \emph on
20321 after
20322 \emph default
20323  
20324 \begin_inset Flex Code
20325 status collapsed
20326
20327 \begin_layout Plain Layout
20328 MultiPar
20329 \end_layout
20330
20331 \end_inset
20332
20333 .
20334  Default is true.
20335 \end_layout
20336
20337 \begin_layout Description
20338 \begin_inset Flex Code
20339 status collapsed
20340
20341 \begin_layout Plain Layout
20342 NeedProtect
20343 \end_layout
20344
20345 \end_inset
20346
20347  [
20348 \begin_inset Flex Code
20349 status collapsed
20350
20351 \begin_layout Plain Layout
20352
20353 \emph on
20354 0
20355 \end_layout
20356
20357 \end_inset
20358
20359 ,
20360 \begin_inset space \thinspace{}
20361 \end_inset
20362
20363
20364 \begin_inset Flex Code
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 1
20369 \end_layout
20370
20371 \end_inset
20372
20373 ] Whether fragile commands in this inset should be 
20374 \begin_inset Flex Code
20375 status collapsed
20376
20377 \begin_layout Plain Layout
20378
20379 \backslash
20380 protect
20381 \end_layout
20382
20383 \end_inset
20384
20385 'ed.
20386  (Note: This is 
20387 \emph on
20388 not
20389 \emph default
20390  whether the command should itself be protected.) Default is false.
20391 \change_inserted -712698321 1523633958
20392
20393 \end_layout
20394
20395 \begin_layout Description
20396
20397 \change_inserted -712698321 1552395786
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402
20403 \change_inserted -712698321 1523633961
20404 NeedCProtect
20405 \end_layout
20406
20407 \end_inset
20408
20409  [
20410 \begin_inset Flex Code
20411 status collapsed
20412
20413 \begin_layout Plain Layout
20414
20415 \change_inserted -712698321 1523633958
20416
20417 \emph on
20418 0
20419 \end_layout
20420
20421 \end_inset
20422
20423 ,
20424 \begin_inset space \thinspace{}
20425 \end_inset
20426
20427
20428 \begin_inset Flex Code
20429 status collapsed
20430
20431 \begin_layout Plain Layout
20432
20433 \change_inserted -712698321 1523633958
20434 1
20435 \end_layout
20436
20437 \end_inset
20438
20439 ] This causes macros that contain this inset to be protected with 
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444
20445 \change_inserted -712698321 1523634038
20446
20447 \backslash
20448 cprotect
20449 \change_unchanged
20450
20451 \end_layout
20452
20453 \end_inset
20454
20455  (cf.
20456  package 
20457 \family sans
20458 cprotect
20459 \family default
20460 ) if necessary and thus allows (some) verbatim stuff in macros.
20461  Default is false.
20462 \end_layout
20463
20464 \begin_layout Description
20465
20466 \change_inserted -712698321 1552395824
20467 \begin_inset Flex Code
20468 status collapsed
20469
20470 \begin_layout Plain Layout
20471
20472 \change_inserted -712698321 1552395787
20473 NeedMBoxProtect
20474 \end_layout
20475
20476 \end_inset
20477
20478  [
20479 \begin_inset Flex Code
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483
20484 \change_inserted -712698321 1552395787
20485
20486 \emph on
20487 0
20488 \end_layout
20489
20490 \end_inset
20491
20492 ,
20493 \begin_inset space \thinspace{}
20494 \end_inset
20495
20496
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501
20502 \change_inserted -712698321 1552395787
20503 1
20504 \end_layout
20505
20506 \end_inset
20507
20508 ] Whether specific commands in this inset (such as 
20509 \begin_inset Flex Code
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513
20514 \change_inserted -712698321 1552395787
20515
20516 \backslash
20517 cite
20518 \end_layout
20519
20520 \end_inset
20521
20522  and 
20523 \begin_inset Flex Code
20524 status collapsed
20525
20526 \begin_layout Plain Layout
20527
20528 \change_inserted -712698321 1552395787
20529
20530 \backslash
20531 ref
20532 \end_layout
20533
20534 \end_inset
20535
20536 ) should be protected in an 
20537 \begin_inset Flex Code
20538 status collapsed
20539
20540 \begin_layout Plain Layout
20541
20542 \change_inserted -712698321 1552395787
20543
20544 \backslash
20545 mbox
20546 \end_layout
20547
20548 \end_inset
20549
20550 .
20551  This is particularly needed for insets that draw on 
20552 \family sans
20553 ulem
20554 \family default
20555  or 
20556 \family sans
20557 soul
20558 \family default
20559  commands which parse their content in complex ways.
20560  Default is false.
20561 \change_unchanged
20562
20563 \end_layout
20564
20565 \begin_layout Description
20566 \begin_inset Flex Code
20567 status collapsed
20568
20569 \begin_layout Plain Layout
20570 NoInsetLayout
20571 \end_layout
20572
20573 \end_inset
20574
20575  [
20576 \begin_inset Flex Code
20577 status collapsed
20578
20579 \begin_layout Plain Layout
20580 <layout>
20581 \end_layout
20582
20583 \end_inset
20584
20585 ] Deletes an existing 
20586 \begin_inset Flex Code
20587 status collapsed
20588
20589 \begin_layout Plain Layout
20590 InsetLayout
20591 \end_layout
20592
20593 \end_inset
20594
20595 .
20596 \end_layout
20597
20598 \begin_layout Description
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 ObsoletedBy
20604 \end_layout
20605
20606 \end_inset
20607
20608  [
20609 \begin_inset Flex Code
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613 <layout>
20614 \end_layout
20615
20616 \end_inset
20617
20618 ] Name of an 
20619 \begin_inset Flex Code
20620 status collapsed
20621
20622 \begin_layout Plain Layout
20623 InsetLayout
20624 \end_layout
20625
20626 \end_inset
20627
20628  that has replaced this 
20629 \begin_inset Flex Code
20630 status collapsed
20631
20632 \begin_layout Plain Layout
20633 InsetLayout
20634 \end_layout
20635
20636 \end_inset
20637
20638 .
20639  This is used to rename an 
20640 \begin_inset Flex Code
20641 status collapsed
20642
20643 \begin_layout Plain Layout
20644 InsetLayout
20645 \end_layout
20646
20647 \end_inset
20648
20649 , while keeping backward compatibility.
20650 \end_layout
20651
20652 \begin_layout Description
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 ParbreakIsNewline
20658 \end_layout
20659
20660 \end_inset
20661
20662  [
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667
20668 \emph on
20669 0
20670 \end_layout
20671
20672 \end_inset
20673
20674 ,
20675 \begin_inset space \thinspace{}
20676 \end_inset
20677
20678
20679 \begin_inset Flex Code
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683 1
20684 \end_layout
20685
20686 \end_inset
20687
20688 ] As with paragraph styles, see 
20689 \begin_inset CommandInset ref
20690 LatexCommand ref
20691 reference "subsec:Paragraph-Styles"
20692
20693 \end_inset
20694
20695 .
20696  Default is false.
20697 \end_layout
20698
20699 \begin_layout Description
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 PassThru
20705 \end_layout
20706
20707 \end_inset
20708
20709  [
20710 \begin_inset Flex Code
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714
20715 \emph on
20716 0
20717 \end_layout
20718
20719 \end_inset
20720
20721 ,
20722 \begin_inset space \thinspace{}
20723 \end_inset
20724
20725
20726 \begin_inset Flex Code
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730 1
20731 \end_layout
20732
20733 \end_inset
20734
20735 ] As with paragraph styles, see 
20736 \begin_inset CommandInset ref
20737 LatexCommand ref
20738 reference "subsec:Paragraph-Styles"
20739
20740 \end_inset
20741
20742 .
20743  Default is false.
20744 \end_layout
20745
20746 \begin_layout Description
20747 \begin_inset Flex Code
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751 Preamble
20752 \end_layout
20753
20754 \end_inset
20755
20756  As with paragraph styles, see 
20757 \begin_inset CommandInset ref
20758 LatexCommand ref
20759 reference "subsec:Paragraph-Styles"
20760
20761 \end_inset
20762
20763 .
20764 \end_layout
20765
20766 \begin_layout Description
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771 RefPrefix
20772 \end_layout
20773
20774 \end_inset
20775
20776  [
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 string
20782 \end_layout
20783
20784 \end_inset
20785
20786 ] The prefix to use when creating labels referring to insets of this type.
20787  This allows the use of formatted references.
20788 \end_layout
20789
20790 \begin_layout Description
20791 \begin_inset Flex Code
20792 status collapsed
20793
20794 \begin_layout Plain Layout
20795 Requires
20796 \end_layout
20797
20798 \end_inset
20799
20800  [
20801 \begin_inset Flex Code
20802 status collapsed
20803
20804 \begin_layout Plain Layout
20805 string
20806 \end_layout
20807
20808 \end_inset
20809
20810 ] As with paragraph styles, see 
20811 \begin_inset CommandInset ref
20812 LatexCommand ref
20813 reference "subsec:Paragraph-Styles"
20814
20815 \end_inset
20816
20817 .
20818 \end_layout
20819
20820 \begin_layout Description
20821 \begin_inset Flex Code
20822 status collapsed
20823
20824 \begin_layout Plain Layout
20825 ResetArgs
20826 \end_layout
20827
20828 \end_inset
20829
20830  [
20831 \begin_inset Flex Code
20832 status collapsed
20833
20834 \begin_layout Plain Layout
20835
20836 \emph on
20837 0
20838 \end_layout
20839
20840 \end_inset
20841
20842 ,
20843 \begin_inset space \thinspace{}
20844 \end_inset
20845
20846
20847 \begin_inset Flex Code
20848 status collapsed
20849
20850 \begin_layout Plain Layout
20851 1
20852 \end_layout
20853
20854 \end_inset
20855
20856 ] Resets the \SpecialChar LaTeX
20857  arguments of this layout (as defined via the 
20858 \begin_inset Flex Code
20859 status collapsed
20860
20861 \begin_layout Plain Layout
20862 Argument
20863 \end_layout
20864
20865 \end_inset
20866
20867  tag).
20868  This is useful if you have copied a style via 
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 CopyStyle
20874 \end_layout
20875
20876 \end_inset
20877
20878 , but you do not want to inherit its (required and optional) arguments.
20879 \end_layout
20880
20881 \begin_layout Description
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 ResetsFont
20887 \end_layout
20888
20889 \end_inset
20890
20891  [
20892 \begin_inset Flex Code
20893 status collapsed
20894
20895 \begin_layout Plain Layout
20896 0
20897 \end_layout
20898
20899 \end_inset
20900
20901 ,
20902 \begin_inset space \thinspace{}
20903 \end_inset
20904
20905
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910
20911 \emph on
20912 1
20913 \end_layout
20914
20915 \end_inset
20916
20917 ] Whether this inset should use the font of its surrounding environment
20918  or uses its own.
20919  Default is false: use the font of the surrounding environment.
20920 \end_layout
20921
20922 \begin_layout Description
20923 \begin_inset Flex Code
20924 status collapsed
20925
20926 \begin_layout Plain Layout
20927 RightDelim
20928 \end_layout
20929
20930 \end_inset
20931
20932  [
20933 \begin_inset Flex Code
20934 status collapsed
20935
20936 \begin_layout Plain Layout
20937 string
20938 \end_layout
20939
20940 \end_inset
20941
20942 ] A string that is put at the end of the layout content.
20943  A line break in the output can be indicated by 
20944 \begin_inset Flex Code
20945 status collapsed
20946
20947 \begin_layout Plain Layout
20948 <br/>
20949 \end_layout
20950
20951 \end_inset
20952
20953 .
20954 \end_layout
20955
20956 \begin_layout Description
20957 \begin_inset Flex Code
20958 status collapsed
20959
20960 \begin_layout Plain Layout
20961 Spellcheck
20962 \end_layout
20963
20964 \end_inset
20965
20966  [
20967 \begin_inset Flex Code
20968 status collapsed
20969
20970 \begin_layout Plain Layout
20971 0
20972 \end_layout
20973
20974 \end_inset
20975
20976 ,
20977 \begin_inset space \thinspace{}
20978 \end_inset
20979
20980
20981 \begin_inset Flex Code
20982 status collapsed
20983
20984 \begin_layout Plain Layout
20985
20986 \emph on
20987 1
20988 \end_layout
20989
20990 \end_inset
20991
20992 ] Allow spell-checking the contents of this inset.
20993  Default is true.
20994 \end_layout
20995
20996 \begin_layout Subsection
20997 Counters
20998 \begin_inset CommandInset label
20999 LatexCommand label
21000 name "subsec:Counters"
21001
21002 \end_inset
21003
21004
21005 \end_layout
21006
21007 \begin_layout Standard
21008 It is necessary to define the counters (
21009 \begin_inset Flex Noun
21010 status collapsed
21011
21012 \begin_layout Plain Layout
21013 chapter
21014 \end_layout
21015
21016 \end_inset
21017
21018
21019 \begin_inset Flex Noun
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023 figure
21024 \end_layout
21025
21026 \end_inset
21027
21028 , \SpecialChar ldots
21029 ) in the text class itself.
21030  The standard counters are defined in the file 
21031 \begin_inset Flex Code
21032 status collapsed
21033
21034 \begin_layout Plain Layout
21035 stdcounters.inc
21036 \end_layout
21037
21038 \end_inset
21039
21040 , so you may have to do no more than add
21041 \end_layout
21042
21043 \begin_layout LyX-Code
21044 Input stdcounters.inc
21045 \end_layout
21046
21047 \begin_layout Standard
21048 to your layout file to get them to work.
21049  But if you want to define custom counters, then you can do so.
21050  The counter declaration must begin with:
21051 \end_layout
21052
21053 \begin_layout LyX-Code
21054 Counter CounterName
21055 \end_layout
21056
21057 \begin_layout Standard
21058 where of course `
21059 \begin_inset Flex Code
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 CounterName
21064 \end_layout
21065
21066 \end_inset
21067
21068 ' is replaced by the name of the counter.
21069  And it must end with 
21070 \begin_inset Quotes eld
21071 \end_inset
21072
21073
21074 \begin_inset Flex Code
21075 status collapsed
21076
21077 \begin_layout Plain Layout
21078 End
21079 \end_layout
21080
21081 \end_inset
21082
21083
21084 \begin_inset Quotes erd
21085 \end_inset
21086
21087 .
21088  The following parameters can also be used:
21089 \end_layout
21090
21091 \begin_layout Description
21092 \begin_inset Flex Code
21093 status collapsed
21094
21095 \begin_layout Plain Layout
21096 InitialValue
21097 \end_layout
21098
21099 \end_inset
21100
21101  [
21102 \begin_inset Flex Code
21103 status collapsed
21104
21105 \begin_layout Plain Layout
21106 int=1
21107 \end_layout
21108
21109 \end_inset
21110
21111 ] Sets the initial value for the counter, to which it will be reset whenever
21112  that happens.
21113  Normally, one will want the default, 1.
21114 \end_layout
21115
21116 \begin_layout Description
21117 \begin_inset Flex Code
21118 status collapsed
21119
21120 \begin_layout Plain Layout
21121 LabelString
21122 \end_layout
21123
21124 \end_inset
21125
21126  [
21127 \begin_inset Flex Code
21128 status collapsed
21129
21130 \begin_layout Plain Layout
21131 string
21132 \end_layout
21133
21134 \end_inset
21135
21136 =
21137 \begin_inset Quotes erd
21138 \end_inset
21139
21140
21141 \begin_inset Quotes erd
21142 \end_inset
21143
21144 ] When defined, this string defines how the counter is displayed.
21145  Setting this value sets 
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 LabelStringAppendix
21151 \end_layout
21152
21153 \end_inset
21154
21155  to the same value.
21156  The following special constructs can be used in the string:
21157 \end_layout
21158
21159 \begin_deeper
21160 \begin_layout Itemize
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165
21166 \backslash
21167 thecounter
21168 \end_layout
21169
21170 \end_inset
21171
21172  will be replaced by the expansion of the 
21173 \begin_inset Flex Code
21174 status collapsed
21175
21176 \begin_layout Plain Layout
21177 LabelString
21178 \end_layout
21179
21180 \end_inset
21181
21182  (or 
21183 \begin_inset Flex Code
21184 status collapsed
21185
21186 \begin_layout Plain Layout
21187 LabelStringAppendix
21188 \end_layout
21189
21190 \end_inset
21191
21192 ) of the counter 
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197 counter
21198 \end_layout
21199
21200 \end_inset
21201
21202 .
21203  
21204 \end_layout
21205
21206 \begin_layout Itemize
21207 counter values can be expressed using \SpecialChar LaTeX
21208 -like macros
21209 \begin_inset Newline newline
21210 \end_inset
21211
21212
21213 \begin_inset Flex Code
21214 status collapsed
21215
21216 \begin_layout Plain Layout
21217
21218 \backslash
21219
21220 \emph on
21221 numbertype
21222 \emph default
21223 {
21224 \emph on
21225 counter
21226 \emph default
21227 }
21228 \end_layout
21229
21230 \end_inset
21231
21232 , where 
21233 \begin_inset Flex Code
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237
21238 \emph on
21239 numbertype
21240 \end_layout
21241
21242 \end_inset
21243
21244  can be:
21245 \begin_inset Foot
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249
21250 \family roman
21251 \series medium
21252 \shape up
21253 \size normal
21254 \emph off
21255 \bar no
21256 \noun off
21257 \color none
21258 Actually, the situation is a bit more complicated: any
21259 \family default
21260 \series default
21261 \shape default
21262 \emph default
21263 \bar default
21264  
21265 \size default
21266 \emph on
21267 \noun default
21268 \color inherit
21269 numbertype
21270 \family roman
21271 \series medium
21272 \shape up
21273 \size normal
21274 \emph off
21275 \bar no
21276 \noun off
21277  other than those described below will produce arabic numerals.
21278  It would not be surprising to see this change in the future.
21279 \end_layout
21280
21281 \end_inset
21282
21283  
21284 \begin_inset Flex Code
21285 status collapsed
21286
21287 \begin_layout Plain Layout
21288 arabic
21289 \end_layout
21290
21291 \end_inset
21292
21293 : 1, 2, 3,\SpecialChar ldots
21294
21295 \begin_inset Flex Code
21296 status collapsed
21297
21298 \begin_layout Plain Layout
21299 alph
21300 \end_layout
21301
21302 \end_inset
21303
21304  for lower-case letters: a, b, c, \SpecialChar ldots
21305
21306 \begin_inset Flex Code
21307 status collapsed
21308
21309 \begin_layout Plain Layout
21310 Alph
21311 \end_layout
21312
21313 \end_inset
21314
21315  for upper-case letters: A, B, C, \SpecialChar ldots
21316
21317 \begin_inset Flex Code
21318 status collapsed
21319
21320 \begin_layout Plain Layout
21321 roman
21322 \end_layout
21323
21324 \end_inset
21325
21326  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21327
21328 \begin_inset Flex Code
21329 status collapsed
21330
21331 \begin_layout Plain Layout
21332 Roman
21333 \end_layout
21334
21335 \end_inset
21336
21337  for upper-case roman numerals: I, II, III\SpecialChar ldots
21338
21339 \begin_inset Flex Code
21340 status collapsed
21341
21342 \begin_layout Plain Layout
21343 hebrew
21344 \end_layout
21345
21346 \end_inset
21347
21348  for hebrew numerals.
21349 \end_layout
21350
21351 \end_deeper
21352 \begin_layout Standard
21353 If LabelString is not defined, a default value is constructed as follows:
21354  if the counter has a master counter 
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359 master
21360 \end_layout
21361
21362 \end_inset
21363
21364  (defined via 
21365 \begin_inset Flex Code
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 Within
21370 \end_layout
21371
21372 \end_inset
21373
21374 ), the string
21375 \begin_inset Newline newline
21376 \end_inset
21377
21378
21379 \begin_inset Flex Code
21380 status collapsed
21381
21382 \begin_layout Plain Layout
21383
21384 \backslash
21385 themaster.
21386 \backslash
21387 arabic{counter}
21388 \end_layout
21389
21390 \end_inset
21391
21392  is used; otherwise the string 
21393 \begin_inset Flex Code
21394 status collapsed
21395
21396 \begin_layout Plain Layout
21397
21398 \backslash
21399 arabic{counter}
21400 \end_layout
21401
21402 \end_inset
21403
21404  is used.
21405 \end_layout
21406
21407 \begin_layout Description
21408 \begin_inset Flex Code
21409 status collapsed
21410
21411 \begin_layout Plain Layout
21412 LabelStringAppendix
21413 \end_layout
21414
21415 \end_inset
21416
21417  [
21418 \begin_inset Flex Code
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422 string
21423 \end_layout
21424
21425 \end_inset
21426
21427 =
21428 \begin_inset Quotes erd
21429 \end_inset
21430
21431
21432 \begin_inset Quotes erd
21433 \end_inset
21434
21435 ] Same as 
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 LabelString
21441 \end_layout
21442
21443 \end_inset
21444
21445 , but for use in the Appendix.
21446 \end_layout
21447
21448 \begin_layout Description
21449 \begin_inset Flex Code
21450 status collapsed
21451
21452 \begin_layout Plain Layout
21453 PrettyFormat
21454 \end_layout
21455
21456 \end_inset
21457
21458  [
21459 \begin_inset Flex Code
21460 status collapsed
21461
21462 \begin_layout Plain Layout
21463 string
21464 \end_layout
21465
21466 \end_inset
21467
21468 =
21469 \begin_inset Quotes erd
21470 \end_inset
21471
21472
21473 \begin_inset Quotes erd
21474 \end_inset
21475
21476 ] A format for use with formatted references to this counter.
21477  For example, one might want to have references to section numbers appear
21478  as 
21479 \begin_inset Quotes eld
21480 \end_inset
21481
21482 Section 2.4
21483 \begin_inset Quotes erd
21484 \end_inset
21485
21486 .
21487  The string should contain 
21488 \begin_inset Quotes eld
21489 \end_inset
21490
21491 ##
21492 \begin_inset Quotes erd
21493 \end_inset
21494
21495 .
21496  This will be replaced by the counter number itself.
21497  So, for sections, it would be: Section ##.
21498 \end_layout
21499
21500 \begin_layout Description
21501 \begin_inset Flex Code
21502 status collapsed
21503
21504 \begin_layout Plain Layout
21505 Within
21506 \end_layout
21507
21508 \end_inset
21509
21510  [
21511 \begin_inset Flex Code
21512 status collapsed
21513
21514 \begin_layout Plain Layout
21515 string
21516 \end_layout
21517
21518 \end_inset
21519
21520 =
21521 \begin_inset Quotes erd
21522 \end_inset
21523
21524
21525 \begin_inset Quotes erd
21526 \end_inset
21527
21528 ] If this is set to the name of another counter, the present counter will
21529  be reset every time the other one is increased.
21530  For example, 
21531 \begin_inset Flex Code
21532 status collapsed
21533
21534 \begin_layout Plain Layout
21535 subsection
21536 \end_layout
21537
21538 \end_inset
21539
21540  is numbered inside 
21541 \begin_inset Flex Code
21542 status collapsed
21543
21544 \begin_layout Plain Layout
21545 section
21546 \end_layout
21547
21548 \end_inset
21549
21550 .
21551 \end_layout
21552
21553 \begin_layout Subsection
21554 Font description
21555 \begin_inset CommandInset label
21556 LatexCommand label
21557 name "subsec:Font-description"
21558
21559 \end_inset
21560
21561
21562 \end_layout
21563
21564 \begin_layout Standard
21565 A font description looks like this:
21566 \end_layout
21567
21568 \begin_layout LyX-Code
21569 Font 
21570 \family roman
21571 \emph on
21572 or
21573 \family default
21574 \emph default
21575  LabelFont
21576 \emph on
21577  
21578 \family roman
21579 or
21580 \family default
21581 \emph default
21582  DefaultFont
21583 \end_layout
21584
21585 \begin_layout LyX-Code
21586  ...
21587 \end_layout
21588
21589 \begin_layout LyX-Code
21590 EndFont
21591 \end_layout
21592
21593 \begin_layout Standard
21594 The following commands are available:
21595 \end_layout
21596
21597 \begin_layout Description
21598 \begin_inset Flex Code
21599 status collapsed
21600
21601 \begin_layout Plain Layout
21602 Color
21603 \end_layout
21604
21605 \end_inset
21606
21607  [
21608 \begin_inset Flex Code
21609 status collapsed
21610
21611 \begin_layout Plain Layout
21612
21613 \emph on
21614 none
21615 \end_layout
21616
21617 \end_inset
21618
21619
21620 \begin_inset Flex Code
21621 status collapsed
21622
21623 \begin_layout Plain Layout
21624 black
21625 \end_layout
21626
21627 \end_inset
21628
21629
21630 \begin_inset Flex Code
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 white
21635 \end_layout
21636
21637 \end_inset
21638
21639
21640 \begin_inset Flex Code
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644 red
21645 \end_layout
21646
21647 \end_inset
21648
21649
21650 \begin_inset Flex Code
21651 status collapsed
21652
21653 \begin_layout Plain Layout
21654 green
21655 \end_layout
21656
21657 \end_inset
21658
21659
21660 \begin_inset Flex Code
21661 status collapsed
21662
21663 \begin_layout Plain Layout
21664 blue
21665 \end_layout
21666
21667 \end_inset
21668
21669
21670 \begin_inset Flex Code
21671 status collapsed
21672
21673 \begin_layout Plain Layout
21674 cyan
21675 \end_layout
21676
21677 \end_inset
21678
21679
21680 \begin_inset Flex Code
21681 status collapsed
21682
21683 \begin_layout Plain Layout
21684 magenta
21685 \end_layout
21686
21687 \end_inset
21688
21689
21690 \begin_inset Flex Code
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694 yellow
21695 \end_layout
21696
21697 \end_inset
21698
21699
21700 \begin_inset Flex Code
21701 status collapsed
21702
21703 \begin_layout Plain Layout
21704 brown
21705 \end_layout
21706
21707 \end_inset
21708
21709
21710 \begin_inset Flex Code
21711 status collapsed
21712
21713 \begin_layout Plain Layout
21714 darkgray
21715 \end_layout
21716
21717 \end_inset
21718
21719
21720 \begin_inset Flex Code
21721 status collapsed
21722
21723 \begin_layout Plain Layout
21724 gray
21725 \end_layout
21726
21727 \end_inset
21728
21729
21730 \begin_inset Flex Code
21731 status collapsed
21732
21733 \begin_layout Plain Layout
21734 lightgray
21735 \end_layout
21736
21737 \end_inset
21738
21739
21740 \begin_inset Flex Code
21741 status collapsed
21742
21743 \begin_layout Plain Layout
21744 lime
21745 \end_layout
21746
21747 \end_inset
21748
21749
21750 \begin_inset Flex Code
21751 status collapsed
21752
21753 \begin_layout Plain Layout
21754 orange
21755 \end_layout
21756
21757 \end_inset
21758
21759
21760 \begin_inset Flex Code
21761 status collapsed
21762
21763 \begin_layout Plain Layout
21764 olive
21765 \end_layout
21766
21767 \end_inset
21768
21769
21770 \begin_inset Flex Code
21771 status collapsed
21772
21773 \begin_layout Plain Layout
21774 pink
21775 \end_layout
21776
21777 \end_inset
21778
21779
21780 \begin_inset Flex Code
21781 status collapsed
21782
21783 \begin_layout Plain Layout
21784 purple
21785 \end_layout
21786
21787 \end_inset
21788
21789
21790 \begin_inset Flex Code
21791 status collapsed
21792
21793 \begin_layout Plain Layout
21794 teal
21795 \end_layout
21796
21797 \end_inset
21798
21799
21800 \begin_inset Flex Code
21801 status collapsed
21802
21803 \begin_layout Plain Layout
21804 violet
21805 \end_layout
21806
21807 \end_inset
21808
21809 ]
21810 \end_layout
21811
21812 \begin_layout Description
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 Family
21818 \end_layout
21819
21820 \end_inset
21821
21822  [
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827
21828 \emph on
21829 Roman
21830 \end_layout
21831
21832 \end_inset
21833
21834
21835 \begin_inset Flex Code
21836 status collapsed
21837
21838 \begin_layout Plain Layout
21839 Sans
21840 \end_layout
21841
21842 \end_inset
21843
21844
21845 \begin_inset Flex Code
21846 status collapsed
21847
21848 \begin_layout Plain Layout
21849 Typewriter
21850 \end_layout
21851
21852 \end_inset
21853
21854 ]
21855 \end_layout
21856
21857 \begin_layout Description
21858 \begin_inset Flex Code
21859 status collapsed
21860
21861 \begin_layout Plain Layout
21862 Misc
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 ] Valid arguments are: 
21878 \begin_inset Flex Code
21879 status collapsed
21880
21881 \begin_layout Plain Layout
21882 emph
21883 \end_layout
21884
21885 \end_inset
21886
21887
21888 \begin_inset Flex Code
21889 status collapsed
21890
21891 \begin_layout Plain Layout
21892 noun
21893 \end_layout
21894
21895 \end_inset
21896
21897
21898 \begin_inset Flex Code
21899 status collapsed
21900
21901 \begin_layout Plain Layout
21902 strikeout
21903 \end_layout
21904
21905 \end_inset
21906
21907
21908 \begin_inset Flex Code
21909 status collapsed
21910
21911 \begin_layout Plain Layout
21912 underbar
21913 \end_layout
21914
21915 \end_inset
21916
21917
21918 \begin_inset Flex Code
21919 status collapsed
21920
21921 \begin_layout Plain Layout
21922 uuline
21923 \end_layout
21924
21925 \end_inset
21926
21927
21928 \begin_inset Flex Code
21929 status collapsed
21930
21931 \begin_layout Plain Layout
21932 uwave
21933 \end_layout
21934
21935 \end_inset
21936
21937
21938 \begin_inset Flex Code
21939 status collapsed
21940
21941 \begin_layout Plain Layout
21942 no_emph
21943 \end_layout
21944
21945 \end_inset
21946
21947
21948 \begin_inset Flex Code
21949 status collapsed
21950
21951 \begin_layout Plain Layout
21952 no_noun
21953 \end_layout
21954
21955 \end_inset
21956
21957
21958 \begin_inset Flex Code
21959 status collapsed
21960
21961 \begin_layout Plain Layout
21962 no_strikeout
21963 \end_layout
21964
21965 \end_inset
21966
21967
21968 \begin_inset Flex Code
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972 no_bar
21973 \end_layout
21974
21975 \end_inset
21976
21977
21978 \begin_inset Flex Code
21979 status collapsed
21980
21981 \begin_layout Plain Layout
21982 no_uuline
21983 \end_layout
21984
21985 \end_inset
21986
21987  and 
21988 \begin_inset Flex Code
21989 status collapsed
21990
21991 \begin_layout Plain Layout
21992 no_uwave
21993 \end_layout
21994
21995 \end_inset
21996
21997 .
21998  Each of these turns on or off the corresponding attribute.
21999  For example, 
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004 emph
22005 \end_layout
22006
22007 \end_inset
22008
22009  turns on emphasis, and 
22010 \begin_inset Flex Code
22011 status collapsed
22012
22013 \begin_layout Plain Layout
22014 no_emph
22015 \end_layout
22016
22017 \end_inset
22018
22019  turns it off.
22020  
22021 \begin_inset Newline newline
22022 \end_inset
22023
22024 If the latter seems puzzling, remember that the font settings for the present
22025  context are generally inherited from the surrounding context.
22026  So 
22027 \begin_inset Flex Code
22028 status collapsed
22029
22030 \begin_layout Plain Layout
22031 no_emph
22032 \end_layout
22033
22034 \end_inset
22035
22036  would turn off the emphasis that was anyway in effect, say, in a theorem
22037  environment.
22038 \end_layout
22039
22040 \begin_layout Description
22041 \begin_inset Flex Code
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045 Series
22046 \end_layout
22047
22048 \end_inset
22049
22050  [
22051 \begin_inset Flex Code
22052 status collapsed
22053
22054 \begin_layout Plain Layout
22055
22056 \emph on
22057 Medium
22058 \end_layout
22059
22060 \end_inset
22061
22062
22063 \begin_inset Flex Code
22064 status collapsed
22065
22066 \begin_layout Plain Layout
22067 Bold
22068 \end_layout
22069
22070 \end_inset
22071
22072
22073 \end_layout
22074
22075 \begin_layout Description
22076 \begin_inset Flex Code
22077 status collapsed
22078
22079 \begin_layout Plain Layout
22080 Shape
22081 \end_layout
22082
22083 \end_inset
22084
22085  [
22086 \begin_inset Flex Code
22087 status collapsed
22088
22089 \begin_layout Plain Layout
22090
22091 \emph on
22092 Up
22093 \end_layout
22094
22095 \end_inset
22096
22097
22098 \begin_inset Flex Code
22099 status collapsed
22100
22101 \begin_layout Plain Layout
22102 Italic
22103 \end_layout
22104
22105 \end_inset
22106
22107
22108 \begin_inset Flex Code
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112 SmallCaps
22113 \end_layout
22114
22115 \end_inset
22116
22117
22118 \begin_inset Flex Code
22119 status collapsed
22120
22121 \begin_layout Plain Layout
22122 Slanted
22123 \end_layout
22124
22125 \end_inset
22126
22127
22128 \end_layout
22129
22130 \begin_layout Description
22131 \begin_inset Flex Code
22132 status collapsed
22133
22134 \begin_layout Plain Layout
22135 Size
22136 \end_layout
22137
22138 \end_inset
22139
22140  [
22141 \begin_inset Flex Code
22142 status collapsed
22143
22144 \begin_layout Plain Layout
22145 tiny
22146 \end_layout
22147
22148 \end_inset
22149
22150
22151 \begin_inset Flex Code
22152 status collapsed
22153
22154 \begin_layout Plain Layout
22155 small
22156 \end_layout
22157
22158 \end_inset
22159
22160
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165
22166 \emph on
22167 normal
22168 \end_layout
22169
22170 \end_inset
22171
22172
22173 \begin_inset Flex Code
22174 status collapsed
22175
22176 \begin_layout Plain Layout
22177 large
22178 \end_layout
22179
22180 \end_inset
22181
22182
22183 \begin_inset Flex Code
22184 status collapsed
22185
22186 \begin_layout Plain Layout
22187 larger
22188 \end_layout
22189
22190 \end_inset
22191
22192
22193 \begin_inset Flex Code
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197 largest
22198 \end_layout
22199
22200 \end_inset
22201
22202
22203 \begin_inset Flex Code
22204 status collapsed
22205
22206 \begin_layout Plain Layout
22207 huge
22208 \end_layout
22209
22210 \end_inset
22211
22212
22213 \begin_inset Flex Code
22214 status collapsed
22215
22216 \begin_layout Plain Layout
22217 giant
22218 \end_layout
22219
22220 \end_inset
22221
22222 ]
22223 \end_layout
22224
22225 \begin_layout Subsection
22226 \begin_inset CommandInset label
22227 LatexCommand label
22228 name "subsec:Citation-engine-description"
22229
22230 \end_inset
22231
22232 Cite engine description
22233 \end_layout
22234
22235 \begin_layout Standard
22236 The 
22237 \begin_inset Flex Code
22238 status collapsed
22239
22240 \begin_layout Plain Layout
22241 CiteEngine
22242 \end_layout
22243
22244 \end_inset
22245
22246  blocks, as used mainly in cite engine files (see 
22247 \begin_inset CommandInset ref
22248 LatexCommand ref
22249 reference "subsec:Cite-Engine-Files"
22250 plural "false"
22251 caps "false"
22252 noprefix "false"
22253
22254 \end_inset
22255
22256 ), define the citation commands provided by a specific 
22257 \begin_inset Quotes eld
22258 \end_inset
22259
22260 cite engine
22261 \begin_inset Quotes erd
22262 \end_inset
22263
22264 .
22265  A cite engine, in \SpecialChar LyX
22266  terms, is way specific way to format citations, using
22267  numbers, author names and/or years.
22268  Currently, \SpecialChar LyX
22269  supports three such engine types, namely:
22270 \end_layout
22271
22272 \begin_layout Enumerate
22273 \begin_inset Flex Code
22274 status collapsed
22275
22276 \begin_layout Plain Layout
22277 default
22278 \end_layout
22279
22280 \end_inset
22281
22282 : the default Bib\SpecialChar TeX
22283  way to format citations, a simple numeric style (e.
22284 \begin_inset space \thinspace{}
22285 \end_inset
22286
22287 g., 
22288 \begin_inset Quotes eld
22289 \end_inset
22290
22291 [1]
22292 \begin_inset Quotes erd
22293 \end_inset
22294
22295 )
22296 \end_layout
22297
22298 \begin_layout Enumerate
22299 \begin_inset Flex Code
22300 status collapsed
22301
22302 \begin_layout Plain Layout
22303 authoryear
22304 \end_layout
22305
22306 \end_inset
22307
22308 : Harvard-styled citations using author names and publication year (e.
22309 \begin_inset space \thinspace{}
22310 \end_inset
22311
22312 g., 
22313 \begin_inset Quotes eld
22314 \end_inset
22315
22316 Smith and Miller (2017b)
22317 \begin_inset Quotes erd
22318 \end_inset
22319
22320 )
22321 \end_layout
22322
22323 \begin_layout Enumerate
22324 \begin_inset Flex Code
22325 status collapsed
22326
22327 \begin_layout Plain Layout
22328 numerical
22329 \end_layout
22330
22331 \end_inset
22332
22333 : extended numerical citations that also allow for author or title next
22334  to the number (e.
22335 \begin_inset space \thinspace{}
22336 \end_inset
22337
22338 g., 
22339 \begin_inset Quotes eld
22340 \end_inset
22341
22342 Smith and Miller [1]
22343 \begin_inset Quotes erd
22344 \end_inset
22345
22346 )
22347 \end_layout
22348
22349 \begin_layout Standard
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 CiteEngine
22355 \end_layout
22356
22357 \end_inset
22358
22359  blocks look like this:
22360 \end_layout
22361
22362 \begin_layout LyX-Code
22363 CiteEngine default
22364 \end_layout
22365
22366 \begin_layout LyX-Code
22367  cite
22368 \end_layout
22369
22370 \begin_layout LyX-Code
22371  Citep*[][]
22372 \end_layout
22373
22374 \begin_layout LyX-Code
22375  citeyearpar[][]=parencite*
22376 \end_layout
22377
22378 \begin_layout LyX-Code
22379  ...
22380 \end_layout
22381
22382 \begin_layout LyX-Code
22383 End
22384 \end_layout
22385
22386 \begin_layout Standard
22387 The tag following 
22388 \begin_inset Flex Code
22389 status collapsed
22390
22391 \begin_layout Plain Layout
22392 CiteEngine
22393 \end_layout
22394
22395 \end_inset
22396
22397  denotes the engine.
22398  The individual lines respectively define a cite command or cite command
22399  paradigm supported by this engine.
22400  The line can be as simple as a cite command that is used both to name the
22401  respective \SpecialChar LyX
22402  command and the \SpecialChar LaTeX
22403  output or more complex in order to differentiate
22404  things.
22405  The full syntax is:
22406 \end_layout
22407
22408 \begin_layout LyX-Code
22409 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22410 \end_layout
22411
22412 \begin_layout Itemize
22413 \begin_inset Flex Code
22414 status collapsed
22415
22416 \begin_layout Plain Layout
22417 LyXName
22418 \end_layout
22419
22420 \end_inset
22421
22422 : The name as used in the 
22423 \begin_inset Flex Code
22424 status collapsed
22425
22426 \begin_layout Plain Layout
22427 *.lyx
22428 \end_layout
22429
22430 \end_inset
22431
22432  file.
22433 \end_layout
22434
22435 \begin_deeper
22436 \begin_layout Standard
22437 For portability reasons, we try to use the same name for same-formatted
22438  commands in different cite packages (thus many names stem from natbib,
22439  and thus we need to differentiate a 
22440 \begin_inset Flex Code
22441 status collapsed
22442
22443 \begin_layout Plain Layout
22444 latexcmd
22445 \end_layout
22446
22447 \end_inset
22448
22449  sometimes, if the \SpecialChar LaTeX
22450  command names differ).
22451 \end_layout
22452
22453 \end_deeper
22454 \begin_layout Itemize
22455 \begin_inset Flex Code
22456 status collapsed
22457
22458 \begin_layout Plain Layout
22459 alias
22460 \end_layout
22461
22462 \end_inset
22463
22464 : a (comma-separated) list of commands that fall back to the given 
22465 \begin_inset Flex Code
22466 status collapsed
22467
22468 \begin_layout Plain Layout
22469 LyXName
22470 \end_layout
22471
22472 \end_inset
22473
22474  in the current engine.
22475  This eases the switch of citation packages and engines.
22476  The 
22477 \begin_inset Flex Code
22478 status collapsed
22479
22480 \begin_layout Plain Layout
22481 alias
22482 \end_layout
22483
22484 \end_inset
22485
22486  can be compared to 
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491 ObsoletedBy
22492 \end_layout
22493
22494 \end_inset
22495
22496  in layout definitions.
22497 \end_layout
22498
22499 \begin_layout Itemize
22500 \begin_inset Flex Code
22501 status collapsed
22502
22503 \begin_layout Plain Layout
22504 latexcmd
22505 \end_layout
22506
22507 \end_inset
22508
22509 : The actual \SpecialChar LaTeX
22510  command that is output.
22511  
22512 \end_layout
22513
22514 \begin_layout Standard
22515 \begin_inset Flex Code
22516 status collapsed
22517
22518 \begin_layout Plain Layout
22519 Alias
22520 \end_layout
22521
22522 \end_inset
22523
22524  and 
22525 \begin_inset Flex Code
22526 status collapsed
22527
22528 \begin_layout Plain Layout
22529 latexcmd
22530 \end_layout
22531
22532 \end_inset
22533
22534  are optional.
22535  If no 
22536 \begin_inset Flex Code
22537 status collapsed
22538
22539 \begin_layout Plain Layout
22540 latexcmd
22541 \end_layout
22542
22543 \end_inset
22544
22545  is given, the 
22546 \begin_inset Flex Code
22547 status collapsed
22548
22549 \begin_layout Plain Layout
22550 LyXName
22551 \end_layout
22552
22553 \end_inset
22554
22555  will be output to \SpecialChar LaTeX
22556 .
22557 \end_layout
22558
22559 \begin_layout Standard
22560 Note further:
22561 \end_layout
22562
22563 \begin_layout Itemize
22564 Capitalization indicates that the command also has a capitalized form (
22565 \begin_inset Flex Code
22566 status collapsed
22567
22568 \begin_layout Plain Layout
22569
22570 \backslash
22571 Latexcmd
22572 \end_layout
22573
22574 \end_inset
22575
22576  vs.
22577  
22578 \begin_inset Flex Code
22579 status collapsed
22580
22581 \begin_layout Plain Layout
22582
22583 \backslash
22584 latexcmd
22585 \end_layout
22586
22587 \end_inset
22588
22589 ).
22590  These usually enforce up-casing of name prefixes (
22591 \emph on
22592 von Goethe
22593 \emph default
22594  
22595 \begin_inset Formula $\Rightarrow$
22596 \end_inset
22597
22598  
22599 \emph on
22600 Von Goethe
22601 \emph default
22602 ).
22603 \end_layout
22604
22605 \begin_layout Itemize
22606 Brackets 
22607 \begin_inset Flex Code
22608 status collapsed
22609
22610 \begin_layout Plain Layout
22611 []
22612 \end_layout
22613
22614 \end_inset
22615
22616  indicate the number of optional arguments (there can be 0–2).
22617 \end_layout
22618
22619 \begin_layout Itemize
22620 A star 
22621 \begin_inset Flex Code
22622 status collapsed
22623
22624 \begin_layout Plain Layout
22625 *
22626 \end_layout
22627
22628 \end_inset
22629
22630  indicates there is a starred version of the command (
22631 \begin_inset Flex Code
22632 status collapsed
22633
22634 \begin_layout Plain Layout
22635
22636 \backslash
22637 latexcmd*
22638 \end_layout
22639
22640 \end_inset
22641
22642  vs.
22643  
22644 \begin_inset Flex Code
22645 status collapsed
22646
22647 \begin_layout Plain Layout
22648
22649 \backslash
22650 latexcmd
22651 \end_layout
22652
22653 \end_inset
22654
22655 ).
22656  
22657 \end_layout
22658
22659 \begin_deeper
22660 \begin_layout Standard
22661 By default, the starred version means: Output all authors even if it should
22662  be shortened with 
22663 \begin_inset Quotes eld
22664 \end_inset
22665
22666 et al.
22667 \begin_inset Quotes erd
22668 \end_inset
22669
22670  due to the 
22671 \begin_inset Flex Code
22672 status collapsed
22673
22674 \begin_layout Plain Layout
22675 MaxCiteNames
22676 \end_layout
22677
22678 \end_inset
22679
22680  threshold.
22681 \end_layout
22682
22683 \begin_layout Standard
22684 If the star has a different meaning for a given command, it can be specified
22685  in angle brackets: 
22686 \begin_inset Flex Code
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690 <!_stardesc!_stardesctooltip>
22691 \end_layout
22692
22693 \end_inset
22694
22695 .
22696  Maximal two translatable macro keywords, marked by the prefix 
22697 \begin_inset Flex Code
22698 status collapsed
22699
22700 \begin_layout Plain Layout
22701 !_
22702 \end_layout
22703
22704 \end_inset
22705
22706 , can be given.
22707  The first points to the string that replaces the 
22708 \begin_inset Quotes eld
22709 \end_inset
22710
22711 Full aut&hor list
22712 \begin_inset Quotes erd
22713 \end_inset
22714
22715  checkbox label in the citation dialog, the second one to an optional tool
22716  tip for this checkbox.
22717  
22718 \end_layout
22719
22720 \begin_layout Standard
22721 Note that these two macros have to be defined in a 
22722 \begin_inset Flex Code
22723 status collapsed
22724
22725 \begin_layout Plain Layout
22726 CiteFormat
22727 \end_layout
22728
22729 \end_inset
22730
22731  (see next section), dropping the 
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736 !
22737 \end_layout
22738
22739 \end_inset
22740
22741  from the prefix, like this: 
22742 \end_layout
22743
22744 \begin_layout LyX-Code
22745 _stardesc Sta&rred command label
22746 \end_layout
22747
22748 \begin_layout LyX-Code
22749 _stardesctooltip Tooltip for the starred command checkbox.
22750 \end_layout
22751
22752 \end_deeper
22753 \begin_layout Itemize
22754 A dollar sign 
22755 \begin_inset Flex Code
22756 status collapsed
22757
22758 \begin_layout Plain Layout
22759 $
22760 \end_layout
22761
22762 \end_inset
22763
22764  indicates that this command features 
22765 \begin_inset Quotes eld
22766 \end_inset
22767
22768 qualified citation lists
22769 \begin_inset Quotes erd
22770 \end_inset
22771
22772 .
22773  This is a 
22774 \family sans
22775 Biblatex
22776 \family default
22777 -specific feature for multi-reference citations where an individual pre-
22778  and postnote can be given to each reference in the list.
22779  Please refer to the 
22780 \family sans
22781 Biblatex
22782 \family default
22783  manual for details.
22784 \change_inserted -712698321 1526898670
22785
22786 \end_layout
22787
22788 \begin_layout Standard
22789
22790 \change_inserted -712698321 1526899524
22791 If you want to add a cite command to a cite engine (e.
22792 \begin_inset space \thinspace{}
22793 \end_inset
22794
22795 g., add a specific command provided by a class), you can use 
22796 \begin_inset Flex Code
22797 status collapsed
22798
22799 \begin_layout Plain Layout
22800
22801 \change_inserted -712698321 1526898768
22802 AddToCiteEngine <engine type> \SpecialChar ldots
22803  End
22804 \change_unchanged
22805
22806 \end_layout
22807
22808 \end_inset
22809
22810 .
22811  Note that only cite commands that do not exist yet are added.
22812 \change_unchanged
22813
22814 \end_layout
22815
22816 \begin_layout Subsection
22817 \begin_inset CommandInset label
22818 LatexCommand label
22819 name "subsec:Citation-format-description"
22820
22821 \end_inset
22822
22823 Cite format description
22824 \end_layout
22825
22826 \begin_layout Standard
22827 The 
22828 \begin_inset Flex Code
22829 status collapsed
22830
22831 \begin_layout Plain Layout
22832 CiteFormat
22833 \end_layout
22834
22835 \end_inset
22836
22837  blocks are used to describe how bibliographic information should be displayed,
22838  both within \SpecialChar LyX
22839  itself (in the citation dialog and in tooltips, for example)
22840  and in XHTML output.
22841  Such a block might look like this:
22842 \end_layout
22843
22844 \begin_layout LyX-Code
22845 CiteFormat
22846 \end_layout
22847
22848 \begin_layout LyX-Code
22849  article ...
22850 \end_layout
22851
22852 \begin_layout LyX-Code
22853  book ...
22854 \end_layout
22855
22856 \begin_layout LyX-Code
22857 End
22858 \end_layout
22859
22860 \begin_layout Standard
22861 or
22862 \end_layout
22863
22864 \begin_layout LyX-Code
22865 CiteFormat
22866 \end_layout
22867
22868 \begin_layout LyX-Code
22869  cite ...
22870 \end_layout
22871
22872 \begin_layout LyX-Code
22873  citet*[][] ...
22874 \end_layout
22875
22876 \begin_layout LyX-Code
22877 End
22878 \end_layout
22879
22880 \begin_layout Standard
22881 In the first case, the individual lines define how the bibliographic information
22882  associated with an article or book, respectively, is to be displayed, and
22883  such a definition can be given for any 
22884 \begin_inset Quotes els
22885 \end_inset
22886
22887 entry type
22888 \begin_inset Quotes ers
22889 \end_inset
22890
22891  that might be present in a Bib\SpecialChar TeX
22892  file.
22893  \SpecialChar LyX
22894  defines a default format in the source code that will be used if no specific
22895  definition has been given.
22896  \SpecialChar LyX
22897  predefines several formats in the file 
22898 \begin_inset Flex Code
22899 status collapsed
22900
22901 \begin_layout Plain Layout
22902 stdciteformats.inc
22903 \end_layout
22904
22905 \end_inset
22906
22907 , which is included in most of \SpecialChar LyX
22908 's document classes.
22909 \end_layout
22910
22911 \begin_layout Standard
22912 In the second case, the lines define how a specific citation command (in
22913  the example 
22914 \begin_inset Flex Code
22915 status collapsed
22916
22917 \begin_layout Plain Layout
22918
22919 \backslash
22920 cite
22921 \end_layout
22922
22923 \end_inset
22924
22925
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930
22931 \backslash
22932 citet
22933 \end_layout
22934
22935 \end_inset
22936
22937 ) is to be displayed on the citation inset label, in the citation dialog,
22938  menu or XHTML output.
22939  \SpecialChar LyX
22940  defines such formats for the citation style variants it supports via 
22941 \family sans
22942 Document\SpecialChar menuseparator
22943 Setting\SpecialChar menuseparator
22944 Bibliography\SpecialChar ldots
22945
22946 \family default
22947  in specific 
22948 \begin_inset Flex Code
22949 status collapsed
22950
22951 \begin_layout Plain Layout
22952 *.citeengine
22953 \end_layout
22954
22955 \end_inset
22956
22957  files that are shipped with \SpecialChar LyX
22958  (see 
22959 \begin_inset CommandInset ref
22960 LatexCommand ref
22961 reference "subsec:Cite-Engine-Files"
22962 plural "false"
22963 caps "false"
22964 noprefix "false"
22965
22966 \end_inset
22967
22968 ).
22969 \end_layout
22970
22971 \begin_layout Standard
22972 The definitions use a simple language that allows Bib\SpecialChar TeX
22973  keys to be replaced
22974  with their values.
22975  Keys should be enclosed in 
22976 \begin_inset Flex Code
22977 status collapsed
22978
22979 \begin_layout Plain Layout
22980 %
22981 \end_layout
22982
22983 \end_inset
22984
22985  signs, e.g.: 
22986 \begin_inset Flex Code
22987 status collapsed
22988
22989 \begin_layout Plain Layout
22990 %author%
22991 \end_layout
22992
22993 \end_inset
22994
22995 .
22996  So a simple definition might look like this:
22997 \end_layout
22998
22999 \begin_layout LyX-Code
23000 misc %author%, 
23001 \begin_inset Quotes eld
23002 \end_inset
23003
23004 %title%
23005 \begin_inset Quotes erd
23006 \end_inset
23007
23008 .
23009 \end_layout
23010
23011 \begin_layout Standard
23012 This would print the author, followed by a comma, followed by the title,
23013  in quotes, followed by a period.
23014 \end_layout
23015
23016 \begin_layout Standard
23017 Of course, sometimes you may want to print a key only if it exists.
23018  This can be done by using a conditional construction, such as: 
23019 \begin_inset Flex Code
23020 status collapsed
23021
23022 \begin_layout Plain Layout
23023 {%volume%[[vol.
23024 \begin_inset space ~
23025 \end_inset
23026
23027 %volume%]]}
23028 \end_layout
23029
23030 \end_inset
23031
23032 .
23033  This says: If the 
23034 \begin_inset Flex Code
23035 status collapsed
23036
23037 \begin_layout Plain Layout
23038 volume
23039 \end_layout
23040
23041 \end_inset
23042
23043  key exists, then print 
23044 \begin_inset Quotes eld
23045 \end_inset
23046
23047 vol.
23048 \begin_inset space ~
23049 \end_inset
23050
23051
23052 \begin_inset Quotes erd
23053 \end_inset
23054
23055  followed by the volume key.
23056  It is also possible to have an else clause in the conditional, such as:
23057 \begin_inset Newline newline
23058 \end_inset
23059
23060
23061 \begin_inset Flex Code
23062 status collapsed
23063
23064 \begin_layout Plain Layout
23065 {%author%[[%author%]][[%editor%, ed.]]}
23066 \end_layout
23067
23068 \end_inset
23069
23070 .
23071 \begin_inset Newline newline
23072 \end_inset
23073
23074 Here, the 
23075 \begin_inset Flex Code
23076 status collapsed
23077
23078 \begin_layout Plain Layout
23079 author
23080 \end_layout
23081
23082 \end_inset
23083
23084  key is printed if it exists; otherwise, the editor key is printed, followed
23085  by 
23086 \begin_inset Quotes eld
23087 \end_inset
23088
23089 ,
23090 \begin_inset space ~
23091 \end_inset
23092
23093 ed.
23094 \begin_inset Quotes erd
23095 \end_inset
23096
23097  Note that the key is again enclosed in 
23098 \begin_inset Flex Code
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102 %
23103 \end_layout
23104
23105 \end_inset
23106
23107  signs; the entire conditional is enclosed in braces; and the if and else
23108  clauses are enclosed in double brackets, 
23109 \begin_inset Quotes eld
23110 \end_inset
23111
23112
23113 \begin_inset Flex Code
23114 status collapsed
23115
23116 \begin_layout Plain Layout
23117 [[
23118 \end_layout
23119
23120 \end_inset
23121
23122
23123 \begin_inset Quotes eld
23124 \end_inset
23125
23126  and 
23127 \begin_inset Quotes eld
23128 \end_inset
23129
23130
23131 \begin_inset Flex Code
23132 status collapsed
23133
23134 \begin_layout Plain Layout
23135 ]]
23136 \end_layout
23137
23138 \end_inset
23139
23140
23141 \begin_inset Quotes erd
23142 \end_inset
23143
23144 .
23145  There must be no space between any of these.
23146 \end_layout
23147
23148 \begin_layout Standard
23149 Next to the entry keys, there are some special keys that can be used for
23150  these conditionals:
23151 \end_layout
23152
23153 \begin_layout Itemize
23154 \begin_inset Flex Code
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158 {%dialog%[[true]][[false]]}
23159 \end_layout
23160
23161 \end_inset
23162
23163 : process the 
23164 \begin_inset Quotes eld
23165 \end_inset
23166
23167 true
23168 \begin_inset Quotes erd
23169 \end_inset
23170
23171  part for dialogs and menus, the 
23172 \begin_inset Quotes eld
23173 \end_inset
23174
23175 false
23176 \begin_inset Quotes erd
23177 \end_inset
23178
23179  part for other contexts (workarea, export)
23180 \end_layout
23181
23182 \begin_layout Itemize
23183 \begin_inset Flex Code
23184 status collapsed
23185
23186 \begin_layout Plain Layout
23187 {%export%[[true]][[false]]}
23188 \end_layout
23189
23190 \end_inset
23191
23192 : process the 
23193 \begin_inset Quotes eld
23194 \end_inset
23195
23196 true
23197 \begin_inset Quotes erd
23198 \end_inset
23199
23200  part for export and menus, the 
23201 \begin_inset Quotes eld
23202 \end_inset
23203
23204 false
23205 \begin_inset Quotes erd
23206 \end_inset
23207
23208  part for other contexts (workarea, dialog)
23209 \end_layout
23210
23211 \begin_layout Itemize
23212 \begin_inset Flex Code
23213 status collapsed
23214
23215 \begin_layout Plain Layout
23216 {%next%[[true]]}
23217 \end_layout
23218
23219 \end_inset
23220
23221 : process the 
23222 \begin_inset Quotes eld
23223 \end_inset
23224
23225 true
23226 \begin_inset Quotes erd
23227 \end_inset
23228
23229  part if another item follows (e.
23230 \begin_inset space \thinspace{}
23231 \end_inset
23232
23233 g., in a citation with multiple keys)
23234 \end_layout
23235
23236 \begin_layout Itemize
23237 \begin_inset Flex Code
23238 status collapsed
23239
23240 \begin_layout Plain Layout
23241 {%second%[[true]][[false]]}
23242 \end_layout
23243
23244 \end_inset
23245
23246 : process the 
23247 \begin_inset Quotes eld
23248 \end_inset
23249
23250 true
23251 \begin_inset Quotes erd
23252 \end_inset
23253
23254  if this is the second of multiple items, else the 
23255 \begin_inset Quotes eld
23256 \end_inset
23257
23258 false
23259 \begin_inset Quotes erd
23260 \end_inset
23261
23262  part
23263 \end_layout
23264
23265 \begin_layout Itemize
23266 \begin_inset Flex Code
23267 status collapsed
23268
23269 \begin_layout Plain Layout
23270 {%ifstar%[[true]][[false]]}
23271 \end_layout
23272
23273 \end_inset
23274
23275 : process the 
23276 \begin_inset Quotes eld
23277 \end_inset
23278
23279 true
23280 \begin_inset Quotes erd
23281 \end_inset
23282
23283  part for starred citation commands (such as 
23284 \begin_inset Flex Code
23285 status collapsed
23286
23287 \begin_layout Plain Layout
23288
23289 \backslash
23290 cite*
23291 \end_layout
23292
23293 \end_inset
23294
23295 ), the false part for unstarred
23296 \end_layout
23297
23298 \begin_layout Itemize
23299 \begin_inset Flex Code
23300 status collapsed
23301
23302 \begin_layout Plain Layout
23303 {%ifentrytype:<type>%[[true]][[false]]}
23304 \end_layout
23305
23306 \end_inset
23307
23308 : process the 
23309 \begin_inset Quotes eld
23310 \end_inset
23311
23312 true
23313 \begin_inset Quotes erd
23314 \end_inset
23315
23316  if the current entry type matches 
23317 \begin_inset Flex Code
23318 status collapsed
23319
23320 \begin_layout Plain Layout
23321 <type>
23322 \end_layout
23323
23324 \end_inset
23325
23326 , else the false part (e.g., in a citation definition: 
23327 \begin_inset Flex Code
23328 status collapsed
23329
23330 \begin_layout Plain Layout
23331 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23332 \end_layout
23333
23334 \end_inset
23335
23336 )
23337 \end_layout
23338
23339 \begin_layout Itemize
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344 {%ifmultiple:<authortype>%[[true]][[false]]}
23345 \end_layout
23346
23347 \end_inset
23348
23349 : process the 
23350 \begin_inset Quotes eld
23351 \end_inset
23352
23353 true
23354 \begin_inset Quotes erd
23355 \end_inset
23356
23357  if the current author type (author, editor etc.) has multiple authors, else
23358  the false part (e.g., in a bibliography definition: 
23359 \begin_inset Flex Code
23360 status collapsed
23361
23362 \begin_layout Plain Layout
23363 {%ifmultiple:editor%[[eds.]][[ed.]]}
23364 \end_layout
23365
23366 \end_inset
23367
23368 )
23369 \end_layout
23370
23371 \begin_layout Itemize
23372 \begin_inset Flex Code
23373 status collapsed
23374
23375 \begin_layout Plain Layout
23376 {%ifqualified%[[true]][[false]]}
23377 \end_layout
23378
23379 \end_inset
23380
23381 : process the 
23382 \begin_inset Quotes eld
23383 \end_inset
23384
23385 true
23386 \begin_inset Quotes erd
23387 \end_inset
23388
23389  part if the current citation is a qualified citation list (a specific 
23390 \family sans
23391 Biblatex
23392 \family default
23393  format for multi-reference citations), the false part if this is not the
23394  case.
23395 \end_layout
23396
23397 \begin_layout Standard
23398 We said that 
23399 \begin_inset Flex Code
23400 status collapsed
23401
23402 \begin_layout Plain Layout
23403 %author%
23404 \end_layout
23405
23406 \end_inset
23407
23408  prints the author key as it is recorded in the bibliography file.
23409  This might not be what you want, since it will result in a string such
23410  as 
23411 \begin_inset Quotes eld
23412 \end_inset
23413
23414 Miller, Peter and Smith, Mary and White, Jane
23415 \begin_inset Quotes erd
23416 \end_inset
23417
23418  (since 
23419 \begin_inset Quotes eld
23420 \end_inset
23421
23422 and
23423 \begin_inset Quotes erd
23424 \end_inset
23425
23426  is used by Bib\SpecialChar TeX
23427  to delimit authors).
23428  \SpecialChar LyX
23429  therefore provides some methods to get properly formatted name lists (which
23430  will also get translated).
23431  The following keys are provided:
23432 \end_layout
23433
23434 \begin_layout Enumerate
23435 For name lists with pre- and surname, suitable for the main authors/editors
23436  of a bibliography item.
23437  The 
23438 \begin_inset Flex Code
23439 status collapsed
23440
23441 \begin_layout Plain Layout
23442 <nametype>
23443 \end_layout
23444
23445 \end_inset
23446
23447  part denotes the kind of list that is requested (e.g.
23448  
23449 \begin_inset Flex Code
23450 status collapsed
23451
23452 \begin_layout Plain Layout
23453 <nametype:author>
23454 \end_layout
23455
23456 \end_inset
23457
23458 ):
23459 \end_layout
23460
23461 \begin_deeper
23462 \begin_layout Itemize
23463 \begin_inset Flex Code
23464 status collapsed
23465
23466 \begin_layout Plain Layout
23467 %abbrvnames:<nametype>%
23468 \end_layout
23469
23470 \end_inset
23471
23472 : Provides a name list which is abbreviated (with 
23473 \begin_inset Quotes eld
23474 \end_inset
23475
23476 et al.
23477 \begin_inset Quotes erd
23478 \end_inset
23479
23480 ) when 
23481 \begin_inset Flex Code
23482 status collapsed
23483
23484 \begin_layout Plain Layout
23485 MaxCiteNames
23486 \end_layout
23487
23488 \end_inset
23489
23490  is reached.
23491 \end_layout
23492
23493 \begin_layout Itemize
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498 %fullnames:<nametype>%
23499 \end_layout
23500
23501 \end_inset
23502
23503 : Provides a full name list (never abbreviated with 
23504 \begin_inset Quotes eld
23505 \end_inset
23506
23507 et al.
23508 \begin_inset Quotes erd
23509 \end_inset
23510
23511 ).
23512 \end_layout
23513
23514 \begin_layout Itemize
23515 \begin_inset Flex Code
23516 status collapsed
23517
23518 \begin_layout Plain Layout
23519 %forceabbrvnames:<nametype>%
23520 \end_layout
23521
23522 \end_inset
23523
23524 : Provides a name list which is always abbreviated (with 
23525 \begin_inset Quotes eld
23526 \end_inset
23527
23528 et al.
23529 \begin_inset Quotes erd
23530 \end_inset
23531
23532 ) irrespective of 
23533 \begin_inset Flex Code
23534 status collapsed
23535
23536 \begin_layout Plain Layout
23537 MaxCiteNames
23538 \end_layout
23539
23540 \end_inset
23541
23542 .
23543 \end_layout
23544
23545 \end_deeper
23546 \begin_layout Enumerate
23547 Alternative name lists with pre- and surname, if the order of pre- and surname
23548  inside the bibliography item differs (as in: 
23549 \begin_inset Quotes eld
23550 \end_inset
23551
23552 Miller, John: Some text, in: Mary Smith, ed.: A volume
23553 \begin_inset Quotes erd
23554 \end_inset
23555
23556 ):
23557 \end_layout
23558
23559 \begin_deeper
23560 \begin_layout Itemize
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 %abbrvbynames:<nametype>%
23566 \end_layout
23567
23568 \end_inset
23569
23570 : Provides a name list which is abbreviated (with 
23571 \begin_inset Quotes eld
23572 \end_inset
23573
23574 et al.
23575 \begin_inset Quotes erd
23576 \end_inset
23577
23578 ) when 
23579 \begin_inset Flex Code
23580 status collapsed
23581
23582 \begin_layout Plain Layout
23583 MaxCiteNames
23584 \end_layout
23585
23586 \end_inset
23587
23588  is reached.
23589 \end_layout
23590
23591 \begin_layout Itemize
23592 \begin_inset Flex Code
23593 status collapsed
23594
23595 \begin_layout Plain Layout
23596 %fullbynames:<nametype>%
23597 \end_layout
23598
23599 \end_inset
23600
23601 : Provides a full name list (never abbreviated with 
23602 \begin_inset Quotes eld
23603 \end_inset
23604
23605 et al.
23606 \begin_inset Quotes erd
23607 \end_inset
23608
23609 ).
23610 \end_layout
23611
23612 \begin_layout Itemize
23613 \begin_inset Flex Code
23614 status collapsed
23615
23616 \begin_layout Plain Layout
23617 %forceabbrvbynames:<nametype>%
23618 \end_layout
23619
23620 \end_inset
23621
23622 : Provides a name list which is always abbreviated (with 
23623 \begin_inset Quotes eld
23624 \end_inset
23625
23626 et al.
23627 \begin_inset Quotes erd
23628 \end_inset
23629
23630 ) irrespective of 
23631 \begin_inset Flex Code
23632 status collapsed
23633
23634 \begin_layout Plain Layout
23635 MaxCiteNames
23636 \end_layout
23637
23638 \end_inset
23639
23640 .
23641 \end_layout
23642
23643 \end_deeper
23644 \begin_layout Enumerate
23645 And finally name lists which consist of family names only, as used in author-yea
23646 r citation labels.
23647  These do not take a 
23648 \begin_inset Flex Code
23649 status collapsed
23650
23651 \begin_layout Plain Layout
23652 <nametype>
23653 \end_layout
23654
23655 \end_inset
23656
23657  part, but always return either an author list or, if this does not exist,
23658  an editor list (as common in author-year labels):
23659 \end_layout
23660
23661 \begin_deeper
23662 \begin_layout Itemize
23663 \begin_inset Flex Code
23664 status collapsed
23665
23666 \begin_layout Plain Layout
23667 %abbrvciteauthor%
23668 \end_layout
23669
23670 \end_inset
23671
23672 : Provides a name list which is abbreviated (with 
23673 \begin_inset Quotes eld
23674 \end_inset
23675
23676 et al.
23677 \begin_inset Quotes erd
23678 \end_inset
23679
23680 ) when 
23681 \begin_inset Flex Code
23682 status collapsed
23683
23684 \begin_layout Plain Layout
23685 MaxCiteNames
23686 \end_layout
23687
23688 \end_inset
23689
23690  is reached.
23691 \end_layout
23692
23693 \begin_layout Itemize
23694 \begin_inset Flex Code
23695 status collapsed
23696
23697 \begin_layout Plain Layout
23698 %fullciteauthor%
23699 \end_layout
23700
23701 \end_inset
23702
23703 : Provides a full name list (never abbreviated with 
23704 \begin_inset Quotes eld
23705 \end_inset
23706
23707 et al.
23708 \begin_inset Quotes erd
23709 \end_inset
23710
23711 ).
23712 \end_layout
23713
23714 \begin_layout Itemize
23715 \begin_inset Flex Code
23716 status collapsed
23717
23718 \begin_layout Plain Layout
23719 %forceabbrvciteauthor%
23720 \end_layout
23721
23722 \end_inset
23723
23724 : Provides a name list which is always abbreviated (with 
23725 \begin_inset Quotes eld
23726 \end_inset
23727
23728 et al.
23729 \begin_inset Quotes erd
23730 \end_inset
23731
23732 ) irrespective of 
23733 \begin_inset Flex Code
23734 status collapsed
23735
23736 \begin_layout Plain Layout
23737 MaxCiteNames
23738 \end_layout
23739
23740 \end_inset
23741
23742 .
23743 \end_layout
23744
23745 \end_deeper
23746 \begin_layout Standard
23747 The order of pre- and surname in the former two lists can be adjusted by
23748  these macros:
23749 \end_layout
23750
23751 \begin_layout Itemize
23752 \begin_inset Flex Code
23753 status collapsed
23754
23755 \begin_layout Plain Layout
23756 !firstnameform %surname%, %prename%
23757 \end_layout
23758
23759 \end_inset
23760
23761  (first author in lists of type 1)
23762 \end_layout
23763
23764 \begin_layout Itemize
23765 \begin_inset Flex Code
23766 status collapsed
23767
23768 \begin_layout Plain Layout
23769 !othernameform %surname%, %prename%
23770 \end_layout
23771
23772 \end_inset
23773
23774  (other authors in lists of type 1)
23775 \end_layout
23776
23777 \begin_layout Itemize
23778 \begin_inset Flex Code
23779 status collapsed
23780
23781 \begin_layout Plain Layout
23782 !firstbynameform %prename% %surname%
23783 \end_layout
23784
23785 \end_inset
23786
23787  (first author in lists of type 2)
23788 \end_layout
23789
23790 \begin_layout Itemize
23791 \begin_inset Flex Code
23792 status collapsed
23793
23794 \begin_layout Plain Layout
23795 !otherbynameform %prename% %surname%
23796 \end_layout
23797
23798 \end_inset
23799
23800  (other authors in lists of type 2)
23801 \end_layout
23802
23803 \begin_layout Standard
23804 This allows you to configure namings like 
23805 \begin_inset Quotes eld
23806 \end_inset
23807
23808 Miller, Peter and Mary Smith: \SpecialChar ldots
23809 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23810
23811 \begin_inset Quotes erd
23812 \end_inset
23813
23814 .
23815 \end_layout
23816
23817 \begin_layout Standard
23818 There is one other piece of syntax available in definitions, which looks
23819  like this: 
23820 \begin_inset Flex Code
23821 status collapsed
23822
23823 \begin_layout Plain Layout
23824 {!<i>!}
23825 \end_layout
23826
23827 \end_inset
23828
23829 .
23830  This defines a piece of formatting information that is to be used when
23831  creating 
23832 \begin_inset Quotes eld
23833 \end_inset
23834
23835 rich text
23836 \begin_inset Quotes erd
23837 \end_inset
23838
23839 .
23840  Obviously, we do not want to output HTML tags when writing plain text,
23841  so they should be wrapped in 
23842 \begin_inset Quotes eld
23843 \end_inset
23844
23845 {!
23846 \begin_inset Quotes erd
23847 \end_inset
23848
23849  and 
23850 \begin_inset Quotes eld
23851 \end_inset
23852
23853 !}
23854 \begin_inset Quotes erd
23855 \end_inset
23856
23857 .
23858 \end_layout
23859
23860 \begin_layout Standard
23861 Two special sorts of definitions are also possible in a 
23862 \begin_inset Flex Code
23863 status collapsed
23864
23865 \begin_layout Plain Layout
23866 CiteFormat
23867 \end_layout
23868
23869 \end_inset
23870
23871  block.
23872  An example of the first would be:
23873 \end_layout
23874
23875 \begin_layout LyX-Code
23876 !quotetitle 
23877 \begin_inset Quotes eld
23878 \end_inset
23879
23880 %title%
23881 \begin_inset Quotes erd
23882 \end_inset
23883
23884
23885 \end_layout
23886
23887 \begin_layout Standard
23888 This is an abbreviation, or macro, and it can be used by treating it as
23889  if it were a key: 
23890 \begin_inset Flex Code
23891 status collapsed
23892
23893 \begin_layout Plain Layout
23894 %!quotetitle%
23895 \end_layout
23896
23897 \end_inset
23898
23899 .
23900  \SpecialChar LyX
23901  will treat 
23902 \begin_inset Flex Code
23903 status collapsed
23904
23905 \begin_layout Plain Layout
23906 %!quotetitle%
23907 \end_layout
23908
23909 \end_inset
23910
23911  exactly as it would treat its definition.
23912  So, let us issue the obvious 
23913 \emph on
23914 warning
23915 \emph default
23916 .
23917  Do not do this:
23918 \end_layout
23919
23920 \begin_layout LyX-Code
23921 !funfun %funfun%
23922 \end_layout
23923
23924 \begin_layout Standard
23925 or anything like it.
23926  \SpecialChar LyX
23927  shouldn't go into an infinite loop, but it may go into a long one before
23928  it gives up.
23929 \end_layout
23930
23931 \begin_layout Standard
23932 The second sort of special definition might look like this:
23933 \end_layout
23934
23935 \begin_layout LyX-Code
23936 B_pptext pp.
23937 \end_layout
23938
23939 \begin_layout Standard
23940 This defines a translatable piece of text, which allows relevant parts of
23941  the bibliography or citation to be translated.
23942  It can be included in a definition by treating it as a key: 
23943 \begin_inset Flex Code
23944 status collapsed
23945
23946 \begin_layout Plain Layout
23947 %B_pptext%
23948 \end_layout
23949
23950 \end_inset
23951
23952 .
23953  Note that there are two different translation paths: All definitions starting
23954  with 
23955 \begin_inset Flex Code
23956 status collapsed
23957
23958 \begin_layout Plain Layout
23959 B_
23960 \end_layout
23961
23962 \end_inset
23963
23964 , such as in the example above, will be translated to the currently active
23965  buffer language (so the translation will match the generated document).
23966  All definitions starting with underscore only will be translated to the
23967  GUI language.
23968  This is the proper translation for strings that only occur in the dialogs
23969  or on buttons, such as this one:
23970 \end_layout
23971
23972 \begin_layout LyX-Code
23973 _addtobib Add to bibliography only.
23974 \end_layout
23975
23976 \begin_layout Standard
23977 Several of these translatable strings are predefined in 
23978 \begin_inset Flex Code
23979 status collapsed
23980
23981 \begin_layout Plain Layout
23982 stdciteformats.inc
23983 \end_layout
23984
23985 \end_inset
23986
23987  and the diverse 
23988 \begin_inset Flex Code
23989 status collapsed
23990
23991 \begin_layout Plain Layout
23992 *.citeengine
23993 \end_layout
23994
23995 \end_inset
23996
23997  files.
23998  Note that these are not macros, in the sense just defined.
23999  They will not be expanded.
24000 \end_layout
24001
24002 \begin_layout Standard
24003 So here then is an example that uses several of these features:
24004 \begin_inset VSpace defskip
24005 \end_inset
24006
24007
24008 \end_layout
24009
24010 \begin_layout Standard
24011 \noindent
24012
24013 \family sans
24014 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24015 \end_layout
24016
24017 \begin_layout Standard
24018 \begin_inset VSpace defskip
24019 \end_inset
24020
24021 This defines a macro that prints the author, followed by a comma, if the
24022  
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027 author
24028 \end_layout
24029
24030 \end_inset
24031
24032  key is defined, or else prints the name of the editor, followed by the
24033  
24034 \begin_inset Flex Code
24035 status collapsed
24036
24037 \begin_layout Plain Layout
24038 B_edtext
24039 \end_layout
24040
24041 \end_inset
24042
24043  or its translation (it is by default 
24044 \begin_inset Quotes eld
24045 \end_inset
24046
24047 ed.
24048 \begin_inset Quotes erd
24049 \end_inset
24050
24051 ), if the 
24052 \begin_inset Flex Code
24053 status collapsed
24054
24055 \begin_layout Plain Layout
24056 editor
24057 \end_layout
24058
24059 \end_inset
24060
24061  key is defined.
24062  Note that this is in fact defined in 
24063 \begin_inset Flex Code
24064 status collapsed
24065
24066 \begin_layout Plain Layout
24067 stdciteformats.inc
24068 \end_layout
24069
24070 \end_inset
24071
24072 , so you can use it in your own definitions, or re-definitions, if you load
24073  that file first.
24074 \end_layout
24075
24076 \begin_layout Section
24077 \begin_inset CommandInset label
24078 LatexCommand label
24079 name "sec:Tags-for-XHTML"
24080
24081 \end_inset
24082
24083 Tags for XHTML output
24084 \end_layout
24085
24086 \begin_layout Standard
24087 As with \SpecialChar LaTeX
24088  or DocBook, the format of \SpecialChar LyX
24089 's XHTML output is also controlled by
24090  layout information.
24091  In general, \SpecialChar LyX
24092  provides sensible defaults and, as mentioned earlier, it will
24093  even construct default CSS style rules from the other layout tags.
24094  For example, \SpecialChar LyX
24095  will attempt to use the information provided in the 
24096 \begin_inset Flex Code
24097 status collapsed
24098
24099 \begin_layout Plain Layout
24100 Font
24101 \end_layout
24102
24103 \end_inset
24104
24105  declaration for the Chapter style to write CSS that will appropriately
24106  format chapter headings.
24107 \end_layout
24108
24109 \begin_layout Standard
24110 In many cases, then, you may not have to do anything at all to get acceptable
24111  XHTML output for your own environments, custom insets, and so forth.
24112  But in some cases you will, and so \SpecialChar LyX
24113  provides a number of layout tags that
24114  can be used to customize the XHTML and CSS that are generated.
24115 \end_layout
24116
24117 \begin_layout Standard
24118 Note that there are two tags, 
24119 \begin_inset Flex Code
24120 status collapsed
24121
24122 \begin_layout Plain Layout
24123 HTMLPreamble
24124 \end_layout
24125
24126 \end_inset
24127
24128  and 
24129 \begin_inset Flex Code
24130 status collapsed
24131
24132 \begin_layout Plain Layout
24133 AddToHTMLPreamble
24134 \end_layout
24135
24136 \end_inset
24137
24138  that may appear outside style and inset declarations.
24139  See 
24140 \begin_inset CommandInset ref
24141 LatexCommand ref
24142 reference "subsec:General-text-class"
24143
24144 \end_inset
24145
24146  for details on these.
24147 \end_layout
24148
24149 \begin_layout Subsection
24150 \begin_inset CommandInset label
24151 LatexCommand label
24152 name "subsec:Paragraph-Style-XHTML"
24153
24154 \end_inset
24155
24156 Paragraph styles
24157 \end_layout
24158
24159 \begin_layout Standard
24160 The sort of XHTML \SpecialChar LyX
24161  outputs for a paragraph depends upon whether we are dealing
24162  with a normal paragraph, a command, or an environment, where this is itself
24163  determined by the contents of the corresponding 
24164 \begin_inset Flex Code
24165 status collapsed
24166
24167 \begin_layout Plain Layout
24168 \SpecialChar LaTeX
24169 Type
24170 \end_layout
24171
24172 \end_inset
24173
24174  tag.
24175  
24176 \end_layout
24177
24178 \begin_layout Standard
24179 For a command or normal paragraph, the output XHTML has the following form:
24180 \end_layout
24181
24182 \begin_layout LyX-Code
24183
24184 \family sans
24185 <tag attr=
24186 \begin_inset Quotes erd
24187 \end_inset
24188
24189 value
24190 \begin_inset Quotes erd
24191 \end_inset
24192
24193 >
24194 \end_layout
24195
24196 \begin_layout LyX-Code
24197
24198 \family sans
24199 <labeltag attr=
24200 \begin_inset Quotes erd
24201 \end_inset
24202
24203 value
24204 \begin_inset Quotes erd
24205 \end_inset
24206
24207 >Label</labeltag>
24208 \end_layout
24209
24210 \begin_layout LyX-Code
24211
24212 \family sans
24213 Contents of the paragraph.
24214 \end_layout
24215
24216 \begin_layout LyX-Code
24217
24218 \family sans
24219 </tag>
24220 \end_layout
24221
24222 \begin_layout Standard
24223 The label tags are of course omitted if the paragraph does not have a label.
24224 \end_layout
24225
24226 \begin_layout Standard
24227 For an environment that is not some sort of list, the XHTML takes this form:
24228 \end_layout
24229
24230 \begin_layout LyX-Code
24231
24232 \family sans
24233 <tag attr=
24234 \begin_inset Quotes erd
24235 \end_inset
24236
24237 value
24238 \begin_inset Quotes erd
24239 \end_inset
24240
24241 >
24242 \end_layout
24243
24244 \begin_layout LyX-Code
24245
24246 \family sans
24247 <itemtag attr=
24248 \begin_inset Quotes erd
24249 \end_inset
24250
24251 value
24252 \begin_inset Quotes erd
24253 \end_inset
24254
24255 ><labeltag attr=
24256 \begin_inset Quotes erd
24257 \end_inset
24258
24259 value
24260 \begin_inset Quotes erd
24261 \end_inset
24262
24263 >Environment Label</labeltag>First paragraph.</itemtag>
24264 \end_layout
24265
24266 \begin_layout LyX-Code
24267
24268 \family sans
24269 <itemtag>Second paragraph.</itemtag>
24270 \end_layout
24271
24272 \begin_layout LyX-Code
24273
24274 \family sans
24275 </tag>
24276 \end_layout
24277
24278 \begin_layout Standard
24279 Note that the label is output only for the first paragraph, as it should
24280  be for a theorem, for example.
24281  
24282 \end_layout
24283
24284 \begin_layout Standard
24285 For a list, we have one of these forms:
24286 \end_layout
24287
24288 \begin_layout LyX-Code
24289
24290 \family sans
24291 <tag attr=
24292 \begin_inset Quotes erd
24293 \end_inset
24294
24295 value
24296 \begin_inset Quotes erd
24297 \end_inset
24298
24299 >
24300 \end_layout
24301
24302 \begin_layout LyX-Code
24303
24304 \family sans
24305 <itemtag attr=
24306 \begin_inset Quotes erd
24307 \end_inset
24308
24309 value
24310 \begin_inset Quotes erd
24311 \end_inset
24312
24313 ><labeltag attr=
24314 \begin_inset Quotes erd
24315 \end_inset
24316
24317 value
24318 \begin_inset Quotes erd
24319 \end_inset
24320
24321 >List Label</labeltag>First item.</itemtag>
24322 \end_layout
24323
24324 \begin_layout LyX-Code
24325
24326 \family sans
24327 <itemtag attr=
24328 \begin_inset Quotes erd
24329 \end_inset
24330
24331 value
24332 \begin_inset Quotes erd
24333 \end_inset
24334
24335 ><labeltag attr=
24336 \begin_inset Quotes erd
24337 \end_inset
24338
24339 value
24340 \begin_inset Quotes erd
24341 \end_inset
24342
24343 >List Label</labeltag>Second item.</itemtag>
24344 \end_layout
24345
24346 \begin_layout LyX-Code
24347
24348 \family sans
24349 </tag>
24350 \end_layout
24351
24352 \begin_layout LyX-Code
24353
24354 \end_layout
24355
24356 \begin_layout LyX-Code
24357
24358 \family sans
24359 <tag attr=
24360 \begin_inset Quotes erd
24361 \end_inset
24362
24363 value
24364 \begin_inset Quotes erd
24365 \end_inset
24366
24367 >
24368 \end_layout
24369
24370 \begin_layout LyX-Code
24371
24372 \family sans
24373 <labeltag attr=
24374 \begin_inset Quotes erd
24375 \end_inset
24376
24377 value
24378 \begin_inset Quotes erd
24379 \end_inset
24380
24381 >List Label</labeltag><itemtag attr=
24382 \begin_inset Quotes erd
24383 \end_inset
24384
24385 value
24386 \begin_inset Quotes erd
24387 \end_inset
24388
24389 >First item.</itemtag>
24390 \end_layout
24391
24392 \begin_layout LyX-Code
24393
24394 \family sans
24395 <labeltag attr=
24396 \begin_inset Quotes erd
24397 \end_inset
24398
24399 value
24400 \begin_inset Quotes erd
24401 \end_inset
24402
24403 >List Label</labeltag><itemtag attr=
24404 \begin_inset Quotes erd
24405 \end_inset
24406
24407 value
24408 \begin_inset Quotes erd
24409 \end_inset
24410
24411 >Second item.</itemtag>
24412 \end_layout
24413
24414 \begin_layout LyX-Code
24415
24416 \family sans
24417 </tag>
24418 \end_layout
24419
24420 \begin_layout Standard
24421 Note the different orders of 
24422 \begin_inset Flex Code
24423 status collapsed
24424
24425 \begin_layout Plain Layout
24426 labeltag
24427 \end_layout
24428
24429 \end_inset
24430
24431  and 
24432 \begin_inset Flex Code
24433 status collapsed
24434
24435 \begin_layout Plain Layout
24436 itemtag
24437 \end_layout
24438
24439 \end_inset
24440
24441 .
24442  Which order we get depends upon the setting of 
24443 \begin_inset Flex Code
24444 status collapsed
24445
24446 \begin_layout Plain Layout
24447 HTMLLabelFirst
24448 \end_layout
24449
24450 \end_inset
24451
24452 : If 
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 HTMLLabelFirst
24458 \end_layout
24459
24460 \end_inset
24461
24462  is false (the default), you get the first of these, with the label within
24463  the item; if true, you get the second, with the label outside the item.
24464 \end_layout
24465
24466 \begin_layout Standard
24467 The specific tags and attributes output for each paragraph type can be controlle
24468 d by means of the layout tags we are about to describe.
24469  As mentioned earlier, however, \SpecialChar LyX
24470  uses sensible defaults for many of these,
24471  so you often may not need to do very much to get good XHTML output.
24472  Think of the available tags as there so you can tweak things to your liking.
24473 \end_layout
24474
24475 \begin_layout Description
24476 \begin_inset Flex Code
24477 status collapsed
24478
24479 \begin_layout Plain Layout
24480 HTMLAttr
24481 \end_layout
24482
24483 \end_inset
24484
24485  [
24486 \begin_inset Flex Code
24487 status collapsed
24488
24489 \begin_layout Plain Layout
24490 string
24491 \end_layout
24492
24493 \end_inset
24494
24495 ] Specifies attribute information to be output with the main tag.
24496  For example, 
24497 \begin_inset Quotes eld
24498 \end_inset
24499
24500
24501 \begin_inset Flex Code
24502 status collapsed
24503
24504 \begin_layout Plain Layout
24505 class=`mydiv'
24506 \end_layout
24507
24508 \end_inset
24509
24510
24511 \begin_inset Quotes erd
24512 \end_inset
24513
24514 .
24515  By default, \SpecialChar LyX
24516  will output 
24517 \begin_inset Quotes eld
24518 \end_inset
24519
24520
24521 \begin_inset Flex Code
24522 status collapsed
24523
24524 \begin_layout Plain Layout
24525 class=`layoutname'
24526 \end_layout
24527
24528 \end_inset
24529
24530
24531 \begin_inset Quotes erd
24532 \end_inset
24533
24534 , where 
24535 \begin_inset Flex Code
24536 status collapsed
24537
24538 \begin_layout Plain Layout
24539 layoutname
24540 \end_layout
24541
24542 \end_inset
24543
24544  is the \SpecialChar LyX
24545  name of the layout, made lowercase, for example: chapter.
24546  This should 
24547 \emph on
24548 not
24549 \emph default
24550  contain any style information.
24551  Use 
24552 \begin_inset Flex Code
24553 status collapsed
24554
24555 \begin_layout Plain Layout
24556 HTMLStyle
24557 \end_layout
24558
24559 \end_inset
24560
24561  for that purpose.
24562 \end_layout
24563
24564 \begin_layout Description
24565 \begin_inset Flex Code
24566 status collapsed
24567
24568 \begin_layout Plain Layout
24569 HTMLForceCSS
24570 \end_layout
24571
24572 \end_inset
24573
24574  [
24575 \begin_inset Flex Code
24576 status collapsed
24577
24578 \begin_layout Plain Layout
24579
24580 \emph on
24581 0
24582 \emph default
24583 ,1
24584 \end_layout
24585
24586 \end_inset
24587
24588 ] Whether to output the default CSS information \SpecialChar LyX
24589  generates for this layout,
24590  even if additional information is explicitly provided via 
24591 \begin_inset Flex Code
24592 status collapsed
24593
24594 \begin_layout Plain Layout
24595 HTMLStyle
24596 \end_layout
24597
24598 \end_inset
24599
24600 .
24601  Setting this to 
24602 \begin_inset Flex Code
24603 status collapsed
24604
24605 \begin_layout Plain Layout
24606 1
24607 \end_layout
24608
24609 \end_inset
24610
24611  allows you to alter or augment the generated CSS, rather than to override
24612  it completely.
24613  Default is 
24614 \begin_inset Flex Code
24615 status collapsed
24616
24617 \begin_layout Plain Layout
24618 0
24619 \end_layout
24620
24621 \end_inset
24622
24623 .
24624 \end_layout
24625
24626 \begin_layout Description
24627 \begin_inset Flex Code
24628 status collapsed
24629
24630 \begin_layout Plain Layout
24631 HTMLItem
24632 \end_layout
24633
24634 \end_inset
24635
24636  [
24637 \begin_inset Flex Code
24638 status collapsed
24639
24640 \begin_layout Plain Layout
24641 string
24642 \end_layout
24643
24644 \end_inset
24645
24646 ] The tag to be used for individual paragraphs of environments, replacing
24647  
24648 \begin_inset Flex Code
24649 status collapsed
24650
24651 \begin_layout Plain Layout
24652 itemtag
24653 \end_layout
24654
24655 \end_inset
24656
24657  in the examples above.
24658  Defaults to 
24659 \begin_inset Flex Code
24660 status collapsed
24661
24662 \begin_layout Plain Layout
24663 div
24664 \end_layout
24665
24666 \end_inset
24667
24668 .
24669 \end_layout
24670
24671 \begin_layout Description
24672 \begin_inset Flex Code
24673 status collapsed
24674
24675 \begin_layout Plain Layout
24676 HTMLItemAttr
24677 \end_layout
24678
24679 \end_inset
24680
24681  [
24682 \begin_inset Flex Code
24683 status collapsed
24684
24685 \begin_layout Plain Layout
24686 string
24687 \end_layout
24688
24689 \end_inset
24690
24691 ] Attributes for the item tag.
24692  Defaults to
24693 \begin_inset Newline newline
24694 \end_inset
24695
24696
24697 \begin_inset Quotes eld
24698 \end_inset
24699
24700
24701 \begin_inset Flex Code
24702 status collapsed
24703
24704 \begin_layout Plain Layout
24705 class=`layoutname_item'
24706 \end_layout
24707
24708 \end_inset
24709
24710
24711 \begin_inset Quotes erd
24712 \end_inset
24713
24714 .
24715  This should 
24716 \emph on
24717 not
24718 \emph default
24719  contain any style information.
24720  Use 
24721 \begin_inset Flex Code
24722 status collapsed
24723
24724 \begin_layout Plain Layout
24725 HTMLStyle
24726 \end_layout
24727
24728 \end_inset
24729
24730  for that purpose.
24731 \end_layout
24732
24733 \begin_layout Description
24734 \begin_inset Flex Code
24735 status collapsed
24736
24737 \begin_layout Plain Layout
24738 HTMLLabel
24739 \end_layout
24740
24741 \end_inset
24742
24743  [
24744 \begin_inset Flex Code
24745 status collapsed
24746
24747 \begin_layout Plain Layout
24748 string
24749 \end_layout
24750
24751 \end_inset
24752
24753 ] The tag to be used for paragraph and item labels, replacing 
24754 \begin_inset Flex Code
24755 status collapsed
24756
24757 \begin_layout Plain Layout
24758 labeltag
24759 \end_layout
24760
24761 \end_inset
24762
24763  in the examples above.
24764  Defaults to 
24765 \begin_inset Flex Code
24766 status collapsed
24767
24768 \begin_layout Plain Layout
24769 span
24770 \end_layout
24771
24772 \end_inset
24773
24774 , unless 
24775 \begin_inset Flex Code
24776 status collapsed
24777
24778 \begin_layout Plain Layout
24779 LabelType
24780 \end_layout
24781
24782 \end_inset
24783
24784  is either 
24785 \begin_inset Flex Code
24786 status collapsed
24787
24788 \begin_layout Plain Layout
24789 Top_Environment
24790 \end_layout
24791
24792 \end_inset
24793
24794  or 
24795 \begin_inset Flex Code
24796 status collapsed
24797
24798 \begin_layout Plain Layout
24799 Centered_Top_Environment
24800 \end_layout
24801
24802 \end_inset
24803
24804 , in which case it defaults to 
24805 \begin_inset Flex Code
24806 status collapsed
24807
24808 \begin_layout Plain Layout
24809 div
24810 \end_layout
24811
24812 \end_inset
24813
24814 .
24815 \end_layout
24816
24817 \begin_layout Description
24818 \begin_inset Flex Code
24819 status collapsed
24820
24821 \begin_layout Plain Layout
24822 HTMLLabelAttr
24823 \end_layout
24824
24825 \end_inset
24826
24827  [
24828 \begin_inset Flex Code
24829 status collapsed
24830
24831 \begin_layout Plain Layout
24832 string
24833 \end_layout
24834
24835 \end_inset
24836
24837 ] Attributes for the label tag.
24838  Defaults to
24839 \begin_inset Newline newline
24840 \end_inset
24841
24842
24843 \begin_inset Quotes eld
24844 \end_inset
24845
24846
24847 \begin_inset Flex Code
24848 status collapsed
24849
24850 \begin_layout Plain Layout
24851 class=`layoutname_label'
24852 \end_layout
24853
24854 \end_inset
24855
24856
24857 \begin_inset Quotes erd
24858 \end_inset
24859
24860 .
24861  This should 
24862 \emph on
24863 not
24864 \emph default
24865  contain any style information.
24866  Use 
24867 \begin_inset Flex Code
24868 status collapsed
24869
24870 \begin_layout Plain Layout
24871 HTMLStyle
24872 \end_layout
24873
24874 \end_inset
24875
24876  for that purpose.
24877 \end_layout
24878
24879 \begin_layout Description
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 HTMLLabelFirst
24885 \end_layout
24886
24887 \end_inset
24888
24889  [
24890 \begin_inset Flex Code
24891 status collapsed
24892
24893 \begin_layout Plain Layout
24894
24895 \emph on
24896 0
24897 \emph default
24898 ,1
24899 \end_layout
24900
24901 \end_inset
24902
24903 ] Meaningful only for list-like environments, this tag controls whether
24904  the label tag is output before or inside the item tag.
24905  This is used, for example, in the description environment, where we want
24906  `
24907 \begin_inset Flex Code
24908 status collapsed
24909
24910 \begin_layout Plain Layout
24911 <dt>\SpecialChar ldots
24912 </dt><dd>\SpecialChar ldots
24913 </dd>
24914 \end_layout
24915
24916 \end_inset
24917
24918 .
24919  Default is 
24920 \begin_inset Flex Code
24921 status collapsed
24922
24923 \begin_layout Plain Layout
24924 0
24925 \end_layout
24926
24927 \end_inset
24928
24929 : The label tag is output inside the item tag.
24930 \end_layout
24931
24932 \begin_layout Description
24933 \begin_inset Flex Code
24934 status collapsed
24935
24936 \begin_layout Plain Layout
24937 HTMLPreamble
24938 \end_layout
24939
24940 \end_inset
24941
24942  Information to be output in the 
24943 \begin_inset Flex Code
24944 status collapsed
24945
24946 \begin_layout Plain Layout
24947 <head>
24948 \end_layout
24949
24950 \end_inset
24951
24952  section when this style is used.
24953  This might, for example, be used to include a 
24954 \begin_inset Flex Code
24955 status collapsed
24956
24957 \begin_layout Plain Layout
24958 <script>
24959 \end_layout
24960
24961 \end_inset
24962
24963  block defining an 
24964 \begin_inset Flex Code
24965 status collapsed
24966
24967 \begin_layout Plain Layout
24968 onclick
24969 \end_layout
24970
24971 \end_inset
24972
24973  handler.
24974 \end_layout
24975
24976 \begin_layout Description
24977 \begin_inset Flex Code
24978 status collapsed
24979
24980 \begin_layout Plain Layout
24981 HTMLStyle
24982 \end_layout
24983
24984 \end_inset
24985
24986  CSS style information to be included when this style is used.
24987  Note that this will automatically be wrapped in a layout-generated 
24988 \begin_inset Flex Code
24989 status collapsed
24990
24991 \begin_layout Plain Layout
24992 <style>
24993 \end_layout
24994
24995 \end_inset
24996
24997  block, so only the CSS itself need be included.
24998  Must end with 
24999 \begin_inset Flex Code
25000 status collapsed
25001
25002 \begin_layout Plain Layout
25003 EndHTMLStyle
25004 \end_layout
25005
25006 \end_inset
25007
25008 .
25009 \end_layout
25010
25011 \begin_layout Description
25012 \begin_inset Flex Code
25013 status collapsed
25014
25015 \begin_layout Plain Layout
25016 HTMLTag
25017 \end_layout
25018
25019 \end_inset
25020
25021  [
25022 \begin_inset Flex Code
25023 status collapsed
25024
25025 \begin_layout Plain Layout
25026 string
25027 \end_layout
25028
25029 \end_inset
25030
25031 ] The tag to be used for the main label, replacing 
25032 \begin_inset Flex Code
25033 status collapsed
25034
25035 \begin_layout Plain Layout
25036 tag
25037 \end_layout
25038
25039 \end_inset
25040
25041  in the examples above.
25042  Defaults to 
25043 \begin_inset Flex Code
25044 status collapsed
25045
25046 \begin_layout Plain Layout
25047 div
25048 \end_layout
25049
25050 \end_inset
25051
25052 .
25053 \end_layout
25054
25055 \begin_layout Description
25056 \begin_inset Flex Code
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 HTMLTitle
25061 \end_layout
25062
25063 \end_inset
25064
25065  [
25066 \begin_inset Flex Code
25067 status collapsed
25068
25069 \begin_layout Plain Layout
25070
25071 \emph on
25072 0
25073 \emph default
25074 ,1
25075 \end_layout
25076
25077 \end_inset
25078
25079 ] Marks this style as the one to be used to generate the 
25080 \begin_inset Flex Code
25081 status collapsed
25082
25083 \begin_layout Plain Layout
25084 <title>
25085 \end_layout
25086
25087 \end_inset
25088
25089  tag for the XHTML file.
25090  By default, it is false.
25091  The 
25092 \begin_inset Flex Code
25093 status collapsed
25094
25095 \begin_layout Plain Layout
25096 stdtitle.inc
25097 \end_layout
25098
25099 \end_inset
25100
25101  file sets it to true for the 
25102 \begin_inset Flex Code
25103 status collapsed
25104
25105 \begin_layout Plain Layout
25106 title
25107 \end_layout
25108
25109 \end_inset
25110
25111  environment.
25112  
25113 \end_layout
25114
25115 \begin_layout Subsection
25116 InsetLayout XHTML
25117 \end_layout
25118
25119 \begin_layout Standard
25120 The XHTML output of insets can also be controlled by information in layout
25121  files.
25122 \begin_inset Foot
25123 status collapsed
25124
25125 \begin_layout Plain Layout
25126 At present, this is true only for 
25127 \begin_inset Quotes eld
25128 \end_inset
25129
25130 text
25131 \begin_inset Quotes erd
25132 \end_inset
25133
25134  insets (insets you can type into) and is not true for 
25135 \begin_inset Quotes eld
25136 \end_inset
25137
25138 command
25139 \begin_inset Quotes erd
25140 \end_inset
25141
25142  insets (insets that are associated with dialog boxes).
25143 \end_layout
25144
25145 \end_inset
25146
25147  Here, too, \SpecialChar LyX
25148  tries to provide sensible defaults, and it constructs default
25149  CSS style rules.
25150  But everything can be customized.
25151 \end_layout
25152
25153 \begin_layout Standard
25154 The XHTML \SpecialChar LyX
25155  outputs for an inset has the following form:
25156 \end_layout
25157
25158 \begin_layout LyX-Code
25159 <tag attr=
25160 \begin_inset Quotes erd
25161 \end_inset
25162
25163 value
25164 \begin_inset Quotes erd
25165 \end_inset
25166
25167 >
25168 \end_layout
25169
25170 \begin_layout LyX-Code
25171 <labeltag>Label</labeltag>
25172 \end_layout
25173
25174 \begin_layout LyX-Code
25175 <innertag attr=
25176 \begin_inset Quotes erd
25177 \end_inset
25178
25179 value
25180 \begin_inset Quotes erd
25181 \end_inset
25182
25183 >Contents of the inset.</innertag>
25184 \end_layout
25185
25186 \begin_layout LyX-Code
25187 </tag>
25188 \end_layout
25189
25190 \begin_layout Standard
25191 If the inset permits multiple paragraphs—that is, if 
25192 \begin_inset Flex Code
25193 status collapsed
25194
25195 \begin_layout Plain Layout
25196 MultiPar
25197 \end_layout
25198
25199 \end_inset
25200
25201  is true—then the contents of the inset will itself be output as paragraphs
25202  formatted according to the styles used for those paragraphs (standard,
25203  quote, and the like).
25204  The label tag is of course omitted if the paragraph does not have a label
25205  and, at present, is always 
25206 \begin_inset Flex Code
25207 status collapsed
25208
25209 \begin_layout Plain Layout
25210 span
25211 \end_layout
25212
25213 \end_inset
25214
25215 .
25216  The inner tag is optional and, by default, does not appear.
25217 \end_layout
25218
25219 \begin_layout Standard
25220 The specific tags and attributes output for each inset can be controlled
25221  by means of the following layout tags.
25222 \end_layout
25223
25224 \begin_layout Description
25225 \begin_inset Flex Code
25226 status collapsed
25227
25228 \begin_layout Plain Layout
25229 HTMLAttr
25230 \end_layout
25231
25232 \end_inset
25233
25234  [
25235 \begin_inset Flex Code
25236 status collapsed
25237
25238 \begin_layout Plain Layout
25239 string
25240 \end_layout
25241
25242 \end_inset
25243
25244 ] Specifies attribute information to be output with the main tag.
25245  For example, 
25246 \begin_inset Quotes eld
25247 \end_inset
25248
25249
25250 \begin_inset Flex Code
25251 status collapsed
25252
25253 \begin_layout Plain Layout
25254 class=`myinset' onclick=`\SpecialChar ldots
25255 '
25256 \end_layout
25257
25258 \end_inset
25259
25260
25261 \begin_inset Quotes erd
25262 \end_inset
25263
25264 .
25265  By default, \SpecialChar LyX
25266  will output 
25267 \begin_inset Quotes eld
25268 \end_inset
25269
25270
25271 \begin_inset Flex Code
25272 status collapsed
25273
25274 \begin_layout Plain Layout
25275 class=`insetname'
25276 \end_layout
25277
25278 \end_inset
25279
25280
25281 \begin_inset Quotes erd
25282 \end_inset
25283
25284 , where 
25285 \begin_inset Flex Code
25286 status collapsed
25287
25288 \begin_layout Plain Layout
25289 insetname
25290 \end_layout
25291
25292 \end_inset
25293
25294  is the \SpecialChar LyX
25295  name of the inset, made lowercase and with non-alphanumeric characters
25296  converted to underscores, for example: footnote.
25297 \end_layout
25298
25299 \begin_layout Description
25300 \begin_inset Flex Code
25301 status collapsed
25302
25303 \begin_layout Plain Layout
25304 HTMLForceCSS
25305 \end_layout
25306
25307 \end_inset
25308
25309  [
25310 \begin_inset Flex Code
25311 status collapsed
25312
25313 \begin_layout Plain Layout
25314
25315 \emph on
25316 0
25317 \emph default
25318 ,1
25319 \end_layout
25320
25321 \end_inset
25322
25323 ] Whether to output the default CSS information \SpecialChar LyX
25324  generates for this layout,
25325  even if additional information is explicitly provided via 
25326 \begin_inset Flex Code
25327 status collapsed
25328
25329 \begin_layout Plain Layout
25330 HTMLStyle
25331 \end_layout
25332
25333 \end_inset
25334
25335 .
25336  Setting this to 
25337 \begin_inset Flex Code
25338 status collapsed
25339
25340 \begin_layout Plain Layout
25341 1
25342 \end_layout
25343
25344 \end_inset
25345
25346  allows you to alter or augment the generated CSS, rather than to override
25347  it completely.
25348  Default is 0.
25349 \end_layout
25350
25351 \begin_layout Description
25352 \begin_inset Flex Code
25353 status collapsed
25354
25355 \begin_layout Plain Layout
25356 HTMLInnerAttr
25357 \end_layout
25358
25359 \end_inset
25360
25361  [
25362 \begin_inset Flex Code
25363 status collapsed
25364
25365 \begin_layout Plain Layout
25366 string
25367 \end_layout
25368
25369 \end_inset
25370
25371 ] Attributes for the inner tag.
25372  Defaults to
25373 \begin_inset Newline newline
25374 \end_inset
25375
25376
25377 \begin_inset Quotes eld
25378 \end_inset
25379
25380
25381 \begin_inset Flex Code
25382 status collapsed
25383
25384 \begin_layout Plain Layout
25385 class=`insetname_inner'
25386 \end_layout
25387
25388 \end_inset
25389
25390
25391 \begin_inset Quotes erd
25392 \end_inset
25393
25394 .
25395 \end_layout
25396
25397 \begin_layout Description
25398 \begin_inset Flex Code
25399 status collapsed
25400
25401 \begin_layout Plain Layout
25402 HTMLInnerTag
25403 \end_layout
25404
25405 \end_inset
25406
25407  [
25408 \begin_inset Flex Code
25409 status collapsed
25410
25411 \begin_layout Plain Layout
25412 string
25413 \end_layout
25414
25415 \end_inset
25416
25417 ] The inner tag, replacing 
25418 \begin_inset Flex Code
25419 status collapsed
25420
25421 \begin_layout Plain Layout
25422 innertag
25423 \end_layout
25424
25425 \end_inset
25426
25427  in the examples above.
25428  By default, there is none.
25429 \end_layout
25430
25431 \begin_layout Description
25432 \begin_inset Flex Code
25433 status collapsed
25434
25435 \begin_layout Plain Layout
25436 HTMLIsBlock
25437 \end_layout
25438
25439 \end_inset
25440
25441  [
25442 \begin_inset Flex Code
25443 status collapsed
25444
25445 \begin_layout Plain Layout
25446 0,
25447 \emph on
25448 1
25449 \end_layout
25450
25451 \end_inset
25452
25453 ] Whether this inset represents a standalone block of text (such as a footnote)
25454  or instead represents material that is included in the surrounding text
25455  (such as a branch).
25456  Defaults to 1.
25457 \end_layout
25458
25459 \begin_layout Description
25460 \begin_inset Flex Code
25461 status collapsed
25462
25463 \begin_layout Plain Layout
25464 HTMLLabel
25465 \end_layout
25466
25467 \end_inset
25468
25469  [
25470 \begin_inset Flex Code
25471 status collapsed
25472
25473 \begin_layout Plain Layout
25474 string
25475 \end_layout
25476
25477 \end_inset
25478
25479 ] A label for this inset, possibly including a reference to a counter.
25480  For example, for footnote, it might be: 
25481 \begin_inset Flex Code
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485
25486 \backslash
25487 arabic{footnote}
25488 \end_layout
25489
25490 \end_inset
25491
25492 .
25493  This is optional, and there is no default.
25494 \end_layout
25495
25496 \begin_layout Description
25497 \begin_inset Flex Code
25498 status collapsed
25499
25500 \begin_layout Plain Layout
25501 HTMLPreamble
25502 \end_layout
25503
25504 \end_inset
25505
25506  Information to be output in the 
25507 \begin_inset Flex Code
25508 status collapsed
25509
25510 \begin_layout Plain Layout
25511 <head>
25512 \end_layout
25513
25514 \end_inset
25515
25516  section when this style is used.
25517  This might, for example, be used to include a 
25518 \begin_inset Flex Code
25519 status collapsed
25520
25521 \begin_layout Plain Layout
25522 <script>
25523 \end_layout
25524
25525 \end_inset
25526
25527  block defining an 
25528 \begin_inset Flex Code
25529 status collapsed
25530
25531 \begin_layout Plain Layout
25532 onclick
25533 \end_layout
25534
25535 \end_inset
25536
25537  handler.
25538 \end_layout
25539
25540 \begin_layout Description
25541 \begin_inset Flex Code
25542 status collapsed
25543
25544 \begin_layout Plain Layout
25545 HTMLStyle
25546 \end_layout
25547
25548 \end_inset
25549
25550  CSS style information to be included when this style is used.
25551  Note that this will automatically be wrapped in a layout-generated 
25552 \begin_inset Flex Code
25553 status collapsed
25554
25555 \begin_layout Plain Layout
25556 <style>
25557 \end_layout
25558
25559 \end_inset
25560
25561  block, so only the CSS itself need be included.
25562 \end_layout
25563
25564 \begin_layout Description
25565 \begin_inset Flex Code
25566 status collapsed
25567
25568 \begin_layout Plain Layout
25569 HTMLTag
25570 \end_layout
25571
25572 \end_inset
25573
25574  [
25575 \begin_inset Flex Code
25576 status collapsed
25577
25578 \begin_layout Plain Layout
25579 string
25580 \end_layout
25581
25582 \end_inset
25583
25584 ] The tag to be used for the main label, replacing 
25585 \begin_inset Flex Code
25586 status collapsed
25587
25588 \begin_layout Plain Layout
25589 tag
25590 \end_layout
25591
25592 \end_inset
25593
25594  in the examples above.
25595  The default depends upon the setting of 
25596 \begin_inset Flex Code
25597 status collapsed
25598
25599 \begin_layout Plain Layout
25600 MultiPar
25601 \end_layout
25602
25603 \end_inset
25604
25605 : If 
25606 \begin_inset Flex Code
25607 status collapsed
25608
25609 \begin_layout Plain Layout
25610 MultiPar
25611 \end_layout
25612
25613 \end_inset
25614
25615  is true, the default is 
25616 \begin_inset Flex Code
25617 status collapsed
25618
25619 \begin_layout Plain Layout
25620 div
25621 \end_layout
25622
25623 \end_inset
25624
25625 ; if it is false, the default is 
25626 \begin_inset Flex Code
25627 status collapsed
25628
25629 \begin_layout Plain Layout
25630 span
25631 \end_layout
25632
25633 \end_inset
25634
25635 .
25636 \end_layout
25637
25638 \begin_layout Subsection
25639 Float XHTML
25640 \end_layout
25641
25642 \begin_layout Standard
25643 The XHTML output for floats too can be controlled by layout information.
25644  The output has the following form:
25645 \end_layout
25646
25647 \begin_layout LyX-Code
25648 <tag attr=
25649 \begin_inset Quotes erd
25650 \end_inset
25651
25652 value
25653 \begin_inset Quotes erd
25654 \end_inset
25655
25656 >
25657 \end_layout
25658
25659 \begin_layout LyX-Code
25660 Contents of the float.
25661 \end_layout
25662
25663 \begin_layout LyX-Code
25664 </tag>
25665 \end_layout
25666
25667 \begin_layout Standard
25668 The caption, if there is one, is a separate inset and will be output as
25669  such.
25670  Its appearance can be controlled via the InsetLayout for caption insets.
25671  
25672 \end_layout
25673
25674 \begin_layout Description
25675 \begin_inset Flex Code
25676 status collapsed
25677
25678 \begin_layout Plain Layout
25679 HTMLAttr
25680 \end_layout
25681
25682 \end_inset
25683
25684  [
25685 \begin_inset Flex Code
25686 status collapsed
25687
25688 \begin_layout Plain Layout
25689 string
25690 \end_layout
25691
25692 \end_inset
25693
25694 ] Specifies attribute information to be output with the main tag.
25695  For example, 
25696 \begin_inset Quotes eld
25697 \end_inset
25698
25699
25700 \begin_inset Flex Code
25701 status collapsed
25702
25703 \begin_layout Plain Layout
25704 class=`myfloat' onclick=`\SpecialChar ldots
25705 '
25706 \end_layout
25707
25708 \end_inset
25709
25710
25711 \begin_inset Quotes erd
25712 \end_inset
25713
25714 .
25715  By default, \SpecialChar LyX
25716  will output 
25717 \begin_inset Quotes eld
25718 \end_inset
25719
25720
25721 \begin_inset Flex Code
25722 status collapsed
25723
25724 \begin_layout Plain Layout
25725 class=`float float-floattype'
25726 \end_layout
25727
25728 \end_inset
25729
25730
25731 \begin_inset Quotes erd
25732 \end_inset
25733
25734 , where 
25735 \begin_inset Flex Code
25736 status collapsed
25737
25738 \begin_layout Plain Layout
25739 floattype
25740 \end_layout
25741
25742 \end_inset
25743
25744  is \SpecialChar LyX
25745 's name for this type of float, as determined by the float declaration
25746  (see 
25747 \begin_inset CommandInset ref
25748 LatexCommand ref
25749 reference "subsec:Floats"
25750
25751 \end_inset
25752
25753 ), though made lowercase and with non-alphanumeric characters converted
25754  to underscores, for example: float-table.
25755 \end_layout
25756
25757 \begin_layout Description
25758 \begin_inset Flex Code
25759 status collapsed
25760
25761 \begin_layout Plain Layout
25762 HTMLStyle
25763 \end_layout
25764
25765 \end_inset
25766
25767  CSS style information to be included when this float is used.
25768  Note that this will automatically be wrapped in a layout-generated 
25769 \begin_inset Flex Code
25770 status collapsed
25771
25772 \begin_layout Plain Layout
25773 <style>
25774 \end_layout
25775
25776 \end_inset
25777
25778  block, so only the CSS itself need be included.
25779 \end_layout
25780
25781 \begin_layout Description
25782 \begin_inset Flex Code
25783 status collapsed
25784
25785 \begin_layout Plain Layout
25786 HTMLTag
25787 \end_layout
25788
25789 \end_inset
25790
25791  [
25792 \begin_inset Flex Code
25793 status collapsed
25794
25795 \begin_layout Plain Layout
25796 string
25797 \end_layout
25798
25799 \end_inset
25800
25801 ] The tag to be used for this float, replacing 
25802 \begin_inset Quotes eld
25803 \end_inset
25804
25805
25806 \begin_inset Flex Code
25807 status collapsed
25808
25809 \begin_layout Plain Layout
25810 tag
25811 \end_layout
25812
25813 \end_inset
25814
25815
25816 \begin_inset Quotes erd
25817 \end_inset
25818
25819  in the example above.
25820  The default is 
25821 \begin_inset Flex Code
25822 status collapsed
25823
25824 \begin_layout Plain Layout
25825 div
25826 \end_layout
25827
25828 \end_inset
25829
25830  and will rarely need changing.
25831 \end_layout
25832
25833 \begin_layout Subsection
25834 Bibliography formatting
25835 \end_layout
25836
25837 \begin_layout Standard
25838 The bibliography can be formatted using 
25839 \begin_inset Flex Code
25840 status collapsed
25841
25842 \begin_layout Plain Layout
25843 CiteFormat
25844 \end_layout
25845
25846 \end_inset
25847
25848  blocks.
25849  See 
25850 \begin_inset CommandInset ref
25851 LatexCommand ref
25852 reference "subsec:Citation-format-description"
25853
25854 \end_inset
25855
25856  for the details.
25857 \end_layout
25858
25859 \begin_layout Subsection
25860 \SpecialChar LyX
25861 -generated CSS
25862 \end_layout
25863
25864 \begin_layout Standard
25865 We have several times mentioned that \SpecialChar LyX
25866  will generate default CSS style rules
25867  for both insets and paragraph styles, based upon the other layout information
25868  that is provided.
25869  In this section, we shall say a word about which layout information \SpecialChar LyX
25870  uses
25871  and how.
25872 \end_layout
25873
25874 \begin_layout Standard
25875 At present, \SpecialChar LyX
25876  auto-generates CSS only for font information, making use of
25877  the 
25878 \begin_inset Flex Code
25879 status collapsed
25880
25881 \begin_layout Plain Layout
25882 Family
25883 \end_layout
25884
25885 \end_inset
25886
25887
25888 \begin_inset Flex Code
25889 status collapsed
25890
25891 \begin_layout Plain Layout
25892 Series
25893 \end_layout
25894
25895 \end_inset
25896
25897
25898 \begin_inset Flex Code
25899 status collapsed
25900
25901 \begin_layout Plain Layout
25902 Shape
25903 \end_layout
25904
25905 \end_inset
25906
25907 , and 
25908 \begin_inset Flex Code
25909 status collapsed
25910
25911 \begin_layout Plain Layout
25912 Size
25913 \end_layout
25914
25915 \end_inset
25916
25917  specified in the 
25918 \begin_inset Flex Code
25919 status collapsed
25920
25921 \begin_layout Plain Layout
25922 Font
25923 \end_layout
25924
25925 \end_inset
25926
25927  declaration (see 
25928 \begin_inset CommandInset ref
25929 LatexCommand ref
25930 reference "subsec:Font-description"
25931
25932 \end_inset
25933
25934 ).
25935  The translation is mostly straightforward and obvious.
25936  For example, 
25937 \begin_inset Quotes eld
25938 \end_inset
25939
25940
25941 \begin_inset Flex Code
25942 status collapsed
25943
25944 \begin_layout Plain Layout
25945 Family Sans
25946 \end_layout
25947
25948 \end_inset
25949
25950
25951 \begin_inset Quotes erd
25952 \end_inset
25953
25954  becomes 
25955 \begin_inset Quotes eld
25956 \end_inset
25957
25958
25959 \begin_inset Flex Code
25960 status collapsed
25961
25962 \begin_layout Plain Layout
25963 font-family: sans-serif;
25964 \end_layout
25965
25966 \end_inset
25967
25968
25969 \begin_inset Quotes erd
25970 \end_inset
25971
25972 .
25973  The correspondence of \SpecialChar LyX
25974  sizes and CSS sizes is a little less obvious but
25975  nonetheless intuitive.
25976  See the 
25977 \begin_inset Flex Code
25978 status collapsed
25979
25980 \begin_layout Plain Layout
25981 getSizeCSS()
25982 \end_layout
25983
25984 \end_inset
25985
25986  function in 
25987 \begin_inset Flex URL
25988 status collapsed
25989
25990 \begin_layout Plain Layout
25991
25992 src/FontInfo.cpp
25993 \end_layout
25994
25995 \end_inset
25996
25997  for the details.
25998 \end_layout
25999
26000 \begin_layout Chapter
26001 Including External Material
26002 \begin_inset CommandInset label
26003 LatexCommand label
26004 name "chap:Including-External-Material"
26005
26006 \end_inset
26007
26008
26009 \end_layout
26010
26011 \begin_layout Standard
26012 \begin_inset Box Shadowbox
26013 position "t"
26014 hor_pos "c"
26015 has_inner_box 1
26016 inner_pos "t"
26017 use_parbox 0
26018 use_makebox 0
26019 width "100col%"
26020 special "none"
26021 height "1in"
26022 height_special "totalheight"
26023 thickness "0.4pt"
26024 separation "3pt"
26025 shadowsize "4pt"
26026 framecolor "black"
26027 backgroundcolor "none"
26028 status open
26029
26030 \begin_layout Plain Layout
26031 WARNING: This portion of the documentation has not been updated for some
26032  time.
26033  We certainly hope that it is still accurate, but there are no guarantees.
26034 \end_layout
26035
26036 \end_inset
26037
26038
26039 \end_layout
26040
26041 \begin_layout Standard
26042 The use of material from sources external to \SpecialChar LyX
26043  is covered in detail in the
26044  
26045 \emph on
26046 Embedded Objects
26047 \emph default
26048  manual.
26049  This part of the manual covers what needs to happen behind the scenes for
26050  new sorts of material to be included.
26051 \end_layout
26052
26053 \begin_layout Section
26054 How does it work?
26055 \end_layout
26056
26057 \begin_layout Standard
26058 The external material feature is based on the concept of a 
26059 \emph on
26060 template
26061 \emph default
26062 .
26063  A template is a specification of how \SpecialChar LyX
26064  should interface with a certain kind
26065  of material.
26066  As bundled, \SpecialChar LyX
26067  comes with predefined templates for Xfig figures, various
26068  raster format images, chess diagrams, and LilyPond music notation.
26069  You can check the actual list by using the menu 
26070 \begin_inset Flex Noun
26071 status collapsed
26072
26073 \begin_layout Plain Layout
26074 Insert\SpecialChar menuseparator
26075 File\SpecialChar menuseparator
26076 External Material
26077 \end_layout
26078
26079 \end_inset
26080
26081 .
26082  Furthermore, it is possible to roll your own template to support a specific
26083  kind of material.
26084  Later we'll describe in more detail what is involved, and hopefully you
26085  will submit all the templates you create so we can include them in a later
26086  \SpecialChar LyX
26087  version.
26088 \end_layout
26089
26090 \begin_layout Standard
26091 Another basic idea of the external material feature is to distinguish between
26092  the original file that serves as a base for final material and the produced
26093  file that is included in your exported or printed document.
26094  For example, consider the case of a figure produced with 
26095 \begin_inset Flex Code
26096 status collapsed
26097
26098 \begin_layout Plain Layout
26099 Xfig
26100 \end_layout
26101
26102 \end_inset
26103
26104 .
26105  The Xfig application itself works on an original file with the 
26106 \begin_inset Flex Code
26107 status collapsed
26108
26109 \begin_layout Plain Layout
26110 .fig
26111 \end_layout
26112
26113 \end_inset
26114
26115  extension.
26116  Within Xfig, you create and change your figure, and when you are done,
26117  you save the 
26118 \begin_inset Flex Code
26119 status collapsed
26120
26121 \begin_layout Plain Layout
26122 fig
26123 \end_layout
26124
26125 \end_inset
26126
26127 -file.
26128  When you want to include the figure in your document, you invoke 
26129 \begin_inset Flex Code
26130 status collapsed
26131
26132 \begin_layout Plain Layout
26133 transfig
26134 \end_layout
26135
26136 \end_inset
26137
26138  in order to create a PostScript file that can readily be included in your
26139  \SpecialChar LaTeX
26140  file.
26141  In this case, the 
26142 \begin_inset Flex Code
26143 status collapsed
26144
26145 \begin_layout Plain Layout
26146 .fig
26147 \end_layout
26148
26149 \end_inset
26150
26151  file is the original file, and the PostScript file is the produced file.
26152 \end_layout
26153
26154 \begin_layout Standard
26155 This distinction is important in order to allow updating of the material
26156  while you are in the process of writing the document.
26157  Furthermore, it provides us with the flexibility that is needed to support
26158  multiple export formats.
26159  For instance, in the case of a plain text file, it is not exactly an award-winn
26160 ing idea to include the figure as raw PostScript.
26161  Instead, you would either prefer to just include a reference to the figure
26162  or try to invoke some graphics to ASCII converter to make the final result
26163  look similar to the real graphics.
26164  The external material management allows you to do this, because it is parametri
26165 zed on the different export formats that \SpecialChar LyX
26166  supports.
26167 \end_layout
26168
26169 \begin_layout Standard
26170 Besides supporting the production of different products according to the
26171  exported format, it supports tight integration with editing and viewing
26172  applications.
26173  In the case of an Xfig figure, you are able to invoke Xfig on the original
26174  file with a single click from within the external material dialog in \SpecialChar LyX
26175 ,
26176  and also preview the produced PostScript file with Ghostview with another
26177  click.
26178  No more fiddling around with the command line and/or file browsers to locate
26179  and manipulate the original or produced files.
26180  In this way, you are finally able to take full advantage of the many different
26181  applications that are relevant to use when you write your documents, and
26182  ultimately be more productive.
26183 \end_layout
26184
26185 \begin_layout Section
26186 The external template configuration files
26187 \end_layout
26188
26189 \begin_layout Standard
26190 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26191 .
26192  However, be aware that doing this in an careless manner most probably 
26193 \emph on
26194 will
26195 \emph default
26196  introduce an easily exploitable security hole.
26197  So before you do this, please read the discussion about security in 
26198 \begin_inset CommandInset ref
26199 LatexCommand ref
26200 reference "sec:Security-discussion"
26201
26202 \end_inset
26203
26204 .
26205 \end_layout
26206
26207 \begin_layout Standard
26208 Having said that, we encourage you to submit any interesting templates that
26209  you create.
26210  
26211 \end_layout
26212
26213 \begin_layout Standard
26214 The external templates are defined in the 
26215 \begin_inset Flex Code
26216 status collapsed
26217
26218 \begin_layout Plain Layout
26219 *.xtemplate
26220 \end_layout
26221
26222 \end_inset
26223
26224  files that are stored in the 
26225 \begin_inset Flex Code
26226 status collapsed
26227
26228 \begin_layout Plain Layout
26229 LyXDir/lib/xtemplates/
26230 \end_layout
26231
26232 \end_inset
26233
26234  directory.
26235  Each template is defined in a file of its own.
26236  You can place your own templates in 
26237 \begin_inset Flex Code
26238 status collapsed
26239
26240 \begin_layout Plain Layout
26241 UserDir/xtemplates/
26242 \end_layout
26243
26244 \end_inset
26245
26246  or copy existing templates to that directory in order to modify them.
26247 \end_layout
26248
26249 \begin_layout Standard
26250 A typical template looks like this:
26251 \end_layout
26252
26253 \begin_layout LyX-Code
26254 Template XFig
26255 \end_layout
26256
26257 \begin_layout LyX-Code
26258 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26259 \end_layout
26260
26261 \begin_layout LyX-Code
26262 HelpText
26263 \end_layout
26264
26265 \begin_layout LyX-Code
26266 An XFig figure.
26267 \end_layout
26268
26269 \begin_layout LyX-Code
26270 HelpTextEnd
26271 \end_layout
26272
26273 \begin_layout LyX-Code
26274 InputFormat fig
26275 \end_layout
26276
26277 \begin_layout LyX-Code
26278 FileFilter "*.fig"
26279 \end_layout
26280
26281 \begin_layout LyX-Code
26282 AutomaticProduction true
26283 \end_layout
26284
26285 \begin_layout LyX-Code
26286 Transform Rotate
26287 \end_layout
26288
26289 \begin_layout LyX-Code
26290 Transform Resize
26291 \end_layout
26292
26293 \begin_layout LyX-Code
26294 Format LaTeX
26295 \end_layout
26296
26297 \begin_layout LyX-Code
26298 TransformCommand Rotate RotationLatexCommand
26299 \end_layout
26300
26301 \begin_layout LyX-Code
26302 TransformCommand Resize ResizeLatexCommand
26303 \end_layout
26304
26305 \begin_layout LyX-Code
26306 Product "$$RotateFront$$ResizeFront
26307 \end_layout
26308
26309 \begin_layout LyX-Code
26310          
26311 \backslash
26312
26313 \backslash
26314 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26315 \end_layout
26316
26317 \begin_layout LyX-Code
26318          $$ResizeBack$$RotateBack"
26319 \end_layout
26320
26321 \begin_layout LyX-Code
26322 UpdateFormat pstex
26323 \end_layout
26324
26325 \begin_layout LyX-Code
26326 UpdateResult "$$AbsPath$$Basename.pstex_t"
26327 \end_layout
26328
26329 \begin_layout LyX-Code
26330 Requirement "graphicx"
26331 \end_layout
26332
26333 \begin_layout LyX-Code
26334 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26335 \end_layout
26336
26337 \begin_layout LyX-Code
26338 ReferencedFile latex "$$AbsPath$$Basename.eps"
26339 \end_layout
26340
26341 \begin_layout LyX-Code
26342 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26343 \end_layout
26344
26345 \begin_layout LyX-Code
26346 FormatEnd
26347 \end_layout
26348
26349 \begin_layout LyX-Code
26350 Format PDFLaTeX
26351 \end_layout
26352
26353 \begin_layout LyX-Code
26354 TransformCommand Rotate RotationLatexCommand
26355 \end_layout
26356
26357 \begin_layout LyX-Code
26358 TransformCommand Resize ResizeLatexCommand
26359 \end_layout
26360
26361 \begin_layout LyX-Code
26362 Product "$$RotateFront$$ResizeFront
26363 \end_layout
26364
26365 \begin_layout LyX-Code
26366          
26367 \backslash
26368
26369 \backslash
26370 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
26371 \end_layout
26372
26373 \begin_layout LyX-Code
26374          $$ResizeBack$$RotateBack"
26375 \end_layout
26376
26377 \begin_layout LyX-Code
26378 UpdateFormat pdftex
26379 \end_layout
26380
26381 \begin_layout LyX-Code
26382 UpdateResult "$$AbsPath$$Basename.pdftex_t"
26383 \end_layout
26384
26385 \begin_layout LyX-Code
26386 Requirement "graphicx"
26387 \end_layout
26388
26389 \begin_layout LyX-Code
26390 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
26391 \end_layout
26392
26393 \begin_layout LyX-Code
26394 ReferencedFile latex "$$AbsPath$$Basename.pdf"
26395 \end_layout
26396
26397 \begin_layout LyX-Code
26398 FormatEnd
26399 \end_layout
26400
26401 \begin_layout LyX-Code
26402 Format Ascii
26403 \end_layout
26404
26405 \begin_layout LyX-Code
26406 Product "[XFig: $$FName]"
26407 \end_layout
26408
26409 \begin_layout LyX-Code
26410 FormatEnd
26411 \end_layout
26412
26413 \begin_layout LyX-Code
26414 Format DocBook
26415 \end_layout
26416
26417 \begin_layout LyX-Code
26418 Product "<graphic fileref=
26419 \backslash
26420 "$$AbsOrRelPathMaster$$Basename.eps
26421 \backslash
26422 ">
26423 \end_layout
26424
26425 \begin_layout LyX-Code
26426          </graphic>"
26427 \end_layout
26428
26429 \begin_layout LyX-Code
26430 UpdateFormat eps
26431 \end_layout
26432
26433 \begin_layout LyX-Code
26434 UpdateResult "$$AbsPath$$Basename.eps"
26435 \end_layout
26436
26437 \begin_layout LyX-Code
26438 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26439 \end_layout
26440
26441 \begin_layout LyX-Code
26442 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26443 \end_layout
26444
26445 \begin_layout LyX-Code
26446 FormatEnd
26447 \end_layout
26448
26449 \begin_layout LyX-Code
26450 TemplateEnd
26451 \end_layout
26452
26453 \begin_layout Standard
26454 As you can see, the template is enclosed in 
26455 \begin_inset Flex Code
26456 status collapsed
26457
26458 \begin_layout Plain Layout
26459 Template
26460 \end_layout
26461
26462 \end_inset
26463
26464  \SpecialChar ldots
26465  
26466 \begin_inset Flex Code
26467 status collapsed
26468
26469 \begin_layout Plain Layout
26470 TemplateEnd
26471 \end_layout
26472
26473 \end_inset
26474
26475 .
26476  It contains a header specifying some general settings and, for each supported
26477  primary document file format, a section 
26478 \begin_inset Flex Code
26479 status collapsed
26480
26481 \begin_layout Plain Layout
26482 Format
26483 \end_layout
26484
26485 \end_inset
26486
26487  \SpecialChar ldots
26488  
26489 \begin_inset Flex Code
26490 status collapsed
26491
26492 \begin_layout Plain Layout
26493 FormatEnd
26494 \end_layout
26495
26496 \end_inset
26497
26498 .
26499 \end_layout
26500
26501 \begin_layout Subsection
26502 The template header
26503 \end_layout
26504
26505 \begin_layout Description
26506 \begin_inset Flex Code
26507 status collapsed
26508
26509 \begin_layout Plain Layout
26510 AutomaticProduction
26511 \begin_inset space ~
26512 \end_inset
26513
26514 true|false
26515 \end_layout
26516
26517 \end_inset
26518
26519  Whether the file represented by the template must be generated by \SpecialChar LyX
26520 .
26521  This command must occur exactly once.
26522 \end_layout
26523
26524 \begin_layout Description
26525 \begin_inset Flex Code
26526 status collapsed
26527
26528 \begin_layout Plain Layout
26529 FileFilter
26530 \begin_inset space ~
26531 \end_inset
26532
26533 <pattern>
26534 \end_layout
26535
26536 \end_inset
26537
26538  A glob pattern that is used in the file dialog to filter out the desired
26539  files.
26540  If there is more than one possible file extension (e.
26541 \begin_inset space \thinspace{}
26542 \end_inset
26543
26544 g.
26545 \begin_inset space \space{}
26546 \end_inset
26547
26548 tgif has 
26549 \begin_inset Flex Code
26550 status collapsed
26551
26552 \begin_layout Plain Layout
26553 .obj
26554 \end_layout
26555
26556 \end_inset
26557
26558  and 
26559 \begin_inset Flex Code
26560 status collapsed
26561
26562 \begin_layout Plain Layout
26563 .tgo
26564 \end_layout
26565
26566 \end_inset
26567
26568 ), use something like 
26569 \begin_inset Flex Code
26570 status collapsed
26571
26572 \begin_layout Plain Layout
26573 "*.{obj,tgo}"
26574 \end_layout
26575
26576 \end_inset
26577
26578 .
26579  This command must occur exactly once.
26580 \end_layout
26581
26582 \begin_layout Description
26583 \begin_inset Flex Code
26584 status collapsed
26585
26586 \begin_layout Plain Layout
26587 GuiName
26588 \begin_inset space ~
26589 \end_inset
26590
26591 <guiname>
26592 \end_layout
26593
26594 \end_inset
26595
26596  The text that is displayed on the button.
26597  This command must occur exactly once.
26598 \end_layout
26599
26600 \begin_layout Description
26601 \begin_inset Flex Code
26602 status collapsed
26603
26604 \begin_layout Plain Layout
26605 HelpText
26606 \begin_inset space ~
26607 \end_inset
26608
26609 <text>
26610 \begin_inset space ~
26611 \end_inset
26612
26613 HelpTextEnd
26614 \end_layout
26615
26616 \end_inset
26617
26618  The help text that is used in the External dialog.
26619  Provide enough information to explain to the user just what the template
26620  can provide him with.
26621  This command must occur exactly once.
26622 \end_layout
26623
26624 \begin_layout Description
26625 \begin_inset Flex Code
26626 status collapsed
26627
26628 \begin_layout Plain Layout
26629 InputFormat
26630 \begin_inset space ~
26631 \end_inset
26632
26633 <format>
26634 \end_layout
26635
26636 \end_inset
26637
26638  The file format of the original file.
26639  This must be the name of a format that is known to \SpecialChar LyX
26640  (see 
26641 \begin_inset CommandInset ref
26642 LatexCommand ref
26643 reference "sec:Formats"
26644
26645 \end_inset
26646
26647 ).
26648  Use 
26649 \begin_inset Quotes eld
26650 \end_inset
26651
26652
26653 \begin_inset Flex Code
26654 status collapsed
26655
26656 \begin_layout Plain Layout
26657 *
26658 \end_layout
26659
26660 \end_inset
26661
26662
26663 \begin_inset Quotes erd
26664 \end_inset
26665
26666  if the template can handle original files of more than one format.
26667  \SpecialChar LyX
26668  will attempt to interrogate the file itself in order to deduce its format
26669  in this case.
26670  This command must occur exactly once.
26671 \end_layout
26672
26673 \begin_layout Description
26674 \begin_inset Flex Code
26675 status collapsed
26676
26677 \begin_layout Plain Layout
26678 Template
26679 \begin_inset space ~
26680 \end_inset
26681
26682 <id>
26683 \end_layout
26684
26685 \end_inset
26686
26687  A unique name for the template.
26688  It must not contain substitution macros (see below).
26689 \end_layout
26690
26691 \begin_layout Description
26692 \begin_inset Flex Code
26693 status collapsed
26694
26695 \begin_layout Plain Layout
26696 Transform
26697 \begin_inset space ~
26698 \end_inset
26699
26700 Rotate|Resize|Clip|Extra
26701 \end_layout
26702
26703 \end_inset
26704
26705  This command specifies which transformations are supported by this template.
26706  It may occur zero or more times.
26707  This command enables the corresponding tabs in the external dialog.
26708  Each 
26709 \begin_inset Flex Code
26710 status collapsed
26711
26712 \begin_layout Plain Layout
26713 Transform
26714 \end_layout
26715
26716 \end_inset
26717
26718  command must have either a corresponding 
26719 \begin_inset Flex Code
26720 status collapsed
26721
26722 \begin_layout Plain Layout
26723 TransformCommand
26724 \end_layout
26725
26726 \end_inset
26727
26728  or a 
26729 \begin_inset Flex Code
26730 status collapsed
26731
26732 \begin_layout Plain Layout
26733 TransformOption
26734 \end_layout
26735
26736 \end_inset
26737
26738  command in the 
26739 \begin_inset Flex Code
26740 status collapsed
26741
26742 \begin_layout Plain Layout
26743 Format
26744 \end_layout
26745
26746 \end_inset
26747
26748  section.
26749  Otherwise the transformation will not be supported by that format.
26750 \end_layout
26751
26752 \begin_layout Subsection
26753 The Format section
26754 \end_layout
26755
26756 \begin_layout Description
26757 \begin_inset Flex Code
26758 status collapsed
26759
26760 \begin_layout Plain Layout
26761 Format
26762 \begin_inset space ~
26763 \end_inset
26764
26765 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26766 \end_layout
26767
26768 \end_inset
26769
26770  The primary document file format that this format definition is for.
26771  Not every template has a sensible representation in all document file formats.
26772  Please define nevertheless a 
26773 \begin_inset Flex Code
26774 status collapsed
26775
26776 \begin_layout Plain Layout
26777 Format
26778 \end_layout
26779
26780 \end_inset
26781
26782  section for all templates.
26783  Use a dummy text when no representation is available.
26784  Then you can at least see a reference to the external material in the exported
26785  document.
26786 \end_layout
26787
26788 \begin_layout Description
26789 \begin_inset Flex Code
26790 status collapsed
26791
26792 \begin_layout Plain Layout
26793 Option
26794 \begin_inset space ~
26795 \end_inset
26796
26797 <name>
26798 \begin_inset space ~
26799 \end_inset
26800
26801 <value>
26802 \end_layout
26803
26804 \end_inset
26805
26806  This command defines an additional macro 
26807 \begin_inset Flex Code
26808 status collapsed
26809
26810 \begin_layout Plain Layout
26811 $$<name>
26812 \end_layout
26813
26814 \end_inset
26815
26816  for substitution in 
26817 \begin_inset Flex Code
26818 status collapsed
26819
26820 \begin_layout Plain Layout
26821 Product
26822 \end_layout
26823
26824 \end_inset
26825
26826 .
26827  
26828 \begin_inset Flex Code
26829 status collapsed
26830
26831 \begin_layout Plain Layout
26832 <value>
26833 \end_layout
26834
26835 \end_inset
26836
26837  itself may contain substitution macros.
26838  The advantage over using 
26839 \begin_inset Flex Code
26840 status collapsed
26841
26842 \begin_layout Plain Layout
26843 <value>
26844 \end_layout
26845
26846 \end_inset
26847
26848  directly in 
26849 \begin_inset Flex Code
26850 status collapsed
26851
26852 \begin_layout Plain Layout
26853 Product
26854 \end_layout
26855
26856 \end_inset
26857
26858  is that the substituted value of 
26859 \begin_inset Flex Code
26860 status collapsed
26861
26862 \begin_layout Plain Layout
26863 $$<name>
26864 \end_layout
26865
26866 \end_inset
26867
26868  is sanitized so that it is a valid optional argument in the document format.
26869  This command may occur zero or more times.
26870 \end_layout
26871
26872 \begin_layout Description
26873 \begin_inset Flex Code
26874 status collapsed
26875
26876 \begin_layout Plain Layout
26877 Product
26878 \begin_inset space ~
26879 \end_inset
26880
26881 <text>
26882 \end_layout
26883
26884 \end_inset
26885
26886  The text that is inserted in the exported document.
26887  This is actually the most important command and can be quite complex.
26888  This command must occur exactly once.
26889 \end_layout
26890
26891 \begin_layout Description
26892 \begin_inset Flex Code
26893 status collapsed
26894
26895 \begin_layout Plain Layout
26896 Preamble
26897 \begin_inset space ~
26898 \end_inset
26899
26900 <name>
26901 \end_layout
26902
26903 \end_inset
26904
26905  This command specifies a preamble snippet that will be included in the
26906  \SpecialChar LaTeX
26907  preamble.
26908  It has to be defined using 
26909 \begin_inset Flex Code
26910 status collapsed
26911
26912 \begin_layout Plain Layout
26913 PreambleDef
26914 \end_layout
26915
26916 \end_inset
26917
26918  \SpecialChar ldots
26919  
26920 \begin_inset Flex Code
26921 status collapsed
26922
26923 \begin_layout Plain Layout
26924 PreambleDefEnd
26925 \end_layout
26926
26927 \end_inset
26928
26929 .
26930  This command may occur zero or more times.
26931 \end_layout
26932
26933 \begin_layout Description
26934 \begin_inset Flex Code
26935 status collapsed
26936
26937 \begin_layout Plain Layout
26938 ReferencedFile
26939 \begin_inset space ~
26940 \end_inset
26941
26942 <format>
26943 \begin_inset space ~
26944 \end_inset
26945
26946 <filename>
26947 \end_layout
26948
26949 \end_inset
26950
26951  This command denotes files that are created by the conversion process and
26952  are needed for a particular export format.
26953  If the filename is relative, it is interpreted relative to the master document.
26954  This command may be given zero or more times.
26955 \end_layout
26956
26957 \begin_layout Description
26958 \begin_inset Flex Code
26959 status collapsed
26960
26961 \begin_layout Plain Layout
26962 Requirement
26963 \begin_inset space ~
26964 \end_inset
26965
26966 <package>
26967 \end_layout
26968
26969 \end_inset
26970
26971  The name of a required \SpecialChar LaTeX
26972  package.
26973  The package is included via 
26974 \begin_inset Flex Code
26975 status collapsed
26976
26977 \begin_layout Plain Layout
26978
26979 \backslash
26980 usepackage{}
26981 \end_layout
26982
26983 \end_inset
26984
26985  in the \SpecialChar LaTeX
26986  preamble.
26987  This command may occur zero or more times.
26988 \end_layout
26989
26990 \begin_layout Description
26991 \begin_inset Flex Code
26992 status collapsed
26993
26994 \begin_layout Plain Layout
26995 TransformCommand
26996 \begin_inset space ~
26997 \end_inset
26998
26999 Rotate
27000 \begin_inset space ~
27001 \end_inset
27002
27003 RotationLatexCommand
27004 \end_layout
27005
27006 \end_inset
27007
27008  This command specifies that the built in \SpecialChar LaTeX
27009  command should be used for rotation.
27010  This command may occur once or not at all.
27011 \end_layout
27012
27013 \begin_layout Description
27014 \begin_inset Flex Code
27015 status collapsed
27016
27017 \begin_layout Plain Layout
27018 TransformCommand
27019 \begin_inset space ~
27020 \end_inset
27021
27022 Resize
27023 \begin_inset space ~
27024 \end_inset
27025
27026 ResizeLatexCommand
27027 \end_layout
27028
27029 \end_inset
27030
27031  This command specifies that the built in \SpecialChar LaTeX
27032  command should be used for resizing.
27033  This command may occur once or not at all.
27034 \end_layout
27035
27036 \begin_layout Description
27037 \begin_inset Flex Code
27038 status collapsed
27039
27040 \begin_layout Plain Layout
27041 TransformOption
27042 \begin_inset space ~
27043 \end_inset
27044
27045 Rotate
27046 \begin_inset space ~
27047 \end_inset
27048
27049 RotationLatexOption
27050 \end_layout
27051
27052 \end_inset
27053
27054  This command specifies that rotation is done via an optional argument.
27055  This command may occur once or not at all.
27056 \end_layout
27057
27058 \begin_layout Description
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 TransformOption
27064 \begin_inset space ~
27065 \end_inset
27066
27067 Resize
27068 \begin_inset space ~
27069 \end_inset
27070
27071 ResizeLatexOption
27072 \end_layout
27073
27074 \end_inset
27075
27076  This command specifies that resizing is done via an optional argument.
27077  This command may occur once or not at all.
27078 \end_layout
27079
27080 \begin_layout Description
27081 \begin_inset Flex Code
27082 status collapsed
27083
27084 \begin_layout Plain Layout
27085 TransformOption
27086 \begin_inset space ~
27087 \end_inset
27088
27089 Clip
27090 \begin_inset space ~
27091 \end_inset
27092
27093 ClipLatexOption
27094 \end_layout
27095
27096 \end_inset
27097
27098  This command specifies that clipping is done via an optional argument.
27099  This command may occur once or not at all.
27100 \end_layout
27101
27102 \begin_layout Description
27103 \begin_inset Flex Code
27104 status collapsed
27105
27106 \begin_layout Plain Layout
27107 TransformOption
27108 \begin_inset space ~
27109 \end_inset
27110
27111 Extra
27112 \begin_inset space ~
27113 \end_inset
27114
27115 ExtraLatexOption
27116 \end_layout
27117
27118 \end_inset
27119
27120  This command specifies that an extra optional argument is used.
27121  This command may occur once or not at all.
27122 \end_layout
27123
27124 \begin_layout Description
27125 \begin_inset Flex Code
27126 status collapsed
27127
27128 \begin_layout Plain Layout
27129 UpdateFormat
27130 \begin_inset space ~
27131 \end_inset
27132
27133 <format>
27134 \end_layout
27135
27136 \end_inset
27137
27138  The file format of the converted file.
27139  This must be the name of a format that is known to \SpecialChar LyX
27140  (see the 
27141 \begin_inset Flex Noun
27142 status collapsed
27143
27144 \begin_layout Plain Layout
27145 Tools\SpecialChar menuseparator
27146 Preferences\SpecialChar menuseparator
27147 File Handling\SpecialChar menuseparator
27148 File Format
27149 \end_layout
27150
27151 \end_inset
27152
27153  dialog).
27154  This command must occur exactly once.
27155  If the resulting file format is PDF, you need to specify the format 
27156 \begin_inset Flex Code
27157 status collapsed
27158
27159 \begin_layout Plain Layout
27160 pdf6
27161 \end_layout
27162
27163 \end_inset
27164
27165 .
27166  This is the PDF format used for including graphics.
27167  The other defined PDF formats are for document export.
27168 \end_layout
27169
27170 \begin_layout Description
27171 \begin_inset Flex Code
27172 status collapsed
27173
27174 \begin_layout Plain Layout
27175 UpdateResult
27176 \begin_inset space ~
27177 \end_inset
27178
27179 <filename>
27180 \end_layout
27181
27182 \end_inset
27183
27184  The file name of the converted file.
27185  The file name must be absolute.
27186  This command must occur exactly once.
27187 \end_layout
27188
27189 \begin_layout Subsection
27190 Preamble definitions
27191 \end_layout
27192
27193 \begin_layout Standard
27194 The external template configuration file may contain additional preamble
27195  definitions enclosed by 
27196 \begin_inset Flex Code
27197 status collapsed
27198
27199 \begin_layout Plain Layout
27200 PreambleDef
27201 \end_layout
27202
27203 \end_inset
27204
27205  \SpecialChar ldots
27206  
27207 \begin_inset Flex Code
27208 status collapsed
27209
27210 \begin_layout Plain Layout
27211 PreambleDefEnd
27212 \end_layout
27213
27214 \end_inset
27215
27216 .
27217  They can be used by the templates in the 
27218 \begin_inset Flex Code
27219 status collapsed
27220
27221 \begin_layout Plain Layout
27222 Format
27223 \end_layout
27224
27225 \end_inset
27226
27227  section.
27228 \end_layout
27229
27230 \begin_layout Section
27231 The substitution mechanism
27232 \end_layout
27233
27234 \begin_layout Standard
27235 When the external material facility invokes an external program, it is done
27236  on the basis of a command defined in the template configuration file.
27237  These commands can contain various macros that are expanded before execution.
27238  Execution always take place in the directory of the containing document.
27239 \end_layout
27240
27241 \begin_layout Standard
27242 Also, whenever external material is to be displayed, the name will be produced
27243  by the substitution mechanism, and most other commands in the template
27244  definition support substitution as well.
27245 \end_layout
27246
27247 \begin_layout Standard
27248 The available macros are the following:
27249 \end_layout
27250
27251 \begin_layout Description
27252 \begin_inset Flex Code
27253 status collapsed
27254
27255 \begin_layout Plain Layout
27256 $$AbsOrRelPathMaster
27257 \end_layout
27258
27259 \end_inset
27260
27261  The file path, absolute or relative to the master \SpecialChar LyX
27262  document.
27263 \end_layout
27264
27265 \begin_layout Description
27266 \begin_inset Flex Code
27267 status collapsed
27268
27269 \begin_layout Plain Layout
27270 $$AbsOrRelPathParent
27271 \end_layout
27272
27273 \end_inset
27274
27275  The file path, absolute or relative to the \SpecialChar LyX
27276  document.
27277 \end_layout
27278
27279 \begin_layout Description
27280 \begin_inset Flex Code
27281 status collapsed
27282
27283 \begin_layout Plain Layout
27284 $$AbsPath
27285 \end_layout
27286
27287 \end_inset
27288
27289  The absolute file path.
27290 \end_layout
27291
27292 \begin_layout Description
27293 \begin_inset Flex Code
27294 status collapsed
27295
27296 \begin_layout Plain Layout
27297 $$Basename
27298 \end_layout
27299
27300 \end_inset
27301
27302  The filename without path and without the extension.
27303 \end_layout
27304
27305 \begin_layout Description
27306 \begin_inset Flex Code
27307 status collapsed
27308
27309 \begin_layout Plain Layout
27310 $$Contents(
27311 \begin_inset Quotes eld
27312 \end_inset
27313
27314 filename.ext
27315 \begin_inset Quotes erd
27316 \end_inset
27317
27318 )
27319 \end_layout
27320
27321 \end_inset
27322
27323  This macro will expand to the contents of the file with the name 
27324 \begin_inset Flex Code
27325 status collapsed
27326
27327 \begin_layout Plain Layout
27328 filename.ext
27329 \end_layout
27330
27331 \end_inset
27332
27333 .
27334 \end_layout
27335
27336 \begin_layout Description
27337 \begin_inset Flex Code
27338 status collapsed
27339
27340 \begin_layout Plain Layout
27341 $$Extension
27342 \end_layout
27343
27344 \end_inset
27345
27346  The file extension (including the dot).
27347 \end_layout
27348
27349 \begin_layout Description
27350 \begin_inset Flex Code
27351 status collapsed
27352
27353 \begin_layout Plain Layout
27354 $$pngOrjpg
27355 \end_layout
27356
27357 \end_inset
27358
27359  This will be the string 
27360 \begin_inset Quotes eld
27361 \end_inset
27362
27363 jpg
27364 \begin_inset Quotes erd
27365 \end_inset
27366
27367  if the file is in JPEG format, otherwise it will be the string 
27368 \begin_inset Quotes eld
27369 \end_inset
27370
27371 png
27372 \begin_inset Quotes erd
27373 \end_inset
27374
27375 .
27376  This is useful to avoid uneeded conversions for output formats that support
27377  both PNG and JPEG fomats.
27378  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
27379  output
27380  format.
27381 \end_layout
27382
27383 \begin_layout Description
27384 \begin_inset Flex Code
27385 status collapsed
27386
27387 \begin_layout Plain Layout
27388 $$FName
27389 \end_layout
27390
27391 \end_inset
27392
27393  The filename of the file specified in the external material dialog.
27394  This is either an absolute name, or it is relative to the \SpecialChar LyX
27395  document.
27396 \end_layout
27397
27398 \begin_layout Description
27399 \begin_inset Flex Code
27400 status collapsed
27401
27402 \begin_layout Plain Layout
27403 $$FPath
27404 \end_layout
27405
27406 \end_inset
27407
27408  The path part of 
27409 \begin_inset Flex Code
27410 status collapsed
27411
27412 \begin_layout Plain Layout
27413 $$FName
27414 \end_layout
27415
27416 \end_inset
27417
27418  (absolute name or relative to the \SpecialChar LyX
27419  document).
27420 \end_layout
27421
27422 \begin_layout Description
27423 \begin_inset Flex Code
27424 status collapsed
27425
27426 \begin_layout Plain Layout
27427 $$RelPathMaster
27428 \end_layout
27429
27430 \end_inset
27431
27432  The file path, relative to the master \SpecialChar LyX
27433  document.
27434 \end_layout
27435
27436 \begin_layout Description
27437 \begin_inset Flex Code
27438 status collapsed
27439
27440 \begin_layout Plain Layout
27441 $$RelPathParent
27442 \end_layout
27443
27444 \end_inset
27445
27446  The file path, relative to the \SpecialChar LyX
27447  document.
27448 \end_layout
27449
27450 \begin_layout Description
27451 \begin_inset Flex Code
27452 status collapsed
27453
27454 \begin_layout Plain Layout
27455 $$Sysdir
27456 \end_layout
27457
27458 \end_inset
27459
27460  This macro will expand to the absolute path of the system directory.
27461  This is typically used to point to the various helper scripts that are
27462  bundled with \SpecialChar LyX
27463 .
27464 \end_layout
27465
27466 \begin_layout Description
27467 \begin_inset Flex Code
27468 status collapsed
27469
27470 \begin_layout Plain Layout
27471 $$Tempname
27472 \end_layout
27473
27474 \end_inset
27475
27476  A name and full path to a temporary file which will be automatically deleted
27477  whenever the containing document is closed, or the external material insertion
27478  deleted.
27479 \end_layout
27480
27481 \begin_layout Standard
27482 All path macros contain a trailing directory separator, so you can construct
27483  e.
27484 \begin_inset space \thinspace{}
27485 \end_inset
27486
27487 g.
27488 \begin_inset space \space{}
27489 \end_inset
27490
27491 the absolute filename with 
27492 \begin_inset Flex Code
27493 status collapsed
27494
27495 \begin_layout Plain Layout
27496 $$AbsPath$$Basename$$Extension
27497 \end_layout
27498
27499 \end_inset
27500
27501 .
27502 \end_layout
27503
27504 \begin_layout Standard
27505 The macros above are substituted in all commands unless otherwise noted.
27506  The command 
27507 \begin_inset Flex Code
27508 status collapsed
27509
27510 \begin_layout Plain Layout
27511 Product
27512 \end_layout
27513
27514 \end_inset
27515
27516  supports additionally the following substitutions if they are enabled by
27517  the 
27518 \begin_inset Flex Code
27519 status collapsed
27520
27521 \begin_layout Plain Layout
27522 Transform
27523 \end_layout
27524
27525 \end_inset
27526
27527  and 
27528 \begin_inset Flex Code
27529 status collapsed
27530
27531 \begin_layout Plain Layout
27532 TransformCommand
27533 \end_layout
27534
27535 \end_inset
27536
27537  commands:
27538 \end_layout
27539
27540 \begin_layout Description
27541 \begin_inset Flex Code
27542 status collapsed
27543
27544 \begin_layout Plain Layout
27545 $$ResizeFront
27546 \end_layout
27547
27548 \end_inset
27549
27550  The front part of the resize command.
27551 \end_layout
27552
27553 \begin_layout Description
27554 \begin_inset Flex Code
27555 status collapsed
27556
27557 \begin_layout Plain Layout
27558 $$ResizeBack
27559 \end_layout
27560
27561 \end_inset
27562
27563  The back part of the resize command.
27564 \end_layout
27565
27566 \begin_layout Description
27567 \begin_inset Flex Code
27568 status collapsed
27569
27570 \begin_layout Plain Layout
27571 $$RotateFront
27572 \end_layout
27573
27574 \end_inset
27575
27576  The front part of the rotation command.
27577 \end_layout
27578
27579 \begin_layout Description
27580 \begin_inset Flex Code
27581 status collapsed
27582
27583 \begin_layout Plain Layout
27584 $$RotateBack
27585 \end_layout
27586
27587 \end_inset
27588
27589  The back part of the rotation command.
27590 \end_layout
27591
27592 \begin_layout Standard
27593 The value string of the 
27594 \begin_inset Flex Code
27595 status collapsed
27596
27597 \begin_layout Plain Layout
27598 Option
27599 \end_layout
27600
27601 \end_inset
27602
27603  command supports additionally the following substitutions if they are enabled
27604  by the 
27605 \begin_inset Flex Code
27606 status collapsed
27607
27608 \begin_layout Plain Layout
27609 Transform
27610 \end_layout
27611
27612 \end_inset
27613
27614  and 
27615 \begin_inset Flex Code
27616 status collapsed
27617
27618 \begin_layout Plain Layout
27619 TransformOption
27620 \end_layout
27621
27622 \end_inset
27623
27624  commands:
27625 \end_layout
27626
27627 \begin_layout Description
27628 \begin_inset Flex Code
27629 status collapsed
27630
27631 \begin_layout Plain Layout
27632 $$Clip
27633 \end_layout
27634
27635 \end_inset
27636
27637  The clip option.
27638 \end_layout
27639
27640 \begin_layout Description
27641 \begin_inset Flex Code
27642 status collapsed
27643
27644 \begin_layout Plain Layout
27645 $$Extra
27646 \end_layout
27647
27648 \end_inset
27649
27650  The extra option.
27651 \end_layout
27652
27653 \begin_layout Description
27654 \begin_inset Flex Code
27655 status collapsed
27656
27657 \begin_layout Plain Layout
27658 $$Resize
27659 \end_layout
27660
27661 \end_inset
27662
27663  The resize option.
27664 \end_layout
27665
27666 \begin_layout Description
27667 \begin_inset Flex Code
27668 status collapsed
27669
27670 \begin_layout Plain Layout
27671 $$Rotate
27672 \end_layout
27673
27674 \end_inset
27675
27676  The rotation option.
27677 \end_layout
27678
27679 \begin_layout Standard
27680 You may ask why there are so many path macros.
27681  There are mainly two reasons:
27682 \end_layout
27683
27684 \begin_layout Enumerate
27685 Relative and absolute file names should remain relative or absolute, respectivel
27686 y.
27687  Users may have reasons to prefer either form.
27688  Relative names are useful for portable documents that should work on different
27689  machines, for example.
27690  Absolute names may be required by some programs.
27691 \end_layout
27692
27693 \begin_layout Enumerate
27694 \SpecialChar LaTeX
27695  treats relative file names differently than \SpecialChar LyX
27696  and other programs in nested
27697  included files.
27698  For \SpecialChar LyX
27699 , a relative file name is always relative to the document that contains
27700  the file name.
27701  For \SpecialChar LaTeX
27702 , it is always relative to the master document.
27703  These two definitions are identical if you have only one document, but
27704  differ if you have a master document that includes part documents.
27705  That means that relative filenames must be transformed when presented to
27706  \SpecialChar LaTeX
27707 .
27708  Fortunately \SpecialChar LyX
27709  does this automatically for you if you choose the right macros.
27710 \end_layout
27711
27712 \begin_layout Standard
27713 So which path macro should be used in new template definitions? The rule
27714  is not difficult:
27715 \end_layout
27716
27717 \begin_layout Itemize
27718 Use 
27719 \begin_inset Flex Code
27720 status collapsed
27721
27722 \begin_layout Plain Layout
27723 $$AbsPath
27724 \end_layout
27725
27726 \end_inset
27727
27728  if an absolute path is required.
27729 \end_layout
27730
27731 \begin_layout Itemize
27732 Use 
27733 \begin_inset Flex Code
27734 status collapsed
27735
27736 \begin_layout Plain Layout
27737 $$AbsOrRelPathMaster
27738 \end_layout
27739
27740 \end_inset
27741
27742  if the substituted string is some kind of \SpecialChar LaTeX
27743  input.
27744 \end_layout
27745
27746 \begin_layout Itemize
27747 Else use 
27748 \begin_inset Flex Code
27749 status collapsed
27750
27751 \begin_layout Plain Layout
27752 $$AbsOrRelPathParent
27753 \end_layout
27754
27755 \end_inset
27756
27757  in order to preserve the user's choice.
27758 \end_layout
27759
27760 \begin_layout Standard
27761 There are special cases where this rule does not work and e.
27762 \begin_inset space \thinspace{}
27763 \end_inset
27764
27765 g.
27766 \begin_inset space \space{}
27767 \end_inset
27768
27769 relative names are needed, but normally it will work just fine.
27770  One example for such a case is the command 
27771 \begin_inset Flex Code
27772 status collapsed
27773
27774 \begin_layout Plain Layout
27775 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27776 \end_layout
27777
27778 \end_inset
27779
27780  in the XFig template above: We can't use the absolute name because the
27781  copier for 
27782 \begin_inset Flex Code
27783 status collapsed
27784
27785 \begin_layout Plain Layout
27786 .pstex_t
27787 \end_layout
27788
27789 \end_inset
27790
27791  files needs the relative name in order to rewrite the file content.
27792 \end_layout
27793
27794 \begin_layout Section
27795 Security discussion
27796 \begin_inset CommandInset label
27797 LatexCommand label
27798 name "sec:Security-discussion"
27799
27800 \end_inset
27801
27802
27803 \end_layout
27804
27805 \begin_layout Standard
27806 The external material feature interfaces with a lot of external programs
27807  and does so automatically, so we have to consider the security implications
27808  of this.
27809  In particular, since you have the option of including your own filenames
27810  and/or parameter strings and those are expanded into a command, it seems
27811  that it would be possible to create a malicious document which executes
27812  arbitrary commands when a user views or prints the document.
27813  This is something we definitely want to avoid.
27814 \end_layout
27815
27816 \begin_layout Standard
27817 However, since the external program commands are specified in the template
27818  configuration file only, there are no security issues if \SpecialChar LyX
27819  is properly configure
27820 d with safe templates only.
27821  This is so because the external programs are invoked with the 
27822 \begin_inset Flex Code
27823 status collapsed
27824
27825 \begin_layout Plain Layout
27826 execvp
27827 \end_layout
27828
27829 \end_inset
27830
27831 -system call rather than the 
27832 \begin_inset Flex Code
27833 status collapsed
27834
27835 \begin_layout Plain Layout
27836 system
27837 \end_layout
27838
27839 \end_inset
27840
27841  system-call, so it's not possible to execute arbitrary commands from the
27842  filename or parameter section via the shell.
27843 \end_layout
27844
27845 \begin_layout Standard
27846 This also implies that you are restricted in what command strings you can
27847  use in the external material templates.
27848  In particular, pipes and redirection are not readily available.
27849  This has to be so if \SpecialChar LyX
27850  should remain safe.
27851  If you want to use some of the shell features, you should write a safe
27852  script to do this in a controlled manner, and then invoke the script from
27853  the command string.
27854  
27855 \end_layout
27856
27857 \begin_layout Standard
27858 It is possible to design a template that interacts directly with the shell,
27859  but since this would allow a malicious user to execute arbitrary commands
27860  by writing clever filenames and/or parameters, we generally recommend that
27861  you only use safe scripts that work with the 
27862 \begin_inset Flex Code
27863 status collapsed
27864
27865 \begin_layout Plain Layout
27866 execvp
27867 \end_layout
27868
27869 \end_inset
27870
27871  system call in a controlled manner.
27872  Of course, for use in a controlled environment, it can be tempting to just
27873  fall back to use ordinary shell scripts.
27874  If you do so, be aware that you 
27875 \emph on
27876 will
27877 \emph default
27878  provide an easily exploitable security hole in your system.
27879  Of course it stands to reason that such unsafe templates will never be
27880  included in the standard \SpecialChar LyX
27881  distribution, although we do encourage people
27882  to submit new templates in the open source tradition.
27883  But \SpecialChar LyX
27884  as shipped from the official distribution channels will never have
27885  unsafe templates.
27886 \end_layout
27887
27888 \begin_layout Standard
27889 Including external material provides a lot of power, and you have to be
27890  careful not to introduce security hazards with this power.
27891  A subtle error in a single line in an innocent looking script can open
27892  the door to huge security problems.
27893  So if you do not fully understand the issues, we recommend that you consult
27894  a knowledgeable security professional or the \SpecialChar LyX
27895  development team if you have
27896  any questions about whether a given template is safe or not.
27897  And do this before you use it in an uncontrolled environment.
27898 \end_layout
27899
27900 \begin_layout Chapter
27901 \start_of_appendix
27902 List of supported \SpecialChar LyX
27903  functions to be used in layouts
27904 \begin_inset CommandInset label
27905 LatexCommand label
27906 name "chap:List-of-functions"
27907
27908 \end_inset
27909
27910
27911 \end_layout
27912
27913 \begin_layout Standard
27914 \align center
27915 \begin_inset Tabular
27916 <lyxtabular version="3" rows="11" columns="8">
27917 <features tabularvalignment="middle">
27918 <column alignment="left" valignment="top">
27919 <column alignment="left" valignment="top">
27920 <column alignment="left" valignment="top">
27921 <column alignment="left" valignment="top">
27922 <column alignment="left" valignment="top">
27923 <column alignment="left" valignment="top">
27924 <column alignment="left" valignment="top">
27925 <column alignment="left" valignment="top">
27926 <row>
27927 <cell alignment="left" valignment="top" usebox="none">
27928 \begin_inset Text
27929
27930 \begin_layout Plain Layout
27931 accents
27932 \end_layout
27933
27934 \end_inset
27935 </cell>
27936 <cell alignment="left" valignment="top" usebox="none">
27937 \begin_inset Text
27938
27939 \begin_layout Plain Layout
27940 booktabs
27941 \end_layout
27942
27943 \end_inset
27944 </cell>
27945 <cell alignment="left" valignment="top" usebox="none">
27946 \begin_inset Text
27947
27948 \begin_layout Plain Layout
27949 feyn
27950 \end_layout
27951
27952 \end_inset
27953 </cell>
27954 <cell alignment="left" valignment="top" usebox="none">
27955 \begin_inset Text
27956
27957 \begin_layout Plain Layout
27958 listings
27959 \end_layout
27960
27961 \end_inset
27962 </cell>
27963 <cell alignment="center" valignment="top" usebox="none">
27964 \begin_inset Text
27965
27966 \begin_layout Plain Layout
27967 natbib
27968 \end_layout
27969
27970 \end_inset
27971 </cell>
27972 <cell alignment="center" valignment="top" usebox="none">
27973 \begin_inset Text
27974
27975 \begin_layout Plain Layout
27976 rotfloat
27977 \end_layout
27978
27979 \end_inset
27980 </cell>
27981 <cell alignment="center" valignment="top" usebox="none">
27982 \begin_inset Text
27983
27984 \begin_layout Plain Layout
27985 tfrupee
27986 \end_layout
27987
27988 \end_inset
27989 </cell>
27990 <cell alignment="center" valignment="top" usebox="none">
27991 \begin_inset Text
27992
27993 \begin_layout Plain Layout
27994 wasysym
27995 \end_layout
27996
27997 \end_inset
27998 </cell>
27999 </row>
28000 <row>
28001 <cell alignment="left" valignment="top" usebox="none">
28002 \begin_inset Text
28003
28004 \begin_layout Plain Layout
28005 amsbsy
28006 \end_layout
28007
28008 \end_inset
28009 </cell>
28010 <cell alignment="left" valignment="top" usebox="none">
28011 \begin_inset Text
28012
28013 \begin_layout Plain Layout
28014 calc
28015 \end_layout
28016
28017 \end_inset
28018 </cell>
28019 <cell alignment="left" valignment="top" usebox="none">
28020 \begin_inset Text
28021
28022 \begin_layout Plain Layout
28023 fixltx2e
28024 \end_layout
28025
28026 \end_inset
28027 </cell>
28028 <cell alignment="left" valignment="top" usebox="none">
28029 \begin_inset Text
28030
28031 \begin_layout Plain Layout
28032 longtable
28033 \end_layout
28034
28035 \end_inset
28036 </cell>
28037 <cell alignment="center" valignment="top" usebox="none">
28038 \begin_inset Text
28039
28040 \begin_layout Plain Layout
28041 nomencl
28042 \end_layout
28043
28044 \end_inset
28045 </cell>
28046 <cell alignment="center" valignment="top" usebox="none">
28047 \begin_inset Text
28048
28049 \begin_layout Plain Layout
28050 rsphrase
28051 \end_layout
28052
28053 \end_inset
28054 </cell>
28055 <cell alignment="center" valignment="top" usebox="none">
28056 \begin_inset Text
28057
28058 \begin_layout Plain Layout
28059 tipa
28060 \end_layout
28061
28062 \end_inset
28063 </cell>
28064 <cell alignment="center" valignment="top" usebox="none">
28065 \begin_inset Text
28066
28067 \begin_layout Plain Layout
28068 wrapfig
28069 \end_layout
28070
28071 \end_inset
28072 </cell>
28073 </row>
28074 <row>
28075 <cell alignment="left" valignment="top" usebox="none">
28076 \begin_inset Text
28077
28078 \begin_layout Plain Layout
28079 amscd
28080 \end_layout
28081
28082 \end_inset
28083 </cell>
28084 <cell alignment="left" valignment="top" usebox="none">
28085 \begin_inset Text
28086
28087 \begin_layout Plain Layout
28088 CJK
28089 \end_layout
28090
28091 \end_inset
28092 </cell>
28093 <cell alignment="left" valignment="top" usebox="none">
28094 \begin_inset Text
28095
28096 \begin_layout Plain Layout
28097 float
28098 \end_layout
28099
28100 \end_inset
28101 </cell>
28102 <cell alignment="left" valignment="top" usebox="none">
28103 \begin_inset Text
28104
28105 \begin_layout Plain Layout
28106 lyxskak
28107 \end_layout
28108
28109 \end_inset
28110 </cell>
28111 <cell alignment="center" valignment="top" usebox="none">
28112 \begin_inset Text
28113
28114 \begin_layout Plain Layout
28115 pdfcolmk
28116 \end_layout
28117
28118 \end_inset
28119 </cell>
28120 <cell alignment="center" valignment="top" usebox="none">
28121 \begin_inset Text
28122
28123 \begin_layout Plain Layout
28124 setspace
28125 \end_layout
28126
28127 \end_inset
28128 </cell>
28129 <cell alignment="center" valignment="top" usebox="none">
28130 \begin_inset Text
28131
28132 \begin_layout Plain Layout
28133 tipx
28134 \end_layout
28135
28136 \end_inset
28137 </cell>
28138 <cell alignment="center" valignment="top" usebox="none">
28139 \begin_inset Text
28140
28141 \begin_layout Plain Layout
28142 xargs
28143 \end_layout
28144
28145 \end_inset
28146 </cell>
28147 </row>
28148 <row>
28149 <cell alignment="left" valignment="top" usebox="none">
28150 \begin_inset Text
28151
28152 \begin_layout Plain Layout
28153 amsmath
28154 \end_layout
28155
28156 \end_inset
28157 </cell>
28158 <cell alignment="left" valignment="top" usebox="none">
28159 \begin_inset Text
28160
28161 \begin_layout Plain Layout
28162 color
28163 \end_layout
28164
28165 \end_inset
28166 </cell>
28167 <cell alignment="left" valignment="top" usebox="none">
28168 \begin_inset Text
28169
28170 \begin_layout Plain Layout
28171 framed
28172 \end_layout
28173
28174 \end_inset
28175 </cell>
28176 <cell alignment="left" valignment="top" usebox="none">
28177 \begin_inset Text
28178
28179 \begin_layout Plain Layout
28180 makeidx
28181 \end_layout
28182
28183 \end_inset
28184 </cell>
28185 <cell alignment="center" valignment="top" usebox="none">
28186 \begin_inset Text
28187
28188 \begin_layout Plain Layout
28189 pdfpages
28190 \end_layout
28191
28192 \end_inset
28193 </cell>
28194 <cell alignment="center" valignment="top" usebox="none">
28195 \begin_inset Text
28196
28197 \begin_layout Plain Layout
28198 shapepar
28199 \end_layout
28200
28201 \end_inset
28202 </cell>
28203 <cell alignment="center" valignment="top" usebox="none">
28204 \begin_inset Text
28205
28206 \begin_layout Plain Layout
28207 tone
28208 \end_layout
28209
28210 \end_inset
28211 </cell>
28212 <cell alignment="center" valignment="top" usebox="none">
28213 \begin_inset Text
28214
28215 \begin_layout Plain Layout
28216 xcolor
28217 \end_layout
28218
28219 \end_inset
28220 </cell>
28221 </row>
28222 <row>
28223 <cell alignment="left" valignment="top" usebox="none">
28224 \begin_inset Text
28225
28226 \begin_layout Plain Layout
28227 amssymb
28228 \end_layout
28229
28230 \end_inset
28231 </cell>
28232 <cell alignment="left" valignment="top" usebox="none">
28233 \begin_inset Text
28234
28235 \begin_layout Plain Layout
28236 covington
28237 \end_layout
28238
28239 \end_inset
28240 </cell>
28241 <cell alignment="left" valignment="top" usebox="none">
28242 \begin_inset Text
28243
28244 \begin_layout Plain Layout
28245 graphicx
28246 \end_layout
28247
28248 \end_inset
28249 </cell>
28250 <cell alignment="left" valignment="top" usebox="none">
28251 \begin_inset Text
28252
28253 \begin_layout Plain Layout
28254 marvosym
28255 \end_layout
28256
28257 \end_inset
28258 </cell>
28259 <cell alignment="center" valignment="top" usebox="none">
28260 \begin_inset Text
28261
28262 \begin_layout Plain Layout
28263 pifont
28264 \end_layout
28265
28266 \end_inset
28267 </cell>
28268 <cell alignment="center" valignment="top" usebox="none">
28269 \begin_inset Text
28270
28271 \begin_layout Plain Layout
28272 slashed
28273 \end_layout
28274
28275 \end_inset
28276 </cell>
28277 <cell alignment="center" valignment="top" usebox="none">
28278 \begin_inset Text
28279
28280 \begin_layout Plain Layout
28281 txfonts
28282 \end_layout
28283
28284 \end_inset
28285 </cell>
28286 <cell alignment="center" valignment="top" usebox="none">
28287 \begin_inset Text
28288
28289 \begin_layout Plain Layout
28290 xy
28291 \end_layout
28292
28293 \end_inset
28294 </cell>
28295 </row>
28296 <row>
28297 <cell alignment="left" valignment="top" usebox="none">
28298 \begin_inset Text
28299
28300 \begin_layout Plain Layout
28301 amstext
28302 \end_layout
28303
28304 \end_inset
28305 </cell>
28306 <cell alignment="left" valignment="top" usebox="none">
28307 \begin_inset Text
28308
28309 \begin_layout Plain Layout
28310 csquotes
28311 \end_layout
28312
28313 \end_inset
28314 </cell>
28315 <cell alignment="left" valignment="top" usebox="none">
28316 \begin_inset Text
28317
28318 \begin_layout Plain Layout
28319 hhline
28320 \end_layout
28321
28322 \end_inset
28323 </cell>
28324 <cell alignment="left" valignment="top" usebox="none">
28325 \begin_inset Text
28326
28327 \begin_layout Plain Layout
28328 mathdesign
28329 \end_layout
28330
28331 \end_inset
28332 </cell>
28333 <cell alignment="center" valignment="top" usebox="none">
28334 \begin_inset Text
28335
28336 \begin_layout Plain Layout
28337 pmboxdraw
28338 \end_layout
28339
28340 \end_inset
28341 </cell>
28342 <cell alignment="center" valignment="top" usebox="none">
28343 \begin_inset Text
28344
28345 \begin_layout Plain Layout
28346 soul
28347 \end_layout
28348
28349 \end_inset
28350 </cell>
28351 <cell alignment="center" valignment="top" usebox="none">
28352 \begin_inset Text
28353
28354 \begin_layout Plain Layout
28355 ulem
28356 \end_layout
28357
28358 \end_inset
28359 </cell>
28360 <cell alignment="center" valignment="top" usebox="none">
28361 \begin_inset Text
28362
28363 \begin_layout Plain Layout
28364 yhmath
28365 \end_layout
28366
28367 \end_inset
28368 </cell>
28369 </row>
28370 <row>
28371 <cell alignment="left" valignment="top" usebox="none">
28372 \begin_inset Text
28373
28374 \begin_layout Plain Layout
28375 amsthm
28376 \end_layout
28377
28378 \end_inset
28379 </cell>
28380 <cell alignment="left" valignment="top" usebox="none">
28381 \begin_inset Text
28382
28383 \begin_layout Plain Layout
28384 dvipost
28385 \end_layout
28386
28387 \end_inset
28388 </cell>
28389 <cell alignment="left" valignment="top" usebox="none">
28390 \begin_inset Text
28391
28392 \begin_layout Plain Layout
28393 hyperref
28394 \end_layout
28395
28396 \end_inset
28397 </cell>
28398 <cell alignment="left" valignment="top" usebox="none">
28399 \begin_inset Text
28400
28401 \begin_layout Plain Layout
28402 mathdots
28403 \end_layout
28404
28405 \end_inset
28406 </cell>
28407 <cell alignment="center" valignment="top" usebox="none">
28408 \begin_inset Text
28409
28410 \begin_layout Plain Layout
28411 polyglossia
28412 \end_layout
28413
28414 \end_inset
28415 </cell>
28416 <cell alignment="center" valignment="top" usebox="none">
28417 \begin_inset Text
28418
28419 \begin_layout Plain Layout
28420 splitidx
28421 \end_layout
28422
28423 \end_inset
28424 </cell>
28425 <cell alignment="center" valignment="top" usebox="none">
28426 \begin_inset Text
28427
28428 \begin_layout Plain Layout
28429 undertilde
28430 \end_layout
28431
28432 \end_inset
28433 </cell>
28434 <cell alignment="center" valignment="top" usebox="none">
28435 \begin_inset Text
28436
28437 \begin_layout Plain Layout
28438
28439 \end_layout
28440
28441 \end_inset
28442 </cell>
28443 </row>
28444 <row>
28445 <cell alignment="left" valignment="top" usebox="none">
28446 \begin_inset Text
28447
28448 \begin_layout Plain Layout
28449 array
28450 \end_layout
28451
28452 \end_inset
28453 </cell>
28454 <cell alignment="left" valignment="top" usebox="none">
28455 \begin_inset Text
28456
28457 \begin_layout Plain Layout
28458 endnotes
28459 \end_layout
28460
28461 \end_inset
28462 </cell>
28463 <cell alignment="left" valignment="top" usebox="none">
28464 \begin_inset Text
28465
28466 \begin_layout Plain Layout
28467 ifsym
28468 \end_layout
28469
28470 \end_inset
28471 </cell>
28472 <cell alignment="left" valignment="top" usebox="none">
28473 \begin_inset Text
28474
28475 \begin_layout Plain Layout
28476 mathrsfs
28477 \end_layout
28478
28479 \end_inset
28480 </cell>
28481 <cell alignment="center" valignment="top" usebox="none">
28482 \begin_inset Text
28483
28484 \begin_layout Plain Layout
28485 prettyref
28486 \end_layout
28487
28488 \end_inset
28489 </cell>
28490 <cell alignment="center" valignment="top" usebox="none">
28491 \begin_inset Text
28492
28493 \begin_layout Plain Layout
28494 subfig
28495 \end_layout
28496
28497 \end_inset
28498 </cell>
28499 <cell alignment="center" valignment="top" usebox="none">
28500 \begin_inset Text
28501
28502 \begin_layout Plain Layout
28503 units
28504 \end_layout
28505
28506 \end_inset
28507 </cell>
28508 <cell alignment="center" valignment="top" usebox="none">
28509 \begin_inset Text
28510
28511 \begin_layout Plain Layout
28512
28513 \end_layout
28514
28515 \end_inset
28516 </cell>
28517 </row>
28518 <row>
28519 <cell alignment="left" valignment="top" usebox="none">
28520 \begin_inset Text
28521
28522 \begin_layout Plain Layout
28523 ascii
28524 \end_layout
28525
28526 \end_inset
28527 </cell>
28528 <cell alignment="left" valignment="top" usebox="none">
28529 \begin_inset Text
28530
28531 \begin_layout Plain Layout
28532 enumitem
28533 \end_layout
28534
28535 \end_inset
28536 </cell>
28537 <cell alignment="left" valignment="top" usebox="none">
28538 \begin_inset Text
28539
28540 \begin_layout Plain Layout
28541 ifthen
28542 \end_layout
28543
28544 \end_inset
28545 </cell>
28546 <cell alignment="left" valignment="top" usebox="none">
28547 \begin_inset Text
28548
28549 \begin_layout Plain Layout
28550 mhchem
28551 \end_layout
28552
28553 \end_inset
28554 </cell>
28555 <cell alignment="center" valignment="top" usebox="none">
28556 \begin_inset Text
28557
28558 \begin_layout Plain Layout
28559 pxfonts
28560 \end_layout
28561
28562 \end_inset
28563 </cell>
28564 <cell alignment="center" valignment="top" usebox="none">
28565 \begin_inset Text
28566
28567 \begin_layout Plain Layout
28568 subscript
28569 \end_layout
28570
28571 \end_inset
28572 </cell>
28573 <cell alignment="center" valignment="top" usebox="none">
28574 \begin_inset Text
28575
28576 \begin_layout Plain Layout
28577 url
28578 \end_layout
28579
28580 \end_inset
28581 </cell>
28582 <cell alignment="center" valignment="top" usebox="none">
28583 \begin_inset Text
28584
28585 \begin_layout Plain Layout
28586
28587 \end_layout
28588
28589 \end_inset
28590 </cell>
28591 </row>
28592 <row>
28593 <cell alignment="left" valignment="top" usebox="none">
28594 \begin_inset Text
28595
28596 \begin_layout Plain Layout
28597 bbding
28598 \end_layout
28599
28600 \end_inset
28601 </cell>
28602 <cell alignment="left" valignment="top" usebox="none">
28603 \begin_inset Text
28604
28605 \begin_layout Plain Layout
28606 esint
28607 \end_layout
28608
28609 \end_inset
28610 </cell>
28611 <cell alignment="left" valignment="top" usebox="none">
28612 \begin_inset Text
28613
28614 \begin_layout Plain Layout
28615 jurabib
28616 \end_layout
28617
28618 \end_inset
28619 </cell>
28620 <cell alignment="left" valignment="top" usebox="none">
28621 \begin_inset Text
28622
28623 \begin_layout Plain Layout
28624 multicol
28625 \end_layout
28626
28627 \end_inset
28628 </cell>
28629 <cell alignment="center" valignment="top" usebox="none">
28630 \begin_inset Text
28631
28632 \begin_layout Plain Layout
28633 refstyle
28634 \end_layout
28635
28636 \end_inset
28637 </cell>
28638 <cell alignment="center" valignment="top" usebox="none">
28639 \begin_inset Text
28640
28641 \begin_layout Plain Layout
28642 textcomp
28643 \end_layout
28644
28645 \end_inset
28646 </cell>
28647 <cell alignment="center" valignment="top" usebox="none">
28648 \begin_inset Text
28649
28650 \begin_layout Plain Layout
28651 varioref
28652 \end_layout
28653
28654 \end_inset
28655 </cell>
28656 <cell alignment="center" valignment="top" usebox="none">
28657 \begin_inset Text
28658
28659 \begin_layout Plain Layout
28660
28661 \end_layout
28662
28663 \end_inset
28664 </cell>
28665 </row>
28666 <row>
28667 <cell alignment="center" valignment="top" usebox="none">
28668 \begin_inset Text
28669
28670 \begin_layout Plain Layout
28671 bm
28672 \end_layout
28673
28674 \end_inset
28675 </cell>
28676 <cell alignment="center" valignment="top" usebox="none">
28677 \begin_inset Text
28678
28679 \begin_layout Plain Layout
28680 fancybox
28681 \end_layout
28682
28683 \end_inset
28684 </cell>
28685 <cell alignment="center" valignment="top" usebox="none">
28686 \begin_inset Text
28687
28688 \begin_layout Plain Layout
28689 latexsym
28690 \end_layout
28691
28692 \end_inset
28693 </cell>
28694 <cell alignment="center" valignment="top" usebox="none">
28695 \begin_inset Text
28696
28697 \begin_layout Plain Layout
28698 multirow
28699 \end_layout
28700
28701 \end_inset
28702 </cell>
28703 <cell alignment="center" valignment="top" usebox="none">
28704 \begin_inset Text
28705
28706 \begin_layout Plain Layout
28707 rotating
28708 \end_layout
28709
28710 \end_inset
28711 </cell>
28712 <cell alignment="center" valignment="top" usebox="none">
28713 \begin_inset Text
28714
28715 \begin_layout Plain Layout
28716 textgreek
28717 \end_layout
28718
28719 \end_inset
28720 </cell>
28721 <cell alignment="center" valignment="top" usebox="none">
28722 \begin_inset Text
28723
28724 \begin_layout Plain Layout
28725 verbatim
28726 \end_layout
28727
28728 \end_inset
28729 </cell>
28730 <cell alignment="center" valignment="top" usebox="none">
28731 \begin_inset Text
28732
28733 \begin_layout Plain Layout
28734
28735 \end_layout
28736
28737 \end_inset
28738 </cell>
28739 </row>
28740 </lyxtabular>
28741
28742 \end_inset
28743
28744
28745 \end_layout
28746
28747 \begin_layout Chapter
28748 Names of available colors to be used in layouts
28749 \begin_inset CommandInset label
28750 LatexCommand label
28751 name "chap:Names-of-colors"
28752
28753 \end_inset
28754
28755
28756 \end_layout
28757
28758 \begin_layout Standard
28759 The colors listed below are the standard colors and those that you can adjust
28760  in the \SpecialChar LyX
28761  preferences.
28762 \end_layout
28763
28764 \begin_layout Section
28765 Color functions
28766 \end_layout
28767
28768 \begin_layout Standard
28769 The following are no real colors, but rather act on color definitions:
28770 \end_layout
28771
28772 \begin_layout Description
28773 ignore The color is ignored
28774 \end_layout
28775
28776 \begin_layout Description
28777 inherit The color is inherited
28778 \end_layout
28779
28780 \begin_layout Description
28781 none
28782 \family roman
28783 \series medium
28784 \shape up
28785 \size normal
28786 \emph off
28787 \bar no
28788 \strikeout off
28789 \uuline off
28790 \uwave off
28791 \noun off
28792 \color none
28793  No particular color – clear or default
28794 \end_layout
28795
28796 \begin_layout Section
28797 Static colors
28798 \end_layout
28799
28800 \begin_layout Standard
28801 These are fixed colors that cannot me customized:
28802 \end_layout
28803
28804 \begin_layout Description
28805 black
28806 \end_layout
28807
28808 \begin_layout Description
28809 white
28810 \end_layout
28811
28812 \begin_layout Description
28813 blue
28814 \end_layout
28815
28816 \begin_layout Description
28817 brown
28818 \end_layout
28819
28820 \begin_layout Description
28821 cyan
28822 \end_layout
28823
28824 \begin_layout Description
28825 darkgray
28826 \end_layout
28827
28828 \begin_layout Description
28829 gray
28830 \end_layout
28831
28832 \begin_layout Description
28833 green
28834 \end_layout
28835
28836 \begin_layout Description
28837 lightgray
28838 \end_layout
28839
28840 \begin_layout Description
28841 lime
28842 \end_layout
28843
28844 \begin_layout Description
28845 magenta
28846 \end_layout
28847
28848 \begin_layout Description
28849 olive
28850 \end_layout
28851
28852 \begin_layout Description
28853 orange
28854 \end_layout
28855
28856 \begin_layout Description
28857 pink
28858 \end_layout
28859
28860 \begin_layout Description
28861 purple
28862 \end_layout
28863
28864 \begin_layout Description
28865 red
28866 \end_layout
28867
28868 \begin_layout Description
28869 teal
28870 \end_layout
28871
28872 \begin_layout Description
28873 violet
28874 \end_layout
28875
28876 \begin_layout Description
28877 yellow
28878 \end_layout
28879
28880 \begin_layout Section
28881 Dynamic colors
28882 \end_layout
28883
28884 \begin_layout Standard
28885 These are the colors allocated to specific elements in 
28886 \begin_inset Info
28887 type  "menu"
28888 arg   "dialog-show prefs"
28889 \end_inset
28890
28891 :
28892 \end_layout
28893
28894 \begin_layout Description
28895 added_space Added space color
28896 \end_layout
28897
28898 \begin_layout Description
28899 addedtext Added text color
28900 \end_layout
28901
28902 \begin_layout Description
28903 appendix Appendix marker color
28904 \end_layout
28905
28906 \begin_layout Description
28907 background Background color
28908 \end_layout
28909
28910 \begin_layout Description
28911 bottomarea Bottom area color
28912 \end_layout
28913
28914 \begin_layout Description
28915 branchlabel Label color for branches
28916 \end_layout
28917
28918 \begin_layout Description
28919 buttonbg Color used for button background
28920 \end_layout
28921
28922 \begin_layout Description
28923 buttonframe Color for inset button frames
28924 \end_layout
28925
28926 \begin_layout Description
28927 buttonhoverbg Color used for button background under focus
28928 \end_layout
28929
28930 \begin_layout Description
28931 changebar Changebar color
28932 \end_layout
28933
28934 \begin_layout Description
28935 changedtextauthor1 Changed text color author 1
28936 \end_layout
28937
28938 \begin_layout Description
28939 changedtextauthor2 Changed text color author 2
28940 \end_layout
28941
28942 \begin_layout Description
28943 changedtextauthor3 Changed text color author 3
28944 \end_layout
28945
28946 \begin_layout Description
28947 changedtextauthor4 Changed text color author 4
28948 \end_layout
28949
28950 \begin_layout Description
28951 changedtextauthor5 Changed text color author 5
28952 \end_layout
28953
28954 \begin_layout Description
28955 collapsible Collapsible insets text color
28956 \end_layout
28957
28958 \begin_layout Description
28959 collapsibleframe Collapsible insets framecolor
28960 \end_layout
28961
28962 \begin_layout Description
28963 command Text color for command insets
28964 \end_layout
28965
28966 \begin_layout Description
28967 commandbg Background color for command insets
28968 \end_layout
28969
28970 \begin_layout Description
28971 commandframe Frame color for command insets
28972 \end_layout
28973
28974 \begin_layout Description
28975 comment Label color for comments
28976 \end_layout
28977
28978 \begin_layout Description
28979 commentbg Background color of comments
28980 \end_layout
28981
28982 \begin_layout Description
28983 cursor Cursor color
28984 \end_layout
28985
28986 \begin_layout Description
28987 deletedtext Deleted text color
28988 \end_layout
28989
28990 \begin_layout Description
28991 deletedtextmodifier Deleted text modifying color
28992 \end_layout
28993
28994 \begin_layout Description
28995 depthbar Color for the depth bars in the margin
28996 \end_layout
28997
28998 \begin_layout Description
28999 eolmarker End of line marker color
29000 \end_layout
29001
29002 \begin_layout Description
29003 error Color of the \SpecialChar LaTeX
29004  error box
29005 \end_layout
29006
29007 \begin_layout Description
29008 footlabel Label color for footnotes
29009 \end_layout
29010
29011 \begin_layout Description
29012 foreground Foreground color
29013 \end_layout
29014
29015 \begin_layout Description
29016 graphicsbg Graphics inset background color
29017 \end_layout
29018
29019 \begin_layout Description
29020 greyedoutbg Background color of greyedout inset
29021 \end_layout
29022
29023 \begin_layout Description
29024 greyedoutlabel Label color for greyedout insets
29025 \end_layout
29026
29027 \begin_layout Description
29028 greyedouttext Color for greyedout inset text
29029 \end_layout
29030
29031 \begin_layout Description
29032 indexlabel Label color for index insets
29033 \end_layout
29034
29035 \begin_layout Description
29036 inlinecompletion Inline completion color
29037 \end_layout
29038
29039 \begin_layout Description
29040 insetbg Inset marker background color
29041 \end_layout
29042
29043 \begin_layout Description
29044 insetframe Inset marker frame color
29045 \end_layout
29046
29047 \begin_layout Description
29048 language Color for marking foreign language words
29049 \end_layout
29050
29051 \begin_layout Description
29052 latex Text color in \SpecialChar LaTeX
29053  mode
29054 \end_layout
29055
29056 \begin_layout Description
29057 listingsbg Background color of listings inset
29058 \end_layout
29059
29060 \begin_layout Description
29061 marginlabel Label color for margin notes
29062 \end_layout
29063
29064 \begin_layout Description
29065 math Math inset text color
29066 \end_layout
29067
29068 \begin_layout Description
29069 mathbg Math inset background color
29070 \end_layout
29071
29072 \begin_layout Description
29073 mathcorners Math inset frame color not under focus
29074 \end_layout
29075
29076 \begin_layout Description
29077 mathframe Math inset frame color under focus
29078 \end_layout
29079
29080 \begin_layout Description
29081 mathline Math line color
29082 \end_layout
29083
29084 \begin_layout Description
29085 mathmacrobg Macro math inset background color
29086 \end_layout
29087
29088 \begin_layout Description
29089 mathmacroblend Macro math blended color
29090 \end_layout
29091
29092 \begin_layout Description
29093 mathmacroframe Macro math frame color
29094 \end_layout
29095
29096 \begin_layout Description
29097 mathmacrohoverbg Macro math inset background color hovered
29098 \end_layout
29099
29100 \begin_layout Description
29101 mathmacrolabel Macro math label color
29102 \end_layout
29103
29104 \begin_layout Description
29105 mathmacronewarg Macro template color for new parameters
29106 \end_layout
29107
29108 \begin_layout Description
29109 mathmacrooldarg Macro template color for old parameters
29110 \end_layout
29111
29112 \begin_layout Description
29113 newpage New page color
29114 \end_layout
29115
29116 \begin_layout Description
29117 nonunique_inlinecompletion Inline completion color for the non-unique part
29118 \end_layout
29119
29120 \begin_layout Description
29121 note Label color for notes
29122 \end_layout
29123
29124 \begin_layout Description
29125 notebg Background color of notes
29126 \end_layout
29127
29128 \begin_layout Description
29129 pagebreak Page break/line break color
29130 \end_layout
29131
29132 \begin_layout Description
29133 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29134 \end_layout
29135
29136 \begin_layout Description
29137 phantomtext Text color for phantom insets
29138 \end_layout
29139
29140 \begin_layout Description
29141 preview The color used for previews
29142 \end_layout
29143
29144 \begin_layout Description
29145 previewframe Preview frame color
29146 \end_layout
29147
29148 \begin_layout Description
29149 regexpframe Color for regexp frame
29150 \end_layout
29151
29152 \begin_layout Description
29153 scroll Color that indicates when a row can be scrolled 
29154 \end_layout
29155
29156 \begin_layout Description
29157 selection Background color of selected text
29158 \end_layout
29159
29160 \begin_layout Description
29161 selectiontext Foreground color of selected text
29162 \end_layout
29163
29164 \begin_layout Description
29165 shadedbg Background color of shaded box
29166 \end_layout
29167
29168 \begin_layout Description
29169 special Special chars text color
29170 \end_layout
29171
29172 \begin_layout Description
29173 tabularline Table line color
29174 \end_layout
29175
29176 \begin_layout Description
29177 tabularonoffline Table line color
29178 \end_layout
29179
29180 \begin_layout Description
29181 urllabel Label color for URL insets
29182 \end_layout
29183
29184 \begin_layout Description
29185 urltext Color for URL inset text
29186 \end_layout
29187
29188 \end_body
29189 \end_document