]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Add optional flavor flag to needaux
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding auto
48 \fontencoding global
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \notefontcolor #0000ff
106 \branch OutDated
107 \selected 0
108 \filename_suffix 0
109 \color #f5fae7
110 \end_branch
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tracking_changes true
128 \output_changes false
129 \html_math_output 0
130 \html_css_as_file 0
131 \html_be_strict true
132 \author -712698321 "Jürgen Spitzmüller"
133 \end_header
134
135 \begin_body
136
137 \begin_layout Title
138 Customizing \SpecialChar LyX
139 : Features for the Advanced User
140 \end_layout
141
142 \begin_layout Author
143 by the \SpecialChar LyX
144  Team
145 \begin_inset Foot
146 status collapsed
147
148 \begin_layout Plain Layout
149 \noindent
150 If you have comments or error corrections, please send them to the \SpecialChar LyX
151  Documentatio
152 n mailing list, 
153 \begin_inset CommandInset href
154 LatexCommand href
155 target "lyx-docs@lists.lyx.org"
156 type "mailto:"
157 literal "false"
158
159 \end_inset
160
161 .
162  Include 
163 \begin_inset Quotes eld
164 \end_inset
165
166 [Customization]
167 \begin_inset Quotes erd
168 \end_inset
169
170  in the subject header, and please cc the current maintainer of this file,
171  Richard Heck <rgheck@comcast.net>.
172 \end_layout
173
174 \end_inset
175
176
177 \begin_inset Newline newline
178 \end_inset
179
180
181 \begin_inset Newline newline
182 \end_inset
183
184 Version 2.3.x 
185 \end_layout
186
187 \begin_layout Standard
188 \begin_inset CommandInset toc
189 LatexCommand tableofcontents
190
191 \end_inset
192
193
194 \end_layout
195
196 \begin_layout Standard
197 \begin_inset Note Note
198 status open
199
200 \begin_layout Plain Layout
201 Please use change tracking when modifying this document.
202  This makes it easier for our translators to recognize things that have
203  been changed, and it helps the maintainer keep up-to-date with what's been
204  done.
205 \end_layout
206
207 \end_inset
208
209
210 \end_layout
211
212 \begin_layout Chapter
213 Introduction
214 \end_layout
215
216 \begin_layout Standard
217 This manual covers the customization features present in \SpecialChar LyX
218 .
219  In it, we discuss issues like keyboard shortcuts, screen previewing options,
220  printer options, sending commands to \SpecialChar LyX
221  via the \SpecialChar LyX
222  Server, internationalization,
223  installing new \SpecialChar LaTeX
224  classes and \SpecialChar LyX
225  layouts, etc.
226  We can't possibly hope to touch on everything you can change—our developers
227  add new features faster than we can document them—but we will explain the
228  most common customizations and hopefully point you in the right direction
229  for some of the more obscure ones.
230 \end_layout
231
232 \begin_layout Standard
233 \begin_inset Branch OutDated
234 inverted 0
235 status collapsed
236
237 \begin_layout Standard
238 Information from previous versions of this document that now seems to be
239  outdated is contained in the OutDated branch of this document.
240  By default, this information will not appear in the \SpecialChar LaTeX
241  output.
242 \end_layout
243
244 \end_inset
245
246
247 \end_layout
248
249 \begin_layout Chapter
250 \SpecialChar LyX
251  configuration files
252 \end_layout
253
254 \begin_layout Standard
255 This chapter aims to help you to find your way through the \SpecialChar LyX
256  configuration
257  files.
258  Before continuing to read this chapter, you should find out where your
259  \SpecialChar LyX
260  library and user directories are by using 
261 \begin_inset Flex Noun
262 status collapsed
263
264 \begin_layout Plain Layout
265 Help\SpecialChar menuseparator
266 About
267 \begin_inset space ~
268 \end_inset
269
270 LyX
271 \end_layout
272
273 \end_inset
274
275 .
276  The library directory is the place where \SpecialChar LyX
277  places its system-wide configuration
278  files; the user directory is where you can place your modified versions.
279  We will call the former 
280 \begin_inset Flex Code
281 status collapsed
282
283 \begin_layout Plain Layout
284 LyXDir
285 \end_layout
286
287 \end_inset
288
289  and the latter 
290 \begin_inset Flex Noun
291 status collapsed
292
293 \begin_layout Plain Layout
294 UserDir
295 \end_layout
296
297 \end_inset
298
299  in the remainder of this document.
300  
301 \end_layout
302
303 \begin_layout Section
304 What's in 
305 \begin_inset Flex Code
306 status collapsed
307
308 \begin_layout Plain Layout
309 LyXDir
310 \end_layout
311
312 \end_inset
313
314 ?
315 \end_layout
316
317 \begin_layout Standard
318 \begin_inset Flex Code
319 status collapsed
320
321 \begin_layout Plain Layout
322 LyXDir
323 \end_layout
324
325 \end_inset
326
327  and its sub-directories contain a number of files and that can be used
328  to customize \SpecialChar LyX
329 's behavior.
330  You can change many of these files from within \SpecialChar LyX
331  itself through the 
332 \begin_inset Flex Noun
333 status collapsed
334
335 \begin_layout Plain Layout
336 Tools\SpecialChar menuseparator
337 Preferences
338 \end_layout
339
340 \end_inset
341
342  dialog.
343  Most customization that you will want to do in \SpecialChar LyX
344  is possible through this
345  dialog.
346  However, many other inner aspects of \SpecialChar LyX
347  can be customized by modifying the
348  files in 
349 \begin_inset Flex Code
350 status collapsed
351
352 \begin_layout Plain Layout
353 LyXDir
354 \end_layout
355
356 \end_inset
357
358 .
359  These files fall in different categories, described in the following subsection
360 s.
361 \end_layout
362
363 \begin_layout Subsection
364 Automatically generated files
365 \end_layout
366
367 \begin_layout Standard
368 The files, which are to be found in 
369 \begin_inset Flex Noun
370 status collapsed
371
372 \begin_layout Plain Layout
373 UserDir
374 \end_layout
375
376 \end_inset
377
378 , are generated when you configure \SpecialChar LyX
379 .
380  They contain various default values that are guessed by inspection.
381  In general, it is not a good idea to modify them, since they might be overwritt
382 en at any time.
383 \end_layout
384
385 \begin_layout Labeling
386 \labelwidthstring 00.00.0000
387 \begin_inset Flex Code
388 status collapsed
389
390 \begin_layout Plain Layout
391 lyxrc.defaults
392 \end_layout
393
394 \end_inset
395
396  contains defaults for various commands.
397 \end_layout
398
399 \begin_layout Labeling
400 \labelwidthstring 00.00.0000
401 \begin_inset Flex Code
402 status collapsed
403
404 \begin_layout Plain Layout
405 packages.lst
406 \end_layout
407
408 \end_inset
409
410  contains the list of packages that have been recognized by \SpecialChar LyX
411 .
412  It is currently unused by the \SpecialChar LyX
413  program itself, but the information extracted,
414  and more, is made available with 
415 \begin_inset Flex Noun
416 status collapsed
417
418 \begin_layout Plain Layout
419 Help\SpecialChar menuseparator
420 \SpecialChar LaTeX
421
422 \begin_inset space ~
423 \end_inset
424
425 Configuration
426 \end_layout
427
428 \end_inset
429
430 .
431 \end_layout
432
433 \begin_layout Labeling
434 \labelwidthstring 00.00.0000
435 \begin_inset Flex Code
436 status collapsed
437
438 \begin_layout Plain Layout
439 textclass.lst
440 \end_layout
441
442 \end_inset
443
444  the list of text classes that have been found in your 
445 \begin_inset Flex Code
446 status collapsed
447
448 \begin_layout Plain Layout
449 layout/
450 \end_layout
451
452 \end_inset
453
454  directories, along with the associated \SpecialChar LaTeX
455  document class and their description.
456 \end_layout
457
458 \begin_layout Labeling
459 \labelwidthstring 00.00.0000
460 \begin_inset Flex Code
461 status collapsed
462
463 \begin_layout Plain Layout
464 lyxmodules.lst
465 \end_layout
466
467 \end_inset
468
469  the list of layout modules found in your 
470 \begin_inset Flex Code
471 status collapsed
472
473 \begin_layout Plain Layout
474 layout/
475 \end_layout
476
477 \end_inset
478
479  directories
480 \end_layout
481
482 \begin_layout Labeling
483 \labelwidthstring 00.00.0000
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 *files.lst
489 \end_layout
490
491 \end_inset
492
493  lists of various sorts of \SpecialChar LaTeX
494 -related files found on your system
495 \end_layout
496
497 \begin_layout Labeling
498 \labelwidthstring 00.00.0000
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503 doc/\SpecialChar LaTeX
504 Config.lyx
505 \end_layout
506
507 \end_inset
508
509  is automatically generated during configuration from the file 
510 \begin_inset Flex Code
511 status collapsed
512
513 \begin_layout Plain Layout
514 \SpecialChar LaTeX
515 Config.lyx.in
516 \end_layout
517
518 \end_inset
519
520 .
521  It contains information on your \SpecialChar LaTeX
522  configuration.
523 \end_layout
524
525 \begin_layout Subsection
526 Directories
527 \end_layout
528
529 \begin_layout Standard
530 These directories are duplicated between 
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 LyXDir
536 \end_layout
537
538 \end_inset
539
540  and 
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 UserDir
546 \end_layout
547
548 \end_inset
549
550 .
551  If a particular files exists in both places, the one in 
552 \begin_inset Flex Code
553 status collapsed
554
555 \begin_layout Plain Layout
556 UserDir
557 \end_layout
558
559 \end_inset
560
561  will be used.
562 \end_layout
563
564 \begin_layout Labeling
565 \labelwidthstring 00.00.0000
566 \begin_inset Flex Code
567 status collapsed
568
569 \begin_layout Plain Layout
570 bind/
571 \end_layout
572
573 \end_inset
574
575  this directory contains files with the extension 
576 \begin_inset Flex Code
577 status collapsed
578
579 \begin_layout Plain Layout
580 .bind
581 \end_layout
582
583 \end_inset
584
585  that define the keybindings used in \SpecialChar LyX
586 .
587  If there exists an internationalized version of the bind file named 
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 $LANG_xxx.bind
593 \end_layout
594
595 \end_inset
596
597 , that will be used first.
598 \end_layout
599
600 \begin_layout Labeling
601 \labelwidthstring 00.00.0000
602 \begin_inset Flex Code
603 status collapsed
604
605 \begin_layout Plain Layout
606 citeengines/
607 \end_layout
608
609 \end_inset
610
611  contains files with the extension 
612 \begin_inset Flex Code
613 status collapsed
614
615 \begin_layout Plain Layout
616 .citeengine
617 \end_layout
618
619 \end_inset
620
621  which define the diverse citation possibilities (natbib, biblatex etc.).
622  See 
623 \begin_inset CommandInset ref
624 LatexCommand ref
625 reference "subsec:Cite-Engine-Files"
626 plural "false"
627 caps "false"
628 noprefix "false"
629
630 \end_inset
631
632  for details.
633 \end_layout
634
635 \begin_layout Labeling
636 \labelwidthstring 00.00.0000
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641 clipart/
642 \end_layout
643
644 \end_inset
645
646  contains graphics files that can be included in documents.
647  
648 \end_layout
649
650 \begin_layout Labeling
651 \labelwidthstring 00.00.0000
652 \begin_inset Flex Code
653 status collapsed
654
655 \begin_layout Plain Layout
656 doc/
657 \end_layout
658
659 \end_inset
660
661  contains \SpecialChar LyX
662  documentation files (including the one you are currently reading).
663  The file 
664 \begin_inset Flex Code
665 status collapsed
666
667 \begin_layout Plain Layout
668 \SpecialChar LaTeX
669 Config.lyx
670 \end_layout
671
672 \end_inset
673
674  deserves special attention, as noted above.
675  The internationalized help docs are in subdirectories 
676 \begin_inset Flex Code
677 status collapsed
678
679 \begin_layout Plain Layout
680 doc/xx
681 \end_layout
682
683 \end_inset
684
685  where 
686 \begin_inset Quotes eld
687 \end_inset
688
689 xx
690 \begin_inset Quotes erd
691 \end_inset
692
693  is the ISO language code.
694  See 
695 \begin_inset CommandInset ref
696 LatexCommand ref
697 reference "cha:Internationalizing-LyX"
698
699 \end_inset
700
701  for details.
702 \end_layout
703
704 \begin_layout Labeling
705 \labelwidthstring 00.00.0000
706 \begin_inset Flex Code
707 status collapsed
708
709 \begin_layout Plain Layout
710 examples/
711 \end_layout
712
713 \end_inset
714
715  contains example files that explain how to use some features.
716  In the file browser, press the 
717 \begin_inset Flex Noun
718 status collapsed
719
720 \begin_layout Plain Layout
721 Examples
722 \end_layout
723
724 \end_inset
725
726  button to get there.
727 \end_layout
728
729 \begin_layout Labeling
730 \labelwidthstring 00.00.0000
731 \begin_inset Flex Code
732 status collapsed
733
734 \begin_layout Plain Layout
735 images/
736 \end_layout
737
738 \end_inset
739
740  contains image files that are used by the 
741 \begin_inset Flex Noun
742 status collapsed
743
744 \begin_layout Plain Layout
745 Document
746 \end_layout
747
748 \end_inset
749
750  dialog.
751  In addition, it also contains the individual icons used in the toolbar
752  and the banners that can be shown when \SpecialChar LyX
753  is launched.
754 \end_layout
755
756 \begin_layout Labeling
757 \labelwidthstring 00.00.0000
758 \begin_inset Flex Code
759 status collapsed
760
761 \begin_layout Plain Layout
762 kbd/
763 \end_layout
764
765 \end_inset
766
767  contains keyboard keymapping files.
768  See 
769 \begin_inset CommandInset ref
770 LatexCommand ref
771 reference "sec:International-Keymap-Stuff"
772
773 \end_inset
774
775  for details.
776 \end_layout
777
778 \begin_layout Labeling
779 \labelwidthstring 00.00.0000
780 \begin_inset Flex Code
781 status collapsed
782
783 \begin_layout Plain Layout
784 layouts/
785 \end_layout
786
787 \end_inset
788
789  contains the text class and module files described in 
790 \begin_inset CommandInset ref
791 LatexCommand ref
792 reference "cha:Installing-New-Document"
793
794 \end_inset
795
796 .
797 \end_layout
798
799 \begin_layout Labeling
800 \labelwidthstring 00.00.0000
801 \begin_inset Flex Code
802 status collapsed
803
804 \begin_layout Plain Layout
805 lyx2lyx
806 \end_layout
807
808 \end_inset
809
810  contains the 
811 \begin_inset Flex Code
812 status collapsed
813
814 \begin_layout Plain Layout
815 lyx2lyx
816 \end_layout
817
818 \end_inset
819
820  Python scripts used to convert between \SpecialChar LyX
821  versions.
822  These can be run from the command line if, say, you want to batch-convert
823  files.
824 \end_layout
825
826 \begin_layout Labeling
827 \labelwidthstring 00.00.0000
828 \begin_inset Flex Code
829 status collapsed
830
831 \begin_layout Plain Layout
832 scripts/
833 \end_layout
834
835 \end_inset
836
837  contains some files that demonstrate the capabilities of the 
838 \begin_inset Flex Noun
839 status collapsed
840
841 \begin_layout Plain Layout
842 External
843 \begin_inset space ~
844 \end_inset
845
846 Template
847 \end_layout
848
849 \end_inset
850
851  feature.
852  Also contains some scripts used by \SpecialChar LyX
853  itself.
854 \end_layout
855
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
859 status collapsed
860
861 \begin_layout Plain Layout
862 templates/
863 \end_layout
864
865 \end_inset
866
867  contains the standard \SpecialChar LyX
868  template files described in 
869 \begin_inset CommandInset ref
870 LatexCommand ref
871 reference "subsec:Creating-Templates"
872
873 \end_inset
874
875 .
876 \end_layout
877
878 \begin_layout Labeling
879 \labelwidthstring 00.00.0000
880 \begin_inset Flex Code
881 status collapsed
882
883 \begin_layout Plain Layout
884 ui/
885 \end_layout
886
887 \end_inset
888
889  contains files with the extension 
890 \begin_inset Flex Code
891 status collapsed
892
893 \begin_layout Plain Layout
894 .ui
895 \end_layout
896
897 \end_inset
898
899  that define the user interface to \SpecialChar LyX
900 .
901  That is, the files define which items appear in which menus and the items
902  appearing on the toolbar.
903 \end_layout
904
905 \begin_layout Labeling
906 \labelwidthstring 00.00.0000
907 \begin_inset Flex Code
908 status collapsed
909
910 \begin_layout Plain Layout
911 xtemplates/
912 \end_layout
913
914 \end_inset
915
916  contains files with the extension 
917 \begin_inset Flex Code
918 status collapsed
919
920 \begin_layout Plain Layout
921 .xtemplate
922 \end_layout
923
924 \end_inset
925
926  which define the templates for the insertion of external material to a
927  \SpecialChar LyX
928  document; see 
929 \begin_inset CommandInset ref
930 LatexCommand ref
931 reference "chap:Including-External-Material"
932
933 \end_inset
934
935 .
936 \end_layout
937
938 \begin_layout Subsection
939 Files you don't want to modify
940 \end_layout
941
942 \begin_layout Standard
943 These files are used internally by \SpecialChar LyX
944  and you generally do not need to modify
945  them unless you are a developer.
946 \end_layout
947
948 \begin_layout Labeling
949 \labelwidthstring 00.00.0000
950 \begin_inset Flex Code
951 status collapsed
952
953 \begin_layout Plain Layout
954 CREDITS
955 \end_layout
956
957 \end_inset
958
959  this file contains the list of \SpecialChar LyX
960  developers.
961  The contents are displayed with the menu entry 
962 \begin_inset Flex Noun
963 status collapsed
964
965 \begin_layout Plain Layout
966 Help\SpecialChar menuseparator
967 About
968 \begin_inset space ~
969 \end_inset
970
971 LyX
972 \end_layout
973
974 \end_inset
975
976 .
977 \end_layout
978
979 \begin_layout Labeling
980 \labelwidthstring 00.00.0000
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 chkconfig.ltx
986 \end_layout
987
988 \end_inset
989
990  this is a \SpecialChar LaTeX
991  script used during the configuration process.
992  Do not run directly.
993 \end_layout
994
995 \begin_layout Labeling
996 \labelwidthstring 00.00.0000
997 \begin_inset Flex Code
998 status collapsed
999
1000 \begin_layout Plain Layout
1001 configure.py
1002 \end_layout
1003
1004 \end_inset
1005
1006  this is a Python script that is used to re-configure \SpecialChar LyX
1007 .
1008  It creates configuration files in the directory it was run from.
1009 \end_layout
1010
1011 \begin_layout Subsection
1012 Other files needing a line or two
1013 \end_layout
1014
1015 \begin_layout Labeling
1016 \labelwidthstring 00.00.0000
1017 \begin_inset Flex Code
1018 status collapsed
1019
1020 \begin_layout Plain Layout
1021 encodings
1022 \end_layout
1023
1024 \end_inset
1025
1026  this contains tables describing how different character encodings can be
1027  mapped to Unicode
1028 \end_layout
1029
1030 \begin_layout Labeling
1031 \labelwidthstring 00.00.0000
1032 \begin_inset Flex Code
1033 status collapsed
1034
1035 \begin_layout Plain Layout
1036 languages
1037 \end_layout
1038
1039 \end_inset
1040
1041  this file contains a list of all the languages currently supported by \SpecialChar LyX
1042 .
1043 \end_layout
1044
1045 \begin_layout Labeling
1046 \labelwidthstring 00.00.0000
1047 \begin_inset Flex Code
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051 latexfonts
1052 \end_layout
1053
1054 \end_inset
1055
1056  contains information about the supported fonts.
1057 \end_layout
1058
1059 \begin_layout Labeling
1060 \labelwidthstring 00.00.0000
1061 \begin_inset Flex Code
1062 status collapsed
1063
1064 \begin_layout Plain Layout
1065 layouttranslations
1066 \end_layout
1067
1068 \end_inset
1069
1070  this file contains translations for internationalized paragraph styles
1071  (see 
1072 \begin_inset CommandInset ref
1073 LatexCommand ref
1074 reference "subsec:I18n"
1075
1076 \end_inset
1077
1078 ).
1079 \end_layout
1080
1081 \begin_layout Labeling
1082 \labelwidthstring 00.00.0000
1083 \begin_inset Flex Code
1084 status collapsed
1085
1086 \begin_layout Plain Layout
1087 unicodesymbols
1088 \end_layout
1089
1090 \end_inset
1091
1092  this file contains information about Unicode-encoded glyphs and the way
1093  they are supported by \SpecialChar LyX
1094  via \SpecialChar LaTeX
1095 .
1096 \end_layout
1097
1098 \begin_layout Section
1099 Your local configuration directory
1100 \end_layout
1101
1102 \begin_layout Standard
1103 Even if you are using \SpecialChar LyX
1104  as an unprivileged user, you might want to change
1105  \SpecialChar LyX
1106  configuration for your own use.
1107  The 
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112 UserDir
1113 \end_layout
1114
1115 \end_inset
1116
1117  directory contains all your personal configuration files.
1118  This is the directory described as 
1119 \begin_inset Quotes eld
1120 \end_inset
1121
1122 user directory
1123 \begin_inset Quotes erd
1124 \end_inset
1125
1126  in 
1127 \begin_inset Flex Noun
1128 status collapsed
1129
1130 \begin_layout Plain Layout
1131 Help\SpecialChar menuseparator
1132 About
1133 \begin_inset space ~
1134 \end_inset
1135
1136 LyX
1137 \end_layout
1138
1139 \end_inset
1140
1141 .
1142  This directory is used as a mirror of 
1143 \begin_inset Flex Code
1144 status collapsed
1145
1146 \begin_layout Plain Layout
1147 LyXDir
1148 \end_layout
1149
1150 \end_inset
1151
1152 , which means that every file in 
1153 \begin_inset Flex Code
1154 status collapsed
1155
1156 \begin_layout Plain Layout
1157 UserDir
1158 \end_layout
1159
1160 \end_inset
1161
1162  is a replacement for the corresponding file in 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 LyXDir
1168 \end_layout
1169
1170 \end_inset
1171
1172 .
1173  Any configuration file described in the above sections can be placed either
1174  in the system-wide directory, in which case it will affect all users, or
1175  in your local directory for your own use.
1176 \end_layout
1177
1178 \begin_layout Standard
1179 To make things clearer, let's provide a few examples:
1180 \end_layout
1181
1182 \begin_layout Itemize
1183 The preferences set in the 
1184 \begin_inset Flex Noun
1185 status collapsed
1186
1187 \begin_layout Plain Layout
1188 Tools\SpecialChar menuseparator
1189 Preferences
1190 \end_layout
1191
1192 \end_inset
1193
1194  dialog are saved to a file 
1195 \begin_inset Flex Code
1196 status collapsed
1197
1198 \begin_layout Plain Layout
1199 preferences
1200 \end_layout
1201
1202 \end_inset
1203
1204  in 
1205 \begin_inset Flex Code
1206 status collapsed
1207
1208 \begin_layout Plain Layout
1209 UserDir
1210 \end_layout
1211
1212 \end_inset
1213
1214 .
1215 \end_layout
1216
1217 \begin_layout Itemize
1218 When you reconfigure using 
1219 \begin_inset Flex Noun
1220 status collapsed
1221
1222 \begin_layout Plain Layout
1223 Tools\SpecialChar menuseparator
1224 Reconfigure
1225 \end_layout
1226
1227 \end_inset
1228
1229 , \SpecialChar LyX
1230  runs the 
1231 \begin_inset Flex Code
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 configure.py
1236 \end_layout
1237
1238 \end_inset
1239
1240  script, and the resulting files are written in your local configuration
1241  directory.
1242  This means that any additional text class file that you might have added
1243  in 
1244 \begin_inset Flex Code
1245 status collapsed
1246
1247 \begin_layout Plain Layout
1248 UserDir/layouts
1249 \end_layout
1250
1251 \end_inset
1252
1253  will be added to the list of classes in the 
1254 \begin_inset Flex Noun
1255 status collapsed
1256
1257 \begin_layout Plain Layout
1258 Document\SpecialChar menuseparator
1259 Settings
1260 \end_layout
1261
1262 \end_inset
1263
1264  dialog.
1265 \end_layout
1266
1267 \begin_layout Itemize
1268 If you get some updated documentation from \SpecialChar LyX
1269  ftp site and cannot install
1270  it because you do not have sysadmin rights on your system, you can just
1271  copy the files in 
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 UserDir/doc/
1277 \end_layout
1278
1279 \end_inset
1280
1281  and the items in the 
1282 \begin_inset Flex Noun
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 Help
1287 \end_layout
1288
1289 \end_inset
1290
1291  menu will open them!
1292 \end_layout
1293
1294 \begin_layout Section
1295 Running \SpecialChar LyX
1296  with multiple configurations
1297 \end_layout
1298
1299 \begin_layout Standard
1300 The configuration freedom of the local configuration directory may not suffice
1301  if you want to have more than one configuration at your disposal.
1302  For example, you may want to be use different key bindings or printer settings
1303  at different times.
1304  You can achieve this by having several such directories.
1305  You then specify which directory to use at run-time.
1306 \end_layout
1307
1308 \begin_layout Standard
1309 Invoking \SpecialChar LyX
1310  with the command line switch 
1311 \begin_inset Flex Code
1312 status collapsed
1313
1314 \begin_layout Plain Layout
1315 -userdir
1316 \end_layout
1317
1318 \end_inset
1319
1320  
1321 \emph on
1322 <some directory>
1323 \emph default
1324  instructs the program to read the configuration from that directory, and
1325  not from the default directory.
1326  (You can determine the default directory by running \SpecialChar LyX
1327  without the 
1328 \begin_inset Flex Code
1329 status collapsed
1330
1331 \begin_layout Plain Layout
1332 -userdir
1333 \end_layout
1334
1335 \end_inset
1336
1337  switch.) If the specified directory does not exist, \SpecialChar LyX
1338  offers to create it
1339  for you, just like it does for the default directory on the first time
1340  you run the program.
1341  You can modify the configuration options in this additional user directory
1342  exactly as you would for the default directory.
1343  These directories are completely independent (but read on).
1344  Note that setting the environment variable 
1345 \begin_inset Flex Code
1346 status collapsed
1347
1348 \begin_layout Plain Layout
1349 LYX_USERDIR_VER
1350 \end_layout
1351
1352 \end_inset
1353
1354  to some value has exactly the same effect.
1355 \end_layout
1356
1357 \begin_layout Standard
1358 Having several configurations also requires more maintenance: if you want
1359  to add a new layout to 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364 NewUserDir/layouts
1365 \end_layout
1366
1367 \end_inset
1368
1369  which you want available from all your configurations, you must add it
1370  to each directory separately.
1371  You can avoid this with the following trick: after \SpecialChar LyX
1372  creates the additional
1373  directory, most of the subdirectories (see above) are empty.
1374  If you want the new configuration to mirror an existing one, replace the
1375  empty subdirectory with a symbolic link to the matching subdirectory in
1376  the existing configuration.
1377  Take care with the 
1378 \begin_inset Flex Code
1379 status collapsed
1380
1381 \begin_layout Plain Layout
1382 doc/
1383 \end_layout
1384
1385 \end_inset
1386
1387  subdirectory, however, since it contains a file written by the configuration
1388  script (also accessible through 
1389 \begin_inset Flex Noun
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 Tools\SpecialChar menuseparator
1394 Reconfigure
1395 \end_layout
1396
1397 \end_inset
1398
1399 ) which is configuration-specific.
1400 \end_layout
1401
1402 \begin_layout Chapter
1403 The Preferences dialog
1404 \end_layout
1405
1406 \begin_layout Standard
1407 All options of the preferences dialog are described in the Appendix 
1408 \emph on
1409 The Preferences Dialog
1410 \emph default
1411  in the 
1412 \emph on
1413 User's Guide
1414 \emph default
1415 .
1416  For some options you might find here more details.
1417 \end_layout
1418
1419 \begin_layout Section
1420 Formats
1421 \begin_inset CommandInset label
1422 LatexCommand label
1423 name "sec:Formats"
1424
1425 \end_inset
1426
1427
1428 \end_layout
1429
1430 \begin_layout Standard
1431 The first step is to define your file formats if they are not already defined.
1432  To do so, open the 
1433 \begin_inset Flex Noun
1434 status collapsed
1435
1436 \begin_layout Plain Layout
1437 Tools\SpecialChar menuseparator
1438 Preferences
1439 \end_layout
1440
1441 \end_inset
1442
1443  dialog.
1444  Under 
1445 \begin_inset Flex Noun
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 File Handling\SpecialChar menuseparator
1450 File formats
1451 \end_layout
1452
1453 \end_inset
1454
1455  press the 
1456 \begin_inset Flex Noun
1457 status collapsed
1458
1459 \begin_layout Plain Layout
1460 New
1461 \end_layout
1462
1463 \end_inset
1464
1465  button to define your new format.
1466  The 
1467 \begin_inset Flex Noun
1468 status collapsed
1469
1470 \begin_layout Plain Layout
1471 Format
1472 \end_layout
1473
1474 \end_inset
1475
1476  field contains the name used to identify the format in the GUI.
1477  The 
1478 \begin_inset Flex Noun
1479 status collapsed
1480
1481 \begin_layout Plain Layout
1482 Short Name
1483 \end_layout
1484
1485 \end_inset
1486
1487  is used to identify the format internally.
1488  You will also need to enter a file extension.
1489  These are all required.
1490  The optional 
1491 \begin_inset Flex Noun
1492 status collapsed
1493
1494 \begin_layout Plain Layout
1495 Shortcut
1496 \end_layout
1497
1498 \end_inset
1499
1500  field is used to provide a keyboard shortcut on the menus.
1501  (For example, pressing 
1502 \begin_inset Flex Noun
1503 status collapsed
1504
1505 \begin_layout Plain Layout
1506 Ctrl+D
1507 \end_layout
1508
1509 \end_inset
1510
1511  will 
1512 \begin_inset Flex Noun
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 Document\SpecialChar menuseparator
1517 View (Other Formats)\SpecialChar menuseparator
1518 DVI
1519 \end_layout
1520
1521 \end_inset
1522
1523 .) 
1524 \end_layout
1525
1526 \begin_layout Standard
1527 A Format can have a 
1528 \begin_inset Flex Noun
1529 status collapsed
1530
1531 \begin_layout Plain Layout
1532 Viewer
1533 \end_layout
1534
1535 \end_inset
1536
1537  and an 
1538 \begin_inset Flex Noun
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542 Editor
1543 \end_layout
1544
1545 \end_inset
1546
1547  associated with it.
1548  For example, you might want to use 
1549 \begin_inset Flex Noun
1550 status collapsed
1551
1552 \begin_layout Plain Layout
1553 Ghostview
1554 \end_layout
1555
1556 \end_inset
1557
1558  to view PostScript files.
1559  You can enter the command needed to start the program in the corresponding
1560  fields.
1561  In defining this command, you can use the four variables listed in the
1562  next section.
1563  The viewer is launched when you view an image in \SpecialChar LyX
1564  or use the 
1565 \begin_inset Flex Noun
1566 status collapsed
1567
1568 \begin_layout Plain Layout
1569 Document\SpecialChar menuseparator
1570 View
1571 \end_layout
1572
1573 \end_inset
1574
1575  menu.
1576  The editor is for example launched when you right-click on an image and
1577  choose 
1578 \begin_inset Flex Noun
1579 status collapsed
1580
1581 \begin_layout Plain Layout
1582 Edit externally
1583 \end_layout
1584
1585 \end_inset
1586
1587  in the appearing context menu.
1588 \end_layout
1589
1590 \begin_layout Standard
1591 The 
1592 \begin_inset Flex Noun
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596 MIME
1597 \end_layout
1598
1599 \end_inset
1600
1601  type of a format is optional, but if it is specified, it must be unique
1602  across all formats.
1603  It is used to detect files of this format from the file contents.
1604  For some important file formats there is no MIME type officially registered
1605  with the 
1606 \begin_inset CommandInset href
1607 LatexCommand href
1608 name "IANA"
1609 target "http://www.iana.org/assignments/media-types/"
1610 literal "false"
1611
1612 \end_inset
1613
1614 .
1615  Therefore \SpecialChar LyX
1616  uses the extended list of MIME types as specified by 
1617 \begin_inset CommandInset href
1618 LatexCommand href
1619 name "freedesktop.org"
1620 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1621 literal "false"
1622
1623 \end_inset
1624
1625 .
1626 \end_layout
1627
1628 \begin_layout Standard
1629 The 
1630 \begin_inset Flex Noun
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 Document format
1635 \end_layout
1636
1637 \end_inset
1638
1639  option tells \SpecialChar LyX
1640  that a format is suitable for document export.
1641  If this is set and if a suitable conversion route exists (see 
1642 \begin_inset CommandInset ref
1643 LatexCommand ref
1644 reference "sec:Converters"
1645
1646 \end_inset
1647
1648 ), the format will appear in the 
1649 \begin_inset Flex Noun
1650 status collapsed
1651
1652 \begin_layout Plain Layout
1653 File\SpecialChar menuseparator
1654 Export
1655 \end_layout
1656
1657 \end_inset
1658
1659  menu.
1660  The format will also appear in the 
1661 \begin_inset Flex Noun
1662 status collapsed
1663
1664 \begin_layout Plain Layout
1665 Document\SpecialChar menuseparator
1666 View
1667 \end_layout
1668
1669 \end_inset
1670
1671  menu if a viewer is specified for the format.
1672  Pure image formats, such as 
1673 \begin_inset Flex Code
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 png
1678 \end_layout
1679
1680 \end_inset
1681
1682 , should not use this option.
1683  Formats that can both represent vector graphics and documents like 
1684 \begin_inset Flex Code
1685 status collapsed
1686
1687 \begin_layout Plain Layout
1688 pdf
1689 \end_layout
1690
1691 \end_inset
1692
1693  should use it.
1694 \end_layout
1695
1696 \begin_layout Standard
1697 The option 
1698 \begin_inset Flex Noun
1699 status collapsed
1700
1701 \begin_layout Plain Layout
1702 Vector graphics format
1703 \end_layout
1704
1705 \end_inset
1706
1707  tells \SpecialChar LyX
1708  that a format can contain vector graphics.
1709  This information is used to determine the target format of included graphics
1710  for 
1711 \begin_inset Flex Noun
1712 status collapsed
1713
1714 \begin_layout Plain Layout
1715 pdflatex
1716 \end_layout
1717
1718 \end_inset
1719
1720  export.
1721  Included graphics may need to be converted to either 
1722 \begin_inset Flex Noun
1723 status collapsed
1724
1725 \begin_layout Plain Layout
1726 pdf
1727 \end_layout
1728
1729 \end_inset
1730
1731
1732 \begin_inset Flex Noun
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 png
1737 \end_layout
1738
1739 \end_inset
1740
1741 , or 
1742 \begin_inset Flex Noun
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 jpg
1747 \end_layout
1748
1749 \end_inset
1750
1751 , since 
1752 \begin_inset Flex Noun
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 pdflatex
1757 \end_layout
1758
1759 \end_inset
1760
1761  cannot handle other image formats.
1762  If an included graphic is not already in 
1763 \begin_inset Flex Noun
1764 status collapsed
1765
1766 \begin_layout Plain Layout
1767 pdf
1768 \end_layout
1769
1770 \end_inset
1771
1772
1773 \begin_inset Flex Noun
1774 status collapsed
1775
1776 \begin_layout Plain Layout
1777 png
1778 \end_layout
1779
1780 \end_inset
1781
1782 , or 
1783 \begin_inset Flex Noun
1784 status collapsed
1785
1786 \begin_layout Plain Layout
1787 jpg
1788 \end_layout
1789
1790 \end_inset
1791
1792  format, it is converted to 
1793 \begin_inset Flex Noun
1794 status collapsed
1795
1796 \begin_layout Plain Layout
1797 pdf
1798 \end_layout
1799
1800 \end_inset
1801
1802  if the vector format option is set, and otherwise to 
1803 \begin_inset Flex Noun
1804 status collapsed
1805
1806 \begin_layout Plain Layout
1807 png
1808 \end_layout
1809
1810 \end_inset
1811
1812 .
1813 \end_layout
1814
1815 \begin_layout Section
1816 Copiers
1817 \end_layout
1818
1819 \begin_layout Standard
1820 Since all conversions from one format to another take place in \SpecialChar LyX
1821 's temporary
1822  directory, it is sometimes necessary to modify a file before copying it
1823  to the temporary directory in order that the conversion may be performed.
1824 \begin_inset Foot
1825 status collapsed
1826
1827 \begin_layout Plain Layout
1828 For example, the file may refer to other files—images, for example—using
1829  relative file names, and these may become invalid when the file is copied
1830  to the temporary directory.
1831 \end_layout
1832
1833 \end_inset
1834
1835  This is done by a Copier: It copies a file to (or from) the temporary directory
1836  and may modify it in the process.
1837 \end_layout
1838
1839 \begin_layout Standard
1840 The definitions of the copiers may use eight variables:
1841 \end_layout
1842
1843 \begin_layout Labeling
1844 \labelwidthstring 00.00.0000
1845 \begin_inset Flex Code
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849 $$s
1850 \end_layout
1851
1852 \end_inset
1853
1854  The \SpecialChar LyX
1855  system directory (e.
1856 \begin_inset space \thinspace{}
1857 \end_inset
1858
1859 g.
1860 \begin_inset space \space{}
1861 \end_inset
1862
1863
1864 \begin_inset Flex Noun
1865 status collapsed
1866
1867 \begin_layout Plain Layout
1868 /usr/share/lyx
1869 \end_layout
1870
1871 \end_inset
1872
1873 ).
1874 \end_layout
1875
1876 \begin_layout Labeling
1877 \labelwidthstring 00.00.0000
1878 \begin_inset Flex Code
1879 status collapsed
1880
1881 \begin_layout Plain Layout
1882 $$i
1883 \end_layout
1884
1885 \end_inset
1886
1887  The input file
1888 \end_layout
1889
1890 \begin_layout Labeling
1891 \labelwidthstring 00.00.0000
1892 \begin_inset Flex Code
1893 status collapsed
1894
1895 \begin_layout Plain Layout
1896 $$o
1897 \end_layout
1898
1899 \end_inset
1900
1901  The output file
1902 \end_layout
1903
1904 \begin_layout Labeling
1905 \labelwidthstring 00.00.0000
1906 \begin_inset Flex Code
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 $$b
1911 \end_layout
1912
1913 \end_inset
1914
1915  The base name (without filename extension) in the \SpecialChar LyX
1916  temporary directory
1917 \end_layout
1918
1919 \begin_layout Labeling
1920 \labelwidthstring 00.00.0000
1921 \begin_inset Flex Code
1922 status collapsed
1923
1924 \begin_layout Plain Layout
1925 $$p
1926 \end_layout
1927
1928 \end_inset
1929
1930  The full directory path of the \SpecialChar LyX
1931  temporary directory
1932 \end_layout
1933
1934 \begin_layout Labeling
1935 \labelwidthstring 00.00.0000
1936 \begin_inset Flex Code
1937 status collapsed
1938
1939 \begin_layout Plain Layout
1940 $$r
1941 \end_layout
1942
1943 \end_inset
1944
1945  The full pathname to the original \SpecialChar LyX
1946  file being processed
1947 \end_layout
1948
1949 \begin_layout Labeling
1950 \labelwidthstring 00.00.0000
1951 \begin_inset Flex Code
1952 status collapsed
1953
1954 \begin_layout Plain Layout
1955 $$f
1956 \end_layout
1957
1958 \end_inset
1959
1960  The filename (without any directory path) of the \SpecialChar LyX
1961  file.
1962 \end_layout
1963
1964 \begin_layout Labeling
1965 \labelwidthstring 00.00.0000
1966 \begin_inset Flex Code
1967 status collapsed
1968
1969 \begin_layout Plain Layout
1970 $$l
1971 \end_layout
1972
1973 \end_inset
1974
1975  The `\SpecialChar LaTeX
1976  name'
1977 \end_layout
1978
1979 \begin_layout Standard
1980 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1981 's 
1982 \series bold
1983
1984 \backslash
1985 include
1986 \series default
1987  command.
1988  It is relevant only when exporting files suitable for such inclusion.
1989 \end_layout
1990
1991 \begin_layout Standard
1992 Copiers can be used to do almost anything with output files.
1993  For example, suppose you want generated pdf files to be copied to a special
1994  directory, 
1995 \begin_inset Flex Code
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 /home/you/pdf/
2000 \end_layout
2001
2002 \end_inset
2003
2004 .
2005  Then you could write a shell script such as this one:
2006 \end_layout
2007
2008 \begin_layout Standard
2009 \begin_inset listings
2010 inline false
2011 status open
2012
2013 \begin_layout Plain Layout
2014
2015 #!/bin/bash
2016 \end_layout
2017
2018 \begin_layout Plain Layout
2019
2020 FROMFILE=$1
2021 \end_layout
2022
2023 \begin_layout Plain Layout
2024
2025 TOFILE=`basename $2`
2026 \end_layout
2027
2028 \begin_layout Plain Layout
2029
2030 cp $FROMFILE /home/you/pdf/$TOFILE
2031 \end_layout
2032
2033 \end_inset
2034
2035 Save it in your local \SpecialChar LyX
2036  directory—say, 
2037 \begin_inset Flex Code
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 /home/you/.lyx/scripts/pdfcopier.sh
2042 \end_layout
2043
2044 \end_inset
2045
2046 —and make it executable, if you need to do so on your platform.
2047  Then, in the 
2048 \begin_inset Flex Noun
2049 status collapsed
2050
2051 \begin_layout Plain Layout
2052 Tools\SpecialChar menuseparator
2053 Preferences
2054 \end_layout
2055
2056 \end_inset
2057
2058  dialog, select under 
2059 \begin_inset Flex Noun
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 File Handling\SpecialChar menuseparator
2064 File formats
2065 \end_layout
2066
2067 \end_inset
2068
2069  the 
2070 \begin_inset Flex Noun
2071 status collapsed
2072
2073 \begin_layout Plain Layout
2074 PDF(pdflatex)
2075 \end_layout
2076
2077 \end_inset
2078
2079  format—or one of the other pdf formats—and enter 
2080 \begin_inset Flex Code
2081 status collapsed
2082
2083 \begin_layout Plain Layout
2084 pdfcopier.sh $$i $$o
2085 \end_layout
2086
2087 \end_inset
2088
2089  into the 
2090 \begin_inset Flex Noun
2091 status collapsed
2092
2093 \begin_layout Plain Layout
2094 Copier
2095 \end_layout
2096
2097 \end_inset
2098
2099  field.
2100  
2101 \end_layout
2102
2103 \begin_layout Standard
2104 Copiers are used by \SpecialChar LyX
2105  in various of its own conversions.
2106  For example, if appropriate programs are found, \SpecialChar LyX
2107  will automatically install
2108  copiers for the 
2109 \begin_inset Flex Noun
2110 status collapsed
2111
2112 \begin_layout Plain Layout
2113 HTML
2114 \end_layout
2115
2116 \end_inset
2117
2118  and 
2119 \begin_inset Flex Noun
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 HTML
2124 \begin_inset space ~
2125 \end_inset
2126
2127 (MS Word)
2128 \end_layout
2129
2130 \end_inset
2131
2132  formats.
2133  When these formats are exported, the copier sees that not just the main
2134  HTML file but various associated files (style files, images, etc.) are also
2135  copied.
2136  All these files are written to a subdirectory of the directory in which
2137  the original \SpecialChar LyX
2138  file was found.
2139 \begin_inset Foot
2140 status collapsed
2141
2142 \begin_layout Plain Layout
2143 This copier can be customized.
2144  The optional 
2145 \begin_inset Quotes eld
2146 \end_inset
2147
2148 -e
2149 \begin_inset Quotes erd
2150 \end_inset
2151
2152  argument takes a comma-separated list of extensions to be copied; if it
2153  is omitted, all files will be copied.
2154  The 
2155 \begin_inset Quotes eld
2156 \end_inset
2157
2158 -t
2159 \begin_inset Quotes erd
2160 \end_inset
2161
2162  argument determines the extension added to the generated directory.
2163  By default, it is 
2164 \begin_inset Quotes eld
2165 \end_inset
2166
2167
2168 \begin_inset Flex Noun
2169 status collapsed
2170
2171 \begin_layout Plain Layout
2172 LyXconv
2173 \end_layout
2174
2175 \end_inset
2176
2177
2178 \begin_inset Quotes erd
2179 \end_inset
2180
2181 , so HTML generated from 
2182 \begin_inset Flex Noun
2183 status collapsed
2184
2185 \begin_layout Plain Layout
2186 /path/to/filename.lyx
2187 \end_layout
2188
2189 \end_inset
2190
2191  will end up in 
2192 \begin_inset Flex Noun
2193 status collapsed
2194
2195 \begin_layout Plain Layout
2196 /path/to/filename.html.LyXconv
2197 \end_layout
2198
2199 \end_inset
2200
2201 .
2202  
2203 \end_layout
2204
2205 \end_inset
2206
2207
2208 \end_layout
2209
2210 \begin_layout Section
2211 Converters
2212 \begin_inset CommandInset label
2213 LatexCommand label
2214 name "sec:Converters"
2215
2216 \end_inset
2217
2218
2219 \end_layout
2220
2221 \begin_layout Standard
2222 You can define your own Converters to convert files between different formats.
2223  This is done in the 
2224 \begin_inset Flex Noun
2225 status collapsed
2226
2227 \begin_layout Plain Layout
2228 Tools\SpecialChar menuseparator
2229 Preferences\SpecialChar menuseparator
2230 File Handling\SpecialChar menuseparator
2231 Converters
2232 \end_layout
2233
2234 \end_inset
2235
2236  dialog.
2237 \end_layout
2238
2239 \begin_layout Standard
2240 To define a new converter, select the 
2241 \begin_inset Flex Noun
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 From
2246 \begin_inset space ~
2247 \end_inset
2248
2249 format
2250 \end_layout
2251
2252 \end_inset
2253
2254  and 
2255 \begin_inset Flex Noun
2256 status collapsed
2257
2258 \begin_layout Plain Layout
2259 To
2260 \begin_inset space ~
2261 \end_inset
2262
2263 format
2264 \end_layout
2265
2266 \end_inset
2267
2268  from the drop-down lists, enter the command needed for the conversion,
2269  and then press the 
2270 \begin_inset Flex Noun
2271 status collapsed
2272
2273 \begin_layout Plain Layout
2274 Add
2275 \end_layout
2276
2277 \end_inset
2278
2279  button.
2280  Several variables can be used in the definition of converters:
2281 \end_layout
2282
2283 \begin_layout Labeling
2284 \labelwidthstring 00.00.0000
2285 \begin_inset Flex Code
2286 status collapsed
2287
2288 \begin_layout Plain Layout
2289 $$s
2290 \end_layout
2291
2292 \end_inset
2293
2294  The \SpecialChar LyX
2295  system directory
2296 \end_layout
2297
2298 \begin_layout Labeling
2299 \labelwidthstring 00.00.0000
2300 \begin_inset Flex Code
2301 status collapsed
2302
2303 \begin_layout Plain Layout
2304 $$i
2305 \end_layout
2306
2307 \end_inset
2308
2309  The input file
2310 \end_layout
2311
2312 \begin_layout Labeling
2313 \labelwidthstring 00.00.0000
2314 \begin_inset Flex Code
2315 status collapsed
2316
2317 \begin_layout Plain Layout
2318 $$o
2319 \end_layout
2320
2321 \end_inset
2322
2323  The output file
2324 \end_layout
2325
2326 \begin_layout Labeling
2327 \labelwidthstring 00.00.0000
2328 \begin_inset Flex Code
2329 status collapsed
2330
2331 \begin_layout Plain Layout
2332 $$b
2333 \end_layout
2334
2335 \end_inset
2336
2337  The base filename of the input file (i.
2338 \begin_inset space \thinspace{}
2339 \end_inset
2340
2341 g., without the extension)
2342 \end_layout
2343
2344 \begin_layout Labeling
2345 \labelwidthstring 00.00.0000
2346 \begin_inset Flex Code
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 $$p
2351 \end_layout
2352
2353 \end_inset
2354
2355  The path to the input file
2356 \end_layout
2357
2358 \begin_layout Labeling
2359 \labelwidthstring 00.00.0000
2360 \begin_inset Flex Code
2361 status collapsed
2362
2363 \begin_layout Plain Layout
2364 $$r
2365 \end_layout
2366
2367 \end_inset
2368
2369  The path to the original input file (this is different from $$p when a
2370  chain of converters is called)
2371 \end_layout
2372
2373 \begin_layout Labeling
2374 \labelwidthstring 00.00.0000
2375 \begin_inset Flex Code
2376 status collapsed
2377
2378 \begin_layout Plain Layout
2379 $$e
2380 \end_layout
2381
2382 \end_inset
2383
2384  The iconv name for the encoding of the document.
2385 \end_layout
2386
2387 \begin_layout Standard
2388 In the 
2389 \begin_inset Flex Noun
2390 status collapsed
2391
2392 \begin_layout Plain Layout
2393 Extra
2394 \begin_inset space ~
2395 \end_inset
2396
2397 Flag
2398 \end_layout
2399
2400 \end_inset
2401
2402  field you can enter the following flags, separated by commas:
2403 \end_layout
2404
2405 \begin_layout Labeling
2406 \labelwidthstring 00.00.0000
2407 \begin_inset Flex Code
2408 status collapsed
2409
2410 \begin_layout Plain Layout
2411 latex
2412 \change_inserted -712698321 1524656940
2413 =flavor
2414 \change_unchanged
2415
2416 \end_layout
2417
2418 \end_inset
2419
2420  This converter runs some form of \SpecialChar LaTeX
2421 .
2422  This will make \SpecialChar LyX
2423 's \SpecialChar LaTeX
2424  error logs available.
2425
2426 \change_inserted -712698321 1524657018
2427  The optional 
2428 \begin_inset Flex Code
2429 status open
2430
2431 \begin_layout Plain Layout
2432
2433 \change_inserted -712698321 1524657012
2434 flavor
2435 \change_unchanged
2436
2437 \end_layout
2438
2439 \end_inset
2440
2441  value specifies the form of \SpecialChar LaTeX
2442  that is run (
2443 \begin_inset Flex Code
2444 status open
2445
2446 \begin_layout Plain Layout
2447
2448 \change_inserted -712698321 1524657005
2449 latex, pdflatex, platex, xetex, luatex
2450 \change_unchanged
2451
2452 \end_layout
2453
2454 \end_inset
2455
2456 ).
2457  If no value is specified, 
2458 \begin_inset Flex Code
2459 status open
2460
2461 \begin_layout Plain Layout
2462
2463 \change_inserted -712698321 1524657018
2464 latex
2465 \change_unchanged
2466
2467 \end_layout
2468
2469 \end_inset
2470
2471  is used.
2472 \change_unchanged
2473
2474 \end_layout
2475
2476 \begin_layout Labeling
2477 \labelwidthstring 00.00.0000
2478 \begin_inset Flex Code
2479 status collapsed
2480
2481 \begin_layout Plain Layout
2482 needaux
2483 \change_inserted -712698321 1524656935
2484 =flavor
2485 \change_unchanged
2486
2487 \end_layout
2488
2489 \end_inset
2490
2491  Needs the \SpecialChar LaTeX
2492  
2493 \begin_inset Flex Noun
2494 status collapsed
2495
2496 \begin_layout Plain Layout
2497 .aux
2498 \end_layout
2499
2500 \end_inset
2501
2502  file for the conversion.
2503
2504 \change_inserted -712698321 1524657047
2505  The optional 
2506 \begin_inset Flex Code
2507 status open
2508
2509 \begin_layout Plain Layout
2510
2511 \change_inserted -712698321 1524657030
2512 flavor
2513 \end_layout
2514
2515 \end_inset
2516
2517  value specifies the form of \SpecialChar LaTeX
2518  that is run in order to generate the 
2519 \begin_inset Flex Noun
2520 status collapsed
2521
2522 \begin_layout Plain Layout
2523
2524 \change_inserted -712698321 1524657047
2525 .aux
2526 \end_layout
2527
2528 \end_inset
2529
2530  file (
2531 \begin_inset Flex Code
2532 status open
2533
2534 \begin_layout Plain Layout
2535
2536 \change_inserted -712698321 1524657030
2537 latex, pdflatex, platex, xetex, luatex
2538 \end_layout
2539
2540 \end_inset
2541
2542 ).
2543  If no value is specified, 
2544 \begin_inset Flex Code
2545 status open
2546
2547 \begin_layout Plain Layout
2548
2549 \change_inserted -712698321 1524657030
2550 latex
2551 \end_layout
2552
2553 \end_inset
2554
2555  is used.
2556 \change_unchanged
2557
2558 \end_layout
2559
2560 \begin_layout Labeling
2561 \labelwidthstring 00.00.0000
2562 \begin_inset Flex Code
2563 status collapsed
2564
2565 \begin_layout Plain Layout
2566 nice
2567 \end_layout
2568
2569 \end_inset
2570
2571  Needs a 
2572 \begin_inset Quotes eld
2573 \end_inset
2574
2575 nice
2576 \begin_inset Quotes erd
2577 \end_inset
2578
2579  file from the backend, which in practice means a \SpecialChar LaTeX
2580  file like the one we
2581  would export, without 
2582 \begin_inset Flex Code
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 input@path
2587 \end_layout
2588
2589 \end_inset
2590
2591 .
2592 \end_layout
2593
2594 \begin_layout Labeling
2595 \labelwidthstring 00.00.0000
2596 \begin_inset Flex Code
2597 status collapsed
2598
2599 \begin_layout Plain Layout
2600 xml
2601 \end_layout
2602
2603 \end_inset
2604
2605  Output is XML.
2606 \end_layout
2607
2608 \begin_layout Standard
2609 The following three flags are not really flags at all because they take
2610  an argument in the 
2611 \begin_inset Flex Noun
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 key
2616 \begin_inset space ~
2617 \end_inset
2618
2619 =
2620 \begin_inset space ~
2621 \end_inset
2622
2623 value
2624 \end_layout
2625
2626 \end_inset
2627
2628  format:
2629 \end_layout
2630
2631 \begin_layout Labeling
2632 \labelwidthstring 00.00.0000
2633
2634 \change_inserted -712698321 1523206314
2635 \begin_inset Flex Code
2636 status collapsed
2637
2638 \begin_layout Plain Layout
2639
2640 \change_inserted -712698321 1523206193
2641 hyperref-driver
2642 \end_layout
2643
2644 \end_inset
2645
2646  The name of the driver that needs to be loaded with the 
2647 \family sans
2648 hyperref
2649 \family default
2650  package for this converter.
2651  The loading of the correct driver is necessary to get some PDF-specific
2652  features.
2653  See the 
2654 \family sans
2655 hyperref
2656 \family default
2657  manual for details.
2658 \end_layout
2659
2660 \begin_layout Labeling
2661 \labelwidthstring 00.00.0000
2662 \begin_inset Flex Code
2663 status collapsed
2664
2665 \begin_layout Plain Layout
2666 parselog
2667 \end_layout
2668
2669 \end_inset
2670
2671  If set, the converter's standard error will be redirected to a file 
2672 \begin_inset Flex Code
2673 status collapsed
2674
2675 \begin_layout Plain Layout
2676 infile.out
2677 \end_layout
2678
2679 \end_inset
2680
2681 , and the script given as argument will be run as: 
2682 \begin_inset Flex Code
2683 status collapsed
2684
2685 \begin_layout Plain Layout
2686 script < infile.out > infile.log
2687 \end_layout
2688
2689 \end_inset
2690
2691 .
2692  The argument may contain 
2693 \begin_inset Flex Code
2694 status collapsed
2695
2696 \begin_layout Plain Layout
2697 $$s
2698 \end_layout
2699
2700 \end_inset
2701
2702 .
2703 \end_layout
2704
2705 \begin_layout Labeling
2706 \labelwidthstring 00.00.0000
2707 \begin_inset Flex Code
2708 status collapsed
2709
2710 \begin_layout Plain Layout
2711 resultdir
2712 \end_layout
2713
2714 \end_inset
2715
2716  The name of the directory in which the converter will dump the generated
2717  files.
2718  \SpecialChar LyX
2719  will not create this directory, and it does not copy anything into it,
2720  though it will copy this directory to the destination.
2721  The argument may contain 
2722 \begin_inset Flex Code
2723 status collapsed
2724
2725 \begin_layout Plain Layout
2726 $$b
2727 \end_layout
2728
2729 \end_inset
2730
2731 , which will be replaced by the base name of the input and output files,
2732  respectively, when the directory is copied.
2733 \begin_inset Newline newline
2734 \end_inset
2735
2736 Note that resultdir and usetempdir make no sense together.
2737  The latter will be ignored if the former is given.
2738 \end_layout
2739
2740 \begin_layout Labeling
2741 \labelwidthstring 00.00.0000
2742 \begin_inset Flex Code
2743 status collapsed
2744
2745 \begin_layout Plain Layout
2746 resultfile
2747 \end_layout
2748
2749 \end_inset
2750
2751  Determines the output file name and may, contain 
2752 \begin_inset Flex Code
2753 status collapsed
2754
2755 \begin_layout Plain Layout
2756 $$b
2757 \end_layout
2758
2759 \end_inset
2760
2761 .
2762  Sensible only with resultdir and optional even then; if not given, it defaults
2763  to `index'.
2764 \end_layout
2765
2766 \begin_layout Standard
2767
2768 \change_inserted -712698321 1523206384
2769 A suitable hyperref-driver is set for some converters that are installed
2770  with \SpecialChar LyX
2771 .
2772  
2773 \change_deleted -712698321 1523206388
2774 None of these
2775 \change_inserted -712698321 1523206389
2776 The
2777 \change_unchanged
2778  last three
2779 \change_inserted -712698321 1523206400
2780  flags, however,
2781 \change_unchanged
2782  are presently 
2783 \change_inserted -712698321 1523206407
2784 not 
2785 \change_unchanged
2786 used in any of the 
2787 \change_inserted -712698321 1523206437
2788 pre-installed 
2789 \change_unchanged
2790 converters
2791 \change_deleted -712698321 1523206442
2792  that are installed with \SpecialChar LyX
2793
2794 \change_unchanged
2795 .
2796  
2797 \end_layout
2798
2799 \begin_layout Standard
2800 You do not have to define converters for all formats between which you want
2801  to convert.
2802  For example, you will note that there is no `\SpecialChar LyX
2803  to PostScript' converter,
2804  but \SpecialChar LyX
2805  will export PostScript.
2806  It does so by first creating a \SpecialChar LaTeX
2807  file (no converter needs to be defined
2808  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2809  to DVI' converter,
2810  and finally converting the resulting DVI file to PostScript.
2811  \SpecialChar LyX
2812  finds such `chains' of converters automatically, and it will always choose
2813  the shortest possible chain.
2814  You can, though, still define multiple conversion methods between file
2815  formats.
2816  For example, the standard \SpecialChar LyX
2817  configuration provides five ways to convert
2818  \SpecialChar LaTeX
2819  to PDF:
2820 \end_layout
2821
2822 \begin_layout Enumerate
2823 Directly, using 
2824 \begin_inset Flex Noun
2825 status collapsed
2826
2827 \begin_layout Plain Layout
2828 pdflatex
2829 \end_layout
2830
2831 \end_inset
2832
2833
2834 \end_layout
2835
2836 \begin_layout Enumerate
2837 via (DVI and) PostScript, using 
2838 \begin_inset Flex Noun
2839 status collapsed
2840
2841 \begin_layout Plain Layout
2842 ps2pdf
2843 \end_layout
2844
2845 \end_inset
2846
2847
2848 \end_layout
2849
2850 \begin_layout Enumerate
2851 via DVI, using 
2852 \begin_inset Flex Noun
2853 status collapsed
2854
2855 \begin_layout Plain Layout
2856 dvipdfm
2857 \end_layout
2858
2859 \end_inset
2860
2861
2862 \end_layout
2863
2864 \begin_layout Enumerate
2865 directly using 
2866 \begin_inset Flex Noun
2867 status collapsed
2868
2869 \begin_layout Plain Layout
2870 Xe\SpecialChar TeX
2871
2872 \end_layout
2873
2874 \end_inset
2875
2876
2877 \end_layout
2878
2879 \begin_layout Enumerate
2880 directly using 
2881 \begin_inset Flex Noun
2882 status collapsed
2883
2884 \begin_layout Plain Layout
2885 Lua\SpecialChar TeX
2886
2887 \end_layout
2888
2889 \end_inset
2890
2891
2892 \end_layout
2893
2894 \begin_layout Standard
2895 To define such alternate chains, you must define multiple target `file formats',
2896  as described in 
2897 \begin_inset CommandInset ref
2898 LatexCommand ref
2899 reference "sec:Formats"
2900
2901 \end_inset
2902
2903 .
2904  For example, in the standard configuration, the formats named 
2905 \begin_inset Flex Noun
2906 status collapsed
2907
2908 \begin_layout Plain Layout
2909 pdf
2910 \end_layout
2911
2912 \end_inset
2913
2914  (for 
2915 \begin_inset Flex Noun
2916 status collapsed
2917
2918 \begin_layout Plain Layout
2919 ps2pdf
2920 \end_layout
2921
2922 \end_inset
2923
2924 ), 
2925 \begin_inset Flex Noun
2926 status collapsed
2927
2928 \begin_layout Plain Layout
2929 pdf2
2930 \end_layout
2931
2932 \end_inset
2933
2934  (for 
2935 \begin_inset Flex Noun
2936 status collapsed
2937
2938 \begin_layout Plain Layout
2939 pdflatex
2940 \end_layout
2941
2942 \end_inset
2943
2944 ), 
2945 \begin_inset Flex Noun
2946 status collapsed
2947
2948 \begin_layout Plain Layout
2949 pdf3
2950 \end_layout
2951
2952 \end_inset
2953
2954  (for 
2955 \begin_inset Flex Noun
2956 status collapsed
2957
2958 \begin_layout Plain Layout
2959 dvipdfm
2960 \end_layout
2961
2962 \end_inset
2963
2964 ), 
2965 \begin_inset Flex Noun
2966 status collapsed
2967
2968 \begin_layout Plain Layout
2969 pdf4
2970 \end_layout
2971
2972 \end_inset
2973
2974  (for 
2975 \begin_inset Flex Noun
2976 status collapsed
2977
2978 \begin_layout Plain Layout
2979 Xe\SpecialChar TeX
2980
2981 \end_layout
2982
2983 \end_inset
2984
2985 ), and 
2986 \begin_inset Flex Noun
2987 status collapsed
2988
2989 \begin_layout Plain Layout
2990 pdf5
2991 \end_layout
2992
2993 \end_inset
2994
2995  (for 
2996 \begin_inset Flex Noun
2997 status collapsed
2998
2999 \begin_layout Plain Layout
3000 Lua\SpecialChar TeX
3001
3002 \end_layout
3003
3004 \end_inset
3005
3006 ) are defined, all of which share the extension 
3007 \begin_inset Flex Noun
3008 status collapsed
3009
3010 \begin_layout Plain Layout
3011 .pdf
3012 \end_layout
3013
3014 \end_inset
3015
3016 , and which correspond to the conversion methods just mentioned.
3017 \end_layout
3018
3019 \begin_layout Chapter
3020 Internationalizing \SpecialChar LyX
3021
3022 \begin_inset CommandInset label
3023 LatexCommand label
3024 name "cha:Internationalizing-LyX"
3025
3026 \end_inset
3027
3028
3029 \end_layout
3030
3031 \begin_layout Standard
3032 \SpecialChar LyX
3033  supports using a translated interface.
3034  Last time we checked, \SpecialChar LyX
3035  provided text in thirty languages.
3036  The language of choice is called your 
3037 \emph on
3038 locale
3039 \emph default
3040 .
3041  (For further reading on locale settings, see also the documentation for
3042  locale that comes with your operating system.
3043  For Linux, the manual page for 
3044 \begin_inset Flex Code
3045 status collapsed
3046
3047 \begin_layout Plain Layout
3048 locale(5)
3049 \end_layout
3050
3051 \end_inset
3052
3053  could be a good place to start).
3054 \end_layout
3055
3056 \begin_layout Standard
3057 Notice that these translations will work, but do contain a few flaws.
3058  In particular, all dialogs have been designed with the English text in
3059  mind, which means that some of the translated text will be too large to
3060  fit within the space allocated.
3061  This is only a display problem and will not cause any harm.
3062  Also, you will find that some of the translations do not define shortcut
3063  keys for everything.
3064  Sometimes, there are simply not enough free letters to do it.
3065  Other times, the translator just hasn't got around to doing it yet.
3066  Our localization team, which you may wish to join,
3067 \begin_inset Foot
3068 status collapsed
3069
3070 \begin_layout Plain Layout
3071 If you are a fluent speaker of a language other than English, joining these
3072  teams is a great way to give back to the \SpecialChar LyX
3073  community!
3074 \end_layout
3075
3076 \end_inset
3077
3078  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3079 .
3080 \end_layout
3081
3082 \begin_layout Section
3083 Translating \SpecialChar LyX
3084
3085 \end_layout
3086
3087 \begin_layout Subsection
3088 Translating the graphical user interface (text messages).
3089 \end_layout
3090
3091 \begin_layout Standard
3092 \SpecialChar LyX
3093  uses the GNU 
3094 \begin_inset Flex Code
3095 status collapsed
3096
3097 \begin_layout Plain Layout
3098 gettext
3099 \end_layout
3100
3101 \end_inset
3102
3103  library to handle the internationalization of the interface.
3104  To have \SpecialChar LyX
3105  speak your favorite language in all menus and dialogs, you need
3106  a 
3107 \begin_inset Flex Code
3108 status collapsed
3109
3110 \begin_layout Plain Layout
3111 po
3112 \end_layout
3113
3114 \end_inset
3115
3116 -file for that language.
3117  When this is available, you'll have to generate a 
3118 \begin_inset Flex Code
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122 mo
3123 \end_layout
3124
3125 \end_inset
3126
3127 -file from it and install the 
3128 \begin_inset Flex Code
3129 status collapsed
3130
3131 \begin_layout Plain Layout
3132 mo
3133 \end_layout
3134
3135 \end_inset
3136
3137 -file.
3138  The process of doing all of this is explained in the documentation for
3139  GNU 
3140 \begin_inset Flex Code
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144 gettext
3145 \end_layout
3146
3147 \end_inset
3148
3149 .
3150  It is possible to do this just for yourself, but if you're going to do
3151  it, you might as well share the results of your labors with the rest of
3152  the \SpecialChar LyX
3153  community.
3154  Send a message to the \SpecialChar LyX
3155  developers' list for more information about how
3156  to proceed.
3157 \end_layout
3158
3159 \begin_layout Standard
3160 In short, this is what you should do (xx denotes the language code):
3161 \end_layout
3162
3163 \begin_layout Itemize
3164 Check out the \SpecialChar LyX
3165  source code.
3166  (See the 
3167 \begin_inset CommandInset href
3168 LatexCommand href
3169 name "information on the web"
3170 target "https://www.lyx.org/HowToUseGIT"
3171 literal "false"
3172
3173 \end_inset
3174
3175 .)
3176 \end_layout
3177
3178 \begin_layout Itemize
3179 Copy the file 
3180 \begin_inset Flex Code
3181 status collapsed
3182
3183 \begin_layout Plain Layout
3184 lyx.pot
3185 \end_layout
3186
3187 \end_inset
3188
3189  to the folder of the 
3190 \begin_inset Flex Code
3191 status collapsed
3192
3193 \begin_layout Plain Layout
3194 **.po
3195 \end_layout
3196
3197 \end_inset
3198
3199  files.
3200  Then rename it to 
3201 \begin_inset Flex Code
3202 status collapsed
3203
3204 \begin_layout Plain Layout
3205 xx.po
3206 \end_layout
3207
3208 \end_inset
3209
3210 .
3211  (If 
3212 \begin_inset Flex Code
3213 status collapsed
3214
3215 \begin_layout Plain Layout
3216 lyx.pot
3217 \end_layout
3218
3219 \end_inset
3220
3221  doesn't exist anywhere, it can be remade with the console command 
3222 \begin_inset Flex Code
3223 status collapsed
3224
3225 \begin_layout Plain Layout
3226 make lyx.pot
3227 \end_layout
3228
3229 \end_inset
3230
3231  in that directory, or you can use an existing po-file for some other language
3232  as a template).
3233 \end_layout
3234
3235 \begin_layout Itemize
3236 Edit 
3237 \begin_inset Flex Code
3238 status collapsed
3239
3240 \begin_layout Plain Layout
3241 xx.po
3242 \end_layout
3243
3244 \end_inset
3245
3246 .
3247 \begin_inset Foot
3248 status collapsed
3249
3250 \begin_layout Plain Layout
3251 This is just a text file, so it can be edited in any text editor.
3252  But there are also specialized programs that support such editing, such
3253  as 
3254 \family typewriter
3255 Poedit
3256 \family default
3257  (for all platforms) or 
3258 \family typewriter
3259 KBabel
3260 \family default
3261  (for KDE).
3262  
3263 \family typewriter
3264 Emacs
3265 \family default
3266  contains a `mode' for editing 
3267 \begin_inset Flex Code
3268 status collapsed
3269
3270 \begin_layout Plain Layout
3271 po
3272 \end_layout
3273
3274 \end_inset
3275
3276  files, as well, see 
3277 \begin_inset Flex URL
3278 status open
3279
3280 \begin_layout Plain Layout
3281
3282 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html
3283 \backslash
3284 #PO-Mode
3285 \end_layout
3286
3287 \end_inset
3288
3289 .
3290 \end_layout
3291
3292 \end_inset
3293
3294  For some menu- and widget-labels, there are also shortcut keys that should
3295  be translated.
3296  Those keys are marked after a `|', and should be translated according to
3297  the words and phrases of the language.
3298  You should also fill also out the information at the beginning of the new
3299  
3300 \begin_inset Flex Code
3301 status collapsed
3302
3303 \begin_layout Plain Layout
3304 po
3305 \end_layout
3306
3307 \end_inset
3308
3309 -file with your email-address, etc., so people know where to reach you with
3310  suggestions and entertaining flames.
3311 \end_layout
3312
3313 \begin_layout Standard
3314 If you are just doing this on your own, then:
3315 \end_layout
3316
3317 \begin_layout Itemize
3318 Generate 
3319 \begin_inset Flex Code
3320 status collapsed
3321
3322 \begin_layout Plain Layout
3323 xx.mo
3324 \end_layout
3325
3326 \end_inset
3327
3328 .
3329  This can be done with 
3330 \begin_inset Flex Code
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334 msgfmt -o xx.mo < xx.po
3335 \end_layout
3336
3337 \end_inset
3338
3339 .
3340 \end_layout
3341
3342 \begin_layout Itemize
3343 Copy the 
3344 \begin_inset Flex Code
3345 status collapsed
3346
3347 \begin_layout Plain Layout
3348 mo
3349 \end_layout
3350
3351 \end_inset
3352
3353 -file to your locale-tree, at the correct directory for application messages
3354  for the language
3355 \series bold
3356  
3357 \series default
3358 xx, and under the name 
3359 \begin_inset Flex Code
3360 status collapsed
3361
3362 \begin_layout Plain Layout
3363 lyx.mo
3364 \end_layout
3365
3366 \end_inset
3367
3368  (e.
3369 \begin_inset space \thinspace{}
3370 \end_inset
3371
3372 g.
3373 \begin_inset space \space{}
3374 \end_inset
3375
3376
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3382 \end_layout
3383
3384 \end_inset
3385
3386
3387 \series bold
3388 .
3389 \end_layout
3390
3391 \begin_layout Standard
3392 As said, however, it would be best if the new 
3393 \begin_inset Flex Code
3394 status collapsed
3395
3396 \begin_layout Plain Layout
3397 po
3398 \end_layout
3399
3400 \end_inset
3401
3402  file could be added to the \SpecialChar LyX
3403  distribution, so others can use it.
3404  Adding it involves making additional changes to \SpecialChar LyX
3405 .
3406  So send an email to the developers' mailing list if you're interested in
3407  doing that.
3408 \end_layout
3409
3410 \begin_layout Subsubsection
3411 Ambiguous messages
3412 \end_layout
3413
3414 \begin_layout Standard
3415 Sometimes it turns out that one English message needs to be translated into
3416  different messages in the target language.
3417  One example is the message 
3418 \begin_inset Flex Code
3419 status collapsed
3420
3421 \begin_layout Plain Layout
3422 To
3423 \end_layout
3424
3425 \end_inset
3426
3427  which has the German translation 
3428 \lang german
3429 Nach
3430 \lang english
3431  or 
3432 \lang german
3433 Bis
3434 \lang english
3435 , depending upon exactly what the English 
3436 \begin_inset Quotes eld
3437 \end_inset
3438
3439 to
3440 \begin_inset Quotes erd
3441 \end_inset
3442
3443  means.
3444  GNU 
3445 \begin_inset Flex Code
3446 status collapsed
3447
3448 \begin_layout Plain Layout
3449 gettext
3450 \end_layout
3451
3452 \end_inset
3453
3454  does not handle such ambiguous translations.
3455  Therefore you have to add some context information to the message: Instead
3456  of 
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 To
3462 \end_layout
3463
3464 \end_inset
3465
3466  it becomes 
3467 \begin_inset Flex Code
3468 status collapsed
3469
3470 \begin_layout Plain Layout
3471 To[[as in 'From format x to format y']]
3472 \end_layout
3473
3474 \end_inset
3475
3476  and 
3477 \begin_inset Flex Code
3478 status collapsed
3479
3480 \begin_layout Plain Layout
3481 To[[as in 'From page x to page y']].
3482 \end_layout
3483
3484 \end_inset
3485
3486  Now the two occurrences of 
3487 \begin_inset Flex Code
3488 status collapsed
3489
3490 \begin_layout Plain Layout
3491 To
3492 \end_layout
3493
3494 \end_inset
3495
3496  are different for 
3497 \begin_inset Flex Code
3498 status collapsed
3499
3500 \begin_layout Plain Layout
3501 gettext
3502 \end_layout
3503
3504 \end_inset
3505
3506  and can be translated correctly to 
3507 \lang german
3508 Nach
3509 \lang english
3510  and 
3511 \lang german
3512 Bis
3513 \lang english
3514 , respectively.
3515 \end_layout
3516
3517 \begin_layout Standard
3518 Of course the context information needs to be stripped off the original
3519  message when no translation is used.
3520  Therefore you have to put it in double square brackets at the end of the
3521  message (see the example above).
3522  The translation mechanism of \SpecialChar LyX
3523  ensures that everything in double square
3524  brackets at the end of messages is removed before displaying the message.
3525 \end_layout
3526
3527 \begin_layout Subsection
3528 Translating the documentation.
3529 \end_layout
3530
3531 \begin_layout Standard
3532 The online documentation (in the 
3533 \begin_inset Flex Noun
3534 status collapsed
3535
3536 \begin_layout Plain Layout
3537 Help
3538 \end_layout
3539
3540 \end_inset
3541
3542 -menu) can (and should!) be translated.
3543  If there are translated versions of the documentation available
3544 \begin_inset Foot
3545 status collapsed
3546
3547 \begin_layout Plain Layout
3548 As of March 2008, at least some of the documents have been translated into
3549  fourteen languages, with the Tutorial available in a few more.
3550 \end_layout
3551
3552 \end_inset
3553
3554  and the locale is set accordingly, these will be used automagically by
3555  \SpecialChar LyX
3556 .
3557  \SpecialChar LyX
3558  looks for translated versions as 
3559 \begin_inset Flex Code
3560 status collapsed
3561
3562 \begin_layout Plain Layout
3563 LyXDir/doc/xx/DocName.lyx
3564 \end_layout
3565
3566 \end_inset
3567
3568 , where 
3569 \begin_inset Flex Code
3570 status collapsed
3571
3572 \begin_layout Plain Layout
3573 xx
3574 \end_layout
3575
3576 \end_inset
3577
3578  is the code for the language currently in use.
3579  If there are no translated documents, the default English versions will
3580  be displayed.
3581  Note that the translated versions must have the same filenames (
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 DocName
3587 \end_layout
3588
3589 \end_inset
3590
3591  above) as the original.
3592  If you feel up to translating the documentation (an excellent way to proof-read
3593  the original documentation by the way!), there are a few things you should
3594  do right away:
3595 \end_layout
3596
3597 \begin_layout Itemize
3598 Check out the documentation translation web page at 
3599 \begin_inset CommandInset href
3600 LatexCommand href
3601 name "https://www.lyx.org/Translation"
3602 target "https://www.lyx.org/Translation"
3603 literal "false"
3604
3605 \end_inset
3606
3607 .
3608  That way, you can find out which (if any) documents have already been translate
3609 d into your language.
3610  You can also find out who (if anyone) is organizing the effort to translate
3611  the documentation into your language.
3612  If no one is organizing the effort, please let us know that you're interested.
3613 \end_layout
3614
3615 \begin_layout Standard
3616 Once you get to actually translating, here's a few hints for you that may
3617  save you trouble:
3618 \end_layout
3619
3620 \begin_layout Itemize
3621 Join the documentation team! There is information on how to do that in 
3622 \begin_inset Flex Code
3623 status collapsed
3624
3625 \begin_layout Plain Layout
3626 Intro.lyx
3627 \end_layout
3628
3629 \end_inset
3630
3631  (
3632 \begin_inset Flex Noun
3633 status collapsed
3634
3635 \begin_layout Plain Layout
3636 Help\SpecialChar menuseparator
3637 Introduction
3638 \end_layout
3639
3640 \end_inset
3641
3642 ), which by the way is the first document you should translate.
3643 \end_layout
3644
3645 \begin_layout Itemize
3646 Learn the typographic conventions for the language you are translating to.
3647  Typography is an ancient art and over the centuries, a great variety of
3648  conventions have developed throughout different parts of the world.
3649  Also study the professional terminology amongst typographers in your country.
3650  Inventing your own terminology will only confuse the users.
3651  
3652 \emph on
3653 (Warning! Typography is addictive!)
3654 \end_layout
3655
3656 \begin_layout Itemize
3657 Make a copy of the document.
3658  This will be your working copy.
3659  You can use this as your personal translated help-file by placing it in
3660  your 
3661 \begin_inset Flex Code
3662 status collapsed
3663
3664 \begin_layout Plain Layout
3665 UserDir/doc/xx/
3666 \end_layout
3667
3668 \end_inset
3669
3670  directory.
3671 \begin_inset Note Greyedout
3672 status open
3673
3674 \begin_layout Plain Layout
3675
3676 \series bold
3677 Note:
3678 \series default
3679  For a complex document with external material (images, etc.), if you make
3680  a copy e.
3681 \begin_inset space \thinspace{}
3682 \end_inset
3683
3684 g.
3685 \begin_inset space \space{}
3686 \end_inset
3687
3688 in a temp dir, beware that the links to external material may be broken
3689  when the document is moved to a different place.
3690  The best way is to retrieve the \SpecialChar LyX
3691  tree from git (see 
3692 \begin_inset Flex URL
3693 status collapsed
3694
3695 \begin_layout Plain Layout
3696
3697 https://www.lyx.org/HowToUseGIT
3698 \end_layout
3699
3700 \end_inset
3701
3702 ) and to edit the doc file in place.
3703 \end_layout
3704
3705 \end_inset
3706
3707
3708 \end_layout
3709
3710 \begin_layout Itemize
3711 Sometimes the original document (from the \SpecialChar LyX
3712  team) will be updated.
3713  Use the source viewer at 
3714 \begin_inset CommandInset href
3715 LatexCommand href
3716 name "https://www.lyx.org/trac/timeline"
3717 target "https://www.lyx.org/trac/timeline"
3718 literal "false"
3719
3720 \end_inset
3721
3722  to see what has been changed.
3723  That way you can easily see which parts of the translated document need
3724  to be updated.
3725 \end_layout
3726
3727 \begin_layout Standard
3728 If you ever find an error in the original document, fix it and notify the
3729  rest of the documentation team of the changes! (You didn't forget to join
3730  the documentation team, did you?)
3731 \end_layout
3732
3733 \begin_layout Standard
3734 \begin_inset Branch OutDated
3735 inverted 0
3736 status collapsed
3737
3738 \begin_layout Section
3739 International Keyboard Support
3740 \end_layout
3741
3742 \begin_layout Standard
3743
3744 \emph on
3745 [Editor's Note: The following section is by
3746 \emph default
3747  
3748 \shape smallcaps
3749 \emph on
3750 Ivan Schreter
3751 \shape default
3752 .
3753  It needs to be fixed to conform to the new Documentation Style sheet and
3754  to make use of the new v1.0 features.
3755  The whole thing also needs to be merged with the section following it.-jw
3756  It may also be badly out of date.-rh (2008)]
3757 \end_layout
3758
3759 \begin_layout Subsection
3760 Defining Own Keymaps: Keymap File Format
3761 \end_layout
3762
3763 \begin_layout Standard
3764 Let's look at a keyboard definition file a little closer.
3765  It is a plain text file defining
3766 \end_layout
3767
3768 \begin_layout Itemize
3769 key-to-key or key-to-string translations
3770 \end_layout
3771
3772 \begin_layout Itemize
3773 dead keys
3774 \end_layout
3775
3776 \begin_layout Itemize
3777 dead keys exceptions
3778 \end_layout
3779
3780 \begin_layout Standard
3781 To define key-to-key or key-to-string translation, use this command:
3782 \end_layout
3783
3784 \begin_layout Quotation
3785 \begin_inset Flex Code
3786 status collapsed
3787
3788 \begin_layout Plain Layout
3789
3790 \backslash
3791 kmap
3792 \end_layout
3793
3794 \end_inset
3795
3796  
3797 \begin_inset Flex Code
3798 status collapsed
3799
3800 \begin_layout Plain Layout
3801 key
3802 \end_layout
3803
3804 \end_inset
3805
3806  outstring 
3807 \end_layout
3808
3809 \begin_layout Standard
3810 where 
3811 \begin_inset Flex Code
3812 status collapsed
3813
3814 \begin_layout Plain Layout
3815 key
3816 \end_layout
3817
3818 \end_inset
3819
3820  is the key to be translated and 
3821 \begin_inset Flex Code
3822 status collapsed
3823
3824 \begin_layout Plain Layout
3825 outstring
3826 \end_layout
3827
3828 \end_inset
3829
3830  is the string to be inserted into the document.
3831  To define dead keys, use:
3832 \end_layout
3833
3834 \begin_layout Quotation
3835 \begin_inset Flex Code
3836 status collapsed
3837
3838 \begin_layout Plain Layout
3839
3840 \backslash
3841 kmod
3842 \end_layout
3843
3844 \end_inset
3845
3846  
3847 \begin_inset Flex Code
3848 status collapsed
3849
3850 \begin_layout Plain Layout
3851 key
3852 \end_layout
3853
3854 \end_inset
3855
3856  deadkey
3857 \end_layout
3858
3859 \begin_layout Standard
3860 where 
3861 \begin_inset Flex Code
3862 status collapsed
3863
3864 \begin_layout Plain Layout
3865 key
3866 \end_layout
3867
3868 \end_inset
3869
3870  is a keyboard key and 
3871 \begin_inset Flex Code
3872 status collapsed
3873
3874 \begin_layout Plain Layout
3875 deadkey
3876 \end_layout
3877
3878 \end_inset
3879
3880  is dead key name.
3881  The following dead keys are supported (shortcut name is in parentheses):
3882 \end_layout
3883
3884 \begin_layout Quotation
3885
3886 \emph on
3887 Name
3888 \begin_inset space \hfill{}
3889 \end_inset
3890
3891 Example
3892 \end_layout
3893
3894 \begin_layout Quotation
3895 acute (acu)
3896 \begin_inset space \hfill{}
3897 \end_inset
3898
3899 áéíóú
3900 \end_layout
3901
3902 \begin_layout Quotation
3903 grave (gra)
3904 \begin_inset space \hfill{}
3905 \end_inset
3906
3907 àèìòù
3908 \end_layout
3909
3910 \begin_layout Quotation
3911 macron (mac)
3912 \begin_inset space \hfill{}
3913 \end_inset
3914
3915  ō
3916 \end_layout
3917
3918 \begin_layout Quotation
3919 tilde (til)
3920 \begin_inset space \hfill{}
3921 \end_inset
3922
3923 ñÑ
3924 \end_layout
3925
3926 \begin_layout Quotation
3927 underbar (underb)
3928 \begin_inset space \hfill{}
3929 \end_inset
3930
3931
3932 \begin_inset ERT
3933 status open
3934
3935 \begin_layout Plain Layout
3936
3937
3938 \backslash
3939 b o
3940 \end_layout
3941
3942 \end_inset
3943
3944
3945 \end_layout
3946
3947 \begin_layout Quotation
3948 cedilla (ced)
3949 \begin_inset space \hfill{}
3950 \end_inset
3951
3952 çÇ
3953 \end_layout
3954
3955 \begin_layout Quotation
3956 underdot (underd)
3957 \begin_inset space \hfill{}
3958 \end_inset
3959
3960
3961 \begin_inset ERT
3962 status open
3963
3964 \begin_layout Plain Layout
3965
3966
3967 \backslash
3968 d o
3969 \end_layout
3970
3971 \end_inset
3972
3973
3974 \end_layout
3975
3976 \begin_layout Quotation
3977 circumflex (circu)
3978 \begin_inset space \hfill{}
3979 \end_inset
3980
3981 âêîôû
3982 \end_layout
3983
3984 \begin_layout Quotation
3985 circle (circl)
3986 \begin_inset space \hfill{}
3987 \end_inset
3988
3989 ÅůŮ
3990 \end_layout
3991
3992 \begin_layout Quotation
3993 tie (tie)
3994 \begin_inset space \hfill{}
3995 \end_inset
3996
3997
3998 \begin_inset ERT
3999 status open
4000
4001 \begin_layout Plain Layout
4002
4003
4004 \backslash
4005 t o
4006 \end_layout
4007
4008 \end_inset
4009
4010
4011 \end_layout
4012
4013 \begin_layout Quotation
4014 breve (bre)
4015 \begin_inset space \hfill{}
4016 \end_inset
4017
4018 ă
4019 \begin_inset ERT
4020 status open
4021
4022 \begin_layout Plain Layout
4023
4024
4025 \backslash
4026 u o
4027 \end_layout
4028
4029 \end_inset
4030
4031
4032 \end_layout
4033
4034 \begin_layout Quotation
4035 caron (car)
4036 \begin_inset space \hfill{}
4037 \end_inset
4038
4039 čšž
4040 \end_layout
4041
4042 \begin_layout Quotation
4043 hungarian umlaut (hug)
4044 \begin_inset space \hfill{}
4045 \end_inset
4046
4047 őű
4048 \end_layout
4049
4050 \begin_layout Quotation
4051 umlaut (uml)
4052 \begin_inset space \hfill{}
4053 \end_inset
4054
4055 äöü
4056 \end_layout
4057
4058 \begin_layout Quotation
4059 dot (dot)
4060 \begin_inset space \hfill{}
4061 \end_inset
4062
4063 ż
4064 \begin_inset ERT
4065 status open
4066
4067 \begin_layout Plain Layout
4068
4069
4070 \backslash
4071 .s
4072 \end_layout
4073
4074 \end_inset
4075
4076
4077 \end_layout
4078
4079 \begin_layout Standard
4080 Since in many international keyboards there are exceptions to what some
4081  dead keys should do, you can define them using
4082 \end_layout
4083
4084 \begin_layout Quotation
4085 \begin_inset Flex Code
4086 status collapsed
4087
4088 \begin_layout Plain Layout
4089
4090 \backslash
4091 kxmod
4092 \end_layout
4093
4094 \end_inset
4095
4096  deadkey key outstring
4097 \end_layout
4098
4099 \begin_layout Standard
4100 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4101 , so you put in
4102 \end_layout
4103
4104 \begin_layout Quotation
4105 \begin_inset Flex Code
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109
4110 \backslash
4111 kxmod
4112 \end_layout
4113
4114 \end_inset
4115
4116  caron o "
4117 \backslash
4118 ^o"
4119 \end_layout
4120
4121 \begin_layout Standard
4122 to make it work correctly.
4123  Also, you have to define as exceptions dead keys over i and j, to remove
4124  the dot from them before inserting an accent mark.
4125  I will change this when the time comes, but so far I haven't had time.
4126 \end_layout
4127
4128 \begin_layout Standard
4129 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4130  double backslash.
4131  Also, quotes and 
4132 \begin_inset Flex Code
4133 status collapsed
4134
4135 \begin_layout Plain Layout
4136 #
4137 \end_layout
4138
4139 \end_inset
4140
4141  have different meaning.
4142  
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 #
4148 \end_layout
4149
4150 \end_inset
4151
4152  marks comments, quotes start and end \SpecialChar LaTeX
4153 -style commands.
4154  To enter quote, you'll need to use 
4155 \begin_inset Flex Code
4156 status collapsed
4157
4158 \begin_layout Plain Layout
4159
4160 \backslash
4161 "
4162 \end_layout
4163
4164 \end_inset
4165
4166 , to enter 
4167 \begin_inset Flex Code
4168 status collapsed
4169
4170 \begin_layout Plain Layout
4171 #
4172 \end_layout
4173
4174 \end_inset
4175
4176 , use 
4177 \begin_inset Flex Code
4178 status collapsed
4179
4180 \begin_layout Plain Layout
4181
4182 \backslash
4183 #
4184 \end_layout
4185
4186 \end_inset
4187
4188 .
4189 \end_layout
4190
4191 \begin_layout Standard
4192 If you make a keyboard description file that works for your language, please
4193  mail it to me, so I can include it in the next keymap distribution.
4194 \end_layout
4195
4196 \begin_layout Standard
4197 More keywords will be supported in keymap configuration file in future,
4198  like
4199 \end_layout
4200
4201 \begin_layout Itemize
4202 \begin_inset Flex Code
4203 status collapsed
4204
4205 \begin_layout Plain Layout
4206
4207 \backslash
4208 kinclude filename
4209 \end_layout
4210
4211 \end_inset
4212
4213
4214 \emph on
4215
4216 \begin_inset space \hfill{}
4217 \end_inset
4218
4219
4220 \begin_inset Flex Code
4221 status collapsed
4222
4223 \begin_layout Plain Layout
4224 include
4225 \end_layout
4226
4227 \end_inset
4228
4229  another file
4230 \end_layout
4231
4232 \begin_layout Itemize
4233 \begin_inset Flex Code
4234 status collapsed
4235
4236 \begin_layout Plain Layout
4237
4238 \backslash
4239 kprog program
4240 \end_layout
4241
4242 \end_inset
4243
4244
4245 \emph on
4246
4247 \begin_inset space \hfill{}
4248 \end_inset
4249
4250
4251 \begin_inset Flex Code
4252 status collapsed
4253
4254 \begin_layout Plain Layout
4255 define
4256 \end_layout
4257
4258 \end_inset
4259
4260  an external keymap translation program 
4261 \end_layout
4262
4263 \begin_layout Standard
4264 Also, it should look into 
4265 \begin_inset Flex Code
4266 status collapsed
4267
4268 \begin_layout Plain Layout
4269 lyxrc
4270 \end_layout
4271
4272 \end_inset
4273
4274  file for defaults, too (for example, a 
4275 \begin_inset Flex Code
4276 status collapsed
4277
4278 \begin_layout Plain Layout
4279
4280 \backslash
4281 kinclude
4282 \end_layout
4283
4284 \end_inset
4285
4286  option to include default keyboard).
4287 \end_layout
4288
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Section
4295 International Keymap Stuff
4296 \begin_inset CommandInset label
4297 LatexCommand label
4298 name "sec:International-Keymap-Stuff"
4299
4300 \end_inset
4301
4302
4303 \end_layout
4304
4305 \begin_layout Standard
4306 \begin_inset Note Note
4307 status open
4308
4309 \begin_layout Plain Layout
4310 In doing the revisions on this document in March 2008, I did not look over
4311  this stuff, as I do not understand it.
4312  It would be good if someone else could do so.
4313  (RH)
4314 \end_layout
4315
4316 \end_inset
4317
4318
4319 \end_layout
4320
4321 \begin_layout Standard
4322 The next two sections describe the 
4323 \begin_inset Flex Code
4324 status collapsed
4325
4326 \begin_layout Plain Layout
4327
4328 \shape up
4329 .kmap
4330 \end_layout
4331
4332 \end_inset
4333
4334  and 
4335 \begin_inset Flex Code
4336 status collapsed
4337
4338 \begin_layout Plain Layout
4339
4340 \shape up
4341 .cdef
4342 \end_layout
4343
4344 \end_inset
4345
4346  file syntax in detail.
4347  These sections should help you design your own key map if the ones provided
4348  do not meet your needs.
4349 \end_layout
4350
4351 \begin_layout Subsection
4352 The .kmap File
4353 \end_layout
4354
4355 \begin_layout Standard
4356
4357 \shape up
4358 .
4359 \begin_inset Flex Code
4360 status collapsed
4361
4362 \begin_layout Plain Layout
4363 kmap
4364 \end_layout
4365
4366 \end_inset
4367
4368  file maps keystrokes to characters or strings.
4369  As the name suggests, it sets a keyboard mapping.
4370  The 
4371 \begin_inset Flex Code
4372 status collapsed
4373
4374 \begin_layout Plain Layout
4375 .kmap
4376 \end_layout
4377
4378 \end_inset
4379
4380
4381 \shape default
4382  file keywords 
4383 \shape up
4384
4385 \begin_inset Flex Code
4386 status collapsed
4387
4388 \begin_layout Plain Layout
4389
4390 \shape up
4391 kmap
4392 \end_layout
4393
4394 \end_inset
4395
4396
4397 \shape default
4398 ,
4399 \shape up
4400  
4401 \shape default
4402
4403 \begin_inset Flex Code
4404 status collapsed
4405
4406 \begin_layout Plain Layout
4407
4408 \shape up
4409 kmod
4410 \end_layout
4411
4412 \end_inset
4413
4414 ,
4415 \shape up
4416  
4417 \shape default
4418
4419 \begin_inset Flex Code
4420 status collapsed
4421
4422 \begin_layout Plain Layout
4423
4424 \shape up
4425 kxmod
4426 \end_layout
4427
4428 \end_inset
4429
4430 , and 
4431 \begin_inset Flex Code
4432 status collapsed
4433
4434 \begin_layout Plain Layout
4435
4436 \shape up
4437 kcomb
4438 \end_layout
4439
4440 \end_inset
4441
4442  are described in this section.
4443 \end_layout
4444
4445 \begin_layout Labeling
4446 \labelwidthstring 00.00.0000
4447 \begin_inset Flex Code
4448 status collapsed
4449
4450 \begin_layout Plain Layout
4451
4452 \shape up
4453 kmap
4454 \end_layout
4455
4456 \end_inset
4457
4458  Map a character to a string
4459 \end_layout
4460
4461 \begin_layout LyX-Code
4462
4463 \backslash
4464 kmap 
4465 \family roman
4466 \emph on
4467 char
4468 \family default
4469 \emph default
4470  
4471 \family roman
4472 \emph on
4473 string
4474 \end_layout
4475
4476 \begin_layout Standard
4477 This will ma
4478 \family roman
4479 p
4480 \family default
4481  
4482 \family roman
4483 \emph on
4484 char
4485 \family default
4486 \emph default
4487  
4488 \family roman
4489 to
4490 \family default
4491  
4492 \family roman
4493 \emph on
4494 string
4495 \emph default
4496 .
4497  Note that in
4498 \family default
4499  
4500 \family roman
4501 \emph on
4502 string
4503 \emph default
4504 ,
4505 \family default
4506  
4507 \family roman
4508 \shape up
4509 the double-quote (")
4510 \family default
4511 \shape default
4512  
4513 \family roman
4514 and
4515 \family default
4516  
4517 \family roman
4518 \shape up
4519 the backslash (
4520 \backslash
4521 )
4522 \family default
4523 \shape default
4524  
4525 \family roman
4526 must be escaped with a preceding backslash (
4527 \shape up
4528
4529 \backslash
4530
4531 \shape default
4532 )
4533 \family default
4534 .
4535 \end_layout
4536
4537 \begin_layout Standard
4538 An example of a 
4539 \begin_inset Flex Noun
4540 status collapsed
4541
4542 \begin_layout Plain Layout
4543
4544 \shape up
4545 kmap
4546 \end_layout
4547
4548 \end_inset
4549
4550  statement to cause the symbol 
4551 \begin_inset Flex Noun
4552 status collapsed
4553
4554 \begin_layout Plain Layout
4555
4556 \shape up
4557 /
4558 \end_layout
4559
4560 \end_inset
4561
4562  to be output for the keystroke 
4563 \begin_inset Flex Noun
4564 status collapsed
4565
4566 \begin_layout Plain Layout
4567
4568 \shape up
4569 &
4570 \end_layout
4571
4572 \end_inset
4573
4574  is:
4575 \end_layout
4576
4577 \begin_layout LyX-Code
4578
4579 \backslash
4580 kmap & /
4581 \end_layout
4582
4583 \begin_layout Labeling
4584 \labelwidthstring 00.00.0000
4585 \begin_inset Flex Code
4586 status collapsed
4587
4588 \begin_layout Plain Layout
4589
4590 \shape up
4591 kmod
4592 \end_layout
4593
4594 \end_inset
4595
4596  Specify an accent character
4597 \end_layout
4598
4599 \begin_layout LyX-Code
4600
4601 \backslash
4602 kmod 
4603 \family roman
4604 \emph on
4605 char accent allowed
4606 \end_layout
4607
4608 \begin_layout Standard
4609 This will make the cha
4610 \family roman
4611 racter
4612 \family default
4613  
4614 \family roman
4615 \emph on
4616 char
4617 \family default
4618 \emph default
4619  
4620 \family roman
4621 \shape up
4622 \emph on
4623 be an accent
4624 \family default
4625 \shape default
4626 \emph default
4627  
4628 \family roman
4629 \shape up
4630 on the
4631 \family default
4632 \shape default
4633  
4634 \family roman
4635 \shape up
4636 \emph on
4637 allowed
4638 \family default
4639 \shape default
4640 \emph default
4641  
4642 \family roman
4643 \shape up
4644 cha
4645 \family default
4646 racter(s).
4647  This is the dead key
4648 \begin_inset Foot
4649 status collapsed
4650
4651 \begin_layout Plain Layout
4652 The term 
4653 \family roman
4654 \emph on
4655 dead key
4656 \family default
4657 \emph default
4658  refers to a key that does not produce a character by itself, but when followed
4659  with another key, produces the desired accent character.
4660  For example, a German characte
4661 \family roman
4662 r with an umlaut like
4663 \family default
4664  
4665 \family roman
4666 \emph on
4667 ä
4668 \family default
4669 \emph default
4670  
4671 \family roman
4672 can be produced in this manner.
4673 \end_layout
4674
4675 \end_inset
4676
4677  mechanism.
4678  
4679 \end_layout
4680
4681 \begin_layout Standard
4682 If you 
4683 \family roman
4684 hit
4685 \family default
4686  
4687 \family roman
4688 \emph on
4689 char
4690 \family default
4691 \emph default
4692  
4693 \family roman
4694 and then another key not in
4695 \family default
4696  
4697 \family roman
4698 \emph on
4699 allowed
4700 \emph default
4701 , you will get a
4702 \family default
4703  
4704 \family roman
4705 \emph on
4706 char
4707 \family default
4708 \emph default
4709  
4710 \family roman
4711 followed by the other, not allowed key, as output.
4712
4713 \family default
4714  Note that a 
4715 \begin_inset Flex Noun
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719
4720 \shape up
4721 Backspace
4722 \end_layout
4723
4724 \end_inset
4725
4726  cancels a dead key, so if 
4727 \family roman
4728 you hit
4729 \family default
4730  
4731 \family roman
4732 \emph on
4733 char
4734 \family default
4735 \emph default
4736  
4737 \begin_inset Flex Noun
4738 status collapsed
4739
4740 \begin_layout Plain Layout
4741
4742 \shape up
4743 \emph on
4744 Backspace
4745 \end_layout
4746
4747 \end_inset
4748
4749 , the cursor will not go one position backwards but will instead cancel
4750  the effect t
4751 \family roman
4752 hat
4753 \family default
4754  
4755 \family roman
4756 \shape up
4757 \emph on
4758 char
4759 \family default
4760 \shape default
4761 \emph default
4762  
4763 \family roman
4764 \shape up
4765 might have had on the next keystroke.
4766  
4767 \end_layout
4768
4769 \begin_layout Standard
4770 The following example specifies that the character ' is to be an acute accent,
4771  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4772 \end_layout
4773
4774 \begin_layout LyX-Code
4775
4776 \backslash
4777 kmod ' acute aeiouAEIOU
4778 \end_layout
4779
4780 \begin_layout Labeling
4781 \labelwidthstring 00.00.0000
4782 \begin_inset Flex Code
4783 status collapsed
4784
4785 \begin_layout Plain Layout
4786 kxmod
4787 \end_layout
4788
4789 \end_inset
4790
4791  Specify an exception to the accent character
4792 \end_layout
4793
4794 \begin_layout LyX-Code
4795
4796 \backslash
4797 kxmod  
4798 \family roman
4799 \emph on
4800 accent char result
4801 \end_layout
4802
4803 \begin_layout Standard
4804 This defines an exce
4805 \family roman
4806 ption for
4807 \family default
4808  
4809 \family roman
4810 \emph on
4811 accent
4812 \family default
4813 \emph default
4814  
4815 \family roman
4816 on
4817 \family default
4818  
4819 \family roman
4820 \emph on
4821 char
4822 \emph default
4823 .
4824  T
4825 \shape up
4826 he
4827 \family default
4828 \shape default
4829  
4830 \family roman
4831 \shape up
4832 \emph on
4833 accent
4834 \family default
4835 \shape default
4836 \emph default
4837  
4838 \family roman
4839 \shape up
4840 must
4841 \family default
4842 \shape default
4843  
4844 \shape up
4845 have been assigned a keystroke with a previous
4846 \shape default
4847  
4848 \begin_inset Flex Code
4849 status collapsed
4850
4851 \begin_layout Plain Layout
4852
4853 \shape up
4854
4855 \backslash
4856 kmo
4857 \shape default
4858 d
4859 \end_layout
4860
4861 \end_inset
4862
4863  declar
4864 \family roman
4865 ation and
4866 \family default
4867  
4868 \family roman
4869 \emph on
4870 char
4871 \family default
4872 \emph default
4873  
4874 \family roman
4875 must not belong in the
4876 \family default
4877  
4878 \family roman
4879 \emph on
4880 allowed
4881 \family default
4882 \emph default
4883  
4884 \family roman
4885 set of
4886 \family default
4887  
4888 \family roman
4889 \emph on
4890 accent
4891 \emph default
4892 .
4893  When
4894 \family default
4895  
4896 \family roman
4897 \shape up
4898 you enter the
4899 \family default
4900 \shape default
4901  
4902 \family roman
4903 \shape up
4904 \emph on
4905 accent char
4906 \family default
4907 \shape default
4908 \emph default
4909  
4910 \family roman
4911 \shape up
4912 sequence,
4913 \family default
4914 \shape default
4915  
4916 \family roman
4917 \shape up
4918 \emph on
4919 result
4920 \emph default
4921  is produced.
4922  If such a declaration does not exist in
4923 \family default
4924 \shape default
4925  
4926 \shape up
4927 the
4928 \shape default
4929  
4930 \begin_inset Flex Code
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934
4935 \shape up
4936 .kmap
4937 \end_layout
4938
4939 \end_inset
4940
4941  file and yo
4942 \family roman
4943 u enter
4944 \family default
4945  
4946 \family roman
4947 \emph on
4948 accent char
4949 \emph default
4950 , you get
4951 \family default
4952  
4953 \family roman
4954 \emph on
4955 accent_key char
4956 \emph default
4957  where
4958 \family default
4959  
4960 \family roman
4961 \emph on
4962 accent_key
4963 \emph default
4964  is the first arg
4965 \family default
4966 ument of the 
4967 \begin_inset Flex Code
4968 status collapsed
4969
4970 \begin_layout Plain Layout
4971
4972 \shape up
4973
4974 \backslash
4975 kmod
4976 \end_layout
4977
4978 \end_inset
4979
4980  declaration.
4981  
4982 \end_layout
4983
4984 \begin_layout Standard
4985 The following command produces causes äi to be produced when you enter acute-i
4986  ('i):
4987 \end_layout
4988
4989 \begin_layout LyX-Code
4990
4991 \backslash
4992 kxmod acute i "
4993 \backslash
4994
4995 \backslash
4996 '{
4997 \backslash
4998
4999 \backslash
5000 i}"
5001 \end_layout
5002
5003 \begin_layout Labeling
5004 \labelwidthstring 00.00.0000
5005 \begin_inset Flex Code
5006 status collapsed
5007
5008 \begin_layout Plain Layout
5009 kcomb
5010 \end_layout
5011
5012 \end_inset
5013
5014  Combine two accent characters
5015 \end_layout
5016
5017 \begin_layout LyX-Code
5018
5019 \backslash
5020 kcomb 
5021 \family roman
5022 \emph on
5023 accent1 accent2 allowed
5024 \end_layout
5025
5026 \begin_layout Standard
5027 This one is getting pretty esoteric.
5028  It allows you to combine the effect 
5029 \family roman
5030 of
5031 \family default
5032  
5033 \family roman
5034 \emph on
5035 accent1
5036 \family default
5037 \emph default
5038  
5039 \family roman
5040 and
5041 \family default
5042  
5043 \family roman
5044 \emph on
5045 accent2
5046 \family default
5047 \emph default
5048  
5049 \family roman
5050 (in that order!) on
5051 \family default
5052  
5053 \family roman
5054 \emph on
5055 allowed
5056 \family default
5057 \emph default
5058  
5059 \family roman
5060 chars.
5061  The keystrokes for
5062 \family default
5063  
5064 \family roman
5065 \emph on
5066 accent1
5067 \family default
5068 \emph default
5069  
5070 \family roman
5071 and
5072 \family default
5073  
5074 \family roman
5075 \emph on
5076 accent2
5077 \family default
5078 \emph default
5079  
5080 \family roman
5081 must have be
5082 \family default
5083 en set with a 
5084 \begin_inset Flex Code
5085 status collapsed
5086
5087 \begin_layout Plain Layout
5088
5089 \shape up
5090
5091 \backslash
5092 kmod
5093 \end_layout
5094
5095 \end_inset
5096
5097  command at 
5098 \family roman
5099 a
5100 \family default
5101  
5102 \family roman
5103 \emph on
5104 previous
5105 \family default
5106 \emph default
5107  
5108 \family roman
5109 point in the
5110 \family default
5111  file.
5112  
5113 \end_layout
5114
5115 \begin_layout Standard
5116 Consider this example from the 
5117 \begin_inset Flex Code
5118 status collapsed
5119
5120 \begin_layout Plain Layout
5121
5122 \shape up
5123 greek.kmap
5124 \end_layout
5125
5126 \end_inset
5127
5128  file:
5129 \end_layout
5130
5131 \begin_layout LyX-Code
5132
5133 \backslash
5134 kmod ; acute aeioyvhAEIOYVH 
5135 \backslash
5136 kmod : umlaut iyIY 
5137 \backslash
5138 kcomb acute umlaut iyIY
5139 \end_layout
5140
5141 \begin_layout Standard
5142 This allows you to press 
5143 \begin_inset Flex Noun
5144 status collapsed
5145
5146 \begin_layout Plain Layout
5147
5148 \shape up
5149 ;:i
5150 \end_layout
5151
5152 \end_inset
5153
5154  and get the effect of 
5155 \begin_inset Flex Code
5156 status collapsed
5157
5158 \begin_layout Plain Layout
5159
5160 \shape up
5161
5162 \backslash
5163 '{
5164 \backslash
5165 "{i}}
5166 \end_layout
5167
5168 \end_inset
5169
5170 .
5171  
5172 \family roman
5173 \shape up
5174 A backspace
5175 \family default
5176 \shape default
5177  in this case cancels the last dead key, so if you press 
5178 \begin_inset Flex Noun
5179 status collapsed
5180
5181 \begin_layout Plain Layout
5182
5183 \shape up
5184 ;: Backspace i
5185 \end_layout
5186
5187 \end_inset
5188
5189  you get 
5190 \begin_inset Flex Code
5191 status collapsed
5192
5193 \begin_layout Plain Layout
5194
5195 \shape up
5196
5197 \backslash
5198 '{i}
5199 \end_layout
5200
5201 \end_inset
5202
5203 .
5204 \end_layout
5205
5206 \begin_layout Subsection
5207 The .cdef File
5208 \end_layout
5209
5210 \begin_layout Standard
5211 After the 
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216
5217 \shape up
5218 .kmap
5219 \end_layout
5220
5221 \end_inset
5222
5223  mapping is performed, a 
5224 \begin_inset Flex Code
5225 status collapsed
5226
5227 \begin_layout Plain Layout
5228
5229 \shape up
5230 .cde
5231 \shape default
5232 f
5233 \end_layout
5234
5235 \end_inset
5236
5237  file maps the strings that the symbols generate to characters in the current
5238  font.
5239  The \SpecialChar LyX
5240  distribution currently includes at least the 
5241 \begin_inset Flex Code
5242 status collapsed
5243
5244 \begin_layout Plain Layout
5245
5246 \shape up
5247 iso8859-1.cdef
5248 \end_layout
5249
5250 \end_inset
5251
5252  and 
5253 \begin_inset Flex Code
5254 status collapsed
5255
5256 \begin_layout Plain Layout
5257
5258 \shape up
5259 iso8859-2.cdef
5260 \end_layout
5261
5262 \end_inset
5263
5264  files.
5265 \end_layout
5266
5267 \begin_layout Standard
5268 In general the 
5269 \begin_inset Flex Code
5270 status collapsed
5271
5272 \begin_layout Plain Layout
5273
5274 \shape up
5275 .cdef
5276 \end_layout
5277
5278 \end_inset
5279
5280  file is a sequence of declarations of the form
5281 \end_layout
5282
5283 \begin_layout LyX-Code
5284
5285 \family roman
5286 \emph on
5287 char_index_in_set
5288 \family default
5289 \emph default
5290  
5291 \family roman
5292 \emph on
5293  string
5294 \end_layout
5295
5296 \begin_layout Standard
5297 For example, in order to map 
5298 \begin_inset Flex Noun
5299 status collapsed
5300
5301 \begin_layout Plain Layout
5302
5303 \shape up
5304
5305 \backslash
5306 '{e}
5307 \end_layout
5308
5309 \end_inset
5310
5311  to the corresponding character in the iso-8859-1 set (233), the following
5312  declaration is used
5313 \end_layout
5314
5315 \begin_layout LyX-Code
5316 233 "
5317 \backslash
5318
5319 \backslash
5320 '{e}"
5321 \end_layout
5322
5323 \begin_layout Standard
5324 with 
5325 \begin_inset Flex Code
5326 status collapsed
5327
5328 \begin_layout Plain Layout
5329
5330 \backslash
5331
5332 \end_layout
5333
5334 \end_inset
5335
5336  and 
5337 \begin_inset Flex Code
5338 status collapsed
5339
5340 \begin_layout Plain Layout
5341 "
5342 \end_layout
5343
5344 \end_inset
5345
5346  being escap
5347 \family roman
5348 ed in
5349 \family default
5350  
5351 \family roman
5352 \emph on
5353 string
5354 \emph default
5355 .
5356  Note that
5357 \family default
5358  the same character can apply to more than one string.
5359  In the 
5360 \begin_inset Flex Code
5361 status collapsed
5362
5363 \begin_layout Plain Layout
5364 i
5365 \shape up
5366 so-8859-7.cdef
5367 \end_layout
5368
5369 \end_inset
5370
5371  file you have
5372 \end_layout
5373
5374 \begin_layout LyX-Code
5375 192 "
5376 \backslash
5377
5378 \backslash
5379 '{
5380 \backslash
5381
5382 \backslash
5383
5384 \backslash
5385 "{i}}"
5386 \begin_inset Newline newline
5387 \end_inset
5388
5389 192 "
5390 \backslash
5391
5392 \backslash
5393
5394 \backslash
5395 "{
5396 \backslash
5397
5398 \backslash
5399 '{i}}"
5400 \end_layout
5401
5402 \begin_layout Standard
5403 If \SpecialChar LyX
5404  cannot find a mapping for the string produced by the keystroke or a
5405  deadkey sequence, it will check if it looks like an accented char and try
5406  to draw an accent over the character on screen.
5407 \end_layout
5408
5409 \begin_layout Subsection
5410 Dead Keys
5411 \end_layout
5412
5413 \begin_layout Standard
5414 There is a second way to add support for international characters through
5415  so-called dead-keys.
5416  A dead-key works in combination with a letter to produce an accented character.
5417  Here, we'll explain how to create a really simple dead-key to illustrate
5418  how they work.
5419 \end_layout
5420
5421 \begin_layout Standard
5422 Suppose you happen to need the circumflex character, 
5423 \begin_inset Quotes eld
5424 \end_inset
5425
5426  ̂
5427 \begin_inset Quotes erd
5428 \end_inset
5429
5430 .
5431  You could bind the 
5432 \begin_inset Flex Noun
5433 status collapsed
5434
5435 \begin_layout Plain Layout
5436 ^
5437 \end_layout
5438
5439 \end_inset
5440
5441 -key [a.k.a.
5442 \begin_inset space ~
5443 \end_inset
5444
5445
5446 \begin_inset Flex Noun
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 Shift-6
5451 \end_layout
5452
5453 \end_inset
5454
5455 ] to the \SpecialChar LyX
5456  command 
5457 \begin_inset Flex Code
5458 status collapsed
5459
5460 \begin_layout Plain Layout
5461 accent-circumflex
5462 \end_layout
5463
5464 \end_inset
5465
5466  in your 
5467 \begin_inset Flex Code
5468 status collapsed
5469
5470 \begin_layout Plain Layout
5471 lyxrc
5472 \end_layout
5473
5474 \end_inset
5475
5476  file.
5477  Now, whenever you type the 
5478 \begin_inset Flex Noun
5479 status collapsed
5480
5481 \begin_layout Plain Layout
5482 ^
5483 \end_layout
5484
5485 \end_inset
5486
5487 -key followed by a letter, that letter will have a circumflex accent on
5488  it.
5489  For example, the sequence 
5490 \begin_inset Quotes eld
5491 \end_inset
5492
5493
5494 \begin_inset Flex Noun
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498 ^e
5499 \end_layout
5500
5501 \end_inset
5502
5503
5504 \begin_inset Quotes erd
5505 \end_inset
5506
5507  produces the letter: 
5508 \begin_inset Quotes eld
5509 \end_inset
5510
5511 ê
5512 \begin_inset Quotes erd
5513 \end_inset
5514
5515 .
5516  If you tried to type 
5517 \begin_inset Quotes eld
5518 \end_inset
5519
5520
5521 \begin_inset Flex Noun
5522 status collapsed
5523
5524 \begin_layout Plain Layout
5525 ^t
5526 \end_layout
5527
5528 \end_inset
5529
5530
5531 \begin_inset Quotes erd
5532 \end_inset
5533
5534 , however, \SpecialChar LyX
5535  will complain with a beep, since a 
5536 \begin_inset Quotes eld
5537 \end_inset
5538
5539
5540 \begin_inset Flex Noun
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 t
5545 \end_layout
5546
5547 \end_inset
5548
5549
5550 \begin_inset Quotes erd
5551 \end_inset
5552
5553  never takes a circumflex accent.
5554  Hitting 
5555 \begin_inset Flex Noun
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 Space
5560 \end_layout
5561
5562 \end_inset
5563
5564  after a dead-key produces the bare-accent.
5565  Please note this last point! If you bind a key to a dead-key, you'll need
5566  to rebind the character on that key to yet another key.
5567  Binding the 
5568 \begin_inset Flex Noun
5569 status collapsed
5570
5571 \begin_layout Plain Layout
5572 ,-key
5573 \end_layout
5574
5575 \end_inset
5576
5577  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5578 \end_layout
5579
5580 \begin_layout Standard
5581 One common way to bind dead-keys is to use 
5582 \begin_inset Flex Noun
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586 Meta-
5587 \end_layout
5588
5589 \end_inset
5590
5591
5592 \begin_inset Flex Noun
5593 status collapsed
5594
5595 \begin_layout Plain Layout
5596 Ctrl-
5597 \end_layout
5598
5599 \end_inset
5600
5601 , and 
5602 \begin_inset Flex Noun
5603 status collapsed
5604
5605 \begin_layout Plain Layout
5606 Shift-
5607 \end_layout
5608
5609 \end_inset
5610
5611  in combination with an accent, like 
5612 \begin_inset Quotes eld
5613 \end_inset
5614
5615
5616 \begin_inset Flex Noun
5617 status collapsed
5618
5619 \begin_layout Plain Layout
5620 ~
5621 \end_layout
5622
5623 \end_inset
5624
5625
5626 \begin_inset Quotes erd
5627 \end_inset
5628
5629  or 
5630 \begin_inset Quotes eld
5631 \end_inset
5632
5633
5634 \begin_inset Flex Noun
5635 status collapsed
5636
5637 \begin_layout Plain Layout
5638 ,
5639 \end_layout
5640
5641 \end_inset
5642
5643
5644 \begin_inset Quotes erd
5645 \end_inset
5646
5647  or 
5648 \begin_inset Quotes eld
5649 \end_inset
5650
5651
5652 \begin_inset Flex Noun
5653 status collapsed
5654
5655 \begin_layout Plain Layout
5656 ^
5657 \end_layout
5658
5659 \end_inset
5660
5661
5662 \begin_inset Quotes erd
5663 \end_inset
5664
5665 .
5666  Another way involves using 
5667 \begin_inset Flex Code
5668 status collapsed
5669
5670 \begin_layout Plain Layout
5671 xmodmap
5672 \end_layout
5673
5674 \end_inset
5675
5676  and 
5677 \begin_inset Flex Code
5678 status collapsed
5679
5680 \begin_layout Plain Layout
5681 xkeycaps
5682 \end_layout
5683
5684 \end_inset
5685
5686  to set up the special 
5687 \begin_inset Flex Code
5688 status collapsed
5689
5690 \begin_layout Plain Layout
5691 Mode_Switch
5692 \end_layout
5693
5694 \end_inset
5695
5696  key.
5697  The 
5698 \begin_inset Flex Code
5699 status collapsed
5700
5701 \begin_layout Plain Layout
5702 Mode_Switch
5703 \end_layout
5704
5705 \end_inset
5706
5707  acts in some ways just like 
5708 \begin_inset Flex Noun
5709 status collapsed
5710
5711 \begin_layout Plain Layout
5712 Shift
5713 \end_layout
5714
5715 \end_inset
5716
5717  and permits you to bind keys to accented characters.
5718  You can also turn keys into dead-keys by binding them to something like
5719  
5720 \begin_inset Flex Code
5721 status collapsed
5722
5723 \begin_layout Plain Layout
5724 usldead_cedilla
5725 \end_layout
5726
5727 \end_inset
5728
5729  and then binding this symbolic key to the corresponding \SpecialChar LyX
5730  command.
5731 \begin_inset Foot
5732 status collapsed
5733
5734 \begin_layout Plain Layout
5735 Note from 
5736 \noun on
5737 John Weiss
5738 \noun default
5739 : This is exactly what I do in my 
5740 \begin_inset Flex Code
5741 status collapsed
5742
5743 \begin_layout Plain Layout
5744 ~/.lyx/lyxrc
5745 \end_layout
5746
5747 \end_inset
5748
5749  and my 
5750 \begin_inset Flex Code
5751 status collapsed
5752
5753 \begin_layout Plain Layout
5754 ~/.xmodmap
5755 \end_layout
5756
5757 \end_inset
5758
5759  files.
5760  I have my 
5761 \begin_inset Flex Noun
5762 status collapsed
5763
5764 \begin_layout Plain Layout
5765 Scroll
5766 \begin_inset space ~
5767 \end_inset
5768
5769 Lock
5770 \end_layout
5771
5772 \end_inset
5773
5774  key set up as 
5775 \begin_inset Flex Code
5776 status collapsed
5777
5778 \begin_layout Plain Layout
5779 Mode_Shift
5780 \end_layout
5781
5782 \end_inset
5783
5784  and a bunch of these 
5785 \begin_inset Quotes eld
5786 \end_inset
5787
5788
5789 \begin_inset Flex Code
5790 status collapsed
5791
5792 \begin_layout Plain Layout
5793 usldead_*
5794 \end_layout
5795
5796 \end_inset
5797
5798
5799 \begin_inset Quotes erd
5800 \end_inset
5801
5802  symbolic keys bound such things as 
5803 \begin_inset Flex Noun
5804 status collapsed
5805
5806 \begin_layout Plain Layout
5807 Scroll
5808 \begin_inset space ~
5809 \end_inset
5810
5811 Lock-^
5812 \end_layout
5813
5814 \end_inset
5815
5816  and 
5817 \begin_inset Flex Noun
5818 status collapsed
5819
5820 \begin_layout Plain Layout
5821 Scroll
5822 \begin_inset space ~
5823 \end_inset
5824
5825 Lock-~
5826 \end_layout
5827
5828 \end_inset
5829
5830 .
5831  This is how I produce my accented characters.
5832 \end_layout
5833
5834 \end_inset
5835
5836  You can make just about anything into the 
5837 \begin_inset Flex Code
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 Mode_Switch
5842 \end_layout
5843
5844 \end_inset
5845
5846  key: One of the 
5847 \begin_inset Flex Noun
5848 status collapsed
5849
5850 \begin_layout Plain Layout
5851 Ctrl-
5852 \end_layout
5853
5854 \end_inset
5855
5856  keys, a spare function key, etc.
5857  As for the \SpecialChar LyX
5858  commands that produce accents, check the entry for 
5859 \begin_inset Flex Code
5860 status collapsed
5861
5862 \begin_layout Plain Layout
5863 accent-acute
5864 \end_layout
5865
5866 \end_inset
5867
5868  in the 
5869 \emph on
5870 Reference Manual
5871 \emph default
5872 .
5873  You'll find the complete list there.
5874 \end_layout
5875
5876 \begin_layout Subsection
5877 Saving your Language Configuration
5878 \end_layout
5879
5880 \begin_layout Standard
5881 You can edit your preferences so that your desired language environment
5882  is automatically configured when \SpecialChar LyX
5883  starts up, via the 
5884 \begin_inset Flex Noun
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 Edit\SpecialChar menuseparator
5889 Preferences
5890 \end_layout
5891
5892 \end_inset
5893
5894  dialog.
5895 \end_layout
5896
5897 \begin_layout Chapter
5898 Installing New Document Classes, Layouts, and Templates
5899 \begin_inset CommandInset label
5900 LatexCommand label
5901 name "cha:Installing-New-Document"
5902
5903 \end_inset
5904
5905
5906 \begin_inset Argument 1
5907 status collapsed
5908
5909 \begin_layout Plain Layout
5910 Installing New Document Classes
5911 \end_layout
5912
5913 \end_inset
5914
5915
5916 \end_layout
5917
5918 \begin_layout Standard
5919 In this chapter, we describe the procedures for creating and installing
5920  new \SpecialChar LyX
5921  layout and template files, as well as offer a refresher on correctly
5922  installing new \SpecialChar LaTeX
5923  document classes.
5924  
5925 \end_layout
5926
5927 \begin_layout Standard
5928 First, let us a say a few words about how one ought to think about the relation
5929  between \SpecialChar LyX
5930  and \SpecialChar LaTeX
5931 .
5932  The thing to understand is that, in a certain sense, \SpecialChar LyX
5933  doesn't know anything
5934  about \SpecialChar LaTeX
5935 .
5936  Indeed, from \SpecialChar LyX
5937 's point of view, \SpecialChar LaTeX
5938  is just one of several 
5939 \begin_inset Quotes eld
5940 \end_inset
5941
5942 backend formats
5943 \begin_inset Quotes erd
5944 \end_inset
5945
5946  in which it is capable of producing output.
5947  Other such formats are DocBook, plaintext, and XHTML.
5948  \SpecialChar LaTeX
5949  is, of course, a particularly important format, but very little of the
5950  information \SpecialChar LyX
5951  has about \SpecialChar LaTeX
5952  is actually contained in the program itself.
5953 \begin_inset Foot
5954 status collapsed
5955
5956 \begin_layout Plain Layout
5957 Some commands are sufficiently complex that they are 
5958 \begin_inset Quotes eld
5959 \end_inset
5960
5961 hardcoded
5962 \begin_inset Quotes erd
5963 \end_inset
5964
5965  into \SpecialChar LyX
5966 .
5967  But the developers generally regard this as a Bad Thing.
5968 \end_layout
5969
5970 \end_inset
5971
5972  Rather, that information, even for the standard classes like 
5973 \begin_inset Flex Code
5974 status collapsed
5975
5976 \begin_layout Plain Layout
5977 article.cls
5978 \end_layout
5979
5980 \end_inset
5981
5982 , is contained in `layout files'.
5983  Similarly, \SpecialChar LyX
5984  itself does not know much about DocBook or XHTML.
5985  What it knows is contained in layout files.
5986 \end_layout
5987
5988 \begin_layout Standard
5989 You can think of the layout file for a given document class as a translation
5990  manual between \SpecialChar LyX
5991  constructs—paragraphs with their corresponding styles,
5992  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5993 , DocBook, or XHTML
5994  constructs.
5995  Almost everything \SpecialChar LyX
5996  knows about 
5997 \begin_inset Flex Code
5998 status collapsed
5999
6000 \begin_layout Plain Layout
6001 article.cls
6002 \end_layout
6003
6004 \end_inset
6005
6006 , for example, is contained in the file 
6007 \begin_inset Flex Code
6008 status collapsed
6009
6010 \begin_layout Plain Layout
6011 article.layout
6012 \end_layout
6013
6014 \end_inset
6015
6016  and in various other files it includes.
6017  For this reason, anyone intending to write layout files should plan to
6018  study the existing files.
6019  A good place to start is with 
6020 \begin_inset Flex Code
6021 status collapsed
6022
6023 \begin_layout Plain Layout
6024 stdsections.inc
6025 \end_layout
6026
6027 \end_inset
6028
6029 , which is included in 
6030 \begin_inset Flex Code
6031 status collapsed
6032
6033 \begin_layout Plain Layout
6034 article.layout
6035 \end_layout
6036
6037 \end_inset
6038
6039
6040 \begin_inset Flex Code
6041 status collapsed
6042
6043 \begin_layout Plain Layout
6044 book.layout
6045 \end_layout
6046
6047 \end_inset
6048
6049 , and many of the other layout files for document classes.
6050  This file is where sections and the like are defined: 
6051 \begin_inset Flex Code
6052 status collapsed
6053
6054 \begin_layout Plain Layout
6055 stdsections.inc
6056 \end_layout
6057
6058 \end_inset
6059
6060  tells \SpecialChar LyX
6061  how paragraphs that are marked with the Section, Subsection, etc,
6062  styles can be translated into corresponding \SpecialChar LaTeX
6063 , DocBook, and XHTML commands
6064  and tags.
6065  The 
6066 \begin_inset Flex Code
6067 status collapsed
6068
6069 \begin_layout Plain Layout
6070 article.layout
6071 \end_layout
6072
6073 \end_inset
6074
6075  file basically just includes several of these 
6076 \begin_inset Flex Code
6077 status collapsed
6078
6079 \begin_layout Plain Layout
6080 std*.inc
6081 \end_layout
6082
6083 \end_inset
6084
6085  files.
6086 \end_layout
6087
6088 \begin_layout Standard
6089 Defining the \SpecialChar LyX
6090 –\SpecialChar LaTeX
6091  correspondence is not the only thing layout files do, though.
6092  Their other job is to define how the \SpecialChar LyX
6093  constructs themselves will appear
6094  on-screen.
6095  The fact that layout files have these two jobs is often a source of confusion,
6096  because they are completely separate.
6097  Telling \SpecialChar LyX
6098  how to translate a certain paragraph style into \SpecialChar LaTeX
6099  does not tell
6100  \SpecialChar LyX
6101  how to display it; conversely, telling \SpecialChar LyX
6102  how to display a certain paragraph
6103  style does not tell \SpecialChar LyX
6104  how to translate it into \SpecialChar LaTeX
6105  (let alone tell \SpecialChar LaTeX
6106  how to
6107  display it).
6108  So, in general, when you define a new \SpecialChar LyX
6109  construct, you must always do two
6110  quite separate things: (i)
6111 \begin_inset space ~
6112 \end_inset
6113
6114 tell \SpecialChar LyX
6115  how to translate it into \SpecialChar LaTeX
6116  and (ii)
6117 \begin_inset space ~
6118 \end_inset
6119
6120 tell \SpecialChar LyX
6121  how to display it.
6122 \end_layout
6123
6124 \begin_layout Standard
6125 Much the same is true, of course, as regards \SpecialChar LyX
6126 's other backend formats, though
6127  XHTML is in some ways different, because in that case \SpecialChar LyX
6128  
6129 \emph on
6130 is
6131 \emph default
6132  able, to some extent, to use information about how it should display a
6133  paragraph on the screen to output information (in the form of CSS) about
6134  how the paragraph should be displayed in a browser.
6135  Even in this case, however, the distinction between what \SpecialChar LyX
6136  does internally
6137  and how things are rendered externally remains in force, and the two can
6138  be controlled separately.
6139  See 
6140 \begin_inset CommandInset ref
6141 LatexCommand ref
6142 reference "sec:Tags-for-XHTML"
6143
6144 \end_inset
6145
6146  for the details.
6147 \end_layout
6148
6149 \begin_layout Section
6150 Installing new \SpecialChar LaTeX
6151  files
6152 \end_layout
6153
6154 \begin_layout Standard
6155 Some installations may not include a \SpecialChar LaTeX
6156  package or class file that you would
6157  like to use within \SpecialChar LyX
6158 .
6159  For example, you might need Foil\SpecialChar TeX
6160 , a package for preparing slides for overhead
6161  projectors.
6162  Modern \SpecialChar LaTeX
6163  distributions like \SpecialChar TeX
6164 Live (2008 or newer) or MiK\SpecialChar TeX
6165  provide a user interface
6166  for installing such packages.
6167  For example, with MiK\SpecialChar TeX
6168 , you start the program 
6169 \begin_inset Quotes eld
6170 \end_inset
6171
6172 Package
6173 \begin_inset space ~
6174 \end_inset
6175
6176 Manager
6177 \begin_inset Quotes erd
6178 \end_inset
6179
6180  to get a list of available packages.
6181  To install one of them, right click on it or use the corresponding toolbar
6182  button.
6183 \end_layout
6184
6185 \begin_layout Standard
6186 If your \SpecialChar LaTeX
6187  distribution does not provide such a `package manager', or if the
6188  package is not available from your distribution, then follow these steps
6189  to install it manually:
6190 \end_layout
6191
6192 \begin_layout Enumerate
6193 Get the package from 
6194 \begin_inset CommandInset href
6195 LatexCommand href
6196 name "CTAN"
6197 target "http://www.ctan.org/"
6198 literal "false"
6199
6200 \end_inset
6201
6202  or wherever.
6203 \end_layout
6204
6205 \begin_layout Enumerate
6206 If the package contains a file with the ending 
6207 \begin_inset Quotes eld
6208 \end_inset
6209
6210
6211 \begin_inset Flex Code
6212 status collapsed
6213
6214 \begin_layout Plain Layout
6215 .ins
6216 \end_layout
6217
6218 \end_inset
6219
6220
6221 \begin_inset Quotes erd
6222 \end_inset
6223
6224  (is the case for Foil\SpecialChar TeX
6225 ) then open a console, change to the folder of this
6226  file and execute the command 
6227 \begin_inset Flex Code
6228 status collapsed
6229
6230 \begin_layout Plain Layout
6231 latex foiltex.ins
6232 \end_layout
6233
6234 \end_inset
6235
6236 .
6237  You have now unpacked the package and have all files to install it.
6238  Most \SpecialChar LaTeX
6239 -packages are not packed and you can skip this step.
6240 \end_layout
6241
6242 \begin_layout Enumerate
6243 Now you need to decide if the package should be available for all users
6244  or only for you.
6245 \end_layout
6246
6247 \begin_deeper
6248 \begin_layout Enumerate
6249 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6250  for all users on your system, then install it in your `local' \SpecialChar TeX
6251  tree, otherwise
6252  install it in your own `user' \SpecialChar TeX
6253  tree.
6254  Where these trees should be created, if they do not already exist, depends
6255  on your system.
6256  To find this out, look in the file 
6257 \begin_inset Flex Code
6258 status collapsed
6259
6260 \begin_layout Plain Layout
6261 texmf.cnf
6262 \end_layout
6263
6264 \end_inset
6265
6266 .
6267 \begin_inset Foot
6268 status collapsed
6269
6270 \begin_layout Plain Layout
6271 This is usually in the directory 
6272 \begin_inset Flex Code
6273 status collapsed
6274
6275 \begin_layout Plain Layout
6276 $TEXMF/web2c
6277 \end_layout
6278
6279 \end_inset
6280
6281 , though you can execute the command 
6282 \begin_inset Flex Code
6283 status collapsed
6284
6285 \begin_layout Plain Layout
6286 kpsewhich texmf.cnf
6287 \end_layout
6288
6289 \end_inset
6290
6291  to locate it.
6292 \end_layout
6293
6294 \end_inset
6295
6296  The location of the `local' \SpecialChar TeX
6297  tree is defined by the 
6298 \begin_inset Flex Code
6299 status collapsed
6300
6301 \begin_layout Plain Layout
6302 TEXMFLOCAL
6303 \end_layout
6304
6305 \end_inset
6306
6307  variable; this is usually somewhere like 
6308 \begin_inset Flex Code
6309 status collapsed
6310
6311 \begin_layout Plain Layout
6312 /usr/local/share/texmf
6313 \end_layout
6314
6315 \end_inset
6316
6317  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6318 Live
6319  distribution.
6320  The location of the `user' \SpecialChar TeX
6321  tree is defined by 
6322 \begin_inset Flex Code
6323 status collapsed
6324
6325 \begin_layout Plain Layout
6326 TEXMFHOME
6327 \end_layout
6328
6329 \end_inset
6330
6331  and is commonly 
6332 \begin_inset Flex Code
6333 status collapsed
6334
6335 \begin_layout Plain Layout
6336 $HOME/texmf
6337 \end_layout
6338
6339 \end_inset
6340
6341  or 
6342 \begin_inset Flex Code
6343 status collapsed
6344
6345 \begin_layout Plain Layout
6346
6347 \family sans
6348 $HOME/.texliveXXXX
6349 \end_layout
6350
6351 \end_inset
6352
6353 .
6354  (If these variables are not predefined, you have to define them.) You'll
6355  probably need root permissions to create or modify the `local' tree, but
6356  not for your `user' tree.
6357 \begin_inset Newline newline
6358 \end_inset
6359
6360 In general, it is recommended to install in the user tree because your user
6361  will not be modified or even overwritten when you upgrade your system.
6362  It will typically also be backed up together with everything else when
6363  you backup your home directory (which, of course, you do on a regular basis).
6364 \end_layout
6365
6366 \begin_layout Enumerate
6367 On Windows, if you want the new package to be available for all users on
6368  your system, change to the folder where \SpecialChar LaTeX
6369  is installed and then change to
6370  the subfolder 
6371 \begin_inset Flex Code
6372 status collapsed
6373
6374 \begin_layout Plain Layout
6375 ~
6376 \backslash
6377 tex
6378 \backslash
6379 latex
6380 \end_layout
6381
6382 \end_inset
6383
6384 .
6385  (For MiK\SpecialChar TeX
6386 , this would be by default the folder 
6387 \begin_inset Flex Code
6388 status collapsed
6389
6390 \begin_layout Plain Layout
6391 ~:
6392 \backslash
6393 Programs
6394 \backslash
6395 MiKTeX
6396 \backslash
6397 tex
6398 \backslash
6399 latex
6400 \end_layout
6401
6402 \end_inset
6403
6404 .)
6405 \begin_inset Foot
6406 status collapsed
6407
6408 \begin_layout Plain Layout
6409 Note that this will be the correct path only on English installations.
6410  On a German one, it would be 
6411 \begin_inset Flex Code
6412 status collapsed
6413
6414 \begin_layout Plain Layout
6415 ~:
6416 \backslash
6417 Programme
6418 \backslash
6419 MiKTeX
6420 \backslash
6421 tex
6422 \backslash
6423 latex
6424 \end_layout
6425
6426 \end_inset
6427
6428 , and similarly for other languages.
6429 \end_layout
6430
6431 \end_inset
6432
6433  Create there a new folder 
6434 \begin_inset Flex Code
6435 status collapsed
6436
6437 \begin_layout Plain Layout
6438 foiltex
6439 \end_layout
6440
6441 \end_inset
6442
6443  and copy all files of the package into it.
6444  
6445 \begin_inset Newline newline
6446 \end_inset
6447
6448 If the package should only available for you or you don't have admin permissions
6449 , do the same, but in the local \SpecialChar LaTeX
6450  folder.
6451  E.
6452 \begin_inset space \thinspace{}
6453 \end_inset
6454
6455 g., for MiK\SpecialChar TeX
6456
6457 \begin_inset space ~
6458 \end_inset
6459
6460 2.8 under Windows XP, this would be the folder:
6461 \begin_inset Newline newline
6462 \end_inset
6463
6464
6465 \family sans
6466
6467 \begin_inset Flex Code
6468 status collapsed
6469
6470 \begin_layout Plain Layout
6471 ~:
6472 \backslash
6473 Documents and Settings
6474 \backslash
6475 <username>
6476 \backslash
6477 Application Data
6478 \backslash
6479
6480 \end_layout
6481
6482 \end_inset
6483
6484
6485 \begin_inset Newline newline
6486 \end_inset
6487
6488
6489 \family default
6490
6491 \begin_inset Phantom HPhantom
6492 status open
6493
6494 \begin_layout Plain Layout
6495
6496 \family sans
6497 ~:
6498 \backslash
6499
6500 \end_layout
6501
6502 \end_inset
6503
6504
6505 \begin_inset Flex Code
6506 status collapsed
6507
6508 \begin_layout Plain Layout
6509 MiKTeX
6510 \backslash
6511 2.8
6512 \backslash
6513 tex
6514 \backslash
6515 latex
6516 \end_layout
6517
6518 \end_inset
6519
6520
6521 \begin_inset Newline newline
6522 \end_inset
6523
6524 On Vista, it would be:
6525 \begin_inset Newline newline
6526 \end_inset
6527
6528
6529 \begin_inset Flex Code
6530 status collapsed
6531
6532 \begin_layout Plain Layout
6533 ~:
6534 \backslash
6535 Users
6536 \backslash
6537 <username>
6538 \backslash
6539 AppData
6540 \backslash
6541 Roaming
6542 \backslash
6543 2.8
6544 \backslash
6545 MiKTeX
6546 \backslash
6547 tex
6548 \backslash
6549 latex
6550 \end_layout
6551
6552 \end_inset
6553
6554
6555 \end_layout
6556
6557 \end_deeper
6558 \begin_layout Enumerate
6559 Now one only need to tell \SpecialChar LaTeX
6560  that there are new files.
6561  This depends on the used \SpecialChar LaTeX
6562 -Distribution:
6563 \end_layout
6564
6565 \begin_deeper
6566 \begin_layout Enumerate
6567 For \SpecialChar TeX
6568 Live execute the command 
6569 \begin_inset Flex Code
6570 status collapsed
6571
6572 \begin_layout Plain Layout
6573 texhash
6574 \end_layout
6575
6576 \end_inset
6577
6578  from a console.
6579  If you installed the package for all users, then you will probably need
6580  to have root permissions for that.
6581 \end_layout
6582
6583 \begin_layout Enumerate
6584 For MiK\SpecialChar TeX
6585 , if you have installed the package for all users, start the program
6586  
6587 \begin_inset Quotes eld
6588 \end_inset
6589
6590 Settings
6591 \begin_inset space ~
6592 \end_inset
6593
6594 (Admin)
6595 \begin_inset Quotes erd
6596 \end_inset
6597
6598  and press the button marked 
6599 \begin_inset Quotes eld
6600 \end_inset
6601
6602 Refresh FNDB
6603 \begin_inset Quotes erd
6604 \end_inset
6605
6606 .
6607  Otherwise start the program 
6608 \begin_inset Quotes eld
6609 \end_inset
6610
6611 Settings
6612 \begin_inset Quotes erd
6613 \end_inset
6614
6615  and do the same.
6616 \end_layout
6617
6618 \end_deeper
6619 \begin_layout Enumerate
6620 Finally, you need to tell \SpecialChar LyX
6621  that there are new packages available.
6622  So, in \SpecialChar LyX
6623 , use the menu 
6624 \begin_inset Flex Noun
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628 Tools
6629 \family sans
6630 \SpecialChar menuseparator
6631 Reconfigure
6632 \end_layout
6633
6634 \end_inset
6635
6636  and then restart \SpecialChar LyX
6637 .
6638 \end_layout
6639
6640 \begin_layout Standard
6641 Now the package is installed.
6642  In our example, the document class 
6643 \begin_inset Flex Code
6644 status collapsed
6645
6646 \begin_layout Plain Layout
6647 FoilTex
6648 \end_layout
6649
6650 \end_inset
6651
6652  will now be available under 
6653 \begin_inset Flex Noun
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 Document\SpecialChar menuseparator
6658 Settings\SpecialChar menuseparator
6659 Document Class
6660 \end_layout
6661
6662 \end_inset
6663
6664  (in the 
6665 \begin_inset Quotes eld
6666 \end_inset
6667
6668 Presentations
6669 \begin_inset Quotes erd
6670 \end_inset
6671
6672  category).
6673  
6674 \end_layout
6675
6676 \begin_layout Standard
6677 If you would like to use a \SpecialChar LaTeX
6678  document class that is not even listed in the
6679  menu 
6680 \begin_inset Flex Noun
6681 status collapsed
6682
6683 \begin_layout Plain Layout
6684 Document\SpecialChar menuseparator
6685 Settings\SpecialChar menuseparator
6686 Document Class
6687 \end_layout
6688
6689 \end_inset
6690
6691 , then you need to create a `layout' file for it.
6692  That is the topic of the next section.
6693 \end_layout
6694
6695 \begin_layout Section
6696 Types of layout files
6697 \end_layout
6698
6699 \begin_layout Standard
6700 This section describes the various sorts of \SpecialChar LyX
6701  files that contain layout informati
6702 on.
6703  These files describe various paragraph and character styles, determining
6704  how \SpecialChar LyX
6705  should display them and how they should be translated into \SpecialChar LaTeX
6706 , DocBook,
6707  XHTML, or whatever output format is being used.
6708  
6709 \end_layout
6710
6711 \begin_layout Standard
6712 We shall try to provide a thorough description of the process of writing
6713  layout files here.
6714  However, there are so many different types of documents supported even
6715  by just \SpecialChar LaTeX
6716  that we can't hope to cover every different possibility or problem
6717  you might encounter.
6718  The \SpecialChar LyX
6719  users' list is frequented by people with lots of experience with layout
6720  design who are willing to share what they've learned, so please feel free
6721  to ask questions there.
6722 \end_layout
6723
6724 \begin_layout Standard
6725 As you prepare to write a new layout, it is extremely helpful to look at
6726  the layouts distributed with \SpecialChar LyX
6727 .
6728  If you write a \SpecialChar LyX
6729  layout for a \SpecialChar LaTeX
6730  document class that might also be used by
6731  others, or write a module that might be useful to others, then you should
6732  consider posting your layout to the 
6733 \begin_inset CommandInset href
6734 LatexCommand href
6735 name "layout section on the LyX wiki"
6736 target "https://wiki.lyx.org/Layouts/Layouts"
6737 literal "false"
6738
6739 \end_inset
6740
6741  or even to the \SpecialChar LyX
6742  developers' list, so that it might be included in \SpecialChar LyX
6743  itself.
6744 \begin_inset Foot
6745 status collapsed
6746
6747 \begin_layout Plain Layout
6748 Note that \SpecialChar LyX
6749  is licensed under the General Public License, so any material
6750  that is contributed to \SpecialChar LyX
6751  must be similarly licensed.
6752 \end_layout
6753
6754 \end_inset
6755
6756
6757 \end_layout
6758
6759 \begin_layout Subsection
6760 Layout modules
6761 \begin_inset CommandInset label
6762 LatexCommand label
6763 name "subsec:Layout-modules"
6764
6765 \end_inset
6766
6767
6768 \end_layout
6769
6770 \begin_layout Standard
6771 We have spoken to this point about `layout files'.
6772  But there are different sorts of files that contain layout information.
6773  Layout files, strictly so called, have the 
6774 \begin_inset Flex Code
6775 status collapsed
6776
6777 \begin_layout Plain Layout
6778 .layout
6779 \end_layout
6780
6781 \end_inset
6782
6783  extension and provide \SpecialChar LyX
6784  with information about document classes.
6785  Since \SpecialChar LyX
6786  1.6 layout information can also be contained in layout 
6787 \emph on
6788 modules
6789 \emph default
6790 , which have the 
6791 \begin_inset Flex Code
6792 status collapsed
6793
6794 \begin_layout Plain Layout
6795 .module
6796 \end_layout
6797
6798 \end_inset
6799
6800  extension.
6801  Modules are to \SpecialChar LaTeX
6802  packages much as layouts are to \SpecialChar LaTeX
6803  classes, and some modules—such
6804  as the 
6805 \begin_inset Flex Code
6806 status collapsed
6807
6808 \begin_layout Plain Layout
6809 endnotes
6810 \end_layout
6811
6812 \end_inset
6813
6814  module—specifically provide support for one package.
6815  In a sense, layout modules are similar to included
6816 \begin_inset Foot
6817 status collapsed
6818
6819 \begin_layout Plain Layout
6820 These can have any extension, but by convention have the 
6821 \begin_inset Flex Code
6822 status collapsed
6823
6824 \begin_layout Plain Layout
6825 .inc
6826 \end_layout
6827
6828 \end_inset
6829
6830  extension.
6831 \end_layout
6832
6833 \end_inset
6834
6835  files—files like 
6836 \begin_inset Flex Code
6837 status collapsed
6838
6839 \begin_layout Plain Layout
6840 stdsections.inc
6841 \end_layout
6842
6843 \end_inset
6844
6845 —in that modules are not specific to a given document class but may be used
6846  with many different classes.
6847  The difference is that using an included file with 
6848 \begin_inset Flex Code
6849 status collapsed
6850
6851 \begin_layout Plain Layout
6852 article.cls
6853 \end_layout
6854
6855 \end_inset
6856
6857  requires editing that file.
6858  Modules, by contrast, are selected in the 
6859 \begin_inset Flex Noun
6860 status collapsed
6861
6862 \begin_layout Plain Layout
6863 Document\SpecialChar menuseparator
6864 Settings
6865 \end_layout
6866
6867 \end_inset
6868
6869  dialog.
6870 \end_layout
6871
6872 \begin_layout Standard
6873 Building modules is the easiest way to get started with layout editing,
6874  since it can be as simple as adding a single new paragraph style or flex
6875  inset.
6876  But modules may, in principle, contain anything a layout file can contain.
6877 \end_layout
6878
6879 \begin_layout Standard
6880 After creating a new module and copying it to the 
6881 \begin_inset Flex Code
6882 status collapsed
6883
6884 \begin_layout Plain Layout
6885 layouts/
6886 \end_layout
6887
6888 \end_inset
6889
6890  folder, you will need to reconfigure and then restart \SpecialChar LyX
6891  for the module to
6892  appear in the menu.
6893  However, changes you make to the module will be seen immediately, if you
6894  open 
6895 \begin_inset Flex Noun
6896 status collapsed
6897
6898 \begin_layout Plain Layout
6899 Document\SpecialChar menuseparator
6900 Settings
6901 \end_layout
6902
6903 \end_inset
6904
6905 , highlight something, and then hit 
6906 \begin_inset Quotes eld
6907 \end_inset
6908
6909 OK
6910 \begin_inset Quotes erd
6911 \end_inset
6912
6913 .
6914  
6915 \emph on
6916 It is strongly recommended that you save your work before doing this
6917 \emph default
6918 .
6919  In fact, 
6920 \emph on
6921 it is strongly recommended that you not attempt to edit modules while simultaneo
6922 usly working on actual documents
6923 \emph default
6924 .
6925  Though of course the developers strive to keep \SpecialChar LyX
6926  stable in such situations,
6927  syntax errors and the like in your module file could cause strange behavior.
6928 \end_layout
6929
6930 \begin_layout Subsubsection
6931 Local Layout
6932 \end_layout
6933
6934 \begin_layout Standard
6935 Modules are to \SpecialChar LyX
6936  as packages are to \SpecialChar LaTeX
6937 .
6938  Sometimes, however, you find yourself wanting a specific inset or character
6939  style just for one document and writing a module that will also be available
6940  to other documents makes little sense.
6941  What you need is \SpecialChar LyX
6942 's 
6943 \begin_inset Quotes eld
6944 \end_inset
6945
6946 Local Layout
6947 \begin_inset Quotes erd
6948 \end_inset
6949
6950 .
6951 \end_layout
6952
6953 \begin_layout Standard
6954 You will find it under 
6955 \family sans
6956 Document\SpecialChar menuseparator
6957 Settings\SpecialChar menuseparator
6958 Local Layout
6959 \family default
6960 .
6961  The large text box allows you to enter anything that you might enter in
6962  a layout file or module.
6963  You can think of a document's local layout, in fact, as a module that belongs
6964  just to it.
6965  So, in particular, you must enter a 
6966 \begin_inset Flex Code
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 Format
6971 \end_layout
6972
6973 \end_inset
6974
6975  tag.
6976  Any format is acceptable, but one would normally use the format current
6977  at the time.
6978  (In \SpecialChar LyX
6979  2.3, the current layout format is 63.)
6980 \end_layout
6981
6982 \begin_layout Standard
6983 When you have entered something in the 
6984 \begin_inset Flex Code
6985 status collapsed
6986
6987 \begin_layout Plain Layout
6988 Local Layout
6989 \end_layout
6990
6991 \end_inset
6992
6993  pane, \SpecialChar LyX
6994  will enable the 
6995 \begin_inset Quotes eld
6996 \end_inset
6997
6998 Validate
6999 \begin_inset Quotes erd
7000 \end_inset
7001
7002  button at the bottom.
7003  Clicking this button will cause \SpecialChar LyX
7004  to determine whether what you have entered
7005  is valid layout information for the chosen format.
7006  \SpecialChar LyX
7007  will report the result but, unfortunately, will not tell you what errors
7008  there might have been.
7009  These will be written to the terminal, however, if \SpecialChar LyX
7010  is started from a terminal.
7011  You will not be permitted to save your local layout until you have entered
7012  something valid.
7013 \end_layout
7014
7015 \begin_layout Standard
7016 The warnings at the end of the previous section apply here, too.
7017  Do not play with local layout while you are actually working, especially
7018  if you have not saved your document.
7019  That said, using local layout with a test document can be a very convenient
7020  way to try out layout ideas, or even to start developing a module.
7021 \end_layout
7022
7023 \begin_layout Subsection
7024 Layout for 
7025 \begin_inset Flex Noun
7026 status collapsed
7027
7028 \begin_layout Plain Layout
7029 .sty
7030 \end_layout
7031
7032 \end_inset
7033
7034  files
7035 \end_layout
7036
7037 \begin_layout Standard
7038 There are two situations you are likely to encounter when wanting to support
7039  a new \SpecialChar LaTeX
7040  document class, involving style (
7041 \begin_inset Flex Code
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 .sty
7046 \end_layout
7047
7048 \end_inset
7049
7050 ) files and \SpecialChar LaTeX2e
7051  class (
7052 \begin_inset Flex Code
7053 status collapsed
7054
7055 \begin_layout Plain Layout
7056 .cls
7057 \end_layout
7058
7059 \end_inset
7060
7061 ) .
7062  Supporting a style file is usually fairly easy.
7063  Supporting a new class file is a bit harder.
7064  We'll discuss the former in this section and the latter in the next.
7065  Similar remarks apply, of course, if you want to support a new DocBook
7066  DTD.
7067 \end_layout
7068
7069 \begin_layout Standard
7070 The easier case is the one in which your new document class is provided
7071  as a style file that is to be used in conjunction with an already supported
7072  document class.
7073  For the sake of the example, we'll assume that the style file is called
7074  
7075 \begin_inset Flex Noun
7076 status collapsed
7077
7078 \begin_layout Plain Layout
7079 myclass.sty
7080 \end_layout
7081
7082 \end_inset
7083
7084  and that it is meant to be used with 
7085 \begin_inset Flex Noun
7086 status collapsed
7087
7088 \begin_layout Plain Layout
7089 report.cls
7090 \end_layout
7091
7092 \end_inset
7093
7094 , which is a standard class.
7095  
7096 \end_layout
7097
7098 \begin_layout Standard
7099 Start by copying the existing class's layout file into your local directory:
7100 \begin_inset Foot
7101 status collapsed
7102
7103 \begin_layout Plain Layout
7104 Of course, which directory is your local directory will vary by platform,
7105  and \SpecialChar LyX
7106  allows you to specify your local directory on startup, too, using
7107  the 
7108 \begin_inset Flex Code
7109 status collapsed
7110
7111 \begin_layout Plain Layout
7112 -userdir
7113 \end_layout
7114
7115 \end_inset
7116
7117  option.
7118 \end_layout
7119
7120 \end_inset
7121
7122
7123 \end_layout
7124
7125 \begin_layout LyX-Code
7126 cp report.layout ~/.lyx/layouts/myclass.layout
7127 \end_layout
7128
7129 \begin_layout Standard
7130 Then edit 
7131 \begin_inset Flex Code
7132 status collapsed
7133
7134 \begin_layout Plain Layout
7135 myclass.layout
7136 \end_layout
7137
7138 \end_inset
7139
7140  and change the line: 
7141 \end_layout
7142
7143 \begin_layout LyX-Code
7144
7145 \backslash
7146 DeclareLaTeXClass{Report (Standard Class)}
7147 \end_layout
7148
7149 \begin_layout Standard
7150 to read
7151 \end_layout
7152
7153 \begin_layout LyX-Code
7154
7155 \backslash
7156 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7157 \end_layout
7158
7159 \begin_layout Standard
7160 Then add:
7161 \end_layout
7162
7163 \begin_layout LyX-Code
7164 Preamble 
7165 \begin_inset Newline newline
7166 \end_inset
7167
7168     
7169 \backslash
7170 usepackage{myclass}
7171 \begin_inset Newline newline
7172 \end_inset
7173
7174 EndPreamble
7175 \end_layout
7176
7177 \begin_layout Standard
7178 near the top of the file.
7179 \end_layout
7180
7181 \begin_layout Standard
7182 Start \SpecialChar LyX
7183  and select 
7184 \begin_inset Flex Noun
7185 status collapsed
7186
7187 \begin_layout Plain Layout
7188 Tools\SpecialChar menuseparator
7189 Reconfigure
7190 \end_layout
7191
7192 \end_inset
7193
7194 .
7195  Then restart \SpecialChar LyX
7196  and try creating a new document.
7197  You should see "
7198 \begin_inset Flex Noun
7199 status collapsed
7200
7201 \begin_layout Plain Layout
7202 Report (My Class)
7203 \end_layout
7204
7205 \end_inset
7206
7207 " as a document class option in the 
7208 \begin_inset Flex Noun
7209 status collapsed
7210
7211 \begin_layout Plain Layout
7212 Document\SpecialChar menuseparator
7213 Settings
7214 \end_layout
7215
7216 \end_inset
7217
7218  dialog.
7219  It is likely that some of the sectioning commands and such in your new
7220  class will work differently from how they worked in the base class—
7221 \begin_inset Flex Code
7222 status collapsed
7223
7224 \begin_layout Plain Layout
7225 report
7226 \end_layout
7227
7228 \end_inset
7229
7230  in this example—so you can fiddle around with the settings for the different
7231  sections if you wish.
7232  The layout information for sections is contained in 
7233 \begin_inset Flex Code
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 stdsections.inc
7238 \end_layout
7239
7240 \end_inset
7241
7242 , but you do not need to copy and change this file.
7243  Instead, you can simply add your changes to your layout file, after the
7244  line 
7245 \begin_inset Flex Code
7246 status collapsed
7247
7248 \begin_layout Plain Layout
7249 Input stdclass.inc
7250 \end_layout
7251
7252 \end_inset
7253
7254 , which itself includes 
7255 \begin_inset Flex Code
7256 status collapsed
7257
7258 \begin_layout Plain Layout
7259 stdsections.inc
7260 \end_layout
7261
7262 \end_inset
7263
7264 .
7265  For example, you might add these lines:
7266 \end_layout
7267
7268 \begin_layout LyX-Code
7269 Style Chapter
7270 \end_layout
7271
7272 \begin_layout LyX-Code
7273     Font
7274 \end_layout
7275
7276 \begin_layout LyX-Code
7277         Family Sans
7278 \end_layout
7279
7280 \begin_layout LyX-Code
7281     EndFont
7282 \end_layout
7283
7284 \begin_layout LyX-Code
7285 End
7286 \end_layout
7287
7288 \begin_layout Standard
7289 to change the font for chapter headings to sans-serif.
7290  This will override (or, in this case, add to) the existing declaration
7291  for the Chapter style.
7292  
7293 \end_layout
7294
7295 \begin_layout Standard
7296 Your new package may also provide commands or environments not present in
7297  the base class.
7298  In this case, you will want to add these to the layout file.
7299  See 
7300 \begin_inset CommandInset ref
7301 LatexCommand ref
7302 reference "sec:TextClass"
7303
7304 \end_inset
7305
7306  for information on how to do so.
7307 \end_layout
7308
7309 \begin_layout Standard
7310 If 
7311 \begin_inset Flex Noun
7312 status collapsed
7313
7314 \begin_layout Plain Layout
7315 myclass.sty
7316 \end_layout
7317
7318 \end_inset
7319
7320  can be used with several different document classes, and even if it cannot,
7321  you might find it easiest just to write a module that you can load with
7322  the base class.
7323  The simplest possible such module would be:
7324 \end_layout
7325
7326 \begin_layout LyX-Code
7327 #
7328 \backslash
7329 DeclareLyXModule{My Class} 
7330 \end_layout
7331
7332 \begin_layout LyX-Code
7333 #DescriptionBegin 
7334 \end_layout
7335
7336 \begin_layout LyX-Code
7337 #Support for myclass.sty.
7338 \end_layout
7339
7340 \begin_layout LyX-Code
7341 #DescriptionEnd
7342 \begin_inset Newline newline
7343 \end_inset
7344
7345
7346 \end_layout
7347
7348 \begin_layout LyX-Code
7349 Format 63
7350 \begin_inset Newline newline
7351 \end_inset
7352
7353
7354 \end_layout
7355
7356 \begin_layout LyX-Code
7357 Preamble
7358 \begin_inset Newline newline
7359 \end_inset
7360
7361     
7362 \backslash
7363 usepackage{myclass}
7364 \begin_inset Newline newline
7365 \end_inset
7366
7367 EndPreamble
7368 \end_layout
7369
7370 \begin_layout Standard
7371 A more complex module might modify the behavior of some existing constructs
7372  or define some new ones.
7373  Again, see 
7374 \begin_inset CommandInset ref
7375 LatexCommand ref
7376 reference "sec:TextClass"
7377
7378 \end_inset
7379
7380  for discussion.
7381 \end_layout
7382
7383 \begin_layout Subsection
7384 Layout for 
7385 \begin_inset Flex Noun
7386 status collapsed
7387
7388 \begin_layout Plain Layout
7389 .cls
7390 \end_layout
7391
7392 \end_inset
7393
7394  files
7395 \end_layout
7396
7397 \begin_layout Standard
7398 There are two possibilities here.
7399  One is that the class file is itself based upon an existing document class.
7400  For example, many thesis classes are based upon 
7401 \begin_inset Flex Noun
7402 status collapsed
7403
7404 \begin_layout Plain Layout
7405 book.cls
7406 \end_layout
7407
7408 \end_inset
7409
7410 .
7411  To see whether yours is, look for a line like
7412 \end_layout
7413
7414 \begin_layout LyX-Code
7415
7416 \backslash
7417 LoadClass{book}
7418 \end_layout
7419
7420 \begin_layout Standard
7421 in the file.
7422  If so, then you may proceed largely as in the previous section, though
7423  the 
7424 \begin_inset Flex Code
7425 status collapsed
7426
7427 \begin_layout Plain Layout
7428 Declare\SpecialChar LaTeX
7429 Class
7430 \end_layout
7431
7432 \end_inset
7433
7434  line will be different.
7435  If your new class is 
7436 \begin_inset Flex Code
7437 status collapsed
7438
7439 \begin_layout Plain Layout
7440 thesis
7441 \end_layout
7442
7443 \end_inset
7444
7445  and it is based upon 
7446 \begin_inset Flex Code
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 book
7451 \end_layout
7452
7453 \end_inset
7454
7455 , then the line should read:
7456 \begin_inset Foot
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 And it will be easiest if you save the file to 
7461 \begin_inset Flex Code
7462 status collapsed
7463
7464 \begin_layout Plain Layout
7465 thesis.layout
7466 \end_layout
7467
7468 \end_inset
7469
7470 : \SpecialChar LyX
7471  assumes that the document class has the same name as the layout file.
7472  
7473 \end_layout
7474
7475 \end_inset
7476
7477
7478 \end_layout
7479
7480 \begin_layout LyX-Code
7481
7482 \backslash
7483 DeclareLaTeXClass[thesis,book]{thesis}
7484 \end_layout
7485
7486 \begin_layout Standard
7487 If, on the other hand, the new class is not based upon an existing class,
7488  you will probably have to 
7489 \begin_inset Quotes eld
7490 \end_inset
7491
7492 roll your own
7493 \begin_inset Quotes erd
7494 \end_inset
7495
7496  layout.
7497  We strongly suggest copying an existing layout file which uses a similar
7498  \SpecialChar LaTeX
7499  class and then modifying it, if you can do so.
7500  At least use an existing file as a starting point so you can find out what
7501  items you need to worry about.
7502  Again, the specifics are covered below.
7503 \end_layout
7504
7505 \begin_layout Subsection
7506 Creating templates
7507 \begin_inset CommandInset label
7508 LatexCommand label
7509 name "subsec:Creating-Templates"
7510
7511 \end_inset
7512
7513
7514 \end_layout
7515
7516 \begin_layout Standard
7517 Once you have written a layout file for a new document class, you might
7518  want to consider writing a 
7519 \emph on
7520 template
7521 \emph default
7522  for it, too.
7523  A template acts as a kind of tutorial for your layout, showing how it might
7524  be used, though containing dummy content.
7525  You can of course look at the various templates included with \SpecialChar LyX
7526  for ideas.
7527 \end_layout
7528
7529 \begin_layout Standard
7530 Templates are created just like usual documents: using \SpecialChar LyX
7531 .
7532  The only difference is that usual documents contain all possible settings,
7533  including the font scheme and the paper size.
7534  Usually a user doesn't want a template to overwrite his preferred settings
7535  for such parameters.
7536  For that reason, the designer of a template should remove the corresponding
7537  commands like 
7538 \begin_inset Flex Code
7539 status collapsed
7540
7541 \begin_layout Plain Layout
7542
7543 \backslash
7544 font_roman
7545 \end_layout
7546
7547 \end_inset
7548
7549  or 
7550 \begin_inset Flex Code
7551 status collapsed
7552
7553 \begin_layout Plain Layout
7554
7555 \backslash
7556 papersize
7557 \end_layout
7558
7559 \end_inset
7560
7561  from the template \SpecialChar LyX
7562  file.
7563  This can be done with any simple text-editor, for example 
7564 \begin_inset Flex Code
7565 status collapsed
7566
7567 \begin_layout Plain Layout
7568 vi
7569 \end_layout
7570
7571 \end_inset
7572
7573  or 
7574 \begin_inset Flex Code
7575 status collapsed
7576
7577 \begin_layout Plain Layout
7578 notepad
7579 \end_layout
7580
7581 \end_inset
7582
7583 .
7584 \end_layout
7585
7586 \begin_layout Standard
7587 Put the edited template files you create in 
7588 \begin_inset Flex Code
7589 status collapsed
7590
7591 \begin_layout Plain Layout
7592 UserDir/templates/
7593 \end_layout
7594
7595 \end_inset
7596
7597 , copy the ones you use from the global template directory in 
7598 \begin_inset Flex Code
7599 status collapsed
7600
7601 \begin_layout Plain Layout
7602 LyXDir/templates/
7603 \end_layout
7604
7605 \end_inset
7606
7607  to the same place, and redefine the template path in the 
7608 \begin_inset Flex Noun
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 Tools\SpecialChar menuseparator
7613 Preferences\SpecialChar menuseparator
7614 Paths
7615 \end_layout
7616
7617 \end_inset
7618
7619  dialog.
7620 \end_layout
7621
7622 \begin_layout Standard
7623 Note, by the way, that there is a template which has a particular meaning:
7624 \begin_inset Newline linebreak
7625 \end_inset
7626
7627
7628 \begin_inset Flex Code
7629 status collapsed
7630
7631 \begin_layout Plain Layout
7632 defaults.lyx
7633 \end_layout
7634
7635 \end_inset
7636
7637 .
7638  This template is loaded every time you create a new document with 
7639 \begin_inset Flex Noun
7640 status collapsed
7641
7642 \begin_layout Plain Layout
7643 File\SpecialChar menuseparator
7644 New
7645 \end_layout
7646
7647 \end_inset
7648
7649  in order to provide useful defaults.
7650  To create this template from inside \SpecialChar LyX
7651 , all you have to do is to open a document
7652  with the correct settings, and use the 
7653 \begin_inset Flex Noun
7654 status collapsed
7655
7656 \begin_layout Plain Layout
7657 Save as Document Defaults
7658 \end_layout
7659
7660 \end_inset
7661
7662  button.
7663 \end_layout
7664
7665 \begin_layout Subsection
7666 Upgrading old layout files
7667 \end_layout
7668
7669 \begin_layout Standard
7670 The format of layout files changes with each \SpecialChar LyX
7671  release, so old layout files
7672  need to be converted to the new format.
7673  If \SpecialChar LyX
7674  reads a layout file in an older format, it automatically calls the
7675  script 
7676 \begin_inset Flex Code
7677 status collapsed
7678
7679 \begin_layout Plain Layout
7680 layout2layout.py
7681 \end_layout
7682
7683 \end_inset
7684
7685  to convert it to a temporary file in current format.
7686  The original file is left untouched.
7687  If you use the layout file often, then, you may want to convert it permanently,
7688  so that \SpecialChar LyX
7689  does not have to do so itself every time.
7690  To do this, you can call the converter manually:
7691 \end_layout
7692
7693 \begin_layout Enumerate
7694 rename the file 
7695 \begin_inset Flex Code
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 myclass.layout
7700 \end_layout
7701
7702 \end_inset
7703
7704  to 
7705 \begin_inset Flex Code
7706 status collapsed
7707
7708 \begin_layout Plain Layout
7709 myclass.old
7710 \end_layout
7711
7712 \end_inset
7713
7714
7715 \end_layout
7716
7717 \begin_layout Enumerate
7718 Call the command
7719 \begin_inset Newline newline
7720 \end_inset
7721
7722
7723 \begin_inset Flex Code
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7728 \end_layout
7729
7730 \end_inset
7731
7732
7733 \begin_inset Newline newline
7734 \end_inset
7735
7736 where 
7737 \begin_inset Flex Code
7738 status collapsed
7739
7740 \begin_layout Plain Layout
7741 LyXDir
7742 \end_layout
7743
7744 \end_inset
7745
7746  is the name of your \SpecialChar LyX
7747  system directory.
7748 \end_layout
7749
7750 \begin_layout Standard
7751 Note that manual conversion does not affect included files, so these will
7752  have to be converted separately.
7753 \end_layout
7754
7755 \begin_layout Subsection
7756 \begin_inset CommandInset label
7757 LatexCommand label
7758 name "subsec:Cite-Engine-Files"
7759
7760 \end_inset
7761
7762 Cite engine files
7763 \end_layout
7764
7765 \begin_layout Standard
7766 A specific form of layout files are the so-called 
7767 \begin_inset Flex Code
7768 status collapsed
7769
7770 \begin_layout Plain Layout
7771 *.citeengine
7772 \end_layout
7773
7774 \end_inset
7775
7776  files that are located in the 
7777 \begin_inset Flex Code
7778 status collapsed
7779
7780 \begin_layout Plain Layout
7781 citeengines/
7782 \end_layout
7783
7784 \end_inset
7785
7786  sub-directory.
7787  Their purpose is to define the specifics of \SpecialChar LaTeX
7788  packages aimed at bibliography
7789  generation, such as 
7790 \family sans
7791 natbib
7792 \family default
7793 ,
7794 \family sans
7795  jurabib
7796 \family default
7797  or 
7798 \family sans
7799 biblatex
7800 \family default
7801 , but also the way how normal Bib\SpecialChar TeX
7802  citations (without additional packages)
7803  are handled in \SpecialChar LyX
7804  is defined in such a file.
7805  
7806 \end_layout
7807
7808 \begin_layout Standard
7809 More specifically, it is defined which packages \SpecialChar LyX
7810  needs to load, which citation
7811  commands are available, how these are to be displayed in \SpecialChar LyX
7812  (in the workarea,
7813  the dialogs, the context menus) as well as in the XHTML and plain text
7814  output.
7815  Furthermore, the files specify available style variants (author-year, numerical
7816 , etc.) and their specifics.
7817  The cite engine files are also used to generate the options that are available
7818  in 
7819 \family sans
7820 Document\SpecialChar menuseparator
7821 Settings\SpecialChar menuseparator
7822 Bibliography\SpecialChar menuseparator
7823 Style engine
7824 \family default
7825 .
7826 \end_layout
7827
7828 \begin_layout Standard
7829 Even though a cite engine file is essentially a normal layout file that
7830  could theoretically include any layout information, it usually primarily
7831  includes some specific parameters such as 
7832 \begin_inset Flex Code
7833 status collapsed
7834
7835 \begin_layout Plain Layout
7836 MaxCiteNames
7837 \end_layout
7838
7839 \end_inset
7840
7841
7842 \begin_inset Flex Code
7843 status collapsed
7844
7845 \begin_layout Plain Layout
7846 CiteFramework
7847 \end_layout
7848
7849 \end_inset
7850
7851
7852 \begin_inset Flex Code
7853 status collapsed
7854
7855 \begin_layout Plain Layout
7856 CiteEngine
7857 \end_layout
7858
7859 \end_inset
7860
7861  and 
7862 \begin_inset Flex Code
7863 status collapsed
7864
7865 \begin_layout Plain Layout
7866 CiteFormat
7867 \end_layout
7868
7869 \end_inset
7870
7871  blocks.
7872  The syntax of the latter two is described in 
7873 \begin_inset CommandInset ref
7874 LatexCommand ref
7875 reference "subsec:Citation-engine-description"
7876 plural "false"
7877 caps "false"
7878 noprefix "false"
7879
7880 \end_inset
7881
7882  and 
7883 \begin_inset CommandInset ref
7884 LatexCommand ref
7885 reference "subsec:Citation-format-description"
7886
7887 \end_inset
7888
7889 , as well as in the files themselves.
7890 \end_layout
7891
7892 \begin_layout Section
7893 \begin_inset CommandInset label
7894 LatexCommand label
7895 name "sec:TextClass"
7896
7897 \end_inset
7898
7899 The layout file format
7900 \end_layout
7901
7902 \begin_layout Standard
7903 The following sections describe how layout files are structured and written.
7904  Our advice is to go slowly, save and test often.
7905  It is really not that hard, except that the multitude of options can become
7906  overwhelming, especially if you try to check out too many at once.
7907  It becomes easier if you use existing layouts of \SpecialChar LyX
7908  as examples/reference
7909  or if you modify an existing layout to your needs.
7910 \end_layout
7911
7912 \begin_layout Standard
7913 Note that all the tags used in layout files are case-insensitive.
7914  This means that 
7915 \begin_inset Flex Code
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 Style
7920 \end_layout
7921
7922 \end_inset
7923
7924
7925 \begin_inset Flex Code
7926 status collapsed
7927
7928 \begin_layout Plain Layout
7929 style
7930 \end_layout
7931
7932 \end_inset
7933
7934  and 
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 StYlE
7940 \end_layout
7941
7942 \end_inset
7943
7944  are really the same tag.
7945  The possible arguments are printed in brackets after the tag's name.
7946  The default argument is typeset 
7947 \begin_inset Flex Code
7948 status collapsed
7949
7950 \begin_layout Plain Layout
7951
7952 \emph on
7953 emphasized
7954 \end_layout
7955
7956 \end_inset
7957
7958 .
7959  If the argument has a data type like 
7960 \begin_inset Quotes eld
7961 \end_inset
7962
7963 string
7964 \begin_inset Quotes erd
7965 \end_inset
7966
7967  or 
7968 \begin_inset Quotes eld
7969 \end_inset
7970
7971 float
7972 \begin_inset Quotes erd
7973 \end_inset
7974
7975 , the default is shown like this: 
7976 \begin_inset Flex Code
7977 status collapsed
7978
7979 \begin_layout Plain Layout
7980 float=
7981 \emph on
7982 default
7983 \end_layout
7984
7985 \end_inset
7986
7987 .
7988 \end_layout
7989
7990 \begin_layout Subsection
7991 The document class declaration and classification
7992 \end_layout
7993
7994 \begin_layout Standard
7995 Lines in a layout file which begin with 
7996 \begin_inset Flex Code
7997 status collapsed
7998
7999 \begin_layout Plain Layout
8000 #
8001 \end_layout
8002
8003 \end_inset
8004
8005  are comments.
8006  There is one exception to this rule.
8007  All 
8008 \begin_inset Flex Code
8009 status collapsed
8010
8011 \begin_layout Plain Layout
8012 *.layout
8013 \end_layout
8014
8015 \end_inset
8016
8017  files should begin with lines like:
8018 \end_layout
8019
8020 \begin_layout LyX-Code
8021
8022 \size small
8023 #% Do not delete the line below; configure depends on this 
8024 \end_layout
8025
8026 \begin_layout LyX-Code
8027
8028 \size small
8029 #  
8030 \backslash
8031 DeclareLaTeXClass{Article (Standard Class)}
8032 \end_layout
8033
8034 \begin_layout LyX-Code
8035
8036 \size small
8037 #  
8038 \backslash
8039 DeclareCategory{Articles}
8040 \end_layout
8041
8042 \begin_layout Standard
8043 The second and third lines are used when you (re)configure \SpecialChar LyX
8044 .
8045  The layout file is read by the \SpecialChar LaTeX
8046  script 
8047 \begin_inset Flex Code
8048 status collapsed
8049
8050 \begin_layout Plain Layout
8051 chkconfig.ltx
8052 \end_layout
8053
8054 \end_inset
8055
8056 , in a special mode where 
8057 \begin_inset Flex Code
8058 status collapsed
8059
8060 \begin_layout Plain Layout
8061 #
8062 \end_layout
8063
8064 \end_inset
8065
8066  is ignored.
8067  The first line is just a \SpecialChar LaTeX
8068  comment, the second one contains the mandatory
8069  declaration of the text class and the third line contains the optional
8070  classification of the class.
8071  If these lines appear in a file named 
8072 \begin_inset Flex Code
8073 status collapsed
8074
8075 \begin_layout Plain Layout
8076 article.layout
8077 \end_layout
8078
8079 \end_inset
8080
8081 , then they define a text class of name 
8082 \begin_inset Flex Code
8083 status collapsed
8084
8085 \begin_layout Plain Layout
8086 article
8087 \end_layout
8088
8089 \end_inset
8090
8091  (the name of the layout file) which uses the \SpecialChar LaTeX
8092  document class 
8093 \begin_inset Flex Code
8094 status collapsed
8095
8096 \begin_layout Plain Layout
8097 article.cls
8098 \end_layout
8099
8100 \end_inset
8101
8102  (the default is to use the same name as the layout).
8103  The string 
8104 \begin_inset Quotes eld
8105 \end_inset
8106
8107 Article (Standard Class)
8108 \begin_inset Quotes erd
8109 \end_inset
8110
8111  that appears above is used as a description of the text class in the 
8112 \begin_inset Flex Noun
8113 status collapsed
8114
8115 \begin_layout Plain Layout
8116 Document\SpecialChar menuseparator
8117 Settings
8118 \end_layout
8119
8120 \end_inset
8121
8122  dialog.
8123  The category (
8124 \begin_inset Quotes eld
8125 \end_inset
8126
8127 Articles
8128 \begin_inset Quotes erd
8129 \end_inset
8130
8131  in the example) is also used in the 
8132 \begin_inset Flex Noun
8133 status collapsed
8134
8135 \begin_layout Plain Layout
8136 Document\SpecialChar menuseparator
8137 Settings
8138 \end_layout
8139
8140 \end_inset
8141
8142  dialog: the text classes are grouped by these categories (which are usually
8143  genres, so typical categories are 
8144 \begin_inset Quotes eld
8145 \end_inset
8146
8147 Articles
8148 \begin_inset Quotes erd
8149 \end_inset
8150
8151
8152 \begin_inset Quotes eld
8153 \end_inset
8154
8155 Books
8156 \begin_inset Quotes erd
8157 \end_inset
8158
8159
8160 \begin_inset Quotes eld
8161 \end_inset
8162
8163 Reports
8164 \begin_inset Quotes erd
8165 \end_inset
8166
8167
8168 \begin_inset Quotes eld
8169 \end_inset
8170
8171 Letters
8172 \begin_inset Quotes erd
8173 \end_inset
8174
8175
8176 \begin_inset Quotes eld
8177 \end_inset
8178
8179 Presentations
8180 \begin_inset Quotes erd
8181 \end_inset
8182
8183
8184 \begin_inset Quotes eld
8185 \end_inset
8186
8187 Curricula Vitae
8188 \begin_inset Quotes erd
8189 \end_inset
8190
8191  etc.).
8192  If no category has been declared, the class will be put in the 
8193 \begin_inset Quotes eld
8194 \end_inset
8195
8196 Uncategorized
8197 \begin_inset Quotes erd
8198 \end_inset
8199
8200  group.
8201 \end_layout
8202
8203 \begin_layout Standard
8204 Let's assume that you wrote your own text class that uses the 
8205 \begin_inset Flex Code
8206 status collapsed
8207
8208 \begin_layout Plain Layout
8209 article.cls
8210 \end_layout
8211
8212 \end_inset
8213
8214  document class, but where you changed the appearance of the section headings.
8215  If you put it in a file 
8216 \begin_inset Flex Code
8217 status collapsed
8218
8219 \begin_layout Plain Layout
8220 myarticle.layout
8221 \end_layout
8222
8223 \end_inset
8224
8225 , the header of this file should be:
8226 \end_layout
8227
8228 \begin_layout LyX-Code
8229
8230 \size small
8231 #% Do not delete the line below; configure depends on this 
8232 \end_layout
8233
8234 \begin_layout LyX-Code
8235
8236 \size small
8237 #  
8238 \backslash
8239 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8240 \end_layout
8241
8242 \begin_layout LyX-Code
8243
8244 \size small
8245 #  
8246 \backslash
8247 DeclareCategory{Articles}
8248 \end_layout
8249
8250 \begin_layout Standard
8251 This declares a text class 
8252 \begin_inset Flex Code
8253 status collapsed
8254
8255 \begin_layout Plain Layout
8256 myarticle
8257 \end_layout
8258
8259 \end_inset
8260
8261 , associated with the \SpecialChar LaTeX
8262  document class 
8263 \begin_inset Flex Code
8264 status collapsed
8265
8266 \begin_layout Plain Layout
8267 article.cls
8268 \end_layout
8269
8270 \end_inset
8271
8272  and described as 
8273 \begin_inset Quotes eld
8274 \end_inset
8275
8276 Article (with My Own Headings)
8277 \begin_inset Quotes erd
8278 \end_inset
8279
8280 .
8281  If your text class depends on several packages, you can declare it as:
8282 \end_layout
8283
8284 \begin_layout LyX-Code
8285
8286 \size small
8287 #% Do not delete the line below; configure depends on this 
8288 \end_layout
8289
8290 \begin_layout LyX-Code
8291
8292 \size small
8293 #  
8294 \backslash
8295 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8296 \end_layout
8297
8298 \begin_layout LyX-Code
8299
8300 \size small
8301 #  
8302 \backslash
8303 DeclareCategory{Articles}
8304 \end_layout
8305
8306 \begin_layout Standard
8307 This indicates that your text class uses the 
8308 \begin_inset Flex Code
8309 status collapsed
8310
8311 \begin_layout Plain Layout
8312 foo.sty
8313 \end_layout
8314
8315 \end_inset
8316
8317  package.
8318  Finally, it is also possible to declare classes for DocBook code.
8319  Typical declarations will look like:
8320 \end_layout
8321
8322 \begin_layout LyX-Code
8323
8324 \size small
8325 #% Do not delete the line below; configure depends on this 
8326 \end_layout
8327
8328 \begin_layout LyX-Code
8329
8330 \size small
8331
8332 \backslash
8333 DeclareDocBookClass[article]{SGML (DocBook Article)}
8334 \end_layout
8335
8336 \begin_layout LyX-Code
8337
8338 \size small
8339
8340 \backslash
8341 DeclareCategory{Articles (DocBook)}
8342 \end_layout
8343
8344 \begin_layout Standard
8345 Note that these declarations can also be given an optional parameter declaring
8346  the name of the document class (but not a list).
8347 \end_layout
8348
8349 \begin_layout Standard
8350 So, to be as explicit as possible, the form of the layout declaration is:
8351 \end_layout
8352
8353 \begin_layout LyX-Code
8354
8355 \size small
8356 #  
8357 \backslash
8358 DeclareLaTeXClass[class,package.sty]{layout description}
8359 \end_layout
8360
8361 \begin_layout LyX-Code
8362
8363 \size small
8364 #  
8365 \backslash
8366 DeclareCategory{category}
8367 \end_layout
8368
8369 \begin_layout Standard
8370 The class need only be specified if the name of the \SpecialChar LaTeX
8371  class file and the
8372  name of the layout file are different or if there are packages to load.
8373  If the name of the class file is not specified, then \SpecialChar LyX
8374  will simply assume
8375  that it is the same as the name of the layout file.
8376 \end_layout
8377
8378 \begin_layout Standard
8379 When the text class has been modified to your taste, all you have to do
8380  is to copy it either to 
8381 \begin_inset Flex Code
8382 status collapsed
8383
8384 \begin_layout Plain Layout
8385 LyXDir/layouts/
8386 \end_layout
8387
8388 \end_inset
8389
8390  or to 
8391 \begin_inset Flex Code
8392 status collapsed
8393
8394 \begin_layout Plain Layout
8395 UserDir/layouts
8396 \end_layout
8397
8398 \end_inset
8399
8400 , run 
8401 \begin_inset Flex Noun
8402 status collapsed
8403
8404 \begin_layout Plain Layout
8405 Tools\SpecialChar menuseparator
8406 Reconfigure
8407 \end_layout
8408
8409 \end_inset
8410
8411 , exit \SpecialChar LyX
8412  and restart.
8413  Then your new text class should be available along with the others.
8414 \end_layout
8415
8416 \begin_layout Standard
8417 Once the layout file is installed, you can edit it and see your changes
8418  without having to reconfigure or to restart \SpecialChar LyX
8419 .
8420 \begin_inset Foot
8421 status collapsed
8422
8423 \begin_layout Plain Layout
8424 In versions of \SpecialChar LyX
8425  prior to 1.6, this was not true.
8426  As a result, editing layout files was very time consuming, since you had
8427  constantly to restart \SpecialChar LyX
8428  to see changes.
8429 \end_layout
8430
8431 \end_inset
8432
8433  You can force a reload of the current layout by using the \SpecialChar LyX
8434  function 
8435 \begin_inset Flex Noun
8436 status collapsed
8437
8438 \begin_layout Plain Layout
8439 layout-reload
8440 \end_layout
8441
8442 \end_inset
8443
8444 .
8445  There is no default binding for this function—though, of course, you can
8446  bind it to a key yourself.
8447  But you will normally use this function simply by entering it in the mini-buffe
8448 r.
8449  
8450 \end_layout
8451
8452 \begin_layout Standard
8453
8454 \emph on
8455 Warning
8456 \emph default
8457
8458 \begin_inset Flex Noun
8459 status collapsed
8460
8461 \begin_layout Plain Layout
8462 layout-reload
8463 \end_layout
8464
8465 \end_inset
8466
8467  is very much an `advanced feature'.
8468  It is 
8469 \emph on
8470 strongly
8471 \emph default
8472  recommended that you save your work before using this function.
8473  In fact, it is 
8474 \emph on
8475 strongly
8476 \emph default
8477  recommended that you not attempt to edit layout information while simultaneousl
8478 y working on a document that you care about.
8479  Use a test document.
8480  Syntax errors and the like in your layout file could cause peculiar behavior.
8481  In particular, such errors could cause \SpecialChar LyX
8482  to regard the current layout as
8483  invalid and to attempt to switch to some other layout.
8484 \begin_inset Foot
8485 status collapsed
8486
8487 \begin_layout Plain Layout
8488 Really bad syntax errors may even caused \SpecialChar LyX
8489  to exit.
8490  This is because certain sorts of errors may make \SpecialChar LyX
8491  unable to read 
8492 \emph on
8493 any
8494 \emph default
8495  layout information.
8496  Please be careful.
8497 \end_layout
8498
8499 \end_inset
8500
8501  The \SpecialChar LyX
8502  team strives to keep \SpecialChar LyX
8503  stable in such situations, but safe is better
8504  than sorry.
8505 \begin_inset Foot
8506 status collapsed
8507
8508 \begin_layout Plain Layout
8509 While we're giving advice: make regular backups.
8510  And be nice to your mother.
8511 \end_layout
8512
8513 \end_inset
8514
8515
8516 \end_layout
8517
8518 \begin_layout Subsection
8519 The Module declaration
8520 \end_layout
8521
8522 \begin_layout Standard
8523 A module must begin with a line like the following:
8524 \end_layout
8525
8526 \begin_layout LyX-Code
8527 #
8528 \backslash
8529 DeclareLyXModule[endnotes.sty]{Endnotes} 
8530 \end_layout
8531
8532 \begin_layout Standard
8533 The mandatory argument, in curly brackets, is the name of the module, as
8534  it should appear in 
8535 \begin_inset Flex Noun
8536 status collapsed
8537
8538 \begin_layout Plain Layout
8539 Document\SpecialChar menuseparator
8540 Settings\SpecialChar menuseparator
8541 Modules
8542 \end_layout
8543
8544 \end_inset
8545
8546 .
8547  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8548  packages
8549  on which the module depends.
8550  It is also possible to use the form 
8551 \begin_inset Flex Noun
8552 status collapsed
8553
8554 \begin_layout Plain Layout
8555 from->to
8556 \end_layout
8557
8558 \end_inset
8559
8560  as an optional argument, which declares that the module can only be used
8561  when there exists a conversion chain between the formats `
8562 \begin_inset Flex Code
8563 status collapsed
8564
8565 \begin_layout Plain Layout
8566 from
8567 \end_layout
8568
8569 \end_inset
8570
8571 ' and `
8572 \begin_inset Flex Code
8573 status collapsed
8574
8575 \begin_layout Plain Layout
8576 to
8577 \end_layout
8578
8579 \end_inset
8580
8581 '.
8582 \end_layout
8583
8584 \begin_layout Standard
8585 The module declaration should then be followed by lines like the following:
8586 \begin_inset Foot
8587 status collapsed
8588
8589 \begin_layout Plain Layout
8590 Preferably in English if the module should be published with \SpecialChar LyX
8591 .
8592  This description will appear in the list of messages to be translated and
8593  will be thus translated with the next interface update.
8594 \end_layout
8595
8596 \end_inset
8597
8598
8599 \end_layout
8600
8601 \begin_layout LyX-Code
8602 #DescriptionBegin 
8603 \end_layout
8604
8605 \begin_layout LyX-Code
8606 #Adds an endnote command, in addition to footnotes.
8607  
8608 \end_layout
8609
8610 \begin_layout LyX-Code
8611 #You will need to add  
8612 \backslash
8613 theendnotes in TeX code where you 
8614 \end_layout
8615
8616 \begin_layout LyX-Code
8617 #want the endnotes to appear.
8618  
8619 \end_layout
8620
8621 \begin_layout LyX-Code
8622 #DescriptionEnd 
8623 \end_layout
8624
8625 \begin_layout LyX-Code
8626 #Requires: somemodule | othermodule
8627 \end_layout
8628
8629 \begin_layout LyX-Code
8630 #Excludes: badmodule
8631 \end_layout
8632
8633 \begin_layout Standard
8634 The description is used in 
8635 \begin_inset Flex Noun
8636 status collapsed
8637
8638 \begin_layout Plain Layout
8639 Document\SpecialChar menuseparator
8640 Settings\SpecialChar menuseparator
8641 Modules
8642 \end_layout
8643
8644 \end_inset
8645
8646  to provide the user with information about what the module does.
8647  The 
8648 \begin_inset Flex Code
8649 status collapsed
8650
8651 \begin_layout Plain Layout
8652 Requires
8653 \end_layout
8654
8655 \end_inset
8656
8657  line is used to identify other modules with which this one must be used;
8658  the 
8659 \begin_inset Flex Code
8660 status collapsed
8661
8662 \begin_layout Plain Layout
8663 Excludes
8664 \end_layout
8665
8666 \end_inset
8667
8668  line is used to identify modules with which this one may not be used.
8669  Both are optional, and, as shown, multiple modules should be separated
8670  with the pipe symbol: |.
8671  Note that the required modules are treated disjunctively: 
8672 \emph on
8673 at least one
8674 \emph default
8675  of the required modules must be used.
8676  Similarly, 
8677 \emph on
8678 no
8679 \emph default
8680  excluded module may be used.
8681  Note that modules are identified here by their filenames without the 
8682 \begin_inset Flex Code
8683 status collapsed
8684
8685 \begin_layout Plain Layout
8686 .module
8687 \end_layout
8688
8689 \end_inset
8690
8691  extension.
8692  So 
8693 \begin_inset Flex Code
8694 status collapsed
8695
8696 \begin_layout Plain Layout
8697 somemodule
8698 \end_layout
8699
8700 \end_inset
8701
8702  is really 
8703 \begin_inset Flex Code
8704 status collapsed
8705
8706 \begin_layout Plain Layout
8707 somemodule.module
8708 \end_layout
8709
8710 \end_inset
8711
8712 .
8713 \end_layout
8714
8715 \begin_layout Subsection
8716 The CiteEngine file declaration
8717 \end_layout
8718
8719 \begin_layout Standard
8720 A cite engine file must begin with a line like the following:
8721 \end_layout
8722
8723 \begin_layout LyX-Code
8724 #
8725 \backslash
8726 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8727 \end_layout
8728
8729 \begin_layout Standard
8730 The mandatory argument, in curly brackets, is the name of the cite style,
8731  as it should appear in 
8732 \begin_inset Flex Noun
8733 status collapsed
8734
8735 \begin_layout Plain Layout
8736 Document\SpecialChar menuseparator
8737 Settings\SpecialChar menuseparator
8738 Bibliography
8739 \end_layout
8740
8741 \end_inset
8742
8743 .
8744  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8745  packages
8746  on which the cite engine depends.
8747 \end_layout
8748
8749 \begin_layout Standard
8750 The cite engine declaration should then be followed by lines like the following:
8751 \begin_inset Foot
8752 status collapsed
8753
8754 \begin_layout Plain Layout
8755 Preferably in English if the module should be published with \SpecialChar LyX
8756 .
8757  This description will appear in the list of messages to be translated and
8758  will be thus translated with the next interface update.
8759 \end_layout
8760
8761 \end_inset
8762
8763
8764 \end_layout
8765
8766 \begin_layout LyX-Code
8767 # DescriptionBegin
8768 \end_layout
8769
8770 \begin_layout LyX-Code
8771 #   Biblatex supports many author-year and numerical styles.
8772 \end_layout
8773
8774 \begin_layout LyX-Code
8775 #   It is mainly aimed at the Humanities.
8776  It is highly
8777 \end_layout
8778
8779 \begin_layout LyX-Code
8780 #   customizable, fully localized and provides many features
8781 \end_layout
8782
8783 \begin_layout LyX-Code
8784 #   that are not possible with BibTeX.
8785  The use of 'biber' as
8786 \end_layout
8787
8788 \begin_layout LyX-Code
8789 #   bibliography processor is advised.
8790 \end_layout
8791
8792 \begin_layout LyX-Code
8793 # DescriptionEnd
8794 \end_layout
8795
8796 \begin_layout Standard
8797 The description is used in 
8798 \begin_inset Flex Noun
8799 status collapsed
8800
8801 \begin_layout Plain Layout
8802 Document\SpecialChar menuseparator
8803 Settings\SpecialChar menuseparator
8804 Bibliography
8805 \end_layout
8806
8807 \end_inset
8808
8809  to provide the user with information about the cite engine.
8810 \end_layout
8811
8812 \begin_layout Subsection
8813 Format number
8814 \end_layout
8815
8816 \begin_layout Standard
8817 The first non-comment line of any layout file, included file, or module
8818  
8819 \emph on
8820 must
8821 \emph default
8822  contain the file format number:
8823 \end_layout
8824
8825 \begin_layout Description
8826 \begin_inset Flex Code
8827 status collapsed
8828
8829 \begin_layout Plain Layout
8830 Format
8831 \end_layout
8832
8833 \end_inset
8834
8835  [
8836 \begin_inset Flex Code
8837 status collapsed
8838
8839 \begin_layout Plain Layout
8840 int
8841 \end_layout
8842
8843 \end_inset
8844
8845 ] The format number of the layout file.
8846 \end_layout
8847
8848 \begin_layout Standard
8849 This tag was introduced with \SpecialChar LyX
8850
8851 \begin_inset space ~
8852 \end_inset
8853
8854 1.4.0.
8855  Layout files from older \SpecialChar LyX
8856  versions do not have an explicit file format and
8857  are considered to have 
8858 \begin_inset Flex Code
8859 status collapsed
8860
8861 \begin_layout Plain Layout
8862 Format
8863 \begin_inset space ~
8864 \end_inset
8865
8866 1
8867 \end_layout
8868
8869 \end_inset
8870
8871 .
8872  The format for the present version of \SpecialChar LyX
8873  is format 60.
8874  But each version of \SpecialChar LyX
8875  is capable of reading earlier versions' layout files,
8876  just as they are capable of reading files produced by earlier versions
8877  of \SpecialChar LyX
8878 .
8879  There is, however, no provision for converting to earlier formats.
8880 \end_layout
8881
8882 \begin_layout Subsection
8883 \begin_inset CommandInset label
8884 LatexCommand label
8885 name "subsec:General-text-class"
8886
8887 \end_inset
8888
8889 General text class parameters
8890 \end_layout
8891
8892 \begin_layout Standard
8893 These are general parameters that govern the behavior of an entire document
8894  class.
8895  (This does 
8896 \emph on
8897 not
8898 \emph default
8899  mean that they must appear in 
8900 \begin_inset Flex Code
8901 status collapsed
8902
8903 \begin_layout Plain Layout
8904 .layout
8905 \end_layout
8906
8907 \end_inset
8908
8909  files rather than in modules.
8910  A module can contain any layout tag.)
8911 \end_layout
8912
8913 \begin_layout Description
8914 \begin_inset Flex Code
8915 status collapsed
8916
8917 \begin_layout Plain Layout
8918 AddToHTMLPreamble
8919 \end_layout
8920
8921 \end_inset
8922
8923  Adds information that will be output in the 
8924 \begin_inset Flex Code
8925 status collapsed
8926
8927 \begin_layout Plain Layout
8928 <head>
8929 \end_layout
8930
8931 \end_inset
8932
8933  block when the document is output to XHTML.
8934  Typically, this would be used to output CSS style information, but it can
8935  be used for anything that can appear in 
8936 \begin_inset Flex Code
8937 status collapsed
8938
8939 \begin_layout Plain Layout
8940 <head>
8941 \end_layout
8942
8943 \end_inset
8944
8945 .
8946  Must end with 
8947 \begin_inset Quotes eld
8948 \end_inset
8949
8950
8951 \begin_inset Flex Code
8952 status collapsed
8953
8954 \begin_layout Plain Layout
8955 EndPreamble
8956 \end_layout
8957
8958 \end_inset
8959
8960
8961 \begin_inset Quotes erd
8962 \end_inset
8963
8964 .
8965 \end_layout
8966
8967 \begin_layout Description
8968 \begin_inset Flex Code
8969 status collapsed
8970
8971 \begin_layout Plain Layout
8972 AddToPreamble
8973 \end_layout
8974
8975 \end_inset
8976
8977  Adds information to the document preamble.
8978  Must end with
8979 \begin_inset Newline newline
8980 \end_inset
8981
8982
8983 \begin_inset Quotes eld
8984 \end_inset
8985
8986
8987 \begin_inset Flex Code
8988 status collapsed
8989
8990 \begin_layout Plain Layout
8991 EndPreamble
8992 \end_layout
8993
8994 \end_inset
8995
8996
8997 \begin_inset Quotes erd
8998 \end_inset
8999
9000 .
9001 \end_layout
9002
9003 \begin_layout Description
9004 \begin_inset Flex Code
9005 status collapsed
9006
9007 \begin_layout Plain Layout
9008 CiteEngine <engine>
9009 \end_layout
9010
9011 \end_inset
9012
9013  Defines the possibilities for displaying citation references.
9014  See 
9015 \begin_inset CommandInset ref
9016 LatexCommand ref
9017 reference "subsec:Citation-engine-description"
9018 plural "false"
9019 caps "false"
9020 noprefix "false"
9021
9022 \end_inset
9023
9024  for details.
9025  Must end with 
9026 \begin_inset Quotes eld
9027 \end_inset
9028
9029
9030 \begin_inset Flex Code
9031 status collapsed
9032
9033 \begin_layout Plain Layout
9034 End
9035 \end_layout
9036
9037 \end_inset
9038
9039
9040 \begin_inset Quotes erd
9041 \end_inset
9042
9043 .
9044  Primarily used in cite engine files (see 
9045 \begin_inset CommandInset ref
9046 LatexCommand ref
9047 reference "subsec:Cite-Engine-Files"
9048 plural "false"
9049 caps "false"
9050 noprefix "false"
9051
9052 \end_inset
9053
9054 ).
9055 \end_layout
9056
9057 \begin_layout Description
9058 \begin_inset Flex Code
9059 status collapsed
9060
9061 \begin_layout Plain Layout
9062 CiteFormat
9063 \end_layout
9064
9065 \end_inset
9066
9067  Defines formats for use in the display of bibliographic information.
9068  See 
9069 \begin_inset CommandInset ref
9070 LatexCommand ref
9071 reference "subsec:Citation-format-description"
9072
9073 \end_inset
9074
9075  for details.
9076  Must end with 
9077 \begin_inset Quotes eld
9078 \end_inset
9079
9080
9081 \begin_inset Flex Code
9082 status collapsed
9083
9084 \begin_layout Plain Layout
9085 End
9086 \end_layout
9087
9088 \end_inset
9089
9090
9091 \begin_inset Quotes erd
9092 \end_inset
9093
9094 .
9095  Primarily used in cite engine files (see 
9096 \begin_inset CommandInset ref
9097 LatexCommand ref
9098 reference "subsec:Cite-Engine-Files"
9099 plural "false"
9100 caps "false"
9101 noprefix "false"
9102
9103 \end_inset
9104
9105 ).
9106 \end_layout
9107
9108 \begin_layout Description
9109 \begin_inset Flex Code
9110 status collapsed
9111
9112 \begin_layout Plain Layout
9113 CiteFramework
9114 \end_layout
9115
9116 \end_inset
9117
9118  [
9119 \begin_inset Flex Code
9120 status collapsed
9121
9122 \begin_layout Plain Layout
9123
9124 \emph on
9125 bibtex
9126 \end_layout
9127
9128 \end_inset
9129
9130 ,
9131 \begin_inset Flex Code
9132 status collapsed
9133
9134 \begin_layout Plain Layout
9135 biblatex
9136 \end_layout
9137
9138 \end_inset
9139
9140 ] Determines whether 
9141 \family sans
9142 Biblatex
9143 \family default
9144  or Bib\SpecialChar TeX
9145  is used to generate a Bibliography.
9146  Primarily used in cite engine files (see 
9147 \begin_inset CommandInset ref
9148 LatexCommand ref
9149 reference "subsec:Cite-Engine-Files"
9150 plural "false"
9151 caps "false"
9152 noprefix "false"
9153
9154 \end_inset
9155
9156 ).
9157 \end_layout
9158
9159 \begin_layout Description
9160 \begin_inset Flex Code
9161 status collapsed
9162
9163 \begin_layout Plain Layout
9164 ClassOptions
9165 \end_layout
9166
9167 \end_inset
9168
9169  Describes various global options supported by the document class.
9170  See 
9171 \begin_inset CommandInset ref
9172 LatexCommand ref
9173 reference "subsec:ClassOptions"
9174
9175 \end_inset
9176
9177  for a description.
9178  Must end with 
9179 \begin_inset Quotes eld
9180 \end_inset
9181
9182
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187 End
9188 \end_layout
9189
9190 \end_inset
9191
9192
9193 \begin_inset Quotes erd
9194 \end_inset
9195
9196 .
9197 \end_layout
9198
9199 \begin_layout Description
9200 \begin_inset Flex Code
9201 status collapsed
9202
9203 \begin_layout Plain Layout
9204 Columns
9205 \end_layout
9206
9207 \end_inset
9208
9209  [
9210 \begin_inset Flex Code
9211 status collapsed
9212
9213 \begin_layout Plain Layout
9214
9215 \emph on
9216 1
9217 \end_layout
9218
9219 \end_inset
9220
9221 ,
9222 \begin_inset space \thinspace{}
9223 \end_inset
9224
9225
9226 \begin_inset Flex Code
9227 status collapsed
9228
9229 \begin_layout Plain Layout
9230 2
9231 \end_layout
9232
9233 \end_inset
9234
9235 ] Whether the class should 
9236 \emph on
9237 default
9238 \emph default
9239  to having one or two columns.
9240  Can be changed in the 
9241 \begin_inset Flex Noun
9242 status collapsed
9243
9244 \begin_layout Plain Layout
9245 Document\SpecialChar menuseparator
9246 Settings
9247 \end_layout
9248
9249 \end_inset
9250
9251  dialog.
9252 \end_layout
9253
9254 \begin_layout Description
9255 \begin_inset Flex Code
9256 status collapsed
9257
9258 \begin_layout Plain Layout
9259 Counter
9260 \end_layout
9261
9262 \end_inset
9263
9264  [
9265 \begin_inset Flex Code
9266 status collapsed
9267
9268 \begin_layout Plain Layout
9269 string
9270 \end_layout
9271
9272 \end_inset
9273
9274 ] This sequence defines the properties for a counter.
9275  If the counter does not yet exist, it is created; if it does exist, it
9276  is modified.
9277  Must end with 
9278 \begin_inset Quotes eld
9279 \end_inset
9280
9281
9282 \begin_inset Flex Code
9283 status collapsed
9284
9285 \begin_layout Plain Layout
9286 End
9287 \end_layout
9288
9289 \end_inset
9290
9291
9292 \begin_inset Quotes erd
9293 \end_inset
9294
9295 .
9296 \begin_inset Newline newline
9297 \end_inset
9298
9299 See 
9300 \begin_inset CommandInset ref
9301 LatexCommand ref
9302 reference "subsec:Counters"
9303
9304 \end_inset
9305
9306  for details on counters.
9307 \end_layout
9308
9309 \begin_layout Description
9310 \begin_inset Flex Code
9311 status collapsed
9312
9313 \begin_layout Plain Layout
9314 DefaultFont
9315 \end_layout
9316
9317 \end_inset
9318
9319  Sets the default font used to display the document.
9320  See 
9321 \begin_inset CommandInset ref
9322 LatexCommand ref
9323 reference "subsec:Font-description"
9324
9325 \end_inset
9326
9327  for how to declare fonts.
9328  Must end with 
9329 \begin_inset Quotes eld
9330 \end_inset
9331
9332
9333 \begin_inset Flex Code
9334 status collapsed
9335
9336 \begin_layout Plain Layout
9337 EndFont
9338 \end_layout
9339
9340 \end_inset
9341
9342
9343 \begin_inset Quotes erd
9344 \end_inset
9345
9346 .
9347 \end_layout
9348
9349 \begin_layout Description
9350 \begin_inset Flex Code
9351 status collapsed
9352
9353 \begin_layout Plain Layout
9354 DefaultModule
9355 \end_layout
9356
9357 \end_inset
9358
9359  [
9360 \begin_inset Flex Code
9361 status collapsed
9362
9363 \begin_layout Plain Layout
9364 <module>
9365 \end_layout
9366
9367 \end_inset
9368
9369 ] Specifies a module to be included by default with this document class.
9370  The module is specified as filename without the 
9371 \begin_inset Flex Code
9372 status collapsed
9373
9374 \begin_layout Plain Layout
9375 .module
9376 \end_layout
9377
9378 \end_inset
9379
9380  extension.
9381  The user can still remove the module, but it will be active at the outset.
9382  (This applies only when new files are created, or when this class is chosen
9383  for an existing document.)
9384 \end_layout
9385
9386 \begin_layout Description
9387 \begin_inset Flex Code
9388 status collapsed
9389
9390 \begin_layout Plain Layout
9391 DefaultStyle
9392 \end_layout
9393
9394 \end_inset
9395
9396  [
9397 \begin_inset Flex Code
9398 status collapsed
9399
9400 \begin_layout Plain Layout
9401 <style>
9402 \end_layout
9403
9404 \end_inset
9405
9406 ] This is the style that will be assigned to new paragraphs, usually 
9407 \begin_inset Flex Noun
9408 status collapsed
9409
9410 \begin_layout Plain Layout
9411 Standard
9412 \end_layout
9413
9414 \end_inset
9415
9416 .
9417  This will default to the first defined style if not given, but you are
9418  encouraged to use this directive.
9419 \end_layout
9420
9421 \begin_layout Description
9422 \begin_inset Flex Code
9423 status collapsed
9424
9425 \begin_layout Plain Layout
9426 ExcludesModule
9427 \end_layout
9428
9429 \end_inset
9430
9431  [
9432 \begin_inset Flex Code
9433 status collapsed
9434
9435 \begin_layout Plain Layout
9436 <module>
9437 \end_layout
9438
9439 \end_inset
9440
9441 ] This tag indicates that the module (which is specified by filename without
9442  the 
9443 \begin_inset Flex Code
9444 status collapsed
9445
9446 \begin_layout Plain Layout
9447 .module
9448 \end_layout
9449
9450 \end_inset
9451
9452  extension) cannot be used with this document class.
9453  This might be used in a journal-specific layout file to prevent, say, the
9454  use of the 
9455 \begin_inset Flex Code
9456 status collapsed
9457
9458 \begin_layout Plain Layout
9459 theorems-sec
9460 \end_layout
9461
9462 \end_inset
9463
9464  module that numbers theorems by section.
9465  This tag may 
9466 \emph on
9467 not
9468 \emph default
9469  be used in a module.
9470  Modules have their own way of excluding other modules (see 
9471 \begin_inset CommandInset ref
9472 LatexCommand ref
9473 reference "subsec:Layout-modules"
9474
9475 \end_inset
9476
9477 ).
9478 \end_layout
9479
9480 \begin_layout Description
9481 \begin_inset Flex Code
9482 status collapsed
9483
9484 \begin_layout Plain Layout
9485 Float
9486 \end_layout
9487
9488 \end_inset
9489
9490  Defines a new float.
9491  See 
9492 \begin_inset CommandInset ref
9493 LatexCommand ref
9494 reference "subsec:Floats"
9495
9496 \end_inset
9497
9498  for details.
9499  Must end with 
9500 \begin_inset Quotes eld
9501 \end_inset
9502
9503
9504 \begin_inset Flex Code
9505 status collapsed
9506
9507 \begin_layout Plain Layout
9508 End
9509 \end_layout
9510
9511 \end_inset
9512
9513
9514 \begin_inset Quotes erd
9515 \end_inset
9516
9517 .
9518 \end_layout
9519
9520 \begin_layout Description
9521 \begin_inset Flex Code
9522 status collapsed
9523
9524 \begin_layout Plain Layout
9525 HTMLPreamble
9526 \end_layout
9527
9528 \end_inset
9529
9530  Sets the information that will be output in the 
9531 \begin_inset Flex Code
9532 status collapsed
9533
9534 \begin_layout Plain Layout
9535 <head>
9536 \end_layout
9537
9538 \end_inset
9539
9540  block when this document class is output to XHTML.
9541  Note that this will completely override any prior 
9542 \begin_inset Flex Code
9543 status collapsed
9544
9545 \begin_layout Plain Layout
9546 HTMLPreamble
9547 \end_layout
9548
9549 \end_inset
9550
9551  or 
9552 \begin_inset Flex Code
9553 status collapsed
9554
9555 \begin_layout Plain Layout
9556 AddToHTMLPreamble
9557 \end_layout
9558
9559 \end_inset
9560
9561  declarations.
9562  (Use
9563 \begin_inset Newline newline
9564 \end_inset
9565
9566
9567 \begin_inset Flex Code
9568 status collapsed
9569
9570 \begin_layout Plain Layout
9571 AddToHTMLPreamble
9572 \end_layout
9573
9574 \end_inset
9575
9576  if you just want to add material to the preamble.) Must end with 
9577 \begin_inset Quotes eld
9578 \end_inset
9579
9580
9581 \begin_inset Flex Code
9582 status collapsed
9583
9584 \begin_layout Plain Layout
9585 EndPreamble
9586 \end_layout
9587
9588 \end_inset
9589
9590
9591 \begin_inset Quotes erd
9592 \end_inset
9593
9594 .
9595 \end_layout
9596
9597 \begin_layout Description
9598 \begin_inset Flex Code
9599 status collapsed
9600
9601 \begin_layout Plain Layout
9602 HTMLTOCSection
9603 \end_layout
9604
9605 \end_inset
9606
9607  [
9608 \begin_inset Flex Code
9609 status collapsed
9610
9611 \begin_layout Plain Layout
9612 <style>
9613 \end_layout
9614
9615 \end_inset
9616
9617 ] The style to use for the table of contents, bibliography, and so forth,
9618  when the document is output to HTML.
9619  For articles, this should normally be 
9620 \begin_inset Flex Code
9621 status collapsed
9622
9623 \begin_layout Plain Layout
9624 Section
9625 \end_layout
9626
9627 \end_inset
9628
9629 ; for books 
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634 Chapter
9635 \end_layout
9636
9637 \end_inset
9638
9639 .
9640  If it is not given, then \SpecialChar LyX
9641  will attempt to figure out which layout to use.
9642 \end_layout
9643
9644 \begin_layout Description
9645 \begin_inset Flex Code
9646 status collapsed
9647
9648 \begin_layout Plain Layout
9649 IfCounter
9650 \end_layout
9651
9652 \end_inset
9653
9654  [
9655 \begin_inset Flex Code
9656 status collapsed
9657
9658 \begin_layout Plain Layout
9659 <counter>
9660 \end_layout
9661
9662 \end_inset
9663
9664 ] Modifies the properties of the given counter.
9665  If the counter does not exist, the statement is ignored.
9666  Must end with 
9667 \begin_inset Quotes eld
9668 \end_inset
9669
9670
9671 \begin_inset Flex Code
9672 status collapsed
9673
9674 \begin_layout Plain Layout
9675 End
9676 \end_layout
9677
9678 \end_inset
9679
9680
9681 \begin_inset Quotes erd
9682 \end_inset
9683
9684 .
9685 \begin_inset Newline newline
9686 \end_inset
9687
9688 See 
9689 \begin_inset CommandInset ref
9690 LatexCommand ref
9691 reference "subsec:Counters"
9692
9693 \end_inset
9694
9695  for details on counters.
9696 \end_layout
9697
9698 \begin_layout Description
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703 Input
9704 \end_layout
9705
9706 \end_inset
9707
9708  [
9709 \begin_inset Flex Code
9710 status collapsed
9711
9712 \begin_layout Plain Layout
9713 <filename>
9714 \end_layout
9715
9716 \end_inset
9717
9718 ] This allows you to include another layout definition file within yours
9719  to avoid duplicating commands.
9720  Common examples are the standard layout files, for example, 
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 stdclass.inc
9726 \end_layout
9727
9728 \end_inset
9729
9730 , which contains most of the basic layouts.
9731 \end_layout
9732
9733 \begin_layout Description
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 InsetLayout
9739 \end_layout
9740
9741 \end_inset
9742
9743  [
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 <type>
9749 \end_layout
9750
9751 \end_inset
9752
9753 ] This section (re-)defines the layout of an inset.
9754  It can be applied to an existing inset or to a new, user-defined inset,
9755  e.g., a new character style.
9756  Must end with 
9757 \begin_inset Quotes eld
9758 \end_inset
9759
9760
9761 \begin_inset Flex Code
9762 status collapsed
9763
9764 \begin_layout Plain Layout
9765 End
9766 \end_layout
9767
9768 \end_inset
9769
9770
9771 \begin_inset Quotes erd
9772 \end_inset
9773
9774 .
9775 \begin_inset Newline newline
9776 \end_inset
9777
9778 See 
9779 \begin_inset CommandInset ref
9780 LatexCommand ref
9781 reference "subsec:Flex-insets-and"
9782
9783 \end_inset
9784
9785  for more information.
9786  
9787 \end_layout
9788
9789 \begin_layout Description
9790 \begin_inset Flex Code
9791 status collapsed
9792
9793 \begin_layout Plain Layout
9794 LeftMargin
9795 \end_layout
9796
9797 \end_inset
9798
9799  [
9800 \begin_inset Flex Code
9801 status collapsed
9802
9803 \begin_layout Plain Layout
9804 string
9805 \end_layout
9806
9807 \end_inset
9808
9809 ] A string that indicates the width of the left margin on the screen, for
9810  example, 
9811 \begin_inset Quotes eld
9812 \end_inset
9813
9814
9815 \begin_inset Flex Code
9816 status collapsed
9817
9818 \begin_layout Plain Layout
9819 MMMMM
9820 \end_layout
9821
9822 \end_inset
9823
9824
9825 \begin_inset Quotes erd
9826 \end_inset
9827
9828 .
9829  (Note that this is not a `length', like 
9830 \begin_inset Quotes eld
9831 \end_inset
9832
9833 2ex
9834 \begin_inset Quotes erd
9835 \end_inset
9836
9837 .)
9838 \end_layout
9839
9840 \begin_layout Description
9841 \begin_inset Flex Code
9842 status collapsed
9843
9844 \begin_layout Plain Layout
9845 MaxCiteNames
9846 \end_layout
9847
9848 \end_inset
9849
9850  [
9851 \begin_inset Flex Code
9852 status collapsed
9853
9854 \begin_layout Plain Layout
9855 integer
9856 \end_layout
9857
9858 \end_inset
9859
9860 ] An integer that determines the maximal number of names displayed in an
9861  author-year citation before the citation switches to 
9862 \begin_inset Quotes eld
9863 \end_inset
9864
9865 FirstAuthor et al.
9866 \begin_inset Quotes erd
9867 \end_inset
9868
9869 .
9870  Primarily used in cite engine files (see 
9871 \begin_inset CommandInset ref
9872 LatexCommand ref
9873 reference "subsec:Cite-Engine-Files"
9874 plural "false"
9875 caps "false"
9876 noprefix "false"
9877
9878 \end_inset
9879
9880 ).
9881 \end_layout
9882
9883 \begin_layout Description
9884 \begin_inset Flex Code
9885 status collapsed
9886
9887 \begin_layout Plain Layout
9888 ModifyStyle
9889 \end_layout
9890
9891 \end_inset
9892
9893  [
9894 \begin_inset Flex Code
9895 status collapsed
9896
9897 \begin_layout Plain Layout
9898 <style>
9899 \end_layout
9900
9901 \end_inset
9902
9903 ] Modifies the properties of the given paragraph style.
9904  If the style does not exist, this section is ignored.
9905  Must end with 
9906 \begin_inset Quotes eld
9907 \end_inset
9908
9909
9910 \begin_inset Flex Code
9911 status collapsed
9912
9913 \begin_layout Plain Layout
9914 End
9915 \end_layout
9916
9917 \end_inset
9918
9919
9920 \begin_inset Quotes erd
9921 \end_inset
9922
9923 .
9924 \end_layout
9925
9926 \begin_layout Description
9927 \begin_inset Flex Code
9928 status collapsed
9929
9930 \begin_layout Plain Layout
9931 NoCounter
9932 \end_layout
9933
9934 \end_inset
9935
9936  [
9937 \begin_inset Flex Code
9938 status collapsed
9939
9940 \begin_layout Plain Layout
9941 <counter>
9942 \end_layout
9943
9944 \end_inset
9945
9946 ] Deletes an existing counter, usually one defined in an included file.
9947 \end_layout
9948
9949 \begin_layout Description
9950 \begin_inset Flex Code
9951 status collapsed
9952
9953 \begin_layout Plain Layout
9954 NoFloat
9955 \end_layout
9956
9957 \end_inset
9958
9959  [
9960 \begin_inset Flex Code
9961 status collapsed
9962
9963 \begin_layout Plain Layout
9964 <float>
9965 \end_layout
9966
9967 \end_inset
9968
9969 ] Deletes an existing float.
9970  This is particularly useful when you want to suppress a float that has
9971  been defined in an input file.
9972 \end_layout
9973
9974 \begin_layout Description
9975 \begin_inset Flex Code
9976 status collapsed
9977
9978 \begin_layout Plain Layout
9979 NoStyle
9980 \end_layout
9981
9982 \end_inset
9983
9984  [
9985 \begin_inset Flex Code
9986 status collapsed
9987
9988 \begin_layout Plain Layout
9989 <style>
9990 \end_layout
9991
9992 \end_inset
9993
9994 ] Deletes an existing style.
9995 \end_layout
9996
9997 \begin_layout Description
9998 \begin_inset Flex Code
9999 status collapsed
10000
10001 \begin_layout Plain Layout
10002 OutlinerName
10003 \end_layout
10004
10005 \end_inset
10006
10007  [
10008 \begin_inset Flex Code
10009 status collapsed
10010
10011 \begin_layout Plain Layout
10012 <type>
10013 \end_layout
10014
10015 \end_inset
10016
10017 ] [
10018 \begin_inset Flex Code
10019 status collapsed
10020
10021 \begin_layout Plain Layout
10022 <string>
10023 \end_layout
10024
10025 \end_inset
10026
10027 ] Define a new table of contents with type 
10028 \begin_inset Flex Code
10029 status collapsed
10030
10031 \begin_layout Plain Layout
10032 <type>
10033 \end_layout
10034
10035 \end_inset
10036
10037  and name 
10038 \begin_inset Flex Code
10039 status collapsed
10040
10041 \begin_layout Plain Layout
10042 <string>
10043 \end_layout
10044
10045 \end_inset
10046
10047 .
10048  See also the AddToToc commands.
10049 \end_layout
10050
10051 \begin_layout Description
10052 \begin_inset Flex Code
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056 OutputFormat
10057 \end_layout
10058
10059 \end_inset
10060
10061  [
10062 \begin_inset Flex Code
10063 status collapsed
10064
10065 \begin_layout Plain Layout
10066 <format>
10067 \end_layout
10068
10069 \end_inset
10070
10071 ] The file format (as defined in the \SpecialChar LyX
10072  preferences) produced by this document
10073  class.
10074  It is mainly useful when 
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 OutputType
10080 \end_layout
10081
10082 \end_inset
10083
10084  is 
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 literate
10090 \end_layout
10091
10092 \end_inset
10093
10094  and one wants to define a new type of literate document.
10095  The format is reset to 
10096 \begin_inset Quotes eld
10097 \end_inset
10098
10099
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 docbook
10105 \end_layout
10106
10107 \end_inset
10108
10109
10110 \begin_inset Quotes erd
10111 \end_inset
10112
10113  or 
10114 \begin_inset Quotes eld
10115 \end_inset
10116
10117
10118 \begin_inset Flex Code
10119 status collapsed
10120
10121 \begin_layout Plain Layout
10122 latex
10123 \end_layout
10124
10125 \end_inset
10126
10127
10128 \begin_inset Quotes erd
10129 \end_inset
10130
10131  when the corresponding 
10132 \begin_inset Flex Code
10133 status collapsed
10134
10135 \begin_layout Plain Layout
10136 OutputType
10137 \end_layout
10138
10139 \end_inset
10140
10141  parameter is encountered.
10142 \end_layout
10143
10144 \begin_layout Description
10145 \begin_inset Flex Code
10146 status collapsed
10147
10148 \begin_layout Plain Layout
10149 OutputType
10150 \end_layout
10151
10152 \end_inset
10153
10154  [
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159
10160 \emph on
10161 lat
10162 \emph default
10163 ex
10164 \end_layout
10165
10166 \end_inset
10167
10168
10169 \begin_inset Flex Code
10170 status collapsed
10171
10172 \begin_layout Plain Layout
10173 docbook
10174 \end_layout
10175
10176 \end_inset
10177
10178
10179 \begin_inset Flex Code
10180 status collapsed
10181
10182 \begin_layout Plain Layout
10183 literate
10184 \end_layout
10185
10186 \end_inset
10187
10188 ] Specifies what sort of output documents using this class will produce.
10189 \end_layout
10190
10191 \begin_layout Description
10192 \begin_inset Flex Code
10193 status collapsed
10194
10195 \begin_layout Plain Layout
10196 PackageOptions
10197 \end_layout
10198
10199 \end_inset
10200
10201  [
10202 \begin_inset Flex Code
10203 status collapsed
10204
10205 \begin_layout Plain Layout
10206 string
10207 \end_layout
10208
10209 \end_inset
10210
10211  
10212 \begin_inset Flex Code
10213 status collapsed
10214
10215 \begin_layout Plain Layout
10216 string
10217 \end_layout
10218
10219 \end_inset
10220
10221 ] Specifies options, given in the second string, for the package named by
10222  the first string.
10223  For example, 
10224 \begin_inset Quotes eld
10225 \end_inset
10226
10227
10228 \begin_inset Flex Code
10229 status collapsed
10230
10231 \begin_layout Plain Layout
10232 PackageOptions natbib square
10233 \end_layout
10234
10235 \end_inset
10236
10237
10238 \begin_inset Quotes erd
10239 \end_inset
10240
10241  will cause 
10242 \begin_inset Flex Code
10243 status collapsed
10244
10245 \begin_layout Plain Layout
10246 natbib
10247 \end_layout
10248
10249 \end_inset
10250
10251  to be loaded with the 
10252 \begin_inset Flex Code
10253 status collapsed
10254
10255 \begin_layout Plain Layout
10256 square
10257 \end_layout
10258
10259 \end_inset
10260
10261  option.
10262  (For \SpecialChar TeX
10263 perts, this causes \SpecialChar LyX
10264  to output: 
10265 \begin_inset Flex Code
10266 status collapsed
10267
10268 \begin_layout Plain Layout
10269
10270 \backslash
10271 PassOptionsToPackage{natbib}{square}
10272 \end_layout
10273
10274 \end_inset
10275
10276  prior to loading 
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 natbib
10282 \end_layout
10283
10284 \end_inset
10285
10286 .)
10287 \end_layout
10288
10289 \begin_layout Description
10290 \begin_inset Flex Code
10291 status collapsed
10292
10293 \begin_layout Plain Layout
10294 PageStyle
10295 \end_layout
10296
10297 \end_inset
10298
10299  [
10300 \begin_inset Flex Code
10301 status collapsed
10302
10303 \begin_layout Plain Layout
10304
10305 \emph on
10306 plain
10307 \end_layout
10308
10309 \end_inset
10310
10311
10312 \begin_inset Flex Code
10313 status collapsed
10314
10315 \begin_layout Plain Layout
10316 empty
10317 \end_layout
10318
10319 \end_inset
10320
10321
10322 \begin_inset Flex Code
10323 status collapsed
10324
10325 \begin_layout Plain Layout
10326 headings
10327 \end_layout
10328
10329 \end_inset
10330
10331 ] The default pagestyle.
10332  Can be changed in the 
10333 \begin_inset Flex Noun
10334 status collapsed
10335
10336 \begin_layout Plain Layout
10337 Document\SpecialChar menuseparator
10338 Settings
10339 \end_layout
10340
10341 \end_inset
10342
10343  dialog.
10344 \end_layout
10345
10346 \begin_layout Description
10347 \begin_inset Flex Code
10348 status collapsed
10349
10350 \begin_layout Plain Layout
10351 Preamble
10352 \end_layout
10353
10354 \end_inset
10355
10356  Sets the preamble for the \SpecialChar LaTeX
10357  document.
10358  Note that this will completely override any prior 
10359 \begin_inset Flex Code
10360 status collapsed
10361
10362 \begin_layout Plain Layout
10363 Preamble
10364 \end_layout
10365
10366 \end_inset
10367
10368  or 
10369 \begin_inset Flex Code
10370 status collapsed
10371
10372 \begin_layout Plain Layout
10373 AddToPreamble
10374 \end_layout
10375
10376 \end_inset
10377
10378  declarations.
10379  (Use 
10380 \begin_inset Flex Code
10381 status collapsed
10382
10383 \begin_layout Plain Layout
10384 AddToPreamble
10385 \end_layout
10386
10387 \end_inset
10388
10389  if you just want to add material to the preamble.) Must end with 
10390 \begin_inset Quotes eld
10391 \end_inset
10392
10393
10394 \begin_inset Flex Code
10395 status collapsed
10396
10397 \begin_layout Plain Layout
10398 EndPreamble
10399 \end_layout
10400
10401 \end_inset
10402
10403
10404 \begin_inset Quotes erd
10405 \end_inset
10406
10407 .
10408 \end_layout
10409
10410 \begin_layout Description
10411 \begin_inset Flex Code
10412 status collapsed
10413
10414 \begin_layout Plain Layout
10415 Provides
10416 \end_layout
10417
10418 \end_inset
10419
10420  [
10421 \begin_inset Flex Code
10422 status collapsed
10423
10424 \begin_layout Plain Layout
10425 string
10426 \end_layout
10427
10428 \end_inset
10429
10430 ] [
10431 \begin_inset Flex Code
10432 status collapsed
10433
10434 \begin_layout Plain Layout
10435
10436 \emph on
10437 0
10438 \end_layout
10439
10440 \end_inset
10441
10442 ,
10443 \begin_inset space \thinspace{}
10444 \end_inset
10445
10446
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 1
10452 \end_layout
10453
10454 \end_inset
10455
10456 ] Whether the class already provides the feature 
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 string
10462 \end_layout
10463
10464 \end_inset
10465
10466 .
10467  A feature is in general the name of a package (e.
10468 \begin_inset space \thinspace{}
10469 \end_inset
10470
10471 g.
10472 \begin_inset space \space{}
10473 \end_inset
10474
10475
10476 \begin_inset Flex Code
10477 status collapsed
10478
10479 \begin_layout Plain Layout
10480 amsmath
10481 \end_layout
10482
10483 \end_inset
10484
10485  or 
10486 \begin_inset Flex Code
10487 status collapsed
10488
10489 \begin_layout Plain Layout
10490 makeidx
10491 \end_layout
10492
10493 \end_inset
10494
10495 ) or a macro (e.
10496 \begin_inset space \thinspace{}
10497 \end_inset
10498
10499 g.
10500 \begin_inset space \space{}
10501 \end_inset
10502
10503
10504 \begin_inset Flex Code
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 url
10509 \end_layout
10510
10511 \end_inset
10512
10513  or 
10514 \begin_inset Flex Code
10515 status collapsed
10516
10517 \begin_layout Plain Layout
10518 boldsymbol
10519 \end_layout
10520
10521 \end_inset
10522
10523 ).
10524  See 
10525 \begin_inset CommandInset ref
10526 LatexCommand ref
10527 reference "chap:List-of-functions"
10528
10529 \end_inset
10530
10531  for the list of features.
10532 \end_layout
10533
10534 \begin_layout Description
10535 \begin_inset Flex Code
10536 status collapsed
10537
10538 \begin_layout Plain Layout
10539 ProvidesModule
10540 \end_layout
10541
10542 \end_inset
10543
10544  [
10545 \begin_inset Flex Code
10546 status collapsed
10547
10548 \begin_layout Plain Layout
10549 string
10550 \end_layout
10551
10552 \end_inset
10553
10554 ] Indicates that this layout provides the functionality of the module mentioned,
10555  which should be specified by the filename without the 
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 .module
10561 \end_layout
10562
10563 \end_inset
10564
10565  extension.
10566  This will typically be used if the layout includes the module directly,
10567  rather than using the 
10568 \begin_inset Flex Code
10569 status collapsed
10570
10571 \begin_layout Plain Layout
10572 DefaultModule
10573 \end_layout
10574
10575 \end_inset
10576
10577  tag to indicate that it ought to be used.
10578  It could also be used in a module that provided an alternate implementation
10579  of the same functionality.
10580 \end_layout
10581
10582 \begin_layout Description
10583 \begin_inset Flex Code
10584 status collapsed
10585
10586 \begin_layout Plain Layout
10587 ProvideStyle
10588 \end_layout
10589
10590 \end_inset
10591
10592  [
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 <style>
10598 \end_layout
10599
10600 \end_inset
10601
10602 ] Creates a new paragraph style if it does not already exist.
10603  If the style does exist, this section is ignored.
10604  Must end with 
10605 \begin_inset Quotes eld
10606 \end_inset
10607
10608
10609 \begin_inset Flex Code
10610 status collapsed
10611
10612 \begin_layout Plain Layout
10613 End
10614 \end_layout
10615
10616 \end_inset
10617
10618
10619 \begin_inset Quotes erd
10620 \end_inset
10621
10622 .
10623 \end_layout
10624
10625 \begin_layout Description
10626 \begin_inset Flex Code
10627 status collapsed
10628
10629 \begin_layout Plain Layout
10630 Requires
10631 \end_layout
10632
10633 \end_inset
10634
10635  [
10636 \begin_inset Flex Code
10637 status collapsed
10638
10639 \begin_layout Plain Layout
10640 string
10641 \end_layout
10642
10643 \end_inset
10644
10645 ] Whether the class requires the feature 
10646 \begin_inset Flex Code
10647 status collapsed
10648
10649 \begin_layout Plain Layout
10650 string
10651 \end_layout
10652
10653 \end_inset
10654
10655 .
10656  Multiple features must be separated by commas.
10657  Note that you can only request supported features.
10658  (See 
10659 \begin_inset CommandInset ref
10660 LatexCommand ref
10661 reference "chap:List-of-functions"
10662
10663 \end_inset
10664
10665  for the list of features.).
10666  If you require a package with specific options, you can additionally use
10667  
10668 \begin_inset Flex Code
10669 status collapsed
10670
10671 \begin_layout Plain Layout
10672 PackageOptions
10673 \end_layout
10674
10675 \end_inset
10676
10677 .
10678 \end_layout
10679
10680 \begin_layout Description
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 RightMargin
10686 \end_layout
10687
10688 \end_inset
10689
10690  [
10691 \begin_inset Flex Code
10692 status collapsed
10693
10694 \begin_layout Plain Layout
10695 string
10696 \end_layout
10697
10698 \end_inset
10699
10700 ] A string that indicates the width of the right margin on the screen, for
10701  example, 
10702 \begin_inset Quotes eld
10703 \end_inset
10704
10705
10706 \begin_inset Flex Code
10707 status collapsed
10708
10709 \begin_layout Plain Layout
10710 MMMMM
10711 \end_layout
10712
10713 \end_inset
10714
10715
10716 \begin_inset Quotes erd
10717 \end_inset
10718
10719 .
10720 \end_layout
10721
10722 \begin_layout Description
10723 \begin_inset Flex Code
10724 status collapsed
10725
10726 \begin_layout Plain Layout
10727 SecNumDepth
10728 \end_layout
10729
10730 \end_inset
10731
10732  [
10733 \begin_inset Flex Code
10734 status collapsed
10735
10736 \begin_layout Plain Layout
10737 int=3
10738 \end_layout
10739
10740 \end_inset
10741
10742 ] Sets which divisions get numbered.
10743  Corresponds to the
10744 \begin_inset Newline newline
10745 \end_inset
10746
10747
10748 \begin_inset Flex Code
10749 status collapsed
10750
10751 \begin_layout Plain Layout
10752 secnumdepth
10753 \end_layout
10754
10755 \end_inset
10756
10757  counter in \SpecialChar LaTeX
10758 .
10759 \end_layout
10760
10761 \begin_layout Description
10762 \begin_inset Flex Code
10763 status collapsed
10764
10765 \begin_layout Plain Layout
10766 Sides
10767 \end_layout
10768
10769 \end_inset
10770
10771  [
10772 \begin_inset Flex Code
10773 status collapsed
10774
10775 \begin_layout Plain Layout
10776
10777 \emph on
10778 1
10779 \end_layout
10780
10781 \end_inset
10782
10783 ,
10784 \begin_inset space \thinspace{}
10785 \end_inset
10786
10787
10788 \begin_inset Flex Code
10789 status collapsed
10790
10791 \begin_layout Plain Layout
10792 2
10793 \end_layout
10794
10795 \end_inset
10796
10797 ] Whether the class-default should be printing on one or both sides of the
10798  paper.
10799  Can be changed in the 
10800 \begin_inset Flex Noun
10801 status collapsed
10802
10803 \begin_layout Plain Layout
10804 Document\SpecialChar menuseparator
10805 Settings
10806 \end_layout
10807
10808 \end_inset
10809
10810  dialog.
10811 \end_layout
10812
10813 \begin_layout Description
10814 \begin_inset Flex Code
10815 status collapsed
10816
10817 \begin_layout Plain Layout
10818 Style
10819 \end_layout
10820
10821 \end_inset
10822
10823  [
10824 \begin_inset Flex Code
10825 status collapsed
10826
10827 \begin_layout Plain Layout
10828 <name>
10829 \end_layout
10830
10831 \end_inset
10832
10833 ] This sequence defines a paragraph style.
10834  If the style does not yet exist, it is created; if it does exist, its parameter
10835 s are modified.
10836  Must end with 
10837 \begin_inset Quotes eld
10838 \end_inset
10839
10840
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845 End
10846 \end_layout
10847
10848 \end_inset
10849
10850
10851 \begin_inset Quotes erd
10852 \end_inset
10853
10854 .
10855 \begin_inset Newline newline
10856 \end_inset
10857
10858 See 
10859 \begin_inset CommandInset ref
10860 LatexCommand ref
10861 reference "subsec:Paragraph-Styles"
10862
10863 \end_inset
10864
10865  for details on paragraph styles.
10866 \end_layout
10867
10868 \begin_layout Description
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873 TitleLatexName
10874 \end_layout
10875
10876 \end_inset
10877
10878  [
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 string="maketitle"
10884 \end_layout
10885
10886 \end_inset
10887
10888 ] The name of the command or environment to be used with 
10889 \begin_inset Flex Code
10890 status collapsed
10891
10892 \begin_layout Plain Layout
10893 TitleLatexType
10894 \end_layout
10895
10896 \end_inset
10897
10898 .
10899 \end_layout
10900
10901 \begin_layout Description
10902 \begin_inset Flex Code
10903 status collapsed
10904
10905 \begin_layout Plain Layout
10906 TitleLatexType
10907 \end_layout
10908
10909 \end_inset
10910
10911  [
10912 \begin_inset Flex Code
10913 status collapsed
10914
10915 \begin_layout Plain Layout
10916
10917 \emph on
10918 CommandAfter
10919 \end_layout
10920
10921 \end_inset
10922
10923
10924 \begin_inset Flex Code
10925 status collapsed
10926
10927 \begin_layout Plain Layout
10928 Environment
10929 \end_layout
10930
10931 \end_inset
10932
10933 ] Indicates what kind of markup is used to define the title of a document.
10934  
10935 \begin_inset Flex Code
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939 CommandAfter
10940 \end_layout
10941
10942 \end_inset
10943
10944  means that the macro with name 
10945 \begin_inset Flex Code
10946 status collapsed
10947
10948 \begin_layout Plain Layout
10949 TitleLatexName
10950 \end_layout
10951
10952 \end_inset
10953
10954  will be inserted after the last layout which has 
10955 \begin_inset Quotes eld
10956 \end_inset
10957
10958
10959 \begin_inset Flex Code
10960 status collapsed
10961
10962 \begin_layout Plain Layout
10963 InTitle
10964 \begin_inset space ~
10965 \end_inset
10966
10967 1
10968 \end_layout
10969
10970 \end_inset
10971
10972
10973 \begin_inset Quotes erd
10974 \end_inset
10975
10976 .
10977  
10978 \begin_inset Flex Code
10979 status collapsed
10980
10981 \begin_layout Plain Layout
10982 Environment
10983 \end_layout
10984
10985 \end_inset
10986
10987  corresponds to the case where all layouts which have 
10988 \begin_inset Quotes eld
10989 \end_inset
10990
10991
10992 \begin_inset Flex Code
10993 status collapsed
10994
10995 \begin_layout Plain Layout
10996 InTitle
10997 \begin_inset space ~
10998 \end_inset
10999
11000 1
11001 \end_layout
11002
11003 \end_inset
11004
11005
11006 \begin_inset Quotes erd
11007 \end_inset
11008
11009  should be enclosed into the 
11010 \begin_inset Flex Code
11011 status collapsed
11012
11013 \begin_layout Plain Layout
11014 TitleLatexName
11015 \end_layout
11016
11017 \end_inset
11018
11019  environment.
11020 \end_layout
11021
11022 \begin_layout Description
11023 \begin_inset Flex Code
11024 status collapsed
11025
11026 \begin_layout Plain Layout
11027 TocDepth
11028 \end_layout
11029
11030 \end_inset
11031
11032  [
11033 \begin_inset Flex Code
11034 status collapsed
11035
11036 \begin_layout Plain Layout
11037 int=3
11038 \end_layout
11039
11040 \end_inset
11041
11042 ] Sets which divisions are included in the table of contents.
11043  Corresponds to the 
11044 \begin_inset Flex Code
11045 status collapsed
11046
11047 \begin_layout Plain Layout
11048 tocdepth
11049 \end_layout
11050
11051 \end_inset
11052
11053  counter in \SpecialChar LaTeX
11054 .
11055 \end_layout
11056
11057 \begin_layout Subsection
11058 \begin_inset Flex Code
11059 status collapsed
11060
11061 \begin_layout Plain Layout
11062 ClassOptions
11063 \end_layout
11064
11065 \end_inset
11066
11067  section
11068 \begin_inset CommandInset label
11069 LatexCommand label
11070 name "subsec:ClassOptions"
11071
11072 \end_inset
11073
11074
11075 \end_layout
11076
11077 \begin_layout Standard
11078 The 
11079 \begin_inset Flex Code
11080 status collapsed
11081
11082 \begin_layout Plain Layout
11083 ClassOptions
11084 \end_layout
11085
11086 \end_inset
11087
11088  section can contain the following entries:
11089 \end_layout
11090
11091 \begin_layout Description
11092 \begin_inset Flex Code
11093 status collapsed
11094
11095 \begin_layout Plain Layout
11096 FontSize
11097 \end_layout
11098
11099 \end_inset
11100
11101  [
11102 \begin_inset Flex Code
11103 status collapsed
11104
11105 \begin_layout Plain Layout
11106 string="10|11|12"
11107 \end_layout
11108
11109 \end_inset
11110
11111 ] The list of available font sizes for the document's main font, separated
11112  by 
11113 \begin_inset Quotes eld
11114 \end_inset
11115
11116
11117 \begin_inset Flex Code
11118 status collapsed
11119
11120 \begin_layout Plain Layout
11121 |
11122 \end_layout
11123
11124 \end_inset
11125
11126
11127 \begin_inset Quotes erd
11128 \end_inset
11129
11130 .
11131 \end_layout
11132
11133 \begin_layout Description
11134 \begin_inset Flex Code
11135 status collapsed
11136
11137 \begin_layout Plain Layout
11138 Header
11139 \end_layout
11140
11141 \end_inset
11142
11143  Used to set the DTD line with XML-based output classes.
11144  E.
11145 \begin_inset space \thinspace{}
11146 \end_inset
11147
11148 g.: PUBLIC 
11149 \begin_inset Quotes eld
11150 \end_inset
11151
11152 -//OASIS//DTD DocBook V4.2//EN
11153 \begin_inset Quotes erd
11154 \end_inset
11155
11156 .
11157 \end_layout
11158
11159 \begin_layout Description
11160 \begin_inset Flex Code
11161 status collapsed
11162
11163 \begin_layout Plain Layout
11164 PageStyle
11165 \end_layout
11166
11167 \end_inset
11168
11169  [
11170 \begin_inset Flex Code
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 string="empty|plain|headings|fancy"
11175 \end_layout
11176
11177 \end_inset
11178
11179 ] The list of available page sty\SpecialChar softhyphen
11180 les, separated by 
11181 \begin_inset Quotes eld
11182 \end_inset
11183
11184
11185 \begin_inset Flex Code
11186 status collapsed
11187
11188 \begin_layout Plain Layout
11189 |
11190 \end_layout
11191
11192 \end_inset
11193
11194
11195 \begin_inset Quotes erd
11196 \end_inset
11197
11198 .
11199 \end_layout
11200
11201 \begin_layout Description
11202 \begin_inset Flex Code
11203 status collapsed
11204
11205 \begin_layout Plain Layout
11206 Other
11207 \end_layout
11208
11209 \end_inset
11210
11211  [
11212 \begin_inset Flex Code
11213 status collapsed
11214
11215 \begin_layout Plain Layout
11216 string=""
11217 \end_layout
11218
11219 \end_inset
11220
11221 ] Some document class options, separated by a comma, that will be added
11222  to the optional part of the 
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227
11228 \backslash
11229 documentclass
11230 \end_layout
11231
11232 \end_inset
11233
11234  command.
11235 \end_layout
11236
11237 \begin_layout Standard
11238 The 
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 ClassOptions
11244 \end_layout
11245
11246 \end_inset
11247
11248  section must end with 
11249 \begin_inset Quotes eld
11250 \end_inset
11251
11252
11253 \begin_inset Flex Code
11254 status collapsed
11255
11256 \begin_layout Plain Layout
11257 End
11258 \end_layout
11259
11260 \end_inset
11261
11262
11263 \begin_inset Quotes erd
11264 \end_inset
11265
11266 .
11267 \end_layout
11268
11269 \begin_layout Subsection
11270 Paragraph styles
11271 \begin_inset CommandInset label
11272 LatexCommand label
11273 name "subsec:Paragraph-Styles"
11274
11275 \end_inset
11276
11277
11278 \end_layout
11279
11280 \begin_layout Standard
11281 A paragraph style description looks like this:
11282 \begin_inset Foot
11283 status collapsed
11284
11285 \begin_layout Plain Layout
11286 Note that this will either define a new style or modify an existing one.
11287 \end_layout
11288
11289 \end_inset
11290
11291
11292 \end_layout
11293
11294 \begin_layout LyX-Code
11295 Style 
11296 \family roman
11297 \emph on
11298 name
11299 \end_layout
11300
11301 \begin_layout LyX-Code
11302  ...
11303 \end_layout
11304
11305 \begin_layout LyX-Code
11306 End
11307 \end_layout
11308
11309 \begin_layout Standard
11310 where the following commands are allowed:
11311 \end_layout
11312
11313 \begin_layout Description
11314 \begin_inset Flex Code
11315 status collapsed
11316
11317 \begin_layout Plain Layout
11318 AddToToc
11319 \end_layout
11320
11321 \end_inset
11322
11323  [
11324 \begin_inset Flex Code
11325 status collapsed
11326
11327 \begin_layout Plain Layout
11328 string
11329 \end_layout
11330
11331 \end_inset
11332
11333 =""] This paragraph will appear in the table of contents of the given type.
11334  An empty string disables.
11335  See also the OutlinerName and the IsTocCaption commands.
11336  Default: disabled.
11337 \end_layout
11338
11339 \begin_layout Description
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 Align
11345 \end_layout
11346
11347 \end_inset
11348
11349  [
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354
11355 \emph on
11356 block
11357 \emph default
11358 , left, right, center
11359 \end_layout
11360
11361 \end_inset
11362
11363 ] Paragraph alignment.
11364 \end_layout
11365
11366 \begin_layout Description
11367 \begin_inset Flex Code
11368 status collapsed
11369
11370 \begin_layout Plain Layout
11371 AlignPossible
11372 \end_layout
11373
11374 \end_inset
11375
11376  [
11377 \begin_inset Flex Code
11378 status collapsed
11379
11380 \begin_layout Plain Layout
11381
11382 \emph on
11383 block
11384 \emph default
11385 , left, right, center
11386 \end_layout
11387
11388 \end_inset
11389
11390 ] A comma separated list of permitted alignments.
11391  (Some \SpecialChar LaTeX
11392  styles prohibit certain alignments, since those wouldn't make sense.
11393  For example a right-aligned or centered enumeration isn't possible.)
11394 \end_layout
11395
11396 \begin_layout Description
11397 \begin_inset Flex Code
11398 status collapsed
11399
11400 \begin_layout Plain Layout
11401 Argument
11402 \end_layout
11403
11404 \end_inset
11405
11406  [
11407 \begin_inset Flex Code
11408 status collapsed
11409
11410 \begin_layout Plain Layout
11411 int
11412 \end_layout
11413
11414 \end_inset
11415
11416 ] Defines argument number <int> of a command\SpecialChar breakableslash
11417 environment associated with
11418  the current style.
11419  This is useful for things like section headings, and only makes sense with
11420  \SpecialChar LaTeX
11421 .
11422  Every (optional or required) argument of a command or environment – except
11423  for the required argument that is associated with the content of the paragraph
11424  itself – has a separate definition, where the number specifies the order
11425  of the arguments.
11426  The definition must end with 
11427 \begin_inset Flex Code
11428 status collapsed
11429
11430 \begin_layout Plain Layout
11431 EndArgument
11432 \end_layout
11433
11434 \end_inset
11435
11436 .
11437  So a command with two optional arguments has:
11438 \end_layout
11439
11440 \begin_deeper
11441 \begin_layout Quote
11442
11443 \family typewriter
11444 Argument 1
11445 \end_layout
11446
11447 \begin_layout Quote
11448
11449 \family typewriter
11450 ...
11451 \end_layout
11452
11453 \begin_layout Quote
11454
11455 \family typewriter
11456 EndArgument
11457 \end_layout
11458
11459 \begin_layout Quote
11460
11461 \family typewriter
11462 Argument 2
11463 \end_layout
11464
11465 \begin_layout Quote
11466
11467 \family typewriter
11468 ...
11469 \end_layout
11470
11471 \begin_layout Quote
11472
11473 \family typewriter
11474 EndArgument
11475 \end_layout
11476
11477 \begin_layout Standard
11478 Inside the 
11479 \begin_inset Flex Code
11480 status collapsed
11481
11482 \begin_layout Plain Layout
11483 Argument
11484 \end_layout
11485
11486 \end_inset
11487
11488  definition, the following specifications are possible:
11489 \end_layout
11490
11491 \begin_layout Itemize
11492 \begin_inset Flex Code
11493 status collapsed
11494
11495 \begin_layout Plain Layout
11496 LabelString
11497 \end_layout
11498
11499 \end_inset
11500
11501  
11502 \begin_inset Flex Code
11503 status collapsed
11504
11505 \begin_layout Plain Layout
11506 [string]
11507 \end_layout
11508
11509 \end_inset
11510
11511  The string that will appear both in the menu (to insert this argument)
11512  and on the argument inset button (unless you also specify a separate 
11513 \begin_inset Flex Code
11514 status collapsed
11515
11516 \begin_layout Plain Layout
11517 MenuString
11518 \end_layout
11519
11520 \end_inset
11521
11522 ).
11523  For the menu, you can define an accelerator by appending the respective
11524  character to the string, divided by 
11525 \begin_inset Quotes eld
11526 \end_inset
11527
11528 |
11529 \begin_inset Quotes erd
11530 \end_inset
11531
11532  (e.
11533 \begin_inset space \thinspace{}
11534 \end_inset
11535
11536 g.
11537 \begin_inset space \space{}
11538 \end_inset
11539
11540
11541 \begin_inset Quotes eld
11542 \end_inset
11543
11544
11545 \begin_inset Flex Code
11546 status collapsed
11547
11548 \begin_layout Plain Layout
11549 Short Title|S
11550 \end_layout
11551
11552 \end_inset
11553
11554
11555 \begin_inset Quotes erd
11556 \end_inset
11557
11558 ).
11559 \end_layout
11560
11561 \begin_layout Itemize
11562 \begin_inset Flex Code
11563 status collapsed
11564
11565 \begin_layout Plain Layout
11566 MenuString
11567 \end_layout
11568
11569 \end_inset
11570
11571  
11572 \begin_inset Flex Code
11573 status collapsed
11574
11575 \begin_layout Plain Layout
11576 [string]
11577 \end_layout
11578
11579 \end_inset
11580
11581  A separate string for the menu.
11582  You can define an accelerator by appending the respective character to
11583  the string, divided by 
11584 \begin_inset Quotes eld
11585 \end_inset
11586
11587 |
11588 \begin_inset Quotes erd
11589 \end_inset
11590
11591  (e.
11592 \begin_inset space \thinspace{}
11593 \end_inset
11594
11595 g.
11596 \begin_inset space \space{}
11597 \end_inset
11598
11599
11600 \begin_inset Quotes eld
11601 \end_inset
11602
11603
11604 \begin_inset Flex Code
11605 status collapsed
11606
11607 \begin_layout Plain Layout
11608 Short Title|S
11609 \end_layout
11610
11611 \end_inset
11612
11613
11614 \begin_inset Quotes erd
11615 \end_inset
11616
11617 ).
11618  This specification is optional.
11619  If it is not given the 
11620 \begin_inset Flex Code
11621 status collapsed
11622
11623 \begin_layout Plain Layout
11624 LabelString
11625 \end_layout
11626
11627 \end_inset
11628
11629  will be used instead for the menu.
11630 \end_layout
11631
11632 \begin_layout Itemize
11633 \begin_inset Flex Code
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637 Tooltip
11638 \end_layout
11639
11640 \end_inset
11641
11642  
11643 \begin_inset Flex Code
11644 status collapsed
11645
11646 \begin_layout Plain Layout
11647 [string]
11648 \end_layout
11649
11650 \end_inset
11651
11652  A longer explanatory text that appears in the tooltip when hovering over
11653  the argument inset.
11654 \end_layout
11655
11656 \begin_layout Itemize
11657 \begin_inset Flex Code
11658 status collapsed
11659
11660 \begin_layout Plain Layout
11661 Mandatory
11662 \end_layout
11663
11664 \end_inset
11665
11666  [
11667 \begin_inset Flex Code
11668 status collapsed
11669
11670 \begin_layout Plain Layout
11671
11672 \emph on
11673 0
11674 \end_layout
11675
11676 \end_inset
11677
11678 ,
11679 \begin_inset space \thinspace{}
11680 \end_inset
11681
11682
11683 \begin_inset Flex Code
11684 status collapsed
11685
11686 \begin_layout Plain Layout
11687 1
11688 \end_layout
11689
11690 \end_inset
11691
11692 ] Declare if this is a mandatory (1) or an optional (0) argument.
11693  Mandatory arguments will be output empty if not given, while optional arguments
11694  will not be output at all.
11695  By default, mandatory arguments are delimited by 
11696 \begin_inset Flex Code
11697 status collapsed
11698
11699 \begin_layout Plain Layout
11700 {...}
11701 \end_layout
11702
11703 \end_inset
11704
11705 , while optional arguments are delimited by 
11706 \begin_inset Flex Code
11707 status collapsed
11708
11709 \begin_layout Plain Layout
11710 [...]
11711 \end_layout
11712
11713 \end_inset
11714
11715
11716 \end_layout
11717
11718 \begin_layout Itemize
11719 \begin_inset Flex Code
11720 status collapsed
11721
11722 \begin_layout Plain Layout
11723 Requires
11724 \end_layout
11725
11726 \end_inset
11727
11728  
11729 \begin_inset Flex Code
11730 status collapsed
11731
11732 \begin_layout Plain Layout
11733 [int=0]
11734 \end_layout
11735
11736 \end_inset
11737
11738  defines another argument (by its number) which this argument requires to
11739  be output if it is itself output.
11740  E.
11741 \begin_inset space \thinspace{}
11742 \end_inset
11743
11744 g., in \SpecialChar LaTeX
11745  commands, optional arguments often require previous optional arguments
11746  to be output (at least empty), as in 
11747 \begin_inset Flex Code
11748 status collapsed
11749
11750 \begin_layout Plain Layout
11751
11752 \backslash
11753 command[][argument]{text}
11754 \end_layout
11755
11756 \end_inset
11757
11758 .
11759  This can be achieved by the statement 
11760 \begin_inset Flex Code
11761 status collapsed
11762
11763 \begin_layout Plain Layout
11764 Requires 1
11765 \end_layout
11766
11767 \end_inset
11768
11769  within 
11770 \begin_inset Flex Code
11771 status collapsed
11772
11773 \begin_layout Plain Layout
11774 Argument 2
11775 \end_layout
11776
11777 \end_inset
11778
11779 .
11780 \end_layout
11781
11782 \begin_layout Itemize
11783 \begin_inset Flex Code
11784 status collapsed
11785
11786 \begin_layout Plain Layout
11787 LeftDelim
11788 \end_layout
11789
11790 \end_inset
11791
11792  
11793 \begin_inset Flex Code
11794 status collapsed
11795
11796 \begin_layout Plain Layout
11797 [string]
11798 \end_layout
11799
11800 \end_inset
11801
11802  defines a custom left delimiter (instead of 
11803 \begin_inset Flex Code
11804 status collapsed
11805
11806 \begin_layout Plain Layout
11807 {
11808 \end_layout
11809
11810 \end_inset
11811
11812  or 
11813 \begin_inset Flex Code
11814 status collapsed
11815
11816 \begin_layout Plain Layout
11817 [
11818 \end_layout
11819
11820 \end_inset
11821
11822 ).
11823  A line break in the output can be indicated by 
11824 \begin_inset Flex Code
11825 status collapsed
11826
11827 \begin_layout Plain Layout
11828 <br/>
11829 \end_layout
11830
11831 \end_inset
11832
11833 .
11834 \end_layout
11835
11836 \begin_layout Itemize
11837 \begin_inset Flex Code
11838 status collapsed
11839
11840 \begin_layout Plain Layout
11841 RightDelim
11842 \end_layout
11843
11844 \end_inset
11845
11846  
11847 \begin_inset Flex Code
11848 status collapsed
11849
11850 \begin_layout Plain Layout
11851 [string]
11852 \end_layout
11853
11854 \end_inset
11855
11856  defines a custom right delimiter (instead of 
11857 \begin_inset Flex Code
11858 status collapsed
11859
11860 \begin_layout Plain Layout
11861 }
11862 \end_layout
11863
11864 \end_inset
11865
11866  or 
11867 \begin_inset Flex Code
11868 status collapsed
11869
11870 \begin_layout Plain Layout
11871 ]
11872 \end_layout
11873
11874 \end_inset
11875
11876 ).
11877  A line break in the output can be indicated by 
11878 \begin_inset Flex Code
11879 status collapsed
11880
11881 \begin_layout Plain Layout
11882 <br/>
11883 \end_layout
11884
11885 \end_inset
11886
11887 .
11888 \end_layout
11889
11890 \begin_layout Itemize
11891 \begin_inset Flex Code
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895 DefaultArg
11896 \end_layout
11897
11898 \end_inset
11899
11900  
11901 \begin_inset Flex Code
11902 status collapsed
11903
11904 \begin_layout Plain Layout
11905 [string]
11906 \end_layout
11907
11908 \end_inset
11909
11910  defines an argument that is inserted if and only if no user-specified arguments
11911  were given, i.
11912 \begin_inset space \thinspace{}
11913 \end_inset
11914
11915 e.
11916 \begin_inset space \space{}
11917 \end_inset
11918
11919 if no argument inset has been inserted (note that also an empty argument
11920  inset omits the DefaultArg).
11921  Multiple arguments need to be separated by comma.
11922 \end_layout
11923
11924 \begin_layout Itemize
11925 \begin_inset Flex Code
11926 status collapsed
11927
11928 \begin_layout Plain Layout
11929 PresetArg
11930 \end_layout
11931
11932 \end_inset
11933
11934  
11935 \begin_inset Flex Code
11936 status collapsed
11937
11938 \begin_layout Plain Layout
11939 [string]
11940 \end_layout
11941
11942 \end_inset
11943
11944  defines an argument that is inserted in any case (alone or in addition
11945  to user-specified arguments).
11946  Multiple arguments need to be separated by comma.
11947 \end_layout
11948
11949 \begin_layout Itemize
11950 \begin_inset Flex Code
11951 status collapsed
11952
11953 \begin_layout Plain Layout
11954 Font
11955 \end_layout
11956
11957 \end_inset
11958
11959  The font used for the argument content, see 
11960 \begin_inset CommandInset ref
11961 LatexCommand ref
11962 reference "subsec:Font-description"
11963
11964 \end_inset
11965
11966 .
11967 \end_layout
11968
11969 \begin_layout Itemize
11970 \begin_inset Flex Code
11971 status collapsed
11972
11973 \begin_layout Plain Layout
11974 LabelFont
11975 \end_layout
11976
11977 \end_inset
11978
11979  The font used for the label; see 
11980 \begin_inset CommandInset ref
11981 LatexCommand ref
11982 reference "subsec:Font-description"
11983
11984 \end_inset
11985
11986 .
11987 \end_layout
11988
11989 \begin_layout Itemize
11990 \begin_inset Flex Code
11991 status collapsed
11992
11993 \begin_layout Plain Layout
11994 Decoration
11995 \end_layout
11996
11997 \end_inset
11998
11999  [
12000 \begin_inset Flex Code
12001 status collapsed
12002
12003 \begin_layout Plain Layout
12004
12005 \emph on
12006 Classic
12007 \emph default
12008 , Minimalistic, Conglomerate
12009 \end_layout
12010
12011 \end_inset
12012
12013 ] describes the rendering style used for the inset's frame and buttons.
12014 \end_layout
12015
12016 \begin_layout Itemize
12017 \begin_inset Flex Code
12018 status collapsed
12019
12020 \begin_layout Plain Layout
12021 AutoInsert
12022 \end_layout
12023
12024 \end_inset
12025
12026  
12027 \begin_inset Flex Code
12028 status collapsed
12029
12030 \begin_layout Plain Layout
12031 [int=0]
12032 \end_layout
12033
12034 \end_inset
12035
12036  If this is set to 
12037 \begin_inset Flex Code
12038 status collapsed
12039
12040 \begin_layout Plain Layout
12041 1
12042 \end_layout
12043
12044 \end_inset
12045
12046 , this argument is automatically inserted when the respective style is selected.
12047  Currently, only one argument per style\SpecialChar breakableslash
12048 layout can be automatically inserted.
12049 \end_layout
12050
12051 \begin_layout Itemize
12052 \begin_inset Flex Code
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056 InsertCotext
12057 \end_layout
12058
12059 \end_inset
12060
12061  
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066 [int=0]
12067 \end_layout
12068
12069 \end_inset
12070
12071  If this is set to 
12072 \begin_inset Flex Code
12073 status collapsed
12074
12075 \begin_layout Plain Layout
12076 1
12077 \end_layout
12078
12079 \end_inset
12080
12081 , this argument will be inserted with a copy of the co-text (either selected
12082  text or the whole paragraph) as content.
12083 \end_layout
12084
12085 \begin_layout Itemize
12086 \begin_inset Flex Code
12087 status collapsed
12088
12089 \begin_layout Plain Layout
12090 PassThru
12091 \end_layout
12092
12093 \end_inset
12094
12095  [
12096 \begin_inset Flex Code
12097 status collapsed
12098
12099 \begin_layout Plain Layout
12100
12101 \emph on
12102 inherited
12103 \emph default
12104 , true, false
12105 \end_layout
12106
12107 \end_inset
12108
12109 ] Whether the contents of this argument should be output in raw form, meaning
12110  without special translations that \SpecialChar LaTeX
12111  would require.
12112  By default, the 
12113 \begin_inset Flex Code
12114 status collapsed
12115
12116 \begin_layout Plain Layout
12117 PassThru
12118 \end_layout
12119
12120 \end_inset
12121
12122  status is inherited by the inset or paragraph layout the argument belongs
12123  to, true and false change the status for the given argument only.
12124 \end_layout
12125
12126 \begin_layout Itemize
12127 \begin_inset Flex Code
12128 status collapsed
12129
12130 \begin_layout Plain Layout
12131 PassThruChars
12132 \end_layout
12133
12134 \end_inset
12135
12136  [
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 string of characters
12142 \end_layout
12143
12144 \end_inset
12145
12146 ]
12147 \family typewriter
12148  
12149 \family default
12150 Defines individual characters
12151 \begin_inset Newline linebreak
12152 \end_inset
12153
12154 that should be output in raw form, meaning without special translations
12155  that \SpecialChar LaTeX
12156  would require.
12157  Note that, contrary to PassThru, this needs to be explicitly defined for
12158  arguments.
12159  That is, arguments do not inherit PassThruChars from their parent inset
12160  or layout.
12161 \end_layout
12162
12163 \begin_layout Itemize
12164 \begin_inset Flex Code
12165 status collapsed
12166
12167 \begin_layout Plain Layout
12168 IsTocCaption
12169 \end_layout
12170
12171 \end_inset
12172
12173  [
12174 \begin_inset Flex Code
12175 status collapsed
12176
12177 \begin_layout Plain Layout
12178
12179 \emph on
12180 0
12181 \end_layout
12182
12183 \end_inset
12184
12185 ,
12186 \begin_inset space \thinspace{}
12187 \end_inset
12188
12189
12190 \begin_inset Flex Code
12191 status collapsed
12192
12193 \begin_layout Plain Layout
12194 1
12195 \end_layout
12196
12197 \end_inset
12198
12199 ] If this is set to 1, the argument will output its content in the corresponding
12200  item in the table of contents.
12201  See AddToToc.
12202 \end_layout
12203
12204 \begin_layout Standard
12205 By default, the text entered in the \SpecialChar LyX
12206  workarea in the respective layout is
12207  the last (mandatory) argument of a command if the 
12208 \begin_inset Flex Code
12209 status collapsed
12210
12211 \begin_layout Plain Layout
12212 LatexType
12213 \end_layout
12214
12215 \end_inset
12216
12217  is 
12218 \begin_inset Flex Code
12219 status collapsed
12220
12221 \begin_layout Plain Layout
12222 Command
12223 \end_layout
12224
12225 \end_inset
12226
12227 .
12228  However, arguments with the prefix 
12229 \begin_inset Flex Code
12230 status collapsed
12231
12232 \begin_layout Plain Layout
12233 post:
12234 \end_layout
12235
12236 \end_inset
12237
12238  are output after this workarea argument.
12239  Note that post-argument numbering restarts at 1, so the first argument
12240  following the workarea argument is 
12241 \begin_inset Flex Code
12242 status collapsed
12243
12244 \begin_layout Plain Layout
12245 post:1
12246 \end_layout
12247
12248 \end_inset
12249
12250 .
12251  Post-arguments are ignored in any other 
12252 \begin_inset Flex Code
12253 status collapsed
12254
12255 \begin_layout Plain Layout
12256 LatexType
12257 \end_layout
12258
12259 \end_inset
12260
12261  than 
12262 \begin_inset Flex Code
12263 status collapsed
12264
12265 \begin_layout Plain Layout
12266 Command
12267 \end_layout
12268
12269 \end_inset
12270
12271 .
12272 \end_layout
12273
12274 \begin_layout Standard
12275 Arguments for list 
12276 \begin_inset Flex Code
12277 status collapsed
12278
12279 \begin_layout Plain Layout
12280
12281 \backslash
12282 item
12283 \end_layout
12284
12285 \end_inset
12286
12287 s (as in 
12288 \begin_inset Flex Code
12289 status collapsed
12290
12291 \begin_layout Plain Layout
12292
12293 \backslash
12294 item[foo]
12295 \end_layout
12296
12297 \end_inset
12298
12299 ) have the prefix 
12300 \begin_inset Flex Code
12301 status collapsed
12302
12303 \begin_layout Plain Layout
12304 item:
12305 \end_layout
12306
12307 \end_inset
12308
12309  followed by the number (e.
12310 \begin_inset space \thinspace{}
12311 \end_inset
12312
12313 g.
12314 \begin_inset space \space{}
12315 \end_inset
12316
12317
12318 \begin_inset Flex Code
12319 status collapsed
12320
12321 \begin_layout Plain Layout
12322 Argument item:1
12323 \end_layout
12324
12325 \end_inset
12326
12327 ).
12328 \end_layout
12329
12330 \end_deeper
12331 \begin_layout Description
12332 \begin_inset Flex Code
12333 status collapsed
12334
12335 \begin_layout Plain Layout
12336 AutoNests
12337 \end_layout
12338
12339 \end_inset
12340
12341  Includes a comma-separated list of layouts that should be nested in and
12342  after the current layout.
12343  Only makes sense for nestable layouts (such as environments).
12344  Must be ended by 
12345 \begin_inset Quotes eld
12346 \end_inset
12347
12348
12349 \begin_inset Flex Code
12350 status collapsed
12351
12352 \begin_layout Plain Layout
12353 EndAutoNests
12354 \end_layout
12355
12356 \end_inset
12357
12358
12359 \begin_inset Quotes erd
12360 \end_inset
12361
12362 .
12363  See also 
12364 \begin_inset Flex Code
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368 IsAutoNestedBy
12369 \end_layout
12370
12371 \end_inset
12372
12373 .
12374 \end_layout
12375
12376 \begin_layout Description
12377 \begin_inset Flex Code
12378 status collapsed
12379
12380 \begin_layout Plain Layout
12381 BabelPreamble
12382 \end_layout
12383
12384 \end_inset
12385
12386  Note that this will completely override any prior 
12387 \begin_inset Flex Code
12388 status collapsed
12389
12390 \begin_layout Plain Layout
12391 BabelPreamble
12392 \end_layout
12393
12394 \end_inset
12395
12396  declaration for this style.
12397  Must end with 
12398 \begin_inset Quotes eld
12399 \end_inset
12400
12401
12402 \begin_inset Flex Code
12403 status collapsed
12404
12405 \begin_layout Plain Layout
12406 EndBabelPreamble
12407 \end_layout
12408
12409 \end_inset
12410
12411
12412 \begin_inset Quotes erd
12413 \end_inset
12414
12415 .
12416  See 
12417 \begin_inset CommandInset ref
12418 LatexCommand ref
12419 reference "subsec:I18n"
12420
12421 \end_inset
12422
12423  for details on its use.
12424 \end_layout
12425
12426 \begin_layout Description
12427 \begin_inset Flex Code
12428 status collapsed
12429
12430 \begin_layout Plain Layout
12431 BottomSep
12432 \end_layout
12433
12434 \end_inset
12435
12436  [
12437 \begin_inset Flex Code
12438 status collapsed
12439
12440 \begin_layout Plain Layout
12441 float=0
12442 \end_layout
12443
12444 \end_inset
12445
12446 ]
12447 \begin_inset Foot
12448 status collapsed
12449
12450 \begin_layout Plain Layout
12451 Note that a `float' here is a real number, such as: 1.5.
12452 \end_layout
12453
12454 \end_inset
12455
12456  The vertical space with which the last of a chain of paragraphs with this
12457  style is separated from the following paragraph.
12458  If the next paragraph has another style, the separations are not simply
12459  added, but the maximum is taken.
12460 \end_layout
12461
12462 \begin_layout Description
12463 \begin_inset Flex Code
12464 status collapsed
12465
12466 \begin_layout Plain Layout
12467 Category
12468 \end_layout
12469
12470 \end_inset
12471
12472  [
12473 \begin_inset Flex Code
12474 status collapsed
12475
12476 \begin_layout Plain Layout
12477 string
12478 \end_layout
12479
12480 \end_inset
12481
12482 ] The category for this style.
12483  This is used to group related styles in the style combobox on the toolbar.
12484  Any string can be used, but you may want to use existing categories with
12485  your own styles.
12486  
12487 \end_layout
12488
12489 \begin_layout Description
12490 \begin_inset Flex Code
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494 CommandDepth
12495 \end_layout
12496
12497 \end_inset
12498
12499  Depth of XML command.
12500  Used only with XML-type formats.
12501 \end_layout
12502
12503 \begin_layout Description
12504 \begin_inset Flex Code
12505 status collapsed
12506
12507 \begin_layout Plain Layout
12508 CopyStyle
12509 \end_layout
12510
12511 \end_inset
12512
12513  [
12514 \begin_inset Flex Code
12515 status collapsed
12516
12517 \begin_layout Plain Layout
12518 string
12519 \end_layout
12520
12521 \end_inset
12522
12523 ] Copies all the features of an existing style into the current one.
12524  
12525 \end_layout
12526
12527 \begin_layout Description
12528 \begin_inset Flex Code
12529 status collapsed
12530
12531 \begin_layout Plain Layout
12532 DependsOn
12533 \end_layout
12534
12535 \end_inset
12536
12537  [
12538 \begin_inset Flex Code
12539 status collapsed
12540
12541 \begin_layout Plain Layout
12542 <name>
12543 \end_layout
12544
12545 \end_inset
12546
12547 ] The name of a style whose preamble should be output 
12548 \emph on
12549 before
12550 \emph default
12551  this one.
12552  This allows to ensure some ordering of the preamble snippets when macros
12553  definitions depend on one another.
12554 \begin_inset Foot
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558 Note that, besides that functionality, there is no way to ensure any ordering
12559  of preambles.
12560  The ordering that you see in a given version of \SpecialChar LyX
12561  may change without warning
12562  in later versions.
12563 \end_layout
12564
12565 \end_inset
12566
12567
12568 \end_layout
12569
12570 \begin_layout Description
12571 \begin_inset Flex Code
12572 status collapsed
12573
12574 \begin_layout Plain Layout
12575 EndLabeltype
12576 \end_layout
12577
12578 \end_inset
12579
12580  [
12581 \begin_inset Flex Code
12582 status collapsed
12583
12584 \begin_layout Plain Layout
12585
12586 \emph on
12587 No_Label
12588 \emph default
12589 , Box, Filled_Box, Static
12590 \end_layout
12591
12592 \end_inset
12593
12594 ] The type of label that stands at the end of the paragraph (or sequence
12595  of paragraphs if 
12596 \begin_inset Flex Code
12597 status collapsed
12598
12599 \begin_layout Plain Layout
12600 LatexType
12601 \end_layout
12602
12603 \end_inset
12604
12605  is
12606 \begin_inset Newline newline
12607 \end_inset
12608
12609
12610 \begin_inset Flex Code
12611 status collapsed
12612
12613 \begin_layout Plain Layout
12614 Environment
12615 \end_layout
12616
12617 \end_inset
12618
12619
12620 \begin_inset Flex Code
12621 status collapsed
12622
12623 \begin_layout Plain Layout
12624 Item_Environment
12625 \end_layout
12626
12627 \end_inset
12628
12629  or 
12630 \begin_inset Flex Code
12631 status collapsed
12632
12633 \begin_layout Plain Layout
12634 List_Environment
12635 \end_layout
12636
12637 \end_inset
12638
12639 ).
12640  
12641 \begin_inset Flex Code
12642 status collapsed
12643
12644 \begin_layout Plain Layout
12645 No_Label
12646 \end_layout
12647
12648 \end_inset
12649
12650  means 
12651 \begin_inset Quotes eld
12652 \end_inset
12653
12654 nothing
12655 \begin_inset Quotes erd
12656 \end_inset
12657
12658
12659 \begin_inset Flex Code
12660 status collapsed
12661
12662 \begin_layout Plain Layout
12663 Box
12664 \end_layout
12665
12666 \end_inset
12667
12668  (resp.
12669 \begin_inset space \space{}
12670 \end_inset
12671
12672
12673 \begin_inset Flex Code
12674 status collapsed
12675
12676 \begin_layout Plain Layout
12677 Filled_Box
12678 \end_layout
12679
12680 \end_inset
12681
12682 ) is a white (resp.
12683 \begin_inset space ~
12684 \end_inset
12685
12686 black) square suitable for end of proof markers, 
12687 \begin_inset Flex Code
12688 status collapsed
12689
12690 \begin_layout Plain Layout
12691 Static
12692 \end_layout
12693
12694 \end_inset
12695
12696  is an explicit text string.
12697 \end_layout
12698
12699 \begin_layout Description
12700 \begin_inset Flex Code
12701 status collapsed
12702
12703 \begin_layout Plain Layout
12704 EndLabelString
12705 \end_layout
12706
12707 \end_inset
12708
12709  [
12710 \begin_inset Flex Code
12711 status collapsed
12712
12713 \begin_layout Plain Layout
12714 string=""
12715 \end_layout
12716
12717 \end_inset
12718
12719 ] The string used for a label with a 
12720 \begin_inset Flex Code
12721 status collapsed
12722
12723 \begin_layout Plain Layout
12724 Static
12725 \end_layout
12726
12727 \end_inset
12728
12729
12730 \begin_inset Newline newline
12731 \end_inset
12732
12733
12734 \begin_inset Flex Code
12735 status collapsed
12736
12737 \begin_layout Plain Layout
12738 EndLabelType
12739 \end_layout
12740
12741 \end_inset
12742
12743 .
12744  
12745 \end_layout
12746
12747 \begin_layout Description
12748 \begin_inset Flex Code
12749 status collapsed
12750
12751 \begin_layout Plain Layout
12752 Font
12753 \end_layout
12754
12755 \end_inset
12756
12757  The font used for both the text body 
12758 \emph on
12759 and
12760 \emph default
12761  the label.
12762  See 
12763 \begin_inset CommandInset ref
12764 LatexCommand ref
12765 reference "subsec:Font-description"
12766
12767 \end_inset
12768
12769 .
12770  Note that defining this font automatically defines the 
12771 \begin_inset Flex Code
12772 status collapsed
12773
12774 \begin_layout Plain Layout
12775 LabelFont
12776 \end_layout
12777
12778 \end_inset
12779
12780  to the same value.
12781  So you should define this one first if you also want to define 
12782 \begin_inset Flex Code
12783 status collapsed
12784
12785 \begin_layout Plain Layout
12786 LabelFont
12787 \end_layout
12788
12789 \end_inset
12790
12791 .
12792 \end_layout
12793
12794 \begin_layout Description
12795 \begin_inset Flex Code
12796 status collapsed
12797
12798 \begin_layout Plain Layout
12799 ForceLocal
12800 \end_layout
12801
12802 \end_inset
12803
12804  [
12805 \begin_inset Flex Code
12806 status collapsed
12807
12808 \begin_layout Plain Layout
12809 int=0
12810 \end_layout
12811
12812 \end_inset
12813
12814 ] Used for backporting new styles to stable \SpecialChar LyX
12815  versions.
12816  The first stable version that supports this tag is \SpecialChar LyX
12817  2.1.0.
12818  The argument is a number which may either be 0, -1 or any value greater
12819  than zero.
12820  If the 
12821 \begin_inset Flex Code
12822 status collapsed
12823
12824 \begin_layout Plain Layout
12825 ForceLocal
12826 \end_layout
12827
12828 \end_inset
12829
12830  flag of a style is greater than zero, it will always be written to the
12831  document header.
12832  If a .lyx file is read, the style definitions from the document header are
12833  added to the document class.
12834  Therefore even older \SpecialChar LyX
12835  versions can handle the style.
12836  The argument of 
12837 \begin_inset Flex Code
12838 status collapsed
12839
12840 \begin_layout Plain Layout
12841 ForceLocal
12842 \end_layout
12843
12844 \end_inset
12845
12846  is a version number: if the style is read, and the version number is less
12847  than the version number of the already existing style in the document class,
12848  the new style is ignored.
12849  If the version number is greater, the new style replaces the existing style.
12850  A value of -1 means an infinite version number, i.
12851 \begin_inset space \thinspace{}
12852 \end_inset
12853
12854 e.
12855 \begin_inset space \space{}
12856 \end_inset
12857
12858 the style is always used.
12859 \end_layout
12860
12861 \begin_layout Description
12862 \begin_inset Flex Code
12863 status collapsed
12864
12865 \begin_layout Plain Layout
12866 FreeSpacing
12867 \end_layout
12868
12869 \end_inset
12870
12871  [
12872 \begin_inset Flex Code
12873 status collapsed
12874
12875 \begin_layout Plain Layout
12876
12877 \emph on
12878 0
12879 \end_layout
12880
12881 \end_inset
12882
12883 ,
12884 \begin_inset space \thinspace{}
12885 \end_inset
12886
12887
12888 \begin_inset Flex Code
12889 status collapsed
12890
12891 \begin_layout Plain Layout
12892 1
12893 \end_layout
12894
12895 \end_inset
12896
12897 ] Usually \SpecialChar LyX
12898  does not allow you to insert more than one space between words,
12899  since a space is considered as the separation between two words, not a
12900  character or symbol of its own.
12901  This is a very fine thing but sometimes annoying, for example, when typing
12902  program code or plain \SpecialChar LaTeX
12903  code.
12904  For this reason, 
12905 \begin_inset Flex Code
12906 status collapsed
12907
12908 \begin_layout Plain Layout
12909 FreeSpacing
12910 \end_layout
12911
12912 \end_inset
12913
12914  can be enabled.
12915  Note that \SpecialChar LyX
12916  will create protected blanks for the additional blanks when
12917  in another mode than \SpecialChar LaTeX
12918 -mode.
12919 \end_layout
12920
12921 \begin_layout Description
12922 \begin_inset Flex Code
12923 status collapsed
12924
12925 \begin_layout Plain Layout
12926 HTML*
12927 \end_layout
12928
12929 \end_inset
12930
12931  These tags are used with XHTML output.
12932  See 
12933 \begin_inset CommandInset ref
12934 LatexCommand ref
12935 reference "subsec:Paragraph-Style-XHTML"
12936
12937 \end_inset
12938
12939 .
12940 \end_layout
12941
12942 \begin_layout Description
12943 \begin_inset Flex Code
12944 status collapsed
12945
12946 \begin_layout Plain Layout
12947 InnerTag
12948 \end_layout
12949
12950 \end_inset
12951
12952  [FIXME] (Used only with XML-type formats.)
12953 \end_layout
12954
12955 \begin_layout Description
12956 \begin_inset Flex Code
12957 status collapsed
12958
12959 \begin_layout Plain Layout
12960 InPreamble
12961 \end_layout
12962
12963 \end_inset
12964
12965  [
12966 \begin_inset Flex Code
12967 status collapsed
12968
12969 \begin_layout Plain Layout
12970
12971 \emph on
12972 0
12973 \end_layout
12974
12975 \end_inset
12976
12977 ,
12978 \begin_inset space \thinspace{}
12979 \end_inset
12980
12981
12982 \begin_inset Flex Code
12983 status collapsed
12984
12985 \begin_layout Plain Layout
12986 1
12987 \end_layout
12988
12989 \end_inset
12990
12991 ] If 
12992 \begin_inset Flex Code
12993 status collapsed
12994
12995 \begin_layout Plain Layout
12996 1
12997 \end_layout
12998
12999 \end_inset
13000
13001 , marks the style as to be included in the document preamble and not in
13002  the document body.
13003  This is useful for document classes that want such information as the title
13004  and author to appear in the preamble.
13005  Note that this works only for styles for which the 
13006 \begin_inset Flex Code
13007 status collapsed
13008
13009 \begin_layout Plain Layout
13010 LatexType
13011 \end_layout
13012
13013 \end_inset
13014
13015  is 
13016 \begin_inset Flex Code
13017 status collapsed
13018
13019 \begin_layout Plain Layout
13020 Command
13021 \end_layout
13022
13023 \end_inset
13024
13025  or 
13026 \begin_inset Flex Code
13027 status collapsed
13028
13029 \begin_layout Plain Layout
13030 Paragraph
13031 \end_layout
13032
13033 \end_inset
13034
13035 .
13036 \end_layout
13037
13038 \begin_layout Description
13039 \begin_inset Flex Code
13040 status collapsed
13041
13042 \begin_layout Plain Layout
13043 InTitle
13044 \end_layout
13045
13046 \end_inset
13047
13048  [
13049 \begin_inset Flex Code
13050 status collapsed
13051
13052 \begin_layout Plain Layout
13053
13054 \emph on
13055 0
13056 \end_layout
13057
13058 \end_inset
13059
13060 ,
13061 \begin_inset space \thinspace{}
13062 \end_inset
13063
13064
13065 \begin_inset Flex Code
13066 status collapsed
13067
13068 \begin_layout Plain Layout
13069 1
13070 \end_layout
13071
13072 \end_inset
13073
13074 ] If 
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079 1
13080 \end_layout
13081
13082 \end_inset
13083
13084 , marks the style as being part of a title block (see also the 
13085 \begin_inset Flex Code
13086 status collapsed
13087
13088 \begin_layout Plain Layout
13089 TitleLatexType
13090 \end_layout
13091
13092 \end_inset
13093
13094  and 
13095 \begin_inset Flex Code
13096 status collapsed
13097
13098 \begin_layout Plain Layout
13099 TitleLatexName
13100 \end_layout
13101
13102 \end_inset
13103
13104  global entries).
13105 \end_layout
13106
13107 \begin_layout Description
13108 \begin_inset Flex Code
13109 status collapsed
13110
13111 \begin_layout Plain Layout
13112 IsAutoNestedBy
13113 \end_layout
13114
13115 \end_inset
13116
13117  Includes a comma-separated list of layouts after which this one should
13118  be nested.
13119  Only makes sense with regard to nestable layouts (such as environments).
13120  Must be ended by 
13121 \begin_inset Quotes eld
13122 \end_inset
13123
13124
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129 EndIsAutoNestedBy
13130 \end_layout
13131
13132 \end_inset
13133
13134
13135 \begin_inset Quotes erd
13136 \end_inset
13137
13138 .
13139  See also 
13140 \begin_inset Flex Code
13141 status collapsed
13142
13143 \begin_layout Plain Layout
13144 AutoNests
13145 \end_layout
13146
13147 \end_inset
13148
13149 .
13150 \end_layout
13151
13152 \begin_layout Description
13153 \begin_inset Flex Code
13154 status collapsed
13155
13156 \begin_layout Plain Layout
13157 IsTocCaption
13158 \end_layout
13159
13160 \end_inset
13161
13162  [
13163 \begin_inset Flex Code
13164 status collapsed
13165
13166 \begin_layout Plain Layout
13167
13168 \emph on
13169 0
13170 \end_layout
13171
13172 \end_inset
13173
13174 ,
13175 \begin_inset space \thinspace{}
13176 \end_inset
13177
13178
13179 \begin_inset Flex Code
13180 status collapsed
13181
13182 \begin_layout Plain Layout
13183 1
13184 \end_layout
13185
13186 \end_inset
13187
13188 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13189  of its contents in its item in the table of contents.
13190  Otherwise, only the label, if it exists, appears.
13191 \end_layout
13192
13193 \begin_layout Description
13194 \begin_inset Flex Code
13195 status collapsed
13196
13197 \begin_layout Plain Layout
13198 ItemCommand
13199 \end_layout
13200
13201 \end_inset
13202
13203  [
13204 \begin_inset Flex Code
13205 status collapsed
13206
13207 \begin_layout Plain Layout
13208 string="item"
13209 \end_layout
13210
13211 \end_inset
13212
13213 ] The \SpecialChar LaTeX
13214  command sequence declaring an item in a list.
13215  The command is to be defined without the preceding backslash (the default
13216  is 
13217 \begin_inset Quotes eld
13218 \end_inset
13219
13220 item
13221 \begin_inset Quotes erd
13222 \end_inset
13223
13224 , resulting in 
13225 \begin_inset Flex Code
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229
13230 \backslash
13231 item
13232 \end_layout
13233
13234 \end_inset
13235
13236  in the \SpecialChar LaTeX
13237  output).
13238 \end_layout
13239
13240 \begin_layout Description
13241 \begin_inset Flex Code
13242 status collapsed
13243
13244 \begin_layout Plain Layout
13245 ItemSep
13246 \end_layout
13247
13248 \end_inset
13249
13250  [
13251 \begin_inset Flex Code
13252 status collapsed
13253
13254 \begin_layout Plain Layout
13255 float=0
13256 \end_layout
13257
13258 \end_inset
13259
13260 ] This provides extra space between paragraphs that have the same style.
13261  If you put other styles into an environment, each is separated with the
13262  environment's 
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 ParSep
13268 \end_layout
13269
13270 \end_inset
13271
13272 .
13273  But the whole items of the environment are additionally separated with
13274  this 
13275 \begin_inset Flex Code
13276 status collapsed
13277
13278 \begin_layout Plain Layout
13279 ItemSep
13280 \end_layout
13281
13282 \end_inset
13283
13284 .
13285  Note that this is a
13286 \emph on
13287  multiplier.
13288 \end_layout
13289
13290 \begin_layout Description
13291 \begin_inset Flex Code
13292 status collapsed
13293
13294 \begin_layout Plain Layout
13295 ItemTag
13296 \end_layout
13297
13298 \end_inset
13299
13300  [FIXME] (Used only with XML-type formats.)
13301 \end_layout
13302
13303 \begin_layout Description
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308 KeepEmpty
13309 \end_layout
13310
13311 \end_inset
13312
13313  [
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318
13319 \emph on
13320 0
13321 \end_layout
13322
13323 \end_inset
13324
13325 ,
13326 \begin_inset space \thinspace{}
13327 \end_inset
13328
13329
13330 \begin_inset Flex Code
13331 status collapsed
13332
13333 \begin_layout Plain Layout
13334 1
13335 \end_layout
13336
13337 \end_inset
13338
13339 ] Usually \SpecialChar LyX
13340  does not allow you to leave a paragraph empty, since it would
13341  lead to empty \SpecialChar LaTeX
13342  output.
13343  There are some cases where this could be desirable however: in a letter
13344  template, the required fields can be provided as empty fields, so that
13345  people do not forget them; in some special classes, a style can be used
13346  as some kind of break, which does not contain actual text.
13347 \end_layout
13348
13349 \begin_layout Description
13350 \begin_inset Flex Code
13351 status collapsed
13352
13353 \begin_layout Plain Layout
13354 LabelBottomsep
13355 \end_layout
13356
13357 \end_inset
13358
13359  [
13360 \begin_inset Flex Code
13361 status collapsed
13362
13363 \begin_layout Plain Layout
13364 float=0
13365 \end_layout
13366
13367 \end_inset
13368
13369 ] The vertical space between the label and the text body.
13370  Only used for labels that are above the text body (
13371 \begin_inset Flex Code
13372 status collapsed
13373
13374 \begin_layout Plain Layout
13375 Top_Environment
13376 \end_layout
13377
13378 \end_inset
13379
13380  and
13381 \begin_inset Newline newline
13382 \end_inset
13383
13384
13385 \begin_inset Flex Code
13386 status collapsed
13387
13388 \begin_layout Plain Layout
13389 Centered_Top_Environment
13390 \end_layout
13391
13392 \end_inset
13393
13394 ).
13395 \end_layout
13396
13397 \begin_layout Description
13398 \begin_inset Flex Code
13399 status collapsed
13400
13401 \begin_layout Plain Layout
13402 LabelCounter
13403 \end_layout
13404
13405 \end_inset
13406
13407  [
13408 \begin_inset Flex Code
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412 string=""
13413 \end_layout
13414
13415 \end_inset
13416
13417 ] The name of the counter for automatic numbering.
13418  In order to have the counter appear with your label, you will need to reference
13419  it in the 
13420 \begin_inset Flex Code
13421 status collapsed
13422
13423 \begin_layout Plain Layout
13424
13425 \family typewriter
13426 LabelString
13427 \end_layout
13428
13429 \end_inset
13430
13431 .
13432  This will work with 
13433 \begin_inset Flex Code
13434 status collapsed
13435
13436 \begin_layout Plain Layout
13437 LabelType
13438 \end_layout
13439
13440 \end_inset
13441
13442 s, 
13443 \begin_inset Flex Code
13444 status collapsed
13445
13446 \begin_layout Plain Layout
13447 Static
13448 \end_layout
13449
13450 \end_inset
13451
13452
13453 \begin_inset Flex Code
13454 status collapsed
13455
13456 \begin_layout Plain Layout
13457 Above
13458 \end_layout
13459
13460 \end_inset
13461
13462  and 
13463 \begin_inset Flex Code
13464 status collapsed
13465
13466 \begin_layout Plain Layout
13467 Centered
13468 \end_layout
13469
13470 \end_inset
13471
13472 , at least.
13473 \begin_inset Newline newline
13474 \end_inset
13475
13476 This 
13477 \emph on
13478 may
13479 \emph default
13480  also be given if 
13481 \begin_inset Flex Code
13482 status collapsed
13483
13484 \begin_layout Plain Layout
13485 LabelType
13486 \end_layout
13487
13488 \end_inset
13489
13490  is 
13491 \begin_inset Flex Code
13492 status collapsed
13493
13494 \begin_layout Plain Layout
13495 Enumerate
13496 \end_layout
13497
13498 \end_inset
13499
13500 , though this case is a bit complicated.
13501  Suppose you declare 
13502 \begin_inset Quotes eld
13503 \end_inset
13504
13505
13506 \begin_inset Flex Code
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 LabelCounter myenum
13511 \end_layout
13512
13513 \end_inset
13514
13515
13516 \begin_inset Quotes erd
13517 \end_inset
13518
13519 .
13520  Then the actual counters used are 
13521 \begin_inset Flex Code
13522 status collapsed
13523
13524 \begin_layout Plain Layout
13525 myenumi
13526 \end_layout
13527
13528 \end_inset
13529
13530
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535 myenumii
13536 \end_layout
13537
13538 \end_inset
13539
13540
13541 \begin_inset Flex Code
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 myenumiii
13546 \end_layout
13547
13548 \end_inset
13549
13550  and 
13551 \begin_inset Flex Code
13552 status collapsed
13553
13554 \begin_layout Plain Layout
13555 myenumiv
13556 \end_layout
13557
13558 \end_inset
13559
13560 , much as in \SpecialChar LaTeX
13561 .
13562  These counters must all be declared separately.
13563 \begin_inset Newline newline
13564 \end_inset
13565
13566 See 
13567 \begin_inset CommandInset ref
13568 LatexCommand ref
13569 reference "subsec:Counters"
13570
13571 \end_inset
13572
13573  for details on counters.
13574 \end_layout
13575
13576 \begin_layout Description
13577 \begin_inset Flex Code
13578 status collapsed
13579
13580 \begin_layout Plain Layout
13581 LabelFont
13582 \end_layout
13583
13584 \end_inset
13585
13586  The font used for the label.
13587  See 
13588 \begin_inset CommandInset ref
13589 LatexCommand ref
13590 reference "subsec:Font-description"
13591
13592 \end_inset
13593
13594 .
13595 \end_layout
13596
13597 \begin_layout Description
13598 \begin_inset Flex Code
13599 status collapsed
13600
13601 \begin_layout Plain Layout
13602 LabelIndent
13603 \end_layout
13604
13605 \end_inset
13606
13607  [
13608 \begin_inset Flex Code
13609 status collapsed
13610
13611 \begin_layout Plain Layout
13612 string=""
13613 \end_layout
13614
13615 \end_inset
13616
13617 ] Text that indicates how far a label should be indented.
13618 \end_layout
13619
13620 \begin_layout Description
13621 \begin_inset Flex Code
13622 status collapsed
13623
13624 \begin_layout Plain Layout
13625 LabelSep
13626 \end_layout
13627
13628 \end_inset
13629
13630  [
13631 \begin_inset Flex Code
13632 status collapsed
13633
13634 \begin_layout Plain Layout
13635 string=""
13636 \end_layout
13637
13638 \end_inset
13639
13640 ] Text that indicates the amount of horizontal space between the label and
13641  the text body.
13642  Only used for labels that are not above the text body.
13643 \end_layout
13644
13645 \begin_layout Description
13646 \begin_inset Flex Code
13647 status collapsed
13648
13649 \begin_layout Plain Layout
13650 LabelString
13651 \end_layout
13652
13653 \end_inset
13654
13655  [
13656 \begin_inset Flex Code
13657 status collapsed
13658
13659 \begin_layout Plain Layout
13660 string=""
13661 \end_layout
13662
13663 \end_inset
13664
13665 ] The string used for the label.
13666  When 
13667 \begin_inset Flex Code
13668 status collapsed
13669
13670 \begin_layout Plain Layout
13671 LabelCounter
13672 \end_layout
13673
13674 \end_inset
13675
13676  is set, this string can be contain the special formatting commands described
13677  in 
13678 \begin_inset CommandInset ref
13679 LatexCommand ref
13680 reference "subsec:Counters"
13681
13682 \end_inset
13683
13684 .
13685 \end_layout
13686
13687 \begin_layout Description
13688 \begin_inset Flex Code
13689 status collapsed
13690
13691 \begin_layout Plain Layout
13692 LabelStringAppendix
13693 \end_layout
13694
13695 \end_inset
13696
13697  [
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 string=""
13703 \end_layout
13704
13705 \end_inset
13706
13707 ] This is used inside the appendix instead of
13708 \begin_inset Newline newline
13709 \end_inset
13710
13711
13712 \begin_inset Flex Code
13713 status collapsed
13714
13715 \begin_layout Plain Layout
13716 LabelString
13717 \end_layout
13718
13719 \end_inset
13720
13721 .
13722  Note that every 
13723 \begin_inset Flex Code
13724 status collapsed
13725
13726 \begin_layout Plain Layout
13727 LabelString
13728 \end_layout
13729
13730 \end_inset
13731
13732  statement resets
13733 \begin_inset Newline newline
13734 \end_inset
13735
13736
13737 \begin_inset Flex Code
13738 status collapsed
13739
13740 \begin_layout Plain Layout
13741 LabelStringAppendix
13742 \end_layout
13743
13744 \end_inset
13745
13746  too.
13747 \end_layout
13748
13749 \begin_layout Description
13750 \begin_inset Flex Code
13751 status collapsed
13752
13753 \begin_layout Plain Layout
13754 LabelTag
13755 \end_layout
13756
13757 \end_inset
13758
13759  [FIXME] (Used only with XML-type formats.)
13760 \end_layout
13761
13762 \begin_layout Description
13763 \begin_inset Flex Code
13764 status collapsed
13765
13766 \begin_layout Plain Layout
13767 LabelType
13768 \end_layout
13769
13770 \end_inset
13771
13772  [
13773 \begin_inset Flex Code
13774 status collapsed
13775
13776 \begin_layout Plain Layout
13777
13778 \emph on
13779 No_Label
13780 \emph default
13781 , Manual, Static, Above, 
13782 \begin_inset Newline newline
13783 \end_inset
13784
13785 Centered, Sensitive, Enumerate,
13786 \begin_inset Newline newline
13787 \end_inset
13788
13789 Itemize, Bibliography
13790 \end_layout
13791
13792 \end_inset
13793
13794 ]
13795 \end_layout
13796
13797 \begin_deeper
13798 \begin_layout Description
13799 \begin_inset Flex Code
13800 status collapsed
13801
13802 \begin_layout Plain Layout
13803 Manual
13804 \end_layout
13805
13806 \end_inset
13807
13808  means the label is the very first word (up to the first real blank).
13809  Use protected spaces if you want more than one word as the label.
13810  
13811 \end_layout
13812
13813 \begin_layout Description
13814 \begin_inset Flex Code
13815 status collapsed
13816
13817 \begin_layout Plain Layout
13818 Static
13819 \end_layout
13820
13821 \end_inset
13822
13823  means the label is simply what is declared as 
13824 \begin_inset Flex Code
13825 status collapsed
13826
13827 \begin_layout Plain Layout
13828 LabelString
13829 \end_layout
13830
13831 \end_inset
13832
13833 .
13834  This will be displayed 
13835 \begin_inset Quotes eld
13836 \end_inset
13837
13838 inline
13839 \begin_inset Quotes erd
13840 \end_inset
13841
13842 , at the beginning of the paragraph.
13843  If the 
13844 \begin_inset Flex Code
13845 status collapsed
13846
13847 \begin_layout Plain Layout
13848 LatexType
13849 \end_layout
13850
13851 \end_inset
13852
13853  is 
13854 \begin_inset Flex Code
13855 status collapsed
13856
13857 \begin_layout Plain Layout
13858 Environment
13859 \end_layout
13860
13861 \end_inset
13862
13863 , then it will be displayed only in the first paragraph of any sequence
13864  of paragraphs with the same 
13865 \begin_inset Flex Code
13866 status collapsed
13867
13868 \begin_layout Plain Layout
13869 Style
13870 \end_layout
13871
13872 \end_inset
13873
13874 .
13875 \end_layout
13876
13877 \begin_layout Description
13878 \begin_inset Flex Code
13879 status collapsed
13880
13881 \begin_layout Plain Layout
13882 Above
13883 \end_layout
13884
13885 \end_inset
13886
13887
13888 \begin_inset space ~
13889 \end_inset
13890
13891 and
13892 \begin_inset space ~
13893 \end_inset
13894
13895
13896 \begin_inset Flex Code
13897 status collapsed
13898
13899 \begin_layout Plain Layout
13900 Centered
13901 \end_layout
13902
13903 \end_inset
13904
13905  are special cases of 
13906 \begin_inset Flex Code
13907 status collapsed
13908
13909 \begin_layout Plain Layout
13910 Static
13911 \end_layout
13912
13913 \end_inset
13914
13915 .
13916  The label will be printed above the paragraph either at the beginning of
13917  the line or centered.
13918 \end_layout
13919
13920 \begin_layout Description
13921 \begin_inset Flex Code
13922 status collapsed
13923
13924 \begin_layout Plain Layout
13925 Sensitive
13926 \end_layout
13927
13928 \end_inset
13929
13930  is a special case for the caption-labels 
13931 \begin_inset Quotes eld
13932 \end_inset
13933
13934 Figure
13935 \begin_inset Quotes erd
13936 \end_inset
13937
13938  and 
13939 \begin_inset Quotes eld
13940 \end_inset
13941
13942 Table
13943 \begin_inset Quotes erd
13944 \end_inset
13945
13946 .
13947 \begin_inset Newline newline
13948 \end_inset
13949
13950
13951 \begin_inset Flex Code
13952 status collapsed
13953
13954 \begin_layout Plain Layout
13955 Sensitive
13956 \end_layout
13957
13958 \end_inset
13959
13960  means the (hardcoded) label string depends on the kind of float: It is
13961  hardcoded to be `FloatType N', where N is the value of the counter associated
13962  with the float.
13963  For the case that a caption is inserted outside of a float the 
13964 \begin_inset Flex Code
13965 status collapsed
13966
13967 \begin_layout Plain Layout
13968 LabelString
13969 \end_layout
13970
13971 \end_inset
13972
13973  will appear as 
13974 \begin_inset Quotes eld
13975 \end_inset
13976
13977 Senseless!
13978 \begin_inset Quotes erd
13979 \end_inset
13980
13981 .
13982 \end_layout
13983
13984 \begin_layout Description
13985 \begin_inset Flex Code
13986 status collapsed
13987
13988 \begin_layout Plain Layout
13989 Enumerate
13990 \end_layout
13991
13992 \end_inset
13993
13994  produces the usual sort of enumeration labels.
13995  The number type needs to be set in the 
13996 \family sans
13997 Counter
13998 \family default
13999 , see 
14000 \begin_inset CommandInset ref
14001 LatexCommand ref
14002 reference "subsec:Counters"
14003
14004 \end_inset
14005
14006 .
14007 \end_layout
14008
14009 \begin_layout Description
14010 \begin_inset Flex Code
14011 status collapsed
14012
14013 \begin_layout Plain Layout
14014 Itemize
14015 \end_layout
14016
14017 \end_inset
14018
14019  produces various bullets at the different levels.
14020  The bullet types displayed can be set via 
14021 \begin_inset Flex Noun
14022 status collapsed
14023
14024 \begin_layout Plain Layout
14025 Document\SpecialChar menuseparator
14026 Settings\SpecialChar menuseparator
14027 Bullets
14028 \end_layout
14029
14030 \end_inset
14031
14032 .
14033 \end_layout
14034
14035 \begin_layout Description
14036 \begin_inset Flex Code
14037 status collapsed
14038
14039 \begin_layout Plain Layout
14040 Bibliography
14041 \end_layout
14042
14043 \end_inset
14044
14045  should be used only with 
14046 \begin_inset Flex Code
14047 status collapsed
14048
14049 \begin_layout Plain Layout
14050 LatexType BibEnvironment
14051 \end_layout
14052
14053 \end_inset
14054
14055 .
14056 \end_layout
14057
14058 \end_deeper
14059 \begin_layout Description
14060 \begin_inset Flex Code
14061 status collapsed
14062
14063 \begin_layout Plain Layout
14064 LangPreamble
14065 \end_layout
14066
14067 \end_inset
14068
14069  Note that this will completely override any prior 
14070 \begin_inset Flex Code
14071 status collapsed
14072
14073 \begin_layout Plain Layout
14074 LangPreamble
14075 \end_layout
14076
14077 \end_inset
14078
14079  declaration for this style.
14080  Must end with 
14081 \begin_inset Quotes eld
14082 \end_inset
14083
14084
14085 \begin_inset Flex Code
14086 status collapsed
14087
14088 \begin_layout Plain Layout
14089 EndLangPreamble
14090 \end_layout
14091
14092 \end_inset
14093
14094
14095 \begin_inset Quotes erd
14096 \end_inset
14097
14098 .
14099  See 
14100 \begin_inset CommandInset ref
14101 LatexCommand ref
14102 reference "subsec:I18n"
14103
14104 \end_inset
14105
14106  for details on its use.
14107 \end_layout
14108
14109 \begin_layout Description
14110 \begin_inset Flex Code
14111 status collapsed
14112
14113 \begin_layout Plain Layout
14114 LatexName
14115 \end_layout
14116
14117 \end_inset
14118
14119  [
14120 \begin_inset Flex Code
14121 status collapsed
14122
14123 \begin_layout Plain Layout
14124 <name>
14125 \end_layout
14126
14127 \end_inset
14128
14129 ] The name of the corresponding \SpecialChar LaTeX
14130  stuff.
14131  Either the environment or command name.
14132 \end_layout
14133
14134 \begin_layout Description
14135 \begin_inset Flex Code
14136 status collapsed
14137
14138 \begin_layout Plain Layout
14139 LatexParam
14140 \end_layout
14141
14142 \end_inset
14143
14144  [
14145 \begin_inset Flex Code
14146 status collapsed
14147
14148 \begin_layout Plain Layout
14149 <parameter>
14150 \end_layout
14151
14152 \end_inset
14153
14154 ] An optional parameter for the corresponding 
14155 \begin_inset Flex Code
14156 status collapsed
14157
14158 \begin_layout Plain Layout
14159 LatexName
14160 \end_layout
14161
14162 \end_inset
14163
14164  stuff.
14165  This parameter cannot be changed from within \SpecialChar LyX
14166  (use 
14167 \begin_inset Flex Code
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171 Argument
14172 \end_layout
14173
14174 \end_inset
14175
14176  for customizable parameters).
14177  This will be output as is after all \SpecialChar LaTeX
14178  
14179 \begin_inset Flex Code
14180 status collapsed
14181
14182 \begin_layout Plain Layout
14183 Argument
14184 \end_layout
14185
14186 \end_inset
14187
14188 s.
14189 \end_layout
14190
14191 \begin_layout Description
14192 \begin_inset Flex Code
14193 status collapsed
14194
14195 \begin_layout Plain Layout
14196 LatexType
14197 \end_layout
14198
14199 \end_inset
14200
14201  [
14202 \begin_inset Flex Code
14203 status collapsed
14204
14205 \begin_layout Plain Layout
14206
14207 \emph on
14208 Paragraph
14209 \emph default
14210 , Command, Environment, Item_Environment,
14211 \begin_inset Newline newline
14212 \end_inset
14213
14214 List_Environment, Bib_Environment
14215 \end_layout
14216
14217 \end_inset
14218
14219 ] How the style should be translated into \SpecialChar LaTeX
14220 .
14221 \begin_inset Foot
14222 status collapsed
14223
14224 \begin_layout Plain Layout
14225 \begin_inset Flex Code
14226 status collapsed
14227
14228 \begin_layout Plain Layout
14229 LatexType
14230 \end_layout
14231
14232 \end_inset
14233
14234  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14235  Visit the SGML class files for specific examples.
14236 \end_layout
14237
14238 \end_inset
14239
14240
14241 \end_layout
14242
14243 \begin_deeper
14244 \begin_layout Description
14245 \begin_inset Flex Code
14246 status collapsed
14247
14248 \begin_layout Plain Layout
14249 Paragraph
14250 \end_layout
14251
14252 \end_inset
14253
14254  means nothing special.
14255 \end_layout
14256
14257 \begin_layout Description
14258 \begin_inset Flex Code
14259 status collapsed
14260
14261 \begin_layout Plain Layout
14262 Command
14263 \end_layout
14264
14265 \end_inset
14266
14267  means 
14268 \begin_inset Flex Code
14269 status collapsed
14270
14271 \begin_layout Plain Layout
14272
14273 \backslash
14274
14275 \emph on
14276 LatexName
14277 \emph default
14278 {\SpecialChar ldots
14279 }
14280 \end_layout
14281
14282 \end_inset
14283
14284 .
14285 \end_layout
14286
14287 \begin_layout Description
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 Environment
14293 \end_layout
14294
14295 \end_inset
14296
14297  means 
14298 \begin_inset Flex Code
14299 status collapsed
14300
14301 \begin_layout Plain Layout
14302
14303 \backslash
14304 begin{
14305 \emph on
14306 LatexName
14307 \emph default
14308 }\SpecialChar ldots
14309
14310 \backslash
14311 end{
14312 \emph on
14313 LatexName
14314 \emph default
14315 }
14316 \end_layout
14317
14318 \end_inset
14319
14320 .
14321  
14322 \end_layout
14323
14324 \begin_layout Description
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 Item_Environment
14330 \end_layout
14331
14332 \end_inset
14333
14334  is the same as 
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 Environment
14340 \end_layout
14341
14342 \end_inset
14343
14344 , except that an 
14345 \begin_inset Flex Code
14346 status collapsed
14347
14348 \begin_layout Plain Layout
14349
14350 \backslash
14351 item
14352 \end_layout
14353
14354 \end_inset
14355
14356  is generated for each paragraph of this environment.
14357  
14358 \end_layout
14359
14360 \begin_layout Description
14361 \begin_inset Flex Code
14362 status collapsed
14363
14364 \begin_layout Plain Layout
14365 List_Environment
14366 \end_layout
14367
14368 \end_inset
14369
14370  is the same as 
14371 \begin_inset Flex Code
14372 status collapsed
14373
14374 \begin_layout Plain Layout
14375 Item_Environment
14376 \end_layout
14377
14378 \end_inset
14379
14380 , except that
14381 \begin_inset Newline newline
14382 \end_inset
14383
14384
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389 LabelWidthString
14390 \end_layout
14391
14392 \end_inset
14393
14394  is passed as an argument to the environment.
14395 \begin_inset Newline newline
14396 \end_inset
14397
14398
14399 \begin_inset Flex Code
14400 status collapsed
14401
14402 \begin_layout Plain Layout
14403 LabelWidthString
14404 \end_layout
14405
14406 \end_inset
14407
14408  can be defined in the 
14409 \begin_inset Flex Noun
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 Edit\SpecialChar menuseparator
14414 Paragraph
14415 \begin_inset space ~
14416 \end_inset
14417
14418 settings
14419 \end_layout
14420
14421 \end_inset
14422
14423  dialog.
14424 \end_layout
14425
14426 \begin_layout Description
14427 \begin_inset Flex Code
14428 status collapsed
14429
14430 \begin_layout Plain Layout
14431 Bib_Environment
14432 \end_layout
14433
14434 \end_inset
14435
14436  is like 
14437 \begin_inset Flex Code
14438 status collapsed
14439
14440 \begin_layout Plain Layout
14441 Environment
14442 \end_layout
14443
14444 \end_inset
14445
14446  but adds the necessary mandatory argument (the longest label) to the begin
14447  statement of the bibliography environment:
14448 \begin_inset Newline newline
14449 \end_inset
14450
14451
14452 \begin_inset Flex Code
14453 status collapsed
14454
14455 \begin_layout Plain Layout
14456
14457 \backslash
14458 begin{thebibliography}{99}
14459 \end_layout
14460
14461 \end_inset
14462
14463 .
14464  It is therefore only useful for bibliography environments.
14465  The default longest label 
14466 \begin_inset Quotes eld
14467 \end_inset
14468
14469 99
14470 \begin_inset Quotes erd
14471 \end_inset
14472
14473  can be changed by the user in the paragraph settings of a bibliography
14474  item.
14475 \end_layout
14476
14477 \begin_layout Standard
14478 Putting the last few things together, the \SpecialChar LaTeX
14479  output will be either: 
14480 \end_layout
14481
14482 \begin_layout LyX-Code
14483
14484 \backslash
14485 LatexName[LatexParam]{\SpecialChar ldots
14486 }
14487 \end_layout
14488
14489 \begin_layout Standard
14490 or: 
14491 \end_layout
14492
14493 \begin_layout LyX-Code
14494
14495 \backslash
14496 begin{LatexName}[LatexParam] \SpecialChar ldots
14497  
14498 \backslash
14499 end{LatexName}.
14500 \end_layout
14501
14502 \begin_layout Standard
14503 depending upon the \SpecialChar LaTeX
14504  type.
14505 \end_layout
14506
14507 \end_deeper
14508 \begin_layout Description
14509 \begin_inset Flex Code
14510 status collapsed
14511
14512 \begin_layout Plain Layout
14513 LeftDelim
14514 \end_layout
14515
14516 \end_inset
14517
14518  [
14519 \begin_inset Flex Code
14520 status collapsed
14521
14522 \begin_layout Plain Layout
14523 string
14524 \end_layout
14525
14526 \end_inset
14527
14528 ] A string that is put at the beginning of the style content.
14529  A line break in the output can be indicated by 
14530 \begin_inset Flex Code
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534 <br/>
14535 \end_layout
14536
14537 \end_inset
14538
14539 .
14540 \end_layout
14541
14542 \begin_layout Description
14543 \begin_inset Flex Code
14544 status collapsed
14545
14546 \begin_layout Plain Layout
14547 LeftMargin
14548 \end_layout
14549
14550 \end_inset
14551
14552  [
14553 \begin_inset Flex Code
14554 status collapsed
14555
14556 \begin_layout Plain Layout
14557 string=""
14558 \end_layout
14559
14560 \end_inset
14561
14562 ] If you put styles into environments, the different 
14563 \begin_inset Flex Code
14564 status collapsed
14565
14566 \begin_layout Plain Layout
14567 LeftMargin
14568 \end_layout
14569
14570 \end_inset
14571
14572  are not simply added, but added with a factor 
14573 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14574 \end_inset
14575
14576 .
14577  Note that this parameter is also used when 
14578 \begin_inset Flex Code
14579 status collapsed
14580
14581 \begin_layout Plain Layout
14582 Margin
14583 \end_layout
14584
14585 \end_inset
14586
14587  is defined as 
14588 \begin_inset Flex Code
14589 status collapsed
14590
14591 \begin_layout Plain Layout
14592 Manual
14593 \end_layout
14594
14595 \end_inset
14596
14597  or 
14598 \begin_inset Flex Code
14599 status collapsed
14600
14601 \begin_layout Plain Layout
14602 Dynamic
14603 \end_layout
14604
14605 \end_inset
14606
14607 .
14608  Then it is added to the manual or dynamic margin.
14609 \begin_inset Newline newline
14610 \end_inset
14611
14612 For example 
14613 \begin_inset Quotes eld
14614 \end_inset
14615
14616
14617 \begin_inset Flex Code
14618 status collapsed
14619
14620 \begin_layout Plain Layout
14621 MM
14622 \end_layout
14623
14624 \end_inset
14625
14626
14627 \begin_inset Quotes erd
14628 \end_inset
14629
14630  means that the paragraph is indented with the width of 
14631 \begin_inset Quotes eld
14632 \end_inset
14633
14634
14635 \begin_inset Flex Code
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 MM
14640 \end_layout
14641
14642 \end_inset
14643
14644
14645 \begin_inset Quotes erd
14646 \end_inset
14647
14648  in the normal font.
14649  You can get a negative width by prefixing the string with 
14650 \begin_inset Quotes eld
14651 \end_inset
14652
14653
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 -
14659 \end_layout
14660
14661 \end_inset
14662
14663
14664 \begin_inset Quotes erd
14665 \end_inset
14666
14667 .
14668  This way was chosen so that the look is the same with each used screen
14669  font.
14670 \end_layout
14671
14672 \begin_layout Description
14673 \begin_inset Flex Code
14674 status collapsed
14675
14676 \begin_layout Plain Layout
14677 Margin
14678 \end_layout
14679
14680 \end_inset
14681
14682  [
14683 \begin_inset Flex Code
14684 status collapsed
14685
14686 \begin_layout Plain Layout
14687
14688 \emph on
14689 Static
14690 \emph default
14691 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14692 \end_layout
14693
14694 \end_inset
14695
14696
14697 \begin_inset Newline newline
14698 \end_inset
14699
14700 The kind of margin that the style has on the left side.
14701 \end_layout
14702
14703 \begin_deeper
14704 \begin_layout Description
14705 \begin_inset Flex Code
14706 status collapsed
14707
14708 \begin_layout Plain Layout
14709 Static
14710 \end_layout
14711
14712 \end_inset
14713
14714  just means a fixed margin.
14715 \end_layout
14716
14717 \begin_layout Description
14718 \begin_inset Flex Code
14719 status collapsed
14720
14721 \begin_layout Plain Layout
14722 Manual
14723 \end_layout
14724
14725 \end_inset
14726
14727  means that the left margin depends on the string entered in the 
14728 \begin_inset Flex Noun
14729 status collapsed
14730
14731 \begin_layout Plain Layout
14732 Edit\SpecialChar menuseparator
14733 Paragraph
14734 \begin_inset space ~
14735 \end_inset
14736
14737 Settings
14738 \end_layout
14739
14740 \end_inset
14741
14742  dialog.
14743  This is used to typeset nice lists without tabulators.
14744 \end_layout
14745
14746 \begin_layout Description
14747 \begin_inset Flex Code
14748 status collapsed
14749
14750 \begin_layout Plain Layout
14751 Dynamic
14752 \end_layout
14753
14754 \end_inset
14755
14756  means that the margin depends on the size of the label.
14757  This is used for automatic enumerated headlines.
14758  It is obvious that the headline 
14759 \begin_inset Quotes eld
14760 \end_inset
14761
14762 5.4.3.2.1 Very long headline
14763 \begin_inset Quotes erd
14764 \end_inset
14765
14766  must have a wider left margin (as wide as 
14767 \begin_inset Quotes eld
14768 \end_inset
14769
14770 5.4.3.2.1
14771 \begin_inset Quotes erd
14772 \end_inset
14773
14774  plus the space) than 
14775 \begin_inset Quotes eld
14776 \end_inset
14777
14778 3.2 Very long headline
14779 \begin_inset Quotes erd
14780 \end_inset
14781
14782 , even if standard 
14783 \begin_inset Quotes eld
14784 \end_inset
14785
14786 word processors
14787 \begin_inset Quotes erd
14788 \end_inset
14789
14790  are not able to do this.
14791 \end_layout
14792
14793 \begin_layout Description
14794 \begin_inset Flex Code
14795 status collapsed
14796
14797 \begin_layout Plain Layout
14798 First_Dynamic
14799 \end_layout
14800
14801 \end_inset
14802
14803  is similar, but only the very first row of the paragraph is dynamic, while
14804  the others are static; this is used, for example, for descriptions.
14805 \end_layout
14806
14807 \begin_layout Description
14808 \begin_inset Flex Code
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812 Right_Address_Box
14813 \end_layout
14814
14815 \end_inset
14816
14817  means the margin is chosen in a way that the longest row of this paragraph
14818  fits to the right margin.
14819  This is used to typeset an address on the right edge of the page.
14820 \end_layout
14821
14822 \end_deeper
14823 \begin_layout Description
14824 \begin_inset Flex Code
14825 status collapsed
14826
14827 \begin_layout Plain Layout
14828 NeedProtect
14829 \end_layout
14830
14831 \end_inset
14832
14833  [
14834 \begin_inset Flex Code
14835 status collapsed
14836
14837 \begin_layout Plain Layout
14838
14839 \emph on
14840 0
14841 \end_layout
14842
14843 \end_inset
14844
14845 ,
14846 \begin_inset space \thinspace{}
14847 \end_inset
14848
14849
14850 \begin_inset Flex Code
14851 status collapsed
14852
14853 \begin_layout Plain Layout
14854 1
14855 \end_layout
14856
14857 \end_inset
14858
14859 ] Whether fragile commands in this style should be 
14860 \begin_inset Flex Code
14861 status collapsed
14862
14863 \begin_layout Plain Layout
14864
14865 \backslash
14866 protect
14867 \end_layout
14868
14869 \end_inset
14870
14871 'ed.
14872  (Note: This is 
14873 \emph on
14874 not
14875 \emph default
14876  whether this command should itself be protected.)
14877 \change_inserted -712698321 1523696949
14878
14879 \end_layout
14880
14881 \begin_layout Description
14882
14883 \change_inserted -712698321 1523696969
14884 \begin_inset Flex Code
14885 status collapsed
14886
14887 \begin_layout Plain Layout
14888
14889 \change_inserted -712698321 1523696950
14890 NeedCProtect
14891 \end_layout
14892
14893 \end_inset
14894
14895  [
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900
14901 \change_inserted -712698321 1523696950
14902
14903 \emph on
14904 0
14905 \end_layout
14906
14907 \end_inset
14908
14909 ,
14910 \begin_inset space \thinspace{}
14911 \end_inset
14912
14913
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918
14919 \change_inserted -712698321 1523696950
14920 1
14921 \end_layout
14922
14923 \end_inset
14924
14925 ] This causes macros that contain this layout to be protected with 
14926 \begin_inset Flex Code
14927 status collapsed
14928
14929 \begin_layout Plain Layout
14930
14931 \change_inserted -712698321 1523696950
14932
14933 \backslash
14934 cprotect
14935 \end_layout
14936
14937 \end_inset
14938
14939  (cf.
14940  package 
14941 \family sans
14942 cprotect
14943 \family default
14944 ) if necessary and thus allows (some) verbatim stuff in macros.
14945 \change_unchanged
14946
14947 \end_layout
14948
14949 \begin_layout Description
14950 \begin_inset Flex Code
14951 status collapsed
14952
14953 \begin_layout Plain Layout
14954 Newline
14955 \end_layout
14956
14957 \end_inset
14958
14959  [
14960 \begin_inset Flex Code
14961 status collapsed
14962
14963 \begin_layout Plain Layout
14964 0
14965 \end_layout
14966
14967 \end_inset
14968
14969 ,
14970 \begin_inset space \thinspace{}
14971 \end_inset
14972
14973
14974 \begin_inset Flex Code
14975 status collapsed
14976
14977 \begin_layout Plain Layout
14978
14979 \emph on
14980 1
14981 \end_layout
14982
14983 \end_inset
14984
14985 ] Whether newlines are translated into \SpecialChar LaTeX
14986  newlines (
14987 \begin_inset Flex Code
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991
14992 \backslash
14993
14994 \backslash
14995
14996 \end_layout
14997
14998 \end_inset
14999
15000 ) or not.
15001  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15002  editing
15003  inside \SpecialChar LyX
15004 .
15005 \end_layout
15006
15007 \begin_layout Description
15008 \begin_inset Flex Code
15009 status collapsed
15010
15011 \begin_layout Plain Layout
15012 NextNoIndent
15013 \end_layout
15014
15015 \end_inset
15016
15017  [
15018 \begin_inset Flex Code
15019 status collapsed
15020
15021 \begin_layout Plain Layout
15022
15023 \emph on
15024 0
15025 \end_layout
15026
15027 \end_inset
15028
15029 ,
15030 \begin_inset space \thinspace{}
15031 \end_inset
15032
15033
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 1
15039 \end_layout
15040
15041 \end_inset
15042
15043 ] If set to true, and if 
15044 \begin_inset Flex Code
15045 status collapsed
15046
15047 \begin_layout Plain Layout
15048 DefaultStyle
15049 \end_layout
15050
15051 \end_inset
15052
15053  (usually 
15054 \begin_inset Flex Code
15055 status collapsed
15056
15057 \begin_layout Plain Layout
15058 Standard
15059 \end_layout
15060
15061 \end_inset
15062
15063 ) paragraphs are being indented, then the indentation of such a paragraph
15064  following one of this type will be suppressed.
15065  (So this will not affect the display of non-default paragraphs.)
15066 \end_layout
15067
15068 \begin_layout Description
15069 \begin_inset Flex Code
15070 status collapsed
15071
15072 \begin_layout Plain Layout
15073 ObsoletedBy
15074 \end_layout
15075
15076 \end_inset
15077
15078  [
15079 \begin_inset Flex Code
15080 status collapsed
15081
15082 \begin_layout Plain Layout
15083 <name>
15084 \end_layout
15085
15086 \end_inset
15087
15088 ] Name of a style that has replaced this style.
15089  This is used to rename a style, while keeping backward compatibility.
15090 \end_layout
15091
15092 \begin_layout Description
15093 \begin_inset Flex Code
15094 status collapsed
15095
15096 \begin_layout Plain Layout
15097 ParagraphGroup
15098 \end_layout
15099
15100 \end_inset
15101
15102  [
15103 \begin_inset Flex Code
15104 status collapsed
15105
15106 \begin_layout Plain Layout
15107 0
15108 \end_layout
15109
15110 \end_inset
15111
15112 ,
15113 \begin_inset space \thinspace{}
15114 \end_inset
15115
15116
15117 \begin_inset Flex Code
15118 status collapsed
15119
15120 \begin_layout Plain Layout
15121 1
15122 \end_layout
15123
15124 \end_inset
15125
15126 ] Determines whether consecutive paragraphs of the same type are treated
15127  as belonging together.
15128  This has the effect that the 
15129 \begin_inset Flex Code
15130 status collapsed
15131
15132 \begin_layout Plain Layout
15133 GuiLabel
15134 \end_layout
15135
15136 \end_inset
15137
15138  is only printed once before such a group.
15139  By default, this is true for 
15140 \begin_inset Flex Code
15141 status collapsed
15142
15143 \begin_layout Plain Layout
15144 LaTeXType
15145 \end_layout
15146
15147 \end_inset
15148
15149  
15150 \begin_inset Flex Code
15151 status collapsed
15152
15153 \begin_layout Plain Layout
15154 Environment
15155 \end_layout
15156
15157 \end_inset
15158
15159  and 
15160 \begin_inset Flex Code
15161 status collapsed
15162
15163 \begin_layout Plain Layout
15164 Bib_Environment
15165 \end_layout
15166
15167 \end_inset
15168
15169  and false for all other types.
15170 \end_layout
15171
15172 \begin_layout Description
15173 \begin_inset Flex Code
15174 status collapsed
15175
15176 \begin_layout Plain Layout
15177 ParbreakIsNewline
15178 \end_layout
15179
15180 \end_inset
15181
15182  [
15183 \begin_inset Flex Code
15184 status collapsed
15185
15186 \begin_layout Plain Layout
15187
15188 \emph on
15189 0
15190 \end_layout
15191
15192 \end_inset
15193
15194 ,
15195 \begin_inset space \thinspace{}
15196 \end_inset
15197
15198
15199 \begin_inset Flex Code
15200 status collapsed
15201
15202 \begin_layout Plain Layout
15203 1
15204 \end_layout
15205
15206 \end_inset
15207
15208 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15209  output,
15210  but only by a line break; together with 
15211 \begin_inset Flex Code
15212 status collapsed
15213
15214 \begin_layout Plain Layout
15215 PassThru 1
15216 \end_layout
15217
15218 \end_inset
15219
15220 , this allows to emulate a plain text editor (like the ERT inset).
15221 \end_layout
15222
15223 \begin_layout Description
15224 \begin_inset Flex Code
15225 status collapsed
15226
15227 \begin_layout Plain Layout
15228 ParIndent
15229 \end_layout
15230
15231 \end_inset
15232
15233  [
15234 \begin_inset Flex Code
15235 status collapsed
15236
15237 \begin_layout Plain Layout
15238 string=""
15239 \end_layout
15240
15241 \end_inset
15242
15243 ] The indent of the very first line of a paragraph.
15244  The
15245 \begin_inset Newline newline
15246 \end_inset
15247
15248
15249 \begin_inset Flex Code
15250 status collapsed
15251
15252 \begin_layout Plain Layout
15253 Parindent
15254 \end_layout
15255
15256 \end_inset
15257
15258  will be fixed for a certain style.
15259  The exception is the default style, since the indentation for these paragraphs
15260  can be prohibited with 
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 NextNoIndent
15266 \end_layout
15267
15268 \end_inset
15269
15270 .
15271  Also, 
15272 \begin_inset Flex Code
15273 status collapsed
15274
15275 \begin_layout Plain Layout
15276 Standard
15277 \end_layout
15278
15279 \end_inset
15280
15281  style paragraphs inside environments use the 
15282 \begin_inset Flex Code
15283 status collapsed
15284
15285 \begin_layout Plain Layout
15286 Parindent
15287 \end_layout
15288
15289 \end_inset
15290
15291  of the environment, not their native one.
15292  For example, 
15293 \begin_inset Flex Code
15294 status collapsed
15295
15296 \begin_layout Plain Layout
15297 Standard
15298 \end_layout
15299
15300 \end_inset
15301
15302  paragraphs inside an enumeration are not indented.
15303 \end_layout
15304
15305 \begin_layout Description
15306 \begin_inset Flex Code
15307 status collapsed
15308
15309 \begin_layout Plain Layout
15310 ParSep
15311 \end_layout
15312
15313 \end_inset
15314
15315  [
15316 \begin_inset Flex Code
15317 status collapsed
15318
15319 \begin_layout Plain Layout
15320 float=0
15321 \end_layout
15322
15323 \end_inset
15324
15325 ] The vertical space between two paragraphs of this style.
15326 \end_layout
15327
15328 \begin_layout Description
15329 \begin_inset Flex Code
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333 Parskip
15334 \end_layout
15335
15336 \end_inset
15337
15338  [
15339 \begin_inset Flex Code
15340 status collapsed
15341
15342 \begin_layout Plain Layout
15343 float=0
15344 \end_layout
15345
15346 \end_inset
15347
15348 ] \SpecialChar LyX
15349  allows the user to choose either 
15350 \begin_inset Quotes eld
15351 \end_inset
15352
15353 indent
15354 \begin_inset Quotes erd
15355 \end_inset
15356
15357  or 
15358 \begin_inset Quotes eld
15359 \end_inset
15360
15361 skip
15362 \begin_inset Quotes erd
15363 \end_inset
15364
15365  to separate paragraphs.
15366  When 
15367 \begin_inset Quotes eld
15368 \end_inset
15369
15370 indent
15371 \begin_inset Quotes erd
15372 \end_inset
15373
15374  is chosen, 
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 Parskip
15380 \end_layout
15381
15382 \end_inset
15383
15384  is ignored.
15385  When 
15386 \begin_inset Quotes eld
15387 \end_inset
15388
15389 skip
15390 \begin_inset Quotes erd
15391 \end_inset
15392
15393  is chosen, 
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 ParIndent
15399 \end_layout
15400
15401 \end_inset
15402
15403  is ignored and all paragraphs are separated by the 
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 Parskip
15409 \end_layout
15410
15411 \end_inset
15412
15413  argument.
15414  The vertical space is calculated with 
15415 \begin_inset Flex Code
15416 status collapsed
15417
15418 \begin_layout Plain Layout
15419 Parskip
15420 \begin_inset space ~
15421 \end_inset
15422
15423 * DefaultHeight
15424 \end_layout
15425
15426 \end_inset
15427
15428  where 
15429 \begin_inset Flex Code
15430 status collapsed
15431
15432 \begin_layout Plain Layout
15433 DefaultHeight
15434 \end_layout
15435
15436 \end_inset
15437
15438  is the height of a row with the normal font.
15439  This way, the look stays the same with different screen fonts.
15440 \end_layout
15441
15442 \begin_layout Description
15443 \begin_inset Flex Code
15444 status collapsed
15445
15446 \begin_layout Plain Layout
15447 PassThru
15448 \end_layout
15449
15450 \end_inset
15451
15452  [
15453 \begin_inset Flex Code
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457
15458 \emph on
15459 0
15460 \end_layout
15461
15462 \end_inset
15463
15464 ,
15465 \begin_inset space \thinspace{}
15466 \end_inset
15467
15468
15469 \begin_inset Flex Code
15470 status collapsed
15471
15472 \begin_layout Plain Layout
15473 1
15474 \end_layout
15475
15476 \end_inset
15477
15478 ] Whether the contents of this paragraph should be output in raw form, meaning
15479  without special translations that \SpecialChar LaTeX
15480  would require.
15481 \end_layout
15482
15483 \begin_layout Description
15484 \begin_inset Flex Code
15485 status collapsed
15486
15487 \begin_layout Plain Layout
15488 PassThruChars
15489 \end_layout
15490
15491 \end_inset
15492
15493  [
15494 \begin_inset Flex Code
15495 status collapsed
15496
15497 \begin_layout Plain Layout
15498 string
15499 \end_layout
15500
15501 \end_inset
15502
15503 ]
15504 \family typewriter
15505  
15506 \family default
15507 Defines individual characters that should be output in raw form, meaning
15508  without special translations that \SpecialChar LaTeX
15509  would require.
15510 \end_layout
15511
15512 \begin_layout Description
15513 \begin_inset Flex Code
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517 Preamble
15518 \end_layout
15519
15520 \end_inset
15521
15522  Information to be included in the \SpecialChar LaTeX
15523  preamble when this style is used.
15524  Used to define macros, load packages, etc., required by this particular
15525  style.
15526  Must end with 
15527 \begin_inset Quotes eld
15528 \end_inset
15529
15530
15531 \begin_inset Flex Code
15532 status collapsed
15533
15534 \begin_layout Plain Layout
15535 EndPreamble
15536 \end_layout
15537
15538 \end_inset
15539
15540
15541 \begin_inset Quotes erd
15542 \end_inset
15543
15544 .
15545 \end_layout
15546
15547 \begin_layout Description
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 RefPrefix
15553 \end_layout
15554
15555 \end_inset
15556
15557  [
15558 \begin_inset Flex Code
15559 status collapsed
15560
15561 \begin_layout Plain Layout
15562 string
15563 \end_layout
15564
15565 \end_inset
15566
15567 ] The prefix to use when creating labels referring to paragraphs of this
15568  type.
15569  This allows the use of formatted references.
15570 \end_layout
15571
15572 \begin_layout Description
15573 \begin_inset Flex Code
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577 Requires 
15578 \end_layout
15579
15580 \end_inset
15581
15582  [
15583 \begin_inset Flex Code
15584 status collapsed
15585
15586 \begin_layout Plain Layout
15587 string
15588 \end_layout
15589
15590 \end_inset
15591
15592 ] Whether the style requires the feature 
15593 \begin_inset Flex Code
15594 status collapsed
15595
15596 \begin_layout Plain Layout
15597 string
15598 \end_layout
15599
15600 \end_inset
15601
15602  (see 
15603 \begin_inset CommandInset ref
15604 LatexCommand ref
15605 reference "chap:List-of-functions"
15606
15607 \end_inset
15608
15609  for the list of features).
15610  If you require a package with specific options, you can additionally use
15611  
15612 \begin_inset Flex Code
15613 status collapsed
15614
15615 \begin_layout Plain Layout
15616 PackageOptions
15617 \end_layout
15618
15619 \end_inset
15620
15621  as a general text class parameter (see 
15622 \begin_inset CommandInset ref
15623 LatexCommand ref
15624 reference "subsec:General-text-class"
15625
15626 \end_inset
15627
15628 ).
15629 \end_layout
15630
15631 \begin_layout Description
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 ResetArgs
15637 \end_layout
15638
15639 \end_inset
15640
15641  [
15642 \begin_inset Flex Code
15643 status collapsed
15644
15645 \begin_layout Plain Layout
15646
15647 \emph on
15648 0
15649 \end_layout
15650
15651 \end_inset
15652
15653 ,
15654 \begin_inset Flex Code
15655 status collapsed
15656
15657 \begin_layout Plain Layout
15658 1
15659 \end_layout
15660
15661 \end_inset
15662
15663 ] Resets the \SpecialChar LaTeX
15664  arguments of this style (as defined via the 
15665 \begin_inset Flex Code
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669 Argument
15670 \end_layout
15671
15672 \end_inset
15673
15674  tag).
15675  This is useful if you have copied a style via 
15676 \begin_inset Flex Code
15677 status collapsed
15678
15679 \begin_layout Plain Layout
15680 CopyStyle
15681 \end_layout
15682
15683 \end_inset
15684
15685 , but you do not want to inherit its (required and optional) arguments.
15686 \end_layout
15687
15688 \begin_layout Description
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693 ResumeCounter
15694 \end_layout
15695
15696 \end_inset
15697
15698  [
15699 \begin_inset Flex Code
15700 status collapsed
15701
15702 \begin_layout Plain Layout
15703
15704 \emph on
15705 0
15706 \end_layout
15707
15708 \end_inset
15709
15710 ,
15711 \begin_inset Flex Code
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715 1
15716 \end_layout
15717
15718 \end_inset
15719
15720 ] Resumes a counter that is usually reset at each new sequence of layouts.
15721  This is currently only useful when 
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 LabelType
15727 \end_layout
15728
15729 \end_inset
15730
15731  is 
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736 Enumerate
15737 \end_layout
15738
15739 \end_inset
15740
15741 .
15742 \end_layout
15743
15744 \begin_layout Description
15745 \begin_inset Flex Code
15746 status collapsed
15747
15748 \begin_layout Plain Layout
15749 RightDelim
15750 \end_layout
15751
15752 \end_inset
15753
15754  [
15755 \begin_inset Flex Code
15756 status collapsed
15757
15758 \begin_layout Plain Layout
15759 string
15760 \end_layout
15761
15762 \end_inset
15763
15764 ] A string that is put at the end of the layout content.
15765  A line break in the output can be indicated by 
15766 \begin_inset Flex Code
15767 status collapsed
15768
15769 \begin_layout Plain Layout
15770 <br/>
15771 \end_layout
15772
15773 \end_inset
15774
15775 .
15776 \end_layout
15777
15778 \begin_layout Description
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 RightMargin
15784 \end_layout
15785
15786 \end_inset
15787
15788  [
15789 \begin_inset Flex Code
15790 status collapsed
15791
15792 \begin_layout Plain Layout
15793 string=""
15794 \end_layout
15795
15796 \end_inset
15797
15798 ] Similar to 
15799 \begin_inset Flex Code
15800 status collapsed
15801
15802 \begin_layout Plain Layout
15803 LeftMargin
15804 \end_layout
15805
15806 \end_inset
15807
15808 .
15809 \end_layout
15810
15811 \begin_layout Description
15812 \begin_inset Flex Code
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816 Spacing
15817 \end_layout
15818
15819 \end_inset
15820
15821  [
15822 \begin_inset Flex Code
15823 status collapsed
15824
15825 \begin_layout Plain Layout
15826
15827 \emph on
15828 single
15829 \end_layout
15830
15831 \end_inset
15832
15833
15834 \begin_inset Flex Code
15835 status collapsed
15836
15837 \begin_layout Plain Layout
15838 onehalf
15839 \end_layout
15840
15841 \end_inset
15842
15843
15844 \begin_inset Flex Code
15845 status collapsed
15846
15847 \begin_layout Plain Layout
15848 double
15849 \end_layout
15850
15851 \end_inset
15852
15853
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858 other
15859 \begin_inset space ~
15860 \end_inset
15861
15862 <value>
15863 \end_layout
15864
15865 \end_inset
15866
15867 ] This defines what the default spacing should be in the style.
15868  The arguments 
15869 \begin_inset Flex Code
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 single
15874 \end_layout
15875
15876 \end_inset
15877
15878
15879 \begin_inset Flex Code
15880 status collapsed
15881
15882 \begin_layout Plain Layout
15883 onehalf
15884 \end_layout
15885
15886 \end_inset
15887
15888  and 
15889 \begin_inset Flex Code
15890 status collapsed
15891
15892 \begin_layout Plain Layout
15893 double
15894 \end_layout
15895
15896 \end_inset
15897
15898  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15899  If you specify the argument 
15900 \begin_inset Flex Code
15901 status collapsed
15902
15903 \begin_layout Plain Layout
15904 other
15905 \end_layout
15906
15907 \end_inset
15908
15909 , then you must also provide a value argument which will be the actual multiplie
15910 r value.
15911  Note that, contrary to other parameters, 
15912 \begin_inset Flex Code
15913 status collapsed
15914
15915 \begin_layout Plain Layout
15916 Spacing
15917 \end_layout
15918
15919 \end_inset
15920
15921  implies the generation of specific \SpecialChar LaTeX
15922  code, using the \SpecialChar LaTeX
15923  package 
15924 \family roman
15925
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 setspace
15931 \end_layout
15932
15933 \end_inset
15934
15935 .
15936 \end_layout
15937
15938 \begin_layout Description
15939 \begin_inset Flex Code
15940 status collapsed
15941
15942 \begin_layout Plain Layout
15943 Spellcheck
15944 \end_layout
15945
15946 \end_inset
15947
15948  [
15949 \begin_inset Flex Code
15950 status collapsed
15951
15952 \begin_layout Plain Layout
15953 0
15954 \end_layout
15955
15956 \end_inset
15957
15958 ,
15959 \begin_inset space \thinspace{}
15960 \end_inset
15961
15962
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967
15968 \emph on
15969 1
15970 \end_layout
15971
15972 \end_inset
15973
15974 ] Allow spell-checking paragraphs of this style.
15975  Default is true.
15976 \end_layout
15977
15978 \begin_layout Description
15979 \begin_inset Flex Code
15980 status collapsed
15981
15982 \begin_layout Plain Layout
15983 StepMasterCounter
15984 \end_layout
15985
15986 \end_inset
15987
15988  [
15989 \begin_inset Flex Code
15990 status collapsed
15991
15992 \begin_layout Plain Layout
15993
15994 \emph on
15995 0
15996 \end_layout
15997
15998 \end_inset
15999
16000 ,
16001 \begin_inset Flex Code
16002 status collapsed
16003
16004 \begin_layout Plain Layout
16005 1
16006 \end_layout
16007
16008 \end_inset
16009
16010 ] Steps the master counter of a given counter at the beginning of a new
16011  sequence of layouts.
16012  This is currently only useful when 
16013 \begin_inset Flex Code
16014 status collapsed
16015
16016 \begin_layout Plain Layout
16017 LabelType
16018 \end_layout
16019
16020 \end_inset
16021
16022  is 
16023 \begin_inset Flex Code
16024 status collapsed
16025
16026 \begin_layout Plain Layout
16027 Enumerate
16028 \end_layout
16029
16030 \end_inset
16031
16032 .
16033 \end_layout
16034
16035 \begin_layout Description
16036 \begin_inset Flex Code
16037 status collapsed
16038
16039 \begin_layout Plain Layout
16040 TextFont
16041 \end_layout
16042
16043 \end_inset
16044
16045  The font used for the text body .
16046  See 
16047 \begin_inset CommandInset ref
16048 LatexCommand ref
16049 reference "subsec:Font-description"
16050
16051 \end_inset
16052
16053 .
16054 \end_layout
16055
16056 \begin_layout Description
16057 \begin_inset Flex Code
16058 status collapsed
16059
16060 \begin_layout Plain Layout
16061 TocLevel
16062 \end_layout
16063
16064 \end_inset
16065
16066
16067 \series medium
16068  [
16069 \begin_inset Flex Code
16070 status collapsed
16071
16072 \begin_layout Plain Layout
16073
16074 \series medium
16075 int=3
16076 \end_layout
16077
16078 \end_inset
16079
16080 ]
16081 \series default
16082  The level of the style in the table of contents.
16083  This is used for automatic numbering of section headings.
16084 \end_layout
16085
16086 \begin_layout Description
16087 \begin_inset Flex Code
16088 status collapsed
16089
16090 \begin_layout Plain Layout
16091 ToggleIndent
16092 \end_layout
16093
16094 \end_inset
16095
16096  [
16097 \emph on
16098
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103
16104 \emph on
16105 default
16106 \end_layout
16107
16108 \end_inset
16109
16110
16111 \emph default
16112
16113 \begin_inset Flex Code
16114 status collapsed
16115
16116 \begin_layout Plain Layout
16117 always
16118 \end_layout
16119
16120 \end_inset
16121
16122
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 never
16128 \end_layout
16129
16130 \end_inset
16131
16132 ] This tag determines whether the first line indentation of this paragraph
16133  can be toggled via the Paragraph settings dialog.
16134  If 
16135 \emph on
16136
16137 \begin_inset Flex Code
16138 status collapsed
16139
16140 \begin_layout Plain Layout
16141
16142 \emph off
16143 default
16144 \end_layout
16145
16146 \end_inset
16147
16148
16149 \emph default
16150  is set, indentation can be toggled if the document settings use 
16151 \begin_inset Quotes eld
16152 \end_inset
16153
16154 indent
16155 \begin_inset Quotes erd
16156 \end_inset
16157
16158  paragraph style, with 
16159 \begin_inset Flex Code
16160 status collapsed
16161
16162 \begin_layout Plain Layout
16163 always
16164 \end_layout
16165
16166 \end_inset
16167
16168 , indentation can always be toggled, notwithstanding the document settings,
16169  with 
16170 \begin_inset Flex Code
16171 status collapsed
16172
16173 \begin_layout Plain Layout
16174 never
16175 \end_layout
16176
16177 \end_inset
16178
16179 , indentation can never be toggled.
16180 \end_layout
16181
16182 \begin_layout Description
16183 \begin_inset Flex Code
16184 status collapsed
16185
16186 \begin_layout Plain Layout
16187 TopSep
16188 \end_layout
16189
16190 \end_inset
16191
16192  [
16193 \begin_inset Flex Code
16194 status collapsed
16195
16196 \begin_layout Plain Layout
16197 float=0
16198 \end_layout
16199
16200 \end_inset
16201
16202 ] The vertical space with which the very first of a chain of paragraphs
16203  with this style is separated from the previous paragraph.
16204  If the previous paragraph has another style, the separations are not simply
16205  added, but the maximum is taken.
16206 \end_layout
16207
16208 \begin_layout Subsection
16209 \begin_inset CommandInset label
16210 LatexCommand label
16211 name "subsec:I18n"
16212
16213 \end_inset
16214
16215 Internationalization of Paragraph Styles
16216 \end_layout
16217
16218 \begin_layout Standard
16219 \SpecialChar LyX
16220  has long supported internationalization of layout information, but, until
16221  version 2.0, this applied only to the user interface and not to, say, PDF
16222  output.
16223  Thus, French authors were forced to resort to ugly hacks if they wanted
16224  `
16225 \lang french
16226 Théorème
16227 \lang english
16228  1' instead of `Theorem 1'.
16229  Thanks to Georg Baum, that is no longer the case.
16230 \end_layout
16231
16232 \begin_layout Standard
16233 If a 
16234 \begin_inset Flex Code
16235 status collapsed
16236
16237 \begin_layout Plain Layout
16238 Style
16239 \end_layout
16240
16241 \end_inset
16242
16243  defines text that is to appear in the typeset document, it may use 
16244 \begin_inset Flex Code
16245 status collapsed
16246
16247 \begin_layout Plain Layout
16248 LangPreamble
16249 \end_layout
16250
16251 \end_inset
16252
16253  and 
16254 \begin_inset Flex Code
16255 status collapsed
16256
16257 \begin_layout Plain Layout
16258 BabelPreamble
16259 \end_layout
16260
16261 \end_inset
16262
16263  to support non-English and even multi-language documents correctly.
16264  The following excerpt (from the 
16265 \begin_inset Flex Code
16266 status collapsed
16267
16268 \begin_layout Plain Layout
16269 theorems-ams.inc
16270 \end_layout
16271
16272 \end_inset
16273
16274  file) shows how this works:
16275 \end_layout
16276
16277 \begin_layout LyX-Code
16278 Preamble
16279 \end_layout
16280
16281 \begin_deeper
16282 \begin_layout LyX-Code
16283   
16284 \backslash
16285 theoremstyle{remark}
16286 \end_layout
16287
16288 \begin_layout LyX-Code
16289   
16290 \backslash
16291 newtheorem{claim}[thm]{
16292 \backslash
16293 protect
16294 \backslash
16295 claimname}
16296 \end_layout
16297
16298 \begin_layout LyX-Code
16299 EndPreamble
16300 \end_layout
16301
16302 \begin_layout LyX-Code
16303 LangPreamble
16304 \end_layout
16305
16306 \begin_layout LyX-Code
16307   
16308 \backslash
16309 providecommand{
16310 \backslash
16311 claimname}{_(Claim)}
16312 \end_layout
16313
16314 \begin_layout LyX-Code
16315 EndLangPreamble
16316 \end_layout
16317
16318 \begin_layout LyX-Code
16319 BabelPreamble
16320 \end_layout
16321
16322 \begin_layout LyX-Code
16323     
16324 \backslash
16325 addto
16326 \backslash
16327 captions$$lang{
16328 \backslash
16329 renewcommand{
16330 \backslash
16331 claimname}{_(Claim)}}
16332 \end_layout
16333
16334 \begin_layout LyX-Code
16335 EndBabelPreamble
16336 \end_layout
16337
16338 \end_deeper
16339 \begin_layout Standard
16340 In principle, any legal \SpecialChar LaTeX
16341  may appear in the 
16342 \begin_inset Flex Code
16343 status collapsed
16344
16345 \begin_layout Plain Layout
16346 LangPreamble
16347 \end_layout
16348
16349 \end_inset
16350
16351  and 
16352 \begin_inset Flex Code
16353 status collapsed
16354
16355 \begin_layout Plain Layout
16356 BabelPreamble
16357 \end_layout
16358
16359 \end_inset
16360
16361  tags, but in practice they will typically look as they do here.
16362  The key to correct translation of the typeset text is the definition of
16363  the \SpecialChar LaTeX
16364  command 
16365 \begin_inset Flex Code
16366 status collapsed
16367
16368 \begin_layout Plain Layout
16369
16370 \backslash
16371 claimname
16372 \end_layout
16373
16374 \end_inset
16375
16376  and its use in 
16377 \begin_inset Flex Code
16378 status collapsed
16379
16380 \begin_layout Plain Layout
16381
16382 \backslash
16383 newtheorem
16384 \end_layout
16385
16386 \end_inset
16387
16388 .
16389  
16390 \end_layout
16391
16392 \begin_layout Standard
16393 The 
16394 \begin_inset Flex Code
16395 status collapsed
16396
16397 \begin_layout Plain Layout
16398 LangPreamble
16399 \end_layout
16400
16401 \end_inset
16402
16403  tag provides for internationalization based upon the overall language of
16404  the document.
16405  The contents of the tag will be included in the preamble, just as with
16406  the 
16407 \begin_inset Flex Code
16408 status collapsed
16409
16410 \begin_layout Plain Layout
16411 Preamble
16412 \end_layout
16413
16414 \end_inset
16415
16416  tag.
16417  What makes it special is the use of the 
16418 \begin_inset Quotes eld
16419 \end_inset
16420
16421 function
16422 \begin_inset Quotes erd
16423 \end_inset
16424
16425  
16426 \begin_inset Flex Code
16427 status collapsed
16428
16429 \begin_layout Plain Layout
16430 _()
16431 \end_layout
16432
16433 \end_inset
16434
16435 , which will be replaced, when \SpecialChar LyX
16436  produces \SpecialChar LaTeX
16437  output, with the translation of
16438  its argument into the document language.
16439 \end_layout
16440
16441 \begin_layout Standard
16442 The 
16443 \begin_inset Flex Code
16444 status collapsed
16445
16446 \begin_layout Plain Layout
16447 BabelPreamble
16448 \end_layout
16449
16450 \end_inset
16451
16452  tag is more complex, since it is meant to provide support for multi-language
16453  documents and so offers an interface to the 
16454 \begin_inset Flex Code
16455 status collapsed
16456
16457 \begin_layout Plain Layout
16458 babel
16459 \end_layout
16460
16461 \end_inset
16462
16463  package.
16464  Its contents will be added to the preamble once for each language that
16465  appears in the document.
16466  In this case, the argument to 
16467 \begin_inset Flex Code
16468 status collapsed
16469
16470 \begin_layout Plain Layout
16471 _()
16472 \end_layout
16473
16474 \end_inset
16475
16476  will be replaced with its translation into the language in question; the
16477  expression 
16478 \begin_inset Flex Code
16479 status collapsed
16480
16481 \begin_layout Plain Layout
16482 $$lang
16483 \end_layout
16484
16485 \end_inset
16486
16487  is replaced by the language name (as used by the babel package).
16488 \end_layout
16489
16490 \begin_layout Standard
16491 A German document that also included a French section would thus have the
16492  following in the preamble:
16493 \end_layout
16494
16495 \begin_layout LyX-Code
16496
16497 \backslash
16498 addto
16499 \backslash
16500 captionsfrench{
16501 \backslash
16502 renewcommand{
16503 \backslash
16504 claimname}{Affirmation}}
16505 \begin_inset Newline newline
16506 \end_inset
16507
16508
16509 \backslash
16510 addto
16511 \backslash
16512 captionsngerman{
16513 \backslash
16514 renewcommand{
16515 \backslash
16516 claimname}{Behauptung}}
16517 \begin_inset Newline newline
16518 \end_inset
16519
16520
16521 \backslash
16522 providecommand{
16523 \backslash
16524 claimname}{Behauptung}
16525 \end_layout
16526
16527 \begin_layout Standard
16528 \SpecialChar LaTeX
16529  and 
16530 \begin_inset Flex Code
16531 status collapsed
16532
16533 \begin_layout Plain Layout
16534 babel
16535 \end_layout
16536
16537 \end_inset
16538
16539  will then conspire to produce the correct text in the output.
16540 \end_layout
16541
16542 \begin_layout Standard
16543 One important point to note here is that the translations are provided by
16544  \SpecialChar LyX
16545  itself, through the file 
16546 \begin_inset Flex Code
16547 status collapsed
16548
16549 \begin_layout Plain Layout
16550 layouttranslations
16551 \end_layout
16552
16553 \end_inset
16554
16555 .
16556  This means, in effect, that 
16557 \begin_inset Flex Code
16558 status collapsed
16559
16560 \begin_layout Plain Layout
16561 LangPreamble
16562 \end_layout
16563
16564 \end_inset
16565
16566  and 
16567 \begin_inset Flex Code
16568 status collapsed
16569
16570 \begin_layout Plain Layout
16571 BabelPreamble
16572 \end_layout
16573
16574 \end_inset
16575
16576  are really only of use in layout files that are provided with \SpecialChar LyX
16577 , since text
16578  entered in user-created layout files will not be seen by \SpecialChar LyX
16579 's internationalizatio
16580 n routines unless the 
16581 \begin_inset Flex Code
16582 status collapsed
16583
16584 \begin_layout Plain Layout
16585 layouttranslations
16586 \end_layout
16587
16588 \end_inset
16589
16590  file is modified accordingly.
16591  That said, however, any layout created with the intention that it will
16592  be included with \SpecialChar LyX
16593  should use these tags where appropriate.
16594  Please note that the paragraph style translations provided by \SpecialChar LyX
16595  will never
16596  change with a minor update (e.
16597 \begin_inset space \thinspace{}
16598 \end_inset
16599
16600 g.
16601 \begin_inset space \space{}
16602 \end_inset
16603
16604 from version 2.1.x to 2.1.y).
16605  It is however quite likely that a major update (e.
16606 \begin_inset space \thinspace{}
16607 \end_inset
16608
16609 g.
16610 \begin_inset space \space{}
16611 \end_inset
16612
16613 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16614 \end_layout
16615
16616 \begin_layout Subsection
16617 Floats
16618 \begin_inset CommandInset label
16619 LatexCommand label
16620 name "subsec:Floats"
16621
16622 \end_inset
16623
16624
16625 \end_layout
16626
16627 \begin_layout Standard
16628 It is necessary to define the floats (
16629 \begin_inset Flex Noun
16630 status collapsed
16631
16632 \begin_layout Plain Layout
16633 figure
16634 \end_layout
16635
16636 \end_inset
16637
16638
16639 \begin_inset Flex Noun
16640 status collapsed
16641
16642 \begin_layout Plain Layout
16643 table
16644 \end_layout
16645
16646 \end_inset
16647
16648 , \SpecialChar ldots
16649 ) in the text class itself.
16650  Standard floats are included in the file 
16651 \begin_inset Flex Code
16652 status collapsed
16653
16654 \begin_layout Plain Layout
16655 stdfloats.inc
16656 \end_layout
16657
16658 \end_inset
16659
16660 , so you may have to do no more than add
16661 \end_layout
16662
16663 \begin_layout LyX-Code
16664 Input stdfloats.inc
16665 \end_layout
16666
16667 \begin_layout Standard
16668 to your layout file.
16669  If you want to implement a text class that proposes some other float types
16670  (like the AGU class bundled with \SpecialChar LyX
16671 ), the information below will hopefully
16672  help you:
16673 \end_layout
16674
16675 \begin_layout Description
16676 \begin_inset Flex Code
16677 status collapsed
16678
16679 \begin_layout Plain Layout
16680 AllowedPlacement
16681 \end_layout
16682
16683 \end_inset
16684
16685  [
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 string
16691 \end_layout
16692
16693 \end_inset
16694
16695 =!htbpH] Allowed placement options for this float type.
16696  The value is a string of placement characters.
16697  Possible characters include: 
16698 \emph on
16699 h
16700 \emph default
16701  (
16702 \begin_inset Quotes eld
16703 \end_inset
16704
16705 here if possible
16706 \begin_inset Quotes erd
16707 \end_inset
16708
16709 ), 
16710 \emph on
16711 t
16712 \emph default
16713  (
16714 \begin_inset Quotes eld
16715 \end_inset
16716
16717 top of page
16718 \begin_inset Quotes erd
16719 \end_inset
16720
16721 ), 
16722 \emph on
16723 b
16724 \emph default
16725  (
16726 \begin_inset Quotes eld
16727 \end_inset
16728
16729 bottom of page
16730 \begin_inset Quotes erd
16731 \end_inset
16732
16733 ), 
16734 \emph on
16735 p
16736 \emph default
16737  (
16738 \begin_inset Quotes eld
16739 \end_inset
16740
16741 page of floats
16742 \begin_inset Quotes erd
16743 \end_inset
16744
16745 ), 
16746 \emph on
16747 H
16748 \emph default
16749  (
16750 \begin_inset Quotes eld
16751 \end_inset
16752
16753 here definitely
16754 \begin_inset Quotes erd
16755 \end_inset
16756
16757 ) and 
16758 \emph on
16759 !
16760 \emph default
16761  (
16762 \begin_inset Quotes eld
16763 \end_inset
16764
16765 ignore LaTeX rules
16766 \begin_inset Quotes erd
16767 \end_inset
16768
16769 ).
16770  The order of the characters in the string does not matter.
16771  If no placement options are allowed, use the string 
16772 \emph on
16773 none
16774 \emph default
16775 .
16776 \end_layout
16777
16778 \begin_layout Description
16779 \begin_inset Flex Code
16780 status collapsed
16781
16782 \begin_layout Plain Layout
16783 AllowsSideways
16784 \end_layout
16785
16786 \end_inset
16787
16788  [
16789 \begin_inset Flex Code
16790 status collapsed
16791
16792 \begin_layout Plain Layout
16793
16794 \emph off
16795 0
16796 \end_layout
16797
16798 \end_inset
16799
16800 ,
16801 \begin_inset space \thinspace{}
16802 \end_inset
16803
16804
16805 \emph on
16806
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811
16812 \emph on
16813 1
16814 \end_layout
16815
16816 \end_inset
16817
16818
16819 \emph default
16820 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16821 -package 
16822 \family typewriter
16823 rotfloat
16824 \family default
16825  (sidewaysfloat).
16826  Set to 
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831 0
16832 \end_layout
16833
16834 \end_inset
16835
16836  if the float does not support this feature.
16837 \end_layout
16838
16839 \begin_layout Description
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 AllowsWide
16845 \end_layout
16846
16847 \end_inset
16848
16849  [
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854
16855 \emph off
16856 0
16857 \end_layout
16858
16859 \end_inset
16860
16861 ,
16862 \begin_inset space \thinspace{}
16863 \end_inset
16864
16865
16866 \emph on
16867
16868 \begin_inset Flex Code
16869 status collapsed
16870
16871 \begin_layout Plain Layout
16872
16873 \emph on
16874 1
16875 \end_layout
16876
16877 \end_inset
16878
16879
16880 \emph default
16881 ] Defines whether the float has a starred variant that spans columns in
16882  a two column paragraph.
16883  Set to 
16884 \begin_inset Flex Code
16885 status collapsed
16886
16887 \begin_layout Plain Layout
16888 0
16889 \end_layout
16890
16891 \end_inset
16892
16893  if the float does not support this feature.
16894 \end_layout
16895
16896 \begin_layout Description
16897 \begin_inset Flex Code
16898 status collapsed
16899
16900 \begin_layout Plain Layout
16901 Extension
16902 \end_layout
16903
16904 \end_inset
16905
16906  [
16907 \begin_inset Flex Code
16908 status collapsed
16909
16910 \begin_layout Plain Layout
16911 string
16912 \end_layout
16913
16914 \end_inset
16915
16916 =
16917 \begin_inset Quotes erd
16918 \end_inset
16919
16920
16921 \begin_inset Quotes erd
16922 \end_inset
16923
16924 ] The file name extension of an auxiliary file for the list of figures (or
16925  whatever).
16926  \SpecialChar LaTeX
16927  writes the captions to this file.
16928 \end_layout
16929
16930 \begin_layout Description
16931 \begin_inset Flex Code
16932 status collapsed
16933
16934 \begin_layout Plain Layout
16935 GuiName
16936 \end_layout
16937
16938 \end_inset
16939
16940  [
16941 \begin_inset Flex Code
16942 status collapsed
16943
16944 \begin_layout Plain Layout
16945 string
16946 \end_layout
16947
16948 \end_inset
16949
16950 =
16951 \begin_inset Quotes erd
16952 \end_inset
16953
16954
16955 \begin_inset Quotes erd
16956 \end_inset
16957
16958 ] The string that will be used in the menus and also for the caption.
16959  This is translated to the current language if babel is used.
16960 \end_layout
16961
16962 \begin_layout Description
16963 \begin_inset Flex Code
16964 status collapsed
16965
16966 \begin_layout Plain Layout
16967 HTML*
16968 \end_layout
16969
16970 \end_inset
16971
16972  These tags control the XHTML output.
16973  See 
16974 \begin_inset CommandInset ref
16975 LatexCommand ref
16976 reference "sec:Tags-for-XHTML"
16977
16978 \end_inset
16979
16980 .
16981 \end_layout
16982
16983 \begin_layout Description
16984 \begin_inset Flex Code
16985 status collapsed
16986
16987 \begin_layout Plain Layout
16988 IsPredefined
16989 \end_layout
16990
16991 \end_inset
16992
16993  [
16994 \emph on
16995
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 0
17001 \end_layout
17002
17003 \end_inset
17004
17005
17006 \emph default
17007 ,
17008 \begin_inset space \thinspace{}
17009 \end_inset
17010
17011
17012 \begin_inset Flex Code
17013 status collapsed
17014
17015 \begin_layout Plain Layout
17016 1
17017 \end_layout
17018
17019 \end_inset
17020
17021 ] Indicates whether the float is already defined in the document class or
17022  if instead the \SpecialChar LaTeX
17023  package 
17024 \begin_inset Flex Code
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028 float
17029 \end_layout
17030
17031 \end_inset
17032
17033  needs to be loaded to define it on-the-fly.
17034  The default is 
17035 \begin_inset Flex Code
17036 status collapsed
17037
17038 \begin_layout Plain Layout
17039 0
17040 \end_layout
17041
17042 \end_inset
17043
17044 , which means: 
17045 \begin_inset Flex Code
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049 float
17050 \end_layout
17051
17052 \end_inset
17053
17054  is used.
17055  It should be set to 
17056 \begin_inset Flex Code
17057 status collapsed
17058
17059 \begin_layout Plain Layout
17060 1
17061 \end_layout
17062
17063 \end_inset
17064
17065  if the float is already defined by the \SpecialChar LaTeX
17066  document class.
17067 \end_layout
17068
17069 \begin_layout Description
17070 \begin_inset Flex Code
17071 status collapsed
17072
17073 \begin_layout Plain Layout
17074 ListCommand
17075 \end_layout
17076
17077 \end_inset
17078
17079  [
17080 \begin_inset Flex Code
17081 status collapsed
17082
17083 \begin_layout Plain Layout
17084 string
17085 \end_layout
17086
17087 \end_inset
17088
17089 =
17090 \begin_inset Quotes erd
17091 \end_inset
17092
17093
17094 \begin_inset Quotes erd
17095 \end_inset
17096
17097 ] The command used to generate a list of floats of this type; the leading
17098  `
17099 \backslash
17100 ' must be omitted.
17101  This 
17102 \emph on
17103 must
17104 \emph default
17105  be given if 
17106 \begin_inset Flex Code
17107 status collapsed
17108
17109 \begin_layout Plain Layout
17110 UsesFloatPkg
17111 \end_layout
17112
17113 \end_inset
17114
17115  is false, since there is no standard way to generate this command.
17116  It is ignored if 
17117 \begin_inset Flex Code
17118 status collapsed
17119
17120 \begin_layout Plain Layout
17121 UsesFloatPkg
17122 \end_layout
17123
17124 \end_inset
17125
17126  is true, since in that case there is a standard way to define the command.
17127 \end_layout
17128
17129 \begin_layout Description
17130 \begin_inset Flex Code
17131 status collapsed
17132
17133 \begin_layout Plain Layout
17134 ListName
17135 \end_layout
17136
17137 \end_inset
17138
17139  [
17140 \begin_inset Flex Code
17141 status collapsed
17142
17143 \begin_layout Plain Layout
17144 string
17145 \end_layout
17146
17147 \end_inset
17148
17149 =
17150 \begin_inset Quotes erd
17151 \end_inset
17152
17153
17154 \begin_inset Quotes erd
17155 \end_inset
17156
17157 ] A title for a list of floats of this kind (list of figures, tables, or
17158  whatever).
17159  It is used for the screen label within \SpecialChar LyX
17160 , it is used by \SpecialChar LaTeX
17161  for the title and
17162  it is used as the title in the XHTML output.
17163  It will be translated to the document language.
17164 \end_layout
17165
17166 \begin_layout Description
17167 \begin_inset Flex Code
17168 status collapsed
17169
17170 \begin_layout Plain Layout
17171 NumberWithin
17172 \end_layout
17173
17174 \end_inset
17175
17176  [
17177 \begin_inset Flex Code
17178 status collapsed
17179
17180 \begin_layout Plain Layout
17181 string
17182 \end_layout
17183
17184 \end_inset
17185
17186 =
17187 \begin_inset Quotes erd
17188 \end_inset
17189
17190
17191 \begin_inset Quotes erd
17192 \end_inset
17193
17194 ] This (optional) argument determines whether floats of this class will
17195  be numbered within some sectional unit of the document.
17196  For example, if 
17197 \begin_inset Flex Code
17198 status collapsed
17199
17200 \begin_layout Plain Layout
17201 NumberWithin
17202 \end_layout
17203
17204 \end_inset
17205
17206  is set to 
17207 \begin_inset Quotes eld
17208 \end_inset
17209
17210
17211 \begin_inset Flex Code
17212 status collapsed
17213
17214 \begin_layout Plain Layout
17215 chapter
17216 \end_layout
17217
17218 \end_inset
17219
17220
17221 \begin_inset Quotes erd
17222 \end_inset
17223
17224 , the floats will be numbered within chapters.
17225  
17226 \end_layout
17227
17228 \begin_layout Description
17229 \begin_inset Flex Code
17230 status collapsed
17231
17232 \begin_layout Plain Layout
17233 Placement
17234 \end_layout
17235
17236 \end_inset
17237
17238  [
17239 \begin_inset Flex Code
17240 status collapsed
17241
17242 \begin_layout Plain Layout
17243 string
17244 \end_layout
17245
17246 \end_inset
17247
17248 =
17249 \begin_inset Quotes erd
17250 \end_inset
17251
17252
17253 \begin_inset Quotes erd
17254 \end_inset
17255
17256 ] The default placement for the given class of floats.
17257  The string should be as in standard \SpecialChar LaTeX
17258
17259 \begin_inset Flex Code
17260 status collapsed
17261
17262 \begin_layout Plain Layout
17263 t
17264 \end_layout
17265
17266 \end_inset
17267
17268
17269 \begin_inset Flex Code
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273 b
17274 \end_layout
17275
17276 \end_inset
17277
17278
17279 \begin_inset Flex Code
17280 status collapsed
17281
17282 \begin_layout Plain Layout
17283 p
17284 \end_layout
17285
17286 \end_inset
17287
17288  and 
17289 \begin_inset Flex Code
17290 status collapsed
17291
17292 \begin_layout Plain Layout
17293 h
17294 \end_layout
17295
17296 \end_inset
17297
17298  for top, bottom, page, and here, respectively.
17299 \begin_inset Foot
17300 status collapsed
17301
17302 \begin_layout Plain Layout
17303 Note that the order of these letters in the string is irrelevant, like in
17304  \SpecialChar LaTeX
17305 .
17306 \end_layout
17307
17308 \end_inset
17309
17310  On top of that there is a new type, 
17311 \begin_inset Flex Code
17312 status collapsed
17313
17314 \begin_layout Plain Layout
17315 H
17316 \end_layout
17317
17318 \end_inset
17319
17320 , which does not really correspond to a float, since it means: put it 
17321 \begin_inset Quotes eld
17322 \end_inset
17323
17324 here
17325 \begin_inset Quotes erd
17326 \end_inset
17327
17328  and nowhere else.
17329  Note however that the 
17330 \begin_inset Flex Code
17331 status collapsed
17332
17333 \begin_layout Plain Layout
17334 H
17335 \end_layout
17336
17337 \end_inset
17338
17339  specifier is special and, because of implementation details, cannot be
17340  used in non-built in float types.
17341  If you do not understand what this means, just use 
17342 \begin_inset Quotes eld
17343 \end_inset
17344
17345
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350 tbp
17351 \end_layout
17352
17353 \end_inset
17354
17355
17356 \begin_inset Quotes erd
17357 \end_inset
17358
17359 .
17360 \end_layout
17361
17362 \begin_layout Description
17363 \begin_inset Flex Code
17364 status collapsed
17365
17366 \begin_layout Plain Layout
17367 RefPrefix
17368 \end_layout
17369
17370 \end_inset
17371
17372  [
17373 \begin_inset Flex Code
17374 status collapsed
17375
17376 \begin_layout Plain Layout
17377 string
17378 \end_layout
17379
17380 \end_inset
17381
17382 ] The prefix to use when creating labels referring to floats of this type.
17383  This allows the use of formatted references.
17384  Note that you can remove any 
17385 \begin_inset Flex Code
17386 status collapsed
17387
17388 \begin_layout Plain Layout
17389 RefPrefix
17390 \end_layout
17391
17392 \end_inset
17393
17394  set by a copied style by using the special value 
17395 \begin_inset Quotes eld
17396 \end_inset
17397
17398 OFF
17399 \begin_inset Quotes erd
17400 \end_inset
17401
17402 , which must be all caps.
17403 \end_layout
17404
17405 \begin_layout Description
17406 \begin_inset Flex Code
17407 status collapsed
17408
17409 \begin_layout Plain Layout
17410 Style
17411 \end_layout
17412
17413 \end_inset
17414
17415  [
17416 \begin_inset Flex Code
17417 status collapsed
17418
17419 \begin_layout Plain Layout
17420 string
17421 \end_layout
17422
17423 \end_inset
17424
17425 =
17426 \begin_inset Quotes erd
17427 \end_inset
17428
17429
17430 \begin_inset Quotes erd
17431 \end_inset
17432
17433 ] The style used when defining the float using 
17434 \begin_inset Flex Code
17435 status collapsed
17436
17437 \begin_layout Plain Layout
17438
17439 \backslash
17440 newfloat
17441 \end_layout
17442
17443 \end_inset
17444
17445 .
17446 \end_layout
17447
17448 \begin_layout Description
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  [
17459 \begin_inset Flex Code
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 string
17464 \end_layout
17465
17466 \end_inset
17467
17468 =
17469 \begin_inset Quotes erd
17470 \end_inset
17471
17472
17473 \begin_inset Quotes erd
17474 \end_inset
17475
17476 ] The 
17477 \begin_inset Quotes eld
17478 \end_inset
17479
17480 type
17481 \begin_inset Quotes erd
17482 \end_inset
17483
17484  of the new class of floats, like program or algorithm.
17485  After the appropriate 
17486 \begin_inset Flex Code
17487 status collapsed
17488
17489 \begin_layout Plain Layout
17490
17491 \backslash
17492 newfloat
17493 \end_layout
17494
17495 \end_inset
17496
17497 , commands such as 
17498 \begin_inset Flex Code
17499 status collapsed
17500
17501 \begin_layout Plain Layout
17502
17503 \backslash
17504 begin{program}
17505 \end_layout
17506
17507 \end_inset
17508
17509  or 
17510 \begin_inset Flex Code
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514
17515 \backslash
17516 end{algorithm*}
17517 \end_layout
17518
17519 \end_inset
17520
17521  will be available.
17522 \end_layout
17523
17524 \begin_layout Description
17525 \begin_inset Flex Code
17526 status collapsed
17527
17528 \begin_layout Plain Layout
17529 UsesFloatPkg
17530 \end_layout
17531
17532 \end_inset
17533
17534  [
17535 \begin_inset Flex Code
17536 status collapsed
17537
17538 \begin_layout Plain Layout
17539 0
17540 \end_layout
17541
17542 \end_inset
17543
17544 ,
17545 \begin_inset space \thinspace{}
17546 \end_inset
17547
17548
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553
17554 \emph on
17555 1
17556 \end_layout
17557
17558 \end_inset
17559
17560 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17561  package 
17562 \begin_inset Flex Code
17563 status collapsed
17564
17565 \begin_layout Plain Layout
17566 float
17567 \end_layout
17568
17569 \end_inset
17570
17571 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17572  itself.
17573 \end_layout
17574
17575 \begin_layout Standard
17576 Note that defining a float with type 
17577 \begin_inset Flex Code
17578 status collapsed
17579
17580 \begin_layout Plain Layout
17581
17582 \emph on
17583 type
17584 \end_layout
17585
17586 \end_inset
17587
17588  automatically defines the corresponding counter with name 
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593
17594 \emph on
17595 type
17596 \end_layout
17597
17598 \end_inset
17599
17600 .
17601 \end_layout
17602
17603 \begin_layout Subsection
17604 Flex insets and InsetLayout
17605 \begin_inset CommandInset label
17606 LatexCommand label
17607 name "subsec:Flex-insets-and"
17608
17609 \end_inset
17610
17611
17612 \end_layout
17613
17614 \begin_layout Standard
17615 Flex insets come in three different kinds: 
17616 \end_layout
17617
17618 \begin_layout Itemize
17619 character style (
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 CharStyle
17625 \end_layout
17626
17627 \end_inset
17628
17629 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17630  commands as 
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635
17636 \backslash
17637 noun
17638 \end_layout
17639
17640 \end_inset
17641
17642  and 
17643 \begin_inset Flex Code
17644 status collapsed
17645
17646 \begin_layout Plain Layout
17647
17648 \backslash
17649 code
17650 \end_layout
17651
17652 \end_inset
17653
17654 .
17655 \end_layout
17656
17657 \begin_layout Itemize
17658 user custom (
17659 \begin_inset Flex Code
17660 status collapsed
17661
17662 \begin_layout Plain Layout
17663 Custom
17664 \end_layout
17665
17666 \end_inset
17667
17668 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17669  code,
17670  footnote, and the like.
17671  An obvious example is an endnote inset, which is defined in the 
17672 \begin_inset Flex Code
17673 status collapsed
17674
17675 \begin_layout Plain Layout
17676 endnote
17677 \end_layout
17678
17679 \end_inset
17680
17681  module.
17682 \end_layout
17683
17684 \begin_layout Itemize
17685 XML elements (
17686 \begin_inset Flex Code
17687 status collapsed
17688
17689 \begin_layout Plain Layout
17690 Element
17691 \end_layout
17692
17693 \end_inset
17694
17695 ): For use with DocBook classes.
17696 \end_layout
17697
17698 \begin_layout Standard
17699 Flex insets are defined using the 
17700 \begin_inset Flex Code
17701 status collapsed
17702
17703 \begin_layout Plain Layout
17704 InsetLayout
17705 \end_layout
17706
17707 \end_inset
17708
17709  tag, which shall be explained in a moment.
17710 \end_layout
17711
17712 \begin_layout Standard
17713 The 
17714 \begin_inset Flex Code
17715 status collapsed
17716
17717 \begin_layout Plain Layout
17718 InsetLayout
17719 \end_layout
17720
17721 \end_inset
17722
17723  tag also serves another function: It can be used to customize the general
17724  layout of many different types of insets.
17725  Currently, 
17726 \begin_inset Flex Code
17727 status collapsed
17728
17729 \begin_layout Plain Layout
17730 InsetLayout
17731 \end_layout
17732
17733 \end_inset
17734
17735  can be used to customize the layout parameters for footnotes, marginal
17736  notes, note insets, \SpecialChar TeX
17737  code (ERT) insets, branches, listings, indexes, boxes,
17738  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17739 \end_layout
17740
17741 \begin_layout Standard
17742 The 
17743 \begin_inset Flex Code
17744 status collapsed
17745
17746 \begin_layout Plain Layout
17747 InsetLayout
17748 \end_layout
17749
17750 \end_inset
17751
17752  definition must begin with a line of the form:
17753 \end_layout
17754
17755 \begin_layout LyX-Code
17756 InsetLayout <type>
17757 \end_layout
17758
17759 \begin_layout Standard
17760 Here 
17761 \begin_inset Flex Code
17762 status collapsed
17763
17764 \begin_layout Plain Layout
17765 <Type>
17766 \end_layout
17767
17768 \end_inset
17769
17770  indicates the inset whose layout is being defined, and here there are four
17771  cases.
17772 \end_layout
17773
17774 \begin_layout Enumerate
17775 The layout for a pre-existing inset is being modified.
17776  In this case, can be 
17777 \begin_inset Flex Code
17778 status collapsed
17779
17780 \begin_layout Plain Layout
17781 <Type>
17782 \end_layout
17783
17784 \end_inset
17785
17786  any one of the following: 
17787 \begin_inset Flex Code
17788 status collapsed
17789
17790 \begin_layout Plain Layout
17791 Algorithm
17792 \end_layout
17793
17794 \end_inset
17795
17796
17797 \begin_inset Flex Code
17798 status collapsed
17799
17800 \begin_layout Plain Layout
17801 Branch
17802 \end_layout
17803
17804 \end_inset
17805
17806
17807 \begin_inset Flex Code
17808 status collapsed
17809
17810 \begin_layout Plain Layout
17811 Box
17812 \end_layout
17813
17814 \end_inset
17815
17816
17817 \begin_inset Flex Code
17818 status collapsed
17819
17820 \begin_layout Plain Layout
17821 Box:shaded
17822 \end_layout
17823
17824 \end_inset
17825
17826
17827 \begin_inset Flex Code
17828 status collapsed
17829
17830 \begin_layout Plain Layout
17831 Caption:Standard
17832 \end_layout
17833
17834 \end_inset
17835
17836
17837 \begin_inset Flex Code
17838 status collapsed
17839
17840 \begin_layout Plain Layout
17841 ERT
17842 \end_layout
17843
17844 \end_inset
17845
17846
17847 \begin_inset Flex Code
17848 status collapsed
17849
17850 \begin_layout Plain Layout
17851 Figure
17852 \end_layout
17853
17854 \end_inset
17855
17856
17857 \begin_inset Flex Code
17858 status collapsed
17859
17860 \begin_layout Plain Layout
17861 Foot
17862 \end_layout
17863
17864 \end_inset
17865
17866
17867 \begin_inset Flex Code
17868 status collapsed
17869
17870 \begin_layout Plain Layout
17871 Index
17872 \end_layout
17873
17874 \end_inset
17875
17876
17877 \begin_inset Flex Code
17878 status collapsed
17879
17880 \begin_layout Plain Layout
17881 Info
17882 \end_layout
17883
17884 \end_inset
17885
17886
17887 \begin_inset Flex Code
17888 status collapsed
17889
17890 \begin_layout Plain Layout
17891 Info:menu
17892 \end_layout
17893
17894 \end_inset
17895
17896
17897 \begin_inset Flex Code
17898 status collapsed
17899
17900 \begin_layout Plain Layout
17901 Info:shortcut
17902 \end_layout
17903
17904 \end_inset
17905
17906
17907 \begin_inset Flex Code
17908 status collapsed
17909
17910 \begin_layout Plain Layout
17911 Info:shortcuts
17912 \end_layout
17913
17914 \end_inset
17915
17916
17917 \begin_inset Flex Code
17918 status collapsed
17919
17920 \begin_layout Plain Layout
17921 Listings
17922 \end_layout
17923
17924 \end_inset
17925
17926
17927 \begin_inset Flex Code
17928 status collapsed
17929
17930 \begin_layout Plain Layout
17931 Marginal
17932 \end_layout
17933
17934 \end_inset
17935
17936
17937 \begin_inset Flex Code
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 Note:Comment
17942 \end_layout
17943
17944 \end_inset
17945
17946
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 Note:Note
17952 \end_layout
17953
17954 \end_inset
17955
17956
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 Note:Greyedout
17962 \end_layout
17963
17964 \end_inset
17965
17966
17967 \begin_inset Flex Code
17968 status collapsed
17969
17970 \begin_layout Plain Layout
17971 Table
17972 \end_layout
17973
17974 \end_inset
17975
17976 , or 
17977 \begin_inset Flex Code
17978 status collapsed
17979
17980 \begin_layout Plain Layout
17981 URL
17982 \end_layout
17983
17984 \end_inset
17985
17986 .
17987 \end_layout
17988
17989 \begin_layout Enumerate
17990 The layout for a Flex inset is being defined.
17991  In this case, 
17992 \begin_inset Flex Code
17993 status collapsed
17994
17995 \begin_layout Plain Layout
17996 <Type>
17997 \end_layout
17998
17999 \end_inset
18000
18001  must be of the form 
18002 \begin_inset Quotes eld
18003 \end_inset
18004
18005
18006 \begin_inset Flex Code
18007 status collapsed
18008
18009 \begin_layout Plain Layout
18010 Flex:<name>
18011 \end_layout
18012
18013 \end_inset
18014
18015
18016 \begin_inset Quotes erd
18017 \end_inset
18018
18019 , where 
18020 \begin_inset Flex Code
18021 status collapsed
18022
18023 \begin_layout Plain Layout
18024 name
18025 \end_layout
18026
18027 \end_inset
18028
18029  may be be any valid identifier not used by a pre-existing Flex inset.
18030  The identifier may include spaces, but in that case the whole thing must
18031  be wrapped in quotes.
18032  Note that the definition of a flex inset 
18033 \emph on
18034 must 
18035 \emph default
18036 also include a 
18037 \begin_inset Flex Code
18038 status collapsed
18039
18040 \begin_layout Plain Layout
18041 LyXType
18042 \end_layout
18043
18044 \end_inset
18045
18046  entry, declaring which type of inset it defines.
18047 \end_layout
18048
18049 \begin_layout Enumerate
18050 The layout for user specific branch is being defined.
18051  In this case, 
18052 \begin_inset Flex Code
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056 <Type>
18057 \end_layout
18058
18059 \end_inset
18060
18061  must be of the form 
18062 \begin_inset Quotes eld
18063 \end_inset
18064
18065
18066 \begin_inset Flex Code
18067 status collapsed
18068
18069 \begin_layout Plain Layout
18070 Branch:<name>
18071 \end_layout
18072
18073 \end_inset
18074
18075
18076 \begin_inset Quotes erd
18077 \end_inset
18078
18079 , where 
18080 \begin_inset Flex Code
18081 status collapsed
18082
18083 \begin_layout Plain Layout
18084 name
18085 \end_layout
18086
18087 \end_inset
18088
18089  may be be any valid identifier of branch defined in user's document.
18090  The identifier may include spaces, but in that case the whole thing must
18091  be wrapped in quotes.
18092  The main purpose of this feature is to allow \SpecialChar LaTeX
18093  wrapping around specific
18094  branches as user needs.
18095 \end_layout
18096
18097 \begin_layout Enumerate
18098 The layout of a user (or class) specific caption is being defined.
18099  In this case, 
18100 \begin_inset Flex Code
18101 status collapsed
18102
18103 \begin_layout Plain Layout
18104 <Type>
18105 \end_layout
18106
18107 \end_inset
18108
18109  must be of the form 
18110 \begin_inset Quotes eld
18111 \end_inset
18112
18113
18114 \begin_inset Flex Code
18115 status collapsed
18116
18117 \begin_layout Plain Layout
18118 Caption:<name>
18119 \end_layout
18120
18121 \end_inset
18122
18123
18124 \begin_inset Quotes erd
18125 \end_inset
18126
18127 , where 
18128 \begin_inset Flex Code
18129 status collapsed
18130
18131 \begin_layout Plain Layout
18132 name
18133 \end_layout
18134
18135 \end_inset
18136
18137  specifies the name of the caption as it appears in the menu.
18138  Have a look at the standard caption (
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143 Caption:Standard
18144 \end_layout
18145
18146 \end_inset
18147
18148 ), the specific captions of the KOMA-Script classes (
18149 \begin_inset Flex Code
18150 status collapsed
18151
18152 \begin_layout Plain Layout
18153 Caption:Above
18154 \end_layout
18155
18156 \end_inset
18157
18158
18159 \begin_inset Flex Code
18160 status collapsed
18161
18162 \begin_layout Plain Layout
18163 Caption:Below
18164 \end_layout
18165
18166 \end_inset
18167
18168 ) or the module 
18169 \family sans
18170 Multilingual
18171 \begin_inset space ~
18172 \end_inset
18173
18174 Captions
18175 \begin_inset Newline linebreak
18176 \end_inset
18177
18178
18179 \family default
18180 (
18181 \begin_inset Flex Code
18182 status collapsed
18183
18184 \begin_layout Plain Layout
18185 Caption:Bicaption
18186 \end_layout
18187
18188 \end_inset
18189
18190 ) for applications.
18191 \end_layout
18192
18193 \begin_layout Standard
18194 The 
18195 \begin_inset Flex Code
18196 status collapsed
18197
18198 \begin_layout Plain Layout
18199 InsetLayout
18200 \end_layout
18201
18202 \end_inset
18203
18204  definition can contain the following entries:
18205 \end_layout
18206
18207 \begin_layout Description
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212 AddToToc
18213 \end_layout
18214
18215 \end_inset
18216
18217  [
18218 \begin_inset Flex Code
18219 status collapsed
18220
18221 \begin_layout Plain Layout
18222 string
18223 \end_layout
18224
18225 \end_inset
18226
18227 =""] This inset will appear in the table of contents of the given type.
18228  An empty string disables.
18229  See also the OutlinerName and the IsTocCaption commands.
18230  This is only implemented for Flex insets.
18231  Default: disabled.
18232 \end_layout
18233
18234 \begin_layout Description
18235 \begin_inset Flex Code
18236 status collapsed
18237
18238 \begin_layout Plain Layout
18239 Argument
18240 \end_layout
18241
18242 \end_inset
18243
18244  [
18245 \begin_inset Flex Code
18246 status collapsed
18247
18248 \begin_layout Plain Layout
18249 int
18250 \end_layout
18251
18252 \end_inset
18253
18254 ] Defines argument number of a command\SpecialChar breakableslash
18255 environment associated with the current
18256  layout.
18257  The definition must end with 
18258 \begin_inset Flex Code
18259 status collapsed
18260
18261 \begin_layout Plain Layout
18262 EndArgument
18263 \end_layout
18264
18265 \end_inset
18266
18267 .
18268  See 
18269 \begin_inset CommandInset ref
18270 LatexCommand ref
18271 reference "subsec:Paragraph-Styles"
18272
18273 \end_inset
18274
18275  for details.
18276 \end_layout
18277
18278 \begin_layout Description
18279 \begin_inset Flex Code
18280 status collapsed
18281
18282 \begin_layout Plain Layout
18283 BabelPreamble
18284 \end_layout
18285
18286 \end_inset
18287
18288  Preamble for changing language commands; see 
18289 \begin_inset CommandInset ref
18290 LatexCommand ref
18291 reference "subsec:I18n"
18292
18293 \end_inset
18294
18295 .
18296 \end_layout
18297
18298 \begin_layout Description
18299 \begin_inset Flex Code
18300 status collapsed
18301
18302 \begin_layout Plain Layout
18303 BgColor
18304 \end_layout
18305
18306 \end_inset
18307
18308  [
18309 \begin_inset Flex Code
18310 status collapsed
18311
18312 \begin_layout Plain Layout
18313 <name>
18314 \end_layout
18315
18316 \end_inset
18317
18318 ] The color for the inset's background.
18319  See 
18320 \begin_inset CommandInset ref
18321 LatexCommand ref
18322 reference "chap:Names-of-colors"
18323
18324 \end_inset
18325
18326  for a list of the available color names.
18327 \end_layout
18328
18329 \begin_layout Description
18330 \begin_inset Flex Code
18331 status collapsed
18332
18333 \begin_layout Plain Layout
18334 ContentAsLabel
18335 \end_layout
18336
18337 \end_inset
18338
18339  [
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344
18345 \emph on
18346 0
18347 \end_layout
18348
18349 \end_inset
18350
18351 ,
18352 \begin_inset space \thinspace{}
18353 \end_inset
18354
18355
18356 \begin_inset Flex Code
18357 status collapsed
18358
18359 \begin_layout Plain Layout
18360 1
18361 \end_layout
18362
18363 \end_inset
18364
18365 ] Whether to use the content of the inset as the label, when the inset is
18366  closed.
18367  Default is false.
18368 \end_layout
18369
18370 \begin_layout Description
18371 \begin_inset Flex Code
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 CopyStyle
18376 \end_layout
18377
18378 \end_inset
18379
18380  [
18381 \begin_inset Flex Code
18382 status collapsed
18383
18384 \begin_layout Plain Layout
18385 <type>
18386 \end_layout
18387
18388 \end_inset
18389
18390 ] As with paragraph styles, see 
18391 \begin_inset CommandInset ref
18392 LatexCommand ref
18393 reference "subsec:Paragraph-Styles"
18394
18395 \end_inset
18396
18397 .
18398  Note that you need to specify the complete type, e.
18399 \begin_inset space \thinspace{}
18400 \end_inset
18401
18402 g.
18403 \begin_inset space ~
18404 \end_inset
18405
18406
18407 \begin_inset Flex Code
18408 status collapsed
18409
18410 \begin_layout Plain Layout
18411 CopyStyle Flex:<name>
18412 \end_layout
18413
18414 \end_inset
18415
18416 .
18417 \end_layout
18418
18419 \begin_layout Description
18420 \begin_inset Flex Code
18421 status collapsed
18422
18423 \begin_layout Plain Layout
18424 CustomPars
18425 \end_layout
18426
18427 \end_inset
18428
18429  [
18430 \begin_inset Flex Code
18431 status collapsed
18432
18433 \begin_layout Plain Layout
18434
18435 \emph on
18436 0
18437 \end_layout
18438
18439 \end_inset
18440
18441 ,
18442 \begin_inset space \thinspace{}
18443 \end_inset
18444
18445
18446 \begin_inset Flex Code
18447 status collapsed
18448
18449 \begin_layout Plain Layout
18450 1
18451 \end_layout
18452
18453 \end_inset
18454
18455 ] Indicates whether the user may employ the Paragraph Settings dialog to
18456  customize the paragraph.
18457 \end_layout
18458
18459 \begin_layout Description
18460 \begin_inset Flex Code
18461 status collapsed
18462
18463 \begin_layout Plain Layout
18464 Decoration
18465 \end_layout
18466
18467 \end_inset
18468
18469  can be 
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 Classic
18475 \end_layout
18476
18477 \end_inset
18478
18479
18480 \begin_inset Flex Code
18481 status collapsed
18482
18483 \begin_layout Plain Layout
18484 Minimalistic
18485 \end_layout
18486
18487 \end_inset
18488
18489 , or 
18490 \begin_inset Flex Code
18491 status collapsed
18492
18493 \begin_layout Plain Layout
18494 Conglomerate
18495 \end_layout
18496
18497 \end_inset
18498
18499 , describing the rendering style used for the inset's frame and buttons.
18500  Footnotes generally use 
18501 \begin_inset Flex Code
18502 status collapsed
18503
18504 \begin_layout Plain Layout
18505 Classic
18506 \end_layout
18507
18508 \end_inset
18509
18510 , ERT insets generally 
18511 \begin_inset Flex Code
18512 status collapsed
18513
18514 \begin_layout Plain Layout
18515 Minimalistic
18516 \end_layout
18517
18518 \end_inset
18519
18520 , and character styles 
18521 \begin_inset Flex Code
18522 status collapsed
18523
18524 \begin_layout Plain Layout
18525 Conglomerate
18526 \end_layout
18527
18528 \end_inset
18529
18530 .
18531 \end_layout
18532
18533 \begin_layout Description
18534 \begin_inset Flex Code
18535 status collapsed
18536
18537 \begin_layout Plain Layout
18538 Display
18539 \end_layout
18540
18541 \end_inset
18542
18543  [
18544 \begin_inset Flex Code
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548 0
18549 \end_layout
18550
18551 \end_inset
18552
18553 ,
18554 \emph on
18555
18556 \begin_inset space \thinspace{}
18557 \end_inset
18558
18559
18560 \emph default
18561
18562 \begin_inset Flex Code
18563 status collapsed
18564
18565 \begin_layout Plain Layout
18566
18567 \emph on
18568 1
18569 \end_layout
18570
18571 \end_inset
18572
18573 ] Only useful if 
18574 \begin_inset Flex Code
18575 status collapsed
18576
18577 \begin_layout Plain Layout
18578 LatexType
18579 \end_layout
18580
18581 \end_inset
18582
18583  is 
18584 \begin_inset Flex Code
18585 status collapsed
18586
18587 \begin_layout Plain Layout
18588 Environment
18589 \end_layout
18590
18591 \end_inset
18592
18593 .
18594  Indicates whether the environment will stand on its own in the output or
18595  will appear inline with the surrounding text.
18596  If set to false, it is supposed that the \SpecialChar LaTeX
18597  environment ignores white space
18598  (including one newline character) after the 
18599 \begin_inset Flex Code
18600 status collapsed
18601
18602 \begin_layout Plain Layout
18603
18604 \backslash
18605 begin{
18606 \emph on
18607 LatexName
18608 \emph default
18609 }
18610 \end_layout
18611
18612 \end_inset
18613
18614  and 
18615 \begin_inset Flex Code
18616 status collapsed
18617
18618 \begin_layout Plain Layout
18619
18620 \backslash
18621 end{
18622 \emph on
18623 LatexName
18624 \emph default
18625 }
18626 \end_layout
18627
18628 \end_inset
18629
18630  tags.
18631  Default is true.
18632 \end_layout
18633
18634 \begin_layout Description
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639 End
18640 \end_layout
18641
18642 \end_inset
18643
18644  Required at the end of the 
18645 \begin_inset Flex Code
18646 status collapsed
18647
18648 \begin_layout Plain Layout
18649 InsetLayout
18650 \end_layout
18651
18652 \end_inset
18653
18654  declarations.
18655 \end_layout
18656
18657 \begin_layout Description
18658 \begin_inset Flex Code
18659 status collapsed
18660
18661 \begin_layout Plain Layout
18662 Font
18663 \end_layout
18664
18665 \end_inset
18666
18667  The font used for both the text body 
18668 \emph on
18669 and
18670 \emph default
18671  the label.
18672  See 
18673 \begin_inset CommandInset ref
18674 LatexCommand ref
18675 reference "subsec:Font-description"
18676
18677 \end_inset
18678
18679 .
18680  Note that defining this font automatically defines the 
18681 \begin_inset Flex Code
18682 status collapsed
18683
18684 \begin_layout Plain Layout
18685 LabelFont
18686 \end_layout
18687
18688 \end_inset
18689
18690  to the same value, so define this first and define 
18691 \begin_inset Flex Code
18692 status collapsed
18693
18694 \begin_layout Plain Layout
18695 LabelFont
18696 \end_layout
18697
18698 \end_inset
18699
18700  later if you want them to be different.
18701 \end_layout
18702
18703 \begin_layout Description
18704 \begin_inset Flex Code
18705 status collapsed
18706
18707 \begin_layout Plain Layout
18708 FixedWidthPreambleEncoding
18709 \end_layout
18710
18711 \end_inset
18712
18713  [
18714 \begin_inset Flex Code
18715 status collapsed
18716
18717 \begin_layout Plain Layout
18718
18719 \emph on
18720 0
18721 \end_layout
18722
18723 \end_inset
18724
18725 ,
18726 \begin_inset space \thinspace{}
18727 \end_inset
18728
18729
18730 \begin_inset Flex Code
18731 status collapsed
18732
18733 \begin_layout Plain Layout
18734 1
18735 \end_layout
18736
18737 \end_inset
18738
18739 ] Force a fixed width encoding for the translated contents of 
18740 \begin_inset Flex Code
18741 status collapsed
18742
18743 \begin_layout Plain Layout
18744 BabelPreamble
18745 \end_layout
18746
18747 \end_inset
18748
18749  and 
18750 \begin_inset Flex Code
18751 status collapsed
18752
18753 \begin_layout Plain Layout
18754 LangPreamble
18755 \end_layout
18756
18757 \end_inset
18758
18759  code generated by this layout.
18760  This is needed for special \SpecialChar LaTeX
18761 -packages like 
18762 \family typewriter
18763 listings
18764 \family default
18765  that do not work with variable width encodings such as 
18766 \family sans
18767 utf8
18768 \family default
18769 .
18770  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18771  backends such as Xe\SpecialChar TeX
18772  or
18773  Lua\SpecialChar TeX
18774  are used.
18775 \end_layout
18776
18777 \begin_layout Description
18778 \begin_inset Flex Code
18779 status collapsed
18780
18781 \begin_layout Plain Layout
18782 ForceLocalFontSwitch
18783 \end_layout
18784
18785 \end_inset
18786
18787  [
18788 \begin_inset Flex Code
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792
18793 \emph on
18794 0
18795 \end_layout
18796
18797 \end_inset
18798
18799 ,
18800 \begin_inset space \thinspace{}
18801 \end_inset
18802
18803
18804 \begin_inset Flex Code
18805 status collapsed
18806
18807 \begin_layout Plain Layout
18808 1
18809 \end_layout
18810
18811 \end_inset
18812
18813 ] When using babel, always use a local font switch (
18814 \begin_inset Flex Code
18815 status collapsed
18816
18817 \begin_layout Plain Layout
18818
18819 \backslash
18820 foreignlanguage
18821 \end_layout
18822
18823 \end_inset
18824
18825 ), never a global one (such as 
18826 \begin_inset Flex Code
18827 status collapsed
18828
18829 \begin_layout Plain Layout
18830
18831 \backslash
18832 selectlanguage
18833 \end_layout
18834
18835 \end_inset
18836
18837 ).
18838 \end_layout
18839
18840 \begin_layout Description
18841 \begin_inset Flex Code
18842 status collapsed
18843
18844 \begin_layout Plain Layout
18845 ForceLTR
18846 \end_layout
18847
18848 \end_inset
18849
18850  [
18851 \begin_inset Flex Code
18852 status collapsed
18853
18854 \begin_layout Plain Layout
18855
18856 \emph on
18857 0
18858 \end_layout
18859
18860 \end_inset
18861
18862 ,
18863 \begin_inset space \thinspace{}
18864 \end_inset
18865
18866
18867 \begin_inset Flex Code
18868 status collapsed
18869
18870 \begin_layout Plain Layout
18871 1
18872 \end_layout
18873
18874 \end_inset
18875
18876 ] Force the 
18877 \begin_inset Quotes eld
18878 \end_inset
18879
18880 latex
18881 \begin_inset Quotes erd
18882 \end_inset
18883
18884  language, leading to Left-to-Right (Latin) output, e.
18885 \begin_inset space \thinspace{}
18886 \end_inset
18887
18888 g.
18889 \begin_inset space \space{}
18890 \end_inset
18891
18892 in \SpecialChar TeX
18893  code or URL.
18894  A kludge.
18895 \end_layout
18896
18897 \begin_layout Description
18898 \begin_inset Flex Code
18899 status collapsed
18900
18901 \begin_layout Plain Layout
18902 ForceOwnlines
18903 \end_layout
18904
18905 \end_inset
18906
18907  [
18908 \begin_inset Flex Code
18909 status collapsed
18910
18911 \begin_layout Plain Layout
18912
18913 \emph on
18914 0
18915 \end_layout
18916
18917 \end_inset
18918
18919 ,
18920 \begin_inset space \thinspace{}
18921 \end_inset
18922
18923
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 1
18929 \end_layout
18930
18931 \end_inset
18932
18933 ] Force a a line break in the \SpecialChar LaTeX
18934  output before the inset starts and after
18935  the inset ends.
18936  This assures the inset itself is output on its own lines, for parsing purposes.
18937 \end_layout
18938
18939 \begin_layout Description
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944 ForcePlain
18945 \end_layout
18946
18947 \end_inset
18948
18949  [
18950 \begin_inset Flex Code
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954
18955 \emph on
18956 0
18957 \end_layout
18958
18959 \end_inset
18960
18961 ,
18962 \begin_inset space \thinspace{}
18963 \end_inset
18964
18965
18966 \begin_inset Flex Code
18967 status collapsed
18968
18969 \begin_layout Plain Layout
18970 1
18971 \end_layout
18972
18973 \end_inset
18974
18975 ] Indicates whether the 
18976 \begin_inset Flex Code
18977 status collapsed
18978
18979 \begin_layout Plain Layout
18980 PlainLayout
18981 \end_layout
18982
18983 \end_inset
18984
18985  should be used or, instead, the user can change the paragraph style used
18986  in the inset.
18987  Default is false.
18988 \end_layout
18989
18990 \begin_layout Description
18991 \begin_inset Flex Code
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 FreeSpacing
18996 \end_layout
18997
18998 \end_inset
18999
19000  [
19001 \begin_inset Flex Code
19002 status collapsed
19003
19004 \begin_layout Plain Layout
19005
19006 \emph on
19007 0
19008 \end_layout
19009
19010 \end_inset
19011
19012 ,
19013 \begin_inset space \thinspace{}
19014 \end_inset
19015
19016
19017 \begin_inset Flex Code
19018 status collapsed
19019
19020 \begin_layout Plain Layout
19021 1
19022 \end_layout
19023
19024 \end_inset
19025
19026 ] As with paragraph styles, see 
19027 \begin_inset CommandInset ref
19028 LatexCommand ref
19029 reference "subsec:Paragraph-Styles"
19030
19031 \end_inset
19032
19033 .
19034 \end_layout
19035
19036 \begin_layout Description
19037 \begin_inset Flex Code
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 HTML*
19042 \end_layout
19043
19044 \end_inset
19045
19046  These tags control the XHTML output.
19047  See 
19048 \begin_inset CommandInset ref
19049 LatexCommand ref
19050 reference "sec:Tags-for-XHTML"
19051
19052 \end_inset
19053
19054 .
19055 \end_layout
19056
19057 \begin_layout Description
19058 \begin_inset Flex Code
19059 status collapsed
19060
19061 \begin_layout Plain Layout
19062 InToc
19063 \end_layout
19064
19065 \end_inset
19066
19067  [
19068 \begin_inset Flex Code
19069 status collapsed
19070
19071 \begin_layout Plain Layout
19072
19073 \emph on
19074 0
19075 \end_layout
19076
19077 \end_inset
19078
19079 ,
19080 \begin_inset space \thinspace{}
19081 \end_inset
19082
19083
19084 \begin_inset Flex Code
19085 status collapsed
19086
19087 \begin_layout Plain Layout
19088 1
19089 \end_layout
19090
19091 \end_inset
19092
19093 ] Whether to include the contents of this inset in the strings generated
19094  for the `Outline' pane for all table of contents, regardless of the AddToToc
19095  setting.
19096  One would not, for example, want the content of a footnote in a section
19097  header to be included in the TOC displayed in the outline, but one would
19098  normally want the content of a character style displayed.
19099  Default is false: not to include.
19100 \end_layout
19101
19102 \begin_layout Description
19103 \begin_inset Flex Code
19104 status collapsed
19105
19106 \begin_layout Plain Layout
19107 IsTocCaption
19108 \end_layout
19109
19110 \end_inset
19111
19112  [
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117
19118 \emph on
19119 0
19120 \end_layout
19121
19122 \end_inset
19123
19124 ,
19125 \begin_inset space \thinspace{}
19126 \end_inset
19127
19128
19129 \begin_inset Flex Code
19130 status collapsed
19131
19132 \begin_layout Plain Layout
19133 1
19134 \end_layout
19135
19136 \end_inset
19137
19138 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19139  of its contents in its item in the table of contents.
19140  Otherwise, only the label appears.
19141 \end_layout
19142
19143 \begin_layout Description
19144 \begin_inset Flex Code
19145 status collapsed
19146
19147 \begin_layout Plain Layout
19148 KeepEmpty
19149 \end_layout
19150
19151 \end_inset
19152
19153  [
19154 \emph on
19155
19156 \begin_inset Flex Code
19157 status collapsed
19158
19159 \begin_layout Plain Layout
19160 0
19161 \end_layout
19162
19163 \end_inset
19164
19165
19166 \emph default
19167 ,
19168 \begin_inset space \thinspace{}
19169 \end_inset
19170
19171
19172 \begin_inset Flex Code
19173 status collapsed
19174
19175 \begin_layout Plain Layout
19176 1
19177 \end_layout
19178
19179 \end_inset
19180
19181 ] As with paragraph styles, see 
19182 \begin_inset CommandInset ref
19183 LatexCommand ref
19184 reference "subsec:Paragraph-Styles"
19185
19186 \end_inset
19187
19188 .
19189 \end_layout
19190
19191 \begin_layout Description
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 LabelFont
19197 \end_layout
19198
19199 \end_inset
19200
19201  The font used for the label.
19202  See 
19203 \begin_inset CommandInset ref
19204 LatexCommand ref
19205 reference "subsec:Font-description"
19206
19207 \end_inset
19208
19209 .
19210  Note that this definition can never appear before 
19211 \begin_inset Flex Code
19212 status collapsed
19213
19214 \begin_layout Plain Layout
19215 Font
19216 \end_layout
19217
19218 \end_inset
19219
19220 , lest it be ineffective.
19221 \end_layout
19222
19223 \begin_layout Description
19224 \begin_inset Flex Code
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228 LabelString
19229 \end_layout
19230
19231 \end_inset
19232
19233  [
19234 \begin_inset Flex Code
19235 status collapsed
19236
19237 \begin_layout Plain Layout
19238 string
19239 \end_layout
19240
19241 \end_inset
19242
19243 =
19244 \begin_inset Quotes erd
19245 \end_inset
19246
19247
19248 \begin_inset Quotes erd
19249 \end_inset
19250
19251 ] What will be displayed on the button or elsewhere as the inset label.
19252  Some inset types (
19253 \begin_inset Flex Code
19254 status collapsed
19255
19256 \begin_layout Plain Layout
19257 \SpecialChar TeX
19258  code
19259 \end_layout
19260
19261 \end_inset
19262
19263  and 
19264 \begin_inset Flex Code
19265 status collapsed
19266
19267 \begin_layout Plain Layout
19268 Branch
19269 \end_layout
19270
19271 \end_inset
19272
19273 ) modify this label on the fly.
19274 \end_layout
19275
19276 \begin_layout Description
19277 \begin_inset Flex Code
19278 status collapsed
19279
19280 \begin_layout Plain Layout
19281 LangPreamble
19282 \end_layout
19283
19284 \end_inset
19285
19286  Language dependent preamble; see 
19287 \begin_inset CommandInset ref
19288 LatexCommand ref
19289 reference "subsec:I18n"
19290
19291 \end_inset
19292
19293 .
19294 \end_layout
19295
19296 \begin_layout Description
19297 \begin_inset Flex Code
19298 status collapsed
19299
19300 \begin_layout Plain Layout
19301 LatexName
19302 \end_layout
19303
19304 \end_inset
19305
19306  [
19307 \begin_inset Flex Code
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311 <name>
19312 \end_layout
19313
19314 \end_inset
19315
19316 ] The name of the corresponding \SpecialChar LaTeX
19317  stuff.
19318  Either the environment or command name.
19319 \end_layout
19320
19321 \begin_layout Description
19322 \begin_inset Flex Code
19323 status collapsed
19324
19325 \begin_layout Plain Layout
19326 LatexParam
19327 \end_layout
19328
19329 \end_inset
19330
19331  [
19332 \begin_inset Flex Code
19333 status collapsed
19334
19335 \begin_layout Plain Layout
19336 <parameter>
19337 \end_layout
19338
19339 \end_inset
19340
19341 ] The optional parameter for the corresponding 
19342 \begin_inset Flex Code
19343 status collapsed
19344
19345 \begin_layout Plain Layout
19346 LatexName
19347 \end_layout
19348
19349 \end_inset
19350
19351  stuff, including possible bracket pairs like 
19352 \begin_inset Flex Code
19353 status collapsed
19354
19355 \begin_layout Plain Layout
19356 []
19357 \end_layout
19358
19359 \end_inset
19360
19361 .
19362  This parameter cannot be changed from within \SpecialChar LyX
19363  (use 
19364 \begin_inset Flex Code
19365 status collapsed
19366
19367 \begin_layout Plain Layout
19368 Argument
19369 \end_layout
19370
19371 \end_inset
19372
19373  for customizable parameters).
19374  It will be output as is after all \SpecialChar LaTeX
19375  
19376 \begin_inset Flex Code
19377 status collapsed
19378
19379 \begin_layout Plain Layout
19380 Argument
19381 \end_layout
19382
19383 \end_inset
19384
19385 s.
19386 \end_layout
19387
19388 \begin_layout Description
19389 \begin_inset Flex Code
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393 LatexType
19394 \end_layout
19395
19396 \end_inset
19397
19398  [
19399 \begin_inset Flex Code
19400 status collapsed
19401
19402 \begin_layout Plain Layout
19403 Command, Environment, None
19404 \end_layout
19405
19406 \end_inset
19407
19408 ] How the style should be translated into \SpecialChar LaTeX
19409 .
19410 \begin_inset Foot
19411 status collapsed
19412
19413 \begin_layout Plain Layout
19414 \begin_inset Flex Code
19415 status collapsed
19416
19417 \begin_layout Plain Layout
19418 LatexType
19419 \end_layout
19420
19421 \end_inset
19422
19423  is perhaps a bit misleading, since these rules apply to SGML classes too.
19424  Visit the SGML class files for specific examples.
19425 \end_layout
19426
19427 \end_inset
19428
19429
19430 \end_layout
19431
19432 \begin_deeper
19433 \begin_layout Description
19434 \begin_inset Flex Code
19435 status collapsed
19436
19437 \begin_layout Plain Layout
19438 None
19439 \end_layout
19440
19441 \end_inset
19442
19443  means nothing special
19444 \end_layout
19445
19446 \begin_layout Description
19447 \begin_inset Flex Code
19448 status collapsed
19449
19450 \begin_layout Plain Layout
19451 Command
19452 \end_layout
19453
19454 \end_inset
19455
19456  means 
19457 \begin_inset Flex Code
19458 status collapsed
19459
19460 \begin_layout Plain Layout
19461
19462 \backslash
19463
19464 \emph on
19465 LatexName
19466 \emph default
19467 {\SpecialChar ldots
19468 }
19469 \end_layout
19470
19471 \end_inset
19472
19473
19474 \end_layout
19475
19476 \begin_layout Description
19477 \begin_inset Flex Code
19478 status collapsed
19479
19480 \begin_layout Plain Layout
19481 Environment
19482 \end_layout
19483
19484 \end_inset
19485
19486  means 
19487 \begin_inset Flex Code
19488 status collapsed
19489
19490 \begin_layout Plain Layout
19491
19492 \backslash
19493 begin{
19494 \emph on
19495 LatexName
19496 \emph default
19497 }\SpecialChar ldots
19498
19499 \backslash
19500 end{
19501 \emph on
19502 LatexName
19503 \emph default
19504 }
19505 \end_layout
19506
19507 \end_inset
19508
19509
19510 \end_layout
19511
19512 \begin_layout Standard
19513 Putting the last few things together, the \SpecialChar LaTeX
19514  output will be either: 
19515 \end_layout
19516
19517 \begin_layout LyX-Code
19518
19519 \backslash
19520 LatexName[LatexParam]{\SpecialChar ldots
19521 }
19522 \end_layout
19523
19524 \begin_layout Standard
19525 or: 
19526 \end_layout
19527
19528 \begin_layout LyX-Code
19529
19530 \backslash
19531 begin{LatexName}[LatexParam] \SpecialChar ldots
19532  
19533 \backslash
19534 end{LatexName}
19535 \end_layout
19536
19537 \begin_layout Standard
19538 depending upon the \SpecialChar LaTeX
19539  type.
19540 \end_layout
19541
19542 \end_deeper
19543 \begin_layout Description
19544 \begin_inset Flex Code
19545 status collapsed
19546
19547 \begin_layout Plain Layout
19548 LeftDelim
19549 \end_layout
19550
19551 \end_inset
19552
19553  [
19554 \begin_inset Flex Code
19555 status collapsed
19556
19557 \begin_layout Plain Layout
19558 string
19559 \end_layout
19560
19561 \end_inset
19562
19563 ] A string that is put at the beginning of the layout content.
19564  A line break in the output can be indicated by 
19565 \begin_inset Flex Code
19566 status collapsed
19567
19568 \begin_layout Plain Layout
19569 <br/>
19570 \end_layout
19571
19572 \end_inset
19573
19574 .
19575 \end_layout
19576
19577 \begin_layout Description
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 LyxType
19583 \end_layout
19584
19585 \end_inset
19586
19587  Can be 
19588 \begin_inset Flex Code
19589 status collapsed
19590
19591 \begin_layout Plain Layout
19592 charstyle
19593 \end_layout
19594
19595 \end_inset
19596
19597
19598 \begin_inset Flex Code
19599 status collapsed
19600
19601 \begin_layout Plain Layout
19602 custom
19603 \end_layout
19604
19605 \end_inset
19606
19607
19608 \begin_inset Flex Code
19609 status collapsed
19610
19611 \begin_layout Plain Layout
19612 element
19613 \end_layout
19614
19615 \end_inset
19616
19617  or 
19618 \begin_inset Flex Code
19619 status collapsed
19620
19621 \begin_layout Plain Layout
19622 end
19623 \end_layout
19624
19625 \end_inset
19626
19627  (indicating a dummy definition ending definitions of charstyles, etc).
19628  This entry is required in and is only meaningful for Flex insets.
19629  Among other things, it determines on which menu this inset will appear.
19630  Setting 
19631 \begin_inset Flex Code
19632 status collapsed
19633
19634 \begin_layout Plain Layout
19635 LyxType
19636 \end_layout
19637
19638 \end_inset
19639
19640  to 
19641 \begin_inset Flex Code
19642 status collapsed
19643
19644 \begin_layout Plain Layout
19645 charstyle
19646 \end_layout
19647
19648 \end_inset
19649
19650  will automatically set 
19651 \begin_inset Flex Code
19652 status collapsed
19653
19654 \begin_layout Plain Layout
19655 MultiPar
19656 \end_layout
19657
19658 \end_inset
19659
19660  to false and 
19661 \begin_inset Flex Code
19662 status collapsed
19663
19664 \begin_layout Plain Layout
19665 ForcePlain
19666 \end_layout
19667
19668 \end_inset
19669
19670  to true.
19671  
19672 \begin_inset Flex Code
19673 status collapsed
19674
19675 \begin_layout Plain Layout
19676 MultiPar
19677 \end_layout
19678
19679 \end_inset
19680
19681  can be set to true, or 
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686 ForcePlain
19687 \end_layout
19688
19689 \end_inset
19690
19691  to false, for 
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 charstyle
19697 \end_layout
19698
19699 \end_inset
19700
19701  insets by setting it 
19702 \emph on
19703 after
19704 \emph default
19705  you set the 
19706 \begin_inset Flex Code
19707 status collapsed
19708
19709 \begin_layout Plain Layout
19710 LyxType
19711 \end_layout
19712
19713 \end_inset
19714
19715 .
19716 \end_layout
19717
19718 \begin_layout Description
19719 \begin_inset Flex Code
19720 status collapsed
19721
19722 \begin_layout Plain Layout
19723 MultiPar
19724 \end_layout
19725
19726 \end_inset
19727
19728  [
19729 \begin_inset Flex Code
19730 status collapsed
19731
19732 \begin_layout Plain Layout
19733
19734 \emph on
19735 0
19736 \end_layout
19737
19738 \end_inset
19739
19740 ,
19741 \begin_inset space \thinspace{}
19742 \end_inset
19743
19744
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 1
19750 \end_layout
19751
19752 \end_inset
19753
19754 ] Whether multiple paragraphs are permitted in this inset.
19755  This will also set 
19756 \begin_inset Flex Code
19757 status collapsed
19758
19759 \begin_layout Plain Layout
19760 CustomPars
19761 \end_layout
19762
19763 \end_inset
19764
19765  to the same value and 
19766 \begin_inset Flex Code
19767 status collapsed
19768
19769 \begin_layout Plain Layout
19770 ForcePlain
19771 \end_layout
19772
19773 \end_inset
19774
19775  to the opposite value.
19776  These can be reset to other values, if they are used 
19777 \emph on
19778 after
19779 \emph default
19780  
19781 \begin_inset Flex Code
19782 status collapsed
19783
19784 \begin_layout Plain Layout
19785 MultiPar
19786 \end_layout
19787
19788 \end_inset
19789
19790 .
19791  Default is true.
19792 \end_layout
19793
19794 \begin_layout Description
19795 \begin_inset Flex Code
19796 status collapsed
19797
19798 \begin_layout Plain Layout
19799 NeedProtect
19800 \end_layout
19801
19802 \end_inset
19803
19804  [
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809
19810 \emph on
19811 0
19812 \end_layout
19813
19814 \end_inset
19815
19816 ,
19817 \begin_inset space \thinspace{}
19818 \end_inset
19819
19820
19821 \begin_inset Flex Code
19822 status collapsed
19823
19824 \begin_layout Plain Layout
19825 1
19826 \end_layout
19827
19828 \end_inset
19829
19830 ] Whether fragile commands in this inset should be 
19831 \begin_inset Flex Code
19832 status collapsed
19833
19834 \begin_layout Plain Layout
19835
19836 \backslash
19837 protect
19838 \end_layout
19839
19840 \end_inset
19841
19842 'ed.
19843  (Note: This is 
19844 \emph on
19845 not
19846 \emph default
19847  whether the command should itself be protected.) Default is false.
19848 \change_inserted -712698321 1523633958
19849
19850 \end_layout
19851
19852 \begin_layout Description
19853
19854 \change_inserted -712698321 1523634088
19855 \begin_inset Flex Code
19856 status collapsed
19857
19858 \begin_layout Plain Layout
19859
19860 \change_inserted -712698321 1523633961
19861 NeedCProtect
19862 \end_layout
19863
19864 \end_inset
19865
19866  [
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871
19872 \change_inserted -712698321 1523633958
19873
19874 \emph on
19875 0
19876 \end_layout
19877
19878 \end_inset
19879
19880 ,
19881 \begin_inset space \thinspace{}
19882 \end_inset
19883
19884
19885 \begin_inset Flex Code
19886 status collapsed
19887
19888 \begin_layout Plain Layout
19889
19890 \change_inserted -712698321 1523633958
19891 1
19892 \end_layout
19893
19894 \end_inset
19895
19896 ] This causes macros that contain this inset to be protected with 
19897 \begin_inset Flex Code
19898 status collapsed
19899
19900 \begin_layout Plain Layout
19901
19902 \change_inserted -712698321 1523634038
19903
19904 \backslash
19905 cprotect
19906 \change_unchanged
19907
19908 \end_layout
19909
19910 \end_inset
19911
19912  (cf.
19913  package 
19914 \family sans
19915 cprotect
19916 \family default
19917 ) if necessary and thus allows (some) verbatim stuff in macros.
19918  Default is false.
19919 \change_unchanged
19920
19921 \end_layout
19922
19923 \begin_layout Description
19924 \begin_inset Flex Code
19925 status collapsed
19926
19927 \begin_layout Plain Layout
19928 NoInsetLayout
19929 \end_layout
19930
19931 \end_inset
19932
19933  [
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 <layout>
19939 \end_layout
19940
19941 \end_inset
19942
19943 ] Deletes an existing 
19944 \begin_inset Flex Code
19945 status collapsed
19946
19947 \begin_layout Plain Layout
19948 InsetLayout
19949 \end_layout
19950
19951 \end_inset
19952
19953 .
19954 \end_layout
19955
19956 \begin_layout Description
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 ObsoletedBy
19962 \end_layout
19963
19964 \end_inset
19965
19966  [
19967 \begin_inset Flex Code
19968 status collapsed
19969
19970 \begin_layout Plain Layout
19971 <layout>
19972 \end_layout
19973
19974 \end_inset
19975
19976 ] Name of an 
19977 \begin_inset Flex Code
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 InsetLayout
19982 \end_layout
19983
19984 \end_inset
19985
19986  that has replaced this 
19987 \begin_inset Flex Code
19988 status collapsed
19989
19990 \begin_layout Plain Layout
19991 InsetLayout
19992 \end_layout
19993
19994 \end_inset
19995
19996 .
19997  This is used to rename an 
19998 \begin_inset Flex Code
19999 status collapsed
20000
20001 \begin_layout Plain Layout
20002 InsetLayout
20003 \end_layout
20004
20005 \end_inset
20006
20007 , while keeping backward compatibility.
20008 \end_layout
20009
20010 \begin_layout Description
20011 \begin_inset Flex Code
20012 status collapsed
20013
20014 \begin_layout Plain Layout
20015 ParbreakIsNewline
20016 \end_layout
20017
20018 \end_inset
20019
20020  [
20021 \begin_inset Flex Code
20022 status collapsed
20023
20024 \begin_layout Plain Layout
20025
20026 \emph on
20027 0
20028 \end_layout
20029
20030 \end_inset
20031
20032 ,
20033 \begin_inset space \thinspace{}
20034 \end_inset
20035
20036
20037 \begin_inset Flex Code
20038 status collapsed
20039
20040 \begin_layout Plain Layout
20041 1
20042 \end_layout
20043
20044 \end_inset
20045
20046 ] As with paragraph styles, see 
20047 \begin_inset CommandInset ref
20048 LatexCommand ref
20049 reference "subsec:Paragraph-Styles"
20050
20051 \end_inset
20052
20053 .
20054  Default is false.
20055 \end_layout
20056
20057 \begin_layout Description
20058 \begin_inset Flex Code
20059 status collapsed
20060
20061 \begin_layout Plain Layout
20062 PassThru
20063 \end_layout
20064
20065 \end_inset
20066
20067  [
20068 \begin_inset Flex Code
20069 status collapsed
20070
20071 \begin_layout Plain Layout
20072
20073 \emph on
20074 0
20075 \end_layout
20076
20077 \end_inset
20078
20079 ,
20080 \begin_inset space \thinspace{}
20081 \end_inset
20082
20083
20084 \begin_inset Flex Code
20085 status collapsed
20086
20087 \begin_layout Plain Layout
20088 1
20089 \end_layout
20090
20091 \end_inset
20092
20093 ] As with paragraph styles, see 
20094 \begin_inset CommandInset ref
20095 LatexCommand ref
20096 reference "subsec:Paragraph-Styles"
20097
20098 \end_inset
20099
20100 .
20101  Default is false.
20102 \end_layout
20103
20104 \begin_layout Description
20105 \begin_inset Flex Code
20106 status collapsed
20107
20108 \begin_layout Plain Layout
20109 Preamble
20110 \end_layout
20111
20112 \end_inset
20113
20114  As with paragraph styles, see 
20115 \begin_inset CommandInset ref
20116 LatexCommand ref
20117 reference "subsec:Paragraph-Styles"
20118
20119 \end_inset
20120
20121 .
20122 \end_layout
20123
20124 \begin_layout Description
20125 \begin_inset Flex Code
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129 RefPrefix
20130 \end_layout
20131
20132 \end_inset
20133
20134  [
20135 \begin_inset Flex Code
20136 status collapsed
20137
20138 \begin_layout Plain Layout
20139 string
20140 \end_layout
20141
20142 \end_inset
20143
20144 ] The prefix to use when creating labels referring to insets of this type.
20145  This allows the use of formatted references.
20146 \end_layout
20147
20148 \begin_layout Description
20149 \begin_inset Flex Code
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 Requires
20154 \end_layout
20155
20156 \end_inset
20157
20158  [
20159 \begin_inset Flex Code
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163 string
20164 \end_layout
20165
20166 \end_inset
20167
20168 ] As with paragraph styles, see 
20169 \begin_inset CommandInset ref
20170 LatexCommand ref
20171 reference "subsec:Paragraph-Styles"
20172
20173 \end_inset
20174
20175 .
20176 \end_layout
20177
20178 \begin_layout Description
20179 \begin_inset Flex Code
20180 status collapsed
20181
20182 \begin_layout Plain Layout
20183 ResetArgs
20184 \end_layout
20185
20186 \end_inset
20187
20188  [
20189 \begin_inset Flex Code
20190 status collapsed
20191
20192 \begin_layout Plain Layout
20193
20194 \emph on
20195 0
20196 \end_layout
20197
20198 \end_inset
20199
20200 ,
20201 \begin_inset space \thinspace{}
20202 \end_inset
20203
20204
20205 \begin_inset Flex Code
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209 1
20210 \end_layout
20211
20212 \end_inset
20213
20214 ] Resets the \SpecialChar LaTeX
20215  arguments of this layout (as defined via the 
20216 \begin_inset Flex Code
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220 Argument
20221 \end_layout
20222
20223 \end_inset
20224
20225  tag).
20226  This is useful if you have copied a style via 
20227 \begin_inset Flex Code
20228 status collapsed
20229
20230 \begin_layout Plain Layout
20231 CopyStyle
20232 \end_layout
20233
20234 \end_inset
20235
20236 , but you do not want to inherit its (required and optional) arguments.
20237 \end_layout
20238
20239 \begin_layout Description
20240 \begin_inset Flex Code
20241 status collapsed
20242
20243 \begin_layout Plain Layout
20244 ResetsFont
20245 \end_layout
20246
20247 \end_inset
20248
20249  [
20250 \begin_inset Flex Code
20251 status collapsed
20252
20253 \begin_layout Plain Layout
20254 0
20255 \end_layout
20256
20257 \end_inset
20258
20259 ,
20260 \begin_inset space \thinspace{}
20261 \end_inset
20262
20263
20264 \begin_inset Flex Code
20265 status collapsed
20266
20267 \begin_layout Plain Layout
20268
20269 \emph on
20270 1
20271 \end_layout
20272
20273 \end_inset
20274
20275 ] Whether this inset should use the font of its surrounding environment
20276  or uses its own.
20277  Default is false: use the font of the surrounding environment.
20278 \end_layout
20279
20280 \begin_layout Description
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 RightDelim
20286 \end_layout
20287
20288 \end_inset
20289
20290  [
20291 \begin_inset Flex Code
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295 string
20296 \end_layout
20297
20298 \end_inset
20299
20300 ] A string that is put at the end of the layout content.
20301  A line break in the output can be indicated by 
20302 \begin_inset Flex Code
20303 status collapsed
20304
20305 \begin_layout Plain Layout
20306 <br/>
20307 \end_layout
20308
20309 \end_inset
20310
20311 .
20312 \end_layout
20313
20314 \begin_layout Description
20315 \begin_inset Flex Code
20316 status collapsed
20317
20318 \begin_layout Plain Layout
20319 Spellcheck
20320 \end_layout
20321
20322 \end_inset
20323
20324  [
20325 \begin_inset Flex Code
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329 0
20330 \end_layout
20331
20332 \end_inset
20333
20334 ,
20335 \begin_inset space \thinspace{}
20336 \end_inset
20337
20338
20339 \begin_inset Flex Code
20340 status collapsed
20341
20342 \begin_layout Plain Layout
20343
20344 \emph on
20345 1
20346 \end_layout
20347
20348 \end_inset
20349
20350 ] Allow spell-checking the contents of this inset.
20351  Default is true.
20352 \end_layout
20353
20354 \begin_layout Subsection
20355 Counters
20356 \begin_inset CommandInset label
20357 LatexCommand label
20358 name "subsec:Counters"
20359
20360 \end_inset
20361
20362
20363 \end_layout
20364
20365 \begin_layout Standard
20366 It is necessary to define the counters (
20367 \begin_inset Flex Noun
20368 status collapsed
20369
20370 \begin_layout Plain Layout
20371 chapter
20372 \end_layout
20373
20374 \end_inset
20375
20376
20377 \begin_inset Flex Noun
20378 status collapsed
20379
20380 \begin_layout Plain Layout
20381 figure
20382 \end_layout
20383
20384 \end_inset
20385
20386 , \SpecialChar ldots
20387 ) in the text class itself.
20388  The standard counters are defined in the file 
20389 \begin_inset Flex Code
20390 status collapsed
20391
20392 \begin_layout Plain Layout
20393 stdcounters.inc
20394 \end_layout
20395
20396 \end_inset
20397
20398 , so you may have to do no more than add
20399 \end_layout
20400
20401 \begin_layout LyX-Code
20402 Input stdcounters.inc
20403 \end_layout
20404
20405 \begin_layout Standard
20406 to your layout file to get them to work.
20407  But if you want to define custom counters, then you can do so.
20408  The counter declaration must begin with:
20409 \end_layout
20410
20411 \begin_layout LyX-Code
20412 Counter CounterName
20413 \end_layout
20414
20415 \begin_layout Standard
20416 where of course `
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421 CounterName
20422 \end_layout
20423
20424 \end_inset
20425
20426 ' is replaced by the name of the counter.
20427  And it must end with 
20428 \begin_inset Quotes eld
20429 \end_inset
20430
20431
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436 End
20437 \end_layout
20438
20439 \end_inset
20440
20441
20442 \begin_inset Quotes erd
20443 \end_inset
20444
20445 .
20446  The following parameters can also be used:
20447 \end_layout
20448
20449 \begin_layout Description
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 InitialValue
20455 \end_layout
20456
20457 \end_inset
20458
20459  [
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 int=1
20465 \end_layout
20466
20467 \end_inset
20468
20469 ] Sets the initial value for the counter, to which it will be reset whenever
20470  that happens.
20471  Normally, one will want the default, 1.
20472 \end_layout
20473
20474 \begin_layout Description
20475 \begin_inset Flex Code
20476 status collapsed
20477
20478 \begin_layout Plain Layout
20479 LabelString
20480 \end_layout
20481
20482 \end_inset
20483
20484  [
20485 \begin_inset Flex Code
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 string
20490 \end_layout
20491
20492 \end_inset
20493
20494 =
20495 \begin_inset Quotes erd
20496 \end_inset
20497
20498
20499 \begin_inset Quotes erd
20500 \end_inset
20501
20502 ] When defined, this string defines how the counter is displayed.
20503  Setting this value sets 
20504 \begin_inset Flex Code
20505 status collapsed
20506
20507 \begin_layout Plain Layout
20508 LabelStringAppendix
20509 \end_layout
20510
20511 \end_inset
20512
20513  to the same value.
20514  The following special constructs can be used in the string:
20515 \end_layout
20516
20517 \begin_deeper
20518 \begin_layout Itemize
20519 \begin_inset Flex Code
20520 status collapsed
20521
20522 \begin_layout Plain Layout
20523
20524 \backslash
20525 thecounter
20526 \end_layout
20527
20528 \end_inset
20529
20530  will be replaced by the expansion of the 
20531 \begin_inset Flex Code
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535 LabelString
20536 \end_layout
20537
20538 \end_inset
20539
20540  (or 
20541 \begin_inset Flex Code
20542 status collapsed
20543
20544 \begin_layout Plain Layout
20545 LabelStringAppendix
20546 \end_layout
20547
20548 \end_inset
20549
20550 ) of the counter 
20551 \begin_inset Flex Code
20552 status collapsed
20553
20554 \begin_layout Plain Layout
20555 counter
20556 \end_layout
20557
20558 \end_inset
20559
20560 .
20561  
20562 \end_layout
20563
20564 \begin_layout Itemize
20565 counter values can be expressed using \SpecialChar LaTeX
20566 -like macros
20567 \begin_inset Newline newline
20568 \end_inset
20569
20570
20571 \begin_inset Flex Code
20572 status collapsed
20573
20574 \begin_layout Plain Layout
20575
20576 \backslash
20577
20578 \emph on
20579 numbertype
20580 \emph default
20581 {
20582 \emph on
20583 counter
20584 \emph default
20585 }
20586 \end_layout
20587
20588 \end_inset
20589
20590 , where 
20591 \begin_inset Flex Code
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595
20596 \emph on
20597 numbertype
20598 \end_layout
20599
20600 \end_inset
20601
20602  can be:
20603 \begin_inset Foot
20604 status collapsed
20605
20606 \begin_layout Plain Layout
20607
20608 \family roman
20609 \series medium
20610 \shape up
20611 \size normal
20612 \emph off
20613 \bar no
20614 \noun off
20615 \color none
20616 Actually, the situation is a bit more complicated: any
20617 \family default
20618 \series default
20619 \shape default
20620 \emph default
20621 \bar default
20622  
20623 \size default
20624 \emph on
20625 \noun default
20626 \color inherit
20627 numbertype
20628 \family roman
20629 \series medium
20630 \shape up
20631 \size normal
20632 \emph off
20633 \bar no
20634 \noun off
20635  other than those described below will produce arabic numerals.
20636  It would not be surprising to see this change in the future.
20637 \end_layout
20638
20639 \end_inset
20640
20641  
20642 \begin_inset Flex Code
20643 status collapsed
20644
20645 \begin_layout Plain Layout
20646 arabic
20647 \end_layout
20648
20649 \end_inset
20650
20651 : 1, 2, 3,\SpecialChar ldots
20652
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 alph
20658 \end_layout
20659
20660 \end_inset
20661
20662  for lower-case letters: a, b, c, \SpecialChar ldots
20663
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668 Alph
20669 \end_layout
20670
20671 \end_inset
20672
20673  for upper-case letters: A, B, C, \SpecialChar ldots
20674
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 roman
20680 \end_layout
20681
20682 \end_inset
20683
20684  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20685
20686 \begin_inset Flex Code
20687 status collapsed
20688
20689 \begin_layout Plain Layout
20690 Roman
20691 \end_layout
20692
20693 \end_inset
20694
20695  for upper-case roman numerals: I, II, III\SpecialChar ldots
20696
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 hebrew
20702 \end_layout
20703
20704 \end_inset
20705
20706  for hebrew numerals.
20707 \end_layout
20708
20709 \end_deeper
20710 \begin_layout Standard
20711 If LabelString is not defined, a default value is constructed as follows:
20712  if the counter has a master counter 
20713 \begin_inset Flex Code
20714 status collapsed
20715
20716 \begin_layout Plain Layout
20717 master
20718 \end_layout
20719
20720 \end_inset
20721
20722  (defined via 
20723 \begin_inset Flex Code
20724 status collapsed
20725
20726 \begin_layout Plain Layout
20727 Within
20728 \end_layout
20729
20730 \end_inset
20731
20732 ), the string
20733 \begin_inset Newline newline
20734 \end_inset
20735
20736
20737 \begin_inset Flex Code
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741
20742 \backslash
20743 themaster.
20744 \backslash
20745 arabic{counter}
20746 \end_layout
20747
20748 \end_inset
20749
20750  is used; otherwise the string 
20751 \begin_inset Flex Code
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755
20756 \backslash
20757 arabic{counter}
20758 \end_layout
20759
20760 \end_inset
20761
20762  is used.
20763 \end_layout
20764
20765 \begin_layout Description
20766 \begin_inset Flex Code
20767 status collapsed
20768
20769 \begin_layout Plain Layout
20770 LabelStringAppendix
20771 \end_layout
20772
20773 \end_inset
20774
20775  [
20776 \begin_inset Flex Code
20777 status collapsed
20778
20779 \begin_layout Plain Layout
20780 string
20781 \end_layout
20782
20783 \end_inset
20784
20785 =
20786 \begin_inset Quotes erd
20787 \end_inset
20788
20789
20790 \begin_inset Quotes erd
20791 \end_inset
20792
20793 ] Same as 
20794 \begin_inset Flex Code
20795 status collapsed
20796
20797 \begin_layout Plain Layout
20798 LabelString
20799 \end_layout
20800
20801 \end_inset
20802
20803 , but for use in the Appendix.
20804 \end_layout
20805
20806 \begin_layout Description
20807 \begin_inset Flex Code
20808 status collapsed
20809
20810 \begin_layout Plain Layout
20811 PrettyFormat
20812 \end_layout
20813
20814 \end_inset
20815
20816  [
20817 \begin_inset Flex Code
20818 status collapsed
20819
20820 \begin_layout Plain Layout
20821 string
20822 \end_layout
20823
20824 \end_inset
20825
20826 =
20827 \begin_inset Quotes erd
20828 \end_inset
20829
20830
20831 \begin_inset Quotes erd
20832 \end_inset
20833
20834 ] A format for use with formatted references to this counter.
20835  For example, one might want to have references to section numbers appear
20836  as 
20837 \begin_inset Quotes eld
20838 \end_inset
20839
20840 Section 2.4
20841 \begin_inset Quotes erd
20842 \end_inset
20843
20844 .
20845  The string should contain 
20846 \begin_inset Quotes eld
20847 \end_inset
20848
20849 ##
20850 \begin_inset Quotes erd
20851 \end_inset
20852
20853 .
20854  This will be replaced by the counter number itself.
20855  So, for sections, it would be: Section ##.
20856 \end_layout
20857
20858 \begin_layout Description
20859 \begin_inset Flex Code
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863 Within
20864 \end_layout
20865
20866 \end_inset
20867
20868  [
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 string
20874 \end_layout
20875
20876 \end_inset
20877
20878 =
20879 \begin_inset Quotes erd
20880 \end_inset
20881
20882
20883 \begin_inset Quotes erd
20884 \end_inset
20885
20886 ] If this is set to the name of another counter, the present counter will
20887  be reset every time the other one is increased.
20888  For example, 
20889 \begin_inset Flex Code
20890 status collapsed
20891
20892 \begin_layout Plain Layout
20893 subsection
20894 \end_layout
20895
20896 \end_inset
20897
20898  is numbered inside 
20899 \begin_inset Flex Code
20900 status collapsed
20901
20902 \begin_layout Plain Layout
20903 section
20904 \end_layout
20905
20906 \end_inset
20907
20908 .
20909 \end_layout
20910
20911 \begin_layout Subsection
20912 Font description
20913 \begin_inset CommandInset label
20914 LatexCommand label
20915 name "subsec:Font-description"
20916
20917 \end_inset
20918
20919
20920 \end_layout
20921
20922 \begin_layout Standard
20923 A font description looks like this:
20924 \end_layout
20925
20926 \begin_layout LyX-Code
20927 Font 
20928 \family roman
20929 \emph on
20930 or
20931 \family default
20932 \emph default
20933  LabelFont
20934 \emph on
20935  
20936 \family roman
20937 or
20938 \family default
20939 \emph default
20940  DefaultFont
20941 \end_layout
20942
20943 \begin_layout LyX-Code
20944  ...
20945 \end_layout
20946
20947 \begin_layout LyX-Code
20948 EndFont
20949 \end_layout
20950
20951 \begin_layout Standard
20952 The following commands are available:
20953 \end_layout
20954
20955 \begin_layout Description
20956 \begin_inset Flex Code
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960 Color
20961 \end_layout
20962
20963 \end_inset
20964
20965  [
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970
20971 \emph on
20972 none
20973 \end_layout
20974
20975 \end_inset
20976
20977
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 black
20983 \end_layout
20984
20985 \end_inset
20986
20987
20988 \begin_inset Flex Code
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992 white
20993 \end_layout
20994
20995 \end_inset
20996
20997
20998 \begin_inset Flex Code
20999 status collapsed
21000
21001 \begin_layout Plain Layout
21002 red
21003 \end_layout
21004
21005 \end_inset
21006
21007
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012 green
21013 \end_layout
21014
21015 \end_inset
21016
21017
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 blue
21023 \end_layout
21024
21025 \end_inset
21026
21027
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 cyan
21033 \end_layout
21034
21035 \end_inset
21036
21037
21038 \begin_inset Flex Code
21039 status collapsed
21040
21041 \begin_layout Plain Layout
21042 magenta
21043 \end_layout
21044
21045 \end_inset
21046
21047
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 yellow
21053 \end_layout
21054
21055 \end_inset
21056
21057
21058 \begin_inset Flex Code
21059 status collapsed
21060
21061 \begin_layout Plain Layout
21062 brown
21063 \end_layout
21064
21065 \end_inset
21066
21067
21068 \begin_inset Flex Code
21069 status collapsed
21070
21071 \begin_layout Plain Layout
21072 darkgray
21073 \end_layout
21074
21075 \end_inset
21076
21077
21078 \begin_inset Flex Code
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082 gray
21083 \end_layout
21084
21085 \end_inset
21086
21087
21088 \begin_inset Flex Code
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092 lightgray
21093 \end_layout
21094
21095 \end_inset
21096
21097
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102 lime
21103 \end_layout
21104
21105 \end_inset
21106
21107
21108 \begin_inset Flex Code
21109 status collapsed
21110
21111 \begin_layout Plain Layout
21112 orange
21113 \end_layout
21114
21115 \end_inset
21116
21117
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 olive
21123 \end_layout
21124
21125 \end_inset
21126
21127
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 pink
21133 \end_layout
21134
21135 \end_inset
21136
21137
21138 \begin_inset Flex Code
21139 status collapsed
21140
21141 \begin_layout Plain Layout
21142 purple
21143 \end_layout
21144
21145 \end_inset
21146
21147
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 teal
21153 \end_layout
21154
21155 \end_inset
21156
21157
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 violet
21163 \end_layout
21164
21165 \end_inset
21166
21167 ]
21168 \end_layout
21169
21170 \begin_layout Description
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 Family
21176 \end_layout
21177
21178 \end_inset
21179
21180  [
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185
21186 \emph on
21187 Roman
21188 \end_layout
21189
21190 \end_inset
21191
21192
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197 Sans
21198 \end_layout
21199
21200 \end_inset
21201
21202
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207 Typewriter
21208 \end_layout
21209
21210 \end_inset
21211
21212 ]
21213 \end_layout
21214
21215 \begin_layout Description
21216 \begin_inset Flex Code
21217 status collapsed
21218
21219 \begin_layout Plain Layout
21220 Misc
21221 \end_layout
21222
21223 \end_inset
21224
21225  [
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230 string
21231 \end_layout
21232
21233 \end_inset
21234
21235 ] Valid arguments are: 
21236 \begin_inset Flex Code
21237 status collapsed
21238
21239 \begin_layout Plain Layout
21240 emph
21241 \end_layout
21242
21243 \end_inset
21244
21245
21246 \begin_inset Flex Code
21247 status collapsed
21248
21249 \begin_layout Plain Layout
21250 noun
21251 \end_layout
21252
21253 \end_inset
21254
21255
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 strikeout
21261 \end_layout
21262
21263 \end_inset
21264
21265
21266 \begin_inset Flex Code
21267 status collapsed
21268
21269 \begin_layout Plain Layout
21270 underbar
21271 \end_layout
21272
21273 \end_inset
21274
21275
21276 \begin_inset Flex Code
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280 uuline
21281 \end_layout
21282
21283 \end_inset
21284
21285
21286 \begin_inset Flex Code
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 uwave
21291 \end_layout
21292
21293 \end_inset
21294
21295
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 no_emph
21301 \end_layout
21302
21303 \end_inset
21304
21305
21306 \begin_inset Flex Code
21307 status collapsed
21308
21309 \begin_layout Plain Layout
21310 no_noun
21311 \end_layout
21312
21313 \end_inset
21314
21315
21316 \begin_inset Flex Code
21317 status collapsed
21318
21319 \begin_layout Plain Layout
21320 no_strikeout
21321 \end_layout
21322
21323 \end_inset
21324
21325
21326 \begin_inset Flex Code
21327 status collapsed
21328
21329 \begin_layout Plain Layout
21330 no_bar
21331 \end_layout
21332
21333 \end_inset
21334
21335
21336 \begin_inset Flex Code
21337 status collapsed
21338
21339 \begin_layout Plain Layout
21340 no_uuline
21341 \end_layout
21342
21343 \end_inset
21344
21345  and 
21346 \begin_inset Flex Code
21347 status collapsed
21348
21349 \begin_layout Plain Layout
21350 no_uwave
21351 \end_layout
21352
21353 \end_inset
21354
21355 .
21356  Each of these turns on or off the corresponding attribute.
21357  For example, 
21358 \begin_inset Flex Code
21359 status collapsed
21360
21361 \begin_layout Plain Layout
21362 emph
21363 \end_layout
21364
21365 \end_inset
21366
21367  turns on emphasis, and 
21368 \begin_inset Flex Code
21369 status collapsed
21370
21371 \begin_layout Plain Layout
21372 no_emph
21373 \end_layout
21374
21375 \end_inset
21376
21377  turns it off.
21378  
21379 \begin_inset Newline newline
21380 \end_inset
21381
21382 If the latter seems puzzling, remember that the font settings for the present
21383  context are generally inherited from the surrounding context.
21384  So 
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389 no_emph
21390 \end_layout
21391
21392 \end_inset
21393
21394  would turn off the emphasis that was anyway in effect, say, in a theorem
21395  environment.
21396 \end_layout
21397
21398 \begin_layout Description
21399 \begin_inset Flex Code
21400 status collapsed
21401
21402 \begin_layout Plain Layout
21403 Series
21404 \end_layout
21405
21406 \end_inset
21407
21408  [
21409 \begin_inset Flex Code
21410 status collapsed
21411
21412 \begin_layout Plain Layout
21413
21414 \emph on
21415 Medium
21416 \end_layout
21417
21418 \end_inset
21419
21420
21421 \begin_inset Flex Code
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 Bold
21426 \end_layout
21427
21428 \end_inset
21429
21430
21431 \end_layout
21432
21433 \begin_layout Description
21434 \begin_inset Flex Code
21435 status collapsed
21436
21437 \begin_layout Plain Layout
21438 Shape
21439 \end_layout
21440
21441 \end_inset
21442
21443  [
21444 \begin_inset Flex Code
21445 status collapsed
21446
21447 \begin_layout Plain Layout
21448
21449 \emph on
21450 Up
21451 \end_layout
21452
21453 \end_inset
21454
21455
21456 \begin_inset Flex Code
21457 status collapsed
21458
21459 \begin_layout Plain Layout
21460 Italic
21461 \end_layout
21462
21463 \end_inset
21464
21465
21466 \begin_inset Flex Code
21467 status collapsed
21468
21469 \begin_layout Plain Layout
21470 SmallCaps
21471 \end_layout
21472
21473 \end_inset
21474
21475
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480 Slanted
21481 \end_layout
21482
21483 \end_inset
21484
21485
21486 \end_layout
21487
21488 \begin_layout Description
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493 Size
21494 \end_layout
21495
21496 \end_inset
21497
21498  [
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503 tiny
21504 \end_layout
21505
21506 \end_inset
21507
21508
21509 \begin_inset Flex Code
21510 status collapsed
21511
21512 \begin_layout Plain Layout
21513 small
21514 \end_layout
21515
21516 \end_inset
21517
21518
21519 \begin_inset Flex Code
21520 status collapsed
21521
21522 \begin_layout Plain Layout
21523
21524 \emph on
21525 normal
21526 \end_layout
21527
21528 \end_inset
21529
21530
21531 \begin_inset Flex Code
21532 status collapsed
21533
21534 \begin_layout Plain Layout
21535 large
21536 \end_layout
21537
21538 \end_inset
21539
21540
21541 \begin_inset Flex Code
21542 status collapsed
21543
21544 \begin_layout Plain Layout
21545 larger
21546 \end_layout
21547
21548 \end_inset
21549
21550
21551 \begin_inset Flex Code
21552 status collapsed
21553
21554 \begin_layout Plain Layout
21555 largest
21556 \end_layout
21557
21558 \end_inset
21559
21560
21561 \begin_inset Flex Code
21562 status collapsed
21563
21564 \begin_layout Plain Layout
21565 huge
21566 \end_layout
21567
21568 \end_inset
21569
21570
21571 \begin_inset Flex Code
21572 status collapsed
21573
21574 \begin_layout Plain Layout
21575 giant
21576 \end_layout
21577
21578 \end_inset
21579
21580 ]
21581 \end_layout
21582
21583 \begin_layout Subsection
21584 \begin_inset CommandInset label
21585 LatexCommand label
21586 name "subsec:Citation-engine-description"
21587
21588 \end_inset
21589
21590 Cite engine description
21591 \end_layout
21592
21593 \begin_layout Standard
21594 The 
21595 \begin_inset Flex Code
21596 status collapsed
21597
21598 \begin_layout Plain Layout
21599 CiteEngine
21600 \end_layout
21601
21602 \end_inset
21603
21604  blocks, as used mainly in cite engine files (see 
21605 \begin_inset CommandInset ref
21606 LatexCommand ref
21607 reference "subsec:Cite-Engine-Files"
21608 plural "false"
21609 caps "false"
21610 noprefix "false"
21611
21612 \end_inset
21613
21614 ), define the citation commands provided by a specific 
21615 \begin_inset Quotes eld
21616 \end_inset
21617
21618 cite engine
21619 \begin_inset Quotes erd
21620 \end_inset
21621
21622 .
21623  A cite engine, in \SpecialChar LyX
21624  terms, is way specific way to format citations, using
21625  numbers, author names and/or years.
21626  Currently, \SpecialChar LyX
21627  supports three such engine types, namely:
21628 \end_layout
21629
21630 \begin_layout Enumerate
21631 \begin_inset Flex Code
21632 status collapsed
21633
21634 \begin_layout Plain Layout
21635 default
21636 \end_layout
21637
21638 \end_inset
21639
21640 : the default Bib\SpecialChar TeX
21641  way to format citations, a simple numeric style (e.
21642 \begin_inset space \thinspace{}
21643 \end_inset
21644
21645 g., 
21646 \begin_inset Quotes eld
21647 \end_inset
21648
21649 [1]
21650 \begin_inset Quotes erd
21651 \end_inset
21652
21653 )
21654 \end_layout
21655
21656 \begin_layout Enumerate
21657 \begin_inset Flex Code
21658 status collapsed
21659
21660 \begin_layout Plain Layout
21661 authoryear
21662 \end_layout
21663
21664 \end_inset
21665
21666 : Harvard-styled citations using author names and publication year (e.
21667 \begin_inset space \thinspace{}
21668 \end_inset
21669
21670 g., 
21671 \begin_inset Quotes eld
21672 \end_inset
21673
21674 Smith and Miller (2017b)
21675 \begin_inset Quotes erd
21676 \end_inset
21677
21678 )
21679 \end_layout
21680
21681 \begin_layout Enumerate
21682 \begin_inset Flex Code
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686 numerical
21687 \end_layout
21688
21689 \end_inset
21690
21691 : extended numerical citations that also allow for author or title next
21692  to the number (e.
21693 \begin_inset space \thinspace{}
21694 \end_inset
21695
21696 g., 
21697 \begin_inset Quotes eld
21698 \end_inset
21699
21700 Smith and Miller [1]
21701 \begin_inset Quotes erd
21702 \end_inset
21703
21704 )
21705 \end_layout
21706
21707 \begin_layout Standard
21708 \begin_inset Flex Code
21709 status collapsed
21710
21711 \begin_layout Plain Layout
21712 CiteEngine
21713 \end_layout
21714
21715 \end_inset
21716
21717  blocks look like this:
21718 \end_layout
21719
21720 \begin_layout LyX-Code
21721 CiteEngine default
21722 \end_layout
21723
21724 \begin_layout LyX-Code
21725  cite
21726 \end_layout
21727
21728 \begin_layout LyX-Code
21729  Citep*[][]
21730 \end_layout
21731
21732 \begin_layout LyX-Code
21733  citeyearpar[][]=parencite*
21734 \end_layout
21735
21736 \begin_layout LyX-Code
21737  ...
21738 \end_layout
21739
21740 \begin_layout LyX-Code
21741 End
21742 \end_layout
21743
21744 \begin_layout Standard
21745 The tag following 
21746 \begin_inset Flex Code
21747 status collapsed
21748
21749 \begin_layout Plain Layout
21750 CiteEngine
21751 \end_layout
21752
21753 \end_inset
21754
21755  denotes the engine.
21756  The individual lines respectively define a cite command or cite command
21757  paradigm supported by this engine.
21758  The line can be as simple as a cite command that is used both to name the
21759  respective \SpecialChar LyX
21760  command and the \SpecialChar LaTeX
21761  output or more complex in order to differentiate
21762  things.
21763  The full syntax is:
21764 \end_layout
21765
21766 \begin_layout LyX-Code
21767 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21768 \end_layout
21769
21770 \begin_layout Itemize
21771 \begin_inset Flex Code
21772 status collapsed
21773
21774 \begin_layout Plain Layout
21775 LyXName
21776 \end_layout
21777
21778 \end_inset
21779
21780 : The name as used in the 
21781 \begin_inset Flex Code
21782 status collapsed
21783
21784 \begin_layout Plain Layout
21785 *.lyx
21786 \end_layout
21787
21788 \end_inset
21789
21790  file.
21791 \end_layout
21792
21793 \begin_deeper
21794 \begin_layout Standard
21795 For portability reasons, we try to use the same name for same-formatted
21796  commands in different cite packages (thus many names stem from natbib,
21797  and thus we need to differentiate a 
21798 \begin_inset Flex Code
21799 status collapsed
21800
21801 \begin_layout Plain Layout
21802 latexcmd
21803 \end_layout
21804
21805 \end_inset
21806
21807  sometimes, if the \SpecialChar LaTeX
21808  command names differ).
21809 \end_layout
21810
21811 \end_deeper
21812 \begin_layout Itemize
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 alias
21818 \end_layout
21819
21820 \end_inset
21821
21822 : a (comma-separated) list of commands that fall back to the given 
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 LyXName
21828 \end_layout
21829
21830 \end_inset
21831
21832  in the current engine.
21833  This eases the switch of citation packages and engines.
21834  The 
21835 \begin_inset Flex Code
21836 status collapsed
21837
21838 \begin_layout Plain Layout
21839 alias
21840 \end_layout
21841
21842 \end_inset
21843
21844  can be compared to 
21845 \begin_inset Flex Code
21846 status collapsed
21847
21848 \begin_layout Plain Layout
21849 ObsoletedBy
21850 \end_layout
21851
21852 \end_inset
21853
21854  in layout definitions.
21855 \end_layout
21856
21857 \begin_layout Itemize
21858 \begin_inset Flex Code
21859 status collapsed
21860
21861 \begin_layout Plain Layout
21862 latexcmd
21863 \end_layout
21864
21865 \end_inset
21866
21867 : The actual \SpecialChar LaTeX
21868  command that is output.
21869  
21870 \end_layout
21871
21872 \begin_layout Standard
21873 \begin_inset Flex Code
21874 status collapsed
21875
21876 \begin_layout Plain Layout
21877 Alias
21878 \end_layout
21879
21880 \end_inset
21881
21882  and 
21883 \begin_inset Flex Code
21884 status collapsed
21885
21886 \begin_layout Plain Layout
21887 latexcmd
21888 \end_layout
21889
21890 \end_inset
21891
21892  are optional.
21893  If no 
21894 \begin_inset Flex Code
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898 latexcmd
21899 \end_layout
21900
21901 \end_inset
21902
21903  is given, the 
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 LyXName
21909 \end_layout
21910
21911 \end_inset
21912
21913  will be output to \SpecialChar LaTeX
21914 .
21915 \end_layout
21916
21917 \begin_layout Standard
21918 Note further:
21919 \end_layout
21920
21921 \begin_layout Itemize
21922 Capitalization indicates that the command also has a capitalized form (
21923 \begin_inset Flex Code
21924 status collapsed
21925
21926 \begin_layout Plain Layout
21927
21928 \backslash
21929 Latexcmd
21930 \end_layout
21931
21932 \end_inset
21933
21934  vs.
21935  
21936 \begin_inset Flex Code
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940
21941 \backslash
21942 latexcmd
21943 \end_layout
21944
21945 \end_inset
21946
21947 ).
21948  These usually enforce up-casing of name prefixes (
21949 \emph on
21950 von Goethe
21951 \emph default
21952  
21953 \begin_inset Formula $\Rightarrow$
21954 \end_inset
21955
21956  
21957 \emph on
21958 Von Goethe
21959 \emph default
21960 ).
21961 \end_layout
21962
21963 \begin_layout Itemize
21964 Brackets 
21965 \begin_inset Flex Code
21966 status collapsed
21967
21968 \begin_layout Plain Layout
21969 []
21970 \end_layout
21971
21972 \end_inset
21973
21974  indicate the number of optional arguments (there can be 0–2).
21975 \end_layout
21976
21977 \begin_layout Itemize
21978 A star 
21979 \begin_inset Flex Code
21980 status collapsed
21981
21982 \begin_layout Plain Layout
21983 *
21984 \end_layout
21985
21986 \end_inset
21987
21988  indicates there is a starred version of the command (
21989 \begin_inset Flex Code
21990 status collapsed
21991
21992 \begin_layout Plain Layout
21993
21994 \backslash
21995 latexcmd*
21996 \end_layout
21997
21998 \end_inset
21999
22000  vs.
22001  
22002 \begin_inset Flex Code
22003 status collapsed
22004
22005 \begin_layout Plain Layout
22006
22007 \backslash
22008 latexcmd
22009 \end_layout
22010
22011 \end_inset
22012
22013 ).
22014  
22015 \end_layout
22016
22017 \begin_deeper
22018 \begin_layout Standard
22019 By default, the starred version means: Output all authors even if it should
22020  be shortened with 
22021 \begin_inset Quotes eld
22022 \end_inset
22023
22024 et al.
22025 \begin_inset Quotes erd
22026 \end_inset
22027
22028  due to the 
22029 \begin_inset Flex Code
22030 status collapsed
22031
22032 \begin_layout Plain Layout
22033 MaxCiteNames
22034 \end_layout
22035
22036 \end_inset
22037
22038  threshold.
22039 \end_layout
22040
22041 \begin_layout Standard
22042 If the star has a different meaning for a given command, it can be specified
22043  in angle brackets: 
22044 \begin_inset Flex Code
22045 status collapsed
22046
22047 \begin_layout Plain Layout
22048 <!_stardesc!_stardesctooltip>
22049 \end_layout
22050
22051 \end_inset
22052
22053 .
22054  Maximal two translatable macro keywords, marked by the prefix 
22055 \begin_inset Flex Code
22056 status collapsed
22057
22058 \begin_layout Plain Layout
22059 !_
22060 \end_layout
22061
22062 \end_inset
22063
22064 , can be given.
22065  The first points to the string that replaces the 
22066 \begin_inset Quotes eld
22067 \end_inset
22068
22069 Full aut&hor list
22070 \begin_inset Quotes erd
22071 \end_inset
22072
22073  checkbox label in the citation dialog, the second one to an optional tool
22074  tip for this checkbox.
22075  
22076 \end_layout
22077
22078 \begin_layout Standard
22079 Note that these two macros have to be defined in a 
22080 \begin_inset Flex Code
22081 status collapsed
22082
22083 \begin_layout Plain Layout
22084 CiteFormat
22085 \end_layout
22086
22087 \end_inset
22088
22089  (see next section), dropping the 
22090 \begin_inset Flex Code
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094 !
22095 \end_layout
22096
22097 \end_inset
22098
22099  from the prefix, like this: 
22100 \end_layout
22101
22102 \begin_layout LyX-Code
22103 _stardesc Sta&rred command label
22104 \end_layout
22105
22106 \begin_layout LyX-Code
22107 _stardesctooltip Tooltip for the starred command checkbox.
22108 \end_layout
22109
22110 \end_deeper
22111 \begin_layout Itemize
22112 A dollar sign 
22113 \begin_inset Flex Code
22114 status collapsed
22115
22116 \begin_layout Plain Layout
22117 $
22118 \end_layout
22119
22120 \end_inset
22121
22122  indicates that this command features 
22123 \begin_inset Quotes eld
22124 \end_inset
22125
22126 qualified citation lists
22127 \begin_inset Quotes erd
22128 \end_inset
22129
22130 .
22131  This is a 
22132 \family sans
22133 Biblatex
22134 \family default
22135 -specific feature for multi-reference citations where an individual pre-
22136  and postnote can be given to each reference in the list.
22137  Please refer to the 
22138 \family sans
22139 Biblatex
22140 \family default
22141  manual for details.
22142 \end_layout
22143
22144 \begin_layout Subsection
22145 \begin_inset CommandInset label
22146 LatexCommand label
22147 name "subsec:Citation-format-description"
22148
22149 \end_inset
22150
22151 Cite format description
22152 \end_layout
22153
22154 \begin_layout Standard
22155 The 
22156 \begin_inset Flex Code
22157 status collapsed
22158
22159 \begin_layout Plain Layout
22160 CiteFormat
22161 \end_layout
22162
22163 \end_inset
22164
22165  blocks are used to describe how bibliographic information should be displayed,
22166  both within \SpecialChar LyX
22167  itself (in the citation dialog and in tooltips, for example)
22168  and in XHTML output.
22169  Such a block might look like this:
22170 \end_layout
22171
22172 \begin_layout LyX-Code
22173 CiteFormat
22174 \end_layout
22175
22176 \begin_layout LyX-Code
22177  article ...
22178 \end_layout
22179
22180 \begin_layout LyX-Code
22181  book ...
22182 \end_layout
22183
22184 \begin_layout LyX-Code
22185 End
22186 \end_layout
22187
22188 \begin_layout Standard
22189 or
22190 \end_layout
22191
22192 \begin_layout LyX-Code
22193 CiteFormat
22194 \end_layout
22195
22196 \begin_layout LyX-Code
22197  cite ...
22198 \end_layout
22199
22200 \begin_layout LyX-Code
22201  citet*[][] ...
22202 \end_layout
22203
22204 \begin_layout LyX-Code
22205 End
22206 \end_layout
22207
22208 \begin_layout Standard
22209 In the first case, the individual lines define how the bibliographic information
22210  associated with an article or book, respectively, is to be displayed, and
22211  such a definition can be given for any 
22212 \begin_inset Quotes els
22213 \end_inset
22214
22215 entry type
22216 \begin_inset Quotes ers
22217 \end_inset
22218
22219  that might be present in a Bib\SpecialChar TeX
22220  file.
22221  \SpecialChar LyX
22222  defines a default format in the source code that will be used if no specific
22223  definition has been given.
22224  \SpecialChar LyX
22225  predefines several formats in the file 
22226 \begin_inset Flex Code
22227 status collapsed
22228
22229 \begin_layout Plain Layout
22230 stdciteformats.inc
22231 \end_layout
22232
22233 \end_inset
22234
22235 , which is included in most of \SpecialChar LyX
22236 's document classes.
22237 \end_layout
22238
22239 \begin_layout Standard
22240 In the second case, the lines define how a specific citation command (in
22241  the example 
22242 \begin_inset Flex Code
22243 status collapsed
22244
22245 \begin_layout Plain Layout
22246
22247 \backslash
22248 cite
22249 \end_layout
22250
22251 \end_inset
22252
22253
22254 \begin_inset Flex Code
22255 status collapsed
22256
22257 \begin_layout Plain Layout
22258
22259 \backslash
22260 citet
22261 \end_layout
22262
22263 \end_inset
22264
22265 ) is to be displayed on the citation inset label, in the citation dialog,
22266  menu or XHTML output.
22267  \SpecialChar LyX
22268  defines such formats for the citation style variants it supports via 
22269 \family sans
22270 Document\SpecialChar menuseparator
22271 Setting\SpecialChar menuseparator
22272 Bibliography\SpecialChar ldots
22273
22274 \family default
22275  in specific 
22276 \begin_inset Flex Code
22277 status collapsed
22278
22279 \begin_layout Plain Layout
22280 *.citeengine
22281 \end_layout
22282
22283 \end_inset
22284
22285  files that are shipped with \SpecialChar LyX
22286  (see 
22287 \begin_inset CommandInset ref
22288 LatexCommand ref
22289 reference "subsec:Cite-Engine-Files"
22290 plural "false"
22291 caps "false"
22292 noprefix "false"
22293
22294 \end_inset
22295
22296 ).
22297 \end_layout
22298
22299 \begin_layout Standard
22300 The definitions use a simple language that allows Bib\SpecialChar TeX
22301  keys to be replaced
22302  with their values.
22303  Keys should be enclosed in 
22304 \begin_inset Flex Code
22305 status collapsed
22306
22307 \begin_layout Plain Layout
22308 %
22309 \end_layout
22310
22311 \end_inset
22312
22313  signs, e.g.: 
22314 \begin_inset Flex Code
22315 status collapsed
22316
22317 \begin_layout Plain Layout
22318 %author%
22319 \end_layout
22320
22321 \end_inset
22322
22323 .
22324  So a simple definition might look like this:
22325 \end_layout
22326
22327 \begin_layout LyX-Code
22328 misc %author%, 
22329 \begin_inset Quotes eld
22330 \end_inset
22331
22332 %title%
22333 \begin_inset Quotes erd
22334 \end_inset
22335
22336 .
22337 \end_layout
22338
22339 \begin_layout Standard
22340 This would print the author, followed by a comma, followed by the title,
22341  in quotes, followed by a period.
22342 \end_layout
22343
22344 \begin_layout Standard
22345 Of course, sometimes you may want to print a key only if it exists.
22346  This can be done by using a conditional construction, such as: 
22347 \begin_inset Flex Code
22348 status collapsed
22349
22350 \begin_layout Plain Layout
22351 {%volume%[[vol.
22352 \begin_inset space ~
22353 \end_inset
22354
22355 %volume%]]}
22356 \end_layout
22357
22358 \end_inset
22359
22360 .
22361  This says: If the 
22362 \begin_inset Flex Code
22363 status collapsed
22364
22365 \begin_layout Plain Layout
22366 volume
22367 \end_layout
22368
22369 \end_inset
22370
22371  key exists, then print 
22372 \begin_inset Quotes eld
22373 \end_inset
22374
22375 vol.
22376 \begin_inset space ~
22377 \end_inset
22378
22379
22380 \begin_inset Quotes erd
22381 \end_inset
22382
22383  followed by the volume key.
22384  It is also possible to have an else clause in the conditional, such as:
22385 \begin_inset Newline newline
22386 \end_inset
22387
22388
22389 \begin_inset Flex Code
22390 status collapsed
22391
22392 \begin_layout Plain Layout
22393 {%author%[[%author%]][[%editor%, ed.]]}
22394 \end_layout
22395
22396 \end_inset
22397
22398 .
22399 \begin_inset Newline newline
22400 \end_inset
22401
22402 Here, the 
22403 \begin_inset Flex Code
22404 status collapsed
22405
22406 \begin_layout Plain Layout
22407 author
22408 \end_layout
22409
22410 \end_inset
22411
22412  key is printed if it exists; otherwise, the editor key is printed, followed
22413  by 
22414 \begin_inset Quotes eld
22415 \end_inset
22416
22417 ,
22418 \begin_inset space ~
22419 \end_inset
22420
22421 ed.
22422 \begin_inset Quotes erd
22423 \end_inset
22424
22425  Note that the key is again enclosed in 
22426 \begin_inset Flex Code
22427 status collapsed
22428
22429 \begin_layout Plain Layout
22430 %
22431 \end_layout
22432
22433 \end_inset
22434
22435  signs; the entire conditional is enclosed in braces; and the if and else
22436  clauses are enclosed in double brackets, 
22437 \begin_inset Quotes eld
22438 \end_inset
22439
22440
22441 \begin_inset Flex Code
22442 status collapsed
22443
22444 \begin_layout Plain Layout
22445 [[
22446 \end_layout
22447
22448 \end_inset
22449
22450
22451 \begin_inset Quotes eld
22452 \end_inset
22453
22454  and 
22455 \begin_inset Quotes eld
22456 \end_inset
22457
22458
22459 \begin_inset Flex Code
22460 status collapsed
22461
22462 \begin_layout Plain Layout
22463 ]]
22464 \end_layout
22465
22466 \end_inset
22467
22468
22469 \begin_inset Quotes erd
22470 \end_inset
22471
22472 .
22473  There must be no space between any of these.
22474 \end_layout
22475
22476 \begin_layout Standard
22477 Next to the entry keys, there are some special keys that can be used for
22478  these conditionals:
22479 \end_layout
22480
22481 \begin_layout Itemize
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 {%dialog%[[true]][[false]]}
22487 \end_layout
22488
22489 \end_inset
22490
22491 : process the 
22492 \begin_inset Quotes eld
22493 \end_inset
22494
22495 true
22496 \begin_inset Quotes erd
22497 \end_inset
22498
22499  part for dialogs and menus, the 
22500 \begin_inset Quotes eld
22501 \end_inset
22502
22503 false
22504 \begin_inset Quotes erd
22505 \end_inset
22506
22507  part for other contexts (workarea, export)
22508 \end_layout
22509
22510 \begin_layout Itemize
22511 \begin_inset Flex Code
22512 status collapsed
22513
22514 \begin_layout Plain Layout
22515 {%export%[[true]][[false]]}
22516 \end_layout
22517
22518 \end_inset
22519
22520 : process the 
22521 \begin_inset Quotes eld
22522 \end_inset
22523
22524 true
22525 \begin_inset Quotes erd
22526 \end_inset
22527
22528  part for export and menus, the 
22529 \begin_inset Quotes eld
22530 \end_inset
22531
22532 false
22533 \begin_inset Quotes erd
22534 \end_inset
22535
22536  part for other contexts (workarea, dialog)
22537 \end_layout
22538
22539 \begin_layout Itemize
22540 \begin_inset Flex Code
22541 status collapsed
22542
22543 \begin_layout Plain Layout
22544 {%next%[[true]]}
22545 \end_layout
22546
22547 \end_inset
22548
22549 : process the 
22550 \begin_inset Quotes eld
22551 \end_inset
22552
22553 true
22554 \begin_inset Quotes erd
22555 \end_inset
22556
22557  part if another item follows (e.
22558 \begin_inset space \thinspace{}
22559 \end_inset
22560
22561 g., in a citation with multiple keys)
22562 \end_layout
22563
22564 \begin_layout Itemize
22565 \begin_inset Flex Code
22566 status collapsed
22567
22568 \begin_layout Plain Layout
22569 {%second%[[true]][[false]]}
22570 \end_layout
22571
22572 \end_inset
22573
22574 : process the 
22575 \begin_inset Quotes eld
22576 \end_inset
22577
22578 true
22579 \begin_inset Quotes erd
22580 \end_inset
22581
22582  if this is the second of multiple items, else the 
22583 \begin_inset Quotes eld
22584 \end_inset
22585
22586 false
22587 \begin_inset Quotes erd
22588 \end_inset
22589
22590  part
22591 \end_layout
22592
22593 \begin_layout Itemize
22594 \begin_inset Flex Code
22595 status collapsed
22596
22597 \begin_layout Plain Layout
22598 {%ifstar%[[true]][[false]]}
22599 \end_layout
22600
22601 \end_inset
22602
22603 : process the 
22604 \begin_inset Quotes eld
22605 \end_inset
22606
22607 true
22608 \begin_inset Quotes erd
22609 \end_inset
22610
22611  part for starred citation commands (such as 
22612 \begin_inset Flex Code
22613 status collapsed
22614
22615 \begin_layout Plain Layout
22616
22617 \backslash
22618 cite*
22619 \end_layout
22620
22621 \end_inset
22622
22623 ), the false part for unstarred
22624 \end_layout
22625
22626 \begin_layout Itemize
22627 \begin_inset Flex Code
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631 {%ifentrytype:<type>%[[true]][[false]]}
22632 \end_layout
22633
22634 \end_inset
22635
22636 : process the 
22637 \begin_inset Quotes eld
22638 \end_inset
22639
22640 true
22641 \begin_inset Quotes erd
22642 \end_inset
22643
22644  if the current entry type matches 
22645 \begin_inset Flex Code
22646 status collapsed
22647
22648 \begin_layout Plain Layout
22649 <type>
22650 \end_layout
22651
22652 \end_inset
22653
22654 , else the false part (e.g., in a citation definition: 
22655 \begin_inset Flex Code
22656 status collapsed
22657
22658 \begin_layout Plain Layout
22659 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22660 \end_layout
22661
22662 \end_inset
22663
22664 )
22665 \end_layout
22666
22667 \begin_layout Itemize
22668 \begin_inset Flex Code
22669 status collapsed
22670
22671 \begin_layout Plain Layout
22672 {%ifmultiple:<authortype>%[[true]][[false]]}
22673 \end_layout
22674
22675 \end_inset
22676
22677 : process the 
22678 \begin_inset Quotes eld
22679 \end_inset
22680
22681 true
22682 \begin_inset Quotes erd
22683 \end_inset
22684
22685  if the current author type (author, editor etc.) has multiple authors, else
22686  the false part (e.g., in a bibliography definition: 
22687 \begin_inset Flex Code
22688 status collapsed
22689
22690 \begin_layout Plain Layout
22691 {%ifmultiple:editor%[[eds.]][[ed.]]}
22692 \end_layout
22693
22694 \end_inset
22695
22696 )
22697 \end_layout
22698
22699 \begin_layout Itemize
22700 \begin_inset Flex Code
22701 status collapsed
22702
22703 \begin_layout Plain Layout
22704 {%ifqualified%[[true]][[false]]}
22705 \end_layout
22706
22707 \end_inset
22708
22709 : process the 
22710 \begin_inset Quotes eld
22711 \end_inset
22712
22713 true
22714 \begin_inset Quotes erd
22715 \end_inset
22716
22717  part if the current citation is a qualified citation list (a specific 
22718 \family sans
22719 Biblatex
22720 \family default
22721  format for multi-reference citations), the false part if this is not the
22722  case.
22723 \end_layout
22724
22725 \begin_layout Standard
22726 We said that 
22727 \begin_inset Flex Code
22728 status collapsed
22729
22730 \begin_layout Plain Layout
22731 %author%
22732 \end_layout
22733
22734 \end_inset
22735
22736  prints the author key as it is recorded in the bibliography file.
22737  This might not be what you want, since it will result in a string such
22738  as 
22739 \begin_inset Quotes eld
22740 \end_inset
22741
22742 Miller, Peter and Smith, Mary and White, Jane
22743 \begin_inset Quotes erd
22744 \end_inset
22745
22746  (since 
22747 \begin_inset Quotes eld
22748 \end_inset
22749
22750 and
22751 \begin_inset Quotes erd
22752 \end_inset
22753
22754  is used by Bib\SpecialChar TeX
22755  to delimit authors).
22756  \SpecialChar LyX
22757  therefore provides some methods to get properly formatted name lists (which
22758  will also get translated).
22759  The following keys are provided:
22760 \end_layout
22761
22762 \begin_layout Enumerate
22763 For name lists with pre- and surname, suitable for the main authors/editors
22764  of a bibliography item.
22765  The 
22766 \begin_inset Flex Code
22767 status collapsed
22768
22769 \begin_layout Plain Layout
22770 <nametype>
22771 \end_layout
22772
22773 \end_inset
22774
22775  part denotes the kind of list that is requested (e.g.
22776  
22777 \begin_inset Flex Code
22778 status collapsed
22779
22780 \begin_layout Plain Layout
22781 <nametype:author>
22782 \end_layout
22783
22784 \end_inset
22785
22786 ):
22787 \end_layout
22788
22789 \begin_deeper
22790 \begin_layout Itemize
22791 \begin_inset Flex Code
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795 %abbrvnames:<nametype>%
22796 \end_layout
22797
22798 \end_inset
22799
22800 : Provides a name list which is abbreviated (with 
22801 \begin_inset Quotes eld
22802 \end_inset
22803
22804 et al.
22805 \begin_inset Quotes erd
22806 \end_inset
22807
22808 ) when 
22809 \begin_inset Flex Code
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 MaxCiteNames
22814 \end_layout
22815
22816 \end_inset
22817
22818  is reached.
22819 \end_layout
22820
22821 \begin_layout Itemize
22822 \begin_inset Flex Code
22823 status collapsed
22824
22825 \begin_layout Plain Layout
22826 %fullnames:<nametype>%
22827 \end_layout
22828
22829 \end_inset
22830
22831 : Provides a full name list (never abbreviated with 
22832 \begin_inset Quotes eld
22833 \end_inset
22834
22835 et al.
22836 \begin_inset Quotes erd
22837 \end_inset
22838
22839 ).
22840 \end_layout
22841
22842 \begin_layout Itemize
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 %forceabbrvnames:<nametype>%
22848 \end_layout
22849
22850 \end_inset
22851
22852 : Provides a name list which is always abbreviated (with 
22853 \begin_inset Quotes eld
22854 \end_inset
22855
22856 et al.
22857 \begin_inset Quotes erd
22858 \end_inset
22859
22860 ) irrespective of 
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 MaxCiteNames
22866 \end_layout
22867
22868 \end_inset
22869
22870 .
22871 \end_layout
22872
22873 \end_deeper
22874 \begin_layout Enumerate
22875 Alternative name lists with pre- and surname, if the order of pre- and surname
22876  inside the bibliography item differs (as in: 
22877 \begin_inset Quotes eld
22878 \end_inset
22879
22880 Miller, John: Some text, in: Mary Smith, ed.: A volume
22881 \begin_inset Quotes erd
22882 \end_inset
22883
22884 ):
22885 \end_layout
22886
22887 \begin_deeper
22888 \begin_layout Itemize
22889 \begin_inset Flex Code
22890 status collapsed
22891
22892 \begin_layout Plain Layout
22893 %abbrvbynames:<nametype>%
22894 \end_layout
22895
22896 \end_inset
22897
22898 : Provides a name list which is abbreviated (with 
22899 \begin_inset Quotes eld
22900 \end_inset
22901
22902 et al.
22903 \begin_inset Quotes erd
22904 \end_inset
22905
22906 ) when 
22907 \begin_inset Flex Code
22908 status collapsed
22909
22910 \begin_layout Plain Layout
22911 MaxCiteNames
22912 \end_layout
22913
22914 \end_inset
22915
22916  is reached.
22917 \end_layout
22918
22919 \begin_layout Itemize
22920 \begin_inset Flex Code
22921 status collapsed
22922
22923 \begin_layout Plain Layout
22924 %fullbynames:<nametype>%
22925 \end_layout
22926
22927 \end_inset
22928
22929 : Provides a full name list (never abbreviated with 
22930 \begin_inset Quotes eld
22931 \end_inset
22932
22933 et al.
22934 \begin_inset Quotes erd
22935 \end_inset
22936
22937 ).
22938 \end_layout
22939
22940 \begin_layout Itemize
22941 \begin_inset Flex Code
22942 status collapsed
22943
22944 \begin_layout Plain Layout
22945 %forceabbrvbynames:<nametype>%
22946 \end_layout
22947
22948 \end_inset
22949
22950 : Provides a name list which is always abbreviated (with 
22951 \begin_inset Quotes eld
22952 \end_inset
22953
22954 et al.
22955 \begin_inset Quotes erd
22956 \end_inset
22957
22958 ) irrespective of 
22959 \begin_inset Flex Code
22960 status collapsed
22961
22962 \begin_layout Plain Layout
22963 MaxCiteNames
22964 \end_layout
22965
22966 \end_inset
22967
22968 .
22969 \end_layout
22970
22971 \end_deeper
22972 \begin_layout Enumerate
22973 And finally name lists which consist of family names only, as used in author-yea
22974 r citation labels.
22975  These do not take a 
22976 \begin_inset Flex Code
22977 status collapsed
22978
22979 \begin_layout Plain Layout
22980 <nametype>
22981 \end_layout
22982
22983 \end_inset
22984
22985  part, but always return either an author list or, if this does not exist,
22986  an editor list (as common in author-year labels):
22987 \end_layout
22988
22989 \begin_deeper
22990 \begin_layout Itemize
22991 \begin_inset Flex Code
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995 %abbrvciteauthor%
22996 \end_layout
22997
22998 \end_inset
22999
23000 : Provides a name list which is abbreviated (with 
23001 \begin_inset Quotes eld
23002 \end_inset
23003
23004 et al.
23005 \begin_inset Quotes erd
23006 \end_inset
23007
23008 ) when 
23009 \begin_inset Flex Code
23010 status collapsed
23011
23012 \begin_layout Plain Layout
23013 MaxCiteNames
23014 \end_layout
23015
23016 \end_inset
23017
23018  is reached.
23019 \end_layout
23020
23021 \begin_layout Itemize
23022 \begin_inset Flex Code
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026 %fullciteauthor%
23027 \end_layout
23028
23029 \end_inset
23030
23031 : Provides a full name list (never abbreviated with 
23032 \begin_inset Quotes eld
23033 \end_inset
23034
23035 et al.
23036 \begin_inset Quotes erd
23037 \end_inset
23038
23039 ).
23040 \end_layout
23041
23042 \begin_layout Itemize
23043 \begin_inset Flex Code
23044 status collapsed
23045
23046 \begin_layout Plain Layout
23047 %forceabbrvciteauthor%
23048 \end_layout
23049
23050 \end_inset
23051
23052 : Provides a name list which is always abbreviated (with 
23053 \begin_inset Quotes eld
23054 \end_inset
23055
23056 et al.
23057 \begin_inset Quotes erd
23058 \end_inset
23059
23060 ) irrespective of 
23061 \begin_inset Flex Code
23062 status collapsed
23063
23064 \begin_layout Plain Layout
23065 MaxCiteNames
23066 \end_layout
23067
23068 \end_inset
23069
23070 .
23071 \end_layout
23072
23073 \end_deeper
23074 \begin_layout Standard
23075 The order of pre- and surname in the former two lists can be adjusted by
23076  these macros:
23077 \end_layout
23078
23079 \begin_layout Itemize
23080 \begin_inset Flex Code
23081 status collapsed
23082
23083 \begin_layout Plain Layout
23084 !firstnameform %surname%, %prename%
23085 \end_layout
23086
23087 \end_inset
23088
23089  (first author in lists of type 1)
23090 \end_layout
23091
23092 \begin_layout Itemize
23093 \begin_inset Flex Code
23094 status collapsed
23095
23096 \begin_layout Plain Layout
23097 !othernameform %surname%, %prename%
23098 \end_layout
23099
23100 \end_inset
23101
23102  (other authors in lists of type 1)
23103 \end_layout
23104
23105 \begin_layout Itemize
23106 \begin_inset Flex Code
23107 status collapsed
23108
23109 \begin_layout Plain Layout
23110 !firstbynameform %prename% %surname%
23111 \end_layout
23112
23113 \end_inset
23114
23115  (first author in lists of type 2)
23116 \end_layout
23117
23118 \begin_layout Itemize
23119 \begin_inset Flex Code
23120 status collapsed
23121
23122 \begin_layout Plain Layout
23123 !otherbynameform %prename% %surname%
23124 \end_layout
23125
23126 \end_inset
23127
23128  (other authors in lists of type 2)
23129 \end_layout
23130
23131 \begin_layout Standard
23132 This allows you to configure namings like 
23133 \begin_inset Quotes eld
23134 \end_inset
23135
23136 Miller, Peter and Mary Smith: \SpecialChar ldots
23137 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23138
23139 \begin_inset Quotes erd
23140 \end_inset
23141
23142 .
23143 \end_layout
23144
23145 \begin_layout Standard
23146 There is one other piece of syntax available in definitions, which looks
23147  like this: 
23148 \begin_inset Flex Code
23149 status collapsed
23150
23151 \begin_layout Plain Layout
23152 {!<i>!}
23153 \end_layout
23154
23155 \end_inset
23156
23157 .
23158  This defines a piece of formatting information that is to be used when
23159  creating 
23160 \begin_inset Quotes eld
23161 \end_inset
23162
23163 rich text
23164 \begin_inset Quotes erd
23165 \end_inset
23166
23167 .
23168  Obviously, we do not want to output HTML tags when writing plain text,
23169  so they should be wrapped in 
23170 \begin_inset Quotes eld
23171 \end_inset
23172
23173 {!
23174 \begin_inset Quotes erd
23175 \end_inset
23176
23177  and 
23178 \begin_inset Quotes eld
23179 \end_inset
23180
23181 !}
23182 \begin_inset Quotes erd
23183 \end_inset
23184
23185 .
23186 \end_layout
23187
23188 \begin_layout Standard
23189 Two special sorts of definitions are also possible in a 
23190 \begin_inset Flex Code
23191 status collapsed
23192
23193 \begin_layout Plain Layout
23194 CiteFormat
23195 \end_layout
23196
23197 \end_inset
23198
23199  block.
23200  An example of the first would be:
23201 \end_layout
23202
23203 \begin_layout LyX-Code
23204 !quotetitle 
23205 \begin_inset Quotes eld
23206 \end_inset
23207
23208 %title%
23209 \begin_inset Quotes erd
23210 \end_inset
23211
23212
23213 \end_layout
23214
23215 \begin_layout Standard
23216 This is an abbreviation, or macro, and it can be used by treating it as
23217  if it were a key: 
23218 \begin_inset Flex Code
23219 status collapsed
23220
23221 \begin_layout Plain Layout
23222 %!quotetitle%
23223 \end_layout
23224
23225 \end_inset
23226
23227 .
23228  \SpecialChar LyX
23229  will treat 
23230 \begin_inset Flex Code
23231 status collapsed
23232
23233 \begin_layout Plain Layout
23234 %!quotetitle%
23235 \end_layout
23236
23237 \end_inset
23238
23239  exactly as it would treat its definition.
23240  So, let us issue the obvious 
23241 \emph on
23242 warning
23243 \emph default
23244 .
23245  Do not do this:
23246 \end_layout
23247
23248 \begin_layout LyX-Code
23249 !funfun %funfun%
23250 \end_layout
23251
23252 \begin_layout Standard
23253 or anything like it.
23254  \SpecialChar LyX
23255  shouldn't go into an infinite loop, but it may go into a long one before
23256  it gives up.
23257 \end_layout
23258
23259 \begin_layout Standard
23260 The second sort of special definition might look like this:
23261 \end_layout
23262
23263 \begin_layout LyX-Code
23264 B_pptext pp.
23265 \end_layout
23266
23267 \begin_layout Standard
23268 This defines a translatable piece of text, which allows relevant parts of
23269  the bibliography or citation to be translated.
23270  It can be included in a definition by treating it as a key: 
23271 \begin_inset Flex Code
23272 status collapsed
23273
23274 \begin_layout Plain Layout
23275 %B_pptext%
23276 \end_layout
23277
23278 \end_inset
23279
23280 .
23281  Note that there are two different translation paths: All definitions starting
23282  with 
23283 \begin_inset Flex Code
23284 status collapsed
23285
23286 \begin_layout Plain Layout
23287 B_
23288 \end_layout
23289
23290 \end_inset
23291
23292 , such as in the example above, will be translated to the currently active
23293  buffer language (so the translation will match the generated document).
23294  All definitions starting with underscore only will be translated to the
23295  GUI language.
23296  This is the proper translation for strings that only occur in the dialogs
23297  or on buttons, such as this one:
23298 \end_layout
23299
23300 \begin_layout LyX-Code
23301 _addtobib Add to bibliography only.
23302 \end_layout
23303
23304 \begin_layout Standard
23305 Several of these translatable strings are predefined in 
23306 \begin_inset Flex Code
23307 status collapsed
23308
23309 \begin_layout Plain Layout
23310 stdciteformats.inc
23311 \end_layout
23312
23313 \end_inset
23314
23315  and the diverse 
23316 \begin_inset Flex Code
23317 status collapsed
23318
23319 \begin_layout Plain Layout
23320 *.citeengine
23321 \end_layout
23322
23323 \end_inset
23324
23325  files.
23326  Note that these are not macros, in the sense just defined.
23327  They will not be expanded.
23328 \end_layout
23329
23330 \begin_layout Standard
23331 So here then is an example that uses several of these features:
23332 \begin_inset VSpace defskip
23333 \end_inset
23334
23335
23336 \end_layout
23337
23338 \begin_layout Standard
23339 \noindent
23340
23341 \family sans
23342 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
23343 \end_layout
23344
23345 \begin_layout Standard
23346 \begin_inset VSpace defskip
23347 \end_inset
23348
23349 This defines a macro that prints the author, followed by a comma, if the
23350  
23351 \begin_inset Flex Code
23352 status collapsed
23353
23354 \begin_layout Plain Layout
23355 author
23356 \end_layout
23357
23358 \end_inset
23359
23360  key is defined, or else prints the name of the editor, followed by the
23361  
23362 \begin_inset Flex Code
23363 status collapsed
23364
23365 \begin_layout Plain Layout
23366 B_edtext
23367 \end_layout
23368
23369 \end_inset
23370
23371  or its translation (it is by default 
23372 \begin_inset Quotes eld
23373 \end_inset
23374
23375 ed.
23376 \begin_inset Quotes erd
23377 \end_inset
23378
23379 ), if the 
23380 \begin_inset Flex Code
23381 status collapsed
23382
23383 \begin_layout Plain Layout
23384 editor
23385 \end_layout
23386
23387 \end_inset
23388
23389  key is defined.
23390  Note that this is in fact defined in 
23391 \begin_inset Flex Code
23392 status collapsed
23393
23394 \begin_layout Plain Layout
23395 stdciteformats.inc
23396 \end_layout
23397
23398 \end_inset
23399
23400 , so you can use it in your own definitions, or re-definitions, if you load
23401  that file first.
23402 \end_layout
23403
23404 \begin_layout Section
23405 \begin_inset CommandInset label
23406 LatexCommand label
23407 name "sec:Tags-for-XHTML"
23408
23409 \end_inset
23410
23411 Tags for XHTML output
23412 \end_layout
23413
23414 \begin_layout Standard
23415 As with \SpecialChar LaTeX
23416  or DocBook, the format of \SpecialChar LyX
23417 's XHTML output is also controlled by
23418  layout information.
23419  In general, \SpecialChar LyX
23420  provides sensible defaults and, as mentioned earlier, it will
23421  even construct default CSS style rules from the other layout tags.
23422  For example, \SpecialChar LyX
23423  will attempt to use the information provided in the 
23424 \begin_inset Flex Code
23425 status collapsed
23426
23427 \begin_layout Plain Layout
23428 Font
23429 \end_layout
23430
23431 \end_inset
23432
23433  declaration for the Chapter style to write CSS that will appropriately
23434  format chapter headings.
23435 \end_layout
23436
23437 \begin_layout Standard
23438 In many cases, then, you may not have to do anything at all to get acceptable
23439  XHTML output for your own environments, custom insets, and so forth.
23440  But in some cases you will, and so \SpecialChar LyX
23441  provides a number of layout tags that
23442  can be used to customize the XHTML and CSS that are generated.
23443 \end_layout
23444
23445 \begin_layout Standard
23446 Note that there are two tags, 
23447 \begin_inset Flex Code
23448 status collapsed
23449
23450 \begin_layout Plain Layout
23451 HTMLPreamble
23452 \end_layout
23453
23454 \end_inset
23455
23456  and 
23457 \begin_inset Flex Code
23458 status collapsed
23459
23460 \begin_layout Plain Layout
23461 AddToHTMLPreamble
23462 \end_layout
23463
23464 \end_inset
23465
23466  that may appear outside style and inset declarations.
23467  See 
23468 \begin_inset CommandInset ref
23469 LatexCommand ref
23470 reference "subsec:General-text-class"
23471
23472 \end_inset
23473
23474  for details on these.
23475 \end_layout
23476
23477 \begin_layout Subsection
23478 \begin_inset CommandInset label
23479 LatexCommand label
23480 name "subsec:Paragraph-Style-XHTML"
23481
23482 \end_inset
23483
23484 Paragraph styles
23485 \end_layout
23486
23487 \begin_layout Standard
23488 The sort of XHTML \SpecialChar LyX
23489  outputs for a paragraph depends upon whether we are dealing
23490  with a normal paragraph, a command, or an environment, where this is itself
23491  determined by the contents of the corresponding 
23492 \begin_inset Flex Code
23493 status collapsed
23494
23495 \begin_layout Plain Layout
23496 \SpecialChar LaTeX
23497 Type
23498 \end_layout
23499
23500 \end_inset
23501
23502  tag.
23503  
23504 \end_layout
23505
23506 \begin_layout Standard
23507 For a command or normal paragraph, the output XHTML has the following form:
23508 \end_layout
23509
23510 \begin_layout LyX-Code
23511
23512 \family sans
23513 <tag attr=
23514 \begin_inset Quotes erd
23515 \end_inset
23516
23517 value
23518 \begin_inset Quotes erd
23519 \end_inset
23520
23521 >
23522 \end_layout
23523
23524 \begin_layout LyX-Code
23525
23526 \family sans
23527 <labeltag attr=
23528 \begin_inset Quotes erd
23529 \end_inset
23530
23531 value
23532 \begin_inset Quotes erd
23533 \end_inset
23534
23535 >Label</labeltag>
23536 \end_layout
23537
23538 \begin_layout LyX-Code
23539
23540 \family sans
23541 Contents of the paragraph.
23542 \end_layout
23543
23544 \begin_layout LyX-Code
23545
23546 \family sans
23547 </tag>
23548 \end_layout
23549
23550 \begin_layout Standard
23551 The label tags are of course omitted if the paragraph does not have a label.
23552 \end_layout
23553
23554 \begin_layout Standard
23555 For an environment that is not some sort of list, the XHTML takes this form:
23556 \end_layout
23557
23558 \begin_layout LyX-Code
23559
23560 \family sans
23561 <tag attr=
23562 \begin_inset Quotes erd
23563 \end_inset
23564
23565 value
23566 \begin_inset Quotes erd
23567 \end_inset
23568
23569 >
23570 \end_layout
23571
23572 \begin_layout LyX-Code
23573
23574 \family sans
23575 <itemtag attr=
23576 \begin_inset Quotes erd
23577 \end_inset
23578
23579 value
23580 \begin_inset Quotes erd
23581 \end_inset
23582
23583 ><labeltag attr=
23584 \begin_inset Quotes erd
23585 \end_inset
23586
23587 value
23588 \begin_inset Quotes erd
23589 \end_inset
23590
23591 >Environment Label</labeltag>First paragraph.</itemtag>
23592 \end_layout
23593
23594 \begin_layout LyX-Code
23595
23596 \family sans
23597 <itemtag>Second paragraph.</itemtag>
23598 \end_layout
23599
23600 \begin_layout LyX-Code
23601
23602 \family sans
23603 </tag>
23604 \end_layout
23605
23606 \begin_layout Standard
23607 Note that the label is output only for the first paragraph, as it should
23608  be for a theorem, for example.
23609  
23610 \end_layout
23611
23612 \begin_layout Standard
23613 For a list, we have one of these forms:
23614 \end_layout
23615
23616 \begin_layout LyX-Code
23617
23618 \family sans
23619 <tag attr=
23620 \begin_inset Quotes erd
23621 \end_inset
23622
23623 value
23624 \begin_inset Quotes erd
23625 \end_inset
23626
23627 >
23628 \end_layout
23629
23630 \begin_layout LyX-Code
23631
23632 \family sans
23633 <itemtag attr=
23634 \begin_inset Quotes erd
23635 \end_inset
23636
23637 value
23638 \begin_inset Quotes erd
23639 \end_inset
23640
23641 ><labeltag attr=
23642 \begin_inset Quotes erd
23643 \end_inset
23644
23645 value
23646 \begin_inset Quotes erd
23647 \end_inset
23648
23649 >List Label</labeltag>First item.</itemtag>
23650 \end_layout
23651
23652 \begin_layout LyX-Code
23653
23654 \family sans
23655 <itemtag attr=
23656 \begin_inset Quotes erd
23657 \end_inset
23658
23659 value
23660 \begin_inset Quotes erd
23661 \end_inset
23662
23663 ><labeltag attr=
23664 \begin_inset Quotes erd
23665 \end_inset
23666
23667 value
23668 \begin_inset Quotes erd
23669 \end_inset
23670
23671 >List Label</labeltag>Second item.</itemtag>
23672 \end_layout
23673
23674 \begin_layout LyX-Code
23675
23676 \family sans
23677 </tag>
23678 \end_layout
23679
23680 \begin_layout LyX-Code
23681
23682 \end_layout
23683
23684 \begin_layout LyX-Code
23685
23686 \family sans
23687 <tag attr=
23688 \begin_inset Quotes erd
23689 \end_inset
23690
23691 value
23692 \begin_inset Quotes erd
23693 \end_inset
23694
23695 >
23696 \end_layout
23697
23698 \begin_layout LyX-Code
23699
23700 \family sans
23701 <labeltag attr=
23702 \begin_inset Quotes erd
23703 \end_inset
23704
23705 value
23706 \begin_inset Quotes erd
23707 \end_inset
23708
23709 >List Label</labeltag><itemtag attr=
23710 \begin_inset Quotes erd
23711 \end_inset
23712
23713 value
23714 \begin_inset Quotes erd
23715 \end_inset
23716
23717 >First item.</itemtag>
23718 \end_layout
23719
23720 \begin_layout LyX-Code
23721
23722 \family sans
23723 <labeltag attr=
23724 \begin_inset Quotes erd
23725 \end_inset
23726
23727 value
23728 \begin_inset Quotes erd
23729 \end_inset
23730
23731 >List Label</labeltag><itemtag attr=
23732 \begin_inset Quotes erd
23733 \end_inset
23734
23735 value
23736 \begin_inset Quotes erd
23737 \end_inset
23738
23739 >Second item.</itemtag>
23740 \end_layout
23741
23742 \begin_layout LyX-Code
23743
23744 \family sans
23745 </tag>
23746 \end_layout
23747
23748 \begin_layout Standard
23749 Note the different orders of 
23750 \begin_inset Flex Code
23751 status collapsed
23752
23753 \begin_layout Plain Layout
23754 labeltag
23755 \end_layout
23756
23757 \end_inset
23758
23759  and 
23760 \begin_inset Flex Code
23761 status collapsed
23762
23763 \begin_layout Plain Layout
23764 itemtag
23765 \end_layout
23766
23767 \end_inset
23768
23769 .
23770  Which order we get depends upon the setting of 
23771 \begin_inset Flex Code
23772 status collapsed
23773
23774 \begin_layout Plain Layout
23775 HTMLLabelFirst
23776 \end_layout
23777
23778 \end_inset
23779
23780 : If 
23781 \begin_inset Flex Code
23782 status collapsed
23783
23784 \begin_layout Plain Layout
23785 HTMLLabelFirst
23786 \end_layout
23787
23788 \end_inset
23789
23790  is false (the default), you get the first of these, with the label within
23791  the item; if true, you get the second, with the label outside the item.
23792 \end_layout
23793
23794 \begin_layout Standard
23795 The specific tags and attributes output for each paragraph type can be controlle
23796 d by means of the layout tags we are about to describe.
23797  As mentioned earlier, however, \SpecialChar LyX
23798  uses sensible defaults for many of these,
23799  so you often may not need to do very much to get good XHTML output.
23800  Think of the available tags as there so you can tweak things to your liking.
23801 \end_layout
23802
23803 \begin_layout Description
23804 \begin_inset Flex Code
23805 status collapsed
23806
23807 \begin_layout Plain Layout
23808 HTMLAttr
23809 \end_layout
23810
23811 \end_inset
23812
23813  [
23814 \begin_inset Flex Code
23815 status collapsed
23816
23817 \begin_layout Plain Layout
23818 string
23819 \end_layout
23820
23821 \end_inset
23822
23823 ] Specifies attribute information to be output with the main tag.
23824  For example, 
23825 \begin_inset Quotes eld
23826 \end_inset
23827
23828
23829 \begin_inset Flex Code
23830 status collapsed
23831
23832 \begin_layout Plain Layout
23833 class=`mydiv'
23834 \end_layout
23835
23836 \end_inset
23837
23838
23839 \begin_inset Quotes erd
23840 \end_inset
23841
23842 .
23843  By default, \SpecialChar LyX
23844  will output 
23845 \begin_inset Quotes eld
23846 \end_inset
23847
23848
23849 \begin_inset Flex Code
23850 status collapsed
23851
23852 \begin_layout Plain Layout
23853 class=`layoutname'
23854 \end_layout
23855
23856 \end_inset
23857
23858
23859 \begin_inset Quotes erd
23860 \end_inset
23861
23862 , where 
23863 \begin_inset Flex Code
23864 status collapsed
23865
23866 \begin_layout Plain Layout
23867 layoutname
23868 \end_layout
23869
23870 \end_inset
23871
23872  is the \SpecialChar LyX
23873  name of the layout, made lowercase, for example: chapter.
23874  This should 
23875 \emph on
23876 not
23877 \emph default
23878  contain any style information.
23879  Use 
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  for that purpose.
23890 \end_layout
23891
23892 \begin_layout Description
23893 \begin_inset Flex Code
23894 status collapsed
23895
23896 \begin_layout Plain Layout
23897 HTMLForceCSS
23898 \end_layout
23899
23900 \end_inset
23901
23902  [
23903 \begin_inset Flex Code
23904 status collapsed
23905
23906 \begin_layout Plain Layout
23907
23908 \emph on
23909 0
23910 \emph default
23911 ,1
23912 \end_layout
23913
23914 \end_inset
23915
23916 ] Whether to output the default CSS information \SpecialChar LyX
23917  generates for this layout,
23918  even if additional information is explicitly provided via 
23919 \begin_inset Flex Code
23920 status collapsed
23921
23922 \begin_layout Plain Layout
23923 HTMLStyle
23924 \end_layout
23925
23926 \end_inset
23927
23928 .
23929  Setting this to 
23930 \begin_inset Flex Code
23931 status collapsed
23932
23933 \begin_layout Plain Layout
23934 1
23935 \end_layout
23936
23937 \end_inset
23938
23939  allows you to alter or augment the generated CSS, rather than to override
23940  it completely.
23941  Default is 
23942 \begin_inset Flex Code
23943 status collapsed
23944
23945 \begin_layout Plain Layout
23946 0
23947 \end_layout
23948
23949 \end_inset
23950
23951 .
23952 \end_layout
23953
23954 \begin_layout Description
23955 \begin_inset Flex Code
23956 status collapsed
23957
23958 \begin_layout Plain Layout
23959 HTMLItem
23960 \end_layout
23961
23962 \end_inset
23963
23964  [
23965 \begin_inset Flex Code
23966 status collapsed
23967
23968 \begin_layout Plain Layout
23969 string
23970 \end_layout
23971
23972 \end_inset
23973
23974 ] The tag to be used for individual paragraphs of environments, replacing
23975  
23976 \begin_inset Flex Code
23977 status collapsed
23978
23979 \begin_layout Plain Layout
23980 itemtag
23981 \end_layout
23982
23983 \end_inset
23984
23985  in the examples above.
23986  Defaults to 
23987 \begin_inset Flex Code
23988 status collapsed
23989
23990 \begin_layout Plain Layout
23991 div
23992 \end_layout
23993
23994 \end_inset
23995
23996 .
23997 \end_layout
23998
23999 \begin_layout Description
24000 \begin_inset Flex Code
24001 status collapsed
24002
24003 \begin_layout Plain Layout
24004 HTMLItemAttr
24005 \end_layout
24006
24007 \end_inset
24008
24009  [
24010 \begin_inset Flex Code
24011 status collapsed
24012
24013 \begin_layout Plain Layout
24014 string
24015 \end_layout
24016
24017 \end_inset
24018
24019 ] Attributes for the item tag.
24020  Defaults to
24021 \begin_inset Newline newline
24022 \end_inset
24023
24024
24025 \begin_inset Quotes eld
24026 \end_inset
24027
24028
24029 \begin_inset Flex Code
24030 status collapsed
24031
24032 \begin_layout Plain Layout
24033 class=`layoutname_item'
24034 \end_layout
24035
24036 \end_inset
24037
24038
24039 \begin_inset Quotes erd
24040 \end_inset
24041
24042 .
24043  This should 
24044 \emph on
24045 not
24046 \emph default
24047  contain any style information.
24048  Use 
24049 \begin_inset Flex Code
24050 status collapsed
24051
24052 \begin_layout Plain Layout
24053 HTMLStyle
24054 \end_layout
24055
24056 \end_inset
24057
24058  for that purpose.
24059 \end_layout
24060
24061 \begin_layout Description
24062 \begin_inset Flex Code
24063 status collapsed
24064
24065 \begin_layout Plain Layout
24066 HTMLLabel
24067 \end_layout
24068
24069 \end_inset
24070
24071  [
24072 \begin_inset Flex Code
24073 status collapsed
24074
24075 \begin_layout Plain Layout
24076 string
24077 \end_layout
24078
24079 \end_inset
24080
24081 ] The tag to be used for paragraph and item labels, replacing 
24082 \begin_inset Flex Code
24083 status collapsed
24084
24085 \begin_layout Plain Layout
24086 labeltag
24087 \end_layout
24088
24089 \end_inset
24090
24091  in the examples above.
24092  Defaults to 
24093 \begin_inset Flex Code
24094 status collapsed
24095
24096 \begin_layout Plain Layout
24097 span
24098 \end_layout
24099
24100 \end_inset
24101
24102 , unless 
24103 \begin_inset Flex Code
24104 status collapsed
24105
24106 \begin_layout Plain Layout
24107 LabelType
24108 \end_layout
24109
24110 \end_inset
24111
24112  is either 
24113 \begin_inset Flex Code
24114 status collapsed
24115
24116 \begin_layout Plain Layout
24117 Top_Environment
24118 \end_layout
24119
24120 \end_inset
24121
24122  or 
24123 \begin_inset Flex Code
24124 status collapsed
24125
24126 \begin_layout Plain Layout
24127 Centered_Top_Environment
24128 \end_layout
24129
24130 \end_inset
24131
24132 , in which case it defaults to 
24133 \begin_inset Flex Code
24134 status collapsed
24135
24136 \begin_layout Plain Layout
24137 div
24138 \end_layout
24139
24140 \end_inset
24141
24142 .
24143 \end_layout
24144
24145 \begin_layout Description
24146 \begin_inset Flex Code
24147 status collapsed
24148
24149 \begin_layout Plain Layout
24150 HTMLLabelAttr
24151 \end_layout
24152
24153 \end_inset
24154
24155  [
24156 \begin_inset Flex Code
24157 status collapsed
24158
24159 \begin_layout Plain Layout
24160 string
24161 \end_layout
24162
24163 \end_inset
24164
24165 ] Attributes for the label tag.
24166  Defaults to
24167 \begin_inset Newline newline
24168 \end_inset
24169
24170
24171 \begin_inset Quotes eld
24172 \end_inset
24173
24174
24175 \begin_inset Flex Code
24176 status collapsed
24177
24178 \begin_layout Plain Layout
24179 class=`layoutname_label'
24180 \end_layout
24181
24182 \end_inset
24183
24184
24185 \begin_inset Quotes erd
24186 \end_inset
24187
24188 .
24189  This should 
24190 \emph on
24191 not
24192 \emph default
24193  contain any style information.
24194  Use 
24195 \begin_inset Flex Code
24196 status collapsed
24197
24198 \begin_layout Plain Layout
24199 HTMLStyle
24200 \end_layout
24201
24202 \end_inset
24203
24204  for that purpose.
24205 \end_layout
24206
24207 \begin_layout Description
24208 \begin_inset Flex Code
24209 status collapsed
24210
24211 \begin_layout Plain Layout
24212 HTMLLabelFirst
24213 \end_layout
24214
24215 \end_inset
24216
24217  [
24218 \begin_inset Flex Code
24219 status collapsed
24220
24221 \begin_layout Plain Layout
24222
24223 \emph on
24224 0
24225 \emph default
24226 ,1
24227 \end_layout
24228
24229 \end_inset
24230
24231 ] Meaningful only for list-like environments, this tag controls whether
24232  the label tag is output before or inside the item tag.
24233  This is used, for example, in the description environment, where we want
24234  `
24235 \begin_inset Flex Code
24236 status collapsed
24237
24238 \begin_layout Plain Layout
24239 <dt>\SpecialChar ldots
24240 </dt><dd>\SpecialChar ldots
24241 </dd>
24242 \end_layout
24243
24244 \end_inset
24245
24246 .
24247  Default is 
24248 \begin_inset Flex Code
24249 status collapsed
24250
24251 \begin_layout Plain Layout
24252 0
24253 \end_layout
24254
24255 \end_inset
24256
24257 : The label tag is output inside the item tag.
24258 \end_layout
24259
24260 \begin_layout Description
24261 \begin_inset Flex Code
24262 status collapsed
24263
24264 \begin_layout Plain Layout
24265 HTMLPreamble
24266 \end_layout
24267
24268 \end_inset
24269
24270  Information to be output in the 
24271 \begin_inset Flex Code
24272 status collapsed
24273
24274 \begin_layout Plain Layout
24275 <head>
24276 \end_layout
24277
24278 \end_inset
24279
24280  section when this style is used.
24281  This might, for example, be used to include a 
24282 \begin_inset Flex Code
24283 status collapsed
24284
24285 \begin_layout Plain Layout
24286 <script>
24287 \end_layout
24288
24289 \end_inset
24290
24291  block defining an 
24292 \begin_inset Flex Code
24293 status collapsed
24294
24295 \begin_layout Plain Layout
24296 onclick
24297 \end_layout
24298
24299 \end_inset
24300
24301  handler.
24302 \end_layout
24303
24304 \begin_layout Description
24305 \begin_inset Flex Code
24306 status collapsed
24307
24308 \begin_layout Plain Layout
24309 HTMLStyle
24310 \end_layout
24311
24312 \end_inset
24313
24314  CSS style information to be included when this style is used.
24315  Note that this will automatically be wrapped in a layout-generated 
24316 \begin_inset Flex Code
24317 status collapsed
24318
24319 \begin_layout Plain Layout
24320 <style>
24321 \end_layout
24322
24323 \end_inset
24324
24325  block, so only the CSS itself need be included.
24326  Must end with 
24327 \begin_inset Flex Code
24328 status collapsed
24329
24330 \begin_layout Plain Layout
24331 EndHTMLStyle
24332 \end_layout
24333
24334 \end_inset
24335
24336 .
24337 \end_layout
24338
24339 \begin_layout Description
24340 \begin_inset Flex Code
24341 status collapsed
24342
24343 \begin_layout Plain Layout
24344 HTMLTag
24345 \end_layout
24346
24347 \end_inset
24348
24349  [
24350 \begin_inset Flex Code
24351 status collapsed
24352
24353 \begin_layout Plain Layout
24354 string
24355 \end_layout
24356
24357 \end_inset
24358
24359 ] The tag to be used for the main label, replacing 
24360 \begin_inset Flex Code
24361 status collapsed
24362
24363 \begin_layout Plain Layout
24364 tag
24365 \end_layout
24366
24367 \end_inset
24368
24369  in the examples above.
24370  Defaults to 
24371 \begin_inset Flex Code
24372 status collapsed
24373
24374 \begin_layout Plain Layout
24375 div
24376 \end_layout
24377
24378 \end_inset
24379
24380 .
24381 \end_layout
24382
24383 \begin_layout Description
24384 \begin_inset Flex Code
24385 status collapsed
24386
24387 \begin_layout Plain Layout
24388 HTMLTitle
24389 \end_layout
24390
24391 \end_inset
24392
24393  [
24394 \begin_inset Flex Code
24395 status collapsed
24396
24397 \begin_layout Plain Layout
24398
24399 \emph on
24400 0
24401 \emph default
24402 ,1
24403 \end_layout
24404
24405 \end_inset
24406
24407 ] Marks this style as the one to be used to generate the 
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412 <title>
24413 \end_layout
24414
24415 \end_inset
24416
24417  tag for the XHTML file.
24418  By default, it is false.
24419  The 
24420 \begin_inset Flex Code
24421 status collapsed
24422
24423 \begin_layout Plain Layout
24424 stdtitle.inc
24425 \end_layout
24426
24427 \end_inset
24428
24429  file sets it to true for the 
24430 \begin_inset Flex Code
24431 status collapsed
24432
24433 \begin_layout Plain Layout
24434 title
24435 \end_layout
24436
24437 \end_inset
24438
24439  environment.
24440  
24441 \end_layout
24442
24443 \begin_layout Subsection
24444 InsetLayout XHTML
24445 \end_layout
24446
24447 \begin_layout Standard
24448 The XHTML output of insets can also be controlled by information in layout
24449  files.
24450 \begin_inset Foot
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454 At present, this is true only for 
24455 \begin_inset Quotes eld
24456 \end_inset
24457
24458 text
24459 \begin_inset Quotes erd
24460 \end_inset
24461
24462  insets (insets you can type into) and is not true for 
24463 \begin_inset Quotes eld
24464 \end_inset
24465
24466 command
24467 \begin_inset Quotes erd
24468 \end_inset
24469
24470  insets (insets that are associated with dialog boxes).
24471 \end_layout
24472
24473 \end_inset
24474
24475  Here, too, \SpecialChar LyX
24476  tries to provide sensible defaults, and it constructs default
24477  CSS style rules.
24478  But everything can be customized.
24479 \end_layout
24480
24481 \begin_layout Standard
24482 The XHTML \SpecialChar LyX
24483  outputs for an inset has the following form:
24484 \end_layout
24485
24486 \begin_layout LyX-Code
24487 <tag attr=
24488 \begin_inset Quotes erd
24489 \end_inset
24490
24491 value
24492 \begin_inset Quotes erd
24493 \end_inset
24494
24495 >
24496 \end_layout
24497
24498 \begin_layout LyX-Code
24499 <labeltag>Label</labeltag>
24500 \end_layout
24501
24502 \begin_layout LyX-Code
24503 <innertag attr=
24504 \begin_inset Quotes erd
24505 \end_inset
24506
24507 value
24508 \begin_inset Quotes erd
24509 \end_inset
24510
24511 >Contents of the inset.</innertag>
24512 \end_layout
24513
24514 \begin_layout LyX-Code
24515 </tag>
24516 \end_layout
24517
24518 \begin_layout Standard
24519 If the inset permits multiple paragraphs—that is, if 
24520 \begin_inset Flex Code
24521 status collapsed
24522
24523 \begin_layout Plain Layout
24524 MultiPar
24525 \end_layout
24526
24527 \end_inset
24528
24529  is true—then the contents of the inset will itself be output as paragraphs
24530  formatted according to the styles used for those paragraphs (standard,
24531  quote, and the like).
24532  The label tag is of course omitted if the paragraph does not have a label
24533  and, at present, is always 
24534 \begin_inset Flex Code
24535 status collapsed
24536
24537 \begin_layout Plain Layout
24538 span
24539 \end_layout
24540
24541 \end_inset
24542
24543 .
24544  The inner tag is optional and, by default, does not appear.
24545 \end_layout
24546
24547 \begin_layout Standard
24548 The specific tags and attributes output for each inset can be controlled
24549  by means of the following layout tags.
24550 \end_layout
24551
24552 \begin_layout Description
24553 \begin_inset Flex Code
24554 status collapsed
24555
24556 \begin_layout Plain Layout
24557 HTMLAttr
24558 \end_layout
24559
24560 \end_inset
24561
24562  [
24563 \begin_inset Flex Code
24564 status collapsed
24565
24566 \begin_layout Plain Layout
24567 string
24568 \end_layout
24569
24570 \end_inset
24571
24572 ] Specifies attribute information to be output with the main tag.
24573  For example, 
24574 \begin_inset Quotes eld
24575 \end_inset
24576
24577
24578 \begin_inset Flex Code
24579 status collapsed
24580
24581 \begin_layout Plain Layout
24582 class=`myinset' onclick=`\SpecialChar ldots
24583 '
24584 \end_layout
24585
24586 \end_inset
24587
24588
24589 \begin_inset Quotes erd
24590 \end_inset
24591
24592 .
24593  By default, \SpecialChar LyX
24594  will output 
24595 \begin_inset Quotes eld
24596 \end_inset
24597
24598
24599 \begin_inset Flex Code
24600 status collapsed
24601
24602 \begin_layout Plain Layout
24603 class=`insetname'
24604 \end_layout
24605
24606 \end_inset
24607
24608
24609 \begin_inset Quotes erd
24610 \end_inset
24611
24612 , where 
24613 \begin_inset Flex Code
24614 status collapsed
24615
24616 \begin_layout Plain Layout
24617 insetname
24618 \end_layout
24619
24620 \end_inset
24621
24622  is the \SpecialChar LyX
24623  name of the inset, made lowercase and with non-alphanumeric characters
24624  converted to underscores, for example: footnote.
24625 \end_layout
24626
24627 \begin_layout Description
24628 \begin_inset Flex Code
24629 status collapsed
24630
24631 \begin_layout Plain Layout
24632 HTMLForceCSS
24633 \end_layout
24634
24635 \end_inset
24636
24637  [
24638 \begin_inset Flex Code
24639 status collapsed
24640
24641 \begin_layout Plain Layout
24642
24643 \emph on
24644 0
24645 \emph default
24646 ,1
24647 \end_layout
24648
24649 \end_inset
24650
24651 ] Whether to output the default CSS information \SpecialChar LyX
24652  generates for this layout,
24653  even if additional information is explicitly provided via 
24654 \begin_inset Flex Code
24655 status collapsed
24656
24657 \begin_layout Plain Layout
24658 HTMLStyle
24659 \end_layout
24660
24661 \end_inset
24662
24663 .
24664  Setting this to 
24665 \begin_inset Flex Code
24666 status collapsed
24667
24668 \begin_layout Plain Layout
24669 1
24670 \end_layout
24671
24672 \end_inset
24673
24674  allows you to alter or augment the generated CSS, rather than to override
24675  it completely.
24676  Default is 0.
24677 \end_layout
24678
24679 \begin_layout Description
24680 \begin_inset Flex Code
24681 status collapsed
24682
24683 \begin_layout Plain Layout
24684 HTMLInnerAttr
24685 \end_layout
24686
24687 \end_inset
24688
24689  [
24690 \begin_inset Flex Code
24691 status collapsed
24692
24693 \begin_layout Plain Layout
24694 string
24695 \end_layout
24696
24697 \end_inset
24698
24699 ] Attributes for the inner tag.
24700  Defaults to
24701 \begin_inset Newline newline
24702 \end_inset
24703
24704
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 class=`insetname_inner'
24714 \end_layout
24715
24716 \end_inset
24717
24718
24719 \begin_inset Quotes erd
24720 \end_inset
24721
24722 .
24723 \end_layout
24724
24725 \begin_layout Description
24726 \begin_inset Flex Code
24727 status collapsed
24728
24729 \begin_layout Plain Layout
24730 HTMLInnerTag
24731 \end_layout
24732
24733 \end_inset
24734
24735  [
24736 \begin_inset Flex Code
24737 status collapsed
24738
24739 \begin_layout Plain Layout
24740 string
24741 \end_layout
24742
24743 \end_inset
24744
24745 ] The inner tag, replacing 
24746 \begin_inset Flex Code
24747 status collapsed
24748
24749 \begin_layout Plain Layout
24750 innertag
24751 \end_layout
24752
24753 \end_inset
24754
24755  in the examples above.
24756  By default, there is none.
24757 \end_layout
24758
24759 \begin_layout Description
24760 \begin_inset Flex Code
24761 status collapsed
24762
24763 \begin_layout Plain Layout
24764 HTMLIsBlock
24765 \end_layout
24766
24767 \end_inset
24768
24769  [
24770 \begin_inset Flex Code
24771 status collapsed
24772
24773 \begin_layout Plain Layout
24774 0,
24775 \emph on
24776 1
24777 \end_layout
24778
24779 \end_inset
24780
24781 ] Whether this inset represents a standalone block of text (such as a footnote)
24782  or instead represents material that is included in the surrounding text
24783  (such as a branch).
24784  Defaults to 1.
24785 \end_layout
24786
24787 \begin_layout Description
24788 \begin_inset Flex Code
24789 status collapsed
24790
24791 \begin_layout Plain Layout
24792 HTMLLabel
24793 \end_layout
24794
24795 \end_inset
24796
24797  [
24798 \begin_inset Flex Code
24799 status collapsed
24800
24801 \begin_layout Plain Layout
24802 string
24803 \end_layout
24804
24805 \end_inset
24806
24807 ] A label for this inset, possibly including a reference to a counter.
24808  For example, for footnote, it might be: 
24809 \begin_inset Flex Code
24810 status collapsed
24811
24812 \begin_layout Plain Layout
24813
24814 \backslash
24815 arabic{footnote}
24816 \end_layout
24817
24818 \end_inset
24819
24820 .
24821  This is optional, and there is no default.
24822 \end_layout
24823
24824 \begin_layout Description
24825 \begin_inset Flex Code
24826 status collapsed
24827
24828 \begin_layout Plain Layout
24829 HTMLPreamble
24830 \end_layout
24831
24832 \end_inset
24833
24834  Information to be output in the 
24835 \begin_inset Flex Code
24836 status collapsed
24837
24838 \begin_layout Plain Layout
24839 <head>
24840 \end_layout
24841
24842 \end_inset
24843
24844  section when this style is used.
24845  This might, for example, be used to include a 
24846 \begin_inset Flex Code
24847 status collapsed
24848
24849 \begin_layout Plain Layout
24850 <script>
24851 \end_layout
24852
24853 \end_inset
24854
24855  block defining an 
24856 \begin_inset Flex Code
24857 status collapsed
24858
24859 \begin_layout Plain Layout
24860 onclick
24861 \end_layout
24862
24863 \end_inset
24864
24865  handler.
24866 \end_layout
24867
24868 \begin_layout Description
24869 \begin_inset Flex Code
24870 status collapsed
24871
24872 \begin_layout Plain Layout
24873 HTMLStyle
24874 \end_layout
24875
24876 \end_inset
24877
24878  CSS style information to be included when this style is used.
24879  Note that this will automatically be wrapped in a layout-generated 
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 <style>
24885 \end_layout
24886
24887 \end_inset
24888
24889  block, so only the CSS itself need be included.
24890 \end_layout
24891
24892 \begin_layout Description
24893 \begin_inset Flex Code
24894 status collapsed
24895
24896 \begin_layout Plain Layout
24897 HTMLTag
24898 \end_layout
24899
24900 \end_inset
24901
24902  [
24903 \begin_inset Flex Code
24904 status collapsed
24905
24906 \begin_layout Plain Layout
24907 string
24908 \end_layout
24909
24910 \end_inset
24911
24912 ] The tag to be used for the main label, replacing 
24913 \begin_inset Flex Code
24914 status collapsed
24915
24916 \begin_layout Plain Layout
24917 tag
24918 \end_layout
24919
24920 \end_inset
24921
24922  in the examples above.
24923  The default depends upon the setting of 
24924 \begin_inset Flex Code
24925 status collapsed
24926
24927 \begin_layout Plain Layout
24928 MultiPar
24929 \end_layout
24930
24931 \end_inset
24932
24933 : If 
24934 \begin_inset Flex Code
24935 status collapsed
24936
24937 \begin_layout Plain Layout
24938 MultiPar
24939 \end_layout
24940
24941 \end_inset
24942
24943  is true, the default is 
24944 \begin_inset Flex Code
24945 status collapsed
24946
24947 \begin_layout Plain Layout
24948 div
24949 \end_layout
24950
24951 \end_inset
24952
24953 ; if it is false, the default is 
24954 \begin_inset Flex Code
24955 status collapsed
24956
24957 \begin_layout Plain Layout
24958 span
24959 \end_layout
24960
24961 \end_inset
24962
24963 .
24964 \end_layout
24965
24966 \begin_layout Subsection
24967 Float XHTML
24968 \end_layout
24969
24970 \begin_layout Standard
24971 The XHTML output for floats too can be controlled by layout information.
24972  The output has the following form:
24973 \end_layout
24974
24975 \begin_layout LyX-Code
24976 <tag attr=
24977 \begin_inset Quotes erd
24978 \end_inset
24979
24980 value
24981 \begin_inset Quotes erd
24982 \end_inset
24983
24984 >
24985 \end_layout
24986
24987 \begin_layout LyX-Code
24988 Contents of the float.
24989 \end_layout
24990
24991 \begin_layout LyX-Code
24992 </tag>
24993 \end_layout
24994
24995 \begin_layout Standard
24996 The caption, if there is one, is a separate inset and will be output as
24997  such.
24998  Its appearance can be controlled via the InsetLayout for caption insets.
24999  
25000 \end_layout
25001
25002 \begin_layout Description
25003 \begin_inset Flex Code
25004 status collapsed
25005
25006 \begin_layout Plain Layout
25007 HTMLAttr
25008 \end_layout
25009
25010 \end_inset
25011
25012  [
25013 \begin_inset Flex Code
25014 status collapsed
25015
25016 \begin_layout Plain Layout
25017 string
25018 \end_layout
25019
25020 \end_inset
25021
25022 ] Specifies attribute information to be output with the main tag.
25023  For example, 
25024 \begin_inset Quotes eld
25025 \end_inset
25026
25027
25028 \begin_inset Flex Code
25029 status collapsed
25030
25031 \begin_layout Plain Layout
25032 class=`myfloat' onclick=`\SpecialChar ldots
25033 '
25034 \end_layout
25035
25036 \end_inset
25037
25038
25039 \begin_inset Quotes erd
25040 \end_inset
25041
25042 .
25043  By default, \SpecialChar LyX
25044  will output 
25045 \begin_inset Quotes eld
25046 \end_inset
25047
25048
25049 \begin_inset Flex Code
25050 status collapsed
25051
25052 \begin_layout Plain Layout
25053 class=`float float-floattype'
25054 \end_layout
25055
25056 \end_inset
25057
25058
25059 \begin_inset Quotes erd
25060 \end_inset
25061
25062 , where 
25063 \begin_inset Flex Code
25064 status collapsed
25065
25066 \begin_layout Plain Layout
25067 floattype
25068 \end_layout
25069
25070 \end_inset
25071
25072  is \SpecialChar LyX
25073 's name for this type of float, as determined by the float declaration
25074  (see 
25075 \begin_inset CommandInset ref
25076 LatexCommand ref
25077 reference "subsec:Floats"
25078
25079 \end_inset
25080
25081 ), though made lowercase and with non-alphanumeric characters converted
25082  to underscores, for example: float-table.
25083 \end_layout
25084
25085 \begin_layout Description
25086 \begin_inset Flex Code
25087 status collapsed
25088
25089 \begin_layout Plain Layout
25090 HTMLStyle
25091 \end_layout
25092
25093 \end_inset
25094
25095  CSS style information to be included when this float is used.
25096  Note that this will automatically be wrapped in a layout-generated 
25097 \begin_inset Flex Code
25098 status collapsed
25099
25100 \begin_layout Plain Layout
25101 <style>
25102 \end_layout
25103
25104 \end_inset
25105
25106  block, so only the CSS itself need be included.
25107 \end_layout
25108
25109 \begin_layout Description
25110 \begin_inset Flex Code
25111 status collapsed
25112
25113 \begin_layout Plain Layout
25114 HTMLTag
25115 \end_layout
25116
25117 \end_inset
25118
25119  [
25120 \begin_inset Flex Code
25121 status collapsed
25122
25123 \begin_layout Plain Layout
25124 string
25125 \end_layout
25126
25127 \end_inset
25128
25129 ] The tag to be used for this float, replacing 
25130 \begin_inset Quotes eld
25131 \end_inset
25132
25133
25134 \begin_inset Flex Code
25135 status collapsed
25136
25137 \begin_layout Plain Layout
25138 tag
25139 \end_layout
25140
25141 \end_inset
25142
25143
25144 \begin_inset Quotes erd
25145 \end_inset
25146
25147  in the example above.
25148  The default is 
25149 \begin_inset Flex Code
25150 status collapsed
25151
25152 \begin_layout Plain Layout
25153 div
25154 \end_layout
25155
25156 \end_inset
25157
25158  and will rarely need changing.
25159 \end_layout
25160
25161 \begin_layout Subsection
25162 Bibliography formatting
25163 \end_layout
25164
25165 \begin_layout Standard
25166 The bibliography can be formatted using 
25167 \begin_inset Flex Code
25168 status collapsed
25169
25170 \begin_layout Plain Layout
25171 CiteFormat
25172 \end_layout
25173
25174 \end_inset
25175
25176  blocks.
25177  See 
25178 \begin_inset CommandInset ref
25179 LatexCommand ref
25180 reference "subsec:Citation-format-description"
25181
25182 \end_inset
25183
25184  for the details.
25185 \end_layout
25186
25187 \begin_layout Subsection
25188 \SpecialChar LyX
25189 -generated CSS
25190 \end_layout
25191
25192 \begin_layout Standard
25193 We have several times mentioned that \SpecialChar LyX
25194  will generate default CSS style rules
25195  for both insets and paragraph styles, based upon the other layout information
25196  that is provided.
25197  In this section, we shall say a word about which layout information \SpecialChar LyX
25198  uses
25199  and how.
25200 \end_layout
25201
25202 \begin_layout Standard
25203 At present, \SpecialChar LyX
25204  auto-generates CSS only for font information, making use of
25205  the 
25206 \begin_inset Flex Code
25207 status collapsed
25208
25209 \begin_layout Plain Layout
25210 Family
25211 \end_layout
25212
25213 \end_inset
25214
25215
25216 \begin_inset Flex Code
25217 status collapsed
25218
25219 \begin_layout Plain Layout
25220 Series
25221 \end_layout
25222
25223 \end_inset
25224
25225
25226 \begin_inset Flex Code
25227 status collapsed
25228
25229 \begin_layout Plain Layout
25230 Shape
25231 \end_layout
25232
25233 \end_inset
25234
25235 , and 
25236 \begin_inset Flex Code
25237 status collapsed
25238
25239 \begin_layout Plain Layout
25240 Size
25241 \end_layout
25242
25243 \end_inset
25244
25245  specified in the 
25246 \begin_inset Flex Code
25247 status collapsed
25248
25249 \begin_layout Plain Layout
25250 Font
25251 \end_layout
25252
25253 \end_inset
25254
25255  declaration (see 
25256 \begin_inset CommandInset ref
25257 LatexCommand ref
25258 reference "subsec:Font-description"
25259
25260 \end_inset
25261
25262 ).
25263  The translation is mostly straightforward and obvious.
25264  For example, 
25265 \begin_inset Quotes eld
25266 \end_inset
25267
25268
25269 \begin_inset Flex Code
25270 status collapsed
25271
25272 \begin_layout Plain Layout
25273 Family Sans
25274 \end_layout
25275
25276 \end_inset
25277
25278
25279 \begin_inset Quotes erd
25280 \end_inset
25281
25282  becomes 
25283 \begin_inset Quotes eld
25284 \end_inset
25285
25286
25287 \begin_inset Flex Code
25288 status collapsed
25289
25290 \begin_layout Plain Layout
25291 font-family: sans-serif;
25292 \end_layout
25293
25294 \end_inset
25295
25296
25297 \begin_inset Quotes erd
25298 \end_inset
25299
25300 .
25301  The correspondence of \SpecialChar LyX
25302  sizes and CSS sizes is a little less obvious but
25303  nonetheless intuitive.
25304  See the 
25305 \begin_inset Flex Code
25306 status collapsed
25307
25308 \begin_layout Plain Layout
25309 getSizeCSS()
25310 \end_layout
25311
25312 \end_inset
25313
25314  function in 
25315 \begin_inset Flex URL
25316 status collapsed
25317
25318 \begin_layout Plain Layout
25319
25320 src/FontInfo.cpp
25321 \end_layout
25322
25323 \end_inset
25324
25325  for the details.
25326 \end_layout
25327
25328 \begin_layout Chapter
25329 Including External Material
25330 \begin_inset CommandInset label
25331 LatexCommand label
25332 name "chap:Including-External-Material"
25333
25334 \end_inset
25335
25336
25337 \end_layout
25338
25339 \begin_layout Standard
25340 \begin_inset Box Shadowbox
25341 position "t"
25342 hor_pos "c"
25343 has_inner_box 1
25344 inner_pos "t"
25345 use_parbox 0
25346 use_makebox 0
25347 width "100col%"
25348 special "none"
25349 height "1in"
25350 height_special "totalheight"
25351 thickness "0.4pt"
25352 separation "3pt"
25353 shadowsize "4pt"
25354 framecolor "black"
25355 backgroundcolor "none"
25356 status open
25357
25358 \begin_layout Plain Layout
25359 WARNING: This portion of the documentation has not been updated for some
25360  time.
25361  We certainly hope that it is still accurate, but there are no guarantees.
25362 \end_layout
25363
25364 \end_inset
25365
25366
25367 \end_layout
25368
25369 \begin_layout Standard
25370 The use of material from sources external to \SpecialChar LyX
25371  is covered in detail in the
25372  
25373 \emph on
25374 Embedded Objects
25375 \emph default
25376  manual.
25377  This part of the manual covers what needs to happen behind the scenes for
25378  new sorts of material to be included.
25379 \end_layout
25380
25381 \begin_layout Section
25382 How does it work?
25383 \end_layout
25384
25385 \begin_layout Standard
25386 The external material feature is based on the concept of a 
25387 \emph on
25388 template
25389 \emph default
25390 .
25391  A template is a specification of how \SpecialChar LyX
25392  should interface with a certain kind
25393  of material.
25394  As bundled, \SpecialChar LyX
25395  comes with predefined templates for Xfig figures, various
25396  raster format images, chess diagrams, and LilyPond music notation.
25397  You can check the actual list by using the menu 
25398 \begin_inset Flex Noun
25399 status collapsed
25400
25401 \begin_layout Plain Layout
25402 Insert\SpecialChar menuseparator
25403 File\SpecialChar menuseparator
25404 External Material
25405 \end_layout
25406
25407 \end_inset
25408
25409 .
25410  Furthermore, it is possible to roll your own template to support a specific
25411  kind of material.
25412  Later we'll describe in more detail what is involved, and hopefully you
25413  will submit all the templates you create so we can include them in a later
25414  \SpecialChar LyX
25415  version.
25416 \end_layout
25417
25418 \begin_layout Standard
25419 Another basic idea of the external material feature is to distinguish between
25420  the original file that serves as a base for final material and the produced
25421  file that is included in your exported or printed document.
25422  For example, consider the case of a figure produced with 
25423 \begin_inset Flex Code
25424 status collapsed
25425
25426 \begin_layout Plain Layout
25427 Xfig
25428 \end_layout
25429
25430 \end_inset
25431
25432 .
25433  The Xfig application itself works on an original file with the 
25434 \begin_inset Flex Code
25435 status collapsed
25436
25437 \begin_layout Plain Layout
25438 .fig
25439 \end_layout
25440
25441 \end_inset
25442
25443  extension.
25444  Within Xfig, you create and change your figure, and when you are done,
25445  you save the 
25446 \begin_inset Flex Code
25447 status collapsed
25448
25449 \begin_layout Plain Layout
25450 fig
25451 \end_layout
25452
25453 \end_inset
25454
25455 -file.
25456  When you want to include the figure in your document, you invoke 
25457 \begin_inset Flex Code
25458 status collapsed
25459
25460 \begin_layout Plain Layout
25461 transfig
25462 \end_layout
25463
25464 \end_inset
25465
25466  in order to create a PostScript file that can readily be included in your
25467  \SpecialChar LaTeX
25468  file.
25469  In this case, the 
25470 \begin_inset Flex Code
25471 status collapsed
25472
25473 \begin_layout Plain Layout
25474 .fig
25475 \end_layout
25476
25477 \end_inset
25478
25479  file is the original file, and the PostScript file is the produced file.
25480 \end_layout
25481
25482 \begin_layout Standard
25483 This distinction is important in order to allow updating of the material
25484  while you are in the process of writing the document.
25485  Furthermore, it provides us with the flexibility that is needed to support
25486  multiple export formats.
25487  For instance, in the case of a plain text file, it is not exactly an award-winn
25488 ing idea to include the figure as raw PostScript.
25489  Instead, you would either prefer to just include a reference to the figure
25490  or try to invoke some graphics to ASCII converter to make the final result
25491  look similar to the real graphics.
25492  The external material management allows you to do this, because it is parametri
25493 zed on the different export formats that \SpecialChar LyX
25494  supports.
25495 \end_layout
25496
25497 \begin_layout Standard
25498 Besides supporting the production of different products according to the
25499  exported format, it supports tight integration with editing and viewing
25500  applications.
25501  In the case of an Xfig figure, you are able to invoke Xfig on the original
25502  file with a single click from within the external material dialog in \SpecialChar LyX
25503 ,
25504  and also preview the produced PostScript file with Ghostview with another
25505  click.
25506  No more fiddling around with the command line and/or file browsers to locate
25507  and manipulate the original or produced files.
25508  In this way, you are finally able to take full advantage of the many different
25509  applications that are relevant to use when you write your documents, and
25510  ultimately be more productive.
25511 \end_layout
25512
25513 \begin_layout Section
25514 The external template configuration files
25515 \end_layout
25516
25517 \begin_layout Standard
25518 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25519 .
25520  However, be aware that doing this in an careless manner most probably 
25521 \emph on
25522 will
25523 \emph default
25524  introduce an easily exploitable security hole.
25525  So before you do this, please read the discussion about security in 
25526 \begin_inset CommandInset ref
25527 LatexCommand ref
25528 reference "sec:Security-discussion"
25529
25530 \end_inset
25531
25532 .
25533 \end_layout
25534
25535 \begin_layout Standard
25536 Having said that, we encourage you to submit any interesting templates that
25537  you create.
25538  
25539 \end_layout
25540
25541 \begin_layout Standard
25542 The external templates are defined in the 
25543 \begin_inset Flex Code
25544 status collapsed
25545
25546 \begin_layout Plain Layout
25547 *.xtemplate
25548 \end_layout
25549
25550 \end_inset
25551
25552  files that are stored in the 
25553 \begin_inset Flex Code
25554 status collapsed
25555
25556 \begin_layout Plain Layout
25557 LyXDir/lib/xtemplates/
25558 \end_layout
25559
25560 \end_inset
25561
25562  directory.
25563  Each template is defined in a file of its own.
25564  You can place your own templates in 
25565 \begin_inset Flex Code
25566 status collapsed
25567
25568 \begin_layout Plain Layout
25569 UserDir/xtemplates/
25570 \end_layout
25571
25572 \end_inset
25573
25574  or copy existing templates to that directory in order to modify them.
25575 \end_layout
25576
25577 \begin_layout Standard
25578 A typical template looks like this:
25579 \end_layout
25580
25581 \begin_layout LyX-Code
25582 Template XFig
25583 \end_layout
25584
25585 \begin_layout LyX-Code
25586 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25587 \end_layout
25588
25589 \begin_layout LyX-Code
25590 HelpText
25591 \end_layout
25592
25593 \begin_layout LyX-Code
25594 An XFig figure.
25595 \end_layout
25596
25597 \begin_layout LyX-Code
25598 HelpTextEnd
25599 \end_layout
25600
25601 \begin_layout LyX-Code
25602 InputFormat fig
25603 \end_layout
25604
25605 \begin_layout LyX-Code
25606 FileFilter "*.fig"
25607 \end_layout
25608
25609 \begin_layout LyX-Code
25610 AutomaticProduction true
25611 \end_layout
25612
25613 \begin_layout LyX-Code
25614 Transform Rotate
25615 \end_layout
25616
25617 \begin_layout LyX-Code
25618 Transform Resize
25619 \end_layout
25620
25621 \begin_layout LyX-Code
25622 Format LaTeX
25623 \end_layout
25624
25625 \begin_layout LyX-Code
25626 TransformCommand Rotate RotationLatexCommand
25627 \end_layout
25628
25629 \begin_layout LyX-Code
25630 TransformCommand Resize ResizeLatexCommand
25631 \end_layout
25632
25633 \begin_layout LyX-Code
25634 Product "$$RotateFront$$ResizeFront
25635 \end_layout
25636
25637 \begin_layout LyX-Code
25638          
25639 \backslash
25640
25641 \backslash
25642 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25643 \end_layout
25644
25645 \begin_layout LyX-Code
25646          $$ResizeBack$$RotateBack"
25647 \end_layout
25648
25649 \begin_layout LyX-Code
25650 UpdateFormat pstex
25651 \end_layout
25652
25653 \begin_layout LyX-Code
25654 UpdateResult "$$AbsPath$$Basename.pstex_t"
25655 \end_layout
25656
25657 \begin_layout LyX-Code
25658 Requirement "graphicx"
25659 \end_layout
25660
25661 \begin_layout LyX-Code
25662 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25663 \end_layout
25664
25665 \begin_layout LyX-Code
25666 ReferencedFile latex "$$AbsPath$$Basename.eps"
25667 \end_layout
25668
25669 \begin_layout LyX-Code
25670 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25671 \end_layout
25672
25673 \begin_layout LyX-Code
25674 FormatEnd
25675 \end_layout
25676
25677 \begin_layout LyX-Code
25678 Format PDFLaTeX
25679 \end_layout
25680
25681 \begin_layout LyX-Code
25682 TransformCommand Rotate RotationLatexCommand
25683 \end_layout
25684
25685 \begin_layout LyX-Code
25686 TransformCommand Resize ResizeLatexCommand
25687 \end_layout
25688
25689 \begin_layout LyX-Code
25690 Product "$$RotateFront$$ResizeFront
25691 \end_layout
25692
25693 \begin_layout LyX-Code
25694          
25695 \backslash
25696
25697 \backslash
25698 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25699 \end_layout
25700
25701 \begin_layout LyX-Code
25702          $$ResizeBack$$RotateBack"
25703 \end_layout
25704
25705 \begin_layout LyX-Code
25706 UpdateFormat pdftex
25707 \end_layout
25708
25709 \begin_layout LyX-Code
25710 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25711 \end_layout
25712
25713 \begin_layout LyX-Code
25714 Requirement "graphicx"
25715 \end_layout
25716
25717 \begin_layout LyX-Code
25718 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25719 \end_layout
25720
25721 \begin_layout LyX-Code
25722 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25723 \end_layout
25724
25725 \begin_layout LyX-Code
25726 FormatEnd
25727 \end_layout
25728
25729 \begin_layout LyX-Code
25730 Format Ascii
25731 \end_layout
25732
25733 \begin_layout LyX-Code
25734 Product "[XFig: $$FName]"
25735 \end_layout
25736
25737 \begin_layout LyX-Code
25738 FormatEnd
25739 \end_layout
25740
25741 \begin_layout LyX-Code
25742 Format DocBook
25743 \end_layout
25744
25745 \begin_layout LyX-Code
25746 Product "<graphic fileref=
25747 \backslash
25748 "$$AbsOrRelPathMaster$$Basename.eps
25749 \backslash
25750 ">
25751 \end_layout
25752
25753 \begin_layout LyX-Code
25754          </graphic>"
25755 \end_layout
25756
25757 \begin_layout LyX-Code
25758 UpdateFormat eps
25759 \end_layout
25760
25761 \begin_layout LyX-Code
25762 UpdateResult "$$AbsPath$$Basename.eps"
25763 \end_layout
25764
25765 \begin_layout LyX-Code
25766 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25767 \end_layout
25768
25769 \begin_layout LyX-Code
25770 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25771 \end_layout
25772
25773 \begin_layout LyX-Code
25774 FormatEnd
25775 \end_layout
25776
25777 \begin_layout LyX-Code
25778 TemplateEnd
25779 \end_layout
25780
25781 \begin_layout Standard
25782 As you can see, the template is enclosed in 
25783 \begin_inset Flex Code
25784 status collapsed
25785
25786 \begin_layout Plain Layout
25787 Template
25788 \end_layout
25789
25790 \end_inset
25791
25792  \SpecialChar ldots
25793  
25794 \begin_inset Flex Code
25795 status collapsed
25796
25797 \begin_layout Plain Layout
25798 TemplateEnd
25799 \end_layout
25800
25801 \end_inset
25802
25803 .
25804  It contains a header specifying some general settings and, for each supported
25805  primary document file format, a section 
25806 \begin_inset Flex Code
25807 status collapsed
25808
25809 \begin_layout Plain Layout
25810 Format
25811 \end_layout
25812
25813 \end_inset
25814
25815  \SpecialChar ldots
25816  
25817 \begin_inset Flex Code
25818 status collapsed
25819
25820 \begin_layout Plain Layout
25821 FormatEnd
25822 \end_layout
25823
25824 \end_inset
25825
25826 .
25827 \end_layout
25828
25829 \begin_layout Subsection
25830 The template header
25831 \end_layout
25832
25833 \begin_layout Description
25834 \begin_inset Flex Code
25835 status collapsed
25836
25837 \begin_layout Plain Layout
25838 AutomaticProduction
25839 \begin_inset space ~
25840 \end_inset
25841
25842 true|false
25843 \end_layout
25844
25845 \end_inset
25846
25847  Whether the file represented by the template must be generated by \SpecialChar LyX
25848 .
25849  This command must occur exactly once.
25850 \end_layout
25851
25852 \begin_layout Description
25853 \begin_inset Flex Code
25854 status collapsed
25855
25856 \begin_layout Plain Layout
25857 FileFilter
25858 \begin_inset space ~
25859 \end_inset
25860
25861 <pattern>
25862 \end_layout
25863
25864 \end_inset
25865
25866  A glob pattern that is used in the file dialog to filter out the desired
25867  files.
25868  If there is more than one possible file extension (e.
25869 \begin_inset space \thinspace{}
25870 \end_inset
25871
25872 g.
25873 \begin_inset space \space{}
25874 \end_inset
25875
25876 tgif has 
25877 \begin_inset Flex Code
25878 status collapsed
25879
25880 \begin_layout Plain Layout
25881 .obj
25882 \end_layout
25883
25884 \end_inset
25885
25886  and 
25887 \begin_inset Flex Code
25888 status collapsed
25889
25890 \begin_layout Plain Layout
25891 .tgo
25892 \end_layout
25893
25894 \end_inset
25895
25896 ), use something like 
25897 \begin_inset Flex Code
25898 status collapsed
25899
25900 \begin_layout Plain Layout
25901 "*.{obj,tgo}"
25902 \end_layout
25903
25904 \end_inset
25905
25906 .
25907  This command must occur exactly once.
25908 \end_layout
25909
25910 \begin_layout Description
25911 \begin_inset Flex Code
25912 status collapsed
25913
25914 \begin_layout Plain Layout
25915 GuiName
25916 \begin_inset space ~
25917 \end_inset
25918
25919 <guiname>
25920 \end_layout
25921
25922 \end_inset
25923
25924  The text that is displayed on the button.
25925  This command must occur exactly once.
25926 \end_layout
25927
25928 \begin_layout Description
25929 \begin_inset Flex Code
25930 status collapsed
25931
25932 \begin_layout Plain Layout
25933 HelpText
25934 \begin_inset space ~
25935 \end_inset
25936
25937 <text>
25938 \begin_inset space ~
25939 \end_inset
25940
25941 HelpTextEnd
25942 \end_layout
25943
25944 \end_inset
25945
25946  The help text that is used in the External dialog.
25947  Provide enough information to explain to the user just what the template
25948  can provide him with.
25949  This command must occur exactly once.
25950 \end_layout
25951
25952 \begin_layout Description
25953 \begin_inset Flex Code
25954 status collapsed
25955
25956 \begin_layout Plain Layout
25957 InputFormat
25958 \begin_inset space ~
25959 \end_inset
25960
25961 <format>
25962 \end_layout
25963
25964 \end_inset
25965
25966  The file format of the original file.
25967  This must be the name of a format that is known to \SpecialChar LyX
25968  (see 
25969 \begin_inset CommandInset ref
25970 LatexCommand ref
25971 reference "sec:Formats"
25972
25973 \end_inset
25974
25975 ).
25976  Use 
25977 \begin_inset Quotes eld
25978 \end_inset
25979
25980
25981 \begin_inset Flex Code
25982 status collapsed
25983
25984 \begin_layout Plain Layout
25985 *
25986 \end_layout
25987
25988 \end_inset
25989
25990
25991 \begin_inset Quotes erd
25992 \end_inset
25993
25994  if the template can handle original files of more than one format.
25995  \SpecialChar LyX
25996  will attempt to interrogate the file itself in order to deduce its format
25997  in this case.
25998  This command must occur exactly once.
25999 \end_layout
26000
26001 \begin_layout Description
26002 \begin_inset Flex Code
26003 status collapsed
26004
26005 \begin_layout Plain Layout
26006 Template
26007 \begin_inset space ~
26008 \end_inset
26009
26010 <id>
26011 \end_layout
26012
26013 \end_inset
26014
26015  A unique name for the template.
26016  It must not contain substitution macros (see below).
26017 \end_layout
26018
26019 \begin_layout Description
26020 \begin_inset Flex Code
26021 status collapsed
26022
26023 \begin_layout Plain Layout
26024 Transform
26025 \begin_inset space ~
26026 \end_inset
26027
26028 Rotate|Resize|Clip|Extra
26029 \end_layout
26030
26031 \end_inset
26032
26033  This command specifies which transformations are supported by this template.
26034  It may occur zero or more times.
26035  This command enables the corresponding tabs in the external dialog.
26036  Each 
26037 \begin_inset Flex Code
26038 status collapsed
26039
26040 \begin_layout Plain Layout
26041 Transform
26042 \end_layout
26043
26044 \end_inset
26045
26046  command must have either a corresponding 
26047 \begin_inset Flex Code
26048 status collapsed
26049
26050 \begin_layout Plain Layout
26051 TransformCommand
26052 \end_layout
26053
26054 \end_inset
26055
26056  or a 
26057 \begin_inset Flex Code
26058 status collapsed
26059
26060 \begin_layout Plain Layout
26061 TransformOption
26062 \end_layout
26063
26064 \end_inset
26065
26066  command in the 
26067 \begin_inset Flex Code
26068 status collapsed
26069
26070 \begin_layout Plain Layout
26071 Format
26072 \end_layout
26073
26074 \end_inset
26075
26076  section.
26077  Otherwise the transformation will not be supported by that format.
26078 \end_layout
26079
26080 \begin_layout Subsection
26081 The Format section
26082 \end_layout
26083
26084 \begin_layout Description
26085 \begin_inset Flex Code
26086 status collapsed
26087
26088 \begin_layout Plain Layout
26089 Format
26090 \begin_inset space ~
26091 \end_inset
26092
26093 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26094 \end_layout
26095
26096 \end_inset
26097
26098  The primary document file format that this format definition is for.
26099  Not every template has a sensible representation in all document file formats.
26100  Please define nevertheless a 
26101 \begin_inset Flex Code
26102 status collapsed
26103
26104 \begin_layout Plain Layout
26105 Format
26106 \end_layout
26107
26108 \end_inset
26109
26110  section for all templates.
26111  Use a dummy text when no representation is available.
26112  Then you can at least see a reference to the external material in the exported
26113  document.
26114 \end_layout
26115
26116 \begin_layout Description
26117 \begin_inset Flex Code
26118 status collapsed
26119
26120 \begin_layout Plain Layout
26121 Option
26122 \begin_inset space ~
26123 \end_inset
26124
26125 <name>
26126 \begin_inset space ~
26127 \end_inset
26128
26129 <value>
26130 \end_layout
26131
26132 \end_inset
26133
26134  This command defines an additional macro 
26135 \begin_inset Flex Code
26136 status collapsed
26137
26138 \begin_layout Plain Layout
26139 $$<name>
26140 \end_layout
26141
26142 \end_inset
26143
26144  for substitution in 
26145 \begin_inset Flex Code
26146 status collapsed
26147
26148 \begin_layout Plain Layout
26149 Product
26150 \end_layout
26151
26152 \end_inset
26153
26154 .
26155  
26156 \begin_inset Flex Code
26157 status collapsed
26158
26159 \begin_layout Plain Layout
26160 <value>
26161 \end_layout
26162
26163 \end_inset
26164
26165  itself may contain substitution macros.
26166  The advantage over using 
26167 \begin_inset Flex Code
26168 status collapsed
26169
26170 \begin_layout Plain Layout
26171 <value>
26172 \end_layout
26173
26174 \end_inset
26175
26176  directly in 
26177 \begin_inset Flex Code
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 Product
26182 \end_layout
26183
26184 \end_inset
26185
26186  is that the substituted value of 
26187 \begin_inset Flex Code
26188 status collapsed
26189
26190 \begin_layout Plain Layout
26191 $$<name>
26192 \end_layout
26193
26194 \end_inset
26195
26196  is sanitized so that it is a valid optional argument in the document format.
26197  This command may occur zero or more times.
26198 \end_layout
26199
26200 \begin_layout Description
26201 \begin_inset Flex Code
26202 status collapsed
26203
26204 \begin_layout Plain Layout
26205 Product
26206 \begin_inset space ~
26207 \end_inset
26208
26209 <text>
26210 \end_layout
26211
26212 \end_inset
26213
26214  The text that is inserted in the exported document.
26215  This is actually the most important command and can be quite complex.
26216  This command must occur exactly once.
26217 \end_layout
26218
26219 \begin_layout Description
26220 \begin_inset Flex Code
26221 status collapsed
26222
26223 \begin_layout Plain Layout
26224 Preamble
26225 \begin_inset space ~
26226 \end_inset
26227
26228 <name>
26229 \end_layout
26230
26231 \end_inset
26232
26233  This command specifies a preamble snippet that will be included in the
26234  \SpecialChar LaTeX
26235  preamble.
26236  It has to be defined using 
26237 \begin_inset Flex Code
26238 status collapsed
26239
26240 \begin_layout Plain Layout
26241 PreambleDef
26242 \end_layout
26243
26244 \end_inset
26245
26246  \SpecialChar ldots
26247  
26248 \begin_inset Flex Code
26249 status collapsed
26250
26251 \begin_layout Plain Layout
26252 PreambleDefEnd
26253 \end_layout
26254
26255 \end_inset
26256
26257 .
26258  This command may occur zero or more times.
26259 \end_layout
26260
26261 \begin_layout Description
26262 \begin_inset Flex Code
26263 status collapsed
26264
26265 \begin_layout Plain Layout
26266 ReferencedFile
26267 \begin_inset space ~
26268 \end_inset
26269
26270 <format>
26271 \begin_inset space ~
26272 \end_inset
26273
26274 <filename>
26275 \end_layout
26276
26277 \end_inset
26278
26279  This command denotes files that are created by the conversion process and
26280  are needed for a particular export format.
26281  If the filename is relative, it is interpreted relative to the master document.
26282  This command may be given zero or more times.
26283 \end_layout
26284
26285 \begin_layout Description
26286 \begin_inset Flex Code
26287 status collapsed
26288
26289 \begin_layout Plain Layout
26290 Requirement
26291 \begin_inset space ~
26292 \end_inset
26293
26294 <package>
26295 \end_layout
26296
26297 \end_inset
26298
26299  The name of a required \SpecialChar LaTeX
26300  package.
26301  The package is included via 
26302 \begin_inset Flex Code
26303 status collapsed
26304
26305 \begin_layout Plain Layout
26306
26307 \backslash
26308 usepackage{}
26309 \end_layout
26310
26311 \end_inset
26312
26313  in the \SpecialChar LaTeX
26314  preamble.
26315  This command may occur zero or more times.
26316 \end_layout
26317
26318 \begin_layout Description
26319 \begin_inset Flex Code
26320 status collapsed
26321
26322 \begin_layout Plain Layout
26323 TransformCommand
26324 \begin_inset space ~
26325 \end_inset
26326
26327 Rotate
26328 \begin_inset space ~
26329 \end_inset
26330
26331 RotationLatexCommand
26332 \end_layout
26333
26334 \end_inset
26335
26336  This command specifies that the built in \SpecialChar LaTeX
26337  command should be used for rotation.
26338  This command may occur once or not at all.
26339 \end_layout
26340
26341 \begin_layout Description
26342 \begin_inset Flex Code
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346 TransformCommand
26347 \begin_inset space ~
26348 \end_inset
26349
26350 Resize
26351 \begin_inset space ~
26352 \end_inset
26353
26354 ResizeLatexCommand
26355 \end_layout
26356
26357 \end_inset
26358
26359  This command specifies that the built in \SpecialChar LaTeX
26360  command should be used for resizing.
26361  This command may occur once or not at all.
26362 \end_layout
26363
26364 \begin_layout Description
26365 \begin_inset Flex Code
26366 status collapsed
26367
26368 \begin_layout Plain Layout
26369 TransformOption
26370 \begin_inset space ~
26371 \end_inset
26372
26373 Rotate
26374 \begin_inset space ~
26375 \end_inset
26376
26377 RotationLatexOption
26378 \end_layout
26379
26380 \end_inset
26381
26382  This command specifies that rotation is done via an optional argument.
26383  This command may occur once or not at all.
26384 \end_layout
26385
26386 \begin_layout Description
26387 \begin_inset Flex Code
26388 status collapsed
26389
26390 \begin_layout Plain Layout
26391 TransformOption
26392 \begin_inset space ~
26393 \end_inset
26394
26395 Resize
26396 \begin_inset space ~
26397 \end_inset
26398
26399 ResizeLatexOption
26400 \end_layout
26401
26402 \end_inset
26403
26404  This command specifies that resizing is done via an optional argument.
26405  This command may occur once or not at all.
26406 \end_layout
26407
26408 \begin_layout Description
26409 \begin_inset Flex Code
26410 status collapsed
26411
26412 \begin_layout Plain Layout
26413 TransformOption
26414 \begin_inset space ~
26415 \end_inset
26416
26417 Clip
26418 \begin_inset space ~
26419 \end_inset
26420
26421 ClipLatexOption
26422 \end_layout
26423
26424 \end_inset
26425
26426  This command specifies that clipping is done via an optional argument.
26427  This command may occur once or not at all.
26428 \end_layout
26429
26430 \begin_layout Description
26431 \begin_inset Flex Code
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435 TransformOption
26436 \begin_inset space ~
26437 \end_inset
26438
26439 Extra
26440 \begin_inset space ~
26441 \end_inset
26442
26443 ExtraLatexOption
26444 \end_layout
26445
26446 \end_inset
26447
26448  This command specifies that an extra optional argument is used.
26449  This command may occur once or not at all.
26450 \end_layout
26451
26452 \begin_layout Description
26453 \begin_inset Flex Code
26454 status collapsed
26455
26456 \begin_layout Plain Layout
26457 UpdateFormat
26458 \begin_inset space ~
26459 \end_inset
26460
26461 <format>
26462 \end_layout
26463
26464 \end_inset
26465
26466  The file format of the converted file.
26467  This must be the name of a format that is known to \SpecialChar LyX
26468  (see the 
26469 \begin_inset Flex Noun
26470 status collapsed
26471
26472 \begin_layout Plain Layout
26473 Tools\SpecialChar menuseparator
26474 Preferences\SpecialChar menuseparator
26475 File Handling\SpecialChar menuseparator
26476 File Format
26477 \end_layout
26478
26479 \end_inset
26480
26481  dialog).
26482  This command must occur exactly once.
26483  If the resulting file format is PDF, you need to specify the format 
26484 \begin_inset Flex Code
26485 status collapsed
26486
26487 \begin_layout Plain Layout
26488 pdf6
26489 \end_layout
26490
26491 \end_inset
26492
26493 .
26494  This is the PDF format used for including graphics.
26495  The other defined PDF formats are for document export.
26496 \end_layout
26497
26498 \begin_layout Description
26499 \begin_inset Flex Code
26500 status collapsed
26501
26502 \begin_layout Plain Layout
26503 UpdateResult
26504 \begin_inset space ~
26505 \end_inset
26506
26507 <filename>
26508 \end_layout
26509
26510 \end_inset
26511
26512  The file name of the converted file.
26513  The file name must be absolute.
26514  This command must occur exactly once.
26515 \end_layout
26516
26517 \begin_layout Subsection
26518 Preamble definitions
26519 \end_layout
26520
26521 \begin_layout Standard
26522 The external template configuration file may contain additional preamble
26523  definitions enclosed by 
26524 \begin_inset Flex Code
26525 status collapsed
26526
26527 \begin_layout Plain Layout
26528 PreambleDef
26529 \end_layout
26530
26531 \end_inset
26532
26533  \SpecialChar ldots
26534  
26535 \begin_inset Flex Code
26536 status collapsed
26537
26538 \begin_layout Plain Layout
26539 PreambleDefEnd
26540 \end_layout
26541
26542 \end_inset
26543
26544 .
26545  They can be used by the templates in the 
26546 \begin_inset Flex Code
26547 status collapsed
26548
26549 \begin_layout Plain Layout
26550 Format
26551 \end_layout
26552
26553 \end_inset
26554
26555  section.
26556 \end_layout
26557
26558 \begin_layout Section
26559 The substitution mechanism
26560 \end_layout
26561
26562 \begin_layout Standard
26563 When the external material facility invokes an external program, it is done
26564  on the basis of a command defined in the template configuration file.
26565  These commands can contain various macros that are expanded before execution.
26566  Execution always take place in the directory of the containing document.
26567 \end_layout
26568
26569 \begin_layout Standard
26570 Also, whenever external material is to be displayed, the name will be produced
26571  by the substitution mechanism, and most other commands in the template
26572  definition support substitution as well.
26573 \end_layout
26574
26575 \begin_layout Standard
26576 The available macros are the following:
26577 \end_layout
26578
26579 \begin_layout Description
26580 \begin_inset Flex Code
26581 status collapsed
26582
26583 \begin_layout Plain Layout
26584 $$AbsOrRelPathMaster
26585 \end_layout
26586
26587 \end_inset
26588
26589  The file path, absolute or relative to the master \SpecialChar LyX
26590  document.
26591 \end_layout
26592
26593 \begin_layout Description
26594 \begin_inset Flex Code
26595 status collapsed
26596
26597 \begin_layout Plain Layout
26598 $$AbsOrRelPathParent
26599 \end_layout
26600
26601 \end_inset
26602
26603  The file path, absolute or relative to the \SpecialChar LyX
26604  document.
26605 \end_layout
26606
26607 \begin_layout Description
26608 \begin_inset Flex Code
26609 status collapsed
26610
26611 \begin_layout Plain Layout
26612 $$AbsPath
26613 \end_layout
26614
26615 \end_inset
26616
26617  The absolute file path.
26618 \end_layout
26619
26620 \begin_layout Description
26621 \begin_inset Flex Code
26622 status collapsed
26623
26624 \begin_layout Plain Layout
26625 $$Basename
26626 \end_layout
26627
26628 \end_inset
26629
26630  The filename without path and without the extension.
26631 \end_layout
26632
26633 \begin_layout Description
26634 \begin_inset Flex Code
26635 status collapsed
26636
26637 \begin_layout Plain Layout
26638 $$Contents(
26639 \begin_inset Quotes eld
26640 \end_inset
26641
26642 filename.ext
26643 \begin_inset Quotes erd
26644 \end_inset
26645
26646 )
26647 \end_layout
26648
26649 \end_inset
26650
26651  This macro will expand to the contents of the file with the name 
26652 \begin_inset Flex Code
26653 status collapsed
26654
26655 \begin_layout Plain Layout
26656 filename.ext
26657 \end_layout
26658
26659 \end_inset
26660
26661 .
26662 \end_layout
26663
26664 \begin_layout Description
26665 \begin_inset Flex Code
26666 status collapsed
26667
26668 \begin_layout Plain Layout
26669 $$Extension
26670 \end_layout
26671
26672 \end_inset
26673
26674  The file extension (including the dot).
26675 \end_layout
26676
26677 \begin_layout Description
26678 \begin_inset Flex Code
26679 status collapsed
26680
26681 \begin_layout Plain Layout
26682 $$pngOrjpg
26683 \end_layout
26684
26685 \end_inset
26686
26687  This will be the string 
26688 \begin_inset Quotes eld
26689 \end_inset
26690
26691 jpg
26692 \begin_inset Quotes erd
26693 \end_inset
26694
26695  if the file is in JPEG format, otherwise it will be the string 
26696 \begin_inset Quotes eld
26697 \end_inset
26698
26699 png
26700 \begin_inset Quotes erd
26701 \end_inset
26702
26703 .
26704  This is useful to avoid uneeded conversions for output formats that support
26705  both PNG and JPEG fomats.
26706  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26707  output
26708  format.
26709 \end_layout
26710
26711 \begin_layout Description
26712 \begin_inset Flex Code
26713 status collapsed
26714
26715 \begin_layout Plain Layout
26716 $$FName
26717 \end_layout
26718
26719 \end_inset
26720
26721  The filename of the file specified in the external material dialog.
26722  This is either an absolute name, or it is relative to the \SpecialChar LyX
26723  document.
26724 \end_layout
26725
26726 \begin_layout Description
26727 \begin_inset Flex Code
26728 status collapsed
26729
26730 \begin_layout Plain Layout
26731 $$FPath
26732 \end_layout
26733
26734 \end_inset
26735
26736  The path part of 
26737 \begin_inset Flex Code
26738 status collapsed
26739
26740 \begin_layout Plain Layout
26741 $$FName
26742 \end_layout
26743
26744 \end_inset
26745
26746  (absolute name or relative to the \SpecialChar LyX
26747  document).
26748 \end_layout
26749
26750 \begin_layout Description
26751 \begin_inset Flex Code
26752 status collapsed
26753
26754 \begin_layout Plain Layout
26755 $$RelPathMaster
26756 \end_layout
26757
26758 \end_inset
26759
26760  The file path, relative to the master \SpecialChar LyX
26761  document.
26762 \end_layout
26763
26764 \begin_layout Description
26765 \begin_inset Flex Code
26766 status collapsed
26767
26768 \begin_layout Plain Layout
26769 $$RelPathParent
26770 \end_layout
26771
26772 \end_inset
26773
26774  The file path, relative to the \SpecialChar LyX
26775  document.
26776 \end_layout
26777
26778 \begin_layout Description
26779 \begin_inset Flex Code
26780 status collapsed
26781
26782 \begin_layout Plain Layout
26783 $$Sysdir
26784 \end_layout
26785
26786 \end_inset
26787
26788  This macro will expand to the absolute path of the system directory.
26789  This is typically used to point to the various helper scripts that are
26790  bundled with \SpecialChar LyX
26791 .
26792 \end_layout
26793
26794 \begin_layout Description
26795 \begin_inset Flex Code
26796 status collapsed
26797
26798 \begin_layout Plain Layout
26799 $$Tempname
26800 \end_layout
26801
26802 \end_inset
26803
26804  A name and full path to a temporary file which will be automatically deleted
26805  whenever the containing document is closed, or the external material insertion
26806  deleted.
26807 \end_layout
26808
26809 \begin_layout Standard
26810 All path macros contain a trailing directory separator, so you can construct
26811  e.
26812 \begin_inset space \thinspace{}
26813 \end_inset
26814
26815 g.
26816 \begin_inset space \space{}
26817 \end_inset
26818
26819 the absolute filename with 
26820 \begin_inset Flex Code
26821 status collapsed
26822
26823 \begin_layout Plain Layout
26824 $$AbsPath$$Basename$$Extension
26825 \end_layout
26826
26827 \end_inset
26828
26829 .
26830 \end_layout
26831
26832 \begin_layout Standard
26833 The macros above are substituted in all commands unless otherwise noted.
26834  The command 
26835 \begin_inset Flex Code
26836 status collapsed
26837
26838 \begin_layout Plain Layout
26839 Product
26840 \end_layout
26841
26842 \end_inset
26843
26844  supports additionally the following substitutions if they are enabled by
26845  the 
26846 \begin_inset Flex Code
26847 status collapsed
26848
26849 \begin_layout Plain Layout
26850 Transform
26851 \end_layout
26852
26853 \end_inset
26854
26855  and 
26856 \begin_inset Flex Code
26857 status collapsed
26858
26859 \begin_layout Plain Layout
26860 TransformCommand
26861 \end_layout
26862
26863 \end_inset
26864
26865  commands:
26866 \end_layout
26867
26868 \begin_layout Description
26869 \begin_inset Flex Code
26870 status collapsed
26871
26872 \begin_layout Plain Layout
26873 $$ResizeFront
26874 \end_layout
26875
26876 \end_inset
26877
26878  The front part of the resize command.
26879 \end_layout
26880
26881 \begin_layout Description
26882 \begin_inset Flex Code
26883 status collapsed
26884
26885 \begin_layout Plain Layout
26886 $$ResizeBack
26887 \end_layout
26888
26889 \end_inset
26890
26891  The back part of the resize command.
26892 \end_layout
26893
26894 \begin_layout Description
26895 \begin_inset Flex Code
26896 status collapsed
26897
26898 \begin_layout Plain Layout
26899 $$RotateFront
26900 \end_layout
26901
26902 \end_inset
26903
26904  The front part of the rotation command.
26905 \end_layout
26906
26907 \begin_layout Description
26908 \begin_inset Flex Code
26909 status collapsed
26910
26911 \begin_layout Plain Layout
26912 $$RotateBack
26913 \end_layout
26914
26915 \end_inset
26916
26917  The back part of the rotation command.
26918 \end_layout
26919
26920 \begin_layout Standard
26921 The value string of the 
26922 \begin_inset Flex Code
26923 status collapsed
26924
26925 \begin_layout Plain Layout
26926 Option
26927 \end_layout
26928
26929 \end_inset
26930
26931  command supports additionally the following substitutions if they are enabled
26932  by the 
26933 \begin_inset Flex Code
26934 status collapsed
26935
26936 \begin_layout Plain Layout
26937 Transform
26938 \end_layout
26939
26940 \end_inset
26941
26942  and 
26943 \begin_inset Flex Code
26944 status collapsed
26945
26946 \begin_layout Plain Layout
26947 TransformOption
26948 \end_layout
26949
26950 \end_inset
26951
26952  commands:
26953 \end_layout
26954
26955 \begin_layout Description
26956 \begin_inset Flex Code
26957 status collapsed
26958
26959 \begin_layout Plain Layout
26960 $$Clip
26961 \end_layout
26962
26963 \end_inset
26964
26965  The clip option.
26966 \end_layout
26967
26968 \begin_layout Description
26969 \begin_inset Flex Code
26970 status collapsed
26971
26972 \begin_layout Plain Layout
26973 $$Extra
26974 \end_layout
26975
26976 \end_inset
26977
26978  The extra option.
26979 \end_layout
26980
26981 \begin_layout Description
26982 \begin_inset Flex Code
26983 status collapsed
26984
26985 \begin_layout Plain Layout
26986 $$Resize
26987 \end_layout
26988
26989 \end_inset
26990
26991  The resize option.
26992 \end_layout
26993
26994 \begin_layout Description
26995 \begin_inset Flex Code
26996 status collapsed
26997
26998 \begin_layout Plain Layout
26999 $$Rotate
27000 \end_layout
27001
27002 \end_inset
27003
27004  The rotation option.
27005 \end_layout
27006
27007 \begin_layout Standard
27008 You may ask why there are so many path macros.
27009  There are mainly two reasons:
27010 \end_layout
27011
27012 \begin_layout Enumerate
27013 Relative and absolute file names should remain relative or absolute, respectivel
27014 y.
27015  Users may have reasons to prefer either form.
27016  Relative names are useful for portable documents that should work on different
27017  machines, for example.
27018  Absolute names may be required by some programs.
27019 \end_layout
27020
27021 \begin_layout Enumerate
27022 \SpecialChar LaTeX
27023  treats relative file names differently than \SpecialChar LyX
27024  and other programs in nested
27025  included files.
27026  For \SpecialChar LyX
27027 , a relative file name is always relative to the document that contains
27028  the file name.
27029  For \SpecialChar LaTeX
27030 , it is always relative to the master document.
27031  These two definitions are identical if you have only one document, but
27032  differ if you have a master document that includes part documents.
27033  That means that relative filenames must be transformed when presented to
27034  \SpecialChar LaTeX
27035 .
27036  Fortunately \SpecialChar LyX
27037  does this automatically for you if you choose the right macros.
27038 \end_layout
27039
27040 \begin_layout Standard
27041 So which path macro should be used in new template definitions? The rule
27042  is not difficult:
27043 \end_layout
27044
27045 \begin_layout Itemize
27046 Use 
27047 \begin_inset Flex Code
27048 status collapsed
27049
27050 \begin_layout Plain Layout
27051 $$AbsPath
27052 \end_layout
27053
27054 \end_inset
27055
27056  if an absolute path is required.
27057 \end_layout
27058
27059 \begin_layout Itemize
27060 Use 
27061 \begin_inset Flex Code
27062 status collapsed
27063
27064 \begin_layout Plain Layout
27065 $$AbsOrRelPathMaster
27066 \end_layout
27067
27068 \end_inset
27069
27070  if the substituted string is some kind of \SpecialChar LaTeX
27071  input.
27072 \end_layout
27073
27074 \begin_layout Itemize
27075 Else use 
27076 \begin_inset Flex Code
27077 status collapsed
27078
27079 \begin_layout Plain Layout
27080 $$AbsOrRelPathParent
27081 \end_layout
27082
27083 \end_inset
27084
27085  in order to preserve the user's choice.
27086 \end_layout
27087
27088 \begin_layout Standard
27089 There are special cases where this rule does not work and e.
27090 \begin_inset space \thinspace{}
27091 \end_inset
27092
27093 g.
27094 \begin_inset space \space{}
27095 \end_inset
27096
27097 relative names are needed, but normally it will work just fine.
27098  One example for such a case is the command 
27099 \begin_inset Flex Code
27100 status collapsed
27101
27102 \begin_layout Plain Layout
27103 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27104 \end_layout
27105
27106 \end_inset
27107
27108  in the XFig template above: We can't use the absolute name because the
27109  copier for 
27110 \begin_inset Flex Code
27111 status collapsed
27112
27113 \begin_layout Plain Layout
27114 .pstex_t
27115 \end_layout
27116
27117 \end_inset
27118
27119  files needs the relative name in order to rewrite the file content.
27120 \end_layout
27121
27122 \begin_layout Section
27123 Security discussion
27124 \begin_inset CommandInset label
27125 LatexCommand label
27126 name "sec:Security-discussion"
27127
27128 \end_inset
27129
27130
27131 \end_layout
27132
27133 \begin_layout Standard
27134 The external material feature interfaces with a lot of external programs
27135  and does so automatically, so we have to consider the security implications
27136  of this.
27137  In particular, since you have the option of including your own filenames
27138  and/or parameter strings and those are expanded into a command, it seems
27139  that it would be possible to create a malicious document which executes
27140  arbitrary commands when a user views or prints the document.
27141  This is something we definitely want to avoid.
27142 \end_layout
27143
27144 \begin_layout Standard
27145 However, since the external program commands are specified in the template
27146  configuration file only, there are no security issues if \SpecialChar LyX
27147  is properly configure
27148 d with safe templates only.
27149  This is so because the external programs are invoked with the 
27150 \begin_inset Flex Code
27151 status collapsed
27152
27153 \begin_layout Plain Layout
27154 execvp
27155 \end_layout
27156
27157 \end_inset
27158
27159 -system call rather than the 
27160 \begin_inset Flex Code
27161 status collapsed
27162
27163 \begin_layout Plain Layout
27164 system
27165 \end_layout
27166
27167 \end_inset
27168
27169  system-call, so it's not possible to execute arbitrary commands from the
27170  filename or parameter section via the shell.
27171 \end_layout
27172
27173 \begin_layout Standard
27174 This also implies that you are restricted in what command strings you can
27175  use in the external material templates.
27176  In particular, pipes and redirection are not readily available.
27177  This has to be so if \SpecialChar LyX
27178  should remain safe.
27179  If you want to use some of the shell features, you should write a safe
27180  script to do this in a controlled manner, and then invoke the script from
27181  the command string.
27182  
27183 \end_layout
27184
27185 \begin_layout Standard
27186 It is possible to design a template that interacts directly with the shell,
27187  but since this would allow a malicious user to execute arbitrary commands
27188  by writing clever filenames and/or parameters, we generally recommend that
27189  you only use safe scripts that work with the 
27190 \begin_inset Flex Code
27191 status collapsed
27192
27193 \begin_layout Plain Layout
27194 execvp
27195 \end_layout
27196
27197 \end_inset
27198
27199  system call in a controlled manner.
27200  Of course, for use in a controlled environment, it can be tempting to just
27201  fall back to use ordinary shell scripts.
27202  If you do so, be aware that you 
27203 \emph on
27204 will
27205 \emph default
27206  provide an easily exploitable security hole in your system.
27207  Of course it stands to reason that such unsafe templates will never be
27208  included in the standard \SpecialChar LyX
27209  distribution, although we do encourage people
27210  to submit new templates in the open source tradition.
27211  But \SpecialChar LyX
27212  as shipped from the official distribution channels will never have
27213  unsafe templates.
27214 \end_layout
27215
27216 \begin_layout Standard
27217 Including external material provides a lot of power, and you have to be
27218  careful not to introduce security hazards with this power.
27219  A subtle error in a single line in an innocent looking script can open
27220  the door to huge security problems.
27221  So if you do not fully understand the issues, we recommend that you consult
27222  a knowledgeable security professional or the \SpecialChar LyX
27223  development team if you have
27224  any questions about whether a given template is safe or not.
27225  And do this before you use it in an uncontrolled environment.
27226 \end_layout
27227
27228 \begin_layout Chapter
27229 \start_of_appendix
27230 List of supported \SpecialChar LyX
27231  functions to be used in layouts
27232 \begin_inset CommandInset label
27233 LatexCommand label
27234 name "chap:List-of-functions"
27235
27236 \end_inset
27237
27238
27239 \end_layout
27240
27241 \begin_layout Standard
27242 \align center
27243 \begin_inset Tabular
27244 <lyxtabular version="3" rows="11" columns="8">
27245 <features tabularvalignment="middle">
27246 <column alignment="left" valignment="top">
27247 <column alignment="left" valignment="top">
27248 <column alignment="left" valignment="top">
27249 <column alignment="left" valignment="top">
27250 <column alignment="left" valignment="top">
27251 <column alignment="left" valignment="top">
27252 <column alignment="left" valignment="top">
27253 <column alignment="left" valignment="top">
27254 <row>
27255 <cell alignment="left" valignment="top" usebox="none">
27256 \begin_inset Text
27257
27258 \begin_layout Plain Layout
27259 accents
27260 \end_layout
27261
27262 \end_inset
27263 </cell>
27264 <cell alignment="left" valignment="top" usebox="none">
27265 \begin_inset Text
27266
27267 \begin_layout Plain Layout
27268 booktabs
27269 \end_layout
27270
27271 \end_inset
27272 </cell>
27273 <cell alignment="left" valignment="top" usebox="none">
27274 \begin_inset Text
27275
27276 \begin_layout Plain Layout
27277 feyn
27278 \end_layout
27279
27280 \end_inset
27281 </cell>
27282 <cell alignment="left" valignment="top" usebox="none">
27283 \begin_inset Text
27284
27285 \begin_layout Plain Layout
27286 listings
27287 \end_layout
27288
27289 \end_inset
27290 </cell>
27291 <cell alignment="center" valignment="top" usebox="none">
27292 \begin_inset Text
27293
27294 \begin_layout Plain Layout
27295 natbib
27296 \end_layout
27297
27298 \end_inset
27299 </cell>
27300 <cell alignment="center" valignment="top" usebox="none">
27301 \begin_inset Text
27302
27303 \begin_layout Plain Layout
27304 rotfloat
27305 \end_layout
27306
27307 \end_inset
27308 </cell>
27309 <cell alignment="center" valignment="top" usebox="none">
27310 \begin_inset Text
27311
27312 \begin_layout Plain Layout
27313 tfrupee
27314 \end_layout
27315
27316 \end_inset
27317 </cell>
27318 <cell alignment="center" valignment="top" usebox="none">
27319 \begin_inset Text
27320
27321 \begin_layout Plain Layout
27322 wasysym
27323 \end_layout
27324
27325 \end_inset
27326 </cell>
27327 </row>
27328 <row>
27329 <cell alignment="left" valignment="top" usebox="none">
27330 \begin_inset Text
27331
27332 \begin_layout Plain Layout
27333 amsbsy
27334 \end_layout
27335
27336 \end_inset
27337 </cell>
27338 <cell alignment="left" valignment="top" usebox="none">
27339 \begin_inset Text
27340
27341 \begin_layout Plain Layout
27342 calc
27343 \end_layout
27344
27345 \end_inset
27346 </cell>
27347 <cell alignment="left" valignment="top" usebox="none">
27348 \begin_inset Text
27349
27350 \begin_layout Plain Layout
27351 fixltx2e
27352 \end_layout
27353
27354 \end_inset
27355 </cell>
27356 <cell alignment="left" valignment="top" usebox="none">
27357 \begin_inset Text
27358
27359 \begin_layout Plain Layout
27360 longtable
27361 \end_layout
27362
27363 \end_inset
27364 </cell>
27365 <cell alignment="center" valignment="top" usebox="none">
27366 \begin_inset Text
27367
27368 \begin_layout Plain Layout
27369 nomencl
27370 \end_layout
27371
27372 \end_inset
27373 </cell>
27374 <cell alignment="center" valignment="top" usebox="none">
27375 \begin_inset Text
27376
27377 \begin_layout Plain Layout
27378 rsphrase
27379 \end_layout
27380
27381 \end_inset
27382 </cell>
27383 <cell alignment="center" valignment="top" usebox="none">
27384 \begin_inset Text
27385
27386 \begin_layout Plain Layout
27387 tipa
27388 \end_layout
27389
27390 \end_inset
27391 </cell>
27392 <cell alignment="center" valignment="top" usebox="none">
27393 \begin_inset Text
27394
27395 \begin_layout Plain Layout
27396 wrapfig
27397 \end_layout
27398
27399 \end_inset
27400 </cell>
27401 </row>
27402 <row>
27403 <cell alignment="left" valignment="top" usebox="none">
27404 \begin_inset Text
27405
27406 \begin_layout Plain Layout
27407 amscd
27408 \end_layout
27409
27410 \end_inset
27411 </cell>
27412 <cell alignment="left" valignment="top" usebox="none">
27413 \begin_inset Text
27414
27415 \begin_layout Plain Layout
27416 CJK
27417 \end_layout
27418
27419 \end_inset
27420 </cell>
27421 <cell alignment="left" valignment="top" usebox="none">
27422 \begin_inset Text
27423
27424 \begin_layout Plain Layout
27425 float
27426 \end_layout
27427
27428 \end_inset
27429 </cell>
27430 <cell alignment="left" valignment="top" usebox="none">
27431 \begin_inset Text
27432
27433 \begin_layout Plain Layout
27434 lyxskak
27435 \end_layout
27436
27437 \end_inset
27438 </cell>
27439 <cell alignment="center" valignment="top" usebox="none">
27440 \begin_inset Text
27441
27442 \begin_layout Plain Layout
27443 pdfcolmk
27444 \end_layout
27445
27446 \end_inset
27447 </cell>
27448 <cell alignment="center" valignment="top" usebox="none">
27449 \begin_inset Text
27450
27451 \begin_layout Plain Layout
27452 setspace
27453 \end_layout
27454
27455 \end_inset
27456 </cell>
27457 <cell alignment="center" valignment="top" usebox="none">
27458 \begin_inset Text
27459
27460 \begin_layout Plain Layout
27461 tipx
27462 \end_layout
27463
27464 \end_inset
27465 </cell>
27466 <cell alignment="center" valignment="top" usebox="none">
27467 \begin_inset Text
27468
27469 \begin_layout Plain Layout
27470 xargs
27471 \end_layout
27472
27473 \end_inset
27474 </cell>
27475 </row>
27476 <row>
27477 <cell alignment="left" valignment="top" usebox="none">
27478 \begin_inset Text
27479
27480 \begin_layout Plain Layout
27481 amsmath
27482 \end_layout
27483
27484 \end_inset
27485 </cell>
27486 <cell alignment="left" valignment="top" usebox="none">
27487 \begin_inset Text
27488
27489 \begin_layout Plain Layout
27490 color
27491 \end_layout
27492
27493 \end_inset
27494 </cell>
27495 <cell alignment="left" valignment="top" usebox="none">
27496 \begin_inset Text
27497
27498 \begin_layout Plain Layout
27499 framed
27500 \end_layout
27501
27502 \end_inset
27503 </cell>
27504 <cell alignment="left" valignment="top" usebox="none">
27505 \begin_inset Text
27506
27507 \begin_layout Plain Layout
27508 makeidx
27509 \end_layout
27510
27511 \end_inset
27512 </cell>
27513 <cell alignment="center" valignment="top" usebox="none">
27514 \begin_inset Text
27515
27516 \begin_layout Plain Layout
27517 pdfpages
27518 \end_layout
27519
27520 \end_inset
27521 </cell>
27522 <cell alignment="center" valignment="top" usebox="none">
27523 \begin_inset Text
27524
27525 \begin_layout Plain Layout
27526 shapepar
27527 \end_layout
27528
27529 \end_inset
27530 </cell>
27531 <cell alignment="center" valignment="top" usebox="none">
27532 \begin_inset Text
27533
27534 \begin_layout Plain Layout
27535 tone
27536 \end_layout
27537
27538 \end_inset
27539 </cell>
27540 <cell alignment="center" valignment="top" usebox="none">
27541 \begin_inset Text
27542
27543 \begin_layout Plain Layout
27544 xcolor
27545 \end_layout
27546
27547 \end_inset
27548 </cell>
27549 </row>
27550 <row>
27551 <cell alignment="left" valignment="top" usebox="none">
27552 \begin_inset Text
27553
27554 \begin_layout Plain Layout
27555 amssymb
27556 \end_layout
27557
27558 \end_inset
27559 </cell>
27560 <cell alignment="left" valignment="top" usebox="none">
27561 \begin_inset Text
27562
27563 \begin_layout Plain Layout
27564 covington
27565 \end_layout
27566
27567 \end_inset
27568 </cell>
27569 <cell alignment="left" valignment="top" usebox="none">
27570 \begin_inset Text
27571
27572 \begin_layout Plain Layout
27573 graphicx
27574 \end_layout
27575
27576 \end_inset
27577 </cell>
27578 <cell alignment="left" valignment="top" usebox="none">
27579 \begin_inset Text
27580
27581 \begin_layout Plain Layout
27582 marvosym
27583 \end_layout
27584
27585 \end_inset
27586 </cell>
27587 <cell alignment="center" valignment="top" usebox="none">
27588 \begin_inset Text
27589
27590 \begin_layout Plain Layout
27591 pifont
27592 \end_layout
27593
27594 \end_inset
27595 </cell>
27596 <cell alignment="center" valignment="top" usebox="none">
27597 \begin_inset Text
27598
27599 \begin_layout Plain Layout
27600 slashed
27601 \end_layout
27602
27603 \end_inset
27604 </cell>
27605 <cell alignment="center" valignment="top" usebox="none">
27606 \begin_inset Text
27607
27608 \begin_layout Plain Layout
27609 txfonts
27610 \end_layout
27611
27612 \end_inset
27613 </cell>
27614 <cell alignment="center" valignment="top" usebox="none">
27615 \begin_inset Text
27616
27617 \begin_layout Plain Layout
27618 xy
27619 \end_layout
27620
27621 \end_inset
27622 </cell>
27623 </row>
27624 <row>
27625 <cell alignment="left" valignment="top" usebox="none">
27626 \begin_inset Text
27627
27628 \begin_layout Plain Layout
27629 amstext
27630 \end_layout
27631
27632 \end_inset
27633 </cell>
27634 <cell alignment="left" valignment="top" usebox="none">
27635 \begin_inset Text
27636
27637 \begin_layout Plain Layout
27638 csquotes
27639 \end_layout
27640
27641 \end_inset
27642 </cell>
27643 <cell alignment="left" valignment="top" usebox="none">
27644 \begin_inset Text
27645
27646 \begin_layout Plain Layout
27647 hhline
27648 \end_layout
27649
27650 \end_inset
27651 </cell>
27652 <cell alignment="left" valignment="top" usebox="none">
27653 \begin_inset Text
27654
27655 \begin_layout Plain Layout
27656 mathdesign
27657 \end_layout
27658
27659 \end_inset
27660 </cell>
27661 <cell alignment="center" valignment="top" usebox="none">
27662 \begin_inset Text
27663
27664 \begin_layout Plain Layout
27665 pmboxdraw
27666 \end_layout
27667
27668 \end_inset
27669 </cell>
27670 <cell alignment="center" valignment="top" usebox="none">
27671 \begin_inset Text
27672
27673 \begin_layout Plain Layout
27674 soul
27675 \end_layout
27676
27677 \end_inset
27678 </cell>
27679 <cell alignment="center" valignment="top" usebox="none">
27680 \begin_inset Text
27681
27682 \begin_layout Plain Layout
27683 ulem
27684 \end_layout
27685
27686 \end_inset
27687 </cell>
27688 <cell alignment="center" valignment="top" usebox="none">
27689 \begin_inset Text
27690
27691 \begin_layout Plain Layout
27692 yhmath
27693 \end_layout
27694
27695 \end_inset
27696 </cell>
27697 </row>
27698 <row>
27699 <cell alignment="left" valignment="top" usebox="none">
27700 \begin_inset Text
27701
27702 \begin_layout Plain Layout
27703 amsthm
27704 \end_layout
27705
27706 \end_inset
27707 </cell>
27708 <cell alignment="left" valignment="top" usebox="none">
27709 \begin_inset Text
27710
27711 \begin_layout Plain Layout
27712 dvipost
27713 \end_layout
27714
27715 \end_inset
27716 </cell>
27717 <cell alignment="left" valignment="top" usebox="none">
27718 \begin_inset Text
27719
27720 \begin_layout Plain Layout
27721 hyperref
27722 \end_layout
27723
27724 \end_inset
27725 </cell>
27726 <cell alignment="left" valignment="top" usebox="none">
27727 \begin_inset Text
27728
27729 \begin_layout Plain Layout
27730 mathdots
27731 \end_layout
27732
27733 \end_inset
27734 </cell>
27735 <cell alignment="center" valignment="top" usebox="none">
27736 \begin_inset Text
27737
27738 \begin_layout Plain Layout
27739 polyglossia
27740 \end_layout
27741
27742 \end_inset
27743 </cell>
27744 <cell alignment="center" valignment="top" usebox="none">
27745 \begin_inset Text
27746
27747 \begin_layout Plain Layout
27748 splitidx
27749 \end_layout
27750
27751 \end_inset
27752 </cell>
27753 <cell alignment="center" valignment="top" usebox="none">
27754 \begin_inset Text
27755
27756 \begin_layout Plain Layout
27757 undertilde
27758 \end_layout
27759
27760 \end_inset
27761 </cell>
27762 <cell alignment="center" valignment="top" usebox="none">
27763 \begin_inset Text
27764
27765 \begin_layout Plain Layout
27766
27767 \end_layout
27768
27769 \end_inset
27770 </cell>
27771 </row>
27772 <row>
27773 <cell alignment="left" valignment="top" usebox="none">
27774 \begin_inset Text
27775
27776 \begin_layout Plain Layout
27777 array
27778 \end_layout
27779
27780 \end_inset
27781 </cell>
27782 <cell alignment="left" valignment="top" usebox="none">
27783 \begin_inset Text
27784
27785 \begin_layout Plain Layout
27786 endnotes
27787 \end_layout
27788
27789 \end_inset
27790 </cell>
27791 <cell alignment="left" valignment="top" usebox="none">
27792 \begin_inset Text
27793
27794 \begin_layout Plain Layout
27795 ifsym
27796 \end_layout
27797
27798 \end_inset
27799 </cell>
27800 <cell alignment="left" valignment="top" usebox="none">
27801 \begin_inset Text
27802
27803 \begin_layout Plain Layout
27804 mathrsfs
27805 \end_layout
27806
27807 \end_inset
27808 </cell>
27809 <cell alignment="center" valignment="top" usebox="none">
27810 \begin_inset Text
27811
27812 \begin_layout Plain Layout
27813 prettyref
27814 \end_layout
27815
27816 \end_inset
27817 </cell>
27818 <cell alignment="center" valignment="top" usebox="none">
27819 \begin_inset Text
27820
27821 \begin_layout Plain Layout
27822 subfig
27823 \end_layout
27824
27825 \end_inset
27826 </cell>
27827 <cell alignment="center" valignment="top" usebox="none">
27828 \begin_inset Text
27829
27830 \begin_layout Plain Layout
27831 units
27832 \end_layout
27833
27834 \end_inset
27835 </cell>
27836 <cell alignment="center" valignment="top" usebox="none">
27837 \begin_inset Text
27838
27839 \begin_layout Plain Layout
27840
27841 \end_layout
27842
27843 \end_inset
27844 </cell>
27845 </row>
27846 <row>
27847 <cell alignment="left" valignment="top" usebox="none">
27848 \begin_inset Text
27849
27850 \begin_layout Plain Layout
27851 ascii
27852 \end_layout
27853
27854 \end_inset
27855 </cell>
27856 <cell alignment="left" valignment="top" usebox="none">
27857 \begin_inset Text
27858
27859 \begin_layout Plain Layout
27860 enumitem
27861 \end_layout
27862
27863 \end_inset
27864 </cell>
27865 <cell alignment="left" valignment="top" usebox="none">
27866 \begin_inset Text
27867
27868 \begin_layout Plain Layout
27869 ifthen
27870 \end_layout
27871
27872 \end_inset
27873 </cell>
27874 <cell alignment="left" valignment="top" usebox="none">
27875 \begin_inset Text
27876
27877 \begin_layout Plain Layout
27878 mhchem
27879 \end_layout
27880
27881 \end_inset
27882 </cell>
27883 <cell alignment="center" valignment="top" usebox="none">
27884 \begin_inset Text
27885
27886 \begin_layout Plain Layout
27887 pxfonts
27888 \end_layout
27889
27890 \end_inset
27891 </cell>
27892 <cell alignment="center" valignment="top" usebox="none">
27893 \begin_inset Text
27894
27895 \begin_layout Plain Layout
27896 subscript
27897 \end_layout
27898
27899 \end_inset
27900 </cell>
27901 <cell alignment="center" valignment="top" usebox="none">
27902 \begin_inset Text
27903
27904 \begin_layout Plain Layout
27905 url
27906 \end_layout
27907
27908 \end_inset
27909 </cell>
27910 <cell alignment="center" valignment="top" usebox="none">
27911 \begin_inset Text
27912
27913 \begin_layout Plain Layout
27914
27915 \end_layout
27916
27917 \end_inset
27918 </cell>
27919 </row>
27920 <row>
27921 <cell alignment="left" valignment="top" usebox="none">
27922 \begin_inset Text
27923
27924 \begin_layout Plain Layout
27925 bbding
27926 \end_layout
27927
27928 \end_inset
27929 </cell>
27930 <cell alignment="left" valignment="top" usebox="none">
27931 \begin_inset Text
27932
27933 \begin_layout Plain Layout
27934 esint
27935 \end_layout
27936
27937 \end_inset
27938 </cell>
27939 <cell alignment="left" valignment="top" usebox="none">
27940 \begin_inset Text
27941
27942 \begin_layout Plain Layout
27943 jurabib
27944 \end_layout
27945
27946 \end_inset
27947 </cell>
27948 <cell alignment="left" valignment="top" usebox="none">
27949 \begin_inset Text
27950
27951 \begin_layout Plain Layout
27952 multicol
27953 \end_layout
27954
27955 \end_inset
27956 </cell>
27957 <cell alignment="center" valignment="top" usebox="none">
27958 \begin_inset Text
27959
27960 \begin_layout Plain Layout
27961 refstyle
27962 \end_layout
27963
27964 \end_inset
27965 </cell>
27966 <cell alignment="center" valignment="top" usebox="none">
27967 \begin_inset Text
27968
27969 \begin_layout Plain Layout
27970 textcomp
27971 \end_layout
27972
27973 \end_inset
27974 </cell>
27975 <cell alignment="center" valignment="top" usebox="none">
27976 \begin_inset Text
27977
27978 \begin_layout Plain Layout
27979 varioref
27980 \end_layout
27981
27982 \end_inset
27983 </cell>
27984 <cell alignment="center" valignment="top" usebox="none">
27985 \begin_inset Text
27986
27987 \begin_layout Plain Layout
27988
27989 \end_layout
27990
27991 \end_inset
27992 </cell>
27993 </row>
27994 <row>
27995 <cell alignment="center" valignment="top" usebox="none">
27996 \begin_inset Text
27997
27998 \begin_layout Plain Layout
27999 bm
28000 \end_layout
28001
28002 \end_inset
28003 </cell>
28004 <cell alignment="center" valignment="top" usebox="none">
28005 \begin_inset Text
28006
28007 \begin_layout Plain Layout
28008 fancybox
28009 \end_layout
28010
28011 \end_inset
28012 </cell>
28013 <cell alignment="center" valignment="top" usebox="none">
28014 \begin_inset Text
28015
28016 \begin_layout Plain Layout
28017 latexsym
28018 \end_layout
28019
28020 \end_inset
28021 </cell>
28022 <cell alignment="center" valignment="top" usebox="none">
28023 \begin_inset Text
28024
28025 \begin_layout Plain Layout
28026 multirow
28027 \end_layout
28028
28029 \end_inset
28030 </cell>
28031 <cell alignment="center" valignment="top" usebox="none">
28032 \begin_inset Text
28033
28034 \begin_layout Plain Layout
28035 rotating
28036 \end_layout
28037
28038 \end_inset
28039 </cell>
28040 <cell alignment="center" valignment="top" usebox="none">
28041 \begin_inset Text
28042
28043 \begin_layout Plain Layout
28044 textgreek
28045 \end_layout
28046
28047 \end_inset
28048 </cell>
28049 <cell alignment="center" valignment="top" usebox="none">
28050 \begin_inset Text
28051
28052 \begin_layout Plain Layout
28053 verbatim
28054 \end_layout
28055
28056 \end_inset
28057 </cell>
28058 <cell alignment="center" valignment="top" usebox="none">
28059 \begin_inset Text
28060
28061 \begin_layout Plain Layout
28062
28063 \end_layout
28064
28065 \end_inset
28066 </cell>
28067 </row>
28068 </lyxtabular>
28069
28070 \end_inset
28071
28072
28073 \end_layout
28074
28075 \begin_layout Chapter
28076 Names of available colors to be used in layouts
28077 \begin_inset CommandInset label
28078 LatexCommand label
28079 name "chap:Names-of-colors"
28080
28081 \end_inset
28082
28083
28084 \end_layout
28085
28086 \begin_layout Standard
28087 The colors listed below are the standard colors and those that you can adjust
28088  in the \SpecialChar LyX
28089  preferences.
28090 \end_layout
28091
28092 \begin_layout Section
28093 Color functions
28094 \end_layout
28095
28096 \begin_layout Standard
28097 The following are no real colors, but rather act on color definitions:
28098 \end_layout
28099
28100 \begin_layout Description
28101 ignore The color is ignored
28102 \end_layout
28103
28104 \begin_layout Description
28105 inherit The color is inherited
28106 \end_layout
28107
28108 \begin_layout Description
28109 none
28110 \family roman
28111 \series medium
28112 \shape up
28113 \size normal
28114 \emph off
28115 \bar no
28116 \strikeout off
28117 \uuline off
28118 \uwave off
28119 \noun off
28120 \color none
28121  No particular color – clear or default
28122 \end_layout
28123
28124 \begin_layout Section
28125 Static colors
28126 \end_layout
28127
28128 \begin_layout Standard
28129 These are fixed colors that cannot me customized:
28130 \end_layout
28131
28132 \begin_layout Description
28133 black
28134 \end_layout
28135
28136 \begin_layout Description
28137 white
28138 \end_layout
28139
28140 \begin_layout Description
28141 blue
28142 \end_layout
28143
28144 \begin_layout Description
28145 brown
28146 \end_layout
28147
28148 \begin_layout Description
28149 cyan
28150 \end_layout
28151
28152 \begin_layout Description
28153 darkgray
28154 \end_layout
28155
28156 \begin_layout Description
28157 gray
28158 \end_layout
28159
28160 \begin_layout Description
28161 green
28162 \end_layout
28163
28164 \begin_layout Description
28165 lightgray
28166 \end_layout
28167
28168 \begin_layout Description
28169 lime
28170 \end_layout
28171
28172 \begin_layout Description
28173 magenta
28174 \end_layout
28175
28176 \begin_layout Description
28177 olive
28178 \end_layout
28179
28180 \begin_layout Description
28181 orange
28182 \end_layout
28183
28184 \begin_layout Description
28185 pink
28186 \end_layout
28187
28188 \begin_layout Description
28189 purple
28190 \end_layout
28191
28192 \begin_layout Description
28193 red
28194 \end_layout
28195
28196 \begin_layout Description
28197 teal
28198 \end_layout
28199
28200 \begin_layout Description
28201 violet
28202 \end_layout
28203
28204 \begin_layout Description
28205 yellow
28206 \end_layout
28207
28208 \begin_layout Section
28209 Dynamic colors
28210 \end_layout
28211
28212 \begin_layout Standard
28213 These are the colors allocated to specific elements in 
28214 \begin_inset Info
28215 type  "menu"
28216 arg   "dialog-show prefs"
28217 \end_inset
28218
28219 :
28220 \end_layout
28221
28222 \begin_layout Description
28223 added_space Added space color
28224 \end_layout
28225
28226 \begin_layout Description
28227 addedtext Added text color
28228 \end_layout
28229
28230 \begin_layout Description
28231 appendix Appendix marker color
28232 \end_layout
28233
28234 \begin_layout Description
28235 background Background color
28236 \end_layout
28237
28238 \begin_layout Description
28239 bottomarea Bottom area color
28240 \end_layout
28241
28242 \begin_layout Description
28243 branchlabel Label color for branches
28244 \end_layout
28245
28246 \begin_layout Description
28247 buttonbg Color used for button background
28248 \end_layout
28249
28250 \begin_layout Description
28251 buttonframe Color for inset button frames
28252 \end_layout
28253
28254 \begin_layout Description
28255 buttonhoverbg Color used for button background under focus
28256 \end_layout
28257
28258 \begin_layout Description
28259 changebar Changebar color
28260 \end_layout
28261
28262 \begin_layout Description
28263 changedtextauthor1 Changed text color author 1
28264 \end_layout
28265
28266 \begin_layout Description
28267 changedtextauthor2 Changed text color author 2
28268 \end_layout
28269
28270 \begin_layout Description
28271 changedtextauthor3 Changed text color author 3
28272 \end_layout
28273
28274 \begin_layout Description
28275 changedtextauthor4 Changed text color author 4
28276 \end_layout
28277
28278 \begin_layout Description
28279 changedtextauthor5 Changed text color author 5
28280 \end_layout
28281
28282 \begin_layout Description
28283 collapsible Collapsible insets text color
28284 \end_layout
28285
28286 \begin_layout Description
28287 collapsibleframe Collapsible insets framecolor
28288 \end_layout
28289
28290 \begin_layout Description
28291 command Text color for command insets
28292 \end_layout
28293
28294 \begin_layout Description
28295 commandbg Background color for command insets
28296 \end_layout
28297
28298 \begin_layout Description
28299 commandframe Frame color for command insets
28300 \end_layout
28301
28302 \begin_layout Description
28303 comment Label color for comments
28304 \end_layout
28305
28306 \begin_layout Description
28307 commentbg Background color of comments
28308 \end_layout
28309
28310 \begin_layout Description
28311 cursor Cursor color
28312 \end_layout
28313
28314 \begin_layout Description
28315 deletedtext Deleted text color
28316 \end_layout
28317
28318 \begin_layout Description
28319 deletedtextmodifier Deleted text modifying color
28320 \end_layout
28321
28322 \begin_layout Description
28323 depthbar Color for the depth bars in the margin
28324 \end_layout
28325
28326 \begin_layout Description
28327 eolmarker End of line marker color
28328 \end_layout
28329
28330 \begin_layout Description
28331 error Color of the \SpecialChar LaTeX
28332  error box
28333 \end_layout
28334
28335 \begin_layout Description
28336 footlabel Label color for footnotes
28337 \end_layout
28338
28339 \begin_layout Description
28340 foreground Foreground color
28341 \end_layout
28342
28343 \begin_layout Description
28344 graphicsbg Graphics inset background color
28345 \end_layout
28346
28347 \begin_layout Description
28348 greyedoutbg Background color of greyedout inset
28349 \end_layout
28350
28351 \begin_layout Description
28352 greyedoutlabel Label color for greyedout insets
28353 \end_layout
28354
28355 \begin_layout Description
28356 greyedouttext Color for greyedout inset text
28357 \end_layout
28358
28359 \begin_layout Description
28360 indexlabel Label color for index insets
28361 \end_layout
28362
28363 \begin_layout Description
28364 inlinecompletion Inline completion color
28365 \end_layout
28366
28367 \begin_layout Description
28368 insetbg Inset marker background color
28369 \end_layout
28370
28371 \begin_layout Description
28372 insetframe Inset marker frame color
28373 \end_layout
28374
28375 \begin_layout Description
28376 language Color for marking foreign language words
28377 \end_layout
28378
28379 \begin_layout Description
28380 latex Text color in \SpecialChar LaTeX
28381  mode
28382 \end_layout
28383
28384 \begin_layout Description
28385 listingsbg Background color of listings inset
28386 \end_layout
28387
28388 \begin_layout Description
28389 marginlabel Label color for margin notes
28390 \end_layout
28391
28392 \begin_layout Description
28393 math Math inset text color
28394 \end_layout
28395
28396 \begin_layout Description
28397 mathbg Math inset background color
28398 \end_layout
28399
28400 \begin_layout Description
28401 mathcorners Math inset frame color not under focus
28402 \end_layout
28403
28404 \begin_layout Description
28405 mathframe Math inset frame color under focus
28406 \end_layout
28407
28408 \begin_layout Description
28409 mathline Math line color
28410 \end_layout
28411
28412 \begin_layout Description
28413 mathmacrobg Macro math inset background color
28414 \end_layout
28415
28416 \begin_layout Description
28417 mathmacroblend Macro math blended color
28418 \end_layout
28419
28420 \begin_layout Description
28421 mathmacroframe Macro math frame color
28422 \end_layout
28423
28424 \begin_layout Description
28425 mathmacrohoverbg Macro math inset background color hovered
28426 \end_layout
28427
28428 \begin_layout Description
28429 mathmacrolabel Macro math label color
28430 \end_layout
28431
28432 \begin_layout Description
28433 mathmacronewarg Macro template color for new parameters
28434 \end_layout
28435
28436 \begin_layout Description
28437 mathmacrooldarg Macro template color for old parameters
28438 \end_layout
28439
28440 \begin_layout Description
28441 newpage New page color
28442 \end_layout
28443
28444 \begin_layout Description
28445 nonunique_inlinecompletion Inline completion color for the non-unique part
28446 \end_layout
28447
28448 \begin_layout Description
28449 note Label color for notes
28450 \end_layout
28451
28452 \begin_layout Description
28453 notebg Background color of notes
28454 \end_layout
28455
28456 \begin_layout Description
28457 pagebreak Page break/line break color
28458 \end_layout
28459
28460 \begin_layout Description
28461 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28462 \end_layout
28463
28464 \begin_layout Description
28465 phantomtext Text color for phantom insets
28466 \end_layout
28467
28468 \begin_layout Description
28469 preview The color used for previews
28470 \end_layout
28471
28472 \begin_layout Description
28473 previewframe Preview frame color
28474 \end_layout
28475
28476 \begin_layout Description
28477 regexpframe Color for regexp frame
28478 \end_layout
28479
28480 \begin_layout Description
28481 scroll Color that indicates when a row can be scrolled 
28482 \end_layout
28483
28484 \begin_layout Description
28485 selection Background color of selected text
28486 \end_layout
28487
28488 \begin_layout Description
28489 selectiontext Foreground color of selected text
28490 \end_layout
28491
28492 \begin_layout Description
28493 shadedbg Background color of shaded box
28494 \end_layout
28495
28496 \begin_layout Description
28497 special Special chars text color
28498 \end_layout
28499
28500 \begin_layout Description
28501 tabularline Table line color
28502 \end_layout
28503
28504 \begin_layout Description
28505 tabularonoffline Table line color
28506 \end_layout
28507
28508 \begin_layout Description
28509 urllabel Label color for URL insets
28510 \end_layout
28511
28512 \begin_layout Description
28513 urltext Color for URL inset text
28514 \end_layout
28515
28516 \end_body
28517 \end_document