]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
DEPM: document that Freespacing implies KeepEmpty.
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 566
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 \tracking_changes true
128 \output_changes false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \author -712698321 "Jürgen Spitzmüller"
133 \author -495245474 "Jean-Marc Lasgouttes"
134 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
135 \end_header
136
137 \begin_body
138
139 \begin_layout Title
140 Customizing \SpecialChar LyX
141 : Features for the Advanced User
142 \end_layout
143
144 \begin_layout Author
145 by the \SpecialChar LyX
146  Team
147 \begin_inset Foot
148 status collapsed
149
150 \begin_layout Plain Layout
151 \noindent
152 If you have comments or error corrections, please send them to the \SpecialChar LyX
153  Documentatio
154 n mailing list, 
155 \begin_inset CommandInset href
156 LatexCommand href
157 target "lyx-docs@lists.lyx.org"
158 type "mailto:"
159 literal "false"
160
161 \end_inset
162
163 .
164  Include 
165 \begin_inset Quotes eld
166 \end_inset
167
168 [Customization]
169 \begin_inset Quotes erd
170 \end_inset
171
172  in the subject header, and please cc the current maintainer of this file,
173  Richard Heck <rgheck@comcast.net>.
174 \end_layout
175
176 \end_inset
177
178
179 \begin_inset Newline newline
180 \end_inset
181
182
183 \begin_inset Newline newline
184 \end_inset
185
186 Version 2.3.x 
187 \end_layout
188
189 \begin_layout Standard
190 \begin_inset CommandInset toc
191 LatexCommand tableofcontents
192
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Standard
199 \begin_inset Note Note
200 status open
201
202 \begin_layout Plain Layout
203 Please use change tracking when modifying this document.
204  This makes it easier for our translators to recognize things that have
205  been changed, and it helps the maintainer keep up-to-date with what's been
206  done.
207 \end_layout
208
209 \end_inset
210
211
212 \end_layout
213
214 \begin_layout Chapter
215 Introduction
216 \end_layout
217
218 \begin_layout Standard
219 This manual covers the customization features present in \SpecialChar LyX
220 .
221  In it, we discuss issues like keyboard shortcuts, screen previewing options,
222  printer options, sending commands to \SpecialChar LyX
223  via the \SpecialChar LyX
224  Server, internationalization,
225  installing new \SpecialChar LaTeX
226  classes and \SpecialChar LyX
227  layouts, etc.
228  We can't possibly hope to touch on everything you can change—our developers
229  add new features faster than we can document them—but we will explain the
230  most common customizations and hopefully point you in the right direction
231  for some of the more obscure ones.
232 \end_layout
233
234 \begin_layout Standard
235 \begin_inset Branch OutDated
236 inverted 0
237 status collapsed
238
239 \begin_layout Standard
240 Information from previous versions of this document that now seems to be
241  outdated is contained in the OutDated branch of this document.
242  By default, this information will not appear in the \SpecialChar LaTeX
243  output.
244 \end_layout
245
246 \end_inset
247
248
249 \end_layout
250
251 \begin_layout Chapter
252 \SpecialChar LyX
253  configuration files
254 \end_layout
255
256 \begin_layout Standard
257 This chapter aims to help you to find your way through the \SpecialChar LyX
258  configuration
259  files.
260  Before continuing to read this chapter, you should find out where your
261  \SpecialChar LyX
262  library and user directories are by using 
263 \begin_inset Flex Noun
264 status collapsed
265
266 \begin_layout Plain Layout
267 Help\SpecialChar menuseparator
268 About
269 \begin_inset space ~
270 \end_inset
271
272 LyX
273 \end_layout
274
275 \end_inset
276
277 .
278  The library directory is the place where \SpecialChar LyX
279  places its system-wide configuration
280  files; the user directory is where you can place your modified versions.
281  We will call the former 
282 \begin_inset Flex Code
283 status collapsed
284
285 \begin_layout Plain Layout
286 LyXDir
287 \end_layout
288
289 \end_inset
290
291  and the latter 
292 \begin_inset Flex Noun
293 status collapsed
294
295 \begin_layout Plain Layout
296 UserDir
297 \end_layout
298
299 \end_inset
300
301  in the remainder of this document.
302  
303 \end_layout
304
305 \begin_layout Section
306 What's in 
307 \begin_inset Flex Code
308 status collapsed
309
310 \begin_layout Plain Layout
311 LyXDir
312 \end_layout
313
314 \end_inset
315
316 ?
317 \end_layout
318
319 \begin_layout Standard
320 \begin_inset Flex Code
321 status collapsed
322
323 \begin_layout Plain Layout
324 LyXDir
325 \end_layout
326
327 \end_inset
328
329  and its sub-directories contain a number of files and that can be used
330  to customize \SpecialChar LyX
331 's behavior.
332  You can change many of these files from within \SpecialChar LyX
333  itself through the 
334 \begin_inset Flex Noun
335 status collapsed
336
337 \begin_layout Plain Layout
338 Tools\SpecialChar menuseparator
339 Preferences
340 \end_layout
341
342 \end_inset
343
344  dialog.
345  Most customization that you will want to do in \SpecialChar LyX
346  is possible through this
347  dialog.
348  However, many other inner aspects of \SpecialChar LyX
349  can be customized by modifying the
350  files in 
351 \begin_inset Flex Code
352 status collapsed
353
354 \begin_layout Plain Layout
355 LyXDir
356 \end_layout
357
358 \end_inset
359
360 .
361  These files fall in different categories, described in the following subsection
362 s.
363 \end_layout
364
365 \begin_layout Subsection
366 Automatically generated files
367 \end_layout
368
369 \begin_layout Standard
370 The files, which are to be found in 
371 \begin_inset Flex Noun
372 status collapsed
373
374 \begin_layout Plain Layout
375 UserDir
376 \end_layout
377
378 \end_inset
379
380 , are generated when you configure \SpecialChar LyX
381 .
382  They contain various default values that are guessed by inspection.
383  In general, it is not a good idea to modify them, since they might be overwritt
384 en at any time.
385 \end_layout
386
387 \begin_layout Labeling
388 \labelwidthstring 00.00.0000
389 \begin_inset Flex Code
390 status collapsed
391
392 \begin_layout Plain Layout
393 lyxrc.defaults
394 \end_layout
395
396 \end_inset
397
398  contains defaults for various commands.
399 \end_layout
400
401 \begin_layout Labeling
402 \labelwidthstring 00.00.0000
403 \begin_inset Flex Code
404 status collapsed
405
406 \begin_layout Plain Layout
407 packages.lst
408 \end_layout
409
410 \end_inset
411
412  contains the list of packages that have been recognized by \SpecialChar LyX
413 .
414  It is currently unused by the \SpecialChar LyX
415  program itself, but the information extracted,
416  and more, is made available with 
417 \begin_inset Flex Noun
418 status collapsed
419
420 \begin_layout Plain Layout
421 Help\SpecialChar menuseparator
422 \SpecialChar LaTeX
423
424 \begin_inset space ~
425 \end_inset
426
427 Configuration
428 \end_layout
429
430 \end_inset
431
432 .
433 \end_layout
434
435 \begin_layout Labeling
436 \labelwidthstring 00.00.0000
437 \begin_inset Flex Code
438 status collapsed
439
440 \begin_layout Plain Layout
441 textclass.lst
442 \end_layout
443
444 \end_inset
445
446  the list of text classes that have been found in your 
447 \begin_inset Flex Code
448 status collapsed
449
450 \begin_layout Plain Layout
451 layout/
452 \end_layout
453
454 \end_inset
455
456  directories, along with the associated \SpecialChar LaTeX
457  document class and their description.
458 \end_layout
459
460 \begin_layout Labeling
461 \labelwidthstring 00.00.0000
462 \begin_inset Flex Code
463 status collapsed
464
465 \begin_layout Plain Layout
466 lyxmodules.lst
467 \end_layout
468
469 \end_inset
470
471  the list of layout modules found in your 
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 layout/
477 \end_layout
478
479 \end_inset
480
481  directories
482 \end_layout
483
484 \begin_layout Labeling
485 \labelwidthstring 00.00.0000
486 \begin_inset Flex Code
487 status collapsed
488
489 \begin_layout Plain Layout
490 *files.lst
491 \end_layout
492
493 \end_inset
494
495  lists of various sorts of \SpecialChar LaTeX
496 -related files found on your system
497 \end_layout
498
499 \begin_layout Labeling
500 \labelwidthstring 00.00.0000
501 \begin_inset Flex Code
502 status collapsed
503
504 \begin_layout Plain Layout
505 doc/\SpecialChar LaTeX
506 Config.lyx
507 \end_layout
508
509 \end_inset
510
511  is automatically generated during configuration from the file 
512 \begin_inset Flex Code
513 status collapsed
514
515 \begin_layout Plain Layout
516 \SpecialChar LaTeX
517 Config.lyx.in
518 \end_layout
519
520 \end_inset
521
522 .
523  It contains information on your \SpecialChar LaTeX
524  configuration.
525 \end_layout
526
527 \begin_layout Subsection
528 Directories
529 \end_layout
530
531 \begin_layout Standard
532 These directories are duplicated between 
533 \begin_inset Flex Code
534 status collapsed
535
536 \begin_layout Plain Layout
537 LyXDir
538 \end_layout
539
540 \end_inset
541
542  and 
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 UserDir
548 \end_layout
549
550 \end_inset
551
552 .
553  If a particular files exists in both places, the one in 
554 \begin_inset Flex Code
555 status collapsed
556
557 \begin_layout Plain Layout
558 UserDir
559 \end_layout
560
561 \end_inset
562
563  will be used.
564 \end_layout
565
566 \begin_layout Labeling
567 \labelwidthstring 00.00.0000
568 \begin_inset Flex Code
569 status collapsed
570
571 \begin_layout Plain Layout
572 bind/
573 \end_layout
574
575 \end_inset
576
577  this directory contains files with the extension 
578 \begin_inset Flex Code
579 status collapsed
580
581 \begin_layout Plain Layout
582 .bind
583 \end_layout
584
585 \end_inset
586
587  that define the keybindings used in \SpecialChar LyX
588 .
589  If there exists an internationalized version of the bind file named 
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 $LANG_xxx.bind
595 \end_layout
596
597 \end_inset
598
599 , that will be used first.
600 \end_layout
601
602 \begin_layout Labeling
603 \labelwidthstring 00.00.0000
604 \begin_inset Flex Code
605 status collapsed
606
607 \begin_layout Plain Layout
608 citeengines/
609 \end_layout
610
611 \end_inset
612
613  contains files with the extension 
614 \begin_inset Flex Code
615 status collapsed
616
617 \begin_layout Plain Layout
618 .citeengine
619 \end_layout
620
621 \end_inset
622
623  which define the diverse citation possibilities (natbib, biblatex etc.).
624  See 
625 \begin_inset CommandInset ref
626 LatexCommand ref
627 reference "subsec:Cite-Engine-Files"
628 plural "false"
629 caps "false"
630 noprefix "false"
631
632 \end_inset
633
634  for details.
635 \end_layout
636
637 \begin_layout Labeling
638 \labelwidthstring 00.00.0000
639 \begin_inset Flex Code
640 status collapsed
641
642 \begin_layout Plain Layout
643 clipart/
644 \end_layout
645
646 \end_inset
647
648  contains graphics files that can be included in documents.
649  
650 \end_layout
651
652 \begin_layout Labeling
653 \labelwidthstring 00.00.0000
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658 doc/
659 \end_layout
660
661 \end_inset
662
663  contains \SpecialChar LyX
664  documentation files (including the one you are currently reading).
665  The file 
666 \begin_inset Flex Code
667 status collapsed
668
669 \begin_layout Plain Layout
670 \SpecialChar LaTeX
671 Config.lyx
672 \end_layout
673
674 \end_inset
675
676  deserves special attention, as noted above.
677  The internationalized help docs are in subdirectories 
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682 doc/xx
683 \end_layout
684
685 \end_inset
686
687  where 
688 \begin_inset Quotes eld
689 \end_inset
690
691 xx
692 \begin_inset Quotes erd
693 \end_inset
694
695  is the ISO language code.
696  See 
697 \begin_inset CommandInset ref
698 LatexCommand ref
699 reference "cha:Internationalizing-LyX"
700
701 \end_inset
702
703  for details.
704 \end_layout
705
706 \begin_layout Labeling
707 \labelwidthstring 00.00.0000
708 \begin_inset Flex Code
709 status collapsed
710
711 \begin_layout Plain Layout
712 examples/
713 \end_layout
714
715 \end_inset
716
717  contains example files that explain how to use some features.
718  In the file browser, press the 
719 \begin_inset Flex Noun
720 status collapsed
721
722 \begin_layout Plain Layout
723 Examples
724 \end_layout
725
726 \end_inset
727
728  button to get there.
729 \end_layout
730
731 \begin_layout Labeling
732 \labelwidthstring 00.00.0000
733 \begin_inset Flex Code
734 status collapsed
735
736 \begin_layout Plain Layout
737 images/
738 \end_layout
739
740 \end_inset
741
742  contains image files that are used by the 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Document
748 \end_layout
749
750 \end_inset
751
752  dialog.
753  In addition, it also contains the individual icons used in the toolbar
754  and the banners that can be shown when \SpecialChar LyX
755  is launched.
756 \end_layout
757
758 \begin_layout Labeling
759 \labelwidthstring 00.00.0000
760 \begin_inset Flex Code
761 status collapsed
762
763 \begin_layout Plain Layout
764 kbd/
765 \end_layout
766
767 \end_inset
768
769  contains keyboard keymapping files.
770  See 
771 \begin_inset CommandInset ref
772 LatexCommand ref
773 reference "sec:International-Keymap-Stuff"
774
775 \end_inset
776
777  for details.
778 \end_layout
779
780 \begin_layout Labeling
781 \labelwidthstring 00.00.0000
782 \begin_inset Flex Code
783 status collapsed
784
785 \begin_layout Plain Layout
786 layouts/
787 \end_layout
788
789 \end_inset
790
791  contains the text class and module files described in 
792 \begin_inset CommandInset ref
793 LatexCommand ref
794 reference "cha:Installing-New-Document"
795
796 \end_inset
797
798 .
799 \end_layout
800
801 \begin_layout Labeling
802 \labelwidthstring 00.00.0000
803 \begin_inset Flex Code
804 status collapsed
805
806 \begin_layout Plain Layout
807 lyx2lyx
808 \end_layout
809
810 \end_inset
811
812  contains the 
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 lyx2lyx
818 \end_layout
819
820 \end_inset
821
822  Python scripts used to convert between \SpecialChar LyX
823  versions.
824  These can be run from the command line if, say, you want to batch-convert
825  files.
826 \end_layout
827
828 \begin_layout Labeling
829 \labelwidthstring 00.00.0000
830 \begin_inset Flex Code
831 status collapsed
832
833 \begin_layout Plain Layout
834 scripts/
835 \end_layout
836
837 \end_inset
838
839  contains some files that demonstrate the capabilities of the 
840 \begin_inset Flex Noun
841 status collapsed
842
843 \begin_layout Plain Layout
844 External
845 \begin_inset space ~
846 \end_inset
847
848 Template
849 \end_layout
850
851 \end_inset
852
853  feature.
854  Also contains some scripts used by \SpecialChar LyX
855  itself.
856 \end_layout
857
858 \begin_layout Labeling
859 \labelwidthstring 00.00.0000
860 \begin_inset Flex Code
861 status collapsed
862
863 \begin_layout Plain Layout
864 templates/
865 \end_layout
866
867 \end_inset
868
869  contains the standard \SpecialChar LyX
870  template files described in 
871 \begin_inset CommandInset ref
872 LatexCommand ref
873 reference "subsec:Creating-Templates"
874
875 \end_inset
876
877 .
878 \end_layout
879
880 \begin_layout Labeling
881 \labelwidthstring 00.00.0000
882 \begin_inset Flex Code
883 status collapsed
884
885 \begin_layout Plain Layout
886 ui/
887 \end_layout
888
889 \end_inset
890
891  contains files with the extension 
892 \begin_inset Flex Code
893 status collapsed
894
895 \begin_layout Plain Layout
896 .ui
897 \end_layout
898
899 \end_inset
900
901  that define the user interface to \SpecialChar LyX
902 .
903  That is, the files define which items appear in which menus and the items
904  appearing on the toolbar.
905 \end_layout
906
907 \begin_layout Labeling
908 \labelwidthstring 00.00.0000
909 \begin_inset Flex Code
910 status collapsed
911
912 \begin_layout Plain Layout
913 xtemplates/
914 \end_layout
915
916 \end_inset
917
918  contains files with the extension 
919 \begin_inset Flex Code
920 status collapsed
921
922 \begin_layout Plain Layout
923 .xtemplate
924 \end_layout
925
926 \end_inset
927
928  which define the templates for the insertion of external material to a
929  \SpecialChar LyX
930  document; see 
931 \begin_inset CommandInset ref
932 LatexCommand ref
933 reference "chap:Including-External-Material"
934
935 \end_inset
936
937 .
938 \end_layout
939
940 \begin_layout Subsection
941 Files you don't want to modify
942 \end_layout
943
944 \begin_layout Standard
945 These files are used internally by \SpecialChar LyX
946  and you generally do not need to modify
947  them unless you are a developer.
948 \end_layout
949
950 \begin_layout Labeling
951 \labelwidthstring 00.00.0000
952 \begin_inset Flex Code
953 status collapsed
954
955 \begin_layout Plain Layout
956 CREDITS
957 \end_layout
958
959 \end_inset
960
961  this file contains the list of \SpecialChar LyX
962  developers.
963  The contents are displayed with the menu entry 
964 \begin_inset Flex Noun
965 status collapsed
966
967 \begin_layout Plain Layout
968 Help\SpecialChar menuseparator
969 About
970 \begin_inset space ~
971 \end_inset
972
973 LyX
974 \end_layout
975
976 \end_inset
977
978 .
979 \end_layout
980
981 \begin_layout Labeling
982 \labelwidthstring 00.00.0000
983 \begin_inset Flex Code
984 status collapsed
985
986 \begin_layout Plain Layout
987 chkconfig.ltx
988 \end_layout
989
990 \end_inset
991
992  this is a \SpecialChar LaTeX
993  script used during the configuration process.
994  Do not run directly.
995 \end_layout
996
997 \begin_layout Labeling
998 \labelwidthstring 00.00.0000
999 \begin_inset Flex Code
1000 status collapsed
1001
1002 \begin_layout Plain Layout
1003 configure.py
1004 \end_layout
1005
1006 \end_inset
1007
1008  this is a Python script that is used to re-configure \SpecialChar LyX
1009 .
1010  It creates configuration files in the directory it was run from.
1011 \end_layout
1012
1013 \begin_layout Subsection
1014 Other files needing a line or two
1015 \end_layout
1016
1017 \begin_layout Labeling
1018 \labelwidthstring 00.00.0000
1019 \begin_inset Flex Code
1020 status collapsed
1021
1022 \begin_layout Plain Layout
1023 encodings
1024 \end_layout
1025
1026 \end_inset
1027
1028  this contains tables describing how different character encodings can be
1029  mapped to Unicode
1030 \end_layout
1031
1032 \begin_layout Labeling
1033 \labelwidthstring 00.00.0000
1034 \begin_inset Flex Code
1035 status collapsed
1036
1037 \begin_layout Plain Layout
1038 languages
1039 \end_layout
1040
1041 \end_inset
1042
1043  this file contains a list of all the languages currently supported by \SpecialChar LyX
1044 .
1045 \end_layout
1046
1047 \begin_layout Labeling
1048 \labelwidthstring 00.00.0000
1049 \begin_inset Flex Code
1050 status collapsed
1051
1052 \begin_layout Plain Layout
1053 latexfonts
1054 \end_layout
1055
1056 \end_inset
1057
1058  contains information about the supported fonts.
1059 \end_layout
1060
1061 \begin_layout Labeling
1062 \labelwidthstring 00.00.0000
1063 \begin_inset Flex Code
1064 status collapsed
1065
1066 \begin_layout Plain Layout
1067 layouttranslations
1068 \end_layout
1069
1070 \end_inset
1071
1072  this file contains translations for internationalized paragraph styles
1073  (see 
1074 \begin_inset CommandInset ref
1075 LatexCommand ref
1076 reference "subsec:I18n"
1077
1078 \end_inset
1079
1080 ).
1081 \end_layout
1082
1083 \begin_layout Labeling
1084 \labelwidthstring 00.00.0000
1085 \begin_inset Flex Code
1086 status collapsed
1087
1088 \begin_layout Plain Layout
1089 unicodesymbols
1090 \end_layout
1091
1092 \end_inset
1093
1094  this file contains information about Unicode-encoded glyphs and the way
1095  they are supported by \SpecialChar LyX
1096  via \SpecialChar LaTeX
1097 .
1098 \end_layout
1099
1100 \begin_layout Section
1101 Your local configuration directory
1102 \end_layout
1103
1104 \begin_layout Standard
1105 Even if you are using \SpecialChar LyX
1106  as an unprivileged user, you might want to change
1107  \SpecialChar LyX
1108  configuration for your own use.
1109  The 
1110 \begin_inset Flex Code
1111 status collapsed
1112
1113 \begin_layout Plain Layout
1114 UserDir
1115 \end_layout
1116
1117 \end_inset
1118
1119  directory contains all your personal configuration files.
1120  This is the directory described as 
1121 \begin_inset Quotes eld
1122 \end_inset
1123
1124 user directory
1125 \begin_inset Quotes erd
1126 \end_inset
1127
1128  in 
1129 \begin_inset Flex Noun
1130 status collapsed
1131
1132 \begin_layout Plain Layout
1133 Help\SpecialChar menuseparator
1134 About
1135 \begin_inset space ~
1136 \end_inset
1137
1138 LyX
1139 \end_layout
1140
1141 \end_inset
1142
1143 .
1144  This directory is used as a mirror of 
1145 \begin_inset Flex Code
1146 status collapsed
1147
1148 \begin_layout Plain Layout
1149 LyXDir
1150 \end_layout
1151
1152 \end_inset
1153
1154 , which means that every file in 
1155 \begin_inset Flex Code
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 UserDir
1160 \end_layout
1161
1162 \end_inset
1163
1164  is a replacement for the corresponding file in 
1165 \begin_inset Flex Code
1166 status collapsed
1167
1168 \begin_layout Plain Layout
1169 LyXDir
1170 \end_layout
1171
1172 \end_inset
1173
1174 .
1175  Any configuration file described in the above sections can be placed either
1176  in the system-wide directory, in which case it will affect all users, or
1177  in your local directory for your own use.
1178 \end_layout
1179
1180 \begin_layout Standard
1181 To make things clearer, let's provide a few examples:
1182 \end_layout
1183
1184 \begin_layout Itemize
1185 The preferences set in the 
1186 \begin_inset Flex Noun
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 Tools\SpecialChar menuseparator
1191 Preferences
1192 \end_layout
1193
1194 \end_inset
1195
1196  dialog are saved to a file 
1197 \begin_inset Flex Code
1198 status collapsed
1199
1200 \begin_layout Plain Layout
1201 preferences
1202 \end_layout
1203
1204 \end_inset
1205
1206  in 
1207 \begin_inset Flex Code
1208 status collapsed
1209
1210 \begin_layout Plain Layout
1211 UserDir
1212 \end_layout
1213
1214 \end_inset
1215
1216 .
1217 \end_layout
1218
1219 \begin_layout Itemize
1220 When you reconfigure using 
1221 \begin_inset Flex Noun
1222 status collapsed
1223
1224 \begin_layout Plain Layout
1225 Tools\SpecialChar menuseparator
1226 Reconfigure
1227 \end_layout
1228
1229 \end_inset
1230
1231 , \SpecialChar LyX
1232  runs the 
1233 \begin_inset Flex Code
1234 status collapsed
1235
1236 \begin_layout Plain Layout
1237 configure.py
1238 \end_layout
1239
1240 \end_inset
1241
1242  script, and the resulting files are written in your local configuration
1243  directory.
1244  This means that any additional text class file that you might have added
1245  in 
1246 \begin_inset Flex Code
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250 UserDir/layouts
1251 \end_layout
1252
1253 \end_inset
1254
1255  will be added to the list of classes in the 
1256 \begin_inset Flex Noun
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260 Document\SpecialChar menuseparator
1261 Settings
1262 \end_layout
1263
1264 \end_inset
1265
1266  dialog.
1267 \end_layout
1268
1269 \begin_layout Itemize
1270 If you get some updated documentation from \SpecialChar LyX
1271  ftp site and cannot install
1272  it because you do not have sysadmin rights on your system, you can just
1273  copy the files in 
1274 \begin_inset Flex Code
1275 status collapsed
1276
1277 \begin_layout Plain Layout
1278 UserDir/doc/
1279 \end_layout
1280
1281 \end_inset
1282
1283  and the items in the 
1284 \begin_inset Flex Noun
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 Help
1289 \end_layout
1290
1291 \end_inset
1292
1293  menu will open them!
1294 \end_layout
1295
1296 \begin_layout Section
1297 Running \SpecialChar LyX
1298  with multiple configurations
1299 \end_layout
1300
1301 \begin_layout Standard
1302 The configuration freedom of the local configuration directory may not suffice
1303  if you want to have more than one configuration at your disposal.
1304  For example, you may want to be use different key bindings or printer settings
1305  at different times.
1306  You can achieve this by having several such directories.
1307  You then specify which directory to use at run-time.
1308 \end_layout
1309
1310 \begin_layout Standard
1311 Invoking \SpecialChar LyX
1312  with the command line switch 
1313 \begin_inset Flex Code
1314 status collapsed
1315
1316 \begin_layout Plain Layout
1317 -userdir
1318 \end_layout
1319
1320 \end_inset
1321
1322  
1323 \emph on
1324 <some directory>
1325 \emph default
1326  instructs the program to read the configuration from that directory, and
1327  not from the default directory.
1328  (You can determine the default directory by running \SpecialChar LyX
1329  without the 
1330 \begin_inset Flex Code
1331 status collapsed
1332
1333 \begin_layout Plain Layout
1334 -userdir
1335 \end_layout
1336
1337 \end_inset
1338
1339  switch.) If the specified directory does not exist, \SpecialChar LyX
1340  offers to create it
1341  for you, just like it does for the default directory on the first time
1342  you run the program.
1343  You can modify the configuration options in this additional user directory
1344  exactly as you would for the default directory.
1345  These directories are completely independent (but read on).
1346  Note that setting the environment variable 
1347 \begin_inset Flex Code
1348 status collapsed
1349
1350 \begin_layout Plain Layout
1351 LYX_USERDIR_VER
1352 \end_layout
1353
1354 \end_inset
1355
1356  to some value has exactly the same effect.
1357 \end_layout
1358
1359 \begin_layout Standard
1360 Having several configurations also requires more maintenance: if you want
1361  to add a new layout to 
1362 \begin_inset Flex Code
1363 status collapsed
1364
1365 \begin_layout Plain Layout
1366 NewUserDir/layouts
1367 \end_layout
1368
1369 \end_inset
1370
1371  which you want available from all your configurations, you must add it
1372  to each directory separately.
1373  You can avoid this with the following trick: after \SpecialChar LyX
1374  creates the additional
1375  directory, most of the subdirectories (see above) are empty.
1376  If you want the new configuration to mirror an existing one, replace the
1377  empty subdirectory with a symbolic link to the matching subdirectory in
1378  the existing configuration.
1379  Take care with the 
1380 \begin_inset Flex Code
1381 status collapsed
1382
1383 \begin_layout Plain Layout
1384 doc/
1385 \end_layout
1386
1387 \end_inset
1388
1389  subdirectory, however, since it contains a file written by the configuration
1390  script (also accessible through 
1391 \begin_inset Flex Noun
1392 status collapsed
1393
1394 \begin_layout Plain Layout
1395 Tools\SpecialChar menuseparator
1396 Reconfigure
1397 \end_layout
1398
1399 \end_inset
1400
1401 ) which is configuration-specific.
1402 \end_layout
1403
1404 \begin_layout Chapter
1405 The Preferences dialog
1406 \end_layout
1407
1408 \begin_layout Standard
1409 All options of the preferences dialog are described in the Appendix 
1410 \emph on
1411 The Preferences Dialog
1412 \emph default
1413  in the 
1414 \emph on
1415 User's Guide
1416 \emph default
1417 .
1418  For some options you might find here more details.
1419 \end_layout
1420
1421 \begin_layout Section
1422 Formats
1423 \begin_inset CommandInset label
1424 LatexCommand label
1425 name "sec:Formats"
1426
1427 \end_inset
1428
1429
1430 \end_layout
1431
1432 \begin_layout Standard
1433 The first step is to define your file formats if they are not already defined.
1434  To do so, open the 
1435 \begin_inset Flex Noun
1436 status collapsed
1437
1438 \begin_layout Plain Layout
1439 Tools\SpecialChar menuseparator
1440 Preferences
1441 \end_layout
1442
1443 \end_inset
1444
1445  dialog.
1446  Under 
1447 \begin_inset Flex Noun
1448 status collapsed
1449
1450 \begin_layout Plain Layout
1451 File Handling\SpecialChar menuseparator
1452 File formats
1453 \end_layout
1454
1455 \end_inset
1456
1457  press the 
1458 \begin_inset Flex Noun
1459 status collapsed
1460
1461 \begin_layout Plain Layout
1462 New
1463 \end_layout
1464
1465 \end_inset
1466
1467  button to define your new format.
1468  The 
1469 \begin_inset Flex Noun
1470 status collapsed
1471
1472 \begin_layout Plain Layout
1473 Format
1474 \end_layout
1475
1476 \end_inset
1477
1478  field contains the name used to identify the format in the GUI.
1479  The 
1480 \begin_inset Flex Noun
1481 status collapsed
1482
1483 \begin_layout Plain Layout
1484 Short Name
1485 \end_layout
1486
1487 \end_inset
1488
1489  is used to identify the format internally.
1490  You will also need to enter a file extension.
1491  These are all required.
1492  The optional 
1493 \begin_inset Flex Noun
1494 status collapsed
1495
1496 \begin_layout Plain Layout
1497 Shortcut
1498 \end_layout
1499
1500 \end_inset
1501
1502  field is used to provide a keyboard shortcut on the menus.
1503  (For example, pressing 
1504 \begin_inset Flex Noun
1505 status collapsed
1506
1507 \begin_layout Plain Layout
1508 Ctrl+D
1509 \end_layout
1510
1511 \end_inset
1512
1513  will 
1514 \begin_inset Flex Noun
1515 status collapsed
1516
1517 \begin_layout Plain Layout
1518 Document\SpecialChar menuseparator
1519 View (Other Formats)\SpecialChar menuseparator
1520 DVI
1521 \end_layout
1522
1523 \end_inset
1524
1525 .) 
1526 \end_layout
1527
1528 \begin_layout Standard
1529 A Format can have a 
1530 \begin_inset Flex Noun
1531 status collapsed
1532
1533 \begin_layout Plain Layout
1534 Viewer
1535 \end_layout
1536
1537 \end_inset
1538
1539  and an 
1540 \begin_inset Flex Noun
1541 status collapsed
1542
1543 \begin_layout Plain Layout
1544 Editor
1545 \end_layout
1546
1547 \end_inset
1548
1549  associated with it.
1550  For example, you might want to use 
1551 \begin_inset Flex Noun
1552 status collapsed
1553
1554 \begin_layout Plain Layout
1555 Ghostview
1556 \end_layout
1557
1558 \end_inset
1559
1560  to view PostScript files.
1561  You can enter the command needed to start the program in the corresponding
1562  fields.
1563  In defining this command, you can use the four variables listed in the
1564  next section.
1565  The viewer is launched when you view an image in \SpecialChar LyX
1566  or use the 
1567 \begin_inset Flex Noun
1568 status collapsed
1569
1570 \begin_layout Plain Layout
1571 Document\SpecialChar menuseparator
1572 View
1573 \end_layout
1574
1575 \end_inset
1576
1577  menu.
1578  The editor is for example launched when you right-click on an image and
1579  choose 
1580 \begin_inset Flex Noun
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 Edit externally
1585 \end_layout
1586
1587 \end_inset
1588
1589  in the appearing context menu.
1590 \end_layout
1591
1592 \begin_layout Standard
1593 The 
1594 \begin_inset Flex Noun
1595 status collapsed
1596
1597 \begin_layout Plain Layout
1598 MIME
1599 \end_layout
1600
1601 \end_inset
1602
1603  type of a format is optional, but if it is specified, it must be unique
1604  across all formats.
1605  It is used to detect files of this format from the file contents.
1606  For some important file formats there is no MIME type officially registered
1607  with the 
1608 \begin_inset CommandInset href
1609 LatexCommand href
1610 name "IANA"
1611 target "http://www.iana.org/assignments/media-types/"
1612 literal "false"
1613
1614 \end_inset
1615
1616 .
1617  Therefore \SpecialChar LyX
1618  uses the extended list of MIME types as specified by 
1619 \begin_inset CommandInset href
1620 LatexCommand href
1621 name "freedesktop.org"
1622 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1623 literal "false"
1624
1625 \end_inset
1626
1627 .
1628 \end_layout
1629
1630 \begin_layout Standard
1631 The 
1632 \begin_inset Flex Noun
1633 status collapsed
1634
1635 \begin_layout Plain Layout
1636 Document format
1637 \end_layout
1638
1639 \end_inset
1640
1641  option tells \SpecialChar LyX
1642  that a format is suitable for document export.
1643  If this is set and if a suitable conversion route exists (see 
1644 \begin_inset CommandInset ref
1645 LatexCommand ref
1646 reference "sec:Converters"
1647
1648 \end_inset
1649
1650 ), the format will appear in the 
1651 \begin_inset Flex Noun
1652 status collapsed
1653
1654 \begin_layout Plain Layout
1655 File\SpecialChar menuseparator
1656 Export
1657 \end_layout
1658
1659 \end_inset
1660
1661  menu.
1662  The format will also appear in the 
1663 \begin_inset Flex Noun
1664 status collapsed
1665
1666 \begin_layout Plain Layout
1667 Document\SpecialChar menuseparator
1668 View
1669 \end_layout
1670
1671 \end_inset
1672
1673  menu if a viewer is specified for the format.
1674  Pure image formats, such as 
1675 \begin_inset Flex Code
1676 status collapsed
1677
1678 \begin_layout Plain Layout
1679 png
1680 \end_layout
1681
1682 \end_inset
1683
1684 , should not use this option.
1685  Formats that can both represent vector graphics and documents like 
1686 \begin_inset Flex Code
1687 status collapsed
1688
1689 \begin_layout Plain Layout
1690 pdf
1691 \end_layout
1692
1693 \end_inset
1694
1695  should use it.
1696 \end_layout
1697
1698 \begin_layout Standard
1699 The option 
1700 \begin_inset Flex Noun
1701 status collapsed
1702
1703 \begin_layout Plain Layout
1704 Vector graphics format
1705 \end_layout
1706
1707 \end_inset
1708
1709  tells \SpecialChar LyX
1710  that a format can contain vector graphics.
1711  This information is used to determine the target format of included graphics
1712  for 
1713 \begin_inset Flex Noun
1714 status collapsed
1715
1716 \begin_layout Plain Layout
1717 pdflatex
1718 \end_layout
1719
1720 \end_inset
1721
1722  export.
1723  Included graphics may need to be converted to either 
1724 \begin_inset Flex Noun
1725 status collapsed
1726
1727 \begin_layout Plain Layout
1728 pdf
1729 \end_layout
1730
1731 \end_inset
1732
1733
1734 \begin_inset Flex Noun
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 png
1739 \end_layout
1740
1741 \end_inset
1742
1743 , or 
1744 \begin_inset Flex Noun
1745 status collapsed
1746
1747 \begin_layout Plain Layout
1748 jpg
1749 \end_layout
1750
1751 \end_inset
1752
1753 , since 
1754 \begin_inset Flex Noun
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 pdflatex
1759 \end_layout
1760
1761 \end_inset
1762
1763  cannot handle other image formats.
1764  If an included graphic is not already in 
1765 \begin_inset Flex Noun
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 pdf
1770 \end_layout
1771
1772 \end_inset
1773
1774
1775 \begin_inset Flex Noun
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779 png
1780 \end_layout
1781
1782 \end_inset
1783
1784 , or 
1785 \begin_inset Flex Noun
1786 status collapsed
1787
1788 \begin_layout Plain Layout
1789 jpg
1790 \end_layout
1791
1792 \end_inset
1793
1794  format, it is converted to 
1795 \begin_inset Flex Noun
1796 status collapsed
1797
1798 \begin_layout Plain Layout
1799 pdf
1800 \end_layout
1801
1802 \end_inset
1803
1804  if the vector format option is set, and otherwise to 
1805 \begin_inset Flex Noun
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 png
1810 \end_layout
1811
1812 \end_inset
1813
1814 .
1815 \end_layout
1816
1817 \begin_layout Section
1818 Copiers
1819 \end_layout
1820
1821 \begin_layout Standard
1822 Since all conversions from one format to another take place in \SpecialChar LyX
1823 's temporary
1824  directory, it is sometimes necessary to modify a file before copying it
1825  to the temporary directory in order that the conversion may be performed.
1826 \begin_inset Foot
1827 status collapsed
1828
1829 \begin_layout Plain Layout
1830 For example, the file may refer to other files—images, for example—using
1831  relative file names, and these may become invalid when the file is copied
1832  to the temporary directory.
1833 \end_layout
1834
1835 \end_inset
1836
1837  This is done by a Copier: It copies a file to (or from) the temporary directory
1838  and may modify it in the process.
1839 \end_layout
1840
1841 \begin_layout Standard
1842 The definitions of the copiers may use eight variables:
1843 \end_layout
1844
1845 \begin_layout Labeling
1846 \labelwidthstring 00.00.0000
1847 \begin_inset Flex Code
1848 status collapsed
1849
1850 \begin_layout Plain Layout
1851 $$s
1852 \end_layout
1853
1854 \end_inset
1855
1856  The \SpecialChar LyX
1857  system directory (e.
1858 \begin_inset space \thinspace{}
1859 \end_inset
1860
1861 g.
1862 \begin_inset space \space{}
1863 \end_inset
1864
1865
1866 \begin_inset Flex Noun
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 /usr/share/lyx
1871 \end_layout
1872
1873 \end_inset
1874
1875 ).
1876 \end_layout
1877
1878 \begin_layout Labeling
1879 \labelwidthstring 00.00.0000
1880 \begin_inset Flex Code
1881 status collapsed
1882
1883 \begin_layout Plain Layout
1884 $$i
1885 \end_layout
1886
1887 \end_inset
1888
1889  The input file
1890 \end_layout
1891
1892 \begin_layout Labeling
1893 \labelwidthstring 00.00.0000
1894 \begin_inset Flex Code
1895 status collapsed
1896
1897 \begin_layout Plain Layout
1898 $$o
1899 \end_layout
1900
1901 \end_inset
1902
1903  The output file
1904 \end_layout
1905
1906 \begin_layout Labeling
1907 \labelwidthstring 00.00.0000
1908 \begin_inset Flex Code
1909 status collapsed
1910
1911 \begin_layout Plain Layout
1912 $$b
1913 \end_layout
1914
1915 \end_inset
1916
1917  The base name (without filename extension) in the \SpecialChar LyX
1918  temporary directory
1919 \end_layout
1920
1921 \begin_layout Labeling
1922 \labelwidthstring 00.00.0000
1923 \begin_inset Flex Code
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 $$p
1928 \end_layout
1929
1930 \end_inset
1931
1932  The full directory path of the \SpecialChar LyX
1933  temporary directory
1934 \end_layout
1935
1936 \begin_layout Labeling
1937 \labelwidthstring 00.00.0000
1938 \begin_inset Flex Code
1939 status collapsed
1940
1941 \begin_layout Plain Layout
1942 $$r
1943 \end_layout
1944
1945 \end_inset
1946
1947  The full pathname to the original \SpecialChar LyX
1948  file being processed
1949 \end_layout
1950
1951 \begin_layout Labeling
1952 \labelwidthstring 00.00.0000
1953 \begin_inset Flex Code
1954 status collapsed
1955
1956 \begin_layout Plain Layout
1957 $$f
1958 \end_layout
1959
1960 \end_inset
1961
1962  The filename (without any directory path) of the \SpecialChar LyX
1963  file.
1964 \end_layout
1965
1966 \begin_layout Labeling
1967 \labelwidthstring 00.00.0000
1968 \begin_inset Flex Code
1969 status collapsed
1970
1971 \begin_layout Plain Layout
1972 $$l
1973 \end_layout
1974
1975 \end_inset
1976
1977  The `\SpecialChar LaTeX
1978  name'
1979 \end_layout
1980
1981 \begin_layout Standard
1982 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1983 's 
1984 \series bold
1985
1986 \backslash
1987 include
1988 \series default
1989  command.
1990  It is relevant only when exporting files suitable for such inclusion.
1991 \end_layout
1992
1993 \begin_layout Standard
1994 Copiers can be used to do almost anything with output files.
1995  For example, suppose you want generated pdf files to be copied to a special
1996  directory, 
1997 \begin_inset Flex Code
1998 status collapsed
1999
2000 \begin_layout Plain Layout
2001 /home/you/pdf/
2002 \end_layout
2003
2004 \end_inset
2005
2006 .
2007  Then you could write a shell script such as this one:
2008 \end_layout
2009
2010 \begin_layout Standard
2011 \begin_inset listings
2012 inline false
2013 status open
2014
2015 \begin_layout Plain Layout
2016
2017 #!/bin/bash
2018 \end_layout
2019
2020 \begin_layout Plain Layout
2021
2022 FROMFILE=$1
2023 \end_layout
2024
2025 \begin_layout Plain Layout
2026
2027 TOFILE=`basename $2`
2028 \end_layout
2029
2030 \begin_layout Plain Layout
2031
2032 cp $FROMFILE /home/you/pdf/$TOFILE
2033 \end_layout
2034
2035 \end_inset
2036
2037 Save it in your local \SpecialChar LyX
2038  directory—say, 
2039 \begin_inset Flex Code
2040 status collapsed
2041
2042 \begin_layout Plain Layout
2043 /home/you/.lyx/scripts/pdfcopier.sh
2044 \end_layout
2045
2046 \end_inset
2047
2048 —and make it executable, if you need to do so on your platform.
2049  Then, in the 
2050 \begin_inset Flex Noun
2051 status collapsed
2052
2053 \begin_layout Plain Layout
2054 Tools\SpecialChar menuseparator
2055 Preferences
2056 \end_layout
2057
2058 \end_inset
2059
2060  dialog, select under 
2061 \begin_inset Flex Noun
2062 status collapsed
2063
2064 \begin_layout Plain Layout
2065 File Handling\SpecialChar menuseparator
2066 File formats
2067 \end_layout
2068
2069 \end_inset
2070
2071  the 
2072 \begin_inset Flex Noun
2073 status collapsed
2074
2075 \begin_layout Plain Layout
2076 PDF(pdflatex)
2077 \end_layout
2078
2079 \end_inset
2080
2081  format—or one of the other pdf formats—and enter 
2082 \begin_inset Flex Code
2083 status collapsed
2084
2085 \begin_layout Plain Layout
2086 pdfcopier.sh $$i $$o
2087 \end_layout
2088
2089 \end_inset
2090
2091  into the 
2092 \begin_inset Flex Noun
2093 status collapsed
2094
2095 \begin_layout Plain Layout
2096 Copier
2097 \end_layout
2098
2099 \end_inset
2100
2101  field.
2102  
2103 \end_layout
2104
2105 \begin_layout Standard
2106 Copiers are used by \SpecialChar LyX
2107  in various of its own conversions.
2108  For example, if appropriate programs are found, \SpecialChar LyX
2109  will automatically install
2110  copiers for the 
2111 \begin_inset Flex Noun
2112 status collapsed
2113
2114 \begin_layout Plain Layout
2115 HTML
2116 \end_layout
2117
2118 \end_inset
2119
2120  and 
2121 \begin_inset Flex Noun
2122 status collapsed
2123
2124 \begin_layout Plain Layout
2125 HTML
2126 \begin_inset space ~
2127 \end_inset
2128
2129 (MS Word)
2130 \end_layout
2131
2132 \end_inset
2133
2134  formats.
2135  When these formats are exported, the copier sees that not just the main
2136  HTML file but various associated files (style files, images, etc.) are also
2137  copied.
2138  All these files are written to a subdirectory of the directory in which
2139  the original \SpecialChar LyX
2140  file was found.
2141 \begin_inset Foot
2142 status collapsed
2143
2144 \begin_layout Plain Layout
2145 This copier can be customized.
2146  The optional 
2147 \begin_inset Quotes eld
2148 \end_inset
2149
2150 -e
2151 \begin_inset Quotes erd
2152 \end_inset
2153
2154  argument takes a comma-separated list of extensions to be copied; if it
2155  is omitted, all files will be copied.
2156  The 
2157 \begin_inset Quotes eld
2158 \end_inset
2159
2160 -t
2161 \begin_inset Quotes erd
2162 \end_inset
2163
2164  argument determines the extension added to the generated directory.
2165  By default, it is 
2166 \begin_inset Quotes eld
2167 \end_inset
2168
2169
2170 \begin_inset Flex Noun
2171 status collapsed
2172
2173 \begin_layout Plain Layout
2174 LyXconv
2175 \end_layout
2176
2177 \end_inset
2178
2179
2180 \begin_inset Quotes erd
2181 \end_inset
2182
2183 , so HTML generated from 
2184 \begin_inset Flex Noun
2185 status collapsed
2186
2187 \begin_layout Plain Layout
2188 /path/to/filename.lyx
2189 \end_layout
2190
2191 \end_inset
2192
2193  will end up in 
2194 \begin_inset Flex Noun
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 /path/to/filename.html.LyXconv
2199 \end_layout
2200
2201 \end_inset
2202
2203 .
2204  
2205 \end_layout
2206
2207 \end_inset
2208
2209
2210 \end_layout
2211
2212 \begin_layout Section
2213 Converters
2214 \begin_inset CommandInset label
2215 LatexCommand label
2216 name "sec:Converters"
2217
2218 \end_inset
2219
2220
2221 \end_layout
2222
2223 \begin_layout Standard
2224 You can define your own Converters to convert files between different formats.
2225  This is done in the 
2226 \begin_inset Flex Noun
2227 status collapsed
2228
2229 \begin_layout Plain Layout
2230 Tools\SpecialChar menuseparator
2231 Preferences\SpecialChar menuseparator
2232 File Handling\SpecialChar menuseparator
2233 Converters
2234 \end_layout
2235
2236 \end_inset
2237
2238  dialog.
2239 \end_layout
2240
2241 \begin_layout Standard
2242 To define a new converter, select the 
2243 \begin_inset Flex Noun
2244 status collapsed
2245
2246 \begin_layout Plain Layout
2247 From
2248 \begin_inset space ~
2249 \end_inset
2250
2251 format
2252 \end_layout
2253
2254 \end_inset
2255
2256  and 
2257 \begin_inset Flex Noun
2258 status collapsed
2259
2260 \begin_layout Plain Layout
2261 To
2262 \begin_inset space ~
2263 \end_inset
2264
2265 format
2266 \end_layout
2267
2268 \end_inset
2269
2270  from the drop-down lists, enter the command needed for the conversion,
2271  and then press the 
2272 \begin_inset Flex Noun
2273 status collapsed
2274
2275 \begin_layout Plain Layout
2276 Add
2277 \end_layout
2278
2279 \end_inset
2280
2281  button.
2282  Several variables can be used in the definition of converters:
2283 \end_layout
2284
2285 \begin_layout Labeling
2286 \labelwidthstring 00.00.0000
2287 \begin_inset Flex Code
2288 status collapsed
2289
2290 \begin_layout Plain Layout
2291 $$s
2292 \end_layout
2293
2294 \end_inset
2295
2296  The \SpecialChar LyX
2297  system directory
2298 \end_layout
2299
2300 \begin_layout Labeling
2301 \labelwidthstring 00.00.0000
2302 \begin_inset Flex Code
2303 status collapsed
2304
2305 \begin_layout Plain Layout
2306 $$i
2307 \end_layout
2308
2309 \end_inset
2310
2311  The input file
2312 \end_layout
2313
2314 \begin_layout Labeling
2315 \labelwidthstring 00.00.0000
2316 \begin_inset Flex Code
2317 status collapsed
2318
2319 \begin_layout Plain Layout
2320 $$o
2321 \end_layout
2322
2323 \end_inset
2324
2325  The output file
2326 \end_layout
2327
2328 \begin_layout Labeling
2329 \labelwidthstring 00.00.0000
2330 \begin_inset Flex Code
2331 status collapsed
2332
2333 \begin_layout Plain Layout
2334 $$b
2335 \end_layout
2336
2337 \end_inset
2338
2339  The base filename of the input file (i.
2340 \begin_inset space \thinspace{}
2341 \end_inset
2342
2343 g., without the extension)
2344 \end_layout
2345
2346 \begin_layout Labeling
2347 \labelwidthstring 00.00.0000
2348 \begin_inset Flex Code
2349 status collapsed
2350
2351 \begin_layout Plain Layout
2352 $$p
2353 \end_layout
2354
2355 \end_inset
2356
2357  The path to the input file
2358 \end_layout
2359
2360 \begin_layout Labeling
2361 \labelwidthstring 00.00.0000
2362 \begin_inset Flex Code
2363 status collapsed
2364
2365 \begin_layout Plain Layout
2366 $$r
2367 \end_layout
2368
2369 \end_inset
2370
2371  The path to the original input file (this is different from $$p when a
2372  chain of converters is called)
2373 \end_layout
2374
2375 \begin_layout Labeling
2376 \labelwidthstring 00.00.0000
2377 \begin_inset Flex Code
2378 status collapsed
2379
2380 \begin_layout Plain Layout
2381 $$e
2382 \end_layout
2383
2384 \end_inset
2385
2386  The iconv name for the encoding of the document.
2387 \end_layout
2388
2389 \begin_layout Standard
2390 In the 
2391 \begin_inset Flex Noun
2392 status collapsed
2393
2394 \begin_layout Plain Layout
2395 Extra
2396 \begin_inset space ~
2397 \end_inset
2398
2399 Flag
2400 \end_layout
2401
2402 \end_inset
2403
2404  field you can enter the following flags, separated by commas:
2405 \end_layout
2406
2407 \begin_layout Labeling
2408 \labelwidthstring 00.00.0000
2409 \begin_inset Flex Code
2410 status collapsed
2411
2412 \begin_layout Plain Layout
2413 latex
2414 \change_inserted -712698321 1524656940
2415 =flavor
2416 \change_unchanged
2417
2418 \end_layout
2419
2420 \end_inset
2421
2422  This converter runs some form of \SpecialChar LaTeX
2423 .
2424  This will make \SpecialChar LyX
2425 's \SpecialChar LaTeX
2426  error logs available.
2427
2428 \change_inserted -712698321 1524657018
2429  The optional 
2430 \begin_inset Flex Code
2431 status open
2432
2433 \begin_layout Plain Layout
2434
2435 \change_inserted -712698321 1524657012
2436 flavor
2437 \change_unchanged
2438
2439 \end_layout
2440
2441 \end_inset
2442
2443  value specifies the form of \SpecialChar LaTeX
2444  that is run (
2445 \begin_inset Flex Code
2446 status open
2447
2448 \begin_layout Plain Layout
2449
2450 \change_inserted -712698321 1524657005
2451 latex, pdflatex, platex, xetex, luatex
2452 \change_unchanged
2453
2454 \end_layout
2455
2456 \end_inset
2457
2458 ).
2459  If no value is specified, 
2460 \begin_inset Flex Code
2461 status open
2462
2463 \begin_layout Plain Layout
2464
2465 \change_inserted -712698321 1524657018
2466 latex
2467 \change_unchanged
2468
2469 \end_layout
2470
2471 \end_inset
2472
2473  is used.
2474 \change_unchanged
2475
2476 \end_layout
2477
2478 \begin_layout Labeling
2479 \labelwidthstring 00.00.0000
2480 \begin_inset Flex Code
2481 status collapsed
2482
2483 \begin_layout Plain Layout
2484 needaux
2485 \change_inserted -712698321 1524656935
2486 =flavor
2487 \change_unchanged
2488
2489 \end_layout
2490
2491 \end_inset
2492
2493  Needs the \SpecialChar LaTeX
2494  
2495 \begin_inset Flex Noun
2496 status collapsed
2497
2498 \begin_layout Plain Layout
2499 .aux
2500 \end_layout
2501
2502 \end_inset
2503
2504  file for the conversion.
2505
2506 \change_inserted -712698321 1524657047
2507  The optional 
2508 \begin_inset Flex Code
2509 status open
2510
2511 \begin_layout Plain Layout
2512
2513 \change_inserted -712698321 1524657030
2514 flavor
2515 \end_layout
2516
2517 \end_inset
2518
2519  value specifies the form of \SpecialChar LaTeX
2520  that is run in order to generate the 
2521 \begin_inset Flex Noun
2522 status collapsed
2523
2524 \begin_layout Plain Layout
2525
2526 \change_inserted -712698321 1524657047
2527 .aux
2528 \end_layout
2529
2530 \end_inset
2531
2532  file (
2533 \begin_inset Flex Code
2534 status open
2535
2536 \begin_layout Plain Layout
2537
2538 \change_inserted -712698321 1524657030
2539 latex, pdflatex, platex, xetex, luatex
2540 \end_layout
2541
2542 \end_inset
2543
2544 ).
2545  If no value is specified, 
2546 \begin_inset Flex Code
2547 status open
2548
2549 \begin_layout Plain Layout
2550
2551 \change_inserted -712698321 1524657030
2552 latex
2553 \end_layout
2554
2555 \end_inset
2556
2557  is used.
2558 \change_unchanged
2559
2560 \end_layout
2561
2562 \begin_layout Labeling
2563 \labelwidthstring 00.00.0000
2564 \begin_inset Flex Code
2565 status collapsed
2566
2567 \begin_layout Plain Layout
2568 nice
2569 \end_layout
2570
2571 \end_inset
2572
2573  Needs a 
2574 \begin_inset Quotes eld
2575 \end_inset
2576
2577 nice
2578 \begin_inset Quotes erd
2579 \end_inset
2580
2581  file from the backend, which in practice means a \SpecialChar LaTeX
2582  file like the one we
2583  would export, without 
2584 \begin_inset Flex Code
2585 status collapsed
2586
2587 \begin_layout Plain Layout
2588 input@path
2589 \end_layout
2590
2591 \end_inset
2592
2593 .
2594 \end_layout
2595
2596 \begin_layout Labeling
2597 \labelwidthstring 00.00.0000
2598 \begin_inset Flex Code
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 xml
2603 \end_layout
2604
2605 \end_inset
2606
2607  Output is XML.
2608 \end_layout
2609
2610 \begin_layout Standard
2611 The following three flags are not really flags at all because they take
2612  an argument in the 
2613 \begin_inset Flex Noun
2614 status collapsed
2615
2616 \begin_layout Plain Layout
2617 key
2618 \begin_inset space ~
2619 \end_inset
2620
2621 =
2622 \begin_inset space ~
2623 \end_inset
2624
2625 value
2626 \end_layout
2627
2628 \end_inset
2629
2630  format:
2631 \end_layout
2632
2633 \begin_layout Labeling
2634 \labelwidthstring 00.00.0000
2635
2636 \change_inserted -712698321 1523206314
2637 \begin_inset Flex Code
2638 status collapsed
2639
2640 \begin_layout Plain Layout
2641
2642 \change_inserted -712698321 1523206193
2643 hyperref-driver
2644 \end_layout
2645
2646 \end_inset
2647
2648  The name of the driver that needs to be loaded with the 
2649 \family sans
2650 hyperref
2651 \family default
2652  package for this converter.
2653  The loading of the correct driver is necessary to get some PDF-specific
2654  features.
2655  See the 
2656 \family sans
2657 hyperref
2658 \family default
2659  manual for details.
2660 \end_layout
2661
2662 \begin_layout Labeling
2663 \labelwidthstring 00.00.0000
2664 \begin_inset Flex Code
2665 status collapsed
2666
2667 \begin_layout Plain Layout
2668 parselog
2669 \end_layout
2670
2671 \end_inset
2672
2673  If set, the converter's standard error will be redirected to a file 
2674 \begin_inset Flex Code
2675 status collapsed
2676
2677 \begin_layout Plain Layout
2678 infile.out
2679 \end_layout
2680
2681 \end_inset
2682
2683 , and the script given as argument will be run as: 
2684 \begin_inset Flex Code
2685 status collapsed
2686
2687 \begin_layout Plain Layout
2688 script < infile.out > infile.log
2689 \end_layout
2690
2691 \end_inset
2692
2693 .
2694  The argument may contain 
2695 \begin_inset Flex Code
2696 status collapsed
2697
2698 \begin_layout Plain Layout
2699 $$s
2700 \end_layout
2701
2702 \end_inset
2703
2704 .
2705 \end_layout
2706
2707 \begin_layout Labeling
2708 \labelwidthstring 00.00.0000
2709 \begin_inset Flex Code
2710 status collapsed
2711
2712 \begin_layout Plain Layout
2713 resultdir
2714 \end_layout
2715
2716 \end_inset
2717
2718  The name of the directory in which the converter will dump the generated
2719  files.
2720  \SpecialChar LyX
2721  will not create this directory, and it does not copy anything into it,
2722  though it will copy this directory to the destination.
2723  The argument may contain 
2724 \begin_inset Flex Code
2725 status collapsed
2726
2727 \begin_layout Plain Layout
2728 $$b
2729 \end_layout
2730
2731 \end_inset
2732
2733 , which will be replaced by the base name of the input and output files,
2734  respectively, when the directory is copied.
2735 \begin_inset Newline newline
2736 \end_inset
2737
2738 Note that resultdir and usetempdir make no sense together.
2739  The latter will be ignored if the former is given.
2740 \end_layout
2741
2742 \begin_layout Labeling
2743 \labelwidthstring 00.00.0000
2744 \begin_inset Flex Code
2745 status collapsed
2746
2747 \begin_layout Plain Layout
2748 resultfile
2749 \end_layout
2750
2751 \end_inset
2752
2753  Determines the output file name and may, contain 
2754 \begin_inset Flex Code
2755 status collapsed
2756
2757 \begin_layout Plain Layout
2758 $$b
2759 \end_layout
2760
2761 \end_inset
2762
2763 .
2764  Sensible only with resultdir and optional even then; if not given, it defaults
2765  to `index'.
2766 \end_layout
2767
2768 \begin_layout Standard
2769
2770 \change_inserted -712698321 1523206384
2771 A suitable hyperref-driver is set for some converters that are installed
2772  with \SpecialChar LyX
2773 .
2774  
2775 \change_deleted -712698321 1523206388
2776 None of these
2777 \change_inserted -712698321 1523206389
2778 The
2779 \change_unchanged
2780  last three
2781 \change_inserted -712698321 1523206400
2782  flags, however,
2783 \change_unchanged
2784  are presently 
2785 \change_inserted -712698321 1523206407
2786 not 
2787 \change_unchanged
2788 used in any of the 
2789 \change_inserted -712698321 1523206437
2790 pre-installed 
2791 \change_unchanged
2792 converters
2793 \change_deleted -712698321 1523206442
2794  that are installed with \SpecialChar LyX
2795
2796 \change_unchanged
2797 .
2798  
2799 \end_layout
2800
2801 \begin_layout Standard
2802 You do not have to define converters for all formats between which you want
2803  to convert.
2804  For example, you will note that there is no `\SpecialChar LyX
2805  to PostScript' converter,
2806  but \SpecialChar LyX
2807  will export PostScript.
2808  It does so by first creating a \SpecialChar LaTeX
2809  file (no converter needs to be defined
2810  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2811  to DVI' converter,
2812  and finally converting the resulting DVI file to PostScript.
2813  \SpecialChar LyX
2814  finds such `chains' of converters automatically, and it will always choose
2815  the shortest possible chain.
2816  You can, though, still define multiple conversion methods between file
2817  formats.
2818  For example, the standard \SpecialChar LyX
2819  configuration provides five ways to convert
2820  \SpecialChar LaTeX
2821  to PDF:
2822 \end_layout
2823
2824 \begin_layout Enumerate
2825 Directly, using 
2826 \begin_inset Flex Noun
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830 pdflatex
2831 \end_layout
2832
2833 \end_inset
2834
2835
2836 \end_layout
2837
2838 \begin_layout Enumerate
2839 via (DVI and) PostScript, using 
2840 \begin_inset Flex Noun
2841 status collapsed
2842
2843 \begin_layout Plain Layout
2844 ps2pdf
2845 \end_layout
2846
2847 \end_inset
2848
2849
2850 \end_layout
2851
2852 \begin_layout Enumerate
2853 via DVI, using 
2854 \begin_inset Flex Noun
2855 status collapsed
2856
2857 \begin_layout Plain Layout
2858 dvipdfm
2859 \end_layout
2860
2861 \end_inset
2862
2863
2864 \end_layout
2865
2866 \begin_layout Enumerate
2867 directly using 
2868 \begin_inset Flex Noun
2869 status collapsed
2870
2871 \begin_layout Plain Layout
2872 Xe\SpecialChar TeX
2873
2874 \end_layout
2875
2876 \end_inset
2877
2878
2879 \end_layout
2880
2881 \begin_layout Enumerate
2882 directly using 
2883 \begin_inset Flex Noun
2884 status collapsed
2885
2886 \begin_layout Plain Layout
2887 Lua\SpecialChar TeX
2888
2889 \end_layout
2890
2891 \end_inset
2892
2893
2894 \end_layout
2895
2896 \begin_layout Standard
2897 To define such alternate chains, you must define multiple target `file formats',
2898  as described in 
2899 \begin_inset CommandInset ref
2900 LatexCommand ref
2901 reference "sec:Formats"
2902
2903 \end_inset
2904
2905 .
2906  For example, in the standard configuration, the formats named 
2907 \begin_inset Flex Noun
2908 status collapsed
2909
2910 \begin_layout Plain Layout
2911 pdf
2912 \end_layout
2913
2914 \end_inset
2915
2916  (for 
2917 \begin_inset Flex Noun
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921 ps2pdf
2922 \end_layout
2923
2924 \end_inset
2925
2926 ), 
2927 \begin_inset Flex Noun
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 pdf2
2932 \end_layout
2933
2934 \end_inset
2935
2936  (for 
2937 \begin_inset Flex Noun
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 pdflatex
2942 \end_layout
2943
2944 \end_inset
2945
2946 ), 
2947 \begin_inset Flex Noun
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951 pdf3
2952 \end_layout
2953
2954 \end_inset
2955
2956  (for 
2957 \begin_inset Flex Noun
2958 status collapsed
2959
2960 \begin_layout Plain Layout
2961 dvipdfm
2962 \end_layout
2963
2964 \end_inset
2965
2966 ), 
2967 \begin_inset Flex Noun
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 pdf4
2972 \end_layout
2973
2974 \end_inset
2975
2976  (for 
2977 \begin_inset Flex Noun
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 Xe\SpecialChar TeX
2982
2983 \end_layout
2984
2985 \end_inset
2986
2987 ), and 
2988 \begin_inset Flex Noun
2989 status collapsed
2990
2991 \begin_layout Plain Layout
2992 pdf5
2993 \end_layout
2994
2995 \end_inset
2996
2997  (for 
2998 \begin_inset Flex Noun
2999 status collapsed
3000
3001 \begin_layout Plain Layout
3002 Lua\SpecialChar TeX
3003
3004 \end_layout
3005
3006 \end_inset
3007
3008 ) are defined, all of which share the extension 
3009 \begin_inset Flex Noun
3010 status collapsed
3011
3012 \begin_layout Plain Layout
3013 .pdf
3014 \end_layout
3015
3016 \end_inset
3017
3018 , and which correspond to the conversion methods just mentioned.
3019 \end_layout
3020
3021 \begin_layout Chapter
3022 Internationalizing \SpecialChar LyX
3023
3024 \begin_inset CommandInset label
3025 LatexCommand label
3026 name "cha:Internationalizing-LyX"
3027
3028 \end_inset
3029
3030
3031 \end_layout
3032
3033 \begin_layout Standard
3034 \SpecialChar LyX
3035  supports using a translated interface.
3036  Last time we checked, \SpecialChar LyX
3037  provided text in thirty languages.
3038  The language of choice is called your 
3039 \emph on
3040 locale
3041 \emph default
3042 .
3043  (For further reading on locale settings, see also the documentation for
3044  locale that comes with your operating system.
3045  For Linux, the manual page for 
3046 \begin_inset Flex Code
3047 status collapsed
3048
3049 \begin_layout Plain Layout
3050 locale(5)
3051 \end_layout
3052
3053 \end_inset
3054
3055  could be a good place to start).
3056 \end_layout
3057
3058 \begin_layout Standard
3059 Notice that these translations will work, but do contain a few flaws.
3060  In particular, all dialogs have been designed with the English text in
3061  mind, which means that some of the translated text will be too large to
3062  fit within the space allocated.
3063  This is only a display problem and will not cause any harm.
3064  Also, you will find that some of the translations do not define shortcut
3065  keys for everything.
3066  Sometimes, there are simply not enough free letters to do it.
3067  Other times, the translator just hasn't got around to doing it yet.
3068  Our localization team, which you may wish to join,
3069 \begin_inset Foot
3070 status collapsed
3071
3072 \begin_layout Plain Layout
3073 If you are a fluent speaker of a language other than English, joining these
3074  teams is a great way to give back to the \SpecialChar LyX
3075  community!
3076 \end_layout
3077
3078 \end_inset
3079
3080  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3081 .
3082 \end_layout
3083
3084 \begin_layout Section
3085 Translating \SpecialChar LyX
3086
3087 \end_layout
3088
3089 \begin_layout Subsection
3090 Translating the graphical user interface (text messages).
3091 \end_layout
3092
3093 \begin_layout Standard
3094 \SpecialChar LyX
3095  uses the GNU 
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100 gettext
3101 \end_layout
3102
3103 \end_inset
3104
3105  library to handle the internationalization of the interface.
3106  To have \SpecialChar LyX
3107  speak your favorite language in all menus and dialogs, you need
3108  a 
3109 \begin_inset Flex Code
3110 status collapsed
3111
3112 \begin_layout Plain Layout
3113 po
3114 \end_layout
3115
3116 \end_inset
3117
3118 -file for that language.
3119  When this is available, you'll have to generate a 
3120 \begin_inset Flex Code
3121 status collapsed
3122
3123 \begin_layout Plain Layout
3124 mo
3125 \end_layout
3126
3127 \end_inset
3128
3129 -file from it and install the 
3130 \begin_inset Flex Code
3131 status collapsed
3132
3133 \begin_layout Plain Layout
3134 mo
3135 \end_layout
3136
3137 \end_inset
3138
3139 -file.
3140  The process of doing all of this is explained in the documentation for
3141  GNU 
3142 \begin_inset Flex Code
3143 status collapsed
3144
3145 \begin_layout Plain Layout
3146 gettext
3147 \end_layout
3148
3149 \end_inset
3150
3151 .
3152  It is possible to do this just for yourself, but if you're going to do
3153  it, you might as well share the results of your labors with the rest of
3154  the \SpecialChar LyX
3155  community.
3156  Send a message to the \SpecialChar LyX
3157  developers' list for more information about how
3158  to proceed.
3159 \end_layout
3160
3161 \begin_layout Standard
3162 In short, this is what you should do (xx denotes the language code):
3163 \end_layout
3164
3165 \begin_layout Itemize
3166 Check out the \SpecialChar LyX
3167  source code.
3168  (See the 
3169 \begin_inset CommandInset href
3170 LatexCommand href
3171 name "information on the web"
3172 target "https://www.lyx.org/HowToUseGIT"
3173 literal "false"
3174
3175 \end_inset
3176
3177 .)
3178 \end_layout
3179
3180 \begin_layout Itemize
3181 Copy the file 
3182 \begin_inset Flex Code
3183 status collapsed
3184
3185 \begin_layout Plain Layout
3186 lyx.pot
3187 \end_layout
3188
3189 \end_inset
3190
3191  to the folder of the 
3192 \begin_inset Flex Code
3193 status collapsed
3194
3195 \begin_layout Plain Layout
3196 **.po
3197 \end_layout
3198
3199 \end_inset
3200
3201  files.
3202  Then rename it to 
3203 \begin_inset Flex Code
3204 status collapsed
3205
3206 \begin_layout Plain Layout
3207 xx.po
3208 \end_layout
3209
3210 \end_inset
3211
3212 .
3213  (If 
3214 \begin_inset Flex Code
3215 status collapsed
3216
3217 \begin_layout Plain Layout
3218 lyx.pot
3219 \end_layout
3220
3221 \end_inset
3222
3223  doesn't exist anywhere, it can be remade with the console command 
3224 \begin_inset Flex Code
3225 status collapsed
3226
3227 \begin_layout Plain Layout
3228 make lyx.pot
3229 \end_layout
3230
3231 \end_inset
3232
3233  in that directory, or you can use an existing po-file for some other language
3234  as a template).
3235 \end_layout
3236
3237 \begin_layout Itemize
3238 Edit 
3239 \begin_inset Flex Code
3240 status collapsed
3241
3242 \begin_layout Plain Layout
3243 xx.po
3244 \end_layout
3245
3246 \end_inset
3247
3248 .
3249 \begin_inset Foot
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 This is just a text file, so it can be edited in any text editor.
3254  But there are also specialized programs that support such editing, such
3255  as 
3256 \family typewriter
3257 Poedit
3258 \family default
3259  (for all platforms) or 
3260 \family typewriter
3261 KBabel
3262 \family default
3263  (for KDE).
3264  
3265 \family typewriter
3266 Emacs
3267 \family default
3268  contains a `mode' for editing 
3269 \begin_inset Flex Code
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 po
3274 \end_layout
3275
3276 \end_inset
3277
3278  files, as well, see 
3279 \begin_inset Flex URL
3280 status open
3281
3282 \begin_layout Plain Layout
3283
3284 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3285 \end_layout
3286
3287 \end_inset
3288
3289 .
3290 \end_layout
3291
3292 \end_inset
3293
3294  For some menu- and widget-labels, there are also shortcut keys that should
3295  be translated.
3296  Those keys are marked after a `|', and should be translated according to
3297  the words and phrases of the language.
3298  You should also fill also out the information at the beginning of the new
3299  
3300 \begin_inset Flex Code
3301 status collapsed
3302
3303 \begin_layout Plain Layout
3304 po
3305 \end_layout
3306
3307 \end_inset
3308
3309 -file with your email-address, etc., so people know where to reach you with
3310  suggestions and entertaining flames.
3311 \end_layout
3312
3313 \begin_layout Standard
3314 If you are just doing this on your own, then:
3315 \end_layout
3316
3317 \begin_layout Itemize
3318 Generate 
3319 \begin_inset Flex Code
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323 xx.mo
3324 \end_layout
3325
3326 \end_inset
3327
3328 .
3329  This can be done with 
3330 \begin_inset Flex Code
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334 msgfmt -o xx.mo < xx.po
3335 \end_layout
3336
3337 \end_inset
3338
3339 .
3340 \end_layout
3341
3342 \begin_layout Itemize
3343 Copy the 
3344 \begin_inset Flex Code
3345 status collapsed
3346
3347 \begin_layout Plain Layout
3348 mo
3349 \end_layout
3350
3351 \end_inset
3352
3353 -file to your locale-tree, at the correct directory for application messages
3354  for the language
3355 \series bold
3356  
3357 \series default
3358 xx, and under the name 
3359 \begin_inset Flex Code
3360 status collapsed
3361
3362 \begin_layout Plain Layout
3363 lyx.mo
3364 \end_layout
3365
3366 \end_inset
3367
3368  (e.
3369 \begin_inset space \thinspace{}
3370 \end_inset
3371
3372 g.
3373 \begin_inset space \space{}
3374 \end_inset
3375
3376
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3382 \end_layout
3383
3384 \end_inset
3385
3386
3387 \series bold
3388 .
3389 \end_layout
3390
3391 \begin_layout Standard
3392 As said, however, it would be best if the new 
3393 \begin_inset Flex Code
3394 status collapsed
3395
3396 \begin_layout Plain Layout
3397 po
3398 \end_layout
3399
3400 \end_inset
3401
3402  file could be added to the \SpecialChar LyX
3403  distribution, so others can use it.
3404  Adding it involves making additional changes to \SpecialChar LyX
3405 .
3406  So send an email to the developers' mailing list if you're interested in
3407  doing that.
3408 \end_layout
3409
3410 \begin_layout Subsubsection
3411 Ambiguous messages
3412 \end_layout
3413
3414 \begin_layout Standard
3415 Sometimes it turns out that one English message needs to be translated into
3416  different messages in the target language.
3417  One example is the message 
3418 \begin_inset Flex Code
3419 status collapsed
3420
3421 \begin_layout Plain Layout
3422 To
3423 \end_layout
3424
3425 \end_inset
3426
3427  which has the German translation 
3428 \lang german
3429 Nach
3430 \lang english
3431  or 
3432 \lang german
3433 Bis
3434 \lang english
3435 , depending upon exactly what the English 
3436 \begin_inset Quotes eld
3437 \end_inset
3438
3439 to
3440 \begin_inset Quotes erd
3441 \end_inset
3442
3443  means.
3444  GNU 
3445 \begin_inset Flex Code
3446 status collapsed
3447
3448 \begin_layout Plain Layout
3449 gettext
3450 \end_layout
3451
3452 \end_inset
3453
3454  does not handle such ambiguous translations.
3455  Therefore you have to add some context information to the message: Instead
3456  of 
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 To
3462 \end_layout
3463
3464 \end_inset
3465
3466  it becomes 
3467 \begin_inset Flex Code
3468 status collapsed
3469
3470 \begin_layout Plain Layout
3471 To[[as in 'From format x to format y']]
3472 \end_layout
3473
3474 \end_inset
3475
3476  and 
3477 \begin_inset Flex Code
3478 status collapsed
3479
3480 \begin_layout Plain Layout
3481 To[[as in 'From page x to page y']].
3482 \end_layout
3483
3484 \end_inset
3485
3486  Now the two occurrences of 
3487 \begin_inset Flex Code
3488 status collapsed
3489
3490 \begin_layout Plain Layout
3491 To
3492 \end_layout
3493
3494 \end_inset
3495
3496  are different for 
3497 \begin_inset Flex Code
3498 status collapsed
3499
3500 \begin_layout Plain Layout
3501 gettext
3502 \end_layout
3503
3504 \end_inset
3505
3506  and can be translated correctly to 
3507 \lang german
3508 Nach
3509 \lang english
3510  and 
3511 \lang german
3512 Bis
3513 \lang english
3514 , respectively.
3515 \end_layout
3516
3517 \begin_layout Standard
3518 Of course the context information needs to be stripped off the original
3519  message when no translation is used.
3520  Therefore you have to put it in double square brackets at the end of the
3521  message (see the example above).
3522  The translation mechanism of \SpecialChar LyX
3523  ensures that everything in double square
3524  brackets at the end of messages is removed before displaying the message.
3525 \end_layout
3526
3527 \begin_layout Subsection
3528 Translating the documentation.
3529 \end_layout
3530
3531 \begin_layout Standard
3532 The online documentation (in the 
3533 \begin_inset Flex Noun
3534 status collapsed
3535
3536 \begin_layout Plain Layout
3537 Help
3538 \end_layout
3539
3540 \end_inset
3541
3542 -menu) can (and should!) be translated.
3543  If there are translated versions of the documentation available
3544 \begin_inset Foot
3545 status collapsed
3546
3547 \begin_layout Plain Layout
3548 As of March 2008, at least some of the documents have been translated into
3549  fourteen languages, with the Tutorial available in a few more.
3550 \end_layout
3551
3552 \end_inset
3553
3554  and the locale is set accordingly, these will be used automagically by
3555  \SpecialChar LyX
3556 .
3557  \SpecialChar LyX
3558  looks for translated versions as 
3559 \begin_inset Flex Code
3560 status collapsed
3561
3562 \begin_layout Plain Layout
3563 LyXDir/doc/xx/DocName.lyx
3564 \end_layout
3565
3566 \end_inset
3567
3568 , where 
3569 \begin_inset Flex Code
3570 status collapsed
3571
3572 \begin_layout Plain Layout
3573 xx
3574 \end_layout
3575
3576 \end_inset
3577
3578  is the code for the language currently in use.
3579  If there are no translated documents, the default English versions will
3580  be displayed.
3581  Note that the translated versions must have the same filenames (
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 DocName
3587 \end_layout
3588
3589 \end_inset
3590
3591  above) as the original.
3592  If you feel up to translating the documentation (an excellent way to proof-read
3593  the original documentation by the way!), there are a few things you should
3594  do right away:
3595 \end_layout
3596
3597 \begin_layout Itemize
3598 Check out the documentation translation web page at 
3599 \begin_inset CommandInset href
3600 LatexCommand href
3601 name "https://www.lyx.org/Translation"
3602 target "https://www.lyx.org/Translation"
3603 literal "false"
3604
3605 \end_inset
3606
3607 .
3608  That way, you can find out which (if any) documents have already been translate
3609 d into your language.
3610  You can also find out who (if anyone) is organizing the effort to translate
3611  the documentation into your language.
3612  If no one is organizing the effort, please let us know that you're interested.
3613 \end_layout
3614
3615 \begin_layout Standard
3616 Once you get to actually translating, here's a few hints for you that may
3617  save you trouble:
3618 \end_layout
3619
3620 \begin_layout Itemize
3621 Join the documentation team! There is information on how to do that in 
3622 \begin_inset Flex Code
3623 status collapsed
3624
3625 \begin_layout Plain Layout
3626 Intro.lyx
3627 \end_layout
3628
3629 \end_inset
3630
3631  (
3632 \begin_inset Flex Noun
3633 status collapsed
3634
3635 \begin_layout Plain Layout
3636 Help\SpecialChar menuseparator
3637 Introduction
3638 \end_layout
3639
3640 \end_inset
3641
3642 ), which by the way is the first document you should translate.
3643 \end_layout
3644
3645 \begin_layout Itemize
3646 Learn the typographic conventions for the language you are translating to.
3647  Typography is an ancient art and over the centuries, a great variety of
3648  conventions have developed throughout different parts of the world.
3649  Also study the professional terminology amongst typographers in your country.
3650  Inventing your own terminology will only confuse the users.
3651  
3652 \emph on
3653 (Warning! Typography is addictive!)
3654 \end_layout
3655
3656 \begin_layout Itemize
3657 Make a copy of the document.
3658  This will be your working copy.
3659  You can use this as your personal translated help-file by placing it in
3660  your 
3661 \begin_inset Flex Code
3662 status collapsed
3663
3664 \begin_layout Plain Layout
3665 UserDir/doc/xx/
3666 \end_layout
3667
3668 \end_inset
3669
3670  directory.
3671 \begin_inset Note Greyedout
3672 status open
3673
3674 \begin_layout Plain Layout
3675
3676 \series bold
3677 Note:
3678 \series default
3679  For a complex document with external material (images, etc.), if you make
3680  a copy e.
3681 \begin_inset space \thinspace{}
3682 \end_inset
3683
3684 g.
3685 \begin_inset space \space{}
3686 \end_inset
3687
3688 in a temp dir, beware that the links to external material may be broken
3689  when the document is moved to a different place.
3690  The best way is to retrieve the \SpecialChar LyX
3691  tree from git (see 
3692 \begin_inset Flex URL
3693 status collapsed
3694
3695 \begin_layout Plain Layout
3696
3697 https://www.lyx.org/HowToUseGIT
3698 \end_layout
3699
3700 \end_inset
3701
3702 ) and to edit the doc file in place.
3703 \end_layout
3704
3705 \end_inset
3706
3707
3708 \end_layout
3709
3710 \begin_layout Itemize
3711 Sometimes the original document (from the \SpecialChar LyX
3712  team) will be updated.
3713  Use the source viewer at 
3714 \begin_inset CommandInset href
3715 LatexCommand href
3716 name "https://www.lyx.org/trac/timeline"
3717 target "https://www.lyx.org/trac/timeline"
3718 literal "false"
3719
3720 \end_inset
3721
3722  to see what has been changed.
3723  That way you can easily see which parts of the translated document need
3724  to be updated.
3725 \end_layout
3726
3727 \begin_layout Standard
3728 If you ever find an error in the original document, fix it and notify the
3729  rest of the documentation team of the changes! (You didn't forget to join
3730  the documentation team, did you?)
3731 \end_layout
3732
3733 \begin_layout Standard
3734 \begin_inset Branch OutDated
3735 inverted 0
3736 status collapsed
3737
3738 \begin_layout Section
3739 International Keyboard Support
3740 \end_layout
3741
3742 \begin_layout Standard
3743
3744 \emph on
3745 [Editor's Note: The following section is by
3746 \emph default
3747  
3748 \shape smallcaps
3749 \emph on
3750 Ivan Schreter
3751 \shape default
3752 .
3753  It needs to be fixed to conform to the new Documentation Style sheet and
3754  to make use of the new v1.0 features.
3755  The whole thing also needs to be merged with the section following it.-jw
3756  It may also be badly out of date.-rh (2008)]
3757 \end_layout
3758
3759 \begin_layout Subsection
3760 Defining Own Keymaps: Keymap File Format
3761 \end_layout
3762
3763 \begin_layout Standard
3764 Let's look at a keyboard definition file a little closer.
3765  It is a plain text file defining
3766 \end_layout
3767
3768 \begin_layout Itemize
3769 key-to-key or key-to-string translations
3770 \end_layout
3771
3772 \begin_layout Itemize
3773 dead keys
3774 \end_layout
3775
3776 \begin_layout Itemize
3777 dead keys exceptions
3778 \end_layout
3779
3780 \begin_layout Standard
3781 To define key-to-key or key-to-string translation, use this command:
3782 \end_layout
3783
3784 \begin_layout Quotation
3785 \begin_inset Flex Code
3786 status collapsed
3787
3788 \begin_layout Plain Layout
3789
3790 \backslash
3791 kmap
3792 \end_layout
3793
3794 \end_inset
3795
3796  
3797 \begin_inset Flex Code
3798 status collapsed
3799
3800 \begin_layout Plain Layout
3801 key
3802 \end_layout
3803
3804 \end_inset
3805
3806  outstring 
3807 \end_layout
3808
3809 \begin_layout Standard
3810 where 
3811 \begin_inset Flex Code
3812 status collapsed
3813
3814 \begin_layout Plain Layout
3815 key
3816 \end_layout
3817
3818 \end_inset
3819
3820  is the key to be translated and 
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825 outstring
3826 \end_layout
3827
3828 \end_inset
3829
3830  is the string to be inserted into the document.
3831  To define dead keys, use:
3832 \end_layout
3833
3834 \begin_layout Quotation
3835 \begin_inset Flex Code
3836 status collapsed
3837
3838 \begin_layout Plain Layout
3839
3840 \backslash
3841 kmod
3842 \end_layout
3843
3844 \end_inset
3845
3846  
3847 \begin_inset Flex Code
3848 status collapsed
3849
3850 \begin_layout Plain Layout
3851 key
3852 \end_layout
3853
3854 \end_inset
3855
3856  deadkey
3857 \end_layout
3858
3859 \begin_layout Standard
3860 where 
3861 \begin_inset Flex Code
3862 status collapsed
3863
3864 \begin_layout Plain Layout
3865 key
3866 \end_layout
3867
3868 \end_inset
3869
3870  is a keyboard key and 
3871 \begin_inset Flex Code
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875 deadkey
3876 \end_layout
3877
3878 \end_inset
3879
3880  is dead key name.
3881  The following dead keys are supported (shortcut name is in parentheses):
3882 \end_layout
3883
3884 \begin_layout Quotation
3885
3886 \emph on
3887 Name
3888 \begin_inset space \hfill{}
3889 \end_inset
3890
3891 Example
3892 \end_layout
3893
3894 \begin_layout Quotation
3895 acute (acu)
3896 \begin_inset space \hfill{}
3897 \end_inset
3898
3899 áéíóú
3900 \end_layout
3901
3902 \begin_layout Quotation
3903 grave (gra)
3904 \begin_inset space \hfill{}
3905 \end_inset
3906
3907 àèìòù
3908 \end_layout
3909
3910 \begin_layout Quotation
3911 macron (mac)
3912 \begin_inset space \hfill{}
3913 \end_inset
3914
3915  ō
3916 \end_layout
3917
3918 \begin_layout Quotation
3919 tilde (til)
3920 \begin_inset space \hfill{}
3921 \end_inset
3922
3923 ñÑ
3924 \end_layout
3925
3926 \begin_layout Quotation
3927 underbar (underb)
3928 \begin_inset space \hfill{}
3929 \end_inset
3930
3931
3932 \begin_inset ERT
3933 status open
3934
3935 \begin_layout Plain Layout
3936
3937
3938 \backslash
3939 b o
3940 \end_layout
3941
3942 \end_inset
3943
3944
3945 \end_layout
3946
3947 \begin_layout Quotation
3948 cedilla (ced)
3949 \begin_inset space \hfill{}
3950 \end_inset
3951
3952 çÇ
3953 \end_layout
3954
3955 \begin_layout Quotation
3956 underdot (underd)
3957 \begin_inset space \hfill{}
3958 \end_inset
3959
3960
3961 \begin_inset ERT
3962 status open
3963
3964 \begin_layout Plain Layout
3965
3966
3967 \backslash
3968 d o
3969 \end_layout
3970
3971 \end_inset
3972
3973
3974 \end_layout
3975
3976 \begin_layout Quotation
3977 circumflex (circu)
3978 \begin_inset space \hfill{}
3979 \end_inset
3980
3981 âêîôû
3982 \end_layout
3983
3984 \begin_layout Quotation
3985 circle (circl)
3986 \begin_inset space \hfill{}
3987 \end_inset
3988
3989 ÅůŮ
3990 \end_layout
3991
3992 \begin_layout Quotation
3993 tie (tie)
3994 \begin_inset space \hfill{}
3995 \end_inset
3996
3997
3998 \begin_inset ERT
3999 status open
4000
4001 \begin_layout Plain Layout
4002
4003
4004 \backslash
4005 t o
4006 \end_layout
4007
4008 \end_inset
4009
4010
4011 \end_layout
4012
4013 \begin_layout Quotation
4014 breve (bre)
4015 \begin_inset space \hfill{}
4016 \end_inset
4017
4018 ă
4019 \begin_inset ERT
4020 status open
4021
4022 \begin_layout Plain Layout
4023
4024
4025 \backslash
4026 u o
4027 \end_layout
4028
4029 \end_inset
4030
4031
4032 \end_layout
4033
4034 \begin_layout Quotation
4035 caron (car)
4036 \begin_inset space \hfill{}
4037 \end_inset
4038
4039 čšž
4040 \end_layout
4041
4042 \begin_layout Quotation
4043 hungarian umlaut (hug)
4044 \begin_inset space \hfill{}
4045 \end_inset
4046
4047 őű
4048 \end_layout
4049
4050 \begin_layout Quotation
4051 umlaut (uml)
4052 \begin_inset space \hfill{}
4053 \end_inset
4054
4055 äöü
4056 \end_layout
4057
4058 \begin_layout Quotation
4059 dot (dot)
4060 \begin_inset space \hfill{}
4061 \end_inset
4062
4063 ż
4064 \begin_inset ERT
4065 status open
4066
4067 \begin_layout Plain Layout
4068
4069
4070 \backslash
4071 .s
4072 \end_layout
4073
4074 \end_inset
4075
4076
4077 \end_layout
4078
4079 \begin_layout Standard
4080 Since in many international keyboards there are exceptions to what some
4081  dead keys should do, you can define them using
4082 \end_layout
4083
4084 \begin_layout Quotation
4085 \begin_inset Flex Code
4086 status collapsed
4087
4088 \begin_layout Plain Layout
4089
4090 \backslash
4091 kxmod
4092 \end_layout
4093
4094 \end_inset
4095
4096  deadkey key outstring
4097 \end_layout
4098
4099 \begin_layout Standard
4100 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4101 , so you put in
4102 \end_layout
4103
4104 \begin_layout Quotation
4105 \begin_inset Flex Code
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109
4110 \backslash
4111 kxmod
4112 \end_layout
4113
4114 \end_inset
4115
4116  caron o "
4117 \backslash
4118 ^o"
4119 \end_layout
4120
4121 \begin_layout Standard
4122 to make it work correctly.
4123  Also, you have to define as exceptions dead keys over i and j, to remove
4124  the dot from them before inserting an accent mark.
4125  I will change this when the time comes, but so far I haven't had time.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4130  double backslash.
4131  Also, quotes and 
4132 \begin_inset Flex Code
4133 status collapsed
4134
4135 \begin_layout Plain Layout
4136 #
4137 \end_layout
4138
4139 \end_inset
4140
4141  have different meaning.
4142  
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 #
4148 \end_layout
4149
4150 \end_inset
4151
4152  marks comments, quotes start and end \SpecialChar LaTeX
4153 -style commands.
4154  To enter quote, you'll need to use 
4155 \begin_inset Flex Code
4156 status collapsed
4157
4158 \begin_layout Plain Layout
4159
4160 \backslash
4161 "
4162 \end_layout
4163
4164 \end_inset
4165
4166 , to enter 
4167 \begin_inset Flex Code
4168 status collapsed
4169
4170 \begin_layout Plain Layout
4171 #
4172 \end_layout
4173
4174 \end_inset
4175
4176 , use 
4177 \begin_inset Flex Code
4178 status collapsed
4179
4180 \begin_layout Plain Layout
4181
4182 \backslash
4183 #
4184 \end_layout
4185
4186 \end_inset
4187
4188 .
4189 \end_layout
4190
4191 \begin_layout Standard
4192 If you make a keyboard description file that works for your language, please
4193  mail it to me, so I can include it in the next keymap distribution.
4194 \end_layout
4195
4196 \begin_layout Standard
4197 More keywords will be supported in keymap configuration file in future,
4198  like
4199 \end_layout
4200
4201 \begin_layout Itemize
4202 \begin_inset Flex Code
4203 status collapsed
4204
4205 \begin_layout Plain Layout
4206
4207 \backslash
4208 kinclude filename
4209 \end_layout
4210
4211 \end_inset
4212
4213
4214 \emph on
4215
4216 \begin_inset space \hfill{}
4217 \end_inset
4218
4219
4220 \begin_inset Flex Code
4221 status collapsed
4222
4223 \begin_layout Plain Layout
4224 include
4225 \end_layout
4226
4227 \end_inset
4228
4229  another file
4230 \end_layout
4231
4232 \begin_layout Itemize
4233 \begin_inset Flex Code
4234 status collapsed
4235
4236 \begin_layout Plain Layout
4237
4238 \backslash
4239 kprog program
4240 \end_layout
4241
4242 \end_inset
4243
4244
4245 \emph on
4246
4247 \begin_inset space \hfill{}
4248 \end_inset
4249
4250
4251 \begin_inset Flex Code
4252 status collapsed
4253
4254 \begin_layout Plain Layout
4255 define
4256 \end_layout
4257
4258 \end_inset
4259
4260  an external keymap translation program 
4261 \end_layout
4262
4263 \begin_layout Standard
4264 Also, it should look into 
4265 \begin_inset Flex Code
4266 status collapsed
4267
4268 \begin_layout Plain Layout
4269 lyxrc
4270 \end_layout
4271
4272 \end_inset
4273
4274  file for defaults, too (for example, a 
4275 \begin_inset Flex Code
4276 status collapsed
4277
4278 \begin_layout Plain Layout
4279
4280 \backslash
4281 kinclude
4282 \end_layout
4283
4284 \end_inset
4285
4286  option to include default keyboard).
4287 \end_layout
4288
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Section
4295 International Keymap Stuff
4296 \begin_inset CommandInset label
4297 LatexCommand label
4298 name "sec:International-Keymap-Stuff"
4299
4300 \end_inset
4301
4302
4303 \end_layout
4304
4305 \begin_layout Standard
4306 \begin_inset Note Note
4307 status open
4308
4309 \begin_layout Plain Layout
4310 In doing the revisions on this document in March 2008, I did not look over
4311  this stuff, as I do not understand it.
4312  It would be good if someone else could do so.
4313  (RH)
4314 \end_layout
4315
4316 \end_inset
4317
4318
4319 \end_layout
4320
4321 \begin_layout Standard
4322 The next two sections describe the 
4323 \begin_inset Flex Code
4324 status collapsed
4325
4326 \begin_layout Plain Layout
4327
4328 \shape up
4329 .kmap
4330 \end_layout
4331
4332 \end_inset
4333
4334  and 
4335 \begin_inset Flex Code
4336 status collapsed
4337
4338 \begin_layout Plain Layout
4339
4340 \shape up
4341 .cdef
4342 \end_layout
4343
4344 \end_inset
4345
4346  file syntax in detail.
4347  These sections should help you design your own key map if the ones provided
4348  do not meet your needs.
4349 \end_layout
4350
4351 \begin_layout Subsection
4352 The .kmap File
4353 \end_layout
4354
4355 \begin_layout Standard
4356
4357 \shape up
4358 .
4359 \begin_inset Flex Code
4360 status collapsed
4361
4362 \begin_layout Plain Layout
4363 kmap
4364 \end_layout
4365
4366 \end_inset
4367
4368  file maps keystrokes to characters or strings.
4369  As the name suggests, it sets a keyboard mapping.
4370  The 
4371 \begin_inset Flex Code
4372 status collapsed
4373
4374 \begin_layout Plain Layout
4375 .kmap
4376 \end_layout
4377
4378 \end_inset
4379
4380
4381 \shape default
4382  file keywords 
4383 \shape up
4384
4385 \begin_inset Flex Code
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389
4390 \shape up
4391 kmap
4392 \end_layout
4393
4394 \end_inset
4395
4396
4397 \shape default
4398 ,
4399 \shape up
4400  
4401 \shape default
4402
4403 \begin_inset Flex Code
4404 status collapsed
4405
4406 \begin_layout Plain Layout
4407
4408 \shape up
4409 kmod
4410 \end_layout
4411
4412 \end_inset
4413
4414 ,
4415 \shape up
4416  
4417 \shape default
4418
4419 \begin_inset Flex Code
4420 status collapsed
4421
4422 \begin_layout Plain Layout
4423
4424 \shape up
4425 kxmod
4426 \end_layout
4427
4428 \end_inset
4429
4430 , and 
4431 \begin_inset Flex Code
4432 status collapsed
4433
4434 \begin_layout Plain Layout
4435
4436 \shape up
4437 kcomb
4438 \end_layout
4439
4440 \end_inset
4441
4442  are described in this section.
4443 \end_layout
4444
4445 \begin_layout Labeling
4446 \labelwidthstring 00.00.0000
4447 \begin_inset Flex Code
4448 status collapsed
4449
4450 \begin_layout Plain Layout
4451
4452 \shape up
4453 kmap
4454 \end_layout
4455
4456 \end_inset
4457
4458  Map a character to a string
4459 \end_layout
4460
4461 \begin_layout LyX-Code
4462
4463 \backslash
4464 kmap 
4465 \family roman
4466 \emph on
4467 char
4468 \family default
4469 \emph default
4470  
4471 \family roman
4472 \emph on
4473 string
4474 \end_layout
4475
4476 \begin_layout Standard
4477 This will ma
4478 \family roman
4479 p
4480 \family default
4481  
4482 \family roman
4483 \emph on
4484 char
4485 \family default
4486 \emph default
4487  
4488 \family roman
4489 to
4490 \family default
4491  
4492 \family roman
4493 \emph on
4494 string
4495 \emph default
4496 .
4497  Note that in
4498 \family default
4499  
4500 \family roman
4501 \emph on
4502 string
4503 \emph default
4504 ,
4505 \family default
4506  
4507 \family roman
4508 \shape up
4509 the double-quote (")
4510 \family default
4511 \shape default
4512  
4513 \family roman
4514 and
4515 \family default
4516  
4517 \family roman
4518 \shape up
4519 the backslash (
4520 \backslash
4521 )
4522 \family default
4523 \shape default
4524  
4525 \family roman
4526 must be escaped with a preceding backslash (
4527 \shape up
4528
4529 \backslash
4530
4531 \shape default
4532 )
4533 \family default
4534 .
4535 \end_layout
4536
4537 \begin_layout Standard
4538 An example of a 
4539 \begin_inset Flex Noun
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543
4544 \shape up
4545 kmap
4546 \end_layout
4547
4548 \end_inset
4549
4550  statement to cause the symbol 
4551 \begin_inset Flex Noun
4552 status collapsed
4553
4554 \begin_layout Plain Layout
4555
4556 \shape up
4557 /
4558 \end_layout
4559
4560 \end_inset
4561
4562  to be output for the keystroke 
4563 \begin_inset Flex Noun
4564 status collapsed
4565
4566 \begin_layout Plain Layout
4567
4568 \shape up
4569 &
4570 \end_layout
4571
4572 \end_inset
4573
4574  is:
4575 \end_layout
4576
4577 \begin_layout LyX-Code
4578
4579 \backslash
4580 kmap & /
4581 \end_layout
4582
4583 \begin_layout Labeling
4584 \labelwidthstring 00.00.0000
4585 \begin_inset Flex Code
4586 status collapsed
4587
4588 \begin_layout Plain Layout
4589
4590 \shape up
4591 kmod
4592 \end_layout
4593
4594 \end_inset
4595
4596  Specify an accent character
4597 \end_layout
4598
4599 \begin_layout LyX-Code
4600
4601 \backslash
4602 kmod 
4603 \family roman
4604 \emph on
4605 char accent allowed
4606 \end_layout
4607
4608 \begin_layout Standard
4609 This will make the cha
4610 \family roman
4611 racter
4612 \family default
4613  
4614 \family roman
4615 \emph on
4616 char
4617 \family default
4618 \emph default
4619  
4620 \family roman
4621 \shape up
4622 \emph on
4623 be an accent
4624 \family default
4625 \shape default
4626 \emph default
4627  
4628 \family roman
4629 \shape up
4630 on the
4631 \family default
4632 \shape default
4633  
4634 \family roman
4635 \shape up
4636 \emph on
4637 allowed
4638 \family default
4639 \shape default
4640 \emph default
4641  
4642 \family roman
4643 \shape up
4644 cha
4645 \family default
4646 racter(s).
4647  This is the dead key
4648 \begin_inset Foot
4649 status collapsed
4650
4651 \begin_layout Plain Layout
4652 The term 
4653 \family roman
4654 \emph on
4655 dead key
4656 \family default
4657 \emph default
4658  refers to a key that does not produce a character by itself, but when followed
4659  with another key, produces the desired accent character.
4660  For example, a German characte
4661 \family roman
4662 r with an umlaut like
4663 \family default
4664  
4665 \family roman
4666 \emph on
4667 ä
4668 \family default
4669 \emph default
4670  
4671 \family roman
4672 can be produced in this manner.
4673 \end_layout
4674
4675 \end_inset
4676
4677  mechanism.
4678  
4679 \end_layout
4680
4681 \begin_layout Standard
4682 If you 
4683 \family roman
4684 hit
4685 \family default
4686  
4687 \family roman
4688 \emph on
4689 char
4690 \family default
4691 \emph default
4692  
4693 \family roman
4694 and then another key not in
4695 \family default
4696  
4697 \family roman
4698 \emph on
4699 allowed
4700 \emph default
4701 , you will get a
4702 \family default
4703  
4704 \family roman
4705 \emph on
4706 char
4707 \family default
4708 \emph default
4709  
4710 \family roman
4711 followed by the other, not allowed key, as output.
4712
4713 \family default
4714  Note that a 
4715 \begin_inset Flex Noun
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719
4720 \shape up
4721 Backspace
4722 \end_layout
4723
4724 \end_inset
4725
4726  cancels a dead key, so if 
4727 \family roman
4728 you hit
4729 \family default
4730  
4731 \family roman
4732 \emph on
4733 char
4734 \family default
4735 \emph default
4736  
4737 \begin_inset Flex Noun
4738 status collapsed
4739
4740 \begin_layout Plain Layout
4741
4742 \shape up
4743 \emph on
4744 Backspace
4745 \end_layout
4746
4747 \end_inset
4748
4749 , the cursor will not go one position backwards but will instead cancel
4750  the effect t
4751 \family roman
4752 hat
4753 \family default
4754  
4755 \family roman
4756 \shape up
4757 \emph on
4758 char
4759 \family default
4760 \shape default
4761 \emph default
4762  
4763 \family roman
4764 \shape up
4765 might have had on the next keystroke.
4766  
4767 \end_layout
4768
4769 \begin_layout Standard
4770 The following example specifies that the character ' is to be an acute accent,
4771  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4772 \end_layout
4773
4774 \begin_layout LyX-Code
4775
4776 \backslash
4777 kmod ' acute aeiouAEIOU
4778 \end_layout
4779
4780 \begin_layout Labeling
4781 \labelwidthstring 00.00.0000
4782 \begin_inset Flex Code
4783 status collapsed
4784
4785 \begin_layout Plain Layout
4786 kxmod
4787 \end_layout
4788
4789 \end_inset
4790
4791  Specify an exception to the accent character
4792 \end_layout
4793
4794 \begin_layout LyX-Code
4795
4796 \backslash
4797 kxmod  
4798 \family roman
4799 \emph on
4800 accent char result
4801 \end_layout
4802
4803 \begin_layout Standard
4804 This defines an exce
4805 \family roman
4806 ption for
4807 \family default
4808  
4809 \family roman
4810 \emph on
4811 accent
4812 \family default
4813 \emph default
4814  
4815 \family roman
4816 on
4817 \family default
4818  
4819 \family roman
4820 \emph on
4821 char
4822 \emph default
4823 .
4824  T
4825 \shape up
4826 he
4827 \family default
4828 \shape default
4829  
4830 \family roman
4831 \shape up
4832 \emph on
4833 accent
4834 \family default
4835 \shape default
4836 \emph default
4837  
4838 \family roman
4839 \shape up
4840 must
4841 \family default
4842 \shape default
4843  
4844 \shape up
4845 have been assigned a keystroke with a previous
4846 \shape default
4847  
4848 \begin_inset Flex Code
4849 status collapsed
4850
4851 \begin_layout Plain Layout
4852
4853 \shape up
4854
4855 \backslash
4856 kmo
4857 \shape default
4858 d
4859 \end_layout
4860
4861 \end_inset
4862
4863  declar
4864 \family roman
4865 ation and
4866 \family default
4867  
4868 \family roman
4869 \emph on
4870 char
4871 \family default
4872 \emph default
4873  
4874 \family roman
4875 must not belong in the
4876 \family default
4877  
4878 \family roman
4879 \emph on
4880 allowed
4881 \family default
4882 \emph default
4883  
4884 \family roman
4885 set of
4886 \family default
4887  
4888 \family roman
4889 \emph on
4890 accent
4891 \emph default
4892 .
4893  When
4894 \family default
4895  
4896 \family roman
4897 \shape up
4898 you enter the
4899 \family default
4900 \shape default
4901  
4902 \family roman
4903 \shape up
4904 \emph on
4905 accent char
4906 \family default
4907 \shape default
4908 \emph default
4909  
4910 \family roman
4911 \shape up
4912 sequence,
4913 \family default
4914 \shape default
4915  
4916 \family roman
4917 \shape up
4918 \emph on
4919 result
4920 \emph default
4921  is produced.
4922  If such a declaration does not exist in
4923 \family default
4924 \shape default
4925  
4926 \shape up
4927 the
4928 \shape default
4929  
4930 \begin_inset Flex Code
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934
4935 \shape up
4936 .kmap
4937 \end_layout
4938
4939 \end_inset
4940
4941  file and yo
4942 \family roman
4943 u enter
4944 \family default
4945  
4946 \family roman
4947 \emph on
4948 accent char
4949 \emph default
4950 , you get
4951 \family default
4952  
4953 \family roman
4954 \emph on
4955 accent_key char
4956 \emph default
4957  where
4958 \family default
4959  
4960 \family roman
4961 \emph on
4962 accent_key
4963 \emph default
4964  is the first arg
4965 \family default
4966 ument of the 
4967 \begin_inset Flex Code
4968 status collapsed
4969
4970 \begin_layout Plain Layout
4971
4972 \shape up
4973
4974 \backslash
4975 kmod
4976 \end_layout
4977
4978 \end_inset
4979
4980  declaration.
4981  
4982 \end_layout
4983
4984 \begin_layout Standard
4985 The following command produces causes äi to be produced when you enter acute-i
4986  ('i):
4987 \end_layout
4988
4989 \begin_layout LyX-Code
4990
4991 \backslash
4992 kxmod acute i "
4993 \backslash
4994
4995 \backslash
4996 '{
4997 \backslash
4998
4999 \backslash
5000 i}"
5001 \end_layout
5002
5003 \begin_layout Labeling
5004 \labelwidthstring 00.00.0000
5005 \begin_inset Flex Code
5006 status collapsed
5007
5008 \begin_layout Plain Layout
5009 kcomb
5010 \end_layout
5011
5012 \end_inset
5013
5014  Combine two accent characters
5015 \end_layout
5016
5017 \begin_layout LyX-Code
5018
5019 \backslash
5020 kcomb 
5021 \family roman
5022 \emph on
5023 accent1 accent2 allowed
5024 \end_layout
5025
5026 \begin_layout Standard
5027 This one is getting pretty esoteric.
5028  It allows you to combine the effect 
5029 \family roman
5030 of
5031 \family default
5032  
5033 \family roman
5034 \emph on
5035 accent1
5036 \family default
5037 \emph default
5038  
5039 \family roman
5040 and
5041 \family default
5042  
5043 \family roman
5044 \emph on
5045 accent2
5046 \family default
5047 \emph default
5048  
5049 \family roman
5050 (in that order!) on
5051 \family default
5052  
5053 \family roman
5054 \emph on
5055 allowed
5056 \family default
5057 \emph default
5058  
5059 \family roman
5060 chars.
5061  The keystrokes for
5062 \family default
5063  
5064 \family roman
5065 \emph on
5066 accent1
5067 \family default
5068 \emph default
5069  
5070 \family roman
5071 and
5072 \family default
5073  
5074 \family roman
5075 \emph on
5076 accent2
5077 \family default
5078 \emph default
5079  
5080 \family roman
5081 must have be
5082 \family default
5083 en set with a 
5084 \begin_inset Flex Code
5085 status collapsed
5086
5087 \begin_layout Plain Layout
5088
5089 \shape up
5090
5091 \backslash
5092 kmod
5093 \end_layout
5094
5095 \end_inset
5096
5097  command at 
5098 \family roman
5099 a
5100 \family default
5101  
5102 \family roman
5103 \emph on
5104 previous
5105 \family default
5106 \emph default
5107  
5108 \family roman
5109 point in the
5110 \family default
5111  file.
5112  
5113 \end_layout
5114
5115 \begin_layout Standard
5116 Consider this example from the 
5117 \begin_inset Flex Code
5118 status collapsed
5119
5120 \begin_layout Plain Layout
5121
5122 \shape up
5123 greek.kmap
5124 \end_layout
5125
5126 \end_inset
5127
5128  file:
5129 \end_layout
5130
5131 \begin_layout LyX-Code
5132
5133 \backslash
5134 kmod ; acute aeioyvhAEIOYVH 
5135 \backslash
5136 kmod : umlaut iyIY 
5137 \backslash
5138 kcomb acute umlaut iyIY
5139 \end_layout
5140
5141 \begin_layout Standard
5142 This allows you to press 
5143 \begin_inset Flex Noun
5144 status collapsed
5145
5146 \begin_layout Plain Layout
5147
5148 \shape up
5149 ;:i
5150 \end_layout
5151
5152 \end_inset
5153
5154  and get the effect of 
5155 \begin_inset Flex Code
5156 status collapsed
5157
5158 \begin_layout Plain Layout
5159
5160 \shape up
5161
5162 \backslash
5163 '{
5164 \backslash
5165 "{i}}
5166 \end_layout
5167
5168 \end_inset
5169
5170 .
5171  
5172 \family roman
5173 \shape up
5174 A backspace
5175 \family default
5176 \shape default
5177  in this case cancels the last dead key, so if you press 
5178 \begin_inset Flex Noun
5179 status collapsed
5180
5181 \begin_layout Plain Layout
5182
5183 \shape up
5184 ;: Backspace i
5185 \end_layout
5186
5187 \end_inset
5188
5189  you get 
5190 \begin_inset Flex Code
5191 status collapsed
5192
5193 \begin_layout Plain Layout
5194
5195 \shape up
5196
5197 \backslash
5198 '{i}
5199 \end_layout
5200
5201 \end_inset
5202
5203 .
5204 \end_layout
5205
5206 \begin_layout Subsection
5207 The .cdef File
5208 \end_layout
5209
5210 \begin_layout Standard
5211 After the 
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216
5217 \shape up
5218 .kmap
5219 \end_layout
5220
5221 \end_inset
5222
5223  mapping is performed, a 
5224 \begin_inset Flex Code
5225 status collapsed
5226
5227 \begin_layout Plain Layout
5228
5229 \shape up
5230 .cde
5231 \shape default
5232 f
5233 \end_layout
5234
5235 \end_inset
5236
5237  file maps the strings that the symbols generate to characters in the current
5238  font.
5239  The \SpecialChar LyX
5240  distribution currently includes at least the 
5241 \begin_inset Flex Code
5242 status collapsed
5243
5244 \begin_layout Plain Layout
5245
5246 \shape up
5247 iso8859-1.cdef
5248 \end_layout
5249
5250 \end_inset
5251
5252  and 
5253 \begin_inset Flex Code
5254 status collapsed
5255
5256 \begin_layout Plain Layout
5257
5258 \shape up
5259 iso8859-2.cdef
5260 \end_layout
5261
5262 \end_inset
5263
5264  files.
5265 \end_layout
5266
5267 \begin_layout Standard
5268 In general the 
5269 \begin_inset Flex Code
5270 status collapsed
5271
5272 \begin_layout Plain Layout
5273
5274 \shape up
5275 .cdef
5276 \end_layout
5277
5278 \end_inset
5279
5280  file is a sequence of declarations of the form
5281 \end_layout
5282
5283 \begin_layout LyX-Code
5284
5285 \family roman
5286 \emph on
5287 char_index_in_set
5288 \family default
5289 \emph default
5290  
5291 \family roman
5292 \emph on
5293  string
5294 \end_layout
5295
5296 \begin_layout Standard
5297 For example, in order to map 
5298 \begin_inset Flex Noun
5299 status collapsed
5300
5301 \begin_layout Plain Layout
5302
5303 \shape up
5304
5305 \backslash
5306 '{e}
5307 \end_layout
5308
5309 \end_inset
5310
5311  to the corresponding character in the iso-8859-1 set (233), the following
5312  declaration is used
5313 \end_layout
5314
5315 \begin_layout LyX-Code
5316 233 "
5317 \backslash
5318
5319 \backslash
5320 '{e}"
5321 \end_layout
5322
5323 \begin_layout Standard
5324 with 
5325 \begin_inset Flex Code
5326 status collapsed
5327
5328 \begin_layout Plain Layout
5329
5330 \backslash
5331
5332 \end_layout
5333
5334 \end_inset
5335
5336  and 
5337 \begin_inset Flex Code
5338 status collapsed
5339
5340 \begin_layout Plain Layout
5341 "
5342 \end_layout
5343
5344 \end_inset
5345
5346  being escap
5347 \family roman
5348 ed in
5349 \family default
5350  
5351 \family roman
5352 \emph on
5353 string
5354 \emph default
5355 .
5356  Note that
5357 \family default
5358  the same character can apply to more than one string.
5359  In the 
5360 \begin_inset Flex Code
5361 status collapsed
5362
5363 \begin_layout Plain Layout
5364 i
5365 \shape up
5366 so-8859-7.cdef
5367 \end_layout
5368
5369 \end_inset
5370
5371  file you have
5372 \end_layout
5373
5374 \begin_layout LyX-Code
5375 192 "
5376 \backslash
5377
5378 \backslash
5379 '{
5380 \backslash
5381
5382 \backslash
5383
5384 \backslash
5385 "{i}}"
5386 \begin_inset Newline newline
5387 \end_inset
5388
5389 192 "
5390 \backslash
5391
5392 \backslash
5393
5394 \backslash
5395 "{
5396 \backslash
5397
5398 \backslash
5399 '{i}}"
5400 \end_layout
5401
5402 \begin_layout Standard
5403 If \SpecialChar LyX
5404  cannot find a mapping for the string produced by the keystroke or a
5405  deadkey sequence, it will check if it looks like an accented char and try
5406  to draw an accent over the character on screen.
5407 \end_layout
5408
5409 \begin_layout Subsection
5410 Dead Keys
5411 \end_layout
5412
5413 \begin_layout Standard
5414 There is a second way to add support for international characters through
5415  so-called dead-keys.
5416  A dead-key works in combination with a letter to produce an accented character.
5417  Here, we'll explain how to create a really simple dead-key to illustrate
5418  how they work.
5419 \end_layout
5420
5421 \begin_layout Standard
5422 Suppose you happen to need the circumflex character, 
5423 \begin_inset Quotes eld
5424 \end_inset
5425
5426  ̂
5427 \begin_inset Quotes erd
5428 \end_inset
5429
5430 .
5431  You could bind the 
5432 \begin_inset Flex Noun
5433 status collapsed
5434
5435 \begin_layout Plain Layout
5436 ^
5437 \end_layout
5438
5439 \end_inset
5440
5441 -key [a.k.a.
5442 \begin_inset space ~
5443 \end_inset
5444
5445
5446 \begin_inset Flex Noun
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 Shift-6
5451 \end_layout
5452
5453 \end_inset
5454
5455 ] to the \SpecialChar LyX
5456  command 
5457 \begin_inset Flex Code
5458 status collapsed
5459
5460 \begin_layout Plain Layout
5461 accent-circumflex
5462 \end_layout
5463
5464 \end_inset
5465
5466  in your 
5467 \begin_inset Flex Code
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 lyxrc
5472 \end_layout
5473
5474 \end_inset
5475
5476  file.
5477  Now, whenever you type the 
5478 \begin_inset Flex Noun
5479 status collapsed
5480
5481 \begin_layout Plain Layout
5482 ^
5483 \end_layout
5484
5485 \end_inset
5486
5487 -key followed by a letter, that letter will have a circumflex accent on
5488  it.
5489  For example, the sequence 
5490 \begin_inset Quotes eld
5491 \end_inset
5492
5493
5494 \begin_inset Flex Noun
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 ^e
5499 \end_layout
5500
5501 \end_inset
5502
5503
5504 \begin_inset Quotes erd
5505 \end_inset
5506
5507  produces the letter: 
5508 \begin_inset Quotes eld
5509 \end_inset
5510
5511 ê
5512 \begin_inset Quotes erd
5513 \end_inset
5514
5515 .
5516  If you tried to type 
5517 \begin_inset Quotes eld
5518 \end_inset
5519
5520
5521 \begin_inset Flex Noun
5522 status collapsed
5523
5524 \begin_layout Plain Layout
5525 ^t
5526 \end_layout
5527
5528 \end_inset
5529
5530
5531 \begin_inset Quotes erd
5532 \end_inset
5533
5534 , however, \SpecialChar LyX
5535  will complain with a beep, since a 
5536 \begin_inset Quotes eld
5537 \end_inset
5538
5539
5540 \begin_inset Flex Noun
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 t
5545 \end_layout
5546
5547 \end_inset
5548
5549
5550 \begin_inset Quotes erd
5551 \end_inset
5552
5553  never takes a circumflex accent.
5554  Hitting 
5555 \begin_inset Flex Noun
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 Space
5560 \end_layout
5561
5562 \end_inset
5563
5564  after a dead-key produces the bare-accent.
5565  Please note this last point! If you bind a key to a dead-key, you'll need
5566  to rebind the character on that key to yet another key.
5567  Binding the 
5568 \begin_inset Flex Noun
5569 status collapsed
5570
5571 \begin_layout Plain Layout
5572 ,-key
5573 \end_layout
5574
5575 \end_inset
5576
5577  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5578 \end_layout
5579
5580 \begin_layout Standard
5581 One common way to bind dead-keys is to use 
5582 \begin_inset Flex Noun
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586 Meta-
5587 \end_layout
5588
5589 \end_inset
5590
5591
5592 \begin_inset Flex Noun
5593 status collapsed
5594
5595 \begin_layout Plain Layout
5596 Ctrl-
5597 \end_layout
5598
5599 \end_inset
5600
5601 , and 
5602 \begin_inset Flex Noun
5603 status collapsed
5604
5605 \begin_layout Plain Layout
5606 Shift-
5607 \end_layout
5608
5609 \end_inset
5610
5611  in combination with an accent, like 
5612 \begin_inset Quotes eld
5613 \end_inset
5614
5615
5616 \begin_inset Flex Noun
5617 status collapsed
5618
5619 \begin_layout Plain Layout
5620 ~
5621 \end_layout
5622
5623 \end_inset
5624
5625
5626 \begin_inset Quotes erd
5627 \end_inset
5628
5629  or 
5630 \begin_inset Quotes eld
5631 \end_inset
5632
5633
5634 \begin_inset Flex Noun
5635 status collapsed
5636
5637 \begin_layout Plain Layout
5638 ,
5639 \end_layout
5640
5641 \end_inset
5642
5643
5644 \begin_inset Quotes erd
5645 \end_inset
5646
5647  or 
5648 \begin_inset Quotes eld
5649 \end_inset
5650
5651
5652 \begin_inset Flex Noun
5653 status collapsed
5654
5655 \begin_layout Plain Layout
5656 ^
5657 \end_layout
5658
5659 \end_inset
5660
5661
5662 \begin_inset Quotes erd
5663 \end_inset
5664
5665 .
5666  Another way involves using 
5667 \begin_inset Flex Code
5668 status collapsed
5669
5670 \begin_layout Plain Layout
5671 xmodmap
5672 \end_layout
5673
5674 \end_inset
5675
5676  and 
5677 \begin_inset Flex Code
5678 status collapsed
5679
5680 \begin_layout Plain Layout
5681 xkeycaps
5682 \end_layout
5683
5684 \end_inset
5685
5686  to set up the special 
5687 \begin_inset Flex Code
5688 status collapsed
5689
5690 \begin_layout Plain Layout
5691 Mode_Switch
5692 \end_layout
5693
5694 \end_inset
5695
5696  key.
5697  The 
5698 \begin_inset Flex Code
5699 status collapsed
5700
5701 \begin_layout Plain Layout
5702 Mode_Switch
5703 \end_layout
5704
5705 \end_inset
5706
5707  acts in some ways just like 
5708 \begin_inset Flex Noun
5709 status collapsed
5710
5711 \begin_layout Plain Layout
5712 Shift
5713 \end_layout
5714
5715 \end_inset
5716
5717  and permits you to bind keys to accented characters.
5718  You can also turn keys into dead-keys by binding them to something like
5719  
5720 \begin_inset Flex Code
5721 status collapsed
5722
5723 \begin_layout Plain Layout
5724 usldead_cedilla
5725 \end_layout
5726
5727 \end_inset
5728
5729  and then binding this symbolic key to the corresponding \SpecialChar LyX
5730  command.
5731 \begin_inset Foot
5732 status collapsed
5733
5734 \begin_layout Plain Layout
5735 Note from 
5736 \noun on
5737 John Weiss
5738 \noun default
5739 : This is exactly what I do in my 
5740 \begin_inset Flex Code
5741 status collapsed
5742
5743 \begin_layout Plain Layout
5744 ~/.lyx/lyxrc
5745 \end_layout
5746
5747 \end_inset
5748
5749  and my 
5750 \begin_inset Flex Code
5751 status collapsed
5752
5753 \begin_layout Plain Layout
5754 ~/.xmodmap
5755 \end_layout
5756
5757 \end_inset
5758
5759  files.
5760  I have my 
5761 \begin_inset Flex Noun
5762 status collapsed
5763
5764 \begin_layout Plain Layout
5765 Scroll
5766 \begin_inset space ~
5767 \end_inset
5768
5769 Lock
5770 \end_layout
5771
5772 \end_inset
5773
5774  key set up as 
5775 \begin_inset Flex Code
5776 status collapsed
5777
5778 \begin_layout Plain Layout
5779 Mode_Shift
5780 \end_layout
5781
5782 \end_inset
5783
5784  and a bunch of these 
5785 \begin_inset Quotes eld
5786 \end_inset
5787
5788
5789 \begin_inset Flex Code
5790 status collapsed
5791
5792 \begin_layout Plain Layout
5793 usldead_*
5794 \end_layout
5795
5796 \end_inset
5797
5798
5799 \begin_inset Quotes erd
5800 \end_inset
5801
5802  symbolic keys bound such things as 
5803 \begin_inset Flex Noun
5804 status collapsed
5805
5806 \begin_layout Plain Layout
5807 Scroll
5808 \begin_inset space ~
5809 \end_inset
5810
5811 Lock-^
5812 \end_layout
5813
5814 \end_inset
5815
5816  and 
5817 \begin_inset Flex Noun
5818 status collapsed
5819
5820 \begin_layout Plain Layout
5821 Scroll
5822 \begin_inset space ~
5823 \end_inset
5824
5825 Lock-~
5826 \end_layout
5827
5828 \end_inset
5829
5830 .
5831  This is how I produce my accented characters.
5832 \end_layout
5833
5834 \end_inset
5835
5836  You can make just about anything into the 
5837 \begin_inset Flex Code
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 Mode_Switch
5842 \end_layout
5843
5844 \end_inset
5845
5846  key: One of the 
5847 \begin_inset Flex Noun
5848 status collapsed
5849
5850 \begin_layout Plain Layout
5851 Ctrl-
5852 \end_layout
5853
5854 \end_inset
5855
5856  keys, a spare function key, etc.
5857  As for the \SpecialChar LyX
5858  commands that produce accents, check the entry for 
5859 \begin_inset Flex Code
5860 status collapsed
5861
5862 \begin_layout Plain Layout
5863 accent-acute
5864 \end_layout
5865
5866 \end_inset
5867
5868  in the 
5869 \emph on
5870 Reference Manual
5871 \emph default
5872 .
5873  You'll find the complete list there.
5874 \end_layout
5875
5876 \begin_layout Subsection
5877 Saving your Language Configuration
5878 \end_layout
5879
5880 \begin_layout Standard
5881 You can edit your preferences so that your desired language environment
5882  is automatically configured when \SpecialChar LyX
5883  starts up, via the 
5884 \begin_inset Flex Noun
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 Edit\SpecialChar menuseparator
5889 Preferences
5890 \end_layout
5891
5892 \end_inset
5893
5894  dialog.
5895 \end_layout
5896
5897 \begin_layout Chapter
5898 Installing New Document Classes, Layouts, and Templates
5899 \begin_inset CommandInset label
5900 LatexCommand label
5901 name "cha:Installing-New-Document"
5902
5903 \end_inset
5904
5905
5906 \begin_inset Argument 1
5907 status collapsed
5908
5909 \begin_layout Plain Layout
5910 Installing New Document Classes
5911 \end_layout
5912
5913 \end_inset
5914
5915
5916 \end_layout
5917
5918 \begin_layout Standard
5919 In this chapter, we describe the procedures for creating and installing
5920  new \SpecialChar LyX
5921  layout and template files, as well as offer a refresher on correctly
5922  installing new \SpecialChar LaTeX
5923  document classes.
5924  
5925 \end_layout
5926
5927 \begin_layout Standard
5928 First, let us a say a few words about how one ought to think about the relation
5929  between \SpecialChar LyX
5930  and \SpecialChar LaTeX
5931 .
5932  The thing to understand is that, in a certain sense, \SpecialChar LyX
5933  doesn't know anything
5934  about \SpecialChar LaTeX
5935 .
5936  Indeed, from \SpecialChar LyX
5937 's point of view, \SpecialChar LaTeX
5938  is just one of several 
5939 \begin_inset Quotes eld
5940 \end_inset
5941
5942 backend formats
5943 \begin_inset Quotes erd
5944 \end_inset
5945
5946  in which it is capable of producing output.
5947  Other such formats are DocBook, plaintext, and XHTML.
5948  \SpecialChar LaTeX
5949  is, of course, a particularly important format, but very little of the
5950  information \SpecialChar LyX
5951  has about \SpecialChar LaTeX
5952  is actually contained in the program itself.
5953 \begin_inset Foot
5954 status collapsed
5955
5956 \begin_layout Plain Layout
5957 Some commands are sufficiently complex that they are 
5958 \begin_inset Quotes eld
5959 \end_inset
5960
5961 hardcoded
5962 \begin_inset Quotes erd
5963 \end_inset
5964
5965  into \SpecialChar LyX
5966 .
5967  But the developers generally regard this as a Bad Thing.
5968 \end_layout
5969
5970 \end_inset
5971
5972  Rather, that information, even for the standard classes like 
5973 \begin_inset Flex Code
5974 status collapsed
5975
5976 \begin_layout Plain Layout
5977 article.cls
5978 \end_layout
5979
5980 \end_inset
5981
5982 , is contained in `layout files'.
5983  Similarly, \SpecialChar LyX
5984  itself does not know much about DocBook or XHTML.
5985  What it knows is contained in layout files.
5986 \end_layout
5987
5988 \begin_layout Standard
5989 You can think of the layout file for a given document class as a translation
5990  manual between \SpecialChar LyX
5991  constructs—paragraphs with their corresponding styles,
5992  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5993 , DocBook, or XHTML
5994  constructs.
5995  Almost everything \SpecialChar LyX
5996  knows about 
5997 \begin_inset Flex Code
5998 status collapsed
5999
6000 \begin_layout Plain Layout
6001 article.cls
6002 \end_layout
6003
6004 \end_inset
6005
6006 , for example, is contained in the file 
6007 \begin_inset Flex Code
6008 status collapsed
6009
6010 \begin_layout Plain Layout
6011 article.layout
6012 \end_layout
6013
6014 \end_inset
6015
6016  and in various other files it includes.
6017  For this reason, anyone intending to write layout files should plan to
6018  study the existing files.
6019  A good place to start is with 
6020 \begin_inset Flex Code
6021 status collapsed
6022
6023 \begin_layout Plain Layout
6024 stdsections.inc
6025 \end_layout
6026
6027 \end_inset
6028
6029 , which is included in 
6030 \begin_inset Flex Code
6031 status collapsed
6032
6033 \begin_layout Plain Layout
6034 article.layout
6035 \end_layout
6036
6037 \end_inset
6038
6039
6040 \begin_inset Flex Code
6041 status collapsed
6042
6043 \begin_layout Plain Layout
6044 book.layout
6045 \end_layout
6046
6047 \end_inset
6048
6049 , and many of the other layout files for document classes.
6050  This file is where sections and the like are defined: 
6051 \begin_inset Flex Code
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 stdsections.inc
6056 \end_layout
6057
6058 \end_inset
6059
6060  tells \SpecialChar LyX
6061  how paragraphs that are marked with the Section, Subsection, etc,
6062  styles can be translated into corresponding \SpecialChar LaTeX
6063 , DocBook, and XHTML commands
6064  and tags.
6065  The 
6066 \begin_inset Flex Code
6067 status collapsed
6068
6069 \begin_layout Plain Layout
6070 article.layout
6071 \end_layout
6072
6073 \end_inset
6074
6075  file basically just includes several of these 
6076 \begin_inset Flex Code
6077 status collapsed
6078
6079 \begin_layout Plain Layout
6080 std*.inc
6081 \end_layout
6082
6083 \end_inset
6084
6085  files.
6086 \end_layout
6087
6088 \begin_layout Standard
6089 Defining the \SpecialChar LyX
6090 –\SpecialChar LaTeX
6091  correspondence is not the only thing layout files do, though.
6092  Their other job is to define how the \SpecialChar LyX
6093  constructs themselves will appear
6094  on-screen.
6095  The fact that layout files have these two jobs is often a source of confusion,
6096  because they are completely separate.
6097  Telling \SpecialChar LyX
6098  how to translate a certain paragraph style into \SpecialChar LaTeX
6099  does not tell
6100  \SpecialChar LyX
6101  how to display it; conversely, telling \SpecialChar LyX
6102  how to display a certain paragraph
6103  style does not tell \SpecialChar LyX
6104  how to translate it into \SpecialChar LaTeX
6105  (let alone tell \SpecialChar LaTeX
6106  how to
6107  display it).
6108  So, in general, when you define a new \SpecialChar LyX
6109  construct, you must always do two
6110  quite separate things: (i)
6111 \begin_inset space ~
6112 \end_inset
6113
6114 tell \SpecialChar LyX
6115  how to translate it into \SpecialChar LaTeX
6116  and (ii)
6117 \begin_inset space ~
6118 \end_inset
6119
6120 tell \SpecialChar LyX
6121  how to display it.
6122 \end_layout
6123
6124 \begin_layout Standard
6125 Much the same is true, of course, as regards \SpecialChar LyX
6126 's other backend formats, though
6127  XHTML is in some ways different, because in that case \SpecialChar LyX
6128  
6129 \emph on
6130 is
6131 \emph default
6132  able, to some extent, to use information about how it should display a
6133  paragraph on the screen to output information (in the form of CSS) about
6134  how the paragraph should be displayed in a browser.
6135  Even in this case, however, the distinction between what \SpecialChar LyX
6136  does internally
6137  and how things are rendered externally remains in force, and the two can
6138  be controlled separately.
6139  See 
6140 \begin_inset CommandInset ref
6141 LatexCommand ref
6142 reference "sec:Tags-for-XHTML"
6143
6144 \end_inset
6145
6146  for the details.
6147 \end_layout
6148
6149 \begin_layout Section
6150 Installing new \SpecialChar LaTeX
6151  files
6152 \end_layout
6153
6154 \begin_layout Standard
6155 Some installations may not include a \SpecialChar LaTeX
6156  package or class file that you would
6157  like to use within \SpecialChar LyX
6158 .
6159  For example, you might need Foil\SpecialChar TeX
6160 , a package for preparing slides for overhead
6161  projectors.
6162  Modern \SpecialChar LaTeX
6163  distributions like \SpecialChar TeX
6164 Live (2008 or newer) or MiK\SpecialChar TeX
6165  provide a user interface
6166  for installing such packages.
6167  For example, with MiK\SpecialChar TeX
6168 , you start the program 
6169 \begin_inset Quotes eld
6170 \end_inset
6171
6172 Package
6173 \begin_inset space ~
6174 \end_inset
6175
6176 Manager
6177 \begin_inset Quotes erd
6178 \end_inset
6179
6180  to get a list of available packages.
6181  To install one of them, right click on it or use the corresponding toolbar
6182  button.
6183 \end_layout
6184
6185 \begin_layout Standard
6186 If your \SpecialChar LaTeX
6187  distribution does not provide such a `package manager', or if the
6188  package is not available from your distribution, then follow these steps
6189  to install it manually:
6190 \end_layout
6191
6192 \begin_layout Enumerate
6193 Get the package from 
6194 \begin_inset CommandInset href
6195 LatexCommand href
6196 name "CTAN"
6197 target "http://www.ctan.org/"
6198 literal "false"
6199
6200 \end_inset
6201
6202  or wherever.
6203 \end_layout
6204
6205 \begin_layout Enumerate
6206 If the package contains a file with the ending 
6207 \begin_inset Quotes eld
6208 \end_inset
6209
6210
6211 \begin_inset Flex Code
6212 status collapsed
6213
6214 \begin_layout Plain Layout
6215 .ins
6216 \end_layout
6217
6218 \end_inset
6219
6220
6221 \begin_inset Quotes erd
6222 \end_inset
6223
6224  (is the case for Foil\SpecialChar TeX
6225 ) then open a console, change to the folder of this
6226  file and execute the command 
6227 \begin_inset Flex Code
6228 status collapsed
6229
6230 \begin_layout Plain Layout
6231 latex foiltex.ins
6232 \end_layout
6233
6234 \end_inset
6235
6236 .
6237  You have now unpacked the package and have all files to install it.
6238  Most \SpecialChar LaTeX
6239 -packages are not packed and you can skip this step.
6240 \end_layout
6241
6242 \begin_layout Enumerate
6243 Now you need to decide if the package should be available for all users
6244  or only for you.
6245 \end_layout
6246
6247 \begin_deeper
6248 \begin_layout Enumerate
6249 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6250  for all users on your system, then install it in your `local' \SpecialChar TeX
6251  tree, otherwise
6252  install it in your own `user' \SpecialChar TeX
6253  tree.
6254  Where these trees should be created, if they do not already exist, depends
6255  on your system.
6256  To find this out, look in the file 
6257 \begin_inset Flex Code
6258 status collapsed
6259
6260 \begin_layout Plain Layout
6261 texmf.cnf
6262 \end_layout
6263
6264 \end_inset
6265
6266 .
6267 \begin_inset Foot
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 This is usually in the directory 
6272 \begin_inset Flex Code
6273 status collapsed
6274
6275 \begin_layout Plain Layout
6276 $TEXMF/web2c
6277 \end_layout
6278
6279 \end_inset
6280
6281 , though you can execute the command 
6282 \begin_inset Flex Code
6283 status collapsed
6284
6285 \begin_layout Plain Layout
6286 kpsewhich texmf.cnf
6287 \end_layout
6288
6289 \end_inset
6290
6291  to locate it.
6292 \end_layout
6293
6294 \end_inset
6295
6296  The location of the `local' \SpecialChar TeX
6297  tree is defined by the 
6298 \begin_inset Flex Code
6299 status collapsed
6300
6301 \begin_layout Plain Layout
6302 TEXMFLOCAL
6303 \end_layout
6304
6305 \end_inset
6306
6307  variable; this is usually somewhere like 
6308 \begin_inset Flex Code
6309 status collapsed
6310
6311 \begin_layout Plain Layout
6312 /usr/local/share/texmf
6313 \end_layout
6314
6315 \end_inset
6316
6317  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6318 Live
6319  distribution.
6320  The location of the `user' \SpecialChar TeX
6321  tree is defined by 
6322 \begin_inset Flex Code
6323 status collapsed
6324
6325 \begin_layout Plain Layout
6326 TEXMFHOME
6327 \end_layout
6328
6329 \end_inset
6330
6331  and is commonly 
6332 \begin_inset Flex Code
6333 status collapsed
6334
6335 \begin_layout Plain Layout
6336 $HOME/texmf
6337 \end_layout
6338
6339 \end_inset
6340
6341  or 
6342 \begin_inset Flex Code
6343 status collapsed
6344
6345 \begin_layout Plain Layout
6346
6347 \family sans
6348 $HOME/.texliveXXXX
6349 \end_layout
6350
6351 \end_inset
6352
6353 .
6354  (If these variables are not predefined, you have to define them.) You'll
6355  probably need root permissions to create or modify the `local' tree, but
6356  not for your `user' tree.
6357 \begin_inset Newline newline
6358 \end_inset
6359
6360 In general, it is recommended to install in the user tree because your user
6361  will not be modified or even overwritten when you upgrade your system.
6362  It will typically also be backed up together with everything else when
6363  you backup your home directory (which, of course, you do on a regular basis).
6364 \end_layout
6365
6366 \begin_layout Enumerate
6367 On Windows, if you want the new package to be available for all users on
6368  your system, change to the folder where \SpecialChar LaTeX
6369  is installed and then change to
6370  the subfolder 
6371 \begin_inset Flex Code
6372 status collapsed
6373
6374 \begin_layout Plain Layout
6375 ~
6376 \backslash
6377 tex
6378 \backslash
6379 latex
6380 \end_layout
6381
6382 \end_inset
6383
6384 .
6385  (For MiK\SpecialChar TeX
6386 , this would be by default the folder 
6387 \begin_inset Flex Code
6388 status collapsed
6389
6390 \begin_layout Plain Layout
6391 ~:
6392 \backslash
6393 Programs
6394 \backslash
6395 MiKTeX
6396 \backslash
6397 tex
6398 \backslash
6399 latex
6400 \end_layout
6401
6402 \end_inset
6403
6404 .)
6405 \begin_inset Foot
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 Note that this will be the correct path only on English installations.
6410  On a German one, it would be 
6411 \begin_inset Flex Code
6412 status collapsed
6413
6414 \begin_layout Plain Layout
6415 ~:
6416 \backslash
6417 Programme
6418 \backslash
6419 MiKTeX
6420 \backslash
6421 tex
6422 \backslash
6423 latex
6424 \end_layout
6425
6426 \end_inset
6427
6428 , and similarly for other languages.
6429 \end_layout
6430
6431 \end_inset
6432
6433  Create there a new folder 
6434 \begin_inset Flex Code
6435 status collapsed
6436
6437 \begin_layout Plain Layout
6438 foiltex
6439 \end_layout
6440
6441 \end_inset
6442
6443  and copy all files of the package into it.
6444  
6445 \begin_inset Newline newline
6446 \end_inset
6447
6448 If the package should only available for you or you don't have admin permissions
6449 , do the same, but in the local \SpecialChar LaTeX
6450  folder.
6451  E.
6452 \begin_inset space \thinspace{}
6453 \end_inset
6454
6455 g., for MiK\SpecialChar TeX
6456
6457 \begin_inset space ~
6458 \end_inset
6459
6460 2.8 under Windows XP, this would be the folder:
6461 \begin_inset Newline newline
6462 \end_inset
6463
6464
6465 \family sans
6466
6467 \begin_inset Flex Code
6468 status collapsed
6469
6470 \begin_layout Plain Layout
6471 ~:
6472 \backslash
6473 Documents and Settings
6474 \backslash
6475 <username>
6476 \backslash
6477 Application Data
6478 \backslash
6479
6480 \end_layout
6481
6482 \end_inset
6483
6484
6485 \begin_inset Newline newline
6486 \end_inset
6487
6488
6489 \family default
6490
6491 \begin_inset Phantom HPhantom
6492 status open
6493
6494 \begin_layout Plain Layout
6495
6496 \family sans
6497 ~:
6498 \backslash
6499
6500 \end_layout
6501
6502 \end_inset
6503
6504
6505 \begin_inset Flex Code
6506 status collapsed
6507
6508 \begin_layout Plain Layout
6509 MiKTeX
6510 \backslash
6511 2.8
6512 \backslash
6513 tex
6514 \backslash
6515 latex
6516 \end_layout
6517
6518 \end_inset
6519
6520
6521 \begin_inset Newline newline
6522 \end_inset
6523
6524 On Vista, it would be:
6525 \begin_inset Newline newline
6526 \end_inset
6527
6528
6529 \begin_inset Flex Code
6530 status collapsed
6531
6532 \begin_layout Plain Layout
6533 ~:
6534 \backslash
6535 Users
6536 \backslash
6537 <username>
6538 \backslash
6539 AppData
6540 \backslash
6541 Roaming
6542 \backslash
6543 2.8
6544 \backslash
6545 MiKTeX
6546 \backslash
6547 tex
6548 \backslash
6549 latex
6550 \end_layout
6551
6552 \end_inset
6553
6554
6555 \end_layout
6556
6557 \end_deeper
6558 \begin_layout Enumerate
6559 Now one only need to tell \SpecialChar LaTeX
6560  that there are new files.
6561  This depends on the used \SpecialChar LaTeX
6562 -Distribution:
6563 \end_layout
6564
6565 \begin_deeper
6566 \begin_layout Enumerate
6567 For \SpecialChar TeX
6568 Live execute the command 
6569 \begin_inset Flex Code
6570 status collapsed
6571
6572 \begin_layout Plain Layout
6573 texhash
6574 \end_layout
6575
6576 \end_inset
6577
6578  from a console.
6579  If you installed the package for all users, then you will probably need
6580  to have root permissions for that.
6581 \end_layout
6582
6583 \begin_layout Enumerate
6584 For MiK\SpecialChar TeX
6585 , if you have installed the package for all users, start the program
6586  
6587 \begin_inset Quotes eld
6588 \end_inset
6589
6590 Settings
6591 \begin_inset space ~
6592 \end_inset
6593
6594 (Admin)
6595 \begin_inset Quotes erd
6596 \end_inset
6597
6598  and press the button marked 
6599 \begin_inset Quotes eld
6600 \end_inset
6601
6602 Refresh FNDB
6603 \begin_inset Quotes erd
6604 \end_inset
6605
6606 .
6607  Otherwise start the program 
6608 \begin_inset Quotes eld
6609 \end_inset
6610
6611 Settings
6612 \begin_inset Quotes erd
6613 \end_inset
6614
6615  and do the same.
6616 \end_layout
6617
6618 \end_deeper
6619 \begin_layout Enumerate
6620 Finally, you need to tell \SpecialChar LyX
6621  that there are new packages available.
6622  So, in \SpecialChar LyX
6623 , use the menu 
6624 \begin_inset Flex Noun
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628 Tools
6629 \family sans
6630 \SpecialChar menuseparator
6631 Reconfigure
6632 \end_layout
6633
6634 \end_inset
6635
6636  and then restart \SpecialChar LyX
6637 .
6638 \end_layout
6639
6640 \begin_layout Standard
6641 Now the package is installed.
6642  In our example, the document class 
6643 \begin_inset Flex Code
6644 status collapsed
6645
6646 \begin_layout Plain Layout
6647 FoilTex
6648 \end_layout
6649
6650 \end_inset
6651
6652  will now be available under 
6653 \begin_inset Flex Noun
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 Document\SpecialChar menuseparator
6658 Settings\SpecialChar menuseparator
6659 Document Class
6660 \end_layout
6661
6662 \end_inset
6663
6664  (in the 
6665 \begin_inset Quotes eld
6666 \end_inset
6667
6668 Presentations
6669 \begin_inset Quotes erd
6670 \end_inset
6671
6672  category).
6673  
6674 \end_layout
6675
6676 \begin_layout Standard
6677 If you would like to use a \SpecialChar LaTeX
6678  document class that is not even listed in the
6679  menu 
6680 \begin_inset Flex Noun
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 Document\SpecialChar menuseparator
6685 Settings\SpecialChar menuseparator
6686 Document Class
6687 \end_layout
6688
6689 \end_inset
6690
6691 , then you need to create a `layout' file for it.
6692  That is the topic of the next section.
6693 \end_layout
6694
6695 \begin_layout Section
6696 Types of layout files
6697 \end_layout
6698
6699 \begin_layout Standard
6700 This section describes the various sorts of \SpecialChar LyX
6701  files that contain layout informati
6702 on.
6703  These files describe various paragraph and character styles, determining
6704  how \SpecialChar LyX
6705  should display them and how they should be translated into \SpecialChar LaTeX
6706 , DocBook,
6707  XHTML, or whatever output format is being used.
6708  
6709 \end_layout
6710
6711 \begin_layout Standard
6712 We shall try to provide a thorough description of the process of writing
6713  layout files here.
6714  However, there are so many different types of documents supported even
6715  by just \SpecialChar LaTeX
6716  that we can't hope to cover every different possibility or problem
6717  you might encounter.
6718  The \SpecialChar LyX
6719  users' list is frequented by people with lots of experience with layout
6720  design who are willing to share what they've learned, so please feel free
6721  to ask questions there.
6722 \end_layout
6723
6724 \begin_layout Standard
6725 As you prepare to write a new layout, it is extremely helpful to look at
6726  the layouts distributed with \SpecialChar LyX
6727 .
6728  If you write a \SpecialChar LyX
6729  layout for a \SpecialChar LaTeX
6730  document class that might also be used by
6731  others, or write a module that might be useful to others, then you should
6732  consider posting your layout to the 
6733 \begin_inset CommandInset href
6734 LatexCommand href
6735 name "layout section on the LyX wiki"
6736 target "https://wiki.lyx.org/Layouts/Layouts"
6737 literal "false"
6738
6739 \end_inset
6740
6741  or even to the \SpecialChar LyX
6742  developers' list, so that it might be included in \SpecialChar LyX
6743  itself.
6744 \begin_inset Foot
6745 status collapsed
6746
6747 \begin_layout Plain Layout
6748 Note that \SpecialChar LyX
6749  is licensed under the General Public License, so any material
6750  that is contributed to \SpecialChar LyX
6751  must be similarly licensed.
6752 \end_layout
6753
6754 \end_inset
6755
6756
6757 \end_layout
6758
6759 \begin_layout Subsection
6760 Layout modules
6761 \begin_inset CommandInset label
6762 LatexCommand label
6763 name "subsec:Layout-modules"
6764
6765 \end_inset
6766
6767
6768 \end_layout
6769
6770 \begin_layout Standard
6771 We have spoken to this point about `layout files'.
6772  But there are different sorts of files that contain layout information.
6773  Layout files, strictly so called, have the 
6774 \begin_inset Flex Code
6775 status collapsed
6776
6777 \begin_layout Plain Layout
6778 .layout
6779 \end_layout
6780
6781 \end_inset
6782
6783  extension and provide \SpecialChar LyX
6784  with information about document classes.
6785  Since \SpecialChar LyX
6786  1.6 layout information can also be contained in layout 
6787 \emph on
6788 modules
6789 \emph default
6790 , which have the 
6791 \begin_inset Flex Code
6792 status collapsed
6793
6794 \begin_layout Plain Layout
6795 .module
6796 \end_layout
6797
6798 \end_inset
6799
6800  extension.
6801  Modules are to \SpecialChar LaTeX
6802  packages much as layouts are to \SpecialChar LaTeX
6803  classes, and some modules—such
6804  as the 
6805 \begin_inset Flex Code
6806 status collapsed
6807
6808 \begin_layout Plain Layout
6809 endnotes
6810 \end_layout
6811
6812 \end_inset
6813
6814  module—specifically provide support for one package.
6815  In a sense, layout modules are similar to included
6816 \begin_inset Foot
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 These can have any extension, but by convention have the 
6821 \begin_inset Flex Code
6822 status collapsed
6823
6824 \begin_layout Plain Layout
6825 .inc
6826 \end_layout
6827
6828 \end_inset
6829
6830  extension.
6831 \end_layout
6832
6833 \end_inset
6834
6835  files—files like 
6836 \begin_inset Flex Code
6837 status collapsed
6838
6839 \begin_layout Plain Layout
6840 stdsections.inc
6841 \end_layout
6842
6843 \end_inset
6844
6845 —in that modules are not specific to a given document class but may be used
6846  with many different classes.
6847  The difference is that using an included file with 
6848 \begin_inset Flex Code
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 article.cls
6853 \end_layout
6854
6855 \end_inset
6856
6857  requires editing that file.
6858  Modules, by contrast, are selected in the 
6859 \begin_inset Flex Noun
6860 status collapsed
6861
6862 \begin_layout Plain Layout
6863 Document\SpecialChar menuseparator
6864 Settings
6865 \end_layout
6866
6867 \end_inset
6868
6869  dialog.
6870 \end_layout
6871
6872 \begin_layout Standard
6873 Building modules is the easiest way to get started with layout editing,
6874  since it can be as simple as adding a single new paragraph style or flex
6875  inset.
6876  But modules may, in principle, contain anything a layout file can contain.
6877 \end_layout
6878
6879 \begin_layout Standard
6880 After creating a new module and copying it to the 
6881 \begin_inset Flex Code
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 layouts/
6886 \end_layout
6887
6888 \end_inset
6889
6890  folder, you will need to reconfigure and then restart \SpecialChar LyX
6891  for the module to
6892  appear in the menu.
6893  However, changes you make to the module will be seen immediately, if you
6894  open 
6895 \begin_inset Flex Noun
6896 status collapsed
6897
6898 \begin_layout Plain Layout
6899 Document\SpecialChar menuseparator
6900 Settings
6901 \end_layout
6902
6903 \end_inset
6904
6905 , highlight something, and then hit 
6906 \begin_inset Quotes eld
6907 \end_inset
6908
6909 OK
6910 \begin_inset Quotes erd
6911 \end_inset
6912
6913 .
6914  
6915 \emph on
6916 It is strongly recommended that you save your work before doing this
6917 \emph default
6918 .
6919  In fact, 
6920 \emph on
6921 it is strongly recommended that you not attempt to edit modules while simultaneo
6922 usly working on actual documents
6923 \emph default
6924 .
6925  Though of course the developers strive to keep \SpecialChar LyX
6926  stable in such situations,
6927  syntax errors and the like in your module file could cause strange behavior.
6928 \end_layout
6929
6930 \begin_layout Subsubsection
6931 Local Layout
6932 \end_layout
6933
6934 \begin_layout Standard
6935 Modules are to \SpecialChar LyX
6936  as packages are to \SpecialChar LaTeX
6937 .
6938  Sometimes, however, you find yourself wanting a specific inset or character
6939  style just for one document and writing a module that will also be available
6940  to other documents makes little sense.
6941  What you need is \SpecialChar LyX
6942 's 
6943 \begin_inset Quotes eld
6944 \end_inset
6945
6946 Local Layout
6947 \begin_inset Quotes erd
6948 \end_inset
6949
6950 .
6951 \end_layout
6952
6953 \begin_layout Standard
6954 You will find it under 
6955 \family sans
6956 Document\SpecialChar menuseparator
6957 Settings\SpecialChar menuseparator
6958 Local Layout
6959 \family default
6960 .
6961  The large text box allows you to enter anything that you might enter in
6962  a layout file or module.
6963  You can think of a document's local layout, in fact, as a module that belongs
6964  just to it.
6965  So, in particular, you must enter a 
6966 \begin_inset Flex Code
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 Format
6971 \end_layout
6972
6973 \end_inset
6974
6975  tag.
6976  Any format is acceptable, but one would normally use the format current
6977  at the time.
6978  (In \SpecialChar LyX
6979  
6980 \begin_inset Info
6981 type  "lyxinfo"
6982 arg   "version"
6983 \end_inset
6984
6985 , the current layout format is 
6986 \begin_inset Info
6987 type  "lyxinfo"
6988 arg   "layoutformat"
6989 \end_inset
6990
6991 .)
6992 \end_layout
6993
6994 \begin_layout Standard
6995 When you have entered something in the 
6996 \begin_inset Flex Code
6997 status collapsed
6998
6999 \begin_layout Plain Layout
7000 Local Layout
7001 \end_layout
7002
7003 \end_inset
7004
7005  pane, \SpecialChar LyX
7006  will enable the 
7007 \begin_inset Quotes eld
7008 \end_inset
7009
7010 Validate
7011 \begin_inset Quotes erd
7012 \end_inset
7013
7014  button at the bottom.
7015  Clicking this button will cause \SpecialChar LyX
7016  to determine whether what you have entered
7017  is valid layout information for the chosen format.
7018  \SpecialChar LyX
7019  will report the result but, unfortunately, will not tell you what errors
7020  there might have been.
7021  These will be written to the terminal, however, if \SpecialChar LyX
7022  is started from a terminal.
7023  You will not be permitted to save your local layout until you have entered
7024  something valid.
7025 \end_layout
7026
7027 \begin_layout Standard
7028 The warnings at the end of the previous section apply here, too.
7029  Do not play with local layout while you are actually working, especially
7030  if you have not saved your document.
7031  That said, using local layout with a test document can be a very convenient
7032  way to try out layout ideas, or even to start developing a module.
7033 \end_layout
7034
7035 \begin_layout Subsection
7036 Layout for 
7037 \begin_inset Flex Noun
7038 status collapsed
7039
7040 \begin_layout Plain Layout
7041 .sty
7042 \end_layout
7043
7044 \end_inset
7045
7046  files
7047 \end_layout
7048
7049 \begin_layout Standard
7050 There are two situations you are likely to encounter when wanting to support
7051  a new \SpecialChar LaTeX
7052  document class, involving style (
7053 \begin_inset Flex Code
7054 status collapsed
7055
7056 \begin_layout Plain Layout
7057 .sty
7058 \end_layout
7059
7060 \end_inset
7061
7062 ) files and \SpecialChar LaTeX2e
7063  class (
7064 \begin_inset Flex Code
7065 status collapsed
7066
7067 \begin_layout Plain Layout
7068 .cls
7069 \end_layout
7070
7071 \end_inset
7072
7073 ) .
7074  Supporting a style file is usually fairly easy.
7075  Supporting a new class file is a bit harder.
7076  We'll discuss the former in this section and the latter in the next.
7077  Similar remarks apply, of course, if you want to support a new DocBook
7078  DTD.
7079 \end_layout
7080
7081 \begin_layout Standard
7082 The easier case is the one in which your new document class is provided
7083  as a style file that is to be used in conjunction with an already supported
7084  document class.
7085  For the sake of the example, we'll assume that the style file is called
7086  
7087 \begin_inset Flex Noun
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 myclass.sty
7092 \end_layout
7093
7094 \end_inset
7095
7096  and that it is meant to be used with 
7097 \begin_inset Flex Noun
7098 status collapsed
7099
7100 \begin_layout Plain Layout
7101 report.cls
7102 \end_layout
7103
7104 \end_inset
7105
7106 , which is a standard class.
7107  
7108 \end_layout
7109
7110 \begin_layout Standard
7111 Start by copying the existing class's layout file into your local directory:
7112 \begin_inset Foot
7113 status collapsed
7114
7115 \begin_layout Plain Layout
7116 Of course, which directory is your local directory will vary by platform,
7117  and \SpecialChar LyX
7118  allows you to specify your local directory on startup, too, using
7119  the 
7120 \begin_inset Flex Code
7121 status collapsed
7122
7123 \begin_layout Plain Layout
7124 -userdir
7125 \end_layout
7126
7127 \end_inset
7128
7129  option.
7130 \end_layout
7131
7132 \end_inset
7133
7134
7135 \end_layout
7136
7137 \begin_layout LyX-Code
7138 cp report.layout ~/.lyx/layouts/myclass.layout
7139 \end_layout
7140
7141 \begin_layout Standard
7142 Then edit 
7143 \begin_inset Flex Code
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 myclass.layout
7148 \end_layout
7149
7150 \end_inset
7151
7152  and change the line: 
7153 \end_layout
7154
7155 \begin_layout LyX-Code
7156
7157 \backslash
7158 DeclareLaTeXClass{Report (Standard Class)}
7159 \end_layout
7160
7161 \begin_layout Standard
7162 to read
7163 \end_layout
7164
7165 \begin_layout LyX-Code
7166
7167 \backslash
7168 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7169 \end_layout
7170
7171 \begin_layout Standard
7172 Then add:
7173 \end_layout
7174
7175 \begin_layout LyX-Code
7176 Preamble 
7177 \begin_inset Newline newline
7178 \end_inset
7179
7180     
7181 \backslash
7182 usepackage{myclass}
7183 \begin_inset Newline newline
7184 \end_inset
7185
7186 EndPreamble
7187 \end_layout
7188
7189 \begin_layout Standard
7190 near the top of the file.
7191 \end_layout
7192
7193 \begin_layout Standard
7194 Start \SpecialChar LyX
7195  and select 
7196 \begin_inset Flex Noun
7197 status collapsed
7198
7199 \begin_layout Plain Layout
7200 Tools\SpecialChar menuseparator
7201 Reconfigure
7202 \end_layout
7203
7204 \end_inset
7205
7206 .
7207  Then restart \SpecialChar LyX
7208  and try creating a new document.
7209  You should see "
7210 \begin_inset Flex Noun
7211 status collapsed
7212
7213 \begin_layout Plain Layout
7214 Report (My Class)
7215 \end_layout
7216
7217 \end_inset
7218
7219 " as a document class option in the 
7220 \begin_inset Flex Noun
7221 status collapsed
7222
7223 \begin_layout Plain Layout
7224 Document\SpecialChar menuseparator
7225 Settings
7226 \end_layout
7227
7228 \end_inset
7229
7230  dialog.
7231  It is likely that some of the sectioning commands and such in your new
7232  class will work differently from how they worked in the base class—
7233 \begin_inset Flex Code
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 report
7238 \end_layout
7239
7240 \end_inset
7241
7242  in this example—so you can fiddle around with the settings for the different
7243  sections if you wish.
7244  The layout information for sections is contained in 
7245 \begin_inset Flex Code
7246 status collapsed
7247
7248 \begin_layout Plain Layout
7249 stdsections.inc
7250 \end_layout
7251
7252 \end_inset
7253
7254 , but you do not need to copy and change this file.
7255  Instead, you can simply add your changes to your layout file, after the
7256  line 
7257 \begin_inset Flex Code
7258 status collapsed
7259
7260 \begin_layout Plain Layout
7261 Input stdclass.inc
7262 \end_layout
7263
7264 \end_inset
7265
7266 , which itself includes 
7267 \begin_inset Flex Code
7268 status collapsed
7269
7270 \begin_layout Plain Layout
7271 stdsections.inc
7272 \end_layout
7273
7274 \end_inset
7275
7276 .
7277  For example, you might add these lines:
7278 \end_layout
7279
7280 \begin_layout LyX-Code
7281 Style Chapter
7282 \end_layout
7283
7284 \begin_layout LyX-Code
7285     Font
7286 \end_layout
7287
7288 \begin_layout LyX-Code
7289         Family Sans
7290 \end_layout
7291
7292 \begin_layout LyX-Code
7293     EndFont
7294 \end_layout
7295
7296 \begin_layout LyX-Code
7297 End
7298 \end_layout
7299
7300 \begin_layout Standard
7301 to change the font for chapter headings to sans-serif.
7302  This will override (or, in this case, add to) the existing declaration
7303  for the Chapter style.
7304  
7305 \end_layout
7306
7307 \begin_layout Standard
7308 Your new package may also provide commands or environments not present in
7309  the base class.
7310  In this case, you will want to add these to the layout file.
7311  See 
7312 \begin_inset CommandInset ref
7313 LatexCommand ref
7314 reference "sec:TextClass"
7315
7316 \end_inset
7317
7318  for information on how to do so.
7319 \end_layout
7320
7321 \begin_layout Standard
7322 If 
7323 \begin_inset Flex Noun
7324 status collapsed
7325
7326 \begin_layout Plain Layout
7327 myclass.sty
7328 \end_layout
7329
7330 \end_inset
7331
7332  can be used with several different document classes, and even if it cannot,
7333  you might find it easiest just to write a module that you can load with
7334  the base class.
7335  The simplest possible such module would be:
7336 \end_layout
7337
7338 \begin_layout LyX-Code
7339 #
7340 \backslash
7341 DeclareLyXModule{My Class} 
7342 \end_layout
7343
7344 \begin_layout LyX-Code
7345 #DescriptionBegin 
7346 \end_layout
7347
7348 \begin_layout LyX-Code
7349 #Support for myclass.sty.
7350 \end_layout
7351
7352 \begin_layout LyX-Code
7353 #DescriptionEnd
7354 \begin_inset Newline newline
7355 \end_inset
7356
7357
7358 \end_layout
7359
7360 \begin_layout LyX-Code
7361 Format 
7362 \begin_inset Info
7363 type  "lyxinfo"
7364 arg   "layoutformat"
7365 \end_inset
7366
7367
7368 \begin_inset Newline newline
7369 \end_inset
7370
7371
7372 \end_layout
7373
7374 \begin_layout LyX-Code
7375 Preamble
7376 \begin_inset Newline newline
7377 \end_inset
7378
7379     
7380 \backslash
7381 usepackage{myclass}
7382 \begin_inset Newline newline
7383 \end_inset
7384
7385 EndPreamble
7386 \end_layout
7387
7388 \begin_layout Standard
7389 A more complex module might modify the behavior of some existing constructs
7390  or define some new ones.
7391  Again, see 
7392 \begin_inset CommandInset ref
7393 LatexCommand ref
7394 reference "sec:TextClass"
7395
7396 \end_inset
7397
7398  for discussion.
7399 \end_layout
7400
7401 \begin_layout Subsection
7402 Layout for 
7403 \begin_inset Flex Noun
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 .cls
7408 \end_layout
7409
7410 \end_inset
7411
7412  files
7413 \end_layout
7414
7415 \begin_layout Standard
7416 There are two possibilities here.
7417  One is that the class file is itself based upon an existing document class.
7418  For example, many thesis classes are based upon 
7419 \begin_inset Flex Noun
7420 status collapsed
7421
7422 \begin_layout Plain Layout
7423 book.cls
7424 \end_layout
7425
7426 \end_inset
7427
7428 .
7429  To see whether yours is, look for a line like
7430 \end_layout
7431
7432 \begin_layout LyX-Code
7433
7434 \backslash
7435 LoadClass{book}
7436 \end_layout
7437
7438 \begin_layout Standard
7439 in the file.
7440  If so, then you may proceed largely as in the previous section, though
7441  the 
7442 \begin_inset Flex Code
7443 status collapsed
7444
7445 \begin_layout Plain Layout
7446 Declare\SpecialChar LaTeX
7447 Class
7448 \end_layout
7449
7450 \end_inset
7451
7452  line will be different.
7453  If your new class is 
7454 \begin_inset Flex Code
7455 status collapsed
7456
7457 \begin_layout Plain Layout
7458 thesis
7459 \end_layout
7460
7461 \end_inset
7462
7463  and it is based upon 
7464 \begin_inset Flex Code
7465 status collapsed
7466
7467 \begin_layout Plain Layout
7468 book
7469 \end_layout
7470
7471 \end_inset
7472
7473 , then the line should read:
7474 \begin_inset Foot
7475 status collapsed
7476
7477 \begin_layout Plain Layout
7478 And it will be easiest if you save the file to 
7479 \begin_inset Flex Code
7480 status collapsed
7481
7482 \begin_layout Plain Layout
7483 thesis.layout
7484 \end_layout
7485
7486 \end_inset
7487
7488 : \SpecialChar LyX
7489  assumes that the document class has the same name as the layout file.
7490  
7491 \end_layout
7492
7493 \end_inset
7494
7495
7496 \end_layout
7497
7498 \begin_layout LyX-Code
7499
7500 \backslash
7501 DeclareLaTeXClass[thesis,book]{thesis}
7502 \end_layout
7503
7504 \begin_layout Standard
7505 If, on the other hand, the new class is not based upon an existing class,
7506  you will probably have to 
7507 \begin_inset Quotes eld
7508 \end_inset
7509
7510 roll your own
7511 \begin_inset Quotes erd
7512 \end_inset
7513
7514  layout.
7515  We strongly suggest copying an existing layout file which uses a similar
7516  \SpecialChar LaTeX
7517  class and then modifying it, if you can do so.
7518  At least use an existing file as a starting point so you can find out what
7519  items you need to worry about.
7520  Again, the specifics are covered below.
7521 \end_layout
7522
7523 \begin_layout Subsection
7524 Creating templates
7525 \begin_inset CommandInset label
7526 LatexCommand label
7527 name "subsec:Creating-Templates"
7528
7529 \end_inset
7530
7531
7532 \end_layout
7533
7534 \begin_layout Standard
7535 Once you have written a layout file for a new document class, you might
7536  want to consider writing a 
7537 \emph on
7538 template
7539 \emph default
7540  for it, too.
7541  A template acts as a kind of tutorial for your layout, showing how it might
7542  be used, though containing dummy content.
7543  You can of course look at the various templates included with \SpecialChar LyX
7544  for ideas.
7545 \end_layout
7546
7547 \begin_layout Standard
7548 Templates are created just like usual documents: using \SpecialChar LyX
7549 .
7550  The only difference is that usual documents contain all possible settings,
7551  including the font scheme and the paper size.
7552  Usually a user doesn't want a template to overwrite his preferred settings
7553  for such parameters.
7554  For that reason, the designer of a template should remove the corresponding
7555  commands like 
7556 \begin_inset Flex Code
7557 status collapsed
7558
7559 \begin_layout Plain Layout
7560
7561 \backslash
7562 font_roman
7563 \end_layout
7564
7565 \end_inset
7566
7567  or 
7568 \begin_inset Flex Code
7569 status collapsed
7570
7571 \begin_layout Plain Layout
7572
7573 \backslash
7574 papersize
7575 \end_layout
7576
7577 \end_inset
7578
7579  from the template \SpecialChar LyX
7580  file.
7581  This can be done with any simple text-editor, for example 
7582 \begin_inset Flex Code
7583 status collapsed
7584
7585 \begin_layout Plain Layout
7586 vi
7587 \end_layout
7588
7589 \end_inset
7590
7591  or 
7592 \begin_inset Flex Code
7593 status collapsed
7594
7595 \begin_layout Plain Layout
7596 notepad
7597 \end_layout
7598
7599 \end_inset
7600
7601 .
7602 \end_layout
7603
7604 \begin_layout Standard
7605 Put the edited template files you create in 
7606 \begin_inset Flex Code
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610 UserDir/templates/
7611 \end_layout
7612
7613 \end_inset
7614
7615 , copy the ones you use from the global template directory in 
7616 \begin_inset Flex Code
7617 status collapsed
7618
7619 \begin_layout Plain Layout
7620 LyXDir/templates/
7621 \end_layout
7622
7623 \end_inset
7624
7625  to the same place, and redefine the template path in the 
7626 \begin_inset Flex Noun
7627 status collapsed
7628
7629 \begin_layout Plain Layout
7630 Tools\SpecialChar menuseparator
7631 Preferences\SpecialChar menuseparator
7632 Paths
7633 \end_layout
7634
7635 \end_inset
7636
7637  dialog.
7638 \end_layout
7639
7640 \begin_layout Standard
7641 Note, by the way, that there is a template which has a particular meaning:
7642 \begin_inset Newline linebreak
7643 \end_inset
7644
7645
7646 \begin_inset Flex Code
7647 status collapsed
7648
7649 \begin_layout Plain Layout
7650 defaults.lyx
7651 \end_layout
7652
7653 \end_inset
7654
7655 .
7656  This template is loaded every time you create a new document with 
7657 \begin_inset Flex Noun
7658 status collapsed
7659
7660 \begin_layout Plain Layout
7661 File\SpecialChar menuseparator
7662 New
7663 \end_layout
7664
7665 \end_inset
7666
7667  in order to provide useful defaults.
7668  To create this template from inside \SpecialChar LyX
7669 , all you have to do is to open a document
7670  with the correct settings, and use the 
7671 \begin_inset Flex Noun
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 Save as Document Defaults
7676 \end_layout
7677
7678 \end_inset
7679
7680  button.
7681 \end_layout
7682
7683 \begin_layout Subsection
7684 Upgrading old layout files
7685 \end_layout
7686
7687 \begin_layout Standard
7688 The format of layout files changes with each \SpecialChar LyX
7689  release, so old layout files
7690  need to be converted to the new format.
7691  If \SpecialChar LyX
7692  reads a layout file in an older format, it automatically calls the
7693  script 
7694 \begin_inset Flex Code
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 layout2layout.py
7699 \end_layout
7700
7701 \end_inset
7702
7703  to convert it to a temporary file in current format.
7704  The original file is left untouched.
7705  If you use the layout file often, then, you may want to convert it permanently,
7706  so that \SpecialChar LyX
7707  does not have to do so itself every time.
7708  To do this, you can call the converter manually:
7709 \end_layout
7710
7711 \begin_layout Enumerate
7712 rename the file 
7713 \begin_inset Flex Code
7714 status collapsed
7715
7716 \begin_layout Plain Layout
7717 myclass.layout
7718 \end_layout
7719
7720 \end_inset
7721
7722  to 
7723 \begin_inset Flex Code
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727 myclass.old
7728 \end_layout
7729
7730 \end_inset
7731
7732
7733 \end_layout
7734
7735 \begin_layout Enumerate
7736 Call the command
7737 \begin_inset Newline newline
7738 \end_inset
7739
7740
7741 \begin_inset Flex Code
7742 status collapsed
7743
7744 \begin_layout Plain Layout
7745 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7746 \end_layout
7747
7748 \end_inset
7749
7750
7751 \begin_inset Newline newline
7752 \end_inset
7753
7754 where 
7755 \begin_inset Flex Code
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 LyXDir
7760 \end_layout
7761
7762 \end_inset
7763
7764  is the name of your \SpecialChar LyX
7765  system directory.
7766 \end_layout
7767
7768 \begin_layout Standard
7769 Note that manual conversion does not affect included files, so these will
7770  have to be converted separately.
7771 \end_layout
7772
7773 \begin_layout Subsection
7774 \begin_inset CommandInset label
7775 LatexCommand label
7776 name "subsec:Cite-Engine-Files"
7777
7778 \end_inset
7779
7780 Cite engine files
7781 \end_layout
7782
7783 \begin_layout Standard
7784 A specific form of layout files are the so-called 
7785 \begin_inset Flex Code
7786 status collapsed
7787
7788 \begin_layout Plain Layout
7789 *.citeengine
7790 \end_layout
7791
7792 \end_inset
7793
7794  files that are located in the 
7795 \begin_inset Flex Code
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 citeengines/
7800 \end_layout
7801
7802 \end_inset
7803
7804  sub-directory.
7805  Their purpose is to define the specifics of \SpecialChar LaTeX
7806  packages aimed at bibliography
7807  generation, such as 
7808 \family sans
7809 natbib
7810 \family default
7811 ,
7812 \family sans
7813  jurabib
7814 \family default
7815  or 
7816 \family sans
7817 biblatex
7818 \family default
7819 , but also the way how normal Bib\SpecialChar TeX
7820  citations (without additional packages)
7821  are handled in \SpecialChar LyX
7822  is defined in such a file.
7823  
7824 \end_layout
7825
7826 \begin_layout Standard
7827 More specifically, it is defined which packages \SpecialChar LyX
7828  needs to load, which citation
7829  commands are available, how these are to be displayed in \SpecialChar LyX
7830  (in the workarea,
7831  the dialogs, the context menus) as well as in the XHTML and plain text
7832  output.
7833  Furthermore, the files specify available style variants (author-year, numerical
7834 , etc.) and their specifics.
7835  The cite engine files are also used to generate the options that are available
7836  in 
7837 \family sans
7838 Document\SpecialChar menuseparator
7839 Settings\SpecialChar menuseparator
7840 Bibliography\SpecialChar menuseparator
7841 Style engine
7842 \family default
7843 .
7844 \end_layout
7845
7846 \begin_layout Standard
7847 Even though a cite engine file is essentially a normal layout file that
7848  could theoretically include any layout information, it usually primarily
7849  includes some specific parameters such as 
7850 \begin_inset Flex Code
7851 status collapsed
7852
7853 \begin_layout Plain Layout
7854 MaxCiteNames
7855 \end_layout
7856
7857 \end_inset
7858
7859
7860 \begin_inset Flex Code
7861 status collapsed
7862
7863 \begin_layout Plain Layout
7864 CiteFramework
7865 \end_layout
7866
7867 \end_inset
7868
7869
7870 \begin_inset Flex Code
7871 status collapsed
7872
7873 \begin_layout Plain Layout
7874 CiteEngine
7875 \end_layout
7876
7877 \end_inset
7878
7879  and 
7880 \begin_inset Flex Code
7881 status collapsed
7882
7883 \begin_layout Plain Layout
7884 CiteFormat
7885 \end_layout
7886
7887 \end_inset
7888
7889  blocks.
7890  The syntax of the latter two is described in 
7891 \begin_inset CommandInset ref
7892 LatexCommand ref
7893 reference "subsec:Citation-engine-description"
7894 plural "false"
7895 caps "false"
7896 noprefix "false"
7897
7898 \end_inset
7899
7900  and 
7901 \begin_inset CommandInset ref
7902 LatexCommand ref
7903 reference "subsec:Citation-format-description"
7904
7905 \end_inset
7906
7907 , as well as in the files themselves.
7908 \end_layout
7909
7910 \begin_layout Section
7911 \begin_inset CommandInset label
7912 LatexCommand label
7913 name "sec:TextClass"
7914
7915 \end_inset
7916
7917 The layout file format
7918 \end_layout
7919
7920 \begin_layout Standard
7921 The following sections describe how layout files are structured and written.
7922  Our advice is to go slowly, save and test often.
7923  It is really not that hard, except that the multitude of options can become
7924  overwhelming, especially if you try to check out too many at once.
7925  It becomes easier if you use existing layouts of \SpecialChar LyX
7926  as examples/reference
7927  or if you modify an existing layout to your needs.
7928 \end_layout
7929
7930 \begin_layout Standard
7931 Note that all the tags used in layout files are case-insensitive.
7932  This means that 
7933 \begin_inset Flex Code
7934 status collapsed
7935
7936 \begin_layout Plain Layout
7937 Style
7938 \end_layout
7939
7940 \end_inset
7941
7942
7943 \begin_inset Flex Code
7944 status collapsed
7945
7946 \begin_layout Plain Layout
7947 style
7948 \end_layout
7949
7950 \end_inset
7951
7952  and 
7953 \begin_inset Flex Code
7954 status collapsed
7955
7956 \begin_layout Plain Layout
7957 StYlE
7958 \end_layout
7959
7960 \end_inset
7961
7962  are really the same tag.
7963  The possible arguments are printed in brackets after the tag's name.
7964  The default argument is typeset 
7965 \begin_inset Flex Code
7966 status collapsed
7967
7968 \begin_layout Plain Layout
7969
7970 \emph on
7971 emphasized
7972 \end_layout
7973
7974 \end_inset
7975
7976 .
7977  If the argument has a data type like 
7978 \begin_inset Quotes eld
7979 \end_inset
7980
7981 string
7982 \begin_inset Quotes erd
7983 \end_inset
7984
7985  or 
7986 \begin_inset Quotes eld
7987 \end_inset
7988
7989 float
7990 \begin_inset Quotes erd
7991 \end_inset
7992
7993 , the default is shown like this: 
7994 \begin_inset Flex Code
7995 status collapsed
7996
7997 \begin_layout Plain Layout
7998 float=
7999 \emph on
8000 default
8001 \end_layout
8002
8003 \end_inset
8004
8005 .
8006 \end_layout
8007
8008 \begin_layout Subsection
8009 The document class declaration and classification
8010 \end_layout
8011
8012 \begin_layout Standard
8013 Lines in a layout file which begin with 
8014 \begin_inset Flex Code
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 #
8019 \end_layout
8020
8021 \end_inset
8022
8023  are comments.
8024  There is one exception to this rule.
8025  All 
8026 \begin_inset Flex Code
8027 status collapsed
8028
8029 \begin_layout Plain Layout
8030 *.layout
8031 \end_layout
8032
8033 \end_inset
8034
8035  files should begin with lines like:
8036 \end_layout
8037
8038 \begin_layout LyX-Code
8039
8040 \size small
8041 #% Do not delete the line below; configure depends on this 
8042 \end_layout
8043
8044 \begin_layout LyX-Code
8045
8046 \size small
8047 #  
8048 \backslash
8049 DeclareLaTeXClass{Article (Standard Class)}
8050 \end_layout
8051
8052 \begin_layout LyX-Code
8053
8054 \size small
8055 #  
8056 \backslash
8057 DeclareCategory{Articles}
8058 \end_layout
8059
8060 \begin_layout Standard
8061 The second and third lines are used when you (re)configure \SpecialChar LyX
8062 .
8063  The layout file is read by the \SpecialChar LaTeX
8064  script 
8065 \begin_inset Flex Code
8066 status collapsed
8067
8068 \begin_layout Plain Layout
8069 chkconfig.ltx
8070 \end_layout
8071
8072 \end_inset
8073
8074 , in a special mode where 
8075 \begin_inset Flex Code
8076 status collapsed
8077
8078 \begin_layout Plain Layout
8079 #
8080 \end_layout
8081
8082 \end_inset
8083
8084  is ignored.
8085  The first line is just a \SpecialChar LaTeX
8086  comment, the second one contains the mandatory
8087  declaration of the text class and the third line contains the optional
8088  classification of the class.
8089  If these lines appear in a file named 
8090 \begin_inset Flex Code
8091 status collapsed
8092
8093 \begin_layout Plain Layout
8094 article.layout
8095 \end_layout
8096
8097 \end_inset
8098
8099 , then they define a text class of name 
8100 \begin_inset Flex Code
8101 status collapsed
8102
8103 \begin_layout Plain Layout
8104 article
8105 \end_layout
8106
8107 \end_inset
8108
8109  (the name of the layout file) which uses the \SpecialChar LaTeX
8110  document class 
8111 \begin_inset Flex Code
8112 status collapsed
8113
8114 \begin_layout Plain Layout
8115 article.cls
8116 \end_layout
8117
8118 \end_inset
8119
8120  (the default is to use the same name as the layout).
8121  The string 
8122 \begin_inset Quotes eld
8123 \end_inset
8124
8125 Article (Standard Class)
8126 \begin_inset Quotes erd
8127 \end_inset
8128
8129  that appears above is used as a description of the text class in the 
8130 \begin_inset Flex Noun
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 Document\SpecialChar menuseparator
8135 Settings
8136 \end_layout
8137
8138 \end_inset
8139
8140  dialog.
8141  The category (
8142 \begin_inset Quotes eld
8143 \end_inset
8144
8145 Articles
8146 \begin_inset Quotes erd
8147 \end_inset
8148
8149  in the example) is also used in the 
8150 \begin_inset Flex Noun
8151 status collapsed
8152
8153 \begin_layout Plain Layout
8154 Document\SpecialChar menuseparator
8155 Settings
8156 \end_layout
8157
8158 \end_inset
8159
8160  dialog: the text classes are grouped by these categories (which are usually
8161  genres, so typical categories are 
8162 \begin_inset Quotes eld
8163 \end_inset
8164
8165 Articles
8166 \begin_inset Quotes erd
8167 \end_inset
8168
8169
8170 \begin_inset Quotes eld
8171 \end_inset
8172
8173 Books
8174 \begin_inset Quotes erd
8175 \end_inset
8176
8177
8178 \begin_inset Quotes eld
8179 \end_inset
8180
8181 Reports
8182 \begin_inset Quotes erd
8183 \end_inset
8184
8185
8186 \begin_inset Quotes eld
8187 \end_inset
8188
8189 Letters
8190 \begin_inset Quotes erd
8191 \end_inset
8192
8193
8194 \begin_inset Quotes eld
8195 \end_inset
8196
8197 Presentations
8198 \begin_inset Quotes erd
8199 \end_inset
8200
8201
8202 \begin_inset Quotes eld
8203 \end_inset
8204
8205 Curricula Vitae
8206 \begin_inset Quotes erd
8207 \end_inset
8208
8209  etc.).
8210  If no category has been declared, the class will be put in the 
8211 \begin_inset Quotes eld
8212 \end_inset
8213
8214 Uncategorized
8215 \begin_inset Quotes erd
8216 \end_inset
8217
8218  group.
8219 \end_layout
8220
8221 \begin_layout Standard
8222 Let's assume that you wrote your own text class that uses the 
8223 \begin_inset Flex Code
8224 status collapsed
8225
8226 \begin_layout Plain Layout
8227 article.cls
8228 \end_layout
8229
8230 \end_inset
8231
8232  document class, but where you changed the appearance of the section headings.
8233  If you put it in a file 
8234 \begin_inset Flex Code
8235 status collapsed
8236
8237 \begin_layout Plain Layout
8238 myarticle.layout
8239 \end_layout
8240
8241 \end_inset
8242
8243 , the header of this file should be:
8244 \end_layout
8245
8246 \begin_layout LyX-Code
8247
8248 \size small
8249 #% Do not delete the line below; configure depends on this 
8250 \end_layout
8251
8252 \begin_layout LyX-Code
8253
8254 \size small
8255 #  
8256 \backslash
8257 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8258 \end_layout
8259
8260 \begin_layout LyX-Code
8261
8262 \size small
8263 #  
8264 \backslash
8265 DeclareCategory{Articles}
8266 \end_layout
8267
8268 \begin_layout Standard
8269 This declares a text class 
8270 \begin_inset Flex Code
8271 status collapsed
8272
8273 \begin_layout Plain Layout
8274 myarticle
8275 \end_layout
8276
8277 \end_inset
8278
8279 , associated with the \SpecialChar LaTeX
8280  document class 
8281 \begin_inset Flex Code
8282 status collapsed
8283
8284 \begin_layout Plain Layout
8285 article.cls
8286 \end_layout
8287
8288 \end_inset
8289
8290  and described as 
8291 \begin_inset Quotes eld
8292 \end_inset
8293
8294 Article (with My Own Headings)
8295 \begin_inset Quotes erd
8296 \end_inset
8297
8298 .
8299  If your text class depends on several packages, you can declare it as:
8300 \end_layout
8301
8302 \begin_layout LyX-Code
8303
8304 \size small
8305 #% Do not delete the line below; configure depends on this 
8306 \end_layout
8307
8308 \begin_layout LyX-Code
8309
8310 \size small
8311 #  
8312 \backslash
8313 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8314 \end_layout
8315
8316 \begin_layout LyX-Code
8317
8318 \size small
8319 #  
8320 \backslash
8321 DeclareCategory{Articles}
8322 \end_layout
8323
8324 \begin_layout Standard
8325 This indicates that your text class uses the 
8326 \begin_inset Flex Code
8327 status collapsed
8328
8329 \begin_layout Plain Layout
8330 foo.sty
8331 \end_layout
8332
8333 \end_inset
8334
8335  package.
8336  Finally, it is also possible to declare classes for DocBook code.
8337  Typical declarations will look like:
8338 \end_layout
8339
8340 \begin_layout LyX-Code
8341
8342 \size small
8343 #% Do not delete the line below; configure depends on this 
8344 \end_layout
8345
8346 \begin_layout LyX-Code
8347
8348 \size small
8349
8350 \backslash
8351 DeclareDocBookClass[article]{SGML (DocBook Article)}
8352 \end_layout
8353
8354 \begin_layout LyX-Code
8355
8356 \size small
8357
8358 \backslash
8359 DeclareCategory{Articles (DocBook)}
8360 \end_layout
8361
8362 \begin_layout Standard
8363 Note that these declarations can also be given an optional parameter declaring
8364  the name of the document class (but not a list).
8365 \end_layout
8366
8367 \begin_layout Standard
8368 So, to be as explicit as possible, the form of the layout declaration is:
8369 \end_layout
8370
8371 \begin_layout LyX-Code
8372
8373 \size small
8374 #  
8375 \backslash
8376 DeclareLaTeXClass[class,package.sty]{layout description}
8377 \end_layout
8378
8379 \begin_layout LyX-Code
8380
8381 \size small
8382 #  
8383 \backslash
8384 DeclareCategory{category}
8385 \end_layout
8386
8387 \begin_layout Standard
8388 The class need only be specified if the name of the \SpecialChar LaTeX
8389  class file and the
8390  name of the layout file are different or if there are packages to load.
8391  If the name of the class file is not specified, then \SpecialChar LyX
8392  will simply assume
8393  that it is the same as the name of the layout file.
8394 \end_layout
8395
8396 \begin_layout Standard
8397 When the text class has been modified to your taste, all you have to do
8398  is to copy it either to 
8399 \begin_inset Flex Code
8400 status collapsed
8401
8402 \begin_layout Plain Layout
8403 LyXDir/layouts/
8404 \end_layout
8405
8406 \end_inset
8407
8408  or to 
8409 \begin_inset Flex Code
8410 status collapsed
8411
8412 \begin_layout Plain Layout
8413 UserDir/layouts
8414 \end_layout
8415
8416 \end_inset
8417
8418 , run 
8419 \begin_inset Flex Noun
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 Tools\SpecialChar menuseparator
8424 Reconfigure
8425 \end_layout
8426
8427 \end_inset
8428
8429 , exit \SpecialChar LyX
8430  and restart.
8431  Then your new text class should be available along with the others.
8432 \end_layout
8433
8434 \begin_layout Standard
8435 Once the layout file is installed, you can edit it and see your changes
8436  without having to reconfigure or to restart \SpecialChar LyX
8437 .
8438 \begin_inset Foot
8439 status collapsed
8440
8441 \begin_layout Plain Layout
8442 In versions of \SpecialChar LyX
8443  prior to 1.6, this was not true.
8444  As a result, editing layout files was very time consuming, since you had
8445  constantly to restart \SpecialChar LyX
8446  to see changes.
8447 \end_layout
8448
8449 \end_inset
8450
8451  You can force a reload of the current layout by using the \SpecialChar LyX
8452  function 
8453 \begin_inset Flex Noun
8454 status collapsed
8455
8456 \begin_layout Plain Layout
8457 layout-reload
8458 \end_layout
8459
8460 \end_inset
8461
8462 .
8463  There is no default binding for this function—though, of course, you can
8464  bind it to a key yourself.
8465  But you will normally use this function simply by entering it in the mini-buffe
8466 r.
8467  
8468 \end_layout
8469
8470 \begin_layout Standard
8471
8472 \emph on
8473 Warning
8474 \emph default
8475
8476 \begin_inset Flex Noun
8477 status collapsed
8478
8479 \begin_layout Plain Layout
8480 layout-reload
8481 \end_layout
8482
8483 \end_inset
8484
8485  is very much an `advanced feature'.
8486  It is 
8487 \emph on
8488 strongly
8489 \emph default
8490  recommended that you save your work before using this function.
8491  In fact, it is 
8492 \emph on
8493 strongly
8494 \emph default
8495  recommended that you not attempt to edit layout information while simultaneousl
8496 y working on a document that you care about.
8497  Use a test document.
8498  Syntax errors and the like in your layout file could cause peculiar behavior.
8499  In particular, such errors could cause \SpecialChar LyX
8500  to regard the current layout as
8501  invalid and to attempt to switch to some other layout.
8502 \begin_inset Foot
8503 status collapsed
8504
8505 \begin_layout Plain Layout
8506 Really bad syntax errors may even caused \SpecialChar LyX
8507  to exit.
8508  This is because certain sorts of errors may make \SpecialChar LyX
8509  unable to read 
8510 \emph on
8511 any
8512 \emph default
8513  layout information.
8514  Please be careful.
8515 \end_layout
8516
8517 \end_inset
8518
8519  The \SpecialChar LyX
8520  team strives to keep \SpecialChar LyX
8521  stable in such situations, but safe is better
8522  than sorry.
8523 \begin_inset Foot
8524 status collapsed
8525
8526 \begin_layout Plain Layout
8527 While we're giving advice: make regular backups.
8528  And be nice to your mother.
8529 \end_layout
8530
8531 \end_inset
8532
8533
8534 \end_layout
8535
8536 \begin_layout Subsection
8537 The Module declaration
8538 \end_layout
8539
8540 \begin_layout Standard
8541 A module must begin with a line like the following:
8542 \end_layout
8543
8544 \begin_layout LyX-Code
8545 #
8546 \backslash
8547 DeclareLyXModule[endnotes.sty]{Endnotes} 
8548 \end_layout
8549
8550 \begin_layout Standard
8551 The mandatory argument, in curly brackets, is the name of the module, as
8552  it should appear in 
8553 \begin_inset Flex Noun
8554 status collapsed
8555
8556 \begin_layout Plain Layout
8557 Document\SpecialChar menuseparator
8558 Settings\SpecialChar menuseparator
8559 Modules
8560 \end_layout
8561
8562 \end_inset
8563
8564 .
8565  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8566  packages
8567  on which the module depends.
8568  It is also possible to use the form 
8569 \begin_inset Flex Noun
8570 status collapsed
8571
8572 \begin_layout Plain Layout
8573 from->to
8574 \end_layout
8575
8576 \end_inset
8577
8578  as an optional argument, which declares that the module can only be used
8579  when there exists a conversion chain between the formats `
8580 \begin_inset Flex Code
8581 status collapsed
8582
8583 \begin_layout Plain Layout
8584 from
8585 \end_layout
8586
8587 \end_inset
8588
8589 ' and `
8590 \begin_inset Flex Code
8591 status collapsed
8592
8593 \begin_layout Plain Layout
8594 to
8595 \end_layout
8596
8597 \end_inset
8598
8599 '.
8600 \end_layout
8601
8602 \begin_layout Standard
8603 The module declaration should then be followed by lines like the following:
8604 \begin_inset Foot
8605 status collapsed
8606
8607 \begin_layout Plain Layout
8608 Preferably in English if the module should be published with \SpecialChar LyX
8609 .
8610  This description will appear in the list of messages to be translated and
8611  will be thus translated with the next interface update.
8612 \end_layout
8613
8614 \end_inset
8615
8616
8617 \end_layout
8618
8619 \begin_layout LyX-Code
8620 #DescriptionBegin 
8621 \end_layout
8622
8623 \begin_layout LyX-Code
8624 #Adds an endnote command, in addition to footnotes.
8625  
8626 \end_layout
8627
8628 \begin_layout LyX-Code
8629 #You will need to add  
8630 \backslash
8631 theendnotes in TeX code where you 
8632 \end_layout
8633
8634 \begin_layout LyX-Code
8635 #want the endnotes to appear.
8636  
8637 \end_layout
8638
8639 \begin_layout LyX-Code
8640 #DescriptionEnd 
8641 \end_layout
8642
8643 \begin_layout LyX-Code
8644 #Requires: somemodule | othermodule
8645 \end_layout
8646
8647 \begin_layout LyX-Code
8648 #Excludes: badmodule
8649 \end_layout
8650
8651 \begin_layout Standard
8652 The description is used in 
8653 \begin_inset Flex Noun
8654 status collapsed
8655
8656 \begin_layout Plain Layout
8657 Document\SpecialChar menuseparator
8658 Settings\SpecialChar menuseparator
8659 Modules
8660 \end_layout
8661
8662 \end_inset
8663
8664  to provide the user with information about what the module does.
8665  The 
8666 \begin_inset Flex Code
8667 status collapsed
8668
8669 \begin_layout Plain Layout
8670 Requires
8671 \end_layout
8672
8673 \end_inset
8674
8675  line is used to identify other modules with which this one must be used;
8676  the 
8677 \begin_inset Flex Code
8678 status collapsed
8679
8680 \begin_layout Plain Layout
8681 Excludes
8682 \end_layout
8683
8684 \end_inset
8685
8686  line is used to identify modules with which this one may not be used.
8687  Both are optional, and, as shown, multiple modules should be separated
8688  with the pipe symbol: |.
8689  Note that the required modules are treated disjunctively: 
8690 \emph on
8691 at least one
8692 \emph default
8693  of the required modules must be used.
8694  Similarly, 
8695 \emph on
8696 no
8697 \emph default
8698  excluded module may be used.
8699  Note that modules are identified here by their filenames without the 
8700 \begin_inset Flex Code
8701 status collapsed
8702
8703 \begin_layout Plain Layout
8704 .module
8705 \end_layout
8706
8707 \end_inset
8708
8709  extension.
8710  So 
8711 \begin_inset Flex Code
8712 status collapsed
8713
8714 \begin_layout Plain Layout
8715 somemodule
8716 \end_layout
8717
8718 \end_inset
8719
8720  is really 
8721 \begin_inset Flex Code
8722 status collapsed
8723
8724 \begin_layout Plain Layout
8725 somemodule.module
8726 \end_layout
8727
8728 \end_inset
8729
8730 .
8731 \end_layout
8732
8733 \begin_layout Subsection
8734 The CiteEngine file declaration
8735 \end_layout
8736
8737 \begin_layout Standard
8738 A cite engine file must begin with a line like the following:
8739 \end_layout
8740
8741 \begin_layout LyX-Code
8742 #
8743 \backslash
8744 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8745 \end_layout
8746
8747 \begin_layout Standard
8748 The mandatory argument, in curly brackets, is the name of the cite style,
8749  as it should appear in 
8750 \begin_inset Flex Noun
8751 status collapsed
8752
8753 \begin_layout Plain Layout
8754 Document\SpecialChar menuseparator
8755 Settings\SpecialChar menuseparator
8756 Bibliography
8757 \end_layout
8758
8759 \end_inset
8760
8761 .
8762  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8763  packages
8764  on which the cite engine depends.
8765 \end_layout
8766
8767 \begin_layout Standard
8768 The cite engine declaration should then be followed by lines like the following:
8769 \begin_inset Foot
8770 status collapsed
8771
8772 \begin_layout Plain Layout
8773 Preferably in English if the module should be published with \SpecialChar LyX
8774 .
8775  This description will appear in the list of messages to be translated and
8776  will be thus translated with the next interface update.
8777 \end_layout
8778
8779 \end_inset
8780
8781
8782 \end_layout
8783
8784 \begin_layout LyX-Code
8785 # DescriptionBegin
8786 \end_layout
8787
8788 \begin_layout LyX-Code
8789 #   Biblatex supports many author-year and numerical styles.
8790 \end_layout
8791
8792 \begin_layout LyX-Code
8793 #   It is mainly aimed at the Humanities.
8794  It is highly
8795 \end_layout
8796
8797 \begin_layout LyX-Code
8798 #   customizable, fully localized and provides many features
8799 \end_layout
8800
8801 \begin_layout LyX-Code
8802 #   that are not possible with BibTeX.
8803  The use of 'biber' as
8804 \end_layout
8805
8806 \begin_layout LyX-Code
8807 #   bibliography processor is advised.
8808 \end_layout
8809
8810 \begin_layout LyX-Code
8811 # DescriptionEnd
8812 \end_layout
8813
8814 \begin_layout Standard
8815 The description is used in 
8816 \begin_inset Flex Noun
8817 status collapsed
8818
8819 \begin_layout Plain Layout
8820 Document\SpecialChar menuseparator
8821 Settings\SpecialChar menuseparator
8822 Bibliography
8823 \end_layout
8824
8825 \end_inset
8826
8827  to provide the user with information about the cite engine.
8828 \end_layout
8829
8830 \begin_layout Subsection
8831 Format number
8832 \end_layout
8833
8834 \begin_layout Standard
8835 The first non-comment line of any layout file, included file, or module
8836  
8837 \emph on
8838 must
8839 \emph default
8840  contain the file format number:
8841 \end_layout
8842
8843 \begin_layout Description
8844 \begin_inset Flex Code
8845 status collapsed
8846
8847 \begin_layout Plain Layout
8848 Format
8849 \end_layout
8850
8851 \end_inset
8852
8853  [
8854 \begin_inset Flex Code
8855 status collapsed
8856
8857 \begin_layout Plain Layout
8858 int
8859 \end_layout
8860
8861 \end_inset
8862
8863 ] The format number of the layout file.
8864 \end_layout
8865
8866 \begin_layout Standard
8867 This tag was introduced with \SpecialChar LyX
8868
8869 \begin_inset space ~
8870 \end_inset
8871
8872 1.4.0.
8873  Layout files from older \SpecialChar LyX
8874  versions do not have an explicit file format and
8875  are considered to have 
8876 \begin_inset Flex Code
8877 status collapsed
8878
8879 \begin_layout Plain Layout
8880 Format
8881 \begin_inset space ~
8882 \end_inset
8883
8884 1
8885 \end_layout
8886
8887 \end_inset
8888
8889 .
8890  The format for the present version of \SpecialChar LyX
8891  is format 60.
8892  But each version of \SpecialChar LyX
8893  is capable of reading earlier versions' layout files,
8894  just as they are capable of reading files produced by earlier versions
8895  of \SpecialChar LyX
8896 .
8897  There is, however, no provision for converting to earlier formats.
8898 \end_layout
8899
8900 \begin_layout Subsection
8901 \begin_inset CommandInset label
8902 LatexCommand label
8903 name "subsec:General-text-class"
8904
8905 \end_inset
8906
8907 General text class parameters
8908 \end_layout
8909
8910 \begin_layout Standard
8911 These are general parameters that govern the behavior of an entire document
8912  class.
8913  (This does 
8914 \emph on
8915 not
8916 \emph default
8917  mean that they must appear in 
8918 \begin_inset Flex Code
8919 status collapsed
8920
8921 \begin_layout Plain Layout
8922 .layout
8923 \end_layout
8924
8925 \end_inset
8926
8927  files rather than in modules.
8928  A module can contain any layout tag.)
8929 \end_layout
8930
8931 \begin_layout Description
8932
8933 \change_inserted -712698321 1526899478
8934 \begin_inset Flex Code
8935 status collapsed
8936
8937 \begin_layout Plain Layout
8938
8939 \change_inserted -712698321 1526898610
8940 AddToCiteEngine <engine>
8941 \end_layout
8942
8943 \end_inset
8944
8945  Extends the possibilities for displaying citation references.
8946  See 
8947 \begin_inset CommandInset ref
8948 LatexCommand ref
8949 reference "subsec:Citation-engine-description"
8950 plural "false"
8951 caps "false"
8952 noprefix "false"
8953
8954 \end_inset
8955
8956  for details.
8957  Must end with 
8958 \begin_inset Flex Code
8959 status collapsed
8960
8961 \begin_layout Plain Layout
8962
8963 \change_inserted -712698321 1526898823
8964 End
8965 \change_unchanged
8966
8967 \end_layout
8968
8969 \end_inset
8970
8971 .
8972 \end_layout
8973
8974 \begin_layout Description
8975 \begin_inset Flex Code
8976 status collapsed
8977
8978 \begin_layout Plain Layout
8979 AddToHTMLPreamble
8980 \end_layout
8981
8982 \end_inset
8983
8984  Adds information that will be output in the 
8985 \begin_inset Flex Code
8986 status collapsed
8987
8988 \begin_layout Plain Layout
8989 <head>
8990 \end_layout
8991
8992 \end_inset
8993
8994  block when the document is output to XHTML.
8995  Typically, this would be used to output CSS style information, but it can
8996  be used for anything that can appear in 
8997 \begin_inset Flex Code
8998 status collapsed
8999
9000 \begin_layout Plain Layout
9001 <head>
9002 \end_layout
9003
9004 \end_inset
9005
9006 .
9007  Must end with 
9008 \begin_inset Quotes eld
9009 \end_inset
9010
9011
9012 \begin_inset Flex Code
9013 status collapsed
9014
9015 \begin_layout Plain Layout
9016 EndPreamble
9017 \end_layout
9018
9019 \end_inset
9020
9021
9022 \begin_inset Quotes erd
9023 \end_inset
9024
9025 .
9026 \end_layout
9027
9028 \begin_layout Description
9029 \begin_inset Flex Code
9030 status collapsed
9031
9032 \begin_layout Plain Layout
9033 AddToPreamble
9034 \end_layout
9035
9036 \end_inset
9037
9038  Adds information to the document preamble.
9039  Must end with
9040 \begin_inset Newline newline
9041 \end_inset
9042
9043
9044 \begin_inset Quotes eld
9045 \end_inset
9046
9047
9048 \begin_inset Flex Code
9049 status collapsed
9050
9051 \begin_layout Plain Layout
9052 EndPreamble
9053 \end_layout
9054
9055 \end_inset
9056
9057
9058 \begin_inset Quotes erd
9059 \end_inset
9060
9061 .
9062 \end_layout
9063
9064 \begin_layout Description
9065 \begin_inset Flex Code
9066 status collapsed
9067
9068 \begin_layout Plain Layout
9069 CiteEngine <engine>
9070 \end_layout
9071
9072 \end_inset
9073
9074  Defines the possibilities for displaying citation references.
9075  See 
9076 \begin_inset CommandInset ref
9077 LatexCommand ref
9078 reference "subsec:Citation-engine-description"
9079 plural "false"
9080 caps "false"
9081 noprefix "false"
9082
9083 \end_inset
9084
9085  for details.
9086  Must end with 
9087 \begin_inset Quotes eld
9088 \end_inset
9089
9090
9091 \begin_inset Flex Code
9092 status collapsed
9093
9094 \begin_layout Plain Layout
9095 End
9096 \end_layout
9097
9098 \end_inset
9099
9100
9101 \begin_inset Quotes erd
9102 \end_inset
9103
9104 .
9105  Primarily used in cite engine files (see 
9106 \begin_inset CommandInset ref
9107 LatexCommand ref
9108 reference "subsec:Cite-Engine-Files"
9109 plural "false"
9110 caps "false"
9111 noprefix "false"
9112
9113 \end_inset
9114
9115 ).
9116
9117 \change_inserted -712698321 1526898530
9118  Note that if you specify this in a layout file or module, any cite engine
9119  definition will be overridden.
9120  Also see 
9121 \begin_inset Flex Code
9122 status collapsed
9123
9124 \begin_layout Plain Layout
9125
9126 \change_inserted -712698321 1526898530
9127 AddToCiteEngine
9128 \change_unchanged
9129
9130 \end_layout
9131
9132 \end_inset
9133
9134 .
9135 \change_unchanged
9136
9137 \end_layout
9138
9139 \begin_layout Description
9140 \begin_inset Flex Code
9141 status collapsed
9142
9143 \begin_layout Plain Layout
9144 CiteFormat
9145 \end_layout
9146
9147 \end_inset
9148
9149  Defines formats for use in the display of bibliographic information.
9150  See 
9151 \begin_inset CommandInset ref
9152 LatexCommand ref
9153 reference "subsec:Citation-format-description"
9154
9155 \end_inset
9156
9157  for details.
9158  Must end with 
9159 \begin_inset Quotes eld
9160 \end_inset
9161
9162
9163 \begin_inset Flex Code
9164 status collapsed
9165
9166 \begin_layout Plain Layout
9167 End
9168 \end_layout
9169
9170 \end_inset
9171
9172
9173 \begin_inset Quotes erd
9174 \end_inset
9175
9176 .
9177  Primarily used in cite engine files (see 
9178 \begin_inset CommandInset ref
9179 LatexCommand ref
9180 reference "subsec:Cite-Engine-Files"
9181 plural "false"
9182 caps "false"
9183 noprefix "false"
9184
9185 \end_inset
9186
9187 ).
9188
9189 \change_inserted -712698321 1526898585
9190  A cite format defined in a layout or module will override the cite engine
9191  definition.
9192 \change_unchanged
9193
9194 \end_layout
9195
9196 \begin_layout Description
9197 \begin_inset Flex Code
9198 status collapsed
9199
9200 \begin_layout Plain Layout
9201 CiteFramework
9202 \end_layout
9203
9204 \end_inset
9205
9206  [
9207 \begin_inset Flex Code
9208 status collapsed
9209
9210 \begin_layout Plain Layout
9211
9212 \emph on
9213 bibtex
9214 \end_layout
9215
9216 \end_inset
9217
9218 ,
9219 \begin_inset Flex Code
9220 status collapsed
9221
9222 \begin_layout Plain Layout
9223 biblatex
9224 \end_layout
9225
9226 \end_inset
9227
9228 ] Determines whether 
9229 \family sans
9230 Biblatex
9231 \family default
9232  or Bib\SpecialChar TeX
9233  is used to generate a Bibliography.
9234  Primarily used in cite engine files (see 
9235 \begin_inset CommandInset ref
9236 LatexCommand ref
9237 reference "subsec:Cite-Engine-Files"
9238 plural "false"
9239 caps "false"
9240 noprefix "false"
9241
9242 \end_inset
9243
9244 ).
9245 \end_layout
9246
9247 \begin_layout Description
9248 \begin_inset Flex Code
9249 status collapsed
9250
9251 \begin_layout Plain Layout
9252 ClassOptions
9253 \end_layout
9254
9255 \end_inset
9256
9257  Describes various global options supported by the document class.
9258  See 
9259 \begin_inset CommandInset ref
9260 LatexCommand ref
9261 reference "subsec:ClassOptions"
9262
9263 \end_inset
9264
9265  for a description.
9266  Must end with 
9267 \begin_inset Quotes eld
9268 \end_inset
9269
9270
9271 \begin_inset Flex Code
9272 status collapsed
9273
9274 \begin_layout Plain Layout
9275 End
9276 \end_layout
9277
9278 \end_inset
9279
9280
9281 \begin_inset Quotes erd
9282 \end_inset
9283
9284 .
9285 \end_layout
9286
9287 \begin_layout Description
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292 Columns
9293 \end_layout
9294
9295 \end_inset
9296
9297  [
9298 \begin_inset Flex Code
9299 status collapsed
9300
9301 \begin_layout Plain Layout
9302
9303 \emph on
9304 1
9305 \end_layout
9306
9307 \end_inset
9308
9309 ,
9310 \begin_inset space \thinspace{}
9311 \end_inset
9312
9313
9314 \begin_inset Flex Code
9315 status collapsed
9316
9317 \begin_layout Plain Layout
9318 2
9319 \end_layout
9320
9321 \end_inset
9322
9323 ] Whether the class should 
9324 \emph on
9325 default
9326 \emph default
9327  to having one or two columns.
9328  Can be changed in the 
9329 \begin_inset Flex Noun
9330 status collapsed
9331
9332 \begin_layout Plain Layout
9333 Document\SpecialChar menuseparator
9334 Settings
9335 \end_layout
9336
9337 \end_inset
9338
9339  dialog.
9340 \end_layout
9341
9342 \begin_layout Description
9343 \begin_inset Flex Code
9344 status collapsed
9345
9346 \begin_layout Plain Layout
9347 Counter
9348 \end_layout
9349
9350 \end_inset
9351
9352  [
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357 string
9358 \end_layout
9359
9360 \end_inset
9361
9362 ] This sequence defines the properties for a counter.
9363  If the counter does not yet exist, it is created; if it does exist, it
9364  is modified.
9365  Must end with 
9366 \begin_inset Quotes eld
9367 \end_inset
9368
9369
9370 \begin_inset Flex Code
9371 status collapsed
9372
9373 \begin_layout Plain Layout
9374 End
9375 \end_layout
9376
9377 \end_inset
9378
9379
9380 \begin_inset Quotes erd
9381 \end_inset
9382
9383 .
9384 \begin_inset Newline newline
9385 \end_inset
9386
9387 See 
9388 \begin_inset CommandInset ref
9389 LatexCommand ref
9390 reference "subsec:Counters"
9391
9392 \end_inset
9393
9394  for details on counters.
9395 \end_layout
9396
9397 \begin_layout Description
9398 \begin_inset Flex Code
9399 status collapsed
9400
9401 \begin_layout Plain Layout
9402 DefaultFont
9403 \end_layout
9404
9405 \end_inset
9406
9407  Sets the default font used to display the document.
9408  See 
9409 \begin_inset CommandInset ref
9410 LatexCommand ref
9411 reference "subsec:Font-description"
9412
9413 \end_inset
9414
9415  for how to declare fonts.
9416  Must end with 
9417 \begin_inset Quotes eld
9418 \end_inset
9419
9420
9421 \begin_inset Flex Code
9422 status collapsed
9423
9424 \begin_layout Plain Layout
9425 EndFont
9426 \end_layout
9427
9428 \end_inset
9429
9430
9431 \begin_inset Quotes erd
9432 \end_inset
9433
9434 .
9435 \end_layout
9436
9437 \begin_layout Description
9438 \begin_inset Flex Code
9439 status collapsed
9440
9441 \begin_layout Plain Layout
9442 DefaultModule
9443 \end_layout
9444
9445 \end_inset
9446
9447  [
9448 \begin_inset Flex Code
9449 status collapsed
9450
9451 \begin_layout Plain Layout
9452 <module>
9453 \end_layout
9454
9455 \end_inset
9456
9457 ] Specifies a module to be included by default with this document class.
9458  The module is specified as filename without the 
9459 \begin_inset Flex Code
9460 status collapsed
9461
9462 \begin_layout Plain Layout
9463 .module
9464 \end_layout
9465
9466 \end_inset
9467
9468  extension.
9469  The user can still remove the module, but it will be active at the outset.
9470  (This applies only when new files are created, or when this class is chosen
9471  for an existing document.)
9472 \end_layout
9473
9474 \begin_layout Description
9475 \begin_inset Flex Code
9476 status collapsed
9477
9478 \begin_layout Plain Layout
9479 DefaultStyle
9480 \end_layout
9481
9482 \end_inset
9483
9484  [
9485 \begin_inset Flex Code
9486 status collapsed
9487
9488 \begin_layout Plain Layout
9489 <style>
9490 \end_layout
9491
9492 \end_inset
9493
9494 ] This is the style that will be assigned to new paragraphs, usually 
9495 \begin_inset Flex Noun
9496 status collapsed
9497
9498 \begin_layout Plain Layout
9499 Standard
9500 \end_layout
9501
9502 \end_inset
9503
9504 .
9505  This will default to the first defined style if not given, but you are
9506  encouraged to use this directive.
9507 \end_layout
9508
9509 \begin_layout Description
9510 \begin_inset Flex Code
9511 status collapsed
9512
9513 \begin_layout Plain Layout
9514 ExcludesModule
9515 \end_layout
9516
9517 \end_inset
9518
9519  [
9520 \begin_inset Flex Code
9521 status collapsed
9522
9523 \begin_layout Plain Layout
9524 <module>
9525 \end_layout
9526
9527 \end_inset
9528
9529 ] This tag indicates that the module (which is specified by filename without
9530  the 
9531 \begin_inset Flex Code
9532 status collapsed
9533
9534 \begin_layout Plain Layout
9535 .module
9536 \end_layout
9537
9538 \end_inset
9539
9540  extension) cannot be used with this document class.
9541  This might be used in a journal-specific layout file to prevent, say, the
9542  use of the 
9543 \begin_inset Flex Code
9544 status collapsed
9545
9546 \begin_layout Plain Layout
9547 theorems-sec
9548 \end_layout
9549
9550 \end_inset
9551
9552  module that numbers theorems by section.
9553  This tag may 
9554 \emph on
9555 not
9556 \emph default
9557  be used in a module.
9558  Modules have their own way of excluding other modules (see 
9559 \begin_inset CommandInset ref
9560 LatexCommand ref
9561 reference "subsec:Layout-modules"
9562
9563 \end_inset
9564
9565 ).
9566 \end_layout
9567
9568 \begin_layout Description
9569 \begin_inset Flex Code
9570 status collapsed
9571
9572 \begin_layout Plain Layout
9573 Float
9574 \end_layout
9575
9576 \end_inset
9577
9578  Defines a new float.
9579  See 
9580 \begin_inset CommandInset ref
9581 LatexCommand ref
9582 reference "subsec:Floats"
9583
9584 \end_inset
9585
9586  for details.
9587  Must end with 
9588 \begin_inset Quotes eld
9589 \end_inset
9590
9591
9592 \begin_inset Flex Code
9593 status collapsed
9594
9595 \begin_layout Plain Layout
9596 End
9597 \end_layout
9598
9599 \end_inset
9600
9601
9602 \begin_inset Quotes erd
9603 \end_inset
9604
9605 .
9606 \end_layout
9607
9608 \begin_layout Description
9609 \begin_inset Flex Code
9610 status collapsed
9611
9612 \begin_layout Plain Layout
9613 HTMLPreamble
9614 \end_layout
9615
9616 \end_inset
9617
9618  Sets the information that will be output in the 
9619 \begin_inset Flex Code
9620 status collapsed
9621
9622 \begin_layout Plain Layout
9623 <head>
9624 \end_layout
9625
9626 \end_inset
9627
9628  block when this document class is output to XHTML.
9629  Note that this will completely override any prior 
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634 HTMLPreamble
9635 \end_layout
9636
9637 \end_inset
9638
9639  or 
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644 AddToHTMLPreamble
9645 \end_layout
9646
9647 \end_inset
9648
9649  declarations.
9650  (Use
9651 \begin_inset Newline newline
9652 \end_inset
9653
9654
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 AddToHTMLPreamble
9660 \end_layout
9661
9662 \end_inset
9663
9664  if you just want to add material to the preamble.) Must end with 
9665 \begin_inset Quotes eld
9666 \end_inset
9667
9668
9669 \begin_inset Flex Code
9670 status collapsed
9671
9672 \begin_layout Plain Layout
9673 EndPreamble
9674 \end_layout
9675
9676 \end_inset
9677
9678
9679 \begin_inset Quotes erd
9680 \end_inset
9681
9682 .
9683 \end_layout
9684
9685 \begin_layout Description
9686 \begin_inset Flex Code
9687 status collapsed
9688
9689 \begin_layout Plain Layout
9690 HTMLTOCSection
9691 \end_layout
9692
9693 \end_inset
9694
9695  [
9696 \begin_inset Flex Code
9697 status collapsed
9698
9699 \begin_layout Plain Layout
9700 <style>
9701 \end_layout
9702
9703 \end_inset
9704
9705 ] The style to use for the table of contents, bibliography, and so forth,
9706  when the document is output to HTML.
9707  For articles, this should normally be 
9708 \begin_inset Flex Code
9709 status collapsed
9710
9711 \begin_layout Plain Layout
9712 Section
9713 \end_layout
9714
9715 \end_inset
9716
9717 ; for books 
9718 \begin_inset Flex Code
9719 status collapsed
9720
9721 \begin_layout Plain Layout
9722 Chapter
9723 \end_layout
9724
9725 \end_inset
9726
9727 .
9728  If it is not given, then \SpecialChar LyX
9729  will attempt to figure out which layout to use.
9730 \end_layout
9731
9732 \begin_layout Description
9733 \begin_inset Flex Code
9734 status collapsed
9735
9736 \begin_layout Plain Layout
9737 IfCounter
9738 \end_layout
9739
9740 \end_inset
9741
9742  [
9743 \begin_inset Flex Code
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747 <counter>
9748 \end_layout
9749
9750 \end_inset
9751
9752 ] Modifies the properties of the given counter.
9753  If the counter does not exist, the statement is ignored.
9754  Must end with 
9755 \begin_inset Quotes eld
9756 \end_inset
9757
9758
9759 \begin_inset Flex Code
9760 status collapsed
9761
9762 \begin_layout Plain Layout
9763 End
9764 \end_layout
9765
9766 \end_inset
9767
9768
9769 \begin_inset Quotes erd
9770 \end_inset
9771
9772 .
9773 \begin_inset Newline newline
9774 \end_inset
9775
9776 See 
9777 \begin_inset CommandInset ref
9778 LatexCommand ref
9779 reference "subsec:Counters"
9780
9781 \end_inset
9782
9783  for details on counters.
9784 \end_layout
9785
9786 \begin_layout Description
9787 \begin_inset Flex Code
9788 status collapsed
9789
9790 \begin_layout Plain Layout
9791 Input
9792 \end_layout
9793
9794 \end_inset
9795
9796  [
9797 \begin_inset Flex Code
9798 status collapsed
9799
9800 \begin_layout Plain Layout
9801 <filename>
9802 \end_layout
9803
9804 \end_inset
9805
9806 ] This allows you to include another layout definition file within yours
9807  to avoid duplicating commands.
9808  Common examples are the standard layout files, for example, 
9809 \begin_inset Flex Code
9810 status collapsed
9811
9812 \begin_layout Plain Layout
9813 stdclass.inc
9814 \end_layout
9815
9816 \end_inset
9817
9818 , which contains most of the basic layouts.
9819 \end_layout
9820
9821 \begin_layout Description
9822 \begin_inset Flex Code
9823 status collapsed
9824
9825 \begin_layout Plain Layout
9826 InsetLayout
9827 \end_layout
9828
9829 \end_inset
9830
9831  [
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 <type>
9837 \end_layout
9838
9839 \end_inset
9840
9841 ] This section (re-)defines the layout of an inset.
9842  It can be applied to an existing inset or to a new, user-defined inset,
9843  e.g., a new character style.
9844  Must end with 
9845 \begin_inset Quotes eld
9846 \end_inset
9847
9848
9849 \begin_inset Flex Code
9850 status collapsed
9851
9852 \begin_layout Plain Layout
9853 End
9854 \end_layout
9855
9856 \end_inset
9857
9858
9859 \begin_inset Quotes erd
9860 \end_inset
9861
9862 .
9863 \begin_inset Newline newline
9864 \end_inset
9865
9866 See 
9867 \begin_inset CommandInset ref
9868 LatexCommand ref
9869 reference "subsec:Flex-insets-and"
9870
9871 \end_inset
9872
9873  for more information.
9874  
9875 \end_layout
9876
9877 \begin_layout Description
9878 \begin_inset Flex Code
9879 status collapsed
9880
9881 \begin_layout Plain Layout
9882 LeftMargin
9883 \end_layout
9884
9885 \end_inset
9886
9887  [
9888 \begin_inset Flex Code
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 string
9893 \end_layout
9894
9895 \end_inset
9896
9897 ] A string that indicates the width of the left margin on the screen, for
9898  example, 
9899 \begin_inset Quotes eld
9900 \end_inset
9901
9902
9903 \begin_inset Flex Code
9904 status collapsed
9905
9906 \begin_layout Plain Layout
9907 MMMMM
9908 \end_layout
9909
9910 \end_inset
9911
9912
9913 \begin_inset Quotes erd
9914 \end_inset
9915
9916 .
9917  (Note that this is not a `length', like 
9918 \begin_inset Quotes eld
9919 \end_inset
9920
9921 2ex
9922 \begin_inset Quotes erd
9923 \end_inset
9924
9925 .)
9926 \end_layout
9927
9928 \begin_layout Description
9929 \begin_inset Flex Code
9930 status collapsed
9931
9932 \begin_layout Plain Layout
9933 MaxCiteNames
9934 \end_layout
9935
9936 \end_inset
9937
9938  [
9939 \begin_inset Flex Code
9940 status collapsed
9941
9942 \begin_layout Plain Layout
9943 integer
9944 \end_layout
9945
9946 \end_inset
9947
9948 ] An integer that determines the maximal number of names displayed in an
9949  author-year citation before the citation switches to 
9950 \begin_inset Quotes eld
9951 \end_inset
9952
9953 FirstAuthor et al.
9954 \begin_inset Quotes erd
9955 \end_inset
9956
9957 .
9958  Primarily used in cite engine files (see 
9959 \begin_inset CommandInset ref
9960 LatexCommand ref
9961 reference "subsec:Cite-Engine-Files"
9962 plural "false"
9963 caps "false"
9964 noprefix "false"
9965
9966 \end_inset
9967
9968 ).
9969 \end_layout
9970
9971 \begin_layout Description
9972 \begin_inset Flex Code
9973 status collapsed
9974
9975 \begin_layout Plain Layout
9976 ModifyStyle
9977 \end_layout
9978
9979 \end_inset
9980
9981  [
9982 \begin_inset Flex Code
9983 status collapsed
9984
9985 \begin_layout Plain Layout
9986 <style>
9987 \end_layout
9988
9989 \end_inset
9990
9991 ] Modifies the properties of the given paragraph style.
9992  If the style does not exist, this section is ignored.
9993  Must end with 
9994 \begin_inset Quotes eld
9995 \end_inset
9996
9997
9998 \begin_inset Flex Code
9999 status collapsed
10000
10001 \begin_layout Plain Layout
10002 End
10003 \end_layout
10004
10005 \end_inset
10006
10007
10008 \begin_inset Quotes erd
10009 \end_inset
10010
10011 .
10012 \end_layout
10013
10014 \begin_layout Description
10015 \begin_inset Flex Code
10016 status collapsed
10017
10018 \begin_layout Plain Layout
10019 NoCounter
10020 \end_layout
10021
10022 \end_inset
10023
10024  [
10025 \begin_inset Flex Code
10026 status collapsed
10027
10028 \begin_layout Plain Layout
10029 <counter>
10030 \end_layout
10031
10032 \end_inset
10033
10034 ] Deletes an existing counter, usually one defined in an included file.
10035 \end_layout
10036
10037 \begin_layout Description
10038 \begin_inset Flex Code
10039 status collapsed
10040
10041 \begin_layout Plain Layout
10042 NoFloat
10043 \end_layout
10044
10045 \end_inset
10046
10047  [
10048 \begin_inset Flex Code
10049 status collapsed
10050
10051 \begin_layout Plain Layout
10052 <float>
10053 \end_layout
10054
10055 \end_inset
10056
10057 ] Deletes an existing float.
10058  This is particularly useful when you want to suppress a float that has
10059  been defined in an input file.
10060 \end_layout
10061
10062 \begin_layout Description
10063 \begin_inset Flex Code
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067 NoStyle
10068 \end_layout
10069
10070 \end_inset
10071
10072  [
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 <style>
10078 \end_layout
10079
10080 \end_inset
10081
10082 ] Deletes an existing style.
10083 \end_layout
10084
10085 \begin_layout Description
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 OutlinerName
10091 \end_layout
10092
10093 \end_inset
10094
10095  [
10096 \begin_inset Flex Code
10097 status collapsed
10098
10099 \begin_layout Plain Layout
10100 <type>
10101 \end_layout
10102
10103 \end_inset
10104
10105 ] [
10106 \begin_inset Flex Code
10107 status collapsed
10108
10109 \begin_layout Plain Layout
10110 <string>
10111 \end_layout
10112
10113 \end_inset
10114
10115 ] Define a new table of contents with type 
10116 \begin_inset Flex Code
10117 status collapsed
10118
10119 \begin_layout Plain Layout
10120 <type>
10121 \end_layout
10122
10123 \end_inset
10124
10125  and name 
10126 \begin_inset Flex Code
10127 status collapsed
10128
10129 \begin_layout Plain Layout
10130 <string>
10131 \end_layout
10132
10133 \end_inset
10134
10135 .
10136  See also the AddToToc commands.
10137 \end_layout
10138
10139 \begin_layout Description
10140 \begin_inset Flex Code
10141 status collapsed
10142
10143 \begin_layout Plain Layout
10144 OutputFormat
10145 \end_layout
10146
10147 \end_inset
10148
10149  [
10150 \begin_inset Flex Code
10151 status collapsed
10152
10153 \begin_layout Plain Layout
10154 <format>
10155 \end_layout
10156
10157 \end_inset
10158
10159 ] The file format (as defined in the \SpecialChar LyX
10160  preferences) produced by this document
10161  class.
10162  It is mainly useful when 
10163 \begin_inset Flex Code
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167 OutputType
10168 \end_layout
10169
10170 \end_inset
10171
10172  is 
10173 \begin_inset Flex Code
10174 status collapsed
10175
10176 \begin_layout Plain Layout
10177 literate
10178 \end_layout
10179
10180 \end_inset
10181
10182  and one wants to define a new type of literate document.
10183  The format is reset to 
10184 \begin_inset Quotes eld
10185 \end_inset
10186
10187
10188 \begin_inset Flex Code
10189 status collapsed
10190
10191 \begin_layout Plain Layout
10192 docbook
10193 \end_layout
10194
10195 \end_inset
10196
10197
10198 \begin_inset Quotes erd
10199 \end_inset
10200
10201  or 
10202 \begin_inset Quotes eld
10203 \end_inset
10204
10205
10206 \begin_inset Flex Code
10207 status collapsed
10208
10209 \begin_layout Plain Layout
10210 latex
10211 \end_layout
10212
10213 \end_inset
10214
10215
10216 \begin_inset Quotes erd
10217 \end_inset
10218
10219  when the corresponding 
10220 \begin_inset Flex Code
10221 status collapsed
10222
10223 \begin_layout Plain Layout
10224 OutputType
10225 \end_layout
10226
10227 \end_inset
10228
10229  parameter is encountered.
10230 \end_layout
10231
10232 \begin_layout Description
10233 \begin_inset Flex Code
10234 status collapsed
10235
10236 \begin_layout Plain Layout
10237 OutputType
10238 \end_layout
10239
10240 \end_inset
10241
10242  [
10243 \begin_inset Flex Code
10244 status collapsed
10245
10246 \begin_layout Plain Layout
10247
10248 \emph on
10249 lat
10250 \emph default
10251 ex
10252 \end_layout
10253
10254 \end_inset
10255
10256
10257 \begin_inset Flex Code
10258 status collapsed
10259
10260 \begin_layout Plain Layout
10261 docbook
10262 \end_layout
10263
10264 \end_inset
10265
10266
10267 \begin_inset Flex Code
10268 status collapsed
10269
10270 \begin_layout Plain Layout
10271 literate
10272 \end_layout
10273
10274 \end_inset
10275
10276 ] Specifies what sort of output documents using this class will produce.
10277 \end_layout
10278
10279 \begin_layout Description
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 PackageOptions
10285 \end_layout
10286
10287 \end_inset
10288
10289  [
10290 \begin_inset Flex Code
10291 status collapsed
10292
10293 \begin_layout Plain Layout
10294 string
10295 \end_layout
10296
10297 \end_inset
10298
10299  
10300 \begin_inset Flex Code
10301 status collapsed
10302
10303 \begin_layout Plain Layout
10304 string
10305 \end_layout
10306
10307 \end_inset
10308
10309 ] Specifies options, given in the second string, for the package named by
10310  the first string.
10311  For example, 
10312 \begin_inset Quotes eld
10313 \end_inset
10314
10315
10316 \begin_inset Flex Code
10317 status collapsed
10318
10319 \begin_layout Plain Layout
10320 PackageOptions natbib square
10321 \end_layout
10322
10323 \end_inset
10324
10325
10326 \begin_inset Quotes erd
10327 \end_inset
10328
10329  will cause 
10330 \begin_inset Flex Code
10331 status collapsed
10332
10333 \begin_layout Plain Layout
10334 natbib
10335 \end_layout
10336
10337 \end_inset
10338
10339  to be loaded with the 
10340 \begin_inset Flex Code
10341 status collapsed
10342
10343 \begin_layout Plain Layout
10344 square
10345 \end_layout
10346
10347 \end_inset
10348
10349  option.
10350  (For \SpecialChar TeX
10351 perts, this causes \SpecialChar LyX
10352  to output: 
10353 \begin_inset Flex Code
10354 status collapsed
10355
10356 \begin_layout Plain Layout
10357
10358 \backslash
10359 PassOptionsToPackage{natbib}{square}
10360 \end_layout
10361
10362 \end_inset
10363
10364  prior to loading 
10365 \begin_inset Flex Code
10366 status collapsed
10367
10368 \begin_layout Plain Layout
10369 natbib
10370 \end_layout
10371
10372 \end_inset
10373
10374 .)
10375 \end_layout
10376
10377 \begin_layout Description
10378 \begin_inset Flex Code
10379 status collapsed
10380
10381 \begin_layout Plain Layout
10382 PageStyle
10383 \end_layout
10384
10385 \end_inset
10386
10387  [
10388 \begin_inset Flex Code
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392
10393 \emph on
10394 plain
10395 \end_layout
10396
10397 \end_inset
10398
10399
10400 \begin_inset Flex Code
10401 status collapsed
10402
10403 \begin_layout Plain Layout
10404 empty
10405 \end_layout
10406
10407 \end_inset
10408
10409
10410 \begin_inset Flex Code
10411 status collapsed
10412
10413 \begin_layout Plain Layout
10414 headings
10415 \end_layout
10416
10417 \end_inset
10418
10419 ] The default pagestyle.
10420  Can be changed in the 
10421 \begin_inset Flex Noun
10422 status collapsed
10423
10424 \begin_layout Plain Layout
10425 Document\SpecialChar menuseparator
10426 Settings
10427 \end_layout
10428
10429 \end_inset
10430
10431  dialog.
10432 \end_layout
10433
10434 \begin_layout Description
10435 \begin_inset Flex Code
10436 status collapsed
10437
10438 \begin_layout Plain Layout
10439 Preamble
10440 \end_layout
10441
10442 \end_inset
10443
10444  Sets the preamble for the \SpecialChar LaTeX
10445  document.
10446  Note that this will completely override any prior 
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 Preamble
10452 \end_layout
10453
10454 \end_inset
10455
10456  or 
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 AddToPreamble
10462 \end_layout
10463
10464 \end_inset
10465
10466  declarations.
10467  (Use 
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 AddToPreamble
10473 \end_layout
10474
10475 \end_inset
10476
10477  if you just want to add material to the preamble.) Must end with 
10478 \begin_inset Quotes eld
10479 \end_inset
10480
10481
10482 \begin_inset Flex Code
10483 status collapsed
10484
10485 \begin_layout Plain Layout
10486 EndPreamble
10487 \end_layout
10488
10489 \end_inset
10490
10491
10492 \begin_inset Quotes erd
10493 \end_inset
10494
10495 .
10496 \end_layout
10497
10498 \begin_layout Description
10499 \begin_inset Flex Code
10500 status collapsed
10501
10502 \begin_layout Plain Layout
10503 Provides
10504 \end_layout
10505
10506 \end_inset
10507
10508  [
10509 \begin_inset Flex Code
10510 status collapsed
10511
10512 \begin_layout Plain Layout
10513 string
10514 \end_layout
10515
10516 \end_inset
10517
10518 ] [
10519 \begin_inset Flex Code
10520 status collapsed
10521
10522 \begin_layout Plain Layout
10523
10524 \emph on
10525 0
10526 \end_layout
10527
10528 \end_inset
10529
10530 ,
10531 \begin_inset space \thinspace{}
10532 \end_inset
10533
10534
10535 \begin_inset Flex Code
10536 status collapsed
10537
10538 \begin_layout Plain Layout
10539 1
10540 \end_layout
10541
10542 \end_inset
10543
10544 ] Whether the class already provides the feature 
10545 \begin_inset Flex Code
10546 status collapsed
10547
10548 \begin_layout Plain Layout
10549 string
10550 \end_layout
10551
10552 \end_inset
10553
10554 .
10555  A feature is in general the name of a package (e.
10556 \begin_inset space \thinspace{}
10557 \end_inset
10558
10559 g.
10560 \begin_inset space \space{}
10561 \end_inset
10562
10563
10564 \begin_inset Flex Code
10565 status collapsed
10566
10567 \begin_layout Plain Layout
10568 amsmath
10569 \end_layout
10570
10571 \end_inset
10572
10573  or 
10574 \begin_inset Flex Code
10575 status collapsed
10576
10577 \begin_layout Plain Layout
10578 makeidx
10579 \end_layout
10580
10581 \end_inset
10582
10583 ) or a macro (e.
10584 \begin_inset space \thinspace{}
10585 \end_inset
10586
10587 g.
10588 \begin_inset space \space{}
10589 \end_inset
10590
10591
10592 \begin_inset Flex Code
10593 status collapsed
10594
10595 \begin_layout Plain Layout
10596 url
10597 \end_layout
10598
10599 \end_inset
10600
10601  or 
10602 \begin_inset Flex Code
10603 status collapsed
10604
10605 \begin_layout Plain Layout
10606 boldsymbol
10607 \end_layout
10608
10609 \end_inset
10610
10611 ).
10612  See 
10613 \begin_inset CommandInset ref
10614 LatexCommand ref
10615 reference "chap:List-of-functions"
10616
10617 \end_inset
10618
10619  for the list of features.
10620 \end_layout
10621
10622 \begin_layout Description
10623 \begin_inset Flex Code
10624 status collapsed
10625
10626 \begin_layout Plain Layout
10627 ProvidesModule
10628 \end_layout
10629
10630 \end_inset
10631
10632  [
10633 \begin_inset Flex Code
10634 status collapsed
10635
10636 \begin_layout Plain Layout
10637 string
10638 \end_layout
10639
10640 \end_inset
10641
10642 ] Indicates that this layout provides the functionality of the module mentioned,
10643  which should be specified by the filename without the 
10644 \begin_inset Flex Code
10645 status collapsed
10646
10647 \begin_layout Plain Layout
10648 .module
10649 \end_layout
10650
10651 \end_inset
10652
10653  extension.
10654  This will typically be used if the layout includes the module directly,
10655  rather than using the 
10656 \begin_inset Flex Code
10657 status collapsed
10658
10659 \begin_layout Plain Layout
10660 DefaultModule
10661 \end_layout
10662
10663 \end_inset
10664
10665  tag to indicate that it ought to be used.
10666  It could also be used in a module that provided an alternate implementation
10667  of the same functionality.
10668 \end_layout
10669
10670 \begin_layout Description
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 ProvideStyle
10676 \end_layout
10677
10678 \end_inset
10679
10680  [
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 <style>
10686 \end_layout
10687
10688 \end_inset
10689
10690 ] Creates a new paragraph style if it does not already exist.
10691  If the style does exist, this section is ignored.
10692  Must end with 
10693 \begin_inset Quotes eld
10694 \end_inset
10695
10696
10697 \begin_inset Flex Code
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701 End
10702 \end_layout
10703
10704 \end_inset
10705
10706
10707 \begin_inset Quotes erd
10708 \end_inset
10709
10710 .
10711 \end_layout
10712
10713 \begin_layout Description
10714 \begin_inset Flex Code
10715 status collapsed
10716
10717 \begin_layout Plain Layout
10718 Requires
10719 \end_layout
10720
10721 \end_inset
10722
10723  [
10724 \begin_inset Flex Code
10725 status collapsed
10726
10727 \begin_layout Plain Layout
10728 string
10729 \end_layout
10730
10731 \end_inset
10732
10733 ] Whether the class requires the feature 
10734 \begin_inset Flex Code
10735 status collapsed
10736
10737 \begin_layout Plain Layout
10738 string
10739 \end_layout
10740
10741 \end_inset
10742
10743 .
10744  Multiple features must be separated by commas.
10745  Note that you can only request supported features.
10746  (See 
10747 \begin_inset CommandInset ref
10748 LatexCommand ref
10749 reference "chap:List-of-functions"
10750
10751 \end_inset
10752
10753  for the list of features.).
10754  If you require a package with specific options, you can additionally use
10755  
10756 \begin_inset Flex Code
10757 status collapsed
10758
10759 \begin_layout Plain Layout
10760 PackageOptions
10761 \end_layout
10762
10763 \end_inset
10764
10765 .
10766 \end_layout
10767
10768 \begin_layout Description
10769 \begin_inset Flex Code
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773 RightMargin
10774 \end_layout
10775
10776 \end_inset
10777
10778  [
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 string
10784 \end_layout
10785
10786 \end_inset
10787
10788 ] A string that indicates the width of the right margin on the screen, for
10789  example, 
10790 \begin_inset Quotes eld
10791 \end_inset
10792
10793
10794 \begin_inset Flex Code
10795 status collapsed
10796
10797 \begin_layout Plain Layout
10798 MMMMM
10799 \end_layout
10800
10801 \end_inset
10802
10803
10804 \begin_inset Quotes erd
10805 \end_inset
10806
10807 .
10808 \end_layout
10809
10810 \begin_layout Description
10811 \begin_inset Flex Code
10812 status collapsed
10813
10814 \begin_layout Plain Layout
10815 SecNumDepth
10816 \end_layout
10817
10818 \end_inset
10819
10820  [
10821 \begin_inset Flex Code
10822 status collapsed
10823
10824 \begin_layout Plain Layout
10825 int=3
10826 \end_layout
10827
10828 \end_inset
10829
10830 ] Sets which divisions get numbered.
10831  Corresponds to the
10832 \begin_inset Newline newline
10833 \end_inset
10834
10835
10836 \begin_inset Flex Code
10837 status collapsed
10838
10839 \begin_layout Plain Layout
10840 secnumdepth
10841 \end_layout
10842
10843 \end_inset
10844
10845  counter in \SpecialChar LaTeX
10846 .
10847 \end_layout
10848
10849 \begin_layout Description
10850 \begin_inset Flex Code
10851 status collapsed
10852
10853 \begin_layout Plain Layout
10854 Sides
10855 \end_layout
10856
10857 \end_inset
10858
10859  [
10860 \begin_inset Flex Code
10861 status collapsed
10862
10863 \begin_layout Plain Layout
10864
10865 \emph on
10866 1
10867 \end_layout
10868
10869 \end_inset
10870
10871 ,
10872 \begin_inset space \thinspace{}
10873 \end_inset
10874
10875
10876 \begin_inset Flex Code
10877 status collapsed
10878
10879 \begin_layout Plain Layout
10880 2
10881 \end_layout
10882
10883 \end_inset
10884
10885 ] Whether the class-default should be printing on one or both sides of the
10886  paper.
10887  Can be changed in the 
10888 \begin_inset Flex Noun
10889 status collapsed
10890
10891 \begin_layout Plain Layout
10892 Document\SpecialChar menuseparator
10893 Settings
10894 \end_layout
10895
10896 \end_inset
10897
10898  dialog.
10899 \end_layout
10900
10901 \begin_layout Description
10902 \begin_inset Flex Code
10903 status collapsed
10904
10905 \begin_layout Plain Layout
10906 Style
10907 \end_layout
10908
10909 \end_inset
10910
10911  [
10912 \begin_inset Flex Code
10913 status collapsed
10914
10915 \begin_layout Plain Layout
10916 <name>
10917 \end_layout
10918
10919 \end_inset
10920
10921 ] This sequence defines a paragraph style.
10922  If the style does not yet exist, it is created; if it does exist, its parameter
10923 s are modified.
10924  Must end with 
10925 \begin_inset Quotes eld
10926 \end_inset
10927
10928
10929 \begin_inset Flex Code
10930 status collapsed
10931
10932 \begin_layout Plain Layout
10933 End
10934 \end_layout
10935
10936 \end_inset
10937
10938
10939 \begin_inset Quotes erd
10940 \end_inset
10941
10942 .
10943 \begin_inset Newline newline
10944 \end_inset
10945
10946 See 
10947 \begin_inset CommandInset ref
10948 LatexCommand ref
10949 reference "subsec:Paragraph-Styles"
10950
10951 \end_inset
10952
10953  for details on paragraph styles.
10954 \end_layout
10955
10956 \begin_layout Description
10957 \begin_inset Flex Code
10958 status collapsed
10959
10960 \begin_layout Plain Layout
10961 TitleLatexName
10962 \end_layout
10963
10964 \end_inset
10965
10966  [
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 string="maketitle"
10972 \end_layout
10973
10974 \end_inset
10975
10976 ] The name of the command or environment to be used with 
10977 \begin_inset Flex Code
10978 status collapsed
10979
10980 \begin_layout Plain Layout
10981 TitleLatexType
10982 \end_layout
10983
10984 \end_inset
10985
10986 .
10987 \end_layout
10988
10989 \begin_layout Description
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994 TitleLatexType
10995 \end_layout
10996
10997 \end_inset
10998
10999  [
11000 \begin_inset Flex Code
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004
11005 \emph on
11006 CommandAfter
11007 \end_layout
11008
11009 \end_inset
11010
11011
11012 \begin_inset Flex Code
11013 status collapsed
11014
11015 \begin_layout Plain Layout
11016 Environment
11017 \end_layout
11018
11019 \end_inset
11020
11021 ] Indicates what kind of markup is used to define the title of a document.
11022  
11023 \begin_inset Flex Code
11024 status collapsed
11025
11026 \begin_layout Plain Layout
11027 CommandAfter
11028 \end_layout
11029
11030 \end_inset
11031
11032  means that the macro with name 
11033 \begin_inset Flex Code
11034 status collapsed
11035
11036 \begin_layout Plain Layout
11037 TitleLatexName
11038 \end_layout
11039
11040 \end_inset
11041
11042  will be inserted after the last layout which has 
11043 \begin_inset Quotes eld
11044 \end_inset
11045
11046
11047 \begin_inset Flex Code
11048 status collapsed
11049
11050 \begin_layout Plain Layout
11051 InTitle
11052 \begin_inset space ~
11053 \end_inset
11054
11055 1
11056 \end_layout
11057
11058 \end_inset
11059
11060
11061 \begin_inset Quotes erd
11062 \end_inset
11063
11064 .
11065  
11066 \begin_inset Flex Code
11067 status collapsed
11068
11069 \begin_layout Plain Layout
11070 Environment
11071 \end_layout
11072
11073 \end_inset
11074
11075  corresponds to the case where all layouts which have 
11076 \begin_inset Quotes eld
11077 \end_inset
11078
11079
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084 InTitle
11085 \begin_inset space ~
11086 \end_inset
11087
11088 1
11089 \end_layout
11090
11091 \end_inset
11092
11093
11094 \begin_inset Quotes erd
11095 \end_inset
11096
11097  should be enclosed into the 
11098 \begin_inset Flex Code
11099 status collapsed
11100
11101 \begin_layout Plain Layout
11102 TitleLatexName
11103 \end_layout
11104
11105 \end_inset
11106
11107  environment.
11108 \end_layout
11109
11110 \begin_layout Description
11111 \begin_inset Flex Code
11112 status collapsed
11113
11114 \begin_layout Plain Layout
11115 TocDepth
11116 \end_layout
11117
11118 \end_inset
11119
11120  [
11121 \begin_inset Flex Code
11122 status collapsed
11123
11124 \begin_layout Plain Layout
11125 int=3
11126 \end_layout
11127
11128 \end_inset
11129
11130 ] Sets which divisions are included in the table of contents.
11131  Corresponds to the 
11132 \begin_inset Flex Code
11133 status collapsed
11134
11135 \begin_layout Plain Layout
11136 tocdepth
11137 \end_layout
11138
11139 \end_inset
11140
11141  counter in \SpecialChar LaTeX
11142 .
11143 \end_layout
11144
11145 \begin_layout Subsection
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 ClassOptions
11151 \end_layout
11152
11153 \end_inset
11154
11155  section
11156 \begin_inset CommandInset label
11157 LatexCommand label
11158 name "subsec:ClassOptions"
11159
11160 \end_inset
11161
11162
11163 \end_layout
11164
11165 \begin_layout Standard
11166 The 
11167 \begin_inset Flex Code
11168 status collapsed
11169
11170 \begin_layout Plain Layout
11171 ClassOptions
11172 \end_layout
11173
11174 \end_inset
11175
11176  section can contain the following entries:
11177 \end_layout
11178
11179 \begin_layout Description
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 FontSize
11185 \end_layout
11186
11187 \end_inset
11188
11189  [
11190 \begin_inset Flex Code
11191 status collapsed
11192
11193 \begin_layout Plain Layout
11194 string="10|11|12"
11195 \end_layout
11196
11197 \end_inset
11198
11199 ] The list of available font sizes for the document's main font, separated
11200  by 
11201 \begin_inset Quotes eld
11202 \end_inset
11203
11204
11205 \begin_inset Flex Code
11206 status collapsed
11207
11208 \begin_layout Plain Layout
11209 |
11210 \end_layout
11211
11212 \end_inset
11213
11214
11215 \begin_inset Quotes erd
11216 \end_inset
11217
11218 .
11219 \end_layout
11220
11221 \begin_layout Description
11222 \begin_inset Flex Code
11223 status collapsed
11224
11225 \begin_layout Plain Layout
11226 Header
11227 \end_layout
11228
11229 \end_inset
11230
11231  Used to set the DTD line with XML-based output classes.
11232  E.
11233 \begin_inset space \thinspace{}
11234 \end_inset
11235
11236 g.: PUBLIC 
11237 \begin_inset Quotes eld
11238 \end_inset
11239
11240 -//OASIS//DTD DocBook V4.2//EN
11241 \begin_inset Quotes erd
11242 \end_inset
11243
11244 .
11245 \end_layout
11246
11247 \begin_layout Description
11248 \begin_inset Flex Code
11249 status collapsed
11250
11251 \begin_layout Plain Layout
11252 PageStyle
11253 \end_layout
11254
11255 \end_inset
11256
11257  [
11258 \begin_inset Flex Code
11259 status collapsed
11260
11261 \begin_layout Plain Layout
11262 string="empty|plain|headings|fancy"
11263 \end_layout
11264
11265 \end_inset
11266
11267 ] The list of available page sty\SpecialChar softhyphen
11268 les, separated by 
11269 \begin_inset Quotes eld
11270 \end_inset
11271
11272
11273 \begin_inset Flex Code
11274 status collapsed
11275
11276 \begin_layout Plain Layout
11277 |
11278 \end_layout
11279
11280 \end_inset
11281
11282
11283 \begin_inset Quotes erd
11284 \end_inset
11285
11286 .
11287 \end_layout
11288
11289 \begin_layout Description
11290 \begin_inset Flex Code
11291 status collapsed
11292
11293 \begin_layout Plain Layout
11294 Other
11295 \end_layout
11296
11297 \end_inset
11298
11299  [
11300 \begin_inset Flex Code
11301 status collapsed
11302
11303 \begin_layout Plain Layout
11304 string=""
11305 \end_layout
11306
11307 \end_inset
11308
11309 ] Some document class options, separated by a comma, that will be added
11310  to the optional part of the 
11311 \begin_inset Flex Code
11312 status collapsed
11313
11314 \begin_layout Plain Layout
11315
11316 \backslash
11317 documentclass
11318 \end_layout
11319
11320 \end_inset
11321
11322  command.
11323 \end_layout
11324
11325 \begin_layout Standard
11326 The 
11327 \begin_inset Flex Code
11328 status collapsed
11329
11330 \begin_layout Plain Layout
11331 ClassOptions
11332 \end_layout
11333
11334 \end_inset
11335
11336  section must end with 
11337 \begin_inset Quotes eld
11338 \end_inset
11339
11340
11341 \begin_inset Flex Code
11342 status collapsed
11343
11344 \begin_layout Plain Layout
11345 End
11346 \end_layout
11347
11348 \end_inset
11349
11350
11351 \begin_inset Quotes erd
11352 \end_inset
11353
11354 .
11355 \end_layout
11356
11357 \begin_layout Subsection
11358 Paragraph styles
11359 \begin_inset CommandInset label
11360 LatexCommand label
11361 name "subsec:Paragraph-Styles"
11362
11363 \end_inset
11364
11365
11366 \end_layout
11367
11368 \begin_layout Standard
11369 A paragraph style description looks like this:
11370 \begin_inset Foot
11371 status collapsed
11372
11373 \begin_layout Plain Layout
11374 Note that this will either define a new style or modify an existing one.
11375 \end_layout
11376
11377 \end_inset
11378
11379
11380 \end_layout
11381
11382 \begin_layout LyX-Code
11383 Style 
11384 \family roman
11385 \emph on
11386 name
11387 \end_layout
11388
11389 \begin_layout LyX-Code
11390  ...
11391 \end_layout
11392
11393 \begin_layout LyX-Code
11394 End
11395 \end_layout
11396
11397 \begin_layout Standard
11398 where the following commands are allowed:
11399 \end_layout
11400
11401 \begin_layout Description
11402 \begin_inset Flex Code
11403 status collapsed
11404
11405 \begin_layout Plain Layout
11406 AddToToc
11407 \end_layout
11408
11409 \end_inset
11410
11411  [
11412 \begin_inset Flex Code
11413 status collapsed
11414
11415 \begin_layout Plain Layout
11416 string
11417 \end_layout
11418
11419 \end_inset
11420
11421 =""] This paragraph will appear in the table of contents of the given type.
11422  An empty string disables.
11423  See also the OutlinerName and the IsTocCaption commands.
11424  Default: disabled.
11425 \end_layout
11426
11427 \begin_layout Description
11428 \begin_inset Flex Code
11429 status collapsed
11430
11431 \begin_layout Plain Layout
11432 Align
11433 \end_layout
11434
11435 \end_inset
11436
11437  [
11438 \begin_inset Flex Code
11439 status collapsed
11440
11441 \begin_layout Plain Layout
11442
11443 \emph on
11444 block
11445 \emph default
11446 , left, right, center
11447 \end_layout
11448
11449 \end_inset
11450
11451 ] Paragraph alignment.
11452 \end_layout
11453
11454 \begin_layout Description
11455 \begin_inset Flex Code
11456 status collapsed
11457
11458 \begin_layout Plain Layout
11459 AlignPossible
11460 \end_layout
11461
11462 \end_inset
11463
11464  [
11465 \begin_inset Flex Code
11466 status collapsed
11467
11468 \begin_layout Plain Layout
11469
11470 \emph on
11471 block
11472 \emph default
11473 , left, right, center
11474 \end_layout
11475
11476 \end_inset
11477
11478 ] A comma separated list of permitted alignments.
11479  (Some \SpecialChar LaTeX
11480  styles prohibit certain alignments, since those wouldn't make sense.
11481  For example a right-aligned or centered enumeration isn't possible.)
11482 \end_layout
11483
11484 \begin_layout Description
11485 \begin_inset Flex Code
11486 status collapsed
11487
11488 \begin_layout Plain Layout
11489 Argument
11490 \end_layout
11491
11492 \end_inset
11493
11494  [
11495 \begin_inset Flex Code
11496 status collapsed
11497
11498 \begin_layout Plain Layout
11499 int
11500 \end_layout
11501
11502 \end_inset
11503
11504 ] Defines argument number <int> of a command\SpecialChar breakableslash
11505 environment associated with
11506  the current style.
11507  This is useful for things like section headings, and only makes sense with
11508  \SpecialChar LaTeX
11509 .
11510  Every (optional or required) argument of a command or environment – except
11511  for the required argument that is associated with the content of the paragraph
11512  itself – has a separate definition, where the number specifies the order
11513  of the arguments.
11514  The definition must end with 
11515 \begin_inset Flex Code
11516 status collapsed
11517
11518 \begin_layout Plain Layout
11519 EndArgument
11520 \end_layout
11521
11522 \end_inset
11523
11524 .
11525  So a command with two optional arguments has:
11526 \end_layout
11527
11528 \begin_deeper
11529 \begin_layout Quote
11530
11531 \family typewriter
11532 Argument 1
11533 \end_layout
11534
11535 \begin_layout Quote
11536
11537 \family typewriter
11538 ...
11539 \end_layout
11540
11541 \begin_layout Quote
11542
11543 \family typewriter
11544 EndArgument
11545 \end_layout
11546
11547 \begin_layout Quote
11548
11549 \family typewriter
11550 Argument 2
11551 \end_layout
11552
11553 \begin_layout Quote
11554
11555 \family typewriter
11556 ...
11557 \end_layout
11558
11559 \begin_layout Quote
11560
11561 \family typewriter
11562 EndArgument
11563 \end_layout
11564
11565 \begin_layout Standard
11566 Inside the 
11567 \begin_inset Flex Code
11568 status collapsed
11569
11570 \begin_layout Plain Layout
11571 Argument
11572 \end_layout
11573
11574 \end_inset
11575
11576  definition, the following specifications are possible:
11577 \end_layout
11578
11579 \begin_layout Itemize
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584 LabelString
11585 \end_layout
11586
11587 \end_inset
11588
11589  
11590 \begin_inset Flex Code
11591 status collapsed
11592
11593 \begin_layout Plain Layout
11594 [string]
11595 \end_layout
11596
11597 \end_inset
11598
11599  The string that will appear both in the menu (to insert this argument)
11600  and on the argument inset button (unless you also specify a separate 
11601 \begin_inset Flex Code
11602 status collapsed
11603
11604 \begin_layout Plain Layout
11605 MenuString
11606 \end_layout
11607
11608 \end_inset
11609
11610 ).
11611  For the menu, you can define an accelerator by appending the respective
11612  character to the string, divided by 
11613 \begin_inset Quotes eld
11614 \end_inset
11615
11616 |
11617 \begin_inset Quotes erd
11618 \end_inset
11619
11620  (e.
11621 \begin_inset space \thinspace{}
11622 \end_inset
11623
11624 g.
11625 \begin_inset space \space{}
11626 \end_inset
11627
11628
11629 \begin_inset Quotes eld
11630 \end_inset
11631
11632
11633 \begin_inset Flex Code
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637 Short Title|S
11638 \end_layout
11639
11640 \end_inset
11641
11642
11643 \begin_inset Quotes erd
11644 \end_inset
11645
11646 ).
11647 \end_layout
11648
11649 \begin_layout Itemize
11650 \begin_inset Flex Code
11651 status collapsed
11652
11653 \begin_layout Plain Layout
11654 MenuString
11655 \end_layout
11656
11657 \end_inset
11658
11659  
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664 [string]
11665 \end_layout
11666
11667 \end_inset
11668
11669  A separate string for the menu.
11670  You can define an accelerator by appending the respective character to
11671  the string, divided by 
11672 \begin_inset Quotes eld
11673 \end_inset
11674
11675 |
11676 \begin_inset Quotes erd
11677 \end_inset
11678
11679  (e.
11680 \begin_inset space \thinspace{}
11681 \end_inset
11682
11683 g.
11684 \begin_inset space \space{}
11685 \end_inset
11686
11687
11688 \begin_inset Quotes eld
11689 \end_inset
11690
11691
11692 \begin_inset Flex Code
11693 status collapsed
11694
11695 \begin_layout Plain Layout
11696 Short Title|S
11697 \end_layout
11698
11699 \end_inset
11700
11701
11702 \begin_inset Quotes erd
11703 \end_inset
11704
11705 ).
11706  This specification is optional.
11707  If it is not given the 
11708 \begin_inset Flex Code
11709 status collapsed
11710
11711 \begin_layout Plain Layout
11712 LabelString
11713 \end_layout
11714
11715 \end_inset
11716
11717  will be used instead for the menu.
11718 \end_layout
11719
11720 \begin_layout Itemize
11721 \begin_inset Flex Code
11722 status collapsed
11723
11724 \begin_layout Plain Layout
11725 Tooltip
11726 \end_layout
11727
11728 \end_inset
11729
11730  
11731 \begin_inset Flex Code
11732 status collapsed
11733
11734 \begin_layout Plain Layout
11735 [string]
11736 \end_layout
11737
11738 \end_inset
11739
11740  A longer explanatory text that appears in the tooltip when hovering over
11741  the argument inset.
11742 \end_layout
11743
11744 \begin_layout Itemize
11745 \begin_inset Flex Code
11746 status collapsed
11747
11748 \begin_layout Plain Layout
11749 Mandatory
11750 \end_layout
11751
11752 \end_inset
11753
11754  [
11755 \begin_inset Flex Code
11756 status collapsed
11757
11758 \begin_layout Plain Layout
11759
11760 \emph on
11761 0
11762 \end_layout
11763
11764 \end_inset
11765
11766 ,
11767 \begin_inset space \thinspace{}
11768 \end_inset
11769
11770
11771 \begin_inset Flex Code
11772 status collapsed
11773
11774 \begin_layout Plain Layout
11775 1
11776 \end_layout
11777
11778 \end_inset
11779
11780 ] Declare if this is a mandatory (1) or an optional (0) argument.
11781  Mandatory arguments will be output empty if not given, while optional arguments
11782  will not be output at all.
11783  By default, mandatory arguments are delimited by 
11784 \begin_inset Flex Code
11785 status collapsed
11786
11787 \begin_layout Plain Layout
11788 {...}
11789 \end_layout
11790
11791 \end_inset
11792
11793 , while optional arguments are delimited by 
11794 \begin_inset Flex Code
11795 status collapsed
11796
11797 \begin_layout Plain Layout
11798 [...]
11799 \end_layout
11800
11801 \end_inset
11802
11803
11804 \end_layout
11805
11806 \begin_layout Itemize
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 Requires
11812 \end_layout
11813
11814 \end_inset
11815
11816  
11817 \begin_inset Flex Code
11818 status collapsed
11819
11820 \begin_layout Plain Layout
11821 [int=0]
11822 \end_layout
11823
11824 \end_inset
11825
11826  defines another argument (by its number) which this argument requires to
11827  be output if it is itself output.
11828  E.
11829 \begin_inset space \thinspace{}
11830 \end_inset
11831
11832 g., in \SpecialChar LaTeX
11833  commands, optional arguments often require previous optional arguments
11834  to be output (at least empty), as in 
11835 \begin_inset Flex Code
11836 status collapsed
11837
11838 \begin_layout Plain Layout
11839
11840 \backslash
11841 command[][argument]{text}
11842 \end_layout
11843
11844 \end_inset
11845
11846 .
11847  This can be achieved by the statement 
11848 \begin_inset Flex Code
11849 status collapsed
11850
11851 \begin_layout Plain Layout
11852 Requires 1
11853 \end_layout
11854
11855 \end_inset
11856
11857  within 
11858 \begin_inset Flex Code
11859 status collapsed
11860
11861 \begin_layout Plain Layout
11862 Argument 2
11863 \end_layout
11864
11865 \end_inset
11866
11867 .
11868 \end_layout
11869
11870 \begin_layout Itemize
11871 \begin_inset Flex Code
11872 status collapsed
11873
11874 \begin_layout Plain Layout
11875 LeftDelim
11876 \end_layout
11877
11878 \end_inset
11879
11880  
11881 \begin_inset Flex Code
11882 status collapsed
11883
11884 \begin_layout Plain Layout
11885 [string]
11886 \end_layout
11887
11888 \end_inset
11889
11890  defines a custom left delimiter (instead of 
11891 \begin_inset Flex Code
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895 {
11896 \end_layout
11897
11898 \end_inset
11899
11900  or 
11901 \begin_inset Flex Code
11902 status collapsed
11903
11904 \begin_layout Plain Layout
11905 [
11906 \end_layout
11907
11908 \end_inset
11909
11910 ).
11911  A line break in the output can be indicated by 
11912 \begin_inset Flex Code
11913 status collapsed
11914
11915 \begin_layout Plain Layout
11916 <br/>
11917 \end_layout
11918
11919 \end_inset
11920
11921 .
11922 \end_layout
11923
11924 \begin_layout Itemize
11925 \begin_inset Flex Code
11926 status collapsed
11927
11928 \begin_layout Plain Layout
11929 RightDelim
11930 \end_layout
11931
11932 \end_inset
11933
11934  
11935 \begin_inset Flex Code
11936 status collapsed
11937
11938 \begin_layout Plain Layout
11939 [string]
11940 \end_layout
11941
11942 \end_inset
11943
11944  defines a custom right delimiter (instead of 
11945 \begin_inset Flex Code
11946 status collapsed
11947
11948 \begin_layout Plain Layout
11949 }
11950 \end_layout
11951
11952 \end_inset
11953
11954  or 
11955 \begin_inset Flex Code
11956 status collapsed
11957
11958 \begin_layout Plain Layout
11959 ]
11960 \end_layout
11961
11962 \end_inset
11963
11964 ).
11965  A line break in the output can be indicated by 
11966 \begin_inset Flex Code
11967 status collapsed
11968
11969 \begin_layout Plain Layout
11970 <br/>
11971 \end_layout
11972
11973 \end_inset
11974
11975 .
11976 \end_layout
11977
11978 \begin_layout Itemize
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 DefaultArg
11984 \end_layout
11985
11986 \end_inset
11987
11988  
11989 \begin_inset Flex Code
11990 status collapsed
11991
11992 \begin_layout Plain Layout
11993 [string]
11994 \end_layout
11995
11996 \end_inset
11997
11998  defines an argument that is inserted if and only if no user-specified arguments
11999  were given, i.
12000 \begin_inset space \thinspace{}
12001 \end_inset
12002
12003 e.
12004 \begin_inset space \space{}
12005 \end_inset
12006
12007 if no argument inset has been inserted (note that also an empty argument
12008  inset omits the DefaultArg).
12009  Multiple arguments need to be separated by comma.
12010 \end_layout
12011
12012 \begin_layout Itemize
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017 PresetArg
12018 \end_layout
12019
12020 \end_inset
12021
12022  
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027 [string]
12028 \end_layout
12029
12030 \end_inset
12031
12032  defines an argument that is inserted in any case (alone or in addition
12033  to user-specified arguments).
12034  Multiple arguments need to be separated by comma.
12035 \end_layout
12036
12037 \begin_layout Itemize
12038 \begin_inset Flex Code
12039 status collapsed
12040
12041 \begin_layout Plain Layout
12042 Font
12043 \end_layout
12044
12045 \end_inset
12046
12047  The font used for the argument content, see 
12048 \begin_inset CommandInset ref
12049 LatexCommand ref
12050 reference "subsec:Font-description"
12051
12052 \end_inset
12053
12054 .
12055 \end_layout
12056
12057 \begin_layout Itemize
12058 \begin_inset Flex Code
12059 status collapsed
12060
12061 \begin_layout Plain Layout
12062 LabelFont
12063 \end_layout
12064
12065 \end_inset
12066
12067  The font used for the label; see 
12068 \begin_inset CommandInset ref
12069 LatexCommand ref
12070 reference "subsec:Font-description"
12071
12072 \end_inset
12073
12074 .
12075 \end_layout
12076
12077 \begin_layout Itemize
12078 \begin_inset Flex Code
12079 status collapsed
12080
12081 \begin_layout Plain Layout
12082 Decoration
12083 \end_layout
12084
12085 \end_inset
12086
12087  [
12088 \begin_inset Flex Code
12089 status collapsed
12090
12091 \begin_layout Plain Layout
12092
12093 \emph on
12094 Classic
12095 \emph default
12096 , Minimalistic, Conglomerate
12097 \end_layout
12098
12099 \end_inset
12100
12101 ] describes the rendering style used for the inset's frame and buttons.
12102 \end_layout
12103
12104 \begin_layout Itemize
12105 \begin_inset Flex Code
12106 status collapsed
12107
12108 \begin_layout Plain Layout
12109 AutoInsert
12110 \end_layout
12111
12112 \end_inset
12113
12114  
12115 \begin_inset Flex Code
12116 status collapsed
12117
12118 \begin_layout Plain Layout
12119 [int=0]
12120 \end_layout
12121
12122 \end_inset
12123
12124  If this is set to 
12125 \begin_inset Flex Code
12126 status collapsed
12127
12128 \begin_layout Plain Layout
12129 1
12130 \end_layout
12131
12132 \end_inset
12133
12134 , this argument is automatically inserted when the respective style is selected.
12135  Currently, only one argument per style\SpecialChar breakableslash
12136 layout can be automatically inserted.
12137 \end_layout
12138
12139 \begin_layout Itemize
12140 \begin_inset Flex Code
12141 status collapsed
12142
12143 \begin_layout Plain Layout
12144 InsertCotext
12145 \end_layout
12146
12147 \end_inset
12148
12149  
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 [int=0]
12155 \end_layout
12156
12157 \end_inset
12158
12159  If this is set to 
12160 \begin_inset Flex Code
12161 status collapsed
12162
12163 \begin_layout Plain Layout
12164 1
12165 \end_layout
12166
12167 \end_inset
12168
12169 , this argument will be inserted with a copy of the co-text (either selected
12170  text or the whole paragraph) as content.
12171 \end_layout
12172
12173 \begin_layout Itemize
12174 \begin_inset Flex Code
12175 status collapsed
12176
12177 \begin_layout Plain Layout
12178 PassThru
12179 \end_layout
12180
12181 \end_inset
12182
12183  [
12184 \begin_inset Flex Code
12185 status collapsed
12186
12187 \begin_layout Plain Layout
12188
12189 \emph on
12190 inherited
12191 \emph default
12192 , true, false
12193 \end_layout
12194
12195 \end_inset
12196
12197 ] Whether the contents of this argument should be output in raw form, meaning
12198  without special translations that \SpecialChar LaTeX
12199  would require.
12200  By default, the 
12201 \begin_inset Flex Code
12202 status collapsed
12203
12204 \begin_layout Plain Layout
12205 PassThru
12206 \end_layout
12207
12208 \end_inset
12209
12210  status is inherited by the inset or paragraph layout the argument belongs
12211  to, true and false change the status for the given argument only.
12212 \end_layout
12213
12214 \begin_layout Itemize
12215 \begin_inset Flex Code
12216 status collapsed
12217
12218 \begin_layout Plain Layout
12219 PassThruChars
12220 \end_layout
12221
12222 \end_inset
12223
12224  [
12225 \begin_inset Flex Code
12226 status collapsed
12227
12228 \begin_layout Plain Layout
12229 string of characters
12230 \end_layout
12231
12232 \end_inset
12233
12234 ]
12235 \family typewriter
12236  
12237 \family default
12238 Defines individual characters
12239 \begin_inset Newline linebreak
12240 \end_inset
12241
12242 that should be output in raw form, meaning without special translations
12243  that \SpecialChar LaTeX
12244  would require.
12245  Note that, contrary to PassThru, this needs to be explicitly defined for
12246  arguments.
12247  That is, arguments do not inherit PassThruChars from their parent inset
12248  or layout.
12249 \end_layout
12250
12251 \begin_layout Itemize
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 IsTocCaption
12257 \end_layout
12258
12259 \end_inset
12260
12261  [
12262 \begin_inset Flex Code
12263 status collapsed
12264
12265 \begin_layout Plain Layout
12266
12267 \emph on
12268 0
12269 \end_layout
12270
12271 \end_inset
12272
12273 ,
12274 \begin_inset space \thinspace{}
12275 \end_inset
12276
12277
12278 \begin_inset Flex Code
12279 status collapsed
12280
12281 \begin_layout Plain Layout
12282 1
12283 \end_layout
12284
12285 \end_inset
12286
12287 ] If this is set to 1, the argument will output its content in the corresponding
12288  item in the table of contents.
12289  See AddToToc.
12290 \end_layout
12291
12292 \begin_layout Standard
12293 By default, the text entered in the \SpecialChar LyX
12294  workarea in the respective layout is
12295  the last (mandatory) argument of a command if the 
12296 \begin_inset Flex Code
12297 status collapsed
12298
12299 \begin_layout Plain Layout
12300 LatexType
12301 \end_layout
12302
12303 \end_inset
12304
12305  is 
12306 \begin_inset Flex Code
12307 status collapsed
12308
12309 \begin_layout Plain Layout
12310 Command
12311 \end_layout
12312
12313 \end_inset
12314
12315 .
12316  However, arguments with the prefix 
12317 \begin_inset Flex Code
12318 status collapsed
12319
12320 \begin_layout Plain Layout
12321 post:
12322 \end_layout
12323
12324 \end_inset
12325
12326  are output after this workarea argument.
12327  Note that post-argument numbering restarts at 1, so the first argument
12328  following the workarea argument is 
12329 \begin_inset Flex Code
12330 status collapsed
12331
12332 \begin_layout Plain Layout
12333 post:1
12334 \end_layout
12335
12336 \end_inset
12337
12338 .
12339  Post-arguments are ignored in any other 
12340 \begin_inset Flex Code
12341 status collapsed
12342
12343 \begin_layout Plain Layout
12344 LatexType
12345 \end_layout
12346
12347 \end_inset
12348
12349  than 
12350 \begin_inset Flex Code
12351 status collapsed
12352
12353 \begin_layout Plain Layout
12354 Command
12355 \end_layout
12356
12357 \end_inset
12358
12359 .
12360 \end_layout
12361
12362 \begin_layout Standard
12363 Arguments for list 
12364 \begin_inset Flex Code
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368
12369 \backslash
12370 item
12371 \end_layout
12372
12373 \end_inset
12374
12375 s (as in 
12376 \begin_inset Flex Code
12377 status collapsed
12378
12379 \begin_layout Plain Layout
12380
12381 \backslash
12382 item[foo]
12383 \end_layout
12384
12385 \end_inset
12386
12387 ) have the prefix 
12388 \begin_inset Flex Code
12389 status collapsed
12390
12391 \begin_layout Plain Layout
12392 item:
12393 \end_layout
12394
12395 \end_inset
12396
12397  followed by the number (e.
12398 \begin_inset space \thinspace{}
12399 \end_inset
12400
12401 g.
12402 \begin_inset space \space{}
12403 \end_inset
12404
12405
12406 \begin_inset Flex Code
12407 status collapsed
12408
12409 \begin_layout Plain Layout
12410 Argument item:1
12411 \end_layout
12412
12413 \end_inset
12414
12415 ).
12416 \change_inserted -712698321 1534487781
12417
12418 \end_layout
12419
12420 \begin_layout Standard
12421
12422 \change_inserted -712698321 1534488561
12423 Finally, there is a special argument type with the prefix 
12424 \begin_inset Flex Code
12425 status collapsed
12426
12427 \begin_layout Plain Layout
12428
12429 \change_inserted -712698321 1534487844
12430 listpreamble:
12431 \change_unchanged
12432
12433 \end_layout
12434
12435 \end_inset
12436
12437 .
12438  It is not really an argument, but uses the argument interface (thus, the
12439  prefix is also followed by a number, e.
12440 \begin_inset space \thinspace{}
12441 \end_inset
12442
12443 g.
12444  
12445 \begin_inset Flex Code
12446 status collapsed
12447
12448 \begin_layout Plain Layout
12449
12450 \change_inserted -712698321 1534488412
12451 Argument listpreamble:1
12452 \end_layout
12453
12454 \end_inset
12455
12456 ).
12457  As the name implies, it is targeted at lists such as 
12458 \family sans
12459 Itemize
12460 \family default
12461
12462 \family sans
12463 Enumerate
12464 \family default
12465
12466 \family sans
12467 Description
12468 \family default
12469 , or 
12470 \family sans
12471 Bibliography
12472 \family default
12473 .
12474  Its content will be output at the list start, before the first 
12475 \begin_inset Flex Code
12476 status collapsed
12477
12478 \begin_layout Plain Layout
12479
12480 \change_inserted -712698321 1534488058
12481
12482 \backslash
12483 item
12484 \change_unchanged
12485
12486 \end_layout
12487
12488 \end_inset
12489
12490 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12491 ).
12492  This way, users can insert redefinitions (of lengths etc.) to individual
12493  lists.
12494  By default, these arguments do not have a delimiter.
12495 \change_unchanged
12496
12497 \end_layout
12498
12499 \end_deeper
12500 \begin_layout Description
12501 \begin_inset Flex Code
12502 status collapsed
12503
12504 \begin_layout Plain Layout
12505 AutoNests
12506 \end_layout
12507
12508 \end_inset
12509
12510  Includes a comma-separated list of layouts that should be nested in and
12511  after the current layout.
12512  Only makes sense for nestable layouts (such as environments).
12513  Must be ended by 
12514 \begin_inset Quotes eld
12515 \end_inset
12516
12517
12518 \begin_inset Flex Code
12519 status collapsed
12520
12521 \begin_layout Plain Layout
12522 EndAutoNests
12523 \end_layout
12524
12525 \end_inset
12526
12527
12528 \begin_inset Quotes erd
12529 \end_inset
12530
12531 .
12532  See also 
12533 \begin_inset Flex Code
12534 status collapsed
12535
12536 \begin_layout Plain Layout
12537 IsAutoNestedBy
12538 \end_layout
12539
12540 \end_inset
12541
12542 .
12543 \end_layout
12544
12545 \begin_layout Description
12546 \begin_inset Flex Code
12547 status collapsed
12548
12549 \begin_layout Plain Layout
12550 BabelPreamble
12551 \end_layout
12552
12553 \end_inset
12554
12555  Note that this will completely override any prior 
12556 \begin_inset Flex Code
12557 status collapsed
12558
12559 \begin_layout Plain Layout
12560 BabelPreamble
12561 \end_layout
12562
12563 \end_inset
12564
12565  declaration for this style.
12566  Must end with 
12567 \begin_inset Quotes eld
12568 \end_inset
12569
12570
12571 \begin_inset Flex Code
12572 status collapsed
12573
12574 \begin_layout Plain Layout
12575 EndBabelPreamble
12576 \end_layout
12577
12578 \end_inset
12579
12580
12581 \begin_inset Quotes erd
12582 \end_inset
12583
12584 .
12585  See 
12586 \begin_inset CommandInset ref
12587 LatexCommand ref
12588 reference "subsec:I18n"
12589
12590 \end_inset
12591
12592  for details on its use.
12593 \end_layout
12594
12595 \begin_layout Description
12596 \begin_inset Flex Code
12597 status collapsed
12598
12599 \begin_layout Plain Layout
12600 BottomSep
12601 \end_layout
12602
12603 \end_inset
12604
12605  [
12606 \begin_inset Flex Code
12607 status collapsed
12608
12609 \begin_layout Plain Layout
12610 float=0
12611 \end_layout
12612
12613 \end_inset
12614
12615 ]
12616 \begin_inset Foot
12617 status collapsed
12618
12619 \begin_layout Plain Layout
12620 Note that a `float' here is a real number, such as: 1.5.
12621 \end_layout
12622
12623 \end_inset
12624
12625  The vertical space with which the last of a chain of paragraphs with this
12626  style is separated from the following paragraph.
12627  If the next paragraph has another style, the separations are not simply
12628  added, but the maximum is taken.
12629 \end_layout
12630
12631 \begin_layout Description
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636 Category
12637 \end_layout
12638
12639 \end_inset
12640
12641  [
12642 \begin_inset Flex Code
12643 status collapsed
12644
12645 \begin_layout Plain Layout
12646 string
12647 \end_layout
12648
12649 \end_inset
12650
12651 ] The category for this style.
12652  This is used to group related styles in the style combobox on the toolbar.
12653  Any string can be used, but you may want to use existing categories with
12654  your own styles.
12655  
12656 \end_layout
12657
12658 \begin_layout Description
12659 \begin_inset Flex Code
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663 CommandDepth
12664 \end_layout
12665
12666 \end_inset
12667
12668  Depth of XML command.
12669  Used only with XML-type formats.
12670 \end_layout
12671
12672 \begin_layout Description
12673 \begin_inset Flex Code
12674 status collapsed
12675
12676 \begin_layout Plain Layout
12677 CopyStyle
12678 \end_layout
12679
12680 \end_inset
12681
12682  [
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 string
12688 \end_layout
12689
12690 \end_inset
12691
12692 ] Copies all the features of an existing style into the current one.
12693  
12694 \end_layout
12695
12696 \begin_layout Description
12697 \begin_inset Flex Code
12698 status collapsed
12699
12700 \begin_layout Plain Layout
12701 DependsOn
12702 \end_layout
12703
12704 \end_inset
12705
12706  [
12707 \begin_inset Flex Code
12708 status collapsed
12709
12710 \begin_layout Plain Layout
12711 <name>
12712 \end_layout
12713
12714 \end_inset
12715
12716 ] The name of a style whose preamble should be output 
12717 \emph on
12718 before
12719 \emph default
12720  this one.
12721  This allows to ensure some ordering of the preamble snippets when macros
12722  definitions depend on one another.
12723 \begin_inset Foot
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727 Note that, besides that functionality, there is no way to ensure any ordering
12728  of preambles.
12729  The ordering that you see in a given version of \SpecialChar LyX
12730  may change without warning
12731  in later versions.
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 EndLabeltype
12745 \end_layout
12746
12747 \end_inset
12748
12749  [
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754
12755 \emph on
12756 No_Label
12757 \emph default
12758 , Box, Filled_Box, Static
12759 \end_layout
12760
12761 \end_inset
12762
12763 ] The type of label that stands at the end of the paragraph (or sequence
12764  of paragraphs if 
12765 \begin_inset Flex Code
12766 status collapsed
12767
12768 \begin_layout Plain Layout
12769 LatexType
12770 \end_layout
12771
12772 \end_inset
12773
12774  is
12775 \begin_inset Newline newline
12776 \end_inset
12777
12778
12779 \begin_inset Flex Code
12780 status collapsed
12781
12782 \begin_layout Plain Layout
12783 Environment
12784 \end_layout
12785
12786 \end_inset
12787
12788
12789 \begin_inset Flex Code
12790 status collapsed
12791
12792 \begin_layout Plain Layout
12793 Item_Environment
12794 \end_layout
12795
12796 \end_inset
12797
12798  or 
12799 \begin_inset Flex Code
12800 status collapsed
12801
12802 \begin_layout Plain Layout
12803 List_Environment
12804 \end_layout
12805
12806 \end_inset
12807
12808 ).
12809  
12810 \begin_inset Flex Code
12811 status collapsed
12812
12813 \begin_layout Plain Layout
12814 No_Label
12815 \end_layout
12816
12817 \end_inset
12818
12819  means 
12820 \begin_inset Quotes eld
12821 \end_inset
12822
12823 nothing
12824 \begin_inset Quotes erd
12825 \end_inset
12826
12827
12828 \begin_inset Flex Code
12829 status collapsed
12830
12831 \begin_layout Plain Layout
12832 Box
12833 \end_layout
12834
12835 \end_inset
12836
12837  (resp.
12838 \begin_inset space \space{}
12839 \end_inset
12840
12841
12842 \begin_inset Flex Code
12843 status collapsed
12844
12845 \begin_layout Plain Layout
12846 Filled_Box
12847 \end_layout
12848
12849 \end_inset
12850
12851 ) is a white (resp.
12852 \begin_inset space ~
12853 \end_inset
12854
12855 black) square suitable for end of proof markers, 
12856 \begin_inset Flex Code
12857 status collapsed
12858
12859 \begin_layout Plain Layout
12860 Static
12861 \end_layout
12862
12863 \end_inset
12864
12865  is an explicit text string.
12866 \end_layout
12867
12868 \begin_layout Description
12869 \begin_inset Flex Code
12870 status collapsed
12871
12872 \begin_layout Plain Layout
12873 EndLabelString
12874 \end_layout
12875
12876 \end_inset
12877
12878  [
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883 string=""
12884 \end_layout
12885
12886 \end_inset
12887
12888 ] The string used for a label with a 
12889 \begin_inset Flex Code
12890 status collapsed
12891
12892 \begin_layout Plain Layout
12893 Static
12894 \end_layout
12895
12896 \end_inset
12897
12898
12899 \begin_inset Newline newline
12900 \end_inset
12901
12902
12903 \begin_inset Flex Code
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907 EndLabelType
12908 \end_layout
12909
12910 \end_inset
12911
12912 .
12913  
12914 \end_layout
12915
12916 \begin_layout Description
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 Font
12922 \end_layout
12923
12924 \end_inset
12925
12926  The font used for both the text body 
12927 \emph on
12928 and
12929 \emph default
12930  the label.
12931  See 
12932 \begin_inset CommandInset ref
12933 LatexCommand ref
12934 reference "subsec:Font-description"
12935
12936 \end_inset
12937
12938 .
12939  Note that defining this font automatically defines the 
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 LabelFont
12945 \end_layout
12946
12947 \end_inset
12948
12949  to the same value.
12950  So you should define this one first if you also want to define 
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 LabelFont
12956 \end_layout
12957
12958 \end_inset
12959
12960 .
12961 \end_layout
12962
12963 \begin_layout Description
12964 \begin_inset Flex Code
12965 status collapsed
12966
12967 \begin_layout Plain Layout
12968 ForceLocal
12969 \end_layout
12970
12971 \end_inset
12972
12973  [
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 int=0
12979 \end_layout
12980
12981 \end_inset
12982
12983 ] Used for backporting new styles to stable \SpecialChar LyX
12984  versions.
12985  The first stable version that supports this tag is \SpecialChar LyX
12986  2.1.0.
12987  The argument is a number which may either be 0, -1 or any value greater
12988  than zero.
12989  If the 
12990 \begin_inset Flex Code
12991 status collapsed
12992
12993 \begin_layout Plain Layout
12994 ForceLocal
12995 \end_layout
12996
12997 \end_inset
12998
12999  flag of a style is greater than zero, it will always be written to the
13000  document header.
13001  If a .lyx file is read, the style definitions from the document header are
13002  added to the document class.
13003  Therefore even older \SpecialChar LyX
13004  versions can handle the style.
13005  The argument of 
13006 \begin_inset Flex Code
13007 status collapsed
13008
13009 \begin_layout Plain Layout
13010 ForceLocal
13011 \end_layout
13012
13013 \end_inset
13014
13015  is a version number: if the style is read, and the version number is less
13016  than the version number of the already existing style in the document class,
13017  the new style is ignored.
13018  If the version number is greater, the new style replaces the existing style.
13019  A value of -1 means an infinite version number, i.
13020 \begin_inset space \thinspace{}
13021 \end_inset
13022
13023 e.
13024 \begin_inset space \space{}
13025 \end_inset
13026
13027 the style is always used.
13028 \end_layout
13029
13030 \begin_layout Description
13031 \begin_inset Flex Code
13032 status collapsed
13033
13034 \begin_layout Plain Layout
13035 FreeSpacing
13036 \end_layout
13037
13038 \end_inset
13039
13040  [
13041 \begin_inset Flex Code
13042 status collapsed
13043
13044 \begin_layout Plain Layout
13045
13046 \emph on
13047 0
13048 \end_layout
13049
13050 \end_inset
13051
13052 ,
13053 \begin_inset space \thinspace{}
13054 \end_inset
13055
13056
13057 \begin_inset Flex Code
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061 1
13062 \end_layout
13063
13064 \end_inset
13065
13066 ] Usually \SpecialChar LyX
13067  does not allow you to insert more than one space between words,
13068  since a space is considered as the separation between two words, not a
13069  character or symbol of its own.
13070  This is a very fine thing but sometimes annoying, for example, when typing
13071  program code or plain \SpecialChar LaTeX
13072  code.
13073  For this reason, 
13074 \begin_inset Flex Code
13075 status collapsed
13076
13077 \begin_layout Plain Layout
13078 FreeSpacing
13079 \end_layout
13080
13081 \end_inset
13082
13083  can be enabled.
13084  
13085 \change_deleted -495245474 1550490105
13086 Note that 
13087 \change_unchanged
13088 \SpecialChar LyX
13089  will create protected blanks for the additional blanks when in 
13090 \change_inserted -495245474 1550490096
13091
13092 \begin_inset Flex Code
13093 status collapsed
13094
13095 \begin_layout Plain Layout
13096
13097 \change_inserted -495245474 1550490089
13098 Passthru 1
13099 \end_layout
13100
13101 \end_inset
13102
13103  is not specified.
13104 \change_deleted -495245474 1550490116
13105 another mode than \SpecialChar LaTeX
13106 -mode.
13107
13108 \change_inserted -495245474 1550247760
13109  Note that 
13110 \begin_inset Flex Code
13111 status collapsed
13112
13113 \begin_layout Plain Layout
13114
13115 \change_inserted -495245474 1550247736
13116 FreeSpacing
13117 \end_layout
13118
13119 \end_inset
13120
13121  implies 
13122 \begin_inset Flex Code
13123 status collapsed
13124
13125 \begin_layout Plain Layout
13126
13127 \change_inserted -495245474 1550247755
13128 KeepEmpty
13129 \end_layout
13130
13131 \end_inset
13132
13133 .
13134 \change_unchanged
13135
13136 \end_layout
13137
13138 \begin_layout Description
13139 \begin_inset Flex Code
13140 status collapsed
13141
13142 \begin_layout Plain Layout
13143 HTML*
13144 \end_layout
13145
13146 \end_inset
13147
13148  These tags are used with XHTML output.
13149  See 
13150 \begin_inset CommandInset ref
13151 LatexCommand ref
13152 reference "subsec:Paragraph-Style-XHTML"
13153
13154 \end_inset
13155
13156 .
13157 \end_layout
13158
13159 \begin_layout Description
13160 \begin_inset Flex Code
13161 status collapsed
13162
13163 \begin_layout Plain Layout
13164 InnerTag
13165 \end_layout
13166
13167 \end_inset
13168
13169  [FIXME] (Used only with XML-type formats.)
13170 \end_layout
13171
13172 \begin_layout Description
13173 \begin_inset Flex Code
13174 status collapsed
13175
13176 \begin_layout Plain Layout
13177 InPreamble
13178 \end_layout
13179
13180 \end_inset
13181
13182  [
13183 \begin_inset Flex Code
13184 status collapsed
13185
13186 \begin_layout Plain Layout
13187
13188 \emph on
13189 0
13190 \end_layout
13191
13192 \end_inset
13193
13194 ,
13195 \begin_inset space \thinspace{}
13196 \end_inset
13197
13198
13199 \begin_inset Flex Code
13200 status collapsed
13201
13202 \begin_layout Plain Layout
13203 1
13204 \end_layout
13205
13206 \end_inset
13207
13208 ] If 
13209 \begin_inset Flex Code
13210 status collapsed
13211
13212 \begin_layout Plain Layout
13213 1
13214 \end_layout
13215
13216 \end_inset
13217
13218 , marks the style as to be included in the document preamble and not in
13219  the document body.
13220  This is useful for document classes that want such information as the title
13221  and author to appear in the preamble.
13222  Note that this works only for styles for which the 
13223 \begin_inset Flex Code
13224 status collapsed
13225
13226 \begin_layout Plain Layout
13227 LatexType
13228 \end_layout
13229
13230 \end_inset
13231
13232  is 
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 Command
13238 \end_layout
13239
13240 \end_inset
13241
13242  or 
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 Paragraph
13248 \end_layout
13249
13250 \end_inset
13251
13252 .
13253 \end_layout
13254
13255 \begin_layout Description
13256 \begin_inset Flex Code
13257 status collapsed
13258
13259 \begin_layout Plain Layout
13260 InTitle
13261 \end_layout
13262
13263 \end_inset
13264
13265  [
13266 \begin_inset Flex Code
13267 status collapsed
13268
13269 \begin_layout Plain Layout
13270
13271 \emph on
13272 0
13273 \end_layout
13274
13275 \end_inset
13276
13277 ,
13278 \begin_inset space \thinspace{}
13279 \end_inset
13280
13281
13282 \begin_inset Flex Code
13283 status collapsed
13284
13285 \begin_layout Plain Layout
13286 1
13287 \end_layout
13288
13289 \end_inset
13290
13291 ] If 
13292 \begin_inset Flex Code
13293 status collapsed
13294
13295 \begin_layout Plain Layout
13296 1
13297 \end_layout
13298
13299 \end_inset
13300
13301 , marks the style as being part of a title block (see also the 
13302 \begin_inset Flex Code
13303 status collapsed
13304
13305 \begin_layout Plain Layout
13306 TitleLatexType
13307 \end_layout
13308
13309 \end_inset
13310
13311  and 
13312 \begin_inset Flex Code
13313 status collapsed
13314
13315 \begin_layout Plain Layout
13316 TitleLatexName
13317 \end_layout
13318
13319 \end_inset
13320
13321  global entries).
13322 \end_layout
13323
13324 \begin_layout Description
13325 \begin_inset Flex Code
13326 status collapsed
13327
13328 \begin_layout Plain Layout
13329 IsAutoNestedBy
13330 \end_layout
13331
13332 \end_inset
13333
13334  Includes a comma-separated list of layouts after which this one should
13335  be nested.
13336  Only makes sense with regard to nestable layouts (such as environments).
13337  Must be ended by 
13338 \begin_inset Quotes eld
13339 \end_inset
13340
13341
13342 \begin_inset Flex Code
13343 status collapsed
13344
13345 \begin_layout Plain Layout
13346 EndIsAutoNestedBy
13347 \end_layout
13348
13349 \end_inset
13350
13351
13352 \begin_inset Quotes erd
13353 \end_inset
13354
13355 .
13356  See also 
13357 \begin_inset Flex Code
13358 status collapsed
13359
13360 \begin_layout Plain Layout
13361 AutoNests
13362 \end_layout
13363
13364 \end_inset
13365
13366 .
13367 \end_layout
13368
13369 \begin_layout Description
13370 \begin_inset Flex Code
13371 status collapsed
13372
13373 \begin_layout Plain Layout
13374 IsTocCaption
13375 \end_layout
13376
13377 \end_inset
13378
13379  [
13380 \begin_inset Flex Code
13381 status collapsed
13382
13383 \begin_layout Plain Layout
13384
13385 \emph on
13386 0
13387 \end_layout
13388
13389 \end_inset
13390
13391 ,
13392 \begin_inset space \thinspace{}
13393 \end_inset
13394
13395
13396 \begin_inset Flex Code
13397 status collapsed
13398
13399 \begin_layout Plain Layout
13400 1
13401 \end_layout
13402
13403 \end_inset
13404
13405 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13406  of its contents in its item in the table of contents.
13407  Otherwise, only the label, if it exists, appears.
13408 \end_layout
13409
13410 \begin_layout Description
13411 \begin_inset Flex Code
13412 status collapsed
13413
13414 \begin_layout Plain Layout
13415 ItemCommand
13416 \end_layout
13417
13418 \end_inset
13419
13420  [
13421 \begin_inset Flex Code
13422 status collapsed
13423
13424 \begin_layout Plain Layout
13425 string="item"
13426 \end_layout
13427
13428 \end_inset
13429
13430 ] The \SpecialChar LaTeX
13431  command sequence declaring an item in a list.
13432  The command is to be defined without the preceding backslash (the default
13433  is 
13434 \begin_inset Quotes eld
13435 \end_inset
13436
13437 item
13438 \begin_inset Quotes erd
13439 \end_inset
13440
13441 , resulting in 
13442 \begin_inset Flex Code
13443 status collapsed
13444
13445 \begin_layout Plain Layout
13446
13447 \backslash
13448 item
13449 \end_layout
13450
13451 \end_inset
13452
13453  in the \SpecialChar LaTeX
13454  output).
13455 \end_layout
13456
13457 \begin_layout Description
13458 \begin_inset Flex Code
13459 status collapsed
13460
13461 \begin_layout Plain Layout
13462 ItemSep
13463 \end_layout
13464
13465 \end_inset
13466
13467  [
13468 \begin_inset Flex Code
13469 status collapsed
13470
13471 \begin_layout Plain Layout
13472 float=0
13473 \end_layout
13474
13475 \end_inset
13476
13477 ] This provides extra space between paragraphs that have the same style.
13478  If you put other styles into an environment, each is separated with the
13479  environment's 
13480 \begin_inset Flex Code
13481 status collapsed
13482
13483 \begin_layout Plain Layout
13484 ParSep
13485 \end_layout
13486
13487 \end_inset
13488
13489 .
13490  But the whole items of the environment are additionally separated with
13491  this 
13492 \begin_inset Flex Code
13493 status collapsed
13494
13495 \begin_layout Plain Layout
13496 ItemSep
13497 \end_layout
13498
13499 \end_inset
13500
13501 .
13502  Note that this is a
13503 \emph on
13504  multiplier.
13505 \end_layout
13506
13507 \begin_layout Description
13508 \begin_inset Flex Code
13509 status collapsed
13510
13511 \begin_layout Plain Layout
13512 ItemTag
13513 \end_layout
13514
13515 \end_inset
13516
13517  [FIXME] (Used only with XML-type formats.)
13518 \end_layout
13519
13520 \begin_layout Description
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525 KeepEmpty
13526 \end_layout
13527
13528 \end_inset
13529
13530  [
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535
13536 \emph on
13537 0
13538 \end_layout
13539
13540 \end_inset
13541
13542 ,
13543 \begin_inset space \thinspace{}
13544 \end_inset
13545
13546
13547 \begin_inset Flex Code
13548 status collapsed
13549
13550 \begin_layout Plain Layout
13551 1
13552 \end_layout
13553
13554 \end_inset
13555
13556 ] Usually \SpecialChar LyX
13557  does not allow you to leave a paragraph empty, since it would
13558  lead to empty \SpecialChar LaTeX
13559  output.
13560  There are some cases where this could be desirable however: in a letter
13561  template, the required fields can be provided as empty fields, so that
13562  people do not forget them; in some special classes, a style can be used
13563  as some kind of break, which does not contain actual text.
13564 \end_layout
13565
13566 \begin_layout Description
13567 \begin_inset Flex Code
13568 status collapsed
13569
13570 \begin_layout Plain Layout
13571 LabelBottomsep
13572 \end_layout
13573
13574 \end_inset
13575
13576  [
13577 \begin_inset Flex Code
13578 status collapsed
13579
13580 \begin_layout Plain Layout
13581 float=0
13582 \end_layout
13583
13584 \end_inset
13585
13586 ] The vertical space between the label and the text body.
13587  Only used for labels that are above the text body (
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592 Top_Environment
13593 \end_layout
13594
13595 \end_inset
13596
13597  and
13598 \begin_inset Newline newline
13599 \end_inset
13600
13601
13602 \begin_inset Flex Code
13603 status collapsed
13604
13605 \begin_layout Plain Layout
13606 Centered_Top_Environment
13607 \end_layout
13608
13609 \end_inset
13610
13611 ).
13612 \end_layout
13613
13614 \begin_layout Description
13615 \begin_inset Flex Code
13616 status collapsed
13617
13618 \begin_layout Plain Layout
13619 LabelCounter
13620 \end_layout
13621
13622 \end_inset
13623
13624  [
13625 \begin_inset Flex Code
13626 status collapsed
13627
13628 \begin_layout Plain Layout
13629 string=""
13630 \end_layout
13631
13632 \end_inset
13633
13634 ] The name of the counter for automatic numbering.
13635  In order to have the counter appear with your label, you will need to reference
13636  it in the 
13637 \begin_inset Flex Code
13638 status collapsed
13639
13640 \begin_layout Plain Layout
13641
13642 \family typewriter
13643 LabelString
13644 \end_layout
13645
13646 \end_inset
13647
13648 .
13649  This will work with 
13650 \begin_inset Flex Code
13651 status collapsed
13652
13653 \begin_layout Plain Layout
13654 LabelType
13655 \end_layout
13656
13657 \end_inset
13658
13659 s, 
13660 \begin_inset Flex Code
13661 status collapsed
13662
13663 \begin_layout Plain Layout
13664 Static
13665 \end_layout
13666
13667 \end_inset
13668
13669
13670 \begin_inset Flex Code
13671 status collapsed
13672
13673 \begin_layout Plain Layout
13674 Above
13675 \end_layout
13676
13677 \end_inset
13678
13679  and 
13680 \begin_inset Flex Code
13681 status collapsed
13682
13683 \begin_layout Plain Layout
13684 Centered
13685 \end_layout
13686
13687 \end_inset
13688
13689 , at least.
13690 \begin_inset Newline newline
13691 \end_inset
13692
13693 This 
13694 \emph on
13695 may
13696 \emph default
13697  also be given if 
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 LabelType
13703 \end_layout
13704
13705 \end_inset
13706
13707  is 
13708 \begin_inset Flex Code
13709 status collapsed
13710
13711 \begin_layout Plain Layout
13712 Enumerate
13713 \end_layout
13714
13715 \end_inset
13716
13717 , though this case is a bit complicated.
13718  Suppose you declare 
13719 \begin_inset Quotes eld
13720 \end_inset
13721
13722
13723 \begin_inset Flex Code
13724 status collapsed
13725
13726 \begin_layout Plain Layout
13727 LabelCounter myenum
13728 \end_layout
13729
13730 \end_inset
13731
13732
13733 \begin_inset Quotes erd
13734 \end_inset
13735
13736 .
13737  Then the actual counters used are 
13738 \begin_inset Flex Code
13739 status collapsed
13740
13741 \begin_layout Plain Layout
13742 myenumi
13743 \end_layout
13744
13745 \end_inset
13746
13747
13748 \begin_inset Flex Code
13749 status collapsed
13750
13751 \begin_layout Plain Layout
13752 myenumii
13753 \end_layout
13754
13755 \end_inset
13756
13757
13758 \begin_inset Flex Code
13759 status collapsed
13760
13761 \begin_layout Plain Layout
13762 myenumiii
13763 \end_layout
13764
13765 \end_inset
13766
13767  and 
13768 \begin_inset Flex Code
13769 status collapsed
13770
13771 \begin_layout Plain Layout
13772 myenumiv
13773 \end_layout
13774
13775 \end_inset
13776
13777 , much as in \SpecialChar LaTeX
13778 .
13779  These counters must all be declared separately.
13780 \begin_inset Newline newline
13781 \end_inset
13782
13783 See 
13784 \begin_inset CommandInset ref
13785 LatexCommand ref
13786 reference "subsec:Counters"
13787
13788 \end_inset
13789
13790  for details on counters.
13791 \end_layout
13792
13793 \begin_layout Description
13794 \begin_inset Flex Code
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 LabelFont
13799 \end_layout
13800
13801 \end_inset
13802
13803  The font used for the label.
13804  See 
13805 \begin_inset CommandInset ref
13806 LatexCommand ref
13807 reference "subsec:Font-description"
13808
13809 \end_inset
13810
13811 .
13812 \end_layout
13813
13814 \begin_layout Description
13815 \begin_inset Flex Code
13816 status collapsed
13817
13818 \begin_layout Plain Layout
13819 LabelIndent
13820 \end_layout
13821
13822 \end_inset
13823
13824  [
13825 \begin_inset Flex Code
13826 status collapsed
13827
13828 \begin_layout Plain Layout
13829 string=""
13830 \end_layout
13831
13832 \end_inset
13833
13834 ] Text that indicates how far a label should be indented.
13835 \end_layout
13836
13837 \begin_layout Description
13838 \begin_inset Flex Code
13839 status collapsed
13840
13841 \begin_layout Plain Layout
13842 LabelSep
13843 \end_layout
13844
13845 \end_inset
13846
13847  [
13848 \begin_inset Flex Code
13849 status collapsed
13850
13851 \begin_layout Plain Layout
13852 string=""
13853 \end_layout
13854
13855 \end_inset
13856
13857 ] Text that indicates the amount of horizontal space between the label and
13858  the text body.
13859  Only used for labels that are not above the text body.
13860 \end_layout
13861
13862 \begin_layout Description
13863 \begin_inset Flex Code
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867 LabelString
13868 \end_layout
13869
13870 \end_inset
13871
13872  [
13873 \begin_inset Flex Code
13874 status collapsed
13875
13876 \begin_layout Plain Layout
13877 string=""
13878 \end_layout
13879
13880 \end_inset
13881
13882 ] The string used for the label.
13883  When 
13884 \begin_inset Flex Code
13885 status collapsed
13886
13887 \begin_layout Plain Layout
13888 LabelCounter
13889 \end_layout
13890
13891 \end_inset
13892
13893  is set, this string can be contain the special formatting commands described
13894  in 
13895 \begin_inset CommandInset ref
13896 LatexCommand ref
13897 reference "subsec:Counters"
13898
13899 \end_inset
13900
13901 .
13902 \end_layout
13903
13904 \begin_layout Description
13905 \begin_inset Flex Code
13906 status collapsed
13907
13908 \begin_layout Plain Layout
13909 LabelStringAppendix
13910 \end_layout
13911
13912 \end_inset
13913
13914  [
13915 \begin_inset Flex Code
13916 status collapsed
13917
13918 \begin_layout Plain Layout
13919 string=""
13920 \end_layout
13921
13922 \end_inset
13923
13924 ] This is used inside the appendix instead of
13925 \begin_inset Newline newline
13926 \end_inset
13927
13928
13929 \begin_inset Flex Code
13930 status collapsed
13931
13932 \begin_layout Plain Layout
13933 LabelString
13934 \end_layout
13935
13936 \end_inset
13937
13938 .
13939  Note that every 
13940 \begin_inset Flex Code
13941 status collapsed
13942
13943 \begin_layout Plain Layout
13944 LabelString
13945 \end_layout
13946
13947 \end_inset
13948
13949  statement resets
13950 \begin_inset Newline newline
13951 \end_inset
13952
13953
13954 \begin_inset Flex Code
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958 LabelStringAppendix
13959 \end_layout
13960
13961 \end_inset
13962
13963  too.
13964 \end_layout
13965
13966 \begin_layout Description
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 LabelTag
13972 \end_layout
13973
13974 \end_inset
13975
13976  [FIXME] (Used only with XML-type formats.)
13977 \end_layout
13978
13979 \begin_layout Description
13980 \begin_inset Flex Code
13981 status collapsed
13982
13983 \begin_layout Plain Layout
13984 LabelType
13985 \end_layout
13986
13987 \end_inset
13988
13989  [
13990 \begin_inset Flex Code
13991 status collapsed
13992
13993 \begin_layout Plain Layout
13994
13995 \emph on
13996 No_Label
13997 \emph default
13998 , Manual, Static, Above, 
13999 \begin_inset Newline newline
14000 \end_inset
14001
14002 Centered, Sensitive, Enumerate,
14003 \begin_inset Newline newline
14004 \end_inset
14005
14006 Itemize, Bibliography
14007 \end_layout
14008
14009 \end_inset
14010
14011 ]
14012 \end_layout
14013
14014 \begin_deeper
14015 \begin_layout Description
14016 \begin_inset Flex Code
14017 status collapsed
14018
14019 \begin_layout Plain Layout
14020 Manual
14021 \end_layout
14022
14023 \end_inset
14024
14025  means the label is the very first word (up to the first real blank).
14026  Use protected spaces if you want more than one word as the label.
14027  
14028 \end_layout
14029
14030 \begin_layout Description
14031 \begin_inset Flex Code
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035 Static
14036 \end_layout
14037
14038 \end_inset
14039
14040  means the label is simply what is declared as 
14041 \begin_inset Flex Code
14042 status collapsed
14043
14044 \begin_layout Plain Layout
14045 LabelString
14046 \end_layout
14047
14048 \end_inset
14049
14050 .
14051  This will be displayed 
14052 \begin_inset Quotes eld
14053 \end_inset
14054
14055 inline
14056 \begin_inset Quotes erd
14057 \end_inset
14058
14059 , at the beginning of the paragraph.
14060  If the 
14061 \begin_inset Flex Code
14062 status collapsed
14063
14064 \begin_layout Plain Layout
14065 LatexType
14066 \end_layout
14067
14068 \end_inset
14069
14070  is 
14071 \begin_inset Flex Code
14072 status collapsed
14073
14074 \begin_layout Plain Layout
14075 Environment
14076 \end_layout
14077
14078 \end_inset
14079
14080 , then it will be displayed only in the first paragraph of any sequence
14081  of paragraphs with the same 
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086 Style
14087 \end_layout
14088
14089 \end_inset
14090
14091 .
14092 \end_layout
14093
14094 \begin_layout Description
14095 \begin_inset Flex Code
14096 status collapsed
14097
14098 \begin_layout Plain Layout
14099 Above
14100 \end_layout
14101
14102 \end_inset
14103
14104
14105 \begin_inset space ~
14106 \end_inset
14107
14108 and
14109 \begin_inset space ~
14110 \end_inset
14111
14112
14113 \begin_inset Flex Code
14114 status collapsed
14115
14116 \begin_layout Plain Layout
14117 Centered
14118 \end_layout
14119
14120 \end_inset
14121
14122  are special cases of 
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 Static
14128 \end_layout
14129
14130 \end_inset
14131
14132 .
14133  The label will be printed above the paragraph either at the beginning of
14134  the line or centered.
14135 \end_layout
14136
14137 \begin_layout Description
14138 \begin_inset Flex Code
14139 status collapsed
14140
14141 \begin_layout Plain Layout
14142 Sensitive
14143 \end_layout
14144
14145 \end_inset
14146
14147  is a special case for the caption-labels 
14148 \begin_inset Quotes eld
14149 \end_inset
14150
14151 Figure
14152 \begin_inset Quotes erd
14153 \end_inset
14154
14155  and 
14156 \begin_inset Quotes eld
14157 \end_inset
14158
14159 Table
14160 \begin_inset Quotes erd
14161 \end_inset
14162
14163 .
14164 \begin_inset Newline newline
14165 \end_inset
14166
14167
14168 \begin_inset Flex Code
14169 status collapsed
14170
14171 \begin_layout Plain Layout
14172 Sensitive
14173 \end_layout
14174
14175 \end_inset
14176
14177  means the (hardcoded) label string depends on the kind of float: It is
14178  hardcoded to be `FloatType N', where N is the value of the counter associated
14179  with the float.
14180  For the case that a caption is inserted outside of a float the 
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 LabelString
14186 \end_layout
14187
14188 \end_inset
14189
14190  will appear as 
14191 \begin_inset Quotes eld
14192 \end_inset
14193
14194 Senseless!
14195 \begin_inset Quotes erd
14196 \end_inset
14197
14198 .
14199 \end_layout
14200
14201 \begin_layout Description
14202 \begin_inset Flex Code
14203 status collapsed
14204
14205 \begin_layout Plain Layout
14206 Enumerate
14207 \end_layout
14208
14209 \end_inset
14210
14211  produces the usual sort of enumeration labels.
14212  The number type needs to be set in the 
14213 \family sans
14214 Counter
14215 \family default
14216 , see 
14217 \begin_inset CommandInset ref
14218 LatexCommand ref
14219 reference "subsec:Counters"
14220
14221 \end_inset
14222
14223 .
14224 \end_layout
14225
14226 \begin_layout Description
14227 \begin_inset Flex Code
14228 status collapsed
14229
14230 \begin_layout Plain Layout
14231 Itemize
14232 \end_layout
14233
14234 \end_inset
14235
14236  produces various bullets at the different levels.
14237  The bullet types displayed can be set via 
14238 \begin_inset Flex Noun
14239 status collapsed
14240
14241 \begin_layout Plain Layout
14242 Document\SpecialChar menuseparator
14243 Settings\SpecialChar menuseparator
14244 Bullets
14245 \end_layout
14246
14247 \end_inset
14248
14249 .
14250 \end_layout
14251
14252 \begin_layout Description
14253 \begin_inset Flex Code
14254 status collapsed
14255
14256 \begin_layout Plain Layout
14257 Bibliography
14258 \end_layout
14259
14260 \end_inset
14261
14262  should be used only with 
14263 \begin_inset Flex Code
14264 status collapsed
14265
14266 \begin_layout Plain Layout
14267 LatexType BibEnvironment
14268 \end_layout
14269
14270 \end_inset
14271
14272 .
14273 \end_layout
14274
14275 \end_deeper
14276 \begin_layout Description
14277 \begin_inset Flex Code
14278 status collapsed
14279
14280 \begin_layout Plain Layout
14281 LangPreamble
14282 \end_layout
14283
14284 \end_inset
14285
14286  Note that this will completely override any prior 
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 LangPreamble
14292 \end_layout
14293
14294 \end_inset
14295
14296  declaration for this style.
14297  Must end with 
14298 \begin_inset Quotes eld
14299 \end_inset
14300
14301
14302 \begin_inset Flex Code
14303 status collapsed
14304
14305 \begin_layout Plain Layout
14306 EndLangPreamble
14307 \end_layout
14308
14309 \end_inset
14310
14311
14312 \begin_inset Quotes erd
14313 \end_inset
14314
14315 .
14316  See 
14317 \begin_inset CommandInset ref
14318 LatexCommand ref
14319 reference "subsec:I18n"
14320
14321 \end_inset
14322
14323  for details on its use.
14324 \end_layout
14325
14326 \begin_layout Description
14327 \begin_inset Flex Code
14328 status collapsed
14329
14330 \begin_layout Plain Layout
14331 LatexName
14332 \end_layout
14333
14334 \end_inset
14335
14336  [
14337 \begin_inset Flex Code
14338 status collapsed
14339
14340 \begin_layout Plain Layout
14341 <name>
14342 \end_layout
14343
14344 \end_inset
14345
14346 ] The name of the corresponding \SpecialChar LaTeX
14347  stuff.
14348  Either the environment or command name.
14349 \end_layout
14350
14351 \begin_layout Description
14352 \begin_inset Flex Code
14353 status collapsed
14354
14355 \begin_layout Plain Layout
14356 LatexParam
14357 \end_layout
14358
14359 \end_inset
14360
14361  [
14362 \begin_inset Flex Code
14363 status collapsed
14364
14365 \begin_layout Plain Layout
14366 <parameter>
14367 \end_layout
14368
14369 \end_inset
14370
14371 ] An optional parameter for the corresponding 
14372 \begin_inset Flex Code
14373 status collapsed
14374
14375 \begin_layout Plain Layout
14376 LatexName
14377 \end_layout
14378
14379 \end_inset
14380
14381  stuff.
14382  This parameter cannot be changed from within \SpecialChar LyX
14383  (use 
14384 \begin_inset Flex Code
14385 status collapsed
14386
14387 \begin_layout Plain Layout
14388 Argument
14389 \end_layout
14390
14391 \end_inset
14392
14393  for customizable parameters).
14394  This will be output as is after all \SpecialChar LaTeX
14395  
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 Argument
14401 \end_layout
14402
14403 \end_inset
14404
14405 s.
14406 \end_layout
14407
14408 \begin_layout Description
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 LatexType
14414 \end_layout
14415
14416 \end_inset
14417
14418  [
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423
14424 \emph on
14425 Paragraph
14426 \emph default
14427 , Command, Environment, Item_Environment,
14428 \begin_inset Newline newline
14429 \end_inset
14430
14431 List_Environment, Bib_Environment
14432 \end_layout
14433
14434 \end_inset
14435
14436 ] How the style should be translated into \SpecialChar LaTeX
14437 .
14438 \begin_inset Foot
14439 status collapsed
14440
14441 \begin_layout Plain Layout
14442 \begin_inset Flex Code
14443 status collapsed
14444
14445 \begin_layout Plain Layout
14446 LatexType
14447 \end_layout
14448
14449 \end_inset
14450
14451  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14452  Visit the SGML class files for specific examples.
14453 \end_layout
14454
14455 \end_inset
14456
14457
14458 \end_layout
14459
14460 \begin_deeper
14461 \begin_layout Description
14462 \begin_inset Flex Code
14463 status collapsed
14464
14465 \begin_layout Plain Layout
14466 Paragraph
14467 \end_layout
14468
14469 \end_inset
14470
14471  means nothing special.
14472 \end_layout
14473
14474 \begin_layout Description
14475 \begin_inset Flex Code
14476 status collapsed
14477
14478 \begin_layout Plain Layout
14479 Command
14480 \end_layout
14481
14482 \end_inset
14483
14484  means 
14485 \begin_inset Flex Code
14486 status collapsed
14487
14488 \begin_layout Plain Layout
14489
14490 \backslash
14491
14492 \emph on
14493 LatexName
14494 \emph default
14495 {\SpecialChar ldots
14496 }
14497 \end_layout
14498
14499 \end_inset
14500
14501 .
14502 \end_layout
14503
14504 \begin_layout Description
14505 \begin_inset Flex Code
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509 Environment
14510 \end_layout
14511
14512 \end_inset
14513
14514  means 
14515 \begin_inset Flex Code
14516 status collapsed
14517
14518 \begin_layout Plain Layout
14519
14520 \backslash
14521 begin{
14522 \emph on
14523 LatexName
14524 \emph default
14525 }\SpecialChar ldots
14526
14527 \backslash
14528 end{
14529 \emph on
14530 LatexName
14531 \emph default
14532 }
14533 \end_layout
14534
14535 \end_inset
14536
14537 .
14538  
14539 \end_layout
14540
14541 \begin_layout Description
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 Item_Environment
14547 \end_layout
14548
14549 \end_inset
14550
14551  is the same as 
14552 \begin_inset Flex Code
14553 status collapsed
14554
14555 \begin_layout Plain Layout
14556 Environment
14557 \end_layout
14558
14559 \end_inset
14560
14561 , except that an 
14562 \begin_inset Flex Code
14563 status collapsed
14564
14565 \begin_layout Plain Layout
14566
14567 \backslash
14568 item
14569 \end_layout
14570
14571 \end_inset
14572
14573  is generated for each paragraph of this environment.
14574  
14575 \end_layout
14576
14577 \begin_layout Description
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 List_Environment
14583 \end_layout
14584
14585 \end_inset
14586
14587  is the same as 
14588 \begin_inset Flex Code
14589 status collapsed
14590
14591 \begin_layout Plain Layout
14592 Item_Environment
14593 \end_layout
14594
14595 \end_inset
14596
14597 , except that
14598 \begin_inset Newline newline
14599 \end_inset
14600
14601
14602 \begin_inset Flex Code
14603 status collapsed
14604
14605 \begin_layout Plain Layout
14606 LabelWidthString
14607 \end_layout
14608
14609 \end_inset
14610
14611  is passed as an argument to the environment.
14612 \begin_inset Newline newline
14613 \end_inset
14614
14615
14616 \begin_inset Flex Code
14617 status collapsed
14618
14619 \begin_layout Plain Layout
14620 LabelWidthString
14621 \end_layout
14622
14623 \end_inset
14624
14625  can be defined in the 
14626 \begin_inset Flex Noun
14627 status collapsed
14628
14629 \begin_layout Plain Layout
14630 Edit\SpecialChar menuseparator
14631 Paragraph
14632 \begin_inset space ~
14633 \end_inset
14634
14635 settings
14636 \end_layout
14637
14638 \end_inset
14639
14640  dialog.
14641 \end_layout
14642
14643 \begin_layout Description
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648 Bib_Environment
14649 \end_layout
14650
14651 \end_inset
14652
14653  is like 
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 Environment
14659 \end_layout
14660
14661 \end_inset
14662
14663  but adds the necessary mandatory argument (the longest label) to the begin
14664  statement of the bibliography environment:
14665 \begin_inset Newline newline
14666 \end_inset
14667
14668
14669 \begin_inset Flex Code
14670 status collapsed
14671
14672 \begin_layout Plain Layout
14673
14674 \backslash
14675 begin{thebibliography}{99}
14676 \end_layout
14677
14678 \end_inset
14679
14680 .
14681  It is therefore only useful for bibliography environments.
14682  The default longest label 
14683 \begin_inset Quotes eld
14684 \end_inset
14685
14686 99
14687 \begin_inset Quotes erd
14688 \end_inset
14689
14690  can be changed by the user in the paragraph settings of a bibliography
14691  item.
14692 \end_layout
14693
14694 \begin_layout Standard
14695 Putting the last few things together, the \SpecialChar LaTeX
14696  output will be either: 
14697 \end_layout
14698
14699 \begin_layout LyX-Code
14700
14701 \backslash
14702 LatexName[LatexParam]{\SpecialChar ldots
14703 }
14704 \end_layout
14705
14706 \begin_layout Standard
14707 or: 
14708 \end_layout
14709
14710 \begin_layout LyX-Code
14711
14712 \backslash
14713 begin{LatexName}[LatexParam] \SpecialChar ldots
14714  
14715 \backslash
14716 end{LatexName}.
14717 \end_layout
14718
14719 \begin_layout Standard
14720 depending upon the \SpecialChar LaTeX
14721  type.
14722 \end_layout
14723
14724 \end_deeper
14725 \begin_layout Description
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 LeftDelim
14731 \end_layout
14732
14733 \end_inset
14734
14735  [
14736 \begin_inset Flex Code
14737 status collapsed
14738
14739 \begin_layout Plain Layout
14740 string
14741 \end_layout
14742
14743 \end_inset
14744
14745 ] A string that is put at the beginning of the style content.
14746  A line break in the output can be indicated by 
14747 \begin_inset Flex Code
14748 status collapsed
14749
14750 \begin_layout Plain Layout
14751 <br/>
14752 \end_layout
14753
14754 \end_inset
14755
14756 .
14757 \end_layout
14758
14759 \begin_layout Description
14760 \begin_inset Flex Code
14761 status collapsed
14762
14763 \begin_layout Plain Layout
14764 LeftMargin
14765 \end_layout
14766
14767 \end_inset
14768
14769  [
14770 \begin_inset Flex Code
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774 string=""
14775 \end_layout
14776
14777 \end_inset
14778
14779 ] If you put styles into environments, the different 
14780 \begin_inset Flex Code
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784 LeftMargin
14785 \end_layout
14786
14787 \end_inset
14788
14789  are not simply added, but added with a factor 
14790 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14791 \end_inset
14792
14793 .
14794  Note that this parameter is also used when 
14795 \begin_inset Flex Code
14796 status collapsed
14797
14798 \begin_layout Plain Layout
14799 Margin
14800 \end_layout
14801
14802 \end_inset
14803
14804  is defined as 
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 Manual
14810 \end_layout
14811
14812 \end_inset
14813
14814  or 
14815 \begin_inset Flex Code
14816 status collapsed
14817
14818 \begin_layout Plain Layout
14819 Dynamic
14820 \end_layout
14821
14822 \end_inset
14823
14824 .
14825  Then it is added to the manual or dynamic margin.
14826 \begin_inset Newline newline
14827 \end_inset
14828
14829 For example 
14830 \begin_inset Quotes eld
14831 \end_inset
14832
14833
14834 \begin_inset Flex Code
14835 status collapsed
14836
14837 \begin_layout Plain Layout
14838 MM
14839 \end_layout
14840
14841 \end_inset
14842
14843
14844 \begin_inset Quotes erd
14845 \end_inset
14846
14847  means that the paragraph is indented with the width of 
14848 \begin_inset Quotes eld
14849 \end_inset
14850
14851
14852 \begin_inset Flex Code
14853 status collapsed
14854
14855 \begin_layout Plain Layout
14856 MM
14857 \end_layout
14858
14859 \end_inset
14860
14861
14862 \begin_inset Quotes erd
14863 \end_inset
14864
14865  in the normal font.
14866  You can get a negative width by prefixing the string with 
14867 \begin_inset Quotes eld
14868 \end_inset
14869
14870
14871 \begin_inset Flex Code
14872 status collapsed
14873
14874 \begin_layout Plain Layout
14875 -
14876 \end_layout
14877
14878 \end_inset
14879
14880
14881 \begin_inset Quotes erd
14882 \end_inset
14883
14884 .
14885  This way was chosen so that the look is the same with each used screen
14886  font.
14887 \end_layout
14888
14889 \begin_layout Description
14890 \begin_inset Flex Code
14891 status collapsed
14892
14893 \begin_layout Plain Layout
14894 Margin
14895 \end_layout
14896
14897 \end_inset
14898
14899  [
14900 \begin_inset Flex Code
14901 status collapsed
14902
14903 \begin_layout Plain Layout
14904
14905 \emph on
14906 Static
14907 \emph default
14908 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14909 \end_layout
14910
14911 \end_inset
14912
14913
14914 \begin_inset Newline newline
14915 \end_inset
14916
14917 The kind of margin that the style has on the left side.
14918 \end_layout
14919
14920 \begin_deeper
14921 \begin_layout Description
14922 \begin_inset Flex Code
14923 status collapsed
14924
14925 \begin_layout Plain Layout
14926 Static
14927 \end_layout
14928
14929 \end_inset
14930
14931  just means a fixed margin.
14932 \end_layout
14933
14934 \begin_layout Description
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 Manual
14940 \end_layout
14941
14942 \end_inset
14943
14944  means that the left margin depends on the string entered in the 
14945 \begin_inset Flex Noun
14946 status collapsed
14947
14948 \begin_layout Plain Layout
14949 Edit\SpecialChar menuseparator
14950 Paragraph
14951 \begin_inset space ~
14952 \end_inset
14953
14954 Settings
14955 \end_layout
14956
14957 \end_inset
14958
14959  dialog.
14960  This is used to typeset nice lists without tabulators.
14961 \end_layout
14962
14963 \begin_layout Description
14964 \begin_inset Flex Code
14965 status collapsed
14966
14967 \begin_layout Plain Layout
14968 Dynamic
14969 \end_layout
14970
14971 \end_inset
14972
14973  means that the margin depends on the size of the label.
14974  This is used for automatic enumerated headlines.
14975  It is obvious that the headline 
14976 \begin_inset Quotes eld
14977 \end_inset
14978
14979 5.4.3.2.1 Very long headline
14980 \begin_inset Quotes erd
14981 \end_inset
14982
14983  must have a wider left margin (as wide as 
14984 \begin_inset Quotes eld
14985 \end_inset
14986
14987 5.4.3.2.1
14988 \begin_inset Quotes erd
14989 \end_inset
14990
14991  plus the space) than 
14992 \begin_inset Quotes eld
14993 \end_inset
14994
14995 3.2 Very long headline
14996 \begin_inset Quotes erd
14997 \end_inset
14998
14999 , even if standard 
15000 \begin_inset Quotes eld
15001 \end_inset
15002
15003 word processors
15004 \begin_inset Quotes erd
15005 \end_inset
15006
15007  are not able to do this.
15008 \end_layout
15009
15010 \begin_layout Description
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 First_Dynamic
15016 \end_layout
15017
15018 \end_inset
15019
15020  is similar, but only the very first row of the paragraph is dynamic, while
15021  the others are static; this is used, for example, for descriptions.
15022 \end_layout
15023
15024 \begin_layout Description
15025 \begin_inset Flex Code
15026 status collapsed
15027
15028 \begin_layout Plain Layout
15029 Right_Address_Box
15030 \end_layout
15031
15032 \end_inset
15033
15034  means the margin is chosen in a way that the longest row of this paragraph
15035  fits to the right margin.
15036  This is used to typeset an address on the right edge of the page.
15037 \end_layout
15038
15039 \end_deeper
15040 \begin_layout Description
15041 \begin_inset Flex Code
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045 NeedProtect
15046 \end_layout
15047
15048 \end_inset
15049
15050  [
15051 \begin_inset Flex Code
15052 status collapsed
15053
15054 \begin_layout Plain Layout
15055
15056 \emph on
15057 0
15058 \end_layout
15059
15060 \end_inset
15061
15062 ,
15063 \begin_inset space \thinspace{}
15064 \end_inset
15065
15066
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 1
15072 \end_layout
15073
15074 \end_inset
15075
15076 ] Whether fragile commands in this style should be 
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081
15082 \backslash
15083 protect
15084 \end_layout
15085
15086 \end_inset
15087
15088 'ed.
15089  (Note: This is 
15090 \emph on
15091 not
15092 \emph default
15093  whether this command should itself be protected.)
15094 \change_inserted -712698321 1523696949
15095
15096 \end_layout
15097
15098 \begin_layout Description
15099
15100 \change_inserted -712698321 1523696969
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105
15106 \change_inserted -712698321 1523696950
15107 NeedCProtect
15108 \end_layout
15109
15110 \end_inset
15111
15112  [
15113 \begin_inset Flex Code
15114 status collapsed
15115
15116 \begin_layout Plain Layout
15117
15118 \change_inserted -712698321 1523696950
15119
15120 \emph on
15121 0
15122 \end_layout
15123
15124 \end_inset
15125
15126 ,
15127 \begin_inset space \thinspace{}
15128 \end_inset
15129
15130
15131 \begin_inset Flex Code
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135
15136 \change_inserted -712698321 1523696950
15137 1
15138 \end_layout
15139
15140 \end_inset
15141
15142 ] This causes macros that contain this layout to be protected with 
15143 \begin_inset Flex Code
15144 status collapsed
15145
15146 \begin_layout Plain Layout
15147
15148 \change_inserted -712698321 1523696950
15149
15150 \backslash
15151 cprotect
15152 \end_layout
15153
15154 \end_inset
15155
15156  (cf.
15157  package 
15158 \family sans
15159 cprotect
15160 \family default
15161 ) if necessary and thus allows (some) verbatim stuff in macros.
15162 \change_unchanged
15163
15164 \end_layout
15165
15166 \begin_layout Description
15167 \begin_inset Flex Code
15168 status collapsed
15169
15170 \begin_layout Plain Layout
15171 Newline
15172 \end_layout
15173
15174 \end_inset
15175
15176  [
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 0
15182 \end_layout
15183
15184 \end_inset
15185
15186 ,
15187 \begin_inset space \thinspace{}
15188 \end_inset
15189
15190
15191 \begin_inset Flex Code
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195
15196 \emph on
15197 1
15198 \end_layout
15199
15200 \end_inset
15201
15202 ] Whether newlines are translated into \SpecialChar LaTeX
15203  newlines (
15204 \begin_inset Flex Code
15205 status collapsed
15206
15207 \begin_layout Plain Layout
15208
15209 \backslash
15210
15211 \backslash
15212
15213 \end_layout
15214
15215 \end_inset
15216
15217 ) or not.
15218  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15219  editing
15220  inside \SpecialChar LyX
15221 .
15222 \end_layout
15223
15224 \begin_layout Description
15225 \begin_inset Flex Code
15226 status collapsed
15227
15228 \begin_layout Plain Layout
15229 NextNoIndent
15230 \end_layout
15231
15232 \end_inset
15233
15234  [
15235 \begin_inset Flex Code
15236 status collapsed
15237
15238 \begin_layout Plain Layout
15239
15240 \emph on
15241 0
15242 \end_layout
15243
15244 \end_inset
15245
15246 ,
15247 \begin_inset space \thinspace{}
15248 \end_inset
15249
15250
15251 \begin_inset Flex Code
15252 status collapsed
15253
15254 \begin_layout Plain Layout
15255 1
15256 \end_layout
15257
15258 \end_inset
15259
15260 ] If set to true, and if 
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 DefaultStyle
15266 \end_layout
15267
15268 \end_inset
15269
15270  (usually 
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275 Standard
15276 \end_layout
15277
15278 \end_inset
15279
15280 ) paragraphs are being indented, then the indentation of such a paragraph
15281  following one of this type will be suppressed.
15282  (So this will not affect the display of non-default paragraphs.)
15283 \end_layout
15284
15285 \begin_layout Description
15286 \begin_inset Flex Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290 ObsoletedBy
15291 \end_layout
15292
15293 \end_inset
15294
15295  [
15296 \begin_inset Flex Code
15297 status collapsed
15298
15299 \begin_layout Plain Layout
15300 <name>
15301 \end_layout
15302
15303 \end_inset
15304
15305 ] Name of a style that has replaced this style.
15306  This is used to rename a style, while keeping backward compatibility.
15307 \end_layout
15308
15309 \begin_layout Description
15310 \begin_inset Flex Code
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 ParagraphGroup
15315 \end_layout
15316
15317 \end_inset
15318
15319  [
15320 \begin_inset Flex Code
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324 0
15325 \end_layout
15326
15327 \end_inset
15328
15329 ,
15330 \begin_inset space \thinspace{}
15331 \end_inset
15332
15333
15334 \begin_inset Flex Code
15335 status collapsed
15336
15337 \begin_layout Plain Layout
15338 1
15339 \end_layout
15340
15341 \end_inset
15342
15343 ] Determines whether consecutive paragraphs of the same type are treated
15344  as belonging together.
15345  This has the effect that the 
15346 \begin_inset Flex Code
15347 status collapsed
15348
15349 \begin_layout Plain Layout
15350 GuiLabel
15351 \end_layout
15352
15353 \end_inset
15354
15355  is only printed once before such a group.
15356  By default, this is true for 
15357 \begin_inset Flex Code
15358 status collapsed
15359
15360 \begin_layout Plain Layout
15361 LaTeXType
15362 \end_layout
15363
15364 \end_inset
15365
15366  
15367 \begin_inset Flex Code
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371 Environment
15372 \end_layout
15373
15374 \end_inset
15375
15376  and 
15377 \begin_inset Flex Code
15378 status collapsed
15379
15380 \begin_layout Plain Layout
15381 Bib_Environment
15382 \end_layout
15383
15384 \end_inset
15385
15386  and false for all other types.
15387 \end_layout
15388
15389 \begin_layout Description
15390 \begin_inset Flex Code
15391 status collapsed
15392
15393 \begin_layout Plain Layout
15394 ParbreakIsNewline
15395 \end_layout
15396
15397 \end_inset
15398
15399  [
15400 \begin_inset Flex Code
15401 status collapsed
15402
15403 \begin_layout Plain Layout
15404
15405 \emph on
15406 0
15407 \end_layout
15408
15409 \end_inset
15410
15411 ,
15412 \begin_inset space \thinspace{}
15413 \end_inset
15414
15415
15416 \begin_inset Flex Code
15417 status collapsed
15418
15419 \begin_layout Plain Layout
15420 1
15421 \end_layout
15422
15423 \end_inset
15424
15425 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15426  output,
15427  but only by a line break; together with 
15428 \begin_inset Flex Code
15429 status collapsed
15430
15431 \begin_layout Plain Layout
15432 PassThru 1
15433 \end_layout
15434
15435 \end_inset
15436
15437 , this allows to emulate a plain text editor (like the ERT inset).
15438 \end_layout
15439
15440 \begin_layout Description
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445 ParIndent
15446 \end_layout
15447
15448 \end_inset
15449
15450  [
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455 string=""
15456 \end_layout
15457
15458 \end_inset
15459
15460 ] The indent of the very first line of a paragraph.
15461  The
15462 \begin_inset Newline newline
15463 \end_inset
15464
15465
15466 \begin_inset Flex Code
15467 status collapsed
15468
15469 \begin_layout Plain Layout
15470 Parindent
15471 \end_layout
15472
15473 \end_inset
15474
15475  will be fixed for a certain style.
15476  The exception is the default style, since the indentation for these paragraphs
15477  can be prohibited with 
15478 \begin_inset Flex Code
15479 status collapsed
15480
15481 \begin_layout Plain Layout
15482 NextNoIndent
15483 \end_layout
15484
15485 \end_inset
15486
15487 .
15488  Also, 
15489 \begin_inset Flex Code
15490 status collapsed
15491
15492 \begin_layout Plain Layout
15493 Standard
15494 \end_layout
15495
15496 \end_inset
15497
15498  style paragraphs inside environments use the 
15499 \begin_inset Flex Code
15500 status collapsed
15501
15502 \begin_layout Plain Layout
15503 Parindent
15504 \end_layout
15505
15506 \end_inset
15507
15508  of the environment, not their native one.
15509  For example, 
15510 \begin_inset Flex Code
15511 status collapsed
15512
15513 \begin_layout Plain Layout
15514 Standard
15515 \end_layout
15516
15517 \end_inset
15518
15519  paragraphs inside an enumeration are not indented.
15520 \end_layout
15521
15522 \begin_layout Description
15523 \begin_inset Flex Code
15524 status collapsed
15525
15526 \begin_layout Plain Layout
15527 ParSep
15528 \end_layout
15529
15530 \end_inset
15531
15532  [
15533 \begin_inset Flex Code
15534 status collapsed
15535
15536 \begin_layout Plain Layout
15537 float=0
15538 \end_layout
15539
15540 \end_inset
15541
15542 ] The vertical space between two paragraphs of this style.
15543 \end_layout
15544
15545 \begin_layout Description
15546 \begin_inset Flex Code
15547 status collapsed
15548
15549 \begin_layout Plain Layout
15550 Parskip
15551 \end_layout
15552
15553 \end_inset
15554
15555  [
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 float=0
15561 \end_layout
15562
15563 \end_inset
15564
15565 ] \SpecialChar LyX
15566  allows the user to choose either 
15567 \begin_inset Quotes eld
15568 \end_inset
15569
15570 indent
15571 \begin_inset Quotes erd
15572 \end_inset
15573
15574  or 
15575 \begin_inset Quotes eld
15576 \end_inset
15577
15578 skip
15579 \begin_inset Quotes erd
15580 \end_inset
15581
15582  to separate paragraphs.
15583  When 
15584 \begin_inset Quotes eld
15585 \end_inset
15586
15587 indent
15588 \begin_inset Quotes erd
15589 \end_inset
15590
15591  is chosen, 
15592 \begin_inset Flex Code
15593 status collapsed
15594
15595 \begin_layout Plain Layout
15596 Parskip
15597 \end_layout
15598
15599 \end_inset
15600
15601  is ignored.
15602  When 
15603 \begin_inset Quotes eld
15604 \end_inset
15605
15606 skip
15607 \begin_inset Quotes erd
15608 \end_inset
15609
15610  is chosen, 
15611 \begin_inset Flex Code
15612 status collapsed
15613
15614 \begin_layout Plain Layout
15615 ParIndent
15616 \end_layout
15617
15618 \end_inset
15619
15620  is ignored and all paragraphs are separated by the 
15621 \begin_inset Flex Code
15622 status collapsed
15623
15624 \begin_layout Plain Layout
15625 Parskip
15626 \end_layout
15627
15628 \end_inset
15629
15630  argument.
15631  The vertical space is calculated with 
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 Parskip
15637 \begin_inset space ~
15638 \end_inset
15639
15640 * DefaultHeight
15641 \end_layout
15642
15643 \end_inset
15644
15645  where 
15646 \begin_inset Flex Code
15647 status collapsed
15648
15649 \begin_layout Plain Layout
15650 DefaultHeight
15651 \end_layout
15652
15653 \end_inset
15654
15655  is the height of a row with the normal font.
15656  This way, the look stays the same with different screen fonts.
15657 \end_layout
15658
15659 \begin_layout Description
15660 \begin_inset Flex Code
15661 status collapsed
15662
15663 \begin_layout Plain Layout
15664 PassThru
15665 \end_layout
15666
15667 \end_inset
15668
15669  [
15670 \begin_inset Flex Code
15671 status collapsed
15672
15673 \begin_layout Plain Layout
15674
15675 \emph on
15676 0
15677 \end_layout
15678
15679 \end_inset
15680
15681 ,
15682 \begin_inset space \thinspace{}
15683 \end_inset
15684
15685
15686 \begin_inset Flex Code
15687 status collapsed
15688
15689 \begin_layout Plain Layout
15690 1
15691 \end_layout
15692
15693 \end_inset
15694
15695 ] Whether the contents of this paragraph should be output in raw form, meaning
15696  without special translations that \SpecialChar LaTeX
15697  would require.
15698 \end_layout
15699
15700 \begin_layout Description
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705 PassThruChars
15706 \end_layout
15707
15708 \end_inset
15709
15710  [
15711 \begin_inset Flex Code
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715 string
15716 \end_layout
15717
15718 \end_inset
15719
15720 ]
15721 \family typewriter
15722  
15723 \family default
15724 Defines individual characters that should be output in raw form, meaning
15725  without special translations that \SpecialChar LaTeX
15726  would require.
15727 \end_layout
15728
15729 \begin_layout Description
15730 \begin_inset Flex Code
15731 status collapsed
15732
15733 \begin_layout Plain Layout
15734 Preamble
15735 \end_layout
15736
15737 \end_inset
15738
15739  Information to be included in the \SpecialChar LaTeX
15740  preamble when this style is used.
15741  Used to define macros, load packages, etc., required by this particular
15742  style.
15743  Must end with 
15744 \begin_inset Quotes eld
15745 \end_inset
15746
15747
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752 EndPreamble
15753 \end_layout
15754
15755 \end_inset
15756
15757
15758 \begin_inset Quotes erd
15759 \end_inset
15760
15761 .
15762 \end_layout
15763
15764 \begin_layout Description
15765 \begin_inset Flex Code
15766 status collapsed
15767
15768 \begin_layout Plain Layout
15769 RefPrefix
15770 \end_layout
15771
15772 \end_inset
15773
15774  [
15775 \begin_inset Flex Code
15776 status collapsed
15777
15778 \begin_layout Plain Layout
15779 string
15780 \end_layout
15781
15782 \end_inset
15783
15784 ] The prefix to use when creating labels referring to paragraphs of this
15785  type.
15786  This allows the use of formatted references.
15787 \end_layout
15788
15789 \begin_layout Description
15790 \begin_inset Flex Code
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794 Requires 
15795 \end_layout
15796
15797 \end_inset
15798
15799  [
15800 \begin_inset Flex Code
15801 status collapsed
15802
15803 \begin_layout Plain Layout
15804 string
15805 \end_layout
15806
15807 \end_inset
15808
15809 ] Whether the style requires the feature 
15810 \begin_inset Flex Code
15811 status collapsed
15812
15813 \begin_layout Plain Layout
15814 string
15815 \end_layout
15816
15817 \end_inset
15818
15819  (see 
15820 \begin_inset CommandInset ref
15821 LatexCommand ref
15822 reference "chap:List-of-functions"
15823
15824 \end_inset
15825
15826  for the list of features).
15827  If you require a package with specific options, you can additionally use
15828  
15829 \begin_inset Flex Code
15830 status collapsed
15831
15832 \begin_layout Plain Layout
15833 PackageOptions
15834 \end_layout
15835
15836 \end_inset
15837
15838  as a general text class parameter (see 
15839 \begin_inset CommandInset ref
15840 LatexCommand ref
15841 reference "subsec:General-text-class"
15842
15843 \end_inset
15844
15845 ).
15846 \end_layout
15847
15848 \begin_layout Description
15849 \begin_inset Flex Code
15850 status collapsed
15851
15852 \begin_layout Plain Layout
15853 ResetArgs
15854 \end_layout
15855
15856 \end_inset
15857
15858  [
15859 \begin_inset Flex Code
15860 status collapsed
15861
15862 \begin_layout Plain Layout
15863
15864 \emph on
15865 0
15866 \end_layout
15867
15868 \end_inset
15869
15870 ,
15871 \begin_inset Flex Code
15872 status collapsed
15873
15874 \begin_layout Plain Layout
15875 1
15876 \end_layout
15877
15878 \end_inset
15879
15880 ] Resets the \SpecialChar LaTeX
15881  arguments of this style (as defined via the 
15882 \begin_inset Flex Code
15883 status collapsed
15884
15885 \begin_layout Plain Layout
15886 Argument
15887 \end_layout
15888
15889 \end_inset
15890
15891  tag).
15892  This is useful if you have copied a style via 
15893 \begin_inset Flex Code
15894 status collapsed
15895
15896 \begin_layout Plain Layout
15897 CopyStyle
15898 \end_layout
15899
15900 \end_inset
15901
15902 , but you do not want to inherit its (required and optional) arguments.
15903 \end_layout
15904
15905 \begin_layout Description
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 ResumeCounter
15911 \end_layout
15912
15913 \end_inset
15914
15915  [
15916 \begin_inset Flex Code
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920
15921 \emph on
15922 0
15923 \end_layout
15924
15925 \end_inset
15926
15927 ,
15928 \begin_inset Flex Code
15929 status collapsed
15930
15931 \begin_layout Plain Layout
15932 1
15933 \end_layout
15934
15935 \end_inset
15936
15937 ] Resumes a counter that is usually reset at each new sequence of layouts.
15938  This is currently only useful when 
15939 \begin_inset Flex Code
15940 status collapsed
15941
15942 \begin_layout Plain Layout
15943 LabelType
15944 \end_layout
15945
15946 \end_inset
15947
15948  is 
15949 \begin_inset Flex Code
15950 status collapsed
15951
15952 \begin_layout Plain Layout
15953 Enumerate
15954 \end_layout
15955
15956 \end_inset
15957
15958 .
15959 \end_layout
15960
15961 \begin_layout Description
15962 \begin_inset Flex Code
15963 status collapsed
15964
15965 \begin_layout Plain Layout
15966 RightDelim
15967 \end_layout
15968
15969 \end_inset
15970
15971  [
15972 \begin_inset Flex Code
15973 status collapsed
15974
15975 \begin_layout Plain Layout
15976 string
15977 \end_layout
15978
15979 \end_inset
15980
15981 ] A string that is put at the end of the layout content.
15982  A line break in the output can be indicated by 
15983 \begin_inset Flex Code
15984 status collapsed
15985
15986 \begin_layout Plain Layout
15987 <br/>
15988 \end_layout
15989
15990 \end_inset
15991
15992 .
15993 \end_layout
15994
15995 \begin_layout Description
15996 \begin_inset Flex Code
15997 status collapsed
15998
15999 \begin_layout Plain Layout
16000 RightMargin
16001 \end_layout
16002
16003 \end_inset
16004
16005  [
16006 \begin_inset Flex Code
16007 status collapsed
16008
16009 \begin_layout Plain Layout
16010 string=""
16011 \end_layout
16012
16013 \end_inset
16014
16015 ] Similar to 
16016 \begin_inset Flex Code
16017 status collapsed
16018
16019 \begin_layout Plain Layout
16020 LeftMargin
16021 \end_layout
16022
16023 \end_inset
16024
16025 .
16026 \end_layout
16027
16028 \begin_layout Description
16029 \begin_inset Flex Code
16030 status collapsed
16031
16032 \begin_layout Plain Layout
16033 Spacing
16034 \end_layout
16035
16036 \end_inset
16037
16038  [
16039 \begin_inset Flex Code
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043
16044 \emph on
16045 single
16046 \end_layout
16047
16048 \end_inset
16049
16050
16051 \begin_inset Flex Code
16052 status collapsed
16053
16054 \begin_layout Plain Layout
16055 onehalf
16056 \end_layout
16057
16058 \end_inset
16059
16060
16061 \begin_inset Flex Code
16062 status collapsed
16063
16064 \begin_layout Plain Layout
16065 double
16066 \end_layout
16067
16068 \end_inset
16069
16070
16071 \begin_inset Flex Code
16072 status collapsed
16073
16074 \begin_layout Plain Layout
16075 other
16076 \begin_inset space ~
16077 \end_inset
16078
16079 <value>
16080 \end_layout
16081
16082 \end_inset
16083
16084 ] This defines what the default spacing should be in the style.
16085  The arguments 
16086 \begin_inset Flex Code
16087 status collapsed
16088
16089 \begin_layout Plain Layout
16090 single
16091 \end_layout
16092
16093 \end_inset
16094
16095
16096 \begin_inset Flex Code
16097 status collapsed
16098
16099 \begin_layout Plain Layout
16100 onehalf
16101 \end_layout
16102
16103 \end_inset
16104
16105  and 
16106 \begin_inset Flex Code
16107 status collapsed
16108
16109 \begin_layout Plain Layout
16110 double
16111 \end_layout
16112
16113 \end_inset
16114
16115  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16116  If you specify the argument 
16117 \begin_inset Flex Code
16118 status collapsed
16119
16120 \begin_layout Plain Layout
16121 other
16122 \end_layout
16123
16124 \end_inset
16125
16126 , then you must also provide a value argument which will be the actual multiplie
16127 r value.
16128  Note that, contrary to other parameters, 
16129 \begin_inset Flex Code
16130 status collapsed
16131
16132 \begin_layout Plain Layout
16133 Spacing
16134 \end_layout
16135
16136 \end_inset
16137
16138  implies the generation of specific \SpecialChar LaTeX
16139  code, using the \SpecialChar LaTeX
16140  package 
16141 \family roman
16142
16143 \begin_inset Flex Code
16144 status collapsed
16145
16146 \begin_layout Plain Layout
16147 setspace
16148 \end_layout
16149
16150 \end_inset
16151
16152 .
16153 \end_layout
16154
16155 \begin_layout Description
16156 \begin_inset Flex Code
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160 Spellcheck
16161 \end_layout
16162
16163 \end_inset
16164
16165  [
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 0
16171 \end_layout
16172
16173 \end_inset
16174
16175 ,
16176 \begin_inset space \thinspace{}
16177 \end_inset
16178
16179
16180 \begin_inset Flex Code
16181 status collapsed
16182
16183 \begin_layout Plain Layout
16184
16185 \emph on
16186 1
16187 \end_layout
16188
16189 \end_inset
16190
16191 ] Allow spell-checking paragraphs of this style.
16192  Default is true.
16193 \end_layout
16194
16195 \begin_layout Description
16196 \begin_inset Flex Code
16197 status collapsed
16198
16199 \begin_layout Plain Layout
16200 StepMasterCounter
16201 \end_layout
16202
16203 \end_inset
16204
16205  [
16206 \begin_inset Flex Code
16207 status collapsed
16208
16209 \begin_layout Plain Layout
16210
16211 \emph on
16212 0
16213 \end_layout
16214
16215 \end_inset
16216
16217 ,
16218 \begin_inset Flex Code
16219 status collapsed
16220
16221 \begin_layout Plain Layout
16222 1
16223 \end_layout
16224
16225 \end_inset
16226
16227 ] Steps the master counter of a given counter at the beginning of a new
16228  sequence of layouts.
16229  This is currently only useful when 
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 LabelType
16235 \end_layout
16236
16237 \end_inset
16238
16239  is 
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244 Enumerate
16245 \end_layout
16246
16247 \end_inset
16248
16249 .
16250 \end_layout
16251
16252 \begin_layout Description
16253 \begin_inset Flex Code
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257 TextFont
16258 \end_layout
16259
16260 \end_inset
16261
16262  The font used for the text body .
16263  See 
16264 \begin_inset CommandInset ref
16265 LatexCommand ref
16266 reference "subsec:Font-description"
16267
16268 \end_inset
16269
16270 .
16271 \end_layout
16272
16273 \begin_layout Description
16274 \begin_inset Flex Code
16275 status collapsed
16276
16277 \begin_layout Plain Layout
16278 TocLevel
16279 \end_layout
16280
16281 \end_inset
16282
16283
16284 \series medium
16285  [
16286 \begin_inset Flex Code
16287 status collapsed
16288
16289 \begin_layout Plain Layout
16290
16291 \series medium
16292 int=3
16293 \end_layout
16294
16295 \end_inset
16296
16297 ]
16298 \series default
16299  The level of the style in the table of contents.
16300  This is used for automatic numbering of section headings.
16301 \end_layout
16302
16303 \begin_layout Description
16304 \begin_inset Flex Code
16305 status collapsed
16306
16307 \begin_layout Plain Layout
16308 ToggleIndent
16309 \end_layout
16310
16311 \end_inset
16312
16313  [
16314 \emph on
16315
16316 \begin_inset Flex Code
16317 status collapsed
16318
16319 \begin_layout Plain Layout
16320
16321 \emph on
16322 default
16323 \end_layout
16324
16325 \end_inset
16326
16327
16328 \emph default
16329
16330 \begin_inset Flex Code
16331 status collapsed
16332
16333 \begin_layout Plain Layout
16334 always
16335 \end_layout
16336
16337 \end_inset
16338
16339
16340 \begin_inset Flex Code
16341 status collapsed
16342
16343 \begin_layout Plain Layout
16344 never
16345 \end_layout
16346
16347 \end_inset
16348
16349 ] This tag determines whether the first line indentation of this paragraph
16350  can be toggled via the Paragraph settings dialog.
16351  If 
16352 \emph on
16353
16354 \begin_inset Flex Code
16355 status collapsed
16356
16357 \begin_layout Plain Layout
16358
16359 \emph off
16360 default
16361 \end_layout
16362
16363 \end_inset
16364
16365
16366 \emph default
16367  is set, indentation can be toggled if the document settings use 
16368 \begin_inset Quotes eld
16369 \end_inset
16370
16371 indent
16372 \begin_inset Quotes erd
16373 \end_inset
16374
16375  paragraph style, with 
16376 \begin_inset Flex Code
16377 status collapsed
16378
16379 \begin_layout Plain Layout
16380 always
16381 \end_layout
16382
16383 \end_inset
16384
16385 , indentation can always be toggled, notwithstanding the document settings,
16386  with 
16387 \begin_inset Flex Code
16388 status collapsed
16389
16390 \begin_layout Plain Layout
16391 never
16392 \end_layout
16393
16394 \end_inset
16395
16396 , indentation can never be toggled.
16397 \end_layout
16398
16399 \begin_layout Description
16400 \begin_inset Flex Code
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404 TopSep
16405 \end_layout
16406
16407 \end_inset
16408
16409  [
16410 \begin_inset Flex Code
16411 status collapsed
16412
16413 \begin_layout Plain Layout
16414 float=0
16415 \end_layout
16416
16417 \end_inset
16418
16419 ] The vertical space with which the very first of a chain of paragraphs
16420  with this style is separated from the previous paragraph.
16421  If the previous paragraph has another style, the separations are not simply
16422  added, but the maximum is taken.
16423 \end_layout
16424
16425 \begin_layout Subsection
16426 \begin_inset CommandInset label
16427 LatexCommand label
16428 name "subsec:I18n"
16429
16430 \end_inset
16431
16432 Internationalization of Paragraph Styles
16433 \end_layout
16434
16435 \begin_layout Standard
16436 \SpecialChar LyX
16437  has long supported internationalization of layout information, but, until
16438  version 2.0, this applied only to the user interface and not to, say, PDF
16439  output.
16440  Thus, French authors were forced to resort to ugly hacks if they wanted
16441  `
16442 \lang french
16443 Théorème
16444 \lang english
16445  1' instead of `Theorem 1'.
16446  Thanks to Georg Baum, that is no longer the case.
16447 \end_layout
16448
16449 \begin_layout Standard
16450 If a 
16451 \begin_inset Flex Code
16452 status collapsed
16453
16454 \begin_layout Plain Layout
16455 Style
16456 \end_layout
16457
16458 \end_inset
16459
16460  defines text that is to appear in the typeset document, it may use 
16461 \begin_inset Flex Code
16462 status collapsed
16463
16464 \begin_layout Plain Layout
16465 LangPreamble
16466 \end_layout
16467
16468 \end_inset
16469
16470  and 
16471 \begin_inset Flex Code
16472 status collapsed
16473
16474 \begin_layout Plain Layout
16475 BabelPreamble
16476 \end_layout
16477
16478 \end_inset
16479
16480  to support non-English and even multi-language documents correctly.
16481  The following excerpt (from the 
16482 \begin_inset Flex Code
16483 status collapsed
16484
16485 \begin_layout Plain Layout
16486 theorems-ams.inc
16487 \end_layout
16488
16489 \end_inset
16490
16491  file) shows how this works:
16492 \end_layout
16493
16494 \begin_layout LyX-Code
16495 Preamble
16496 \end_layout
16497
16498 \begin_deeper
16499 \begin_layout LyX-Code
16500   
16501 \backslash
16502 theoremstyle{remark}
16503 \end_layout
16504
16505 \begin_layout LyX-Code
16506   
16507 \backslash
16508 newtheorem{claim}[thm]{
16509 \backslash
16510 protect
16511 \backslash
16512 claimname}
16513 \end_layout
16514
16515 \begin_layout LyX-Code
16516 EndPreamble
16517 \end_layout
16518
16519 \begin_layout LyX-Code
16520 LangPreamble
16521 \end_layout
16522
16523 \begin_layout LyX-Code
16524   
16525 \backslash
16526 providecommand{
16527 \backslash
16528 claimname}{_(Claim)}
16529 \end_layout
16530
16531 \begin_layout LyX-Code
16532 EndLangPreamble
16533 \end_layout
16534
16535 \begin_layout LyX-Code
16536 BabelPreamble
16537 \end_layout
16538
16539 \begin_layout LyX-Code
16540     
16541 \backslash
16542 addto
16543 \backslash
16544 captions$$lang{
16545 \backslash
16546 renewcommand{
16547 \backslash
16548 claimname}{_(Claim)}}
16549 \end_layout
16550
16551 \begin_layout LyX-Code
16552 EndBabelPreamble
16553 \end_layout
16554
16555 \end_deeper
16556 \begin_layout Standard
16557 In principle, any legal \SpecialChar LaTeX
16558  may appear in the 
16559 \begin_inset Flex Code
16560 status collapsed
16561
16562 \begin_layout Plain Layout
16563 LangPreamble
16564 \end_layout
16565
16566 \end_inset
16567
16568  and 
16569 \begin_inset Flex Code
16570 status collapsed
16571
16572 \begin_layout Plain Layout
16573 BabelPreamble
16574 \end_layout
16575
16576 \end_inset
16577
16578  tags, but in practice they will typically look as they do here.
16579  The key to correct translation of the typeset text is the definition of
16580  the \SpecialChar LaTeX
16581  command 
16582 \begin_inset Flex Code
16583 status collapsed
16584
16585 \begin_layout Plain Layout
16586
16587 \backslash
16588 claimname
16589 \end_layout
16590
16591 \end_inset
16592
16593  and its use in 
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598
16599 \backslash
16600 newtheorem
16601 \end_layout
16602
16603 \end_inset
16604
16605 .
16606  
16607 \end_layout
16608
16609 \begin_layout Standard
16610 The 
16611 \begin_inset Flex Code
16612 status collapsed
16613
16614 \begin_layout Plain Layout
16615 LangPreamble
16616 \end_layout
16617
16618 \end_inset
16619
16620  tag provides for internationalization based upon the overall language of
16621  the document.
16622  The contents of the tag will be included in the preamble, just as with
16623  the 
16624 \begin_inset Flex Code
16625 status collapsed
16626
16627 \begin_layout Plain Layout
16628 Preamble
16629 \end_layout
16630
16631 \end_inset
16632
16633  tag.
16634  What makes it special is the use of the 
16635 \begin_inset Quotes eld
16636 \end_inset
16637
16638 function
16639 \begin_inset Quotes erd
16640 \end_inset
16641
16642  
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647 _()
16648 \end_layout
16649
16650 \end_inset
16651
16652 , which will be replaced, when \SpecialChar LyX
16653  produces \SpecialChar LaTeX
16654  output, with the translation of
16655  its argument into the document language.
16656 \end_layout
16657
16658 \begin_layout Standard
16659 The 
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 BabelPreamble
16665 \end_layout
16666
16667 \end_inset
16668
16669  tag is more complex, since it is meant to provide support for multi-language
16670  documents and so offers an interface to the 
16671 \begin_inset Flex Code
16672 status collapsed
16673
16674 \begin_layout Plain Layout
16675 babel
16676 \end_layout
16677
16678 \end_inset
16679
16680  package.
16681  Its contents will be added to the preamble once for each language that
16682  appears in the document.
16683  In this case, the argument to 
16684 \begin_inset Flex Code
16685 status collapsed
16686
16687 \begin_layout Plain Layout
16688 _()
16689 \end_layout
16690
16691 \end_inset
16692
16693  will be replaced with its translation into the language in question; the
16694  expression 
16695 \begin_inset Flex Code
16696 status collapsed
16697
16698 \begin_layout Plain Layout
16699 $$lang
16700 \end_layout
16701
16702 \end_inset
16703
16704  is replaced by the language name (as used by the babel package).
16705 \end_layout
16706
16707 \begin_layout Standard
16708 A German document that also included a French section would thus have the
16709  following in the preamble:
16710 \end_layout
16711
16712 \begin_layout LyX-Code
16713
16714 \backslash
16715 addto
16716 \backslash
16717 captionsfrench{
16718 \backslash
16719 renewcommand{
16720 \backslash
16721 claimname}{Affirmation}}
16722 \begin_inset Newline newline
16723 \end_inset
16724
16725
16726 \backslash
16727 addto
16728 \backslash
16729 captionsngerman{
16730 \backslash
16731 renewcommand{
16732 \backslash
16733 claimname}{Behauptung}}
16734 \begin_inset Newline newline
16735 \end_inset
16736
16737
16738 \backslash
16739 providecommand{
16740 \backslash
16741 claimname}{Behauptung}
16742 \end_layout
16743
16744 \begin_layout Standard
16745 \SpecialChar LaTeX
16746  and 
16747 \begin_inset Flex Code
16748 status collapsed
16749
16750 \begin_layout Plain Layout
16751 babel
16752 \end_layout
16753
16754 \end_inset
16755
16756  will then conspire to produce the correct text in the output.
16757 \end_layout
16758
16759 \begin_layout Standard
16760 One important point to note here is that the translations are provided by
16761  \SpecialChar LyX
16762  itself, through the file 
16763 \begin_inset Flex Code
16764 status collapsed
16765
16766 \begin_layout Plain Layout
16767 layouttranslations
16768 \end_layout
16769
16770 \end_inset
16771
16772 .
16773  This means, in effect, that 
16774 \begin_inset Flex Code
16775 status collapsed
16776
16777 \begin_layout Plain Layout
16778 LangPreamble
16779 \end_layout
16780
16781 \end_inset
16782
16783  and 
16784 \begin_inset Flex Code
16785 status collapsed
16786
16787 \begin_layout Plain Layout
16788 BabelPreamble
16789 \end_layout
16790
16791 \end_inset
16792
16793  are really only of use in layout files that are provided with \SpecialChar LyX
16794 , since text
16795  entered in user-created layout files will not be seen by \SpecialChar LyX
16796 's internationalizatio
16797 n routines unless the 
16798 \begin_inset Flex Code
16799 status collapsed
16800
16801 \begin_layout Plain Layout
16802 layouttranslations
16803 \end_layout
16804
16805 \end_inset
16806
16807  file is modified accordingly.
16808  That said, however, any layout created with the intention that it will
16809  be included with \SpecialChar LyX
16810  should use these tags where appropriate.
16811  Please note that the paragraph style translations provided by \SpecialChar LyX
16812  will never
16813  change with a minor update (e.
16814 \begin_inset space \thinspace{}
16815 \end_inset
16816
16817 g.
16818 \begin_inset space \space{}
16819 \end_inset
16820
16821 from version 2.1.x to 2.1.y).
16822  It is however quite likely that a major update (e.
16823 \begin_inset space \thinspace{}
16824 \end_inset
16825
16826 g.
16827 \begin_inset space \space{}
16828 \end_inset
16829
16830 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16831 \end_layout
16832
16833 \begin_layout Subsection
16834 Floats
16835 \begin_inset CommandInset label
16836 LatexCommand label
16837 name "subsec:Floats"
16838
16839 \end_inset
16840
16841
16842 \end_layout
16843
16844 \begin_layout Standard
16845 It is necessary to define the floats (
16846 \begin_inset Flex Noun
16847 status collapsed
16848
16849 \begin_layout Plain Layout
16850 figure
16851 \end_layout
16852
16853 \end_inset
16854
16855
16856 \begin_inset Flex Noun
16857 status collapsed
16858
16859 \begin_layout Plain Layout
16860 table
16861 \end_layout
16862
16863 \end_inset
16864
16865 , \SpecialChar ldots
16866 ) in the text class itself.
16867  Standard floats are included in the file 
16868 \begin_inset Flex Code
16869 status collapsed
16870
16871 \begin_layout Plain Layout
16872 stdfloats.inc
16873 \end_layout
16874
16875 \end_inset
16876
16877 , so you may have to do no more than add
16878 \end_layout
16879
16880 \begin_layout LyX-Code
16881 Input stdfloats.inc
16882 \end_layout
16883
16884 \begin_layout Standard
16885 to your layout file.
16886  If you want to implement a text class that proposes some other float types
16887  (like the AGU class bundled with \SpecialChar LyX
16888 ), the information below will hopefully
16889  help you:
16890 \end_layout
16891
16892 \begin_layout Description
16893 \begin_inset Flex Code
16894 status collapsed
16895
16896 \begin_layout Plain Layout
16897 AllowedPlacement
16898 \end_layout
16899
16900 \end_inset
16901
16902  [
16903 \begin_inset Flex Code
16904 status collapsed
16905
16906 \begin_layout Plain Layout
16907 string
16908 \end_layout
16909
16910 \end_inset
16911
16912 =!htbpH] Allowed placement options for this float type.
16913  The value is a string of placement characters.
16914  Possible characters include: 
16915 \emph on
16916 h
16917 \emph default
16918  (
16919 \begin_inset Quotes eld
16920 \end_inset
16921
16922 here if possible
16923 \begin_inset Quotes erd
16924 \end_inset
16925
16926 ), 
16927 \emph on
16928 t
16929 \emph default
16930  (
16931 \begin_inset Quotes eld
16932 \end_inset
16933
16934 top of page
16935 \begin_inset Quotes erd
16936 \end_inset
16937
16938 ), 
16939 \emph on
16940 b
16941 \emph default
16942  (
16943 \begin_inset Quotes eld
16944 \end_inset
16945
16946 bottom of page
16947 \begin_inset Quotes erd
16948 \end_inset
16949
16950 ), 
16951 \emph on
16952 p
16953 \emph default
16954  (
16955 \begin_inset Quotes eld
16956 \end_inset
16957
16958 page of floats
16959 \begin_inset Quotes erd
16960 \end_inset
16961
16962 ), 
16963 \emph on
16964 H
16965 \emph default
16966  (
16967 \begin_inset Quotes eld
16968 \end_inset
16969
16970 here definitely
16971 \begin_inset Quotes erd
16972 \end_inset
16973
16974 ) and 
16975 \emph on
16976 !
16977 \emph default
16978  (
16979 \begin_inset Quotes eld
16980 \end_inset
16981
16982 ignore LaTeX rules
16983 \begin_inset Quotes erd
16984 \end_inset
16985
16986 ).
16987  The order of the characters in the string does not matter.
16988  If no placement options are allowed, use the string 
16989 \emph on
16990 none
16991 \emph default
16992 .
16993 \end_layout
16994
16995 \begin_layout Description
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 AllowsSideways
17001 \end_layout
17002
17003 \end_inset
17004
17005  [
17006 \begin_inset Flex Code
17007 status collapsed
17008
17009 \begin_layout Plain Layout
17010
17011 \emph off
17012 0
17013 \end_layout
17014
17015 \end_inset
17016
17017 ,
17018 \begin_inset space \thinspace{}
17019 \end_inset
17020
17021
17022 \emph on
17023
17024 \begin_inset Flex Code
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028
17029 \emph on
17030 1
17031 \end_layout
17032
17033 \end_inset
17034
17035
17036 \emph default
17037 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17038 -package 
17039 \family typewriter
17040 rotfloat
17041 \family default
17042  (sidewaysfloat).
17043  Set to 
17044 \begin_inset Flex Code
17045 status collapsed
17046
17047 \begin_layout Plain Layout
17048 0
17049 \end_layout
17050
17051 \end_inset
17052
17053  if the float does not support this feature.
17054 \end_layout
17055
17056 \begin_layout Description
17057 \begin_inset Flex Code
17058 status collapsed
17059
17060 \begin_layout Plain Layout
17061 AllowsWide
17062 \end_layout
17063
17064 \end_inset
17065
17066  [
17067 \begin_inset Flex Code
17068 status collapsed
17069
17070 \begin_layout Plain Layout
17071
17072 \emph off
17073 0
17074 \end_layout
17075
17076 \end_inset
17077
17078 ,
17079 \begin_inset space \thinspace{}
17080 \end_inset
17081
17082
17083 \emph on
17084
17085 \begin_inset Flex Code
17086 status collapsed
17087
17088 \begin_layout Plain Layout
17089
17090 \emph on
17091 1
17092 \end_layout
17093
17094 \end_inset
17095
17096
17097 \emph default
17098 ] Defines whether the float has a starred variant that spans columns in
17099  a two column paragraph.
17100  Set to 
17101 \begin_inset Flex Code
17102 status collapsed
17103
17104 \begin_layout Plain Layout
17105 0
17106 \end_layout
17107
17108 \end_inset
17109
17110  if the float does not support this feature.
17111 \end_layout
17112
17113 \begin_layout Description
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 Extension
17119 \end_layout
17120
17121 \end_inset
17122
17123  [
17124 \begin_inset Flex Code
17125 status collapsed
17126
17127 \begin_layout Plain Layout
17128 string
17129 \end_layout
17130
17131 \end_inset
17132
17133 =
17134 \begin_inset Quotes erd
17135 \end_inset
17136
17137
17138 \begin_inset Quotes erd
17139 \end_inset
17140
17141 ] The file name extension of an auxiliary file for the list of figures (or
17142  whatever).
17143  \SpecialChar LaTeX
17144  writes the captions to this file.
17145 \end_layout
17146
17147 \begin_layout Description
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 GuiName
17153 \end_layout
17154
17155 \end_inset
17156
17157  [
17158 \begin_inset Flex Code
17159 status collapsed
17160
17161 \begin_layout Plain Layout
17162 string
17163 \end_layout
17164
17165 \end_inset
17166
17167 =
17168 \begin_inset Quotes erd
17169 \end_inset
17170
17171
17172 \begin_inset Quotes erd
17173 \end_inset
17174
17175 ] The string that will be used in the menus and also for the caption.
17176  This is translated to the current language if babel is used.
17177 \end_layout
17178
17179 \begin_layout Description
17180 \begin_inset Flex Code
17181 status collapsed
17182
17183 \begin_layout Plain Layout
17184 HTML*
17185 \end_layout
17186
17187 \end_inset
17188
17189  These tags control the XHTML output.
17190  See 
17191 \begin_inset CommandInset ref
17192 LatexCommand ref
17193 reference "sec:Tags-for-XHTML"
17194
17195 \end_inset
17196
17197 .
17198 \end_layout
17199
17200 \begin_layout Description
17201 \begin_inset Flex Code
17202 status collapsed
17203
17204 \begin_layout Plain Layout
17205 IsPredefined
17206 \end_layout
17207
17208 \end_inset
17209
17210  [
17211 \emph on
17212
17213 \begin_inset Flex Code
17214 status collapsed
17215
17216 \begin_layout Plain Layout
17217 0
17218 \end_layout
17219
17220 \end_inset
17221
17222
17223 \emph default
17224 ,
17225 \begin_inset space \thinspace{}
17226 \end_inset
17227
17228
17229 \begin_inset Flex Code
17230 status collapsed
17231
17232 \begin_layout Plain Layout
17233 1
17234 \end_layout
17235
17236 \end_inset
17237
17238 ] Indicates whether the float is already defined in the document class or
17239  if instead the \SpecialChar LaTeX
17240  package 
17241 \begin_inset Flex Code
17242 status collapsed
17243
17244 \begin_layout Plain Layout
17245 float
17246 \end_layout
17247
17248 \end_inset
17249
17250  needs to be loaded to define it on-the-fly.
17251  The default is 
17252 \begin_inset Flex Code
17253 status collapsed
17254
17255 \begin_layout Plain Layout
17256 0
17257 \end_layout
17258
17259 \end_inset
17260
17261 , which means: 
17262 \begin_inset Flex Code
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266 float
17267 \end_layout
17268
17269 \end_inset
17270
17271  is used.
17272  It should be set to 
17273 \begin_inset Flex Code
17274 status collapsed
17275
17276 \begin_layout Plain Layout
17277 1
17278 \end_layout
17279
17280 \end_inset
17281
17282  if the float is already defined by the \SpecialChar LaTeX
17283  document class.
17284 \end_layout
17285
17286 \begin_layout Description
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 ListCommand
17292 \end_layout
17293
17294 \end_inset
17295
17296  [
17297 \begin_inset Flex Code
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 string
17302 \end_layout
17303
17304 \end_inset
17305
17306 =
17307 \begin_inset Quotes erd
17308 \end_inset
17309
17310
17311 \begin_inset Quotes erd
17312 \end_inset
17313
17314 ] The command used to generate a list of floats of this type; the leading
17315  `
17316 \backslash
17317 ' must be omitted.
17318  This 
17319 \emph on
17320 must
17321 \emph default
17322  be given if 
17323 \begin_inset Flex Code
17324 status collapsed
17325
17326 \begin_layout Plain Layout
17327 UsesFloatPkg
17328 \end_layout
17329
17330 \end_inset
17331
17332  is false, since there is no standard way to generate this command.
17333  It is ignored if 
17334 \begin_inset Flex Code
17335 status collapsed
17336
17337 \begin_layout Plain Layout
17338 UsesFloatPkg
17339 \end_layout
17340
17341 \end_inset
17342
17343  is true, since in that case there is a standard way to define the command.
17344 \end_layout
17345
17346 \begin_layout Description
17347 \begin_inset Flex Code
17348 status collapsed
17349
17350 \begin_layout Plain Layout
17351 ListName
17352 \end_layout
17353
17354 \end_inset
17355
17356  [
17357 \begin_inset Flex Code
17358 status collapsed
17359
17360 \begin_layout Plain Layout
17361 string
17362 \end_layout
17363
17364 \end_inset
17365
17366 =
17367 \begin_inset Quotes erd
17368 \end_inset
17369
17370
17371 \begin_inset Quotes erd
17372 \end_inset
17373
17374 ] A title for a list of floats of this kind (list of figures, tables, or
17375  whatever).
17376  It is used for the screen label within \SpecialChar LyX
17377 , it is used by \SpecialChar LaTeX
17378  for the title and
17379  it is used as the title in the XHTML output.
17380  It will be translated to the document language.
17381 \end_layout
17382
17383 \begin_layout Description
17384 \begin_inset Flex Code
17385 status collapsed
17386
17387 \begin_layout Plain Layout
17388 NumberWithin
17389 \end_layout
17390
17391 \end_inset
17392
17393  [
17394 \begin_inset Flex Code
17395 status collapsed
17396
17397 \begin_layout Plain Layout
17398 string
17399 \end_layout
17400
17401 \end_inset
17402
17403 =
17404 \begin_inset Quotes erd
17405 \end_inset
17406
17407
17408 \begin_inset Quotes erd
17409 \end_inset
17410
17411 ] This (optional) argument determines whether floats of this class will
17412  be numbered within some sectional unit of the document.
17413  For example, if 
17414 \begin_inset Flex Code
17415 status collapsed
17416
17417 \begin_layout Plain Layout
17418 NumberWithin
17419 \end_layout
17420
17421 \end_inset
17422
17423  is set to 
17424 \begin_inset Quotes eld
17425 \end_inset
17426
17427
17428 \begin_inset Flex Code
17429 status collapsed
17430
17431 \begin_layout Plain Layout
17432 chapter
17433 \end_layout
17434
17435 \end_inset
17436
17437
17438 \begin_inset Quotes erd
17439 \end_inset
17440
17441 , the floats will be numbered within chapters.
17442  
17443 \end_layout
17444
17445 \begin_layout Description
17446 \begin_inset Flex Code
17447 status collapsed
17448
17449 \begin_layout Plain Layout
17450 Placement
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 default placement for the given class of floats.
17474  The string should be as in standard \SpecialChar LaTeX
17475
17476 \begin_inset Flex Code
17477 status collapsed
17478
17479 \begin_layout Plain Layout
17480 t
17481 \end_layout
17482
17483 \end_inset
17484
17485
17486 \begin_inset Flex Code
17487 status collapsed
17488
17489 \begin_layout Plain Layout
17490 b
17491 \end_layout
17492
17493 \end_inset
17494
17495
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 p
17501 \end_layout
17502
17503 \end_inset
17504
17505  and 
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 h
17511 \end_layout
17512
17513 \end_inset
17514
17515  for top, bottom, page, and here, respectively.
17516 \begin_inset Foot
17517 status collapsed
17518
17519 \begin_layout Plain Layout
17520 Note that the order of these letters in the string is irrelevant, like in
17521  \SpecialChar LaTeX
17522 .
17523 \end_layout
17524
17525 \end_inset
17526
17527  On top of that there is a new type, 
17528 \begin_inset Flex Code
17529 status collapsed
17530
17531 \begin_layout Plain Layout
17532 H
17533 \end_layout
17534
17535 \end_inset
17536
17537 , which does not really correspond to a float, since it means: put it 
17538 \begin_inset Quotes eld
17539 \end_inset
17540
17541 here
17542 \begin_inset Quotes erd
17543 \end_inset
17544
17545  and nowhere else.
17546  Note however that the 
17547 \begin_inset Flex Code
17548 status collapsed
17549
17550 \begin_layout Plain Layout
17551 H
17552 \end_layout
17553
17554 \end_inset
17555
17556  specifier is special and, because of implementation details, cannot be
17557  used in non-built in float types.
17558  If you do not understand what this means, just use 
17559 \begin_inset Quotes eld
17560 \end_inset
17561
17562
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 tbp
17568 \end_layout
17569
17570 \end_inset
17571
17572
17573 \begin_inset Quotes erd
17574 \end_inset
17575
17576 .
17577 \end_layout
17578
17579 \begin_layout Description
17580 \begin_inset Flex Code
17581 status collapsed
17582
17583 \begin_layout Plain Layout
17584 RefPrefix
17585 \end_layout
17586
17587 \end_inset
17588
17589  [
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 string
17595 \end_layout
17596
17597 \end_inset
17598
17599 ] The prefix to use when creating labels referring to floats of this type.
17600  This allows the use of formatted references.
17601  Note that you can remove any 
17602 \begin_inset Flex Code
17603 status collapsed
17604
17605 \begin_layout Plain Layout
17606 RefPrefix
17607 \end_layout
17608
17609 \end_inset
17610
17611  set by a copied style by using the special value 
17612 \begin_inset Quotes eld
17613 \end_inset
17614
17615 OFF
17616 \begin_inset Quotes erd
17617 \end_inset
17618
17619 , which must be all caps.
17620 \end_layout
17621
17622 \begin_layout Description
17623 \begin_inset Flex Code
17624 status collapsed
17625
17626 \begin_layout Plain Layout
17627 Style
17628 \end_layout
17629
17630 \end_inset
17631
17632  [
17633 \begin_inset Flex Code
17634 status collapsed
17635
17636 \begin_layout Plain Layout
17637 string
17638 \end_layout
17639
17640 \end_inset
17641
17642 =
17643 \begin_inset Quotes erd
17644 \end_inset
17645
17646
17647 \begin_inset Quotes erd
17648 \end_inset
17649
17650 ] The style used when defining the float using 
17651 \begin_inset Flex Code
17652 status collapsed
17653
17654 \begin_layout Plain Layout
17655
17656 \backslash
17657 newfloat
17658 \end_layout
17659
17660 \end_inset
17661
17662 .
17663 \end_layout
17664
17665 \begin_layout Description
17666 \begin_inset Flex Code
17667 status collapsed
17668
17669 \begin_layout Plain Layout
17670 Type
17671 \end_layout
17672
17673 \end_inset
17674
17675  [
17676 \begin_inset Flex Code
17677 status collapsed
17678
17679 \begin_layout Plain Layout
17680 string
17681 \end_layout
17682
17683 \end_inset
17684
17685 =
17686 \begin_inset Quotes erd
17687 \end_inset
17688
17689
17690 \begin_inset Quotes erd
17691 \end_inset
17692
17693 ] The 
17694 \begin_inset Quotes eld
17695 \end_inset
17696
17697 type
17698 \begin_inset Quotes erd
17699 \end_inset
17700
17701  of the new class of floats, like program or algorithm.
17702  After the appropriate 
17703 \begin_inset Flex Code
17704 status collapsed
17705
17706 \begin_layout Plain Layout
17707
17708 \backslash
17709 newfloat
17710 \end_layout
17711
17712 \end_inset
17713
17714 , commands such as 
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719
17720 \backslash
17721 begin{program}
17722 \end_layout
17723
17724 \end_inset
17725
17726  or 
17727 \begin_inset Flex Code
17728 status collapsed
17729
17730 \begin_layout Plain Layout
17731
17732 \backslash
17733 end{algorithm*}
17734 \end_layout
17735
17736 \end_inset
17737
17738  will be available.
17739 \end_layout
17740
17741 \begin_layout Description
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746 UsesFloatPkg
17747 \end_layout
17748
17749 \end_inset
17750
17751  [
17752 \begin_inset Flex Code
17753 status collapsed
17754
17755 \begin_layout Plain Layout
17756 0
17757 \end_layout
17758
17759 \end_inset
17760
17761 ,
17762 \begin_inset space \thinspace{}
17763 \end_inset
17764
17765
17766 \begin_inset Flex Code
17767 status collapsed
17768
17769 \begin_layout Plain Layout
17770
17771 \emph on
17772 1
17773 \end_layout
17774
17775 \end_inset
17776
17777 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17778  package 
17779 \begin_inset Flex Code
17780 status collapsed
17781
17782 \begin_layout Plain Layout
17783 float
17784 \end_layout
17785
17786 \end_inset
17787
17788 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17789  itself.
17790 \end_layout
17791
17792 \begin_layout Standard
17793 Note that defining a float with type 
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798
17799 \emph on
17800 type
17801 \end_layout
17802
17803 \end_inset
17804
17805  automatically defines the corresponding counter with name 
17806 \begin_inset Flex Code
17807 status collapsed
17808
17809 \begin_layout Plain Layout
17810
17811 \emph on
17812 type
17813 \end_layout
17814
17815 \end_inset
17816
17817 .
17818 \end_layout
17819
17820 \begin_layout Subsection
17821 Flex insets and InsetLayout
17822 \begin_inset CommandInset label
17823 LatexCommand label
17824 name "subsec:Flex-insets-and"
17825
17826 \end_inset
17827
17828
17829 \end_layout
17830
17831 \begin_layout Standard
17832 Flex insets come in three different kinds: 
17833 \end_layout
17834
17835 \begin_layout Itemize
17836 character style (
17837 \begin_inset Flex Code
17838 status collapsed
17839
17840 \begin_layout Plain Layout
17841 CharStyle
17842 \end_layout
17843
17844 \end_inset
17845
17846 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17847  commands as 
17848 \begin_inset Flex Code
17849 status collapsed
17850
17851 \begin_layout Plain Layout
17852
17853 \backslash
17854 noun
17855 \end_layout
17856
17857 \end_inset
17858
17859  and 
17860 \begin_inset Flex Code
17861 status collapsed
17862
17863 \begin_layout Plain Layout
17864
17865 \backslash
17866 code
17867 \end_layout
17868
17869 \end_inset
17870
17871 .
17872 \end_layout
17873
17874 \begin_layout Itemize
17875 user custom (
17876 \begin_inset Flex Code
17877 status collapsed
17878
17879 \begin_layout Plain Layout
17880 Custom
17881 \end_layout
17882
17883 \end_inset
17884
17885 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17886  code,
17887  footnote, and the like.
17888  An obvious example is an endnote inset, which is defined in the 
17889 \begin_inset Flex Code
17890 status collapsed
17891
17892 \begin_layout Plain Layout
17893 endnote
17894 \end_layout
17895
17896 \end_inset
17897
17898  module.
17899 \end_layout
17900
17901 \begin_layout Itemize
17902 XML elements (
17903 \begin_inset Flex Code
17904 status collapsed
17905
17906 \begin_layout Plain Layout
17907 Element
17908 \end_layout
17909
17910 \end_inset
17911
17912 ): For use with DocBook classes.
17913 \end_layout
17914
17915 \begin_layout Standard
17916 Flex insets are defined using the 
17917 \begin_inset Flex Code
17918 status collapsed
17919
17920 \begin_layout Plain Layout
17921 InsetLayout
17922 \end_layout
17923
17924 \end_inset
17925
17926  tag, which shall be explained in a moment.
17927 \end_layout
17928
17929 \begin_layout Standard
17930 The 
17931 \begin_inset Flex Code
17932 status collapsed
17933
17934 \begin_layout Plain Layout
17935 InsetLayout
17936 \end_layout
17937
17938 \end_inset
17939
17940  tag also serves another function: It can be used to customize the general
17941  layout of many different types of insets.
17942  Currently, 
17943 \begin_inset Flex Code
17944 status collapsed
17945
17946 \begin_layout Plain Layout
17947 InsetLayout
17948 \end_layout
17949
17950 \end_inset
17951
17952  can be used to customize the layout parameters for footnotes, marginal
17953  notes, note insets, \SpecialChar TeX
17954  code (ERT) insets, branches, listings, indexes, boxes,
17955  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17956 \end_layout
17957
17958 \begin_layout Standard
17959 The 
17960 \begin_inset Flex Code
17961 status collapsed
17962
17963 \begin_layout Plain Layout
17964 InsetLayout
17965 \end_layout
17966
17967 \end_inset
17968
17969  definition must begin with a line of the form:
17970 \end_layout
17971
17972 \begin_layout LyX-Code
17973 InsetLayout <type>
17974 \end_layout
17975
17976 \begin_layout Standard
17977 Here 
17978 \begin_inset Flex Code
17979 status collapsed
17980
17981 \begin_layout Plain Layout
17982 <Type>
17983 \end_layout
17984
17985 \end_inset
17986
17987  indicates the inset whose layout is being defined, and here there are four
17988  cases.
17989 \end_layout
17990
17991 \begin_layout Enumerate
17992 The layout for a pre-existing inset is being modified.
17993  In this case, can be 
17994 \begin_inset Flex Code
17995 status collapsed
17996
17997 \begin_layout Plain Layout
17998 <Type>
17999 \end_layout
18000
18001 \end_inset
18002
18003  any one of the following: 
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008 Algorithm
18009 \end_layout
18010
18011 \end_inset
18012
18013
18014 \begin_inset Flex Code
18015 status collapsed
18016
18017 \begin_layout Plain Layout
18018 Branch
18019 \end_layout
18020
18021 \end_inset
18022
18023
18024 \begin_inset Flex Code
18025 status collapsed
18026
18027 \begin_layout Plain Layout
18028 Box
18029 \end_layout
18030
18031 \end_inset
18032
18033
18034 \begin_inset Flex Code
18035 status collapsed
18036
18037 \begin_layout Plain Layout
18038 Box:shaded
18039 \end_layout
18040
18041 \end_inset
18042
18043
18044 \begin_inset Flex Code
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048 Caption:Standard
18049 \end_layout
18050
18051 \end_inset
18052
18053
18054 \begin_inset Flex Code
18055 status collapsed
18056
18057 \begin_layout Plain Layout
18058 ERT
18059 \end_layout
18060
18061 \end_inset
18062
18063
18064 \begin_inset Flex Code
18065 status collapsed
18066
18067 \begin_layout Plain Layout
18068 Figure
18069 \end_layout
18070
18071 \end_inset
18072
18073
18074 \begin_inset Flex Code
18075 status collapsed
18076
18077 \begin_layout Plain Layout
18078 Foot
18079 \end_layout
18080
18081 \end_inset
18082
18083
18084 \begin_inset Flex Code
18085 status collapsed
18086
18087 \begin_layout Plain Layout
18088 Index
18089 \end_layout
18090
18091 \end_inset
18092
18093
18094 \begin_inset Flex Code
18095 status collapsed
18096
18097 \begin_layout Plain Layout
18098 Info
18099 \end_layout
18100
18101 \end_inset
18102
18103
18104 \begin_inset Flex Code
18105 status collapsed
18106
18107 \begin_layout Plain Layout
18108 Info:menu
18109 \end_layout
18110
18111 \end_inset
18112
18113
18114 \begin_inset Flex Code
18115 status collapsed
18116
18117 \begin_layout Plain Layout
18118 Info:shortcut
18119 \end_layout
18120
18121 \end_inset
18122
18123
18124 \begin_inset Flex Code
18125 status collapsed
18126
18127 \begin_layout Plain Layout
18128 Info:shortcuts
18129 \end_layout
18130
18131 \end_inset
18132
18133
18134 \begin_inset Flex Code
18135 status collapsed
18136
18137 \begin_layout Plain Layout
18138 Listings
18139 \end_layout
18140
18141 \end_inset
18142
18143
18144 \begin_inset Flex Code
18145 status collapsed
18146
18147 \begin_layout Plain Layout
18148 Marginal
18149 \end_layout
18150
18151 \end_inset
18152
18153
18154 \begin_inset Flex Code
18155 status collapsed
18156
18157 \begin_layout Plain Layout
18158 Note:Comment
18159 \end_layout
18160
18161 \end_inset
18162
18163
18164 \begin_inset Flex Code
18165 status collapsed
18166
18167 \begin_layout Plain Layout
18168 Note:Note
18169 \end_layout
18170
18171 \end_inset
18172
18173
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178 Note:Greyedout
18179 \end_layout
18180
18181 \end_inset
18182
18183
18184 \begin_inset Flex Code
18185 status collapsed
18186
18187 \begin_layout Plain Layout
18188 Table
18189 \end_layout
18190
18191 \end_inset
18192
18193 , or 
18194 \begin_inset Flex Code
18195 status collapsed
18196
18197 \begin_layout Plain Layout
18198 URL
18199 \end_layout
18200
18201 \end_inset
18202
18203 .
18204 \end_layout
18205
18206 \begin_layout Enumerate
18207 The layout for a Flex inset is being defined.
18208  In this case, 
18209 \begin_inset Flex Code
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213 <Type>
18214 \end_layout
18215
18216 \end_inset
18217
18218  must be of the form 
18219 \begin_inset Quotes eld
18220 \end_inset
18221
18222
18223 \begin_inset Flex Code
18224 status collapsed
18225
18226 \begin_layout Plain Layout
18227 Flex:<name>
18228 \end_layout
18229
18230 \end_inset
18231
18232
18233 \begin_inset Quotes erd
18234 \end_inset
18235
18236 , where 
18237 \begin_inset Flex Code
18238 status collapsed
18239
18240 \begin_layout Plain Layout
18241 name
18242 \end_layout
18243
18244 \end_inset
18245
18246  may be be any valid identifier not used by a pre-existing Flex inset.
18247  The identifier may include spaces, but in that case the whole thing must
18248  be wrapped in quotes.
18249  Note that the definition of a flex inset 
18250 \emph on
18251 must 
18252 \emph default
18253 also include a 
18254 \begin_inset Flex Code
18255 status collapsed
18256
18257 \begin_layout Plain Layout
18258 LyXType
18259 \end_layout
18260
18261 \end_inset
18262
18263  entry, declaring which type of inset it defines.
18264 \end_layout
18265
18266 \begin_layout Enumerate
18267 The layout for user specific branch is being defined.
18268  In this case, 
18269 \begin_inset Flex Code
18270 status collapsed
18271
18272 \begin_layout Plain Layout
18273 <Type>
18274 \end_layout
18275
18276 \end_inset
18277
18278  must be of the form 
18279 \begin_inset Quotes eld
18280 \end_inset
18281
18282
18283 \begin_inset Flex Code
18284 status collapsed
18285
18286 \begin_layout Plain Layout
18287 Branch:<name>
18288 \end_layout
18289
18290 \end_inset
18291
18292
18293 \begin_inset Quotes erd
18294 \end_inset
18295
18296 , where 
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301 name
18302 \end_layout
18303
18304 \end_inset
18305
18306  may be be any valid identifier of branch defined in user's document.
18307  The identifier may include spaces, but in that case the whole thing must
18308  be wrapped in quotes.
18309  The main purpose of this feature is to allow \SpecialChar LaTeX
18310  wrapping around specific
18311  branches as user needs.
18312 \end_layout
18313
18314 \begin_layout Enumerate
18315 The layout of a user (or class) specific caption is being defined.
18316  In this case, 
18317 \begin_inset Flex Code
18318 status collapsed
18319
18320 \begin_layout Plain Layout
18321 <Type>
18322 \end_layout
18323
18324 \end_inset
18325
18326  must be of the form 
18327 \begin_inset Quotes eld
18328 \end_inset
18329
18330
18331 \begin_inset Flex Code
18332 status collapsed
18333
18334 \begin_layout Plain Layout
18335 Caption:<name>
18336 \end_layout
18337
18338 \end_inset
18339
18340
18341 \begin_inset Quotes erd
18342 \end_inset
18343
18344 , where 
18345 \begin_inset Flex Code
18346 status collapsed
18347
18348 \begin_layout Plain Layout
18349 name
18350 \end_layout
18351
18352 \end_inset
18353
18354  specifies the name of the caption as it appears in the menu.
18355  Have a look at the standard caption (
18356 \begin_inset Flex Code
18357 status collapsed
18358
18359 \begin_layout Plain Layout
18360 Caption:Standard
18361 \end_layout
18362
18363 \end_inset
18364
18365 ), the specific captions of the KOMA-Script classes (
18366 \begin_inset Flex Code
18367 status collapsed
18368
18369 \begin_layout Plain Layout
18370 Caption:Above
18371 \end_layout
18372
18373 \end_inset
18374
18375
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 Caption:Below
18381 \end_layout
18382
18383 \end_inset
18384
18385 ) or the module 
18386 \family sans
18387 Multilingual
18388 \begin_inset space ~
18389 \end_inset
18390
18391 Captions
18392 \begin_inset Newline linebreak
18393 \end_inset
18394
18395
18396 \family default
18397 (
18398 \begin_inset Flex Code
18399 status collapsed
18400
18401 \begin_layout Plain Layout
18402 Caption:Bicaption
18403 \end_layout
18404
18405 \end_inset
18406
18407 ) for applications.
18408 \end_layout
18409
18410 \begin_layout Standard
18411 The 
18412 \begin_inset Flex Code
18413 status collapsed
18414
18415 \begin_layout Plain Layout
18416 InsetLayout
18417 \end_layout
18418
18419 \end_inset
18420
18421  definition can contain the following entries:
18422 \end_layout
18423
18424 \begin_layout Description
18425 \begin_inset Flex Code
18426 status collapsed
18427
18428 \begin_layout Plain Layout
18429 AddToToc
18430 \end_layout
18431
18432 \end_inset
18433
18434  [
18435 \begin_inset Flex Code
18436 status collapsed
18437
18438 \begin_layout Plain Layout
18439 string
18440 \end_layout
18441
18442 \end_inset
18443
18444 =""] This inset will appear in the table of contents of the given type.
18445  An empty string disables.
18446  See also the OutlinerName and the IsTocCaption commands.
18447  This is only implemented for Flex insets.
18448  Default: disabled.
18449 \end_layout
18450
18451 \begin_layout Description
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456 Argument
18457 \end_layout
18458
18459 \end_inset
18460
18461  [
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466 int
18467 \end_layout
18468
18469 \end_inset
18470
18471 ] Defines argument number of a command\SpecialChar breakableslash
18472 environment associated with the current
18473  layout.
18474  The definition must end with 
18475 \begin_inset Flex Code
18476 status collapsed
18477
18478 \begin_layout Plain Layout
18479 EndArgument
18480 \end_layout
18481
18482 \end_inset
18483
18484 .
18485  See 
18486 \begin_inset CommandInset ref
18487 LatexCommand ref
18488 reference "subsec:Paragraph-Styles"
18489
18490 \end_inset
18491
18492  for details.
18493 \end_layout
18494
18495 \begin_layout Description
18496 \begin_inset Flex Code
18497 status collapsed
18498
18499 \begin_layout Plain Layout
18500 BabelPreamble
18501 \end_layout
18502
18503 \end_inset
18504
18505  Preamble for changing language commands; see 
18506 \begin_inset CommandInset ref
18507 LatexCommand ref
18508 reference "subsec:I18n"
18509
18510 \end_inset
18511
18512 .
18513 \end_layout
18514
18515 \begin_layout Description
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 BgColor
18521 \end_layout
18522
18523 \end_inset
18524
18525  [
18526 \begin_inset Flex Code
18527 status collapsed
18528
18529 \begin_layout Plain Layout
18530 <name>
18531 \end_layout
18532
18533 \end_inset
18534
18535 ] The color for the inset's background.
18536  See 
18537 \begin_inset CommandInset ref
18538 LatexCommand ref
18539 reference "chap:Names-of-colors"
18540
18541 \end_inset
18542
18543  for a list of the available color names.
18544 \end_layout
18545
18546 \begin_layout Description
18547 \begin_inset Flex Code
18548 status collapsed
18549
18550 \begin_layout Plain Layout
18551 ContentAsLabel
18552 \end_layout
18553
18554 \end_inset
18555
18556  [
18557 \begin_inset Flex Code
18558 status collapsed
18559
18560 \begin_layout Plain Layout
18561
18562 \emph on
18563 0
18564 \end_layout
18565
18566 \end_inset
18567
18568 ,
18569 \begin_inset space \thinspace{}
18570 \end_inset
18571
18572
18573 \begin_inset Flex Code
18574 status collapsed
18575
18576 \begin_layout Plain Layout
18577 1
18578 \end_layout
18579
18580 \end_inset
18581
18582 ] Whether to use the content of the inset as the label, when the inset is
18583  closed.
18584  Default is false.
18585 \end_layout
18586
18587 \begin_layout Description
18588 \begin_inset Flex Code
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592 CopyStyle
18593 \end_layout
18594
18595 \end_inset
18596
18597  [
18598 \begin_inset Flex Code
18599 status collapsed
18600
18601 \begin_layout Plain Layout
18602 <type>
18603 \end_layout
18604
18605 \end_inset
18606
18607 ] As with paragraph styles, see 
18608 \begin_inset CommandInset ref
18609 LatexCommand ref
18610 reference "subsec:Paragraph-Styles"
18611
18612 \end_inset
18613
18614 .
18615  Note that you need to specify the complete type, e.
18616 \begin_inset space \thinspace{}
18617 \end_inset
18618
18619 g.
18620 \begin_inset space ~
18621 \end_inset
18622
18623
18624 \begin_inset Flex Code
18625 status collapsed
18626
18627 \begin_layout Plain Layout
18628 CopyStyle Flex:<name>
18629 \end_layout
18630
18631 \end_inset
18632
18633 .
18634 \end_layout
18635
18636 \begin_layout Description
18637 \begin_inset Flex Code
18638 status collapsed
18639
18640 \begin_layout Plain Layout
18641 CustomPars
18642 \end_layout
18643
18644 \end_inset
18645
18646  [
18647 \begin_inset Flex Code
18648 status collapsed
18649
18650 \begin_layout Plain Layout
18651
18652 \emph on
18653 0
18654 \end_layout
18655
18656 \end_inset
18657
18658 ,
18659 \begin_inset space \thinspace{}
18660 \end_inset
18661
18662
18663 \begin_inset Flex Code
18664 status collapsed
18665
18666 \begin_layout Plain Layout
18667 1
18668 \end_layout
18669
18670 \end_inset
18671
18672 ] Indicates whether the user may employ the Paragraph Settings dialog to
18673  customize the paragraph.
18674 \end_layout
18675
18676 \begin_layout Description
18677 \begin_inset Flex Code
18678 status collapsed
18679
18680 \begin_layout Plain Layout
18681 Decoration
18682 \end_layout
18683
18684 \end_inset
18685
18686  can be 
18687 \begin_inset Flex Code
18688 status collapsed
18689
18690 \begin_layout Plain Layout
18691 Classic
18692 \end_layout
18693
18694 \end_inset
18695
18696
18697 \begin_inset Flex Code
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 Minimalistic
18702 \end_layout
18703
18704 \end_inset
18705
18706 , or 
18707 \begin_inset Flex Code
18708 status collapsed
18709
18710 \begin_layout Plain Layout
18711 Conglomerate
18712 \end_layout
18713
18714 \end_inset
18715
18716 , describing the rendering style used for the inset's frame and buttons.
18717  Footnotes generally use 
18718 \begin_inset Flex Code
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 Classic
18723 \end_layout
18724
18725 \end_inset
18726
18727 , ERT insets generally 
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 Minimalistic
18733 \end_layout
18734
18735 \end_inset
18736
18737 , and character styles 
18738 \begin_inset Flex Code
18739 status collapsed
18740
18741 \begin_layout Plain Layout
18742 Conglomerate
18743 \end_layout
18744
18745 \end_inset
18746
18747 .
18748 \end_layout
18749
18750 \begin_layout Description
18751 \begin_inset Flex Code
18752 status collapsed
18753
18754 \begin_layout Plain Layout
18755 Display
18756 \end_layout
18757
18758 \end_inset
18759
18760  [
18761 \begin_inset Flex Code
18762 status collapsed
18763
18764 \begin_layout Plain Layout
18765 0
18766 \end_layout
18767
18768 \end_inset
18769
18770 ,
18771 \emph on
18772
18773 \begin_inset space \thinspace{}
18774 \end_inset
18775
18776
18777 \emph default
18778
18779 \begin_inset Flex Code
18780 status collapsed
18781
18782 \begin_layout Plain Layout
18783
18784 \emph on
18785 1
18786 \end_layout
18787
18788 \end_inset
18789
18790 ] Only useful if 
18791 \begin_inset Flex Code
18792 status collapsed
18793
18794 \begin_layout Plain Layout
18795 LatexType
18796 \end_layout
18797
18798 \end_inset
18799
18800  is 
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805 Environment
18806 \end_layout
18807
18808 \end_inset
18809
18810 .
18811  Indicates whether the environment will stand on its own in the output or
18812  will appear inline with the surrounding text.
18813  If set to false, it is supposed that the \SpecialChar LaTeX
18814  environment ignores white space
18815  (including one newline character) after the 
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820
18821 \backslash
18822 begin{
18823 \emph on
18824 LatexName
18825 \emph default
18826 }
18827 \end_layout
18828
18829 \end_inset
18830
18831  and 
18832 \begin_inset Flex Code
18833 status collapsed
18834
18835 \begin_layout Plain Layout
18836
18837 \backslash
18838 end{
18839 \emph on
18840 LatexName
18841 \emph default
18842 }
18843 \end_layout
18844
18845 \end_inset
18846
18847  tags.
18848  Default is true.
18849 \change_inserted 731793113 1538674858
18850
18851 \end_layout
18852
18853 \begin_layout Description
18854
18855 \change_inserted 731793113 1538674891
18856 \begin_inset Flex Code
18857 status open
18858
18859 \begin_layout Plain Layout
18860
18861 \change_inserted 731793113 1538674863
18862 EditExternal
18863 \change_unchanged
18864
18865 \end_layout
18866
18867 \end_inset
18868
18869  [
18870 \emph on
18871 0
18872 \emph default
18873 ,1] Allow the contents of the inset to be edited externally (using whatever
18874  editor is defined for the document's output format).
18875 \change_unchanged
18876
18877 \end_layout
18878
18879 \begin_layout Description
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884 End
18885 \end_layout
18886
18887 \end_inset
18888
18889  Required at the end of the 
18890 \begin_inset Flex Code
18891 status collapsed
18892
18893 \begin_layout Plain Layout
18894 InsetLayout
18895 \end_layout
18896
18897 \end_inset
18898
18899  declarations.
18900 \end_layout
18901
18902 \begin_layout Description
18903 \begin_inset Flex Code
18904 status collapsed
18905
18906 \begin_layout Plain Layout
18907 Font
18908 \end_layout
18909
18910 \end_inset
18911
18912  The font used for both the text body 
18913 \emph on
18914 and
18915 \emph default
18916  the label.
18917  See 
18918 \begin_inset CommandInset ref
18919 LatexCommand ref
18920 reference "subsec:Font-description"
18921
18922 \end_inset
18923
18924 .
18925  Note that defining this font automatically defines the 
18926 \begin_inset Flex Code
18927 status collapsed
18928
18929 \begin_layout Plain Layout
18930 LabelFont
18931 \end_layout
18932
18933 \end_inset
18934
18935  to the same value, so define this first and define 
18936 \begin_inset Flex Code
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940 LabelFont
18941 \end_layout
18942
18943 \end_inset
18944
18945  later if you want them to be different.
18946 \end_layout
18947
18948 \begin_layout Description
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953 FixedWidthPreambleEncoding
18954 \end_layout
18955
18956 \end_inset
18957
18958  [
18959 \begin_inset Flex Code
18960 status collapsed
18961
18962 \begin_layout Plain Layout
18963
18964 \emph on
18965 0
18966 \end_layout
18967
18968 \end_inset
18969
18970 ,
18971 \begin_inset space \thinspace{}
18972 \end_inset
18973
18974
18975 \begin_inset Flex Code
18976 status collapsed
18977
18978 \begin_layout Plain Layout
18979 1
18980 \end_layout
18981
18982 \end_inset
18983
18984 ] Force a fixed width encoding for the translated contents of 
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 BabelPreamble
18990 \end_layout
18991
18992 \end_inset
18993
18994  and 
18995 \begin_inset Flex Code
18996 status collapsed
18997
18998 \begin_layout Plain Layout
18999 LangPreamble
19000 \end_layout
19001
19002 \end_inset
19003
19004  code generated by this layout.
19005  This is needed for special \SpecialChar LaTeX
19006 -packages like 
19007 \family typewriter
19008 listings
19009 \family default
19010  that do not work with variable width encodings such as 
19011 \family sans
19012 utf8
19013 \family default
19014 .
19015  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19016  backends such as Xe\SpecialChar TeX
19017  or
19018  Lua\SpecialChar TeX
19019  are used.
19020 \end_layout
19021
19022 \begin_layout Description
19023 \begin_inset Flex Code
19024 status collapsed
19025
19026 \begin_layout Plain Layout
19027 ForceLocalFontSwitch
19028 \end_layout
19029
19030 \end_inset
19031
19032  [
19033 \begin_inset Flex Code
19034 status collapsed
19035
19036 \begin_layout Plain Layout
19037
19038 \emph on
19039 0
19040 \end_layout
19041
19042 \end_inset
19043
19044 ,
19045 \begin_inset space \thinspace{}
19046 \end_inset
19047
19048
19049 \begin_inset Flex Code
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053 1
19054 \end_layout
19055
19056 \end_inset
19057
19058 ] When using babel, always use a local font switch (
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063
19064 \backslash
19065 foreignlanguage
19066 \end_layout
19067
19068 \end_inset
19069
19070 ), never a global one (such as 
19071 \begin_inset Flex Code
19072 status collapsed
19073
19074 \begin_layout Plain Layout
19075
19076 \backslash
19077 selectlanguage
19078 \end_layout
19079
19080 \end_inset
19081
19082 ).
19083 \end_layout
19084
19085 \begin_layout Description
19086 \begin_inset Flex Code
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090 ForceLTR
19091 \end_layout
19092
19093 \end_inset
19094
19095  [
19096 \begin_inset Flex Code
19097 status collapsed
19098
19099 \begin_layout Plain Layout
19100
19101 \emph on
19102 0
19103 \end_layout
19104
19105 \end_inset
19106
19107 ,
19108 \begin_inset space \thinspace{}
19109 \end_inset
19110
19111
19112 \begin_inset Flex Code
19113 status collapsed
19114
19115 \begin_layout Plain Layout
19116 1
19117 \end_layout
19118
19119 \end_inset
19120
19121 ] Force the 
19122 \begin_inset Quotes eld
19123 \end_inset
19124
19125 latex
19126 \begin_inset Quotes erd
19127 \end_inset
19128
19129  language, leading to Left-to-Right (Latin) output, e.
19130 \begin_inset space \thinspace{}
19131 \end_inset
19132
19133 g.
19134 \begin_inset space \space{}
19135 \end_inset
19136
19137 in \SpecialChar TeX
19138  code or URL.
19139  A kludge.
19140 \end_layout
19141
19142 \begin_layout Description
19143 \begin_inset Flex Code
19144 status collapsed
19145
19146 \begin_layout Plain Layout
19147 ForceOwnlines
19148 \end_layout
19149
19150 \end_inset
19151
19152  [
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157
19158 \emph on
19159 0
19160 \end_layout
19161
19162 \end_inset
19163
19164 ,
19165 \begin_inset space \thinspace{}
19166 \end_inset
19167
19168
19169 \begin_inset Flex Code
19170 status collapsed
19171
19172 \begin_layout Plain Layout
19173 1
19174 \end_layout
19175
19176 \end_inset
19177
19178 ] Force a a line break in the \SpecialChar LaTeX
19179  output before the inset starts and after
19180  the inset ends.
19181  This assures the inset itself is output on its own lines, for parsing purposes.
19182 \end_layout
19183
19184 \begin_layout Description
19185 \begin_inset Flex Code
19186 status collapsed
19187
19188 \begin_layout Plain Layout
19189 ForcePlain
19190 \end_layout
19191
19192 \end_inset
19193
19194  [
19195 \begin_inset Flex Code
19196 status collapsed
19197
19198 \begin_layout Plain Layout
19199
19200 \emph on
19201 0
19202 \end_layout
19203
19204 \end_inset
19205
19206 ,
19207 \begin_inset space \thinspace{}
19208 \end_inset
19209
19210
19211 \begin_inset Flex Code
19212 status collapsed
19213
19214 \begin_layout Plain Layout
19215 1
19216 \end_layout
19217
19218 \end_inset
19219
19220 ] Indicates whether the 
19221 \begin_inset Flex Code
19222 status collapsed
19223
19224 \begin_layout Plain Layout
19225 PlainLayout
19226 \end_layout
19227
19228 \end_inset
19229
19230  should be used or, instead, the user can change the paragraph style used
19231  in the inset.
19232  Default is false.
19233 \end_layout
19234
19235 \begin_layout Description
19236 \begin_inset Flex Code
19237 status collapsed
19238
19239 \begin_layout Plain Layout
19240 FreeSpacing
19241 \end_layout
19242
19243 \end_inset
19244
19245  [
19246 \begin_inset Flex Code
19247 status collapsed
19248
19249 \begin_layout Plain Layout
19250
19251 \emph on
19252 0
19253 \end_layout
19254
19255 \end_inset
19256
19257 ,
19258 \begin_inset space \thinspace{}
19259 \end_inset
19260
19261
19262 \begin_inset Flex Code
19263 status collapsed
19264
19265 \begin_layout Plain Layout
19266 1
19267 \end_layout
19268
19269 \end_inset
19270
19271 ] As with paragraph styles, see 
19272 \begin_inset CommandInset ref
19273 LatexCommand ref
19274 reference "subsec:Paragraph-Styles"
19275
19276 \end_inset
19277
19278 .
19279 \end_layout
19280
19281 \begin_layout Description
19282 \begin_inset Flex Code
19283 status collapsed
19284
19285 \begin_layout Plain Layout
19286 HTML*
19287 \end_layout
19288
19289 \end_inset
19290
19291  These tags control the XHTML output.
19292  See 
19293 \begin_inset CommandInset ref
19294 LatexCommand ref
19295 reference "sec:Tags-for-XHTML"
19296
19297 \end_inset
19298
19299 .
19300 \end_layout
19301
19302 \begin_layout Description
19303 \begin_inset Flex Code
19304 status collapsed
19305
19306 \begin_layout Plain Layout
19307 InToc
19308 \end_layout
19309
19310 \end_inset
19311
19312  [
19313 \begin_inset Flex Code
19314 status collapsed
19315
19316 \begin_layout Plain Layout
19317
19318 \emph on
19319 0
19320 \end_layout
19321
19322 \end_inset
19323
19324 ,
19325 \begin_inset space \thinspace{}
19326 \end_inset
19327
19328
19329 \begin_inset Flex Code
19330 status collapsed
19331
19332 \begin_layout Plain Layout
19333 1
19334 \end_layout
19335
19336 \end_inset
19337
19338 ] Whether to include the contents of this inset in the strings generated
19339  for the `Outline' pane for all table of contents, regardless of the AddToToc
19340  setting.
19341  One would not, for example, want the content of a footnote in a section
19342  header to be included in the TOC displayed in the outline, but one would
19343  normally want the content of a character style displayed.
19344  Default is false: not to include.
19345 \end_layout
19346
19347 \begin_layout Description
19348 \begin_inset Flex Code
19349 status collapsed
19350
19351 \begin_layout Plain Layout
19352 IsTocCaption
19353 \end_layout
19354
19355 \end_inset
19356
19357  [
19358 \begin_inset Flex Code
19359 status collapsed
19360
19361 \begin_layout Plain Layout
19362
19363 \emph on
19364 0
19365 \end_layout
19366
19367 \end_inset
19368
19369 ,
19370 \begin_inset space \thinspace{}
19371 \end_inset
19372
19373
19374 \begin_inset Flex Code
19375 status collapsed
19376
19377 \begin_layout Plain Layout
19378 1
19379 \end_layout
19380
19381 \end_inset
19382
19383 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19384  of its contents in its item in the table of contents.
19385  Otherwise, only the label appears.
19386 \end_layout
19387
19388 \begin_layout Description
19389 \begin_inset Flex Code
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393 KeepEmpty
19394 \end_layout
19395
19396 \end_inset
19397
19398  [
19399 \emph on
19400
19401 \begin_inset Flex Code
19402 status collapsed
19403
19404 \begin_layout Plain Layout
19405 0
19406 \end_layout
19407
19408 \end_inset
19409
19410
19411 \emph default
19412 ,
19413 \begin_inset space \thinspace{}
19414 \end_inset
19415
19416
19417 \begin_inset Flex Code
19418 status collapsed
19419
19420 \begin_layout Plain Layout
19421 1
19422 \end_layout
19423
19424 \end_inset
19425
19426 ] As with paragraph styles, see 
19427 \begin_inset CommandInset ref
19428 LatexCommand ref
19429 reference "subsec:Paragraph-Styles"
19430
19431 \end_inset
19432
19433 .
19434 \end_layout
19435
19436 \begin_layout Description
19437 \begin_inset Flex Code
19438 status collapsed
19439
19440 \begin_layout Plain Layout
19441 LabelFont
19442 \end_layout
19443
19444 \end_inset
19445
19446  The font used for the label.
19447  See 
19448 \begin_inset CommandInset ref
19449 LatexCommand ref
19450 reference "subsec:Font-description"
19451
19452 \end_inset
19453
19454 .
19455  Note that this definition can never appear before 
19456 \begin_inset Flex Code
19457 status collapsed
19458
19459 \begin_layout Plain Layout
19460 Font
19461 \end_layout
19462
19463 \end_inset
19464
19465 , lest it be ineffective.
19466 \end_layout
19467
19468 \begin_layout Description
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473 LabelString
19474 \end_layout
19475
19476 \end_inset
19477
19478  [
19479 \begin_inset Flex Code
19480 status collapsed
19481
19482 \begin_layout Plain Layout
19483 string
19484 \end_layout
19485
19486 \end_inset
19487
19488 =
19489 \begin_inset Quotes erd
19490 \end_inset
19491
19492
19493 \begin_inset Quotes erd
19494 \end_inset
19495
19496 ] What will be displayed on the button or elsewhere as the inset label.
19497  Some inset types (
19498 \begin_inset Flex Code
19499 status collapsed
19500
19501 \begin_layout Plain Layout
19502 \SpecialChar TeX
19503  code
19504 \end_layout
19505
19506 \end_inset
19507
19508  and 
19509 \begin_inset Flex Code
19510 status collapsed
19511
19512 \begin_layout Plain Layout
19513 Branch
19514 \end_layout
19515
19516 \end_inset
19517
19518 ) modify this label on the fly.
19519 \end_layout
19520
19521 \begin_layout Description
19522 \begin_inset Flex Code
19523 status collapsed
19524
19525 \begin_layout Plain Layout
19526 LangPreamble
19527 \end_layout
19528
19529 \end_inset
19530
19531  Language dependent preamble; see 
19532 \begin_inset CommandInset ref
19533 LatexCommand ref
19534 reference "subsec:I18n"
19535
19536 \end_inset
19537
19538 .
19539 \end_layout
19540
19541 \begin_layout Description
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 LatexName
19547 \end_layout
19548
19549 \end_inset
19550
19551  [
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 <name>
19557 \end_layout
19558
19559 \end_inset
19560
19561 ] The name of the corresponding \SpecialChar LaTeX
19562  stuff.
19563  Either the environment or command name.
19564 \end_layout
19565
19566 \begin_layout Description
19567 \begin_inset Flex Code
19568 status collapsed
19569
19570 \begin_layout Plain Layout
19571 LatexParam
19572 \end_layout
19573
19574 \end_inset
19575
19576  [
19577 \begin_inset Flex Code
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 <parameter>
19582 \end_layout
19583
19584 \end_inset
19585
19586 ] The optional parameter for the corresponding 
19587 \begin_inset Flex Code
19588 status collapsed
19589
19590 \begin_layout Plain Layout
19591 LatexName
19592 \end_layout
19593
19594 \end_inset
19595
19596  stuff, including possible bracket pairs like 
19597 \begin_inset Flex Code
19598 status collapsed
19599
19600 \begin_layout Plain Layout
19601 []
19602 \end_layout
19603
19604 \end_inset
19605
19606 .
19607  This parameter cannot be changed from within \SpecialChar LyX
19608  (use 
19609 \begin_inset Flex Code
19610 status collapsed
19611
19612 \begin_layout Plain Layout
19613 Argument
19614 \end_layout
19615
19616 \end_inset
19617
19618  for customizable parameters).
19619  It will be output as is after all \SpecialChar LaTeX
19620  
19621 \begin_inset Flex Code
19622 status collapsed
19623
19624 \begin_layout Plain Layout
19625 Argument
19626 \end_layout
19627
19628 \end_inset
19629
19630 s.
19631 \end_layout
19632
19633 \begin_layout Description
19634 \begin_inset Flex Code
19635 status collapsed
19636
19637 \begin_layout Plain Layout
19638 LatexType
19639 \end_layout
19640
19641 \end_inset
19642
19643  [
19644 \begin_inset Flex Code
19645 status collapsed
19646
19647 \begin_layout Plain Layout
19648 Command, Environment, None
19649 \end_layout
19650
19651 \end_inset
19652
19653 ] How the style should be translated into \SpecialChar LaTeX
19654 .
19655 \begin_inset Foot
19656 status collapsed
19657
19658 \begin_layout Plain Layout
19659 \begin_inset Flex Code
19660 status collapsed
19661
19662 \begin_layout Plain Layout
19663 LatexType
19664 \end_layout
19665
19666 \end_inset
19667
19668  is perhaps a bit misleading, since these rules apply to SGML classes too.
19669  Visit the SGML class files for specific examples.
19670 \end_layout
19671
19672 \end_inset
19673
19674
19675 \end_layout
19676
19677 \begin_deeper
19678 \begin_layout Description
19679 \begin_inset Flex Code
19680 status collapsed
19681
19682 \begin_layout Plain Layout
19683 None
19684 \end_layout
19685
19686 \end_inset
19687
19688  means nothing special
19689 \end_layout
19690
19691 \begin_layout Description
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 Command
19697 \end_layout
19698
19699 \end_inset
19700
19701  means 
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706
19707 \backslash
19708
19709 \emph on
19710 LatexName
19711 \emph default
19712 {\SpecialChar ldots
19713 }
19714 \end_layout
19715
19716 \end_inset
19717
19718
19719 \end_layout
19720
19721 \begin_layout Description
19722 \begin_inset Flex Code
19723 status collapsed
19724
19725 \begin_layout Plain Layout
19726 Environment
19727 \end_layout
19728
19729 \end_inset
19730
19731  means 
19732 \begin_inset Flex Code
19733 status collapsed
19734
19735 \begin_layout Plain Layout
19736
19737 \backslash
19738 begin{
19739 \emph on
19740 LatexName
19741 \emph default
19742 }\SpecialChar ldots
19743
19744 \backslash
19745 end{
19746 \emph on
19747 LatexName
19748 \emph default
19749 }
19750 \end_layout
19751
19752 \end_inset
19753
19754
19755 \end_layout
19756
19757 \begin_layout Standard
19758 Putting the last few things together, the \SpecialChar LaTeX
19759  output will be either: 
19760 \end_layout
19761
19762 \begin_layout LyX-Code
19763
19764 \backslash
19765 LatexName[LatexParam]{\SpecialChar ldots
19766 }
19767 \end_layout
19768
19769 \begin_layout Standard
19770 or: 
19771 \end_layout
19772
19773 \begin_layout LyX-Code
19774
19775 \backslash
19776 begin{LatexName}[LatexParam] \SpecialChar ldots
19777  
19778 \backslash
19779 end{LatexName}
19780 \end_layout
19781
19782 \begin_layout Standard
19783 depending upon the \SpecialChar LaTeX
19784  type.
19785 \end_layout
19786
19787 \end_deeper
19788 \begin_layout Description
19789 \begin_inset Flex Code
19790 status collapsed
19791
19792 \begin_layout Plain Layout
19793 LeftDelim
19794 \end_layout
19795
19796 \end_inset
19797
19798  [
19799 \begin_inset Flex Code
19800 status collapsed
19801
19802 \begin_layout Plain Layout
19803 string
19804 \end_layout
19805
19806 \end_inset
19807
19808 ] A string that is put at the beginning of the layout content.
19809  A line break in the output can be indicated by 
19810 \begin_inset Flex Code
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814 <br/>
19815 \end_layout
19816
19817 \end_inset
19818
19819 .
19820 \end_layout
19821
19822 \begin_layout Description
19823 \begin_inset Flex Code
19824 status collapsed
19825
19826 \begin_layout Plain Layout
19827 LyxType
19828 \end_layout
19829
19830 \end_inset
19831
19832  Can be 
19833 \begin_inset Flex Code
19834 status collapsed
19835
19836 \begin_layout Plain Layout
19837 charstyle
19838 \end_layout
19839
19840 \end_inset
19841
19842
19843 \begin_inset Flex Code
19844 status collapsed
19845
19846 \begin_layout Plain Layout
19847 custom
19848 \end_layout
19849
19850 \end_inset
19851
19852
19853 \begin_inset Flex Code
19854 status collapsed
19855
19856 \begin_layout Plain Layout
19857 element
19858 \end_layout
19859
19860 \end_inset
19861
19862  or 
19863 \begin_inset Flex Code
19864 status collapsed
19865
19866 \begin_layout Plain Layout
19867 end
19868 \end_layout
19869
19870 \end_inset
19871
19872  (indicating a dummy definition ending definitions of charstyles, etc).
19873  This entry is required in and is only meaningful for Flex insets.
19874  Among other things, it determines on which menu this inset will appear.
19875  Setting 
19876 \begin_inset Flex Code
19877 status collapsed
19878
19879 \begin_layout Plain Layout
19880 LyxType
19881 \end_layout
19882
19883 \end_inset
19884
19885  to 
19886 \begin_inset Flex Code
19887 status collapsed
19888
19889 \begin_layout Plain Layout
19890 charstyle
19891 \end_layout
19892
19893 \end_inset
19894
19895  will automatically set 
19896 \begin_inset Flex Code
19897 status collapsed
19898
19899 \begin_layout Plain Layout
19900 MultiPar
19901 \end_layout
19902
19903 \end_inset
19904
19905  to false and 
19906 \begin_inset Flex Code
19907 status collapsed
19908
19909 \begin_layout Plain Layout
19910 ForcePlain
19911 \end_layout
19912
19913 \end_inset
19914
19915  to true.
19916  
19917 \begin_inset Flex Code
19918 status collapsed
19919
19920 \begin_layout Plain Layout
19921 MultiPar
19922 \end_layout
19923
19924 \end_inset
19925
19926  can be set to true, or 
19927 \begin_inset Flex Code
19928 status collapsed
19929
19930 \begin_layout Plain Layout
19931 ForcePlain
19932 \end_layout
19933
19934 \end_inset
19935
19936  to false, for 
19937 \begin_inset Flex Code
19938 status collapsed
19939
19940 \begin_layout Plain Layout
19941 charstyle
19942 \end_layout
19943
19944 \end_inset
19945
19946  insets by setting it 
19947 \emph on
19948 after
19949 \emph default
19950  you set the 
19951 \begin_inset Flex Code
19952 status collapsed
19953
19954 \begin_layout Plain Layout
19955 LyxType
19956 \end_layout
19957
19958 \end_inset
19959
19960 .
19961 \end_layout
19962
19963 \begin_layout Description
19964 \begin_inset Flex Code
19965 status collapsed
19966
19967 \begin_layout Plain Layout
19968 MultiPar
19969 \end_layout
19970
19971 \end_inset
19972
19973  [
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978
19979 \emph on
19980 0
19981 \end_layout
19982
19983 \end_inset
19984
19985 ,
19986 \begin_inset space \thinspace{}
19987 \end_inset
19988
19989
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 1
19995 \end_layout
19996
19997 \end_inset
19998
19999 ] Whether multiple paragraphs are permitted in this inset.
20000  This will also set 
20001 \begin_inset Flex Code
20002 status collapsed
20003
20004 \begin_layout Plain Layout
20005 CustomPars
20006 \end_layout
20007
20008 \end_inset
20009
20010  to the same value and 
20011 \begin_inset Flex Code
20012 status collapsed
20013
20014 \begin_layout Plain Layout
20015 ForcePlain
20016 \end_layout
20017
20018 \end_inset
20019
20020  to the opposite value.
20021  These can be reset to other values, if they are used 
20022 \emph on
20023 after
20024 \emph default
20025  
20026 \begin_inset Flex Code
20027 status collapsed
20028
20029 \begin_layout Plain Layout
20030 MultiPar
20031 \end_layout
20032
20033 \end_inset
20034
20035 .
20036  Default is true.
20037 \end_layout
20038
20039 \begin_layout Description
20040 \begin_inset Flex Code
20041 status collapsed
20042
20043 \begin_layout Plain Layout
20044 NeedProtect
20045 \end_layout
20046
20047 \end_inset
20048
20049  [
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054
20055 \emph on
20056 0
20057 \end_layout
20058
20059 \end_inset
20060
20061 ,
20062 \begin_inset space \thinspace{}
20063 \end_inset
20064
20065
20066 \begin_inset Flex Code
20067 status collapsed
20068
20069 \begin_layout Plain Layout
20070 1
20071 \end_layout
20072
20073 \end_inset
20074
20075 ] Whether fragile commands in this inset should be 
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080
20081 \backslash
20082 protect
20083 \end_layout
20084
20085 \end_inset
20086
20087 'ed.
20088  (Note: This is 
20089 \emph on
20090 not
20091 \emph default
20092  whether the command should itself be protected.) Default is false.
20093 \change_inserted -712698321 1523633958
20094
20095 \end_layout
20096
20097 \begin_layout Description
20098
20099 \change_inserted -712698321 1523634088
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104
20105 \change_inserted -712698321 1523633961
20106 NeedCProtect
20107 \end_layout
20108
20109 \end_inset
20110
20111  [
20112 \begin_inset Flex Code
20113 status collapsed
20114
20115 \begin_layout Plain Layout
20116
20117 \change_inserted -712698321 1523633958
20118
20119 \emph on
20120 0
20121 \end_layout
20122
20123 \end_inset
20124
20125 ,
20126 \begin_inset space \thinspace{}
20127 \end_inset
20128
20129
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134
20135 \change_inserted -712698321 1523633958
20136 1
20137 \end_layout
20138
20139 \end_inset
20140
20141 ] This causes macros that contain this inset to be protected with 
20142 \begin_inset Flex Code
20143 status collapsed
20144
20145 \begin_layout Plain Layout
20146
20147 \change_inserted -712698321 1523634038
20148
20149 \backslash
20150 cprotect
20151 \change_unchanged
20152
20153 \end_layout
20154
20155 \end_inset
20156
20157  (cf.
20158  package 
20159 \family sans
20160 cprotect
20161 \family default
20162 ) if necessary and thus allows (some) verbatim stuff in macros.
20163  Default is false.
20164 \change_unchanged
20165
20166 \end_layout
20167
20168 \begin_layout Description
20169 \begin_inset Flex Code
20170 status collapsed
20171
20172 \begin_layout Plain Layout
20173 NoInsetLayout
20174 \end_layout
20175
20176 \end_inset
20177
20178  [
20179 \begin_inset Flex Code
20180 status collapsed
20181
20182 \begin_layout Plain Layout
20183 <layout>
20184 \end_layout
20185
20186 \end_inset
20187
20188 ] Deletes an existing 
20189 \begin_inset Flex Code
20190 status collapsed
20191
20192 \begin_layout Plain Layout
20193 InsetLayout
20194 \end_layout
20195
20196 \end_inset
20197
20198 .
20199 \end_layout
20200
20201 \begin_layout Description
20202 \begin_inset Flex Code
20203 status collapsed
20204
20205 \begin_layout Plain Layout
20206 ObsoletedBy
20207 \end_layout
20208
20209 \end_inset
20210
20211  [
20212 \begin_inset Flex Code
20213 status collapsed
20214
20215 \begin_layout Plain Layout
20216 <layout>
20217 \end_layout
20218
20219 \end_inset
20220
20221 ] Name of an 
20222 \begin_inset Flex Code
20223 status collapsed
20224
20225 \begin_layout Plain Layout
20226 InsetLayout
20227 \end_layout
20228
20229 \end_inset
20230
20231  that has replaced this 
20232 \begin_inset Flex Code
20233 status collapsed
20234
20235 \begin_layout Plain Layout
20236 InsetLayout
20237 \end_layout
20238
20239 \end_inset
20240
20241 .
20242  This is used to rename an 
20243 \begin_inset Flex Code
20244 status collapsed
20245
20246 \begin_layout Plain Layout
20247 InsetLayout
20248 \end_layout
20249
20250 \end_inset
20251
20252 , while keeping backward compatibility.
20253 \end_layout
20254
20255 \begin_layout Description
20256 \begin_inset Flex Code
20257 status collapsed
20258
20259 \begin_layout Plain Layout
20260 ParbreakIsNewline
20261 \end_layout
20262
20263 \end_inset
20264
20265  [
20266 \begin_inset Flex Code
20267 status collapsed
20268
20269 \begin_layout Plain Layout
20270
20271 \emph on
20272 0
20273 \end_layout
20274
20275 \end_inset
20276
20277 ,
20278 \begin_inset space \thinspace{}
20279 \end_inset
20280
20281
20282 \begin_inset Flex Code
20283 status collapsed
20284
20285 \begin_layout Plain Layout
20286 1
20287 \end_layout
20288
20289 \end_inset
20290
20291 ] As with paragraph styles, see 
20292 \begin_inset CommandInset ref
20293 LatexCommand ref
20294 reference "subsec:Paragraph-Styles"
20295
20296 \end_inset
20297
20298 .
20299  Default is false.
20300 \end_layout
20301
20302 \begin_layout Description
20303 \begin_inset Flex Code
20304 status collapsed
20305
20306 \begin_layout Plain Layout
20307 PassThru
20308 \end_layout
20309
20310 \end_inset
20311
20312  [
20313 \begin_inset Flex Code
20314 status collapsed
20315
20316 \begin_layout Plain Layout
20317
20318 \emph on
20319 0
20320 \end_layout
20321
20322 \end_inset
20323
20324 ,
20325 \begin_inset space \thinspace{}
20326 \end_inset
20327
20328
20329 \begin_inset Flex Code
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333 1
20334 \end_layout
20335
20336 \end_inset
20337
20338 ] As with paragraph styles, see 
20339 \begin_inset CommandInset ref
20340 LatexCommand ref
20341 reference "subsec:Paragraph-Styles"
20342
20343 \end_inset
20344
20345 .
20346  Default is false.
20347 \end_layout
20348
20349 \begin_layout Description
20350 \begin_inset Flex Code
20351 status collapsed
20352
20353 \begin_layout Plain Layout
20354 Preamble
20355 \end_layout
20356
20357 \end_inset
20358
20359  As with paragraph styles, see 
20360 \begin_inset CommandInset ref
20361 LatexCommand ref
20362 reference "subsec:Paragraph-Styles"
20363
20364 \end_inset
20365
20366 .
20367 \end_layout
20368
20369 \begin_layout Description
20370 \begin_inset Flex Code
20371 status collapsed
20372
20373 \begin_layout Plain Layout
20374 RefPrefix
20375 \end_layout
20376
20377 \end_inset
20378
20379  [
20380 \begin_inset Flex Code
20381 status collapsed
20382
20383 \begin_layout Plain Layout
20384 string
20385 \end_layout
20386
20387 \end_inset
20388
20389 ] The prefix to use when creating labels referring to insets of this type.
20390  This allows the use of formatted references.
20391 \end_layout
20392
20393 \begin_layout Description
20394 \begin_inset Flex Code
20395 status collapsed
20396
20397 \begin_layout Plain Layout
20398 Requires
20399 \end_layout
20400
20401 \end_inset
20402
20403  [
20404 \begin_inset Flex Code
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408 string
20409 \end_layout
20410
20411 \end_inset
20412
20413 ] As with paragraph styles, see 
20414 \begin_inset CommandInset ref
20415 LatexCommand ref
20416 reference "subsec:Paragraph-Styles"
20417
20418 \end_inset
20419
20420 .
20421 \end_layout
20422
20423 \begin_layout Description
20424 \begin_inset Flex Code
20425 status collapsed
20426
20427 \begin_layout Plain Layout
20428 ResetArgs
20429 \end_layout
20430
20431 \end_inset
20432
20433  [
20434 \begin_inset Flex Code
20435 status collapsed
20436
20437 \begin_layout Plain Layout
20438
20439 \emph on
20440 0
20441 \end_layout
20442
20443 \end_inset
20444
20445 ,
20446 \begin_inset space \thinspace{}
20447 \end_inset
20448
20449
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 1
20455 \end_layout
20456
20457 \end_inset
20458
20459 ] Resets the \SpecialChar LaTeX
20460  arguments of this layout (as defined via the 
20461 \begin_inset Flex Code
20462 status collapsed
20463
20464 \begin_layout Plain Layout
20465 Argument
20466 \end_layout
20467
20468 \end_inset
20469
20470  tag).
20471  This is useful if you have copied a style via 
20472 \begin_inset Flex Code
20473 status collapsed
20474
20475 \begin_layout Plain Layout
20476 CopyStyle
20477 \end_layout
20478
20479 \end_inset
20480
20481 , but you do not want to inherit its (required and optional) arguments.
20482 \end_layout
20483
20484 \begin_layout Description
20485 \begin_inset Flex Code
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 ResetsFont
20490 \end_layout
20491
20492 \end_inset
20493
20494  [
20495 \begin_inset Flex Code
20496 status collapsed
20497
20498 \begin_layout Plain Layout
20499 0
20500 \end_layout
20501
20502 \end_inset
20503
20504 ,
20505 \begin_inset space \thinspace{}
20506 \end_inset
20507
20508
20509 \begin_inset Flex Code
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513
20514 \emph on
20515 1
20516 \end_layout
20517
20518 \end_inset
20519
20520 ] Whether this inset should use the font of its surrounding environment
20521  or uses its own.
20522  Default is false: use the font of the surrounding environment.
20523 \end_layout
20524
20525 \begin_layout Description
20526 \begin_inset Flex Code
20527 status collapsed
20528
20529 \begin_layout Plain Layout
20530 RightDelim
20531 \end_layout
20532
20533 \end_inset
20534
20535  [
20536 \begin_inset Flex Code
20537 status collapsed
20538
20539 \begin_layout Plain Layout
20540 string
20541 \end_layout
20542
20543 \end_inset
20544
20545 ] A string that is put at the end of the layout content.
20546  A line break in the output can be indicated by 
20547 \begin_inset Flex Code
20548 status collapsed
20549
20550 \begin_layout Plain Layout
20551 <br/>
20552 \end_layout
20553
20554 \end_inset
20555
20556 .
20557 \end_layout
20558
20559 \begin_layout Description
20560 \begin_inset Flex Code
20561 status collapsed
20562
20563 \begin_layout Plain Layout
20564 Spellcheck
20565 \end_layout
20566
20567 \end_inset
20568
20569  [
20570 \begin_inset Flex Code
20571 status collapsed
20572
20573 \begin_layout Plain Layout
20574 0
20575 \end_layout
20576
20577 \end_inset
20578
20579 ,
20580 \begin_inset space \thinspace{}
20581 \end_inset
20582
20583
20584 \begin_inset Flex Code
20585 status collapsed
20586
20587 \begin_layout Plain Layout
20588
20589 \emph on
20590 1
20591 \end_layout
20592
20593 \end_inset
20594
20595 ] Allow spell-checking the contents of this inset.
20596  Default is true.
20597 \end_layout
20598
20599 \begin_layout Subsection
20600 Counters
20601 \begin_inset CommandInset label
20602 LatexCommand label
20603 name "subsec:Counters"
20604
20605 \end_inset
20606
20607
20608 \end_layout
20609
20610 \begin_layout Standard
20611 It is necessary to define the counters (
20612 \begin_inset Flex Noun
20613 status collapsed
20614
20615 \begin_layout Plain Layout
20616 chapter
20617 \end_layout
20618
20619 \end_inset
20620
20621
20622 \begin_inset Flex Noun
20623 status collapsed
20624
20625 \begin_layout Plain Layout
20626 figure
20627 \end_layout
20628
20629 \end_inset
20630
20631 , \SpecialChar ldots
20632 ) in the text class itself.
20633  The standard counters are defined in the file 
20634 \begin_inset Flex Code
20635 status collapsed
20636
20637 \begin_layout Plain Layout
20638 stdcounters.inc
20639 \end_layout
20640
20641 \end_inset
20642
20643 , so you may have to do no more than add
20644 \end_layout
20645
20646 \begin_layout LyX-Code
20647 Input stdcounters.inc
20648 \end_layout
20649
20650 \begin_layout Standard
20651 to your layout file to get them to work.
20652  But if you want to define custom counters, then you can do so.
20653  The counter declaration must begin with:
20654 \end_layout
20655
20656 \begin_layout LyX-Code
20657 Counter CounterName
20658 \end_layout
20659
20660 \begin_layout Standard
20661 where of course `
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 CounterName
20667 \end_layout
20668
20669 \end_inset
20670
20671 ' is replaced by the name of the counter.
20672  And it must end with 
20673 \begin_inset Quotes eld
20674 \end_inset
20675
20676
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 End
20682 \end_layout
20683
20684 \end_inset
20685
20686
20687 \begin_inset Quotes erd
20688 \end_inset
20689
20690 .
20691  The following parameters can also be used:
20692 \end_layout
20693
20694 \begin_layout Description
20695 \begin_inset Flex Code
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 InitialValue
20700 \end_layout
20701
20702 \end_inset
20703
20704  [
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 int=1
20710 \end_layout
20711
20712 \end_inset
20713
20714 ] Sets the initial value for the counter, to which it will be reset whenever
20715  that happens.
20716  Normally, one will want the default, 1.
20717 \end_layout
20718
20719 \begin_layout Description
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724 LabelString
20725 \end_layout
20726
20727 \end_inset
20728
20729  [
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 string
20735 \end_layout
20736
20737 \end_inset
20738
20739 =
20740 \begin_inset Quotes erd
20741 \end_inset
20742
20743
20744 \begin_inset Quotes erd
20745 \end_inset
20746
20747 ] When defined, this string defines how the counter is displayed.
20748  Setting this value sets 
20749 \begin_inset Flex Code
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753 LabelStringAppendix
20754 \end_layout
20755
20756 \end_inset
20757
20758  to the same value.
20759  The following special constructs can be used in the string:
20760 \end_layout
20761
20762 \begin_deeper
20763 \begin_layout Itemize
20764 \begin_inset Flex Code
20765 status collapsed
20766
20767 \begin_layout Plain Layout
20768
20769 \backslash
20770 thecounter
20771 \end_layout
20772
20773 \end_inset
20774
20775  will be replaced by the expansion of the 
20776 \begin_inset Flex Code
20777 status collapsed
20778
20779 \begin_layout Plain Layout
20780 LabelString
20781 \end_layout
20782
20783 \end_inset
20784
20785  (or 
20786 \begin_inset Flex Code
20787 status collapsed
20788
20789 \begin_layout Plain Layout
20790 LabelStringAppendix
20791 \end_layout
20792
20793 \end_inset
20794
20795 ) of the counter 
20796 \begin_inset Flex Code
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800 counter
20801 \end_layout
20802
20803 \end_inset
20804
20805 .
20806  
20807 \end_layout
20808
20809 \begin_layout Itemize
20810 counter values can be expressed using \SpecialChar LaTeX
20811 -like macros
20812 \begin_inset Newline newline
20813 \end_inset
20814
20815
20816 \begin_inset Flex Code
20817 status collapsed
20818
20819 \begin_layout Plain Layout
20820
20821 \backslash
20822
20823 \emph on
20824 numbertype
20825 \emph default
20826 {
20827 \emph on
20828 counter
20829 \emph default
20830 }
20831 \end_layout
20832
20833 \end_inset
20834
20835 , where 
20836 \begin_inset Flex Code
20837 status collapsed
20838
20839 \begin_layout Plain Layout
20840
20841 \emph on
20842 numbertype
20843 \end_layout
20844
20845 \end_inset
20846
20847  can be:
20848 \begin_inset Foot
20849 status collapsed
20850
20851 \begin_layout Plain Layout
20852
20853 \family roman
20854 \series medium
20855 \shape up
20856 \size normal
20857 \emph off
20858 \bar no
20859 \noun off
20860 \color none
20861 Actually, the situation is a bit more complicated: any
20862 \family default
20863 \series default
20864 \shape default
20865 \emph default
20866 \bar default
20867  
20868 \size default
20869 \emph on
20870 \noun default
20871 \color inherit
20872 numbertype
20873 \family roman
20874 \series medium
20875 \shape up
20876 \size normal
20877 \emph off
20878 \bar no
20879 \noun off
20880  other than those described below will produce arabic numerals.
20881  It would not be surprising to see this change in the future.
20882 \end_layout
20883
20884 \end_inset
20885
20886  
20887 \begin_inset Flex Code
20888 status collapsed
20889
20890 \begin_layout Plain Layout
20891 arabic
20892 \end_layout
20893
20894 \end_inset
20895
20896 : 1, 2, 3,\SpecialChar ldots
20897
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 alph
20903 \end_layout
20904
20905 \end_inset
20906
20907  for lower-case letters: a, b, c, \SpecialChar ldots
20908
20909 \begin_inset Flex Code
20910 status collapsed
20911
20912 \begin_layout Plain Layout
20913 Alph
20914 \end_layout
20915
20916 \end_inset
20917
20918  for upper-case letters: A, B, C, \SpecialChar ldots
20919
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 roman
20925 \end_layout
20926
20927 \end_inset
20928
20929  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20930
20931 \begin_inset Flex Code
20932 status collapsed
20933
20934 \begin_layout Plain Layout
20935 Roman
20936 \end_layout
20937
20938 \end_inset
20939
20940  for upper-case roman numerals: I, II, III\SpecialChar ldots
20941
20942 \begin_inset Flex Code
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946 hebrew
20947 \end_layout
20948
20949 \end_inset
20950
20951  for hebrew numerals.
20952 \end_layout
20953
20954 \end_deeper
20955 \begin_layout Standard
20956 If LabelString is not defined, a default value is constructed as follows:
20957  if the counter has a master counter 
20958 \begin_inset Flex Code
20959 status collapsed
20960
20961 \begin_layout Plain Layout
20962 master
20963 \end_layout
20964
20965 \end_inset
20966
20967  (defined via 
20968 \begin_inset Flex Code
20969 status collapsed
20970
20971 \begin_layout Plain Layout
20972 Within
20973 \end_layout
20974
20975 \end_inset
20976
20977 ), the string
20978 \begin_inset Newline newline
20979 \end_inset
20980
20981
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986
20987 \backslash
20988 themaster.
20989 \backslash
20990 arabic{counter}
20991 \end_layout
20992
20993 \end_inset
20994
20995  is used; otherwise the string 
20996 \begin_inset Flex Code
20997 status collapsed
20998
20999 \begin_layout Plain Layout
21000
21001 \backslash
21002 arabic{counter}
21003 \end_layout
21004
21005 \end_inset
21006
21007  is used.
21008 \end_layout
21009
21010 \begin_layout Description
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015 LabelStringAppendix
21016 \end_layout
21017
21018 \end_inset
21019
21020  [
21021 \begin_inset Flex Code
21022 status collapsed
21023
21024 \begin_layout Plain Layout
21025 string
21026 \end_layout
21027
21028 \end_inset
21029
21030 =
21031 \begin_inset Quotes erd
21032 \end_inset
21033
21034
21035 \begin_inset Quotes erd
21036 \end_inset
21037
21038 ] Same as 
21039 \begin_inset Flex Code
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043 LabelString
21044 \end_layout
21045
21046 \end_inset
21047
21048 , but for use in the Appendix.
21049 \end_layout
21050
21051 \begin_layout Description
21052 \begin_inset Flex Code
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056 PrettyFormat
21057 \end_layout
21058
21059 \end_inset
21060
21061  [
21062 \begin_inset Flex Code
21063 status collapsed
21064
21065 \begin_layout Plain Layout
21066 string
21067 \end_layout
21068
21069 \end_inset
21070
21071 =
21072 \begin_inset Quotes erd
21073 \end_inset
21074
21075
21076 \begin_inset Quotes erd
21077 \end_inset
21078
21079 ] A format for use with formatted references to this counter.
21080  For example, one might want to have references to section numbers appear
21081  as 
21082 \begin_inset Quotes eld
21083 \end_inset
21084
21085 Section 2.4
21086 \begin_inset Quotes erd
21087 \end_inset
21088
21089 .
21090  The string should contain 
21091 \begin_inset Quotes eld
21092 \end_inset
21093
21094 ##
21095 \begin_inset Quotes erd
21096 \end_inset
21097
21098 .
21099  This will be replaced by the counter number itself.
21100  So, for sections, it would be: Section ##.
21101 \end_layout
21102
21103 \begin_layout Description
21104 \begin_inset Flex Code
21105 status collapsed
21106
21107 \begin_layout Plain Layout
21108 Within
21109 \end_layout
21110
21111 \end_inset
21112
21113  [
21114 \begin_inset Flex Code
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118 string
21119 \end_layout
21120
21121 \end_inset
21122
21123 =
21124 \begin_inset Quotes erd
21125 \end_inset
21126
21127
21128 \begin_inset Quotes erd
21129 \end_inset
21130
21131 ] If this is set to the name of another counter, the present counter will
21132  be reset every time the other one is increased.
21133  For example, 
21134 \begin_inset Flex Code
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138 subsection
21139 \end_layout
21140
21141 \end_inset
21142
21143  is numbered inside 
21144 \begin_inset Flex Code
21145 status collapsed
21146
21147 \begin_layout Plain Layout
21148 section
21149 \end_layout
21150
21151 \end_inset
21152
21153 .
21154 \end_layout
21155
21156 \begin_layout Subsection
21157 Font description
21158 \begin_inset CommandInset label
21159 LatexCommand label
21160 name "subsec:Font-description"
21161
21162 \end_inset
21163
21164
21165 \end_layout
21166
21167 \begin_layout Standard
21168 A font description looks like this:
21169 \end_layout
21170
21171 \begin_layout LyX-Code
21172 Font 
21173 \family roman
21174 \emph on
21175 or
21176 \family default
21177 \emph default
21178  LabelFont
21179 \emph on
21180  
21181 \family roman
21182 or
21183 \family default
21184 \emph default
21185  DefaultFont
21186 \end_layout
21187
21188 \begin_layout LyX-Code
21189  ...
21190 \end_layout
21191
21192 \begin_layout LyX-Code
21193 EndFont
21194 \end_layout
21195
21196 \begin_layout Standard
21197 The following commands are available:
21198 \end_layout
21199
21200 \begin_layout Description
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205 Color
21206 \end_layout
21207
21208 \end_inset
21209
21210  [
21211 \begin_inset Flex Code
21212 status collapsed
21213
21214 \begin_layout Plain Layout
21215
21216 \emph on
21217 none
21218 \end_layout
21219
21220 \end_inset
21221
21222
21223 \begin_inset Flex Code
21224 status collapsed
21225
21226 \begin_layout Plain Layout
21227 black
21228 \end_layout
21229
21230 \end_inset
21231
21232
21233 \begin_inset Flex Code
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237 white
21238 \end_layout
21239
21240 \end_inset
21241
21242
21243 \begin_inset Flex Code
21244 status collapsed
21245
21246 \begin_layout Plain Layout
21247 red
21248 \end_layout
21249
21250 \end_inset
21251
21252
21253 \begin_inset Flex Code
21254 status collapsed
21255
21256 \begin_layout Plain Layout
21257 green
21258 \end_layout
21259
21260 \end_inset
21261
21262
21263 \begin_inset Flex Code
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267 blue
21268 \end_layout
21269
21270 \end_inset
21271
21272
21273 \begin_inset Flex Code
21274 status collapsed
21275
21276 \begin_layout Plain Layout
21277 cyan
21278 \end_layout
21279
21280 \end_inset
21281
21282
21283 \begin_inset Flex Code
21284 status collapsed
21285
21286 \begin_layout Plain Layout
21287 magenta
21288 \end_layout
21289
21290 \end_inset
21291
21292
21293 \begin_inset Flex Code
21294 status collapsed
21295
21296 \begin_layout Plain Layout
21297 yellow
21298 \end_layout
21299
21300 \end_inset
21301
21302
21303 \begin_inset Flex Code
21304 status collapsed
21305
21306 \begin_layout Plain Layout
21307 brown
21308 \end_layout
21309
21310 \end_inset
21311
21312
21313 \begin_inset Flex Code
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317 darkgray
21318 \end_layout
21319
21320 \end_inset
21321
21322
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 gray
21328 \end_layout
21329
21330 \end_inset
21331
21332
21333 \begin_inset Flex Code
21334 status collapsed
21335
21336 \begin_layout Plain Layout
21337 lightgray
21338 \end_layout
21339
21340 \end_inset
21341
21342
21343 \begin_inset Flex Code
21344 status collapsed
21345
21346 \begin_layout Plain Layout
21347 lime
21348 \end_layout
21349
21350 \end_inset
21351
21352
21353 \begin_inset Flex Code
21354 status collapsed
21355
21356 \begin_layout Plain Layout
21357 orange
21358 \end_layout
21359
21360 \end_inset
21361
21362
21363 \begin_inset Flex Code
21364 status collapsed
21365
21366 \begin_layout Plain Layout
21367 olive
21368 \end_layout
21369
21370 \end_inset
21371
21372
21373 \begin_inset Flex Code
21374 status collapsed
21375
21376 \begin_layout Plain Layout
21377 pink
21378 \end_layout
21379
21380 \end_inset
21381
21382
21383 \begin_inset Flex Code
21384 status collapsed
21385
21386 \begin_layout Plain Layout
21387 purple
21388 \end_layout
21389
21390 \end_inset
21391
21392
21393 \begin_inset Flex Code
21394 status collapsed
21395
21396 \begin_layout Plain Layout
21397 teal
21398 \end_layout
21399
21400 \end_inset
21401
21402
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 violet
21408 \end_layout
21409
21410 \end_inset
21411
21412 ]
21413 \end_layout
21414
21415 \begin_layout Description
21416 \begin_inset Flex Code
21417 status collapsed
21418
21419 \begin_layout Plain Layout
21420 Family
21421 \end_layout
21422
21423 \end_inset
21424
21425  [
21426 \begin_inset Flex Code
21427 status collapsed
21428
21429 \begin_layout Plain Layout
21430
21431 \emph on
21432 Roman
21433 \end_layout
21434
21435 \end_inset
21436
21437
21438 \begin_inset Flex Code
21439 status collapsed
21440
21441 \begin_layout Plain Layout
21442 Sans
21443 \end_layout
21444
21445 \end_inset
21446
21447
21448 \begin_inset Flex Code
21449 status collapsed
21450
21451 \begin_layout Plain Layout
21452 Typewriter
21453 \end_layout
21454
21455 \end_inset
21456
21457 ]
21458 \end_layout
21459
21460 \begin_layout Description
21461 \begin_inset Flex Code
21462 status collapsed
21463
21464 \begin_layout Plain Layout
21465 Misc
21466 \end_layout
21467
21468 \end_inset
21469
21470  [
21471 \begin_inset Flex Code
21472 status collapsed
21473
21474 \begin_layout Plain Layout
21475 string
21476 \end_layout
21477
21478 \end_inset
21479
21480 ] Valid arguments are: 
21481 \begin_inset Flex Code
21482 status collapsed
21483
21484 \begin_layout Plain Layout
21485 emph
21486 \end_layout
21487
21488 \end_inset
21489
21490
21491 \begin_inset Flex Code
21492 status collapsed
21493
21494 \begin_layout Plain Layout
21495 noun
21496 \end_layout
21497
21498 \end_inset
21499
21500
21501 \begin_inset Flex Code
21502 status collapsed
21503
21504 \begin_layout Plain Layout
21505 strikeout
21506 \end_layout
21507
21508 \end_inset
21509
21510
21511 \begin_inset Flex Code
21512 status collapsed
21513
21514 \begin_layout Plain Layout
21515 underbar
21516 \end_layout
21517
21518 \end_inset
21519
21520
21521 \begin_inset Flex Code
21522 status collapsed
21523
21524 \begin_layout Plain Layout
21525 uuline
21526 \end_layout
21527
21528 \end_inset
21529
21530
21531 \begin_inset Flex Code
21532 status collapsed
21533
21534 \begin_layout Plain Layout
21535 uwave
21536 \end_layout
21537
21538 \end_inset
21539
21540
21541 \begin_inset Flex Code
21542 status collapsed
21543
21544 \begin_layout Plain Layout
21545 no_emph
21546 \end_layout
21547
21548 \end_inset
21549
21550
21551 \begin_inset Flex Code
21552 status collapsed
21553
21554 \begin_layout Plain Layout
21555 no_noun
21556 \end_layout
21557
21558 \end_inset
21559
21560
21561 \begin_inset Flex Code
21562 status collapsed
21563
21564 \begin_layout Plain Layout
21565 no_strikeout
21566 \end_layout
21567
21568 \end_inset
21569
21570
21571 \begin_inset Flex Code
21572 status collapsed
21573
21574 \begin_layout Plain Layout
21575 no_bar
21576 \end_layout
21577
21578 \end_inset
21579
21580
21581 \begin_inset Flex Code
21582 status collapsed
21583
21584 \begin_layout Plain Layout
21585 no_uuline
21586 \end_layout
21587
21588 \end_inset
21589
21590  and 
21591 \begin_inset Flex Code
21592 status collapsed
21593
21594 \begin_layout Plain Layout
21595 no_uwave
21596 \end_layout
21597
21598 \end_inset
21599
21600 .
21601  Each of these turns on or off the corresponding attribute.
21602  For example, 
21603 \begin_inset Flex Code
21604 status collapsed
21605
21606 \begin_layout Plain Layout
21607 emph
21608 \end_layout
21609
21610 \end_inset
21611
21612  turns on emphasis, and 
21613 \begin_inset Flex Code
21614 status collapsed
21615
21616 \begin_layout Plain Layout
21617 no_emph
21618 \end_layout
21619
21620 \end_inset
21621
21622  turns it off.
21623  
21624 \begin_inset Newline newline
21625 \end_inset
21626
21627 If the latter seems puzzling, remember that the font settings for the present
21628  context are generally inherited from the surrounding context.
21629  So 
21630 \begin_inset Flex Code
21631 status collapsed
21632
21633 \begin_layout Plain Layout
21634 no_emph
21635 \end_layout
21636
21637 \end_inset
21638
21639  would turn off the emphasis that was anyway in effect, say, in a theorem
21640  environment.
21641 \end_layout
21642
21643 \begin_layout Description
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 Series
21649 \end_layout
21650
21651 \end_inset
21652
21653  [
21654 \begin_inset Flex Code
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658
21659 \emph on
21660 Medium
21661 \end_layout
21662
21663 \end_inset
21664
21665
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 Bold
21671 \end_layout
21672
21673 \end_inset
21674
21675
21676 \end_layout
21677
21678 \begin_layout Description
21679 \begin_inset Flex Code
21680 status collapsed
21681
21682 \begin_layout Plain Layout
21683 Shape
21684 \end_layout
21685
21686 \end_inset
21687
21688  [
21689 \begin_inset Flex Code
21690 status collapsed
21691
21692 \begin_layout Plain Layout
21693
21694 \emph on
21695 Up
21696 \end_layout
21697
21698 \end_inset
21699
21700
21701 \begin_inset Flex Code
21702 status collapsed
21703
21704 \begin_layout Plain Layout
21705 Italic
21706 \end_layout
21707
21708 \end_inset
21709
21710
21711 \begin_inset Flex Code
21712 status collapsed
21713
21714 \begin_layout Plain Layout
21715 SmallCaps
21716 \end_layout
21717
21718 \end_inset
21719
21720
21721 \begin_inset Flex Code
21722 status collapsed
21723
21724 \begin_layout Plain Layout
21725 Slanted
21726 \end_layout
21727
21728 \end_inset
21729
21730
21731 \end_layout
21732
21733 \begin_layout Description
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738 Size
21739 \end_layout
21740
21741 \end_inset
21742
21743  [
21744 \begin_inset Flex Code
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748 tiny
21749 \end_layout
21750
21751 \end_inset
21752
21753
21754 \begin_inset Flex Code
21755 status collapsed
21756
21757 \begin_layout Plain Layout
21758 small
21759 \end_layout
21760
21761 \end_inset
21762
21763
21764 \begin_inset Flex Code
21765 status collapsed
21766
21767 \begin_layout Plain Layout
21768
21769 \emph on
21770 normal
21771 \end_layout
21772
21773 \end_inset
21774
21775
21776 \begin_inset Flex Code
21777 status collapsed
21778
21779 \begin_layout Plain Layout
21780 large
21781 \end_layout
21782
21783 \end_inset
21784
21785
21786 \begin_inset Flex Code
21787 status collapsed
21788
21789 \begin_layout Plain Layout
21790 larger
21791 \end_layout
21792
21793 \end_inset
21794
21795
21796 \begin_inset Flex Code
21797 status collapsed
21798
21799 \begin_layout Plain Layout
21800 largest
21801 \end_layout
21802
21803 \end_inset
21804
21805
21806 \begin_inset Flex Code
21807 status collapsed
21808
21809 \begin_layout Plain Layout
21810 huge
21811 \end_layout
21812
21813 \end_inset
21814
21815
21816 \begin_inset Flex Code
21817 status collapsed
21818
21819 \begin_layout Plain Layout
21820 giant
21821 \end_layout
21822
21823 \end_inset
21824
21825 ]
21826 \end_layout
21827
21828 \begin_layout Subsection
21829 \begin_inset CommandInset label
21830 LatexCommand label
21831 name "subsec:Citation-engine-description"
21832
21833 \end_inset
21834
21835 Cite engine description
21836 \end_layout
21837
21838 \begin_layout Standard
21839 The 
21840 \begin_inset Flex Code
21841 status collapsed
21842
21843 \begin_layout Plain Layout
21844 CiteEngine
21845 \end_layout
21846
21847 \end_inset
21848
21849  blocks, as used mainly in cite engine files (see 
21850 \begin_inset CommandInset ref
21851 LatexCommand ref
21852 reference "subsec:Cite-Engine-Files"
21853 plural "false"
21854 caps "false"
21855 noprefix "false"
21856
21857 \end_inset
21858
21859 ), define the citation commands provided by a specific 
21860 \begin_inset Quotes eld
21861 \end_inset
21862
21863 cite engine
21864 \begin_inset Quotes erd
21865 \end_inset
21866
21867 .
21868  A cite engine, in \SpecialChar LyX
21869  terms, is way specific way to format citations, using
21870  numbers, author names and/or years.
21871  Currently, \SpecialChar LyX
21872  supports three such engine types, namely:
21873 \end_layout
21874
21875 \begin_layout Enumerate
21876 \begin_inset Flex Code
21877 status collapsed
21878
21879 \begin_layout Plain Layout
21880 default
21881 \end_layout
21882
21883 \end_inset
21884
21885 : the default Bib\SpecialChar TeX
21886  way to format citations, a simple numeric style (e.
21887 \begin_inset space \thinspace{}
21888 \end_inset
21889
21890 g., 
21891 \begin_inset Quotes eld
21892 \end_inset
21893
21894 [1]
21895 \begin_inset Quotes erd
21896 \end_inset
21897
21898 )
21899 \end_layout
21900
21901 \begin_layout Enumerate
21902 \begin_inset Flex Code
21903 status collapsed
21904
21905 \begin_layout Plain Layout
21906 authoryear
21907 \end_layout
21908
21909 \end_inset
21910
21911 : Harvard-styled citations using author names and publication year (e.
21912 \begin_inset space \thinspace{}
21913 \end_inset
21914
21915 g., 
21916 \begin_inset Quotes eld
21917 \end_inset
21918
21919 Smith and Miller (2017b)
21920 \begin_inset Quotes erd
21921 \end_inset
21922
21923 )
21924 \end_layout
21925
21926 \begin_layout Enumerate
21927 \begin_inset Flex Code
21928 status collapsed
21929
21930 \begin_layout Plain Layout
21931 numerical
21932 \end_layout
21933
21934 \end_inset
21935
21936 : extended numerical citations that also allow for author or title next
21937  to the number (e.
21938 \begin_inset space \thinspace{}
21939 \end_inset
21940
21941 g., 
21942 \begin_inset Quotes eld
21943 \end_inset
21944
21945 Smith and Miller [1]
21946 \begin_inset Quotes erd
21947 \end_inset
21948
21949 )
21950 \end_layout
21951
21952 \begin_layout Standard
21953 \begin_inset Flex Code
21954 status collapsed
21955
21956 \begin_layout Plain Layout
21957 CiteEngine
21958 \end_layout
21959
21960 \end_inset
21961
21962  blocks look like this:
21963 \end_layout
21964
21965 \begin_layout LyX-Code
21966 CiteEngine default
21967 \end_layout
21968
21969 \begin_layout LyX-Code
21970  cite
21971 \end_layout
21972
21973 \begin_layout LyX-Code
21974  Citep*[][]
21975 \end_layout
21976
21977 \begin_layout LyX-Code
21978  citeyearpar[][]=parencite*
21979 \end_layout
21980
21981 \begin_layout LyX-Code
21982  ...
21983 \end_layout
21984
21985 \begin_layout LyX-Code
21986 End
21987 \end_layout
21988
21989 \begin_layout Standard
21990 The tag following 
21991 \begin_inset Flex Code
21992 status collapsed
21993
21994 \begin_layout Plain Layout
21995 CiteEngine
21996 \end_layout
21997
21998 \end_inset
21999
22000  denotes the engine.
22001  The individual lines respectively define a cite command or cite command
22002  paradigm supported by this engine.
22003  The line can be as simple as a cite command that is used both to name the
22004  respective \SpecialChar LyX
22005  command and the \SpecialChar LaTeX
22006  output or more complex in order to differentiate
22007  things.
22008  The full syntax is:
22009 \end_layout
22010
22011 \begin_layout LyX-Code
22012 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22013 \end_layout
22014
22015 \begin_layout Itemize
22016 \begin_inset Flex Code
22017 status collapsed
22018
22019 \begin_layout Plain Layout
22020 LyXName
22021 \end_layout
22022
22023 \end_inset
22024
22025 : The name as used in the 
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 *.lyx
22031 \end_layout
22032
22033 \end_inset
22034
22035  file.
22036 \end_layout
22037
22038 \begin_deeper
22039 \begin_layout Standard
22040 For portability reasons, we try to use the same name for same-formatted
22041  commands in different cite packages (thus many names stem from natbib,
22042  and thus we need to differentiate a 
22043 \begin_inset Flex Code
22044 status collapsed
22045
22046 \begin_layout Plain Layout
22047 latexcmd
22048 \end_layout
22049
22050 \end_inset
22051
22052  sometimes, if the \SpecialChar LaTeX
22053  command names differ).
22054 \end_layout
22055
22056 \end_deeper
22057 \begin_layout Itemize
22058 \begin_inset Flex Code
22059 status collapsed
22060
22061 \begin_layout Plain Layout
22062 alias
22063 \end_layout
22064
22065 \end_inset
22066
22067 : a (comma-separated) list of commands that fall back to the given 
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 LyXName
22073 \end_layout
22074
22075 \end_inset
22076
22077  in the current engine.
22078  This eases the switch of citation packages and engines.
22079  The 
22080 \begin_inset Flex Code
22081 status collapsed
22082
22083 \begin_layout Plain Layout
22084 alias
22085 \end_layout
22086
22087 \end_inset
22088
22089  can be compared to 
22090 \begin_inset Flex Code
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094 ObsoletedBy
22095 \end_layout
22096
22097 \end_inset
22098
22099  in layout definitions.
22100 \end_layout
22101
22102 \begin_layout Itemize
22103 \begin_inset Flex Code
22104 status collapsed
22105
22106 \begin_layout Plain Layout
22107 latexcmd
22108 \end_layout
22109
22110 \end_inset
22111
22112 : The actual \SpecialChar LaTeX
22113  command that is output.
22114  
22115 \end_layout
22116
22117 \begin_layout Standard
22118 \begin_inset Flex Code
22119 status collapsed
22120
22121 \begin_layout Plain Layout
22122 Alias
22123 \end_layout
22124
22125 \end_inset
22126
22127  and 
22128 \begin_inset Flex Code
22129 status collapsed
22130
22131 \begin_layout Plain Layout
22132 latexcmd
22133 \end_layout
22134
22135 \end_inset
22136
22137  are optional.
22138  If no 
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 latexcmd
22144 \end_layout
22145
22146 \end_inset
22147
22148  is given, the 
22149 \begin_inset Flex Code
22150 status collapsed
22151
22152 \begin_layout Plain Layout
22153 LyXName
22154 \end_layout
22155
22156 \end_inset
22157
22158  will be output to \SpecialChar LaTeX
22159 .
22160 \end_layout
22161
22162 \begin_layout Standard
22163 Note further:
22164 \end_layout
22165
22166 \begin_layout Itemize
22167 Capitalization indicates that the command also has a capitalized form (
22168 \begin_inset Flex Code
22169 status collapsed
22170
22171 \begin_layout Plain Layout
22172
22173 \backslash
22174 Latexcmd
22175 \end_layout
22176
22177 \end_inset
22178
22179  vs.
22180  
22181 \begin_inset Flex Code
22182 status collapsed
22183
22184 \begin_layout Plain Layout
22185
22186 \backslash
22187 latexcmd
22188 \end_layout
22189
22190 \end_inset
22191
22192 ).
22193  These usually enforce up-casing of name prefixes (
22194 \emph on
22195 von Goethe
22196 \emph default
22197  
22198 \begin_inset Formula $\Rightarrow$
22199 \end_inset
22200
22201  
22202 \emph on
22203 Von Goethe
22204 \emph default
22205 ).
22206 \end_layout
22207
22208 \begin_layout Itemize
22209 Brackets 
22210 \begin_inset Flex Code
22211 status collapsed
22212
22213 \begin_layout Plain Layout
22214 []
22215 \end_layout
22216
22217 \end_inset
22218
22219  indicate the number of optional arguments (there can be 0–2).
22220 \end_layout
22221
22222 \begin_layout Itemize
22223 A star 
22224 \begin_inset Flex Code
22225 status collapsed
22226
22227 \begin_layout Plain Layout
22228 *
22229 \end_layout
22230
22231 \end_inset
22232
22233  indicates there is a starred version of the command (
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238
22239 \backslash
22240 latexcmd*
22241 \end_layout
22242
22243 \end_inset
22244
22245  vs.
22246  
22247 \begin_inset Flex Code
22248 status collapsed
22249
22250 \begin_layout Plain Layout
22251
22252 \backslash
22253 latexcmd
22254 \end_layout
22255
22256 \end_inset
22257
22258 ).
22259  
22260 \end_layout
22261
22262 \begin_deeper
22263 \begin_layout Standard
22264 By default, the starred version means: Output all authors even if it should
22265  be shortened with 
22266 \begin_inset Quotes eld
22267 \end_inset
22268
22269 et al.
22270 \begin_inset Quotes erd
22271 \end_inset
22272
22273  due to the 
22274 \begin_inset Flex Code
22275 status collapsed
22276
22277 \begin_layout Plain Layout
22278 MaxCiteNames
22279 \end_layout
22280
22281 \end_inset
22282
22283  threshold.
22284 \end_layout
22285
22286 \begin_layout Standard
22287 If the star has a different meaning for a given command, it can be specified
22288  in angle brackets: 
22289 \begin_inset Flex Code
22290 status collapsed
22291
22292 \begin_layout Plain Layout
22293 <!_stardesc!_stardesctooltip>
22294 \end_layout
22295
22296 \end_inset
22297
22298 .
22299  Maximal two translatable macro keywords, marked by the prefix 
22300 \begin_inset Flex Code
22301 status collapsed
22302
22303 \begin_layout Plain Layout
22304 !_
22305 \end_layout
22306
22307 \end_inset
22308
22309 , can be given.
22310  The first points to the string that replaces the 
22311 \begin_inset Quotes eld
22312 \end_inset
22313
22314 Full aut&hor list
22315 \begin_inset Quotes erd
22316 \end_inset
22317
22318  checkbox label in the citation dialog, the second one to an optional tool
22319  tip for this checkbox.
22320  
22321 \end_layout
22322
22323 \begin_layout Standard
22324 Note that these two macros have to be defined in a 
22325 \begin_inset Flex Code
22326 status collapsed
22327
22328 \begin_layout Plain Layout
22329 CiteFormat
22330 \end_layout
22331
22332 \end_inset
22333
22334  (see next section), dropping the 
22335 \begin_inset Flex Code
22336 status collapsed
22337
22338 \begin_layout Plain Layout
22339 !
22340 \end_layout
22341
22342 \end_inset
22343
22344  from the prefix, like this: 
22345 \end_layout
22346
22347 \begin_layout LyX-Code
22348 _stardesc Sta&rred command label
22349 \end_layout
22350
22351 \begin_layout LyX-Code
22352 _stardesctooltip Tooltip for the starred command checkbox.
22353 \end_layout
22354
22355 \end_deeper
22356 \begin_layout Itemize
22357 A dollar sign 
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 $
22363 \end_layout
22364
22365 \end_inset
22366
22367  indicates that this command features 
22368 \begin_inset Quotes eld
22369 \end_inset
22370
22371 qualified citation lists
22372 \begin_inset Quotes erd
22373 \end_inset
22374
22375 .
22376  This is a 
22377 \family sans
22378 Biblatex
22379 \family default
22380 -specific feature for multi-reference citations where an individual pre-
22381  and postnote can be given to each reference in the list.
22382  Please refer to the 
22383 \family sans
22384 Biblatex
22385 \family default
22386  manual for details.
22387 \change_inserted -712698321 1526898670
22388
22389 \end_layout
22390
22391 \begin_layout Standard
22392
22393 \change_inserted -712698321 1526899524
22394 If you want to add a cite command to a cite engine (e.
22395 \begin_inset space \thinspace{}
22396 \end_inset
22397
22398 g., add a specific command provided by a class), you can use 
22399 \begin_inset Flex Code
22400 status collapsed
22401
22402 \begin_layout Plain Layout
22403
22404 \change_inserted -712698321 1526898768
22405 AddToCiteEngine <engine type> \SpecialChar ldots
22406  End
22407 \change_unchanged
22408
22409 \end_layout
22410
22411 \end_inset
22412
22413 .
22414  Note that only cite commands that do not exist yet are added.
22415 \change_unchanged
22416
22417 \end_layout
22418
22419 \begin_layout Subsection
22420 \begin_inset CommandInset label
22421 LatexCommand label
22422 name "subsec:Citation-format-description"
22423
22424 \end_inset
22425
22426 Cite format description
22427 \end_layout
22428
22429 \begin_layout Standard
22430 The 
22431 \begin_inset Flex Code
22432 status collapsed
22433
22434 \begin_layout Plain Layout
22435 CiteFormat
22436 \end_layout
22437
22438 \end_inset
22439
22440  blocks are used to describe how bibliographic information should be displayed,
22441  both within \SpecialChar LyX
22442  itself (in the citation dialog and in tooltips, for example)
22443  and in XHTML output.
22444  Such a block might look like this:
22445 \end_layout
22446
22447 \begin_layout LyX-Code
22448 CiteFormat
22449 \end_layout
22450
22451 \begin_layout LyX-Code
22452  article ...
22453 \end_layout
22454
22455 \begin_layout LyX-Code
22456  book ...
22457 \end_layout
22458
22459 \begin_layout LyX-Code
22460 End
22461 \end_layout
22462
22463 \begin_layout Standard
22464 or
22465 \end_layout
22466
22467 \begin_layout LyX-Code
22468 CiteFormat
22469 \end_layout
22470
22471 \begin_layout LyX-Code
22472  cite ...
22473 \end_layout
22474
22475 \begin_layout LyX-Code
22476  citet*[][] ...
22477 \end_layout
22478
22479 \begin_layout LyX-Code
22480 End
22481 \end_layout
22482
22483 \begin_layout Standard
22484 In the first case, the individual lines define how the bibliographic information
22485  associated with an article or book, respectively, is to be displayed, and
22486  such a definition can be given for any 
22487 \begin_inset Quotes els
22488 \end_inset
22489
22490 entry type
22491 \begin_inset Quotes ers
22492 \end_inset
22493
22494  that might be present in a Bib\SpecialChar TeX
22495  file.
22496  \SpecialChar LyX
22497  defines a default format in the source code that will be used if no specific
22498  definition has been given.
22499  \SpecialChar LyX
22500  predefines several formats in the file 
22501 \begin_inset Flex Code
22502 status collapsed
22503
22504 \begin_layout Plain Layout
22505 stdciteformats.inc
22506 \end_layout
22507
22508 \end_inset
22509
22510 , which is included in most of \SpecialChar LyX
22511 's document classes.
22512 \end_layout
22513
22514 \begin_layout Standard
22515 In the second case, the lines define how a specific citation command (in
22516  the example 
22517 \begin_inset Flex Code
22518 status collapsed
22519
22520 \begin_layout Plain Layout
22521
22522 \backslash
22523 cite
22524 \end_layout
22525
22526 \end_inset
22527
22528
22529 \begin_inset Flex Code
22530 status collapsed
22531
22532 \begin_layout Plain Layout
22533
22534 \backslash
22535 citet
22536 \end_layout
22537
22538 \end_inset
22539
22540 ) is to be displayed on the citation inset label, in the citation dialog,
22541  menu or XHTML output.
22542  \SpecialChar LyX
22543  defines such formats for the citation style variants it supports via 
22544 \family sans
22545 Document\SpecialChar menuseparator
22546 Setting\SpecialChar menuseparator
22547 Bibliography\SpecialChar ldots
22548
22549 \family default
22550  in specific 
22551 \begin_inset Flex Code
22552 status collapsed
22553
22554 \begin_layout Plain Layout
22555 *.citeengine
22556 \end_layout
22557
22558 \end_inset
22559
22560  files that are shipped with \SpecialChar LyX
22561  (see 
22562 \begin_inset CommandInset ref
22563 LatexCommand ref
22564 reference "subsec:Cite-Engine-Files"
22565 plural "false"
22566 caps "false"
22567 noprefix "false"
22568
22569 \end_inset
22570
22571 ).
22572 \end_layout
22573
22574 \begin_layout Standard
22575 The definitions use a simple language that allows Bib\SpecialChar TeX
22576  keys to be replaced
22577  with their values.
22578  Keys should be enclosed in 
22579 \begin_inset Flex Code
22580 status collapsed
22581
22582 \begin_layout Plain Layout
22583 %
22584 \end_layout
22585
22586 \end_inset
22587
22588  signs, e.g.: 
22589 \begin_inset Flex Code
22590 status collapsed
22591
22592 \begin_layout Plain Layout
22593 %author%
22594 \end_layout
22595
22596 \end_inset
22597
22598 .
22599  So a simple definition might look like this:
22600 \end_layout
22601
22602 \begin_layout LyX-Code
22603 misc %author%, 
22604 \begin_inset Quotes eld
22605 \end_inset
22606
22607 %title%
22608 \begin_inset Quotes erd
22609 \end_inset
22610
22611 .
22612 \end_layout
22613
22614 \begin_layout Standard
22615 This would print the author, followed by a comma, followed by the title,
22616  in quotes, followed by a period.
22617 \end_layout
22618
22619 \begin_layout Standard
22620 Of course, sometimes you may want to print a key only if it exists.
22621  This can be done by using a conditional construction, such as: 
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626 {%volume%[[vol.
22627 \begin_inset space ~
22628 \end_inset
22629
22630 %volume%]]}
22631 \end_layout
22632
22633 \end_inset
22634
22635 .
22636  This says: If the 
22637 \begin_inset Flex Code
22638 status collapsed
22639
22640 \begin_layout Plain Layout
22641 volume
22642 \end_layout
22643
22644 \end_inset
22645
22646  key exists, then print 
22647 \begin_inset Quotes eld
22648 \end_inset
22649
22650 vol.
22651 \begin_inset space ~
22652 \end_inset
22653
22654
22655 \begin_inset Quotes erd
22656 \end_inset
22657
22658  followed by the volume key.
22659  It is also possible to have an else clause in the conditional, such as:
22660 \begin_inset Newline newline
22661 \end_inset
22662
22663
22664 \begin_inset Flex Code
22665 status collapsed
22666
22667 \begin_layout Plain Layout
22668 {%author%[[%author%]][[%editor%, ed.]]}
22669 \end_layout
22670
22671 \end_inset
22672
22673 .
22674 \begin_inset Newline newline
22675 \end_inset
22676
22677 Here, the 
22678 \begin_inset Flex Code
22679 status collapsed
22680
22681 \begin_layout Plain Layout
22682 author
22683 \end_layout
22684
22685 \end_inset
22686
22687  key is printed if it exists; otherwise, the editor key is printed, followed
22688  by 
22689 \begin_inset Quotes eld
22690 \end_inset
22691
22692 ,
22693 \begin_inset space ~
22694 \end_inset
22695
22696 ed.
22697 \begin_inset Quotes erd
22698 \end_inset
22699
22700  Note that the key is again enclosed in 
22701 \begin_inset Flex Code
22702 status collapsed
22703
22704 \begin_layout Plain Layout
22705 %
22706 \end_layout
22707
22708 \end_inset
22709
22710  signs; the entire conditional is enclosed in braces; and the if and else
22711  clauses are enclosed in double brackets, 
22712 \begin_inset Quotes eld
22713 \end_inset
22714
22715
22716 \begin_inset Flex Code
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720 [[
22721 \end_layout
22722
22723 \end_inset
22724
22725
22726 \begin_inset Quotes eld
22727 \end_inset
22728
22729  and 
22730 \begin_inset Quotes eld
22731 \end_inset
22732
22733
22734 \begin_inset Flex Code
22735 status collapsed
22736
22737 \begin_layout Plain Layout
22738 ]]
22739 \end_layout
22740
22741 \end_inset
22742
22743
22744 \begin_inset Quotes erd
22745 \end_inset
22746
22747 .
22748  There must be no space between any of these.
22749 \end_layout
22750
22751 \begin_layout Standard
22752 Next to the entry keys, there are some special keys that can be used for
22753  these conditionals:
22754 \end_layout
22755
22756 \begin_layout Itemize
22757 \begin_inset Flex Code
22758 status collapsed
22759
22760 \begin_layout Plain Layout
22761 {%dialog%[[true]][[false]]}
22762 \end_layout
22763
22764 \end_inset
22765
22766 : process the 
22767 \begin_inset Quotes eld
22768 \end_inset
22769
22770 true
22771 \begin_inset Quotes erd
22772 \end_inset
22773
22774  part for dialogs and menus, the 
22775 \begin_inset Quotes eld
22776 \end_inset
22777
22778 false
22779 \begin_inset Quotes erd
22780 \end_inset
22781
22782  part for other contexts (workarea, export)
22783 \end_layout
22784
22785 \begin_layout Itemize
22786 \begin_inset Flex Code
22787 status collapsed
22788
22789 \begin_layout Plain Layout
22790 {%export%[[true]][[false]]}
22791 \end_layout
22792
22793 \end_inset
22794
22795 : process the 
22796 \begin_inset Quotes eld
22797 \end_inset
22798
22799 true
22800 \begin_inset Quotes erd
22801 \end_inset
22802
22803  part for export and menus, the 
22804 \begin_inset Quotes eld
22805 \end_inset
22806
22807 false
22808 \begin_inset Quotes erd
22809 \end_inset
22810
22811  part for other contexts (workarea, dialog)
22812 \end_layout
22813
22814 \begin_layout Itemize
22815 \begin_inset Flex Code
22816 status collapsed
22817
22818 \begin_layout Plain Layout
22819 {%next%[[true]]}
22820 \end_layout
22821
22822 \end_inset
22823
22824 : process the 
22825 \begin_inset Quotes eld
22826 \end_inset
22827
22828 true
22829 \begin_inset Quotes erd
22830 \end_inset
22831
22832  part if another item follows (e.
22833 \begin_inset space \thinspace{}
22834 \end_inset
22835
22836 g., in a citation with multiple keys)
22837 \end_layout
22838
22839 \begin_layout Itemize
22840 \begin_inset Flex Code
22841 status collapsed
22842
22843 \begin_layout Plain Layout
22844 {%second%[[true]][[false]]}
22845 \end_layout
22846
22847 \end_inset
22848
22849 : process the 
22850 \begin_inset Quotes eld
22851 \end_inset
22852
22853 true
22854 \begin_inset Quotes erd
22855 \end_inset
22856
22857  if this is the second of multiple items, else the 
22858 \begin_inset Quotes eld
22859 \end_inset
22860
22861 false
22862 \begin_inset Quotes erd
22863 \end_inset
22864
22865  part
22866 \end_layout
22867
22868 \begin_layout Itemize
22869 \begin_inset Flex Code
22870 status collapsed
22871
22872 \begin_layout Plain Layout
22873 {%ifstar%[[true]][[false]]}
22874 \end_layout
22875
22876 \end_inset
22877
22878 : process the 
22879 \begin_inset Quotes eld
22880 \end_inset
22881
22882 true
22883 \begin_inset Quotes erd
22884 \end_inset
22885
22886  part for starred citation commands (such as 
22887 \begin_inset Flex Code
22888 status collapsed
22889
22890 \begin_layout Plain Layout
22891
22892 \backslash
22893 cite*
22894 \end_layout
22895
22896 \end_inset
22897
22898 ), the false part for unstarred
22899 \end_layout
22900
22901 \begin_layout Itemize
22902 \begin_inset Flex Code
22903 status collapsed
22904
22905 \begin_layout Plain Layout
22906 {%ifentrytype:<type>%[[true]][[false]]}
22907 \end_layout
22908
22909 \end_inset
22910
22911 : process the 
22912 \begin_inset Quotes eld
22913 \end_inset
22914
22915 true
22916 \begin_inset Quotes erd
22917 \end_inset
22918
22919  if the current entry type matches 
22920 \begin_inset Flex Code
22921 status collapsed
22922
22923 \begin_layout Plain Layout
22924 <type>
22925 \end_layout
22926
22927 \end_inset
22928
22929 , else the false part (e.g., in a citation definition: 
22930 \begin_inset Flex Code
22931 status collapsed
22932
22933 \begin_layout Plain Layout
22934 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22935 \end_layout
22936
22937 \end_inset
22938
22939 )
22940 \end_layout
22941
22942 \begin_layout Itemize
22943 \begin_inset Flex Code
22944 status collapsed
22945
22946 \begin_layout Plain Layout
22947 {%ifmultiple:<authortype>%[[true]][[false]]}
22948 \end_layout
22949
22950 \end_inset
22951
22952 : process the 
22953 \begin_inset Quotes eld
22954 \end_inset
22955
22956 true
22957 \begin_inset Quotes erd
22958 \end_inset
22959
22960  if the current author type (author, editor etc.) has multiple authors, else
22961  the false part (e.g., in a bibliography definition: 
22962 \begin_inset Flex Code
22963 status collapsed
22964
22965 \begin_layout Plain Layout
22966 {%ifmultiple:editor%[[eds.]][[ed.]]}
22967 \end_layout
22968
22969 \end_inset
22970
22971 )
22972 \end_layout
22973
22974 \begin_layout Itemize
22975 \begin_inset Flex Code
22976 status collapsed
22977
22978 \begin_layout Plain Layout
22979 {%ifqualified%[[true]][[false]]}
22980 \end_layout
22981
22982 \end_inset
22983
22984 : process the 
22985 \begin_inset Quotes eld
22986 \end_inset
22987
22988 true
22989 \begin_inset Quotes erd
22990 \end_inset
22991
22992  part if the current citation is a qualified citation list (a specific 
22993 \family sans
22994 Biblatex
22995 \family default
22996  format for multi-reference citations), the false part if this is not the
22997  case.
22998 \end_layout
22999
23000 \begin_layout Standard
23001 We said that 
23002 \begin_inset Flex Code
23003 status collapsed
23004
23005 \begin_layout Plain Layout
23006 %author%
23007 \end_layout
23008
23009 \end_inset
23010
23011  prints the author key as it is recorded in the bibliography file.
23012  This might not be what you want, since it will result in a string such
23013  as 
23014 \begin_inset Quotes eld
23015 \end_inset
23016
23017 Miller, Peter and Smith, Mary and White, Jane
23018 \begin_inset Quotes erd
23019 \end_inset
23020
23021  (since 
23022 \begin_inset Quotes eld
23023 \end_inset
23024
23025 and
23026 \begin_inset Quotes erd
23027 \end_inset
23028
23029  is used by Bib\SpecialChar TeX
23030  to delimit authors).
23031  \SpecialChar LyX
23032  therefore provides some methods to get properly formatted name lists (which
23033  will also get translated).
23034  The following keys are provided:
23035 \end_layout
23036
23037 \begin_layout Enumerate
23038 For name lists with pre- and surname, suitable for the main authors/editors
23039  of a bibliography item.
23040  The 
23041 \begin_inset Flex Code
23042 status collapsed
23043
23044 \begin_layout Plain Layout
23045 <nametype>
23046 \end_layout
23047
23048 \end_inset
23049
23050  part denotes the kind of list that is requested (e.g.
23051  
23052 \begin_inset Flex Code
23053 status collapsed
23054
23055 \begin_layout Plain Layout
23056 <nametype:author>
23057 \end_layout
23058
23059 \end_inset
23060
23061 ):
23062 \end_layout
23063
23064 \begin_deeper
23065 \begin_layout Itemize
23066 \begin_inset Flex Code
23067 status collapsed
23068
23069 \begin_layout Plain Layout
23070 %abbrvnames:<nametype>%
23071 \end_layout
23072
23073 \end_inset
23074
23075 : Provides a name list which is abbreviated (with 
23076 \begin_inset Quotes eld
23077 \end_inset
23078
23079 et al.
23080 \begin_inset Quotes erd
23081 \end_inset
23082
23083 ) when 
23084 \begin_inset Flex Code
23085 status collapsed
23086
23087 \begin_layout Plain Layout
23088 MaxCiteNames
23089 \end_layout
23090
23091 \end_inset
23092
23093  is reached.
23094 \end_layout
23095
23096 \begin_layout Itemize
23097 \begin_inset Flex Code
23098 status collapsed
23099
23100 \begin_layout Plain Layout
23101 %fullnames:<nametype>%
23102 \end_layout
23103
23104 \end_inset
23105
23106 : Provides a full name list (never abbreviated with 
23107 \begin_inset Quotes eld
23108 \end_inset
23109
23110 et al.
23111 \begin_inset Quotes erd
23112 \end_inset
23113
23114 ).
23115 \end_layout
23116
23117 \begin_layout Itemize
23118 \begin_inset Flex Code
23119 status collapsed
23120
23121 \begin_layout Plain Layout
23122 %forceabbrvnames:<nametype>%
23123 \end_layout
23124
23125 \end_inset
23126
23127 : Provides a name list which is always abbreviated (with 
23128 \begin_inset Quotes eld
23129 \end_inset
23130
23131 et al.
23132 \begin_inset Quotes erd
23133 \end_inset
23134
23135 ) irrespective of 
23136 \begin_inset Flex Code
23137 status collapsed
23138
23139 \begin_layout Plain Layout
23140 MaxCiteNames
23141 \end_layout
23142
23143 \end_inset
23144
23145 .
23146 \end_layout
23147
23148 \end_deeper
23149 \begin_layout Enumerate
23150 Alternative name lists with pre- and surname, if the order of pre- and surname
23151  inside the bibliography item differs (as in: 
23152 \begin_inset Quotes eld
23153 \end_inset
23154
23155 Miller, John: Some text, in: Mary Smith, ed.: A volume
23156 \begin_inset Quotes erd
23157 \end_inset
23158
23159 ):
23160 \end_layout
23161
23162 \begin_deeper
23163 \begin_layout Itemize
23164 \begin_inset Flex Code
23165 status collapsed
23166
23167 \begin_layout Plain Layout
23168 %abbrvbynames:<nametype>%
23169 \end_layout
23170
23171 \end_inset
23172
23173 : Provides a name list which is abbreviated (with 
23174 \begin_inset Quotes eld
23175 \end_inset
23176
23177 et al.
23178 \begin_inset Quotes erd
23179 \end_inset
23180
23181 ) when 
23182 \begin_inset Flex Code
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186 MaxCiteNames
23187 \end_layout
23188
23189 \end_inset
23190
23191  is reached.
23192 \end_layout
23193
23194 \begin_layout Itemize
23195 \begin_inset Flex Code
23196 status collapsed
23197
23198 \begin_layout Plain Layout
23199 %fullbynames:<nametype>%
23200 \end_layout
23201
23202 \end_inset
23203
23204 : Provides a full name list (never abbreviated with 
23205 \begin_inset Quotes eld
23206 \end_inset
23207
23208 et al.
23209 \begin_inset Quotes erd
23210 \end_inset
23211
23212 ).
23213 \end_layout
23214
23215 \begin_layout Itemize
23216 \begin_inset Flex Code
23217 status collapsed
23218
23219 \begin_layout Plain Layout
23220 %forceabbrvbynames:<nametype>%
23221 \end_layout
23222
23223 \end_inset
23224
23225 : Provides a name list which is always abbreviated (with 
23226 \begin_inset Quotes eld
23227 \end_inset
23228
23229 et al.
23230 \begin_inset Quotes erd
23231 \end_inset
23232
23233 ) irrespective of 
23234 \begin_inset Flex Code
23235 status collapsed
23236
23237 \begin_layout Plain Layout
23238 MaxCiteNames
23239 \end_layout
23240
23241 \end_inset
23242
23243 .
23244 \end_layout
23245
23246 \end_deeper
23247 \begin_layout Enumerate
23248 And finally name lists which consist of family names only, as used in author-yea
23249 r citation labels.
23250  These do not take a 
23251 \begin_inset Flex Code
23252 status collapsed
23253
23254 \begin_layout Plain Layout
23255 <nametype>
23256 \end_layout
23257
23258 \end_inset
23259
23260  part, but always return either an author list or, if this does not exist,
23261  an editor list (as common in author-year labels):
23262 \end_layout
23263
23264 \begin_deeper
23265 \begin_layout Itemize
23266 \begin_inset Flex Code
23267 status collapsed
23268
23269 \begin_layout Plain Layout
23270 %abbrvciteauthor%
23271 \end_layout
23272
23273 \end_inset
23274
23275 : Provides a name list which is abbreviated (with 
23276 \begin_inset Quotes eld
23277 \end_inset
23278
23279 et al.
23280 \begin_inset Quotes erd
23281 \end_inset
23282
23283 ) when 
23284 \begin_inset Flex Code
23285 status collapsed
23286
23287 \begin_layout Plain Layout
23288 MaxCiteNames
23289 \end_layout
23290
23291 \end_inset
23292
23293  is reached.
23294 \end_layout
23295
23296 \begin_layout Itemize
23297 \begin_inset Flex Code
23298 status collapsed
23299
23300 \begin_layout Plain Layout
23301 %fullciteauthor%
23302 \end_layout
23303
23304 \end_inset
23305
23306 : Provides a full name list (never abbreviated with 
23307 \begin_inset Quotes eld
23308 \end_inset
23309
23310 et al.
23311 \begin_inset Quotes erd
23312 \end_inset
23313
23314 ).
23315 \end_layout
23316
23317 \begin_layout Itemize
23318 \begin_inset Flex Code
23319 status collapsed
23320
23321 \begin_layout Plain Layout
23322 %forceabbrvciteauthor%
23323 \end_layout
23324
23325 \end_inset
23326
23327 : Provides a name list which is always abbreviated (with 
23328 \begin_inset Quotes eld
23329 \end_inset
23330
23331 et al.
23332 \begin_inset Quotes erd
23333 \end_inset
23334
23335 ) irrespective of 
23336 \begin_inset Flex Code
23337 status collapsed
23338
23339 \begin_layout Plain Layout
23340 MaxCiteNames
23341 \end_layout
23342
23343 \end_inset
23344
23345 .
23346 \end_layout
23347
23348 \end_deeper
23349 \begin_layout Standard
23350 The order of pre- and surname in the former two lists can be adjusted by
23351  these macros:
23352 \end_layout
23353
23354 \begin_layout Itemize
23355 \begin_inset Flex Code
23356 status collapsed
23357
23358 \begin_layout Plain Layout
23359 !firstnameform %surname%, %prename%
23360 \end_layout
23361
23362 \end_inset
23363
23364  (first author in lists of type 1)
23365 \end_layout
23366
23367 \begin_layout Itemize
23368 \begin_inset Flex Code
23369 status collapsed
23370
23371 \begin_layout Plain Layout
23372 !othernameform %surname%, %prename%
23373 \end_layout
23374
23375 \end_inset
23376
23377  (other authors in lists of type 1)
23378 \end_layout
23379
23380 \begin_layout Itemize
23381 \begin_inset Flex Code
23382 status collapsed
23383
23384 \begin_layout Plain Layout
23385 !firstbynameform %prename% %surname%
23386 \end_layout
23387
23388 \end_inset
23389
23390  (first author in lists of type 2)
23391 \end_layout
23392
23393 \begin_layout Itemize
23394 \begin_inset Flex Code
23395 status collapsed
23396
23397 \begin_layout Plain Layout
23398 !otherbynameform %prename% %surname%
23399 \end_layout
23400
23401 \end_inset
23402
23403  (other authors in lists of type 2)
23404 \end_layout
23405
23406 \begin_layout Standard
23407 This allows you to configure namings like 
23408 \begin_inset Quotes eld
23409 \end_inset
23410
23411 Miller, Peter and Mary Smith: \SpecialChar ldots
23412 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23413
23414 \begin_inset Quotes erd
23415 \end_inset
23416
23417 .
23418 \end_layout
23419
23420 \begin_layout Standard
23421 There is one other piece of syntax available in definitions, which looks
23422  like this: 
23423 \begin_inset Flex Code
23424 status collapsed
23425
23426 \begin_layout Plain Layout
23427 {!<i>!}
23428 \end_layout
23429
23430 \end_inset
23431
23432 .
23433  This defines a piece of formatting information that is to be used when
23434  creating 
23435 \begin_inset Quotes eld
23436 \end_inset
23437
23438 rich text
23439 \begin_inset Quotes erd
23440 \end_inset
23441
23442 .
23443  Obviously, we do not want to output HTML tags when writing plain text,
23444  so they should be wrapped in 
23445 \begin_inset Quotes eld
23446 \end_inset
23447
23448 {!
23449 \begin_inset Quotes erd
23450 \end_inset
23451
23452  and 
23453 \begin_inset Quotes eld
23454 \end_inset
23455
23456 !}
23457 \begin_inset Quotes erd
23458 \end_inset
23459
23460 .
23461 \end_layout
23462
23463 \begin_layout Standard
23464 Two special sorts of definitions are also possible in a 
23465 \begin_inset Flex Code
23466 status collapsed
23467
23468 \begin_layout Plain Layout
23469 CiteFormat
23470 \end_layout
23471
23472 \end_inset
23473
23474  block.
23475  An example of the first would be:
23476 \end_layout
23477
23478 \begin_layout LyX-Code
23479 !quotetitle 
23480 \begin_inset Quotes eld
23481 \end_inset
23482
23483 %title%
23484 \begin_inset Quotes erd
23485 \end_inset
23486
23487
23488 \end_layout
23489
23490 \begin_layout Standard
23491 This is an abbreviation, or macro, and it can be used by treating it as
23492  if it were a key: 
23493 \begin_inset Flex Code
23494 status collapsed
23495
23496 \begin_layout Plain Layout
23497 %!quotetitle%
23498 \end_layout
23499
23500 \end_inset
23501
23502 .
23503  \SpecialChar LyX
23504  will treat 
23505 \begin_inset Flex Code
23506 status collapsed
23507
23508 \begin_layout Plain Layout
23509 %!quotetitle%
23510 \end_layout
23511
23512 \end_inset
23513
23514  exactly as it would treat its definition.
23515  So, let us issue the obvious 
23516 \emph on
23517 warning
23518 \emph default
23519 .
23520  Do not do this:
23521 \end_layout
23522
23523 \begin_layout LyX-Code
23524 !funfun %funfun%
23525 \end_layout
23526
23527 \begin_layout Standard
23528 or anything like it.
23529  \SpecialChar LyX
23530  shouldn't go into an infinite loop, but it may go into a long one before
23531  it gives up.
23532 \end_layout
23533
23534 \begin_layout Standard
23535 The second sort of special definition might look like this:
23536 \end_layout
23537
23538 \begin_layout LyX-Code
23539 B_pptext pp.
23540 \end_layout
23541
23542 \begin_layout Standard
23543 This defines a translatable piece of text, which allows relevant parts of
23544  the bibliography or citation to be translated.
23545  It can be included in a definition by treating it as a key: 
23546 \begin_inset Flex Code
23547 status collapsed
23548
23549 \begin_layout Plain Layout
23550 %B_pptext%
23551 \end_layout
23552
23553 \end_inset
23554
23555 .
23556  Note that there are two different translation paths: All definitions starting
23557  with 
23558 \begin_inset Flex Code
23559 status collapsed
23560
23561 \begin_layout Plain Layout
23562 B_
23563 \end_layout
23564
23565 \end_inset
23566
23567 , such as in the example above, will be translated to the currently active
23568  buffer language (so the translation will match the generated document).
23569  All definitions starting with underscore only will be translated to the
23570  GUI language.
23571  This is the proper translation for strings that only occur in the dialogs
23572  or on buttons, such as this one:
23573 \end_layout
23574
23575 \begin_layout LyX-Code
23576 _addtobib Add to bibliography only.
23577 \end_layout
23578
23579 \begin_layout Standard
23580 Several of these translatable strings are predefined in 
23581 \begin_inset Flex Code
23582 status collapsed
23583
23584 \begin_layout Plain Layout
23585 stdciteformats.inc
23586 \end_layout
23587
23588 \end_inset
23589
23590  and the diverse 
23591 \begin_inset Flex Code
23592 status collapsed
23593
23594 \begin_layout Plain Layout
23595 *.citeengine
23596 \end_layout
23597
23598 \end_inset
23599
23600  files.
23601  Note that these are not macros, in the sense just defined.
23602  They will not be expanded.
23603 \end_layout
23604
23605 \begin_layout Standard
23606 So here then is an example that uses several of these features:
23607 \begin_inset VSpace defskip
23608 \end_inset
23609
23610
23611 \end_layout
23612
23613 \begin_layout Standard
23614 \noindent
23615
23616 \family sans
23617 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
23618 \end_layout
23619
23620 \begin_layout Standard
23621 \begin_inset VSpace defskip
23622 \end_inset
23623
23624 This defines a macro that prints the author, followed by a comma, if the
23625  
23626 \begin_inset Flex Code
23627 status collapsed
23628
23629 \begin_layout Plain Layout
23630 author
23631 \end_layout
23632
23633 \end_inset
23634
23635  key is defined, or else prints the name of the editor, followed by the
23636  
23637 \begin_inset Flex Code
23638 status collapsed
23639
23640 \begin_layout Plain Layout
23641 B_edtext
23642 \end_layout
23643
23644 \end_inset
23645
23646  or its translation (it is by default 
23647 \begin_inset Quotes eld
23648 \end_inset
23649
23650 ed.
23651 \begin_inset Quotes erd
23652 \end_inset
23653
23654 ), if the 
23655 \begin_inset Flex Code
23656 status collapsed
23657
23658 \begin_layout Plain Layout
23659 editor
23660 \end_layout
23661
23662 \end_inset
23663
23664  key is defined.
23665  Note that this is in fact defined in 
23666 \begin_inset Flex Code
23667 status collapsed
23668
23669 \begin_layout Plain Layout
23670 stdciteformats.inc
23671 \end_layout
23672
23673 \end_inset
23674
23675 , so you can use it in your own definitions, or re-definitions, if you load
23676  that file first.
23677 \end_layout
23678
23679 \begin_layout Section
23680 \begin_inset CommandInset label
23681 LatexCommand label
23682 name "sec:Tags-for-XHTML"
23683
23684 \end_inset
23685
23686 Tags for XHTML output
23687 \end_layout
23688
23689 \begin_layout Standard
23690 As with \SpecialChar LaTeX
23691  or DocBook, the format of \SpecialChar LyX
23692 's XHTML output is also controlled by
23693  layout information.
23694  In general, \SpecialChar LyX
23695  provides sensible defaults and, as mentioned earlier, it will
23696  even construct default CSS style rules from the other layout tags.
23697  For example, \SpecialChar LyX
23698  will attempt to use the information provided in the 
23699 \begin_inset Flex Code
23700 status collapsed
23701
23702 \begin_layout Plain Layout
23703 Font
23704 \end_layout
23705
23706 \end_inset
23707
23708  declaration for the Chapter style to write CSS that will appropriately
23709  format chapter headings.
23710 \end_layout
23711
23712 \begin_layout Standard
23713 In many cases, then, you may not have to do anything at all to get acceptable
23714  XHTML output for your own environments, custom insets, and so forth.
23715  But in some cases you will, and so \SpecialChar LyX
23716  provides a number of layout tags that
23717  can be used to customize the XHTML and CSS that are generated.
23718 \end_layout
23719
23720 \begin_layout Standard
23721 Note that there are two tags, 
23722 \begin_inset Flex Code
23723 status collapsed
23724
23725 \begin_layout Plain Layout
23726 HTMLPreamble
23727 \end_layout
23728
23729 \end_inset
23730
23731  and 
23732 \begin_inset Flex Code
23733 status collapsed
23734
23735 \begin_layout Plain Layout
23736 AddToHTMLPreamble
23737 \end_layout
23738
23739 \end_inset
23740
23741  that may appear outside style and inset declarations.
23742  See 
23743 \begin_inset CommandInset ref
23744 LatexCommand ref
23745 reference "subsec:General-text-class"
23746
23747 \end_inset
23748
23749  for details on these.
23750 \end_layout
23751
23752 \begin_layout Subsection
23753 \begin_inset CommandInset label
23754 LatexCommand label
23755 name "subsec:Paragraph-Style-XHTML"
23756
23757 \end_inset
23758
23759 Paragraph styles
23760 \end_layout
23761
23762 \begin_layout Standard
23763 The sort of XHTML \SpecialChar LyX
23764  outputs for a paragraph depends upon whether we are dealing
23765  with a normal paragraph, a command, or an environment, where this is itself
23766  determined by the contents of the corresponding 
23767 \begin_inset Flex Code
23768 status collapsed
23769
23770 \begin_layout Plain Layout
23771 \SpecialChar LaTeX
23772 Type
23773 \end_layout
23774
23775 \end_inset
23776
23777  tag.
23778  
23779 \end_layout
23780
23781 \begin_layout Standard
23782 For a command or normal paragraph, the output XHTML has the following form:
23783 \end_layout
23784
23785 \begin_layout LyX-Code
23786
23787 \family sans
23788 <tag attr=
23789 \begin_inset Quotes erd
23790 \end_inset
23791
23792 value
23793 \begin_inset Quotes erd
23794 \end_inset
23795
23796 >
23797 \end_layout
23798
23799 \begin_layout LyX-Code
23800
23801 \family sans
23802 <labeltag attr=
23803 \begin_inset Quotes erd
23804 \end_inset
23805
23806 value
23807 \begin_inset Quotes erd
23808 \end_inset
23809
23810 >Label</labeltag>
23811 \end_layout
23812
23813 \begin_layout LyX-Code
23814
23815 \family sans
23816 Contents of the paragraph.
23817 \end_layout
23818
23819 \begin_layout LyX-Code
23820
23821 \family sans
23822 </tag>
23823 \end_layout
23824
23825 \begin_layout Standard
23826 The label tags are of course omitted if the paragraph does not have a label.
23827 \end_layout
23828
23829 \begin_layout Standard
23830 For an environment that is not some sort of list, the XHTML takes this form:
23831 \end_layout
23832
23833 \begin_layout LyX-Code
23834
23835 \family sans
23836 <tag attr=
23837 \begin_inset Quotes erd
23838 \end_inset
23839
23840 value
23841 \begin_inset Quotes erd
23842 \end_inset
23843
23844 >
23845 \end_layout
23846
23847 \begin_layout LyX-Code
23848
23849 \family sans
23850 <itemtag attr=
23851 \begin_inset Quotes erd
23852 \end_inset
23853
23854 value
23855 \begin_inset Quotes erd
23856 \end_inset
23857
23858 ><labeltag attr=
23859 \begin_inset Quotes erd
23860 \end_inset
23861
23862 value
23863 \begin_inset Quotes erd
23864 \end_inset
23865
23866 >Environment Label</labeltag>First paragraph.</itemtag>
23867 \end_layout
23868
23869 \begin_layout LyX-Code
23870
23871 \family sans
23872 <itemtag>Second paragraph.</itemtag>
23873 \end_layout
23874
23875 \begin_layout LyX-Code
23876
23877 \family sans
23878 </tag>
23879 \end_layout
23880
23881 \begin_layout Standard
23882 Note that the label is output only for the first paragraph, as it should
23883  be for a theorem, for example.
23884  
23885 \end_layout
23886
23887 \begin_layout Standard
23888 For a list, we have one of these forms:
23889 \end_layout
23890
23891 \begin_layout LyX-Code
23892
23893 \family sans
23894 <tag attr=
23895 \begin_inset Quotes erd
23896 \end_inset
23897
23898 value
23899 \begin_inset Quotes erd
23900 \end_inset
23901
23902 >
23903 \end_layout
23904
23905 \begin_layout LyX-Code
23906
23907 \family sans
23908 <itemtag attr=
23909 \begin_inset Quotes erd
23910 \end_inset
23911
23912 value
23913 \begin_inset Quotes erd
23914 \end_inset
23915
23916 ><labeltag attr=
23917 \begin_inset Quotes erd
23918 \end_inset
23919
23920 value
23921 \begin_inset Quotes erd
23922 \end_inset
23923
23924 >List Label</labeltag>First item.</itemtag>
23925 \end_layout
23926
23927 \begin_layout LyX-Code
23928
23929 \family sans
23930 <itemtag attr=
23931 \begin_inset Quotes erd
23932 \end_inset
23933
23934 value
23935 \begin_inset Quotes erd
23936 \end_inset
23937
23938 ><labeltag attr=
23939 \begin_inset Quotes erd
23940 \end_inset
23941
23942 value
23943 \begin_inset Quotes erd
23944 \end_inset
23945
23946 >List Label</labeltag>Second item.</itemtag>
23947 \end_layout
23948
23949 \begin_layout LyX-Code
23950
23951 \family sans
23952 </tag>
23953 \end_layout
23954
23955 \begin_layout LyX-Code
23956
23957 \end_layout
23958
23959 \begin_layout LyX-Code
23960
23961 \family sans
23962 <tag attr=
23963 \begin_inset Quotes erd
23964 \end_inset
23965
23966 value
23967 \begin_inset Quotes erd
23968 \end_inset
23969
23970 >
23971 \end_layout
23972
23973 \begin_layout LyX-Code
23974
23975 \family sans
23976 <labeltag attr=
23977 \begin_inset Quotes erd
23978 \end_inset
23979
23980 value
23981 \begin_inset Quotes erd
23982 \end_inset
23983
23984 >List Label</labeltag><itemtag attr=
23985 \begin_inset Quotes erd
23986 \end_inset
23987
23988 value
23989 \begin_inset Quotes erd
23990 \end_inset
23991
23992 >First item.</itemtag>
23993 \end_layout
23994
23995 \begin_layout LyX-Code
23996
23997 \family sans
23998 <labeltag attr=
23999 \begin_inset Quotes erd
24000 \end_inset
24001
24002 value
24003 \begin_inset Quotes erd
24004 \end_inset
24005
24006 >List Label</labeltag><itemtag attr=
24007 \begin_inset Quotes erd
24008 \end_inset
24009
24010 value
24011 \begin_inset Quotes erd
24012 \end_inset
24013
24014 >Second item.</itemtag>
24015 \end_layout
24016
24017 \begin_layout LyX-Code
24018
24019 \family sans
24020 </tag>
24021 \end_layout
24022
24023 \begin_layout Standard
24024 Note the different orders of 
24025 \begin_inset Flex Code
24026 status collapsed
24027
24028 \begin_layout Plain Layout
24029 labeltag
24030 \end_layout
24031
24032 \end_inset
24033
24034  and 
24035 \begin_inset Flex Code
24036 status collapsed
24037
24038 \begin_layout Plain Layout
24039 itemtag
24040 \end_layout
24041
24042 \end_inset
24043
24044 .
24045  Which order we get depends upon the setting of 
24046 \begin_inset Flex Code
24047 status collapsed
24048
24049 \begin_layout Plain Layout
24050 HTMLLabelFirst
24051 \end_layout
24052
24053 \end_inset
24054
24055 : If 
24056 \begin_inset Flex Code
24057 status collapsed
24058
24059 \begin_layout Plain Layout
24060 HTMLLabelFirst
24061 \end_layout
24062
24063 \end_inset
24064
24065  is false (the default), you get the first of these, with the label within
24066  the item; if true, you get the second, with the label outside the item.
24067 \end_layout
24068
24069 \begin_layout Standard
24070 The specific tags and attributes output for each paragraph type can be controlle
24071 d by means of the layout tags we are about to describe.
24072  As mentioned earlier, however, \SpecialChar LyX
24073  uses sensible defaults for many of these,
24074  so you often may not need to do very much to get good XHTML output.
24075  Think of the available tags as there so you can tweak things to your liking.
24076 \end_layout
24077
24078 \begin_layout Description
24079 \begin_inset Flex Code
24080 status collapsed
24081
24082 \begin_layout Plain Layout
24083 HTMLAttr
24084 \end_layout
24085
24086 \end_inset
24087
24088  [
24089 \begin_inset Flex Code
24090 status collapsed
24091
24092 \begin_layout Plain Layout
24093 string
24094 \end_layout
24095
24096 \end_inset
24097
24098 ] Specifies attribute information to be output with the main tag.
24099  For example, 
24100 \begin_inset Quotes eld
24101 \end_inset
24102
24103
24104 \begin_inset Flex Code
24105 status collapsed
24106
24107 \begin_layout Plain Layout
24108 class=`mydiv'
24109 \end_layout
24110
24111 \end_inset
24112
24113
24114 \begin_inset Quotes erd
24115 \end_inset
24116
24117 .
24118  By default, \SpecialChar LyX
24119  will output 
24120 \begin_inset Quotes eld
24121 \end_inset
24122
24123
24124 \begin_inset Flex Code
24125 status collapsed
24126
24127 \begin_layout Plain Layout
24128 class=`layoutname'
24129 \end_layout
24130
24131 \end_inset
24132
24133
24134 \begin_inset Quotes erd
24135 \end_inset
24136
24137 , where 
24138 \begin_inset Flex Code
24139 status collapsed
24140
24141 \begin_layout Plain Layout
24142 layoutname
24143 \end_layout
24144
24145 \end_inset
24146
24147  is the \SpecialChar LyX
24148  name of the layout, made lowercase, for example: chapter.
24149  This should 
24150 \emph on
24151 not
24152 \emph default
24153  contain any style information.
24154  Use 
24155 \begin_inset Flex Code
24156 status collapsed
24157
24158 \begin_layout Plain Layout
24159 HTMLStyle
24160 \end_layout
24161
24162 \end_inset
24163
24164  for that purpose.
24165 \end_layout
24166
24167 \begin_layout Description
24168 \begin_inset Flex Code
24169 status collapsed
24170
24171 \begin_layout Plain Layout
24172 HTMLForceCSS
24173 \end_layout
24174
24175 \end_inset
24176
24177  [
24178 \begin_inset Flex Code
24179 status collapsed
24180
24181 \begin_layout Plain Layout
24182
24183 \emph on
24184 0
24185 \emph default
24186 ,1
24187 \end_layout
24188
24189 \end_inset
24190
24191 ] Whether to output the default CSS information \SpecialChar LyX
24192  generates for this layout,
24193  even if additional information is explicitly provided via 
24194 \begin_inset Flex Code
24195 status collapsed
24196
24197 \begin_layout Plain Layout
24198 HTMLStyle
24199 \end_layout
24200
24201 \end_inset
24202
24203 .
24204  Setting this to 
24205 \begin_inset Flex Code
24206 status collapsed
24207
24208 \begin_layout Plain Layout
24209 1
24210 \end_layout
24211
24212 \end_inset
24213
24214  allows you to alter or augment the generated CSS, rather than to override
24215  it completely.
24216  Default is 
24217 \begin_inset Flex Code
24218 status collapsed
24219
24220 \begin_layout Plain Layout
24221 0
24222 \end_layout
24223
24224 \end_inset
24225
24226 .
24227 \end_layout
24228
24229 \begin_layout Description
24230 \begin_inset Flex Code
24231 status collapsed
24232
24233 \begin_layout Plain Layout
24234 HTMLItem
24235 \end_layout
24236
24237 \end_inset
24238
24239  [
24240 \begin_inset Flex Code
24241 status collapsed
24242
24243 \begin_layout Plain Layout
24244 string
24245 \end_layout
24246
24247 \end_inset
24248
24249 ] The tag to be used for individual paragraphs of environments, replacing
24250  
24251 \begin_inset Flex Code
24252 status collapsed
24253
24254 \begin_layout Plain Layout
24255 itemtag
24256 \end_layout
24257
24258 \end_inset
24259
24260  in the examples above.
24261  Defaults to 
24262 \begin_inset Flex Code
24263 status collapsed
24264
24265 \begin_layout Plain Layout
24266 div
24267 \end_layout
24268
24269 \end_inset
24270
24271 .
24272 \end_layout
24273
24274 \begin_layout Description
24275 \begin_inset Flex Code
24276 status collapsed
24277
24278 \begin_layout Plain Layout
24279 HTMLItemAttr
24280 \end_layout
24281
24282 \end_inset
24283
24284  [
24285 \begin_inset Flex Code
24286 status collapsed
24287
24288 \begin_layout Plain Layout
24289 string
24290 \end_layout
24291
24292 \end_inset
24293
24294 ] Attributes for the item tag.
24295  Defaults to
24296 \begin_inset Newline newline
24297 \end_inset
24298
24299
24300 \begin_inset Quotes eld
24301 \end_inset
24302
24303
24304 \begin_inset Flex Code
24305 status collapsed
24306
24307 \begin_layout Plain Layout
24308 class=`layoutname_item'
24309 \end_layout
24310
24311 \end_inset
24312
24313
24314 \begin_inset Quotes erd
24315 \end_inset
24316
24317 .
24318  This should 
24319 \emph on
24320 not
24321 \emph default
24322  contain any style information.
24323  Use 
24324 \begin_inset Flex Code
24325 status collapsed
24326
24327 \begin_layout Plain Layout
24328 HTMLStyle
24329 \end_layout
24330
24331 \end_inset
24332
24333  for that purpose.
24334 \end_layout
24335
24336 \begin_layout Description
24337 \begin_inset Flex Code
24338 status collapsed
24339
24340 \begin_layout Plain Layout
24341 HTMLLabel
24342 \end_layout
24343
24344 \end_inset
24345
24346  [
24347 \begin_inset Flex Code
24348 status collapsed
24349
24350 \begin_layout Plain Layout
24351 string
24352 \end_layout
24353
24354 \end_inset
24355
24356 ] The tag to be used for paragraph and item labels, replacing 
24357 \begin_inset Flex Code
24358 status collapsed
24359
24360 \begin_layout Plain Layout
24361 labeltag
24362 \end_layout
24363
24364 \end_inset
24365
24366  in the examples above.
24367  Defaults to 
24368 \begin_inset Flex Code
24369 status collapsed
24370
24371 \begin_layout Plain Layout
24372 span
24373 \end_layout
24374
24375 \end_inset
24376
24377 , unless 
24378 \begin_inset Flex Code
24379 status collapsed
24380
24381 \begin_layout Plain Layout
24382 LabelType
24383 \end_layout
24384
24385 \end_inset
24386
24387  is either 
24388 \begin_inset Flex Code
24389 status collapsed
24390
24391 \begin_layout Plain Layout
24392 Top_Environment
24393 \end_layout
24394
24395 \end_inset
24396
24397  or 
24398 \begin_inset Flex Code
24399 status collapsed
24400
24401 \begin_layout Plain Layout
24402 Centered_Top_Environment
24403 \end_layout
24404
24405 \end_inset
24406
24407 , in which case it defaults to 
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412 div
24413 \end_layout
24414
24415 \end_inset
24416
24417 .
24418 \end_layout
24419
24420 \begin_layout Description
24421 \begin_inset Flex Code
24422 status collapsed
24423
24424 \begin_layout Plain Layout
24425 HTMLLabelAttr
24426 \end_layout
24427
24428 \end_inset
24429
24430  [
24431 \begin_inset Flex Code
24432 status collapsed
24433
24434 \begin_layout Plain Layout
24435 string
24436 \end_layout
24437
24438 \end_inset
24439
24440 ] Attributes for the label tag.
24441  Defaults to
24442 \begin_inset Newline newline
24443 \end_inset
24444
24445
24446 \begin_inset Quotes eld
24447 \end_inset
24448
24449
24450 \begin_inset Flex Code
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454 class=`layoutname_label'
24455 \end_layout
24456
24457 \end_inset
24458
24459
24460 \begin_inset Quotes erd
24461 \end_inset
24462
24463 .
24464  This should 
24465 \emph on
24466 not
24467 \emph default
24468  contain any style information.
24469  Use 
24470 \begin_inset Flex Code
24471 status collapsed
24472
24473 \begin_layout Plain Layout
24474 HTMLStyle
24475 \end_layout
24476
24477 \end_inset
24478
24479  for that purpose.
24480 \end_layout
24481
24482 \begin_layout Description
24483 \begin_inset Flex Code
24484 status collapsed
24485
24486 \begin_layout Plain Layout
24487 HTMLLabelFirst
24488 \end_layout
24489
24490 \end_inset
24491
24492  [
24493 \begin_inset Flex Code
24494 status collapsed
24495
24496 \begin_layout Plain Layout
24497
24498 \emph on
24499 0
24500 \emph default
24501 ,1
24502 \end_layout
24503
24504 \end_inset
24505
24506 ] Meaningful only for list-like environments, this tag controls whether
24507  the label tag is output before or inside the item tag.
24508  This is used, for example, in the description environment, where we want
24509  `
24510 \begin_inset Flex Code
24511 status collapsed
24512
24513 \begin_layout Plain Layout
24514 <dt>\SpecialChar ldots
24515 </dt><dd>\SpecialChar ldots
24516 </dd>
24517 \end_layout
24518
24519 \end_inset
24520
24521 .
24522  Default is 
24523 \begin_inset Flex Code
24524 status collapsed
24525
24526 \begin_layout Plain Layout
24527 0
24528 \end_layout
24529
24530 \end_inset
24531
24532 : The label tag is output inside the item tag.
24533 \end_layout
24534
24535 \begin_layout Description
24536 \begin_inset Flex Code
24537 status collapsed
24538
24539 \begin_layout Plain Layout
24540 HTMLPreamble
24541 \end_layout
24542
24543 \end_inset
24544
24545  Information to be output in the 
24546 \begin_inset Flex Code
24547 status collapsed
24548
24549 \begin_layout Plain Layout
24550 <head>
24551 \end_layout
24552
24553 \end_inset
24554
24555  section when this style is used.
24556  This might, for example, be used to include a 
24557 \begin_inset Flex Code
24558 status collapsed
24559
24560 \begin_layout Plain Layout
24561 <script>
24562 \end_layout
24563
24564 \end_inset
24565
24566  block defining an 
24567 \begin_inset Flex Code
24568 status collapsed
24569
24570 \begin_layout Plain Layout
24571 onclick
24572 \end_layout
24573
24574 \end_inset
24575
24576  handler.
24577 \end_layout
24578
24579 \begin_layout Description
24580 \begin_inset Flex Code
24581 status collapsed
24582
24583 \begin_layout Plain Layout
24584 HTMLStyle
24585 \end_layout
24586
24587 \end_inset
24588
24589  CSS style information to be included when this style is used.
24590  Note that this will automatically be wrapped in a layout-generated 
24591 \begin_inset Flex Code
24592 status collapsed
24593
24594 \begin_layout Plain Layout
24595 <style>
24596 \end_layout
24597
24598 \end_inset
24599
24600  block, so only the CSS itself need be included.
24601  Must end with 
24602 \begin_inset Flex Code
24603 status collapsed
24604
24605 \begin_layout Plain Layout
24606 EndHTMLStyle
24607 \end_layout
24608
24609 \end_inset
24610
24611 .
24612 \end_layout
24613
24614 \begin_layout Description
24615 \begin_inset Flex Code
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 HTMLTag
24620 \end_layout
24621
24622 \end_inset
24623
24624  [
24625 \begin_inset Flex Code
24626 status collapsed
24627
24628 \begin_layout Plain Layout
24629 string
24630 \end_layout
24631
24632 \end_inset
24633
24634 ] The tag to be used for the main label, replacing 
24635 \begin_inset Flex Code
24636 status collapsed
24637
24638 \begin_layout Plain Layout
24639 tag
24640 \end_layout
24641
24642 \end_inset
24643
24644  in the examples above.
24645  Defaults to 
24646 \begin_inset Flex Code
24647 status collapsed
24648
24649 \begin_layout Plain Layout
24650 div
24651 \end_layout
24652
24653 \end_inset
24654
24655 .
24656 \end_layout
24657
24658 \begin_layout Description
24659 \begin_inset Flex Code
24660 status collapsed
24661
24662 \begin_layout Plain Layout
24663 HTMLTitle
24664 \end_layout
24665
24666 \end_inset
24667
24668  [
24669 \begin_inset Flex Code
24670 status collapsed
24671
24672 \begin_layout Plain Layout
24673
24674 \emph on
24675 0
24676 \emph default
24677 ,1
24678 \end_layout
24679
24680 \end_inset
24681
24682 ] Marks this style as the one to be used to generate the 
24683 \begin_inset Flex Code
24684 status collapsed
24685
24686 \begin_layout Plain Layout
24687 <title>
24688 \end_layout
24689
24690 \end_inset
24691
24692  tag for the XHTML file.
24693  By default, it is false.
24694  The 
24695 \begin_inset Flex Code
24696 status collapsed
24697
24698 \begin_layout Plain Layout
24699 stdtitle.inc
24700 \end_layout
24701
24702 \end_inset
24703
24704  file sets it to true for the 
24705 \begin_inset Flex Code
24706 status collapsed
24707
24708 \begin_layout Plain Layout
24709 title
24710 \end_layout
24711
24712 \end_inset
24713
24714  environment.
24715  
24716 \end_layout
24717
24718 \begin_layout Subsection
24719 InsetLayout XHTML
24720 \end_layout
24721
24722 \begin_layout Standard
24723 The XHTML output of insets can also be controlled by information in layout
24724  files.
24725 \begin_inset Foot
24726 status collapsed
24727
24728 \begin_layout Plain Layout
24729 At present, this is true only for 
24730 \begin_inset Quotes eld
24731 \end_inset
24732
24733 text
24734 \begin_inset Quotes erd
24735 \end_inset
24736
24737  insets (insets you can type into) and is not true for 
24738 \begin_inset Quotes eld
24739 \end_inset
24740
24741 command
24742 \begin_inset Quotes erd
24743 \end_inset
24744
24745  insets (insets that are associated with dialog boxes).
24746 \end_layout
24747
24748 \end_inset
24749
24750  Here, too, \SpecialChar LyX
24751  tries to provide sensible defaults, and it constructs default
24752  CSS style rules.
24753  But everything can be customized.
24754 \end_layout
24755
24756 \begin_layout Standard
24757 The XHTML \SpecialChar LyX
24758  outputs for an inset has the following form:
24759 \end_layout
24760
24761 \begin_layout LyX-Code
24762 <tag attr=
24763 \begin_inset Quotes erd
24764 \end_inset
24765
24766 value
24767 \begin_inset Quotes erd
24768 \end_inset
24769
24770 >
24771 \end_layout
24772
24773 \begin_layout LyX-Code
24774 <labeltag>Label</labeltag>
24775 \end_layout
24776
24777 \begin_layout LyX-Code
24778 <innertag attr=
24779 \begin_inset Quotes erd
24780 \end_inset
24781
24782 value
24783 \begin_inset Quotes erd
24784 \end_inset
24785
24786 >Contents of the inset.</innertag>
24787 \end_layout
24788
24789 \begin_layout LyX-Code
24790 </tag>
24791 \end_layout
24792
24793 \begin_layout Standard
24794 If the inset permits multiple paragraphs—that is, if 
24795 \begin_inset Flex Code
24796 status collapsed
24797
24798 \begin_layout Plain Layout
24799 MultiPar
24800 \end_layout
24801
24802 \end_inset
24803
24804  is true—then the contents of the inset will itself be output as paragraphs
24805  formatted according to the styles used for those paragraphs (standard,
24806  quote, and the like).
24807  The label tag is of course omitted if the paragraph does not have a label
24808  and, at present, is always 
24809 \begin_inset Flex Code
24810 status collapsed
24811
24812 \begin_layout Plain Layout
24813 span
24814 \end_layout
24815
24816 \end_inset
24817
24818 .
24819  The inner tag is optional and, by default, does not appear.
24820 \end_layout
24821
24822 \begin_layout Standard
24823 The specific tags and attributes output for each inset can be controlled
24824  by means of the following layout tags.
24825 \end_layout
24826
24827 \begin_layout Description
24828 \begin_inset Flex Code
24829 status collapsed
24830
24831 \begin_layout Plain Layout
24832 HTMLAttr
24833 \end_layout
24834
24835 \end_inset
24836
24837  [
24838 \begin_inset Flex Code
24839 status collapsed
24840
24841 \begin_layout Plain Layout
24842 string
24843 \end_layout
24844
24845 \end_inset
24846
24847 ] Specifies attribute information to be output with the main tag.
24848  For example, 
24849 \begin_inset Quotes eld
24850 \end_inset
24851
24852
24853 \begin_inset Flex Code
24854 status collapsed
24855
24856 \begin_layout Plain Layout
24857 class=`myinset' onclick=`\SpecialChar ldots
24858 '
24859 \end_layout
24860
24861 \end_inset
24862
24863
24864 \begin_inset Quotes erd
24865 \end_inset
24866
24867 .
24868  By default, \SpecialChar LyX
24869  will output 
24870 \begin_inset Quotes eld
24871 \end_inset
24872
24873
24874 \begin_inset Flex Code
24875 status collapsed
24876
24877 \begin_layout Plain Layout
24878 class=`insetname'
24879 \end_layout
24880
24881 \end_inset
24882
24883
24884 \begin_inset Quotes erd
24885 \end_inset
24886
24887 , where 
24888 \begin_inset Flex Code
24889 status collapsed
24890
24891 \begin_layout Plain Layout
24892 insetname
24893 \end_layout
24894
24895 \end_inset
24896
24897  is the \SpecialChar LyX
24898  name of the inset, made lowercase and with non-alphanumeric characters
24899  converted to underscores, for example: footnote.
24900 \end_layout
24901
24902 \begin_layout Description
24903 \begin_inset Flex Code
24904 status collapsed
24905
24906 \begin_layout Plain Layout
24907 HTMLForceCSS
24908 \end_layout
24909
24910 \end_inset
24911
24912  [
24913 \begin_inset Flex Code
24914 status collapsed
24915
24916 \begin_layout Plain Layout
24917
24918 \emph on
24919 0
24920 \emph default
24921 ,1
24922 \end_layout
24923
24924 \end_inset
24925
24926 ] Whether to output the default CSS information \SpecialChar LyX
24927  generates for this layout,
24928  even if additional information is explicitly provided via 
24929 \begin_inset Flex Code
24930 status collapsed
24931
24932 \begin_layout Plain Layout
24933 HTMLStyle
24934 \end_layout
24935
24936 \end_inset
24937
24938 .
24939  Setting this to 
24940 \begin_inset Flex Code
24941 status collapsed
24942
24943 \begin_layout Plain Layout
24944 1
24945 \end_layout
24946
24947 \end_inset
24948
24949  allows you to alter or augment the generated CSS, rather than to override
24950  it completely.
24951  Default is 0.
24952 \end_layout
24953
24954 \begin_layout Description
24955 \begin_inset Flex Code
24956 status collapsed
24957
24958 \begin_layout Plain Layout
24959 HTMLInnerAttr
24960 \end_layout
24961
24962 \end_inset
24963
24964  [
24965 \begin_inset Flex Code
24966 status collapsed
24967
24968 \begin_layout Plain Layout
24969 string
24970 \end_layout
24971
24972 \end_inset
24973
24974 ] Attributes for the inner tag.
24975  Defaults to
24976 \begin_inset Newline newline
24977 \end_inset
24978
24979
24980 \begin_inset Quotes eld
24981 \end_inset
24982
24983
24984 \begin_inset Flex Code
24985 status collapsed
24986
24987 \begin_layout Plain Layout
24988 class=`insetname_inner'
24989 \end_layout
24990
24991 \end_inset
24992
24993
24994 \begin_inset Quotes erd
24995 \end_inset
24996
24997 .
24998 \end_layout
24999
25000 \begin_layout Description
25001 \begin_inset Flex Code
25002 status collapsed
25003
25004 \begin_layout Plain Layout
25005 HTMLInnerTag
25006 \end_layout
25007
25008 \end_inset
25009
25010  [
25011 \begin_inset Flex Code
25012 status collapsed
25013
25014 \begin_layout Plain Layout
25015 string
25016 \end_layout
25017
25018 \end_inset
25019
25020 ] The inner tag, replacing 
25021 \begin_inset Flex Code
25022 status collapsed
25023
25024 \begin_layout Plain Layout
25025 innertag
25026 \end_layout
25027
25028 \end_inset
25029
25030  in the examples above.
25031  By default, there is none.
25032 \end_layout
25033
25034 \begin_layout Description
25035 \begin_inset Flex Code
25036 status collapsed
25037
25038 \begin_layout Plain Layout
25039 HTMLIsBlock
25040 \end_layout
25041
25042 \end_inset
25043
25044  [
25045 \begin_inset Flex Code
25046 status collapsed
25047
25048 \begin_layout Plain Layout
25049 0,
25050 \emph on
25051 1
25052 \end_layout
25053
25054 \end_inset
25055
25056 ] Whether this inset represents a standalone block of text (such as a footnote)
25057  or instead represents material that is included in the surrounding text
25058  (such as a branch).
25059  Defaults to 1.
25060 \end_layout
25061
25062 \begin_layout Description
25063 \begin_inset Flex Code
25064 status collapsed
25065
25066 \begin_layout Plain Layout
25067 HTMLLabel
25068 \end_layout
25069
25070 \end_inset
25071
25072  [
25073 \begin_inset Flex Code
25074 status collapsed
25075
25076 \begin_layout Plain Layout
25077 string
25078 \end_layout
25079
25080 \end_inset
25081
25082 ] A label for this inset, possibly including a reference to a counter.
25083  For example, for footnote, it might be: 
25084 \begin_inset Flex Code
25085 status collapsed
25086
25087 \begin_layout Plain Layout
25088
25089 \backslash
25090 arabic{footnote}
25091 \end_layout
25092
25093 \end_inset
25094
25095 .
25096  This is optional, and there is no default.
25097 \end_layout
25098
25099 \begin_layout Description
25100 \begin_inset Flex Code
25101 status collapsed
25102
25103 \begin_layout Plain Layout
25104 HTMLPreamble
25105 \end_layout
25106
25107 \end_inset
25108
25109  Information to be output in the 
25110 \begin_inset Flex Code
25111 status collapsed
25112
25113 \begin_layout Plain Layout
25114 <head>
25115 \end_layout
25116
25117 \end_inset
25118
25119  section when this style is used.
25120  This might, for example, be used to include a 
25121 \begin_inset Flex Code
25122 status collapsed
25123
25124 \begin_layout Plain Layout
25125 <script>
25126 \end_layout
25127
25128 \end_inset
25129
25130  block defining an 
25131 \begin_inset Flex Code
25132 status collapsed
25133
25134 \begin_layout Plain Layout
25135 onclick
25136 \end_layout
25137
25138 \end_inset
25139
25140  handler.
25141 \end_layout
25142
25143 \begin_layout Description
25144 \begin_inset Flex Code
25145 status collapsed
25146
25147 \begin_layout Plain Layout
25148 HTMLStyle
25149 \end_layout
25150
25151 \end_inset
25152
25153  CSS style information to be included when this style is used.
25154  Note that this will automatically be wrapped in a layout-generated 
25155 \begin_inset Flex Code
25156 status collapsed
25157
25158 \begin_layout Plain Layout
25159 <style>
25160 \end_layout
25161
25162 \end_inset
25163
25164  block, so only the CSS itself need be included.
25165 \end_layout
25166
25167 \begin_layout Description
25168 \begin_inset Flex Code
25169 status collapsed
25170
25171 \begin_layout Plain Layout
25172 HTMLTag
25173 \end_layout
25174
25175 \end_inset
25176
25177  [
25178 \begin_inset Flex Code
25179 status collapsed
25180
25181 \begin_layout Plain Layout
25182 string
25183 \end_layout
25184
25185 \end_inset
25186
25187 ] The tag to be used for the main label, replacing 
25188 \begin_inset Flex Code
25189 status collapsed
25190
25191 \begin_layout Plain Layout
25192 tag
25193 \end_layout
25194
25195 \end_inset
25196
25197  in the examples above.
25198  The default depends upon the setting of 
25199 \begin_inset Flex Code
25200 status collapsed
25201
25202 \begin_layout Plain Layout
25203 MultiPar
25204 \end_layout
25205
25206 \end_inset
25207
25208 : If 
25209 \begin_inset Flex Code
25210 status collapsed
25211
25212 \begin_layout Plain Layout
25213 MultiPar
25214 \end_layout
25215
25216 \end_inset
25217
25218  is true, the default is 
25219 \begin_inset Flex Code
25220 status collapsed
25221
25222 \begin_layout Plain Layout
25223 div
25224 \end_layout
25225
25226 \end_inset
25227
25228 ; if it is false, the default is 
25229 \begin_inset Flex Code
25230 status collapsed
25231
25232 \begin_layout Plain Layout
25233 span
25234 \end_layout
25235
25236 \end_inset
25237
25238 .
25239 \end_layout
25240
25241 \begin_layout Subsection
25242 Float XHTML
25243 \end_layout
25244
25245 \begin_layout Standard
25246 The XHTML output for floats too can be controlled by layout information.
25247  The output has the following form:
25248 \end_layout
25249
25250 \begin_layout LyX-Code
25251 <tag attr=
25252 \begin_inset Quotes erd
25253 \end_inset
25254
25255 value
25256 \begin_inset Quotes erd
25257 \end_inset
25258
25259 >
25260 \end_layout
25261
25262 \begin_layout LyX-Code
25263 Contents of the float.
25264 \end_layout
25265
25266 \begin_layout LyX-Code
25267 </tag>
25268 \end_layout
25269
25270 \begin_layout Standard
25271 The caption, if there is one, is a separate inset and will be output as
25272  such.
25273  Its appearance can be controlled via the InsetLayout for caption insets.
25274  
25275 \end_layout
25276
25277 \begin_layout Description
25278 \begin_inset Flex Code
25279 status collapsed
25280
25281 \begin_layout Plain Layout
25282 HTMLAttr
25283 \end_layout
25284
25285 \end_inset
25286
25287  [
25288 \begin_inset Flex Code
25289 status collapsed
25290
25291 \begin_layout Plain Layout
25292 string
25293 \end_layout
25294
25295 \end_inset
25296
25297 ] Specifies attribute information to be output with the main tag.
25298  For example, 
25299 \begin_inset Quotes eld
25300 \end_inset
25301
25302
25303 \begin_inset Flex Code
25304 status collapsed
25305
25306 \begin_layout Plain Layout
25307 class=`myfloat' onclick=`\SpecialChar ldots
25308 '
25309 \end_layout
25310
25311 \end_inset
25312
25313
25314 \begin_inset Quotes erd
25315 \end_inset
25316
25317 .
25318  By default, \SpecialChar LyX
25319  will output 
25320 \begin_inset Quotes eld
25321 \end_inset
25322
25323
25324 \begin_inset Flex Code
25325 status collapsed
25326
25327 \begin_layout Plain Layout
25328 class=`float float-floattype'
25329 \end_layout
25330
25331 \end_inset
25332
25333
25334 \begin_inset Quotes erd
25335 \end_inset
25336
25337 , where 
25338 \begin_inset Flex Code
25339 status collapsed
25340
25341 \begin_layout Plain Layout
25342 floattype
25343 \end_layout
25344
25345 \end_inset
25346
25347  is \SpecialChar LyX
25348 's name for this type of float, as determined by the float declaration
25349  (see 
25350 \begin_inset CommandInset ref
25351 LatexCommand ref
25352 reference "subsec:Floats"
25353
25354 \end_inset
25355
25356 ), though made lowercase and with non-alphanumeric characters converted
25357  to underscores, for example: float-table.
25358 \end_layout
25359
25360 \begin_layout Description
25361 \begin_inset Flex Code
25362 status collapsed
25363
25364 \begin_layout Plain Layout
25365 HTMLStyle
25366 \end_layout
25367
25368 \end_inset
25369
25370  CSS style information to be included when this float is used.
25371  Note that this will automatically be wrapped in a layout-generated 
25372 \begin_inset Flex Code
25373 status collapsed
25374
25375 \begin_layout Plain Layout
25376 <style>
25377 \end_layout
25378
25379 \end_inset
25380
25381  block, so only the CSS itself need be included.
25382 \end_layout
25383
25384 \begin_layout Description
25385 \begin_inset Flex Code
25386 status collapsed
25387
25388 \begin_layout Plain Layout
25389 HTMLTag
25390 \end_layout
25391
25392 \end_inset
25393
25394  [
25395 \begin_inset Flex Code
25396 status collapsed
25397
25398 \begin_layout Plain Layout
25399 string
25400 \end_layout
25401
25402 \end_inset
25403
25404 ] The tag to be used for this float, replacing 
25405 \begin_inset Quotes eld
25406 \end_inset
25407
25408
25409 \begin_inset Flex Code
25410 status collapsed
25411
25412 \begin_layout Plain Layout
25413 tag
25414 \end_layout
25415
25416 \end_inset
25417
25418
25419 \begin_inset Quotes erd
25420 \end_inset
25421
25422  in the example above.
25423  The default is 
25424 \begin_inset Flex Code
25425 status collapsed
25426
25427 \begin_layout Plain Layout
25428 div
25429 \end_layout
25430
25431 \end_inset
25432
25433  and will rarely need changing.
25434 \end_layout
25435
25436 \begin_layout Subsection
25437 Bibliography formatting
25438 \end_layout
25439
25440 \begin_layout Standard
25441 The bibliography can be formatted using 
25442 \begin_inset Flex Code
25443 status collapsed
25444
25445 \begin_layout Plain Layout
25446 CiteFormat
25447 \end_layout
25448
25449 \end_inset
25450
25451  blocks.
25452  See 
25453 \begin_inset CommandInset ref
25454 LatexCommand ref
25455 reference "subsec:Citation-format-description"
25456
25457 \end_inset
25458
25459  for the details.
25460 \end_layout
25461
25462 \begin_layout Subsection
25463 \SpecialChar LyX
25464 -generated CSS
25465 \end_layout
25466
25467 \begin_layout Standard
25468 We have several times mentioned that \SpecialChar LyX
25469  will generate default CSS style rules
25470  for both insets and paragraph styles, based upon the other layout information
25471  that is provided.
25472  In this section, we shall say a word about which layout information \SpecialChar LyX
25473  uses
25474  and how.
25475 \end_layout
25476
25477 \begin_layout Standard
25478 At present, \SpecialChar LyX
25479  auto-generates CSS only for font information, making use of
25480  the 
25481 \begin_inset Flex Code
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485 Family
25486 \end_layout
25487
25488 \end_inset
25489
25490
25491 \begin_inset Flex Code
25492 status collapsed
25493
25494 \begin_layout Plain Layout
25495 Series
25496 \end_layout
25497
25498 \end_inset
25499
25500
25501 \begin_inset Flex Code
25502 status collapsed
25503
25504 \begin_layout Plain Layout
25505 Shape
25506 \end_layout
25507
25508 \end_inset
25509
25510 , and 
25511 \begin_inset Flex Code
25512 status collapsed
25513
25514 \begin_layout Plain Layout
25515 Size
25516 \end_layout
25517
25518 \end_inset
25519
25520  specified in the 
25521 \begin_inset Flex Code
25522 status collapsed
25523
25524 \begin_layout Plain Layout
25525 Font
25526 \end_layout
25527
25528 \end_inset
25529
25530  declaration (see 
25531 \begin_inset CommandInset ref
25532 LatexCommand ref
25533 reference "subsec:Font-description"
25534
25535 \end_inset
25536
25537 ).
25538  The translation is mostly straightforward and obvious.
25539  For example, 
25540 \begin_inset Quotes eld
25541 \end_inset
25542
25543
25544 \begin_inset Flex Code
25545 status collapsed
25546
25547 \begin_layout Plain Layout
25548 Family Sans
25549 \end_layout
25550
25551 \end_inset
25552
25553
25554 \begin_inset Quotes erd
25555 \end_inset
25556
25557  becomes 
25558 \begin_inset Quotes eld
25559 \end_inset
25560
25561
25562 \begin_inset Flex Code
25563 status collapsed
25564
25565 \begin_layout Plain Layout
25566 font-family: sans-serif;
25567 \end_layout
25568
25569 \end_inset
25570
25571
25572 \begin_inset Quotes erd
25573 \end_inset
25574
25575 .
25576  The correspondence of \SpecialChar LyX
25577  sizes and CSS sizes is a little less obvious but
25578  nonetheless intuitive.
25579  See the 
25580 \begin_inset Flex Code
25581 status collapsed
25582
25583 \begin_layout Plain Layout
25584 getSizeCSS()
25585 \end_layout
25586
25587 \end_inset
25588
25589  function in 
25590 \begin_inset Flex URL
25591 status collapsed
25592
25593 \begin_layout Plain Layout
25594
25595 src/FontInfo.cpp
25596 \end_layout
25597
25598 \end_inset
25599
25600  for the details.
25601 \end_layout
25602
25603 \begin_layout Chapter
25604 Including External Material
25605 \begin_inset CommandInset label
25606 LatexCommand label
25607 name "chap:Including-External-Material"
25608
25609 \end_inset
25610
25611
25612 \end_layout
25613
25614 \begin_layout Standard
25615 \begin_inset Box Shadowbox
25616 position "t"
25617 hor_pos "c"
25618 has_inner_box 1
25619 inner_pos "t"
25620 use_parbox 0
25621 use_makebox 0
25622 width "100col%"
25623 special "none"
25624 height "1in"
25625 height_special "totalheight"
25626 thickness "0.4pt"
25627 separation "3pt"
25628 shadowsize "4pt"
25629 framecolor "black"
25630 backgroundcolor "none"
25631 status open
25632
25633 \begin_layout Plain Layout
25634 WARNING: This portion of the documentation has not been updated for some
25635  time.
25636  We certainly hope that it is still accurate, but there are no guarantees.
25637 \end_layout
25638
25639 \end_inset
25640
25641
25642 \end_layout
25643
25644 \begin_layout Standard
25645 The use of material from sources external to \SpecialChar LyX
25646  is covered in detail in the
25647  
25648 \emph on
25649 Embedded Objects
25650 \emph default
25651  manual.
25652  This part of the manual covers what needs to happen behind the scenes for
25653  new sorts of material to be included.
25654 \end_layout
25655
25656 \begin_layout Section
25657 How does it work?
25658 \end_layout
25659
25660 \begin_layout Standard
25661 The external material feature is based on the concept of a 
25662 \emph on
25663 template
25664 \emph default
25665 .
25666  A template is a specification of how \SpecialChar LyX
25667  should interface with a certain kind
25668  of material.
25669  As bundled, \SpecialChar LyX
25670  comes with predefined templates for Xfig figures, various
25671  raster format images, chess diagrams, and LilyPond music notation.
25672  You can check the actual list by using the menu 
25673 \begin_inset Flex Noun
25674 status collapsed
25675
25676 \begin_layout Plain Layout
25677 Insert\SpecialChar menuseparator
25678 File\SpecialChar menuseparator
25679 External Material
25680 \end_layout
25681
25682 \end_inset
25683
25684 .
25685  Furthermore, it is possible to roll your own template to support a specific
25686  kind of material.
25687  Later we'll describe in more detail what is involved, and hopefully you
25688  will submit all the templates you create so we can include them in a later
25689  \SpecialChar LyX
25690  version.
25691 \end_layout
25692
25693 \begin_layout Standard
25694 Another basic idea of the external material feature is to distinguish between
25695  the original file that serves as a base for final material and the produced
25696  file that is included in your exported or printed document.
25697  For example, consider the case of a figure produced with 
25698 \begin_inset Flex Code
25699 status collapsed
25700
25701 \begin_layout Plain Layout
25702 Xfig
25703 \end_layout
25704
25705 \end_inset
25706
25707 .
25708  The Xfig application itself works on an original file with the 
25709 \begin_inset Flex Code
25710 status collapsed
25711
25712 \begin_layout Plain Layout
25713 .fig
25714 \end_layout
25715
25716 \end_inset
25717
25718  extension.
25719  Within Xfig, you create and change your figure, and when you are done,
25720  you save the 
25721 \begin_inset Flex Code
25722 status collapsed
25723
25724 \begin_layout Plain Layout
25725 fig
25726 \end_layout
25727
25728 \end_inset
25729
25730 -file.
25731  When you want to include the figure in your document, you invoke 
25732 \begin_inset Flex Code
25733 status collapsed
25734
25735 \begin_layout Plain Layout
25736 transfig
25737 \end_layout
25738
25739 \end_inset
25740
25741  in order to create a PostScript file that can readily be included in your
25742  \SpecialChar LaTeX
25743  file.
25744  In this case, the 
25745 \begin_inset Flex Code
25746 status collapsed
25747
25748 \begin_layout Plain Layout
25749 .fig
25750 \end_layout
25751
25752 \end_inset
25753
25754  file is the original file, and the PostScript file is the produced file.
25755 \end_layout
25756
25757 \begin_layout Standard
25758 This distinction is important in order to allow updating of the material
25759  while you are in the process of writing the document.
25760  Furthermore, it provides us with the flexibility that is needed to support
25761  multiple export formats.
25762  For instance, in the case of a plain text file, it is not exactly an award-winn
25763 ing idea to include the figure as raw PostScript.
25764  Instead, you would either prefer to just include a reference to the figure
25765  or try to invoke some graphics to ASCII converter to make the final result
25766  look similar to the real graphics.
25767  The external material management allows you to do this, because it is parametri
25768 zed on the different export formats that \SpecialChar LyX
25769  supports.
25770 \end_layout
25771
25772 \begin_layout Standard
25773 Besides supporting the production of different products according to the
25774  exported format, it supports tight integration with editing and viewing
25775  applications.
25776  In the case of an Xfig figure, you are able to invoke Xfig on the original
25777  file with a single click from within the external material dialog in \SpecialChar LyX
25778 ,
25779  and also preview the produced PostScript file with Ghostview with another
25780  click.
25781  No more fiddling around with the command line and/or file browsers to locate
25782  and manipulate the original or produced files.
25783  In this way, you are finally able to take full advantage of the many different
25784  applications that are relevant to use when you write your documents, and
25785  ultimately be more productive.
25786 \end_layout
25787
25788 \begin_layout Section
25789 The external template configuration files
25790 \end_layout
25791
25792 \begin_layout Standard
25793 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25794 .
25795  However, be aware that doing this in an careless manner most probably 
25796 \emph on
25797 will
25798 \emph default
25799  introduce an easily exploitable security hole.
25800  So before you do this, please read the discussion about security in 
25801 \begin_inset CommandInset ref
25802 LatexCommand ref
25803 reference "sec:Security-discussion"
25804
25805 \end_inset
25806
25807 .
25808 \end_layout
25809
25810 \begin_layout Standard
25811 Having said that, we encourage you to submit any interesting templates that
25812  you create.
25813  
25814 \end_layout
25815
25816 \begin_layout Standard
25817 The external templates are defined in the 
25818 \begin_inset Flex Code
25819 status collapsed
25820
25821 \begin_layout Plain Layout
25822 *.xtemplate
25823 \end_layout
25824
25825 \end_inset
25826
25827  files that are stored in the 
25828 \begin_inset Flex Code
25829 status collapsed
25830
25831 \begin_layout Plain Layout
25832 LyXDir/lib/xtemplates/
25833 \end_layout
25834
25835 \end_inset
25836
25837  directory.
25838  Each template is defined in a file of its own.
25839  You can place your own templates in 
25840 \begin_inset Flex Code
25841 status collapsed
25842
25843 \begin_layout Plain Layout
25844 UserDir/xtemplates/
25845 \end_layout
25846
25847 \end_inset
25848
25849  or copy existing templates to that directory in order to modify them.
25850 \end_layout
25851
25852 \begin_layout Standard
25853 A typical template looks like this:
25854 \end_layout
25855
25856 \begin_layout LyX-Code
25857 Template XFig
25858 \end_layout
25859
25860 \begin_layout LyX-Code
25861 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25862 \end_layout
25863
25864 \begin_layout LyX-Code
25865 HelpText
25866 \end_layout
25867
25868 \begin_layout LyX-Code
25869 An XFig figure.
25870 \end_layout
25871
25872 \begin_layout LyX-Code
25873 HelpTextEnd
25874 \end_layout
25875
25876 \begin_layout LyX-Code
25877 InputFormat fig
25878 \end_layout
25879
25880 \begin_layout LyX-Code
25881 FileFilter "*.fig"
25882 \end_layout
25883
25884 \begin_layout LyX-Code
25885 AutomaticProduction true
25886 \end_layout
25887
25888 \begin_layout LyX-Code
25889 Transform Rotate
25890 \end_layout
25891
25892 \begin_layout LyX-Code
25893 Transform Resize
25894 \end_layout
25895
25896 \begin_layout LyX-Code
25897 Format LaTeX
25898 \end_layout
25899
25900 \begin_layout LyX-Code
25901 TransformCommand Rotate RotationLatexCommand
25902 \end_layout
25903
25904 \begin_layout LyX-Code
25905 TransformCommand Resize ResizeLatexCommand
25906 \end_layout
25907
25908 \begin_layout LyX-Code
25909 Product "$$RotateFront$$ResizeFront
25910 \end_layout
25911
25912 \begin_layout LyX-Code
25913          
25914 \backslash
25915
25916 \backslash
25917 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25918 \end_layout
25919
25920 \begin_layout LyX-Code
25921          $$ResizeBack$$RotateBack"
25922 \end_layout
25923
25924 \begin_layout LyX-Code
25925 UpdateFormat pstex
25926 \end_layout
25927
25928 \begin_layout LyX-Code
25929 UpdateResult "$$AbsPath$$Basename.pstex_t"
25930 \end_layout
25931
25932 \begin_layout LyX-Code
25933 Requirement "graphicx"
25934 \end_layout
25935
25936 \begin_layout LyX-Code
25937 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25938 \end_layout
25939
25940 \begin_layout LyX-Code
25941 ReferencedFile latex "$$AbsPath$$Basename.eps"
25942 \end_layout
25943
25944 \begin_layout LyX-Code
25945 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25946 \end_layout
25947
25948 \begin_layout LyX-Code
25949 FormatEnd
25950 \end_layout
25951
25952 \begin_layout LyX-Code
25953 Format PDFLaTeX
25954 \end_layout
25955
25956 \begin_layout LyX-Code
25957 TransformCommand Rotate RotationLatexCommand
25958 \end_layout
25959
25960 \begin_layout LyX-Code
25961 TransformCommand Resize ResizeLatexCommand
25962 \end_layout
25963
25964 \begin_layout LyX-Code
25965 Product "$$RotateFront$$ResizeFront
25966 \end_layout
25967
25968 \begin_layout LyX-Code
25969          
25970 \backslash
25971
25972 \backslash
25973 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25974 \end_layout
25975
25976 \begin_layout LyX-Code
25977          $$ResizeBack$$RotateBack"
25978 \end_layout
25979
25980 \begin_layout LyX-Code
25981 UpdateFormat pdftex
25982 \end_layout
25983
25984 \begin_layout LyX-Code
25985 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25986 \end_layout
25987
25988 \begin_layout LyX-Code
25989 Requirement "graphicx"
25990 \end_layout
25991
25992 \begin_layout LyX-Code
25993 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25994 \end_layout
25995
25996 \begin_layout LyX-Code
25997 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25998 \end_layout
25999
26000 \begin_layout LyX-Code
26001 FormatEnd
26002 \end_layout
26003
26004 \begin_layout LyX-Code
26005 Format Ascii
26006 \end_layout
26007
26008 \begin_layout LyX-Code
26009 Product "[XFig: $$FName]"
26010 \end_layout
26011
26012 \begin_layout LyX-Code
26013 FormatEnd
26014 \end_layout
26015
26016 \begin_layout LyX-Code
26017 Format DocBook
26018 \end_layout
26019
26020 \begin_layout LyX-Code
26021 Product "<graphic fileref=
26022 \backslash
26023 "$$AbsOrRelPathMaster$$Basename.eps
26024 \backslash
26025 ">
26026 \end_layout
26027
26028 \begin_layout LyX-Code
26029          </graphic>"
26030 \end_layout
26031
26032 \begin_layout LyX-Code
26033 UpdateFormat eps
26034 \end_layout
26035
26036 \begin_layout LyX-Code
26037 UpdateResult "$$AbsPath$$Basename.eps"
26038 \end_layout
26039
26040 \begin_layout LyX-Code
26041 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26042 \end_layout
26043
26044 \begin_layout LyX-Code
26045 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26046 \end_layout
26047
26048 \begin_layout LyX-Code
26049 FormatEnd
26050 \end_layout
26051
26052 \begin_layout LyX-Code
26053 TemplateEnd
26054 \end_layout
26055
26056 \begin_layout Standard
26057 As you can see, the template is enclosed in 
26058 \begin_inset Flex Code
26059 status collapsed
26060
26061 \begin_layout Plain Layout
26062 Template
26063 \end_layout
26064
26065 \end_inset
26066
26067  \SpecialChar ldots
26068  
26069 \begin_inset Flex Code
26070 status collapsed
26071
26072 \begin_layout Plain Layout
26073 TemplateEnd
26074 \end_layout
26075
26076 \end_inset
26077
26078 .
26079  It contains a header specifying some general settings and, for each supported
26080  primary document file format, a section 
26081 \begin_inset Flex Code
26082 status collapsed
26083
26084 \begin_layout Plain Layout
26085 Format
26086 \end_layout
26087
26088 \end_inset
26089
26090  \SpecialChar ldots
26091  
26092 \begin_inset Flex Code
26093 status collapsed
26094
26095 \begin_layout Plain Layout
26096 FormatEnd
26097 \end_layout
26098
26099 \end_inset
26100
26101 .
26102 \end_layout
26103
26104 \begin_layout Subsection
26105 The template header
26106 \end_layout
26107
26108 \begin_layout Description
26109 \begin_inset Flex Code
26110 status collapsed
26111
26112 \begin_layout Plain Layout
26113 AutomaticProduction
26114 \begin_inset space ~
26115 \end_inset
26116
26117 true|false
26118 \end_layout
26119
26120 \end_inset
26121
26122  Whether the file represented by the template must be generated by \SpecialChar LyX
26123 .
26124  This command must occur exactly once.
26125 \end_layout
26126
26127 \begin_layout Description
26128 \begin_inset Flex Code
26129 status collapsed
26130
26131 \begin_layout Plain Layout
26132 FileFilter
26133 \begin_inset space ~
26134 \end_inset
26135
26136 <pattern>
26137 \end_layout
26138
26139 \end_inset
26140
26141  A glob pattern that is used in the file dialog to filter out the desired
26142  files.
26143  If there is more than one possible file extension (e.
26144 \begin_inset space \thinspace{}
26145 \end_inset
26146
26147 g.
26148 \begin_inset space \space{}
26149 \end_inset
26150
26151 tgif has 
26152 \begin_inset Flex Code
26153 status collapsed
26154
26155 \begin_layout Plain Layout
26156 .obj
26157 \end_layout
26158
26159 \end_inset
26160
26161  and 
26162 \begin_inset Flex Code
26163 status collapsed
26164
26165 \begin_layout Plain Layout
26166 .tgo
26167 \end_layout
26168
26169 \end_inset
26170
26171 ), use something like 
26172 \begin_inset Flex Code
26173 status collapsed
26174
26175 \begin_layout Plain Layout
26176 "*.{obj,tgo}"
26177 \end_layout
26178
26179 \end_inset
26180
26181 .
26182  This command must occur exactly once.
26183 \end_layout
26184
26185 \begin_layout Description
26186 \begin_inset Flex Code
26187 status collapsed
26188
26189 \begin_layout Plain Layout
26190 GuiName
26191 \begin_inset space ~
26192 \end_inset
26193
26194 <guiname>
26195 \end_layout
26196
26197 \end_inset
26198
26199  The text that is displayed on the button.
26200  This command must occur exactly once.
26201 \end_layout
26202
26203 \begin_layout Description
26204 \begin_inset Flex Code
26205 status collapsed
26206
26207 \begin_layout Plain Layout
26208 HelpText
26209 \begin_inset space ~
26210 \end_inset
26211
26212 <text>
26213 \begin_inset space ~
26214 \end_inset
26215
26216 HelpTextEnd
26217 \end_layout
26218
26219 \end_inset
26220
26221  The help text that is used in the External dialog.
26222  Provide enough information to explain to the user just what the template
26223  can provide him with.
26224  This command must occur exactly once.
26225 \end_layout
26226
26227 \begin_layout Description
26228 \begin_inset Flex Code
26229 status collapsed
26230
26231 \begin_layout Plain Layout
26232 InputFormat
26233 \begin_inset space ~
26234 \end_inset
26235
26236 <format>
26237 \end_layout
26238
26239 \end_inset
26240
26241  The file format of the original file.
26242  This must be the name of a format that is known to \SpecialChar LyX
26243  (see 
26244 \begin_inset CommandInset ref
26245 LatexCommand ref
26246 reference "sec:Formats"
26247
26248 \end_inset
26249
26250 ).
26251  Use 
26252 \begin_inset Quotes eld
26253 \end_inset
26254
26255
26256 \begin_inset Flex Code
26257 status collapsed
26258
26259 \begin_layout Plain Layout
26260 *
26261 \end_layout
26262
26263 \end_inset
26264
26265
26266 \begin_inset Quotes erd
26267 \end_inset
26268
26269  if the template can handle original files of more than one format.
26270  \SpecialChar LyX
26271  will attempt to interrogate the file itself in order to deduce its format
26272  in this case.
26273  This command must occur exactly once.
26274 \end_layout
26275
26276 \begin_layout Description
26277 \begin_inset Flex Code
26278 status collapsed
26279
26280 \begin_layout Plain Layout
26281 Template
26282 \begin_inset space ~
26283 \end_inset
26284
26285 <id>
26286 \end_layout
26287
26288 \end_inset
26289
26290  A unique name for the template.
26291  It must not contain substitution macros (see below).
26292 \end_layout
26293
26294 \begin_layout Description
26295 \begin_inset Flex Code
26296 status collapsed
26297
26298 \begin_layout Plain Layout
26299 Transform
26300 \begin_inset space ~
26301 \end_inset
26302
26303 Rotate|Resize|Clip|Extra
26304 \end_layout
26305
26306 \end_inset
26307
26308  This command specifies which transformations are supported by this template.
26309  It may occur zero or more times.
26310  This command enables the corresponding tabs in the external dialog.
26311  Each 
26312 \begin_inset Flex Code
26313 status collapsed
26314
26315 \begin_layout Plain Layout
26316 Transform
26317 \end_layout
26318
26319 \end_inset
26320
26321  command must have either a corresponding 
26322 \begin_inset Flex Code
26323 status collapsed
26324
26325 \begin_layout Plain Layout
26326 TransformCommand
26327 \end_layout
26328
26329 \end_inset
26330
26331  or a 
26332 \begin_inset Flex Code
26333 status collapsed
26334
26335 \begin_layout Plain Layout
26336 TransformOption
26337 \end_layout
26338
26339 \end_inset
26340
26341  command in the 
26342 \begin_inset Flex Code
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346 Format
26347 \end_layout
26348
26349 \end_inset
26350
26351  section.
26352  Otherwise the transformation will not be supported by that format.
26353 \end_layout
26354
26355 \begin_layout Subsection
26356 The Format section
26357 \end_layout
26358
26359 \begin_layout Description
26360 \begin_inset Flex Code
26361 status collapsed
26362
26363 \begin_layout Plain Layout
26364 Format
26365 \begin_inset space ~
26366 \end_inset
26367
26368 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26369 \end_layout
26370
26371 \end_inset
26372
26373  The primary document file format that this format definition is for.
26374  Not every template has a sensible representation in all document file formats.
26375  Please define nevertheless a 
26376 \begin_inset Flex Code
26377 status collapsed
26378
26379 \begin_layout Plain Layout
26380 Format
26381 \end_layout
26382
26383 \end_inset
26384
26385  section for all templates.
26386  Use a dummy text when no representation is available.
26387  Then you can at least see a reference to the external material in the exported
26388  document.
26389 \end_layout
26390
26391 \begin_layout Description
26392 \begin_inset Flex Code
26393 status collapsed
26394
26395 \begin_layout Plain Layout
26396 Option
26397 \begin_inset space ~
26398 \end_inset
26399
26400 <name>
26401 \begin_inset space ~
26402 \end_inset
26403
26404 <value>
26405 \end_layout
26406
26407 \end_inset
26408
26409  This command defines an additional macro 
26410 \begin_inset Flex Code
26411 status collapsed
26412
26413 \begin_layout Plain Layout
26414 $$<name>
26415 \end_layout
26416
26417 \end_inset
26418
26419  for substitution in 
26420 \begin_inset Flex Code
26421 status collapsed
26422
26423 \begin_layout Plain Layout
26424 Product
26425 \end_layout
26426
26427 \end_inset
26428
26429 .
26430  
26431 \begin_inset Flex Code
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435 <value>
26436 \end_layout
26437
26438 \end_inset
26439
26440  itself may contain substitution macros.
26441  The advantage over using 
26442 \begin_inset Flex Code
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446 <value>
26447 \end_layout
26448
26449 \end_inset
26450
26451  directly in 
26452 \begin_inset Flex Code
26453 status collapsed
26454
26455 \begin_layout Plain Layout
26456 Product
26457 \end_layout
26458
26459 \end_inset
26460
26461  is that the substituted value of 
26462 \begin_inset Flex Code
26463 status collapsed
26464
26465 \begin_layout Plain Layout
26466 $$<name>
26467 \end_layout
26468
26469 \end_inset
26470
26471  is sanitized so that it is a valid optional argument in the document format.
26472  This command may occur zero or more times.
26473 \end_layout
26474
26475 \begin_layout Description
26476 \begin_inset Flex Code
26477 status collapsed
26478
26479 \begin_layout Plain Layout
26480 Product
26481 \begin_inset space ~
26482 \end_inset
26483
26484 <text>
26485 \end_layout
26486
26487 \end_inset
26488
26489  The text that is inserted in the exported document.
26490  This is actually the most important command and can be quite complex.
26491  This command must occur exactly once.
26492 \end_layout
26493
26494 \begin_layout Description
26495 \begin_inset Flex Code
26496 status collapsed
26497
26498 \begin_layout Plain Layout
26499 Preamble
26500 \begin_inset space ~
26501 \end_inset
26502
26503 <name>
26504 \end_layout
26505
26506 \end_inset
26507
26508  This command specifies a preamble snippet that will be included in the
26509  \SpecialChar LaTeX
26510  preamble.
26511  It has to be defined using 
26512 \begin_inset Flex Code
26513 status collapsed
26514
26515 \begin_layout Plain Layout
26516 PreambleDef
26517 \end_layout
26518
26519 \end_inset
26520
26521  \SpecialChar ldots
26522  
26523 \begin_inset Flex Code
26524 status collapsed
26525
26526 \begin_layout Plain Layout
26527 PreambleDefEnd
26528 \end_layout
26529
26530 \end_inset
26531
26532 .
26533  This command may occur zero or more times.
26534 \end_layout
26535
26536 \begin_layout Description
26537 \begin_inset Flex Code
26538 status collapsed
26539
26540 \begin_layout Plain Layout
26541 ReferencedFile
26542 \begin_inset space ~
26543 \end_inset
26544
26545 <format>
26546 \begin_inset space ~
26547 \end_inset
26548
26549 <filename>
26550 \end_layout
26551
26552 \end_inset
26553
26554  This command denotes files that are created by the conversion process and
26555  are needed for a particular export format.
26556  If the filename is relative, it is interpreted relative to the master document.
26557  This command may be given zero or more times.
26558 \end_layout
26559
26560 \begin_layout Description
26561 \begin_inset Flex Code
26562 status collapsed
26563
26564 \begin_layout Plain Layout
26565 Requirement
26566 \begin_inset space ~
26567 \end_inset
26568
26569 <package>
26570 \end_layout
26571
26572 \end_inset
26573
26574  The name of a required \SpecialChar LaTeX
26575  package.
26576  The package is included via 
26577 \begin_inset Flex Code
26578 status collapsed
26579
26580 \begin_layout Plain Layout
26581
26582 \backslash
26583 usepackage{}
26584 \end_layout
26585
26586 \end_inset
26587
26588  in the \SpecialChar LaTeX
26589  preamble.
26590  This command may occur zero or more times.
26591 \end_layout
26592
26593 \begin_layout Description
26594 \begin_inset Flex Code
26595 status collapsed
26596
26597 \begin_layout Plain Layout
26598 TransformCommand
26599 \begin_inset space ~
26600 \end_inset
26601
26602 Rotate
26603 \begin_inset space ~
26604 \end_inset
26605
26606 RotationLatexCommand
26607 \end_layout
26608
26609 \end_inset
26610
26611  This command specifies that the built in \SpecialChar LaTeX
26612  command should be used for rotation.
26613  This command may occur once or not at all.
26614 \end_layout
26615
26616 \begin_layout Description
26617 \begin_inset Flex Code
26618 status collapsed
26619
26620 \begin_layout Plain Layout
26621 TransformCommand
26622 \begin_inset space ~
26623 \end_inset
26624
26625 Resize
26626 \begin_inset space ~
26627 \end_inset
26628
26629 ResizeLatexCommand
26630 \end_layout
26631
26632 \end_inset
26633
26634  This command specifies that the built in \SpecialChar LaTeX
26635  command should be used for resizing.
26636  This command may occur once or not at all.
26637 \end_layout
26638
26639 \begin_layout Description
26640 \begin_inset Flex Code
26641 status collapsed
26642
26643 \begin_layout Plain Layout
26644 TransformOption
26645 \begin_inset space ~
26646 \end_inset
26647
26648 Rotate
26649 \begin_inset space ~
26650 \end_inset
26651
26652 RotationLatexOption
26653 \end_layout
26654
26655 \end_inset
26656
26657  This command specifies that rotation is done via an optional argument.
26658  This command may occur once or not at all.
26659 \end_layout
26660
26661 \begin_layout Description
26662 \begin_inset Flex Code
26663 status collapsed
26664
26665 \begin_layout Plain Layout
26666 TransformOption
26667 \begin_inset space ~
26668 \end_inset
26669
26670 Resize
26671 \begin_inset space ~
26672 \end_inset
26673
26674 ResizeLatexOption
26675 \end_layout
26676
26677 \end_inset
26678
26679  This command specifies that resizing is done via an optional argument.
26680  This command may occur once or not at all.
26681 \end_layout
26682
26683 \begin_layout Description
26684 \begin_inset Flex Code
26685 status collapsed
26686
26687 \begin_layout Plain Layout
26688 TransformOption
26689 \begin_inset space ~
26690 \end_inset
26691
26692 Clip
26693 \begin_inset space ~
26694 \end_inset
26695
26696 ClipLatexOption
26697 \end_layout
26698
26699 \end_inset
26700
26701  This command specifies that clipping is done via an optional argument.
26702  This command may occur once or not at all.
26703 \end_layout
26704
26705 \begin_layout Description
26706 \begin_inset Flex Code
26707 status collapsed
26708
26709 \begin_layout Plain Layout
26710 TransformOption
26711 \begin_inset space ~
26712 \end_inset
26713
26714 Extra
26715 \begin_inset space ~
26716 \end_inset
26717
26718 ExtraLatexOption
26719 \end_layout
26720
26721 \end_inset
26722
26723  This command specifies that an extra optional argument is used.
26724  This command may occur once or not at all.
26725 \end_layout
26726
26727 \begin_layout Description
26728 \begin_inset Flex Code
26729 status collapsed
26730
26731 \begin_layout Plain Layout
26732 UpdateFormat
26733 \begin_inset space ~
26734 \end_inset
26735
26736 <format>
26737 \end_layout
26738
26739 \end_inset
26740
26741  The file format of the converted file.
26742  This must be the name of a format that is known to \SpecialChar LyX
26743  (see the 
26744 \begin_inset Flex Noun
26745 status collapsed
26746
26747 \begin_layout Plain Layout
26748 Tools\SpecialChar menuseparator
26749 Preferences\SpecialChar menuseparator
26750 File Handling\SpecialChar menuseparator
26751 File Format
26752 \end_layout
26753
26754 \end_inset
26755
26756  dialog).
26757  This command must occur exactly once.
26758  If the resulting file format is PDF, you need to specify the format 
26759 \begin_inset Flex Code
26760 status collapsed
26761
26762 \begin_layout Plain Layout
26763 pdf6
26764 \end_layout
26765
26766 \end_inset
26767
26768 .
26769  This is the PDF format used for including graphics.
26770  The other defined PDF formats are for document export.
26771 \end_layout
26772
26773 \begin_layout Description
26774 \begin_inset Flex Code
26775 status collapsed
26776
26777 \begin_layout Plain Layout
26778 UpdateResult
26779 \begin_inset space ~
26780 \end_inset
26781
26782 <filename>
26783 \end_layout
26784
26785 \end_inset
26786
26787  The file name of the converted file.
26788  The file name must be absolute.
26789  This command must occur exactly once.
26790 \end_layout
26791
26792 \begin_layout Subsection
26793 Preamble definitions
26794 \end_layout
26795
26796 \begin_layout Standard
26797 The external template configuration file may contain additional preamble
26798  definitions enclosed by 
26799 \begin_inset Flex Code
26800 status collapsed
26801
26802 \begin_layout Plain Layout
26803 PreambleDef
26804 \end_layout
26805
26806 \end_inset
26807
26808  \SpecialChar ldots
26809  
26810 \begin_inset Flex Code
26811 status collapsed
26812
26813 \begin_layout Plain Layout
26814 PreambleDefEnd
26815 \end_layout
26816
26817 \end_inset
26818
26819 .
26820  They can be used by the templates in the 
26821 \begin_inset Flex Code
26822 status collapsed
26823
26824 \begin_layout Plain Layout
26825 Format
26826 \end_layout
26827
26828 \end_inset
26829
26830  section.
26831 \end_layout
26832
26833 \begin_layout Section
26834 The substitution mechanism
26835 \end_layout
26836
26837 \begin_layout Standard
26838 When the external material facility invokes an external program, it is done
26839  on the basis of a command defined in the template configuration file.
26840  These commands can contain various macros that are expanded before execution.
26841  Execution always take place in the directory of the containing document.
26842 \end_layout
26843
26844 \begin_layout Standard
26845 Also, whenever external material is to be displayed, the name will be produced
26846  by the substitution mechanism, and most other commands in the template
26847  definition support substitution as well.
26848 \end_layout
26849
26850 \begin_layout Standard
26851 The available macros are the following:
26852 \end_layout
26853
26854 \begin_layout Description
26855 \begin_inset Flex Code
26856 status collapsed
26857
26858 \begin_layout Plain Layout
26859 $$AbsOrRelPathMaster
26860 \end_layout
26861
26862 \end_inset
26863
26864  The file path, absolute or relative to the master \SpecialChar LyX
26865  document.
26866 \end_layout
26867
26868 \begin_layout Description
26869 \begin_inset Flex Code
26870 status collapsed
26871
26872 \begin_layout Plain Layout
26873 $$AbsOrRelPathParent
26874 \end_layout
26875
26876 \end_inset
26877
26878  The file path, absolute or relative to the \SpecialChar LyX
26879  document.
26880 \end_layout
26881
26882 \begin_layout Description
26883 \begin_inset Flex Code
26884 status collapsed
26885
26886 \begin_layout Plain Layout
26887 $$AbsPath
26888 \end_layout
26889
26890 \end_inset
26891
26892  The absolute file path.
26893 \end_layout
26894
26895 \begin_layout Description
26896 \begin_inset Flex Code
26897 status collapsed
26898
26899 \begin_layout Plain Layout
26900 $$Basename
26901 \end_layout
26902
26903 \end_inset
26904
26905  The filename without path and without the extension.
26906 \end_layout
26907
26908 \begin_layout Description
26909 \begin_inset Flex Code
26910 status collapsed
26911
26912 \begin_layout Plain Layout
26913 $$Contents(
26914 \begin_inset Quotes eld
26915 \end_inset
26916
26917 filename.ext
26918 \begin_inset Quotes erd
26919 \end_inset
26920
26921 )
26922 \end_layout
26923
26924 \end_inset
26925
26926  This macro will expand to the contents of the file with the name 
26927 \begin_inset Flex Code
26928 status collapsed
26929
26930 \begin_layout Plain Layout
26931 filename.ext
26932 \end_layout
26933
26934 \end_inset
26935
26936 .
26937 \end_layout
26938
26939 \begin_layout Description
26940 \begin_inset Flex Code
26941 status collapsed
26942
26943 \begin_layout Plain Layout
26944 $$Extension
26945 \end_layout
26946
26947 \end_inset
26948
26949  The file extension (including the dot).
26950 \end_layout
26951
26952 \begin_layout Description
26953 \begin_inset Flex Code
26954 status collapsed
26955
26956 \begin_layout Plain Layout
26957 $$pngOrjpg
26958 \end_layout
26959
26960 \end_inset
26961
26962  This will be the string 
26963 \begin_inset Quotes eld
26964 \end_inset
26965
26966 jpg
26967 \begin_inset Quotes erd
26968 \end_inset
26969
26970  if the file is in JPEG format, otherwise it will be the string 
26971 \begin_inset Quotes eld
26972 \end_inset
26973
26974 png
26975 \begin_inset Quotes erd
26976 \end_inset
26977
26978 .
26979  This is useful to avoid uneeded conversions for output formats that support
26980  both PNG and JPEG fomats.
26981  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26982  output
26983  format.
26984 \end_layout
26985
26986 \begin_layout Description
26987 \begin_inset Flex Code
26988 status collapsed
26989
26990 \begin_layout Plain Layout
26991 $$FName
26992 \end_layout
26993
26994 \end_inset
26995
26996  The filename of the file specified in the external material dialog.
26997  This is either an absolute name, or it is relative to the \SpecialChar LyX
26998  document.
26999 \end_layout
27000
27001 \begin_layout Description
27002 \begin_inset Flex Code
27003 status collapsed
27004
27005 \begin_layout Plain Layout
27006 $$FPath
27007 \end_layout
27008
27009 \end_inset
27010
27011  The path part of 
27012 \begin_inset Flex Code
27013 status collapsed
27014
27015 \begin_layout Plain Layout
27016 $$FName
27017 \end_layout
27018
27019 \end_inset
27020
27021  (absolute name or relative to the \SpecialChar LyX
27022  document).
27023 \end_layout
27024
27025 \begin_layout Description
27026 \begin_inset Flex Code
27027 status collapsed
27028
27029 \begin_layout Plain Layout
27030 $$RelPathMaster
27031 \end_layout
27032
27033 \end_inset
27034
27035  The file path, relative to the master \SpecialChar LyX
27036  document.
27037 \end_layout
27038
27039 \begin_layout Description
27040 \begin_inset Flex Code
27041 status collapsed
27042
27043 \begin_layout Plain Layout
27044 $$RelPathParent
27045 \end_layout
27046
27047 \end_inset
27048
27049  The file path, relative to the \SpecialChar LyX
27050  document.
27051 \end_layout
27052
27053 \begin_layout Description
27054 \begin_inset Flex Code
27055 status collapsed
27056
27057 \begin_layout Plain Layout
27058 $$Sysdir
27059 \end_layout
27060
27061 \end_inset
27062
27063  This macro will expand to the absolute path of the system directory.
27064  This is typically used to point to the various helper scripts that are
27065  bundled with \SpecialChar LyX
27066 .
27067 \end_layout
27068
27069 \begin_layout Description
27070 \begin_inset Flex Code
27071 status collapsed
27072
27073 \begin_layout Plain Layout
27074 $$Tempname
27075 \end_layout
27076
27077 \end_inset
27078
27079  A name and full path to a temporary file which will be automatically deleted
27080  whenever the containing document is closed, or the external material insertion
27081  deleted.
27082 \end_layout
27083
27084 \begin_layout Standard
27085 All path macros contain a trailing directory separator, so you can construct
27086  e.
27087 \begin_inset space \thinspace{}
27088 \end_inset
27089
27090 g.
27091 \begin_inset space \space{}
27092 \end_inset
27093
27094 the absolute filename with 
27095 \begin_inset Flex Code
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099 $$AbsPath$$Basename$$Extension
27100 \end_layout
27101
27102 \end_inset
27103
27104 .
27105 \end_layout
27106
27107 \begin_layout Standard
27108 The macros above are substituted in all commands unless otherwise noted.
27109  The command 
27110 \begin_inset Flex Code
27111 status collapsed
27112
27113 \begin_layout Plain Layout
27114 Product
27115 \end_layout
27116
27117 \end_inset
27118
27119  supports additionally the following substitutions if they are enabled by
27120  the 
27121 \begin_inset Flex Code
27122 status collapsed
27123
27124 \begin_layout Plain Layout
27125 Transform
27126 \end_layout
27127
27128 \end_inset
27129
27130  and 
27131 \begin_inset Flex Code
27132 status collapsed
27133
27134 \begin_layout Plain Layout
27135 TransformCommand
27136 \end_layout
27137
27138 \end_inset
27139
27140  commands:
27141 \end_layout
27142
27143 \begin_layout Description
27144 \begin_inset Flex Code
27145 status collapsed
27146
27147 \begin_layout Plain Layout
27148 $$ResizeFront
27149 \end_layout
27150
27151 \end_inset
27152
27153  The front part of the resize command.
27154 \end_layout
27155
27156 \begin_layout Description
27157 \begin_inset Flex Code
27158 status collapsed
27159
27160 \begin_layout Plain Layout
27161 $$ResizeBack
27162 \end_layout
27163
27164 \end_inset
27165
27166  The back part of the resize command.
27167 \end_layout
27168
27169 \begin_layout Description
27170 \begin_inset Flex Code
27171 status collapsed
27172
27173 \begin_layout Plain Layout
27174 $$RotateFront
27175 \end_layout
27176
27177 \end_inset
27178
27179  The front part of the rotation command.
27180 \end_layout
27181
27182 \begin_layout Description
27183 \begin_inset Flex Code
27184 status collapsed
27185
27186 \begin_layout Plain Layout
27187 $$RotateBack
27188 \end_layout
27189
27190 \end_inset
27191
27192  The back part of the rotation command.
27193 \end_layout
27194
27195 \begin_layout Standard
27196 The value string of the 
27197 \begin_inset Flex Code
27198 status collapsed
27199
27200 \begin_layout Plain Layout
27201 Option
27202 \end_layout
27203
27204 \end_inset
27205
27206  command supports additionally the following substitutions if they are enabled
27207  by the 
27208 \begin_inset Flex Code
27209 status collapsed
27210
27211 \begin_layout Plain Layout
27212 Transform
27213 \end_layout
27214
27215 \end_inset
27216
27217  and 
27218 \begin_inset Flex Code
27219 status collapsed
27220
27221 \begin_layout Plain Layout
27222 TransformOption
27223 \end_layout
27224
27225 \end_inset
27226
27227  commands:
27228 \end_layout
27229
27230 \begin_layout Description
27231 \begin_inset Flex Code
27232 status collapsed
27233
27234 \begin_layout Plain Layout
27235 $$Clip
27236 \end_layout
27237
27238 \end_inset
27239
27240  The clip option.
27241 \end_layout
27242
27243 \begin_layout Description
27244 \begin_inset Flex Code
27245 status collapsed
27246
27247 \begin_layout Plain Layout
27248 $$Extra
27249 \end_layout
27250
27251 \end_inset
27252
27253  The extra option.
27254 \end_layout
27255
27256 \begin_layout Description
27257 \begin_inset Flex Code
27258 status collapsed
27259
27260 \begin_layout Plain Layout
27261 $$Resize
27262 \end_layout
27263
27264 \end_inset
27265
27266  The resize option.
27267 \end_layout
27268
27269 \begin_layout Description
27270 \begin_inset Flex Code
27271 status collapsed
27272
27273 \begin_layout Plain Layout
27274 $$Rotate
27275 \end_layout
27276
27277 \end_inset
27278
27279  The rotation option.
27280 \end_layout
27281
27282 \begin_layout Standard
27283 You may ask why there are so many path macros.
27284  There are mainly two reasons:
27285 \end_layout
27286
27287 \begin_layout Enumerate
27288 Relative and absolute file names should remain relative or absolute, respectivel
27289 y.
27290  Users may have reasons to prefer either form.
27291  Relative names are useful for portable documents that should work on different
27292  machines, for example.
27293  Absolute names may be required by some programs.
27294 \end_layout
27295
27296 \begin_layout Enumerate
27297 \SpecialChar LaTeX
27298  treats relative file names differently than \SpecialChar LyX
27299  and other programs in nested
27300  included files.
27301  For \SpecialChar LyX
27302 , a relative file name is always relative to the document that contains
27303  the file name.
27304  For \SpecialChar LaTeX
27305 , it is always relative to the master document.
27306  These two definitions are identical if you have only one document, but
27307  differ if you have a master document that includes part documents.
27308  That means that relative filenames must be transformed when presented to
27309  \SpecialChar LaTeX
27310 .
27311  Fortunately \SpecialChar LyX
27312  does this automatically for you if you choose the right macros.
27313 \end_layout
27314
27315 \begin_layout Standard
27316 So which path macro should be used in new template definitions? The rule
27317  is not difficult:
27318 \end_layout
27319
27320 \begin_layout Itemize
27321 Use 
27322 \begin_inset Flex Code
27323 status collapsed
27324
27325 \begin_layout Plain Layout
27326 $$AbsPath
27327 \end_layout
27328
27329 \end_inset
27330
27331  if an absolute path is required.
27332 \end_layout
27333
27334 \begin_layout Itemize
27335 Use 
27336 \begin_inset Flex Code
27337 status collapsed
27338
27339 \begin_layout Plain Layout
27340 $$AbsOrRelPathMaster
27341 \end_layout
27342
27343 \end_inset
27344
27345  if the substituted string is some kind of \SpecialChar LaTeX
27346  input.
27347 \end_layout
27348
27349 \begin_layout Itemize
27350 Else use 
27351 \begin_inset Flex Code
27352 status collapsed
27353
27354 \begin_layout Plain Layout
27355 $$AbsOrRelPathParent
27356 \end_layout
27357
27358 \end_inset
27359
27360  in order to preserve the user's choice.
27361 \end_layout
27362
27363 \begin_layout Standard
27364 There are special cases where this rule does not work and e.
27365 \begin_inset space \thinspace{}
27366 \end_inset
27367
27368 g.
27369 \begin_inset space \space{}
27370 \end_inset
27371
27372 relative names are needed, but normally it will work just fine.
27373  One example for such a case is the command 
27374 \begin_inset Flex Code
27375 status collapsed
27376
27377 \begin_layout Plain Layout
27378 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27379 \end_layout
27380
27381 \end_inset
27382
27383  in the XFig template above: We can't use the absolute name because the
27384  copier for 
27385 \begin_inset Flex Code
27386 status collapsed
27387
27388 \begin_layout Plain Layout
27389 .pstex_t
27390 \end_layout
27391
27392 \end_inset
27393
27394  files needs the relative name in order to rewrite the file content.
27395 \end_layout
27396
27397 \begin_layout Section
27398 Security discussion
27399 \begin_inset CommandInset label
27400 LatexCommand label
27401 name "sec:Security-discussion"
27402
27403 \end_inset
27404
27405
27406 \end_layout
27407
27408 \begin_layout Standard
27409 The external material feature interfaces with a lot of external programs
27410  and does so automatically, so we have to consider the security implications
27411  of this.
27412  In particular, since you have the option of including your own filenames
27413  and/or parameter strings and those are expanded into a command, it seems
27414  that it would be possible to create a malicious document which executes
27415  arbitrary commands when a user views or prints the document.
27416  This is something we definitely want to avoid.
27417 \end_layout
27418
27419 \begin_layout Standard
27420 However, since the external program commands are specified in the template
27421  configuration file only, there are no security issues if \SpecialChar LyX
27422  is properly configure
27423 d with safe templates only.
27424  This is so because the external programs are invoked with the 
27425 \begin_inset Flex Code
27426 status collapsed
27427
27428 \begin_layout Plain Layout
27429 execvp
27430 \end_layout
27431
27432 \end_inset
27433
27434 -system call rather than the 
27435 \begin_inset Flex Code
27436 status collapsed
27437
27438 \begin_layout Plain Layout
27439 system
27440 \end_layout
27441
27442 \end_inset
27443
27444  system-call, so it's not possible to execute arbitrary commands from the
27445  filename or parameter section via the shell.
27446 \end_layout
27447
27448 \begin_layout Standard
27449 This also implies that you are restricted in what command strings you can
27450  use in the external material templates.
27451  In particular, pipes and redirection are not readily available.
27452  This has to be so if \SpecialChar LyX
27453  should remain safe.
27454  If you want to use some of the shell features, you should write a safe
27455  script to do this in a controlled manner, and then invoke the script from
27456  the command string.
27457  
27458 \end_layout
27459
27460 \begin_layout Standard
27461 It is possible to design a template that interacts directly with the shell,
27462  but since this would allow a malicious user to execute arbitrary commands
27463  by writing clever filenames and/or parameters, we generally recommend that
27464  you only use safe scripts that work with the 
27465 \begin_inset Flex Code
27466 status collapsed
27467
27468 \begin_layout Plain Layout
27469 execvp
27470 \end_layout
27471
27472 \end_inset
27473
27474  system call in a controlled manner.
27475  Of course, for use in a controlled environment, it can be tempting to just
27476  fall back to use ordinary shell scripts.
27477  If you do so, be aware that you 
27478 \emph on
27479 will
27480 \emph default
27481  provide an easily exploitable security hole in your system.
27482  Of course it stands to reason that such unsafe templates will never be
27483  included in the standard \SpecialChar LyX
27484  distribution, although we do encourage people
27485  to submit new templates in the open source tradition.
27486  But \SpecialChar LyX
27487  as shipped from the official distribution channels will never have
27488  unsafe templates.
27489 \end_layout
27490
27491 \begin_layout Standard
27492 Including external material provides a lot of power, and you have to be
27493  careful not to introduce security hazards with this power.
27494  A subtle error in a single line in an innocent looking script can open
27495  the door to huge security problems.
27496  So if you do not fully understand the issues, we recommend that you consult
27497  a knowledgeable security professional or the \SpecialChar LyX
27498  development team if you have
27499  any questions about whether a given template is safe or not.
27500  And do this before you use it in an uncontrolled environment.
27501 \end_layout
27502
27503 \begin_layout Chapter
27504 \start_of_appendix
27505 List of supported \SpecialChar LyX
27506  functions to be used in layouts
27507 \begin_inset CommandInset label
27508 LatexCommand label
27509 name "chap:List-of-functions"
27510
27511 \end_inset
27512
27513
27514 \end_layout
27515
27516 \begin_layout Standard
27517 \align center
27518 \begin_inset Tabular
27519 <lyxtabular version="3" rows="11" columns="8">
27520 <features tabularvalignment="middle">
27521 <column alignment="left" valignment="top">
27522 <column alignment="left" valignment="top">
27523 <column alignment="left" valignment="top">
27524 <column alignment="left" valignment="top">
27525 <column alignment="left" valignment="top">
27526 <column alignment="left" valignment="top">
27527 <column alignment="left" valignment="top">
27528 <column alignment="left" valignment="top">
27529 <row>
27530 <cell alignment="left" valignment="top" usebox="none">
27531 \begin_inset Text
27532
27533 \begin_layout Plain Layout
27534 accents
27535 \end_layout
27536
27537 \end_inset
27538 </cell>
27539 <cell alignment="left" valignment="top" usebox="none">
27540 \begin_inset Text
27541
27542 \begin_layout Plain Layout
27543 booktabs
27544 \end_layout
27545
27546 \end_inset
27547 </cell>
27548 <cell alignment="left" valignment="top" usebox="none">
27549 \begin_inset Text
27550
27551 \begin_layout Plain Layout
27552 feyn
27553 \end_layout
27554
27555 \end_inset
27556 </cell>
27557 <cell alignment="left" valignment="top" usebox="none">
27558 \begin_inset Text
27559
27560 \begin_layout Plain Layout
27561 listings
27562 \end_layout
27563
27564 \end_inset
27565 </cell>
27566 <cell alignment="center" valignment="top" usebox="none">
27567 \begin_inset Text
27568
27569 \begin_layout Plain Layout
27570 natbib
27571 \end_layout
27572
27573 \end_inset
27574 </cell>
27575 <cell alignment="center" valignment="top" usebox="none">
27576 \begin_inset Text
27577
27578 \begin_layout Plain Layout
27579 rotfloat
27580 \end_layout
27581
27582 \end_inset
27583 </cell>
27584 <cell alignment="center" valignment="top" usebox="none">
27585 \begin_inset Text
27586
27587 \begin_layout Plain Layout
27588 tfrupee
27589 \end_layout
27590
27591 \end_inset
27592 </cell>
27593 <cell alignment="center" valignment="top" usebox="none">
27594 \begin_inset Text
27595
27596 \begin_layout Plain Layout
27597 wasysym
27598 \end_layout
27599
27600 \end_inset
27601 </cell>
27602 </row>
27603 <row>
27604 <cell alignment="left" valignment="top" usebox="none">
27605 \begin_inset Text
27606
27607 \begin_layout Plain Layout
27608 amsbsy
27609 \end_layout
27610
27611 \end_inset
27612 </cell>
27613 <cell alignment="left" valignment="top" usebox="none">
27614 \begin_inset Text
27615
27616 \begin_layout Plain Layout
27617 calc
27618 \end_layout
27619
27620 \end_inset
27621 </cell>
27622 <cell alignment="left" valignment="top" usebox="none">
27623 \begin_inset Text
27624
27625 \begin_layout Plain Layout
27626 fixltx2e
27627 \end_layout
27628
27629 \end_inset
27630 </cell>
27631 <cell alignment="left" valignment="top" usebox="none">
27632 \begin_inset Text
27633
27634 \begin_layout Plain Layout
27635 longtable
27636 \end_layout
27637
27638 \end_inset
27639 </cell>
27640 <cell alignment="center" valignment="top" usebox="none">
27641 \begin_inset Text
27642
27643 \begin_layout Plain Layout
27644 nomencl
27645 \end_layout
27646
27647 \end_inset
27648 </cell>
27649 <cell alignment="center" valignment="top" usebox="none">
27650 \begin_inset Text
27651
27652 \begin_layout Plain Layout
27653 rsphrase
27654 \end_layout
27655
27656 \end_inset
27657 </cell>
27658 <cell alignment="center" valignment="top" usebox="none">
27659 \begin_inset Text
27660
27661 \begin_layout Plain Layout
27662 tipa
27663 \end_layout
27664
27665 \end_inset
27666 </cell>
27667 <cell alignment="center" valignment="top" usebox="none">
27668 \begin_inset Text
27669
27670 \begin_layout Plain Layout
27671 wrapfig
27672 \end_layout
27673
27674 \end_inset
27675 </cell>
27676 </row>
27677 <row>
27678 <cell alignment="left" valignment="top" usebox="none">
27679 \begin_inset Text
27680
27681 \begin_layout Plain Layout
27682 amscd
27683 \end_layout
27684
27685 \end_inset
27686 </cell>
27687 <cell alignment="left" valignment="top" usebox="none">
27688 \begin_inset Text
27689
27690 \begin_layout Plain Layout
27691 CJK
27692 \end_layout
27693
27694 \end_inset
27695 </cell>
27696 <cell alignment="left" valignment="top" usebox="none">
27697 \begin_inset Text
27698
27699 \begin_layout Plain Layout
27700 float
27701 \end_layout
27702
27703 \end_inset
27704 </cell>
27705 <cell alignment="left" valignment="top" usebox="none">
27706 \begin_inset Text
27707
27708 \begin_layout Plain Layout
27709 lyxskak
27710 \end_layout
27711
27712 \end_inset
27713 </cell>
27714 <cell alignment="center" valignment="top" usebox="none">
27715 \begin_inset Text
27716
27717 \begin_layout Plain Layout
27718 pdfcolmk
27719 \end_layout
27720
27721 \end_inset
27722 </cell>
27723 <cell alignment="center" valignment="top" usebox="none">
27724 \begin_inset Text
27725
27726 \begin_layout Plain Layout
27727 setspace
27728 \end_layout
27729
27730 \end_inset
27731 </cell>
27732 <cell alignment="center" valignment="top" usebox="none">
27733 \begin_inset Text
27734
27735 \begin_layout Plain Layout
27736 tipx
27737 \end_layout
27738
27739 \end_inset
27740 </cell>
27741 <cell alignment="center" valignment="top" usebox="none">
27742 \begin_inset Text
27743
27744 \begin_layout Plain Layout
27745 xargs
27746 \end_layout
27747
27748 \end_inset
27749 </cell>
27750 </row>
27751 <row>
27752 <cell alignment="left" valignment="top" usebox="none">
27753 \begin_inset Text
27754
27755 \begin_layout Plain Layout
27756 amsmath
27757 \end_layout
27758
27759 \end_inset
27760 </cell>
27761 <cell alignment="left" valignment="top" usebox="none">
27762 \begin_inset Text
27763
27764 \begin_layout Plain Layout
27765 color
27766 \end_layout
27767
27768 \end_inset
27769 </cell>
27770 <cell alignment="left" valignment="top" usebox="none">
27771 \begin_inset Text
27772
27773 \begin_layout Plain Layout
27774 framed
27775 \end_layout
27776
27777 \end_inset
27778 </cell>
27779 <cell alignment="left" valignment="top" usebox="none">
27780 \begin_inset Text
27781
27782 \begin_layout Plain Layout
27783 makeidx
27784 \end_layout
27785
27786 \end_inset
27787 </cell>
27788 <cell alignment="center" valignment="top" usebox="none">
27789 \begin_inset Text
27790
27791 \begin_layout Plain Layout
27792 pdfpages
27793 \end_layout
27794
27795 \end_inset
27796 </cell>
27797 <cell alignment="center" valignment="top" usebox="none">
27798 \begin_inset Text
27799
27800 \begin_layout Plain Layout
27801 shapepar
27802 \end_layout
27803
27804 \end_inset
27805 </cell>
27806 <cell alignment="center" valignment="top" usebox="none">
27807 \begin_inset Text
27808
27809 \begin_layout Plain Layout
27810 tone
27811 \end_layout
27812
27813 \end_inset
27814 </cell>
27815 <cell alignment="center" valignment="top" usebox="none">
27816 \begin_inset Text
27817
27818 \begin_layout Plain Layout
27819 xcolor
27820 \end_layout
27821
27822 \end_inset
27823 </cell>
27824 </row>
27825 <row>
27826 <cell alignment="left" valignment="top" usebox="none">
27827 \begin_inset Text
27828
27829 \begin_layout Plain Layout
27830 amssymb
27831 \end_layout
27832
27833 \end_inset
27834 </cell>
27835 <cell alignment="left" valignment="top" usebox="none">
27836 \begin_inset Text
27837
27838 \begin_layout Plain Layout
27839 covington
27840 \end_layout
27841
27842 \end_inset
27843 </cell>
27844 <cell alignment="left" valignment="top" usebox="none">
27845 \begin_inset Text
27846
27847 \begin_layout Plain Layout
27848 graphicx
27849 \end_layout
27850
27851 \end_inset
27852 </cell>
27853 <cell alignment="left" valignment="top" usebox="none">
27854 \begin_inset Text
27855
27856 \begin_layout Plain Layout
27857 marvosym
27858 \end_layout
27859
27860 \end_inset
27861 </cell>
27862 <cell alignment="center" valignment="top" usebox="none">
27863 \begin_inset Text
27864
27865 \begin_layout Plain Layout
27866 pifont
27867 \end_layout
27868
27869 \end_inset
27870 </cell>
27871 <cell alignment="center" valignment="top" usebox="none">
27872 \begin_inset Text
27873
27874 \begin_layout Plain Layout
27875 slashed
27876 \end_layout
27877
27878 \end_inset
27879 </cell>
27880 <cell alignment="center" valignment="top" usebox="none">
27881 \begin_inset Text
27882
27883 \begin_layout Plain Layout
27884 txfonts
27885 \end_layout
27886
27887 \end_inset
27888 </cell>
27889 <cell alignment="center" valignment="top" usebox="none">
27890 \begin_inset Text
27891
27892 \begin_layout Plain Layout
27893 xy
27894 \end_layout
27895
27896 \end_inset
27897 </cell>
27898 </row>
27899 <row>
27900 <cell alignment="left" valignment="top" usebox="none">
27901 \begin_inset Text
27902
27903 \begin_layout Plain Layout
27904 amstext
27905 \end_layout
27906
27907 \end_inset
27908 </cell>
27909 <cell alignment="left" valignment="top" usebox="none">
27910 \begin_inset Text
27911
27912 \begin_layout Plain Layout
27913 csquotes
27914 \end_layout
27915
27916 \end_inset
27917 </cell>
27918 <cell alignment="left" valignment="top" usebox="none">
27919 \begin_inset Text
27920
27921 \begin_layout Plain Layout
27922 hhline
27923 \end_layout
27924
27925 \end_inset
27926 </cell>
27927 <cell alignment="left" valignment="top" usebox="none">
27928 \begin_inset Text
27929
27930 \begin_layout Plain Layout
27931 mathdesign
27932 \end_layout
27933
27934 \end_inset
27935 </cell>
27936 <cell alignment="center" valignment="top" usebox="none">
27937 \begin_inset Text
27938
27939 \begin_layout Plain Layout
27940 pmboxdraw
27941 \end_layout
27942
27943 \end_inset
27944 </cell>
27945 <cell alignment="center" valignment="top" usebox="none">
27946 \begin_inset Text
27947
27948 \begin_layout Plain Layout
27949 soul
27950 \end_layout
27951
27952 \end_inset
27953 </cell>
27954 <cell alignment="center" valignment="top" usebox="none">
27955 \begin_inset Text
27956
27957 \begin_layout Plain Layout
27958 ulem
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 yhmath
27968 \end_layout
27969
27970 \end_inset
27971 </cell>
27972 </row>
27973 <row>
27974 <cell alignment="left" valignment="top" usebox="none">
27975 \begin_inset Text
27976
27977 \begin_layout Plain Layout
27978 amsthm
27979 \end_layout
27980
27981 \end_inset
27982 </cell>
27983 <cell alignment="left" valignment="top" usebox="none">
27984 \begin_inset Text
27985
27986 \begin_layout Plain Layout
27987 dvipost
27988 \end_layout
27989
27990 \end_inset
27991 </cell>
27992 <cell alignment="left" valignment="top" usebox="none">
27993 \begin_inset Text
27994
27995 \begin_layout Plain Layout
27996 hyperref
27997 \end_layout
27998
27999 \end_inset
28000 </cell>
28001 <cell alignment="left" valignment="top" usebox="none">
28002 \begin_inset Text
28003
28004 \begin_layout Plain Layout
28005 mathdots
28006 \end_layout
28007
28008 \end_inset
28009 </cell>
28010 <cell alignment="center" valignment="top" usebox="none">
28011 \begin_inset Text
28012
28013 \begin_layout Plain Layout
28014 polyglossia
28015 \end_layout
28016
28017 \end_inset
28018 </cell>
28019 <cell alignment="center" valignment="top" usebox="none">
28020 \begin_inset Text
28021
28022 \begin_layout Plain Layout
28023 splitidx
28024 \end_layout
28025
28026 \end_inset
28027 </cell>
28028 <cell alignment="center" valignment="top" usebox="none">
28029 \begin_inset Text
28030
28031 \begin_layout Plain Layout
28032 undertilde
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
28042 \end_layout
28043
28044 \end_inset
28045 </cell>
28046 </row>
28047 <row>
28048 <cell alignment="left" valignment="top" usebox="none">
28049 \begin_inset Text
28050
28051 \begin_layout Plain Layout
28052 array
28053 \end_layout
28054
28055 \end_inset
28056 </cell>
28057 <cell alignment="left" valignment="top" usebox="none">
28058 \begin_inset Text
28059
28060 \begin_layout Plain Layout
28061 endnotes
28062 \end_layout
28063
28064 \end_inset
28065 </cell>
28066 <cell alignment="left" valignment="top" usebox="none">
28067 \begin_inset Text
28068
28069 \begin_layout Plain Layout
28070 ifsym
28071 \end_layout
28072
28073 \end_inset
28074 </cell>
28075 <cell alignment="left" valignment="top" usebox="none">
28076 \begin_inset Text
28077
28078 \begin_layout Plain Layout
28079 mathrsfs
28080 \end_layout
28081
28082 \end_inset
28083 </cell>
28084 <cell alignment="center" valignment="top" usebox="none">
28085 \begin_inset Text
28086
28087 \begin_layout Plain Layout
28088 prettyref
28089 \end_layout
28090
28091 \end_inset
28092 </cell>
28093 <cell alignment="center" valignment="top" usebox="none">
28094 \begin_inset Text
28095
28096 \begin_layout Plain Layout
28097 subfig
28098 \end_layout
28099
28100 \end_inset
28101 </cell>
28102 <cell alignment="center" valignment="top" usebox="none">
28103 \begin_inset Text
28104
28105 \begin_layout Plain Layout
28106 units
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
28116 \end_layout
28117
28118 \end_inset
28119 </cell>
28120 </row>
28121 <row>
28122 <cell alignment="left" valignment="top" usebox="none">
28123 \begin_inset Text
28124
28125 \begin_layout Plain Layout
28126 ascii
28127 \end_layout
28128
28129 \end_inset
28130 </cell>
28131 <cell alignment="left" valignment="top" usebox="none">
28132 \begin_inset Text
28133
28134 \begin_layout Plain Layout
28135 enumitem
28136 \end_layout
28137
28138 \end_inset
28139 </cell>
28140 <cell alignment="left" valignment="top" usebox="none">
28141 \begin_inset Text
28142
28143 \begin_layout Plain Layout
28144 ifthen
28145 \end_layout
28146
28147 \end_inset
28148 </cell>
28149 <cell alignment="left" valignment="top" usebox="none">
28150 \begin_inset Text
28151
28152 \begin_layout Plain Layout
28153 mhchem
28154 \end_layout
28155
28156 \end_inset
28157 </cell>
28158 <cell alignment="center" valignment="top" usebox="none">
28159 \begin_inset Text
28160
28161 \begin_layout Plain Layout
28162 pxfonts
28163 \end_layout
28164
28165 \end_inset
28166 </cell>
28167 <cell alignment="center" valignment="top" usebox="none">
28168 \begin_inset Text
28169
28170 \begin_layout Plain Layout
28171 subscript
28172 \end_layout
28173
28174 \end_inset
28175 </cell>
28176 <cell alignment="center" valignment="top" usebox="none">
28177 \begin_inset Text
28178
28179 \begin_layout Plain Layout
28180 url
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
28190 \end_layout
28191
28192 \end_inset
28193 </cell>
28194 </row>
28195 <row>
28196 <cell alignment="left" valignment="top" usebox="none">
28197 \begin_inset Text
28198
28199 \begin_layout Plain Layout
28200 bbding
28201 \end_layout
28202
28203 \end_inset
28204 </cell>
28205 <cell alignment="left" valignment="top" usebox="none">
28206 \begin_inset Text
28207
28208 \begin_layout Plain Layout
28209 esint
28210 \end_layout
28211
28212 \end_inset
28213 </cell>
28214 <cell alignment="left" valignment="top" usebox="none">
28215 \begin_inset Text
28216
28217 \begin_layout Plain Layout
28218 jurabib
28219 \end_layout
28220
28221 \end_inset
28222 </cell>
28223 <cell alignment="left" valignment="top" usebox="none">
28224 \begin_inset Text
28225
28226 \begin_layout Plain Layout
28227 multicol
28228 \end_layout
28229
28230 \end_inset
28231 </cell>
28232 <cell alignment="center" valignment="top" usebox="none">
28233 \begin_inset Text
28234
28235 \begin_layout Plain Layout
28236 refstyle
28237 \end_layout
28238
28239 \end_inset
28240 </cell>
28241 <cell alignment="center" valignment="top" usebox="none">
28242 \begin_inset Text
28243
28244 \begin_layout Plain Layout
28245 textcomp
28246 \end_layout
28247
28248 \end_inset
28249 </cell>
28250 <cell alignment="center" valignment="top" usebox="none">
28251 \begin_inset Text
28252
28253 \begin_layout Plain Layout
28254 varioref
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
28264 \end_layout
28265
28266 \end_inset
28267 </cell>
28268 </row>
28269 <row>
28270 <cell alignment="center" valignment="top" usebox="none">
28271 \begin_inset Text
28272
28273 \begin_layout Plain Layout
28274 bm
28275 \end_layout
28276
28277 \end_inset
28278 </cell>
28279 <cell alignment="center" valignment="top" usebox="none">
28280 \begin_inset Text
28281
28282 \begin_layout Plain Layout
28283 fancybox
28284 \end_layout
28285
28286 \end_inset
28287 </cell>
28288 <cell alignment="center" valignment="top" usebox="none">
28289 \begin_inset Text
28290
28291 \begin_layout Plain Layout
28292 latexsym
28293 \end_layout
28294
28295 \end_inset
28296 </cell>
28297 <cell alignment="center" valignment="top" usebox="none">
28298 \begin_inset Text
28299
28300 \begin_layout Plain Layout
28301 multirow
28302 \end_layout
28303
28304 \end_inset
28305 </cell>
28306 <cell alignment="center" valignment="top" usebox="none">
28307 \begin_inset Text
28308
28309 \begin_layout Plain Layout
28310 rotating
28311 \end_layout
28312
28313 \end_inset
28314 </cell>
28315 <cell alignment="center" valignment="top" usebox="none">
28316 \begin_inset Text
28317
28318 \begin_layout Plain Layout
28319 textgreek
28320 \end_layout
28321
28322 \end_inset
28323 </cell>
28324 <cell alignment="center" valignment="top" usebox="none">
28325 \begin_inset Text
28326
28327 \begin_layout Plain Layout
28328 verbatim
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
28338 \end_layout
28339
28340 \end_inset
28341 </cell>
28342 </row>
28343 </lyxtabular>
28344
28345 \end_inset
28346
28347
28348 \end_layout
28349
28350 \begin_layout Chapter
28351 Names of available colors to be used in layouts
28352 \begin_inset CommandInset label
28353 LatexCommand label
28354 name "chap:Names-of-colors"
28355
28356 \end_inset
28357
28358
28359 \end_layout
28360
28361 \begin_layout Standard
28362 The colors listed below are the standard colors and those that you can adjust
28363  in the \SpecialChar LyX
28364  preferences.
28365 \end_layout
28366
28367 \begin_layout Section
28368 Color functions
28369 \end_layout
28370
28371 \begin_layout Standard
28372 The following are no real colors, but rather act on color definitions:
28373 \end_layout
28374
28375 \begin_layout Description
28376 ignore The color is ignored
28377 \end_layout
28378
28379 \begin_layout Description
28380 inherit The color is inherited
28381 \end_layout
28382
28383 \begin_layout Description
28384 none
28385 \family roman
28386 \series medium
28387 \shape up
28388 \size normal
28389 \emph off
28390 \bar no
28391 \strikeout off
28392 \uuline off
28393 \uwave off
28394 \noun off
28395 \color none
28396  No particular color – clear or default
28397 \end_layout
28398
28399 \begin_layout Section
28400 Static colors
28401 \end_layout
28402
28403 \begin_layout Standard
28404 These are fixed colors that cannot me customized:
28405 \end_layout
28406
28407 \begin_layout Description
28408 black
28409 \end_layout
28410
28411 \begin_layout Description
28412 white
28413 \end_layout
28414
28415 \begin_layout Description
28416 blue
28417 \end_layout
28418
28419 \begin_layout Description
28420 brown
28421 \end_layout
28422
28423 \begin_layout Description
28424 cyan
28425 \end_layout
28426
28427 \begin_layout Description
28428 darkgray
28429 \end_layout
28430
28431 \begin_layout Description
28432 gray
28433 \end_layout
28434
28435 \begin_layout Description
28436 green
28437 \end_layout
28438
28439 \begin_layout Description
28440 lightgray
28441 \end_layout
28442
28443 \begin_layout Description
28444 lime
28445 \end_layout
28446
28447 \begin_layout Description
28448 magenta
28449 \end_layout
28450
28451 \begin_layout Description
28452 olive
28453 \end_layout
28454
28455 \begin_layout Description
28456 orange
28457 \end_layout
28458
28459 \begin_layout Description
28460 pink
28461 \end_layout
28462
28463 \begin_layout Description
28464 purple
28465 \end_layout
28466
28467 \begin_layout Description
28468 red
28469 \end_layout
28470
28471 \begin_layout Description
28472 teal
28473 \end_layout
28474
28475 \begin_layout Description
28476 violet
28477 \end_layout
28478
28479 \begin_layout Description
28480 yellow
28481 \end_layout
28482
28483 \begin_layout Section
28484 Dynamic colors
28485 \end_layout
28486
28487 \begin_layout Standard
28488 These are the colors allocated to specific elements in 
28489 \begin_inset Info
28490 type  "menu"
28491 arg   "dialog-show prefs"
28492 \end_inset
28493
28494 :
28495 \end_layout
28496
28497 \begin_layout Description
28498 added_space Added space color
28499 \end_layout
28500
28501 \begin_layout Description
28502 addedtext Added text color
28503 \end_layout
28504
28505 \begin_layout Description
28506 appendix Appendix marker color
28507 \end_layout
28508
28509 \begin_layout Description
28510 background Background color
28511 \end_layout
28512
28513 \begin_layout Description
28514 bottomarea Bottom area color
28515 \end_layout
28516
28517 \begin_layout Description
28518 branchlabel Label color for branches
28519 \end_layout
28520
28521 \begin_layout Description
28522 buttonbg Color used for button background
28523 \end_layout
28524
28525 \begin_layout Description
28526 buttonframe Color for inset button frames
28527 \end_layout
28528
28529 \begin_layout Description
28530 buttonhoverbg Color used for button background under focus
28531 \end_layout
28532
28533 \begin_layout Description
28534 changebar Changebar color
28535 \end_layout
28536
28537 \begin_layout Description
28538 changedtextauthor1 Changed text color author 1
28539 \end_layout
28540
28541 \begin_layout Description
28542 changedtextauthor2 Changed text color author 2
28543 \end_layout
28544
28545 \begin_layout Description
28546 changedtextauthor3 Changed text color author 3
28547 \end_layout
28548
28549 \begin_layout Description
28550 changedtextauthor4 Changed text color author 4
28551 \end_layout
28552
28553 \begin_layout Description
28554 changedtextauthor5 Changed text color author 5
28555 \end_layout
28556
28557 \begin_layout Description
28558 collapsible Collapsible insets text color
28559 \end_layout
28560
28561 \begin_layout Description
28562 collapsibleframe Collapsible insets framecolor
28563 \end_layout
28564
28565 \begin_layout Description
28566 command Text color for command insets
28567 \end_layout
28568
28569 \begin_layout Description
28570 commandbg Background color for command insets
28571 \end_layout
28572
28573 \begin_layout Description
28574 commandframe Frame color for command insets
28575 \end_layout
28576
28577 \begin_layout Description
28578 comment Label color for comments
28579 \end_layout
28580
28581 \begin_layout Description
28582 commentbg Background color of comments
28583 \end_layout
28584
28585 \begin_layout Description
28586 cursor Cursor color
28587 \end_layout
28588
28589 \begin_layout Description
28590 deletedtext Deleted text color
28591 \end_layout
28592
28593 \begin_layout Description
28594 deletedtextmodifier Deleted text modifying color
28595 \end_layout
28596
28597 \begin_layout Description
28598 depthbar Color for the depth bars in the margin
28599 \end_layout
28600
28601 \begin_layout Description
28602 eolmarker End of line marker color
28603 \end_layout
28604
28605 \begin_layout Description
28606 error Color of the \SpecialChar LaTeX
28607  error box
28608 \end_layout
28609
28610 \begin_layout Description
28611 footlabel Label color for footnotes
28612 \end_layout
28613
28614 \begin_layout Description
28615 foreground Foreground color
28616 \end_layout
28617
28618 \begin_layout Description
28619 graphicsbg Graphics inset background color
28620 \end_layout
28621
28622 \begin_layout Description
28623 greyedoutbg Background color of greyedout inset
28624 \end_layout
28625
28626 \begin_layout Description
28627 greyedoutlabel Label color for greyedout insets
28628 \end_layout
28629
28630 \begin_layout Description
28631 greyedouttext Color for greyedout inset text
28632 \end_layout
28633
28634 \begin_layout Description
28635 indexlabel Label color for index insets
28636 \end_layout
28637
28638 \begin_layout Description
28639 inlinecompletion Inline completion color
28640 \end_layout
28641
28642 \begin_layout Description
28643 insetbg Inset marker background color
28644 \end_layout
28645
28646 \begin_layout Description
28647 insetframe Inset marker frame color
28648 \end_layout
28649
28650 \begin_layout Description
28651 language Color for marking foreign language words
28652 \end_layout
28653
28654 \begin_layout Description
28655 latex Text color in \SpecialChar LaTeX
28656  mode
28657 \end_layout
28658
28659 \begin_layout Description
28660 listingsbg Background color of listings inset
28661 \end_layout
28662
28663 \begin_layout Description
28664 marginlabel Label color for margin notes
28665 \end_layout
28666
28667 \begin_layout Description
28668 math Math inset text color
28669 \end_layout
28670
28671 \begin_layout Description
28672 mathbg Math inset background color
28673 \end_layout
28674
28675 \begin_layout Description
28676 mathcorners Math inset frame color not under focus
28677 \end_layout
28678
28679 \begin_layout Description
28680 mathframe Math inset frame color under focus
28681 \end_layout
28682
28683 \begin_layout Description
28684 mathline Math line color
28685 \end_layout
28686
28687 \begin_layout Description
28688 mathmacrobg Macro math inset background color
28689 \end_layout
28690
28691 \begin_layout Description
28692 mathmacroblend Macro math blended color
28693 \end_layout
28694
28695 \begin_layout Description
28696 mathmacroframe Macro math frame color
28697 \end_layout
28698
28699 \begin_layout Description
28700 mathmacrohoverbg Macro math inset background color hovered
28701 \end_layout
28702
28703 \begin_layout Description
28704 mathmacrolabel Macro math label color
28705 \end_layout
28706
28707 \begin_layout Description
28708 mathmacronewarg Macro template color for new parameters
28709 \end_layout
28710
28711 \begin_layout Description
28712 mathmacrooldarg Macro template color for old parameters
28713 \end_layout
28714
28715 \begin_layout Description
28716 newpage New page color
28717 \end_layout
28718
28719 \begin_layout Description
28720 nonunique_inlinecompletion Inline completion color for the non-unique part
28721 \end_layout
28722
28723 \begin_layout Description
28724 note Label color for notes
28725 \end_layout
28726
28727 \begin_layout Description
28728 notebg Background color of notes
28729 \end_layout
28730
28731 \begin_layout Description
28732 pagebreak Page break/line break color
28733 \end_layout
28734
28735 \begin_layout Description
28736 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28737 \end_layout
28738
28739 \begin_layout Description
28740 phantomtext Text color for phantom insets
28741 \end_layout
28742
28743 \begin_layout Description
28744 preview The color used for previews
28745 \end_layout
28746
28747 \begin_layout Description
28748 previewframe Preview frame color
28749 \end_layout
28750
28751 \begin_layout Description
28752 regexpframe Color for regexp frame
28753 \end_layout
28754
28755 \begin_layout Description
28756 scroll Color that indicates when a row can be scrolled 
28757 \end_layout
28758
28759 \begin_layout Description
28760 selection Background color of selected text
28761 \end_layout
28762
28763 \begin_layout Description
28764 selectiontext Foreground color of selected text
28765 \end_layout
28766
28767 \begin_layout Description
28768 shadedbg Background color of shaded box
28769 \end_layout
28770
28771 \begin_layout Description
28772 special Special chars text color
28773 \end_layout
28774
28775 \begin_layout Description
28776 tabularline Table line color
28777 \end_layout
28778
28779 \begin_layout Description
28780 tabularonoffline Table line color
28781 \end_layout
28782
28783 \begin_layout Description
28784 urllabel Label color for URL insets
28785 \end_layout
28786
28787 \begin_layout Description
28788 urltext Color for URL inset text
28789 \end_layout
28790
28791 \end_body
28792 \end_document