]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Consistent output of breakable/non-breakable dashes on all TeX engines.
[lyx.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 BabelPreamble
12169 \end_layout
12170
12171 \end_inset
12172
12173  Note that this will completely override any prior 
12174 \begin_inset Flex Code
12175 status collapsed
12176
12177 \begin_layout Plain Layout
12178 BabelPreamble
12179 \end_layout
12180
12181 \end_inset
12182
12183  declaration for this style.
12184  Must end with 
12185 \begin_inset Quotes eld
12186 \end_inset
12187
12188
12189 \begin_inset Flex Code
12190 status collapsed
12191
12192 \begin_layout Plain Layout
12193 EndBabelPreamble
12194 \end_layout
12195
12196 \end_inset
12197
12198
12199 \begin_inset Quotes erd
12200 \end_inset
12201
12202 .
12203  See 
12204 \begin_inset CommandInset ref
12205 LatexCommand ref
12206 reference "subsec:I18n"
12207
12208 \end_inset
12209
12210  for details on its use.
12211 \end_layout
12212
12213 \begin_layout Description
12214 \begin_inset Flex Code
12215 status collapsed
12216
12217 \begin_layout Plain Layout
12218 BottomSep
12219 \end_layout
12220
12221 \end_inset
12222
12223  [
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228 float=0
12229 \end_layout
12230
12231 \end_inset
12232
12233 ]
12234 \begin_inset Foot
12235 status collapsed
12236
12237 \begin_layout Plain Layout
12238 Note that a `float' here is a real number, such as: 1.5.
12239 \end_layout
12240
12241 \end_inset
12242
12243  The vertical space with which the last of a chain of paragraphs with this
12244  style is separated from the following paragraph.
12245  If the next paragraph has another style, the separations are not simply
12246  added, but the maximum is taken.
12247 \end_layout
12248
12249 \begin_layout Description
12250 \begin_inset Flex Code
12251 status collapsed
12252
12253 \begin_layout Plain Layout
12254 Category
12255 \end_layout
12256
12257 \end_inset
12258
12259  [
12260 \begin_inset Flex Code
12261 status collapsed
12262
12263 \begin_layout Plain Layout
12264 string
12265 \end_layout
12266
12267 \end_inset
12268
12269 ] The category for this style.
12270  This is used to group related styles in the style combobox on the toolbar.
12271  Any string can be used, but you may want to use existing categories with
12272  your own styles.
12273  
12274 \end_layout
12275
12276 \begin_layout Description
12277 \begin_inset Flex Code
12278 status collapsed
12279
12280 \begin_layout Plain Layout
12281 CommandDepth
12282 \end_layout
12283
12284 \end_inset
12285
12286  Depth of XML command.
12287  Used only with XML-type formats.
12288 \end_layout
12289
12290 \begin_layout Description
12291 \begin_inset Flex Code
12292 status collapsed
12293
12294 \begin_layout Plain Layout
12295 CopyStyle
12296 \end_layout
12297
12298 \end_inset
12299
12300  [
12301 \begin_inset Flex Code
12302 status collapsed
12303
12304 \begin_layout Plain Layout
12305 string
12306 \end_layout
12307
12308 \end_inset
12309
12310 ] Copies all the features of an existing style into the current one.
12311  
12312 \end_layout
12313
12314 \begin_layout Description
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319 DependsOn
12320 \end_layout
12321
12322 \end_inset
12323
12324  [
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 <name>
12330 \end_layout
12331
12332 \end_inset
12333
12334 ] The name of a style whose preamble should be output 
12335 \emph on
12336 before
12337 \emph default
12338  this one.
12339  This allows to ensure some ordering of the preamble snippets when macros
12340  definitions depend on one another.
12341 \begin_inset Foot
12342 status collapsed
12343
12344 \begin_layout Plain Layout
12345 Note that, besides that functionality, there is no way to ensure any ordering
12346  of preambles.
12347  The ordering that you see in a given version of \SpecialChar LyX
12348  may change without warning
12349  in later versions.
12350 \end_layout
12351
12352 \end_inset
12353
12354
12355 \end_layout
12356
12357 \begin_layout Description
12358 \begin_inset Flex Code
12359 status collapsed
12360
12361 \begin_layout Plain Layout
12362 EndLabeltype
12363 \end_layout
12364
12365 \end_inset
12366
12367  [
12368 \begin_inset Flex Code
12369 status collapsed
12370
12371 \begin_layout Plain Layout
12372
12373 \emph on
12374 No_Label
12375 \emph default
12376 , Box, Filled_Box, Static
12377 \end_layout
12378
12379 \end_inset
12380
12381 ] The type of label that stands at the end of the paragraph (or sequence
12382  of paragraphs if 
12383 \begin_inset Flex Code
12384 status collapsed
12385
12386 \begin_layout Plain Layout
12387 LatexType
12388 \end_layout
12389
12390 \end_inset
12391
12392  is
12393 \begin_inset Newline newline
12394 \end_inset
12395
12396
12397 \begin_inset Flex Code
12398 status collapsed
12399
12400 \begin_layout Plain Layout
12401 Environment
12402 \end_layout
12403
12404 \end_inset
12405
12406
12407 \begin_inset Flex Code
12408 status collapsed
12409
12410 \begin_layout Plain Layout
12411 Item_Environment
12412 \end_layout
12413
12414 \end_inset
12415
12416  or 
12417 \begin_inset Flex Code
12418 status collapsed
12419
12420 \begin_layout Plain Layout
12421 List_Environment
12422 \end_layout
12423
12424 \end_inset
12425
12426 ).
12427  
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 No_Label
12433 \end_layout
12434
12435 \end_inset
12436
12437  means 
12438 \begin_inset Quotes eld
12439 \end_inset
12440
12441 nothing
12442 \begin_inset Quotes erd
12443 \end_inset
12444
12445
12446 \begin_inset Flex Code
12447 status collapsed
12448
12449 \begin_layout Plain Layout
12450 Box
12451 \end_layout
12452
12453 \end_inset
12454
12455  (resp.
12456 \begin_inset space \space{}
12457 \end_inset
12458
12459
12460 \begin_inset Flex Code
12461 status collapsed
12462
12463 \begin_layout Plain Layout
12464 Filled_Box
12465 \end_layout
12466
12467 \end_inset
12468
12469 ) is a white (resp.
12470 \begin_inset space ~
12471 \end_inset
12472
12473 black) square suitable for end of proof markers, 
12474 \begin_inset Flex Code
12475 status collapsed
12476
12477 \begin_layout Plain Layout
12478 Static
12479 \end_layout
12480
12481 \end_inset
12482
12483  is an explicit text string.
12484 \end_layout
12485
12486 \begin_layout Description
12487 \begin_inset Flex Code
12488 status collapsed
12489
12490 \begin_layout Plain Layout
12491 EndLabelString
12492 \end_layout
12493
12494 \end_inset
12495
12496  [
12497 \begin_inset Flex Code
12498 status collapsed
12499
12500 \begin_layout Plain Layout
12501 string=""
12502 \end_layout
12503
12504 \end_inset
12505
12506 ] The string used for a label with a 
12507 \begin_inset Flex Code
12508 status collapsed
12509
12510 \begin_layout Plain Layout
12511 Static
12512 \end_layout
12513
12514 \end_inset
12515
12516
12517 \begin_inset Newline newline
12518 \end_inset
12519
12520
12521 \begin_inset Flex Code
12522 status collapsed
12523
12524 \begin_layout Plain Layout
12525 EndLabelType
12526 \end_layout
12527
12528 \end_inset
12529
12530 .
12531  
12532 \end_layout
12533
12534 \begin_layout Description
12535 \begin_inset Flex Code
12536 status collapsed
12537
12538 \begin_layout Plain Layout
12539 Font
12540 \end_layout
12541
12542 \end_inset
12543
12544  The font used for both the text body 
12545 \emph on
12546 and
12547 \emph default
12548  the label.
12549  See 
12550 \begin_inset CommandInset ref
12551 LatexCommand ref
12552 reference "subsec:Font-description"
12553
12554 \end_inset
12555
12556 .
12557  Note that defining this font automatically defines the 
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562 LabelFont
12563 \end_layout
12564
12565 \end_inset
12566
12567  to the same value.
12568  So you should define this one first if you also want to define 
12569 \begin_inset Flex Code
12570 status collapsed
12571
12572 \begin_layout Plain Layout
12573 LabelFont
12574 \end_layout
12575
12576 \end_inset
12577
12578 .
12579 \end_layout
12580
12581 \begin_layout Description
12582 \begin_inset Flex Code
12583 status collapsed
12584
12585 \begin_layout Plain Layout
12586 ForceLocal
12587 \end_layout
12588
12589 \end_inset
12590
12591  [
12592 \begin_inset Flex Code
12593 status collapsed
12594
12595 \begin_layout Plain Layout
12596 int=0
12597 \end_layout
12598
12599 \end_inset
12600
12601 ] Used for backporting new styles to stable \SpecialChar LyX
12602  versions.
12603  The first stable version that supports this tag is \SpecialChar LyX
12604  2.1.0.
12605  The argument is a number which may either be 0, -1 or any value greater
12606  than zero.
12607  If the 
12608 \begin_inset Flex Code
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612 ForceLocal
12613 \end_layout
12614
12615 \end_inset
12616
12617  flag of a style is greater than zero, it will always be written to the
12618  document header.
12619  If a .lyx file is read, the style definitions from the document header are
12620  added to the document class.
12621  Therefore even older \SpecialChar LyX
12622  versions can handle the style.
12623  The argument of 
12624 \begin_inset Flex Code
12625 status collapsed
12626
12627 \begin_layout Plain Layout
12628 ForceLocal
12629 \end_layout
12630
12631 \end_inset
12632
12633  is a version number: if the style is read, and the version number is less
12634  than the version number of the already existing style in the document class,
12635  the new style is ignored.
12636  If the version number is greater, the new style replaces the existing style.
12637  A value of -1 means an infinite version number, i.
12638 \begin_inset space \thinspace{}
12639 \end_inset
12640
12641 e.
12642 \begin_inset space \space{}
12643 \end_inset
12644
12645 the style is always used.
12646 \end_layout
12647
12648 \begin_layout Description
12649 \begin_inset Flex Code
12650 status collapsed
12651
12652 \begin_layout Plain Layout
12653 FreeSpacing
12654 \end_layout
12655
12656 \end_inset
12657
12658  [
12659 \begin_inset Flex Code
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663
12664 \emph on
12665 0
12666 \end_layout
12667
12668 \end_inset
12669
12670 ,
12671 \begin_inset space \thinspace{}
12672 \end_inset
12673
12674
12675 \begin_inset Flex Code
12676 status collapsed
12677
12678 \begin_layout Plain Layout
12679 1
12680 \end_layout
12681
12682 \end_inset
12683
12684 ] Usually \SpecialChar LyX
12685  does not allow you to insert more than one space between words,
12686  since a space is considered as the separation between two words, not a
12687  character or symbol of its own.
12688  This is a very fine thing but sometimes annoying, for example, when typing
12689  program code or plain \SpecialChar LaTeX
12690  code.
12691  For this reason, 
12692 \begin_inset Flex Code
12693 status collapsed
12694
12695 \begin_layout Plain Layout
12696 FreeSpacing
12697 \end_layout
12698
12699 \end_inset
12700
12701  can be enabled.
12702  Note that \SpecialChar LyX
12703  will create protected blanks for the additional blanks when
12704  in another mode than \SpecialChar LaTeX
12705 -mode.
12706 \end_layout
12707
12708 \begin_layout Description
12709 \begin_inset Flex Code
12710 status collapsed
12711
12712 \begin_layout Plain Layout
12713 HTML*
12714 \end_layout
12715
12716 \end_inset
12717
12718  These tags are used with XHTML output.
12719  See 
12720 \begin_inset CommandInset ref
12721 LatexCommand ref
12722 reference "subsec:Paragraph-Style-XHTML"
12723
12724 \end_inset
12725
12726 .
12727 \end_layout
12728
12729 \begin_layout Description
12730 \begin_inset Flex Code
12731 status collapsed
12732
12733 \begin_layout Plain Layout
12734 InnerTag
12735 \end_layout
12736
12737 \end_inset
12738
12739  [FIXME] (Used only with XML-type formats.)
12740 \end_layout
12741
12742 \begin_layout Description
12743 \begin_inset Flex Code
12744 status collapsed
12745
12746 \begin_layout Plain Layout
12747 InPreamble
12748 \end_layout
12749
12750 \end_inset
12751
12752  [
12753 \begin_inset Flex Code
12754 status collapsed
12755
12756 \begin_layout Plain Layout
12757
12758 \emph on
12759 0
12760 \end_layout
12761
12762 \end_inset
12763
12764 ,
12765 \begin_inset space \thinspace{}
12766 \end_inset
12767
12768
12769 \begin_inset Flex Code
12770 status collapsed
12771
12772 \begin_layout Plain Layout
12773 1
12774 \end_layout
12775
12776 \end_inset
12777
12778 ] If 
12779 \begin_inset Flex Code
12780 status collapsed
12781
12782 \begin_layout Plain Layout
12783 1
12784 \end_layout
12785
12786 \end_inset
12787
12788 , marks the style as to be included in the document preamble and not in
12789  the document body.
12790  This is useful for document classes that want such information as the title
12791  and author to appear in the preamble.
12792  Note that this works only for styles for which the 
12793 \begin_inset Flex Code
12794 status collapsed
12795
12796 \begin_layout Plain Layout
12797 LatexType
12798 \end_layout
12799
12800 \end_inset
12801
12802  is 
12803 \begin_inset Flex Code
12804 status collapsed
12805
12806 \begin_layout Plain Layout
12807 Command
12808 \end_layout
12809
12810 \end_inset
12811
12812  or 
12813 \begin_inset Flex Code
12814 status collapsed
12815
12816 \begin_layout Plain Layout
12817 Paragraph
12818 \end_layout
12819
12820 \end_inset
12821
12822 .
12823 \end_layout
12824
12825 \begin_layout Description
12826 \begin_inset Flex Code
12827 status collapsed
12828
12829 \begin_layout Plain Layout
12830 InTitle
12831 \end_layout
12832
12833 \end_inset
12834
12835  [
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840
12841 \emph on
12842 0
12843 \end_layout
12844
12845 \end_inset
12846
12847 ,
12848 \begin_inset space \thinspace{}
12849 \end_inset
12850
12851
12852 \begin_inset Flex Code
12853 status collapsed
12854
12855 \begin_layout Plain Layout
12856 1
12857 \end_layout
12858
12859 \end_inset
12860
12861 ] If 
12862 \begin_inset Flex Code
12863 status collapsed
12864
12865 \begin_layout Plain Layout
12866 1
12867 \end_layout
12868
12869 \end_inset
12870
12871 , marks the style as being part of a title block (see also the 
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876 TitleLatexType
12877 \end_layout
12878
12879 \end_inset
12880
12881  and 
12882 \begin_inset Flex Code
12883 status collapsed
12884
12885 \begin_layout Plain Layout
12886 TitleLatexName
12887 \end_layout
12888
12889 \end_inset
12890
12891  global entries).
12892 \end_layout
12893
12894 \begin_layout Description
12895 \begin_inset Flex Code
12896 status collapsed
12897
12898 \begin_layout Plain Layout
12899 IsTocCaption
12900 \end_layout
12901
12902 \end_inset
12903
12904  [
12905 \begin_inset Flex Code
12906 status collapsed
12907
12908 \begin_layout Plain Layout
12909
12910 \emph on
12911 0
12912 \end_layout
12913
12914 \end_inset
12915
12916 ,
12917 \begin_inset space \thinspace{}
12918 \end_inset
12919
12920
12921 \begin_inset Flex Code
12922 status collapsed
12923
12924 \begin_layout Plain Layout
12925 1
12926 \end_layout
12927
12928 \end_inset
12929
12930 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
12931  of its contents in its item in the table of contents.
12932  Otherwise, only the label, if it exists, appears.
12933 \end_layout
12934
12935 \begin_layout Description
12936 \begin_inset Flex Code
12937 status collapsed
12938
12939 \begin_layout Plain Layout
12940 ItemCommand
12941 \end_layout
12942
12943 \end_inset
12944
12945  [
12946 \begin_inset Flex Code
12947 status collapsed
12948
12949 \begin_layout Plain Layout
12950 string="item"
12951 \end_layout
12952
12953 \end_inset
12954
12955 ] The \SpecialChar LaTeX
12956  command sequence declaring an item in a list.
12957  The command is to be defined without the preceding backslash (the default
12958  is 
12959 \begin_inset Quotes eld
12960 \end_inset
12961
12962 item
12963 \begin_inset Quotes erd
12964 \end_inset
12965
12966 , resulting in 
12967 \begin_inset Flex Code
12968 status collapsed
12969
12970 \begin_layout Plain Layout
12971
12972 \backslash
12973 item
12974 \end_layout
12975
12976 \end_inset
12977
12978  in the \SpecialChar LaTeX
12979  output).
12980 \end_layout
12981
12982 \begin_layout Description
12983 \begin_inset Flex Code
12984 status collapsed
12985
12986 \begin_layout Plain Layout
12987 ItemSep
12988 \end_layout
12989
12990 \end_inset
12991
12992  [
12993 \begin_inset Flex Code
12994 status collapsed
12995
12996 \begin_layout Plain Layout
12997 float=0
12998 \end_layout
12999
13000 \end_inset
13001
13002 ] This provides extra space between paragraphs that have the same style.
13003  If you put other styles into an environment, each is separated with the
13004  environment's 
13005 \begin_inset Flex Code
13006 status collapsed
13007
13008 \begin_layout Plain Layout
13009 ParSep
13010 \end_layout
13011
13012 \end_inset
13013
13014 .
13015  But the whole items of the environment are additionally separated with
13016  this 
13017 \begin_inset Flex Code
13018 status collapsed
13019
13020 \begin_layout Plain Layout
13021 ItemSep
13022 \end_layout
13023
13024 \end_inset
13025
13026 .
13027  Note that this is a
13028 \emph on
13029  multiplier.
13030 \end_layout
13031
13032 \begin_layout Description
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037 ItemTag
13038 \end_layout
13039
13040 \end_inset
13041
13042  [FIXME] (Used only with XML-type formats.)
13043 \end_layout
13044
13045 \begin_layout Description
13046 \begin_inset Flex Code
13047 status collapsed
13048
13049 \begin_layout Plain Layout
13050 KeepEmpty
13051 \end_layout
13052
13053 \end_inset
13054
13055  [
13056 \begin_inset Flex Code
13057 status collapsed
13058
13059 \begin_layout Plain Layout
13060
13061 \emph on
13062 0
13063 \end_layout
13064
13065 \end_inset
13066
13067 ,
13068 \begin_inset space \thinspace{}
13069 \end_inset
13070
13071
13072 \begin_inset Flex Code
13073 status collapsed
13074
13075 \begin_layout Plain Layout
13076 1
13077 \end_layout
13078
13079 \end_inset
13080
13081 ] Usually \SpecialChar LyX
13082  does not allow you to leave a paragraph empty, since it would
13083  lead to empty \SpecialChar LaTeX
13084  output.
13085  There are some cases where this could be desirable however: in a letter
13086  template, the required fields can be provided as empty fields, so that
13087  people do not forget them; in some special classes, a style can be used
13088  as some kind of break, which does not contain actual text.
13089 \end_layout
13090
13091 \begin_layout Description
13092 \begin_inset Flex Code
13093 status collapsed
13094
13095 \begin_layout Plain Layout
13096 LabelBottomsep
13097 \end_layout
13098
13099 \end_inset
13100
13101  [
13102 \begin_inset Flex Code
13103 status collapsed
13104
13105 \begin_layout Plain Layout
13106 float=0
13107 \end_layout
13108
13109 \end_inset
13110
13111 ] The vertical space between the label and the text body.
13112  Only used for labels that are above the text body (
13113 \begin_inset Flex Code
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117 Top_Environment
13118 \end_layout
13119
13120 \end_inset
13121
13122  and
13123 \begin_inset Newline newline
13124 \end_inset
13125
13126
13127 \begin_inset Flex Code
13128 status collapsed
13129
13130 \begin_layout Plain Layout
13131 Centered_Top_Environment
13132 \end_layout
13133
13134 \end_inset
13135
13136 ).
13137 \end_layout
13138
13139 \begin_layout Description
13140 \begin_inset Flex Code
13141 status collapsed
13142
13143 \begin_layout Plain Layout
13144 LabelCounter
13145 \end_layout
13146
13147 \end_inset
13148
13149  [
13150 \begin_inset Flex Code
13151 status collapsed
13152
13153 \begin_layout Plain Layout
13154 string=""
13155 \end_layout
13156
13157 \end_inset
13158
13159 ] The name of the counter for automatic numbering.
13160  In order to have the counter appear with your label, you will need to reference
13161  it in the 
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166
13167 \family typewriter
13168 LabelString
13169 \end_layout
13170
13171 \end_inset
13172
13173 .
13174  This will work with 
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179 LabelType
13180 \end_layout
13181
13182 \end_inset
13183
13184 s, 
13185 \begin_inset Flex Code
13186 status collapsed
13187
13188 \begin_layout Plain Layout
13189 Static
13190 \end_layout
13191
13192 \end_inset
13193
13194
13195 \begin_inset Flex Code
13196 status collapsed
13197
13198 \begin_layout Plain Layout
13199 Above
13200 \end_layout
13201
13202 \end_inset
13203
13204  and 
13205 \begin_inset Flex Code
13206 status collapsed
13207
13208 \begin_layout Plain Layout
13209 Centered
13210 \end_layout
13211
13212 \end_inset
13213
13214 , at least.
13215 \begin_inset Newline newline
13216 \end_inset
13217
13218 This 
13219 \emph on
13220 may
13221 \emph default
13222  also be given if 
13223 \begin_inset Flex Code
13224 status collapsed
13225
13226 \begin_layout Plain Layout
13227 LabelType
13228 \end_layout
13229
13230 \end_inset
13231
13232  is 
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 Enumerate
13238 \end_layout
13239
13240 \end_inset
13241
13242 , though this case is a bit complicated.
13243  Suppose you declare 
13244 \begin_inset Quotes eld
13245 \end_inset
13246
13247
13248 \begin_inset Flex Code
13249 status collapsed
13250
13251 \begin_layout Plain Layout
13252 LabelCounter myenum
13253 \end_layout
13254
13255 \end_inset
13256
13257
13258 \begin_inset Quotes erd
13259 \end_inset
13260
13261 .
13262  Then the actual counters used are 
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 myenumi
13268 \end_layout
13269
13270 \end_inset
13271
13272
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277 myenumii
13278 \end_layout
13279
13280 \end_inset
13281
13282
13283 \begin_inset Flex Code
13284 status collapsed
13285
13286 \begin_layout Plain Layout
13287 myenumiii
13288 \end_layout
13289
13290 \end_inset
13291
13292  and 
13293 \begin_inset Flex Code
13294 status collapsed
13295
13296 \begin_layout Plain Layout
13297 myenumiv
13298 \end_layout
13299
13300 \end_inset
13301
13302 , much as in \SpecialChar LaTeX
13303 .
13304  These counters must all be declared separately.
13305 \begin_inset Newline newline
13306 \end_inset
13307
13308 See 
13309 \begin_inset CommandInset ref
13310 LatexCommand ref
13311 reference "subsec:Counters"
13312
13313 \end_inset
13314
13315  for details on counters.
13316 \end_layout
13317
13318 \begin_layout Description
13319 \begin_inset Flex Code
13320 status collapsed
13321
13322 \begin_layout Plain Layout
13323 LabelFont
13324 \end_layout
13325
13326 \end_inset
13327
13328  The font used for the label.
13329  See 
13330 \begin_inset CommandInset ref
13331 LatexCommand ref
13332 reference "subsec:Font-description"
13333
13334 \end_inset
13335
13336 .
13337 \end_layout
13338
13339 \begin_layout Description
13340 \begin_inset Flex Code
13341 status collapsed
13342
13343 \begin_layout Plain Layout
13344 LabelIndent
13345 \end_layout
13346
13347 \end_inset
13348
13349  [
13350 \begin_inset Flex Code
13351 status collapsed
13352
13353 \begin_layout Plain Layout
13354 string=""
13355 \end_layout
13356
13357 \end_inset
13358
13359 ] Text that indicates how far a label should be indented.
13360 \end_layout
13361
13362 \begin_layout Description
13363 \begin_inset Flex Code
13364 status collapsed
13365
13366 \begin_layout Plain Layout
13367 LabelSep
13368 \end_layout
13369
13370 \end_inset
13371
13372  [
13373 \begin_inset Flex Code
13374 status collapsed
13375
13376 \begin_layout Plain Layout
13377 string=""
13378 \end_layout
13379
13380 \end_inset
13381
13382 ] Text that indicates the amount of horizontal space between the label and
13383  the text body.
13384  Only used for labels that are not above the text body.
13385 \end_layout
13386
13387 \begin_layout Description
13388 \begin_inset Flex Code
13389 status collapsed
13390
13391 \begin_layout Plain Layout
13392 LabelString
13393 \end_layout
13394
13395 \end_inset
13396
13397  [
13398 \begin_inset Flex Code
13399 status collapsed
13400
13401 \begin_layout Plain Layout
13402 string=""
13403 \end_layout
13404
13405 \end_inset
13406
13407 ] The string used for the label.
13408  When 
13409 \begin_inset Flex Code
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413 LabelCounter
13414 \end_layout
13415
13416 \end_inset
13417
13418  is set, this string can be contain the special formatting commands described
13419  in 
13420 \begin_inset CommandInset ref
13421 LatexCommand ref
13422 reference "subsec:Counters"
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 LabelStringAppendix
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 ] This is used inside the appendix instead of
13450 \begin_inset Newline newline
13451 \end_inset
13452
13453
13454 \begin_inset Flex Code
13455 status collapsed
13456
13457 \begin_layout Plain Layout
13458 LabelString
13459 \end_layout
13460
13461 \end_inset
13462
13463 .
13464  Note that every 
13465 \begin_inset Flex Code
13466 status collapsed
13467
13468 \begin_layout Plain Layout
13469 LabelString
13470 \end_layout
13471
13472 \end_inset
13473
13474  statement resets
13475 \begin_inset Newline newline
13476 \end_inset
13477
13478
13479 \begin_inset Flex Code
13480 status collapsed
13481
13482 \begin_layout Plain Layout
13483 LabelStringAppendix
13484 \end_layout
13485
13486 \end_inset
13487
13488  too.
13489 \end_layout
13490
13491 \begin_layout Description
13492 \begin_inset Flex Code
13493 status collapsed
13494
13495 \begin_layout Plain Layout
13496 LabelTag
13497 \end_layout
13498
13499 \end_inset
13500
13501  [FIXME] (Used only with XML-type formats.)
13502 \end_layout
13503
13504 \begin_layout Description
13505 \begin_inset Flex Code
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 LabelType
13510 \end_layout
13511
13512 \end_inset
13513
13514  [
13515 \begin_inset Flex Code
13516 status collapsed
13517
13518 \begin_layout Plain Layout
13519
13520 \emph on
13521 No_Label
13522 \emph default
13523 , Manual, Static, Above, 
13524 \begin_inset Newline newline
13525 \end_inset
13526
13527 Centered, Sensitive, Enumerate,
13528 \begin_inset Newline newline
13529 \end_inset
13530
13531 Itemize, Bibliography
13532 \end_layout
13533
13534 \end_inset
13535
13536 ]
13537 \end_layout
13538
13539 \begin_deeper
13540 \begin_layout Description
13541 \begin_inset Flex Code
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 Manual
13546 \end_layout
13547
13548 \end_inset
13549
13550  means the label is the very first word (up to the first real blank).
13551  Use protected spaces if you want more than one word as the label.
13552  
13553 \end_layout
13554
13555 \begin_layout Description
13556 \begin_inset Flex Code
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560 Static
13561 \end_layout
13562
13563 \end_inset
13564
13565  means the label is simply what is declared as 
13566 \begin_inset Flex Code
13567 status collapsed
13568
13569 \begin_layout Plain Layout
13570 LabelString
13571 \end_layout
13572
13573 \end_inset
13574
13575 .
13576  This will be displayed 
13577 \begin_inset Quotes eld
13578 \end_inset
13579
13580 inline
13581 \begin_inset Quotes erd
13582 \end_inset
13583
13584 , at the beginning of the paragraph.
13585  If the 
13586 \begin_inset Flex Code
13587 status collapsed
13588
13589 \begin_layout Plain Layout
13590 LatexType
13591 \end_layout
13592
13593 \end_inset
13594
13595  is 
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600 Environment
13601 \end_layout
13602
13603 \end_inset
13604
13605 , then it will be displayed only in the first paragraph of any sequence
13606  of paragraphs with the same 
13607 \begin_inset Flex Code
13608 status collapsed
13609
13610 \begin_layout Plain Layout
13611 Style
13612 \end_layout
13613
13614 \end_inset
13615
13616 .
13617 \end_layout
13618
13619 \begin_layout Description
13620 \begin_inset Flex Code
13621 status collapsed
13622
13623 \begin_layout Plain Layout
13624 Above
13625 \end_layout
13626
13627 \end_inset
13628
13629
13630 \begin_inset space ~
13631 \end_inset
13632
13633 and
13634 \begin_inset space ~
13635 \end_inset
13636
13637
13638 \begin_inset Flex Code
13639 status collapsed
13640
13641 \begin_layout Plain Layout
13642 Centered
13643 \end_layout
13644
13645 \end_inset
13646
13647  are special cases of 
13648 \begin_inset Flex Code
13649 status collapsed
13650
13651 \begin_layout Plain Layout
13652 Static
13653 \end_layout
13654
13655 \end_inset
13656
13657 .
13658  The label will be printed above the paragraph either at the beginning of
13659  the line or centered.
13660 \end_layout
13661
13662 \begin_layout Description
13663 \begin_inset Flex Code
13664 status collapsed
13665
13666 \begin_layout Plain Layout
13667 Sensitive
13668 \end_layout
13669
13670 \end_inset
13671
13672  is a special case for the caption-labels 
13673 \begin_inset Quotes eld
13674 \end_inset
13675
13676 Figure
13677 \begin_inset Quotes erd
13678 \end_inset
13679
13680  and 
13681 \begin_inset Quotes eld
13682 \end_inset
13683
13684 Table
13685 \begin_inset Quotes erd
13686 \end_inset
13687
13688 .
13689 \begin_inset Newline newline
13690 \end_inset
13691
13692
13693 \begin_inset Flex Code
13694 status collapsed
13695
13696 \begin_layout Plain Layout
13697 Sensitive
13698 \end_layout
13699
13700 \end_inset
13701
13702  means the (hardcoded) label string depends on the kind of float: It is
13703  hardcoded to be `FloatType N', where N is the value of the counter associated
13704  with the float.
13705  For the case that a caption is inserted outside of a float the 
13706 \begin_inset Flex Code
13707 status collapsed
13708
13709 \begin_layout Plain Layout
13710 LabelString
13711 \end_layout
13712
13713 \end_inset
13714
13715  will appear as 
13716 \begin_inset Quotes eld
13717 \end_inset
13718
13719 Senseless!
13720 \begin_inset Quotes erd
13721 \end_inset
13722
13723 .
13724 \end_layout
13725
13726 \begin_layout Description
13727 \begin_inset Flex Code
13728 status collapsed
13729
13730 \begin_layout Plain Layout
13731 Enumerate
13732 \end_layout
13733
13734 \end_inset
13735
13736  produces the usual sort of enumeration labels.
13737  The number type needs to be set in the 
13738 \family sans
13739 Counter
13740 \family default
13741 , see 
13742 \begin_inset CommandInset ref
13743 LatexCommand ref
13744 reference "subsec:Counters"
13745
13746 \end_inset
13747
13748 .
13749 \end_layout
13750
13751 \begin_layout Description
13752 \begin_inset Flex Code
13753 status collapsed
13754
13755 \begin_layout Plain Layout
13756 Itemize
13757 \end_layout
13758
13759 \end_inset
13760
13761  produces various bullets at the different levels.
13762  The bullet types displayed can be set via 
13763 \begin_inset Flex Noun
13764 status collapsed
13765
13766 \begin_layout Plain Layout
13767 Document\SpecialChar menuseparator
13768 Settings\SpecialChar menuseparator
13769 Bullets
13770 \end_layout
13771
13772 \end_inset
13773
13774 .
13775 \end_layout
13776
13777 \begin_layout Description
13778 \begin_inset Flex Code
13779 status collapsed
13780
13781 \begin_layout Plain Layout
13782 Bibliography
13783 \end_layout
13784
13785 \end_inset
13786
13787  should be used only with 
13788 \begin_inset Flex Code
13789 status collapsed
13790
13791 \begin_layout Plain Layout
13792 LatexType BibEnvironment
13793 \end_layout
13794
13795 \end_inset
13796
13797 .
13798 \end_layout
13799
13800 \end_deeper
13801 \begin_layout Description
13802 \begin_inset Flex Code
13803 status collapsed
13804
13805 \begin_layout Plain Layout
13806 LangPreamble
13807 \end_layout
13808
13809 \end_inset
13810
13811  Note that this will completely override any prior 
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816 LangPreamble
13817 \end_layout
13818
13819 \end_inset
13820
13821  declaration for this style.
13822  Must end with 
13823 \begin_inset Quotes eld
13824 \end_inset
13825
13826
13827 \begin_inset Flex Code
13828 status collapsed
13829
13830 \begin_layout Plain Layout
13831 EndLangPreamble
13832 \end_layout
13833
13834 \end_inset
13835
13836
13837 \begin_inset Quotes erd
13838 \end_inset
13839
13840 .
13841  See 
13842 \begin_inset CommandInset ref
13843 LatexCommand ref
13844 reference "subsec:I18n"
13845
13846 \end_inset
13847
13848  for details on its use.
13849 \end_layout
13850
13851 \begin_layout Description
13852 \begin_inset Flex Code
13853 status collapsed
13854
13855 \begin_layout Plain Layout
13856 LatexName
13857 \end_layout
13858
13859 \end_inset
13860
13861  [
13862 \begin_inset Flex Code
13863 status collapsed
13864
13865 \begin_layout Plain Layout
13866 <name>
13867 \end_layout
13868
13869 \end_inset
13870
13871 ] The name of the corresponding \SpecialChar LaTeX
13872  stuff.
13873  Either the environment or command name.
13874 \end_layout
13875
13876 \begin_layout Description
13877 \begin_inset Flex Code
13878 status collapsed
13879
13880 \begin_layout Plain Layout
13881 LatexParam
13882 \end_layout
13883
13884 \end_inset
13885
13886  [
13887 \begin_inset Flex Code
13888 status collapsed
13889
13890 \begin_layout Plain Layout
13891 <parameter>
13892 \end_layout
13893
13894 \end_inset
13895
13896 ] An optional parameter for the corresponding 
13897 \begin_inset Flex Code
13898 status collapsed
13899
13900 \begin_layout Plain Layout
13901 LatexName
13902 \end_layout
13903
13904 \end_inset
13905
13906  stuff.
13907  This parameter cannot be changed from within \SpecialChar LyX
13908  (use 
13909 \begin_inset Flex Code
13910 status collapsed
13911
13912 \begin_layout Plain Layout
13913 Argument
13914 \end_layout
13915
13916 \end_inset
13917
13918  for customizable parameters).
13919  This will be output as is after all \SpecialChar LaTeX
13920  
13921 \begin_inset Flex Code
13922 status collapsed
13923
13924 \begin_layout Plain Layout
13925 Argument
13926 \end_layout
13927
13928 \end_inset
13929
13930 s.
13931 \end_layout
13932
13933 \begin_layout Description
13934 \begin_inset Flex Code
13935 status collapsed
13936
13937 \begin_layout Plain Layout
13938 LatexType
13939 \end_layout
13940
13941 \end_inset
13942
13943  [
13944 \begin_inset Flex Code
13945 status collapsed
13946
13947 \begin_layout Plain Layout
13948
13949 \emph on
13950 Paragraph
13951 \emph default
13952 , Command, Environment, Item_Environment,
13953 \begin_inset Newline newline
13954 \end_inset
13955
13956 List_Environment, Bib_Environment
13957 \end_layout
13958
13959 \end_inset
13960
13961 ] How the style should be translated into \SpecialChar LaTeX
13962 .
13963 \begin_inset Foot
13964 status collapsed
13965
13966 \begin_layout Plain Layout
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 LatexType
13972 \end_layout
13973
13974 \end_inset
13975
13976  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13977  Visit the SGML class files for specific examples.
13978 \end_layout
13979
13980 \end_inset
13981
13982
13983 \end_layout
13984
13985 \begin_deeper
13986 \begin_layout Description
13987 \begin_inset Flex Code
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991 Paragraph
13992 \end_layout
13993
13994 \end_inset
13995
13996  means nothing special.
13997 \end_layout
13998
13999 \begin_layout Description
14000 \begin_inset Flex Code
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 Command
14005 \end_layout
14006
14007 \end_inset
14008
14009  means 
14010 \begin_inset Flex Code
14011 status collapsed
14012
14013 \begin_layout Plain Layout
14014
14015 \backslash
14016
14017 \emph on
14018 LatexName
14019 \emph default
14020 {\SpecialChar ldots
14021 }
14022 \end_layout
14023
14024 \end_inset
14025
14026 .
14027 \end_layout
14028
14029 \begin_layout Description
14030 \begin_inset Flex Code
14031 status collapsed
14032
14033 \begin_layout Plain Layout
14034 Environment
14035 \end_layout
14036
14037 \end_inset
14038
14039  means 
14040 \begin_inset Flex Code
14041 status collapsed
14042
14043 \begin_layout Plain Layout
14044
14045 \backslash
14046 begin{
14047 \emph on
14048 LatexName
14049 \emph default
14050 }\SpecialChar ldots
14051
14052 \backslash
14053 end{
14054 \emph on
14055 LatexName
14056 \emph default
14057 }
14058 \end_layout
14059
14060 \end_inset
14061
14062 .
14063  
14064 \end_layout
14065
14066 \begin_layout Description
14067 \begin_inset Flex Code
14068 status collapsed
14069
14070 \begin_layout Plain Layout
14071 Item_Environment
14072 \end_layout
14073
14074 \end_inset
14075
14076  is the same as 
14077 \begin_inset Flex Code
14078 status collapsed
14079
14080 \begin_layout Plain Layout
14081 Environment
14082 \end_layout
14083
14084 \end_inset
14085
14086 , except that an 
14087 \begin_inset Flex Code
14088 status collapsed
14089
14090 \begin_layout Plain Layout
14091
14092 \backslash
14093 item
14094 \end_layout
14095
14096 \end_inset
14097
14098  is generated for each paragraph of this environment.
14099  
14100 \end_layout
14101
14102 \begin_layout Description
14103 \begin_inset Flex Code
14104 status collapsed
14105
14106 \begin_layout Plain Layout
14107 List_Environment
14108 \end_layout
14109
14110 \end_inset
14111
14112  is the same as 
14113 \begin_inset Flex Code
14114 status collapsed
14115
14116 \begin_layout Plain Layout
14117 Item_Environment
14118 \end_layout
14119
14120 \end_inset
14121
14122 , except that
14123 \begin_inset Newline newline
14124 \end_inset
14125
14126
14127 \begin_inset Flex Code
14128 status collapsed
14129
14130 \begin_layout Plain Layout
14131 LabelWidthString
14132 \end_layout
14133
14134 \end_inset
14135
14136  is passed as an argument to the environment.
14137 \begin_inset Newline newline
14138 \end_inset
14139
14140
14141 \begin_inset Flex Code
14142 status collapsed
14143
14144 \begin_layout Plain Layout
14145 LabelWidthString
14146 \end_layout
14147
14148 \end_inset
14149
14150  can be defined in the 
14151 \begin_inset Flex Noun
14152 status collapsed
14153
14154 \begin_layout Plain Layout
14155 Edit\SpecialChar menuseparator
14156 Paragraph
14157 \begin_inset space ~
14158 \end_inset
14159
14160 settings
14161 \end_layout
14162
14163 \end_inset
14164
14165  dialog.
14166 \end_layout
14167
14168 \begin_layout Description
14169 \begin_inset Flex Code
14170 status collapsed
14171
14172 \begin_layout Plain Layout
14173 Bib_Environment
14174 \end_layout
14175
14176 \end_inset
14177
14178  is like 
14179 \begin_inset Flex Code
14180 status collapsed
14181
14182 \begin_layout Plain Layout
14183 Environment
14184 \end_layout
14185
14186 \end_inset
14187
14188  but adds the necessary mandatory argument (the longest label) to the begin
14189  statement of the bibliography environment:
14190 \begin_inset Newline newline
14191 \end_inset
14192
14193
14194 \begin_inset Flex Code
14195 status collapsed
14196
14197 \begin_layout Plain Layout
14198
14199 \backslash
14200 begin{thebibliography}{99}
14201 \end_layout
14202
14203 \end_inset
14204
14205 .
14206  It is therefore only useful for bibliography environments.
14207  The default longest label 
14208 \begin_inset Quotes eld
14209 \end_inset
14210
14211 99
14212 \begin_inset Quotes erd
14213 \end_inset
14214
14215  can be changed by the user in the paragraph settings of a bibliography
14216  item.
14217 \end_layout
14218
14219 \begin_layout Standard
14220 Putting the last few things together, the \SpecialChar LaTeX
14221  output will be either: 
14222 \end_layout
14223
14224 \begin_layout LyX-Code
14225
14226 \backslash
14227 LatexName[LatexParam]{\SpecialChar ldots
14228 }
14229 \end_layout
14230
14231 \begin_layout Standard
14232 or: 
14233 \end_layout
14234
14235 \begin_layout LyX-Code
14236
14237 \backslash
14238 begin{LatexName}[LatexParam] \SpecialChar ldots
14239  
14240 \backslash
14241 end{LatexName}.
14242 \end_layout
14243
14244 \begin_layout Standard
14245 depending upon the \SpecialChar LaTeX
14246  type.
14247 \end_layout
14248
14249 \end_deeper
14250 \begin_layout Description
14251 \begin_inset Flex Code
14252 status collapsed
14253
14254 \begin_layout Plain Layout
14255 LeftDelim
14256 \end_layout
14257
14258 \end_inset
14259
14260  [
14261 \begin_inset Flex Code
14262 status collapsed
14263
14264 \begin_layout Plain Layout
14265 string
14266 \end_layout
14267
14268 \end_inset
14269
14270 ] A string that is put at the beginning of the style content.
14271  A line break in the output can be indicated by 
14272 \begin_inset Flex Code
14273 status collapsed
14274
14275 \begin_layout Plain Layout
14276 <br/>
14277 \end_layout
14278
14279 \end_inset
14280
14281 .
14282 \end_layout
14283
14284 \begin_layout Description
14285 \begin_inset Flex Code
14286 status collapsed
14287
14288 \begin_layout Plain Layout
14289 LeftMargin
14290 \end_layout
14291
14292 \end_inset
14293
14294  [
14295 \begin_inset Flex Code
14296 status collapsed
14297
14298 \begin_layout Plain Layout
14299 string=""
14300 \end_layout
14301
14302 \end_inset
14303
14304 ] If you put styles into environments, the different 
14305 \begin_inset Flex Code
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309 LeftMargin
14310 \end_layout
14311
14312 \end_inset
14313
14314  are not simply added, but added with a factor 
14315 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14316 \end_inset
14317
14318 .
14319  Note that this parameter is also used when 
14320 \begin_inset Flex Code
14321 status collapsed
14322
14323 \begin_layout Plain Layout
14324 Margin
14325 \end_layout
14326
14327 \end_inset
14328
14329  is defined as 
14330 \begin_inset Flex Code
14331 status collapsed
14332
14333 \begin_layout Plain Layout
14334 Manual
14335 \end_layout
14336
14337 \end_inset
14338
14339  or 
14340 \begin_inset Flex Code
14341 status collapsed
14342
14343 \begin_layout Plain Layout
14344 Dynamic
14345 \end_layout
14346
14347 \end_inset
14348
14349 .
14350  Then it is added to the manual or dynamic margin.
14351 \begin_inset Newline newline
14352 \end_inset
14353
14354 For example 
14355 \begin_inset Quotes eld
14356 \end_inset
14357
14358
14359 \begin_inset Flex Code
14360 status collapsed
14361
14362 \begin_layout Plain Layout
14363 MM
14364 \end_layout
14365
14366 \end_inset
14367
14368
14369 \begin_inset Quotes erd
14370 \end_inset
14371
14372  means that the paragraph is indented with the width of 
14373 \begin_inset Quotes eld
14374 \end_inset
14375
14376
14377 \begin_inset Flex Code
14378 status collapsed
14379
14380 \begin_layout Plain Layout
14381 MM
14382 \end_layout
14383
14384 \end_inset
14385
14386
14387 \begin_inset Quotes erd
14388 \end_inset
14389
14390  in the normal font.
14391  You can get a negative width by prefixing the string with 
14392 \begin_inset Quotes eld
14393 \end_inset
14394
14395
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 -
14401 \end_layout
14402
14403 \end_inset
14404
14405
14406 \begin_inset Quotes erd
14407 \end_inset
14408
14409 .
14410  This way was chosen so that the look is the same with each used screen
14411  font.
14412 \end_layout
14413
14414 \begin_layout Description
14415 \begin_inset Flex Code
14416 status collapsed
14417
14418 \begin_layout Plain Layout
14419 Margin
14420 \end_layout
14421
14422 \end_inset
14423
14424  [
14425 \begin_inset Flex Code
14426 status collapsed
14427
14428 \begin_layout Plain Layout
14429
14430 \emph on
14431 Static
14432 \emph default
14433 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14434 \end_layout
14435
14436 \end_inset
14437
14438
14439 \begin_inset Newline newline
14440 \end_inset
14441
14442 The kind of margin that the style has on the left side.
14443 \end_layout
14444
14445 \begin_deeper
14446 \begin_layout Description
14447 \begin_inset Flex Code
14448 status collapsed
14449
14450 \begin_layout Plain Layout
14451 Static
14452 \end_layout
14453
14454 \end_inset
14455
14456  just means a fixed margin.
14457 \end_layout
14458
14459 \begin_layout Description
14460 \begin_inset Flex Code
14461 status collapsed
14462
14463 \begin_layout Plain Layout
14464 Manual
14465 \end_layout
14466
14467 \end_inset
14468
14469  means that the left margin depends on the string entered in the 
14470 \begin_inset Flex Noun
14471 status collapsed
14472
14473 \begin_layout Plain Layout
14474 Edit\SpecialChar menuseparator
14475 Paragraph
14476 \begin_inset space ~
14477 \end_inset
14478
14479 Settings
14480 \end_layout
14481
14482 \end_inset
14483
14484  dialog.
14485  This is used to typeset nice lists without tabulators.
14486 \end_layout
14487
14488 \begin_layout Description
14489 \begin_inset Flex Code
14490 status collapsed
14491
14492 \begin_layout Plain Layout
14493 Dynamic
14494 \end_layout
14495
14496 \end_inset
14497
14498  means that the margin depends on the size of the label.
14499  This is used for automatic enumerated headlines.
14500  It is obvious that the headline 
14501 \begin_inset Quotes eld
14502 \end_inset
14503
14504 5.4.3.2.1 Very long headline
14505 \begin_inset Quotes erd
14506 \end_inset
14507
14508  must have a wider left margin (as wide as 
14509 \begin_inset Quotes eld
14510 \end_inset
14511
14512 5.4.3.2.1
14513 \begin_inset Quotes erd
14514 \end_inset
14515
14516  plus the space) than 
14517 \begin_inset Quotes eld
14518 \end_inset
14519
14520 3.2 Very long headline
14521 \begin_inset Quotes erd
14522 \end_inset
14523
14524 , even if standard 
14525 \begin_inset Quotes eld
14526 \end_inset
14527
14528 word processors
14529 \begin_inset Quotes erd
14530 \end_inset
14531
14532  are not able to do this.
14533 \end_layout
14534
14535 \begin_layout Description
14536 \begin_inset Flex Code
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540 First_Dynamic
14541 \end_layout
14542
14543 \end_inset
14544
14545  is similar, but only the very first row of the paragraph is dynamic, while
14546  the others are static; this is used, for example, for descriptions.
14547 \end_layout
14548
14549 \begin_layout Description
14550 \begin_inset Flex Code
14551 status collapsed
14552
14553 \begin_layout Plain Layout
14554 Right_Address_Box
14555 \end_layout
14556
14557 \end_inset
14558
14559  means the margin is chosen in a way that the longest row of this paragraph
14560  fits to the right margin.
14561  This is used to typeset an address on the right edge of the page.
14562 \end_layout
14563
14564 \end_deeper
14565 \begin_layout Description
14566 \begin_inset Flex Code
14567 status collapsed
14568
14569 \begin_layout Plain Layout
14570 NeedProtect
14571 \end_layout
14572
14573 \end_inset
14574
14575  [
14576 \begin_inset Flex Code
14577 status collapsed
14578
14579 \begin_layout Plain Layout
14580
14581 \emph on
14582 0
14583 \end_layout
14584
14585 \end_inset
14586
14587 ,
14588 \begin_inset space \thinspace{}
14589 \end_inset
14590
14591
14592 \begin_inset Flex Code
14593 status collapsed
14594
14595 \begin_layout Plain Layout
14596 1
14597 \end_layout
14598
14599 \end_inset
14600
14601 ] Whether fragile commands in this style should be 
14602 \begin_inset Flex Code
14603 status collapsed
14604
14605 \begin_layout Plain Layout
14606
14607 \backslash
14608 protect
14609 \end_layout
14610
14611 \end_inset
14612
14613 'ed.
14614  (Note: This is 
14615 \emph on
14616 not
14617 \emph default
14618  whether this command should itself be protected.)
14619 \end_layout
14620
14621 \begin_layout Description
14622 \begin_inset Flex Code
14623 status collapsed
14624
14625 \begin_layout Plain Layout
14626 Newline
14627 \end_layout
14628
14629 \end_inset
14630
14631  [
14632 \begin_inset Flex Code
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636 0
14637 \end_layout
14638
14639 \end_inset
14640
14641 ,
14642 \begin_inset space \thinspace{}
14643 \end_inset
14644
14645
14646 \begin_inset Flex Code
14647 status collapsed
14648
14649 \begin_layout Plain Layout
14650
14651 \emph on
14652 1
14653 \end_layout
14654
14655 \end_inset
14656
14657 ] Whether newlines are translated into \SpecialChar LaTeX
14658  newlines (
14659 \begin_inset Flex Code
14660 status collapsed
14661
14662 \begin_layout Plain Layout
14663
14664 \backslash
14665
14666 \backslash
14667
14668 \end_layout
14669
14670 \end_inset
14671
14672 ) or not.
14673  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14674  editing
14675  inside \SpecialChar LyX
14676 .
14677 \end_layout
14678
14679 \begin_layout Description
14680 \begin_inset Flex Code
14681 status collapsed
14682
14683 \begin_layout Plain Layout
14684 NextNoIndent
14685 \end_layout
14686
14687 \end_inset
14688
14689  [
14690 \begin_inset Flex Code
14691 status collapsed
14692
14693 \begin_layout Plain Layout
14694
14695 \emph on
14696 0
14697 \end_layout
14698
14699 \end_inset
14700
14701 ,
14702 \begin_inset space \thinspace{}
14703 \end_inset
14704
14705
14706 \begin_inset Flex Code
14707 status collapsed
14708
14709 \begin_layout Plain Layout
14710 1
14711 \end_layout
14712
14713 \end_inset
14714
14715 ] If set to true, and if 
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 DefaultStyle
14721 \end_layout
14722
14723 \end_inset
14724
14725  (usually 
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 Standard
14731 \end_layout
14732
14733 \end_inset
14734
14735 ) paragraphs are being indented, then the indentation of such a paragraph
14736  following one of this type will be suppressed.
14737  (So this will not affect the display of non-default paragraphs.)
14738 \end_layout
14739
14740 \begin_layout Description
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745 ObsoletedBy
14746 \end_layout
14747
14748 \end_inset
14749
14750  [
14751 \begin_inset Flex Code
14752 status collapsed
14753
14754 \begin_layout Plain Layout
14755 <name>
14756 \end_layout
14757
14758 \end_inset
14759
14760 ] Name of a style that has replaced this style.
14761  This is used to rename a style, while keeping backward compatibility.
14762 \end_layout
14763
14764 \begin_layout Description
14765 \begin_inset Flex Code
14766 status collapsed
14767
14768 \begin_layout Plain Layout
14769 ParagraphGroup
14770 \end_layout
14771
14772 \end_inset
14773
14774  [
14775 \begin_inset Flex Code
14776 status collapsed
14777
14778 \begin_layout Plain Layout
14779 0
14780 \end_layout
14781
14782 \end_inset
14783
14784 ,
14785 \begin_inset space \thinspace{}
14786 \end_inset
14787
14788
14789 \begin_inset Flex Code
14790 status collapsed
14791
14792 \begin_layout Plain Layout
14793 1
14794 \end_layout
14795
14796 \end_inset
14797
14798 ] Determines whether consecutive paragraphs of the same type are treated
14799  as belonging together.
14800  This has the effect that the 
14801 \begin_inset Flex Code
14802 status collapsed
14803
14804 \begin_layout Plain Layout
14805 GuiLabel
14806 \end_layout
14807
14808 \end_inset
14809
14810  is only printed once before such a group.
14811  By default, this is true for 
14812 \begin_inset Flex Code
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816 LaTeXType
14817 \end_layout
14818
14819 \end_inset
14820
14821  
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 Environment
14827 \end_layout
14828
14829 \end_inset
14830
14831  and 
14832 \begin_inset Flex Code
14833 status collapsed
14834
14835 \begin_layout Plain Layout
14836 Bib_Environment
14837 \end_layout
14838
14839 \end_inset
14840
14841  and false for all other types.
14842 \end_layout
14843
14844 \begin_layout Description
14845 \begin_inset Flex Code
14846 status collapsed
14847
14848 \begin_layout Plain Layout
14849 ParbreakIsNewline
14850 \end_layout
14851
14852 \end_inset
14853
14854  [
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859
14860 \emph on
14861 0
14862 \end_layout
14863
14864 \end_inset
14865
14866 ,
14867 \begin_inset space \thinspace{}
14868 \end_inset
14869
14870
14871 \begin_inset Flex Code
14872 status collapsed
14873
14874 \begin_layout Plain Layout
14875 1
14876 \end_layout
14877
14878 \end_inset
14879
14880 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14881  output,
14882  but only by a line break; together with 
14883 \begin_inset Flex Code
14884 status collapsed
14885
14886 \begin_layout Plain Layout
14887 PassThru 1
14888 \end_layout
14889
14890 \end_inset
14891
14892 , this allows to emulate a plain text editor (like the ERT inset).
14893 \end_layout
14894
14895 \begin_layout Description
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 ParIndent
14901 \end_layout
14902
14903 \end_inset
14904
14905  [
14906 \begin_inset Flex Code
14907 status collapsed
14908
14909 \begin_layout Plain Layout
14910 string=""
14911 \end_layout
14912
14913 \end_inset
14914
14915 ] The indent of the very first line of a paragraph.
14916  The
14917 \begin_inset Newline newline
14918 \end_inset
14919
14920
14921 \begin_inset Flex Code
14922 status collapsed
14923
14924 \begin_layout Plain Layout
14925 Parindent
14926 \end_layout
14927
14928 \end_inset
14929
14930  will be fixed for a certain style.
14931  The exception is the default style, since the indentation for these paragraphs
14932  can be prohibited with 
14933 \begin_inset Flex Code
14934 status collapsed
14935
14936 \begin_layout Plain Layout
14937 NextNoIndent
14938 \end_layout
14939
14940 \end_inset
14941
14942 .
14943  Also, 
14944 \begin_inset Flex Code
14945 status collapsed
14946
14947 \begin_layout Plain Layout
14948 Standard
14949 \end_layout
14950
14951 \end_inset
14952
14953  style paragraphs inside environments use the 
14954 \begin_inset Flex Code
14955 status collapsed
14956
14957 \begin_layout Plain Layout
14958 Parindent
14959 \end_layout
14960
14961 \end_inset
14962
14963  of the environment, not their native one.
14964  For example, 
14965 \begin_inset Flex Code
14966 status collapsed
14967
14968 \begin_layout Plain Layout
14969 Standard
14970 \end_layout
14971
14972 \end_inset
14973
14974  paragraphs inside an enumeration are not indented.
14975 \end_layout
14976
14977 \begin_layout Description
14978 \begin_inset Flex Code
14979 status collapsed
14980
14981 \begin_layout Plain Layout
14982 ParSep
14983 \end_layout
14984
14985 \end_inset
14986
14987  [
14988 \begin_inset Flex Code
14989 status collapsed
14990
14991 \begin_layout Plain Layout
14992 float=0
14993 \end_layout
14994
14995 \end_inset
14996
14997 ] The vertical space between two paragraphs of this style.
14998 \end_layout
14999
15000 \begin_layout Description
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005 Parskip
15006 \end_layout
15007
15008 \end_inset
15009
15010  [
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 float=0
15016 \end_layout
15017
15018 \end_inset
15019
15020 ] \SpecialChar LyX
15021  allows the user to choose either 
15022 \begin_inset Quotes eld
15023 \end_inset
15024
15025 indent
15026 \begin_inset Quotes erd
15027 \end_inset
15028
15029  or 
15030 \begin_inset Quotes eld
15031 \end_inset
15032
15033 skip
15034 \begin_inset Quotes erd
15035 \end_inset
15036
15037  to separate paragraphs.
15038  When 
15039 \begin_inset Quotes eld
15040 \end_inset
15041
15042 indent
15043 \begin_inset Quotes erd
15044 \end_inset
15045
15046  is chosen, 
15047 \begin_inset Flex Code
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 Parskip
15052 \end_layout
15053
15054 \end_inset
15055
15056  is ignored.
15057  When 
15058 \begin_inset Quotes eld
15059 \end_inset
15060
15061 skip
15062 \begin_inset Quotes erd
15063 \end_inset
15064
15065  is chosen, 
15066 \begin_inset Flex Code
15067 status collapsed
15068
15069 \begin_layout Plain Layout
15070 ParIndent
15071 \end_layout
15072
15073 \end_inset
15074
15075  is ignored and all paragraphs are separated by the 
15076 \begin_inset Flex Code
15077 status collapsed
15078
15079 \begin_layout Plain Layout
15080 Parskip
15081 \end_layout
15082
15083 \end_inset
15084
15085  argument.
15086  The vertical space is calculated with 
15087 \begin_inset Flex Code
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091 Parskip
15092 \begin_inset space ~
15093 \end_inset
15094
15095 * DefaultHeight
15096 \end_layout
15097
15098 \end_inset
15099
15100  where 
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 DefaultHeight
15106 \end_layout
15107
15108 \end_inset
15109
15110  is the height of a row with the normal font.
15111  This way, the look stays the same with different screen fonts.
15112 \end_layout
15113
15114 \begin_layout Description
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119 PassThru
15120 \end_layout
15121
15122 \end_inset
15123
15124  [
15125 \begin_inset Flex Code
15126 status collapsed
15127
15128 \begin_layout Plain Layout
15129
15130 \emph on
15131 0
15132 \end_layout
15133
15134 \end_inset
15135
15136 ,
15137 \begin_inset space \thinspace{}
15138 \end_inset
15139
15140
15141 \begin_inset Flex Code
15142 status collapsed
15143
15144 \begin_layout Plain Layout
15145 1
15146 \end_layout
15147
15148 \end_inset
15149
15150 ] Whether the contents of this paragraph should be output in raw form, meaning
15151  without special translations that \SpecialChar LaTeX
15152  would require.
15153 \end_layout
15154
15155 \begin_layout Description
15156 \begin_inset Flex Code
15157 status collapsed
15158
15159 \begin_layout Plain Layout
15160 PassThruChars
15161 \end_layout
15162
15163 \end_inset
15164
15165  [
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 string
15171 \end_layout
15172
15173 \end_inset
15174
15175 ]
15176 \family typewriter
15177  
15178 \family default
15179 Defines individual characters that should be output in raw form, meaning
15180  without special translations that \SpecialChar LaTeX
15181  would require.
15182 \end_layout
15183
15184 \begin_layout Description
15185 \begin_inset Flex Code
15186 status collapsed
15187
15188 \begin_layout Plain Layout
15189 Preamble
15190 \end_layout
15191
15192 \end_inset
15193
15194  Information to be included in the \SpecialChar LaTeX
15195  preamble when this style is used.
15196  Used to define macros, load packages, etc., required by this particular
15197  style.
15198  Must end with 
15199 \begin_inset Quotes eld
15200 \end_inset
15201
15202
15203 \begin_inset Flex Code
15204 status collapsed
15205
15206 \begin_layout Plain Layout
15207 EndPreamble
15208 \end_layout
15209
15210 \end_inset
15211
15212
15213 \begin_inset Quotes erd
15214 \end_inset
15215
15216 .
15217 \end_layout
15218
15219 \begin_layout Description
15220 \begin_inset Flex Code
15221 status collapsed
15222
15223 \begin_layout Plain Layout
15224 RefPrefix
15225 \end_layout
15226
15227 \end_inset
15228
15229  [
15230 \begin_inset Flex Code
15231 status collapsed
15232
15233 \begin_layout Plain Layout
15234 string
15235 \end_layout
15236
15237 \end_inset
15238
15239 ] The prefix to use when creating labels referring to paragraphs of this
15240  type.
15241  This allows the use of formatted references.
15242 \end_layout
15243
15244 \begin_layout Description
15245 \begin_inset Flex Code
15246 status collapsed
15247
15248 \begin_layout Plain Layout
15249 Requires 
15250 \end_layout
15251
15252 \end_inset
15253
15254  [
15255 \begin_inset Flex Code
15256 status collapsed
15257
15258 \begin_layout Plain Layout
15259 string
15260 \end_layout
15261
15262 \end_inset
15263
15264 ] Whether the style requires the feature 
15265 \begin_inset Flex Code
15266 status collapsed
15267
15268 \begin_layout Plain Layout
15269 string
15270 \end_layout
15271
15272 \end_inset
15273
15274  (see 
15275 \begin_inset CommandInset ref
15276 LatexCommand ref
15277 reference "chap:List-of-functions"
15278
15279 \end_inset
15280
15281  for the list of features).
15282  If you require a package with specific options, you can additionally use
15283  
15284 \begin_inset Flex Code
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288 PackageOptions
15289 \end_layout
15290
15291 \end_inset
15292
15293  as a general text class parameter (see 
15294 \begin_inset CommandInset ref
15295 LatexCommand ref
15296 reference "subsec:General-text-class"
15297
15298 \end_inset
15299
15300 ).
15301 \end_layout
15302
15303 \begin_layout Description
15304 \begin_inset Flex Code
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 ResetArgs
15309 \end_layout
15310
15311 \end_inset
15312
15313  [
15314 \begin_inset Flex Code
15315 status collapsed
15316
15317 \begin_layout Plain Layout
15318
15319 \emph on
15320 0
15321 \end_layout
15322
15323 \end_inset
15324
15325 ,
15326 \begin_inset Flex Code
15327 status collapsed
15328
15329 \begin_layout Plain Layout
15330 1
15331 \end_layout
15332
15333 \end_inset
15334
15335 ] Resets the \SpecialChar LaTeX
15336  arguments of this style (as defined via the 
15337 \begin_inset Flex Code
15338 status collapsed
15339
15340 \begin_layout Plain Layout
15341 Argument
15342 \end_layout
15343
15344 \end_inset
15345
15346  tag).
15347  This is useful if you have copied a style via 
15348 \begin_inset Flex Code
15349 status collapsed
15350
15351 \begin_layout Plain Layout
15352 CopyStyle
15353 \end_layout
15354
15355 \end_inset
15356
15357 , but you do not want to inherit its (required and optional) arguments.
15358 \end_layout
15359
15360 \begin_layout Description
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 ResumeCounter
15366 \end_layout
15367
15368 \end_inset
15369
15370  [
15371 \begin_inset Flex Code
15372 status collapsed
15373
15374 \begin_layout Plain Layout
15375
15376 \emph on
15377 0
15378 \end_layout
15379
15380 \end_inset
15381
15382 ,
15383 \begin_inset Flex Code
15384 status collapsed
15385
15386 \begin_layout Plain Layout
15387 1
15388 \end_layout
15389
15390 \end_inset
15391
15392 ] Resumes a counter that is usually reset at each new sequence of layouts.
15393  This is currently only useful when 
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 LabelType
15399 \end_layout
15400
15401 \end_inset
15402
15403  is 
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 Enumerate
15409 \end_layout
15410
15411 \end_inset
15412
15413 .
15414 \end_layout
15415
15416 \begin_layout Description
15417 \begin_inset Flex Code
15418 status collapsed
15419
15420 \begin_layout Plain Layout
15421 RightDelim
15422 \end_layout
15423
15424 \end_inset
15425
15426  [
15427 \begin_inset Flex Code
15428 status collapsed
15429
15430 \begin_layout Plain Layout
15431 string
15432 \end_layout
15433
15434 \end_inset
15435
15436 ] A string that is put at the end of the layout content.
15437  A line break in the output can be indicated by 
15438 \begin_inset Flex Code
15439 status collapsed
15440
15441 \begin_layout Plain Layout
15442 <br/>
15443 \end_layout
15444
15445 \end_inset
15446
15447 .
15448 \end_layout
15449
15450 \begin_layout Description
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455 RightMargin
15456 \end_layout
15457
15458 \end_inset
15459
15460  [
15461 \begin_inset Flex Code
15462 status collapsed
15463
15464 \begin_layout Plain Layout
15465 string=""
15466 \end_layout
15467
15468 \end_inset
15469
15470 ] Similar to 
15471 \begin_inset Flex Code
15472 status collapsed
15473
15474 \begin_layout Plain Layout
15475 LeftMargin
15476 \end_layout
15477
15478 \end_inset
15479
15480 .
15481 \end_layout
15482
15483 \begin_layout Description
15484 \begin_inset Flex Code
15485 status collapsed
15486
15487 \begin_layout Plain Layout
15488 Spacing
15489 \end_layout
15490
15491 \end_inset
15492
15493  [
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498
15499 \emph on
15500 single
15501 \end_layout
15502
15503 \end_inset
15504
15505
15506 \begin_inset Flex Code
15507 status collapsed
15508
15509 \begin_layout Plain Layout
15510 onehalf
15511 \end_layout
15512
15513 \end_inset
15514
15515
15516 \begin_inset Flex Code
15517 status collapsed
15518
15519 \begin_layout Plain Layout
15520 double
15521 \end_layout
15522
15523 \end_inset
15524
15525
15526 \begin_inset Flex Code
15527 status collapsed
15528
15529 \begin_layout Plain Layout
15530 other
15531 \begin_inset space ~
15532 \end_inset
15533
15534 <value>
15535 \end_layout
15536
15537 \end_inset
15538
15539 ] This defines what the default spacing should be in the style.
15540  The arguments 
15541 \begin_inset Flex Code
15542 status collapsed
15543
15544 \begin_layout Plain Layout
15545 single
15546 \end_layout
15547
15548 \end_inset
15549
15550
15551 \begin_inset Flex Code
15552 status collapsed
15553
15554 \begin_layout Plain Layout
15555 onehalf
15556 \end_layout
15557
15558 \end_inset
15559
15560  and 
15561 \begin_inset Flex Code
15562 status collapsed
15563
15564 \begin_layout Plain Layout
15565 double
15566 \end_layout
15567
15568 \end_inset
15569
15570  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15571  If you specify the argument 
15572 \begin_inset Flex Code
15573 status collapsed
15574
15575 \begin_layout Plain Layout
15576 other
15577 \end_layout
15578
15579 \end_inset
15580
15581 , then you must also provide a value argument which will be the actual multiplie
15582 r value.
15583  Note that, contrary to other parameters, 
15584 \begin_inset Flex Code
15585 status collapsed
15586
15587 \begin_layout Plain Layout
15588 Spacing
15589 \end_layout
15590
15591 \end_inset
15592
15593  implies the generation of specific \SpecialChar LaTeX
15594  code, using the \SpecialChar LaTeX
15595  package 
15596 \family roman
15597
15598 \begin_inset Flex Code
15599 status collapsed
15600
15601 \begin_layout Plain Layout
15602 setspace
15603 \end_layout
15604
15605 \end_inset
15606
15607 .
15608 \end_layout
15609
15610 \begin_layout Description
15611 \begin_inset Flex Code
15612 status collapsed
15613
15614 \begin_layout Plain Layout
15615 Spellcheck
15616 \end_layout
15617
15618 \end_inset
15619
15620  [
15621 \begin_inset Flex Code
15622 status collapsed
15623
15624 \begin_layout Plain Layout
15625 0
15626 \end_layout
15627
15628 \end_inset
15629
15630 ,
15631 \begin_inset space \thinspace{}
15632 \end_inset
15633
15634
15635 \begin_inset Flex Code
15636 status collapsed
15637
15638 \begin_layout Plain Layout
15639
15640 \emph on
15641 1
15642 \end_layout
15643
15644 \end_inset
15645
15646 ] Allow spell-checking paragraphs of this style.
15647  Default is true.
15648 \end_layout
15649
15650 \begin_layout Description
15651 \begin_inset Flex Code
15652 status collapsed
15653
15654 \begin_layout Plain Layout
15655 StepMasterCounter
15656 \end_layout
15657
15658 \end_inset
15659
15660  [
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665
15666 \emph on
15667 0
15668 \end_layout
15669
15670 \end_inset
15671
15672 ,
15673 \begin_inset Flex Code
15674 status collapsed
15675
15676 \begin_layout Plain Layout
15677 1
15678 \end_layout
15679
15680 \end_inset
15681
15682 ] Steps the master counter of a given counter at the beginning of a new
15683  sequence of layouts.
15684  This is currently only useful when 
15685 \begin_inset Flex Code
15686 status collapsed
15687
15688 \begin_layout Plain Layout
15689 LabelType
15690 \end_layout
15691
15692 \end_inset
15693
15694  is 
15695 \begin_inset Flex Code
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699 Enumerate
15700 \end_layout
15701
15702 \end_inset
15703
15704 .
15705 \end_layout
15706
15707 \begin_layout Description
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 TextFont
15713 \end_layout
15714
15715 \end_inset
15716
15717  The font used for the text body .
15718  See 
15719 \begin_inset CommandInset ref
15720 LatexCommand ref
15721 reference "subsec:Font-description"
15722
15723 \end_inset
15724
15725 .
15726 \end_layout
15727
15728 \begin_layout Description
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733 TocLevel
15734 \end_layout
15735
15736 \end_inset
15737
15738
15739 \series medium
15740  [
15741 \begin_inset Flex Code
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745
15746 \series medium
15747 int=3
15748 \end_layout
15749
15750 \end_inset
15751
15752 ]
15753 \series default
15754  The level of the style in the table of contents.
15755  This is used for automatic numbering of section headings.
15756 \end_layout
15757
15758 \begin_layout Description
15759 \begin_inset Flex Code
15760 status collapsed
15761
15762 \begin_layout Plain Layout
15763 ToggleIndent
15764 \end_layout
15765
15766 \end_inset
15767
15768  [
15769 \emph on
15770
15771 \begin_inset Flex Code
15772 status collapsed
15773
15774 \begin_layout Plain Layout
15775
15776 \emph on
15777 default
15778 \end_layout
15779
15780 \end_inset
15781
15782
15783 \emph default
15784
15785 \begin_inset Flex Code
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789 always
15790 \end_layout
15791
15792 \end_inset
15793
15794
15795 \begin_inset Flex Code
15796 status collapsed
15797
15798 \begin_layout Plain Layout
15799 never
15800 \end_layout
15801
15802 \end_inset
15803
15804 ] This tag determines whether the first line indentation of this paragraph
15805  can be toggled via the Paragraph settings dialog.
15806  If 
15807 \emph on
15808
15809 \begin_inset Flex Code
15810 status collapsed
15811
15812 \begin_layout Plain Layout
15813
15814 \emph off
15815 default
15816 \end_layout
15817
15818 \end_inset
15819
15820
15821 \emph default
15822  is set, indentation can be toggled if the document settings use 
15823 \begin_inset Quotes eld
15824 \end_inset
15825
15826 indent
15827 \begin_inset Quotes erd
15828 \end_inset
15829
15830  paragraph style, with 
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 always
15836 \end_layout
15837
15838 \end_inset
15839
15840 , indentation can always be toggled, notwithstanding the document settings,
15841  with 
15842 \begin_inset Flex Code
15843 status collapsed
15844
15845 \begin_layout Plain Layout
15846 never
15847 \end_layout
15848
15849 \end_inset
15850
15851 , indentation can never be toggled.
15852 \end_layout
15853
15854 \begin_layout Description
15855 \begin_inset Flex Code
15856 status collapsed
15857
15858 \begin_layout Plain Layout
15859 TopSep
15860 \end_layout
15861
15862 \end_inset
15863
15864  [
15865 \begin_inset Flex Code
15866 status collapsed
15867
15868 \begin_layout Plain Layout
15869 float=0
15870 \end_layout
15871
15872 \end_inset
15873
15874 ] The vertical space with which the very first of a chain of paragraphs
15875  with this style is separated from the previous paragraph.
15876  If the previous paragraph has another style, the separations are not simply
15877  added, but the maximum is taken.
15878 \end_layout
15879
15880 \begin_layout Subsection
15881 \begin_inset CommandInset label
15882 LatexCommand label
15883 name "subsec:I18n"
15884
15885 \end_inset
15886
15887 Internationalization of Paragraph Styles
15888 \end_layout
15889
15890 \begin_layout Standard
15891 \SpecialChar LyX
15892  has long supported internationalization of layout information, but, until
15893  version 2.0, this applied only to the user interface and not to, say, PDF
15894  output.
15895  Thus, French authors were forced to resort to ugly hacks if they wanted
15896  `
15897 \lang french
15898 Théorème
15899 \lang english
15900  1' instead of `Theorem 1'.
15901  Thanks to Georg Baum, that is no longer the case.
15902 \end_layout
15903
15904 \begin_layout Standard
15905 If a 
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 Style
15911 \end_layout
15912
15913 \end_inset
15914
15915  defines text that is to appear in the typeset document, it may use 
15916 \begin_inset Flex Code
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920 LangPreamble
15921 \end_layout
15922
15923 \end_inset
15924
15925  and 
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 BabelPreamble
15931 \end_layout
15932
15933 \end_inset
15934
15935  to support non-English and even multi-language documents correctly.
15936  The following excerpt (from the 
15937 \begin_inset Flex Code
15938 status collapsed
15939
15940 \begin_layout Plain Layout
15941 theorems-ams.inc
15942 \end_layout
15943
15944 \end_inset
15945
15946  file) shows how this works:
15947 \end_layout
15948
15949 \begin_layout LyX-Code
15950 Preamble
15951 \end_layout
15952
15953 \begin_deeper
15954 \begin_layout LyX-Code
15955   
15956 \backslash
15957 theoremstyle{remark}
15958 \end_layout
15959
15960 \begin_layout LyX-Code
15961   
15962 \backslash
15963 newtheorem{claim}[thm]{
15964 \backslash
15965 protect
15966 \backslash
15967 claimname}
15968 \end_layout
15969
15970 \begin_layout LyX-Code
15971 EndPreamble
15972 \end_layout
15973
15974 \begin_layout LyX-Code
15975 LangPreamble
15976 \end_layout
15977
15978 \begin_layout LyX-Code
15979   
15980 \backslash
15981 providecommand{
15982 \backslash
15983 claimname}{_(Claim)}
15984 \end_layout
15985
15986 \begin_layout LyX-Code
15987 EndLangPreamble
15988 \end_layout
15989
15990 \begin_layout LyX-Code
15991 BabelPreamble
15992 \end_layout
15993
15994 \begin_layout LyX-Code
15995     
15996 \backslash
15997 addto
15998 \backslash
15999 captions$$lang{
16000 \backslash
16001 renewcommand{
16002 \backslash
16003 claimname}{_(Claim)}}
16004 \end_layout
16005
16006 \begin_layout LyX-Code
16007 EndBabelPreamble
16008 \end_layout
16009
16010 \end_deeper
16011 \begin_layout Standard
16012 In principle, any legal \SpecialChar LaTeX
16013  may appear in the 
16014 \begin_inset Flex Code
16015 status collapsed
16016
16017 \begin_layout Plain Layout
16018 LangPreamble
16019 \end_layout
16020
16021 \end_inset
16022
16023  and 
16024 \begin_inset Flex Code
16025 status collapsed
16026
16027 \begin_layout Plain Layout
16028 BabelPreamble
16029 \end_layout
16030
16031 \end_inset
16032
16033  tags, but in practice they will typically look as they do here.
16034  The key to correct translation of the typeset text is the definition of
16035  the \SpecialChar LaTeX
16036  command 
16037 \begin_inset Flex Code
16038 status collapsed
16039
16040 \begin_layout Plain Layout
16041
16042 \backslash
16043 claimname
16044 \end_layout
16045
16046 \end_inset
16047
16048  and its use in 
16049 \begin_inset Flex Code
16050 status collapsed
16051
16052 \begin_layout Plain Layout
16053
16054 \backslash
16055 newtheorem
16056 \end_layout
16057
16058 \end_inset
16059
16060 .
16061  
16062 \end_layout
16063
16064 \begin_layout Standard
16065 The 
16066 \begin_inset Flex Code
16067 status collapsed
16068
16069 \begin_layout Plain Layout
16070 LangPreamble
16071 \end_layout
16072
16073 \end_inset
16074
16075  tag provides for internationalization based upon the overall language of
16076  the document.
16077  The contents of the tag will be included in the preamble, just as with
16078  the 
16079 \begin_inset Flex Code
16080 status collapsed
16081
16082 \begin_layout Plain Layout
16083 Preamble
16084 \end_layout
16085
16086 \end_inset
16087
16088  tag.
16089  What makes it special is the use of the 
16090 \begin_inset Quotes eld
16091 \end_inset
16092
16093 function
16094 \begin_inset Quotes erd
16095 \end_inset
16096
16097  
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 _()
16103 \end_layout
16104
16105 \end_inset
16106
16107 , which will be replaced, when \SpecialChar LyX
16108  produces \SpecialChar LaTeX
16109  output, with the translation of
16110  its argument into the document language.
16111 \end_layout
16112
16113 \begin_layout Standard
16114 The 
16115 \begin_inset Flex Code
16116 status collapsed
16117
16118 \begin_layout Plain Layout
16119 BabelPreamble
16120 \end_layout
16121
16122 \end_inset
16123
16124  tag is more complex, since it is meant to provide support for multi-language
16125  documents and so offers an interface to the 
16126 \begin_inset Flex Code
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 babel
16131 \end_layout
16132
16133 \end_inset
16134
16135  package.
16136  Its contents will be added to the preamble once for each language that
16137  appears in the document.
16138  In this case, the argument to 
16139 \begin_inset Flex Code
16140 status collapsed
16141
16142 \begin_layout Plain Layout
16143 _()
16144 \end_layout
16145
16146 \end_inset
16147
16148  will be replaced with its translation into the language in question; the
16149  expression 
16150 \begin_inset Flex Code
16151 status collapsed
16152
16153 \begin_layout Plain Layout
16154 $$lang
16155 \end_layout
16156
16157 \end_inset
16158
16159  is replaced by the language name (as used by the babel package).
16160 \end_layout
16161
16162 \begin_layout Standard
16163 A German document that also included a French section would thus have the
16164  following in the preamble:
16165 \end_layout
16166
16167 \begin_layout LyX-Code
16168
16169 \backslash
16170 addto
16171 \backslash
16172 captionsfrench{
16173 \backslash
16174 renewcommand{
16175 \backslash
16176 claimname}{Affirmation}}
16177 \begin_inset Newline newline
16178 \end_inset
16179
16180
16181 \backslash
16182 addto
16183 \backslash
16184 captionsngerman{
16185 \backslash
16186 renewcommand{
16187 \backslash
16188 claimname}{Behauptung}}
16189 \begin_inset Newline newline
16190 \end_inset
16191
16192
16193 \backslash
16194 providecommand{
16195 \backslash
16196 claimname}{Behauptung}
16197 \end_layout
16198
16199 \begin_layout Standard
16200 \SpecialChar LaTeX
16201  and 
16202 \begin_inset Flex Code
16203 status collapsed
16204
16205 \begin_layout Plain Layout
16206 babel
16207 \end_layout
16208
16209 \end_inset
16210
16211  will then conspire to produce the correct text in the output.
16212 \end_layout
16213
16214 \begin_layout Standard
16215 One important point to note here is that the translations are provided by
16216  \SpecialChar LyX
16217  itself, through the file 
16218 \begin_inset Flex Code
16219 status collapsed
16220
16221 \begin_layout Plain Layout
16222 layouttranslations
16223 \end_layout
16224
16225 \end_inset
16226
16227 .
16228  This means, in effect, that 
16229 \begin_inset Flex Code
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 LangPreamble
16234 \end_layout
16235
16236 \end_inset
16237
16238  and 
16239 \begin_inset Flex Code
16240 status collapsed
16241
16242 \begin_layout Plain Layout
16243 BabelPreamble
16244 \end_layout
16245
16246 \end_inset
16247
16248  are really only of use in layout files that are provided with \SpecialChar LyX
16249 , since text
16250  entered in user-created layout files will not be seen by \SpecialChar LyX
16251 's internationalizatio
16252 n routines unless the 
16253 \begin_inset Flex Code
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257 layouttranslations
16258 \end_layout
16259
16260 \end_inset
16261
16262  file is modified accordingly.
16263  That said, however, any layout created with the intention that it will
16264  be included with \SpecialChar LyX
16265  should use these tags where appropriate.
16266  Please note that the paragraph style translations provided by \SpecialChar LyX
16267  will never
16268  change with a minor update (e.
16269 \begin_inset space \thinspace{}
16270 \end_inset
16271
16272 g.
16273 \begin_inset space \space{}
16274 \end_inset
16275
16276 from version 2.1.x to 2.1.y).
16277  It is however quite likely that a major update (e.
16278 \begin_inset space \thinspace{}
16279 \end_inset
16280
16281 g.
16282 \begin_inset space \space{}
16283 \end_inset
16284
16285 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16286 \end_layout
16287
16288 \begin_layout Subsection
16289 Floats
16290 \begin_inset CommandInset label
16291 LatexCommand label
16292 name "subsec:Floats"
16293
16294 \end_inset
16295
16296
16297 \end_layout
16298
16299 \begin_layout Standard
16300 It is necessary to define the floats (
16301 \begin_inset Flex Noun
16302 status collapsed
16303
16304 \begin_layout Plain Layout
16305 figure
16306 \end_layout
16307
16308 \end_inset
16309
16310
16311 \begin_inset Flex Noun
16312 status collapsed
16313
16314 \begin_layout Plain Layout
16315 table
16316 \end_layout
16317
16318 \end_inset
16319
16320 , \SpecialChar ldots
16321 ) in the text class itself.
16322  Standard floats are included in the file 
16323 \begin_inset Flex Code
16324 status collapsed
16325
16326 \begin_layout Plain Layout
16327 stdfloats.inc
16328 \end_layout
16329
16330 \end_inset
16331
16332 , so you may have to do no more than add
16333 \end_layout
16334
16335 \begin_layout LyX-Code
16336 Input stdfloats.inc
16337 \end_layout
16338
16339 \begin_layout Standard
16340 to your layout file.
16341  If you want to implement a text class that proposes some other float types
16342  (like the AGU class bundled with \SpecialChar LyX
16343 ), the information below will hopefully
16344  help you:
16345 \end_layout
16346
16347 \begin_layout Description
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 AllowedPlacement
16353 \end_layout
16354
16355 \end_inset
16356
16357  [
16358 \begin_inset Flex Code
16359 status collapsed
16360
16361 \begin_layout Plain Layout
16362 string
16363 \end_layout
16364
16365 \end_inset
16366
16367 =!htbpH] Allowed placement options for this float type.
16368  The value is a string of placement characters.
16369  Possible characters include: 
16370 \emph on
16371 h
16372 \emph default
16373  (
16374 \begin_inset Quotes eld
16375 \end_inset
16376
16377 here if possible
16378 \begin_inset Quotes erd
16379 \end_inset
16380
16381 ), 
16382 \emph on
16383 t
16384 \emph default
16385  (
16386 \begin_inset Quotes eld
16387 \end_inset
16388
16389 top of page
16390 \begin_inset Quotes erd
16391 \end_inset
16392
16393 ), 
16394 \emph on
16395 b
16396 \emph default
16397  (
16398 \begin_inset Quotes eld
16399 \end_inset
16400
16401 bottom of page
16402 \begin_inset Quotes erd
16403 \end_inset
16404
16405 ), 
16406 \emph on
16407 p
16408 \emph default
16409  (
16410 \begin_inset Quotes eld
16411 \end_inset
16412
16413 page of floats
16414 \begin_inset Quotes erd
16415 \end_inset
16416
16417 ), 
16418 \emph on
16419 H
16420 \emph default
16421  (
16422 \begin_inset Quotes eld
16423 \end_inset
16424
16425 here definitely
16426 \begin_inset Quotes erd
16427 \end_inset
16428
16429 ) and 
16430 \emph on
16431 !
16432 \emph default
16433  (
16434 \begin_inset Quotes eld
16435 \end_inset
16436
16437 ignore LaTeX rules
16438 \begin_inset Quotes erd
16439 \end_inset
16440
16441 ).
16442  The order of the characters in the string does not matter.
16443  If no placement options are allowed, use the string 
16444 \emph on
16445 none
16446 \emph default
16447 .
16448 \end_layout
16449
16450 \begin_layout Description
16451 \begin_inset Flex Code
16452 status collapsed
16453
16454 \begin_layout Plain Layout
16455 AllowsSideways
16456 \end_layout
16457
16458 \end_inset
16459
16460  [
16461 \begin_inset Flex Code
16462 status collapsed
16463
16464 \begin_layout Plain Layout
16465
16466 \emph off
16467 0
16468 \end_layout
16469
16470 \end_inset
16471
16472 ,
16473 \begin_inset space \thinspace{}
16474 \end_inset
16475
16476
16477 \emph on
16478
16479 \begin_inset Flex Code
16480 status collapsed
16481
16482 \begin_layout Plain Layout
16483
16484 \emph on
16485 1
16486 \end_layout
16487
16488 \end_inset
16489
16490
16491 \emph default
16492 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16493 -package 
16494 \family typewriter
16495 rotfloat
16496 \family default
16497  (sidewaysfloat).
16498  Set to 
16499 \begin_inset Flex Code
16500 status collapsed
16501
16502 \begin_layout Plain Layout
16503 0
16504 \end_layout
16505
16506 \end_inset
16507
16508  if the float does not support this feature.
16509 \end_layout
16510
16511 \begin_layout Description
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516 AllowsWide
16517 \end_layout
16518
16519 \end_inset
16520
16521  [
16522 \begin_inset Flex Code
16523 status collapsed
16524
16525 \begin_layout Plain Layout
16526
16527 \emph off
16528 0
16529 \end_layout
16530
16531 \end_inset
16532
16533 ,
16534 \begin_inset space \thinspace{}
16535 \end_inset
16536
16537
16538 \emph on
16539
16540 \begin_inset Flex Code
16541 status collapsed
16542
16543 \begin_layout Plain Layout
16544
16545 \emph on
16546 1
16547 \end_layout
16548
16549 \end_inset
16550
16551
16552 \emph default
16553 ] Defines whether the float has a starred variant that spans columns in
16554  a two column paragraph.
16555  Set to 
16556 \begin_inset Flex Code
16557 status collapsed
16558
16559 \begin_layout Plain Layout
16560 0
16561 \end_layout
16562
16563 \end_inset
16564
16565  if the float does not support this feature.
16566 \end_layout
16567
16568 \begin_layout Description
16569 \begin_inset Flex Code
16570 status collapsed
16571
16572 \begin_layout Plain Layout
16573 Extension
16574 \end_layout
16575
16576 \end_inset
16577
16578  [
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 string
16584 \end_layout
16585
16586 \end_inset
16587
16588 =
16589 \begin_inset Quotes erd
16590 \end_inset
16591
16592
16593 \begin_inset Quotes erd
16594 \end_inset
16595
16596 ] The file name extension of an auxiliary file for the list of figures (or
16597  whatever).
16598  \SpecialChar LaTeX
16599  writes the captions to this file.
16600 \end_layout
16601
16602 \begin_layout Description
16603 \begin_inset Flex Code
16604 status collapsed
16605
16606 \begin_layout Plain Layout
16607 GuiName
16608 \end_layout
16609
16610 \end_inset
16611
16612  [
16613 \begin_inset Flex Code
16614 status collapsed
16615
16616 \begin_layout Plain Layout
16617 string
16618 \end_layout
16619
16620 \end_inset
16621
16622 =
16623 \begin_inset Quotes erd
16624 \end_inset
16625
16626
16627 \begin_inset Quotes erd
16628 \end_inset
16629
16630 ] The string that will be used in the menus and also for the caption.
16631  This is translated to the current language if babel is used.
16632 \end_layout
16633
16634 \begin_layout Description
16635 \begin_inset Flex Code
16636 status collapsed
16637
16638 \begin_layout Plain Layout
16639 HTML*
16640 \end_layout
16641
16642 \end_inset
16643
16644  These tags control the XHTML output.
16645  See 
16646 \begin_inset CommandInset ref
16647 LatexCommand ref
16648 reference "sec:Tags-for-XHTML"
16649
16650 \end_inset
16651
16652 .
16653 \end_layout
16654
16655 \begin_layout Description
16656 \begin_inset Flex Code
16657 status collapsed
16658
16659 \begin_layout Plain Layout
16660 IsPredefined
16661 \end_layout
16662
16663 \end_inset
16664
16665  [
16666 \emph on
16667
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 0
16673 \end_layout
16674
16675 \end_inset
16676
16677
16678 \emph default
16679 ,
16680 \begin_inset space \thinspace{}
16681 \end_inset
16682
16683
16684 \begin_inset Flex Code
16685 status collapsed
16686
16687 \begin_layout Plain Layout
16688 1
16689 \end_layout
16690
16691 \end_inset
16692
16693 ] Indicates whether the float is already defined in the document class or
16694  if instead the \SpecialChar LaTeX
16695  package 
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700 float
16701 \end_layout
16702
16703 \end_inset
16704
16705  needs to be loaded to define it on-the-fly.
16706  The default is 
16707 \begin_inset Flex Code
16708 status collapsed
16709
16710 \begin_layout Plain Layout
16711 0
16712 \end_layout
16713
16714 \end_inset
16715
16716 , which means: 
16717 \begin_inset Flex Code
16718 status collapsed
16719
16720 \begin_layout Plain Layout
16721 float
16722 \end_layout
16723
16724 \end_inset
16725
16726  is used.
16727  It should be set to 
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 1
16733 \end_layout
16734
16735 \end_inset
16736
16737  if the float is already defined by the \SpecialChar LaTeX
16738  document class.
16739 \end_layout
16740
16741 \begin_layout Description
16742 \begin_inset Flex Code
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746 ListCommand
16747 \end_layout
16748
16749 \end_inset
16750
16751  [
16752 \begin_inset Flex Code
16753 status collapsed
16754
16755 \begin_layout Plain Layout
16756 string
16757 \end_layout
16758
16759 \end_inset
16760
16761 =
16762 \begin_inset Quotes erd
16763 \end_inset
16764
16765
16766 \begin_inset Quotes erd
16767 \end_inset
16768
16769 ] The command used to generate a list of floats of this type; the leading
16770  `
16771 \backslash
16772 ' must be omitted.
16773  This 
16774 \emph on
16775 must
16776 \emph default
16777  be given if 
16778 \begin_inset Flex Code
16779 status collapsed
16780
16781 \begin_layout Plain Layout
16782 UsesFloatPkg
16783 \end_layout
16784
16785 \end_inset
16786
16787  is false, since there is no standard way to generate this command.
16788  It is ignored if 
16789 \begin_inset Flex Code
16790 status collapsed
16791
16792 \begin_layout Plain Layout
16793 UsesFloatPkg
16794 \end_layout
16795
16796 \end_inset
16797
16798  is true, since in that case there is a standard way to define the command.
16799 \end_layout
16800
16801 \begin_layout Description
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 ListName
16807 \end_layout
16808
16809 \end_inset
16810
16811  [
16812 \begin_inset Flex Code
16813 status collapsed
16814
16815 \begin_layout Plain Layout
16816 string
16817 \end_layout
16818
16819 \end_inset
16820
16821 =
16822 \begin_inset Quotes erd
16823 \end_inset
16824
16825
16826 \begin_inset Quotes erd
16827 \end_inset
16828
16829 ] A title for a list of floats of this kind (list of figures, tables, or
16830  whatever).
16831  It is used for the screen label within \SpecialChar LyX
16832 , it is used by \SpecialChar LaTeX
16833  for the title and
16834  it is used as the title in the XHTML output.
16835  It will be translated to the document language.
16836 \end_layout
16837
16838 \begin_layout Description
16839 \begin_inset Flex Code
16840 status collapsed
16841
16842 \begin_layout Plain Layout
16843 NumberWithin
16844 \end_layout
16845
16846 \end_inset
16847
16848  [
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853 string
16854 \end_layout
16855
16856 \end_inset
16857
16858 =
16859 \begin_inset Quotes erd
16860 \end_inset
16861
16862
16863 \begin_inset Quotes erd
16864 \end_inset
16865
16866 ] This (optional) argument determines whether floats of this class will
16867  be numbered within some sectional unit of the document.
16868  For example, if 
16869 \begin_inset Flex Code
16870 status collapsed
16871
16872 \begin_layout Plain Layout
16873 NumberWithin
16874 \end_layout
16875
16876 \end_inset
16877
16878  is set to 
16879 \begin_inset Quotes eld
16880 \end_inset
16881
16882
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 chapter
16888 \end_layout
16889
16890 \end_inset
16891
16892
16893 \begin_inset Quotes erd
16894 \end_inset
16895
16896 , the floats will be numbered within chapters.
16897  
16898 \end_layout
16899
16900 \begin_layout Description
16901 \begin_inset Flex Code
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905 Placement
16906 \end_layout
16907
16908 \end_inset
16909
16910  [
16911 \begin_inset Flex Code
16912 status collapsed
16913
16914 \begin_layout Plain Layout
16915 string
16916 \end_layout
16917
16918 \end_inset
16919
16920 =
16921 \begin_inset Quotes erd
16922 \end_inset
16923
16924
16925 \begin_inset Quotes erd
16926 \end_inset
16927
16928 ] The default placement for the given class of floats.
16929  The string should be as in standard \SpecialChar LaTeX
16930
16931 \begin_inset Flex Code
16932 status collapsed
16933
16934 \begin_layout Plain Layout
16935 t
16936 \end_layout
16937
16938 \end_inset
16939
16940
16941 \begin_inset Flex Code
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 b
16946 \end_layout
16947
16948 \end_inset
16949
16950
16951 \begin_inset Flex Code
16952 status collapsed
16953
16954 \begin_layout Plain Layout
16955 p
16956 \end_layout
16957
16958 \end_inset
16959
16960  and 
16961 \begin_inset Flex Code
16962 status collapsed
16963
16964 \begin_layout Plain Layout
16965 h
16966 \end_layout
16967
16968 \end_inset
16969
16970  for top, bottom, page, and here, respectively.
16971 \begin_inset Foot
16972 status collapsed
16973
16974 \begin_layout Plain Layout
16975 Note that the order of these letters in the string is irrelevant, like in
16976  \SpecialChar LaTeX
16977 .
16978 \end_layout
16979
16980 \end_inset
16981
16982  On top of that there is a new type, 
16983 \begin_inset Flex Code
16984 status collapsed
16985
16986 \begin_layout Plain Layout
16987 H
16988 \end_layout
16989
16990 \end_inset
16991
16992 , which does not really correspond to a float, since it means: put it 
16993 \begin_inset Quotes eld
16994 \end_inset
16995
16996 here
16997 \begin_inset Quotes erd
16998 \end_inset
16999
17000  and nowhere else.
17001  Note however that the 
17002 \begin_inset Flex Code
17003 status collapsed
17004
17005 \begin_layout Plain Layout
17006 H
17007 \end_layout
17008
17009 \end_inset
17010
17011  specifier is special and, because of implementation details, cannot be
17012  used in non-built in float types.
17013  If you do not understand what this means, just use 
17014 \begin_inset Quotes eld
17015 \end_inset
17016
17017
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 tbp
17023 \end_layout
17024
17025 \end_inset
17026
17027
17028 \begin_inset Quotes erd
17029 \end_inset
17030
17031 .
17032 \end_layout
17033
17034 \begin_layout Description
17035 \begin_inset Flex Code
17036 status collapsed
17037
17038 \begin_layout Plain Layout
17039 RefPrefix
17040 \end_layout
17041
17042 \end_inset
17043
17044  [
17045 \begin_inset Flex Code
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049 string
17050 \end_layout
17051
17052 \end_inset
17053
17054 ] The prefix to use when creating labels referring to floats of this type.
17055  This allows the use of formatted references.
17056  Note that you can remove any 
17057 \begin_inset Flex Code
17058 status collapsed
17059
17060 \begin_layout Plain Layout
17061 RefPrefix
17062 \end_layout
17063
17064 \end_inset
17065
17066  set by a copied style by using the special value 
17067 \begin_inset Quotes eld
17068 \end_inset
17069
17070 OFF
17071 \begin_inset Quotes erd
17072 \end_inset
17073
17074 , which must be all caps.
17075 \end_layout
17076
17077 \begin_layout Description
17078 \begin_inset Flex Code
17079 status collapsed
17080
17081 \begin_layout Plain Layout
17082 Style
17083 \end_layout
17084
17085 \end_inset
17086
17087  [
17088 \begin_inset Flex Code
17089 status collapsed
17090
17091 \begin_layout Plain Layout
17092 string
17093 \end_layout
17094
17095 \end_inset
17096
17097 =
17098 \begin_inset Quotes erd
17099 \end_inset
17100
17101
17102 \begin_inset Quotes erd
17103 \end_inset
17104
17105 ] The style used when defining the float using 
17106 \begin_inset Flex Code
17107 status collapsed
17108
17109 \begin_layout Plain Layout
17110
17111 \backslash
17112 newfloat
17113 \end_layout
17114
17115 \end_inset
17116
17117 .
17118 \end_layout
17119
17120 \begin_layout Description
17121 \begin_inset Flex Code
17122 status collapsed
17123
17124 \begin_layout Plain Layout
17125 Type
17126 \end_layout
17127
17128 \end_inset
17129
17130  [
17131 \begin_inset Flex Code
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135 string
17136 \end_layout
17137
17138 \end_inset
17139
17140 =
17141 \begin_inset Quotes erd
17142 \end_inset
17143
17144
17145 \begin_inset Quotes erd
17146 \end_inset
17147
17148 ] The 
17149 \begin_inset Quotes eld
17150 \end_inset
17151
17152 type
17153 \begin_inset Quotes erd
17154 \end_inset
17155
17156  of the new class of floats, like program or algorithm.
17157  After the appropriate 
17158 \begin_inset Flex Code
17159 status collapsed
17160
17161 \begin_layout Plain Layout
17162
17163 \backslash
17164 newfloat
17165 \end_layout
17166
17167 \end_inset
17168
17169 , commands such as 
17170 \begin_inset Flex Code
17171 status collapsed
17172
17173 \begin_layout Plain Layout
17174
17175 \backslash
17176 begin{program}
17177 \end_layout
17178
17179 \end_inset
17180
17181  or 
17182 \begin_inset Flex Code
17183 status collapsed
17184
17185 \begin_layout Plain Layout
17186
17187 \backslash
17188 end{algorithm*}
17189 \end_layout
17190
17191 \end_inset
17192
17193  will be available.
17194 \end_layout
17195
17196 \begin_layout Description
17197 \begin_inset Flex Code
17198 status collapsed
17199
17200 \begin_layout Plain Layout
17201 UsesFloatPkg
17202 \end_layout
17203
17204 \end_inset
17205
17206  [
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 0
17212 \end_layout
17213
17214 \end_inset
17215
17216 ,
17217 \begin_inset space \thinspace{}
17218 \end_inset
17219
17220
17221 \begin_inset Flex Code
17222 status collapsed
17223
17224 \begin_layout Plain Layout
17225
17226 \emph on
17227 1
17228 \end_layout
17229
17230 \end_inset
17231
17232 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17233  package 
17234 \begin_inset Flex Code
17235 status collapsed
17236
17237 \begin_layout Plain Layout
17238 float
17239 \end_layout
17240
17241 \end_inset
17242
17243 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17244  itself.
17245 \end_layout
17246
17247 \begin_layout Standard
17248 Note that defining a float with type 
17249 \begin_inset Flex Code
17250 status collapsed
17251
17252 \begin_layout Plain Layout
17253
17254 \emph on
17255 type
17256 \end_layout
17257
17258 \end_inset
17259
17260  automatically defines the corresponding counter with name 
17261 \begin_inset Flex Code
17262 status collapsed
17263
17264 \begin_layout Plain Layout
17265
17266 \emph on
17267 type
17268 \end_layout
17269
17270 \end_inset
17271
17272 .
17273 \end_layout
17274
17275 \begin_layout Subsection
17276 Flex insets and InsetLayout
17277 \begin_inset CommandInset label
17278 LatexCommand label
17279 name "subsec:Flex-insets-and"
17280
17281 \end_inset
17282
17283
17284 \end_layout
17285
17286 \begin_layout Standard
17287 Flex insets come in three different kinds: 
17288 \end_layout
17289
17290 \begin_layout Itemize
17291 character style (
17292 \begin_inset Flex Code
17293 status collapsed
17294
17295 \begin_layout Plain Layout
17296 CharStyle
17297 \end_layout
17298
17299 \end_inset
17300
17301 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17302  commands as 
17303 \begin_inset Flex Code
17304 status collapsed
17305
17306 \begin_layout Plain Layout
17307
17308 \backslash
17309 noun
17310 \end_layout
17311
17312 \end_inset
17313
17314  and 
17315 \begin_inset Flex Code
17316 status collapsed
17317
17318 \begin_layout Plain Layout
17319
17320 \backslash
17321 code
17322 \end_layout
17323
17324 \end_inset
17325
17326 .
17327 \end_layout
17328
17329 \begin_layout Itemize
17330 user custom (
17331 \begin_inset Flex Code
17332 status collapsed
17333
17334 \begin_layout Plain Layout
17335 Custom
17336 \end_layout
17337
17338 \end_inset
17339
17340 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17341  code,
17342  footnote, and the like.
17343  An obvious example is an endnote inset, which is defined in the 
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 endnote
17349 \end_layout
17350
17351 \end_inset
17352
17353  module.
17354 \end_layout
17355
17356 \begin_layout Itemize
17357 XML elements (
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 Element
17363 \end_layout
17364
17365 \end_inset
17366
17367 ): For use with DocBook classes.
17368 \end_layout
17369
17370 \begin_layout Standard
17371 Flex insets are defined using the 
17372 \begin_inset Flex Code
17373 status collapsed
17374
17375 \begin_layout Plain Layout
17376 InsetLayout
17377 \end_layout
17378
17379 \end_inset
17380
17381  tag, which shall be explained in a moment.
17382 \end_layout
17383
17384 \begin_layout Standard
17385 The 
17386 \begin_inset Flex Code
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390 InsetLayout
17391 \end_layout
17392
17393 \end_inset
17394
17395  tag also serves another function: It can be used to customize the general
17396  layout of many different types of insets.
17397  Currently, 
17398 \begin_inset Flex Code
17399 status collapsed
17400
17401 \begin_layout Plain Layout
17402 InsetLayout
17403 \end_layout
17404
17405 \end_inset
17406
17407  can be used to customize the layout parameters for footnotes, marginal
17408  notes, note insets, \SpecialChar TeX
17409  code (ERT) insets, branches, listings, indexes, boxes,
17410  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17411 \end_layout
17412
17413 \begin_layout Standard
17414 The 
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419 InsetLayout
17420 \end_layout
17421
17422 \end_inset
17423
17424  definition must begin with a line of the form:
17425 \end_layout
17426
17427 \begin_layout LyX-Code
17428 InsetLayout <type>
17429 \end_layout
17430
17431 \begin_layout Standard
17432 Here 
17433 \begin_inset Flex Code
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437 <Type>
17438 \end_layout
17439
17440 \end_inset
17441
17442  indicates the inset whose layout is being defined, and here there are four
17443  cases.
17444 \end_layout
17445
17446 \begin_layout Enumerate
17447 The layout for a pre-existing inset is being modified.
17448  In this case, can be 
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 <Type>
17454 \end_layout
17455
17456 \end_inset
17457
17458  any one of the following: 
17459 \begin_inset Flex Code
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 Algorithm
17464 \end_layout
17465
17466 \end_inset
17467
17468
17469 \begin_inset Flex Code
17470 status collapsed
17471
17472 \begin_layout Plain Layout
17473 Branch
17474 \end_layout
17475
17476 \end_inset
17477
17478
17479 \begin_inset Flex Code
17480 status collapsed
17481
17482 \begin_layout Plain Layout
17483 Box
17484 \end_layout
17485
17486 \end_inset
17487
17488
17489 \begin_inset Flex Code
17490 status collapsed
17491
17492 \begin_layout Plain Layout
17493 Box:shaded
17494 \end_layout
17495
17496 \end_inset
17497
17498
17499 \begin_inset Flex Code
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503 Caption:Standard
17504 \end_layout
17505
17506 \end_inset
17507
17508
17509 \begin_inset Flex Code
17510 status collapsed
17511
17512 \begin_layout Plain Layout
17513 ERT
17514 \end_layout
17515
17516 \end_inset
17517
17518
17519 \begin_inset Flex Code
17520 status collapsed
17521
17522 \begin_layout Plain Layout
17523 Figure
17524 \end_layout
17525
17526 \end_inset
17527
17528
17529 \begin_inset Flex Code
17530 status collapsed
17531
17532 \begin_layout Plain Layout
17533 Foot
17534 \end_layout
17535
17536 \end_inset
17537
17538
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 Index
17544 \end_layout
17545
17546 \end_inset
17547
17548
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 Info
17554 \end_layout
17555
17556 \end_inset
17557
17558
17559 \begin_inset Flex Code
17560 status collapsed
17561
17562 \begin_layout Plain Layout
17563 Info:menu
17564 \end_layout
17565
17566 \end_inset
17567
17568
17569 \begin_inset Flex Code
17570 status collapsed
17571
17572 \begin_layout Plain Layout
17573 Info:shortcut
17574 \end_layout
17575
17576 \end_inset
17577
17578
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 Info:shortcuts
17584 \end_layout
17585
17586 \end_inset
17587
17588
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 Listings
17594 \end_layout
17595
17596 \end_inset
17597
17598
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 Marginal
17604 \end_layout
17605
17606 \end_inset
17607
17608
17609 \begin_inset Flex Code
17610 status collapsed
17611
17612 \begin_layout Plain Layout
17613 Note:Comment
17614 \end_layout
17615
17616 \end_inset
17617
17618
17619 \begin_inset Flex Code
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 Note:Note
17624 \end_layout
17625
17626 \end_inset
17627
17628
17629 \begin_inset Flex Code
17630 status collapsed
17631
17632 \begin_layout Plain Layout
17633 Note:Greyedout
17634 \end_layout
17635
17636 \end_inset
17637
17638
17639 \begin_inset Flex Code
17640 status collapsed
17641
17642 \begin_layout Plain Layout
17643 Table
17644 \end_layout
17645
17646 \end_inset
17647
17648 , or 
17649 \begin_inset Flex Code
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653 URL
17654 \end_layout
17655
17656 \end_inset
17657
17658 .
17659 \end_layout
17660
17661 \begin_layout Enumerate
17662 The layout for a Flex inset is being defined.
17663  In this case, 
17664 \begin_inset Flex Code
17665 status collapsed
17666
17667 \begin_layout Plain Layout
17668 <Type>
17669 \end_layout
17670
17671 \end_inset
17672
17673  must be of the form 
17674 \begin_inset Quotes eld
17675 \end_inset
17676
17677
17678 \begin_inset Flex Code
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682 Flex:<name>
17683 \end_layout
17684
17685 \end_inset
17686
17687
17688 \begin_inset Quotes erd
17689 \end_inset
17690
17691 , where 
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696 name
17697 \end_layout
17698
17699 \end_inset
17700
17701  may be be any valid identifier not used by a pre-existing Flex inset.
17702  The identifier may include spaces, but in that case the whole thing must
17703  be wrapped in quotes.
17704  Note that the definition of a flex inset 
17705 \emph on
17706 must 
17707 \emph default
17708 also include a 
17709 \begin_inset Flex Code
17710 status collapsed
17711
17712 \begin_layout Plain Layout
17713 LyXType
17714 \end_layout
17715
17716 \end_inset
17717
17718  entry, declaring which type of inset it defines.
17719 \end_layout
17720
17721 \begin_layout Enumerate
17722 The layout for user specific branch is being defined.
17723  In this case, 
17724 \begin_inset Flex Code
17725 status collapsed
17726
17727 \begin_layout Plain Layout
17728 <Type>
17729 \end_layout
17730
17731 \end_inset
17732
17733  must be of the form 
17734 \begin_inset Quotes eld
17735 \end_inset
17736
17737
17738 \begin_inset Flex Code
17739 status collapsed
17740
17741 \begin_layout Plain Layout
17742 Branch:<name>
17743 \end_layout
17744
17745 \end_inset
17746
17747
17748 \begin_inset Quotes erd
17749 \end_inset
17750
17751 , where 
17752 \begin_inset Flex Code
17753 status collapsed
17754
17755 \begin_layout Plain Layout
17756 name
17757 \end_layout
17758
17759 \end_inset
17760
17761  may be be any valid identifier of branch defined in user's document.
17762  The identifier may include spaces, but in that case the whole thing must
17763  be wrapped in quotes.
17764  The main purpose of this feature is to allow \SpecialChar LaTeX
17765  wrapping around specific
17766  branches as user needs.
17767 \end_layout
17768
17769 \begin_layout Enumerate
17770 The layout of a user (or class) specific caption is being defined.
17771  In this case, 
17772 \begin_inset Flex Code
17773 status collapsed
17774
17775 \begin_layout Plain Layout
17776 <Type>
17777 \end_layout
17778
17779 \end_inset
17780
17781  must be of the form 
17782 \begin_inset Quotes eld
17783 \end_inset
17784
17785
17786 \begin_inset Flex Code
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790 Caption:<name>
17791 \end_layout
17792
17793 \end_inset
17794
17795
17796 \begin_inset Quotes erd
17797 \end_inset
17798
17799 , where 
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804 name
17805 \end_layout
17806
17807 \end_inset
17808
17809  specifies the name of the caption as it appears in the menu.
17810  Have a look at the standard caption (
17811 \begin_inset Flex Code
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815 Caption:Standard
17816 \end_layout
17817
17818 \end_inset
17819
17820 ), the specific captions of the KOMA-Script classes (
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 Caption:Above
17826 \end_layout
17827
17828 \end_inset
17829
17830
17831 \begin_inset Flex Code
17832 status collapsed
17833
17834 \begin_layout Plain Layout
17835 Caption:Below
17836 \end_layout
17837
17838 \end_inset
17839
17840 ) or the module 
17841 \family sans
17842 Multilingual
17843 \begin_inset space ~
17844 \end_inset
17845
17846 Captions
17847 \begin_inset Newline linebreak
17848 \end_inset
17849
17850
17851 \family default
17852 (
17853 \begin_inset Flex Code
17854 status collapsed
17855
17856 \begin_layout Plain Layout
17857 Caption:Bicaption
17858 \end_layout
17859
17860 \end_inset
17861
17862 ) for applications.
17863 \end_layout
17864
17865 \begin_layout Standard
17866 The 
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 InsetLayout
17872 \end_layout
17873
17874 \end_inset
17875
17876  definition can contain the following entries:
17877 \end_layout
17878
17879 \begin_layout Description
17880 \begin_inset Flex Code
17881 status collapsed
17882
17883 \begin_layout Plain Layout
17884 AddToToc
17885 \end_layout
17886
17887 \end_inset
17888
17889  [
17890 \begin_inset Flex Code
17891 status collapsed
17892
17893 \begin_layout Plain Layout
17894 string
17895 \end_layout
17896
17897 \end_inset
17898
17899 =""] This inset will appear in the table of contents of the given type.
17900  An empty string disables.
17901  See also the OutlinerName and the IsTocCaption commands.
17902  This is only implemented for Flex insets.
17903  Default: disabled.
17904 \end_layout
17905
17906 \begin_layout Description
17907 \begin_inset Flex Code
17908 status collapsed
17909
17910 \begin_layout Plain Layout
17911 Argument
17912 \end_layout
17913
17914 \end_inset
17915
17916  [
17917 \begin_inset Flex Code
17918 status collapsed
17919
17920 \begin_layout Plain Layout
17921 int
17922 \end_layout
17923
17924 \end_inset
17925
17926 ] Defines argument number of a command\SpecialChar breakableslash
17927 environment associated with the current
17928  layout.
17929  The definition must end with 
17930 \begin_inset Flex Code
17931 status collapsed
17932
17933 \begin_layout Plain Layout
17934 EndArgument
17935 \end_layout
17936
17937 \end_inset
17938
17939 .
17940  See 
17941 \begin_inset CommandInset ref
17942 LatexCommand ref
17943 reference "subsec:Paragraph-Styles"
17944
17945 \end_inset
17946
17947  for details.
17948 \end_layout
17949
17950 \begin_layout Description
17951 \begin_inset Flex Code
17952 status collapsed
17953
17954 \begin_layout Plain Layout
17955 BabelPreamble
17956 \end_layout
17957
17958 \end_inset
17959
17960  Preamble for changing language commands; see 
17961 \begin_inset CommandInset ref
17962 LatexCommand ref
17963 reference "subsec:I18n"
17964
17965 \end_inset
17966
17967 .
17968 \end_layout
17969
17970 \begin_layout Description
17971 \begin_inset Flex Code
17972 status collapsed
17973
17974 \begin_layout Plain Layout
17975 BgColor
17976 \end_layout
17977
17978 \end_inset
17979
17980  [
17981 \begin_inset Flex Code
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985 <name>
17986 \end_layout
17987
17988 \end_inset
17989
17990 ] The color for the inset's background.
17991  See 
17992 \begin_inset CommandInset ref
17993 LatexCommand ref
17994 reference "chap:Names-of-colors"
17995
17996 \end_inset
17997
17998  for a list of the available color names.
17999 \end_layout
18000
18001 \begin_layout Description
18002 \begin_inset Flex Code
18003 status collapsed
18004
18005 \begin_layout Plain Layout
18006 ContentAsLabel
18007 \end_layout
18008
18009 \end_inset
18010
18011  [
18012 \begin_inset Flex Code
18013 status collapsed
18014
18015 \begin_layout Plain Layout
18016
18017 \emph on
18018 0
18019 \end_layout
18020
18021 \end_inset
18022
18023 ,
18024 \begin_inset space \thinspace{}
18025 \end_inset
18026
18027
18028 \begin_inset Flex Code
18029 status collapsed
18030
18031 \begin_layout Plain Layout
18032 1
18033 \end_layout
18034
18035 \end_inset
18036
18037 ] Whether to use the content of the inset as the label, when the inset is
18038  closed.
18039  Default is false.
18040 \end_layout
18041
18042 \begin_layout Description
18043 \begin_inset Flex Code
18044 status collapsed
18045
18046 \begin_layout Plain Layout
18047 CopyStyle
18048 \end_layout
18049
18050 \end_inset
18051
18052  [
18053 \begin_inset Flex Code
18054 status collapsed
18055
18056 \begin_layout Plain Layout
18057 <type>
18058 \end_layout
18059
18060 \end_inset
18061
18062 ] As with paragraph styles, see 
18063 \begin_inset CommandInset ref
18064 LatexCommand ref
18065 reference "subsec:Paragraph-Styles"
18066
18067 \end_inset
18068
18069 .
18070  Note that you need to specify the complete type, e.
18071 \begin_inset space \thinspace{}
18072 \end_inset
18073
18074 g.
18075 \begin_inset space ~
18076 \end_inset
18077
18078
18079 \begin_inset Flex Code
18080 status collapsed
18081
18082 \begin_layout Plain Layout
18083 CopyStyle Flex:<name>
18084 \end_layout
18085
18086 \end_inset
18087
18088 .
18089 \end_layout
18090
18091 \begin_layout Description
18092 \begin_inset Flex Code
18093 status collapsed
18094
18095 \begin_layout Plain Layout
18096 CustomPars
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 ] Indicates whether the user may employ the Paragraph Settings dialog to
18128  customize the paragraph.
18129 \end_layout
18130
18131 \begin_layout Description
18132 \begin_inset Flex Code
18133 status collapsed
18134
18135 \begin_layout Plain Layout
18136 Decoration
18137 \end_layout
18138
18139 \end_inset
18140
18141  can be 
18142 \begin_inset Flex Code
18143 status collapsed
18144
18145 \begin_layout Plain Layout
18146 Classic
18147 \end_layout
18148
18149 \end_inset
18150
18151
18152 \begin_inset Flex Code
18153 status collapsed
18154
18155 \begin_layout Plain Layout
18156 Minimalistic
18157 \end_layout
18158
18159 \end_inset
18160
18161 , or 
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 Conglomerate
18167 \end_layout
18168
18169 \end_inset
18170
18171 , describing the rendering style used for the inset's frame and buttons.
18172  Footnotes generally use 
18173 \begin_inset Flex Code
18174 status collapsed
18175
18176 \begin_layout Plain Layout
18177 Classic
18178 \end_layout
18179
18180 \end_inset
18181
18182 , ERT insets generally 
18183 \begin_inset Flex Code
18184 status collapsed
18185
18186 \begin_layout Plain Layout
18187 Minimalistic
18188 \end_layout
18189
18190 \end_inset
18191
18192 , and character styles 
18193 \begin_inset Flex Code
18194 status collapsed
18195
18196 \begin_layout Plain Layout
18197 Conglomerate
18198 \end_layout
18199
18200 \end_inset
18201
18202 .
18203 \end_layout
18204
18205 \begin_layout Description
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 Display
18211 \end_layout
18212
18213 \end_inset
18214
18215  [
18216 \begin_inset Flex Code
18217 status collapsed
18218
18219 \begin_layout Plain Layout
18220 0
18221 \end_layout
18222
18223 \end_inset
18224
18225 ,
18226 \emph on
18227
18228 \begin_inset space \thinspace{}
18229 \end_inset
18230
18231
18232 \emph default
18233
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238
18239 \emph on
18240 1
18241 \end_layout
18242
18243 \end_inset
18244
18245 ] Only useful if 
18246 \begin_inset Flex Code
18247 status collapsed
18248
18249 \begin_layout Plain Layout
18250 LatexType
18251 \end_layout
18252
18253 \end_inset
18254
18255  is 
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260 Environment
18261 \end_layout
18262
18263 \end_inset
18264
18265 .
18266  Indicates whether the environment will stand on its own in the output or
18267  will appear inline with the surrounding text.
18268  If set to false, it is supposed that the \SpecialChar LaTeX
18269  environment ignores white space
18270  (including one newline character) after the 
18271 \begin_inset Flex Code
18272 status collapsed
18273
18274 \begin_layout Plain Layout
18275
18276 \backslash
18277 begin{
18278 \emph on
18279 LatexName
18280 \emph default
18281 }
18282 \end_layout
18283
18284 \end_inset
18285
18286  and 
18287 \begin_inset Flex Code
18288 status collapsed
18289
18290 \begin_layout Plain Layout
18291
18292 \backslash
18293 end{
18294 \emph on
18295 LatexName
18296 \emph default
18297 }
18298 \end_layout
18299
18300 \end_inset
18301
18302  tags.
18303  Default is true.
18304 \end_layout
18305
18306 \begin_layout Description
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 End
18312 \end_layout
18313
18314 \end_inset
18315
18316  Required at the end of the 
18317 \begin_inset Flex Code
18318 status collapsed
18319
18320 \begin_layout Plain Layout
18321 InsetLayout
18322 \end_layout
18323
18324 \end_inset
18325
18326  declarations.
18327 \end_layout
18328
18329 \begin_layout Description
18330 \begin_inset Flex Code
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334 Font
18335 \end_layout
18336
18337 \end_inset
18338
18339  The font used for both the text body 
18340 \emph on
18341 and
18342 \emph default
18343  the label.
18344  See 
18345 \begin_inset CommandInset ref
18346 LatexCommand ref
18347 reference "subsec:Font-description"
18348
18349 \end_inset
18350
18351 .
18352  Note that defining this font automatically defines the 
18353 \begin_inset Flex Code
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357 LabelFont
18358 \end_layout
18359
18360 \end_inset
18361
18362  to the same value, so define this first and define 
18363 \begin_inset Flex Code
18364 status collapsed
18365
18366 \begin_layout Plain Layout
18367 LabelFont
18368 \end_layout
18369
18370 \end_inset
18371
18372  later if you want them to be different.
18373 \end_layout
18374
18375 \begin_layout Description
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 FixedWidthPreambleEncoding
18381 \end_layout
18382
18383 \end_inset
18384
18385  [
18386 \begin_inset Flex Code
18387 status collapsed
18388
18389 \begin_layout Plain Layout
18390
18391 \emph on
18392 0
18393 \end_layout
18394
18395 \end_inset
18396
18397 ,
18398 \begin_inset space \thinspace{}
18399 \end_inset
18400
18401
18402 \begin_inset Flex Code
18403 status collapsed
18404
18405 \begin_layout Plain Layout
18406 1
18407 \end_layout
18408
18409 \end_inset
18410
18411 ] Force a fixed width encoding for the translated contents of 
18412 \begin_inset Flex Code
18413 status collapsed
18414
18415 \begin_layout Plain Layout
18416 BabelPreamble
18417 \end_layout
18418
18419 \end_inset
18420
18421  and 
18422 \begin_inset Flex Code
18423 status collapsed
18424
18425 \begin_layout Plain Layout
18426 LangPreamble
18427 \end_layout
18428
18429 \end_inset
18430
18431  code generated by this layout.
18432  This is needed for special \SpecialChar LaTeX
18433 -packages like 
18434 \family typewriter
18435 listings
18436 \family default
18437  that do not work with variable width encodings such as 
18438 \family sans
18439 utf8
18440 \family default
18441 .
18442  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18443  backends such as Xe\SpecialChar TeX
18444  or
18445  Lua\SpecialChar TeX
18446  are used.
18447 \end_layout
18448
18449 \begin_layout Description
18450 \begin_inset Flex Code
18451 status collapsed
18452
18453 \begin_layout Plain Layout
18454 ForceLocalFontSwitch
18455 \end_layout
18456
18457 \end_inset
18458
18459  [
18460 \begin_inset Flex Code
18461 status collapsed
18462
18463 \begin_layout Plain Layout
18464
18465 \emph on
18466 0
18467 \end_layout
18468
18469 \end_inset
18470
18471 ,
18472 \begin_inset space \thinspace{}
18473 \end_inset
18474
18475
18476 \begin_inset Flex Code
18477 status collapsed
18478
18479 \begin_layout Plain Layout
18480 1
18481 \end_layout
18482
18483 \end_inset
18484
18485 ] When using babel, always use a local font switch (
18486 \begin_inset Flex Code
18487 status collapsed
18488
18489 \begin_layout Plain Layout
18490
18491 \backslash
18492 foreignlanguage
18493 \end_layout
18494
18495 \end_inset
18496
18497 ), never a global one (such as 
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502
18503 \backslash
18504 selectlanguage
18505 \end_layout
18506
18507 \end_inset
18508
18509 ).
18510 \end_layout
18511
18512 \begin_layout Description
18513 \begin_inset Flex Code
18514 status collapsed
18515
18516 \begin_layout Plain Layout
18517 ForceLTR
18518 \end_layout
18519
18520 \end_inset
18521
18522  [
18523 \begin_inset Flex Code
18524 status collapsed
18525
18526 \begin_layout Plain Layout
18527
18528 \emph on
18529 0
18530 \end_layout
18531
18532 \end_inset
18533
18534 ,
18535 \begin_inset space \thinspace{}
18536 \end_inset
18537
18538
18539 \begin_inset Flex Code
18540 status collapsed
18541
18542 \begin_layout Plain Layout
18543 1
18544 \end_layout
18545
18546 \end_inset
18547
18548 ] Force the 
18549 \begin_inset Quotes eld
18550 \end_inset
18551
18552 latex
18553 \begin_inset Quotes erd
18554 \end_inset
18555
18556  language, leading to Left-to-Right (Latin) output, e.
18557 \begin_inset space \thinspace{}
18558 \end_inset
18559
18560 g.
18561 \begin_inset space \space{}
18562 \end_inset
18563
18564 in \SpecialChar TeX
18565  code or URL.
18566  A kludge.
18567 \end_layout
18568
18569 \begin_layout Description
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574 ForceOwnlines
18575 \end_layout
18576
18577 \end_inset
18578
18579  [
18580 \begin_inset Flex Code
18581 status collapsed
18582
18583 \begin_layout Plain Layout
18584
18585 \emph on
18586 0
18587 \end_layout
18588
18589 \end_inset
18590
18591 ,
18592 \begin_inset space \thinspace{}
18593 \end_inset
18594
18595
18596 \begin_inset Flex Code
18597 status collapsed
18598
18599 \begin_layout Plain Layout
18600 1
18601 \end_layout
18602
18603 \end_inset
18604
18605 ] Force a a line break in the \SpecialChar LaTeX
18606  output before the inset starts and after
18607  the inset ends.
18608  This assures the inset itself is output on its own lines, for parsing purposes.
18609 \end_layout
18610
18611 \begin_layout Description
18612 \begin_inset Flex Code
18613 status collapsed
18614
18615 \begin_layout Plain Layout
18616 ForcePlain
18617 \end_layout
18618
18619 \end_inset
18620
18621  [
18622 \begin_inset Flex Code
18623 status collapsed
18624
18625 \begin_layout Plain Layout
18626
18627 \emph on
18628 0
18629 \end_layout
18630
18631 \end_inset
18632
18633 ,
18634 \begin_inset space \thinspace{}
18635 \end_inset
18636
18637
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642 1
18643 \end_layout
18644
18645 \end_inset
18646
18647 ] Indicates whether the 
18648 \begin_inset Flex Code
18649 status collapsed
18650
18651 \begin_layout Plain Layout
18652 PlainLayout
18653 \end_layout
18654
18655 \end_inset
18656
18657  should be used or, instead, the user can change the paragraph style used
18658  in the inset.
18659  Default is false.
18660 \end_layout
18661
18662 \begin_layout Description
18663 \begin_inset Flex Code
18664 status collapsed
18665
18666 \begin_layout Plain Layout
18667 FreeSpacing
18668 \end_layout
18669
18670 \end_inset
18671
18672  [
18673 \begin_inset Flex Code
18674 status collapsed
18675
18676 \begin_layout Plain Layout
18677
18678 \emph on
18679 0
18680 \end_layout
18681
18682 \end_inset
18683
18684 ,
18685 \begin_inset space \thinspace{}
18686 \end_inset
18687
18688
18689 \begin_inset Flex Code
18690 status collapsed
18691
18692 \begin_layout Plain Layout
18693 1
18694 \end_layout
18695
18696 \end_inset
18697
18698 ] As with paragraph styles, see 
18699 \begin_inset CommandInset ref
18700 LatexCommand ref
18701 reference "subsec:Paragraph-Styles"
18702
18703 \end_inset
18704
18705 .
18706 \end_layout
18707
18708 \begin_layout Description
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713 HTML*
18714 \end_layout
18715
18716 \end_inset
18717
18718  These tags control the XHTML output.
18719  See 
18720 \begin_inset CommandInset ref
18721 LatexCommand ref
18722 reference "sec:Tags-for-XHTML"
18723
18724 \end_inset
18725
18726 .
18727 \end_layout
18728
18729 \begin_layout Description
18730 \begin_inset Flex Code
18731 status collapsed
18732
18733 \begin_layout Plain Layout
18734 InToc
18735 \end_layout
18736
18737 \end_inset
18738
18739  [
18740 \begin_inset Flex Code
18741 status collapsed
18742
18743 \begin_layout Plain Layout
18744
18745 \emph on
18746 0
18747 \end_layout
18748
18749 \end_inset
18750
18751 ,
18752 \begin_inset space \thinspace{}
18753 \end_inset
18754
18755
18756 \begin_inset Flex Code
18757 status collapsed
18758
18759 \begin_layout Plain Layout
18760 1
18761 \end_layout
18762
18763 \end_inset
18764
18765 ] Whether to include the contents of this inset in the strings generated
18766  for the `Outline' pane for all table of contents, regardless of the AddToToc
18767  setting.
18768  One would not, for example, want the content of a footnote in a section
18769  header to be included in the TOC displayed in the outline, but one would
18770  normally want the content of a character style displayed.
18771  Default is false: not to include.
18772 \end_layout
18773
18774 \begin_layout Description
18775 \begin_inset Flex Code
18776 status collapsed
18777
18778 \begin_layout Plain Layout
18779 IsTocCaption
18780 \end_layout
18781
18782 \end_inset
18783
18784  [
18785 \begin_inset Flex Code
18786 status collapsed
18787
18788 \begin_layout Plain Layout
18789
18790 \emph on
18791 0
18792 \end_layout
18793
18794 \end_inset
18795
18796 ,
18797 \begin_inset space \thinspace{}
18798 \end_inset
18799
18800
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805 1
18806 \end_layout
18807
18808 \end_inset
18809
18810 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
18811  of its contents in its item in the table of contents.
18812  Otherwise, only the label appears.
18813 \end_layout
18814
18815 \begin_layout Description
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820 KeepEmpty
18821 \end_layout
18822
18823 \end_inset
18824
18825  [
18826 \emph on
18827
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 0
18833 \end_layout
18834
18835 \end_inset
18836
18837
18838 \emph default
18839 ,
18840 \begin_inset space \thinspace{}
18841 \end_inset
18842
18843
18844 \begin_inset Flex Code
18845 status collapsed
18846
18847 \begin_layout Plain Layout
18848 1
18849 \end_layout
18850
18851 \end_inset
18852
18853 ] As with paragraph styles, see 
18854 \begin_inset CommandInset ref
18855 LatexCommand ref
18856 reference "subsec:Paragraph-Styles"
18857
18858 \end_inset
18859
18860 .
18861 \end_layout
18862
18863 \begin_layout Description
18864 \begin_inset Flex Code
18865 status collapsed
18866
18867 \begin_layout Plain Layout
18868 LabelFont
18869 \end_layout
18870
18871 \end_inset
18872
18873  The font used for the label.
18874  See 
18875 \begin_inset CommandInset ref
18876 LatexCommand ref
18877 reference "subsec:Font-description"
18878
18879 \end_inset
18880
18881 .
18882  Note that this definition can never appear before 
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 Font
18888 \end_layout
18889
18890 \end_inset
18891
18892 , lest it be ineffective.
18893 \end_layout
18894
18895 \begin_layout Description
18896 \begin_inset Flex Code
18897 status collapsed
18898
18899 \begin_layout Plain Layout
18900 LabelString
18901 \end_layout
18902
18903 \end_inset
18904
18905  [
18906 \begin_inset Flex Code
18907 status collapsed
18908
18909 \begin_layout Plain Layout
18910 string
18911 \end_layout
18912
18913 \end_inset
18914
18915 =
18916 \begin_inset Quotes erd
18917 \end_inset
18918
18919
18920 \begin_inset Quotes erd
18921 \end_inset
18922
18923 ] What will be displayed on the button or elsewhere as the inset label.
18924  Some inset types (
18925 \begin_inset Flex Code
18926 status collapsed
18927
18928 \begin_layout Plain Layout
18929 \SpecialChar TeX
18930  code
18931 \end_layout
18932
18933 \end_inset
18934
18935  and 
18936 \begin_inset Flex Code
18937 status collapsed
18938
18939 \begin_layout Plain Layout
18940 Branch
18941 \end_layout
18942
18943 \end_inset
18944
18945 ) modify this label on the fly.
18946 \end_layout
18947
18948 \begin_layout Description
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953 LangPreamble
18954 \end_layout
18955
18956 \end_inset
18957
18958  Language dependent preamble; see 
18959 \begin_inset CommandInset ref
18960 LatexCommand ref
18961 reference "subsec:I18n"
18962
18963 \end_inset
18964
18965 .
18966 \end_layout
18967
18968 \begin_layout Description
18969 \begin_inset Flex Code
18970 status collapsed
18971
18972 \begin_layout Plain Layout
18973 LatexName
18974 \end_layout
18975
18976 \end_inset
18977
18978  [
18979 \begin_inset Flex Code
18980 status collapsed
18981
18982 \begin_layout Plain Layout
18983 <name>
18984 \end_layout
18985
18986 \end_inset
18987
18988 ] The name of the corresponding \SpecialChar LaTeX
18989  stuff.
18990  Either the environment or command name.
18991 \end_layout
18992
18993 \begin_layout Description
18994 \begin_inset Flex Code
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 LatexParam
18999 \end_layout
19000
19001 \end_inset
19002
19003  [
19004 \begin_inset Flex Code
19005 status collapsed
19006
19007 \begin_layout Plain Layout
19008 <parameter>
19009 \end_layout
19010
19011 \end_inset
19012
19013 ] The optional parameter for the corresponding 
19014 \begin_inset Flex Code
19015 status collapsed
19016
19017 \begin_layout Plain Layout
19018 LatexName
19019 \end_layout
19020
19021 \end_inset
19022
19023  stuff, including possible bracket pairs like 
19024 \begin_inset Flex Code
19025 status collapsed
19026
19027 \begin_layout Plain Layout
19028 []
19029 \end_layout
19030
19031 \end_inset
19032
19033 .
19034  This parameter cannot be changed from within \SpecialChar LyX
19035  (use 
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 Argument
19041 \end_layout
19042
19043 \end_inset
19044
19045  for customizable parameters).
19046  It will be output as is after all \SpecialChar LaTeX
19047  
19048 \begin_inset Flex Code
19049 status collapsed
19050
19051 \begin_layout Plain Layout
19052 Argument
19053 \end_layout
19054
19055 \end_inset
19056
19057 s.
19058 \end_layout
19059
19060 \begin_layout Description
19061 \begin_inset Flex Code
19062 status collapsed
19063
19064 \begin_layout Plain Layout
19065 LatexType
19066 \end_layout
19067
19068 \end_inset
19069
19070  [
19071 \begin_inset Flex Code
19072 status collapsed
19073
19074 \begin_layout Plain Layout
19075 Command, Environment, None
19076 \end_layout
19077
19078 \end_inset
19079
19080 ] How the style should be translated into \SpecialChar LaTeX
19081 .
19082 \begin_inset Foot
19083 status collapsed
19084
19085 \begin_layout Plain Layout
19086 \begin_inset Flex Code
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090 LatexType
19091 \end_layout
19092
19093 \end_inset
19094
19095  is perhaps a bit misleading, since these rules apply to SGML classes too.
19096  Visit the SGML class files for specific examples.
19097 \end_layout
19098
19099 \end_inset
19100
19101
19102 \end_layout
19103
19104 \begin_deeper
19105 \begin_layout Description
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 None
19111 \end_layout
19112
19113 \end_inset
19114
19115  means nothing special
19116 \end_layout
19117
19118 \begin_layout Description
19119 \begin_inset Flex Code
19120 status collapsed
19121
19122 \begin_layout Plain Layout
19123 Command
19124 \end_layout
19125
19126 \end_inset
19127
19128  means 
19129 \begin_inset Flex Code
19130 status collapsed
19131
19132 \begin_layout Plain Layout
19133
19134 \backslash
19135
19136 \emph on
19137 LatexName
19138 \emph default
19139 {\SpecialChar ldots
19140 }
19141 \end_layout
19142
19143 \end_inset
19144
19145
19146 \end_layout
19147
19148 \begin_layout Description
19149 \begin_inset Flex Code
19150 status collapsed
19151
19152 \begin_layout Plain Layout
19153 Environment
19154 \end_layout
19155
19156 \end_inset
19157
19158  means 
19159 \begin_inset Flex Code
19160 status collapsed
19161
19162 \begin_layout Plain Layout
19163
19164 \backslash
19165 begin{
19166 \emph on
19167 LatexName
19168 \emph default
19169 }\SpecialChar ldots
19170
19171 \backslash
19172 end{
19173 \emph on
19174 LatexName
19175 \emph default
19176 }
19177 \end_layout
19178
19179 \end_inset
19180
19181
19182 \end_layout
19183
19184 \begin_layout Standard
19185 Putting the last few things together, the \SpecialChar LaTeX
19186  output will be either: 
19187 \end_layout
19188
19189 \begin_layout LyX-Code
19190
19191 \backslash
19192 LatexName[LatexParam]{\SpecialChar ldots
19193 }
19194 \end_layout
19195
19196 \begin_layout Standard
19197 or: 
19198 \end_layout
19199
19200 \begin_layout LyX-Code
19201
19202 \backslash
19203 begin{LatexName}[LatexParam] \SpecialChar ldots
19204  
19205 \backslash
19206 end{LatexName}
19207 \end_layout
19208
19209 \begin_layout Standard
19210 depending upon the \SpecialChar LaTeX
19211  type.
19212 \end_layout
19213
19214 \end_deeper
19215 \begin_layout Description
19216 \begin_inset Flex Code
19217 status collapsed
19218
19219 \begin_layout Plain Layout
19220 LeftDelim
19221 \end_layout
19222
19223 \end_inset
19224
19225  [
19226 \begin_inset Flex Code
19227 status collapsed
19228
19229 \begin_layout Plain Layout
19230 string
19231 \end_layout
19232
19233 \end_inset
19234
19235 ] A string that is put at the beginning of the layout content.
19236  A line break in the output can be indicated by 
19237 \begin_inset Flex Code
19238 status collapsed
19239
19240 \begin_layout Plain Layout
19241 <br/>
19242 \end_layout
19243
19244 \end_inset
19245
19246 .
19247 \end_layout
19248
19249 \begin_layout Description
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 LyxType
19255 \end_layout
19256
19257 \end_inset
19258
19259  Can be 
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 charstyle
19265 \end_layout
19266
19267 \end_inset
19268
19269
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 custom
19275 \end_layout
19276
19277 \end_inset
19278
19279
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284 element
19285 \end_layout
19286
19287 \end_inset
19288
19289  or 
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 end
19295 \end_layout
19296
19297 \end_inset
19298
19299  (indicating a dummy definition ending definitions of charstyles, etc).
19300  This entry is required in and is only meaningful for Flex insets.
19301  Among other things, it determines on which menu this inset will appear.
19302  Setting 
19303 \begin_inset Flex Code
19304 status collapsed
19305
19306 \begin_layout Plain Layout
19307 LyxType
19308 \end_layout
19309
19310 \end_inset
19311
19312  to 
19313 \begin_inset Flex Code
19314 status collapsed
19315
19316 \begin_layout Plain Layout
19317 charstyle
19318 \end_layout
19319
19320 \end_inset
19321
19322  will automatically set 
19323 \begin_inset Flex Code
19324 status collapsed
19325
19326 \begin_layout Plain Layout
19327 MultiPar
19328 \end_layout
19329
19330 \end_inset
19331
19332  to false and 
19333 \begin_inset Flex Code
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 ForcePlain
19338 \end_layout
19339
19340 \end_inset
19341
19342  to true.
19343  
19344 \begin_inset Flex Code
19345 status collapsed
19346
19347 \begin_layout Plain Layout
19348 MultiPar
19349 \end_layout
19350
19351 \end_inset
19352
19353  can be set to true, or 
19354 \begin_inset Flex Code
19355 status collapsed
19356
19357 \begin_layout Plain Layout
19358 ForcePlain
19359 \end_layout
19360
19361 \end_inset
19362
19363  to false, for 
19364 \begin_inset Flex Code
19365 status collapsed
19366
19367 \begin_layout Plain Layout
19368 charstyle
19369 \end_layout
19370
19371 \end_inset
19372
19373  insets by setting it 
19374 \emph on
19375 after
19376 \emph default
19377  you set the 
19378 \begin_inset Flex Code
19379 status collapsed
19380
19381 \begin_layout Plain Layout
19382 LyxType
19383 \end_layout
19384
19385 \end_inset
19386
19387 .
19388 \end_layout
19389
19390 \begin_layout Description
19391 \begin_inset Flex Code
19392 status collapsed
19393
19394 \begin_layout Plain Layout
19395 MultiPar
19396 \end_layout
19397
19398 \end_inset
19399
19400  [
19401 \begin_inset Flex Code
19402 status collapsed
19403
19404 \begin_layout Plain Layout
19405
19406 \emph on
19407 0
19408 \end_layout
19409
19410 \end_inset
19411
19412 ,
19413 \begin_inset space \thinspace{}
19414 \end_inset
19415
19416
19417 \begin_inset Flex Code
19418 status collapsed
19419
19420 \begin_layout Plain Layout
19421 1
19422 \end_layout
19423
19424 \end_inset
19425
19426 ] Whether multiple paragraphs are permitted in this inset.
19427  This will also set 
19428 \begin_inset Flex Code
19429 status collapsed
19430
19431 \begin_layout Plain Layout
19432 CustomPars
19433 \end_layout
19434
19435 \end_inset
19436
19437  to the same value and 
19438 \begin_inset Flex Code
19439 status collapsed
19440
19441 \begin_layout Plain Layout
19442 ForcePlain
19443 \end_layout
19444
19445 \end_inset
19446
19447  to the opposite value.
19448  These can be reset to other values, if they are used 
19449 \emph on
19450 after
19451 \emph default
19452  
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 MultiPar
19458 \end_layout
19459
19460 \end_inset
19461
19462 .
19463  Default is true.
19464 \end_layout
19465
19466 \begin_layout Description
19467 \begin_inset Flex Code
19468 status collapsed
19469
19470 \begin_layout Plain Layout
19471 NeedProtect
19472 \end_layout
19473
19474 \end_inset
19475
19476  [
19477 \begin_inset Flex Code
19478 status collapsed
19479
19480 \begin_layout Plain Layout
19481
19482 \emph on
19483 0
19484 \end_layout
19485
19486 \end_inset
19487
19488 ,
19489 \begin_inset space \thinspace{}
19490 \end_inset
19491
19492
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 1
19498 \end_layout
19499
19500 \end_inset
19501
19502 ] Whether fragile commands in this inset should be 
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507
19508 \backslash
19509 protect
19510 \end_layout
19511
19512 \end_inset
19513
19514 'ed.
19515  (Note: This is 
19516 \emph on
19517 not
19518 \emph default
19519  whether the command should itself be protected.) Default is false.
19520 \end_layout
19521
19522 \begin_layout Description
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 NoInsetLayout
19528 \end_layout
19529
19530 \end_inset
19531
19532  [
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537 <layout>
19538 \end_layout
19539
19540 \end_inset
19541
19542 ] Deletes an existing 
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547 InsetLayout
19548 \end_layout
19549
19550 \end_inset
19551
19552 .
19553 \end_layout
19554
19555 \begin_layout Description
19556 \begin_inset Flex Code
19557 status collapsed
19558
19559 \begin_layout Plain Layout
19560 ObsoletedBy
19561 \end_layout
19562
19563 \end_inset
19564
19565  [
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 <layout>
19571 \end_layout
19572
19573 \end_inset
19574
19575 ] Name of an 
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 InsetLayout
19581 \end_layout
19582
19583 \end_inset
19584
19585  that has replaced this 
19586 \begin_inset Flex Code
19587 status collapsed
19588
19589 \begin_layout Plain Layout
19590 InsetLayout
19591 \end_layout
19592
19593 \end_inset
19594
19595 .
19596  This is used to rename an 
19597 \begin_inset Flex Code
19598 status collapsed
19599
19600 \begin_layout Plain Layout
19601 InsetLayout
19602 \end_layout
19603
19604 \end_inset
19605
19606 , while keeping backward compatibility.
19607 \end_layout
19608
19609 \begin_layout Description
19610 \begin_inset Flex Code
19611 status collapsed
19612
19613 \begin_layout Plain Layout
19614 ParbreakIsNewline
19615 \end_layout
19616
19617 \end_inset
19618
19619  [
19620 \begin_inset Flex Code
19621 status collapsed
19622
19623 \begin_layout Plain Layout
19624
19625 \emph on
19626 0
19627 \end_layout
19628
19629 \end_inset
19630
19631 ,
19632 \begin_inset space \thinspace{}
19633 \end_inset
19634
19635
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 1
19641 \end_layout
19642
19643 \end_inset
19644
19645 ] As with paragraph styles, see 
19646 \begin_inset CommandInset ref
19647 LatexCommand ref
19648 reference "subsec:Paragraph-Styles"
19649
19650 \end_inset
19651
19652 .
19653  Default is false.
19654 \end_layout
19655
19656 \begin_layout Description
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661 PassThru
19662 \end_layout
19663
19664 \end_inset
19665
19666  [
19667 \begin_inset Flex Code
19668 status collapsed
19669
19670 \begin_layout Plain Layout
19671
19672 \emph on
19673 0
19674 \end_layout
19675
19676 \end_inset
19677
19678 ,
19679 \begin_inset space \thinspace{}
19680 \end_inset
19681
19682
19683 \begin_inset Flex Code
19684 status collapsed
19685
19686 \begin_layout Plain Layout
19687 1
19688 \end_layout
19689
19690 \end_inset
19691
19692 ] As with paragraph styles, see 
19693 \begin_inset CommandInset ref
19694 LatexCommand ref
19695 reference "subsec:Paragraph-Styles"
19696
19697 \end_inset
19698
19699 .
19700  Default is false.
19701 \end_layout
19702
19703 \begin_layout Description
19704 \begin_inset Flex Code
19705 status collapsed
19706
19707 \begin_layout Plain Layout
19708 Preamble
19709 \end_layout
19710
19711 \end_inset
19712
19713  As with paragraph styles, see 
19714 \begin_inset CommandInset ref
19715 LatexCommand ref
19716 reference "subsec:Paragraph-Styles"
19717
19718 \end_inset
19719
19720 .
19721 \end_layout
19722
19723 \begin_layout Description
19724 \begin_inset Flex Code
19725 status collapsed
19726
19727 \begin_layout Plain Layout
19728 RefPrefix
19729 \end_layout
19730
19731 \end_inset
19732
19733  [
19734 \begin_inset Flex Code
19735 status collapsed
19736
19737 \begin_layout Plain Layout
19738 string
19739 \end_layout
19740
19741 \end_inset
19742
19743 ] The prefix to use when creating labels referring to insets of this type.
19744  This allows the use of formatted references.
19745 \end_layout
19746
19747 \begin_layout Description
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 Requires
19753 \end_layout
19754
19755 \end_inset
19756
19757  [
19758 \begin_inset Flex Code
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 string
19763 \end_layout
19764
19765 \end_inset
19766
19767 ] As with paragraph styles, see 
19768 \begin_inset CommandInset ref
19769 LatexCommand ref
19770 reference "subsec:Paragraph-Styles"
19771
19772 \end_inset
19773
19774 .
19775 \end_layout
19776
19777 \begin_layout Description
19778 \begin_inset Flex Code
19779 status collapsed
19780
19781 \begin_layout Plain Layout
19782 ResetArgs
19783 \end_layout
19784
19785 \end_inset
19786
19787  [
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792
19793 \emph on
19794 0
19795 \end_layout
19796
19797 \end_inset
19798
19799 ,
19800 \begin_inset space \thinspace{}
19801 \end_inset
19802
19803
19804 \begin_inset Flex Code
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808 1
19809 \end_layout
19810
19811 \end_inset
19812
19813 ] Resets the \SpecialChar LaTeX
19814  arguments of this layout (as defined via the 
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 Argument
19820 \end_layout
19821
19822 \end_inset
19823
19824  tag).
19825  This is useful if you have copied a style via 
19826 \begin_inset Flex Code
19827 status collapsed
19828
19829 \begin_layout Plain Layout
19830 CopyStyle
19831 \end_layout
19832
19833 \end_inset
19834
19835 , but you do not want to inherit its (required and optional) arguments.
19836 \end_layout
19837
19838 \begin_layout Description
19839 \begin_inset Flex Code
19840 status collapsed
19841
19842 \begin_layout Plain Layout
19843 ResetsFont
19844 \end_layout
19845
19846 \end_inset
19847
19848  [
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 0
19854 \end_layout
19855
19856 \end_inset
19857
19858 ,
19859 \begin_inset space \thinspace{}
19860 \end_inset
19861
19862
19863 \begin_inset Flex Code
19864 status collapsed
19865
19866 \begin_layout Plain Layout
19867
19868 \emph on
19869 1
19870 \end_layout
19871
19872 \end_inset
19873
19874 ] Whether this inset should use the font of its surrounding environment
19875  or uses its own.
19876  Default is false: use the font of the surrounding environment.
19877 \end_layout
19878
19879 \begin_layout Description
19880 \begin_inset Flex Code
19881 status collapsed
19882
19883 \begin_layout Plain Layout
19884 RightDelim
19885 \end_layout
19886
19887 \end_inset
19888
19889  [
19890 \begin_inset Flex Code
19891 status collapsed
19892
19893 \begin_layout Plain Layout
19894 string
19895 \end_layout
19896
19897 \end_inset
19898
19899 ] A string that is put at the end of the layout content.
19900  A line break in the output can be indicated by 
19901 \begin_inset Flex Code
19902 status collapsed
19903
19904 \begin_layout Plain Layout
19905 <br/>
19906 \end_layout
19907
19908 \end_inset
19909
19910 .
19911 \end_layout
19912
19913 \begin_layout Description
19914 \begin_inset Flex Code
19915 status collapsed
19916
19917 \begin_layout Plain Layout
19918 Spellcheck
19919 \end_layout
19920
19921 \end_inset
19922
19923  [
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 0
19929 \end_layout
19930
19931 \end_inset
19932
19933 ,
19934 \begin_inset space \thinspace{}
19935 \end_inset
19936
19937
19938 \begin_inset Flex Code
19939 status collapsed
19940
19941 \begin_layout Plain Layout
19942
19943 \emph on
19944 1
19945 \end_layout
19946
19947 \end_inset
19948
19949 ] Allow spell-checking the contents of this inset.
19950  Default is true.
19951 \end_layout
19952
19953 \begin_layout Subsection
19954 Counters
19955 \begin_inset CommandInset label
19956 LatexCommand label
19957 name "subsec:Counters"
19958
19959 \end_inset
19960
19961
19962 \end_layout
19963
19964 \begin_layout Standard
19965 It is necessary to define the counters (
19966 \begin_inset Flex Noun
19967 status collapsed
19968
19969 \begin_layout Plain Layout
19970 chapter
19971 \end_layout
19972
19973 \end_inset
19974
19975
19976 \begin_inset Flex Noun
19977 status collapsed
19978
19979 \begin_layout Plain Layout
19980 figure
19981 \end_layout
19982
19983 \end_inset
19984
19985 , \SpecialChar ldots
19986 ) in the text class itself.
19987  The standard counters are defined in the file 
19988 \begin_inset Flex Code
19989 status collapsed
19990
19991 \begin_layout Plain Layout
19992 stdcounters.inc
19993 \end_layout
19994
19995 \end_inset
19996
19997 , so you may have to do no more than add
19998 \end_layout
19999
20000 \begin_layout LyX-Code
20001 Input stdcounters.inc
20002 \end_layout
20003
20004 \begin_layout Standard
20005 to your layout file to get them to work.
20006  But if you want to define custom counters, then you can do so.
20007  The counter declaration must begin with:
20008 \end_layout
20009
20010 \begin_layout LyX-Code
20011 Counter CounterName
20012 \end_layout
20013
20014 \begin_layout Standard
20015 where of course `
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020 CounterName
20021 \end_layout
20022
20023 \end_inset
20024
20025 ' is replaced by the name of the counter.
20026  And it must end with 
20027 \begin_inset Quotes eld
20028 \end_inset
20029
20030
20031 \begin_inset Flex Code
20032 status collapsed
20033
20034 \begin_layout Plain Layout
20035 End
20036 \end_layout
20037
20038 \end_inset
20039
20040
20041 \begin_inset Quotes erd
20042 \end_inset
20043
20044 .
20045  The following parameters can also be used:
20046 \end_layout
20047
20048 \begin_layout Description
20049 \begin_inset Flex Code
20050 status collapsed
20051
20052 \begin_layout Plain Layout
20053 InitialValue
20054 \end_layout
20055
20056 \end_inset
20057
20058  [
20059 \begin_inset Flex Code
20060 status collapsed
20061
20062 \begin_layout Plain Layout
20063 int=1
20064 \end_layout
20065
20066 \end_inset
20067
20068 ] Sets the initial value for the counter, to which it will be reset whenever
20069  that happens.
20070  Normally, one will want the default, 1.
20071 \end_layout
20072
20073 \begin_layout Description
20074 \begin_inset Flex Code
20075 status collapsed
20076
20077 \begin_layout Plain Layout
20078 LabelString
20079 \end_layout
20080
20081 \end_inset
20082
20083  [
20084 \begin_inset Flex Code
20085 status collapsed
20086
20087 \begin_layout Plain Layout
20088 string
20089 \end_layout
20090
20091 \end_inset
20092
20093 =
20094 \begin_inset Quotes erd
20095 \end_inset
20096
20097
20098 \begin_inset Quotes erd
20099 \end_inset
20100
20101 ] When defined, this string defines how the counter is displayed.
20102  Setting this value sets 
20103 \begin_inset Flex Code
20104 status collapsed
20105
20106 \begin_layout Plain Layout
20107 LabelStringAppendix
20108 \end_layout
20109
20110 \end_inset
20111
20112  to the same value.
20113  The following special constructs can be used in the string:
20114 \end_layout
20115
20116 \begin_deeper
20117 \begin_layout Itemize
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122
20123 \backslash
20124 thecounter
20125 \end_layout
20126
20127 \end_inset
20128
20129  will be replaced by the expansion of the 
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 LabelString
20135 \end_layout
20136
20137 \end_inset
20138
20139  (or 
20140 \begin_inset Flex Code
20141 status collapsed
20142
20143 \begin_layout Plain Layout
20144 LabelStringAppendix
20145 \end_layout
20146
20147 \end_inset
20148
20149 ) of the counter 
20150 \begin_inset Flex Code
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154 counter
20155 \end_layout
20156
20157 \end_inset
20158
20159 .
20160  
20161 \end_layout
20162
20163 \begin_layout Itemize
20164 counter values can be expressed using \SpecialChar LaTeX
20165 -like macros
20166 \begin_inset Newline newline
20167 \end_inset
20168
20169
20170 \begin_inset Flex Code
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174
20175 \backslash
20176
20177 \emph on
20178 numbertype
20179 \emph default
20180 {
20181 \emph on
20182 counter
20183 \emph default
20184 }
20185 \end_layout
20186
20187 \end_inset
20188
20189 , where 
20190 \begin_inset Flex Code
20191 status collapsed
20192
20193 \begin_layout Plain Layout
20194
20195 \emph on
20196 numbertype
20197 \end_layout
20198
20199 \end_inset
20200
20201  can be:
20202 \begin_inset Foot
20203 status collapsed
20204
20205 \begin_layout Plain Layout
20206
20207 \family roman
20208 \series medium
20209 \shape up
20210 \size normal
20211 \emph off
20212 \bar no
20213 \noun off
20214 \color none
20215 Actually, the situation is a bit more complicated: any
20216 \family default
20217 \series default
20218 \shape default
20219 \emph default
20220 \bar default
20221  
20222 \size default
20223 \emph on
20224 \noun default
20225 \color inherit
20226 numbertype
20227 \family roman
20228 \series medium
20229 \shape up
20230 \size normal
20231 \emph off
20232 \bar no
20233 \noun off
20234  other than those described below will produce arabic numerals.
20235  It would not be surprising to see this change in the future.
20236 \end_layout
20237
20238 \end_inset
20239
20240  
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 arabic
20246 \end_layout
20247
20248 \end_inset
20249
20250 : 1, 2, 3,\SpecialChar ldots
20251
20252 \begin_inset Flex Code
20253 status collapsed
20254
20255 \begin_layout Plain Layout
20256 alph
20257 \end_layout
20258
20259 \end_inset
20260
20261  for lower-case letters: a, b, c, \SpecialChar ldots
20262
20263 \begin_inset Flex Code
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267 Alph
20268 \end_layout
20269
20270 \end_inset
20271
20272  for upper-case letters: A, B, C, \SpecialChar ldots
20273
20274 \begin_inset Flex Code
20275 status collapsed
20276
20277 \begin_layout Plain Layout
20278 roman
20279 \end_layout
20280
20281 \end_inset
20282
20283  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20284
20285 \begin_inset Flex Code
20286 status collapsed
20287
20288 \begin_layout Plain Layout
20289 Roman
20290 \end_layout
20291
20292 \end_inset
20293
20294  for upper-case roman numerals: I, II, III\SpecialChar ldots
20295
20296 \begin_inset Flex Code
20297 status collapsed
20298
20299 \begin_layout Plain Layout
20300 hebrew
20301 \end_layout
20302
20303 \end_inset
20304
20305  for hebrew numerals.
20306 \end_layout
20307
20308 \end_deeper
20309 \begin_layout Standard
20310 If LabelString is not defined, a default value is constructed as follows:
20311  if the counter has a master counter 
20312 \begin_inset Flex Code
20313 status collapsed
20314
20315 \begin_layout Plain Layout
20316 master
20317 \end_layout
20318
20319 \end_inset
20320
20321  (defined via 
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 Within
20327 \end_layout
20328
20329 \end_inset
20330
20331 ), the string
20332 \begin_inset Newline newline
20333 \end_inset
20334
20335
20336 \begin_inset Flex Code
20337 status collapsed
20338
20339 \begin_layout Plain Layout
20340
20341 \backslash
20342 themaster.
20343 \backslash
20344 arabic{counter}
20345 \end_layout
20346
20347 \end_inset
20348
20349  is used; otherwise the string 
20350 \begin_inset Flex Code
20351 status collapsed
20352
20353 \begin_layout Plain Layout
20354
20355 \backslash
20356 arabic{counter}
20357 \end_layout
20358
20359 \end_inset
20360
20361  is used.
20362 \end_layout
20363
20364 \begin_layout Description
20365 \begin_inset Flex Code
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369 LabelStringAppendix
20370 \end_layout
20371
20372 \end_inset
20373
20374  [
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 string
20380 \end_layout
20381
20382 \end_inset
20383
20384 =
20385 \begin_inset Quotes erd
20386 \end_inset
20387
20388
20389 \begin_inset Quotes erd
20390 \end_inset
20391
20392 ] Same as 
20393 \begin_inset Flex Code
20394 status collapsed
20395
20396 \begin_layout Plain Layout
20397 LabelString
20398 \end_layout
20399
20400 \end_inset
20401
20402 , but for use in the Appendix.
20403 \end_layout
20404
20405 \begin_layout Description
20406 \begin_inset Flex Code
20407 status collapsed
20408
20409 \begin_layout Plain Layout
20410 PrettyFormat
20411 \end_layout
20412
20413 \end_inset
20414
20415  [
20416 \begin_inset Flex Code
20417 status collapsed
20418
20419 \begin_layout Plain Layout
20420 string
20421 \end_layout
20422
20423 \end_inset
20424
20425 =
20426 \begin_inset Quotes erd
20427 \end_inset
20428
20429
20430 \begin_inset Quotes erd
20431 \end_inset
20432
20433 ] A format for use with formatted references to this counter.
20434  For example, one might want to have references to section numbers appear
20435  as 
20436 \begin_inset Quotes eld
20437 \end_inset
20438
20439 Section 2.4
20440 \begin_inset Quotes erd
20441 \end_inset
20442
20443 .
20444  The string should contain 
20445 \begin_inset Quotes eld
20446 \end_inset
20447
20448 ##
20449 \begin_inset Quotes erd
20450 \end_inset
20451
20452 .
20453  This will be replaced by the counter number itself.
20454  So, for sections, it would be: Section ##.
20455 \end_layout
20456
20457 \begin_layout Description
20458 \begin_inset Flex Code
20459 status collapsed
20460
20461 \begin_layout Plain Layout
20462 Within
20463 \end_layout
20464
20465 \end_inset
20466
20467  [
20468 \begin_inset Flex Code
20469 status collapsed
20470
20471 \begin_layout Plain Layout
20472 string
20473 \end_layout
20474
20475 \end_inset
20476
20477 =
20478 \begin_inset Quotes erd
20479 \end_inset
20480
20481
20482 \begin_inset Quotes erd
20483 \end_inset
20484
20485 ] If this is set to the name of another counter, the present counter will
20486  be reset every time the other one is increased.
20487  For example, 
20488 \begin_inset Flex Code
20489 status collapsed
20490
20491 \begin_layout Plain Layout
20492 subsection
20493 \end_layout
20494
20495 \end_inset
20496
20497  is numbered inside 
20498 \begin_inset Flex Code
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502 section
20503 \end_layout
20504
20505 \end_inset
20506
20507 .
20508 \end_layout
20509
20510 \begin_layout Subsection
20511 Font description
20512 \begin_inset CommandInset label
20513 LatexCommand label
20514 name "subsec:Font-description"
20515
20516 \end_inset
20517
20518
20519 \end_layout
20520
20521 \begin_layout Standard
20522 A font description looks like this:
20523 \end_layout
20524
20525 \begin_layout LyX-Code
20526 Font 
20527 \family roman
20528 \emph on
20529 or
20530 \family default
20531 \emph default
20532  LabelFont
20533 \emph on
20534  
20535 \family roman
20536 or
20537 \family default
20538 \emph default
20539  DefaultFont
20540 \end_layout
20541
20542 \begin_layout LyX-Code
20543  ...
20544 \end_layout
20545
20546 \begin_layout LyX-Code
20547 EndFont
20548 \end_layout
20549
20550 \begin_layout Standard
20551 The following commands are available:
20552 \end_layout
20553
20554 \begin_layout Description
20555 \begin_inset Flex Code
20556 status collapsed
20557
20558 \begin_layout Plain Layout
20559 Color
20560 \end_layout
20561
20562 \end_inset
20563
20564  [
20565 \begin_inset Flex Code
20566 status collapsed
20567
20568 \begin_layout Plain Layout
20569
20570 \emph on
20571 none
20572 \end_layout
20573
20574 \end_inset
20575
20576
20577 \begin_inset Flex Code
20578 status collapsed
20579
20580 \begin_layout Plain Layout
20581 black
20582 \end_layout
20583
20584 \end_inset
20585
20586
20587 \begin_inset Flex Code
20588 status collapsed
20589
20590 \begin_layout Plain Layout
20591 white
20592 \end_layout
20593
20594 \end_inset
20595
20596
20597 \begin_inset Flex Code
20598 status collapsed
20599
20600 \begin_layout Plain Layout
20601 red
20602 \end_layout
20603
20604 \end_inset
20605
20606
20607 \begin_inset Flex Code
20608 status collapsed
20609
20610 \begin_layout Plain Layout
20611 green
20612 \end_layout
20613
20614 \end_inset
20615
20616
20617 \begin_inset Flex Code
20618 status collapsed
20619
20620 \begin_layout Plain Layout
20621 blue
20622 \end_layout
20623
20624 \end_inset
20625
20626
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 cyan
20632 \end_layout
20633
20634 \end_inset
20635
20636
20637 \begin_inset Flex Code
20638 status collapsed
20639
20640 \begin_layout Plain Layout
20641 magenta
20642 \end_layout
20643
20644 \end_inset
20645
20646
20647 \begin_inset Flex Code
20648 status collapsed
20649
20650 \begin_layout Plain Layout
20651 yellow
20652 \end_layout
20653
20654 \end_inset
20655
20656
20657 \begin_inset Flex Code
20658 status collapsed
20659
20660 \begin_layout Plain Layout
20661 brown
20662 \end_layout
20663
20664 \end_inset
20665
20666
20667 \begin_inset Flex Code
20668 status collapsed
20669
20670 \begin_layout Plain Layout
20671 darkgray
20672 \end_layout
20673
20674 \end_inset
20675
20676
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681 gray
20682 \end_layout
20683
20684 \end_inset
20685
20686
20687 \begin_inset Flex Code
20688 status collapsed
20689
20690 \begin_layout Plain Layout
20691 lightgray
20692 \end_layout
20693
20694 \end_inset
20695
20696
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 lime
20702 \end_layout
20703
20704 \end_inset
20705
20706
20707 \begin_inset Flex Code
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711 orange
20712 \end_layout
20713
20714 \end_inset
20715
20716
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 olive
20722 \end_layout
20723
20724 \end_inset
20725
20726
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731 pink
20732 \end_layout
20733
20734 \end_inset
20735
20736
20737 \begin_inset Flex Code
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741 purple
20742 \end_layout
20743
20744 \end_inset
20745
20746
20747 \begin_inset Flex Code
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751 teal
20752 \end_layout
20753
20754 \end_inset
20755
20756
20757 \begin_inset Flex Code
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761 violet
20762 \end_layout
20763
20764 \end_inset
20765
20766 ]
20767 \end_layout
20768
20769 \begin_layout Description
20770 \begin_inset Flex Code
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 Family
20775 \end_layout
20776
20777 \end_inset
20778
20779  [
20780 \begin_inset Flex Code
20781 status collapsed
20782
20783 \begin_layout Plain Layout
20784
20785 \emph on
20786 Roman
20787 \end_layout
20788
20789 \end_inset
20790
20791
20792 \begin_inset Flex Code
20793 status collapsed
20794
20795 \begin_layout Plain Layout
20796 Sans
20797 \end_layout
20798
20799 \end_inset
20800
20801
20802 \begin_inset Flex Code
20803 status collapsed
20804
20805 \begin_layout Plain Layout
20806 Typewriter
20807 \end_layout
20808
20809 \end_inset
20810
20811 ]
20812 \end_layout
20813
20814 \begin_layout Description
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 Misc
20820 \end_layout
20821
20822 \end_inset
20823
20824  [
20825 \begin_inset Flex Code
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829 string
20830 \end_layout
20831
20832 \end_inset
20833
20834 ] Valid arguments are: 
20835 \begin_inset Flex Code
20836 status collapsed
20837
20838 \begin_layout Plain Layout
20839 emph
20840 \end_layout
20841
20842 \end_inset
20843
20844
20845 \begin_inset Flex Code
20846 status collapsed
20847
20848 \begin_layout Plain Layout
20849 noun
20850 \end_layout
20851
20852 \end_inset
20853
20854
20855 \begin_inset Flex Code
20856 status collapsed
20857
20858 \begin_layout Plain Layout
20859 strikeout
20860 \end_layout
20861
20862 \end_inset
20863
20864
20865 \begin_inset Flex Code
20866 status collapsed
20867
20868 \begin_layout Plain Layout
20869 underbar
20870 \end_layout
20871
20872 \end_inset
20873
20874
20875 \begin_inset Flex Code
20876 status collapsed
20877
20878 \begin_layout Plain Layout
20879 uuline
20880 \end_layout
20881
20882 \end_inset
20883
20884
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 uwave
20890 \end_layout
20891
20892 \end_inset
20893
20894
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 no_emph
20900 \end_layout
20901
20902 \end_inset
20903
20904
20905 \begin_inset Flex Code
20906 status collapsed
20907
20908 \begin_layout Plain Layout
20909 no_noun
20910 \end_layout
20911
20912 \end_inset
20913
20914
20915 \begin_inset Flex Code
20916 status collapsed
20917
20918 \begin_layout Plain Layout
20919 no_strikeout
20920 \end_layout
20921
20922 \end_inset
20923
20924
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 no_bar
20930 \end_layout
20931
20932 \end_inset
20933
20934
20935 \begin_inset Flex Code
20936 status collapsed
20937
20938 \begin_layout Plain Layout
20939 no_uuline
20940 \end_layout
20941
20942 \end_inset
20943
20944  and 
20945 \begin_inset Flex Code
20946 status collapsed
20947
20948 \begin_layout Plain Layout
20949 no_uwave
20950 \end_layout
20951
20952 \end_inset
20953
20954 .
20955  Each of these turns on or off the corresponding attribute.
20956  For example, 
20957 \begin_inset Flex Code
20958 status collapsed
20959
20960 \begin_layout Plain Layout
20961 emph
20962 \end_layout
20963
20964 \end_inset
20965
20966  turns on emphasis, and 
20967 \begin_inset Flex Code
20968 status collapsed
20969
20970 \begin_layout Plain Layout
20971 no_emph
20972 \end_layout
20973
20974 \end_inset
20975
20976  turns it off.
20977  
20978 \begin_inset Newline newline
20979 \end_inset
20980
20981 If the latter seems puzzling, remember that the font settings for the present
20982  context are generally inherited from the surrounding context.
20983  So 
20984 \begin_inset Flex Code
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988 no_emph
20989 \end_layout
20990
20991 \end_inset
20992
20993  would turn off the emphasis that was anyway in effect, say, in a theorem
20994  environment.
20995 \end_layout
20996
20997 \begin_layout Description
20998 \begin_inset Flex Code
20999 status collapsed
21000
21001 \begin_layout Plain Layout
21002 Series
21003 \end_layout
21004
21005 \end_inset
21006
21007  [
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012
21013 \emph on
21014 Medium
21015 \end_layout
21016
21017 \end_inset
21018
21019
21020 \begin_inset Flex Code
21021 status collapsed
21022
21023 \begin_layout Plain Layout
21024 Bold
21025 \end_layout
21026
21027 \end_inset
21028
21029
21030 \end_layout
21031
21032 \begin_layout Description
21033 \begin_inset Flex Code
21034 status collapsed
21035
21036 \begin_layout Plain Layout
21037 Shape
21038 \end_layout
21039
21040 \end_inset
21041
21042  [
21043 \begin_inset Flex Code
21044 status collapsed
21045
21046 \begin_layout Plain Layout
21047
21048 \emph on
21049 Up
21050 \end_layout
21051
21052 \end_inset
21053
21054
21055 \begin_inset Flex Code
21056 status collapsed
21057
21058 \begin_layout Plain Layout
21059 Italic
21060 \end_layout
21061
21062 \end_inset
21063
21064
21065 \begin_inset Flex Code
21066 status collapsed
21067
21068 \begin_layout Plain Layout
21069 SmallCaps
21070 \end_layout
21071
21072 \end_inset
21073
21074
21075 \begin_inset Flex Code
21076 status collapsed
21077
21078 \begin_layout Plain Layout
21079 Slanted
21080 \end_layout
21081
21082 \end_inset
21083
21084
21085 \end_layout
21086
21087 \begin_layout Description
21088 \begin_inset Flex Code
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092 Size
21093 \end_layout
21094
21095 \end_inset
21096
21097  [
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102 tiny
21103 \end_layout
21104
21105 \end_inset
21106
21107
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112 small
21113 \end_layout
21114
21115 \end_inset
21116
21117
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122
21123 \emph on
21124 normal
21125 \end_layout
21126
21127 \end_inset
21128
21129
21130 \begin_inset Flex Code
21131 status collapsed
21132
21133 \begin_layout Plain Layout
21134 large
21135 \end_layout
21136
21137 \end_inset
21138
21139
21140 \begin_inset Flex Code
21141 status collapsed
21142
21143 \begin_layout Plain Layout
21144 larger
21145 \end_layout
21146
21147 \end_inset
21148
21149
21150 \begin_inset Flex Code
21151 status collapsed
21152
21153 \begin_layout Plain Layout
21154 largest
21155 \end_layout
21156
21157 \end_inset
21158
21159
21160 \begin_inset Flex Code
21161 status collapsed
21162
21163 \begin_layout Plain Layout
21164 huge
21165 \end_layout
21166
21167 \end_inset
21168
21169
21170 \begin_inset Flex Code
21171 status collapsed
21172
21173 \begin_layout Plain Layout
21174 giant
21175 \end_layout
21176
21177 \end_inset
21178
21179 ]
21180 \end_layout
21181
21182 \begin_layout Subsection
21183 \begin_inset CommandInset label
21184 LatexCommand label
21185 name "subsec:Citation-engine-description"
21186
21187 \end_inset
21188
21189 Cite engine description
21190 \end_layout
21191
21192 \begin_layout Standard
21193 The 
21194 \begin_inset Flex Code
21195 status collapsed
21196
21197 \begin_layout Plain Layout
21198 CiteEngine
21199 \end_layout
21200
21201 \end_inset
21202
21203  blocks, as used mainly in cite engine files (see 
21204 \begin_inset CommandInset ref
21205 LatexCommand ref
21206 reference "subsec:Cite-Engine-Files"
21207 plural "false"
21208 caps "false"
21209 noprefix "false"
21210
21211 \end_inset
21212
21213 ), define the citation commands provided by a specific 
21214 \begin_inset Quotes eld
21215 \end_inset
21216
21217 cite engine
21218 \begin_inset Quotes erd
21219 \end_inset
21220
21221 .
21222  A cite engine, in \SpecialChar LyX
21223  terms, is way specific way to format citations, using
21224  numbers, author names and/or years.
21225  Currently, \SpecialChar LyX
21226  supports three such engine types, namely:
21227 \end_layout
21228
21229 \begin_layout Enumerate
21230 \begin_inset Flex Code
21231 status collapsed
21232
21233 \begin_layout Plain Layout
21234 default
21235 \end_layout
21236
21237 \end_inset
21238
21239 : the default Bib\SpecialChar TeX
21240  way to format citations, a simple numeric style (e.
21241 \begin_inset space \thinspace{}
21242 \end_inset
21243
21244 g., 
21245 \begin_inset Quotes eld
21246 \end_inset
21247
21248 [1]
21249 \begin_inset Quotes erd
21250 \end_inset
21251
21252 )
21253 \end_layout
21254
21255 \begin_layout Enumerate
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 authoryear
21261 \end_layout
21262
21263 \end_inset
21264
21265 : Harvard-styled citations using author names and publication year (e.
21266 \begin_inset space \thinspace{}
21267 \end_inset
21268
21269 g., 
21270 \begin_inset Quotes eld
21271 \end_inset
21272
21273 Smith and Miller (2017b)
21274 \begin_inset Quotes erd
21275 \end_inset
21276
21277 )
21278 \end_layout
21279
21280 \begin_layout Enumerate
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 numerical
21286 \end_layout
21287
21288 \end_inset
21289
21290 : extended numerical citations that also allow for author or title next
21291  to the number (e.
21292 \begin_inset space \thinspace{}
21293 \end_inset
21294
21295 g., 
21296 \begin_inset Quotes eld
21297 \end_inset
21298
21299 Smith and Miller [1]
21300 \begin_inset Quotes erd
21301 \end_inset
21302
21303 )
21304 \end_layout
21305
21306 \begin_layout Standard
21307 \begin_inset Flex Code
21308 status collapsed
21309
21310 \begin_layout Plain Layout
21311 CiteEngine
21312 \end_layout
21313
21314 \end_inset
21315
21316  blocks look like this:
21317 \end_layout
21318
21319 \begin_layout LyX-Code
21320 CiteEngine default
21321 \end_layout
21322
21323 \begin_layout LyX-Code
21324  cite
21325 \end_layout
21326
21327 \begin_layout LyX-Code
21328  Citep*[][]
21329 \end_layout
21330
21331 \begin_layout LyX-Code
21332  citeyearpar[][]=parencite*
21333 \end_layout
21334
21335 \begin_layout LyX-Code
21336  ...
21337 \end_layout
21338
21339 \begin_layout LyX-Code
21340 End
21341 \end_layout
21342
21343 \begin_layout Standard
21344 The tag following 
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349 CiteEngine
21350 \end_layout
21351
21352 \end_inset
21353
21354  denotes the engine.
21355  The individual lines respectively define a cite command or cite command
21356  paradigm supported by this engine.
21357  The line can be as simple as a cite command that is used both to name the
21358  respective \SpecialChar LyX
21359  command and the \SpecialChar LaTeX
21360  output or more complex in order to differentiate
21361  things.
21362  The full syntax is:
21363 \end_layout
21364
21365 \begin_layout LyX-Code
21366 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21367 \end_layout
21368
21369 \begin_layout Itemize
21370 \begin_inset Flex Code
21371 status collapsed
21372
21373 \begin_layout Plain Layout
21374 LyXName
21375 \end_layout
21376
21377 \end_inset
21378
21379 : The name as used in the 
21380 \begin_inset Flex Code
21381 status collapsed
21382
21383 \begin_layout Plain Layout
21384 *.lyx
21385 \end_layout
21386
21387 \end_inset
21388
21389  file.
21390 \end_layout
21391
21392 \begin_deeper
21393 \begin_layout Standard
21394 For portability reasons, we try to use the same name for same-formatted
21395  commands in different cite packages (thus many names stem from natbib,
21396  and thus we need to differentiate a 
21397 \begin_inset Flex Code
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401 latexcmd
21402 \end_layout
21403
21404 \end_inset
21405
21406  sometimes, if the \SpecialChar LaTeX
21407  command names differ).
21408 \end_layout
21409
21410 \end_deeper
21411 \begin_layout Itemize
21412 \begin_inset Flex Code
21413 status collapsed
21414
21415 \begin_layout Plain Layout
21416 alias
21417 \end_layout
21418
21419 \end_inset
21420
21421 : a (comma-separated) list of commands that fall back to the given 
21422 \begin_inset Flex Code
21423 status collapsed
21424
21425 \begin_layout Plain Layout
21426 LyXName
21427 \end_layout
21428
21429 \end_inset
21430
21431  in the current engine.
21432  This eases the switch of citation packages and engines.
21433  The 
21434 \begin_inset Flex Code
21435 status collapsed
21436
21437 \begin_layout Plain Layout
21438 alias
21439 \end_layout
21440
21441 \end_inset
21442
21443  can be compared to 
21444 \begin_inset Flex Code
21445 status collapsed
21446
21447 \begin_layout Plain Layout
21448 ObsoletedBy
21449 \end_layout
21450
21451 \end_inset
21452
21453  in layout definitions.
21454 \end_layout
21455
21456 \begin_layout Itemize
21457 \begin_inset Flex Code
21458 status collapsed
21459
21460 \begin_layout Plain Layout
21461 latexcmd
21462 \end_layout
21463
21464 \end_inset
21465
21466 : The actual \SpecialChar LaTeX
21467  command that is output.
21468  
21469 \end_layout
21470
21471 \begin_layout Standard
21472 \begin_inset Flex Code
21473 status collapsed
21474
21475 \begin_layout Plain Layout
21476 Alias
21477 \end_layout
21478
21479 \end_inset
21480
21481  and 
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 latexcmd
21487 \end_layout
21488
21489 \end_inset
21490
21491  are optional.
21492  If no 
21493 \begin_inset Flex Code
21494 status collapsed
21495
21496 \begin_layout Plain Layout
21497 latexcmd
21498 \end_layout
21499
21500 \end_inset
21501
21502  is given, the 
21503 \begin_inset Flex Code
21504 status collapsed
21505
21506 \begin_layout Plain Layout
21507 LyXName
21508 \end_layout
21509
21510 \end_inset
21511
21512  will be output to \SpecialChar LaTeX
21513 .
21514 \end_layout
21515
21516 \begin_layout Standard
21517 Note further:
21518 \end_layout
21519
21520 \begin_layout Itemize
21521 Capitalization indicates that the command also has a capitalized form (
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526
21527 \backslash
21528 Latexcmd
21529 \end_layout
21530
21531 \end_inset
21532
21533  vs.
21534  
21535 \begin_inset Flex Code
21536 status collapsed
21537
21538 \begin_layout Plain Layout
21539
21540 \backslash
21541 latexcmd
21542 \end_layout
21543
21544 \end_inset
21545
21546 ).
21547  These usually enforce up-casing of name prefixes (
21548 \emph on
21549 von Goethe
21550 \emph default
21551  
21552 \begin_inset Formula $\Rightarrow$
21553 \end_inset
21554
21555  
21556 \emph on
21557 Von Goethe
21558 \emph default
21559 ).
21560 \end_layout
21561
21562 \begin_layout Itemize
21563 Brackets 
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 []
21569 \end_layout
21570
21571 \end_inset
21572
21573  indicate the number of optional arguments (there can be 0–2).
21574 \end_layout
21575
21576 \begin_layout Itemize
21577 A star 
21578 \begin_inset Flex Code
21579 status collapsed
21580
21581 \begin_layout Plain Layout
21582 *
21583 \end_layout
21584
21585 \end_inset
21586
21587  indicates there is a starred version of the command (
21588 \begin_inset Flex Code
21589 status collapsed
21590
21591 \begin_layout Plain Layout
21592
21593 \backslash
21594 latexcmd*
21595 \end_layout
21596
21597 \end_inset
21598
21599  vs.
21600  
21601 \begin_inset Flex Code
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605
21606 \backslash
21607 latexcmd
21608 \end_layout
21609
21610 \end_inset
21611
21612 ).
21613  
21614 \end_layout
21615
21616 \begin_deeper
21617 \begin_layout Standard
21618 By default, the starred version means: Output all authors even if it should
21619  be shortened with 
21620 \begin_inset Quotes eld
21621 \end_inset
21622
21623 et al.
21624 \begin_inset Quotes erd
21625 \end_inset
21626
21627  due to the 
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 MaxCiteNames
21633 \end_layout
21634
21635 \end_inset
21636
21637  threshold.
21638 \end_layout
21639
21640 \begin_layout Standard
21641 If the star has a different meaning for a given command, it can be specified
21642  in angle brackets: 
21643 \begin_inset Flex Code
21644 status collapsed
21645
21646 \begin_layout Plain Layout
21647 <!_stardesc!_stardesctooltip>
21648 \end_layout
21649
21650 \end_inset
21651
21652 .
21653  Maximal two translatable macro keywords, marked by the prefix 
21654 \begin_inset Flex Code
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 !_
21659 \end_layout
21660
21661 \end_inset
21662
21663 , can be given.
21664  The first points to the string that replaces the 
21665 \begin_inset Quotes eld
21666 \end_inset
21667
21668 Full aut&hor list
21669 \begin_inset Quotes erd
21670 \end_inset
21671
21672  checkbox label in the citation dialog, the second one to an optional tool
21673  tip for this checkbox.
21674  
21675 \end_layout
21676
21677 \begin_layout Standard
21678 Note that these two macros have to be defined in a 
21679 \begin_inset Flex Code
21680 status collapsed
21681
21682 \begin_layout Plain Layout
21683 CiteFormat
21684 \end_layout
21685
21686 \end_inset
21687
21688  (see next section), dropping the 
21689 \begin_inset Flex Code
21690 status collapsed
21691
21692 \begin_layout Plain Layout
21693 !
21694 \end_layout
21695
21696 \end_inset
21697
21698  from the prefix, like this: 
21699 \end_layout
21700
21701 \begin_layout LyX-Code
21702 _stardesc Sta&rred command label
21703 \end_layout
21704
21705 \begin_layout LyX-Code
21706 _stardesctooltip Tooltip for the starred command checkbox.
21707 \end_layout
21708
21709 \end_deeper
21710 \begin_layout Itemize
21711 A dollar sign 
21712 \begin_inset Flex Code
21713 status collapsed
21714
21715 \begin_layout Plain Layout
21716 $
21717 \end_layout
21718
21719 \end_inset
21720
21721  indicates that this command features 
21722 \begin_inset Quotes eld
21723 \end_inset
21724
21725 qualified citation lists
21726 \begin_inset Quotes erd
21727 \end_inset
21728
21729 .
21730  This is a 
21731 \family sans
21732 Biblatex
21733 \family default
21734 -specific feature for multi-reference citations where an individual pre-
21735  and postnote can be given to each reference in the list.
21736  Please refer to the 
21737 \family sans
21738 Biblatex
21739 \family default
21740  manual for details.
21741 \end_layout
21742
21743 \begin_layout Subsection
21744 \begin_inset CommandInset label
21745 LatexCommand label
21746 name "subsec:Citation-format-description"
21747
21748 \end_inset
21749
21750 Cite format description
21751 \end_layout
21752
21753 \begin_layout Standard
21754 The 
21755 \begin_inset Flex Code
21756 status collapsed
21757
21758 \begin_layout Plain Layout
21759 CiteFormat
21760 \end_layout
21761
21762 \end_inset
21763
21764  blocks are used to describe how bibliographic information should be displayed,
21765  both within \SpecialChar LyX
21766  itself (in the citation dialog and in tooltips, for example)
21767  and in XHTML output.
21768  Such a block might look like this:
21769 \end_layout
21770
21771 \begin_layout LyX-Code
21772 CiteFormat
21773 \end_layout
21774
21775 \begin_layout LyX-Code
21776  article ...
21777 \end_layout
21778
21779 \begin_layout LyX-Code
21780  book ...
21781 \end_layout
21782
21783 \begin_layout LyX-Code
21784 End
21785 \end_layout
21786
21787 \begin_layout Standard
21788 or
21789 \end_layout
21790
21791 \begin_layout LyX-Code
21792 CiteFormat
21793 \end_layout
21794
21795 \begin_layout LyX-Code
21796  cite ...
21797 \end_layout
21798
21799 \begin_layout LyX-Code
21800  citet*[][] ...
21801 \end_layout
21802
21803 \begin_layout LyX-Code
21804 End
21805 \end_layout
21806
21807 \begin_layout Standard
21808 In the first case, the individual lines define how the bibliographic information
21809  associated with an article or book, respectively, is to be displayed, and
21810  such a definition can be given for any 
21811 \begin_inset Quotes els
21812 \end_inset
21813
21814 entry type
21815 \begin_inset Quotes ers
21816 \end_inset
21817
21818  that might be present in a Bib\SpecialChar TeX
21819  file.
21820  \SpecialChar LyX
21821  defines a default format in the source code that will be used if no specific
21822  definition has been given.
21823  \SpecialChar LyX
21824  predefines several formats in the file 
21825 \begin_inset Flex Code
21826 status collapsed
21827
21828 \begin_layout Plain Layout
21829 stdciteformats.inc
21830 \end_layout
21831
21832 \end_inset
21833
21834 , which is included in most of \SpecialChar LyX
21835 's document classes.
21836 \end_layout
21837
21838 \begin_layout Standard
21839 In the second case, the lines define how a specific citation command (in
21840  the example 
21841 \begin_inset Flex Code
21842 status collapsed
21843
21844 \begin_layout Plain Layout
21845
21846 \backslash
21847 cite
21848 \end_layout
21849
21850 \end_inset
21851
21852
21853 \begin_inset Flex Code
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857
21858 \backslash
21859 citet
21860 \end_layout
21861
21862 \end_inset
21863
21864 ) is to be displayed on the citation inset label, in the citation dialog,
21865  menu or XHTML output.
21866  \SpecialChar LyX
21867  defines such formats for the citation style variants it supports via 
21868 \family sans
21869 Document\SpecialChar menuseparator
21870 Setting\SpecialChar menuseparator
21871 Bibliography\SpecialChar ldots
21872
21873 \family default
21874  in specific 
21875 \begin_inset Flex Code
21876 status collapsed
21877
21878 \begin_layout Plain Layout
21879 *.citeengine
21880 \end_layout
21881
21882 \end_inset
21883
21884  files that are shipped with \SpecialChar LyX
21885  (see 
21886 \begin_inset CommandInset ref
21887 LatexCommand ref
21888 reference "subsec:Cite-Engine-Files"
21889 plural "false"
21890 caps "false"
21891 noprefix "false"
21892
21893 \end_inset
21894
21895 ).
21896 \end_layout
21897
21898 \begin_layout Standard
21899 The definitions use a simple language that allows Bib\SpecialChar TeX
21900  keys to be replaced
21901  with their values.
21902  Keys should be enclosed in 
21903 \begin_inset Flex Code
21904 status collapsed
21905
21906 \begin_layout Plain Layout
21907 %
21908 \end_layout
21909
21910 \end_inset
21911
21912  signs, e.g.: 
21913 \begin_inset Flex Code
21914 status collapsed
21915
21916 \begin_layout Plain Layout
21917 %author%
21918 \end_layout
21919
21920 \end_inset
21921
21922 .
21923  So a simple definition might look like this:
21924 \end_layout
21925
21926 \begin_layout LyX-Code
21927 misc %author%, 
21928 \begin_inset Quotes eld
21929 \end_inset
21930
21931 %title%
21932 \begin_inset Quotes erd
21933 \end_inset
21934
21935 .
21936 \end_layout
21937
21938 \begin_layout Standard
21939 This would print the author, followed by a comma, followed by the title,
21940  in quotes, followed by a period.
21941 \end_layout
21942
21943 \begin_layout Standard
21944 Of course, sometimes you may want to print a key only if it exists.
21945  This can be done by using a conditional construction, such as: 
21946 \begin_inset Flex Code
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 {%volume%[[vol.
21951 \begin_inset space ~
21952 \end_inset
21953
21954 %volume%]]}
21955 \end_layout
21956
21957 \end_inset
21958
21959 .
21960  This says: If the 
21961 \begin_inset Flex Code
21962 status collapsed
21963
21964 \begin_layout Plain Layout
21965 volume
21966 \end_layout
21967
21968 \end_inset
21969
21970  key exists, then print 
21971 \begin_inset Quotes eld
21972 \end_inset
21973
21974 vol.
21975 \begin_inset space ~
21976 \end_inset
21977
21978
21979 \begin_inset Quotes erd
21980 \end_inset
21981
21982  followed by the volume key.
21983  It is also possible to have an else clause in the conditional, such as:
21984 \begin_inset Newline newline
21985 \end_inset
21986
21987
21988 \begin_inset Flex Code
21989 status collapsed
21990
21991 \begin_layout Plain Layout
21992 {%author%[[%author%]][[%editor%, ed.]]}
21993 \end_layout
21994
21995 \end_inset
21996
21997 .
21998 \begin_inset Newline newline
21999 \end_inset
22000
22001 Here, the 
22002 \begin_inset Flex Code
22003 status collapsed
22004
22005 \begin_layout Plain Layout
22006 author
22007 \end_layout
22008
22009 \end_inset
22010
22011  key is printed if it exists; otherwise, the editor key is printed, followed
22012  by 
22013 \begin_inset Quotes eld
22014 \end_inset
22015
22016 ,
22017 \begin_inset space ~
22018 \end_inset
22019
22020 ed.
22021 \begin_inset Quotes erd
22022 \end_inset
22023
22024  Note that the key is again enclosed in 
22025 \begin_inset Flex Code
22026 status collapsed
22027
22028 \begin_layout Plain Layout
22029 %
22030 \end_layout
22031
22032 \end_inset
22033
22034  signs; the entire conditional is enclosed in braces; and the if and else
22035  clauses are enclosed in double brackets, 
22036 \begin_inset Quotes eld
22037 \end_inset
22038
22039
22040 \begin_inset Flex Code
22041 status collapsed
22042
22043 \begin_layout Plain Layout
22044 [[
22045 \end_layout
22046
22047 \end_inset
22048
22049
22050 \begin_inset Quotes eld
22051 \end_inset
22052
22053  and 
22054 \begin_inset Quotes eld
22055 \end_inset
22056
22057
22058 \begin_inset Flex Code
22059 status collapsed
22060
22061 \begin_layout Plain Layout
22062 ]]
22063 \end_layout
22064
22065 \end_inset
22066
22067
22068 \begin_inset Quotes erd
22069 \end_inset
22070
22071 .
22072  There must be no space between any of these.
22073 \end_layout
22074
22075 \begin_layout Standard
22076 Next to the entry keys, there are some special keys that can be used for
22077  these conditionals:
22078 \end_layout
22079
22080 \begin_layout Itemize
22081 \begin_inset Flex Code
22082 status collapsed
22083
22084 \begin_layout Plain Layout
22085 {%dialog%[[true]][[false]]}
22086 \end_layout
22087
22088 \end_inset
22089
22090 : process the 
22091 \begin_inset Quotes eld
22092 \end_inset
22093
22094 true
22095 \begin_inset Quotes erd
22096 \end_inset
22097
22098  part for dialogs and menus, the 
22099 \begin_inset Quotes eld
22100 \end_inset
22101
22102 false
22103 \begin_inset Quotes erd
22104 \end_inset
22105
22106  part for other contexts (workarea, export)
22107 \end_layout
22108
22109 \begin_layout Itemize
22110 \begin_inset Flex Code
22111 status collapsed
22112
22113 \begin_layout Plain Layout
22114 {%export%[[true]][[false]]}
22115 \end_layout
22116
22117 \end_inset
22118
22119 : process the 
22120 \begin_inset Quotes eld
22121 \end_inset
22122
22123 true
22124 \begin_inset Quotes erd
22125 \end_inset
22126
22127  part for export and menus, the 
22128 \begin_inset Quotes eld
22129 \end_inset
22130
22131 false
22132 \begin_inset Quotes erd
22133 \end_inset
22134
22135  part for other contexts (workarea, dialog)
22136 \end_layout
22137
22138 \begin_layout Itemize
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 {%next%[[true]]}
22144 \end_layout
22145
22146 \end_inset
22147
22148 : process the 
22149 \begin_inset Quotes eld
22150 \end_inset
22151
22152 true
22153 \begin_inset Quotes erd
22154 \end_inset
22155
22156  part if another item follows (e.
22157 \begin_inset space \thinspace{}
22158 \end_inset
22159
22160 g., in a citation with multiple keys)
22161 \end_layout
22162
22163 \begin_layout Itemize
22164 \begin_inset Flex Code
22165 status collapsed
22166
22167 \begin_layout Plain Layout
22168 {%second%[[true]][[false]]}
22169 \end_layout
22170
22171 \end_inset
22172
22173 : process the 
22174 \begin_inset Quotes eld
22175 \end_inset
22176
22177 true
22178 \begin_inset Quotes erd
22179 \end_inset
22180
22181  if this is the second of multiple items, else the 
22182 \begin_inset Quotes eld
22183 \end_inset
22184
22185 false
22186 \begin_inset Quotes erd
22187 \end_inset
22188
22189  part
22190 \end_layout
22191
22192 \begin_layout Itemize
22193 \begin_inset Flex Code
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197 {%ifstar%[[true]][[false]]}
22198 \end_layout
22199
22200 \end_inset
22201
22202 : process the 
22203 \begin_inset Quotes eld
22204 \end_inset
22205
22206 true
22207 \begin_inset Quotes erd
22208 \end_inset
22209
22210  part for starred citation commands (such as 
22211 \begin_inset Flex Code
22212 status collapsed
22213
22214 \begin_layout Plain Layout
22215
22216 \backslash
22217 cite*
22218 \end_layout
22219
22220 \end_inset
22221
22222 ), the false part for unstarred
22223 \end_layout
22224
22225 \begin_layout Itemize
22226 \begin_inset Flex Code
22227 status collapsed
22228
22229 \begin_layout Plain Layout
22230 {%ifentrytype:<type>%[[true]][[false]]}
22231 \end_layout
22232
22233 \end_inset
22234
22235 : process the 
22236 \begin_inset Quotes eld
22237 \end_inset
22238
22239 true
22240 \begin_inset Quotes erd
22241 \end_inset
22242
22243  if the current entry type matches 
22244 \begin_inset Flex Code
22245 status collapsed
22246
22247 \begin_layout Plain Layout
22248 <type>
22249 \end_layout
22250
22251 \end_inset
22252
22253 , else the false part (e.g., in a citation definition: 
22254 \begin_inset Flex Code
22255 status collapsed
22256
22257 \begin_layout Plain Layout
22258 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22259 \end_layout
22260
22261 \end_inset
22262
22263 )
22264 \end_layout
22265
22266 \begin_layout Itemize
22267 \begin_inset Flex Code
22268 status collapsed
22269
22270 \begin_layout Plain Layout
22271 {%ifmultiple:<authortype>%[[true]][[false]]}
22272 \end_layout
22273
22274 \end_inset
22275
22276 : process the 
22277 \begin_inset Quotes eld
22278 \end_inset
22279
22280 true
22281 \begin_inset Quotes erd
22282 \end_inset
22283
22284  if the current author type (author, editor etc.) has multiple authors, else
22285  the false part (e.g., in a bibliography definition: 
22286 \begin_inset Flex Code
22287 status collapsed
22288
22289 \begin_layout Plain Layout
22290 {%ifmultiple:editor%[[eds.]][[ed.]]}
22291 \end_layout
22292
22293 \end_inset
22294
22295 )
22296 \end_layout
22297
22298 \begin_layout Itemize
22299 \begin_inset Flex Code
22300 status collapsed
22301
22302 \begin_layout Plain Layout
22303 {%ifqualified%[[true]][[false]]}
22304 \end_layout
22305
22306 \end_inset
22307
22308 : process the 
22309 \begin_inset Quotes eld
22310 \end_inset
22311
22312 true
22313 \begin_inset Quotes erd
22314 \end_inset
22315
22316  part if the current citation is a qualified citation list (a specific 
22317 \family sans
22318 Biblatex
22319 \family default
22320  format for multi-reference citations), the false part if this is not the
22321  case.
22322 \end_layout
22323
22324 \begin_layout Standard
22325 We said that 
22326 \begin_inset Flex Code
22327 status collapsed
22328
22329 \begin_layout Plain Layout
22330 %author%
22331 \end_layout
22332
22333 \end_inset
22334
22335  prints the author key as it is recorded in the bibliography file.
22336  This might not be what you want, since it will result in a string such
22337  as 
22338 \begin_inset Quotes eld
22339 \end_inset
22340
22341 Miller, Peter and Smith, Mary and White, Jane
22342 \begin_inset Quotes erd
22343 \end_inset
22344
22345  (since 
22346 \begin_inset Quotes eld
22347 \end_inset
22348
22349 and
22350 \begin_inset Quotes erd
22351 \end_inset
22352
22353  is used by Bib\SpecialChar TeX
22354  to delimit authors).
22355  \SpecialChar LyX
22356  therefore provides some methods to get properly formatted name lists (which
22357  will also get translated).
22358  The following keys are provided:
22359 \end_layout
22360
22361 \begin_layout Enumerate
22362 For name lists with pre- and surname, suitable for the main authors/editors
22363  of a bibliography item.
22364  The 
22365 \begin_inset Flex Code
22366 status collapsed
22367
22368 \begin_layout Plain Layout
22369 <nametype>
22370 \end_layout
22371
22372 \end_inset
22373
22374  part denotes the kind of list that is requested (e.g.
22375  
22376 \begin_inset Flex Code
22377 status collapsed
22378
22379 \begin_layout Plain Layout
22380 <nametype:author>
22381 \end_layout
22382
22383 \end_inset
22384
22385 ):
22386 \end_layout
22387
22388 \begin_deeper
22389 \begin_layout Itemize
22390 \begin_inset Flex Code
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 %abbrvnames:<nametype>%
22395 \end_layout
22396
22397 \end_inset
22398
22399 : Provides a name list which is abbreviated (with 
22400 \begin_inset Quotes eld
22401 \end_inset
22402
22403 et al.
22404 \begin_inset Quotes erd
22405 \end_inset
22406
22407 ) when 
22408 \begin_inset Flex Code
22409 status collapsed
22410
22411 \begin_layout Plain Layout
22412 MaxCiteNames
22413 \end_layout
22414
22415 \end_inset
22416
22417  is reached.
22418 \end_layout
22419
22420 \begin_layout Itemize
22421 \begin_inset Flex Code
22422 status collapsed
22423
22424 \begin_layout Plain Layout
22425 %fullnames:<nametype>%
22426 \end_layout
22427
22428 \end_inset
22429
22430 : Provides a full name list (never abbreviated with 
22431 \begin_inset Quotes eld
22432 \end_inset
22433
22434 et al.
22435 \begin_inset Quotes erd
22436 \end_inset
22437
22438 ).
22439 \end_layout
22440
22441 \begin_layout Itemize
22442 \begin_inset Flex Code
22443 status collapsed
22444
22445 \begin_layout Plain Layout
22446 %forceabbrvnames:<nametype>%
22447 \end_layout
22448
22449 \end_inset
22450
22451 : Provides a name list which is always abbreviated (with 
22452 \begin_inset Quotes eld
22453 \end_inset
22454
22455 et al.
22456 \begin_inset Quotes erd
22457 \end_inset
22458
22459 ) irrespective of 
22460 \begin_inset Flex Code
22461 status collapsed
22462
22463 \begin_layout Plain Layout
22464 MaxCiteNames
22465 \end_layout
22466
22467 \end_inset
22468
22469 .
22470 \end_layout
22471
22472 \end_deeper
22473 \begin_layout Enumerate
22474 Alternative name lists with pre- and surname, if the order of pre- and surname
22475  inside the bibliography item differs (as in: 
22476 \begin_inset Quotes eld
22477 \end_inset
22478
22479 Miller, John: Some text, in: Mary Smith, ed.: A volume
22480 \begin_inset Quotes erd
22481 \end_inset
22482
22483 ):
22484 \end_layout
22485
22486 \begin_deeper
22487 \begin_layout Itemize
22488 \begin_inset Flex Code
22489 status collapsed
22490
22491 \begin_layout Plain Layout
22492 %abbrvbynames:<nametype>%
22493 \end_layout
22494
22495 \end_inset
22496
22497 : Provides a name list which is abbreviated (with 
22498 \begin_inset Quotes eld
22499 \end_inset
22500
22501 et al.
22502 \begin_inset Quotes erd
22503 \end_inset
22504
22505 ) when 
22506 \begin_inset Flex Code
22507 status collapsed
22508
22509 \begin_layout Plain Layout
22510 MaxCiteNames
22511 \end_layout
22512
22513 \end_inset
22514
22515  is reached.
22516 \end_layout
22517
22518 \begin_layout Itemize
22519 \begin_inset Flex Code
22520 status collapsed
22521
22522 \begin_layout Plain Layout
22523 %fullbynames:<nametype>%
22524 \end_layout
22525
22526 \end_inset
22527
22528 : Provides a full name list (never abbreviated with 
22529 \begin_inset Quotes eld
22530 \end_inset
22531
22532 et al.
22533 \begin_inset Quotes erd
22534 \end_inset
22535
22536 ).
22537 \end_layout
22538
22539 \begin_layout Itemize
22540 \begin_inset Flex Code
22541 status collapsed
22542
22543 \begin_layout Plain Layout
22544 %forceabbrvbynames:<nametype>%
22545 \end_layout
22546
22547 \end_inset
22548
22549 : Provides a name list which is always abbreviated (with 
22550 \begin_inset Quotes eld
22551 \end_inset
22552
22553 et al.
22554 \begin_inset Quotes erd
22555 \end_inset
22556
22557 ) irrespective of 
22558 \begin_inset Flex Code
22559 status collapsed
22560
22561 \begin_layout Plain Layout
22562 MaxCiteNames
22563 \end_layout
22564
22565 \end_inset
22566
22567 .
22568 \end_layout
22569
22570 \end_deeper
22571 \begin_layout Enumerate
22572 And finally name lists which consist of family names only, as used in author-yea
22573 r citation labels.
22574  These do not take a 
22575 \begin_inset Flex Code
22576 status collapsed
22577
22578 \begin_layout Plain Layout
22579 <nametype>
22580 \end_layout
22581
22582 \end_inset
22583
22584  part, but always return either an author list or, if this does not exist,
22585  an editor list (as common in author-year labels):
22586 \end_layout
22587
22588 \begin_deeper
22589 \begin_layout Itemize
22590 \begin_inset Flex Code
22591 status collapsed
22592
22593 \begin_layout Plain Layout
22594 %abbrvciteauthor%
22595 \end_layout
22596
22597 \end_inset
22598
22599 : Provides a name list which is abbreviated (with 
22600 \begin_inset Quotes eld
22601 \end_inset
22602
22603 et al.
22604 \begin_inset Quotes erd
22605 \end_inset
22606
22607 ) when 
22608 \begin_inset Flex Code
22609 status collapsed
22610
22611 \begin_layout Plain Layout
22612 MaxCiteNames
22613 \end_layout
22614
22615 \end_inset
22616
22617  is reached.
22618 \end_layout
22619
22620 \begin_layout Itemize
22621 \begin_inset Flex Code
22622 status collapsed
22623
22624 \begin_layout Plain Layout
22625 %fullciteauthor%
22626 \end_layout
22627
22628 \end_inset
22629
22630 : Provides a full name list (never abbreviated with 
22631 \begin_inset Quotes eld
22632 \end_inset
22633
22634 et al.
22635 \begin_inset Quotes erd
22636 \end_inset
22637
22638 ).
22639 \end_layout
22640
22641 \begin_layout Itemize
22642 \begin_inset Flex Code
22643 status collapsed
22644
22645 \begin_layout Plain Layout
22646 %forceabbrvciteauthor%
22647 \end_layout
22648
22649 \end_inset
22650
22651 : Provides a name list which is always abbreviated (with 
22652 \begin_inset Quotes eld
22653 \end_inset
22654
22655 et al.
22656 \begin_inset Quotes erd
22657 \end_inset
22658
22659 ) irrespective of 
22660 \begin_inset Flex Code
22661 status collapsed
22662
22663 \begin_layout Plain Layout
22664 MaxCiteNames
22665 \end_layout
22666
22667 \end_inset
22668
22669 .
22670 \end_layout
22671
22672 \end_deeper
22673 \begin_layout Standard
22674 The order of pre- and surname in the former two lists can be adjusted by
22675  these macros:
22676 \end_layout
22677
22678 \begin_layout Itemize
22679 \begin_inset Flex Code
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 !firstnameform %surname%, %prename%
22684 \end_layout
22685
22686 \end_inset
22687
22688  (first author in lists of type 1)
22689 \end_layout
22690
22691 \begin_layout Itemize
22692 \begin_inset Flex Code
22693 status collapsed
22694
22695 \begin_layout Plain Layout
22696 !othernameform %surname%, %prename%
22697 \end_layout
22698
22699 \end_inset
22700
22701  (other authors in lists of type 1)
22702 \end_layout
22703
22704 \begin_layout Itemize
22705 \begin_inset Flex Code
22706 status collapsed
22707
22708 \begin_layout Plain Layout
22709 !firstbynameform %prename% %surname%
22710 \end_layout
22711
22712 \end_inset
22713
22714  (first author in lists of type 2)
22715 \end_layout
22716
22717 \begin_layout Itemize
22718 \begin_inset Flex Code
22719 status collapsed
22720
22721 \begin_layout Plain Layout
22722 !otherbynameform %prename% %surname%
22723 \end_layout
22724
22725 \end_inset
22726
22727  (other authors in lists of type 2)
22728 \end_layout
22729
22730 \begin_layout Standard
22731 This allows you to configure namings like 
22732 \begin_inset Quotes eld
22733 \end_inset
22734
22735 Miller, Peter and Mary Smith: \SpecialChar ldots
22736 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
22737
22738 \begin_inset Quotes erd
22739 \end_inset
22740
22741 .
22742 \end_layout
22743
22744 \begin_layout Standard
22745 There is one other piece of syntax available in definitions, which looks
22746  like this: 
22747 \begin_inset Flex Code
22748 status collapsed
22749
22750 \begin_layout Plain Layout
22751 {!<i>!}
22752 \end_layout
22753
22754 \end_inset
22755
22756 .
22757  This defines a piece of formatting information that is to be used when
22758  creating 
22759 \begin_inset Quotes eld
22760 \end_inset
22761
22762 rich text
22763 \begin_inset Quotes erd
22764 \end_inset
22765
22766 .
22767  Obviously, we do not want to output HTML tags when writing plain text,
22768  so they should be wrapped in 
22769 \begin_inset Quotes eld
22770 \end_inset
22771
22772 {!
22773 \begin_inset Quotes erd
22774 \end_inset
22775
22776  and 
22777 \begin_inset Quotes eld
22778 \end_inset
22779
22780 !}
22781 \begin_inset Quotes erd
22782 \end_inset
22783
22784 .
22785 \end_layout
22786
22787 \begin_layout Standard
22788 Two special sorts of definitions are also possible in a 
22789 \begin_inset Flex Code
22790 status collapsed
22791
22792 \begin_layout Plain Layout
22793 CiteFormat
22794 \end_layout
22795
22796 \end_inset
22797
22798  block.
22799  An example of the first would be:
22800 \end_layout
22801
22802 \begin_layout LyX-Code
22803 !quotetitle 
22804 \begin_inset Quotes eld
22805 \end_inset
22806
22807 %title%
22808 \begin_inset Quotes erd
22809 \end_inset
22810
22811
22812 \end_layout
22813
22814 \begin_layout Standard
22815 This is an abbreviation, or macro, and it can be used by treating it as
22816  if it were a key: 
22817 \begin_inset Flex Code
22818 status collapsed
22819
22820 \begin_layout Plain Layout
22821 %!quotetitle%
22822 \end_layout
22823
22824 \end_inset
22825
22826 .
22827  \SpecialChar LyX
22828  will treat 
22829 \begin_inset Flex Code
22830 status collapsed
22831
22832 \begin_layout Plain Layout
22833 %!quotetitle%
22834 \end_layout
22835
22836 \end_inset
22837
22838  exactly as it would treat its definition.
22839  So, let us issue the obvious 
22840 \emph on
22841 warning
22842 \emph default
22843 .
22844  Do not do this:
22845 \end_layout
22846
22847 \begin_layout LyX-Code
22848 !funfun %funfun%
22849 \end_layout
22850
22851 \begin_layout Standard
22852 or anything like it.
22853  \SpecialChar LyX
22854  shouldn't go into an infinite loop, but it may go into a long one before
22855  it gives up.
22856 \end_layout
22857
22858 \begin_layout Standard
22859 The second sort of special definition might look like this:
22860 \end_layout
22861
22862 \begin_layout LyX-Code
22863 _pptext pp.
22864 \end_layout
22865
22866 \begin_layout Standard
22867 This defines a translatable piece of text, which allows relevant parts of
22868  the bibliography or citation to be translated.
22869  It can be included in a definition by treating it as a key: 
22870 \begin_inset Flex Code
22871 status collapsed
22872
22873 \begin_layout Plain Layout
22874 %_pptext%
22875 \end_layout
22876
22877 \end_inset
22878
22879 .
22880  Several of these are predefined in 
22881 \begin_inset Flex Code
22882 status collapsed
22883
22884 \begin_layout Plain Layout
22885 stdciteformats.inc
22886 \end_layout
22887
22888 \end_inset
22889
22890  and the diverse 
22891 \begin_inset Flex Code
22892 status collapsed
22893
22894 \begin_layout Plain Layout
22895 *.citeengine
22896 \end_layout
22897
22898 \end_inset
22899
22900  files.
22901  Note that these are not macros, in the sense just defined.
22902  They will not be expanded.
22903 \end_layout
22904
22905 \begin_layout Standard
22906 So here then is an example that use all these features:
22907 \begin_inset VSpace defskip
22908 \end_inset
22909
22910
22911 \end_layout
22912
22913 \begin_layout Standard
22914 \noindent
22915
22916 \family sans
22917 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
22918 \end_layout
22919
22920 \begin_layout Standard
22921 \begin_inset VSpace defskip
22922 \end_inset
22923
22924 This defines a macro that prints the author, followed by a comma, if the
22925  
22926 \begin_inset Flex Code
22927 status collapsed
22928
22929 \begin_layout Plain Layout
22930 author
22931 \end_layout
22932
22933 \end_inset
22934
22935  key is defined, or else prints the name of the editor, followed by the
22936  
22937 \begin_inset Flex Code
22938 status collapsed
22939
22940 \begin_layout Plain Layout
22941 _edtext
22942 \end_layout
22943
22944 \end_inset
22945
22946  or its translation (it is by default 
22947 \begin_inset Quotes eld
22948 \end_inset
22949
22950 ed.
22951 \begin_inset Quotes erd
22952 \end_inset
22953
22954 ), if the 
22955 \begin_inset Flex Code
22956 status collapsed
22957
22958 \begin_layout Plain Layout
22959 editor
22960 \end_layout
22961
22962 \end_inset
22963
22964  key is defined.
22965  Note that this is in fact defined in 
22966 \begin_inset Flex Code
22967 status collapsed
22968
22969 \begin_layout Plain Layout
22970 stdciteformats.inc
22971 \end_layout
22972
22973 \end_inset
22974
22975 , so you can use it in your own definitions, or re-definitions, if you load
22976  that file first.
22977 \end_layout
22978
22979 \begin_layout Section
22980 \begin_inset CommandInset label
22981 LatexCommand label
22982 name "sec:Tags-for-XHTML"
22983
22984 \end_inset
22985
22986 Tags for XHTML output
22987 \end_layout
22988
22989 \begin_layout Standard
22990 As with \SpecialChar LaTeX
22991  or DocBook, the format of \SpecialChar LyX
22992 's XHTML output is also controlled by
22993  layout information.
22994  In general, \SpecialChar LyX
22995  provides sensible defaults and, as mentioned earlier, it will
22996  even construct default CSS style rules from the other layout tags.
22997  For example, \SpecialChar LyX
22998  will attempt to use the information provided in the 
22999 \begin_inset Flex Code
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003 Font
23004 \end_layout
23005
23006 \end_inset
23007
23008  declaration for the Chapter style to write CSS that will appropriately
23009  format chapter headings.
23010 \end_layout
23011
23012 \begin_layout Standard
23013 In many cases, then, you may not have to do anything at all to get acceptable
23014  XHTML output for your own environments, custom insets, and so forth.
23015  But in some cases you will, and so \SpecialChar LyX
23016  provides a number of layout tags that
23017  can be used to customize the XHTML and CSS that are generated.
23018 \end_layout
23019
23020 \begin_layout Standard
23021 Note that there are two tags, 
23022 \begin_inset Flex Code
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026 HTMLPreamble
23027 \end_layout
23028
23029 \end_inset
23030
23031  and 
23032 \begin_inset Flex Code
23033 status collapsed
23034
23035 \begin_layout Plain Layout
23036 AddToHTMLPreamble
23037 \end_layout
23038
23039 \end_inset
23040
23041  that may appear outside style and inset declarations.
23042  See 
23043 \begin_inset CommandInset ref
23044 LatexCommand ref
23045 reference "subsec:General-text-class"
23046
23047 \end_inset
23048
23049  for details on these.
23050 \end_layout
23051
23052 \begin_layout Subsection
23053 \begin_inset CommandInset label
23054 LatexCommand label
23055 name "subsec:Paragraph-Style-XHTML"
23056
23057 \end_inset
23058
23059 Paragraph styles
23060 \end_layout
23061
23062 \begin_layout Standard
23063 The sort of XHTML \SpecialChar LyX
23064  outputs for a paragraph depends upon whether we are dealing
23065  with a normal paragraph, a command, or an environment, where this is itself
23066  determined by the contents of the corresponding 
23067 \begin_inset Flex Code
23068 status collapsed
23069
23070 \begin_layout Plain Layout
23071 \SpecialChar LaTeX
23072 Type
23073 \end_layout
23074
23075 \end_inset
23076
23077  tag.
23078  
23079 \end_layout
23080
23081 \begin_layout Standard
23082 For a command or normal paragraph, the output XHTML has the following form:
23083 \end_layout
23084
23085 \begin_layout LyX-Code
23086
23087 \family sans
23088 <tag attr=
23089 \begin_inset Quotes erd
23090 \end_inset
23091
23092 value
23093 \begin_inset Quotes erd
23094 \end_inset
23095
23096 >
23097 \end_layout
23098
23099 \begin_layout LyX-Code
23100
23101 \family sans
23102 <labeltag attr=
23103 \begin_inset Quotes erd
23104 \end_inset
23105
23106 value
23107 \begin_inset Quotes erd
23108 \end_inset
23109
23110 >Label</labeltag>
23111 \end_layout
23112
23113 \begin_layout LyX-Code
23114
23115 \family sans
23116 Contents of the paragraph.
23117 \end_layout
23118
23119 \begin_layout LyX-Code
23120
23121 \family sans
23122 </tag>
23123 \end_layout
23124
23125 \begin_layout Standard
23126 The label tags are of course omitted if the paragraph does not have a label.
23127 \end_layout
23128
23129 \begin_layout Standard
23130 For an environment that is not some sort of list, the XHTML takes this form:
23131 \end_layout
23132
23133 \begin_layout LyX-Code
23134
23135 \family sans
23136 <tag attr=
23137 \begin_inset Quotes erd
23138 \end_inset
23139
23140 value
23141 \begin_inset Quotes erd
23142 \end_inset
23143
23144 >
23145 \end_layout
23146
23147 \begin_layout LyX-Code
23148
23149 \family sans
23150 <itemtag attr=
23151 \begin_inset Quotes erd
23152 \end_inset
23153
23154 value
23155 \begin_inset Quotes erd
23156 \end_inset
23157
23158 ><labeltag attr=
23159 \begin_inset Quotes erd
23160 \end_inset
23161
23162 value
23163 \begin_inset Quotes erd
23164 \end_inset
23165
23166 >Environment Label</labeltag>First paragraph.</itemtag>
23167 \end_layout
23168
23169 \begin_layout LyX-Code
23170
23171 \family sans
23172 <itemtag>Second paragraph.</itemtag>
23173 \end_layout
23174
23175 \begin_layout LyX-Code
23176
23177 \family sans
23178 </tag>
23179 \end_layout
23180
23181 \begin_layout Standard
23182 Note that the label is output only for the first paragraph, as it should
23183  be for a theorem, for example.
23184  
23185 \end_layout
23186
23187 \begin_layout Standard
23188 For a list, we have one of these forms:
23189 \end_layout
23190
23191 \begin_layout LyX-Code
23192
23193 \family sans
23194 <tag attr=
23195 \begin_inset Quotes erd
23196 \end_inset
23197
23198 value
23199 \begin_inset Quotes erd
23200 \end_inset
23201
23202 >
23203 \end_layout
23204
23205 \begin_layout LyX-Code
23206
23207 \family sans
23208 <itemtag attr=
23209 \begin_inset Quotes erd
23210 \end_inset
23211
23212 value
23213 \begin_inset Quotes erd
23214 \end_inset
23215
23216 ><labeltag attr=
23217 \begin_inset Quotes erd
23218 \end_inset
23219
23220 value
23221 \begin_inset Quotes erd
23222 \end_inset
23223
23224 >List Label</labeltag>First item.</itemtag>
23225 \end_layout
23226
23227 \begin_layout LyX-Code
23228
23229 \family sans
23230 <itemtag attr=
23231 \begin_inset Quotes erd
23232 \end_inset
23233
23234 value
23235 \begin_inset Quotes erd
23236 \end_inset
23237
23238 ><labeltag attr=
23239 \begin_inset Quotes erd
23240 \end_inset
23241
23242 value
23243 \begin_inset Quotes erd
23244 \end_inset
23245
23246 >List Label</labeltag>Second item.</itemtag>
23247 \end_layout
23248
23249 \begin_layout LyX-Code
23250
23251 \family sans
23252 </tag>
23253 \end_layout
23254
23255 \begin_layout LyX-Code
23256
23257 \end_layout
23258
23259 \begin_layout LyX-Code
23260
23261 \family sans
23262 <tag attr=
23263 \begin_inset Quotes erd
23264 \end_inset
23265
23266 value
23267 \begin_inset Quotes erd
23268 \end_inset
23269
23270 >
23271 \end_layout
23272
23273 \begin_layout LyX-Code
23274
23275 \family sans
23276 <labeltag attr=
23277 \begin_inset Quotes erd
23278 \end_inset
23279
23280 value
23281 \begin_inset Quotes erd
23282 \end_inset
23283
23284 >List Label</labeltag><itemtag attr=
23285 \begin_inset Quotes erd
23286 \end_inset
23287
23288 value
23289 \begin_inset Quotes erd
23290 \end_inset
23291
23292 >First item.</itemtag>
23293 \end_layout
23294
23295 \begin_layout LyX-Code
23296
23297 \family sans
23298 <labeltag attr=
23299 \begin_inset Quotes erd
23300 \end_inset
23301
23302 value
23303 \begin_inset Quotes erd
23304 \end_inset
23305
23306 >List Label</labeltag><itemtag attr=
23307 \begin_inset Quotes erd
23308 \end_inset
23309
23310 value
23311 \begin_inset Quotes erd
23312 \end_inset
23313
23314 >Second item.</itemtag>
23315 \end_layout
23316
23317 \begin_layout LyX-Code
23318
23319 \family sans
23320 </tag>
23321 \end_layout
23322
23323 \begin_layout Standard
23324 Note the different orders of 
23325 \begin_inset Flex Code
23326 status collapsed
23327
23328 \begin_layout Plain Layout
23329 labeltag
23330 \end_layout
23331
23332 \end_inset
23333
23334  and 
23335 \begin_inset Flex Code
23336 status collapsed
23337
23338 \begin_layout Plain Layout
23339 itemtag
23340 \end_layout
23341
23342 \end_inset
23343
23344 .
23345  Which order we get depends upon the setting of 
23346 \begin_inset Flex Code
23347 status collapsed
23348
23349 \begin_layout Plain Layout
23350 HTMLLabelFirst
23351 \end_layout
23352
23353 \end_inset
23354
23355 : If 
23356 \begin_inset Flex Code
23357 status collapsed
23358
23359 \begin_layout Plain Layout
23360 HTMLLabelFirst
23361 \end_layout
23362
23363 \end_inset
23364
23365  is false (the default), you get the first of these, with the label within
23366  the item; if true, you get the second, with the label outside the item.
23367 \end_layout
23368
23369 \begin_layout Standard
23370 The specific tags and attributes output for each paragraph type can be controlle
23371 d by means of the layout tags we are about to describe.
23372  As mentioned earlier, however, \SpecialChar LyX
23373  uses sensible defaults for many of these,
23374  so you often may not need to do very much to get good XHTML output.
23375  Think of the available tags as there so you can tweak things to your liking.
23376 \end_layout
23377
23378 \begin_layout Description
23379 \begin_inset Flex Code
23380 status collapsed
23381
23382 \begin_layout Plain Layout
23383 HTMLAttr
23384 \end_layout
23385
23386 \end_inset
23387
23388  [
23389 \begin_inset Flex Code
23390 status collapsed
23391
23392 \begin_layout Plain Layout
23393 string
23394 \end_layout
23395
23396 \end_inset
23397
23398 ] Specifies attribute information to be output with the main tag.
23399  For example, 
23400 \begin_inset Quotes eld
23401 \end_inset
23402
23403
23404 \begin_inset Flex Code
23405 status collapsed
23406
23407 \begin_layout Plain Layout
23408 class=`mydiv'
23409 \end_layout
23410
23411 \end_inset
23412
23413
23414 \begin_inset Quotes erd
23415 \end_inset
23416
23417 .
23418  By default, \SpecialChar LyX
23419  will output 
23420 \begin_inset Quotes eld
23421 \end_inset
23422
23423
23424 \begin_inset Flex Code
23425 status collapsed
23426
23427 \begin_layout Plain Layout
23428 class=`layoutname'
23429 \end_layout
23430
23431 \end_inset
23432
23433
23434 \begin_inset Quotes erd
23435 \end_inset
23436
23437 , where 
23438 \begin_inset Flex Code
23439 status collapsed
23440
23441 \begin_layout Plain Layout
23442 layoutname
23443 \end_layout
23444
23445 \end_inset
23446
23447  is the \SpecialChar LyX
23448  name of the layout, made lowercase, for example: chapter.
23449  This should 
23450 \emph on
23451 not
23452 \emph default
23453  contain any style information.
23454  Use 
23455 \begin_inset Flex Code
23456 status collapsed
23457
23458 \begin_layout Plain Layout
23459 HTMLStyle
23460 \end_layout
23461
23462 \end_inset
23463
23464  for that purpose.
23465 \end_layout
23466
23467 \begin_layout Description
23468 \begin_inset Flex Code
23469 status collapsed
23470
23471 \begin_layout Plain Layout
23472 HTMLForceCSS
23473 \end_layout
23474
23475 \end_inset
23476
23477  [
23478 \begin_inset Flex Code
23479 status collapsed
23480
23481 \begin_layout Plain Layout
23482
23483 \emph on
23484 0
23485 \emph default
23486 ,1
23487 \end_layout
23488
23489 \end_inset
23490
23491 ] Whether to output the default CSS information \SpecialChar LyX
23492  generates for this layout,
23493  even if additional information is explicitly provided via 
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498 HTMLStyle
23499 \end_layout
23500
23501 \end_inset
23502
23503 .
23504  Setting this to 
23505 \begin_inset Flex Code
23506 status collapsed
23507
23508 \begin_layout Plain Layout
23509 1
23510 \end_layout
23511
23512 \end_inset
23513
23514  allows you to alter or augment the generated CSS, rather than to override
23515  it completely.
23516  Default is 
23517 \begin_inset Flex Code
23518 status collapsed
23519
23520 \begin_layout Plain Layout
23521 0
23522 \end_layout
23523
23524 \end_inset
23525
23526 .
23527 \end_layout
23528
23529 \begin_layout Description
23530 \begin_inset Flex Code
23531 status collapsed
23532
23533 \begin_layout Plain Layout
23534 HTMLItem
23535 \end_layout
23536
23537 \end_inset
23538
23539  [
23540 \begin_inset Flex Code
23541 status collapsed
23542
23543 \begin_layout Plain Layout
23544 string
23545 \end_layout
23546
23547 \end_inset
23548
23549 ] The tag to be used for individual paragraphs of environments, replacing
23550  
23551 \begin_inset Flex Code
23552 status collapsed
23553
23554 \begin_layout Plain Layout
23555 itemtag
23556 \end_layout
23557
23558 \end_inset
23559
23560  in the examples above.
23561  Defaults to 
23562 \begin_inset Flex Code
23563 status collapsed
23564
23565 \begin_layout Plain Layout
23566 div
23567 \end_layout
23568
23569 \end_inset
23570
23571 .
23572 \end_layout
23573
23574 \begin_layout Description
23575 \begin_inset Flex Code
23576 status collapsed
23577
23578 \begin_layout Plain Layout
23579 HTMLItemAttr
23580 \end_layout
23581
23582 \end_inset
23583
23584  [
23585 \begin_inset Flex Code
23586 status collapsed
23587
23588 \begin_layout Plain Layout
23589 string
23590 \end_layout
23591
23592 \end_inset
23593
23594 ] Attributes for the item tag.
23595  Defaults to
23596 \begin_inset Newline newline
23597 \end_inset
23598
23599
23600 \begin_inset Quotes eld
23601 \end_inset
23602
23603
23604 \begin_inset Flex Code
23605 status collapsed
23606
23607 \begin_layout Plain Layout
23608 class=`layoutname_item'
23609 \end_layout
23610
23611 \end_inset
23612
23613
23614 \begin_inset Quotes erd
23615 \end_inset
23616
23617 .
23618  This should 
23619 \emph on
23620 not
23621 \emph default
23622  contain any style information.
23623  Use 
23624 \begin_inset Flex Code
23625 status collapsed
23626
23627 \begin_layout Plain Layout
23628 HTMLStyle
23629 \end_layout
23630
23631 \end_inset
23632
23633  for that purpose.
23634 \end_layout
23635
23636 \begin_layout Description
23637 \begin_inset Flex Code
23638 status collapsed
23639
23640 \begin_layout Plain Layout
23641 HTMLLabel
23642 \end_layout
23643
23644 \end_inset
23645
23646  [
23647 \begin_inset Flex Code
23648 status collapsed
23649
23650 \begin_layout Plain Layout
23651 string
23652 \end_layout
23653
23654 \end_inset
23655
23656 ] The tag to be used for paragraph and item labels, replacing 
23657 \begin_inset Flex Code
23658 status collapsed
23659
23660 \begin_layout Plain Layout
23661 labeltag
23662 \end_layout
23663
23664 \end_inset
23665
23666  in the examples above.
23667  Defaults to 
23668 \begin_inset Flex Code
23669 status collapsed
23670
23671 \begin_layout Plain Layout
23672 span
23673 \end_layout
23674
23675 \end_inset
23676
23677 , unless 
23678 \begin_inset Flex Code
23679 status collapsed
23680
23681 \begin_layout Plain Layout
23682 LabelType
23683 \end_layout
23684
23685 \end_inset
23686
23687  is either 
23688 \begin_inset Flex Code
23689 status collapsed
23690
23691 \begin_layout Plain Layout
23692 Top_Environment
23693 \end_layout
23694
23695 \end_inset
23696
23697  or 
23698 \begin_inset Flex Code
23699 status collapsed
23700
23701 \begin_layout Plain Layout
23702 Centered_Top_Environment
23703 \end_layout
23704
23705 \end_inset
23706
23707 , in which case it defaults to 
23708 \begin_inset Flex Code
23709 status collapsed
23710
23711 \begin_layout Plain Layout
23712 div
23713 \end_layout
23714
23715 \end_inset
23716
23717 .
23718 \end_layout
23719
23720 \begin_layout Description
23721 \begin_inset Flex Code
23722 status collapsed
23723
23724 \begin_layout Plain Layout
23725 HTMLLabelAttr
23726 \end_layout
23727
23728 \end_inset
23729
23730  [
23731 \begin_inset Flex Code
23732 status collapsed
23733
23734 \begin_layout Plain Layout
23735 string
23736 \end_layout
23737
23738 \end_inset
23739
23740 ] Attributes for the label tag.
23741  Defaults to
23742 \begin_inset Newline newline
23743 \end_inset
23744
23745
23746 \begin_inset Quotes eld
23747 \end_inset
23748
23749
23750 \begin_inset Flex Code
23751 status collapsed
23752
23753 \begin_layout Plain Layout
23754 class=`layoutname_label'
23755 \end_layout
23756
23757 \end_inset
23758
23759
23760 \begin_inset Quotes erd
23761 \end_inset
23762
23763 .
23764  This should 
23765 \emph on
23766 not
23767 \emph default
23768  contain any style information.
23769  Use 
23770 \begin_inset Flex Code
23771 status collapsed
23772
23773 \begin_layout Plain Layout
23774 HTMLStyle
23775 \end_layout
23776
23777 \end_inset
23778
23779  for that purpose.
23780 \end_layout
23781
23782 \begin_layout Description
23783 \begin_inset Flex Code
23784 status collapsed
23785
23786 \begin_layout Plain Layout
23787 HTMLLabelFirst
23788 \end_layout
23789
23790 \end_inset
23791
23792  [
23793 \begin_inset Flex Code
23794 status collapsed
23795
23796 \begin_layout Plain Layout
23797
23798 \emph on
23799 0
23800 \emph default
23801 ,1
23802 \end_layout
23803
23804 \end_inset
23805
23806 ] Meaningful only for list-like environments, this tag controls whether
23807  the label tag is output before or inside the item tag.
23808  This is used, for example, in the description environment, where we want
23809  `
23810 \begin_inset Flex Code
23811 status collapsed
23812
23813 \begin_layout Plain Layout
23814 <dt>\SpecialChar ldots
23815 </dt><dd>\SpecialChar ldots
23816 </dd>
23817 \end_layout
23818
23819 \end_inset
23820
23821 .
23822  Default is 
23823 \begin_inset Flex Code
23824 status collapsed
23825
23826 \begin_layout Plain Layout
23827 0
23828 \end_layout
23829
23830 \end_inset
23831
23832 : The label tag is output inside the item tag.
23833 \end_layout
23834
23835 \begin_layout Description
23836 \begin_inset Flex Code
23837 status collapsed
23838
23839 \begin_layout Plain Layout
23840 HTMLPreamble
23841 \end_layout
23842
23843 \end_inset
23844
23845  Information to be output in the 
23846 \begin_inset Flex Code
23847 status collapsed
23848
23849 \begin_layout Plain Layout
23850 <head>
23851 \end_layout
23852
23853 \end_inset
23854
23855  section when this style is used.
23856  This might, for example, be used to include a 
23857 \begin_inset Flex Code
23858 status collapsed
23859
23860 \begin_layout Plain Layout
23861 <script>
23862 \end_layout
23863
23864 \end_inset
23865
23866  block defining an 
23867 \begin_inset Flex Code
23868 status collapsed
23869
23870 \begin_layout Plain Layout
23871 onclick
23872 \end_layout
23873
23874 \end_inset
23875
23876  handler.
23877 \end_layout
23878
23879 \begin_layout Description
23880 \begin_inset Flex Code
23881 status collapsed
23882
23883 \begin_layout Plain Layout
23884 HTMLStyle
23885 \end_layout
23886
23887 \end_inset
23888
23889  CSS style information to be included when this style is used.
23890  Note that this will automatically be wrapped in a layout-generated 
23891 \begin_inset Flex Code
23892 status collapsed
23893
23894 \begin_layout Plain Layout
23895 <style>
23896 \end_layout
23897
23898 \end_inset
23899
23900  block, so only the CSS itself need be included.
23901  Must end with 
23902 \begin_inset Flex Code
23903 status collapsed
23904
23905 \begin_layout Plain Layout
23906 EndHTMLStyle
23907 \end_layout
23908
23909 \end_inset
23910
23911 .
23912 \end_layout
23913
23914 \begin_layout Description
23915 \begin_inset Flex Code
23916 status collapsed
23917
23918 \begin_layout Plain Layout
23919 HTMLTag
23920 \end_layout
23921
23922 \end_inset
23923
23924  [
23925 \begin_inset Flex Code
23926 status collapsed
23927
23928 \begin_layout Plain Layout
23929 string
23930 \end_layout
23931
23932 \end_inset
23933
23934 ] The tag to be used for the main label, replacing 
23935 \begin_inset Flex Code
23936 status collapsed
23937
23938 \begin_layout Plain Layout
23939 tag
23940 \end_layout
23941
23942 \end_inset
23943
23944  in the examples above.
23945  Defaults to 
23946 \begin_inset Flex Code
23947 status collapsed
23948
23949 \begin_layout Plain Layout
23950 div
23951 \end_layout
23952
23953 \end_inset
23954
23955 .
23956 \end_layout
23957
23958 \begin_layout Description
23959 \begin_inset Flex Code
23960 status collapsed
23961
23962 \begin_layout Plain Layout
23963 HTMLTitle
23964 \end_layout
23965
23966 \end_inset
23967
23968  [
23969 \begin_inset Flex Code
23970 status collapsed
23971
23972 \begin_layout Plain Layout
23973
23974 \emph on
23975 0
23976 \emph default
23977 ,1
23978 \end_layout
23979
23980 \end_inset
23981
23982 ] Marks this style as the one to be used to generate the 
23983 \begin_inset Flex Code
23984 status collapsed
23985
23986 \begin_layout Plain Layout
23987 <title>
23988 \end_layout
23989
23990 \end_inset
23991
23992  tag for the XHTML file.
23993  By default, it is false.
23994  The 
23995 \begin_inset Flex Code
23996 status collapsed
23997
23998 \begin_layout Plain Layout
23999 stdtitle.inc
24000 \end_layout
24001
24002 \end_inset
24003
24004  file sets it to true for the 
24005 \begin_inset Flex Code
24006 status collapsed
24007
24008 \begin_layout Plain Layout
24009 title
24010 \end_layout
24011
24012 \end_inset
24013
24014  environment.
24015  
24016 \end_layout
24017
24018 \begin_layout Subsection
24019 InsetLayout XHTML
24020 \end_layout
24021
24022 \begin_layout Standard
24023 The XHTML output of insets can also be controlled by information in layout
24024  files.
24025 \begin_inset Foot
24026 status collapsed
24027
24028 \begin_layout Plain Layout
24029 At present, this is true only for 
24030 \begin_inset Quotes eld
24031 \end_inset
24032
24033 text
24034 \begin_inset Quotes erd
24035 \end_inset
24036
24037  insets (insets you can type into) and is not true for 
24038 \begin_inset Quotes eld
24039 \end_inset
24040
24041 command
24042 \begin_inset Quotes erd
24043 \end_inset
24044
24045  insets (insets that are associated with dialog boxes).
24046 \end_layout
24047
24048 \end_inset
24049
24050  Here, too, \SpecialChar LyX
24051  tries to provide sensible defaults, and it constructs default
24052  CSS style rules.
24053  But everything can be customized.
24054 \end_layout
24055
24056 \begin_layout Standard
24057 The XHTML \SpecialChar LyX
24058  outputs for an inset has the following form:
24059 \end_layout
24060
24061 \begin_layout LyX-Code
24062 <tag attr=
24063 \begin_inset Quotes erd
24064 \end_inset
24065
24066 value
24067 \begin_inset Quotes erd
24068 \end_inset
24069
24070 >
24071 \end_layout
24072
24073 \begin_layout LyX-Code
24074 <labeltag>Label</labeltag>
24075 \end_layout
24076
24077 \begin_layout LyX-Code
24078 <innertag attr=
24079 \begin_inset Quotes erd
24080 \end_inset
24081
24082 value
24083 \begin_inset Quotes erd
24084 \end_inset
24085
24086 >Contents of the inset.</innertag>
24087 \end_layout
24088
24089 \begin_layout LyX-Code
24090 </tag>
24091 \end_layout
24092
24093 \begin_layout Standard
24094 If the inset permits multiple paragraphs—that is, if 
24095 \begin_inset Flex Code
24096 status collapsed
24097
24098 \begin_layout Plain Layout
24099 MultiPar
24100 \end_layout
24101
24102 \end_inset
24103
24104  is true—then the contents of the inset will itself be output as paragraphs
24105  formatted according to the styles used for those paragraphs (standard,
24106  quote, and the like).
24107  The label tag is of course omitted if the paragraph does not have a label
24108  and, at present, is always 
24109 \begin_inset Flex Code
24110 status collapsed
24111
24112 \begin_layout Plain Layout
24113 span
24114 \end_layout
24115
24116 \end_inset
24117
24118 .
24119  The inner tag is optional and, by default, does not appear.
24120 \end_layout
24121
24122 \begin_layout Standard
24123 The specific tags and attributes output for each inset can be controlled
24124  by means of the following layout tags.
24125 \end_layout
24126
24127 \begin_layout Description
24128 \begin_inset Flex Code
24129 status collapsed
24130
24131 \begin_layout Plain Layout
24132 HTMLAttr
24133 \end_layout
24134
24135 \end_inset
24136
24137  [
24138 \begin_inset Flex Code
24139 status collapsed
24140
24141 \begin_layout Plain Layout
24142 string
24143 \end_layout
24144
24145 \end_inset
24146
24147 ] Specifies attribute information to be output with the main tag.
24148  For example, 
24149 \begin_inset Quotes eld
24150 \end_inset
24151
24152
24153 \begin_inset Flex Code
24154 status collapsed
24155
24156 \begin_layout Plain Layout
24157 class=`myinset' onclick=`\SpecialChar ldots
24158 '
24159 \end_layout
24160
24161 \end_inset
24162
24163
24164 \begin_inset Quotes erd
24165 \end_inset
24166
24167 .
24168  By default, \SpecialChar LyX
24169  will output 
24170 \begin_inset Quotes eld
24171 \end_inset
24172
24173
24174 \begin_inset Flex Code
24175 status collapsed
24176
24177 \begin_layout Plain Layout
24178 class=`insetname'
24179 \end_layout
24180
24181 \end_inset
24182
24183
24184 \begin_inset Quotes erd
24185 \end_inset
24186
24187 , where 
24188 \begin_inset Flex Code
24189 status collapsed
24190
24191 \begin_layout Plain Layout
24192 insetname
24193 \end_layout
24194
24195 \end_inset
24196
24197  is the \SpecialChar LyX
24198  name of the inset, made lowercase and with non-alphanumeric characters
24199  converted to underscores, for example: footnote.
24200 \end_layout
24201
24202 \begin_layout Description
24203 \begin_inset Flex Code
24204 status collapsed
24205
24206 \begin_layout Plain Layout
24207 HTMLForceCSS
24208 \end_layout
24209
24210 \end_inset
24211
24212  [
24213 \begin_inset Flex Code
24214 status collapsed
24215
24216 \begin_layout Plain Layout
24217
24218 \emph on
24219 0
24220 \emph default
24221 ,1
24222 \end_layout
24223
24224 \end_inset
24225
24226 ] Whether to output the default CSS information \SpecialChar LyX
24227  generates for this layout,
24228  even if additional information is explicitly provided via 
24229 \begin_inset Flex Code
24230 status collapsed
24231
24232 \begin_layout Plain Layout
24233 HTMLStyle
24234 \end_layout
24235
24236 \end_inset
24237
24238 .
24239  Setting this to 
24240 \begin_inset Flex Code
24241 status collapsed
24242
24243 \begin_layout Plain Layout
24244 1
24245 \end_layout
24246
24247 \end_inset
24248
24249  allows you to alter or augment the generated CSS, rather than to override
24250  it completely.
24251  Default is 0.
24252 \end_layout
24253
24254 \begin_layout Description
24255 \begin_inset Flex Code
24256 status collapsed
24257
24258 \begin_layout Plain Layout
24259 HTMLInnerAttr
24260 \end_layout
24261
24262 \end_inset
24263
24264  [
24265 \begin_inset Flex Code
24266 status collapsed
24267
24268 \begin_layout Plain Layout
24269 string
24270 \end_layout
24271
24272 \end_inset
24273
24274 ] Attributes for the inner tag.
24275  Defaults to
24276 \begin_inset Newline newline
24277 \end_inset
24278
24279
24280 \begin_inset Quotes eld
24281 \end_inset
24282
24283
24284 \begin_inset Flex Code
24285 status collapsed
24286
24287 \begin_layout Plain Layout
24288 class=`insetname_inner'
24289 \end_layout
24290
24291 \end_inset
24292
24293
24294 \begin_inset Quotes erd
24295 \end_inset
24296
24297 .
24298 \end_layout
24299
24300 \begin_layout Description
24301 \begin_inset Flex Code
24302 status collapsed
24303
24304 \begin_layout Plain Layout
24305 HTMLInnerTag
24306 \end_layout
24307
24308 \end_inset
24309
24310  [
24311 \begin_inset Flex Code
24312 status collapsed
24313
24314 \begin_layout Plain Layout
24315 string
24316 \end_layout
24317
24318 \end_inset
24319
24320 ] The inner tag, replacing 
24321 \begin_inset Flex Code
24322 status collapsed
24323
24324 \begin_layout Plain Layout
24325 innertag
24326 \end_layout
24327
24328 \end_inset
24329
24330  in the examples above.
24331  By default, there is none.
24332 \end_layout
24333
24334 \begin_layout Description
24335 \begin_inset Flex Code
24336 status collapsed
24337
24338 \begin_layout Plain Layout
24339 HTMLIsBlock
24340 \end_layout
24341
24342 \end_inset
24343
24344  [
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 0,
24350 \emph on
24351 1
24352 \end_layout
24353
24354 \end_inset
24355
24356 ] Whether this inset represents a standalone block of text (such as a footnote)
24357  or instead represents material that is included in the surrounding text
24358  (such as a branch).
24359  Defaults to 1.
24360 \end_layout
24361
24362 \begin_layout Description
24363 \begin_inset Flex Code
24364 status collapsed
24365
24366 \begin_layout Plain Layout
24367 HTMLLabel
24368 \end_layout
24369
24370 \end_inset
24371
24372  [
24373 \begin_inset Flex Code
24374 status collapsed
24375
24376 \begin_layout Plain Layout
24377 string
24378 \end_layout
24379
24380 \end_inset
24381
24382 ] A label for this inset, possibly including a reference to a counter.
24383  For example, for footnote, it might be: 
24384 \begin_inset Flex Code
24385 status collapsed
24386
24387 \begin_layout Plain Layout
24388
24389 \backslash
24390 arabic{footnote}
24391 \end_layout
24392
24393 \end_inset
24394
24395 .
24396  This is optional, and there is no default.
24397 \end_layout
24398
24399 \begin_layout Description
24400 \begin_inset Flex Code
24401 status collapsed
24402
24403 \begin_layout Plain Layout
24404 HTMLPreamble
24405 \end_layout
24406
24407 \end_inset
24408
24409  Information to be output in the 
24410 \begin_inset Flex Code
24411 status collapsed
24412
24413 \begin_layout Plain Layout
24414 <head>
24415 \end_layout
24416
24417 \end_inset
24418
24419  section when this style is used.
24420  This might, for example, be used to include a 
24421 \begin_inset Flex Code
24422 status collapsed
24423
24424 \begin_layout Plain Layout
24425 <script>
24426 \end_layout
24427
24428 \end_inset
24429
24430  block defining an 
24431 \begin_inset Flex Code
24432 status collapsed
24433
24434 \begin_layout Plain Layout
24435 onclick
24436 \end_layout
24437
24438 \end_inset
24439
24440  handler.
24441 \end_layout
24442
24443 \begin_layout Description
24444 \begin_inset Flex Code
24445 status collapsed
24446
24447 \begin_layout Plain Layout
24448 HTMLStyle
24449 \end_layout
24450
24451 \end_inset
24452
24453  CSS style information to be included when this style is used.
24454  Note that this will automatically be wrapped in a layout-generated 
24455 \begin_inset Flex Code
24456 status collapsed
24457
24458 \begin_layout Plain Layout
24459 <style>
24460 \end_layout
24461
24462 \end_inset
24463
24464  block, so only the CSS itself need be included.
24465 \end_layout
24466
24467 \begin_layout Description
24468 \begin_inset Flex Code
24469 status collapsed
24470
24471 \begin_layout Plain Layout
24472 HTMLTag
24473 \end_layout
24474
24475 \end_inset
24476
24477  [
24478 \begin_inset Flex Code
24479 status collapsed
24480
24481 \begin_layout Plain Layout
24482 string
24483 \end_layout
24484
24485 \end_inset
24486
24487 ] The tag to be used for the main label, replacing 
24488 \begin_inset Flex Code
24489 status collapsed
24490
24491 \begin_layout Plain Layout
24492 tag
24493 \end_layout
24494
24495 \end_inset
24496
24497  in the examples above.
24498  The default depends upon the setting of 
24499 \begin_inset Flex Code
24500 status collapsed
24501
24502 \begin_layout Plain Layout
24503 MultiPar
24504 \end_layout
24505
24506 \end_inset
24507
24508 : If 
24509 \begin_inset Flex Code
24510 status collapsed
24511
24512 \begin_layout Plain Layout
24513 MultiPar
24514 \end_layout
24515
24516 \end_inset
24517
24518  is true, the default is 
24519 \begin_inset Flex Code
24520 status collapsed
24521
24522 \begin_layout Plain Layout
24523 div
24524 \end_layout
24525
24526 \end_inset
24527
24528 ; if it is false, the default is 
24529 \begin_inset Flex Code
24530 status collapsed
24531
24532 \begin_layout Plain Layout
24533 span
24534 \end_layout
24535
24536 \end_inset
24537
24538 .
24539 \end_layout
24540
24541 \begin_layout Subsection
24542 Float XHTML
24543 \end_layout
24544
24545 \begin_layout Standard
24546 The XHTML output for floats too can be controlled by layout information.
24547  The output has the following form:
24548 \end_layout
24549
24550 \begin_layout LyX-Code
24551 <tag attr=
24552 \begin_inset Quotes erd
24553 \end_inset
24554
24555 value
24556 \begin_inset Quotes erd
24557 \end_inset
24558
24559 >
24560 \end_layout
24561
24562 \begin_layout LyX-Code
24563 Contents of the float.
24564 \end_layout
24565
24566 \begin_layout LyX-Code
24567 </tag>
24568 \end_layout
24569
24570 \begin_layout Standard
24571 The caption, if there is one, is a separate inset and will be output as
24572  such.
24573  Its appearance can be controlled via the InsetLayout for caption insets.
24574  
24575 \end_layout
24576
24577 \begin_layout Description
24578 \begin_inset Flex Code
24579 status collapsed
24580
24581 \begin_layout Plain Layout
24582 HTMLAttr
24583 \end_layout
24584
24585 \end_inset
24586
24587  [
24588 \begin_inset Flex Code
24589 status collapsed
24590
24591 \begin_layout Plain Layout
24592 string
24593 \end_layout
24594
24595 \end_inset
24596
24597 ] Specifies attribute information to be output with the main tag.
24598  For example, 
24599 \begin_inset Quotes eld
24600 \end_inset
24601
24602
24603 \begin_inset Flex Code
24604 status collapsed
24605
24606 \begin_layout Plain Layout
24607 class=`myfloat' onclick=`\SpecialChar ldots
24608 '
24609 \end_layout
24610
24611 \end_inset
24612
24613
24614 \begin_inset Quotes erd
24615 \end_inset
24616
24617 .
24618  By default, \SpecialChar LyX
24619  will output 
24620 \begin_inset Quotes eld
24621 \end_inset
24622
24623
24624 \begin_inset Flex Code
24625 status collapsed
24626
24627 \begin_layout Plain Layout
24628 class=`float float-floattype'
24629 \end_layout
24630
24631 \end_inset
24632
24633
24634 \begin_inset Quotes erd
24635 \end_inset
24636
24637 , where 
24638 \begin_inset Flex Code
24639 status collapsed
24640
24641 \begin_layout Plain Layout
24642 floattype
24643 \end_layout
24644
24645 \end_inset
24646
24647  is \SpecialChar LyX
24648 's name for this type of float, as determined by the float declaration
24649  (see 
24650 \begin_inset CommandInset ref
24651 LatexCommand ref
24652 reference "subsec:Floats"
24653
24654 \end_inset
24655
24656 ), though made lowercase and with non-alphanumeric characters converted
24657  to underscores, for example: float-table.
24658 \end_layout
24659
24660 \begin_layout Description
24661 \begin_inset Flex Code
24662 status collapsed
24663
24664 \begin_layout Plain Layout
24665 HTMLStyle
24666 \end_layout
24667
24668 \end_inset
24669
24670  CSS style information to be included when this float is used.
24671  Note that this will automatically be wrapped in a layout-generated 
24672 \begin_inset Flex Code
24673 status collapsed
24674
24675 \begin_layout Plain Layout
24676 <style>
24677 \end_layout
24678
24679 \end_inset
24680
24681  block, so only the CSS itself need be included.
24682 \end_layout
24683
24684 \begin_layout Description
24685 \begin_inset Flex Code
24686 status collapsed
24687
24688 \begin_layout Plain Layout
24689 HTMLTag
24690 \end_layout
24691
24692 \end_inset
24693
24694  [
24695 \begin_inset Flex Code
24696 status collapsed
24697
24698 \begin_layout Plain Layout
24699 string
24700 \end_layout
24701
24702 \end_inset
24703
24704 ] The tag to be used for this float, replacing 
24705 \begin_inset Quotes eld
24706 \end_inset
24707
24708
24709 \begin_inset Flex Code
24710 status collapsed
24711
24712 \begin_layout Plain Layout
24713 tag
24714 \end_layout
24715
24716 \end_inset
24717
24718
24719 \begin_inset Quotes erd
24720 \end_inset
24721
24722  in the example above.
24723  The default is 
24724 \begin_inset Flex Code
24725 status collapsed
24726
24727 \begin_layout Plain Layout
24728 div
24729 \end_layout
24730
24731 \end_inset
24732
24733  and will rarely need changing.
24734 \end_layout
24735
24736 \begin_layout Subsection
24737 Bibliography formatting
24738 \end_layout
24739
24740 \begin_layout Standard
24741 The bibliography can be formatted using 
24742 \begin_inset Flex Code
24743 status collapsed
24744
24745 \begin_layout Plain Layout
24746 CiteFormat
24747 \end_layout
24748
24749 \end_inset
24750
24751  blocks.
24752  See 
24753 \begin_inset CommandInset ref
24754 LatexCommand ref
24755 reference "subsec:Citation-format-description"
24756
24757 \end_inset
24758
24759  for the details.
24760 \end_layout
24761
24762 \begin_layout Subsection
24763 \SpecialChar LyX
24764 -generated CSS
24765 \end_layout
24766
24767 \begin_layout Standard
24768 We have several times mentioned that \SpecialChar LyX
24769  will generate default CSS style rules
24770  for both insets and paragraph styles, based upon the other layout information
24771  that is provided.
24772  In this section, we shall say a word about which layout information \SpecialChar LyX
24773  uses
24774  and how.
24775 \end_layout
24776
24777 \begin_layout Standard
24778 At present, \SpecialChar LyX
24779  auto-generates CSS only for font information, making use of
24780  the 
24781 \begin_inset Flex Code
24782 status collapsed
24783
24784 \begin_layout Plain Layout
24785 Family
24786 \end_layout
24787
24788 \end_inset
24789
24790
24791 \begin_inset Flex Code
24792 status collapsed
24793
24794 \begin_layout Plain Layout
24795 Series
24796 \end_layout
24797
24798 \end_inset
24799
24800
24801 \begin_inset Flex Code
24802 status collapsed
24803
24804 \begin_layout Plain Layout
24805 Shape
24806 \end_layout
24807
24808 \end_inset
24809
24810 , and 
24811 \begin_inset Flex Code
24812 status collapsed
24813
24814 \begin_layout Plain Layout
24815 Size
24816 \end_layout
24817
24818 \end_inset
24819
24820  specified in the 
24821 \begin_inset Flex Code
24822 status collapsed
24823
24824 \begin_layout Plain Layout
24825 Font
24826 \end_layout
24827
24828 \end_inset
24829
24830  declaration (see 
24831 \begin_inset CommandInset ref
24832 LatexCommand ref
24833 reference "subsec:Font-description"
24834
24835 \end_inset
24836
24837 ).
24838  The translation is mostly straightforward and obvious.
24839  For example, 
24840 \begin_inset Quotes eld
24841 \end_inset
24842
24843
24844 \begin_inset Flex Code
24845 status collapsed
24846
24847 \begin_layout Plain Layout
24848 Family Sans
24849 \end_layout
24850
24851 \end_inset
24852
24853
24854 \begin_inset Quotes erd
24855 \end_inset
24856
24857  becomes 
24858 \begin_inset Quotes eld
24859 \end_inset
24860
24861
24862 \begin_inset Flex Code
24863 status collapsed
24864
24865 \begin_layout Plain Layout
24866 font-family: sans-serif;
24867 \end_layout
24868
24869 \end_inset
24870
24871
24872 \begin_inset Quotes erd
24873 \end_inset
24874
24875 .
24876  The correspondence of \SpecialChar LyX
24877  sizes and CSS sizes is a little less obvious but
24878  nonetheless intuitive.
24879  See the 
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 getSizeCSS()
24885 \end_layout
24886
24887 \end_inset
24888
24889  function in 
24890 \begin_inset Flex URL
24891 status collapsed
24892
24893 \begin_layout Plain Layout
24894
24895 src/FontInfo.cpp
24896 \end_layout
24897
24898 \end_inset
24899
24900  for the details.
24901 \end_layout
24902
24903 \begin_layout Chapter
24904 Including External Material
24905 \begin_inset CommandInset label
24906 LatexCommand label
24907 name "chap:Including-External-Material"
24908
24909 \end_inset
24910
24911
24912 \end_layout
24913
24914 \begin_layout Standard
24915 \begin_inset Box Shadowbox
24916 position "t"
24917 hor_pos "c"
24918 has_inner_box 1
24919 inner_pos "t"
24920 use_parbox 0
24921 use_makebox 0
24922 width "100col%"
24923 special "none"
24924 height "1in"
24925 height_special "totalheight"
24926 thickness "0.4pt"
24927 separation "3pt"
24928 shadowsize "4pt"
24929 framecolor "black"
24930 backgroundcolor "none"
24931 status open
24932
24933 \begin_layout Plain Layout
24934 WARNING: This portion of the documentation has not been updated for some
24935  time.
24936  We certainly hope that it is still accurate, but there are no guarantees.
24937 \end_layout
24938
24939 \end_inset
24940
24941
24942 \end_layout
24943
24944 \begin_layout Standard
24945 The use of material from sources external to \SpecialChar LyX
24946  is covered in detail in the
24947  
24948 \emph on
24949 Embedded Objects
24950 \emph default
24951  manual.
24952  This part of the manual covers what needs to happen behind the scenes for
24953  new sorts of material to be included.
24954 \end_layout
24955
24956 \begin_layout Section
24957 How does it work?
24958 \end_layout
24959
24960 \begin_layout Standard
24961 The external material feature is based on the concept of a 
24962 \emph on
24963 template
24964 \emph default
24965 .
24966  A template is a specification of how \SpecialChar LyX
24967  should interface with a certain kind
24968  of material.
24969  As bundled, \SpecialChar LyX
24970  comes with predefined templates for Xfig figures, various
24971  raster format images, chess diagrams, and LilyPond music notation.
24972  You can check the actual list by using the menu 
24973 \begin_inset Flex Noun
24974 status collapsed
24975
24976 \begin_layout Plain Layout
24977 Insert\SpecialChar menuseparator
24978 File\SpecialChar menuseparator
24979 External Material
24980 \end_layout
24981
24982 \end_inset
24983
24984 .
24985  Furthermore, it is possible to roll your own template to support a specific
24986  kind of material.
24987  Later we'll describe in more detail what is involved, and hopefully you
24988  will submit all the templates you create so we can include them in a later
24989  \SpecialChar LyX
24990  version.
24991 \end_layout
24992
24993 \begin_layout Standard
24994 Another basic idea of the external material feature is to distinguish between
24995  the original file that serves as a base for final material and the produced
24996  file that is included in your exported or printed document.
24997  For example, consider the case of a figure produced with 
24998 \begin_inset Flex Code
24999 status collapsed
25000
25001 \begin_layout Plain Layout
25002 Xfig
25003 \end_layout
25004
25005 \end_inset
25006
25007 .
25008  The Xfig application itself works on an original file with the 
25009 \begin_inset Flex Code
25010 status collapsed
25011
25012 \begin_layout Plain Layout
25013 .fig
25014 \end_layout
25015
25016 \end_inset
25017
25018  extension.
25019  Within Xfig, you create and change your figure, and when you are done,
25020  you save the 
25021 \begin_inset Flex Code
25022 status collapsed
25023
25024 \begin_layout Plain Layout
25025 fig
25026 \end_layout
25027
25028 \end_inset
25029
25030 -file.
25031  When you want to include the figure in your document, you invoke 
25032 \begin_inset Flex Code
25033 status collapsed
25034
25035 \begin_layout Plain Layout
25036 transfig
25037 \end_layout
25038
25039 \end_inset
25040
25041  in order to create a PostScript file that can readily be included in your
25042  \SpecialChar LaTeX
25043  file.
25044  In this case, the 
25045 \begin_inset Flex Code
25046 status collapsed
25047
25048 \begin_layout Plain Layout
25049 .fig
25050 \end_layout
25051
25052 \end_inset
25053
25054  file is the original file, and the PostScript file is the produced file.
25055 \end_layout
25056
25057 \begin_layout Standard
25058 This distinction is important in order to allow updating of the material
25059  while you are in the process of writing the document.
25060  Furthermore, it provides us with the flexibility that is needed to support
25061  multiple export formats.
25062  For instance, in the case of a plain text file, it is not exactly an award-winn
25063 ing idea to include the figure as raw PostScript.
25064  Instead, you would either prefer to just include a reference to the figure
25065  or try to invoke some graphics to ASCII converter to make the final result
25066  look similar to the real graphics.
25067  The external material management allows you to do this, because it is parametri
25068 zed on the different export formats that \SpecialChar LyX
25069  supports.
25070 \end_layout
25071
25072 \begin_layout Standard
25073 Besides supporting the production of different products according to the
25074  exported format, it supports tight integration with editing and viewing
25075  applications.
25076  In the case of an Xfig figure, you are able to invoke Xfig on the original
25077  file with a single click from within the external material dialog in \SpecialChar LyX
25078 ,
25079  and also preview the produced PostScript file with Ghostview with another
25080  click.
25081  No more fiddling around with the command line and/or file browsers to locate
25082  and manipulate the original or produced files.
25083  In this way, you are finally able to take full advantage of the many different
25084  applications that are relevant to use when you write your documents, and
25085  ultimately be more productive.
25086 \end_layout
25087
25088 \begin_layout Section
25089 The external template configuration files
25090 \end_layout
25091
25092 \begin_layout Standard
25093 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25094 .
25095  However, be aware that doing this in an careless manner most probably 
25096 \emph on
25097 will
25098 \emph default
25099  introduce an easily exploitable security hole.
25100  So before you do this, please read the discussion about security in 
25101 \begin_inset CommandInset ref
25102 LatexCommand ref
25103 reference "sec:Security-discussion"
25104
25105 \end_inset
25106
25107 .
25108 \end_layout
25109
25110 \begin_layout Standard
25111 Having said that, we encourage you to submit any interesting templates that
25112  you create.
25113  
25114 \end_layout
25115
25116 \begin_layout Standard
25117 The external templates are defined in the 
25118 \begin_inset Flex Code
25119 status collapsed
25120
25121 \begin_layout Plain Layout
25122 *.xtemplate
25123 \end_layout
25124
25125 \end_inset
25126
25127  files that are stored in the 
25128 \begin_inset Flex Code
25129 status collapsed
25130
25131 \begin_layout Plain Layout
25132 LyXDir/lib/xtemplates/
25133 \end_layout
25134
25135 \end_inset
25136
25137  directory.
25138  Each template is defined in a file of its own.
25139  You can place your own templates in 
25140 \begin_inset Flex Code
25141 status collapsed
25142
25143 \begin_layout Plain Layout
25144 UserDir/xtemplates/
25145 \end_layout
25146
25147 \end_inset
25148
25149  or copy existing templates to that directory in order to modify them.
25150 \end_layout
25151
25152 \begin_layout Standard
25153 A typical template looks like this:
25154 \end_layout
25155
25156 \begin_layout LyX-Code
25157 Template XFig
25158 \end_layout
25159
25160 \begin_layout LyX-Code
25161 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25162 \end_layout
25163
25164 \begin_layout LyX-Code
25165 HelpText
25166 \end_layout
25167
25168 \begin_layout LyX-Code
25169 An XFig figure.
25170 \end_layout
25171
25172 \begin_layout LyX-Code
25173 HelpTextEnd
25174 \end_layout
25175
25176 \begin_layout LyX-Code
25177 InputFormat fig
25178 \end_layout
25179
25180 \begin_layout LyX-Code
25181 FileFilter "*.fig"
25182 \end_layout
25183
25184 \begin_layout LyX-Code
25185 AutomaticProduction true
25186 \end_layout
25187
25188 \begin_layout LyX-Code
25189 Transform Rotate
25190 \end_layout
25191
25192 \begin_layout LyX-Code
25193 Transform Resize
25194 \end_layout
25195
25196 \begin_layout LyX-Code
25197 Format LaTeX
25198 \end_layout
25199
25200 \begin_layout LyX-Code
25201 TransformCommand Rotate RotationLatexCommand
25202 \end_layout
25203
25204 \begin_layout LyX-Code
25205 TransformCommand Resize ResizeLatexCommand
25206 \end_layout
25207
25208 \begin_layout LyX-Code
25209 Product "$$RotateFront$$ResizeFront
25210 \end_layout
25211
25212 \begin_layout LyX-Code
25213          
25214 \backslash
25215
25216 \backslash
25217 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25218 \end_layout
25219
25220 \begin_layout LyX-Code
25221          $$ResizeBack$$RotateBack"
25222 \end_layout
25223
25224 \begin_layout LyX-Code
25225 UpdateFormat pstex
25226 \end_layout
25227
25228 \begin_layout LyX-Code
25229 UpdateResult "$$AbsPath$$Basename.pstex_t"
25230 \end_layout
25231
25232 \begin_layout LyX-Code
25233 Requirement "graphicx"
25234 \end_layout
25235
25236 \begin_layout LyX-Code
25237 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25238 \end_layout
25239
25240 \begin_layout LyX-Code
25241 ReferencedFile latex "$$AbsPath$$Basename.eps"
25242 \end_layout
25243
25244 \begin_layout LyX-Code
25245 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25246 \end_layout
25247
25248 \begin_layout LyX-Code
25249 FormatEnd
25250 \end_layout
25251
25252 \begin_layout LyX-Code
25253 Format PDFLaTeX
25254 \end_layout
25255
25256 \begin_layout LyX-Code
25257 TransformCommand Rotate RotationLatexCommand
25258 \end_layout
25259
25260 \begin_layout LyX-Code
25261 TransformCommand Resize ResizeLatexCommand
25262 \end_layout
25263
25264 \begin_layout LyX-Code
25265 Product "$$RotateFront$$ResizeFront
25266 \end_layout
25267
25268 \begin_layout LyX-Code
25269          
25270 \backslash
25271
25272 \backslash
25273 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25274 \end_layout
25275
25276 \begin_layout LyX-Code
25277          $$ResizeBack$$RotateBack"
25278 \end_layout
25279
25280 \begin_layout LyX-Code
25281 UpdateFormat pdftex
25282 \end_layout
25283
25284 \begin_layout LyX-Code
25285 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25286 \end_layout
25287
25288 \begin_layout LyX-Code
25289 Requirement "graphicx"
25290 \end_layout
25291
25292 \begin_layout LyX-Code
25293 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25294 \end_layout
25295
25296 \begin_layout LyX-Code
25297 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25298 \end_layout
25299
25300 \begin_layout LyX-Code
25301 FormatEnd
25302 \end_layout
25303
25304 \begin_layout LyX-Code
25305 Format Ascii
25306 \end_layout
25307
25308 \begin_layout LyX-Code
25309 Product "[XFig: $$FName]"
25310 \end_layout
25311
25312 \begin_layout LyX-Code
25313 FormatEnd
25314 \end_layout
25315
25316 \begin_layout LyX-Code
25317 Format DocBook
25318 \end_layout
25319
25320 \begin_layout LyX-Code
25321 Product "<graphic fileref=
25322 \backslash
25323 "$$AbsOrRelPathMaster$$Basename.eps
25324 \backslash
25325 ">
25326 \end_layout
25327
25328 \begin_layout LyX-Code
25329          </graphic>"
25330 \end_layout
25331
25332 \begin_layout LyX-Code
25333 UpdateFormat eps
25334 \end_layout
25335
25336 \begin_layout LyX-Code
25337 UpdateResult "$$AbsPath$$Basename.eps"
25338 \end_layout
25339
25340 \begin_layout LyX-Code
25341 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25342 \end_layout
25343
25344 \begin_layout LyX-Code
25345 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25346 \end_layout
25347
25348 \begin_layout LyX-Code
25349 FormatEnd
25350 \end_layout
25351
25352 \begin_layout LyX-Code
25353 TemplateEnd
25354 \end_layout
25355
25356 \begin_layout Standard
25357 As you can see, the template is enclosed in 
25358 \begin_inset Flex Code
25359 status collapsed
25360
25361 \begin_layout Plain Layout
25362 Template
25363 \end_layout
25364
25365 \end_inset
25366
25367  \SpecialChar ldots
25368  
25369 \begin_inset Flex Code
25370 status collapsed
25371
25372 \begin_layout Plain Layout
25373 TemplateEnd
25374 \end_layout
25375
25376 \end_inset
25377
25378 .
25379  It contains a header specifying some general settings and, for each supported
25380  primary document file format, a section 
25381 \begin_inset Flex Code
25382 status collapsed
25383
25384 \begin_layout Plain Layout
25385 Format
25386 \end_layout
25387
25388 \end_inset
25389
25390  \SpecialChar ldots
25391  
25392 \begin_inset Flex Code
25393 status collapsed
25394
25395 \begin_layout Plain Layout
25396 FormatEnd
25397 \end_layout
25398
25399 \end_inset
25400
25401 .
25402 \end_layout
25403
25404 \begin_layout Subsection
25405 The template header
25406 \end_layout
25407
25408 \begin_layout Description
25409 \begin_inset Flex Code
25410 status collapsed
25411
25412 \begin_layout Plain Layout
25413 AutomaticProduction
25414 \begin_inset space ~
25415 \end_inset
25416
25417 true|false
25418 \end_layout
25419
25420 \end_inset
25421
25422  Whether the file represented by the template must be generated by \SpecialChar LyX
25423 .
25424  This command must occur exactly once.
25425 \end_layout
25426
25427 \begin_layout Description
25428 \begin_inset Flex Code
25429 status collapsed
25430
25431 \begin_layout Plain Layout
25432 FileFilter
25433 \begin_inset space ~
25434 \end_inset
25435
25436 <pattern>
25437 \end_layout
25438
25439 \end_inset
25440
25441  A glob pattern that is used in the file dialog to filter out the desired
25442  files.
25443  If there is more than one possible file extension (e.
25444 \begin_inset space \thinspace{}
25445 \end_inset
25446
25447 g.
25448 \begin_inset space \space{}
25449 \end_inset
25450
25451 tgif has 
25452 \begin_inset Flex Code
25453 status collapsed
25454
25455 \begin_layout Plain Layout
25456 .obj
25457 \end_layout
25458
25459 \end_inset
25460
25461  and 
25462 \begin_inset Flex Code
25463 status collapsed
25464
25465 \begin_layout Plain Layout
25466 .tgo
25467 \end_layout
25468
25469 \end_inset
25470
25471 ), use something like 
25472 \begin_inset Flex Code
25473 status collapsed
25474
25475 \begin_layout Plain Layout
25476 "*.{obj,tgo}"
25477 \end_layout
25478
25479 \end_inset
25480
25481 .
25482  This command must occur exactly once.
25483 \end_layout
25484
25485 \begin_layout Description
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490 GuiName
25491 \begin_inset space ~
25492 \end_inset
25493
25494 <guiname>
25495 \end_layout
25496
25497 \end_inset
25498
25499  The text that is displayed on the button.
25500  This command must occur exactly once.
25501 \end_layout
25502
25503 \begin_layout Description
25504 \begin_inset Flex Code
25505 status collapsed
25506
25507 \begin_layout Plain Layout
25508 HelpText
25509 \begin_inset space ~
25510 \end_inset
25511
25512 <text>
25513 \begin_inset space ~
25514 \end_inset
25515
25516 HelpTextEnd
25517 \end_layout
25518
25519 \end_inset
25520
25521  The help text that is used in the External dialog.
25522  Provide enough information to explain to the user just what the template
25523  can provide him with.
25524  This command must occur exactly once.
25525 \end_layout
25526
25527 \begin_layout Description
25528 \begin_inset Flex Code
25529 status collapsed
25530
25531 \begin_layout Plain Layout
25532 InputFormat
25533 \begin_inset space ~
25534 \end_inset
25535
25536 <format>
25537 \end_layout
25538
25539 \end_inset
25540
25541  The file format of the original file.
25542  This must be the name of a format that is known to \SpecialChar LyX
25543  (see 
25544 \begin_inset CommandInset ref
25545 LatexCommand ref
25546 reference "sec:Formats"
25547
25548 \end_inset
25549
25550 ).
25551  Use 
25552 \begin_inset Quotes eld
25553 \end_inset
25554
25555
25556 \begin_inset Flex Code
25557 status collapsed
25558
25559 \begin_layout Plain Layout
25560 *
25561 \end_layout
25562
25563 \end_inset
25564
25565
25566 \begin_inset Quotes erd
25567 \end_inset
25568
25569  if the template can handle original files of more than one format.
25570  \SpecialChar LyX
25571  will attempt to interrogate the file itself in order to deduce its format
25572  in this case.
25573  This command must occur exactly once.
25574 \end_layout
25575
25576 \begin_layout Description
25577 \begin_inset Flex Code
25578 status collapsed
25579
25580 \begin_layout Plain Layout
25581 Template
25582 \begin_inset space ~
25583 \end_inset
25584
25585 <id>
25586 \end_layout
25587
25588 \end_inset
25589
25590  A unique name for the template.
25591  It must not contain substitution macros (see below).
25592 \end_layout
25593
25594 \begin_layout Description
25595 \begin_inset Flex Code
25596 status collapsed
25597
25598 \begin_layout Plain Layout
25599 Transform
25600 \begin_inset space ~
25601 \end_inset
25602
25603 Rotate|Resize|Clip|Extra
25604 \end_layout
25605
25606 \end_inset
25607
25608  This command specifies which transformations are supported by this template.
25609  It may occur zero or more times.
25610  This command enables the corresponding tabs in the external dialog.
25611  Each 
25612 \begin_inset Flex Code
25613 status collapsed
25614
25615 \begin_layout Plain Layout
25616 Transform
25617 \end_layout
25618
25619 \end_inset
25620
25621  command must have either a corresponding 
25622 \begin_inset Flex Code
25623 status collapsed
25624
25625 \begin_layout Plain Layout
25626 TransformCommand
25627 \end_layout
25628
25629 \end_inset
25630
25631  or a 
25632 \begin_inset Flex Code
25633 status collapsed
25634
25635 \begin_layout Plain Layout
25636 TransformOption
25637 \end_layout
25638
25639 \end_inset
25640
25641  command in the 
25642 \begin_inset Flex Code
25643 status collapsed
25644
25645 \begin_layout Plain Layout
25646 Format
25647 \end_layout
25648
25649 \end_inset
25650
25651  section.
25652  Otherwise the transformation will not be supported by that format.
25653 \end_layout
25654
25655 \begin_layout Subsection
25656 The Format section
25657 \end_layout
25658
25659 \begin_layout Description
25660 \begin_inset Flex Code
25661 status collapsed
25662
25663 \begin_layout Plain Layout
25664 Format
25665 \begin_inset space ~
25666 \end_inset
25667
25668 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
25669 \end_layout
25670
25671 \end_inset
25672
25673  The primary document file format that this format definition is for.
25674  Not every template has a sensible representation in all document file formats.
25675  Please define nevertheless a 
25676 \begin_inset Flex Code
25677 status collapsed
25678
25679 \begin_layout Plain Layout
25680 Format
25681 \end_layout
25682
25683 \end_inset
25684
25685  section for all templates.
25686  Use a dummy text when no representation is available.
25687  Then you can at least see a reference to the external material in the exported
25688  document.
25689 \end_layout
25690
25691 \begin_layout Description
25692 \begin_inset Flex Code
25693 status collapsed
25694
25695 \begin_layout Plain Layout
25696 Option
25697 \begin_inset space ~
25698 \end_inset
25699
25700 <name>
25701 \begin_inset space ~
25702 \end_inset
25703
25704 <value>
25705 \end_layout
25706
25707 \end_inset
25708
25709  This command defines an additional macro 
25710 \begin_inset Flex Code
25711 status collapsed
25712
25713 \begin_layout Plain Layout
25714 $$<name>
25715 \end_layout
25716
25717 \end_inset
25718
25719  for substitution in 
25720 \begin_inset Flex Code
25721 status collapsed
25722
25723 \begin_layout Plain Layout
25724 Product
25725 \end_layout
25726
25727 \end_inset
25728
25729 .
25730  
25731 \begin_inset Flex Code
25732 status collapsed
25733
25734 \begin_layout Plain Layout
25735 <value>
25736 \end_layout
25737
25738 \end_inset
25739
25740  itself may contain substitution macros.
25741  The advantage over using 
25742 \begin_inset Flex Code
25743 status collapsed
25744
25745 \begin_layout Plain Layout
25746 <value>
25747 \end_layout
25748
25749 \end_inset
25750
25751  directly in 
25752 \begin_inset Flex Code
25753 status collapsed
25754
25755 \begin_layout Plain Layout
25756 Product
25757 \end_layout
25758
25759 \end_inset
25760
25761  is that the substituted value of 
25762 \begin_inset Flex Code
25763 status collapsed
25764
25765 \begin_layout Plain Layout
25766 $$<name>
25767 \end_layout
25768
25769 \end_inset
25770
25771  is sanitized so that it is a valid optional argument in the document format.
25772  This command may occur zero or more times.
25773 \end_layout
25774
25775 \begin_layout Description
25776 \begin_inset Flex Code
25777 status collapsed
25778
25779 \begin_layout Plain Layout
25780 Product
25781 \begin_inset space ~
25782 \end_inset
25783
25784 <text>
25785 \end_layout
25786
25787 \end_inset
25788
25789  The text that is inserted in the exported document.
25790  This is actually the most important command and can be quite complex.
25791  This command must occur exactly once.
25792 \end_layout
25793
25794 \begin_layout Description
25795 \begin_inset Flex Code
25796 status collapsed
25797
25798 \begin_layout Plain Layout
25799 Preamble
25800 \begin_inset space ~
25801 \end_inset
25802
25803 <name>
25804 \end_layout
25805
25806 \end_inset
25807
25808  This command specifies a preamble snippet that will be included in the
25809  \SpecialChar LaTeX
25810  preamble.
25811  It has to be defined using 
25812 \begin_inset Flex Code
25813 status collapsed
25814
25815 \begin_layout Plain Layout
25816 PreambleDef
25817 \end_layout
25818
25819 \end_inset
25820
25821  \SpecialChar ldots
25822  
25823 \begin_inset Flex Code
25824 status collapsed
25825
25826 \begin_layout Plain Layout
25827 PreambleDefEnd
25828 \end_layout
25829
25830 \end_inset
25831
25832 .
25833  This command may occur zero or more times.
25834 \end_layout
25835
25836 \begin_layout Description
25837 \begin_inset Flex Code
25838 status collapsed
25839
25840 \begin_layout Plain Layout
25841 ReferencedFile
25842 \begin_inset space ~
25843 \end_inset
25844
25845 <format>
25846 \begin_inset space ~
25847 \end_inset
25848
25849 <filename>
25850 \end_layout
25851
25852 \end_inset
25853
25854  This command denotes files that are created by the conversion process and
25855  are needed for a particular export format.
25856  If the filename is relative, it is interpreted relative to the master document.
25857  This command may be given zero or more times.
25858 \end_layout
25859
25860 \begin_layout Description
25861 \begin_inset Flex Code
25862 status collapsed
25863
25864 \begin_layout Plain Layout
25865 Requirement
25866 \begin_inset space ~
25867 \end_inset
25868
25869 <package>
25870 \end_layout
25871
25872 \end_inset
25873
25874  The name of a required \SpecialChar LaTeX
25875  package.
25876  The package is included via 
25877 \begin_inset Flex Code
25878 status collapsed
25879
25880 \begin_layout Plain Layout
25881
25882 \backslash
25883 usepackage{}
25884 \end_layout
25885
25886 \end_inset
25887
25888  in the \SpecialChar LaTeX
25889  preamble.
25890  This command may occur zero or more times.
25891 \end_layout
25892
25893 \begin_layout Description
25894 \begin_inset Flex Code
25895 status collapsed
25896
25897 \begin_layout Plain Layout
25898 TransformCommand
25899 \begin_inset space ~
25900 \end_inset
25901
25902 Rotate
25903 \begin_inset space ~
25904 \end_inset
25905
25906 RotationLatexCommand
25907 \end_layout
25908
25909 \end_inset
25910
25911  This command specifies that the built in \SpecialChar LaTeX
25912  command should be used for rotation.
25913  This command may occur once or not at all.
25914 \end_layout
25915
25916 \begin_layout Description
25917 \begin_inset Flex Code
25918 status collapsed
25919
25920 \begin_layout Plain Layout
25921 TransformCommand
25922 \begin_inset space ~
25923 \end_inset
25924
25925 Resize
25926 \begin_inset space ~
25927 \end_inset
25928
25929 ResizeLatexCommand
25930 \end_layout
25931
25932 \end_inset
25933
25934  This command specifies that the built in \SpecialChar LaTeX
25935  command should be used for resizing.
25936  This command may occur once or not at all.
25937 \end_layout
25938
25939 \begin_layout Description
25940 \begin_inset Flex Code
25941 status collapsed
25942
25943 \begin_layout Plain Layout
25944 TransformOption
25945 \begin_inset space ~
25946 \end_inset
25947
25948 Rotate
25949 \begin_inset space ~
25950 \end_inset
25951
25952 RotationLatexOption
25953 \end_layout
25954
25955 \end_inset
25956
25957  This command specifies that rotation is done via an optional argument.
25958  This command may occur once or not at all.
25959 \end_layout
25960
25961 \begin_layout Description
25962 \begin_inset Flex Code
25963 status collapsed
25964
25965 \begin_layout Plain Layout
25966 TransformOption
25967 \begin_inset space ~
25968 \end_inset
25969
25970 Resize
25971 \begin_inset space ~
25972 \end_inset
25973
25974 ResizeLatexOption
25975 \end_layout
25976
25977 \end_inset
25978
25979  This command specifies that resizing is done via an optional argument.
25980  This command may occur once or not at all.
25981 \end_layout
25982
25983 \begin_layout Description
25984 \begin_inset Flex Code
25985 status collapsed
25986
25987 \begin_layout Plain Layout
25988 TransformOption
25989 \begin_inset space ~
25990 \end_inset
25991
25992 Clip
25993 \begin_inset space ~
25994 \end_inset
25995
25996 ClipLatexOption
25997 \end_layout
25998
25999 \end_inset
26000
26001  This command specifies that clipping is done via an optional argument.
26002  This command may occur once or not at all.
26003 \end_layout
26004
26005 \begin_layout Description
26006 \begin_inset Flex Code
26007 status collapsed
26008
26009 \begin_layout Plain Layout
26010 TransformOption
26011 \begin_inset space ~
26012 \end_inset
26013
26014 Extra
26015 \begin_inset space ~
26016 \end_inset
26017
26018 ExtraLatexOption
26019 \end_layout
26020
26021 \end_inset
26022
26023  This command specifies that an extra optional argument is used.
26024  This command may occur once or not at all.
26025 \end_layout
26026
26027 \begin_layout Description
26028 \begin_inset Flex Code
26029 status collapsed
26030
26031 \begin_layout Plain Layout
26032 UpdateFormat
26033 \begin_inset space ~
26034 \end_inset
26035
26036 <format>
26037 \end_layout
26038
26039 \end_inset
26040
26041  The file format of the converted file.
26042  This must be the name of a format that is known to \SpecialChar LyX
26043  (see the 
26044 \begin_inset Flex Noun
26045 status collapsed
26046
26047 \begin_layout Plain Layout
26048 Tools\SpecialChar menuseparator
26049 Preferences\SpecialChar menuseparator
26050 File Handling\SpecialChar menuseparator
26051 File Format
26052 \end_layout
26053
26054 \end_inset
26055
26056  dialog).
26057  This command must occur exactly once.
26058  If the resulting file format is PDF, you need to specify the format 
26059 \begin_inset Flex Code
26060 status collapsed
26061
26062 \begin_layout Plain Layout
26063 pdf6
26064 \end_layout
26065
26066 \end_inset
26067
26068 .
26069  This is the PDF format used for including graphics.
26070  The other defined PDF formats are for document export.
26071 \end_layout
26072
26073 \begin_layout Description
26074 \begin_inset Flex Code
26075 status collapsed
26076
26077 \begin_layout Plain Layout
26078 UpdateResult
26079 \begin_inset space ~
26080 \end_inset
26081
26082 <filename>
26083 \end_layout
26084
26085 \end_inset
26086
26087  The file name of the converted file.
26088  The file name must be absolute.
26089  This command must occur exactly once.
26090 \end_layout
26091
26092 \begin_layout Subsection
26093 Preamble definitions
26094 \end_layout
26095
26096 \begin_layout Standard
26097 The external template configuration file may contain additional preamble
26098  definitions enclosed by 
26099 \begin_inset Flex Code
26100 status collapsed
26101
26102 \begin_layout Plain Layout
26103 PreambleDef
26104 \end_layout
26105
26106 \end_inset
26107
26108  \SpecialChar ldots
26109  
26110 \begin_inset Flex Code
26111 status collapsed
26112
26113 \begin_layout Plain Layout
26114 PreambleDefEnd
26115 \end_layout
26116
26117 \end_inset
26118
26119 .
26120  They can be used by the templates in the 
26121 \begin_inset Flex Code
26122 status collapsed
26123
26124 \begin_layout Plain Layout
26125 Format
26126 \end_layout
26127
26128 \end_inset
26129
26130  section.
26131 \end_layout
26132
26133 \begin_layout Section
26134 The substitution mechanism
26135 \end_layout
26136
26137 \begin_layout Standard
26138 When the external material facility invokes an external program, it is done
26139  on the basis of a command defined in the template configuration file.
26140  These commands can contain various macros that are expanded before execution.
26141  Execution always take place in the directory of the containing document.
26142 \end_layout
26143
26144 \begin_layout Standard
26145 Also, whenever external material is to be displayed, the name will be produced
26146  by the substitution mechanism, and most other commands in the template
26147  definition support substitution as well.
26148 \end_layout
26149
26150 \begin_layout Standard
26151 The available macros are the following:
26152 \end_layout
26153
26154 \begin_layout Description
26155 \begin_inset Flex Code
26156 status collapsed
26157
26158 \begin_layout Plain Layout
26159 $$AbsOrRelPathMaster
26160 \end_layout
26161
26162 \end_inset
26163
26164  The file path, absolute or relative to the master \SpecialChar LyX
26165  document.
26166 \end_layout
26167
26168 \begin_layout Description
26169 \begin_inset Flex Code
26170 status collapsed
26171
26172 \begin_layout Plain Layout
26173 $$AbsOrRelPathParent
26174 \end_layout
26175
26176 \end_inset
26177
26178  The file path, absolute or relative to the \SpecialChar LyX
26179  document.
26180 \end_layout
26181
26182 \begin_layout Description
26183 \begin_inset Flex Code
26184 status collapsed
26185
26186 \begin_layout Plain Layout
26187 $$AbsPath
26188 \end_layout
26189
26190 \end_inset
26191
26192  The absolute file path.
26193 \end_layout
26194
26195 \begin_layout Description
26196 \begin_inset Flex Code
26197 status collapsed
26198
26199 \begin_layout Plain Layout
26200 $$Basename
26201 \end_layout
26202
26203 \end_inset
26204
26205  The filename without path and without the extension.
26206 \end_layout
26207
26208 \begin_layout Description
26209 \begin_inset Flex Code
26210 status collapsed
26211
26212 \begin_layout Plain Layout
26213 $$Contents(
26214 \begin_inset Quotes eld
26215 \end_inset
26216
26217 filename.ext
26218 \begin_inset Quotes erd
26219 \end_inset
26220
26221 )
26222 \end_layout
26223
26224 \end_inset
26225
26226  This macro will expand to the contents of the file with the name 
26227 \begin_inset Flex Code
26228 status collapsed
26229
26230 \begin_layout Plain Layout
26231 filename.ext
26232 \end_layout
26233
26234 \end_inset
26235
26236 .
26237 \end_layout
26238
26239 \begin_layout Description
26240 \begin_inset Flex Code
26241 status collapsed
26242
26243 \begin_layout Plain Layout
26244 $$Extension
26245 \end_layout
26246
26247 \end_inset
26248
26249  The file extension (including the dot).
26250 \end_layout
26251
26252 \begin_layout Description
26253 \begin_inset Flex Code
26254 status collapsed
26255
26256 \begin_layout Plain Layout
26257 $$pngOrjpg
26258 \end_layout
26259
26260 \end_inset
26261
26262  This will be the string 
26263 \begin_inset Quotes eld
26264 \end_inset
26265
26266 jpg
26267 \begin_inset Quotes erd
26268 \end_inset
26269
26270  if the file is in JPEG format, otherwise it will be the string 
26271 \begin_inset Quotes eld
26272 \end_inset
26273
26274 png
26275 \begin_inset Quotes erd
26276 \end_inset
26277
26278 .
26279  This is useful to avoid uneeded conversions for output formats that support
26280  both PNG and JPEG fomats.
26281  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26282  output
26283  format.
26284 \end_layout
26285
26286 \begin_layout Description
26287 \begin_inset Flex Code
26288 status collapsed
26289
26290 \begin_layout Plain Layout
26291 $$FName
26292 \end_layout
26293
26294 \end_inset
26295
26296  The filename of the file specified in the external material dialog.
26297  This is either an absolute name, or it is relative to the \SpecialChar LyX
26298  document.
26299 \end_layout
26300
26301 \begin_layout Description
26302 \begin_inset Flex Code
26303 status collapsed
26304
26305 \begin_layout Plain Layout
26306 $$FPath
26307 \end_layout
26308
26309 \end_inset
26310
26311  The path part of 
26312 \begin_inset Flex Code
26313 status collapsed
26314
26315 \begin_layout Plain Layout
26316 $$FName
26317 \end_layout
26318
26319 \end_inset
26320
26321  (absolute name or relative to the \SpecialChar LyX
26322  document).
26323 \end_layout
26324
26325 \begin_layout Description
26326 \begin_inset Flex Code
26327 status collapsed
26328
26329 \begin_layout Plain Layout
26330 $$RelPathMaster
26331 \end_layout
26332
26333 \end_inset
26334
26335  The file path, relative to the master \SpecialChar LyX
26336  document.
26337 \end_layout
26338
26339 \begin_layout Description
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 $$RelPathParent
26345 \end_layout
26346
26347 \end_inset
26348
26349  The file path, relative to the \SpecialChar LyX
26350  document.
26351 \end_layout
26352
26353 \begin_layout Description
26354 \begin_inset Flex Code
26355 status collapsed
26356
26357 \begin_layout Plain Layout
26358 $$Sysdir
26359 \end_layout
26360
26361 \end_inset
26362
26363  This macro will expand to the absolute path of the system directory.
26364  This is typically used to point to the various helper scripts that are
26365  bundled with \SpecialChar LyX
26366 .
26367 \end_layout
26368
26369 \begin_layout Description
26370 \begin_inset Flex Code
26371 status collapsed
26372
26373 \begin_layout Plain Layout
26374 $$Tempname
26375 \end_layout
26376
26377 \end_inset
26378
26379  A name and full path to a temporary file which will be automatically deleted
26380  whenever the containing document is closed, or the external material insertion
26381  deleted.
26382 \end_layout
26383
26384 \begin_layout Standard
26385 All path macros contain a trailing directory separator, so you can construct
26386  e.
26387 \begin_inset space \thinspace{}
26388 \end_inset
26389
26390 g.
26391 \begin_inset space \space{}
26392 \end_inset
26393
26394 the absolute filename with 
26395 \begin_inset Flex Code
26396 status collapsed
26397
26398 \begin_layout Plain Layout
26399 $$AbsPath$$Basename$$Extension
26400 \end_layout
26401
26402 \end_inset
26403
26404 .
26405 \end_layout
26406
26407 \begin_layout Standard
26408 The macros above are substituted in all commands unless otherwise noted.
26409  The command 
26410 \begin_inset Flex Code
26411 status collapsed
26412
26413 \begin_layout Plain Layout
26414 Product
26415 \end_layout
26416
26417 \end_inset
26418
26419  supports additionally the following substitutions if they are enabled by
26420  the 
26421 \begin_inset Flex Code
26422 status collapsed
26423
26424 \begin_layout Plain Layout
26425 Transform
26426 \end_layout
26427
26428 \end_inset
26429
26430  and 
26431 \begin_inset Flex Code
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435 TransformCommand
26436 \end_layout
26437
26438 \end_inset
26439
26440  commands:
26441 \end_layout
26442
26443 \begin_layout Description
26444 \begin_inset Flex Code
26445 status collapsed
26446
26447 \begin_layout Plain Layout
26448 $$ResizeFront
26449 \end_layout
26450
26451 \end_inset
26452
26453  The front part of the resize command.
26454 \end_layout
26455
26456 \begin_layout Description
26457 \begin_inset Flex Code
26458 status collapsed
26459
26460 \begin_layout Plain Layout
26461 $$ResizeBack
26462 \end_layout
26463
26464 \end_inset
26465
26466  The back part of the resize command.
26467 \end_layout
26468
26469 \begin_layout Description
26470 \begin_inset Flex Code
26471 status collapsed
26472
26473 \begin_layout Plain Layout
26474 $$RotateFront
26475 \end_layout
26476
26477 \end_inset
26478
26479  The front part of the rotation command.
26480 \end_layout
26481
26482 \begin_layout Description
26483 \begin_inset Flex Code
26484 status collapsed
26485
26486 \begin_layout Plain Layout
26487 $$RotateBack
26488 \end_layout
26489
26490 \end_inset
26491
26492  The back part of the rotation command.
26493 \end_layout
26494
26495 \begin_layout Standard
26496 The value string of the 
26497 \begin_inset Flex Code
26498 status collapsed
26499
26500 \begin_layout Plain Layout
26501 Option
26502 \end_layout
26503
26504 \end_inset
26505
26506  command supports additionally the following substitutions if they are enabled
26507  by the 
26508 \begin_inset Flex Code
26509 status collapsed
26510
26511 \begin_layout Plain Layout
26512 Transform
26513 \end_layout
26514
26515 \end_inset
26516
26517  and 
26518 \begin_inset Flex Code
26519 status collapsed
26520
26521 \begin_layout Plain Layout
26522 TransformOption
26523 \end_layout
26524
26525 \end_inset
26526
26527  commands:
26528 \end_layout
26529
26530 \begin_layout Description
26531 \begin_inset Flex Code
26532 status collapsed
26533
26534 \begin_layout Plain Layout
26535 $$Clip
26536 \end_layout
26537
26538 \end_inset
26539
26540  The clip option.
26541 \end_layout
26542
26543 \begin_layout Description
26544 \begin_inset Flex Code
26545 status collapsed
26546
26547 \begin_layout Plain Layout
26548 $$Extra
26549 \end_layout
26550
26551 \end_inset
26552
26553  The extra option.
26554 \end_layout
26555
26556 \begin_layout Description
26557 \begin_inset Flex Code
26558 status collapsed
26559
26560 \begin_layout Plain Layout
26561 $$Resize
26562 \end_layout
26563
26564 \end_inset
26565
26566  The resize option.
26567 \end_layout
26568
26569 \begin_layout Description
26570 \begin_inset Flex Code
26571 status collapsed
26572
26573 \begin_layout Plain Layout
26574 $$Rotate
26575 \end_layout
26576
26577 \end_inset
26578
26579  The rotation option.
26580 \end_layout
26581
26582 \begin_layout Standard
26583 You may ask why there are so many path macros.
26584  There are mainly two reasons:
26585 \end_layout
26586
26587 \begin_layout Enumerate
26588 Relative and absolute file names should remain relative or absolute, respectivel
26589 y.
26590  Users may have reasons to prefer either form.
26591  Relative names are useful for portable documents that should work on different
26592  machines, for example.
26593  Absolute names may be required by some programs.
26594 \end_layout
26595
26596 \begin_layout Enumerate
26597 \SpecialChar LaTeX
26598  treats relative file names differently than \SpecialChar LyX
26599  and other programs in nested
26600  included files.
26601  For \SpecialChar LyX
26602 , a relative file name is always relative to the document that contains
26603  the file name.
26604  For \SpecialChar LaTeX
26605 , it is always relative to the master document.
26606  These two definitions are identical if you have only one document, but
26607  differ if you have a master document that includes part documents.
26608  That means that relative filenames must be transformed when presented to
26609  \SpecialChar LaTeX
26610 .
26611  Fortunately \SpecialChar LyX
26612  does this automatically for you if you choose the right macros.
26613 \end_layout
26614
26615 \begin_layout Standard
26616 So which path macro should be used in new template definitions? The rule
26617  is not difficult:
26618 \end_layout
26619
26620 \begin_layout Itemize
26621 Use 
26622 \begin_inset Flex Code
26623 status collapsed
26624
26625 \begin_layout Plain Layout
26626 $$AbsPath
26627 \end_layout
26628
26629 \end_inset
26630
26631  if an absolute path is required.
26632 \end_layout
26633
26634 \begin_layout Itemize
26635 Use 
26636 \begin_inset Flex Code
26637 status collapsed
26638
26639 \begin_layout Plain Layout
26640 $$AbsOrRelPathMaster
26641 \end_layout
26642
26643 \end_inset
26644
26645  if the substituted string is some kind of \SpecialChar LaTeX
26646  input.
26647 \end_layout
26648
26649 \begin_layout Itemize
26650 Else use 
26651 \begin_inset Flex Code
26652 status collapsed
26653
26654 \begin_layout Plain Layout
26655 $$AbsOrRelPathParent
26656 \end_layout
26657
26658 \end_inset
26659
26660  in order to preserve the user's choice.
26661 \end_layout
26662
26663 \begin_layout Standard
26664 There are special cases where this rule does not work and e.
26665 \begin_inset space \thinspace{}
26666 \end_inset
26667
26668 g.
26669 \begin_inset space \space{}
26670 \end_inset
26671
26672 relative names are needed, but normally it will work just fine.
26673  One example for such a case is the command 
26674 \begin_inset Flex Code
26675 status collapsed
26676
26677 \begin_layout Plain Layout
26678 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26679 \end_layout
26680
26681 \end_inset
26682
26683  in the XFig template above: We can't use the absolute name because the
26684  copier for 
26685 \begin_inset Flex Code
26686 status collapsed
26687
26688 \begin_layout Plain Layout
26689 .pstex_t
26690 \end_layout
26691
26692 \end_inset
26693
26694  files needs the relative name in order to rewrite the file content.
26695 \end_layout
26696
26697 \begin_layout Section
26698 Security discussion
26699 \begin_inset CommandInset label
26700 LatexCommand label
26701 name "sec:Security-discussion"
26702
26703 \end_inset
26704
26705
26706 \end_layout
26707
26708 \begin_layout Standard
26709 The external material feature interfaces with a lot of external programs
26710  and does so automatically, so we have to consider the security implications
26711  of this.
26712  In particular, since you have the option of including your own filenames
26713  and/or parameter strings and those are expanded into a command, it seems
26714  that it would be possible to create a malicious document which executes
26715  arbitrary commands when a user views or prints the document.
26716  This is something we definitely want to avoid.
26717 \end_layout
26718
26719 \begin_layout Standard
26720 However, since the external program commands are specified in the template
26721  configuration file only, there are no security issues if \SpecialChar LyX
26722  is properly configure
26723 d with safe templates only.
26724  This is so because the external programs are invoked with the 
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 execvp
26730 \end_layout
26731
26732 \end_inset
26733
26734 -system call rather than the 
26735 \begin_inset Flex Code
26736 status collapsed
26737
26738 \begin_layout Plain Layout
26739 system
26740 \end_layout
26741
26742 \end_inset
26743
26744  system-call, so it's not possible to execute arbitrary commands from the
26745  filename or parameter section via the shell.
26746 \end_layout
26747
26748 \begin_layout Standard
26749 This also implies that you are restricted in what command strings you can
26750  use in the external material templates.
26751  In particular, pipes and redirection are not readily available.
26752  This has to be so if \SpecialChar LyX
26753  should remain safe.
26754  If you want to use some of the shell features, you should write a safe
26755  script to do this in a controlled manner, and then invoke the script from
26756  the command string.
26757  
26758 \end_layout
26759
26760 \begin_layout Standard
26761 It is possible to design a template that interacts directly with the shell,
26762  but since this would allow a malicious user to execute arbitrary commands
26763  by writing clever filenames and/or parameters, we generally recommend that
26764  you only use safe scripts that work with the 
26765 \begin_inset Flex Code
26766 status collapsed
26767
26768 \begin_layout Plain Layout
26769 execvp
26770 \end_layout
26771
26772 \end_inset
26773
26774  system call in a controlled manner.
26775  Of course, for use in a controlled environment, it can be tempting to just
26776  fall back to use ordinary shell scripts.
26777  If you do so, be aware that you 
26778 \emph on
26779 will
26780 \emph default
26781  provide an easily exploitable security hole in your system.
26782  Of course it stands to reason that such unsafe templates will never be
26783  included in the standard \SpecialChar LyX
26784  distribution, although we do encourage people
26785  to submit new templates in the open source tradition.
26786  But \SpecialChar LyX
26787  as shipped from the official distribution channels will never have
26788  unsafe templates.
26789 \end_layout
26790
26791 \begin_layout Standard
26792 Including external material provides a lot of power, and you have to be
26793  careful not to introduce security hazards with this power.
26794  A subtle error in a single line in an innocent looking script can open
26795  the door to huge security problems.
26796  So if you do not fully understand the issues, we recommend that you consult
26797  a knowledgeable security professional or the \SpecialChar LyX
26798  development team if you have
26799  any questions about whether a given template is safe or not.
26800  And do this before you use it in an uncontrolled environment.
26801 \end_layout
26802
26803 \begin_layout Chapter
26804 \start_of_appendix
26805 List of supported \SpecialChar LyX
26806  functions to be used in layouts
26807 \begin_inset CommandInset label
26808 LatexCommand label
26809 name "chap:List-of-functions"
26810
26811 \end_inset
26812
26813
26814 \end_layout
26815
26816 \begin_layout Standard
26817 \align center
26818 \begin_inset Tabular
26819 <lyxtabular version="3" rows="11" columns="8">
26820 <features tabularvalignment="middle">
26821 <column alignment="left" valignment="top">
26822 <column alignment="left" valignment="top">
26823 <column alignment="left" valignment="top">
26824 <column alignment="left" valignment="top">
26825 <column alignment="left" valignment="top">
26826 <column alignment="left" valignment="top">
26827 <column alignment="left" valignment="top">
26828 <column alignment="left" valignment="top">
26829 <row>
26830 <cell alignment="left" valignment="top" usebox="none">
26831 \begin_inset Text
26832
26833 \begin_layout Plain Layout
26834 accents
26835 \end_layout
26836
26837 \end_inset
26838 </cell>
26839 <cell alignment="left" valignment="top" usebox="none">
26840 \begin_inset Text
26841
26842 \begin_layout Plain Layout
26843 booktabs
26844 \end_layout
26845
26846 \end_inset
26847 </cell>
26848 <cell alignment="left" valignment="top" usebox="none">
26849 \begin_inset Text
26850
26851 \begin_layout Plain Layout
26852 feyn
26853 \end_layout
26854
26855 \end_inset
26856 </cell>
26857 <cell alignment="left" valignment="top" usebox="none">
26858 \begin_inset Text
26859
26860 \begin_layout Plain Layout
26861 listings
26862 \end_layout
26863
26864 \end_inset
26865 </cell>
26866 <cell alignment="center" valignment="top" usebox="none">
26867 \begin_inset Text
26868
26869 \begin_layout Plain Layout
26870 natbib
26871 \end_layout
26872
26873 \end_inset
26874 </cell>
26875 <cell alignment="center" valignment="top" usebox="none">
26876 \begin_inset Text
26877
26878 \begin_layout Plain Layout
26879 rotfloat
26880 \end_layout
26881
26882 \end_inset
26883 </cell>
26884 <cell alignment="center" valignment="top" usebox="none">
26885 \begin_inset Text
26886
26887 \begin_layout Plain Layout
26888 tfrupee
26889 \end_layout
26890
26891 \end_inset
26892 </cell>
26893 <cell alignment="center" valignment="top" usebox="none">
26894 \begin_inset Text
26895
26896 \begin_layout Plain Layout
26897 wasysym
26898 \end_layout
26899
26900 \end_inset
26901 </cell>
26902 </row>
26903 <row>
26904 <cell alignment="left" valignment="top" usebox="none">
26905 \begin_inset Text
26906
26907 \begin_layout Plain Layout
26908 amsbsy
26909 \end_layout
26910
26911 \end_inset
26912 </cell>
26913 <cell alignment="left" valignment="top" usebox="none">
26914 \begin_inset Text
26915
26916 \begin_layout Plain Layout
26917 calc
26918 \end_layout
26919
26920 \end_inset
26921 </cell>
26922 <cell alignment="left" valignment="top" usebox="none">
26923 \begin_inset Text
26924
26925 \begin_layout Plain Layout
26926 fixltx2e
26927 \end_layout
26928
26929 \end_inset
26930 </cell>
26931 <cell alignment="left" valignment="top" usebox="none">
26932 \begin_inset Text
26933
26934 \begin_layout Plain Layout
26935 longtable
26936 \end_layout
26937
26938 \end_inset
26939 </cell>
26940 <cell alignment="center" valignment="top" usebox="none">
26941 \begin_inset Text
26942
26943 \begin_layout Plain Layout
26944 nomencl
26945 \end_layout
26946
26947 \end_inset
26948 </cell>
26949 <cell alignment="center" valignment="top" usebox="none">
26950 \begin_inset Text
26951
26952 \begin_layout Plain Layout
26953 rsphrase
26954 \end_layout
26955
26956 \end_inset
26957 </cell>
26958 <cell alignment="center" valignment="top" usebox="none">
26959 \begin_inset Text
26960
26961 \begin_layout Plain Layout
26962 tipa
26963 \end_layout
26964
26965 \end_inset
26966 </cell>
26967 <cell alignment="center" valignment="top" usebox="none">
26968 \begin_inset Text
26969
26970 \begin_layout Plain Layout
26971 wrapfig
26972 \end_layout
26973
26974 \end_inset
26975 </cell>
26976 </row>
26977 <row>
26978 <cell alignment="left" valignment="top" usebox="none">
26979 \begin_inset Text
26980
26981 \begin_layout Plain Layout
26982 amscd
26983 \end_layout
26984
26985 \end_inset
26986 </cell>
26987 <cell alignment="left" valignment="top" usebox="none">
26988 \begin_inset Text
26989
26990 \begin_layout Plain Layout
26991 CJK
26992 \end_layout
26993
26994 \end_inset
26995 </cell>
26996 <cell alignment="left" valignment="top" usebox="none">
26997 \begin_inset Text
26998
26999 \begin_layout Plain Layout
27000 float
27001 \end_layout
27002
27003 \end_inset
27004 </cell>
27005 <cell alignment="left" valignment="top" usebox="none">
27006 \begin_inset Text
27007
27008 \begin_layout Plain Layout
27009 lyxskak
27010 \end_layout
27011
27012 \end_inset
27013 </cell>
27014 <cell alignment="center" valignment="top" usebox="none">
27015 \begin_inset Text
27016
27017 \begin_layout Plain Layout
27018 pdfcolmk
27019 \end_layout
27020
27021 \end_inset
27022 </cell>
27023 <cell alignment="center" valignment="top" usebox="none">
27024 \begin_inset Text
27025
27026 \begin_layout Plain Layout
27027 setspace
27028 \end_layout
27029
27030 \end_inset
27031 </cell>
27032 <cell alignment="center" valignment="top" usebox="none">
27033 \begin_inset Text
27034
27035 \begin_layout Plain Layout
27036 tipx
27037 \end_layout
27038
27039 \end_inset
27040 </cell>
27041 <cell alignment="center" valignment="top" usebox="none">
27042 \begin_inset Text
27043
27044 \begin_layout Plain Layout
27045 xargs
27046 \end_layout
27047
27048 \end_inset
27049 </cell>
27050 </row>
27051 <row>
27052 <cell alignment="left" valignment="top" usebox="none">
27053 \begin_inset Text
27054
27055 \begin_layout Plain Layout
27056 amsmath
27057 \end_layout
27058
27059 \end_inset
27060 </cell>
27061 <cell alignment="left" valignment="top" usebox="none">
27062 \begin_inset Text
27063
27064 \begin_layout Plain Layout
27065 color
27066 \end_layout
27067
27068 \end_inset
27069 </cell>
27070 <cell alignment="left" valignment="top" usebox="none">
27071 \begin_inset Text
27072
27073 \begin_layout Plain Layout
27074 framed
27075 \end_layout
27076
27077 \end_inset
27078 </cell>
27079 <cell alignment="left" valignment="top" usebox="none">
27080 \begin_inset Text
27081
27082 \begin_layout Plain Layout
27083 makeidx
27084 \end_layout
27085
27086 \end_inset
27087 </cell>
27088 <cell alignment="center" valignment="top" usebox="none">
27089 \begin_inset Text
27090
27091 \begin_layout Plain Layout
27092 pdfpages
27093 \end_layout
27094
27095 \end_inset
27096 </cell>
27097 <cell alignment="center" valignment="top" usebox="none">
27098 \begin_inset Text
27099
27100 \begin_layout Plain Layout
27101 shapepar
27102 \end_layout
27103
27104 \end_inset
27105 </cell>
27106 <cell alignment="center" valignment="top" usebox="none">
27107 \begin_inset Text
27108
27109 \begin_layout Plain Layout
27110 tone
27111 \end_layout
27112
27113 \end_inset
27114 </cell>
27115 <cell alignment="center" valignment="top" usebox="none">
27116 \begin_inset Text
27117
27118 \begin_layout Plain Layout
27119 xcolor
27120 \end_layout
27121
27122 \end_inset
27123 </cell>
27124 </row>
27125 <row>
27126 <cell alignment="left" valignment="top" usebox="none">
27127 \begin_inset Text
27128
27129 \begin_layout Plain Layout
27130 amssymb
27131 \end_layout
27132
27133 \end_inset
27134 </cell>
27135 <cell alignment="left" valignment="top" usebox="none">
27136 \begin_inset Text
27137
27138 \begin_layout Plain Layout
27139 covington
27140 \end_layout
27141
27142 \end_inset
27143 </cell>
27144 <cell alignment="left" valignment="top" usebox="none">
27145 \begin_inset Text
27146
27147 \begin_layout Plain Layout
27148 graphicx
27149 \end_layout
27150
27151 \end_inset
27152 </cell>
27153 <cell alignment="left" valignment="top" usebox="none">
27154 \begin_inset Text
27155
27156 \begin_layout Plain Layout
27157 marvosym
27158 \end_layout
27159
27160 \end_inset
27161 </cell>
27162 <cell alignment="center" valignment="top" usebox="none">
27163 \begin_inset Text
27164
27165 \begin_layout Plain Layout
27166 pifont
27167 \end_layout
27168
27169 \end_inset
27170 </cell>
27171 <cell alignment="center" valignment="top" usebox="none">
27172 \begin_inset Text
27173
27174 \begin_layout Plain Layout
27175 slashed
27176 \end_layout
27177
27178 \end_inset
27179 </cell>
27180 <cell alignment="center" valignment="top" usebox="none">
27181 \begin_inset Text
27182
27183 \begin_layout Plain Layout
27184 txfonts
27185 \end_layout
27186
27187 \end_inset
27188 </cell>
27189 <cell alignment="center" valignment="top" usebox="none">
27190 \begin_inset Text
27191
27192 \begin_layout Plain Layout
27193 xy
27194 \end_layout
27195
27196 \end_inset
27197 </cell>
27198 </row>
27199 <row>
27200 <cell alignment="left" valignment="top" usebox="none">
27201 \begin_inset Text
27202
27203 \begin_layout Plain Layout
27204 amstext
27205 \end_layout
27206
27207 \end_inset
27208 </cell>
27209 <cell alignment="left" valignment="top" usebox="none">
27210 \begin_inset Text
27211
27212 \begin_layout Plain Layout
27213 csquotes
27214 \end_layout
27215
27216 \end_inset
27217 </cell>
27218 <cell alignment="left" valignment="top" usebox="none">
27219 \begin_inset Text
27220
27221 \begin_layout Plain Layout
27222 hhline
27223 \end_layout
27224
27225 \end_inset
27226 </cell>
27227 <cell alignment="left" valignment="top" usebox="none">
27228 \begin_inset Text
27229
27230 \begin_layout Plain Layout
27231 mathdesign
27232 \end_layout
27233
27234 \end_inset
27235 </cell>
27236 <cell alignment="center" valignment="top" usebox="none">
27237 \begin_inset Text
27238
27239 \begin_layout Plain Layout
27240 pmboxdraw
27241 \end_layout
27242
27243 \end_inset
27244 </cell>
27245 <cell alignment="center" valignment="top" usebox="none">
27246 \begin_inset Text
27247
27248 \begin_layout Plain Layout
27249 soul
27250 \end_layout
27251
27252 \end_inset
27253 </cell>
27254 <cell alignment="center" valignment="top" usebox="none">
27255 \begin_inset Text
27256
27257 \begin_layout Plain Layout
27258 ulem
27259 \end_layout
27260
27261 \end_inset
27262 </cell>
27263 <cell alignment="center" valignment="top" usebox="none">
27264 \begin_inset Text
27265
27266 \begin_layout Plain Layout
27267 yhmath
27268 \end_layout
27269
27270 \end_inset
27271 </cell>
27272 </row>
27273 <row>
27274 <cell alignment="left" valignment="top" usebox="none">
27275 \begin_inset Text
27276
27277 \begin_layout Plain Layout
27278 amsthm
27279 \end_layout
27280
27281 \end_inset
27282 </cell>
27283 <cell alignment="left" valignment="top" usebox="none">
27284 \begin_inset Text
27285
27286 \begin_layout Plain Layout
27287 dvipost
27288 \end_layout
27289
27290 \end_inset
27291 </cell>
27292 <cell alignment="left" valignment="top" usebox="none">
27293 \begin_inset Text
27294
27295 \begin_layout Plain Layout
27296 hyperref
27297 \end_layout
27298
27299 \end_inset
27300 </cell>
27301 <cell alignment="left" valignment="top" usebox="none">
27302 \begin_inset Text
27303
27304 \begin_layout Plain Layout
27305 mathdots
27306 \end_layout
27307
27308 \end_inset
27309 </cell>
27310 <cell alignment="center" valignment="top" usebox="none">
27311 \begin_inset Text
27312
27313 \begin_layout Plain Layout
27314 polyglossia
27315 \end_layout
27316
27317 \end_inset
27318 </cell>
27319 <cell alignment="center" valignment="top" usebox="none">
27320 \begin_inset Text
27321
27322 \begin_layout Plain Layout
27323 splitidx
27324 \end_layout
27325
27326 \end_inset
27327 </cell>
27328 <cell alignment="center" valignment="top" usebox="none">
27329 \begin_inset Text
27330
27331 \begin_layout Plain Layout
27332 undertilde
27333 \end_layout
27334
27335 \end_inset
27336 </cell>
27337 <cell alignment="center" valignment="top" usebox="none">
27338 \begin_inset Text
27339
27340 \begin_layout Plain Layout
27341
27342 \end_layout
27343
27344 \end_inset
27345 </cell>
27346 </row>
27347 <row>
27348 <cell alignment="left" valignment="top" usebox="none">
27349 \begin_inset Text
27350
27351 \begin_layout Plain Layout
27352 array
27353 \end_layout
27354
27355 \end_inset
27356 </cell>
27357 <cell alignment="left" valignment="top" usebox="none">
27358 \begin_inset Text
27359
27360 \begin_layout Plain Layout
27361 endnotes
27362 \end_layout
27363
27364 \end_inset
27365 </cell>
27366 <cell alignment="left" valignment="top" usebox="none">
27367 \begin_inset Text
27368
27369 \begin_layout Plain Layout
27370 ifsym
27371 \end_layout
27372
27373 \end_inset
27374 </cell>
27375 <cell alignment="left" valignment="top" usebox="none">
27376 \begin_inset Text
27377
27378 \begin_layout Plain Layout
27379 mathrsfs
27380 \end_layout
27381
27382 \end_inset
27383 </cell>
27384 <cell alignment="center" valignment="top" usebox="none">
27385 \begin_inset Text
27386
27387 \begin_layout Plain Layout
27388 prettyref
27389 \end_layout
27390
27391 \end_inset
27392 </cell>
27393 <cell alignment="center" valignment="top" usebox="none">
27394 \begin_inset Text
27395
27396 \begin_layout Plain Layout
27397 subfig
27398 \end_layout
27399
27400 \end_inset
27401 </cell>
27402 <cell alignment="center" valignment="top" usebox="none">
27403 \begin_inset Text
27404
27405 \begin_layout Plain Layout
27406 units
27407 \end_layout
27408
27409 \end_inset
27410 </cell>
27411 <cell alignment="center" valignment="top" usebox="none">
27412 \begin_inset Text
27413
27414 \begin_layout Plain Layout
27415
27416 \end_layout
27417
27418 \end_inset
27419 </cell>
27420 </row>
27421 <row>
27422 <cell alignment="left" valignment="top" usebox="none">
27423 \begin_inset Text
27424
27425 \begin_layout Plain Layout
27426 ascii
27427 \end_layout
27428
27429 \end_inset
27430 </cell>
27431 <cell alignment="left" valignment="top" usebox="none">
27432 \begin_inset Text
27433
27434 \begin_layout Plain Layout
27435 enumitem
27436 \end_layout
27437
27438 \end_inset
27439 </cell>
27440 <cell alignment="left" valignment="top" usebox="none">
27441 \begin_inset Text
27442
27443 \begin_layout Plain Layout
27444 ifthen
27445 \end_layout
27446
27447 \end_inset
27448 </cell>
27449 <cell alignment="left" valignment="top" usebox="none">
27450 \begin_inset Text
27451
27452 \begin_layout Plain Layout
27453 mhchem
27454 \end_layout
27455
27456 \end_inset
27457 </cell>
27458 <cell alignment="center" valignment="top" usebox="none">
27459 \begin_inset Text
27460
27461 \begin_layout Plain Layout
27462 pxfonts
27463 \end_layout
27464
27465 \end_inset
27466 </cell>
27467 <cell alignment="center" valignment="top" usebox="none">
27468 \begin_inset Text
27469
27470 \begin_layout Plain Layout
27471 subscript
27472 \end_layout
27473
27474 \end_inset
27475 </cell>
27476 <cell alignment="center" valignment="top" usebox="none">
27477 \begin_inset Text
27478
27479 \begin_layout Plain Layout
27480 url
27481 \end_layout
27482
27483 \end_inset
27484 </cell>
27485 <cell alignment="center" valignment="top" usebox="none">
27486 \begin_inset Text
27487
27488 \begin_layout Plain Layout
27489
27490 \end_layout
27491
27492 \end_inset
27493 </cell>
27494 </row>
27495 <row>
27496 <cell alignment="left" valignment="top" usebox="none">
27497 \begin_inset Text
27498
27499 \begin_layout Plain Layout
27500 bbding
27501 \end_layout
27502
27503 \end_inset
27504 </cell>
27505 <cell alignment="left" valignment="top" usebox="none">
27506 \begin_inset Text
27507
27508 \begin_layout Plain Layout
27509 esint
27510 \end_layout
27511
27512 \end_inset
27513 </cell>
27514 <cell alignment="left" valignment="top" usebox="none">
27515 \begin_inset Text
27516
27517 \begin_layout Plain Layout
27518 jurabib
27519 \end_layout
27520
27521 \end_inset
27522 </cell>
27523 <cell alignment="left" valignment="top" usebox="none">
27524 \begin_inset Text
27525
27526 \begin_layout Plain Layout
27527 multicol
27528 \end_layout
27529
27530 \end_inset
27531 </cell>
27532 <cell alignment="center" valignment="top" usebox="none">
27533 \begin_inset Text
27534
27535 \begin_layout Plain Layout
27536 refstyle
27537 \end_layout
27538
27539 \end_inset
27540 </cell>
27541 <cell alignment="center" valignment="top" usebox="none">
27542 \begin_inset Text
27543
27544 \begin_layout Plain Layout
27545 textcomp
27546 \end_layout
27547
27548 \end_inset
27549 </cell>
27550 <cell alignment="center" valignment="top" usebox="none">
27551 \begin_inset Text
27552
27553 \begin_layout Plain Layout
27554 varioref
27555 \end_layout
27556
27557 \end_inset
27558 </cell>
27559 <cell alignment="center" valignment="top" usebox="none">
27560 \begin_inset Text
27561
27562 \begin_layout Plain Layout
27563
27564 \end_layout
27565
27566 \end_inset
27567 </cell>
27568 </row>
27569 <row>
27570 <cell alignment="center" valignment="top" usebox="none">
27571 \begin_inset Text
27572
27573 \begin_layout Plain Layout
27574 bm
27575 \end_layout
27576
27577 \end_inset
27578 </cell>
27579 <cell alignment="center" valignment="top" usebox="none">
27580 \begin_inset Text
27581
27582 \begin_layout Plain Layout
27583 fancybox
27584 \end_layout
27585
27586 \end_inset
27587 </cell>
27588 <cell alignment="center" valignment="top" usebox="none">
27589 \begin_inset Text
27590
27591 \begin_layout Plain Layout
27592 latexsym
27593 \end_layout
27594
27595 \end_inset
27596 </cell>
27597 <cell alignment="center" valignment="top" usebox="none">
27598 \begin_inset Text
27599
27600 \begin_layout Plain Layout
27601 multirow
27602 \end_layout
27603
27604 \end_inset
27605 </cell>
27606 <cell alignment="center" valignment="top" usebox="none">
27607 \begin_inset Text
27608
27609 \begin_layout Plain Layout
27610 rotating
27611 \end_layout
27612
27613 \end_inset
27614 </cell>
27615 <cell alignment="center" valignment="top" usebox="none">
27616 \begin_inset Text
27617
27618 \begin_layout Plain Layout
27619 textgreek
27620 \end_layout
27621
27622 \end_inset
27623 </cell>
27624 <cell alignment="center" valignment="top" usebox="none">
27625 \begin_inset Text
27626
27627 \begin_layout Plain Layout
27628 verbatim
27629 \end_layout
27630
27631 \end_inset
27632 </cell>
27633 <cell alignment="center" valignment="top" usebox="none">
27634 \begin_inset Text
27635
27636 \begin_layout Plain Layout
27637
27638 \end_layout
27639
27640 \end_inset
27641 </cell>
27642 </row>
27643 </lyxtabular>
27644
27645 \end_inset
27646
27647
27648 \end_layout
27649
27650 \begin_layout Chapter
27651 Names of available colors to be used in layouts
27652 \begin_inset CommandInset label
27653 LatexCommand label
27654 name "chap:Names-of-colors"
27655
27656 \end_inset
27657
27658
27659 \end_layout
27660
27661 \begin_layout Standard
27662 The colors listed below are the standard colors and those that you can adjust
27663  in the \SpecialChar LyX
27664  preferences.
27665 \end_layout
27666
27667 \begin_layout Section
27668 Color functions
27669 \end_layout
27670
27671 \begin_layout Standard
27672 The following are no real colors, but rather act on color definitions:
27673 \end_layout
27674
27675 \begin_layout Description
27676 ignore The color is ignored
27677 \end_layout
27678
27679 \begin_layout Description
27680 inherit The color is inherited
27681 \end_layout
27682
27683 \begin_layout Description
27684 none
27685 \family roman
27686 \series medium
27687 \shape up
27688 \size normal
27689 \emph off
27690 \bar no
27691 \strikeout off
27692 \uuline off
27693 \uwave off
27694 \noun off
27695 \color none
27696  No particular color – clear or default
27697 \end_layout
27698
27699 \begin_layout Section
27700 Static colors
27701 \end_layout
27702
27703 \begin_layout Standard
27704 These are fixed colors that cannot me customized:
27705 \end_layout
27706
27707 \begin_layout Description
27708 black
27709 \end_layout
27710
27711 \begin_layout Description
27712 white
27713 \end_layout
27714
27715 \begin_layout Description
27716 blue
27717 \end_layout
27718
27719 \begin_layout Description
27720 brown
27721 \end_layout
27722
27723 \begin_layout Description
27724 cyan
27725 \end_layout
27726
27727 \begin_layout Description
27728 darkgray
27729 \end_layout
27730
27731 \begin_layout Description
27732 gray
27733 \end_layout
27734
27735 \begin_layout Description
27736 green
27737 \end_layout
27738
27739 \begin_layout Description
27740 lightgray
27741 \end_layout
27742
27743 \begin_layout Description
27744 lime
27745 \end_layout
27746
27747 \begin_layout Description
27748 magenta
27749 \end_layout
27750
27751 \begin_layout Description
27752 olive
27753 \end_layout
27754
27755 \begin_layout Description
27756 orange
27757 \end_layout
27758
27759 \begin_layout Description
27760 pink
27761 \end_layout
27762
27763 \begin_layout Description
27764 purple
27765 \end_layout
27766
27767 \begin_layout Description
27768 red
27769 \end_layout
27770
27771 \begin_layout Description
27772 teal
27773 \end_layout
27774
27775 \begin_layout Description
27776 violet
27777 \end_layout
27778
27779 \begin_layout Description
27780 yellow
27781 \end_layout
27782
27783 \begin_layout Section
27784 Dynamic colors
27785 \end_layout
27786
27787 \begin_layout Standard
27788 These are the colors allocated to specific elements in 
27789 \begin_inset Info
27790 type  "menu"
27791 arg   "dialog-show prefs"
27792 \end_inset
27793
27794 :
27795 \end_layout
27796
27797 \begin_layout Description
27798 added_space Added space color
27799 \end_layout
27800
27801 \begin_layout Description
27802 addedtext Added text color
27803 \end_layout
27804
27805 \begin_layout Description
27806 appendix Appendix marker color
27807 \end_layout
27808
27809 \begin_layout Description
27810 background Background color
27811 \end_layout
27812
27813 \begin_layout Description
27814 bottomarea Bottom area color
27815 \end_layout
27816
27817 \begin_layout Description
27818 branchlabel Label color for branches
27819 \end_layout
27820
27821 \begin_layout Description
27822 buttonbg Color used for button background
27823 \end_layout
27824
27825 \begin_layout Description
27826 buttonframe Color for inset button frames
27827 \end_layout
27828
27829 \begin_layout Description
27830 buttonhoverbg Color used for button background under focus
27831 \end_layout
27832
27833 \begin_layout Description
27834 changebar Changebar color
27835 \end_layout
27836
27837 \begin_layout Description
27838 changedtextauthor1 Changed text color author 1
27839 \end_layout
27840
27841 \begin_layout Description
27842 changedtextauthor2 Changed text color author 2
27843 \end_layout
27844
27845 \begin_layout Description
27846 changedtextauthor3 Changed text color author 3
27847 \end_layout
27848
27849 \begin_layout Description
27850 changedtextauthor4 Changed text color author 4
27851 \end_layout
27852
27853 \begin_layout Description
27854 changedtextauthor5 Changed text color author 5
27855 \end_layout
27856
27857 \begin_layout Description
27858 collapsible Collapsible insets text color
27859 \end_layout
27860
27861 \begin_layout Description
27862 collapsibleframe Collapsible insets framecolor
27863 \end_layout
27864
27865 \begin_layout Description
27866 command Text color for command insets
27867 \end_layout
27868
27869 \begin_layout Description
27870 commandbg Background color for command insets
27871 \end_layout
27872
27873 \begin_layout Description
27874 commandframe Frame color for command insets
27875 \end_layout
27876
27877 \begin_layout Description
27878 commentbg Background color of comments
27879 \end_layout
27880
27881 \begin_layout Description
27882 commentlabel Label color for comments
27883 \end_layout
27884
27885 \begin_layout Description
27886 cursor Cursor color
27887 \end_layout
27888
27889 \begin_layout Description
27890 deletedtext Deleted text color
27891 \end_layout
27892
27893 \begin_layout Description
27894 deletedtextmodifier Deleted text modifying color
27895 \end_layout
27896
27897 \begin_layout Description
27898 depthbar Color for the depth bars in the margin
27899 \end_layout
27900
27901 \begin_layout Description
27902 eolmarker End of line marker color
27903 \end_layout
27904
27905 \begin_layout Description
27906 error Color of the \SpecialChar LaTeX
27907  error box
27908 \end_layout
27909
27910 \begin_layout Description
27911 footlabel Label color for footnotes
27912 \end_layout
27913
27914 \begin_layout Description
27915 foreground Foreground color
27916 \end_layout
27917
27918 \begin_layout Description
27919 graphicsbg Graphics inset background color
27920 \end_layout
27921
27922 \begin_layout Description
27923 greyedoutbg Background color of greyedout inset
27924 \end_layout
27925
27926 \begin_layout Description
27927 greyedoutlabel Label color for greyedout insets
27928 \end_layout
27929
27930 \begin_layout Description
27931 greyedouttext Color for greyedout inset text
27932 \end_layout
27933
27934 \begin_layout Description
27935 indexlabel Label color for index insets
27936 \end_layout
27937
27938 \begin_layout Description
27939 inlinecompletion Inline completion color
27940 \end_layout
27941
27942 \begin_layout Description
27943 insetbg Inset marker background color
27944 \end_layout
27945
27946 \begin_layout Description
27947 insetframe Inset marker frame color
27948 \end_layout
27949
27950 \begin_layout Description
27951 language Color for marking foreign language words
27952 \end_layout
27953
27954 \begin_layout Description
27955 latex Text color in \SpecialChar LaTeX
27956  mode
27957 \end_layout
27958
27959 \begin_layout Description
27960 listingsbg Background color of listings inset
27961 \end_layout
27962
27963 \begin_layout Description
27964 marginlabel Label color for margin notes
27965 \end_layout
27966
27967 \begin_layout Description
27968 math Math inset text color
27969 \end_layout
27970
27971 \begin_layout Description
27972 mathbg Math inset background color
27973 \end_layout
27974
27975 \begin_layout Description
27976 mathcorners Math inset frame color not under focus
27977 \end_layout
27978
27979 \begin_layout Description
27980 mathframe Math inset frame color under focus
27981 \end_layout
27982
27983 \begin_layout Description
27984 mathline Math line color
27985 \end_layout
27986
27987 \begin_layout Description
27988 mathmacrobg Macro math inset background color
27989 \end_layout
27990
27991 \begin_layout Description
27992 mathmacroblend Macro math blended color
27993 \end_layout
27994
27995 \begin_layout Description
27996 mathmacroframe Macro math frame color
27997 \end_layout
27998
27999 \begin_layout Description
28000 mathmacrohoverbg Macro math inset background color hovered
28001 \end_layout
28002
28003 \begin_layout Description
28004 mathmacrolabel Macro math label color
28005 \end_layout
28006
28007 \begin_layout Description
28008 mathmacronewarg Macro template color for new parameters
28009 \end_layout
28010
28011 \begin_layout Description
28012 mathmacrooldarg Macro template color for old parameters
28013 \end_layout
28014
28015 \begin_layout Description
28016 newpage New page color
28017 \end_layout
28018
28019 \begin_layout Description
28020 nonunique_inlinecompletion Inline completion color for the non-unique part
28021 \end_layout
28022
28023 \begin_layout Description
28024 notebg Background color of notes
28025 \end_layout
28026
28027 \begin_layout Description
28028 notelabel Label color for notes
28029 \end_layout
28030
28031 \begin_layout Description
28032 pagebreak Page break/line break color
28033 \end_layout
28034
28035 \begin_layout Description
28036 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28037 \end_layout
28038
28039 \begin_layout Description
28040 phantomtext Text color for phantom insets
28041 \end_layout
28042
28043 \begin_layout Description
28044 preview The color used for previews
28045 \end_layout
28046
28047 \begin_layout Description
28048 previewframe Preview frame color
28049 \end_layout
28050
28051 \begin_layout Description
28052 regexpframe Color for regexp frame
28053 \end_layout
28054
28055 \begin_layout Description
28056 scroll Color that indicates when a row can be scrolled 
28057 \end_layout
28058
28059 \begin_layout Description
28060 selection Background color of selected text
28061 \end_layout
28062
28063 \begin_layout Description
28064 selectiontext Foreground color of selected text
28065 \end_layout
28066
28067 \begin_layout Description
28068 shadedbg Background color of shaded box
28069 \end_layout
28070
28071 \begin_layout Description
28072 special Special chars text color
28073 \end_layout
28074
28075 \begin_layout Description
28076 tabularline Table line color
28077 \end_layout
28078
28079 \begin_layout Description
28080 tabularonoffline Table line color
28081 \end_layout
28082
28083 \begin_layout Description
28084 urllabel Label color for URL insets
28085 \end_layout
28086
28087 \begin_layout Description
28088 urltext Color for URL inset text
28089 \end_layout
28090
28091 \end_body
28092 \end_document