]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Customization.lyx: distribute and accept recent changes
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding global
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tracking_changes false
128 \output_changes false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \end_header
133
134 \begin_body
135
136 \begin_layout Title
137 Customizing \SpecialChar LyX
138 : Features for the Advanced User
139 \end_layout
140
141 \begin_layout Author
142 by the \SpecialChar LyX
143  Team
144 \begin_inset Foot
145 status collapsed
146
147 \begin_layout Plain Layout
148 \noindent
149 If you have comments or error corrections, please send them to the \SpecialChar LyX
150  Documentatio
151 n mailing list, 
152 \begin_inset CommandInset href
153 LatexCommand href
154 target "lyx-docs@lists.lyx.org"
155 type "mailto:"
156 literal "false"
157
158 \end_inset
159
160 .
161  Include 
162 \begin_inset Quotes eld
163 \end_inset
164
165 [Customization]
166 \begin_inset Quotes erd
167 \end_inset
168
169  in the subject header, and please cc the current maintainer of this file,
170  Richard Heck <rgheck@comcast.net>.
171 \end_layout
172
173 \end_inset
174
175
176 \begin_inset Newline newline
177 \end_inset
178
179
180 \begin_inset Newline newline
181 \end_inset
182
183 Version 2.3.x 
184 \end_layout
185
186 \begin_layout Standard
187 \begin_inset CommandInset toc
188 LatexCommand tableofcontents
189
190 \end_inset
191
192
193 \end_layout
194
195 \begin_layout Standard
196 \begin_inset Note Note
197 status open
198
199 \begin_layout Plain Layout
200 Please use change tracking when modifying this document.
201  This makes it easier for our translators to recognize things that have
202  been changed, and it helps the maintainer keep up-to-date with what's been
203  done.
204 \end_layout
205
206 \end_inset
207
208
209 \end_layout
210
211 \begin_layout Chapter
212 Introduction
213 \end_layout
214
215 \begin_layout Standard
216 This manual covers the customization features present in \SpecialChar LyX
217 .
218  In it, we discuss issues like keyboard shortcuts, screen previewing options,
219  printer options, sending commands to \SpecialChar LyX
220  via the \SpecialChar LyX
221  Server, internationalization,
222  installing new \SpecialChar LaTeX
223  classes and \SpecialChar LyX
224  layouts, etc.
225  We can't possibly hope to touch on everything you can change—our developers
226  add new features faster than we can document them—but we will explain the
227  most common customizations and hopefully point you in the right direction
228  for some of the more obscure ones.
229 \end_layout
230
231 \begin_layout Standard
232 \begin_inset Branch OutDated
233 inverted 0
234 status collapsed
235
236 \begin_layout Standard
237 Information from previous versions of this document that now seems to be
238  outdated is contained in the OutDated branch of this document.
239  By default, this information will not appear in the \SpecialChar LaTeX
240  output.
241 \end_layout
242
243 \end_inset
244
245
246 \end_layout
247
248 \begin_layout Chapter
249 \SpecialChar LyX
250  configuration files
251 \end_layout
252
253 \begin_layout Standard
254 This chapter aims to help you to find your way through the \SpecialChar LyX
255  configuration
256  files.
257  Before continuing to read this chapter, you should find out where your
258  \SpecialChar LyX
259  library and user directories are by using 
260 \begin_inset Flex Noun
261 status collapsed
262
263 \begin_layout Plain Layout
264 Help\SpecialChar menuseparator
265 About
266 \begin_inset space ~
267 \end_inset
268
269 LyX
270 \end_layout
271
272 \end_inset
273
274 .
275  The library directory is the place where \SpecialChar LyX
276  places its system-wide configuration
277  files; the user directory is where you can place your modified versions.
278  We will call the former 
279 \begin_inset Flex Code
280 status collapsed
281
282 \begin_layout Plain Layout
283 LyXDir
284 \end_layout
285
286 \end_inset
287
288  and the latter 
289 \begin_inset Flex Noun
290 status collapsed
291
292 \begin_layout Plain Layout
293 UserDir
294 \end_layout
295
296 \end_inset
297
298  in the remainder of this document.
299  
300 \end_layout
301
302 \begin_layout Section
303 What's in 
304 \begin_inset Flex Code
305 status collapsed
306
307 \begin_layout Plain Layout
308 LyXDir
309 \end_layout
310
311 \end_inset
312
313 ?
314 \end_layout
315
316 \begin_layout Standard
317 \begin_inset Flex Code
318 status collapsed
319
320 \begin_layout Plain Layout
321 LyXDir
322 \end_layout
323
324 \end_inset
325
326  and its sub-directories contain a number of files and that can be used
327  to customize \SpecialChar LyX
328 's behavior.
329  You can change many of these files from within \SpecialChar LyX
330  itself through the 
331 \begin_inset Flex Noun
332 status collapsed
333
334 \begin_layout Plain Layout
335 Tools\SpecialChar menuseparator
336 Preferences
337 \end_layout
338
339 \end_inset
340
341  dialog.
342  Most customization that you will want to do in \SpecialChar LyX
343  is possible through this
344  dialog.
345  However, many other inner aspects of \SpecialChar LyX
346  can be customized by modifying the
347  files in 
348 \begin_inset Flex Code
349 status collapsed
350
351 \begin_layout Plain Layout
352 LyXDir
353 \end_layout
354
355 \end_inset
356
357 .
358  These files fall in different categories, described in the following subsection
359 s.
360 \end_layout
361
362 \begin_layout Subsection
363 Automatically generated files
364 \end_layout
365
366 \begin_layout Standard
367 The files, which are to be found in 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 UserDir
373 \end_layout
374
375 \end_inset
376
377 , are generated when you configure \SpecialChar LyX
378 .
379  They contain various default values that are guessed by inspection.
380  In general, it is not a good idea to modify them, since they might be overwritt
381 en at any time.
382 \end_layout
383
384 \begin_layout Labeling
385 \labelwidthstring 00.00.0000
386 \begin_inset Flex Code
387 status collapsed
388
389 \begin_layout Plain Layout
390 lyxrc.defaults
391 \end_layout
392
393 \end_inset
394
395  contains defaults for various commands.
396 \end_layout
397
398 \begin_layout Labeling
399 \labelwidthstring 00.00.0000
400 \begin_inset Flex Code
401 status collapsed
402
403 \begin_layout Plain Layout
404 packages.lst
405 \end_layout
406
407 \end_inset
408
409  contains the list of packages that have been recognized by \SpecialChar LyX
410 .
411  It is currently unused by the \SpecialChar LyX
412  program itself, but the information extracted,
413  and more, is made available with 
414 \begin_inset Flex Noun
415 status collapsed
416
417 \begin_layout Plain Layout
418 Help\SpecialChar menuseparator
419 \SpecialChar LaTeX
420
421 \begin_inset space ~
422 \end_inset
423
424 Configuration
425 \end_layout
426
427 \end_inset
428
429 .
430 \end_layout
431
432 \begin_layout Labeling
433 \labelwidthstring 00.00.0000
434 \begin_inset Flex Code
435 status collapsed
436
437 \begin_layout Plain Layout
438 textclass.lst
439 \end_layout
440
441 \end_inset
442
443  the list of text classes that have been found in your 
444 \begin_inset Flex Code
445 status collapsed
446
447 \begin_layout Plain Layout
448 layout/
449 \end_layout
450
451 \end_inset
452
453  directories, along with the associated \SpecialChar LaTeX
454  document class and their description.
455 \end_layout
456
457 \begin_layout Labeling
458 \labelwidthstring 00.00.0000
459 \begin_inset Flex Code
460 status collapsed
461
462 \begin_layout Plain Layout
463 lyxmodules.lst
464 \end_layout
465
466 \end_inset
467
468  the list of layout modules found in your 
469 \begin_inset Flex Code
470 status collapsed
471
472 \begin_layout Plain Layout
473 layout/
474 \end_layout
475
476 \end_inset
477
478  directories
479 \end_layout
480
481 \begin_layout Labeling
482 \labelwidthstring 00.00.0000
483 \begin_inset Flex Code
484 status collapsed
485
486 \begin_layout Plain Layout
487 *files.lst
488 \end_layout
489
490 \end_inset
491
492  lists of various sorts of \SpecialChar LaTeX
493 -related files found on your system
494 \end_layout
495
496 \begin_layout Labeling
497 \labelwidthstring 00.00.0000
498 \begin_inset Flex Code
499 status collapsed
500
501 \begin_layout Plain Layout
502 doc/\SpecialChar LaTeX
503 Config.lyx
504 \end_layout
505
506 \end_inset
507
508  is automatically generated during configuration from the file 
509 \begin_inset Flex Code
510 status collapsed
511
512 \begin_layout Plain Layout
513 \SpecialChar LaTeX
514 Config.lyx.in
515 \end_layout
516
517 \end_inset
518
519 .
520  It contains information on your \SpecialChar LaTeX
521  configuration.
522 \end_layout
523
524 \begin_layout Subsection
525 Directories
526 \end_layout
527
528 \begin_layout Standard
529 These directories are duplicated between 
530 \begin_inset Flex Code
531 status collapsed
532
533 \begin_layout Plain Layout
534 LyXDir
535 \end_layout
536
537 \end_inset
538
539  and 
540 \begin_inset Flex Code
541 status collapsed
542
543 \begin_layout Plain Layout
544 UserDir
545 \end_layout
546
547 \end_inset
548
549 .
550  If a particular files exists in both places, the one in 
551 \begin_inset Flex Code
552 status collapsed
553
554 \begin_layout Plain Layout
555 UserDir
556 \end_layout
557
558 \end_inset
559
560  will be used.
561 \end_layout
562
563 \begin_layout Labeling
564 \labelwidthstring 00.00.0000
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 bind/
570 \end_layout
571
572 \end_inset
573
574  this directory contains files with the extension 
575 \begin_inset Flex Code
576 status collapsed
577
578 \begin_layout Plain Layout
579 .bind
580 \end_layout
581
582 \end_inset
583
584  that define the keybindings used in \SpecialChar LyX
585 .
586  If there exists an internationalized version of the bind file named 
587 \begin_inset Flex Code
588 status collapsed
589
590 \begin_layout Plain Layout
591 $LANG_xxx.bind
592 \end_layout
593
594 \end_inset
595
596 , that will be used first.
597 \end_layout
598
599 \begin_layout Labeling
600 \labelwidthstring 00.00.0000
601 \begin_inset Flex Code
602 status collapsed
603
604 \begin_layout Plain Layout
605 citeengines/
606 \end_layout
607
608 \end_inset
609
610  contains files with the extension 
611 \begin_inset Flex Code
612 status collapsed
613
614 \begin_layout Plain Layout
615 .citeengine
616 \end_layout
617
618 \end_inset
619
620  which define the diverse citation possibilities (natbib, biblatex etc.).
621  See 
622 \begin_inset CommandInset ref
623 LatexCommand ref
624 reference "subsec:Cite-Engine-Files"
625 plural "false"
626 caps "false"
627 noprefix "false"
628
629 \end_inset
630
631  for details.
632 \end_layout
633
634 \begin_layout Labeling
635 \labelwidthstring 00.00.0000
636 \begin_inset Flex Code
637 status collapsed
638
639 \begin_layout Plain Layout
640 clipart/
641 \end_layout
642
643 \end_inset
644
645  contains graphics files that can be included in documents.
646  
647 \end_layout
648
649 \begin_layout Labeling
650 \labelwidthstring 00.00.0000
651 \begin_inset Flex Code
652 status collapsed
653
654 \begin_layout Plain Layout
655 doc/
656 \end_layout
657
658 \end_inset
659
660  contains \SpecialChar LyX
661  documentation files (including the one you are currently reading).
662  The file 
663 \begin_inset Flex Code
664 status collapsed
665
666 \begin_layout Plain Layout
667 \SpecialChar LaTeX
668 Config.lyx
669 \end_layout
670
671 \end_inset
672
673  deserves special attention, as noted above.
674  The internationalized help docs are in subdirectories 
675 \begin_inset Flex Code
676 status collapsed
677
678 \begin_layout Plain Layout
679 doc/xx
680 \end_layout
681
682 \end_inset
683
684  where 
685 \begin_inset Quotes eld
686 \end_inset
687
688 xx
689 \begin_inset Quotes erd
690 \end_inset
691
692  is the ISO language code.
693  See 
694 \begin_inset CommandInset ref
695 LatexCommand ref
696 reference "cha:Internationalizing-LyX"
697
698 \end_inset
699
700  for details.
701 \end_layout
702
703 \begin_layout Labeling
704 \labelwidthstring 00.00.0000
705 \begin_inset Flex Code
706 status collapsed
707
708 \begin_layout Plain Layout
709 examples/
710 \end_layout
711
712 \end_inset
713
714  contains example files that explain how to use some features.
715  In the file browser, press the 
716 \begin_inset Flex Noun
717 status collapsed
718
719 \begin_layout Plain Layout
720 Examples
721 \end_layout
722
723 \end_inset
724
725  button to get there.
726 \end_layout
727
728 \begin_layout Labeling
729 \labelwidthstring 00.00.0000
730 \begin_inset Flex Code
731 status collapsed
732
733 \begin_layout Plain Layout
734 images/
735 \end_layout
736
737 \end_inset
738
739  contains image files that are used by the 
740 \begin_inset Flex Noun
741 status collapsed
742
743 \begin_layout Plain Layout
744 Document
745 \end_layout
746
747 \end_inset
748
749  dialog.
750  In addition, it also contains the individual icons used in the toolbar
751  and the banners that can be shown when \SpecialChar LyX
752  is launched.
753 \end_layout
754
755 \begin_layout Labeling
756 \labelwidthstring 00.00.0000
757 \begin_inset Flex Code
758 status collapsed
759
760 \begin_layout Plain Layout
761 kbd/
762 \end_layout
763
764 \end_inset
765
766  contains keyboard keymapping files.
767  See 
768 \begin_inset CommandInset ref
769 LatexCommand ref
770 reference "sec:International-Keymap-Stuff"
771
772 \end_inset
773
774  for details.
775 \end_layout
776
777 \begin_layout Labeling
778 \labelwidthstring 00.00.0000
779 \begin_inset Flex Code
780 status collapsed
781
782 \begin_layout Plain Layout
783 layouts/
784 \end_layout
785
786 \end_inset
787
788  contains the text class and module files described in 
789 \begin_inset CommandInset ref
790 LatexCommand ref
791 reference "cha:Installing-New-Document"
792
793 \end_inset
794
795 .
796 \end_layout
797
798 \begin_layout Labeling
799 \labelwidthstring 00.00.0000
800 \begin_inset Flex Code
801 status collapsed
802
803 \begin_layout Plain Layout
804 lyx2lyx
805 \end_layout
806
807 \end_inset
808
809  contains the 
810 \begin_inset Flex Code
811 status collapsed
812
813 \begin_layout Plain Layout
814 lyx2lyx
815 \end_layout
816
817 \end_inset
818
819  Python scripts used to convert between \SpecialChar LyX
820  versions.
821  These can be run from the command line if, say, you want to batch-convert
822  files.
823 \end_layout
824
825 \begin_layout Labeling
826 \labelwidthstring 00.00.0000
827 \begin_inset Flex Code
828 status collapsed
829
830 \begin_layout Plain Layout
831 scripts/
832 \end_layout
833
834 \end_inset
835
836  contains some files that demonstrate the capabilities of the 
837 \begin_inset Flex Noun
838 status collapsed
839
840 \begin_layout Plain Layout
841 External
842 \begin_inset space ~
843 \end_inset
844
845 Template
846 \end_layout
847
848 \end_inset
849
850  feature.
851  Also contains some scripts used by \SpecialChar LyX
852  itself.
853 \end_layout
854
855 \begin_layout Labeling
856 \labelwidthstring 00.00.0000
857 \begin_inset Flex Code
858 status collapsed
859
860 \begin_layout Plain Layout
861 templates/
862 \end_layout
863
864 \end_inset
865
866  contains the standard \SpecialChar LyX
867  template files described in 
868 \begin_inset CommandInset ref
869 LatexCommand ref
870 reference "subsec:Creating-Templates"
871
872 \end_inset
873
874 .
875 \end_layout
876
877 \begin_layout Labeling
878 \labelwidthstring 00.00.0000
879 \begin_inset Flex Code
880 status collapsed
881
882 \begin_layout Plain Layout
883 ui/
884 \end_layout
885
886 \end_inset
887
888  contains files with the extension 
889 \begin_inset Flex Code
890 status collapsed
891
892 \begin_layout Plain Layout
893 .ui
894 \end_layout
895
896 \end_inset
897
898  that define the user interface to \SpecialChar LyX
899 .
900  That is, the files define which items appear in which menus and the items
901  appearing on the toolbar.
902 \end_layout
903
904 \begin_layout Labeling
905 \labelwidthstring 00.00.0000
906 \begin_inset Flex Code
907 status collapsed
908
909 \begin_layout Plain Layout
910 xtemplates/
911 \end_layout
912
913 \end_inset
914
915  contains files with the extension 
916 \begin_inset Flex Code
917 status collapsed
918
919 \begin_layout Plain Layout
920 .xtemplate
921 \end_layout
922
923 \end_inset
924
925  which define the templates for the insertion of external material to a
926  \SpecialChar LyX
927  document; see 
928 \begin_inset CommandInset ref
929 LatexCommand ref
930 reference "chap:Including-External-Material"
931
932 \end_inset
933
934 .
935 \end_layout
936
937 \begin_layout Subsection
938 Files you don't want to modify
939 \end_layout
940
941 \begin_layout Standard
942 These files are used internally by \SpecialChar LyX
943  and you generally do not need to modify
944  them unless you are a developer.
945 \end_layout
946
947 \begin_layout Labeling
948 \labelwidthstring 00.00.0000
949 \begin_inset Flex Code
950 status collapsed
951
952 \begin_layout Plain Layout
953 CREDITS
954 \end_layout
955
956 \end_inset
957
958  this file contains the list of \SpecialChar LyX
959  developers.
960  The contents are displayed with the menu entry 
961 \begin_inset Flex Noun
962 status collapsed
963
964 \begin_layout Plain Layout
965 Help\SpecialChar menuseparator
966 About
967 \begin_inset space ~
968 \end_inset
969
970 LyX
971 \end_layout
972
973 \end_inset
974
975 .
976 \end_layout
977
978 \begin_layout Labeling
979 \labelwidthstring 00.00.0000
980 \begin_inset Flex Code
981 status collapsed
982
983 \begin_layout Plain Layout
984 chkconfig.ltx
985 \end_layout
986
987 \end_inset
988
989  this is a \SpecialChar LaTeX
990  script used during the configuration process.
991  Do not run directly.
992 \end_layout
993
994 \begin_layout Labeling
995 \labelwidthstring 00.00.0000
996 \begin_inset Flex Code
997 status collapsed
998
999 \begin_layout Plain Layout
1000 configure.py
1001 \end_layout
1002
1003 \end_inset
1004
1005  this is a Python script that is used to re-configure \SpecialChar LyX
1006 .
1007  It creates configuration files in the directory it was run from.
1008 \end_layout
1009
1010 \begin_layout Subsection
1011 Other files needing a line or two
1012 \end_layout
1013
1014 \begin_layout Labeling
1015 \labelwidthstring 00.00.0000
1016 \begin_inset Flex Code
1017 status collapsed
1018
1019 \begin_layout Plain Layout
1020 encodings
1021 \end_layout
1022
1023 \end_inset
1024
1025  this contains tables describing how different character encodings can be
1026  mapped to Unicode
1027 \end_layout
1028
1029 \begin_layout Labeling
1030 \labelwidthstring 00.00.0000
1031 \begin_inset Flex Code
1032 status collapsed
1033
1034 \begin_layout Plain Layout
1035 languages
1036 \end_layout
1037
1038 \end_inset
1039
1040  this file contains a list of all the languages currently supported by \SpecialChar LyX
1041 .
1042 \end_layout
1043
1044 \begin_layout Labeling
1045 \labelwidthstring 00.00.0000
1046 \begin_inset Flex Code
1047 status collapsed
1048
1049 \begin_layout Plain Layout
1050 latexfonts
1051 \end_layout
1052
1053 \end_inset
1054
1055  contains information about the supported fonts.
1056 \end_layout
1057
1058 \begin_layout Labeling
1059 \labelwidthstring 00.00.0000
1060 \begin_inset Flex Code
1061 status collapsed
1062
1063 \begin_layout Plain Layout
1064 layouttranslations
1065 \end_layout
1066
1067 \end_inset
1068
1069  this file contains translations for internationalized paragraph styles
1070  (see 
1071 \begin_inset CommandInset ref
1072 LatexCommand ref
1073 reference "subsec:I18n"
1074
1075 \end_inset
1076
1077 ).
1078 \end_layout
1079
1080 \begin_layout Labeling
1081 \labelwidthstring 00.00.0000
1082 \begin_inset Flex Code
1083 status collapsed
1084
1085 \begin_layout Plain Layout
1086 unicodesymbols
1087 \end_layout
1088
1089 \end_inset
1090
1091  this file contains information about Unicode-encoded glyphs and the way
1092  they are supported by \SpecialChar LyX
1093  via \SpecialChar LaTeX
1094 .
1095 \end_layout
1096
1097 \begin_layout Section
1098 Your local configuration directory
1099 \end_layout
1100
1101 \begin_layout Standard
1102 Even if you are using \SpecialChar LyX
1103  as an unprivileged user, you might want to change
1104  \SpecialChar LyX
1105  configuration for your own use.
1106  The 
1107 \begin_inset Flex Code
1108 status collapsed
1109
1110 \begin_layout Plain Layout
1111 UserDir
1112 \end_layout
1113
1114 \end_inset
1115
1116  directory contains all your personal configuration files.
1117  This is the directory described as 
1118 \begin_inset Quotes eld
1119 \end_inset
1120
1121 user directory
1122 \begin_inset Quotes erd
1123 \end_inset
1124
1125  in 
1126 \begin_inset Flex Noun
1127 status collapsed
1128
1129 \begin_layout Plain Layout
1130 Help\SpecialChar menuseparator
1131 About
1132 \begin_inset space ~
1133 \end_inset
1134
1135 LyX
1136 \end_layout
1137
1138 \end_inset
1139
1140 .
1141  This directory is used as a mirror of 
1142 \begin_inset Flex Code
1143 status collapsed
1144
1145 \begin_layout Plain Layout
1146 LyXDir
1147 \end_layout
1148
1149 \end_inset
1150
1151 , which means that every file in 
1152 \begin_inset Flex Code
1153 status collapsed
1154
1155 \begin_layout Plain Layout
1156 UserDir
1157 \end_layout
1158
1159 \end_inset
1160
1161  is a replacement for the corresponding file in 
1162 \begin_inset Flex Code
1163 status collapsed
1164
1165 \begin_layout Plain Layout
1166 LyXDir
1167 \end_layout
1168
1169 \end_inset
1170
1171 .
1172  Any configuration file described in the above sections can be placed either
1173  in the system-wide directory, in which case it will affect all users, or
1174  in your local directory for your own use.
1175 \end_layout
1176
1177 \begin_layout Standard
1178 To make things clearer, let's provide a few examples:
1179 \end_layout
1180
1181 \begin_layout Itemize
1182 The preferences set in the 
1183 \begin_inset Flex Noun
1184 status collapsed
1185
1186 \begin_layout Plain Layout
1187 Tools\SpecialChar menuseparator
1188 Preferences
1189 \end_layout
1190
1191 \end_inset
1192
1193  dialog are saved to a file 
1194 \begin_inset Flex Code
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198 preferences
1199 \end_layout
1200
1201 \end_inset
1202
1203  in 
1204 \begin_inset Flex Code
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208 UserDir
1209 \end_layout
1210
1211 \end_inset
1212
1213 .
1214 \end_layout
1215
1216 \begin_layout Itemize
1217 When you reconfigure using 
1218 \begin_inset Flex Noun
1219 status collapsed
1220
1221 \begin_layout Plain Layout
1222 Tools\SpecialChar menuseparator
1223 Reconfigure
1224 \end_layout
1225
1226 \end_inset
1227
1228 , \SpecialChar LyX
1229  runs the 
1230 \begin_inset Flex Code
1231 status collapsed
1232
1233 \begin_layout Plain Layout
1234 configure.py
1235 \end_layout
1236
1237 \end_inset
1238
1239  script, and the resulting files are written in your local configuration
1240  directory.
1241  This means that any additional text class file that you might have added
1242  in 
1243 \begin_inset Flex Code
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 UserDir/layouts
1248 \end_layout
1249
1250 \end_inset
1251
1252  will be added to the list of classes in the 
1253 \begin_inset Flex Noun
1254 status collapsed
1255
1256 \begin_layout Plain Layout
1257 Document\SpecialChar menuseparator
1258 Settings
1259 \end_layout
1260
1261 \end_inset
1262
1263  dialog.
1264 \end_layout
1265
1266 \begin_layout Itemize
1267 If you get some updated documentation from \SpecialChar LyX
1268  ftp site and cannot install
1269  it because you do not have sysadmin rights on your system, you can just
1270  copy the files in 
1271 \begin_inset Flex Code
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 UserDir/doc/
1276 \end_layout
1277
1278 \end_inset
1279
1280  and the items in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Help
1286 \end_layout
1287
1288 \end_inset
1289
1290  menu will open them!
1291 \end_layout
1292
1293 \begin_layout Section
1294 Running \SpecialChar LyX
1295  with multiple configurations
1296 \end_layout
1297
1298 \begin_layout Standard
1299 The configuration freedom of the local configuration directory may not suffice
1300  if you want to have more than one configuration at your disposal.
1301  For example, you may want to be use different key bindings or printer settings
1302  at different times.
1303  You can achieve this by having several such directories.
1304  You then specify which directory to use at run-time.
1305 \end_layout
1306
1307 \begin_layout Standard
1308 Invoking \SpecialChar LyX
1309  with the command line switch 
1310 \begin_inset Flex Code
1311 status collapsed
1312
1313 \begin_layout Plain Layout
1314 -userdir
1315 \end_layout
1316
1317 \end_inset
1318
1319  
1320 \emph on
1321 <some directory>
1322 \emph default
1323  instructs the program to read the configuration from that directory, and
1324  not from the default directory.
1325  (You can determine the default directory by running \SpecialChar LyX
1326  without the 
1327 \begin_inset Flex Code
1328 status collapsed
1329
1330 \begin_layout Plain Layout
1331 -userdir
1332 \end_layout
1333
1334 \end_inset
1335
1336  switch.) If the specified directory does not exist, \SpecialChar LyX
1337  offers to create it
1338  for you, just like it does for the default directory on the first time
1339  you run the program.
1340  You can modify the configuration options in this additional user directory
1341  exactly as you would for the default directory.
1342  These directories are completely independent (but read on).
1343  Note that setting the environment variable 
1344 \begin_inset Flex Code
1345 status collapsed
1346
1347 \begin_layout Plain Layout
1348 LYX_USERDIR_VER
1349 \end_layout
1350
1351 \end_inset
1352
1353  to some value has exactly the same effect.
1354 \end_layout
1355
1356 \begin_layout Standard
1357 Having several configurations also requires more maintenance: if you want
1358  to add a new layout to 
1359 \begin_inset Flex Code
1360 status collapsed
1361
1362 \begin_layout Plain Layout
1363 NewUserDir/layouts
1364 \end_layout
1365
1366 \end_inset
1367
1368  which you want available from all your configurations, you must add it
1369  to each directory separately.
1370  You can avoid this with the following trick: after \SpecialChar LyX
1371  creates the additional
1372  directory, most of the subdirectories (see above) are empty.
1373  If you want the new configuration to mirror an existing one, replace the
1374  empty subdirectory with a symbolic link to the matching subdirectory in
1375  the existing configuration.
1376  Take care with the 
1377 \begin_inset Flex Code
1378 status collapsed
1379
1380 \begin_layout Plain Layout
1381 doc/
1382 \end_layout
1383
1384 \end_inset
1385
1386  subdirectory, however, since it contains a file written by the configuration
1387  script (also accessible through 
1388 \begin_inset Flex Noun
1389 status collapsed
1390
1391 \begin_layout Plain Layout
1392 Tools\SpecialChar menuseparator
1393 Reconfigure
1394 \end_layout
1395
1396 \end_inset
1397
1398 ) which is configuration-specific.
1399 \end_layout
1400
1401 \begin_layout Chapter
1402 The Preferences dialog
1403 \end_layout
1404
1405 \begin_layout Standard
1406 All options of the preferences dialog are described in the Appendix 
1407 \emph on
1408 The Preferences Dialog
1409 \emph default
1410  in the 
1411 \emph on
1412 User's Guide
1413 \emph default
1414 .
1415  For some options you might find here more details.
1416 \end_layout
1417
1418 \begin_layout Section
1419 Formats
1420 \begin_inset CommandInset label
1421 LatexCommand label
1422 name "sec:Formats"
1423
1424 \end_inset
1425
1426
1427 \end_layout
1428
1429 \begin_layout Standard
1430 The first step is to define your file formats if they are not already defined.
1431  To do so, open the 
1432 \begin_inset Flex Noun
1433 status collapsed
1434
1435 \begin_layout Plain Layout
1436 Tools\SpecialChar menuseparator
1437 Preferences
1438 \end_layout
1439
1440 \end_inset
1441
1442  dialog.
1443  Under 
1444 \begin_inset Flex Noun
1445 status collapsed
1446
1447 \begin_layout Plain Layout
1448 File Handling\SpecialChar menuseparator
1449 File formats
1450 \end_layout
1451
1452 \end_inset
1453
1454  press the 
1455 \begin_inset Flex Noun
1456 status collapsed
1457
1458 \begin_layout Plain Layout
1459 New
1460 \end_layout
1461
1462 \end_inset
1463
1464  button to define your new format.
1465  The 
1466 \begin_inset Flex Noun
1467 status collapsed
1468
1469 \begin_layout Plain Layout
1470 Format
1471 \end_layout
1472
1473 \end_inset
1474
1475  field contains the name used to identify the format in the GUI.
1476  The 
1477 \begin_inset Flex Noun
1478 status collapsed
1479
1480 \begin_layout Plain Layout
1481 Short Name
1482 \end_layout
1483
1484 \end_inset
1485
1486  is used to identify the format internally.
1487  You will also need to enter a file extension.
1488  These are all required.
1489  The optional 
1490 \begin_inset Flex Noun
1491 status collapsed
1492
1493 \begin_layout Plain Layout
1494 Shortcut
1495 \end_layout
1496
1497 \end_inset
1498
1499  field is used to provide a keyboard shortcut on the menus.
1500  (For example, pressing 
1501 \begin_inset Flex Noun
1502 status collapsed
1503
1504 \begin_layout Plain Layout
1505 Ctrl+D
1506 \end_layout
1507
1508 \end_inset
1509
1510  will 
1511 \begin_inset Flex Noun
1512 status collapsed
1513
1514 \begin_layout Plain Layout
1515 Document\SpecialChar menuseparator
1516 View (Other Formats)\SpecialChar menuseparator
1517 DVI
1518 \end_layout
1519
1520 \end_inset
1521
1522 .) 
1523 \end_layout
1524
1525 \begin_layout Standard
1526 A Format can have a 
1527 \begin_inset Flex Noun
1528 status collapsed
1529
1530 \begin_layout Plain Layout
1531 Viewer
1532 \end_layout
1533
1534 \end_inset
1535
1536  and an 
1537 \begin_inset Flex Noun
1538 status collapsed
1539
1540 \begin_layout Plain Layout
1541 Editor
1542 \end_layout
1543
1544 \end_inset
1545
1546  associated with it.
1547  For example, you might want to use 
1548 \begin_inset Flex Noun
1549 status collapsed
1550
1551 \begin_layout Plain Layout
1552 Ghostview
1553 \end_layout
1554
1555 \end_inset
1556
1557  to view PostScript files.
1558  You can enter the command needed to start the program in the corresponding
1559  fields.
1560  In defining this command, you can use the four variables listed in the
1561  next section.
1562  The viewer is launched when you view an image in \SpecialChar LyX
1563  or use the 
1564 \begin_inset Flex Noun
1565 status collapsed
1566
1567 \begin_layout Plain Layout
1568 Document\SpecialChar menuseparator
1569 View
1570 \end_layout
1571
1572 \end_inset
1573
1574  menu.
1575  The editor is for example launched when you right-click on an image and
1576  choose 
1577 \begin_inset Flex Noun
1578 status collapsed
1579
1580 \begin_layout Plain Layout
1581 Edit externally
1582 \end_layout
1583
1584 \end_inset
1585
1586  in the appearing context menu.
1587 \end_layout
1588
1589 \begin_layout Standard
1590 The 
1591 \begin_inset Flex Noun
1592 status collapsed
1593
1594 \begin_layout Plain Layout
1595 MIME
1596 \end_layout
1597
1598 \end_inset
1599
1600  type of a format is optional, but if it is specified, it must be unique
1601  across all formats.
1602  It is used to detect files of this format from the file contents.
1603  For some important file formats there is no MIME type officially registered
1604  with the 
1605 \begin_inset CommandInset href
1606 LatexCommand href
1607 name "IANA"
1608 target "http://www.iana.org/assignments/media-types/"
1609 literal "false"
1610
1611 \end_inset
1612
1613 .
1614  Therefore \SpecialChar LyX
1615  uses the extended list of MIME types as specified by 
1616 \begin_inset CommandInset href
1617 LatexCommand href
1618 name "freedesktop.org"
1619 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1620 literal "false"
1621
1622 \end_inset
1623
1624 .
1625 \end_layout
1626
1627 \begin_layout Standard
1628 The 
1629 \begin_inset Flex Noun
1630 status collapsed
1631
1632 \begin_layout Plain Layout
1633 Document format
1634 \end_layout
1635
1636 \end_inset
1637
1638  option tells \SpecialChar LyX
1639  that a format is suitable for document export.
1640  If this is set and if a suitable conversion route exists (see 
1641 \begin_inset CommandInset ref
1642 LatexCommand ref
1643 reference "sec:Converters"
1644
1645 \end_inset
1646
1647 ), the format will appear in the 
1648 \begin_inset Flex Noun
1649 status collapsed
1650
1651 \begin_layout Plain Layout
1652 File\SpecialChar menuseparator
1653 Export
1654 \end_layout
1655
1656 \end_inset
1657
1658  menu.
1659  The format will also appear in the 
1660 \begin_inset Flex Noun
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 Document\SpecialChar menuseparator
1665 View
1666 \end_layout
1667
1668 \end_inset
1669
1670  menu if a viewer is specified for the format.
1671  Pure image formats, such as 
1672 \begin_inset Flex Code
1673 status collapsed
1674
1675 \begin_layout Plain Layout
1676 png
1677 \end_layout
1678
1679 \end_inset
1680
1681 , should not use this option.
1682  Formats that can both represent vector graphics and documents like 
1683 \begin_inset Flex Code
1684 status collapsed
1685
1686 \begin_layout Plain Layout
1687 pdf
1688 \end_layout
1689
1690 \end_inset
1691
1692  should use it.
1693 \end_layout
1694
1695 \begin_layout Standard
1696 The option 
1697 \begin_inset Flex Noun
1698 status collapsed
1699
1700 \begin_layout Plain Layout
1701 Vector graphics format
1702 \end_layout
1703
1704 \end_inset
1705
1706  tells \SpecialChar LyX
1707  that a format can contain vector graphics.
1708  This information is used to determine the target format of included graphics
1709  for 
1710 \begin_inset Flex Noun
1711 status collapsed
1712
1713 \begin_layout Plain Layout
1714 pdflatex
1715 \end_layout
1716
1717 \end_inset
1718
1719  export.
1720  Included graphics may need to be converted to either 
1721 \begin_inset Flex Noun
1722 status collapsed
1723
1724 \begin_layout Plain Layout
1725 pdf
1726 \end_layout
1727
1728 \end_inset
1729
1730
1731 \begin_inset Flex Noun
1732 status collapsed
1733
1734 \begin_layout Plain Layout
1735 png
1736 \end_layout
1737
1738 \end_inset
1739
1740 , or 
1741 \begin_inset Flex Noun
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 jpg
1746 \end_layout
1747
1748 \end_inset
1749
1750 , since 
1751 \begin_inset Flex Noun
1752 status collapsed
1753
1754 \begin_layout Plain Layout
1755 pdflatex
1756 \end_layout
1757
1758 \end_inset
1759
1760  cannot handle other image formats.
1761  If an included graphic is not already in 
1762 \begin_inset Flex Noun
1763 status collapsed
1764
1765 \begin_layout Plain Layout
1766 pdf
1767 \end_layout
1768
1769 \end_inset
1770
1771
1772 \begin_inset Flex Noun
1773 status collapsed
1774
1775 \begin_layout Plain Layout
1776 png
1777 \end_layout
1778
1779 \end_inset
1780
1781 , or 
1782 \begin_inset Flex Noun
1783 status collapsed
1784
1785 \begin_layout Plain Layout
1786 jpg
1787 \end_layout
1788
1789 \end_inset
1790
1791  format, it is converted to 
1792 \begin_inset Flex Noun
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 pdf
1797 \end_layout
1798
1799 \end_inset
1800
1801  if the vector format option is set, and otherwise to 
1802 \begin_inset Flex Noun
1803 status collapsed
1804
1805 \begin_layout Plain Layout
1806 png
1807 \end_layout
1808
1809 \end_inset
1810
1811 .
1812 \end_layout
1813
1814 \begin_layout Section
1815 Copiers
1816 \end_layout
1817
1818 \begin_layout Standard
1819 Since all conversions from one format to another take place in \SpecialChar LyX
1820 's temporary
1821  directory, it is sometimes necessary to modify a file before copying it
1822  to the temporary directory in order that the conversion may be performed.
1823 \begin_inset Foot
1824 status collapsed
1825
1826 \begin_layout Plain Layout
1827 For example, the file may refer to other files—images, for example—using
1828  relative file names, and these may become invalid when the file is copied
1829  to the temporary directory.
1830 \end_layout
1831
1832 \end_inset
1833
1834  This is done by a Copier: It copies a file to (or from) the temporary directory
1835  and may modify it in the process.
1836 \end_layout
1837
1838 \begin_layout Standard
1839 The definitions of the copiers may use eight variables:
1840 \end_layout
1841
1842 \begin_layout Labeling
1843 \labelwidthstring 00.00.0000
1844 \begin_inset Flex Code
1845 status collapsed
1846
1847 \begin_layout Plain Layout
1848 $$s
1849 \end_layout
1850
1851 \end_inset
1852
1853  The \SpecialChar LyX
1854  system directory (e.
1855 \begin_inset space \thinspace{}
1856 \end_inset
1857
1858 g.
1859 \begin_inset space \space{}
1860 \end_inset
1861
1862
1863 \begin_inset Flex Noun
1864 status collapsed
1865
1866 \begin_layout Plain Layout
1867 /usr/share/lyx
1868 \end_layout
1869
1870 \end_inset
1871
1872 ).
1873 \end_layout
1874
1875 \begin_layout Labeling
1876 \labelwidthstring 00.00.0000
1877 \begin_inset Flex Code
1878 status collapsed
1879
1880 \begin_layout Plain Layout
1881 $$i
1882 \end_layout
1883
1884 \end_inset
1885
1886  The input file
1887 \end_layout
1888
1889 \begin_layout Labeling
1890 \labelwidthstring 00.00.0000
1891 \begin_inset Flex Code
1892 status collapsed
1893
1894 \begin_layout Plain Layout
1895 $$o
1896 \end_layout
1897
1898 \end_inset
1899
1900  The output file
1901 \end_layout
1902
1903 \begin_layout Labeling
1904 \labelwidthstring 00.00.0000
1905 \begin_inset Flex Code
1906 status collapsed
1907
1908 \begin_layout Plain Layout
1909 $$b
1910 \end_layout
1911
1912 \end_inset
1913
1914  The base name (without filename extension) in the \SpecialChar LyX
1915  temporary directory
1916 \end_layout
1917
1918 \begin_layout Labeling
1919 \labelwidthstring 00.00.0000
1920 \begin_inset Flex Code
1921 status collapsed
1922
1923 \begin_layout Plain Layout
1924 $$p
1925 \end_layout
1926
1927 \end_inset
1928
1929  The full directory path of the \SpecialChar LyX
1930  temporary directory
1931 \end_layout
1932
1933 \begin_layout Labeling
1934 \labelwidthstring 00.00.0000
1935 \begin_inset Flex Code
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 $$r
1940 \end_layout
1941
1942 \end_inset
1943
1944  The full pathname to the original \SpecialChar LyX
1945  file being processed
1946 \end_layout
1947
1948 \begin_layout Labeling
1949 \labelwidthstring 00.00.0000
1950 \begin_inset Flex Code
1951 status collapsed
1952
1953 \begin_layout Plain Layout
1954 $$f
1955 \end_layout
1956
1957 \end_inset
1958
1959  The filename (without any directory path) of the \SpecialChar LyX
1960  file.
1961 \end_layout
1962
1963 \begin_layout Labeling
1964 \labelwidthstring 00.00.0000
1965 \begin_inset Flex Code
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969 $$l
1970 \end_layout
1971
1972 \end_inset
1973
1974  The `\SpecialChar LaTeX
1975  name'
1976 \end_layout
1977
1978 \begin_layout Standard
1979 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1980 's 
1981 \series bold
1982
1983 \backslash
1984 include
1985 \series default
1986  command.
1987  It is relevant only when exporting files suitable for such inclusion.
1988 \end_layout
1989
1990 \begin_layout Standard
1991 Copiers can be used to do almost anything with output files.
1992  For example, suppose you want generated pdf files to be copied to a special
1993  directory, 
1994 \begin_inset Flex Code
1995 status collapsed
1996
1997 \begin_layout Plain Layout
1998 /home/you/pdf/
1999 \end_layout
2000
2001 \end_inset
2002
2003 .
2004  Then you could write a shell script such as this one:
2005 \end_layout
2006
2007 \begin_layout Standard
2008 \begin_inset listings
2009 inline false
2010 status open
2011
2012 \begin_layout Plain Layout
2013
2014 #!/bin/bash
2015 \end_layout
2016
2017 \begin_layout Plain Layout
2018
2019 FROMFILE=$1
2020 \end_layout
2021
2022 \begin_layout Plain Layout
2023
2024 TOFILE=`basename $2`
2025 \end_layout
2026
2027 \begin_layout Plain Layout
2028
2029 cp $FROMFILE /home/you/pdf/$TOFILE
2030 \end_layout
2031
2032 \end_inset
2033
2034 Save it in your local \SpecialChar LyX
2035  directory—say, 
2036 \begin_inset Flex Code
2037 status collapsed
2038
2039 \begin_layout Plain Layout
2040 /home/you/.lyx/scripts/pdfcopier.sh
2041 \end_layout
2042
2043 \end_inset
2044
2045 —and make it executable, if you need to do so on your platform.
2046  Then, in the 
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 Tools\SpecialChar menuseparator
2052 Preferences
2053 \end_layout
2054
2055 \end_inset
2056
2057  dialog, select under 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 File Handling\SpecialChar menuseparator
2063 File formats
2064 \end_layout
2065
2066 \end_inset
2067
2068  the 
2069 \begin_inset Flex Noun
2070 status collapsed
2071
2072 \begin_layout Plain Layout
2073 PDF(pdflatex)
2074 \end_layout
2075
2076 \end_inset
2077
2078  format—or one of the other pdf formats—and enter 
2079 \begin_inset Flex Code
2080 status collapsed
2081
2082 \begin_layout Plain Layout
2083 pdfcopier.sh $$i $$o
2084 \end_layout
2085
2086 \end_inset
2087
2088  into the 
2089 \begin_inset Flex Noun
2090 status collapsed
2091
2092 \begin_layout Plain Layout
2093 Copier
2094 \end_layout
2095
2096 \end_inset
2097
2098  field.
2099  
2100 \end_layout
2101
2102 \begin_layout Standard
2103 Copiers are used by \SpecialChar LyX
2104  in various of its own conversions.
2105  For example, if appropriate programs are found, \SpecialChar LyX
2106  will automatically install
2107  copiers for the 
2108 \begin_inset Flex Noun
2109 status collapsed
2110
2111 \begin_layout Plain Layout
2112 HTML
2113 \end_layout
2114
2115 \end_inset
2116
2117  and 
2118 \begin_inset Flex Noun
2119 status collapsed
2120
2121 \begin_layout Plain Layout
2122 HTML
2123 \begin_inset space ~
2124 \end_inset
2125
2126 (MS Word)
2127 \end_layout
2128
2129 \end_inset
2130
2131  formats.
2132  When these formats are exported, the copier sees that not just the main
2133  HTML file but various associated files (style files, images, etc.) are also
2134  copied.
2135  All these files are written to a subdirectory of the directory in which
2136  the original \SpecialChar LyX
2137  file was found.
2138 \begin_inset Foot
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 This copier can be customized.
2143  The optional 
2144 \begin_inset Quotes eld
2145 \end_inset
2146
2147 -e
2148 \begin_inset Quotes erd
2149 \end_inset
2150
2151  argument takes a comma-separated list of extensions to be copied; if it
2152  is omitted, all files will be copied.
2153  The 
2154 \begin_inset Quotes eld
2155 \end_inset
2156
2157 -t
2158 \begin_inset Quotes erd
2159 \end_inset
2160
2161  argument determines the extension added to the generated directory.
2162  By default, it is 
2163 \begin_inset Quotes eld
2164 \end_inset
2165
2166
2167 \begin_inset Flex Noun
2168 status collapsed
2169
2170 \begin_layout Plain Layout
2171 LyXconv
2172 \end_layout
2173
2174 \end_inset
2175
2176
2177 \begin_inset Quotes erd
2178 \end_inset
2179
2180 , so HTML generated from 
2181 \begin_inset Flex Noun
2182 status collapsed
2183
2184 \begin_layout Plain Layout
2185 /path/to/filename.lyx
2186 \end_layout
2187
2188 \end_inset
2189
2190  will end up in 
2191 \begin_inset Flex Noun
2192 status collapsed
2193
2194 \begin_layout Plain Layout
2195 /path/to/filename.html.LyXconv
2196 \end_layout
2197
2198 \end_inset
2199
2200 .
2201  
2202 \end_layout
2203
2204 \end_inset
2205
2206
2207 \end_layout
2208
2209 \begin_layout Section
2210 Converters
2211 \begin_inset CommandInset label
2212 LatexCommand label
2213 name "sec:Converters"
2214
2215 \end_inset
2216
2217
2218 \end_layout
2219
2220 \begin_layout Standard
2221 You can define your own Converters to convert files between different formats.
2222  This is done in the 
2223 \begin_inset Flex Noun
2224 status collapsed
2225
2226 \begin_layout Plain Layout
2227 Tools\SpecialChar menuseparator
2228 Preferences\SpecialChar menuseparator
2229 File Handling\SpecialChar menuseparator
2230 Converters
2231 \end_layout
2232
2233 \end_inset
2234
2235  dialog.
2236 \end_layout
2237
2238 \begin_layout Standard
2239 To define a new converter, select the 
2240 \begin_inset Flex Noun
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 From
2245 \begin_inset space ~
2246 \end_inset
2247
2248 format
2249 \end_layout
2250
2251 \end_inset
2252
2253  and 
2254 \begin_inset Flex Noun
2255 status collapsed
2256
2257 \begin_layout Plain Layout
2258 To
2259 \begin_inset space ~
2260 \end_inset
2261
2262 format
2263 \end_layout
2264
2265 \end_inset
2266
2267  from the drop-down lists, enter the command needed for the conversion,
2268  and then press the 
2269 \begin_inset Flex Noun
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 Add
2274 \end_layout
2275
2276 \end_inset
2277
2278  button.
2279  Several variables can be used in the definition of converters:
2280 \end_layout
2281
2282 \begin_layout Labeling
2283 \labelwidthstring 00.00.0000
2284 \begin_inset Flex Code
2285 status collapsed
2286
2287 \begin_layout Plain Layout
2288 $$s
2289 \end_layout
2290
2291 \end_inset
2292
2293  The \SpecialChar LyX
2294  system directory
2295 \end_layout
2296
2297 \begin_layout Labeling
2298 \labelwidthstring 00.00.0000
2299 \begin_inset Flex Code
2300 status collapsed
2301
2302 \begin_layout Plain Layout
2303 $$i
2304 \end_layout
2305
2306 \end_inset
2307
2308  The input file
2309 \end_layout
2310
2311 \begin_layout Labeling
2312 \labelwidthstring 00.00.0000
2313 \begin_inset Flex Code
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317 $$o
2318 \end_layout
2319
2320 \end_inset
2321
2322  The output file
2323 \end_layout
2324
2325 \begin_layout Labeling
2326 \labelwidthstring 00.00.0000
2327 \begin_inset Flex Code
2328 status collapsed
2329
2330 \begin_layout Plain Layout
2331 $$b
2332 \end_layout
2333
2334 \end_inset
2335
2336  The base filename of the input file (i.
2337 \begin_inset space \thinspace{}
2338 \end_inset
2339
2340 g., without the extension)
2341 \end_layout
2342
2343 \begin_layout Labeling
2344 \labelwidthstring 00.00.0000
2345 \begin_inset Flex Code
2346 status collapsed
2347
2348 \begin_layout Plain Layout
2349 $$p
2350 \end_layout
2351
2352 \end_inset
2353
2354  The path to the input file
2355 \end_layout
2356
2357 \begin_layout Labeling
2358 \labelwidthstring 00.00.0000
2359 \begin_inset Flex Code
2360 status collapsed
2361
2362 \begin_layout Plain Layout
2363 $$r
2364 \end_layout
2365
2366 \end_inset
2367
2368  The path to the original input file (this is different from $$p when a
2369  chain of converters is called)
2370 \end_layout
2371
2372 \begin_layout Labeling
2373 \labelwidthstring 00.00.0000
2374 \begin_inset Flex Code
2375 status collapsed
2376
2377 \begin_layout Plain Layout
2378 $$e
2379 \end_layout
2380
2381 \end_inset
2382
2383  The iconv name for the encoding of the document.
2384 \end_layout
2385
2386 \begin_layout Standard
2387 In the 
2388 \begin_inset Flex Noun
2389 status collapsed
2390
2391 \begin_layout Plain Layout
2392 Extra
2393 \begin_inset space ~
2394 \end_inset
2395
2396 Flag
2397 \end_layout
2398
2399 \end_inset
2400
2401  field you can enter the following flags, separated by commas:
2402 \end_layout
2403
2404 \begin_layout Labeling
2405 \labelwidthstring 00.00.0000
2406 \begin_inset Flex Code
2407 status collapsed
2408
2409 \begin_layout Plain Layout
2410 latex
2411 \end_layout
2412
2413 \end_inset
2414
2415  This converter runs some form of \SpecialChar LaTeX
2416 .
2417  This will make \SpecialChar LyX
2418 's \SpecialChar LaTeX
2419  error logs available.
2420 \end_layout
2421
2422 \begin_layout Labeling
2423 \labelwidthstring 00.00.0000
2424 \begin_inset Flex Code
2425 status collapsed
2426
2427 \begin_layout Plain Layout
2428 needaux
2429 \end_layout
2430
2431 \end_inset
2432
2433  Needs the \SpecialChar LaTeX
2434  
2435 \begin_inset Flex Noun
2436 status collapsed
2437
2438 \begin_layout Plain Layout
2439 .aux
2440 \end_layout
2441
2442 \end_inset
2443
2444  file for the conversion.
2445 \end_layout
2446
2447 \begin_layout Labeling
2448 \labelwidthstring 00.00.0000
2449 \begin_inset Flex Code
2450 status collapsed
2451
2452 \begin_layout Plain Layout
2453 nice
2454 \end_layout
2455
2456 \end_inset
2457
2458  Needs a 
2459 \begin_inset Quotes eld
2460 \end_inset
2461
2462 nice
2463 \begin_inset Quotes erd
2464 \end_inset
2465
2466  file from the backend, which in practice means a \SpecialChar LaTeX
2467  file like the one we
2468  would export, without 
2469 \begin_inset Flex Code
2470 status collapsed
2471
2472 \begin_layout Plain Layout
2473 input@path
2474 \end_layout
2475
2476 \end_inset
2477
2478 .
2479 \end_layout
2480
2481 \begin_layout Labeling
2482 \labelwidthstring 00.00.0000
2483 \begin_inset Flex Code
2484 status collapsed
2485
2486 \begin_layout Plain Layout
2487 xml
2488 \end_layout
2489
2490 \end_inset
2491
2492  Output is XML.
2493 \end_layout
2494
2495 \begin_layout Standard
2496 The following three flags are not really flags at all because they take
2497  an argument in the 
2498 \begin_inset Flex Noun
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 key
2503 \begin_inset space ~
2504 \end_inset
2505
2506 =
2507 \begin_inset space ~
2508 \end_inset
2509
2510 value
2511 \end_layout
2512
2513 \end_inset
2514
2515  format:
2516 \end_layout
2517
2518 \begin_layout Labeling
2519 \labelwidthstring 00.00.0000
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 parselog
2525 \end_layout
2526
2527 \end_inset
2528
2529  If set, the converter's standard error will be redirected to a file 
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 infile.out
2535 \end_layout
2536
2537 \end_inset
2538
2539 , and the script given as argument will be run as: 
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 script < infile.out > infile.log
2545 \end_layout
2546
2547 \end_inset
2548
2549 .
2550  The argument may contain 
2551 \begin_inset Flex Code
2552 status collapsed
2553
2554 \begin_layout Plain Layout
2555 $$s
2556 \end_layout
2557
2558 \end_inset
2559
2560 .
2561 \end_layout
2562
2563 \begin_layout Labeling
2564 \labelwidthstring 00.00.0000
2565 \begin_inset Flex Code
2566 status collapsed
2567
2568 \begin_layout Plain Layout
2569 resultdir
2570 \end_layout
2571
2572 \end_inset
2573
2574  The name of the directory in which the converter will dump the generated
2575  files.
2576  \SpecialChar LyX
2577  will not create this directory, and it does not copy anything into it,
2578  though it will copy this directory to the destination.
2579  The argument may contain 
2580 \begin_inset Flex Code
2581 status collapsed
2582
2583 \begin_layout Plain Layout
2584 $$b
2585 \end_layout
2586
2587 \end_inset
2588
2589 , which will be replaced by the base name of the input and output files,
2590  respectively, when the directory is copied.
2591 \begin_inset Newline newline
2592 \end_inset
2593
2594 Note that resultdir and usetempdir make no sense together.
2595  The latter will be ignored if the former is given.
2596 \end_layout
2597
2598 \begin_layout Labeling
2599 \labelwidthstring 00.00.0000
2600 \begin_inset Flex Code
2601 status collapsed
2602
2603 \begin_layout Plain Layout
2604 resultfile
2605 \end_layout
2606
2607 \end_inset
2608
2609  Determines the output file name and may, contain 
2610 \begin_inset Flex Code
2611 status collapsed
2612
2613 \begin_layout Plain Layout
2614 $$b
2615 \end_layout
2616
2617 \end_inset
2618
2619 .
2620  Sensible only with resultdir and optional even then; if not given, it defaults
2621  to `index'.
2622 \end_layout
2623
2624 \begin_layout Standard
2625 None of these last three are presently used in any of the converters that
2626  are installed with \SpecialChar LyX
2627 .
2628  
2629 \end_layout
2630
2631 \begin_layout Standard
2632 You do not have to define converters for all formats between which you want
2633  to convert.
2634  For example, you will note that there is no `\SpecialChar LyX
2635  to PostScript' converter,
2636  but \SpecialChar LyX
2637  will export PostScript.
2638  It does so by first creating a \SpecialChar LaTeX
2639  file (no converter needs to be defined
2640  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2641  to DVI' converter,
2642  and finally converting the resulting DVI file to PostScript.
2643  \SpecialChar LyX
2644  finds such `chains' of converters automatically, and it will always choose
2645  the shortest possible chain.
2646  You can, though, still define multiple conversion methods between file
2647  formats.
2648  For example, the standard \SpecialChar LyX
2649  configuration provides five ways to convert
2650  \SpecialChar LaTeX
2651  to PDF:
2652 \end_layout
2653
2654 \begin_layout Enumerate
2655 Directly, using 
2656 \begin_inset Flex Noun
2657 status collapsed
2658
2659 \begin_layout Plain Layout
2660 pdflatex
2661 \end_layout
2662
2663 \end_inset
2664
2665
2666 \end_layout
2667
2668 \begin_layout Enumerate
2669 via (DVI and) PostScript, using 
2670 \begin_inset Flex Noun
2671 status collapsed
2672
2673 \begin_layout Plain Layout
2674 ps2pdf
2675 \end_layout
2676
2677 \end_inset
2678
2679
2680 \end_layout
2681
2682 \begin_layout Enumerate
2683 via DVI, using 
2684 \begin_inset Flex Noun
2685 status collapsed
2686
2687 \begin_layout Plain Layout
2688 dvipdfm
2689 \end_layout
2690
2691 \end_inset
2692
2693
2694 \end_layout
2695
2696 \begin_layout Enumerate
2697 directly using 
2698 \begin_inset Flex Noun
2699 status collapsed
2700
2701 \begin_layout Plain Layout
2702 Xe\SpecialChar TeX
2703
2704 \end_layout
2705
2706 \end_inset
2707
2708
2709 \end_layout
2710
2711 \begin_layout Enumerate
2712 directly using 
2713 \begin_inset Flex Noun
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 Lua\SpecialChar TeX
2718
2719 \end_layout
2720
2721 \end_inset
2722
2723
2724 \end_layout
2725
2726 \begin_layout Standard
2727 To define such alternate chains, you must define multiple target `file formats',
2728  as described in 
2729 \begin_inset CommandInset ref
2730 LatexCommand ref
2731 reference "sec:Formats"
2732
2733 \end_inset
2734
2735 .
2736  For example, in the standard configuration, the formats named 
2737 \begin_inset Flex Noun
2738 status collapsed
2739
2740 \begin_layout Plain Layout
2741 pdf
2742 \end_layout
2743
2744 \end_inset
2745
2746  (for 
2747 \begin_inset Flex Noun
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 ps2pdf
2752 \end_layout
2753
2754 \end_inset
2755
2756 ), 
2757 \begin_inset Flex Noun
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 pdf2
2762 \end_layout
2763
2764 \end_inset
2765
2766  (for 
2767 \begin_inset Flex Noun
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 pdflatex
2772 \end_layout
2773
2774 \end_inset
2775
2776 ), 
2777 \begin_inset Flex Noun
2778 status collapsed
2779
2780 \begin_layout Plain Layout
2781 pdf3
2782 \end_layout
2783
2784 \end_inset
2785
2786  (for 
2787 \begin_inset Flex Noun
2788 status collapsed
2789
2790 \begin_layout Plain Layout
2791 dvipdfm
2792 \end_layout
2793
2794 \end_inset
2795
2796 ), 
2797 \begin_inset Flex Noun
2798 status collapsed
2799
2800 \begin_layout Plain Layout
2801 pdf4
2802 \end_layout
2803
2804 \end_inset
2805
2806  (for 
2807 \begin_inset Flex Noun
2808 status collapsed
2809
2810 \begin_layout Plain Layout
2811 Xe\SpecialChar TeX
2812
2813 \end_layout
2814
2815 \end_inset
2816
2817 ), and 
2818 \begin_inset Flex Noun
2819 status collapsed
2820
2821 \begin_layout Plain Layout
2822 pdf5
2823 \end_layout
2824
2825 \end_inset
2826
2827  (for 
2828 \begin_inset Flex Noun
2829 status collapsed
2830
2831 \begin_layout Plain Layout
2832 Lua\SpecialChar TeX
2833
2834 \end_layout
2835
2836 \end_inset
2837
2838 ) are defined, all of which share the extension 
2839 \begin_inset Flex Noun
2840 status collapsed
2841
2842 \begin_layout Plain Layout
2843 .pdf
2844 \end_layout
2845
2846 \end_inset
2847
2848 , and which correspond to the conversion methods just mentioned.
2849 \end_layout
2850
2851 \begin_layout Chapter
2852 Internationalizing \SpecialChar LyX
2853
2854 \begin_inset CommandInset label
2855 LatexCommand label
2856 name "cha:Internationalizing-LyX"
2857
2858 \end_inset
2859
2860
2861 \end_layout
2862
2863 \begin_layout Standard
2864 \SpecialChar LyX
2865  supports using a translated interface.
2866  Last time we checked, \SpecialChar LyX
2867  provided text in thirty languages.
2868  The language of choice is called your 
2869 \emph on
2870 locale
2871 \emph default
2872 .
2873  (For further reading on locale settings, see also the documentation for
2874  locale that comes with your operating system.
2875  For Linux, the manual page for 
2876 \begin_inset Flex Code
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880 locale(5)
2881 \end_layout
2882
2883 \end_inset
2884
2885  could be a good place to start).
2886 \end_layout
2887
2888 \begin_layout Standard
2889 Notice that these translations will work, but do contain a few flaws.
2890  In particular, all dialogs have been designed with the English text in
2891  mind, which means that some of the translated text will be too large to
2892  fit within the space allocated.
2893  This is only a display problem and will not cause any harm.
2894  Also, you will find that some of the translations do not define shortcut
2895  keys for everything.
2896  Sometimes, there are simply not enough free letters to do it.
2897  Other times, the translator just hasn't got around to doing it yet.
2898  Our localization team, which you may wish to join,
2899 \begin_inset Foot
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903 If you are a fluent speaker of a language other than English, joining these
2904  teams is a great way to give back to the \SpecialChar LyX
2905  community!
2906 \end_layout
2907
2908 \end_inset
2909
2910  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
2911 .
2912 \end_layout
2913
2914 \begin_layout Section
2915 Translating \SpecialChar LyX
2916
2917 \end_layout
2918
2919 \begin_layout Subsection
2920 Translating the graphical user interface (text messages).
2921 \end_layout
2922
2923 \begin_layout Standard
2924 \SpecialChar LyX
2925  uses the GNU 
2926 \begin_inset Flex Code
2927 status collapsed
2928
2929 \begin_layout Plain Layout
2930 gettext
2931 \end_layout
2932
2933 \end_inset
2934
2935  library to handle the internationalization of the interface.
2936  To have \SpecialChar LyX
2937  speak your favorite language in all menus and dialogs, you need
2938  a 
2939 \begin_inset Flex Code
2940 status collapsed
2941
2942 \begin_layout Plain Layout
2943 po
2944 \end_layout
2945
2946 \end_inset
2947
2948 -file for that language.
2949  When this is available, you'll have to generate a 
2950 \begin_inset Flex Code
2951 status collapsed
2952
2953 \begin_layout Plain Layout
2954 mo
2955 \end_layout
2956
2957 \end_inset
2958
2959 -file from it and install the 
2960 \begin_inset Flex Code
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 mo
2965 \end_layout
2966
2967 \end_inset
2968
2969 -file.
2970  The process of doing all of this is explained in the documentation for
2971  GNU 
2972 \begin_inset Flex Code
2973 status collapsed
2974
2975 \begin_layout Plain Layout
2976 gettext
2977 \end_layout
2978
2979 \end_inset
2980
2981 .
2982  It is possible to do this just for yourself, but if you're going to do
2983  it, you might as well share the results of your labors with the rest of
2984  the \SpecialChar LyX
2985  community.
2986  Send a message to the \SpecialChar LyX
2987  developers' list for more information about how
2988  to proceed.
2989 \end_layout
2990
2991 \begin_layout Standard
2992 In short, this is what you should do (xx denotes the language code):
2993 \end_layout
2994
2995 \begin_layout Itemize
2996 Check out the \SpecialChar LyX
2997  source code.
2998  (See the 
2999 \begin_inset CommandInset href
3000 LatexCommand href
3001 name "information on the web"
3002 target "https://www.lyx.org/HowToUseGIT"
3003 literal "false"
3004
3005 \end_inset
3006
3007 .)
3008 \end_layout
3009
3010 \begin_layout Itemize
3011 Copy the file 
3012 \begin_inset Flex Code
3013 status collapsed
3014
3015 \begin_layout Plain Layout
3016 lyx.pot
3017 \end_layout
3018
3019 \end_inset
3020
3021  to the folder of the 
3022 \begin_inset Flex Code
3023 status collapsed
3024
3025 \begin_layout Plain Layout
3026 **.po
3027 \end_layout
3028
3029 \end_inset
3030
3031  files.
3032  Then rename it to 
3033 \begin_inset Flex Code
3034 status collapsed
3035
3036 \begin_layout Plain Layout
3037 xx.po
3038 \end_layout
3039
3040 \end_inset
3041
3042 .
3043  (If 
3044 \begin_inset Flex Code
3045 status collapsed
3046
3047 \begin_layout Plain Layout
3048 lyx.pot
3049 \end_layout
3050
3051 \end_inset
3052
3053  doesn't exist anywhere, it can be remade with the console command 
3054 \begin_inset Flex Code
3055 status collapsed
3056
3057 \begin_layout Plain Layout
3058 make lyx.pot
3059 \end_layout
3060
3061 \end_inset
3062
3063  in that directory, or you can use an existing po-file for some other language
3064  as a template).
3065 \end_layout
3066
3067 \begin_layout Itemize
3068 Edit 
3069 \begin_inset Flex Code
3070 status collapsed
3071
3072 \begin_layout Plain Layout
3073 xx.po
3074 \end_layout
3075
3076 \end_inset
3077
3078 .
3079 \begin_inset Foot
3080 status collapsed
3081
3082 \begin_layout Plain Layout
3083 This is just a text file, so it can be edited in any text editor.
3084  But there are also specialized programs that support such editing, such
3085  as 
3086 \family typewriter
3087 Poedit
3088 \family default
3089  (for all platforms) or 
3090 \family typewriter
3091 KBabel
3092 \family default
3093  (for KDE).
3094  
3095 \family typewriter
3096 Emacs
3097 \family default
3098  contains a `mode' for editing 
3099 \begin_inset Flex Code
3100 status collapsed
3101
3102 \begin_layout Plain Layout
3103 po
3104 \end_layout
3105
3106 \end_inset
3107
3108  files, as well, see 
3109 \begin_inset Flex URL
3110 status open
3111
3112 \begin_layout Plain Layout
3113
3114 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3115 \backslash
3116 #PO-Mode
3117 \end_layout
3118
3119 \end_inset
3120
3121 .
3122 \end_layout
3123
3124 \end_inset
3125
3126  For some menu- and widget-labels, there are also shortcut keys that should
3127  be translated.
3128  Those keys are marked after a `|', and should be translated according to
3129  the words and phrases of the language.
3130  You should also fill also out the information at the beginning of the new
3131  
3132 \begin_inset Flex Code
3133 status collapsed
3134
3135 \begin_layout Plain Layout
3136 po
3137 \end_layout
3138
3139 \end_inset
3140
3141 -file with your email-address, etc., so people know where to reach you with
3142  suggestions and entertaining flames.
3143 \end_layout
3144
3145 \begin_layout Standard
3146 If you are just doing this on your own, then:
3147 \end_layout
3148
3149 \begin_layout Itemize
3150 Generate 
3151 \begin_inset Flex Code
3152 status collapsed
3153
3154 \begin_layout Plain Layout
3155 xx.mo
3156 \end_layout
3157
3158 \end_inset
3159
3160 .
3161  This can be done with 
3162 \begin_inset Flex Code
3163 status collapsed
3164
3165 \begin_layout Plain Layout
3166 msgfmt -o xx.mo < xx.po
3167 \end_layout
3168
3169 \end_inset
3170
3171 .
3172 \end_layout
3173
3174 \begin_layout Itemize
3175 Copy the 
3176 \begin_inset Flex Code
3177 status collapsed
3178
3179 \begin_layout Plain Layout
3180 mo
3181 \end_layout
3182
3183 \end_inset
3184
3185 -file to your locale-tree, at the correct directory for application messages
3186  for the language
3187 \series bold
3188  
3189 \series default
3190 xx, and under the name 
3191 \begin_inset Flex Code
3192 status collapsed
3193
3194 \begin_layout Plain Layout
3195 lyx.mo
3196 \end_layout
3197
3198 \end_inset
3199
3200  (e.
3201 \begin_inset space \thinspace{}
3202 \end_inset
3203
3204 g.
3205 \begin_inset space \space{}
3206 \end_inset
3207
3208
3209 \begin_inset Flex Code
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3214 \end_layout
3215
3216 \end_inset
3217
3218
3219 \series bold
3220 .
3221 \end_layout
3222
3223 \begin_layout Standard
3224 As said, however, it would be best if the new 
3225 \begin_inset Flex Code
3226 status collapsed
3227
3228 \begin_layout Plain Layout
3229 po
3230 \end_layout
3231
3232 \end_inset
3233
3234  file could be added to the \SpecialChar LyX
3235  distribution, so others can use it.
3236  Adding it involves making additional changes to \SpecialChar LyX
3237 .
3238  So send an email to the developers' mailing list if you're interested in
3239  doing that.
3240 \end_layout
3241
3242 \begin_layout Subsubsection
3243 Ambiguous messages
3244 \end_layout
3245
3246 \begin_layout Standard
3247 Sometimes it turns out that one English message needs to be translated into
3248  different messages in the target language.
3249  One example is the message 
3250 \begin_inset Flex Code
3251 status collapsed
3252
3253 \begin_layout Plain Layout
3254 To
3255 \end_layout
3256
3257 \end_inset
3258
3259  which has the German translation 
3260 \lang german
3261 Nach
3262 \lang english
3263  or 
3264 \lang german
3265 Bis
3266 \lang english
3267 , depending upon exactly what the English 
3268 \begin_inset Quotes eld
3269 \end_inset
3270
3271 to
3272 \begin_inset Quotes erd
3273 \end_inset
3274
3275  means.
3276  GNU 
3277 \begin_inset Flex Code
3278 status collapsed
3279
3280 \begin_layout Plain Layout
3281 gettext
3282 \end_layout
3283
3284 \end_inset
3285
3286  does not handle such ambiguous translations.
3287  Therefore you have to add some context information to the message: Instead
3288  of 
3289 \begin_inset Flex Code
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293 To
3294 \end_layout
3295
3296 \end_inset
3297
3298  it becomes 
3299 \begin_inset Flex Code
3300 status collapsed
3301
3302 \begin_layout Plain Layout
3303 To[[as in 'From format x to format y']]
3304 \end_layout
3305
3306 \end_inset
3307
3308  and 
3309 \begin_inset Flex Code
3310 status collapsed
3311
3312 \begin_layout Plain Layout
3313 To[[as in 'From page x to page y']].
3314 \end_layout
3315
3316 \end_inset
3317
3318  Now the two occurrences of 
3319 \begin_inset Flex Code
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323 To
3324 \end_layout
3325
3326 \end_inset
3327
3328  are different for 
3329 \begin_inset Flex Code
3330 status collapsed
3331
3332 \begin_layout Plain Layout
3333 gettext
3334 \end_layout
3335
3336 \end_inset
3337
3338  and can be translated correctly to 
3339 \lang german
3340 Nach
3341 \lang english
3342  and 
3343 \lang german
3344 Bis
3345 \lang english
3346 , respectively.
3347 \end_layout
3348
3349 \begin_layout Standard
3350 Of course the context information needs to be stripped off the original
3351  message when no translation is used.
3352  Therefore you have to put it in double square brackets at the end of the
3353  message (see the example above).
3354  The translation mechanism of \SpecialChar LyX
3355  ensures that everything in double square
3356  brackets at the end of messages is removed before displaying the message.
3357 \end_layout
3358
3359 \begin_layout Subsection
3360 Translating the documentation.
3361 \end_layout
3362
3363 \begin_layout Standard
3364 The online documentation (in the 
3365 \begin_inset Flex Noun
3366 status collapsed
3367
3368 \begin_layout Plain Layout
3369 Help
3370 \end_layout
3371
3372 \end_inset
3373
3374 -menu) can (and should!) be translated.
3375  If there are translated versions of the documentation available
3376 \begin_inset Foot
3377 status collapsed
3378
3379 \begin_layout Plain Layout
3380 As of March 2008, at least some of the documents have been translated into
3381  fourteen languages, with the Tutorial available in a few more.
3382 \end_layout
3383
3384 \end_inset
3385
3386  and the locale is set accordingly, these will be used automagically by
3387  \SpecialChar LyX
3388 .
3389  \SpecialChar LyX
3390  looks for translated versions as 
3391 \begin_inset Flex Code
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395 LyXDir/doc/xx/DocName.lyx
3396 \end_layout
3397
3398 \end_inset
3399
3400 , where 
3401 \begin_inset Flex Code
3402 status collapsed
3403
3404 \begin_layout Plain Layout
3405 xx
3406 \end_layout
3407
3408 \end_inset
3409
3410  is the code for the language currently in use.
3411  If there are no translated documents, the default English versions will
3412  be displayed.
3413  Note that the translated versions must have the same filenames (
3414 \begin_inset Flex Code
3415 status collapsed
3416
3417 \begin_layout Plain Layout
3418 DocName
3419 \end_layout
3420
3421 \end_inset
3422
3423  above) as the original.
3424  If you feel up to translating the documentation (an excellent way to proof-read
3425  the original documentation by the way!), there are a few things you should
3426  do right away:
3427 \end_layout
3428
3429 \begin_layout Itemize
3430 Check out the documentation translation web page at 
3431 \begin_inset CommandInset href
3432 LatexCommand href
3433 name "https://www.lyx.org/Translation"
3434 target "https://www.lyx.org/Translation"
3435 literal "false"
3436
3437 \end_inset
3438
3439 .
3440  That way, you can find out which (if any) documents have already been translate
3441 d into your language.
3442  You can also find out who (if anyone) is organizing the effort to translate
3443  the documentation into your language.
3444  If no one is organizing the effort, please let us know that you're interested.
3445 \end_layout
3446
3447 \begin_layout Standard
3448 Once you get to actually translating, here's a few hints for you that may
3449  save you trouble:
3450 \end_layout
3451
3452 \begin_layout Itemize
3453 Join the documentation team! There is information on how to do that in 
3454 \begin_inset Flex Code
3455 status collapsed
3456
3457 \begin_layout Plain Layout
3458 Intro.lyx
3459 \end_layout
3460
3461 \end_inset
3462
3463  (
3464 \begin_inset Flex Noun
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468 Help\SpecialChar menuseparator
3469 Introduction
3470 \end_layout
3471
3472 \end_inset
3473
3474 ), which by the way is the first document you should translate.
3475 \end_layout
3476
3477 \begin_layout Itemize
3478 Learn the typographic conventions for the language you are translating to.
3479  Typography is an ancient art and over the centuries, a great variety of
3480  conventions have developed throughout different parts of the world.
3481  Also study the professional terminology amongst typographers in your country.
3482  Inventing your own terminology will only confuse the users.
3483  
3484 \emph on
3485 (Warning! Typography is addictive!)
3486 \end_layout
3487
3488 \begin_layout Itemize
3489 Make a copy of the document.
3490  This will be your working copy.
3491  You can use this as your personal translated help-file by placing it in
3492  your 
3493 \begin_inset Flex Code
3494 status collapsed
3495
3496 \begin_layout Plain Layout
3497 UserDir/doc/xx/
3498 \end_layout
3499
3500 \end_inset
3501
3502  directory.
3503 \begin_inset Note Greyedout
3504 status open
3505
3506 \begin_layout Plain Layout
3507
3508 \series bold
3509 Note:
3510 \series default
3511  For a complex document with external material (images, etc.), if you make
3512  a copy e.
3513 \begin_inset space \thinspace{}
3514 \end_inset
3515
3516 g.
3517 \begin_inset space \space{}
3518 \end_inset
3519
3520 in a temp dir, beware that the links to external material may be broken
3521  when the document is moved to a different place.
3522  The best way is to retrieve the \SpecialChar LyX
3523  tree from git (see 
3524 \begin_inset Flex URL
3525 status collapsed
3526
3527 \begin_layout Plain Layout
3528
3529 https://www.lyx.org/HowToUseGIT
3530 \end_layout
3531
3532 \end_inset
3533
3534 ) and to edit the doc file in place.
3535 \end_layout
3536
3537 \end_inset
3538
3539
3540 \end_layout
3541
3542 \begin_layout Itemize
3543 Sometimes the original document (from the \SpecialChar LyX
3544  team) will be updated.
3545  Use the source viewer at 
3546 \begin_inset CommandInset href
3547 LatexCommand href
3548 name "https://www.lyx.org/trac/timeline"
3549 target "https://www.lyx.org/trac/timeline"
3550 literal "false"
3551
3552 \end_inset
3553
3554  to see what has been changed.
3555  That way you can easily see which parts of the translated document need
3556  to be updated.
3557 \end_layout
3558
3559 \begin_layout Standard
3560 If you ever find an error in the original document, fix it and notify the
3561  rest of the documentation team of the changes! (You didn't forget to join
3562  the documentation team, did you?)
3563 \end_layout
3564
3565 \begin_layout Standard
3566 \begin_inset Branch OutDated
3567 inverted 0
3568 status collapsed
3569
3570 \begin_layout Section
3571 International Keyboard Support
3572 \end_layout
3573
3574 \begin_layout Standard
3575
3576 \emph on
3577 [Editor's Note: The following section is by
3578 \emph default
3579  
3580 \shape smallcaps
3581 \emph on
3582 Ivan Schreter
3583 \shape default
3584 .
3585  It needs to be fixed to conform to the new Documentation Style sheet and
3586  to make use of the new v1.0 features.
3587  The whole thing also needs to be merged with the section following it.-jw
3588  It may also be badly out of date.-rh (2008)]
3589 \end_layout
3590
3591 \begin_layout Subsection
3592 Defining Own Keymaps: Keymap File Format
3593 \end_layout
3594
3595 \begin_layout Standard
3596 Let's look at a keyboard definition file a little closer.
3597  It is a plain text file defining
3598 \end_layout
3599
3600 \begin_layout Itemize
3601 key-to-key or key-to-string translations
3602 \end_layout
3603
3604 \begin_layout Itemize
3605 dead keys
3606 \end_layout
3607
3608 \begin_layout Itemize
3609 dead keys exceptions
3610 \end_layout
3611
3612 \begin_layout Standard
3613 To define key-to-key or key-to-string translation, use this command:
3614 \end_layout
3615
3616 \begin_layout Quotation
3617 \begin_inset Flex Code
3618 status collapsed
3619
3620 \begin_layout Plain Layout
3621
3622 \backslash
3623 kmap
3624 \end_layout
3625
3626 \end_inset
3627
3628  
3629 \begin_inset Flex Code
3630 status collapsed
3631
3632 \begin_layout Plain Layout
3633 key
3634 \end_layout
3635
3636 \end_inset
3637
3638  outstring 
3639 \end_layout
3640
3641 \begin_layout Standard
3642 where 
3643 \begin_inset Flex Code
3644 status collapsed
3645
3646 \begin_layout Plain Layout
3647 key
3648 \end_layout
3649
3650 \end_inset
3651
3652  is the key to be translated and 
3653 \begin_inset Flex Code
3654 status collapsed
3655
3656 \begin_layout Plain Layout
3657 outstring
3658 \end_layout
3659
3660 \end_inset
3661
3662  is the string to be inserted into the document.
3663  To define dead keys, use:
3664 \end_layout
3665
3666 \begin_layout Quotation
3667 \begin_inset Flex Code
3668 status collapsed
3669
3670 \begin_layout Plain Layout
3671
3672 \backslash
3673 kmod
3674 \end_layout
3675
3676 \end_inset
3677
3678  
3679 \begin_inset Flex Code
3680 status collapsed
3681
3682 \begin_layout Plain Layout
3683 key
3684 \end_layout
3685
3686 \end_inset
3687
3688  deadkey
3689 \end_layout
3690
3691 \begin_layout Standard
3692 where 
3693 \begin_inset Flex Code
3694 status collapsed
3695
3696 \begin_layout Plain Layout
3697 key
3698 \end_layout
3699
3700 \end_inset
3701
3702  is a keyboard key and 
3703 \begin_inset Flex Code
3704 status collapsed
3705
3706 \begin_layout Plain Layout
3707 deadkey
3708 \end_layout
3709
3710 \end_inset
3711
3712  is dead key name.
3713  The following dead keys are supported (shortcut name is in parentheses):
3714 \end_layout
3715
3716 \begin_layout Quotation
3717
3718 \emph on
3719 Name
3720 \begin_inset space \hfill{}
3721 \end_inset
3722
3723 Example
3724 \end_layout
3725
3726 \begin_layout Quotation
3727 acute (acu)
3728 \begin_inset space \hfill{}
3729 \end_inset
3730
3731 áéíóú
3732 \end_layout
3733
3734 \begin_layout Quotation
3735 grave (gra)
3736 \begin_inset space \hfill{}
3737 \end_inset
3738
3739 àèìòù
3740 \end_layout
3741
3742 \begin_layout Quotation
3743 macron (mac)
3744 \begin_inset space \hfill{}
3745 \end_inset
3746
3747  ō
3748 \end_layout
3749
3750 \begin_layout Quotation
3751 tilde (til)
3752 \begin_inset space \hfill{}
3753 \end_inset
3754
3755 ñÑ
3756 \end_layout
3757
3758 \begin_layout Quotation
3759 underbar (underb)
3760 \begin_inset space \hfill{}
3761 \end_inset
3762
3763
3764 \begin_inset ERT
3765 status open
3766
3767 \begin_layout Plain Layout
3768
3769
3770 \backslash
3771 b o
3772 \end_layout
3773
3774 \end_inset
3775
3776
3777 \end_layout
3778
3779 \begin_layout Quotation
3780 cedilla (ced)
3781 \begin_inset space \hfill{}
3782 \end_inset
3783
3784 çÇ
3785 \end_layout
3786
3787 \begin_layout Quotation
3788 underdot (underd)
3789 \begin_inset space \hfill{}
3790 \end_inset
3791
3792
3793 \begin_inset ERT
3794 status open
3795
3796 \begin_layout Plain Layout
3797
3798
3799 \backslash
3800 d o
3801 \end_layout
3802
3803 \end_inset
3804
3805
3806 \end_layout
3807
3808 \begin_layout Quotation
3809 circumflex (circu)
3810 \begin_inset space \hfill{}
3811 \end_inset
3812
3813 âêîôû
3814 \end_layout
3815
3816 \begin_layout Quotation
3817 circle (circl)
3818 \begin_inset space \hfill{}
3819 \end_inset
3820
3821 ÅůŮ
3822 \end_layout
3823
3824 \begin_layout Quotation
3825 tie (tie)
3826 \begin_inset space \hfill{}
3827 \end_inset
3828
3829
3830 \begin_inset ERT
3831 status open
3832
3833 \begin_layout Plain Layout
3834
3835
3836 \backslash
3837 t o
3838 \end_layout
3839
3840 \end_inset
3841
3842
3843 \end_layout
3844
3845 \begin_layout Quotation
3846 breve (bre)
3847 \begin_inset space \hfill{}
3848 \end_inset
3849
3850 ă
3851 \begin_inset ERT
3852 status open
3853
3854 \begin_layout Plain Layout
3855
3856
3857 \backslash
3858 u o
3859 \end_layout
3860
3861 \end_inset
3862
3863
3864 \end_layout
3865
3866 \begin_layout Quotation
3867 caron (car)
3868 \begin_inset space \hfill{}
3869 \end_inset
3870
3871 čšž
3872 \end_layout
3873
3874 \begin_layout Quotation
3875 hungarian umlaut (hug)
3876 \begin_inset space \hfill{}
3877 \end_inset
3878
3879 őű
3880 \end_layout
3881
3882 \begin_layout Quotation
3883 umlaut (uml)
3884 \begin_inset space \hfill{}
3885 \end_inset
3886
3887 äöü
3888 \end_layout
3889
3890 \begin_layout Quotation
3891 dot (dot)
3892 \begin_inset space \hfill{}
3893 \end_inset
3894
3895 ż
3896 \begin_inset ERT
3897 status open
3898
3899 \begin_layout Plain Layout
3900
3901
3902 \backslash
3903 .s
3904 \end_layout
3905
3906 \end_inset
3907
3908
3909 \end_layout
3910
3911 \begin_layout Standard
3912 Since in many international keyboards there are exceptions to what some
3913  dead keys should do, you can define them using
3914 \end_layout
3915
3916 \begin_layout Quotation
3917 \begin_inset Flex Code
3918 status collapsed
3919
3920 \begin_layout Plain Layout
3921
3922 \backslash
3923 kxmod
3924 \end_layout
3925
3926 \end_inset
3927
3928  deadkey key outstring
3929 \end_layout
3930
3931 \begin_layout Standard
3932 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
3933 , so you put in
3934 \end_layout
3935
3936 \begin_layout Quotation
3937 \begin_inset Flex Code
3938 status collapsed
3939
3940 \begin_layout Plain Layout
3941
3942 \backslash
3943 kxmod
3944 \end_layout
3945
3946 \end_inset
3947
3948  caron o "
3949 \backslash
3950 ^o"
3951 \end_layout
3952
3953 \begin_layout Standard
3954 to make it work correctly.
3955  Also, you have to define as exceptions dead keys over i and j, to remove
3956  the dot from them before inserting an accent mark.
3957  I will change this when the time comes, but so far I haven't had time.
3958 \end_layout
3959
3960 \begin_layout Standard
3961 Oh, and about characters: backslash is escaped, so to enter it, you'll need
3962  double backslash.
3963  Also, quotes and 
3964 \begin_inset Flex Code
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968 #
3969 \end_layout
3970
3971 \end_inset
3972
3973  have different meaning.
3974  
3975 \begin_inset Flex Code
3976 status collapsed
3977
3978 \begin_layout Plain Layout
3979 #
3980 \end_layout
3981
3982 \end_inset
3983
3984  marks comments, quotes start and end \SpecialChar LaTeX
3985 -style commands.
3986  To enter quote, you'll need to use 
3987 \begin_inset Flex Code
3988 status collapsed
3989
3990 \begin_layout Plain Layout
3991
3992 \backslash
3993 "
3994 \end_layout
3995
3996 \end_inset
3997
3998 , to enter 
3999 \begin_inset Flex Code
4000 status collapsed
4001
4002 \begin_layout Plain Layout
4003 #
4004 \end_layout
4005
4006 \end_inset
4007
4008 , use 
4009 \begin_inset Flex Code
4010 status collapsed
4011
4012 \begin_layout Plain Layout
4013
4014 \backslash
4015 #
4016 \end_layout
4017
4018 \end_inset
4019
4020 .
4021 \end_layout
4022
4023 \begin_layout Standard
4024 If you make a keyboard description file that works for your language, please
4025  mail it to me, so I can include it in the next keymap distribution.
4026 \end_layout
4027
4028 \begin_layout Standard
4029 More keywords will be supported in keymap configuration file in future,
4030  like
4031 \end_layout
4032
4033 \begin_layout Itemize
4034 \begin_inset Flex Code
4035 status collapsed
4036
4037 \begin_layout Plain Layout
4038
4039 \backslash
4040 kinclude filename
4041 \end_layout
4042
4043 \end_inset
4044
4045
4046 \emph on
4047
4048 \begin_inset space \hfill{}
4049 \end_inset
4050
4051
4052 \begin_inset Flex Code
4053 status collapsed
4054
4055 \begin_layout Plain Layout
4056 include
4057 \end_layout
4058
4059 \end_inset
4060
4061  another file
4062 \end_layout
4063
4064 \begin_layout Itemize
4065 \begin_inset Flex Code
4066 status collapsed
4067
4068 \begin_layout Plain Layout
4069
4070 \backslash
4071 kprog program
4072 \end_layout
4073
4074 \end_inset
4075
4076
4077 \emph on
4078
4079 \begin_inset space \hfill{}
4080 \end_inset
4081
4082
4083 \begin_inset Flex Code
4084 status collapsed
4085
4086 \begin_layout Plain Layout
4087 define
4088 \end_layout
4089
4090 \end_inset
4091
4092  an external keymap translation program 
4093 \end_layout
4094
4095 \begin_layout Standard
4096 Also, it should look into 
4097 \begin_inset Flex Code
4098 status collapsed
4099
4100 \begin_layout Plain Layout
4101 lyxrc
4102 \end_layout
4103
4104 \end_inset
4105
4106  file for defaults, too (for example, a 
4107 \begin_inset Flex Code
4108 status collapsed
4109
4110 \begin_layout Plain Layout
4111
4112 \backslash
4113 kinclude
4114 \end_layout
4115
4116 \end_inset
4117
4118  option to include default keyboard).
4119 \end_layout
4120
4121 \end_inset
4122
4123
4124 \end_layout
4125
4126 \begin_layout Section
4127 International Keymap Stuff
4128 \begin_inset CommandInset label
4129 LatexCommand label
4130 name "sec:International-Keymap-Stuff"
4131
4132 \end_inset
4133
4134
4135 \end_layout
4136
4137 \begin_layout Standard
4138 \begin_inset Note Note
4139 status open
4140
4141 \begin_layout Plain Layout
4142 In doing the revisions on this document in March 2008, I did not look over
4143  this stuff, as I do not understand it.
4144  It would be good if someone else could do so.
4145  (RH)
4146 \end_layout
4147
4148 \end_inset
4149
4150
4151 \end_layout
4152
4153 \begin_layout Standard
4154 The next two sections describe the 
4155 \begin_inset Flex Code
4156 status collapsed
4157
4158 \begin_layout Plain Layout
4159
4160 \shape up
4161 .kmap
4162 \end_layout
4163
4164 \end_inset
4165
4166  and 
4167 \begin_inset Flex Code
4168 status collapsed
4169
4170 \begin_layout Plain Layout
4171
4172 \shape up
4173 .cdef
4174 \end_layout
4175
4176 \end_inset
4177
4178  file syntax in detail.
4179  These sections should help you design your own key map if the ones provided
4180  do not meet your needs.
4181 \end_layout
4182
4183 \begin_layout Subsection
4184 The .kmap File
4185 \end_layout
4186
4187 \begin_layout Standard
4188
4189 \shape up
4190 .
4191 \begin_inset Flex Code
4192 status collapsed
4193
4194 \begin_layout Plain Layout
4195 kmap
4196 \end_layout
4197
4198 \end_inset
4199
4200  file maps keystrokes to characters or strings.
4201  As the name suggests, it sets a keyboard mapping.
4202  The 
4203 \begin_inset Flex Code
4204 status collapsed
4205
4206 \begin_layout Plain Layout
4207 .kmap
4208 \end_layout
4209
4210 \end_inset
4211
4212
4213 \shape default
4214  file keywords 
4215 \shape up
4216
4217 \begin_inset Flex Code
4218 status collapsed
4219
4220 \begin_layout Plain Layout
4221
4222 \shape up
4223 kmap
4224 \end_layout
4225
4226 \end_inset
4227
4228
4229 \shape default
4230 ,
4231 \shape up
4232  
4233 \shape default
4234
4235 \begin_inset Flex Code
4236 status collapsed
4237
4238 \begin_layout Plain Layout
4239
4240 \shape up
4241 kmod
4242 \end_layout
4243
4244 \end_inset
4245
4246 ,
4247 \shape up
4248  
4249 \shape default
4250
4251 \begin_inset Flex Code
4252 status collapsed
4253
4254 \begin_layout Plain Layout
4255
4256 \shape up
4257 kxmod
4258 \end_layout
4259
4260 \end_inset
4261
4262 , and 
4263 \begin_inset Flex Code
4264 status collapsed
4265
4266 \begin_layout Plain Layout
4267
4268 \shape up
4269 kcomb
4270 \end_layout
4271
4272 \end_inset
4273
4274  are described in this section.
4275 \end_layout
4276
4277 \begin_layout Labeling
4278 \labelwidthstring 00.00.0000
4279 \begin_inset Flex Code
4280 status collapsed
4281
4282 \begin_layout Plain Layout
4283
4284 \shape up
4285 kmap
4286 \end_layout
4287
4288 \end_inset
4289
4290  Map a character to a string
4291 \end_layout
4292
4293 \begin_layout LyX-Code
4294
4295 \backslash
4296 kmap 
4297 \family roman
4298 \emph on
4299 char
4300 \family default
4301 \emph default
4302  
4303 \family roman
4304 \emph on
4305 string
4306 \end_layout
4307
4308 \begin_layout Standard
4309 This will ma
4310 \family roman
4311 p
4312 \family default
4313  
4314 \family roman
4315 \emph on
4316 char
4317 \family default
4318 \emph default
4319  
4320 \family roman
4321 to
4322 \family default
4323  
4324 \family roman
4325 \emph on
4326 string
4327 \emph default
4328 .
4329  Note that in
4330 \family default
4331  
4332 \family roman
4333 \emph on
4334 string
4335 \emph default
4336 ,
4337 \family default
4338  
4339 \family roman
4340 \shape up
4341 the double-quote (")
4342 \family default
4343 \shape default
4344  
4345 \family roman
4346 and
4347 \family default
4348  
4349 \family roman
4350 \shape up
4351 the backslash (
4352 \backslash
4353 )
4354 \family default
4355 \shape default
4356  
4357 \family roman
4358 must be escaped with a preceding backslash (
4359 \shape up
4360
4361 \backslash
4362
4363 \shape default
4364 )
4365 \family default
4366 .
4367 \end_layout
4368
4369 \begin_layout Standard
4370 An example of a 
4371 \begin_inset Flex Noun
4372 status collapsed
4373
4374 \begin_layout Plain Layout
4375
4376 \shape up
4377 kmap
4378 \end_layout
4379
4380 \end_inset
4381
4382  statement to cause the symbol 
4383 \begin_inset Flex Noun
4384 status collapsed
4385
4386 \begin_layout Plain Layout
4387
4388 \shape up
4389 /
4390 \end_layout
4391
4392 \end_inset
4393
4394  to be output for the keystroke 
4395 \begin_inset Flex Noun
4396 status collapsed
4397
4398 \begin_layout Plain Layout
4399
4400 \shape up
4401 &
4402 \end_layout
4403
4404 \end_inset
4405
4406  is:
4407 \end_layout
4408
4409 \begin_layout LyX-Code
4410
4411 \backslash
4412 kmap & /
4413 \end_layout
4414
4415 \begin_layout Labeling
4416 \labelwidthstring 00.00.0000
4417 \begin_inset Flex Code
4418 status collapsed
4419
4420 \begin_layout Plain Layout
4421
4422 \shape up
4423 kmod
4424 \end_layout
4425
4426 \end_inset
4427
4428  Specify an accent character
4429 \end_layout
4430
4431 \begin_layout LyX-Code
4432
4433 \backslash
4434 kmod 
4435 \family roman
4436 \emph on
4437 char accent allowed
4438 \end_layout
4439
4440 \begin_layout Standard
4441 This will make the cha
4442 \family roman
4443 racter
4444 \family default
4445  
4446 \family roman
4447 \emph on
4448 char
4449 \family default
4450 \emph default
4451  
4452 \family roman
4453 \shape up
4454 \emph on
4455 be an accent
4456 \family default
4457 \shape default
4458 \emph default
4459  
4460 \family roman
4461 \shape up
4462 on the
4463 \family default
4464 \shape default
4465  
4466 \family roman
4467 \shape up
4468 \emph on
4469 allowed
4470 \family default
4471 \shape default
4472 \emph default
4473  
4474 \family roman
4475 \shape up
4476 cha
4477 \family default
4478 racter(s).
4479  This is the dead key
4480 \begin_inset Foot
4481 status collapsed
4482
4483 \begin_layout Plain Layout
4484 The term 
4485 \family roman
4486 \emph on
4487 dead key
4488 \family default
4489 \emph default
4490  refers to a key that does not produce a character by itself, but when followed
4491  with another key, produces the desired accent character.
4492  For example, a German characte
4493 \family roman
4494 r with an umlaut like
4495 \family default
4496  
4497 \family roman
4498 \emph on
4499 ä
4500 \family default
4501 \emph default
4502  
4503 \family roman
4504 can be produced in this manner.
4505 \end_layout
4506
4507 \end_inset
4508
4509  mechanism.
4510  
4511 \end_layout
4512
4513 \begin_layout Standard
4514 If you 
4515 \family roman
4516 hit
4517 \family default
4518  
4519 \family roman
4520 \emph on
4521 char
4522 \family default
4523 \emph default
4524  
4525 \family roman
4526 and then another key not in
4527 \family default
4528  
4529 \family roman
4530 \emph on
4531 allowed
4532 \emph default
4533 , you will get a
4534 \family default
4535  
4536 \family roman
4537 \emph on
4538 char
4539 \family default
4540 \emph default
4541  
4542 \family roman
4543 followed by the other, not allowed key, as output.
4544
4545 \family default
4546  Note that a 
4547 \begin_inset Flex Noun
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551
4552 \shape up
4553 Backspace
4554 \end_layout
4555
4556 \end_inset
4557
4558  cancels a dead key, so if 
4559 \family roman
4560 you hit
4561 \family default
4562  
4563 \family roman
4564 \emph on
4565 char
4566 \family default
4567 \emph default
4568  
4569 \begin_inset Flex Noun
4570 status collapsed
4571
4572 \begin_layout Plain Layout
4573
4574 \shape up
4575 \emph on
4576 Backspace
4577 \end_layout
4578
4579 \end_inset
4580
4581 , the cursor will not go one position backwards but will instead cancel
4582  the effect t
4583 \family roman
4584 hat
4585 \family default
4586  
4587 \family roman
4588 \shape up
4589 \emph on
4590 char
4591 \family default
4592 \shape default
4593 \emph default
4594  
4595 \family roman
4596 \shape up
4597 might have had on the next keystroke.
4598  
4599 \end_layout
4600
4601 \begin_layout Standard
4602 The following example specifies that the character ' is to be an acute accent,
4603  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4604 \end_layout
4605
4606 \begin_layout LyX-Code
4607
4608 \backslash
4609 kmod ' acute aeiouAEIOU
4610 \end_layout
4611
4612 \begin_layout Labeling
4613 \labelwidthstring 00.00.0000
4614 \begin_inset Flex Code
4615 status collapsed
4616
4617 \begin_layout Plain Layout
4618 kxmod
4619 \end_layout
4620
4621 \end_inset
4622
4623  Specify an exception to the accent character
4624 \end_layout
4625
4626 \begin_layout LyX-Code
4627
4628 \backslash
4629 kxmod  
4630 \family roman
4631 \emph on
4632 accent char result
4633 \end_layout
4634
4635 \begin_layout Standard
4636 This defines an exce
4637 \family roman
4638 ption for
4639 \family default
4640  
4641 \family roman
4642 \emph on
4643 accent
4644 \family default
4645 \emph default
4646  
4647 \family roman
4648 on
4649 \family default
4650  
4651 \family roman
4652 \emph on
4653 char
4654 \emph default
4655 .
4656  T
4657 \shape up
4658 he
4659 \family default
4660 \shape default
4661  
4662 \family roman
4663 \shape up
4664 \emph on
4665 accent
4666 \family default
4667 \shape default
4668 \emph default
4669  
4670 \family roman
4671 \shape up
4672 must
4673 \family default
4674 \shape default
4675  
4676 \shape up
4677 have been assigned a keystroke with a previous
4678 \shape default
4679  
4680 \begin_inset Flex Code
4681 status collapsed
4682
4683 \begin_layout Plain Layout
4684
4685 \shape up
4686
4687 \backslash
4688 kmo
4689 \shape default
4690 d
4691 \end_layout
4692
4693 \end_inset
4694
4695  declar
4696 \family roman
4697 ation and
4698 \family default
4699  
4700 \family roman
4701 \emph on
4702 char
4703 \family default
4704 \emph default
4705  
4706 \family roman
4707 must not belong in the
4708 \family default
4709  
4710 \family roman
4711 \emph on
4712 allowed
4713 \family default
4714 \emph default
4715  
4716 \family roman
4717 set of
4718 \family default
4719  
4720 \family roman
4721 \emph on
4722 accent
4723 \emph default
4724 .
4725  When
4726 \family default
4727  
4728 \family roman
4729 \shape up
4730 you enter the
4731 \family default
4732 \shape default
4733  
4734 \family roman
4735 \shape up
4736 \emph on
4737 accent char
4738 \family default
4739 \shape default
4740 \emph default
4741  
4742 \family roman
4743 \shape up
4744 sequence,
4745 \family default
4746 \shape default
4747  
4748 \family roman
4749 \shape up
4750 \emph on
4751 result
4752 \emph default
4753  is produced.
4754  If such a declaration does not exist in
4755 \family default
4756 \shape default
4757  
4758 \shape up
4759 the
4760 \shape default
4761  
4762 \begin_inset Flex Code
4763 status collapsed
4764
4765 \begin_layout Plain Layout
4766
4767 \shape up
4768 .kmap
4769 \end_layout
4770
4771 \end_inset
4772
4773  file and yo
4774 \family roman
4775 u enter
4776 \family default
4777  
4778 \family roman
4779 \emph on
4780 accent char
4781 \emph default
4782 , you get
4783 \family default
4784  
4785 \family roman
4786 \emph on
4787 accent_key char
4788 \emph default
4789  where
4790 \family default
4791  
4792 \family roman
4793 \emph on
4794 accent_key
4795 \emph default
4796  is the first arg
4797 \family default
4798 ument of the 
4799 \begin_inset Flex Code
4800 status collapsed
4801
4802 \begin_layout Plain Layout
4803
4804 \shape up
4805
4806 \backslash
4807 kmod
4808 \end_layout
4809
4810 \end_inset
4811
4812  declaration.
4813  
4814 \end_layout
4815
4816 \begin_layout Standard
4817 The following command produces causes äi to be produced when you enter acute-i
4818  ('i):
4819 \end_layout
4820
4821 \begin_layout LyX-Code
4822
4823 \backslash
4824 kxmod acute i "
4825 \backslash
4826
4827 \backslash
4828 '{
4829 \backslash
4830
4831 \backslash
4832 i}"
4833 \end_layout
4834
4835 \begin_layout Labeling
4836 \labelwidthstring 00.00.0000
4837 \begin_inset Flex Code
4838 status collapsed
4839
4840 \begin_layout Plain Layout
4841 kcomb
4842 \end_layout
4843
4844 \end_inset
4845
4846  Combine two accent characters
4847 \end_layout
4848
4849 \begin_layout LyX-Code
4850
4851 \backslash
4852 kcomb 
4853 \family roman
4854 \emph on
4855 accent1 accent2 allowed
4856 \end_layout
4857
4858 \begin_layout Standard
4859 This one is getting pretty esoteric.
4860  It allows you to combine the effect 
4861 \family roman
4862 of
4863 \family default
4864  
4865 \family roman
4866 \emph on
4867 accent1
4868 \family default
4869 \emph default
4870  
4871 \family roman
4872 and
4873 \family default
4874  
4875 \family roman
4876 \emph on
4877 accent2
4878 \family default
4879 \emph default
4880  
4881 \family roman
4882 (in that order!) on
4883 \family default
4884  
4885 \family roman
4886 \emph on
4887 allowed
4888 \family default
4889 \emph default
4890  
4891 \family roman
4892 chars.
4893  The keystrokes for
4894 \family default
4895  
4896 \family roman
4897 \emph on
4898 accent1
4899 \family default
4900 \emph default
4901  
4902 \family roman
4903 and
4904 \family default
4905  
4906 \family roman
4907 \emph on
4908 accent2
4909 \family default
4910 \emph default
4911  
4912 \family roman
4913 must have be
4914 \family default
4915 en set with a 
4916 \begin_inset Flex Code
4917 status collapsed
4918
4919 \begin_layout Plain Layout
4920
4921 \shape up
4922
4923 \backslash
4924 kmod
4925 \end_layout
4926
4927 \end_inset
4928
4929  command at 
4930 \family roman
4931 a
4932 \family default
4933  
4934 \family roman
4935 \emph on
4936 previous
4937 \family default
4938 \emph default
4939  
4940 \family roman
4941 point in the
4942 \family default
4943  file.
4944  
4945 \end_layout
4946
4947 \begin_layout Standard
4948 Consider this example from the 
4949 \begin_inset Flex Code
4950 status collapsed
4951
4952 \begin_layout Plain Layout
4953
4954 \shape up
4955 greek.kmap
4956 \end_layout
4957
4958 \end_inset
4959
4960  file:
4961 \end_layout
4962
4963 \begin_layout LyX-Code
4964
4965 \backslash
4966 kmod ; acute aeioyvhAEIOYVH 
4967 \backslash
4968 kmod : umlaut iyIY 
4969 \backslash
4970 kcomb acute umlaut iyIY
4971 \end_layout
4972
4973 \begin_layout Standard
4974 This allows you to press 
4975 \begin_inset Flex Noun
4976 status collapsed
4977
4978 \begin_layout Plain Layout
4979
4980 \shape up
4981 ;:i
4982 \end_layout
4983
4984 \end_inset
4985
4986  and get the effect of 
4987 \begin_inset Flex Code
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991
4992 \shape up
4993
4994 \backslash
4995 '{
4996 \backslash
4997 "{i}}
4998 \end_layout
4999
5000 \end_inset
5001
5002 .
5003  
5004 \family roman
5005 \shape up
5006 A backspace
5007 \family default
5008 \shape default
5009  in this case cancels the last dead key, so if you press 
5010 \begin_inset Flex Noun
5011 status collapsed
5012
5013 \begin_layout Plain Layout
5014
5015 \shape up
5016 ;: Backspace i
5017 \end_layout
5018
5019 \end_inset
5020
5021  you get 
5022 \begin_inset Flex Code
5023 status collapsed
5024
5025 \begin_layout Plain Layout
5026
5027 \shape up
5028
5029 \backslash
5030 '{i}
5031 \end_layout
5032
5033 \end_inset
5034
5035 .
5036 \end_layout
5037
5038 \begin_layout Subsection
5039 The .cdef File
5040 \end_layout
5041
5042 \begin_layout Standard
5043 After the 
5044 \begin_inset Flex Code
5045 status collapsed
5046
5047 \begin_layout Plain Layout
5048
5049 \shape up
5050 .kmap
5051 \end_layout
5052
5053 \end_inset
5054
5055  mapping is performed, a 
5056 \begin_inset Flex Code
5057 status collapsed
5058
5059 \begin_layout Plain Layout
5060
5061 \shape up
5062 .cde
5063 \shape default
5064 f
5065 \end_layout
5066
5067 \end_inset
5068
5069  file maps the strings that the symbols generate to characters in the current
5070  font.
5071  The \SpecialChar LyX
5072  distribution currently includes at least the 
5073 \begin_inset Flex Code
5074 status collapsed
5075
5076 \begin_layout Plain Layout
5077
5078 \shape up
5079 iso8859-1.cdef
5080 \end_layout
5081
5082 \end_inset
5083
5084  and 
5085 \begin_inset Flex Code
5086 status collapsed
5087
5088 \begin_layout Plain Layout
5089
5090 \shape up
5091 iso8859-2.cdef
5092 \end_layout
5093
5094 \end_inset
5095
5096  files.
5097 \end_layout
5098
5099 \begin_layout Standard
5100 In general the 
5101 \begin_inset Flex Code
5102 status collapsed
5103
5104 \begin_layout Plain Layout
5105
5106 \shape up
5107 .cdef
5108 \end_layout
5109
5110 \end_inset
5111
5112  file is a sequence of declarations of the form
5113 \end_layout
5114
5115 \begin_layout LyX-Code
5116
5117 \family roman
5118 \emph on
5119 char_index_in_set
5120 \family default
5121 \emph default
5122  
5123 \family roman
5124 \emph on
5125  string
5126 \end_layout
5127
5128 \begin_layout Standard
5129 For example, in order to map 
5130 \begin_inset Flex Noun
5131 status collapsed
5132
5133 \begin_layout Plain Layout
5134
5135 \shape up
5136
5137 \backslash
5138 '{e}
5139 \end_layout
5140
5141 \end_inset
5142
5143  to the corresponding character in the iso-8859-1 set (233), the following
5144  declaration is used
5145 \end_layout
5146
5147 \begin_layout LyX-Code
5148 233 "
5149 \backslash
5150
5151 \backslash
5152 '{e}"
5153 \end_layout
5154
5155 \begin_layout Standard
5156 with 
5157 \begin_inset Flex Code
5158 status collapsed
5159
5160 \begin_layout Plain Layout
5161
5162 \backslash
5163
5164 \end_layout
5165
5166 \end_inset
5167
5168  and 
5169 \begin_inset Flex Code
5170 status collapsed
5171
5172 \begin_layout Plain Layout
5173 "
5174 \end_layout
5175
5176 \end_inset
5177
5178  being escap
5179 \family roman
5180 ed in
5181 \family default
5182  
5183 \family roman
5184 \emph on
5185 string
5186 \emph default
5187 .
5188  Note that
5189 \family default
5190  the same character can apply to more than one string.
5191  In the 
5192 \begin_inset Flex Code
5193 status collapsed
5194
5195 \begin_layout Plain Layout
5196 i
5197 \shape up
5198 so-8859-7.cdef
5199 \end_layout
5200
5201 \end_inset
5202
5203  file you have
5204 \end_layout
5205
5206 \begin_layout LyX-Code
5207 192 "
5208 \backslash
5209
5210 \backslash
5211 '{
5212 \backslash
5213
5214 \backslash
5215
5216 \backslash
5217 "{i}}"
5218 \begin_inset Newline newline
5219 \end_inset
5220
5221 192 "
5222 \backslash
5223
5224 \backslash
5225
5226 \backslash
5227 "{
5228 \backslash
5229
5230 \backslash
5231 '{i}}"
5232 \end_layout
5233
5234 \begin_layout Standard
5235 If \SpecialChar LyX
5236  cannot find a mapping for the string produced by the keystroke or a
5237  deadkey sequence, it will check if it looks like an accented char and try
5238  to draw an accent over the character on screen.
5239 \end_layout
5240
5241 \begin_layout Subsection
5242 Dead Keys
5243 \end_layout
5244
5245 \begin_layout Standard
5246 There is a second way to add support for international characters through
5247  so-called dead-keys.
5248  A dead-key works in combination with a letter to produce an accented character.
5249  Here, we'll explain how to create a really simple dead-key to illustrate
5250  how they work.
5251 \end_layout
5252
5253 \begin_layout Standard
5254 Suppose you happen to need the circumflex character, 
5255 \begin_inset Quotes eld
5256 \end_inset
5257
5258  ̂
5259 \begin_inset Quotes erd
5260 \end_inset
5261
5262 .
5263  You could bind the 
5264 \begin_inset Flex Noun
5265 status collapsed
5266
5267 \begin_layout Plain Layout
5268 ^
5269 \end_layout
5270
5271 \end_inset
5272
5273 -key [a.k.a.
5274 \begin_inset space ~
5275 \end_inset
5276
5277
5278 \begin_inset Flex Noun
5279 status collapsed
5280
5281 \begin_layout Plain Layout
5282 Shift-6
5283 \end_layout
5284
5285 \end_inset
5286
5287 ] to the \SpecialChar LyX
5288  command 
5289 \begin_inset Flex Code
5290 status collapsed
5291
5292 \begin_layout Plain Layout
5293 accent-circumflex
5294 \end_layout
5295
5296 \end_inset
5297
5298  in your 
5299 \begin_inset Flex Code
5300 status collapsed
5301
5302 \begin_layout Plain Layout
5303 lyxrc
5304 \end_layout
5305
5306 \end_inset
5307
5308  file.
5309  Now, whenever you type the 
5310 \begin_inset Flex Noun
5311 status collapsed
5312
5313 \begin_layout Plain Layout
5314 ^
5315 \end_layout
5316
5317 \end_inset
5318
5319 -key followed by a letter, that letter will have a circumflex accent on
5320  it.
5321  For example, the sequence 
5322 \begin_inset Quotes eld
5323 \end_inset
5324
5325
5326 \begin_inset Flex Noun
5327 status collapsed
5328
5329 \begin_layout Plain Layout
5330 ^e
5331 \end_layout
5332
5333 \end_inset
5334
5335
5336 \begin_inset Quotes erd
5337 \end_inset
5338
5339  produces the letter: 
5340 \begin_inset Quotes eld
5341 \end_inset
5342
5343 ê
5344 \begin_inset Quotes erd
5345 \end_inset
5346
5347 .
5348  If you tried to type 
5349 \begin_inset Quotes eld
5350 \end_inset
5351
5352
5353 \begin_inset Flex Noun
5354 status collapsed
5355
5356 \begin_layout Plain Layout
5357 ^t
5358 \end_layout
5359
5360 \end_inset
5361
5362
5363 \begin_inset Quotes erd
5364 \end_inset
5365
5366 , however, \SpecialChar LyX
5367  will complain with a beep, since a 
5368 \begin_inset Quotes eld
5369 \end_inset
5370
5371
5372 \begin_inset Flex Noun
5373 status collapsed
5374
5375 \begin_layout Plain Layout
5376 t
5377 \end_layout
5378
5379 \end_inset
5380
5381
5382 \begin_inset Quotes erd
5383 \end_inset
5384
5385  never takes a circumflex accent.
5386  Hitting 
5387 \begin_inset Flex Noun
5388 status collapsed
5389
5390 \begin_layout Plain Layout
5391 Space
5392 \end_layout
5393
5394 \end_inset
5395
5396  after a dead-key produces the bare-accent.
5397  Please note this last point! If you bind a key to a dead-key, you'll need
5398  to rebind the character on that key to yet another key.
5399  Binding the 
5400 \begin_inset Flex Noun
5401 status collapsed
5402
5403 \begin_layout Plain Layout
5404 ,-key
5405 \end_layout
5406
5407 \end_inset
5408
5409  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5410 \end_layout
5411
5412 \begin_layout Standard
5413 One common way to bind dead-keys is to use 
5414 \begin_inset Flex Noun
5415 status collapsed
5416
5417 \begin_layout Plain Layout
5418 Meta-
5419 \end_layout
5420
5421 \end_inset
5422
5423
5424 \begin_inset Flex Noun
5425 status collapsed
5426
5427 \begin_layout Plain Layout
5428 Ctrl-
5429 \end_layout
5430
5431 \end_inset
5432
5433 , and 
5434 \begin_inset Flex Noun
5435 status collapsed
5436
5437 \begin_layout Plain Layout
5438 Shift-
5439 \end_layout
5440
5441 \end_inset
5442
5443  in combination with an accent, like 
5444 \begin_inset Quotes eld
5445 \end_inset
5446
5447
5448 \begin_inset Flex Noun
5449 status collapsed
5450
5451 \begin_layout Plain Layout
5452 ~
5453 \end_layout
5454
5455 \end_inset
5456
5457
5458 \begin_inset Quotes erd
5459 \end_inset
5460
5461  or 
5462 \begin_inset Quotes eld
5463 \end_inset
5464
5465
5466 \begin_inset Flex Noun
5467 status collapsed
5468
5469 \begin_layout Plain Layout
5470 ,
5471 \end_layout
5472
5473 \end_inset
5474
5475
5476 \begin_inset Quotes erd
5477 \end_inset
5478
5479  or 
5480 \begin_inset Quotes eld
5481 \end_inset
5482
5483
5484 \begin_inset Flex Noun
5485 status collapsed
5486
5487 \begin_layout Plain Layout
5488 ^
5489 \end_layout
5490
5491 \end_inset
5492
5493
5494 \begin_inset Quotes erd
5495 \end_inset
5496
5497 .
5498  Another way involves using 
5499 \begin_inset Flex Code
5500 status collapsed
5501
5502 \begin_layout Plain Layout
5503 xmodmap
5504 \end_layout
5505
5506 \end_inset
5507
5508  and 
5509 \begin_inset Flex Code
5510 status collapsed
5511
5512 \begin_layout Plain Layout
5513 xkeycaps
5514 \end_layout
5515
5516 \end_inset
5517
5518  to set up the special 
5519 \begin_inset Flex Code
5520 status collapsed
5521
5522 \begin_layout Plain Layout
5523 Mode_Switch
5524 \end_layout
5525
5526 \end_inset
5527
5528  key.
5529  The 
5530 \begin_inset Flex Code
5531 status collapsed
5532
5533 \begin_layout Plain Layout
5534 Mode_Switch
5535 \end_layout
5536
5537 \end_inset
5538
5539  acts in some ways just like 
5540 \begin_inset Flex Noun
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 Shift
5545 \end_layout
5546
5547 \end_inset
5548
5549  and permits you to bind keys to accented characters.
5550  You can also turn keys into dead-keys by binding them to something like
5551  
5552 \begin_inset Flex Code
5553 status collapsed
5554
5555 \begin_layout Plain Layout
5556 usldead_cedilla
5557 \end_layout
5558
5559 \end_inset
5560
5561  and then binding this symbolic key to the corresponding \SpecialChar LyX
5562  command.
5563 \begin_inset Foot
5564 status collapsed
5565
5566 \begin_layout Plain Layout
5567 Note from 
5568 \noun on
5569 John Weiss
5570 \noun default
5571 : This is exactly what I do in my 
5572 \begin_inset Flex Code
5573 status collapsed
5574
5575 \begin_layout Plain Layout
5576 ~/.lyx/lyxrc
5577 \end_layout
5578
5579 \end_inset
5580
5581  and my 
5582 \begin_inset Flex Code
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586 ~/.xmodmap
5587 \end_layout
5588
5589 \end_inset
5590
5591  files.
5592  I have my 
5593 \begin_inset Flex Noun
5594 status collapsed
5595
5596 \begin_layout Plain Layout
5597 Scroll
5598 \begin_inset space ~
5599 \end_inset
5600
5601 Lock
5602 \end_layout
5603
5604 \end_inset
5605
5606  key set up as 
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611 Mode_Shift
5612 \end_layout
5613
5614 \end_inset
5615
5616  and a bunch of these 
5617 \begin_inset Quotes eld
5618 \end_inset
5619
5620
5621 \begin_inset Flex Code
5622 status collapsed
5623
5624 \begin_layout Plain Layout
5625 usldead_*
5626 \end_layout
5627
5628 \end_inset
5629
5630
5631 \begin_inset Quotes erd
5632 \end_inset
5633
5634  symbolic keys bound such things as 
5635 \begin_inset Flex Noun
5636 status collapsed
5637
5638 \begin_layout Plain Layout
5639 Scroll
5640 \begin_inset space ~
5641 \end_inset
5642
5643 Lock-^
5644 \end_layout
5645
5646 \end_inset
5647
5648  and 
5649 \begin_inset Flex Noun
5650 status collapsed
5651
5652 \begin_layout Plain Layout
5653 Scroll
5654 \begin_inset space ~
5655 \end_inset
5656
5657 Lock-~
5658 \end_layout
5659
5660 \end_inset
5661
5662 .
5663  This is how I produce my accented characters.
5664 \end_layout
5665
5666 \end_inset
5667
5668  You can make just about anything into the 
5669 \begin_inset Flex Code
5670 status collapsed
5671
5672 \begin_layout Plain Layout
5673 Mode_Switch
5674 \end_layout
5675
5676 \end_inset
5677
5678  key: One of the 
5679 \begin_inset Flex Noun
5680 status collapsed
5681
5682 \begin_layout Plain Layout
5683 Ctrl-
5684 \end_layout
5685
5686 \end_inset
5687
5688  keys, a spare function key, etc.
5689  As for the \SpecialChar LyX
5690  commands that produce accents, check the entry for 
5691 \begin_inset Flex Code
5692 status collapsed
5693
5694 \begin_layout Plain Layout
5695 accent-acute
5696 \end_layout
5697
5698 \end_inset
5699
5700  in the 
5701 \emph on
5702 Reference Manual
5703 \emph default
5704 .
5705  You'll find the complete list there.
5706 \end_layout
5707
5708 \begin_layout Subsection
5709 Saving your Language Configuration
5710 \end_layout
5711
5712 \begin_layout Standard
5713 You can edit your preferences so that your desired language environment
5714  is automatically configured when \SpecialChar LyX
5715  starts up, via the 
5716 \begin_inset Flex Noun
5717 status collapsed
5718
5719 \begin_layout Plain Layout
5720 Edit\SpecialChar menuseparator
5721 Preferences
5722 \end_layout
5723
5724 \end_inset
5725
5726  dialog.
5727 \end_layout
5728
5729 \begin_layout Chapter
5730 Installing New Document Classes, Layouts, and Templates
5731 \begin_inset CommandInset label
5732 LatexCommand label
5733 name "cha:Installing-New-Document"
5734
5735 \end_inset
5736
5737
5738 \begin_inset Argument 1
5739 status collapsed
5740
5741 \begin_layout Plain Layout
5742 Installing New Document Classes
5743 \end_layout
5744
5745 \end_inset
5746
5747
5748 \end_layout
5749
5750 \begin_layout Standard
5751 In this chapter, we describe the procedures for creating and installing
5752  new \SpecialChar LyX
5753  layout and template files, as well as offer a refresher on correctly
5754  installing new \SpecialChar LaTeX
5755  document classes.
5756  
5757 \end_layout
5758
5759 \begin_layout Standard
5760 First, let us a say a few words about how one ought to think about the relation
5761  between \SpecialChar LyX
5762  and \SpecialChar LaTeX
5763 .
5764  The thing to understand is that, in a certain sense, \SpecialChar LyX
5765  doesn't know anything
5766  about \SpecialChar LaTeX
5767 .
5768  Indeed, from \SpecialChar LyX
5769 's point of view, \SpecialChar LaTeX
5770  is just one of several 
5771 \begin_inset Quotes eld
5772 \end_inset
5773
5774 backend formats
5775 \begin_inset Quotes erd
5776 \end_inset
5777
5778  in which it is capable of producing output.
5779  Other such formats are DocBook, plaintext, and XHTML.
5780  \SpecialChar LaTeX
5781  is, of course, a particularly important format, but very little of the
5782  information \SpecialChar LyX
5783  has about \SpecialChar LaTeX
5784  is actually contained in the program itself.
5785 \begin_inset Foot
5786 status collapsed
5787
5788 \begin_layout Plain Layout
5789 Some commands are sufficiently complex that they are 
5790 \begin_inset Quotes eld
5791 \end_inset
5792
5793 hardcoded
5794 \begin_inset Quotes erd
5795 \end_inset
5796
5797  into \SpecialChar LyX
5798 .
5799  But the developers generally regard this as a Bad Thing.
5800 \end_layout
5801
5802 \end_inset
5803
5804  Rather, that information, even for the standard classes like 
5805 \begin_inset Flex Code
5806 status collapsed
5807
5808 \begin_layout Plain Layout
5809 article.cls
5810 \end_layout
5811
5812 \end_inset
5813
5814 , is contained in `layout files'.
5815  Similarly, \SpecialChar LyX
5816  itself does not know much about DocBook or XHTML.
5817  What it knows is contained in layout files.
5818 \end_layout
5819
5820 \begin_layout Standard
5821 You can think of the layout file for a given document class as a translation
5822  manual between \SpecialChar LyX
5823  constructs—paragraphs with their corresponding styles,
5824  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5825 , DocBook, or XHTML
5826  constructs.
5827  Almost everything \SpecialChar LyX
5828  knows about 
5829 \begin_inset Flex Code
5830 status collapsed
5831
5832 \begin_layout Plain Layout
5833 article.cls
5834 \end_layout
5835
5836 \end_inset
5837
5838 , for example, is contained in the file 
5839 \begin_inset Flex Code
5840 status collapsed
5841
5842 \begin_layout Plain Layout
5843 article.layout
5844 \end_layout
5845
5846 \end_inset
5847
5848  and in various other files it includes.
5849  For this reason, anyone intending to write layout files should plan to
5850  study the existing files.
5851  A good place to start is with 
5852 \begin_inset Flex Code
5853 status collapsed
5854
5855 \begin_layout Plain Layout
5856 stdsections.inc
5857 \end_layout
5858
5859 \end_inset
5860
5861 , which is included in 
5862 \begin_inset Flex Code
5863 status collapsed
5864
5865 \begin_layout Plain Layout
5866 article.layout
5867 \end_layout
5868
5869 \end_inset
5870
5871
5872 \begin_inset Flex Code
5873 status collapsed
5874
5875 \begin_layout Plain Layout
5876 book.layout
5877 \end_layout
5878
5879 \end_inset
5880
5881 , and many of the other layout files for document classes.
5882  This file is where sections and the like are defined: 
5883 \begin_inset Flex Code
5884 status collapsed
5885
5886 \begin_layout Plain Layout
5887 stdsections.inc
5888 \end_layout
5889
5890 \end_inset
5891
5892  tells \SpecialChar LyX
5893  how paragraphs that are marked with the Section, Subsection, etc,
5894  styles can be translated into corresponding \SpecialChar LaTeX
5895 , DocBook, and XHTML commands
5896  and tags.
5897  The 
5898 \begin_inset Flex Code
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 article.layout
5903 \end_layout
5904
5905 \end_inset
5906
5907  file basically just includes several of these 
5908 \begin_inset Flex Code
5909 status collapsed
5910
5911 \begin_layout Plain Layout
5912 std*.inc
5913 \end_layout
5914
5915 \end_inset
5916
5917  files.
5918 \end_layout
5919
5920 \begin_layout Standard
5921 Defining the \SpecialChar LyX
5922 –\SpecialChar LaTeX
5923  correspondence is not the only thing layout files do, though.
5924  Their other job is to define how the \SpecialChar LyX
5925  constructs themselves will appear
5926  on-screen.
5927  The fact that layout files have these two jobs is often a source of confusion,
5928  because they are completely separate.
5929  Telling \SpecialChar LyX
5930  how to translate a certain paragraph style into \SpecialChar LaTeX
5931  does not tell
5932  \SpecialChar LyX
5933  how to display it; conversely, telling \SpecialChar LyX
5934  how to display a certain paragraph
5935  style does not tell \SpecialChar LyX
5936  how to translate it into \SpecialChar LaTeX
5937  (let alone tell \SpecialChar LaTeX
5938  how to
5939  display it).
5940  So, in general, when you define a new \SpecialChar LyX
5941  construct, you must always do two
5942  quite separate things: (i)
5943 \begin_inset space ~
5944 \end_inset
5945
5946 tell \SpecialChar LyX
5947  how to translate it into \SpecialChar LaTeX
5948  and (ii)
5949 \begin_inset space ~
5950 \end_inset
5951
5952 tell \SpecialChar LyX
5953  how to display it.
5954 \end_layout
5955
5956 \begin_layout Standard
5957 Much the same is true, of course, as regards \SpecialChar LyX
5958 's other backend formats, though
5959  XHTML is in some ways different, because in that case \SpecialChar LyX
5960  
5961 \emph on
5962 is
5963 \emph default
5964  able, to some extent, to use information about how it should display a
5965  paragraph on the screen to output information (in the form of CSS) about
5966  how the paragraph should be displayed in a browser.
5967  Even in this case, however, the distinction between what \SpecialChar LyX
5968  does internally
5969  and how things are rendered externally remains in force, and the two can
5970  be controlled separately.
5971  See 
5972 \begin_inset CommandInset ref
5973 LatexCommand ref
5974 reference "sec:Tags-for-XHTML"
5975
5976 \end_inset
5977
5978  for the details.
5979 \end_layout
5980
5981 \begin_layout Section
5982 Installing new \SpecialChar LaTeX
5983  files
5984 \end_layout
5985
5986 \begin_layout Standard
5987 Some installations may not include a \SpecialChar LaTeX
5988  package or class file that you would
5989  like to use within \SpecialChar LyX
5990 .
5991  For example, you might need Foil\SpecialChar TeX
5992 , a package for preparing slides for overhead
5993  projectors.
5994  Modern \SpecialChar LaTeX
5995  distributions like \SpecialChar TeX
5996 Live (2008 or newer) or MiK\SpecialChar TeX
5997  provide a user interface
5998  for installing such packages.
5999  For example, with MiK\SpecialChar TeX
6000 , you start the program 
6001 \begin_inset Quotes eld
6002 \end_inset
6003
6004 Package
6005 \begin_inset space ~
6006 \end_inset
6007
6008 Manager
6009 \begin_inset Quotes erd
6010 \end_inset
6011
6012  to get a list of available packages.
6013  To install one of them, right click on it or use the corresponding toolbar
6014  button.
6015 \end_layout
6016
6017 \begin_layout Standard
6018 If your \SpecialChar LaTeX
6019  distribution does not provide such a `package manager', or if the
6020  package is not available from your distribution, then follow these steps
6021  to install it manually:
6022 \end_layout
6023
6024 \begin_layout Enumerate
6025 Get the package from 
6026 \begin_inset CommandInset href
6027 LatexCommand href
6028 name "CTAN"
6029 target "http://www.ctan.org/"
6030 literal "false"
6031
6032 \end_inset
6033
6034  or wherever.
6035 \end_layout
6036
6037 \begin_layout Enumerate
6038 If the package contains a file with the ending 
6039 \begin_inset Quotes eld
6040 \end_inset
6041
6042
6043 \begin_inset Flex Code
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 .ins
6048 \end_layout
6049
6050 \end_inset
6051
6052
6053 \begin_inset Quotes erd
6054 \end_inset
6055
6056  (is the case for Foil\SpecialChar TeX
6057 ) then open a console, change to the folder of this
6058  file and execute the command 
6059 \begin_inset Flex Code
6060 status collapsed
6061
6062 \begin_layout Plain Layout
6063 latex foiltex.ins
6064 \end_layout
6065
6066 \end_inset
6067
6068 .
6069  You have now unpacked the package and have all files to install it.
6070  Most \SpecialChar LaTeX
6071 -packages are not packed and you can skip this step.
6072 \end_layout
6073
6074 \begin_layout Enumerate
6075 Now you need to decide if the package should be available for all users
6076  or only for you.
6077 \end_layout
6078
6079 \begin_deeper
6080 \begin_layout Enumerate
6081 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6082  for all users on your system, then install it in your `local' \SpecialChar TeX
6083  tree, otherwise
6084  install it in your own `user' \SpecialChar TeX
6085  tree.
6086  Where these trees should be created, if they do not already exist, depends
6087  on your system.
6088  To find this out, look in the file 
6089 \begin_inset Flex Code
6090 status collapsed
6091
6092 \begin_layout Plain Layout
6093 texmf.cnf
6094 \end_layout
6095
6096 \end_inset
6097
6098 .
6099 \begin_inset Foot
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 This is usually in the directory 
6104 \begin_inset Flex Code
6105 status collapsed
6106
6107 \begin_layout Plain Layout
6108 $TEXMF/web2c
6109 \end_layout
6110
6111 \end_inset
6112
6113 , though you can execute the command 
6114 \begin_inset Flex Code
6115 status collapsed
6116
6117 \begin_layout Plain Layout
6118 kpsewhich texmf.cnf
6119 \end_layout
6120
6121 \end_inset
6122
6123  to locate it.
6124 \end_layout
6125
6126 \end_inset
6127
6128  The location of the `local' \SpecialChar TeX
6129  tree is defined by the 
6130 \begin_inset Flex Code
6131 status collapsed
6132
6133 \begin_layout Plain Layout
6134 TEXMFLOCAL
6135 \end_layout
6136
6137 \end_inset
6138
6139  variable; this is usually somewhere like 
6140 \begin_inset Flex Code
6141 status collapsed
6142
6143 \begin_layout Plain Layout
6144 /usr/local/share/texmf
6145 \end_layout
6146
6147 \end_inset
6148
6149  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6150 Live
6151  distribution.
6152  The location of the `user' \SpecialChar TeX
6153  tree is defined by 
6154 \begin_inset Flex Code
6155 status collapsed
6156
6157 \begin_layout Plain Layout
6158 TEXMFHOME
6159 \end_layout
6160
6161 \end_inset
6162
6163  and is commonly 
6164 \begin_inset Flex Code
6165 status collapsed
6166
6167 \begin_layout Plain Layout
6168 $HOME/texmf
6169 \end_layout
6170
6171 \end_inset
6172
6173  or 
6174 \begin_inset Flex Code
6175 status collapsed
6176
6177 \begin_layout Plain Layout
6178
6179 \family sans
6180 $HOME/.texliveXXXX
6181 \end_layout
6182
6183 \end_inset
6184
6185 .
6186  (If these variables are not predefined, you have to define them.) You'll
6187  probably need root permissions to create or modify the `local' tree, but
6188  not for your `user' tree.
6189 \begin_inset Newline newline
6190 \end_inset
6191
6192 In general, it is recommended to install in the user tree because your user
6193  will not be modified or even overwritten when you upgrade your system.
6194  It will typically also be backed up together with everything else when
6195  you backup your home directory (which, of course, you do on a regular basis).
6196 \end_layout
6197
6198 \begin_layout Enumerate
6199 On Windows, if you want the new package to be available for all users on
6200  your system, change to the folder where \SpecialChar LaTeX
6201  is installed and then change to
6202  the subfolder 
6203 \begin_inset Flex Code
6204 status collapsed
6205
6206 \begin_layout Plain Layout
6207 ~
6208 \backslash
6209 tex
6210 \backslash
6211 latex
6212 \end_layout
6213
6214 \end_inset
6215
6216 .
6217  (For MiK\SpecialChar TeX
6218 , this would be by default the folder 
6219 \begin_inset Flex Code
6220 status collapsed
6221
6222 \begin_layout Plain Layout
6223 ~:
6224 \backslash
6225 Programs
6226 \backslash
6227 MiKTeX
6228 \backslash
6229 tex
6230 \backslash
6231 latex
6232 \end_layout
6233
6234 \end_inset
6235
6236 .)
6237 \begin_inset Foot
6238 status collapsed
6239
6240 \begin_layout Plain Layout
6241 Note that this will be the correct path only on English installations.
6242  On a German one, it would be 
6243 \begin_inset Flex Code
6244 status collapsed
6245
6246 \begin_layout Plain Layout
6247 ~:
6248 \backslash
6249 Programme
6250 \backslash
6251 MiKTeX
6252 \backslash
6253 tex
6254 \backslash
6255 latex
6256 \end_layout
6257
6258 \end_inset
6259
6260 , and similarly for other languages.
6261 \end_layout
6262
6263 \end_inset
6264
6265  Create there a new folder 
6266 \begin_inset Flex Code
6267 status collapsed
6268
6269 \begin_layout Plain Layout
6270 foiltex
6271 \end_layout
6272
6273 \end_inset
6274
6275  and copy all files of the package into it.
6276  
6277 \begin_inset Newline newline
6278 \end_inset
6279
6280 If the package should only available for you or you don't have admin permissions
6281 , do the same, but in the local \SpecialChar LaTeX
6282  folder.
6283  E.
6284 \begin_inset space \thinspace{}
6285 \end_inset
6286
6287 g., for MiK\SpecialChar TeX
6288
6289 \begin_inset space ~
6290 \end_inset
6291
6292 2.8 under Windows XP, this would be the folder:
6293 \begin_inset Newline newline
6294 \end_inset
6295
6296
6297 \family sans
6298
6299 \begin_inset Flex Code
6300 status collapsed
6301
6302 \begin_layout Plain Layout
6303 ~:
6304 \backslash
6305 Documents and Settings
6306 \backslash
6307 <username>
6308 \backslash
6309 Application Data
6310 \backslash
6311
6312 \end_layout
6313
6314 \end_inset
6315
6316
6317 \begin_inset Newline newline
6318 \end_inset
6319
6320
6321 \family default
6322
6323 \begin_inset Phantom HPhantom
6324 status open
6325
6326 \begin_layout Plain Layout
6327
6328 \family sans
6329 ~:
6330 \backslash
6331
6332 \end_layout
6333
6334 \end_inset
6335
6336
6337 \begin_inset Flex Code
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 MiKTeX
6342 \backslash
6343 2.8
6344 \backslash
6345 tex
6346 \backslash
6347 latex
6348 \end_layout
6349
6350 \end_inset
6351
6352
6353 \begin_inset Newline newline
6354 \end_inset
6355
6356 On Vista, it would be:
6357 \begin_inset Newline newline
6358 \end_inset
6359
6360
6361 \begin_inset Flex Code
6362 status collapsed
6363
6364 \begin_layout Plain Layout
6365 ~:
6366 \backslash
6367 Users
6368 \backslash
6369 <username>
6370 \backslash
6371 AppData
6372 \backslash
6373 Roaming
6374 \backslash
6375 2.8
6376 \backslash
6377 MiKTeX
6378 \backslash
6379 tex
6380 \backslash
6381 latex
6382 \end_layout
6383
6384 \end_inset
6385
6386
6387 \end_layout
6388
6389 \end_deeper
6390 \begin_layout Enumerate
6391 Now one only need to tell \SpecialChar LaTeX
6392  that there are new files.
6393  This depends on the used \SpecialChar LaTeX
6394 -Distribution:
6395 \end_layout
6396
6397 \begin_deeper
6398 \begin_layout Enumerate
6399 For \SpecialChar TeX
6400 Live execute the command 
6401 \begin_inset Flex Code
6402 status collapsed
6403
6404 \begin_layout Plain Layout
6405 texhash
6406 \end_layout
6407
6408 \end_inset
6409
6410  from a console.
6411  If you installed the package for all users, then you will probably need
6412  to have root permissions for that.
6413 \end_layout
6414
6415 \begin_layout Enumerate
6416 For MiK\SpecialChar TeX
6417 , if you have installed the package for all users, start the program
6418  
6419 \begin_inset Quotes eld
6420 \end_inset
6421
6422 Settings
6423 \begin_inset space ~
6424 \end_inset
6425
6426 (Admin)
6427 \begin_inset Quotes erd
6428 \end_inset
6429
6430  and press the button marked 
6431 \begin_inset Quotes eld
6432 \end_inset
6433
6434 Refresh FNDB
6435 \begin_inset Quotes erd
6436 \end_inset
6437
6438 .
6439  Otherwise start the program 
6440 \begin_inset Quotes eld
6441 \end_inset
6442
6443 Settings
6444 \begin_inset Quotes erd
6445 \end_inset
6446
6447  and do the same.
6448 \end_layout
6449
6450 \end_deeper
6451 \begin_layout Enumerate
6452 Finally, you need to tell \SpecialChar LyX
6453  that there are new packages available.
6454  So, in \SpecialChar LyX
6455 , use the menu 
6456 \begin_inset Flex Noun
6457 status collapsed
6458
6459 \begin_layout Plain Layout
6460 Tools
6461 \family sans
6462 \SpecialChar menuseparator
6463 Reconfigure
6464 \end_layout
6465
6466 \end_inset
6467
6468  and then restart \SpecialChar LyX
6469 .
6470 \end_layout
6471
6472 \begin_layout Standard
6473 Now the package is installed.
6474  In our example, the document class 
6475 \begin_inset Flex Code
6476 status collapsed
6477
6478 \begin_layout Plain Layout
6479 FoilTex
6480 \end_layout
6481
6482 \end_inset
6483
6484  will now be available under 
6485 \begin_inset Flex Noun
6486 status collapsed
6487
6488 \begin_layout Plain Layout
6489 Document\SpecialChar menuseparator
6490 Settings\SpecialChar menuseparator
6491 Document Class
6492 \end_layout
6493
6494 \end_inset
6495
6496  (in the 
6497 \begin_inset Quotes eld
6498 \end_inset
6499
6500 Presentations
6501 \begin_inset Quotes erd
6502 \end_inset
6503
6504  category).
6505  
6506 \end_layout
6507
6508 \begin_layout Standard
6509 If you would like to use a \SpecialChar LaTeX
6510  document class that is not even listed in the
6511  menu 
6512 \begin_inset Flex Noun
6513 status collapsed
6514
6515 \begin_layout Plain Layout
6516 Document\SpecialChar menuseparator
6517 Settings\SpecialChar menuseparator
6518 Document Class
6519 \end_layout
6520
6521 \end_inset
6522
6523 , then you need to create a `layout' file for it.
6524  That is the topic of the next section.
6525 \end_layout
6526
6527 \begin_layout Section
6528 Types of layout files
6529 \end_layout
6530
6531 \begin_layout Standard
6532 This section describes the various sorts of \SpecialChar LyX
6533  files that contain layout informati
6534 on.
6535  These files describe various paragraph and character styles, determining
6536  how \SpecialChar LyX
6537  should display them and how they should be translated into \SpecialChar LaTeX
6538 , DocBook,
6539  XHTML, or whatever output format is being used.
6540  
6541 \end_layout
6542
6543 \begin_layout Standard
6544 We shall try to provide a thorough description of the process of writing
6545  layout files here.
6546  However, there are so many different types of documents supported even
6547  by just \SpecialChar LaTeX
6548  that we can't hope to cover every different possibility or problem
6549  you might encounter.
6550  The \SpecialChar LyX
6551  users' list is frequented by people with lots of experience with layout
6552  design who are willing to share what they've learned, so please feel free
6553  to ask questions there.
6554 \end_layout
6555
6556 \begin_layout Standard
6557 As you prepare to write a new layout, it is extremely helpful to look at
6558  the layouts distributed with \SpecialChar LyX
6559 .
6560  If you write a \SpecialChar LyX
6561  layout for a \SpecialChar LaTeX
6562  document class that might also be used by
6563  others, or write a module that might be useful to others, then you should
6564  consider posting your layout to the 
6565 \begin_inset CommandInset href
6566 LatexCommand href
6567 name "layout section on the LyX wiki"
6568 target "https://wiki.lyx.org/Layouts/Layouts"
6569 literal "false"
6570
6571 \end_inset
6572
6573  or even to the \SpecialChar LyX
6574  developers' list, so that it might be included in \SpecialChar LyX
6575  itself.
6576 \begin_inset Foot
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580 Note that \SpecialChar LyX
6581  is licensed under the General Public License, so any material
6582  that is contributed to \SpecialChar LyX
6583  must be similarly licensed.
6584 \end_layout
6585
6586 \end_inset
6587
6588
6589 \end_layout
6590
6591 \begin_layout Subsection
6592 Layout modules
6593 \begin_inset CommandInset label
6594 LatexCommand label
6595 name "subsec:Layout-modules"
6596
6597 \end_inset
6598
6599
6600 \end_layout
6601
6602 \begin_layout Standard
6603 We have spoken to this point about `layout files'.
6604  But there are different sorts of files that contain layout information.
6605  Layout files, strictly so called, have the 
6606 \begin_inset Flex Code
6607 status collapsed
6608
6609 \begin_layout Plain Layout
6610 .layout
6611 \end_layout
6612
6613 \end_inset
6614
6615  extension and provide \SpecialChar LyX
6616  with information about document classes.
6617  Since \SpecialChar LyX
6618  1.6 layout information can also be contained in layout 
6619 \emph on
6620 modules
6621 \emph default
6622 , which have the 
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627 .module
6628 \end_layout
6629
6630 \end_inset
6631
6632  extension.
6633  Modules are to \SpecialChar LaTeX
6634  packages much as layouts are to \SpecialChar LaTeX
6635  classes, and some modules—such
6636  as the 
6637 \begin_inset Flex Code
6638 status collapsed
6639
6640 \begin_layout Plain Layout
6641 endnotes
6642 \end_layout
6643
6644 \end_inset
6645
6646  module—specifically provide support for one package.
6647  In a sense, layout modules are similar to included
6648 \begin_inset Foot
6649 status collapsed
6650
6651 \begin_layout Plain Layout
6652 These can have any extension, but by convention have the 
6653 \begin_inset Flex Code
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 .inc
6658 \end_layout
6659
6660 \end_inset
6661
6662  extension.
6663 \end_layout
6664
6665 \end_inset
6666
6667  files—files like 
6668 \begin_inset Flex Code
6669 status collapsed
6670
6671 \begin_layout Plain Layout
6672 stdsections.inc
6673 \end_layout
6674
6675 \end_inset
6676
6677 —in that modules are not specific to a given document class but may be used
6678  with many different classes.
6679  The difference is that using an included file with 
6680 \begin_inset Flex Code
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 article.cls
6685 \end_layout
6686
6687 \end_inset
6688
6689  requires editing that file.
6690  Modules, by contrast, are selected in the 
6691 \begin_inset Flex Noun
6692 status collapsed
6693
6694 \begin_layout Plain Layout
6695 Document\SpecialChar menuseparator
6696 Settings
6697 \end_layout
6698
6699 \end_inset
6700
6701  dialog.
6702 \end_layout
6703
6704 \begin_layout Standard
6705 Building modules is the easiest way to get started with layout editing,
6706  since it can be as simple as adding a single new paragraph style or flex
6707  inset.
6708  But modules may, in principle, contain anything a layout file can contain.
6709 \end_layout
6710
6711 \begin_layout Standard
6712 After creating a new module and copying it to the 
6713 \begin_inset Flex Code
6714 status collapsed
6715
6716 \begin_layout Plain Layout
6717 layouts/
6718 \end_layout
6719
6720 \end_inset
6721
6722  folder, you will need to reconfigure and then restart \SpecialChar LyX
6723  for the module to
6724  appear in the menu.
6725  However, changes you make to the module will be seen immediately, if you
6726  open 
6727 \begin_inset Flex Noun
6728 status collapsed
6729
6730 \begin_layout Plain Layout
6731 Document\SpecialChar menuseparator
6732 Settings
6733 \end_layout
6734
6735 \end_inset
6736
6737 , highlight something, and then hit 
6738 \begin_inset Quotes eld
6739 \end_inset
6740
6741 OK
6742 \begin_inset Quotes erd
6743 \end_inset
6744
6745 .
6746  
6747 \emph on
6748 It is strongly recommended that you save your work before doing this
6749 \emph default
6750 .
6751  In fact, 
6752 \emph on
6753 it is strongly recommended that you not attempt to edit modules while simultaneo
6754 usly working on actual documents
6755 \emph default
6756 .
6757  Though of course the developers strive to keep \SpecialChar LyX
6758  stable in such situations,
6759  syntax errors and the like in your module file could cause strange behavior.
6760 \end_layout
6761
6762 \begin_layout Subsubsection
6763 Local Layout
6764 \end_layout
6765
6766 \begin_layout Standard
6767 Modules are to \SpecialChar LyX
6768  as packages are to \SpecialChar LaTeX
6769 .
6770  Sometimes, however, you find yourself wanting a specific inset or character
6771  style just for one document and writing a module that will also be available
6772  to other documents makes little sense.
6773  What you need is \SpecialChar LyX
6774 's 
6775 \begin_inset Quotes eld
6776 \end_inset
6777
6778 Local Layout
6779 \begin_inset Quotes erd
6780 \end_inset
6781
6782 .
6783 \end_layout
6784
6785 \begin_layout Standard
6786 You will find it under 
6787 \family sans
6788 Document\SpecialChar menuseparator
6789 Settings\SpecialChar menuseparator
6790 Local Layout
6791 \family default
6792 .
6793  The large text box allows you to enter anything that you might enter in
6794  a layout file or module.
6795  You can think of a document's local layout, in fact, as a module that belongs
6796  just to it.
6797  So, in particular, you must enter a 
6798 \begin_inset Flex Code
6799 status collapsed
6800
6801 \begin_layout Plain Layout
6802 Format
6803 \end_layout
6804
6805 \end_inset
6806
6807  tag.
6808  Any format is acceptable, but one would normally use the format current
6809  at the time.
6810  (In \SpecialChar LyX
6811  2.3, the current layout format is 63.)
6812 \end_layout
6813
6814 \begin_layout Standard
6815 When you have entered something in the 
6816 \begin_inset Flex Code
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 Local Layout
6821 \end_layout
6822
6823 \end_inset
6824
6825  pane, \SpecialChar LyX
6826  will enable the 
6827 \begin_inset Quotes eld
6828 \end_inset
6829
6830 Validate
6831 \begin_inset Quotes erd
6832 \end_inset
6833
6834  button at the bottom.
6835  Clicking this button will cause \SpecialChar LyX
6836  to determine whether what you have entered
6837  is valid layout information for the chosen format.
6838  \SpecialChar LyX
6839  will report the result but, unfortunately, will not tell you what errors
6840  there might have been.
6841  These will be written to the terminal, however, if \SpecialChar LyX
6842  is started from a terminal.
6843  You will not be permitted to save your local layout until you have entered
6844  something valid.
6845 \end_layout
6846
6847 \begin_layout Standard
6848 The warnings at the end of the previous section apply here, too.
6849  Do not play with local layout while you are actually working, especially
6850  if you have not saved your document.
6851  That said, using local layout with a test document can be a very convenient
6852  way to try out layout ideas, or even to start developing a module.
6853 \end_layout
6854
6855 \begin_layout Subsection
6856 Layout for 
6857 \begin_inset Flex Noun
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 .sty
6862 \end_layout
6863
6864 \end_inset
6865
6866  files
6867 \end_layout
6868
6869 \begin_layout Standard
6870 There are two situations you are likely to encounter when wanting to support
6871  a new \SpecialChar LaTeX
6872  document class, involving style (
6873 \begin_inset Flex Code
6874 status collapsed
6875
6876 \begin_layout Plain Layout
6877 .sty
6878 \end_layout
6879
6880 \end_inset
6881
6882 ) files and \SpecialChar LaTeX2e
6883  class (
6884 \begin_inset Flex Code
6885 status collapsed
6886
6887 \begin_layout Plain Layout
6888 .cls
6889 \end_layout
6890
6891 \end_inset
6892
6893 ) .
6894  Supporting a style file is usually fairly easy.
6895  Supporting a new class file is a bit harder.
6896  We'll discuss the former in this section and the latter in the next.
6897  Similar remarks apply, of course, if you want to support a new DocBook
6898  DTD.
6899 \end_layout
6900
6901 \begin_layout Standard
6902 The easier case is the one in which your new document class is provided
6903  as a style file that is to be used in conjunction with an already supported
6904  document class.
6905  For the sake of the example, we'll assume that the style file is called
6906  
6907 \begin_inset Flex Noun
6908 status collapsed
6909
6910 \begin_layout Plain Layout
6911 myclass.sty
6912 \end_layout
6913
6914 \end_inset
6915
6916  and that it is meant to be used with 
6917 \begin_inset Flex Noun
6918 status collapsed
6919
6920 \begin_layout Plain Layout
6921 report.cls
6922 \end_layout
6923
6924 \end_inset
6925
6926 , which is a standard class.
6927  
6928 \end_layout
6929
6930 \begin_layout Standard
6931 Start by copying the existing class's layout file into your local directory:
6932 \begin_inset Foot
6933 status collapsed
6934
6935 \begin_layout Plain Layout
6936 Of course, which directory is your local directory will vary by platform,
6937  and \SpecialChar LyX
6938  allows you to specify your local directory on startup, too, using
6939  the 
6940 \begin_inset Flex Code
6941 status collapsed
6942
6943 \begin_layout Plain Layout
6944 -userdir
6945 \end_layout
6946
6947 \end_inset
6948
6949  option.
6950 \end_layout
6951
6952 \end_inset
6953
6954
6955 \end_layout
6956
6957 \begin_layout LyX-Code
6958 cp report.layout ~/.lyx/layouts/myclass.layout
6959 \end_layout
6960
6961 \begin_layout Standard
6962 Then edit 
6963 \begin_inset Flex Code
6964 status collapsed
6965
6966 \begin_layout Plain Layout
6967 myclass.layout
6968 \end_layout
6969
6970 \end_inset
6971
6972  and change the line: 
6973 \end_layout
6974
6975 \begin_layout LyX-Code
6976
6977 \backslash
6978 DeclareLaTeXClass{Report (Standard Class)}
6979 \end_layout
6980
6981 \begin_layout Standard
6982 to read
6983 \end_layout
6984
6985 \begin_layout LyX-Code
6986
6987 \backslash
6988 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
6989 \end_layout
6990
6991 \begin_layout Standard
6992 Then add:
6993 \end_layout
6994
6995 \begin_layout LyX-Code
6996 Preamble 
6997 \begin_inset Newline newline
6998 \end_inset
6999
7000     
7001 \backslash
7002 usepackage{myclass}
7003 \begin_inset Newline newline
7004 \end_inset
7005
7006 EndPreamble
7007 \end_layout
7008
7009 \begin_layout Standard
7010 near the top of the file.
7011 \end_layout
7012
7013 \begin_layout Standard
7014 Start \SpecialChar LyX
7015  and select 
7016 \begin_inset Flex Noun
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 Tools\SpecialChar menuseparator
7021 Reconfigure
7022 \end_layout
7023
7024 \end_inset
7025
7026 .
7027  Then restart \SpecialChar LyX
7028  and try creating a new document.
7029  You should see "
7030 \begin_inset Flex Noun
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 Report (My Class)
7035 \end_layout
7036
7037 \end_inset
7038
7039 " as a document class option in the 
7040 \begin_inset Flex Noun
7041 status collapsed
7042
7043 \begin_layout Plain Layout
7044 Document\SpecialChar menuseparator
7045 Settings
7046 \end_layout
7047
7048 \end_inset
7049
7050  dialog.
7051  It is likely that some of the sectioning commands and such in your new
7052  class will work differently from how they worked in the base class—
7053 \begin_inset Flex Code
7054 status collapsed
7055
7056 \begin_layout Plain Layout
7057 report
7058 \end_layout
7059
7060 \end_inset
7061
7062  in this example—so you can fiddle around with the settings for the different
7063  sections if you wish.
7064  The layout information for sections is contained in 
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 stdsections.inc
7070 \end_layout
7071
7072 \end_inset
7073
7074 , but you do not need to copy and change this file.
7075  Instead, you can simply add your changes to your layout file, after the
7076  line 
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 Input stdclass.inc
7082 \end_layout
7083
7084 \end_inset
7085
7086 , which itself includes 
7087 \begin_inset Flex Code
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 stdsections.inc
7092 \end_layout
7093
7094 \end_inset
7095
7096 .
7097  For example, you might add these lines:
7098 \end_layout
7099
7100 \begin_layout LyX-Code
7101 Style Chapter
7102 \end_layout
7103
7104 \begin_layout LyX-Code
7105     Font
7106 \end_layout
7107
7108 \begin_layout LyX-Code
7109         Family Sans
7110 \end_layout
7111
7112 \begin_layout LyX-Code
7113     EndFont
7114 \end_layout
7115
7116 \begin_layout LyX-Code
7117 End
7118 \end_layout
7119
7120 \begin_layout Standard
7121 to change the font for chapter headings to sans-serif.
7122  This will override (or, in this case, add to) the existing declaration
7123  for the Chapter style.
7124  
7125 \end_layout
7126
7127 \begin_layout Standard
7128 Your new package may also provide commands or environments not present in
7129  the base class.
7130  In this case, you will want to add these to the layout file.
7131  See 
7132 \begin_inset CommandInset ref
7133 LatexCommand ref
7134 reference "sec:TextClass"
7135
7136 \end_inset
7137
7138  for information on how to do so.
7139 \end_layout
7140
7141 \begin_layout Standard
7142 If 
7143 \begin_inset Flex Noun
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 myclass.sty
7148 \end_layout
7149
7150 \end_inset
7151
7152  can be used with several different document classes, and even if it cannot,
7153  you might find it easiest just to write a module that you can load with
7154  the base class.
7155  The simplest possible such module would be:
7156 \end_layout
7157
7158 \begin_layout LyX-Code
7159 #
7160 \backslash
7161 DeclareLyXModule{My Class} 
7162 \end_layout
7163
7164 \begin_layout LyX-Code
7165 #DescriptionBegin 
7166 \end_layout
7167
7168 \begin_layout LyX-Code
7169 #Support for myclass.sty.
7170 \end_layout
7171
7172 \begin_layout LyX-Code
7173 #DescriptionEnd
7174 \begin_inset Newline newline
7175 \end_inset
7176
7177
7178 \end_layout
7179
7180 \begin_layout LyX-Code
7181 Format 63
7182 \begin_inset Newline newline
7183 \end_inset
7184
7185
7186 \end_layout
7187
7188 \begin_layout LyX-Code
7189 Preamble
7190 \begin_inset Newline newline
7191 \end_inset
7192
7193     
7194 \backslash
7195 usepackage{myclass}
7196 \begin_inset Newline newline
7197 \end_inset
7198
7199 EndPreamble
7200 \end_layout
7201
7202 \begin_layout Standard
7203 A more complex module might modify the behavior of some existing constructs
7204  or define some new ones.
7205  Again, see 
7206 \begin_inset CommandInset ref
7207 LatexCommand ref
7208 reference "sec:TextClass"
7209
7210 \end_inset
7211
7212  for discussion.
7213 \end_layout
7214
7215 \begin_layout Subsection
7216 Layout for 
7217 \begin_inset Flex Noun
7218 status collapsed
7219
7220 \begin_layout Plain Layout
7221 .cls
7222 \end_layout
7223
7224 \end_inset
7225
7226  files
7227 \end_layout
7228
7229 \begin_layout Standard
7230 There are two possibilities here.
7231  One is that the class file is itself based upon an existing document class.
7232  For example, many thesis classes are based upon 
7233 \begin_inset Flex Noun
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 book.cls
7238 \end_layout
7239
7240 \end_inset
7241
7242 .
7243  To see whether yours is, look for a line like
7244 \end_layout
7245
7246 \begin_layout LyX-Code
7247
7248 \backslash
7249 LoadClass{book}
7250 \end_layout
7251
7252 \begin_layout Standard
7253 in the file.
7254  If so, then you may proceed largely as in the previous section, though
7255  the 
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 Declare\SpecialChar LaTeX
7261 Class
7262 \end_layout
7263
7264 \end_inset
7265
7266  line will be different.
7267  If your new class is 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 thesis
7273 \end_layout
7274
7275 \end_inset
7276
7277  and it is based upon 
7278 \begin_inset Flex Code
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282 book
7283 \end_layout
7284
7285 \end_inset
7286
7287 , then the line should read:
7288 \begin_inset Foot
7289 status collapsed
7290
7291 \begin_layout Plain Layout
7292 And it will be easiest if you save the file to 
7293 \begin_inset Flex Code
7294 status collapsed
7295
7296 \begin_layout Plain Layout
7297 thesis.layout
7298 \end_layout
7299
7300 \end_inset
7301
7302 : \SpecialChar LyX
7303  assumes that the document class has the same name as the layout file.
7304  
7305 \end_layout
7306
7307 \end_inset
7308
7309
7310 \end_layout
7311
7312 \begin_layout LyX-Code
7313
7314 \backslash
7315 DeclareLaTeXClass[thesis,book]{thesis}
7316 \end_layout
7317
7318 \begin_layout Standard
7319 If, on the other hand, the new class is not based upon an existing class,
7320  you will probably have to 
7321 \begin_inset Quotes eld
7322 \end_inset
7323
7324 roll your own
7325 \begin_inset Quotes erd
7326 \end_inset
7327
7328  layout.
7329  We strongly suggest copying an existing layout file which uses a similar
7330  \SpecialChar LaTeX
7331  class and then modifying it, if you can do so.
7332  At least use an existing file as a starting point so you can find out what
7333  items you need to worry about.
7334  Again, the specifics are covered below.
7335 \end_layout
7336
7337 \begin_layout Subsection
7338 Creating templates
7339 \begin_inset CommandInset label
7340 LatexCommand label
7341 name "subsec:Creating-Templates"
7342
7343 \end_inset
7344
7345
7346 \end_layout
7347
7348 \begin_layout Standard
7349 Once you have written a layout file for a new document class, you might
7350  want to consider writing a 
7351 \emph on
7352 template
7353 \emph default
7354  for it, too.
7355  A template acts as a kind of tutorial for your layout, showing how it might
7356  be used, though containing dummy content.
7357  You can of course look at the various templates included with \SpecialChar LyX
7358  for ideas.
7359 \end_layout
7360
7361 \begin_layout Standard
7362 Templates are created just like usual documents: using \SpecialChar LyX
7363 .
7364  The only difference is that usual documents contain all possible settings,
7365  including the font scheme and the paper size.
7366  Usually a user doesn't want a template to overwrite his preferred settings
7367  for such parameters.
7368  For that reason, the designer of a template should remove the corresponding
7369  commands like 
7370 \begin_inset Flex Code
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374
7375 \backslash
7376 font_roman
7377 \end_layout
7378
7379 \end_inset
7380
7381  or 
7382 \begin_inset Flex Code
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386
7387 \backslash
7388 papersize
7389 \end_layout
7390
7391 \end_inset
7392
7393  from the template \SpecialChar LyX
7394  file.
7395  This can be done with any simple text-editor, for example 
7396 \begin_inset Flex Code
7397 status collapsed
7398
7399 \begin_layout Plain Layout
7400 vi
7401 \end_layout
7402
7403 \end_inset
7404
7405  or 
7406 \begin_inset Flex Code
7407 status collapsed
7408
7409 \begin_layout Plain Layout
7410 notepad
7411 \end_layout
7412
7413 \end_inset
7414
7415 .
7416 \end_layout
7417
7418 \begin_layout Standard
7419 Put the edited template files you create in 
7420 \begin_inset Flex Code
7421 status collapsed
7422
7423 \begin_layout Plain Layout
7424 UserDir/templates/
7425 \end_layout
7426
7427 \end_inset
7428
7429 , copy the ones you use from the global template directory in 
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 LyXDir/templates/
7435 \end_layout
7436
7437 \end_inset
7438
7439  to the same place, and redefine the template path in the 
7440 \begin_inset Flex Noun
7441 status collapsed
7442
7443 \begin_layout Plain Layout
7444 Tools\SpecialChar menuseparator
7445 Preferences\SpecialChar menuseparator
7446 Paths
7447 \end_layout
7448
7449 \end_inset
7450
7451  dialog.
7452 \end_layout
7453
7454 \begin_layout Standard
7455 Note, by the way, that there is a template which has a particular meaning:
7456 \begin_inset Newline linebreak
7457 \end_inset
7458
7459
7460 \begin_inset Flex Code
7461 status collapsed
7462
7463 \begin_layout Plain Layout
7464 defaults.lyx
7465 \end_layout
7466
7467 \end_inset
7468
7469 .
7470  This template is loaded every time you create a new document with 
7471 \begin_inset Flex Noun
7472 status collapsed
7473
7474 \begin_layout Plain Layout
7475 File\SpecialChar menuseparator
7476 New
7477 \end_layout
7478
7479 \end_inset
7480
7481  in order to provide useful defaults.
7482  To create this template from inside \SpecialChar LyX
7483 , all you have to do is to open a document
7484  with the correct settings, and use the 
7485 \begin_inset Flex Noun
7486 status collapsed
7487
7488 \begin_layout Plain Layout
7489 Save as Document Defaults
7490 \end_layout
7491
7492 \end_inset
7493
7494  button.
7495 \end_layout
7496
7497 \begin_layout Subsection
7498 Upgrading old layout files
7499 \end_layout
7500
7501 \begin_layout Standard
7502 The format of layout files changes with each \SpecialChar LyX
7503  release, so old layout files
7504  need to be converted to the new format.
7505  If \SpecialChar LyX
7506  reads a layout file in an older format, it automatically calls the
7507  script 
7508 \begin_inset Flex Code
7509 status collapsed
7510
7511 \begin_layout Plain Layout
7512 layout2layout.py
7513 \end_layout
7514
7515 \end_inset
7516
7517  to convert it to a temporary file in current format.
7518  The original file is left untouched.
7519  If you use the layout file often, then, you may want to convert it permanently,
7520  so that \SpecialChar LyX
7521  does not have to do so itself every time.
7522  To do this, you can call the converter manually:
7523 \end_layout
7524
7525 \begin_layout Enumerate
7526 rename the file 
7527 \begin_inset Flex Code
7528 status collapsed
7529
7530 \begin_layout Plain Layout
7531 myclass.layout
7532 \end_layout
7533
7534 \end_inset
7535
7536  to 
7537 \begin_inset Flex Code
7538 status collapsed
7539
7540 \begin_layout Plain Layout
7541 myclass.old
7542 \end_layout
7543
7544 \end_inset
7545
7546
7547 \end_layout
7548
7549 \begin_layout Enumerate
7550 Call the command
7551 \begin_inset Newline newline
7552 \end_inset
7553
7554
7555 \begin_inset Flex Code
7556 status collapsed
7557
7558 \begin_layout Plain Layout
7559 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7560 \end_layout
7561
7562 \end_inset
7563
7564
7565 \begin_inset Newline newline
7566 \end_inset
7567
7568 where 
7569 \begin_inset Flex Code
7570 status collapsed
7571
7572 \begin_layout Plain Layout
7573 LyXDir
7574 \end_layout
7575
7576 \end_inset
7577
7578  is the name of your \SpecialChar LyX
7579  system directory.
7580 \end_layout
7581
7582 \begin_layout Standard
7583 Note that manual conversion does not affect included files, so these will
7584  have to be converted separately.
7585 \end_layout
7586
7587 \begin_layout Subsection
7588 \begin_inset CommandInset label
7589 LatexCommand label
7590 name "subsec:Cite-Engine-Files"
7591
7592 \end_inset
7593
7594 Cite engine files
7595 \end_layout
7596
7597 \begin_layout Standard
7598 A specific form of layout files are the so-called 
7599 \begin_inset Flex Code
7600 status collapsed
7601
7602 \begin_layout Plain Layout
7603 *.citeengine
7604 \end_layout
7605
7606 \end_inset
7607
7608  files that are located in the 
7609 \begin_inset Flex Code
7610 status collapsed
7611
7612 \begin_layout Plain Layout
7613 citeengines/
7614 \end_layout
7615
7616 \end_inset
7617
7618  sub-directory.
7619  Their purpose is to define the specifics of \SpecialChar LaTeX
7620  packages aimed at bibliography
7621  generation, such as 
7622 \family sans
7623 natbib
7624 \family default
7625 ,
7626 \family sans
7627  jurabib
7628 \family default
7629  or 
7630 \family sans
7631 biblatex
7632 \family default
7633 , but also the way how normal Bib\SpecialChar TeX
7634  citations (without additional packages)
7635  are handled in \SpecialChar LyX
7636  is defined in such a file.
7637  
7638 \end_layout
7639
7640 \begin_layout Standard
7641 More specifically, it is defined which packages \SpecialChar LyX
7642  needs to load, which citation
7643  commands are available, how these are to be displayed in \SpecialChar LyX
7644  (in the workarea,
7645  the dialogs, the context menus) as well as in the XHTML and plain text
7646  output.
7647  Furthermore, the files specify available style variants (author-year, numerical
7648 , etc.) and their specifics.
7649  The cite engine files are also used to generate the options that are available
7650  in 
7651 \family sans
7652 Document\SpecialChar menuseparator
7653 Settings\SpecialChar menuseparator
7654 Bibliography\SpecialChar menuseparator
7655 Style engine
7656 \family default
7657 .
7658 \end_layout
7659
7660 \begin_layout Standard
7661 Even though a cite engine file is essentially a normal layout file that
7662  could theoretically include any layout information, it usually primarily
7663  includes some specific parameters such as 
7664 \begin_inset Flex Code
7665 status collapsed
7666
7667 \begin_layout Plain Layout
7668 MaxCiteNames
7669 \end_layout
7670
7671 \end_inset
7672
7673
7674 \begin_inset Flex Code
7675 status collapsed
7676
7677 \begin_layout Plain Layout
7678 CiteFramework
7679 \end_layout
7680
7681 \end_inset
7682
7683
7684 \begin_inset Flex Code
7685 status collapsed
7686
7687 \begin_layout Plain Layout
7688 CiteEngine
7689 \end_layout
7690
7691 \end_inset
7692
7693  and 
7694 \begin_inset Flex Code
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 CiteFormat
7699 \end_layout
7700
7701 \end_inset
7702
7703  blocks.
7704  The syntax of the latter two is described in 
7705 \begin_inset CommandInset ref
7706 LatexCommand ref
7707 reference "subsec:Citation-engine-description"
7708 plural "false"
7709 caps "false"
7710 noprefix "false"
7711
7712 \end_inset
7713
7714  and 
7715 \begin_inset CommandInset ref
7716 LatexCommand ref
7717 reference "subsec:Citation-format-description"
7718
7719 \end_inset
7720
7721 , as well as in the files themselves.
7722 \end_layout
7723
7724 \begin_layout Section
7725 \begin_inset CommandInset label
7726 LatexCommand label
7727 name "sec:TextClass"
7728
7729 \end_inset
7730
7731 The layout file format
7732 \end_layout
7733
7734 \begin_layout Standard
7735 The following sections describe how layout files are structured and written.
7736  Our advice is to go slowly, save and test often.
7737  It is really not that hard, except that the multitude of options can become
7738  overwhelming, especially if you try to check out too many at once.
7739  It becomes easier if you use existing layouts of \SpecialChar LyX
7740  as examples/reference
7741  or if you modify an existing layout to your needs.
7742 \end_layout
7743
7744 \begin_layout Standard
7745 Note that all the tags used in layout files are case-insensitive.
7746  This means that 
7747 \begin_inset Flex Code
7748 status collapsed
7749
7750 \begin_layout Plain Layout
7751 Style
7752 \end_layout
7753
7754 \end_inset
7755
7756
7757 \begin_inset Flex Code
7758 status collapsed
7759
7760 \begin_layout Plain Layout
7761 style
7762 \end_layout
7763
7764 \end_inset
7765
7766  and 
7767 \begin_inset Flex Code
7768 status collapsed
7769
7770 \begin_layout Plain Layout
7771 StYlE
7772 \end_layout
7773
7774 \end_inset
7775
7776  are really the same tag.
7777  The possible arguments are printed in brackets after the tag's name.
7778  The default argument is typeset 
7779 \begin_inset Flex Code
7780 status collapsed
7781
7782 \begin_layout Plain Layout
7783
7784 \emph on
7785 emphasized
7786 \end_layout
7787
7788 \end_inset
7789
7790 .
7791  If the argument has a data type like 
7792 \begin_inset Quotes eld
7793 \end_inset
7794
7795 string
7796 \begin_inset Quotes erd
7797 \end_inset
7798
7799  or 
7800 \begin_inset Quotes eld
7801 \end_inset
7802
7803 float
7804 \begin_inset Quotes erd
7805 \end_inset
7806
7807 , the default is shown like this: 
7808 \begin_inset Flex Code
7809 status collapsed
7810
7811 \begin_layout Plain Layout
7812 float=
7813 \emph on
7814 default
7815 \end_layout
7816
7817 \end_inset
7818
7819 .
7820 \end_layout
7821
7822 \begin_layout Subsection
7823 The document class declaration and classification
7824 \end_layout
7825
7826 \begin_layout Standard
7827 Lines in a layout file which begin with 
7828 \begin_inset Flex Code
7829 status collapsed
7830
7831 \begin_layout Plain Layout
7832 #
7833 \end_layout
7834
7835 \end_inset
7836
7837  are comments.
7838  There is one exception to this rule.
7839  All 
7840 \begin_inset Flex Code
7841 status collapsed
7842
7843 \begin_layout Plain Layout
7844 *.layout
7845 \end_layout
7846
7847 \end_inset
7848
7849  files should begin with lines like:
7850 \end_layout
7851
7852 \begin_layout LyX-Code
7853
7854 \size small
7855 #% Do not delete the line below; configure depends on this 
7856 \end_layout
7857
7858 \begin_layout LyX-Code
7859
7860 \size small
7861 #  
7862 \backslash
7863 DeclareLaTeXClass{Article (Standard Class)}
7864 \end_layout
7865
7866 \begin_layout LyX-Code
7867
7868 \size small
7869 #  
7870 \backslash
7871 DeclareCategory{Articles}
7872 \end_layout
7873
7874 \begin_layout Standard
7875 The second and third lines are used when you (re)configure \SpecialChar LyX
7876 .
7877  The layout file is read by the \SpecialChar LaTeX
7878  script 
7879 \begin_inset Flex Code
7880 status collapsed
7881
7882 \begin_layout Plain Layout
7883 chkconfig.ltx
7884 \end_layout
7885
7886 \end_inset
7887
7888 , in a special mode where 
7889 \begin_inset Flex Code
7890 status collapsed
7891
7892 \begin_layout Plain Layout
7893 #
7894 \end_layout
7895
7896 \end_inset
7897
7898  is ignored.
7899  The first line is just a \SpecialChar LaTeX
7900  comment, the second one contains the mandatory
7901  declaration of the text class and the third line contains the optional
7902  classification of the class.
7903  If these lines appear in a file named 
7904 \begin_inset Flex Code
7905 status collapsed
7906
7907 \begin_layout Plain Layout
7908 article.layout
7909 \end_layout
7910
7911 \end_inset
7912
7913 , then they define a text class of name 
7914 \begin_inset Flex Code
7915 status collapsed
7916
7917 \begin_layout Plain Layout
7918 article
7919 \end_layout
7920
7921 \end_inset
7922
7923  (the name of the layout file) which uses the \SpecialChar LaTeX
7924  document class 
7925 \begin_inset Flex Code
7926 status collapsed
7927
7928 \begin_layout Plain Layout
7929 article.cls
7930 \end_layout
7931
7932 \end_inset
7933
7934  (the default is to use the same name as the layout).
7935  The string 
7936 \begin_inset Quotes eld
7937 \end_inset
7938
7939 Article (Standard Class)
7940 \begin_inset Quotes erd
7941 \end_inset
7942
7943  that appears above is used as a description of the text class in the 
7944 \begin_inset Flex Noun
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 Document\SpecialChar menuseparator
7949 Settings
7950 \end_layout
7951
7952 \end_inset
7953
7954  dialog.
7955  The category (
7956 \begin_inset Quotes eld
7957 \end_inset
7958
7959 Articles
7960 \begin_inset Quotes erd
7961 \end_inset
7962
7963  in the example) is also used in the 
7964 \begin_inset Flex Noun
7965 status collapsed
7966
7967 \begin_layout Plain Layout
7968 Document\SpecialChar menuseparator
7969 Settings
7970 \end_layout
7971
7972 \end_inset
7973
7974  dialog: the text classes are grouped by these categories (which are usually
7975  genres, so typical categories are 
7976 \begin_inset Quotes eld
7977 \end_inset
7978
7979 Articles
7980 \begin_inset Quotes erd
7981 \end_inset
7982
7983
7984 \begin_inset Quotes eld
7985 \end_inset
7986
7987 Books
7988 \begin_inset Quotes erd
7989 \end_inset
7990
7991
7992 \begin_inset Quotes eld
7993 \end_inset
7994
7995 Reports
7996 \begin_inset Quotes erd
7997 \end_inset
7998
7999
8000 \begin_inset Quotes eld
8001 \end_inset
8002
8003 Letters
8004 \begin_inset Quotes erd
8005 \end_inset
8006
8007
8008 \begin_inset Quotes eld
8009 \end_inset
8010
8011 Presentations
8012 \begin_inset Quotes erd
8013 \end_inset
8014
8015
8016 \begin_inset Quotes eld
8017 \end_inset
8018
8019 Curricula Vitae
8020 \begin_inset Quotes erd
8021 \end_inset
8022
8023  etc.).
8024  If no category has been declared, the class will be put in the 
8025 \begin_inset Quotes eld
8026 \end_inset
8027
8028 Uncategorized
8029 \begin_inset Quotes erd
8030 \end_inset
8031
8032  group.
8033 \end_layout
8034
8035 \begin_layout Standard
8036 Let's assume that you wrote your own text class that uses the 
8037 \begin_inset Flex Code
8038 status collapsed
8039
8040 \begin_layout Plain Layout
8041 article.cls
8042 \end_layout
8043
8044 \end_inset
8045
8046  document class, but where you changed the appearance of the section headings.
8047  If you put it in a file 
8048 \begin_inset Flex Code
8049 status collapsed
8050
8051 \begin_layout Plain Layout
8052 myarticle.layout
8053 \end_layout
8054
8055 \end_inset
8056
8057 , the header of this file should be:
8058 \end_layout
8059
8060 \begin_layout LyX-Code
8061
8062 \size small
8063 #% Do not delete the line below; configure depends on this 
8064 \end_layout
8065
8066 \begin_layout LyX-Code
8067
8068 \size small
8069 #  
8070 \backslash
8071 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8072 \end_layout
8073
8074 \begin_layout LyX-Code
8075
8076 \size small
8077 #  
8078 \backslash
8079 DeclareCategory{Articles}
8080 \end_layout
8081
8082 \begin_layout Standard
8083 This declares a text class 
8084 \begin_inset Flex Code
8085 status collapsed
8086
8087 \begin_layout Plain Layout
8088 myarticle
8089 \end_layout
8090
8091 \end_inset
8092
8093 , associated with the \SpecialChar LaTeX
8094  document class 
8095 \begin_inset Flex Code
8096 status collapsed
8097
8098 \begin_layout Plain Layout
8099 article.cls
8100 \end_layout
8101
8102 \end_inset
8103
8104  and described as 
8105 \begin_inset Quotes eld
8106 \end_inset
8107
8108 Article (with My Own Headings)
8109 \begin_inset Quotes erd
8110 \end_inset
8111
8112 .
8113  If your text class depends on several packages, you can declare it as:
8114 \end_layout
8115
8116 \begin_layout LyX-Code
8117
8118 \size small
8119 #% Do not delete the line below; configure depends on this 
8120 \end_layout
8121
8122 \begin_layout LyX-Code
8123
8124 \size small
8125 #  
8126 \backslash
8127 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8128 \end_layout
8129
8130 \begin_layout LyX-Code
8131
8132 \size small
8133 #  
8134 \backslash
8135 DeclareCategory{Articles}
8136 \end_layout
8137
8138 \begin_layout Standard
8139 This indicates that your text class uses the 
8140 \begin_inset Flex Code
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144 foo.sty
8145 \end_layout
8146
8147 \end_inset
8148
8149  package.
8150  Finally, it is also possible to declare classes for DocBook code.
8151  Typical declarations will look like:
8152 \end_layout
8153
8154 \begin_layout LyX-Code
8155
8156 \size small
8157 #% Do not delete the line below; configure depends on this 
8158 \end_layout
8159
8160 \begin_layout LyX-Code
8161
8162 \size small
8163
8164 \backslash
8165 DeclareDocBookClass[article]{SGML (DocBook Article)}
8166 \end_layout
8167
8168 \begin_layout LyX-Code
8169
8170 \size small
8171
8172 \backslash
8173 DeclareCategory{Articles (DocBook)}
8174 \end_layout
8175
8176 \begin_layout Standard
8177 Note that these declarations can also be given an optional parameter declaring
8178  the name of the document class (but not a list).
8179 \end_layout
8180
8181 \begin_layout Standard
8182 So, to be as explicit as possible, the form of the layout declaration is:
8183 \end_layout
8184
8185 \begin_layout LyX-Code
8186
8187 \size small
8188 #  
8189 \backslash
8190 DeclareLaTeXClass[class,package.sty]{layout description}
8191 \end_layout
8192
8193 \begin_layout LyX-Code
8194
8195 \size small
8196 #  
8197 \backslash
8198 DeclareCategory{category}
8199 \end_layout
8200
8201 \begin_layout Standard
8202 The class need only be specified if the name of the \SpecialChar LaTeX
8203  class file and the
8204  name of the layout file are different or if there are packages to load.
8205  If the name of the class file is not specified, then \SpecialChar LyX
8206  will simply assume
8207  that it is the same as the name of the layout file.
8208 \end_layout
8209
8210 \begin_layout Standard
8211 When the text class has been modified to your taste, all you have to do
8212  is to copy it either to 
8213 \begin_inset Flex Code
8214 status collapsed
8215
8216 \begin_layout Plain Layout
8217 LyXDir/layouts/
8218 \end_layout
8219
8220 \end_inset
8221
8222  or to 
8223 \begin_inset Flex Code
8224 status collapsed
8225
8226 \begin_layout Plain Layout
8227 UserDir/layouts
8228 \end_layout
8229
8230 \end_inset
8231
8232 , run 
8233 \begin_inset Flex Noun
8234 status collapsed
8235
8236 \begin_layout Plain Layout
8237 Tools\SpecialChar menuseparator
8238 Reconfigure
8239 \end_layout
8240
8241 \end_inset
8242
8243 , exit \SpecialChar LyX
8244  and restart.
8245  Then your new text class should be available along with the others.
8246 \end_layout
8247
8248 \begin_layout Standard
8249 Once the layout file is installed, you can edit it and see your changes
8250  without having to reconfigure or to restart \SpecialChar LyX
8251 .
8252 \begin_inset Foot
8253 status collapsed
8254
8255 \begin_layout Plain Layout
8256 In versions of \SpecialChar LyX
8257  prior to 1.6, this was not true.
8258  As a result, editing layout files was very time consuming, since you had
8259  constantly to restart \SpecialChar LyX
8260  to see changes.
8261 \end_layout
8262
8263 \end_inset
8264
8265  You can force a reload of the current layout by using the \SpecialChar LyX
8266  function 
8267 \begin_inset Flex Noun
8268 status collapsed
8269
8270 \begin_layout Plain Layout
8271 layout-reload
8272 \end_layout
8273
8274 \end_inset
8275
8276 .
8277  There is no default binding for this function—though, of course, you can
8278  bind it to a key yourself.
8279  But you will normally use this function simply by entering it in the mini-buffe
8280 r.
8281  
8282 \end_layout
8283
8284 \begin_layout Standard
8285
8286 \emph on
8287 Warning
8288 \emph default
8289
8290 \begin_inset Flex Noun
8291 status collapsed
8292
8293 \begin_layout Plain Layout
8294 layout-reload
8295 \end_layout
8296
8297 \end_inset
8298
8299  is very much an `advanced feature'.
8300  It is 
8301 \emph on
8302 strongly
8303 \emph default
8304  recommended that you save your work before using this function.
8305  In fact, it is 
8306 \emph on
8307 strongly
8308 \emph default
8309  recommended that you not attempt to edit layout information while simultaneousl
8310 y working on a document that you care about.
8311  Use a test document.
8312  Syntax errors and the like in your layout file could cause peculiar behavior.
8313  In particular, such errors could cause \SpecialChar LyX
8314  to regard the current layout as
8315  invalid and to attempt to switch to some other layout.
8316 \begin_inset Foot
8317 status collapsed
8318
8319 \begin_layout Plain Layout
8320 Really bad syntax errors may even caused \SpecialChar LyX
8321  to exit.
8322  This is because certain sorts of errors may make \SpecialChar LyX
8323  unable to read 
8324 \emph on
8325 any
8326 \emph default
8327  layout information.
8328  Please be careful.
8329 \end_layout
8330
8331 \end_inset
8332
8333  The \SpecialChar LyX
8334  team strives to keep \SpecialChar LyX
8335  stable in such situations, but safe is better
8336  than sorry.
8337 \begin_inset Foot
8338 status collapsed
8339
8340 \begin_layout Plain Layout
8341 While we're giving advice: make regular backups.
8342  And be nice to your mother.
8343 \end_layout
8344
8345 \end_inset
8346
8347
8348 \end_layout
8349
8350 \begin_layout Subsection
8351 The Module declaration
8352 \end_layout
8353
8354 \begin_layout Standard
8355 A module must begin with a line like the following:
8356 \end_layout
8357
8358 \begin_layout LyX-Code
8359 #
8360 \backslash
8361 DeclareLyXModule[endnotes.sty]{Endnotes} 
8362 \end_layout
8363
8364 \begin_layout Standard
8365 The mandatory argument, in curly brackets, is the name of the module, as
8366  it should appear in 
8367 \begin_inset Flex Noun
8368 status collapsed
8369
8370 \begin_layout Plain Layout
8371 Document\SpecialChar menuseparator
8372 Settings\SpecialChar menuseparator
8373 Modules
8374 \end_layout
8375
8376 \end_inset
8377
8378 .
8379  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8380  packages
8381  on which the module depends.
8382  It is also possible to use the form 
8383 \begin_inset Flex Noun
8384 status collapsed
8385
8386 \begin_layout Plain Layout
8387 from->to
8388 \end_layout
8389
8390 \end_inset
8391
8392  as an optional argument, which declares that the module can only be used
8393  when there exists a conversion chain between the formats `
8394 \begin_inset Flex Code
8395 status collapsed
8396
8397 \begin_layout Plain Layout
8398 from
8399 \end_layout
8400
8401 \end_inset
8402
8403 ' and `
8404 \begin_inset Flex Code
8405 status collapsed
8406
8407 \begin_layout Plain Layout
8408 to
8409 \end_layout
8410
8411 \end_inset
8412
8413 '.
8414 \end_layout
8415
8416 \begin_layout Standard
8417 The module declaration should then be followed by lines like the following:
8418 \begin_inset Foot
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 Preferably in English if the module should be published with \SpecialChar LyX
8423 .
8424  This description will appear in the list of messages to be translated and
8425  will be thus translated with the next interface update.
8426 \end_layout
8427
8428 \end_inset
8429
8430
8431 \end_layout
8432
8433 \begin_layout LyX-Code
8434 #DescriptionBegin 
8435 \end_layout
8436
8437 \begin_layout LyX-Code
8438 #Adds an endnote command, in addition to footnotes.
8439  
8440 \end_layout
8441
8442 \begin_layout LyX-Code
8443 #You will need to add  
8444 \backslash
8445 theendnotes in TeX code where you 
8446 \end_layout
8447
8448 \begin_layout LyX-Code
8449 #want the endnotes to appear.
8450  
8451 \end_layout
8452
8453 \begin_layout LyX-Code
8454 #DescriptionEnd 
8455 \end_layout
8456
8457 \begin_layout LyX-Code
8458 #Requires: somemodule | othermodule
8459 \end_layout
8460
8461 \begin_layout LyX-Code
8462 #Excludes: badmodule
8463 \end_layout
8464
8465 \begin_layout Standard
8466 The description is used in 
8467 \begin_inset Flex Noun
8468 status collapsed
8469
8470 \begin_layout Plain Layout
8471 Document\SpecialChar menuseparator
8472 Settings\SpecialChar menuseparator
8473 Modules
8474 \end_layout
8475
8476 \end_inset
8477
8478  to provide the user with information about what the module does.
8479  The 
8480 \begin_inset Flex Code
8481 status collapsed
8482
8483 \begin_layout Plain Layout
8484 Requires
8485 \end_layout
8486
8487 \end_inset
8488
8489  line is used to identify other modules with which this one must be used;
8490  the 
8491 \begin_inset Flex Code
8492 status collapsed
8493
8494 \begin_layout Plain Layout
8495 Excludes
8496 \end_layout
8497
8498 \end_inset
8499
8500  line is used to identify modules with which this one may not be used.
8501  Both are optional, and, as shown, multiple modules should be separated
8502  with the pipe symbol: |.
8503  Note that the required modules are treated disjunctively: 
8504 \emph on
8505 at least one
8506 \emph default
8507  of the required modules must be used.
8508  Similarly, 
8509 \emph on
8510 no
8511 \emph default
8512  excluded module may be used.
8513  Note that modules are identified here by their filenames without the 
8514 \begin_inset Flex Code
8515 status collapsed
8516
8517 \begin_layout Plain Layout
8518 .module
8519 \end_layout
8520
8521 \end_inset
8522
8523  extension.
8524  So 
8525 \begin_inset Flex Code
8526 status collapsed
8527
8528 \begin_layout Plain Layout
8529 somemodule
8530 \end_layout
8531
8532 \end_inset
8533
8534  is really 
8535 \begin_inset Flex Code
8536 status collapsed
8537
8538 \begin_layout Plain Layout
8539 somemodule.module
8540 \end_layout
8541
8542 \end_inset
8543
8544 .
8545 \end_layout
8546
8547 \begin_layout Subsection
8548 The CiteEngine file declaration
8549 \end_layout
8550
8551 \begin_layout Standard
8552 A cite engine file must begin with a line like the following:
8553 \end_layout
8554
8555 \begin_layout LyX-Code
8556 #
8557 \backslash
8558 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8559 \end_layout
8560
8561 \begin_layout Standard
8562 The mandatory argument, in curly brackets, is the name of the cite style,
8563  as it should appear in 
8564 \begin_inset Flex Noun
8565 status collapsed
8566
8567 \begin_layout Plain Layout
8568 Document\SpecialChar menuseparator
8569 Settings\SpecialChar menuseparator
8570 Bibliography
8571 \end_layout
8572
8573 \end_inset
8574
8575 .
8576  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8577  packages
8578  on which the cite engine depends.
8579 \end_layout
8580
8581 \begin_layout Standard
8582 The cite engine declaration should then be followed by lines like the following:
8583 \begin_inset Foot
8584 status collapsed
8585
8586 \begin_layout Plain Layout
8587 Preferably in English if the module should be published with \SpecialChar LyX
8588 .
8589  This description will appear in the list of messages to be translated and
8590  will be thus translated with the next interface update.
8591 \end_layout
8592
8593 \end_inset
8594
8595
8596 \end_layout
8597
8598 \begin_layout LyX-Code
8599 # DescriptionBegin
8600 \end_layout
8601
8602 \begin_layout LyX-Code
8603 #   Biblatex supports many author-year and numerical styles.
8604 \end_layout
8605
8606 \begin_layout LyX-Code
8607 #   It is mainly aimed at the Humanities.
8608  It is highly
8609 \end_layout
8610
8611 \begin_layout LyX-Code
8612 #   customizable, fully localized and provides many features
8613 \end_layout
8614
8615 \begin_layout LyX-Code
8616 #   that are not possible with BibTeX.
8617  The use of 'biber' as
8618 \end_layout
8619
8620 \begin_layout LyX-Code
8621 #   bibliography processor is advised.
8622 \end_layout
8623
8624 \begin_layout LyX-Code
8625 # DescriptionEnd
8626 \end_layout
8627
8628 \begin_layout Standard
8629 The description is used in 
8630 \begin_inset Flex Noun
8631 status collapsed
8632
8633 \begin_layout Plain Layout
8634 Document\SpecialChar menuseparator
8635 Settings\SpecialChar menuseparator
8636 Bibliography
8637 \end_layout
8638
8639 \end_inset
8640
8641  to provide the user with information about the cite engine.
8642 \end_layout
8643
8644 \begin_layout Subsection
8645 Format number
8646 \end_layout
8647
8648 \begin_layout Standard
8649 The first non-comment line of any layout file, included file, or module
8650  
8651 \emph on
8652 must
8653 \emph default
8654  contain the file format number:
8655 \end_layout
8656
8657 \begin_layout Description
8658 \begin_inset Flex Code
8659 status collapsed
8660
8661 \begin_layout Plain Layout
8662 Format
8663 \end_layout
8664
8665 \end_inset
8666
8667  [
8668 \begin_inset Flex Code
8669 status collapsed
8670
8671 \begin_layout Plain Layout
8672 int
8673 \end_layout
8674
8675 \end_inset
8676
8677 ] The format number of the layout file.
8678 \end_layout
8679
8680 \begin_layout Standard
8681 This tag was introduced with \SpecialChar LyX
8682
8683 \begin_inset space ~
8684 \end_inset
8685
8686 1.4.0.
8687  Layout files from older \SpecialChar LyX
8688  versions do not have an explicit file format and
8689  are considered to have 
8690 \begin_inset Flex Code
8691 status collapsed
8692
8693 \begin_layout Plain Layout
8694 Format
8695 \begin_inset space ~
8696 \end_inset
8697
8698 1
8699 \end_layout
8700
8701 \end_inset
8702
8703 .
8704  The format for the present version of \SpecialChar LyX
8705  is format 60.
8706  But each version of \SpecialChar LyX
8707  is capable of reading earlier versions' layout files,
8708  just as they are capable of reading files produced by earlier versions
8709  of \SpecialChar LyX
8710 .
8711  There is, however, no provision for converting to earlier formats.
8712 \end_layout
8713
8714 \begin_layout Subsection
8715 \begin_inset CommandInset label
8716 LatexCommand label
8717 name "subsec:General-text-class"
8718
8719 \end_inset
8720
8721 General text class parameters
8722 \end_layout
8723
8724 \begin_layout Standard
8725 These are general parameters that govern the behavior of an entire document
8726  class.
8727  (This does 
8728 \emph on
8729 not
8730 \emph default
8731  mean that they must appear in 
8732 \begin_inset Flex Code
8733 status collapsed
8734
8735 \begin_layout Plain Layout
8736 .layout
8737 \end_layout
8738
8739 \end_inset
8740
8741  files rather than in modules.
8742  A module can contain any layout tag.)
8743 \end_layout
8744
8745 \begin_layout Description
8746 \begin_inset Flex Code
8747 status collapsed
8748
8749 \begin_layout Plain Layout
8750 AddToHTMLPreamble
8751 \end_layout
8752
8753 \end_inset
8754
8755  Adds information that will be output in the 
8756 \begin_inset Flex Code
8757 status collapsed
8758
8759 \begin_layout Plain Layout
8760 <head>
8761 \end_layout
8762
8763 \end_inset
8764
8765  block when the document is output to XHTML.
8766  Typically, this would be used to output CSS style information, but it can
8767  be used for anything that can appear in 
8768 \begin_inset Flex Code
8769 status collapsed
8770
8771 \begin_layout Plain Layout
8772 <head>
8773 \end_layout
8774
8775 \end_inset
8776
8777 .
8778  Must end with 
8779 \begin_inset Quotes eld
8780 \end_inset
8781
8782
8783 \begin_inset Flex Code
8784 status collapsed
8785
8786 \begin_layout Plain Layout
8787 EndPreamble
8788 \end_layout
8789
8790 \end_inset
8791
8792
8793 \begin_inset Quotes erd
8794 \end_inset
8795
8796 .
8797 \end_layout
8798
8799 \begin_layout Description
8800 \begin_inset Flex Code
8801 status collapsed
8802
8803 \begin_layout Plain Layout
8804 AddToPreamble
8805 \end_layout
8806
8807 \end_inset
8808
8809  Adds information to the document preamble.
8810  Must end with
8811 \begin_inset Newline newline
8812 \end_inset
8813
8814
8815 \begin_inset Quotes eld
8816 \end_inset
8817
8818
8819 \begin_inset Flex Code
8820 status collapsed
8821
8822 \begin_layout Plain Layout
8823 EndPreamble
8824 \end_layout
8825
8826 \end_inset
8827
8828
8829 \begin_inset Quotes erd
8830 \end_inset
8831
8832 .
8833 \end_layout
8834
8835 \begin_layout Description
8836 \begin_inset Flex Code
8837 status collapsed
8838
8839 \begin_layout Plain Layout
8840 CiteEngine <engine>
8841 \end_layout
8842
8843 \end_inset
8844
8845  Defines the possibilities for displaying citation references.
8846  See 
8847 \begin_inset CommandInset ref
8848 LatexCommand ref
8849 reference "subsec:Citation-engine-description"
8850 plural "false"
8851 caps "false"
8852 noprefix "false"
8853
8854 \end_inset
8855
8856  for details.
8857  Must end with 
8858 \begin_inset Quotes eld
8859 \end_inset
8860
8861
8862 \begin_inset Flex Code
8863 status collapsed
8864
8865 \begin_layout Plain Layout
8866 End
8867 \end_layout
8868
8869 \end_inset
8870
8871
8872 \begin_inset Quotes erd
8873 \end_inset
8874
8875 .
8876  Primarily used in cite engine files (see 
8877 \begin_inset CommandInset ref
8878 LatexCommand ref
8879 reference "subsec:Cite-Engine-Files"
8880 plural "false"
8881 caps "false"
8882 noprefix "false"
8883
8884 \end_inset
8885
8886 ).
8887 \end_layout
8888
8889 \begin_layout Description
8890 \begin_inset Flex Code
8891 status collapsed
8892
8893 \begin_layout Plain Layout
8894 CiteFormat
8895 \end_layout
8896
8897 \end_inset
8898
8899  Defines formats for use in the display of bibliographic information.
8900  See 
8901 \begin_inset CommandInset ref
8902 LatexCommand ref
8903 reference "subsec:Citation-format-description"
8904
8905 \end_inset
8906
8907  for details.
8908  Must end with 
8909 \begin_inset Quotes eld
8910 \end_inset
8911
8912
8913 \begin_inset Flex Code
8914 status collapsed
8915
8916 \begin_layout Plain Layout
8917 End
8918 \end_layout
8919
8920 \end_inset
8921
8922
8923 \begin_inset Quotes erd
8924 \end_inset
8925
8926 .
8927  Primarily used in cite engine files (see 
8928 \begin_inset CommandInset ref
8929 LatexCommand ref
8930 reference "subsec:Cite-Engine-Files"
8931 plural "false"
8932 caps "false"
8933 noprefix "false"
8934
8935 \end_inset
8936
8937 ).
8938 \end_layout
8939
8940 \begin_layout Description
8941 \begin_inset Flex Code
8942 status collapsed
8943
8944 \begin_layout Plain Layout
8945 CiteFramework
8946 \end_layout
8947
8948 \end_inset
8949
8950  [
8951 \begin_inset Flex Code
8952 status collapsed
8953
8954 \begin_layout Plain Layout
8955
8956 \emph on
8957 bibtex
8958 \end_layout
8959
8960 \end_inset
8961
8962 ,
8963 \begin_inset Flex Code
8964 status collapsed
8965
8966 \begin_layout Plain Layout
8967 biblatex
8968 \end_layout
8969
8970 \end_inset
8971
8972 ] Determines whether 
8973 \family sans
8974 Biblatex
8975 \family default
8976  or Bib\SpecialChar TeX
8977  is used to generate a Bibliography.
8978  Primarily used in cite engine files (see 
8979 \begin_inset CommandInset ref
8980 LatexCommand ref
8981 reference "subsec:Cite-Engine-Files"
8982 plural "false"
8983 caps "false"
8984 noprefix "false"
8985
8986 \end_inset
8987
8988 ).
8989 \end_layout
8990
8991 \begin_layout Description
8992 \begin_inset Flex Code
8993 status collapsed
8994
8995 \begin_layout Plain Layout
8996 ClassOptions
8997 \end_layout
8998
8999 \end_inset
9000
9001  Describes various global options supported by the document class.
9002  See 
9003 \begin_inset CommandInset ref
9004 LatexCommand ref
9005 reference "subsec:ClassOptions"
9006
9007 \end_inset
9008
9009  for a description.
9010  Must end with 
9011 \begin_inset Quotes eld
9012 \end_inset
9013
9014
9015 \begin_inset Flex Code
9016 status collapsed
9017
9018 \begin_layout Plain Layout
9019 End
9020 \end_layout
9021
9022 \end_inset
9023
9024
9025 \begin_inset Quotes erd
9026 \end_inset
9027
9028 .
9029 \end_layout
9030
9031 \begin_layout Description
9032 \begin_inset Flex Code
9033 status collapsed
9034
9035 \begin_layout Plain Layout
9036 Columns
9037 \end_layout
9038
9039 \end_inset
9040
9041  [
9042 \begin_inset Flex Code
9043 status collapsed
9044
9045 \begin_layout Plain Layout
9046
9047 \emph on
9048 1
9049 \end_layout
9050
9051 \end_inset
9052
9053 ,
9054 \begin_inset space \thinspace{}
9055 \end_inset
9056
9057
9058 \begin_inset Flex Code
9059 status collapsed
9060
9061 \begin_layout Plain Layout
9062 2
9063 \end_layout
9064
9065 \end_inset
9066
9067 ] Whether the class should 
9068 \emph on
9069 default
9070 \emph default
9071  to having one or two columns.
9072  Can be changed in the 
9073 \begin_inset Flex Noun
9074 status collapsed
9075
9076 \begin_layout Plain Layout
9077 Document\SpecialChar menuseparator
9078 Settings
9079 \end_layout
9080
9081 \end_inset
9082
9083  dialog.
9084 \end_layout
9085
9086 \begin_layout Description
9087 \begin_inset Flex Code
9088 status collapsed
9089
9090 \begin_layout Plain Layout
9091 Counter
9092 \end_layout
9093
9094 \end_inset
9095
9096  [
9097 \begin_inset Flex Code
9098 status collapsed
9099
9100 \begin_layout Plain Layout
9101 string
9102 \end_layout
9103
9104 \end_inset
9105
9106 ] This sequence defines the properties for a counter.
9107  If the counter does not yet exist, it is created; if it does exist, it
9108  is modified.
9109  Must end with 
9110 \begin_inset Quotes eld
9111 \end_inset
9112
9113
9114 \begin_inset Flex Code
9115 status collapsed
9116
9117 \begin_layout Plain Layout
9118 End
9119 \end_layout
9120
9121 \end_inset
9122
9123
9124 \begin_inset Quotes erd
9125 \end_inset
9126
9127 .
9128 \begin_inset Newline newline
9129 \end_inset
9130
9131 See 
9132 \begin_inset CommandInset ref
9133 LatexCommand ref
9134 reference "subsec:Counters"
9135
9136 \end_inset
9137
9138  for details on counters.
9139 \end_layout
9140
9141 \begin_layout Description
9142 \begin_inset Flex Code
9143 status collapsed
9144
9145 \begin_layout Plain Layout
9146 DefaultFont
9147 \end_layout
9148
9149 \end_inset
9150
9151  Sets the default font used to display the document.
9152  See 
9153 \begin_inset CommandInset ref
9154 LatexCommand ref
9155 reference "subsec:Font-description"
9156
9157 \end_inset
9158
9159  for how to declare fonts.
9160  Must end with 
9161 \begin_inset Quotes eld
9162 \end_inset
9163
9164
9165 \begin_inset Flex Code
9166 status collapsed
9167
9168 \begin_layout Plain Layout
9169 EndFont
9170 \end_layout
9171
9172 \end_inset
9173
9174
9175 \begin_inset Quotes erd
9176 \end_inset
9177
9178 .
9179 \end_layout
9180
9181 \begin_layout Description
9182 \begin_inset Flex Code
9183 status collapsed
9184
9185 \begin_layout Plain Layout
9186 DefaultModule
9187 \end_layout
9188
9189 \end_inset
9190
9191  [
9192 \begin_inset Flex Code
9193 status collapsed
9194
9195 \begin_layout Plain Layout
9196 <module>
9197 \end_layout
9198
9199 \end_inset
9200
9201 ] Specifies a module to be included by default with this document class.
9202  The module is specified as filename without the 
9203 \begin_inset Flex Code
9204 status collapsed
9205
9206 \begin_layout Plain Layout
9207 .module
9208 \end_layout
9209
9210 \end_inset
9211
9212  extension.
9213  The user can still remove the module, but it will be active at the outset.
9214  (This applies only when new files are created, or when this class is chosen
9215  for an existing document.)
9216 \end_layout
9217
9218 \begin_layout Description
9219 \begin_inset Flex Code
9220 status collapsed
9221
9222 \begin_layout Plain Layout
9223 DefaultStyle
9224 \end_layout
9225
9226 \end_inset
9227
9228  [
9229 \begin_inset Flex Code
9230 status collapsed
9231
9232 \begin_layout Plain Layout
9233 <style>
9234 \end_layout
9235
9236 \end_inset
9237
9238 ] This is the style that will be assigned to new paragraphs, usually 
9239 \begin_inset Flex Noun
9240 status collapsed
9241
9242 \begin_layout Plain Layout
9243 Standard
9244 \end_layout
9245
9246 \end_inset
9247
9248 .
9249  This will default to the first defined style if not given, but you are
9250  encouraged to use this directive.
9251 \end_layout
9252
9253 \begin_layout Description
9254 \begin_inset Flex Code
9255 status collapsed
9256
9257 \begin_layout Plain Layout
9258 ExcludesModule
9259 \end_layout
9260
9261 \end_inset
9262
9263  [
9264 \begin_inset Flex Code
9265 status collapsed
9266
9267 \begin_layout Plain Layout
9268 <module>
9269 \end_layout
9270
9271 \end_inset
9272
9273 ] This tag indicates that the module (which is specified by filename without
9274  the 
9275 \begin_inset Flex Code
9276 status collapsed
9277
9278 \begin_layout Plain Layout
9279 .module
9280 \end_layout
9281
9282 \end_inset
9283
9284  extension) cannot be used with this document class.
9285  This might be used in a journal-specific layout file to prevent, say, the
9286  use of the 
9287 \begin_inset Flex Code
9288 status collapsed
9289
9290 \begin_layout Plain Layout
9291 theorems-sec
9292 \end_layout
9293
9294 \end_inset
9295
9296  module that numbers theorems by section.
9297  This tag may 
9298 \emph on
9299 not
9300 \emph default
9301  be used in a module.
9302  Modules have their own way of excluding other modules (see 
9303 \begin_inset CommandInset ref
9304 LatexCommand ref
9305 reference "subsec:Layout-modules"
9306
9307 \end_inset
9308
9309 ).
9310 \end_layout
9311
9312 \begin_layout Description
9313 \begin_inset Flex Code
9314 status collapsed
9315
9316 \begin_layout Plain Layout
9317 Float
9318 \end_layout
9319
9320 \end_inset
9321
9322  Defines a new float.
9323  See 
9324 \begin_inset CommandInset ref
9325 LatexCommand ref
9326 reference "subsec:Floats"
9327
9328 \end_inset
9329
9330  for details.
9331  Must end with 
9332 \begin_inset Quotes eld
9333 \end_inset
9334
9335
9336 \begin_inset Flex Code
9337 status collapsed
9338
9339 \begin_layout Plain Layout
9340 End
9341 \end_layout
9342
9343 \end_inset
9344
9345
9346 \begin_inset Quotes erd
9347 \end_inset
9348
9349 .
9350 \end_layout
9351
9352 \begin_layout Description
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357 HTMLPreamble
9358 \end_layout
9359
9360 \end_inset
9361
9362  Sets the information that will be output in the 
9363 \begin_inset Flex Code
9364 status collapsed
9365
9366 \begin_layout Plain Layout
9367 <head>
9368 \end_layout
9369
9370 \end_inset
9371
9372  block when this document class is output to XHTML.
9373  Note that this will completely override any prior 
9374 \begin_inset Flex Code
9375 status collapsed
9376
9377 \begin_layout Plain Layout
9378 HTMLPreamble
9379 \end_layout
9380
9381 \end_inset
9382
9383  or 
9384 \begin_inset Flex Code
9385 status collapsed
9386
9387 \begin_layout Plain Layout
9388 AddToHTMLPreamble
9389 \end_layout
9390
9391 \end_inset
9392
9393  declarations.
9394  (Use
9395 \begin_inset Newline newline
9396 \end_inset
9397
9398
9399 \begin_inset Flex Code
9400 status collapsed
9401
9402 \begin_layout Plain Layout
9403 AddToHTMLPreamble
9404 \end_layout
9405
9406 \end_inset
9407
9408  if you just want to add material to the preamble.) Must end with 
9409 \begin_inset Quotes eld
9410 \end_inset
9411
9412
9413 \begin_inset Flex Code
9414 status collapsed
9415
9416 \begin_layout Plain Layout
9417 EndPreamble
9418 \end_layout
9419
9420 \end_inset
9421
9422
9423 \begin_inset Quotes erd
9424 \end_inset
9425
9426 .
9427 \end_layout
9428
9429 \begin_layout Description
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 HTMLTOCSection
9435 \end_layout
9436
9437 \end_inset
9438
9439  [
9440 \begin_inset Flex Code
9441 status collapsed
9442
9443 \begin_layout Plain Layout
9444 <style>
9445 \end_layout
9446
9447 \end_inset
9448
9449 ] The style to use for the table of contents, bibliography, and so forth,
9450  when the document is output to HTML.
9451  For articles, this should normally be 
9452 \begin_inset Flex Code
9453 status collapsed
9454
9455 \begin_layout Plain Layout
9456 Section
9457 \end_layout
9458
9459 \end_inset
9460
9461 ; for books 
9462 \begin_inset Flex Code
9463 status collapsed
9464
9465 \begin_layout Plain Layout
9466 Chapter
9467 \end_layout
9468
9469 \end_inset
9470
9471 .
9472  If it is not given, then \SpecialChar LyX
9473  will attempt to figure out which layout to use.
9474 \end_layout
9475
9476 \begin_layout Description
9477 \begin_inset Flex Code
9478 status collapsed
9479
9480 \begin_layout Plain Layout
9481 IfCounter
9482 \end_layout
9483
9484 \end_inset
9485
9486  [
9487 \begin_inset Flex Code
9488 status collapsed
9489
9490 \begin_layout Plain Layout
9491 <counter>
9492 \end_layout
9493
9494 \end_inset
9495
9496 ] Modifies the properties of the given counter.
9497  If the counter does not exist, the statement is ignored.
9498  Must end with 
9499 \begin_inset Quotes eld
9500 \end_inset
9501
9502
9503 \begin_inset Flex Code
9504 status collapsed
9505
9506 \begin_layout Plain Layout
9507 End
9508 \end_layout
9509
9510 \end_inset
9511
9512
9513 \begin_inset Quotes erd
9514 \end_inset
9515
9516 .
9517 \begin_inset Newline newline
9518 \end_inset
9519
9520 See 
9521 \begin_inset CommandInset ref
9522 LatexCommand ref
9523 reference "subsec:Counters"
9524
9525 \end_inset
9526
9527  for details on counters.
9528 \end_layout
9529
9530 \begin_layout Description
9531 \begin_inset Flex Code
9532 status collapsed
9533
9534 \begin_layout Plain Layout
9535 Input
9536 \end_layout
9537
9538 \end_inset
9539
9540  [
9541 \begin_inset Flex Code
9542 status collapsed
9543
9544 \begin_layout Plain Layout
9545 <filename>
9546 \end_layout
9547
9548 \end_inset
9549
9550 ] This allows you to include another layout definition file within yours
9551  to avoid duplicating commands.
9552  Common examples are the standard layout files, for example, 
9553 \begin_inset Flex Code
9554 status collapsed
9555
9556 \begin_layout Plain Layout
9557 stdclass.inc
9558 \end_layout
9559
9560 \end_inset
9561
9562 , which contains most of the basic layouts.
9563 \end_layout
9564
9565 \begin_layout Description
9566 \begin_inset Flex Code
9567 status collapsed
9568
9569 \begin_layout Plain Layout
9570 InsetLayout
9571 \end_layout
9572
9573 \end_inset
9574
9575  [
9576 \begin_inset Flex Code
9577 status collapsed
9578
9579 \begin_layout Plain Layout
9580 <type>
9581 \end_layout
9582
9583 \end_inset
9584
9585 ] This section (re-)defines the layout of an inset.
9586  It can be applied to an existing inset or to a new, user-defined inset,
9587  e.g., a new character style.
9588  Must end with 
9589 \begin_inset Quotes eld
9590 \end_inset
9591
9592
9593 \begin_inset Flex Code
9594 status collapsed
9595
9596 \begin_layout Plain Layout
9597 End
9598 \end_layout
9599
9600 \end_inset
9601
9602
9603 \begin_inset Quotes erd
9604 \end_inset
9605
9606 .
9607 \begin_inset Newline newline
9608 \end_inset
9609
9610 See 
9611 \begin_inset CommandInset ref
9612 LatexCommand ref
9613 reference "subsec:Flex-insets-and"
9614
9615 \end_inset
9616
9617  for more information.
9618  
9619 \end_layout
9620
9621 \begin_layout Description
9622 \begin_inset Flex Code
9623 status collapsed
9624
9625 \begin_layout Plain Layout
9626 LeftMargin
9627 \end_layout
9628
9629 \end_inset
9630
9631  [
9632 \begin_inset Flex Code
9633 status collapsed
9634
9635 \begin_layout Plain Layout
9636 string
9637 \end_layout
9638
9639 \end_inset
9640
9641 ] A string that indicates the width of the left margin on the screen, for
9642  example, 
9643 \begin_inset Quotes eld
9644 \end_inset
9645
9646
9647 \begin_inset Flex Code
9648 status collapsed
9649
9650 \begin_layout Plain Layout
9651 MMMMM
9652 \end_layout
9653
9654 \end_inset
9655
9656
9657 \begin_inset Quotes erd
9658 \end_inset
9659
9660 .
9661  (Note that this is not a `length', like 
9662 \begin_inset Quotes eld
9663 \end_inset
9664
9665 2ex
9666 \begin_inset Quotes erd
9667 \end_inset
9668
9669 .)
9670 \end_layout
9671
9672 \begin_layout Description
9673 \begin_inset Flex Code
9674 status collapsed
9675
9676 \begin_layout Plain Layout
9677 MaxCiteNames
9678 \end_layout
9679
9680 \end_inset
9681
9682  [
9683 \begin_inset Flex Code
9684 status collapsed
9685
9686 \begin_layout Plain Layout
9687 integer
9688 \end_layout
9689
9690 \end_inset
9691
9692 ] An integer that determines the maximal number of names displayed in an
9693  author-year citation before the citation switches to 
9694 \begin_inset Quotes eld
9695 \end_inset
9696
9697 FirstAuthor et al.
9698 \begin_inset Quotes erd
9699 \end_inset
9700
9701 .
9702  Primarily used in cite engine files (see 
9703 \begin_inset CommandInset ref
9704 LatexCommand ref
9705 reference "subsec:Cite-Engine-Files"
9706 plural "false"
9707 caps "false"
9708 noprefix "false"
9709
9710 \end_inset
9711
9712 ).
9713 \end_layout
9714
9715 \begin_layout Description
9716 \begin_inset Flex Code
9717 status collapsed
9718
9719 \begin_layout Plain Layout
9720 ModifyStyle
9721 \end_layout
9722
9723 \end_inset
9724
9725  [
9726 \begin_inset Flex Code
9727 status collapsed
9728
9729 \begin_layout Plain Layout
9730 <style>
9731 \end_layout
9732
9733 \end_inset
9734
9735 ] Modifies the properties of the given paragraph style.
9736  If the style does not exist, this section is ignored.
9737  Must end with 
9738 \begin_inset Quotes eld
9739 \end_inset
9740
9741
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 End
9747 \end_layout
9748
9749 \end_inset
9750
9751
9752 \begin_inset Quotes erd
9753 \end_inset
9754
9755 .
9756 \end_layout
9757
9758 \begin_layout Description
9759 \begin_inset Flex Code
9760 status collapsed
9761
9762 \begin_layout Plain Layout
9763 NoCounter
9764 \end_layout
9765
9766 \end_inset
9767
9768  [
9769 \begin_inset Flex Code
9770 status collapsed
9771
9772 \begin_layout Plain Layout
9773 <counter>
9774 \end_layout
9775
9776 \end_inset
9777
9778 ] Deletes an existing counter, usually one defined in an included file.
9779 \end_layout
9780
9781 \begin_layout Description
9782 \begin_inset Flex Code
9783 status collapsed
9784
9785 \begin_layout Plain Layout
9786 NoFloat
9787 \end_layout
9788
9789 \end_inset
9790
9791  [
9792 \begin_inset Flex Code
9793 status collapsed
9794
9795 \begin_layout Plain Layout
9796 <float>
9797 \end_layout
9798
9799 \end_inset
9800
9801 ] Deletes an existing float.
9802  This is particularly useful when you want to suppress a float that has
9803  been defined in an input file.
9804 \end_layout
9805
9806 \begin_layout Description
9807 \begin_inset Flex Code
9808 status collapsed
9809
9810 \begin_layout Plain Layout
9811 NoStyle
9812 \end_layout
9813
9814 \end_inset
9815
9816  [
9817 \begin_inset Flex Code
9818 status collapsed
9819
9820 \begin_layout Plain Layout
9821 <style>
9822 \end_layout
9823
9824 \end_inset
9825
9826 ] Deletes an existing style.
9827 \end_layout
9828
9829 \begin_layout Description
9830 \begin_inset Flex Code
9831 status collapsed
9832
9833 \begin_layout Plain Layout
9834 OutlinerName
9835 \end_layout
9836
9837 \end_inset
9838
9839  [
9840 \begin_inset Flex Code
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844 <type>
9845 \end_layout
9846
9847 \end_inset
9848
9849 ] [
9850 \begin_inset Flex Code
9851 status collapsed
9852
9853 \begin_layout Plain Layout
9854 <string>
9855 \end_layout
9856
9857 \end_inset
9858
9859 ] Define a new table of contents with type 
9860 \begin_inset Flex Code
9861 status collapsed
9862
9863 \begin_layout Plain Layout
9864 <type>
9865 \end_layout
9866
9867 \end_inset
9868
9869  and name 
9870 \begin_inset Flex Code
9871 status collapsed
9872
9873 \begin_layout Plain Layout
9874 <string>
9875 \end_layout
9876
9877 \end_inset
9878
9879 .
9880  See also the AddToToc commands.
9881 \end_layout
9882
9883 \begin_layout Description
9884 \begin_inset Flex Code
9885 status collapsed
9886
9887 \begin_layout Plain Layout
9888 OutputFormat
9889 \end_layout
9890
9891 \end_inset
9892
9893  [
9894 \begin_inset Flex Code
9895 status collapsed
9896
9897 \begin_layout Plain Layout
9898 <format>
9899 \end_layout
9900
9901 \end_inset
9902
9903 ] The file format (as defined in the \SpecialChar LyX
9904  preferences) produced by this document
9905  class.
9906  It is mainly useful when 
9907 \begin_inset Flex Code
9908 status collapsed
9909
9910 \begin_layout Plain Layout
9911 OutputType
9912 \end_layout
9913
9914 \end_inset
9915
9916  is 
9917 \begin_inset Flex Code
9918 status collapsed
9919
9920 \begin_layout Plain Layout
9921 literate
9922 \end_layout
9923
9924 \end_inset
9925
9926  and one wants to define a new type of literate document.
9927  The format is reset to 
9928 \begin_inset Quotes eld
9929 \end_inset
9930
9931
9932 \begin_inset Flex Code
9933 status collapsed
9934
9935 \begin_layout Plain Layout
9936 docbook
9937 \end_layout
9938
9939 \end_inset
9940
9941
9942 \begin_inset Quotes erd
9943 \end_inset
9944
9945  or 
9946 \begin_inset Quotes eld
9947 \end_inset
9948
9949
9950 \begin_inset Flex Code
9951 status collapsed
9952
9953 \begin_layout Plain Layout
9954 latex
9955 \end_layout
9956
9957 \end_inset
9958
9959
9960 \begin_inset Quotes erd
9961 \end_inset
9962
9963  when the corresponding 
9964 \begin_inset Flex Code
9965 status collapsed
9966
9967 \begin_layout Plain Layout
9968 OutputType
9969 \end_layout
9970
9971 \end_inset
9972
9973  parameter is encountered.
9974 \end_layout
9975
9976 \begin_layout Description
9977 \begin_inset Flex Code
9978 status collapsed
9979
9980 \begin_layout Plain Layout
9981 OutputType
9982 \end_layout
9983
9984 \end_inset
9985
9986  [
9987 \begin_inset Flex Code
9988 status collapsed
9989
9990 \begin_layout Plain Layout
9991
9992 \emph on
9993 lat
9994 \emph default
9995 ex
9996 \end_layout
9997
9998 \end_inset
9999
10000
10001 \begin_inset Flex Code
10002 status collapsed
10003
10004 \begin_layout Plain Layout
10005 docbook
10006 \end_layout
10007
10008 \end_inset
10009
10010
10011 \begin_inset Flex Code
10012 status collapsed
10013
10014 \begin_layout Plain Layout
10015 literate
10016 \end_layout
10017
10018 \end_inset
10019
10020 ] Specifies what sort of output documents using this class will produce.
10021 \end_layout
10022
10023 \begin_layout Description
10024 \begin_inset Flex Code
10025 status collapsed
10026
10027 \begin_layout Plain Layout
10028 PackageOptions
10029 \end_layout
10030
10031 \end_inset
10032
10033  [
10034 \begin_inset Flex Code
10035 status collapsed
10036
10037 \begin_layout Plain Layout
10038 string
10039 \end_layout
10040
10041 \end_inset
10042
10043  
10044 \begin_inset Flex Code
10045 status collapsed
10046
10047 \begin_layout Plain Layout
10048 string
10049 \end_layout
10050
10051 \end_inset
10052
10053 ] Specifies options, given in the second string, for the package named by
10054  the first string.
10055  For example, 
10056 \begin_inset Quotes eld
10057 \end_inset
10058
10059
10060 \begin_inset Flex Code
10061 status collapsed
10062
10063 \begin_layout Plain Layout
10064 PackageOptions natbib square
10065 \end_layout
10066
10067 \end_inset
10068
10069
10070 \begin_inset Quotes erd
10071 \end_inset
10072
10073  will cause 
10074 \begin_inset Flex Code
10075 status collapsed
10076
10077 \begin_layout Plain Layout
10078 natbib
10079 \end_layout
10080
10081 \end_inset
10082
10083  to be loaded with the 
10084 \begin_inset Flex Code
10085 status collapsed
10086
10087 \begin_layout Plain Layout
10088 square
10089 \end_layout
10090
10091 \end_inset
10092
10093  option.
10094  (For \SpecialChar TeX
10095 perts, this causes \SpecialChar LyX
10096  to output: 
10097 \begin_inset Flex Code
10098 status collapsed
10099
10100 \begin_layout Plain Layout
10101
10102 \backslash
10103 PassOptionsToPackage{natbib}{square}
10104 \end_layout
10105
10106 \end_inset
10107
10108  prior to loading 
10109 \begin_inset Flex Code
10110 status collapsed
10111
10112 \begin_layout Plain Layout
10113 natbib
10114 \end_layout
10115
10116 \end_inset
10117
10118 .)
10119 \end_layout
10120
10121 \begin_layout Description
10122 \begin_inset Flex Code
10123 status collapsed
10124
10125 \begin_layout Plain Layout
10126 PageStyle
10127 \end_layout
10128
10129 \end_inset
10130
10131  [
10132 \begin_inset Flex Code
10133 status collapsed
10134
10135 \begin_layout Plain Layout
10136
10137 \emph on
10138 plain
10139 \end_layout
10140
10141 \end_inset
10142
10143
10144 \begin_inset Flex Code
10145 status collapsed
10146
10147 \begin_layout Plain Layout
10148 empty
10149 \end_layout
10150
10151 \end_inset
10152
10153
10154 \begin_inset Flex Code
10155 status collapsed
10156
10157 \begin_layout Plain Layout
10158 headings
10159 \end_layout
10160
10161 \end_inset
10162
10163 ] The default pagestyle.
10164  Can be changed in the 
10165 \begin_inset Flex Noun
10166 status collapsed
10167
10168 \begin_layout Plain Layout
10169 Document\SpecialChar menuseparator
10170 Settings
10171 \end_layout
10172
10173 \end_inset
10174
10175  dialog.
10176 \end_layout
10177
10178 \begin_layout Description
10179 \begin_inset Flex Code
10180 status collapsed
10181
10182 \begin_layout Plain Layout
10183 Preamble
10184 \end_layout
10185
10186 \end_inset
10187
10188  Sets the preamble for the \SpecialChar LaTeX
10189  document.
10190  Note that this will completely override any prior 
10191 \begin_inset Flex Code
10192 status collapsed
10193
10194 \begin_layout Plain Layout
10195 Preamble
10196 \end_layout
10197
10198 \end_inset
10199
10200  or 
10201 \begin_inset Flex Code
10202 status collapsed
10203
10204 \begin_layout Plain Layout
10205 AddToPreamble
10206 \end_layout
10207
10208 \end_inset
10209
10210  declarations.
10211  (Use 
10212 \begin_inset Flex Code
10213 status collapsed
10214
10215 \begin_layout Plain Layout
10216 AddToPreamble
10217 \end_layout
10218
10219 \end_inset
10220
10221  if you just want to add material to the preamble.) Must end with 
10222 \begin_inset Quotes eld
10223 \end_inset
10224
10225
10226 \begin_inset Flex Code
10227 status collapsed
10228
10229 \begin_layout Plain Layout
10230 EndPreamble
10231 \end_layout
10232
10233 \end_inset
10234
10235
10236 \begin_inset Quotes erd
10237 \end_inset
10238
10239 .
10240 \end_layout
10241
10242 \begin_layout Description
10243 \begin_inset Flex Code
10244 status collapsed
10245
10246 \begin_layout Plain Layout
10247 Provides
10248 \end_layout
10249
10250 \end_inset
10251
10252  [
10253 \begin_inset Flex Code
10254 status collapsed
10255
10256 \begin_layout Plain Layout
10257 string
10258 \end_layout
10259
10260 \end_inset
10261
10262 ] [
10263 \begin_inset Flex Code
10264 status collapsed
10265
10266 \begin_layout Plain Layout
10267
10268 \emph on
10269 0
10270 \end_layout
10271
10272 \end_inset
10273
10274 ,
10275 \begin_inset space \thinspace{}
10276 \end_inset
10277
10278
10279 \begin_inset Flex Code
10280 status collapsed
10281
10282 \begin_layout Plain Layout
10283 1
10284 \end_layout
10285
10286 \end_inset
10287
10288 ] Whether the class already provides the feature 
10289 \begin_inset Flex Code
10290 status collapsed
10291
10292 \begin_layout Plain Layout
10293 string
10294 \end_layout
10295
10296 \end_inset
10297
10298 .
10299  A feature is in general the name of a package (e.
10300 \begin_inset space \thinspace{}
10301 \end_inset
10302
10303 g.
10304 \begin_inset space \space{}
10305 \end_inset
10306
10307
10308 \begin_inset Flex Code
10309 status collapsed
10310
10311 \begin_layout Plain Layout
10312 amsmath
10313 \end_layout
10314
10315 \end_inset
10316
10317  or 
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 makeidx
10323 \end_layout
10324
10325 \end_inset
10326
10327 ) or a macro (e.
10328 \begin_inset space \thinspace{}
10329 \end_inset
10330
10331 g.
10332 \begin_inset space \space{}
10333 \end_inset
10334
10335
10336 \begin_inset Flex Code
10337 status collapsed
10338
10339 \begin_layout Plain Layout
10340 url
10341 \end_layout
10342
10343 \end_inset
10344
10345  or 
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350 boldsymbol
10351 \end_layout
10352
10353 \end_inset
10354
10355 ).
10356  See 
10357 \begin_inset CommandInset ref
10358 LatexCommand ref
10359 reference "chap:List-of-functions"
10360
10361 \end_inset
10362
10363  for the list of features.
10364 \end_layout
10365
10366 \begin_layout Description
10367 \begin_inset Flex Code
10368 status collapsed
10369
10370 \begin_layout Plain Layout
10371 ProvidesModule
10372 \end_layout
10373
10374 \end_inset
10375
10376  [
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381 string
10382 \end_layout
10383
10384 \end_inset
10385
10386 ] Indicates that this layout provides the functionality of the module mentioned,
10387  which should be specified by the filename without the 
10388 \begin_inset Flex Code
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392 .module
10393 \end_layout
10394
10395 \end_inset
10396
10397  extension.
10398  This will typically be used if the layout includes the module directly,
10399  rather than using the 
10400 \begin_inset Flex Code
10401 status collapsed
10402
10403 \begin_layout Plain Layout
10404 DefaultModule
10405 \end_layout
10406
10407 \end_inset
10408
10409  tag to indicate that it ought to be used.
10410  It could also be used in a module that provided an alternate implementation
10411  of the same functionality.
10412 \end_layout
10413
10414 \begin_layout Description
10415 \begin_inset Flex Code
10416 status collapsed
10417
10418 \begin_layout Plain Layout
10419 ProvideStyle
10420 \end_layout
10421
10422 \end_inset
10423
10424  [
10425 \begin_inset Flex Code
10426 status collapsed
10427
10428 \begin_layout Plain Layout
10429 <style>
10430 \end_layout
10431
10432 \end_inset
10433
10434 ] Creates a new paragraph style if it does not already exist.
10435  If the style does exist, this section is ignored.
10436  Must end with 
10437 \begin_inset Quotes eld
10438 \end_inset
10439
10440
10441 \begin_inset Flex Code
10442 status collapsed
10443
10444 \begin_layout Plain Layout
10445 End
10446 \end_layout
10447
10448 \end_inset
10449
10450
10451 \begin_inset Quotes erd
10452 \end_inset
10453
10454 .
10455 \end_layout
10456
10457 \begin_layout Description
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 Requires
10463 \end_layout
10464
10465 \end_inset
10466
10467  [
10468 \begin_inset Flex Code
10469 status collapsed
10470
10471 \begin_layout Plain Layout
10472 string
10473 \end_layout
10474
10475 \end_inset
10476
10477 ] Whether the class requires the feature 
10478 \begin_inset Flex Code
10479 status collapsed
10480
10481 \begin_layout Plain Layout
10482 string
10483 \end_layout
10484
10485 \end_inset
10486
10487 .
10488  Multiple features must be separated by commas.
10489  Note that you can only request supported features.
10490  (See 
10491 \begin_inset CommandInset ref
10492 LatexCommand ref
10493 reference "chap:List-of-functions"
10494
10495 \end_inset
10496
10497  for the list of features.).
10498  If you require a package with specific options, you can additionally use
10499  
10500 \begin_inset Flex Code
10501 status collapsed
10502
10503 \begin_layout Plain Layout
10504 PackageOptions
10505 \end_layout
10506
10507 \end_inset
10508
10509 .
10510 \end_layout
10511
10512 \begin_layout Description
10513 \begin_inset Flex Code
10514 status collapsed
10515
10516 \begin_layout Plain Layout
10517 RightMargin
10518 \end_layout
10519
10520 \end_inset
10521
10522  [
10523 \begin_inset Flex Code
10524 status collapsed
10525
10526 \begin_layout Plain Layout
10527 string
10528 \end_layout
10529
10530 \end_inset
10531
10532 ] A string that indicates the width of the right margin on the screen, for
10533  example, 
10534 \begin_inset Quotes eld
10535 \end_inset
10536
10537
10538 \begin_inset Flex Code
10539 status collapsed
10540
10541 \begin_layout Plain Layout
10542 MMMMM
10543 \end_layout
10544
10545 \end_inset
10546
10547
10548 \begin_inset Quotes erd
10549 \end_inset
10550
10551 .
10552 \end_layout
10553
10554 \begin_layout Description
10555 \begin_inset Flex Code
10556 status collapsed
10557
10558 \begin_layout Plain Layout
10559 SecNumDepth
10560 \end_layout
10561
10562 \end_inset
10563
10564  [
10565 \begin_inset Flex Code
10566 status collapsed
10567
10568 \begin_layout Plain Layout
10569 int=3
10570 \end_layout
10571
10572 \end_inset
10573
10574 ] Sets which divisions get numbered.
10575  Corresponds to the
10576 \begin_inset Newline newline
10577 \end_inset
10578
10579
10580 \begin_inset Flex Code
10581 status collapsed
10582
10583 \begin_layout Plain Layout
10584 secnumdepth
10585 \end_layout
10586
10587 \end_inset
10588
10589  counter in \SpecialChar LaTeX
10590 .
10591 \end_layout
10592
10593 \begin_layout Description
10594 \begin_inset Flex Code
10595 status collapsed
10596
10597 \begin_layout Plain Layout
10598 Sides
10599 \end_layout
10600
10601 \end_inset
10602
10603  [
10604 \begin_inset Flex Code
10605 status collapsed
10606
10607 \begin_layout Plain Layout
10608
10609 \emph on
10610 1
10611 \end_layout
10612
10613 \end_inset
10614
10615 ,
10616 \begin_inset space \thinspace{}
10617 \end_inset
10618
10619
10620 \begin_inset Flex Code
10621 status collapsed
10622
10623 \begin_layout Plain Layout
10624 2
10625 \end_layout
10626
10627 \end_inset
10628
10629 ] Whether the class-default should be printing on one or both sides of the
10630  paper.
10631  Can be changed in the 
10632 \begin_inset Flex Noun
10633 status collapsed
10634
10635 \begin_layout Plain Layout
10636 Document\SpecialChar menuseparator
10637 Settings
10638 \end_layout
10639
10640 \end_inset
10641
10642  dialog.
10643 \end_layout
10644
10645 \begin_layout Description
10646 \begin_inset Flex Code
10647 status collapsed
10648
10649 \begin_layout Plain Layout
10650 Style
10651 \end_layout
10652
10653 \end_inset
10654
10655  [
10656 \begin_inset Flex Code
10657 status collapsed
10658
10659 \begin_layout Plain Layout
10660 <name>
10661 \end_layout
10662
10663 \end_inset
10664
10665 ] This sequence defines a paragraph style.
10666  If the style does not yet exist, it is created; if it does exist, its parameter
10667 s are modified.
10668  Must end with 
10669 \begin_inset Quotes eld
10670 \end_inset
10671
10672
10673 \begin_inset Flex Code
10674 status collapsed
10675
10676 \begin_layout Plain Layout
10677 End
10678 \end_layout
10679
10680 \end_inset
10681
10682
10683 \begin_inset Quotes erd
10684 \end_inset
10685
10686 .
10687 \begin_inset Newline newline
10688 \end_inset
10689
10690 See 
10691 \begin_inset CommandInset ref
10692 LatexCommand ref
10693 reference "subsec:Paragraph-Styles"
10694
10695 \end_inset
10696
10697  for details on paragraph styles.
10698 \end_layout
10699
10700 \begin_layout Description
10701 \begin_inset Flex Code
10702 status collapsed
10703
10704 \begin_layout Plain Layout
10705 TitleLatexName
10706 \end_layout
10707
10708 \end_inset
10709
10710  [
10711 \begin_inset Flex Code
10712 status collapsed
10713
10714 \begin_layout Plain Layout
10715 string="maketitle"
10716 \end_layout
10717
10718 \end_inset
10719
10720 ] The name of the command or environment to be used with 
10721 \begin_inset Flex Code
10722 status collapsed
10723
10724 \begin_layout Plain Layout
10725 TitleLatexType
10726 \end_layout
10727
10728 \end_inset
10729
10730 .
10731 \end_layout
10732
10733 \begin_layout Description
10734 \begin_inset Flex Code
10735 status collapsed
10736
10737 \begin_layout Plain Layout
10738 TitleLatexType
10739 \end_layout
10740
10741 \end_inset
10742
10743  [
10744 \begin_inset Flex Code
10745 status collapsed
10746
10747 \begin_layout Plain Layout
10748
10749 \emph on
10750 CommandAfter
10751 \end_layout
10752
10753 \end_inset
10754
10755
10756 \begin_inset Flex Code
10757 status collapsed
10758
10759 \begin_layout Plain Layout
10760 Environment
10761 \end_layout
10762
10763 \end_inset
10764
10765 ] Indicates what kind of markup is used to define the title of a document.
10766  
10767 \begin_inset Flex Code
10768 status collapsed
10769
10770 \begin_layout Plain Layout
10771 CommandAfter
10772 \end_layout
10773
10774 \end_inset
10775
10776  means that the macro with name 
10777 \begin_inset Flex Code
10778 status collapsed
10779
10780 \begin_layout Plain Layout
10781 TitleLatexName
10782 \end_layout
10783
10784 \end_inset
10785
10786  will be inserted after the last layout which has 
10787 \begin_inset Quotes eld
10788 \end_inset
10789
10790
10791 \begin_inset Flex Code
10792 status collapsed
10793
10794 \begin_layout Plain Layout
10795 InTitle
10796 \begin_inset space ~
10797 \end_inset
10798
10799 1
10800 \end_layout
10801
10802 \end_inset
10803
10804
10805 \begin_inset Quotes erd
10806 \end_inset
10807
10808 .
10809  
10810 \begin_inset Flex Code
10811 status collapsed
10812
10813 \begin_layout Plain Layout
10814 Environment
10815 \end_layout
10816
10817 \end_inset
10818
10819  corresponds to the case where all layouts which have 
10820 \begin_inset Quotes eld
10821 \end_inset
10822
10823
10824 \begin_inset Flex Code
10825 status collapsed
10826
10827 \begin_layout Plain Layout
10828 InTitle
10829 \begin_inset space ~
10830 \end_inset
10831
10832 1
10833 \end_layout
10834
10835 \end_inset
10836
10837
10838 \begin_inset Quotes erd
10839 \end_inset
10840
10841  should be enclosed into the 
10842 \begin_inset Flex Code
10843 status collapsed
10844
10845 \begin_layout Plain Layout
10846 TitleLatexName
10847 \end_layout
10848
10849 \end_inset
10850
10851  environment.
10852 \end_layout
10853
10854 \begin_layout Description
10855 \begin_inset Flex Code
10856 status collapsed
10857
10858 \begin_layout Plain Layout
10859 TocDepth
10860 \end_layout
10861
10862 \end_inset
10863
10864  [
10865 \begin_inset Flex Code
10866 status collapsed
10867
10868 \begin_layout Plain Layout
10869 int=3
10870 \end_layout
10871
10872 \end_inset
10873
10874 ] Sets which divisions are included in the table of contents.
10875  Corresponds to the 
10876 \begin_inset Flex Code
10877 status collapsed
10878
10879 \begin_layout Plain Layout
10880 tocdepth
10881 \end_layout
10882
10883 \end_inset
10884
10885  counter in \SpecialChar LaTeX
10886 .
10887 \end_layout
10888
10889 \begin_layout Subsection
10890 \begin_inset Flex Code
10891 status collapsed
10892
10893 \begin_layout Plain Layout
10894 ClassOptions
10895 \end_layout
10896
10897 \end_inset
10898
10899  section
10900 \begin_inset CommandInset label
10901 LatexCommand label
10902 name "subsec:ClassOptions"
10903
10904 \end_inset
10905
10906
10907 \end_layout
10908
10909 \begin_layout Standard
10910 The 
10911 \begin_inset Flex Code
10912 status collapsed
10913
10914 \begin_layout Plain Layout
10915 ClassOptions
10916 \end_layout
10917
10918 \end_inset
10919
10920  section can contain the following entries:
10921 \end_layout
10922
10923 \begin_layout Description
10924 \begin_inset Flex Code
10925 status collapsed
10926
10927 \begin_layout Plain Layout
10928 FontSize
10929 \end_layout
10930
10931 \end_inset
10932
10933  [
10934 \begin_inset Flex Code
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938 string="10|11|12"
10939 \end_layout
10940
10941 \end_inset
10942
10943 ] The list of available font sizes for the document's main font, separated
10944  by 
10945 \begin_inset Quotes eld
10946 \end_inset
10947
10948
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953 |
10954 \end_layout
10955
10956 \end_inset
10957
10958
10959 \begin_inset Quotes erd
10960 \end_inset
10961
10962 .
10963 \end_layout
10964
10965 \begin_layout Description
10966 \begin_inset Flex Code
10967 status collapsed
10968
10969 \begin_layout Plain Layout
10970 Header
10971 \end_layout
10972
10973 \end_inset
10974
10975  Used to set the DTD line with XML-based output classes.
10976  E.
10977 \begin_inset space \thinspace{}
10978 \end_inset
10979
10980 g.: PUBLIC 
10981 \begin_inset Quotes eld
10982 \end_inset
10983
10984 -//OASIS//DTD DocBook V4.2//EN
10985 \begin_inset Quotes erd
10986 \end_inset
10987
10988 .
10989 \end_layout
10990
10991 \begin_layout Description
10992 \begin_inset Flex Code
10993 status collapsed
10994
10995 \begin_layout Plain Layout
10996 PageStyle
10997 \end_layout
10998
10999 \end_inset
11000
11001  [
11002 \begin_inset Flex Code
11003 status collapsed
11004
11005 \begin_layout Plain Layout
11006 string="empty|plain|headings|fancy"
11007 \end_layout
11008
11009 \end_inset
11010
11011 ] The list of available page sty\SpecialChar softhyphen
11012 les, separated by 
11013 \begin_inset Quotes eld
11014 \end_inset
11015
11016
11017 \begin_inset Flex Code
11018 status collapsed
11019
11020 \begin_layout Plain Layout
11021 |
11022 \end_layout
11023
11024 \end_inset
11025
11026
11027 \begin_inset Quotes erd
11028 \end_inset
11029
11030 .
11031 \end_layout
11032
11033 \begin_layout Description
11034 \begin_inset Flex Code
11035 status collapsed
11036
11037 \begin_layout Plain Layout
11038 Other
11039 \end_layout
11040
11041 \end_inset
11042
11043  [
11044 \begin_inset Flex Code
11045 status collapsed
11046
11047 \begin_layout Plain Layout
11048 string=""
11049 \end_layout
11050
11051 \end_inset
11052
11053 ] Some document class options, separated by a comma, that will be added
11054  to the optional part of the 
11055 \begin_inset Flex Code
11056 status collapsed
11057
11058 \begin_layout Plain Layout
11059
11060 \backslash
11061 documentclass
11062 \end_layout
11063
11064 \end_inset
11065
11066  command.
11067 \end_layout
11068
11069 \begin_layout Standard
11070 The 
11071 \begin_inset Flex Code
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 ClassOptions
11076 \end_layout
11077
11078 \end_inset
11079
11080  section must end with 
11081 \begin_inset Quotes eld
11082 \end_inset
11083
11084
11085 \begin_inset Flex Code
11086 status collapsed
11087
11088 \begin_layout Plain Layout
11089 End
11090 \end_layout
11091
11092 \end_inset
11093
11094
11095 \begin_inset Quotes erd
11096 \end_inset
11097
11098 .
11099 \end_layout
11100
11101 \begin_layout Subsection
11102 Paragraph styles
11103 \begin_inset CommandInset label
11104 LatexCommand label
11105 name "subsec:Paragraph-Styles"
11106
11107 \end_inset
11108
11109
11110 \end_layout
11111
11112 \begin_layout Standard
11113 A paragraph style description looks like this:
11114 \begin_inset Foot
11115 status collapsed
11116
11117 \begin_layout Plain Layout
11118 Note that this will either define a new style or modify an existing one.
11119 \end_layout
11120
11121 \end_inset
11122
11123
11124 \end_layout
11125
11126 \begin_layout LyX-Code
11127 Style 
11128 \family roman
11129 \emph on
11130 name
11131 \end_layout
11132
11133 \begin_layout LyX-Code
11134  ...
11135 \end_layout
11136
11137 \begin_layout LyX-Code
11138 End
11139 \end_layout
11140
11141 \begin_layout Standard
11142 where the following commands are allowed:
11143 \end_layout
11144
11145 \begin_layout Description
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 AddToToc
11151 \end_layout
11152
11153 \end_inset
11154
11155  [
11156 \begin_inset Flex Code
11157 status collapsed
11158
11159 \begin_layout Plain Layout
11160 string
11161 \end_layout
11162
11163 \end_inset
11164
11165 =""] This paragraph will appear in the table of contents of the given type.
11166  An empty string disables.
11167  See also the OutlinerName and the IsTocCaption commands.
11168  Default: disabled.
11169 \end_layout
11170
11171 \begin_layout Description
11172 \begin_inset Flex Code
11173 status collapsed
11174
11175 \begin_layout Plain Layout
11176 Align
11177 \end_layout
11178
11179 \end_inset
11180
11181  [
11182 \begin_inset Flex Code
11183 status collapsed
11184
11185 \begin_layout Plain Layout
11186
11187 \emph on
11188 block
11189 \emph default
11190 , left, right, center
11191 \end_layout
11192
11193 \end_inset
11194
11195 ] Paragraph alignment.
11196 \end_layout
11197
11198 \begin_layout Description
11199 \begin_inset Flex Code
11200 status collapsed
11201
11202 \begin_layout Plain Layout
11203 AlignPossible
11204 \end_layout
11205
11206 \end_inset
11207
11208  [
11209 \begin_inset Flex Code
11210 status collapsed
11211
11212 \begin_layout Plain Layout
11213
11214 \emph on
11215 block
11216 \emph default
11217 , left, right, center
11218 \end_layout
11219
11220 \end_inset
11221
11222 ] A comma separated list of permitted alignments.
11223  (Some \SpecialChar LaTeX
11224  styles prohibit certain alignments, since those wouldn't make sense.
11225  For example a right-aligned or centered enumeration isn't possible.)
11226 \end_layout
11227
11228 \begin_layout Description
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 Argument
11234 \end_layout
11235
11236 \end_inset
11237
11238  [
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 int
11244 \end_layout
11245
11246 \end_inset
11247
11248 ] Defines argument number <int> of a command\SpecialChar breakableslash
11249 environment associated with
11250  the current style.
11251  This is useful for things like section headings, and only makes sense with
11252  \SpecialChar LaTeX
11253 .
11254  Every (optional or required) argument of a command or environment – except
11255  for the required argument that is associated with the content of the paragraph
11256  itself – has a separate definition, where the number specifies the order
11257  of the arguments.
11258  The definition must end with 
11259 \begin_inset Flex Code
11260 status collapsed
11261
11262 \begin_layout Plain Layout
11263 EndArgument
11264 \end_layout
11265
11266 \end_inset
11267
11268 .
11269  So a command with two optional arguments has:
11270 \end_layout
11271
11272 \begin_deeper
11273 \begin_layout Quote
11274
11275 \family typewriter
11276 Argument 1
11277 \end_layout
11278
11279 \begin_layout Quote
11280
11281 \family typewriter
11282 ...
11283 \end_layout
11284
11285 \begin_layout Quote
11286
11287 \family typewriter
11288 EndArgument
11289 \end_layout
11290
11291 \begin_layout Quote
11292
11293 \family typewriter
11294 Argument 2
11295 \end_layout
11296
11297 \begin_layout Quote
11298
11299 \family typewriter
11300 ...
11301 \end_layout
11302
11303 \begin_layout Quote
11304
11305 \family typewriter
11306 EndArgument
11307 \end_layout
11308
11309 \begin_layout Standard
11310 Inside the 
11311 \begin_inset Flex Code
11312 status collapsed
11313
11314 \begin_layout Plain Layout
11315 Argument
11316 \end_layout
11317
11318 \end_inset
11319
11320  definition, the following specifications are possible:
11321 \end_layout
11322
11323 \begin_layout Itemize
11324 \begin_inset Flex Code
11325 status collapsed
11326
11327 \begin_layout Plain Layout
11328 LabelString
11329 \end_layout
11330
11331 \end_inset
11332
11333  
11334 \begin_inset Flex Code
11335 status collapsed
11336
11337 \begin_layout Plain Layout
11338 [string]
11339 \end_layout
11340
11341 \end_inset
11342
11343  The string that will appear both in the menu (to insert this argument)
11344  and on the argument inset button (unless you also specify a separate 
11345 \begin_inset Flex Code
11346 status collapsed
11347
11348 \begin_layout Plain Layout
11349 MenuString
11350 \end_layout
11351
11352 \end_inset
11353
11354 ).
11355  For the menu, you can define an accelerator by appending the respective
11356  character to the string, divided by 
11357 \begin_inset Quotes eld
11358 \end_inset
11359
11360 |
11361 \begin_inset Quotes erd
11362 \end_inset
11363
11364  (e.
11365 \begin_inset space \thinspace{}
11366 \end_inset
11367
11368 g.
11369 \begin_inset space \space{}
11370 \end_inset
11371
11372
11373 \begin_inset Quotes eld
11374 \end_inset
11375
11376
11377 \begin_inset Flex Code
11378 status collapsed
11379
11380 \begin_layout Plain Layout
11381 Short Title|S
11382 \end_layout
11383
11384 \end_inset
11385
11386
11387 \begin_inset Quotes erd
11388 \end_inset
11389
11390 ).
11391 \end_layout
11392
11393 \begin_layout Itemize
11394 \begin_inset Flex Code
11395 status collapsed
11396
11397 \begin_layout Plain Layout
11398 MenuString
11399 \end_layout
11400
11401 \end_inset
11402
11403  
11404 \begin_inset Flex Code
11405 status collapsed
11406
11407 \begin_layout Plain Layout
11408 [string]
11409 \end_layout
11410
11411 \end_inset
11412
11413  A separate string for the menu.
11414  You can define an accelerator by appending the respective character to
11415  the string, divided by 
11416 \begin_inset Quotes eld
11417 \end_inset
11418
11419 |
11420 \begin_inset Quotes erd
11421 \end_inset
11422
11423  (e.
11424 \begin_inset space \thinspace{}
11425 \end_inset
11426
11427 g.
11428 \begin_inset space \space{}
11429 \end_inset
11430
11431
11432 \begin_inset Quotes eld
11433 \end_inset
11434
11435
11436 \begin_inset Flex Code
11437 status collapsed
11438
11439 \begin_layout Plain Layout
11440 Short Title|S
11441 \end_layout
11442
11443 \end_inset
11444
11445
11446 \begin_inset Quotes erd
11447 \end_inset
11448
11449 ).
11450  This specification is optional.
11451  If it is not given the 
11452 \begin_inset Flex Code
11453 status collapsed
11454
11455 \begin_layout Plain Layout
11456 LabelString
11457 \end_layout
11458
11459 \end_inset
11460
11461  will be used instead for the menu.
11462 \end_layout
11463
11464 \begin_layout Itemize
11465 \begin_inset Flex Code
11466 status collapsed
11467
11468 \begin_layout Plain Layout
11469 Tooltip
11470 \end_layout
11471
11472 \end_inset
11473
11474  
11475 \begin_inset Flex Code
11476 status collapsed
11477
11478 \begin_layout Plain Layout
11479 [string]
11480 \end_layout
11481
11482 \end_inset
11483
11484  A longer explanatory text that appears in the tooltip when hovering over
11485  the argument inset.
11486 \end_layout
11487
11488 \begin_layout Itemize
11489 \begin_inset Flex Code
11490 status collapsed
11491
11492 \begin_layout Plain Layout
11493 Mandatory
11494 \end_layout
11495
11496 \end_inset
11497
11498  [
11499 \begin_inset Flex Code
11500 status collapsed
11501
11502 \begin_layout Plain Layout
11503
11504 \emph on
11505 0
11506 \end_layout
11507
11508 \end_inset
11509
11510 ,
11511 \begin_inset space \thinspace{}
11512 \end_inset
11513
11514
11515 \begin_inset Flex Code
11516 status collapsed
11517
11518 \begin_layout Plain Layout
11519 1
11520 \end_layout
11521
11522 \end_inset
11523
11524 ] Declare if this is a mandatory (1) or an optional (0) argument.
11525  Mandatory arguments will be output empty if not given, while optional arguments
11526  will not be output at all.
11527  By default, mandatory arguments are delimited by 
11528 \begin_inset Flex Code
11529 status collapsed
11530
11531 \begin_layout Plain Layout
11532 {...}
11533 \end_layout
11534
11535 \end_inset
11536
11537 , while optional arguments are delimited by 
11538 \begin_inset Flex Code
11539 status collapsed
11540
11541 \begin_layout Plain Layout
11542 [...]
11543 \end_layout
11544
11545 \end_inset
11546
11547
11548 \end_layout
11549
11550 \begin_layout Itemize
11551 \begin_inset Flex Code
11552 status collapsed
11553
11554 \begin_layout Plain Layout
11555 Requires
11556 \end_layout
11557
11558 \end_inset
11559
11560  
11561 \begin_inset Flex Code
11562 status collapsed
11563
11564 \begin_layout Plain Layout
11565 [int=0]
11566 \end_layout
11567
11568 \end_inset
11569
11570  defines another argument (by its number) which this argument requires to
11571  be output if it is itself output.
11572  E.
11573 \begin_inset space \thinspace{}
11574 \end_inset
11575
11576 g., in \SpecialChar LaTeX
11577  commands, optional arguments often require previous optional arguments
11578  to be output (at least empty), as in 
11579 \begin_inset Flex Code
11580 status collapsed
11581
11582 \begin_layout Plain Layout
11583
11584 \backslash
11585 command[][argument]{text}
11586 \end_layout
11587
11588 \end_inset
11589
11590 .
11591  This can be achieved by the statement 
11592 \begin_inset Flex Code
11593 status collapsed
11594
11595 \begin_layout Plain Layout
11596 Requires 1
11597 \end_layout
11598
11599 \end_inset
11600
11601  within 
11602 \begin_inset Flex Code
11603 status collapsed
11604
11605 \begin_layout Plain Layout
11606 Argument 2
11607 \end_layout
11608
11609 \end_inset
11610
11611 .
11612 \end_layout
11613
11614 \begin_layout Itemize
11615 \begin_inset Flex Code
11616 status collapsed
11617
11618 \begin_layout Plain Layout
11619 LeftDelim
11620 \end_layout
11621
11622 \end_inset
11623
11624  
11625 \begin_inset Flex Code
11626 status collapsed
11627
11628 \begin_layout Plain Layout
11629 [string]
11630 \end_layout
11631
11632 \end_inset
11633
11634  defines a custom left delimiter (instead of 
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639 {
11640 \end_layout
11641
11642 \end_inset
11643
11644  or 
11645 \begin_inset Flex Code
11646 status collapsed
11647
11648 \begin_layout Plain Layout
11649 [
11650 \end_layout
11651
11652 \end_inset
11653
11654 ).
11655  A line break in the output can be indicated by 
11656 \begin_inset Flex Code
11657 status collapsed
11658
11659 \begin_layout Plain Layout
11660 <br/>
11661 \end_layout
11662
11663 \end_inset
11664
11665 .
11666 \end_layout
11667
11668 \begin_layout Itemize
11669 \begin_inset Flex Code
11670 status collapsed
11671
11672 \begin_layout Plain Layout
11673 RightDelim
11674 \end_layout
11675
11676 \end_inset
11677
11678  
11679 \begin_inset Flex Code
11680 status collapsed
11681
11682 \begin_layout Plain Layout
11683 [string]
11684 \end_layout
11685
11686 \end_inset
11687
11688  defines a custom right delimiter (instead of 
11689 \begin_inset Flex Code
11690 status collapsed
11691
11692 \begin_layout Plain Layout
11693 }
11694 \end_layout
11695
11696 \end_inset
11697
11698  or 
11699 \begin_inset Flex Code
11700 status collapsed
11701
11702 \begin_layout Plain Layout
11703 ]
11704 \end_layout
11705
11706 \end_inset
11707
11708 ).
11709  A line break in the output can be indicated by 
11710 \begin_inset Flex Code
11711 status collapsed
11712
11713 \begin_layout Plain Layout
11714 <br/>
11715 \end_layout
11716
11717 \end_inset
11718
11719 .
11720 \end_layout
11721
11722 \begin_layout Itemize
11723 \begin_inset Flex Code
11724 status collapsed
11725
11726 \begin_layout Plain Layout
11727 DefaultArg
11728 \end_layout
11729
11730 \end_inset
11731
11732  
11733 \begin_inset Flex Code
11734 status collapsed
11735
11736 \begin_layout Plain Layout
11737 [string]
11738 \end_layout
11739
11740 \end_inset
11741
11742  defines an argument that is inserted if and only if no user-specified arguments
11743  were given, i.
11744 \begin_inset space \thinspace{}
11745 \end_inset
11746
11747 e.
11748 \begin_inset space \space{}
11749 \end_inset
11750
11751 if no argument inset has been inserted (note that also an empty argument
11752  inset omits the DefaultArg).
11753  Multiple arguments need to be separated by comma.
11754 \end_layout
11755
11756 \begin_layout Itemize
11757 \begin_inset Flex Code
11758 status collapsed
11759
11760 \begin_layout Plain Layout
11761 PresetArg
11762 \end_layout
11763
11764 \end_inset
11765
11766  
11767 \begin_inset Flex Code
11768 status collapsed
11769
11770 \begin_layout Plain Layout
11771 [string]
11772 \end_layout
11773
11774 \end_inset
11775
11776  defines an argument that is inserted in any case (alone or in addition
11777  to user-specified arguments).
11778  Multiple arguments need to be separated by comma.
11779 \end_layout
11780
11781 \begin_layout Itemize
11782 \begin_inset Flex Code
11783 status collapsed
11784
11785 \begin_layout Plain Layout
11786 Font
11787 \end_layout
11788
11789 \end_inset
11790
11791  The font used for the argument content, see 
11792 \begin_inset CommandInset ref
11793 LatexCommand ref
11794 reference "subsec:Font-description"
11795
11796 \end_inset
11797
11798 .
11799 \end_layout
11800
11801 \begin_layout Itemize
11802 \begin_inset Flex Code
11803 status collapsed
11804
11805 \begin_layout Plain Layout
11806 LabelFont
11807 \end_layout
11808
11809 \end_inset
11810
11811  The font used for the label; see 
11812 \begin_inset CommandInset ref
11813 LatexCommand ref
11814 reference "subsec:Font-description"
11815
11816 \end_inset
11817
11818 .
11819 \end_layout
11820
11821 \begin_layout Itemize
11822 \begin_inset Flex Code
11823 status collapsed
11824
11825 \begin_layout Plain Layout
11826 Decoration
11827 \end_layout
11828
11829 \end_inset
11830
11831  [
11832 \begin_inset Flex Code
11833 status collapsed
11834
11835 \begin_layout Plain Layout
11836
11837 \emph on
11838 Classic
11839 \emph default
11840 , Minimalistic, Conglomerate
11841 \end_layout
11842
11843 \end_inset
11844
11845 ] describes the rendering style used for the inset's frame and buttons.
11846 \end_layout
11847
11848 \begin_layout Itemize
11849 \begin_inset Flex Code
11850 status collapsed
11851
11852 \begin_layout Plain Layout
11853 AutoInsert
11854 \end_layout
11855
11856 \end_inset
11857
11858  
11859 \begin_inset Flex Code
11860 status collapsed
11861
11862 \begin_layout Plain Layout
11863 [int=0]
11864 \end_layout
11865
11866 \end_inset
11867
11868  If this is set to 
11869 \begin_inset Flex Code
11870 status collapsed
11871
11872 \begin_layout Plain Layout
11873 1
11874 \end_layout
11875
11876 \end_inset
11877
11878 , this argument is automatically inserted when the respective style is selected.
11879  Currently, only one argument per style\SpecialChar breakableslash
11880 layout can be automatically inserted.
11881 \end_layout
11882
11883 \begin_layout Itemize
11884 \begin_inset Flex Code
11885 status collapsed
11886
11887 \begin_layout Plain Layout
11888 InsertCotext
11889 \end_layout
11890
11891 \end_inset
11892
11893  
11894 \begin_inset Flex Code
11895 status collapsed
11896
11897 \begin_layout Plain Layout
11898 [int=0]
11899 \end_layout
11900
11901 \end_inset
11902
11903  If this is set to 
11904 \begin_inset Flex Code
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908 1
11909 \end_layout
11910
11911 \end_inset
11912
11913 , this argument will be inserted with a copy of the co-text (either selected
11914  text or the whole paragraph) as content.
11915 \end_layout
11916
11917 \begin_layout Itemize
11918 \begin_inset Flex Code
11919 status collapsed
11920
11921 \begin_layout Plain Layout
11922 PassThru
11923 \end_layout
11924
11925 \end_inset
11926
11927  [
11928 \begin_inset Flex Code
11929 status collapsed
11930
11931 \begin_layout Plain Layout
11932
11933 \emph on
11934 inherited
11935 \emph default
11936 , true, false
11937 \end_layout
11938
11939 \end_inset
11940
11941 ] Whether the contents of this argument should be output in raw form, meaning
11942  without special translations that \SpecialChar LaTeX
11943  would require.
11944  By default, the 
11945 \begin_inset Flex Code
11946 status collapsed
11947
11948 \begin_layout Plain Layout
11949 PassThru
11950 \end_layout
11951
11952 \end_inset
11953
11954  status is inherited by the inset or paragraph layout the argument belongs
11955  to, true and false change the status for the given argument only.
11956 \end_layout
11957
11958 \begin_layout Itemize
11959 \begin_inset Flex Code
11960 status collapsed
11961
11962 \begin_layout Plain Layout
11963 PassThruChars
11964 \end_layout
11965
11966 \end_inset
11967
11968  [
11969 \begin_inset Flex Code
11970 status collapsed
11971
11972 \begin_layout Plain Layout
11973 string of characters
11974 \end_layout
11975
11976 \end_inset
11977
11978 ]
11979 \family typewriter
11980  
11981 \family default
11982 Defines individual characters
11983 \begin_inset Newline linebreak
11984 \end_inset
11985
11986 that should be output in raw form, meaning without special translations
11987  that \SpecialChar LaTeX
11988  would require.
11989  Note that, contrary to PassThru, this needs to be explicitly defined for
11990  arguments.
11991  That is, arguments do not inherit PassThruChars from their parent inset
11992  or layout.
11993 \end_layout
11994
11995 \begin_layout Itemize
11996 \begin_inset Flex Code
11997 status collapsed
11998
11999 \begin_layout Plain Layout
12000 IsTocCaption
12001 \end_layout
12002
12003 \end_inset
12004
12005  [
12006 \begin_inset Flex Code
12007 status collapsed
12008
12009 \begin_layout Plain Layout
12010
12011 \emph on
12012 0
12013 \end_layout
12014
12015 \end_inset
12016
12017 ,
12018 \begin_inset space \thinspace{}
12019 \end_inset
12020
12021
12022 \begin_inset Flex Code
12023 status collapsed
12024
12025 \begin_layout Plain Layout
12026 1
12027 \end_layout
12028
12029 \end_inset
12030
12031 ] If this is set to 1, the argument will output its content in the corresponding
12032  item in the table of contents.
12033  See AddToToc.
12034 \end_layout
12035
12036 \begin_layout Standard
12037 By default, the text entered in the \SpecialChar LyX
12038  workarea in the respective layout is
12039  the last (mandatory) argument of a command if the 
12040 \begin_inset Flex Code
12041 status collapsed
12042
12043 \begin_layout Plain Layout
12044 LatexType
12045 \end_layout
12046
12047 \end_inset
12048
12049  is 
12050 \begin_inset Flex Code
12051 status collapsed
12052
12053 \begin_layout Plain Layout
12054 Command
12055 \end_layout
12056
12057 \end_inset
12058
12059 .
12060  However, arguments with the prefix 
12061 \begin_inset Flex Code
12062 status collapsed
12063
12064 \begin_layout Plain Layout
12065 post:
12066 \end_layout
12067
12068 \end_inset
12069
12070  are output after this workarea argument.
12071  Note that post-argument numbering restarts at 1, so the first argument
12072  following the workarea argument is 
12073 \begin_inset Flex Code
12074 status collapsed
12075
12076 \begin_layout Plain Layout
12077 post:1
12078 \end_layout
12079
12080 \end_inset
12081
12082 .
12083  Post-arguments are ignored in any other 
12084 \begin_inset Flex Code
12085 status collapsed
12086
12087 \begin_layout Plain Layout
12088 LatexType
12089 \end_layout
12090
12091 \end_inset
12092
12093  than 
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098 Command
12099 \end_layout
12100
12101 \end_inset
12102
12103 .
12104 \end_layout
12105
12106 \begin_layout Standard
12107 Arguments for list 
12108 \begin_inset Flex Code
12109 status collapsed
12110
12111 \begin_layout Plain Layout
12112
12113 \backslash
12114 item
12115 \end_layout
12116
12117 \end_inset
12118
12119 s (as in 
12120 \begin_inset Flex Code
12121 status collapsed
12122
12123 \begin_layout Plain Layout
12124
12125 \backslash
12126 item[foo]
12127 \end_layout
12128
12129 \end_inset
12130
12131 ) have the prefix 
12132 \begin_inset Flex Code
12133 status collapsed
12134
12135 \begin_layout Plain Layout
12136 item:
12137 \end_layout
12138
12139 \end_inset
12140
12141  followed by the number (e.
12142 \begin_inset space \thinspace{}
12143 \end_inset
12144
12145 g.
12146 \begin_inset space \space{}
12147 \end_inset
12148
12149
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 Argument item:1
12155 \end_layout
12156
12157 \end_inset
12158
12159 ).
12160 \end_layout
12161
12162 \end_deeper
12163 \begin_layout Description
12164 \begin_inset Flex Code
12165 status collapsed
12166
12167 \begin_layout Plain Layout
12168 AutoNests
12169 \end_layout
12170
12171 \end_inset
12172
12173  Includes a comma-separated list of layouts that should be nested in and
12174  after the current layout.
12175  Only makes sense for nestable layouts (such as environments).
12176  Must be ended by 
12177 \begin_inset Quotes eld
12178 \end_inset
12179
12180
12181 \begin_inset Flex Code
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185 EndAutoNests
12186 \end_layout
12187
12188 \end_inset
12189
12190
12191 \begin_inset Quotes erd
12192 \end_inset
12193
12194 .
12195  See also 
12196 \begin_inset Flex Code
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200 IsAutoNestedBy
12201 \end_layout
12202
12203 \end_inset
12204
12205 .
12206 \end_layout
12207
12208 \begin_layout Description
12209 \begin_inset Flex Code
12210 status collapsed
12211
12212 \begin_layout Plain Layout
12213 BabelPreamble
12214 \end_layout
12215
12216 \end_inset
12217
12218  Note that this will completely override any prior 
12219 \begin_inset Flex Code
12220 status collapsed
12221
12222 \begin_layout Plain Layout
12223 BabelPreamble
12224 \end_layout
12225
12226 \end_inset
12227
12228  declaration for this style.
12229  Must end with 
12230 \begin_inset Quotes eld
12231 \end_inset
12232
12233
12234 \begin_inset Flex Code
12235 status collapsed
12236
12237 \begin_layout Plain Layout
12238 EndBabelPreamble
12239 \end_layout
12240
12241 \end_inset
12242
12243
12244 \begin_inset Quotes erd
12245 \end_inset
12246
12247 .
12248  See 
12249 \begin_inset CommandInset ref
12250 LatexCommand ref
12251 reference "subsec:I18n"
12252
12253 \end_inset
12254
12255  for details on its use.
12256 \end_layout
12257
12258 \begin_layout Description
12259 \begin_inset Flex Code
12260 status collapsed
12261
12262 \begin_layout Plain Layout
12263 BottomSep
12264 \end_layout
12265
12266 \end_inset
12267
12268  [
12269 \begin_inset Flex Code
12270 status collapsed
12271
12272 \begin_layout Plain Layout
12273 float=0
12274 \end_layout
12275
12276 \end_inset
12277
12278 ]
12279 \begin_inset Foot
12280 status collapsed
12281
12282 \begin_layout Plain Layout
12283 Note that a `float' here is a real number, such as: 1.5.
12284 \end_layout
12285
12286 \end_inset
12287
12288  The vertical space with which the last of a chain of paragraphs with this
12289  style is separated from the following paragraph.
12290  If the next paragraph has another style, the separations are not simply
12291  added, but the maximum is taken.
12292 \end_layout
12293
12294 \begin_layout Description
12295 \begin_inset Flex Code
12296 status collapsed
12297
12298 \begin_layout Plain Layout
12299 Category
12300 \end_layout
12301
12302 \end_inset
12303
12304  [
12305 \begin_inset Flex Code
12306 status collapsed
12307
12308 \begin_layout Plain Layout
12309 string
12310 \end_layout
12311
12312 \end_inset
12313
12314 ] The category for this style.
12315  This is used to group related styles in the style combobox on the toolbar.
12316  Any string can be used, but you may want to use existing categories with
12317  your own styles.
12318  
12319 \end_layout
12320
12321 \begin_layout Description
12322 \begin_inset Flex Code
12323 status collapsed
12324
12325 \begin_layout Plain Layout
12326 CommandDepth
12327 \end_layout
12328
12329 \end_inset
12330
12331  Depth of XML command.
12332  Used only with XML-type formats.
12333 \end_layout
12334
12335 \begin_layout Description
12336 \begin_inset Flex Code
12337 status collapsed
12338
12339 \begin_layout Plain Layout
12340 CopyStyle
12341 \end_layout
12342
12343 \end_inset
12344
12345  [
12346 \begin_inset Flex Code
12347 status collapsed
12348
12349 \begin_layout Plain Layout
12350 string
12351 \end_layout
12352
12353 \end_inset
12354
12355 ] Copies all the features of an existing style into the current one.
12356  
12357 \end_layout
12358
12359 \begin_layout Description
12360 \begin_inset Flex Code
12361 status collapsed
12362
12363 \begin_layout Plain Layout
12364 DependsOn
12365 \end_layout
12366
12367 \end_inset
12368
12369  [
12370 \begin_inset Flex Code
12371 status collapsed
12372
12373 \begin_layout Plain Layout
12374 <name>
12375 \end_layout
12376
12377 \end_inset
12378
12379 ] The name of a style whose preamble should be output 
12380 \emph on
12381 before
12382 \emph default
12383  this one.
12384  This allows to ensure some ordering of the preamble snippets when macros
12385  definitions depend on one another.
12386 \begin_inset Foot
12387 status collapsed
12388
12389 \begin_layout Plain Layout
12390 Note that, besides that functionality, there is no way to ensure any ordering
12391  of preambles.
12392  The ordering that you see in a given version of \SpecialChar LyX
12393  may change without warning
12394  in later versions.
12395 \end_layout
12396
12397 \end_inset
12398
12399
12400 \end_layout
12401
12402 \begin_layout Description
12403 \begin_inset Flex Code
12404 status collapsed
12405
12406 \begin_layout Plain Layout
12407 EndLabeltype
12408 \end_layout
12409
12410 \end_inset
12411
12412  [
12413 \begin_inset Flex Code
12414 status collapsed
12415
12416 \begin_layout Plain Layout
12417
12418 \emph on
12419 No_Label
12420 \emph default
12421 , Box, Filled_Box, Static
12422 \end_layout
12423
12424 \end_inset
12425
12426 ] The type of label that stands at the end of the paragraph (or sequence
12427  of paragraphs if 
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 LatexType
12433 \end_layout
12434
12435 \end_inset
12436
12437  is
12438 \begin_inset Newline newline
12439 \end_inset
12440
12441
12442 \begin_inset Flex Code
12443 status collapsed
12444
12445 \begin_layout Plain Layout
12446 Environment
12447 \end_layout
12448
12449 \end_inset
12450
12451
12452 \begin_inset Flex Code
12453 status collapsed
12454
12455 \begin_layout Plain Layout
12456 Item_Environment
12457 \end_layout
12458
12459 \end_inset
12460
12461  or 
12462 \begin_inset Flex Code
12463 status collapsed
12464
12465 \begin_layout Plain Layout
12466 List_Environment
12467 \end_layout
12468
12469 \end_inset
12470
12471 ).
12472  
12473 \begin_inset Flex Code
12474 status collapsed
12475
12476 \begin_layout Plain Layout
12477 No_Label
12478 \end_layout
12479
12480 \end_inset
12481
12482  means 
12483 \begin_inset Quotes eld
12484 \end_inset
12485
12486 nothing
12487 \begin_inset Quotes erd
12488 \end_inset
12489
12490
12491 \begin_inset Flex Code
12492 status collapsed
12493
12494 \begin_layout Plain Layout
12495 Box
12496 \end_layout
12497
12498 \end_inset
12499
12500  (resp.
12501 \begin_inset space \space{}
12502 \end_inset
12503
12504
12505 \begin_inset Flex Code
12506 status collapsed
12507
12508 \begin_layout Plain Layout
12509 Filled_Box
12510 \end_layout
12511
12512 \end_inset
12513
12514 ) is a white (resp.
12515 \begin_inset space ~
12516 \end_inset
12517
12518 black) square suitable for end of proof markers, 
12519 \begin_inset Flex Code
12520 status collapsed
12521
12522 \begin_layout Plain Layout
12523 Static
12524 \end_layout
12525
12526 \end_inset
12527
12528  is an explicit text string.
12529 \end_layout
12530
12531 \begin_layout Description
12532 \begin_inset Flex Code
12533 status collapsed
12534
12535 \begin_layout Plain Layout
12536 EndLabelString
12537 \end_layout
12538
12539 \end_inset
12540
12541  [
12542 \begin_inset Flex Code
12543 status collapsed
12544
12545 \begin_layout Plain Layout
12546 string=""
12547 \end_layout
12548
12549 \end_inset
12550
12551 ] The string used for a label with a 
12552 \begin_inset Flex Code
12553 status collapsed
12554
12555 \begin_layout Plain Layout
12556 Static
12557 \end_layout
12558
12559 \end_inset
12560
12561
12562 \begin_inset Newline newline
12563 \end_inset
12564
12565
12566 \begin_inset Flex Code
12567 status collapsed
12568
12569 \begin_layout Plain Layout
12570 EndLabelType
12571 \end_layout
12572
12573 \end_inset
12574
12575 .
12576  
12577 \end_layout
12578
12579 \begin_layout Description
12580 \begin_inset Flex Code
12581 status collapsed
12582
12583 \begin_layout Plain Layout
12584 Font
12585 \end_layout
12586
12587 \end_inset
12588
12589  The font used for both the text body 
12590 \emph on
12591 and
12592 \emph default
12593  the label.
12594  See 
12595 \begin_inset CommandInset ref
12596 LatexCommand ref
12597 reference "subsec:Font-description"
12598
12599 \end_inset
12600
12601 .
12602  Note that defining this font automatically defines the 
12603 \begin_inset Flex Code
12604 status collapsed
12605
12606 \begin_layout Plain Layout
12607 LabelFont
12608 \end_layout
12609
12610 \end_inset
12611
12612  to the same value.
12613  So you should define this one first if you also want to define 
12614 \begin_inset Flex Code
12615 status collapsed
12616
12617 \begin_layout Plain Layout
12618 LabelFont
12619 \end_layout
12620
12621 \end_inset
12622
12623 .
12624 \end_layout
12625
12626 \begin_layout Description
12627 \begin_inset Flex Code
12628 status collapsed
12629
12630 \begin_layout Plain Layout
12631 ForceLocal
12632 \end_layout
12633
12634 \end_inset
12635
12636  [
12637 \begin_inset Flex Code
12638 status collapsed
12639
12640 \begin_layout Plain Layout
12641 int=0
12642 \end_layout
12643
12644 \end_inset
12645
12646 ] Used for backporting new styles to stable \SpecialChar LyX
12647  versions.
12648  The first stable version that supports this tag is \SpecialChar LyX
12649  2.1.0.
12650  The argument is a number which may either be 0, -1 or any value greater
12651  than zero.
12652  If the 
12653 \begin_inset Flex Code
12654 status collapsed
12655
12656 \begin_layout Plain Layout
12657 ForceLocal
12658 \end_layout
12659
12660 \end_inset
12661
12662  flag of a style is greater than zero, it will always be written to the
12663  document header.
12664  If a .lyx file is read, the style definitions from the document header are
12665  added to the document class.
12666  Therefore even older \SpecialChar LyX
12667  versions can handle the style.
12668  The argument of 
12669 \begin_inset Flex Code
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673 ForceLocal
12674 \end_layout
12675
12676 \end_inset
12677
12678  is a version number: if the style is read, and the version number is less
12679  than the version number of the already existing style in the document class,
12680  the new style is ignored.
12681  If the version number is greater, the new style replaces the existing style.
12682  A value of -1 means an infinite version number, i.
12683 \begin_inset space \thinspace{}
12684 \end_inset
12685
12686 e.
12687 \begin_inset space \space{}
12688 \end_inset
12689
12690 the style is always used.
12691 \end_layout
12692
12693 \begin_layout Description
12694 \begin_inset Flex Code
12695 status collapsed
12696
12697 \begin_layout Plain Layout
12698 FreeSpacing
12699 \end_layout
12700
12701 \end_inset
12702
12703  [
12704 \begin_inset Flex Code
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708
12709 \emph on
12710 0
12711 \end_layout
12712
12713 \end_inset
12714
12715 ,
12716 \begin_inset space \thinspace{}
12717 \end_inset
12718
12719
12720 \begin_inset Flex Code
12721 status collapsed
12722
12723 \begin_layout Plain Layout
12724 1
12725 \end_layout
12726
12727 \end_inset
12728
12729 ] Usually \SpecialChar LyX
12730  does not allow you to insert more than one space between words,
12731  since a space is considered as the separation between two words, not a
12732  character or symbol of its own.
12733  This is a very fine thing but sometimes annoying, for example, when typing
12734  program code or plain \SpecialChar LaTeX
12735  code.
12736  For this reason, 
12737 \begin_inset Flex Code
12738 status collapsed
12739
12740 \begin_layout Plain Layout
12741 FreeSpacing
12742 \end_layout
12743
12744 \end_inset
12745
12746  can be enabled.
12747  Note that \SpecialChar LyX
12748  will create protected blanks for the additional blanks when
12749  in another mode than \SpecialChar LaTeX
12750 -mode.
12751 \end_layout
12752
12753 \begin_layout Description
12754 \begin_inset Flex Code
12755 status collapsed
12756
12757 \begin_layout Plain Layout
12758 HTML*
12759 \end_layout
12760
12761 \end_inset
12762
12763  These tags are used with XHTML output.
12764  See 
12765 \begin_inset CommandInset ref
12766 LatexCommand ref
12767 reference "subsec:Paragraph-Style-XHTML"
12768
12769 \end_inset
12770
12771 .
12772 \end_layout
12773
12774 \begin_layout Description
12775 \begin_inset Flex Code
12776 status collapsed
12777
12778 \begin_layout Plain Layout
12779 InnerTag
12780 \end_layout
12781
12782 \end_inset
12783
12784  [FIXME] (Used only with XML-type formats.)
12785 \end_layout
12786
12787 \begin_layout Description
12788 \begin_inset Flex Code
12789 status collapsed
12790
12791 \begin_layout Plain Layout
12792 InPreamble
12793 \end_layout
12794
12795 \end_inset
12796
12797  [
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802
12803 \emph on
12804 0
12805 \end_layout
12806
12807 \end_inset
12808
12809 ,
12810 \begin_inset space \thinspace{}
12811 \end_inset
12812
12813
12814 \begin_inset Flex Code
12815 status collapsed
12816
12817 \begin_layout Plain Layout
12818 1
12819 \end_layout
12820
12821 \end_inset
12822
12823 ] If 
12824 \begin_inset Flex Code
12825 status collapsed
12826
12827 \begin_layout Plain Layout
12828 1
12829 \end_layout
12830
12831 \end_inset
12832
12833 , marks the style as to be included in the document preamble and not in
12834  the document body.
12835  This is useful for document classes that want such information as the title
12836  and author to appear in the preamble.
12837  Note that this works only for styles for which the 
12838 \begin_inset Flex Code
12839 status collapsed
12840
12841 \begin_layout Plain Layout
12842 LatexType
12843 \end_layout
12844
12845 \end_inset
12846
12847  is 
12848 \begin_inset Flex Code
12849 status collapsed
12850
12851 \begin_layout Plain Layout
12852 Command
12853 \end_layout
12854
12855 \end_inset
12856
12857  or 
12858 \begin_inset Flex Code
12859 status collapsed
12860
12861 \begin_layout Plain Layout
12862 Paragraph
12863 \end_layout
12864
12865 \end_inset
12866
12867 .
12868 \end_layout
12869
12870 \begin_layout Description
12871 \begin_inset Flex Code
12872 status collapsed
12873
12874 \begin_layout Plain Layout
12875 InTitle
12876 \end_layout
12877
12878 \end_inset
12879
12880  [
12881 \begin_inset Flex Code
12882 status collapsed
12883
12884 \begin_layout Plain Layout
12885
12886 \emph on
12887 0
12888 \end_layout
12889
12890 \end_inset
12891
12892 ,
12893 \begin_inset space \thinspace{}
12894 \end_inset
12895
12896
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 ] If 
12907 \begin_inset Flex Code
12908 status collapsed
12909
12910 \begin_layout Plain Layout
12911 1
12912 \end_layout
12913
12914 \end_inset
12915
12916 , marks the style as being part of a title block (see also the 
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 TitleLatexType
12922 \end_layout
12923
12924 \end_inset
12925
12926  and 
12927 \begin_inset Flex Code
12928 status collapsed
12929
12930 \begin_layout Plain Layout
12931 TitleLatexName
12932 \end_layout
12933
12934 \end_inset
12935
12936  global entries).
12937 \end_layout
12938
12939 \begin_layout Description
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 IsAutoNestedBy
12945 \end_layout
12946
12947 \end_inset
12948
12949  Includes a comma-separated list of layouts after which this one should
12950  be nested.
12951  Only makes sense with regard to nestable layouts (such as environments).
12952  Must be ended by 
12953 \begin_inset Quotes eld
12954 \end_inset
12955
12956
12957 \begin_inset Flex Code
12958 status collapsed
12959
12960 \begin_layout Plain Layout
12961 EndIsAutoNestedBy
12962 \end_layout
12963
12964 \end_inset
12965
12966
12967 \begin_inset Quotes erd
12968 \end_inset
12969
12970 .
12971  See also 
12972 \begin_inset Flex Code
12973 status collapsed
12974
12975 \begin_layout Plain Layout
12976 AutoNests
12977 \end_layout
12978
12979 \end_inset
12980
12981 .
12982 \end_layout
12983
12984 \begin_layout Description
12985 \begin_inset Flex Code
12986 status collapsed
12987
12988 \begin_layout Plain Layout
12989 IsTocCaption
12990 \end_layout
12991
12992 \end_inset
12993
12994  [
12995 \begin_inset Flex Code
12996 status collapsed
12997
12998 \begin_layout Plain Layout
12999
13000 \emph on
13001 0
13002 \end_layout
13003
13004 \end_inset
13005
13006 ,
13007 \begin_inset space \thinspace{}
13008 \end_inset
13009
13010
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015 1
13016 \end_layout
13017
13018 \end_inset
13019
13020 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13021  of its contents in its item in the table of contents.
13022  Otherwise, only the label, if it exists, appears.
13023 \end_layout
13024
13025 \begin_layout Description
13026 \begin_inset Flex Code
13027 status collapsed
13028
13029 \begin_layout Plain Layout
13030 ItemCommand
13031 \end_layout
13032
13033 \end_inset
13034
13035  [
13036 \begin_inset Flex Code
13037 status collapsed
13038
13039 \begin_layout Plain Layout
13040 string="item"
13041 \end_layout
13042
13043 \end_inset
13044
13045 ] The \SpecialChar LaTeX
13046  command sequence declaring an item in a list.
13047  The command is to be defined without the preceding backslash (the default
13048  is 
13049 \begin_inset Quotes eld
13050 \end_inset
13051
13052 item
13053 \begin_inset Quotes erd
13054 \end_inset
13055
13056 , resulting in 
13057 \begin_inset Flex Code
13058 status collapsed
13059
13060 \begin_layout Plain Layout
13061
13062 \backslash
13063 item
13064 \end_layout
13065
13066 \end_inset
13067
13068  in the \SpecialChar LaTeX
13069  output).
13070 \end_layout
13071
13072 \begin_layout Description
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 ItemSep
13078 \end_layout
13079
13080 \end_inset
13081
13082  [
13083 \begin_inset Flex Code
13084 status collapsed
13085
13086 \begin_layout Plain Layout
13087 float=0
13088 \end_layout
13089
13090 \end_inset
13091
13092 ] This provides extra space between paragraphs that have the same style.
13093  If you put other styles into an environment, each is separated with the
13094  environment's 
13095 \begin_inset Flex Code
13096 status collapsed
13097
13098 \begin_layout Plain Layout
13099 ParSep
13100 \end_layout
13101
13102 \end_inset
13103
13104 .
13105  But the whole items of the environment are additionally separated with
13106  this 
13107 \begin_inset Flex Code
13108 status collapsed
13109
13110 \begin_layout Plain Layout
13111 ItemSep
13112 \end_layout
13113
13114 \end_inset
13115
13116 .
13117  Note that this is a
13118 \emph on
13119  multiplier.
13120 \end_layout
13121
13122 \begin_layout Description
13123 \begin_inset Flex Code
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127 ItemTag
13128 \end_layout
13129
13130 \end_inset
13131
13132  [FIXME] (Used only with XML-type formats.)
13133 \end_layout
13134
13135 \begin_layout Description
13136 \begin_inset Flex Code
13137 status collapsed
13138
13139 \begin_layout Plain Layout
13140 KeepEmpty
13141 \end_layout
13142
13143 \end_inset
13144
13145  [
13146 \begin_inset Flex Code
13147 status collapsed
13148
13149 \begin_layout Plain Layout
13150
13151 \emph on
13152 0
13153 \end_layout
13154
13155 \end_inset
13156
13157 ,
13158 \begin_inset space \thinspace{}
13159 \end_inset
13160
13161
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166 1
13167 \end_layout
13168
13169 \end_inset
13170
13171 ] Usually \SpecialChar LyX
13172  does not allow you to leave a paragraph empty, since it would
13173  lead to empty \SpecialChar LaTeX
13174  output.
13175  There are some cases where this could be desirable however: in a letter
13176  template, the required fields can be provided as empty fields, so that
13177  people do not forget them; in some special classes, a style can be used
13178  as some kind of break, which does not contain actual text.
13179 \end_layout
13180
13181 \begin_layout Description
13182 \begin_inset Flex Code
13183 status collapsed
13184
13185 \begin_layout Plain Layout
13186 LabelBottomsep
13187 \end_layout
13188
13189 \end_inset
13190
13191  [
13192 \begin_inset Flex Code
13193 status collapsed
13194
13195 \begin_layout Plain Layout
13196 float=0
13197 \end_layout
13198
13199 \end_inset
13200
13201 ] The vertical space between the label and the text body.
13202  Only used for labels that are above the text body (
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 Top_Environment
13208 \end_layout
13209
13210 \end_inset
13211
13212  and
13213 \begin_inset Newline newline
13214 \end_inset
13215
13216
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 Centered_Top_Environment
13222 \end_layout
13223
13224 \end_inset
13225
13226 ).
13227 \end_layout
13228
13229 \begin_layout Description
13230 \begin_inset Flex Code
13231 status collapsed
13232
13233 \begin_layout Plain Layout
13234 LabelCounter
13235 \end_layout
13236
13237 \end_inset
13238
13239  [
13240 \begin_inset Flex Code
13241 status collapsed
13242
13243 \begin_layout Plain Layout
13244 string=""
13245 \end_layout
13246
13247 \end_inset
13248
13249 ] The name of the counter for automatic numbering.
13250  In order to have the counter appear with your label, you will need to reference
13251  it in the 
13252 \begin_inset Flex Code
13253 status collapsed
13254
13255 \begin_layout Plain Layout
13256
13257 \family typewriter
13258 LabelString
13259 \end_layout
13260
13261 \end_inset
13262
13263 .
13264  This will work with 
13265 \begin_inset Flex Code
13266 status collapsed
13267
13268 \begin_layout Plain Layout
13269 LabelType
13270 \end_layout
13271
13272 \end_inset
13273
13274 s, 
13275 \begin_inset Flex Code
13276 status collapsed
13277
13278 \begin_layout Plain Layout
13279 Static
13280 \end_layout
13281
13282 \end_inset
13283
13284
13285 \begin_inset Flex Code
13286 status collapsed
13287
13288 \begin_layout Plain Layout
13289 Above
13290 \end_layout
13291
13292 \end_inset
13293
13294  and 
13295 \begin_inset Flex Code
13296 status collapsed
13297
13298 \begin_layout Plain Layout
13299 Centered
13300 \end_layout
13301
13302 \end_inset
13303
13304 , at least.
13305 \begin_inset Newline newline
13306 \end_inset
13307
13308 This 
13309 \emph on
13310 may
13311 \emph default
13312  also be given if 
13313 \begin_inset Flex Code
13314 status collapsed
13315
13316 \begin_layout Plain Layout
13317 LabelType
13318 \end_layout
13319
13320 \end_inset
13321
13322  is 
13323 \begin_inset Flex Code
13324 status collapsed
13325
13326 \begin_layout Plain Layout
13327 Enumerate
13328 \end_layout
13329
13330 \end_inset
13331
13332 , though this case is a bit complicated.
13333  Suppose you declare 
13334 \begin_inset Quotes eld
13335 \end_inset
13336
13337
13338 \begin_inset Flex Code
13339 status collapsed
13340
13341 \begin_layout Plain Layout
13342 LabelCounter myenum
13343 \end_layout
13344
13345 \end_inset
13346
13347
13348 \begin_inset Quotes erd
13349 \end_inset
13350
13351 .
13352  Then the actual counters used are 
13353 \begin_inset Flex Code
13354 status collapsed
13355
13356 \begin_layout Plain Layout
13357 myenumi
13358 \end_layout
13359
13360 \end_inset
13361
13362
13363 \begin_inset Flex Code
13364 status collapsed
13365
13366 \begin_layout Plain Layout
13367 myenumii
13368 \end_layout
13369
13370 \end_inset
13371
13372
13373 \begin_inset Flex Code
13374 status collapsed
13375
13376 \begin_layout Plain Layout
13377 myenumiii
13378 \end_layout
13379
13380 \end_inset
13381
13382  and 
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 myenumiv
13388 \end_layout
13389
13390 \end_inset
13391
13392 , much as in \SpecialChar LaTeX
13393 .
13394  These counters must all be declared separately.
13395 \begin_inset Newline newline
13396 \end_inset
13397
13398 See 
13399 \begin_inset CommandInset ref
13400 LatexCommand ref
13401 reference "subsec:Counters"
13402
13403 \end_inset
13404
13405  for details on counters.
13406 \end_layout
13407
13408 \begin_layout Description
13409 \begin_inset Flex Code
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413 LabelFont
13414 \end_layout
13415
13416 \end_inset
13417
13418  The font used for the label.
13419  See 
13420 \begin_inset CommandInset ref
13421 LatexCommand ref
13422 reference "subsec:Font-description"
13423
13424 \end_inset
13425
13426 .
13427 \end_layout
13428
13429 \begin_layout Description
13430 \begin_inset Flex Code
13431 status collapsed
13432
13433 \begin_layout Plain Layout
13434 LabelIndent
13435 \end_layout
13436
13437 \end_inset
13438
13439  [
13440 \begin_inset Flex Code
13441 status collapsed
13442
13443 \begin_layout Plain Layout
13444 string=""
13445 \end_layout
13446
13447 \end_inset
13448
13449 ] Text that indicates how far a label should be indented.
13450 \end_layout
13451
13452 \begin_layout Description
13453 \begin_inset Flex Code
13454 status collapsed
13455
13456 \begin_layout Plain Layout
13457 LabelSep
13458 \end_layout
13459
13460 \end_inset
13461
13462  [
13463 \begin_inset Flex Code
13464 status collapsed
13465
13466 \begin_layout Plain Layout
13467 string=""
13468 \end_layout
13469
13470 \end_inset
13471
13472 ] Text that indicates the amount of horizontal space between the label and
13473  the text body.
13474  Only used for labels that are not above the text body.
13475 \end_layout
13476
13477 \begin_layout Description
13478 \begin_inset Flex Code
13479 status collapsed
13480
13481 \begin_layout Plain Layout
13482 LabelString
13483 \end_layout
13484
13485 \end_inset
13486
13487  [
13488 \begin_inset Flex Code
13489 status collapsed
13490
13491 \begin_layout Plain Layout
13492 string=""
13493 \end_layout
13494
13495 \end_inset
13496
13497 ] The string used for the label.
13498  When 
13499 \begin_inset Flex Code
13500 status collapsed
13501
13502 \begin_layout Plain Layout
13503 LabelCounter
13504 \end_layout
13505
13506 \end_inset
13507
13508  is set, this string can be contain the special formatting commands described
13509  in 
13510 \begin_inset CommandInset ref
13511 LatexCommand ref
13512 reference "subsec:Counters"
13513
13514 \end_inset
13515
13516 .
13517 \end_layout
13518
13519 \begin_layout Description
13520 \begin_inset Flex Code
13521 status collapsed
13522
13523 \begin_layout Plain Layout
13524 LabelStringAppendix
13525 \end_layout
13526
13527 \end_inset
13528
13529  [
13530 \begin_inset Flex Code
13531 status collapsed
13532
13533 \begin_layout Plain Layout
13534 string=""
13535 \end_layout
13536
13537 \end_inset
13538
13539 ] This is used inside the appendix instead of
13540 \begin_inset Newline newline
13541 \end_inset
13542
13543
13544 \begin_inset Flex Code
13545 status collapsed
13546
13547 \begin_layout Plain Layout
13548 LabelString
13549 \end_layout
13550
13551 \end_inset
13552
13553 .
13554  Note that every 
13555 \begin_inset Flex Code
13556 status collapsed
13557
13558 \begin_layout Plain Layout
13559 LabelString
13560 \end_layout
13561
13562 \end_inset
13563
13564  statement resets
13565 \begin_inset Newline newline
13566 \end_inset
13567
13568
13569 \begin_inset Flex Code
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 LabelStringAppendix
13574 \end_layout
13575
13576 \end_inset
13577
13578  too.
13579 \end_layout
13580
13581 \begin_layout Description
13582 \begin_inset Flex Code
13583 status collapsed
13584
13585 \begin_layout Plain Layout
13586 LabelTag
13587 \end_layout
13588
13589 \end_inset
13590
13591  [FIXME] (Used only with XML-type formats.)
13592 \end_layout
13593
13594 \begin_layout Description
13595 \begin_inset Flex Code
13596 status collapsed
13597
13598 \begin_layout Plain Layout
13599 LabelType
13600 \end_layout
13601
13602 \end_inset
13603
13604  [
13605 \begin_inset Flex Code
13606 status collapsed
13607
13608 \begin_layout Plain Layout
13609
13610 \emph on
13611 No_Label
13612 \emph default
13613 , Manual, Static, Above, 
13614 \begin_inset Newline newline
13615 \end_inset
13616
13617 Centered, Sensitive, Enumerate,
13618 \begin_inset Newline newline
13619 \end_inset
13620
13621 Itemize, Bibliography
13622 \end_layout
13623
13624 \end_inset
13625
13626 ]
13627 \end_layout
13628
13629 \begin_deeper
13630 \begin_layout Description
13631 \begin_inset Flex Code
13632 status collapsed
13633
13634 \begin_layout Plain Layout
13635 Manual
13636 \end_layout
13637
13638 \end_inset
13639
13640  means the label is the very first word (up to the first real blank).
13641  Use protected spaces if you want more than one word as the label.
13642  
13643 \end_layout
13644
13645 \begin_layout Description
13646 \begin_inset Flex Code
13647 status collapsed
13648
13649 \begin_layout Plain Layout
13650 Static
13651 \end_layout
13652
13653 \end_inset
13654
13655  means the label is simply what is declared as 
13656 \begin_inset Flex Code
13657 status collapsed
13658
13659 \begin_layout Plain Layout
13660 LabelString
13661 \end_layout
13662
13663 \end_inset
13664
13665 .
13666  This will be displayed 
13667 \begin_inset Quotes eld
13668 \end_inset
13669
13670 inline
13671 \begin_inset Quotes erd
13672 \end_inset
13673
13674 , at the beginning of the paragraph.
13675  If the 
13676 \begin_inset Flex Code
13677 status collapsed
13678
13679 \begin_layout Plain Layout
13680 LatexType
13681 \end_layout
13682
13683 \end_inset
13684
13685  is 
13686 \begin_inset Flex Code
13687 status collapsed
13688
13689 \begin_layout Plain Layout
13690 Environment
13691 \end_layout
13692
13693 \end_inset
13694
13695 , then it will be displayed only in the first paragraph of any sequence
13696  of paragraphs with the same 
13697 \begin_inset Flex Code
13698 status collapsed
13699
13700 \begin_layout Plain Layout
13701 Style
13702 \end_layout
13703
13704 \end_inset
13705
13706 .
13707 \end_layout
13708
13709 \begin_layout Description
13710 \begin_inset Flex Code
13711 status collapsed
13712
13713 \begin_layout Plain Layout
13714 Above
13715 \end_layout
13716
13717 \end_inset
13718
13719
13720 \begin_inset space ~
13721 \end_inset
13722
13723 and
13724 \begin_inset space ~
13725 \end_inset
13726
13727
13728 \begin_inset Flex Code
13729 status collapsed
13730
13731 \begin_layout Plain Layout
13732 Centered
13733 \end_layout
13734
13735 \end_inset
13736
13737  are special cases of 
13738 \begin_inset Flex Code
13739 status collapsed
13740
13741 \begin_layout Plain Layout
13742 Static
13743 \end_layout
13744
13745 \end_inset
13746
13747 .
13748  The label will be printed above the paragraph either at the beginning of
13749  the line or centered.
13750 \end_layout
13751
13752 \begin_layout Description
13753 \begin_inset Flex Code
13754 status collapsed
13755
13756 \begin_layout Plain Layout
13757 Sensitive
13758 \end_layout
13759
13760 \end_inset
13761
13762  is a special case for the caption-labels 
13763 \begin_inset Quotes eld
13764 \end_inset
13765
13766 Figure
13767 \begin_inset Quotes erd
13768 \end_inset
13769
13770  and 
13771 \begin_inset Quotes eld
13772 \end_inset
13773
13774 Table
13775 \begin_inset Quotes erd
13776 \end_inset
13777
13778 .
13779 \begin_inset Newline newline
13780 \end_inset
13781
13782
13783 \begin_inset Flex Code
13784 status collapsed
13785
13786 \begin_layout Plain Layout
13787 Sensitive
13788 \end_layout
13789
13790 \end_inset
13791
13792  means the (hardcoded) label string depends on the kind of float: It is
13793  hardcoded to be `FloatType N', where N is the value of the counter associated
13794  with the float.
13795  For the case that a caption is inserted outside of a float the 
13796 \begin_inset Flex Code
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 LabelString
13801 \end_layout
13802
13803 \end_inset
13804
13805  will appear as 
13806 \begin_inset Quotes eld
13807 \end_inset
13808
13809 Senseless!
13810 \begin_inset Quotes erd
13811 \end_inset
13812
13813 .
13814 \end_layout
13815
13816 \begin_layout Description
13817 \begin_inset Flex Code
13818 status collapsed
13819
13820 \begin_layout Plain Layout
13821 Enumerate
13822 \end_layout
13823
13824 \end_inset
13825
13826  produces the usual sort of enumeration labels.
13827  The number type needs to be set in the 
13828 \family sans
13829 Counter
13830 \family default
13831 , see 
13832 \begin_inset CommandInset ref
13833 LatexCommand ref
13834 reference "subsec:Counters"
13835
13836 \end_inset
13837
13838 .
13839 \end_layout
13840
13841 \begin_layout Description
13842 \begin_inset Flex Code
13843 status collapsed
13844
13845 \begin_layout Plain Layout
13846 Itemize
13847 \end_layout
13848
13849 \end_inset
13850
13851  produces various bullets at the different levels.
13852  The bullet types displayed can be set via 
13853 \begin_inset Flex Noun
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 Document\SpecialChar menuseparator
13858 Settings\SpecialChar menuseparator
13859 Bullets
13860 \end_layout
13861
13862 \end_inset
13863
13864 .
13865 \end_layout
13866
13867 \begin_layout Description
13868 \begin_inset Flex Code
13869 status collapsed
13870
13871 \begin_layout Plain Layout
13872 Bibliography
13873 \end_layout
13874
13875 \end_inset
13876
13877  should be used only with 
13878 \begin_inset Flex Code
13879 status collapsed
13880
13881 \begin_layout Plain Layout
13882 LatexType BibEnvironment
13883 \end_layout
13884
13885 \end_inset
13886
13887 .
13888 \end_layout
13889
13890 \end_deeper
13891 \begin_layout Description
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 LangPreamble
13897 \end_layout
13898
13899 \end_inset
13900
13901  Note that this will completely override any prior 
13902 \begin_inset Flex Code
13903 status collapsed
13904
13905 \begin_layout Plain Layout
13906 LangPreamble
13907 \end_layout
13908
13909 \end_inset
13910
13911  declaration for this style.
13912  Must end with 
13913 \begin_inset Quotes eld
13914 \end_inset
13915
13916
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921 EndLangPreamble
13922 \end_layout
13923
13924 \end_inset
13925
13926
13927 \begin_inset Quotes erd
13928 \end_inset
13929
13930 .
13931  See 
13932 \begin_inset CommandInset ref
13933 LatexCommand ref
13934 reference "subsec:I18n"
13935
13936 \end_inset
13937
13938  for details on its use.
13939 \end_layout
13940
13941 \begin_layout Description
13942 \begin_inset Flex Code
13943 status collapsed
13944
13945 \begin_layout Plain Layout
13946 LatexName
13947 \end_layout
13948
13949 \end_inset
13950
13951  [
13952 \begin_inset Flex Code
13953 status collapsed
13954
13955 \begin_layout Plain Layout
13956 <name>
13957 \end_layout
13958
13959 \end_inset
13960
13961 ] The name of the corresponding \SpecialChar LaTeX
13962  stuff.
13963  Either the environment or command name.
13964 \end_layout
13965
13966 \begin_layout Description
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 LatexParam
13972 \end_layout
13973
13974 \end_inset
13975
13976  [
13977 \begin_inset Flex Code
13978 status collapsed
13979
13980 \begin_layout Plain Layout
13981 <parameter>
13982 \end_layout
13983
13984 \end_inset
13985
13986 ] An optional parameter for the corresponding 
13987 \begin_inset Flex Code
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991 LatexName
13992 \end_layout
13993
13994 \end_inset
13995
13996  stuff.
13997  This parameter cannot be changed from within \SpecialChar LyX
13998  (use 
13999 \begin_inset Flex Code
14000 status collapsed
14001
14002 \begin_layout Plain Layout
14003 Argument
14004 \end_layout
14005
14006 \end_inset
14007
14008  for customizable parameters).
14009  This will be output as is after all \SpecialChar LaTeX
14010  
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 Argument
14016 \end_layout
14017
14018 \end_inset
14019
14020 s.
14021 \end_layout
14022
14023 \begin_layout Description
14024 \begin_inset Flex Code
14025 status collapsed
14026
14027 \begin_layout Plain Layout
14028 LatexType
14029 \end_layout
14030
14031 \end_inset
14032
14033  [
14034 \begin_inset Flex Code
14035 status collapsed
14036
14037 \begin_layout Plain Layout
14038
14039 \emph on
14040 Paragraph
14041 \emph default
14042 , Command, Environment, Item_Environment,
14043 \begin_inset Newline newline
14044 \end_inset
14045
14046 List_Environment, Bib_Environment
14047 \end_layout
14048
14049 \end_inset
14050
14051 ] How the style should be translated into \SpecialChar LaTeX
14052 .
14053 \begin_inset Foot
14054 status collapsed
14055
14056 \begin_layout Plain Layout
14057 \begin_inset Flex Code
14058 status collapsed
14059
14060 \begin_layout Plain Layout
14061 LatexType
14062 \end_layout
14063
14064 \end_inset
14065
14066  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14067  Visit the SGML class files for specific examples.
14068 \end_layout
14069
14070 \end_inset
14071
14072
14073 \end_layout
14074
14075 \begin_deeper
14076 \begin_layout Description
14077 \begin_inset Flex Code
14078 status collapsed
14079
14080 \begin_layout Plain Layout
14081 Paragraph
14082 \end_layout
14083
14084 \end_inset
14085
14086  means nothing special.
14087 \end_layout
14088
14089 \begin_layout Description
14090 \begin_inset Flex Code
14091 status collapsed
14092
14093 \begin_layout Plain Layout
14094 Command
14095 \end_layout
14096
14097 \end_inset
14098
14099  means 
14100 \begin_inset Flex Code
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104
14105 \backslash
14106
14107 \emph on
14108 LatexName
14109 \emph default
14110 {\SpecialChar ldots
14111 }
14112 \end_layout
14113
14114 \end_inset
14115
14116 .
14117 \end_layout
14118
14119 \begin_layout Description
14120 \begin_inset Flex Code
14121 status collapsed
14122
14123 \begin_layout Plain Layout
14124 Environment
14125 \end_layout
14126
14127 \end_inset
14128
14129  means 
14130 \begin_inset Flex Code
14131 status collapsed
14132
14133 \begin_layout Plain Layout
14134
14135 \backslash
14136 begin{
14137 \emph on
14138 LatexName
14139 \emph default
14140 }\SpecialChar ldots
14141
14142 \backslash
14143 end{
14144 \emph on
14145 LatexName
14146 \emph default
14147 }
14148 \end_layout
14149
14150 \end_inset
14151
14152 .
14153  
14154 \end_layout
14155
14156 \begin_layout Description
14157 \begin_inset Flex Code
14158 status collapsed
14159
14160 \begin_layout Plain Layout
14161 Item_Environment
14162 \end_layout
14163
14164 \end_inset
14165
14166  is the same as 
14167 \begin_inset Flex Code
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171 Environment
14172 \end_layout
14173
14174 \end_inset
14175
14176 , except that an 
14177 \begin_inset Flex Code
14178 status collapsed
14179
14180 \begin_layout Plain Layout
14181
14182 \backslash
14183 item
14184 \end_layout
14185
14186 \end_inset
14187
14188  is generated for each paragraph of this environment.
14189  
14190 \end_layout
14191
14192 \begin_layout Description
14193 \begin_inset Flex Code
14194 status collapsed
14195
14196 \begin_layout Plain Layout
14197 List_Environment
14198 \end_layout
14199
14200 \end_inset
14201
14202  is the same as 
14203 \begin_inset Flex Code
14204 status collapsed
14205
14206 \begin_layout Plain Layout
14207 Item_Environment
14208 \end_layout
14209
14210 \end_inset
14211
14212 , except that
14213 \begin_inset Newline newline
14214 \end_inset
14215
14216
14217 \begin_inset Flex Code
14218 status collapsed
14219
14220 \begin_layout Plain Layout
14221 LabelWidthString
14222 \end_layout
14223
14224 \end_inset
14225
14226  is passed as an argument to the environment.
14227 \begin_inset Newline newline
14228 \end_inset
14229
14230
14231 \begin_inset Flex Code
14232 status collapsed
14233
14234 \begin_layout Plain Layout
14235 LabelWidthString
14236 \end_layout
14237
14238 \end_inset
14239
14240  can be defined in the 
14241 \begin_inset Flex Noun
14242 status collapsed
14243
14244 \begin_layout Plain Layout
14245 Edit\SpecialChar menuseparator
14246 Paragraph
14247 \begin_inset space ~
14248 \end_inset
14249
14250 settings
14251 \end_layout
14252
14253 \end_inset
14254
14255  dialog.
14256 \end_layout
14257
14258 \begin_layout Description
14259 \begin_inset Flex Code
14260 status collapsed
14261
14262 \begin_layout Plain Layout
14263 Bib_Environment
14264 \end_layout
14265
14266 \end_inset
14267
14268  is like 
14269 \begin_inset Flex Code
14270 status collapsed
14271
14272 \begin_layout Plain Layout
14273 Environment
14274 \end_layout
14275
14276 \end_inset
14277
14278  but adds the necessary mandatory argument (the longest label) to the begin
14279  statement of the bibliography environment:
14280 \begin_inset Newline newline
14281 \end_inset
14282
14283
14284 \begin_inset Flex Code
14285 status collapsed
14286
14287 \begin_layout Plain Layout
14288
14289 \backslash
14290 begin{thebibliography}{99}
14291 \end_layout
14292
14293 \end_inset
14294
14295 .
14296  It is therefore only useful for bibliography environments.
14297  The default longest label 
14298 \begin_inset Quotes eld
14299 \end_inset
14300
14301 99
14302 \begin_inset Quotes erd
14303 \end_inset
14304
14305  can be changed by the user in the paragraph settings of a bibliography
14306  item.
14307 \end_layout
14308
14309 \begin_layout Standard
14310 Putting the last few things together, the \SpecialChar LaTeX
14311  output will be either: 
14312 \end_layout
14313
14314 \begin_layout LyX-Code
14315
14316 \backslash
14317 LatexName[LatexParam]{\SpecialChar ldots
14318 }
14319 \end_layout
14320
14321 \begin_layout Standard
14322 or: 
14323 \end_layout
14324
14325 \begin_layout LyX-Code
14326
14327 \backslash
14328 begin{LatexName}[LatexParam] \SpecialChar ldots
14329  
14330 \backslash
14331 end{LatexName}.
14332 \end_layout
14333
14334 \begin_layout Standard
14335 depending upon the \SpecialChar LaTeX
14336  type.
14337 \end_layout
14338
14339 \end_deeper
14340 \begin_layout Description
14341 \begin_inset Flex Code
14342 status collapsed
14343
14344 \begin_layout Plain Layout
14345 LeftDelim
14346 \end_layout
14347
14348 \end_inset
14349
14350  [
14351 \begin_inset Flex Code
14352 status collapsed
14353
14354 \begin_layout Plain Layout
14355 string
14356 \end_layout
14357
14358 \end_inset
14359
14360 ] A string that is put at the beginning of the style content.
14361  A line break in the output can be indicated by 
14362 \begin_inset Flex Code
14363 status collapsed
14364
14365 \begin_layout Plain Layout
14366 <br/>
14367 \end_layout
14368
14369 \end_inset
14370
14371 .
14372 \end_layout
14373
14374 \begin_layout Description
14375 \begin_inset Flex Code
14376 status collapsed
14377
14378 \begin_layout Plain Layout
14379 LeftMargin
14380 \end_layout
14381
14382 \end_inset
14383
14384  [
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389 string=""
14390 \end_layout
14391
14392 \end_inset
14393
14394 ] If you put styles into environments, the different 
14395 \begin_inset Flex Code
14396 status collapsed
14397
14398 \begin_layout Plain Layout
14399 LeftMargin
14400 \end_layout
14401
14402 \end_inset
14403
14404  are not simply added, but added with a factor 
14405 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14406 \end_inset
14407
14408 .
14409  Note that this parameter is also used when 
14410 \begin_inset Flex Code
14411 status collapsed
14412
14413 \begin_layout Plain Layout
14414 Margin
14415 \end_layout
14416
14417 \end_inset
14418
14419  is defined as 
14420 \begin_inset Flex Code
14421 status collapsed
14422
14423 \begin_layout Plain Layout
14424 Manual
14425 \end_layout
14426
14427 \end_inset
14428
14429  or 
14430 \begin_inset Flex Code
14431 status collapsed
14432
14433 \begin_layout Plain Layout
14434 Dynamic
14435 \end_layout
14436
14437 \end_inset
14438
14439 .
14440  Then it is added to the manual or dynamic margin.
14441 \begin_inset Newline newline
14442 \end_inset
14443
14444 For example 
14445 \begin_inset Quotes eld
14446 \end_inset
14447
14448
14449 \begin_inset Flex Code
14450 status collapsed
14451
14452 \begin_layout Plain Layout
14453 MM
14454 \end_layout
14455
14456 \end_inset
14457
14458
14459 \begin_inset Quotes erd
14460 \end_inset
14461
14462  means that the paragraph is indented with the width of 
14463 \begin_inset Quotes eld
14464 \end_inset
14465
14466
14467 \begin_inset Flex Code
14468 status collapsed
14469
14470 \begin_layout Plain Layout
14471 MM
14472 \end_layout
14473
14474 \end_inset
14475
14476
14477 \begin_inset Quotes erd
14478 \end_inset
14479
14480  in the normal font.
14481  You can get a negative width by prefixing the string with 
14482 \begin_inset Quotes eld
14483 \end_inset
14484
14485
14486 \begin_inset Flex Code
14487 status collapsed
14488
14489 \begin_layout Plain Layout
14490 -
14491 \end_layout
14492
14493 \end_inset
14494
14495
14496 \begin_inset Quotes erd
14497 \end_inset
14498
14499 .
14500  This way was chosen so that the look is the same with each used screen
14501  font.
14502 \end_layout
14503
14504 \begin_layout Description
14505 \begin_inset Flex Code
14506 status collapsed
14507
14508 \begin_layout Plain Layout
14509 Margin
14510 \end_layout
14511
14512 \end_inset
14513
14514  [
14515 \begin_inset Flex Code
14516 status collapsed
14517
14518 \begin_layout Plain Layout
14519
14520 \emph on
14521 Static
14522 \emph default
14523 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14524 \end_layout
14525
14526 \end_inset
14527
14528
14529 \begin_inset Newline newline
14530 \end_inset
14531
14532 The kind of margin that the style has on the left side.
14533 \end_layout
14534
14535 \begin_deeper
14536 \begin_layout Description
14537 \begin_inset Flex Code
14538 status collapsed
14539
14540 \begin_layout Plain Layout
14541 Static
14542 \end_layout
14543
14544 \end_inset
14545
14546  just means a fixed margin.
14547 \end_layout
14548
14549 \begin_layout Description
14550 \begin_inset Flex Code
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554 Manual
14555 \end_layout
14556
14557 \end_inset
14558
14559  means that the left margin depends on the string entered in the 
14560 \begin_inset Flex Noun
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564 Edit\SpecialChar menuseparator
14565 Paragraph
14566 \begin_inset space ~
14567 \end_inset
14568
14569 Settings
14570 \end_layout
14571
14572 \end_inset
14573
14574  dialog.
14575  This is used to typeset nice lists without tabulators.
14576 \end_layout
14577
14578 \begin_layout Description
14579 \begin_inset Flex Code
14580 status collapsed
14581
14582 \begin_layout Plain Layout
14583 Dynamic
14584 \end_layout
14585
14586 \end_inset
14587
14588  means that the margin depends on the size of the label.
14589  This is used for automatic enumerated headlines.
14590  It is obvious that the headline 
14591 \begin_inset Quotes eld
14592 \end_inset
14593
14594 5.4.3.2.1 Very long headline
14595 \begin_inset Quotes erd
14596 \end_inset
14597
14598  must have a wider left margin (as wide as 
14599 \begin_inset Quotes eld
14600 \end_inset
14601
14602 5.4.3.2.1
14603 \begin_inset Quotes erd
14604 \end_inset
14605
14606  plus the space) than 
14607 \begin_inset Quotes eld
14608 \end_inset
14609
14610 3.2 Very long headline
14611 \begin_inset Quotes erd
14612 \end_inset
14613
14614 , even if standard 
14615 \begin_inset Quotes eld
14616 \end_inset
14617
14618 word processors
14619 \begin_inset Quotes erd
14620 \end_inset
14621
14622  are not able to do this.
14623 \end_layout
14624
14625 \begin_layout Description
14626 \begin_inset Flex Code
14627 status collapsed
14628
14629 \begin_layout Plain Layout
14630 First_Dynamic
14631 \end_layout
14632
14633 \end_inset
14634
14635  is similar, but only the very first row of the paragraph is dynamic, while
14636  the others are static; this is used, for example, for descriptions.
14637 \end_layout
14638
14639 \begin_layout Description
14640 \begin_inset Flex Code
14641 status collapsed
14642
14643 \begin_layout Plain Layout
14644 Right_Address_Box
14645 \end_layout
14646
14647 \end_inset
14648
14649  means the margin is chosen in a way that the longest row of this paragraph
14650  fits to the right margin.
14651  This is used to typeset an address on the right edge of the page.
14652 \end_layout
14653
14654 \end_deeper
14655 \begin_layout Description
14656 \begin_inset Flex Code
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660 NeedProtect
14661 \end_layout
14662
14663 \end_inset
14664
14665  [
14666 \begin_inset Flex Code
14667 status collapsed
14668
14669 \begin_layout Plain Layout
14670
14671 \emph on
14672 0
14673 \end_layout
14674
14675 \end_inset
14676
14677 ,
14678 \begin_inset space \thinspace{}
14679 \end_inset
14680
14681
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 1
14687 \end_layout
14688
14689 \end_inset
14690
14691 ] Whether fragile commands in this style should be 
14692 \begin_inset Flex Code
14693 status collapsed
14694
14695 \begin_layout Plain Layout
14696
14697 \backslash
14698 protect
14699 \end_layout
14700
14701 \end_inset
14702
14703 'ed.
14704  (Note: This is 
14705 \emph on
14706 not
14707 \emph default
14708  whether this command should itself be protected.)
14709 \end_layout
14710
14711 \begin_layout Description
14712 \begin_inset Flex Code
14713 status collapsed
14714
14715 \begin_layout Plain Layout
14716 Newline
14717 \end_layout
14718
14719 \end_inset
14720
14721  [
14722 \begin_inset Flex Code
14723 status collapsed
14724
14725 \begin_layout Plain Layout
14726 0
14727 \end_layout
14728
14729 \end_inset
14730
14731 ,
14732 \begin_inset space \thinspace{}
14733 \end_inset
14734
14735
14736 \begin_inset Flex Code
14737 status collapsed
14738
14739 \begin_layout Plain Layout
14740
14741 \emph on
14742 1
14743 \end_layout
14744
14745 \end_inset
14746
14747 ] Whether newlines are translated into \SpecialChar LaTeX
14748  newlines (
14749 \begin_inset Flex Code
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753
14754 \backslash
14755
14756 \backslash
14757
14758 \end_layout
14759
14760 \end_inset
14761
14762 ) or not.
14763  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14764  editing
14765  inside \SpecialChar LyX
14766 .
14767 \end_layout
14768
14769 \begin_layout Description
14770 \begin_inset Flex Code
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774 NextNoIndent
14775 \end_layout
14776
14777 \end_inset
14778
14779  [
14780 \begin_inset Flex Code
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784
14785 \emph on
14786 0
14787 \end_layout
14788
14789 \end_inset
14790
14791 ,
14792 \begin_inset space \thinspace{}
14793 \end_inset
14794
14795
14796 \begin_inset Flex Code
14797 status collapsed
14798
14799 \begin_layout Plain Layout
14800 1
14801 \end_layout
14802
14803 \end_inset
14804
14805 ] If set to true, and if 
14806 \begin_inset Flex Code
14807 status collapsed
14808
14809 \begin_layout Plain Layout
14810 DefaultStyle
14811 \end_layout
14812
14813 \end_inset
14814
14815  (usually 
14816 \begin_inset Flex Code
14817 status collapsed
14818
14819 \begin_layout Plain Layout
14820 Standard
14821 \end_layout
14822
14823 \end_inset
14824
14825 ) paragraphs are being indented, then the indentation of such a paragraph
14826  following one of this type will be suppressed.
14827  (So this will not affect the display of non-default paragraphs.)
14828 \end_layout
14829
14830 \begin_layout Description
14831 \begin_inset Flex Code
14832 status collapsed
14833
14834 \begin_layout Plain Layout
14835 ObsoletedBy
14836 \end_layout
14837
14838 \end_inset
14839
14840  [
14841 \begin_inset Flex Code
14842 status collapsed
14843
14844 \begin_layout Plain Layout
14845 <name>
14846 \end_layout
14847
14848 \end_inset
14849
14850 ] Name of a style that has replaced this style.
14851  This is used to rename a style, while keeping backward compatibility.
14852 \end_layout
14853
14854 \begin_layout Description
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859 ParagraphGroup
14860 \end_layout
14861
14862 \end_inset
14863
14864  [
14865 \begin_inset Flex Code
14866 status collapsed
14867
14868 \begin_layout Plain Layout
14869 0
14870 \end_layout
14871
14872 \end_inset
14873
14874 ,
14875 \begin_inset space \thinspace{}
14876 \end_inset
14877
14878
14879 \begin_inset Flex Code
14880 status collapsed
14881
14882 \begin_layout Plain Layout
14883 1
14884 \end_layout
14885
14886 \end_inset
14887
14888 ] Determines whether consecutive paragraphs of the same type are treated
14889  as belonging together.
14890  This has the effect that the 
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 GuiLabel
14896 \end_layout
14897
14898 \end_inset
14899
14900  is only printed once before such a group.
14901  By default, this is true for 
14902 \begin_inset Flex Code
14903 status collapsed
14904
14905 \begin_layout Plain Layout
14906 LaTeXType
14907 \end_layout
14908
14909 \end_inset
14910
14911  
14912 \begin_inset Flex Code
14913 status collapsed
14914
14915 \begin_layout Plain Layout
14916 Environment
14917 \end_layout
14918
14919 \end_inset
14920
14921  and 
14922 \begin_inset Flex Code
14923 status collapsed
14924
14925 \begin_layout Plain Layout
14926 Bib_Environment
14927 \end_layout
14928
14929 \end_inset
14930
14931  and false for all other types.
14932 \end_layout
14933
14934 \begin_layout Description
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 ParbreakIsNewline
14940 \end_layout
14941
14942 \end_inset
14943
14944  [
14945 \begin_inset Flex Code
14946 status collapsed
14947
14948 \begin_layout Plain Layout
14949
14950 \emph on
14951 0
14952 \end_layout
14953
14954 \end_inset
14955
14956 ,
14957 \begin_inset space \thinspace{}
14958 \end_inset
14959
14960
14961 \begin_inset Flex Code
14962 status collapsed
14963
14964 \begin_layout Plain Layout
14965 1
14966 \end_layout
14967
14968 \end_inset
14969
14970 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14971  output,
14972  but only by a line break; together with 
14973 \begin_inset Flex Code
14974 status collapsed
14975
14976 \begin_layout Plain Layout
14977 PassThru 1
14978 \end_layout
14979
14980 \end_inset
14981
14982 , this allows to emulate a plain text editor (like the ERT inset).
14983 \end_layout
14984
14985 \begin_layout Description
14986 \begin_inset Flex Code
14987 status collapsed
14988
14989 \begin_layout Plain Layout
14990 ParIndent
14991 \end_layout
14992
14993 \end_inset
14994
14995  [
14996 \begin_inset Flex Code
14997 status collapsed
14998
14999 \begin_layout Plain Layout
15000 string=""
15001 \end_layout
15002
15003 \end_inset
15004
15005 ] The indent of the very first line of a paragraph.
15006  The
15007 \begin_inset Newline newline
15008 \end_inset
15009
15010
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 Parindent
15016 \end_layout
15017
15018 \end_inset
15019
15020  will be fixed for a certain style.
15021  The exception is the default style, since the indentation for these paragraphs
15022  can be prohibited with 
15023 \begin_inset Flex Code
15024 status collapsed
15025
15026 \begin_layout Plain Layout
15027 NextNoIndent
15028 \end_layout
15029
15030 \end_inset
15031
15032 .
15033  Also, 
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 Standard
15039 \end_layout
15040
15041 \end_inset
15042
15043  style paragraphs inside environments use the 
15044 \begin_inset Flex Code
15045 status collapsed
15046
15047 \begin_layout Plain Layout
15048 Parindent
15049 \end_layout
15050
15051 \end_inset
15052
15053  of the environment, not their native one.
15054  For example, 
15055 \begin_inset Flex Code
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059 Standard
15060 \end_layout
15061
15062 \end_inset
15063
15064  paragraphs inside an enumeration are not indented.
15065 \end_layout
15066
15067 \begin_layout Description
15068 \begin_inset Flex Code
15069 status collapsed
15070
15071 \begin_layout Plain Layout
15072 ParSep
15073 \end_layout
15074
15075 \end_inset
15076
15077  [
15078 \begin_inset Flex Code
15079 status collapsed
15080
15081 \begin_layout Plain Layout
15082 float=0
15083 \end_layout
15084
15085 \end_inset
15086
15087 ] The vertical space between two paragraphs of this style.
15088 \end_layout
15089
15090 \begin_layout Description
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 Parskip
15096 \end_layout
15097
15098 \end_inset
15099
15100  [
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 float=0
15106 \end_layout
15107
15108 \end_inset
15109
15110 ] \SpecialChar LyX
15111  allows the user to choose either 
15112 \begin_inset Quotes eld
15113 \end_inset
15114
15115 indent
15116 \begin_inset Quotes erd
15117 \end_inset
15118
15119  or 
15120 \begin_inset Quotes eld
15121 \end_inset
15122
15123 skip
15124 \begin_inset Quotes erd
15125 \end_inset
15126
15127  to separate paragraphs.
15128  When 
15129 \begin_inset Quotes eld
15130 \end_inset
15131
15132 indent
15133 \begin_inset Quotes erd
15134 \end_inset
15135
15136  is chosen, 
15137 \begin_inset Flex Code
15138 status collapsed
15139
15140 \begin_layout Plain Layout
15141 Parskip
15142 \end_layout
15143
15144 \end_inset
15145
15146  is ignored.
15147  When 
15148 \begin_inset Quotes eld
15149 \end_inset
15150
15151 skip
15152 \begin_inset Quotes erd
15153 \end_inset
15154
15155  is chosen, 
15156 \begin_inset Flex Code
15157 status collapsed
15158
15159 \begin_layout Plain Layout
15160 ParIndent
15161 \end_layout
15162
15163 \end_inset
15164
15165  is ignored and all paragraphs are separated by the 
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 Parskip
15171 \end_layout
15172
15173 \end_inset
15174
15175  argument.
15176  The vertical space is calculated with 
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 Parskip
15182 \begin_inset space ~
15183 \end_inset
15184
15185 * DefaultHeight
15186 \end_layout
15187
15188 \end_inset
15189
15190  where 
15191 \begin_inset Flex Code
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195 DefaultHeight
15196 \end_layout
15197
15198 \end_inset
15199
15200  is the height of a row with the normal font.
15201  This way, the look stays the same with different screen fonts.
15202 \end_layout
15203
15204 \begin_layout Description
15205 \begin_inset Flex Code
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 PassThru
15210 \end_layout
15211
15212 \end_inset
15213
15214  [
15215 \begin_inset Flex Code
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219
15220 \emph on
15221 0
15222 \end_layout
15223
15224 \end_inset
15225
15226 ,
15227 \begin_inset space \thinspace{}
15228 \end_inset
15229
15230
15231 \begin_inset Flex Code
15232 status collapsed
15233
15234 \begin_layout Plain Layout
15235 1
15236 \end_layout
15237
15238 \end_inset
15239
15240 ] Whether the contents of this paragraph should be output in raw form, meaning
15241  without special translations that \SpecialChar LaTeX
15242  would require.
15243 \end_layout
15244
15245 \begin_layout Description
15246 \begin_inset Flex Code
15247 status collapsed
15248
15249 \begin_layout Plain Layout
15250 PassThruChars
15251 \end_layout
15252
15253 \end_inset
15254
15255  [
15256 \begin_inset Flex Code
15257 status collapsed
15258
15259 \begin_layout Plain Layout
15260 string
15261 \end_layout
15262
15263 \end_inset
15264
15265 ]
15266 \family typewriter
15267  
15268 \family default
15269 Defines individual characters that should be output in raw form, meaning
15270  without special translations that \SpecialChar LaTeX
15271  would require.
15272 \end_layout
15273
15274 \begin_layout Description
15275 \begin_inset Flex Code
15276 status collapsed
15277
15278 \begin_layout Plain Layout
15279 Preamble
15280 \end_layout
15281
15282 \end_inset
15283
15284  Information to be included in the \SpecialChar LaTeX
15285  preamble when this style is used.
15286  Used to define macros, load packages, etc., required by this particular
15287  style.
15288  Must end with 
15289 \begin_inset Quotes eld
15290 \end_inset
15291
15292
15293 \begin_inset Flex Code
15294 status collapsed
15295
15296 \begin_layout Plain Layout
15297 EndPreamble
15298 \end_layout
15299
15300 \end_inset
15301
15302
15303 \begin_inset Quotes erd
15304 \end_inset
15305
15306 .
15307 \end_layout
15308
15309 \begin_layout Description
15310 \begin_inset Flex Code
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 RefPrefix
15315 \end_layout
15316
15317 \end_inset
15318
15319  [
15320 \begin_inset Flex Code
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324 string
15325 \end_layout
15326
15327 \end_inset
15328
15329 ] The prefix to use when creating labels referring to paragraphs of this
15330  type.
15331  This allows the use of formatted references.
15332 \end_layout
15333
15334 \begin_layout Description
15335 \begin_inset Flex Code
15336 status collapsed
15337
15338 \begin_layout Plain Layout
15339 Requires 
15340 \end_layout
15341
15342 \end_inset
15343
15344  [
15345 \begin_inset Flex Code
15346 status collapsed
15347
15348 \begin_layout Plain Layout
15349 string
15350 \end_layout
15351
15352 \end_inset
15353
15354 ] Whether the style requires the feature 
15355 \begin_inset Flex Code
15356 status collapsed
15357
15358 \begin_layout Plain Layout
15359 string
15360 \end_layout
15361
15362 \end_inset
15363
15364  (see 
15365 \begin_inset CommandInset ref
15366 LatexCommand ref
15367 reference "chap:List-of-functions"
15368
15369 \end_inset
15370
15371  for the list of features).
15372  If you require a package with specific options, you can additionally use
15373  
15374 \begin_inset Flex Code
15375 status collapsed
15376
15377 \begin_layout Plain Layout
15378 PackageOptions
15379 \end_layout
15380
15381 \end_inset
15382
15383  as a general text class parameter (see 
15384 \begin_inset CommandInset ref
15385 LatexCommand ref
15386 reference "subsec:General-text-class"
15387
15388 \end_inset
15389
15390 ).
15391 \end_layout
15392
15393 \begin_layout Description
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 ResetArgs
15399 \end_layout
15400
15401 \end_inset
15402
15403  [
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408
15409 \emph on
15410 0
15411 \end_layout
15412
15413 \end_inset
15414
15415 ,
15416 \begin_inset Flex Code
15417 status collapsed
15418
15419 \begin_layout Plain Layout
15420 1
15421 \end_layout
15422
15423 \end_inset
15424
15425 ] Resets the \SpecialChar LaTeX
15426  arguments of this style (as defined via the 
15427 \begin_inset Flex Code
15428 status collapsed
15429
15430 \begin_layout Plain Layout
15431 Argument
15432 \end_layout
15433
15434 \end_inset
15435
15436  tag).
15437  This is useful if you have copied a style via 
15438 \begin_inset Flex Code
15439 status collapsed
15440
15441 \begin_layout Plain Layout
15442 CopyStyle
15443 \end_layout
15444
15445 \end_inset
15446
15447 , but you do not want to inherit its (required and optional) arguments.
15448 \end_layout
15449
15450 \begin_layout Description
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455 ResumeCounter
15456 \end_layout
15457
15458 \end_inset
15459
15460  [
15461 \begin_inset Flex Code
15462 status collapsed
15463
15464 \begin_layout Plain Layout
15465
15466 \emph on
15467 0
15468 \end_layout
15469
15470 \end_inset
15471
15472 ,
15473 \begin_inset Flex Code
15474 status collapsed
15475
15476 \begin_layout Plain Layout
15477 1
15478 \end_layout
15479
15480 \end_inset
15481
15482 ] Resumes a counter that is usually reset at each new sequence of layouts.
15483  This is currently only useful when 
15484 \begin_inset Flex Code
15485 status collapsed
15486
15487 \begin_layout Plain Layout
15488 LabelType
15489 \end_layout
15490
15491 \end_inset
15492
15493  is 
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 Enumerate
15499 \end_layout
15500
15501 \end_inset
15502
15503 .
15504 \end_layout
15505
15506 \begin_layout Description
15507 \begin_inset Flex Code
15508 status collapsed
15509
15510 \begin_layout Plain Layout
15511 RightDelim
15512 \end_layout
15513
15514 \end_inset
15515
15516  [
15517 \begin_inset Flex Code
15518 status collapsed
15519
15520 \begin_layout Plain Layout
15521 string
15522 \end_layout
15523
15524 \end_inset
15525
15526 ] A string that is put at the end of the layout content.
15527  A line break in the output can be indicated by 
15528 \begin_inset Flex Code
15529 status collapsed
15530
15531 \begin_layout Plain Layout
15532 <br/>
15533 \end_layout
15534
15535 \end_inset
15536
15537 .
15538 \end_layout
15539
15540 \begin_layout Description
15541 \begin_inset Flex Code
15542 status collapsed
15543
15544 \begin_layout Plain Layout
15545 RightMargin
15546 \end_layout
15547
15548 \end_inset
15549
15550  [
15551 \begin_inset Flex Code
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555 string=""
15556 \end_layout
15557
15558 \end_inset
15559
15560 ] Similar to 
15561 \begin_inset Flex Code
15562 status collapsed
15563
15564 \begin_layout Plain Layout
15565 LeftMargin
15566 \end_layout
15567
15568 \end_inset
15569
15570 .
15571 \end_layout
15572
15573 \begin_layout Description
15574 \begin_inset Flex Code
15575 status collapsed
15576
15577 \begin_layout Plain Layout
15578 Spacing
15579 \end_layout
15580
15581 \end_inset
15582
15583  [
15584 \begin_inset Flex Code
15585 status collapsed
15586
15587 \begin_layout Plain Layout
15588
15589 \emph on
15590 single
15591 \end_layout
15592
15593 \end_inset
15594
15595
15596 \begin_inset Flex Code
15597 status collapsed
15598
15599 \begin_layout Plain Layout
15600 onehalf
15601 \end_layout
15602
15603 \end_inset
15604
15605
15606 \begin_inset Flex Code
15607 status collapsed
15608
15609 \begin_layout Plain Layout
15610 double
15611 \end_layout
15612
15613 \end_inset
15614
15615
15616 \begin_inset Flex Code
15617 status collapsed
15618
15619 \begin_layout Plain Layout
15620 other
15621 \begin_inset space ~
15622 \end_inset
15623
15624 <value>
15625 \end_layout
15626
15627 \end_inset
15628
15629 ] This defines what the default spacing should be in the style.
15630  The arguments 
15631 \begin_inset Flex Code
15632 status collapsed
15633
15634 \begin_layout Plain Layout
15635 single
15636 \end_layout
15637
15638 \end_inset
15639
15640
15641 \begin_inset Flex Code
15642 status collapsed
15643
15644 \begin_layout Plain Layout
15645 onehalf
15646 \end_layout
15647
15648 \end_inset
15649
15650  and 
15651 \begin_inset Flex Code
15652 status collapsed
15653
15654 \begin_layout Plain Layout
15655 double
15656 \end_layout
15657
15658 \end_inset
15659
15660  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15661  If you specify the argument 
15662 \begin_inset Flex Code
15663 status collapsed
15664
15665 \begin_layout Plain Layout
15666 other
15667 \end_layout
15668
15669 \end_inset
15670
15671 , then you must also provide a value argument which will be the actual multiplie
15672 r value.
15673  Note that, contrary to other parameters, 
15674 \begin_inset Flex Code
15675 status collapsed
15676
15677 \begin_layout Plain Layout
15678 Spacing
15679 \end_layout
15680
15681 \end_inset
15682
15683  implies the generation of specific \SpecialChar LaTeX
15684  code, using the \SpecialChar LaTeX
15685  package 
15686 \family roman
15687
15688 \begin_inset Flex Code
15689 status collapsed
15690
15691 \begin_layout Plain Layout
15692 setspace
15693 \end_layout
15694
15695 \end_inset
15696
15697 .
15698 \end_layout
15699
15700 \begin_layout Description
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705 Spellcheck
15706 \end_layout
15707
15708 \end_inset
15709
15710  [
15711 \begin_inset Flex Code
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715 0
15716 \end_layout
15717
15718 \end_inset
15719
15720 ,
15721 \begin_inset space \thinspace{}
15722 \end_inset
15723
15724
15725 \begin_inset Flex Code
15726 status collapsed
15727
15728 \begin_layout Plain Layout
15729
15730 \emph on
15731 1
15732 \end_layout
15733
15734 \end_inset
15735
15736 ] Allow spell-checking paragraphs of this style.
15737  Default is true.
15738 \end_layout
15739
15740 \begin_layout Description
15741 \begin_inset Flex Code
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745 StepMasterCounter
15746 \end_layout
15747
15748 \end_inset
15749
15750  [
15751 \begin_inset Flex Code
15752 status collapsed
15753
15754 \begin_layout Plain Layout
15755
15756 \emph on
15757 0
15758 \end_layout
15759
15760 \end_inset
15761
15762 ,
15763 \begin_inset Flex Code
15764 status collapsed
15765
15766 \begin_layout Plain Layout
15767 1
15768 \end_layout
15769
15770 \end_inset
15771
15772 ] Steps the master counter of a given counter at the beginning of a new
15773  sequence of layouts.
15774  This is currently only useful when 
15775 \begin_inset Flex Code
15776 status collapsed
15777
15778 \begin_layout Plain Layout
15779 LabelType
15780 \end_layout
15781
15782 \end_inset
15783
15784  is 
15785 \begin_inset Flex Code
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789 Enumerate
15790 \end_layout
15791
15792 \end_inset
15793
15794 .
15795 \end_layout
15796
15797 \begin_layout Description
15798 \begin_inset Flex Code
15799 status collapsed
15800
15801 \begin_layout Plain Layout
15802 TextFont
15803 \end_layout
15804
15805 \end_inset
15806
15807  The font used for the text body .
15808  See 
15809 \begin_inset CommandInset ref
15810 LatexCommand ref
15811 reference "subsec:Font-description"
15812
15813 \end_inset
15814
15815 .
15816 \end_layout
15817
15818 \begin_layout Description
15819 \begin_inset Flex Code
15820 status collapsed
15821
15822 \begin_layout Plain Layout
15823 TocLevel
15824 \end_layout
15825
15826 \end_inset
15827
15828
15829 \series medium
15830  [
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835
15836 \series medium
15837 int=3
15838 \end_layout
15839
15840 \end_inset
15841
15842 ]
15843 \series default
15844  The level of the style in the table of contents.
15845  This is used for automatic numbering of section headings.
15846 \end_layout
15847
15848 \begin_layout Description
15849 \begin_inset Flex Code
15850 status collapsed
15851
15852 \begin_layout Plain Layout
15853 ToggleIndent
15854 \end_layout
15855
15856 \end_inset
15857
15858  [
15859 \emph on
15860
15861 \begin_inset Flex Code
15862 status collapsed
15863
15864 \begin_layout Plain Layout
15865
15866 \emph on
15867 default
15868 \end_layout
15869
15870 \end_inset
15871
15872
15873 \emph default
15874
15875 \begin_inset Flex Code
15876 status collapsed
15877
15878 \begin_layout Plain Layout
15879 always
15880 \end_layout
15881
15882 \end_inset
15883
15884
15885 \begin_inset Flex Code
15886 status collapsed
15887
15888 \begin_layout Plain Layout
15889 never
15890 \end_layout
15891
15892 \end_inset
15893
15894 ] This tag determines whether the first line indentation of this paragraph
15895  can be toggled via the Paragraph settings dialog.
15896  If 
15897 \emph on
15898
15899 \begin_inset Flex Code
15900 status collapsed
15901
15902 \begin_layout Plain Layout
15903
15904 \emph off
15905 default
15906 \end_layout
15907
15908 \end_inset
15909
15910
15911 \emph default
15912  is set, indentation can be toggled if the document settings use 
15913 \begin_inset Quotes eld
15914 \end_inset
15915
15916 indent
15917 \begin_inset Quotes erd
15918 \end_inset
15919
15920  paragraph style, with 
15921 \begin_inset Flex Code
15922 status collapsed
15923
15924 \begin_layout Plain Layout
15925 always
15926 \end_layout
15927
15928 \end_inset
15929
15930 , indentation can always be toggled, notwithstanding the document settings,
15931  with 
15932 \begin_inset Flex Code
15933 status collapsed
15934
15935 \begin_layout Plain Layout
15936 never
15937 \end_layout
15938
15939 \end_inset
15940
15941 , indentation can never be toggled.
15942 \end_layout
15943
15944 \begin_layout Description
15945 \begin_inset Flex Code
15946 status collapsed
15947
15948 \begin_layout Plain Layout
15949 TopSep
15950 \end_layout
15951
15952 \end_inset
15953
15954  [
15955 \begin_inset Flex Code
15956 status collapsed
15957
15958 \begin_layout Plain Layout
15959 float=0
15960 \end_layout
15961
15962 \end_inset
15963
15964 ] The vertical space with which the very first of a chain of paragraphs
15965  with this style is separated from the previous paragraph.
15966  If the previous paragraph has another style, the separations are not simply
15967  added, but the maximum is taken.
15968 \end_layout
15969
15970 \begin_layout Subsection
15971 \begin_inset CommandInset label
15972 LatexCommand label
15973 name "subsec:I18n"
15974
15975 \end_inset
15976
15977 Internationalization of Paragraph Styles
15978 \end_layout
15979
15980 \begin_layout Standard
15981 \SpecialChar LyX
15982  has long supported internationalization of layout information, but, until
15983  version 2.0, this applied only to the user interface and not to, say, PDF
15984  output.
15985  Thus, French authors were forced to resort to ugly hacks if they wanted
15986  `
15987 \lang french
15988 Théorème
15989 \lang english
15990  1' instead of `Theorem 1'.
15991  Thanks to Georg Baum, that is no longer the case.
15992 \end_layout
15993
15994 \begin_layout Standard
15995 If a 
15996 \begin_inset Flex Code
15997 status collapsed
15998
15999 \begin_layout Plain Layout
16000 Style
16001 \end_layout
16002
16003 \end_inset
16004
16005  defines text that is to appear in the typeset document, it may use 
16006 \begin_inset Flex Code
16007 status collapsed
16008
16009 \begin_layout Plain Layout
16010 LangPreamble
16011 \end_layout
16012
16013 \end_inset
16014
16015  and 
16016 \begin_inset Flex Code
16017 status collapsed
16018
16019 \begin_layout Plain Layout
16020 BabelPreamble
16021 \end_layout
16022
16023 \end_inset
16024
16025  to support non-English and even multi-language documents correctly.
16026  The following excerpt (from the 
16027 \begin_inset Flex Code
16028 status collapsed
16029
16030 \begin_layout Plain Layout
16031 theorems-ams.inc
16032 \end_layout
16033
16034 \end_inset
16035
16036  file) shows how this works:
16037 \end_layout
16038
16039 \begin_layout LyX-Code
16040 Preamble
16041 \end_layout
16042
16043 \begin_deeper
16044 \begin_layout LyX-Code
16045   
16046 \backslash
16047 theoremstyle{remark}
16048 \end_layout
16049
16050 \begin_layout LyX-Code
16051   
16052 \backslash
16053 newtheorem{claim}[thm]{
16054 \backslash
16055 protect
16056 \backslash
16057 claimname}
16058 \end_layout
16059
16060 \begin_layout LyX-Code
16061 EndPreamble
16062 \end_layout
16063
16064 \begin_layout LyX-Code
16065 LangPreamble
16066 \end_layout
16067
16068 \begin_layout LyX-Code
16069   
16070 \backslash
16071 providecommand{
16072 \backslash
16073 claimname}{_(Claim)}
16074 \end_layout
16075
16076 \begin_layout LyX-Code
16077 EndLangPreamble
16078 \end_layout
16079
16080 \begin_layout LyX-Code
16081 BabelPreamble
16082 \end_layout
16083
16084 \begin_layout LyX-Code
16085     
16086 \backslash
16087 addto
16088 \backslash
16089 captions$$lang{
16090 \backslash
16091 renewcommand{
16092 \backslash
16093 claimname}{_(Claim)}}
16094 \end_layout
16095
16096 \begin_layout LyX-Code
16097 EndBabelPreamble
16098 \end_layout
16099
16100 \end_deeper
16101 \begin_layout Standard
16102 In principle, any legal \SpecialChar LaTeX
16103  may appear in the 
16104 \begin_inset Flex Code
16105 status collapsed
16106
16107 \begin_layout Plain Layout
16108 LangPreamble
16109 \end_layout
16110
16111 \end_inset
16112
16113  and 
16114 \begin_inset Flex Code
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 BabelPreamble
16119 \end_layout
16120
16121 \end_inset
16122
16123  tags, but in practice they will typically look as they do here.
16124  The key to correct translation of the typeset text is the definition of
16125  the \SpecialChar LaTeX
16126  command 
16127 \begin_inset Flex Code
16128 status collapsed
16129
16130 \begin_layout Plain Layout
16131
16132 \backslash
16133 claimname
16134 \end_layout
16135
16136 \end_inset
16137
16138  and its use in 
16139 \begin_inset Flex Code
16140 status collapsed
16141
16142 \begin_layout Plain Layout
16143
16144 \backslash
16145 newtheorem
16146 \end_layout
16147
16148 \end_inset
16149
16150 .
16151  
16152 \end_layout
16153
16154 \begin_layout Standard
16155 The 
16156 \begin_inset Flex Code
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160 LangPreamble
16161 \end_layout
16162
16163 \end_inset
16164
16165  tag provides for internationalization based upon the overall language of
16166  the document.
16167  The contents of the tag will be included in the preamble, just as with
16168  the 
16169 \begin_inset Flex Code
16170 status collapsed
16171
16172 \begin_layout Plain Layout
16173 Preamble
16174 \end_layout
16175
16176 \end_inset
16177
16178  tag.
16179  What makes it special is the use of the 
16180 \begin_inset Quotes eld
16181 \end_inset
16182
16183 function
16184 \begin_inset Quotes erd
16185 \end_inset
16186
16187  
16188 \begin_inset Flex Code
16189 status collapsed
16190
16191 \begin_layout Plain Layout
16192 _()
16193 \end_layout
16194
16195 \end_inset
16196
16197 , which will be replaced, when \SpecialChar LyX
16198  produces \SpecialChar LaTeX
16199  output, with the translation of
16200  its argument into the document language.
16201 \end_layout
16202
16203 \begin_layout Standard
16204 The 
16205 \begin_inset Flex Code
16206 status collapsed
16207
16208 \begin_layout Plain Layout
16209 BabelPreamble
16210 \end_layout
16211
16212 \end_inset
16213
16214  tag is more complex, since it is meant to provide support for multi-language
16215  documents and so offers an interface to the 
16216 \begin_inset Flex Code
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220 babel
16221 \end_layout
16222
16223 \end_inset
16224
16225  package.
16226  Its contents will be added to the preamble once for each language that
16227  appears in the document.
16228  In this case, the argument to 
16229 \begin_inset Flex Code
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 _()
16234 \end_layout
16235
16236 \end_inset
16237
16238  will be replaced with its translation into the language in question; the
16239  expression 
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244 $$lang
16245 \end_layout
16246
16247 \end_inset
16248
16249  is replaced by the language name (as used by the babel package).
16250 \end_layout
16251
16252 \begin_layout Standard
16253 A German document that also included a French section would thus have the
16254  following in the preamble:
16255 \end_layout
16256
16257 \begin_layout LyX-Code
16258
16259 \backslash
16260 addto
16261 \backslash
16262 captionsfrench{
16263 \backslash
16264 renewcommand{
16265 \backslash
16266 claimname}{Affirmation}}
16267 \begin_inset Newline newline
16268 \end_inset
16269
16270
16271 \backslash
16272 addto
16273 \backslash
16274 captionsngerman{
16275 \backslash
16276 renewcommand{
16277 \backslash
16278 claimname}{Behauptung}}
16279 \begin_inset Newline newline
16280 \end_inset
16281
16282
16283 \backslash
16284 providecommand{
16285 \backslash
16286 claimname}{Behauptung}
16287 \end_layout
16288
16289 \begin_layout Standard
16290 \SpecialChar LaTeX
16291  and 
16292 \begin_inset Flex Code
16293 status collapsed
16294
16295 \begin_layout Plain Layout
16296 babel
16297 \end_layout
16298
16299 \end_inset
16300
16301  will then conspire to produce the correct text in the output.
16302 \end_layout
16303
16304 \begin_layout Standard
16305 One important point to note here is that the translations are provided by
16306  \SpecialChar LyX
16307  itself, through the file 
16308 \begin_inset Flex Code
16309 status collapsed
16310
16311 \begin_layout Plain Layout
16312 layouttranslations
16313 \end_layout
16314
16315 \end_inset
16316
16317 .
16318  This means, in effect, that 
16319 \begin_inset Flex Code
16320 status collapsed
16321
16322 \begin_layout Plain Layout
16323 LangPreamble
16324 \end_layout
16325
16326 \end_inset
16327
16328  and 
16329 \begin_inset Flex Code
16330 status collapsed
16331
16332 \begin_layout Plain Layout
16333 BabelPreamble
16334 \end_layout
16335
16336 \end_inset
16337
16338  are really only of use in layout files that are provided with \SpecialChar LyX
16339 , since text
16340  entered in user-created layout files will not be seen by \SpecialChar LyX
16341 's internationalizatio
16342 n routines unless the 
16343 \begin_inset Flex Code
16344 status collapsed
16345
16346 \begin_layout Plain Layout
16347 layouttranslations
16348 \end_layout
16349
16350 \end_inset
16351
16352  file is modified accordingly.
16353  That said, however, any layout created with the intention that it will
16354  be included with \SpecialChar LyX
16355  should use these tags where appropriate.
16356  Please note that the paragraph style translations provided by \SpecialChar LyX
16357  will never
16358  change with a minor update (e.
16359 \begin_inset space \thinspace{}
16360 \end_inset
16361
16362 g.
16363 \begin_inset space \space{}
16364 \end_inset
16365
16366 from version 2.1.x to 2.1.y).
16367  It is however quite likely that a major update (e.
16368 \begin_inset space \thinspace{}
16369 \end_inset
16370
16371 g.
16372 \begin_inset space \space{}
16373 \end_inset
16374
16375 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16376 \end_layout
16377
16378 \begin_layout Subsection
16379 Floats
16380 \begin_inset CommandInset label
16381 LatexCommand label
16382 name "subsec:Floats"
16383
16384 \end_inset
16385
16386
16387 \end_layout
16388
16389 \begin_layout Standard
16390 It is necessary to define the floats (
16391 \begin_inset Flex Noun
16392 status collapsed
16393
16394 \begin_layout Plain Layout
16395 figure
16396 \end_layout
16397
16398 \end_inset
16399
16400
16401 \begin_inset Flex Noun
16402 status collapsed
16403
16404 \begin_layout Plain Layout
16405 table
16406 \end_layout
16407
16408 \end_inset
16409
16410 , \SpecialChar ldots
16411 ) in the text class itself.
16412  Standard floats are included in the file 
16413 \begin_inset Flex Code
16414 status collapsed
16415
16416 \begin_layout Plain Layout
16417 stdfloats.inc
16418 \end_layout
16419
16420 \end_inset
16421
16422 , so you may have to do no more than add
16423 \end_layout
16424
16425 \begin_layout LyX-Code
16426 Input stdfloats.inc
16427 \end_layout
16428
16429 \begin_layout Standard
16430 to your layout file.
16431  If you want to implement a text class that proposes some other float types
16432  (like the AGU class bundled with \SpecialChar LyX
16433 ), the information below will hopefully
16434  help you:
16435 \end_layout
16436
16437 \begin_layout Description
16438 \begin_inset Flex Code
16439 status collapsed
16440
16441 \begin_layout Plain Layout
16442 AllowedPlacement
16443 \end_layout
16444
16445 \end_inset
16446
16447  [
16448 \begin_inset Flex Code
16449 status collapsed
16450
16451 \begin_layout Plain Layout
16452 string
16453 \end_layout
16454
16455 \end_inset
16456
16457 =!htbpH] Allowed placement options for this float type.
16458  The value is a string of placement characters.
16459  Possible characters include: 
16460 \emph on
16461 h
16462 \emph default
16463  (
16464 \begin_inset Quotes eld
16465 \end_inset
16466
16467 here if possible
16468 \begin_inset Quotes erd
16469 \end_inset
16470
16471 ), 
16472 \emph on
16473 t
16474 \emph default
16475  (
16476 \begin_inset Quotes eld
16477 \end_inset
16478
16479 top of page
16480 \begin_inset Quotes erd
16481 \end_inset
16482
16483 ), 
16484 \emph on
16485 b
16486 \emph default
16487  (
16488 \begin_inset Quotes eld
16489 \end_inset
16490
16491 bottom of page
16492 \begin_inset Quotes erd
16493 \end_inset
16494
16495 ), 
16496 \emph on
16497 p
16498 \emph default
16499  (
16500 \begin_inset Quotes eld
16501 \end_inset
16502
16503 page of floats
16504 \begin_inset Quotes erd
16505 \end_inset
16506
16507 ), 
16508 \emph on
16509 H
16510 \emph default
16511  (
16512 \begin_inset Quotes eld
16513 \end_inset
16514
16515 here definitely
16516 \begin_inset Quotes erd
16517 \end_inset
16518
16519 ) and 
16520 \emph on
16521 !
16522 \emph default
16523  (
16524 \begin_inset Quotes eld
16525 \end_inset
16526
16527 ignore LaTeX rules
16528 \begin_inset Quotes erd
16529 \end_inset
16530
16531 ).
16532  The order of the characters in the string does not matter.
16533  If no placement options are allowed, use the string 
16534 \emph on
16535 none
16536 \emph default
16537 .
16538 \end_layout
16539
16540 \begin_layout Description
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545 AllowsSideways
16546 \end_layout
16547
16548 \end_inset
16549
16550  [
16551 \begin_inset Flex Code
16552 status collapsed
16553
16554 \begin_layout Plain Layout
16555
16556 \emph off
16557 0
16558 \end_layout
16559
16560 \end_inset
16561
16562 ,
16563 \begin_inset space \thinspace{}
16564 \end_inset
16565
16566
16567 \emph on
16568
16569 \begin_inset Flex Code
16570 status collapsed
16571
16572 \begin_layout Plain Layout
16573
16574 \emph on
16575 1
16576 \end_layout
16577
16578 \end_inset
16579
16580
16581 \emph default
16582 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16583 -package 
16584 \family typewriter
16585 rotfloat
16586 \family default
16587  (sidewaysfloat).
16588  Set to 
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593 0
16594 \end_layout
16595
16596 \end_inset
16597
16598  if the float does not support this feature.
16599 \end_layout
16600
16601 \begin_layout Description
16602 \begin_inset Flex Code
16603 status collapsed
16604
16605 \begin_layout Plain Layout
16606 AllowsWide
16607 \end_layout
16608
16609 \end_inset
16610
16611  [
16612 \begin_inset Flex Code
16613 status collapsed
16614
16615 \begin_layout Plain Layout
16616
16617 \emph off
16618 0
16619 \end_layout
16620
16621 \end_inset
16622
16623 ,
16624 \begin_inset space \thinspace{}
16625 \end_inset
16626
16627
16628 \emph on
16629
16630 \begin_inset Flex Code
16631 status collapsed
16632
16633 \begin_layout Plain Layout
16634
16635 \emph on
16636 1
16637 \end_layout
16638
16639 \end_inset
16640
16641
16642 \emph default
16643 ] Defines whether the float has a starred variant that spans columns in
16644  a two column paragraph.
16645  Set to 
16646 \begin_inset Flex Code
16647 status collapsed
16648
16649 \begin_layout Plain Layout
16650 0
16651 \end_layout
16652
16653 \end_inset
16654
16655  if the float does not support this feature.
16656 \end_layout
16657
16658 \begin_layout Description
16659 \begin_inset Flex Code
16660 status collapsed
16661
16662 \begin_layout Plain Layout
16663 Extension
16664 \end_layout
16665
16666 \end_inset
16667
16668  [
16669 \begin_inset Flex Code
16670 status collapsed
16671
16672 \begin_layout Plain Layout
16673 string
16674 \end_layout
16675
16676 \end_inset
16677
16678 =
16679 \begin_inset Quotes erd
16680 \end_inset
16681
16682
16683 \begin_inset Quotes erd
16684 \end_inset
16685
16686 ] The file name extension of an auxiliary file for the list of figures (or
16687  whatever).
16688  \SpecialChar LaTeX
16689  writes the captions to this file.
16690 \end_layout
16691
16692 \begin_layout Description
16693 \begin_inset Flex Code
16694 status collapsed
16695
16696 \begin_layout Plain Layout
16697 GuiName
16698 \end_layout
16699
16700 \end_inset
16701
16702  [
16703 \begin_inset Flex Code
16704 status collapsed
16705
16706 \begin_layout Plain Layout
16707 string
16708 \end_layout
16709
16710 \end_inset
16711
16712 =
16713 \begin_inset Quotes erd
16714 \end_inset
16715
16716
16717 \begin_inset Quotes erd
16718 \end_inset
16719
16720 ] The string that will be used in the menus and also for the caption.
16721  This is translated to the current language if babel is used.
16722 \end_layout
16723
16724 \begin_layout Description
16725 \begin_inset Flex Code
16726 status collapsed
16727
16728 \begin_layout Plain Layout
16729 HTML*
16730 \end_layout
16731
16732 \end_inset
16733
16734  These tags control the XHTML output.
16735  See 
16736 \begin_inset CommandInset ref
16737 LatexCommand ref
16738 reference "sec:Tags-for-XHTML"
16739
16740 \end_inset
16741
16742 .
16743 \end_layout
16744
16745 \begin_layout Description
16746 \begin_inset Flex Code
16747 status collapsed
16748
16749 \begin_layout Plain Layout
16750 IsPredefined
16751 \end_layout
16752
16753 \end_inset
16754
16755  [
16756 \emph on
16757
16758 \begin_inset Flex Code
16759 status collapsed
16760
16761 \begin_layout Plain Layout
16762 0
16763 \end_layout
16764
16765 \end_inset
16766
16767
16768 \emph default
16769 ,
16770 \begin_inset space \thinspace{}
16771 \end_inset
16772
16773
16774 \begin_inset Flex Code
16775 status collapsed
16776
16777 \begin_layout Plain Layout
16778 1
16779 \end_layout
16780
16781 \end_inset
16782
16783 ] Indicates whether the float is already defined in the document class or
16784  if instead the \SpecialChar LaTeX
16785  package 
16786 \begin_inset Flex Code
16787 status collapsed
16788
16789 \begin_layout Plain Layout
16790 float
16791 \end_layout
16792
16793 \end_inset
16794
16795  needs to be loaded to define it on-the-fly.
16796  The default is 
16797 \begin_inset Flex Code
16798 status collapsed
16799
16800 \begin_layout Plain Layout
16801 0
16802 \end_layout
16803
16804 \end_inset
16805
16806 , which means: 
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 float
16812 \end_layout
16813
16814 \end_inset
16815
16816  is used.
16817  It should be set to 
16818 \begin_inset Flex Code
16819 status collapsed
16820
16821 \begin_layout Plain Layout
16822 1
16823 \end_layout
16824
16825 \end_inset
16826
16827  if the float is already defined by the \SpecialChar LaTeX
16828  document class.
16829 \end_layout
16830
16831 \begin_layout Description
16832 \begin_inset Flex Code
16833 status collapsed
16834
16835 \begin_layout Plain Layout
16836 ListCommand
16837 \end_layout
16838
16839 \end_inset
16840
16841  [
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 string
16847 \end_layout
16848
16849 \end_inset
16850
16851 =
16852 \begin_inset Quotes erd
16853 \end_inset
16854
16855
16856 \begin_inset Quotes erd
16857 \end_inset
16858
16859 ] The command used to generate a list of floats of this type; the leading
16860  `
16861 \backslash
16862 ' must be omitted.
16863  This 
16864 \emph on
16865 must
16866 \emph default
16867  be given if 
16868 \begin_inset Flex Code
16869 status collapsed
16870
16871 \begin_layout Plain Layout
16872 UsesFloatPkg
16873 \end_layout
16874
16875 \end_inset
16876
16877  is false, since there is no standard way to generate this command.
16878  It is ignored if 
16879 \begin_inset Flex Code
16880 status collapsed
16881
16882 \begin_layout Plain Layout
16883 UsesFloatPkg
16884 \end_layout
16885
16886 \end_inset
16887
16888  is true, since in that case there is a standard way to define the command.
16889 \end_layout
16890
16891 \begin_layout Description
16892 \begin_inset Flex Code
16893 status collapsed
16894
16895 \begin_layout Plain Layout
16896 ListName
16897 \end_layout
16898
16899 \end_inset
16900
16901  [
16902 \begin_inset Flex Code
16903 status collapsed
16904
16905 \begin_layout Plain Layout
16906 string
16907 \end_layout
16908
16909 \end_inset
16910
16911 =
16912 \begin_inset Quotes erd
16913 \end_inset
16914
16915
16916 \begin_inset Quotes erd
16917 \end_inset
16918
16919 ] A title for a list of floats of this kind (list of figures, tables, or
16920  whatever).
16921  It is used for the screen label within \SpecialChar LyX
16922 , it is used by \SpecialChar LaTeX
16923  for the title and
16924  it is used as the title in the XHTML output.
16925  It will be translated to the document language.
16926 \end_layout
16927
16928 \begin_layout Description
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933 NumberWithin
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 =
16949 \begin_inset Quotes erd
16950 \end_inset
16951
16952
16953 \begin_inset Quotes erd
16954 \end_inset
16955
16956 ] This (optional) argument determines whether floats of this class will
16957  be numbered within some sectional unit of the document.
16958  For example, if 
16959 \begin_inset Flex Code
16960 status collapsed
16961
16962 \begin_layout Plain Layout
16963 NumberWithin
16964 \end_layout
16965
16966 \end_inset
16967
16968  is set to 
16969 \begin_inset Quotes eld
16970 \end_inset
16971
16972
16973 \begin_inset Flex Code
16974 status collapsed
16975
16976 \begin_layout Plain Layout
16977 chapter
16978 \end_layout
16979
16980 \end_inset
16981
16982
16983 \begin_inset Quotes erd
16984 \end_inset
16985
16986 , the floats will be numbered within chapters.
16987  
16988 \end_layout
16989
16990 \begin_layout Description
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995 Placement
16996 \end_layout
16997
16998 \end_inset
16999
17000  [
17001 \begin_inset Flex Code
17002 status collapsed
17003
17004 \begin_layout Plain Layout
17005 string
17006 \end_layout
17007
17008 \end_inset
17009
17010 =
17011 \begin_inset Quotes erd
17012 \end_inset
17013
17014
17015 \begin_inset Quotes erd
17016 \end_inset
17017
17018 ] The default placement for the given class of floats.
17019  The string should be as in standard \SpecialChar LaTeX
17020
17021 \begin_inset Flex Code
17022 status collapsed
17023
17024 \begin_layout Plain Layout
17025 t
17026 \end_layout
17027
17028 \end_inset
17029
17030
17031 \begin_inset Flex Code
17032 status collapsed
17033
17034 \begin_layout Plain Layout
17035 b
17036 \end_layout
17037
17038 \end_inset
17039
17040
17041 \begin_inset Flex Code
17042 status collapsed
17043
17044 \begin_layout Plain Layout
17045 p
17046 \end_layout
17047
17048 \end_inset
17049
17050  and 
17051 \begin_inset Flex Code
17052 status collapsed
17053
17054 \begin_layout Plain Layout
17055 h
17056 \end_layout
17057
17058 \end_inset
17059
17060  for top, bottom, page, and here, respectively.
17061 \begin_inset Foot
17062 status collapsed
17063
17064 \begin_layout Plain Layout
17065 Note that the order of these letters in the string is irrelevant, like in
17066  \SpecialChar LaTeX
17067 .
17068 \end_layout
17069
17070 \end_inset
17071
17072  On top of that there is a new type, 
17073 \begin_inset Flex Code
17074 status collapsed
17075
17076 \begin_layout Plain Layout
17077 H
17078 \end_layout
17079
17080 \end_inset
17081
17082 , which does not really correspond to a float, since it means: put it 
17083 \begin_inset Quotes eld
17084 \end_inset
17085
17086 here
17087 \begin_inset Quotes erd
17088 \end_inset
17089
17090  and nowhere else.
17091  Note however that the 
17092 \begin_inset Flex Code
17093 status collapsed
17094
17095 \begin_layout Plain Layout
17096 H
17097 \end_layout
17098
17099 \end_inset
17100
17101  specifier is special and, because of implementation details, cannot be
17102  used in non-built in float types.
17103  If you do not understand what this means, just use 
17104 \begin_inset Quotes eld
17105 \end_inset
17106
17107
17108 \begin_inset Flex Code
17109 status collapsed
17110
17111 \begin_layout Plain Layout
17112 tbp
17113 \end_layout
17114
17115 \end_inset
17116
17117
17118 \begin_inset Quotes erd
17119 \end_inset
17120
17121 .
17122 \end_layout
17123
17124 \begin_layout Description
17125 \begin_inset Flex Code
17126 status collapsed
17127
17128 \begin_layout Plain Layout
17129 RefPrefix
17130 \end_layout
17131
17132 \end_inset
17133
17134  [
17135 \begin_inset Flex Code
17136 status collapsed
17137
17138 \begin_layout Plain Layout
17139 string
17140 \end_layout
17141
17142 \end_inset
17143
17144 ] The prefix to use when creating labels referring to floats of this type.
17145  This allows the use of formatted references.
17146  Note that you can remove any 
17147 \begin_inset Flex Code
17148 status collapsed
17149
17150 \begin_layout Plain Layout
17151 RefPrefix
17152 \end_layout
17153
17154 \end_inset
17155
17156  set by a copied style by using the special value 
17157 \begin_inset Quotes eld
17158 \end_inset
17159
17160 OFF
17161 \begin_inset Quotes erd
17162 \end_inset
17163
17164 , which must be all caps.
17165 \end_layout
17166
17167 \begin_layout Description
17168 \begin_inset Flex Code
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172 Style
17173 \end_layout
17174
17175 \end_inset
17176
17177  [
17178 \begin_inset Flex Code
17179 status collapsed
17180
17181 \begin_layout Plain Layout
17182 string
17183 \end_layout
17184
17185 \end_inset
17186
17187 =
17188 \begin_inset Quotes erd
17189 \end_inset
17190
17191
17192 \begin_inset Quotes erd
17193 \end_inset
17194
17195 ] The style used when defining the float using 
17196 \begin_inset Flex Code
17197 status collapsed
17198
17199 \begin_layout Plain Layout
17200
17201 \backslash
17202 newfloat
17203 \end_layout
17204
17205 \end_inset
17206
17207 .
17208 \end_layout
17209
17210 \begin_layout Description
17211 \begin_inset Flex Code
17212 status collapsed
17213
17214 \begin_layout Plain Layout
17215 Type
17216 \end_layout
17217
17218 \end_inset
17219
17220  [
17221 \begin_inset Flex Code
17222 status collapsed
17223
17224 \begin_layout Plain Layout
17225 string
17226 \end_layout
17227
17228 \end_inset
17229
17230 =
17231 \begin_inset Quotes erd
17232 \end_inset
17233
17234
17235 \begin_inset Quotes erd
17236 \end_inset
17237
17238 ] The 
17239 \begin_inset Quotes eld
17240 \end_inset
17241
17242 type
17243 \begin_inset Quotes erd
17244 \end_inset
17245
17246  of the new class of floats, like program or algorithm.
17247  After the appropriate 
17248 \begin_inset Flex Code
17249 status collapsed
17250
17251 \begin_layout Plain Layout
17252
17253 \backslash
17254 newfloat
17255 \end_layout
17256
17257 \end_inset
17258
17259 , commands such as 
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264
17265 \backslash
17266 begin{program}
17267 \end_layout
17268
17269 \end_inset
17270
17271  or 
17272 \begin_inset Flex Code
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276
17277 \backslash
17278 end{algorithm*}
17279 \end_layout
17280
17281 \end_inset
17282
17283  will be available.
17284 \end_layout
17285
17286 \begin_layout Description
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 UsesFloatPkg
17292 \end_layout
17293
17294 \end_inset
17295
17296  [
17297 \begin_inset Flex Code
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 0
17302 \end_layout
17303
17304 \end_inset
17305
17306 ,
17307 \begin_inset space \thinspace{}
17308 \end_inset
17309
17310
17311 \begin_inset Flex Code
17312 status collapsed
17313
17314 \begin_layout Plain Layout
17315
17316 \emph on
17317 1
17318 \end_layout
17319
17320 \end_inset
17321
17322 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17323  package 
17324 \begin_inset Flex Code
17325 status collapsed
17326
17327 \begin_layout Plain Layout
17328 float
17329 \end_layout
17330
17331 \end_inset
17332
17333 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17334  itself.
17335 \end_layout
17336
17337 \begin_layout Standard
17338 Note that defining a float with type 
17339 \begin_inset Flex Code
17340 status collapsed
17341
17342 \begin_layout Plain Layout
17343
17344 \emph on
17345 type
17346 \end_layout
17347
17348 \end_inset
17349
17350  automatically defines the corresponding counter with name 
17351 \begin_inset Flex Code
17352 status collapsed
17353
17354 \begin_layout Plain Layout
17355
17356 \emph on
17357 type
17358 \end_layout
17359
17360 \end_inset
17361
17362 .
17363 \end_layout
17364
17365 \begin_layout Subsection
17366 Flex insets and InsetLayout
17367 \begin_inset CommandInset label
17368 LatexCommand label
17369 name "subsec:Flex-insets-and"
17370
17371 \end_inset
17372
17373
17374 \end_layout
17375
17376 \begin_layout Standard
17377 Flex insets come in three different kinds: 
17378 \end_layout
17379
17380 \begin_layout Itemize
17381 character style (
17382 \begin_inset Flex Code
17383 status collapsed
17384
17385 \begin_layout Plain Layout
17386 CharStyle
17387 \end_layout
17388
17389 \end_inset
17390
17391 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17392  commands as 
17393 \begin_inset Flex Code
17394 status collapsed
17395
17396 \begin_layout Plain Layout
17397
17398 \backslash
17399 noun
17400 \end_layout
17401
17402 \end_inset
17403
17404  and 
17405 \begin_inset Flex Code
17406 status collapsed
17407
17408 \begin_layout Plain Layout
17409
17410 \backslash
17411 code
17412 \end_layout
17413
17414 \end_inset
17415
17416 .
17417 \end_layout
17418
17419 \begin_layout Itemize
17420 user custom (
17421 \begin_inset Flex Code
17422 status collapsed
17423
17424 \begin_layout Plain Layout
17425 Custom
17426 \end_layout
17427
17428 \end_inset
17429
17430 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17431  code,
17432  footnote, and the like.
17433  An obvious example is an endnote inset, which is defined in the 
17434 \begin_inset Flex Code
17435 status collapsed
17436
17437 \begin_layout Plain Layout
17438 endnote
17439 \end_layout
17440
17441 \end_inset
17442
17443  module.
17444 \end_layout
17445
17446 \begin_layout Itemize
17447 XML elements (
17448 \begin_inset Flex Code
17449 status collapsed
17450
17451 \begin_layout Plain Layout
17452 Element
17453 \end_layout
17454
17455 \end_inset
17456
17457 ): For use with DocBook classes.
17458 \end_layout
17459
17460 \begin_layout Standard
17461 Flex insets are defined using the 
17462 \begin_inset Flex Code
17463 status collapsed
17464
17465 \begin_layout Plain Layout
17466 InsetLayout
17467 \end_layout
17468
17469 \end_inset
17470
17471  tag, which shall be explained in a moment.
17472 \end_layout
17473
17474 \begin_layout Standard
17475 The 
17476 \begin_inset Flex Code
17477 status collapsed
17478
17479 \begin_layout Plain Layout
17480 InsetLayout
17481 \end_layout
17482
17483 \end_inset
17484
17485  tag also serves another function: It can be used to customize the general
17486  layout of many different types of insets.
17487  Currently, 
17488 \begin_inset Flex Code
17489 status collapsed
17490
17491 \begin_layout Plain Layout
17492 InsetLayout
17493 \end_layout
17494
17495 \end_inset
17496
17497  can be used to customize the layout parameters for footnotes, marginal
17498  notes, note insets, \SpecialChar TeX
17499  code (ERT) insets, branches, listings, indexes, boxes,
17500  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17501 \end_layout
17502
17503 \begin_layout Standard
17504 The 
17505 \begin_inset Flex Code
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509 InsetLayout
17510 \end_layout
17511
17512 \end_inset
17513
17514  definition must begin with a line of the form:
17515 \end_layout
17516
17517 \begin_layout LyX-Code
17518 InsetLayout <type>
17519 \end_layout
17520
17521 \begin_layout Standard
17522 Here 
17523 \begin_inset Flex Code
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527 <Type>
17528 \end_layout
17529
17530 \end_inset
17531
17532  indicates the inset whose layout is being defined, and here there are four
17533  cases.
17534 \end_layout
17535
17536 \begin_layout Enumerate
17537 The layout for a pre-existing inset is being modified.
17538  In this case, can be 
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 <Type>
17544 \end_layout
17545
17546 \end_inset
17547
17548  any one of the following: 
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 Algorithm
17554 \end_layout
17555
17556 \end_inset
17557
17558
17559 \begin_inset Flex Code
17560 status collapsed
17561
17562 \begin_layout Plain Layout
17563 Branch
17564 \end_layout
17565
17566 \end_inset
17567
17568
17569 \begin_inset Flex Code
17570 status collapsed
17571
17572 \begin_layout Plain Layout
17573 Box
17574 \end_layout
17575
17576 \end_inset
17577
17578
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 Box:shaded
17584 \end_layout
17585
17586 \end_inset
17587
17588
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 Caption:Standard
17594 \end_layout
17595
17596 \end_inset
17597
17598
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 ERT
17604 \end_layout
17605
17606 \end_inset
17607
17608
17609 \begin_inset Flex Code
17610 status collapsed
17611
17612 \begin_layout Plain Layout
17613 Figure
17614 \end_layout
17615
17616 \end_inset
17617
17618
17619 \begin_inset Flex Code
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 Foot
17624 \end_layout
17625
17626 \end_inset
17627
17628
17629 \begin_inset Flex Code
17630 status collapsed
17631
17632 \begin_layout Plain Layout
17633 Index
17634 \end_layout
17635
17636 \end_inset
17637
17638
17639 \begin_inset Flex Code
17640 status collapsed
17641
17642 \begin_layout Plain Layout
17643 Info
17644 \end_layout
17645
17646 \end_inset
17647
17648
17649 \begin_inset Flex Code
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653 Info:menu
17654 \end_layout
17655
17656 \end_inset
17657
17658
17659 \begin_inset Flex Code
17660 status collapsed
17661
17662 \begin_layout Plain Layout
17663 Info:shortcut
17664 \end_layout
17665
17666 \end_inset
17667
17668
17669 \begin_inset Flex Code
17670 status collapsed
17671
17672 \begin_layout Plain Layout
17673 Info:shortcuts
17674 \end_layout
17675
17676 \end_inset
17677
17678
17679 \begin_inset Flex Code
17680 status collapsed
17681
17682 \begin_layout Plain Layout
17683 Listings
17684 \end_layout
17685
17686 \end_inset
17687
17688
17689 \begin_inset Flex Code
17690 status collapsed
17691
17692 \begin_layout Plain Layout
17693 Marginal
17694 \end_layout
17695
17696 \end_inset
17697
17698
17699 \begin_inset Flex Code
17700 status collapsed
17701
17702 \begin_layout Plain Layout
17703 Note:Comment
17704 \end_layout
17705
17706 \end_inset
17707
17708
17709 \begin_inset Flex Code
17710 status collapsed
17711
17712 \begin_layout Plain Layout
17713 Note:Note
17714 \end_layout
17715
17716 \end_inset
17717
17718
17719 \begin_inset Flex Code
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 Note:Greyedout
17724 \end_layout
17725
17726 \end_inset
17727
17728
17729 \begin_inset Flex Code
17730 status collapsed
17731
17732 \begin_layout Plain Layout
17733 Table
17734 \end_layout
17735
17736 \end_inset
17737
17738 , or 
17739 \begin_inset Flex Code
17740 status collapsed
17741
17742 \begin_layout Plain Layout
17743 URL
17744 \end_layout
17745
17746 \end_inset
17747
17748 .
17749 \end_layout
17750
17751 \begin_layout Enumerate
17752 The layout for a Flex inset is being defined.
17753  In this case, 
17754 \begin_inset Flex Code
17755 status collapsed
17756
17757 \begin_layout Plain Layout
17758 <Type>
17759 \end_layout
17760
17761 \end_inset
17762
17763  must be of the form 
17764 \begin_inset Quotes eld
17765 \end_inset
17766
17767
17768 \begin_inset Flex Code
17769 status collapsed
17770
17771 \begin_layout Plain Layout
17772 Flex:<name>
17773 \end_layout
17774
17775 \end_inset
17776
17777
17778 \begin_inset Quotes erd
17779 \end_inset
17780
17781 , where 
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 name
17787 \end_layout
17788
17789 \end_inset
17790
17791  may be be any valid identifier not used by a pre-existing Flex inset.
17792  The identifier may include spaces, but in that case the whole thing must
17793  be wrapped in quotes.
17794  Note that the definition of a flex inset 
17795 \emph on
17796 must 
17797 \emph default
17798 also include a 
17799 \begin_inset Flex Code
17800 status collapsed
17801
17802 \begin_layout Plain Layout
17803 LyXType
17804 \end_layout
17805
17806 \end_inset
17807
17808  entry, declaring which type of inset it defines.
17809 \end_layout
17810
17811 \begin_layout Enumerate
17812 The layout for user specific branch is being defined.
17813  In this case, 
17814 \begin_inset Flex Code
17815 status collapsed
17816
17817 \begin_layout Plain Layout
17818 <Type>
17819 \end_layout
17820
17821 \end_inset
17822
17823  must be of the form 
17824 \begin_inset Quotes eld
17825 \end_inset
17826
17827
17828 \begin_inset Flex Code
17829 status collapsed
17830
17831 \begin_layout Plain Layout
17832 Branch:<name>
17833 \end_layout
17834
17835 \end_inset
17836
17837
17838 \begin_inset Quotes erd
17839 \end_inset
17840
17841 , where 
17842 \begin_inset Flex Code
17843 status collapsed
17844
17845 \begin_layout Plain Layout
17846 name
17847 \end_layout
17848
17849 \end_inset
17850
17851  may be be any valid identifier of branch defined in user's document.
17852  The identifier may include spaces, but in that case the whole thing must
17853  be wrapped in quotes.
17854  The main purpose of this feature is to allow \SpecialChar LaTeX
17855  wrapping around specific
17856  branches as user needs.
17857 \end_layout
17858
17859 \begin_layout Enumerate
17860 The layout of a user (or class) specific caption is being defined.
17861  In this case, 
17862 \begin_inset Flex Code
17863 status collapsed
17864
17865 \begin_layout Plain Layout
17866 <Type>
17867 \end_layout
17868
17869 \end_inset
17870
17871  must be of the form 
17872 \begin_inset Quotes eld
17873 \end_inset
17874
17875
17876 \begin_inset Flex Code
17877 status collapsed
17878
17879 \begin_layout Plain Layout
17880 Caption:<name>
17881 \end_layout
17882
17883 \end_inset
17884
17885
17886 \begin_inset Quotes erd
17887 \end_inset
17888
17889 , where 
17890 \begin_inset Flex Code
17891 status collapsed
17892
17893 \begin_layout Plain Layout
17894 name
17895 \end_layout
17896
17897 \end_inset
17898
17899  specifies the name of the caption as it appears in the menu.
17900  Have a look at the standard caption (
17901 \begin_inset Flex Code
17902 status collapsed
17903
17904 \begin_layout Plain Layout
17905 Caption:Standard
17906 \end_layout
17907
17908 \end_inset
17909
17910 ), the specific captions of the KOMA-Script classes (
17911 \begin_inset Flex Code
17912 status collapsed
17913
17914 \begin_layout Plain Layout
17915 Caption:Above
17916 \end_layout
17917
17918 \end_inset
17919
17920
17921 \begin_inset Flex Code
17922 status collapsed
17923
17924 \begin_layout Plain Layout
17925 Caption:Below
17926 \end_layout
17927
17928 \end_inset
17929
17930 ) or the module 
17931 \family sans
17932 Multilingual
17933 \begin_inset space ~
17934 \end_inset
17935
17936 Captions
17937 \begin_inset Newline linebreak
17938 \end_inset
17939
17940
17941 \family default
17942 (
17943 \begin_inset Flex Code
17944 status collapsed
17945
17946 \begin_layout Plain Layout
17947 Caption:Bicaption
17948 \end_layout
17949
17950 \end_inset
17951
17952 ) for applications.
17953 \end_layout
17954
17955 \begin_layout Standard
17956 The 
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 InsetLayout
17962 \end_layout
17963
17964 \end_inset
17965
17966  definition can contain the following entries:
17967 \end_layout
17968
17969 \begin_layout Description
17970 \begin_inset Flex Code
17971 status collapsed
17972
17973 \begin_layout Plain Layout
17974 AddToToc
17975 \end_layout
17976
17977 \end_inset
17978
17979  [
17980 \begin_inset Flex Code
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 string
17985 \end_layout
17986
17987 \end_inset
17988
17989 =""] This inset will appear in the table of contents of the given type.
17990  An empty string disables.
17991  See also the OutlinerName and the IsTocCaption commands.
17992  This is only implemented for Flex insets.
17993  Default: disabled.
17994 \end_layout
17995
17996 \begin_layout Description
17997 \begin_inset Flex Code
17998 status collapsed
17999
18000 \begin_layout Plain Layout
18001 Argument
18002 \end_layout
18003
18004 \end_inset
18005
18006  [
18007 \begin_inset Flex Code
18008 status collapsed
18009
18010 \begin_layout Plain Layout
18011 int
18012 \end_layout
18013
18014 \end_inset
18015
18016 ] Defines argument number of a command\SpecialChar breakableslash
18017 environment associated with the current
18018  layout.
18019  The definition must end with 
18020 \begin_inset Flex Code
18021 status collapsed
18022
18023 \begin_layout Plain Layout
18024 EndArgument
18025 \end_layout
18026
18027 \end_inset
18028
18029 .
18030  See 
18031 \begin_inset CommandInset ref
18032 LatexCommand ref
18033 reference "subsec:Paragraph-Styles"
18034
18035 \end_inset
18036
18037  for details.
18038 \end_layout
18039
18040 \begin_layout Description
18041 \begin_inset Flex Code
18042 status collapsed
18043
18044 \begin_layout Plain Layout
18045 BabelPreamble
18046 \end_layout
18047
18048 \end_inset
18049
18050  Preamble for changing language commands; see 
18051 \begin_inset CommandInset ref
18052 LatexCommand ref
18053 reference "subsec:I18n"
18054
18055 \end_inset
18056
18057 .
18058 \end_layout
18059
18060 \begin_layout Description
18061 \begin_inset Flex Code
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065 BgColor
18066 \end_layout
18067
18068 \end_inset
18069
18070  [
18071 \begin_inset Flex Code
18072 status collapsed
18073
18074 \begin_layout Plain Layout
18075 <name>
18076 \end_layout
18077
18078 \end_inset
18079
18080 ] The color for the inset's background.
18081  See 
18082 \begin_inset CommandInset ref
18083 LatexCommand ref
18084 reference "chap:Names-of-colors"
18085
18086 \end_inset
18087
18088  for a list of the available color names.
18089 \end_layout
18090
18091 \begin_layout Description
18092 \begin_inset Flex Code
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096 ContentAsLabel
18097 \end_layout
18098
18099 \end_inset
18100
18101  [
18102 \begin_inset Flex Code
18103 status collapsed
18104
18105 \begin_layout Plain Layout
18106
18107 \emph on
18108 0
18109 \end_layout
18110
18111 \end_inset
18112
18113 ,
18114 \begin_inset space \thinspace{}
18115 \end_inset
18116
18117
18118 \begin_inset Flex Code
18119 status collapsed
18120
18121 \begin_layout Plain Layout
18122 1
18123 \end_layout
18124
18125 \end_inset
18126
18127 ] Whether to use the content of the inset as the label, when the inset is
18128  closed.
18129  Default is false.
18130 \end_layout
18131
18132 \begin_layout Description
18133 \begin_inset Flex Code
18134 status collapsed
18135
18136 \begin_layout Plain Layout
18137 CopyStyle
18138 \end_layout
18139
18140 \end_inset
18141
18142  [
18143 \begin_inset Flex Code
18144 status collapsed
18145
18146 \begin_layout Plain Layout
18147 <type>
18148 \end_layout
18149
18150 \end_inset
18151
18152 ] As with paragraph styles, see 
18153 \begin_inset CommandInset ref
18154 LatexCommand ref
18155 reference "subsec:Paragraph-Styles"
18156
18157 \end_inset
18158
18159 .
18160  Note that you need to specify the complete type, e.
18161 \begin_inset space \thinspace{}
18162 \end_inset
18163
18164 g.
18165 \begin_inset space ~
18166 \end_inset
18167
18168
18169 \begin_inset Flex Code
18170 status collapsed
18171
18172 \begin_layout Plain Layout
18173 CopyStyle Flex:<name>
18174 \end_layout
18175
18176 \end_inset
18177
18178 .
18179 \end_layout
18180
18181 \begin_layout Description
18182 \begin_inset Flex Code
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 CustomPars
18187 \end_layout
18188
18189 \end_inset
18190
18191  [
18192 \begin_inset Flex Code
18193 status collapsed
18194
18195 \begin_layout Plain Layout
18196
18197 \emph on
18198 0
18199 \end_layout
18200
18201 \end_inset
18202
18203 ,
18204 \begin_inset space \thinspace{}
18205 \end_inset
18206
18207
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212 1
18213 \end_layout
18214
18215 \end_inset
18216
18217 ] Indicates whether the user may employ the Paragraph Settings dialog to
18218  customize the paragraph.
18219 \end_layout
18220
18221 \begin_layout Description
18222 \begin_inset Flex Code
18223 status collapsed
18224
18225 \begin_layout Plain Layout
18226 Decoration
18227 \end_layout
18228
18229 \end_inset
18230
18231  can be 
18232 \begin_inset Flex Code
18233 status collapsed
18234
18235 \begin_layout Plain Layout
18236 Classic
18237 \end_layout
18238
18239 \end_inset
18240
18241
18242 \begin_inset Flex Code
18243 status collapsed
18244
18245 \begin_layout Plain Layout
18246 Minimalistic
18247 \end_layout
18248
18249 \end_inset
18250
18251 , or 
18252 \begin_inset Flex Code
18253 status collapsed
18254
18255 \begin_layout Plain Layout
18256 Conglomerate
18257 \end_layout
18258
18259 \end_inset
18260
18261 , describing the rendering style used for the inset's frame and buttons.
18262  Footnotes generally use 
18263 \begin_inset Flex Code
18264 status collapsed
18265
18266 \begin_layout Plain Layout
18267 Classic
18268 \end_layout
18269
18270 \end_inset
18271
18272 , ERT insets generally 
18273 \begin_inset Flex Code
18274 status collapsed
18275
18276 \begin_layout Plain Layout
18277 Minimalistic
18278 \end_layout
18279
18280 \end_inset
18281
18282 , and character styles 
18283 \begin_inset Flex Code
18284 status collapsed
18285
18286 \begin_layout Plain Layout
18287 Conglomerate
18288 \end_layout
18289
18290 \end_inset
18291
18292 .
18293 \end_layout
18294
18295 \begin_layout Description
18296 \begin_inset Flex Code
18297 status collapsed
18298
18299 \begin_layout Plain Layout
18300 Display
18301 \end_layout
18302
18303 \end_inset
18304
18305  [
18306 \begin_inset Flex Code
18307 status collapsed
18308
18309 \begin_layout Plain Layout
18310 0
18311 \end_layout
18312
18313 \end_inset
18314
18315 ,
18316 \emph on
18317
18318 \begin_inset space \thinspace{}
18319 \end_inset
18320
18321
18322 \emph default
18323
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328
18329 \emph on
18330 1
18331 \end_layout
18332
18333 \end_inset
18334
18335 ] Only useful if 
18336 \begin_inset Flex Code
18337 status collapsed
18338
18339 \begin_layout Plain Layout
18340 LatexType
18341 \end_layout
18342
18343 \end_inset
18344
18345  is 
18346 \begin_inset Flex Code
18347 status collapsed
18348
18349 \begin_layout Plain Layout
18350 Environment
18351 \end_layout
18352
18353 \end_inset
18354
18355 .
18356  Indicates whether the environment will stand on its own in the output or
18357  will appear inline with the surrounding text.
18358  If set to false, it is supposed that the \SpecialChar LaTeX
18359  environment ignores white space
18360  (including one newline character) after the 
18361 \begin_inset Flex Code
18362 status collapsed
18363
18364 \begin_layout Plain Layout
18365
18366 \backslash
18367 begin{
18368 \emph on
18369 LatexName
18370 \emph default
18371 }
18372 \end_layout
18373
18374 \end_inset
18375
18376  and 
18377 \begin_inset Flex Code
18378 status collapsed
18379
18380 \begin_layout Plain Layout
18381
18382 \backslash
18383 end{
18384 \emph on
18385 LatexName
18386 \emph default
18387 }
18388 \end_layout
18389
18390 \end_inset
18391
18392  tags.
18393  Default is true.
18394 \end_layout
18395
18396 \begin_layout Description
18397 \begin_inset Flex Code
18398 status collapsed
18399
18400 \begin_layout Plain Layout
18401 End
18402 \end_layout
18403
18404 \end_inset
18405
18406  Required at the end of the 
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 InsetLayout
18412 \end_layout
18413
18414 \end_inset
18415
18416  declarations.
18417 \end_layout
18418
18419 \begin_layout Description
18420 \begin_inset Flex Code
18421 status collapsed
18422
18423 \begin_layout Plain Layout
18424 Font
18425 \end_layout
18426
18427 \end_inset
18428
18429  The font used for both the text body 
18430 \emph on
18431 and
18432 \emph default
18433  the label.
18434  See 
18435 \begin_inset CommandInset ref
18436 LatexCommand ref
18437 reference "subsec:Font-description"
18438
18439 \end_inset
18440
18441 .
18442  Note that defining this font automatically defines the 
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447 LabelFont
18448 \end_layout
18449
18450 \end_inset
18451
18452  to the same value, so define this first and define 
18453 \begin_inset Flex Code
18454 status collapsed
18455
18456 \begin_layout Plain Layout
18457 LabelFont
18458 \end_layout
18459
18460 \end_inset
18461
18462  later if you want them to be different.
18463 \end_layout
18464
18465 \begin_layout Description
18466 \begin_inset Flex Code
18467 status collapsed
18468
18469 \begin_layout Plain Layout
18470 FixedWidthPreambleEncoding
18471 \end_layout
18472
18473 \end_inset
18474
18475  [
18476 \begin_inset Flex Code
18477 status collapsed
18478
18479 \begin_layout Plain Layout
18480
18481 \emph on
18482 0
18483 \end_layout
18484
18485 \end_inset
18486
18487 ,
18488 \begin_inset space \thinspace{}
18489 \end_inset
18490
18491
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496 1
18497 \end_layout
18498
18499 \end_inset
18500
18501 ] Force a fixed width encoding for the translated contents of 
18502 \begin_inset Flex Code
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506 BabelPreamble
18507 \end_layout
18508
18509 \end_inset
18510
18511  and 
18512 \begin_inset Flex Code
18513 status collapsed
18514
18515 \begin_layout Plain Layout
18516 LangPreamble
18517 \end_layout
18518
18519 \end_inset
18520
18521  code generated by this layout.
18522  This is needed for special \SpecialChar LaTeX
18523 -packages like 
18524 \family typewriter
18525 listings
18526 \family default
18527  that do not work with variable width encodings such as 
18528 \family sans
18529 utf8
18530 \family default
18531 .
18532  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18533  backends such as Xe\SpecialChar TeX
18534  or
18535  Lua\SpecialChar TeX
18536  are used.
18537 \end_layout
18538
18539 \begin_layout Description
18540 \begin_inset Flex Code
18541 status collapsed
18542
18543 \begin_layout Plain Layout
18544 ForceLocalFontSwitch
18545 \end_layout
18546
18547 \end_inset
18548
18549  [
18550 \begin_inset Flex Code
18551 status collapsed
18552
18553 \begin_layout Plain Layout
18554
18555 \emph on
18556 0
18557 \end_layout
18558
18559 \end_inset
18560
18561 ,
18562 \begin_inset space \thinspace{}
18563 \end_inset
18564
18565
18566 \begin_inset Flex Code
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570 1
18571 \end_layout
18572
18573 \end_inset
18574
18575 ] When using babel, always use a local font switch (
18576 \begin_inset Flex Code
18577 status collapsed
18578
18579 \begin_layout Plain Layout
18580
18581 \backslash
18582 foreignlanguage
18583 \end_layout
18584
18585 \end_inset
18586
18587 ), never a global one (such as 
18588 \begin_inset Flex Code
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592
18593 \backslash
18594 selectlanguage
18595 \end_layout
18596
18597 \end_inset
18598
18599 ).
18600 \end_layout
18601
18602 \begin_layout Description
18603 \begin_inset Flex Code
18604 status collapsed
18605
18606 \begin_layout Plain Layout
18607 ForceLTR
18608 \end_layout
18609
18610 \end_inset
18611
18612  [
18613 \begin_inset Flex Code
18614 status collapsed
18615
18616 \begin_layout Plain Layout
18617
18618 \emph on
18619 0
18620 \end_layout
18621
18622 \end_inset
18623
18624 ,
18625 \begin_inset space \thinspace{}
18626 \end_inset
18627
18628
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 1
18634 \end_layout
18635
18636 \end_inset
18637
18638 ] Force the 
18639 \begin_inset Quotes eld
18640 \end_inset
18641
18642 latex
18643 \begin_inset Quotes erd
18644 \end_inset
18645
18646  language, leading to Left-to-Right (Latin) output, e.
18647 \begin_inset space \thinspace{}
18648 \end_inset
18649
18650 g.
18651 \begin_inset space \space{}
18652 \end_inset
18653
18654 in \SpecialChar TeX
18655  code or URL.
18656  A kludge.
18657 \end_layout
18658
18659 \begin_layout Description
18660 \begin_inset Flex Code
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664 ForceOwnlines
18665 \end_layout
18666
18667 \end_inset
18668
18669  [
18670 \begin_inset Flex Code
18671 status collapsed
18672
18673 \begin_layout Plain Layout
18674
18675 \emph on
18676 0
18677 \end_layout
18678
18679 \end_inset
18680
18681 ,
18682 \begin_inset space \thinspace{}
18683 \end_inset
18684
18685
18686 \begin_inset Flex Code
18687 status collapsed
18688
18689 \begin_layout Plain Layout
18690 1
18691 \end_layout
18692
18693 \end_inset
18694
18695 ] Force a a line break in the \SpecialChar LaTeX
18696  output before the inset starts and after
18697  the inset ends.
18698  This assures the inset itself is output on its own lines, for parsing purposes.
18699 \end_layout
18700
18701 \begin_layout Description
18702 \begin_inset Flex Code
18703 status collapsed
18704
18705 \begin_layout Plain Layout
18706 ForcePlain
18707 \end_layout
18708
18709 \end_inset
18710
18711  [
18712 \begin_inset Flex Code
18713 status collapsed
18714
18715 \begin_layout Plain Layout
18716
18717 \emph on
18718 0
18719 \end_layout
18720
18721 \end_inset
18722
18723 ,
18724 \begin_inset space \thinspace{}
18725 \end_inset
18726
18727
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 1
18733 \end_layout
18734
18735 \end_inset
18736
18737 ] Indicates whether the 
18738 \begin_inset Flex Code
18739 status collapsed
18740
18741 \begin_layout Plain Layout
18742 PlainLayout
18743 \end_layout
18744
18745 \end_inset
18746
18747  should be used or, instead, the user can change the paragraph style used
18748  in the inset.
18749  Default is false.
18750 \end_layout
18751
18752 \begin_layout Description
18753 \begin_inset Flex Code
18754 status collapsed
18755
18756 \begin_layout Plain Layout
18757 FreeSpacing
18758 \end_layout
18759
18760 \end_inset
18761
18762  [
18763 \begin_inset Flex Code
18764 status collapsed
18765
18766 \begin_layout Plain Layout
18767
18768 \emph on
18769 0
18770 \end_layout
18771
18772 \end_inset
18773
18774 ,
18775 \begin_inset space \thinspace{}
18776 \end_inset
18777
18778
18779 \begin_inset Flex Code
18780 status collapsed
18781
18782 \begin_layout Plain Layout
18783 1
18784 \end_layout
18785
18786 \end_inset
18787
18788 ] As with paragraph styles, see 
18789 \begin_inset CommandInset ref
18790 LatexCommand ref
18791 reference "subsec:Paragraph-Styles"
18792
18793 \end_inset
18794
18795 .
18796 \end_layout
18797
18798 \begin_layout Description
18799 \begin_inset Flex Code
18800 status collapsed
18801
18802 \begin_layout Plain Layout
18803 HTML*
18804 \end_layout
18805
18806 \end_inset
18807
18808  These tags control the XHTML output.
18809  See 
18810 \begin_inset CommandInset ref
18811 LatexCommand ref
18812 reference "sec:Tags-for-XHTML"
18813
18814 \end_inset
18815
18816 .
18817 \end_layout
18818
18819 \begin_layout Description
18820 \begin_inset Flex Code
18821 status collapsed
18822
18823 \begin_layout Plain Layout
18824 InToc
18825 \end_layout
18826
18827 \end_inset
18828
18829  [
18830 \begin_inset Flex Code
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834
18835 \emph on
18836 0
18837 \end_layout
18838
18839 \end_inset
18840
18841 ,
18842 \begin_inset space \thinspace{}
18843 \end_inset
18844
18845
18846 \begin_inset Flex Code
18847 status collapsed
18848
18849 \begin_layout Plain Layout
18850 1
18851 \end_layout
18852
18853 \end_inset
18854
18855 ] Whether to include the contents of this inset in the strings generated
18856  for the `Outline' pane for all table of contents, regardless of the AddToToc
18857  setting.
18858  One would not, for example, want the content of a footnote in a section
18859  header to be included in the TOC displayed in the outline, but one would
18860  normally want the content of a character style displayed.
18861  Default is false: not to include.
18862 \end_layout
18863
18864 \begin_layout Description
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 IsTocCaption
18870 \end_layout
18871
18872 \end_inset
18873
18874  [
18875 \begin_inset Flex Code
18876 status collapsed
18877
18878 \begin_layout Plain Layout
18879
18880 \emph on
18881 0
18882 \end_layout
18883
18884 \end_inset
18885
18886 ,
18887 \begin_inset space \thinspace{}
18888 \end_inset
18889
18890
18891 \begin_inset Flex Code
18892 status collapsed
18893
18894 \begin_layout Plain Layout
18895 1
18896 \end_layout
18897
18898 \end_inset
18899
18900 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18901  of its contents in its item in the table of contents.
18902  Otherwise, only the label appears.
18903 \end_layout
18904
18905 \begin_layout Description
18906 \begin_inset Flex Code
18907 status collapsed
18908
18909 \begin_layout Plain Layout
18910 KeepEmpty
18911 \end_layout
18912
18913 \end_inset
18914
18915  [
18916 \emph on
18917
18918 \begin_inset Flex Code
18919 status collapsed
18920
18921 \begin_layout Plain Layout
18922 0
18923 \end_layout
18924
18925 \end_inset
18926
18927
18928 \emph default
18929 ,
18930 \begin_inset space \thinspace{}
18931 \end_inset
18932
18933
18934 \begin_inset Flex Code
18935 status collapsed
18936
18937 \begin_layout Plain Layout
18938 1
18939 \end_layout
18940
18941 \end_inset
18942
18943 ] As with paragraph styles, see 
18944 \begin_inset CommandInset ref
18945 LatexCommand ref
18946 reference "subsec:Paragraph-Styles"
18947
18948 \end_inset
18949
18950 .
18951 \end_layout
18952
18953 \begin_layout Description
18954 \begin_inset Flex Code
18955 status collapsed
18956
18957 \begin_layout Plain Layout
18958 LabelFont
18959 \end_layout
18960
18961 \end_inset
18962
18963  The font used for the label.
18964  See 
18965 \begin_inset CommandInset ref
18966 LatexCommand ref
18967 reference "subsec:Font-description"
18968
18969 \end_inset
18970
18971 .
18972  Note that this definition can never appear before 
18973 \begin_inset Flex Code
18974 status collapsed
18975
18976 \begin_layout Plain Layout
18977 Font
18978 \end_layout
18979
18980 \end_inset
18981
18982 , lest it be ineffective.
18983 \end_layout
18984
18985 \begin_layout Description
18986 \begin_inset Flex Code
18987 status collapsed
18988
18989 \begin_layout Plain Layout
18990 LabelString
18991 \end_layout
18992
18993 \end_inset
18994
18995  [
18996 \begin_inset Flex Code
18997 status collapsed
18998
18999 \begin_layout Plain Layout
19000 string
19001 \end_layout
19002
19003 \end_inset
19004
19005 =
19006 \begin_inset Quotes erd
19007 \end_inset
19008
19009
19010 \begin_inset Quotes erd
19011 \end_inset
19012
19013 ] What will be displayed on the button or elsewhere as the inset label.
19014  Some inset types (
19015 \begin_inset Flex Code
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 \SpecialChar TeX
19020  code
19021 \end_layout
19022
19023 \end_inset
19024
19025  and 
19026 \begin_inset Flex Code
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 Branch
19031 \end_layout
19032
19033 \end_inset
19034
19035 ) modify this label on the fly.
19036 \end_layout
19037
19038 \begin_layout Description
19039 \begin_inset Flex Code
19040 status collapsed
19041
19042 \begin_layout Plain Layout
19043 LangPreamble
19044 \end_layout
19045
19046 \end_inset
19047
19048  Language dependent preamble; see 
19049 \begin_inset CommandInset ref
19050 LatexCommand ref
19051 reference "subsec:I18n"
19052
19053 \end_inset
19054
19055 .
19056 \end_layout
19057
19058 \begin_layout Description
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063 LatexName
19064 \end_layout
19065
19066 \end_inset
19067
19068  [
19069 \begin_inset Flex Code
19070 status collapsed
19071
19072 \begin_layout Plain Layout
19073 <name>
19074 \end_layout
19075
19076 \end_inset
19077
19078 ] The name of the corresponding \SpecialChar LaTeX
19079  stuff.
19080  Either the environment or command name.
19081 \end_layout
19082
19083 \begin_layout Description
19084 \begin_inset Flex Code
19085 status collapsed
19086
19087 \begin_layout Plain Layout
19088 LatexParam
19089 \end_layout
19090
19091 \end_inset
19092
19093  [
19094 \begin_inset Flex Code
19095 status collapsed
19096
19097 \begin_layout Plain Layout
19098 <parameter>
19099 \end_layout
19100
19101 \end_inset
19102
19103 ] The optional parameter for the corresponding 
19104 \begin_inset Flex Code
19105 status collapsed
19106
19107 \begin_layout Plain Layout
19108 LatexName
19109 \end_layout
19110
19111 \end_inset
19112
19113  stuff, including possible bracket pairs like 
19114 \begin_inset Flex Code
19115 status collapsed
19116
19117 \begin_layout Plain Layout
19118 []
19119 \end_layout
19120
19121 \end_inset
19122
19123 .
19124  This parameter cannot be changed from within \SpecialChar LyX
19125  (use 
19126 \begin_inset Flex Code
19127 status collapsed
19128
19129 \begin_layout Plain Layout
19130 Argument
19131 \end_layout
19132
19133 \end_inset
19134
19135  for customizable parameters).
19136  It will be output as is after all \SpecialChar LaTeX
19137  
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 Argument
19143 \end_layout
19144
19145 \end_inset
19146
19147 s.
19148 \end_layout
19149
19150 \begin_layout Description
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 LatexType
19156 \end_layout
19157
19158 \end_inset
19159
19160  [
19161 \begin_inset Flex Code
19162 status collapsed
19163
19164 \begin_layout Plain Layout
19165 Command, Environment, None
19166 \end_layout
19167
19168 \end_inset
19169
19170 ] How the style should be translated into \SpecialChar LaTeX
19171 .
19172 \begin_inset Foot
19173 status collapsed
19174
19175 \begin_layout Plain Layout
19176 \begin_inset Flex Code
19177 status collapsed
19178
19179 \begin_layout Plain Layout
19180 LatexType
19181 \end_layout
19182
19183 \end_inset
19184
19185  is perhaps a bit misleading, since these rules apply to SGML classes too.
19186  Visit the SGML class files for specific examples.
19187 \end_layout
19188
19189 \end_inset
19190
19191
19192 \end_layout
19193
19194 \begin_deeper
19195 \begin_layout Description
19196 \begin_inset Flex Code
19197 status collapsed
19198
19199 \begin_layout Plain Layout
19200 None
19201 \end_layout
19202
19203 \end_inset
19204
19205  means nothing special
19206 \end_layout
19207
19208 \begin_layout Description
19209 \begin_inset Flex Code
19210 status collapsed
19211
19212 \begin_layout Plain Layout
19213 Command
19214 \end_layout
19215
19216 \end_inset
19217
19218  means 
19219 \begin_inset Flex Code
19220 status collapsed
19221
19222 \begin_layout Plain Layout
19223
19224 \backslash
19225
19226 \emph on
19227 LatexName
19228 \emph default
19229 {\SpecialChar ldots
19230 }
19231 \end_layout
19232
19233 \end_inset
19234
19235
19236 \end_layout
19237
19238 \begin_layout Description
19239 \begin_inset Flex Code
19240 status collapsed
19241
19242 \begin_layout Plain Layout
19243 Environment
19244 \end_layout
19245
19246 \end_inset
19247
19248  means 
19249 \begin_inset Flex Code
19250 status collapsed
19251
19252 \begin_layout Plain Layout
19253
19254 \backslash
19255 begin{
19256 \emph on
19257 LatexName
19258 \emph default
19259 }\SpecialChar ldots
19260
19261 \backslash
19262 end{
19263 \emph on
19264 LatexName
19265 \emph default
19266 }
19267 \end_layout
19268
19269 \end_inset
19270
19271
19272 \end_layout
19273
19274 \begin_layout Standard
19275 Putting the last few things together, the \SpecialChar LaTeX
19276  output will be either: 
19277 \end_layout
19278
19279 \begin_layout LyX-Code
19280
19281 \backslash
19282 LatexName[LatexParam]{\SpecialChar ldots
19283 }
19284 \end_layout
19285
19286 \begin_layout Standard
19287 or: 
19288 \end_layout
19289
19290 \begin_layout LyX-Code
19291
19292 \backslash
19293 begin{LatexName}[LatexParam] \SpecialChar ldots
19294  
19295 \backslash
19296 end{LatexName}
19297 \end_layout
19298
19299 \begin_layout Standard
19300 depending upon the \SpecialChar LaTeX
19301  type.
19302 \end_layout
19303
19304 \end_deeper
19305 \begin_layout Description
19306 \begin_inset Flex Code
19307 status collapsed
19308
19309 \begin_layout Plain Layout
19310 LeftDelim
19311 \end_layout
19312
19313 \end_inset
19314
19315  [
19316 \begin_inset Flex Code
19317 status collapsed
19318
19319 \begin_layout Plain Layout
19320 string
19321 \end_layout
19322
19323 \end_inset
19324
19325 ] A string that is put at the beginning of the layout content.
19326  A line break in the output can be indicated by 
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 <br/>
19332 \end_layout
19333
19334 \end_inset
19335
19336 .
19337 \end_layout
19338
19339 \begin_layout Description
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 LyxType
19345 \end_layout
19346
19347 \end_inset
19348
19349  Can be 
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354 charstyle
19355 \end_layout
19356
19357 \end_inset
19358
19359
19360 \begin_inset Flex Code
19361 status collapsed
19362
19363 \begin_layout Plain Layout
19364 custom
19365 \end_layout
19366
19367 \end_inset
19368
19369
19370 \begin_inset Flex Code
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374 element
19375 \end_layout
19376
19377 \end_inset
19378
19379  or 
19380 \begin_inset Flex Code
19381 status collapsed
19382
19383 \begin_layout Plain Layout
19384 end
19385 \end_layout
19386
19387 \end_inset
19388
19389  (indicating a dummy definition ending definitions of charstyles, etc).
19390  This entry is required in and is only meaningful for Flex insets.
19391  Among other things, it determines on which menu this inset will appear.
19392  Setting 
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 LyxType
19398 \end_layout
19399
19400 \end_inset
19401
19402  to 
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 charstyle
19408 \end_layout
19409
19410 \end_inset
19411
19412  will automatically set 
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 MultiPar
19418 \end_layout
19419
19420 \end_inset
19421
19422  to false and 
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427 ForcePlain
19428 \end_layout
19429
19430 \end_inset
19431
19432  to true.
19433  
19434 \begin_inset Flex Code
19435 status collapsed
19436
19437 \begin_layout Plain Layout
19438 MultiPar
19439 \end_layout
19440
19441 \end_inset
19442
19443  can be set to true, or 
19444 \begin_inset Flex Code
19445 status collapsed
19446
19447 \begin_layout Plain Layout
19448 ForcePlain
19449 \end_layout
19450
19451 \end_inset
19452
19453  to false, for 
19454 \begin_inset Flex Code
19455 status collapsed
19456
19457 \begin_layout Plain Layout
19458 charstyle
19459 \end_layout
19460
19461 \end_inset
19462
19463  insets by setting it 
19464 \emph on
19465 after
19466 \emph default
19467  you set the 
19468 \begin_inset Flex Code
19469 status collapsed
19470
19471 \begin_layout Plain Layout
19472 LyxType
19473 \end_layout
19474
19475 \end_inset
19476
19477 .
19478 \end_layout
19479
19480 \begin_layout Description
19481 \begin_inset Flex Code
19482 status collapsed
19483
19484 \begin_layout Plain Layout
19485 MultiPar
19486 \end_layout
19487
19488 \end_inset
19489
19490  [
19491 \begin_inset Flex Code
19492 status collapsed
19493
19494 \begin_layout Plain Layout
19495
19496 \emph on
19497 0
19498 \end_layout
19499
19500 \end_inset
19501
19502 ,
19503 \begin_inset space \thinspace{}
19504 \end_inset
19505
19506
19507 \begin_inset Flex Code
19508 status collapsed
19509
19510 \begin_layout Plain Layout
19511 1
19512 \end_layout
19513
19514 \end_inset
19515
19516 ] Whether multiple paragraphs are permitted in this inset.
19517  This will also set 
19518 \begin_inset Flex Code
19519 status collapsed
19520
19521 \begin_layout Plain Layout
19522 CustomPars
19523 \end_layout
19524
19525 \end_inset
19526
19527  to the same value and 
19528 \begin_inset Flex Code
19529 status collapsed
19530
19531 \begin_layout Plain Layout
19532 ForcePlain
19533 \end_layout
19534
19535 \end_inset
19536
19537  to the opposite value.
19538  These can be reset to other values, if they are used 
19539 \emph on
19540 after
19541 \emph default
19542  
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547 MultiPar
19548 \end_layout
19549
19550 \end_inset
19551
19552 .
19553  Default is true.
19554 \end_layout
19555
19556 \begin_layout Description
19557 \begin_inset Flex Code
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 NeedProtect
19562 \end_layout
19563
19564 \end_inset
19565
19566  [
19567 \begin_inset Flex Code
19568 status collapsed
19569
19570 \begin_layout Plain Layout
19571
19572 \emph on
19573 0
19574 \end_layout
19575
19576 \end_inset
19577
19578 ,
19579 \begin_inset space \thinspace{}
19580 \end_inset
19581
19582
19583 \begin_inset Flex Code
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587 1
19588 \end_layout
19589
19590 \end_inset
19591
19592 ] Whether fragile commands in this inset should be 
19593 \begin_inset Flex Code
19594 status collapsed
19595
19596 \begin_layout Plain Layout
19597
19598 \backslash
19599 protect
19600 \end_layout
19601
19602 \end_inset
19603
19604 'ed.
19605  (Note: This is 
19606 \emph on
19607 not
19608 \emph default
19609  whether the command should itself be protected.) Default is false.
19610 \end_layout
19611
19612 \begin_layout Description
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 NoInsetLayout
19618 \end_layout
19619
19620 \end_inset
19621
19622  [
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 <layout>
19628 \end_layout
19629
19630 \end_inset
19631
19632 ] Deletes an existing 
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637 InsetLayout
19638 \end_layout
19639
19640 \end_inset
19641
19642 .
19643 \end_layout
19644
19645 \begin_layout Description
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 ObsoletedBy
19651 \end_layout
19652
19653 \end_inset
19654
19655  [
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 <layout>
19661 \end_layout
19662
19663 \end_inset
19664
19665 ] Name of an 
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 InsetLayout
19671 \end_layout
19672
19673 \end_inset
19674
19675  that has replaced this 
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 InsetLayout
19681 \end_layout
19682
19683 \end_inset
19684
19685 .
19686  This is used to rename an 
19687 \begin_inset Flex Code
19688 status collapsed
19689
19690 \begin_layout Plain Layout
19691 InsetLayout
19692 \end_layout
19693
19694 \end_inset
19695
19696 , while keeping backward compatibility.
19697 \end_layout
19698
19699 \begin_layout Description
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704 ParbreakIsNewline
19705 \end_layout
19706
19707 \end_inset
19708
19709  [
19710 \begin_inset Flex Code
19711 status collapsed
19712
19713 \begin_layout Plain Layout
19714
19715 \emph on
19716 0
19717 \end_layout
19718
19719 \end_inset
19720
19721 ,
19722 \begin_inset space \thinspace{}
19723 \end_inset
19724
19725
19726 \begin_inset Flex Code
19727 status collapsed
19728
19729 \begin_layout Plain Layout
19730 1
19731 \end_layout
19732
19733 \end_inset
19734
19735 ] As with paragraph styles, see 
19736 \begin_inset CommandInset ref
19737 LatexCommand ref
19738 reference "subsec:Paragraph-Styles"
19739
19740 \end_inset
19741
19742 .
19743  Default is false.
19744 \end_layout
19745
19746 \begin_layout Description
19747 \begin_inset Flex Code
19748 status collapsed
19749
19750 \begin_layout Plain Layout
19751 PassThru
19752 \end_layout
19753
19754 \end_inset
19755
19756  [
19757 \begin_inset Flex Code
19758 status collapsed
19759
19760 \begin_layout Plain Layout
19761
19762 \emph on
19763 0
19764 \end_layout
19765
19766 \end_inset
19767
19768 ,
19769 \begin_inset space \thinspace{}
19770 \end_inset
19771
19772
19773 \begin_inset Flex Code
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 1
19778 \end_layout
19779
19780 \end_inset
19781
19782 ] As with paragraph styles, see 
19783 \begin_inset CommandInset ref
19784 LatexCommand ref
19785 reference "subsec:Paragraph-Styles"
19786
19787 \end_inset
19788
19789 .
19790  Default is false.
19791 \end_layout
19792
19793 \begin_layout Description
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 Preamble
19799 \end_layout
19800
19801 \end_inset
19802
19803  As with paragraph styles, see 
19804 \begin_inset CommandInset ref
19805 LatexCommand ref
19806 reference "subsec:Paragraph-Styles"
19807
19808 \end_inset
19809
19810 .
19811 \end_layout
19812
19813 \begin_layout Description
19814 \begin_inset Flex Code
19815 status collapsed
19816
19817 \begin_layout Plain Layout
19818 RefPrefix
19819 \end_layout
19820
19821 \end_inset
19822
19823  [
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828 string
19829 \end_layout
19830
19831 \end_inset
19832
19833 ] The prefix to use when creating labels referring to insets of this type.
19834  This allows the use of formatted references.
19835 \end_layout
19836
19837 \begin_layout Description
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842 Requires
19843 \end_layout
19844
19845 \end_inset
19846
19847  [
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 string
19853 \end_layout
19854
19855 \end_inset
19856
19857 ] As with paragraph styles, see 
19858 \begin_inset CommandInset ref
19859 LatexCommand ref
19860 reference "subsec:Paragraph-Styles"
19861
19862 \end_inset
19863
19864 .
19865 \end_layout
19866
19867 \begin_layout Description
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872 ResetArgs
19873 \end_layout
19874
19875 \end_inset
19876
19877  [
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882
19883 \emph on
19884 0
19885 \end_layout
19886
19887 \end_inset
19888
19889 ,
19890 \begin_inset space \thinspace{}
19891 \end_inset
19892
19893
19894 \begin_inset Flex Code
19895 status collapsed
19896
19897 \begin_layout Plain Layout
19898 1
19899 \end_layout
19900
19901 \end_inset
19902
19903 ] Resets the \SpecialChar LaTeX
19904  arguments of this layout (as defined via the 
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909 Argument
19910 \end_layout
19911
19912 \end_inset
19913
19914  tag).
19915  This is useful if you have copied a style via 
19916 \begin_inset Flex Code
19917 status collapsed
19918
19919 \begin_layout Plain Layout
19920 CopyStyle
19921 \end_layout
19922
19923 \end_inset
19924
19925 , but you do not want to inherit its (required and optional) arguments.
19926 \end_layout
19927
19928 \begin_layout Description
19929 \begin_inset Flex Code
19930 status collapsed
19931
19932 \begin_layout Plain Layout
19933 ResetsFont
19934 \end_layout
19935
19936 \end_inset
19937
19938  [
19939 \begin_inset Flex Code
19940 status collapsed
19941
19942 \begin_layout Plain Layout
19943 0
19944 \end_layout
19945
19946 \end_inset
19947
19948 ,
19949 \begin_inset space \thinspace{}
19950 \end_inset
19951
19952
19953 \begin_inset Flex Code
19954 status collapsed
19955
19956 \begin_layout Plain Layout
19957
19958 \emph on
19959 1
19960 \end_layout
19961
19962 \end_inset
19963
19964 ] Whether this inset should use the font of its surrounding environment
19965  or uses its own.
19966  Default is false: use the font of the surrounding environment.
19967 \end_layout
19968
19969 \begin_layout Description
19970 \begin_inset Flex Code
19971 status collapsed
19972
19973 \begin_layout Plain Layout
19974 RightDelim
19975 \end_layout
19976
19977 \end_inset
19978
19979  [
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 string
19985 \end_layout
19986
19987 \end_inset
19988
19989 ] A string that is put at the end of the layout content.
19990  A line break in the output can be indicated by 
19991 \begin_inset Flex Code
19992 status collapsed
19993
19994 \begin_layout Plain Layout
19995 <br/>
19996 \end_layout
19997
19998 \end_inset
19999
20000 .
20001 \end_layout
20002
20003 \begin_layout Description
20004 \begin_inset Flex Code
20005 status collapsed
20006
20007 \begin_layout Plain Layout
20008 Spellcheck
20009 \end_layout
20010
20011 \end_inset
20012
20013  [
20014 \begin_inset Flex Code
20015 status collapsed
20016
20017 \begin_layout Plain Layout
20018 0
20019 \end_layout
20020
20021 \end_inset
20022
20023 ,
20024 \begin_inset space \thinspace{}
20025 \end_inset
20026
20027
20028 \begin_inset Flex Code
20029 status collapsed
20030
20031 \begin_layout Plain Layout
20032
20033 \emph on
20034 1
20035 \end_layout
20036
20037 \end_inset
20038
20039 ] Allow spell-checking the contents of this inset.
20040  Default is true.
20041 \end_layout
20042
20043 \begin_layout Subsection
20044 Counters
20045 \begin_inset CommandInset label
20046 LatexCommand label
20047 name "subsec:Counters"
20048
20049 \end_inset
20050
20051
20052 \end_layout
20053
20054 \begin_layout Standard
20055 It is necessary to define the counters (
20056 \begin_inset Flex Noun
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 chapter
20061 \end_layout
20062
20063 \end_inset
20064
20065
20066 \begin_inset Flex Noun
20067 status collapsed
20068
20069 \begin_layout Plain Layout
20070 figure
20071 \end_layout
20072
20073 \end_inset
20074
20075 , \SpecialChar ldots
20076 ) in the text class itself.
20077  The standard counters are defined in the file 
20078 \begin_inset Flex Code
20079 status collapsed
20080
20081 \begin_layout Plain Layout
20082 stdcounters.inc
20083 \end_layout
20084
20085 \end_inset
20086
20087 , so you may have to do no more than add
20088 \end_layout
20089
20090 \begin_layout LyX-Code
20091 Input stdcounters.inc
20092 \end_layout
20093
20094 \begin_layout Standard
20095 to your layout file to get them to work.
20096  But if you want to define custom counters, then you can do so.
20097  The counter declaration must begin with:
20098 \end_layout
20099
20100 \begin_layout LyX-Code
20101 Counter CounterName
20102 \end_layout
20103
20104 \begin_layout Standard
20105 where of course `
20106 \begin_inset Flex Code
20107 status collapsed
20108
20109 \begin_layout Plain Layout
20110 CounterName
20111 \end_layout
20112
20113 \end_inset
20114
20115 ' is replaced by the name of the counter.
20116  And it must end with 
20117 \begin_inset Quotes eld
20118 \end_inset
20119
20120
20121 \begin_inset Flex Code
20122 status collapsed
20123
20124 \begin_layout Plain Layout
20125 End
20126 \end_layout
20127
20128 \end_inset
20129
20130
20131 \begin_inset Quotes erd
20132 \end_inset
20133
20134 .
20135  The following parameters can also be used:
20136 \end_layout
20137
20138 \begin_layout Description
20139 \begin_inset Flex Code
20140 status collapsed
20141
20142 \begin_layout Plain Layout
20143 InitialValue
20144 \end_layout
20145
20146 \end_inset
20147
20148  [
20149 \begin_inset Flex Code
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 int=1
20154 \end_layout
20155
20156 \end_inset
20157
20158 ] Sets the initial value for the counter, to which it will be reset whenever
20159  that happens.
20160  Normally, one will want the default, 1.
20161 \end_layout
20162
20163 \begin_layout Description
20164 \begin_inset Flex Code
20165 status collapsed
20166
20167 \begin_layout Plain Layout
20168 LabelString
20169 \end_layout
20170
20171 \end_inset
20172
20173  [
20174 \begin_inset Flex Code
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178 string
20179 \end_layout
20180
20181 \end_inset
20182
20183 =
20184 \begin_inset Quotes erd
20185 \end_inset
20186
20187
20188 \begin_inset Quotes erd
20189 \end_inset
20190
20191 ] When defined, this string defines how the counter is displayed.
20192  Setting this value sets 
20193 \begin_inset Flex Code
20194 status collapsed
20195
20196 \begin_layout Plain Layout
20197 LabelStringAppendix
20198 \end_layout
20199
20200 \end_inset
20201
20202  to the same value.
20203  The following special constructs can be used in the string:
20204 \end_layout
20205
20206 \begin_deeper
20207 \begin_layout Itemize
20208 \begin_inset Flex Code
20209 status collapsed
20210
20211 \begin_layout Plain Layout
20212
20213 \backslash
20214 thecounter
20215 \end_layout
20216
20217 \end_inset
20218
20219  will be replaced by the expansion of the 
20220 \begin_inset Flex Code
20221 status collapsed
20222
20223 \begin_layout Plain Layout
20224 LabelString
20225 \end_layout
20226
20227 \end_inset
20228
20229  (or 
20230 \begin_inset Flex Code
20231 status collapsed
20232
20233 \begin_layout Plain Layout
20234 LabelStringAppendix
20235 \end_layout
20236
20237 \end_inset
20238
20239 ) of the counter 
20240 \begin_inset Flex Code
20241 status collapsed
20242
20243 \begin_layout Plain Layout
20244 counter
20245 \end_layout
20246
20247 \end_inset
20248
20249 .
20250  
20251 \end_layout
20252
20253 \begin_layout Itemize
20254 counter values can be expressed using \SpecialChar LaTeX
20255 -like macros
20256 \begin_inset Newline newline
20257 \end_inset
20258
20259
20260 \begin_inset Flex Code
20261 status collapsed
20262
20263 \begin_layout Plain Layout
20264
20265 \backslash
20266
20267 \emph on
20268 numbertype
20269 \emph default
20270 {
20271 \emph on
20272 counter
20273 \emph default
20274 }
20275 \end_layout
20276
20277 \end_inset
20278
20279 , where 
20280 \begin_inset Flex Code
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284
20285 \emph on
20286 numbertype
20287 \end_layout
20288
20289 \end_inset
20290
20291  can be:
20292 \begin_inset Foot
20293 status collapsed
20294
20295 \begin_layout Plain Layout
20296
20297 \family roman
20298 \series medium
20299 \shape up
20300 \size normal
20301 \emph off
20302 \bar no
20303 \noun off
20304 \color none
20305 Actually, the situation is a bit more complicated: any
20306 \family default
20307 \series default
20308 \shape default
20309 \emph default
20310 \bar default
20311  
20312 \size default
20313 \emph on
20314 \noun default
20315 \color inherit
20316 numbertype
20317 \family roman
20318 \series medium
20319 \shape up
20320 \size normal
20321 \emph off
20322 \bar no
20323 \noun off
20324  other than those described below will produce arabic numerals.
20325  It would not be surprising to see this change in the future.
20326 \end_layout
20327
20328 \end_inset
20329
20330  
20331 \begin_inset Flex Code
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335 arabic
20336 \end_layout
20337
20338 \end_inset
20339
20340 : 1, 2, 3,\SpecialChar ldots
20341
20342 \begin_inset Flex Code
20343 status collapsed
20344
20345 \begin_layout Plain Layout
20346 alph
20347 \end_layout
20348
20349 \end_inset
20350
20351  for lower-case letters: a, b, c, \SpecialChar ldots
20352
20353 \begin_inset Flex Code
20354 status collapsed
20355
20356 \begin_layout Plain Layout
20357 Alph
20358 \end_layout
20359
20360 \end_inset
20361
20362  for upper-case letters: A, B, C, \SpecialChar ldots
20363
20364 \begin_inset Flex Code
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 roman
20369 \end_layout
20370
20371 \end_inset
20372
20373  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20374
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 Roman
20380 \end_layout
20381
20382 \end_inset
20383
20384  for upper-case roman numerals: I, II, III\SpecialChar ldots
20385
20386 \begin_inset Flex Code
20387 status collapsed
20388
20389 \begin_layout Plain Layout
20390 hebrew
20391 \end_layout
20392
20393 \end_inset
20394
20395  for hebrew numerals.
20396 \end_layout
20397
20398 \end_deeper
20399 \begin_layout Standard
20400 If LabelString is not defined, a default value is constructed as follows:
20401  if the counter has a master counter 
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406 master
20407 \end_layout
20408
20409 \end_inset
20410
20411  (defined via 
20412 \begin_inset Flex Code
20413 status collapsed
20414
20415 \begin_layout Plain Layout
20416 Within
20417 \end_layout
20418
20419 \end_inset
20420
20421 ), the string
20422 \begin_inset Newline newline
20423 \end_inset
20424
20425
20426 \begin_inset Flex Code
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430
20431 \backslash
20432 themaster.
20433 \backslash
20434 arabic{counter}
20435 \end_layout
20436
20437 \end_inset
20438
20439  is used; otherwise the string 
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444
20445 \backslash
20446 arabic{counter}
20447 \end_layout
20448
20449 \end_inset
20450
20451  is used.
20452 \end_layout
20453
20454 \begin_layout Description
20455 \begin_inset Flex Code
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459 LabelStringAppendix
20460 \end_layout
20461
20462 \end_inset
20463
20464  [
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469 string
20470 \end_layout
20471
20472 \end_inset
20473
20474 =
20475 \begin_inset Quotes erd
20476 \end_inset
20477
20478
20479 \begin_inset Quotes erd
20480 \end_inset
20481
20482 ] Same as 
20483 \begin_inset Flex Code
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 LabelString
20488 \end_layout
20489
20490 \end_inset
20491
20492 , but for use in the Appendix.
20493 \end_layout
20494
20495 \begin_layout Description
20496 \begin_inset Flex Code
20497 status collapsed
20498
20499 \begin_layout Plain Layout
20500 PrettyFormat
20501 \end_layout
20502
20503 \end_inset
20504
20505  [
20506 \begin_inset Flex Code
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 string
20511 \end_layout
20512
20513 \end_inset
20514
20515 =
20516 \begin_inset Quotes erd
20517 \end_inset
20518
20519
20520 \begin_inset Quotes erd
20521 \end_inset
20522
20523 ] A format for use with formatted references to this counter.
20524  For example, one might want to have references to section numbers appear
20525  as 
20526 \begin_inset Quotes eld
20527 \end_inset
20528
20529 Section 2.4
20530 \begin_inset Quotes erd
20531 \end_inset
20532
20533 .
20534  The string should contain 
20535 \begin_inset Quotes eld
20536 \end_inset
20537
20538 ##
20539 \begin_inset Quotes erd
20540 \end_inset
20541
20542 .
20543  This will be replaced by the counter number itself.
20544  So, for sections, it would be: Section ##.
20545 \end_layout
20546
20547 \begin_layout Description
20548 \begin_inset Flex Code
20549 status collapsed
20550
20551 \begin_layout Plain Layout
20552 Within
20553 \end_layout
20554
20555 \end_inset
20556
20557  [
20558 \begin_inset Flex Code
20559 status collapsed
20560
20561 \begin_layout Plain Layout
20562 string
20563 \end_layout
20564
20565 \end_inset
20566
20567 =
20568 \begin_inset Quotes erd
20569 \end_inset
20570
20571
20572 \begin_inset Quotes erd
20573 \end_inset
20574
20575 ] If this is set to the name of another counter, the present counter will
20576  be reset every time the other one is increased.
20577  For example, 
20578 \begin_inset Flex Code
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582 subsection
20583 \end_layout
20584
20585 \end_inset
20586
20587  is numbered inside 
20588 \begin_inset Flex Code
20589 status collapsed
20590
20591 \begin_layout Plain Layout
20592 section
20593 \end_layout
20594
20595 \end_inset
20596
20597 .
20598 \end_layout
20599
20600 \begin_layout Subsection
20601 Font description
20602 \begin_inset CommandInset label
20603 LatexCommand label
20604 name "subsec:Font-description"
20605
20606 \end_inset
20607
20608
20609 \end_layout
20610
20611 \begin_layout Standard
20612 A font description looks like this:
20613 \end_layout
20614
20615 \begin_layout LyX-Code
20616 Font 
20617 \family roman
20618 \emph on
20619 or
20620 \family default
20621 \emph default
20622  LabelFont
20623 \emph on
20624  
20625 \family roman
20626 or
20627 \family default
20628 \emph default
20629  DefaultFont
20630 \end_layout
20631
20632 \begin_layout LyX-Code
20633  ...
20634 \end_layout
20635
20636 \begin_layout LyX-Code
20637 EndFont
20638 \end_layout
20639
20640 \begin_layout Standard
20641 The following commands are available:
20642 \end_layout
20643
20644 \begin_layout Description
20645 \begin_inset Flex Code
20646 status collapsed
20647
20648 \begin_layout Plain Layout
20649 Color
20650 \end_layout
20651
20652 \end_inset
20653
20654  [
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659
20660 \emph on
20661 none
20662 \end_layout
20663
20664 \end_inset
20665
20666
20667 \begin_inset Flex Code
20668 status collapsed
20669
20670 \begin_layout Plain Layout
20671 black
20672 \end_layout
20673
20674 \end_inset
20675
20676
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 white
20682 \end_layout
20683
20684 \end_inset
20685
20686
20687 \begin_inset Flex Code
20688 status collapsed
20689
20690 \begin_layout Plain Layout
20691 red
20692 \end_layout
20693
20694 \end_inset
20695
20696
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 green
20702 \end_layout
20703
20704 \end_inset
20705
20706
20707 \begin_inset Flex Code
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711 blue
20712 \end_layout
20713
20714 \end_inset
20715
20716
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 cyan
20722 \end_layout
20723
20724 \end_inset
20725
20726
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 magenta
20732 \end_layout
20733
20734 \end_inset
20735
20736
20737 \begin_inset Flex Code
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741 yellow
20742 \end_layout
20743
20744 \end_inset
20745
20746
20747 \begin_inset Flex Code
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751 brown
20752 \end_layout
20753
20754 \end_inset
20755
20756
20757 \begin_inset Flex Code
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761 darkgray
20762 \end_layout
20763
20764 \end_inset
20765
20766
20767 \begin_inset Flex Code
20768 status collapsed
20769
20770 \begin_layout Plain Layout
20771 gray
20772 \end_layout
20773
20774 \end_inset
20775
20776
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 lightgray
20782 \end_layout
20783
20784 \end_inset
20785
20786
20787 \begin_inset Flex Code
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791 lime
20792 \end_layout
20793
20794 \end_inset
20795
20796
20797 \begin_inset Flex Code
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801 orange
20802 \end_layout
20803
20804 \end_inset
20805
20806
20807 \begin_inset Flex Code
20808 status collapsed
20809
20810 \begin_layout Plain Layout
20811 olive
20812 \end_layout
20813
20814 \end_inset
20815
20816
20817 \begin_inset Flex Code
20818 status collapsed
20819
20820 \begin_layout Plain Layout
20821 pink
20822 \end_layout
20823
20824 \end_inset
20825
20826
20827 \begin_inset Flex Code
20828 status collapsed
20829
20830 \begin_layout Plain Layout
20831 purple
20832 \end_layout
20833
20834 \end_inset
20835
20836
20837 \begin_inset Flex Code
20838 status collapsed
20839
20840 \begin_layout Plain Layout
20841 teal
20842 \end_layout
20843
20844 \end_inset
20845
20846
20847 \begin_inset Flex Code
20848 status collapsed
20849
20850 \begin_layout Plain Layout
20851 violet
20852 \end_layout
20853
20854 \end_inset
20855
20856 ]
20857 \end_layout
20858
20859 \begin_layout Description
20860 \begin_inset Flex Code
20861 status collapsed
20862
20863 \begin_layout Plain Layout
20864 Family
20865 \end_layout
20866
20867 \end_inset
20868
20869  [
20870 \begin_inset Flex Code
20871 status collapsed
20872
20873 \begin_layout Plain Layout
20874
20875 \emph on
20876 Roman
20877 \end_layout
20878
20879 \end_inset
20880
20881
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 Sans
20887 \end_layout
20888
20889 \end_inset
20890
20891
20892 \begin_inset Flex Code
20893 status collapsed
20894
20895 \begin_layout Plain Layout
20896 Typewriter
20897 \end_layout
20898
20899 \end_inset
20900
20901 ]
20902 \end_layout
20903
20904 \begin_layout Description
20905 \begin_inset Flex Code
20906 status collapsed
20907
20908 \begin_layout Plain Layout
20909 Misc
20910 \end_layout
20911
20912 \end_inset
20913
20914  [
20915 \begin_inset Flex Code
20916 status collapsed
20917
20918 \begin_layout Plain Layout
20919 string
20920 \end_layout
20921
20922 \end_inset
20923
20924 ] Valid arguments are: 
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 emph
20930 \end_layout
20931
20932 \end_inset
20933
20934
20935 \begin_inset Flex Code
20936 status collapsed
20937
20938 \begin_layout Plain Layout
20939 noun
20940 \end_layout
20941
20942 \end_inset
20943
20944
20945 \begin_inset Flex Code
20946 status collapsed
20947
20948 \begin_layout Plain Layout
20949 strikeout
20950 \end_layout
20951
20952 \end_inset
20953
20954
20955 \begin_inset Flex Code
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 underbar
20960 \end_layout
20961
20962 \end_inset
20963
20964
20965 \begin_inset Flex Code
20966 status collapsed
20967
20968 \begin_layout Plain Layout
20969 uuline
20970 \end_layout
20971
20972 \end_inset
20973
20974
20975 \begin_inset Flex Code
20976 status collapsed
20977
20978 \begin_layout Plain Layout
20979 uwave
20980 \end_layout
20981
20982 \end_inset
20983
20984
20985 \begin_inset Flex Code
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989 no_emph
20990 \end_layout
20991
20992 \end_inset
20993
20994
20995 \begin_inset Flex Code
20996 status collapsed
20997
20998 \begin_layout Plain Layout
20999 no_noun
21000 \end_layout
21001
21002 \end_inset
21003
21004
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 no_strikeout
21010 \end_layout
21011
21012 \end_inset
21013
21014
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 no_bar
21020 \end_layout
21021
21022 \end_inset
21023
21024
21025 \begin_inset Flex Code
21026 status collapsed
21027
21028 \begin_layout Plain Layout
21029 no_uuline
21030 \end_layout
21031
21032 \end_inset
21033
21034  and 
21035 \begin_inset Flex Code
21036 status collapsed
21037
21038 \begin_layout Plain Layout
21039 no_uwave
21040 \end_layout
21041
21042 \end_inset
21043
21044 .
21045  Each of these turns on or off the corresponding attribute.
21046  For example, 
21047 \begin_inset Flex Code
21048 status collapsed
21049
21050 \begin_layout Plain Layout
21051 emph
21052 \end_layout
21053
21054 \end_inset
21055
21056  turns on emphasis, and 
21057 \begin_inset Flex Code
21058 status collapsed
21059
21060 \begin_layout Plain Layout
21061 no_emph
21062 \end_layout
21063
21064 \end_inset
21065
21066  turns it off.
21067  
21068 \begin_inset Newline newline
21069 \end_inset
21070
21071 If the latter seems puzzling, remember that the font settings for the present
21072  context are generally inherited from the surrounding context.
21073  So 
21074 \begin_inset Flex Code
21075 status collapsed
21076
21077 \begin_layout Plain Layout
21078 no_emph
21079 \end_layout
21080
21081 \end_inset
21082
21083  would turn off the emphasis that was anyway in effect, say, in a theorem
21084  environment.
21085 \end_layout
21086
21087 \begin_layout Description
21088 \begin_inset Flex Code
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092 Series
21093 \end_layout
21094
21095 \end_inset
21096
21097  [
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102
21103 \emph on
21104 Medium
21105 \end_layout
21106
21107 \end_inset
21108
21109
21110 \begin_inset Flex Code
21111 status collapsed
21112
21113 \begin_layout Plain Layout
21114 Bold
21115 \end_layout
21116
21117 \end_inset
21118
21119
21120 \end_layout
21121
21122 \begin_layout Description
21123 \begin_inset Flex Code
21124 status collapsed
21125
21126 \begin_layout Plain Layout
21127 Shape
21128 \end_layout
21129
21130 \end_inset
21131
21132  [
21133 \begin_inset Flex Code
21134 status collapsed
21135
21136 \begin_layout Plain Layout
21137
21138 \emph on
21139 Up
21140 \end_layout
21141
21142 \end_inset
21143
21144
21145 \begin_inset Flex Code
21146 status collapsed
21147
21148 \begin_layout Plain Layout
21149 Italic
21150 \end_layout
21151
21152 \end_inset
21153
21154
21155 \begin_inset Flex Code
21156 status collapsed
21157
21158 \begin_layout Plain Layout
21159 SmallCaps
21160 \end_layout
21161
21162 \end_inset
21163
21164
21165 \begin_inset Flex Code
21166 status collapsed
21167
21168 \begin_layout Plain Layout
21169 Slanted
21170 \end_layout
21171
21172 \end_inset
21173
21174
21175 \end_layout
21176
21177 \begin_layout Description
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 Size
21183 \end_layout
21184
21185 \end_inset
21186
21187  [
21188 \begin_inset Flex Code
21189 status collapsed
21190
21191 \begin_layout Plain Layout
21192 tiny
21193 \end_layout
21194
21195 \end_inset
21196
21197
21198 \begin_inset Flex Code
21199 status collapsed
21200
21201 \begin_layout Plain Layout
21202 small
21203 \end_layout
21204
21205 \end_inset
21206
21207
21208 \begin_inset Flex Code
21209 status collapsed
21210
21211 \begin_layout Plain Layout
21212
21213 \emph on
21214 normal
21215 \end_layout
21216
21217 \end_inset
21218
21219
21220 \begin_inset Flex Code
21221 status collapsed
21222
21223 \begin_layout Plain Layout
21224 large
21225 \end_layout
21226
21227 \end_inset
21228
21229
21230 \begin_inset Flex Code
21231 status collapsed
21232
21233 \begin_layout Plain Layout
21234 larger
21235 \end_layout
21236
21237 \end_inset
21238
21239
21240 \begin_inset Flex Code
21241 status collapsed
21242
21243 \begin_layout Plain Layout
21244 largest
21245 \end_layout
21246
21247 \end_inset
21248
21249
21250 \begin_inset Flex Code
21251 status collapsed
21252
21253 \begin_layout Plain Layout
21254 huge
21255 \end_layout
21256
21257 \end_inset
21258
21259
21260 \begin_inset Flex Code
21261 status collapsed
21262
21263 \begin_layout Plain Layout
21264 giant
21265 \end_layout
21266
21267 \end_inset
21268
21269 ]
21270 \end_layout
21271
21272 \begin_layout Subsection
21273 \begin_inset CommandInset label
21274 LatexCommand label
21275 name "subsec:Citation-engine-description"
21276
21277 \end_inset
21278
21279 Cite engine description
21280 \end_layout
21281
21282 \begin_layout Standard
21283 The 
21284 \begin_inset Flex Code
21285 status collapsed
21286
21287 \begin_layout Plain Layout
21288 CiteEngine
21289 \end_layout
21290
21291 \end_inset
21292
21293  blocks, as used mainly in cite engine files (see 
21294 \begin_inset CommandInset ref
21295 LatexCommand ref
21296 reference "subsec:Cite-Engine-Files"
21297 plural "false"
21298 caps "false"
21299 noprefix "false"
21300
21301 \end_inset
21302
21303 ), define the citation commands provided by a specific 
21304 \begin_inset Quotes eld
21305 \end_inset
21306
21307 cite engine
21308 \begin_inset Quotes erd
21309 \end_inset
21310
21311 .
21312  A cite engine, in \SpecialChar LyX
21313  terms, is way specific way to format citations, using
21314  numbers, author names and/or years.
21315  Currently, \SpecialChar LyX
21316  supports three such engine types, namely:
21317 \end_layout
21318
21319 \begin_layout Enumerate
21320 \begin_inset Flex Code
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324 default
21325 \end_layout
21326
21327 \end_inset
21328
21329 : the default Bib\SpecialChar TeX
21330  way to format citations, a simple numeric style (e.
21331 \begin_inset space \thinspace{}
21332 \end_inset
21333
21334 g., 
21335 \begin_inset Quotes eld
21336 \end_inset
21337
21338 [1]
21339 \begin_inset Quotes erd
21340 \end_inset
21341
21342 )
21343 \end_layout
21344
21345 \begin_layout Enumerate
21346 \begin_inset Flex Code
21347 status collapsed
21348
21349 \begin_layout Plain Layout
21350 authoryear
21351 \end_layout
21352
21353 \end_inset
21354
21355 : Harvard-styled citations using author names and publication year (e.
21356 \begin_inset space \thinspace{}
21357 \end_inset
21358
21359 g., 
21360 \begin_inset Quotes eld
21361 \end_inset
21362
21363 Smith and Miller (2017b)
21364 \begin_inset Quotes erd
21365 \end_inset
21366
21367 )
21368 \end_layout
21369
21370 \begin_layout Enumerate
21371 \begin_inset Flex Code
21372 status collapsed
21373
21374 \begin_layout Plain Layout
21375 numerical
21376 \end_layout
21377
21378 \end_inset
21379
21380 : extended numerical citations that also allow for author or title next
21381  to the number (e.
21382 \begin_inset space \thinspace{}
21383 \end_inset
21384
21385 g., 
21386 \begin_inset Quotes eld
21387 \end_inset
21388
21389 Smith and Miller [1]
21390 \begin_inset Quotes erd
21391 \end_inset
21392
21393 )
21394 \end_layout
21395
21396 \begin_layout Standard
21397 \begin_inset Flex Code
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401 CiteEngine
21402 \end_layout
21403
21404 \end_inset
21405
21406  blocks look like this:
21407 \end_layout
21408
21409 \begin_layout LyX-Code
21410 CiteEngine default
21411 \end_layout
21412
21413 \begin_layout LyX-Code
21414  cite
21415 \end_layout
21416
21417 \begin_layout LyX-Code
21418  Citep*[][]
21419 \end_layout
21420
21421 \begin_layout LyX-Code
21422  citeyearpar[][]=parencite*
21423 \end_layout
21424
21425 \begin_layout LyX-Code
21426  ...
21427 \end_layout
21428
21429 \begin_layout LyX-Code
21430 End
21431 \end_layout
21432
21433 \begin_layout Standard
21434 The tag following 
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 CiteEngine
21440 \end_layout
21441
21442 \end_inset
21443
21444  denotes the engine.
21445  The individual lines respectively define a cite command or cite command
21446  paradigm supported by this engine.
21447  The line can be as simple as a cite command that is used both to name the
21448  respective \SpecialChar LyX
21449  command and the \SpecialChar LaTeX
21450  output or more complex in order to differentiate
21451  things.
21452  The full syntax is:
21453 \end_layout
21454
21455 \begin_layout LyX-Code
21456 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21457 \end_layout
21458
21459 \begin_layout Itemize
21460 \begin_inset Flex Code
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464 LyXName
21465 \end_layout
21466
21467 \end_inset
21468
21469 : The name as used in the 
21470 \begin_inset Flex Code
21471 status collapsed
21472
21473 \begin_layout Plain Layout
21474 *.lyx
21475 \end_layout
21476
21477 \end_inset
21478
21479  file.
21480 \end_layout
21481
21482 \begin_deeper
21483 \begin_layout Standard
21484 For portability reasons, we try to use the same name for same-formatted
21485  commands in different cite packages (thus many names stem from natbib,
21486  and thus we need to differentiate a 
21487 \begin_inset Flex Code
21488 status collapsed
21489
21490 \begin_layout Plain Layout
21491 latexcmd
21492 \end_layout
21493
21494 \end_inset
21495
21496  sometimes, if the \SpecialChar LaTeX
21497  command names differ).
21498 \end_layout
21499
21500 \end_deeper
21501 \begin_layout Itemize
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 alias
21507 \end_layout
21508
21509 \end_inset
21510
21511 : a (comma-separated) list of commands that fall back to the given 
21512 \begin_inset Flex Code
21513 status collapsed
21514
21515 \begin_layout Plain Layout
21516 LyXName
21517 \end_layout
21518
21519 \end_inset
21520
21521  in the current engine.
21522  This eases the switch of citation packages and engines.
21523  The 
21524 \begin_inset Flex Code
21525 status collapsed
21526
21527 \begin_layout Plain Layout
21528 alias
21529 \end_layout
21530
21531 \end_inset
21532
21533  can be compared to 
21534 \begin_inset Flex Code
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 ObsoletedBy
21539 \end_layout
21540
21541 \end_inset
21542
21543  in layout definitions.
21544 \end_layout
21545
21546 \begin_layout Itemize
21547 \begin_inset Flex Code
21548 status collapsed
21549
21550 \begin_layout Plain Layout
21551 latexcmd
21552 \end_layout
21553
21554 \end_inset
21555
21556 : The actual \SpecialChar LaTeX
21557  command that is output.
21558  
21559 \end_layout
21560
21561 \begin_layout Standard
21562 \begin_inset Flex Code
21563 status collapsed
21564
21565 \begin_layout Plain Layout
21566 Alias
21567 \end_layout
21568
21569 \end_inset
21570
21571  and 
21572 \begin_inset Flex Code
21573 status collapsed
21574
21575 \begin_layout Plain Layout
21576 latexcmd
21577 \end_layout
21578
21579 \end_inset
21580
21581  are optional.
21582  If no 
21583 \begin_inset Flex Code
21584 status collapsed
21585
21586 \begin_layout Plain Layout
21587 latexcmd
21588 \end_layout
21589
21590 \end_inset
21591
21592  is given, the 
21593 \begin_inset Flex Code
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597 LyXName
21598 \end_layout
21599
21600 \end_inset
21601
21602  will be output to \SpecialChar LaTeX
21603 .
21604 \end_layout
21605
21606 \begin_layout Standard
21607 Note further:
21608 \end_layout
21609
21610 \begin_layout Itemize
21611 Capitalization indicates that the command also has a capitalized form (
21612 \begin_inset Flex Code
21613 status collapsed
21614
21615 \begin_layout Plain Layout
21616
21617 \backslash
21618 Latexcmd
21619 \end_layout
21620
21621 \end_inset
21622
21623  vs.
21624  
21625 \begin_inset Flex Code
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629
21630 \backslash
21631 latexcmd
21632 \end_layout
21633
21634 \end_inset
21635
21636 ).
21637  These usually enforce up-casing of name prefixes (
21638 \emph on
21639 von Goethe
21640 \emph default
21641  
21642 \begin_inset Formula $\Rightarrow$
21643 \end_inset
21644
21645  
21646 \emph on
21647 Von Goethe
21648 \emph default
21649 ).
21650 \end_layout
21651
21652 \begin_layout Itemize
21653 Brackets 
21654 \begin_inset Flex Code
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 []
21659 \end_layout
21660
21661 \end_inset
21662
21663  indicate the number of optional arguments (there can be 0–2).
21664 \end_layout
21665
21666 \begin_layout Itemize
21667 A star 
21668 \begin_inset Flex Code
21669 status collapsed
21670
21671 \begin_layout Plain Layout
21672 *
21673 \end_layout
21674
21675 \end_inset
21676
21677  indicates there is a starred version of the command (
21678 \begin_inset Flex Code
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682
21683 \backslash
21684 latexcmd*
21685 \end_layout
21686
21687 \end_inset
21688
21689  vs.
21690  
21691 \begin_inset Flex Code
21692 status collapsed
21693
21694 \begin_layout Plain Layout
21695
21696 \backslash
21697 latexcmd
21698 \end_layout
21699
21700 \end_inset
21701
21702 ).
21703  
21704 \end_layout
21705
21706 \begin_deeper
21707 \begin_layout Standard
21708 By default, the starred version means: Output all authors even if it should
21709  be shortened with 
21710 \begin_inset Quotes eld
21711 \end_inset
21712
21713 et al.
21714 \begin_inset Quotes erd
21715 \end_inset
21716
21717  due to the 
21718 \begin_inset Flex Code
21719 status collapsed
21720
21721 \begin_layout Plain Layout
21722 MaxCiteNames
21723 \end_layout
21724
21725 \end_inset
21726
21727  threshold.
21728 \end_layout
21729
21730 \begin_layout Standard
21731 If the star has a different meaning for a given command, it can be specified
21732  in angle brackets: 
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 <!_stardesc!_stardesctooltip>
21738 \end_layout
21739
21740 \end_inset
21741
21742 .
21743  Maximal two translatable macro keywords, marked by the prefix 
21744 \begin_inset Flex Code
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748 !_
21749 \end_layout
21750
21751 \end_inset
21752
21753 , can be given.
21754  The first points to the string that replaces the 
21755 \begin_inset Quotes eld
21756 \end_inset
21757
21758 Full aut&hor list
21759 \begin_inset Quotes erd
21760 \end_inset
21761
21762  checkbox label in the citation dialog, the second one to an optional tool
21763  tip for this checkbox.
21764  
21765 \end_layout
21766
21767 \begin_layout Standard
21768 Note that these two macros have to be defined in a 
21769 \begin_inset Flex Code
21770 status collapsed
21771
21772 \begin_layout Plain Layout
21773 CiteFormat
21774 \end_layout
21775
21776 \end_inset
21777
21778  (see next section), dropping the 
21779 \begin_inset Flex Code
21780 status collapsed
21781
21782 \begin_layout Plain Layout
21783 !
21784 \end_layout
21785
21786 \end_inset
21787
21788  from the prefix, like this: 
21789 \end_layout
21790
21791 \begin_layout LyX-Code
21792 _stardesc Sta&rred command label
21793 \end_layout
21794
21795 \begin_layout LyX-Code
21796 _stardesctooltip Tooltip for the starred command checkbox.
21797 \end_layout
21798
21799 \end_deeper
21800 \begin_layout Itemize
21801 A dollar sign 
21802 \begin_inset Flex Code
21803 status collapsed
21804
21805 \begin_layout Plain Layout
21806 $
21807 \end_layout
21808
21809 \end_inset
21810
21811  indicates that this command features 
21812 \begin_inset Quotes eld
21813 \end_inset
21814
21815 qualified citation lists
21816 \begin_inset Quotes erd
21817 \end_inset
21818
21819 .
21820  This is a 
21821 \family sans
21822 Biblatex
21823 \family default
21824 -specific feature for multi-reference citations where an individual pre-
21825  and postnote can be given to each reference in the list.
21826  Please refer to the 
21827 \family sans
21828 Biblatex
21829 \family default
21830  manual for details.
21831 \end_layout
21832
21833 \begin_layout Subsection
21834 \begin_inset CommandInset label
21835 LatexCommand label
21836 name "subsec:Citation-format-description"
21837
21838 \end_inset
21839
21840 Cite format description
21841 \end_layout
21842
21843 \begin_layout Standard
21844 The 
21845 \begin_inset Flex Code
21846 status collapsed
21847
21848 \begin_layout Plain Layout
21849 CiteFormat
21850 \end_layout
21851
21852 \end_inset
21853
21854  blocks are used to describe how bibliographic information should be displayed,
21855  both within \SpecialChar LyX
21856  itself (in the citation dialog and in tooltips, for example)
21857  and in XHTML output.
21858  Such a block might look like this:
21859 \end_layout
21860
21861 \begin_layout LyX-Code
21862 CiteFormat
21863 \end_layout
21864
21865 \begin_layout LyX-Code
21866  article ...
21867 \end_layout
21868
21869 \begin_layout LyX-Code
21870  book ...
21871 \end_layout
21872
21873 \begin_layout LyX-Code
21874 End
21875 \end_layout
21876
21877 \begin_layout Standard
21878 or
21879 \end_layout
21880
21881 \begin_layout LyX-Code
21882 CiteFormat
21883 \end_layout
21884
21885 \begin_layout LyX-Code
21886  cite ...
21887 \end_layout
21888
21889 \begin_layout LyX-Code
21890  citet*[][] ...
21891 \end_layout
21892
21893 \begin_layout LyX-Code
21894 End
21895 \end_layout
21896
21897 \begin_layout Standard
21898 In the first case, the individual lines define how the bibliographic information
21899  associated with an article or book, respectively, is to be displayed, and
21900  such a definition can be given for any 
21901 \begin_inset Quotes els
21902 \end_inset
21903
21904 entry type
21905 \begin_inset Quotes ers
21906 \end_inset
21907
21908  that might be present in a Bib\SpecialChar TeX
21909  file.
21910  \SpecialChar LyX
21911  defines a default format in the source code that will be used if no specific
21912  definition has been given.
21913  \SpecialChar LyX
21914  predefines several formats in the file 
21915 \begin_inset Flex Code
21916 status collapsed
21917
21918 \begin_layout Plain Layout
21919 stdciteformats.inc
21920 \end_layout
21921
21922 \end_inset
21923
21924 , which is included in most of \SpecialChar LyX
21925 's document classes.
21926 \end_layout
21927
21928 \begin_layout Standard
21929 In the second case, the lines define how a specific citation command (in
21930  the example 
21931 \begin_inset Flex Code
21932 status collapsed
21933
21934 \begin_layout Plain Layout
21935
21936 \backslash
21937 cite
21938 \end_layout
21939
21940 \end_inset
21941
21942
21943 \begin_inset Flex Code
21944 status collapsed
21945
21946 \begin_layout Plain Layout
21947
21948 \backslash
21949 citet
21950 \end_layout
21951
21952 \end_inset
21953
21954 ) is to be displayed on the citation inset label, in the citation dialog,
21955  menu or XHTML output.
21956  \SpecialChar LyX
21957  defines such formats for the citation style variants it supports via 
21958 \family sans
21959 Document\SpecialChar menuseparator
21960 Setting\SpecialChar menuseparator
21961 Bibliography\SpecialChar ldots
21962
21963 \family default
21964  in specific 
21965 \begin_inset Flex Code
21966 status collapsed
21967
21968 \begin_layout Plain Layout
21969 *.citeengine
21970 \end_layout
21971
21972 \end_inset
21973
21974  files that are shipped with \SpecialChar LyX
21975  (see 
21976 \begin_inset CommandInset ref
21977 LatexCommand ref
21978 reference "subsec:Cite-Engine-Files"
21979 plural "false"
21980 caps "false"
21981 noprefix "false"
21982
21983 \end_inset
21984
21985 ).
21986 \end_layout
21987
21988 \begin_layout Standard
21989 The definitions use a simple language that allows Bib\SpecialChar TeX
21990  keys to be replaced
21991  with their values.
21992  Keys should be enclosed in 
21993 \begin_inset Flex Code
21994 status collapsed
21995
21996 \begin_layout Plain Layout
21997 %
21998 \end_layout
21999
22000 \end_inset
22001
22002  signs, e.g.: 
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007 %author%
22008 \end_layout
22009
22010 \end_inset
22011
22012 .
22013  So a simple definition might look like this:
22014 \end_layout
22015
22016 \begin_layout LyX-Code
22017 misc %author%, 
22018 \begin_inset Quotes eld
22019 \end_inset
22020
22021 %title%
22022 \begin_inset Quotes erd
22023 \end_inset
22024
22025 .
22026 \end_layout
22027
22028 \begin_layout Standard
22029 This would print the author, followed by a comma, followed by the title,
22030  in quotes, followed by a period.
22031 \end_layout
22032
22033 \begin_layout Standard
22034 Of course, sometimes you may want to print a key only if it exists.
22035  This can be done by using a conditional construction, such as: 
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 {%volume%[[vol.
22041 \begin_inset space ~
22042 \end_inset
22043
22044 %volume%]]}
22045 \end_layout
22046
22047 \end_inset
22048
22049 .
22050  This says: If the 
22051 \begin_inset Flex Code
22052 status collapsed
22053
22054 \begin_layout Plain Layout
22055 volume
22056 \end_layout
22057
22058 \end_inset
22059
22060  key exists, then print 
22061 \begin_inset Quotes eld
22062 \end_inset
22063
22064 vol.
22065 \begin_inset space ~
22066 \end_inset
22067
22068
22069 \begin_inset Quotes erd
22070 \end_inset
22071
22072  followed by the volume key.
22073  It is also possible to have an else clause in the conditional, such as:
22074 \begin_inset Newline newline
22075 \end_inset
22076
22077
22078 \begin_inset Flex Code
22079 status collapsed
22080
22081 \begin_layout Plain Layout
22082 {%author%[[%author%]][[%editor%, ed.]]}
22083 \end_layout
22084
22085 \end_inset
22086
22087 .
22088 \begin_inset Newline newline
22089 \end_inset
22090
22091 Here, the 
22092 \begin_inset Flex Code
22093 status collapsed
22094
22095 \begin_layout Plain Layout
22096 author
22097 \end_layout
22098
22099 \end_inset
22100
22101  key is printed if it exists; otherwise, the editor key is printed, followed
22102  by 
22103 \begin_inset Quotes eld
22104 \end_inset
22105
22106 ,
22107 \begin_inset space ~
22108 \end_inset
22109
22110 ed.
22111 \begin_inset Quotes erd
22112 \end_inset
22113
22114  Note that the key is again enclosed in 
22115 \begin_inset Flex Code
22116 status collapsed
22117
22118 \begin_layout Plain Layout
22119 %
22120 \end_layout
22121
22122 \end_inset
22123
22124  signs; the entire conditional is enclosed in braces; and the if and else
22125  clauses are enclosed in double brackets, 
22126 \begin_inset Quotes eld
22127 \end_inset
22128
22129
22130 \begin_inset Flex Code
22131 status collapsed
22132
22133 \begin_layout Plain Layout
22134 [[
22135 \end_layout
22136
22137 \end_inset
22138
22139
22140 \begin_inset Quotes eld
22141 \end_inset
22142
22143  and 
22144 \begin_inset Quotes eld
22145 \end_inset
22146
22147
22148 \begin_inset Flex Code
22149 status collapsed
22150
22151 \begin_layout Plain Layout
22152 ]]
22153 \end_layout
22154
22155 \end_inset
22156
22157
22158 \begin_inset Quotes erd
22159 \end_inset
22160
22161 .
22162  There must be no space between any of these.
22163 \end_layout
22164
22165 \begin_layout Standard
22166 Next to the entry keys, there are some special keys that can be used for
22167  these conditionals:
22168 \end_layout
22169
22170 \begin_layout Itemize
22171 \begin_inset Flex Code
22172 status collapsed
22173
22174 \begin_layout Plain Layout
22175 {%dialog%[[true]][[false]]}
22176 \end_layout
22177
22178 \end_inset
22179
22180 : process the 
22181 \begin_inset Quotes eld
22182 \end_inset
22183
22184 true
22185 \begin_inset Quotes erd
22186 \end_inset
22187
22188  part for dialogs and menus, the 
22189 \begin_inset Quotes eld
22190 \end_inset
22191
22192 false
22193 \begin_inset Quotes erd
22194 \end_inset
22195
22196  part for other contexts (workarea, export)
22197 \end_layout
22198
22199 \begin_layout Itemize
22200 \begin_inset Flex Code
22201 status collapsed
22202
22203 \begin_layout Plain Layout
22204 {%export%[[true]][[false]]}
22205 \end_layout
22206
22207 \end_inset
22208
22209 : process the 
22210 \begin_inset Quotes eld
22211 \end_inset
22212
22213 true
22214 \begin_inset Quotes erd
22215 \end_inset
22216
22217  part for export and menus, the 
22218 \begin_inset Quotes eld
22219 \end_inset
22220
22221 false
22222 \begin_inset Quotes erd
22223 \end_inset
22224
22225  part for other contexts (workarea, dialog)
22226 \end_layout
22227
22228 \begin_layout Itemize
22229 \begin_inset Flex Code
22230 status collapsed
22231
22232 \begin_layout Plain Layout
22233 {%next%[[true]]}
22234 \end_layout
22235
22236 \end_inset
22237
22238 : process the 
22239 \begin_inset Quotes eld
22240 \end_inset
22241
22242 true
22243 \begin_inset Quotes erd
22244 \end_inset
22245
22246  part if another item follows (e.
22247 \begin_inset space \thinspace{}
22248 \end_inset
22249
22250 g., in a citation with multiple keys)
22251 \end_layout
22252
22253 \begin_layout Itemize
22254 \begin_inset Flex Code
22255 status collapsed
22256
22257 \begin_layout Plain Layout
22258 {%second%[[true]][[false]]}
22259 \end_layout
22260
22261 \end_inset
22262
22263 : process the 
22264 \begin_inset Quotes eld
22265 \end_inset
22266
22267 true
22268 \begin_inset Quotes erd
22269 \end_inset
22270
22271  if this is the second of multiple items, else the 
22272 \begin_inset Quotes eld
22273 \end_inset
22274
22275 false
22276 \begin_inset Quotes erd
22277 \end_inset
22278
22279  part
22280 \end_layout
22281
22282 \begin_layout Itemize
22283 \begin_inset Flex Code
22284 status collapsed
22285
22286 \begin_layout Plain Layout
22287 {%ifstar%[[true]][[false]]}
22288 \end_layout
22289
22290 \end_inset
22291
22292 : process the 
22293 \begin_inset Quotes eld
22294 \end_inset
22295
22296 true
22297 \begin_inset Quotes erd
22298 \end_inset
22299
22300  part for starred citation commands (such as 
22301 \begin_inset Flex Code
22302 status collapsed
22303
22304 \begin_layout Plain Layout
22305
22306 \backslash
22307 cite*
22308 \end_layout
22309
22310 \end_inset
22311
22312 ), the false part for unstarred
22313 \end_layout
22314
22315 \begin_layout Itemize
22316 \begin_inset Flex Code
22317 status collapsed
22318
22319 \begin_layout Plain Layout
22320 {%ifentrytype:<type>%[[true]][[false]]}
22321 \end_layout
22322
22323 \end_inset
22324
22325 : process the 
22326 \begin_inset Quotes eld
22327 \end_inset
22328
22329 true
22330 \begin_inset Quotes erd
22331 \end_inset
22332
22333  if the current entry type matches 
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 <type>
22339 \end_layout
22340
22341 \end_inset
22342
22343 , else the false part (e.g., in a citation definition: 
22344 \begin_inset Flex Code
22345 status collapsed
22346
22347 \begin_layout Plain Layout
22348 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22349 \end_layout
22350
22351 \end_inset
22352
22353 )
22354 \end_layout
22355
22356 \begin_layout Itemize
22357 \begin_inset Flex Code
22358 status collapsed
22359
22360 \begin_layout Plain Layout
22361 {%ifmultiple:<authortype>%[[true]][[false]]}
22362 \end_layout
22363
22364 \end_inset
22365
22366 : process the 
22367 \begin_inset Quotes eld
22368 \end_inset
22369
22370 true
22371 \begin_inset Quotes erd
22372 \end_inset
22373
22374  if the current author type (author, editor etc.) has multiple authors, else
22375  the false part (e.g., in a bibliography definition: 
22376 \begin_inset Flex Code
22377 status collapsed
22378
22379 \begin_layout Plain Layout
22380 {%ifmultiple:editor%[[eds.]][[ed.]]}
22381 \end_layout
22382
22383 \end_inset
22384
22385 )
22386 \end_layout
22387
22388 \begin_layout Itemize
22389 \begin_inset Flex Code
22390 status collapsed
22391
22392 \begin_layout Plain Layout
22393 {%ifqualified%[[true]][[false]]}
22394 \end_layout
22395
22396 \end_inset
22397
22398 : process the 
22399 \begin_inset Quotes eld
22400 \end_inset
22401
22402 true
22403 \begin_inset Quotes erd
22404 \end_inset
22405
22406  part if the current citation is a qualified citation list (a specific 
22407 \family sans
22408 Biblatex
22409 \family default
22410  format for multi-reference citations), the false part if this is not the
22411  case.
22412 \end_layout
22413
22414 \begin_layout Standard
22415 We said that 
22416 \begin_inset Flex Code
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420 %author%
22421 \end_layout
22422
22423 \end_inset
22424
22425  prints the author key as it is recorded in the bibliography file.
22426  This might not be what you want, since it will result in a string such
22427  as 
22428 \begin_inset Quotes eld
22429 \end_inset
22430
22431 Miller, Peter and Smith, Mary and White, Jane
22432 \begin_inset Quotes erd
22433 \end_inset
22434
22435  (since 
22436 \begin_inset Quotes eld
22437 \end_inset
22438
22439 and
22440 \begin_inset Quotes erd
22441 \end_inset
22442
22443  is used by Bib\SpecialChar TeX
22444  to delimit authors).
22445  \SpecialChar LyX
22446  therefore provides some methods to get properly formatted name lists (which
22447  will also get translated).
22448  The following keys are provided:
22449 \end_layout
22450
22451 \begin_layout Enumerate
22452 For name lists with pre- and surname, suitable for the main authors/editors
22453  of a bibliography item.
22454  The 
22455 \begin_inset Flex Code
22456 status collapsed
22457
22458 \begin_layout Plain Layout
22459 <nametype>
22460 \end_layout
22461
22462 \end_inset
22463
22464  part denotes the kind of list that is requested (e.g.
22465  
22466 \begin_inset Flex Code
22467 status collapsed
22468
22469 \begin_layout Plain Layout
22470 <nametype:author>
22471 \end_layout
22472
22473 \end_inset
22474
22475 ):
22476 \end_layout
22477
22478 \begin_deeper
22479 \begin_layout Itemize
22480 \begin_inset Flex Code
22481 status collapsed
22482
22483 \begin_layout Plain Layout
22484 %abbrvnames:<nametype>%
22485 \end_layout
22486
22487 \end_inset
22488
22489 : Provides a name list which is abbreviated (with 
22490 \begin_inset Quotes eld
22491 \end_inset
22492
22493 et al.
22494 \begin_inset Quotes erd
22495 \end_inset
22496
22497 ) when 
22498 \begin_inset Flex Code
22499 status collapsed
22500
22501 \begin_layout Plain Layout
22502 MaxCiteNames
22503 \end_layout
22504
22505 \end_inset
22506
22507  is reached.
22508 \end_layout
22509
22510 \begin_layout Itemize
22511 \begin_inset Flex Code
22512 status collapsed
22513
22514 \begin_layout Plain Layout
22515 %fullnames:<nametype>%
22516 \end_layout
22517
22518 \end_inset
22519
22520 : Provides a full name list (never abbreviated with 
22521 \begin_inset Quotes eld
22522 \end_inset
22523
22524 et al.
22525 \begin_inset Quotes erd
22526 \end_inset
22527
22528 ).
22529 \end_layout
22530
22531 \begin_layout Itemize
22532 \begin_inset Flex Code
22533 status collapsed
22534
22535 \begin_layout Plain Layout
22536 %forceabbrvnames:<nametype>%
22537 \end_layout
22538
22539 \end_inset
22540
22541 : Provides a name list which is always abbreviated (with 
22542 \begin_inset Quotes eld
22543 \end_inset
22544
22545 et al.
22546 \begin_inset Quotes erd
22547 \end_inset
22548
22549 ) irrespective of 
22550 \begin_inset Flex Code
22551 status collapsed
22552
22553 \begin_layout Plain Layout
22554 MaxCiteNames
22555 \end_layout
22556
22557 \end_inset
22558
22559 .
22560 \end_layout
22561
22562 \end_deeper
22563 \begin_layout Enumerate
22564 Alternative name lists with pre- and surname, if the order of pre- and surname
22565  inside the bibliography item differs (as in: 
22566 \begin_inset Quotes eld
22567 \end_inset
22568
22569 Miller, John: Some text, in: Mary Smith, ed.: A volume
22570 \begin_inset Quotes erd
22571 \end_inset
22572
22573 ):
22574 \end_layout
22575
22576 \begin_deeper
22577 \begin_layout Itemize
22578 \begin_inset Flex Code
22579 status collapsed
22580
22581 \begin_layout Plain Layout
22582 %abbrvbynames:<nametype>%
22583 \end_layout
22584
22585 \end_inset
22586
22587 : Provides a name list which is abbreviated (with 
22588 \begin_inset Quotes eld
22589 \end_inset
22590
22591 et al.
22592 \begin_inset Quotes erd
22593 \end_inset
22594
22595 ) when 
22596 \begin_inset Flex Code
22597 status collapsed
22598
22599 \begin_layout Plain Layout
22600 MaxCiteNames
22601 \end_layout
22602
22603 \end_inset
22604
22605  is reached.
22606 \end_layout
22607
22608 \begin_layout Itemize
22609 \begin_inset Flex Code
22610 status collapsed
22611
22612 \begin_layout Plain Layout
22613 %fullbynames:<nametype>%
22614 \end_layout
22615
22616 \end_inset
22617
22618 : Provides a full name list (never abbreviated with 
22619 \begin_inset Quotes eld
22620 \end_inset
22621
22622 et al.
22623 \begin_inset Quotes erd
22624 \end_inset
22625
22626 ).
22627 \end_layout
22628
22629 \begin_layout Itemize
22630 \begin_inset Flex Code
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634 %forceabbrvbynames:<nametype>%
22635 \end_layout
22636
22637 \end_inset
22638
22639 : Provides a name list which is always abbreviated (with 
22640 \begin_inset Quotes eld
22641 \end_inset
22642
22643 et al.
22644 \begin_inset Quotes erd
22645 \end_inset
22646
22647 ) irrespective of 
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 MaxCiteNames
22653 \end_layout
22654
22655 \end_inset
22656
22657 .
22658 \end_layout
22659
22660 \end_deeper
22661 \begin_layout Enumerate
22662 And finally name lists which consist of family names only, as used in author-yea
22663 r citation labels.
22664  These do not take a 
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 <nametype>
22670 \end_layout
22671
22672 \end_inset
22673
22674  part, but always return either an author list or, if this does not exist,
22675  an editor list (as common in author-year labels):
22676 \end_layout
22677
22678 \begin_deeper
22679 \begin_layout Itemize
22680 \begin_inset Flex Code
22681 status collapsed
22682
22683 \begin_layout Plain Layout
22684 %abbrvciteauthor%
22685 \end_layout
22686
22687 \end_inset
22688
22689 : Provides a name list which is abbreviated (with 
22690 \begin_inset Quotes eld
22691 \end_inset
22692
22693 et al.
22694 \begin_inset Quotes erd
22695 \end_inset
22696
22697 ) when 
22698 \begin_inset Flex Code
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702 MaxCiteNames
22703 \end_layout
22704
22705 \end_inset
22706
22707  is reached.
22708 \end_layout
22709
22710 \begin_layout Itemize
22711 \begin_inset Flex Code
22712 status collapsed
22713
22714 \begin_layout Plain Layout
22715 %fullciteauthor%
22716 \end_layout
22717
22718 \end_inset
22719
22720 : Provides a full name list (never abbreviated with 
22721 \begin_inset Quotes eld
22722 \end_inset
22723
22724 et al.
22725 \begin_inset Quotes erd
22726 \end_inset
22727
22728 ).
22729 \end_layout
22730
22731 \begin_layout Itemize
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736 %forceabbrvciteauthor%
22737 \end_layout
22738
22739 \end_inset
22740
22741 : Provides a name list which is always abbreviated (with 
22742 \begin_inset Quotes eld
22743 \end_inset
22744
22745 et al.
22746 \begin_inset Quotes erd
22747 \end_inset
22748
22749 ) irrespective of 
22750 \begin_inset Flex Code
22751 status collapsed
22752
22753 \begin_layout Plain Layout
22754 MaxCiteNames
22755 \end_layout
22756
22757 \end_inset
22758
22759 .
22760 \end_layout
22761
22762 \end_deeper
22763 \begin_layout Standard
22764 The order of pre- and surname in the former two lists can be adjusted by
22765  these macros:
22766 \end_layout
22767
22768 \begin_layout Itemize
22769 \begin_inset Flex Code
22770 status collapsed
22771
22772 \begin_layout Plain Layout
22773 !firstnameform %surname%, %prename%
22774 \end_layout
22775
22776 \end_inset
22777
22778  (first author in lists of type 1)
22779 \end_layout
22780
22781 \begin_layout Itemize
22782 \begin_inset Flex Code
22783 status collapsed
22784
22785 \begin_layout Plain Layout
22786 !othernameform %surname%, %prename%
22787 \end_layout
22788
22789 \end_inset
22790
22791  (other authors in lists of type 1)
22792 \end_layout
22793
22794 \begin_layout Itemize
22795 \begin_inset Flex Code
22796 status collapsed
22797
22798 \begin_layout Plain Layout
22799 !firstbynameform %prename% %surname%
22800 \end_layout
22801
22802 \end_inset
22803
22804  (first author in lists of type 2)
22805 \end_layout
22806
22807 \begin_layout Itemize
22808 \begin_inset Flex Code
22809 status collapsed
22810
22811 \begin_layout Plain Layout
22812 !otherbynameform %prename% %surname%
22813 \end_layout
22814
22815 \end_inset
22816
22817  (other authors in lists of type 2)
22818 \end_layout
22819
22820 \begin_layout Standard
22821 This allows you to configure namings like 
22822 \begin_inset Quotes eld
22823 \end_inset
22824
22825 Miller, Peter and Mary Smith: \SpecialChar ldots
22826 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22827
22828 \begin_inset Quotes erd
22829 \end_inset
22830
22831 .
22832 \end_layout
22833
22834 \begin_layout Standard
22835 There is one other piece of syntax available in definitions, which looks
22836  like this: 
22837 \begin_inset Flex Code
22838 status collapsed
22839
22840 \begin_layout Plain Layout
22841 {!<i>!}
22842 \end_layout
22843
22844 \end_inset
22845
22846 .
22847  This defines a piece of formatting information that is to be used when
22848  creating 
22849 \begin_inset Quotes eld
22850 \end_inset
22851
22852 rich text
22853 \begin_inset Quotes erd
22854 \end_inset
22855
22856 .
22857  Obviously, we do not want to output HTML tags when writing plain text,
22858  so they should be wrapped in 
22859 \begin_inset Quotes eld
22860 \end_inset
22861
22862 {!
22863 \begin_inset Quotes erd
22864 \end_inset
22865
22866  and 
22867 \begin_inset Quotes eld
22868 \end_inset
22869
22870 !}
22871 \begin_inset Quotes erd
22872 \end_inset
22873
22874 .
22875 \end_layout
22876
22877 \begin_layout Standard
22878 Two special sorts of definitions are also possible in a 
22879 \begin_inset Flex Code
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883 CiteFormat
22884 \end_layout
22885
22886 \end_inset
22887
22888  block.
22889  An example of the first would be:
22890 \end_layout
22891
22892 \begin_layout LyX-Code
22893 !quotetitle 
22894 \begin_inset Quotes eld
22895 \end_inset
22896
22897 %title%
22898 \begin_inset Quotes erd
22899 \end_inset
22900
22901
22902 \end_layout
22903
22904 \begin_layout Standard
22905 This is an abbreviation, or macro, and it can be used by treating it as
22906  if it were a key: 
22907 \begin_inset Flex Code
22908 status collapsed
22909
22910 \begin_layout Plain Layout
22911 %!quotetitle%
22912 \end_layout
22913
22914 \end_inset
22915
22916 .
22917  \SpecialChar LyX
22918  will treat 
22919 \begin_inset Flex Code
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923 %!quotetitle%
22924 \end_layout
22925
22926 \end_inset
22927
22928  exactly as it would treat its definition.
22929  So, let us issue the obvious 
22930 \emph on
22931 warning
22932 \emph default
22933 .
22934  Do not do this:
22935 \end_layout
22936
22937 \begin_layout LyX-Code
22938 !funfun %funfun%
22939 \end_layout
22940
22941 \begin_layout Standard
22942 or anything like it.
22943  \SpecialChar LyX
22944  shouldn't go into an infinite loop, but it may go into a long one before
22945  it gives up.
22946 \end_layout
22947
22948 \begin_layout Standard
22949 The second sort of special definition might look like this:
22950 \end_layout
22951
22952 \begin_layout LyX-Code
22953 _pptext pp.
22954 \end_layout
22955
22956 \begin_layout Standard
22957 This defines a translatable piece of text, which allows relevant parts of
22958  the bibliography or citation to be translated.
22959  It can be included in a definition by treating it as a key: 
22960 \begin_inset Flex Code
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964 %_pptext%
22965 \end_layout
22966
22967 \end_inset
22968
22969 .
22970  Several of these are predefined in 
22971 \begin_inset Flex Code
22972 status collapsed
22973
22974 \begin_layout Plain Layout
22975 stdciteformats.inc
22976 \end_layout
22977
22978 \end_inset
22979
22980  and the diverse 
22981 \begin_inset Flex Code
22982 status collapsed
22983
22984 \begin_layout Plain Layout
22985 *.citeengine
22986 \end_layout
22987
22988 \end_inset
22989
22990  files.
22991  Note that these are not macros, in the sense just defined.
22992  They will not be expanded.
22993 \end_layout
22994
22995 \begin_layout Standard
22996 So here then is an example that use all these features:
22997 \begin_inset VSpace defskip
22998 \end_inset
22999
23000
23001 \end_layout
23002
23003 \begin_layout Standard
23004 \noindent
23005
23006 \family sans
23007 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
23008 \end_layout
23009
23010 \begin_layout Standard
23011 \begin_inset VSpace defskip
23012 \end_inset
23013
23014 This defines a macro that prints the author, followed by a comma, if the
23015  
23016 \begin_inset Flex Code
23017 status collapsed
23018
23019 \begin_layout Plain Layout
23020 author
23021 \end_layout
23022
23023 \end_inset
23024
23025  key is defined, or else prints the name of the editor, followed by the
23026  
23027 \begin_inset Flex Code
23028 status collapsed
23029
23030 \begin_layout Plain Layout
23031 _edtext
23032 \end_layout
23033
23034 \end_inset
23035
23036  or its translation (it is by default 
23037 \begin_inset Quotes eld
23038 \end_inset
23039
23040 ed.
23041 \begin_inset Quotes erd
23042 \end_inset
23043
23044 ), if the 
23045 \begin_inset Flex Code
23046 status collapsed
23047
23048 \begin_layout Plain Layout
23049 editor
23050 \end_layout
23051
23052 \end_inset
23053
23054  key is defined.
23055  Note that this is in fact defined in 
23056 \begin_inset Flex Code
23057 status collapsed
23058
23059 \begin_layout Plain Layout
23060 stdciteformats.inc
23061 \end_layout
23062
23063 \end_inset
23064
23065 , so you can use it in your own definitions, or re-definitions, if you load
23066  that file first.
23067 \end_layout
23068
23069 \begin_layout Section
23070 \begin_inset CommandInset label
23071 LatexCommand label
23072 name "sec:Tags-for-XHTML"
23073
23074 \end_inset
23075
23076 Tags for XHTML output
23077 \end_layout
23078
23079 \begin_layout Standard
23080 As with \SpecialChar LaTeX
23081  or DocBook, the format of \SpecialChar LyX
23082 's XHTML output is also controlled by
23083  layout information.
23084  In general, \SpecialChar LyX
23085  provides sensible defaults and, as mentioned earlier, it will
23086  even construct default CSS style rules from the other layout tags.
23087  For example, \SpecialChar LyX
23088  will attempt to use the information provided in the 
23089 \begin_inset Flex Code
23090 status collapsed
23091
23092 \begin_layout Plain Layout
23093 Font
23094 \end_layout
23095
23096 \end_inset
23097
23098  declaration for the Chapter style to write CSS that will appropriately
23099  format chapter headings.
23100 \end_layout
23101
23102 \begin_layout Standard
23103 In many cases, then, you may not have to do anything at all to get acceptable
23104  XHTML output for your own environments, custom insets, and so forth.
23105  But in some cases you will, and so \SpecialChar LyX
23106  provides a number of layout tags that
23107  can be used to customize the XHTML and CSS that are generated.
23108 \end_layout
23109
23110 \begin_layout Standard
23111 Note that there are two tags, 
23112 \begin_inset Flex Code
23113 status collapsed
23114
23115 \begin_layout Plain Layout
23116 HTMLPreamble
23117 \end_layout
23118
23119 \end_inset
23120
23121  and 
23122 \begin_inset Flex Code
23123 status collapsed
23124
23125 \begin_layout Plain Layout
23126 AddToHTMLPreamble
23127 \end_layout
23128
23129 \end_inset
23130
23131  that may appear outside style and inset declarations.
23132  See 
23133 \begin_inset CommandInset ref
23134 LatexCommand ref
23135 reference "subsec:General-text-class"
23136
23137 \end_inset
23138
23139  for details on these.
23140 \end_layout
23141
23142 \begin_layout Subsection
23143 \begin_inset CommandInset label
23144 LatexCommand label
23145 name "subsec:Paragraph-Style-XHTML"
23146
23147 \end_inset
23148
23149 Paragraph styles
23150 \end_layout
23151
23152 \begin_layout Standard
23153 The sort of XHTML \SpecialChar LyX
23154  outputs for a paragraph depends upon whether we are dealing
23155  with a normal paragraph, a command, or an environment, where this is itself
23156  determined by the contents of the corresponding 
23157 \begin_inset Flex Code
23158 status collapsed
23159
23160 \begin_layout Plain Layout
23161 \SpecialChar LaTeX
23162 Type
23163 \end_layout
23164
23165 \end_inset
23166
23167  tag.
23168  
23169 \end_layout
23170
23171 \begin_layout Standard
23172 For a command or normal paragraph, the output XHTML has the following form:
23173 \end_layout
23174
23175 \begin_layout LyX-Code
23176
23177 \family sans
23178 <tag attr=
23179 \begin_inset Quotes erd
23180 \end_inset
23181
23182 value
23183 \begin_inset Quotes erd
23184 \end_inset
23185
23186 >
23187 \end_layout
23188
23189 \begin_layout LyX-Code
23190
23191 \family sans
23192 <labeltag attr=
23193 \begin_inset Quotes erd
23194 \end_inset
23195
23196 value
23197 \begin_inset Quotes erd
23198 \end_inset
23199
23200 >Label</labeltag>
23201 \end_layout
23202
23203 \begin_layout LyX-Code
23204
23205 \family sans
23206 Contents of the paragraph.
23207 \end_layout
23208
23209 \begin_layout LyX-Code
23210
23211 \family sans
23212 </tag>
23213 \end_layout
23214
23215 \begin_layout Standard
23216 The label tags are of course omitted if the paragraph does not have a label.
23217 \end_layout
23218
23219 \begin_layout Standard
23220 For an environment that is not some sort of list, the XHTML takes this form:
23221 \end_layout
23222
23223 \begin_layout LyX-Code
23224
23225 \family sans
23226 <tag attr=
23227 \begin_inset Quotes erd
23228 \end_inset
23229
23230 value
23231 \begin_inset Quotes erd
23232 \end_inset
23233
23234 >
23235 \end_layout
23236
23237 \begin_layout LyX-Code
23238
23239 \family sans
23240 <itemtag attr=
23241 \begin_inset Quotes erd
23242 \end_inset
23243
23244 value
23245 \begin_inset Quotes erd
23246 \end_inset
23247
23248 ><labeltag attr=
23249 \begin_inset Quotes erd
23250 \end_inset
23251
23252 value
23253 \begin_inset Quotes erd
23254 \end_inset
23255
23256 >Environment Label</labeltag>First paragraph.</itemtag>
23257 \end_layout
23258
23259 \begin_layout LyX-Code
23260
23261 \family sans
23262 <itemtag>Second paragraph.</itemtag>
23263 \end_layout
23264
23265 \begin_layout LyX-Code
23266
23267 \family sans
23268 </tag>
23269 \end_layout
23270
23271 \begin_layout Standard
23272 Note that the label is output only for the first paragraph, as it should
23273  be for a theorem, for example.
23274  
23275 \end_layout
23276
23277 \begin_layout Standard
23278 For a list, we have one of these forms:
23279 \end_layout
23280
23281 \begin_layout LyX-Code
23282
23283 \family sans
23284 <tag attr=
23285 \begin_inset Quotes erd
23286 \end_inset
23287
23288 value
23289 \begin_inset Quotes erd
23290 \end_inset
23291
23292 >
23293 \end_layout
23294
23295 \begin_layout LyX-Code
23296
23297 \family sans
23298 <itemtag attr=
23299 \begin_inset Quotes erd
23300 \end_inset
23301
23302 value
23303 \begin_inset Quotes erd
23304 \end_inset
23305
23306 ><labeltag attr=
23307 \begin_inset Quotes erd
23308 \end_inset
23309
23310 value
23311 \begin_inset Quotes erd
23312 \end_inset
23313
23314 >List Label</labeltag>First item.</itemtag>
23315 \end_layout
23316
23317 \begin_layout LyX-Code
23318
23319 \family sans
23320 <itemtag attr=
23321 \begin_inset Quotes erd
23322 \end_inset
23323
23324 value
23325 \begin_inset Quotes erd
23326 \end_inset
23327
23328 ><labeltag attr=
23329 \begin_inset Quotes erd
23330 \end_inset
23331
23332 value
23333 \begin_inset Quotes erd
23334 \end_inset
23335
23336 >List Label</labeltag>Second item.</itemtag>
23337 \end_layout
23338
23339 \begin_layout LyX-Code
23340
23341 \family sans
23342 </tag>
23343 \end_layout
23344
23345 \begin_layout LyX-Code
23346
23347 \end_layout
23348
23349 \begin_layout LyX-Code
23350
23351 \family sans
23352 <tag attr=
23353 \begin_inset Quotes erd
23354 \end_inset
23355
23356 value
23357 \begin_inset Quotes erd
23358 \end_inset
23359
23360 >
23361 \end_layout
23362
23363 \begin_layout LyX-Code
23364
23365 \family sans
23366 <labeltag attr=
23367 \begin_inset Quotes erd
23368 \end_inset
23369
23370 value
23371 \begin_inset Quotes erd
23372 \end_inset
23373
23374 >List Label</labeltag><itemtag attr=
23375 \begin_inset Quotes erd
23376 \end_inset
23377
23378 value
23379 \begin_inset Quotes erd
23380 \end_inset
23381
23382 >First item.</itemtag>
23383 \end_layout
23384
23385 \begin_layout LyX-Code
23386
23387 \family sans
23388 <labeltag attr=
23389 \begin_inset Quotes erd
23390 \end_inset
23391
23392 value
23393 \begin_inset Quotes erd
23394 \end_inset
23395
23396 >List Label</labeltag><itemtag attr=
23397 \begin_inset Quotes erd
23398 \end_inset
23399
23400 value
23401 \begin_inset Quotes erd
23402 \end_inset
23403
23404 >Second item.</itemtag>
23405 \end_layout
23406
23407 \begin_layout LyX-Code
23408
23409 \family sans
23410 </tag>
23411 \end_layout
23412
23413 \begin_layout Standard
23414 Note the different orders of 
23415 \begin_inset Flex Code
23416 status collapsed
23417
23418 \begin_layout Plain Layout
23419 labeltag
23420 \end_layout
23421
23422 \end_inset
23423
23424  and 
23425 \begin_inset Flex Code
23426 status collapsed
23427
23428 \begin_layout Plain Layout
23429 itemtag
23430 \end_layout
23431
23432 \end_inset
23433
23434 .
23435  Which order we get depends upon the setting of 
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440 HTMLLabelFirst
23441 \end_layout
23442
23443 \end_inset
23444
23445 : If 
23446 \begin_inset Flex Code
23447 status collapsed
23448
23449 \begin_layout Plain Layout
23450 HTMLLabelFirst
23451 \end_layout
23452
23453 \end_inset
23454
23455  is false (the default), you get the first of these, with the label within
23456  the item; if true, you get the second, with the label outside the item.
23457 \end_layout
23458
23459 \begin_layout Standard
23460 The specific tags and attributes output for each paragraph type can be controlle
23461 d by means of the layout tags we are about to describe.
23462  As mentioned earlier, however, \SpecialChar LyX
23463  uses sensible defaults for many of these,
23464  so you often may not need to do very much to get good XHTML output.
23465  Think of the available tags as there so you can tweak things to your liking.
23466 \end_layout
23467
23468 \begin_layout Description
23469 \begin_inset Flex Code
23470 status collapsed
23471
23472 \begin_layout Plain Layout
23473 HTMLAttr
23474 \end_layout
23475
23476 \end_inset
23477
23478  [
23479 \begin_inset Flex Code
23480 status collapsed
23481
23482 \begin_layout Plain Layout
23483 string
23484 \end_layout
23485
23486 \end_inset
23487
23488 ] Specifies attribute information to be output with the main tag.
23489  For example, 
23490 \begin_inset Quotes eld
23491 \end_inset
23492
23493
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498 class=`mydiv'
23499 \end_layout
23500
23501 \end_inset
23502
23503
23504 \begin_inset Quotes erd
23505 \end_inset
23506
23507 .
23508  By default, \SpecialChar LyX
23509  will output 
23510 \begin_inset Quotes eld
23511 \end_inset
23512
23513
23514 \begin_inset Flex Code
23515 status collapsed
23516
23517 \begin_layout Plain Layout
23518 class=`layoutname'
23519 \end_layout
23520
23521 \end_inset
23522
23523
23524 \begin_inset Quotes erd
23525 \end_inset
23526
23527 , where 
23528 \begin_inset Flex Code
23529 status collapsed
23530
23531 \begin_layout Plain Layout
23532 layoutname
23533 \end_layout
23534
23535 \end_inset
23536
23537  is the \SpecialChar LyX
23538  name of the layout, made lowercase, for example: chapter.
23539  This should 
23540 \emph on
23541 not
23542 \emph default
23543  contain any style information.
23544  Use 
23545 \begin_inset Flex Code
23546 status collapsed
23547
23548 \begin_layout Plain Layout
23549 HTMLStyle
23550 \end_layout
23551
23552 \end_inset
23553
23554  for that purpose.
23555 \end_layout
23556
23557 \begin_layout Description
23558 \begin_inset Flex Code
23559 status collapsed
23560
23561 \begin_layout Plain Layout
23562 HTMLForceCSS
23563 \end_layout
23564
23565 \end_inset
23566
23567  [
23568 \begin_inset Flex Code
23569 status collapsed
23570
23571 \begin_layout Plain Layout
23572
23573 \emph on
23574 0
23575 \emph default
23576 ,1
23577 \end_layout
23578
23579 \end_inset
23580
23581 ] Whether to output the default CSS information \SpecialChar LyX
23582  generates for this layout,
23583  even if additional information is explicitly provided via 
23584 \begin_inset Flex Code
23585 status collapsed
23586
23587 \begin_layout Plain Layout
23588 HTMLStyle
23589 \end_layout
23590
23591 \end_inset
23592
23593 .
23594  Setting this to 
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599 1
23600 \end_layout
23601
23602 \end_inset
23603
23604  allows you to alter or augment the generated CSS, rather than to override
23605  it completely.
23606  Default is 
23607 \begin_inset Flex Code
23608 status collapsed
23609
23610 \begin_layout Plain Layout
23611 0
23612 \end_layout
23613
23614 \end_inset
23615
23616 .
23617 \end_layout
23618
23619 \begin_layout Description
23620 \begin_inset Flex Code
23621 status collapsed
23622
23623 \begin_layout Plain Layout
23624 HTMLItem
23625 \end_layout
23626
23627 \end_inset
23628
23629  [
23630 \begin_inset Flex Code
23631 status collapsed
23632
23633 \begin_layout Plain Layout
23634 string
23635 \end_layout
23636
23637 \end_inset
23638
23639 ] The tag to be used for individual paragraphs of environments, replacing
23640  
23641 \begin_inset Flex Code
23642 status collapsed
23643
23644 \begin_layout Plain Layout
23645 itemtag
23646 \end_layout
23647
23648 \end_inset
23649
23650  in the examples above.
23651  Defaults to 
23652 \begin_inset Flex Code
23653 status collapsed
23654
23655 \begin_layout Plain Layout
23656 div
23657 \end_layout
23658
23659 \end_inset
23660
23661 .
23662 \end_layout
23663
23664 \begin_layout Description
23665 \begin_inset Flex Code
23666 status collapsed
23667
23668 \begin_layout Plain Layout
23669 HTMLItemAttr
23670 \end_layout
23671
23672 \end_inset
23673
23674  [
23675 \begin_inset Flex Code
23676 status collapsed
23677
23678 \begin_layout Plain Layout
23679 string
23680 \end_layout
23681
23682 \end_inset
23683
23684 ] Attributes for the item tag.
23685  Defaults to
23686 \begin_inset Newline newline
23687 \end_inset
23688
23689
23690 \begin_inset Quotes eld
23691 \end_inset
23692
23693
23694 \begin_inset Flex Code
23695 status collapsed
23696
23697 \begin_layout Plain Layout
23698 class=`layoutname_item'
23699 \end_layout
23700
23701 \end_inset
23702
23703
23704 \begin_inset Quotes erd
23705 \end_inset
23706
23707 .
23708  This should 
23709 \emph on
23710 not
23711 \emph default
23712  contain any style information.
23713  Use 
23714 \begin_inset Flex Code
23715 status collapsed
23716
23717 \begin_layout Plain Layout
23718 HTMLStyle
23719 \end_layout
23720
23721 \end_inset
23722
23723  for that purpose.
23724 \end_layout
23725
23726 \begin_layout Description
23727 \begin_inset Flex Code
23728 status collapsed
23729
23730 \begin_layout Plain Layout
23731 HTMLLabel
23732 \end_layout
23733
23734 \end_inset
23735
23736  [
23737 \begin_inset Flex Code
23738 status collapsed
23739
23740 \begin_layout Plain Layout
23741 string
23742 \end_layout
23743
23744 \end_inset
23745
23746 ] The tag to be used for paragraph and item labels, replacing 
23747 \begin_inset Flex Code
23748 status collapsed
23749
23750 \begin_layout Plain Layout
23751 labeltag
23752 \end_layout
23753
23754 \end_inset
23755
23756  in the examples above.
23757  Defaults to 
23758 \begin_inset Flex Code
23759 status collapsed
23760
23761 \begin_layout Plain Layout
23762 span
23763 \end_layout
23764
23765 \end_inset
23766
23767 , unless 
23768 \begin_inset Flex Code
23769 status collapsed
23770
23771 \begin_layout Plain Layout
23772 LabelType
23773 \end_layout
23774
23775 \end_inset
23776
23777  is either 
23778 \begin_inset Flex Code
23779 status collapsed
23780
23781 \begin_layout Plain Layout
23782 Top_Environment
23783 \end_layout
23784
23785 \end_inset
23786
23787  or 
23788 \begin_inset Flex Code
23789 status collapsed
23790
23791 \begin_layout Plain Layout
23792 Centered_Top_Environment
23793 \end_layout
23794
23795 \end_inset
23796
23797 , in which case it defaults to 
23798 \begin_inset Flex Code
23799 status collapsed
23800
23801 \begin_layout Plain Layout
23802 div
23803 \end_layout
23804
23805 \end_inset
23806
23807 .
23808 \end_layout
23809
23810 \begin_layout Description
23811 \begin_inset Flex Code
23812 status collapsed
23813
23814 \begin_layout Plain Layout
23815 HTMLLabelAttr
23816 \end_layout
23817
23818 \end_inset
23819
23820  [
23821 \begin_inset Flex Code
23822 status collapsed
23823
23824 \begin_layout Plain Layout
23825 string
23826 \end_layout
23827
23828 \end_inset
23829
23830 ] Attributes for the label tag.
23831  Defaults to
23832 \begin_inset Newline newline
23833 \end_inset
23834
23835
23836 \begin_inset Quotes eld
23837 \end_inset
23838
23839
23840 \begin_inset Flex Code
23841 status collapsed
23842
23843 \begin_layout Plain Layout
23844 class=`layoutname_label'
23845 \end_layout
23846
23847 \end_inset
23848
23849
23850 \begin_inset Quotes erd
23851 \end_inset
23852
23853 .
23854  This should 
23855 \emph on
23856 not
23857 \emph default
23858  contain any style information.
23859  Use 
23860 \begin_inset Flex Code
23861 status collapsed
23862
23863 \begin_layout Plain Layout
23864 HTMLStyle
23865 \end_layout
23866
23867 \end_inset
23868
23869  for that purpose.
23870 \end_layout
23871
23872 \begin_layout Description
23873 \begin_inset Flex Code
23874 status collapsed
23875
23876 \begin_layout Plain Layout
23877 HTMLLabelFirst
23878 \end_layout
23879
23880 \end_inset
23881
23882  [
23883 \begin_inset Flex Code
23884 status collapsed
23885
23886 \begin_layout Plain Layout
23887
23888 \emph on
23889 0
23890 \emph default
23891 ,1
23892 \end_layout
23893
23894 \end_inset
23895
23896 ] Meaningful only for list-like environments, this tag controls whether
23897  the label tag is output before or inside the item tag.
23898  This is used, for example, in the description environment, where we want
23899  `
23900 \begin_inset Flex Code
23901 status collapsed
23902
23903 \begin_layout Plain Layout
23904 <dt>\SpecialChar ldots
23905 </dt><dd>\SpecialChar ldots
23906 </dd>
23907 \end_layout
23908
23909 \end_inset
23910
23911 .
23912  Default is 
23913 \begin_inset Flex Code
23914 status collapsed
23915
23916 \begin_layout Plain Layout
23917 0
23918 \end_layout
23919
23920 \end_inset
23921
23922 : The label tag is output inside the item tag.
23923 \end_layout
23924
23925 \begin_layout Description
23926 \begin_inset Flex Code
23927 status collapsed
23928
23929 \begin_layout Plain Layout
23930 HTMLPreamble
23931 \end_layout
23932
23933 \end_inset
23934
23935  Information to be output in the 
23936 \begin_inset Flex Code
23937 status collapsed
23938
23939 \begin_layout Plain Layout
23940 <head>
23941 \end_layout
23942
23943 \end_inset
23944
23945  section when this style is used.
23946  This might, for example, be used to include a 
23947 \begin_inset Flex Code
23948 status collapsed
23949
23950 \begin_layout Plain Layout
23951 <script>
23952 \end_layout
23953
23954 \end_inset
23955
23956  block defining an 
23957 \begin_inset Flex Code
23958 status collapsed
23959
23960 \begin_layout Plain Layout
23961 onclick
23962 \end_layout
23963
23964 \end_inset
23965
23966  handler.
23967 \end_layout
23968
23969 \begin_layout Description
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 HTMLStyle
23975 \end_layout
23976
23977 \end_inset
23978
23979  CSS style information to be included when this style is used.
23980  Note that this will automatically be wrapped in a layout-generated 
23981 \begin_inset Flex Code
23982 status collapsed
23983
23984 \begin_layout Plain Layout
23985 <style>
23986 \end_layout
23987
23988 \end_inset
23989
23990  block, so only the CSS itself need be included.
23991  Must end with 
23992 \begin_inset Flex Code
23993 status collapsed
23994
23995 \begin_layout Plain Layout
23996 EndHTMLStyle
23997 \end_layout
23998
23999 \end_inset
24000
24001 .
24002 \end_layout
24003
24004 \begin_layout Description
24005 \begin_inset Flex Code
24006 status collapsed
24007
24008 \begin_layout Plain Layout
24009 HTMLTag
24010 \end_layout
24011
24012 \end_inset
24013
24014  [
24015 \begin_inset Flex Code
24016 status collapsed
24017
24018 \begin_layout Plain Layout
24019 string
24020 \end_layout
24021
24022 \end_inset
24023
24024 ] The tag to be used for the main label, replacing 
24025 \begin_inset Flex Code
24026 status collapsed
24027
24028 \begin_layout Plain Layout
24029 tag
24030 \end_layout
24031
24032 \end_inset
24033
24034  in the examples above.
24035  Defaults to 
24036 \begin_inset Flex Code
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040 div
24041 \end_layout
24042
24043 \end_inset
24044
24045 .
24046 \end_layout
24047
24048 \begin_layout Description
24049 \begin_inset Flex Code
24050 status collapsed
24051
24052 \begin_layout Plain Layout
24053 HTMLTitle
24054 \end_layout
24055
24056 \end_inset
24057
24058  [
24059 \begin_inset Flex Code
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063
24064 \emph on
24065 0
24066 \emph default
24067 ,1
24068 \end_layout
24069
24070 \end_inset
24071
24072 ] Marks this style as the one to be used to generate the 
24073 \begin_inset Flex Code
24074 status collapsed
24075
24076 \begin_layout Plain Layout
24077 <title>
24078 \end_layout
24079
24080 \end_inset
24081
24082  tag for the XHTML file.
24083  By default, it is false.
24084  The 
24085 \begin_inset Flex Code
24086 status collapsed
24087
24088 \begin_layout Plain Layout
24089 stdtitle.inc
24090 \end_layout
24091
24092 \end_inset
24093
24094  file sets it to true for the 
24095 \begin_inset Flex Code
24096 status collapsed
24097
24098 \begin_layout Plain Layout
24099 title
24100 \end_layout
24101
24102 \end_inset
24103
24104  environment.
24105  
24106 \end_layout
24107
24108 \begin_layout Subsection
24109 InsetLayout XHTML
24110 \end_layout
24111
24112 \begin_layout Standard
24113 The XHTML output of insets can also be controlled by information in layout
24114  files.
24115 \begin_inset Foot
24116 status collapsed
24117
24118 \begin_layout Plain Layout
24119 At present, this is true only for 
24120 \begin_inset Quotes eld
24121 \end_inset
24122
24123 text
24124 \begin_inset Quotes erd
24125 \end_inset
24126
24127  insets (insets you can type into) and is not true for 
24128 \begin_inset Quotes eld
24129 \end_inset
24130
24131 command
24132 \begin_inset Quotes erd
24133 \end_inset
24134
24135  insets (insets that are associated with dialog boxes).
24136 \end_layout
24137
24138 \end_inset
24139
24140  Here, too, \SpecialChar LyX
24141  tries to provide sensible defaults, and it constructs default
24142  CSS style rules.
24143  But everything can be customized.
24144 \end_layout
24145
24146 \begin_layout Standard
24147 The XHTML \SpecialChar LyX
24148  outputs for an inset has the following form:
24149 \end_layout
24150
24151 \begin_layout LyX-Code
24152 <tag attr=
24153 \begin_inset Quotes erd
24154 \end_inset
24155
24156 value
24157 \begin_inset Quotes erd
24158 \end_inset
24159
24160 >
24161 \end_layout
24162
24163 \begin_layout LyX-Code
24164 <labeltag>Label</labeltag>
24165 \end_layout
24166
24167 \begin_layout LyX-Code
24168 <innertag attr=
24169 \begin_inset Quotes erd
24170 \end_inset
24171
24172 value
24173 \begin_inset Quotes erd
24174 \end_inset
24175
24176 >Contents of the inset.</innertag>
24177 \end_layout
24178
24179 \begin_layout LyX-Code
24180 </tag>
24181 \end_layout
24182
24183 \begin_layout Standard
24184 If the inset permits multiple paragraphs—that is, if 
24185 \begin_inset Flex Code
24186 status collapsed
24187
24188 \begin_layout Plain Layout
24189 MultiPar
24190 \end_layout
24191
24192 \end_inset
24193
24194  is true—then the contents of the inset will itself be output as paragraphs
24195  formatted according to the styles used for those paragraphs (standard,
24196  quote, and the like).
24197  The label tag is of course omitted if the paragraph does not have a label
24198  and, at present, is always 
24199 \begin_inset Flex Code
24200 status collapsed
24201
24202 \begin_layout Plain Layout
24203 span
24204 \end_layout
24205
24206 \end_inset
24207
24208 .
24209  The inner tag is optional and, by default, does not appear.
24210 \end_layout
24211
24212 \begin_layout Standard
24213 The specific tags and attributes output for each inset can be controlled
24214  by means of the following layout tags.
24215 \end_layout
24216
24217 \begin_layout Description
24218 \begin_inset Flex Code
24219 status collapsed
24220
24221 \begin_layout Plain Layout
24222 HTMLAttr
24223 \end_layout
24224
24225 \end_inset
24226
24227  [
24228 \begin_inset Flex Code
24229 status collapsed
24230
24231 \begin_layout Plain Layout
24232 string
24233 \end_layout
24234
24235 \end_inset
24236
24237 ] Specifies attribute information to be output with the main tag.
24238  For example, 
24239 \begin_inset Quotes eld
24240 \end_inset
24241
24242
24243 \begin_inset Flex Code
24244 status collapsed
24245
24246 \begin_layout Plain Layout
24247 class=`myinset' onclick=`\SpecialChar ldots
24248 '
24249 \end_layout
24250
24251 \end_inset
24252
24253
24254 \begin_inset Quotes erd
24255 \end_inset
24256
24257 .
24258  By default, \SpecialChar LyX
24259  will output 
24260 \begin_inset Quotes eld
24261 \end_inset
24262
24263
24264 \begin_inset Flex Code
24265 status collapsed
24266
24267 \begin_layout Plain Layout
24268 class=`insetname'
24269 \end_layout
24270
24271 \end_inset
24272
24273
24274 \begin_inset Quotes erd
24275 \end_inset
24276
24277 , where 
24278 \begin_inset Flex Code
24279 status collapsed
24280
24281 \begin_layout Plain Layout
24282 insetname
24283 \end_layout
24284
24285 \end_inset
24286
24287  is the \SpecialChar LyX
24288  name of the inset, made lowercase and with non-alphanumeric characters
24289  converted to underscores, for example: footnote.
24290 \end_layout
24291
24292 \begin_layout Description
24293 \begin_inset Flex Code
24294 status collapsed
24295
24296 \begin_layout Plain Layout
24297 HTMLForceCSS
24298 \end_layout
24299
24300 \end_inset
24301
24302  [
24303 \begin_inset Flex Code
24304 status collapsed
24305
24306 \begin_layout Plain Layout
24307
24308 \emph on
24309 0
24310 \emph default
24311 ,1
24312 \end_layout
24313
24314 \end_inset
24315
24316 ] Whether to output the default CSS information \SpecialChar LyX
24317  generates for this layout,
24318  even if additional information is explicitly provided via 
24319 \begin_inset Flex Code
24320 status collapsed
24321
24322 \begin_layout Plain Layout
24323 HTMLStyle
24324 \end_layout
24325
24326 \end_inset
24327
24328 .
24329  Setting this to 
24330 \begin_inset Flex Code
24331 status collapsed
24332
24333 \begin_layout Plain Layout
24334 1
24335 \end_layout
24336
24337 \end_inset
24338
24339  allows you to alter or augment the generated CSS, rather than to override
24340  it completely.
24341  Default is 0.
24342 \end_layout
24343
24344 \begin_layout Description
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 HTMLInnerAttr
24350 \end_layout
24351
24352 \end_inset
24353
24354  [
24355 \begin_inset Flex Code
24356 status collapsed
24357
24358 \begin_layout Plain Layout
24359 string
24360 \end_layout
24361
24362 \end_inset
24363
24364 ] Attributes for the inner tag.
24365  Defaults to
24366 \begin_inset Newline newline
24367 \end_inset
24368
24369
24370 \begin_inset Quotes eld
24371 \end_inset
24372
24373
24374 \begin_inset Flex Code
24375 status collapsed
24376
24377 \begin_layout Plain Layout
24378 class=`insetname_inner'
24379 \end_layout
24380
24381 \end_inset
24382
24383
24384 \begin_inset Quotes erd
24385 \end_inset
24386
24387 .
24388 \end_layout
24389
24390 \begin_layout Description
24391 \begin_inset Flex Code
24392 status collapsed
24393
24394 \begin_layout Plain Layout
24395 HTMLInnerTag
24396 \end_layout
24397
24398 \end_inset
24399
24400  [
24401 \begin_inset Flex Code
24402 status collapsed
24403
24404 \begin_layout Plain Layout
24405 string
24406 \end_layout
24407
24408 \end_inset
24409
24410 ] The inner tag, replacing 
24411 \begin_inset Flex Code
24412 status collapsed
24413
24414 \begin_layout Plain Layout
24415 innertag
24416 \end_layout
24417
24418 \end_inset
24419
24420  in the examples above.
24421  By default, there is none.
24422 \end_layout
24423
24424 \begin_layout Description
24425 \begin_inset Flex Code
24426 status collapsed
24427
24428 \begin_layout Plain Layout
24429 HTMLIsBlock
24430 \end_layout
24431
24432 \end_inset
24433
24434  [
24435 \begin_inset Flex Code
24436 status collapsed
24437
24438 \begin_layout Plain Layout
24439 0,
24440 \emph on
24441 1
24442 \end_layout
24443
24444 \end_inset
24445
24446 ] Whether this inset represents a standalone block of text (such as a footnote)
24447  or instead represents material that is included in the surrounding text
24448  (such as a branch).
24449  Defaults to 1.
24450 \end_layout
24451
24452 \begin_layout Description
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 HTMLLabel
24458 \end_layout
24459
24460 \end_inset
24461
24462  [
24463 \begin_inset Flex Code
24464 status collapsed
24465
24466 \begin_layout Plain Layout
24467 string
24468 \end_layout
24469
24470 \end_inset
24471
24472 ] A label for this inset, possibly including a reference to a counter.
24473  For example, for footnote, it might be: 
24474 \begin_inset Flex Code
24475 status collapsed
24476
24477 \begin_layout Plain Layout
24478
24479 \backslash
24480 arabic{footnote}
24481 \end_layout
24482
24483 \end_inset
24484
24485 .
24486  This is optional, and there is no default.
24487 \end_layout
24488
24489 \begin_layout Description
24490 \begin_inset Flex Code
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494 HTMLPreamble
24495 \end_layout
24496
24497 \end_inset
24498
24499  Information to be output in the 
24500 \begin_inset Flex Code
24501 status collapsed
24502
24503 \begin_layout Plain Layout
24504 <head>
24505 \end_layout
24506
24507 \end_inset
24508
24509  section when this style is used.
24510  This might, for example, be used to include a 
24511 \begin_inset Flex Code
24512 status collapsed
24513
24514 \begin_layout Plain Layout
24515 <script>
24516 \end_layout
24517
24518 \end_inset
24519
24520  block defining an 
24521 \begin_inset Flex Code
24522 status collapsed
24523
24524 \begin_layout Plain Layout
24525 onclick
24526 \end_layout
24527
24528 \end_inset
24529
24530  handler.
24531 \end_layout
24532
24533 \begin_layout Description
24534 \begin_inset Flex Code
24535 status collapsed
24536
24537 \begin_layout Plain Layout
24538 HTMLStyle
24539 \end_layout
24540
24541 \end_inset
24542
24543  CSS style information to be included when this style is used.
24544  Note that this will automatically be wrapped in a layout-generated 
24545 \begin_inset Flex Code
24546 status collapsed
24547
24548 \begin_layout Plain Layout
24549 <style>
24550 \end_layout
24551
24552 \end_inset
24553
24554  block, so only the CSS itself need be included.
24555 \end_layout
24556
24557 \begin_layout Description
24558 \begin_inset Flex Code
24559 status collapsed
24560
24561 \begin_layout Plain Layout
24562 HTMLTag
24563 \end_layout
24564
24565 \end_inset
24566
24567  [
24568 \begin_inset Flex Code
24569 status collapsed
24570
24571 \begin_layout Plain Layout
24572 string
24573 \end_layout
24574
24575 \end_inset
24576
24577 ] The tag to be used for the main label, replacing 
24578 \begin_inset Flex Code
24579 status collapsed
24580
24581 \begin_layout Plain Layout
24582 tag
24583 \end_layout
24584
24585 \end_inset
24586
24587  in the examples above.
24588  The default depends upon the setting of 
24589 \begin_inset Flex Code
24590 status collapsed
24591
24592 \begin_layout Plain Layout
24593 MultiPar
24594 \end_layout
24595
24596 \end_inset
24597
24598 : If 
24599 \begin_inset Flex Code
24600 status collapsed
24601
24602 \begin_layout Plain Layout
24603 MultiPar
24604 \end_layout
24605
24606 \end_inset
24607
24608  is true, the default is 
24609 \begin_inset Flex Code
24610 status collapsed
24611
24612 \begin_layout Plain Layout
24613 div
24614 \end_layout
24615
24616 \end_inset
24617
24618 ; if it is false, the default is 
24619 \begin_inset Flex Code
24620 status collapsed
24621
24622 \begin_layout Plain Layout
24623 span
24624 \end_layout
24625
24626 \end_inset
24627
24628 .
24629 \end_layout
24630
24631 \begin_layout Subsection
24632 Float XHTML
24633 \end_layout
24634
24635 \begin_layout Standard
24636 The XHTML output for floats too can be controlled by layout information.
24637  The output has the following form:
24638 \end_layout
24639
24640 \begin_layout LyX-Code
24641 <tag attr=
24642 \begin_inset Quotes erd
24643 \end_inset
24644
24645 value
24646 \begin_inset Quotes erd
24647 \end_inset
24648
24649 >
24650 \end_layout
24651
24652 \begin_layout LyX-Code
24653 Contents of the float.
24654 \end_layout
24655
24656 \begin_layout LyX-Code
24657 </tag>
24658 \end_layout
24659
24660 \begin_layout Standard
24661 The caption, if there is one, is a separate inset and will be output as
24662  such.
24663  Its appearance can be controlled via the InsetLayout for caption insets.
24664  
24665 \end_layout
24666
24667 \begin_layout Description
24668 \begin_inset Flex Code
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672 HTMLAttr
24673 \end_layout
24674
24675 \end_inset
24676
24677  [
24678 \begin_inset Flex Code
24679 status collapsed
24680
24681 \begin_layout Plain Layout
24682 string
24683 \end_layout
24684
24685 \end_inset
24686
24687 ] Specifies attribute information to be output with the main tag.
24688  For example, 
24689 \begin_inset Quotes eld
24690 \end_inset
24691
24692
24693 \begin_inset Flex Code
24694 status collapsed
24695
24696 \begin_layout Plain Layout
24697 class=`myfloat' onclick=`\SpecialChar ldots
24698 '
24699 \end_layout
24700
24701 \end_inset
24702
24703
24704 \begin_inset Quotes erd
24705 \end_inset
24706
24707 .
24708  By default, \SpecialChar LyX
24709  will output 
24710 \begin_inset Quotes eld
24711 \end_inset
24712
24713
24714 \begin_inset Flex Code
24715 status collapsed
24716
24717 \begin_layout Plain Layout
24718 class=`float float-floattype'
24719 \end_layout
24720
24721 \end_inset
24722
24723
24724 \begin_inset Quotes erd
24725 \end_inset
24726
24727 , where 
24728 \begin_inset Flex Code
24729 status collapsed
24730
24731 \begin_layout Plain Layout
24732 floattype
24733 \end_layout
24734
24735 \end_inset
24736
24737  is \SpecialChar LyX
24738 's name for this type of float, as determined by the float declaration
24739  (see 
24740 \begin_inset CommandInset ref
24741 LatexCommand ref
24742 reference "subsec:Floats"
24743
24744 \end_inset
24745
24746 ), though made lowercase and with non-alphanumeric characters converted
24747  to underscores, for example: float-table.
24748 \end_layout
24749
24750 \begin_layout Description
24751 \begin_inset Flex Code
24752 status collapsed
24753
24754 \begin_layout Plain Layout
24755 HTMLStyle
24756 \end_layout
24757
24758 \end_inset
24759
24760  CSS style information to be included when this float is used.
24761  Note that this will automatically be wrapped in a layout-generated 
24762 \begin_inset Flex Code
24763 status collapsed
24764
24765 \begin_layout Plain Layout
24766 <style>
24767 \end_layout
24768
24769 \end_inset
24770
24771  block, so only the CSS itself need be included.
24772 \end_layout
24773
24774 \begin_layout Description
24775 \begin_inset Flex Code
24776 status collapsed
24777
24778 \begin_layout Plain Layout
24779 HTMLTag
24780 \end_layout
24781
24782 \end_inset
24783
24784  [
24785 \begin_inset Flex Code
24786 status collapsed
24787
24788 \begin_layout Plain Layout
24789 string
24790 \end_layout
24791
24792 \end_inset
24793
24794 ] The tag to be used for this float, replacing 
24795 \begin_inset Quotes eld
24796 \end_inset
24797
24798
24799 \begin_inset Flex Code
24800 status collapsed
24801
24802 \begin_layout Plain Layout
24803 tag
24804 \end_layout
24805
24806 \end_inset
24807
24808
24809 \begin_inset Quotes erd
24810 \end_inset
24811
24812  in the example above.
24813  The default is 
24814 \begin_inset Flex Code
24815 status collapsed
24816
24817 \begin_layout Plain Layout
24818 div
24819 \end_layout
24820
24821 \end_inset
24822
24823  and will rarely need changing.
24824 \end_layout
24825
24826 \begin_layout Subsection
24827 Bibliography formatting
24828 \end_layout
24829
24830 \begin_layout Standard
24831 The bibliography can be formatted using 
24832 \begin_inset Flex Code
24833 status collapsed
24834
24835 \begin_layout Plain Layout
24836 CiteFormat
24837 \end_layout
24838
24839 \end_inset
24840
24841  blocks.
24842  See 
24843 \begin_inset CommandInset ref
24844 LatexCommand ref
24845 reference "subsec:Citation-format-description"
24846
24847 \end_inset
24848
24849  for the details.
24850 \end_layout
24851
24852 \begin_layout Subsection
24853 \SpecialChar LyX
24854 -generated CSS
24855 \end_layout
24856
24857 \begin_layout Standard
24858 We have several times mentioned that \SpecialChar LyX
24859  will generate default CSS style rules
24860  for both insets and paragraph styles, based upon the other layout information
24861  that is provided.
24862  In this section, we shall say a word about which layout information \SpecialChar LyX
24863  uses
24864  and how.
24865 \end_layout
24866
24867 \begin_layout Standard
24868 At present, \SpecialChar LyX
24869  auto-generates CSS only for font information, making use of
24870  the 
24871 \begin_inset Flex Code
24872 status collapsed
24873
24874 \begin_layout Plain Layout
24875 Family
24876 \end_layout
24877
24878 \end_inset
24879
24880
24881 \begin_inset Flex Code
24882 status collapsed
24883
24884 \begin_layout Plain Layout
24885 Series
24886 \end_layout
24887
24888 \end_inset
24889
24890
24891 \begin_inset Flex Code
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 Shape
24896 \end_layout
24897
24898 \end_inset
24899
24900 , and 
24901 \begin_inset Flex Code
24902 status collapsed
24903
24904 \begin_layout Plain Layout
24905 Size
24906 \end_layout
24907
24908 \end_inset
24909
24910  specified in the 
24911 \begin_inset Flex Code
24912 status collapsed
24913
24914 \begin_layout Plain Layout
24915 Font
24916 \end_layout
24917
24918 \end_inset
24919
24920  declaration (see 
24921 \begin_inset CommandInset ref
24922 LatexCommand ref
24923 reference "subsec:Font-description"
24924
24925 \end_inset
24926
24927 ).
24928  The translation is mostly straightforward and obvious.
24929  For example, 
24930 \begin_inset Quotes eld
24931 \end_inset
24932
24933
24934 \begin_inset Flex Code
24935 status collapsed
24936
24937 \begin_layout Plain Layout
24938 Family Sans
24939 \end_layout
24940
24941 \end_inset
24942
24943
24944 \begin_inset Quotes erd
24945 \end_inset
24946
24947  becomes 
24948 \begin_inset Quotes eld
24949 \end_inset
24950
24951
24952 \begin_inset Flex Code
24953 status collapsed
24954
24955 \begin_layout Plain Layout
24956 font-family: sans-serif;
24957 \end_layout
24958
24959 \end_inset
24960
24961
24962 \begin_inset Quotes erd
24963 \end_inset
24964
24965 .
24966  The correspondence of \SpecialChar LyX
24967  sizes and CSS sizes is a little less obvious but
24968  nonetheless intuitive.
24969  See the 
24970 \begin_inset Flex Code
24971 status collapsed
24972
24973 \begin_layout Plain Layout
24974 getSizeCSS()
24975 \end_layout
24976
24977 \end_inset
24978
24979  function in 
24980 \begin_inset Flex URL
24981 status collapsed
24982
24983 \begin_layout Plain Layout
24984
24985 src/FontInfo.cpp
24986 \end_layout
24987
24988 \end_inset
24989
24990  for the details.
24991 \end_layout
24992
24993 \begin_layout Chapter
24994 Including External Material
24995 \begin_inset CommandInset label
24996 LatexCommand label
24997 name "chap:Including-External-Material"
24998
24999 \end_inset
25000
25001
25002 \end_layout
25003
25004 \begin_layout Standard
25005 \begin_inset Box Shadowbox
25006 position "t"
25007 hor_pos "c"
25008 has_inner_box 1
25009 inner_pos "t"
25010 use_parbox 0
25011 use_makebox 0
25012 width "100col%"
25013 special "none"
25014 height "1in"
25015 height_special "totalheight"
25016 thickness "0.4pt"
25017 separation "3pt"
25018 shadowsize "4pt"
25019 framecolor "black"
25020 backgroundcolor "none"
25021 status open
25022
25023 \begin_layout Plain Layout
25024 WARNING: This portion of the documentation has not been updated for some
25025  time.
25026  We certainly hope that it is still accurate, but there are no guarantees.
25027 \end_layout
25028
25029 \end_inset
25030
25031
25032 \end_layout
25033
25034 \begin_layout Standard
25035 The use of material from sources external to \SpecialChar LyX
25036  is covered in detail in the
25037  
25038 \emph on
25039 Embedded Objects
25040 \emph default
25041  manual.
25042  This part of the manual covers what needs to happen behind the scenes for
25043  new sorts of material to be included.
25044 \end_layout
25045
25046 \begin_layout Section
25047 How does it work?
25048 \end_layout
25049
25050 \begin_layout Standard
25051 The external material feature is based on the concept of a 
25052 \emph on
25053 template
25054 \emph default
25055 .
25056  A template is a specification of how \SpecialChar LyX
25057  should interface with a certain kind
25058  of material.
25059  As bundled, \SpecialChar LyX
25060  comes with predefined templates for Xfig figures, various
25061  raster format images, chess diagrams, and LilyPond music notation.
25062  You can check the actual list by using the menu 
25063 \begin_inset Flex Noun
25064 status collapsed
25065
25066 \begin_layout Plain Layout
25067 Insert\SpecialChar menuseparator
25068 File\SpecialChar menuseparator
25069 External Material
25070 \end_layout
25071
25072 \end_inset
25073
25074 .
25075  Furthermore, it is possible to roll your own template to support a specific
25076  kind of material.
25077  Later we'll describe in more detail what is involved, and hopefully you
25078  will submit all the templates you create so we can include them in a later
25079  \SpecialChar LyX
25080  version.
25081 \end_layout
25082
25083 \begin_layout Standard
25084 Another basic idea of the external material feature is to distinguish between
25085  the original file that serves as a base for final material and the produced
25086  file that is included in your exported or printed document.
25087  For example, consider the case of a figure produced with 
25088 \begin_inset Flex Code
25089 status collapsed
25090
25091 \begin_layout Plain Layout
25092 Xfig
25093 \end_layout
25094
25095 \end_inset
25096
25097 .
25098  The Xfig application itself works on an original file with the 
25099 \begin_inset Flex Code
25100 status collapsed
25101
25102 \begin_layout Plain Layout
25103 .fig
25104 \end_layout
25105
25106 \end_inset
25107
25108  extension.
25109  Within Xfig, you create and change your figure, and when you are done,
25110  you save the 
25111 \begin_inset Flex Code
25112 status collapsed
25113
25114 \begin_layout Plain Layout
25115 fig
25116 \end_layout
25117
25118 \end_inset
25119
25120 -file.
25121  When you want to include the figure in your document, you invoke 
25122 \begin_inset Flex Code
25123 status collapsed
25124
25125 \begin_layout Plain Layout
25126 transfig
25127 \end_layout
25128
25129 \end_inset
25130
25131  in order to create a PostScript file that can readily be included in your
25132  \SpecialChar LaTeX
25133  file.
25134  In this case, the 
25135 \begin_inset Flex Code
25136 status collapsed
25137
25138 \begin_layout Plain Layout
25139 .fig
25140 \end_layout
25141
25142 \end_inset
25143
25144  file is the original file, and the PostScript file is the produced file.
25145 \end_layout
25146
25147 \begin_layout Standard
25148 This distinction is important in order to allow updating of the material
25149  while you are in the process of writing the document.
25150  Furthermore, it provides us with the flexibility that is needed to support
25151  multiple export formats.
25152  For instance, in the case of a plain text file, it is not exactly an award-winn
25153 ing idea to include the figure as raw PostScript.
25154  Instead, you would either prefer to just include a reference to the figure
25155  or try to invoke some graphics to ASCII converter to make the final result
25156  look similar to the real graphics.
25157  The external material management allows you to do this, because it is parametri
25158 zed on the different export formats that \SpecialChar LyX
25159  supports.
25160 \end_layout
25161
25162 \begin_layout Standard
25163 Besides supporting the production of different products according to the
25164  exported format, it supports tight integration with editing and viewing
25165  applications.
25166  In the case of an Xfig figure, you are able to invoke Xfig on the original
25167  file with a single click from within the external material dialog in \SpecialChar LyX
25168 ,
25169  and also preview the produced PostScript file with Ghostview with another
25170  click.
25171  No more fiddling around with the command line and/or file browsers to locate
25172  and manipulate the original or produced files.
25173  In this way, you are finally able to take full advantage of the many different
25174  applications that are relevant to use when you write your documents, and
25175  ultimately be more productive.
25176 \end_layout
25177
25178 \begin_layout Section
25179 The external template configuration files
25180 \end_layout
25181
25182 \begin_layout Standard
25183 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25184 .
25185  However, be aware that doing this in an careless manner most probably 
25186 \emph on
25187 will
25188 \emph default
25189  introduce an easily exploitable security hole.
25190  So before you do this, please read the discussion about security in 
25191 \begin_inset CommandInset ref
25192 LatexCommand ref
25193 reference "sec:Security-discussion"
25194
25195 \end_inset
25196
25197 .
25198 \end_layout
25199
25200 \begin_layout Standard
25201 Having said that, we encourage you to submit any interesting templates that
25202  you create.
25203  
25204 \end_layout
25205
25206 \begin_layout Standard
25207 The external templates are defined in the 
25208 \begin_inset Flex Code
25209 status collapsed
25210
25211 \begin_layout Plain Layout
25212 *.xtemplate
25213 \end_layout
25214
25215 \end_inset
25216
25217  files that are stored in the 
25218 \begin_inset Flex Code
25219 status collapsed
25220
25221 \begin_layout Plain Layout
25222 LyXDir/lib/xtemplates/
25223 \end_layout
25224
25225 \end_inset
25226
25227  directory.
25228  Each template is defined in a file of its own.
25229  You can place your own templates in 
25230 \begin_inset Flex Code
25231 status collapsed
25232
25233 \begin_layout Plain Layout
25234 UserDir/xtemplates/
25235 \end_layout
25236
25237 \end_inset
25238
25239  or copy existing templates to that directory in order to modify them.
25240 \end_layout
25241
25242 \begin_layout Standard
25243 A typical template looks like this:
25244 \end_layout
25245
25246 \begin_layout LyX-Code
25247 Template XFig
25248 \end_layout
25249
25250 \begin_layout LyX-Code
25251 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25252 \end_layout
25253
25254 \begin_layout LyX-Code
25255 HelpText
25256 \end_layout
25257
25258 \begin_layout LyX-Code
25259 An XFig figure.
25260 \end_layout
25261
25262 \begin_layout LyX-Code
25263 HelpTextEnd
25264 \end_layout
25265
25266 \begin_layout LyX-Code
25267 InputFormat fig
25268 \end_layout
25269
25270 \begin_layout LyX-Code
25271 FileFilter "*.fig"
25272 \end_layout
25273
25274 \begin_layout LyX-Code
25275 AutomaticProduction true
25276 \end_layout
25277
25278 \begin_layout LyX-Code
25279 Transform Rotate
25280 \end_layout
25281
25282 \begin_layout LyX-Code
25283 Transform Resize
25284 \end_layout
25285
25286 \begin_layout LyX-Code
25287 Format LaTeX
25288 \end_layout
25289
25290 \begin_layout LyX-Code
25291 TransformCommand Rotate RotationLatexCommand
25292 \end_layout
25293
25294 \begin_layout LyX-Code
25295 TransformCommand Resize ResizeLatexCommand
25296 \end_layout
25297
25298 \begin_layout LyX-Code
25299 Product "$$RotateFront$$ResizeFront
25300 \end_layout
25301
25302 \begin_layout LyX-Code
25303          
25304 \backslash
25305
25306 \backslash
25307 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25308 \end_layout
25309
25310 \begin_layout LyX-Code
25311          $$ResizeBack$$RotateBack"
25312 \end_layout
25313
25314 \begin_layout LyX-Code
25315 UpdateFormat pstex
25316 \end_layout
25317
25318 \begin_layout LyX-Code
25319 UpdateResult "$$AbsPath$$Basename.pstex_t"
25320 \end_layout
25321
25322 \begin_layout LyX-Code
25323 Requirement "graphicx"
25324 \end_layout
25325
25326 \begin_layout LyX-Code
25327 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25328 \end_layout
25329
25330 \begin_layout LyX-Code
25331 ReferencedFile latex "$$AbsPath$$Basename.eps"
25332 \end_layout
25333
25334 \begin_layout LyX-Code
25335 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25336 \end_layout
25337
25338 \begin_layout LyX-Code
25339 FormatEnd
25340 \end_layout
25341
25342 \begin_layout LyX-Code
25343 Format PDFLaTeX
25344 \end_layout
25345
25346 \begin_layout LyX-Code
25347 TransformCommand Rotate RotationLatexCommand
25348 \end_layout
25349
25350 \begin_layout LyX-Code
25351 TransformCommand Resize ResizeLatexCommand
25352 \end_layout
25353
25354 \begin_layout LyX-Code
25355 Product "$$RotateFront$$ResizeFront
25356 \end_layout
25357
25358 \begin_layout LyX-Code
25359          
25360 \backslash
25361
25362 \backslash
25363 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25364 \end_layout
25365
25366 \begin_layout LyX-Code
25367          $$ResizeBack$$RotateBack"
25368 \end_layout
25369
25370 \begin_layout LyX-Code
25371 UpdateFormat pdftex
25372 \end_layout
25373
25374 \begin_layout LyX-Code
25375 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25376 \end_layout
25377
25378 \begin_layout LyX-Code
25379 Requirement "graphicx"
25380 \end_layout
25381
25382 \begin_layout LyX-Code
25383 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25384 \end_layout
25385
25386 \begin_layout LyX-Code
25387 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25388 \end_layout
25389
25390 \begin_layout LyX-Code
25391 FormatEnd
25392 \end_layout
25393
25394 \begin_layout LyX-Code
25395 Format Ascii
25396 \end_layout
25397
25398 \begin_layout LyX-Code
25399 Product "[XFig: $$FName]"
25400 \end_layout
25401
25402 \begin_layout LyX-Code
25403 FormatEnd
25404 \end_layout
25405
25406 \begin_layout LyX-Code
25407 Format DocBook
25408 \end_layout
25409
25410 \begin_layout LyX-Code
25411 Product "<graphic fileref=
25412 \backslash
25413 "$$AbsOrRelPathMaster$$Basename.eps
25414 \backslash
25415 ">
25416 \end_layout
25417
25418 \begin_layout LyX-Code
25419          </graphic>"
25420 \end_layout
25421
25422 \begin_layout LyX-Code
25423 UpdateFormat eps
25424 \end_layout
25425
25426 \begin_layout LyX-Code
25427 UpdateResult "$$AbsPath$$Basename.eps"
25428 \end_layout
25429
25430 \begin_layout LyX-Code
25431 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25432 \end_layout
25433
25434 \begin_layout LyX-Code
25435 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25436 \end_layout
25437
25438 \begin_layout LyX-Code
25439 FormatEnd
25440 \end_layout
25441
25442 \begin_layout LyX-Code
25443 TemplateEnd
25444 \end_layout
25445
25446 \begin_layout Standard
25447 As you can see, the template is enclosed in 
25448 \begin_inset Flex Code
25449 status collapsed
25450
25451 \begin_layout Plain Layout
25452 Template
25453 \end_layout
25454
25455 \end_inset
25456
25457  \SpecialChar ldots
25458  
25459 \begin_inset Flex Code
25460 status collapsed
25461
25462 \begin_layout Plain Layout
25463 TemplateEnd
25464 \end_layout
25465
25466 \end_inset
25467
25468 .
25469  It contains a header specifying some general settings and, for each supported
25470  primary document file format, a section 
25471 \begin_inset Flex Code
25472 status collapsed
25473
25474 \begin_layout Plain Layout
25475 Format
25476 \end_layout
25477
25478 \end_inset
25479
25480  \SpecialChar ldots
25481  
25482 \begin_inset Flex Code
25483 status collapsed
25484
25485 \begin_layout Plain Layout
25486 FormatEnd
25487 \end_layout
25488
25489 \end_inset
25490
25491 .
25492 \end_layout
25493
25494 \begin_layout Subsection
25495 The template header
25496 \end_layout
25497
25498 \begin_layout Description
25499 \begin_inset Flex Code
25500 status collapsed
25501
25502 \begin_layout Plain Layout
25503 AutomaticProduction
25504 \begin_inset space ~
25505 \end_inset
25506
25507 true|false
25508 \end_layout
25509
25510 \end_inset
25511
25512  Whether the file represented by the template must be generated by \SpecialChar LyX
25513 .
25514  This command must occur exactly once.
25515 \end_layout
25516
25517 \begin_layout Description
25518 \begin_inset Flex Code
25519 status collapsed
25520
25521 \begin_layout Plain Layout
25522 FileFilter
25523 \begin_inset space ~
25524 \end_inset
25525
25526 <pattern>
25527 \end_layout
25528
25529 \end_inset
25530
25531  A glob pattern that is used in the file dialog to filter out the desired
25532  files.
25533  If there is more than one possible file extension (e.
25534 \begin_inset space \thinspace{}
25535 \end_inset
25536
25537 g.
25538 \begin_inset space \space{}
25539 \end_inset
25540
25541 tgif has 
25542 \begin_inset Flex Code
25543 status collapsed
25544
25545 \begin_layout Plain Layout
25546 .obj
25547 \end_layout
25548
25549 \end_inset
25550
25551  and 
25552 \begin_inset Flex Code
25553 status collapsed
25554
25555 \begin_layout Plain Layout
25556 .tgo
25557 \end_layout
25558
25559 \end_inset
25560
25561 ), use something like 
25562 \begin_inset Flex Code
25563 status collapsed
25564
25565 \begin_layout Plain Layout
25566 "*.{obj,tgo}"
25567 \end_layout
25568
25569 \end_inset
25570
25571 .
25572  This command must occur exactly once.
25573 \end_layout
25574
25575 \begin_layout Description
25576 \begin_inset Flex Code
25577 status collapsed
25578
25579 \begin_layout Plain Layout
25580 GuiName
25581 \begin_inset space ~
25582 \end_inset
25583
25584 <guiname>
25585 \end_layout
25586
25587 \end_inset
25588
25589  The text that is displayed on the button.
25590  This command must occur exactly once.
25591 \end_layout
25592
25593 \begin_layout Description
25594 \begin_inset Flex Code
25595 status collapsed
25596
25597 \begin_layout Plain Layout
25598 HelpText
25599 \begin_inset space ~
25600 \end_inset
25601
25602 <text>
25603 \begin_inset space ~
25604 \end_inset
25605
25606 HelpTextEnd
25607 \end_layout
25608
25609 \end_inset
25610
25611  The help text that is used in the External dialog.
25612  Provide enough information to explain to the user just what the template
25613  can provide him with.
25614  This command must occur exactly once.
25615 \end_layout
25616
25617 \begin_layout Description
25618 \begin_inset Flex Code
25619 status collapsed
25620
25621 \begin_layout Plain Layout
25622 InputFormat
25623 \begin_inset space ~
25624 \end_inset
25625
25626 <format>
25627 \end_layout
25628
25629 \end_inset
25630
25631  The file format of the original file.
25632  This must be the name of a format that is known to \SpecialChar LyX
25633  (see 
25634 \begin_inset CommandInset ref
25635 LatexCommand ref
25636 reference "sec:Formats"
25637
25638 \end_inset
25639
25640 ).
25641  Use 
25642 \begin_inset Quotes eld
25643 \end_inset
25644
25645
25646 \begin_inset Flex Code
25647 status collapsed
25648
25649 \begin_layout Plain Layout
25650 *
25651 \end_layout
25652
25653 \end_inset
25654
25655
25656 \begin_inset Quotes erd
25657 \end_inset
25658
25659  if the template can handle original files of more than one format.
25660  \SpecialChar LyX
25661  will attempt to interrogate the file itself in order to deduce its format
25662  in this case.
25663  This command must occur exactly once.
25664 \end_layout
25665
25666 \begin_layout Description
25667 \begin_inset Flex Code
25668 status collapsed
25669
25670 \begin_layout Plain Layout
25671 Template
25672 \begin_inset space ~
25673 \end_inset
25674
25675 <id>
25676 \end_layout
25677
25678 \end_inset
25679
25680  A unique name for the template.
25681  It must not contain substitution macros (see below).
25682 \end_layout
25683
25684 \begin_layout Description
25685 \begin_inset Flex Code
25686 status collapsed
25687
25688 \begin_layout Plain Layout
25689 Transform
25690 \begin_inset space ~
25691 \end_inset
25692
25693 Rotate|Resize|Clip|Extra
25694 \end_layout
25695
25696 \end_inset
25697
25698  This command specifies which transformations are supported by this template.
25699  It may occur zero or more times.
25700  This command enables the corresponding tabs in the external dialog.
25701  Each 
25702 \begin_inset Flex Code
25703 status collapsed
25704
25705 \begin_layout Plain Layout
25706 Transform
25707 \end_layout
25708
25709 \end_inset
25710
25711  command must have either a corresponding 
25712 \begin_inset Flex Code
25713 status collapsed
25714
25715 \begin_layout Plain Layout
25716 TransformCommand
25717 \end_layout
25718
25719 \end_inset
25720
25721  or a 
25722 \begin_inset Flex Code
25723 status collapsed
25724
25725 \begin_layout Plain Layout
25726 TransformOption
25727 \end_layout
25728
25729 \end_inset
25730
25731  command in the 
25732 \begin_inset Flex Code
25733 status collapsed
25734
25735 \begin_layout Plain Layout
25736 Format
25737 \end_layout
25738
25739 \end_inset
25740
25741  section.
25742  Otherwise the transformation will not be supported by that format.
25743 \end_layout
25744
25745 \begin_layout Subsection
25746 The Format section
25747 \end_layout
25748
25749 \begin_layout Description
25750 \begin_inset Flex Code
25751 status collapsed
25752
25753 \begin_layout Plain Layout
25754 Format
25755 \begin_inset space ~
25756 \end_inset
25757
25758 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25759 \end_layout
25760
25761 \end_inset
25762
25763  The primary document file format that this format definition is for.
25764  Not every template has a sensible representation in all document file formats.
25765  Please define nevertheless a 
25766 \begin_inset Flex Code
25767 status collapsed
25768
25769 \begin_layout Plain Layout
25770 Format
25771 \end_layout
25772
25773 \end_inset
25774
25775  section for all templates.
25776  Use a dummy text when no representation is available.
25777  Then you can at least see a reference to the external material in the exported
25778  document.
25779 \end_layout
25780
25781 \begin_layout Description
25782 \begin_inset Flex Code
25783 status collapsed
25784
25785 \begin_layout Plain Layout
25786 Option
25787 \begin_inset space ~
25788 \end_inset
25789
25790 <name>
25791 \begin_inset space ~
25792 \end_inset
25793
25794 <value>
25795 \end_layout
25796
25797 \end_inset
25798
25799  This command defines an additional macro 
25800 \begin_inset Flex Code
25801 status collapsed
25802
25803 \begin_layout Plain Layout
25804 $$<name>
25805 \end_layout
25806
25807 \end_inset
25808
25809  for substitution in 
25810 \begin_inset Flex Code
25811 status collapsed
25812
25813 \begin_layout Plain Layout
25814 Product
25815 \end_layout
25816
25817 \end_inset
25818
25819 .
25820  
25821 \begin_inset Flex Code
25822 status collapsed
25823
25824 \begin_layout Plain Layout
25825 <value>
25826 \end_layout
25827
25828 \end_inset
25829
25830  itself may contain substitution macros.
25831  The advantage over using 
25832 \begin_inset Flex Code
25833 status collapsed
25834
25835 \begin_layout Plain Layout
25836 <value>
25837 \end_layout
25838
25839 \end_inset
25840
25841  directly in 
25842 \begin_inset Flex Code
25843 status collapsed
25844
25845 \begin_layout Plain Layout
25846 Product
25847 \end_layout
25848
25849 \end_inset
25850
25851  is that the substituted value of 
25852 \begin_inset Flex Code
25853 status collapsed
25854
25855 \begin_layout Plain Layout
25856 $$<name>
25857 \end_layout
25858
25859 \end_inset
25860
25861  is sanitized so that it is a valid optional argument in the document format.
25862  This command may occur zero or more times.
25863 \end_layout
25864
25865 \begin_layout Description
25866 \begin_inset Flex Code
25867 status collapsed
25868
25869 \begin_layout Plain Layout
25870 Product
25871 \begin_inset space ~
25872 \end_inset
25873
25874 <text>
25875 \end_layout
25876
25877 \end_inset
25878
25879  The text that is inserted in the exported document.
25880  This is actually the most important command and can be quite complex.
25881  This command must occur exactly once.
25882 \end_layout
25883
25884 \begin_layout Description
25885 \begin_inset Flex Code
25886 status collapsed
25887
25888 \begin_layout Plain Layout
25889 Preamble
25890 \begin_inset space ~
25891 \end_inset
25892
25893 <name>
25894 \end_layout
25895
25896 \end_inset
25897
25898  This command specifies a preamble snippet that will be included in the
25899  \SpecialChar LaTeX
25900  preamble.
25901  It has to be defined using 
25902 \begin_inset Flex Code
25903 status collapsed
25904
25905 \begin_layout Plain Layout
25906 PreambleDef
25907 \end_layout
25908
25909 \end_inset
25910
25911  \SpecialChar ldots
25912  
25913 \begin_inset Flex Code
25914 status collapsed
25915
25916 \begin_layout Plain Layout
25917 PreambleDefEnd
25918 \end_layout
25919
25920 \end_inset
25921
25922 .
25923  This command may occur zero or more times.
25924 \end_layout
25925
25926 \begin_layout Description
25927 \begin_inset Flex Code
25928 status collapsed
25929
25930 \begin_layout Plain Layout
25931 ReferencedFile
25932 \begin_inset space ~
25933 \end_inset
25934
25935 <format>
25936 \begin_inset space ~
25937 \end_inset
25938
25939 <filename>
25940 \end_layout
25941
25942 \end_inset
25943
25944  This command denotes files that are created by the conversion process and
25945  are needed for a particular export format.
25946  If the filename is relative, it is interpreted relative to the master document.
25947  This command may be given zero or more times.
25948 \end_layout
25949
25950 \begin_layout Description
25951 \begin_inset Flex Code
25952 status collapsed
25953
25954 \begin_layout Plain Layout
25955 Requirement
25956 \begin_inset space ~
25957 \end_inset
25958
25959 <package>
25960 \end_layout
25961
25962 \end_inset
25963
25964  The name of a required \SpecialChar LaTeX
25965  package.
25966  The package is included via 
25967 \begin_inset Flex Code
25968 status collapsed
25969
25970 \begin_layout Plain Layout
25971
25972 \backslash
25973 usepackage{}
25974 \end_layout
25975
25976 \end_inset
25977
25978  in the \SpecialChar LaTeX
25979  preamble.
25980  This command may occur zero or more times.
25981 \end_layout
25982
25983 \begin_layout Description
25984 \begin_inset Flex Code
25985 status collapsed
25986
25987 \begin_layout Plain Layout
25988 TransformCommand
25989 \begin_inset space ~
25990 \end_inset
25991
25992 Rotate
25993 \begin_inset space ~
25994 \end_inset
25995
25996 RotationLatexCommand
25997 \end_layout
25998
25999 \end_inset
26000
26001  This command specifies that the built in \SpecialChar LaTeX
26002  command should be used for rotation.
26003  This command may occur once or not at all.
26004 \end_layout
26005
26006 \begin_layout Description
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011 TransformCommand
26012 \begin_inset space ~
26013 \end_inset
26014
26015 Resize
26016 \begin_inset space ~
26017 \end_inset
26018
26019 ResizeLatexCommand
26020 \end_layout
26021
26022 \end_inset
26023
26024  This command specifies that the built in \SpecialChar LaTeX
26025  command should be used for resizing.
26026  This command may occur once or not at all.
26027 \end_layout
26028
26029 \begin_layout Description
26030 \begin_inset Flex Code
26031 status collapsed
26032
26033 \begin_layout Plain Layout
26034 TransformOption
26035 \begin_inset space ~
26036 \end_inset
26037
26038 Rotate
26039 \begin_inset space ~
26040 \end_inset
26041
26042 RotationLatexOption
26043 \end_layout
26044
26045 \end_inset
26046
26047  This command specifies that rotation is done via an optional argument.
26048  This command may occur once or not at all.
26049 \end_layout
26050
26051 \begin_layout Description
26052 \begin_inset Flex Code
26053 status collapsed
26054
26055 \begin_layout Plain Layout
26056 TransformOption
26057 \begin_inset space ~
26058 \end_inset
26059
26060 Resize
26061 \begin_inset space ~
26062 \end_inset
26063
26064 ResizeLatexOption
26065 \end_layout
26066
26067 \end_inset
26068
26069  This command specifies that resizing is done via an optional argument.
26070  This command may occur once or not at all.
26071 \end_layout
26072
26073 \begin_layout Description
26074 \begin_inset Flex Code
26075 status collapsed
26076
26077 \begin_layout Plain Layout
26078 TransformOption
26079 \begin_inset space ~
26080 \end_inset
26081
26082 Clip
26083 \begin_inset space ~
26084 \end_inset
26085
26086 ClipLatexOption
26087 \end_layout
26088
26089 \end_inset
26090
26091  This command specifies that clipping is done via an optional argument.
26092  This command may occur once or not at all.
26093 \end_layout
26094
26095 \begin_layout Description
26096 \begin_inset Flex Code
26097 status collapsed
26098
26099 \begin_layout Plain Layout
26100 TransformOption
26101 \begin_inset space ~
26102 \end_inset
26103
26104 Extra
26105 \begin_inset space ~
26106 \end_inset
26107
26108 ExtraLatexOption
26109 \end_layout
26110
26111 \end_inset
26112
26113  This command specifies that an extra optional argument is used.
26114  This command may occur once or not at all.
26115 \end_layout
26116
26117 \begin_layout Description
26118 \begin_inset Flex Code
26119 status collapsed
26120
26121 \begin_layout Plain Layout
26122 UpdateFormat
26123 \begin_inset space ~
26124 \end_inset
26125
26126 <format>
26127 \end_layout
26128
26129 \end_inset
26130
26131  The file format of the converted file.
26132  This must be the name of a format that is known to \SpecialChar LyX
26133  (see the 
26134 \begin_inset Flex Noun
26135 status collapsed
26136
26137 \begin_layout Plain Layout
26138 Tools\SpecialChar menuseparator
26139 Preferences\SpecialChar menuseparator
26140 File Handling\SpecialChar menuseparator
26141 File Format
26142 \end_layout
26143
26144 \end_inset
26145
26146  dialog).
26147  This command must occur exactly once.
26148  If the resulting file format is PDF, you need to specify the format 
26149 \begin_inset Flex Code
26150 status collapsed
26151
26152 \begin_layout Plain Layout
26153 pdf6
26154 \end_layout
26155
26156 \end_inset
26157
26158 .
26159  This is the PDF format used for including graphics.
26160  The other defined PDF formats are for document export.
26161 \end_layout
26162
26163 \begin_layout Description
26164 \begin_inset Flex Code
26165 status collapsed
26166
26167 \begin_layout Plain Layout
26168 UpdateResult
26169 \begin_inset space ~
26170 \end_inset
26171
26172 <filename>
26173 \end_layout
26174
26175 \end_inset
26176
26177  The file name of the converted file.
26178  The file name must be absolute.
26179  This command must occur exactly once.
26180 \end_layout
26181
26182 \begin_layout Subsection
26183 Preamble definitions
26184 \end_layout
26185
26186 \begin_layout Standard
26187 The external template configuration file may contain additional preamble
26188  definitions enclosed by 
26189 \begin_inset Flex Code
26190 status collapsed
26191
26192 \begin_layout Plain Layout
26193 PreambleDef
26194 \end_layout
26195
26196 \end_inset
26197
26198  \SpecialChar ldots
26199  
26200 \begin_inset Flex Code
26201 status collapsed
26202
26203 \begin_layout Plain Layout
26204 PreambleDefEnd
26205 \end_layout
26206
26207 \end_inset
26208
26209 .
26210  They can be used by the templates in the 
26211 \begin_inset Flex Code
26212 status collapsed
26213
26214 \begin_layout Plain Layout
26215 Format
26216 \end_layout
26217
26218 \end_inset
26219
26220  section.
26221 \end_layout
26222
26223 \begin_layout Section
26224 The substitution mechanism
26225 \end_layout
26226
26227 \begin_layout Standard
26228 When the external material facility invokes an external program, it is done
26229  on the basis of a command defined in the template configuration file.
26230  These commands can contain various macros that are expanded before execution.
26231  Execution always take place in the directory of the containing document.
26232 \end_layout
26233
26234 \begin_layout Standard
26235 Also, whenever external material is to be displayed, the name will be produced
26236  by the substitution mechanism, and most other commands in the template
26237  definition support substitution as well.
26238 \end_layout
26239
26240 \begin_layout Standard
26241 The available macros are the following:
26242 \end_layout
26243
26244 \begin_layout Description
26245 \begin_inset Flex Code
26246 status collapsed
26247
26248 \begin_layout Plain Layout
26249 $$AbsOrRelPathMaster
26250 \end_layout
26251
26252 \end_inset
26253
26254  The file path, absolute or relative to the master \SpecialChar LyX
26255  document.
26256 \end_layout
26257
26258 \begin_layout Description
26259 \begin_inset Flex Code
26260 status collapsed
26261
26262 \begin_layout Plain Layout
26263 $$AbsOrRelPathParent
26264 \end_layout
26265
26266 \end_inset
26267
26268  The file path, absolute or relative to the \SpecialChar LyX
26269  document.
26270 \end_layout
26271
26272 \begin_layout Description
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 $$AbsPath
26278 \end_layout
26279
26280 \end_inset
26281
26282  The absolute file path.
26283 \end_layout
26284
26285 \begin_layout Description
26286 \begin_inset Flex Code
26287 status collapsed
26288
26289 \begin_layout Plain Layout
26290 $$Basename
26291 \end_layout
26292
26293 \end_inset
26294
26295  The filename without path and without the extension.
26296 \end_layout
26297
26298 \begin_layout Description
26299 \begin_inset Flex Code
26300 status collapsed
26301
26302 \begin_layout Plain Layout
26303 $$Contents(
26304 \begin_inset Quotes eld
26305 \end_inset
26306
26307 filename.ext
26308 \begin_inset Quotes erd
26309 \end_inset
26310
26311 )
26312 \end_layout
26313
26314 \end_inset
26315
26316  This macro will expand to the contents of the file with the name 
26317 \begin_inset Flex Code
26318 status collapsed
26319
26320 \begin_layout Plain Layout
26321 filename.ext
26322 \end_layout
26323
26324 \end_inset
26325
26326 .
26327 \end_layout
26328
26329 \begin_layout Description
26330 \begin_inset Flex Code
26331 status collapsed
26332
26333 \begin_layout Plain Layout
26334 $$Extension
26335 \end_layout
26336
26337 \end_inset
26338
26339  The file extension (including the dot).
26340 \end_layout
26341
26342 \begin_layout Description
26343 \begin_inset Flex Code
26344 status collapsed
26345
26346 \begin_layout Plain Layout
26347 $$pngOrjpg
26348 \end_layout
26349
26350 \end_inset
26351
26352  This will be the string 
26353 \begin_inset Quotes eld
26354 \end_inset
26355
26356 jpg
26357 \begin_inset Quotes erd
26358 \end_inset
26359
26360  if the file is in JPEG format, otherwise it will be the string 
26361 \begin_inset Quotes eld
26362 \end_inset
26363
26364 png
26365 \begin_inset Quotes erd
26366 \end_inset
26367
26368 .
26369  This is useful to avoid uneeded conversions for output formats that support
26370  both PNG and JPEG fomats.
26371  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26372  output
26373  format.
26374 \end_layout
26375
26376 \begin_layout Description
26377 \begin_inset Flex Code
26378 status collapsed
26379
26380 \begin_layout Plain Layout
26381 $$FName
26382 \end_layout
26383
26384 \end_inset
26385
26386  The filename of the file specified in the external material dialog.
26387  This is either an absolute name, or it is relative to the \SpecialChar LyX
26388  document.
26389 \end_layout
26390
26391 \begin_layout Description
26392 \begin_inset Flex Code
26393 status collapsed
26394
26395 \begin_layout Plain Layout
26396 $$FPath
26397 \end_layout
26398
26399 \end_inset
26400
26401  The path part of 
26402 \begin_inset Flex Code
26403 status collapsed
26404
26405 \begin_layout Plain Layout
26406 $$FName
26407 \end_layout
26408
26409 \end_inset
26410
26411  (absolute name or relative to the \SpecialChar LyX
26412  document).
26413 \end_layout
26414
26415 \begin_layout Description
26416 \begin_inset Flex Code
26417 status collapsed
26418
26419 \begin_layout Plain Layout
26420 $$RelPathMaster
26421 \end_layout
26422
26423 \end_inset
26424
26425  The file path, relative to the master \SpecialChar LyX
26426  document.
26427 \end_layout
26428
26429 \begin_layout Description
26430 \begin_inset Flex Code
26431 status collapsed
26432
26433 \begin_layout Plain Layout
26434 $$RelPathParent
26435 \end_layout
26436
26437 \end_inset
26438
26439  The file path, relative to the \SpecialChar LyX
26440  document.
26441 \end_layout
26442
26443 \begin_layout Description
26444 \begin_inset Flex Code
26445 status collapsed
26446
26447 \begin_layout Plain Layout
26448 $$Sysdir
26449 \end_layout
26450
26451 \end_inset
26452
26453  This macro will expand to the absolute path of the system directory.
26454  This is typically used to point to the various helper scripts that are
26455  bundled with \SpecialChar LyX
26456 .
26457 \end_layout
26458
26459 \begin_layout Description
26460 \begin_inset Flex Code
26461 status collapsed
26462
26463 \begin_layout Plain Layout
26464 $$Tempname
26465 \end_layout
26466
26467 \end_inset
26468
26469  A name and full path to a temporary file which will be automatically deleted
26470  whenever the containing document is closed, or the external material insertion
26471  deleted.
26472 \end_layout
26473
26474 \begin_layout Standard
26475 All path macros contain a trailing directory separator, so you can construct
26476  e.
26477 \begin_inset space \thinspace{}
26478 \end_inset
26479
26480 g.
26481 \begin_inset space \space{}
26482 \end_inset
26483
26484 the absolute filename with 
26485 \begin_inset Flex Code
26486 status collapsed
26487
26488 \begin_layout Plain Layout
26489 $$AbsPath$$Basename$$Extension
26490 \end_layout
26491
26492 \end_inset
26493
26494 .
26495 \end_layout
26496
26497 \begin_layout Standard
26498 The macros above are substituted in all commands unless otherwise noted.
26499  The command 
26500 \begin_inset Flex Code
26501 status collapsed
26502
26503 \begin_layout Plain Layout
26504 Product
26505 \end_layout
26506
26507 \end_inset
26508
26509  supports additionally the following substitutions if they are enabled by
26510  the 
26511 \begin_inset Flex Code
26512 status collapsed
26513
26514 \begin_layout Plain Layout
26515 Transform
26516 \end_layout
26517
26518 \end_inset
26519
26520  and 
26521 \begin_inset Flex Code
26522 status collapsed
26523
26524 \begin_layout Plain Layout
26525 TransformCommand
26526 \end_layout
26527
26528 \end_inset
26529
26530  commands:
26531 \end_layout
26532
26533 \begin_layout Description
26534 \begin_inset Flex Code
26535 status collapsed
26536
26537 \begin_layout Plain Layout
26538 $$ResizeFront
26539 \end_layout
26540
26541 \end_inset
26542
26543  The front part of the resize command.
26544 \end_layout
26545
26546 \begin_layout Description
26547 \begin_inset Flex Code
26548 status collapsed
26549
26550 \begin_layout Plain Layout
26551 $$ResizeBack
26552 \end_layout
26553
26554 \end_inset
26555
26556  The back part of the resize command.
26557 \end_layout
26558
26559 \begin_layout Description
26560 \begin_inset Flex Code
26561 status collapsed
26562
26563 \begin_layout Plain Layout
26564 $$RotateFront
26565 \end_layout
26566
26567 \end_inset
26568
26569  The front part of the rotation command.
26570 \end_layout
26571
26572 \begin_layout Description
26573 \begin_inset Flex Code
26574 status collapsed
26575
26576 \begin_layout Plain Layout
26577 $$RotateBack
26578 \end_layout
26579
26580 \end_inset
26581
26582  The back part of the rotation command.
26583 \end_layout
26584
26585 \begin_layout Standard
26586 The value string of the 
26587 \begin_inset Flex Code
26588 status collapsed
26589
26590 \begin_layout Plain Layout
26591 Option
26592 \end_layout
26593
26594 \end_inset
26595
26596  command supports additionally the following substitutions if they are enabled
26597  by the 
26598 \begin_inset Flex Code
26599 status collapsed
26600
26601 \begin_layout Plain Layout
26602 Transform
26603 \end_layout
26604
26605 \end_inset
26606
26607  and 
26608 \begin_inset Flex Code
26609 status collapsed
26610
26611 \begin_layout Plain Layout
26612 TransformOption
26613 \end_layout
26614
26615 \end_inset
26616
26617  commands:
26618 \end_layout
26619
26620 \begin_layout Description
26621 \begin_inset Flex Code
26622 status collapsed
26623
26624 \begin_layout Plain Layout
26625 $$Clip
26626 \end_layout
26627
26628 \end_inset
26629
26630  The clip option.
26631 \end_layout
26632
26633 \begin_layout Description
26634 \begin_inset Flex Code
26635 status collapsed
26636
26637 \begin_layout Plain Layout
26638 $$Extra
26639 \end_layout
26640
26641 \end_inset
26642
26643  The extra option.
26644 \end_layout
26645
26646 \begin_layout Description
26647 \begin_inset Flex Code
26648 status collapsed
26649
26650 \begin_layout Plain Layout
26651 $$Resize
26652 \end_layout
26653
26654 \end_inset
26655
26656  The resize option.
26657 \end_layout
26658
26659 \begin_layout Description
26660 \begin_inset Flex Code
26661 status collapsed
26662
26663 \begin_layout Plain Layout
26664 $$Rotate
26665 \end_layout
26666
26667 \end_inset
26668
26669  The rotation option.
26670 \end_layout
26671
26672 \begin_layout Standard
26673 You may ask why there are so many path macros.
26674  There are mainly two reasons:
26675 \end_layout
26676
26677 \begin_layout Enumerate
26678 Relative and absolute file names should remain relative or absolute, respectivel
26679 y.
26680  Users may have reasons to prefer either form.
26681  Relative names are useful for portable documents that should work on different
26682  machines, for example.
26683  Absolute names may be required by some programs.
26684 \end_layout
26685
26686 \begin_layout Enumerate
26687 \SpecialChar LaTeX
26688  treats relative file names differently than \SpecialChar LyX
26689  and other programs in nested
26690  included files.
26691  For \SpecialChar LyX
26692 , a relative file name is always relative to the document that contains
26693  the file name.
26694  For \SpecialChar LaTeX
26695 , it is always relative to the master document.
26696  These two definitions are identical if you have only one document, but
26697  differ if you have a master document that includes part documents.
26698  That means that relative filenames must be transformed when presented to
26699  \SpecialChar LaTeX
26700 .
26701  Fortunately \SpecialChar LyX
26702  does this automatically for you if you choose the right macros.
26703 \end_layout
26704
26705 \begin_layout Standard
26706 So which path macro should be used in new template definitions? The rule
26707  is not difficult:
26708 \end_layout
26709
26710 \begin_layout Itemize
26711 Use 
26712 \begin_inset Flex Code
26713 status collapsed
26714
26715 \begin_layout Plain Layout
26716 $$AbsPath
26717 \end_layout
26718
26719 \end_inset
26720
26721  if an absolute path is required.
26722 \end_layout
26723
26724 \begin_layout Itemize
26725 Use 
26726 \begin_inset Flex Code
26727 status collapsed
26728
26729 \begin_layout Plain Layout
26730 $$AbsOrRelPathMaster
26731 \end_layout
26732
26733 \end_inset
26734
26735  if the substituted string is some kind of \SpecialChar LaTeX
26736  input.
26737 \end_layout
26738
26739 \begin_layout Itemize
26740 Else use 
26741 \begin_inset Flex Code
26742 status collapsed
26743
26744 \begin_layout Plain Layout
26745 $$AbsOrRelPathParent
26746 \end_layout
26747
26748 \end_inset
26749
26750  in order to preserve the user's choice.
26751 \end_layout
26752
26753 \begin_layout Standard
26754 There are special cases where this rule does not work and e.
26755 \begin_inset space \thinspace{}
26756 \end_inset
26757
26758 g.
26759 \begin_inset space \space{}
26760 \end_inset
26761
26762 relative names are needed, but normally it will work just fine.
26763  One example for such a case is the command 
26764 \begin_inset Flex Code
26765 status collapsed
26766
26767 \begin_layout Plain Layout
26768 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26769 \end_layout
26770
26771 \end_inset
26772
26773  in the XFig template above: We can't use the absolute name because the
26774  copier for 
26775 \begin_inset Flex Code
26776 status collapsed
26777
26778 \begin_layout Plain Layout
26779 .pstex_t
26780 \end_layout
26781
26782 \end_inset
26783
26784  files needs the relative name in order to rewrite the file content.
26785 \end_layout
26786
26787 \begin_layout Section
26788 Security discussion
26789 \begin_inset CommandInset label
26790 LatexCommand label
26791 name "sec:Security-discussion"
26792
26793 \end_inset
26794
26795
26796 \end_layout
26797
26798 \begin_layout Standard
26799 The external material feature interfaces with a lot of external programs
26800  and does so automatically, so we have to consider the security implications
26801  of this.
26802  In particular, since you have the option of including your own filenames
26803  and/or parameter strings and those are expanded into a command, it seems
26804  that it would be possible to create a malicious document which executes
26805  arbitrary commands when a user views or prints the document.
26806  This is something we definitely want to avoid.
26807 \end_layout
26808
26809 \begin_layout Standard
26810 However, since the external program commands are specified in the template
26811  configuration file only, there are no security issues if \SpecialChar LyX
26812  is properly configure
26813 d with safe templates only.
26814  This is so because the external programs are invoked with the 
26815 \begin_inset Flex Code
26816 status collapsed
26817
26818 \begin_layout Plain Layout
26819 execvp
26820 \end_layout
26821
26822 \end_inset
26823
26824 -system call rather than the 
26825 \begin_inset Flex Code
26826 status collapsed
26827
26828 \begin_layout Plain Layout
26829 system
26830 \end_layout
26831
26832 \end_inset
26833
26834  system-call, so it's not possible to execute arbitrary commands from the
26835  filename or parameter section via the shell.
26836 \end_layout
26837
26838 \begin_layout Standard
26839 This also implies that you are restricted in what command strings you can
26840  use in the external material templates.
26841  In particular, pipes and redirection are not readily available.
26842  This has to be so if \SpecialChar LyX
26843  should remain safe.
26844  If you want to use some of the shell features, you should write a safe
26845  script to do this in a controlled manner, and then invoke the script from
26846  the command string.
26847  
26848 \end_layout
26849
26850 \begin_layout Standard
26851 It is possible to design a template that interacts directly with the shell,
26852  but since this would allow a malicious user to execute arbitrary commands
26853  by writing clever filenames and/or parameters, we generally recommend that
26854  you only use safe scripts that work with the 
26855 \begin_inset Flex Code
26856 status collapsed
26857
26858 \begin_layout Plain Layout
26859 execvp
26860 \end_layout
26861
26862 \end_inset
26863
26864  system call in a controlled manner.
26865  Of course, for use in a controlled environment, it can be tempting to just
26866  fall back to use ordinary shell scripts.
26867  If you do so, be aware that you 
26868 \emph on
26869 will
26870 \emph default
26871  provide an easily exploitable security hole in your system.
26872  Of course it stands to reason that such unsafe templates will never be
26873  included in the standard \SpecialChar LyX
26874  distribution, although we do encourage people
26875  to submit new templates in the open source tradition.
26876  But \SpecialChar LyX
26877  as shipped from the official distribution channels will never have
26878  unsafe templates.
26879 \end_layout
26880
26881 \begin_layout Standard
26882 Including external material provides a lot of power, and you have to be
26883  careful not to introduce security hazards with this power.
26884  A subtle error in a single line in an innocent looking script can open
26885  the door to huge security problems.
26886  So if you do not fully understand the issues, we recommend that you consult
26887  a knowledgeable security professional or the \SpecialChar LyX
26888  development team if you have
26889  any questions about whether a given template is safe or not.
26890  And do this before you use it in an uncontrolled environment.
26891 \end_layout
26892
26893 \begin_layout Chapter
26894 \start_of_appendix
26895 List of supported \SpecialChar LyX
26896  functions to be used in layouts
26897 \begin_inset CommandInset label
26898 LatexCommand label
26899 name "chap:List-of-functions"
26900
26901 \end_inset
26902
26903
26904 \end_layout
26905
26906 \begin_layout Standard
26907 \align center
26908 \begin_inset Tabular
26909 <lyxtabular version="3" rows="11" columns="8">
26910 <features tabularvalignment="middle">
26911 <column alignment="left" valignment="top">
26912 <column alignment="left" valignment="top">
26913 <column alignment="left" valignment="top">
26914 <column alignment="left" valignment="top">
26915 <column alignment="left" valignment="top">
26916 <column alignment="left" valignment="top">
26917 <column alignment="left" valignment="top">
26918 <column alignment="left" valignment="top">
26919 <row>
26920 <cell alignment="left" valignment="top" usebox="none">
26921 \begin_inset Text
26922
26923 \begin_layout Plain Layout
26924 accents
26925 \end_layout
26926
26927 \end_inset
26928 </cell>
26929 <cell alignment="left" valignment="top" usebox="none">
26930 \begin_inset Text
26931
26932 \begin_layout Plain Layout
26933 booktabs
26934 \end_layout
26935
26936 \end_inset
26937 </cell>
26938 <cell alignment="left" valignment="top" usebox="none">
26939 \begin_inset Text
26940
26941 \begin_layout Plain Layout
26942 feyn
26943 \end_layout
26944
26945 \end_inset
26946 </cell>
26947 <cell alignment="left" valignment="top" usebox="none">
26948 \begin_inset Text
26949
26950 \begin_layout Plain Layout
26951 listings
26952 \end_layout
26953
26954 \end_inset
26955 </cell>
26956 <cell alignment="center" valignment="top" usebox="none">
26957 \begin_inset Text
26958
26959 \begin_layout Plain Layout
26960 natbib
26961 \end_layout
26962
26963 \end_inset
26964 </cell>
26965 <cell alignment="center" valignment="top" usebox="none">
26966 \begin_inset Text
26967
26968 \begin_layout Plain Layout
26969 rotfloat
26970 \end_layout
26971
26972 \end_inset
26973 </cell>
26974 <cell alignment="center" valignment="top" usebox="none">
26975 \begin_inset Text
26976
26977 \begin_layout Plain Layout
26978 tfrupee
26979 \end_layout
26980
26981 \end_inset
26982 </cell>
26983 <cell alignment="center" valignment="top" usebox="none">
26984 \begin_inset Text
26985
26986 \begin_layout Plain Layout
26987 wasysym
26988 \end_layout
26989
26990 \end_inset
26991 </cell>
26992 </row>
26993 <row>
26994 <cell alignment="left" valignment="top" usebox="none">
26995 \begin_inset Text
26996
26997 \begin_layout Plain Layout
26998 amsbsy
26999 \end_layout
27000
27001 \end_inset
27002 </cell>
27003 <cell alignment="left" valignment="top" usebox="none">
27004 \begin_inset Text
27005
27006 \begin_layout Plain Layout
27007 calc
27008 \end_layout
27009
27010 \end_inset
27011 </cell>
27012 <cell alignment="left" valignment="top" usebox="none">
27013 \begin_inset Text
27014
27015 \begin_layout Plain Layout
27016 fixltx2e
27017 \end_layout
27018
27019 \end_inset
27020 </cell>
27021 <cell alignment="left" valignment="top" usebox="none">
27022 \begin_inset Text
27023
27024 \begin_layout Plain Layout
27025 longtable
27026 \end_layout
27027
27028 \end_inset
27029 </cell>
27030 <cell alignment="center" valignment="top" usebox="none">
27031 \begin_inset Text
27032
27033 \begin_layout Plain Layout
27034 nomencl
27035 \end_layout
27036
27037 \end_inset
27038 </cell>
27039 <cell alignment="center" valignment="top" usebox="none">
27040 \begin_inset Text
27041
27042 \begin_layout Plain Layout
27043 rsphrase
27044 \end_layout
27045
27046 \end_inset
27047 </cell>
27048 <cell alignment="center" valignment="top" usebox="none">
27049 \begin_inset Text
27050
27051 \begin_layout Plain Layout
27052 tipa
27053 \end_layout
27054
27055 \end_inset
27056 </cell>
27057 <cell alignment="center" valignment="top" usebox="none">
27058 \begin_inset Text
27059
27060 \begin_layout Plain Layout
27061 wrapfig
27062 \end_layout
27063
27064 \end_inset
27065 </cell>
27066 </row>
27067 <row>
27068 <cell alignment="left" valignment="top" usebox="none">
27069 \begin_inset Text
27070
27071 \begin_layout Plain Layout
27072 amscd
27073 \end_layout
27074
27075 \end_inset
27076 </cell>
27077 <cell alignment="left" valignment="top" usebox="none">
27078 \begin_inset Text
27079
27080 \begin_layout Plain Layout
27081 CJK
27082 \end_layout
27083
27084 \end_inset
27085 </cell>
27086 <cell alignment="left" valignment="top" usebox="none">
27087 \begin_inset Text
27088
27089 \begin_layout Plain Layout
27090 float
27091 \end_layout
27092
27093 \end_inset
27094 </cell>
27095 <cell alignment="left" valignment="top" usebox="none">
27096 \begin_inset Text
27097
27098 \begin_layout Plain Layout
27099 lyxskak
27100 \end_layout
27101
27102 \end_inset
27103 </cell>
27104 <cell alignment="center" valignment="top" usebox="none">
27105 \begin_inset Text
27106
27107 \begin_layout Plain Layout
27108 pdfcolmk
27109 \end_layout
27110
27111 \end_inset
27112 </cell>
27113 <cell alignment="center" valignment="top" usebox="none">
27114 \begin_inset Text
27115
27116 \begin_layout Plain Layout
27117 setspace
27118 \end_layout
27119
27120 \end_inset
27121 </cell>
27122 <cell alignment="center" valignment="top" usebox="none">
27123 \begin_inset Text
27124
27125 \begin_layout Plain Layout
27126 tipx
27127 \end_layout
27128
27129 \end_inset
27130 </cell>
27131 <cell alignment="center" valignment="top" usebox="none">
27132 \begin_inset Text
27133
27134 \begin_layout Plain Layout
27135 xargs
27136 \end_layout
27137
27138 \end_inset
27139 </cell>
27140 </row>
27141 <row>
27142 <cell alignment="left" valignment="top" usebox="none">
27143 \begin_inset Text
27144
27145 \begin_layout Plain Layout
27146 amsmath
27147 \end_layout
27148
27149 \end_inset
27150 </cell>
27151 <cell alignment="left" valignment="top" usebox="none">
27152 \begin_inset Text
27153
27154 \begin_layout Plain Layout
27155 color
27156 \end_layout
27157
27158 \end_inset
27159 </cell>
27160 <cell alignment="left" valignment="top" usebox="none">
27161 \begin_inset Text
27162
27163 \begin_layout Plain Layout
27164 framed
27165 \end_layout
27166
27167 \end_inset
27168 </cell>
27169 <cell alignment="left" valignment="top" usebox="none">
27170 \begin_inset Text
27171
27172 \begin_layout Plain Layout
27173 makeidx
27174 \end_layout
27175
27176 \end_inset
27177 </cell>
27178 <cell alignment="center" valignment="top" usebox="none">
27179 \begin_inset Text
27180
27181 \begin_layout Plain Layout
27182 pdfpages
27183 \end_layout
27184
27185 \end_inset
27186 </cell>
27187 <cell alignment="center" valignment="top" usebox="none">
27188 \begin_inset Text
27189
27190 \begin_layout Plain Layout
27191 shapepar
27192 \end_layout
27193
27194 \end_inset
27195 </cell>
27196 <cell alignment="center" valignment="top" usebox="none">
27197 \begin_inset Text
27198
27199 \begin_layout Plain Layout
27200 tone
27201 \end_layout
27202
27203 \end_inset
27204 </cell>
27205 <cell alignment="center" valignment="top" usebox="none">
27206 \begin_inset Text
27207
27208 \begin_layout Plain Layout
27209 xcolor
27210 \end_layout
27211
27212 \end_inset
27213 </cell>
27214 </row>
27215 <row>
27216 <cell alignment="left" valignment="top" usebox="none">
27217 \begin_inset Text
27218
27219 \begin_layout Plain Layout
27220 amssymb
27221 \end_layout
27222
27223 \end_inset
27224 </cell>
27225 <cell alignment="left" valignment="top" usebox="none">
27226 \begin_inset Text
27227
27228 \begin_layout Plain Layout
27229 covington
27230 \end_layout
27231
27232 \end_inset
27233 </cell>
27234 <cell alignment="left" valignment="top" usebox="none">
27235 \begin_inset Text
27236
27237 \begin_layout Plain Layout
27238 graphicx
27239 \end_layout
27240
27241 \end_inset
27242 </cell>
27243 <cell alignment="left" valignment="top" usebox="none">
27244 \begin_inset Text
27245
27246 \begin_layout Plain Layout
27247 marvosym
27248 \end_layout
27249
27250 \end_inset
27251 </cell>
27252 <cell alignment="center" valignment="top" usebox="none">
27253 \begin_inset Text
27254
27255 \begin_layout Plain Layout
27256 pifont
27257 \end_layout
27258
27259 \end_inset
27260 </cell>
27261 <cell alignment="center" valignment="top" usebox="none">
27262 \begin_inset Text
27263
27264 \begin_layout Plain Layout
27265 slashed
27266 \end_layout
27267
27268 \end_inset
27269 </cell>
27270 <cell alignment="center" valignment="top" usebox="none">
27271 \begin_inset Text
27272
27273 \begin_layout Plain Layout
27274 txfonts
27275 \end_layout
27276
27277 \end_inset
27278 </cell>
27279 <cell alignment="center" valignment="top" usebox="none">
27280 \begin_inset Text
27281
27282 \begin_layout Plain Layout
27283 xy
27284 \end_layout
27285
27286 \end_inset
27287 </cell>
27288 </row>
27289 <row>
27290 <cell alignment="left" valignment="top" usebox="none">
27291 \begin_inset Text
27292
27293 \begin_layout Plain Layout
27294 amstext
27295 \end_layout
27296
27297 \end_inset
27298 </cell>
27299 <cell alignment="left" valignment="top" usebox="none">
27300 \begin_inset Text
27301
27302 \begin_layout Plain Layout
27303 csquotes
27304 \end_layout
27305
27306 \end_inset
27307 </cell>
27308 <cell alignment="left" valignment="top" usebox="none">
27309 \begin_inset Text
27310
27311 \begin_layout Plain Layout
27312 hhline
27313 \end_layout
27314
27315 \end_inset
27316 </cell>
27317 <cell alignment="left" valignment="top" usebox="none">
27318 \begin_inset Text
27319
27320 \begin_layout Plain Layout
27321 mathdesign
27322 \end_layout
27323
27324 \end_inset
27325 </cell>
27326 <cell alignment="center" valignment="top" usebox="none">
27327 \begin_inset Text
27328
27329 \begin_layout Plain Layout
27330 pmboxdraw
27331 \end_layout
27332
27333 \end_inset
27334 </cell>
27335 <cell alignment="center" valignment="top" usebox="none">
27336 \begin_inset Text
27337
27338 \begin_layout Plain Layout
27339 soul
27340 \end_layout
27341
27342 \end_inset
27343 </cell>
27344 <cell alignment="center" valignment="top" usebox="none">
27345 \begin_inset Text
27346
27347 \begin_layout Plain Layout
27348 ulem
27349 \end_layout
27350
27351 \end_inset
27352 </cell>
27353 <cell alignment="center" valignment="top" usebox="none">
27354 \begin_inset Text
27355
27356 \begin_layout Plain Layout
27357 yhmath
27358 \end_layout
27359
27360 \end_inset
27361 </cell>
27362 </row>
27363 <row>
27364 <cell alignment="left" valignment="top" usebox="none">
27365 \begin_inset Text
27366
27367 \begin_layout Plain Layout
27368 amsthm
27369 \end_layout
27370
27371 \end_inset
27372 </cell>
27373 <cell alignment="left" valignment="top" usebox="none">
27374 \begin_inset Text
27375
27376 \begin_layout Plain Layout
27377 dvipost
27378 \end_layout
27379
27380 \end_inset
27381 </cell>
27382 <cell alignment="left" valignment="top" usebox="none">
27383 \begin_inset Text
27384
27385 \begin_layout Plain Layout
27386 hyperref
27387 \end_layout
27388
27389 \end_inset
27390 </cell>
27391 <cell alignment="left" valignment="top" usebox="none">
27392 \begin_inset Text
27393
27394 \begin_layout Plain Layout
27395 mathdots
27396 \end_layout
27397
27398 \end_inset
27399 </cell>
27400 <cell alignment="center" valignment="top" usebox="none">
27401 \begin_inset Text
27402
27403 \begin_layout Plain Layout
27404 polyglossia
27405 \end_layout
27406
27407 \end_inset
27408 </cell>
27409 <cell alignment="center" valignment="top" usebox="none">
27410 \begin_inset Text
27411
27412 \begin_layout Plain Layout
27413 splitidx
27414 \end_layout
27415
27416 \end_inset
27417 </cell>
27418 <cell alignment="center" valignment="top" usebox="none">
27419 \begin_inset Text
27420
27421 \begin_layout Plain Layout
27422 undertilde
27423 \end_layout
27424
27425 \end_inset
27426 </cell>
27427 <cell alignment="center" valignment="top" usebox="none">
27428 \begin_inset Text
27429
27430 \begin_layout Plain Layout
27431
27432 \end_layout
27433
27434 \end_inset
27435 </cell>
27436 </row>
27437 <row>
27438 <cell alignment="left" valignment="top" usebox="none">
27439 \begin_inset Text
27440
27441 \begin_layout Plain Layout
27442 array
27443 \end_layout
27444
27445 \end_inset
27446 </cell>
27447 <cell alignment="left" valignment="top" usebox="none">
27448 \begin_inset Text
27449
27450 \begin_layout Plain Layout
27451 endnotes
27452 \end_layout
27453
27454 \end_inset
27455 </cell>
27456 <cell alignment="left" valignment="top" usebox="none">
27457 \begin_inset Text
27458
27459 \begin_layout Plain Layout
27460 ifsym
27461 \end_layout
27462
27463 \end_inset
27464 </cell>
27465 <cell alignment="left" valignment="top" usebox="none">
27466 \begin_inset Text
27467
27468 \begin_layout Plain Layout
27469 mathrsfs
27470 \end_layout
27471
27472 \end_inset
27473 </cell>
27474 <cell alignment="center" valignment="top" usebox="none">
27475 \begin_inset Text
27476
27477 \begin_layout Plain Layout
27478 prettyref
27479 \end_layout
27480
27481 \end_inset
27482 </cell>
27483 <cell alignment="center" valignment="top" usebox="none">
27484 \begin_inset Text
27485
27486 \begin_layout Plain Layout
27487 subfig
27488 \end_layout
27489
27490 \end_inset
27491 </cell>
27492 <cell alignment="center" valignment="top" usebox="none">
27493 \begin_inset Text
27494
27495 \begin_layout Plain Layout
27496 units
27497 \end_layout
27498
27499 \end_inset
27500 </cell>
27501 <cell alignment="center" valignment="top" usebox="none">
27502 \begin_inset Text
27503
27504 \begin_layout Plain Layout
27505
27506 \end_layout
27507
27508 \end_inset
27509 </cell>
27510 </row>
27511 <row>
27512 <cell alignment="left" valignment="top" usebox="none">
27513 \begin_inset Text
27514
27515 \begin_layout Plain Layout
27516 ascii
27517 \end_layout
27518
27519 \end_inset
27520 </cell>
27521 <cell alignment="left" valignment="top" usebox="none">
27522 \begin_inset Text
27523
27524 \begin_layout Plain Layout
27525 enumitem
27526 \end_layout
27527
27528 \end_inset
27529 </cell>
27530 <cell alignment="left" valignment="top" usebox="none">
27531 \begin_inset Text
27532
27533 \begin_layout Plain Layout
27534 ifthen
27535 \end_layout
27536
27537 \end_inset
27538 </cell>
27539 <cell alignment="left" valignment="top" usebox="none">
27540 \begin_inset Text
27541
27542 \begin_layout Plain Layout
27543 mhchem
27544 \end_layout
27545
27546 \end_inset
27547 </cell>
27548 <cell alignment="center" valignment="top" usebox="none">
27549 \begin_inset Text
27550
27551 \begin_layout Plain Layout
27552 pxfonts
27553 \end_layout
27554
27555 \end_inset
27556 </cell>
27557 <cell alignment="center" valignment="top" usebox="none">
27558 \begin_inset Text
27559
27560 \begin_layout Plain Layout
27561 subscript
27562 \end_layout
27563
27564 \end_inset
27565 </cell>
27566 <cell alignment="center" valignment="top" usebox="none">
27567 \begin_inset Text
27568
27569 \begin_layout Plain Layout
27570 url
27571 \end_layout
27572
27573 \end_inset
27574 </cell>
27575 <cell alignment="center" valignment="top" usebox="none">
27576 \begin_inset Text
27577
27578 \begin_layout Plain Layout
27579
27580 \end_layout
27581
27582 \end_inset
27583 </cell>
27584 </row>
27585 <row>
27586 <cell alignment="left" valignment="top" usebox="none">
27587 \begin_inset Text
27588
27589 \begin_layout Plain Layout
27590 bbding
27591 \end_layout
27592
27593 \end_inset
27594 </cell>
27595 <cell alignment="left" valignment="top" usebox="none">
27596 \begin_inset Text
27597
27598 \begin_layout Plain Layout
27599 esint
27600 \end_layout
27601
27602 \end_inset
27603 </cell>
27604 <cell alignment="left" valignment="top" usebox="none">
27605 \begin_inset Text
27606
27607 \begin_layout Plain Layout
27608 jurabib
27609 \end_layout
27610
27611 \end_inset
27612 </cell>
27613 <cell alignment="left" valignment="top" usebox="none">
27614 \begin_inset Text
27615
27616 \begin_layout Plain Layout
27617 multicol
27618 \end_layout
27619
27620 \end_inset
27621 </cell>
27622 <cell alignment="center" valignment="top" usebox="none">
27623 \begin_inset Text
27624
27625 \begin_layout Plain Layout
27626 refstyle
27627 \end_layout
27628
27629 \end_inset
27630 </cell>
27631 <cell alignment="center" valignment="top" usebox="none">
27632 \begin_inset Text
27633
27634 \begin_layout Plain Layout
27635 textcomp
27636 \end_layout
27637
27638 \end_inset
27639 </cell>
27640 <cell alignment="center" valignment="top" usebox="none">
27641 \begin_inset Text
27642
27643 \begin_layout Plain Layout
27644 varioref
27645 \end_layout
27646
27647 \end_inset
27648 </cell>
27649 <cell alignment="center" valignment="top" usebox="none">
27650 \begin_inset Text
27651
27652 \begin_layout Plain Layout
27653
27654 \end_layout
27655
27656 \end_inset
27657 </cell>
27658 </row>
27659 <row>
27660 <cell alignment="center" valignment="top" usebox="none">
27661 \begin_inset Text
27662
27663 \begin_layout Plain Layout
27664 bm
27665 \end_layout
27666
27667 \end_inset
27668 </cell>
27669 <cell alignment="center" valignment="top" usebox="none">
27670 \begin_inset Text
27671
27672 \begin_layout Plain Layout
27673 fancybox
27674 \end_layout
27675
27676 \end_inset
27677 </cell>
27678 <cell alignment="center" valignment="top" usebox="none">
27679 \begin_inset Text
27680
27681 \begin_layout Plain Layout
27682 latexsym
27683 \end_layout
27684
27685 \end_inset
27686 </cell>
27687 <cell alignment="center" valignment="top" usebox="none">
27688 \begin_inset Text
27689
27690 \begin_layout Plain Layout
27691 multirow
27692 \end_layout
27693
27694 \end_inset
27695 </cell>
27696 <cell alignment="center" valignment="top" usebox="none">
27697 \begin_inset Text
27698
27699 \begin_layout Plain Layout
27700 rotating
27701 \end_layout
27702
27703 \end_inset
27704 </cell>
27705 <cell alignment="center" valignment="top" usebox="none">
27706 \begin_inset Text
27707
27708 \begin_layout Plain Layout
27709 textgreek
27710 \end_layout
27711
27712 \end_inset
27713 </cell>
27714 <cell alignment="center" valignment="top" usebox="none">
27715 \begin_inset Text
27716
27717 \begin_layout Plain Layout
27718 verbatim
27719 \end_layout
27720
27721 \end_inset
27722 </cell>
27723 <cell alignment="center" valignment="top" usebox="none">
27724 \begin_inset Text
27725
27726 \begin_layout Plain Layout
27727
27728 \end_layout
27729
27730 \end_inset
27731 </cell>
27732 </row>
27733 </lyxtabular>
27734
27735 \end_inset
27736
27737
27738 \end_layout
27739
27740 \begin_layout Chapter
27741 Names of available colors to be used in layouts
27742 \begin_inset CommandInset label
27743 LatexCommand label
27744 name "chap:Names-of-colors"
27745
27746 \end_inset
27747
27748
27749 \end_layout
27750
27751 \begin_layout Standard
27752 The colors listed below are the standard colors and those that you can adjust
27753  in the \SpecialChar LyX
27754  preferences.
27755 \end_layout
27756
27757 \begin_layout Section
27758 Color functions
27759 \end_layout
27760
27761 \begin_layout Standard
27762 The following are no real colors, but rather act on color definitions:
27763 \end_layout
27764
27765 \begin_layout Description
27766 ignore The color is ignored
27767 \end_layout
27768
27769 \begin_layout Description
27770 inherit The color is inherited
27771 \end_layout
27772
27773 \begin_layout Description
27774 none
27775 \family roman
27776 \series medium
27777 \shape up
27778 \size normal
27779 \emph off
27780 \bar no
27781 \strikeout off
27782 \uuline off
27783 \uwave off
27784 \noun off
27785 \color none
27786  No particular color – clear or default
27787 \end_layout
27788
27789 \begin_layout Section
27790 Static colors
27791 \end_layout
27792
27793 \begin_layout Standard
27794 These are fixed colors that cannot me customized:
27795 \end_layout
27796
27797 \begin_layout Description
27798 black
27799 \end_layout
27800
27801 \begin_layout Description
27802 white
27803 \end_layout
27804
27805 \begin_layout Description
27806 blue
27807 \end_layout
27808
27809 \begin_layout Description
27810 brown
27811 \end_layout
27812
27813 \begin_layout Description
27814 cyan
27815 \end_layout
27816
27817 \begin_layout Description
27818 darkgray
27819 \end_layout
27820
27821 \begin_layout Description
27822 gray
27823 \end_layout
27824
27825 \begin_layout Description
27826 green
27827 \end_layout
27828
27829 \begin_layout Description
27830 lightgray
27831 \end_layout
27832
27833 \begin_layout Description
27834 lime
27835 \end_layout
27836
27837 \begin_layout Description
27838 magenta
27839 \end_layout
27840
27841 \begin_layout Description
27842 olive
27843 \end_layout
27844
27845 \begin_layout Description
27846 orange
27847 \end_layout
27848
27849 \begin_layout Description
27850 pink
27851 \end_layout
27852
27853 \begin_layout Description
27854 purple
27855 \end_layout
27856
27857 \begin_layout Description
27858 red
27859 \end_layout
27860
27861 \begin_layout Description
27862 teal
27863 \end_layout
27864
27865 \begin_layout Description
27866 violet
27867 \end_layout
27868
27869 \begin_layout Description
27870 yellow
27871 \end_layout
27872
27873 \begin_layout Section
27874 Dynamic colors
27875 \end_layout
27876
27877 \begin_layout Standard
27878 These are the colors allocated to specific elements in 
27879 \begin_inset Info
27880 type  "menu"
27881 arg   "dialog-show prefs"
27882 \end_inset
27883
27884 :
27885 \end_layout
27886
27887 \begin_layout Description
27888 added_space Added space color
27889 \end_layout
27890
27891 \begin_layout Description
27892 addedtext Added text color
27893 \end_layout
27894
27895 \begin_layout Description
27896 appendix Appendix marker color
27897 \end_layout
27898
27899 \begin_layout Description
27900 background Background color
27901 \end_layout
27902
27903 \begin_layout Description
27904 bottomarea Bottom area color
27905 \end_layout
27906
27907 \begin_layout Description
27908 branchlabel Label color for branches
27909 \end_layout
27910
27911 \begin_layout Description
27912 buttonbg Color used for button background
27913 \end_layout
27914
27915 \begin_layout Description
27916 buttonframe Color for inset button frames
27917 \end_layout
27918
27919 \begin_layout Description
27920 buttonhoverbg Color used for button background under focus
27921 \end_layout
27922
27923 \begin_layout Description
27924 changebar Changebar color
27925 \end_layout
27926
27927 \begin_layout Description
27928 changedtextauthor1 Changed text color author 1
27929 \end_layout
27930
27931 \begin_layout Description
27932 changedtextauthor2 Changed text color author 2
27933 \end_layout
27934
27935 \begin_layout Description
27936 changedtextauthor3 Changed text color author 3
27937 \end_layout
27938
27939 \begin_layout Description
27940 changedtextauthor4 Changed text color author 4
27941 \end_layout
27942
27943 \begin_layout Description
27944 changedtextauthor5 Changed text color author 5
27945 \end_layout
27946
27947 \begin_layout Description
27948 collapsible Collapsible insets text color
27949 \end_layout
27950
27951 \begin_layout Description
27952 collapsibleframe Collapsible insets framecolor
27953 \end_layout
27954
27955 \begin_layout Description
27956 command Text color for command insets
27957 \end_layout
27958
27959 \begin_layout Description
27960 commandbg Background color for command insets
27961 \end_layout
27962
27963 \begin_layout Description
27964 commandframe Frame color for command insets
27965 \end_layout
27966
27967 \begin_layout Description
27968 comment Label color for comments
27969 \end_layout
27970
27971 \begin_layout Description
27972 commentbg Background color of comments
27973 \end_layout
27974
27975 \begin_layout Description
27976 cursor Cursor color
27977 \end_layout
27978
27979 \begin_layout Description
27980 deletedtext Deleted text color
27981 \end_layout
27982
27983 \begin_layout Description
27984 deletedtextmodifier Deleted text modifying color
27985 \end_layout
27986
27987 \begin_layout Description
27988 depthbar Color for the depth bars in the margin
27989 \end_layout
27990
27991 \begin_layout Description
27992 eolmarker End of line marker color
27993 \end_layout
27994
27995 \begin_layout Description
27996 error Color of the \SpecialChar LaTeX
27997  error box
27998 \end_layout
27999
28000 \begin_layout Description
28001 footlabel Label color for footnotes
28002 \end_layout
28003
28004 \begin_layout Description
28005 foreground Foreground color
28006 \end_layout
28007
28008 \begin_layout Description
28009 graphicsbg Graphics inset background color
28010 \end_layout
28011
28012 \begin_layout Description
28013 greyedoutbg Background color of greyedout inset
28014 \end_layout
28015
28016 \begin_layout Description
28017 greyedoutlabel Label color for greyedout insets
28018 \end_layout
28019
28020 \begin_layout Description
28021 greyedouttext Color for greyedout inset text
28022 \end_layout
28023
28024 \begin_layout Description
28025 indexlabel Label color for index insets
28026 \end_layout
28027
28028 \begin_layout Description
28029 inlinecompletion Inline completion color
28030 \end_layout
28031
28032 \begin_layout Description
28033 insetbg Inset marker background color
28034 \end_layout
28035
28036 \begin_layout Description
28037 insetframe Inset marker frame color
28038 \end_layout
28039
28040 \begin_layout Description
28041 language Color for marking foreign language words
28042 \end_layout
28043
28044 \begin_layout Description
28045 latex Text color in \SpecialChar LaTeX
28046  mode
28047 \end_layout
28048
28049 \begin_layout Description
28050 listingsbg Background color of listings inset
28051 \end_layout
28052
28053 \begin_layout Description
28054 marginlabel Label color for margin notes
28055 \end_layout
28056
28057 \begin_layout Description
28058 math Math inset text color
28059 \end_layout
28060
28061 \begin_layout Description
28062 mathbg Math inset background color
28063 \end_layout
28064
28065 \begin_layout Description
28066 mathcorners Math inset frame color not under focus
28067 \end_layout
28068
28069 \begin_layout Description
28070 mathframe Math inset frame color under focus
28071 \end_layout
28072
28073 \begin_layout Description
28074 mathline Math line color
28075 \end_layout
28076
28077 \begin_layout Description
28078 mathmacrobg Macro math inset background color
28079 \end_layout
28080
28081 \begin_layout Description
28082 mathmacroblend Macro math blended color
28083 \end_layout
28084
28085 \begin_layout Description
28086 mathmacroframe Macro math frame color
28087 \end_layout
28088
28089 \begin_layout Description
28090 mathmacrohoverbg Macro math inset background color hovered
28091 \end_layout
28092
28093 \begin_layout Description
28094 mathmacrolabel Macro math label color
28095 \end_layout
28096
28097 \begin_layout Description
28098 mathmacronewarg Macro template color for new parameters
28099 \end_layout
28100
28101 \begin_layout Description
28102 mathmacrooldarg Macro template color for old parameters
28103 \end_layout
28104
28105 \begin_layout Description
28106 newpage New page color
28107 \end_layout
28108
28109 \begin_layout Description
28110 nonunique_inlinecompletion Inline completion color for the non-unique part
28111 \end_layout
28112
28113 \begin_layout Description
28114 note Label color for notes
28115 \end_layout
28116
28117 \begin_layout Description
28118 notebg Background color of notes
28119 \end_layout
28120
28121 \begin_layout Description
28122 pagebreak Page break/line break color
28123 \end_layout
28124
28125 \begin_layout Description
28126 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28127 \end_layout
28128
28129 \begin_layout Description
28130 phantomtext Text color for phantom insets
28131 \end_layout
28132
28133 \begin_layout Description
28134 preview The color used for previews
28135 \end_layout
28136
28137 \begin_layout Description
28138 previewframe Preview frame color
28139 \end_layout
28140
28141 \begin_layout Description
28142 regexpframe Color for regexp frame
28143 \end_layout
28144
28145 \begin_layout Description
28146 scroll Color that indicates when a row can be scrolled 
28147 \end_layout
28148
28149 \begin_layout Description
28150 selection Background color of selected text
28151 \end_layout
28152
28153 \begin_layout Description
28154 selectiontext Foreground color of selected text
28155 \end_layout
28156
28157 \begin_layout Description
28158 shadedbg Background color of shaded box
28159 \end_layout
28160
28161 \begin_layout Description
28162 special Special chars text color
28163 \end_layout
28164
28165 \begin_layout Description
28166 tabularline Table line color
28167 \end_layout
28168
28169 \begin_layout Description
28170 tabularonoffline Table line color
28171 \end_layout
28172
28173 \begin_layout Description
28174 urllabel Label color for URL insets
28175 \end_layout
28176
28177 \begin_layout Description
28178 urltext Color for URL inset text
28179 \end_layout
28180
28181 \end_body
28182 \end_document