]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Update customization manual for docbook (part2).
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 596
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 no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \author -970929547 "Thibaut Cuvelier"
139 \author -712698321 "Jürgen Spitzmüller"
140 \author -495245474 "Jean-Marc Lasgouttes"
141 \author 5863208 "ab"
142 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
143 \author 1075283030 "Thibaut"
144 \end_header
145
146 \begin_body
147
148 \begin_layout Title
149 Customizing \SpecialChar LyX
150 : Features for the Advanced User
151 \end_layout
152
153 \begin_layout Author
154 by the \SpecialChar LyX
155  Team
156 \begin_inset Foot
157 status collapsed
158
159 \begin_layout Plain Layout
160 \noindent
161 If you have comments or error corrections, please send them to the \SpecialChar LyX
162  Documentatio
163 n mailing list, 
164 \begin_inset CommandInset href
165 LatexCommand href
166 target "lyx-docs@lists.lyx.org"
167 type "mailto:"
168 literal "false"
169
170 \end_inset
171
172 .
173  Include 
174 \begin_inset Quotes eld
175 \end_inset
176
177 [Customization]
178 \begin_inset Quotes erd
179 \end_inset
180
181  in the subject header, and please cc the current maintainer of this file,
182  Richard Heck <rgheck@comcast.net>.
183 \end_layout
184
185 \end_inset
186
187
188 \begin_inset Newline newline
189 \end_inset
190
191
192 \begin_inset Newline newline
193 \end_inset
194
195 Version 2.3.x 
196 \end_layout
197
198 \begin_layout Standard
199 \begin_inset CommandInset toc
200 LatexCommand tableofcontents
201
202 \end_inset
203
204
205 \end_layout
206
207 \begin_layout Standard
208 \begin_inset Note Note
209 status open
210
211 \begin_layout Plain Layout
212 Please use change tracking when modifying this document.
213  This makes it easier for our translators to recognize things that have
214  been changed, and it helps the maintainer keep up-to-date with what's been
215  done.
216 \end_layout
217
218 \end_inset
219
220
221 \end_layout
222
223 \begin_layout Chapter
224 Introduction
225 \end_layout
226
227 \begin_layout Standard
228 This manual covers the customization features present in \SpecialChar LyX
229 .
230  In it, we discuss issues like keyboard shortcuts, screen previewing options,
231  printer options, sending commands to \SpecialChar LyX
232  via the \SpecialChar LyX
233  Server, internationalization,
234  installing new \SpecialChar LaTeX
235  classes and \SpecialChar LyX
236  layouts, etc.
237  We can't possibly hope to touch on everything you can change—our developers
238  add new features faster than we can document them—but we will explain the
239  most common customizations and hopefully point you in the right direction
240  for some of the more obscure ones.
241 \end_layout
242
243 \begin_layout Standard
244 \begin_inset Branch OutDated
245 inverted 0
246 status collapsed
247
248 \begin_layout Standard
249 Information from previous versions of this document that now seems to be
250  outdated is contained in the OutDated branch of this document.
251  By default, this information will not appear in the \SpecialChar LaTeX
252  output.
253 \end_layout
254
255 \end_inset
256
257
258 \end_layout
259
260 \begin_layout Chapter
261 \SpecialChar LyX
262  configuration files
263 \end_layout
264
265 \begin_layout Standard
266 This chapter aims to help you to find your way through the \SpecialChar LyX
267  configuration
268  files.
269  Before continuing to read this chapter, you should find out where your
270  \SpecialChar LyX
271  library and user directories are by using 
272 \begin_inset Flex Noun
273 status collapsed
274
275 \begin_layout Plain Layout
276 Help\SpecialChar menuseparator
277 About
278 \begin_inset space ~
279 \end_inset
280
281 LyX
282 \end_layout
283
284 \end_inset
285
286 .
287  The library directory is the place where \SpecialChar LyX
288  places its system-wide configuration
289  files; the user directory is where you can place your modified versions.
290  We will call the former 
291 \begin_inset Flex Code
292 status collapsed
293
294 \begin_layout Plain Layout
295 LyXDir
296 \end_layout
297
298 \end_inset
299
300  and the latter 
301 \begin_inset Flex Noun
302 status collapsed
303
304 \begin_layout Plain Layout
305 UserDir
306 \end_layout
307
308 \end_inset
309
310  in the remainder of this document.
311  
312 \end_layout
313
314 \begin_layout Section
315 What's in 
316 \begin_inset Flex Code
317 status collapsed
318
319 \begin_layout Plain Layout
320 LyXDir
321 \end_layout
322
323 \end_inset
324
325 ?
326 \end_layout
327
328 \begin_layout Standard
329 \begin_inset Flex Code
330 status collapsed
331
332 \begin_layout Plain Layout
333 LyXDir
334 \end_layout
335
336 \end_inset
337
338  and its sub-directories contain a number of files and that can be used
339  to customize \SpecialChar LyX
340 's behavior.
341  You can change many of these files from within \SpecialChar LyX
342  itself through the 
343 \begin_inset Flex Noun
344 status collapsed
345
346 \begin_layout Plain Layout
347 Tools\SpecialChar menuseparator
348 Preferences
349 \end_layout
350
351 \end_inset
352
353  dialog.
354  Most customization that you will want to do in \SpecialChar LyX
355  is possible through this
356  dialog.
357  However, many other inner aspects of \SpecialChar LyX
358  can be customized by modifying the
359  files in 
360 \begin_inset Flex Code
361 status collapsed
362
363 \begin_layout Plain Layout
364 LyXDir
365 \end_layout
366
367 \end_inset
368
369 .
370  These files fall in different categories, described in the following subsection
371 s.
372 \end_layout
373
374 \begin_layout Subsection
375 Automatically generated files
376 \end_layout
377
378 \begin_layout Standard
379 The files, which are to be found in 
380 \begin_inset Flex Noun
381 status collapsed
382
383 \begin_layout Plain Layout
384 UserDir
385 \end_layout
386
387 \end_inset
388
389 , are generated when you configure \SpecialChar LyX
390 .
391  They contain various default values that are guessed by inspection.
392  In general, it is not a good idea to modify them, since they might be overwritt
393 en at any time.
394 \end_layout
395
396 \begin_layout Labeling
397 \labelwidthstring 00.00.0000
398 \begin_inset Flex Code
399 status collapsed
400
401 \begin_layout Plain Layout
402 lyxrc.defaults
403 \end_layout
404
405 \end_inset
406
407  contains defaults for various commands.
408 \end_layout
409
410 \begin_layout Labeling
411 \labelwidthstring 00.00.0000
412 \begin_inset Flex Code
413 status collapsed
414
415 \begin_layout Plain Layout
416 packages.lst
417 \end_layout
418
419 \end_inset
420
421  contains the list of packages that have been recognized by \SpecialChar LyX
422 .
423  It is currently unused by the \SpecialChar LyX
424  program itself, but the information extracted,
425  and more, is made available with 
426 \begin_inset Flex Noun
427 status collapsed
428
429 \begin_layout Plain Layout
430 Help\SpecialChar menuseparator
431 \SpecialChar LaTeX
432
433 \begin_inset space ~
434 \end_inset
435
436 Configuration
437 \end_layout
438
439 \end_inset
440
441 .
442 \end_layout
443
444 \begin_layout Labeling
445 \labelwidthstring 00.00.0000
446 \begin_inset Flex Code
447 status collapsed
448
449 \begin_layout Plain Layout
450 textclass.lst
451 \end_layout
452
453 \end_inset
454
455  the list of text classes that have been found in your 
456 \begin_inset Flex Code
457 status collapsed
458
459 \begin_layout Plain Layout
460 layout/
461 \end_layout
462
463 \end_inset
464
465  directories, along with the associated \SpecialChar LaTeX
466  document class and their description.
467 \end_layout
468
469 \begin_layout Labeling
470 \labelwidthstring 00.00.0000
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 lyxmodules.lst
476 \end_layout
477
478 \end_inset
479
480  the list of layout modules found in your 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 layout/
486 \end_layout
487
488 \end_inset
489
490  directories
491 \end_layout
492
493 \begin_layout Labeling
494 \labelwidthstring 00.00.0000
495 \begin_inset Flex Code
496 status collapsed
497
498 \begin_layout Plain Layout
499 *files.lst
500 \end_layout
501
502 \end_inset
503
504  lists of various sorts of \SpecialChar LaTeX
505 -related files found on your system
506 \end_layout
507
508 \begin_layout Labeling
509 \labelwidthstring 00.00.0000
510 \begin_inset Flex Code
511 status collapsed
512
513 \begin_layout Plain Layout
514 doc/\SpecialChar LaTeX
515 Config.lyx
516 \end_layout
517
518 \end_inset
519
520  is automatically generated during configuration from the file 
521 \begin_inset Flex Code
522 status collapsed
523
524 \begin_layout Plain Layout
525 \SpecialChar LaTeX
526 Config.lyx.in
527 \end_layout
528
529 \end_inset
530
531 .
532  It contains information on your \SpecialChar LaTeX
533  configuration.
534 \end_layout
535
536 \begin_layout Subsection
537 Directories
538 \end_layout
539
540 \begin_layout Standard
541 These directories are duplicated between 
542 \begin_inset Flex Code
543 status collapsed
544
545 \begin_layout Plain Layout
546 LyXDir
547 \end_layout
548
549 \end_inset
550
551  and 
552 \begin_inset Flex Code
553 status collapsed
554
555 \begin_layout Plain Layout
556 UserDir
557 \end_layout
558
559 \end_inset
560
561 .
562  If a particular files exists in both places, the one in 
563 \begin_inset Flex Code
564 status collapsed
565
566 \begin_layout Plain Layout
567 UserDir
568 \end_layout
569
570 \end_inset
571
572  will be used.
573 \end_layout
574
575 \begin_layout Labeling
576 \labelwidthstring 00.00.0000
577 \begin_inset Flex Code
578 status collapsed
579
580 \begin_layout Plain Layout
581 bind/
582 \end_layout
583
584 \end_inset
585
586  this directory contains files with the extension 
587 \begin_inset Flex Code
588 status collapsed
589
590 \begin_layout Plain Layout
591 .bind
592 \end_layout
593
594 \end_inset
595
596  that define the keybindings used in \SpecialChar LyX
597 .
598  If there exists an internationalized version of the bind file named 
599 \begin_inset Flex Code
600 status collapsed
601
602 \begin_layout Plain Layout
603 $LANG_xxx.bind
604 \end_layout
605
606 \end_inset
607
608 , that will be used first.
609 \end_layout
610
611 \begin_layout Labeling
612 \labelwidthstring 00.00.0000
613 \begin_inset Flex Code
614 status collapsed
615
616 \begin_layout Plain Layout
617 citeengines/
618 \end_layout
619
620 \end_inset
621
622  contains files with the extension 
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627 .citeengine
628 \end_layout
629
630 \end_inset
631
632  which define the diverse citation possibilities (natbib, biblatex etc.).
633  See 
634 \begin_inset CommandInset ref
635 LatexCommand ref
636 reference "subsec:Cite-Engine-Files"
637 plural "false"
638 caps "false"
639 noprefix "false"
640
641 \end_inset
642
643  for details.
644 \end_layout
645
646 \begin_layout Labeling
647 \labelwidthstring 00.00.0000
648 \begin_inset Flex Code
649 status collapsed
650
651 \begin_layout Plain Layout
652 clipart/
653 \end_layout
654
655 \end_inset
656
657  contains graphics files that can be included in documents.
658  
659 \end_layout
660
661 \begin_layout Labeling
662 \labelwidthstring 00.00.0000
663 \begin_inset Flex Code
664 status collapsed
665
666 \begin_layout Plain Layout
667 doc/
668 \end_layout
669
670 \end_inset
671
672  contains \SpecialChar LyX
673  documentation files (including the one you are currently reading).
674  The file 
675 \begin_inset Flex Code
676 status collapsed
677
678 \begin_layout Plain Layout
679 \SpecialChar LaTeX
680 Config.lyx
681 \end_layout
682
683 \end_inset
684
685  deserves special attention, as noted above.
686  The internationalized help docs are in subdirectories 
687 \begin_inset Flex Code
688 status collapsed
689
690 \begin_layout Plain Layout
691 doc/xx
692 \end_layout
693
694 \end_inset
695
696  where 
697 \begin_inset Quotes eld
698 \end_inset
699
700 xx
701 \begin_inset Quotes erd
702 \end_inset
703
704  is the ISO language code.
705  See 
706 \begin_inset CommandInset ref
707 LatexCommand ref
708 reference "cha:Internationalizing-LyX"
709
710 \end_inset
711
712  for details.
713 \end_layout
714
715 \begin_layout Labeling
716 \labelwidthstring 00.00.0000
717 \begin_inset Flex Code
718 status collapsed
719
720 \begin_layout Plain Layout
721 examples/
722 \end_layout
723
724 \end_inset
725
726  contains example files that explain how to use some features.
727  In the file browser, press the 
728 \begin_inset Flex Noun
729 status collapsed
730
731 \begin_layout Plain Layout
732 Examples
733 \end_layout
734
735 \end_inset
736
737  button to get there.
738 \end_layout
739
740 \begin_layout Labeling
741 \labelwidthstring 00.00.0000
742 \begin_inset Flex Code
743 status collapsed
744
745 \begin_layout Plain Layout
746 images/
747 \end_layout
748
749 \end_inset
750
751  contains image files that are used by the 
752 \begin_inset Flex Noun
753 status collapsed
754
755 \begin_layout Plain Layout
756 Document
757 \end_layout
758
759 \end_inset
760
761  dialog.
762  In addition, it also contains the individual icons used in the toolbar
763  and the banners that can be shown when \SpecialChar LyX
764  is launched.
765 \end_layout
766
767 \begin_layout Labeling
768 \labelwidthstring 00.00.0000
769 \begin_inset Flex Code
770 status collapsed
771
772 \begin_layout Plain Layout
773 kbd/
774 \end_layout
775
776 \end_inset
777
778  contains keyboard keymapping files.
779  See 
780 \begin_inset CommandInset ref
781 LatexCommand ref
782 reference "sec:International-Keymap-Stuff"
783
784 \end_inset
785
786  for details.
787 \end_layout
788
789 \begin_layout Labeling
790 \labelwidthstring 00.00.0000
791 \begin_inset Flex Code
792 status collapsed
793
794 \begin_layout Plain Layout
795 layouts/
796 \end_layout
797
798 \end_inset
799
800  contains the text class and module files described in 
801 \begin_inset CommandInset ref
802 LatexCommand ref
803 reference "cha:Installing-New-Document"
804
805 \end_inset
806
807 .
808 \end_layout
809
810 \begin_layout Labeling
811 \labelwidthstring 00.00.0000
812 \begin_inset Flex Code
813 status collapsed
814
815 \begin_layout Plain Layout
816 lyx2lyx
817 \end_layout
818
819 \end_inset
820
821  contains the 
822 \begin_inset Flex Code
823 status collapsed
824
825 \begin_layout Plain Layout
826 lyx2lyx
827 \end_layout
828
829 \end_inset
830
831  Python scripts used to convert between \SpecialChar LyX
832  versions.
833  These can be run from the command line if, say, you want to batch-convert
834  files.
835 \end_layout
836
837 \begin_layout Labeling
838 \labelwidthstring 00.00.0000
839 \begin_inset Flex Code
840 status collapsed
841
842 \begin_layout Plain Layout
843 scripts/
844 \end_layout
845
846 \end_inset
847
848  contains some files that demonstrate the capabilities of the 
849 \begin_inset Flex Noun
850 status collapsed
851
852 \begin_layout Plain Layout
853 External
854 \begin_inset space ~
855 \end_inset
856
857 Template
858 \end_layout
859
860 \end_inset
861
862  feature.
863  Also contains some scripts used by \SpecialChar LyX
864  itself.
865 \end_layout
866
867 \begin_layout Labeling
868 \labelwidthstring 00.00.0000
869 \begin_inset Flex Code
870 status collapsed
871
872 \begin_layout Plain Layout
873 templates/
874 \end_layout
875
876 \end_inset
877
878  contains the standard \SpecialChar LyX
879  template files described in 
880 \begin_inset CommandInset ref
881 LatexCommand ref
882 reference "subsec:Creating-Templates"
883
884 \end_inset
885
886 .
887 \end_layout
888
889 \begin_layout Labeling
890 \labelwidthstring 00.00.0000
891 \begin_inset Flex Code
892 status collapsed
893
894 \begin_layout Plain Layout
895 ui/
896 \end_layout
897
898 \end_inset
899
900  contains files with the extension 
901 \begin_inset Flex Code
902 status collapsed
903
904 \begin_layout Plain Layout
905 .ui
906 \end_layout
907
908 \end_inset
909
910  that define the user interface to \SpecialChar LyX
911 .
912  That is, the files define which items appear in which menus and the items
913  appearing on the toolbar.
914 \end_layout
915
916 \begin_layout Labeling
917 \labelwidthstring 00.00.0000
918 \begin_inset Flex Code
919 status collapsed
920
921 \begin_layout Plain Layout
922 xtemplates/
923 \end_layout
924
925 \end_inset
926
927  contains files with the extension 
928 \begin_inset Flex Code
929 status collapsed
930
931 \begin_layout Plain Layout
932 .xtemplate
933 \end_layout
934
935 \end_inset
936
937  which define the templates for the insertion of external material to a
938  \SpecialChar LyX
939  document; see 
940 \begin_inset CommandInset ref
941 LatexCommand ref
942 reference "chap:Including-External-Material"
943
944 \end_inset
945
946 .
947 \end_layout
948
949 \begin_layout Subsection
950 Files you don't want to modify
951 \end_layout
952
953 \begin_layout Standard
954 These files are used internally by \SpecialChar LyX
955  and you generally do not need to modify
956  them unless you are a developer.
957 \end_layout
958
959 \begin_layout Labeling
960 \labelwidthstring 00.00.0000
961 \begin_inset Flex Code
962 status collapsed
963
964 \begin_layout Plain Layout
965 CREDITS
966 \end_layout
967
968 \end_inset
969
970  this file contains the list of \SpecialChar LyX
971  developers.
972  The contents are displayed with the menu entry 
973 \begin_inset Flex Noun
974 status collapsed
975
976 \begin_layout Plain Layout
977 Help\SpecialChar menuseparator
978 About
979 \begin_inset space ~
980 \end_inset
981
982 LyX
983 \end_layout
984
985 \end_inset
986
987 .
988 \end_layout
989
990 \begin_layout Labeling
991 \labelwidthstring 00.00.0000
992 \begin_inset Flex Code
993 status collapsed
994
995 \begin_layout Plain Layout
996 chkconfig.ltx
997 \end_layout
998
999 \end_inset
1000
1001  this is a \SpecialChar LaTeX
1002  script used during the configuration process.
1003  Do not run directly.
1004 \end_layout
1005
1006 \begin_layout Labeling
1007 \labelwidthstring 00.00.0000
1008 \begin_inset Flex Code
1009 status collapsed
1010
1011 \begin_layout Plain Layout
1012 configure.py
1013 \end_layout
1014
1015 \end_inset
1016
1017  this is a Python script that is used to re-configure \SpecialChar LyX
1018 .
1019  It creates configuration files in the directory it was run from.
1020 \end_layout
1021
1022 \begin_layout Subsection
1023 Other files needing a line or two
1024 \end_layout
1025
1026 \begin_layout Labeling
1027 \labelwidthstring 00.00.0000
1028 \begin_inset Flex Code
1029 status collapsed
1030
1031 \begin_layout Plain Layout
1032 encodings
1033 \end_layout
1034
1035 \end_inset
1036
1037  this contains tables describing how different character encodings can be
1038  mapped to Unicode
1039 \end_layout
1040
1041 \begin_layout Labeling
1042 \labelwidthstring 00.00.0000
1043 \begin_inset Flex Code
1044 status collapsed
1045
1046 \begin_layout Plain Layout
1047 languages
1048 \end_layout
1049
1050 \end_inset
1051
1052  this file contains a list of all the languages currently supported by \SpecialChar LyX
1053 .
1054 \end_layout
1055
1056 \begin_layout Labeling
1057 \labelwidthstring 00.00.0000
1058 \begin_inset Flex Code
1059 status collapsed
1060
1061 \begin_layout Plain Layout
1062 latexfonts
1063 \end_layout
1064
1065 \end_inset
1066
1067  contains information about the supported fonts.
1068 \end_layout
1069
1070 \begin_layout Labeling
1071 \labelwidthstring 00.00.0000
1072 \begin_inset Flex Code
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076 layouttranslations
1077 \end_layout
1078
1079 \end_inset
1080
1081  this file contains translations for internationalized paragraph styles
1082  (see 
1083 \begin_inset CommandInset ref
1084 LatexCommand ref
1085 reference "subsec:I18n"
1086
1087 \end_inset
1088
1089 ).
1090 \end_layout
1091
1092 \begin_layout Labeling
1093 \labelwidthstring 00.00.0000
1094 \begin_inset Flex Code
1095 status collapsed
1096
1097 \begin_layout Plain Layout
1098 unicodesymbols
1099 \end_layout
1100
1101 \end_inset
1102
1103  this file contains information about Unicode-encoded glyphs and the way
1104  they are supported by \SpecialChar LyX
1105  via \SpecialChar LaTeX
1106 .
1107 \end_layout
1108
1109 \begin_layout Section
1110 Your local configuration directory
1111 \end_layout
1112
1113 \begin_layout Standard
1114 Even if you are using \SpecialChar LyX
1115  as an unprivileged user, you might want to change
1116  \SpecialChar LyX
1117  configuration for your own use.
1118  The 
1119 \begin_inset Flex Code
1120 status collapsed
1121
1122 \begin_layout Plain Layout
1123 UserDir
1124 \end_layout
1125
1126 \end_inset
1127
1128  directory contains all your personal configuration files.
1129  This is the directory described as 
1130 \begin_inset Quotes eld
1131 \end_inset
1132
1133 user directory
1134 \begin_inset Quotes erd
1135 \end_inset
1136
1137  in 
1138 \begin_inset Flex Noun
1139 status collapsed
1140
1141 \begin_layout Plain Layout
1142 Help\SpecialChar menuseparator
1143 About
1144 \begin_inset space ~
1145 \end_inset
1146
1147 LyX
1148 \end_layout
1149
1150 \end_inset
1151
1152 .
1153  This directory is used as a mirror of 
1154 \begin_inset Flex Code
1155 status collapsed
1156
1157 \begin_layout Plain Layout
1158 LyXDir
1159 \end_layout
1160
1161 \end_inset
1162
1163 , which means that every file in 
1164 \begin_inset Flex Code
1165 status collapsed
1166
1167 \begin_layout Plain Layout
1168 UserDir
1169 \end_layout
1170
1171 \end_inset
1172
1173  is a replacement for the corresponding file in 
1174 \begin_inset Flex Code
1175 status collapsed
1176
1177 \begin_layout Plain Layout
1178 LyXDir
1179 \end_layout
1180
1181 \end_inset
1182
1183 .
1184  Any configuration file described in the above sections can be placed either
1185  in the system-wide directory, in which case it will affect all users, or
1186  in your local directory for your own use.
1187 \end_layout
1188
1189 \begin_layout Standard
1190 To make things clearer, let's provide a few examples:
1191 \end_layout
1192
1193 \begin_layout Itemize
1194 The preferences set in the 
1195 \begin_inset Flex Noun
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 Tools\SpecialChar menuseparator
1200 Preferences
1201 \end_layout
1202
1203 \end_inset
1204
1205  dialog are saved to a file 
1206 \begin_inset Flex Code
1207 status collapsed
1208
1209 \begin_layout Plain Layout
1210 preferences
1211 \end_layout
1212
1213 \end_inset
1214
1215  in 
1216 \begin_inset Flex Code
1217 status collapsed
1218
1219 \begin_layout Plain Layout
1220 UserDir
1221 \end_layout
1222
1223 \end_inset
1224
1225 .
1226 \end_layout
1227
1228 \begin_layout Itemize
1229 When you reconfigure using 
1230 \begin_inset Flex Noun
1231 status collapsed
1232
1233 \begin_layout Plain Layout
1234 Tools\SpecialChar menuseparator
1235 Reconfigure
1236 \end_layout
1237
1238 \end_inset
1239
1240 , \SpecialChar LyX
1241  runs the 
1242 \begin_inset Flex Code
1243 status collapsed
1244
1245 \begin_layout Plain Layout
1246 configure.py
1247 \end_layout
1248
1249 \end_inset
1250
1251  script, and the resulting files are written in your local configuration
1252  directory.
1253  This means that any additional text class file that you might have added
1254  in 
1255 \begin_inset Flex Code
1256 status collapsed
1257
1258 \begin_layout Plain Layout
1259 UserDir/layouts
1260 \end_layout
1261
1262 \end_inset
1263
1264  will be added to the list of classes in the 
1265 \begin_inset Flex Noun
1266 status collapsed
1267
1268 \begin_layout Plain Layout
1269 Document\SpecialChar menuseparator
1270 Settings
1271 \end_layout
1272
1273 \end_inset
1274
1275  dialog.
1276 \end_layout
1277
1278 \begin_layout Itemize
1279 If you get some updated documentation from \SpecialChar LyX
1280  ftp site and cannot install
1281  it because you do not have sysadmin rights on your system, you can just
1282  copy the files in 
1283 \begin_inset Flex Code
1284 status collapsed
1285
1286 \begin_layout Plain Layout
1287 UserDir/doc/
1288 \end_layout
1289
1290 \end_inset
1291
1292  and the items in the 
1293 \begin_inset Flex Noun
1294 status collapsed
1295
1296 \begin_layout Plain Layout
1297 Help
1298 \end_layout
1299
1300 \end_inset
1301
1302  menu will open them!
1303 \end_layout
1304
1305 \begin_layout Section
1306 Running \SpecialChar LyX
1307  with multiple configurations
1308 \end_layout
1309
1310 \begin_layout Standard
1311 The configuration freedom of the local configuration directory may not suffice
1312  if you want to have more than one configuration at your disposal.
1313  For example, you may want to be use different key bindings or printer settings
1314  at different times.
1315  You can achieve this by having several such directories.
1316  You then specify which directory to use at run-time.
1317 \end_layout
1318
1319 \begin_layout Standard
1320 Invoking \SpecialChar LyX
1321  with the command line switch 
1322 \begin_inset Flex Code
1323 status collapsed
1324
1325 \begin_layout Plain Layout
1326 -userdir
1327 \end_layout
1328
1329 \end_inset
1330
1331  
1332 \emph on
1333 <some directory>
1334 \emph default
1335  instructs the program to read the configuration from that directory, and
1336  not from the default directory.
1337  (You can determine the default directory by running \SpecialChar LyX
1338  without the 
1339 \begin_inset Flex Code
1340 status collapsed
1341
1342 \begin_layout Plain Layout
1343 -userdir
1344 \end_layout
1345
1346 \end_inset
1347
1348  switch.) If the specified directory does not exist, \SpecialChar LyX
1349  offers to create it
1350  for you, just like it does for the default directory on the first time
1351  you run the program.
1352  You can modify the configuration options in this additional user directory
1353  exactly as you would for the default directory.
1354  These directories are completely independent (but read on).
1355  Note that setting the environment variable 
1356 \begin_inset Flex Code
1357 status collapsed
1358
1359 \begin_layout Plain Layout
1360 LYX_USERDIR_VER
1361 \end_layout
1362
1363 \end_inset
1364
1365  to some value has exactly the same effect.
1366 \end_layout
1367
1368 \begin_layout Standard
1369 Having several configurations also requires more maintenance: if you want
1370  to add a new layout to 
1371 \begin_inset Flex Code
1372 status collapsed
1373
1374 \begin_layout Plain Layout
1375 NewUserDir/layouts
1376 \end_layout
1377
1378 \end_inset
1379
1380  which you want available from all your configurations, you must add it
1381  to each directory separately.
1382  You can avoid this with the following trick: after \SpecialChar LyX
1383  creates the additional
1384  directory, most of the subdirectories (see above) are empty.
1385  If you want the new configuration to mirror an existing one, replace the
1386  empty subdirectory with a symbolic link to the matching subdirectory in
1387  the existing configuration.
1388  Take care with the 
1389 \begin_inset Flex Code
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 doc/
1394 \end_layout
1395
1396 \end_inset
1397
1398  subdirectory, however, since it contains a file written by the configuration
1399  script (also accessible through 
1400 \begin_inset Flex Noun
1401 status collapsed
1402
1403 \begin_layout Plain Layout
1404 Tools\SpecialChar menuseparator
1405 Reconfigure
1406 \end_layout
1407
1408 \end_inset
1409
1410 ) which is configuration-specific.
1411 \end_layout
1412
1413 \begin_layout Chapter
1414 The Preferences dialog
1415 \end_layout
1416
1417 \begin_layout Standard
1418 All options of the preferences dialog are described in the Appendix 
1419 \emph on
1420 The Preferences Dialog
1421 \emph default
1422  in the 
1423 \emph on
1424 User's Guide
1425 \emph default
1426 .
1427  For some options you might find here more details.
1428 \end_layout
1429
1430 \begin_layout Section
1431 Formats
1432 \begin_inset CommandInset label
1433 LatexCommand label
1434 name "sec:Formats"
1435
1436 \end_inset
1437
1438
1439 \end_layout
1440
1441 \begin_layout Standard
1442 The first step is to define your file formats if they are not already defined.
1443  To do so, open the 
1444 \begin_inset Flex Noun
1445 status collapsed
1446
1447 \begin_layout Plain Layout
1448 Tools\SpecialChar menuseparator
1449 Preferences
1450 \end_layout
1451
1452 \end_inset
1453
1454  dialog.
1455  Under 
1456 \begin_inset Flex Noun
1457 status collapsed
1458
1459 \begin_layout Plain Layout
1460 File Handling\SpecialChar menuseparator
1461 File formats
1462 \end_layout
1463
1464 \end_inset
1465
1466  press the 
1467 \begin_inset Flex Noun
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471 New
1472 \end_layout
1473
1474 \end_inset
1475
1476  button to define your new format.
1477  The 
1478 \begin_inset Flex Noun
1479 status collapsed
1480
1481 \begin_layout Plain Layout
1482 Format
1483 \end_layout
1484
1485 \end_inset
1486
1487  field contains the name used to identify the format in the GUI.
1488  The 
1489 \begin_inset Flex Noun
1490 status collapsed
1491
1492 \begin_layout Plain Layout
1493 Short Name
1494 \end_layout
1495
1496 \end_inset
1497
1498  is used to identify the format internally.
1499  You will also need to enter a file extension.
1500  These are all required.
1501  The optional 
1502 \begin_inset Flex Noun
1503 status collapsed
1504
1505 \begin_layout Plain Layout
1506 Shortcut
1507 \end_layout
1508
1509 \end_inset
1510
1511  field is used to provide a keyboard shortcut on the menus.
1512  (For example, pressing 
1513 \begin_inset Flex Noun
1514 status collapsed
1515
1516 \begin_layout Plain Layout
1517 Ctrl+D
1518 \end_layout
1519
1520 \end_inset
1521
1522  will 
1523 \begin_inset Flex Noun
1524 status collapsed
1525
1526 \begin_layout Plain Layout
1527 Document\SpecialChar menuseparator
1528 View (Other Formats)\SpecialChar menuseparator
1529 DVI
1530 \end_layout
1531
1532 \end_inset
1533
1534 .) 
1535 \end_layout
1536
1537 \begin_layout Standard
1538 A Format can have a 
1539 \begin_inset Flex Noun
1540 status collapsed
1541
1542 \begin_layout Plain Layout
1543 Viewer
1544 \end_layout
1545
1546 \end_inset
1547
1548  and an 
1549 \begin_inset Flex Noun
1550 status collapsed
1551
1552 \begin_layout Plain Layout
1553 Editor
1554 \end_layout
1555
1556 \end_inset
1557
1558  associated with it.
1559  For example, you might want to use 
1560 \begin_inset Flex Noun
1561 status collapsed
1562
1563 \begin_layout Plain Layout
1564 Ghostview
1565 \end_layout
1566
1567 \end_inset
1568
1569  to view PostScript files.
1570  You can enter the command needed to start the program in the corresponding
1571  fields.
1572  In defining this command, you can use the four variables listed in the
1573  next section.
1574  The viewer is launched when you view an image in \SpecialChar LyX
1575  or use the 
1576 \begin_inset Flex Noun
1577 status collapsed
1578
1579 \begin_layout Plain Layout
1580 Document\SpecialChar menuseparator
1581 View
1582 \end_layout
1583
1584 \end_inset
1585
1586  menu.
1587  The editor is for example launched when you right-click on an image and
1588  choose 
1589 \begin_inset Flex Noun
1590 status collapsed
1591
1592 \begin_layout Plain Layout
1593 Edit externally
1594 \end_layout
1595
1596 \end_inset
1597
1598  in the appearing context menu.
1599 \end_layout
1600
1601 \begin_layout Standard
1602 The 
1603 \begin_inset Flex Noun
1604 status collapsed
1605
1606 \begin_layout Plain Layout
1607 MIME
1608 \end_layout
1609
1610 \end_inset
1611
1612  type of a format is optional, but if it is specified, it must be unique
1613  across all formats.
1614  It is used to detect files of this format from the file contents.
1615  For some important file formats there is no MIME type officially registered
1616  with the 
1617 \begin_inset CommandInset href
1618 LatexCommand href
1619 name "IANA"
1620 target "http://www.iana.org/assignments/media-types/"
1621 literal "false"
1622
1623 \end_inset
1624
1625 .
1626  Therefore \SpecialChar LyX
1627  uses the extended list of MIME types as specified by 
1628 \begin_inset CommandInset href
1629 LatexCommand href
1630 name "freedesktop.org"
1631 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1632 literal "false"
1633
1634 \end_inset
1635
1636 .
1637 \end_layout
1638
1639 \begin_layout Standard
1640 The 
1641 \begin_inset Flex Noun
1642 status collapsed
1643
1644 \begin_layout Plain Layout
1645 Document format
1646 \end_layout
1647
1648 \end_inset
1649
1650  option tells \SpecialChar LyX
1651  that a format is suitable for document export.
1652  If this is set and if a suitable conversion route exists (see 
1653 \begin_inset CommandInset ref
1654 LatexCommand ref
1655 reference "sec:Converters"
1656
1657 \end_inset
1658
1659 ), the format will appear in the 
1660 \begin_inset Flex Noun
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 File\SpecialChar menuseparator
1665 Export
1666 \end_layout
1667
1668 \end_inset
1669
1670  menu.
1671  The format will also appear in the 
1672 \begin_inset Flex Noun
1673 status collapsed
1674
1675 \begin_layout Plain Layout
1676 Document\SpecialChar menuseparator
1677 View
1678 \end_layout
1679
1680 \end_inset
1681
1682  menu if a viewer is specified for the format.
1683  Pure image formats, such as 
1684 \begin_inset Flex Code
1685 status collapsed
1686
1687 \begin_layout Plain Layout
1688 png
1689 \end_layout
1690
1691 \end_inset
1692
1693 , should not use this option.
1694  Formats that can both represent vector graphics and documents like 
1695 \begin_inset Flex Code
1696 status collapsed
1697
1698 \begin_layout Plain Layout
1699 pdf
1700 \end_layout
1701
1702 \end_inset
1703
1704  should use it.
1705 \end_layout
1706
1707 \begin_layout Standard
1708 The option 
1709 \begin_inset Flex Noun
1710 status collapsed
1711
1712 \begin_layout Plain Layout
1713 Vector graphics format
1714 \end_layout
1715
1716 \end_inset
1717
1718  tells \SpecialChar LyX
1719  that a format can contain vector graphics.
1720  This information is used to determine the target format of included graphics
1721  for 
1722 \begin_inset Flex Noun
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 pdflatex
1727 \end_layout
1728
1729 \end_inset
1730
1731  export.
1732  Included graphics may need to be converted to either 
1733 \begin_inset Flex Noun
1734 status collapsed
1735
1736 \begin_layout Plain Layout
1737 pdf
1738 \end_layout
1739
1740 \end_inset
1741
1742
1743 \begin_inset Flex Noun
1744 status collapsed
1745
1746 \begin_layout Plain Layout
1747 png
1748 \end_layout
1749
1750 \end_inset
1751
1752 , or 
1753 \begin_inset Flex Noun
1754 status collapsed
1755
1756 \begin_layout Plain Layout
1757 jpg
1758 \end_layout
1759
1760 \end_inset
1761
1762 , since 
1763 \begin_inset Flex Noun
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 pdflatex
1768 \end_layout
1769
1770 \end_inset
1771
1772  cannot handle other image formats.
1773  If an included graphic is not already in 
1774 \begin_inset Flex Noun
1775 status collapsed
1776
1777 \begin_layout Plain Layout
1778 pdf
1779 \end_layout
1780
1781 \end_inset
1782
1783
1784 \begin_inset Flex Noun
1785 status collapsed
1786
1787 \begin_layout Plain Layout
1788 png
1789 \end_layout
1790
1791 \end_inset
1792
1793 , or 
1794 \begin_inset Flex Noun
1795 status collapsed
1796
1797 \begin_layout Plain Layout
1798 jpg
1799 \end_layout
1800
1801 \end_inset
1802
1803  format, it is converted to 
1804 \begin_inset Flex Noun
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 pdf
1809 \end_layout
1810
1811 \end_inset
1812
1813  if the vector format option is set, and otherwise to 
1814 \begin_inset Flex Noun
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 png
1819 \end_layout
1820
1821 \end_inset
1822
1823 .
1824 \end_layout
1825
1826 \begin_layout Section
1827 Copiers
1828 \end_layout
1829
1830 \begin_layout Standard
1831 Since all conversions from one format to another take place in \SpecialChar LyX
1832 's temporary
1833  directory, it is sometimes necessary to modify a file before copying it
1834  to the temporary directory in order that the conversion may be performed.
1835 \begin_inset Foot
1836 status collapsed
1837
1838 \begin_layout Plain Layout
1839 For example, the file may refer to other files—images, for example—using
1840  relative file names, and these may become invalid when the file is copied
1841  to the temporary directory.
1842 \end_layout
1843
1844 \end_inset
1845
1846  This is done by a Copier: It copies a file to (or from) the temporary directory
1847  and may modify it in the process.
1848 \end_layout
1849
1850 \begin_layout Standard
1851 The definitions of the copiers may use eight variables:
1852 \end_layout
1853
1854 \begin_layout Labeling
1855 \labelwidthstring 00.00.0000
1856 \begin_inset Flex Code
1857 status collapsed
1858
1859 \begin_layout Plain Layout
1860 $$s
1861 \end_layout
1862
1863 \end_inset
1864
1865  The \SpecialChar LyX
1866  system directory (e.
1867 \begin_inset space \thinspace{}
1868 \end_inset
1869
1870 g.
1871 \begin_inset space \space{}
1872 \end_inset
1873
1874
1875 \begin_inset Flex Noun
1876 status collapsed
1877
1878 \begin_layout Plain Layout
1879 /usr/share/lyx
1880 \end_layout
1881
1882 \end_inset
1883
1884 ).
1885 \end_layout
1886
1887 \begin_layout Labeling
1888 \labelwidthstring 00.00.0000
1889 \begin_inset Flex Code
1890 status collapsed
1891
1892 \begin_layout Plain Layout
1893 $$i
1894 \end_layout
1895
1896 \end_inset
1897
1898  The input file
1899 \end_layout
1900
1901 \begin_layout Labeling
1902 \labelwidthstring 00.00.0000
1903 \begin_inset Flex Code
1904 status collapsed
1905
1906 \begin_layout Plain Layout
1907 $$o
1908 \end_layout
1909
1910 \end_inset
1911
1912  The output file
1913 \end_layout
1914
1915 \begin_layout Labeling
1916 \labelwidthstring 00.00.0000
1917 \begin_inset Flex Code
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921 $$b
1922 \end_layout
1923
1924 \end_inset
1925
1926  The base name (without filename extension) in the \SpecialChar LyX
1927  temporary directory
1928 \end_layout
1929
1930 \begin_layout Labeling
1931 \labelwidthstring 00.00.0000
1932 \begin_inset Flex Code
1933 status collapsed
1934
1935 \begin_layout Plain Layout
1936 $$p
1937 \end_layout
1938
1939 \end_inset
1940
1941  The full directory path of the \SpecialChar LyX
1942  temporary directory
1943 \end_layout
1944
1945 \begin_layout Labeling
1946 \labelwidthstring 00.00.0000
1947 \begin_inset Flex Code
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951 $$r
1952 \end_layout
1953
1954 \end_inset
1955
1956  The full pathname to the original \SpecialChar LyX
1957  file being processed
1958 \end_layout
1959
1960 \begin_layout Labeling
1961 \labelwidthstring 00.00.0000
1962 \begin_inset Flex Code
1963 status collapsed
1964
1965 \begin_layout Plain Layout
1966 $$f
1967 \end_layout
1968
1969 \end_inset
1970
1971  The filename (without any directory path) of the \SpecialChar LyX
1972  file.
1973 \end_layout
1974
1975 \begin_layout Labeling
1976 \labelwidthstring 00.00.0000
1977 \begin_inset Flex Code
1978 status collapsed
1979
1980 \begin_layout Plain Layout
1981 $$l
1982 \end_layout
1983
1984 \end_inset
1985
1986  The `\SpecialChar LaTeX
1987  name'
1988 \end_layout
1989
1990 \begin_layout Standard
1991 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1992 's 
1993 \series bold
1994
1995 \backslash
1996 include
1997 \series default
1998  command.
1999  It is relevant only when exporting files suitable for such inclusion.
2000 \end_layout
2001
2002 \begin_layout Standard
2003 Copiers can be used to do almost anything with output files.
2004  For example, suppose you want generated pdf files to be copied to a special
2005  directory, 
2006 \begin_inset Flex Code
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010 /home/you/pdf/
2011 \end_layout
2012
2013 \end_inset
2014
2015 .
2016  Then you could write a shell script such as this one:
2017 \end_layout
2018
2019 \begin_layout Standard
2020 \begin_inset listings
2021 inline false
2022 status open
2023
2024 \begin_layout Plain Layout
2025
2026 #!/bin/bash
2027 \end_layout
2028
2029 \begin_layout Plain Layout
2030
2031 FROMFILE=$1
2032 \end_layout
2033
2034 \begin_layout Plain Layout
2035
2036 TOFILE=`basename $2`
2037 \end_layout
2038
2039 \begin_layout Plain Layout
2040
2041 cp $FROMFILE /home/you/pdf/$TOFILE
2042 \end_layout
2043
2044 \end_inset
2045
2046 Save it in your local \SpecialChar LyX
2047  directory—say, 
2048 \begin_inset Flex Code
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052 /home/you/.lyx/scripts/pdfcopier.sh
2053 \end_layout
2054
2055 \end_inset
2056
2057 —and make it executable, if you need to do so on your platform.
2058  Then, in the 
2059 \begin_inset Flex Noun
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 Tools\SpecialChar menuseparator
2064 Preferences
2065 \end_layout
2066
2067 \end_inset
2068
2069  dialog, select under 
2070 \begin_inset Flex Noun
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 File Handling\SpecialChar menuseparator
2075 File formats
2076 \end_layout
2077
2078 \end_inset
2079
2080  the 
2081 \begin_inset Flex Noun
2082 status collapsed
2083
2084 \begin_layout Plain Layout
2085 PDF(pdflatex)
2086 \end_layout
2087
2088 \end_inset
2089
2090  format—or one of the other pdf formats—and enter 
2091 \begin_inset Flex Code
2092 status collapsed
2093
2094 \begin_layout Plain Layout
2095 pdfcopier.sh $$i $$o
2096 \end_layout
2097
2098 \end_inset
2099
2100  into the 
2101 \begin_inset Flex Noun
2102 status collapsed
2103
2104 \begin_layout Plain Layout
2105 Copier
2106 \end_layout
2107
2108 \end_inset
2109
2110  field.
2111  
2112 \end_layout
2113
2114 \begin_layout Standard
2115 Copiers are used by \SpecialChar LyX
2116  in various of its own conversions.
2117  For example, if appropriate programs are found, \SpecialChar LyX
2118  will automatically install
2119  copiers for the 
2120 \begin_inset Flex Noun
2121 status collapsed
2122
2123 \begin_layout Plain Layout
2124 HTML
2125 \end_layout
2126
2127 \end_inset
2128
2129  and 
2130 \begin_inset Flex Noun
2131 status collapsed
2132
2133 \begin_layout Plain Layout
2134 HTML
2135 \begin_inset space ~
2136 \end_inset
2137
2138 (MS Word)
2139 \end_layout
2140
2141 \end_inset
2142
2143  formats.
2144  When these formats are exported, the copier sees that not just the main
2145  HTML file but various associated files (style files, images, etc.) are also
2146  copied.
2147  All these files are written to a subdirectory of the directory in which
2148  the original \SpecialChar LyX
2149  file was found.
2150 \begin_inset Foot
2151 status collapsed
2152
2153 \begin_layout Plain Layout
2154 This copier can be customized.
2155  The optional 
2156 \begin_inset Quotes eld
2157 \end_inset
2158
2159 -e
2160 \begin_inset Quotes erd
2161 \end_inset
2162
2163  argument takes a comma-separated list of extensions to be copied; if it
2164  is omitted, all files will be copied.
2165  The 
2166 \begin_inset Quotes eld
2167 \end_inset
2168
2169 -t
2170 \begin_inset Quotes erd
2171 \end_inset
2172
2173  argument determines the extension added to the generated directory.
2174  By default, it is 
2175 \begin_inset Quotes eld
2176 \end_inset
2177
2178
2179 \begin_inset Flex Noun
2180 status collapsed
2181
2182 \begin_layout Plain Layout
2183 LyXconv
2184 \end_layout
2185
2186 \end_inset
2187
2188
2189 \begin_inset Quotes erd
2190 \end_inset
2191
2192 , so HTML generated from 
2193 \begin_inset Flex Noun
2194 status collapsed
2195
2196 \begin_layout Plain Layout
2197 /path/to/filename.lyx
2198 \end_layout
2199
2200 \end_inset
2201
2202  will end up in 
2203 \begin_inset Flex Noun
2204 status collapsed
2205
2206 \begin_layout Plain Layout
2207 /path/to/filename.html.LyXconv
2208 \end_layout
2209
2210 \end_inset
2211
2212 .
2213  
2214 \end_layout
2215
2216 \end_inset
2217
2218
2219 \end_layout
2220
2221 \begin_layout Section
2222 Converters
2223 \begin_inset CommandInset label
2224 LatexCommand label
2225 name "sec:Converters"
2226
2227 \end_inset
2228
2229
2230 \end_layout
2231
2232 \begin_layout Standard
2233 You can define your own Converters to convert files between different formats.
2234  This is done in the 
2235 \begin_inset Flex Noun
2236 status collapsed
2237
2238 \begin_layout Plain Layout
2239 Tools\SpecialChar menuseparator
2240 Preferences\SpecialChar menuseparator
2241 File Handling\SpecialChar menuseparator
2242 Converters
2243 \end_layout
2244
2245 \end_inset
2246
2247  dialog.
2248 \end_layout
2249
2250 \begin_layout Standard
2251 To define a new converter, select the 
2252 \begin_inset Flex Noun
2253 status collapsed
2254
2255 \begin_layout Plain Layout
2256 From
2257 \begin_inset space ~
2258 \end_inset
2259
2260 format
2261 \end_layout
2262
2263 \end_inset
2264
2265  and 
2266 \begin_inset Flex Noun
2267 status collapsed
2268
2269 \begin_layout Plain Layout
2270 To
2271 \begin_inset space ~
2272 \end_inset
2273
2274 format
2275 \end_layout
2276
2277 \end_inset
2278
2279  from the drop-down lists, enter the command needed for the conversion,
2280  and then press the 
2281 \begin_inset Flex Noun
2282 status collapsed
2283
2284 \begin_layout Plain Layout
2285 Add
2286 \end_layout
2287
2288 \end_inset
2289
2290  button.
2291  Several variables can be used in the definition of converters:
2292 \end_layout
2293
2294 \begin_layout Labeling
2295 \labelwidthstring 00.00.0000
2296 \begin_inset Flex Code
2297 status collapsed
2298
2299 \begin_layout Plain Layout
2300 $$s
2301 \end_layout
2302
2303 \end_inset
2304
2305  The \SpecialChar LyX
2306  system directory
2307 \end_layout
2308
2309 \begin_layout Labeling
2310 \labelwidthstring 00.00.0000
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 $$i
2316 \end_layout
2317
2318 \end_inset
2319
2320  The input file
2321 \end_layout
2322
2323 \begin_layout Labeling
2324 \labelwidthstring 00.00.0000
2325 \begin_inset Flex Code
2326 status collapsed
2327
2328 \begin_layout Plain Layout
2329 $$o
2330 \end_layout
2331
2332 \end_inset
2333
2334  The output file
2335 \end_layout
2336
2337 \begin_layout Labeling
2338 \labelwidthstring 00.00.0000
2339 \begin_inset Flex Code
2340 status collapsed
2341
2342 \begin_layout Plain Layout
2343 $$b
2344 \end_layout
2345
2346 \end_inset
2347
2348  The base filename of the input file (i.
2349 \begin_inset space \thinspace{}
2350 \end_inset
2351
2352 g., without the extension)
2353 \end_layout
2354
2355 \begin_layout Labeling
2356 \labelwidthstring 00.00.0000
2357 \begin_inset Flex Code
2358 status collapsed
2359
2360 \begin_layout Plain Layout
2361 $$p
2362 \end_layout
2363
2364 \end_inset
2365
2366  The path to the input file
2367 \end_layout
2368
2369 \begin_layout Labeling
2370 \labelwidthstring 00.00.0000
2371 \begin_inset Flex Code
2372 status collapsed
2373
2374 \begin_layout Plain Layout
2375 $$r
2376 \end_layout
2377
2378 \end_inset
2379
2380  The path to the original input file (this is different from $$p when a
2381  chain of converters is called)
2382 \end_layout
2383
2384 \begin_layout Labeling
2385 \labelwidthstring 00.00.0000
2386 \begin_inset Flex Code
2387 status collapsed
2388
2389 \begin_layout Plain Layout
2390 $$e
2391 \end_layout
2392
2393 \end_inset
2394
2395  The iconv name for the encoding of the document.
2396 \end_layout
2397
2398 \begin_layout Standard
2399 In the 
2400 \begin_inset Flex Noun
2401 status collapsed
2402
2403 \begin_layout Plain Layout
2404 Extra
2405 \begin_inset space ~
2406 \end_inset
2407
2408 Flag
2409 \end_layout
2410
2411 \end_inset
2412
2413  field you can enter the following flags, separated by commas:
2414 \end_layout
2415
2416 \begin_layout Labeling
2417 \labelwidthstring 00.00.0000
2418 \begin_inset Flex Code
2419 status collapsed
2420
2421 \begin_layout Plain Layout
2422 latex
2423 \change_inserted -712698321 1524656940
2424 =flavor
2425 \change_unchanged
2426
2427 \end_layout
2428
2429 \end_inset
2430
2431  This converter runs some form of \SpecialChar LaTeX
2432 .
2433  This will make \SpecialChar LyX
2434 's \SpecialChar LaTeX
2435  error logs available.
2436
2437 \change_inserted -712698321 1524657018
2438  The optional 
2439 \begin_inset Flex Code
2440 status open
2441
2442 \begin_layout Plain Layout
2443
2444 \change_inserted -712698321 1524657012
2445 flavor
2446 \change_unchanged
2447
2448 \end_layout
2449
2450 \end_inset
2451
2452  value specifies the form of \SpecialChar LaTeX
2453  that is run (
2454 \begin_inset Flex Code
2455 status open
2456
2457 \begin_layout Plain Layout
2458
2459 \change_inserted -712698321 1524657005
2460 latex, pdflatex, platex, xetex, luatex
2461 \change_unchanged
2462
2463 \end_layout
2464
2465 \end_inset
2466
2467 ).
2468  If no value is specified, 
2469 \begin_inset Flex Code
2470 status open
2471
2472 \begin_layout Plain Layout
2473
2474 \change_inserted -712698321 1524657018
2475 latex
2476 \change_unchanged
2477
2478 \end_layout
2479
2480 \end_inset
2481
2482  is used.
2483 \change_unchanged
2484
2485 \end_layout
2486
2487 \begin_layout Labeling
2488 \labelwidthstring 00.00.0000
2489 \begin_inset Flex Code
2490 status collapsed
2491
2492 \begin_layout Plain Layout
2493 needaux
2494 \change_inserted -712698321 1524656935
2495 =flavor
2496 \change_unchanged
2497
2498 \end_layout
2499
2500 \end_inset
2501
2502  Needs the \SpecialChar LaTeX
2503  
2504 \begin_inset Flex Noun
2505 status collapsed
2506
2507 \begin_layout Plain Layout
2508 .aux
2509 \end_layout
2510
2511 \end_inset
2512
2513  file for the conversion.
2514
2515 \change_inserted -712698321 1524657047
2516  The optional 
2517 \begin_inset Flex Code
2518 status open
2519
2520 \begin_layout Plain Layout
2521
2522 \change_inserted -712698321 1524657030
2523 flavor
2524 \end_layout
2525
2526 \end_inset
2527
2528  value specifies the form of \SpecialChar LaTeX
2529  that is run in order to generate the 
2530 \begin_inset Flex Noun
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534
2535 \change_inserted -712698321 1524657047
2536 .aux
2537 \end_layout
2538
2539 \end_inset
2540
2541  file (
2542 \begin_inset Flex Code
2543 status open
2544
2545 \begin_layout Plain Layout
2546
2547 \change_inserted -712698321 1524657030
2548 latex, pdflatex, platex, xetex, luatex
2549 \end_layout
2550
2551 \end_inset
2552
2553 ).
2554  If no value is specified, 
2555 \begin_inset Flex Code
2556 status open
2557
2558 \begin_layout Plain Layout
2559
2560 \change_inserted -712698321 1524657030
2561 latex
2562 \end_layout
2563
2564 \end_inset
2565
2566  is used.
2567 \change_unchanged
2568
2569 \end_layout
2570
2571 \begin_layout Labeling
2572 \labelwidthstring 00.00.0000
2573 \begin_inset Flex Code
2574 status collapsed
2575
2576 \begin_layout Plain Layout
2577 nice
2578 \end_layout
2579
2580 \end_inset
2581
2582  Needs a 
2583 \begin_inset Quotes eld
2584 \end_inset
2585
2586 nice
2587 \begin_inset Quotes erd
2588 \end_inset
2589
2590  file from the backend, which in practice means a \SpecialChar LaTeX
2591  file like the one we
2592  would export, without 
2593 \begin_inset Flex Code
2594 status collapsed
2595
2596 \begin_layout Plain Layout
2597 input@path
2598 \end_layout
2599
2600 \end_inset
2601
2602 .
2603 \end_layout
2604
2605 \begin_layout Labeling
2606 \labelwidthstring 00.00.0000
2607 \begin_inset Flex Code
2608 status collapsed
2609
2610 \begin_layout Plain Layout
2611 xml
2612 \end_layout
2613
2614 \end_inset
2615
2616  Output is XML.
2617 \end_layout
2618
2619 \begin_layout Standard
2620 The following three flags are not really flags at all because they take
2621  an argument in the 
2622 \begin_inset Flex Noun
2623 status collapsed
2624
2625 \begin_layout Plain Layout
2626 key
2627 \begin_inset space ~
2628 \end_inset
2629
2630 =
2631 \begin_inset space ~
2632 \end_inset
2633
2634 value
2635 \end_layout
2636
2637 \end_inset
2638
2639  format:
2640 \end_layout
2641
2642 \begin_layout Labeling
2643 \labelwidthstring 00.00.0000
2644
2645 \change_inserted -712698321 1523206314
2646 \begin_inset Flex Code
2647 status collapsed
2648
2649 \begin_layout Plain Layout
2650
2651 \change_inserted -712698321 1523206193
2652 hyperref-driver
2653 \end_layout
2654
2655 \end_inset
2656
2657  The name of the driver that needs to be loaded with the 
2658 \family sans
2659 hyperref
2660 \family default
2661  package for this converter.
2662  The loading of the correct driver is necessary to get some PDF-specific
2663  features.
2664  See the 
2665 \family sans
2666 hyperref
2667 \family default
2668  manual for details.
2669 \end_layout
2670
2671 \begin_layout Labeling
2672 \labelwidthstring 00.00.0000
2673 \begin_inset Flex Code
2674 status collapsed
2675
2676 \begin_layout Plain Layout
2677 parselog
2678 \end_layout
2679
2680 \end_inset
2681
2682  If set, the converter's standard error will be redirected to a file 
2683 \begin_inset Flex Code
2684 status collapsed
2685
2686 \begin_layout Plain Layout
2687 infile.out
2688 \end_layout
2689
2690 \end_inset
2691
2692 , and the script given as argument will be run as: 
2693 \begin_inset Flex Code
2694 status collapsed
2695
2696 \begin_layout Plain Layout
2697 script < infile.out > infile.log
2698 \end_layout
2699
2700 \end_inset
2701
2702 .
2703  The argument may contain 
2704 \begin_inset Flex Code
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708 $$s
2709 \end_layout
2710
2711 \end_inset
2712
2713 .
2714 \end_layout
2715
2716 \begin_layout Labeling
2717 \labelwidthstring 00.00.0000
2718 \begin_inset Flex Code
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722 resultdir
2723 \end_layout
2724
2725 \end_inset
2726
2727  The name of the directory in which the converter will dump the generated
2728  files.
2729  \SpecialChar LyX
2730  will not create this directory, and it does not copy anything into it,
2731  though it will copy this directory to the destination.
2732  The argument may contain 
2733 \begin_inset Flex Code
2734 status collapsed
2735
2736 \begin_layout Plain Layout
2737 $$b
2738 \end_layout
2739
2740 \end_inset
2741
2742 , which will be replaced by the base name of the input and output files,
2743  respectively, when the directory is copied.
2744 \begin_inset Newline newline
2745 \end_inset
2746
2747 Note that resultdir and usetempdir make no sense together.
2748  The latter will be ignored if the former is given.
2749 \end_layout
2750
2751 \begin_layout Labeling
2752 \labelwidthstring 00.00.0000
2753 \begin_inset Flex Code
2754 status collapsed
2755
2756 \begin_layout Plain Layout
2757 resultfile
2758 \end_layout
2759
2760 \end_inset
2761
2762  Determines the output file name and may, contain 
2763 \begin_inset Flex Code
2764 status collapsed
2765
2766 \begin_layout Plain Layout
2767 $$b
2768 \end_layout
2769
2770 \end_inset
2771
2772 .
2773  Sensible only with resultdir and optional even then; if not given, it defaults
2774  to `index'.
2775 \end_layout
2776
2777 \begin_layout Standard
2778
2779 \change_inserted -712698321 1523206384
2780 A suitable hyperref-driver is set for some converters that are installed
2781  with \SpecialChar LyX
2782 .
2783  
2784 \change_deleted -712698321 1523206388
2785 None of these
2786 \change_inserted -712698321 1523206389
2787 The
2788 \change_unchanged
2789  last three
2790 \change_inserted -712698321 1523206400
2791  flags, however,
2792 \change_unchanged
2793  are presently 
2794 \change_inserted -712698321 1523206407
2795 not 
2796 \change_unchanged
2797 used in any of the 
2798 \change_inserted -712698321 1523206437
2799 pre-installed 
2800 \change_unchanged
2801 converters
2802 \change_deleted -712698321 1523206442
2803  that are installed with \SpecialChar LyX
2804
2805 \change_unchanged
2806 .
2807  
2808 \end_layout
2809
2810 \begin_layout Standard
2811 You do not have to define converters for all formats between which you want
2812  to convert.
2813  For example, you will note that there is no `\SpecialChar LyX
2814  to PostScript' converter,
2815  but \SpecialChar LyX
2816  will export PostScript.
2817  It does so by first creating a \SpecialChar LaTeX
2818  file (no converter needs to be defined
2819  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2820  to DVI' converter,
2821  and finally converting the resulting DVI file to PostScript.
2822  \SpecialChar LyX
2823  finds such `chains' of converters automatically, and it will always choose
2824  the shortest possible chain.
2825  You can, though, still define multiple conversion methods between file
2826  formats.
2827  For example, the standard \SpecialChar LyX
2828  configuration provides five ways to convert
2829  \SpecialChar LaTeX
2830  to PDF:
2831 \end_layout
2832
2833 \begin_layout Enumerate
2834 Directly, using 
2835 \begin_inset Flex Noun
2836 status collapsed
2837
2838 \begin_layout Plain Layout
2839 pdflatex
2840 \end_layout
2841
2842 \end_inset
2843
2844
2845 \end_layout
2846
2847 \begin_layout Enumerate
2848 via (DVI and) PostScript, using 
2849 \begin_inset Flex Noun
2850 status collapsed
2851
2852 \begin_layout Plain Layout
2853 ps2pdf
2854 \end_layout
2855
2856 \end_inset
2857
2858
2859 \end_layout
2860
2861 \begin_layout Enumerate
2862 via DVI, using 
2863 \begin_inset Flex Noun
2864 status collapsed
2865
2866 \begin_layout Plain Layout
2867 dvipdfm
2868 \end_layout
2869
2870 \end_inset
2871
2872
2873 \end_layout
2874
2875 \begin_layout Enumerate
2876 directly using 
2877 \begin_inset Flex Noun
2878 status collapsed
2879
2880 \begin_layout Plain Layout
2881 Xe\SpecialChar TeX
2882
2883 \end_layout
2884
2885 \end_inset
2886
2887
2888 \end_layout
2889
2890 \begin_layout Enumerate
2891 directly using 
2892 \begin_inset Flex Noun
2893 status collapsed
2894
2895 \begin_layout Plain Layout
2896 Lua\SpecialChar TeX
2897
2898 \end_layout
2899
2900 \end_inset
2901
2902
2903 \end_layout
2904
2905 \begin_layout Standard
2906 To define such alternate chains, you must define multiple target `file formats',
2907  as described in 
2908 \begin_inset CommandInset ref
2909 LatexCommand ref
2910 reference "sec:Formats"
2911
2912 \end_inset
2913
2914 .
2915  For example, in the standard configuration, the formats named 
2916 \begin_inset Flex Noun
2917 status collapsed
2918
2919 \begin_layout Plain Layout
2920 pdf
2921 \end_layout
2922
2923 \end_inset
2924
2925  (for 
2926 \begin_inset Flex Noun
2927 status collapsed
2928
2929 \begin_layout Plain Layout
2930 ps2pdf
2931 \end_layout
2932
2933 \end_inset
2934
2935 ), 
2936 \begin_inset Flex Noun
2937 status collapsed
2938
2939 \begin_layout Plain Layout
2940 pdf2
2941 \end_layout
2942
2943 \end_inset
2944
2945  (for 
2946 \begin_inset Flex Noun
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950 pdflatex
2951 \end_layout
2952
2953 \end_inset
2954
2955 ), 
2956 \begin_inset Flex Noun
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960 pdf3
2961 \end_layout
2962
2963 \end_inset
2964
2965  (for 
2966 \begin_inset Flex Noun
2967 status collapsed
2968
2969 \begin_layout Plain Layout
2970 dvipdfm
2971 \end_layout
2972
2973 \end_inset
2974
2975 ), 
2976 \begin_inset Flex Noun
2977 status collapsed
2978
2979 \begin_layout Plain Layout
2980 pdf4
2981 \end_layout
2982
2983 \end_inset
2984
2985  (for 
2986 \begin_inset Flex Noun
2987 status collapsed
2988
2989 \begin_layout Plain Layout
2990 Xe\SpecialChar TeX
2991
2992 \end_layout
2993
2994 \end_inset
2995
2996 ), and 
2997 \begin_inset Flex Noun
2998 status collapsed
2999
3000 \begin_layout Plain Layout
3001 pdf5
3002 \end_layout
3003
3004 \end_inset
3005
3006  (for 
3007 \begin_inset Flex Noun
3008 status collapsed
3009
3010 \begin_layout Plain Layout
3011 Lua\SpecialChar TeX
3012
3013 \end_layout
3014
3015 \end_inset
3016
3017 ) are defined, all of which share the extension 
3018 \begin_inset Flex Noun
3019 status collapsed
3020
3021 \begin_layout Plain Layout
3022 .pdf
3023 \end_layout
3024
3025 \end_inset
3026
3027 , and which correspond to the conversion methods just mentioned.
3028 \end_layout
3029
3030 \begin_layout Chapter
3031 Internationalizing \SpecialChar LyX
3032
3033 \begin_inset CommandInset label
3034 LatexCommand label
3035 name "cha:Internationalizing-LyX"
3036
3037 \end_inset
3038
3039
3040 \end_layout
3041
3042 \begin_layout Standard
3043 \SpecialChar LyX
3044  supports using a translated interface.
3045  Last time we checked, \SpecialChar LyX
3046  provided text in thirty languages.
3047  The language of choice is called your 
3048 \emph on
3049 locale
3050 \emph default
3051 .
3052  (For further reading on locale settings, see also the documentation for
3053  locale that comes with your operating system.
3054  For Linux, the manual page for 
3055 \begin_inset Flex Code
3056 status collapsed
3057
3058 \begin_layout Plain Layout
3059 locale(5)
3060 \end_layout
3061
3062 \end_inset
3063
3064  could be a good place to start).
3065 \end_layout
3066
3067 \begin_layout Standard
3068 Notice that these translations will work, but do contain a few flaws.
3069  In particular, all dialogs have been designed with the English text in
3070  mind, which means that some of the translated text will be too large to
3071  fit within the space allocated.
3072  This is only a display problem and will not cause any harm.
3073  Also, you will find that some of the translations do not define shortcut
3074  keys for everything.
3075  Sometimes, there are simply not enough free letters to do it.
3076  Other times, the translator just hasn't got around to doing it yet.
3077  Our localization team, which you may wish to join,
3078 \begin_inset Foot
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 If you are a fluent speaker of a language other than English, joining these
3083  teams is a great way to give back to the \SpecialChar LyX
3084  community!
3085 \end_layout
3086
3087 \end_inset
3088
3089  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3090 .
3091 \end_layout
3092
3093 \begin_layout Section
3094 Translating \SpecialChar LyX
3095
3096 \end_layout
3097
3098 \begin_layout Subsection
3099 Translating the graphical user interface (text messages).
3100 \end_layout
3101
3102 \begin_layout Standard
3103 \SpecialChar LyX
3104  uses the GNU 
3105 \begin_inset Flex Code
3106 status collapsed
3107
3108 \begin_layout Plain Layout
3109 gettext
3110 \end_layout
3111
3112 \end_inset
3113
3114  library to handle the internationalization of the interface.
3115  To have \SpecialChar LyX
3116  speak your favorite language in all menus and dialogs, you need
3117  a 
3118 \begin_inset Flex Code
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122 po
3123 \end_layout
3124
3125 \end_inset
3126
3127 -file for that language.
3128  When this is available, you'll have to generate a 
3129 \begin_inset Flex Code
3130 status collapsed
3131
3132 \begin_layout Plain Layout
3133 mo
3134 \end_layout
3135
3136 \end_inset
3137
3138 -file from it and install the 
3139 \begin_inset Flex Code
3140 status collapsed
3141
3142 \begin_layout Plain Layout
3143 mo
3144 \end_layout
3145
3146 \end_inset
3147
3148 -file.
3149  The process of doing all of this is explained in the documentation for
3150  GNU 
3151 \begin_inset Flex Code
3152 status collapsed
3153
3154 \begin_layout Plain Layout
3155 gettext
3156 \end_layout
3157
3158 \end_inset
3159
3160 .
3161  It is possible to do this just for yourself, but if you're going to do
3162  it, you might as well share the results of your labors with the rest of
3163  the \SpecialChar LyX
3164  community.
3165  Send a message to the \SpecialChar LyX
3166  developers' list for more information about how
3167  to proceed.
3168 \end_layout
3169
3170 \begin_layout Standard
3171 In short, this is what you should do (xx denotes the language code):
3172 \end_layout
3173
3174 \begin_layout Itemize
3175 Check out the \SpecialChar LyX
3176  source code.
3177  (See the 
3178 \begin_inset CommandInset href
3179 LatexCommand href
3180 name "information on the web"
3181 target "https://www.lyx.org/HowToUseGIT"
3182 literal "false"
3183
3184 \end_inset
3185
3186 .)
3187 \end_layout
3188
3189 \begin_layout Itemize
3190 Copy the file 
3191 \begin_inset Flex Code
3192 status collapsed
3193
3194 \begin_layout Plain Layout
3195 lyx.pot
3196 \end_layout
3197
3198 \end_inset
3199
3200  to the folder of the 
3201 \begin_inset Flex Code
3202 status collapsed
3203
3204 \begin_layout Plain Layout
3205 **.po
3206 \end_layout
3207
3208 \end_inset
3209
3210  files.
3211  Then rename it to 
3212 \begin_inset Flex Code
3213 status collapsed
3214
3215 \begin_layout Plain Layout
3216 xx.po
3217 \end_layout
3218
3219 \end_inset
3220
3221 .
3222  (If 
3223 \begin_inset Flex Code
3224 status collapsed
3225
3226 \begin_layout Plain Layout
3227 lyx.pot
3228 \end_layout
3229
3230 \end_inset
3231
3232  doesn't exist anywhere, it can be remade with the console command 
3233 \begin_inset Flex Code
3234 status collapsed
3235
3236 \begin_layout Plain Layout
3237 make lyx.pot
3238 \end_layout
3239
3240 \end_inset
3241
3242  in that directory, or you can use an existing po-file for some other language
3243  as a template).
3244 \end_layout
3245
3246 \begin_layout Itemize
3247 Edit 
3248 \begin_inset Flex Code
3249 status collapsed
3250
3251 \begin_layout Plain Layout
3252 xx.po
3253 \end_layout
3254
3255 \end_inset
3256
3257 .
3258 \begin_inset Foot
3259 status collapsed
3260
3261 \begin_layout Plain Layout
3262 This is just a text file, so it can be edited in any text editor.
3263  But there are also specialized programs that support such editing, such
3264  as 
3265 \family typewriter
3266 Poedit
3267 \family default
3268  (for all platforms) or 
3269 \family typewriter
3270 KBabel
3271 \family default
3272  (for KDE).
3273  
3274 \family typewriter
3275 Emacs
3276 \family default
3277  contains a `mode' for editing 
3278 \begin_inset Flex Code
3279 status collapsed
3280
3281 \begin_layout Plain Layout
3282 po
3283 \end_layout
3284
3285 \end_inset
3286
3287  files, as well, see 
3288 \begin_inset Flex URL
3289 status open
3290
3291 \begin_layout Plain Layout
3292
3293 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3294 \end_layout
3295
3296 \end_inset
3297
3298 .
3299 \end_layout
3300
3301 \end_inset
3302
3303  For some menu- and widget-labels, there are also shortcut keys that should
3304  be translated.
3305  Those keys are marked after a `|', and should be translated according to
3306  the words and phrases of the language.
3307  You should also fill also out the information at the beginning of the new
3308  
3309 \begin_inset Flex Code
3310 status collapsed
3311
3312 \begin_layout Plain Layout
3313 po
3314 \end_layout
3315
3316 \end_inset
3317
3318 -file with your email-address, etc., so people know where to reach you with
3319  suggestions and entertaining flames.
3320 \end_layout
3321
3322 \begin_layout Standard
3323 If you are just doing this on your own, then:
3324 \end_layout
3325
3326 \begin_layout Itemize
3327 Generate 
3328 \begin_inset Flex Code
3329 status collapsed
3330
3331 \begin_layout Plain Layout
3332 xx.mo
3333 \end_layout
3334
3335 \end_inset
3336
3337 .
3338  This can be done with 
3339 \begin_inset Flex Code
3340 status collapsed
3341
3342 \begin_layout Plain Layout
3343 msgfmt -o xx.mo < xx.po
3344 \end_layout
3345
3346 \end_inset
3347
3348 .
3349 \end_layout
3350
3351 \begin_layout Itemize
3352 Copy the 
3353 \begin_inset Flex Code
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 mo
3358 \end_layout
3359
3360 \end_inset
3361
3362 -file to your locale-tree, at the correct directory for application messages
3363  for the language
3364 \series bold
3365  
3366 \series default
3367 xx, and under the name 
3368 \begin_inset Flex Code
3369 status collapsed
3370
3371 \begin_layout Plain Layout
3372 lyx.mo
3373 \end_layout
3374
3375 \end_inset
3376
3377  (e.
3378 \begin_inset space \thinspace{}
3379 \end_inset
3380
3381 g.
3382 \begin_inset space \space{}
3383 \end_inset
3384
3385
3386 \begin_inset Flex Code
3387 status collapsed
3388
3389 \begin_layout Plain Layout
3390 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3391 \end_layout
3392
3393 \end_inset
3394
3395
3396 \series bold
3397 .
3398 \end_layout
3399
3400 \begin_layout Standard
3401 As said, however, it would be best if the new 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 po
3407 \end_layout
3408
3409 \end_inset
3410
3411  file could be added to the \SpecialChar LyX
3412  distribution, so others can use it.
3413  Adding it involves making additional changes to \SpecialChar LyX
3414 .
3415  So send an email to the developers' mailing list if you're interested in
3416  doing that.
3417 \end_layout
3418
3419 \begin_layout Subsubsection
3420 Ambiguous messages
3421 \end_layout
3422
3423 \begin_layout Standard
3424 Sometimes it turns out that one English message needs to be translated into
3425  different messages in the target language.
3426  One example is the message 
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431 To
3432 \end_layout
3433
3434 \end_inset
3435
3436  which has the German translation 
3437 \lang german
3438 Nach
3439 \lang english
3440  or 
3441 \lang german
3442 Bis
3443 \lang english
3444 , depending upon exactly what the English 
3445 \begin_inset Quotes eld
3446 \end_inset
3447
3448 to
3449 \begin_inset Quotes erd
3450 \end_inset
3451
3452  means.
3453  GNU 
3454 \begin_inset Flex Code
3455 status collapsed
3456
3457 \begin_layout Plain Layout
3458 gettext
3459 \end_layout
3460
3461 \end_inset
3462
3463  does not handle such ambiguous translations.
3464  Therefore you have to add some context information to the message: Instead
3465  of 
3466 \begin_inset Flex Code
3467 status collapsed
3468
3469 \begin_layout Plain Layout
3470 To
3471 \end_layout
3472
3473 \end_inset
3474
3475  it becomes 
3476 \begin_inset Flex Code
3477 status collapsed
3478
3479 \begin_layout Plain Layout
3480 To[[as in 'From format x to format y']]
3481 \end_layout
3482
3483 \end_inset
3484
3485  and 
3486 \begin_inset Flex Code
3487 status collapsed
3488
3489 \begin_layout Plain Layout
3490 To[[as in 'From page x to page y']].
3491 \end_layout
3492
3493 \end_inset
3494
3495  Now the two occurrences of 
3496 \begin_inset Flex Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 To
3501 \end_layout
3502
3503 \end_inset
3504
3505  are different for 
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510 gettext
3511 \end_layout
3512
3513 \end_inset
3514
3515  and can be translated correctly to 
3516 \lang german
3517 Nach
3518 \lang english
3519  and 
3520 \lang german
3521 Bis
3522 \lang english
3523 , respectively.
3524 \end_layout
3525
3526 \begin_layout Standard
3527 Of course the context information needs to be stripped off the original
3528  message when no translation is used.
3529  Therefore you have to put it in double square brackets at the end of the
3530  message (see the example above).
3531  The translation mechanism of \SpecialChar LyX
3532  ensures that everything in double square
3533  brackets at the end of messages is removed before displaying the message.
3534 \end_layout
3535
3536 \begin_layout Subsection
3537 Translating the documentation.
3538 \end_layout
3539
3540 \begin_layout Standard
3541 The online documentation (in the 
3542 \begin_inset Flex Noun
3543 status collapsed
3544
3545 \begin_layout Plain Layout
3546 Help
3547 \end_layout
3548
3549 \end_inset
3550
3551 -menu) can (and should!) be translated.
3552  If there are translated versions of the documentation available
3553 \begin_inset Foot
3554 status collapsed
3555
3556 \begin_layout Plain Layout
3557 As of March 2008, at least some of the documents have been translated into
3558  fourteen languages, with the Tutorial available in a few more.
3559 \end_layout
3560
3561 \end_inset
3562
3563  and the locale is set accordingly, these will be used automagically by
3564  \SpecialChar LyX
3565 .
3566  \SpecialChar LyX
3567  looks for translated versions as 
3568 \begin_inset Flex Code
3569 status collapsed
3570
3571 \begin_layout Plain Layout
3572 LyXDir/doc/xx/DocName.lyx
3573 \end_layout
3574
3575 \end_inset
3576
3577 , where 
3578 \begin_inset Flex Code
3579 status collapsed
3580
3581 \begin_layout Plain Layout
3582 xx
3583 \end_layout
3584
3585 \end_inset
3586
3587  is the code for the language currently in use.
3588  If there are no translated documents, the default English versions will
3589  be displayed.
3590  Note that the translated versions must have the same filenames (
3591 \begin_inset Flex Code
3592 status collapsed
3593
3594 \begin_layout Plain Layout
3595 DocName
3596 \end_layout
3597
3598 \end_inset
3599
3600  above) as the original.
3601  If you feel up to translating the documentation (an excellent way to proof-read
3602  the original documentation by the way!), there are a few things you should
3603  do right away:
3604 \end_layout
3605
3606 \begin_layout Itemize
3607 Check out the documentation translation web page at 
3608 \begin_inset CommandInset href
3609 LatexCommand href
3610 name "https://www.lyx.org/Translation"
3611 target "https://www.lyx.org/Translation"
3612 literal "false"
3613
3614 \end_inset
3615
3616 .
3617  That way, you can find out which (if any) documents have already been translate
3618 d into your language.
3619  You can also find out who (if anyone) is organizing the effort to translate
3620  the documentation into your language.
3621  If no one is organizing the effort, please let us know that you're interested.
3622 \end_layout
3623
3624 \begin_layout Standard
3625 Once you get to actually translating, here's a few hints for you that may
3626  save you trouble:
3627 \end_layout
3628
3629 \begin_layout Itemize
3630 Join the documentation team! There is information on how to do that in 
3631 \begin_inset Flex Code
3632 status collapsed
3633
3634 \begin_layout Plain Layout
3635 Intro.lyx
3636 \end_layout
3637
3638 \end_inset
3639
3640  (
3641 \begin_inset Flex Noun
3642 status collapsed
3643
3644 \begin_layout Plain Layout
3645 Help\SpecialChar menuseparator
3646 Introduction
3647 \end_layout
3648
3649 \end_inset
3650
3651 ), which by the way is the first document you should translate.
3652 \end_layout
3653
3654 \begin_layout Itemize
3655 Learn the typographic conventions for the language you are translating to.
3656  Typography is an ancient art and over the centuries, a great variety of
3657  conventions have developed throughout different parts of the world.
3658  Also study the professional terminology amongst typographers in your country.
3659  Inventing your own terminology will only confuse the users.
3660  
3661 \emph on
3662 (Warning! Typography is addictive!)
3663 \end_layout
3664
3665 \begin_layout Itemize
3666 Make a copy of the document.
3667  This will be your working copy.
3668  You can use this as your personal translated help-file by placing it in
3669  your 
3670 \begin_inset Flex Code
3671 status collapsed
3672
3673 \begin_layout Plain Layout
3674 UserDir/doc/xx/
3675 \end_layout
3676
3677 \end_inset
3678
3679  directory.
3680 \begin_inset Note Greyedout
3681 status open
3682
3683 \begin_layout Plain Layout
3684
3685 \series bold
3686 Note:
3687 \series default
3688  For a complex document with external material (images, etc.), if you make
3689  a copy e.
3690 \begin_inset space \thinspace{}
3691 \end_inset
3692
3693 g.
3694 \begin_inset space \space{}
3695 \end_inset
3696
3697 in a temp dir, beware that the links to external material may be broken
3698  when the document is moved to a different place.
3699  The best way is to retrieve the \SpecialChar LyX
3700  tree from git (see 
3701 \begin_inset Flex URL
3702 status collapsed
3703
3704 \begin_layout Plain Layout
3705
3706 https://www.lyx.org/HowToUseGIT
3707 \end_layout
3708
3709 \end_inset
3710
3711 ) and to edit the doc file in place.
3712 \end_layout
3713
3714 \end_inset
3715
3716
3717 \end_layout
3718
3719 \begin_layout Itemize
3720 Sometimes the original document (from the \SpecialChar LyX
3721  team) will be updated.
3722  Use the source viewer at 
3723 \begin_inset CommandInset href
3724 LatexCommand href
3725 name "https://www.lyx.org/trac/timeline"
3726 target "https://www.lyx.org/trac/timeline"
3727 literal "false"
3728
3729 \end_inset
3730
3731  to see what has been changed.
3732  That way you can easily see which parts of the translated document need
3733  to be updated.
3734 \end_layout
3735
3736 \begin_layout Standard
3737 If you ever find an error in the original document, fix it and notify the
3738  rest of the documentation team of the changes! (You didn't forget to join
3739  the documentation team, did you?)
3740 \end_layout
3741
3742 \begin_layout Standard
3743 \begin_inset Branch OutDated
3744 inverted 0
3745 status collapsed
3746
3747 \begin_layout Section
3748 International Keyboard Support
3749 \end_layout
3750
3751 \begin_layout Standard
3752
3753 \emph on
3754 [Editor's Note: The following section is by
3755 \emph default
3756  
3757 \shape smallcaps
3758 \emph on
3759 Ivan Schreter
3760 \shape default
3761 .
3762  It needs to be fixed to conform to the new Documentation Style sheet and
3763  to make use of the new v1.0 features.
3764  The whole thing also needs to be merged with the section following it.-jw
3765  It may also be badly out of date.-rh (2008)]
3766 \end_layout
3767
3768 \begin_layout Subsection
3769 Defining Own Keymaps: Keymap File Format
3770 \end_layout
3771
3772 \begin_layout Standard
3773 Let's look at a keyboard definition file a little closer.
3774  It is a plain text file defining
3775 \end_layout
3776
3777 \begin_layout Itemize
3778 key-to-key or key-to-string translations
3779 \end_layout
3780
3781 \begin_layout Itemize
3782 dead keys
3783 \end_layout
3784
3785 \begin_layout Itemize
3786 dead keys exceptions
3787 \end_layout
3788
3789 \begin_layout Standard
3790 To define key-to-key or key-to-string translation, use this command:
3791 \end_layout
3792
3793 \begin_layout Quotation
3794 \begin_inset Flex Code
3795 status collapsed
3796
3797 \begin_layout Plain Layout
3798
3799 \backslash
3800 kmap
3801 \end_layout
3802
3803 \end_inset
3804
3805  
3806 \begin_inset Flex Code
3807 status collapsed
3808
3809 \begin_layout Plain Layout
3810 key
3811 \end_layout
3812
3813 \end_inset
3814
3815  outstring 
3816 \end_layout
3817
3818 \begin_layout Standard
3819 where 
3820 \begin_inset Flex Code
3821 status collapsed
3822
3823 \begin_layout Plain Layout
3824 key
3825 \end_layout
3826
3827 \end_inset
3828
3829  is the key to be translated and 
3830 \begin_inset Flex Code
3831 status collapsed
3832
3833 \begin_layout Plain Layout
3834 outstring
3835 \end_layout
3836
3837 \end_inset
3838
3839  is the string to be inserted into the document.
3840  To define dead keys, use:
3841 \end_layout
3842
3843 \begin_layout Quotation
3844 \begin_inset Flex Code
3845 status collapsed
3846
3847 \begin_layout Plain Layout
3848
3849 \backslash
3850 kmod
3851 \end_layout
3852
3853 \end_inset
3854
3855  
3856 \begin_inset Flex Code
3857 status collapsed
3858
3859 \begin_layout Plain Layout
3860 key
3861 \end_layout
3862
3863 \end_inset
3864
3865  deadkey
3866 \end_layout
3867
3868 \begin_layout Standard
3869 where 
3870 \begin_inset Flex Code
3871 status collapsed
3872
3873 \begin_layout Plain Layout
3874 key
3875 \end_layout
3876
3877 \end_inset
3878
3879  is a keyboard key and 
3880 \begin_inset Flex Code
3881 status collapsed
3882
3883 \begin_layout Plain Layout
3884 deadkey
3885 \end_layout
3886
3887 \end_inset
3888
3889  is dead key name.
3890  The following dead keys are supported (shortcut name is in parentheses):
3891 \end_layout
3892
3893 \begin_layout Quotation
3894
3895 \emph on
3896 Name
3897 \begin_inset space \hfill{}
3898 \end_inset
3899
3900 Example
3901 \end_layout
3902
3903 \begin_layout Quotation
3904 acute (acu)
3905 \begin_inset space \hfill{}
3906 \end_inset
3907
3908 áéíóú
3909 \end_layout
3910
3911 \begin_layout Quotation
3912 grave (gra)
3913 \begin_inset space \hfill{}
3914 \end_inset
3915
3916 àèìòù
3917 \end_layout
3918
3919 \begin_layout Quotation
3920 macron (mac)
3921 \begin_inset space \hfill{}
3922 \end_inset
3923
3924  ō
3925 \end_layout
3926
3927 \begin_layout Quotation
3928 tilde (til)
3929 \begin_inset space \hfill{}
3930 \end_inset
3931
3932 ñÑ
3933 \end_layout
3934
3935 \begin_layout Quotation
3936 underbar (underb)
3937 \begin_inset space \hfill{}
3938 \end_inset
3939
3940
3941 \begin_inset ERT
3942 status open
3943
3944 \begin_layout Plain Layout
3945
3946
3947 \backslash
3948 b o
3949 \end_layout
3950
3951 \end_inset
3952
3953
3954 \end_layout
3955
3956 \begin_layout Quotation
3957 cedilla (ced)
3958 \begin_inset space \hfill{}
3959 \end_inset
3960
3961 çÇ
3962 \end_layout
3963
3964 \begin_layout Quotation
3965 underdot (underd)
3966 \begin_inset space \hfill{}
3967 \end_inset
3968
3969
3970 \begin_inset ERT
3971 status open
3972
3973 \begin_layout Plain Layout
3974
3975
3976 \backslash
3977 d o
3978 \end_layout
3979
3980 \end_inset
3981
3982
3983 \end_layout
3984
3985 \begin_layout Quotation
3986 circumflex (circu)
3987 \begin_inset space \hfill{}
3988 \end_inset
3989
3990 âêîôû
3991 \end_layout
3992
3993 \begin_layout Quotation
3994 circle (circl)
3995 \begin_inset space \hfill{}
3996 \end_inset
3997
3998 ÅůŮ
3999 \end_layout
4000
4001 \begin_layout Quotation
4002 tie (tie)
4003 \begin_inset space \hfill{}
4004 \end_inset
4005
4006
4007 \begin_inset ERT
4008 status open
4009
4010 \begin_layout Plain Layout
4011
4012
4013 \backslash
4014 t o
4015 \end_layout
4016
4017 \end_inset
4018
4019
4020 \end_layout
4021
4022 \begin_layout Quotation
4023 breve (bre)
4024 \begin_inset space \hfill{}
4025 \end_inset
4026
4027 ă
4028 \begin_inset ERT
4029 status open
4030
4031 \begin_layout Plain Layout
4032
4033
4034 \backslash
4035 u o
4036 \end_layout
4037
4038 \end_inset
4039
4040
4041 \end_layout
4042
4043 \begin_layout Quotation
4044 caron (car)
4045 \begin_inset space \hfill{}
4046 \end_inset
4047
4048 čšž
4049 \end_layout
4050
4051 \begin_layout Quotation
4052 hungarian umlaut (hug)
4053 \begin_inset space \hfill{}
4054 \end_inset
4055
4056 őű
4057 \end_layout
4058
4059 \begin_layout Quotation
4060 umlaut (uml)
4061 \begin_inset space \hfill{}
4062 \end_inset
4063
4064 äöü
4065 \end_layout
4066
4067 \begin_layout Quotation
4068 dot (dot)
4069 \begin_inset space \hfill{}
4070 \end_inset
4071
4072 ż
4073 \begin_inset ERT
4074 status open
4075
4076 \begin_layout Plain Layout
4077
4078
4079 \backslash
4080 .s
4081 \end_layout
4082
4083 \end_inset
4084
4085
4086 \end_layout
4087
4088 \begin_layout Standard
4089 Since in many international keyboards there are exceptions to what some
4090  dead keys should do, you can define them using
4091 \end_layout
4092
4093 \begin_layout Quotation
4094 \begin_inset Flex Code
4095 status collapsed
4096
4097 \begin_layout Plain Layout
4098
4099 \backslash
4100 kxmod
4101 \end_layout
4102
4103 \end_inset
4104
4105  deadkey key outstring
4106 \end_layout
4107
4108 \begin_layout Standard
4109 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4110 , so you put in
4111 \end_layout
4112
4113 \begin_layout Quotation
4114 \begin_inset Flex Code
4115 status collapsed
4116
4117 \begin_layout Plain Layout
4118
4119 \backslash
4120 kxmod
4121 \end_layout
4122
4123 \end_inset
4124
4125  caron o "
4126 \backslash
4127 ^o"
4128 \end_layout
4129
4130 \begin_layout Standard
4131 to make it work correctly.
4132  Also, you have to define as exceptions dead keys over i and j, to remove
4133  the dot from them before inserting an accent mark.
4134  I will change this when the time comes, but so far I haven't had time.
4135 \end_layout
4136
4137 \begin_layout Standard
4138 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4139  double backslash.
4140  Also, quotes and 
4141 \begin_inset Flex Code
4142 status collapsed
4143
4144 \begin_layout Plain Layout
4145 #
4146 \end_layout
4147
4148 \end_inset
4149
4150  have different meaning.
4151  
4152 \begin_inset Flex Code
4153 status collapsed
4154
4155 \begin_layout Plain Layout
4156 #
4157 \end_layout
4158
4159 \end_inset
4160
4161  marks comments, quotes start and end \SpecialChar LaTeX
4162 -style commands.
4163  To enter quote, you'll need to use 
4164 \begin_inset Flex Code
4165 status collapsed
4166
4167 \begin_layout Plain Layout
4168
4169 \backslash
4170 "
4171 \end_layout
4172
4173 \end_inset
4174
4175 , to enter 
4176 \begin_inset Flex Code
4177 status collapsed
4178
4179 \begin_layout Plain Layout
4180 #
4181 \end_layout
4182
4183 \end_inset
4184
4185 , use 
4186 \begin_inset Flex Code
4187 status collapsed
4188
4189 \begin_layout Plain Layout
4190
4191 \backslash
4192 #
4193 \end_layout
4194
4195 \end_inset
4196
4197 .
4198 \end_layout
4199
4200 \begin_layout Standard
4201 If you make a keyboard description file that works for your language, please
4202  mail it to me, so I can include it in the next keymap distribution.
4203 \end_layout
4204
4205 \begin_layout Standard
4206 More keywords will be supported in keymap configuration file in future,
4207  like
4208 \end_layout
4209
4210 \begin_layout Itemize
4211 \begin_inset Flex Code
4212 status collapsed
4213
4214 \begin_layout Plain Layout
4215
4216 \backslash
4217 kinclude filename
4218 \end_layout
4219
4220 \end_inset
4221
4222
4223 \emph on
4224
4225 \begin_inset space \hfill{}
4226 \end_inset
4227
4228
4229 \begin_inset Flex Code
4230 status collapsed
4231
4232 \begin_layout Plain Layout
4233 include
4234 \end_layout
4235
4236 \end_inset
4237
4238  another file
4239 \end_layout
4240
4241 \begin_layout Itemize
4242 \begin_inset Flex Code
4243 status collapsed
4244
4245 \begin_layout Plain Layout
4246
4247 \backslash
4248 kprog program
4249 \end_layout
4250
4251 \end_inset
4252
4253
4254 \emph on
4255
4256 \begin_inset space \hfill{}
4257 \end_inset
4258
4259
4260 \begin_inset Flex Code
4261 status collapsed
4262
4263 \begin_layout Plain Layout
4264 define
4265 \end_layout
4266
4267 \end_inset
4268
4269  an external keymap translation program 
4270 \end_layout
4271
4272 \begin_layout Standard
4273 Also, it should look into 
4274 \begin_inset Flex Code
4275 status collapsed
4276
4277 \begin_layout Plain Layout
4278 lyxrc
4279 \end_layout
4280
4281 \end_inset
4282
4283  file for defaults, too (for example, a 
4284 \begin_inset Flex Code
4285 status collapsed
4286
4287 \begin_layout Plain Layout
4288
4289 \backslash
4290 kinclude
4291 \end_layout
4292
4293 \end_inset
4294
4295  option to include default keyboard).
4296 \end_layout
4297
4298 \end_inset
4299
4300
4301 \end_layout
4302
4303 \begin_layout Section
4304 International Keymap Stuff
4305 \begin_inset CommandInset label
4306 LatexCommand label
4307 name "sec:International-Keymap-Stuff"
4308
4309 \end_inset
4310
4311
4312 \end_layout
4313
4314 \begin_layout Standard
4315 \begin_inset Note Note
4316 status open
4317
4318 \begin_layout Plain Layout
4319 In doing the revisions on this document in March 2008, I did not look over
4320  this stuff, as I do not understand it.
4321  It would be good if someone else could do so.
4322  (RH)
4323 \end_layout
4324
4325 \end_inset
4326
4327
4328 \end_layout
4329
4330 \begin_layout Standard
4331 The next two sections describe the 
4332 \begin_inset Flex Code
4333 status collapsed
4334
4335 \begin_layout Plain Layout
4336
4337 \shape up
4338 .kmap
4339 \end_layout
4340
4341 \end_inset
4342
4343  and 
4344 \begin_inset Flex Code
4345 status collapsed
4346
4347 \begin_layout Plain Layout
4348
4349 \shape up
4350 .cdef
4351 \end_layout
4352
4353 \end_inset
4354
4355  file syntax in detail.
4356  These sections should help you design your own key map if the ones provided
4357  do not meet your needs.
4358 \end_layout
4359
4360 \begin_layout Subsection
4361 The .kmap File
4362 \end_layout
4363
4364 \begin_layout Standard
4365
4366 \shape up
4367 .
4368 \begin_inset Flex Code
4369 status collapsed
4370
4371 \begin_layout Plain Layout
4372 kmap
4373 \end_layout
4374
4375 \end_inset
4376
4377  file maps keystrokes to characters or strings.
4378  As the name suggests, it sets a keyboard mapping.
4379  The 
4380 \begin_inset Flex Code
4381 status collapsed
4382
4383 \begin_layout Plain Layout
4384 .kmap
4385 \end_layout
4386
4387 \end_inset
4388
4389
4390 \shape default
4391  file keywords 
4392 \shape up
4393
4394 \begin_inset Flex Code
4395 status collapsed
4396
4397 \begin_layout Plain Layout
4398
4399 \shape up
4400 kmap
4401 \end_layout
4402
4403 \end_inset
4404
4405
4406 \shape default
4407 ,
4408 \shape up
4409  
4410 \shape default
4411
4412 \begin_inset Flex Code
4413 status collapsed
4414
4415 \begin_layout Plain Layout
4416
4417 \shape up
4418 kmod
4419 \end_layout
4420
4421 \end_inset
4422
4423 ,
4424 \shape up
4425  
4426 \shape default
4427
4428 \begin_inset Flex Code
4429 status collapsed
4430
4431 \begin_layout Plain Layout
4432
4433 \shape up
4434 kxmod
4435 \end_layout
4436
4437 \end_inset
4438
4439 , and 
4440 \begin_inset Flex Code
4441 status collapsed
4442
4443 \begin_layout Plain Layout
4444
4445 \shape up
4446 kcomb
4447 \end_layout
4448
4449 \end_inset
4450
4451  are described in this section.
4452 \end_layout
4453
4454 \begin_layout Labeling
4455 \labelwidthstring 00.00.0000
4456 \begin_inset Flex Code
4457 status collapsed
4458
4459 \begin_layout Plain Layout
4460
4461 \shape up
4462 kmap
4463 \end_layout
4464
4465 \end_inset
4466
4467  Map a character to a string
4468 \end_layout
4469
4470 \begin_layout LyX-Code
4471
4472 \backslash
4473 kmap 
4474 \family roman
4475 \emph on
4476 char
4477 \family default
4478 \emph default
4479  
4480 \family roman
4481 \emph on
4482 string
4483 \end_layout
4484
4485 \begin_layout Standard
4486 This will ma
4487 \family roman
4488 p
4489 \family default
4490  
4491 \family roman
4492 \emph on
4493 char
4494 \family default
4495 \emph default
4496  
4497 \family roman
4498 to
4499 \family default
4500  
4501 \family roman
4502 \emph on
4503 string
4504 \emph default
4505 .
4506  Note that in
4507 \family default
4508  
4509 \family roman
4510 \emph on
4511 string
4512 \emph default
4513 ,
4514 \family default
4515  
4516 \family roman
4517 \shape up
4518 the double-quote (")
4519 \family default
4520 \shape default
4521  
4522 \family roman
4523 and
4524 \family default
4525  
4526 \family roman
4527 \shape up
4528 the backslash (
4529 \backslash
4530 )
4531 \family default
4532 \shape default
4533  
4534 \family roman
4535 must be escaped with a preceding backslash (
4536 \shape up
4537
4538 \backslash
4539
4540 \shape default
4541 )
4542 \family default
4543 .
4544 \end_layout
4545
4546 \begin_layout Standard
4547 An example of a 
4548 \begin_inset Flex Noun
4549 status collapsed
4550
4551 \begin_layout Plain Layout
4552
4553 \shape up
4554 kmap
4555 \end_layout
4556
4557 \end_inset
4558
4559  statement to cause the symbol 
4560 \begin_inset Flex Noun
4561 status collapsed
4562
4563 \begin_layout Plain Layout
4564
4565 \shape up
4566 /
4567 \end_layout
4568
4569 \end_inset
4570
4571  to be output for the keystroke 
4572 \begin_inset Flex Noun
4573 status collapsed
4574
4575 \begin_layout Plain Layout
4576
4577 \shape up
4578 &
4579 \end_layout
4580
4581 \end_inset
4582
4583  is:
4584 \end_layout
4585
4586 \begin_layout LyX-Code
4587
4588 \backslash
4589 kmap & /
4590 \end_layout
4591
4592 \begin_layout Labeling
4593 \labelwidthstring 00.00.0000
4594 \begin_inset Flex Code
4595 status collapsed
4596
4597 \begin_layout Plain Layout
4598
4599 \shape up
4600 kmod
4601 \end_layout
4602
4603 \end_inset
4604
4605  Specify an accent character
4606 \end_layout
4607
4608 \begin_layout LyX-Code
4609
4610 \backslash
4611 kmod 
4612 \family roman
4613 \emph on
4614 char accent allowed
4615 \end_layout
4616
4617 \begin_layout Standard
4618 This will make the cha
4619 \family roman
4620 racter
4621 \family default
4622  
4623 \family roman
4624 \emph on
4625 char
4626 \family default
4627 \emph default
4628  
4629 \family roman
4630 \shape up
4631 \emph on
4632 be an accent
4633 \family default
4634 \shape default
4635 \emph default
4636  
4637 \family roman
4638 \shape up
4639 on the
4640 \family default
4641 \shape default
4642  
4643 \family roman
4644 \shape up
4645 \emph on
4646 allowed
4647 \family default
4648 \shape default
4649 \emph default
4650  
4651 \family roman
4652 \shape up
4653 cha
4654 \family default
4655 racter(s).
4656  This is the dead key
4657 \begin_inset Foot
4658 status collapsed
4659
4660 \begin_layout Plain Layout
4661 The term 
4662 \family roman
4663 \emph on
4664 dead key
4665 \family default
4666 \emph default
4667  refers to a key that does not produce a character by itself, but when followed
4668  with another key, produces the desired accent character.
4669  For example, a German characte
4670 \family roman
4671 r with an umlaut like
4672 \family default
4673  
4674 \family roman
4675 \emph on
4676 ä
4677 \family default
4678 \emph default
4679  
4680 \family roman
4681 can be produced in this manner.
4682 \end_layout
4683
4684 \end_inset
4685
4686  mechanism.
4687  
4688 \end_layout
4689
4690 \begin_layout Standard
4691 If you 
4692 \family roman
4693 hit
4694 \family default
4695  
4696 \family roman
4697 \emph on
4698 char
4699 \family default
4700 \emph default
4701  
4702 \family roman
4703 and then another key not in
4704 \family default
4705  
4706 \family roman
4707 \emph on
4708 allowed
4709 \emph default
4710 , you will get a
4711 \family default
4712  
4713 \family roman
4714 \emph on
4715 char
4716 \family default
4717 \emph default
4718  
4719 \family roman
4720 followed by the other, not allowed key, as output.
4721
4722 \family default
4723  Note that a 
4724 \begin_inset Flex Noun
4725 status collapsed
4726
4727 \begin_layout Plain Layout
4728
4729 \shape up
4730 Backspace
4731 \end_layout
4732
4733 \end_inset
4734
4735  cancels a dead key, so if 
4736 \family roman
4737 you hit
4738 \family default
4739  
4740 \family roman
4741 \emph on
4742 char
4743 \family default
4744 \emph default
4745  
4746 \begin_inset Flex Noun
4747 status collapsed
4748
4749 \begin_layout Plain Layout
4750
4751 \shape up
4752 \emph on
4753 Backspace
4754 \end_layout
4755
4756 \end_inset
4757
4758 , the cursor will not go one position backwards but will instead cancel
4759  the effect t
4760 \family roman
4761 hat
4762 \family default
4763  
4764 \family roman
4765 \shape up
4766 \emph on
4767 char
4768 \family default
4769 \shape default
4770 \emph default
4771  
4772 \family roman
4773 \shape up
4774 might have had on the next keystroke.
4775  
4776 \end_layout
4777
4778 \begin_layout Standard
4779 The following example specifies that the character ' is to be an acute accent,
4780  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4781 \end_layout
4782
4783 \begin_layout LyX-Code
4784
4785 \backslash
4786 kmod ' acute aeiouAEIOU
4787 \end_layout
4788
4789 \begin_layout Labeling
4790 \labelwidthstring 00.00.0000
4791 \begin_inset Flex Code
4792 status collapsed
4793
4794 \begin_layout Plain Layout
4795 kxmod
4796 \end_layout
4797
4798 \end_inset
4799
4800  Specify an exception to the accent character
4801 \end_layout
4802
4803 \begin_layout LyX-Code
4804
4805 \backslash
4806 kxmod  
4807 \family roman
4808 \emph on
4809 accent char result
4810 \end_layout
4811
4812 \begin_layout Standard
4813 This defines an exce
4814 \family roman
4815 ption for
4816 \family default
4817  
4818 \family roman
4819 \emph on
4820 accent
4821 \family default
4822 \emph default
4823  
4824 \family roman
4825 on
4826 \family default
4827  
4828 \family roman
4829 \emph on
4830 char
4831 \emph default
4832 .
4833  T
4834 \shape up
4835 he
4836 \family default
4837 \shape default
4838  
4839 \family roman
4840 \shape up
4841 \emph on
4842 accent
4843 \family default
4844 \shape default
4845 \emph default
4846  
4847 \family roman
4848 \shape up
4849 must
4850 \family default
4851 \shape default
4852  
4853 \shape up
4854 have been assigned a keystroke with a previous
4855 \shape default
4856  
4857 \begin_inset Flex Code
4858 status collapsed
4859
4860 \begin_layout Plain Layout
4861
4862 \shape up
4863
4864 \backslash
4865 kmo
4866 \shape default
4867 d
4868 \end_layout
4869
4870 \end_inset
4871
4872  declar
4873 \family roman
4874 ation and
4875 \family default
4876  
4877 \family roman
4878 \emph on
4879 char
4880 \family default
4881 \emph default
4882  
4883 \family roman
4884 must not belong in the
4885 \family default
4886  
4887 \family roman
4888 \emph on
4889 allowed
4890 \family default
4891 \emph default
4892  
4893 \family roman
4894 set of
4895 \family default
4896  
4897 \family roman
4898 \emph on
4899 accent
4900 \emph default
4901 .
4902  When
4903 \family default
4904  
4905 \family roman
4906 \shape up
4907 you enter the
4908 \family default
4909 \shape default
4910  
4911 \family roman
4912 \shape up
4913 \emph on
4914 accent char
4915 \family default
4916 \shape default
4917 \emph default
4918  
4919 \family roman
4920 \shape up
4921 sequence,
4922 \family default
4923 \shape default
4924  
4925 \family roman
4926 \shape up
4927 \emph on
4928 result
4929 \emph default
4930  is produced.
4931  If such a declaration does not exist in
4932 \family default
4933 \shape default
4934  
4935 \shape up
4936 the
4937 \shape default
4938  
4939 \begin_inset Flex Code
4940 status collapsed
4941
4942 \begin_layout Plain Layout
4943
4944 \shape up
4945 .kmap
4946 \end_layout
4947
4948 \end_inset
4949
4950  file and yo
4951 \family roman
4952 u enter
4953 \family default
4954  
4955 \family roman
4956 \emph on
4957 accent char
4958 \emph default
4959 , you get
4960 \family default
4961  
4962 \family roman
4963 \emph on
4964 accent_key char
4965 \emph default
4966  where
4967 \family default
4968  
4969 \family roman
4970 \emph on
4971 accent_key
4972 \emph default
4973  is the first arg
4974 \family default
4975 ument of the 
4976 \begin_inset Flex Code
4977 status collapsed
4978
4979 \begin_layout Plain Layout
4980
4981 \shape up
4982
4983 \backslash
4984 kmod
4985 \end_layout
4986
4987 \end_inset
4988
4989  declaration.
4990  
4991 \end_layout
4992
4993 \begin_layout Standard
4994 The following command produces causes äi to be produced when you enter acute-i
4995  ('i):
4996 \end_layout
4997
4998 \begin_layout LyX-Code
4999
5000 \backslash
5001 kxmod acute i "
5002 \backslash
5003
5004 \backslash
5005 '{
5006 \backslash
5007
5008 \backslash
5009 i}"
5010 \end_layout
5011
5012 \begin_layout Labeling
5013 \labelwidthstring 00.00.0000
5014 \begin_inset Flex Code
5015 status collapsed
5016
5017 \begin_layout Plain Layout
5018 kcomb
5019 \end_layout
5020
5021 \end_inset
5022
5023  Combine two accent characters
5024 \end_layout
5025
5026 \begin_layout LyX-Code
5027
5028 \backslash
5029 kcomb 
5030 \family roman
5031 \emph on
5032 accent1 accent2 allowed
5033 \end_layout
5034
5035 \begin_layout Standard
5036 This one is getting pretty esoteric.
5037  It allows you to combine the effect 
5038 \family roman
5039 of
5040 \family default
5041  
5042 \family roman
5043 \emph on
5044 accent1
5045 \family default
5046 \emph default
5047  
5048 \family roman
5049 and
5050 \family default
5051  
5052 \family roman
5053 \emph on
5054 accent2
5055 \family default
5056 \emph default
5057  
5058 \family roman
5059 (in that order!) on
5060 \family default
5061  
5062 \family roman
5063 \emph on
5064 allowed
5065 \family default
5066 \emph default
5067  
5068 \family roman
5069 chars.
5070  The keystrokes for
5071 \family default
5072  
5073 \family roman
5074 \emph on
5075 accent1
5076 \family default
5077 \emph default
5078  
5079 \family roman
5080 and
5081 \family default
5082  
5083 \family roman
5084 \emph on
5085 accent2
5086 \family default
5087 \emph default
5088  
5089 \family roman
5090 must have be
5091 \family default
5092 en set with a 
5093 \begin_inset Flex Code
5094 status collapsed
5095
5096 \begin_layout Plain Layout
5097
5098 \shape up
5099
5100 \backslash
5101 kmod
5102 \end_layout
5103
5104 \end_inset
5105
5106  command at 
5107 \family roman
5108 a
5109 \family default
5110  
5111 \family roman
5112 \emph on
5113 previous
5114 \family default
5115 \emph default
5116  
5117 \family roman
5118 point in the
5119 \family default
5120  file.
5121  
5122 \end_layout
5123
5124 \begin_layout Standard
5125 Consider this example from the 
5126 \begin_inset Flex Code
5127 status collapsed
5128
5129 \begin_layout Plain Layout
5130
5131 \shape up
5132 greek.kmap
5133 \end_layout
5134
5135 \end_inset
5136
5137  file:
5138 \end_layout
5139
5140 \begin_layout LyX-Code
5141
5142 \backslash
5143 kmod ; acute aeioyvhAEIOYVH 
5144 \backslash
5145 kmod : umlaut iyIY 
5146 \backslash
5147 kcomb acute umlaut iyIY
5148 \end_layout
5149
5150 \begin_layout Standard
5151 This allows you to press 
5152 \begin_inset Flex Noun
5153 status collapsed
5154
5155 \begin_layout Plain Layout
5156
5157 \shape up
5158 ;:i
5159 \end_layout
5160
5161 \end_inset
5162
5163  and get the effect of 
5164 \begin_inset Flex Code
5165 status collapsed
5166
5167 \begin_layout Plain Layout
5168
5169 \shape up
5170
5171 \backslash
5172 '{
5173 \backslash
5174 "{i}}
5175 \end_layout
5176
5177 \end_inset
5178
5179 .
5180  
5181 \family roman
5182 \shape up
5183 A backspace
5184 \family default
5185 \shape default
5186  in this case cancels the last dead key, so if you press 
5187 \begin_inset Flex Noun
5188 status collapsed
5189
5190 \begin_layout Plain Layout
5191
5192 \shape up
5193 ;: Backspace i
5194 \end_layout
5195
5196 \end_inset
5197
5198  you get 
5199 \begin_inset Flex Code
5200 status collapsed
5201
5202 \begin_layout Plain Layout
5203
5204 \shape up
5205
5206 \backslash
5207 '{i}
5208 \end_layout
5209
5210 \end_inset
5211
5212 .
5213 \end_layout
5214
5215 \begin_layout Subsection
5216 The .cdef File
5217 \end_layout
5218
5219 \begin_layout Standard
5220 After the 
5221 \begin_inset Flex Code
5222 status collapsed
5223
5224 \begin_layout Plain Layout
5225
5226 \shape up
5227 .kmap
5228 \end_layout
5229
5230 \end_inset
5231
5232  mapping is performed, a 
5233 \begin_inset Flex Code
5234 status collapsed
5235
5236 \begin_layout Plain Layout
5237
5238 \shape up
5239 .cde
5240 \shape default
5241 f
5242 \end_layout
5243
5244 \end_inset
5245
5246  file maps the strings that the symbols generate to characters in the current
5247  font.
5248  The \SpecialChar LyX
5249  distribution currently includes at least the 
5250 \begin_inset Flex Code
5251 status collapsed
5252
5253 \begin_layout Plain Layout
5254
5255 \shape up
5256 iso8859-1.cdef
5257 \end_layout
5258
5259 \end_inset
5260
5261  and 
5262 \begin_inset Flex Code
5263 status collapsed
5264
5265 \begin_layout Plain Layout
5266
5267 \shape up
5268 iso8859-2.cdef
5269 \end_layout
5270
5271 \end_inset
5272
5273  files.
5274 \end_layout
5275
5276 \begin_layout Standard
5277 In general the 
5278 \begin_inset Flex Code
5279 status collapsed
5280
5281 \begin_layout Plain Layout
5282
5283 \shape up
5284 .cdef
5285 \end_layout
5286
5287 \end_inset
5288
5289  file is a sequence of declarations of the form
5290 \end_layout
5291
5292 \begin_layout LyX-Code
5293
5294 \family roman
5295 \emph on
5296 char_index_in_set
5297 \family default
5298 \emph default
5299  
5300 \family roman
5301 \emph on
5302  string
5303 \end_layout
5304
5305 \begin_layout Standard
5306 For example, in order to map 
5307 \begin_inset Flex Noun
5308 status collapsed
5309
5310 \begin_layout Plain Layout
5311
5312 \shape up
5313
5314 \backslash
5315 '{e}
5316 \end_layout
5317
5318 \end_inset
5319
5320  to the corresponding character in the iso-8859-1 set (233), the following
5321  declaration is used
5322 \end_layout
5323
5324 \begin_layout LyX-Code
5325 233 "
5326 \backslash
5327
5328 \backslash
5329 '{e}"
5330 \end_layout
5331
5332 \begin_layout Standard
5333 with 
5334 \begin_inset Flex Code
5335 status collapsed
5336
5337 \begin_layout Plain Layout
5338
5339 \backslash
5340
5341 \end_layout
5342
5343 \end_inset
5344
5345  and 
5346 \begin_inset Flex Code
5347 status collapsed
5348
5349 \begin_layout Plain Layout
5350 "
5351 \end_layout
5352
5353 \end_inset
5354
5355  being escap
5356 \family roman
5357 ed in
5358 \family default
5359  
5360 \family roman
5361 \emph on
5362 string
5363 \emph default
5364 .
5365  Note that
5366 \family default
5367  the same character can apply to more than one string.
5368  In the 
5369 \begin_inset Flex Code
5370 status collapsed
5371
5372 \begin_layout Plain Layout
5373 i
5374 \shape up
5375 so-8859-7.cdef
5376 \end_layout
5377
5378 \end_inset
5379
5380  file you have
5381 \end_layout
5382
5383 \begin_layout LyX-Code
5384 192 "
5385 \backslash
5386
5387 \backslash
5388 '{
5389 \backslash
5390
5391 \backslash
5392
5393 \backslash
5394 "{i}}"
5395 \begin_inset Newline newline
5396 \end_inset
5397
5398 192 "
5399 \backslash
5400
5401 \backslash
5402
5403 \backslash
5404 "{
5405 \backslash
5406
5407 \backslash
5408 '{i}}"
5409 \end_layout
5410
5411 \begin_layout Standard
5412 If \SpecialChar LyX
5413  cannot find a mapping for the string produced by the keystroke or a
5414  deadkey sequence, it will check if it looks like an accented char and try
5415  to draw an accent over the character on screen.
5416 \end_layout
5417
5418 \begin_layout Subsection
5419 Dead Keys
5420 \end_layout
5421
5422 \begin_layout Standard
5423 There is a second way to add support for international characters through
5424  so-called dead-keys.
5425  A dead-key works in combination with a letter to produce an accented character.
5426  Here, we'll explain how to create a really simple dead-key to illustrate
5427  how they work.
5428 \end_layout
5429
5430 \begin_layout Standard
5431 Suppose you happen to need the circumflex character, 
5432 \begin_inset Quotes eld
5433 \end_inset
5434
5435  ̂
5436 \begin_inset Quotes erd
5437 \end_inset
5438
5439 .
5440  You could bind the 
5441 \begin_inset Flex Noun
5442 status collapsed
5443
5444 \begin_layout Plain Layout
5445 ^
5446 \end_layout
5447
5448 \end_inset
5449
5450 -key [a.k.a.
5451 \begin_inset space ~
5452 \end_inset
5453
5454
5455 \begin_inset Flex Noun
5456 status collapsed
5457
5458 \begin_layout Plain Layout
5459 Shift-6
5460 \end_layout
5461
5462 \end_inset
5463
5464 ] to the \SpecialChar LyX
5465  command 
5466 \begin_inset Flex Code
5467 status collapsed
5468
5469 \begin_layout Plain Layout
5470 accent-circumflex
5471 \end_layout
5472
5473 \end_inset
5474
5475  in your 
5476 \begin_inset Flex Code
5477 status collapsed
5478
5479 \begin_layout Plain Layout
5480 lyxrc
5481 \end_layout
5482
5483 \end_inset
5484
5485  file.
5486  Now, whenever you type the 
5487 \begin_inset Flex Noun
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491 ^
5492 \end_layout
5493
5494 \end_inset
5495
5496 -key followed by a letter, that letter will have a circumflex accent on
5497  it.
5498  For example, the sequence 
5499 \begin_inset Quotes eld
5500 \end_inset
5501
5502
5503 \begin_inset Flex Noun
5504 status collapsed
5505
5506 \begin_layout Plain Layout
5507 ^e
5508 \end_layout
5509
5510 \end_inset
5511
5512
5513 \begin_inset Quotes erd
5514 \end_inset
5515
5516  produces the letter: 
5517 \begin_inset Quotes eld
5518 \end_inset
5519
5520 ê
5521 \begin_inset Quotes erd
5522 \end_inset
5523
5524 .
5525  If you tried to type 
5526 \begin_inset Quotes eld
5527 \end_inset
5528
5529
5530 \begin_inset Flex Noun
5531 status collapsed
5532
5533 \begin_layout Plain Layout
5534 ^t
5535 \end_layout
5536
5537 \end_inset
5538
5539
5540 \begin_inset Quotes erd
5541 \end_inset
5542
5543 , however, \SpecialChar LyX
5544  will complain with a beep, since a 
5545 \begin_inset Quotes eld
5546 \end_inset
5547
5548
5549 \begin_inset Flex Noun
5550 status collapsed
5551
5552 \begin_layout Plain Layout
5553 t
5554 \end_layout
5555
5556 \end_inset
5557
5558
5559 \begin_inset Quotes erd
5560 \end_inset
5561
5562  never takes a circumflex accent.
5563  Hitting 
5564 \begin_inset Flex Noun
5565 status collapsed
5566
5567 \begin_layout Plain Layout
5568 Space
5569 \end_layout
5570
5571 \end_inset
5572
5573  after a dead-key produces the bare-accent.
5574  Please note this last point! If you bind a key to a dead-key, you'll need
5575  to rebind the character on that key to yet another key.
5576  Binding the 
5577 \begin_inset Flex Noun
5578 status collapsed
5579
5580 \begin_layout Plain Layout
5581 ,-key
5582 \end_layout
5583
5584 \end_inset
5585
5586  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5587 \end_layout
5588
5589 \begin_layout Standard
5590 One common way to bind dead-keys is to use 
5591 \begin_inset Flex Noun
5592 status collapsed
5593
5594 \begin_layout Plain Layout
5595 Meta-
5596 \end_layout
5597
5598 \end_inset
5599
5600
5601 \begin_inset Flex Noun
5602 status collapsed
5603
5604 \begin_layout Plain Layout
5605 Ctrl-
5606 \end_layout
5607
5608 \end_inset
5609
5610 , and 
5611 \begin_inset Flex Noun
5612 status collapsed
5613
5614 \begin_layout Plain Layout
5615 Shift-
5616 \end_layout
5617
5618 \end_inset
5619
5620  in combination with an accent, like 
5621 \begin_inset Quotes eld
5622 \end_inset
5623
5624
5625 \begin_inset Flex Noun
5626 status collapsed
5627
5628 \begin_layout Plain Layout
5629 ~
5630 \end_layout
5631
5632 \end_inset
5633
5634
5635 \begin_inset Quotes erd
5636 \end_inset
5637
5638  or 
5639 \begin_inset Quotes eld
5640 \end_inset
5641
5642
5643 \begin_inset Flex Noun
5644 status collapsed
5645
5646 \begin_layout Plain Layout
5647 ,
5648 \end_layout
5649
5650 \end_inset
5651
5652
5653 \begin_inset Quotes erd
5654 \end_inset
5655
5656  or 
5657 \begin_inset Quotes eld
5658 \end_inset
5659
5660
5661 \begin_inset Flex Noun
5662 status collapsed
5663
5664 \begin_layout Plain Layout
5665 ^
5666 \end_layout
5667
5668 \end_inset
5669
5670
5671 \begin_inset Quotes erd
5672 \end_inset
5673
5674 .
5675  Another way involves using 
5676 \begin_inset Flex Code
5677 status collapsed
5678
5679 \begin_layout Plain Layout
5680 xmodmap
5681 \end_layout
5682
5683 \end_inset
5684
5685  and 
5686 \begin_inset Flex Code
5687 status collapsed
5688
5689 \begin_layout Plain Layout
5690 xkeycaps
5691 \end_layout
5692
5693 \end_inset
5694
5695  to set up the special 
5696 \begin_inset Flex Code
5697 status collapsed
5698
5699 \begin_layout Plain Layout
5700 Mode_Switch
5701 \end_layout
5702
5703 \end_inset
5704
5705  key.
5706  The 
5707 \begin_inset Flex Code
5708 status collapsed
5709
5710 \begin_layout Plain Layout
5711 Mode_Switch
5712 \end_layout
5713
5714 \end_inset
5715
5716  acts in some ways just like 
5717 \begin_inset Flex Noun
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 Shift
5722 \end_layout
5723
5724 \end_inset
5725
5726  and permits you to bind keys to accented characters.
5727  You can also turn keys into dead-keys by binding them to something like
5728  
5729 \begin_inset Flex Code
5730 status collapsed
5731
5732 \begin_layout Plain Layout
5733 usldead_cedilla
5734 \end_layout
5735
5736 \end_inset
5737
5738  and then binding this symbolic key to the corresponding \SpecialChar LyX
5739  command.
5740 \begin_inset Foot
5741 status collapsed
5742
5743 \begin_layout Plain Layout
5744 Note from 
5745 \noun on
5746 John Weiss
5747 \noun default
5748 : This is exactly what I do in my 
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 ~/.lyx/lyxrc
5754 \end_layout
5755
5756 \end_inset
5757
5758  and my 
5759 \begin_inset Flex Code
5760 status collapsed
5761
5762 \begin_layout Plain Layout
5763 ~/.xmodmap
5764 \end_layout
5765
5766 \end_inset
5767
5768  files.
5769  I have my 
5770 \begin_inset Flex Noun
5771 status collapsed
5772
5773 \begin_layout Plain Layout
5774 Scroll
5775 \begin_inset space ~
5776 \end_inset
5777
5778 Lock
5779 \end_layout
5780
5781 \end_inset
5782
5783  key set up as 
5784 \begin_inset Flex Code
5785 status collapsed
5786
5787 \begin_layout Plain Layout
5788 Mode_Shift
5789 \end_layout
5790
5791 \end_inset
5792
5793  and a bunch of these 
5794 \begin_inset Quotes eld
5795 \end_inset
5796
5797
5798 \begin_inset Flex Code
5799 status collapsed
5800
5801 \begin_layout Plain Layout
5802 usldead_*
5803 \end_layout
5804
5805 \end_inset
5806
5807
5808 \begin_inset Quotes erd
5809 \end_inset
5810
5811  symbolic keys bound such things as 
5812 \begin_inset Flex Noun
5813 status collapsed
5814
5815 \begin_layout Plain Layout
5816 Scroll
5817 \begin_inset space ~
5818 \end_inset
5819
5820 Lock-^
5821 \end_layout
5822
5823 \end_inset
5824
5825  and 
5826 \begin_inset Flex Noun
5827 status collapsed
5828
5829 \begin_layout Plain Layout
5830 Scroll
5831 \begin_inset space ~
5832 \end_inset
5833
5834 Lock-~
5835 \end_layout
5836
5837 \end_inset
5838
5839 .
5840  This is how I produce my accented characters.
5841 \end_layout
5842
5843 \end_inset
5844
5845  You can make just about anything into the 
5846 \begin_inset Flex Code
5847 status collapsed
5848
5849 \begin_layout Plain Layout
5850 Mode_Switch
5851 \end_layout
5852
5853 \end_inset
5854
5855  key: One of the 
5856 \begin_inset Flex Noun
5857 status collapsed
5858
5859 \begin_layout Plain Layout
5860 Ctrl-
5861 \end_layout
5862
5863 \end_inset
5864
5865  keys, a spare function key, etc.
5866  As for the \SpecialChar LyX
5867  commands that produce accents, check the entry for 
5868 \begin_inset Flex Code
5869 status collapsed
5870
5871 \begin_layout Plain Layout
5872 accent-acute
5873 \end_layout
5874
5875 \end_inset
5876
5877  in the 
5878 \emph on
5879 Reference Manual
5880 \emph default
5881 .
5882  You'll find the complete list there.
5883 \end_layout
5884
5885 \begin_layout Subsection
5886 Saving your Language Configuration
5887 \end_layout
5888
5889 \begin_layout Standard
5890 You can edit your preferences so that your desired language environment
5891  is automatically configured when \SpecialChar LyX
5892  starts up, via the 
5893 \begin_inset Flex Noun
5894 status collapsed
5895
5896 \begin_layout Plain Layout
5897 Edit\SpecialChar menuseparator
5898 Preferences
5899 \end_layout
5900
5901 \end_inset
5902
5903  dialog.
5904 \end_layout
5905
5906 \begin_layout Chapter
5907 Installing New Document Classes, Layouts, and Templates
5908 \begin_inset CommandInset label
5909 LatexCommand label
5910 name "cha:Installing-New-Document"
5911
5912 \end_inset
5913
5914
5915 \begin_inset Argument 1
5916 status collapsed
5917
5918 \begin_layout Plain Layout
5919 Installing New Document Classes
5920 \end_layout
5921
5922 \end_inset
5923
5924
5925 \end_layout
5926
5927 \begin_layout Standard
5928 In this chapter, we describe the procedures for creating and installing
5929  new \SpecialChar LyX
5930  layout and template files, as well as offer a refresher on correctly
5931  installing new \SpecialChar LaTeX
5932  document classes.
5933  
5934 \end_layout
5935
5936 \begin_layout Standard
5937 First, let us a say a few words about how one ought to think about the relation
5938  between \SpecialChar LyX
5939  and \SpecialChar LaTeX
5940 .
5941  The thing to understand is that, in a certain sense, \SpecialChar LyX
5942  doesn't know anything
5943  about \SpecialChar LaTeX
5944 .
5945  Indeed, from \SpecialChar LyX
5946 's point of view, \SpecialChar LaTeX
5947  is just one of several 
5948 \begin_inset Quotes eld
5949 \end_inset
5950
5951 backend formats
5952 \begin_inset Quotes erd
5953 \end_inset
5954
5955  in which it is capable of producing output.
5956  Other such formats are DocBook, plaintext, and XHTML.
5957  \SpecialChar LaTeX
5958  is, of course, a particularly important format, but very little of the
5959  information \SpecialChar LyX
5960  has about \SpecialChar LaTeX
5961  is actually contained in the program itself.
5962 \begin_inset Foot
5963 status collapsed
5964
5965 \begin_layout Plain Layout
5966 Some commands are sufficiently complex that they are 
5967 \begin_inset Quotes eld
5968 \end_inset
5969
5970 hardcoded
5971 \begin_inset Quotes erd
5972 \end_inset
5973
5974  into \SpecialChar LyX
5975 .
5976  But the developers generally regard this as a Bad Thing.
5977 \end_layout
5978
5979 \end_inset
5980
5981  Rather, that information, even for the standard classes like 
5982 \begin_inset Flex Code
5983 status collapsed
5984
5985 \begin_layout Plain Layout
5986 article.cls
5987 \end_layout
5988
5989 \end_inset
5990
5991 , is contained in `layout files'.
5992  Similarly, \SpecialChar LyX
5993  itself does not know much about DocBook or XHTML.
5994  What it knows is contained in layout files.
5995 \end_layout
5996
5997 \begin_layout Standard
5998 You can think of the layout file for a given document class as a translation
5999  manual between \SpecialChar LyX
6000  constructs—paragraphs with their corresponding styles,
6001  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6002 , DocBook, or XHTML
6003  constructs.
6004  Almost everything \SpecialChar LyX
6005  knows about 
6006 \begin_inset Flex Code
6007 status collapsed
6008
6009 \begin_layout Plain Layout
6010 article.cls
6011 \end_layout
6012
6013 \end_inset
6014
6015 , for example, is contained in the file 
6016 \begin_inset Flex Code
6017 status collapsed
6018
6019 \begin_layout Plain Layout
6020 article.layout
6021 \end_layout
6022
6023 \end_inset
6024
6025  and in various other files it includes.
6026  For this reason, anyone intending to write layout files should plan to
6027  study the existing files.
6028  A good place to start is with 
6029 \begin_inset Flex Code
6030 status collapsed
6031
6032 \begin_layout Plain Layout
6033 stdsections.inc
6034 \end_layout
6035
6036 \end_inset
6037
6038 , which is included in 
6039 \begin_inset Flex Code
6040 status collapsed
6041
6042 \begin_layout Plain Layout
6043 article.layout
6044 \end_layout
6045
6046 \end_inset
6047
6048
6049 \begin_inset Flex Code
6050 status collapsed
6051
6052 \begin_layout Plain Layout
6053 book.layout
6054 \end_layout
6055
6056 \end_inset
6057
6058 , and many of the other layout files for document classes.
6059  This file is where sections and the like are defined: 
6060 \begin_inset Flex Code
6061 status collapsed
6062
6063 \begin_layout Plain Layout
6064 stdsections.inc
6065 \end_layout
6066
6067 \end_inset
6068
6069  tells \SpecialChar LyX
6070  how paragraphs that are marked with the Section, Subsection, etc,
6071  styles can be translated into corresponding \SpecialChar LaTeX
6072 , DocBook, and XHTML commands
6073  and tags.
6074  The 
6075 \begin_inset Flex Code
6076 status collapsed
6077
6078 \begin_layout Plain Layout
6079 article.layout
6080 \end_layout
6081
6082 \end_inset
6083
6084  file basically just includes several of these 
6085 \begin_inset Flex Code
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 std*.inc
6090 \end_layout
6091
6092 \end_inset
6093
6094  files.
6095 \end_layout
6096
6097 \begin_layout Standard
6098 Defining the \SpecialChar LyX
6099 –\SpecialChar LaTeX
6100  correspondence is not the only thing layout files do, though.
6101  Their other job is to define how the \SpecialChar LyX
6102  constructs themselves will appear
6103  on-screen.
6104  The fact that layout files have these two jobs is often a source of confusion,
6105  because they are completely separate.
6106  Telling \SpecialChar LyX
6107  how to translate a certain paragraph style into \SpecialChar LaTeX
6108  does not tell
6109  \SpecialChar LyX
6110  how to display it; conversely, telling \SpecialChar LyX
6111  how to display a certain paragraph
6112  style does not tell \SpecialChar LyX
6113  how to translate it into \SpecialChar LaTeX
6114  (let alone tell \SpecialChar LaTeX
6115  how to
6116  display it).
6117  So, in general, when you define a new \SpecialChar LyX
6118  construct, you must always do two
6119  quite separate things: (i)
6120 \begin_inset space ~
6121 \end_inset
6122
6123 tell \SpecialChar LyX
6124  how to translate it into \SpecialChar LaTeX
6125  and (ii)
6126 \begin_inset space ~
6127 \end_inset
6128
6129 tell \SpecialChar LyX
6130  how to display it.
6131 \end_layout
6132
6133 \begin_layout Standard
6134 Much the same is true, of course, as regards \SpecialChar LyX
6135 's other backend formats, though
6136  XHTML is in some ways different, because in that case \SpecialChar LyX
6137  
6138 \emph on
6139 is
6140 \emph default
6141  able, to some extent, to use information about how it should display a
6142  paragraph on the screen to output information (in the form of CSS) about
6143  how the paragraph should be displayed in a browser.
6144  Even in this case, however, the distinction between what \SpecialChar LyX
6145  does internally
6146  and how things are rendered externally remains in force, and the two can
6147  be controlled separately.
6148  See 
6149 \begin_inset CommandInset ref
6150 LatexCommand ref
6151 reference "sec:Tags-for-XHTML"
6152
6153 \end_inset
6154
6155  for the details.
6156 \end_layout
6157
6158 \begin_layout Section
6159 Installing new \SpecialChar LaTeX
6160  files
6161 \end_layout
6162
6163 \begin_layout Standard
6164 Some installations may not include a \SpecialChar LaTeX
6165  package or class file that you would
6166  like to use within \SpecialChar LyX
6167 .
6168  For example, you might need Foil\SpecialChar TeX
6169 , a package for preparing slides for overhead
6170  projectors.
6171  Modern \SpecialChar LaTeX
6172  distributions like \SpecialChar TeX
6173 Live (2008 or newer) or MiK\SpecialChar TeX
6174  provide a user interface
6175  for installing such packages.
6176  For example, with MiK\SpecialChar TeX
6177 , you start the program 
6178 \begin_inset Quotes eld
6179 \end_inset
6180
6181 Package
6182 \begin_inset space ~
6183 \end_inset
6184
6185 Manager
6186 \begin_inset Quotes erd
6187 \end_inset
6188
6189  to get a list of available packages.
6190  To install one of them, right click on it or use the corresponding toolbar
6191  button.
6192 \end_layout
6193
6194 \begin_layout Standard
6195 If your \SpecialChar LaTeX
6196  distribution does not provide such a `package manager', or if the
6197  package is not available from your distribution, then follow these steps
6198  to install it manually:
6199 \end_layout
6200
6201 \begin_layout Enumerate
6202 Get the package from 
6203 \begin_inset CommandInset href
6204 LatexCommand href
6205 name "CTAN"
6206 target "http://www.ctan.org/"
6207 literal "false"
6208
6209 \end_inset
6210
6211  or wherever.
6212 \end_layout
6213
6214 \begin_layout Enumerate
6215 If the package contains a file with the ending 
6216 \begin_inset Quotes eld
6217 \end_inset
6218
6219
6220 \begin_inset Flex Code
6221 status collapsed
6222
6223 \begin_layout Plain Layout
6224 .ins
6225 \end_layout
6226
6227 \end_inset
6228
6229
6230 \begin_inset Quotes erd
6231 \end_inset
6232
6233  (is the case for Foil\SpecialChar TeX
6234 ) then open a console, change to the folder of this
6235  file and execute the command 
6236 \begin_inset Flex Code
6237 status collapsed
6238
6239 \begin_layout Plain Layout
6240 latex foiltex.ins
6241 \end_layout
6242
6243 \end_inset
6244
6245 .
6246  You have now unpacked the package and have all files to install it.
6247  Most \SpecialChar LaTeX
6248 -packages are not packed and you can skip this step.
6249 \end_layout
6250
6251 \begin_layout Enumerate
6252 Now you need to decide if the package should be available for all users
6253  or only for you.
6254 \end_layout
6255
6256 \begin_deeper
6257 \begin_layout Enumerate
6258 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6259  for all users on your system, then install it in your `local' \SpecialChar TeX
6260  tree, otherwise
6261  install it in your own `user' \SpecialChar TeX
6262  tree.
6263  Where these trees should be created, if they do not already exist, depends
6264  on your system.
6265  To find this out, look in the file 
6266 \begin_inset Flex Code
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270 texmf.cnf
6271 \end_layout
6272
6273 \end_inset
6274
6275 .
6276 \begin_inset Foot
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280 This is usually in the directory 
6281 \begin_inset Flex Code
6282 status collapsed
6283
6284 \begin_layout Plain Layout
6285 $TEXMF/web2c
6286 \end_layout
6287
6288 \end_inset
6289
6290 , though you can execute the command 
6291 \begin_inset Flex Code
6292 status collapsed
6293
6294 \begin_layout Plain Layout
6295 kpsewhich texmf.cnf
6296 \end_layout
6297
6298 \end_inset
6299
6300  to locate it.
6301 \end_layout
6302
6303 \end_inset
6304
6305  The location of the `local' \SpecialChar TeX
6306  tree is defined by the 
6307 \begin_inset Flex Code
6308 status collapsed
6309
6310 \begin_layout Plain Layout
6311 TEXMFLOCAL
6312 \end_layout
6313
6314 \end_inset
6315
6316  variable; this is usually somewhere like 
6317 \begin_inset Flex Code
6318 status collapsed
6319
6320 \begin_layout Plain Layout
6321 /usr/local/share/texmf
6322 \end_layout
6323
6324 \end_inset
6325
6326  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6327 Live
6328  distribution.
6329  The location of the `user' \SpecialChar TeX
6330  tree is defined by 
6331 \begin_inset Flex Code
6332 status collapsed
6333
6334 \begin_layout Plain Layout
6335 TEXMFHOME
6336 \end_layout
6337
6338 \end_inset
6339
6340  and is commonly 
6341 \begin_inset Flex Code
6342 status collapsed
6343
6344 \begin_layout Plain Layout
6345 $HOME/texmf
6346 \end_layout
6347
6348 \end_inset
6349
6350  or 
6351 \begin_inset Flex Code
6352 status collapsed
6353
6354 \begin_layout Plain Layout
6355
6356 \family sans
6357 $HOME/.texliveXXXX
6358 \end_layout
6359
6360 \end_inset
6361
6362 .
6363  (If these variables are not predefined, you have to define them.) You'll
6364  probably need root permissions to create or modify the `local' tree, but
6365  not for your `user' tree.
6366 \begin_inset Newline newline
6367 \end_inset
6368
6369 In general, it is recommended to install in the user tree because your user
6370  will not be modified or even overwritten when you upgrade your system.
6371  It will typically also be backed up together with everything else when
6372  you backup your home directory (which, of course, you do on a regular basis).
6373 \end_layout
6374
6375 \begin_layout Enumerate
6376 On Windows, if you want the new package to be available for all users on
6377  your system, change to the folder where \SpecialChar LaTeX
6378  is installed and then change to
6379  the subfolder 
6380 \begin_inset Flex Code
6381 status collapsed
6382
6383 \begin_layout Plain Layout
6384 ~
6385 \backslash
6386 tex
6387 \backslash
6388 latex
6389 \end_layout
6390
6391 \end_inset
6392
6393 .
6394  (For MiK\SpecialChar TeX
6395 , this would be by default the folder 
6396 \begin_inset Flex Code
6397 status collapsed
6398
6399 \begin_layout Plain Layout
6400 ~:
6401 \backslash
6402 Programs
6403 \backslash
6404 MiKTeX
6405 \backslash
6406 tex
6407 \backslash
6408 latex
6409 \end_layout
6410
6411 \end_inset
6412
6413 .)
6414 \begin_inset Foot
6415 status collapsed
6416
6417 \begin_layout Plain Layout
6418 Note that this will be the correct path only on English installations.
6419  On a German one, it would be 
6420 \begin_inset Flex Code
6421 status collapsed
6422
6423 \begin_layout Plain Layout
6424 ~:
6425 \backslash
6426 Programme
6427 \backslash
6428 MiKTeX
6429 \backslash
6430 tex
6431 \backslash
6432 latex
6433 \end_layout
6434
6435 \end_inset
6436
6437 , and similarly for other languages.
6438 \end_layout
6439
6440 \end_inset
6441
6442  Create there a new folder 
6443 \begin_inset Flex Code
6444 status collapsed
6445
6446 \begin_layout Plain Layout
6447 foiltex
6448 \end_layout
6449
6450 \end_inset
6451
6452  and copy all files of the package into it.
6453  
6454 \begin_inset Newline newline
6455 \end_inset
6456
6457 If the package should only available for you or you don't have admin permissions
6458 , do the same, but in the local \SpecialChar LaTeX
6459  folder.
6460  E.
6461 \begin_inset space \thinspace{}
6462 \end_inset
6463
6464 g., for MiK\SpecialChar TeX
6465
6466 \begin_inset space ~
6467 \end_inset
6468
6469 2.8 under Windows XP, this would be the folder:
6470 \begin_inset Newline newline
6471 \end_inset
6472
6473
6474 \family sans
6475
6476 \begin_inset Flex Code
6477 status collapsed
6478
6479 \begin_layout Plain Layout
6480 ~:
6481 \backslash
6482 Documents and Settings
6483 \backslash
6484 <username>
6485 \backslash
6486 Application Data
6487 \backslash
6488
6489 \end_layout
6490
6491 \end_inset
6492
6493
6494 \begin_inset Newline newline
6495 \end_inset
6496
6497
6498 \family default
6499
6500 \begin_inset Phantom HPhantom
6501 status open
6502
6503 \begin_layout Plain Layout
6504
6505 \family sans
6506 ~:
6507 \backslash
6508
6509 \end_layout
6510
6511 \end_inset
6512
6513
6514 \begin_inset Flex Code
6515 status collapsed
6516
6517 \begin_layout Plain Layout
6518 MiKTeX
6519 \backslash
6520 2.8
6521 \backslash
6522 tex
6523 \backslash
6524 latex
6525 \end_layout
6526
6527 \end_inset
6528
6529
6530 \begin_inset Newline newline
6531 \end_inset
6532
6533 On Vista, it would be:
6534 \begin_inset Newline newline
6535 \end_inset
6536
6537
6538 \begin_inset Flex Code
6539 status collapsed
6540
6541 \begin_layout Plain Layout
6542 ~:
6543 \backslash
6544 Users
6545 \backslash
6546 <username>
6547 \backslash
6548 AppData
6549 \backslash
6550 Roaming
6551 \backslash
6552 2.8
6553 \backslash
6554 MiKTeX
6555 \backslash
6556 tex
6557 \backslash
6558 latex
6559 \end_layout
6560
6561 \end_inset
6562
6563
6564 \end_layout
6565
6566 \end_deeper
6567 \begin_layout Enumerate
6568 Now one only need to tell \SpecialChar LaTeX
6569  that there are new files.
6570  This depends on the used \SpecialChar LaTeX
6571 -Distribution:
6572 \end_layout
6573
6574 \begin_deeper
6575 \begin_layout Enumerate
6576 For \SpecialChar TeX
6577 Live execute the command 
6578 \begin_inset Flex Code
6579 status collapsed
6580
6581 \begin_layout Plain Layout
6582 texhash
6583 \end_layout
6584
6585 \end_inset
6586
6587  from a console.
6588  If you installed the package for all users, then you will probably need
6589  to have root permissions for that.
6590 \end_layout
6591
6592 \begin_layout Enumerate
6593 For MiK\SpecialChar TeX
6594 , if you have installed the package for all users, start the program
6595  
6596 \begin_inset Quotes eld
6597 \end_inset
6598
6599 Settings
6600 \begin_inset space ~
6601 \end_inset
6602
6603 (Admin)
6604 \begin_inset Quotes erd
6605 \end_inset
6606
6607  and press the button marked 
6608 \begin_inset Quotes eld
6609 \end_inset
6610
6611 Refresh FNDB
6612 \begin_inset Quotes erd
6613 \end_inset
6614
6615 .
6616  Otherwise start the program 
6617 \begin_inset Quotes eld
6618 \end_inset
6619
6620 Settings
6621 \begin_inset Quotes erd
6622 \end_inset
6623
6624  and do the same.
6625 \end_layout
6626
6627 \end_deeper
6628 \begin_layout Enumerate
6629 Finally, you need to tell \SpecialChar LyX
6630  that there are new packages available.
6631  So, in \SpecialChar LyX
6632 , use the menu 
6633 \begin_inset Flex Noun
6634 status collapsed
6635
6636 \begin_layout Plain Layout
6637 Tools
6638 \family sans
6639 \SpecialChar menuseparator
6640 Reconfigure
6641 \end_layout
6642
6643 \end_inset
6644
6645  and then restart \SpecialChar LyX
6646 .
6647 \end_layout
6648
6649 \begin_layout Standard
6650 Now the package is installed.
6651  In our example, the document class 
6652 \begin_inset Flex Code
6653 status collapsed
6654
6655 \begin_layout Plain Layout
6656 FoilTex
6657 \end_layout
6658
6659 \end_inset
6660
6661  will now be available under 
6662 \begin_inset Flex Noun
6663 status collapsed
6664
6665 \begin_layout Plain Layout
6666 Document\SpecialChar menuseparator
6667 Settings\SpecialChar menuseparator
6668 Document Class
6669 \end_layout
6670
6671 \end_inset
6672
6673  (in the 
6674 \begin_inset Quotes eld
6675 \end_inset
6676
6677 Presentations
6678 \begin_inset Quotes erd
6679 \end_inset
6680
6681  category).
6682  
6683 \end_layout
6684
6685 \begin_layout Standard
6686 If you would like to use a \SpecialChar LaTeX
6687  document class that is not even listed in the
6688  menu 
6689 \begin_inset Flex Noun
6690 status collapsed
6691
6692 \begin_layout Plain Layout
6693 Document\SpecialChar menuseparator
6694 Settings\SpecialChar menuseparator
6695 Document Class
6696 \end_layout
6697
6698 \end_inset
6699
6700 , then you need to create a `layout' file for it.
6701  That is the topic of the next section.
6702 \end_layout
6703
6704 \begin_layout Section
6705 Types of layout files
6706 \end_layout
6707
6708 \begin_layout Standard
6709 This section describes the various sorts of \SpecialChar LyX
6710  files that contain layout informati
6711 on.
6712  These files describe various paragraph and character styles, determining
6713  how \SpecialChar LyX
6714  should display them and how they should be translated into \SpecialChar LaTeX
6715 , DocBook,
6716  XHTML, or whatever output format is being used.
6717  
6718 \end_layout
6719
6720 \begin_layout Standard
6721 We shall try to provide a thorough description of the process of writing
6722  layout files here.
6723  However, there are so many different types of documents supported even
6724  by just \SpecialChar LaTeX
6725  that we can't hope to cover every different possibility or problem
6726  you might encounter.
6727  The \SpecialChar LyX
6728  users' list is frequented by people with lots of experience with layout
6729  design who are willing to share what they've learned, so please feel free
6730  to ask questions there.
6731 \end_layout
6732
6733 \begin_layout Standard
6734 As you prepare to write a new layout, it is extremely helpful to look at
6735  the layouts distributed with \SpecialChar LyX
6736 .
6737  If you write a \SpecialChar LyX
6738  layout for a \SpecialChar LaTeX
6739  document class that might also be used by
6740  others, or write a module that might be useful to others, then you should
6741  consider posting your layout to the 
6742 \begin_inset CommandInset href
6743 LatexCommand href
6744 name "layout section on the LyX wiki"
6745 target "https://wiki.lyx.org/Layouts/Layouts"
6746 literal "false"
6747
6748 \end_inset
6749
6750  or even to the \SpecialChar LyX
6751  developers' list, so that it might be included in \SpecialChar LyX
6752  itself.
6753 \begin_inset Foot
6754 status collapsed
6755
6756 \begin_layout Plain Layout
6757 Note that \SpecialChar LyX
6758  is licensed under the General Public License, so any material
6759  that is contributed to \SpecialChar LyX
6760  must be similarly licensed.
6761 \end_layout
6762
6763 \end_inset
6764
6765
6766 \end_layout
6767
6768 \begin_layout Subsection
6769 Layout modules
6770 \begin_inset CommandInset label
6771 LatexCommand label
6772 name "subsec:Layout-modules"
6773
6774 \end_inset
6775
6776
6777 \end_layout
6778
6779 \begin_layout Standard
6780 We have spoken to this point about `layout files'.
6781  But there are different sorts of files that contain layout information.
6782  Layout files, strictly so called, have the 
6783 \begin_inset Flex Code
6784 status collapsed
6785
6786 \begin_layout Plain Layout
6787 .layout
6788 \end_layout
6789
6790 \end_inset
6791
6792  extension and provide \SpecialChar LyX
6793  with information about document classes.
6794  Since \SpecialChar LyX
6795  1.6 layout information can also be contained in layout 
6796 \emph on
6797 modules
6798 \emph default
6799 , which have the 
6800 \begin_inset Flex Code
6801 status collapsed
6802
6803 \begin_layout Plain Layout
6804 .module
6805 \end_layout
6806
6807 \end_inset
6808
6809  extension.
6810  Modules are to \SpecialChar LaTeX
6811  packages much as layouts are to \SpecialChar LaTeX
6812  classes, and some modules—such
6813  as the 
6814 \begin_inset Flex Code
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818 endnotes
6819 \end_layout
6820
6821 \end_inset
6822
6823  module—specifically provide support for one package.
6824  In a sense, layout modules are similar to included
6825 \begin_inset Foot
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 These can have any extension, but by convention have the 
6830 \begin_inset Flex Code
6831 status collapsed
6832
6833 \begin_layout Plain Layout
6834 .inc
6835 \end_layout
6836
6837 \end_inset
6838
6839  extension.
6840 \end_layout
6841
6842 \end_inset
6843
6844  files—files like 
6845 \begin_inset Flex Code
6846 status collapsed
6847
6848 \begin_layout Plain Layout
6849 stdsections.inc
6850 \end_layout
6851
6852 \end_inset
6853
6854 —in that modules are not specific to a given document class but may be used
6855  with many different classes.
6856  The difference is that using an included file with 
6857 \begin_inset Flex Code
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 article.cls
6862 \end_layout
6863
6864 \end_inset
6865
6866  requires editing that file.
6867  Modules, by contrast, are selected in the 
6868 \begin_inset Flex Noun
6869 status collapsed
6870
6871 \begin_layout Plain Layout
6872 Document\SpecialChar menuseparator
6873 Settings
6874 \end_layout
6875
6876 \end_inset
6877
6878  dialog.
6879 \end_layout
6880
6881 \begin_layout Standard
6882 Building modules is the easiest way to get started with layout editing,
6883  since it can be as simple as adding a single new paragraph style or flex
6884  inset.
6885  But modules may, in principle, contain anything a layout file can contain.
6886 \end_layout
6887
6888 \begin_layout Standard
6889 After creating a new module and copying it to the 
6890 \begin_inset Flex Code
6891 status collapsed
6892
6893 \begin_layout Plain Layout
6894 layouts/
6895 \end_layout
6896
6897 \end_inset
6898
6899  folder, you will need to reconfigure and then restart \SpecialChar LyX
6900  for the module to
6901  appear in the menu.
6902  However, changes you make to the module will be seen immediately, if you
6903  open 
6904 \begin_inset Flex Noun
6905 status collapsed
6906
6907 \begin_layout Plain Layout
6908 Document\SpecialChar menuseparator
6909 Settings
6910 \end_layout
6911
6912 \end_inset
6913
6914 , highlight something, and then hit 
6915 \begin_inset Quotes eld
6916 \end_inset
6917
6918 OK
6919 \begin_inset Quotes erd
6920 \end_inset
6921
6922 .
6923  
6924 \emph on
6925 It is strongly recommended that you save your work before doing this
6926 \emph default
6927 .
6928  In fact, 
6929 \emph on
6930 it is strongly recommended that you not attempt to edit modules while simultaneo
6931 usly working on actual documents
6932 \emph default
6933 .
6934  Though of course the developers strive to keep \SpecialChar LyX
6935  stable in such situations,
6936  syntax errors and the like in your module file could cause strange behavior.
6937 \end_layout
6938
6939 \begin_layout Subsubsection
6940 Local Layout
6941 \end_layout
6942
6943 \begin_layout Standard
6944 Modules are to \SpecialChar LyX
6945  as packages are to \SpecialChar LaTeX
6946 .
6947  Sometimes, however, you find yourself wanting a specific inset or character
6948  style just for one document and writing a module that will also be available
6949  to other documents makes little sense.
6950  What you need is \SpecialChar LyX
6951 's 
6952 \begin_inset Quotes eld
6953 \end_inset
6954
6955 Local Layout
6956 \begin_inset Quotes erd
6957 \end_inset
6958
6959 .
6960 \end_layout
6961
6962 \begin_layout Standard
6963 You will find it under 
6964 \family sans
6965 Document\SpecialChar menuseparator
6966 Settings\SpecialChar menuseparator
6967 Local Layout
6968 \family default
6969 .
6970  The large text box allows you to enter anything that you might enter in
6971  a layout file or module.
6972  You can think of a document's local layout, in fact, as a module that belongs
6973  just to it.
6974  So, in particular, you must enter a 
6975 \begin_inset Flex Code
6976 status collapsed
6977
6978 \begin_layout Plain Layout
6979 Format
6980 \end_layout
6981
6982 \end_inset
6983
6984  tag.
6985  Any format is acceptable, but one would normally use the format current
6986  at the time.
6987  (In \SpecialChar LyX
6988  
6989 \begin_inset Info
6990 type  "lyxinfo"
6991 arg   "version"
6992 \end_inset
6993
6994 , the current layout format is 
6995 \begin_inset Info
6996 type  "lyxinfo"
6997 arg   "layoutformat"
6998 \end_inset
6999
7000 .)
7001 \end_layout
7002
7003 \begin_layout Standard
7004 When you have entered something in the 
7005 \begin_inset Flex Code
7006 status collapsed
7007
7008 \begin_layout Plain Layout
7009 Local Layout
7010 \end_layout
7011
7012 \end_inset
7013
7014  pane, \SpecialChar LyX
7015  will enable the 
7016 \begin_inset Quotes eld
7017 \end_inset
7018
7019 Validate
7020 \begin_inset Quotes erd
7021 \end_inset
7022
7023  button at the bottom.
7024  Clicking this button will cause \SpecialChar LyX
7025  to determine whether what you have entered
7026  is valid layout information for the chosen format.
7027  \SpecialChar LyX
7028  will report the result but, unfortunately, will not tell you what errors
7029  there might have been.
7030  These will be written to the terminal, however, if \SpecialChar LyX
7031  is started from a terminal.
7032  You will not be permitted to save your local layout until you have entered
7033  something valid.
7034 \end_layout
7035
7036 \begin_layout Standard
7037 The warnings at the end of the previous section apply here, too.
7038  Do not play with local layout while you are actually working, especially
7039  if you have not saved your document.
7040  That said, using local layout with a test document can be a very convenient
7041  way to try out layout ideas, or even to start developing a module.
7042 \end_layout
7043
7044 \begin_layout Subsection
7045 Layout for 
7046 \begin_inset Flex Noun
7047 status collapsed
7048
7049 \begin_layout Plain Layout
7050 .sty
7051 \end_layout
7052
7053 \end_inset
7054
7055  files
7056 \end_layout
7057
7058 \begin_layout Standard
7059 There are two situations you are likely to encounter when wanting to support
7060  a new \SpecialChar LaTeX
7061  document class, involving style (
7062 \begin_inset Flex Code
7063 status collapsed
7064
7065 \begin_layout Plain Layout
7066 .sty
7067 \end_layout
7068
7069 \end_inset
7070
7071 ) files and \SpecialChar LaTeX2e
7072  class (
7073 \begin_inset Flex Code
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 .cls
7078 \end_layout
7079
7080 \end_inset
7081
7082 ) .
7083  Supporting a style file is usually fairly easy.
7084  Supporting a new class file is a bit harder.
7085  We'll discuss the former in this section and the latter in the next.
7086  
7087 \change_deleted 5863208 1594239023
7088 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7089 \change_unchanged
7090
7091 \end_layout
7092
7093 \begin_layout Standard
7094 The easier case is the one in which your new document class is provided
7095  as a style file that is to be used in conjunction with an already supported
7096  document class.
7097  For the sake of the example, we'll assume that the style file is called
7098  
7099 \begin_inset Flex Noun
7100 status collapsed
7101
7102 \begin_layout Plain Layout
7103 myclass.sty
7104 \end_layout
7105
7106 \end_inset
7107
7108  and that it is meant to be used with 
7109 \begin_inset Flex Noun
7110 status collapsed
7111
7112 \begin_layout Plain Layout
7113 report.cls
7114 \end_layout
7115
7116 \end_inset
7117
7118 , which is a standard class.
7119  
7120 \end_layout
7121
7122 \begin_layout Standard
7123 Start by copying the existing class's layout file into your local directory:
7124 \begin_inset Foot
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 Of course, which directory is your local directory will vary by platform,
7129  and \SpecialChar LyX
7130  allows you to specify your local directory on startup, too, using
7131  the 
7132 \begin_inset Flex Code
7133 status collapsed
7134
7135 \begin_layout Plain Layout
7136 -userdir
7137 \end_layout
7138
7139 \end_inset
7140
7141  option.
7142 \end_layout
7143
7144 \end_inset
7145
7146
7147 \end_layout
7148
7149 \begin_layout LyX-Code
7150 cp report.layout ~/.lyx/layouts/myclass.layout
7151 \end_layout
7152
7153 \begin_layout Standard
7154 Then edit 
7155 \begin_inset Flex Code
7156 status collapsed
7157
7158 \begin_layout Plain Layout
7159 myclass.layout
7160 \end_layout
7161
7162 \end_inset
7163
7164  and change the line: 
7165 \end_layout
7166
7167 \begin_layout LyX-Code
7168
7169 \backslash
7170 DeclareLaTeXClass{Report (Standard Class)}
7171 \end_layout
7172
7173 \begin_layout Standard
7174 to read
7175 \end_layout
7176
7177 \begin_layout LyX-Code
7178
7179 \backslash
7180 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7181 \end_layout
7182
7183 \begin_layout Standard
7184 Then add:
7185 \end_layout
7186
7187 \begin_layout LyX-Code
7188 Preamble 
7189 \begin_inset Newline newline
7190 \end_inset
7191
7192     
7193 \backslash
7194 usepackage{myclass}
7195 \begin_inset Newline newline
7196 \end_inset
7197
7198 EndPreamble
7199 \end_layout
7200
7201 \begin_layout Standard
7202 near the top of the file.
7203 \end_layout
7204
7205 \begin_layout Standard
7206 Start \SpecialChar LyX
7207  and select 
7208 \begin_inset Flex Noun
7209 status collapsed
7210
7211 \begin_layout Plain Layout
7212 Tools\SpecialChar menuseparator
7213 Reconfigure
7214 \end_layout
7215
7216 \end_inset
7217
7218 .
7219  Then restart \SpecialChar LyX
7220  and try creating a new document.
7221  You should see "
7222 \begin_inset Flex Noun
7223 status collapsed
7224
7225 \begin_layout Plain Layout
7226 Report (My Class)
7227 \end_layout
7228
7229 \end_inset
7230
7231 " as a document class option in the 
7232 \begin_inset Flex Noun
7233 status collapsed
7234
7235 \begin_layout Plain Layout
7236 Document\SpecialChar menuseparator
7237 Settings
7238 \end_layout
7239
7240 \end_inset
7241
7242  dialog.
7243  It is likely that some of the sectioning commands and such in your new
7244  class will work differently from how they worked in the base class—
7245 \begin_inset Flex Code
7246 status collapsed
7247
7248 \begin_layout Plain Layout
7249 report
7250 \end_layout
7251
7252 \end_inset
7253
7254  in this example—so you can fiddle around with the settings for the different
7255  sections if you wish.
7256  The layout information for sections is contained in 
7257 \begin_inset Flex Code
7258 status collapsed
7259
7260 \begin_layout Plain Layout
7261 stdsections.inc
7262 \end_layout
7263
7264 \end_inset
7265
7266 , but you do not need to copy and change this file.
7267  Instead, you can simply add your changes to your layout file, after the
7268  line 
7269 \begin_inset Flex Code
7270 status collapsed
7271
7272 \begin_layout Plain Layout
7273 Input stdclass.inc
7274 \end_layout
7275
7276 \end_inset
7277
7278 , which itself includes 
7279 \begin_inset Flex Code
7280 status collapsed
7281
7282 \begin_layout Plain Layout
7283 stdsections.inc
7284 \end_layout
7285
7286 \end_inset
7287
7288 .
7289  For example, you might add these lines:
7290 \end_layout
7291
7292 \begin_layout LyX-Code
7293 Style Chapter
7294 \end_layout
7295
7296 \begin_layout LyX-Code
7297     Font
7298 \end_layout
7299
7300 \begin_layout LyX-Code
7301         Family Sans
7302 \end_layout
7303
7304 \begin_layout LyX-Code
7305     EndFont
7306 \end_layout
7307
7308 \begin_layout LyX-Code
7309 End
7310 \end_layout
7311
7312 \begin_layout Standard
7313 to change the font for chapter headings to sans-serif.
7314  This will override (or, in this case, add to) the existing declaration
7315  for the Chapter style.
7316  
7317 \end_layout
7318
7319 \begin_layout Standard
7320 Your new package may also provide commands or environments not present in
7321  the base class.
7322  In this case, you will want to add these to the layout file.
7323  See 
7324 \begin_inset CommandInset ref
7325 LatexCommand ref
7326 reference "sec:TextClass"
7327
7328 \end_inset
7329
7330  for information on how to do so.
7331 \end_layout
7332
7333 \begin_layout Standard
7334 If 
7335 \begin_inset Flex Noun
7336 status collapsed
7337
7338 \begin_layout Plain Layout
7339 myclass.sty
7340 \end_layout
7341
7342 \end_inset
7343
7344  can be used with several different document classes, and even if it cannot,
7345  you might find it easiest just to write a module that you can load with
7346  the base class.
7347  The simplest possible such module would be:
7348 \end_layout
7349
7350 \begin_layout LyX-Code
7351 #
7352 \backslash
7353 DeclareLyXModule{My Class} 
7354 \end_layout
7355
7356 \begin_layout LyX-Code
7357 #DescriptionBegin 
7358 \end_layout
7359
7360 \begin_layout LyX-Code
7361 #Support for myclass.sty.
7362 \end_layout
7363
7364 \begin_layout LyX-Code
7365 #DescriptionEnd
7366 \begin_inset Newline newline
7367 \end_inset
7368
7369
7370 \end_layout
7371
7372 \begin_layout LyX-Code
7373 Format 
7374 \begin_inset Info
7375 type  "lyxinfo"
7376 arg   "layoutformat"
7377 \end_inset
7378
7379
7380 \begin_inset Newline newline
7381 \end_inset
7382
7383
7384 \end_layout
7385
7386 \begin_layout LyX-Code
7387 Preamble
7388 \begin_inset Newline newline
7389 \end_inset
7390
7391     
7392 \backslash
7393 usepackage{myclass}
7394 \begin_inset Newline newline
7395 \end_inset
7396
7397 EndPreamble
7398 \end_layout
7399
7400 \begin_layout Standard
7401 A more complex module might modify the behavior of some existing constructs
7402  or define some new ones.
7403  Again, see 
7404 \begin_inset CommandInset ref
7405 LatexCommand ref
7406 reference "sec:TextClass"
7407
7408 \end_inset
7409
7410  for discussion.
7411 \end_layout
7412
7413 \begin_layout Subsection
7414 Layout for 
7415 \begin_inset Flex Noun
7416 status collapsed
7417
7418 \begin_layout Plain Layout
7419 .cls
7420 \end_layout
7421
7422 \end_inset
7423
7424  files
7425 \end_layout
7426
7427 \begin_layout Standard
7428 There are two possibilities here.
7429  One is that the class file is itself based upon an existing document class.
7430  For example, many thesis classes are based upon 
7431 \begin_inset Flex Noun
7432 status collapsed
7433
7434 \begin_layout Plain Layout
7435 book.cls
7436 \end_layout
7437
7438 \end_inset
7439
7440 .
7441  To see whether yours is, look for a line like
7442 \end_layout
7443
7444 \begin_layout LyX-Code
7445
7446 \backslash
7447 LoadClass{book}
7448 \end_layout
7449
7450 \begin_layout Standard
7451 in the file.
7452  If so, then you may proceed largely as in the previous section, though
7453  the 
7454 \begin_inset Flex Code
7455 status collapsed
7456
7457 \begin_layout Plain Layout
7458 Declare\SpecialChar LaTeX
7459 Class
7460 \end_layout
7461
7462 \end_inset
7463
7464  line will be different.
7465  If your new class is 
7466 \begin_inset Flex Code
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470 thesis
7471 \end_layout
7472
7473 \end_inset
7474
7475  and it is based upon 
7476 \begin_inset Flex Code
7477 status collapsed
7478
7479 \begin_layout Plain Layout
7480 book
7481 \end_layout
7482
7483 \end_inset
7484
7485 , then the line should read:
7486 \begin_inset Foot
7487 status collapsed
7488
7489 \begin_layout Plain Layout
7490 And it will be easiest if you save the file to 
7491 \begin_inset Flex Code
7492 status collapsed
7493
7494 \begin_layout Plain Layout
7495 thesis.layout
7496 \end_layout
7497
7498 \end_inset
7499
7500 : \SpecialChar LyX
7501  assumes that the document class has the same name as the layout file.
7502  
7503 \end_layout
7504
7505 \end_inset
7506
7507
7508 \end_layout
7509
7510 \begin_layout LyX-Code
7511
7512 \backslash
7513 DeclareLaTeXClass[thesis,book]{thesis}
7514 \end_layout
7515
7516 \begin_layout Standard
7517 If, on the other hand, the new class is not based upon an existing class,
7518  you will probably have to 
7519 \begin_inset Quotes eld
7520 \end_inset
7521
7522 roll your own
7523 \begin_inset Quotes erd
7524 \end_inset
7525
7526  layout.
7527  We strongly suggest copying an existing layout file which uses a similar
7528  \SpecialChar LaTeX
7529  class and then modifying it, if you can do so.
7530  At least use an existing file as a starting point so you can find out what
7531  items you need to worry about.
7532  Again, the specifics are covered below.
7533 \end_layout
7534
7535 \begin_layout Subsection
7536 Creating templates
7537 \begin_inset CommandInset label
7538 LatexCommand label
7539 name "subsec:Creating-Templates"
7540
7541 \end_inset
7542
7543
7544 \end_layout
7545
7546 \begin_layout Standard
7547 Once you have written a layout file for a new document class, you might
7548  want to consider writing a 
7549 \emph on
7550 template
7551 \emph default
7552  for it, too.
7553  A template acts as a kind of tutorial for your layout, showing how it might
7554  be used, though containing dummy content.
7555  You can of course look at the various templates included with \SpecialChar LyX
7556  for ideas.
7557 \end_layout
7558
7559 \begin_layout Standard
7560 Templates are created just like usual documents: using \SpecialChar LyX
7561 .
7562  The only difference is that usual documents contain all possible settings,
7563  including the font scheme and the paper size.
7564  Usually a user doesn't want a template to overwrite his preferred settings
7565  for such parameters.
7566  For that reason, the designer of a template should remove the corresponding
7567  commands like 
7568 \begin_inset Flex Code
7569 status collapsed
7570
7571 \begin_layout Plain Layout
7572
7573 \backslash
7574 font_roman
7575 \end_layout
7576
7577 \end_inset
7578
7579  or 
7580 \begin_inset Flex Code
7581 status collapsed
7582
7583 \begin_layout Plain Layout
7584
7585 \backslash
7586 papersize
7587 \end_layout
7588
7589 \end_inset
7590
7591  from the template \SpecialChar LyX
7592  file.
7593  This can be done with any simple text-editor, for example 
7594 \begin_inset Flex Code
7595 status collapsed
7596
7597 \begin_layout Plain Layout
7598 vi
7599 \end_layout
7600
7601 \end_inset
7602
7603  or 
7604 \begin_inset Flex Code
7605 status collapsed
7606
7607 \begin_layout Plain Layout
7608 notepad
7609 \end_layout
7610
7611 \end_inset
7612
7613 .
7614 \end_layout
7615
7616 \begin_layout Standard
7617 Put the edited template files you create in 
7618 \begin_inset Flex Code
7619 status collapsed
7620
7621 \begin_layout Plain Layout
7622 UserDir/templates/
7623 \end_layout
7624
7625 \end_inset
7626
7627 , copy the ones you use from the global template directory in 
7628 \begin_inset Flex Code
7629 status collapsed
7630
7631 \begin_layout Plain Layout
7632 LyXDir/templates/
7633 \end_layout
7634
7635 \end_inset
7636
7637  to the same place, and redefine the template path in the 
7638 \begin_inset Flex Noun
7639 status collapsed
7640
7641 \begin_layout Plain Layout
7642 Tools\SpecialChar menuseparator
7643 Preferences\SpecialChar menuseparator
7644 Paths
7645 \end_layout
7646
7647 \end_inset
7648
7649  dialog.
7650 \end_layout
7651
7652 \begin_layout Standard
7653 Note, by the way, that there is a template which has a particular meaning:
7654 \begin_inset Newline linebreak
7655 \end_inset
7656
7657
7658 \begin_inset Flex Code
7659 status collapsed
7660
7661 \begin_layout Plain Layout
7662 defaults.lyx
7663 \end_layout
7664
7665 \end_inset
7666
7667 .
7668  This template is loaded every time you create a new document with 
7669 \begin_inset Flex Noun
7670 status collapsed
7671
7672 \begin_layout Plain Layout
7673 File\SpecialChar menuseparator
7674 New
7675 \end_layout
7676
7677 \end_inset
7678
7679  in order to provide useful defaults.
7680  To create this template from inside \SpecialChar LyX
7681 , all you have to do is to open a document
7682  with the correct settings, and use the 
7683 \begin_inset Flex Noun
7684 status collapsed
7685
7686 \begin_layout Plain Layout
7687 Save as Document Defaults
7688 \end_layout
7689
7690 \end_inset
7691
7692  button.
7693 \end_layout
7694
7695 \begin_layout Subsection
7696 Upgrading old layout files
7697 \end_layout
7698
7699 \begin_layout Standard
7700 The format of layout files changes with each \SpecialChar LyX
7701  release, so old layout files
7702  need to be converted to the new format.
7703  If \SpecialChar LyX
7704  reads a layout file in an older format, it automatically calls the
7705  script 
7706 \begin_inset Flex Code
7707 status collapsed
7708
7709 \begin_layout Plain Layout
7710 layout2layout.py
7711 \end_layout
7712
7713 \end_inset
7714
7715  to convert it to a temporary file in current format.
7716  The original file is left untouched.
7717  If you use the layout file often, then, you may want to convert it permanently,
7718  so that \SpecialChar LyX
7719  does not have to do so itself every time.
7720  To do this, you can call the converter manually:
7721 \end_layout
7722
7723 \begin_layout Enumerate
7724 rename the file 
7725 \begin_inset Flex Code
7726 status collapsed
7727
7728 \begin_layout Plain Layout
7729 myclass.layout
7730 \end_layout
7731
7732 \end_inset
7733
7734  to 
7735 \begin_inset Flex Code
7736 status collapsed
7737
7738 \begin_layout Plain Layout
7739 myclass.old
7740 \end_layout
7741
7742 \end_inset
7743
7744
7745 \end_layout
7746
7747 \begin_layout Enumerate
7748 Call the command
7749 \begin_inset Newline newline
7750 \end_inset
7751
7752
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7758 \end_layout
7759
7760 \end_inset
7761
7762
7763 \begin_inset Newline newline
7764 \end_inset
7765
7766 where 
7767 \begin_inset Flex Code
7768 status collapsed
7769
7770 \begin_layout Plain Layout
7771 LyXDir
7772 \end_layout
7773
7774 \end_inset
7775
7776  is the name of your \SpecialChar LyX
7777  system directory.
7778 \end_layout
7779
7780 \begin_layout Standard
7781 Note that manual conversion does not affect included files, so these will
7782  have to be converted separately.
7783 \end_layout
7784
7785 \begin_layout Subsection
7786 \begin_inset CommandInset label
7787 LatexCommand label
7788 name "subsec:Cite-Engine-Files"
7789
7790 \end_inset
7791
7792 Cite engine files
7793 \end_layout
7794
7795 \begin_layout Standard
7796 A specific form of layout files are the so-called 
7797 \begin_inset Flex Code
7798 status collapsed
7799
7800 \begin_layout Plain Layout
7801 *.citeengine
7802 \end_layout
7803
7804 \end_inset
7805
7806  files that are located in the 
7807 \begin_inset Flex Code
7808 status collapsed
7809
7810 \begin_layout Plain Layout
7811 citeengines/
7812 \end_layout
7813
7814 \end_inset
7815
7816  sub-directory.
7817  Their purpose is to define the specifics of \SpecialChar LaTeX
7818  packages aimed at bibliography
7819  generation, such as 
7820 \family sans
7821 natbib
7822 \family default
7823 ,
7824 \family sans
7825  jurabib
7826 \family default
7827  or 
7828 \family sans
7829 biblatex
7830 \family default
7831 , but also the way how normal Bib\SpecialChar TeX
7832  citations (without additional packages)
7833  are handled in \SpecialChar LyX
7834  is defined in such a file.
7835  
7836 \end_layout
7837
7838 \begin_layout Standard
7839 More specifically, it is defined which packages \SpecialChar LyX
7840  needs to load, which citation
7841  commands are available, how these are to be displayed in \SpecialChar LyX
7842  (in the workarea,
7843  the dialogs, the context menus) as well as in the XHTML and plain text
7844  output.
7845  Furthermore, the files specify available style variants (author-year, numerical
7846 , etc.) and their specifics.
7847  The cite engine files are also used to generate the options that are available
7848  in 
7849 \family sans
7850 Document\SpecialChar menuseparator
7851 Settings\SpecialChar menuseparator
7852 Bibliography\SpecialChar menuseparator
7853 Style engine
7854 \family default
7855 .
7856 \end_layout
7857
7858 \begin_layout Standard
7859 Even though a cite engine file is essentially a normal layout file that
7860  could theoretically include any layout information, it usually primarily
7861  includes some specific parameters such as 
7862 \begin_inset Flex Code
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866 MaxCiteNames
7867 \end_layout
7868
7869 \end_inset
7870
7871
7872 \begin_inset Flex Code
7873 status collapsed
7874
7875 \begin_layout Plain Layout
7876 CiteFramework
7877 \end_layout
7878
7879 \end_inset
7880
7881
7882 \begin_inset Flex Code
7883 status collapsed
7884
7885 \begin_layout Plain Layout
7886 CiteEngine
7887 \end_layout
7888
7889 \end_inset
7890
7891  and 
7892 \begin_inset Flex Code
7893 status collapsed
7894
7895 \begin_layout Plain Layout
7896 CiteFormat
7897 \end_layout
7898
7899 \end_inset
7900
7901  blocks.
7902  The syntax of the latter two is described in 
7903 \begin_inset CommandInset ref
7904 LatexCommand ref
7905 reference "subsec:Citation-engine-description"
7906 plural "false"
7907 caps "false"
7908 noprefix "false"
7909
7910 \end_inset
7911
7912  and 
7913 \begin_inset CommandInset ref
7914 LatexCommand ref
7915 reference "subsec:Citation-format-description"
7916
7917 \end_inset
7918
7919 , as well as in the files themselves.
7920 \end_layout
7921
7922 \begin_layout Section
7923 \begin_inset CommandInset label
7924 LatexCommand label
7925 name "sec:TextClass"
7926
7927 \end_inset
7928
7929 The layout file format
7930 \end_layout
7931
7932 \begin_layout Standard
7933 The following sections describe how layout files are structured and written.
7934  Our advice is to go slowly, save and test often.
7935  It is really not that hard, except that the multitude of options can become
7936  overwhelming, especially if you try to check out too many at once.
7937  It becomes easier if you use existing layouts of \SpecialChar LyX
7938  as examples/reference
7939  or if you modify an existing layout to your needs.
7940 \end_layout
7941
7942 \begin_layout Standard
7943 Note that all the tags used in layout files are case-insensitive.
7944  This means that 
7945 \begin_inset Flex Code
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949 Style
7950 \end_layout
7951
7952 \end_inset
7953
7954
7955 \begin_inset Flex Code
7956 status collapsed
7957
7958 \begin_layout Plain Layout
7959 style
7960 \end_layout
7961
7962 \end_inset
7963
7964  and 
7965 \begin_inset Flex Code
7966 status collapsed
7967
7968 \begin_layout Plain Layout
7969 StYlE
7970 \end_layout
7971
7972 \end_inset
7973
7974  are really the same tag.
7975  The possible arguments are printed in brackets after the tag's name.
7976  The default argument is typeset 
7977 \begin_inset Flex Code
7978 status collapsed
7979
7980 \begin_layout Plain Layout
7981
7982 \emph on
7983 emphasized
7984 \end_layout
7985
7986 \end_inset
7987
7988 .
7989  If the argument has a data type like 
7990 \begin_inset Quotes eld
7991 \end_inset
7992
7993 string
7994 \begin_inset Quotes erd
7995 \end_inset
7996
7997  or 
7998 \begin_inset Quotes eld
7999 \end_inset
8000
8001 float
8002 \begin_inset Quotes erd
8003 \end_inset
8004
8005 , the default is shown like this: 
8006 \begin_inset Flex Code
8007 status collapsed
8008
8009 \begin_layout Plain Layout
8010 float=
8011 \emph on
8012 default
8013 \end_layout
8014
8015 \end_inset
8016
8017 .
8018 \end_layout
8019
8020 \begin_layout Subsection
8021 The document class declaration and classification
8022 \end_layout
8023
8024 \begin_layout Standard
8025 Lines in a layout file which begin with 
8026 \begin_inset Flex Code
8027 status collapsed
8028
8029 \begin_layout Plain Layout
8030 #
8031 \end_layout
8032
8033 \end_inset
8034
8035  are comments.
8036  There is one exception to this rule.
8037  All 
8038 \begin_inset Flex Code
8039 status collapsed
8040
8041 \begin_layout Plain Layout
8042 *.layout
8043 \end_layout
8044
8045 \end_inset
8046
8047  files should begin with lines like:
8048 \end_layout
8049
8050 \begin_layout LyX-Code
8051
8052 \size small
8053 #% Do not delete the line below; configure depends on this 
8054 \end_layout
8055
8056 \begin_layout LyX-Code
8057
8058 \size small
8059 #  
8060 \backslash
8061 DeclareLaTeXClass{Article (Standard Class)}
8062 \end_layout
8063
8064 \begin_layout LyX-Code
8065
8066 \size small
8067 #  
8068 \backslash
8069 DeclareCategory{Articles}
8070 \end_layout
8071
8072 \begin_layout Standard
8073 The second and third lines are used when you (re)configure \SpecialChar LyX
8074 .
8075  The layout file is read by the \SpecialChar LaTeX
8076  script 
8077 \begin_inset Flex Code
8078 status collapsed
8079
8080 \begin_layout Plain Layout
8081 chkconfig.ltx
8082 \end_layout
8083
8084 \end_inset
8085
8086 , in a special mode where 
8087 \begin_inset Flex Code
8088 status collapsed
8089
8090 \begin_layout Plain Layout
8091 #
8092 \end_layout
8093
8094 \end_inset
8095
8096  is ignored.
8097  The first line is just a \SpecialChar LaTeX
8098  comment, the second one contains the mandatory
8099  declaration of the text class and the third line contains the optional
8100  classification of the class.
8101  If these lines appear in a file named 
8102 \begin_inset Flex Code
8103 status collapsed
8104
8105 \begin_layout Plain Layout
8106 article.layout
8107 \end_layout
8108
8109 \end_inset
8110
8111 , then they define a text class of name 
8112 \begin_inset Flex Code
8113 status collapsed
8114
8115 \begin_layout Plain Layout
8116 article
8117 \end_layout
8118
8119 \end_inset
8120
8121  (the name of the layout file) which uses the \SpecialChar LaTeX
8122  document class 
8123 \begin_inset Flex Code
8124 status collapsed
8125
8126 \begin_layout Plain Layout
8127 article.cls
8128 \end_layout
8129
8130 \end_inset
8131
8132  (the default is to use the same name as the layout).
8133  The string 
8134 \begin_inset Quotes eld
8135 \end_inset
8136
8137 Article (Standard Class)
8138 \begin_inset Quotes erd
8139 \end_inset
8140
8141  that appears above is used as a description of the text class in the 
8142 \begin_inset Flex Noun
8143 status collapsed
8144
8145 \begin_layout Plain Layout
8146 Document\SpecialChar menuseparator
8147 Settings
8148 \end_layout
8149
8150 \end_inset
8151
8152  dialog.
8153  The category (
8154 \begin_inset Quotes eld
8155 \end_inset
8156
8157 Articles
8158 \begin_inset Quotes erd
8159 \end_inset
8160
8161  in the example) is also used in the 
8162 \begin_inset Flex Noun
8163 status collapsed
8164
8165 \begin_layout Plain Layout
8166 Document\SpecialChar menuseparator
8167 Settings
8168 \end_layout
8169
8170 \end_inset
8171
8172  dialog: the text classes are grouped by these categories (which are usually
8173  genres, so typical categories are 
8174 \begin_inset Quotes eld
8175 \end_inset
8176
8177 Articles
8178 \begin_inset Quotes erd
8179 \end_inset
8180
8181
8182 \begin_inset Quotes eld
8183 \end_inset
8184
8185 Books
8186 \begin_inset Quotes erd
8187 \end_inset
8188
8189
8190 \begin_inset Quotes eld
8191 \end_inset
8192
8193 Reports
8194 \begin_inset Quotes erd
8195 \end_inset
8196
8197
8198 \begin_inset Quotes eld
8199 \end_inset
8200
8201 Letters
8202 \begin_inset Quotes erd
8203 \end_inset
8204
8205
8206 \begin_inset Quotes eld
8207 \end_inset
8208
8209 Presentations
8210 \begin_inset Quotes erd
8211 \end_inset
8212
8213
8214 \begin_inset Quotes eld
8215 \end_inset
8216
8217 Curricula Vitae
8218 \begin_inset Quotes erd
8219 \end_inset
8220
8221  etc.).
8222  If no category has been declared, the class will be put in the 
8223 \begin_inset Quotes eld
8224 \end_inset
8225
8226 Uncategorized
8227 \begin_inset Quotes erd
8228 \end_inset
8229
8230  group.
8231 \end_layout
8232
8233 \begin_layout Standard
8234 Let's assume that you wrote your own text class that uses the 
8235 \begin_inset Flex Code
8236 status collapsed
8237
8238 \begin_layout Plain Layout
8239 article.cls
8240 \end_layout
8241
8242 \end_inset
8243
8244  document class, but where you changed the appearance of the section headings.
8245  If you put it in a file 
8246 \begin_inset Flex Code
8247 status collapsed
8248
8249 \begin_layout Plain Layout
8250 myarticle.layout
8251 \end_layout
8252
8253 \end_inset
8254
8255 , the header of this file should be:
8256 \end_layout
8257
8258 \begin_layout LyX-Code
8259
8260 \size small
8261 #% Do not delete the line below; configure depends on this 
8262 \end_layout
8263
8264 \begin_layout LyX-Code
8265
8266 \size small
8267 #  
8268 \backslash
8269 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8270 \end_layout
8271
8272 \begin_layout LyX-Code
8273
8274 \size small
8275 #  
8276 \backslash
8277 DeclareCategory{Articles}
8278 \end_layout
8279
8280 \begin_layout Standard
8281 This declares a text class 
8282 \begin_inset Flex Code
8283 status collapsed
8284
8285 \begin_layout Plain Layout
8286 myarticle
8287 \end_layout
8288
8289 \end_inset
8290
8291 , associated with the \SpecialChar LaTeX
8292  document class 
8293 \begin_inset Flex Code
8294 status collapsed
8295
8296 \begin_layout Plain Layout
8297 article.cls
8298 \end_layout
8299
8300 \end_inset
8301
8302  and described as 
8303 \begin_inset Quotes eld
8304 \end_inset
8305
8306 Article (with My Own Headings)
8307 \begin_inset Quotes erd
8308 \end_inset
8309
8310 .
8311  If your text class depends on several packages, you can declare it as:
8312 \end_layout
8313
8314 \begin_layout LyX-Code
8315
8316 \size small
8317 #% Do not delete the line below; configure depends on this 
8318 \end_layout
8319
8320 \begin_layout LyX-Code
8321
8322 \size small
8323 #  
8324 \backslash
8325 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8326 \end_layout
8327
8328 \begin_layout LyX-Code
8329
8330 \size small
8331 #  
8332 \backslash
8333 DeclareCategory{Articles}
8334 \end_layout
8335
8336 \begin_layout Standard
8337 This indicates that your text class uses the 
8338 \begin_inset Flex Code
8339 status collapsed
8340
8341 \begin_layout Plain Layout
8342 foo.sty
8343 \end_layout
8344
8345 \end_inset
8346
8347  package.
8348  
8349 \change_deleted 5863208 1594239179
8350 Finally, it is also possible to declare classes for DocBook code.
8351  Typical declarations will look like:
8352 \end_layout
8353
8354 \begin_layout LyX-Code
8355
8356 \change_deleted 5863208 1594239179
8357
8358 \size small
8359 #% Do not delete the line below; configure depends on this 
8360 \end_layout
8361
8362 \begin_layout LyX-Code
8363
8364 \change_deleted 5863208 1594239179
8365
8366 \size small
8367
8368 \backslash
8369 DeclareDocBookClass[article]{SGML (DocBook Article)}
8370 \end_layout
8371
8372 \begin_layout LyX-Code
8373
8374 \change_deleted 5863208 1594239179
8375
8376 \size small
8377
8378 \backslash
8379 DeclareCategory{Articles (DocBook)}
8380 \change_unchanged
8381
8382 \end_layout
8383
8384 \begin_layout Standard
8385 Note that these declarations can also be given an optional parameter declaring
8386  the name of the document class (but not a list).
8387 \end_layout
8388
8389 \begin_layout Standard
8390 So, to be as explicit as possible, the form of the layout declaration is:
8391 \end_layout
8392
8393 \begin_layout LyX-Code
8394
8395 \size small
8396 #  
8397 \backslash
8398 DeclareLaTeXClass[class,package.sty]{layout description}
8399 \end_layout
8400
8401 \begin_layout LyX-Code
8402
8403 \size small
8404 #  
8405 \backslash
8406 DeclareCategory{category}
8407 \end_layout
8408
8409 \begin_layout Standard
8410 The class need only be specified if the name of the \SpecialChar LaTeX
8411  class file and the
8412  name of the layout file are different or if there are packages to load.
8413  If the name of the class file is not specified, then \SpecialChar LyX
8414  will simply assume
8415  that it is the same as the name of the layout file.
8416 \end_layout
8417
8418 \begin_layout Standard
8419 When the text class has been modified to your taste, all you have to do
8420  is to copy it either to 
8421 \begin_inset Flex Code
8422 status collapsed
8423
8424 \begin_layout Plain Layout
8425 LyXDir/layouts/
8426 \end_layout
8427
8428 \end_inset
8429
8430  or to 
8431 \begin_inset Flex Code
8432 status collapsed
8433
8434 \begin_layout Plain Layout
8435 UserDir/layouts
8436 \end_layout
8437
8438 \end_inset
8439
8440 , run 
8441 \begin_inset Flex Noun
8442 status collapsed
8443
8444 \begin_layout Plain Layout
8445 Tools\SpecialChar menuseparator
8446 Reconfigure
8447 \end_layout
8448
8449 \end_inset
8450
8451 , exit \SpecialChar LyX
8452  and restart.
8453  Then your new text class should be available along with the others.
8454 \end_layout
8455
8456 \begin_layout Standard
8457 Once the layout file is installed, you can edit it and see your changes
8458  without having to reconfigure or to restart \SpecialChar LyX
8459 .
8460 \begin_inset Foot
8461 status collapsed
8462
8463 \begin_layout Plain Layout
8464 In versions of \SpecialChar LyX
8465  prior to 1.6, this was not true.
8466  As a result, editing layout files was very time consuming, since you had
8467  constantly to restart \SpecialChar LyX
8468  to see changes.
8469 \end_layout
8470
8471 \end_inset
8472
8473  You can force a reload of the current layout by using the \SpecialChar LyX
8474  function 
8475 \begin_inset Flex Noun
8476 status collapsed
8477
8478 \begin_layout Plain Layout
8479 layout-reload
8480 \end_layout
8481
8482 \end_inset
8483
8484 .
8485  There is no default binding for this function—though, of course, you can
8486  bind it to a key yourself.
8487  But you will normally use this function simply by entering it in the mini-buffe
8488 r.
8489  
8490 \end_layout
8491
8492 \begin_layout Standard
8493
8494 \emph on
8495 Warning
8496 \emph default
8497
8498 \begin_inset Flex Noun
8499 status collapsed
8500
8501 \begin_layout Plain Layout
8502 layout-reload
8503 \end_layout
8504
8505 \end_inset
8506
8507  is very much an `advanced feature'.
8508  It is 
8509 \emph on
8510 strongly
8511 \emph default
8512  recommended that you save your work before using this function.
8513  In fact, it is 
8514 \emph on
8515 strongly
8516 \emph default
8517  recommended that you not attempt to edit layout information while simultaneousl
8518 y working on a document that you care about.
8519  Use a test document.
8520  Syntax errors and the like in your layout file could cause peculiar behavior.
8521  In particular, such errors could cause \SpecialChar LyX
8522  to regard the current layout as
8523  invalid and to attempt to switch to some other layout.
8524 \begin_inset Foot
8525 status collapsed
8526
8527 \begin_layout Plain Layout
8528 Really bad syntax errors may even caused \SpecialChar LyX
8529  to exit.
8530  This is because certain sorts of errors may make \SpecialChar LyX
8531  unable to read 
8532 \emph on
8533 any
8534 \emph default
8535  layout information.
8536  Please be careful.
8537 \end_layout
8538
8539 \end_inset
8540
8541  The \SpecialChar LyX
8542  team strives to keep \SpecialChar LyX
8543  stable in such situations, but safe is better
8544  than sorry.
8545 \begin_inset Foot
8546 status collapsed
8547
8548 \begin_layout Plain Layout
8549 While we're giving advice: make regular backups.
8550  And be nice to your mother.
8551 \end_layout
8552
8553 \end_inset
8554
8555
8556 \end_layout
8557
8558 \begin_layout Subsection
8559 The Module declaration
8560 \end_layout
8561
8562 \begin_layout Standard
8563 A module must begin with a line like the following:
8564 \end_layout
8565
8566 \begin_layout LyX-Code
8567 #
8568 \backslash
8569 DeclareLyXModule[endnotes.sty]{Endnotes}
8570 \change_inserted -712698321 1554395911
8571
8572 \end_layout
8573
8574 \begin_layout LyX-Code
8575
8576 \change_inserted -712698321 1554395924
8577
8578 \size small
8579 #
8580 \backslash
8581 DeclareCategory{Foot- and Endnotes}
8582 \change_deleted -712698321 1554395911
8583
8584 \size default
8585  
8586 \change_unchanged
8587
8588 \end_layout
8589
8590 \begin_layout Standard
8591 The mandatory argument
8592 \change_inserted -712698321 1554395956
8593  of 
8594 \family typewriter
8595
8596 \backslash
8597 DeclareLyXModule
8598 \change_unchanged
8599
8600 \family default
8601 , in curly brackets, is the name of the module, as it should appear in 
8602 \begin_inset Flex Noun
8603 status collapsed
8604
8605 \begin_layout Plain Layout
8606 Document\SpecialChar menuseparator
8607 Settings\SpecialChar menuseparator
8608 Modules
8609 \end_layout
8610
8611 \end_inset
8612
8613 .
8614  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8615  packages
8616  on which the module depends.
8617  It is also possible to use the form 
8618 \begin_inset Flex Noun
8619 status collapsed
8620
8621 \begin_layout Plain Layout
8622 from->to
8623 \end_layout
8624
8625 \end_inset
8626
8627  as an optional argument, which declares that the module can only be used
8628  when there exists a conversion chain between the formats `
8629 \begin_inset Flex Code
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633 from
8634 \end_layout
8635
8636 \end_inset
8637
8638 ' and `
8639 \begin_inset Flex Code
8640 status collapsed
8641
8642 \begin_layout Plain Layout
8643 to
8644 \end_layout
8645
8646 \end_inset
8647
8648 '.
8649
8650 \change_inserted -712698321 1554396133
8651  The 
8652 \family typewriter
8653
8654 \backslash
8655 DeclareCategory
8656 \family default
8657  declaration is not strictly mandatory, but you should add it, since it
8658  is helpful to find the module.
8659  Please have a look at the existing module categories and if appropriate,
8660  use one of those.
8661 \change_unchanged
8662
8663 \end_layout
8664
8665 \begin_layout Standard
8666 The module 
8667 \change_inserted -712698321 1554395988
8668 and category 
8669 \change_unchanged
8670 declaration should then be followed by lines like the following:
8671 \begin_inset Foot
8672 status collapsed
8673
8674 \begin_layout Plain Layout
8675 Preferably in English if the module should be published with \SpecialChar LyX
8676 .
8677  This description will appear in the list of messages to be translated and
8678  will be thus translated with the next interface update.
8679 \end_layout
8680
8681 \end_inset
8682
8683
8684 \end_layout
8685
8686 \begin_layout LyX-Code
8687 #DescriptionBegin 
8688 \end_layout
8689
8690 \begin_layout LyX-Code
8691 #Adds an endnote command, in addition to footnotes.
8692  
8693 \end_layout
8694
8695 \begin_layout LyX-Code
8696 #You will need to add  
8697 \backslash
8698 theendnotes in TeX code where you 
8699 \end_layout
8700
8701 \begin_layout LyX-Code
8702 #want the endnotes to appear.
8703  
8704 \end_layout
8705
8706 \begin_layout LyX-Code
8707 #DescriptionEnd 
8708 \end_layout
8709
8710 \begin_layout LyX-Code
8711 #Requires: somemodule | othermodule
8712 \end_layout
8713
8714 \begin_layout LyX-Code
8715 #Excludes: badmodule
8716 \end_layout
8717
8718 \begin_layout Standard
8719 The description is used in 
8720 \begin_inset Flex Noun
8721 status collapsed
8722
8723 \begin_layout Plain Layout
8724 Document\SpecialChar menuseparator
8725 Settings\SpecialChar menuseparator
8726 Modules
8727 \end_layout
8728
8729 \end_inset
8730
8731  to provide the user with information about what the module does.
8732  The 
8733 \begin_inset Flex Code
8734 status collapsed
8735
8736 \begin_layout Plain Layout
8737 Requires
8738 \end_layout
8739
8740 \end_inset
8741
8742  line is used to identify other modules with which this one must be used;
8743  the 
8744 \begin_inset Flex Code
8745 status collapsed
8746
8747 \begin_layout Plain Layout
8748 Excludes
8749 \end_layout
8750
8751 \end_inset
8752
8753  line is used to identify modules with which this one may not be used.
8754  Both are optional, and, as shown, multiple modules should be separated
8755  with the pipe symbol: |.
8756  Note that the required modules are treated disjunctively: 
8757 \emph on
8758 at least one
8759 \emph default
8760  of the required modules must be used.
8761  Similarly, 
8762 \emph on
8763 no
8764 \emph default
8765  excluded module may be used.
8766  Note that modules are identified here by their filenames without the 
8767 \begin_inset Flex Code
8768 status collapsed
8769
8770 \begin_layout Plain Layout
8771 .module
8772 \end_layout
8773
8774 \end_inset
8775
8776  extension.
8777  So 
8778 \begin_inset Flex Code
8779 status collapsed
8780
8781 \begin_layout Plain Layout
8782 somemodule
8783 \end_layout
8784
8785 \end_inset
8786
8787  is really 
8788 \begin_inset Flex Code
8789 status collapsed
8790
8791 \begin_layout Plain Layout
8792 somemodule.module
8793 \end_layout
8794
8795 \end_inset
8796
8797 .
8798 \end_layout
8799
8800 \begin_layout Subsection
8801 The CiteEngine file declaration
8802 \end_layout
8803
8804 \begin_layout Standard
8805 A cite engine file must begin with a line like the following:
8806 \end_layout
8807
8808 \begin_layout LyX-Code
8809 #
8810 \backslash
8811 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8812 \end_layout
8813
8814 \begin_layout Standard
8815 The mandatory argument, in curly brackets, is the name of the cite style,
8816  as it should appear in 
8817 \begin_inset Flex Noun
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 Document\SpecialChar menuseparator
8822 Settings\SpecialChar menuseparator
8823 Bibliography
8824 \end_layout
8825
8826 \end_inset
8827
8828 .
8829  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8830  packages
8831  on which the cite engine depends.
8832 \end_layout
8833
8834 \begin_layout Standard
8835 The cite engine declaration should then be followed by lines like the following:
8836 \begin_inset Foot
8837 status collapsed
8838
8839 \begin_layout Plain Layout
8840 Preferably in English if the module should be published with \SpecialChar LyX
8841 .
8842  This description will appear in the list of messages to be translated and
8843  will be thus translated with the next interface update.
8844 \end_layout
8845
8846 \end_inset
8847
8848
8849 \end_layout
8850
8851 \begin_layout LyX-Code
8852 # DescriptionBegin
8853 \end_layout
8854
8855 \begin_layout LyX-Code
8856 #   Biblatex supports many author-year and numerical styles.
8857 \end_layout
8858
8859 \begin_layout LyX-Code
8860 #   It is mainly aimed at the Humanities.
8861  It is highly
8862 \end_layout
8863
8864 \begin_layout LyX-Code
8865 #   customizable, fully localized and provides many features
8866 \end_layout
8867
8868 \begin_layout LyX-Code
8869 #   that are not possible with BibTeX.
8870  The use of 'biber' as
8871 \end_layout
8872
8873 \begin_layout LyX-Code
8874 #   bibliography processor is advised.
8875 \end_layout
8876
8877 \begin_layout LyX-Code
8878 # DescriptionEnd
8879 \end_layout
8880
8881 \begin_layout Standard
8882 The description is used in 
8883 \begin_inset Flex Noun
8884 status collapsed
8885
8886 \begin_layout Plain Layout
8887 Document\SpecialChar menuseparator
8888 Settings\SpecialChar menuseparator
8889 Bibliography
8890 \end_layout
8891
8892 \end_inset
8893
8894  to provide the user with information about the cite engine.
8895 \end_layout
8896
8897 \begin_layout Subsection
8898 Format number
8899 \end_layout
8900
8901 \begin_layout Standard
8902 The first non-comment line of any layout file, included file, or module
8903  
8904 \emph on
8905 must
8906 \emph default
8907  contain the file format number:
8908 \end_layout
8909
8910 \begin_layout Description
8911 \begin_inset Flex Code
8912 status collapsed
8913
8914 \begin_layout Plain Layout
8915 Format
8916 \end_layout
8917
8918 \end_inset
8919
8920  [
8921 \begin_inset Flex Code
8922 status collapsed
8923
8924 \begin_layout Plain Layout
8925 int
8926 \end_layout
8927
8928 \end_inset
8929
8930 ] The format number of the layout file.
8931 \end_layout
8932
8933 \begin_layout Standard
8934 This tag was introduced with \SpecialChar LyX
8935
8936 \begin_inset space ~
8937 \end_inset
8938
8939 1.4.0.
8940  Layout files from older \SpecialChar LyX
8941  versions do not have an explicit file format and
8942  are considered to have 
8943 \begin_inset Flex Code
8944 status collapsed
8945
8946 \begin_layout Plain Layout
8947 Format
8948 \begin_inset space ~
8949 \end_inset
8950
8951 1
8952 \end_layout
8953
8954 \end_inset
8955
8956 .
8957  The format for the present version of \SpecialChar LyX
8958  is format 60.
8959  But each version of \SpecialChar LyX
8960  is capable of reading earlier versions' layout files,
8961  just as they are capable of reading files produced by earlier versions
8962  of \SpecialChar LyX
8963 .
8964  There is, however, no provision for converting to earlier formats.
8965 \end_layout
8966
8967 \begin_layout Subsection
8968 \begin_inset CommandInset label
8969 LatexCommand label
8970 name "subsec:General-text-class"
8971
8972 \end_inset
8973
8974 General text class parameters
8975 \end_layout
8976
8977 \begin_layout Standard
8978 These are general parameters that govern the behavior of an entire document
8979  class.
8980  (This does 
8981 \emph on
8982 not
8983 \emph default
8984  mean that they must appear in 
8985 \begin_inset Flex Code
8986 status collapsed
8987
8988 \begin_layout Plain Layout
8989 .layout
8990 \end_layout
8991
8992 \end_inset
8993
8994  files rather than in modules.
8995  A module can contain any layout tag.)
8996 \end_layout
8997
8998 \begin_layout Description
8999
9000 \change_inserted -712698321 1526899478
9001 \begin_inset Flex Code
9002 status collapsed
9003
9004 \begin_layout Plain Layout
9005
9006 \change_inserted -712698321 1526898610
9007 AddToCiteEngine <engine>
9008 \end_layout
9009
9010 \end_inset
9011
9012  Extends the possibilities for displaying citation references.
9013  See 
9014 \begin_inset CommandInset ref
9015 LatexCommand ref
9016 reference "subsec:Citation-engine-description"
9017 plural "false"
9018 caps "false"
9019 noprefix "false"
9020
9021 \end_inset
9022
9023  for details.
9024  Must end with 
9025 \begin_inset Flex Code
9026 status collapsed
9027
9028 \begin_layout Plain Layout
9029
9030 \change_inserted -712698321 1526898823
9031 End
9032 \change_unchanged
9033
9034 \end_layout
9035
9036 \end_inset
9037
9038 .
9039 \end_layout
9040
9041 \begin_layout Description
9042 \begin_inset Flex Code
9043 status collapsed
9044
9045 \begin_layout Plain Layout
9046 AddToHTMLPreamble
9047 \end_layout
9048
9049 \end_inset
9050
9051  Adds information that will be output in the 
9052 \begin_inset Flex Code
9053 status collapsed
9054
9055 \begin_layout Plain Layout
9056 <head>
9057 \end_layout
9058
9059 \end_inset
9060
9061  block when the document is output to XHTML.
9062  Typically, this would be used to output CSS style information, but it can
9063  be used for anything that can appear in 
9064 \begin_inset Flex Code
9065 status collapsed
9066
9067 \begin_layout Plain Layout
9068 <head>
9069 \end_layout
9070
9071 \end_inset
9072
9073 .
9074  Must end with 
9075 \begin_inset Quotes eld
9076 \end_inset
9077
9078
9079 \begin_inset Flex Code
9080 status collapsed
9081
9082 \begin_layout Plain Layout
9083 EndPreamble
9084 \end_layout
9085
9086 \end_inset
9087
9088
9089 \begin_inset Quotes erd
9090 \end_inset
9091
9092 .
9093 \end_layout
9094
9095 \begin_layout Description
9096 \begin_inset Flex Code
9097 status collapsed
9098
9099 \begin_layout Plain Layout
9100 AddToPreamble
9101 \end_layout
9102
9103 \end_inset
9104
9105  Adds information to the document preamble.
9106  Must end with
9107 \begin_inset Newline newline
9108 \end_inset
9109
9110
9111 \begin_inset Quotes eld
9112 \end_inset
9113
9114
9115 \begin_inset Flex Code
9116 status collapsed
9117
9118 \begin_layout Plain Layout
9119 EndPreamble
9120 \end_layout
9121
9122 \end_inset
9123
9124
9125 \begin_inset Quotes erd
9126 \end_inset
9127
9128 .
9129 \change_inserted -712698321 1562592950
9130
9131 \end_layout
9132
9133 \begin_layout Description
9134
9135 \change_inserted -712698321 1562593040
9136 \begin_inset Flex Code
9137 status collapsed
9138
9139 \begin_layout Plain Layout
9140
9141 \change_inserted -712698321 1562592954
9142 BibInToc
9143 \end_layout
9144
9145 \end_inset
9146
9147  [
9148 \begin_inset Flex Code
9149 status collapsed
9150
9151 \begin_layout Plain Layout
9152
9153 \change_inserted -712698321 1562592950
9154
9155 \emph on
9156 0
9157 \end_layout
9158
9159 \end_inset
9160
9161 ,
9162 \begin_inset space \thinspace{}
9163 \end_inset
9164
9165
9166 \begin_inset Flex Code
9167 status collapsed
9168
9169 \begin_layout Plain Layout
9170
9171 \change_inserted -712698321 1562592950
9172 1
9173 \end_layout
9174
9175 \end_inset
9176
9177 ] If the document class adds the bibliography to the table of contents,
9178  add this option with value 
9179 \begin_inset Flex Code
9180 status collapsed
9181
9182 \begin_layout Plain Layout
9183
9184 \change_inserted -712698321 1562592996
9185 1
9186 \change_unchanged
9187
9188 \end_layout
9189
9190 \end_inset
9191
9192  (or 
9193 \begin_inset Flex Code
9194 status collapsed
9195
9196 \begin_layout Plain Layout
9197
9198 \change_inserted -712698321 1562593006
9199 true
9200 \change_unchanged
9201
9202 \end_layout
9203
9204 \end_inset
9205
9206 ).
9207  This prevents the bibliography from being added twice.
9208 \change_unchanged
9209
9210 \end_layout
9211
9212 \begin_layout Description
9213 \begin_inset Flex Code
9214 status collapsed
9215
9216 \begin_layout Plain Layout
9217 CiteEngine <engine>
9218 \end_layout
9219
9220 \end_inset
9221
9222  Defines the possibilities for displaying citation references.
9223  See 
9224 \begin_inset CommandInset ref
9225 LatexCommand ref
9226 reference "subsec:Citation-engine-description"
9227 plural "false"
9228 caps "false"
9229 noprefix "false"
9230
9231 \end_inset
9232
9233  for details.
9234  Must end with 
9235 \begin_inset Quotes eld
9236 \end_inset
9237
9238
9239 \begin_inset Flex Code
9240 status collapsed
9241
9242 \begin_layout Plain Layout
9243 End
9244 \end_layout
9245
9246 \end_inset
9247
9248
9249 \begin_inset Quotes erd
9250 \end_inset
9251
9252 .
9253  Primarily used in cite engine files (see 
9254 \begin_inset CommandInset ref
9255 LatexCommand ref
9256 reference "subsec:Cite-Engine-Files"
9257 plural "false"
9258 caps "false"
9259 noprefix "false"
9260
9261 \end_inset
9262
9263 ).
9264
9265 \change_inserted -712698321 1526898530
9266  Note that if you specify this in a layout file or module, any cite engine
9267  definition will be overridden.
9268  Also see 
9269 \begin_inset Flex Code
9270 status collapsed
9271
9272 \begin_layout Plain Layout
9273
9274 \change_inserted -712698321 1526898530
9275 AddToCiteEngine
9276 \change_unchanged
9277
9278 \end_layout
9279
9280 \end_inset
9281
9282 .
9283 \change_unchanged
9284
9285 \end_layout
9286
9287 \begin_layout Description
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292 CiteFormat
9293 \end_layout
9294
9295 \end_inset
9296
9297  Defines formats for use in the display of bibliographic information.
9298  See 
9299 \begin_inset CommandInset ref
9300 LatexCommand ref
9301 reference "subsec:Citation-format-description"
9302
9303 \end_inset
9304
9305  for details.
9306  Must end with 
9307 \begin_inset Quotes eld
9308 \end_inset
9309
9310
9311 \begin_inset Flex Code
9312 status collapsed
9313
9314 \begin_layout Plain Layout
9315 End
9316 \end_layout
9317
9318 \end_inset
9319
9320
9321 \begin_inset Quotes erd
9322 \end_inset
9323
9324 .
9325  Primarily used in cite engine files (see 
9326 \begin_inset CommandInset ref
9327 LatexCommand ref
9328 reference "subsec:Cite-Engine-Files"
9329 plural "false"
9330 caps "false"
9331 noprefix "false"
9332
9333 \end_inset
9334
9335 ).
9336
9337 \change_inserted -712698321 1526898585
9338  A cite format defined in a layout or module will override the cite engine
9339  definition.
9340 \change_unchanged
9341
9342 \end_layout
9343
9344 \begin_layout Description
9345 \begin_inset Flex Code
9346 status collapsed
9347
9348 \begin_layout Plain Layout
9349 CiteFramework
9350 \end_layout
9351
9352 \end_inset
9353
9354  [
9355 \begin_inset Flex Code
9356 status collapsed
9357
9358 \begin_layout Plain Layout
9359
9360 \emph on
9361 bibtex
9362 \end_layout
9363
9364 \end_inset
9365
9366 ,
9367 \begin_inset Flex Code
9368 status collapsed
9369
9370 \begin_layout Plain Layout
9371 biblatex
9372 \end_layout
9373
9374 \end_inset
9375
9376 ] Determines whether 
9377 \family sans
9378 Biblatex
9379 \family default
9380  or Bib\SpecialChar TeX
9381  is used to generate a Bibliography.
9382  Primarily used in cite engine files (see 
9383 \begin_inset CommandInset ref
9384 LatexCommand ref
9385 reference "subsec:Cite-Engine-Files"
9386 plural "false"
9387 caps "false"
9388 noprefix "false"
9389
9390 \end_inset
9391
9392 ).
9393 \end_layout
9394
9395 \begin_layout Description
9396 \begin_inset Flex Code
9397 status collapsed
9398
9399 \begin_layout Plain Layout
9400 ClassOptions
9401 \end_layout
9402
9403 \end_inset
9404
9405  Describes various global options supported by the document class.
9406  See 
9407 \begin_inset CommandInset ref
9408 LatexCommand ref
9409 reference "subsec:ClassOptions"
9410
9411 \end_inset
9412
9413  for a description.
9414  Must end with 
9415 \begin_inset Quotes eld
9416 \end_inset
9417
9418
9419 \begin_inset Flex Code
9420 status collapsed
9421
9422 \begin_layout Plain Layout
9423 End
9424 \end_layout
9425
9426 \end_inset
9427
9428
9429 \begin_inset Quotes erd
9430 \end_inset
9431
9432 .
9433 \end_layout
9434
9435 \begin_layout Description
9436 \begin_inset Flex Code
9437 status collapsed
9438
9439 \begin_layout Plain Layout
9440 Columns
9441 \end_layout
9442
9443 \end_inset
9444
9445  [
9446 \begin_inset Flex Code
9447 status collapsed
9448
9449 \begin_layout Plain Layout
9450
9451 \emph on
9452 1
9453 \end_layout
9454
9455 \end_inset
9456
9457 ,
9458 \begin_inset space \thinspace{}
9459 \end_inset
9460
9461
9462 \begin_inset Flex Code
9463 status collapsed
9464
9465 \begin_layout Plain Layout
9466 2
9467 \end_layout
9468
9469 \end_inset
9470
9471 ] Whether the class should 
9472 \emph on
9473 default
9474 \emph default
9475  to having one or two columns.
9476  Can be changed in the 
9477 \begin_inset Flex Noun
9478 status collapsed
9479
9480 \begin_layout Plain Layout
9481 Document\SpecialChar menuseparator
9482 Settings
9483 \end_layout
9484
9485 \end_inset
9486
9487  dialog.
9488 \end_layout
9489
9490 \begin_layout Description
9491 \begin_inset Flex Code
9492 status collapsed
9493
9494 \begin_layout Plain Layout
9495 Counter
9496 \end_layout
9497
9498 \end_inset
9499
9500  [
9501 \begin_inset Flex Code
9502 status collapsed
9503
9504 \begin_layout Plain Layout
9505 string
9506 \end_layout
9507
9508 \end_inset
9509
9510 ] This sequence defines the properties for a counter.
9511  If the counter does not yet exist, it is created; if it does exist, it
9512  is modified.
9513  Must end with 
9514 \begin_inset Quotes eld
9515 \end_inset
9516
9517
9518 \begin_inset Flex Code
9519 status collapsed
9520
9521 \begin_layout Plain Layout
9522 End
9523 \end_layout
9524
9525 \end_inset
9526
9527
9528 \begin_inset Quotes erd
9529 \end_inset
9530
9531 .
9532 \begin_inset Newline newline
9533 \end_inset
9534
9535 See 
9536 \begin_inset CommandInset ref
9537 LatexCommand ref
9538 reference "subsec:Counters"
9539
9540 \end_inset
9541
9542  for details on counters.
9543 \end_layout
9544
9545 \begin_layout Description
9546 \begin_inset Flex Code
9547 status collapsed
9548
9549 \begin_layout Plain Layout
9550 DefaultFont
9551 \end_layout
9552
9553 \end_inset
9554
9555  Sets the default font used to display the document.
9556  See 
9557 \begin_inset CommandInset ref
9558 LatexCommand ref
9559 reference "subsec:Font-description"
9560
9561 \end_inset
9562
9563  for how to declare fonts.
9564  Must end with 
9565 \begin_inset Quotes eld
9566 \end_inset
9567
9568
9569 \begin_inset Flex Code
9570 status collapsed
9571
9572 \begin_layout Plain Layout
9573 EndFont
9574 \end_layout
9575
9576 \end_inset
9577
9578
9579 \begin_inset Quotes erd
9580 \end_inset
9581
9582 .
9583 \end_layout
9584
9585 \begin_layout Description
9586 \begin_inset Flex Code
9587 status collapsed
9588
9589 \begin_layout Plain Layout
9590 DefaultModule
9591 \end_layout
9592
9593 \end_inset
9594
9595  [
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 <module>
9601 \end_layout
9602
9603 \end_inset
9604
9605 ] Specifies a module to be included by default with this document class.
9606  The module is specified as filename without the 
9607 \begin_inset Flex Code
9608 status collapsed
9609
9610 \begin_layout Plain Layout
9611 .module
9612 \end_layout
9613
9614 \end_inset
9615
9616  extension.
9617  The user can still remove the module, but it will be active at the outset.
9618  (This applies only when new files are created, or when this class is chosen
9619  for an existing document.)
9620 \end_layout
9621
9622 \begin_layout Description
9623 \begin_inset Flex Code
9624 status collapsed
9625
9626 \begin_layout Plain Layout
9627 DefaultStyle
9628 \end_layout
9629
9630 \end_inset
9631
9632  [
9633 \begin_inset Flex Code
9634 status collapsed
9635
9636 \begin_layout Plain Layout
9637 <style>
9638 \end_layout
9639
9640 \end_inset
9641
9642 ] This is the style that will be assigned to new paragraphs, usually 
9643 \begin_inset Flex Noun
9644 status collapsed
9645
9646 \begin_layout Plain Layout
9647 Standard
9648 \end_layout
9649
9650 \end_inset
9651
9652 .
9653  This will default to the first defined style if not given, but you are
9654  encouraged to use this directive.
9655 \end_layout
9656
9657 \begin_layout Description
9658
9659 \change_inserted -970929547 1515112870
9660 \begin_inset Flex Code
9661 status collapsed
9662
9663 \begin_layout Plain Layout
9664
9665 \change_inserted -970929547 1515112782
9666 DocBookRoot
9667 \end_layout
9668
9669 \end_inset
9670
9671  [
9672 \begin_inset Flex Code
9673 status collapsed
9674
9675 \begin_layout Plain Layout
9676
9677 \change_inserted -970929547 1515112766
9678 string
9679 \end_layout
9680
9681 \end_inset
9682
9683 ] The root element (at the top of the document) to use when outputting documents
9684  with this class in DocBook.
9685  The default value is 
9686 \begin_inset Quotes eld
9687 \end_inset
9688
9689
9690 \begin_inset Flex Code
9691 status collapsed
9692
9693 \begin_layout Plain Layout
9694
9695 \change_inserted -970929547 1515112845
9696 article
9697 \end_layout
9698
9699 \end_inset
9700
9701
9702 \begin_inset Quotes erd
9703 \end_inset
9704
9705 .
9706
9707 \change_deleted 1075283030 1594226862
9708  
9709 \change_inserted 1075283030 1594226777
9710
9711 \end_layout
9712
9713 \begin_layout Description
9714
9715 \change_inserted 1075283030 1594226859
9716 \begin_inset Flex Code
9717 status collapsed
9718
9719 \begin_layout Plain Layout
9720
9721 \change_inserted 1075283030 1594226785
9722 DocBookForceAbstract
9723 \end_layout
9724
9725 \end_inset
9726
9727  [
9728 \begin_inset Flex Code
9729 status collapsed
9730
9731 \begin_layout Plain Layout
9732
9733 \change_inserted 1075283030 1594226804
9734 boolean
9735 \end_layout
9736
9737 \end_inset
9738
9739 ] If 
9740 \begin_inset Quotes eld
9741 \end_inset
9742
9743
9744 \family typewriter
9745 true
9746 \family default
9747
9748 \begin_inset Quotes erd
9749 \end_inset
9750
9751 , the root element will always have an 
9752 \family typewriter
9753 <abstract>
9754 \family default
9755  tag.
9756  The default value is 
9757 \begin_inset Quotes eld
9758 \end_inset
9759
9760
9761 \family typewriter
9762 false
9763 \family default
9764
9765 \begin_inset Quotes erd
9766 \end_inset
9767
9768 .
9769 \change_unchanged
9770
9771 \end_layout
9772
9773 \begin_layout Description
9774 \begin_inset Flex Code
9775 status collapsed
9776
9777 \begin_layout Plain Layout
9778 ExcludesModule
9779 \end_layout
9780
9781 \end_inset
9782
9783  [
9784 \begin_inset Flex Code
9785 status collapsed
9786
9787 \begin_layout Plain Layout
9788 <module>
9789 \end_layout
9790
9791 \end_inset
9792
9793 ] This tag indicates that the module (which is specified by filename without
9794  the 
9795 \begin_inset Flex Code
9796 status collapsed
9797
9798 \begin_layout Plain Layout
9799 .module
9800 \end_layout
9801
9802 \end_inset
9803
9804  extension) cannot be used with this document class.
9805  This might be used in a journal-specific layout file to prevent, say, the
9806  use of the 
9807 \begin_inset Flex Code
9808 status collapsed
9809
9810 \begin_layout Plain Layout
9811 theorems-sec
9812 \end_layout
9813
9814 \end_inset
9815
9816  module that numbers theorems by section.
9817  This tag may 
9818 \emph on
9819 not
9820 \emph default
9821  be used in a module.
9822  Modules have their own way of excluding other modules (see 
9823 \begin_inset CommandInset ref
9824 LatexCommand ref
9825 reference "subsec:Layout-modules"
9826
9827 \end_inset
9828
9829 ).
9830 \end_layout
9831
9832 \begin_layout Description
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 Float
9838 \end_layout
9839
9840 \end_inset
9841
9842  Defines a new float.
9843  See 
9844 \begin_inset CommandInset ref
9845 LatexCommand ref
9846 reference "subsec:Floats"
9847
9848 \end_inset
9849
9850  for details.
9851  Must end with 
9852 \begin_inset Quotes eld
9853 \end_inset
9854
9855
9856 \begin_inset Flex Code
9857 status collapsed
9858
9859 \begin_layout Plain Layout
9860 End
9861 \end_layout
9862
9863 \end_inset
9864
9865
9866 \begin_inset Quotes erd
9867 \end_inset
9868
9869 .
9870 \end_layout
9871
9872 \begin_layout Description
9873 \begin_inset Flex Code
9874 status collapsed
9875
9876 \begin_layout Plain Layout
9877 HTMLPreamble
9878 \end_layout
9879
9880 \end_inset
9881
9882  Sets the information that will be output in the 
9883 \begin_inset Flex Code
9884 status collapsed
9885
9886 \begin_layout Plain Layout
9887 <head>
9888 \end_layout
9889
9890 \end_inset
9891
9892  block when this document class is output to XHTML.
9893  Note that this will completely override any prior 
9894 \begin_inset Flex Code
9895 status collapsed
9896
9897 \begin_layout Plain Layout
9898 HTMLPreamble
9899 \end_layout
9900
9901 \end_inset
9902
9903  or 
9904 \begin_inset Flex Code
9905 status collapsed
9906
9907 \begin_layout Plain Layout
9908 AddToHTMLPreamble
9909 \end_layout
9910
9911 \end_inset
9912
9913  declarations.
9914  (Use
9915 \begin_inset Newline newline
9916 \end_inset
9917
9918
9919 \begin_inset Flex Code
9920 status collapsed
9921
9922 \begin_layout Plain Layout
9923 AddToHTMLPreamble
9924 \end_layout
9925
9926 \end_inset
9927
9928  if you just want to add material to the preamble.) Must end with 
9929 \begin_inset Quotes eld
9930 \end_inset
9931
9932
9933 \begin_inset Flex Code
9934 status collapsed
9935
9936 \begin_layout Plain Layout
9937 EndPreamble
9938 \end_layout
9939
9940 \end_inset
9941
9942
9943 \begin_inset Quotes erd
9944 \end_inset
9945
9946 .
9947 \end_layout
9948
9949 \begin_layout Description
9950 \begin_inset Flex Code
9951 status collapsed
9952
9953 \begin_layout Plain Layout
9954 HTMLTOCSection
9955 \end_layout
9956
9957 \end_inset
9958
9959  [
9960 \begin_inset Flex Code
9961 status collapsed
9962
9963 \begin_layout Plain Layout
9964 <style>
9965 \end_layout
9966
9967 \end_inset
9968
9969 ] The style to use for the table of contents, bibliography, and so forth,
9970  when the document is output to HTML.
9971  For articles, this should normally be 
9972 \begin_inset Flex Code
9973 status collapsed
9974
9975 \begin_layout Plain Layout
9976 Section
9977 \end_layout
9978
9979 \end_inset
9980
9981 ; for books 
9982 \begin_inset Flex Code
9983 status collapsed
9984
9985 \begin_layout Plain Layout
9986 Chapter
9987 \end_layout
9988
9989 \end_inset
9990
9991 .
9992  If it is not given, then \SpecialChar LyX
9993  will attempt to figure out which layout to use.
9994 \end_layout
9995
9996 \begin_layout Description
9997 \begin_inset Flex Code
9998 status collapsed
9999
10000 \begin_layout Plain Layout
10001 IfCounter
10002 \end_layout
10003
10004 \end_inset
10005
10006  [
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011 <counter>
10012 \end_layout
10013
10014 \end_inset
10015
10016 ] Modifies the properties of the given counter.
10017  If the counter does not exist, the statement is ignored.
10018  Must end with 
10019 \begin_inset Quotes eld
10020 \end_inset
10021
10022
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027 End
10028 \end_layout
10029
10030 \end_inset
10031
10032
10033 \begin_inset Quotes erd
10034 \end_inset
10035
10036 .
10037 \begin_inset Newline newline
10038 \end_inset
10039
10040 See 
10041 \begin_inset CommandInset ref
10042 LatexCommand ref
10043 reference "subsec:Counters"
10044
10045 \end_inset
10046
10047  for details on counters.
10048 \end_layout
10049
10050 \begin_layout Description
10051 \begin_inset Flex Code
10052 status collapsed
10053
10054 \begin_layout Plain Layout
10055 Input
10056 \end_layout
10057
10058 \end_inset
10059
10060  [
10061 \begin_inset Flex Code
10062 status collapsed
10063
10064 \begin_layout Plain Layout
10065 <filename>
10066 \end_layout
10067
10068 \end_inset
10069
10070 ] This allows you to include another layout definition file within yours
10071  to avoid duplicating commands.
10072  Common examples are the standard layout files, for example, 
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 stdclass.inc
10078 \end_layout
10079
10080 \end_inset
10081
10082 , which contains most of the basic layouts.
10083 \end_layout
10084
10085 \begin_layout Description
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 InsetLayout
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 ] This section (re-)defines the layout of an inset.
10106  It can be applied to an existing inset or to a new, user-defined inset,
10107  e.g., a new character style.
10108  Must end with 
10109 \begin_inset Quotes eld
10110 \end_inset
10111
10112
10113 \begin_inset Flex Code
10114 status collapsed
10115
10116 \begin_layout Plain Layout
10117 End
10118 \end_layout
10119
10120 \end_inset
10121
10122
10123 \begin_inset Quotes erd
10124 \end_inset
10125
10126 .
10127 \begin_inset Newline newline
10128 \end_inset
10129
10130 See 
10131 \begin_inset CommandInset ref
10132 LatexCommand ref
10133 reference "subsec:Flex-insets-and"
10134
10135 \end_inset
10136
10137  for more information.
10138  
10139 \end_layout
10140
10141 \begin_layout Description
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 LeftMargin
10147 \end_layout
10148
10149 \end_inset
10150
10151  [
10152 \begin_inset Flex Code
10153 status collapsed
10154
10155 \begin_layout Plain Layout
10156 string
10157 \end_layout
10158
10159 \end_inset
10160
10161 ] A string that indicates the width of the left margin on the screen, for
10162  example, 
10163 \begin_inset Quotes eld
10164 \end_inset
10165
10166
10167 \begin_inset Flex Code
10168 status collapsed
10169
10170 \begin_layout Plain Layout
10171 MMMMM
10172 \end_layout
10173
10174 \end_inset
10175
10176
10177 \begin_inset Quotes erd
10178 \end_inset
10179
10180 .
10181  (Note that this is not a `length', like 
10182 \begin_inset Quotes eld
10183 \end_inset
10184
10185 2ex
10186 \begin_inset Quotes erd
10187 \end_inset
10188
10189 .)
10190 \end_layout
10191
10192 \begin_layout Description
10193 \begin_inset Flex Code
10194 status collapsed
10195
10196 \begin_layout Plain Layout
10197 MaxCiteNames
10198 \end_layout
10199
10200 \end_inset
10201
10202  [
10203 \begin_inset Flex Code
10204 status collapsed
10205
10206 \begin_layout Plain Layout
10207 integer
10208 \end_layout
10209
10210 \end_inset
10211
10212 ] An integer that determines the maximal number of names displayed in an
10213  author-year citation before the citation switches to 
10214 \begin_inset Quotes eld
10215 \end_inset
10216
10217 FirstAuthor et al.
10218 \begin_inset Quotes erd
10219 \end_inset
10220
10221 .
10222  Primarily used in cite engine files (see 
10223 \begin_inset CommandInset ref
10224 LatexCommand ref
10225 reference "subsec:Cite-Engine-Files"
10226 plural "false"
10227 caps "false"
10228 noprefix "false"
10229
10230 \end_inset
10231
10232 ).
10233 \end_layout
10234
10235 \begin_layout Description
10236 \begin_inset Flex Code
10237 status collapsed
10238
10239 \begin_layout Plain Layout
10240 ModifyStyle
10241 \end_layout
10242
10243 \end_inset
10244
10245  [
10246 \begin_inset Flex Code
10247 status collapsed
10248
10249 \begin_layout Plain Layout
10250 <style>
10251 \end_layout
10252
10253 \end_inset
10254
10255 ] Modifies the properties of the given paragraph style.
10256  If the style does not exist, this section is ignored.
10257  Must end with 
10258 \begin_inset Quotes eld
10259 \end_inset
10260
10261
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266 End
10267 \end_layout
10268
10269 \end_inset
10270
10271
10272 \begin_inset Quotes erd
10273 \end_inset
10274
10275 .
10276 \end_layout
10277
10278 \begin_layout Description
10279 \begin_inset Flex Code
10280 status collapsed
10281
10282 \begin_layout Plain Layout
10283 NoCounter
10284 \end_layout
10285
10286 \end_inset
10287
10288  [
10289 \begin_inset Flex Code
10290 status collapsed
10291
10292 \begin_layout Plain Layout
10293 <counter>
10294 \end_layout
10295
10296 \end_inset
10297
10298 ] Deletes an existing counter, usually one defined in an included file.
10299 \end_layout
10300
10301 \begin_layout Description
10302 \begin_inset Flex Code
10303 status collapsed
10304
10305 \begin_layout Plain Layout
10306 NoFloat
10307 \end_layout
10308
10309 \end_inset
10310
10311  [
10312 \begin_inset Flex Code
10313 status collapsed
10314
10315 \begin_layout Plain Layout
10316 <float>
10317 \end_layout
10318
10319 \end_inset
10320
10321 ] Deletes an existing float.
10322  This is particularly useful when you want to suppress a float that has
10323  been defined in an input file.
10324 \end_layout
10325
10326 \begin_layout Description
10327 \begin_inset Flex Code
10328 status collapsed
10329
10330 \begin_layout Plain Layout
10331 NoStyle
10332 \end_layout
10333
10334 \end_inset
10335
10336  [
10337 \begin_inset Flex Code
10338 status collapsed
10339
10340 \begin_layout Plain Layout
10341 <style>
10342 \end_layout
10343
10344 \end_inset
10345
10346 ] Deletes an existing style.
10347 \end_layout
10348
10349 \begin_layout Description
10350 \begin_inset Flex Code
10351 status collapsed
10352
10353 \begin_layout Plain Layout
10354 OutlinerName
10355 \end_layout
10356
10357 \end_inset
10358
10359  [
10360 \begin_inset Flex Code
10361 status collapsed
10362
10363 \begin_layout Plain Layout
10364 <type>
10365 \end_layout
10366
10367 \end_inset
10368
10369 ] [
10370 \begin_inset Flex Code
10371 status collapsed
10372
10373 \begin_layout Plain Layout
10374 <string>
10375 \end_layout
10376
10377 \end_inset
10378
10379 ] Define a new table of contents with type 
10380 \begin_inset Flex Code
10381 status collapsed
10382
10383 \begin_layout Plain Layout
10384 <type>
10385 \end_layout
10386
10387 \end_inset
10388
10389  and name 
10390 \begin_inset Flex Code
10391 status collapsed
10392
10393 \begin_layout Plain Layout
10394 <string>
10395 \end_layout
10396
10397 \end_inset
10398
10399 .
10400  See also the AddToToc commands.
10401 \end_layout
10402
10403 \begin_layout Description
10404 \begin_inset Flex Code
10405 status collapsed
10406
10407 \begin_layout Plain Layout
10408 OutputFormat
10409 \end_layout
10410
10411 \end_inset
10412
10413  [
10414 \begin_inset Flex Code
10415 status collapsed
10416
10417 \begin_layout Plain Layout
10418 <format>
10419 \end_layout
10420
10421 \end_inset
10422
10423 ] The file format (as defined in the \SpecialChar LyX
10424  preferences) produced by this document
10425  class.
10426  It is mainly useful when 
10427 \begin_inset Flex Code
10428 status collapsed
10429
10430 \begin_layout Plain Layout
10431 OutputType
10432 \end_layout
10433
10434 \end_inset
10435
10436  is 
10437 \begin_inset Flex Code
10438 status collapsed
10439
10440 \begin_layout Plain Layout
10441 literate
10442 \end_layout
10443
10444 \end_inset
10445
10446  and one wants to define a new type of literate document.
10447  The format is reset to 
10448 \change_deleted 5863208 1594239413
10449
10450 \begin_inset Quotes eld
10451 \end_inset
10452
10453
10454 \begin_inset Flex Code
10455 status collapsed
10456
10457 \begin_layout Plain Layout
10458 docbook
10459 \end_layout
10460
10461 \end_inset
10462
10463
10464 \begin_inset Quotes erd
10465 \end_inset
10466
10467  or
10468 \change_unchanged
10469  
10470 \begin_inset Quotes eld
10471 \end_inset
10472
10473
10474 \begin_inset Flex Code
10475 status collapsed
10476
10477 \begin_layout Plain Layout
10478 latex
10479 \end_layout
10480
10481 \end_inset
10482
10483
10484 \begin_inset Quotes erd
10485 \end_inset
10486
10487  when the corresponding 
10488 \begin_inset Flex Code
10489 status collapsed
10490
10491 \begin_layout Plain Layout
10492 OutputType
10493 \end_layout
10494
10495 \end_inset
10496
10497  parameter is encountered.
10498 \end_layout
10499
10500 \begin_layout Description
10501 \begin_inset Flex Code
10502 status collapsed
10503
10504 \begin_layout Plain Layout
10505 OutputType
10506 \end_layout
10507
10508 \end_inset
10509
10510  [
10511 \begin_inset Flex Code
10512 status collapsed
10513
10514 \begin_layout Plain Layout
10515
10516 \emph on
10517 lat
10518 \emph default
10519 ex
10520 \end_layout
10521
10522 \end_inset
10523
10524
10525 \change_deleted 5863208 1594239430
10526
10527 \begin_inset Flex Code
10528 status collapsed
10529
10530 \begin_layout Plain Layout
10531 docbook
10532 \end_layout
10533
10534 \end_inset
10535
10536 ,
10537 \change_unchanged
10538  
10539 \begin_inset Flex Code
10540 status collapsed
10541
10542 \begin_layout Plain Layout
10543 literate
10544 \end_layout
10545
10546 \end_inset
10547
10548 ] Specifies what sort of output documents using this class will produce.
10549 \end_layout
10550
10551 \begin_layout Description
10552 \begin_inset Flex Code
10553 status collapsed
10554
10555 \begin_layout Plain Layout
10556 PackageOptions
10557 \end_layout
10558
10559 \end_inset
10560
10561  [
10562 \begin_inset Flex Code
10563 status collapsed
10564
10565 \begin_layout Plain Layout
10566 string
10567 \end_layout
10568
10569 \end_inset
10570
10571  
10572 \begin_inset Flex Code
10573 status collapsed
10574
10575 \begin_layout Plain Layout
10576 string
10577 \end_layout
10578
10579 \end_inset
10580
10581 ] Specifies options, given in the second string, for the package named by
10582  the first string.
10583  For example, 
10584 \begin_inset Quotes eld
10585 \end_inset
10586
10587
10588 \begin_inset Flex Code
10589 status collapsed
10590
10591 \begin_layout Plain Layout
10592 PackageOptions natbib square
10593 \end_layout
10594
10595 \end_inset
10596
10597
10598 \begin_inset Quotes erd
10599 \end_inset
10600
10601  will cause 
10602 \begin_inset Flex Code
10603 status collapsed
10604
10605 \begin_layout Plain Layout
10606 natbib
10607 \end_layout
10608
10609 \end_inset
10610
10611  to be loaded with the 
10612 \begin_inset Flex Code
10613 status collapsed
10614
10615 \begin_layout Plain Layout
10616 square
10617 \end_layout
10618
10619 \end_inset
10620
10621  option.
10622  (For \SpecialChar TeX
10623 perts, this causes \SpecialChar LyX
10624  to output: 
10625 \begin_inset Flex Code
10626 status collapsed
10627
10628 \begin_layout Plain Layout
10629
10630 \backslash
10631 PassOptionsToPackage{natbib}{square}
10632 \end_layout
10633
10634 \end_inset
10635
10636  prior to loading 
10637 \begin_inset Flex Code
10638 status collapsed
10639
10640 \begin_layout Plain Layout
10641 natbib
10642 \end_layout
10643
10644 \end_inset
10645
10646 .)
10647 \change_inserted -712698321 1565102364
10648
10649 \end_layout
10650
10651 \begin_layout Description
10652
10653 \change_inserted -712698321 1565102470
10654 \begin_inset Flex Code
10655 status collapsed
10656
10657 \begin_layout Plain Layout
10658
10659 \change_inserted -712698321 1565102365
10660 PageSize
10661 \end_layout
10662
10663 \end_inset
10664
10665  [
10666 \begin_inset Flex Code
10667 status collapsed
10668
10669 \begin_layout Plain Layout
10670
10671 \change_inserted -712698321 1565105222
10672
10673 \emph on
10674 custom
10675 \emph default
10676 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10677  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10678 \end_layout
10679
10680 \end_inset
10681
10682 ] The default page size.
10683  This is used by some converters.
10684 \change_unchanged
10685
10686 \end_layout
10687
10688 \begin_layout Description
10689 \begin_inset Flex Code
10690 status collapsed
10691
10692 \begin_layout Plain Layout
10693 PageStyle
10694 \end_layout
10695
10696 \end_inset
10697
10698  [
10699 \begin_inset Flex Code
10700 status collapsed
10701
10702 \begin_layout Plain Layout
10703
10704 \emph on
10705 plain
10706 \end_layout
10707
10708 \end_inset
10709
10710
10711 \begin_inset Flex Code
10712 status collapsed
10713
10714 \begin_layout Plain Layout
10715 empty
10716 \end_layout
10717
10718 \end_inset
10719
10720
10721 \begin_inset Flex Code
10722 status collapsed
10723
10724 \begin_layout Plain Layout
10725 headings
10726 \end_layout
10727
10728 \end_inset
10729
10730 ] The default pagestyle.
10731  Can be changed in the 
10732 \begin_inset Flex Noun
10733 status collapsed
10734
10735 \begin_layout Plain Layout
10736 Document\SpecialChar menuseparator
10737 Settings
10738 \end_layout
10739
10740 \end_inset
10741
10742  dialog.
10743 \end_layout
10744
10745 \begin_layout Description
10746 \begin_inset Flex Code
10747 status collapsed
10748
10749 \begin_layout Plain Layout
10750 Preamble
10751 \end_layout
10752
10753 \end_inset
10754
10755  Sets the preamble for the \SpecialChar LaTeX
10756  document.
10757  Note that this will completely override any prior 
10758 \begin_inset Flex Code
10759 status collapsed
10760
10761 \begin_layout Plain Layout
10762 Preamble
10763 \end_layout
10764
10765 \end_inset
10766
10767  or 
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 AddToPreamble
10773 \end_layout
10774
10775 \end_inset
10776
10777  declarations.
10778  (Use 
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 AddToPreamble
10784 \end_layout
10785
10786 \end_inset
10787
10788  if you just want to add material to the preamble.) Must end with 
10789 \begin_inset Quotes eld
10790 \end_inset
10791
10792
10793 \begin_inset Flex Code
10794 status collapsed
10795
10796 \begin_layout Plain Layout
10797 EndPreamble
10798 \end_layout
10799
10800 \end_inset
10801
10802
10803 \begin_inset Quotes erd
10804 \end_inset
10805
10806 .
10807 \end_layout
10808
10809 \begin_layout Description
10810 \begin_inset Flex Code
10811 status collapsed
10812
10813 \begin_layout Plain Layout
10814 Provides
10815 \end_layout
10816
10817 \end_inset
10818
10819  [
10820 \begin_inset Flex Code
10821 status collapsed
10822
10823 \begin_layout Plain Layout
10824 string
10825 \end_layout
10826
10827 \end_inset
10828
10829 ] [
10830 \begin_inset Flex Code
10831 status collapsed
10832
10833 \begin_layout Plain Layout
10834
10835 \emph on
10836 0
10837 \end_layout
10838
10839 \end_inset
10840
10841 ,
10842 \begin_inset space \thinspace{}
10843 \end_inset
10844
10845
10846 \begin_inset Flex Code
10847 status collapsed
10848
10849 \begin_layout Plain Layout
10850 1
10851 \end_layout
10852
10853 \end_inset
10854
10855 ] Whether the class already provides the feature 
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860 string
10861 \end_layout
10862
10863 \end_inset
10864
10865 .
10866  A feature is in general the name of a package (e.
10867 \begin_inset space \thinspace{}
10868 \end_inset
10869
10870 g.
10871 \begin_inset space \space{}
10872 \end_inset
10873
10874
10875 \begin_inset Flex Code
10876 status collapsed
10877
10878 \begin_layout Plain Layout
10879 amsmath
10880 \end_layout
10881
10882 \end_inset
10883
10884  or 
10885 \begin_inset Flex Code
10886 status collapsed
10887
10888 \begin_layout Plain Layout
10889 makeidx
10890 \end_layout
10891
10892 \end_inset
10893
10894 ) or a macro (e.
10895 \begin_inset space \thinspace{}
10896 \end_inset
10897
10898 g.
10899 \begin_inset space \space{}
10900 \end_inset
10901
10902
10903 \begin_inset Flex Code
10904 status collapsed
10905
10906 \begin_layout Plain Layout
10907 url
10908 \end_layout
10909
10910 \end_inset
10911
10912  or 
10913 \begin_inset Flex Code
10914 status collapsed
10915
10916 \begin_layout Plain Layout
10917 boldsymbol
10918 \end_layout
10919
10920 \end_inset
10921
10922 ).
10923  See 
10924 \begin_inset CommandInset ref
10925 LatexCommand ref
10926 reference "chap:List-of-functions"
10927
10928 \end_inset
10929
10930  for the list of features.
10931 \end_layout
10932
10933 \begin_layout Description
10934 \begin_inset Flex Code
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938 ProvidesModule
10939 \end_layout
10940
10941 \end_inset
10942
10943  [
10944 \begin_inset Flex Code
10945 status collapsed
10946
10947 \begin_layout Plain Layout
10948 string
10949 \end_layout
10950
10951 \end_inset
10952
10953 ] Indicates that this layout provides the functionality of the module mentioned,
10954  which should be specified by the filename without the 
10955 \begin_inset Flex Code
10956 status collapsed
10957
10958 \begin_layout Plain Layout
10959 .module
10960 \end_layout
10961
10962 \end_inset
10963
10964  extension.
10965  This will typically be used if the layout includes the module directly,
10966  rather than using the 
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 DefaultModule
10972 \end_layout
10973
10974 \end_inset
10975
10976  tag to indicate that it ought to be used.
10977  It could also be used in a module that provided an alternate implementation
10978  of the same functionality.
10979 \end_layout
10980
10981 \begin_layout Description
10982 \begin_inset Flex Code
10983 status collapsed
10984
10985 \begin_layout Plain Layout
10986 ProvideStyle
10987 \end_layout
10988
10989 \end_inset
10990
10991  [
10992 \begin_inset Flex Code
10993 status collapsed
10994
10995 \begin_layout Plain Layout
10996 <style>
10997 \end_layout
10998
10999 \end_inset
11000
11001 ] Creates a new paragraph style if it does not already exist.
11002  If the style does exist, this section is ignored.
11003  Must end with 
11004 \begin_inset Quotes eld
11005 \end_inset
11006
11007
11008 \begin_inset Flex Code
11009 status collapsed
11010
11011 \begin_layout Plain Layout
11012 End
11013 \end_layout
11014
11015 \end_inset
11016
11017
11018 \begin_inset Quotes erd
11019 \end_inset
11020
11021 .
11022 \end_layout
11023
11024 \begin_layout Description
11025 \begin_inset Flex Code
11026 status collapsed
11027
11028 \begin_layout Plain Layout
11029 Requires
11030 \end_layout
11031
11032 \end_inset
11033
11034  [
11035 \begin_inset Flex Code
11036 status collapsed
11037
11038 \begin_layout Plain Layout
11039 string
11040 \end_layout
11041
11042 \end_inset
11043
11044 ] Whether the class requires the feature 
11045 \begin_inset Flex Code
11046 status collapsed
11047
11048 \begin_layout Plain Layout
11049 string
11050 \end_layout
11051
11052 \end_inset
11053
11054 .
11055  Multiple features must be separated by commas.
11056  Note that you can only request supported features.
11057  (See 
11058 \begin_inset CommandInset ref
11059 LatexCommand ref
11060 reference "chap:List-of-functions"
11061
11062 \end_inset
11063
11064  for the list of features.).
11065  If you require a package with specific options, you can additionally use
11066  
11067 \begin_inset Flex Code
11068 status collapsed
11069
11070 \begin_layout Plain Layout
11071 PackageOptions
11072 \end_layout
11073
11074 \end_inset
11075
11076 .
11077 \end_layout
11078
11079 \begin_layout Description
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084 RightMargin
11085 \end_layout
11086
11087 \end_inset
11088
11089  [
11090 \begin_inset Flex Code
11091 status collapsed
11092
11093 \begin_layout Plain Layout
11094 string
11095 \end_layout
11096
11097 \end_inset
11098
11099 ] A string that indicates the width of the right margin on the screen, for
11100  example, 
11101 \begin_inset Quotes eld
11102 \end_inset
11103
11104
11105 \begin_inset Flex Code
11106 status collapsed
11107
11108 \begin_layout Plain Layout
11109 MMMMM
11110 \end_layout
11111
11112 \end_inset
11113
11114
11115 \begin_inset Quotes erd
11116 \end_inset
11117
11118 .
11119 \end_layout
11120
11121 \begin_layout Description
11122 \begin_inset Flex Code
11123 status collapsed
11124
11125 \begin_layout Plain Layout
11126 SecNumDepth
11127 \end_layout
11128
11129 \end_inset
11130
11131  [
11132 \begin_inset Flex Code
11133 status collapsed
11134
11135 \begin_layout Plain Layout
11136 int=3
11137 \end_layout
11138
11139 \end_inset
11140
11141 ] Sets which divisions get numbered.
11142  Corresponds to the
11143 \begin_inset Newline newline
11144 \end_inset
11145
11146
11147 \begin_inset Flex Code
11148 status collapsed
11149
11150 \begin_layout Plain Layout
11151 secnumdepth
11152 \end_layout
11153
11154 \end_inset
11155
11156  counter in \SpecialChar LaTeX
11157 .
11158 \end_layout
11159
11160 \begin_layout Description
11161 \begin_inset Flex Code
11162 status collapsed
11163
11164 \begin_layout Plain Layout
11165 Sides
11166 \end_layout
11167
11168 \end_inset
11169
11170  [
11171 \begin_inset Flex Code
11172 status collapsed
11173
11174 \begin_layout Plain Layout
11175
11176 \emph on
11177 1
11178 \end_layout
11179
11180 \end_inset
11181
11182 ,
11183 \begin_inset space \thinspace{}
11184 \end_inset
11185
11186
11187 \begin_inset Flex Code
11188 status collapsed
11189
11190 \begin_layout Plain Layout
11191 2
11192 \end_layout
11193
11194 \end_inset
11195
11196 ] Whether the class-default should be printing on one or both sides of the
11197  paper.
11198  Can be changed in the 
11199 \begin_inset Flex Noun
11200 status collapsed
11201
11202 \begin_layout Plain Layout
11203 Document\SpecialChar menuseparator
11204 Settings
11205 \end_layout
11206
11207 \end_inset
11208
11209  dialog.
11210 \end_layout
11211
11212 \begin_layout Description
11213 \begin_inset Flex Code
11214 status collapsed
11215
11216 \begin_layout Plain Layout
11217 Style
11218 \end_layout
11219
11220 \end_inset
11221
11222  [
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227 <name>
11228 \end_layout
11229
11230 \end_inset
11231
11232 ] This sequence defines a paragraph style.
11233  If the style does not yet exist, it is created; if it does exist, its parameter
11234 s are modified.
11235  Must end with 
11236 \begin_inset Quotes eld
11237 \end_inset
11238
11239
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 End
11245 \end_layout
11246
11247 \end_inset
11248
11249
11250 \begin_inset Quotes erd
11251 \end_inset
11252
11253 .
11254 \begin_inset Newline newline
11255 \end_inset
11256
11257 See 
11258 \begin_inset CommandInset ref
11259 LatexCommand ref
11260 reference "subsec:Paragraph-Styles"
11261
11262 \end_inset
11263
11264  for details on paragraph styles.
11265 \change_inserted -712698321 1553617804
11266
11267 \end_layout
11268
11269 \begin_layout Description
11270
11271 \change_inserted -712698321 1553617862
11272 \begin_inset Flex Code
11273 status collapsed
11274
11275 \begin_layout Plain Layout
11276
11277 \change_inserted -712698321 1553617809
11278 TableStyle
11279 \end_layout
11280
11281 \end_inset
11282
11283  [
11284 \begin_inset Flex Code
11285 status collapsed
11286
11287 \begin_layout Plain Layout
11288
11289 \change_inserted -712698321 1553617805
11290 <name>
11291 \end_layout
11292
11293 \end_inset
11294
11295 ] defines the default table style that is used when inserting a table.
11296  The following styles are available:
11297 \end_layout
11298
11299 \begin_deeper
11300 \begin_layout Itemize
11301
11302 \change_inserted -712698321 1554308039
11303 \begin_inset Flex Code
11304 status collapsed
11305
11306 \begin_layout Plain Layout
11307
11308 \change_inserted -712698321 1554307928
11309 Formal_with_Footline
11310 \change_unchanged
11311
11312 \end_layout
11313
11314 \end_inset
11315
11316 : formal (
11317 \begin_inset Quotes eld
11318 \end_inset
11319
11320 booktabs
11321 \begin_inset Quotes erd
11322 \end_inset
11323
11324 ) style with horizontal lines only, using a bold top and bottom line, the
11325  first and last row are additionally separated from the table body with
11326  a thin middle line.
11327 \end_layout
11328
11329 \begin_layout Itemize
11330
11331 \change_inserted -712698321 1554308087
11332 \begin_inset Flex Code
11333 status collapsed
11334
11335 \begin_layout Plain Layout
11336
11337 \change_inserted -712698321 1554308042
11338 Formal_without_Footline
11339 \end_layout
11340
11341 \end_inset
11342
11343 : same as the above, but the last row is not separated with a middle line
11344  from the body.
11345 \end_layout
11346
11347 \begin_layout Itemize
11348
11349 \change_inserted -712698321 1553618031
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354
11355 \change_inserted -712698321 1553618006
11356 Simple_Grid
11357 \end_layout
11358
11359 \end_inset
11360
11361 : Simple table lines.
11362 \end_layout
11363
11364 \begin_layout Itemize
11365
11366 \change_inserted -712698321 1553618309
11367 \begin_inset Flex Code
11368 status collapsed
11369
11370 \begin_layout Plain Layout
11371
11372 \change_inserted -712698321 1553618031
11373 Grid_with_Head
11374 \end_layout
11375
11376 \end_inset
11377
11378 : Like 
11379 \begin_inset Flex Code
11380 status collapsed
11381
11382 \begin_layout Plain Layout
11383
11384 \change_inserted -712698321 1553618043
11385 Simple_Grid
11386 \end_layout
11387
11388 \end_inset
11389
11390 , but with the header column offset with a second horizontal line.
11391  This is also the default style of \SpecialChar LyX
11392 .
11393 \end_layout
11394
11395 \begin_layout Itemize
11396
11397 \change_inserted -712698321 1553618280
11398 \begin_inset Flex Code
11399 status collapsed
11400
11401 \begin_layout Plain Layout
11402
11403 \change_inserted -712698321 1553618261
11404 No_Borders
11405 \end_layout
11406
11407 \end_inset
11408
11409 : Table without lines.
11410 \change_unchanged
11411
11412 \end_layout
11413
11414 \end_deeper
11415 \begin_layout Description
11416 \begin_inset Flex Code
11417 status collapsed
11418
11419 \begin_layout Plain Layout
11420 TitleLatexName
11421 \end_layout
11422
11423 \end_inset
11424
11425  [
11426 \begin_inset Flex Code
11427 status collapsed
11428
11429 \begin_layout Plain Layout
11430 string="maketitle"
11431 \end_layout
11432
11433 \end_inset
11434
11435 ] The name of the command or environment to be used with 
11436 \begin_inset Flex Code
11437 status collapsed
11438
11439 \begin_layout Plain Layout
11440 TitleLatexType
11441 \end_layout
11442
11443 \end_inset
11444
11445 .
11446 \end_layout
11447
11448 \begin_layout Description
11449 \begin_inset Flex Code
11450 status collapsed
11451
11452 \begin_layout Plain Layout
11453 TitleLatexType
11454 \end_layout
11455
11456 \end_inset
11457
11458  [
11459 \begin_inset Flex Code
11460 status collapsed
11461
11462 \begin_layout Plain Layout
11463
11464 \emph on
11465 CommandAfter
11466 \end_layout
11467
11468 \end_inset
11469
11470
11471 \begin_inset Flex Code
11472 status collapsed
11473
11474 \begin_layout Plain Layout
11475 Environment
11476 \end_layout
11477
11478 \end_inset
11479
11480 ] Indicates what kind of markup is used to define the title of a document.
11481  
11482 \begin_inset Flex Code
11483 status collapsed
11484
11485 \begin_layout Plain Layout
11486 CommandAfter
11487 \end_layout
11488
11489 \end_inset
11490
11491  means that the macro with name 
11492 \begin_inset Flex Code
11493 status collapsed
11494
11495 \begin_layout Plain Layout
11496 TitleLatexName
11497 \end_layout
11498
11499 \end_inset
11500
11501  will be inserted after the last layout which has 
11502 \begin_inset Quotes eld
11503 \end_inset
11504
11505
11506 \begin_inset Flex Code
11507 status collapsed
11508
11509 \begin_layout Plain Layout
11510 InTitle
11511 \begin_inset space ~
11512 \end_inset
11513
11514 1
11515 \end_layout
11516
11517 \end_inset
11518
11519
11520 \begin_inset Quotes erd
11521 \end_inset
11522
11523 .
11524  
11525 \begin_inset Flex Code
11526 status collapsed
11527
11528 \begin_layout Plain Layout
11529 Environment
11530 \end_layout
11531
11532 \end_inset
11533
11534  corresponds to the case where all layouts which have 
11535 \begin_inset Quotes eld
11536 \end_inset
11537
11538
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 InTitle
11544 \begin_inset space ~
11545 \end_inset
11546
11547 1
11548 \end_layout
11549
11550 \end_inset
11551
11552
11553 \begin_inset Quotes erd
11554 \end_inset
11555
11556  should be enclosed into the 
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561 TitleLatexName
11562 \end_layout
11563
11564 \end_inset
11565
11566  environment.
11567 \end_layout
11568
11569 \begin_layout Description
11570 \begin_inset Flex Code
11571 status collapsed
11572
11573 \begin_layout Plain Layout
11574 TocDepth
11575 \end_layout
11576
11577 \end_inset
11578
11579  [
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584 int=3
11585 \end_layout
11586
11587 \end_inset
11588
11589 ] Sets which divisions are included in the table of contents.
11590  Corresponds to the 
11591 \begin_inset Flex Code
11592 status collapsed
11593
11594 \begin_layout Plain Layout
11595 tocdepth
11596 \end_layout
11597
11598 \end_inset
11599
11600  counter in \SpecialChar LaTeX
11601 .
11602 \end_layout
11603
11604 \begin_layout Subsection
11605 \begin_inset Flex Code
11606 status collapsed
11607
11608 \begin_layout Plain Layout
11609 ClassOptions
11610 \end_layout
11611
11612 \end_inset
11613
11614  section
11615 \begin_inset CommandInset label
11616 LatexCommand label
11617 name "subsec:ClassOptions"
11618
11619 \end_inset
11620
11621
11622 \end_layout
11623
11624 \begin_layout Standard
11625 The 
11626 \begin_inset Flex Code
11627 status collapsed
11628
11629 \begin_layout Plain Layout
11630 ClassOptions
11631 \end_layout
11632
11633 \end_inset
11634
11635  section can contain the following entries:
11636 \end_layout
11637
11638 \begin_layout Description
11639 \begin_inset Flex Code
11640 status collapsed
11641
11642 \begin_layout Plain Layout
11643 FontSize
11644 \end_layout
11645
11646 \end_inset
11647
11648  [
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 string="10|11|12"
11654 \end_layout
11655
11656 \end_inset
11657
11658 ] The list of available font sizes for the document's main font, separated
11659  by 
11660 \begin_inset Quotes eld
11661 \end_inset
11662
11663
11664 \begin_inset Flex Code
11665 status collapsed
11666
11667 \begin_layout Plain Layout
11668 |
11669 \end_layout
11670
11671 \end_inset
11672
11673
11674 \begin_inset Quotes erd
11675 \end_inset
11676
11677 .
11678
11679 \change_inserted -712698321 1565110196
11680  Any number is possible.
11681 \end_layout
11682
11683 \begin_layout Description
11684
11685 \change_inserted -712698321 1565110259
11686 \begin_inset Flex Code
11687 status collapsed
11688
11689 \begin_layout Plain Layout
11690
11691 \change_inserted -712698321 1565110199
11692 FontSizeFormat
11693 \end_layout
11694
11695 \end_inset
11696
11697  [
11698 \begin_inset Flex Code
11699 status collapsed
11700
11701 \begin_layout Plain Layout
11702
11703 \change_inserted -712698321 1565110196
11704 string
11705 \end_layout
11706
11707 \end_inset
11708
11709 ] The format for the font size option.
11710  Default: 
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715
11716 \change_inserted -712698321 1565110238
11717 $$spt
11718 \change_unchanged
11719
11720 \end_layout
11721
11722 \end_inset
11723
11724 .
11725  
11726 \begin_inset Flex Code
11727 status collapsed
11728
11729 \begin_layout Plain Layout
11730
11731 \change_inserted -712698321 1565110248
11732 $$s
11733 \end_layout
11734
11735 \end_inset
11736
11737  is a placeholder for the font size.
11738 \change_unchanged
11739
11740 \end_layout
11741
11742 \begin_layout Description
11743
11744 \change_deleted 5863208 1594239483
11745 \begin_inset Flex Code
11746 status collapsed
11747
11748 \begin_layout Plain Layout
11749 Header
11750 \end_layout
11751
11752 \end_inset
11753
11754  Used to set the DTD line with XML-based output classes.
11755  E.
11756 \begin_inset space \thinspace{}
11757 \end_inset
11758
11759 g.: PUBLIC 
11760 \begin_inset Quotes eld
11761 \end_inset
11762
11763 -//OASIS//DTD DocBook V4.2//EN
11764 \begin_inset Quotes erd
11765 \end_inset
11766
11767 .
11768 \change_inserted -712698321 1565101761
11769
11770 \end_layout
11771
11772 \begin_layout Description
11773
11774 \change_inserted -712698321 1565180598
11775 \begin_inset Flex Code
11776 status collapsed
11777
11778 \begin_layout Plain Layout
11779
11780 \change_inserted -712698321 1565101918
11781 PageSize
11782 \end_layout
11783
11784 \end_inset
11785
11786  [
11787 \begin_inset Flex Code
11788 status collapsed
11789
11790 \begin_layout Plain Layout
11791
11792 \change_inserted -712698321 1565105399
11793 string="letter|\SpecialChar allowbreak
11794 legal|\SpecialChar allowbreak
11795 executive|\SpecialChar allowbreak
11796 a0|\SpecialChar allowbreak
11797 a1|\SpecialChar allowbreak
11798 a2|\SpecialChar allowbreak
11799 a3|\SpecialChar allowbreak
11800 a4|\SpecialChar allowbreak
11801 a5|\SpecialChar allowbreak
11802 a6|\SpecialChar allowbreak
11803 b0|\SpecialChar allowbreak
11804 b1|\SpecialChar allowbreak
11805 b2|\SpecialChar allowbreak
11806 b3|\SpecialChar allowbreak
11807 b4|\SpecialChar allowbreak
11808 b5|\SpecialChar allowbreak
11809 b6|\SpecialChar allowbreak
11810 c0|\SpecialChar allowbreak
11811 c1|\SpecialChar allowbreak
11812 c
11813 2|\SpecialChar allowbreak
11814 c3|\SpecialChar allowbreak
11815 c4|\SpecialChar allowbreak
11816 c5|\SpecialChar allowbreak
11817 c6|\SpecialChar allowbreak
11818 b0j|\SpecialChar allowbreak
11819 b1j|\SpecialChar allowbreak
11820 b2j|\SpecialChar allowbreak
11821 b3j|\SpecialChar allowbreak
11822 b4j|\SpecialChar allowbreak
11823 b5j|\SpecialChar allowbreak
11824 b6j"
11825 \end_layout
11826
11827 \end_inset
11828
11829 ] The list of available page sizes, separated by 
11830 \begin_inset Quotes eld
11831 \end_inset
11832
11833
11834 \begin_inset Flex Code
11835 status collapsed
11836
11837 \begin_layout Plain Layout
11838
11839 \change_inserted -712698321 1565101779
11840 |
11841 \end_layout
11842
11843 \end_inset
11844
11845
11846 \begin_inset Quotes erd
11847 \end_inset
11848
11849 .
11850  Currently, only the listed sizes are supported.
11851  Other sizes might be entered as custom class option.
11852 \end_layout
11853
11854 \begin_layout Description
11855
11856 \change_inserted -712698321 1565180623
11857 \begin_inset Flex Code
11858 status collapsed
11859
11860 \begin_layout Plain Layout
11861
11862 \change_inserted -712698321 1565180605
11863 PageSizeFormat
11864 \end_layout
11865
11866 \end_inset
11867
11868  [
11869 \begin_inset Flex Code
11870 status collapsed
11871
11872 \begin_layout Plain Layout
11873
11874 \change_inserted -712698321 1565180601
11875 string
11876 \end_layout
11877
11878 \end_inset
11879
11880 ] The format for the page size option.
11881  Default: 
11882 \begin_inset Flex Code
11883 status collapsed
11884
11885 \begin_layout Plain Layout
11886
11887 \change_inserted -712698321 1565180618
11888 $$spaper
11889 \end_layout
11890
11891 \end_inset
11892
11893 .
11894  
11895 \begin_inset Flex Code
11896 status collapsed
11897
11898 \begin_layout Plain Layout
11899
11900 \change_inserted -712698321 1565180601
11901 $$s
11902 \end_layout
11903
11904 \end_inset
11905
11906  is a placeholder for the paper size.
11907 \change_unchanged
11908
11909 \end_layout
11910
11911 \begin_layout Description
11912 \begin_inset Flex Code
11913 status collapsed
11914
11915 \begin_layout Plain Layout
11916 PageStyle
11917 \end_layout
11918
11919 \end_inset
11920
11921  [
11922 \begin_inset Flex Code
11923 status collapsed
11924
11925 \begin_layout Plain Layout
11926 string="empty|plain|headings|fancy"
11927 \end_layout
11928
11929 \end_inset
11930
11931 ] The list of available page sty\SpecialChar softhyphen
11932 les, separated by 
11933 \begin_inset Quotes eld
11934 \end_inset
11935
11936
11937 \begin_inset Flex Code
11938 status collapsed
11939
11940 \begin_layout Plain Layout
11941 |
11942 \end_layout
11943
11944 \end_inset
11945
11946
11947 \begin_inset Quotes erd
11948 \end_inset
11949
11950 .
11951 \end_layout
11952
11953 \begin_layout Description
11954 \begin_inset Flex Code
11955 status collapsed
11956
11957 \begin_layout Plain Layout
11958 Other
11959 \end_layout
11960
11961 \end_inset
11962
11963  [
11964 \begin_inset Flex Code
11965 status collapsed
11966
11967 \begin_layout Plain Layout
11968 string=""
11969 \end_layout
11970
11971 \end_inset
11972
11973 ] Some document class options, separated by a comma, that will be added
11974  to the optional part of the 
11975 \begin_inset Flex Code
11976 status collapsed
11977
11978 \begin_layout Plain Layout
11979
11980 \backslash
11981 documentclass
11982 \end_layout
11983
11984 \end_inset
11985
11986  command.
11987 \end_layout
11988
11989 \begin_layout Standard
11990 The 
11991 \begin_inset Flex Code
11992 status collapsed
11993
11994 \begin_layout Plain Layout
11995 ClassOptions
11996 \end_layout
11997
11998 \end_inset
11999
12000  section must end with 
12001 \begin_inset Quotes eld
12002 \end_inset
12003
12004
12005 \begin_inset Flex Code
12006 status collapsed
12007
12008 \begin_layout Plain Layout
12009 End
12010 \end_layout
12011
12012 \end_inset
12013
12014
12015 \begin_inset Quotes erd
12016 \end_inset
12017
12018 .
12019 \end_layout
12020
12021 \begin_layout Subsection
12022 Paragraph styles
12023 \begin_inset CommandInset label
12024 LatexCommand label
12025 name "subsec:Paragraph-Styles"
12026
12027 \end_inset
12028
12029
12030 \end_layout
12031
12032 \begin_layout Standard
12033 A paragraph style description looks like this:
12034 \begin_inset Foot
12035 status collapsed
12036
12037 \begin_layout Plain Layout
12038 Note that this will either define a new style or modify an existing one.
12039 \end_layout
12040
12041 \end_inset
12042
12043
12044 \end_layout
12045
12046 \begin_layout LyX-Code
12047 Style 
12048 \family roman
12049 \emph on
12050 name
12051 \end_layout
12052
12053 \begin_layout LyX-Code
12054  ...
12055 \end_layout
12056
12057 \begin_layout LyX-Code
12058 End
12059 \end_layout
12060
12061 \begin_layout Standard
12062 where the following commands are allowed:
12063 \end_layout
12064
12065 \begin_layout Description
12066 \begin_inset Flex Code
12067 status collapsed
12068
12069 \begin_layout Plain Layout
12070 AddToToc
12071 \end_layout
12072
12073 \end_inset
12074
12075  [
12076 \begin_inset Flex Code
12077 status collapsed
12078
12079 \begin_layout Plain Layout
12080 string
12081 \end_layout
12082
12083 \end_inset
12084
12085 =""] This paragraph will appear in the table of contents of the given type.
12086  An empty string disables.
12087  See also the OutlinerName and the IsTocCaption commands.
12088  Default: disabled.
12089 \end_layout
12090
12091 \begin_layout Description
12092 \begin_inset Flex Code
12093 status collapsed
12094
12095 \begin_layout Plain Layout
12096 Align
12097 \end_layout
12098
12099 \end_inset
12100
12101  [
12102 \begin_inset Flex Code
12103 status collapsed
12104
12105 \begin_layout Plain Layout
12106
12107 \emph on
12108 block
12109 \emph default
12110 , left, right, center
12111 \end_layout
12112
12113 \end_inset
12114
12115 ] Paragraph alignment.
12116 \end_layout
12117
12118 \begin_layout Description
12119 \begin_inset Flex Code
12120 status collapsed
12121
12122 \begin_layout Plain Layout
12123 AlignPossible
12124 \end_layout
12125
12126 \end_inset
12127
12128  [
12129 \begin_inset Flex Code
12130 status collapsed
12131
12132 \begin_layout Plain Layout
12133
12134 \emph on
12135 block
12136 \emph default
12137 , left, right, center
12138 \end_layout
12139
12140 \end_inset
12141
12142 ] A comma separated list of permitted alignments.
12143  (Some \SpecialChar LaTeX
12144  styles prohibit certain alignments, since those wouldn't make sense.
12145  For example a right-aligned or centered enumeration isn't possible.)
12146 \end_layout
12147
12148 \begin_layout Description
12149 \begin_inset Flex Code
12150 status collapsed
12151
12152 \begin_layout Plain Layout
12153 Argument
12154 \end_layout
12155
12156 \end_inset
12157
12158  [
12159 \begin_inset Flex Code
12160 status collapsed
12161
12162 \begin_layout Plain Layout
12163 int
12164 \end_layout
12165
12166 \end_inset
12167
12168 ] Defines argument number <int> of a command\SpecialChar breakableslash
12169 environment associated with
12170  the current style.
12171  This is useful for things like section headings, and only makes sense with
12172  \SpecialChar LaTeX
12173 .
12174  Every (optional or required) argument of a command or environment – except
12175  for the required argument that is associated with the content of the paragraph
12176  itself – has a separate definition, where the number specifies the order
12177  of the arguments.
12178  The definition must end with 
12179 \begin_inset Flex Code
12180 status collapsed
12181
12182 \begin_layout Plain Layout
12183 EndArgument
12184 \end_layout
12185
12186 \end_inset
12187
12188 .
12189  So a command with two optional arguments has:
12190 \end_layout
12191
12192 \begin_deeper
12193 \begin_layout Quote
12194
12195 \family typewriter
12196 Argument 1
12197 \end_layout
12198
12199 \begin_layout Quote
12200
12201 \family typewriter
12202 ...
12203 \end_layout
12204
12205 \begin_layout Quote
12206
12207 \family typewriter
12208 EndArgument
12209 \end_layout
12210
12211 \begin_layout Quote
12212
12213 \family typewriter
12214 Argument 2
12215 \end_layout
12216
12217 \begin_layout Quote
12218
12219 \family typewriter
12220 ...
12221 \end_layout
12222
12223 \begin_layout Quote
12224
12225 \family typewriter
12226 EndArgument
12227 \end_layout
12228
12229 \begin_layout Standard
12230 Inside the 
12231 \begin_inset Flex Code
12232 status collapsed
12233
12234 \begin_layout Plain Layout
12235 Argument
12236 \end_layout
12237
12238 \end_inset
12239
12240  definition, the following specifications are possible:
12241 \end_layout
12242
12243 \begin_layout Itemize
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248 LabelString
12249 \end_layout
12250
12251 \end_inset
12252
12253  
12254 \begin_inset Flex Code
12255 status collapsed
12256
12257 \begin_layout Plain Layout
12258 [string]
12259 \end_layout
12260
12261 \end_inset
12262
12263  The string that will appear both in the menu (to insert this argument)
12264  and on the argument inset button (unless you also specify a separate 
12265 \begin_inset Flex Code
12266 status collapsed
12267
12268 \begin_layout Plain Layout
12269 MenuString
12270 \end_layout
12271
12272 \end_inset
12273
12274 ).
12275  For the menu, you can define an accelerator by appending the respective
12276  character to the string, divided by 
12277 \begin_inset Quotes eld
12278 \end_inset
12279
12280 |
12281 \begin_inset Quotes erd
12282 \end_inset
12283
12284  (e.
12285 \begin_inset space \thinspace{}
12286 \end_inset
12287
12288 g.
12289 \begin_inset space \space{}
12290 \end_inset
12291
12292
12293 \begin_inset Quotes eld
12294 \end_inset
12295
12296
12297 \begin_inset Flex Code
12298 status collapsed
12299
12300 \begin_layout Plain Layout
12301 Short Title|S
12302 \end_layout
12303
12304 \end_inset
12305
12306
12307 \begin_inset Quotes erd
12308 \end_inset
12309
12310 ).
12311 \end_layout
12312
12313 \begin_layout Itemize
12314 \begin_inset Flex Code
12315 status collapsed
12316
12317 \begin_layout Plain Layout
12318 MenuString
12319 \end_layout
12320
12321 \end_inset
12322
12323  
12324 \begin_inset Flex Code
12325 status collapsed
12326
12327 \begin_layout Plain Layout
12328 [string]
12329 \end_layout
12330
12331 \end_inset
12332
12333  A separate string for the menu.
12334  You can define an accelerator by appending the respective character to
12335  the string, divided by 
12336 \begin_inset Quotes eld
12337 \end_inset
12338
12339 |
12340 \begin_inset Quotes erd
12341 \end_inset
12342
12343  (e.
12344 \begin_inset space \thinspace{}
12345 \end_inset
12346
12347 g.
12348 \begin_inset space \space{}
12349 \end_inset
12350
12351
12352 \begin_inset Quotes eld
12353 \end_inset
12354
12355
12356 \begin_inset Flex Code
12357 status collapsed
12358
12359 \begin_layout Plain Layout
12360 Short Title|S
12361 \end_layout
12362
12363 \end_inset
12364
12365
12366 \begin_inset Quotes erd
12367 \end_inset
12368
12369 ).
12370  This specification is optional.
12371  If it is not given the 
12372 \begin_inset Flex Code
12373 status collapsed
12374
12375 \begin_layout Plain Layout
12376 LabelString
12377 \end_layout
12378
12379 \end_inset
12380
12381  will be used instead for the menu.
12382 \end_layout
12383
12384 \begin_layout Itemize
12385 \begin_inset Flex Code
12386 status collapsed
12387
12388 \begin_layout Plain Layout
12389 Tooltip
12390 \end_layout
12391
12392 \end_inset
12393
12394  
12395 \begin_inset Flex Code
12396 status collapsed
12397
12398 \begin_layout Plain Layout
12399 [string]
12400 \end_layout
12401
12402 \end_inset
12403
12404  A longer explanatory text that appears in the tooltip when hovering over
12405  the argument inset.
12406 \end_layout
12407
12408 \begin_layout Itemize
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 Mandatory
12414 \end_layout
12415
12416 \end_inset
12417
12418  [
12419 \begin_inset Flex Code
12420 status collapsed
12421
12422 \begin_layout Plain Layout
12423
12424 \emph on
12425 0
12426 \end_layout
12427
12428 \end_inset
12429
12430 ,
12431 \begin_inset space \thinspace{}
12432 \end_inset
12433
12434
12435 \begin_inset Flex Code
12436 status collapsed
12437
12438 \begin_layout Plain Layout
12439 1
12440 \end_layout
12441
12442 \end_inset
12443
12444 ] Declare if this is a mandatory (1) or an optional (0) argument.
12445  Mandatory arguments will be output empty if not given, while optional arguments
12446  will not be output at all.
12447  By default, mandatory arguments are delimited by 
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452 {...}
12453 \end_layout
12454
12455 \end_inset
12456
12457 , while optional arguments are delimited by 
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462 [...]
12463 \end_layout
12464
12465 \end_inset
12466
12467
12468 \change_inserted -712698321 1555579782
12469
12470 \end_layout
12471
12472 \begin_layout Itemize
12473
12474 \change_inserted -712698321 1555579780
12475 \begin_inset Flex Code
12476 status collapsed
12477
12478 \begin_layout Plain Layout
12479
12480 \change_inserted -712698321 1555579780
12481 NewlineCmd
12482 \end_layout
12483
12484 \end_inset
12485
12486  
12487 \begin_inset Flex Code
12488 status collapsed
12489
12490 \begin_layout Plain Layout
12491
12492 \change_inserted -712698321 1555579780
12493 [string]
12494 \end_layout
12495
12496 \end_inset
12497
12498  Option to define a different command (from the default 
12499 \begin_inset Flex Code
12500 status collapsed
12501
12502 \begin_layout Plain Layout
12503
12504 \change_inserted -712698321 1555579780
12505
12506 \backslash
12507
12508 \backslash
12509
12510 \end_layout
12511
12512 \end_inset
12513
12514 ) to be used for line breaks.
12515  The initial backslash must not be specified.
12516 \change_unchanged
12517
12518 \end_layout
12519
12520 \begin_layout Itemize
12521 \begin_inset Flex Code
12522 status collapsed
12523
12524 \begin_layout Plain Layout
12525 Requires
12526 \end_layout
12527
12528 \end_inset
12529
12530  
12531 \begin_inset Flex Code
12532 status collapsed
12533
12534 \begin_layout Plain Layout
12535 [int=0]
12536 \end_layout
12537
12538 \end_inset
12539
12540  defines another argument (by its number) which this argument requires to
12541  be output if it is itself output.
12542  E.
12543 \begin_inset space \thinspace{}
12544 \end_inset
12545
12546 g., in \SpecialChar LaTeX
12547  commands, optional arguments often require previous optional arguments
12548  to be output (at least empty), as in 
12549 \begin_inset Flex Code
12550 status collapsed
12551
12552 \begin_layout Plain Layout
12553
12554 \backslash
12555 command[][argument]{text}
12556 \end_layout
12557
12558 \end_inset
12559
12560 .
12561  This can be achieved by the statement 
12562 \begin_inset Flex Code
12563 status collapsed
12564
12565 \begin_layout Plain Layout
12566 Requires 1
12567 \end_layout
12568
12569 \end_inset
12570
12571  within 
12572 \begin_inset Flex Code
12573 status collapsed
12574
12575 \begin_layout Plain Layout
12576 Argument 2
12577 \end_layout
12578
12579 \end_inset
12580
12581 .
12582 \end_layout
12583
12584 \begin_layout Itemize
12585 \begin_inset Flex Code
12586 status collapsed
12587
12588 \begin_layout Plain Layout
12589 LeftDelim
12590 \end_layout
12591
12592 \end_inset
12593
12594  
12595 \begin_inset Flex Code
12596 status collapsed
12597
12598 \begin_layout Plain Layout
12599 [string]
12600 \end_layout
12601
12602 \end_inset
12603
12604  defines a custom left delimiter (instead of 
12605 \begin_inset Flex Code
12606 status collapsed
12607
12608 \begin_layout Plain Layout
12609 {
12610 \end_layout
12611
12612 \end_inset
12613
12614  or 
12615 \begin_inset Flex Code
12616 status collapsed
12617
12618 \begin_layout Plain Layout
12619 [
12620 \end_layout
12621
12622 \end_inset
12623
12624 ).
12625  A line break in the output can be indicated by 
12626 \begin_inset Flex Code
12627 status collapsed
12628
12629 \begin_layout Plain Layout
12630 <br/>
12631 \end_layout
12632
12633 \end_inset
12634
12635 .
12636 \end_layout
12637
12638 \begin_layout Itemize
12639 \begin_inset Flex Code
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643 RightDelim
12644 \end_layout
12645
12646 \end_inset
12647
12648  
12649 \begin_inset Flex Code
12650 status collapsed
12651
12652 \begin_layout Plain Layout
12653 [string]
12654 \end_layout
12655
12656 \end_inset
12657
12658  defines a custom right delimiter (instead of 
12659 \begin_inset Flex Code
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663 }
12664 \end_layout
12665
12666 \end_inset
12667
12668  or 
12669 \begin_inset Flex Code
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673 ]
12674 \end_layout
12675
12676 \end_inset
12677
12678 ).
12679  A line break in the output can be indicated by 
12680 \begin_inset Flex Code
12681 status collapsed
12682
12683 \begin_layout Plain Layout
12684 <br/>
12685 \end_layout
12686
12687 \end_inset
12688
12689 .
12690 \end_layout
12691
12692 \begin_layout Itemize
12693 \begin_inset Flex Code
12694 status collapsed
12695
12696 \begin_layout Plain Layout
12697 DefaultArg
12698 \end_layout
12699
12700 \end_inset
12701
12702  
12703 \begin_inset Flex Code
12704 status collapsed
12705
12706 \begin_layout Plain Layout
12707 [string]
12708 \end_layout
12709
12710 \end_inset
12711
12712  defines an argument that is inserted if and only if no user-specified arguments
12713  were given, i.
12714 \begin_inset space \thinspace{}
12715 \end_inset
12716
12717 e.
12718 \begin_inset space \space{}
12719 \end_inset
12720
12721 if no argument inset has been inserted (note that also an empty argument
12722  inset omits the DefaultArg).
12723  Multiple arguments need to be separated by comma.
12724 \end_layout
12725
12726 \begin_layout Itemize
12727 \begin_inset Flex Code
12728 status collapsed
12729
12730 \begin_layout Plain Layout
12731 PresetArg
12732 \end_layout
12733
12734 \end_inset
12735
12736  
12737 \begin_inset Flex Code
12738 status collapsed
12739
12740 \begin_layout Plain Layout
12741 [string]
12742 \end_layout
12743
12744 \end_inset
12745
12746  defines an argument that is inserted in any case (alone or in addition
12747  to user-specified arguments).
12748  Multiple arguments need to be separated by comma.
12749 \end_layout
12750
12751 \begin_layout Itemize
12752 \begin_inset Flex Code
12753 status collapsed
12754
12755 \begin_layout Plain Layout
12756 Font
12757 \end_layout
12758
12759 \end_inset
12760
12761  The font used for the argument content, see 
12762 \begin_inset CommandInset ref
12763 LatexCommand ref
12764 reference "subsec:Font-description"
12765
12766 \end_inset
12767
12768 .
12769 \change_inserted -712698321 1559484228
12770
12771 \end_layout
12772
12773 \begin_layout Itemize
12774
12775 \change_inserted -712698321 1559484228
12776 \begin_inset Flex Code
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780
12781 \change_inserted -712698321 1559484228
12782 FreeSpacing
12783 \end_layout
12784
12785 \end_inset
12786
12787  [
12788 \begin_inset Flex Code
12789 status collapsed
12790
12791 \begin_layout Plain Layout
12792
12793 \change_inserted -712698321 1559484228
12794
12795 \emph on
12796 0
12797 \end_layout
12798
12799 \end_inset
12800
12801 ,
12802 \begin_inset space \thinspace{}
12803 \end_inset
12804
12805
12806 \begin_inset Flex Code
12807 status collapsed
12808
12809 \begin_layout Plain Layout
12810
12811 \change_inserted -712698321 1559484228
12812 1
12813 \end_layout
12814
12815 \end_inset
12816
12817 ] As with paragraph styles, see 
12818 \begin_inset CommandInset ref
12819 LatexCommand ref
12820 reference "subsec:Paragraph-Styles"
12821
12822 \end_inset
12823
12824 .
12825 \change_unchanged
12826
12827 \end_layout
12828
12829 \begin_layout Itemize
12830 \begin_inset Flex Code
12831 status collapsed
12832
12833 \begin_layout Plain Layout
12834 LabelFont
12835 \end_layout
12836
12837 \end_inset
12838
12839  The font used for the label; see 
12840 \begin_inset CommandInset ref
12841 LatexCommand ref
12842 reference "subsec:Font-description"
12843
12844 \end_inset
12845
12846 .
12847 \end_layout
12848
12849 \begin_layout Itemize
12850 \begin_inset Flex Code
12851 status collapsed
12852
12853 \begin_layout Plain Layout
12854 Decoration
12855 \end_layout
12856
12857 \end_inset
12858
12859  [
12860 \begin_inset Flex Code
12861 status collapsed
12862
12863 \begin_layout Plain Layout
12864
12865 \emph on
12866 Classic
12867 \emph default
12868 , Minimalistic, Conglomerate
12869 \end_layout
12870
12871 \end_inset
12872
12873 ] describes the rendering style used for the inset's frame and buttons.
12874 \end_layout
12875
12876 \begin_layout Itemize
12877 \begin_inset Flex Code
12878 status collapsed
12879
12880 \begin_layout Plain Layout
12881 AutoInsert
12882 \end_layout
12883
12884 \end_inset
12885
12886  
12887 \begin_inset Flex Code
12888 status collapsed
12889
12890 \begin_layout Plain Layout
12891 [int=0]
12892 \end_layout
12893
12894 \end_inset
12895
12896  If this is set to 
12897 \begin_inset Flex Code
12898 status collapsed
12899
12900 \begin_layout Plain Layout
12901 1
12902 \end_layout
12903
12904 \end_inset
12905
12906 , this argument is automatically inserted when the respective style is selected.
12907
12908 \change_deleted -712698321 1559484200
12909  Currently, only one argument per style\SpecialChar breakableslash
12910 layout can be automatically inserted.
12911 \change_unchanged
12912
12913 \end_layout
12914
12915 \begin_layout Itemize
12916
12917 \change_inserted -712698321 1559491402
12918 \begin_inset Flex Code
12919 status collapsed
12920
12921 \begin_layout Plain Layout
12922
12923 \change_inserted -712698321 1559490711
12924 InsertOnNewline
12925 \end_layout
12926
12927 \end_inset
12928
12929  
12930 \begin_inset Flex Code
12931 status collapsed
12932
12933 \begin_layout Plain Layout
12934
12935 \change_inserted -712698321 1559490703
12936 [int=0]
12937 \end_layout
12938
12939 \end_inset
12940
12941  If this is set to 
12942 \begin_inset Flex Code
12943 status collapsed
12944
12945 \begin_layout Plain Layout
12946
12947 \change_inserted -712698321 1559490703
12948 1
12949 \end_layout
12950
12951 \end_inset
12952
12953 , this argument will be inserted on a new line with 
12954 \begin_inset Flex Code
12955 status collapsed
12956
12957 \begin_layout Plain Layout
12958
12959 \change_inserted -712698321 1559491402
12960 AutoInsert
12961 \end_layout
12962
12963 \end_inset
12964
12965  (only available within Flex insets).
12966 \end_layout
12967
12968 \begin_layout Itemize
12969 \begin_inset Flex Code
12970 status collapsed
12971
12972 \begin_layout Plain Layout
12973 InsertCotext
12974 \end_layout
12975
12976 \end_inset
12977
12978  
12979 \begin_inset Flex Code
12980 status collapsed
12981
12982 \begin_layout Plain Layout
12983 [int=0]
12984 \end_layout
12985
12986 \end_inset
12987
12988  If this is set to 
12989 \begin_inset Flex Code
12990 status collapsed
12991
12992 \begin_layout Plain Layout
12993 1
12994 \end_layout
12995
12996 \end_inset
12997
12998 , this argument will be inserted with a copy of the co-text (either selected
12999  text or the whole paragraph) as content.
13000 \end_layout
13001
13002 \begin_layout Itemize
13003 \begin_inset Flex Code
13004 status collapsed
13005
13006 \begin_layout Plain Layout
13007 PassThru
13008 \end_layout
13009
13010 \end_inset
13011
13012  [
13013 \begin_inset Flex Code
13014 status collapsed
13015
13016 \begin_layout Plain Layout
13017
13018 \emph on
13019 inherited
13020 \emph default
13021 , true, false
13022 \end_layout
13023
13024 \end_inset
13025
13026 ] Whether the contents of this argument should be output in raw form, meaning
13027  without special translations that \SpecialChar LaTeX
13028  would require.
13029  By default, the 
13030 \begin_inset Flex Code
13031 status collapsed
13032
13033 \begin_layout Plain Layout
13034 PassThru
13035 \end_layout
13036
13037 \end_inset
13038
13039  status is inherited by the inset or paragraph layout the argument belongs
13040  to, true and false change the status for the given argument only.
13041 \end_layout
13042
13043 \begin_layout Itemize
13044 \begin_inset Flex Code
13045 status collapsed
13046
13047 \begin_layout Plain Layout
13048 PassThruChars
13049 \end_layout
13050
13051 \end_inset
13052
13053  [
13054 \begin_inset Flex Code
13055 status collapsed
13056
13057 \begin_layout Plain Layout
13058 string of characters
13059 \end_layout
13060
13061 \end_inset
13062
13063 ]
13064 \family typewriter
13065  
13066 \family default
13067 Defines individual characters
13068 \begin_inset Newline linebreak
13069 \end_inset
13070
13071 that should be output in raw form, meaning without special translations
13072  that \SpecialChar LaTeX
13073  would require.
13074  Note that, contrary to PassThru, this needs to be explicitly defined for
13075  arguments.
13076  That is, arguments do not inherit PassThruChars from their parent inset
13077  or layout.
13078 \end_layout
13079
13080 \begin_layout Itemize
13081 \begin_inset Flex Code
13082 status collapsed
13083
13084 \begin_layout Plain Layout
13085 IsTocCaption
13086 \end_layout
13087
13088 \end_inset
13089
13090  [
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095
13096 \emph on
13097 0
13098 \end_layout
13099
13100 \end_inset
13101
13102 ,
13103 \begin_inset space \thinspace{}
13104 \end_inset
13105
13106
13107 \begin_inset Flex Code
13108 status collapsed
13109
13110 \begin_layout Plain Layout
13111 1
13112 \end_layout
13113
13114 \end_inset
13115
13116 ] If this is set to 1, the argument will output its content in the corresponding
13117  item in the table of contents.
13118  See AddToToc.
13119 \end_layout
13120
13121 \begin_layout Standard
13122 By default, the text entered in the \SpecialChar LyX
13123  workarea in the respective layout is
13124  the last (mandatory) argument of a command if the 
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129 LatexType
13130 \end_layout
13131
13132 \end_inset
13133
13134  is 
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 Command
13140 \end_layout
13141
13142 \end_inset
13143
13144 .
13145  However, arguments with the prefix 
13146 \begin_inset Flex Code
13147 status collapsed
13148
13149 \begin_layout Plain Layout
13150 post:
13151 \end_layout
13152
13153 \end_inset
13154
13155  are output after this workarea argument.
13156  Note that post-argument numbering restarts at 1, so the first argument
13157  following the workarea argument is 
13158 \begin_inset Flex Code
13159 status collapsed
13160
13161 \begin_layout Plain Layout
13162 post:1
13163 \end_layout
13164
13165 \end_inset
13166
13167 .
13168  Post-arguments are ignored in any other 
13169 \begin_inset Flex Code
13170 status collapsed
13171
13172 \begin_layout Plain Layout
13173 LatexType
13174 \end_layout
13175
13176 \end_inset
13177
13178  than 
13179 \begin_inset Flex Code
13180 status collapsed
13181
13182 \begin_layout Plain Layout
13183 Command
13184 \end_layout
13185
13186 \end_inset
13187
13188 .
13189 \end_layout
13190
13191 \begin_layout Standard
13192 Arguments for list 
13193 \begin_inset Flex Code
13194 status collapsed
13195
13196 \begin_layout Plain Layout
13197
13198 \backslash
13199 item
13200 \end_layout
13201
13202 \end_inset
13203
13204 s (as in 
13205 \begin_inset Flex Code
13206 status collapsed
13207
13208 \begin_layout Plain Layout
13209
13210 \backslash
13211 item[foo]
13212 \end_layout
13213
13214 \end_inset
13215
13216 ) have the prefix 
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 item:
13222 \end_layout
13223
13224 \end_inset
13225
13226  followed by the number (e.
13227 \begin_inset space \thinspace{}
13228 \end_inset
13229
13230 g.
13231 \begin_inset space \space{}
13232 \end_inset
13233
13234
13235 \begin_inset Flex Code
13236 status collapsed
13237
13238 \begin_layout Plain Layout
13239 Argument item:1
13240 \end_layout
13241
13242 \end_inset
13243
13244 ).
13245 \change_inserted -712698321 1534487781
13246
13247 \end_layout
13248
13249 \begin_layout Standard
13250
13251 \change_inserted -712698321 1534488561
13252 Finally, there is a special argument type with the prefix 
13253 \begin_inset Flex Code
13254 status collapsed
13255
13256 \begin_layout Plain Layout
13257
13258 \change_inserted -712698321 1534487844
13259 listpreamble:
13260 \change_unchanged
13261
13262 \end_layout
13263
13264 \end_inset
13265
13266 .
13267  It is not really an argument, but uses the argument interface (thus, the
13268  prefix is also followed by a number, e.
13269 \begin_inset space \thinspace{}
13270 \end_inset
13271
13272 g.
13273  
13274 \begin_inset Flex Code
13275 status collapsed
13276
13277 \begin_layout Plain Layout
13278
13279 \change_inserted -712698321 1534488412
13280 Argument listpreamble:1
13281 \end_layout
13282
13283 \end_inset
13284
13285 ).
13286  As the name implies, it is targeted at lists such as 
13287 \family sans
13288 Itemize
13289 \family default
13290
13291 \family sans
13292 Enumerate
13293 \family default
13294
13295 \family sans
13296 Description
13297 \family default
13298 , or 
13299 \family sans
13300 Bibliography
13301 \family default
13302 .
13303  Its content will be output at the list start, before the first 
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308
13309 \change_inserted -712698321 1534488058
13310
13311 \backslash
13312 item
13313 \change_unchanged
13314
13315 \end_layout
13316
13317 \end_inset
13318
13319 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13320 ).
13321  This way, users can insert redefinitions (of lengths etc.) to individual
13322  lists.
13323  By default, these arguments do not have a delimiter.
13324 \change_unchanged
13325
13326 \end_layout
13327
13328 \end_deeper
13329 \begin_layout Description
13330 \begin_inset Flex Code
13331 status collapsed
13332
13333 \begin_layout Plain Layout
13334 AutoNests
13335 \end_layout
13336
13337 \end_inset
13338
13339  Includes a comma-separated list of layouts that should be nested in and
13340  after the current layout.
13341  Only makes sense for nestable layouts (such as environments).
13342  Must be ended by 
13343 \begin_inset Quotes eld
13344 \end_inset
13345
13346
13347 \begin_inset Flex Code
13348 status collapsed
13349
13350 \begin_layout Plain Layout
13351 EndAutoNests
13352 \end_layout
13353
13354 \end_inset
13355
13356
13357 \begin_inset Quotes erd
13358 \end_inset
13359
13360 .
13361  See also 
13362 \begin_inset Flex Code
13363 status collapsed
13364
13365 \begin_layout Plain Layout
13366 IsAutoNestedBy
13367 \end_layout
13368
13369 \end_inset
13370
13371 .
13372 \end_layout
13373
13374 \begin_layout Description
13375 \begin_inset Flex Code
13376 status collapsed
13377
13378 \begin_layout Plain Layout
13379 BabelPreamble
13380 \end_layout
13381
13382 \end_inset
13383
13384  Note that this will completely override any prior 
13385 \begin_inset Flex Code
13386 status collapsed
13387
13388 \begin_layout Plain Layout
13389 BabelPreamble
13390 \end_layout
13391
13392 \end_inset
13393
13394  declaration for this style.
13395  Must end with 
13396 \begin_inset Quotes eld
13397 \end_inset
13398
13399
13400 \begin_inset Flex Code
13401 status collapsed
13402
13403 \begin_layout Plain Layout
13404 EndBabelPreamble
13405 \end_layout
13406
13407 \end_inset
13408
13409
13410 \begin_inset Quotes erd
13411 \end_inset
13412
13413 .
13414  See 
13415 \begin_inset CommandInset ref
13416 LatexCommand ref
13417 reference "subsec:I18n"
13418
13419 \end_inset
13420
13421  for details on its use.
13422 \end_layout
13423
13424 \begin_layout Description
13425 \begin_inset Flex Code
13426 status collapsed
13427
13428 \begin_layout Plain Layout
13429 BottomSep
13430 \end_layout
13431
13432 \end_inset
13433
13434  [
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439 float=0
13440 \end_layout
13441
13442 \end_inset
13443
13444 ]
13445 \begin_inset Foot
13446 status collapsed
13447
13448 \begin_layout Plain Layout
13449 Note that a `float' here is a real number, such as: 1.5.
13450 \end_layout
13451
13452 \end_inset
13453
13454  The vertical space with which the last of a chain of paragraphs with this
13455  style is separated from the following paragraph.
13456  If the next paragraph has another style, the separations are not simply
13457  added, but the maximum is taken.
13458 \end_layout
13459
13460 \begin_layout Description
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465 Category
13466 \end_layout
13467
13468 \end_inset
13469
13470  [
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475 string
13476 \end_layout
13477
13478 \end_inset
13479
13480 ] The category for this style.
13481  This is used to group related styles in the style combobox on the toolbar.
13482  Any string can be used, but you may want to use existing categories with
13483  your own styles.
13484  
13485 \end_layout
13486
13487 \begin_layout Description
13488 \begin_inset Flex Code
13489 status collapsed
13490
13491 \begin_layout Plain Layout
13492 CommandDepth
13493 \end_layout
13494
13495 \end_inset
13496
13497  Depth of XML command.
13498  Used only with XML-type formats.
13499 \end_layout
13500
13501 \begin_layout Description
13502 \begin_inset Flex Code
13503 status collapsed
13504
13505 \begin_layout Plain Layout
13506 CopyStyle
13507 \end_layout
13508
13509 \end_inset
13510
13511  [
13512 \begin_inset Flex Code
13513 status collapsed
13514
13515 \begin_layout Plain Layout
13516 string
13517 \end_layout
13518
13519 \end_inset
13520
13521 ] Copies all the features of an existing style into the current one.
13522  
13523 \end_layout
13524
13525 \begin_layout Description
13526 \begin_inset Flex Code
13527 status collapsed
13528
13529 \begin_layout Plain Layout
13530 DependsOn
13531 \end_layout
13532
13533 \end_inset
13534
13535  [
13536 \begin_inset Flex Code
13537 status collapsed
13538
13539 \begin_layout Plain Layout
13540 <name>
13541 \end_layout
13542
13543 \end_inset
13544
13545 ] The name of a style whose preamble should be output 
13546 \emph on
13547 before
13548 \emph default
13549  this one.
13550  This allows to ensure some ordering of the preamble snippets when macros
13551  definitions depend on one another.
13552 \begin_inset Foot
13553 status collapsed
13554
13555 \begin_layout Plain Layout
13556 Note that, besides that functionality, there is no way to ensure any ordering
13557  of preambles.
13558  The ordering that you see in a given version of \SpecialChar LyX
13559  may change without warning
13560  in later versions.
13561 \end_layout
13562
13563 \end_inset
13564
13565
13566 \end_layout
13567
13568 \begin_layout Description
13569 \begin_inset Flex Code
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 EndLabeltype
13574 \end_layout
13575
13576 \end_inset
13577
13578  [
13579 \begin_inset Flex Code
13580 status collapsed
13581
13582 \begin_layout Plain Layout
13583
13584 \emph on
13585 No_Label
13586 \emph default
13587 , Box, Filled_Box, Static
13588 \end_layout
13589
13590 \end_inset
13591
13592 ] The type of label that stands at the end of the paragraph (or sequence
13593  of paragraphs if 
13594 \begin_inset Flex Code
13595 status collapsed
13596
13597 \begin_layout Plain Layout
13598 LatexType
13599 \end_layout
13600
13601 \end_inset
13602
13603  is
13604 \begin_inset Newline newline
13605 \end_inset
13606
13607
13608 \begin_inset Flex Code
13609 status collapsed
13610
13611 \begin_layout Plain Layout
13612 Environment
13613 \end_layout
13614
13615 \end_inset
13616
13617
13618 \begin_inset Flex Code
13619 status collapsed
13620
13621 \begin_layout Plain Layout
13622 Item_Environment
13623 \end_layout
13624
13625 \end_inset
13626
13627  or 
13628 \begin_inset Flex Code
13629 status collapsed
13630
13631 \begin_layout Plain Layout
13632 List_Environment
13633 \end_layout
13634
13635 \end_inset
13636
13637 ).
13638  
13639 \begin_inset Flex Code
13640 status collapsed
13641
13642 \begin_layout Plain Layout
13643 No_Label
13644 \end_layout
13645
13646 \end_inset
13647
13648  means 
13649 \begin_inset Quotes eld
13650 \end_inset
13651
13652 nothing
13653 \begin_inset Quotes erd
13654 \end_inset
13655
13656
13657 \begin_inset Flex Code
13658 status collapsed
13659
13660 \begin_layout Plain Layout
13661 Box
13662 \end_layout
13663
13664 \end_inset
13665
13666  (resp.
13667 \begin_inset space \space{}
13668 \end_inset
13669
13670
13671 \begin_inset Flex Code
13672 status collapsed
13673
13674 \begin_layout Plain Layout
13675 Filled_Box
13676 \end_layout
13677
13678 \end_inset
13679
13680 ) is a white (resp.
13681 \begin_inset space ~
13682 \end_inset
13683
13684 black) square suitable for end of proof markers, 
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 Static
13690 \end_layout
13691
13692 \end_inset
13693
13694  is an explicit text string.
13695 \end_layout
13696
13697 \begin_layout Description
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 EndLabelString
13703 \end_layout
13704
13705 \end_inset
13706
13707  [
13708 \begin_inset Flex Code
13709 status collapsed
13710
13711 \begin_layout Plain Layout
13712 string=""
13713 \end_layout
13714
13715 \end_inset
13716
13717 ] The string used for a label with a 
13718 \begin_inset Flex Code
13719 status collapsed
13720
13721 \begin_layout Plain Layout
13722 Static
13723 \end_layout
13724
13725 \end_inset
13726
13727
13728 \begin_inset Newline newline
13729 \end_inset
13730
13731
13732 \begin_inset Flex Code
13733 status collapsed
13734
13735 \begin_layout Plain Layout
13736 EndLabelType
13737 \end_layout
13738
13739 \end_inset
13740
13741 .
13742  
13743 \end_layout
13744
13745 \begin_layout Description
13746 \begin_inset Flex Code
13747 status collapsed
13748
13749 \begin_layout Plain Layout
13750 Font
13751 \end_layout
13752
13753 \end_inset
13754
13755  The font used for both the text body 
13756 \emph on
13757 and
13758 \emph default
13759  the label.
13760  See 
13761 \begin_inset CommandInset ref
13762 LatexCommand ref
13763 reference "subsec:Font-description"
13764
13765 \end_inset
13766
13767 .
13768  Note that defining this font automatically defines the 
13769 \begin_inset Flex Code
13770 status collapsed
13771
13772 \begin_layout Plain Layout
13773 LabelFont
13774 \end_layout
13775
13776 \end_inset
13777
13778  to the same value.
13779  So you should define this one first if you also want to define 
13780 \begin_inset Flex Code
13781 status collapsed
13782
13783 \begin_layout Plain Layout
13784 LabelFont
13785 \end_layout
13786
13787 \end_inset
13788
13789 .
13790 \end_layout
13791
13792 \begin_layout Description
13793 \begin_inset Flex Code
13794 status collapsed
13795
13796 \begin_layout Plain Layout
13797 ForceLocal
13798 \end_layout
13799
13800 \end_inset
13801
13802  [
13803 \begin_inset Flex Code
13804 status collapsed
13805
13806 \begin_layout Plain Layout
13807 int=0
13808 \end_layout
13809
13810 \end_inset
13811
13812 ] Used for backporting new styles to stable \SpecialChar LyX
13813  versions.
13814  The first stable version that supports this tag is \SpecialChar LyX
13815  2.1.0.
13816  The argument is a number which may either be 0, -1 or any value greater
13817  than zero.
13818  If the 
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 ForceLocal
13824 \end_layout
13825
13826 \end_inset
13827
13828  flag of a style is greater than zero, it will always be written to the
13829  document header.
13830  If a .lyx file is read, the style definitions from the document header are
13831  added to the document class.
13832  Therefore even older \SpecialChar LyX
13833  versions can handle the style.
13834  The argument of 
13835 \begin_inset Flex Code
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 ForceLocal
13840 \end_layout
13841
13842 \end_inset
13843
13844  is a version number: if the style is read, and the version number is less
13845  than the version number of the already existing style in the document class,
13846  the new style is ignored.
13847  If the version number is greater, the new style replaces the existing style.
13848  A value of -1 means an infinite version number, i.
13849 \begin_inset space \thinspace{}
13850 \end_inset
13851
13852 e.
13853 \begin_inset space \space{}
13854 \end_inset
13855
13856 the style is always used.
13857 \end_layout
13858
13859 \begin_layout Description
13860 \begin_inset Flex Code
13861 status collapsed
13862
13863 \begin_layout Plain Layout
13864 FreeSpacing
13865 \end_layout
13866
13867 \end_inset
13868
13869  [
13870 \begin_inset Flex Code
13871 status collapsed
13872
13873 \begin_layout Plain Layout
13874
13875 \emph on
13876 0
13877 \end_layout
13878
13879 \end_inset
13880
13881 ,
13882 \begin_inset space \thinspace{}
13883 \end_inset
13884
13885
13886 \begin_inset Flex Code
13887 status collapsed
13888
13889 \begin_layout Plain Layout
13890 1
13891 \end_layout
13892
13893 \end_inset
13894
13895 ] Usually \SpecialChar LyX
13896  does not allow you to insert more than one space between words,
13897  since a space is considered as the separation between two words, not a
13898  character or symbol of its own.
13899  This is a very fine thing but sometimes annoying, for example, when typing
13900  program code or plain \SpecialChar LaTeX
13901  code.
13902  For this reason, 
13903 \begin_inset Flex Code
13904 status collapsed
13905
13906 \begin_layout Plain Layout
13907 FreeSpacing
13908 \end_layout
13909
13910 \end_inset
13911
13912  can be enabled.
13913  
13914 \change_deleted -495245474 1550490105
13915 Note that 
13916 \change_unchanged
13917 \SpecialChar LyX
13918  will create protected blanks for the additional blanks when in 
13919 \change_inserted -495245474 1550490096
13920
13921 \begin_inset Flex Code
13922 status collapsed
13923
13924 \begin_layout Plain Layout
13925
13926 \change_inserted -495245474 1550490089
13927 Passthru 1
13928 \end_layout
13929
13930 \end_inset
13931
13932  is not specified.
13933 \change_deleted -495245474 1550490116
13934 another mode than \SpecialChar LaTeX
13935 -mode.
13936
13937 \change_inserted -495245474 1550247760
13938  Note that 
13939 \begin_inset Flex Code
13940 status collapsed
13941
13942 \begin_layout Plain Layout
13943
13944 \change_inserted -495245474 1550247736
13945 FreeSpacing
13946 \end_layout
13947
13948 \end_inset
13949
13950  implies 
13951 \begin_inset Flex Code
13952 status collapsed
13953
13954 \begin_layout Plain Layout
13955
13956 \change_inserted -495245474 1550247755
13957 KeepEmpty
13958 \end_layout
13959
13960 \end_inset
13961
13962 .
13963 \change_unchanged
13964
13965 \end_layout
13966
13967 \begin_layout Description
13968 \begin_inset Flex Code
13969 status collapsed
13970
13971 \begin_layout Plain Layout
13972 HTML*
13973 \end_layout
13974
13975 \end_inset
13976
13977  These tags are used with XHTML output.
13978  See 
13979 \begin_inset CommandInset ref
13980 LatexCommand ref
13981 reference "subsec:Paragraph-Style-XHTML"
13982
13983 \end_inset
13984
13985 .
13986 \end_layout
13987
13988 \begin_layout Description
13989 \begin_inset Flex Code
13990 status collapsed
13991
13992 \begin_layout Plain Layout
13993 InnerTag
13994 \end_layout
13995
13996 \end_inset
13997
13998  [FIXME] (Used only with XML-type formats.)
13999 \end_layout
14000
14001 \begin_layout Description
14002 \begin_inset Flex Code
14003 status collapsed
14004
14005 \begin_layout Plain Layout
14006 InPreamble
14007 \end_layout
14008
14009 \end_inset
14010
14011  [
14012 \begin_inset Flex Code
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016
14017 \emph on
14018 0
14019 \end_layout
14020
14021 \end_inset
14022
14023 ,
14024 \begin_inset space \thinspace{}
14025 \end_inset
14026
14027
14028 \begin_inset Flex Code
14029 status collapsed
14030
14031 \begin_layout Plain Layout
14032 1
14033 \end_layout
14034
14035 \end_inset
14036
14037 ] If 
14038 \begin_inset Flex Code
14039 status collapsed
14040
14041 \begin_layout Plain Layout
14042 1
14043 \end_layout
14044
14045 \end_inset
14046
14047 , marks the style as to be included in the document preamble and not in
14048  the document body.
14049  This is useful for document classes that want such information as the title
14050  and author to appear in the preamble.
14051  Note that this works only for styles for which the 
14052 \begin_inset Flex Code
14053 status collapsed
14054
14055 \begin_layout Plain Layout
14056 LatexType
14057 \end_layout
14058
14059 \end_inset
14060
14061  is 
14062 \begin_inset Flex Code
14063 status collapsed
14064
14065 \begin_layout Plain Layout
14066 Command
14067 \end_layout
14068
14069 \end_inset
14070
14071  or 
14072 \begin_inset Flex Code
14073 status collapsed
14074
14075 \begin_layout Plain Layout
14076 Paragraph
14077 \end_layout
14078
14079 \end_inset
14080
14081 .
14082 \end_layout
14083
14084 \begin_layout Description
14085 \begin_inset Flex Code
14086 status collapsed
14087
14088 \begin_layout Plain Layout
14089 InTitle
14090 \end_layout
14091
14092 \end_inset
14093
14094  [
14095 \begin_inset Flex Code
14096 status collapsed
14097
14098 \begin_layout Plain Layout
14099
14100 \emph on
14101 0
14102 \end_layout
14103
14104 \end_inset
14105
14106 ,
14107 \begin_inset space \thinspace{}
14108 \end_inset
14109
14110
14111 \begin_inset Flex Code
14112 status collapsed
14113
14114 \begin_layout Plain Layout
14115 1
14116 \end_layout
14117
14118 \end_inset
14119
14120 ] If 
14121 \begin_inset Flex Code
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 1
14126 \end_layout
14127
14128 \end_inset
14129
14130 , marks the style as being part of a title block (see also the 
14131 \begin_inset Flex Code
14132 status collapsed
14133
14134 \begin_layout Plain Layout
14135 TitleLatexType
14136 \end_layout
14137
14138 \end_inset
14139
14140  and 
14141 \begin_inset Flex Code
14142 status collapsed
14143
14144 \begin_layout Plain Layout
14145 TitleLatexName
14146 \end_layout
14147
14148 \end_inset
14149
14150  global entries).
14151 \end_layout
14152
14153 \begin_layout Description
14154 \begin_inset Flex Code
14155 status collapsed
14156
14157 \begin_layout Plain Layout
14158 IsAutoNestedBy
14159 \end_layout
14160
14161 \end_inset
14162
14163  Includes a comma-separated list of layouts after which this one should
14164  be nested.
14165  Only makes sense with regard to nestable layouts (such as environments).
14166  Must be ended by 
14167 \begin_inset Quotes eld
14168 \end_inset
14169
14170
14171 \begin_inset Flex Code
14172 status collapsed
14173
14174 \begin_layout Plain Layout
14175 EndIsAutoNestedBy
14176 \end_layout
14177
14178 \end_inset
14179
14180
14181 \begin_inset Quotes erd
14182 \end_inset
14183
14184 .
14185  See also 
14186 \begin_inset Flex Code
14187 status collapsed
14188
14189 \begin_layout Plain Layout
14190 AutoNests
14191 \end_layout
14192
14193 \end_inset
14194
14195 .
14196 \end_layout
14197
14198 \begin_layout Description
14199 \begin_inset Flex Code
14200 status collapsed
14201
14202 \begin_layout Plain Layout
14203 IsTocCaption
14204 \end_layout
14205
14206 \end_inset
14207
14208  [
14209 \begin_inset Flex Code
14210 status collapsed
14211
14212 \begin_layout Plain Layout
14213
14214 \emph on
14215 0
14216 \end_layout
14217
14218 \end_inset
14219
14220 ,
14221 \begin_inset space \thinspace{}
14222 \end_inset
14223
14224
14225 \begin_inset Flex Code
14226 status collapsed
14227
14228 \begin_layout Plain Layout
14229 1
14230 \end_layout
14231
14232 \end_inset
14233
14234 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14235  of its contents in its item in the table of contents.
14236  Otherwise, only the label, if it exists, appears.
14237 \end_layout
14238
14239 \begin_layout Description
14240 \begin_inset Flex Code
14241 status collapsed
14242
14243 \begin_layout Plain Layout
14244 ItemCommand
14245 \end_layout
14246
14247 \end_inset
14248
14249  [
14250 \begin_inset Flex Code
14251 status collapsed
14252
14253 \begin_layout Plain Layout
14254 string="item"
14255 \end_layout
14256
14257 \end_inset
14258
14259 ] The \SpecialChar LaTeX
14260  command sequence declaring an item in a list.
14261  The command is to be defined without the preceding backslash (the default
14262  is 
14263 \begin_inset Quotes eld
14264 \end_inset
14265
14266 item
14267 \begin_inset Quotes erd
14268 \end_inset
14269
14270 , resulting in 
14271 \begin_inset Flex Code
14272 status collapsed
14273
14274 \begin_layout Plain Layout
14275
14276 \backslash
14277 item
14278 \end_layout
14279
14280 \end_inset
14281
14282  in the \SpecialChar LaTeX
14283  output).
14284 \end_layout
14285
14286 \begin_layout Description
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 ItemSep
14292 \end_layout
14293
14294 \end_inset
14295
14296  [
14297 \begin_inset Flex Code
14298 status collapsed
14299
14300 \begin_layout Plain Layout
14301 float=0
14302 \end_layout
14303
14304 \end_inset
14305
14306 ] This provides extra space between paragraphs that have the same style.
14307  If you put other styles into an environment, each is separated with the
14308  environment's 
14309 \begin_inset Flex Code
14310 status collapsed
14311
14312 \begin_layout Plain Layout
14313 ParSep
14314 \end_layout
14315
14316 \end_inset
14317
14318 .
14319  But the whole items of the environment are additionally separated with
14320  this 
14321 \begin_inset Flex Code
14322 status collapsed
14323
14324 \begin_layout Plain Layout
14325 ItemSep
14326 \end_layout
14327
14328 \end_inset
14329
14330 .
14331  Note that this is a
14332 \emph on
14333  multiplier.
14334 \end_layout
14335
14336 \begin_layout Description
14337 \begin_inset Flex Code
14338 status collapsed
14339
14340 \begin_layout Plain Layout
14341 ItemTag
14342 \end_layout
14343
14344 \end_inset
14345
14346  [FIXME] (Used only with XML-type formats.)
14347 \end_layout
14348
14349 \begin_layout Description
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 KeepEmpty
14355 \end_layout
14356
14357 \end_inset
14358
14359  [
14360 \begin_inset Flex Code
14361 status collapsed
14362
14363 \begin_layout Plain Layout
14364
14365 \emph on
14366 0
14367 \end_layout
14368
14369 \end_inset
14370
14371 ,
14372 \begin_inset space \thinspace{}
14373 \end_inset
14374
14375
14376 \begin_inset Flex Code
14377 status collapsed
14378
14379 \begin_layout Plain Layout
14380 1
14381 \end_layout
14382
14383 \end_inset
14384
14385 ] Usually \SpecialChar LyX
14386  does not allow you to leave a paragraph empty, since it would
14387  lead to empty \SpecialChar LaTeX
14388  output.
14389  There are some cases where this could be desirable however: in a letter
14390  template, the required fields can be provided as empty fields, so that
14391  people do not forget them; in some special classes, a style can be used
14392  as some kind of break, which does not contain actual text.
14393 \end_layout
14394
14395 \begin_layout Description
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 LabelBottomsep
14401 \end_layout
14402
14403 \end_inset
14404
14405  [
14406 \begin_inset Flex Code
14407 status collapsed
14408
14409 \begin_layout Plain Layout
14410 float=0
14411 \end_layout
14412
14413 \end_inset
14414
14415 ] The vertical space between the label and the text body.
14416  Only used for labels that are above the text body (
14417 \begin_inset Flex Code
14418 status collapsed
14419
14420 \begin_layout Plain Layout
14421 Top_Environment
14422 \end_layout
14423
14424 \end_inset
14425
14426  and
14427 \begin_inset Newline newline
14428 \end_inset
14429
14430
14431 \begin_inset Flex Code
14432 status collapsed
14433
14434 \begin_layout Plain Layout
14435 Centered_Top_Environment
14436 \end_layout
14437
14438 \end_inset
14439
14440 ).
14441 \end_layout
14442
14443 \begin_layout Description
14444 \begin_inset Flex Code
14445 status collapsed
14446
14447 \begin_layout Plain Layout
14448 LabelCounter
14449 \end_layout
14450
14451 \end_inset
14452
14453  [
14454 \begin_inset Flex Code
14455 status collapsed
14456
14457 \begin_layout Plain Layout
14458 string=""
14459 \end_layout
14460
14461 \end_inset
14462
14463 ] The name of the counter for automatic numbering.
14464  In order to have the counter appear with your label, you will need to reference
14465  it in the 
14466 \begin_inset Flex Code
14467 status collapsed
14468
14469 \begin_layout Plain Layout
14470
14471 \family typewriter
14472 LabelString
14473 \end_layout
14474
14475 \end_inset
14476
14477 .
14478  This will work with 
14479 \begin_inset Flex Code
14480 status collapsed
14481
14482 \begin_layout Plain Layout
14483 LabelType
14484 \end_layout
14485
14486 \end_inset
14487
14488 s, 
14489 \begin_inset Flex Code
14490 status collapsed
14491
14492 \begin_layout Plain Layout
14493 Static
14494 \end_layout
14495
14496 \end_inset
14497
14498
14499 \begin_inset Flex Code
14500 status collapsed
14501
14502 \begin_layout Plain Layout
14503 Above
14504 \end_layout
14505
14506 \end_inset
14507
14508  and 
14509 \begin_inset Flex Code
14510 status collapsed
14511
14512 \begin_layout Plain Layout
14513 Centered
14514 \end_layout
14515
14516 \end_inset
14517
14518 , at least.
14519 \begin_inset Newline newline
14520 \end_inset
14521
14522 This 
14523 \emph on
14524 may
14525 \emph default
14526  also be given if 
14527 \begin_inset Flex Code
14528 status collapsed
14529
14530 \begin_layout Plain Layout
14531 LabelType
14532 \end_layout
14533
14534 \end_inset
14535
14536  is 
14537 \begin_inset Flex Code
14538 status collapsed
14539
14540 \begin_layout Plain Layout
14541 Enumerate
14542 \end_layout
14543
14544 \end_inset
14545
14546 , though this case is a bit complicated.
14547  Suppose you declare 
14548 \begin_inset Quotes eld
14549 \end_inset
14550
14551
14552 \begin_inset Flex Code
14553 status collapsed
14554
14555 \begin_layout Plain Layout
14556 LabelCounter myenum
14557 \end_layout
14558
14559 \end_inset
14560
14561
14562 \begin_inset Quotes erd
14563 \end_inset
14564
14565 .
14566  Then the actual counters used are 
14567 \begin_inset Flex Code
14568 status collapsed
14569
14570 \begin_layout Plain Layout
14571 myenumi
14572 \end_layout
14573
14574 \end_inset
14575
14576
14577 \begin_inset Flex Code
14578 status collapsed
14579
14580 \begin_layout Plain Layout
14581 myenumii
14582 \end_layout
14583
14584 \end_inset
14585
14586
14587 \begin_inset Flex Code
14588 status collapsed
14589
14590 \begin_layout Plain Layout
14591 myenumiii
14592 \end_layout
14593
14594 \end_inset
14595
14596  and 
14597 \begin_inset Flex Code
14598 status collapsed
14599
14600 \begin_layout Plain Layout
14601 myenumiv
14602 \end_layout
14603
14604 \end_inset
14605
14606 , much as in \SpecialChar LaTeX
14607 .
14608  These counters must all be declared separately.
14609 \begin_inset Newline newline
14610 \end_inset
14611
14612 See 
14613 \begin_inset CommandInset ref
14614 LatexCommand ref
14615 reference "subsec:Counters"
14616
14617 \end_inset
14618
14619  for details on counters.
14620 \end_layout
14621
14622 \begin_layout Description
14623 \begin_inset Flex Code
14624 status collapsed
14625
14626 \begin_layout Plain Layout
14627 LabelFont
14628 \end_layout
14629
14630 \end_inset
14631
14632  The font used for the label.
14633  See 
14634 \begin_inset CommandInset ref
14635 LatexCommand ref
14636 reference "subsec:Font-description"
14637
14638 \end_inset
14639
14640 .
14641 \end_layout
14642
14643 \begin_layout Description
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648 LabelIndent
14649 \end_layout
14650
14651 \end_inset
14652
14653  [
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 string=""
14659 \end_layout
14660
14661 \end_inset
14662
14663 ] Text that indicates how far a label should be indented.
14664 \end_layout
14665
14666 \begin_layout Description
14667 \begin_inset Flex Code
14668 status collapsed
14669
14670 \begin_layout Plain Layout
14671 LabelSep
14672 \end_layout
14673
14674 \end_inset
14675
14676  [
14677 \begin_inset Flex Code
14678 status collapsed
14679
14680 \begin_layout Plain Layout
14681 string=""
14682 \end_layout
14683
14684 \end_inset
14685
14686 ] Text that indicates the amount of horizontal space between the label and
14687  the text body.
14688  Only used for labels that are not above the text body.
14689 \end_layout
14690
14691 \begin_layout Description
14692 \begin_inset Flex Code
14693 status collapsed
14694
14695 \begin_layout Plain Layout
14696 LabelString
14697 \end_layout
14698
14699 \end_inset
14700
14701  [
14702 \begin_inset Flex Code
14703 status collapsed
14704
14705 \begin_layout Plain Layout
14706 string=""
14707 \end_layout
14708
14709 \end_inset
14710
14711 ] The string used for the label.
14712  When 
14713 \begin_inset Flex Code
14714 status collapsed
14715
14716 \begin_layout Plain Layout
14717 LabelCounter
14718 \end_layout
14719
14720 \end_inset
14721
14722  is set, this string can be contain the special formatting commands described
14723  in 
14724 \begin_inset CommandInset ref
14725 LatexCommand ref
14726 reference "subsec:Counters"
14727
14728 \end_inset
14729
14730 .
14731 \end_layout
14732
14733 \begin_layout Description
14734 \begin_inset Flex Code
14735 status collapsed
14736
14737 \begin_layout Plain Layout
14738 LabelStringAppendix
14739 \end_layout
14740
14741 \end_inset
14742
14743  [
14744 \begin_inset Flex Code
14745 status collapsed
14746
14747 \begin_layout Plain Layout
14748 string=""
14749 \end_layout
14750
14751 \end_inset
14752
14753 ] This is used inside the appendix instead of
14754 \begin_inset Newline newline
14755 \end_inset
14756
14757
14758 \begin_inset Flex Code
14759 status collapsed
14760
14761 \begin_layout Plain Layout
14762 LabelString
14763 \end_layout
14764
14765 \end_inset
14766
14767 .
14768  Note that every 
14769 \begin_inset Flex Code
14770 status collapsed
14771
14772 \begin_layout Plain Layout
14773 LabelString
14774 \end_layout
14775
14776 \end_inset
14777
14778  statement resets
14779 \begin_inset Newline newline
14780 \end_inset
14781
14782
14783 \begin_inset Flex Code
14784 status collapsed
14785
14786 \begin_layout Plain Layout
14787 LabelStringAppendix
14788 \end_layout
14789
14790 \end_inset
14791
14792  too.
14793 \end_layout
14794
14795 \begin_layout Description
14796 \begin_inset Flex Code
14797 status collapsed
14798
14799 \begin_layout Plain Layout
14800 LabelTag
14801 \end_layout
14802
14803 \end_inset
14804
14805  [FIXME] (Used only with XML-type formats.)
14806 \end_layout
14807
14808 \begin_layout Description
14809 \begin_inset Flex Code
14810 status collapsed
14811
14812 \begin_layout Plain Layout
14813 LabelType
14814 \end_layout
14815
14816 \end_inset
14817
14818  [
14819 \begin_inset Flex Code
14820 status collapsed
14821
14822 \begin_layout Plain Layout
14823
14824 \emph on
14825 No_Label
14826 \emph default
14827 , Manual, Static, Above, 
14828 \begin_inset Newline newline
14829 \end_inset
14830
14831 Centered, Sensitive, Enumerate,
14832 \begin_inset Newline newline
14833 \end_inset
14834
14835 Itemize, Bibliography
14836 \end_layout
14837
14838 \end_inset
14839
14840 ]
14841 \end_layout
14842
14843 \begin_deeper
14844 \begin_layout Description
14845 \begin_inset Flex Code
14846 status collapsed
14847
14848 \begin_layout Plain Layout
14849 Manual
14850 \end_layout
14851
14852 \end_inset
14853
14854  means the label is the very first word (up to the first real blank).
14855  Use protected spaces if you want more than one word as the label.
14856  
14857 \end_layout
14858
14859 \begin_layout Description
14860 \begin_inset Flex Code
14861 status collapsed
14862
14863 \begin_layout Plain Layout
14864 Static
14865 \end_layout
14866
14867 \end_inset
14868
14869  means the label is simply what is declared as 
14870 \begin_inset Flex Code
14871 status collapsed
14872
14873 \begin_layout Plain Layout
14874 LabelString
14875 \end_layout
14876
14877 \end_inset
14878
14879 .
14880  This will be displayed 
14881 \begin_inset Quotes eld
14882 \end_inset
14883
14884 inline
14885 \begin_inset Quotes erd
14886 \end_inset
14887
14888 , at the beginning of the paragraph.
14889  If the 
14890 \begin_inset Flex Code
14891 status collapsed
14892
14893 \begin_layout Plain Layout
14894 LatexType
14895 \end_layout
14896
14897 \end_inset
14898
14899  is 
14900 \begin_inset Flex Code
14901 status collapsed
14902
14903 \begin_layout Plain Layout
14904 Environment
14905 \end_layout
14906
14907 \end_inset
14908
14909 , then it will be displayed only in the first paragraph of any sequence
14910  of paragraphs with the same 
14911 \begin_inset Flex Code
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 Style
14916 \end_layout
14917
14918 \end_inset
14919
14920 .
14921 \end_layout
14922
14923 \begin_layout Description
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928 Above
14929 \end_layout
14930
14931 \end_inset
14932
14933
14934 \begin_inset space ~
14935 \end_inset
14936
14937 and
14938 \begin_inset space ~
14939 \end_inset
14940
14941
14942 \begin_inset Flex Code
14943 status collapsed
14944
14945 \begin_layout Plain Layout
14946 Centered
14947 \end_layout
14948
14949 \end_inset
14950
14951  are special cases of 
14952 \begin_inset Flex Code
14953 status collapsed
14954
14955 \begin_layout Plain Layout
14956 Static
14957 \end_layout
14958
14959 \end_inset
14960
14961 .
14962  The label will be printed above the paragraph either at the beginning of
14963  the line or centered.
14964 \end_layout
14965
14966 \begin_layout Description
14967 \begin_inset Flex Code
14968 status collapsed
14969
14970 \begin_layout Plain Layout
14971 Sensitive
14972 \end_layout
14973
14974 \end_inset
14975
14976  is a special case for the caption-labels 
14977 \begin_inset Quotes eld
14978 \end_inset
14979
14980 Figure
14981 \begin_inset Quotes erd
14982 \end_inset
14983
14984  and 
14985 \begin_inset Quotes eld
14986 \end_inset
14987
14988 Table
14989 \begin_inset Quotes erd
14990 \end_inset
14991
14992 .
14993 \begin_inset Newline newline
14994 \end_inset
14995
14996
14997 \begin_inset Flex Code
14998 status collapsed
14999
15000 \begin_layout Plain Layout
15001 Sensitive
15002 \end_layout
15003
15004 \end_inset
15005
15006  means the (hardcoded) label string depends on the kind of float: It is
15007  hardcoded to be `FloatType N', where N is the value of the counter associated
15008  with the float.
15009  For the case that a caption is inserted outside of a float the 
15010 \begin_inset Flex Code
15011 status collapsed
15012
15013 \begin_layout Plain Layout
15014 LabelString
15015 \end_layout
15016
15017 \end_inset
15018
15019  will appear as 
15020 \begin_inset Quotes eld
15021 \end_inset
15022
15023 Senseless!
15024 \begin_inset Quotes erd
15025 \end_inset
15026
15027 .
15028 \end_layout
15029
15030 \begin_layout Description
15031 \begin_inset Flex Code
15032 status collapsed
15033
15034 \begin_layout Plain Layout
15035 Enumerate
15036 \end_layout
15037
15038 \end_inset
15039
15040  produces the usual sort of enumeration labels.
15041  The number type needs to be set in the 
15042 \family sans
15043 Counter
15044 \family default
15045 , see 
15046 \begin_inset CommandInset ref
15047 LatexCommand ref
15048 reference "subsec:Counters"
15049
15050 \end_inset
15051
15052 .
15053 \end_layout
15054
15055 \begin_layout Description
15056 \begin_inset Flex Code
15057 status collapsed
15058
15059 \begin_layout Plain Layout
15060 Itemize
15061 \end_layout
15062
15063 \end_inset
15064
15065  produces various bullets at the different levels.
15066  The bullet types displayed can be set via 
15067 \begin_inset Flex Noun
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 Document\SpecialChar menuseparator
15072 Settings\SpecialChar menuseparator
15073 Bullets
15074 \end_layout
15075
15076 \end_inset
15077
15078 .
15079 \end_layout
15080
15081 \begin_layout Description
15082 \begin_inset Flex Code
15083 status collapsed
15084
15085 \begin_layout Plain Layout
15086 Bibliography
15087 \end_layout
15088
15089 \end_inset
15090
15091  should be used only with 
15092 \begin_inset Flex Code
15093 status collapsed
15094
15095 \begin_layout Plain Layout
15096 LatexType BibEnvironment
15097 \end_layout
15098
15099 \end_inset
15100
15101 .
15102 \end_layout
15103
15104 \end_deeper
15105 \begin_layout Description
15106 \begin_inset Flex Code
15107 status collapsed
15108
15109 \begin_layout Plain Layout
15110 LangPreamble
15111 \end_layout
15112
15113 \end_inset
15114
15115  Note that this will completely override any prior 
15116 \begin_inset Flex Code
15117 status collapsed
15118
15119 \begin_layout Plain Layout
15120 LangPreamble
15121 \end_layout
15122
15123 \end_inset
15124
15125  declaration for this style.
15126  Must end with 
15127 \begin_inset Quotes eld
15128 \end_inset
15129
15130
15131 \begin_inset Flex Code
15132 status collapsed
15133
15134 \begin_layout Plain Layout
15135 EndLangPreamble
15136 \end_layout
15137
15138 \end_inset
15139
15140
15141 \begin_inset Quotes erd
15142 \end_inset
15143
15144 .
15145  See 
15146 \begin_inset CommandInset ref
15147 LatexCommand ref
15148 reference "subsec:I18n"
15149
15150 \end_inset
15151
15152  for details on its use.
15153 \end_layout
15154
15155 \begin_layout Description
15156 \begin_inset Flex Code
15157 status collapsed
15158
15159 \begin_layout Plain Layout
15160 LatexName
15161 \end_layout
15162
15163 \end_inset
15164
15165  [
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 <name>
15171 \end_layout
15172
15173 \end_inset
15174
15175 ] The name of the corresponding \SpecialChar LaTeX
15176  stuff.
15177  Either the environment or command name.
15178 \end_layout
15179
15180 \begin_layout Description
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185 LatexParam
15186 \end_layout
15187
15188 \end_inset
15189
15190  [
15191 \begin_inset Flex Code
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195 <parameter>
15196 \end_layout
15197
15198 \end_inset
15199
15200 ] An optional parameter for the corresponding 
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 LatexName
15206 \end_layout
15207
15208 \end_inset
15209
15210  stuff.
15211  This parameter cannot be changed from within \SpecialChar LyX
15212  (use 
15213 \begin_inset Flex Code
15214 status collapsed
15215
15216 \begin_layout Plain Layout
15217 Argument
15218 \end_layout
15219
15220 \end_inset
15221
15222  for customizable parameters).
15223  This will be output as is after all \SpecialChar LaTeX
15224  
15225 \begin_inset Flex Code
15226 status collapsed
15227
15228 \begin_layout Plain Layout
15229 Argument
15230 \end_layout
15231
15232 \end_inset
15233
15234 s.
15235 \end_layout
15236
15237 \begin_layout Description
15238 \begin_inset Flex Code
15239 status collapsed
15240
15241 \begin_layout Plain Layout
15242 LatexType
15243 \end_layout
15244
15245 \end_inset
15246
15247  [
15248 \begin_inset Flex Code
15249 status collapsed
15250
15251 \begin_layout Plain Layout
15252
15253 \emph on
15254 Paragraph
15255 \emph default
15256 , Command, Environment, Item_Environment,
15257 \begin_inset Newline newline
15258 \end_inset
15259
15260 List_Environment, Bib_Environment
15261 \end_layout
15262
15263 \end_inset
15264
15265 ] How the style should be translated into \SpecialChar LaTeX
15266 .
15267 \begin_inset Foot
15268 status collapsed
15269
15270 \begin_layout Plain Layout
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275 LatexType
15276 \end_layout
15277
15278 \end_inset
15279
15280  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15281  Visit the SGML class files for specific examples.
15282 \end_layout
15283
15284 \end_inset
15285
15286
15287 \end_layout
15288
15289 \begin_deeper
15290 \begin_layout Description
15291 \begin_inset Flex Code
15292 status collapsed
15293
15294 \begin_layout Plain Layout
15295 Paragraph
15296 \end_layout
15297
15298 \end_inset
15299
15300  means nothing special.
15301 \end_layout
15302
15303 \begin_layout Description
15304 \begin_inset Flex Code
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 Command
15309 \end_layout
15310
15311 \end_inset
15312
15313  means 
15314 \begin_inset Flex Code
15315 status collapsed
15316
15317 \begin_layout Plain Layout
15318
15319 \backslash
15320
15321 \emph on
15322 LatexName
15323 \emph default
15324 {\SpecialChar ldots
15325 }
15326 \end_layout
15327
15328 \end_inset
15329
15330 .
15331 \end_layout
15332
15333 \begin_layout Description
15334 \begin_inset Flex Code
15335 status collapsed
15336
15337 \begin_layout Plain Layout
15338 Environment
15339 \end_layout
15340
15341 \end_inset
15342
15343  means 
15344 \begin_inset Flex Code
15345 status collapsed
15346
15347 \begin_layout Plain Layout
15348
15349 \backslash
15350 begin{
15351 \emph on
15352 LatexName
15353 \emph default
15354 }\SpecialChar ldots
15355
15356 \backslash
15357 end{
15358 \emph on
15359 LatexName
15360 \emph default
15361 }
15362 \end_layout
15363
15364 \end_inset
15365
15366 .
15367  
15368 \end_layout
15369
15370 \begin_layout Description
15371 \begin_inset Flex Code
15372 status collapsed
15373
15374 \begin_layout Plain Layout
15375 Item_Environment
15376 \end_layout
15377
15378 \end_inset
15379
15380  is the same as 
15381 \begin_inset Flex Code
15382 status collapsed
15383
15384 \begin_layout Plain Layout
15385 Environment
15386 \end_layout
15387
15388 \end_inset
15389
15390 , except that an 
15391 \begin_inset Flex Code
15392 status collapsed
15393
15394 \begin_layout Plain Layout
15395
15396 \backslash
15397 item
15398 \end_layout
15399
15400 \end_inset
15401
15402  is generated for each paragraph of this environment.
15403  
15404 \end_layout
15405
15406 \begin_layout Description
15407 \begin_inset Flex Code
15408 status collapsed
15409
15410 \begin_layout Plain Layout
15411 List_Environment
15412 \end_layout
15413
15414 \end_inset
15415
15416  is the same as 
15417 \begin_inset Flex Code
15418 status collapsed
15419
15420 \begin_layout Plain Layout
15421 Item_Environment
15422 \end_layout
15423
15424 \end_inset
15425
15426 , except that
15427 \begin_inset Newline newline
15428 \end_inset
15429
15430
15431 \begin_inset Flex Code
15432 status collapsed
15433
15434 \begin_layout Plain Layout
15435 LabelWidthString
15436 \end_layout
15437
15438 \end_inset
15439
15440  is passed as an argument to the environment.
15441 \begin_inset Newline newline
15442 \end_inset
15443
15444
15445 \begin_inset Flex Code
15446 status collapsed
15447
15448 \begin_layout Plain Layout
15449 LabelWidthString
15450 \end_layout
15451
15452 \end_inset
15453
15454  can be defined in the 
15455 \begin_inset Flex Noun
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 Edit\SpecialChar menuseparator
15460 Paragraph
15461 \begin_inset space ~
15462 \end_inset
15463
15464 settings
15465 \end_layout
15466
15467 \end_inset
15468
15469  dialog.
15470 \end_layout
15471
15472 \begin_layout Description
15473 \begin_inset Flex Code
15474 status collapsed
15475
15476 \begin_layout Plain Layout
15477 Bib_Environment
15478 \end_layout
15479
15480 \end_inset
15481
15482  is like 
15483 \begin_inset Flex Code
15484 status collapsed
15485
15486 \begin_layout Plain Layout
15487 Environment
15488 \end_layout
15489
15490 \end_inset
15491
15492  but adds the necessary mandatory argument (the longest label) to the begin
15493  statement of the bibliography environment:
15494 \begin_inset Newline newline
15495 \end_inset
15496
15497
15498 \begin_inset Flex Code
15499 status collapsed
15500
15501 \begin_layout Plain Layout
15502
15503 \backslash
15504 begin{thebibliography}{99}
15505 \end_layout
15506
15507 \end_inset
15508
15509 .
15510  It is therefore only useful for bibliography environments.
15511  The default longest label 
15512 \begin_inset Quotes eld
15513 \end_inset
15514
15515 99
15516 \begin_inset Quotes erd
15517 \end_inset
15518
15519  can be changed by the user in the paragraph settings of a bibliography
15520  item.
15521 \end_layout
15522
15523 \begin_layout Standard
15524 Putting the last few things together, the \SpecialChar LaTeX
15525  output will be either: 
15526 \end_layout
15527
15528 \begin_layout LyX-Code
15529
15530 \backslash
15531 LatexName[LatexParam]{\SpecialChar ldots
15532 }
15533 \end_layout
15534
15535 \begin_layout Standard
15536 or: 
15537 \end_layout
15538
15539 \begin_layout LyX-Code
15540
15541 \backslash
15542 begin{LatexName}[LatexParam] \SpecialChar ldots
15543  
15544 \backslash
15545 end{LatexName}.
15546 \end_layout
15547
15548 \begin_layout Standard
15549 depending upon the \SpecialChar LaTeX
15550  type.
15551 \end_layout
15552
15553 \end_deeper
15554 \begin_layout Description
15555 \begin_inset Flex Code
15556 status collapsed
15557
15558 \begin_layout Plain Layout
15559 LeftDelim
15560 \end_layout
15561
15562 \end_inset
15563
15564  [
15565 \begin_inset Flex Code
15566 status collapsed
15567
15568 \begin_layout Plain Layout
15569 string
15570 \end_layout
15571
15572 \end_inset
15573
15574 ] A string that is put at the beginning of the style content.
15575  A line break in the output can be indicated by 
15576 \begin_inset Flex Code
15577 status collapsed
15578
15579 \begin_layout Plain Layout
15580 <br/>
15581 \end_layout
15582
15583 \end_inset
15584
15585 .
15586 \end_layout
15587
15588 \begin_layout Description
15589 \begin_inset Flex Code
15590 status collapsed
15591
15592 \begin_layout Plain Layout
15593 LeftMargin
15594 \end_layout
15595
15596 \end_inset
15597
15598  [
15599 \begin_inset Flex Code
15600 status collapsed
15601
15602 \begin_layout Plain Layout
15603 string=""
15604 \end_layout
15605
15606 \end_inset
15607
15608 ] If you put styles into environments, the different 
15609 \begin_inset Flex Code
15610 status collapsed
15611
15612 \begin_layout Plain Layout
15613 LeftMargin
15614 \end_layout
15615
15616 \end_inset
15617
15618  are not simply added, but added with a factor 
15619 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15620 \end_inset
15621
15622 .
15623  Note that this parameter is also used when 
15624 \begin_inset Flex Code
15625 status collapsed
15626
15627 \begin_layout Plain Layout
15628 Margin
15629 \end_layout
15630
15631 \end_inset
15632
15633  is defined as 
15634 \begin_inset Flex Code
15635 status collapsed
15636
15637 \begin_layout Plain Layout
15638 Manual
15639 \end_layout
15640
15641 \end_inset
15642
15643  or 
15644 \begin_inset Flex Code
15645 status collapsed
15646
15647 \begin_layout Plain Layout
15648 Dynamic
15649 \end_layout
15650
15651 \end_inset
15652
15653 .
15654  Then it is added to the manual or dynamic margin.
15655 \begin_inset Newline newline
15656 \end_inset
15657
15658 For example 
15659 \begin_inset Quotes eld
15660 \end_inset
15661
15662
15663 \begin_inset Flex Code
15664 status collapsed
15665
15666 \begin_layout Plain Layout
15667 MM
15668 \end_layout
15669
15670 \end_inset
15671
15672
15673 \begin_inset Quotes erd
15674 \end_inset
15675
15676  means that the paragraph is indented with the width of 
15677 \begin_inset Quotes eld
15678 \end_inset
15679
15680
15681 \begin_inset Flex Code
15682 status collapsed
15683
15684 \begin_layout Plain Layout
15685 MM
15686 \end_layout
15687
15688 \end_inset
15689
15690
15691 \begin_inset Quotes erd
15692 \end_inset
15693
15694  in the normal font.
15695  You can get a negative width by prefixing the string with 
15696 \begin_inset Quotes eld
15697 \end_inset
15698
15699
15700 \begin_inset Flex Code
15701 status collapsed
15702
15703 \begin_layout Plain Layout
15704 -
15705 \end_layout
15706
15707 \end_inset
15708
15709
15710 \begin_inset Quotes erd
15711 \end_inset
15712
15713 .
15714  This way was chosen so that the look is the same with each used screen
15715  font.
15716 \end_layout
15717
15718 \begin_layout Description
15719 \begin_inset Flex Code
15720 status collapsed
15721
15722 \begin_layout Plain Layout
15723 Margin
15724 \end_layout
15725
15726 \end_inset
15727
15728  [
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733
15734 \emph on
15735 Static
15736 \emph default
15737 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15738 \end_layout
15739
15740 \end_inset
15741
15742
15743 \begin_inset Newline newline
15744 \end_inset
15745
15746 The kind of margin that the style has on the left side.
15747 \end_layout
15748
15749 \begin_deeper
15750 \begin_layout Description
15751 \begin_inset Flex Code
15752 status collapsed
15753
15754 \begin_layout Plain Layout
15755 Static
15756 \end_layout
15757
15758 \end_inset
15759
15760  just means a fixed margin.
15761 \end_layout
15762
15763 \begin_layout Description
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 Manual
15769 \end_layout
15770
15771 \end_inset
15772
15773  means that the left margin depends on the string entered in the 
15774 \begin_inset Flex Noun
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778 Edit\SpecialChar menuseparator
15779 Paragraph
15780 \begin_inset space ~
15781 \end_inset
15782
15783 Settings
15784 \end_layout
15785
15786 \end_inset
15787
15788  dialog.
15789  This is used to typeset nice lists without tabulators.
15790 \end_layout
15791
15792 \begin_layout Description
15793 \begin_inset Flex Code
15794 status collapsed
15795
15796 \begin_layout Plain Layout
15797 Dynamic
15798 \end_layout
15799
15800 \end_inset
15801
15802  means that the margin depends on the size of the label.
15803  This is used for automatic enumerated headlines.
15804  It is obvious that the headline 
15805 \begin_inset Quotes eld
15806 \end_inset
15807
15808 5.4.3.2.1 Very long headline
15809 \begin_inset Quotes erd
15810 \end_inset
15811
15812  must have a wider left margin (as wide as 
15813 \begin_inset Quotes eld
15814 \end_inset
15815
15816 5.4.3.2.1
15817 \begin_inset Quotes erd
15818 \end_inset
15819
15820  plus the space) than 
15821 \begin_inset Quotes eld
15822 \end_inset
15823
15824 3.2 Very long headline
15825 \begin_inset Quotes erd
15826 \end_inset
15827
15828 , even if standard 
15829 \begin_inset Quotes eld
15830 \end_inset
15831
15832 word processors
15833 \begin_inset Quotes erd
15834 \end_inset
15835
15836  are not able to do this.
15837 \end_layout
15838
15839 \begin_layout Description
15840 \begin_inset Flex Code
15841 status collapsed
15842
15843 \begin_layout Plain Layout
15844 First_Dynamic
15845 \end_layout
15846
15847 \end_inset
15848
15849  is similar, but only the very first row of the paragraph is dynamic, while
15850  the others are static; this is used, for example, for descriptions.
15851 \end_layout
15852
15853 \begin_layout Description
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 Right_Address_Box
15859 \end_layout
15860
15861 \end_inset
15862
15863  means the margin is chosen in a way that the longest row of this paragraph
15864  fits to the right margin.
15865  This is used to typeset an address on the right edge of the page.
15866 \end_layout
15867
15868 \end_deeper
15869 \begin_layout Description
15870 \begin_inset Flex Code
15871 status collapsed
15872
15873 \begin_layout Plain Layout
15874 NeedProtect
15875 \end_layout
15876
15877 \end_inset
15878
15879  [
15880 \begin_inset Flex Code
15881 status collapsed
15882
15883 \begin_layout Plain Layout
15884
15885 \emph on
15886 0
15887 \end_layout
15888
15889 \end_inset
15890
15891 ,
15892 \begin_inset space \thinspace{}
15893 \end_inset
15894
15895
15896 \begin_inset Flex Code
15897 status collapsed
15898
15899 \begin_layout Plain Layout
15900 1
15901 \end_layout
15902
15903 \end_inset
15904
15905 ] Whether fragile commands in this style should be 
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910
15911 \backslash
15912 protect
15913 \end_layout
15914
15915 \end_inset
15916
15917 'ed.
15918  (Note: This is 
15919 \emph on
15920 not
15921 \emph default
15922  whether this command should itself be protected.)
15923 \change_inserted -712698321 1523696949
15924
15925 \end_layout
15926
15927 \begin_layout Description
15928
15929 \change_inserted -712698321 1552395557
15930 \begin_inset Flex Code
15931 status collapsed
15932
15933 \begin_layout Plain Layout
15934
15935 \change_inserted -712698321 1523696950
15936 NeedCProtect
15937 \end_layout
15938
15939 \end_inset
15940
15941  [
15942 \begin_inset Flex Code
15943 status collapsed
15944
15945 \begin_layout Plain Layout
15946
15947 \change_inserted -712698321 1523696950
15948
15949 \emph on
15950 0
15951 \end_layout
15952
15953 \end_inset
15954
15955 ,
15956 \begin_inset space \thinspace{}
15957 \end_inset
15958
15959
15960 \begin_inset Flex Code
15961 status collapsed
15962
15963 \begin_layout Plain Layout
15964
15965 \change_inserted -712698321 1523696950
15966 1
15967 \end_layout
15968
15969 \end_inset
15970
15971 ] This causes macros that contain this layout to be protected with 
15972 \begin_inset Flex Code
15973 status collapsed
15974
15975 \begin_layout Plain Layout
15976
15977 \change_inserted -712698321 1523696950
15978
15979 \backslash
15980 cprotect
15981 \end_layout
15982
15983 \end_inset
15984
15985  (cf.
15986  package 
15987 \family sans
15988 cprotect
15989 \family default
15990 ) if necessary and thus allows (some) verbatim stuff in macros.
15991 \end_layout
15992
15993 \begin_layout Description
15994
15995 \change_inserted -712698321 1552395844
15996 \begin_inset Flex Code
15997 status collapsed
15998
15999 \begin_layout Plain Layout
16000
16001 \change_inserted -712698321 1552395561
16002 NeedMBoxProtect
16003 \end_layout
16004
16005 \end_inset
16006
16007  [
16008 \begin_inset Flex Code
16009 status collapsed
16010
16011 \begin_layout Plain Layout
16012
16013 \change_inserted -712698321 1552395557
16014
16015 \emph on
16016 0
16017 \end_layout
16018
16019 \end_inset
16020
16021 ,
16022 \begin_inset space \thinspace{}
16023 \end_inset
16024
16025
16026 \begin_inset Flex Code
16027 status collapsed
16028
16029 \begin_layout Plain Layout
16030
16031 \change_inserted -712698321 1552395557
16032 1
16033 \end_layout
16034
16035 \end_inset
16036
16037 ] Whether specific commands in this style (such as 
16038 \begin_inset Flex Code
16039 status collapsed
16040
16041 \begin_layout Plain Layout
16042
16043 \change_inserted -712698321 1552395655
16044
16045 \backslash
16046 cite
16047 \change_unchanged
16048
16049 \end_layout
16050
16051 \end_inset
16052
16053  and 
16054 \begin_inset Flex Code
16055 status collapsed
16056
16057 \begin_layout Plain Layout
16058
16059 \change_inserted -712698321 1552395661
16060
16061 \backslash
16062 ref
16063 \change_unchanged
16064
16065 \end_layout
16066
16067 \end_inset
16068
16069 ) should be protected in an 
16070 \begin_inset Flex Code
16071 status collapsed
16072
16073 \begin_layout Plain Layout
16074
16075 \change_inserted -712698321 1552395631
16076
16077 \backslash
16078 mbox
16079 \change_unchanged
16080
16081 \end_layout
16082
16083 \end_inset
16084
16085 .
16086  This is particularly needed for styles that draw on 
16087 \family sans
16088 ulem
16089 \family default
16090  or 
16091 \family sans
16092 soul
16093 \family default
16094  commands which parse their content in complex ways.
16095 \change_unchanged
16096
16097 \end_layout
16098
16099 \begin_layout Description
16100 \begin_inset Flex Code
16101 status collapsed
16102
16103 \begin_layout Plain Layout
16104 Newline
16105 \end_layout
16106
16107 \end_inset
16108
16109  [
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 0
16115 \end_layout
16116
16117 \end_inset
16118
16119 ,
16120 \begin_inset space \thinspace{}
16121 \end_inset
16122
16123
16124 \begin_inset Flex Code
16125 status collapsed
16126
16127 \begin_layout Plain Layout
16128
16129 \emph on
16130 1
16131 \end_layout
16132
16133 \end_inset
16134
16135 ] Whether newlines are translated into \SpecialChar LaTeX
16136  newlines (
16137 \begin_inset Flex Code
16138 status collapsed
16139
16140 \begin_layout Plain Layout
16141
16142 \backslash
16143
16144 \backslash
16145
16146 \end_layout
16147
16148 \end_inset
16149
16150 ) or not.
16151  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16152  editing
16153  inside \SpecialChar LyX
16154 .
16155 \end_layout
16156
16157 \begin_layout Description
16158 \begin_inset Flex Code
16159 status collapsed
16160
16161 \begin_layout Plain Layout
16162 NextNoIndent
16163 \end_layout
16164
16165 \end_inset
16166
16167  [
16168 \begin_inset Flex Code
16169 status collapsed
16170
16171 \begin_layout Plain Layout
16172
16173 \emph on
16174 0
16175 \end_layout
16176
16177 \end_inset
16178
16179 ,
16180 \begin_inset space \thinspace{}
16181 \end_inset
16182
16183
16184 \begin_inset Flex Code
16185 status collapsed
16186
16187 \begin_layout Plain Layout
16188 1
16189 \end_layout
16190
16191 \end_inset
16192
16193 ] If set to true, and if 
16194 \begin_inset Flex Code
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 DefaultStyle
16199 \end_layout
16200
16201 \end_inset
16202
16203  (usually 
16204 \begin_inset Flex Code
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 Standard
16209 \end_layout
16210
16211 \end_inset
16212
16213 ) paragraphs are being indented, then the indentation of such a paragraph
16214  following one of this type will be suppressed.
16215  (So this will not affect the display of non-default paragraphs.)
16216 \end_layout
16217
16218 \begin_layout Description
16219 \begin_inset Flex Code
16220 status collapsed
16221
16222 \begin_layout Plain Layout
16223 ObsoletedBy
16224 \end_layout
16225
16226 \end_inset
16227
16228  [
16229 \begin_inset Flex Code
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 <name>
16234 \end_layout
16235
16236 \end_inset
16237
16238 ] Name of a style that has replaced this style.
16239  This is used to rename a style, while keeping backward compatibility.
16240 \end_layout
16241
16242 \begin_layout Description
16243 \begin_inset Flex Code
16244 status collapsed
16245
16246 \begin_layout Plain Layout
16247 ParagraphGroup
16248 \end_layout
16249
16250 \end_inset
16251
16252  [
16253 \begin_inset Flex Code
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257 0
16258 \end_layout
16259
16260 \end_inset
16261
16262 ,
16263 \begin_inset space \thinspace{}
16264 \end_inset
16265
16266
16267 \begin_inset Flex Code
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271 1
16272 \end_layout
16273
16274 \end_inset
16275
16276 ] Determines whether consecutive paragraphs of the same type are treated
16277  as belonging together.
16278  This has the effect that the 
16279 \begin_inset Flex Code
16280 status collapsed
16281
16282 \begin_layout Plain Layout
16283 GuiLabel
16284 \end_layout
16285
16286 \end_inset
16287
16288  is only printed once before such a group.
16289  By default, this is true for 
16290 \begin_inset Flex Code
16291 status collapsed
16292
16293 \begin_layout Plain Layout
16294 LaTeXType
16295 \end_layout
16296
16297 \end_inset
16298
16299  
16300 \begin_inset Flex Code
16301 status collapsed
16302
16303 \begin_layout Plain Layout
16304 Environment
16305 \end_layout
16306
16307 \end_inset
16308
16309  and 
16310 \begin_inset Flex Code
16311 status collapsed
16312
16313 \begin_layout Plain Layout
16314 Bib_Environment
16315 \end_layout
16316
16317 \end_inset
16318
16319  and false for all other types.
16320 \end_layout
16321
16322 \begin_layout Description
16323 \begin_inset Flex Code
16324 status collapsed
16325
16326 \begin_layout Plain Layout
16327 ParbreakIsNewline
16328 \end_layout
16329
16330 \end_inset
16331
16332  [
16333 \begin_inset Flex Code
16334 status collapsed
16335
16336 \begin_layout Plain Layout
16337
16338 \emph on
16339 0
16340 \end_layout
16341
16342 \end_inset
16343
16344 ,
16345 \begin_inset space \thinspace{}
16346 \end_inset
16347
16348
16349 \begin_inset Flex Code
16350 status collapsed
16351
16352 \begin_layout Plain Layout
16353 1
16354 \end_layout
16355
16356 \end_inset
16357
16358 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16359  output,
16360  but only by a line break; together with 
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 PassThru 1
16366 \end_layout
16367
16368 \end_inset
16369
16370 , this allows to emulate a plain text editor (like the ERT inset).
16371 \end_layout
16372
16373 \begin_layout Description
16374 \begin_inset Flex Code
16375 status collapsed
16376
16377 \begin_layout Plain Layout
16378 ParIndent
16379 \end_layout
16380
16381 \end_inset
16382
16383  [
16384 \begin_inset Flex Code
16385 status collapsed
16386
16387 \begin_layout Plain Layout
16388 string=""
16389 \end_layout
16390
16391 \end_inset
16392
16393 ] The indent of the very first line of a paragraph.
16394  The
16395 \begin_inset Newline newline
16396 \end_inset
16397
16398
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403 Parindent
16404 \end_layout
16405
16406 \end_inset
16407
16408  will be fixed for a certain style.
16409  The exception is the default style, since the indentation for these paragraphs
16410  can be prohibited with 
16411 \begin_inset Flex Code
16412 status collapsed
16413
16414 \begin_layout Plain Layout
16415 NextNoIndent
16416 \end_layout
16417
16418 \end_inset
16419
16420 .
16421  Also, 
16422 \begin_inset Flex Code
16423 status collapsed
16424
16425 \begin_layout Plain Layout
16426 Standard
16427 \end_layout
16428
16429 \end_inset
16430
16431  style paragraphs inside environments use the 
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436 Parindent
16437 \end_layout
16438
16439 \end_inset
16440
16441  of the environment, not their native one.
16442  For example, 
16443 \begin_inset Flex Code
16444 status collapsed
16445
16446 \begin_layout Plain Layout
16447 Standard
16448 \end_layout
16449
16450 \end_inset
16451
16452  paragraphs inside an enumeration are not indented.
16453 \end_layout
16454
16455 \begin_layout Description
16456 \begin_inset Flex Code
16457 status collapsed
16458
16459 \begin_layout Plain Layout
16460 ParSep
16461 \end_layout
16462
16463 \end_inset
16464
16465  [
16466 \begin_inset Flex Code
16467 status collapsed
16468
16469 \begin_layout Plain Layout
16470 float=0
16471 \end_layout
16472
16473 \end_inset
16474
16475 ] The vertical space between two paragraphs of this style.
16476 \end_layout
16477
16478 \begin_layout Description
16479 \begin_inset Flex Code
16480 status collapsed
16481
16482 \begin_layout Plain Layout
16483 Parskip
16484 \end_layout
16485
16486 \end_inset
16487
16488  [
16489 \begin_inset Flex Code
16490 status collapsed
16491
16492 \begin_layout Plain Layout
16493 float=0
16494 \end_layout
16495
16496 \end_inset
16497
16498 ] \SpecialChar LyX
16499  allows the user to choose either 
16500 \begin_inset Quotes eld
16501 \end_inset
16502
16503 indent
16504 \begin_inset Quotes erd
16505 \end_inset
16506
16507  or 
16508 \begin_inset Quotes eld
16509 \end_inset
16510
16511 skip
16512 \begin_inset Quotes erd
16513 \end_inset
16514
16515  to separate paragraphs.
16516  When 
16517 \begin_inset Quotes eld
16518 \end_inset
16519
16520 indent
16521 \begin_inset Quotes erd
16522 \end_inset
16523
16524  is chosen, 
16525 \begin_inset Flex Code
16526 status collapsed
16527
16528 \begin_layout Plain Layout
16529 Parskip
16530 \end_layout
16531
16532 \end_inset
16533
16534  is ignored.
16535  When 
16536 \begin_inset Quotes eld
16537 \end_inset
16538
16539 skip
16540 \begin_inset Quotes erd
16541 \end_inset
16542
16543  is chosen, 
16544 \begin_inset Flex Code
16545 status collapsed
16546
16547 \begin_layout Plain Layout
16548 ParIndent
16549 \end_layout
16550
16551 \end_inset
16552
16553  is ignored and all paragraphs are separated by the 
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558 Parskip
16559 \end_layout
16560
16561 \end_inset
16562
16563  argument.
16564  The vertical space is calculated with 
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 Parskip
16570 \begin_inset space ~
16571 \end_inset
16572
16573 * DefaultHeight
16574 \end_layout
16575
16576 \end_inset
16577
16578  where 
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 DefaultHeight
16584 \end_layout
16585
16586 \end_inset
16587
16588  is the height of a row with the normal font.
16589  This way, the look stays the same with different screen fonts.
16590 \end_layout
16591
16592 \begin_layout Description
16593 \begin_inset Flex Code
16594 status collapsed
16595
16596 \begin_layout Plain Layout
16597 PassThru
16598 \end_layout
16599
16600 \end_inset
16601
16602  [
16603 \begin_inset Flex Code
16604 status collapsed
16605
16606 \begin_layout Plain Layout
16607
16608 \emph on
16609 0
16610 \end_layout
16611
16612 \end_inset
16613
16614 ,
16615 \begin_inset space \thinspace{}
16616 \end_inset
16617
16618
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623 1
16624 \end_layout
16625
16626 \end_inset
16627
16628 ] Whether the contents of this paragraph should be output in raw form, meaning
16629  without special translations that \SpecialChar LaTeX
16630  would require.
16631 \end_layout
16632
16633 \begin_layout Description
16634 \begin_inset Flex Code
16635 status collapsed
16636
16637 \begin_layout Plain Layout
16638 PassThruChars
16639 \end_layout
16640
16641 \end_inset
16642
16643  [
16644 \begin_inset Flex Code
16645 status collapsed
16646
16647 \begin_layout Plain Layout
16648 string
16649 \end_layout
16650
16651 \end_inset
16652
16653 ]
16654 \family typewriter
16655  
16656 \family default
16657 Defines individual characters that should be output in raw form, meaning
16658  without special translations that \SpecialChar LaTeX
16659  would require.
16660 \end_layout
16661
16662 \begin_layout Description
16663 \begin_inset Flex Code
16664 status collapsed
16665
16666 \begin_layout Plain Layout
16667 Preamble
16668 \end_layout
16669
16670 \end_inset
16671
16672  Information to be included in the \SpecialChar LaTeX
16673  preamble when this style is used.
16674  Used to define macros, load packages, etc., required by this particular
16675  style.
16676  Must end with 
16677 \begin_inset Quotes eld
16678 \end_inset
16679
16680
16681 \begin_inset Flex Code
16682 status collapsed
16683
16684 \begin_layout Plain Layout
16685 EndPreamble
16686 \end_layout
16687
16688 \end_inset
16689
16690
16691 \begin_inset Quotes erd
16692 \end_inset
16693
16694 .
16695 \end_layout
16696
16697 \begin_layout Description
16698 \begin_inset Flex Code
16699 status collapsed
16700
16701 \begin_layout Plain Layout
16702 RefPrefix
16703 \end_layout
16704
16705 \end_inset
16706
16707  [
16708 \begin_inset Flex Code
16709 status collapsed
16710
16711 \begin_layout Plain Layout
16712 string
16713 \end_layout
16714
16715 \end_inset
16716
16717 ] The prefix to use when creating labels referring to paragraphs of this
16718  type.
16719  This allows the use of formatted references.
16720 \end_layout
16721
16722 \begin_layout Description
16723 \begin_inset Flex Code
16724 status collapsed
16725
16726 \begin_layout Plain Layout
16727 Requires 
16728 \end_layout
16729
16730 \end_inset
16731
16732  [
16733 \begin_inset Flex Code
16734 status collapsed
16735
16736 \begin_layout Plain Layout
16737 string
16738 \end_layout
16739
16740 \end_inset
16741
16742 ] Whether the style requires the feature 
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747 string
16748 \end_layout
16749
16750 \end_inset
16751
16752  (see 
16753 \begin_inset CommandInset ref
16754 LatexCommand ref
16755 reference "chap:List-of-functions"
16756
16757 \end_inset
16758
16759  for the list of features).
16760  If you require a package with specific options, you can additionally use
16761  
16762 \begin_inset Flex Code
16763 status collapsed
16764
16765 \begin_layout Plain Layout
16766 PackageOptions
16767 \end_layout
16768
16769 \end_inset
16770
16771  as a general text class parameter (see 
16772 \begin_inset CommandInset ref
16773 LatexCommand ref
16774 reference "subsec:General-text-class"
16775
16776 \end_inset
16777
16778 ).
16779 \end_layout
16780
16781 \begin_layout Description
16782 \begin_inset Flex Code
16783 status collapsed
16784
16785 \begin_layout Plain Layout
16786 ResetArgs
16787 \end_layout
16788
16789 \end_inset
16790
16791  [
16792 \begin_inset Flex Code
16793 status collapsed
16794
16795 \begin_layout Plain Layout
16796
16797 \emph on
16798 0
16799 \end_layout
16800
16801 \end_inset
16802
16803 ,
16804 \begin_inset Flex Code
16805 status collapsed
16806
16807 \begin_layout Plain Layout
16808 1
16809 \end_layout
16810
16811 \end_inset
16812
16813 ] Resets the \SpecialChar LaTeX
16814  arguments of this style (as defined via the 
16815 \begin_inset Flex Code
16816 status collapsed
16817
16818 \begin_layout Plain Layout
16819 Argument
16820 \end_layout
16821
16822 \end_inset
16823
16824  tag).
16825  This is useful if you have copied a style via 
16826 \begin_inset Flex Code
16827 status collapsed
16828
16829 \begin_layout Plain Layout
16830 CopyStyle
16831 \end_layout
16832
16833 \end_inset
16834
16835 , but you do not want to inherit its (required and optional) arguments.
16836 \end_layout
16837
16838 \begin_layout Description
16839 \begin_inset Flex Code
16840 status collapsed
16841
16842 \begin_layout Plain Layout
16843 ResumeCounter
16844 \end_layout
16845
16846 \end_inset
16847
16848  [
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853
16854 \emph on
16855 0
16856 \end_layout
16857
16858 \end_inset
16859
16860 ,
16861 \begin_inset Flex Code
16862 status collapsed
16863
16864 \begin_layout Plain Layout
16865 1
16866 \end_layout
16867
16868 \end_inset
16869
16870 ] Resumes a counter that is usually reset at each new sequence of layouts.
16871  This is currently only useful when 
16872 \begin_inset Flex Code
16873 status collapsed
16874
16875 \begin_layout Plain Layout
16876 LabelType
16877 \end_layout
16878
16879 \end_inset
16880
16881  is 
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 Enumerate
16887 \end_layout
16888
16889 \end_inset
16890
16891 .
16892 \end_layout
16893
16894 \begin_layout Description
16895 \begin_inset Flex Code
16896 status collapsed
16897
16898 \begin_layout Plain Layout
16899 RightDelim
16900 \end_layout
16901
16902 \end_inset
16903
16904  [
16905 \begin_inset Flex Code
16906 status collapsed
16907
16908 \begin_layout Plain Layout
16909 string
16910 \end_layout
16911
16912 \end_inset
16913
16914 ] A string that is put at the end of the layout content.
16915  A line break in the output can be indicated by 
16916 \begin_inset Flex Code
16917 status collapsed
16918
16919 \begin_layout Plain Layout
16920 <br/>
16921 \end_layout
16922
16923 \end_inset
16924
16925 .
16926 \end_layout
16927
16928 \begin_layout Description
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933 RightMargin
16934 \end_layout
16935
16936 \end_inset
16937
16938  [
16939 \begin_inset Flex Code
16940 status collapsed
16941
16942 \begin_layout Plain Layout
16943 string=""
16944 \end_layout
16945
16946 \end_inset
16947
16948 ] Similar to 
16949 \begin_inset Flex Code
16950 status collapsed
16951
16952 \begin_layout Plain Layout
16953 LeftMargin
16954 \end_layout
16955
16956 \end_inset
16957
16958 .
16959 \end_layout
16960
16961 \begin_layout Description
16962 \begin_inset Flex Code
16963 status collapsed
16964
16965 \begin_layout Plain Layout
16966 Spacing
16967 \end_layout
16968
16969 \end_inset
16970
16971  [
16972 \begin_inset Flex Code
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976
16977 \emph on
16978 single
16979 \end_layout
16980
16981 \end_inset
16982
16983
16984 \begin_inset Flex Code
16985 status collapsed
16986
16987 \begin_layout Plain Layout
16988 onehalf
16989 \end_layout
16990
16991 \end_inset
16992
16993
16994 \begin_inset Flex Code
16995 status collapsed
16996
16997 \begin_layout Plain Layout
16998 double
16999 \end_layout
17000
17001 \end_inset
17002
17003
17004 \begin_inset Flex Code
17005 status collapsed
17006
17007 \begin_layout Plain Layout
17008 other
17009 \begin_inset space ~
17010 \end_inset
17011
17012 <value>
17013 \end_layout
17014
17015 \end_inset
17016
17017 ] This defines what the default spacing should be in the style.
17018  The arguments 
17019 \begin_inset Flex Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023 single
17024 \end_layout
17025
17026 \end_inset
17027
17028
17029 \begin_inset Flex Code
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033 onehalf
17034 \end_layout
17035
17036 \end_inset
17037
17038  and 
17039 \begin_inset Flex Code
17040 status collapsed
17041
17042 \begin_layout Plain Layout
17043 double
17044 \end_layout
17045
17046 \end_inset
17047
17048  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17049  If you specify the argument 
17050 \begin_inset Flex Code
17051 status collapsed
17052
17053 \begin_layout Plain Layout
17054 other
17055 \end_layout
17056
17057 \end_inset
17058
17059 , then you must also provide a value argument which will be the actual multiplie
17060 r value.
17061  Note that, contrary to other parameters, 
17062 \begin_inset Flex Code
17063 status collapsed
17064
17065 \begin_layout Plain Layout
17066 Spacing
17067 \end_layout
17068
17069 \end_inset
17070
17071  implies the generation of specific \SpecialChar LaTeX
17072  code, using the \SpecialChar LaTeX
17073  package 
17074 \family roman
17075
17076 \begin_inset Flex Code
17077 status collapsed
17078
17079 \begin_layout Plain Layout
17080 setspace
17081 \end_layout
17082
17083 \end_inset
17084
17085 .
17086 \end_layout
17087
17088 \begin_layout Description
17089 \begin_inset Flex Code
17090 status collapsed
17091
17092 \begin_layout Plain Layout
17093 Spellcheck
17094 \end_layout
17095
17096 \end_inset
17097
17098  [
17099 \begin_inset Flex Code
17100 status collapsed
17101
17102 \begin_layout Plain Layout
17103 0
17104 \end_layout
17105
17106 \end_inset
17107
17108 ,
17109 \begin_inset space \thinspace{}
17110 \end_inset
17111
17112
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117
17118 \emph on
17119 1
17120 \end_layout
17121
17122 \end_inset
17123
17124 ] Allow spell-checking paragraphs of this style.
17125  Default is true.
17126 \end_layout
17127
17128 \begin_layout Description
17129 \begin_inset Flex Code
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133 StepMasterCounter
17134 \end_layout
17135
17136 \end_inset
17137
17138  [
17139 \begin_inset Flex Code
17140 status collapsed
17141
17142 \begin_layout Plain Layout
17143
17144 \emph on
17145 0
17146 \end_layout
17147
17148 \end_inset
17149
17150 ,
17151 \begin_inset Flex Code
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155 1
17156 \end_layout
17157
17158 \end_inset
17159
17160 ] Steps the master counter of a given counter at the beginning of a new
17161  sequence of layouts.
17162  This is currently only useful when 
17163 \begin_inset Flex Code
17164 status collapsed
17165
17166 \begin_layout Plain Layout
17167 LabelType
17168 \end_layout
17169
17170 \end_inset
17171
17172  is 
17173 \begin_inset Flex Code
17174 status collapsed
17175
17176 \begin_layout Plain Layout
17177 Enumerate
17178 \end_layout
17179
17180 \end_inset
17181
17182 .
17183 \end_layout
17184
17185 \begin_layout Description
17186 \begin_inset Flex Code
17187 status collapsed
17188
17189 \begin_layout Plain Layout
17190 TextFont
17191 \end_layout
17192
17193 \end_inset
17194
17195  The font used for the text body .
17196  See 
17197 \begin_inset CommandInset ref
17198 LatexCommand ref
17199 reference "subsec:Font-description"
17200
17201 \end_inset
17202
17203 .
17204 \end_layout
17205
17206 \begin_layout Description
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 TocLevel
17212 \end_layout
17213
17214 \end_inset
17215
17216
17217 \series medium
17218  [
17219 \begin_inset Flex Code
17220 status collapsed
17221
17222 \begin_layout Plain Layout
17223
17224 \series medium
17225 int=3
17226 \end_layout
17227
17228 \end_inset
17229
17230 ]
17231 \series default
17232  The level of the style in the table of contents.
17233  This is used for automatic numbering of section headings.
17234 \end_layout
17235
17236 \begin_layout Description
17237 \begin_inset Flex Code
17238 status collapsed
17239
17240 \begin_layout Plain Layout
17241 ToggleIndent
17242 \end_layout
17243
17244 \end_inset
17245
17246  [
17247 \emph on
17248
17249 \begin_inset Flex Code
17250 status collapsed
17251
17252 \begin_layout Plain Layout
17253
17254 \emph on
17255 default
17256 \end_layout
17257
17258 \end_inset
17259
17260
17261 \emph default
17262
17263 \begin_inset Flex Code
17264 status collapsed
17265
17266 \begin_layout Plain Layout
17267 always
17268 \end_layout
17269
17270 \end_inset
17271
17272
17273 \begin_inset Flex Code
17274 status collapsed
17275
17276 \begin_layout Plain Layout
17277 never
17278 \end_layout
17279
17280 \end_inset
17281
17282 ] This tag determines whether the first line indentation of this paragraph
17283  can be toggled via the Paragraph settings dialog.
17284  If 
17285 \emph on
17286
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291
17292 \emph off
17293 default
17294 \end_layout
17295
17296 \end_inset
17297
17298
17299 \emph default
17300  is set, indentation can be toggled if the document settings use 
17301 \begin_inset Quotes eld
17302 \end_inset
17303
17304 indent
17305 \begin_inset Quotes erd
17306 \end_inset
17307
17308  paragraph style, with 
17309 \begin_inset Flex Code
17310 status collapsed
17311
17312 \begin_layout Plain Layout
17313 always
17314 \end_layout
17315
17316 \end_inset
17317
17318 , indentation can always be toggled, notwithstanding the document settings,
17319  with 
17320 \begin_inset Flex Code
17321 status collapsed
17322
17323 \begin_layout Plain Layout
17324 never
17325 \end_layout
17326
17327 \end_inset
17328
17329 , indentation can never be toggled.
17330 \end_layout
17331
17332 \begin_layout Description
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337 TopSep
17338 \end_layout
17339
17340 \end_inset
17341
17342  [
17343 \begin_inset Flex Code
17344 status collapsed
17345
17346 \begin_layout Plain Layout
17347 float=0
17348 \end_layout
17349
17350 \end_inset
17351
17352 ] The vertical space with which the very first of a chain of paragraphs
17353  with this style is separated from the previous paragraph.
17354  If the previous paragraph has another style, the separations are not simply
17355  added, but the maximum is taken.
17356 \end_layout
17357
17358 \begin_layout Subsection
17359 \begin_inset CommandInset label
17360 LatexCommand label
17361 name "subsec:I18n"
17362
17363 \end_inset
17364
17365 Internationalization of Paragraph Styles
17366 \end_layout
17367
17368 \begin_layout Standard
17369 \SpecialChar LyX
17370  has long supported internationalization of layout information, but, until
17371  version 2.0, this applied only to the user interface and not to, say, PDF
17372  output.
17373  Thus, French authors were forced to resort to ugly hacks if they wanted
17374  `
17375 \lang french
17376 Théorème
17377 \lang english
17378  1' instead of `Theorem 1'.
17379  Thanks to Georg Baum, that is no longer the case.
17380 \end_layout
17381
17382 \begin_layout Standard
17383 If a 
17384 \begin_inset Flex Code
17385 status collapsed
17386
17387 \begin_layout Plain Layout
17388 Style
17389 \end_layout
17390
17391 \end_inset
17392
17393  defines text that is to appear in the typeset document, it may use 
17394 \begin_inset Flex Code
17395 status collapsed
17396
17397 \begin_layout Plain Layout
17398 LangPreamble
17399 \end_layout
17400
17401 \end_inset
17402
17403  and 
17404 \begin_inset Flex Code
17405 status collapsed
17406
17407 \begin_layout Plain Layout
17408 BabelPreamble
17409 \end_layout
17410
17411 \end_inset
17412
17413  to support non-English and even multi-language documents correctly.
17414  The following excerpt (from the 
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419 theorems-ams.inc
17420 \end_layout
17421
17422 \end_inset
17423
17424  file) shows how this works:
17425 \end_layout
17426
17427 \begin_layout LyX-Code
17428 Preamble
17429 \end_layout
17430
17431 \begin_deeper
17432 \begin_layout LyX-Code
17433   
17434 \backslash
17435 theoremstyle{remark}
17436 \end_layout
17437
17438 \begin_layout LyX-Code
17439   
17440 \backslash
17441 newtheorem{claim}[thm]{
17442 \backslash
17443 protect
17444 \backslash
17445 claimname}
17446 \end_layout
17447
17448 \begin_layout LyX-Code
17449 EndPreamble
17450 \end_layout
17451
17452 \begin_layout LyX-Code
17453 LangPreamble
17454 \end_layout
17455
17456 \begin_layout LyX-Code
17457   
17458 \backslash
17459 providecommand{
17460 \backslash
17461 claimname}{_(Claim)}
17462 \end_layout
17463
17464 \begin_layout LyX-Code
17465 EndLangPreamble
17466 \end_layout
17467
17468 \begin_layout LyX-Code
17469 BabelPreamble
17470 \end_layout
17471
17472 \begin_layout LyX-Code
17473     
17474 \backslash
17475 addto
17476 \backslash
17477 captions$$lang{
17478 \backslash
17479 renewcommand{
17480 \backslash
17481 claimname}{_(Claim)}}
17482 \end_layout
17483
17484 \begin_layout LyX-Code
17485 EndBabelPreamble
17486 \end_layout
17487
17488 \end_deeper
17489 \begin_layout Standard
17490 In principle, any legal \SpecialChar LaTeX
17491  may appear in the 
17492 \begin_inset Flex Code
17493 status collapsed
17494
17495 \begin_layout Plain Layout
17496 LangPreamble
17497 \end_layout
17498
17499 \end_inset
17500
17501  and 
17502 \begin_inset Flex Code
17503 status collapsed
17504
17505 \begin_layout Plain Layout
17506 BabelPreamble
17507 \end_layout
17508
17509 \end_inset
17510
17511  tags, but in practice they will typically look as they do here.
17512  The key to correct translation of the typeset text is the definition of
17513  the \SpecialChar LaTeX
17514  command 
17515 \begin_inset Flex Code
17516 status collapsed
17517
17518 \begin_layout Plain Layout
17519
17520 \backslash
17521 claimname
17522 \end_layout
17523
17524 \end_inset
17525
17526  and its use in 
17527 \begin_inset Flex Code
17528 status collapsed
17529
17530 \begin_layout Plain Layout
17531
17532 \backslash
17533 newtheorem
17534 \end_layout
17535
17536 \end_inset
17537
17538 .
17539  
17540 \end_layout
17541
17542 \begin_layout Standard
17543 The 
17544 \begin_inset Flex Code
17545 status collapsed
17546
17547 \begin_layout Plain Layout
17548 LangPreamble
17549 \end_layout
17550
17551 \end_inset
17552
17553  tag provides for internationalization based upon the overall language of
17554  the document.
17555  The contents of the tag will be included in the preamble, just as with
17556  the 
17557 \begin_inset Flex Code
17558 status collapsed
17559
17560 \begin_layout Plain Layout
17561 Preamble
17562 \end_layout
17563
17564 \end_inset
17565
17566  tag.
17567  What makes it special is the use of the 
17568 \begin_inset Quotes eld
17569 \end_inset
17570
17571 function
17572 \begin_inset Quotes erd
17573 \end_inset
17574
17575  
17576 \begin_inset Flex Code
17577 status collapsed
17578
17579 \begin_layout Plain Layout
17580 _()
17581 \end_layout
17582
17583 \end_inset
17584
17585 , which will be replaced, when \SpecialChar LyX
17586  produces \SpecialChar LaTeX
17587  output, with the translation of
17588  its argument into the document language.
17589 \end_layout
17590
17591 \begin_layout Standard
17592 The 
17593 \begin_inset Flex Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 BabelPreamble
17598 \end_layout
17599
17600 \end_inset
17601
17602  tag is more complex, since it is meant to provide support for multi-language
17603  documents and so offers an interface to the 
17604 \begin_inset Flex Code
17605 status collapsed
17606
17607 \begin_layout Plain Layout
17608 babel
17609 \end_layout
17610
17611 \end_inset
17612
17613  package.
17614  Its contents will be added to the preamble once for each language that
17615  appears in the document.
17616  In this case, the argument to 
17617 \begin_inset Flex Code
17618 status collapsed
17619
17620 \begin_layout Plain Layout
17621 _()
17622 \end_layout
17623
17624 \end_inset
17625
17626  will be replaced with its translation into the language in question; the
17627  expression 
17628 \begin_inset Flex Code
17629 status collapsed
17630
17631 \begin_layout Plain Layout
17632 $$lang
17633 \end_layout
17634
17635 \end_inset
17636
17637  is replaced by the language name (as used by the babel package).
17638 \end_layout
17639
17640 \begin_layout Standard
17641 A German document that also included a French section would thus have the
17642  following in the preamble:
17643 \end_layout
17644
17645 \begin_layout LyX-Code
17646
17647 \backslash
17648 addto
17649 \backslash
17650 captionsfrench{
17651 \backslash
17652 renewcommand{
17653 \backslash
17654 claimname}{Affirmation}}
17655 \begin_inset Newline newline
17656 \end_inset
17657
17658
17659 \backslash
17660 addto
17661 \backslash
17662 captionsngerman{
17663 \backslash
17664 renewcommand{
17665 \backslash
17666 claimname}{Behauptung}}
17667 \begin_inset Newline newline
17668 \end_inset
17669
17670
17671 \backslash
17672 providecommand{
17673 \backslash
17674 claimname}{Behauptung}
17675 \end_layout
17676
17677 \begin_layout Standard
17678 \SpecialChar LaTeX
17679  and 
17680 \begin_inset Flex Code
17681 status collapsed
17682
17683 \begin_layout Plain Layout
17684 babel
17685 \end_layout
17686
17687 \end_inset
17688
17689  will then conspire to produce the correct text in the output.
17690 \end_layout
17691
17692 \begin_layout Standard
17693 One important point to note here is that the translations are provided by
17694  \SpecialChar LyX
17695  itself, through the file 
17696 \begin_inset Flex Code
17697 status collapsed
17698
17699 \begin_layout Plain Layout
17700 layouttranslations
17701 \end_layout
17702
17703 \end_inset
17704
17705 .
17706  This means, in effect, that 
17707 \begin_inset Flex Code
17708 status collapsed
17709
17710 \begin_layout Plain Layout
17711 LangPreamble
17712 \end_layout
17713
17714 \end_inset
17715
17716  and 
17717 \begin_inset Flex Code
17718 status collapsed
17719
17720 \begin_layout Plain Layout
17721 BabelPreamble
17722 \end_layout
17723
17724 \end_inset
17725
17726  are really only of use in layout files that are provided with \SpecialChar LyX
17727 , since text
17728  entered in user-created layout files will not be seen by \SpecialChar LyX
17729 's internationalizatio
17730 n routines unless the 
17731 \begin_inset Flex Code
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735 layouttranslations
17736 \end_layout
17737
17738 \end_inset
17739
17740  file is modified accordingly.
17741  That said, however, any layout created with the intention that it will
17742  be included with \SpecialChar LyX
17743  should use these tags where appropriate.
17744  Please note that the paragraph style translations provided by \SpecialChar LyX
17745  will never
17746  change with a minor update (e.
17747 \begin_inset space \thinspace{}
17748 \end_inset
17749
17750 g.
17751 \begin_inset space \space{}
17752 \end_inset
17753
17754 from version 2.1.x to 2.1.y).
17755  It is however quite likely that a major update (e.
17756 \begin_inset space \thinspace{}
17757 \end_inset
17758
17759 g.
17760 \begin_inset space \space{}
17761 \end_inset
17762
17763 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17764 \end_layout
17765
17766 \begin_layout Subsection
17767 Floats
17768 \begin_inset CommandInset label
17769 LatexCommand label
17770 name "subsec:Floats"
17771
17772 \end_inset
17773
17774
17775 \end_layout
17776
17777 \begin_layout Standard
17778 It is necessary to define the floats (
17779 \begin_inset Flex Noun
17780 status collapsed
17781
17782 \begin_layout Plain Layout
17783 figure
17784 \end_layout
17785
17786 \end_inset
17787
17788
17789 \begin_inset Flex Noun
17790 status collapsed
17791
17792 \begin_layout Plain Layout
17793 table
17794 \end_layout
17795
17796 \end_inset
17797
17798 , \SpecialChar ldots
17799 ) in the text class itself.
17800  Standard floats are included in the file 
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 stdfloats.inc
17806 \end_layout
17807
17808 \end_inset
17809
17810 , so you may have to do no more than add
17811 \end_layout
17812
17813 \begin_layout LyX-Code
17814 Input stdfloats.inc
17815 \end_layout
17816
17817 \begin_layout Standard
17818 to your layout file.
17819  If you want to implement a text class that proposes some other float types
17820  (like the AGU class bundled with \SpecialChar LyX
17821 ), the information below will hopefully
17822  help you:
17823 \end_layout
17824
17825 \begin_layout Description
17826 \begin_inset Flex Code
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 AllowedPlacement
17831 \end_layout
17832
17833 \end_inset
17834
17835  [
17836 \begin_inset Flex Code
17837 status collapsed
17838
17839 \begin_layout Plain Layout
17840 string
17841 \end_layout
17842
17843 \end_inset
17844
17845 =!htbpH] Allowed placement options for this float type.
17846  The value is a string of placement characters.
17847  Possible characters include: 
17848 \emph on
17849 h
17850 \emph default
17851  (
17852 \begin_inset Quotes eld
17853 \end_inset
17854
17855 here if possible
17856 \begin_inset Quotes erd
17857 \end_inset
17858
17859 ), 
17860 \emph on
17861 t
17862 \emph default
17863  (
17864 \begin_inset Quotes eld
17865 \end_inset
17866
17867 top of page
17868 \begin_inset Quotes erd
17869 \end_inset
17870
17871 ), 
17872 \emph on
17873 b
17874 \emph default
17875  (
17876 \begin_inset Quotes eld
17877 \end_inset
17878
17879 bottom of page
17880 \begin_inset Quotes erd
17881 \end_inset
17882
17883 ), 
17884 \emph on
17885 p
17886 \emph default
17887  (
17888 \begin_inset Quotes eld
17889 \end_inset
17890
17891 page of floats
17892 \begin_inset Quotes erd
17893 \end_inset
17894
17895 ), 
17896 \emph on
17897 H
17898 \emph default
17899  (
17900 \begin_inset Quotes eld
17901 \end_inset
17902
17903 here definitely
17904 \begin_inset Quotes erd
17905 \end_inset
17906
17907 ) and 
17908 \emph on
17909 !
17910 \emph default
17911  (
17912 \begin_inset Quotes eld
17913 \end_inset
17914
17915 ignore LaTeX rules
17916 \begin_inset Quotes erd
17917 \end_inset
17918
17919 ).
17920  The order of the characters in the string does not matter.
17921  If no placement options are allowed, use the string 
17922 \emph on
17923 none
17924 \emph default
17925 .
17926 \end_layout
17927
17928 \begin_layout Description
17929 \begin_inset Flex Code
17930 status collapsed
17931
17932 \begin_layout Plain Layout
17933 AllowsSideways
17934 \end_layout
17935
17936 \end_inset
17937
17938  [
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943
17944 \emph off
17945 0
17946 \end_layout
17947
17948 \end_inset
17949
17950 ,
17951 \begin_inset space \thinspace{}
17952 \end_inset
17953
17954
17955 \emph on
17956
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961
17962 \emph on
17963 1
17964 \end_layout
17965
17966 \end_inset
17967
17968
17969 \emph default
17970 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17971 -package 
17972 \family typewriter
17973 rotfloat
17974 \family default
17975  (sidewaysfloat).
17976  Set to 
17977 \begin_inset Flex Code
17978 status collapsed
17979
17980 \begin_layout Plain Layout
17981 0
17982 \end_layout
17983
17984 \end_inset
17985
17986  if the float does not support this feature.
17987 \end_layout
17988
17989 \begin_layout Description
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 AllowsWide
17995 \end_layout
17996
17997 \end_inset
17998
17999  [
18000 \begin_inset Flex Code
18001 status collapsed
18002
18003 \begin_layout Plain Layout
18004
18005 \emph off
18006 0
18007 \end_layout
18008
18009 \end_inset
18010
18011 ,
18012 \begin_inset space \thinspace{}
18013 \end_inset
18014
18015
18016 \emph on
18017
18018 \begin_inset Flex Code
18019 status collapsed
18020
18021 \begin_layout Plain Layout
18022
18023 \emph on
18024 1
18025 \end_layout
18026
18027 \end_inset
18028
18029
18030 \emph default
18031 ] Defines whether the float has a starred variant that spans columns in
18032  a two column paragraph.
18033  Set to 
18034 \begin_inset Flex Code
18035 status collapsed
18036
18037 \begin_layout Plain Layout
18038 0
18039 \end_layout
18040
18041 \end_inset
18042
18043  if the float does not support this feature.
18044 \end_layout
18045
18046 \begin_layout Description
18047 \begin_inset Flex Code
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051 Extension
18052 \end_layout
18053
18054 \end_inset
18055
18056  [
18057 \begin_inset Flex Code
18058 status collapsed
18059
18060 \begin_layout Plain Layout
18061 string
18062 \end_layout
18063
18064 \end_inset
18065
18066 =
18067 \begin_inset Quotes erd
18068 \end_inset
18069
18070
18071 \begin_inset Quotes erd
18072 \end_inset
18073
18074 ] The file name extension of an auxiliary file for the list of figures (or
18075  whatever).
18076  \SpecialChar LaTeX
18077  writes the captions to this file.
18078 \end_layout
18079
18080 \begin_layout Description
18081 \begin_inset Flex Code
18082 status collapsed
18083
18084 \begin_layout Plain Layout
18085 GuiName
18086 \end_layout
18087
18088 \end_inset
18089
18090  [
18091 \begin_inset Flex Code
18092 status collapsed
18093
18094 \begin_layout Plain Layout
18095 string
18096 \end_layout
18097
18098 \end_inset
18099
18100 =
18101 \begin_inset Quotes erd
18102 \end_inset
18103
18104
18105 \begin_inset Quotes erd
18106 \end_inset
18107
18108 ] The string that will be used in the menus and also for the caption.
18109  This is translated to the current language if babel is used.
18110 \end_layout
18111
18112 \begin_layout Description
18113 \begin_inset Flex Code
18114 status collapsed
18115
18116 \begin_layout Plain Layout
18117 HTML*
18118 \end_layout
18119
18120 \end_inset
18121
18122  These tags control the XHTML output.
18123  See 
18124 \begin_inset CommandInset ref
18125 LatexCommand ref
18126 reference "sec:Tags-for-XHTML"
18127
18128 \end_inset
18129
18130 .
18131 \end_layout
18132
18133 \begin_layout Description
18134 \begin_inset Flex Code
18135 status collapsed
18136
18137 \begin_layout Plain Layout
18138 IsPredefined
18139 \end_layout
18140
18141 \end_inset
18142
18143  [
18144 \emph on
18145
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150 0
18151 \end_layout
18152
18153 \end_inset
18154
18155
18156 \emph default
18157 ,
18158 \begin_inset space \thinspace{}
18159 \end_inset
18160
18161
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 1
18167 \end_layout
18168
18169 \end_inset
18170
18171 ] Indicates whether the float is already defined in the document class or
18172  if instead the \SpecialChar LaTeX
18173  package 
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178 float
18179 \end_layout
18180
18181 \end_inset
18182
18183  needs to be loaded to define it on-the-fly.
18184  The default is 
18185 \begin_inset Flex Code
18186 status collapsed
18187
18188 \begin_layout Plain Layout
18189 0
18190 \end_layout
18191
18192 \end_inset
18193
18194 , which means: 
18195 \begin_inset Flex Code
18196 status collapsed
18197
18198 \begin_layout Plain Layout
18199 float
18200 \end_layout
18201
18202 \end_inset
18203
18204  is used.
18205  It should be set to 
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 1
18211 \end_layout
18212
18213 \end_inset
18214
18215  if the float is already defined by the \SpecialChar LaTeX
18216  document class.
18217 \end_layout
18218
18219 \begin_layout Description
18220 \begin_inset Flex Code
18221 status collapsed
18222
18223 \begin_layout Plain Layout
18224 ListCommand
18225 \end_layout
18226
18227 \end_inset
18228
18229  [
18230 \begin_inset Flex Code
18231 status collapsed
18232
18233 \begin_layout Plain Layout
18234 string
18235 \end_layout
18236
18237 \end_inset
18238
18239 =
18240 \begin_inset Quotes erd
18241 \end_inset
18242
18243
18244 \begin_inset Quotes erd
18245 \end_inset
18246
18247 ] The command used to generate a list of floats of this type; the leading
18248  `
18249 \backslash
18250 ' must be omitted.
18251  This 
18252 \emph on
18253 must
18254 \emph default
18255  be given if 
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260 UsesFloatPkg
18261 \end_layout
18262
18263 \end_inset
18264
18265  is false, since there is no standard way to generate this command.
18266  It is ignored if 
18267 \begin_inset Flex Code
18268 status collapsed
18269
18270 \begin_layout Plain Layout
18271 UsesFloatPkg
18272 \end_layout
18273
18274 \end_inset
18275
18276  is true, since in that case there is a standard way to define the command.
18277 \end_layout
18278
18279 \begin_layout Description
18280 \begin_inset Flex Code
18281 status collapsed
18282
18283 \begin_layout Plain Layout
18284 ListName
18285 \end_layout
18286
18287 \end_inset
18288
18289  [
18290 \begin_inset Flex Code
18291 status collapsed
18292
18293 \begin_layout Plain Layout
18294 string
18295 \end_layout
18296
18297 \end_inset
18298
18299 =
18300 \begin_inset Quotes erd
18301 \end_inset
18302
18303
18304 \begin_inset Quotes erd
18305 \end_inset
18306
18307 ] A title for a list of floats of this kind (list of figures, tables, or
18308  whatever).
18309  It is used for the screen label within \SpecialChar LyX
18310 , it is used by \SpecialChar LaTeX
18311  for the title and
18312  it is used as the title in the XHTML output.
18313  It will be translated to the document language.
18314 \end_layout
18315
18316 \begin_layout Description
18317 \begin_inset Flex Code
18318 status collapsed
18319
18320 \begin_layout Plain Layout
18321 NumberWithin
18322 \end_layout
18323
18324 \end_inset
18325
18326  [
18327 \begin_inset Flex Code
18328 status collapsed
18329
18330 \begin_layout Plain Layout
18331 string
18332 \end_layout
18333
18334 \end_inset
18335
18336 =
18337 \begin_inset Quotes erd
18338 \end_inset
18339
18340
18341 \begin_inset Quotes erd
18342 \end_inset
18343
18344 ] This (optional) argument determines whether floats of this class will
18345  be numbered within some sectional unit of the document.
18346  For example, if 
18347 \begin_inset Flex Code
18348 status collapsed
18349
18350 \begin_layout Plain Layout
18351 NumberWithin
18352 \end_layout
18353
18354 \end_inset
18355
18356  is set to 
18357 \begin_inset Quotes eld
18358 \end_inset
18359
18360
18361 \begin_inset Flex Code
18362 status collapsed
18363
18364 \begin_layout Plain Layout
18365 chapter
18366 \end_layout
18367
18368 \end_inset
18369
18370
18371 \begin_inset Quotes erd
18372 \end_inset
18373
18374 , the floats will be numbered within chapters.
18375  
18376 \end_layout
18377
18378 \begin_layout Description
18379 \begin_inset Flex Code
18380 status collapsed
18381
18382 \begin_layout Plain Layout
18383 Placement
18384 \end_layout
18385
18386 \end_inset
18387
18388  [
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393 string
18394 \end_layout
18395
18396 \end_inset
18397
18398 =
18399 \begin_inset Quotes erd
18400 \end_inset
18401
18402
18403 \begin_inset Quotes erd
18404 \end_inset
18405
18406 ] The default placement for the given class of floats.
18407  The string should be as in standard \SpecialChar LaTeX
18408
18409 \begin_inset Flex Code
18410 status collapsed
18411
18412 \begin_layout Plain Layout
18413 t
18414 \end_layout
18415
18416 \end_inset
18417
18418
18419 \begin_inset Flex Code
18420 status collapsed
18421
18422 \begin_layout Plain Layout
18423 b
18424 \end_layout
18425
18426 \end_inset
18427
18428
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433 p
18434 \end_layout
18435
18436 \end_inset
18437
18438  and 
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443 h
18444 \end_layout
18445
18446 \end_inset
18447
18448  for top, bottom, page, and here, respectively.
18449 \begin_inset Foot
18450 status collapsed
18451
18452 \begin_layout Plain Layout
18453 Note that the order of these letters in the string is irrelevant, like in
18454  \SpecialChar LaTeX
18455 .
18456 \end_layout
18457
18458 \end_inset
18459
18460  On top of that there is a new type, 
18461 \begin_inset Flex Code
18462 status collapsed
18463
18464 \begin_layout Plain Layout
18465 H
18466 \end_layout
18467
18468 \end_inset
18469
18470 , which does not really correspond to a float, since it means: put it 
18471 \begin_inset Quotes eld
18472 \end_inset
18473
18474 here
18475 \begin_inset Quotes erd
18476 \end_inset
18477
18478  and nowhere else.
18479  Note however that the 
18480 \begin_inset Flex Code
18481 status collapsed
18482
18483 \begin_layout Plain Layout
18484 H
18485 \end_layout
18486
18487 \end_inset
18488
18489  specifier is special and, because of implementation details, cannot be
18490  used in non-built in float types.
18491  If you do not understand what this means, just use 
18492 \begin_inset Quotes eld
18493 \end_inset
18494
18495
18496 \begin_inset Flex Code
18497 status collapsed
18498
18499 \begin_layout Plain Layout
18500 tbp
18501 \end_layout
18502
18503 \end_inset
18504
18505
18506 \begin_inset Quotes erd
18507 \end_inset
18508
18509 .
18510 \end_layout
18511
18512 \begin_layout Description
18513 \begin_inset Flex Code
18514 status collapsed
18515
18516 \begin_layout Plain Layout
18517 RefPrefix
18518 \end_layout
18519
18520 \end_inset
18521
18522  [
18523 \begin_inset Flex Code
18524 status collapsed
18525
18526 \begin_layout Plain Layout
18527 string
18528 \end_layout
18529
18530 \end_inset
18531
18532 ] The prefix to use when creating labels referring to floats of this type.
18533  This allows the use of formatted references.
18534  Note that you can remove any 
18535 \begin_inset Flex Code
18536 status collapsed
18537
18538 \begin_layout Plain Layout
18539 RefPrefix
18540 \end_layout
18541
18542 \end_inset
18543
18544  set by a copied style by using the special value 
18545 \begin_inset Quotes eld
18546 \end_inset
18547
18548 OFF
18549 \begin_inset Quotes erd
18550 \end_inset
18551
18552 , which must be all caps.
18553 \change_inserted -712698321 1565605014
18554
18555 \end_layout
18556
18557 \begin_layout Description
18558
18559 \change_inserted -712698321 1565605014
18560 \begin_inset Flex Code
18561 status collapsed
18562
18563 \begin_layout Plain Layout
18564
18565 \change_inserted -712698321 1565605014
18566 Requires
18567 \end_layout
18568
18569 \end_inset
18570
18571  [
18572 \begin_inset Flex Code
18573 status collapsed
18574
18575 \begin_layout Plain Layout
18576
18577 \change_inserted -712698321 1565605014
18578 string
18579 \end_layout
18580
18581 \end_inset
18582
18583 ] As with paragraph styles, see 
18584 \begin_inset CommandInset ref
18585 LatexCommand ref
18586 reference "subsec:Paragraph-Styles"
18587
18588 \end_inset
18589
18590 .
18591 \change_unchanged
18592
18593 \end_layout
18594
18595 \begin_layout Description
18596 \begin_inset Flex Code
18597 status collapsed
18598
18599 \begin_layout Plain Layout
18600 Style
18601 \end_layout
18602
18603 \end_inset
18604
18605  [
18606 \begin_inset Flex Code
18607 status collapsed
18608
18609 \begin_layout Plain Layout
18610 string
18611 \end_layout
18612
18613 \end_inset
18614
18615 =
18616 \begin_inset Quotes erd
18617 \end_inset
18618
18619
18620 \begin_inset Quotes erd
18621 \end_inset
18622
18623 ] The style used when defining the float using 
18624 \begin_inset Flex Code
18625 status collapsed
18626
18627 \begin_layout Plain Layout
18628
18629 \backslash
18630 newfloat
18631 \end_layout
18632
18633 \end_inset
18634
18635 .
18636 \end_layout
18637
18638 \begin_layout Description
18639 \begin_inset Flex Code
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643 Type
18644 \end_layout
18645
18646 \end_inset
18647
18648  [
18649 \begin_inset Flex Code
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653 string
18654 \end_layout
18655
18656 \end_inset
18657
18658 =
18659 \begin_inset Quotes erd
18660 \end_inset
18661
18662
18663 \begin_inset Quotes erd
18664 \end_inset
18665
18666 ] The 
18667 \begin_inset Quotes eld
18668 \end_inset
18669
18670 type
18671 \begin_inset Quotes erd
18672 \end_inset
18673
18674  of the new class of floats, like program or algorithm.
18675  After the appropriate 
18676 \begin_inset Flex Code
18677 status collapsed
18678
18679 \begin_layout Plain Layout
18680
18681 \backslash
18682 newfloat
18683 \end_layout
18684
18685 \end_inset
18686
18687 , commands such as 
18688 \begin_inset Flex Code
18689 status collapsed
18690
18691 \begin_layout Plain Layout
18692
18693 \backslash
18694 begin{program}
18695 \end_layout
18696
18697 \end_inset
18698
18699  or 
18700 \begin_inset Flex Code
18701 status collapsed
18702
18703 \begin_layout Plain Layout
18704
18705 \backslash
18706 end{algorithm*}
18707 \end_layout
18708
18709 \end_inset
18710
18711  will be available.
18712 \end_layout
18713
18714 \begin_layout Description
18715 \begin_inset Flex Code
18716 status collapsed
18717
18718 \begin_layout Plain Layout
18719 UsesFloatPkg
18720 \end_layout
18721
18722 \end_inset
18723
18724  [
18725 \begin_inset Flex Code
18726 status collapsed
18727
18728 \begin_layout Plain Layout
18729 0
18730 \end_layout
18731
18732 \end_inset
18733
18734 ,
18735 \begin_inset space \thinspace{}
18736 \end_inset
18737
18738
18739 \begin_inset Flex Code
18740 status collapsed
18741
18742 \begin_layout Plain Layout
18743
18744 \emph on
18745 1
18746 \end_layout
18747
18748 \end_inset
18749
18750 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18751  package 
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 float
18757 \end_layout
18758
18759 \end_inset
18760
18761 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18762  itself.
18763 \end_layout
18764
18765 \begin_layout Standard
18766 Note that defining a float with type 
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771
18772 \emph on
18773 type
18774 \end_layout
18775
18776 \end_inset
18777
18778  automatically defines the corresponding counter with name 
18779 \begin_inset Flex Code
18780 status collapsed
18781
18782 \begin_layout Plain Layout
18783
18784 \emph on
18785 type
18786 \end_layout
18787
18788 \end_inset
18789
18790 .
18791 \end_layout
18792
18793 \begin_layout Subsection
18794 Flex insets and InsetLayout
18795 \begin_inset CommandInset label
18796 LatexCommand label
18797 name "subsec:Flex-insets-and"
18798
18799 \end_inset
18800
18801
18802 \end_layout
18803
18804 \begin_layout Standard
18805 Flex insets come in 
18806 \change_deleted 5863208 1594239511
18807 three
18808 \change_inserted 5863208 1594239512
18809 two
18810 \change_unchanged
18811  different kinds: 
18812 \end_layout
18813
18814 \begin_layout Itemize
18815 character style (
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820 CharStyle
18821 \end_layout
18822
18823 \end_inset
18824
18825 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18826  commands as 
18827 \begin_inset Flex Code
18828 status collapsed
18829
18830 \begin_layout Plain Layout
18831
18832 \backslash
18833 noun
18834 \end_layout
18835
18836 \end_inset
18837
18838  and 
18839 \begin_inset Flex Code
18840 status collapsed
18841
18842 \begin_layout Plain Layout
18843
18844 \backslash
18845 code
18846 \end_layout
18847
18848 \end_inset
18849
18850 .
18851 \end_layout
18852
18853 \begin_layout Itemize
18854 user custom (
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859 Custom
18860 \end_layout
18861
18862 \end_inset
18863
18864 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18865  code,
18866  footnote, and the like.
18867  An obvious example is an endnote inset, which is defined in the 
18868 \begin_inset Flex Code
18869 status collapsed
18870
18871 \begin_layout Plain Layout
18872 endnote
18873 \end_layout
18874
18875 \end_inset
18876
18877  module.
18878 \end_layout
18879
18880 \begin_layout Itemize
18881
18882 \change_deleted 5863208 1594239528
18883 XML elements (
18884 \begin_inset Flex Code
18885 status collapsed
18886
18887 \begin_layout Plain Layout
18888 Element
18889 \end_layout
18890
18891 \end_inset
18892
18893 ): For use with DocBook classes.
18894 \change_unchanged
18895
18896 \end_layout
18897
18898 \begin_layout Standard
18899 Flex insets are defined using the 
18900 \begin_inset Flex Code
18901 status collapsed
18902
18903 \begin_layout Plain Layout
18904 InsetLayout
18905 \end_layout
18906
18907 \end_inset
18908
18909  tag, which shall be explained in a moment.
18910 \end_layout
18911
18912 \begin_layout Standard
18913 The 
18914 \begin_inset Flex Code
18915 status collapsed
18916
18917 \begin_layout Plain Layout
18918 InsetLayout
18919 \end_layout
18920
18921 \end_inset
18922
18923  tag also serves another function: It can be used to customize the general
18924  layout of many different types of insets.
18925  Currently, 
18926 \begin_inset Flex Code
18927 status collapsed
18928
18929 \begin_layout Plain Layout
18930 InsetLayout
18931 \end_layout
18932
18933 \end_inset
18934
18935  can be used to customize the layout parameters for footnotes, marginal
18936  notes, note insets, \SpecialChar TeX
18937  code (ERT) insets, branches, listings, indexes, boxes,
18938  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18939 \end_layout
18940
18941 \begin_layout Standard
18942 The 
18943 \begin_inset Flex Code
18944 status collapsed
18945
18946 \begin_layout Plain Layout
18947 InsetLayout
18948 \end_layout
18949
18950 \end_inset
18951
18952  definition must begin with a line of the form:
18953 \end_layout
18954
18955 \begin_layout LyX-Code
18956 InsetLayout <type>
18957 \end_layout
18958
18959 \begin_layout Standard
18960 Here 
18961 \begin_inset Flex Code
18962 status collapsed
18963
18964 \begin_layout Plain Layout
18965 <Type>
18966 \end_layout
18967
18968 \end_inset
18969
18970  indicates the inset whose layout is being defined, and here there are four
18971  cases.
18972 \end_layout
18973
18974 \begin_layout Enumerate
18975 The layout for a pre-existing inset is being modified.
18976  In this case, can be 
18977 \begin_inset Flex Code
18978 status collapsed
18979
18980 \begin_layout Plain Layout
18981 <Type>
18982 \end_layout
18983
18984 \end_inset
18985
18986  any one of the following: 
18987 \begin_inset Flex Code
18988 status collapsed
18989
18990 \begin_layout Plain Layout
18991 Algorithm
18992 \end_layout
18993
18994 \end_inset
18995
18996
18997 \begin_inset Flex Code
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001 Branch
19002 \end_layout
19003
19004 \end_inset
19005
19006
19007 \begin_inset Flex Code
19008 status collapsed
19009
19010 \begin_layout Plain Layout
19011 Box
19012 \end_layout
19013
19014 \end_inset
19015
19016
19017 \begin_inset Flex Code
19018 status collapsed
19019
19020 \begin_layout Plain Layout
19021 Box:shaded
19022 \end_layout
19023
19024 \end_inset
19025
19026
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 Caption:Standard
19032 \end_layout
19033
19034 \end_inset
19035
19036
19037 \begin_inset Flex Code
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 ERT
19042 \end_layout
19043
19044 \end_inset
19045
19046
19047 \begin_inset Flex Code
19048 status collapsed
19049
19050 \begin_layout Plain Layout
19051 Figure
19052 \end_layout
19053
19054 \end_inset
19055
19056
19057 \begin_inset Flex Code
19058 status collapsed
19059
19060 \begin_layout Plain Layout
19061 Foot
19062 \end_layout
19063
19064 \end_inset
19065
19066
19067 \begin_inset Flex Code
19068 status collapsed
19069
19070 \begin_layout Plain Layout
19071 Index
19072 \end_layout
19073
19074 \end_inset
19075
19076
19077 \begin_inset Flex Code
19078 status collapsed
19079
19080 \begin_layout Plain Layout
19081 Info
19082 \end_layout
19083
19084 \end_inset
19085
19086
19087 \begin_inset Flex Code
19088 status collapsed
19089
19090 \begin_layout Plain Layout
19091 Info:menu
19092 \end_layout
19093
19094 \end_inset
19095
19096
19097 \begin_inset Flex Code
19098 status collapsed
19099
19100 \begin_layout Plain Layout
19101 Info:shortcut
19102 \end_layout
19103
19104 \end_inset
19105
19106
19107 \begin_inset Flex Code
19108 status collapsed
19109
19110 \begin_layout Plain Layout
19111 Info:shortcuts
19112 \end_layout
19113
19114 \end_inset
19115
19116
19117 \begin_inset Flex Code
19118 status collapsed
19119
19120 \begin_layout Plain Layout
19121 Listings
19122 \end_layout
19123
19124 \end_inset
19125
19126
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131 Marginal
19132 \end_layout
19133
19134 \end_inset
19135
19136
19137 \begin_inset Flex Code
19138 status collapsed
19139
19140 \begin_layout Plain Layout
19141 Note:Comment
19142 \end_layout
19143
19144 \end_inset
19145
19146
19147 \begin_inset Flex Code
19148 status collapsed
19149
19150 \begin_layout Plain Layout
19151 Note:Note
19152 \end_layout
19153
19154 \end_inset
19155
19156
19157 \begin_inset Flex Code
19158 status collapsed
19159
19160 \begin_layout Plain Layout
19161 Note:Greyedout
19162 \end_layout
19163
19164 \end_inset
19165
19166
19167 \begin_inset Flex Code
19168 status collapsed
19169
19170 \begin_layout Plain Layout
19171 Table
19172 \end_layout
19173
19174 \end_inset
19175
19176 , or 
19177 \begin_inset Flex Code
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181 URL
19182 \end_layout
19183
19184 \end_inset
19185
19186 .
19187 \end_layout
19188
19189 \begin_layout Enumerate
19190 The layout for a Flex inset is being defined.
19191  In this case, 
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 <Type>
19197 \end_layout
19198
19199 \end_inset
19200
19201  must be of the form 
19202 \begin_inset Quotes eld
19203 \end_inset
19204
19205
19206 \begin_inset Flex Code
19207 status collapsed
19208
19209 \begin_layout Plain Layout
19210 Flex:<name>
19211 \end_layout
19212
19213 \end_inset
19214
19215
19216 \begin_inset Quotes erd
19217 \end_inset
19218
19219 , where 
19220 \begin_inset Flex Code
19221 status collapsed
19222
19223 \begin_layout Plain Layout
19224 name
19225 \end_layout
19226
19227 \end_inset
19228
19229  may be be any valid identifier not used by a pre-existing Flex inset.
19230  The identifier may include spaces, but in that case the whole thing must
19231  be wrapped in quotes.
19232  Note that the definition of a flex inset 
19233 \emph on
19234 must 
19235 \emph default
19236 also include a 
19237 \begin_inset Flex Code
19238 status collapsed
19239
19240 \begin_layout Plain Layout
19241 LyXType
19242 \end_layout
19243
19244 \end_inset
19245
19246  entry, declaring which type of inset it defines.
19247 \end_layout
19248
19249 \begin_layout Enumerate
19250 The layout for user specific branch is being defined.
19251  In this case, 
19252 \begin_inset Flex Code
19253 status collapsed
19254
19255 \begin_layout Plain Layout
19256 <Type>
19257 \end_layout
19258
19259 \end_inset
19260
19261  must be of the form 
19262 \begin_inset Quotes eld
19263 \end_inset
19264
19265
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 Branch:<name>
19271 \end_layout
19272
19273 \end_inset
19274
19275
19276 \begin_inset Quotes erd
19277 \end_inset
19278
19279 , where 
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284 name
19285 \end_layout
19286
19287 \end_inset
19288
19289  may be be any valid identifier of branch defined in user's document.
19290  The identifier may include spaces, but in that case the whole thing must
19291  be wrapped in quotes.
19292  The main purpose of this feature is to allow \SpecialChar LaTeX
19293  wrapping around specific
19294  branches as user needs.
19295 \end_layout
19296
19297 \begin_layout Enumerate
19298 The layout of a user (or class) specific caption is being defined.
19299  In this case, 
19300 \begin_inset Flex Code
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 <Type>
19305 \end_layout
19306
19307 \end_inset
19308
19309  must be of the form 
19310 \begin_inset Quotes eld
19311 \end_inset
19312
19313
19314 \begin_inset Flex Code
19315 status collapsed
19316
19317 \begin_layout Plain Layout
19318 Caption:<name>
19319 \end_layout
19320
19321 \end_inset
19322
19323
19324 \begin_inset Quotes erd
19325 \end_inset
19326
19327 , where 
19328 \begin_inset Flex Code
19329 status collapsed
19330
19331 \begin_layout Plain Layout
19332 name
19333 \end_layout
19334
19335 \end_inset
19336
19337  specifies the name of the caption as it appears in the menu.
19338  Have a look at the standard caption (
19339 \begin_inset Flex Code
19340 status collapsed
19341
19342 \begin_layout Plain Layout
19343 Caption:Standard
19344 \end_layout
19345
19346 \end_inset
19347
19348 ), the specific captions of the KOMA-Script classes (
19349 \begin_inset Flex Code
19350 status collapsed
19351
19352 \begin_layout Plain Layout
19353 Caption:Above
19354 \end_layout
19355
19356 \end_inset
19357
19358
19359 \begin_inset Flex Code
19360 status collapsed
19361
19362 \begin_layout Plain Layout
19363 Caption:Below
19364 \end_layout
19365
19366 \end_inset
19367
19368 ) or the module 
19369 \family sans
19370 Multilingual
19371 \begin_inset space ~
19372 \end_inset
19373
19374 Captions
19375 \begin_inset Newline linebreak
19376 \end_inset
19377
19378
19379 \family default
19380 (
19381 \begin_inset Flex Code
19382 status collapsed
19383
19384 \begin_layout Plain Layout
19385 Caption:Bicaption
19386 \end_layout
19387
19388 \end_inset
19389
19390 ) for applications.
19391 \end_layout
19392
19393 \begin_layout Standard
19394 The 
19395 \begin_inset Flex Code
19396 status collapsed
19397
19398 \begin_layout Plain Layout
19399 InsetLayout
19400 \end_layout
19401
19402 \end_inset
19403
19404  definition can contain the following entries:
19405 \end_layout
19406
19407 \begin_layout Description
19408 \begin_inset Flex Code
19409 status collapsed
19410
19411 \begin_layout Plain Layout
19412 AddToToc
19413 \end_layout
19414
19415 \end_inset
19416
19417  [
19418 \begin_inset Flex Code
19419 status collapsed
19420
19421 \begin_layout Plain Layout
19422 string
19423 \end_layout
19424
19425 \end_inset
19426
19427 =""] This inset will appear in the table of contents of the given type.
19428  An empty string disables.
19429  See also the OutlinerName and the IsTocCaption commands.
19430  This is only implemented for Flex insets.
19431  Default: disabled.
19432 \end_layout
19433
19434 \begin_layout Description
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 Argument
19440 \end_layout
19441
19442 \end_inset
19443
19444  [
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449 int
19450 \end_layout
19451
19452 \end_inset
19453
19454 ] Defines argument number of a command\SpecialChar breakableslash
19455 environment associated with the current
19456  layout.
19457  The definition must end with 
19458 \begin_inset Flex Code
19459 status collapsed
19460
19461 \begin_layout Plain Layout
19462 EndArgument
19463 \end_layout
19464
19465 \end_inset
19466
19467 .
19468  See 
19469 \begin_inset CommandInset ref
19470 LatexCommand ref
19471 reference "subsec:Paragraph-Styles"
19472
19473 \end_inset
19474
19475  for details.
19476 \end_layout
19477
19478 \begin_layout Description
19479 \begin_inset Flex Code
19480 status collapsed
19481
19482 \begin_layout Plain Layout
19483 BabelPreamble
19484 \end_layout
19485
19486 \end_inset
19487
19488  Preamble for changing language commands; see 
19489 \begin_inset CommandInset ref
19490 LatexCommand ref
19491 reference "subsec:I18n"
19492
19493 \end_inset
19494
19495 .
19496 \end_layout
19497
19498 \begin_layout Description
19499 \begin_inset Flex Code
19500 status collapsed
19501
19502 \begin_layout Plain Layout
19503 BgColor
19504 \end_layout
19505
19506 \end_inset
19507
19508  [
19509 \begin_inset Flex Code
19510 status collapsed
19511
19512 \begin_layout Plain Layout
19513 <name>
19514 \end_layout
19515
19516 \end_inset
19517
19518 ] The color for the inset's background.
19519  See 
19520 \begin_inset CommandInset ref
19521 LatexCommand ref
19522 reference "chap:Names-of-colors"
19523
19524 \end_inset
19525
19526  for a list of the available color names.
19527 \end_layout
19528
19529 \begin_layout Description
19530 \begin_inset Flex Code
19531 status collapsed
19532
19533 \begin_layout Plain Layout
19534 ContentAsLabel
19535 \end_layout
19536
19537 \end_inset
19538
19539  [
19540 \begin_inset Flex Code
19541 status collapsed
19542
19543 \begin_layout Plain Layout
19544
19545 \emph on
19546 0
19547 \end_layout
19548
19549 \end_inset
19550
19551 ,
19552 \begin_inset space \thinspace{}
19553 \end_inset
19554
19555
19556 \begin_inset Flex Code
19557 status collapsed
19558
19559 \begin_layout Plain Layout
19560 1
19561 \end_layout
19562
19563 \end_inset
19564
19565 ] Whether to use the content of the inset as the label, when the inset is
19566  closed.
19567  Default is false.
19568 \end_layout
19569
19570 \begin_layout Description
19571 \begin_inset Flex Code
19572 status collapsed
19573
19574 \begin_layout Plain Layout
19575 CopyStyle
19576 \end_layout
19577
19578 \end_inset
19579
19580  [
19581 \begin_inset Flex Code
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 <type>
19586 \end_layout
19587
19588 \end_inset
19589
19590 ] As with paragraph styles, see 
19591 \begin_inset CommandInset ref
19592 LatexCommand ref
19593 reference "subsec:Paragraph-Styles"
19594
19595 \end_inset
19596
19597 .
19598  Note that you need to specify the complete type, e.
19599 \begin_inset space \thinspace{}
19600 \end_inset
19601
19602 g.
19603 \begin_inset space ~
19604 \end_inset
19605
19606
19607 \begin_inset Flex Code
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611 CopyStyle Flex:<name>
19612 \end_layout
19613
19614 \end_inset
19615
19616 .
19617 \end_layout
19618
19619 \begin_layout Description
19620 \begin_inset Flex Code
19621 status collapsed
19622
19623 \begin_layout Plain Layout
19624 CustomPars
19625 \end_layout
19626
19627 \end_inset
19628
19629  [
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634
19635 \emph on
19636 0
19637 \end_layout
19638
19639 \end_inset
19640
19641 ,
19642 \begin_inset space \thinspace{}
19643 \end_inset
19644
19645
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 1
19651 \end_layout
19652
19653 \end_inset
19654
19655 ] Indicates whether the user may employ the Paragraph Settings dialog to
19656  customize the paragraph.
19657 \end_layout
19658
19659 \begin_layout Description
19660 \begin_inset Flex Code
19661 status collapsed
19662
19663 \begin_layout Plain Layout
19664 Decoration
19665 \end_layout
19666
19667 \end_inset
19668
19669  can be 
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 Classic
19675 \end_layout
19676
19677 \end_inset
19678
19679
19680 \begin_inset Flex Code
19681 status collapsed
19682
19683 \begin_layout Plain Layout
19684 Minimalistic
19685 \end_layout
19686
19687 \end_inset
19688
19689 , or 
19690 \begin_inset Flex Code
19691 status collapsed
19692
19693 \begin_layout Plain Layout
19694 Conglomerate
19695 \end_layout
19696
19697 \end_inset
19698
19699 , describing the rendering style used for the inset's frame and buttons.
19700  Footnotes generally use 
19701 \begin_inset Flex Code
19702 status collapsed
19703
19704 \begin_layout Plain Layout
19705 Classic
19706 \end_layout
19707
19708 \end_inset
19709
19710 , ERT insets generally 
19711 \begin_inset Flex Code
19712 status collapsed
19713
19714 \begin_layout Plain Layout
19715 Minimalistic
19716 \end_layout
19717
19718 \end_inset
19719
19720 , and character styles 
19721 \begin_inset Flex Code
19722 status collapsed
19723
19724 \begin_layout Plain Layout
19725 Conglomerate
19726 \end_layout
19727
19728 \end_inset
19729
19730 .
19731 \end_layout
19732
19733 \begin_layout Description
19734 \begin_inset Flex Code
19735 status collapsed
19736
19737 \begin_layout Plain Layout
19738 Display
19739 \end_layout
19740
19741 \end_inset
19742
19743  [
19744 \begin_inset Flex Code
19745 status collapsed
19746
19747 \begin_layout Plain Layout
19748 0
19749 \end_layout
19750
19751 \end_inset
19752
19753 ,
19754 \emph on
19755
19756 \begin_inset space \thinspace{}
19757 \end_inset
19758
19759
19760 \emph default
19761
19762 \begin_inset Flex Code
19763 status collapsed
19764
19765 \begin_layout Plain Layout
19766
19767 \emph on
19768 1
19769 \end_layout
19770
19771 \end_inset
19772
19773 ] Only useful if 
19774 \begin_inset Flex Code
19775 status collapsed
19776
19777 \begin_layout Plain Layout
19778 LatexType
19779 \end_layout
19780
19781 \end_inset
19782
19783  is 
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 Environment
19789 \end_layout
19790
19791 \end_inset
19792
19793 .
19794  Indicates whether the environment will stand on its own in the output or
19795  will appear inline with the surrounding text.
19796  If set to false, it is supposed that the \SpecialChar LaTeX
19797  environment ignores white space
19798  (including one newline character) after the 
19799 \begin_inset Flex Code
19800 status collapsed
19801
19802 \begin_layout Plain Layout
19803
19804 \backslash
19805 begin{
19806 \emph on
19807 LatexName
19808 \emph default
19809 }
19810 \end_layout
19811
19812 \end_inset
19813
19814  and 
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819
19820 \backslash
19821 end{
19822 \emph on
19823 LatexName
19824 \emph default
19825 }
19826 \end_layout
19827
19828 \end_inset
19829
19830  tags.
19831  Default is true.
19832 \change_inserted 731793113 1538674858
19833
19834 \end_layout
19835
19836 \begin_layout Description
19837
19838 \change_inserted 731793113 1538674891
19839 \begin_inset Flex Code
19840 status open
19841
19842 \begin_layout Plain Layout
19843
19844 \change_inserted 731793113 1538674863
19845 EditExternal
19846 \change_unchanged
19847
19848 \end_layout
19849
19850 \end_inset
19851
19852  [
19853 \emph on
19854 0
19855 \emph default
19856 ,1] Allow the contents of the inset to be edited externally (using whatever
19857  editor is defined for the document's output format).
19858 \change_unchanged
19859
19860 \end_layout
19861
19862 \begin_layout Description
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  Required at the end of the 
19873 \begin_inset Flex Code
19874 status collapsed
19875
19876 \begin_layout Plain Layout
19877 InsetLayout
19878 \end_layout
19879
19880 \end_inset
19881
19882  declarations.
19883 \end_layout
19884
19885 \begin_layout Description
19886 \begin_inset Flex Code
19887 status collapsed
19888
19889 \begin_layout Plain Layout
19890 Font
19891 \end_layout
19892
19893 \end_inset
19894
19895  The font used for both the text body 
19896 \emph on
19897 and
19898 \emph default
19899  the label.
19900  See 
19901 \begin_inset CommandInset ref
19902 LatexCommand ref
19903 reference "subsec:Font-description"
19904
19905 \end_inset
19906
19907 .
19908  Note that defining this font automatically defines the 
19909 \begin_inset Flex Code
19910 status collapsed
19911
19912 \begin_layout Plain Layout
19913 LabelFont
19914 \end_layout
19915
19916 \end_inset
19917
19918  to the same value, so define this first and define 
19919 \begin_inset Flex Code
19920 status collapsed
19921
19922 \begin_layout Plain Layout
19923 LabelFont
19924 \end_layout
19925
19926 \end_inset
19927
19928  later if you want them to be different.
19929 \end_layout
19930
19931 \begin_layout Description
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 FixedWidthPreambleEncoding
19937 \end_layout
19938
19939 \end_inset
19940
19941  [
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946
19947 \emph on
19948 0
19949 \end_layout
19950
19951 \end_inset
19952
19953 ,
19954 \begin_inset space \thinspace{}
19955 \end_inset
19956
19957
19958 \begin_inset Flex Code
19959 status collapsed
19960
19961 \begin_layout Plain Layout
19962 1
19963 \end_layout
19964
19965 \end_inset
19966
19967 ] Force a fixed width encoding for the translated contents of 
19968 \begin_inset Flex Code
19969 status collapsed
19970
19971 \begin_layout Plain Layout
19972 BabelPreamble
19973 \end_layout
19974
19975 \end_inset
19976
19977  and 
19978 \begin_inset Flex Code
19979 status collapsed
19980
19981 \begin_layout Plain Layout
19982 LangPreamble
19983 \end_layout
19984
19985 \end_inset
19986
19987  code generated by this layout.
19988  This is needed for special \SpecialChar LaTeX
19989 -packages like 
19990 \family typewriter
19991 listings
19992 \family default
19993  that do not work with variable width encodings such as 
19994 \family sans
19995 utf8
19996 \family default
19997 .
19998  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19999  backends such as Xe\SpecialChar TeX
20000  or
20001  Lua\SpecialChar TeX
20002  are used.
20003 \end_layout
20004
20005 \begin_layout Description
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 ForceLocalFontSwitch
20011 \end_layout
20012
20013 \end_inset
20014
20015  [
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020
20021 \emph on
20022 0
20023 \end_layout
20024
20025 \end_inset
20026
20027 ,
20028 \begin_inset space \thinspace{}
20029 \end_inset
20030
20031
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 1
20037 \end_layout
20038
20039 \end_inset
20040
20041 ] When using babel, always use a local font switch (
20042 \begin_inset Flex Code
20043 status collapsed
20044
20045 \begin_layout Plain Layout
20046
20047 \backslash
20048 foreignlanguage
20049 \end_layout
20050
20051 \end_inset
20052
20053 ), never a global one (such as 
20054 \begin_inset Flex Code
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058
20059 \backslash
20060 selectlanguage
20061 \end_layout
20062
20063 \end_inset
20064
20065 ).
20066 \end_layout
20067
20068 \begin_layout Description
20069 \begin_inset Flex Code
20070 status collapsed
20071
20072 \begin_layout Plain Layout
20073 ForceLTR
20074 \end_layout
20075
20076 \end_inset
20077
20078  [
20079 \begin_inset Flex Code
20080 status collapsed
20081
20082 \begin_layout Plain Layout
20083
20084 \emph on
20085 0
20086 \end_layout
20087
20088 \end_inset
20089
20090 ,
20091 \begin_inset space \thinspace{}
20092 \end_inset
20093
20094
20095 \begin_inset Flex Code
20096 status collapsed
20097
20098 \begin_layout Plain Layout
20099 1
20100 \end_layout
20101
20102 \end_inset
20103
20104 ] Force the 
20105 \begin_inset Quotes eld
20106 \end_inset
20107
20108 latex
20109 \begin_inset Quotes erd
20110 \end_inset
20111
20112  language, leading to Left-to-Right (Latin) output, e.
20113 \begin_inset space \thinspace{}
20114 \end_inset
20115
20116 g.
20117 \begin_inset space \space{}
20118 \end_inset
20119
20120 in \SpecialChar TeX
20121  code or URL.
20122  A kludge.
20123 \end_layout
20124
20125 \begin_layout Description
20126 \begin_inset Flex Code
20127 status collapsed
20128
20129 \begin_layout Plain Layout
20130 ForceOwnlines
20131 \end_layout
20132
20133 \end_inset
20134
20135  [
20136 \begin_inset Flex Code
20137 status collapsed
20138
20139 \begin_layout Plain Layout
20140
20141 \emph on
20142 0
20143 \end_layout
20144
20145 \end_inset
20146
20147 ,
20148 \begin_inset space \thinspace{}
20149 \end_inset
20150
20151
20152 \begin_inset Flex Code
20153 status collapsed
20154
20155 \begin_layout Plain Layout
20156 1
20157 \end_layout
20158
20159 \end_inset
20160
20161 ] Force a a line break in the \SpecialChar LaTeX
20162  output before the inset starts and after
20163  the inset ends.
20164  This assures the inset itself is output on its own lines, for parsing purposes.
20165 \end_layout
20166
20167 \begin_layout Description
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 ForcePlain
20173 \end_layout
20174
20175 \end_inset
20176
20177  [
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182
20183 \emph on
20184 0
20185 \end_layout
20186
20187 \end_inset
20188
20189 ,
20190 \begin_inset space \thinspace{}
20191 \end_inset
20192
20193
20194 \begin_inset Flex Code
20195 status collapsed
20196
20197 \begin_layout Plain Layout
20198 1
20199 \end_layout
20200
20201 \end_inset
20202
20203 ] Indicates whether the 
20204 \begin_inset Flex Code
20205 status collapsed
20206
20207 \begin_layout Plain Layout
20208 PlainLayout
20209 \end_layout
20210
20211 \end_inset
20212
20213  should be used or, instead, the user can change the paragraph style used
20214  in the inset.
20215  Default is false.
20216 \end_layout
20217
20218 \begin_layout Description
20219 \begin_inset Flex Code
20220 status collapsed
20221
20222 \begin_layout Plain Layout
20223 FreeSpacing
20224 \end_layout
20225
20226 \end_inset
20227
20228  [
20229 \begin_inset Flex Code
20230 status collapsed
20231
20232 \begin_layout Plain Layout
20233
20234 \emph on
20235 0
20236 \end_layout
20237
20238 \end_inset
20239
20240 ,
20241 \begin_inset space \thinspace{}
20242 \end_inset
20243
20244
20245 \begin_inset Flex Code
20246 status collapsed
20247
20248 \begin_layout Plain Layout
20249 1
20250 \end_layout
20251
20252 \end_inset
20253
20254 ] As with paragraph styles, see 
20255 \begin_inset CommandInset ref
20256 LatexCommand ref
20257 reference "subsec:Paragraph-Styles"
20258
20259 \end_inset
20260
20261 .
20262 \end_layout
20263
20264 \begin_layout Description
20265 \begin_inset Flex Code
20266 status collapsed
20267
20268 \begin_layout Plain Layout
20269 HTML*
20270 \end_layout
20271
20272 \end_inset
20273
20274  These tags control the XHTML output.
20275  See 
20276 \begin_inset CommandInset ref
20277 LatexCommand ref
20278 reference "sec:Tags-for-XHTML"
20279
20280 \end_inset
20281
20282 .
20283 \end_layout
20284
20285 \begin_layout Description
20286 \begin_inset Flex Code
20287 status collapsed
20288
20289 \begin_layout Plain Layout
20290 InToc
20291 \end_layout
20292
20293 \end_inset
20294
20295  [
20296 \begin_inset Flex Code
20297 status collapsed
20298
20299 \begin_layout Plain Layout
20300
20301 \emph on
20302 0
20303 \end_layout
20304
20305 \end_inset
20306
20307 ,
20308 \begin_inset space \thinspace{}
20309 \end_inset
20310
20311
20312 \begin_inset Flex Code
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316 1
20317 \end_layout
20318
20319 \end_inset
20320
20321 ] Whether to include the contents of this inset in the strings generated
20322  for the `Outline' pane for all table of contents, regardless of the AddToToc
20323  setting.
20324  One would not, for example, want the content of a footnote in a section
20325  header to be included in the TOC displayed in the outline, but one would
20326  normally want the content of a character style displayed.
20327  Default is false: not to include.
20328 \end_layout
20329
20330 \begin_layout Description
20331 \begin_inset Flex Code
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335 IsTocCaption
20336 \end_layout
20337
20338 \end_inset
20339
20340  [
20341 \begin_inset Flex Code
20342 status collapsed
20343
20344 \begin_layout Plain Layout
20345
20346 \emph on
20347 0
20348 \end_layout
20349
20350 \end_inset
20351
20352 ,
20353 \begin_inset space \thinspace{}
20354 \end_inset
20355
20356
20357 \begin_inset Flex Code
20358 status collapsed
20359
20360 \begin_layout Plain Layout
20361 1
20362 \end_layout
20363
20364 \end_inset
20365
20366 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20367  of its contents in its item in the table of contents.
20368  Otherwise, only the label appears.
20369 \end_layout
20370
20371 \begin_layout Description
20372 \begin_inset Flex Code
20373 status collapsed
20374
20375 \begin_layout Plain Layout
20376 KeepEmpty
20377 \end_layout
20378
20379 \end_inset
20380
20381  [
20382 \emph on
20383
20384 \begin_inset Flex Code
20385 status collapsed
20386
20387 \begin_layout Plain Layout
20388 0
20389 \end_layout
20390
20391 \end_inset
20392
20393
20394 \emph default
20395 ,
20396 \begin_inset space \thinspace{}
20397 \end_inset
20398
20399
20400 \begin_inset Flex Code
20401 status collapsed
20402
20403 \begin_layout Plain Layout
20404 1
20405 \end_layout
20406
20407 \end_inset
20408
20409 ] As with paragraph styles, see 
20410 \begin_inset CommandInset ref
20411 LatexCommand ref
20412 reference "subsec:Paragraph-Styles"
20413
20414 \end_inset
20415
20416 .
20417 \end_layout
20418
20419 \begin_layout Description
20420 \begin_inset Flex Code
20421 status collapsed
20422
20423 \begin_layout Plain Layout
20424 LabelFont
20425 \end_layout
20426
20427 \end_inset
20428
20429  The font used for the label.
20430  See 
20431 \begin_inset CommandInset ref
20432 LatexCommand ref
20433 reference "subsec:Font-description"
20434
20435 \end_inset
20436
20437 .
20438  Note that this definition can never appear before 
20439 \begin_inset Flex Code
20440 status collapsed
20441
20442 \begin_layout Plain Layout
20443 Font
20444 \end_layout
20445
20446 \end_inset
20447
20448 , lest it be ineffective.
20449 \end_layout
20450
20451 \begin_layout Description
20452 \begin_inset Flex Code
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456 LabelString
20457 \end_layout
20458
20459 \end_inset
20460
20461  [
20462 \begin_inset Flex Code
20463 status collapsed
20464
20465 \begin_layout Plain Layout
20466 string
20467 \end_layout
20468
20469 \end_inset
20470
20471 =
20472 \begin_inset Quotes erd
20473 \end_inset
20474
20475
20476 \begin_inset Quotes erd
20477 \end_inset
20478
20479 ] What will be displayed on the button or elsewhere as the inset label.
20480  Some inset types (
20481 \begin_inset Flex Code
20482 status collapsed
20483
20484 \begin_layout Plain Layout
20485 \SpecialChar TeX
20486  code
20487 \end_layout
20488
20489 \end_inset
20490
20491  and 
20492 \begin_inset Flex Code
20493 status collapsed
20494
20495 \begin_layout Plain Layout
20496 Branch
20497 \end_layout
20498
20499 \end_inset
20500
20501 ) modify this label on the fly.
20502 \end_layout
20503
20504 \begin_layout Description
20505 \begin_inset Flex Code
20506 status collapsed
20507
20508 \begin_layout Plain Layout
20509 LangPreamble
20510 \end_layout
20511
20512 \end_inset
20513
20514  Language dependent preamble; see 
20515 \begin_inset CommandInset ref
20516 LatexCommand ref
20517 reference "subsec:I18n"
20518
20519 \end_inset
20520
20521 .
20522 \end_layout
20523
20524 \begin_layout Description
20525 \begin_inset Flex Code
20526 status collapsed
20527
20528 \begin_layout Plain Layout
20529 LatexName
20530 \end_layout
20531
20532 \end_inset
20533
20534  [
20535 \begin_inset Flex Code
20536 status collapsed
20537
20538 \begin_layout Plain Layout
20539 <name>
20540 \end_layout
20541
20542 \end_inset
20543
20544 ] The name of the corresponding \SpecialChar LaTeX
20545  stuff.
20546  Either the environment or command name.
20547 \end_layout
20548
20549 \begin_layout Description
20550 \begin_inset Flex Code
20551 status collapsed
20552
20553 \begin_layout Plain Layout
20554 LatexParam
20555 \end_layout
20556
20557 \end_inset
20558
20559  [
20560 \begin_inset Flex Code
20561 status collapsed
20562
20563 \begin_layout Plain Layout
20564 <parameter>
20565 \end_layout
20566
20567 \end_inset
20568
20569 ] The optional parameter for the corresponding 
20570 \begin_inset Flex Code
20571 status collapsed
20572
20573 \begin_layout Plain Layout
20574 LatexName
20575 \end_layout
20576
20577 \end_inset
20578
20579  stuff, including possible bracket pairs like 
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584 []
20585 \end_layout
20586
20587 \end_inset
20588
20589 .
20590  This parameter cannot be changed from within \SpecialChar LyX
20591  (use 
20592 \begin_inset Flex Code
20593 status collapsed
20594
20595 \begin_layout Plain Layout
20596 Argument
20597 \end_layout
20598
20599 \end_inset
20600
20601  for customizable parameters).
20602  It will be output as is after all \SpecialChar LaTeX
20603  
20604 \begin_inset Flex Code
20605 status collapsed
20606
20607 \begin_layout Plain Layout
20608 Argument
20609 \end_layout
20610
20611 \end_inset
20612
20613 s.
20614 \end_layout
20615
20616 \begin_layout Description
20617 \begin_inset Flex Code
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 LatexType
20622 \end_layout
20623
20624 \end_inset
20625
20626  [
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 Command, Environment, None
20632 \end_layout
20633
20634 \end_inset
20635
20636 ] How the style should be translated into \SpecialChar LaTeX
20637 .
20638 \begin_inset Foot
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 \begin_inset Flex Code
20643 status collapsed
20644
20645 \begin_layout Plain Layout
20646 LatexType
20647 \end_layout
20648
20649 \end_inset
20650
20651  is perhaps a bit misleading, since these rules apply to SGML classes too.
20652  Visit the SGML class files for specific examples.
20653 \end_layout
20654
20655 \end_inset
20656
20657
20658 \end_layout
20659
20660 \begin_deeper
20661 \begin_layout Description
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 None
20667 \end_layout
20668
20669 \end_inset
20670
20671  means nothing special
20672 \end_layout
20673
20674 \begin_layout Description
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 Command
20680 \end_layout
20681
20682 \end_inset
20683
20684  means 
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689
20690 \backslash
20691
20692 \emph on
20693 LatexName
20694 \emph default
20695 {\SpecialChar ldots
20696 }
20697 \end_layout
20698
20699 \end_inset
20700
20701
20702 \end_layout
20703
20704 \begin_layout Description
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 Environment
20710 \end_layout
20711
20712 \end_inset
20713
20714  means 
20715 \begin_inset Flex Code
20716 status collapsed
20717
20718 \begin_layout Plain Layout
20719
20720 \backslash
20721 begin{
20722 \emph on
20723 LatexName
20724 \emph default
20725 }\SpecialChar ldots
20726
20727 \backslash
20728 end{
20729 \emph on
20730 LatexName
20731 \emph default
20732 }
20733 \end_layout
20734
20735 \end_inset
20736
20737
20738 \end_layout
20739
20740 \begin_layout Standard
20741 Putting the last few things together, the \SpecialChar LaTeX
20742  output will be either: 
20743 \end_layout
20744
20745 \begin_layout LyX-Code
20746
20747 \backslash
20748 LatexName[LatexParam]{\SpecialChar ldots
20749 }
20750 \end_layout
20751
20752 \begin_layout Standard
20753 or: 
20754 \end_layout
20755
20756 \begin_layout LyX-Code
20757
20758 \backslash
20759 begin{LatexName}[LatexParam] \SpecialChar ldots
20760  
20761 \backslash
20762 end{LatexName}
20763 \end_layout
20764
20765 \begin_layout Standard
20766 depending upon the \SpecialChar LaTeX
20767  type.
20768 \end_layout
20769
20770 \end_deeper
20771 \begin_layout Description
20772 \begin_inset Flex Code
20773 status collapsed
20774
20775 \begin_layout Plain Layout
20776 LeftDelim
20777 \end_layout
20778
20779 \end_inset
20780
20781  [
20782 \begin_inset Flex Code
20783 status collapsed
20784
20785 \begin_layout Plain Layout
20786 string
20787 \end_layout
20788
20789 \end_inset
20790
20791 ] A string that is put at the beginning of the layout content.
20792  A line break in the output can be indicated by 
20793 \begin_inset Flex Code
20794 status collapsed
20795
20796 \begin_layout Plain Layout
20797 <br/>
20798 \end_layout
20799
20800 \end_inset
20801
20802 .
20803 \end_layout
20804
20805 \begin_layout Description
20806 \begin_inset Flex Code
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810 LyxType
20811 \end_layout
20812
20813 \end_inset
20814
20815  Can be 
20816 \begin_inset Flex Code
20817 status collapsed
20818
20819 \begin_layout Plain Layout
20820 charstyle
20821 \end_layout
20822
20823 \end_inset
20824
20825
20826 \begin_inset Flex Code
20827 status collapsed
20828
20829 \begin_layout Plain Layout
20830 custom
20831 \end_layout
20832
20833 \end_inset
20834
20835
20836 \begin_inset Flex Code
20837 status collapsed
20838
20839 \begin_layout Plain Layout
20840 element
20841 \end_layout
20842
20843 \end_inset
20844
20845  or 
20846 \begin_inset Flex Code
20847 status collapsed
20848
20849 \begin_layout Plain Layout
20850 end
20851 \end_layout
20852
20853 \end_inset
20854
20855  (indicating a dummy definition ending definitions of charstyles, etc).
20856  This entry is required in and is only meaningful for Flex insets.
20857  Among other things, it determines on which menu this inset will appear.
20858  Setting 
20859 \begin_inset Flex Code
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863 LyxType
20864 \end_layout
20865
20866 \end_inset
20867
20868  to 
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 charstyle
20874 \end_layout
20875
20876 \end_inset
20877
20878  will automatically set 
20879 \begin_inset Flex Code
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883 MultiPar
20884 \end_layout
20885
20886 \end_inset
20887
20888  to false and 
20889 \begin_inset Flex Code
20890 status collapsed
20891
20892 \begin_layout Plain Layout
20893 ForcePlain
20894 \end_layout
20895
20896 \end_inset
20897
20898  to true.
20899  
20900 \begin_inset Flex Code
20901 status collapsed
20902
20903 \begin_layout Plain Layout
20904 MultiPar
20905 \end_layout
20906
20907 \end_inset
20908
20909  can be set to true, or 
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914 ForcePlain
20915 \end_layout
20916
20917 \end_inset
20918
20919  to false, for 
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 charstyle
20925 \end_layout
20926
20927 \end_inset
20928
20929  insets by setting it 
20930 \emph on
20931 after
20932 \emph default
20933  you set the 
20934 \begin_inset Flex Code
20935 status collapsed
20936
20937 \begin_layout Plain Layout
20938 LyxType
20939 \end_layout
20940
20941 \end_inset
20942
20943 .
20944 \change_inserted -712698321 1555575738
20945
20946 \end_layout
20947
20948 \begin_layout Description
20949
20950 \change_inserted -712698321 1555575844
20951 \begin_inset Flex Code
20952 status collapsed
20953
20954 \begin_layout Plain Layout
20955
20956 \change_inserted -712698321 1555575740
20957 MenuString
20958 \end_layout
20959
20960 \end_inset
20961
20962  
20963 \begin_inset Flex Code
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967
20968 \change_inserted -712698321 1555575740
20969 [string]
20970 \end_layout
20971
20972 \end_inset
20973
20974  A dedicated string for the menu.
20975  You can define an accelerator by appending the respective character to
20976  the string, divided by 
20977 \begin_inset Quotes eld
20978 \end_inset
20979
20980 |
20981 \begin_inset Quotes erd
20982 \end_inset
20983
20984  (e.
20985 \begin_inset space \thinspace{}
20986 \end_inset
20987
20988 g.
20989 \begin_inset space \space{}
20990 \end_inset
20991
20992
20993 \begin_inset Quotes eld
20994 \end_inset
20995
20996
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001
21002 \change_inserted -712698321 1555575781
21003 My Inset|M
21004 \end_layout
21005
21006 \end_inset
21007
21008
21009 \begin_inset Quotes erd
21010 \end_inset
21011
21012 ).
21013  This specification is optional.
21014  If it is not given the inset name as specified in the type declaration
21015  will be used instead for the menu.
21016 \change_unchanged
21017
21018 \end_layout
21019
21020 \begin_layout Description
21021 \begin_inset Flex Code
21022 status collapsed
21023
21024 \begin_layout Plain Layout
21025 MultiPar
21026 \end_layout
21027
21028 \end_inset
21029
21030  [
21031 \begin_inset Flex Code
21032 status collapsed
21033
21034 \begin_layout Plain Layout
21035
21036 \emph on
21037 0
21038 \end_layout
21039
21040 \end_inset
21041
21042 ,
21043 \begin_inset space \thinspace{}
21044 \end_inset
21045
21046
21047 \begin_inset Flex Code
21048 status collapsed
21049
21050 \begin_layout Plain Layout
21051 1
21052 \end_layout
21053
21054 \end_inset
21055
21056 ] Whether multiple paragraphs are permitted in this inset.
21057  This will also set 
21058 \begin_inset Flex Code
21059 status collapsed
21060
21061 \begin_layout Plain Layout
21062 CustomPars
21063 \end_layout
21064
21065 \end_inset
21066
21067  to the same value and 
21068 \begin_inset Flex Code
21069 status collapsed
21070
21071 \begin_layout Plain Layout
21072 ForcePlain
21073 \end_layout
21074
21075 \end_inset
21076
21077  to the opposite value.
21078  These can be reset to other values, if they are used 
21079 \emph on
21080 after
21081 \emph default
21082  
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087 MultiPar
21088 \end_layout
21089
21090 \end_inset
21091
21092 .
21093  Default is true.
21094 \end_layout
21095
21096 \begin_layout Description
21097 \begin_inset Flex Code
21098 status collapsed
21099
21100 \begin_layout Plain Layout
21101 NeedProtect
21102 \end_layout
21103
21104 \end_inset
21105
21106  [
21107 \begin_inset Flex Code
21108 status collapsed
21109
21110 \begin_layout Plain Layout
21111
21112 \emph on
21113 0
21114 \end_layout
21115
21116 \end_inset
21117
21118 ,
21119 \begin_inset space \thinspace{}
21120 \end_inset
21121
21122
21123 \begin_inset Flex Code
21124 status collapsed
21125
21126 \begin_layout Plain Layout
21127 1
21128 \end_layout
21129
21130 \end_inset
21131
21132 ] Whether fragile commands in this inset should be 
21133 \begin_inset Flex Code
21134 status collapsed
21135
21136 \begin_layout Plain Layout
21137
21138 \backslash
21139 protect
21140 \end_layout
21141
21142 \end_inset
21143
21144 'ed.
21145  (Note: This is 
21146 \emph on
21147 not
21148 \emph default
21149  whether the command should itself be protected.) Default is false.
21150 \change_inserted -712698321 1523633958
21151
21152 \end_layout
21153
21154 \begin_layout Description
21155
21156 \change_inserted -712698321 1552395786
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161
21162 \change_inserted -712698321 1523633961
21163 NeedCProtect
21164 \end_layout
21165
21166 \end_inset
21167
21168  [
21169 \begin_inset Flex Code
21170 status collapsed
21171
21172 \begin_layout Plain Layout
21173
21174 \change_inserted -712698321 1523633958
21175
21176 \emph on
21177 0
21178 \end_layout
21179
21180 \end_inset
21181
21182 ,
21183 \begin_inset space \thinspace{}
21184 \end_inset
21185
21186
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191
21192 \change_inserted -712698321 1523633958
21193 1
21194 \end_layout
21195
21196 \end_inset
21197
21198 ] This causes macros that contain this inset to be protected with 
21199 \begin_inset Flex Code
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203
21204 \change_inserted -712698321 1523634038
21205
21206 \backslash
21207 cprotect
21208 \change_unchanged
21209
21210 \end_layout
21211
21212 \end_inset
21213
21214  (cf.
21215  package 
21216 \family sans
21217 cprotect
21218 \family default
21219 ) if necessary and thus allows (some) verbatim stuff in macros.
21220  Default is false.
21221 \end_layout
21222
21223 \begin_layout Description
21224
21225 \change_inserted -712698321 1555579651
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230
21231 \change_inserted -712698321 1552395787
21232 NeedMBoxProtect
21233 \end_layout
21234
21235 \end_inset
21236
21237  [
21238 \begin_inset Flex Code
21239 status collapsed
21240
21241 \begin_layout Plain Layout
21242
21243 \change_inserted -712698321 1552395787
21244
21245 \emph on
21246 0
21247 \end_layout
21248
21249 \end_inset
21250
21251 ,
21252 \begin_inset space \thinspace{}
21253 \end_inset
21254
21255
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260
21261 \change_inserted -712698321 1552395787
21262 1
21263 \end_layout
21264
21265 \end_inset
21266
21267 ] Whether specific commands in this inset (such as 
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272
21273 \change_inserted -712698321 1552395787
21274
21275 \backslash
21276 cite
21277 \end_layout
21278
21279 \end_inset
21280
21281  and 
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286
21287 \change_inserted -712698321 1552395787
21288
21289 \backslash
21290 ref
21291 \end_layout
21292
21293 \end_inset
21294
21295 ) should be protected in an 
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300
21301 \change_inserted -712698321 1552395787
21302
21303 \backslash
21304 mbox
21305 \end_layout
21306
21307 \end_inset
21308
21309 .
21310  This is particularly needed for insets that draw on 
21311 \family sans
21312 ulem
21313 \family default
21314  or 
21315 \family sans
21316 soul
21317 \family default
21318  commands which parse their content in complex ways.
21319  Default is false.
21320 \end_layout
21321
21322 \begin_layout Description
21323
21324 \change_inserted -712698321 1555579742
21325 \begin_inset Flex Code
21326 status collapsed
21327
21328 \begin_layout Plain Layout
21329
21330 \change_inserted -712698321 1555579658
21331 NewlineCmd
21332 \end_layout
21333
21334 \end_inset
21335
21336  
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341
21342 \change_inserted -712698321 1555579651
21343 [string]
21344 \end_layout
21345
21346 \end_inset
21347
21348  Option to define a different command (from the default 
21349 \begin_inset Flex Code
21350 status collapsed
21351
21352 \begin_layout Plain Layout
21353
21354 \change_inserted -712698321 1555579742
21355
21356 \backslash
21357
21358 \backslash
21359
21360 \change_unchanged
21361
21362 \end_layout
21363
21364 \end_inset
21365
21366 ) to be used for line breaks.
21367  The initial backslash must not be specified.
21368 \change_unchanged
21369
21370 \end_layout
21371
21372 \begin_layout Description
21373 \begin_inset Flex Code
21374 status collapsed
21375
21376 \begin_layout Plain Layout
21377 NoInsetLayout
21378 \end_layout
21379
21380 \end_inset
21381
21382  [
21383 \begin_inset Flex Code
21384 status collapsed
21385
21386 \begin_layout Plain Layout
21387 <layout>
21388 \end_layout
21389
21390 \end_inset
21391
21392 ] Deletes an existing 
21393 \begin_inset Flex Code
21394 status collapsed
21395
21396 \begin_layout Plain Layout
21397 InsetLayout
21398 \end_layout
21399
21400 \end_inset
21401
21402 .
21403 \end_layout
21404
21405 \begin_layout Description
21406 \begin_inset Flex Code
21407 status collapsed
21408
21409 \begin_layout Plain Layout
21410 ObsoletedBy
21411 \end_layout
21412
21413 \end_inset
21414
21415  [
21416 \begin_inset Flex Code
21417 status collapsed
21418
21419 \begin_layout Plain Layout
21420 <layout>
21421 \end_layout
21422
21423 \end_inset
21424
21425 ] Name of an 
21426 \begin_inset Flex Code
21427 status collapsed
21428
21429 \begin_layout Plain Layout
21430 InsetLayout
21431 \end_layout
21432
21433 \end_inset
21434
21435  that has replaced this 
21436 \begin_inset Flex Code
21437 status collapsed
21438
21439 \begin_layout Plain Layout
21440 InsetLayout
21441 \end_layout
21442
21443 \end_inset
21444
21445 .
21446  This is used to rename an 
21447 \begin_inset Flex Code
21448 status collapsed
21449
21450 \begin_layout Plain Layout
21451 InsetLayout
21452 \end_layout
21453
21454 \end_inset
21455
21456 , while keeping backward compatibility.
21457 \change_inserted -712698321 1559491850
21458
21459 \end_layout
21460
21461 \begin_layout Description
21462
21463 \change_inserted -712698321 1559492002
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468
21469 \change_inserted -712698321 1559491854
21470 ParbreakIgnored
21471 \end_layout
21472
21473 \end_inset
21474
21475  [
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480
21481 \change_inserted -712698321 1559491850
21482
21483 \emph on
21484 0
21485 \end_layout
21486
21487 \end_inset
21488
21489 ,
21490 \begin_inset space \thinspace{}
21491 \end_inset
21492
21493
21494 \begin_inset Flex Code
21495 status collapsed
21496
21497 \begin_layout Plain Layout
21498
21499 \change_inserted -712698321 1559491850
21500 1
21501 \end_layout
21502
21503 \end_inset
21504
21505 ] If this is set to 
21506 \begin_inset Flex Code
21507 status collapsed
21508
21509 \begin_layout Plain Layout
21510
21511 \change_inserted -712698321 1559491881
21512 1
21513 \change_unchanged
21514
21515 \end_layout
21516
21517 \end_inset
21518
21519 , paragraph breaks will be ignored in the output.
21520  This might be useful for insets where the content should be alignable on
21521  different lines only in the \SpecialChar LyX
21522  workarea, without any effect in the output.
21523 \change_unchanged
21524
21525 \end_layout
21526
21527 \begin_layout Description
21528 \begin_inset Flex Code
21529 status collapsed
21530
21531 \begin_layout Plain Layout
21532 ParbreakIsNewline
21533 \end_layout
21534
21535 \end_inset
21536
21537  [
21538 \begin_inset Flex Code
21539 status collapsed
21540
21541 \begin_layout Plain Layout
21542
21543 \emph on
21544 0
21545 \end_layout
21546
21547 \end_inset
21548
21549 ,
21550 \begin_inset space \thinspace{}
21551 \end_inset
21552
21553
21554 \begin_inset Flex Code
21555 status collapsed
21556
21557 \begin_layout Plain Layout
21558 1
21559 \end_layout
21560
21561 \end_inset
21562
21563 ] As with paragraph styles, see 
21564 \begin_inset CommandInset ref
21565 LatexCommand ref
21566 reference "subsec:Paragraph-Styles"
21567
21568 \end_inset
21569
21570 .
21571  Default is false.
21572 \end_layout
21573
21574 \begin_layout Description
21575 \begin_inset Flex Code
21576 status collapsed
21577
21578 \begin_layout Plain Layout
21579 PassThru
21580 \end_layout
21581
21582 \end_inset
21583
21584  [
21585 \begin_inset Flex Code
21586 status collapsed
21587
21588 \begin_layout Plain Layout
21589
21590 \emph on
21591 0
21592 \end_layout
21593
21594 \end_inset
21595
21596 ,
21597 \begin_inset space \thinspace{}
21598 \end_inset
21599
21600
21601 \begin_inset Flex Code
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605 1
21606 \end_layout
21607
21608 \end_inset
21609
21610 ] As with paragraph styles, see 
21611 \begin_inset CommandInset ref
21612 LatexCommand ref
21613 reference "subsec:Paragraph-Styles"
21614
21615 \end_inset
21616
21617 .
21618  Default is false.
21619 \end_layout
21620
21621 \begin_layout Description
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626 Preamble
21627 \end_layout
21628
21629 \end_inset
21630
21631  As with paragraph styles, see 
21632 \begin_inset CommandInset ref
21633 LatexCommand ref
21634 reference "subsec:Paragraph-Styles"
21635
21636 \end_inset
21637
21638 .
21639 \end_layout
21640
21641 \begin_layout Description
21642 \begin_inset Flex Code
21643 status collapsed
21644
21645 \begin_layout Plain Layout
21646 RefPrefix
21647 \end_layout
21648
21649 \end_inset
21650
21651  [
21652 \begin_inset Flex Code
21653 status collapsed
21654
21655 \begin_layout Plain Layout
21656 string
21657 \end_layout
21658
21659 \end_inset
21660
21661 ] The prefix to use when creating labels referring to insets of this type.
21662  This allows the use of formatted references.
21663 \end_layout
21664
21665 \begin_layout Description
21666 \begin_inset Flex Code
21667 status collapsed
21668
21669 \begin_layout Plain Layout
21670 Requires
21671 \end_layout
21672
21673 \end_inset
21674
21675  [
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680 string
21681 \end_layout
21682
21683 \end_inset
21684
21685 ] As with paragraph styles, see 
21686 \begin_inset CommandInset ref
21687 LatexCommand ref
21688 reference "subsec:Paragraph-Styles"
21689
21690 \end_inset
21691
21692 .
21693 \end_layout
21694
21695 \begin_layout Description
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700 ResetArgs
21701 \end_layout
21702
21703 \end_inset
21704
21705  [
21706 \begin_inset Flex Code
21707 status collapsed
21708
21709 \begin_layout Plain Layout
21710
21711 \emph on
21712 0
21713 \end_layout
21714
21715 \end_inset
21716
21717 ,
21718 \begin_inset space \thinspace{}
21719 \end_inset
21720
21721
21722 \begin_inset Flex Code
21723 status collapsed
21724
21725 \begin_layout Plain Layout
21726 1
21727 \end_layout
21728
21729 \end_inset
21730
21731 ] Resets the \SpecialChar LaTeX
21732  arguments of this layout (as defined via the 
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 Argument
21738 \end_layout
21739
21740 \end_inset
21741
21742  tag).
21743  This is useful if you have copied a style via 
21744 \begin_inset Flex Code
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748 CopyStyle
21749 \end_layout
21750
21751 \end_inset
21752
21753 , but you do not want to inherit its (required and optional) arguments.
21754 \end_layout
21755
21756 \begin_layout Description
21757 \begin_inset Flex Code
21758 status collapsed
21759
21760 \begin_layout Plain Layout
21761 ResetsFont
21762 \end_layout
21763
21764 \end_inset
21765
21766  [
21767 \begin_inset Flex Code
21768 status collapsed
21769
21770 \begin_layout Plain Layout
21771 0
21772 \end_layout
21773
21774 \end_inset
21775
21776 ,
21777 \begin_inset space \thinspace{}
21778 \end_inset
21779
21780
21781 \begin_inset Flex Code
21782 status collapsed
21783
21784 \begin_layout Plain Layout
21785
21786 \emph on
21787 1
21788 \end_layout
21789
21790 \end_inset
21791
21792 ] Whether this inset should use the font of its surrounding environment
21793  or uses its own.
21794  Default is false: use the font of the surrounding environment.
21795 \end_layout
21796
21797 \begin_layout Description
21798 \begin_inset Flex Code
21799 status collapsed
21800
21801 \begin_layout Plain Layout
21802 RightDelim
21803 \end_layout
21804
21805 \end_inset
21806
21807  [
21808 \begin_inset Flex Code
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 string
21813 \end_layout
21814
21815 \end_inset
21816
21817 ] A string that is put at the end of the layout content.
21818  A line break in the output can be indicated by 
21819 \begin_inset Flex Code
21820 status collapsed
21821
21822 \begin_layout Plain Layout
21823 <br/>
21824 \end_layout
21825
21826 \end_inset
21827
21828 .
21829 \end_layout
21830
21831 \begin_layout Description
21832 \begin_inset Flex Code
21833 status collapsed
21834
21835 \begin_layout Plain Layout
21836 Spellcheck
21837 \end_layout
21838
21839 \end_inset
21840
21841  [
21842 \begin_inset Flex Code
21843 status collapsed
21844
21845 \begin_layout Plain Layout
21846 0
21847 \end_layout
21848
21849 \end_inset
21850
21851 ,
21852 \begin_inset space \thinspace{}
21853 \end_inset
21854
21855
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860
21861 \emph on
21862 1
21863 \end_layout
21864
21865 \end_inset
21866
21867 ] Allow spell-checking the contents of this inset.
21868  Default is true.
21869 \end_layout
21870
21871 \begin_layout Subsection
21872 Counters
21873 \begin_inset CommandInset label
21874 LatexCommand label
21875 name "subsec:Counters"
21876
21877 \end_inset
21878
21879
21880 \end_layout
21881
21882 \begin_layout Standard
21883 It is necessary to define the counters (
21884 \begin_inset Flex Noun
21885 status collapsed
21886
21887 \begin_layout Plain Layout
21888 chapter
21889 \end_layout
21890
21891 \end_inset
21892
21893
21894 \begin_inset Flex Noun
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 figure
21899 \end_layout
21900
21901 \end_inset
21902
21903 , \SpecialChar ldots
21904 ) in the text class itself.
21905  The standard counters are defined in the file 
21906 \begin_inset Flex Code
21907 status collapsed
21908
21909 \begin_layout Plain Layout
21910 stdcounters.inc
21911 \end_layout
21912
21913 \end_inset
21914
21915 , so you may have to do no more than add
21916 \end_layout
21917
21918 \begin_layout LyX-Code
21919 Input stdcounters.inc
21920 \end_layout
21921
21922 \begin_layout Standard
21923 to your layout file to get them to work.
21924  But if you want to define custom counters, then you can do so.
21925  The counter declaration must begin with:
21926 \end_layout
21927
21928 \begin_layout LyX-Code
21929 Counter CounterName
21930 \end_layout
21931
21932 \begin_layout Standard
21933 where of course `
21934 \begin_inset Flex Code
21935 status collapsed
21936
21937 \begin_layout Plain Layout
21938 CounterName
21939 \end_layout
21940
21941 \end_inset
21942
21943 ' is replaced by the name of the counter.
21944  And it must end with 
21945 \begin_inset Quotes eld
21946 \end_inset
21947
21948
21949 \begin_inset Flex Code
21950 status collapsed
21951
21952 \begin_layout Plain Layout
21953 End
21954 \end_layout
21955
21956 \end_inset
21957
21958
21959 \begin_inset Quotes erd
21960 \end_inset
21961
21962 .
21963  The following parameters can also be used:
21964 \end_layout
21965
21966 \begin_layout Description
21967 \begin_inset Flex Code
21968 status collapsed
21969
21970 \begin_layout Plain Layout
21971 InitialValue
21972 \end_layout
21973
21974 \end_inset
21975
21976  [
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 int=1
21982 \end_layout
21983
21984 \end_inset
21985
21986 ] Sets the initial value for the counter, to which it will be reset whenever
21987  that happens.
21988  Normally, one will want the default, 1.
21989 \end_layout
21990
21991 \begin_layout Description
21992 \begin_inset Flex Code
21993 status collapsed
21994
21995 \begin_layout Plain Layout
21996 LabelString
21997 \end_layout
21998
21999 \end_inset
22000
22001  [
22002 \begin_inset Flex Code
22003 status collapsed
22004
22005 \begin_layout Plain Layout
22006 string
22007 \end_layout
22008
22009 \end_inset
22010
22011 =
22012 \begin_inset Quotes erd
22013 \end_inset
22014
22015
22016 \begin_inset Quotes erd
22017 \end_inset
22018
22019 ] When defined, this string defines how the counter is displayed.
22020  Setting this value sets 
22021 \begin_inset Flex Code
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 LabelStringAppendix
22026 \end_layout
22027
22028 \end_inset
22029
22030  to the same value.
22031  The following special constructs can be used in the string:
22032 \end_layout
22033
22034 \begin_deeper
22035 \begin_layout Itemize
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040
22041 \backslash
22042 thecounter
22043 \end_layout
22044
22045 \end_inset
22046
22047  will be replaced by the expansion of the 
22048 \begin_inset Flex Code
22049 status collapsed
22050
22051 \begin_layout Plain Layout
22052 LabelString
22053 \end_layout
22054
22055 \end_inset
22056
22057  (or 
22058 \begin_inset Flex Code
22059 status collapsed
22060
22061 \begin_layout Plain Layout
22062 LabelStringAppendix
22063 \end_layout
22064
22065 \end_inset
22066
22067 ) of the counter 
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 counter
22073 \end_layout
22074
22075 \end_inset
22076
22077 .
22078  
22079 \end_layout
22080
22081 \begin_layout Itemize
22082 counter values can be expressed using \SpecialChar LaTeX
22083 -like macros
22084 \begin_inset Newline newline
22085 \end_inset
22086
22087
22088 \begin_inset Flex Code
22089 status collapsed
22090
22091 \begin_layout Plain Layout
22092
22093 \backslash
22094
22095 \emph on
22096 numbertype
22097 \emph default
22098 {
22099 \emph on
22100 counter
22101 \emph default
22102 }
22103 \end_layout
22104
22105 \end_inset
22106
22107 , where 
22108 \begin_inset Flex Code
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112
22113 \emph on
22114 numbertype
22115 \end_layout
22116
22117 \end_inset
22118
22119  can be:
22120 \begin_inset Foot
22121 status collapsed
22122
22123 \begin_layout Plain Layout
22124
22125 \family roman
22126 \series medium
22127 \shape up
22128 \size normal
22129 \emph off
22130 \bar no
22131 \noun off
22132 \color none
22133 Actually, the situation is a bit more complicated: any
22134 \family default
22135 \series default
22136 \shape default
22137 \emph default
22138 \bar default
22139  
22140 \size default
22141 \emph on
22142 \noun default
22143 \color inherit
22144 numbertype
22145 \family roman
22146 \series medium
22147 \shape up
22148 \size normal
22149 \emph off
22150 \bar no
22151 \noun off
22152  other than those described below will produce arabic numerals.
22153  It would not be surprising to see this change in the future.
22154 \end_layout
22155
22156 \end_inset
22157
22158  
22159 \begin_inset Flex Code
22160 status collapsed
22161
22162 \begin_layout Plain Layout
22163 arabic
22164 \end_layout
22165
22166 \end_inset
22167
22168 : 1, 2, 3,\SpecialChar ldots
22169
22170 \begin_inset Flex Code
22171 status collapsed
22172
22173 \begin_layout Plain Layout
22174 alph
22175 \end_layout
22176
22177 \end_inset
22178
22179  for lower-case letters: a, b, c, \SpecialChar ldots
22180
22181 \begin_inset Flex Code
22182 status collapsed
22183
22184 \begin_layout Plain Layout
22185 Alph
22186 \end_layout
22187
22188 \end_inset
22189
22190  for upper-case letters: A, B, C, \SpecialChar ldots
22191
22192 \begin_inset Flex Code
22193 status collapsed
22194
22195 \begin_layout Plain Layout
22196 roman
22197 \end_layout
22198
22199 \end_inset
22200
22201  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22202
22203 \begin_inset Flex Code
22204 status collapsed
22205
22206 \begin_layout Plain Layout
22207 Roman
22208 \end_layout
22209
22210 \end_inset
22211
22212  for upper-case roman numerals: I, II, III\SpecialChar ldots
22213
22214 \begin_inset Flex Code
22215 status collapsed
22216
22217 \begin_layout Plain Layout
22218 hebrew
22219 \end_layout
22220
22221 \end_inset
22222
22223  for hebrew numerals.
22224 \end_layout
22225
22226 \end_deeper
22227 \begin_layout Standard
22228 If LabelString is not defined, a default value is constructed as follows:
22229  if the counter has a master counter 
22230 \begin_inset Flex Code
22231 status collapsed
22232
22233 \begin_layout Plain Layout
22234 master
22235 \end_layout
22236
22237 \end_inset
22238
22239  (defined via 
22240 \begin_inset Flex Code
22241 status collapsed
22242
22243 \begin_layout Plain Layout
22244 Within
22245 \end_layout
22246
22247 \end_inset
22248
22249 ), the string
22250 \begin_inset Newline newline
22251 \end_inset
22252
22253
22254 \begin_inset Flex Code
22255 status collapsed
22256
22257 \begin_layout Plain Layout
22258
22259 \backslash
22260 themaster.
22261 \backslash
22262 arabic{counter}
22263 \end_layout
22264
22265 \end_inset
22266
22267  is used; otherwise the string 
22268 \begin_inset Flex Code
22269 status collapsed
22270
22271 \begin_layout Plain Layout
22272
22273 \backslash
22274 arabic{counter}
22275 \end_layout
22276
22277 \end_inset
22278
22279  is used.
22280 \end_layout
22281
22282 \begin_layout Description
22283 \begin_inset Flex Code
22284 status collapsed
22285
22286 \begin_layout Plain Layout
22287 LabelStringAppendix
22288 \end_layout
22289
22290 \end_inset
22291
22292  [
22293 \begin_inset Flex Code
22294 status collapsed
22295
22296 \begin_layout Plain Layout
22297 string
22298 \end_layout
22299
22300 \end_inset
22301
22302 =
22303 \begin_inset Quotes erd
22304 \end_inset
22305
22306
22307 \begin_inset Quotes erd
22308 \end_inset
22309
22310 ] Same as 
22311 \begin_inset Flex Code
22312 status collapsed
22313
22314 \begin_layout Plain Layout
22315 LabelString
22316 \end_layout
22317
22318 \end_inset
22319
22320 , but for use in the Appendix.
22321 \end_layout
22322
22323 \begin_layout Description
22324 \begin_inset Flex Code
22325 status collapsed
22326
22327 \begin_layout Plain Layout
22328 PrettyFormat
22329 \end_layout
22330
22331 \end_inset
22332
22333  [
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 string
22339 \end_layout
22340
22341 \end_inset
22342
22343 =
22344 \begin_inset Quotes erd
22345 \end_inset
22346
22347
22348 \begin_inset Quotes erd
22349 \end_inset
22350
22351 ] A format for use with formatted references to this counter.
22352  For example, one might want to have references to section numbers appear
22353  as 
22354 \begin_inset Quotes eld
22355 \end_inset
22356
22357 Section 2.4
22358 \begin_inset Quotes erd
22359 \end_inset
22360
22361 .
22362  The string should contain 
22363 \begin_inset Quotes eld
22364 \end_inset
22365
22366 ##
22367 \begin_inset Quotes erd
22368 \end_inset
22369
22370 .
22371  This will be replaced by the counter number itself.
22372  So, for sections, it would be: Section ##.
22373 \end_layout
22374
22375 \begin_layout Description
22376 \begin_inset Flex Code
22377 status collapsed
22378
22379 \begin_layout Plain Layout
22380 Within
22381 \end_layout
22382
22383 \end_inset
22384
22385  [
22386 \begin_inset Flex Code
22387 status collapsed
22388
22389 \begin_layout Plain Layout
22390 string
22391 \end_layout
22392
22393 \end_inset
22394
22395 =
22396 \begin_inset Quotes erd
22397 \end_inset
22398
22399
22400 \begin_inset Quotes erd
22401 \end_inset
22402
22403 ] If this is set to the name of another counter, the present counter will
22404  be reset every time the other one is increased.
22405  For example, 
22406 \begin_inset Flex Code
22407 status collapsed
22408
22409 \begin_layout Plain Layout
22410 subsection
22411 \end_layout
22412
22413 \end_inset
22414
22415  is numbered inside 
22416 \begin_inset Flex Code
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420 section
22421 \end_layout
22422
22423 \end_inset
22424
22425 .
22426 \end_layout
22427
22428 \begin_layout Subsection
22429 Font description
22430 \begin_inset CommandInset label
22431 LatexCommand label
22432 name "subsec:Font-description"
22433
22434 \end_inset
22435
22436
22437 \end_layout
22438
22439 \begin_layout Standard
22440 A font description looks like this:
22441 \end_layout
22442
22443 \begin_layout LyX-Code
22444 Font 
22445 \family roman
22446 \emph on
22447 or
22448 \family default
22449 \emph default
22450  LabelFont
22451 \emph on
22452  
22453 \family roman
22454 or
22455 \family default
22456 \emph default
22457  DefaultFont
22458 \end_layout
22459
22460 \begin_layout LyX-Code
22461  ...
22462 \end_layout
22463
22464 \begin_layout LyX-Code
22465 EndFont
22466 \end_layout
22467
22468 \begin_layout Standard
22469 The following commands are available:
22470 \end_layout
22471
22472 \begin_layout Description
22473 \begin_inset Flex Code
22474 status collapsed
22475
22476 \begin_layout Plain Layout
22477 Color
22478 \end_layout
22479
22480 \end_inset
22481
22482  [
22483 \begin_inset Flex Code
22484 status collapsed
22485
22486 \begin_layout Plain Layout
22487
22488 \emph on
22489 none
22490 \end_layout
22491
22492 \end_inset
22493
22494
22495 \begin_inset Flex Code
22496 status collapsed
22497
22498 \begin_layout Plain Layout
22499 black
22500 \end_layout
22501
22502 \end_inset
22503
22504
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 white
22510 \end_layout
22511
22512 \end_inset
22513
22514
22515 \begin_inset Flex Code
22516 status collapsed
22517
22518 \begin_layout Plain Layout
22519 red
22520 \end_layout
22521
22522 \end_inset
22523
22524
22525 \begin_inset Flex Code
22526 status collapsed
22527
22528 \begin_layout Plain Layout
22529 green
22530 \end_layout
22531
22532 \end_inset
22533
22534
22535 \begin_inset Flex Code
22536 status collapsed
22537
22538 \begin_layout Plain Layout
22539 blue
22540 \end_layout
22541
22542 \end_inset
22543
22544
22545 \begin_inset Flex Code
22546 status collapsed
22547
22548 \begin_layout Plain Layout
22549 cyan
22550 \end_layout
22551
22552 \end_inset
22553
22554
22555 \begin_inset Flex Code
22556 status collapsed
22557
22558 \begin_layout Plain Layout
22559 magenta
22560 \end_layout
22561
22562 \end_inset
22563
22564
22565 \begin_inset Flex Code
22566 status collapsed
22567
22568 \begin_layout Plain Layout
22569 yellow
22570 \end_layout
22571
22572 \end_inset
22573
22574
22575 \begin_inset Flex Code
22576 status collapsed
22577
22578 \begin_layout Plain Layout
22579 brown
22580 \end_layout
22581
22582 \end_inset
22583
22584
22585 \begin_inset Flex Code
22586 status collapsed
22587
22588 \begin_layout Plain Layout
22589 darkgray
22590 \end_layout
22591
22592 \end_inset
22593
22594
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599 gray
22600 \end_layout
22601
22602 \end_inset
22603
22604
22605 \begin_inset Flex Code
22606 status collapsed
22607
22608 \begin_layout Plain Layout
22609 lightgray
22610 \end_layout
22611
22612 \end_inset
22613
22614
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619 lime
22620 \end_layout
22621
22622 \end_inset
22623
22624
22625 \begin_inset Flex Code
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 orange
22630 \end_layout
22631
22632 \end_inset
22633
22634
22635 \begin_inset Flex Code
22636 status collapsed
22637
22638 \begin_layout Plain Layout
22639 olive
22640 \end_layout
22641
22642 \end_inset
22643
22644
22645 \begin_inset Flex Code
22646 status collapsed
22647
22648 \begin_layout Plain Layout
22649 pink
22650 \end_layout
22651
22652 \end_inset
22653
22654
22655 \begin_inset Flex Code
22656 status collapsed
22657
22658 \begin_layout Plain Layout
22659 purple
22660 \end_layout
22661
22662 \end_inset
22663
22664
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 teal
22670 \end_layout
22671
22672 \end_inset
22673
22674
22675 \begin_inset Flex Code
22676 status collapsed
22677
22678 \begin_layout Plain Layout
22679 violet
22680 \end_layout
22681
22682 \end_inset
22683
22684 ]
22685 \end_layout
22686
22687 \begin_layout Description
22688 \begin_inset Flex Code
22689 status collapsed
22690
22691 \begin_layout Plain Layout
22692 Family
22693 \end_layout
22694
22695 \end_inset
22696
22697  [
22698 \begin_inset Flex Code
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702
22703 \emph on
22704 Roman
22705 \end_layout
22706
22707 \end_inset
22708
22709
22710 \begin_inset Flex Code
22711 status collapsed
22712
22713 \begin_layout Plain Layout
22714 Sans
22715 \end_layout
22716
22717 \end_inset
22718
22719
22720 \begin_inset Flex Code
22721 status collapsed
22722
22723 \begin_layout Plain Layout
22724 Typewriter
22725 \end_layout
22726
22727 \end_inset
22728
22729 ]
22730 \end_layout
22731
22732 \begin_layout Description
22733 \begin_inset Flex Code
22734 status collapsed
22735
22736 \begin_layout Plain Layout
22737 Misc
22738 \end_layout
22739
22740 \end_inset
22741
22742  [
22743 \begin_inset Flex Code
22744 status collapsed
22745
22746 \begin_layout Plain Layout
22747 string
22748 \end_layout
22749
22750 \end_inset
22751
22752 ] Valid arguments are: 
22753 \begin_inset Flex Code
22754 status collapsed
22755
22756 \begin_layout Plain Layout
22757 emph
22758 \end_layout
22759
22760 \end_inset
22761
22762
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 noun
22768 \end_layout
22769
22770 \end_inset
22771
22772
22773 \begin_inset Flex Code
22774 status collapsed
22775
22776 \begin_layout Plain Layout
22777 strikeout
22778 \end_layout
22779
22780 \end_inset
22781
22782
22783 \begin_inset Flex Code
22784 status collapsed
22785
22786 \begin_layout Plain Layout
22787 underbar
22788 \end_layout
22789
22790 \end_inset
22791
22792
22793 \begin_inset Flex Code
22794 status collapsed
22795
22796 \begin_layout Plain Layout
22797 uuline
22798 \end_layout
22799
22800 \end_inset
22801
22802
22803 \begin_inset Flex Code
22804 status collapsed
22805
22806 \begin_layout Plain Layout
22807 uwave
22808 \end_layout
22809
22810 \end_inset
22811
22812
22813 \begin_inset Flex Code
22814 status collapsed
22815
22816 \begin_layout Plain Layout
22817 no_emph
22818 \end_layout
22819
22820 \end_inset
22821
22822
22823 \begin_inset Flex Code
22824 status collapsed
22825
22826 \begin_layout Plain Layout
22827 no_noun
22828 \end_layout
22829
22830 \end_inset
22831
22832
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 no_strikeout
22838 \end_layout
22839
22840 \end_inset
22841
22842
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 no_bar
22848 \end_layout
22849
22850 \end_inset
22851
22852
22853 \begin_inset Flex Code
22854 status collapsed
22855
22856 \begin_layout Plain Layout
22857 no_uuline
22858 \end_layout
22859
22860 \end_inset
22861
22862  and 
22863 \begin_inset Flex Code
22864 status collapsed
22865
22866 \begin_layout Plain Layout
22867 no_uwave
22868 \end_layout
22869
22870 \end_inset
22871
22872 .
22873  Each of these turns on or off the corresponding attribute.
22874  For example, 
22875 \begin_inset Flex Code
22876 status collapsed
22877
22878 \begin_layout Plain Layout
22879 emph
22880 \end_layout
22881
22882 \end_inset
22883
22884  turns on emphasis, and 
22885 \begin_inset Flex Code
22886 status collapsed
22887
22888 \begin_layout Plain Layout
22889 no_emph
22890 \end_layout
22891
22892 \end_inset
22893
22894  turns it off.
22895  
22896 \begin_inset Newline newline
22897 \end_inset
22898
22899 If the latter seems puzzling, remember that the font settings for the present
22900  context are generally inherited from the surrounding context.
22901  So 
22902 \begin_inset Flex Code
22903 status collapsed
22904
22905 \begin_layout Plain Layout
22906 no_emph
22907 \end_layout
22908
22909 \end_inset
22910
22911  would turn off the emphasis that was anyway in effect, say, in a theorem
22912  environment.
22913 \end_layout
22914
22915 \begin_layout Description
22916 \begin_inset Flex Code
22917 status collapsed
22918
22919 \begin_layout Plain Layout
22920 Series
22921 \end_layout
22922
22923 \end_inset
22924
22925  [
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930
22931 \emph on
22932 Medium
22933 \end_layout
22934
22935 \end_inset
22936
22937
22938 \begin_inset Flex Code
22939 status collapsed
22940
22941 \begin_layout Plain Layout
22942 Bold
22943 \end_layout
22944
22945 \end_inset
22946
22947
22948 \end_layout
22949
22950 \begin_layout Description
22951 \begin_inset Flex Code
22952 status collapsed
22953
22954 \begin_layout Plain Layout
22955 Shape
22956 \end_layout
22957
22958 \end_inset
22959
22960  [
22961 \begin_inset Flex Code
22962 status collapsed
22963
22964 \begin_layout Plain Layout
22965
22966 \emph on
22967 Up
22968 \end_layout
22969
22970 \end_inset
22971
22972
22973 \begin_inset Flex Code
22974 status collapsed
22975
22976 \begin_layout Plain Layout
22977 Italic
22978 \end_layout
22979
22980 \end_inset
22981
22982
22983 \begin_inset Flex Code
22984 status collapsed
22985
22986 \begin_layout Plain Layout
22987 SmallCaps
22988 \end_layout
22989
22990 \end_inset
22991
22992
22993 \begin_inset Flex Code
22994 status collapsed
22995
22996 \begin_layout Plain Layout
22997 Slanted
22998 \end_layout
22999
23000 \end_inset
23001
23002
23003 \end_layout
23004
23005 \begin_layout Description
23006 \begin_inset Flex Code
23007 status collapsed
23008
23009 \begin_layout Plain Layout
23010 Size
23011 \end_layout
23012
23013 \end_inset
23014
23015  [
23016 \begin_inset Flex Code
23017 status collapsed
23018
23019 \begin_layout Plain Layout
23020 tiny
23021 \end_layout
23022
23023 \end_inset
23024
23025
23026 \begin_inset Flex Code
23027 status collapsed
23028
23029 \begin_layout Plain Layout
23030 small
23031 \end_layout
23032
23033 \end_inset
23034
23035
23036 \begin_inset Flex Code
23037 status collapsed
23038
23039 \begin_layout Plain Layout
23040
23041 \emph on
23042 normal
23043 \end_layout
23044
23045 \end_inset
23046
23047
23048 \begin_inset Flex Code
23049 status collapsed
23050
23051 \begin_layout Plain Layout
23052 large
23053 \end_layout
23054
23055 \end_inset
23056
23057
23058 \begin_inset Flex Code
23059 status collapsed
23060
23061 \begin_layout Plain Layout
23062 larger
23063 \end_layout
23064
23065 \end_inset
23066
23067
23068 \begin_inset Flex Code
23069 status collapsed
23070
23071 \begin_layout Plain Layout
23072 largest
23073 \end_layout
23074
23075 \end_inset
23076
23077
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 huge
23083 \end_layout
23084
23085 \end_inset
23086
23087
23088 \begin_inset Flex Code
23089 status collapsed
23090
23091 \begin_layout Plain Layout
23092 giant
23093 \end_layout
23094
23095 \end_inset
23096
23097 ]
23098 \end_layout
23099
23100 \begin_layout Subsection
23101 \begin_inset CommandInset label
23102 LatexCommand label
23103 name "subsec:Citation-engine-description"
23104
23105 \end_inset
23106
23107 Cite engine description
23108 \end_layout
23109
23110 \begin_layout Standard
23111 The 
23112 \begin_inset Flex Code
23113 status collapsed
23114
23115 \begin_layout Plain Layout
23116 CiteEngine
23117 \end_layout
23118
23119 \end_inset
23120
23121  blocks, as used mainly in cite engine files (see 
23122 \begin_inset CommandInset ref
23123 LatexCommand ref
23124 reference "subsec:Cite-Engine-Files"
23125 plural "false"
23126 caps "false"
23127 noprefix "false"
23128
23129 \end_inset
23130
23131 ), define the citation commands provided by a specific 
23132 \begin_inset Quotes eld
23133 \end_inset
23134
23135 cite engine
23136 \begin_inset Quotes erd
23137 \end_inset
23138
23139 .
23140  A cite engine, in \SpecialChar LyX
23141  terms, is way specific way to format citations, using
23142  numbers, author names and/or years.
23143  Currently, \SpecialChar LyX
23144  supports three such engine types, namely:
23145 \end_layout
23146
23147 \begin_layout Enumerate
23148 \begin_inset Flex Code
23149 status collapsed
23150
23151 \begin_layout Plain Layout
23152 default
23153 \end_layout
23154
23155 \end_inset
23156
23157 : the default Bib\SpecialChar TeX
23158  way to format citations, a simple numeric style (e.
23159 \begin_inset space \thinspace{}
23160 \end_inset
23161
23162 g., 
23163 \begin_inset Quotes eld
23164 \end_inset
23165
23166 [1]
23167 \begin_inset Quotes erd
23168 \end_inset
23169
23170 )
23171 \end_layout
23172
23173 \begin_layout Enumerate
23174 \begin_inset Flex Code
23175 status collapsed
23176
23177 \begin_layout Plain Layout
23178 authoryear
23179 \end_layout
23180
23181 \end_inset
23182
23183 : Harvard-styled citations using author names and publication year (e.
23184 \begin_inset space \thinspace{}
23185 \end_inset
23186
23187 g., 
23188 \begin_inset Quotes eld
23189 \end_inset
23190
23191 Smith and Miller (2017b)
23192 \begin_inset Quotes erd
23193 \end_inset
23194
23195 )
23196 \end_layout
23197
23198 \begin_layout Enumerate
23199 \begin_inset Flex Code
23200 status collapsed
23201
23202 \begin_layout Plain Layout
23203 numerical
23204 \end_layout
23205
23206 \end_inset
23207
23208 : extended numerical citations that also allow for author or title next
23209  to the number (e.
23210 \begin_inset space \thinspace{}
23211 \end_inset
23212
23213 g., 
23214 \begin_inset Quotes eld
23215 \end_inset
23216
23217 Smith and Miller [1]
23218 \begin_inset Quotes erd
23219 \end_inset
23220
23221 )
23222 \end_layout
23223
23224 \begin_layout Standard
23225 \begin_inset Flex Code
23226 status collapsed
23227
23228 \begin_layout Plain Layout
23229 CiteEngine
23230 \end_layout
23231
23232 \end_inset
23233
23234  blocks look like this:
23235 \end_layout
23236
23237 \begin_layout LyX-Code
23238 CiteEngine default
23239 \end_layout
23240
23241 \begin_layout LyX-Code
23242  cite
23243 \end_layout
23244
23245 \begin_layout LyX-Code
23246  Citep*[][]
23247 \end_layout
23248
23249 \begin_layout LyX-Code
23250  citeyearpar[][]=parencite*
23251 \end_layout
23252
23253 \begin_layout LyX-Code
23254  ...
23255 \end_layout
23256
23257 \begin_layout LyX-Code
23258 End
23259 \end_layout
23260
23261 \begin_layout Standard
23262 The tag following 
23263 \begin_inset Flex Code
23264 status collapsed
23265
23266 \begin_layout Plain Layout
23267 CiteEngine
23268 \end_layout
23269
23270 \end_inset
23271
23272  denotes the engine.
23273  The individual lines respectively define a cite command or cite command
23274  paradigm supported by this engine.
23275  The line can be as simple as a cite command that is used both to name the
23276  respective \SpecialChar LyX
23277  command and the \SpecialChar LaTeX
23278  output or more complex in order to differentiate
23279  things.
23280  The full syntax is:
23281 \end_layout
23282
23283 \begin_layout LyX-Code
23284 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23285 \end_layout
23286
23287 \begin_layout Itemize
23288 \begin_inset Flex Code
23289 status collapsed
23290
23291 \begin_layout Plain Layout
23292 LyXName
23293 \end_layout
23294
23295 \end_inset
23296
23297 : The name as used in the 
23298 \begin_inset Flex Code
23299 status collapsed
23300
23301 \begin_layout Plain Layout
23302 *.lyx
23303 \end_layout
23304
23305 \end_inset
23306
23307  file.
23308 \end_layout
23309
23310 \begin_deeper
23311 \begin_layout Standard
23312 For portability reasons, we try to use the same name for same-formatted
23313  commands in different cite packages (thus many names stem from natbib,
23314  and thus we need to differentiate a 
23315 \begin_inset Flex Code
23316 status collapsed
23317
23318 \begin_layout Plain Layout
23319 latexcmd
23320 \end_layout
23321
23322 \end_inset
23323
23324  sometimes, if the \SpecialChar LaTeX
23325  command names differ).
23326 \end_layout
23327
23328 \end_deeper
23329 \begin_layout Itemize
23330 \begin_inset Flex Code
23331 status collapsed
23332
23333 \begin_layout Plain Layout
23334 alias
23335 \end_layout
23336
23337 \end_inset
23338
23339 : a (comma-separated) list of commands that fall back to the given 
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344 LyXName
23345 \end_layout
23346
23347 \end_inset
23348
23349  in the current engine.
23350  This eases the switch of citation packages and engines.
23351  The 
23352 \begin_inset Flex Code
23353 status collapsed
23354
23355 \begin_layout Plain Layout
23356 alias
23357 \end_layout
23358
23359 \end_inset
23360
23361  can be compared to 
23362 \begin_inset Flex Code
23363 status collapsed
23364
23365 \begin_layout Plain Layout
23366 ObsoletedBy
23367 \end_layout
23368
23369 \end_inset
23370
23371  in layout definitions.
23372 \end_layout
23373
23374 \begin_layout Itemize
23375 \begin_inset Flex Code
23376 status collapsed
23377
23378 \begin_layout Plain Layout
23379 latexcmd
23380 \end_layout
23381
23382 \end_inset
23383
23384 : The actual \SpecialChar LaTeX
23385  command that is output.
23386  
23387 \end_layout
23388
23389 \begin_layout Standard
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394 Alias
23395 \end_layout
23396
23397 \end_inset
23398
23399  and 
23400 \begin_inset Flex Code
23401 status collapsed
23402
23403 \begin_layout Plain Layout
23404 latexcmd
23405 \end_layout
23406
23407 \end_inset
23408
23409  are optional.
23410  If no 
23411 \begin_inset Flex Code
23412 status collapsed
23413
23414 \begin_layout Plain Layout
23415 latexcmd
23416 \end_layout
23417
23418 \end_inset
23419
23420  is given, the 
23421 \begin_inset Flex Code
23422 status collapsed
23423
23424 \begin_layout Plain Layout
23425 LyXName
23426 \end_layout
23427
23428 \end_inset
23429
23430  will be output to \SpecialChar LaTeX
23431 .
23432 \end_layout
23433
23434 \begin_layout Standard
23435 Note further:
23436 \end_layout
23437
23438 \begin_layout Itemize
23439 Capitalization indicates that the command also has a capitalized form (
23440 \begin_inset Flex Code
23441 status collapsed
23442
23443 \begin_layout Plain Layout
23444
23445 \backslash
23446 Latexcmd
23447 \end_layout
23448
23449 \end_inset
23450
23451  vs.
23452  
23453 \begin_inset Flex Code
23454 status collapsed
23455
23456 \begin_layout Plain Layout
23457
23458 \backslash
23459 latexcmd
23460 \end_layout
23461
23462 \end_inset
23463
23464 ).
23465  These usually enforce up-casing of name prefixes (
23466 \emph on
23467 von Goethe
23468 \emph default
23469  
23470 \begin_inset Formula $\Rightarrow$
23471 \end_inset
23472
23473  
23474 \emph on
23475 Von Goethe
23476 \emph default
23477 ).
23478 \end_layout
23479
23480 \begin_layout Itemize
23481 Brackets 
23482 \begin_inset Flex Code
23483 status collapsed
23484
23485 \begin_layout Plain Layout
23486 []
23487 \end_layout
23488
23489 \end_inset
23490
23491  indicate the number of optional arguments (there can be 0–2).
23492 \end_layout
23493
23494 \begin_layout Itemize
23495 A star 
23496 \begin_inset Flex Code
23497 status collapsed
23498
23499 \begin_layout Plain Layout
23500 *
23501 \end_layout
23502
23503 \end_inset
23504
23505  indicates there is a starred version of the command (
23506 \begin_inset Flex Code
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510
23511 \backslash
23512 latexcmd*
23513 \end_layout
23514
23515 \end_inset
23516
23517  vs.
23518  
23519 \begin_inset Flex Code
23520 status collapsed
23521
23522 \begin_layout Plain Layout
23523
23524 \backslash
23525 latexcmd
23526 \end_layout
23527
23528 \end_inset
23529
23530 ).
23531  
23532 \end_layout
23533
23534 \begin_deeper
23535 \begin_layout Standard
23536 By default, the starred version means: Output all authors even if it should
23537  be shortened with 
23538 \begin_inset Quotes eld
23539 \end_inset
23540
23541 et al.
23542 \begin_inset Quotes erd
23543 \end_inset
23544
23545  due to the 
23546 \begin_inset Flex Code
23547 status collapsed
23548
23549 \begin_layout Plain Layout
23550 MaxCiteNames
23551 \end_layout
23552
23553 \end_inset
23554
23555  threshold.
23556 \end_layout
23557
23558 \begin_layout Standard
23559 If the star has a different meaning for a given command, it can be specified
23560  in angle brackets: 
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 <!_stardesc!_stardesctooltip>
23566 \end_layout
23567
23568 \end_inset
23569
23570 .
23571  Maximal two translatable macro keywords, marked by the prefix 
23572 \begin_inset Flex Code
23573 status collapsed
23574
23575 \begin_layout Plain Layout
23576 !_
23577 \end_layout
23578
23579 \end_inset
23580
23581 , can be given.
23582  The first points to the string that replaces the 
23583 \begin_inset Quotes eld
23584 \end_inset
23585
23586 Full aut&hor list
23587 \begin_inset Quotes erd
23588 \end_inset
23589
23590  checkbox label in the citation dialog, the second one to an optional tool
23591  tip for this checkbox.
23592  
23593 \end_layout
23594
23595 \begin_layout Standard
23596 Note that these two macros have to be defined in a 
23597 \begin_inset Flex Code
23598 status collapsed
23599
23600 \begin_layout Plain Layout
23601 CiteFormat
23602 \end_layout
23603
23604 \end_inset
23605
23606  (see next section), dropping the 
23607 \begin_inset Flex Code
23608 status collapsed
23609
23610 \begin_layout Plain Layout
23611 !
23612 \end_layout
23613
23614 \end_inset
23615
23616  from the prefix, like this: 
23617 \end_layout
23618
23619 \begin_layout LyX-Code
23620 _stardesc Sta&rred command label
23621 \end_layout
23622
23623 \begin_layout LyX-Code
23624 _stardesctooltip Tooltip for the starred command checkbox.
23625 \end_layout
23626
23627 \end_deeper
23628 \begin_layout Itemize
23629 A dollar sign 
23630 \begin_inset Flex Code
23631 status collapsed
23632
23633 \begin_layout Plain Layout
23634 $
23635 \end_layout
23636
23637 \end_inset
23638
23639  indicates that this command features 
23640 \begin_inset Quotes eld
23641 \end_inset
23642
23643 qualified citation lists
23644 \begin_inset Quotes erd
23645 \end_inset
23646
23647 .
23648  This is a 
23649 \family sans
23650 Biblatex
23651 \family default
23652 -specific feature for multi-reference citations where an individual pre-
23653  and postnote can be given to each reference in the list.
23654  Please refer to the 
23655 \family sans
23656 Biblatex
23657 \family default
23658  manual for details.
23659 \change_inserted -712698321 1526898670
23660
23661 \end_layout
23662
23663 \begin_layout Standard
23664
23665 \change_inserted -712698321 1526899524
23666 If you want to add a cite command to a cite engine (e.
23667 \begin_inset space \thinspace{}
23668 \end_inset
23669
23670 g., add a specific command provided by a class), you can use 
23671 \begin_inset Flex Code
23672 status collapsed
23673
23674 \begin_layout Plain Layout
23675
23676 \change_inserted -712698321 1526898768
23677 AddToCiteEngine <engine type> \SpecialChar ldots
23678  End
23679 \change_unchanged
23680
23681 \end_layout
23682
23683 \end_inset
23684
23685 .
23686  Note that only cite commands that do not exist yet are added.
23687 \change_unchanged
23688
23689 \end_layout
23690
23691 \begin_layout Subsection
23692 \begin_inset CommandInset label
23693 LatexCommand label
23694 name "subsec:Citation-format-description"
23695
23696 \end_inset
23697
23698 Cite format description
23699 \end_layout
23700
23701 \begin_layout Standard
23702 The 
23703 \begin_inset Flex Code
23704 status collapsed
23705
23706 \begin_layout Plain Layout
23707 CiteFormat
23708 \end_layout
23709
23710 \end_inset
23711
23712  blocks are used to describe how bibliographic information should be displayed,
23713  both within \SpecialChar LyX
23714  itself (in the citation dialog and in tooltips, for example)
23715  and in XHTML output.
23716  Such a block might look like this:
23717 \end_layout
23718
23719 \begin_layout LyX-Code
23720 CiteFormat
23721 \end_layout
23722
23723 \begin_layout LyX-Code
23724  article ...
23725 \end_layout
23726
23727 \begin_layout LyX-Code
23728  book ...
23729 \end_layout
23730
23731 \begin_layout LyX-Code
23732 End
23733 \end_layout
23734
23735 \begin_layout Standard
23736 or
23737 \end_layout
23738
23739 \begin_layout LyX-Code
23740 CiteFormat
23741 \end_layout
23742
23743 \begin_layout LyX-Code
23744  cite ...
23745 \end_layout
23746
23747 \begin_layout LyX-Code
23748  citet*[][] ...
23749 \end_layout
23750
23751 \begin_layout LyX-Code
23752 End
23753 \end_layout
23754
23755 \begin_layout Standard
23756 In the first case, the individual lines define how the bibliographic information
23757  associated with an article or book, respectively, is to be displayed, and
23758  such a definition can be given for any 
23759 \begin_inset Quotes els
23760 \end_inset
23761
23762 entry type
23763 \begin_inset Quotes ers
23764 \end_inset
23765
23766  that might be present in a Bib\SpecialChar TeX
23767  file.
23768  \SpecialChar LyX
23769  defines a default format in the source code that will be used if no specific
23770  definition has been given.
23771  \SpecialChar LyX
23772  predefines several formats in the file 
23773 \begin_inset Flex Code
23774 status collapsed
23775
23776 \begin_layout Plain Layout
23777 stdciteformats.inc
23778 \end_layout
23779
23780 \end_inset
23781
23782 , which is included in most of \SpecialChar LyX
23783 's document classes.
23784 \end_layout
23785
23786 \begin_layout Standard
23787 In the second case, the lines define how a specific citation command (in
23788  the example 
23789 \begin_inset Flex Code
23790 status collapsed
23791
23792 \begin_layout Plain Layout
23793
23794 \backslash
23795 cite
23796 \end_layout
23797
23798 \end_inset
23799
23800
23801 \begin_inset Flex Code
23802 status collapsed
23803
23804 \begin_layout Plain Layout
23805
23806 \backslash
23807 citet
23808 \end_layout
23809
23810 \end_inset
23811
23812 ) is to be displayed on the citation inset label, in the citation dialog,
23813  menu or XHTML output.
23814  \SpecialChar LyX
23815  defines such formats for the citation style variants it supports via 
23816 \family sans
23817 Document\SpecialChar menuseparator
23818 Setting\SpecialChar menuseparator
23819 Bibliography\SpecialChar ldots
23820
23821 \family default
23822  in specific 
23823 \begin_inset Flex Code
23824 status collapsed
23825
23826 \begin_layout Plain Layout
23827 *.citeengine
23828 \end_layout
23829
23830 \end_inset
23831
23832  files that are shipped with \SpecialChar LyX
23833  (see 
23834 \begin_inset CommandInset ref
23835 LatexCommand ref
23836 reference "subsec:Cite-Engine-Files"
23837 plural "false"
23838 caps "false"
23839 noprefix "false"
23840
23841 \end_inset
23842
23843 ).
23844 \end_layout
23845
23846 \begin_layout Standard
23847 The definitions use a simple language that allows Bib\SpecialChar TeX
23848  keys to be replaced
23849  with their values.
23850  Keys should be enclosed in 
23851 \begin_inset Flex Code
23852 status collapsed
23853
23854 \begin_layout Plain Layout
23855 %
23856 \end_layout
23857
23858 \end_inset
23859
23860  signs, e.g.: 
23861 \begin_inset Flex Code
23862 status collapsed
23863
23864 \begin_layout Plain Layout
23865 %author%
23866 \end_layout
23867
23868 \end_inset
23869
23870 .
23871  So a simple definition might look like this:
23872 \end_layout
23873
23874 \begin_layout LyX-Code
23875 misc %author%, 
23876 \begin_inset Quotes eld
23877 \end_inset
23878
23879 %title%
23880 \begin_inset Quotes erd
23881 \end_inset
23882
23883 .
23884 \end_layout
23885
23886 \begin_layout Standard
23887 This would print the author, followed by a comma, followed by the title,
23888  in quotes, followed by a period.
23889 \end_layout
23890
23891 \begin_layout Standard
23892 Of course, sometimes you may want to print a key only if it exists.
23893  This can be done by using a conditional construction, such as: 
23894 \begin_inset Flex Code
23895 status collapsed
23896
23897 \begin_layout Plain Layout
23898 {%volume%[[vol.
23899 \begin_inset space ~
23900 \end_inset
23901
23902 %volume%]]}
23903 \end_layout
23904
23905 \end_inset
23906
23907 .
23908  This says: If the 
23909 \begin_inset Flex Code
23910 status collapsed
23911
23912 \begin_layout Plain Layout
23913 volume
23914 \end_layout
23915
23916 \end_inset
23917
23918  key exists, then print 
23919 \begin_inset Quotes eld
23920 \end_inset
23921
23922 vol.
23923 \begin_inset space ~
23924 \end_inset
23925
23926
23927 \begin_inset Quotes erd
23928 \end_inset
23929
23930  followed by the volume key.
23931  It is also possible to have an else clause in the conditional, such as:
23932 \begin_inset Newline newline
23933 \end_inset
23934
23935
23936 \begin_inset Flex Code
23937 status collapsed
23938
23939 \begin_layout Plain Layout
23940 {%author%[[%author%]][[%editor%, ed.]]}
23941 \end_layout
23942
23943 \end_inset
23944
23945 .
23946 \begin_inset Newline newline
23947 \end_inset
23948
23949 Here, the 
23950 \begin_inset Flex Code
23951 status collapsed
23952
23953 \begin_layout Plain Layout
23954 author
23955 \end_layout
23956
23957 \end_inset
23958
23959  key is printed if it exists; otherwise, the editor key is printed, followed
23960  by 
23961 \begin_inset Quotes eld
23962 \end_inset
23963
23964 ,
23965 \begin_inset space ~
23966 \end_inset
23967
23968 ed.
23969 \begin_inset Quotes erd
23970 \end_inset
23971
23972  Note that the key is again enclosed in 
23973 \begin_inset Flex Code
23974 status collapsed
23975
23976 \begin_layout Plain Layout
23977 %
23978 \end_layout
23979
23980 \end_inset
23981
23982  signs; the entire conditional is enclosed in braces; and the if and else
23983  clauses are enclosed in double brackets, 
23984 \begin_inset Quotes eld
23985 \end_inset
23986
23987
23988 \begin_inset Flex Code
23989 status collapsed
23990
23991 \begin_layout Plain Layout
23992 [[
23993 \end_layout
23994
23995 \end_inset
23996
23997
23998 \begin_inset Quotes eld
23999 \end_inset
24000
24001  and 
24002 \begin_inset Quotes eld
24003 \end_inset
24004
24005
24006 \begin_inset Flex Code
24007 status collapsed
24008
24009 \begin_layout Plain Layout
24010 ]]
24011 \end_layout
24012
24013 \end_inset
24014
24015
24016 \begin_inset Quotes erd
24017 \end_inset
24018
24019 .
24020  There must be no space between any of these.
24021 \end_layout
24022
24023 \begin_layout Standard
24024 Next to the entry keys, there are some special keys that can be used for
24025  these conditionals:
24026 \end_layout
24027
24028 \begin_layout Itemize
24029 \begin_inset Flex Code
24030 status collapsed
24031
24032 \begin_layout Plain Layout
24033 {%dialog%[[true]][[false]]}
24034 \end_layout
24035
24036 \end_inset
24037
24038 : process the 
24039 \begin_inset Quotes eld
24040 \end_inset
24041
24042 true
24043 \begin_inset Quotes erd
24044 \end_inset
24045
24046  part for dialogs and menus, the 
24047 \begin_inset Quotes eld
24048 \end_inset
24049
24050 false
24051 \begin_inset Quotes erd
24052 \end_inset
24053
24054  part for other contexts (workarea, export)
24055 \end_layout
24056
24057 \begin_layout Itemize
24058 \begin_inset Flex Code
24059 status collapsed
24060
24061 \begin_layout Plain Layout
24062 {%export%[[true]][[false]]}
24063 \end_layout
24064
24065 \end_inset
24066
24067 : process the 
24068 \begin_inset Quotes eld
24069 \end_inset
24070
24071 true
24072 \begin_inset Quotes erd
24073 \end_inset
24074
24075  part for export and menus, the 
24076 \begin_inset Quotes eld
24077 \end_inset
24078
24079 false
24080 \begin_inset Quotes erd
24081 \end_inset
24082
24083  part for other contexts (workarea, dialog)
24084 \end_layout
24085
24086 \begin_layout Itemize
24087 \begin_inset Flex Code
24088 status collapsed
24089
24090 \begin_layout Plain Layout
24091 {%next%[[true]]}
24092 \end_layout
24093
24094 \end_inset
24095
24096 : process the 
24097 \begin_inset Quotes eld
24098 \end_inset
24099
24100 true
24101 \begin_inset Quotes erd
24102 \end_inset
24103
24104  part if another item follows (e.
24105 \begin_inset space \thinspace{}
24106 \end_inset
24107
24108 g., in a citation with multiple keys)
24109 \end_layout
24110
24111 \begin_layout Itemize
24112 \begin_inset Flex Code
24113 status collapsed
24114
24115 \begin_layout Plain Layout
24116 {%second%[[true]][[false]]}
24117 \end_layout
24118
24119 \end_inset
24120
24121 : process the 
24122 \begin_inset Quotes eld
24123 \end_inset
24124
24125 true
24126 \begin_inset Quotes erd
24127 \end_inset
24128
24129  if this is the second of multiple items, else the 
24130 \begin_inset Quotes eld
24131 \end_inset
24132
24133 false
24134 \begin_inset Quotes erd
24135 \end_inset
24136
24137  part
24138 \end_layout
24139
24140 \begin_layout Itemize
24141 \begin_inset Flex Code
24142 status collapsed
24143
24144 \begin_layout Plain Layout
24145 {%ifstar%[[true]][[false]]}
24146 \end_layout
24147
24148 \end_inset
24149
24150 : process the 
24151 \begin_inset Quotes eld
24152 \end_inset
24153
24154 true
24155 \begin_inset Quotes erd
24156 \end_inset
24157
24158  part for starred citation commands (such as 
24159 \begin_inset Flex Code
24160 status collapsed
24161
24162 \begin_layout Plain Layout
24163
24164 \backslash
24165 cite*
24166 \end_layout
24167
24168 \end_inset
24169
24170 ), the false part for unstarred
24171 \end_layout
24172
24173 \begin_layout Itemize
24174 \begin_inset Flex Code
24175 status collapsed
24176
24177 \begin_layout Plain Layout
24178 {%ifentrytype:<type>%[[true]][[false]]}
24179 \end_layout
24180
24181 \end_inset
24182
24183 : process the 
24184 \begin_inset Quotes eld
24185 \end_inset
24186
24187 true
24188 \begin_inset Quotes erd
24189 \end_inset
24190
24191  if the current entry type matches 
24192 \begin_inset Flex Code
24193 status collapsed
24194
24195 \begin_layout Plain Layout
24196 <type>
24197 \end_layout
24198
24199 \end_inset
24200
24201 , else the false part (e.g., in a citation definition: 
24202 \begin_inset Flex Code
24203 status collapsed
24204
24205 \begin_layout Plain Layout
24206 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24207 \end_layout
24208
24209 \end_inset
24210
24211 )
24212 \end_layout
24213
24214 \begin_layout Itemize
24215 \begin_inset Flex Code
24216 status collapsed
24217
24218 \begin_layout Plain Layout
24219 {%ifmultiple:<authortype>%[[true]][[false]]}
24220 \end_layout
24221
24222 \end_inset
24223
24224 : process the 
24225 \begin_inset Quotes eld
24226 \end_inset
24227
24228 true
24229 \begin_inset Quotes erd
24230 \end_inset
24231
24232  if the current author type (author, editor etc.) has multiple authors, else
24233  the false part (e.g., in a bibliography definition: 
24234 \begin_inset Flex Code
24235 status collapsed
24236
24237 \begin_layout Plain Layout
24238 {%ifmultiple:editor%[[eds.]][[ed.]]}
24239 \end_layout
24240
24241 \end_inset
24242
24243 )
24244 \end_layout
24245
24246 \begin_layout Itemize
24247 \begin_inset Flex Code
24248 status collapsed
24249
24250 \begin_layout Plain Layout
24251 {%ifqualified%[[true]][[false]]}
24252 \end_layout
24253
24254 \end_inset
24255
24256 : process the 
24257 \begin_inset Quotes eld
24258 \end_inset
24259
24260 true
24261 \begin_inset Quotes erd
24262 \end_inset
24263
24264  part if the current citation is a qualified citation list (a specific 
24265 \family sans
24266 Biblatex
24267 \family default
24268  format for multi-reference citations), the false part if this is not the
24269  case.
24270 \end_layout
24271
24272 \begin_layout Standard
24273 We said that 
24274 \begin_inset Flex Code
24275 status collapsed
24276
24277 \begin_layout Plain Layout
24278 %author%
24279 \end_layout
24280
24281 \end_inset
24282
24283  prints the author key as it is recorded in the bibliography file.
24284  This might not be what you want, since it will result in a string such
24285  as 
24286 \begin_inset Quotes eld
24287 \end_inset
24288
24289 Miller, Peter and Smith, Mary and White, Jane
24290 \begin_inset Quotes erd
24291 \end_inset
24292
24293  (since 
24294 \begin_inset Quotes eld
24295 \end_inset
24296
24297 and
24298 \begin_inset Quotes erd
24299 \end_inset
24300
24301  is used by Bib\SpecialChar TeX
24302  to delimit authors).
24303  \SpecialChar LyX
24304  therefore provides some methods to get properly formatted name lists (which
24305  will also get translated).
24306  The following keys are provided:
24307 \end_layout
24308
24309 \begin_layout Enumerate
24310 For name lists with pre- and surname, suitable for the main authors/editors
24311  of a bibliography item.
24312  The 
24313 \begin_inset Flex Code
24314 status collapsed
24315
24316 \begin_layout Plain Layout
24317 <nametype>
24318 \end_layout
24319
24320 \end_inset
24321
24322  part denotes the kind of list that is requested (e.g.
24323  
24324 \begin_inset Flex Code
24325 status collapsed
24326
24327 \begin_layout Plain Layout
24328 <nametype:author>
24329 \end_layout
24330
24331 \end_inset
24332
24333 ):
24334 \end_layout
24335
24336 \begin_deeper
24337 \begin_layout Itemize
24338 \begin_inset Flex Code
24339 status collapsed
24340
24341 \begin_layout Plain Layout
24342 %abbrvnames:<nametype>%
24343 \end_layout
24344
24345 \end_inset
24346
24347 : Provides a name list which is abbreviated (with 
24348 \begin_inset Quotes eld
24349 \end_inset
24350
24351 et al.
24352 \begin_inset Quotes erd
24353 \end_inset
24354
24355 ) when 
24356 \begin_inset Flex Code
24357 status collapsed
24358
24359 \begin_layout Plain Layout
24360 MaxCiteNames
24361 \end_layout
24362
24363 \end_inset
24364
24365  is reached.
24366 \end_layout
24367
24368 \begin_layout Itemize
24369 \begin_inset Flex Code
24370 status collapsed
24371
24372 \begin_layout Plain Layout
24373 %fullnames:<nametype>%
24374 \end_layout
24375
24376 \end_inset
24377
24378 : Provides a full name list (never abbreviated with 
24379 \begin_inset Quotes eld
24380 \end_inset
24381
24382 et al.
24383 \begin_inset Quotes erd
24384 \end_inset
24385
24386 ).
24387 \end_layout
24388
24389 \begin_layout Itemize
24390 \begin_inset Flex Code
24391 status collapsed
24392
24393 \begin_layout Plain Layout
24394 %forceabbrvnames:<nametype>%
24395 \end_layout
24396
24397 \end_inset
24398
24399 : Provides a name list which is always abbreviated (with 
24400 \begin_inset Quotes eld
24401 \end_inset
24402
24403 et al.
24404 \begin_inset Quotes erd
24405 \end_inset
24406
24407 ) irrespective of 
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412 MaxCiteNames
24413 \end_layout
24414
24415 \end_inset
24416
24417 .
24418 \end_layout
24419
24420 \end_deeper
24421 \begin_layout Enumerate
24422 Alternative name lists with pre- and surname, if the order of pre- and surname
24423  inside the bibliography item differs (as in: 
24424 \begin_inset Quotes eld
24425 \end_inset
24426
24427 Miller, John: Some text, in: Mary Smith, ed.: A volume
24428 \begin_inset Quotes erd
24429 \end_inset
24430
24431 ):
24432 \end_layout
24433
24434 \begin_deeper
24435 \begin_layout Itemize
24436 \begin_inset Flex Code
24437 status collapsed
24438
24439 \begin_layout Plain Layout
24440 %abbrvbynames:<nametype>%
24441 \end_layout
24442
24443 \end_inset
24444
24445 : Provides a name list which is abbreviated (with 
24446 \begin_inset Quotes eld
24447 \end_inset
24448
24449 et al.
24450 \begin_inset Quotes erd
24451 \end_inset
24452
24453 ) when 
24454 \begin_inset Flex Code
24455 status collapsed
24456
24457 \begin_layout Plain Layout
24458 MaxCiteNames
24459 \end_layout
24460
24461 \end_inset
24462
24463  is reached.
24464 \end_layout
24465
24466 \begin_layout Itemize
24467 \begin_inset Flex Code
24468 status collapsed
24469
24470 \begin_layout Plain Layout
24471 %fullbynames:<nametype>%
24472 \end_layout
24473
24474 \end_inset
24475
24476 : Provides a full name list (never abbreviated with 
24477 \begin_inset Quotes eld
24478 \end_inset
24479
24480 et al.
24481 \begin_inset Quotes erd
24482 \end_inset
24483
24484 ).
24485 \end_layout
24486
24487 \begin_layout Itemize
24488 \begin_inset Flex Code
24489 status collapsed
24490
24491 \begin_layout Plain Layout
24492 %forceabbrvbynames:<nametype>%
24493 \end_layout
24494
24495 \end_inset
24496
24497 : Provides a name list which is always abbreviated (with 
24498 \begin_inset Quotes eld
24499 \end_inset
24500
24501 et al.
24502 \begin_inset Quotes erd
24503 \end_inset
24504
24505 ) irrespective of 
24506 \begin_inset Flex Code
24507 status collapsed
24508
24509 \begin_layout Plain Layout
24510 MaxCiteNames
24511 \end_layout
24512
24513 \end_inset
24514
24515 .
24516 \end_layout
24517
24518 \end_deeper
24519 \begin_layout Enumerate
24520 And finally name lists which consist of family names only, as used in author-yea
24521 r citation labels.
24522  These do not take a 
24523 \begin_inset Flex Code
24524 status collapsed
24525
24526 \begin_layout Plain Layout
24527 <nametype>
24528 \end_layout
24529
24530 \end_inset
24531
24532  part, but always return either an author list or, if this does not exist,
24533  an editor list (as common in author-year labels):
24534 \end_layout
24535
24536 \begin_deeper
24537 \begin_layout Itemize
24538 \begin_inset Flex Code
24539 status collapsed
24540
24541 \begin_layout Plain Layout
24542 %abbrvciteauthor%
24543 \end_layout
24544
24545 \end_inset
24546
24547 : Provides a name list which is abbreviated (with 
24548 \begin_inset Quotes eld
24549 \end_inset
24550
24551 et al.
24552 \begin_inset Quotes erd
24553 \end_inset
24554
24555 ) when 
24556 \begin_inset Flex Code
24557 status collapsed
24558
24559 \begin_layout Plain Layout
24560 MaxCiteNames
24561 \end_layout
24562
24563 \end_inset
24564
24565  is reached.
24566 \end_layout
24567
24568 \begin_layout Itemize
24569 \begin_inset Flex Code
24570 status collapsed
24571
24572 \begin_layout Plain Layout
24573 %fullciteauthor%
24574 \end_layout
24575
24576 \end_inset
24577
24578 : Provides a full name list (never abbreviated with 
24579 \begin_inset Quotes eld
24580 \end_inset
24581
24582 et al.
24583 \begin_inset Quotes erd
24584 \end_inset
24585
24586 ).
24587 \end_layout
24588
24589 \begin_layout Itemize
24590 \begin_inset Flex Code
24591 status collapsed
24592
24593 \begin_layout Plain Layout
24594 %forceabbrvciteauthor%
24595 \end_layout
24596
24597 \end_inset
24598
24599 : Provides a name list which is always abbreviated (with 
24600 \begin_inset Quotes eld
24601 \end_inset
24602
24603 et al.
24604 \begin_inset Quotes erd
24605 \end_inset
24606
24607 ) irrespective of 
24608 \begin_inset Flex Code
24609 status collapsed
24610
24611 \begin_layout Plain Layout
24612 MaxCiteNames
24613 \end_layout
24614
24615 \end_inset
24616
24617 .
24618 \end_layout
24619
24620 \end_deeper
24621 \begin_layout Standard
24622 The order of pre- and surname in the former two lists can be adjusted by
24623  these macros:
24624 \end_layout
24625
24626 \begin_layout Itemize
24627 \begin_inset Flex Code
24628 status collapsed
24629
24630 \begin_layout Plain Layout
24631 !firstnameform %surname%, %prename%
24632 \end_layout
24633
24634 \end_inset
24635
24636  (first author in lists of type 1)
24637 \end_layout
24638
24639 \begin_layout Itemize
24640 \begin_inset Flex Code
24641 status collapsed
24642
24643 \begin_layout Plain Layout
24644 !othernameform %surname%, %prename%
24645 \end_layout
24646
24647 \end_inset
24648
24649  (other authors in lists of type 1)
24650 \end_layout
24651
24652 \begin_layout Itemize
24653 \begin_inset Flex Code
24654 status collapsed
24655
24656 \begin_layout Plain Layout
24657 !firstbynameform %prename% %surname%
24658 \end_layout
24659
24660 \end_inset
24661
24662  (first author in lists of type 2)
24663 \end_layout
24664
24665 \begin_layout Itemize
24666 \begin_inset Flex Code
24667 status collapsed
24668
24669 \begin_layout Plain Layout
24670 !otherbynameform %prename% %surname%
24671 \end_layout
24672
24673 \end_inset
24674
24675  (other authors in lists of type 2)
24676 \end_layout
24677
24678 \begin_layout Standard
24679 This allows you to configure namings like 
24680 \begin_inset Quotes eld
24681 \end_inset
24682
24683 Miller, Peter and Mary Smith: \SpecialChar ldots
24684 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24685
24686 \begin_inset Quotes erd
24687 \end_inset
24688
24689 .
24690 \end_layout
24691
24692 \begin_layout Standard
24693 There is one other piece of syntax available in definitions, which looks
24694  like this: 
24695 \begin_inset Flex Code
24696 status collapsed
24697
24698 \begin_layout Plain Layout
24699 {!<i>!}
24700 \end_layout
24701
24702 \end_inset
24703
24704 .
24705  This defines a piece of formatting information that is to be used when
24706  creating 
24707 \begin_inset Quotes eld
24708 \end_inset
24709
24710 rich text
24711 \begin_inset Quotes erd
24712 \end_inset
24713
24714 .
24715  Obviously, we do not want to output HTML tags when writing plain text,
24716  so they should be wrapped in 
24717 \begin_inset Quotes eld
24718 \end_inset
24719
24720 {!
24721 \begin_inset Quotes erd
24722 \end_inset
24723
24724  and 
24725 \begin_inset Quotes eld
24726 \end_inset
24727
24728 !}
24729 \begin_inset Quotes erd
24730 \end_inset
24731
24732 .
24733 \end_layout
24734
24735 \begin_layout Standard
24736 Two special sorts of definitions are also possible in a 
24737 \begin_inset Flex Code
24738 status collapsed
24739
24740 \begin_layout Plain Layout
24741 CiteFormat
24742 \end_layout
24743
24744 \end_inset
24745
24746  block.
24747  An example of the first would be:
24748 \end_layout
24749
24750 \begin_layout LyX-Code
24751 !quotetitle 
24752 \begin_inset Quotes eld
24753 \end_inset
24754
24755 %title%
24756 \begin_inset Quotes erd
24757 \end_inset
24758
24759
24760 \end_layout
24761
24762 \begin_layout Standard
24763 This is an abbreviation, or macro, and it can be used by treating it as
24764  if it were a key: 
24765 \begin_inset Flex Code
24766 status collapsed
24767
24768 \begin_layout Plain Layout
24769 %!quotetitle%
24770 \end_layout
24771
24772 \end_inset
24773
24774 .
24775  \SpecialChar LyX
24776  will treat 
24777 \begin_inset Flex Code
24778 status collapsed
24779
24780 \begin_layout Plain Layout
24781 %!quotetitle%
24782 \end_layout
24783
24784 \end_inset
24785
24786  exactly as it would treat its definition.
24787  So, let us issue the obvious 
24788 \emph on
24789 warning
24790 \emph default
24791 .
24792  Do not do this:
24793 \end_layout
24794
24795 \begin_layout LyX-Code
24796 !funfun %funfun%
24797 \end_layout
24798
24799 \begin_layout Standard
24800 or anything like it.
24801  \SpecialChar LyX
24802  shouldn't go into an infinite loop, but it may go into a long one before
24803  it gives up.
24804 \end_layout
24805
24806 \begin_layout Standard
24807 The second sort of special definition might look like this:
24808 \end_layout
24809
24810 \begin_layout LyX-Code
24811 B_pptext pp.
24812 \end_layout
24813
24814 \begin_layout Standard
24815 This defines a translatable piece of text, which allows relevant parts of
24816  the bibliography or citation to be translated.
24817  It can be included in a definition by treating it as a key: 
24818 \begin_inset Flex Code
24819 status collapsed
24820
24821 \begin_layout Plain Layout
24822 %B_pptext%
24823 \end_layout
24824
24825 \end_inset
24826
24827 .
24828  Note that there are two different translation paths: All definitions starting
24829  with 
24830 \begin_inset Flex Code
24831 status collapsed
24832
24833 \begin_layout Plain Layout
24834 B_
24835 \end_layout
24836
24837 \end_inset
24838
24839 , such as in the example above, will be translated to the currently active
24840  buffer language (so the translation will match the generated document).
24841  All definitions starting with underscore only will be translated to the
24842  GUI language.
24843  This is the proper translation for strings that only occur in the dialogs
24844  or on buttons, such as this one:
24845 \end_layout
24846
24847 \begin_layout LyX-Code
24848 _addtobib Add to bibliography only.
24849 \end_layout
24850
24851 \begin_layout Standard
24852 Several of these translatable strings are predefined in 
24853 \begin_inset Flex Code
24854 status collapsed
24855
24856 \begin_layout Plain Layout
24857 stdciteformats.inc
24858 \end_layout
24859
24860 \end_inset
24861
24862  and the diverse 
24863 \begin_inset Flex Code
24864 status collapsed
24865
24866 \begin_layout Plain Layout
24867 *.citeengine
24868 \end_layout
24869
24870 \end_inset
24871
24872  files.
24873  Note that these are not macros, in the sense just defined.
24874  They will not be expanded.
24875 \end_layout
24876
24877 \begin_layout Standard
24878 So here then is an example that uses several of these features:
24879 \begin_inset VSpace defskip
24880 \end_inset
24881
24882
24883 \end_layout
24884
24885 \begin_layout Standard
24886 \noindent
24887
24888 \family sans
24889 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24890 \end_layout
24891
24892 \begin_layout Standard
24893 \begin_inset VSpace defskip
24894 \end_inset
24895
24896 This defines a macro that prints the author, followed by a comma, if the
24897  
24898 \begin_inset Flex Code
24899 status collapsed
24900
24901 \begin_layout Plain Layout
24902 author
24903 \end_layout
24904
24905 \end_inset
24906
24907  key is defined, or else prints the name of the editor, followed by the
24908  
24909 \begin_inset Flex Code
24910 status collapsed
24911
24912 \begin_layout Plain Layout
24913 B_edtext
24914 \end_layout
24915
24916 \end_inset
24917
24918  or its translation (it is by default 
24919 \begin_inset Quotes eld
24920 \end_inset
24921
24922 ed.
24923 \begin_inset Quotes erd
24924 \end_inset
24925
24926 ), if the 
24927 \begin_inset Flex Code
24928 status collapsed
24929
24930 \begin_layout Plain Layout
24931 editor
24932 \end_layout
24933
24934 \end_inset
24935
24936  key is defined.
24937  Note that this is in fact defined in 
24938 \begin_inset Flex Code
24939 status collapsed
24940
24941 \begin_layout Plain Layout
24942 stdciteformats.inc
24943 \end_layout
24944
24945 \end_inset
24946
24947 , so you can use it in your own definitions, or re-definitions, if you load
24948  that file first.
24949 \end_layout
24950
24951 \begin_layout Section
24952 \begin_inset CommandInset label
24953 LatexCommand label
24954 name "sec:Tags-for-XHTML"
24955
24956 \end_inset
24957
24958 Tags for XHTML output
24959 \end_layout
24960
24961 \begin_layout Standard
24962 As with \SpecialChar LaTeX
24963  or DocBook, the format of \SpecialChar LyX
24964 's XHTML output is also controlled by
24965  layout information.
24966  In general, \SpecialChar LyX
24967  provides sensible defaults and, as mentioned earlier, it will
24968  even construct default CSS style rules from the other layout tags.
24969  For example, \SpecialChar LyX
24970  will attempt to use the information provided in the 
24971 \begin_inset Flex Code
24972 status collapsed
24973
24974 \begin_layout Plain Layout
24975 Font
24976 \end_layout
24977
24978 \end_inset
24979
24980  declaration for the Chapter style to write CSS that will appropriately
24981  format chapter headings.
24982 \end_layout
24983
24984 \begin_layout Standard
24985 In many cases, then, you may not have to do anything at all to get acceptable
24986  XHTML output for your own environments, custom insets, and so forth.
24987  But in some cases you will, and so \SpecialChar LyX
24988  provides a number of layout tags that
24989  can be used to customize the XHTML and CSS that are generated.
24990 \end_layout
24991
24992 \begin_layout Standard
24993 Note that there are two tags, 
24994 \begin_inset Flex Code
24995 status collapsed
24996
24997 \begin_layout Plain Layout
24998 HTMLPreamble
24999 \end_layout
25000
25001 \end_inset
25002
25003  and 
25004 \begin_inset Flex Code
25005 status collapsed
25006
25007 \begin_layout Plain Layout
25008 AddToHTMLPreamble
25009 \end_layout
25010
25011 \end_inset
25012
25013  that may appear outside style and inset declarations.
25014  See 
25015 \begin_inset CommandInset ref
25016 LatexCommand ref
25017 reference "subsec:General-text-class"
25018
25019 \end_inset
25020
25021  for details on these.
25022 \end_layout
25023
25024 \begin_layout Subsection
25025 \begin_inset CommandInset label
25026 LatexCommand label
25027 name "subsec:Paragraph-Style-XHTML"
25028
25029 \end_inset
25030
25031 Paragraph styles
25032 \end_layout
25033
25034 \begin_layout Standard
25035 The sort of XHTML \SpecialChar LyX
25036  outputs for a paragraph depends upon whether we are dealing
25037  with a normal paragraph, a command, or an environment, where this is itself
25038  determined by the contents of the corresponding 
25039 \begin_inset Flex Code
25040 status collapsed
25041
25042 \begin_layout Plain Layout
25043 \SpecialChar LaTeX
25044 Type
25045 \end_layout
25046
25047 \end_inset
25048
25049  tag.
25050  
25051 \end_layout
25052
25053 \begin_layout Standard
25054 For a command or normal paragraph, the output XHTML has the following form:
25055 \end_layout
25056
25057 \begin_layout LyX-Code
25058
25059 \family sans
25060 <tag attr=
25061 \begin_inset Quotes erd
25062 \end_inset
25063
25064 value
25065 \begin_inset Quotes erd
25066 \end_inset
25067
25068 >
25069 \end_layout
25070
25071 \begin_layout LyX-Code
25072
25073 \family sans
25074 <labeltag attr=
25075 \begin_inset Quotes erd
25076 \end_inset
25077
25078 value
25079 \begin_inset Quotes erd
25080 \end_inset
25081
25082 >Label</labeltag>
25083 \end_layout
25084
25085 \begin_layout LyX-Code
25086
25087 \family sans
25088 Contents of the paragraph.
25089 \end_layout
25090
25091 \begin_layout LyX-Code
25092
25093 \family sans
25094 </tag>
25095 \end_layout
25096
25097 \begin_layout Standard
25098 The label tags are of course omitted if the paragraph does not have a label.
25099 \end_layout
25100
25101 \begin_layout Standard
25102 For an environment that is not some sort of list, the XHTML takes this form:
25103 \end_layout
25104
25105 \begin_layout LyX-Code
25106
25107 \family sans
25108 <tag attr=
25109 \begin_inset Quotes erd
25110 \end_inset
25111
25112 value
25113 \begin_inset Quotes erd
25114 \end_inset
25115
25116 >
25117 \end_layout
25118
25119 \begin_layout LyX-Code
25120
25121 \family sans
25122 <itemtag attr=
25123 \begin_inset Quotes erd
25124 \end_inset
25125
25126 value
25127 \begin_inset Quotes erd
25128 \end_inset
25129
25130 ><labeltag attr=
25131 \begin_inset Quotes erd
25132 \end_inset
25133
25134 value
25135 \begin_inset Quotes erd
25136 \end_inset
25137
25138 >Environment Label</labeltag>First paragraph.</itemtag>
25139 \end_layout
25140
25141 \begin_layout LyX-Code
25142
25143 \family sans
25144 <itemtag>Second paragraph.</itemtag>
25145 \end_layout
25146
25147 \begin_layout LyX-Code
25148
25149 \family sans
25150 </tag>
25151 \end_layout
25152
25153 \begin_layout Standard
25154 Note that the label is output only for the first paragraph, as it should
25155  be for a theorem, for example.
25156  
25157 \end_layout
25158
25159 \begin_layout Standard
25160 For a list, we have one of these forms:
25161 \end_layout
25162
25163 \begin_layout LyX-Code
25164
25165 \family sans
25166 <tag attr=
25167 \begin_inset Quotes erd
25168 \end_inset
25169
25170 value
25171 \begin_inset Quotes erd
25172 \end_inset
25173
25174 >
25175 \end_layout
25176
25177 \begin_layout LyX-Code
25178
25179 \family sans
25180 <itemtag attr=
25181 \begin_inset Quotes erd
25182 \end_inset
25183
25184 value
25185 \begin_inset Quotes erd
25186 \end_inset
25187
25188 ><labeltag attr=
25189 \begin_inset Quotes erd
25190 \end_inset
25191
25192 value
25193 \begin_inset Quotes erd
25194 \end_inset
25195
25196 >List Label</labeltag>First item.</itemtag>
25197 \end_layout
25198
25199 \begin_layout LyX-Code
25200
25201 \family sans
25202 <itemtag attr=
25203 \begin_inset Quotes erd
25204 \end_inset
25205
25206 value
25207 \begin_inset Quotes erd
25208 \end_inset
25209
25210 ><labeltag attr=
25211 \begin_inset Quotes erd
25212 \end_inset
25213
25214 value
25215 \begin_inset Quotes erd
25216 \end_inset
25217
25218 >List Label</labeltag>Second item.</itemtag>
25219 \end_layout
25220
25221 \begin_layout LyX-Code
25222
25223 \family sans
25224 </tag>
25225 \end_layout
25226
25227 \begin_layout LyX-Code
25228
25229 \end_layout
25230
25231 \begin_layout LyX-Code
25232
25233 \family sans
25234 <tag attr=
25235 \begin_inset Quotes erd
25236 \end_inset
25237
25238 value
25239 \begin_inset Quotes erd
25240 \end_inset
25241
25242 >
25243 \end_layout
25244
25245 \begin_layout LyX-Code
25246
25247 \family sans
25248 <labeltag attr=
25249 \begin_inset Quotes erd
25250 \end_inset
25251
25252 value
25253 \begin_inset Quotes erd
25254 \end_inset
25255
25256 >List Label</labeltag><itemtag attr=
25257 \begin_inset Quotes erd
25258 \end_inset
25259
25260 value
25261 \begin_inset Quotes erd
25262 \end_inset
25263
25264 >First item.</itemtag>
25265 \end_layout
25266
25267 \begin_layout LyX-Code
25268
25269 \family sans
25270 <labeltag attr=
25271 \begin_inset Quotes erd
25272 \end_inset
25273
25274 value
25275 \begin_inset Quotes erd
25276 \end_inset
25277
25278 >List Label</labeltag><itemtag attr=
25279 \begin_inset Quotes erd
25280 \end_inset
25281
25282 value
25283 \begin_inset Quotes erd
25284 \end_inset
25285
25286 >Second item.</itemtag>
25287 \end_layout
25288
25289 \begin_layout LyX-Code
25290
25291 \family sans
25292 </tag>
25293 \end_layout
25294
25295 \begin_layout Standard
25296 Note the different orders of 
25297 \begin_inset Flex Code
25298 status collapsed
25299
25300 \begin_layout Plain Layout
25301 labeltag
25302 \end_layout
25303
25304 \end_inset
25305
25306  and 
25307 \begin_inset Flex Code
25308 status collapsed
25309
25310 \begin_layout Plain Layout
25311 itemtag
25312 \end_layout
25313
25314 \end_inset
25315
25316 .
25317  Which order we get depends upon the setting of 
25318 \begin_inset Flex Code
25319 status collapsed
25320
25321 \begin_layout Plain Layout
25322 HTMLLabelFirst
25323 \end_layout
25324
25325 \end_inset
25326
25327 : If 
25328 \begin_inset Flex Code
25329 status collapsed
25330
25331 \begin_layout Plain Layout
25332 HTMLLabelFirst
25333 \end_layout
25334
25335 \end_inset
25336
25337  is false (the default), you get the first of these, with the label within
25338  the item; if true, you get the second, with the label outside the item.
25339 \end_layout
25340
25341 \begin_layout Standard
25342 The specific tags and attributes output for each paragraph type can be controlle
25343 d by means of the layout tags we are about to describe.
25344  As mentioned earlier, however, \SpecialChar LyX
25345  uses sensible defaults for many of these,
25346  so you often may not need to do very much to get good XHTML output.
25347  Think of the available tags as there so you can tweak things to your liking.
25348 \end_layout
25349
25350 \begin_layout Description
25351 \begin_inset Flex Code
25352 status collapsed
25353
25354 \begin_layout Plain Layout
25355 HTMLAttr
25356 \end_layout
25357
25358 \end_inset
25359
25360  [
25361 \begin_inset Flex Code
25362 status collapsed
25363
25364 \begin_layout Plain Layout
25365 string
25366 \end_layout
25367
25368 \end_inset
25369
25370 ] Specifies attribute information to be output with the main tag.
25371  For example, 
25372 \begin_inset Quotes eld
25373 \end_inset
25374
25375
25376 \begin_inset Flex Code
25377 status collapsed
25378
25379 \begin_layout Plain Layout
25380 class=`mydiv'
25381 \end_layout
25382
25383 \end_inset
25384
25385
25386 \begin_inset Quotes erd
25387 \end_inset
25388
25389 .
25390  By default, \SpecialChar LyX
25391  will output 
25392 \begin_inset Quotes eld
25393 \end_inset
25394
25395
25396 \begin_inset Flex Code
25397 status collapsed
25398
25399 \begin_layout Plain Layout
25400 class=`layoutname'
25401 \end_layout
25402
25403 \end_inset
25404
25405
25406 \begin_inset Quotes erd
25407 \end_inset
25408
25409 , where 
25410 \begin_inset Flex Code
25411 status collapsed
25412
25413 \begin_layout Plain Layout
25414 layoutname
25415 \end_layout
25416
25417 \end_inset
25418
25419  is the \SpecialChar LyX
25420  name of the layout, made lowercase, for example: chapter.
25421  This should 
25422 \emph on
25423 not
25424 \emph default
25425  contain any style information.
25426  Use 
25427 \begin_inset Flex Code
25428 status collapsed
25429
25430 \begin_layout Plain Layout
25431 HTMLStyle
25432 \end_layout
25433
25434 \end_inset
25435
25436  for that purpose.
25437 \end_layout
25438
25439 \begin_layout Description
25440 \begin_inset Flex Code
25441 status collapsed
25442
25443 \begin_layout Plain Layout
25444 HTMLForceCSS
25445 \end_layout
25446
25447 \end_inset
25448
25449  [
25450 \begin_inset Flex Code
25451 status collapsed
25452
25453 \begin_layout Plain Layout
25454
25455 \emph on
25456 0
25457 \emph default
25458 ,1
25459 \end_layout
25460
25461 \end_inset
25462
25463 ] Whether to output the default CSS information \SpecialChar LyX
25464  generates for this layout,
25465  even if additional information is explicitly provided via 
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470 HTMLStyle
25471 \end_layout
25472
25473 \end_inset
25474
25475 .
25476  Setting this to 
25477 \begin_inset Flex Code
25478 status collapsed
25479
25480 \begin_layout Plain Layout
25481 1
25482 \end_layout
25483
25484 \end_inset
25485
25486  allows you to alter or augment the generated CSS, rather than to override
25487  it completely.
25488  Default is 
25489 \begin_inset Flex Code
25490 status collapsed
25491
25492 \begin_layout Plain Layout
25493 0
25494 \end_layout
25495
25496 \end_inset
25497
25498 .
25499 \end_layout
25500
25501 \begin_layout Description
25502 \begin_inset Flex Code
25503 status collapsed
25504
25505 \begin_layout Plain Layout
25506 HTMLItem
25507 \end_layout
25508
25509 \end_inset
25510
25511  [
25512 \begin_inset Flex Code
25513 status collapsed
25514
25515 \begin_layout Plain Layout
25516 string
25517 \end_layout
25518
25519 \end_inset
25520
25521 ] The tag to be used for individual paragraphs of environments, replacing
25522  
25523 \begin_inset Flex Code
25524 status collapsed
25525
25526 \begin_layout Plain Layout
25527 itemtag
25528 \end_layout
25529
25530 \end_inset
25531
25532  in the examples above.
25533  Defaults to 
25534 \begin_inset Flex Code
25535 status collapsed
25536
25537 \begin_layout Plain Layout
25538 div
25539 \end_layout
25540
25541 \end_inset
25542
25543 .
25544 \end_layout
25545
25546 \begin_layout Description
25547 \begin_inset Flex Code
25548 status collapsed
25549
25550 \begin_layout Plain Layout
25551 HTMLItemAttr
25552 \end_layout
25553
25554 \end_inset
25555
25556  [
25557 \begin_inset Flex Code
25558 status collapsed
25559
25560 \begin_layout Plain Layout
25561 string
25562 \end_layout
25563
25564 \end_inset
25565
25566 ] Attributes for the item tag.
25567  Defaults to
25568 \begin_inset Newline newline
25569 \end_inset
25570
25571
25572 \begin_inset Quotes eld
25573 \end_inset
25574
25575
25576 \begin_inset Flex Code
25577 status collapsed
25578
25579 \begin_layout Plain Layout
25580 class=`layoutname_item'
25581 \end_layout
25582
25583 \end_inset
25584
25585
25586 \begin_inset Quotes erd
25587 \end_inset
25588
25589 .
25590  This should 
25591 \emph on
25592 not
25593 \emph default
25594  contain any style information.
25595  Use 
25596 \begin_inset Flex Code
25597 status collapsed
25598
25599 \begin_layout Plain Layout
25600 HTMLStyle
25601 \end_layout
25602
25603 \end_inset
25604
25605  for that purpose.
25606 \end_layout
25607
25608 \begin_layout Description
25609 \begin_inset Flex Code
25610 status collapsed
25611
25612 \begin_layout Plain Layout
25613 HTMLLabel
25614 \end_layout
25615
25616 \end_inset
25617
25618  [
25619 \begin_inset Flex Code
25620 status collapsed
25621
25622 \begin_layout Plain Layout
25623 string
25624 \end_layout
25625
25626 \end_inset
25627
25628 ] The tag to be used for paragraph and item labels, replacing 
25629 \begin_inset Flex Code
25630 status collapsed
25631
25632 \begin_layout Plain Layout
25633 labeltag
25634 \end_layout
25635
25636 \end_inset
25637
25638  in the examples above.
25639  Defaults to 
25640 \begin_inset Flex Code
25641 status collapsed
25642
25643 \begin_layout Plain Layout
25644 span
25645 \end_layout
25646
25647 \end_inset
25648
25649 , unless 
25650 \begin_inset Flex Code
25651 status collapsed
25652
25653 \begin_layout Plain Layout
25654 LabelType
25655 \end_layout
25656
25657 \end_inset
25658
25659  is either 
25660 \begin_inset Flex Code
25661 status collapsed
25662
25663 \begin_layout Plain Layout
25664 Top_Environment
25665 \end_layout
25666
25667 \end_inset
25668
25669  or 
25670 \begin_inset Flex Code
25671 status collapsed
25672
25673 \begin_layout Plain Layout
25674 Centered_Top_Environment
25675 \end_layout
25676
25677 \end_inset
25678
25679 , in which case it defaults to 
25680 \begin_inset Flex Code
25681 status collapsed
25682
25683 \begin_layout Plain Layout
25684 div
25685 \end_layout
25686
25687 \end_inset
25688
25689 .
25690 \end_layout
25691
25692 \begin_layout Description
25693 \begin_inset Flex Code
25694 status collapsed
25695
25696 \begin_layout Plain Layout
25697 HTMLLabelAttr
25698 \end_layout
25699
25700 \end_inset
25701
25702  [
25703 \begin_inset Flex Code
25704 status collapsed
25705
25706 \begin_layout Plain Layout
25707 string
25708 \end_layout
25709
25710 \end_inset
25711
25712 ] Attributes for the label tag.
25713  Defaults to
25714 \begin_inset Newline newline
25715 \end_inset
25716
25717
25718 \begin_inset Quotes eld
25719 \end_inset
25720
25721
25722 \begin_inset Flex Code
25723 status collapsed
25724
25725 \begin_layout Plain Layout
25726 class=`layoutname_label'
25727 \end_layout
25728
25729 \end_inset
25730
25731
25732 \begin_inset Quotes erd
25733 \end_inset
25734
25735 .
25736  This should 
25737 \emph on
25738 not
25739 \emph default
25740  contain any style information.
25741  Use 
25742 \begin_inset Flex Code
25743 status collapsed
25744
25745 \begin_layout Plain Layout
25746 HTMLStyle
25747 \end_layout
25748
25749 \end_inset
25750
25751  for that purpose.
25752 \end_layout
25753
25754 \begin_layout Description
25755 \begin_inset Flex Code
25756 status collapsed
25757
25758 \begin_layout Plain Layout
25759 HTMLLabelFirst
25760 \end_layout
25761
25762 \end_inset
25763
25764  [
25765 \begin_inset Flex Code
25766 status collapsed
25767
25768 \begin_layout Plain Layout
25769
25770 \emph on
25771 0
25772 \emph default
25773 ,1
25774 \end_layout
25775
25776 \end_inset
25777
25778 ] Meaningful only for list-like environments, this tag controls whether
25779  the label tag is output before or inside the item tag.
25780  This is used, for example, in the description environment, where we want
25781  `
25782 \begin_inset Flex Code
25783 status collapsed
25784
25785 \begin_layout Plain Layout
25786 <dt>\SpecialChar ldots
25787 </dt><dd>\SpecialChar ldots
25788 </dd>
25789 \end_layout
25790
25791 \end_inset
25792
25793 .
25794  Default is 
25795 \begin_inset Flex Code
25796 status collapsed
25797
25798 \begin_layout Plain Layout
25799 0
25800 \end_layout
25801
25802 \end_inset
25803
25804 : The label tag is output inside the item tag.
25805 \end_layout
25806
25807 \begin_layout Description
25808 \begin_inset Flex Code
25809 status collapsed
25810
25811 \begin_layout Plain Layout
25812 HTMLPreamble
25813 \end_layout
25814
25815 \end_inset
25816
25817  Information to be output in the 
25818 \begin_inset Flex Code
25819 status collapsed
25820
25821 \begin_layout Plain Layout
25822 <head>
25823 \end_layout
25824
25825 \end_inset
25826
25827  section when this style is used.
25828  This might, for example, be used to include a 
25829 \begin_inset Flex Code
25830 status collapsed
25831
25832 \begin_layout Plain Layout
25833 <script>
25834 \end_layout
25835
25836 \end_inset
25837
25838  block defining an 
25839 \begin_inset Flex Code
25840 status collapsed
25841
25842 \begin_layout Plain Layout
25843 onclick
25844 \end_layout
25845
25846 \end_inset
25847
25848  handler.
25849 \end_layout
25850
25851 \begin_layout Description
25852 \begin_inset Flex Code
25853 status collapsed
25854
25855 \begin_layout Plain Layout
25856 HTMLStyle
25857 \end_layout
25858
25859 \end_inset
25860
25861  CSS style information to be included when this style is used.
25862  Note that this will automatically be wrapped in a layout-generated 
25863 \begin_inset Flex Code
25864 status collapsed
25865
25866 \begin_layout Plain Layout
25867 <style>
25868 \end_layout
25869
25870 \end_inset
25871
25872  block, so only the CSS itself need be included.
25873  Must end with 
25874 \begin_inset Flex Code
25875 status collapsed
25876
25877 \begin_layout Plain Layout
25878 EndHTMLStyle
25879 \end_layout
25880
25881 \end_inset
25882
25883 .
25884 \end_layout
25885
25886 \begin_layout Description
25887 \begin_inset Flex Code
25888 status collapsed
25889
25890 \begin_layout Plain Layout
25891 HTMLTag
25892 \end_layout
25893
25894 \end_inset
25895
25896  [
25897 \begin_inset Flex Code
25898 status collapsed
25899
25900 \begin_layout Plain Layout
25901 string
25902 \end_layout
25903
25904 \end_inset
25905
25906 ] The tag to be used for the main label, replacing 
25907 \begin_inset Flex Code
25908 status collapsed
25909
25910 \begin_layout Plain Layout
25911 tag
25912 \end_layout
25913
25914 \end_inset
25915
25916  in the examples above.
25917  Defaults to 
25918 \begin_inset Flex Code
25919 status collapsed
25920
25921 \begin_layout Plain Layout
25922 div
25923 \end_layout
25924
25925 \end_inset
25926
25927 .
25928 \end_layout
25929
25930 \begin_layout Description
25931 \begin_inset Flex Code
25932 status collapsed
25933
25934 \begin_layout Plain Layout
25935 HTMLTitle
25936 \end_layout
25937
25938 \end_inset
25939
25940  [
25941 \begin_inset Flex Code
25942 status collapsed
25943
25944 \begin_layout Plain Layout
25945
25946 \emph on
25947 0
25948 \emph default
25949 ,1
25950 \end_layout
25951
25952 \end_inset
25953
25954 ] Marks this style as the one to be used to generate the 
25955 \begin_inset Flex Code
25956 status collapsed
25957
25958 \begin_layout Plain Layout
25959 <title>
25960 \end_layout
25961
25962 \end_inset
25963
25964  tag for the XHTML file.
25965  By default, it is false.
25966  The 
25967 \begin_inset Flex Code
25968 status collapsed
25969
25970 \begin_layout Plain Layout
25971 stdtitle.inc
25972 \end_layout
25973
25974 \end_inset
25975
25976  file sets it to true for the 
25977 \begin_inset Flex Code
25978 status collapsed
25979
25980 \begin_layout Plain Layout
25981 title
25982 \end_layout
25983
25984 \end_inset
25985
25986  environment.
25987  
25988 \end_layout
25989
25990 \begin_layout Subsection
25991 InsetLayout XHTML
25992 \end_layout
25993
25994 \begin_layout Standard
25995 The XHTML output of insets can also be controlled by information in layout
25996  files.
25997 \begin_inset Foot
25998 status collapsed
25999
26000 \begin_layout Plain Layout
26001 At present, this is true only for 
26002 \begin_inset Quotes eld
26003 \end_inset
26004
26005 text
26006 \begin_inset Quotes erd
26007 \end_inset
26008
26009  insets (insets you can type into) and is not true for 
26010 \begin_inset Quotes eld
26011 \end_inset
26012
26013 command
26014 \begin_inset Quotes erd
26015 \end_inset
26016
26017  insets (insets that are associated with dialog boxes).
26018 \end_layout
26019
26020 \end_inset
26021
26022  Here, too, \SpecialChar LyX
26023  tries to provide sensible defaults, and it constructs default
26024  CSS style rules.
26025  But everything can be customized.
26026 \end_layout
26027
26028 \begin_layout Standard
26029 The XHTML \SpecialChar LyX
26030  outputs for an inset has the following form:
26031 \end_layout
26032
26033 \begin_layout LyX-Code
26034 <tag attr=
26035 \begin_inset Quotes erd
26036 \end_inset
26037
26038 value
26039 \begin_inset Quotes erd
26040 \end_inset
26041
26042 >
26043 \end_layout
26044
26045 \begin_layout LyX-Code
26046 <labeltag>Label</labeltag>
26047 \end_layout
26048
26049 \begin_layout LyX-Code
26050 <innertag attr=
26051 \begin_inset Quotes erd
26052 \end_inset
26053
26054 value
26055 \begin_inset Quotes erd
26056 \end_inset
26057
26058 >Contents of the inset.</innertag>
26059 \end_layout
26060
26061 \begin_layout LyX-Code
26062 </tag>
26063 \end_layout
26064
26065 \begin_layout Standard
26066 If the inset permits multiple paragraphs—that is, if 
26067 \begin_inset Flex Code
26068 status collapsed
26069
26070 \begin_layout Plain Layout
26071 MultiPar
26072 \end_layout
26073
26074 \end_inset
26075
26076  is true—then the contents of the inset will itself be output as paragraphs
26077  formatted according to the styles used for those paragraphs (standard,
26078  quote, and the like).
26079  The label tag is of course omitted if the paragraph does not have a label
26080  and, at present, is always 
26081 \begin_inset Flex Code
26082 status collapsed
26083
26084 \begin_layout Plain Layout
26085 span
26086 \end_layout
26087
26088 \end_inset
26089
26090 .
26091  The inner tag is optional and, by default, does not appear.
26092 \end_layout
26093
26094 \begin_layout Standard
26095 The specific tags and attributes output for each inset can be controlled
26096  by means of the following layout tags.
26097 \end_layout
26098
26099 \begin_layout Description
26100 \begin_inset Flex Code
26101 status collapsed
26102
26103 \begin_layout Plain Layout
26104 HTMLAttr
26105 \end_layout
26106
26107 \end_inset
26108
26109  [
26110 \begin_inset Flex Code
26111 status collapsed
26112
26113 \begin_layout Plain Layout
26114 string
26115 \end_layout
26116
26117 \end_inset
26118
26119 ] Specifies attribute information to be output with the main tag.
26120  For example, 
26121 \begin_inset Quotes eld
26122 \end_inset
26123
26124
26125 \begin_inset Flex Code
26126 status collapsed
26127
26128 \begin_layout Plain Layout
26129 class=`myinset' onclick=`\SpecialChar ldots
26130 '
26131 \end_layout
26132
26133 \end_inset
26134
26135
26136 \begin_inset Quotes erd
26137 \end_inset
26138
26139 .
26140  By default, \SpecialChar LyX
26141  will output 
26142 \begin_inset Quotes eld
26143 \end_inset
26144
26145
26146 \begin_inset Flex Code
26147 status collapsed
26148
26149 \begin_layout Plain Layout
26150 class=`insetname'
26151 \end_layout
26152
26153 \end_inset
26154
26155
26156 \begin_inset Quotes erd
26157 \end_inset
26158
26159 , where 
26160 \begin_inset Flex Code
26161 status collapsed
26162
26163 \begin_layout Plain Layout
26164 insetname
26165 \end_layout
26166
26167 \end_inset
26168
26169  is the \SpecialChar LyX
26170  name of the inset, made lowercase and with non-alphanumeric characters
26171  converted to underscores, for example: footnote.
26172 \end_layout
26173
26174 \begin_layout Description
26175 \begin_inset Flex Code
26176 status collapsed
26177
26178 \begin_layout Plain Layout
26179 HTMLForceCSS
26180 \end_layout
26181
26182 \end_inset
26183
26184  [
26185 \begin_inset Flex Code
26186 status collapsed
26187
26188 \begin_layout Plain Layout
26189
26190 \emph on
26191 0
26192 \emph default
26193 ,1
26194 \end_layout
26195
26196 \end_inset
26197
26198 ] Whether to output the default CSS information \SpecialChar LyX
26199  generates for this layout,
26200  even if additional information is explicitly provided via 
26201 \begin_inset Flex Code
26202 status collapsed
26203
26204 \begin_layout Plain Layout
26205 HTMLStyle
26206 \end_layout
26207
26208 \end_inset
26209
26210 .
26211  Setting this to 
26212 \begin_inset Flex Code
26213 status collapsed
26214
26215 \begin_layout Plain Layout
26216 1
26217 \end_layout
26218
26219 \end_inset
26220
26221  allows you to alter or augment the generated CSS, rather than to override
26222  it completely.
26223  Default is 0.
26224 \end_layout
26225
26226 \begin_layout Description
26227 \begin_inset Flex Code
26228 status collapsed
26229
26230 \begin_layout Plain Layout
26231 HTMLInnerAttr
26232 \end_layout
26233
26234 \end_inset
26235
26236  [
26237 \begin_inset Flex Code
26238 status collapsed
26239
26240 \begin_layout Plain Layout
26241 string
26242 \end_layout
26243
26244 \end_inset
26245
26246 ] Attributes for the inner tag.
26247  Defaults to
26248 \begin_inset Newline newline
26249 \end_inset
26250
26251
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 class=`insetname_inner'
26261 \end_layout
26262
26263 \end_inset
26264
26265
26266 \begin_inset Quotes erd
26267 \end_inset
26268
26269 .
26270 \end_layout
26271
26272 \begin_layout Description
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 HTMLInnerTag
26278 \end_layout
26279
26280 \end_inset
26281
26282  [
26283 \begin_inset Flex Code
26284 status collapsed
26285
26286 \begin_layout Plain Layout
26287 string
26288 \end_layout
26289
26290 \end_inset
26291
26292 ] The inner tag, replacing 
26293 \begin_inset Flex Code
26294 status collapsed
26295
26296 \begin_layout Plain Layout
26297 innertag
26298 \end_layout
26299
26300 \end_inset
26301
26302  in the examples above.
26303  By default, there is none.
26304 \end_layout
26305
26306 \begin_layout Description
26307 \begin_inset Flex Code
26308 status collapsed
26309
26310 \begin_layout Plain Layout
26311 HTMLIsBlock
26312 \end_layout
26313
26314 \end_inset
26315
26316  [
26317 \begin_inset Flex Code
26318 status collapsed
26319
26320 \begin_layout Plain Layout
26321 0,
26322 \emph on
26323 1
26324 \end_layout
26325
26326 \end_inset
26327
26328 ] Whether this inset represents a standalone block of text (such as a footnote)
26329  or instead represents material that is included in the surrounding text
26330  (such as a branch).
26331  Defaults to 1.
26332 \end_layout
26333
26334 \begin_layout Description
26335 \begin_inset Flex Code
26336 status collapsed
26337
26338 \begin_layout Plain Layout
26339 HTMLLabel
26340 \end_layout
26341
26342 \end_inset
26343
26344  [
26345 \begin_inset Flex Code
26346 status collapsed
26347
26348 \begin_layout Plain Layout
26349 string
26350 \end_layout
26351
26352 \end_inset
26353
26354 ] A label for this inset, possibly including a reference to a counter.
26355  For example, for footnote, it might be: 
26356 \begin_inset Flex Code
26357 status collapsed
26358
26359 \begin_layout Plain Layout
26360
26361 \backslash
26362 arabic{footnote}
26363 \end_layout
26364
26365 \end_inset
26366
26367 .
26368  This is optional, and there is no default.
26369 \end_layout
26370
26371 \begin_layout Description
26372 \begin_inset Flex Code
26373 status collapsed
26374
26375 \begin_layout Plain Layout
26376 HTMLPreamble
26377 \end_layout
26378
26379 \end_inset
26380
26381  Information to be output in the 
26382 \begin_inset Flex Code
26383 status collapsed
26384
26385 \begin_layout Plain Layout
26386 <head>
26387 \end_layout
26388
26389 \end_inset
26390
26391  section when this style is used.
26392  This might, for example, be used to include a 
26393 \begin_inset Flex Code
26394 status collapsed
26395
26396 \begin_layout Plain Layout
26397 <script>
26398 \end_layout
26399
26400 \end_inset
26401
26402  block defining an 
26403 \begin_inset Flex Code
26404 status collapsed
26405
26406 \begin_layout Plain Layout
26407 onclick
26408 \end_layout
26409
26410 \end_inset
26411
26412  handler.
26413 \end_layout
26414
26415 \begin_layout Description
26416 \begin_inset Flex Code
26417 status collapsed
26418
26419 \begin_layout Plain Layout
26420 HTMLStyle
26421 \end_layout
26422
26423 \end_inset
26424
26425  CSS style information to be included when this style is used.
26426  Note that this will automatically be wrapped in a layout-generated 
26427 \begin_inset Flex Code
26428 status collapsed
26429
26430 \begin_layout Plain Layout
26431 <style>
26432 \end_layout
26433
26434 \end_inset
26435
26436  block, so only the CSS itself need be included.
26437 \end_layout
26438
26439 \begin_layout Description
26440 \begin_inset Flex Code
26441 status collapsed
26442
26443 \begin_layout Plain Layout
26444 HTMLTag
26445 \end_layout
26446
26447 \end_inset
26448
26449  [
26450 \begin_inset Flex Code
26451 status collapsed
26452
26453 \begin_layout Plain Layout
26454 string
26455 \end_layout
26456
26457 \end_inset
26458
26459 ] The tag to be used for the main label, replacing 
26460 \begin_inset Flex Code
26461 status collapsed
26462
26463 \begin_layout Plain Layout
26464 tag
26465 \end_layout
26466
26467 \end_inset
26468
26469  in the examples above.
26470  The default depends upon the setting of 
26471 \begin_inset Flex Code
26472 status collapsed
26473
26474 \begin_layout Plain Layout
26475 MultiPar
26476 \end_layout
26477
26478 \end_inset
26479
26480 : If 
26481 \begin_inset Flex Code
26482 status collapsed
26483
26484 \begin_layout Plain Layout
26485 MultiPar
26486 \end_layout
26487
26488 \end_inset
26489
26490  is true, the default is 
26491 \begin_inset Flex Code
26492 status collapsed
26493
26494 \begin_layout Plain Layout
26495 div
26496 \end_layout
26497
26498 \end_inset
26499
26500 ; if it is false, the default is 
26501 \begin_inset Flex Code
26502 status collapsed
26503
26504 \begin_layout Plain Layout
26505 span
26506 \end_layout
26507
26508 \end_inset
26509
26510 .
26511 \end_layout
26512
26513 \begin_layout Subsection
26514 Float XHTML
26515 \end_layout
26516
26517 \begin_layout Standard
26518 The XHTML output for floats too can be controlled by layout information.
26519  The output has the following form:
26520 \end_layout
26521
26522 \begin_layout LyX-Code
26523 <tag attr=
26524 \begin_inset Quotes erd
26525 \end_inset
26526
26527 value
26528 \begin_inset Quotes erd
26529 \end_inset
26530
26531 >
26532 \end_layout
26533
26534 \begin_layout LyX-Code
26535 Contents of the float.
26536 \end_layout
26537
26538 \begin_layout LyX-Code
26539 </tag>
26540 \end_layout
26541
26542 \begin_layout Standard
26543 The caption, if there is one, is a separate inset and will be output as
26544  such.
26545  Its appearance can be controlled via the InsetLayout for caption insets.
26546  
26547 \end_layout
26548
26549 \begin_layout Description
26550 \begin_inset Flex Code
26551 status collapsed
26552
26553 \begin_layout Plain Layout
26554 HTMLAttr
26555 \end_layout
26556
26557 \end_inset
26558
26559  [
26560 \begin_inset Flex Code
26561 status collapsed
26562
26563 \begin_layout Plain Layout
26564 string
26565 \end_layout
26566
26567 \end_inset
26568
26569 ] Specifies attribute information to be output with the main tag.
26570  For example, 
26571 \begin_inset Quotes eld
26572 \end_inset
26573
26574
26575 \begin_inset Flex Code
26576 status collapsed
26577
26578 \begin_layout Plain Layout
26579 class=`myfloat' onclick=`\SpecialChar ldots
26580 '
26581 \end_layout
26582
26583 \end_inset
26584
26585
26586 \begin_inset Quotes erd
26587 \end_inset
26588
26589 .
26590  By default, \SpecialChar LyX
26591  will output 
26592 \begin_inset Quotes eld
26593 \end_inset
26594
26595
26596 \begin_inset Flex Code
26597 status collapsed
26598
26599 \begin_layout Plain Layout
26600 class=`float float-floattype'
26601 \end_layout
26602
26603 \end_inset
26604
26605
26606 \begin_inset Quotes erd
26607 \end_inset
26608
26609 , where 
26610 \begin_inset Flex Code
26611 status collapsed
26612
26613 \begin_layout Plain Layout
26614 floattype
26615 \end_layout
26616
26617 \end_inset
26618
26619  is \SpecialChar LyX
26620 's name for this type of float, as determined by the float declaration
26621  (see 
26622 \begin_inset CommandInset ref
26623 LatexCommand ref
26624 reference "subsec:Floats"
26625
26626 \end_inset
26627
26628 ), though made lowercase and with non-alphanumeric characters converted
26629  to underscores, for example: float-table.
26630 \end_layout
26631
26632 \begin_layout Description
26633 \begin_inset Flex Code
26634 status collapsed
26635
26636 \begin_layout Plain Layout
26637 HTMLStyle
26638 \end_layout
26639
26640 \end_inset
26641
26642  CSS style information to be included when this float is used.
26643  Note that this will automatically be wrapped in a layout-generated 
26644 \begin_inset Flex Code
26645 status collapsed
26646
26647 \begin_layout Plain Layout
26648 <style>
26649 \end_layout
26650
26651 \end_inset
26652
26653  block, so only the CSS itself need be included.
26654 \end_layout
26655
26656 \begin_layout Description
26657 \begin_inset Flex Code
26658 status collapsed
26659
26660 \begin_layout Plain Layout
26661 HTMLTag
26662 \end_layout
26663
26664 \end_inset
26665
26666  [
26667 \begin_inset Flex Code
26668 status collapsed
26669
26670 \begin_layout Plain Layout
26671 string
26672 \end_layout
26673
26674 \end_inset
26675
26676 ] The tag to be used for this float, replacing 
26677 \begin_inset Quotes eld
26678 \end_inset
26679
26680
26681 \begin_inset Flex Code
26682 status collapsed
26683
26684 \begin_layout Plain Layout
26685 tag
26686 \end_layout
26687
26688 \end_inset
26689
26690
26691 \begin_inset Quotes erd
26692 \end_inset
26693
26694  in the example above.
26695  The default is 
26696 \begin_inset Flex Code
26697 status collapsed
26698
26699 \begin_layout Plain Layout
26700 div
26701 \end_layout
26702
26703 \end_inset
26704
26705  and will rarely need changing.
26706 \end_layout
26707
26708 \begin_layout Subsection
26709 Bibliography formatting
26710 \end_layout
26711
26712 \begin_layout Standard
26713 The bibliography can be formatted using 
26714 \begin_inset Flex Code
26715 status collapsed
26716
26717 \begin_layout Plain Layout
26718 CiteFormat
26719 \end_layout
26720
26721 \end_inset
26722
26723  blocks.
26724  See 
26725 \begin_inset CommandInset ref
26726 LatexCommand ref
26727 reference "subsec:Citation-format-description"
26728
26729 \end_inset
26730
26731  for the details.
26732 \end_layout
26733
26734 \begin_layout Subsection
26735 \SpecialChar LyX
26736 -generated CSS
26737 \end_layout
26738
26739 \begin_layout Standard
26740 We have several times mentioned that \SpecialChar LyX
26741  will generate default CSS style rules
26742  for both insets and paragraph styles, based upon the other layout information
26743  that is provided.
26744  In this section, we shall say a word about which layout information \SpecialChar LyX
26745  uses
26746  and how.
26747 \end_layout
26748
26749 \begin_layout Standard
26750 At present, \SpecialChar LyX
26751  auto-generates CSS only for font information, making use of
26752  the 
26753 \begin_inset Flex Code
26754 status collapsed
26755
26756 \begin_layout Plain Layout
26757 Family
26758 \end_layout
26759
26760 \end_inset
26761
26762
26763 \begin_inset Flex Code
26764 status collapsed
26765
26766 \begin_layout Plain Layout
26767 Series
26768 \end_layout
26769
26770 \end_inset
26771
26772
26773 \begin_inset Flex Code
26774 status collapsed
26775
26776 \begin_layout Plain Layout
26777 Shape
26778 \end_layout
26779
26780 \end_inset
26781
26782 , and 
26783 \begin_inset Flex Code
26784 status collapsed
26785
26786 \begin_layout Plain Layout
26787 Size
26788 \end_layout
26789
26790 \end_inset
26791
26792  specified in the 
26793 \begin_inset Flex Code
26794 status collapsed
26795
26796 \begin_layout Plain Layout
26797 Font
26798 \end_layout
26799
26800 \end_inset
26801
26802  declaration (see 
26803 \begin_inset CommandInset ref
26804 LatexCommand ref
26805 reference "subsec:Font-description"
26806
26807 \end_inset
26808
26809 ).
26810  The translation is mostly straightforward and obvious.
26811  For example, 
26812 \begin_inset Quotes eld
26813 \end_inset
26814
26815
26816 \begin_inset Flex Code
26817 status collapsed
26818
26819 \begin_layout Plain Layout
26820 Family Sans
26821 \end_layout
26822
26823 \end_inset
26824
26825
26826 \begin_inset Quotes erd
26827 \end_inset
26828
26829  becomes 
26830 \begin_inset Quotes eld
26831 \end_inset
26832
26833
26834 \begin_inset Flex Code
26835 status collapsed
26836
26837 \begin_layout Plain Layout
26838 font-family: sans-serif;
26839 \end_layout
26840
26841 \end_inset
26842
26843
26844 \begin_inset Quotes erd
26845 \end_inset
26846
26847 .
26848  The correspondence of \SpecialChar LyX
26849  sizes and CSS sizes is a little less obvious but
26850  nonetheless intuitive.
26851  See the 
26852 \begin_inset Flex Code
26853 status collapsed
26854
26855 \begin_layout Plain Layout
26856 getSizeCSS()
26857 \end_layout
26858
26859 \end_inset
26860
26861  function in 
26862 \begin_inset Flex URL
26863 status collapsed
26864
26865 \begin_layout Plain Layout
26866
26867 src/FontInfo.cpp
26868 \end_layout
26869
26870 \end_inset
26871
26872  for the details.
26873 \change_inserted -970929547 1496610908
26874
26875 \end_layout
26876
26877 \begin_layout Section
26878
26879 \change_inserted -970929547 1496610966
26880 \begin_inset CommandInset label
26881 LatexCommand label
26882 name "sec:Tags-for-DocBook"
26883
26884 \end_inset
26885
26886 Tags for DocBook output
26887 \end_layout
26888
26889 \begin_layout Standard
26890
26891 \change_inserted -970929547 1496611615
26892 As with \SpecialChar LaTeX
26893  or XHTML, the format of \SpecialChar LyX
26894 's DocBook output is also controlled by
26895  layout information.
26896  In general, \SpecialChar LyX
26897  provides sensible defaults; however, much of the styling is
26898  lost during the conversion, as DocBook is strictly semantic and does not
26899  allow formatting.
26900  When possible, information from \SpecialChar LyX
26901  will be rendered in 
26902 \family typewriter
26903 role
26904 \family default
26905  attributes.
26906  
26907 \end_layout
26908
26909 \begin_layout Standard
26910
26911 \change_inserted -970929547 1496612080
26912 In many cases, then, you may not have to do anything at all to get acceptable
26913  DocBook output for your own environments, custom insets, and so forth.
26914  But in some cases you will, and so \SpecialChar LyX
26915  provides a number of layout tags that
26916  can be used to customize the DocBook that is generated.
26917 \end_layout
26918
26919 \begin_layout Standard
26920
26921 \change_inserted -970929547 1515109912
26922 Labels are rarely output, as they are redundant in DocBook: this information
26923  is carried by the tags themselves, and whether labels appear in the final
26924  documents (after processing of DocBook files) is controlled by the stylesheets.
26925  However, sometimes, labels are not redundant content, such as definition
26926  lists: in this case, the term being defined will be the label.
26927  
26928 \end_layout
26929
26930 \begin_layout Subsection
26931
26932 \change_inserted -970929547 1496610966
26933 \begin_inset CommandInset label
26934 LatexCommand label
26935 name "subsec:Paragraph-Style-XHTML-1"
26936
26937 \end_inset
26938
26939 Paragraph styles
26940 \end_layout
26941
26942 \begin_layout Standard
26943
26944 \change_inserted -970929547 1496612059
26945 The sort of DocBook \SpecialChar LyX
26946  outputs for a paragraph depends upon whether we are
26947  dealing with a normal paragraph, a command, or an environment, where this
26948  is itself determined by the contents of the corresponding 
26949 \begin_inset Flex Code
26950 status collapsed
26951
26952 \begin_layout Plain Layout
26953
26954 \change_inserted -970929547 1496610966
26955 \SpecialChar LaTeX
26956 Type
26957 \end_layout
26958
26959 \end_inset
26960
26961  tag.
26962  
26963 \end_layout
26964
26965 \begin_layout Standard
26966
26967 \change_inserted -970929547 1496612107
26968 For a command or normal paragraph, the output DocBook has the following
26969  form:
26970 \end_layout
26971
26972 \begin_layout LyX-Code
26973
26974 \change_inserted -970929547 1515109666
26975 <tag attr>
26976 \end_layout
26977
26978 \begin_layout LyX-Code
26979
26980 \change_inserted -970929547 1496610966
26981 Contents of the paragraph.
26982 \end_layout
26983
26984 \begin_layout LyX-Code
26985
26986 \change_inserted -970929547 1496610966
26987 </tag>
26988 \end_layout
26989
26990 \begin_layout Standard
26991
26992 \change_inserted -970929547 1515109821
26993 For an environment that is not some sort of list, the generated DocBook
26994  takes this form:
26995 \end_layout
26996
26997 \begin_layout LyX-Code
26998
26999 \change_inserted -970929547 1515109671
27000 <tag attr>
27001 \end_layout
27002
27003 \begin_layout LyX-Code
27004
27005 \change_inserted -970929547 1496612114
27006 <itemtag>First paragraph.</itemtag>
27007 \end_layout
27008
27009 \begin_layout LyX-Code
27010
27011 \change_inserted -970929547 1496610966
27012 <itemtag>Second paragraph.</itemtag>
27013 \end_layout
27014
27015 \begin_layout LyX-Code
27016
27017 \change_inserted -970929547 1496610966
27018 </tag>
27019 \end_layout
27020
27021 \begin_layout Standard
27022
27023 \change_inserted -970929547 1515109825
27024 For a list, the resulting DocBook takes this form:
27025 \end_layout
27026
27027 \begin_layout LyX-Code
27028
27029 \change_inserted -970929547 1515109672
27030 <tag attr>
27031 \end_layout
27032
27033 \begin_layout LyX-Code
27034
27035 \change_inserted -970929547 1515109676
27036 <itemtag attr>First item.</itemtag>
27037 \end_layout
27038
27039 \begin_layout LyX-Code
27040
27041 \change_inserted -970929547 1515109678
27042 <itemtag attr>Second item.</itemtag>
27043 \end_layout
27044
27045 \begin_layout LyX-Code
27046
27047 \change_inserted -970929547 1496610966
27048 </tag>
27049 \end_layout
27050
27051 \begin_layout Standard
27052
27053 \change_inserted -970929547 1496612243
27054 The specific tags and roles output for each paragraph type can be controlled
27055  by means of the layout tags we are about to describe.
27056  Please note that, due to the very nature of DocBook, no sensible defaults
27057  really exist, and the values must always be carefully chosen.
27058  
27059 \end_layout
27060
27061 \begin_layout Description
27062
27063 \change_inserted -970929547 1515110057
27064 \begin_inset Flex Code
27065 status collapsed
27066
27067 \begin_layout Plain Layout
27068
27069 \change_inserted -970929547 1515109656
27070 DocBookAttr
27071 \end_layout
27072
27073 \end_inset
27074
27075  [
27076 \begin_inset Flex Code
27077 status collapsed
27078
27079 \begin_layout Plain Layout
27080
27081 \change_inserted -970929547 1496610966
27082 string
27083 \end_layout
27084
27085 \end_inset
27086
27087 ] Specifies attribute information to be output with the main tag, replacing
27088  
27089 \begin_inset Quotes eld
27090 \end_inset
27091
27092
27093 \begin_inset Flex Code
27094 status collapsed
27095
27096 \begin_layout Plain Layout
27097
27098 \change_inserted -970929547 1515110057
27099 attr
27100 \end_layout
27101
27102 \end_inset
27103
27104
27105 \begin_inset Quotes erd
27106 \end_inset
27107
27108  in the example above.
27109  This information can be used in further processing of the DocBook files.
27110  
27111 \change_unchanged
27112
27113 \end_layout
27114
27115 \begin_layout Description
27116
27117 \change_inserted -970929547 1496612296
27118 \begin_inset Flex Code
27119 status collapsed
27120
27121 \begin_layout Plain Layout
27122
27123 \change_inserted -970929547 1496612269
27124 DocBookTag
27125 \end_layout
27126
27127 \end_inset
27128
27129  [
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134
27135 \change_inserted -970929547 1496610966
27136 string
27137 \end_layout
27138
27139 \end_inset
27140
27141 ] The tag to be used for this inset, replacing 
27142 \begin_inset Quotes eld
27143 \end_inset
27144
27145
27146 \begin_inset Flex Code
27147 status collapsed
27148
27149 \begin_layout Plain Layout
27150
27151 \change_inserted -970929547 1496612296
27152 tag
27153 \end_layout
27154
27155 \end_inset
27156
27157
27158 \begin_inset Quotes erd
27159 \end_inset
27160
27161  in the example above.
27162  The default is the name of the float and always needs to be changed, as
27163  DocBook provides no generic tag.
27164 \change_unchanged
27165
27166 \end_layout
27167
27168 \begin_layout Subsection
27169
27170 \change_inserted -970929547 1515111533
27171 InsetLayout DocBook
27172 \change_unchanged
27173
27174 \end_layout
27175
27176 \begin_layout Standard
27177
27178 \change_inserted -970929547 1496611894
27179 The DocBook output of insets can also be controlled by information in layout
27180  files.
27181 \end_layout
27182
27183 \begin_layout Standard
27184
27185 \change_inserted -970929547 1496612045
27186 The DocBook \SpecialChar LyX
27187  outputs for an inset has the following form:
27188 \end_layout
27189
27190 \begin_layout LyX-Code
27191
27192 \change_inserted -970929547 1515110861
27193 <wrappertag wrapperattr>
27194 \end_layout
27195
27196 \begin_layout LyX-Code
27197
27198 \change_inserted -970929547 1515110868
27199   <tag attr>
27200 \end_layout
27201
27202 \begin_layout LyX-Code
27203
27204 \change_inserted -970929547 1515110869
27205     <innertag innerattr>
27206 \end_layout
27207
27208 \begin_layout LyX-Code
27209
27210 \change_inserted -970929547 1515110869
27211       Contents of the inset.
27212 \end_layout
27213
27214 \begin_layout LyX-Code
27215
27216 \change_inserted -970929547 1515110870
27217     </innertag>
27218 \end_layout
27219
27220 \begin_layout LyX-Code
27221
27222 \change_inserted -970929547 1515110871
27223   </tag>
27224 \end_layout
27225
27226 \begin_layout LyX-Code
27227
27228 \change_inserted -970929547 1515111172
27229 </wrappertag>
27230 \end_layout
27231
27232 \begin_layout Standard
27233
27234 \change_inserted -970929547 1515111186
27235 For an itemising inset, it rather looks like this: 
27236 \end_layout
27237
27238 \begin_layout LyX-Code
27239
27240 \change_inserted -970929547 1515111186
27241 <wrappertag wrapperattr>
27242 \end_layout
27243
27244 \begin_layout LyX-Code
27245
27246 \change_inserted -970929547 1515111186
27247   <tag attr>
27248 \end_layout
27249
27250 \begin_layout LyX-Code
27251
27252 \change_inserted -970929547 1515111186
27253     <innertag innerattr>
27254 \end_layout
27255
27256 \begin_layout LyX-Code
27257
27258 \change_inserted -970929547 1515111362
27259       <itemwrappertag itemwrapperattr>
27260 \end_layout
27261
27262 \begin_layout LyX-Code
27263
27264 \change_inserted -970929547 1515111364
27265         <itemlabeltag itemattr>
27266 \end_layout
27267
27268 \begin_layout LyX-Code
27269
27270 \change_inserted -970929547 1515111367
27271           Label of the first item.
27272 \end_layout
27273
27274 \begin_layout LyX-Code
27275
27276 \change_inserted -970929547 1515111362
27277         </itemtag>
27278 \change_unchanged
27279
27280 \end_layout
27281
27282 \begin_layout LyX-Code
27283
27284 \change_inserted -970929547 1515111517
27285         <itemtag itemattr>
27286 \end_layout
27287
27288 \begin_layout LyX-Code
27289
27290 \change_inserted -970929547 1515111517
27291           <itemtag itemattr>
27292 \change_unchanged
27293
27294 \end_layout
27295
27296 \begin_layout LyX-Code
27297
27298 \change_inserted -970929547 1515111516
27299             Contents of the first item.
27300 \end_layout
27301
27302 \begin_layout LyX-Code
27303
27304 \change_inserted -970929547 1515111514
27305           </itemtag>
27306 \change_unchanged
27307
27308 \end_layout
27309
27310 \begin_layout LyX-Code
27311
27312 \change_inserted -970929547 1515111247
27313         </itemtag>
27314 \change_unchanged
27315
27316 \end_layout
27317
27318 \begin_layout LyX-Code
27319
27320 \change_inserted -970929547 1515111221
27321       </itemwrappertag>
27322 \end_layout
27323
27324 \begin_layout LyX-Code
27325
27326 \change_inserted -970929547 1515111370
27327       <itemwrappertag itemwrapperattr>
27328 \end_layout
27329
27330 \begin_layout LyX-Code
27331
27332 \change_inserted -970929547 1515111370
27333         <itemlabeltag itemattr>
27334 \end_layout
27335
27336 \begin_layout LyX-Code
27337
27338 \change_inserted -970929547 1515111372
27339           Label of the second item.
27340 \end_layout
27341
27342 \begin_layout LyX-Code
27343
27344 \change_inserted -970929547 1515111370
27345         </itemtag>
27346 \change_unchanged
27347
27348 \end_layout
27349
27350 \begin_layout LyX-Code
27351
27352 \change_inserted -970929547 1515111504
27353         <itemtag itemattr>
27354 \end_layout
27355
27356 \begin_layout LyX-Code
27357
27358 \change_inserted -970929547 1515111505
27359           <itemtag itemattr>
27360 \change_unchanged
27361
27362 \end_layout
27363
27364 \begin_layout LyX-Code
27365
27366 \change_inserted -970929547 1515111507
27367             Contents of the second item.
27368 \end_layout
27369
27370 \begin_layout LyX-Code
27371
27372 \change_inserted -970929547 1515111509
27373           </itemtag>
27374 \change_unchanged
27375
27376 \end_layout
27377
27378 \begin_layout LyX-Code
27379
27380 \change_inserted -970929547 1515111251
27381         </itemtag>
27382 \change_unchanged
27383
27384 \end_layout
27385
27386 \begin_layout LyX-Code
27387
27388 \change_inserted -970929547 1515111221
27389       </itemwrappertag>
27390 \change_unchanged
27391
27392 \end_layout
27393
27394 \begin_layout LyX-Code
27395
27396 \change_inserted -970929547 1515111219
27397       ...
27398 \change_unchanged
27399
27400 \end_layout
27401
27402 \begin_layout LyX-Code
27403
27404 \change_inserted -970929547 1515111186
27405     </innertag>
27406 \end_layout
27407
27408 \begin_layout LyX-Code
27409
27410 \change_inserted -970929547 1515111186
27411   </tag>
27412 \end_layout
27413
27414 \begin_layout LyX-Code
27415
27416 \change_inserted -970929547 1515111186
27417 </wrappertag>
27418 \end_layout
27419
27420 \begin_layout Standard
27421
27422 \change_inserted -970929547 1515111183
27423 If the inset permits multiple paragraphs—that is, if 
27424 \begin_inset Flex Code
27425 status collapsed
27426
27427 \begin_layout Plain Layout
27428
27429 \change_inserted -970929547 1496610966
27430 MultiPar
27431 \end_layout
27432
27433 \end_inset
27434
27435  is true—then the contents of the inset will itself be output as paragraphs
27436  formatted according to the styles used for those paragraphs (standard,
27437  quote, and the like).
27438  The inner tag is optional and, by default, does not appear.
27439 \end_layout
27440
27441 \begin_layout Standard
27442
27443 \change_inserted -970929547 1496610966
27444 The specific tags and attributes output for each inset can be controlled
27445  by means of the following layout tags.
27446 \end_layout
27447
27448 \begin_layout Description
27449
27450 \change_inserted -970929547 1515110317
27451 \begin_inset Flex Code
27452 status collapsed
27453
27454 \begin_layout Plain Layout
27455
27456 \change_inserted -970929547 1515109695
27457 DocBookAttr
27458 \end_layout
27459
27460 \end_inset
27461
27462  [
27463 \begin_inset Flex Code
27464 status collapsed
27465
27466 \begin_layout Plain Layout
27467
27468 \change_inserted -970929547 1496611854
27469 string
27470 \end_layout
27471
27472 \end_inset
27473
27474 ] Specifies attribute information to be output with the main tag, replacing
27475  
27476 \begin_inset Quotes eld
27477 \end_inset
27478
27479
27480 \begin_inset Flex Code
27481 status collapsed
27482
27483 \begin_layout Plain Layout
27484
27485 \change_inserted -970929547 1515110044
27486 attr
27487 \end_layout
27488
27489 \end_inset
27490
27491
27492 \begin_inset Quotes erd
27493 \end_inset
27494
27495  in the example above.
27496  This information can be used in further processing of the DocBook files.
27497  
27498 \end_layout
27499
27500 \begin_layout Description
27501
27502 \change_inserted -970929547 1515110973
27503 \begin_inset Flex Code
27504 status collapsed
27505
27506 \begin_layout Plain Layout
27507
27508 \change_inserted -970929547 1515110319
27509 DocBookInInfo
27510 \end_layout
27511
27512 \end_inset
27513
27514  [
27515 \begin_inset Flex Code
27516 status collapsed
27517
27518 \begin_layout Plain Layout
27519
27520 \change_inserted -970929547 1515110384
27521 never, always, maybe
27522 \end_layout
27523
27524 \end_inset
27525
27526 ] Specifies whether this tag goes into the 
27527 \begin_inset Flex Code
27528 status collapsed
27529
27530 \begin_layout Plain Layout
27531
27532 \change_inserted -970929547 1515110412
27533 <info>
27534 \end_layout
27535
27536 \end_inset
27537
27538  tag at the beginning of the parent layout.
27539  
27540 \begin_inset Flex Code
27541 status collapsed
27542
27543 \begin_layout Plain Layout
27544
27545 \change_inserted -970929547 1515110437
27546 never
27547 \end_layout
27548
27549 \end_inset
27550
27551  indicates that the tag never goes into 
27552 \begin_inset Flex Code
27553 status collapsed
27554
27555 \begin_layout Plain Layout
27556
27557 \change_inserted -970929547 1515110497
27558 <info>
27559 \end_layout
27560
27561 \end_inset
27562
27563  (this is default value, and corresponds to usual content).
27564  
27565 \begin_inset Flex Code
27566 status collapsed
27567
27568 \begin_layout Plain Layout
27569
27570 \change_inserted -970929547 1515110517
27571 always
27572 \end_layout
27573
27574 \end_inset
27575
27576  indicates that the tag always goes into 
27577 \begin_inset Flex Code
27578 status collapsed
27579
27580 \begin_layout Plain Layout
27581
27582 \change_inserted -970929547 1515110514
27583 <info>
27584 \end_layout
27585
27586 \end_inset
27587
27588  (this corresponds to usual metadata): if there is no 
27589 \begin_inset Flex Code
27590 status collapsed
27591
27592 \begin_layout Plain Layout
27593
27594 \change_inserted -970929547 1515110550
27595 <info>
27596 \end_layout
27597
27598 \end_inset
27599
27600  tag for the parent, one 
27601 \series bold
27602 will
27603 \series default
27604  be generated.
27605  
27606 \begin_inset Flex Code
27607 status collapsed
27608
27609 \begin_layout Plain Layout
27610
27611 \change_inserted -970929547 1515110540
27612 maybe
27613 \end_layout
27614
27615 \end_inset
27616
27617  indicates that the tag may go into 
27618 \begin_inset Flex Code
27619 status collapsed
27620
27621 \begin_layout Plain Layout
27622
27623 \change_inserted -970929547 1515110538
27624 <info>
27625 \end_layout
27626
27627 \end_inset
27628
27629  (this is only the case for titles): if there is no 
27630 \begin_inset Flex Code
27631 status collapsed
27632
27633 \begin_layout Plain Layout
27634
27635 \change_inserted -970929547 1515110585
27636 <info>
27637 \end_layout
27638
27639 \end_inset
27640
27641  tag for the parent, 
27642 \series bold
27643 none
27644 \series default
27645  will be generated, the corresponding tag will be output directly as content.
27646  
27647 \end_layout
27648
27649 \begin_layout Description
27650
27651 \change_inserted -970929547 1515111461
27652 \begin_inset Flex Code
27653 status collapsed
27654
27655 \begin_layout Plain Layout
27656
27657 \change_inserted -970929547 1515110974
27658 DocBookItemAttr
27659 \end_layout
27660
27661 \end_inset
27662
27663  [
27664 \begin_inset Flex Code
27665 status collapsed
27666
27667 \begin_layout Plain Layout
27668
27669 \change_inserted -970929547 1515110973
27670 string
27671 \end_layout
27672
27673 \end_inset
27674
27675 ] Specifies attribute information to be output with the item tag, replacing
27676  
27677 \begin_inset Quotes eld
27678 \end_inset
27679
27680
27681 \begin_inset Flex Code
27682 status collapsed
27683
27684 \begin_layout Plain Layout
27685
27686 \change_inserted -970929547 1515110984
27687 itemattr
27688 \end_layout
27689
27690 \end_inset
27691
27692
27693 \begin_inset Quotes erd
27694 \end_inset
27695
27696  in the example above.
27697  This information can be used in further processing of the DocBook files.
27698  
27699 \end_layout
27700
27701 \begin_layout Description
27702
27703 \change_inserted -970929547 1515111471
27704 \begin_inset Flex Code
27705 status collapsed
27706
27707 \begin_layout Plain Layout
27708
27709 \change_inserted -970929547 1515111465
27710 DocBookItemInnerAttr
27711 \end_layout
27712
27713 \end_inset
27714
27715  [
27716 \begin_inset Flex Code
27717 status collapsed
27718
27719 \begin_layout Plain Layout
27720
27721 \change_inserted -970929547 1515111461
27722 string
27723 \end_layout
27724
27725 \end_inset
27726
27727 ] Specifies attribute information to be output with the item inner tag,
27728  replacing 
27729 \begin_inset Quotes eld
27730 \end_inset
27731
27732
27733 \begin_inset Flex Code
27734 status collapsed
27735
27736 \begin_layout Plain Layout
27737
27738 \change_inserted -970929547 1515111476
27739 iteminnerattr
27740 \end_layout
27741
27742 \end_inset
27743
27744
27745 \begin_inset Quotes erd
27746 \end_inset
27747
27748  in the example above.
27749  This information can be used in further processing of the DocBook files.
27750  
27751 \end_layout
27752
27753 \begin_layout Description
27754
27755 \change_inserted -970929547 1515111494
27756 \begin_inset Flex Code
27757 status collapsed
27758
27759 \begin_layout Plain Layout
27760
27761 \change_inserted -970929547 1515111467
27762 DocBookItemInnerTag
27763 \end_layout
27764
27765 \end_inset
27766
27767  [
27768 \begin_inset Flex Code
27769 status collapsed
27770
27771 \begin_layout Plain Layout
27772
27773 \change_inserted -970929547 1515111461
27774 string
27775 \end_layout
27776
27777 \end_inset
27778
27779 ] The tag to be used for the item inner tag within the inset, replacing
27780  
27781 \begin_inset Quotes eld
27782 \end_inset
27783
27784
27785 \begin_inset Flex Code
27786 status collapsed
27787
27788 \begin_layout Plain Layout
27789
27790 \change_inserted -970929547 1515111486
27791 iteminnertag
27792 \end_layout
27793
27794 \end_inset
27795
27796
27797 \begin_inset Quotes erd
27798 \end_inset
27799
27800  in the example above.
27801  The default is 
27802 \begin_inset Flex Code
27803 status collapsed
27804
27805 \begin_layout Plain Layout
27806
27807 \change_inserted -970929547 1515111461
27808 NONE
27809 \end_layout
27810
27811 \end_inset
27812
27813 , indicating that there is no item inner tag: content is directly output
27814  without it for each itemised element.
27815  This parameter only makes sense when itemising layouts are used, such as
27816  lists.
27817  
27818 \change_unchanged
27819
27820 \end_layout
27821
27822 \begin_layout Description
27823
27824 \change_inserted -970929547 1515111290
27825 \begin_inset Flex Code
27826 status collapsed
27827
27828 \begin_layout Plain Layout
27829
27830 \change_inserted -970929547 1515111283
27831 DocBookItemLabelAttr
27832 \end_layout
27833
27834 \end_inset
27835
27836  [
27837 \begin_inset Flex Code
27838 status collapsed
27839
27840 \begin_layout Plain Layout
27841
27842 \change_inserted -970929547 1515111279
27843 string
27844 \end_layout
27845
27846 \end_inset
27847
27848 ] Specifies attribute information to be output with the item label tag,
27849  replacing 
27850 \begin_inset Quotes eld
27851 \end_inset
27852
27853
27854 \begin_inset Flex Code
27855 status collapsed
27856
27857 \begin_layout Plain Layout
27858
27859 \change_inserted -970929547 1515111304
27860 itemlabelattr
27861 \end_layout
27862
27863 \end_inset
27864
27865
27866 \begin_inset Quotes erd
27867 \end_inset
27868
27869  in the example above.
27870  This information can be used in further processing of the DocBook files.
27871  
27872 \end_layout
27873
27874 \begin_layout Description
27875
27876 \change_inserted -970929547 1515111337
27877 \begin_inset Flex Code
27878 status collapsed
27879
27880 \begin_layout Plain Layout
27881
27882 \change_inserted -970929547 1515111285
27883 DocBookItemLabelTag
27884 \end_layout
27885
27886 \end_inset
27887
27888  [
27889 \begin_inset Flex Code
27890 status collapsed
27891
27892 \begin_layout Plain Layout
27893
27894 \change_inserted -970929547 1515111279
27895 string
27896 \end_layout
27897
27898 \end_inset
27899
27900 ] The tag to be used for the item label tag within the inset, replacing
27901  
27902 \begin_inset Quotes eld
27903 \end_inset
27904
27905
27906 \begin_inset Flex Code
27907 status collapsed
27908
27909 \begin_layout Plain Layout
27910
27911 \change_inserted -970929547 1515111311
27912 itemlabeltag
27913 \end_layout
27914
27915 \end_inset
27916
27917
27918 \begin_inset Quotes erd
27919 \end_inset
27920
27921  in the example above.
27922  This parameter only makes sense when itemising layouts are used with a
27923  notion of labels, such as definition lists.
27924  
27925 \change_unchanged
27926
27927 \end_layout
27928
27929 \begin_layout Description
27930
27931 \change_inserted -970929547 1515111124
27932 \begin_inset Flex Code
27933 status collapsed
27934
27935 \begin_layout Plain Layout
27936
27937 \change_inserted -970929547 1515111060
27938 DocBookItemTag
27939 \end_layout
27940
27941 \end_inset
27942
27943  [
27944 \begin_inset Flex Code
27945 status collapsed
27946
27947 \begin_layout Plain Layout
27948
27949 \change_inserted -970929547 1515111060
27950 string
27951 \end_layout
27952
27953 \end_inset
27954
27955 ] The tag to be used for the item tag within the inset, replacing 
27956 \begin_inset Quotes eld
27957 \end_inset
27958
27959
27960 \begin_inset Flex Code
27961 status collapsed
27962
27963 \begin_layout Plain Layout
27964
27965 \change_inserted -970929547 1515111060
27966 itemtag
27967 \end_layout
27968
27969 \end_inset
27970
27971
27972 \begin_inset Quotes erd
27973 \end_inset
27974
27975  in the example above.
27976  The default is 
27977 \begin_inset Flex Code
27978 status collapsed
27979
27980 \begin_layout Plain Layout
27981
27982 \change_inserted -970929547 1515111060
27983 NONE
27984 \end_layout
27985
27986 \end_inset
27987
27988 , indicating that there is no item tag.
27989  This parameter only makes sense when itemising layouts are used, such as
27990  lists.
27991  
27992 \end_layout
27993
27994 \begin_layout Description
27995
27996 \change_inserted -970929547 1515111298
27997 \begin_inset Flex Code
27998 status collapsed
27999
28000 \begin_layout Plain Layout
28001
28002 \change_inserted -970929547 1515111124
28003 DocBookItemWrapperAttr
28004 \end_layout
28005
28006 \end_inset
28007
28008  [
28009 \begin_inset Flex Code
28010 status collapsed
28011
28012 \begin_layout Plain Layout
28013
28014 \change_inserted -970929547 1515111124
28015 string
28016 \end_layout
28017
28018 \end_inset
28019
28020 ] Specifies attribute information to be output with the item wrapper tag,
28021  replacing 
28022 \begin_inset Quotes eld
28023 \end_inset
28024
28025
28026 \begin_inset Flex Code
28027 status collapsed
28028
28029 \begin_layout Plain Layout
28030
28031 \change_inserted -970929547 1515111150
28032 itemwrapperattr
28033 \end_layout
28034
28035 \end_inset
28036
28037
28038 \begin_inset Quotes erd
28039 \end_inset
28040
28041  in the example above.
28042  This information can be used in further processing of the DocBook files.
28043  
28044 \change_unchanged
28045
28046 \end_layout
28047
28048 \begin_layout Description
28049
28050 \change_inserted -970929547 1515111113
28051 \begin_inset Flex Code
28052 status collapsed
28053
28054 \begin_layout Plain Layout
28055
28056 \change_inserted -970929547 1515111073
28057 DocBookItemWrapperTag
28058 \end_layout
28059
28060 \end_inset
28061
28062  [
28063 \begin_inset Flex Code
28064 status collapsed
28065
28066 \begin_layout Plain Layout
28067
28068 \change_inserted -970929547 1515111073
28069 string
28070 \end_layout
28071
28072 \end_inset
28073
28074 ] The tag to be used for the item wrapper tag within the inset, replacing
28075  
28076 \begin_inset Quotes eld
28077 \end_inset
28078
28079
28080 \begin_inset Flex Code
28081 status collapsed
28082
28083 \begin_layout Plain Layout
28084
28085 \change_inserted -970929547 1515111083
28086 itemwrappertag
28087 \end_layout
28088
28089 \end_inset
28090
28091
28092 \begin_inset Quotes erd
28093 \end_inset
28094
28095  in the example above.
28096  The default is 
28097 \begin_inset Flex Code
28098 status collapsed
28099
28100 \begin_layout Plain Layout
28101
28102 \change_inserted -970929547 1515111073
28103 NONE
28104 \end_layout
28105
28106 \end_inset
28107
28108 , indicating that there is no item wrapper tag: tag and content are directly
28109  output without it for each itemised element.
28110  This parameter only makes sense when itemising layouts are used, such as
28111  lists.
28112  
28113 \change_unchanged
28114
28115 \end_layout
28116
28117 \begin_layout Description
28118
28119 \change_inserted -970929547 1515110104
28120 \begin_inset Flex Code
28121 status collapsed
28122
28123 \begin_layout Plain Layout
28124
28125 \change_inserted -970929547 1515110104
28126 DocBookInnerAttr
28127 \end_layout
28128
28129 \end_inset
28130
28131  [
28132 \begin_inset Flex Code
28133 status collapsed
28134
28135 \begin_layout Plain Layout
28136
28137 \change_inserted -970929547 1515110104
28138 string
28139 \end_layout
28140
28141 \end_inset
28142
28143 ] Specifies attribute information to be output with the inner tag, replacing
28144  
28145 \begin_inset Quotes eld
28146 \end_inset
28147
28148
28149 \begin_inset Flex Code
28150 status collapsed
28151
28152 \begin_layout Plain Layout
28153
28154 \change_inserted -970929547 1515110104
28155 innerattr
28156 \end_layout
28157
28158 \end_inset
28159
28160
28161 \begin_inset Quotes erd
28162 \end_inset
28163
28164  in the example above.
28165  This information can be used in further processing of the DocBook files.
28166  
28167 \end_layout
28168
28169 \begin_layout Description
28170
28171 \change_inserted -970929547 1515110906
28172 \begin_inset Flex Code
28173 status collapsed
28174
28175 \begin_layout Plain Layout
28176
28177 \change_inserted -970929547 1515110104
28178 DocBookInnerTag
28179 \end_layout
28180
28181 \end_inset
28182
28183  [
28184 \begin_inset Flex Code
28185 status collapsed
28186
28187 \begin_layout Plain Layout
28188
28189 \change_inserted -970929547 1515110104
28190 string
28191 \end_layout
28192
28193 \end_inset
28194
28195 ] The tag to be used for the inner tag within the inset, replacing 
28196 \begin_inset Quotes eld
28197 \end_inset
28198
28199
28200 \begin_inset Flex Code
28201 status collapsed
28202
28203 \begin_layout Plain Layout
28204
28205 \change_inserted -970929547 1515110104
28206 innertag
28207 \end_layout
28208
28209 \end_inset
28210
28211
28212 \begin_inset Quotes erd
28213 \end_inset
28214
28215  in the example above.
28216  The default is 
28217 \begin_inset Flex Code
28218 status collapsed
28219
28220 \begin_layout Plain Layout
28221
28222 \change_inserted -970929547 1515110791
28223 NONE
28224 \end_layout
28225
28226 \end_inset
28227
28228 , indicating that there is no inner tag: content is directly output without
28229  it.
28230 \end_layout
28231
28232 \begin_layout Description
28233
28234 \change_inserted -970929547 1515110753
28235 \begin_inset Flex Code
28236 status collapsed
28237
28238 \begin_layout Plain Layout
28239
28240 \change_inserted -970929547 1515110665
28241 DocBookSectionTag
28242 \end_layout
28243
28244 \end_inset
28245
28246  [
28247 \begin_inset Flex Code
28248 status collapsed
28249
28250 \begin_layout Plain Layout
28251
28252 \change_inserted -970929547 1515110661
28253 string
28254 \end_layout
28255
28256 \end_inset
28257
28258 ] Specifies the tag that corresponds to this kind of section.
28259  This parameter only makes sense for sectioning elements (part, chapter,
28260  section, etc.).
28261  The default value is 
28262 \begin_inset Flex Code
28263 status collapsed
28264
28265 \begin_layout Plain Layout
28266
28267 \change_inserted -970929547 1515110721
28268 section
28269 \end_layout
28270
28271 \end_inset
28272
28273 , and is only overridden when DocBook uses something else for sectioning
28274  (parts and chapters of a book).
28275  
28276 \change_unchanged
28277
28278 \end_layout
28279
28280 \begin_layout Description
28281
28282 \change_inserted -970929547 1515110811
28283 \begin_inset Flex Code
28284 status collapsed
28285
28286 \begin_layout Plain Layout
28287
28288 \change_inserted -970929547 1496612023
28289 DocBookTag
28290 \end_layout
28291
28292 \end_inset
28293
28294  [
28295 \begin_inset Flex Code
28296 status collapsed
28297
28298 \begin_layout Plain Layout
28299
28300 \change_inserted -970929547 1496610966
28301 string
28302 \end_layout
28303
28304 \end_inset
28305
28306 ] The tag to be used for this inset, replacing 
28307 \begin_inset Quotes eld
28308 \end_inset
28309
28310
28311 \begin_inset Flex Code
28312 status collapsed
28313
28314 \begin_layout Plain Layout
28315
28316 \change_inserted -970929547 1496612033
28317 tag
28318 \end_layout
28319
28320 \end_inset
28321
28322
28323 \begin_inset Quotes erd
28324 \end_inset
28325
28326  in the example above.
28327  The default is the name of the float and always needs to be changed, as
28328  DocBook provides no generic inset tag.
28329 \end_layout
28330
28331 \begin_layout Description
28332
28333 \change_inserted -970929547 1515110832
28334 \begin_inset Flex Code
28335 status collapsed
28336
28337 \begin_layout Plain Layout
28338
28339 \change_inserted -970929547 1515110822
28340 DocBookWrapperAttr
28341 \end_layout
28342
28343 \end_inset
28344
28345  [
28346 \begin_inset Flex Code
28347 status collapsed
28348
28349 \begin_layout Plain Layout
28350
28351 \change_inserted -970929547 1515110811
28352 string
28353 \end_layout
28354
28355 \end_inset
28356
28357 ] Specifies attribute information to be output with the outer tag, replacing
28358  
28359 \begin_inset Quotes eld
28360 \end_inset
28361
28362
28363 \begin_inset Flex Code
28364 status collapsed
28365
28366 \begin_layout Plain Layout
28367
28368 \change_inserted -970929547 1515110845
28369 wrapperattr
28370 \end_layout
28371
28372 \end_inset
28373
28374
28375 \begin_inset Quotes erd
28376 \end_inset
28377
28378  in the example above.
28379  This information can be used in further processing of the DocBook files.
28380  
28381 \end_layout
28382
28383 \begin_layout Description
28384
28385 \change_inserted -970929547 1515110917
28386 \begin_inset Flex Code
28387 status collapsed
28388
28389 \begin_layout Plain Layout
28390
28391 \change_inserted -970929547 1515110826
28392 DocBookWrapperTag
28393 \end_layout
28394
28395 \end_inset
28396
28397  [
28398 \begin_inset Flex Code
28399 status collapsed
28400
28401 \begin_layout Plain Layout
28402
28403 \change_inserted -970929547 1515110811
28404 string
28405 \end_layout
28406
28407 \end_inset
28408
28409 ] The tag to be used for the wrapper tag around the inset, replacing 
28410 \begin_inset Quotes eld
28411 \end_inset
28412
28413
28414 \begin_inset Flex Code
28415 status collapsed
28416
28417 \begin_layout Plain Layout
28418
28419 \change_inserted -970929547 1515110842
28420 wrappertag
28421 \end_layout
28422
28423 \end_inset
28424
28425
28426 \begin_inset Quotes erd
28427 \end_inset
28428
28429  in the example above.
28430  The default is 
28431 \begin_inset Flex Code
28432 status collapsed
28433
28434 \begin_layout Plain Layout
28435
28436 \change_inserted -970929547 1515110811
28437 NONE
28438 \end_layout
28439
28440 \end_inset
28441
28442 , indicating that there is no wrapper tag: tag and content are directly
28443  output without it.
28444 \change_deleted -970929547 1515111523
28445
28446 \end_layout
28447
28448 \begin_layout Subsection
28449
28450 \change_inserted -970929547 1515110040
28451 Float DocBook
28452 \end_layout
28453
28454 \begin_layout Standard
28455
28456 \change_inserted -970929547 1496611700
28457 The DocBook output for floats too can be controlled by layout information.
28458  The output has the following form:
28459 \end_layout
28460
28461 \begin_layout LyX-Code
28462
28463 \change_inserted -970929547 1515109700
28464 <tag attr>
28465 \end_layout
28466
28467 \begin_layout LyX-Code
28468
28469 \change_inserted -970929547 1515110138
28470   Contents of the float as DocBook.
28471 \end_layout
28472
28473 \begin_layout LyX-Code
28474
28475 \change_inserted -970929547 1496610966
28476 </tag>
28477 \end_layout
28478
28479 \begin_layout Standard
28480
28481 \change_inserted -970929547 1496611715
28482 The caption, if there is one, is a separate inset and will be output as
28483  a title.
28484  
28485 \end_layout
28486
28487 \begin_layout Description
28488
28489 \change_inserted -970929547 1515110033
28490 \begin_inset Flex Code
28491 status collapsed
28492
28493 \begin_layout Plain Layout
28494
28495 \change_inserted -970929547 1515109702
28496 DocBookAttr
28497 \end_layout
28498
28499 \end_inset
28500
28501  [
28502 \begin_inset Flex Code
28503 status collapsed
28504
28505 \begin_layout Plain Layout
28506
28507 \change_inserted -970929547 1496610966
28508 string
28509 \end_layout
28510
28511 \end_inset
28512
28513 ] Specifies attribute information to be output with the main tag, replacing
28514  
28515 \begin_inset Quotes eld
28516 \end_inset
28517
28518
28519 \begin_inset Flex Code
28520 status collapsed
28521
28522 \begin_layout Plain Layout
28523
28524 \change_inserted -970929547 1515110035
28525 attr
28526 \end_layout
28527
28528 \end_inset
28529
28530
28531 \begin_inset Quotes erd
28532 \end_inset
28533
28534  in the example above.
28535  This information can be used in further processing of the DocBook files.
28536  
28537 \end_layout
28538
28539 \begin_layout Description
28540
28541 \change_inserted -970929547 1515110157
28542 \begin_inset Flex Code
28543 status collapsed
28544
28545 \begin_layout Plain Layout
28546
28547 \change_inserted -970929547 1496611782
28548 DocBookTag
28549 \end_layout
28550
28551 \end_inset
28552
28553  [
28554 \begin_inset Flex Code
28555 status collapsed
28556
28557 \begin_layout Plain Layout
28558
28559 \change_inserted -970929547 1496610966
28560 string
28561 \end_layout
28562
28563 \end_inset
28564
28565 ] The tag to be used for this float, replacing 
28566 \begin_inset Quotes eld
28567 \end_inset
28568
28569
28570 \begin_inset Flex Code
28571 status collapsed
28572
28573 \begin_layout Plain Layout
28574
28575 \change_inserted -970929547 1496610966
28576 tag
28577 \end_layout
28578
28579 \end_inset
28580
28581
28582 \begin_inset Quotes erd
28583 \end_inset
28584
28585  in the example above.
28586  The default is the name of the float and always needs to be changed, as
28587  DocBook provides no generic float tag.
28588 \end_layout
28589
28590 \begin_layout Subsection
28591
28592 \change_inserted -970929547 1515110157
28593 Bibliography formatting
28594 \end_layout
28595
28596 \begin_layout Standard
28597
28598 \change_inserted -970929547 1515110187
28599 The bibliography cannot be formatted: all fields are always output in the
28600  database-like DocBook format (equivalent to a BibTeX file).
28601 \change_unchanged
28602
28603 \end_layout
28604
28605 \begin_layout Chapter
28606 Including External Material
28607 \begin_inset CommandInset label
28608 LatexCommand label
28609 name "chap:Including-External-Material"
28610
28611 \end_inset
28612
28613
28614 \end_layout
28615
28616 \begin_layout Standard
28617 \begin_inset Box Shadowbox
28618 position "t"
28619 hor_pos "c"
28620 has_inner_box 1
28621 inner_pos "t"
28622 use_parbox 0
28623 use_makebox 0
28624 width "100col%"
28625 special "none"
28626 height "1in"
28627 height_special "totalheight"
28628 thickness "0.4pt"
28629 separation "3pt"
28630 shadowsize "4pt"
28631 framecolor "black"
28632 backgroundcolor "none"
28633 status open
28634
28635 \begin_layout Plain Layout
28636 WARNING: This portion of the documentation has not been updated for some
28637  time.
28638  We certainly hope that it is still accurate, but there are no guarantees.
28639 \end_layout
28640
28641 \end_inset
28642
28643
28644 \end_layout
28645
28646 \begin_layout Standard
28647 The use of material from sources external to \SpecialChar LyX
28648  is covered in detail in the
28649  
28650 \emph on
28651 Embedded Objects
28652 \emph default
28653  manual.
28654  This part of the manual covers what needs to happen behind the scenes for
28655  new sorts of material to be included.
28656 \end_layout
28657
28658 \begin_layout Section
28659 How does it work?
28660 \end_layout
28661
28662 \begin_layout Standard
28663 The external material feature is based on the concept of a 
28664 \emph on
28665 template
28666 \emph default
28667 .
28668  A template is a specification of how \SpecialChar LyX
28669  should interface with a certain kind
28670  of material.
28671  As bundled, \SpecialChar LyX
28672  comes with predefined templates for Xfig figures, various
28673  raster format images, chess diagrams, and LilyPond music notation.
28674  You can check the actual list by using the menu 
28675 \begin_inset Flex Noun
28676 status collapsed
28677
28678 \begin_layout Plain Layout
28679 Insert\SpecialChar menuseparator
28680 File\SpecialChar menuseparator
28681 External Material
28682 \end_layout
28683
28684 \end_inset
28685
28686 .
28687  Furthermore, it is possible to roll your own template to support a specific
28688  kind of material.
28689  Later we'll describe in more detail what is involved, and hopefully you
28690  will submit all the templates you create so we can include them in a later
28691  \SpecialChar LyX
28692  version.
28693 \end_layout
28694
28695 \begin_layout Standard
28696 Another basic idea of the external material feature is to distinguish between
28697  the original file that serves as a base for final material and the produced
28698  file that is included in your exported or printed document.
28699  For example, consider the case of a figure produced with 
28700 \begin_inset Flex Code
28701 status collapsed
28702
28703 \begin_layout Plain Layout
28704 Xfig
28705 \end_layout
28706
28707 \end_inset
28708
28709 .
28710  The Xfig application itself works on an original file with the 
28711 \begin_inset Flex Code
28712 status collapsed
28713
28714 \begin_layout Plain Layout
28715 .fig
28716 \end_layout
28717
28718 \end_inset
28719
28720  extension.
28721  Within Xfig, you create and change your figure, and when you are done,
28722  you save the 
28723 \begin_inset Flex Code
28724 status collapsed
28725
28726 \begin_layout Plain Layout
28727 fig
28728 \end_layout
28729
28730 \end_inset
28731
28732 -file.
28733  When you want to include the figure in your document, you invoke 
28734 \begin_inset Flex Code
28735 status collapsed
28736
28737 \begin_layout Plain Layout
28738 transfig
28739 \end_layout
28740
28741 \end_inset
28742
28743  in order to create a PostScript file that can readily be included in your
28744  \SpecialChar LaTeX
28745  file.
28746  In this case, the 
28747 \begin_inset Flex Code
28748 status collapsed
28749
28750 \begin_layout Plain Layout
28751 .fig
28752 \end_layout
28753
28754 \end_inset
28755
28756  file is the original file, and the PostScript file is the produced file.
28757 \end_layout
28758
28759 \begin_layout Standard
28760 This distinction is important in order to allow updating of the material
28761  while you are in the process of writing the document.
28762  Furthermore, it provides us with the flexibility that is needed to support
28763  multiple export formats.
28764  For instance, in the case of a plain text file, it is not exactly an award-winn
28765 ing idea to include the figure as raw PostScript.
28766  Instead, you would either prefer to just include a reference to the figure
28767  or try to invoke some graphics to ASCII converter to make the final result
28768  look similar to the real graphics.
28769  The external material management allows you to do this, because it is parametri
28770 zed on the different export formats that \SpecialChar LyX
28771  supports.
28772 \end_layout
28773
28774 \begin_layout Standard
28775 Besides supporting the production of different products according to the
28776  exported format, it supports tight integration with editing and viewing
28777  applications.
28778  In the case of an Xfig figure, you are able to invoke Xfig on the original
28779  file with a single click from within the external material dialog in \SpecialChar LyX
28780 ,
28781  and also preview the produced PostScript file with Ghostview with another
28782  click.
28783  No more fiddling around with the command line and/or file browsers to locate
28784  and manipulate the original or produced files.
28785  In this way, you are finally able to take full advantage of the many different
28786  applications that are relevant to use when you write your documents, and
28787  ultimately be more productive.
28788 \end_layout
28789
28790 \begin_layout Section
28791 The external template configuration files
28792 \end_layout
28793
28794 \begin_layout Standard
28795 It is relatively easy to add custom external template definitions to \SpecialChar LyX
28796 .
28797  However, be aware that doing this in an careless manner most probably 
28798 \emph on
28799 will
28800 \emph default
28801  introduce an easily exploitable security hole.
28802  So before you do this, please read the discussion about security in 
28803 \begin_inset CommandInset ref
28804 LatexCommand ref
28805 reference "sec:Security-discussion"
28806
28807 \end_inset
28808
28809 .
28810 \end_layout
28811
28812 \begin_layout Standard
28813 Having said that, we encourage you to submit any interesting templates that
28814  you create.
28815  
28816 \end_layout
28817
28818 \begin_layout Standard
28819 The external templates are defined in the 
28820 \begin_inset Flex Code
28821 status collapsed
28822
28823 \begin_layout Plain Layout
28824 *.xtemplate
28825 \end_layout
28826
28827 \end_inset
28828
28829  files that are stored in the 
28830 \begin_inset Flex Code
28831 status collapsed
28832
28833 \begin_layout Plain Layout
28834 LyXDir/lib/xtemplates/
28835 \end_layout
28836
28837 \end_inset
28838
28839  directory.
28840  Each template is defined in a file of its own.
28841  You can place your own templates in 
28842 \begin_inset Flex Code
28843 status collapsed
28844
28845 \begin_layout Plain Layout
28846 UserDir/xtemplates/
28847 \end_layout
28848
28849 \end_inset
28850
28851  or copy existing templates to that directory in order to modify them.
28852 \end_layout
28853
28854 \begin_layout Standard
28855 A typical template looks like this:
28856 \end_layout
28857
28858 \begin_layout LyX-Code
28859 Template XFig
28860 \end_layout
28861
28862 \begin_layout LyX-Code
28863 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
28864 \end_layout
28865
28866 \begin_layout LyX-Code
28867 HelpText
28868 \end_layout
28869
28870 \begin_layout LyX-Code
28871 An XFig figure.
28872 \end_layout
28873
28874 \begin_layout LyX-Code
28875 HelpTextEnd
28876 \end_layout
28877
28878 \begin_layout LyX-Code
28879 InputFormat fig
28880 \end_layout
28881
28882 \begin_layout LyX-Code
28883 FileFilter "*.fig"
28884 \end_layout
28885
28886 \begin_layout LyX-Code
28887 AutomaticProduction true
28888 \end_layout
28889
28890 \begin_layout LyX-Code
28891 Transform Rotate
28892 \end_layout
28893
28894 \begin_layout LyX-Code
28895 Transform Resize
28896 \end_layout
28897
28898 \begin_layout LyX-Code
28899 Format LaTeX
28900 \end_layout
28901
28902 \begin_layout LyX-Code
28903 TransformCommand Rotate RotationLatexCommand
28904 \end_layout
28905
28906 \begin_layout LyX-Code
28907 TransformCommand Resize ResizeLatexCommand
28908 \end_layout
28909
28910 \begin_layout LyX-Code
28911 Product "$$RotateFront$$ResizeFront
28912 \end_layout
28913
28914 \begin_layout LyX-Code
28915          
28916 \backslash
28917
28918 \backslash
28919 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
28920 \end_layout
28921
28922 \begin_layout LyX-Code
28923          $$ResizeBack$$RotateBack"
28924 \end_layout
28925
28926 \begin_layout LyX-Code
28927 UpdateFormat pstex
28928 \end_layout
28929
28930 \begin_layout LyX-Code
28931 UpdateResult "$$AbsPath$$Basename.pstex_t"
28932 \end_layout
28933
28934 \begin_layout LyX-Code
28935 Requirement "graphicx"
28936 \end_layout
28937
28938 \begin_layout LyX-Code
28939 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28940 \end_layout
28941
28942 \begin_layout LyX-Code
28943 ReferencedFile latex "$$AbsPath$$Basename.eps"
28944 \end_layout
28945
28946 \begin_layout LyX-Code
28947 ReferencedFile dvi "$$AbsPath$$Basename.eps"
28948 \end_layout
28949
28950 \begin_layout LyX-Code
28951 FormatEnd
28952 \end_layout
28953
28954 \begin_layout LyX-Code
28955 Format PDFLaTeX
28956 \end_layout
28957
28958 \begin_layout LyX-Code
28959 TransformCommand Rotate RotationLatexCommand
28960 \end_layout
28961
28962 \begin_layout LyX-Code
28963 TransformCommand Resize ResizeLatexCommand
28964 \end_layout
28965
28966 \begin_layout LyX-Code
28967 Product "$$RotateFront$$ResizeFront
28968 \end_layout
28969
28970 \begin_layout LyX-Code
28971          
28972 \backslash
28973
28974 \backslash
28975 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
28976 \end_layout
28977
28978 \begin_layout LyX-Code
28979          $$ResizeBack$$RotateBack"
28980 \end_layout
28981
28982 \begin_layout LyX-Code
28983 UpdateFormat pdftex
28984 \end_layout
28985
28986 \begin_layout LyX-Code
28987 UpdateResult "$$AbsPath$$Basename.pdftex_t"
28988 \end_layout
28989
28990 \begin_layout LyX-Code
28991 Requirement "graphicx"
28992 \end_layout
28993
28994 \begin_layout LyX-Code
28995 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
28996 \end_layout
28997
28998 \begin_layout LyX-Code
28999 ReferencedFile latex "$$AbsPath$$Basename.pdf"
29000 \end_layout
29001
29002 \begin_layout LyX-Code
29003 FormatEnd
29004 \end_layout
29005
29006 \begin_layout LyX-Code
29007 Format Ascii
29008 \end_layout
29009
29010 \begin_layout LyX-Code
29011 Product "[XFig: $$FName]"
29012 \end_layout
29013
29014 \begin_layout LyX-Code
29015 FormatEnd
29016 \end_layout
29017
29018 \begin_layout LyX-Code
29019 Format DocBook
29020 \end_layout
29021
29022 \begin_layout LyX-Code
29023 Product "<graphic fileref=
29024 \backslash
29025 "$$AbsOrRelPathMaster$$Basename.eps
29026 \backslash
29027 ">
29028 \end_layout
29029
29030 \begin_layout LyX-Code
29031          </graphic>"
29032 \end_layout
29033
29034 \begin_layout LyX-Code
29035 UpdateFormat eps
29036 \end_layout
29037
29038 \begin_layout LyX-Code
29039 UpdateResult "$$AbsPath$$Basename.eps"
29040 \end_layout
29041
29042 \begin_layout LyX-Code
29043 ReferencedFile docbook "$$AbsPath$$Basename.eps"
29044 \end_layout
29045
29046 \begin_layout LyX-Code
29047 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
29048 \end_layout
29049
29050 \begin_layout LyX-Code
29051 FormatEnd
29052 \end_layout
29053
29054 \begin_layout LyX-Code
29055 TemplateEnd
29056 \end_layout
29057
29058 \begin_layout Standard
29059 As you can see, the template is enclosed in 
29060 \begin_inset Flex Code
29061 status collapsed
29062
29063 \begin_layout Plain Layout
29064 Template
29065 \end_layout
29066
29067 \end_inset
29068
29069  \SpecialChar ldots
29070  
29071 \begin_inset Flex Code
29072 status collapsed
29073
29074 \begin_layout Plain Layout
29075 TemplateEnd
29076 \end_layout
29077
29078 \end_inset
29079
29080 .
29081  It contains a header specifying some general settings and, for each supported
29082  primary document file format, a section 
29083 \begin_inset Flex Code
29084 status collapsed
29085
29086 \begin_layout Plain Layout
29087 Format
29088 \end_layout
29089
29090 \end_inset
29091
29092  \SpecialChar ldots
29093  
29094 \begin_inset Flex Code
29095 status collapsed
29096
29097 \begin_layout Plain Layout
29098 FormatEnd
29099 \end_layout
29100
29101 \end_inset
29102
29103 .
29104 \end_layout
29105
29106 \begin_layout Subsection
29107 The template header
29108 \end_layout
29109
29110 \begin_layout Description
29111 \begin_inset Flex Code
29112 status collapsed
29113
29114 \begin_layout Plain Layout
29115 AutomaticProduction
29116 \begin_inset space ~
29117 \end_inset
29118
29119 true|false
29120 \end_layout
29121
29122 \end_inset
29123
29124  Whether the file represented by the template must be generated by \SpecialChar LyX
29125 .
29126  This command must occur exactly once.
29127 \end_layout
29128
29129 \begin_layout Description
29130 \begin_inset Flex Code
29131 status collapsed
29132
29133 \begin_layout Plain Layout
29134 FileFilter
29135 \begin_inset space ~
29136 \end_inset
29137
29138 <pattern>
29139 \end_layout
29140
29141 \end_inset
29142
29143  A glob pattern that is used in the file dialog to filter out the desired
29144  files.
29145  If there is more than one possible file extension (e.
29146 \begin_inset space \thinspace{}
29147 \end_inset
29148
29149 g.
29150 \begin_inset space \space{}
29151 \end_inset
29152
29153 tgif has 
29154 \begin_inset Flex Code
29155 status collapsed
29156
29157 \begin_layout Plain Layout
29158 .obj
29159 \end_layout
29160
29161 \end_inset
29162
29163  and 
29164 \begin_inset Flex Code
29165 status collapsed
29166
29167 \begin_layout Plain Layout
29168 .tgo
29169 \end_layout
29170
29171 \end_inset
29172
29173 ), use something like 
29174 \begin_inset Flex Code
29175 status collapsed
29176
29177 \begin_layout Plain Layout
29178 "*.{obj,tgo}"
29179 \end_layout
29180
29181 \end_inset
29182
29183 .
29184  This command must occur exactly once.
29185 \end_layout
29186
29187 \begin_layout Description
29188 \begin_inset Flex Code
29189 status collapsed
29190
29191 \begin_layout Plain Layout
29192 GuiName
29193 \begin_inset space ~
29194 \end_inset
29195
29196 <guiname>
29197 \end_layout
29198
29199 \end_inset
29200
29201  The text that is displayed on the button.
29202  This command must occur exactly once.
29203 \end_layout
29204
29205 \begin_layout Description
29206 \begin_inset Flex Code
29207 status collapsed
29208
29209 \begin_layout Plain Layout
29210 HelpText
29211 \begin_inset space ~
29212 \end_inset
29213
29214 <text>
29215 \begin_inset space ~
29216 \end_inset
29217
29218 HelpTextEnd
29219 \end_layout
29220
29221 \end_inset
29222
29223  The help text that is used in the External dialog.
29224  Provide enough information to explain to the user just what the template
29225  can provide him with.
29226  This command must occur exactly once.
29227 \end_layout
29228
29229 \begin_layout Description
29230 \begin_inset Flex Code
29231 status collapsed
29232
29233 \begin_layout Plain Layout
29234 InputFormat
29235 \begin_inset space ~
29236 \end_inset
29237
29238 <format>
29239 \end_layout
29240
29241 \end_inset
29242
29243  The file format of the original file.
29244  This must be the name of a format that is known to \SpecialChar LyX
29245  (see 
29246 \begin_inset CommandInset ref
29247 LatexCommand ref
29248 reference "sec:Formats"
29249
29250 \end_inset
29251
29252 ).
29253  Use 
29254 \begin_inset Quotes eld
29255 \end_inset
29256
29257
29258 \begin_inset Flex Code
29259 status collapsed
29260
29261 \begin_layout Plain Layout
29262 *
29263 \end_layout
29264
29265 \end_inset
29266
29267
29268 \begin_inset Quotes erd
29269 \end_inset
29270
29271  if the template can handle original files of more than one format.
29272  \SpecialChar LyX
29273  will attempt to interrogate the file itself in order to deduce its format
29274  in this case.
29275  This command must occur exactly once.
29276 \end_layout
29277
29278 \begin_layout Description
29279 \begin_inset Flex Code
29280 status collapsed
29281
29282 \begin_layout Plain Layout
29283 Template
29284 \begin_inset space ~
29285 \end_inset
29286
29287 <id>
29288 \end_layout
29289
29290 \end_inset
29291
29292  A unique name for the template.
29293  It must not contain substitution macros (see below).
29294 \end_layout
29295
29296 \begin_layout Description
29297 \begin_inset Flex Code
29298 status collapsed
29299
29300 \begin_layout Plain Layout
29301 Transform
29302 \begin_inset space ~
29303 \end_inset
29304
29305 Rotate|Resize|Clip|Extra
29306 \end_layout
29307
29308 \end_inset
29309
29310  This command specifies which transformations are supported by this template.
29311  It may occur zero or more times.
29312  This command enables the corresponding tabs in the external dialog.
29313  Each 
29314 \begin_inset Flex Code
29315 status collapsed
29316
29317 \begin_layout Plain Layout
29318 Transform
29319 \end_layout
29320
29321 \end_inset
29322
29323  command must have either a corresponding 
29324 \begin_inset Flex Code
29325 status collapsed
29326
29327 \begin_layout Plain Layout
29328 TransformCommand
29329 \end_layout
29330
29331 \end_inset
29332
29333  or a 
29334 \begin_inset Flex Code
29335 status collapsed
29336
29337 \begin_layout Plain Layout
29338 TransformOption
29339 \end_layout
29340
29341 \end_inset
29342
29343  command in the 
29344 \begin_inset Flex Code
29345 status collapsed
29346
29347 \begin_layout Plain Layout
29348 Format
29349 \end_layout
29350
29351 \end_inset
29352
29353  section.
29354  Otherwise the transformation will not be supported by that format.
29355 \end_layout
29356
29357 \begin_layout Subsection
29358 The Format section
29359 \end_layout
29360
29361 \begin_layout Description
29362 \begin_inset Flex Code
29363 status collapsed
29364
29365 \begin_layout Plain Layout
29366 Format
29367 \begin_inset space ~
29368 \end_inset
29369
29370 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
29371 \end_layout
29372
29373 \end_inset
29374
29375  The primary document file format that this format definition is for.
29376  Not every template has a sensible representation in all document file formats.
29377  Please define nevertheless a 
29378 \begin_inset Flex Code
29379 status collapsed
29380
29381 \begin_layout Plain Layout
29382 Format
29383 \end_layout
29384
29385 \end_inset
29386
29387  section for all templates.
29388  Use a dummy text when no representation is available.
29389  Then you can at least see a reference to the external material in the exported
29390  document.
29391 \end_layout
29392
29393 \begin_layout Description
29394 \begin_inset Flex Code
29395 status collapsed
29396
29397 \begin_layout Plain Layout
29398 Option
29399 \begin_inset space ~
29400 \end_inset
29401
29402 <name>
29403 \begin_inset space ~
29404 \end_inset
29405
29406 <value>
29407 \end_layout
29408
29409 \end_inset
29410
29411  This command defines an additional macro 
29412 \begin_inset Flex Code
29413 status collapsed
29414
29415 \begin_layout Plain Layout
29416 $$<name>
29417 \end_layout
29418
29419 \end_inset
29420
29421  for substitution in 
29422 \begin_inset Flex Code
29423 status collapsed
29424
29425 \begin_layout Plain Layout
29426 Product
29427 \end_layout
29428
29429 \end_inset
29430
29431 .
29432  
29433 \begin_inset Flex Code
29434 status collapsed
29435
29436 \begin_layout Plain Layout
29437 <value>
29438 \end_layout
29439
29440 \end_inset
29441
29442  itself may contain substitution macros.
29443  The advantage over using 
29444 \begin_inset Flex Code
29445 status collapsed
29446
29447 \begin_layout Plain Layout
29448 <value>
29449 \end_layout
29450
29451 \end_inset
29452
29453  directly in 
29454 \begin_inset Flex Code
29455 status collapsed
29456
29457 \begin_layout Plain Layout
29458 Product
29459 \end_layout
29460
29461 \end_inset
29462
29463  is that the substituted value of 
29464 \begin_inset Flex Code
29465 status collapsed
29466
29467 \begin_layout Plain Layout
29468 $$<name>
29469 \end_layout
29470
29471 \end_inset
29472
29473  is sanitized so that it is a valid optional argument in the document format.
29474  This command may occur zero or more times.
29475 \end_layout
29476
29477 \begin_layout Description
29478 \begin_inset Flex Code
29479 status collapsed
29480
29481 \begin_layout Plain Layout
29482 Product
29483 \begin_inset space ~
29484 \end_inset
29485
29486 <text>
29487 \end_layout
29488
29489 \end_inset
29490
29491  The text that is inserted in the exported document.
29492  This is actually the most important command and can be quite complex.
29493  This command must occur exactly once.
29494 \end_layout
29495
29496 \begin_layout Description
29497 \begin_inset Flex Code
29498 status collapsed
29499
29500 \begin_layout Plain Layout
29501 Preamble
29502 \begin_inset space ~
29503 \end_inset
29504
29505 <name>
29506 \end_layout
29507
29508 \end_inset
29509
29510  This command specifies a preamble snippet that will be included in the
29511  \SpecialChar LaTeX
29512  preamble.
29513  It has to be defined using 
29514 \begin_inset Flex Code
29515 status collapsed
29516
29517 \begin_layout Plain Layout
29518 PreambleDef
29519 \end_layout
29520
29521 \end_inset
29522
29523  \SpecialChar ldots
29524  
29525 \begin_inset Flex Code
29526 status collapsed
29527
29528 \begin_layout Plain Layout
29529 PreambleDefEnd
29530 \end_layout
29531
29532 \end_inset
29533
29534 .
29535  This command may occur zero or more times.
29536 \end_layout
29537
29538 \begin_layout Description
29539 \begin_inset Flex Code
29540 status collapsed
29541
29542 \begin_layout Plain Layout
29543 ReferencedFile
29544 \begin_inset space ~
29545 \end_inset
29546
29547 <format>
29548 \begin_inset space ~
29549 \end_inset
29550
29551 <filename>
29552 \end_layout
29553
29554 \end_inset
29555
29556  This command denotes files that are created by the conversion process and
29557  are needed for a particular export format.
29558  If the filename is relative, it is interpreted relative to the master document.
29559  This command may be given zero or more times.
29560 \end_layout
29561
29562 \begin_layout Description
29563 \begin_inset Flex Code
29564 status collapsed
29565
29566 \begin_layout Plain Layout
29567 Requirement
29568 \begin_inset space ~
29569 \end_inset
29570
29571 <package>
29572 \end_layout
29573
29574 \end_inset
29575
29576  The name of a required \SpecialChar LaTeX
29577  package.
29578  The package is included via 
29579 \begin_inset Flex Code
29580 status collapsed
29581
29582 \begin_layout Plain Layout
29583
29584 \backslash
29585 usepackage{}
29586 \end_layout
29587
29588 \end_inset
29589
29590  in the \SpecialChar LaTeX
29591  preamble.
29592  This command may occur zero or more times.
29593 \end_layout
29594
29595 \begin_layout Description
29596 \begin_inset Flex Code
29597 status collapsed
29598
29599 \begin_layout Plain Layout
29600 TransformCommand
29601 \begin_inset space ~
29602 \end_inset
29603
29604 Rotate
29605 \begin_inset space ~
29606 \end_inset
29607
29608 RotationLatexCommand
29609 \end_layout
29610
29611 \end_inset
29612
29613  This command specifies that the built in \SpecialChar LaTeX
29614  command should be used for rotation.
29615  This command may occur once or not at all.
29616 \end_layout
29617
29618 \begin_layout Description
29619 \begin_inset Flex Code
29620 status collapsed
29621
29622 \begin_layout Plain Layout
29623 TransformCommand
29624 \begin_inset space ~
29625 \end_inset
29626
29627 Resize
29628 \begin_inset space ~
29629 \end_inset
29630
29631 ResizeLatexCommand
29632 \end_layout
29633
29634 \end_inset
29635
29636  This command specifies that the built in \SpecialChar LaTeX
29637  command should be used for resizing.
29638  This command may occur once or not at all.
29639 \end_layout
29640
29641 \begin_layout Description
29642 \begin_inset Flex Code
29643 status collapsed
29644
29645 \begin_layout Plain Layout
29646 TransformOption
29647 \begin_inset space ~
29648 \end_inset
29649
29650 Rotate
29651 \begin_inset space ~
29652 \end_inset
29653
29654 RotationLatexOption
29655 \end_layout
29656
29657 \end_inset
29658
29659  This command specifies that rotation is done via an optional argument.
29660  This command may occur once or not at all.
29661 \end_layout
29662
29663 \begin_layout Description
29664 \begin_inset Flex Code
29665 status collapsed
29666
29667 \begin_layout Plain Layout
29668 TransformOption
29669 \begin_inset space ~
29670 \end_inset
29671
29672 Resize
29673 \begin_inset space ~
29674 \end_inset
29675
29676 ResizeLatexOption
29677 \end_layout
29678
29679 \end_inset
29680
29681  This command specifies that resizing is done via an optional argument.
29682  This command may occur once or not at all.
29683 \end_layout
29684
29685 \begin_layout Description
29686 \begin_inset Flex Code
29687 status collapsed
29688
29689 \begin_layout Plain Layout
29690 TransformOption
29691 \begin_inset space ~
29692 \end_inset
29693
29694 Clip
29695 \begin_inset space ~
29696 \end_inset
29697
29698 ClipLatexOption
29699 \end_layout
29700
29701 \end_inset
29702
29703  This command specifies that clipping is done via an optional argument.
29704  This command may occur once or not at all.
29705 \end_layout
29706
29707 \begin_layout Description
29708 \begin_inset Flex Code
29709 status collapsed
29710
29711 \begin_layout Plain Layout
29712 TransformOption
29713 \begin_inset space ~
29714 \end_inset
29715
29716 Extra
29717 \begin_inset space ~
29718 \end_inset
29719
29720 ExtraLatexOption
29721 \end_layout
29722
29723 \end_inset
29724
29725  This command specifies that an extra optional argument is used.
29726  This command may occur once or not at all.
29727 \end_layout
29728
29729 \begin_layout Description
29730 \begin_inset Flex Code
29731 status collapsed
29732
29733 \begin_layout Plain Layout
29734 UpdateFormat
29735 \begin_inset space ~
29736 \end_inset
29737
29738 <format>
29739 \end_layout
29740
29741 \end_inset
29742
29743  The file format of the converted file.
29744  This must be the name of a format that is known to \SpecialChar LyX
29745  (see the 
29746 \begin_inset Flex Noun
29747 status collapsed
29748
29749 \begin_layout Plain Layout
29750 Tools\SpecialChar menuseparator
29751 Preferences\SpecialChar menuseparator
29752 File Handling\SpecialChar menuseparator
29753 File Format
29754 \end_layout
29755
29756 \end_inset
29757
29758  dialog).
29759  This command must occur exactly once.
29760  If the resulting file format is PDF, you need to specify the format 
29761 \begin_inset Flex Code
29762 status collapsed
29763
29764 \begin_layout Plain Layout
29765 pdf6
29766 \end_layout
29767
29768 \end_inset
29769
29770 .
29771  This is the PDF format used for including graphics.
29772  The other defined PDF formats are for document export.
29773 \end_layout
29774
29775 \begin_layout Description
29776 \begin_inset Flex Code
29777 status collapsed
29778
29779 \begin_layout Plain Layout
29780 UpdateResult
29781 \begin_inset space ~
29782 \end_inset
29783
29784 <filename>
29785 \end_layout
29786
29787 \end_inset
29788
29789  The file name of the converted file.
29790  The file name must be absolute.
29791  This command must occur exactly once.
29792 \end_layout
29793
29794 \begin_layout Subsection
29795 Preamble definitions
29796 \end_layout
29797
29798 \begin_layout Standard
29799 The external template configuration file may contain additional preamble
29800  definitions enclosed by 
29801 \begin_inset Flex Code
29802 status collapsed
29803
29804 \begin_layout Plain Layout
29805 PreambleDef
29806 \end_layout
29807
29808 \end_inset
29809
29810  \SpecialChar ldots
29811  
29812 \begin_inset Flex Code
29813 status collapsed
29814
29815 \begin_layout Plain Layout
29816 PreambleDefEnd
29817 \end_layout
29818
29819 \end_inset
29820
29821 .
29822  They can be used by the templates in the 
29823 \begin_inset Flex Code
29824 status collapsed
29825
29826 \begin_layout Plain Layout
29827 Format
29828 \end_layout
29829
29830 \end_inset
29831
29832  section.
29833 \end_layout
29834
29835 \begin_layout Section
29836 The substitution mechanism
29837 \end_layout
29838
29839 \begin_layout Standard
29840 When the external material facility invokes an external program, it is done
29841  on the basis of a command defined in the template configuration file.
29842  These commands can contain various macros that are expanded before execution.
29843  Execution always take place in the directory of the containing document.
29844 \end_layout
29845
29846 \begin_layout Standard
29847 Also, whenever external material is to be displayed, the name will be produced
29848  by the substitution mechanism, and most other commands in the template
29849  definition support substitution as well.
29850 \end_layout
29851
29852 \begin_layout Standard
29853 The available macros are the following:
29854 \end_layout
29855
29856 \begin_layout Description
29857 \begin_inset Flex Code
29858 status collapsed
29859
29860 \begin_layout Plain Layout
29861 $$AbsOrRelPathMaster
29862 \end_layout
29863
29864 \end_inset
29865
29866  The file path, absolute or relative to the master \SpecialChar LyX
29867  document.
29868 \end_layout
29869
29870 \begin_layout Description
29871 \begin_inset Flex Code
29872 status collapsed
29873
29874 \begin_layout Plain Layout
29875 $$AbsOrRelPathParent
29876 \end_layout
29877
29878 \end_inset
29879
29880  The file path, absolute or relative to the \SpecialChar LyX
29881  document.
29882 \end_layout
29883
29884 \begin_layout Description
29885 \begin_inset Flex Code
29886 status collapsed
29887
29888 \begin_layout Plain Layout
29889 $$AbsPath
29890 \end_layout
29891
29892 \end_inset
29893
29894  The absolute file path.
29895 \end_layout
29896
29897 \begin_layout Description
29898 \begin_inset Flex Code
29899 status collapsed
29900
29901 \begin_layout Plain Layout
29902 $$Basename
29903 \end_layout
29904
29905 \end_inset
29906
29907  The filename without path and without the extension.
29908 \end_layout
29909
29910 \begin_layout Description
29911 \begin_inset Flex Code
29912 status collapsed
29913
29914 \begin_layout Plain Layout
29915 $$Contents(
29916 \begin_inset Quotes eld
29917 \end_inset
29918
29919 filename.ext
29920 \begin_inset Quotes erd
29921 \end_inset
29922
29923 )
29924 \end_layout
29925
29926 \end_inset
29927
29928  This macro will expand to the contents of the file with the name 
29929 \begin_inset Flex Code
29930 status collapsed
29931
29932 \begin_layout Plain Layout
29933 filename.ext
29934 \end_layout
29935
29936 \end_inset
29937
29938 .
29939 \end_layout
29940
29941 \begin_layout Description
29942 \begin_inset Flex Code
29943 status collapsed
29944
29945 \begin_layout Plain Layout
29946 $$Extension
29947 \end_layout
29948
29949 \end_inset
29950
29951  The file extension (including the dot).
29952 \end_layout
29953
29954 \begin_layout Description
29955 \begin_inset Flex Code
29956 status collapsed
29957
29958 \begin_layout Plain Layout
29959 $$pngOrjpg
29960 \end_layout
29961
29962 \end_inset
29963
29964  This will be the string 
29965 \begin_inset Quotes eld
29966 \end_inset
29967
29968 jpg
29969 \begin_inset Quotes erd
29970 \end_inset
29971
29972  if the file is in JPEG format, otherwise it will be the string 
29973 \begin_inset Quotes eld
29974 \end_inset
29975
29976 png
29977 \begin_inset Quotes erd
29978 \end_inset
29979
29980 .
29981  This is useful to avoid uneeded conversions for output formats that support
29982  both PNG and JPEG fomats.
29983  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
29984  output
29985  format.
29986 \end_layout
29987
29988 \begin_layout Description
29989 \begin_inset Flex Code
29990 status collapsed
29991
29992 \begin_layout Plain Layout
29993 $$FName
29994 \end_layout
29995
29996 \end_inset
29997
29998  The filename of the file specified in the external material dialog.
29999  This is either an absolute name, or it is relative to the \SpecialChar LyX
30000  document.
30001 \end_layout
30002
30003 \begin_layout Description
30004 \begin_inset Flex Code
30005 status collapsed
30006
30007 \begin_layout Plain Layout
30008 $$FPath
30009 \end_layout
30010
30011 \end_inset
30012
30013  The path part of 
30014 \begin_inset Flex Code
30015 status collapsed
30016
30017 \begin_layout Plain Layout
30018 $$FName
30019 \end_layout
30020
30021 \end_inset
30022
30023  (absolute name or relative to the \SpecialChar LyX
30024  document).
30025 \end_layout
30026
30027 \begin_layout Description
30028 \begin_inset Flex Code
30029 status collapsed
30030
30031 \begin_layout Plain Layout
30032 $$RelPathMaster
30033 \end_layout
30034
30035 \end_inset
30036
30037  The file path, relative to the master \SpecialChar LyX
30038  document.
30039 \end_layout
30040
30041 \begin_layout Description
30042 \begin_inset Flex Code
30043 status collapsed
30044
30045 \begin_layout Plain Layout
30046 $$RelPathParent
30047 \end_layout
30048
30049 \end_inset
30050
30051  The file path, relative to the \SpecialChar LyX
30052  document.
30053 \end_layout
30054
30055 \begin_layout Description
30056 \begin_inset Flex Code
30057 status collapsed
30058
30059 \begin_layout Plain Layout
30060 $$Sysdir
30061 \end_layout
30062
30063 \end_inset
30064
30065  This macro will expand to the absolute path of the system directory.
30066  This is typically used to point to the various helper scripts that are
30067  bundled with \SpecialChar LyX
30068 .
30069 \end_layout
30070
30071 \begin_layout Description
30072 \begin_inset Flex Code
30073 status collapsed
30074
30075 \begin_layout Plain Layout
30076 $$Tempname
30077 \end_layout
30078
30079 \end_inset
30080
30081  A name and full path to a temporary file which will be automatically deleted
30082  whenever the containing document is closed, or the external material insertion
30083  deleted.
30084 \end_layout
30085
30086 \begin_layout Standard
30087 All path macros contain a trailing directory separator, so you can construct
30088  e.
30089 \begin_inset space \thinspace{}
30090 \end_inset
30091
30092 g.
30093 \begin_inset space \space{}
30094 \end_inset
30095
30096 the absolute filename with 
30097 \begin_inset Flex Code
30098 status collapsed
30099
30100 \begin_layout Plain Layout
30101 $$AbsPath$$Basename$$Extension
30102 \end_layout
30103
30104 \end_inset
30105
30106 .
30107 \end_layout
30108
30109 \begin_layout Standard
30110 The macros above are substituted in all commands unless otherwise noted.
30111  The command 
30112 \begin_inset Flex Code
30113 status collapsed
30114
30115 \begin_layout Plain Layout
30116 Product
30117 \end_layout
30118
30119 \end_inset
30120
30121  supports additionally the following substitutions if they are enabled by
30122  the 
30123 \begin_inset Flex Code
30124 status collapsed
30125
30126 \begin_layout Plain Layout
30127 Transform
30128 \end_layout
30129
30130 \end_inset
30131
30132  and 
30133 \begin_inset Flex Code
30134 status collapsed
30135
30136 \begin_layout Plain Layout
30137 TransformCommand
30138 \end_layout
30139
30140 \end_inset
30141
30142  commands:
30143 \end_layout
30144
30145 \begin_layout Description
30146 \begin_inset Flex Code
30147 status collapsed
30148
30149 \begin_layout Plain Layout
30150 $$ResizeFront
30151 \end_layout
30152
30153 \end_inset
30154
30155  The front part of the resize command.
30156 \end_layout
30157
30158 \begin_layout Description
30159 \begin_inset Flex Code
30160 status collapsed
30161
30162 \begin_layout Plain Layout
30163 $$ResizeBack
30164 \end_layout
30165
30166 \end_inset
30167
30168  The back part of the resize command.
30169 \end_layout
30170
30171 \begin_layout Description
30172 \begin_inset Flex Code
30173 status collapsed
30174
30175 \begin_layout Plain Layout
30176 $$RotateFront
30177 \end_layout
30178
30179 \end_inset
30180
30181  The front part of the rotation command.
30182 \end_layout
30183
30184 \begin_layout Description
30185 \begin_inset Flex Code
30186 status collapsed
30187
30188 \begin_layout Plain Layout
30189 $$RotateBack
30190 \end_layout
30191
30192 \end_inset
30193
30194  The back part of the rotation command.
30195 \end_layout
30196
30197 \begin_layout Standard
30198 The value string of the 
30199 \begin_inset Flex Code
30200 status collapsed
30201
30202 \begin_layout Plain Layout
30203 Option
30204 \end_layout
30205
30206 \end_inset
30207
30208  command supports additionally the following substitutions if they are enabled
30209  by the 
30210 \begin_inset Flex Code
30211 status collapsed
30212
30213 \begin_layout Plain Layout
30214 Transform
30215 \end_layout
30216
30217 \end_inset
30218
30219  and 
30220 \begin_inset Flex Code
30221 status collapsed
30222
30223 \begin_layout Plain Layout
30224 TransformOption
30225 \end_layout
30226
30227 \end_inset
30228
30229  commands:
30230 \end_layout
30231
30232 \begin_layout Description
30233 \begin_inset Flex Code
30234 status collapsed
30235
30236 \begin_layout Plain Layout
30237 $$Clip
30238 \end_layout
30239
30240 \end_inset
30241
30242  The clip option.
30243 \end_layout
30244
30245 \begin_layout Description
30246 \begin_inset Flex Code
30247 status collapsed
30248
30249 \begin_layout Plain Layout
30250 $$Extra
30251 \end_layout
30252
30253 \end_inset
30254
30255  The extra option.
30256 \end_layout
30257
30258 \begin_layout Description
30259 \begin_inset Flex Code
30260 status collapsed
30261
30262 \begin_layout Plain Layout
30263 $$Resize
30264 \end_layout
30265
30266 \end_inset
30267
30268  The resize option.
30269 \end_layout
30270
30271 \begin_layout Description
30272 \begin_inset Flex Code
30273 status collapsed
30274
30275 \begin_layout Plain Layout
30276 $$Rotate
30277 \end_layout
30278
30279 \end_inset
30280
30281  The rotation option.
30282 \end_layout
30283
30284 \begin_layout Standard
30285 You may ask why there are so many path macros.
30286  There are mainly two reasons:
30287 \end_layout
30288
30289 \begin_layout Enumerate
30290 Relative and absolute file names should remain relative or absolute, respectivel
30291 y.
30292  Users may have reasons to prefer either form.
30293  Relative names are useful for portable documents that should work on different
30294  machines, for example.
30295  Absolute names may be required by some programs.
30296 \end_layout
30297
30298 \begin_layout Enumerate
30299 \SpecialChar LaTeX
30300  treats relative file names differently than \SpecialChar LyX
30301  and other programs in nested
30302  included files.
30303  For \SpecialChar LyX
30304 , a relative file name is always relative to the document that contains
30305  the file name.
30306  For \SpecialChar LaTeX
30307 , it is always relative to the master document.
30308  These two definitions are identical if you have only one document, but
30309  differ if you have a master document that includes part documents.
30310  That means that relative filenames must be transformed when presented to
30311  \SpecialChar LaTeX
30312 .
30313  Fortunately \SpecialChar LyX
30314  does this automatically for you if you choose the right macros.
30315 \end_layout
30316
30317 \begin_layout Standard
30318 So which path macro should be used in new template definitions? The rule
30319  is not difficult:
30320 \end_layout
30321
30322 \begin_layout Itemize
30323 Use 
30324 \begin_inset Flex Code
30325 status collapsed
30326
30327 \begin_layout Plain Layout
30328 $$AbsPath
30329 \end_layout
30330
30331 \end_inset
30332
30333  if an absolute path is required.
30334 \end_layout
30335
30336 \begin_layout Itemize
30337 Use 
30338 \begin_inset Flex Code
30339 status collapsed
30340
30341 \begin_layout Plain Layout
30342 $$AbsOrRelPathMaster
30343 \end_layout
30344
30345 \end_inset
30346
30347  if the substituted string is some kind of \SpecialChar LaTeX
30348  input.
30349 \end_layout
30350
30351 \begin_layout Itemize
30352 Else use 
30353 \begin_inset Flex Code
30354 status collapsed
30355
30356 \begin_layout Plain Layout
30357 $$AbsOrRelPathParent
30358 \end_layout
30359
30360 \end_inset
30361
30362  in order to preserve the user's choice.
30363 \end_layout
30364
30365 \begin_layout Standard
30366 There are special cases where this rule does not work and e.
30367 \begin_inset space \thinspace{}
30368 \end_inset
30369
30370 g.
30371 \begin_inset space \space{}
30372 \end_inset
30373
30374 relative names are needed, but normally it will work just fine.
30375  One example for such a case is the command 
30376 \begin_inset Flex Code
30377 status collapsed
30378
30379 \begin_layout Plain Layout
30380 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30381 \end_layout
30382
30383 \end_inset
30384
30385  in the XFig template above: We can't use the absolute name because the
30386  copier for 
30387 \begin_inset Flex Code
30388 status collapsed
30389
30390 \begin_layout Plain Layout
30391 .pstex_t
30392 \end_layout
30393
30394 \end_inset
30395
30396  files needs the relative name in order to rewrite the file content.
30397 \end_layout
30398
30399 \begin_layout Section
30400 Security discussion
30401 \begin_inset CommandInset label
30402 LatexCommand label
30403 name "sec:Security-discussion"
30404
30405 \end_inset
30406
30407
30408 \end_layout
30409
30410 \begin_layout Standard
30411 The external material feature interfaces with a lot of external programs
30412  and does so automatically, so we have to consider the security implications
30413  of this.
30414  In particular, since you have the option of including your own filenames
30415  and/or parameter strings and those are expanded into a command, it seems
30416  that it would be possible to create a malicious document which executes
30417  arbitrary commands when a user views or prints the document.
30418  This is something we definitely want to avoid.
30419 \end_layout
30420
30421 \begin_layout Standard
30422 However, since the external program commands are specified in the template
30423  configuration file only, there are no security issues if \SpecialChar LyX
30424  is properly configure
30425 d with safe templates only.
30426  This is so because the external programs are invoked with the 
30427 \begin_inset Flex Code
30428 status collapsed
30429
30430 \begin_layout Plain Layout
30431 execvp
30432 \end_layout
30433
30434 \end_inset
30435
30436 -system call rather than the 
30437 \begin_inset Flex Code
30438 status collapsed
30439
30440 \begin_layout Plain Layout
30441 system
30442 \end_layout
30443
30444 \end_inset
30445
30446  system-call, so it's not possible to execute arbitrary commands from the
30447  filename or parameter section via the shell.
30448 \end_layout
30449
30450 \begin_layout Standard
30451 This also implies that you are restricted in what command strings you can
30452  use in the external material templates.
30453  In particular, pipes and redirection are not readily available.
30454  This has to be so if \SpecialChar LyX
30455  should remain safe.
30456  If you want to use some of the shell features, you should write a safe
30457  script to do this in a controlled manner, and then invoke the script from
30458  the command string.
30459  
30460 \end_layout
30461
30462 \begin_layout Standard
30463 It is possible to design a template that interacts directly with the shell,
30464  but since this would allow a malicious user to execute arbitrary commands
30465  by writing clever filenames and/or parameters, we generally recommend that
30466  you only use safe scripts that work with the 
30467 \begin_inset Flex Code
30468 status collapsed
30469
30470 \begin_layout Plain Layout
30471 execvp
30472 \end_layout
30473
30474 \end_inset
30475
30476  system call in a controlled manner.
30477  Of course, for use in a controlled environment, it can be tempting to just
30478  fall back to use ordinary shell scripts.
30479  If you do so, be aware that you 
30480 \emph on
30481 will
30482 \emph default
30483  provide an easily exploitable security hole in your system.
30484  Of course it stands to reason that such unsafe templates will never be
30485  included in the standard \SpecialChar LyX
30486  distribution, although we do encourage people
30487  to submit new templates in the open source tradition.
30488  But \SpecialChar LyX
30489  as shipped from the official distribution channels will never have
30490  unsafe templates.
30491 \end_layout
30492
30493 \begin_layout Standard
30494 Including external material provides a lot of power, and you have to be
30495  careful not to introduce security hazards with this power.
30496  A subtle error in a single line in an innocent looking script can open
30497  the door to huge security problems.
30498  So if you do not fully understand the issues, we recommend that you consult
30499  a knowledgeable security professional or the \SpecialChar LyX
30500  development team if you have
30501  any questions about whether a given template is safe or not.
30502  And do this before you use it in an uncontrolled environment.
30503 \end_layout
30504
30505 \begin_layout Chapter
30506 \start_of_appendix
30507 List of supported \SpecialChar LyX
30508  functions to be used in layouts
30509 \begin_inset CommandInset label
30510 LatexCommand label
30511 name "chap:List-of-functions"
30512
30513 \end_inset
30514
30515
30516 \end_layout
30517
30518 \begin_layout Standard
30519 \align center
30520 \begin_inset Tabular
30521 <lyxtabular version="3" rows="11" columns="8">
30522 <features tabularvalignment="middle">
30523 <column alignment="left" valignment="top">
30524 <column alignment="left" valignment="top">
30525 <column alignment="left" valignment="top">
30526 <column alignment="left" valignment="top">
30527 <column alignment="left" valignment="top">
30528 <column alignment="left" valignment="top">
30529 <column alignment="left" valignment="top">
30530 <column alignment="left" valignment="top">
30531 <row>
30532 <cell alignment="left" valignment="top" usebox="none">
30533 \begin_inset Text
30534
30535 \begin_layout Plain Layout
30536 accents
30537 \end_layout
30538
30539 \end_inset
30540 </cell>
30541 <cell alignment="left" valignment="top" usebox="none">
30542 \begin_inset Text
30543
30544 \begin_layout Plain Layout
30545 booktabs
30546 \end_layout
30547
30548 \end_inset
30549 </cell>
30550 <cell alignment="left" valignment="top" usebox="none">
30551 \begin_inset Text
30552
30553 \begin_layout Plain Layout
30554 feyn
30555 \end_layout
30556
30557 \end_inset
30558 </cell>
30559 <cell alignment="left" valignment="top" usebox="none">
30560 \begin_inset Text
30561
30562 \begin_layout Plain Layout
30563 listings
30564 \end_layout
30565
30566 \end_inset
30567 </cell>
30568 <cell alignment="center" valignment="top" usebox="none">
30569 \begin_inset Text
30570
30571 \begin_layout Plain Layout
30572 natbib
30573 \end_layout
30574
30575 \end_inset
30576 </cell>
30577 <cell alignment="center" valignment="top" usebox="none">
30578 \begin_inset Text
30579
30580 \begin_layout Plain Layout
30581 rotfloat
30582 \end_layout
30583
30584 \end_inset
30585 </cell>
30586 <cell alignment="center" valignment="top" usebox="none">
30587 \begin_inset Text
30588
30589 \begin_layout Plain Layout
30590 tfrupee
30591 \end_layout
30592
30593 \end_inset
30594 </cell>
30595 <cell alignment="center" valignment="top" usebox="none">
30596 \begin_inset Text
30597
30598 \begin_layout Plain Layout
30599 wasysym
30600 \end_layout
30601
30602 \end_inset
30603 </cell>
30604 </row>
30605 <row>
30606 <cell alignment="left" valignment="top" usebox="none">
30607 \begin_inset Text
30608
30609 \begin_layout Plain Layout
30610 amsbsy
30611 \end_layout
30612
30613 \end_inset
30614 </cell>
30615 <cell alignment="left" valignment="top" usebox="none">
30616 \begin_inset Text
30617
30618 \begin_layout Plain Layout
30619 calc
30620 \end_layout
30621
30622 \end_inset
30623 </cell>
30624 <cell alignment="left" valignment="top" usebox="none">
30625 \begin_inset Text
30626
30627 \begin_layout Plain Layout
30628 fixltx2e
30629 \end_layout
30630
30631 \end_inset
30632 </cell>
30633 <cell alignment="left" valignment="top" usebox="none">
30634 \begin_inset Text
30635
30636 \begin_layout Plain Layout
30637 longtable
30638 \end_layout
30639
30640 \end_inset
30641 </cell>
30642 <cell alignment="center" valignment="top" usebox="none">
30643 \begin_inset Text
30644
30645 \begin_layout Plain Layout
30646 nomencl
30647 \end_layout
30648
30649 \end_inset
30650 </cell>
30651 <cell alignment="center" valignment="top" usebox="none">
30652 \begin_inset Text
30653
30654 \begin_layout Plain Layout
30655 rsphrase
30656 \end_layout
30657
30658 \end_inset
30659 </cell>
30660 <cell alignment="center" valignment="top" usebox="none">
30661 \begin_inset Text
30662
30663 \begin_layout Plain Layout
30664 tipa
30665 \end_layout
30666
30667 \end_inset
30668 </cell>
30669 <cell alignment="center" valignment="top" usebox="none">
30670 \begin_inset Text
30671
30672 \begin_layout Plain Layout
30673 wrapfig
30674 \end_layout
30675
30676 \end_inset
30677 </cell>
30678 </row>
30679 <row>
30680 <cell alignment="left" valignment="top" usebox="none">
30681 \begin_inset Text
30682
30683 \begin_layout Plain Layout
30684 amscd
30685 \end_layout
30686
30687 \end_inset
30688 </cell>
30689 <cell alignment="left" valignment="top" usebox="none">
30690 \begin_inset Text
30691
30692 \begin_layout Plain Layout
30693 CJK
30694 \end_layout
30695
30696 \end_inset
30697 </cell>
30698 <cell alignment="left" valignment="top" usebox="none">
30699 \begin_inset Text
30700
30701 \begin_layout Plain Layout
30702 float
30703 \end_layout
30704
30705 \end_inset
30706 </cell>
30707 <cell alignment="left" valignment="top" usebox="none">
30708 \begin_inset Text
30709
30710 \begin_layout Plain Layout
30711 lyxskak
30712 \end_layout
30713
30714 \end_inset
30715 </cell>
30716 <cell alignment="center" valignment="top" usebox="none">
30717 \begin_inset Text
30718
30719 \begin_layout Plain Layout
30720 pdfcolmk
30721 \end_layout
30722
30723 \end_inset
30724 </cell>
30725 <cell alignment="center" valignment="top" usebox="none">
30726 \begin_inset Text
30727
30728 \begin_layout Plain Layout
30729 setspace
30730 \end_layout
30731
30732 \end_inset
30733 </cell>
30734 <cell alignment="center" valignment="top" usebox="none">
30735 \begin_inset Text
30736
30737 \begin_layout Plain Layout
30738 tipx
30739 \end_layout
30740
30741 \end_inset
30742 </cell>
30743 <cell alignment="center" valignment="top" usebox="none">
30744 \begin_inset Text
30745
30746 \begin_layout Plain Layout
30747 xargs
30748 \end_layout
30749
30750 \end_inset
30751 </cell>
30752 </row>
30753 <row>
30754 <cell alignment="left" valignment="top" usebox="none">
30755 \begin_inset Text
30756
30757 \begin_layout Plain Layout
30758 amsmath
30759 \end_layout
30760
30761 \end_inset
30762 </cell>
30763 <cell alignment="left" valignment="top" usebox="none">
30764 \begin_inset Text
30765
30766 \begin_layout Plain Layout
30767 color
30768 \end_layout
30769
30770 \end_inset
30771 </cell>
30772 <cell alignment="left" valignment="top" usebox="none">
30773 \begin_inset Text
30774
30775 \begin_layout Plain Layout
30776 framed
30777 \end_layout
30778
30779 \end_inset
30780 </cell>
30781 <cell alignment="left" valignment="top" usebox="none">
30782 \begin_inset Text
30783
30784 \begin_layout Plain Layout
30785 makeidx
30786 \end_layout
30787
30788 \end_inset
30789 </cell>
30790 <cell alignment="center" valignment="top" usebox="none">
30791 \begin_inset Text
30792
30793 \begin_layout Plain Layout
30794 pdfpages
30795 \end_layout
30796
30797 \end_inset
30798 </cell>
30799 <cell alignment="center" valignment="top" usebox="none">
30800 \begin_inset Text
30801
30802 \begin_layout Plain Layout
30803 shapepar
30804 \end_layout
30805
30806 \end_inset
30807 </cell>
30808 <cell alignment="center" valignment="top" usebox="none">
30809 \begin_inset Text
30810
30811 \begin_layout Plain Layout
30812 tone
30813 \end_layout
30814
30815 \end_inset
30816 </cell>
30817 <cell alignment="center" valignment="top" usebox="none">
30818 \begin_inset Text
30819
30820 \begin_layout Plain Layout
30821 xcolor
30822 \end_layout
30823
30824 \end_inset
30825 </cell>
30826 </row>
30827 <row>
30828 <cell alignment="left" valignment="top" usebox="none">
30829 \begin_inset Text
30830
30831 \begin_layout Plain Layout
30832 amssymb
30833 \end_layout
30834
30835 \end_inset
30836 </cell>
30837 <cell alignment="left" valignment="top" usebox="none">
30838 \begin_inset Text
30839
30840 \begin_layout Plain Layout
30841 covington
30842 \end_layout
30843
30844 \end_inset
30845 </cell>
30846 <cell alignment="left" valignment="top" usebox="none">
30847 \begin_inset Text
30848
30849 \begin_layout Plain Layout
30850 graphicx
30851 \end_layout
30852
30853 \end_inset
30854 </cell>
30855 <cell alignment="left" valignment="top" usebox="none">
30856 \begin_inset Text
30857
30858 \begin_layout Plain Layout
30859 marvosym
30860 \end_layout
30861
30862 \end_inset
30863 </cell>
30864 <cell alignment="center" valignment="top" usebox="none">
30865 \begin_inset Text
30866
30867 \begin_layout Plain Layout
30868 pifont
30869 \end_layout
30870
30871 \end_inset
30872 </cell>
30873 <cell alignment="center" valignment="top" usebox="none">
30874 \begin_inset Text
30875
30876 \begin_layout Plain Layout
30877 slashed
30878 \end_layout
30879
30880 \end_inset
30881 </cell>
30882 <cell alignment="center" valignment="top" usebox="none">
30883 \begin_inset Text
30884
30885 \begin_layout Plain Layout
30886 txfonts
30887 \end_layout
30888
30889 \end_inset
30890 </cell>
30891 <cell alignment="center" valignment="top" usebox="none">
30892 \begin_inset Text
30893
30894 \begin_layout Plain Layout
30895 xy
30896 \end_layout
30897
30898 \end_inset
30899 </cell>
30900 </row>
30901 <row>
30902 <cell alignment="left" valignment="top" usebox="none">
30903 \begin_inset Text
30904
30905 \begin_layout Plain Layout
30906 amstext
30907 \end_layout
30908
30909 \end_inset
30910 </cell>
30911 <cell alignment="left" valignment="top" usebox="none">
30912 \begin_inset Text
30913
30914 \begin_layout Plain Layout
30915 csquotes
30916 \end_layout
30917
30918 \end_inset
30919 </cell>
30920 <cell alignment="left" valignment="top" usebox="none">
30921 \begin_inset Text
30922
30923 \begin_layout Plain Layout
30924 hhline
30925 \end_layout
30926
30927 \end_inset
30928 </cell>
30929 <cell alignment="left" valignment="top" usebox="none">
30930 \begin_inset Text
30931
30932 \begin_layout Plain Layout
30933 mathdesign
30934 \end_layout
30935
30936 \end_inset
30937 </cell>
30938 <cell alignment="center" valignment="top" usebox="none">
30939 \begin_inset Text
30940
30941 \begin_layout Plain Layout
30942 pmboxdraw
30943 \end_layout
30944
30945 \end_inset
30946 </cell>
30947 <cell alignment="center" valignment="top" usebox="none">
30948 \begin_inset Text
30949
30950 \begin_layout Plain Layout
30951 soul
30952 \end_layout
30953
30954 \end_inset
30955 </cell>
30956 <cell alignment="center" valignment="top" usebox="none">
30957 \begin_inset Text
30958
30959 \begin_layout Plain Layout
30960 ulem
30961 \end_layout
30962
30963 \end_inset
30964 </cell>
30965 <cell alignment="center" valignment="top" usebox="none">
30966 \begin_inset Text
30967
30968 \begin_layout Plain Layout
30969 yhmath
30970 \end_layout
30971
30972 \end_inset
30973 </cell>
30974 </row>
30975 <row>
30976 <cell alignment="left" valignment="top" usebox="none">
30977 \begin_inset Text
30978
30979 \begin_layout Plain Layout
30980 amsthm
30981 \end_layout
30982
30983 \end_inset
30984 </cell>
30985 <cell alignment="left" valignment="top" usebox="none">
30986 \begin_inset Text
30987
30988 \begin_layout Plain Layout
30989 dvipost
30990 \end_layout
30991
30992 \end_inset
30993 </cell>
30994 <cell alignment="left" valignment="top" usebox="none">
30995 \begin_inset Text
30996
30997 \begin_layout Plain Layout
30998 hyperref
30999 \end_layout
31000
31001 \end_inset
31002 </cell>
31003 <cell alignment="left" valignment="top" usebox="none">
31004 \begin_inset Text
31005
31006 \begin_layout Plain Layout
31007 mathdots
31008 \end_layout
31009
31010 \end_inset
31011 </cell>
31012 <cell alignment="center" valignment="top" usebox="none">
31013 \begin_inset Text
31014
31015 \begin_layout Plain Layout
31016 polyglossia
31017 \end_layout
31018
31019 \end_inset
31020 </cell>
31021 <cell alignment="center" valignment="top" usebox="none">
31022 \begin_inset Text
31023
31024 \begin_layout Plain Layout
31025 splitidx
31026 \end_layout
31027
31028 \end_inset
31029 </cell>
31030 <cell alignment="center" valignment="top" usebox="none">
31031 \begin_inset Text
31032
31033 \begin_layout Plain Layout
31034 undertilde
31035 \end_layout
31036
31037 \end_inset
31038 </cell>
31039 <cell alignment="center" valignment="top" usebox="none">
31040 \begin_inset Text
31041
31042 \begin_layout Plain Layout
31043
31044 \end_layout
31045
31046 \end_inset
31047 </cell>
31048 </row>
31049 <row>
31050 <cell alignment="left" valignment="top" usebox="none">
31051 \begin_inset Text
31052
31053 \begin_layout Plain Layout
31054 array
31055 \end_layout
31056
31057 \end_inset
31058 </cell>
31059 <cell alignment="left" valignment="top" usebox="none">
31060 \begin_inset Text
31061
31062 \begin_layout Plain Layout
31063 endnotes
31064 \end_layout
31065
31066 \end_inset
31067 </cell>
31068 <cell alignment="left" valignment="top" usebox="none">
31069 \begin_inset Text
31070
31071 \begin_layout Plain Layout
31072 ifsym
31073 \end_layout
31074
31075 \end_inset
31076 </cell>
31077 <cell alignment="left" valignment="top" usebox="none">
31078 \begin_inset Text
31079
31080 \begin_layout Plain Layout
31081 mathrsfs
31082 \end_layout
31083
31084 \end_inset
31085 </cell>
31086 <cell alignment="center" valignment="top" usebox="none">
31087 \begin_inset Text
31088
31089 \begin_layout Plain Layout
31090 prettyref
31091 \end_layout
31092
31093 \end_inset
31094 </cell>
31095 <cell alignment="center" valignment="top" usebox="none">
31096 \begin_inset Text
31097
31098 \begin_layout Plain Layout
31099 subfig
31100 \end_layout
31101
31102 \end_inset
31103 </cell>
31104 <cell alignment="center" valignment="top" usebox="none">
31105 \begin_inset Text
31106
31107 \begin_layout Plain Layout
31108 units
31109 \end_layout
31110
31111 \end_inset
31112 </cell>
31113 <cell alignment="center" valignment="top" usebox="none">
31114 \begin_inset Text
31115
31116 \begin_layout Plain Layout
31117
31118 \end_layout
31119
31120 \end_inset
31121 </cell>
31122 </row>
31123 <row>
31124 <cell alignment="left" valignment="top" usebox="none">
31125 \begin_inset Text
31126
31127 \begin_layout Plain Layout
31128 ascii
31129 \end_layout
31130
31131 \end_inset
31132 </cell>
31133 <cell alignment="left" valignment="top" usebox="none">
31134 \begin_inset Text
31135
31136 \begin_layout Plain Layout
31137 enumitem
31138 \end_layout
31139
31140 \end_inset
31141 </cell>
31142 <cell alignment="left" valignment="top" usebox="none">
31143 \begin_inset Text
31144
31145 \begin_layout Plain Layout
31146 ifthen
31147 \end_layout
31148
31149 \end_inset
31150 </cell>
31151 <cell alignment="left" valignment="top" usebox="none">
31152 \begin_inset Text
31153
31154 \begin_layout Plain Layout
31155 mhchem
31156 \end_layout
31157
31158 \end_inset
31159 </cell>
31160 <cell alignment="center" valignment="top" usebox="none">
31161 \begin_inset Text
31162
31163 \begin_layout Plain Layout
31164 pxfonts
31165 \end_layout
31166
31167 \end_inset
31168 </cell>
31169 <cell alignment="center" valignment="top" usebox="none">
31170 \begin_inset Text
31171
31172 \begin_layout Plain Layout
31173 subscript
31174 \end_layout
31175
31176 \end_inset
31177 </cell>
31178 <cell alignment="center" valignment="top" usebox="none">
31179 \begin_inset Text
31180
31181 \begin_layout Plain Layout
31182 url
31183 \end_layout
31184
31185 \end_inset
31186 </cell>
31187 <cell alignment="center" valignment="top" usebox="none">
31188 \begin_inset Text
31189
31190 \begin_layout Plain Layout
31191
31192 \end_layout
31193
31194 \end_inset
31195 </cell>
31196 </row>
31197 <row>
31198 <cell alignment="left" valignment="top" usebox="none">
31199 \begin_inset Text
31200
31201 \begin_layout Plain Layout
31202 bbding
31203 \end_layout
31204
31205 \end_inset
31206 </cell>
31207 <cell alignment="left" valignment="top" usebox="none">
31208 \begin_inset Text
31209
31210 \begin_layout Plain Layout
31211 esint
31212 \end_layout
31213
31214 \end_inset
31215 </cell>
31216 <cell alignment="left" valignment="top" usebox="none">
31217 \begin_inset Text
31218
31219 \begin_layout Plain Layout
31220 jurabib
31221 \end_layout
31222
31223 \end_inset
31224 </cell>
31225 <cell alignment="left" valignment="top" usebox="none">
31226 \begin_inset Text
31227
31228 \begin_layout Plain Layout
31229 multicol
31230 \end_layout
31231
31232 \end_inset
31233 </cell>
31234 <cell alignment="center" valignment="top" usebox="none">
31235 \begin_inset Text
31236
31237 \begin_layout Plain Layout
31238 refstyle
31239 \end_layout
31240
31241 \end_inset
31242 </cell>
31243 <cell alignment="center" valignment="top" usebox="none">
31244 \begin_inset Text
31245
31246 \begin_layout Plain Layout
31247 textcomp
31248 \end_layout
31249
31250 \end_inset
31251 </cell>
31252 <cell alignment="center" valignment="top" usebox="none">
31253 \begin_inset Text
31254
31255 \begin_layout Plain Layout
31256 varioref
31257 \end_layout
31258
31259 \end_inset
31260 </cell>
31261 <cell alignment="center" valignment="top" usebox="none">
31262 \begin_inset Text
31263
31264 \begin_layout Plain Layout
31265
31266 \end_layout
31267
31268 \end_inset
31269 </cell>
31270 </row>
31271 <row>
31272 <cell alignment="center" valignment="top" usebox="none">
31273 \begin_inset Text
31274
31275 \begin_layout Plain Layout
31276 bm
31277 \end_layout
31278
31279 \end_inset
31280 </cell>
31281 <cell alignment="center" valignment="top" usebox="none">
31282 \begin_inset Text
31283
31284 \begin_layout Plain Layout
31285 fancybox
31286 \end_layout
31287
31288 \end_inset
31289 </cell>
31290 <cell alignment="center" valignment="top" usebox="none">
31291 \begin_inset Text
31292
31293 \begin_layout Plain Layout
31294 latexsym
31295 \end_layout
31296
31297 \end_inset
31298 </cell>
31299 <cell alignment="center" valignment="top" usebox="none">
31300 \begin_inset Text
31301
31302 \begin_layout Plain Layout
31303 multirow
31304 \end_layout
31305
31306 \end_inset
31307 </cell>
31308 <cell alignment="center" valignment="top" usebox="none">
31309 \begin_inset Text
31310
31311 \begin_layout Plain Layout
31312 rotating
31313 \end_layout
31314
31315 \end_inset
31316 </cell>
31317 <cell alignment="center" valignment="top" usebox="none">
31318 \begin_inset Text
31319
31320 \begin_layout Plain Layout
31321 textgreek
31322 \end_layout
31323
31324 \end_inset
31325 </cell>
31326 <cell alignment="center" valignment="top" usebox="none">
31327 \begin_inset Text
31328
31329 \begin_layout Plain Layout
31330 verbatim
31331 \end_layout
31332
31333 \end_inset
31334 </cell>
31335 <cell alignment="center" valignment="top" usebox="none">
31336 \begin_inset Text
31337
31338 \begin_layout Plain Layout
31339
31340 \end_layout
31341
31342 \end_inset
31343 </cell>
31344 </row>
31345 </lyxtabular>
31346
31347 \end_inset
31348
31349
31350 \end_layout
31351
31352 \begin_layout Chapter
31353 Names of available colors to be used in layouts
31354 \begin_inset CommandInset label
31355 LatexCommand label
31356 name "chap:Names-of-colors"
31357
31358 \end_inset
31359
31360
31361 \end_layout
31362
31363 \begin_layout Standard
31364 The colors listed below are the standard colors and those that you can adjust
31365  in the \SpecialChar LyX
31366  preferences.
31367 \end_layout
31368
31369 \begin_layout Section
31370 Color functions
31371 \end_layout
31372
31373 \begin_layout Standard
31374 The following are no real colors, but rather act on color definitions:
31375 \end_layout
31376
31377 \begin_layout Description
31378 ignore The color is ignored
31379 \end_layout
31380
31381 \begin_layout Description
31382 inherit The color is inherited
31383 \end_layout
31384
31385 \begin_layout Description
31386 none
31387 \family roman
31388 \series medium
31389 \shape up
31390 \size normal
31391 \emph off
31392 \bar no
31393 \strikeout off
31394 \uuline off
31395 \uwave off
31396 \noun off
31397 \color none
31398  No particular color – clear or default
31399 \end_layout
31400
31401 \begin_layout Section
31402 Static colors
31403 \end_layout
31404
31405 \begin_layout Standard
31406 These are fixed colors that cannot be customized:
31407 \end_layout
31408
31409 \begin_layout Description
31410 black
31411 \end_layout
31412
31413 \begin_layout Description
31414 white
31415 \end_layout
31416
31417 \begin_layout Description
31418 blue
31419 \end_layout
31420
31421 \begin_layout Description
31422 brown
31423 \end_layout
31424
31425 \begin_layout Description
31426 cyan
31427 \end_layout
31428
31429 \begin_layout Description
31430 darkgray
31431 \end_layout
31432
31433 \begin_layout Description
31434 gray
31435 \end_layout
31436
31437 \begin_layout Description
31438 green
31439 \end_layout
31440
31441 \begin_layout Description
31442 lightgray
31443 \end_layout
31444
31445 \begin_layout Description
31446 lime
31447 \end_layout
31448
31449 \begin_layout Description
31450 magenta
31451 \end_layout
31452
31453 \begin_layout Description
31454 olive
31455 \end_layout
31456
31457 \begin_layout Description
31458 orange
31459 \end_layout
31460
31461 \begin_layout Description
31462 pink
31463 \end_layout
31464
31465 \begin_layout Description
31466 purple
31467 \end_layout
31468
31469 \begin_layout Description
31470 red
31471 \end_layout
31472
31473 \begin_layout Description
31474 teal
31475 \end_layout
31476
31477 \begin_layout Description
31478 violet
31479 \end_layout
31480
31481 \begin_layout Description
31482 yellow
31483 \end_layout
31484
31485 \begin_layout Section
31486 Dynamic colors
31487 \end_layout
31488
31489 \begin_layout Standard
31490 These are the colors allocated to specific elements in 
31491 \begin_inset Info
31492 type  "menu"
31493 arg   "dialog-show prefs"
31494 \end_inset
31495
31496 :
31497 \end_layout
31498
31499 \begin_layout Description
31500 added_space Added space color
31501 \end_layout
31502
31503 \begin_layout Description
31504 addedtext Added text color
31505 \end_layout
31506
31507 \begin_layout Description
31508 appendix Appendix marker color
31509 \end_layout
31510
31511 \begin_layout Description
31512 background Background color
31513 \end_layout
31514
31515 \begin_layout Description
31516 bottomarea Bottom area color
31517 \end_layout
31518
31519 \begin_layout Description
31520 branchlabel Label color for branches
31521 \end_layout
31522
31523 \begin_layout Description
31524 buttonbg Color used for button background
31525 \end_layout
31526
31527 \begin_layout Description
31528 buttonframe Color for inset button frames
31529 \end_layout
31530
31531 \begin_layout Description
31532 buttonhoverbg Color used for button background under focus
31533 \end_layout
31534
31535 \begin_layout Description
31536 changebar Changebar color
31537 \end_layout
31538
31539 \begin_layout Description
31540 changedtextauthor1 Changed text color author 1
31541 \end_layout
31542
31543 \begin_layout Description
31544 changedtextauthor2 Changed text color author 2
31545 \end_layout
31546
31547 \begin_layout Description
31548 changedtextauthor3 Changed text color author 3
31549 \end_layout
31550
31551 \begin_layout Description
31552 changedtextauthor4 Changed text color author 4
31553 \end_layout
31554
31555 \begin_layout Description
31556 changedtextauthor5 Changed text color author 5
31557 \end_layout
31558
31559 \begin_layout Description
31560 collapsible Collapsible insets text color
31561 \end_layout
31562
31563 \begin_layout Description
31564 collapsibleframe Collapsible insets framecolor
31565 \end_layout
31566
31567 \begin_layout Description
31568 command Text color for command insets
31569 \end_layout
31570
31571 \begin_layout Description
31572 commandbg Background color for command insets
31573 \end_layout
31574
31575 \begin_layout Description
31576 commandframe Frame color for command insets
31577 \end_layout
31578
31579 \begin_layout Description
31580 comment Label color for comments
31581 \end_layout
31582
31583 \begin_layout Description
31584 commentbg Background color of comments
31585 \end_layout
31586
31587 \begin_layout Description
31588 cursor Cursor color
31589 \end_layout
31590
31591 \begin_layout Description
31592 deletedtext Deleted text color
31593 \end_layout
31594
31595 \begin_layout Description
31596 deletedtextmodifier Deleted text modifying color
31597 \end_layout
31598
31599 \begin_layout Description
31600 depthbar Color for the depth bars in the margin
31601 \end_layout
31602
31603 \begin_layout Description
31604 eolmarker End of line marker color
31605 \end_layout
31606
31607 \begin_layout Description
31608 error Color of the \SpecialChar LaTeX
31609  error box
31610 \end_layout
31611
31612 \begin_layout Description
31613 footlabel Label color for footnotes
31614 \end_layout
31615
31616 \begin_layout Description
31617 foreground Foreground color
31618 \end_layout
31619
31620 \begin_layout Description
31621 graphicsbg Graphics inset background color
31622 \end_layout
31623
31624 \begin_layout Description
31625 greyedoutbg Background color of greyedout inset
31626 \end_layout
31627
31628 \begin_layout Description
31629 greyedoutlabel Label color for greyedout insets
31630 \end_layout
31631
31632 \begin_layout Description
31633 greyedouttext Color for greyedout inset text
31634 \end_layout
31635
31636 \begin_layout Description
31637 indexlabel Label color for index insets
31638 \end_layout
31639
31640 \begin_layout Description
31641 inlinecompletion Inline completion color
31642 \end_layout
31643
31644 \begin_layout Description
31645 insetbg Inset marker background color
31646 \end_layout
31647
31648 \begin_layout Description
31649 insetframe Inset marker frame color
31650 \end_layout
31651
31652 \begin_layout Description
31653 language Color for marking foreign language words
31654 \end_layout
31655
31656 \begin_layout Description
31657 latex Text color in \SpecialChar LaTeX
31658  mode
31659 \end_layout
31660
31661 \begin_layout Description
31662 listingsbg Background color of listings inset
31663 \end_layout
31664
31665 \begin_layout Description
31666 marginlabel Label color for margin notes
31667 \end_layout
31668
31669 \begin_layout Description
31670 math Math inset text color
31671 \end_layout
31672
31673 \begin_layout Description
31674 mathbg Math inset background color
31675 \end_layout
31676
31677 \begin_layout Description
31678 mathcorners Math inset frame color not under focus
31679 \end_layout
31680
31681 \begin_layout Description
31682 mathframe Math inset frame color under focus
31683 \end_layout
31684
31685 \begin_layout Description
31686 mathline Math line color
31687 \end_layout
31688
31689 \begin_layout Description
31690 mathmacrobg Macro math inset background color
31691 \end_layout
31692
31693 \begin_layout Description
31694 mathmacroblend Macro math blended color
31695 \end_layout
31696
31697 \begin_layout Description
31698 mathmacroframe Macro math frame color
31699 \end_layout
31700
31701 \begin_layout Description
31702 mathmacrohoverbg Macro math inset background color hovered
31703 \end_layout
31704
31705 \begin_layout Description
31706 mathmacrolabel Macro math label color
31707 \end_layout
31708
31709 \begin_layout Description
31710 mathmacronewarg Macro template color for new parameters
31711 \end_layout
31712
31713 \begin_layout Description
31714 mathmacrooldarg Macro template color for old parameters
31715 \end_layout
31716
31717 \begin_layout Description
31718 newpage New page color
31719 \end_layout
31720
31721 \begin_layout Description
31722 nonunique_inlinecompletion Inline completion color for the non-unique part
31723 \end_layout
31724
31725 \begin_layout Description
31726 note Label color for notes
31727 \end_layout
31728
31729 \begin_layout Description
31730 notebg Background color of notes
31731 \end_layout
31732
31733 \begin_layout Description
31734 pagebreak Page break/line break color
31735 \end_layout
31736
31737 \begin_layout Description
31738 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
31739 \end_layout
31740
31741 \begin_layout Description
31742 phantomtext Text color for phantom insets
31743 \end_layout
31744
31745 \begin_layout Description
31746 preview The color used for previews
31747 \end_layout
31748
31749 \begin_layout Description
31750 previewframe Preview frame color
31751 \end_layout
31752
31753 \begin_layout Description
31754 regexpframe Color for regexp frame
31755 \end_layout
31756
31757 \begin_layout Description
31758 scroll Color that indicates when a row can be scrolled 
31759 \end_layout
31760
31761 \begin_layout Description
31762 selection Background color of selected text
31763 \end_layout
31764
31765 \begin_layout Description
31766 selectiontext Foreground color of selected text
31767 \end_layout
31768
31769 \begin_layout Description
31770 shadedbg Background color of shaded box
31771 \end_layout
31772
31773 \begin_layout Description
31774 special Special chars text color
31775 \end_layout
31776
31777 \begin_layout Description
31778 tabularline Table line color
31779 \end_layout
31780
31781 \begin_layout Description
31782 tabularonoffline Table line color
31783 \end_layout
31784
31785 \begin_layout Description
31786 urllabel Label color for URL insets
31787 \end_layout
31788
31789 \begin_layout Description
31790 urltext Color for URL inset text
31791 \end_layout
31792
31793 \end_body
31794 \end_document