]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Fix link
[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#PO-Mode
3283 \end_layout
3284
3285 \end_inset
3286
3287 .
3288 \end_layout
3289
3290 \end_inset
3291
3292  For some menu- and widget-labels, there are also shortcut keys that should
3293  be translated.
3294  Those keys are marked after a `|', and should be translated according to
3295  the words and phrases of the language.
3296  You should also fill also out the information at the beginning of the new
3297  
3298 \begin_inset Flex Code
3299 status collapsed
3300
3301 \begin_layout Plain Layout
3302 po
3303 \end_layout
3304
3305 \end_inset
3306
3307 -file with your email-address, etc., so people know where to reach you with
3308  suggestions and entertaining flames.
3309 \end_layout
3310
3311 \begin_layout Standard
3312 If you are just doing this on your own, then:
3313 \end_layout
3314
3315 \begin_layout Itemize
3316 Generate 
3317 \begin_inset Flex Code
3318 status collapsed
3319
3320 \begin_layout Plain Layout
3321 xx.mo
3322 \end_layout
3323
3324 \end_inset
3325
3326 .
3327  This can be done with 
3328 \begin_inset Flex Code
3329 status collapsed
3330
3331 \begin_layout Plain Layout
3332 msgfmt -o xx.mo < xx.po
3333 \end_layout
3334
3335 \end_inset
3336
3337 .
3338 \end_layout
3339
3340 \begin_layout Itemize
3341 Copy the 
3342 \begin_inset Flex Code
3343 status collapsed
3344
3345 \begin_layout Plain Layout
3346 mo
3347 \end_layout
3348
3349 \end_inset
3350
3351 -file to your locale-tree, at the correct directory for application messages
3352  for the language
3353 \series bold
3354  
3355 \series default
3356 xx, and under the name 
3357 \begin_inset Flex Code
3358 status collapsed
3359
3360 \begin_layout Plain Layout
3361 lyx.mo
3362 \end_layout
3363
3364 \end_inset
3365
3366  (e.
3367 \begin_inset space \thinspace{}
3368 \end_inset
3369
3370 g.
3371 \begin_inset space \space{}
3372 \end_inset
3373
3374
3375 \begin_inset Flex Code
3376 status collapsed
3377
3378 \begin_layout Plain Layout
3379 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3380 \end_layout
3381
3382 \end_inset
3383
3384
3385 \series bold
3386 .
3387 \end_layout
3388
3389 \begin_layout Standard
3390 As said, however, it would be best if the new 
3391 \begin_inset Flex Code
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395 po
3396 \end_layout
3397
3398 \end_inset
3399
3400  file could be added to the \SpecialChar LyX
3401  distribution, so others can use it.
3402  Adding it involves making additional changes to \SpecialChar LyX
3403 .
3404  So send an email to the developers' mailing list if you're interested in
3405  doing that.
3406 \end_layout
3407
3408 \begin_layout Subsubsection
3409 Ambiguous messages
3410 \end_layout
3411
3412 \begin_layout Standard
3413 Sometimes it turns out that one English message needs to be translated into
3414  different messages in the target language.
3415  One example is the message 
3416 \begin_inset Flex Code
3417 status collapsed
3418
3419 \begin_layout Plain Layout
3420 To
3421 \end_layout
3422
3423 \end_inset
3424
3425  which has the German translation 
3426 \lang german
3427 Nach
3428 \lang english
3429  or 
3430 \lang german
3431 Bis
3432 \lang english
3433 , depending upon exactly what the English 
3434 \begin_inset Quotes eld
3435 \end_inset
3436
3437 to
3438 \begin_inset Quotes erd
3439 \end_inset
3440
3441  means.
3442  GNU 
3443 \begin_inset Flex Code
3444 status collapsed
3445
3446 \begin_layout Plain Layout
3447 gettext
3448 \end_layout
3449
3450 \end_inset
3451
3452  does not handle such ambiguous translations.
3453  Therefore you have to add some context information to the message: Instead
3454  of 
3455 \begin_inset Flex Code
3456 status collapsed
3457
3458 \begin_layout Plain Layout
3459 To
3460 \end_layout
3461
3462 \end_inset
3463
3464  it becomes 
3465 \begin_inset Flex Code
3466 status collapsed
3467
3468 \begin_layout Plain Layout
3469 To[[as in 'From format x to format y']]
3470 \end_layout
3471
3472 \end_inset
3473
3474  and 
3475 \begin_inset Flex Code
3476 status collapsed
3477
3478 \begin_layout Plain Layout
3479 To[[as in 'From page x to page y']].
3480 \end_layout
3481
3482 \end_inset
3483
3484  Now the two occurrences of 
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489 To
3490 \end_layout
3491
3492 \end_inset
3493
3494  are different for 
3495 \begin_inset Flex Code
3496 status collapsed
3497
3498 \begin_layout Plain Layout
3499 gettext
3500 \end_layout
3501
3502 \end_inset
3503
3504  and can be translated correctly to 
3505 \lang german
3506 Nach
3507 \lang english
3508  and 
3509 \lang german
3510 Bis
3511 \lang english
3512 , respectively.
3513 \end_layout
3514
3515 \begin_layout Standard
3516 Of course the context information needs to be stripped off the original
3517  message when no translation is used.
3518  Therefore you have to put it in double square brackets at the end of the
3519  message (see the example above).
3520  The translation mechanism of \SpecialChar LyX
3521  ensures that everything in double square
3522  brackets at the end of messages is removed before displaying the message.
3523 \end_layout
3524
3525 \begin_layout Subsection
3526 Translating the documentation.
3527 \end_layout
3528
3529 \begin_layout Standard
3530 The online documentation (in the 
3531 \begin_inset Flex Noun
3532 status collapsed
3533
3534 \begin_layout Plain Layout
3535 Help
3536 \end_layout
3537
3538 \end_inset
3539
3540 -menu) can (and should!) be translated.
3541  If there are translated versions of the documentation available
3542 \begin_inset Foot
3543 status collapsed
3544
3545 \begin_layout Plain Layout
3546 As of March 2008, at least some of the documents have been translated into
3547  fourteen languages, with the Tutorial available in a few more.
3548 \end_layout
3549
3550 \end_inset
3551
3552  and the locale is set accordingly, these will be used automagically by
3553  \SpecialChar LyX
3554 .
3555  \SpecialChar LyX
3556  looks for translated versions as 
3557 \begin_inset Flex Code
3558 status collapsed
3559
3560 \begin_layout Plain Layout
3561 LyXDir/doc/xx/DocName.lyx
3562 \end_layout
3563
3564 \end_inset
3565
3566 , where 
3567 \begin_inset Flex Code
3568 status collapsed
3569
3570 \begin_layout Plain Layout
3571 xx
3572 \end_layout
3573
3574 \end_inset
3575
3576  is the code for the language currently in use.
3577  If there are no translated documents, the default English versions will
3578  be displayed.
3579  Note that the translated versions must have the same filenames (
3580 \begin_inset Flex Code
3581 status collapsed
3582
3583 \begin_layout Plain Layout
3584 DocName
3585 \end_layout
3586
3587 \end_inset
3588
3589  above) as the original.
3590  If you feel up to translating the documentation (an excellent way to proof-read
3591  the original documentation by the way!), there are a few things you should
3592  do right away:
3593 \end_layout
3594
3595 \begin_layout Itemize
3596 Check out the documentation translation web page at 
3597 \begin_inset CommandInset href
3598 LatexCommand href
3599 name "https://www.lyx.org/Translation"
3600 target "https://www.lyx.org/Translation"
3601 literal "false"
3602
3603 \end_inset
3604
3605 .
3606  That way, you can find out which (if any) documents have already been translate
3607 d into your language.
3608  You can also find out who (if anyone) is organizing the effort to translate
3609  the documentation into your language.
3610  If no one is organizing the effort, please let us know that you're interested.
3611 \end_layout
3612
3613 \begin_layout Standard
3614 Once you get to actually translating, here's a few hints for you that may
3615  save you trouble:
3616 \end_layout
3617
3618 \begin_layout Itemize
3619 Join the documentation team! There is information on how to do that in 
3620 \begin_inset Flex Code
3621 status collapsed
3622
3623 \begin_layout Plain Layout
3624 Intro.lyx
3625 \end_layout
3626
3627 \end_inset
3628
3629  (
3630 \begin_inset Flex Noun
3631 status collapsed
3632
3633 \begin_layout Plain Layout
3634 Help\SpecialChar menuseparator
3635 Introduction
3636 \end_layout
3637
3638 \end_inset
3639
3640 ), which by the way is the first document you should translate.
3641 \end_layout
3642
3643 \begin_layout Itemize
3644 Learn the typographic conventions for the language you are translating to.
3645  Typography is an ancient art and over the centuries, a great variety of
3646  conventions have developed throughout different parts of the world.
3647  Also study the professional terminology amongst typographers in your country.
3648  Inventing your own terminology will only confuse the users.
3649  
3650 \emph on
3651 (Warning! Typography is addictive!)
3652 \end_layout
3653
3654 \begin_layout Itemize
3655 Make a copy of the document.
3656  This will be your working copy.
3657  You can use this as your personal translated help-file by placing it in
3658  your 
3659 \begin_inset Flex Code
3660 status collapsed
3661
3662 \begin_layout Plain Layout
3663 UserDir/doc/xx/
3664 \end_layout
3665
3666 \end_inset
3667
3668  directory.
3669 \begin_inset Note Greyedout
3670 status open
3671
3672 \begin_layout Plain Layout
3673
3674 \series bold
3675 Note:
3676 \series default
3677  For a complex document with external material (images, etc.), if you make
3678  a copy e.
3679 \begin_inset space \thinspace{}
3680 \end_inset
3681
3682 g.
3683 \begin_inset space \space{}
3684 \end_inset
3685
3686 in a temp dir, beware that the links to external material may be broken
3687  when the document is moved to a different place.
3688  The best way is to retrieve the \SpecialChar LyX
3689  tree from git (see 
3690 \begin_inset Flex URL
3691 status collapsed
3692
3693 \begin_layout Plain Layout
3694
3695 https://www.lyx.org/HowToUseGIT
3696 \end_layout
3697
3698 \end_inset
3699
3700 ) and to edit the doc file in place.
3701 \end_layout
3702
3703 \end_inset
3704
3705
3706 \end_layout
3707
3708 \begin_layout Itemize
3709 Sometimes the original document (from the \SpecialChar LyX
3710  team) will be updated.
3711  Use the source viewer at 
3712 \begin_inset CommandInset href
3713 LatexCommand href
3714 name "https://www.lyx.org/trac/timeline"
3715 target "https://www.lyx.org/trac/timeline"
3716 literal "false"
3717
3718 \end_inset
3719
3720  to see what has been changed.
3721  That way you can easily see which parts of the translated document need
3722  to be updated.
3723 \end_layout
3724
3725 \begin_layout Standard
3726 If you ever find an error in the original document, fix it and notify the
3727  rest of the documentation team of the changes! (You didn't forget to join
3728  the documentation team, did you?)
3729 \end_layout
3730
3731 \begin_layout Standard
3732 \begin_inset Branch OutDated
3733 inverted 0
3734 status collapsed
3735
3736 \begin_layout Section
3737 International Keyboard Support
3738 \end_layout
3739
3740 \begin_layout Standard
3741
3742 \emph on
3743 [Editor's Note: The following section is by
3744 \emph default
3745  
3746 \shape smallcaps
3747 \emph on
3748 Ivan Schreter
3749 \shape default
3750 .
3751  It needs to be fixed to conform to the new Documentation Style sheet and
3752  to make use of the new v1.0 features.
3753  The whole thing also needs to be merged with the section following it.-jw
3754  It may also be badly out of date.-rh (2008)]
3755 \end_layout
3756
3757 \begin_layout Subsection
3758 Defining Own Keymaps: Keymap File Format
3759 \end_layout
3760
3761 \begin_layout Standard
3762 Let's look at a keyboard definition file a little closer.
3763  It is a plain text file defining
3764 \end_layout
3765
3766 \begin_layout Itemize
3767 key-to-key or key-to-string translations
3768 \end_layout
3769
3770 \begin_layout Itemize
3771 dead keys
3772 \end_layout
3773
3774 \begin_layout Itemize
3775 dead keys exceptions
3776 \end_layout
3777
3778 \begin_layout Standard
3779 To define key-to-key or key-to-string translation, use this command:
3780 \end_layout
3781
3782 \begin_layout Quotation
3783 \begin_inset Flex Code
3784 status collapsed
3785
3786 \begin_layout Plain Layout
3787
3788 \backslash
3789 kmap
3790 \end_layout
3791
3792 \end_inset
3793
3794  
3795 \begin_inset Flex Code
3796 status collapsed
3797
3798 \begin_layout Plain Layout
3799 key
3800 \end_layout
3801
3802 \end_inset
3803
3804  outstring 
3805 \end_layout
3806
3807 \begin_layout Standard
3808 where 
3809 \begin_inset Flex Code
3810 status collapsed
3811
3812 \begin_layout Plain Layout
3813 key
3814 \end_layout
3815
3816 \end_inset
3817
3818  is the key to be translated and 
3819 \begin_inset Flex Code
3820 status collapsed
3821
3822 \begin_layout Plain Layout
3823 outstring
3824 \end_layout
3825
3826 \end_inset
3827
3828  is the string to be inserted into the document.
3829  To define dead keys, use:
3830 \end_layout
3831
3832 \begin_layout Quotation
3833 \begin_inset Flex Code
3834 status collapsed
3835
3836 \begin_layout Plain Layout
3837
3838 \backslash
3839 kmod
3840 \end_layout
3841
3842 \end_inset
3843
3844  
3845 \begin_inset Flex Code
3846 status collapsed
3847
3848 \begin_layout Plain Layout
3849 key
3850 \end_layout
3851
3852 \end_inset
3853
3854  deadkey
3855 \end_layout
3856
3857 \begin_layout Standard
3858 where 
3859 \begin_inset Flex Code
3860 status collapsed
3861
3862 \begin_layout Plain Layout
3863 key
3864 \end_layout
3865
3866 \end_inset
3867
3868  is a keyboard key and 
3869 \begin_inset Flex Code
3870 status collapsed
3871
3872 \begin_layout Plain Layout
3873 deadkey
3874 \end_layout
3875
3876 \end_inset
3877
3878  is dead key name.
3879  The following dead keys are supported (shortcut name is in parentheses):
3880 \end_layout
3881
3882 \begin_layout Quotation
3883
3884 \emph on
3885 Name
3886 \begin_inset space \hfill{}
3887 \end_inset
3888
3889 Example
3890 \end_layout
3891
3892 \begin_layout Quotation
3893 acute (acu)
3894 \begin_inset space \hfill{}
3895 \end_inset
3896
3897 áéíóú
3898 \end_layout
3899
3900 \begin_layout Quotation
3901 grave (gra)
3902 \begin_inset space \hfill{}
3903 \end_inset
3904
3905 àèìòù
3906 \end_layout
3907
3908 \begin_layout Quotation
3909 macron (mac)
3910 \begin_inset space \hfill{}
3911 \end_inset
3912
3913  ō
3914 \end_layout
3915
3916 \begin_layout Quotation
3917 tilde (til)
3918 \begin_inset space \hfill{}
3919 \end_inset
3920
3921 ñÑ
3922 \end_layout
3923
3924 \begin_layout Quotation
3925 underbar (underb)
3926 \begin_inset space \hfill{}
3927 \end_inset
3928
3929
3930 \begin_inset ERT
3931 status open
3932
3933 \begin_layout Plain Layout
3934
3935
3936 \backslash
3937 b o
3938 \end_layout
3939
3940 \end_inset
3941
3942
3943 \end_layout
3944
3945 \begin_layout Quotation
3946 cedilla (ced)
3947 \begin_inset space \hfill{}
3948 \end_inset
3949
3950 çÇ
3951 \end_layout
3952
3953 \begin_layout Quotation
3954 underdot (underd)
3955 \begin_inset space \hfill{}
3956 \end_inset
3957
3958
3959 \begin_inset ERT
3960 status open
3961
3962 \begin_layout Plain Layout
3963
3964
3965 \backslash
3966 d o
3967 \end_layout
3968
3969 \end_inset
3970
3971
3972 \end_layout
3973
3974 \begin_layout Quotation
3975 circumflex (circu)
3976 \begin_inset space \hfill{}
3977 \end_inset
3978
3979 âêîôû
3980 \end_layout
3981
3982 \begin_layout Quotation
3983 circle (circl)
3984 \begin_inset space \hfill{}
3985 \end_inset
3986
3987 ÅůŮ
3988 \end_layout
3989
3990 \begin_layout Quotation
3991 tie (tie)
3992 \begin_inset space \hfill{}
3993 \end_inset
3994
3995
3996 \begin_inset ERT
3997 status open
3998
3999 \begin_layout Plain Layout
4000
4001
4002 \backslash
4003 t o
4004 \end_layout
4005
4006 \end_inset
4007
4008
4009 \end_layout
4010
4011 \begin_layout Quotation
4012 breve (bre)
4013 \begin_inset space \hfill{}
4014 \end_inset
4015
4016 ă
4017 \begin_inset ERT
4018 status open
4019
4020 \begin_layout Plain Layout
4021
4022
4023 \backslash
4024 u o
4025 \end_layout
4026
4027 \end_inset
4028
4029
4030 \end_layout
4031
4032 \begin_layout Quotation
4033 caron (car)
4034 \begin_inset space \hfill{}
4035 \end_inset
4036
4037 čšž
4038 \end_layout
4039
4040 \begin_layout Quotation
4041 hungarian umlaut (hug)
4042 \begin_inset space \hfill{}
4043 \end_inset
4044
4045 őű
4046 \end_layout
4047
4048 \begin_layout Quotation
4049 umlaut (uml)
4050 \begin_inset space \hfill{}
4051 \end_inset
4052
4053 äöü
4054 \end_layout
4055
4056 \begin_layout Quotation
4057 dot (dot)
4058 \begin_inset space \hfill{}
4059 \end_inset
4060
4061 ż
4062 \begin_inset ERT
4063 status open
4064
4065 \begin_layout Plain Layout
4066
4067
4068 \backslash
4069 .s
4070 \end_layout
4071
4072 \end_inset
4073
4074
4075 \end_layout
4076
4077 \begin_layout Standard
4078 Since in many international keyboards there are exceptions to what some
4079  dead keys should do, you can define them using
4080 \end_layout
4081
4082 \begin_layout Quotation
4083 \begin_inset Flex Code
4084 status collapsed
4085
4086 \begin_layout Plain Layout
4087
4088 \backslash
4089 kxmod
4090 \end_layout
4091
4092 \end_inset
4093
4094  deadkey key outstring
4095 \end_layout
4096
4097 \begin_layout Standard
4098 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4099 , so you put in
4100 \end_layout
4101
4102 \begin_layout Quotation
4103 \begin_inset Flex Code
4104 status collapsed
4105
4106 \begin_layout Plain Layout
4107
4108 \backslash
4109 kxmod
4110 \end_layout
4111
4112 \end_inset
4113
4114  caron o "
4115 \backslash
4116 ^o"
4117 \end_layout
4118
4119 \begin_layout Standard
4120 to make it work correctly.
4121  Also, you have to define as exceptions dead keys over i and j, to remove
4122  the dot from them before inserting an accent mark.
4123  I will change this when the time comes, but so far I haven't had time.
4124 \end_layout
4125
4126 \begin_layout Standard
4127 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4128  double backslash.
4129  Also, quotes and 
4130 \begin_inset Flex Code
4131 status collapsed
4132
4133 \begin_layout Plain Layout
4134 #
4135 \end_layout
4136
4137 \end_inset
4138
4139  have different meaning.
4140  
4141 \begin_inset Flex Code
4142 status collapsed
4143
4144 \begin_layout Plain Layout
4145 #
4146 \end_layout
4147
4148 \end_inset
4149
4150  marks comments, quotes start and end \SpecialChar LaTeX
4151 -style commands.
4152  To enter quote, you'll need to use 
4153 \begin_inset Flex Code
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157
4158 \backslash
4159 "
4160 \end_layout
4161
4162 \end_inset
4163
4164 , to enter 
4165 \begin_inset Flex Code
4166 status collapsed
4167
4168 \begin_layout Plain Layout
4169 #
4170 \end_layout
4171
4172 \end_inset
4173
4174 , use 
4175 \begin_inset Flex Code
4176 status collapsed
4177
4178 \begin_layout Plain Layout
4179
4180 \backslash
4181 #
4182 \end_layout
4183
4184 \end_inset
4185
4186 .
4187 \end_layout
4188
4189 \begin_layout Standard
4190 If you make a keyboard description file that works for your language, please
4191  mail it to me, so I can include it in the next keymap distribution.
4192 \end_layout
4193
4194 \begin_layout Standard
4195 More keywords will be supported in keymap configuration file in future,
4196  like
4197 \end_layout
4198
4199 \begin_layout Itemize
4200 \begin_inset Flex Code
4201 status collapsed
4202
4203 \begin_layout Plain Layout
4204
4205 \backslash
4206 kinclude filename
4207 \end_layout
4208
4209 \end_inset
4210
4211
4212 \emph on
4213
4214 \begin_inset space \hfill{}
4215 \end_inset
4216
4217
4218 \begin_inset Flex Code
4219 status collapsed
4220
4221 \begin_layout Plain Layout
4222 include
4223 \end_layout
4224
4225 \end_inset
4226
4227  another file
4228 \end_layout
4229
4230 \begin_layout Itemize
4231 \begin_inset Flex Code
4232 status collapsed
4233
4234 \begin_layout Plain Layout
4235
4236 \backslash
4237 kprog program
4238 \end_layout
4239
4240 \end_inset
4241
4242
4243 \emph on
4244
4245 \begin_inset space \hfill{}
4246 \end_inset
4247
4248
4249 \begin_inset Flex Code
4250 status collapsed
4251
4252 \begin_layout Plain Layout
4253 define
4254 \end_layout
4255
4256 \end_inset
4257
4258  an external keymap translation program 
4259 \end_layout
4260
4261 \begin_layout Standard
4262 Also, it should look into 
4263 \begin_inset Flex Code
4264 status collapsed
4265
4266 \begin_layout Plain Layout
4267 lyxrc
4268 \end_layout
4269
4270 \end_inset
4271
4272  file for defaults, too (for example, a 
4273 \begin_inset Flex Code
4274 status collapsed
4275
4276 \begin_layout Plain Layout
4277
4278 \backslash
4279 kinclude
4280 \end_layout
4281
4282 \end_inset
4283
4284  option to include default keyboard).
4285 \end_layout
4286
4287 \end_inset
4288
4289
4290 \end_layout
4291
4292 \begin_layout Section
4293 International Keymap Stuff
4294 \begin_inset CommandInset label
4295 LatexCommand label
4296 name "sec:International-Keymap-Stuff"
4297
4298 \end_inset
4299
4300
4301 \end_layout
4302
4303 \begin_layout Standard
4304 \begin_inset Note Note
4305 status open
4306
4307 \begin_layout Plain Layout
4308 In doing the revisions on this document in March 2008, I did not look over
4309  this stuff, as I do not understand it.
4310  It would be good if someone else could do so.
4311  (RH)
4312 \end_layout
4313
4314 \end_inset
4315
4316
4317 \end_layout
4318
4319 \begin_layout Standard
4320 The next two sections describe the 
4321 \begin_inset Flex Code
4322 status collapsed
4323
4324 \begin_layout Plain Layout
4325
4326 \shape up
4327 .kmap
4328 \end_layout
4329
4330 \end_inset
4331
4332  and 
4333 \begin_inset Flex Code
4334 status collapsed
4335
4336 \begin_layout Plain Layout
4337
4338 \shape up
4339 .cdef
4340 \end_layout
4341
4342 \end_inset
4343
4344  file syntax in detail.
4345  These sections should help you design your own key map if the ones provided
4346  do not meet your needs.
4347 \end_layout
4348
4349 \begin_layout Subsection
4350 The .kmap File
4351 \end_layout
4352
4353 \begin_layout Standard
4354
4355 \shape up
4356 .
4357 \begin_inset Flex Code
4358 status collapsed
4359
4360 \begin_layout Plain Layout
4361 kmap
4362 \end_layout
4363
4364 \end_inset
4365
4366  file maps keystrokes to characters or strings.
4367  As the name suggests, it sets a keyboard mapping.
4368  The 
4369 \begin_inset Flex Code
4370 status collapsed
4371
4372 \begin_layout Plain Layout
4373 .kmap
4374 \end_layout
4375
4376 \end_inset
4377
4378
4379 \shape default
4380  file keywords 
4381 \shape up
4382
4383 \begin_inset Flex Code
4384 status collapsed
4385
4386 \begin_layout Plain Layout
4387
4388 \shape up
4389 kmap
4390 \end_layout
4391
4392 \end_inset
4393
4394
4395 \shape default
4396 ,
4397 \shape up
4398  
4399 \shape default
4400
4401 \begin_inset Flex Code
4402 status collapsed
4403
4404 \begin_layout Plain Layout
4405
4406 \shape up
4407 kmod
4408 \end_layout
4409
4410 \end_inset
4411
4412 ,
4413 \shape up
4414  
4415 \shape default
4416
4417 \begin_inset Flex Code
4418 status collapsed
4419
4420 \begin_layout Plain Layout
4421
4422 \shape up
4423 kxmod
4424 \end_layout
4425
4426 \end_inset
4427
4428 , and 
4429 \begin_inset Flex Code
4430 status collapsed
4431
4432 \begin_layout Plain Layout
4433
4434 \shape up
4435 kcomb
4436 \end_layout
4437
4438 \end_inset
4439
4440  are described in this section.
4441 \end_layout
4442
4443 \begin_layout Labeling
4444 \labelwidthstring 00.00.0000
4445 \begin_inset Flex Code
4446 status collapsed
4447
4448 \begin_layout Plain Layout
4449
4450 \shape up
4451 kmap
4452 \end_layout
4453
4454 \end_inset
4455
4456  Map a character to a string
4457 \end_layout
4458
4459 \begin_layout LyX-Code
4460
4461 \backslash
4462 kmap 
4463 \family roman
4464 \emph on
4465 char
4466 \family default
4467 \emph default
4468  
4469 \family roman
4470 \emph on
4471 string
4472 \end_layout
4473
4474 \begin_layout Standard
4475 This will ma
4476 \family roman
4477 p
4478 \family default
4479  
4480 \family roman
4481 \emph on
4482 char
4483 \family default
4484 \emph default
4485  
4486 \family roman
4487 to
4488 \family default
4489  
4490 \family roman
4491 \emph on
4492 string
4493 \emph default
4494 .
4495  Note that in
4496 \family default
4497  
4498 \family roman
4499 \emph on
4500 string
4501 \emph default
4502 ,
4503 \family default
4504  
4505 \family roman
4506 \shape up
4507 the double-quote (")
4508 \family default
4509 \shape default
4510  
4511 \family roman
4512 and
4513 \family default
4514  
4515 \family roman
4516 \shape up
4517 the backslash (
4518 \backslash
4519 )
4520 \family default
4521 \shape default
4522  
4523 \family roman
4524 must be escaped with a preceding backslash (
4525 \shape up
4526
4527 \backslash
4528
4529 \shape default
4530 )
4531 \family default
4532 .
4533 \end_layout
4534
4535 \begin_layout Standard
4536 An example of a 
4537 \begin_inset Flex Noun
4538 status collapsed
4539
4540 \begin_layout Plain Layout
4541
4542 \shape up
4543 kmap
4544 \end_layout
4545
4546 \end_inset
4547
4548  statement to cause the symbol 
4549 \begin_inset Flex Noun
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553
4554 \shape up
4555 /
4556 \end_layout
4557
4558 \end_inset
4559
4560  to be output for the keystroke 
4561 \begin_inset Flex Noun
4562 status collapsed
4563
4564 \begin_layout Plain Layout
4565
4566 \shape up
4567 &
4568 \end_layout
4569
4570 \end_inset
4571
4572  is:
4573 \end_layout
4574
4575 \begin_layout LyX-Code
4576
4577 \backslash
4578 kmap & /
4579 \end_layout
4580
4581 \begin_layout Labeling
4582 \labelwidthstring 00.00.0000
4583 \begin_inset Flex Code
4584 status collapsed
4585
4586 \begin_layout Plain Layout
4587
4588 \shape up
4589 kmod
4590 \end_layout
4591
4592 \end_inset
4593
4594  Specify an accent character
4595 \end_layout
4596
4597 \begin_layout LyX-Code
4598
4599 \backslash
4600 kmod 
4601 \family roman
4602 \emph on
4603 char accent allowed
4604 \end_layout
4605
4606 \begin_layout Standard
4607 This will make the cha
4608 \family roman
4609 racter
4610 \family default
4611  
4612 \family roman
4613 \emph on
4614 char
4615 \family default
4616 \emph default
4617  
4618 \family roman
4619 \shape up
4620 \emph on
4621 be an accent
4622 \family default
4623 \shape default
4624 \emph default
4625  
4626 \family roman
4627 \shape up
4628 on the
4629 \family default
4630 \shape default
4631  
4632 \family roman
4633 \shape up
4634 \emph on
4635 allowed
4636 \family default
4637 \shape default
4638 \emph default
4639  
4640 \family roman
4641 \shape up
4642 cha
4643 \family default
4644 racter(s).
4645  This is the dead key
4646 \begin_inset Foot
4647 status collapsed
4648
4649 \begin_layout Plain Layout
4650 The term 
4651 \family roman
4652 \emph on
4653 dead key
4654 \family default
4655 \emph default
4656  refers to a key that does not produce a character by itself, but when followed
4657  with another key, produces the desired accent character.
4658  For example, a German characte
4659 \family roman
4660 r with an umlaut like
4661 \family default
4662  
4663 \family roman
4664 \emph on
4665 ä
4666 \family default
4667 \emph default
4668  
4669 \family roman
4670 can be produced in this manner.
4671 \end_layout
4672
4673 \end_inset
4674
4675  mechanism.
4676  
4677 \end_layout
4678
4679 \begin_layout Standard
4680 If you 
4681 \family roman
4682 hit
4683 \family default
4684  
4685 \family roman
4686 \emph on
4687 char
4688 \family default
4689 \emph default
4690  
4691 \family roman
4692 and then another key not in
4693 \family default
4694  
4695 \family roman
4696 \emph on
4697 allowed
4698 \emph default
4699 , you will get a
4700 \family default
4701  
4702 \family roman
4703 \emph on
4704 char
4705 \family default
4706 \emph default
4707  
4708 \family roman
4709 followed by the other, not allowed key, as output.
4710
4711 \family default
4712  Note that a 
4713 \begin_inset Flex Noun
4714 status collapsed
4715
4716 \begin_layout Plain Layout
4717
4718 \shape up
4719 Backspace
4720 \end_layout
4721
4722 \end_inset
4723
4724  cancels a dead key, so if 
4725 \family roman
4726 you hit
4727 \family default
4728  
4729 \family roman
4730 \emph on
4731 char
4732 \family default
4733 \emph default
4734  
4735 \begin_inset Flex Noun
4736 status collapsed
4737
4738 \begin_layout Plain Layout
4739
4740 \shape up
4741 \emph on
4742 Backspace
4743 \end_layout
4744
4745 \end_inset
4746
4747 , the cursor will not go one position backwards but will instead cancel
4748  the effect t
4749 \family roman
4750 hat
4751 \family default
4752  
4753 \family roman
4754 \shape up
4755 \emph on
4756 char
4757 \family default
4758 \shape default
4759 \emph default
4760  
4761 \family roman
4762 \shape up
4763 might have had on the next keystroke.
4764  
4765 \end_layout
4766
4767 \begin_layout Standard
4768 The following example specifies that the character ' is to be an acute accent,
4769  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4770 \end_layout
4771
4772 \begin_layout LyX-Code
4773
4774 \backslash
4775 kmod ' acute aeiouAEIOU
4776 \end_layout
4777
4778 \begin_layout Labeling
4779 \labelwidthstring 00.00.0000
4780 \begin_inset Flex Code
4781 status collapsed
4782
4783 \begin_layout Plain Layout
4784 kxmod
4785 \end_layout
4786
4787 \end_inset
4788
4789  Specify an exception to the accent character
4790 \end_layout
4791
4792 \begin_layout LyX-Code
4793
4794 \backslash
4795 kxmod  
4796 \family roman
4797 \emph on
4798 accent char result
4799 \end_layout
4800
4801 \begin_layout Standard
4802 This defines an exce
4803 \family roman
4804 ption for
4805 \family default
4806  
4807 \family roman
4808 \emph on
4809 accent
4810 \family default
4811 \emph default
4812  
4813 \family roman
4814 on
4815 \family default
4816  
4817 \family roman
4818 \emph on
4819 char
4820 \emph default
4821 .
4822  T
4823 \shape up
4824 he
4825 \family default
4826 \shape default
4827  
4828 \family roman
4829 \shape up
4830 \emph on
4831 accent
4832 \family default
4833 \shape default
4834 \emph default
4835  
4836 \family roman
4837 \shape up
4838 must
4839 \family default
4840 \shape default
4841  
4842 \shape up
4843 have been assigned a keystroke with a previous
4844 \shape default
4845  
4846 \begin_inset Flex Code
4847 status collapsed
4848
4849 \begin_layout Plain Layout
4850
4851 \shape up
4852
4853 \backslash
4854 kmo
4855 \shape default
4856 d
4857 \end_layout
4858
4859 \end_inset
4860
4861  declar
4862 \family roman
4863 ation and
4864 \family default
4865  
4866 \family roman
4867 \emph on
4868 char
4869 \family default
4870 \emph default
4871  
4872 \family roman
4873 must not belong in the
4874 \family default
4875  
4876 \family roman
4877 \emph on
4878 allowed
4879 \family default
4880 \emph default
4881  
4882 \family roman
4883 set of
4884 \family default
4885  
4886 \family roman
4887 \emph on
4888 accent
4889 \emph default
4890 .
4891  When
4892 \family default
4893  
4894 \family roman
4895 \shape up
4896 you enter the
4897 \family default
4898 \shape default
4899  
4900 \family roman
4901 \shape up
4902 \emph on
4903 accent char
4904 \family default
4905 \shape default
4906 \emph default
4907  
4908 \family roman
4909 \shape up
4910 sequence,
4911 \family default
4912 \shape default
4913  
4914 \family roman
4915 \shape up
4916 \emph on
4917 result
4918 \emph default
4919  is produced.
4920  If such a declaration does not exist in
4921 \family default
4922 \shape default
4923  
4924 \shape up
4925 the
4926 \shape default
4927  
4928 \begin_inset Flex Code
4929 status collapsed
4930
4931 \begin_layout Plain Layout
4932
4933 \shape up
4934 .kmap
4935 \end_layout
4936
4937 \end_inset
4938
4939  file and yo
4940 \family roman
4941 u enter
4942 \family default
4943  
4944 \family roman
4945 \emph on
4946 accent char
4947 \emph default
4948 , you get
4949 \family default
4950  
4951 \family roman
4952 \emph on
4953 accent_key char
4954 \emph default
4955  where
4956 \family default
4957  
4958 \family roman
4959 \emph on
4960 accent_key
4961 \emph default
4962  is the first arg
4963 \family default
4964 ument of the 
4965 \begin_inset Flex Code
4966 status collapsed
4967
4968 \begin_layout Plain Layout
4969
4970 \shape up
4971
4972 \backslash
4973 kmod
4974 \end_layout
4975
4976 \end_inset
4977
4978  declaration.
4979  
4980 \end_layout
4981
4982 \begin_layout Standard
4983 The following command produces causes äi to be produced when you enter acute-i
4984  ('i):
4985 \end_layout
4986
4987 \begin_layout LyX-Code
4988
4989 \backslash
4990 kxmod acute i "
4991 \backslash
4992
4993 \backslash
4994 '{
4995 \backslash
4996
4997 \backslash
4998 i}"
4999 \end_layout
5000
5001 \begin_layout Labeling
5002 \labelwidthstring 00.00.0000
5003 \begin_inset Flex Code
5004 status collapsed
5005
5006 \begin_layout Plain Layout
5007 kcomb
5008 \end_layout
5009
5010 \end_inset
5011
5012  Combine two accent characters
5013 \end_layout
5014
5015 \begin_layout LyX-Code
5016
5017 \backslash
5018 kcomb 
5019 \family roman
5020 \emph on
5021 accent1 accent2 allowed
5022 \end_layout
5023
5024 \begin_layout Standard
5025 This one is getting pretty esoteric.
5026  It allows you to combine the effect 
5027 \family roman
5028 of
5029 \family default
5030  
5031 \family roman
5032 \emph on
5033 accent1
5034 \family default
5035 \emph default
5036  
5037 \family roman
5038 and
5039 \family default
5040  
5041 \family roman
5042 \emph on
5043 accent2
5044 \family default
5045 \emph default
5046  
5047 \family roman
5048 (in that order!) on
5049 \family default
5050  
5051 \family roman
5052 \emph on
5053 allowed
5054 \family default
5055 \emph default
5056  
5057 \family roman
5058 chars.
5059  The keystrokes for
5060 \family default
5061  
5062 \family roman
5063 \emph on
5064 accent1
5065 \family default
5066 \emph default
5067  
5068 \family roman
5069 and
5070 \family default
5071  
5072 \family roman
5073 \emph on
5074 accent2
5075 \family default
5076 \emph default
5077  
5078 \family roman
5079 must have be
5080 \family default
5081 en set with a 
5082 \begin_inset Flex Code
5083 status collapsed
5084
5085 \begin_layout Plain Layout
5086
5087 \shape up
5088
5089 \backslash
5090 kmod
5091 \end_layout
5092
5093 \end_inset
5094
5095  command at 
5096 \family roman
5097 a
5098 \family default
5099  
5100 \family roman
5101 \emph on
5102 previous
5103 \family default
5104 \emph default
5105  
5106 \family roman
5107 point in the
5108 \family default
5109  file.
5110  
5111 \end_layout
5112
5113 \begin_layout Standard
5114 Consider this example from the 
5115 \begin_inset Flex Code
5116 status collapsed
5117
5118 \begin_layout Plain Layout
5119
5120 \shape up
5121 greek.kmap
5122 \end_layout
5123
5124 \end_inset
5125
5126  file:
5127 \end_layout
5128
5129 \begin_layout LyX-Code
5130
5131 \backslash
5132 kmod ; acute aeioyvhAEIOYVH 
5133 \backslash
5134 kmod : umlaut iyIY 
5135 \backslash
5136 kcomb acute umlaut iyIY
5137 \end_layout
5138
5139 \begin_layout Standard
5140 This allows you to press 
5141 \begin_inset Flex Noun
5142 status collapsed
5143
5144 \begin_layout Plain Layout
5145
5146 \shape up
5147 ;:i
5148 \end_layout
5149
5150 \end_inset
5151
5152  and get the effect of 
5153 \begin_inset Flex Code
5154 status collapsed
5155
5156 \begin_layout Plain Layout
5157
5158 \shape up
5159
5160 \backslash
5161 '{
5162 \backslash
5163 "{i}}
5164 \end_layout
5165
5166 \end_inset
5167
5168 .
5169  
5170 \family roman
5171 \shape up
5172 A backspace
5173 \family default
5174 \shape default
5175  in this case cancels the last dead key, so if you press 
5176 \begin_inset Flex Noun
5177 status collapsed
5178
5179 \begin_layout Plain Layout
5180
5181 \shape up
5182 ;: Backspace i
5183 \end_layout
5184
5185 \end_inset
5186
5187  you get 
5188 \begin_inset Flex Code
5189 status collapsed
5190
5191 \begin_layout Plain Layout
5192
5193 \shape up
5194
5195 \backslash
5196 '{i}
5197 \end_layout
5198
5199 \end_inset
5200
5201 .
5202 \end_layout
5203
5204 \begin_layout Subsection
5205 The .cdef File
5206 \end_layout
5207
5208 \begin_layout Standard
5209 After the 
5210 \begin_inset Flex Code
5211 status collapsed
5212
5213 \begin_layout Plain Layout
5214
5215 \shape up
5216 .kmap
5217 \end_layout
5218
5219 \end_inset
5220
5221  mapping is performed, a 
5222 \begin_inset Flex Code
5223 status collapsed
5224
5225 \begin_layout Plain Layout
5226
5227 \shape up
5228 .cde
5229 \shape default
5230 f
5231 \end_layout
5232
5233 \end_inset
5234
5235  file maps the strings that the symbols generate to characters in the current
5236  font.
5237  The \SpecialChar LyX
5238  distribution currently includes at least the 
5239 \begin_inset Flex Code
5240 status collapsed
5241
5242 \begin_layout Plain Layout
5243
5244 \shape up
5245 iso8859-1.cdef
5246 \end_layout
5247
5248 \end_inset
5249
5250  and 
5251 \begin_inset Flex Code
5252 status collapsed
5253
5254 \begin_layout Plain Layout
5255
5256 \shape up
5257 iso8859-2.cdef
5258 \end_layout
5259
5260 \end_inset
5261
5262  files.
5263 \end_layout
5264
5265 \begin_layout Standard
5266 In general the 
5267 \begin_inset Flex Code
5268 status collapsed
5269
5270 \begin_layout Plain Layout
5271
5272 \shape up
5273 .cdef
5274 \end_layout
5275
5276 \end_inset
5277
5278  file is a sequence of declarations of the form
5279 \end_layout
5280
5281 \begin_layout LyX-Code
5282
5283 \family roman
5284 \emph on
5285 char_index_in_set
5286 \family default
5287 \emph default
5288  
5289 \family roman
5290 \emph on
5291  string
5292 \end_layout
5293
5294 \begin_layout Standard
5295 For example, in order to map 
5296 \begin_inset Flex Noun
5297 status collapsed
5298
5299 \begin_layout Plain Layout
5300
5301 \shape up
5302
5303 \backslash
5304 '{e}
5305 \end_layout
5306
5307 \end_inset
5308
5309  to the corresponding character in the iso-8859-1 set (233), the following
5310  declaration is used
5311 \end_layout
5312
5313 \begin_layout LyX-Code
5314 233 "
5315 \backslash
5316
5317 \backslash
5318 '{e}"
5319 \end_layout
5320
5321 \begin_layout Standard
5322 with 
5323 \begin_inset Flex Code
5324 status collapsed
5325
5326 \begin_layout Plain Layout
5327
5328 \backslash
5329
5330 \end_layout
5331
5332 \end_inset
5333
5334  and 
5335 \begin_inset Flex Code
5336 status collapsed
5337
5338 \begin_layout Plain Layout
5339 "
5340 \end_layout
5341
5342 \end_inset
5343
5344  being escap
5345 \family roman
5346 ed in
5347 \family default
5348  
5349 \family roman
5350 \emph on
5351 string
5352 \emph default
5353 .
5354  Note that
5355 \family default
5356  the same character can apply to more than one string.
5357  In the 
5358 \begin_inset Flex Code
5359 status collapsed
5360
5361 \begin_layout Plain Layout
5362 i
5363 \shape up
5364 so-8859-7.cdef
5365 \end_layout
5366
5367 \end_inset
5368
5369  file you have
5370 \end_layout
5371
5372 \begin_layout LyX-Code
5373 192 "
5374 \backslash
5375
5376 \backslash
5377 '{
5378 \backslash
5379
5380 \backslash
5381
5382 \backslash
5383 "{i}}"
5384 \begin_inset Newline newline
5385 \end_inset
5386
5387 192 "
5388 \backslash
5389
5390 \backslash
5391
5392 \backslash
5393 "{
5394 \backslash
5395
5396 \backslash
5397 '{i}}"
5398 \end_layout
5399
5400 \begin_layout Standard
5401 If \SpecialChar LyX
5402  cannot find a mapping for the string produced by the keystroke or a
5403  deadkey sequence, it will check if it looks like an accented char and try
5404  to draw an accent over the character on screen.
5405 \end_layout
5406
5407 \begin_layout Subsection
5408 Dead Keys
5409 \end_layout
5410
5411 \begin_layout Standard
5412 There is a second way to add support for international characters through
5413  so-called dead-keys.
5414  A dead-key works in combination with a letter to produce an accented character.
5415  Here, we'll explain how to create a really simple dead-key to illustrate
5416  how they work.
5417 \end_layout
5418
5419 \begin_layout Standard
5420 Suppose you happen to need the circumflex character, 
5421 \begin_inset Quotes eld
5422 \end_inset
5423
5424  ̂
5425 \begin_inset Quotes erd
5426 \end_inset
5427
5428 .
5429  You could bind the 
5430 \begin_inset Flex Noun
5431 status collapsed
5432
5433 \begin_layout Plain Layout
5434 ^
5435 \end_layout
5436
5437 \end_inset
5438
5439 -key [a.k.a.
5440 \begin_inset space ~
5441 \end_inset
5442
5443
5444 \begin_inset Flex Noun
5445 status collapsed
5446
5447 \begin_layout Plain Layout
5448 Shift-6
5449 \end_layout
5450
5451 \end_inset
5452
5453 ] to the \SpecialChar LyX
5454  command 
5455 \begin_inset Flex Code
5456 status collapsed
5457
5458 \begin_layout Plain Layout
5459 accent-circumflex
5460 \end_layout
5461
5462 \end_inset
5463
5464  in your 
5465 \begin_inset Flex Code
5466 status collapsed
5467
5468 \begin_layout Plain Layout
5469 lyxrc
5470 \end_layout
5471
5472 \end_inset
5473
5474  file.
5475  Now, whenever you type the 
5476 \begin_inset Flex Noun
5477 status collapsed
5478
5479 \begin_layout Plain Layout
5480 ^
5481 \end_layout
5482
5483 \end_inset
5484
5485 -key followed by a letter, that letter will have a circumflex accent on
5486  it.
5487  For example, the sequence 
5488 \begin_inset Quotes eld
5489 \end_inset
5490
5491
5492 \begin_inset Flex Noun
5493 status collapsed
5494
5495 \begin_layout Plain Layout
5496 ^e
5497 \end_layout
5498
5499 \end_inset
5500
5501
5502 \begin_inset Quotes erd
5503 \end_inset
5504
5505  produces the letter: 
5506 \begin_inset Quotes eld
5507 \end_inset
5508
5509 ê
5510 \begin_inset Quotes erd
5511 \end_inset
5512
5513 .
5514  If you tried to type 
5515 \begin_inset Quotes eld
5516 \end_inset
5517
5518
5519 \begin_inset Flex Noun
5520 status collapsed
5521
5522 \begin_layout Plain Layout
5523 ^t
5524 \end_layout
5525
5526 \end_inset
5527
5528
5529 \begin_inset Quotes erd
5530 \end_inset
5531
5532 , however, \SpecialChar LyX
5533  will complain with a beep, since a 
5534 \begin_inset Quotes eld
5535 \end_inset
5536
5537
5538 \begin_inset Flex Noun
5539 status collapsed
5540
5541 \begin_layout Plain Layout
5542 t
5543 \end_layout
5544
5545 \end_inset
5546
5547
5548 \begin_inset Quotes erd
5549 \end_inset
5550
5551  never takes a circumflex accent.
5552  Hitting 
5553 \begin_inset Flex Noun
5554 status collapsed
5555
5556 \begin_layout Plain Layout
5557 Space
5558 \end_layout
5559
5560 \end_inset
5561
5562  after a dead-key produces the bare-accent.
5563  Please note this last point! If you bind a key to a dead-key, you'll need
5564  to rebind the character on that key to yet another key.
5565  Binding the 
5566 \begin_inset Flex Noun
5567 status collapsed
5568
5569 \begin_layout Plain Layout
5570 ,-key
5571 \end_layout
5572
5573 \end_inset
5574
5575  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5576 \end_layout
5577
5578 \begin_layout Standard
5579 One common way to bind dead-keys is to use 
5580 \begin_inset Flex Noun
5581 status collapsed
5582
5583 \begin_layout Plain Layout
5584 Meta-
5585 \end_layout
5586
5587 \end_inset
5588
5589
5590 \begin_inset Flex Noun
5591 status collapsed
5592
5593 \begin_layout Plain Layout
5594 Ctrl-
5595 \end_layout
5596
5597 \end_inset
5598
5599 , and 
5600 \begin_inset Flex Noun
5601 status collapsed
5602
5603 \begin_layout Plain Layout
5604 Shift-
5605 \end_layout
5606
5607 \end_inset
5608
5609  in combination with an accent, like 
5610 \begin_inset Quotes eld
5611 \end_inset
5612
5613
5614 \begin_inset Flex Noun
5615 status collapsed
5616
5617 \begin_layout Plain Layout
5618 ~
5619 \end_layout
5620
5621 \end_inset
5622
5623
5624 \begin_inset Quotes erd
5625 \end_inset
5626
5627  or 
5628 \begin_inset Quotes eld
5629 \end_inset
5630
5631
5632 \begin_inset Flex Noun
5633 status collapsed
5634
5635 \begin_layout Plain Layout
5636 ,
5637 \end_layout
5638
5639 \end_inset
5640
5641
5642 \begin_inset Quotes erd
5643 \end_inset
5644
5645  or 
5646 \begin_inset Quotes eld
5647 \end_inset
5648
5649
5650 \begin_inset Flex Noun
5651 status collapsed
5652
5653 \begin_layout Plain Layout
5654 ^
5655 \end_layout
5656
5657 \end_inset
5658
5659
5660 \begin_inset Quotes erd
5661 \end_inset
5662
5663 .
5664  Another way involves using 
5665 \begin_inset Flex Code
5666 status collapsed
5667
5668 \begin_layout Plain Layout
5669 xmodmap
5670 \end_layout
5671
5672 \end_inset
5673
5674  and 
5675 \begin_inset Flex Code
5676 status collapsed
5677
5678 \begin_layout Plain Layout
5679 xkeycaps
5680 \end_layout
5681
5682 \end_inset
5683
5684  to set up the special 
5685 \begin_inset Flex Code
5686 status collapsed
5687
5688 \begin_layout Plain Layout
5689 Mode_Switch
5690 \end_layout
5691
5692 \end_inset
5693
5694  key.
5695  The 
5696 \begin_inset Flex Code
5697 status collapsed
5698
5699 \begin_layout Plain Layout
5700 Mode_Switch
5701 \end_layout
5702
5703 \end_inset
5704
5705  acts in some ways just like 
5706 \begin_inset Flex Noun
5707 status collapsed
5708
5709 \begin_layout Plain Layout
5710 Shift
5711 \end_layout
5712
5713 \end_inset
5714
5715  and permits you to bind keys to accented characters.
5716  You can also turn keys into dead-keys by binding them to something like
5717  
5718 \begin_inset Flex Code
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722 usldead_cedilla
5723 \end_layout
5724
5725 \end_inset
5726
5727  and then binding this symbolic key to the corresponding \SpecialChar LyX
5728  command.
5729 \begin_inset Foot
5730 status collapsed
5731
5732 \begin_layout Plain Layout
5733 Note from 
5734 \noun on
5735 John Weiss
5736 \noun default
5737 : This is exactly what I do in my 
5738 \begin_inset Flex Code
5739 status collapsed
5740
5741 \begin_layout Plain Layout
5742 ~/.lyx/lyxrc
5743 \end_layout
5744
5745 \end_inset
5746
5747  and my 
5748 \begin_inset Flex Code
5749 status collapsed
5750
5751 \begin_layout Plain Layout
5752 ~/.xmodmap
5753 \end_layout
5754
5755 \end_inset
5756
5757  files.
5758  I have my 
5759 \begin_inset Flex Noun
5760 status collapsed
5761
5762 \begin_layout Plain Layout
5763 Scroll
5764 \begin_inset space ~
5765 \end_inset
5766
5767 Lock
5768 \end_layout
5769
5770 \end_inset
5771
5772  key set up as 
5773 \begin_inset Flex Code
5774 status collapsed
5775
5776 \begin_layout Plain Layout
5777 Mode_Shift
5778 \end_layout
5779
5780 \end_inset
5781
5782  and a bunch of these 
5783 \begin_inset Quotes eld
5784 \end_inset
5785
5786
5787 \begin_inset Flex Code
5788 status collapsed
5789
5790 \begin_layout Plain Layout
5791 usldead_*
5792 \end_layout
5793
5794 \end_inset
5795
5796
5797 \begin_inset Quotes erd
5798 \end_inset
5799
5800  symbolic keys bound such things as 
5801 \begin_inset Flex Noun
5802 status collapsed
5803
5804 \begin_layout Plain Layout
5805 Scroll
5806 \begin_inset space ~
5807 \end_inset
5808
5809 Lock-^
5810 \end_layout
5811
5812 \end_inset
5813
5814  and 
5815 \begin_inset Flex Noun
5816 status collapsed
5817
5818 \begin_layout Plain Layout
5819 Scroll
5820 \begin_inset space ~
5821 \end_inset
5822
5823 Lock-~
5824 \end_layout
5825
5826 \end_inset
5827
5828 .
5829  This is how I produce my accented characters.
5830 \end_layout
5831
5832 \end_inset
5833
5834  You can make just about anything into the 
5835 \begin_inset Flex Code
5836 status collapsed
5837
5838 \begin_layout Plain Layout
5839 Mode_Switch
5840 \end_layout
5841
5842 \end_inset
5843
5844  key: One of the 
5845 \begin_inset Flex Noun
5846 status collapsed
5847
5848 \begin_layout Plain Layout
5849 Ctrl-
5850 \end_layout
5851
5852 \end_inset
5853
5854  keys, a spare function key, etc.
5855  As for the \SpecialChar LyX
5856  commands that produce accents, check the entry for 
5857 \begin_inset Flex Code
5858 status collapsed
5859
5860 \begin_layout Plain Layout
5861 accent-acute
5862 \end_layout
5863
5864 \end_inset
5865
5866  in the 
5867 \emph on
5868 Reference Manual
5869 \emph default
5870 .
5871  You'll find the complete list there.
5872 \end_layout
5873
5874 \begin_layout Subsection
5875 Saving your Language Configuration
5876 \end_layout
5877
5878 \begin_layout Standard
5879 You can edit your preferences so that your desired language environment
5880  is automatically configured when \SpecialChar LyX
5881  starts up, via the 
5882 \begin_inset Flex Noun
5883 status collapsed
5884
5885 \begin_layout Plain Layout
5886 Edit\SpecialChar menuseparator
5887 Preferences
5888 \end_layout
5889
5890 \end_inset
5891
5892  dialog.
5893 \end_layout
5894
5895 \begin_layout Chapter
5896 Installing New Document Classes, Layouts, and Templates
5897 \begin_inset CommandInset label
5898 LatexCommand label
5899 name "cha:Installing-New-Document"
5900
5901 \end_inset
5902
5903
5904 \begin_inset Argument 1
5905 status collapsed
5906
5907 \begin_layout Plain Layout
5908 Installing New Document Classes
5909 \end_layout
5910
5911 \end_inset
5912
5913
5914 \end_layout
5915
5916 \begin_layout Standard
5917 In this chapter, we describe the procedures for creating and installing
5918  new \SpecialChar LyX
5919  layout and template files, as well as offer a refresher on correctly
5920  installing new \SpecialChar LaTeX
5921  document classes.
5922  
5923 \end_layout
5924
5925 \begin_layout Standard
5926 First, let us a say a few words about how one ought to think about the relation
5927  between \SpecialChar LyX
5928  and \SpecialChar LaTeX
5929 .
5930  The thing to understand is that, in a certain sense, \SpecialChar LyX
5931  doesn't know anything
5932  about \SpecialChar LaTeX
5933 .
5934  Indeed, from \SpecialChar LyX
5935 's point of view, \SpecialChar LaTeX
5936  is just one of several 
5937 \begin_inset Quotes eld
5938 \end_inset
5939
5940 backend formats
5941 \begin_inset Quotes erd
5942 \end_inset
5943
5944  in which it is capable of producing output.
5945  Other such formats are DocBook, plaintext, and XHTML.
5946  \SpecialChar LaTeX
5947  is, of course, a particularly important format, but very little of the
5948  information \SpecialChar LyX
5949  has about \SpecialChar LaTeX
5950  is actually contained in the program itself.
5951 \begin_inset Foot
5952 status collapsed
5953
5954 \begin_layout Plain Layout
5955 Some commands are sufficiently complex that they are 
5956 \begin_inset Quotes eld
5957 \end_inset
5958
5959 hardcoded
5960 \begin_inset Quotes erd
5961 \end_inset
5962
5963  into \SpecialChar LyX
5964 .
5965  But the developers generally regard this as a Bad Thing.
5966 \end_layout
5967
5968 \end_inset
5969
5970  Rather, that information, even for the standard classes like 
5971 \begin_inset Flex Code
5972 status collapsed
5973
5974 \begin_layout Plain Layout
5975 article.cls
5976 \end_layout
5977
5978 \end_inset
5979
5980 , is contained in `layout files'.
5981  Similarly, \SpecialChar LyX
5982  itself does not know much about DocBook or XHTML.
5983  What it knows is contained in layout files.
5984 \end_layout
5985
5986 \begin_layout Standard
5987 You can think of the layout file for a given document class as a translation
5988  manual between \SpecialChar LyX
5989  constructs—paragraphs with their corresponding styles,
5990  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5991 , DocBook, or XHTML
5992  constructs.
5993  Almost everything \SpecialChar LyX
5994  knows about 
5995 \begin_inset Flex Code
5996 status collapsed
5997
5998 \begin_layout Plain Layout
5999 article.cls
6000 \end_layout
6001
6002 \end_inset
6003
6004 , for example, is contained in the file 
6005 \begin_inset Flex Code
6006 status collapsed
6007
6008 \begin_layout Plain Layout
6009 article.layout
6010 \end_layout
6011
6012 \end_inset
6013
6014  and in various other files it includes.
6015  For this reason, anyone intending to write layout files should plan to
6016  study the existing files.
6017  A good place to start is with 
6018 \begin_inset Flex Code
6019 status collapsed
6020
6021 \begin_layout Plain Layout
6022 stdsections.inc
6023 \end_layout
6024
6025 \end_inset
6026
6027 , which is included in 
6028 \begin_inset Flex Code
6029 status collapsed
6030
6031 \begin_layout Plain Layout
6032 article.layout
6033 \end_layout
6034
6035 \end_inset
6036
6037
6038 \begin_inset Flex Code
6039 status collapsed
6040
6041 \begin_layout Plain Layout
6042 book.layout
6043 \end_layout
6044
6045 \end_inset
6046
6047 , and many of the other layout files for document classes.
6048  This file is where sections and the like are defined: 
6049 \begin_inset Flex Code
6050 status collapsed
6051
6052 \begin_layout Plain Layout
6053 stdsections.inc
6054 \end_layout
6055
6056 \end_inset
6057
6058  tells \SpecialChar LyX
6059  how paragraphs that are marked with the Section, Subsection, etc,
6060  styles can be translated into corresponding \SpecialChar LaTeX
6061 , DocBook, and XHTML commands
6062  and tags.
6063  The 
6064 \begin_inset Flex Code
6065 status collapsed
6066
6067 \begin_layout Plain Layout
6068 article.layout
6069 \end_layout
6070
6071 \end_inset
6072
6073  file basically just includes several of these 
6074 \begin_inset Flex Code
6075 status collapsed
6076
6077 \begin_layout Plain Layout
6078 std*.inc
6079 \end_layout
6080
6081 \end_inset
6082
6083  files.
6084 \end_layout
6085
6086 \begin_layout Standard
6087 Defining the \SpecialChar LyX
6088 –\SpecialChar LaTeX
6089  correspondence is not the only thing layout files do, though.
6090  Their other job is to define how the \SpecialChar LyX
6091  constructs themselves will appear
6092  on-screen.
6093  The fact that layout files have these two jobs is often a source of confusion,
6094  because they are completely separate.
6095  Telling \SpecialChar LyX
6096  how to translate a certain paragraph style into \SpecialChar LaTeX
6097  does not tell
6098  \SpecialChar LyX
6099  how to display it; conversely, telling \SpecialChar LyX
6100  how to display a certain paragraph
6101  style does not tell \SpecialChar LyX
6102  how to translate it into \SpecialChar LaTeX
6103  (let alone tell \SpecialChar LaTeX
6104  how to
6105  display it).
6106  So, in general, when you define a new \SpecialChar LyX
6107  construct, you must always do two
6108  quite separate things: (i)
6109 \begin_inset space ~
6110 \end_inset
6111
6112 tell \SpecialChar LyX
6113  how to translate it into \SpecialChar LaTeX
6114  and (ii)
6115 \begin_inset space ~
6116 \end_inset
6117
6118 tell \SpecialChar LyX
6119  how to display it.
6120 \end_layout
6121
6122 \begin_layout Standard
6123 Much the same is true, of course, as regards \SpecialChar LyX
6124 's other backend formats, though
6125  XHTML is in some ways different, because in that case \SpecialChar LyX
6126  
6127 \emph on
6128 is
6129 \emph default
6130  able, to some extent, to use information about how it should display a
6131  paragraph on the screen to output information (in the form of CSS) about
6132  how the paragraph should be displayed in a browser.
6133  Even in this case, however, the distinction between what \SpecialChar LyX
6134  does internally
6135  and how things are rendered externally remains in force, and the two can
6136  be controlled separately.
6137  See 
6138 \begin_inset CommandInset ref
6139 LatexCommand ref
6140 reference "sec:Tags-for-XHTML"
6141
6142 \end_inset
6143
6144  for the details.
6145 \end_layout
6146
6147 \begin_layout Section
6148 Installing new \SpecialChar LaTeX
6149  files
6150 \end_layout
6151
6152 \begin_layout Standard
6153 Some installations may not include a \SpecialChar LaTeX
6154  package or class file that you would
6155  like to use within \SpecialChar LyX
6156 .
6157  For example, you might need Foil\SpecialChar TeX
6158 , a package for preparing slides for overhead
6159  projectors.
6160  Modern \SpecialChar LaTeX
6161  distributions like \SpecialChar TeX
6162 Live (2008 or newer) or MiK\SpecialChar TeX
6163  provide a user interface
6164  for installing such packages.
6165  For example, with MiK\SpecialChar TeX
6166 , you start the program 
6167 \begin_inset Quotes eld
6168 \end_inset
6169
6170 Package
6171 \begin_inset space ~
6172 \end_inset
6173
6174 Manager
6175 \begin_inset Quotes erd
6176 \end_inset
6177
6178  to get a list of available packages.
6179  To install one of them, right click on it or use the corresponding toolbar
6180  button.
6181 \end_layout
6182
6183 \begin_layout Standard
6184 If your \SpecialChar LaTeX
6185  distribution does not provide such a `package manager', or if the
6186  package is not available from your distribution, then follow these steps
6187  to install it manually:
6188 \end_layout
6189
6190 \begin_layout Enumerate
6191 Get the package from 
6192 \begin_inset CommandInset href
6193 LatexCommand href
6194 name "CTAN"
6195 target "http://www.ctan.org/"
6196 literal "false"
6197
6198 \end_inset
6199
6200  or wherever.
6201 \end_layout
6202
6203 \begin_layout Enumerate
6204 If the package contains a file with the ending 
6205 \begin_inset Quotes eld
6206 \end_inset
6207
6208
6209 \begin_inset Flex Code
6210 status collapsed
6211
6212 \begin_layout Plain Layout
6213 .ins
6214 \end_layout
6215
6216 \end_inset
6217
6218
6219 \begin_inset Quotes erd
6220 \end_inset
6221
6222  (is the case for Foil\SpecialChar TeX
6223 ) then open a console, change to the folder of this
6224  file and execute the command 
6225 \begin_inset Flex Code
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 latex foiltex.ins
6230 \end_layout
6231
6232 \end_inset
6233
6234 .
6235  You have now unpacked the package and have all files to install it.
6236  Most \SpecialChar LaTeX
6237 -packages are not packed and you can skip this step.
6238 \end_layout
6239
6240 \begin_layout Enumerate
6241 Now you need to decide if the package should be available for all users
6242  or only for you.
6243 \end_layout
6244
6245 \begin_deeper
6246 \begin_layout Enumerate
6247 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6248  for all users on your system, then install it in your `local' \SpecialChar TeX
6249  tree, otherwise
6250  install it in your own `user' \SpecialChar TeX
6251  tree.
6252  Where these trees should be created, if they do not already exist, depends
6253  on your system.
6254  To find this out, look in the file 
6255 \begin_inset Flex Code
6256 status collapsed
6257
6258 \begin_layout Plain Layout
6259 texmf.cnf
6260 \end_layout
6261
6262 \end_inset
6263
6264 .
6265 \begin_inset Foot
6266 status collapsed
6267
6268 \begin_layout Plain Layout
6269 This is usually in the directory 
6270 \begin_inset Flex Code
6271 status collapsed
6272
6273 \begin_layout Plain Layout
6274 $TEXMF/web2c
6275 \end_layout
6276
6277 \end_inset
6278
6279 , though you can execute the command 
6280 \begin_inset Flex Code
6281 status collapsed
6282
6283 \begin_layout Plain Layout
6284 kpsewhich texmf.cnf
6285 \end_layout
6286
6287 \end_inset
6288
6289  to locate it.
6290 \end_layout
6291
6292 \end_inset
6293
6294  The location of the `local' \SpecialChar TeX
6295  tree is defined by the 
6296 \begin_inset Flex Code
6297 status collapsed
6298
6299 \begin_layout Plain Layout
6300 TEXMFLOCAL
6301 \end_layout
6302
6303 \end_inset
6304
6305  variable; this is usually somewhere like 
6306 \begin_inset Flex Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 /usr/local/share/texmf
6311 \end_layout
6312
6313 \end_inset
6314
6315  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6316 Live
6317  distribution.
6318  The location of the `user' \SpecialChar TeX
6319  tree is defined by 
6320 \begin_inset Flex Code
6321 status collapsed
6322
6323 \begin_layout Plain Layout
6324 TEXMFHOME
6325 \end_layout
6326
6327 \end_inset
6328
6329  and is commonly 
6330 \begin_inset Flex Code
6331 status collapsed
6332
6333 \begin_layout Plain Layout
6334 $HOME/texmf
6335 \end_layout
6336
6337 \end_inset
6338
6339  or 
6340 \begin_inset Flex Code
6341 status collapsed
6342
6343 \begin_layout Plain Layout
6344
6345 \family sans
6346 $HOME/.texliveXXXX
6347 \end_layout
6348
6349 \end_inset
6350
6351 .
6352  (If these variables are not predefined, you have to define them.) You'll
6353  probably need root permissions to create or modify the `local' tree, but
6354  not for your `user' tree.
6355 \begin_inset Newline newline
6356 \end_inset
6357
6358 In general, it is recommended to install in the user tree because your user
6359  will not be modified or even overwritten when you upgrade your system.
6360  It will typically also be backed up together with everything else when
6361  you backup your home directory (which, of course, you do on a regular basis).
6362 \end_layout
6363
6364 \begin_layout Enumerate
6365 On Windows, if you want the new package to be available for all users on
6366  your system, change to the folder where \SpecialChar LaTeX
6367  is installed and then change to
6368  the subfolder 
6369 \begin_inset Flex Code
6370 status collapsed
6371
6372 \begin_layout Plain Layout
6373 ~
6374 \backslash
6375 tex
6376 \backslash
6377 latex
6378 \end_layout
6379
6380 \end_inset
6381
6382 .
6383  (For MiK\SpecialChar TeX
6384 , this would be by default the folder 
6385 \begin_inset Flex Code
6386 status collapsed
6387
6388 \begin_layout Plain Layout
6389 ~:
6390 \backslash
6391 Programs
6392 \backslash
6393 MiKTeX
6394 \backslash
6395 tex
6396 \backslash
6397 latex
6398 \end_layout
6399
6400 \end_inset
6401
6402 .)
6403 \begin_inset Foot
6404 status collapsed
6405
6406 \begin_layout Plain Layout
6407 Note that this will be the correct path only on English installations.
6408  On a German one, it would be 
6409 \begin_inset Flex Code
6410 status collapsed
6411
6412 \begin_layout Plain Layout
6413 ~:
6414 \backslash
6415 Programme
6416 \backslash
6417 MiKTeX
6418 \backslash
6419 tex
6420 \backslash
6421 latex
6422 \end_layout
6423
6424 \end_inset
6425
6426 , and similarly for other languages.
6427 \end_layout
6428
6429 \end_inset
6430
6431  Create there a new folder 
6432 \begin_inset Flex Code
6433 status collapsed
6434
6435 \begin_layout Plain Layout
6436 foiltex
6437 \end_layout
6438
6439 \end_inset
6440
6441  and copy all files of the package into it.
6442  
6443 \begin_inset Newline newline
6444 \end_inset
6445
6446 If the package should only available for you or you don't have admin permissions
6447 , do the same, but in the local \SpecialChar LaTeX
6448  folder.
6449  E.
6450 \begin_inset space \thinspace{}
6451 \end_inset
6452
6453 g., for MiK\SpecialChar TeX
6454
6455 \begin_inset space ~
6456 \end_inset
6457
6458 2.8 under Windows XP, this would be the folder:
6459 \begin_inset Newline newline
6460 \end_inset
6461
6462
6463 \family sans
6464
6465 \begin_inset Flex Code
6466 status collapsed
6467
6468 \begin_layout Plain Layout
6469 ~:
6470 \backslash
6471 Documents and Settings
6472 \backslash
6473 <username>
6474 \backslash
6475 Application Data
6476 \backslash
6477
6478 \end_layout
6479
6480 \end_inset
6481
6482
6483 \begin_inset Newline newline
6484 \end_inset
6485
6486
6487 \family default
6488
6489 \begin_inset Phantom HPhantom
6490 status open
6491
6492 \begin_layout Plain Layout
6493
6494 \family sans
6495 ~:
6496 \backslash
6497
6498 \end_layout
6499
6500 \end_inset
6501
6502
6503 \begin_inset Flex Code
6504 status collapsed
6505
6506 \begin_layout Plain Layout
6507 MiKTeX
6508 \backslash
6509 2.8
6510 \backslash
6511 tex
6512 \backslash
6513 latex
6514 \end_layout
6515
6516 \end_inset
6517
6518
6519 \begin_inset Newline newline
6520 \end_inset
6521
6522 On Vista, it would be:
6523 \begin_inset Newline newline
6524 \end_inset
6525
6526
6527 \begin_inset Flex Code
6528 status collapsed
6529
6530 \begin_layout Plain Layout
6531 ~:
6532 \backslash
6533 Users
6534 \backslash
6535 <username>
6536 \backslash
6537 AppData
6538 \backslash
6539 Roaming
6540 \backslash
6541 2.8
6542 \backslash
6543 MiKTeX
6544 \backslash
6545 tex
6546 \backslash
6547 latex
6548 \end_layout
6549
6550 \end_inset
6551
6552
6553 \end_layout
6554
6555 \end_deeper
6556 \begin_layout Enumerate
6557 Now one only need to tell \SpecialChar LaTeX
6558  that there are new files.
6559  This depends on the used \SpecialChar LaTeX
6560 -Distribution:
6561 \end_layout
6562
6563 \begin_deeper
6564 \begin_layout Enumerate
6565 For \SpecialChar TeX
6566 Live execute the command 
6567 \begin_inset Flex Code
6568 status collapsed
6569
6570 \begin_layout Plain Layout
6571 texhash
6572 \end_layout
6573
6574 \end_inset
6575
6576  from a console.
6577  If you installed the package for all users, then you will probably need
6578  to have root permissions for that.
6579 \end_layout
6580
6581 \begin_layout Enumerate
6582 For MiK\SpecialChar TeX
6583 , if you have installed the package for all users, start the program
6584  
6585 \begin_inset Quotes eld
6586 \end_inset
6587
6588 Settings
6589 \begin_inset space ~
6590 \end_inset
6591
6592 (Admin)
6593 \begin_inset Quotes erd
6594 \end_inset
6595
6596  and press the button marked 
6597 \begin_inset Quotes eld
6598 \end_inset
6599
6600 Refresh FNDB
6601 \begin_inset Quotes erd
6602 \end_inset
6603
6604 .
6605  Otherwise start the program 
6606 \begin_inset Quotes eld
6607 \end_inset
6608
6609 Settings
6610 \begin_inset Quotes erd
6611 \end_inset
6612
6613  and do the same.
6614 \end_layout
6615
6616 \end_deeper
6617 \begin_layout Enumerate
6618 Finally, you need to tell \SpecialChar LyX
6619  that there are new packages available.
6620  So, in \SpecialChar LyX
6621 , use the menu 
6622 \begin_inset Flex Noun
6623 status collapsed
6624
6625 \begin_layout Plain Layout
6626 Tools
6627 \family sans
6628 \SpecialChar menuseparator
6629 Reconfigure
6630 \end_layout
6631
6632 \end_inset
6633
6634  and then restart \SpecialChar LyX
6635 .
6636 \end_layout
6637
6638 \begin_layout Standard
6639 Now the package is installed.
6640  In our example, the document class 
6641 \begin_inset Flex Code
6642 status collapsed
6643
6644 \begin_layout Plain Layout
6645 FoilTex
6646 \end_layout
6647
6648 \end_inset
6649
6650  will now be available under 
6651 \begin_inset Flex Noun
6652 status collapsed
6653
6654 \begin_layout Plain Layout
6655 Document\SpecialChar menuseparator
6656 Settings\SpecialChar menuseparator
6657 Document Class
6658 \end_layout
6659
6660 \end_inset
6661
6662  (in the 
6663 \begin_inset Quotes eld
6664 \end_inset
6665
6666 Presentations
6667 \begin_inset Quotes erd
6668 \end_inset
6669
6670  category).
6671  
6672 \end_layout
6673
6674 \begin_layout Standard
6675 If you would like to use a \SpecialChar LaTeX
6676  document class that is not even listed in the
6677  menu 
6678 \begin_inset Flex Noun
6679 status collapsed
6680
6681 \begin_layout Plain Layout
6682 Document\SpecialChar menuseparator
6683 Settings\SpecialChar menuseparator
6684 Document Class
6685 \end_layout
6686
6687 \end_inset
6688
6689 , then you need to create a `layout' file for it.
6690  That is the topic of the next section.
6691 \end_layout
6692
6693 \begin_layout Section
6694 Types of layout files
6695 \end_layout
6696
6697 \begin_layout Standard
6698 This section describes the various sorts of \SpecialChar LyX
6699  files that contain layout informati
6700 on.
6701  These files describe various paragraph and character styles, determining
6702  how \SpecialChar LyX
6703  should display them and how they should be translated into \SpecialChar LaTeX
6704 , DocBook,
6705  XHTML, or whatever output format is being used.
6706  
6707 \end_layout
6708
6709 \begin_layout Standard
6710 We shall try to provide a thorough description of the process of writing
6711  layout files here.
6712  However, there are so many different types of documents supported even
6713  by just \SpecialChar LaTeX
6714  that we can't hope to cover every different possibility or problem
6715  you might encounter.
6716  The \SpecialChar LyX
6717  users' list is frequented by people with lots of experience with layout
6718  design who are willing to share what they've learned, so please feel free
6719  to ask questions there.
6720 \end_layout
6721
6722 \begin_layout Standard
6723 As you prepare to write a new layout, it is extremely helpful to look at
6724  the layouts distributed with \SpecialChar LyX
6725 .
6726  If you write a \SpecialChar LyX
6727  layout for a \SpecialChar LaTeX
6728  document class that might also be used by
6729  others, or write a module that might be useful to others, then you should
6730  consider posting your layout to the 
6731 \begin_inset CommandInset href
6732 LatexCommand href
6733 name "layout section on the LyX wiki"
6734 target "https://wiki.lyx.org/Layouts/Layouts"
6735 literal "false"
6736
6737 \end_inset
6738
6739  or even to the \SpecialChar LyX
6740  developers' list, so that it might be included in \SpecialChar LyX
6741  itself.
6742 \begin_inset Foot
6743 status collapsed
6744
6745 \begin_layout Plain Layout
6746 Note that \SpecialChar LyX
6747  is licensed under the General Public License, so any material
6748  that is contributed to \SpecialChar LyX
6749  must be similarly licensed.
6750 \end_layout
6751
6752 \end_inset
6753
6754
6755 \end_layout
6756
6757 \begin_layout Subsection
6758 Layout modules
6759 \begin_inset CommandInset label
6760 LatexCommand label
6761 name "subsec:Layout-modules"
6762
6763 \end_inset
6764
6765
6766 \end_layout
6767
6768 \begin_layout Standard
6769 We have spoken to this point about `layout files'.
6770  But there are different sorts of files that contain layout information.
6771  Layout files, strictly so called, have the 
6772 \begin_inset Flex Code
6773 status collapsed
6774
6775 \begin_layout Plain Layout
6776 .layout
6777 \end_layout
6778
6779 \end_inset
6780
6781  extension and provide \SpecialChar LyX
6782  with information about document classes.
6783  Since \SpecialChar LyX
6784  1.6 layout information can also be contained in layout 
6785 \emph on
6786 modules
6787 \emph default
6788 , which have the 
6789 \begin_inset Flex Code
6790 status collapsed
6791
6792 \begin_layout Plain Layout
6793 .module
6794 \end_layout
6795
6796 \end_inset
6797
6798  extension.
6799  Modules are to \SpecialChar LaTeX
6800  packages much as layouts are to \SpecialChar LaTeX
6801  classes, and some modules—such
6802  as the 
6803 \begin_inset Flex Code
6804 status collapsed
6805
6806 \begin_layout Plain Layout
6807 endnotes
6808 \end_layout
6809
6810 \end_inset
6811
6812  module—specifically provide support for one package.
6813  In a sense, layout modules are similar to included
6814 \begin_inset Foot
6815 status collapsed
6816
6817 \begin_layout Plain Layout
6818 These can have any extension, but by convention have the 
6819 \begin_inset Flex Code
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 .inc
6824 \end_layout
6825
6826 \end_inset
6827
6828  extension.
6829 \end_layout
6830
6831 \end_inset
6832
6833  files—files like 
6834 \begin_inset Flex Code
6835 status collapsed
6836
6837 \begin_layout Plain Layout
6838 stdsections.inc
6839 \end_layout
6840
6841 \end_inset
6842
6843 —in that modules are not specific to a given document class but may be used
6844  with many different classes.
6845  The difference is that using an included file with 
6846 \begin_inset Flex Code
6847 status collapsed
6848
6849 \begin_layout Plain Layout
6850 article.cls
6851 \end_layout
6852
6853 \end_inset
6854
6855  requires editing that file.
6856  Modules, by contrast, are selected in the 
6857 \begin_inset Flex Noun
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 Document\SpecialChar menuseparator
6862 Settings
6863 \end_layout
6864
6865 \end_inset
6866
6867  dialog.
6868 \end_layout
6869
6870 \begin_layout Standard
6871 Building modules is the easiest way to get started with layout editing,
6872  since it can be as simple as adding a single new paragraph style or flex
6873  inset.
6874  But modules may, in principle, contain anything a layout file can contain.
6875 \end_layout
6876
6877 \begin_layout Standard
6878 After creating a new module and copying it to the 
6879 \begin_inset Flex Code
6880 status collapsed
6881
6882 \begin_layout Plain Layout
6883 layouts/
6884 \end_layout
6885
6886 \end_inset
6887
6888  folder, you will need to reconfigure and then restart \SpecialChar LyX
6889  for the module to
6890  appear in the menu.
6891  However, changes you make to the module will be seen immediately, if you
6892  open 
6893 \begin_inset Flex Noun
6894 status collapsed
6895
6896 \begin_layout Plain Layout
6897 Document\SpecialChar menuseparator
6898 Settings
6899 \end_layout
6900
6901 \end_inset
6902
6903 , highlight something, and then hit 
6904 \begin_inset Quotes eld
6905 \end_inset
6906
6907 OK
6908 \begin_inset Quotes erd
6909 \end_inset
6910
6911 .
6912  
6913 \emph on
6914 It is strongly recommended that you save your work before doing this
6915 \emph default
6916 .
6917  In fact, 
6918 \emph on
6919 it is strongly recommended that you not attempt to edit modules while simultaneo
6920 usly working on actual documents
6921 \emph default
6922 .
6923  Though of course the developers strive to keep \SpecialChar LyX
6924  stable in such situations,
6925  syntax errors and the like in your module file could cause strange behavior.
6926 \end_layout
6927
6928 \begin_layout Subsubsection
6929 Local Layout
6930 \end_layout
6931
6932 \begin_layout Standard
6933 Modules are to \SpecialChar LyX
6934  as packages are to \SpecialChar LaTeX
6935 .
6936  Sometimes, however, you find yourself wanting a specific inset or character
6937  style just for one document and writing a module that will also be available
6938  to other documents makes little sense.
6939  What you need is \SpecialChar LyX
6940 's 
6941 \begin_inset Quotes eld
6942 \end_inset
6943
6944 Local Layout
6945 \begin_inset Quotes erd
6946 \end_inset
6947
6948 .
6949 \end_layout
6950
6951 \begin_layout Standard
6952 You will find it under 
6953 \family sans
6954 Document\SpecialChar menuseparator
6955 Settings\SpecialChar menuseparator
6956 Local Layout
6957 \family default
6958 .
6959  The large text box allows you to enter anything that you might enter in
6960  a layout file or module.
6961  You can think of a document's local layout, in fact, as a module that belongs
6962  just to it.
6963  So, in particular, you must enter a 
6964 \begin_inset Flex Code
6965 status collapsed
6966
6967 \begin_layout Plain Layout
6968 Format
6969 \end_layout
6970
6971 \end_inset
6972
6973  tag.
6974  Any format is acceptable, but one would normally use the format current
6975  at the time.
6976  (In \SpecialChar LyX
6977  2.3, the current layout format is 63.)
6978 \end_layout
6979
6980 \begin_layout Standard
6981 When you have entered something in the 
6982 \begin_inset Flex Code
6983 status collapsed
6984
6985 \begin_layout Plain Layout
6986 Local Layout
6987 \end_layout
6988
6989 \end_inset
6990
6991  pane, \SpecialChar LyX
6992  will enable the 
6993 \begin_inset Quotes eld
6994 \end_inset
6995
6996 Validate
6997 \begin_inset Quotes erd
6998 \end_inset
6999
7000  button at the bottom.
7001  Clicking this button will cause \SpecialChar LyX
7002  to determine whether what you have entered
7003  is valid layout information for the chosen format.
7004  \SpecialChar LyX
7005  will report the result but, unfortunately, will not tell you what errors
7006  there might have been.
7007  These will be written to the terminal, however, if \SpecialChar LyX
7008  is started from a terminal.
7009  You will not be permitted to save your local layout until you have entered
7010  something valid.
7011 \end_layout
7012
7013 \begin_layout Standard
7014 The warnings at the end of the previous section apply here, too.
7015  Do not play with local layout while you are actually working, especially
7016  if you have not saved your document.
7017  That said, using local layout with a test document can be a very convenient
7018  way to try out layout ideas, or even to start developing a module.
7019 \end_layout
7020
7021 \begin_layout Subsection
7022 Layout for 
7023 \begin_inset Flex Noun
7024 status collapsed
7025
7026 \begin_layout Plain Layout
7027 .sty
7028 \end_layout
7029
7030 \end_inset
7031
7032  files
7033 \end_layout
7034
7035 \begin_layout Standard
7036 There are two situations you are likely to encounter when wanting to support
7037  a new \SpecialChar LaTeX
7038  document class, involving style (
7039 \begin_inset Flex Code
7040 status collapsed
7041
7042 \begin_layout Plain Layout
7043 .sty
7044 \end_layout
7045
7046 \end_inset
7047
7048 ) files and \SpecialChar LaTeX2e
7049  class (
7050 \begin_inset Flex Code
7051 status collapsed
7052
7053 \begin_layout Plain Layout
7054 .cls
7055 \end_layout
7056
7057 \end_inset
7058
7059 ) .
7060  Supporting a style file is usually fairly easy.
7061  Supporting a new class file is a bit harder.
7062  We'll discuss the former in this section and the latter in the next.
7063  Similar remarks apply, of course, if you want to support a new DocBook
7064  DTD.
7065 \end_layout
7066
7067 \begin_layout Standard
7068 The easier case is the one in which your new document class is provided
7069  as a style file that is to be used in conjunction with an already supported
7070  document class.
7071  For the sake of the example, we'll assume that the style file is called
7072  
7073 \begin_inset Flex Noun
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 myclass.sty
7078 \end_layout
7079
7080 \end_inset
7081
7082  and that it is meant to be used with 
7083 \begin_inset Flex Noun
7084 status collapsed
7085
7086 \begin_layout Plain Layout
7087 report.cls
7088 \end_layout
7089
7090 \end_inset
7091
7092 , which is a standard class.
7093  
7094 \end_layout
7095
7096 \begin_layout Standard
7097 Start by copying the existing class's layout file into your local directory:
7098 \begin_inset Foot
7099 status collapsed
7100
7101 \begin_layout Plain Layout
7102 Of course, which directory is your local directory will vary by platform,
7103  and \SpecialChar LyX
7104  allows you to specify your local directory on startup, too, using
7105  the 
7106 \begin_inset Flex Code
7107 status collapsed
7108
7109 \begin_layout Plain Layout
7110 -userdir
7111 \end_layout
7112
7113 \end_inset
7114
7115  option.
7116 \end_layout
7117
7118 \end_inset
7119
7120
7121 \end_layout
7122
7123 \begin_layout LyX-Code
7124 cp report.layout ~/.lyx/layouts/myclass.layout
7125 \end_layout
7126
7127 \begin_layout Standard
7128 Then edit 
7129 \begin_inset Flex Code
7130 status collapsed
7131
7132 \begin_layout Plain Layout
7133 myclass.layout
7134 \end_layout
7135
7136 \end_inset
7137
7138  and change the line: 
7139 \end_layout
7140
7141 \begin_layout LyX-Code
7142
7143 \backslash
7144 DeclareLaTeXClass{Report (Standard Class)}
7145 \end_layout
7146
7147 \begin_layout Standard
7148 to read
7149 \end_layout
7150
7151 \begin_layout LyX-Code
7152
7153 \backslash
7154 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7155 \end_layout
7156
7157 \begin_layout Standard
7158 Then add:
7159 \end_layout
7160
7161 \begin_layout LyX-Code
7162 Preamble 
7163 \begin_inset Newline newline
7164 \end_inset
7165
7166     
7167 \backslash
7168 usepackage{myclass}
7169 \begin_inset Newline newline
7170 \end_inset
7171
7172 EndPreamble
7173 \end_layout
7174
7175 \begin_layout Standard
7176 near the top of the file.
7177 \end_layout
7178
7179 \begin_layout Standard
7180 Start \SpecialChar LyX
7181  and select 
7182 \begin_inset Flex Noun
7183 status collapsed
7184
7185 \begin_layout Plain Layout
7186 Tools\SpecialChar menuseparator
7187 Reconfigure
7188 \end_layout
7189
7190 \end_inset
7191
7192 .
7193  Then restart \SpecialChar LyX
7194  and try creating a new document.
7195  You should see "
7196 \begin_inset Flex Noun
7197 status collapsed
7198
7199 \begin_layout Plain Layout
7200 Report (My Class)
7201 \end_layout
7202
7203 \end_inset
7204
7205 " as a document class option in the 
7206 \begin_inset Flex Noun
7207 status collapsed
7208
7209 \begin_layout Plain Layout
7210 Document\SpecialChar menuseparator
7211 Settings
7212 \end_layout
7213
7214 \end_inset
7215
7216  dialog.
7217  It is likely that some of the sectioning commands and such in your new
7218  class will work differently from how they worked in the base class—
7219 \begin_inset Flex Code
7220 status collapsed
7221
7222 \begin_layout Plain Layout
7223 report
7224 \end_layout
7225
7226 \end_inset
7227
7228  in this example—so you can fiddle around with the settings for the different
7229  sections if you wish.
7230  The layout information for sections is contained in 
7231 \begin_inset Flex Code
7232 status collapsed
7233
7234 \begin_layout Plain Layout
7235 stdsections.inc
7236 \end_layout
7237
7238 \end_inset
7239
7240 , but you do not need to copy and change this file.
7241  Instead, you can simply add your changes to your layout file, after the
7242  line 
7243 \begin_inset Flex Code
7244 status collapsed
7245
7246 \begin_layout Plain Layout
7247 Input stdclass.inc
7248 \end_layout
7249
7250 \end_inset
7251
7252 , which itself includes 
7253 \begin_inset Flex Code
7254 status collapsed
7255
7256 \begin_layout Plain Layout
7257 stdsections.inc
7258 \end_layout
7259
7260 \end_inset
7261
7262 .
7263  For example, you might add these lines:
7264 \end_layout
7265
7266 \begin_layout LyX-Code
7267 Style Chapter
7268 \end_layout
7269
7270 \begin_layout LyX-Code
7271     Font
7272 \end_layout
7273
7274 \begin_layout LyX-Code
7275         Family Sans
7276 \end_layout
7277
7278 \begin_layout LyX-Code
7279     EndFont
7280 \end_layout
7281
7282 \begin_layout LyX-Code
7283 End
7284 \end_layout
7285
7286 \begin_layout Standard
7287 to change the font for chapter headings to sans-serif.
7288  This will override (or, in this case, add to) the existing declaration
7289  for the Chapter style.
7290  
7291 \end_layout
7292
7293 \begin_layout Standard
7294 Your new package may also provide commands or environments not present in
7295  the base class.
7296  In this case, you will want to add these to the layout file.
7297  See 
7298 \begin_inset CommandInset ref
7299 LatexCommand ref
7300 reference "sec:TextClass"
7301
7302 \end_inset
7303
7304  for information on how to do so.
7305 \end_layout
7306
7307 \begin_layout Standard
7308 If 
7309 \begin_inset Flex Noun
7310 status collapsed
7311
7312 \begin_layout Plain Layout
7313 myclass.sty
7314 \end_layout
7315
7316 \end_inset
7317
7318  can be used with several different document classes, and even if it cannot,
7319  you might find it easiest just to write a module that you can load with
7320  the base class.
7321  The simplest possible such module would be:
7322 \end_layout
7323
7324 \begin_layout LyX-Code
7325 #
7326 \backslash
7327 DeclareLyXModule{My Class} 
7328 \end_layout
7329
7330 \begin_layout LyX-Code
7331 #DescriptionBegin 
7332 \end_layout
7333
7334 \begin_layout LyX-Code
7335 #Support for myclass.sty.
7336 \end_layout
7337
7338 \begin_layout LyX-Code
7339 #DescriptionEnd
7340 \begin_inset Newline newline
7341 \end_inset
7342
7343
7344 \end_layout
7345
7346 \begin_layout LyX-Code
7347 Format 63
7348 \begin_inset Newline newline
7349 \end_inset
7350
7351
7352 \end_layout
7353
7354 \begin_layout LyX-Code
7355 Preamble
7356 \begin_inset Newline newline
7357 \end_inset
7358
7359     
7360 \backslash
7361 usepackage{myclass}
7362 \begin_inset Newline newline
7363 \end_inset
7364
7365 EndPreamble
7366 \end_layout
7367
7368 \begin_layout Standard
7369 A more complex module might modify the behavior of some existing constructs
7370  or define some new ones.
7371  Again, see 
7372 \begin_inset CommandInset ref
7373 LatexCommand ref
7374 reference "sec:TextClass"
7375
7376 \end_inset
7377
7378  for discussion.
7379 \end_layout
7380
7381 \begin_layout Subsection
7382 Layout for 
7383 \begin_inset Flex Noun
7384 status collapsed
7385
7386 \begin_layout Plain Layout
7387 .cls
7388 \end_layout
7389
7390 \end_inset
7391
7392  files
7393 \end_layout
7394
7395 \begin_layout Standard
7396 There are two possibilities here.
7397  One is that the class file is itself based upon an existing document class.
7398  For example, many thesis classes are based upon 
7399 \begin_inset Flex Noun
7400 status collapsed
7401
7402 \begin_layout Plain Layout
7403 book.cls
7404 \end_layout
7405
7406 \end_inset
7407
7408 .
7409  To see whether yours is, look for a line like
7410 \end_layout
7411
7412 \begin_layout LyX-Code
7413
7414 \backslash
7415 LoadClass{book}
7416 \end_layout
7417
7418 \begin_layout Standard
7419 in the file.
7420  If so, then you may proceed largely as in the previous section, though
7421  the 
7422 \begin_inset Flex Code
7423 status collapsed
7424
7425 \begin_layout Plain Layout
7426 Declare\SpecialChar LaTeX
7427 Class
7428 \end_layout
7429
7430 \end_inset
7431
7432  line will be different.
7433  If your new class is 
7434 \begin_inset Flex Code
7435 status collapsed
7436
7437 \begin_layout Plain Layout
7438 thesis
7439 \end_layout
7440
7441 \end_inset
7442
7443  and it is based upon 
7444 \begin_inset Flex Code
7445 status collapsed
7446
7447 \begin_layout Plain Layout
7448 book
7449 \end_layout
7450
7451 \end_inset
7452
7453 , then the line should read:
7454 \begin_inset Foot
7455 status collapsed
7456
7457 \begin_layout Plain Layout
7458 And it will be easiest if you save the file to 
7459 \begin_inset Flex Code
7460 status collapsed
7461
7462 \begin_layout Plain Layout
7463 thesis.layout
7464 \end_layout
7465
7466 \end_inset
7467
7468 : \SpecialChar LyX
7469  assumes that the document class has the same name as the layout file.
7470  
7471 \end_layout
7472
7473 \end_inset
7474
7475
7476 \end_layout
7477
7478 \begin_layout LyX-Code
7479
7480 \backslash
7481 DeclareLaTeXClass[thesis,book]{thesis}
7482 \end_layout
7483
7484 \begin_layout Standard
7485 If, on the other hand, the new class is not based upon an existing class,
7486  you will probably have to 
7487 \begin_inset Quotes eld
7488 \end_inset
7489
7490 roll your own
7491 \begin_inset Quotes erd
7492 \end_inset
7493
7494  layout.
7495  We strongly suggest copying an existing layout file which uses a similar
7496  \SpecialChar LaTeX
7497  class and then modifying it, if you can do so.
7498  At least use an existing file as a starting point so you can find out what
7499  items you need to worry about.
7500  Again, the specifics are covered below.
7501 \end_layout
7502
7503 \begin_layout Subsection
7504 Creating templates
7505 \begin_inset CommandInset label
7506 LatexCommand label
7507 name "subsec:Creating-Templates"
7508
7509 \end_inset
7510
7511
7512 \end_layout
7513
7514 \begin_layout Standard
7515 Once you have written a layout file for a new document class, you might
7516  want to consider writing a 
7517 \emph on
7518 template
7519 \emph default
7520  for it, too.
7521  A template acts as a kind of tutorial for your layout, showing how it might
7522  be used, though containing dummy content.
7523  You can of course look at the various templates included with \SpecialChar LyX
7524  for ideas.
7525 \end_layout
7526
7527 \begin_layout Standard
7528 Templates are created just like usual documents: using \SpecialChar LyX
7529 .
7530  The only difference is that usual documents contain all possible settings,
7531  including the font scheme and the paper size.
7532  Usually a user doesn't want a template to overwrite his preferred settings
7533  for such parameters.
7534  For that reason, the designer of a template should remove the corresponding
7535  commands like 
7536 \begin_inset Flex Code
7537 status collapsed
7538
7539 \begin_layout Plain Layout
7540
7541 \backslash
7542 font_roman
7543 \end_layout
7544
7545 \end_inset
7546
7547  or 
7548 \begin_inset Flex Code
7549 status collapsed
7550
7551 \begin_layout Plain Layout
7552
7553 \backslash
7554 papersize
7555 \end_layout
7556
7557 \end_inset
7558
7559  from the template \SpecialChar LyX
7560  file.
7561  This can be done with any simple text-editor, for example 
7562 \begin_inset Flex Code
7563 status collapsed
7564
7565 \begin_layout Plain Layout
7566 vi
7567 \end_layout
7568
7569 \end_inset
7570
7571  or 
7572 \begin_inset Flex Code
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576 notepad
7577 \end_layout
7578
7579 \end_inset
7580
7581 .
7582 \end_layout
7583
7584 \begin_layout Standard
7585 Put the edited template files you create in 
7586 \begin_inset Flex Code
7587 status collapsed
7588
7589 \begin_layout Plain Layout
7590 UserDir/templates/
7591 \end_layout
7592
7593 \end_inset
7594
7595 , copy the ones you use from the global template directory in 
7596 \begin_inset Flex Code
7597 status collapsed
7598
7599 \begin_layout Plain Layout
7600 LyXDir/templates/
7601 \end_layout
7602
7603 \end_inset
7604
7605  to the same place, and redefine the template path in the 
7606 \begin_inset Flex Noun
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610 Tools\SpecialChar menuseparator
7611 Preferences\SpecialChar menuseparator
7612 Paths
7613 \end_layout
7614
7615 \end_inset
7616
7617  dialog.
7618 \end_layout
7619
7620 \begin_layout Standard
7621 Note, by the way, that there is a template which has a particular meaning:
7622 \begin_inset Newline linebreak
7623 \end_inset
7624
7625
7626 \begin_inset Flex Code
7627 status collapsed
7628
7629 \begin_layout Plain Layout
7630 defaults.lyx
7631 \end_layout
7632
7633 \end_inset
7634
7635 .
7636  This template is loaded every time you create a new document with 
7637 \begin_inset Flex Noun
7638 status collapsed
7639
7640 \begin_layout Plain Layout
7641 File\SpecialChar menuseparator
7642 New
7643 \end_layout
7644
7645 \end_inset
7646
7647  in order to provide useful defaults.
7648  To create this template from inside \SpecialChar LyX
7649 , all you have to do is to open a document
7650  with the correct settings, and use the 
7651 \begin_inset Flex Noun
7652 status collapsed
7653
7654 \begin_layout Plain Layout
7655 Save as Document Defaults
7656 \end_layout
7657
7658 \end_inset
7659
7660  button.
7661 \end_layout
7662
7663 \begin_layout Subsection
7664 Upgrading old layout files
7665 \end_layout
7666
7667 \begin_layout Standard
7668 The format of layout files changes with each \SpecialChar LyX
7669  release, so old layout files
7670  need to be converted to the new format.
7671  If \SpecialChar LyX
7672  reads a layout file in an older format, it automatically calls the
7673  script 
7674 \begin_inset Flex Code
7675 status collapsed
7676
7677 \begin_layout Plain Layout
7678 layout2layout.py
7679 \end_layout
7680
7681 \end_inset
7682
7683  to convert it to a temporary file in current format.
7684  The original file is left untouched.
7685  If you use the layout file often, then, you may want to convert it permanently,
7686  so that \SpecialChar LyX
7687  does not have to do so itself every time.
7688  To do this, you can call the converter manually:
7689 \end_layout
7690
7691 \begin_layout Enumerate
7692 rename the file 
7693 \begin_inset Flex Code
7694 status collapsed
7695
7696 \begin_layout Plain Layout
7697 myclass.layout
7698 \end_layout
7699
7700 \end_inset
7701
7702  to 
7703 \begin_inset Flex Code
7704 status collapsed
7705
7706 \begin_layout Plain Layout
7707 myclass.old
7708 \end_layout
7709
7710 \end_inset
7711
7712
7713 \end_layout
7714
7715 \begin_layout Enumerate
7716 Call the command
7717 \begin_inset Newline newline
7718 \end_inset
7719
7720
7721 \begin_inset Flex Code
7722 status collapsed
7723
7724 \begin_layout Plain Layout
7725 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7726 \end_layout
7727
7728 \end_inset
7729
7730
7731 \begin_inset Newline newline
7732 \end_inset
7733
7734 where 
7735 \begin_inset Flex Code
7736 status collapsed
7737
7738 \begin_layout Plain Layout
7739 LyXDir
7740 \end_layout
7741
7742 \end_inset
7743
7744  is the name of your \SpecialChar LyX
7745  system directory.
7746 \end_layout
7747
7748 \begin_layout Standard
7749 Note that manual conversion does not affect included files, so these will
7750  have to be converted separately.
7751 \end_layout
7752
7753 \begin_layout Subsection
7754 \begin_inset CommandInset label
7755 LatexCommand label
7756 name "subsec:Cite-Engine-Files"
7757
7758 \end_inset
7759
7760 Cite engine files
7761 \end_layout
7762
7763 \begin_layout Standard
7764 A specific form of layout files are the so-called 
7765 \begin_inset Flex Code
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769 *.citeengine
7770 \end_layout
7771
7772 \end_inset
7773
7774  files that are located in the 
7775 \begin_inset Flex Code
7776 status collapsed
7777
7778 \begin_layout Plain Layout
7779 citeengines/
7780 \end_layout
7781
7782 \end_inset
7783
7784  sub-directory.
7785  Their purpose is to define the specifics of \SpecialChar LaTeX
7786  packages aimed at bibliography
7787  generation, such as 
7788 \family sans
7789 natbib
7790 \family default
7791 ,
7792 \family sans
7793  jurabib
7794 \family default
7795  or 
7796 \family sans
7797 biblatex
7798 \family default
7799 , but also the way how normal Bib\SpecialChar TeX
7800  citations (without additional packages)
7801  are handled in \SpecialChar LyX
7802  is defined in such a file.
7803  
7804 \end_layout
7805
7806 \begin_layout Standard
7807 More specifically, it is defined which packages \SpecialChar LyX
7808  needs to load, which citation
7809  commands are available, how these are to be displayed in \SpecialChar LyX
7810  (in the workarea,
7811  the dialogs, the context menus) as well as in the XHTML and plain text
7812  output.
7813  Furthermore, the files specify available style variants (author-year, numerical
7814 , etc.) and their specifics.
7815  The cite engine files are also used to generate the options that are available
7816  in 
7817 \family sans
7818 Document\SpecialChar menuseparator
7819 Settings\SpecialChar menuseparator
7820 Bibliography\SpecialChar menuseparator
7821 Style engine
7822 \family default
7823 .
7824 \end_layout
7825
7826 \begin_layout Standard
7827 Even though a cite engine file is essentially a normal layout file that
7828  could theoretically include any layout information, it usually primarily
7829  includes some specific parameters such as 
7830 \begin_inset Flex Code
7831 status collapsed
7832
7833 \begin_layout Plain Layout
7834 MaxCiteNames
7835 \end_layout
7836
7837 \end_inset
7838
7839
7840 \begin_inset Flex Code
7841 status collapsed
7842
7843 \begin_layout Plain Layout
7844 CiteFramework
7845 \end_layout
7846
7847 \end_inset
7848
7849
7850 \begin_inset Flex Code
7851 status collapsed
7852
7853 \begin_layout Plain Layout
7854 CiteEngine
7855 \end_layout
7856
7857 \end_inset
7858
7859  and 
7860 \begin_inset Flex Code
7861 status collapsed
7862
7863 \begin_layout Plain Layout
7864 CiteFormat
7865 \end_layout
7866
7867 \end_inset
7868
7869  blocks.
7870  The syntax of the latter two is described in 
7871 \begin_inset CommandInset ref
7872 LatexCommand ref
7873 reference "subsec:Citation-engine-description"
7874 plural "false"
7875 caps "false"
7876 noprefix "false"
7877
7878 \end_inset
7879
7880  and 
7881 \begin_inset CommandInset ref
7882 LatexCommand ref
7883 reference "subsec:Citation-format-description"
7884
7885 \end_inset
7886
7887 , as well as in the files themselves.
7888 \end_layout
7889
7890 \begin_layout Section
7891 \begin_inset CommandInset label
7892 LatexCommand label
7893 name "sec:TextClass"
7894
7895 \end_inset
7896
7897 The layout file format
7898 \end_layout
7899
7900 \begin_layout Standard
7901 The following sections describe how layout files are structured and written.
7902  Our advice is to go slowly, save and test often.
7903  It is really not that hard, except that the multitude of options can become
7904  overwhelming, especially if you try to check out too many at once.
7905  It becomes easier if you use existing layouts of \SpecialChar LyX
7906  as examples/reference
7907  or if you modify an existing layout to your needs.
7908 \end_layout
7909
7910 \begin_layout Standard
7911 Note that all the tags used in layout files are case-insensitive.
7912  This means that 
7913 \begin_inset Flex Code
7914 status collapsed
7915
7916 \begin_layout Plain Layout
7917 Style
7918 \end_layout
7919
7920 \end_inset
7921
7922
7923 \begin_inset Flex Code
7924 status collapsed
7925
7926 \begin_layout Plain Layout
7927 style
7928 \end_layout
7929
7930 \end_inset
7931
7932  and 
7933 \begin_inset Flex Code
7934 status collapsed
7935
7936 \begin_layout Plain Layout
7937 StYlE
7938 \end_layout
7939
7940 \end_inset
7941
7942  are really the same tag.
7943  The possible arguments are printed in brackets after the tag's name.
7944  The default argument is typeset 
7945 \begin_inset Flex Code
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949
7950 \emph on
7951 emphasized
7952 \end_layout
7953
7954 \end_inset
7955
7956 .
7957  If the argument has a data type like 
7958 \begin_inset Quotes eld
7959 \end_inset
7960
7961 string
7962 \begin_inset Quotes erd
7963 \end_inset
7964
7965  or 
7966 \begin_inset Quotes eld
7967 \end_inset
7968
7969 float
7970 \begin_inset Quotes erd
7971 \end_inset
7972
7973 , the default is shown like this: 
7974 \begin_inset Flex Code
7975 status collapsed
7976
7977 \begin_layout Plain Layout
7978 float=
7979 \emph on
7980 default
7981 \end_layout
7982
7983 \end_inset
7984
7985 .
7986 \end_layout
7987
7988 \begin_layout Subsection
7989 The document class declaration and classification
7990 \end_layout
7991
7992 \begin_layout Standard
7993 Lines in a layout file which begin with 
7994 \begin_inset Flex Code
7995 status collapsed
7996
7997 \begin_layout Plain Layout
7998 #
7999 \end_layout
8000
8001 \end_inset
8002
8003  are comments.
8004  There is one exception to this rule.
8005  All 
8006 \begin_inset Flex Code
8007 status collapsed
8008
8009 \begin_layout Plain Layout
8010 *.layout
8011 \end_layout
8012
8013 \end_inset
8014
8015  files should begin with lines like:
8016 \end_layout
8017
8018 \begin_layout LyX-Code
8019
8020 \size small
8021 #% Do not delete the line below; configure depends on this 
8022 \end_layout
8023
8024 \begin_layout LyX-Code
8025
8026 \size small
8027 #  
8028 \backslash
8029 DeclareLaTeXClass{Article (Standard Class)}
8030 \end_layout
8031
8032 \begin_layout LyX-Code
8033
8034 \size small
8035 #  
8036 \backslash
8037 DeclareCategory{Articles}
8038 \end_layout
8039
8040 \begin_layout Standard
8041 The second and third lines are used when you (re)configure \SpecialChar LyX
8042 .
8043  The layout file is read by the \SpecialChar LaTeX
8044  script 
8045 \begin_inset Flex Code
8046 status collapsed
8047
8048 \begin_layout Plain Layout
8049 chkconfig.ltx
8050 \end_layout
8051
8052 \end_inset
8053
8054 , in a special mode where 
8055 \begin_inset Flex Code
8056 status collapsed
8057
8058 \begin_layout Plain Layout
8059 #
8060 \end_layout
8061
8062 \end_inset
8063
8064  is ignored.
8065  The first line is just a \SpecialChar LaTeX
8066  comment, the second one contains the mandatory
8067  declaration of the text class and the third line contains the optional
8068  classification of the class.
8069  If these lines appear in a file named 
8070 \begin_inset Flex Code
8071 status collapsed
8072
8073 \begin_layout Plain Layout
8074 article.layout
8075 \end_layout
8076
8077 \end_inset
8078
8079 , then they define a text class of name 
8080 \begin_inset Flex Code
8081 status collapsed
8082
8083 \begin_layout Plain Layout
8084 article
8085 \end_layout
8086
8087 \end_inset
8088
8089  (the name of the layout file) which uses the \SpecialChar LaTeX
8090  document class 
8091 \begin_inset Flex Code
8092 status collapsed
8093
8094 \begin_layout Plain Layout
8095 article.cls
8096 \end_layout
8097
8098 \end_inset
8099
8100  (the default is to use the same name as the layout).
8101  The string 
8102 \begin_inset Quotes eld
8103 \end_inset
8104
8105 Article (Standard Class)
8106 \begin_inset Quotes erd
8107 \end_inset
8108
8109  that appears above is used as a description of the text class in the 
8110 \begin_inset Flex Noun
8111 status collapsed
8112
8113 \begin_layout Plain Layout
8114 Document\SpecialChar menuseparator
8115 Settings
8116 \end_layout
8117
8118 \end_inset
8119
8120  dialog.
8121  The category (
8122 \begin_inset Quotes eld
8123 \end_inset
8124
8125 Articles
8126 \begin_inset Quotes erd
8127 \end_inset
8128
8129  in the example) is also used in the 
8130 \begin_inset Flex Noun
8131 status collapsed
8132
8133 \begin_layout Plain Layout
8134 Document\SpecialChar menuseparator
8135 Settings
8136 \end_layout
8137
8138 \end_inset
8139
8140  dialog: the text classes are grouped by these categories (which are usually
8141  genres, so typical categories are 
8142 \begin_inset Quotes eld
8143 \end_inset
8144
8145 Articles
8146 \begin_inset Quotes erd
8147 \end_inset
8148
8149
8150 \begin_inset Quotes eld
8151 \end_inset
8152
8153 Books
8154 \begin_inset Quotes erd
8155 \end_inset
8156
8157
8158 \begin_inset Quotes eld
8159 \end_inset
8160
8161 Reports
8162 \begin_inset Quotes erd
8163 \end_inset
8164
8165
8166 \begin_inset Quotes eld
8167 \end_inset
8168
8169 Letters
8170 \begin_inset Quotes erd
8171 \end_inset
8172
8173
8174 \begin_inset Quotes eld
8175 \end_inset
8176
8177 Presentations
8178 \begin_inset Quotes erd
8179 \end_inset
8180
8181
8182 \begin_inset Quotes eld
8183 \end_inset
8184
8185 Curricula Vitae
8186 \begin_inset Quotes erd
8187 \end_inset
8188
8189  etc.).
8190  If no category has been declared, the class will be put in the 
8191 \begin_inset Quotes eld
8192 \end_inset
8193
8194 Uncategorized
8195 \begin_inset Quotes erd
8196 \end_inset
8197
8198  group.
8199 \end_layout
8200
8201 \begin_layout Standard
8202 Let's assume that you wrote your own text class that uses the 
8203 \begin_inset Flex Code
8204 status collapsed
8205
8206 \begin_layout Plain Layout
8207 article.cls
8208 \end_layout
8209
8210 \end_inset
8211
8212  document class, but where you changed the appearance of the section headings.
8213  If you put it in a file 
8214 \begin_inset Flex Code
8215 status collapsed
8216
8217 \begin_layout Plain Layout
8218 myarticle.layout
8219 \end_layout
8220
8221 \end_inset
8222
8223 , the header of this file should be:
8224 \end_layout
8225
8226 \begin_layout LyX-Code
8227
8228 \size small
8229 #% Do not delete the line below; configure depends on this 
8230 \end_layout
8231
8232 \begin_layout LyX-Code
8233
8234 \size small
8235 #  
8236 \backslash
8237 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8238 \end_layout
8239
8240 \begin_layout LyX-Code
8241
8242 \size small
8243 #  
8244 \backslash
8245 DeclareCategory{Articles}
8246 \end_layout
8247
8248 \begin_layout Standard
8249 This declares a text class 
8250 \begin_inset Flex Code
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254 myarticle
8255 \end_layout
8256
8257 \end_inset
8258
8259 , associated with the \SpecialChar LaTeX
8260  document class 
8261 \begin_inset Flex Code
8262 status collapsed
8263
8264 \begin_layout Plain Layout
8265 article.cls
8266 \end_layout
8267
8268 \end_inset
8269
8270  and described as 
8271 \begin_inset Quotes eld
8272 \end_inset
8273
8274 Article (with My Own Headings)
8275 \begin_inset Quotes erd
8276 \end_inset
8277
8278 .
8279  If your text class depends on several packages, you can declare it as:
8280 \end_layout
8281
8282 \begin_layout LyX-Code
8283
8284 \size small
8285 #% Do not delete the line below; configure depends on this 
8286 \end_layout
8287
8288 \begin_layout LyX-Code
8289
8290 \size small
8291 #  
8292 \backslash
8293 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8294 \end_layout
8295
8296 \begin_layout LyX-Code
8297
8298 \size small
8299 #  
8300 \backslash
8301 DeclareCategory{Articles}
8302 \end_layout
8303
8304 \begin_layout Standard
8305 This indicates that your text class uses the 
8306 \begin_inset Flex Code
8307 status collapsed
8308
8309 \begin_layout Plain Layout
8310 foo.sty
8311 \end_layout
8312
8313 \end_inset
8314
8315  package.
8316  Finally, it is also possible to declare classes for DocBook code.
8317  Typical declarations will look like:
8318 \end_layout
8319
8320 \begin_layout LyX-Code
8321
8322 \size small
8323 #% Do not delete the line below; configure depends on this 
8324 \end_layout
8325
8326 \begin_layout LyX-Code
8327
8328 \size small
8329
8330 \backslash
8331 DeclareDocBookClass[article]{SGML (DocBook Article)}
8332 \end_layout
8333
8334 \begin_layout LyX-Code
8335
8336 \size small
8337
8338 \backslash
8339 DeclareCategory{Articles (DocBook)}
8340 \end_layout
8341
8342 \begin_layout Standard
8343 Note that these declarations can also be given an optional parameter declaring
8344  the name of the document class (but not a list).
8345 \end_layout
8346
8347 \begin_layout Standard
8348 So, to be as explicit as possible, the form of the layout declaration is:
8349 \end_layout
8350
8351 \begin_layout LyX-Code
8352
8353 \size small
8354 #  
8355 \backslash
8356 DeclareLaTeXClass[class,package.sty]{layout description}
8357 \end_layout
8358
8359 \begin_layout LyX-Code
8360
8361 \size small
8362 #  
8363 \backslash
8364 DeclareCategory{category}
8365 \end_layout
8366
8367 \begin_layout Standard
8368 The class need only be specified if the name of the \SpecialChar LaTeX
8369  class file and the
8370  name of the layout file are different or if there are packages to load.
8371  If the name of the class file is not specified, then \SpecialChar LyX
8372  will simply assume
8373  that it is the same as the name of the layout file.
8374 \end_layout
8375
8376 \begin_layout Standard
8377 When the text class has been modified to your taste, all you have to do
8378  is to copy it either to 
8379 \begin_inset Flex Code
8380 status collapsed
8381
8382 \begin_layout Plain Layout
8383 LyXDir/layouts/
8384 \end_layout
8385
8386 \end_inset
8387
8388  or to 
8389 \begin_inset Flex Code
8390 status collapsed
8391
8392 \begin_layout Plain Layout
8393 UserDir/layouts
8394 \end_layout
8395
8396 \end_inset
8397
8398 , run 
8399 \begin_inset Flex Noun
8400 status collapsed
8401
8402 \begin_layout Plain Layout
8403 Tools\SpecialChar menuseparator
8404 Reconfigure
8405 \end_layout
8406
8407 \end_inset
8408
8409 , exit \SpecialChar LyX
8410  and restart.
8411  Then your new text class should be available along with the others.
8412 \end_layout
8413
8414 \begin_layout Standard
8415 Once the layout file is installed, you can edit it and see your changes
8416  without having to reconfigure or to restart \SpecialChar LyX
8417 .
8418 \begin_inset Foot
8419 status collapsed
8420
8421 \begin_layout Plain Layout
8422 In versions of \SpecialChar LyX
8423  prior to 1.6, this was not true.
8424  As a result, editing layout files was very time consuming, since you had
8425  constantly to restart \SpecialChar LyX
8426  to see changes.
8427 \end_layout
8428
8429 \end_inset
8430
8431  You can force a reload of the current layout by using the \SpecialChar LyX
8432  function 
8433 \begin_inset Flex Noun
8434 status collapsed
8435
8436 \begin_layout Plain Layout
8437 layout-reload
8438 \end_layout
8439
8440 \end_inset
8441
8442 .
8443  There is no default binding for this function—though, of course, you can
8444  bind it to a key yourself.
8445  But you will normally use this function simply by entering it in the mini-buffe
8446 r.
8447  
8448 \end_layout
8449
8450 \begin_layout Standard
8451
8452 \emph on
8453 Warning
8454 \emph default
8455
8456 \begin_inset Flex Noun
8457 status collapsed
8458
8459 \begin_layout Plain Layout
8460 layout-reload
8461 \end_layout
8462
8463 \end_inset
8464
8465  is very much an `advanced feature'.
8466  It is 
8467 \emph on
8468 strongly
8469 \emph default
8470  recommended that you save your work before using this function.
8471  In fact, it is 
8472 \emph on
8473 strongly
8474 \emph default
8475  recommended that you not attempt to edit layout information while simultaneousl
8476 y working on a document that you care about.
8477  Use a test document.
8478  Syntax errors and the like in your layout file could cause peculiar behavior.
8479  In particular, such errors could cause \SpecialChar LyX
8480  to regard the current layout as
8481  invalid and to attempt to switch to some other layout.
8482 \begin_inset Foot
8483 status collapsed
8484
8485 \begin_layout Plain Layout
8486 Really bad syntax errors may even caused \SpecialChar LyX
8487  to exit.
8488  This is because certain sorts of errors may make \SpecialChar LyX
8489  unable to read 
8490 \emph on
8491 any
8492 \emph default
8493  layout information.
8494  Please be careful.
8495 \end_layout
8496
8497 \end_inset
8498
8499  The \SpecialChar LyX
8500  team strives to keep \SpecialChar LyX
8501  stable in such situations, but safe is better
8502  than sorry.
8503 \begin_inset Foot
8504 status collapsed
8505
8506 \begin_layout Plain Layout
8507 While we're giving advice: make regular backups.
8508  And be nice to your mother.
8509 \end_layout
8510
8511 \end_inset
8512
8513
8514 \end_layout
8515
8516 \begin_layout Subsection
8517 The Module declaration
8518 \end_layout
8519
8520 \begin_layout Standard
8521 A module must begin with a line like the following:
8522 \end_layout
8523
8524 \begin_layout LyX-Code
8525 #
8526 \backslash
8527 DeclareLyXModule[endnotes.sty]{Endnotes} 
8528 \end_layout
8529
8530 \begin_layout Standard
8531 The mandatory argument, in curly brackets, is the name of the module, as
8532  it should appear in 
8533 \begin_inset Flex Noun
8534 status collapsed
8535
8536 \begin_layout Plain Layout
8537 Document\SpecialChar menuseparator
8538 Settings\SpecialChar menuseparator
8539 Modules
8540 \end_layout
8541
8542 \end_inset
8543
8544 .
8545  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8546  packages
8547  on which the module depends.
8548  It is also possible to use the form 
8549 \begin_inset Flex Noun
8550 status collapsed
8551
8552 \begin_layout Plain Layout
8553 from->to
8554 \end_layout
8555
8556 \end_inset
8557
8558  as an optional argument, which declares that the module can only be used
8559  when there exists a conversion chain between the formats `
8560 \begin_inset Flex Code
8561 status collapsed
8562
8563 \begin_layout Plain Layout
8564 from
8565 \end_layout
8566
8567 \end_inset
8568
8569 ' and `
8570 \begin_inset Flex Code
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 to
8575 \end_layout
8576
8577 \end_inset
8578
8579 '.
8580 \end_layout
8581
8582 \begin_layout Standard
8583 The module declaration should then be followed by lines like the following:
8584 \begin_inset Foot
8585 status collapsed
8586
8587 \begin_layout Plain Layout
8588 Preferably in English if the module should be published with \SpecialChar LyX
8589 .
8590  This description will appear in the list of messages to be translated and
8591  will be thus translated with the next interface update.
8592 \end_layout
8593
8594 \end_inset
8595
8596
8597 \end_layout
8598
8599 \begin_layout LyX-Code
8600 #DescriptionBegin 
8601 \end_layout
8602
8603 \begin_layout LyX-Code
8604 #Adds an endnote command, in addition to footnotes.
8605  
8606 \end_layout
8607
8608 \begin_layout LyX-Code
8609 #You will need to add  
8610 \backslash
8611 theendnotes in TeX code where you 
8612 \end_layout
8613
8614 \begin_layout LyX-Code
8615 #want the endnotes to appear.
8616  
8617 \end_layout
8618
8619 \begin_layout LyX-Code
8620 #DescriptionEnd 
8621 \end_layout
8622
8623 \begin_layout LyX-Code
8624 #Requires: somemodule | othermodule
8625 \end_layout
8626
8627 \begin_layout LyX-Code
8628 #Excludes: badmodule
8629 \end_layout
8630
8631 \begin_layout Standard
8632 The description is used in 
8633 \begin_inset Flex Noun
8634 status collapsed
8635
8636 \begin_layout Plain Layout
8637 Document\SpecialChar menuseparator
8638 Settings\SpecialChar menuseparator
8639 Modules
8640 \end_layout
8641
8642 \end_inset
8643
8644  to provide the user with information about what the module does.
8645  The 
8646 \begin_inset Flex Code
8647 status collapsed
8648
8649 \begin_layout Plain Layout
8650 Requires
8651 \end_layout
8652
8653 \end_inset
8654
8655  line is used to identify other modules with which this one must be used;
8656  the 
8657 \begin_inset Flex Code
8658 status collapsed
8659
8660 \begin_layout Plain Layout
8661 Excludes
8662 \end_layout
8663
8664 \end_inset
8665
8666  line is used to identify modules with which this one may not be used.
8667  Both are optional, and, as shown, multiple modules should be separated
8668  with the pipe symbol: |.
8669  Note that the required modules are treated disjunctively: 
8670 \emph on
8671 at least one
8672 \emph default
8673  of the required modules must be used.
8674  Similarly, 
8675 \emph on
8676 no
8677 \emph default
8678  excluded module may be used.
8679  Note that modules are identified here by their filenames without the 
8680 \begin_inset Flex Code
8681 status collapsed
8682
8683 \begin_layout Plain Layout
8684 .module
8685 \end_layout
8686
8687 \end_inset
8688
8689  extension.
8690  So 
8691 \begin_inset Flex Code
8692 status collapsed
8693
8694 \begin_layout Plain Layout
8695 somemodule
8696 \end_layout
8697
8698 \end_inset
8699
8700  is really 
8701 \begin_inset Flex Code
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705 somemodule.module
8706 \end_layout
8707
8708 \end_inset
8709
8710 .
8711 \end_layout
8712
8713 \begin_layout Subsection
8714 The CiteEngine file declaration
8715 \end_layout
8716
8717 \begin_layout Standard
8718 A cite engine file must begin with a line like the following:
8719 \end_layout
8720
8721 \begin_layout LyX-Code
8722 #
8723 \backslash
8724 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8725 \end_layout
8726
8727 \begin_layout Standard
8728 The mandatory argument, in curly brackets, is the name of the cite style,
8729  as it should appear in 
8730 \begin_inset Flex Noun
8731 status collapsed
8732
8733 \begin_layout Plain Layout
8734 Document\SpecialChar menuseparator
8735 Settings\SpecialChar menuseparator
8736 Bibliography
8737 \end_layout
8738
8739 \end_inset
8740
8741 .
8742  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8743  packages
8744  on which the cite engine depends.
8745 \end_layout
8746
8747 \begin_layout Standard
8748 The cite engine declaration should then be followed by lines like the following:
8749 \begin_inset Foot
8750 status collapsed
8751
8752 \begin_layout Plain Layout
8753 Preferably in English if the module should be published with \SpecialChar LyX
8754 .
8755  This description will appear in the list of messages to be translated and
8756  will be thus translated with the next interface update.
8757 \end_layout
8758
8759 \end_inset
8760
8761
8762 \end_layout
8763
8764 \begin_layout LyX-Code
8765 # DescriptionBegin
8766 \end_layout
8767
8768 \begin_layout LyX-Code
8769 #   Biblatex supports many author-year and numerical styles.
8770 \end_layout
8771
8772 \begin_layout LyX-Code
8773 #   It is mainly aimed at the Humanities.
8774  It is highly
8775 \end_layout
8776
8777 \begin_layout LyX-Code
8778 #   customizable, fully localized and provides many features
8779 \end_layout
8780
8781 \begin_layout LyX-Code
8782 #   that are not possible with BibTeX.
8783  The use of 'biber' as
8784 \end_layout
8785
8786 \begin_layout LyX-Code
8787 #   bibliography processor is advised.
8788 \end_layout
8789
8790 \begin_layout LyX-Code
8791 # DescriptionEnd
8792 \end_layout
8793
8794 \begin_layout Standard
8795 The description is used in 
8796 \begin_inset Flex Noun
8797 status collapsed
8798
8799 \begin_layout Plain Layout
8800 Document\SpecialChar menuseparator
8801 Settings\SpecialChar menuseparator
8802 Bibliography
8803 \end_layout
8804
8805 \end_inset
8806
8807  to provide the user with information about the cite engine.
8808 \end_layout
8809
8810 \begin_layout Subsection
8811 Format number
8812 \end_layout
8813
8814 \begin_layout Standard
8815 The first non-comment line of any layout file, included file, or module
8816  
8817 \emph on
8818 must
8819 \emph default
8820  contain the file format number:
8821 \end_layout
8822
8823 \begin_layout Description
8824 \begin_inset Flex Code
8825 status collapsed
8826
8827 \begin_layout Plain Layout
8828 Format
8829 \end_layout
8830
8831 \end_inset
8832
8833  [
8834 \begin_inset Flex Code
8835 status collapsed
8836
8837 \begin_layout Plain Layout
8838 int
8839 \end_layout
8840
8841 \end_inset
8842
8843 ] The format number of the layout file.
8844 \end_layout
8845
8846 \begin_layout Standard
8847 This tag was introduced with \SpecialChar LyX
8848
8849 \begin_inset space ~
8850 \end_inset
8851
8852 1.4.0.
8853  Layout files from older \SpecialChar LyX
8854  versions do not have an explicit file format and
8855  are considered to have 
8856 \begin_inset Flex Code
8857 status collapsed
8858
8859 \begin_layout Plain Layout
8860 Format
8861 \begin_inset space ~
8862 \end_inset
8863
8864 1
8865 \end_layout
8866
8867 \end_inset
8868
8869 .
8870  The format for the present version of \SpecialChar LyX
8871  is format 60.
8872  But each version of \SpecialChar LyX
8873  is capable of reading earlier versions' layout files,
8874  just as they are capable of reading files produced by earlier versions
8875  of \SpecialChar LyX
8876 .
8877  There is, however, no provision for converting to earlier formats.
8878 \end_layout
8879
8880 \begin_layout Subsection
8881 \begin_inset CommandInset label
8882 LatexCommand label
8883 name "subsec:General-text-class"
8884
8885 \end_inset
8886
8887 General text class parameters
8888 \end_layout
8889
8890 \begin_layout Standard
8891 These are general parameters that govern the behavior of an entire document
8892  class.
8893  (This does 
8894 \emph on
8895 not
8896 \emph default
8897  mean that they must appear in 
8898 \begin_inset Flex Code
8899 status collapsed
8900
8901 \begin_layout Plain Layout
8902 .layout
8903 \end_layout
8904
8905 \end_inset
8906
8907  files rather than in modules.
8908  A module can contain any layout tag.)
8909 \end_layout
8910
8911 \begin_layout Description
8912 \begin_inset Flex Code
8913 status collapsed
8914
8915 \begin_layout Plain Layout
8916 AddToHTMLPreamble
8917 \end_layout
8918
8919 \end_inset
8920
8921  Adds information that will be output in the 
8922 \begin_inset Flex Code
8923 status collapsed
8924
8925 \begin_layout Plain Layout
8926 <head>
8927 \end_layout
8928
8929 \end_inset
8930
8931  block when the document is output to XHTML.
8932  Typically, this would be used to output CSS style information, but it can
8933  be used for anything that can appear in 
8934 \begin_inset Flex Code
8935 status collapsed
8936
8937 \begin_layout Plain Layout
8938 <head>
8939 \end_layout
8940
8941 \end_inset
8942
8943 .
8944  Must end with 
8945 \begin_inset Quotes eld
8946 \end_inset
8947
8948
8949 \begin_inset Flex Code
8950 status collapsed
8951
8952 \begin_layout Plain Layout
8953 EndPreamble
8954 \end_layout
8955
8956 \end_inset
8957
8958
8959 \begin_inset Quotes erd
8960 \end_inset
8961
8962 .
8963 \end_layout
8964
8965 \begin_layout Description
8966 \begin_inset Flex Code
8967 status collapsed
8968
8969 \begin_layout Plain Layout
8970 AddToPreamble
8971 \end_layout
8972
8973 \end_inset
8974
8975  Adds information to the document preamble.
8976  Must end with
8977 \begin_inset Newline newline
8978 \end_inset
8979
8980
8981 \begin_inset Quotes eld
8982 \end_inset
8983
8984
8985 \begin_inset Flex Code
8986 status collapsed
8987
8988 \begin_layout Plain Layout
8989 EndPreamble
8990 \end_layout
8991
8992 \end_inset
8993
8994
8995 \begin_inset Quotes erd
8996 \end_inset
8997
8998 .
8999 \end_layout
9000
9001 \begin_layout Description
9002 \begin_inset Flex Code
9003 status collapsed
9004
9005 \begin_layout Plain Layout
9006 CiteEngine <engine>
9007 \end_layout
9008
9009 \end_inset
9010
9011  Defines the possibilities for displaying citation references.
9012  See 
9013 \begin_inset CommandInset ref
9014 LatexCommand ref
9015 reference "subsec:Citation-engine-description"
9016 plural "false"
9017 caps "false"
9018 noprefix "false"
9019
9020 \end_inset
9021
9022  for details.
9023  Must end with 
9024 \begin_inset Quotes eld
9025 \end_inset
9026
9027
9028 \begin_inset Flex Code
9029 status collapsed
9030
9031 \begin_layout Plain Layout
9032 End
9033 \end_layout
9034
9035 \end_inset
9036
9037
9038 \begin_inset Quotes erd
9039 \end_inset
9040
9041 .
9042  Primarily used in cite engine files (see 
9043 \begin_inset CommandInset ref
9044 LatexCommand ref
9045 reference "subsec:Cite-Engine-Files"
9046 plural "false"
9047 caps "false"
9048 noprefix "false"
9049
9050 \end_inset
9051
9052 ).
9053 \end_layout
9054
9055 \begin_layout Description
9056 \begin_inset Flex Code
9057 status collapsed
9058
9059 \begin_layout Plain Layout
9060 CiteFormat
9061 \end_layout
9062
9063 \end_inset
9064
9065  Defines formats for use in the display of bibliographic information.
9066  See 
9067 \begin_inset CommandInset ref
9068 LatexCommand ref
9069 reference "subsec:Citation-format-description"
9070
9071 \end_inset
9072
9073  for details.
9074  Must end with 
9075 \begin_inset Quotes eld
9076 \end_inset
9077
9078
9079 \begin_inset Flex Code
9080 status collapsed
9081
9082 \begin_layout Plain Layout
9083 End
9084 \end_layout
9085
9086 \end_inset
9087
9088
9089 \begin_inset Quotes erd
9090 \end_inset
9091
9092 .
9093  Primarily used in cite engine files (see 
9094 \begin_inset CommandInset ref
9095 LatexCommand ref
9096 reference "subsec:Cite-Engine-Files"
9097 plural "false"
9098 caps "false"
9099 noprefix "false"
9100
9101 \end_inset
9102
9103 ).
9104 \end_layout
9105
9106 \begin_layout Description
9107 \begin_inset Flex Code
9108 status collapsed
9109
9110 \begin_layout Plain Layout
9111 CiteFramework
9112 \end_layout
9113
9114 \end_inset
9115
9116  [
9117 \begin_inset Flex Code
9118 status collapsed
9119
9120 \begin_layout Plain Layout
9121
9122 \emph on
9123 bibtex
9124 \end_layout
9125
9126 \end_inset
9127
9128 ,
9129 \begin_inset Flex Code
9130 status collapsed
9131
9132 \begin_layout Plain Layout
9133 biblatex
9134 \end_layout
9135
9136 \end_inset
9137
9138 ] Determines whether 
9139 \family sans
9140 Biblatex
9141 \family default
9142  or Bib\SpecialChar TeX
9143  is used to generate a Bibliography.
9144  Primarily used in cite engine files (see 
9145 \begin_inset CommandInset ref
9146 LatexCommand ref
9147 reference "subsec:Cite-Engine-Files"
9148 plural "false"
9149 caps "false"
9150 noprefix "false"
9151
9152 \end_inset
9153
9154 ).
9155 \end_layout
9156
9157 \begin_layout Description
9158 \begin_inset Flex Code
9159 status collapsed
9160
9161 \begin_layout Plain Layout
9162 ClassOptions
9163 \end_layout
9164
9165 \end_inset
9166
9167  Describes various global options supported by the document class.
9168  See 
9169 \begin_inset CommandInset ref
9170 LatexCommand ref
9171 reference "subsec:ClassOptions"
9172
9173 \end_inset
9174
9175  for a description.
9176  Must end with 
9177 \begin_inset Quotes eld
9178 \end_inset
9179
9180
9181 \begin_inset Flex Code
9182 status collapsed
9183
9184 \begin_layout Plain Layout
9185 End
9186 \end_layout
9187
9188 \end_inset
9189
9190
9191 \begin_inset Quotes erd
9192 \end_inset
9193
9194 .
9195 \end_layout
9196
9197 \begin_layout Description
9198 \begin_inset Flex Code
9199 status collapsed
9200
9201 \begin_layout Plain Layout
9202 Columns
9203 \end_layout
9204
9205 \end_inset
9206
9207  [
9208 \begin_inset Flex Code
9209 status collapsed
9210
9211 \begin_layout Plain Layout
9212
9213 \emph on
9214 1
9215 \end_layout
9216
9217 \end_inset
9218
9219 ,
9220 \begin_inset space \thinspace{}
9221 \end_inset
9222
9223
9224 \begin_inset Flex Code
9225 status collapsed
9226
9227 \begin_layout Plain Layout
9228 2
9229 \end_layout
9230
9231 \end_inset
9232
9233 ] Whether the class should 
9234 \emph on
9235 default
9236 \emph default
9237  to having one or two columns.
9238  Can be changed in the 
9239 \begin_inset Flex Noun
9240 status collapsed
9241
9242 \begin_layout Plain Layout
9243 Document\SpecialChar menuseparator
9244 Settings
9245 \end_layout
9246
9247 \end_inset
9248
9249  dialog.
9250 \end_layout
9251
9252 \begin_layout Description
9253 \begin_inset Flex Code
9254 status collapsed
9255
9256 \begin_layout Plain Layout
9257 Counter
9258 \end_layout
9259
9260 \end_inset
9261
9262  [
9263 \begin_inset Flex Code
9264 status collapsed
9265
9266 \begin_layout Plain Layout
9267 string
9268 \end_layout
9269
9270 \end_inset
9271
9272 ] This sequence defines the properties for a counter.
9273  If the counter does not yet exist, it is created; if it does exist, it
9274  is modified.
9275  Must end with 
9276 \begin_inset Quotes eld
9277 \end_inset
9278
9279
9280 \begin_inset Flex Code
9281 status collapsed
9282
9283 \begin_layout Plain Layout
9284 End
9285 \end_layout
9286
9287 \end_inset
9288
9289
9290 \begin_inset Quotes erd
9291 \end_inset
9292
9293 .
9294 \begin_inset Newline newline
9295 \end_inset
9296
9297 See 
9298 \begin_inset CommandInset ref
9299 LatexCommand ref
9300 reference "subsec:Counters"
9301
9302 \end_inset
9303
9304  for details on counters.
9305 \end_layout
9306
9307 \begin_layout Description
9308 \begin_inset Flex Code
9309 status collapsed
9310
9311 \begin_layout Plain Layout
9312 DefaultFont
9313 \end_layout
9314
9315 \end_inset
9316
9317  Sets the default font used to display the document.
9318  See 
9319 \begin_inset CommandInset ref
9320 LatexCommand ref
9321 reference "subsec:Font-description"
9322
9323 \end_inset
9324
9325  for how to declare fonts.
9326  Must end with 
9327 \begin_inset Quotes eld
9328 \end_inset
9329
9330
9331 \begin_inset Flex Code
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 EndFont
9336 \end_layout
9337
9338 \end_inset
9339
9340
9341 \begin_inset Quotes erd
9342 \end_inset
9343
9344 .
9345 \end_layout
9346
9347 \begin_layout Description
9348 \begin_inset Flex Code
9349 status collapsed
9350
9351 \begin_layout Plain Layout
9352 DefaultModule
9353 \end_layout
9354
9355 \end_inset
9356
9357  [
9358 \begin_inset Flex Code
9359 status collapsed
9360
9361 \begin_layout Plain Layout
9362 <module>
9363 \end_layout
9364
9365 \end_inset
9366
9367 ] Specifies a module to be included by default with this document class.
9368  The module is specified as filename without the 
9369 \begin_inset Flex Code
9370 status collapsed
9371
9372 \begin_layout Plain Layout
9373 .module
9374 \end_layout
9375
9376 \end_inset
9377
9378  extension.
9379  The user can still remove the module, but it will be active at the outset.
9380  (This applies only when new files are created, or when this class is chosen
9381  for an existing document.)
9382 \end_layout
9383
9384 \begin_layout Description
9385 \begin_inset Flex Code
9386 status collapsed
9387
9388 \begin_layout Plain Layout
9389 DefaultStyle
9390 \end_layout
9391
9392 \end_inset
9393
9394  [
9395 \begin_inset Flex Code
9396 status collapsed
9397
9398 \begin_layout Plain Layout
9399 <style>
9400 \end_layout
9401
9402 \end_inset
9403
9404 ] This is the style that will be assigned to new paragraphs, usually 
9405 \begin_inset Flex Noun
9406 status collapsed
9407
9408 \begin_layout Plain Layout
9409 Standard
9410 \end_layout
9411
9412 \end_inset
9413
9414 .
9415  This will default to the first defined style if not given, but you are
9416  encouraged to use this directive.
9417 \end_layout
9418
9419 \begin_layout Description
9420 \begin_inset Flex Code
9421 status collapsed
9422
9423 \begin_layout Plain Layout
9424 ExcludesModule
9425 \end_layout
9426
9427 \end_inset
9428
9429  [
9430 \begin_inset Flex Code
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 <module>
9435 \end_layout
9436
9437 \end_inset
9438
9439 ] This tag indicates that the module (which is specified by filename without
9440  the 
9441 \begin_inset Flex Code
9442 status collapsed
9443
9444 \begin_layout Plain Layout
9445 .module
9446 \end_layout
9447
9448 \end_inset
9449
9450  extension) cannot be used with this document class.
9451  This might be used in a journal-specific layout file to prevent, say, the
9452  use of the 
9453 \begin_inset Flex Code
9454 status collapsed
9455
9456 \begin_layout Plain Layout
9457 theorems-sec
9458 \end_layout
9459
9460 \end_inset
9461
9462  module that numbers theorems by section.
9463  This tag may 
9464 \emph on
9465 not
9466 \emph default
9467  be used in a module.
9468  Modules have their own way of excluding other modules (see 
9469 \begin_inset CommandInset ref
9470 LatexCommand ref
9471 reference "subsec:Layout-modules"
9472
9473 \end_inset
9474
9475 ).
9476 \end_layout
9477
9478 \begin_layout Description
9479 \begin_inset Flex Code
9480 status collapsed
9481
9482 \begin_layout Plain Layout
9483 Float
9484 \end_layout
9485
9486 \end_inset
9487
9488  Defines a new float.
9489  See 
9490 \begin_inset CommandInset ref
9491 LatexCommand ref
9492 reference "subsec:Floats"
9493
9494 \end_inset
9495
9496  for details.
9497  Must end with 
9498 \begin_inset Quotes eld
9499 \end_inset
9500
9501
9502 \begin_inset Flex Code
9503 status collapsed
9504
9505 \begin_layout Plain Layout
9506 End
9507 \end_layout
9508
9509 \end_inset
9510
9511
9512 \begin_inset Quotes erd
9513 \end_inset
9514
9515 .
9516 \end_layout
9517
9518 \begin_layout Description
9519 \begin_inset Flex Code
9520 status collapsed
9521
9522 \begin_layout Plain Layout
9523 HTMLPreamble
9524 \end_layout
9525
9526 \end_inset
9527
9528  Sets the information that will be output in the 
9529 \begin_inset Flex Code
9530 status collapsed
9531
9532 \begin_layout Plain Layout
9533 <head>
9534 \end_layout
9535
9536 \end_inset
9537
9538  block when this document class is output to XHTML.
9539  Note that this will completely override any prior 
9540 \begin_inset Flex Code
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544 HTMLPreamble
9545 \end_layout
9546
9547 \end_inset
9548
9549  or 
9550 \begin_inset Flex Code
9551 status collapsed
9552
9553 \begin_layout Plain Layout
9554 AddToHTMLPreamble
9555 \end_layout
9556
9557 \end_inset
9558
9559  declarations.
9560  (Use
9561 \begin_inset Newline newline
9562 \end_inset
9563
9564
9565 \begin_inset Flex Code
9566 status collapsed
9567
9568 \begin_layout Plain Layout
9569 AddToHTMLPreamble
9570 \end_layout
9571
9572 \end_inset
9573
9574  if you just want to add material to the preamble.) Must end with 
9575 \begin_inset Quotes eld
9576 \end_inset
9577
9578
9579 \begin_inset Flex Code
9580 status collapsed
9581
9582 \begin_layout Plain Layout
9583 EndPreamble
9584 \end_layout
9585
9586 \end_inset
9587
9588
9589 \begin_inset Quotes erd
9590 \end_inset
9591
9592 .
9593 \end_layout
9594
9595 \begin_layout Description
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 HTMLTOCSection
9601 \end_layout
9602
9603 \end_inset
9604
9605  [
9606 \begin_inset Flex Code
9607 status collapsed
9608
9609 \begin_layout Plain Layout
9610 <style>
9611 \end_layout
9612
9613 \end_inset
9614
9615 ] The style to use for the table of contents, bibliography, and so forth,
9616  when the document is output to HTML.
9617  For articles, this should normally be 
9618 \begin_inset Flex Code
9619 status collapsed
9620
9621 \begin_layout Plain Layout
9622 Section
9623 \end_layout
9624
9625 \end_inset
9626
9627 ; for books 
9628 \begin_inset Flex Code
9629 status collapsed
9630
9631 \begin_layout Plain Layout
9632 Chapter
9633 \end_layout
9634
9635 \end_inset
9636
9637 .
9638  If it is not given, then \SpecialChar LyX
9639  will attempt to figure out which layout to use.
9640 \end_layout
9641
9642 \begin_layout Description
9643 \begin_inset Flex Code
9644 status collapsed
9645
9646 \begin_layout Plain Layout
9647 IfCounter
9648 \end_layout
9649
9650 \end_inset
9651
9652  [
9653 \begin_inset Flex Code
9654 status collapsed
9655
9656 \begin_layout Plain Layout
9657 <counter>
9658 \end_layout
9659
9660 \end_inset
9661
9662 ] Modifies the properties of the given counter.
9663  If the counter does not exist, the statement is ignored.
9664  Must end with 
9665 \begin_inset Quotes eld
9666 \end_inset
9667
9668
9669 \begin_inset Flex Code
9670 status collapsed
9671
9672 \begin_layout Plain Layout
9673 End
9674 \end_layout
9675
9676 \end_inset
9677
9678
9679 \begin_inset Quotes erd
9680 \end_inset
9681
9682 .
9683 \begin_inset Newline newline
9684 \end_inset
9685
9686 See 
9687 \begin_inset CommandInset ref
9688 LatexCommand ref
9689 reference "subsec:Counters"
9690
9691 \end_inset
9692
9693  for details on counters.
9694 \end_layout
9695
9696 \begin_layout Description
9697 \begin_inset Flex Code
9698 status collapsed
9699
9700 \begin_layout Plain Layout
9701 Input
9702 \end_layout
9703
9704 \end_inset
9705
9706  [
9707 \begin_inset Flex Code
9708 status collapsed
9709
9710 \begin_layout Plain Layout
9711 <filename>
9712 \end_layout
9713
9714 \end_inset
9715
9716 ] This allows you to include another layout definition file within yours
9717  to avoid duplicating commands.
9718  Common examples are the standard layout files, for example, 
9719 \begin_inset Flex Code
9720 status collapsed
9721
9722 \begin_layout Plain Layout
9723 stdclass.inc
9724 \end_layout
9725
9726 \end_inset
9727
9728 , which contains most of the basic layouts.
9729 \end_layout
9730
9731 \begin_layout Description
9732 \begin_inset Flex Code
9733 status collapsed
9734
9735 \begin_layout Plain Layout
9736 InsetLayout
9737 \end_layout
9738
9739 \end_inset
9740
9741  [
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 <type>
9747 \end_layout
9748
9749 \end_inset
9750
9751 ] This section (re-)defines the layout of an inset.
9752  It can be applied to an existing inset or to a new, user-defined inset,
9753  e.g., a new character style.
9754  Must end with 
9755 \begin_inset Quotes eld
9756 \end_inset
9757
9758
9759 \begin_inset Flex Code
9760 status collapsed
9761
9762 \begin_layout Plain Layout
9763 End
9764 \end_layout
9765
9766 \end_inset
9767
9768
9769 \begin_inset Quotes erd
9770 \end_inset
9771
9772 .
9773 \begin_inset Newline newline
9774 \end_inset
9775
9776 See 
9777 \begin_inset CommandInset ref
9778 LatexCommand ref
9779 reference "subsec:Flex-insets-and"
9780
9781 \end_inset
9782
9783  for more information.
9784  
9785 \end_layout
9786
9787 \begin_layout Description
9788 \begin_inset Flex Code
9789 status collapsed
9790
9791 \begin_layout Plain Layout
9792 LeftMargin
9793 \end_layout
9794
9795 \end_inset
9796
9797  [
9798 \begin_inset Flex Code
9799 status collapsed
9800
9801 \begin_layout Plain Layout
9802 string
9803 \end_layout
9804
9805 \end_inset
9806
9807 ] A string that indicates the width of the left margin on the screen, for
9808  example, 
9809 \begin_inset Quotes eld
9810 \end_inset
9811
9812
9813 \begin_inset Flex Code
9814 status collapsed
9815
9816 \begin_layout Plain Layout
9817 MMMMM
9818 \end_layout
9819
9820 \end_inset
9821
9822
9823 \begin_inset Quotes erd
9824 \end_inset
9825
9826 .
9827  (Note that this is not a `length', like 
9828 \begin_inset Quotes eld
9829 \end_inset
9830
9831 2ex
9832 \begin_inset Quotes erd
9833 \end_inset
9834
9835 .)
9836 \end_layout
9837
9838 \begin_layout Description
9839 \begin_inset Flex Code
9840 status collapsed
9841
9842 \begin_layout Plain Layout
9843 MaxCiteNames
9844 \end_layout
9845
9846 \end_inset
9847
9848  [
9849 \begin_inset Flex Code
9850 status collapsed
9851
9852 \begin_layout Plain Layout
9853 integer
9854 \end_layout
9855
9856 \end_inset
9857
9858 ] An integer that determines the maximal number of names displayed in an
9859  author-year citation before the citation switches to 
9860 \begin_inset Quotes eld
9861 \end_inset
9862
9863 FirstAuthor et al.
9864 \begin_inset Quotes erd
9865 \end_inset
9866
9867 .
9868  Primarily used in cite engine files (see 
9869 \begin_inset CommandInset ref
9870 LatexCommand ref
9871 reference "subsec:Cite-Engine-Files"
9872 plural "false"
9873 caps "false"
9874 noprefix "false"
9875
9876 \end_inset
9877
9878 ).
9879 \end_layout
9880
9881 \begin_layout Description
9882 \begin_inset Flex Code
9883 status collapsed
9884
9885 \begin_layout Plain Layout
9886 ModifyStyle
9887 \end_layout
9888
9889 \end_inset
9890
9891  [
9892 \begin_inset Flex Code
9893 status collapsed
9894
9895 \begin_layout Plain Layout
9896 <style>
9897 \end_layout
9898
9899 \end_inset
9900
9901 ] Modifies the properties of the given paragraph style.
9902  If the style does not exist, this section is ignored.
9903  Must end with 
9904 \begin_inset Quotes eld
9905 \end_inset
9906
9907
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 End
9913 \end_layout
9914
9915 \end_inset
9916
9917
9918 \begin_inset Quotes erd
9919 \end_inset
9920
9921 .
9922 \end_layout
9923
9924 \begin_layout Description
9925 \begin_inset Flex Code
9926 status collapsed
9927
9928 \begin_layout Plain Layout
9929 NoCounter
9930 \end_layout
9931
9932 \end_inset
9933
9934  [
9935 \begin_inset Flex Code
9936 status collapsed
9937
9938 \begin_layout Plain Layout
9939 <counter>
9940 \end_layout
9941
9942 \end_inset
9943
9944 ] Deletes an existing counter, usually one defined in an included file.
9945 \end_layout
9946
9947 \begin_layout Description
9948 \begin_inset Flex Code
9949 status collapsed
9950
9951 \begin_layout Plain Layout
9952 NoFloat
9953 \end_layout
9954
9955 \end_inset
9956
9957  [
9958 \begin_inset Flex Code
9959 status collapsed
9960
9961 \begin_layout Plain Layout
9962 <float>
9963 \end_layout
9964
9965 \end_inset
9966
9967 ] Deletes an existing float.
9968  This is particularly useful when you want to suppress a float that has
9969  been defined in an input file.
9970 \end_layout
9971
9972 \begin_layout Description
9973 \begin_inset Flex Code
9974 status collapsed
9975
9976 \begin_layout Plain Layout
9977 NoStyle
9978 \end_layout
9979
9980 \end_inset
9981
9982  [
9983 \begin_inset Flex Code
9984 status collapsed
9985
9986 \begin_layout Plain Layout
9987 <style>
9988 \end_layout
9989
9990 \end_inset
9991
9992 ] Deletes an existing style.
9993 \end_layout
9994
9995 \begin_layout Description
9996 \begin_inset Flex Code
9997 status collapsed
9998
9999 \begin_layout Plain Layout
10000 OutlinerName
10001 \end_layout
10002
10003 \end_inset
10004
10005  [
10006 \begin_inset Flex Code
10007 status collapsed
10008
10009 \begin_layout Plain Layout
10010 <type>
10011 \end_layout
10012
10013 \end_inset
10014
10015 ] [
10016 \begin_inset Flex Code
10017 status collapsed
10018
10019 \begin_layout Plain Layout
10020 <string>
10021 \end_layout
10022
10023 \end_inset
10024
10025 ] Define a new table of contents with type 
10026 \begin_inset Flex Code
10027 status collapsed
10028
10029 \begin_layout Plain Layout
10030 <type>
10031 \end_layout
10032
10033 \end_inset
10034
10035  and name 
10036 \begin_inset Flex Code
10037 status collapsed
10038
10039 \begin_layout Plain Layout
10040 <string>
10041 \end_layout
10042
10043 \end_inset
10044
10045 .
10046  See also the AddToToc commands.
10047 \end_layout
10048
10049 \begin_layout Description
10050 \begin_inset Flex Code
10051 status collapsed
10052
10053 \begin_layout Plain Layout
10054 OutputFormat
10055 \end_layout
10056
10057 \end_inset
10058
10059  [
10060 \begin_inset Flex Code
10061 status collapsed
10062
10063 \begin_layout Plain Layout
10064 <format>
10065 \end_layout
10066
10067 \end_inset
10068
10069 ] The file format (as defined in the \SpecialChar LyX
10070  preferences) produced by this document
10071  class.
10072  It is mainly useful when 
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 OutputType
10078 \end_layout
10079
10080 \end_inset
10081
10082  is 
10083 \begin_inset Flex Code
10084 status collapsed
10085
10086 \begin_layout Plain Layout
10087 literate
10088 \end_layout
10089
10090 \end_inset
10091
10092  and one wants to define a new type of literate document.
10093  The format is reset to 
10094 \begin_inset Quotes eld
10095 \end_inset
10096
10097
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102 docbook
10103 \end_layout
10104
10105 \end_inset
10106
10107
10108 \begin_inset Quotes erd
10109 \end_inset
10110
10111  or 
10112 \begin_inset Quotes eld
10113 \end_inset
10114
10115
10116 \begin_inset Flex Code
10117 status collapsed
10118
10119 \begin_layout Plain Layout
10120 latex
10121 \end_layout
10122
10123 \end_inset
10124
10125
10126 \begin_inset Quotes erd
10127 \end_inset
10128
10129  when the corresponding 
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 OutputType
10135 \end_layout
10136
10137 \end_inset
10138
10139  parameter is encountered.
10140 \end_layout
10141
10142 \begin_layout Description
10143 \begin_inset Flex Code
10144 status collapsed
10145
10146 \begin_layout Plain Layout
10147 OutputType
10148 \end_layout
10149
10150 \end_inset
10151
10152  [
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157
10158 \emph on
10159 lat
10160 \emph default
10161 ex
10162 \end_layout
10163
10164 \end_inset
10165
10166
10167 \begin_inset Flex Code
10168 status collapsed
10169
10170 \begin_layout Plain Layout
10171 docbook
10172 \end_layout
10173
10174 \end_inset
10175
10176
10177 \begin_inset Flex Code
10178 status collapsed
10179
10180 \begin_layout Plain Layout
10181 literate
10182 \end_layout
10183
10184 \end_inset
10185
10186 ] Specifies what sort of output documents using this class will produce.
10187 \end_layout
10188
10189 \begin_layout Description
10190 \begin_inset Flex Code
10191 status collapsed
10192
10193 \begin_layout Plain Layout
10194 PackageOptions
10195 \end_layout
10196
10197 \end_inset
10198
10199  [
10200 \begin_inset Flex Code
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 string
10205 \end_layout
10206
10207 \end_inset
10208
10209  
10210 \begin_inset Flex Code
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 string
10215 \end_layout
10216
10217 \end_inset
10218
10219 ] Specifies options, given in the second string, for the package named by
10220  the first string.
10221  For example, 
10222 \begin_inset Quotes eld
10223 \end_inset
10224
10225
10226 \begin_inset Flex Code
10227 status collapsed
10228
10229 \begin_layout Plain Layout
10230 PackageOptions natbib square
10231 \end_layout
10232
10233 \end_inset
10234
10235
10236 \begin_inset Quotes erd
10237 \end_inset
10238
10239  will cause 
10240 \begin_inset Flex Code
10241 status collapsed
10242
10243 \begin_layout Plain Layout
10244 natbib
10245 \end_layout
10246
10247 \end_inset
10248
10249  to be loaded with the 
10250 \begin_inset Flex Code
10251 status collapsed
10252
10253 \begin_layout Plain Layout
10254 square
10255 \end_layout
10256
10257 \end_inset
10258
10259  option.
10260  (For \SpecialChar TeX
10261 perts, this causes \SpecialChar LyX
10262  to output: 
10263 \begin_inset Flex Code
10264 status collapsed
10265
10266 \begin_layout Plain Layout
10267
10268 \backslash
10269 PassOptionsToPackage{natbib}{square}
10270 \end_layout
10271
10272 \end_inset
10273
10274  prior to loading 
10275 \begin_inset Flex Code
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279 natbib
10280 \end_layout
10281
10282 \end_inset
10283
10284 .)
10285 \end_layout
10286
10287 \begin_layout Description
10288 \begin_inset Flex Code
10289 status collapsed
10290
10291 \begin_layout Plain Layout
10292 PageStyle
10293 \end_layout
10294
10295 \end_inset
10296
10297  [
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302
10303 \emph on
10304 plain
10305 \end_layout
10306
10307 \end_inset
10308
10309
10310 \begin_inset Flex Code
10311 status collapsed
10312
10313 \begin_layout Plain Layout
10314 empty
10315 \end_layout
10316
10317 \end_inset
10318
10319
10320 \begin_inset Flex Code
10321 status collapsed
10322
10323 \begin_layout Plain Layout
10324 headings
10325 \end_layout
10326
10327 \end_inset
10328
10329 ] The default pagestyle.
10330  Can be changed in the 
10331 \begin_inset Flex Noun
10332 status collapsed
10333
10334 \begin_layout Plain Layout
10335 Document\SpecialChar menuseparator
10336 Settings
10337 \end_layout
10338
10339 \end_inset
10340
10341  dialog.
10342 \end_layout
10343
10344 \begin_layout Description
10345 \begin_inset Flex Code
10346 status collapsed
10347
10348 \begin_layout Plain Layout
10349 Preamble
10350 \end_layout
10351
10352 \end_inset
10353
10354  Sets the preamble for the \SpecialChar LaTeX
10355  document.
10356  Note that this will completely override any prior 
10357 \begin_inset Flex Code
10358 status collapsed
10359
10360 \begin_layout Plain Layout
10361 Preamble
10362 \end_layout
10363
10364 \end_inset
10365
10366  or 
10367 \begin_inset Flex Code
10368 status collapsed
10369
10370 \begin_layout Plain Layout
10371 AddToPreamble
10372 \end_layout
10373
10374 \end_inset
10375
10376  declarations.
10377  (Use 
10378 \begin_inset Flex Code
10379 status collapsed
10380
10381 \begin_layout Plain Layout
10382 AddToPreamble
10383 \end_layout
10384
10385 \end_inset
10386
10387  if you just want to add material to the preamble.) Must end with 
10388 \begin_inset Quotes eld
10389 \end_inset
10390
10391
10392 \begin_inset Flex Code
10393 status collapsed
10394
10395 \begin_layout Plain Layout
10396 EndPreamble
10397 \end_layout
10398
10399 \end_inset
10400
10401
10402 \begin_inset Quotes erd
10403 \end_inset
10404
10405 .
10406 \end_layout
10407
10408 \begin_layout Description
10409 \begin_inset Flex Code
10410 status collapsed
10411
10412 \begin_layout Plain Layout
10413 Provides
10414 \end_layout
10415
10416 \end_inset
10417
10418  [
10419 \begin_inset Flex Code
10420 status collapsed
10421
10422 \begin_layout Plain Layout
10423 string
10424 \end_layout
10425
10426 \end_inset
10427
10428 ] [
10429 \begin_inset Flex Code
10430 status collapsed
10431
10432 \begin_layout Plain Layout
10433
10434 \emph on
10435 0
10436 \end_layout
10437
10438 \end_inset
10439
10440 ,
10441 \begin_inset space \thinspace{}
10442 \end_inset
10443
10444
10445 \begin_inset Flex Code
10446 status collapsed
10447
10448 \begin_layout Plain Layout
10449 1
10450 \end_layout
10451
10452 \end_inset
10453
10454 ] Whether the class already provides the feature 
10455 \begin_inset Flex Code
10456 status collapsed
10457
10458 \begin_layout Plain Layout
10459 string
10460 \end_layout
10461
10462 \end_inset
10463
10464 .
10465  A feature is in general the name of a package (e.
10466 \begin_inset space \thinspace{}
10467 \end_inset
10468
10469 g.
10470 \begin_inset space \space{}
10471 \end_inset
10472
10473
10474 \begin_inset Flex Code
10475 status collapsed
10476
10477 \begin_layout Plain Layout
10478 amsmath
10479 \end_layout
10480
10481 \end_inset
10482
10483  or 
10484 \begin_inset Flex Code
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488 makeidx
10489 \end_layout
10490
10491 \end_inset
10492
10493 ) or a macro (e.
10494 \begin_inset space \thinspace{}
10495 \end_inset
10496
10497 g.
10498 \begin_inset space \space{}
10499 \end_inset
10500
10501
10502 \begin_inset Flex Code
10503 status collapsed
10504
10505 \begin_layout Plain Layout
10506 url
10507 \end_layout
10508
10509 \end_inset
10510
10511  or 
10512 \begin_inset Flex Code
10513 status collapsed
10514
10515 \begin_layout Plain Layout
10516 boldsymbol
10517 \end_layout
10518
10519 \end_inset
10520
10521 ).
10522  See 
10523 \begin_inset CommandInset ref
10524 LatexCommand ref
10525 reference "chap:List-of-functions"
10526
10527 \end_inset
10528
10529  for the list of features.
10530 \end_layout
10531
10532 \begin_layout Description
10533 \begin_inset Flex Code
10534 status collapsed
10535
10536 \begin_layout Plain Layout
10537 ProvidesModule
10538 \end_layout
10539
10540 \end_inset
10541
10542  [
10543 \begin_inset Flex Code
10544 status collapsed
10545
10546 \begin_layout Plain Layout
10547 string
10548 \end_layout
10549
10550 \end_inset
10551
10552 ] Indicates that this layout provides the functionality of the module mentioned,
10553  which should be specified by the filename without the 
10554 \begin_inset Flex Code
10555 status collapsed
10556
10557 \begin_layout Plain Layout
10558 .module
10559 \end_layout
10560
10561 \end_inset
10562
10563  extension.
10564  This will typically be used if the layout includes the module directly,
10565  rather than using the 
10566 \begin_inset Flex Code
10567 status collapsed
10568
10569 \begin_layout Plain Layout
10570 DefaultModule
10571 \end_layout
10572
10573 \end_inset
10574
10575  tag to indicate that it ought to be used.
10576  It could also be used in a module that provided an alternate implementation
10577  of the same functionality.
10578 \end_layout
10579
10580 \begin_layout Description
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 ProvideStyle
10586 \end_layout
10587
10588 \end_inset
10589
10590  [
10591 \begin_inset Flex Code
10592 status collapsed
10593
10594 \begin_layout Plain Layout
10595 <style>
10596 \end_layout
10597
10598 \end_inset
10599
10600 ] Creates a new paragraph style if it does not already exist.
10601  If the style does exist, this section is ignored.
10602  Must end with 
10603 \begin_inset Quotes eld
10604 \end_inset
10605
10606
10607 \begin_inset Flex Code
10608 status collapsed
10609
10610 \begin_layout Plain Layout
10611 End
10612 \end_layout
10613
10614 \end_inset
10615
10616
10617 \begin_inset Quotes erd
10618 \end_inset
10619
10620 .
10621 \end_layout
10622
10623 \begin_layout Description
10624 \begin_inset Flex Code
10625 status collapsed
10626
10627 \begin_layout Plain Layout
10628 Requires
10629 \end_layout
10630
10631 \end_inset
10632
10633  [
10634 \begin_inset Flex Code
10635 status collapsed
10636
10637 \begin_layout Plain Layout
10638 string
10639 \end_layout
10640
10641 \end_inset
10642
10643 ] Whether the class requires the feature 
10644 \begin_inset Flex Code
10645 status collapsed
10646
10647 \begin_layout Plain Layout
10648 string
10649 \end_layout
10650
10651 \end_inset
10652
10653 .
10654  Multiple features must be separated by commas.
10655  Note that you can only request supported features.
10656  (See 
10657 \begin_inset CommandInset ref
10658 LatexCommand ref
10659 reference "chap:List-of-functions"
10660
10661 \end_inset
10662
10663  for the list of features.).
10664  If you require a package with specific options, you can additionally use
10665  
10666 \begin_inset Flex Code
10667 status collapsed
10668
10669 \begin_layout Plain Layout
10670 PackageOptions
10671 \end_layout
10672
10673 \end_inset
10674
10675 .
10676 \end_layout
10677
10678 \begin_layout Description
10679 \begin_inset Flex Code
10680 status collapsed
10681
10682 \begin_layout Plain Layout
10683 RightMargin
10684 \end_layout
10685
10686 \end_inset
10687
10688  [
10689 \begin_inset Flex Code
10690 status collapsed
10691
10692 \begin_layout Plain Layout
10693 string
10694 \end_layout
10695
10696 \end_inset
10697
10698 ] A string that indicates the width of the right margin on the screen, for
10699  example, 
10700 \begin_inset Quotes eld
10701 \end_inset
10702
10703
10704 \begin_inset Flex Code
10705 status collapsed
10706
10707 \begin_layout Plain Layout
10708 MMMMM
10709 \end_layout
10710
10711 \end_inset
10712
10713
10714 \begin_inset Quotes erd
10715 \end_inset
10716
10717 .
10718 \end_layout
10719
10720 \begin_layout Description
10721 \begin_inset Flex Code
10722 status collapsed
10723
10724 \begin_layout Plain Layout
10725 SecNumDepth
10726 \end_layout
10727
10728 \end_inset
10729
10730  [
10731 \begin_inset Flex Code
10732 status collapsed
10733
10734 \begin_layout Plain Layout
10735 int=3
10736 \end_layout
10737
10738 \end_inset
10739
10740 ] Sets which divisions get numbered.
10741  Corresponds to the
10742 \begin_inset Newline newline
10743 \end_inset
10744
10745
10746 \begin_inset Flex Code
10747 status collapsed
10748
10749 \begin_layout Plain Layout
10750 secnumdepth
10751 \end_layout
10752
10753 \end_inset
10754
10755  counter in \SpecialChar LaTeX
10756 .
10757 \end_layout
10758
10759 \begin_layout Description
10760 \begin_inset Flex Code
10761 status collapsed
10762
10763 \begin_layout Plain Layout
10764 Sides
10765 \end_layout
10766
10767 \end_inset
10768
10769  [
10770 \begin_inset Flex Code
10771 status collapsed
10772
10773 \begin_layout Plain Layout
10774
10775 \emph on
10776 1
10777 \end_layout
10778
10779 \end_inset
10780
10781 ,
10782 \begin_inset space \thinspace{}
10783 \end_inset
10784
10785
10786 \begin_inset Flex Code
10787 status collapsed
10788
10789 \begin_layout Plain Layout
10790 2
10791 \end_layout
10792
10793 \end_inset
10794
10795 ] Whether the class-default should be printing on one or both sides of the
10796  paper.
10797  Can be changed in the 
10798 \begin_inset Flex Noun
10799 status collapsed
10800
10801 \begin_layout Plain Layout
10802 Document\SpecialChar menuseparator
10803 Settings
10804 \end_layout
10805
10806 \end_inset
10807
10808  dialog.
10809 \end_layout
10810
10811 \begin_layout Description
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816 Style
10817 \end_layout
10818
10819 \end_inset
10820
10821  [
10822 \begin_inset Flex Code
10823 status collapsed
10824
10825 \begin_layout Plain Layout
10826 <name>
10827 \end_layout
10828
10829 \end_inset
10830
10831 ] This sequence defines a paragraph style.
10832  If the style does not yet exist, it is created; if it does exist, its parameter
10833 s are modified.
10834  Must end with 
10835 \begin_inset Quotes eld
10836 \end_inset
10837
10838
10839 \begin_inset Flex Code
10840 status collapsed
10841
10842 \begin_layout Plain Layout
10843 End
10844 \end_layout
10845
10846 \end_inset
10847
10848
10849 \begin_inset Quotes erd
10850 \end_inset
10851
10852 .
10853 \begin_inset Newline newline
10854 \end_inset
10855
10856 See 
10857 \begin_inset CommandInset ref
10858 LatexCommand ref
10859 reference "subsec:Paragraph-Styles"
10860
10861 \end_inset
10862
10863  for details on paragraph styles.
10864 \end_layout
10865
10866 \begin_layout Description
10867 \begin_inset Flex Code
10868 status collapsed
10869
10870 \begin_layout Plain Layout
10871 TitleLatexName
10872 \end_layout
10873
10874 \end_inset
10875
10876  [
10877 \begin_inset Flex Code
10878 status collapsed
10879
10880 \begin_layout Plain Layout
10881 string="maketitle"
10882 \end_layout
10883
10884 \end_inset
10885
10886 ] The name of the command or environment to be used with 
10887 \begin_inset Flex Code
10888 status collapsed
10889
10890 \begin_layout Plain Layout
10891 TitleLatexType
10892 \end_layout
10893
10894 \end_inset
10895
10896 .
10897 \end_layout
10898
10899 \begin_layout Description
10900 \begin_inset Flex Code
10901 status collapsed
10902
10903 \begin_layout Plain Layout
10904 TitleLatexType
10905 \end_layout
10906
10907 \end_inset
10908
10909  [
10910 \begin_inset Flex Code
10911 status collapsed
10912
10913 \begin_layout Plain Layout
10914
10915 \emph on
10916 CommandAfter
10917 \end_layout
10918
10919 \end_inset
10920
10921
10922 \begin_inset Flex Code
10923 status collapsed
10924
10925 \begin_layout Plain Layout
10926 Environment
10927 \end_layout
10928
10929 \end_inset
10930
10931 ] Indicates what kind of markup is used to define the title of a document.
10932  
10933 \begin_inset Flex Code
10934 status collapsed
10935
10936 \begin_layout Plain Layout
10937 CommandAfter
10938 \end_layout
10939
10940 \end_inset
10941
10942  means that the macro with name 
10943 \begin_inset Flex Code
10944 status collapsed
10945
10946 \begin_layout Plain Layout
10947 TitleLatexName
10948 \end_layout
10949
10950 \end_inset
10951
10952  will be inserted after the last layout which has 
10953 \begin_inset Quotes eld
10954 \end_inset
10955
10956
10957 \begin_inset Flex Code
10958 status collapsed
10959
10960 \begin_layout Plain Layout
10961 InTitle
10962 \begin_inset space ~
10963 \end_inset
10964
10965 1
10966 \end_layout
10967
10968 \end_inset
10969
10970
10971 \begin_inset Quotes erd
10972 \end_inset
10973
10974 .
10975  
10976 \begin_inset Flex Code
10977 status collapsed
10978
10979 \begin_layout Plain Layout
10980 Environment
10981 \end_layout
10982
10983 \end_inset
10984
10985  corresponds to the case where all layouts which have 
10986 \begin_inset Quotes eld
10987 \end_inset
10988
10989
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994 InTitle
10995 \begin_inset space ~
10996 \end_inset
10997
10998 1
10999 \end_layout
11000
11001 \end_inset
11002
11003
11004 \begin_inset Quotes erd
11005 \end_inset
11006
11007  should be enclosed into the 
11008 \begin_inset Flex Code
11009 status collapsed
11010
11011 \begin_layout Plain Layout
11012 TitleLatexName
11013 \end_layout
11014
11015 \end_inset
11016
11017  environment.
11018 \end_layout
11019
11020 \begin_layout Description
11021 \begin_inset Flex Code
11022 status collapsed
11023
11024 \begin_layout Plain Layout
11025 TocDepth
11026 \end_layout
11027
11028 \end_inset
11029
11030  [
11031 \begin_inset Flex Code
11032 status collapsed
11033
11034 \begin_layout Plain Layout
11035 int=3
11036 \end_layout
11037
11038 \end_inset
11039
11040 ] Sets which divisions are included in the table of contents.
11041  Corresponds to the 
11042 \begin_inset Flex Code
11043 status collapsed
11044
11045 \begin_layout Plain Layout
11046 tocdepth
11047 \end_layout
11048
11049 \end_inset
11050
11051  counter in \SpecialChar LaTeX
11052 .
11053 \end_layout
11054
11055 \begin_layout Subsection
11056 \begin_inset Flex Code
11057 status collapsed
11058
11059 \begin_layout Plain Layout
11060 ClassOptions
11061 \end_layout
11062
11063 \end_inset
11064
11065  section
11066 \begin_inset CommandInset label
11067 LatexCommand label
11068 name "subsec:ClassOptions"
11069
11070 \end_inset
11071
11072
11073 \end_layout
11074
11075 \begin_layout Standard
11076 The 
11077 \begin_inset Flex Code
11078 status collapsed
11079
11080 \begin_layout Plain Layout
11081 ClassOptions
11082 \end_layout
11083
11084 \end_inset
11085
11086  section can contain the following entries:
11087 \end_layout
11088
11089 \begin_layout Description
11090 \begin_inset Flex Code
11091 status collapsed
11092
11093 \begin_layout Plain Layout
11094 FontSize
11095 \end_layout
11096
11097 \end_inset
11098
11099  [
11100 \begin_inset Flex Code
11101 status collapsed
11102
11103 \begin_layout Plain Layout
11104 string="10|11|12"
11105 \end_layout
11106
11107 \end_inset
11108
11109 ] The list of available font sizes for the document's main font, separated
11110  by 
11111 \begin_inset Quotes eld
11112 \end_inset
11113
11114
11115 \begin_inset Flex Code
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 |
11120 \end_layout
11121
11122 \end_inset
11123
11124
11125 \begin_inset Quotes erd
11126 \end_inset
11127
11128 .
11129 \end_layout
11130
11131 \begin_layout Description
11132 \begin_inset Flex Code
11133 status collapsed
11134
11135 \begin_layout Plain Layout
11136 Header
11137 \end_layout
11138
11139 \end_inset
11140
11141  Used to set the DTD line with XML-based output classes.
11142  E.
11143 \begin_inset space \thinspace{}
11144 \end_inset
11145
11146 g.: PUBLIC 
11147 \begin_inset Quotes eld
11148 \end_inset
11149
11150 -//OASIS//DTD DocBook V4.2//EN
11151 \begin_inset Quotes erd
11152 \end_inset
11153
11154 .
11155 \end_layout
11156
11157 \begin_layout Description
11158 \begin_inset Flex Code
11159 status collapsed
11160
11161 \begin_layout Plain Layout
11162 PageStyle
11163 \end_layout
11164
11165 \end_inset
11166
11167  [
11168 \begin_inset Flex Code
11169 status collapsed
11170
11171 \begin_layout Plain Layout
11172 string="empty|plain|headings|fancy"
11173 \end_layout
11174
11175 \end_inset
11176
11177 ] The list of available page sty\SpecialChar softhyphen
11178 les, separated by 
11179 \begin_inset Quotes eld
11180 \end_inset
11181
11182
11183 \begin_inset Flex Code
11184 status collapsed
11185
11186 \begin_layout Plain Layout
11187 |
11188 \end_layout
11189
11190 \end_inset
11191
11192
11193 \begin_inset Quotes erd
11194 \end_inset
11195
11196 .
11197 \end_layout
11198
11199 \begin_layout Description
11200 \begin_inset Flex Code
11201 status collapsed
11202
11203 \begin_layout Plain Layout
11204 Other
11205 \end_layout
11206
11207 \end_inset
11208
11209  [
11210 \begin_inset Flex Code
11211 status collapsed
11212
11213 \begin_layout Plain Layout
11214 string=""
11215 \end_layout
11216
11217 \end_inset
11218
11219 ] Some document class options, separated by a comma, that will be added
11220  to the optional part of the 
11221 \begin_inset Flex Code
11222 status collapsed
11223
11224 \begin_layout Plain Layout
11225
11226 \backslash
11227 documentclass
11228 \end_layout
11229
11230 \end_inset
11231
11232  command.
11233 \end_layout
11234
11235 \begin_layout Standard
11236 The 
11237 \begin_inset Flex Code
11238 status collapsed
11239
11240 \begin_layout Plain Layout
11241 ClassOptions
11242 \end_layout
11243
11244 \end_inset
11245
11246  section must end with 
11247 \begin_inset Quotes eld
11248 \end_inset
11249
11250
11251 \begin_inset Flex Code
11252 status collapsed
11253
11254 \begin_layout Plain Layout
11255 End
11256 \end_layout
11257
11258 \end_inset
11259
11260
11261 \begin_inset Quotes erd
11262 \end_inset
11263
11264 .
11265 \end_layout
11266
11267 \begin_layout Subsection
11268 Paragraph styles
11269 \begin_inset CommandInset label
11270 LatexCommand label
11271 name "subsec:Paragraph-Styles"
11272
11273 \end_inset
11274
11275
11276 \end_layout
11277
11278 \begin_layout Standard
11279 A paragraph style description looks like this:
11280 \begin_inset Foot
11281 status collapsed
11282
11283 \begin_layout Plain Layout
11284 Note that this will either define a new style or modify an existing one.
11285 \end_layout
11286
11287 \end_inset
11288
11289
11290 \end_layout
11291
11292 \begin_layout LyX-Code
11293 Style 
11294 \family roman
11295 \emph on
11296 name
11297 \end_layout
11298
11299 \begin_layout LyX-Code
11300  ...
11301 \end_layout
11302
11303 \begin_layout LyX-Code
11304 End
11305 \end_layout
11306
11307 \begin_layout Standard
11308 where the following commands are allowed:
11309 \end_layout
11310
11311 \begin_layout Description
11312 \begin_inset Flex Code
11313 status collapsed
11314
11315 \begin_layout Plain Layout
11316 AddToToc
11317 \end_layout
11318
11319 \end_inset
11320
11321  [
11322 \begin_inset Flex Code
11323 status collapsed
11324
11325 \begin_layout Plain Layout
11326 string
11327 \end_layout
11328
11329 \end_inset
11330
11331 =""] This paragraph will appear in the table of contents of the given type.
11332  An empty string disables.
11333  See also the OutlinerName and the IsTocCaption commands.
11334  Default: disabled.
11335 \end_layout
11336
11337 \begin_layout Description
11338 \begin_inset Flex Code
11339 status collapsed
11340
11341 \begin_layout Plain Layout
11342 Align
11343 \end_layout
11344
11345 \end_inset
11346
11347  [
11348 \begin_inset Flex Code
11349 status collapsed
11350
11351 \begin_layout Plain Layout
11352
11353 \emph on
11354 block
11355 \emph default
11356 , left, right, center
11357 \end_layout
11358
11359 \end_inset
11360
11361 ] Paragraph alignment.
11362 \end_layout
11363
11364 \begin_layout Description
11365 \begin_inset Flex Code
11366 status collapsed
11367
11368 \begin_layout Plain Layout
11369 AlignPossible
11370 \end_layout
11371
11372 \end_inset
11373
11374  [
11375 \begin_inset Flex Code
11376 status collapsed
11377
11378 \begin_layout Plain Layout
11379
11380 \emph on
11381 block
11382 \emph default
11383 , left, right, center
11384 \end_layout
11385
11386 \end_inset
11387
11388 ] A comma separated list of permitted alignments.
11389  (Some \SpecialChar LaTeX
11390  styles prohibit certain alignments, since those wouldn't make sense.
11391  For example a right-aligned or centered enumeration isn't possible.)
11392 \end_layout
11393
11394 \begin_layout Description
11395 \begin_inset Flex Code
11396 status collapsed
11397
11398 \begin_layout Plain Layout
11399 Argument
11400 \end_layout
11401
11402 \end_inset
11403
11404  [
11405 \begin_inset Flex Code
11406 status collapsed
11407
11408 \begin_layout Plain Layout
11409 int
11410 \end_layout
11411
11412 \end_inset
11413
11414 ] Defines argument number <int> of a command\SpecialChar breakableslash
11415 environment associated with
11416  the current style.
11417  This is useful for things like section headings, and only makes sense with
11418  \SpecialChar LaTeX
11419 .
11420  Every (optional or required) argument of a command or environment – except
11421  for the required argument that is associated with the content of the paragraph
11422  itself – has a separate definition, where the number specifies the order
11423  of the arguments.
11424  The definition must end with 
11425 \begin_inset Flex Code
11426 status collapsed
11427
11428 \begin_layout Plain Layout
11429 EndArgument
11430 \end_layout
11431
11432 \end_inset
11433
11434 .
11435  So a command with two optional arguments has:
11436 \end_layout
11437
11438 \begin_deeper
11439 \begin_layout Quote
11440
11441 \family typewriter
11442 Argument 1
11443 \end_layout
11444
11445 \begin_layout Quote
11446
11447 \family typewriter
11448 ...
11449 \end_layout
11450
11451 \begin_layout Quote
11452
11453 \family typewriter
11454 EndArgument
11455 \end_layout
11456
11457 \begin_layout Quote
11458
11459 \family typewriter
11460 Argument 2
11461 \end_layout
11462
11463 \begin_layout Quote
11464
11465 \family typewriter
11466 ...
11467 \end_layout
11468
11469 \begin_layout Quote
11470
11471 \family typewriter
11472 EndArgument
11473 \end_layout
11474
11475 \begin_layout Standard
11476 Inside the 
11477 \begin_inset Flex Code
11478 status collapsed
11479
11480 \begin_layout Plain Layout
11481 Argument
11482 \end_layout
11483
11484 \end_inset
11485
11486  definition, the following specifications are possible:
11487 \end_layout
11488
11489 \begin_layout Itemize
11490 \begin_inset Flex Code
11491 status collapsed
11492
11493 \begin_layout Plain Layout
11494 LabelString
11495 \end_layout
11496
11497 \end_inset
11498
11499  
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504 [string]
11505 \end_layout
11506
11507 \end_inset
11508
11509  The string that will appear both in the menu (to insert this argument)
11510  and on the argument inset button (unless you also specify a separate 
11511 \begin_inset Flex Code
11512 status collapsed
11513
11514 \begin_layout Plain Layout
11515 MenuString
11516 \end_layout
11517
11518 \end_inset
11519
11520 ).
11521  For the menu, you can define an accelerator by appending the respective
11522  character to the string, divided by 
11523 \begin_inset Quotes eld
11524 \end_inset
11525
11526 |
11527 \begin_inset Quotes erd
11528 \end_inset
11529
11530  (e.
11531 \begin_inset space \thinspace{}
11532 \end_inset
11533
11534 g.
11535 \begin_inset space \space{}
11536 \end_inset
11537
11538
11539 \begin_inset Quotes eld
11540 \end_inset
11541
11542
11543 \begin_inset Flex Code
11544 status collapsed
11545
11546 \begin_layout Plain Layout
11547 Short Title|S
11548 \end_layout
11549
11550 \end_inset
11551
11552
11553 \begin_inset Quotes erd
11554 \end_inset
11555
11556 ).
11557 \end_layout
11558
11559 \begin_layout Itemize
11560 \begin_inset Flex Code
11561 status collapsed
11562
11563 \begin_layout Plain Layout
11564 MenuString
11565 \end_layout
11566
11567 \end_inset
11568
11569  
11570 \begin_inset Flex Code
11571 status collapsed
11572
11573 \begin_layout Plain Layout
11574 [string]
11575 \end_layout
11576
11577 \end_inset
11578
11579  A separate string for the menu.
11580  You can define an accelerator by appending the respective character to
11581  the string, divided by 
11582 \begin_inset Quotes eld
11583 \end_inset
11584
11585 |
11586 \begin_inset Quotes erd
11587 \end_inset
11588
11589  (e.
11590 \begin_inset space \thinspace{}
11591 \end_inset
11592
11593 g.
11594 \begin_inset space \space{}
11595 \end_inset
11596
11597
11598 \begin_inset Quotes eld
11599 \end_inset
11600
11601
11602 \begin_inset Flex Code
11603 status collapsed
11604
11605 \begin_layout Plain Layout
11606 Short Title|S
11607 \end_layout
11608
11609 \end_inset
11610
11611
11612 \begin_inset Quotes erd
11613 \end_inset
11614
11615 ).
11616  This specification is optional.
11617  If it is not given the 
11618 \begin_inset Flex Code
11619 status collapsed
11620
11621 \begin_layout Plain Layout
11622 LabelString
11623 \end_layout
11624
11625 \end_inset
11626
11627  will be used instead for the menu.
11628 \end_layout
11629
11630 \begin_layout Itemize
11631 \begin_inset Flex Code
11632 status collapsed
11633
11634 \begin_layout Plain Layout
11635 Tooltip
11636 \end_layout
11637
11638 \end_inset
11639
11640  
11641 \begin_inset Flex Code
11642 status collapsed
11643
11644 \begin_layout Plain Layout
11645 [string]
11646 \end_layout
11647
11648 \end_inset
11649
11650  A longer explanatory text that appears in the tooltip when hovering over
11651  the argument inset.
11652 \end_layout
11653
11654 \begin_layout Itemize
11655 \begin_inset Flex Code
11656 status collapsed
11657
11658 \begin_layout Plain Layout
11659 Mandatory
11660 \end_layout
11661
11662 \end_inset
11663
11664  [
11665 \begin_inset Flex Code
11666 status collapsed
11667
11668 \begin_layout Plain Layout
11669
11670 \emph on
11671 0
11672 \end_layout
11673
11674 \end_inset
11675
11676 ,
11677 \begin_inset space \thinspace{}
11678 \end_inset
11679
11680
11681 \begin_inset Flex Code
11682 status collapsed
11683
11684 \begin_layout Plain Layout
11685 1
11686 \end_layout
11687
11688 \end_inset
11689
11690 ] Declare if this is a mandatory (1) or an optional (0) argument.
11691  Mandatory arguments will be output empty if not given, while optional arguments
11692  will not be output at all.
11693  By default, mandatory arguments are delimited by 
11694 \begin_inset Flex Code
11695 status collapsed
11696
11697 \begin_layout Plain Layout
11698 {...}
11699 \end_layout
11700
11701 \end_inset
11702
11703 , while optional arguments are delimited by 
11704 \begin_inset Flex Code
11705 status collapsed
11706
11707 \begin_layout Plain Layout
11708 [...]
11709 \end_layout
11710
11711 \end_inset
11712
11713
11714 \end_layout
11715
11716 \begin_layout Itemize
11717 \begin_inset Flex Code
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 Requires
11722 \end_layout
11723
11724 \end_inset
11725
11726  
11727 \begin_inset Flex Code
11728 status collapsed
11729
11730 \begin_layout Plain Layout
11731 [int=0]
11732 \end_layout
11733
11734 \end_inset
11735
11736  defines another argument (by its number) which this argument requires to
11737  be output if it is itself output.
11738  E.
11739 \begin_inset space \thinspace{}
11740 \end_inset
11741
11742 g., in \SpecialChar LaTeX
11743  commands, optional arguments often require previous optional arguments
11744  to be output (at least empty), as in 
11745 \begin_inset Flex Code
11746 status collapsed
11747
11748 \begin_layout Plain Layout
11749
11750 \backslash
11751 command[][argument]{text}
11752 \end_layout
11753
11754 \end_inset
11755
11756 .
11757  This can be achieved by the statement 
11758 \begin_inset Flex Code
11759 status collapsed
11760
11761 \begin_layout Plain Layout
11762 Requires 1
11763 \end_layout
11764
11765 \end_inset
11766
11767  within 
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772 Argument 2
11773 \end_layout
11774
11775 \end_inset
11776
11777 .
11778 \end_layout
11779
11780 \begin_layout Itemize
11781 \begin_inset Flex Code
11782 status collapsed
11783
11784 \begin_layout Plain Layout
11785 LeftDelim
11786 \end_layout
11787
11788 \end_inset
11789
11790  
11791 \begin_inset Flex Code
11792 status collapsed
11793
11794 \begin_layout Plain Layout
11795 [string]
11796 \end_layout
11797
11798 \end_inset
11799
11800  defines a custom left delimiter (instead of 
11801 \begin_inset Flex Code
11802 status collapsed
11803
11804 \begin_layout Plain Layout
11805 {
11806 \end_layout
11807
11808 \end_inset
11809
11810  or 
11811 \begin_inset Flex Code
11812 status collapsed
11813
11814 \begin_layout Plain Layout
11815 [
11816 \end_layout
11817
11818 \end_inset
11819
11820 ).
11821  A line break in the output can be indicated by 
11822 \begin_inset Flex Code
11823 status collapsed
11824
11825 \begin_layout Plain Layout
11826 <br/>
11827 \end_layout
11828
11829 \end_inset
11830
11831 .
11832 \end_layout
11833
11834 \begin_layout Itemize
11835 \begin_inset Flex Code
11836 status collapsed
11837
11838 \begin_layout Plain Layout
11839 RightDelim
11840 \end_layout
11841
11842 \end_inset
11843
11844  
11845 \begin_inset Flex Code
11846 status collapsed
11847
11848 \begin_layout Plain Layout
11849 [string]
11850 \end_layout
11851
11852 \end_inset
11853
11854  defines a custom right delimiter (instead of 
11855 \begin_inset Flex Code
11856 status collapsed
11857
11858 \begin_layout Plain Layout
11859 }
11860 \end_layout
11861
11862 \end_inset
11863
11864  or 
11865 \begin_inset Flex Code
11866 status collapsed
11867
11868 \begin_layout Plain Layout
11869 ]
11870 \end_layout
11871
11872 \end_inset
11873
11874 ).
11875  A line break in the output can be indicated by 
11876 \begin_inset Flex Code
11877 status collapsed
11878
11879 \begin_layout Plain Layout
11880 <br/>
11881 \end_layout
11882
11883 \end_inset
11884
11885 .
11886 \end_layout
11887
11888 \begin_layout Itemize
11889 \begin_inset Flex Code
11890 status collapsed
11891
11892 \begin_layout Plain Layout
11893 DefaultArg
11894 \end_layout
11895
11896 \end_inset
11897
11898  
11899 \begin_inset Flex Code
11900 status collapsed
11901
11902 \begin_layout Plain Layout
11903 [string]
11904 \end_layout
11905
11906 \end_inset
11907
11908  defines an argument that is inserted if and only if no user-specified arguments
11909  were given, i.
11910 \begin_inset space \thinspace{}
11911 \end_inset
11912
11913 e.
11914 \begin_inset space \space{}
11915 \end_inset
11916
11917 if no argument inset has been inserted (note that also an empty argument
11918  inset omits the DefaultArg).
11919  Multiple arguments need to be separated by comma.
11920 \end_layout
11921
11922 \begin_layout Itemize
11923 \begin_inset Flex Code
11924 status collapsed
11925
11926 \begin_layout Plain Layout
11927 PresetArg
11928 \end_layout
11929
11930 \end_inset
11931
11932  
11933 \begin_inset Flex Code
11934 status collapsed
11935
11936 \begin_layout Plain Layout
11937 [string]
11938 \end_layout
11939
11940 \end_inset
11941
11942  defines an argument that is inserted in any case (alone or in addition
11943  to user-specified arguments).
11944  Multiple arguments need to be separated by comma.
11945 \end_layout
11946
11947 \begin_layout Itemize
11948 \begin_inset Flex Code
11949 status collapsed
11950
11951 \begin_layout Plain Layout
11952 Font
11953 \end_layout
11954
11955 \end_inset
11956
11957  The font used for the argument content, see 
11958 \begin_inset CommandInset ref
11959 LatexCommand ref
11960 reference "subsec:Font-description"
11961
11962 \end_inset
11963
11964 .
11965 \end_layout
11966
11967 \begin_layout Itemize
11968 \begin_inset Flex Code
11969 status collapsed
11970
11971 \begin_layout Plain Layout
11972 LabelFont
11973 \end_layout
11974
11975 \end_inset
11976
11977  The font used for the label; see 
11978 \begin_inset CommandInset ref
11979 LatexCommand ref
11980 reference "subsec:Font-description"
11981
11982 \end_inset
11983
11984 .
11985 \end_layout
11986
11987 \begin_layout Itemize
11988 \begin_inset Flex Code
11989 status collapsed
11990
11991 \begin_layout Plain Layout
11992 Decoration
11993 \end_layout
11994
11995 \end_inset
11996
11997  [
11998 \begin_inset Flex Code
11999 status collapsed
12000
12001 \begin_layout Plain Layout
12002
12003 \emph on
12004 Classic
12005 \emph default
12006 , Minimalistic, Conglomerate
12007 \end_layout
12008
12009 \end_inset
12010
12011 ] describes the rendering style used for the inset's frame and buttons.
12012 \end_layout
12013
12014 \begin_layout Itemize
12015 \begin_inset Flex Code
12016 status collapsed
12017
12018 \begin_layout Plain Layout
12019 AutoInsert
12020 \end_layout
12021
12022 \end_inset
12023
12024  
12025 \begin_inset Flex Code
12026 status collapsed
12027
12028 \begin_layout Plain Layout
12029 [int=0]
12030 \end_layout
12031
12032 \end_inset
12033
12034  If this is set to 
12035 \begin_inset Flex Code
12036 status collapsed
12037
12038 \begin_layout Plain Layout
12039 1
12040 \end_layout
12041
12042 \end_inset
12043
12044 , this argument is automatically inserted when the respective style is selected.
12045  Currently, only one argument per style\SpecialChar breakableslash
12046 layout can be automatically inserted.
12047 \end_layout
12048
12049 \begin_layout Itemize
12050 \begin_inset Flex Code
12051 status collapsed
12052
12053 \begin_layout Plain Layout
12054 InsertCotext
12055 \end_layout
12056
12057 \end_inset
12058
12059  
12060 \begin_inset Flex Code
12061 status collapsed
12062
12063 \begin_layout Plain Layout
12064 [int=0]
12065 \end_layout
12066
12067 \end_inset
12068
12069  If this is set to 
12070 \begin_inset Flex Code
12071 status collapsed
12072
12073 \begin_layout Plain Layout
12074 1
12075 \end_layout
12076
12077 \end_inset
12078
12079 , this argument will be inserted with a copy of the co-text (either selected
12080  text or the whole paragraph) as content.
12081 \end_layout
12082
12083 \begin_layout Itemize
12084 \begin_inset Flex Code
12085 status collapsed
12086
12087 \begin_layout Plain Layout
12088 PassThru
12089 \end_layout
12090
12091 \end_inset
12092
12093  [
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098
12099 \emph on
12100 inherited
12101 \emph default
12102 , true, false
12103 \end_layout
12104
12105 \end_inset
12106
12107 ] Whether the contents of this argument should be output in raw form, meaning
12108  without special translations that \SpecialChar LaTeX
12109  would require.
12110  By default, the 
12111 \begin_inset Flex Code
12112 status collapsed
12113
12114 \begin_layout Plain Layout
12115 PassThru
12116 \end_layout
12117
12118 \end_inset
12119
12120  status is inherited by the inset or paragraph layout the argument belongs
12121  to, true and false change the status for the given argument only.
12122 \end_layout
12123
12124 \begin_layout Itemize
12125 \begin_inset Flex Code
12126 status collapsed
12127
12128 \begin_layout Plain Layout
12129 PassThruChars
12130 \end_layout
12131
12132 \end_inset
12133
12134  [
12135 \begin_inset Flex Code
12136 status collapsed
12137
12138 \begin_layout Plain Layout
12139 string of characters
12140 \end_layout
12141
12142 \end_inset
12143
12144 ]
12145 \family typewriter
12146  
12147 \family default
12148 Defines individual characters
12149 \begin_inset Newline linebreak
12150 \end_inset
12151
12152 that should be output in raw form, meaning without special translations
12153  that \SpecialChar LaTeX
12154  would require.
12155  Note that, contrary to PassThru, this needs to be explicitly defined for
12156  arguments.
12157  That is, arguments do not inherit PassThruChars from their parent inset
12158  or layout.
12159 \end_layout
12160
12161 \begin_layout Itemize
12162 \begin_inset Flex Code
12163 status collapsed
12164
12165 \begin_layout Plain Layout
12166 IsTocCaption
12167 \end_layout
12168
12169 \end_inset
12170
12171  [
12172 \begin_inset Flex Code
12173 status collapsed
12174
12175 \begin_layout Plain Layout
12176
12177 \emph on
12178 0
12179 \end_layout
12180
12181 \end_inset
12182
12183 ,
12184 \begin_inset space \thinspace{}
12185 \end_inset
12186
12187
12188 \begin_inset Flex Code
12189 status collapsed
12190
12191 \begin_layout Plain Layout
12192 1
12193 \end_layout
12194
12195 \end_inset
12196
12197 ] If this is set to 1, the argument will output its content in the corresponding
12198  item in the table of contents.
12199  See AddToToc.
12200 \end_layout
12201
12202 \begin_layout Standard
12203 By default, the text entered in the \SpecialChar LyX
12204  workarea in the respective layout is
12205  the last (mandatory) argument of a command if the 
12206 \begin_inset Flex Code
12207 status collapsed
12208
12209 \begin_layout Plain Layout
12210 LatexType
12211 \end_layout
12212
12213 \end_inset
12214
12215  is 
12216 \begin_inset Flex Code
12217 status collapsed
12218
12219 \begin_layout Plain Layout
12220 Command
12221 \end_layout
12222
12223 \end_inset
12224
12225 .
12226  However, arguments with the prefix 
12227 \begin_inset Flex Code
12228 status collapsed
12229
12230 \begin_layout Plain Layout
12231 post:
12232 \end_layout
12233
12234 \end_inset
12235
12236  are output after this workarea argument.
12237  Note that post-argument numbering restarts at 1, so the first argument
12238  following the workarea argument is 
12239 \begin_inset Flex Code
12240 status collapsed
12241
12242 \begin_layout Plain Layout
12243 post:1
12244 \end_layout
12245
12246 \end_inset
12247
12248 .
12249  Post-arguments are ignored in any other 
12250 \begin_inset Flex Code
12251 status collapsed
12252
12253 \begin_layout Plain Layout
12254 LatexType
12255 \end_layout
12256
12257 \end_inset
12258
12259  than 
12260 \begin_inset Flex Code
12261 status collapsed
12262
12263 \begin_layout Plain Layout
12264 Command
12265 \end_layout
12266
12267 \end_inset
12268
12269 .
12270 \end_layout
12271
12272 \begin_layout Standard
12273 Arguments for list 
12274 \begin_inset Flex Code
12275 status collapsed
12276
12277 \begin_layout Plain Layout
12278
12279 \backslash
12280 item
12281 \end_layout
12282
12283 \end_inset
12284
12285 s (as in 
12286 \begin_inset Flex Code
12287 status collapsed
12288
12289 \begin_layout Plain Layout
12290
12291 \backslash
12292 item[foo]
12293 \end_layout
12294
12295 \end_inset
12296
12297 ) have the prefix 
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 item:
12303 \end_layout
12304
12305 \end_inset
12306
12307  followed by the number (e.
12308 \begin_inset space \thinspace{}
12309 \end_inset
12310
12311 g.
12312 \begin_inset space \space{}
12313 \end_inset
12314
12315
12316 \begin_inset Flex Code
12317 status collapsed
12318
12319 \begin_layout Plain Layout
12320 Argument item:1
12321 \end_layout
12322
12323 \end_inset
12324
12325 ).
12326 \end_layout
12327
12328 \end_deeper
12329 \begin_layout Description
12330 \begin_inset Flex Code
12331 status collapsed
12332
12333 \begin_layout Plain Layout
12334 AutoNests
12335 \end_layout
12336
12337 \end_inset
12338
12339  Includes a comma-separated list of layouts that should be nested in and
12340  after the current layout.
12341  Only makes sense for nestable layouts (such as environments).
12342  Must be ended by 
12343 \begin_inset Quotes eld
12344 \end_inset
12345
12346
12347 \begin_inset Flex Code
12348 status collapsed
12349
12350 \begin_layout Plain Layout
12351 EndAutoNests
12352 \end_layout
12353
12354 \end_inset
12355
12356
12357 \begin_inset Quotes erd
12358 \end_inset
12359
12360 .
12361  See also 
12362 \begin_inset Flex Code
12363 status collapsed
12364
12365 \begin_layout Plain Layout
12366 IsAutoNestedBy
12367 \end_layout
12368
12369 \end_inset
12370
12371 .
12372 \end_layout
12373
12374 \begin_layout Description
12375 \begin_inset Flex Code
12376 status collapsed
12377
12378 \begin_layout Plain Layout
12379 BabelPreamble
12380 \end_layout
12381
12382 \end_inset
12383
12384  Note that this will completely override any prior 
12385 \begin_inset Flex Code
12386 status collapsed
12387
12388 \begin_layout Plain Layout
12389 BabelPreamble
12390 \end_layout
12391
12392 \end_inset
12393
12394  declaration for this style.
12395  Must end with 
12396 \begin_inset Quotes eld
12397 \end_inset
12398
12399
12400 \begin_inset Flex Code
12401 status collapsed
12402
12403 \begin_layout Plain Layout
12404 EndBabelPreamble
12405 \end_layout
12406
12407 \end_inset
12408
12409
12410 \begin_inset Quotes erd
12411 \end_inset
12412
12413 .
12414  See 
12415 \begin_inset CommandInset ref
12416 LatexCommand ref
12417 reference "subsec:I18n"
12418
12419 \end_inset
12420
12421  for details on its use.
12422 \end_layout
12423
12424 \begin_layout Description
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429 BottomSep
12430 \end_layout
12431
12432 \end_inset
12433
12434  [
12435 \begin_inset Flex Code
12436 status collapsed
12437
12438 \begin_layout Plain Layout
12439 float=0
12440 \end_layout
12441
12442 \end_inset
12443
12444 ]
12445 \begin_inset Foot
12446 status collapsed
12447
12448 \begin_layout Plain Layout
12449 Note that a `float' here is a real number, such as: 1.5.
12450 \end_layout
12451
12452 \end_inset
12453
12454  The vertical space with which the last of a chain of paragraphs with this
12455  style is separated from the following paragraph.
12456  If the next paragraph has another style, the separations are not simply
12457  added, but the maximum is taken.
12458 \end_layout
12459
12460 \begin_layout Description
12461 \begin_inset Flex Code
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465 Category
12466 \end_layout
12467
12468 \end_inset
12469
12470  [
12471 \begin_inset Flex Code
12472 status collapsed
12473
12474 \begin_layout Plain Layout
12475 string
12476 \end_layout
12477
12478 \end_inset
12479
12480 ] The category for this style.
12481  This is used to group related styles in the style combobox on the toolbar.
12482  Any string can be used, but you may want to use existing categories with
12483  your own styles.
12484  
12485 \end_layout
12486
12487 \begin_layout Description
12488 \begin_inset Flex Code
12489 status collapsed
12490
12491 \begin_layout Plain Layout
12492 CommandDepth
12493 \end_layout
12494
12495 \end_inset
12496
12497  Depth of XML command.
12498  Used only with XML-type formats.
12499 \end_layout
12500
12501 \begin_layout Description
12502 \begin_inset Flex Code
12503 status collapsed
12504
12505 \begin_layout Plain Layout
12506 CopyStyle
12507 \end_layout
12508
12509 \end_inset
12510
12511  [
12512 \begin_inset Flex Code
12513 status collapsed
12514
12515 \begin_layout Plain Layout
12516 string
12517 \end_layout
12518
12519 \end_inset
12520
12521 ] Copies all the features of an existing style into the current one.
12522  
12523 \end_layout
12524
12525 \begin_layout Description
12526 \begin_inset Flex Code
12527 status collapsed
12528
12529 \begin_layout Plain Layout
12530 DependsOn
12531 \end_layout
12532
12533 \end_inset
12534
12535  [
12536 \begin_inset Flex Code
12537 status collapsed
12538
12539 \begin_layout Plain Layout
12540 <name>
12541 \end_layout
12542
12543 \end_inset
12544
12545 ] The name of a style whose preamble should be output 
12546 \emph on
12547 before
12548 \emph default
12549  this one.
12550  This allows to ensure some ordering of the preamble snippets when macros
12551  definitions depend on one another.
12552 \begin_inset Foot
12553 status collapsed
12554
12555 \begin_layout Plain Layout
12556 Note that, besides that functionality, there is no way to ensure any ordering
12557  of preambles.
12558  The ordering that you see in a given version of \SpecialChar LyX
12559  may change without warning
12560  in later versions.
12561 \end_layout
12562
12563 \end_inset
12564
12565
12566 \end_layout
12567
12568 \begin_layout Description
12569 \begin_inset Flex Code
12570 status collapsed
12571
12572 \begin_layout Plain Layout
12573 EndLabeltype
12574 \end_layout
12575
12576 \end_inset
12577
12578  [
12579 \begin_inset Flex Code
12580 status collapsed
12581
12582 \begin_layout Plain Layout
12583
12584 \emph on
12585 No_Label
12586 \emph default
12587 , Box, Filled_Box, Static
12588 \end_layout
12589
12590 \end_inset
12591
12592 ] The type of label that stands at the end of the paragraph (or sequence
12593  of paragraphs if 
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 LatexType
12599 \end_layout
12600
12601 \end_inset
12602
12603  is
12604 \begin_inset Newline newline
12605 \end_inset
12606
12607
12608 \begin_inset Flex Code
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612 Environment
12613 \end_layout
12614
12615 \end_inset
12616
12617
12618 \begin_inset Flex Code
12619 status collapsed
12620
12621 \begin_layout Plain Layout
12622 Item_Environment
12623 \end_layout
12624
12625 \end_inset
12626
12627  or 
12628 \begin_inset Flex Code
12629 status collapsed
12630
12631 \begin_layout Plain Layout
12632 List_Environment
12633 \end_layout
12634
12635 \end_inset
12636
12637 ).
12638  
12639 \begin_inset Flex Code
12640 status collapsed
12641
12642 \begin_layout Plain Layout
12643 No_Label
12644 \end_layout
12645
12646 \end_inset
12647
12648  means 
12649 \begin_inset Quotes eld
12650 \end_inset
12651
12652 nothing
12653 \begin_inset Quotes erd
12654 \end_inset
12655
12656
12657 \begin_inset Flex Code
12658 status collapsed
12659
12660 \begin_layout Plain Layout
12661 Box
12662 \end_layout
12663
12664 \end_inset
12665
12666  (resp.
12667 \begin_inset space \space{}
12668 \end_inset
12669
12670
12671 \begin_inset Flex Code
12672 status collapsed
12673
12674 \begin_layout Plain Layout
12675 Filled_Box
12676 \end_layout
12677
12678 \end_inset
12679
12680 ) is a white (resp.
12681 \begin_inset space ~
12682 \end_inset
12683
12684 black) square suitable for end of proof markers, 
12685 \begin_inset Flex Code
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 Static
12690 \end_layout
12691
12692 \end_inset
12693
12694  is an explicit text string.
12695 \end_layout
12696
12697 \begin_layout Description
12698 \begin_inset Flex Code
12699 status collapsed
12700
12701 \begin_layout Plain Layout
12702 EndLabelString
12703 \end_layout
12704
12705 \end_inset
12706
12707  [
12708 \begin_inset Flex Code
12709 status collapsed
12710
12711 \begin_layout Plain Layout
12712 string=""
12713 \end_layout
12714
12715 \end_inset
12716
12717 ] The string used for a label with a 
12718 \begin_inset Flex Code
12719 status collapsed
12720
12721 \begin_layout Plain Layout
12722 Static
12723 \end_layout
12724
12725 \end_inset
12726
12727
12728 \begin_inset Newline newline
12729 \end_inset
12730
12731
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 EndLabelType
12737 \end_layout
12738
12739 \end_inset
12740
12741 .
12742  
12743 \end_layout
12744
12745 \begin_layout Description
12746 \begin_inset Flex Code
12747 status collapsed
12748
12749 \begin_layout Plain Layout
12750 Font
12751 \end_layout
12752
12753 \end_inset
12754
12755  The font used for both the text body 
12756 \emph on
12757 and
12758 \emph default
12759  the label.
12760  See 
12761 \begin_inset CommandInset ref
12762 LatexCommand ref
12763 reference "subsec:Font-description"
12764
12765 \end_inset
12766
12767 .
12768  Note that defining this font automatically defines the 
12769 \begin_inset Flex Code
12770 status collapsed
12771
12772 \begin_layout Plain Layout
12773 LabelFont
12774 \end_layout
12775
12776 \end_inset
12777
12778  to the same value.
12779  So you should define this one first if you also want to define 
12780 \begin_inset Flex Code
12781 status collapsed
12782
12783 \begin_layout Plain Layout
12784 LabelFont
12785 \end_layout
12786
12787 \end_inset
12788
12789 .
12790 \end_layout
12791
12792 \begin_layout Description
12793 \begin_inset Flex Code
12794 status collapsed
12795
12796 \begin_layout Plain Layout
12797 ForceLocal
12798 \end_layout
12799
12800 \end_inset
12801
12802  [
12803 \begin_inset Flex Code
12804 status collapsed
12805
12806 \begin_layout Plain Layout
12807 int=0
12808 \end_layout
12809
12810 \end_inset
12811
12812 ] Used for backporting new styles to stable \SpecialChar LyX
12813  versions.
12814  The first stable version that supports this tag is \SpecialChar LyX
12815  2.1.0.
12816  The argument is a number which may either be 0, -1 or any value greater
12817  than zero.
12818  If the 
12819 \begin_inset Flex Code
12820 status collapsed
12821
12822 \begin_layout Plain Layout
12823 ForceLocal
12824 \end_layout
12825
12826 \end_inset
12827
12828  flag of a style is greater than zero, it will always be written to the
12829  document header.
12830  If a .lyx file is read, the style definitions from the document header are
12831  added to the document class.
12832  Therefore even older \SpecialChar LyX
12833  versions can handle the style.
12834  The argument of 
12835 \begin_inset Flex Code
12836 status collapsed
12837
12838 \begin_layout Plain Layout
12839 ForceLocal
12840 \end_layout
12841
12842 \end_inset
12843
12844  is a version number: if the style is read, and the version number is less
12845  than the version number of the already existing style in the document class,
12846  the new style is ignored.
12847  If the version number is greater, the new style replaces the existing style.
12848  A value of -1 means an infinite version number, i.
12849 \begin_inset space \thinspace{}
12850 \end_inset
12851
12852 e.
12853 \begin_inset space \space{}
12854 \end_inset
12855
12856 the style is always used.
12857 \end_layout
12858
12859 \begin_layout Description
12860 \begin_inset Flex Code
12861 status collapsed
12862
12863 \begin_layout Plain Layout
12864 FreeSpacing
12865 \end_layout
12866
12867 \end_inset
12868
12869  [
12870 \begin_inset Flex Code
12871 status collapsed
12872
12873 \begin_layout Plain Layout
12874
12875 \emph on
12876 0
12877 \end_layout
12878
12879 \end_inset
12880
12881 ,
12882 \begin_inset space \thinspace{}
12883 \end_inset
12884
12885
12886 \begin_inset Flex Code
12887 status collapsed
12888
12889 \begin_layout Plain Layout
12890 1
12891 \end_layout
12892
12893 \end_inset
12894
12895 ] Usually \SpecialChar LyX
12896  does not allow you to insert more than one space between words,
12897  since a space is considered as the separation between two words, not a
12898  character or symbol of its own.
12899  This is a very fine thing but sometimes annoying, for example, when typing
12900  program code or plain \SpecialChar LaTeX
12901  code.
12902  For this reason, 
12903 \begin_inset Flex Code
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907 FreeSpacing
12908 \end_layout
12909
12910 \end_inset
12911
12912  can be enabled.
12913  Note that \SpecialChar LyX
12914  will create protected blanks for the additional blanks when
12915  in another mode than \SpecialChar LaTeX
12916 -mode.
12917 \end_layout
12918
12919 \begin_layout Description
12920 \begin_inset Flex Code
12921 status collapsed
12922
12923 \begin_layout Plain Layout
12924 HTML*
12925 \end_layout
12926
12927 \end_inset
12928
12929  These tags are used with XHTML output.
12930  See 
12931 \begin_inset CommandInset ref
12932 LatexCommand ref
12933 reference "subsec:Paragraph-Style-XHTML"
12934
12935 \end_inset
12936
12937 .
12938 \end_layout
12939
12940 \begin_layout Description
12941 \begin_inset Flex Code
12942 status collapsed
12943
12944 \begin_layout Plain Layout
12945 InnerTag
12946 \end_layout
12947
12948 \end_inset
12949
12950  [FIXME] (Used only with XML-type formats.)
12951 \end_layout
12952
12953 \begin_layout Description
12954 \begin_inset Flex Code
12955 status collapsed
12956
12957 \begin_layout Plain Layout
12958 InPreamble
12959 \end_layout
12960
12961 \end_inset
12962
12963  [
12964 \begin_inset Flex Code
12965 status collapsed
12966
12967 \begin_layout Plain Layout
12968
12969 \emph on
12970 0
12971 \end_layout
12972
12973 \end_inset
12974
12975 ,
12976 \begin_inset space \thinspace{}
12977 \end_inset
12978
12979
12980 \begin_inset Flex Code
12981 status collapsed
12982
12983 \begin_layout Plain Layout
12984 1
12985 \end_layout
12986
12987 \end_inset
12988
12989 ] If 
12990 \begin_inset Flex Code
12991 status collapsed
12992
12993 \begin_layout Plain Layout
12994 1
12995 \end_layout
12996
12997 \end_inset
12998
12999 , marks the style as to be included in the document preamble and not in
13000  the document body.
13001  This is useful for document classes that want such information as the title
13002  and author to appear in the preamble.
13003  Note that this works only for styles for which the 
13004 \begin_inset Flex Code
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 LatexType
13009 \end_layout
13010
13011 \end_inset
13012
13013  is 
13014 \begin_inset Flex Code
13015 status collapsed
13016
13017 \begin_layout Plain Layout
13018 Command
13019 \end_layout
13020
13021 \end_inset
13022
13023  or 
13024 \begin_inset Flex Code
13025 status collapsed
13026
13027 \begin_layout Plain Layout
13028 Paragraph
13029 \end_layout
13030
13031 \end_inset
13032
13033 .
13034 \end_layout
13035
13036 \begin_layout Description
13037 \begin_inset Flex Code
13038 status collapsed
13039
13040 \begin_layout Plain Layout
13041 InTitle
13042 \end_layout
13043
13044 \end_inset
13045
13046  [
13047 \begin_inset Flex Code
13048 status collapsed
13049
13050 \begin_layout Plain Layout
13051
13052 \emph on
13053 0
13054 \end_layout
13055
13056 \end_inset
13057
13058 ,
13059 \begin_inset space \thinspace{}
13060 \end_inset
13061
13062
13063 \begin_inset Flex Code
13064 status collapsed
13065
13066 \begin_layout Plain Layout
13067 1
13068 \end_layout
13069
13070 \end_inset
13071
13072 ] If 
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 1
13078 \end_layout
13079
13080 \end_inset
13081
13082 , marks the style as being part of a title block (see also the 
13083 \begin_inset Flex Code
13084 status collapsed
13085
13086 \begin_layout Plain Layout
13087 TitleLatexType
13088 \end_layout
13089
13090 \end_inset
13091
13092  and 
13093 \begin_inset Flex Code
13094 status collapsed
13095
13096 \begin_layout Plain Layout
13097 TitleLatexName
13098 \end_layout
13099
13100 \end_inset
13101
13102  global entries).
13103 \end_layout
13104
13105 \begin_layout Description
13106 \begin_inset Flex Code
13107 status collapsed
13108
13109 \begin_layout Plain Layout
13110 IsAutoNestedBy
13111 \end_layout
13112
13113 \end_inset
13114
13115  Includes a comma-separated list of layouts after which this one should
13116  be nested.
13117  Only makes sense with regard to nestable layouts (such as environments).
13118  Must be ended by 
13119 \begin_inset Quotes eld
13120 \end_inset
13121
13122
13123 \begin_inset Flex Code
13124 status collapsed
13125
13126 \begin_layout Plain Layout
13127 EndIsAutoNestedBy
13128 \end_layout
13129
13130 \end_inset
13131
13132
13133 \begin_inset Quotes erd
13134 \end_inset
13135
13136 .
13137  See also 
13138 \begin_inset Flex Code
13139 status collapsed
13140
13141 \begin_layout Plain Layout
13142 AutoNests
13143 \end_layout
13144
13145 \end_inset
13146
13147 .
13148 \end_layout
13149
13150 \begin_layout Description
13151 \begin_inset Flex Code
13152 status collapsed
13153
13154 \begin_layout Plain Layout
13155 IsTocCaption
13156 \end_layout
13157
13158 \end_inset
13159
13160  [
13161 \begin_inset Flex Code
13162 status collapsed
13163
13164 \begin_layout Plain Layout
13165
13166 \emph on
13167 0
13168 \end_layout
13169
13170 \end_inset
13171
13172 ,
13173 \begin_inset space \thinspace{}
13174 \end_inset
13175
13176
13177 \begin_inset Flex Code
13178 status collapsed
13179
13180 \begin_layout Plain Layout
13181 1
13182 \end_layout
13183
13184 \end_inset
13185
13186 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13187  of its contents in its item in the table of contents.
13188  Otherwise, only the label, if it exists, appears.
13189 \end_layout
13190
13191 \begin_layout Description
13192 \begin_inset Flex Code
13193 status collapsed
13194
13195 \begin_layout Plain Layout
13196 ItemCommand
13197 \end_layout
13198
13199 \end_inset
13200
13201  [
13202 \begin_inset Flex Code
13203 status collapsed
13204
13205 \begin_layout Plain Layout
13206 string="item"
13207 \end_layout
13208
13209 \end_inset
13210
13211 ] The \SpecialChar LaTeX
13212  command sequence declaring an item in a list.
13213  The command is to be defined without the preceding backslash (the default
13214  is 
13215 \begin_inset Quotes eld
13216 \end_inset
13217
13218 item
13219 \begin_inset Quotes erd
13220 \end_inset
13221
13222 , resulting in 
13223 \begin_inset Flex Code
13224 status collapsed
13225
13226 \begin_layout Plain Layout
13227
13228 \backslash
13229 item
13230 \end_layout
13231
13232 \end_inset
13233
13234  in the \SpecialChar LaTeX
13235  output).
13236 \end_layout
13237
13238 \begin_layout Description
13239 \begin_inset Flex Code
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243 ItemSep
13244 \end_layout
13245
13246 \end_inset
13247
13248  [
13249 \begin_inset Flex Code
13250 status collapsed
13251
13252 \begin_layout Plain Layout
13253 float=0
13254 \end_layout
13255
13256 \end_inset
13257
13258 ] This provides extra space between paragraphs that have the same style.
13259  If you put other styles into an environment, each is separated with the
13260  environment's 
13261 \begin_inset Flex Code
13262 status collapsed
13263
13264 \begin_layout Plain Layout
13265 ParSep
13266 \end_layout
13267
13268 \end_inset
13269
13270 .
13271  But the whole items of the environment are additionally separated with
13272  this 
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277 ItemSep
13278 \end_layout
13279
13280 \end_inset
13281
13282 .
13283  Note that this is a
13284 \emph on
13285  multiplier.
13286 \end_layout
13287
13288 \begin_layout Description
13289 \begin_inset Flex Code
13290 status collapsed
13291
13292 \begin_layout Plain Layout
13293 ItemTag
13294 \end_layout
13295
13296 \end_inset
13297
13298  [FIXME] (Used only with XML-type formats.)
13299 \end_layout
13300
13301 \begin_layout Description
13302 \begin_inset Flex Code
13303 status collapsed
13304
13305 \begin_layout Plain Layout
13306 KeepEmpty
13307 \end_layout
13308
13309 \end_inset
13310
13311  [
13312 \begin_inset Flex Code
13313 status collapsed
13314
13315 \begin_layout Plain Layout
13316
13317 \emph on
13318 0
13319 \end_layout
13320
13321 \end_inset
13322
13323 ,
13324 \begin_inset space \thinspace{}
13325 \end_inset
13326
13327
13328 \begin_inset Flex Code
13329 status collapsed
13330
13331 \begin_layout Plain Layout
13332 1
13333 \end_layout
13334
13335 \end_inset
13336
13337 ] Usually \SpecialChar LyX
13338  does not allow you to leave a paragraph empty, since it would
13339  lead to empty \SpecialChar LaTeX
13340  output.
13341  There are some cases where this could be desirable however: in a letter
13342  template, the required fields can be provided as empty fields, so that
13343  people do not forget them; in some special classes, a style can be used
13344  as some kind of break, which does not contain actual text.
13345 \end_layout
13346
13347 \begin_layout Description
13348 \begin_inset Flex Code
13349 status collapsed
13350
13351 \begin_layout Plain Layout
13352 LabelBottomsep
13353 \end_layout
13354
13355 \end_inset
13356
13357  [
13358 \begin_inset Flex Code
13359 status collapsed
13360
13361 \begin_layout Plain Layout
13362 float=0
13363 \end_layout
13364
13365 \end_inset
13366
13367 ] The vertical space between the label and the text body.
13368  Only used for labels that are above the text body (
13369 \begin_inset Flex Code
13370 status collapsed
13371
13372 \begin_layout Plain Layout
13373 Top_Environment
13374 \end_layout
13375
13376 \end_inset
13377
13378  and
13379 \begin_inset Newline newline
13380 \end_inset
13381
13382
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 Centered_Top_Environment
13388 \end_layout
13389
13390 \end_inset
13391
13392 ).
13393 \end_layout
13394
13395 \begin_layout Description
13396 \begin_inset Flex Code
13397 status collapsed
13398
13399 \begin_layout Plain Layout
13400 LabelCounter
13401 \end_layout
13402
13403 \end_inset
13404
13405  [
13406 \begin_inset Flex Code
13407 status collapsed
13408
13409 \begin_layout Plain Layout
13410 string=""
13411 \end_layout
13412
13413 \end_inset
13414
13415 ] The name of the counter for automatic numbering.
13416  In order to have the counter appear with your label, you will need to reference
13417  it in the 
13418 \begin_inset Flex Code
13419 status collapsed
13420
13421 \begin_layout Plain Layout
13422
13423 \family typewriter
13424 LabelString
13425 \end_layout
13426
13427 \end_inset
13428
13429 .
13430  This will work with 
13431 \begin_inset Flex Code
13432 status collapsed
13433
13434 \begin_layout Plain Layout
13435 LabelType
13436 \end_layout
13437
13438 \end_inset
13439
13440 s, 
13441 \begin_inset Flex Code
13442 status collapsed
13443
13444 \begin_layout Plain Layout
13445 Static
13446 \end_layout
13447
13448 \end_inset
13449
13450
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455 Above
13456 \end_layout
13457
13458 \end_inset
13459
13460  and 
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465 Centered
13466 \end_layout
13467
13468 \end_inset
13469
13470 , at least.
13471 \begin_inset Newline newline
13472 \end_inset
13473
13474 This 
13475 \emph on
13476 may
13477 \emph default
13478  also be given if 
13479 \begin_inset Flex Code
13480 status collapsed
13481
13482 \begin_layout Plain Layout
13483 LabelType
13484 \end_layout
13485
13486 \end_inset
13487
13488  is 
13489 \begin_inset Flex Code
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 Enumerate
13494 \end_layout
13495
13496 \end_inset
13497
13498 , though this case is a bit complicated.
13499  Suppose you declare 
13500 \begin_inset Quotes eld
13501 \end_inset
13502
13503
13504 \begin_inset Flex Code
13505 status collapsed
13506
13507 \begin_layout Plain Layout
13508 LabelCounter myenum
13509 \end_layout
13510
13511 \end_inset
13512
13513
13514 \begin_inset Quotes erd
13515 \end_inset
13516
13517 .
13518  Then the actual counters used are 
13519 \begin_inset Flex Code
13520 status collapsed
13521
13522 \begin_layout Plain Layout
13523 myenumi
13524 \end_layout
13525
13526 \end_inset
13527
13528
13529 \begin_inset Flex Code
13530 status collapsed
13531
13532 \begin_layout Plain Layout
13533 myenumii
13534 \end_layout
13535
13536 \end_inset
13537
13538
13539 \begin_inset Flex Code
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543 myenumiii
13544 \end_layout
13545
13546 \end_inset
13547
13548  and 
13549 \begin_inset Flex Code
13550 status collapsed
13551
13552 \begin_layout Plain Layout
13553 myenumiv
13554 \end_layout
13555
13556 \end_inset
13557
13558 , much as in \SpecialChar LaTeX
13559 .
13560  These counters must all be declared separately.
13561 \begin_inset Newline newline
13562 \end_inset
13563
13564 See 
13565 \begin_inset CommandInset ref
13566 LatexCommand ref
13567 reference "subsec:Counters"
13568
13569 \end_inset
13570
13571  for details on counters.
13572 \end_layout
13573
13574 \begin_layout Description
13575 \begin_inset Flex Code
13576 status collapsed
13577
13578 \begin_layout Plain Layout
13579 LabelFont
13580 \end_layout
13581
13582 \end_inset
13583
13584  The font used for the label.
13585  See 
13586 \begin_inset CommandInset ref
13587 LatexCommand ref
13588 reference "subsec:Font-description"
13589
13590 \end_inset
13591
13592 .
13593 \end_layout
13594
13595 \begin_layout Description
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600 LabelIndent
13601 \end_layout
13602
13603 \end_inset
13604
13605  [
13606 \begin_inset Flex Code
13607 status collapsed
13608
13609 \begin_layout Plain Layout
13610 string=""
13611 \end_layout
13612
13613 \end_inset
13614
13615 ] Text that indicates how far a label should be indented.
13616 \end_layout
13617
13618 \begin_layout Description
13619 \begin_inset Flex Code
13620 status collapsed
13621
13622 \begin_layout Plain Layout
13623 LabelSep
13624 \end_layout
13625
13626 \end_inset
13627
13628  [
13629 \begin_inset Flex Code
13630 status collapsed
13631
13632 \begin_layout Plain Layout
13633 string=""
13634 \end_layout
13635
13636 \end_inset
13637
13638 ] Text that indicates the amount of horizontal space between the label and
13639  the text body.
13640  Only used for labels that are not above the text body.
13641 \end_layout
13642
13643 \begin_layout Description
13644 \begin_inset Flex Code
13645 status collapsed
13646
13647 \begin_layout Plain Layout
13648 LabelString
13649 \end_layout
13650
13651 \end_inset
13652
13653  [
13654 \begin_inset Flex Code
13655 status collapsed
13656
13657 \begin_layout Plain Layout
13658 string=""
13659 \end_layout
13660
13661 \end_inset
13662
13663 ] The string used for the label.
13664  When 
13665 \begin_inset Flex Code
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 LabelCounter
13670 \end_layout
13671
13672 \end_inset
13673
13674  is set, this string can be contain the special formatting commands described
13675  in 
13676 \begin_inset CommandInset ref
13677 LatexCommand ref
13678 reference "subsec:Counters"
13679
13680 \end_inset
13681
13682 .
13683 \end_layout
13684
13685 \begin_layout Description
13686 \begin_inset Flex Code
13687 status collapsed
13688
13689 \begin_layout Plain Layout
13690 LabelStringAppendix
13691 \end_layout
13692
13693 \end_inset
13694
13695  [
13696 \begin_inset Flex Code
13697 status collapsed
13698
13699 \begin_layout Plain Layout
13700 string=""
13701 \end_layout
13702
13703 \end_inset
13704
13705 ] This is used inside the appendix instead of
13706 \begin_inset Newline newline
13707 \end_inset
13708
13709
13710 \begin_inset Flex Code
13711 status collapsed
13712
13713 \begin_layout Plain Layout
13714 LabelString
13715 \end_layout
13716
13717 \end_inset
13718
13719 .
13720  Note that every 
13721 \begin_inset Flex Code
13722 status collapsed
13723
13724 \begin_layout Plain Layout
13725 LabelString
13726 \end_layout
13727
13728 \end_inset
13729
13730  statement resets
13731 \begin_inset Newline newline
13732 \end_inset
13733
13734
13735 \begin_inset Flex Code
13736 status collapsed
13737
13738 \begin_layout Plain Layout
13739 LabelStringAppendix
13740 \end_layout
13741
13742 \end_inset
13743
13744  too.
13745 \end_layout
13746
13747 \begin_layout Description
13748 \begin_inset Flex Code
13749 status collapsed
13750
13751 \begin_layout Plain Layout
13752 LabelTag
13753 \end_layout
13754
13755 \end_inset
13756
13757  [FIXME] (Used only with XML-type formats.)
13758 \end_layout
13759
13760 \begin_layout Description
13761 \begin_inset Flex Code
13762 status collapsed
13763
13764 \begin_layout Plain Layout
13765 LabelType
13766 \end_layout
13767
13768 \end_inset
13769
13770  [
13771 \begin_inset Flex Code
13772 status collapsed
13773
13774 \begin_layout Plain Layout
13775
13776 \emph on
13777 No_Label
13778 \emph default
13779 , Manual, Static, Above, 
13780 \begin_inset Newline newline
13781 \end_inset
13782
13783 Centered, Sensitive, Enumerate,
13784 \begin_inset Newline newline
13785 \end_inset
13786
13787 Itemize, Bibliography
13788 \end_layout
13789
13790 \end_inset
13791
13792 ]
13793 \end_layout
13794
13795 \begin_deeper
13796 \begin_layout Description
13797 \begin_inset Flex Code
13798 status collapsed
13799
13800 \begin_layout Plain Layout
13801 Manual
13802 \end_layout
13803
13804 \end_inset
13805
13806  means the label is the very first word (up to the first real blank).
13807  Use protected spaces if you want more than one word as the label.
13808  
13809 \end_layout
13810
13811 \begin_layout Description
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816 Static
13817 \end_layout
13818
13819 \end_inset
13820
13821  means the label is simply what is declared as 
13822 \begin_inset Flex Code
13823 status collapsed
13824
13825 \begin_layout Plain Layout
13826 LabelString
13827 \end_layout
13828
13829 \end_inset
13830
13831 .
13832  This will be displayed 
13833 \begin_inset Quotes eld
13834 \end_inset
13835
13836 inline
13837 \begin_inset Quotes erd
13838 \end_inset
13839
13840 , at the beginning of the paragraph.
13841  If the 
13842 \begin_inset Flex Code
13843 status collapsed
13844
13845 \begin_layout Plain Layout
13846 LatexType
13847 \end_layout
13848
13849 \end_inset
13850
13851  is 
13852 \begin_inset Flex Code
13853 status collapsed
13854
13855 \begin_layout Plain Layout
13856 Environment
13857 \end_layout
13858
13859 \end_inset
13860
13861 , then it will be displayed only in the first paragraph of any sequence
13862  of paragraphs with the same 
13863 \begin_inset Flex Code
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867 Style
13868 \end_layout
13869
13870 \end_inset
13871
13872 .
13873 \end_layout
13874
13875 \begin_layout Description
13876 \begin_inset Flex Code
13877 status collapsed
13878
13879 \begin_layout Plain Layout
13880 Above
13881 \end_layout
13882
13883 \end_inset
13884
13885
13886 \begin_inset space ~
13887 \end_inset
13888
13889 and
13890 \begin_inset space ~
13891 \end_inset
13892
13893
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898 Centered
13899 \end_layout
13900
13901 \end_inset
13902
13903  are special cases of 
13904 \begin_inset Flex Code
13905 status collapsed
13906
13907 \begin_layout Plain Layout
13908 Static
13909 \end_layout
13910
13911 \end_inset
13912
13913 .
13914  The label will be printed above the paragraph either at the beginning of
13915  the line or centered.
13916 \end_layout
13917
13918 \begin_layout Description
13919 \begin_inset Flex Code
13920 status collapsed
13921
13922 \begin_layout Plain Layout
13923 Sensitive
13924 \end_layout
13925
13926 \end_inset
13927
13928  is a special case for the caption-labels 
13929 \begin_inset Quotes eld
13930 \end_inset
13931
13932 Figure
13933 \begin_inset Quotes erd
13934 \end_inset
13935
13936  and 
13937 \begin_inset Quotes eld
13938 \end_inset
13939
13940 Table
13941 \begin_inset Quotes erd
13942 \end_inset
13943
13944 .
13945 \begin_inset Newline newline
13946 \end_inset
13947
13948
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 Sensitive
13954 \end_layout
13955
13956 \end_inset
13957
13958  means the (hardcoded) label string depends on the kind of float: It is
13959  hardcoded to be `FloatType N', where N is the value of the counter associated
13960  with the float.
13961  For the case that a caption is inserted outside of a float the 
13962 \begin_inset Flex Code
13963 status collapsed
13964
13965 \begin_layout Plain Layout
13966 LabelString
13967 \end_layout
13968
13969 \end_inset
13970
13971  will appear as 
13972 \begin_inset Quotes eld
13973 \end_inset
13974
13975 Senseless!
13976 \begin_inset Quotes erd
13977 \end_inset
13978
13979 .
13980 \end_layout
13981
13982 \begin_layout Description
13983 \begin_inset Flex Code
13984 status collapsed
13985
13986 \begin_layout Plain Layout
13987 Enumerate
13988 \end_layout
13989
13990 \end_inset
13991
13992  produces the usual sort of enumeration labels.
13993  The number type needs to be set in the 
13994 \family sans
13995 Counter
13996 \family default
13997 , see 
13998 \begin_inset CommandInset ref
13999 LatexCommand ref
14000 reference "subsec:Counters"
14001
14002 \end_inset
14003
14004 .
14005 \end_layout
14006
14007 \begin_layout Description
14008 \begin_inset Flex Code
14009 status collapsed
14010
14011 \begin_layout Plain Layout
14012 Itemize
14013 \end_layout
14014
14015 \end_inset
14016
14017  produces various bullets at the different levels.
14018  The bullet types displayed can be set via 
14019 \begin_inset Flex Noun
14020 status collapsed
14021
14022 \begin_layout Plain Layout
14023 Document\SpecialChar menuseparator
14024 Settings\SpecialChar menuseparator
14025 Bullets
14026 \end_layout
14027
14028 \end_inset
14029
14030 .
14031 \end_layout
14032
14033 \begin_layout Description
14034 \begin_inset Flex Code
14035 status collapsed
14036
14037 \begin_layout Plain Layout
14038 Bibliography
14039 \end_layout
14040
14041 \end_inset
14042
14043  should be used only with 
14044 \begin_inset Flex Code
14045 status collapsed
14046
14047 \begin_layout Plain Layout
14048 LatexType BibEnvironment
14049 \end_layout
14050
14051 \end_inset
14052
14053 .
14054 \end_layout
14055
14056 \end_deeper
14057 \begin_layout Description
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 LangPreamble
14063 \end_layout
14064
14065 \end_inset
14066
14067  Note that this will completely override any prior 
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 LangPreamble
14073 \end_layout
14074
14075 \end_inset
14076
14077  declaration for this style.
14078  Must end with 
14079 \begin_inset Quotes eld
14080 \end_inset
14081
14082
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087 EndLangPreamble
14088 \end_layout
14089
14090 \end_inset
14091
14092
14093 \begin_inset Quotes erd
14094 \end_inset
14095
14096 .
14097  See 
14098 \begin_inset CommandInset ref
14099 LatexCommand ref
14100 reference "subsec:I18n"
14101
14102 \end_inset
14103
14104  for details on its use.
14105 \end_layout
14106
14107 \begin_layout Description
14108 \begin_inset Flex Code
14109 status collapsed
14110
14111 \begin_layout Plain Layout
14112 LatexName
14113 \end_layout
14114
14115 \end_inset
14116
14117  [
14118 \begin_inset Flex Code
14119 status collapsed
14120
14121 \begin_layout Plain Layout
14122 <name>
14123 \end_layout
14124
14125 \end_inset
14126
14127 ] The name of the corresponding \SpecialChar LaTeX
14128  stuff.
14129  Either the environment or command name.
14130 \end_layout
14131
14132 \begin_layout Description
14133 \begin_inset Flex Code
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137 LatexParam
14138 \end_layout
14139
14140 \end_inset
14141
14142  [
14143 \begin_inset Flex Code
14144 status collapsed
14145
14146 \begin_layout Plain Layout
14147 <parameter>
14148 \end_layout
14149
14150 \end_inset
14151
14152 ] An optional parameter for the corresponding 
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 LatexName
14158 \end_layout
14159
14160 \end_inset
14161
14162  stuff.
14163  This parameter cannot be changed from within \SpecialChar LyX
14164  (use 
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169 Argument
14170 \end_layout
14171
14172 \end_inset
14173
14174  for customizable parameters).
14175  This will be output as is after all \SpecialChar LaTeX
14176  
14177 \begin_inset Flex Code
14178 status collapsed
14179
14180 \begin_layout Plain Layout
14181 Argument
14182 \end_layout
14183
14184 \end_inset
14185
14186 s.
14187 \end_layout
14188
14189 \begin_layout Description
14190 \begin_inset Flex Code
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194 LatexType
14195 \end_layout
14196
14197 \end_inset
14198
14199  [
14200 \begin_inset Flex Code
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204
14205 \emph on
14206 Paragraph
14207 \emph default
14208 , Command, Environment, Item_Environment,
14209 \begin_inset Newline newline
14210 \end_inset
14211
14212 List_Environment, Bib_Environment
14213 \end_layout
14214
14215 \end_inset
14216
14217 ] How the style should be translated into \SpecialChar LaTeX
14218 .
14219 \begin_inset Foot
14220 status collapsed
14221
14222 \begin_layout Plain Layout
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 LatexType
14228 \end_layout
14229
14230 \end_inset
14231
14232  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14233  Visit the SGML class files for specific examples.
14234 \end_layout
14235
14236 \end_inset
14237
14238
14239 \end_layout
14240
14241 \begin_deeper
14242 \begin_layout Description
14243 \begin_inset Flex Code
14244 status collapsed
14245
14246 \begin_layout Plain Layout
14247 Paragraph
14248 \end_layout
14249
14250 \end_inset
14251
14252  means nothing special.
14253 \end_layout
14254
14255 \begin_layout Description
14256 \begin_inset Flex Code
14257 status collapsed
14258
14259 \begin_layout Plain Layout
14260 Command
14261 \end_layout
14262
14263 \end_inset
14264
14265  means 
14266 \begin_inset Flex Code
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270
14271 \backslash
14272
14273 \emph on
14274 LatexName
14275 \emph default
14276 {\SpecialChar ldots
14277 }
14278 \end_layout
14279
14280 \end_inset
14281
14282 .
14283 \end_layout
14284
14285 \begin_layout Description
14286 \begin_inset Flex Code
14287 status collapsed
14288
14289 \begin_layout Plain Layout
14290 Environment
14291 \end_layout
14292
14293 \end_inset
14294
14295  means 
14296 \begin_inset Flex Code
14297 status collapsed
14298
14299 \begin_layout Plain Layout
14300
14301 \backslash
14302 begin{
14303 \emph on
14304 LatexName
14305 \emph default
14306 }\SpecialChar ldots
14307
14308 \backslash
14309 end{
14310 \emph on
14311 LatexName
14312 \emph default
14313 }
14314 \end_layout
14315
14316 \end_inset
14317
14318 .
14319  
14320 \end_layout
14321
14322 \begin_layout Description
14323 \begin_inset Flex Code
14324 status collapsed
14325
14326 \begin_layout Plain Layout
14327 Item_Environment
14328 \end_layout
14329
14330 \end_inset
14331
14332  is the same as 
14333 \begin_inset Flex Code
14334 status collapsed
14335
14336 \begin_layout Plain Layout
14337 Environment
14338 \end_layout
14339
14340 \end_inset
14341
14342 , except that an 
14343 \begin_inset Flex Code
14344 status collapsed
14345
14346 \begin_layout Plain Layout
14347
14348 \backslash
14349 item
14350 \end_layout
14351
14352 \end_inset
14353
14354  is generated for each paragraph of this environment.
14355  
14356 \end_layout
14357
14358 \begin_layout Description
14359 \begin_inset Flex Code
14360 status collapsed
14361
14362 \begin_layout Plain Layout
14363 List_Environment
14364 \end_layout
14365
14366 \end_inset
14367
14368  is the same as 
14369 \begin_inset Flex Code
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373 Item_Environment
14374 \end_layout
14375
14376 \end_inset
14377
14378 , except that
14379 \begin_inset Newline newline
14380 \end_inset
14381
14382
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 LabelWidthString
14388 \end_layout
14389
14390 \end_inset
14391
14392  is passed as an argument to the environment.
14393 \begin_inset Newline newline
14394 \end_inset
14395
14396
14397 \begin_inset Flex Code
14398 status collapsed
14399
14400 \begin_layout Plain Layout
14401 LabelWidthString
14402 \end_layout
14403
14404 \end_inset
14405
14406  can be defined in the 
14407 \begin_inset Flex Noun
14408 status collapsed
14409
14410 \begin_layout Plain Layout
14411 Edit\SpecialChar menuseparator
14412 Paragraph
14413 \begin_inset space ~
14414 \end_inset
14415
14416 settings
14417 \end_layout
14418
14419 \end_inset
14420
14421  dialog.
14422 \end_layout
14423
14424 \begin_layout Description
14425 \begin_inset Flex Code
14426 status collapsed
14427
14428 \begin_layout Plain Layout
14429 Bib_Environment
14430 \end_layout
14431
14432 \end_inset
14433
14434  is like 
14435 \begin_inset Flex Code
14436 status collapsed
14437
14438 \begin_layout Plain Layout
14439 Environment
14440 \end_layout
14441
14442 \end_inset
14443
14444  but adds the necessary mandatory argument (the longest label) to the begin
14445  statement of the bibliography environment:
14446 \begin_inset Newline newline
14447 \end_inset
14448
14449
14450 \begin_inset Flex Code
14451 status collapsed
14452
14453 \begin_layout Plain Layout
14454
14455 \backslash
14456 begin{thebibliography}{99}
14457 \end_layout
14458
14459 \end_inset
14460
14461 .
14462  It is therefore only useful for bibliography environments.
14463  The default longest label 
14464 \begin_inset Quotes eld
14465 \end_inset
14466
14467 99
14468 \begin_inset Quotes erd
14469 \end_inset
14470
14471  can be changed by the user in the paragraph settings of a bibliography
14472  item.
14473 \end_layout
14474
14475 \begin_layout Standard
14476 Putting the last few things together, the \SpecialChar LaTeX
14477  output will be either: 
14478 \end_layout
14479
14480 \begin_layout LyX-Code
14481
14482 \backslash
14483 LatexName[LatexParam]{\SpecialChar ldots
14484 }
14485 \end_layout
14486
14487 \begin_layout Standard
14488 or: 
14489 \end_layout
14490
14491 \begin_layout LyX-Code
14492
14493 \backslash
14494 begin{LatexName}[LatexParam] \SpecialChar ldots
14495  
14496 \backslash
14497 end{LatexName}.
14498 \end_layout
14499
14500 \begin_layout Standard
14501 depending upon the \SpecialChar LaTeX
14502  type.
14503 \end_layout
14504
14505 \end_deeper
14506 \begin_layout Description
14507 \begin_inset Flex Code
14508 status collapsed
14509
14510 \begin_layout Plain Layout
14511 LeftDelim
14512 \end_layout
14513
14514 \end_inset
14515
14516  [
14517 \begin_inset Flex Code
14518 status collapsed
14519
14520 \begin_layout Plain Layout
14521 string
14522 \end_layout
14523
14524 \end_inset
14525
14526 ] A string that is put at the beginning of the style content.
14527  A line break in the output can be indicated by 
14528 \begin_inset Flex Code
14529 status collapsed
14530
14531 \begin_layout Plain Layout
14532 <br/>
14533 \end_layout
14534
14535 \end_inset
14536
14537 .
14538 \end_layout
14539
14540 \begin_layout Description
14541 \begin_inset Flex Code
14542 status collapsed
14543
14544 \begin_layout Plain Layout
14545 LeftMargin
14546 \end_layout
14547
14548 \end_inset
14549
14550  [
14551 \begin_inset Flex Code
14552 status collapsed
14553
14554 \begin_layout Plain Layout
14555 string=""
14556 \end_layout
14557
14558 \end_inset
14559
14560 ] If you put styles into environments, the different 
14561 \begin_inset Flex Code
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565 LeftMargin
14566 \end_layout
14567
14568 \end_inset
14569
14570  are not simply added, but added with a factor 
14571 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14572 \end_inset
14573
14574 .
14575  Note that this parameter is also used when 
14576 \begin_inset Flex Code
14577 status collapsed
14578
14579 \begin_layout Plain Layout
14580 Margin
14581 \end_layout
14582
14583 \end_inset
14584
14585  is defined as 
14586 \begin_inset Flex Code
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590 Manual
14591 \end_layout
14592
14593 \end_inset
14594
14595  or 
14596 \begin_inset Flex Code
14597 status collapsed
14598
14599 \begin_layout Plain Layout
14600 Dynamic
14601 \end_layout
14602
14603 \end_inset
14604
14605 .
14606  Then it is added to the manual or dynamic margin.
14607 \begin_inset Newline newline
14608 \end_inset
14609
14610 For example 
14611 \begin_inset Quotes eld
14612 \end_inset
14613
14614
14615 \begin_inset Flex Code
14616 status collapsed
14617
14618 \begin_layout Plain Layout
14619 MM
14620 \end_layout
14621
14622 \end_inset
14623
14624
14625 \begin_inset Quotes erd
14626 \end_inset
14627
14628  means that the paragraph is indented with the width of 
14629 \begin_inset Quotes eld
14630 \end_inset
14631
14632
14633 \begin_inset Flex Code
14634 status collapsed
14635
14636 \begin_layout Plain Layout
14637 MM
14638 \end_layout
14639
14640 \end_inset
14641
14642
14643 \begin_inset Quotes erd
14644 \end_inset
14645
14646  in the normal font.
14647  You can get a negative width by prefixing the string with 
14648 \begin_inset Quotes eld
14649 \end_inset
14650
14651
14652 \begin_inset Flex Code
14653 status collapsed
14654
14655 \begin_layout Plain Layout
14656 -
14657 \end_layout
14658
14659 \end_inset
14660
14661
14662 \begin_inset Quotes erd
14663 \end_inset
14664
14665 .
14666  This way was chosen so that the look is the same with each used screen
14667  font.
14668 \end_layout
14669
14670 \begin_layout Description
14671 \begin_inset Flex Code
14672 status collapsed
14673
14674 \begin_layout Plain Layout
14675 Margin
14676 \end_layout
14677
14678 \end_inset
14679
14680  [
14681 \begin_inset Flex Code
14682 status collapsed
14683
14684 \begin_layout Plain Layout
14685
14686 \emph on
14687 Static
14688 \emph default
14689 , Manual, Dynamic, First_Dynamic, Right_Address_Box
14690 \end_layout
14691
14692 \end_inset
14693
14694
14695 \begin_inset Newline newline
14696 \end_inset
14697
14698 The kind of margin that the style has on the left side.
14699 \end_layout
14700
14701 \begin_deeper
14702 \begin_layout Description
14703 \begin_inset Flex Code
14704 status collapsed
14705
14706 \begin_layout Plain Layout
14707 Static
14708 \end_layout
14709
14710 \end_inset
14711
14712  just means a fixed margin.
14713 \end_layout
14714
14715 \begin_layout Description
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 Manual
14721 \end_layout
14722
14723 \end_inset
14724
14725  means that the left margin depends on the string entered in the 
14726 \begin_inset Flex Noun
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 Edit\SpecialChar menuseparator
14731 Paragraph
14732 \begin_inset space ~
14733 \end_inset
14734
14735 Settings
14736 \end_layout
14737
14738 \end_inset
14739
14740  dialog.
14741  This is used to typeset nice lists without tabulators.
14742 \end_layout
14743
14744 \begin_layout Description
14745 \begin_inset Flex Code
14746 status collapsed
14747
14748 \begin_layout Plain Layout
14749 Dynamic
14750 \end_layout
14751
14752 \end_inset
14753
14754  means that the margin depends on the size of the label.
14755  This is used for automatic enumerated headlines.
14756  It is obvious that the headline 
14757 \begin_inset Quotes eld
14758 \end_inset
14759
14760 5.4.3.2.1 Very long headline
14761 \begin_inset Quotes erd
14762 \end_inset
14763
14764  must have a wider left margin (as wide as 
14765 \begin_inset Quotes eld
14766 \end_inset
14767
14768 5.4.3.2.1
14769 \begin_inset Quotes erd
14770 \end_inset
14771
14772  plus the space) than 
14773 \begin_inset Quotes eld
14774 \end_inset
14775
14776 3.2 Very long headline
14777 \begin_inset Quotes erd
14778 \end_inset
14779
14780 , even if standard 
14781 \begin_inset Quotes eld
14782 \end_inset
14783
14784 word processors
14785 \begin_inset Quotes erd
14786 \end_inset
14787
14788  are not able to do this.
14789 \end_layout
14790
14791 \begin_layout Description
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796 First_Dynamic
14797 \end_layout
14798
14799 \end_inset
14800
14801  is similar, but only the very first row of the paragraph is dynamic, while
14802  the others are static; this is used, for example, for descriptions.
14803 \end_layout
14804
14805 \begin_layout Description
14806 \begin_inset Flex Code
14807 status collapsed
14808
14809 \begin_layout Plain Layout
14810 Right_Address_Box
14811 \end_layout
14812
14813 \end_inset
14814
14815  means the margin is chosen in a way that the longest row of this paragraph
14816  fits to the right margin.
14817  This is used to typeset an address on the right edge of the page.
14818 \end_layout
14819
14820 \end_deeper
14821 \begin_layout Description
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 NeedProtect
14827 \end_layout
14828
14829 \end_inset
14830
14831  [
14832 \begin_inset Flex Code
14833 status collapsed
14834
14835 \begin_layout Plain Layout
14836
14837 \emph on
14838 0
14839 \end_layout
14840
14841 \end_inset
14842
14843 ,
14844 \begin_inset space \thinspace{}
14845 \end_inset
14846
14847
14848 \begin_inset Flex Code
14849 status collapsed
14850
14851 \begin_layout Plain Layout
14852 1
14853 \end_layout
14854
14855 \end_inset
14856
14857 ] Whether fragile commands in this style should be 
14858 \begin_inset Flex Code
14859 status collapsed
14860
14861 \begin_layout Plain Layout
14862
14863 \backslash
14864 protect
14865 \end_layout
14866
14867 \end_inset
14868
14869 'ed.
14870  (Note: This is 
14871 \emph on
14872 not
14873 \emph default
14874  whether this command should itself be protected.)
14875 \change_inserted -712698321 1523696949
14876
14877 \end_layout
14878
14879 \begin_layout Description
14880
14881 \change_inserted -712698321 1523696969
14882 \begin_inset Flex Code
14883 status collapsed
14884
14885 \begin_layout Plain Layout
14886
14887 \change_inserted -712698321 1523696950
14888 NeedCProtect
14889 \end_layout
14890
14891 \end_inset
14892
14893  [
14894 \begin_inset Flex Code
14895 status collapsed
14896
14897 \begin_layout Plain Layout
14898
14899 \change_inserted -712698321 1523696950
14900
14901 \emph on
14902 0
14903 \end_layout
14904
14905 \end_inset
14906
14907 ,
14908 \begin_inset space \thinspace{}
14909 \end_inset
14910
14911
14912 \begin_inset Flex Code
14913 status collapsed
14914
14915 \begin_layout Plain Layout
14916
14917 \change_inserted -712698321 1523696950
14918 1
14919 \end_layout
14920
14921 \end_inset
14922
14923 ] This causes macros that contain this layout to be protected with 
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928
14929 \change_inserted -712698321 1523696950
14930
14931 \backslash
14932 cprotect
14933 \end_layout
14934
14935 \end_inset
14936
14937  (cf.
14938  package 
14939 \family sans
14940 cprotect
14941 \family default
14942 ) if necessary and thus allows (some) verbatim stuff in macros.
14943 \change_unchanged
14944
14945 \end_layout
14946
14947 \begin_layout Description
14948 \begin_inset Flex Code
14949 status collapsed
14950
14951 \begin_layout Plain Layout
14952 Newline
14953 \end_layout
14954
14955 \end_inset
14956
14957  [
14958 \begin_inset Flex Code
14959 status collapsed
14960
14961 \begin_layout Plain Layout
14962 0
14963 \end_layout
14964
14965 \end_inset
14966
14967 ,
14968 \begin_inset space \thinspace{}
14969 \end_inset
14970
14971
14972 \begin_inset Flex Code
14973 status collapsed
14974
14975 \begin_layout Plain Layout
14976
14977 \emph on
14978 1
14979 \end_layout
14980
14981 \end_inset
14982
14983 ] Whether newlines are translated into \SpecialChar LaTeX
14984  newlines (
14985 \begin_inset Flex Code
14986 status collapsed
14987
14988 \begin_layout Plain Layout
14989
14990 \backslash
14991
14992 \backslash
14993
14994 \end_layout
14995
14996 \end_inset
14997
14998 ) or not.
14999  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15000  editing
15001  inside \SpecialChar LyX
15002 .
15003 \end_layout
15004
15005 \begin_layout Description
15006 \begin_inset Flex Code
15007 status collapsed
15008
15009 \begin_layout Plain Layout
15010 NextNoIndent
15011 \end_layout
15012
15013 \end_inset
15014
15015  [
15016 \begin_inset Flex Code
15017 status collapsed
15018
15019 \begin_layout Plain Layout
15020
15021 \emph on
15022 0
15023 \end_layout
15024
15025 \end_inset
15026
15027 ,
15028 \begin_inset space \thinspace{}
15029 \end_inset
15030
15031
15032 \begin_inset Flex Code
15033 status collapsed
15034
15035 \begin_layout Plain Layout
15036 1
15037 \end_layout
15038
15039 \end_inset
15040
15041 ] If set to true, and if 
15042 \begin_inset Flex Code
15043 status collapsed
15044
15045 \begin_layout Plain Layout
15046 DefaultStyle
15047 \end_layout
15048
15049 \end_inset
15050
15051  (usually 
15052 \begin_inset Flex Code
15053 status collapsed
15054
15055 \begin_layout Plain Layout
15056 Standard
15057 \end_layout
15058
15059 \end_inset
15060
15061 ) paragraphs are being indented, then the indentation of such a paragraph
15062  following one of this type will be suppressed.
15063  (So this will not affect the display of non-default paragraphs.)
15064 \end_layout
15065
15066 \begin_layout Description
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 ObsoletedBy
15072 \end_layout
15073
15074 \end_inset
15075
15076  [
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 <name>
15082 \end_layout
15083
15084 \end_inset
15085
15086 ] Name of a style that has replaced this style.
15087  This is used to rename a style, while keeping backward compatibility.
15088 \end_layout
15089
15090 \begin_layout Description
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 ParagraphGroup
15096 \end_layout
15097
15098 \end_inset
15099
15100  [
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 0
15106 \end_layout
15107
15108 \end_inset
15109
15110 ,
15111 \begin_inset space \thinspace{}
15112 \end_inset
15113
15114
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119 1
15120 \end_layout
15121
15122 \end_inset
15123
15124 ] Determines whether consecutive paragraphs of the same type are treated
15125  as belonging together.
15126  This has the effect that the 
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 GuiLabel
15132 \end_layout
15133
15134 \end_inset
15135
15136  is only printed once before such a group.
15137  By default, this is true for 
15138 \begin_inset Flex Code
15139 status collapsed
15140
15141 \begin_layout Plain Layout
15142 LaTeXType
15143 \end_layout
15144
15145 \end_inset
15146
15147  
15148 \begin_inset Flex Code
15149 status collapsed
15150
15151 \begin_layout Plain Layout
15152 Environment
15153 \end_layout
15154
15155 \end_inset
15156
15157  and 
15158 \begin_inset Flex Code
15159 status collapsed
15160
15161 \begin_layout Plain Layout
15162 Bib_Environment
15163 \end_layout
15164
15165 \end_inset
15166
15167  and false for all other types.
15168 \end_layout
15169
15170 \begin_layout Description
15171 \begin_inset Flex Code
15172 status collapsed
15173
15174 \begin_layout Plain Layout
15175 ParbreakIsNewline
15176 \end_layout
15177
15178 \end_inset
15179
15180  [
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185
15186 \emph on
15187 0
15188 \end_layout
15189
15190 \end_inset
15191
15192 ,
15193 \begin_inset space \thinspace{}
15194 \end_inset
15195
15196
15197 \begin_inset Flex Code
15198 status collapsed
15199
15200 \begin_layout Plain Layout
15201 1
15202 \end_layout
15203
15204 \end_inset
15205
15206 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15207  output,
15208  but only by a line break; together with 
15209 \begin_inset Flex Code
15210 status collapsed
15211
15212 \begin_layout Plain Layout
15213 PassThru 1
15214 \end_layout
15215
15216 \end_inset
15217
15218 , this allows to emulate a plain text editor (like the ERT inset).
15219 \end_layout
15220
15221 \begin_layout Description
15222 \begin_inset Flex Code
15223 status collapsed
15224
15225 \begin_layout Plain Layout
15226 ParIndent
15227 \end_layout
15228
15229 \end_inset
15230
15231  [
15232 \begin_inset Flex Code
15233 status collapsed
15234
15235 \begin_layout Plain Layout
15236 string=""
15237 \end_layout
15238
15239 \end_inset
15240
15241 ] The indent of the very first line of a paragraph.
15242  The
15243 \begin_inset Newline newline
15244 \end_inset
15245
15246
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 Parindent
15252 \end_layout
15253
15254 \end_inset
15255
15256  will be fixed for a certain style.
15257  The exception is the default style, since the indentation for these paragraphs
15258  can be prohibited with 
15259 \begin_inset Flex Code
15260 status collapsed
15261
15262 \begin_layout Plain Layout
15263 NextNoIndent
15264 \end_layout
15265
15266 \end_inset
15267
15268 .
15269  Also, 
15270 \begin_inset Flex Code
15271 status collapsed
15272
15273 \begin_layout Plain Layout
15274 Standard
15275 \end_layout
15276
15277 \end_inset
15278
15279  style paragraphs inside environments use the 
15280 \begin_inset Flex Code
15281 status collapsed
15282
15283 \begin_layout Plain Layout
15284 Parindent
15285 \end_layout
15286
15287 \end_inset
15288
15289  of the environment, not their native one.
15290  For example, 
15291 \begin_inset Flex Code
15292 status collapsed
15293
15294 \begin_layout Plain Layout
15295 Standard
15296 \end_layout
15297
15298 \end_inset
15299
15300  paragraphs inside an enumeration are not indented.
15301 \end_layout
15302
15303 \begin_layout Description
15304 \begin_inset Flex Code
15305 status collapsed
15306
15307 \begin_layout Plain Layout
15308 ParSep
15309 \end_layout
15310
15311 \end_inset
15312
15313  [
15314 \begin_inset Flex Code
15315 status collapsed
15316
15317 \begin_layout Plain Layout
15318 float=0
15319 \end_layout
15320
15321 \end_inset
15322
15323 ] The vertical space between two paragraphs of this style.
15324 \end_layout
15325
15326 \begin_layout Description
15327 \begin_inset Flex Code
15328 status collapsed
15329
15330 \begin_layout Plain Layout
15331 Parskip
15332 \end_layout
15333
15334 \end_inset
15335
15336  [
15337 \begin_inset Flex Code
15338 status collapsed
15339
15340 \begin_layout Plain Layout
15341 float=0
15342 \end_layout
15343
15344 \end_inset
15345
15346 ] \SpecialChar LyX
15347  allows the user to choose either 
15348 \begin_inset Quotes eld
15349 \end_inset
15350
15351 indent
15352 \begin_inset Quotes erd
15353 \end_inset
15354
15355  or 
15356 \begin_inset Quotes eld
15357 \end_inset
15358
15359 skip
15360 \begin_inset Quotes erd
15361 \end_inset
15362
15363  to separate paragraphs.
15364  When 
15365 \begin_inset Quotes eld
15366 \end_inset
15367
15368 indent
15369 \begin_inset Quotes erd
15370 \end_inset
15371
15372  is chosen, 
15373 \begin_inset Flex Code
15374 status collapsed
15375
15376 \begin_layout Plain Layout
15377 Parskip
15378 \end_layout
15379
15380 \end_inset
15381
15382  is ignored.
15383  When 
15384 \begin_inset Quotes eld
15385 \end_inset
15386
15387 skip
15388 \begin_inset Quotes erd
15389 \end_inset
15390
15391  is chosen, 
15392 \begin_inset Flex Code
15393 status collapsed
15394
15395 \begin_layout Plain Layout
15396 ParIndent
15397 \end_layout
15398
15399 \end_inset
15400
15401  is ignored and all paragraphs are separated by the 
15402 \begin_inset Flex Code
15403 status collapsed
15404
15405 \begin_layout Plain Layout
15406 Parskip
15407 \end_layout
15408
15409 \end_inset
15410
15411  argument.
15412  The vertical space is calculated with 
15413 \begin_inset Flex Code
15414 status collapsed
15415
15416 \begin_layout Plain Layout
15417 Parskip
15418 \begin_inset space ~
15419 \end_inset
15420
15421 * DefaultHeight
15422 \end_layout
15423
15424 \end_inset
15425
15426  where 
15427 \begin_inset Flex Code
15428 status collapsed
15429
15430 \begin_layout Plain Layout
15431 DefaultHeight
15432 \end_layout
15433
15434 \end_inset
15435
15436  is the height of a row with the normal font.
15437  This way, the look stays the same with different screen fonts.
15438 \end_layout
15439
15440 \begin_layout Description
15441 \begin_inset Flex Code
15442 status collapsed
15443
15444 \begin_layout Plain Layout
15445 PassThru
15446 \end_layout
15447
15448 \end_inset
15449
15450  [
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455
15456 \emph on
15457 0
15458 \end_layout
15459
15460 \end_inset
15461
15462 ,
15463 \begin_inset space \thinspace{}
15464 \end_inset
15465
15466
15467 \begin_inset Flex Code
15468 status collapsed
15469
15470 \begin_layout Plain Layout
15471 1
15472 \end_layout
15473
15474 \end_inset
15475
15476 ] Whether the contents of this paragraph should be output in raw form, meaning
15477  without special translations that \SpecialChar LaTeX
15478  would require.
15479 \end_layout
15480
15481 \begin_layout Description
15482 \begin_inset Flex Code
15483 status collapsed
15484
15485 \begin_layout Plain Layout
15486 PassThruChars
15487 \end_layout
15488
15489 \end_inset
15490
15491  [
15492 \begin_inset Flex Code
15493 status collapsed
15494
15495 \begin_layout Plain Layout
15496 string
15497 \end_layout
15498
15499 \end_inset
15500
15501 ]
15502 \family typewriter
15503  
15504 \family default
15505 Defines individual characters that should be output in raw form, meaning
15506  without special translations that \SpecialChar LaTeX
15507  would require.
15508 \end_layout
15509
15510 \begin_layout Description
15511 \begin_inset Flex Code
15512 status collapsed
15513
15514 \begin_layout Plain Layout
15515 Preamble
15516 \end_layout
15517
15518 \end_inset
15519
15520  Information to be included in the \SpecialChar LaTeX
15521  preamble when this style is used.
15522  Used to define macros, load packages, etc., required by this particular
15523  style.
15524  Must end with 
15525 \begin_inset Quotes eld
15526 \end_inset
15527
15528
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533 EndPreamble
15534 \end_layout
15535
15536 \end_inset
15537
15538
15539 \begin_inset Quotes erd
15540 \end_inset
15541
15542 .
15543 \end_layout
15544
15545 \begin_layout Description
15546 \begin_inset Flex Code
15547 status collapsed
15548
15549 \begin_layout Plain Layout
15550 RefPrefix
15551 \end_layout
15552
15553 \end_inset
15554
15555  [
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 string
15561 \end_layout
15562
15563 \end_inset
15564
15565 ] The prefix to use when creating labels referring to paragraphs of this
15566  type.
15567  This allows the use of formatted references.
15568 \end_layout
15569
15570 \begin_layout Description
15571 \begin_inset Flex Code
15572 status collapsed
15573
15574 \begin_layout Plain Layout
15575 Requires 
15576 \end_layout
15577
15578 \end_inset
15579
15580  [
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585 string
15586 \end_layout
15587
15588 \end_inset
15589
15590 ] Whether the style requires the feature 
15591 \begin_inset Flex Code
15592 status collapsed
15593
15594 \begin_layout Plain Layout
15595 string
15596 \end_layout
15597
15598 \end_inset
15599
15600  (see 
15601 \begin_inset CommandInset ref
15602 LatexCommand ref
15603 reference "chap:List-of-functions"
15604
15605 \end_inset
15606
15607  for the list of features).
15608  If you require a package with specific options, you can additionally use
15609  
15610 \begin_inset Flex Code
15611 status collapsed
15612
15613 \begin_layout Plain Layout
15614 PackageOptions
15615 \end_layout
15616
15617 \end_inset
15618
15619  as a general text class parameter (see 
15620 \begin_inset CommandInset ref
15621 LatexCommand ref
15622 reference "subsec:General-text-class"
15623
15624 \end_inset
15625
15626 ).
15627 \end_layout
15628
15629 \begin_layout Description
15630 \begin_inset Flex Code
15631 status collapsed
15632
15633 \begin_layout Plain Layout
15634 ResetArgs
15635 \end_layout
15636
15637 \end_inset
15638
15639  [
15640 \begin_inset Flex Code
15641 status collapsed
15642
15643 \begin_layout Plain Layout
15644
15645 \emph on
15646 0
15647 \end_layout
15648
15649 \end_inset
15650
15651 ,
15652 \begin_inset Flex Code
15653 status collapsed
15654
15655 \begin_layout Plain Layout
15656 1
15657 \end_layout
15658
15659 \end_inset
15660
15661 ] Resets the \SpecialChar LaTeX
15662  arguments of this style (as defined via the 
15663 \begin_inset Flex Code
15664 status collapsed
15665
15666 \begin_layout Plain Layout
15667 Argument
15668 \end_layout
15669
15670 \end_inset
15671
15672  tag).
15673  This is useful if you have copied a style via 
15674 \begin_inset Flex Code
15675 status collapsed
15676
15677 \begin_layout Plain Layout
15678 CopyStyle
15679 \end_layout
15680
15681 \end_inset
15682
15683 , but you do not want to inherit its (required and optional) arguments.
15684 \end_layout
15685
15686 \begin_layout Description
15687 \begin_inset Flex Code
15688 status collapsed
15689
15690 \begin_layout Plain Layout
15691 ResumeCounter
15692 \end_layout
15693
15694 \end_inset
15695
15696  [
15697 \begin_inset Flex Code
15698 status collapsed
15699
15700 \begin_layout Plain Layout
15701
15702 \emph on
15703 0
15704 \end_layout
15705
15706 \end_inset
15707
15708 ,
15709 \begin_inset Flex Code
15710 status collapsed
15711
15712 \begin_layout Plain Layout
15713 1
15714 \end_layout
15715
15716 \end_inset
15717
15718 ] Resumes a counter that is usually reset at each new sequence of layouts.
15719  This is currently only useful when 
15720 \begin_inset Flex Code
15721 status collapsed
15722
15723 \begin_layout Plain Layout
15724 LabelType
15725 \end_layout
15726
15727 \end_inset
15728
15729  is 
15730 \begin_inset Flex Code
15731 status collapsed
15732
15733 \begin_layout Plain Layout
15734 Enumerate
15735 \end_layout
15736
15737 \end_inset
15738
15739 .
15740 \end_layout
15741
15742 \begin_layout Description
15743 \begin_inset Flex Code
15744 status collapsed
15745
15746 \begin_layout Plain Layout
15747 RightDelim
15748 \end_layout
15749
15750 \end_inset
15751
15752  [
15753 \begin_inset Flex Code
15754 status collapsed
15755
15756 \begin_layout Plain Layout
15757 string
15758 \end_layout
15759
15760 \end_inset
15761
15762 ] A string that is put at the end of the layout content.
15763  A line break in the output can be indicated by 
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 <br/>
15769 \end_layout
15770
15771 \end_inset
15772
15773 .
15774 \end_layout
15775
15776 \begin_layout Description
15777 \begin_inset Flex Code
15778 status collapsed
15779
15780 \begin_layout Plain Layout
15781 RightMargin
15782 \end_layout
15783
15784 \end_inset
15785
15786  [
15787 \begin_inset Flex Code
15788 status collapsed
15789
15790 \begin_layout Plain Layout
15791 string=""
15792 \end_layout
15793
15794 \end_inset
15795
15796 ] Similar to 
15797 \begin_inset Flex Code
15798 status collapsed
15799
15800 \begin_layout Plain Layout
15801 LeftMargin
15802 \end_layout
15803
15804 \end_inset
15805
15806 .
15807 \end_layout
15808
15809 \begin_layout Description
15810 \begin_inset Flex Code
15811 status collapsed
15812
15813 \begin_layout Plain Layout
15814 Spacing
15815 \end_layout
15816
15817 \end_inset
15818
15819  [
15820 \begin_inset Flex Code
15821 status collapsed
15822
15823 \begin_layout Plain Layout
15824
15825 \emph on
15826 single
15827 \end_layout
15828
15829 \end_inset
15830
15831
15832 \begin_inset Flex Code
15833 status collapsed
15834
15835 \begin_layout Plain Layout
15836 onehalf
15837 \end_layout
15838
15839 \end_inset
15840
15841
15842 \begin_inset Flex Code
15843 status collapsed
15844
15845 \begin_layout Plain Layout
15846 double
15847 \end_layout
15848
15849 \end_inset
15850
15851
15852 \begin_inset Flex Code
15853 status collapsed
15854
15855 \begin_layout Plain Layout
15856 other
15857 \begin_inset space ~
15858 \end_inset
15859
15860 <value>
15861 \end_layout
15862
15863 \end_inset
15864
15865 ] This defines what the default spacing should be in the style.
15866  The arguments 
15867 \begin_inset Flex Code
15868 status collapsed
15869
15870 \begin_layout Plain Layout
15871 single
15872 \end_layout
15873
15874 \end_inset
15875
15876
15877 \begin_inset Flex Code
15878 status collapsed
15879
15880 \begin_layout Plain Layout
15881 onehalf
15882 \end_layout
15883
15884 \end_inset
15885
15886  and 
15887 \begin_inset Flex Code
15888 status collapsed
15889
15890 \begin_layout Plain Layout
15891 double
15892 \end_layout
15893
15894 \end_inset
15895
15896  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15897  If you specify the argument 
15898 \begin_inset Flex Code
15899 status collapsed
15900
15901 \begin_layout Plain Layout
15902 other
15903 \end_layout
15904
15905 \end_inset
15906
15907 , then you must also provide a value argument which will be the actual multiplie
15908 r value.
15909  Note that, contrary to other parameters, 
15910 \begin_inset Flex Code
15911 status collapsed
15912
15913 \begin_layout Plain Layout
15914 Spacing
15915 \end_layout
15916
15917 \end_inset
15918
15919  implies the generation of specific \SpecialChar LaTeX
15920  code, using the \SpecialChar LaTeX
15921  package 
15922 \family roman
15923
15924 \begin_inset Flex Code
15925 status collapsed
15926
15927 \begin_layout Plain Layout
15928 setspace
15929 \end_layout
15930
15931 \end_inset
15932
15933 .
15934 \end_layout
15935
15936 \begin_layout Description
15937 \begin_inset Flex Code
15938 status collapsed
15939
15940 \begin_layout Plain Layout
15941 Spellcheck
15942 \end_layout
15943
15944 \end_inset
15945
15946  [
15947 \begin_inset Flex Code
15948 status collapsed
15949
15950 \begin_layout Plain Layout
15951 0
15952 \end_layout
15953
15954 \end_inset
15955
15956 ,
15957 \begin_inset space \thinspace{}
15958 \end_inset
15959
15960
15961 \begin_inset Flex Code
15962 status collapsed
15963
15964 \begin_layout Plain Layout
15965
15966 \emph on
15967 1
15968 \end_layout
15969
15970 \end_inset
15971
15972 ] Allow spell-checking paragraphs of this style.
15973  Default is true.
15974 \end_layout
15975
15976 \begin_layout Description
15977 \begin_inset Flex Code
15978 status collapsed
15979
15980 \begin_layout Plain Layout
15981 StepMasterCounter
15982 \end_layout
15983
15984 \end_inset
15985
15986  [
15987 \begin_inset Flex Code
15988 status collapsed
15989
15990 \begin_layout Plain Layout
15991
15992 \emph on
15993 0
15994 \end_layout
15995
15996 \end_inset
15997
15998 ,
15999 \begin_inset Flex Code
16000 status collapsed
16001
16002 \begin_layout Plain Layout
16003 1
16004 \end_layout
16005
16006 \end_inset
16007
16008 ] Steps the master counter of a given counter at the beginning of a new
16009  sequence of layouts.
16010  This is currently only useful when 
16011 \begin_inset Flex Code
16012 status collapsed
16013
16014 \begin_layout Plain Layout
16015 LabelType
16016 \end_layout
16017
16018 \end_inset
16019
16020  is 
16021 \begin_inset Flex Code
16022 status collapsed
16023
16024 \begin_layout Plain Layout
16025 Enumerate
16026 \end_layout
16027
16028 \end_inset
16029
16030 .
16031 \end_layout
16032
16033 \begin_layout Description
16034 \begin_inset Flex Code
16035 status collapsed
16036
16037 \begin_layout Plain Layout
16038 TextFont
16039 \end_layout
16040
16041 \end_inset
16042
16043  The font used for the text body .
16044  See 
16045 \begin_inset CommandInset ref
16046 LatexCommand ref
16047 reference "subsec:Font-description"
16048
16049 \end_inset
16050
16051 .
16052 \end_layout
16053
16054 \begin_layout Description
16055 \begin_inset Flex Code
16056 status collapsed
16057
16058 \begin_layout Plain Layout
16059 TocLevel
16060 \end_layout
16061
16062 \end_inset
16063
16064
16065 \series medium
16066  [
16067 \begin_inset Flex Code
16068 status collapsed
16069
16070 \begin_layout Plain Layout
16071
16072 \series medium
16073 int=3
16074 \end_layout
16075
16076 \end_inset
16077
16078 ]
16079 \series default
16080  The level of the style in the table of contents.
16081  This is used for automatic numbering of section headings.
16082 \end_layout
16083
16084 \begin_layout Description
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 ToggleIndent
16090 \end_layout
16091
16092 \end_inset
16093
16094  [
16095 \emph on
16096
16097 \begin_inset Flex Code
16098 status collapsed
16099
16100 \begin_layout Plain Layout
16101
16102 \emph on
16103 default
16104 \end_layout
16105
16106 \end_inset
16107
16108
16109 \emph default
16110
16111 \begin_inset Flex Code
16112 status collapsed
16113
16114 \begin_layout Plain Layout
16115 always
16116 \end_layout
16117
16118 \end_inset
16119
16120
16121 \begin_inset Flex Code
16122 status collapsed
16123
16124 \begin_layout Plain Layout
16125 never
16126 \end_layout
16127
16128 \end_inset
16129
16130 ] This tag determines whether the first line indentation of this paragraph
16131  can be toggled via the Paragraph settings dialog.
16132  If 
16133 \emph on
16134
16135 \begin_inset Flex Code
16136 status collapsed
16137
16138 \begin_layout Plain Layout
16139
16140 \emph off
16141 default
16142 \end_layout
16143
16144 \end_inset
16145
16146
16147 \emph default
16148  is set, indentation can be toggled if the document settings use 
16149 \begin_inset Quotes eld
16150 \end_inset
16151
16152 indent
16153 \begin_inset Quotes erd
16154 \end_inset
16155
16156  paragraph style, with 
16157 \begin_inset Flex Code
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161 always
16162 \end_layout
16163
16164 \end_inset
16165
16166 , indentation can always be toggled, notwithstanding the document settings,
16167  with 
16168 \begin_inset Flex Code
16169 status collapsed
16170
16171 \begin_layout Plain Layout
16172 never
16173 \end_layout
16174
16175 \end_inset
16176
16177 , indentation can never be toggled.
16178 \end_layout
16179
16180 \begin_layout Description
16181 \begin_inset Flex Code
16182 status collapsed
16183
16184 \begin_layout Plain Layout
16185 TopSep
16186 \end_layout
16187
16188 \end_inset
16189
16190  [
16191 \begin_inset Flex Code
16192 status collapsed
16193
16194 \begin_layout Plain Layout
16195 float=0
16196 \end_layout
16197
16198 \end_inset
16199
16200 ] The vertical space with which the very first of a chain of paragraphs
16201  with this style is separated from the previous paragraph.
16202  If the previous paragraph has another style, the separations are not simply
16203  added, but the maximum is taken.
16204 \end_layout
16205
16206 \begin_layout Subsection
16207 \begin_inset CommandInset label
16208 LatexCommand label
16209 name "subsec:I18n"
16210
16211 \end_inset
16212
16213 Internationalization of Paragraph Styles
16214 \end_layout
16215
16216 \begin_layout Standard
16217 \SpecialChar LyX
16218  has long supported internationalization of layout information, but, until
16219  version 2.0, this applied only to the user interface and not to, say, PDF
16220  output.
16221  Thus, French authors were forced to resort to ugly hacks if they wanted
16222  `
16223 \lang french
16224 Théorème
16225 \lang english
16226  1' instead of `Theorem 1'.
16227  Thanks to Georg Baum, that is no longer the case.
16228 \end_layout
16229
16230 \begin_layout Standard
16231 If a 
16232 \begin_inset Flex Code
16233 status collapsed
16234
16235 \begin_layout Plain Layout
16236 Style
16237 \end_layout
16238
16239 \end_inset
16240
16241  defines text that is to appear in the typeset document, it may use 
16242 \begin_inset Flex Code
16243 status collapsed
16244
16245 \begin_layout Plain Layout
16246 LangPreamble
16247 \end_layout
16248
16249 \end_inset
16250
16251  and 
16252 \begin_inset Flex Code
16253 status collapsed
16254
16255 \begin_layout Plain Layout
16256 BabelPreamble
16257 \end_layout
16258
16259 \end_inset
16260
16261  to support non-English and even multi-language documents correctly.
16262  The following excerpt (from the 
16263 \begin_inset Flex Code
16264 status collapsed
16265
16266 \begin_layout Plain Layout
16267 theorems-ams.inc
16268 \end_layout
16269
16270 \end_inset
16271
16272  file) shows how this works:
16273 \end_layout
16274
16275 \begin_layout LyX-Code
16276 Preamble
16277 \end_layout
16278
16279 \begin_deeper
16280 \begin_layout LyX-Code
16281   
16282 \backslash
16283 theoremstyle{remark}
16284 \end_layout
16285
16286 \begin_layout LyX-Code
16287   
16288 \backslash
16289 newtheorem{claim}[thm]{
16290 \backslash
16291 protect
16292 \backslash
16293 claimname}
16294 \end_layout
16295
16296 \begin_layout LyX-Code
16297 EndPreamble
16298 \end_layout
16299
16300 \begin_layout LyX-Code
16301 LangPreamble
16302 \end_layout
16303
16304 \begin_layout LyX-Code
16305   
16306 \backslash
16307 providecommand{
16308 \backslash
16309 claimname}{_(Claim)}
16310 \end_layout
16311
16312 \begin_layout LyX-Code
16313 EndLangPreamble
16314 \end_layout
16315
16316 \begin_layout LyX-Code
16317 BabelPreamble
16318 \end_layout
16319
16320 \begin_layout LyX-Code
16321     
16322 \backslash
16323 addto
16324 \backslash
16325 captions$$lang{
16326 \backslash
16327 renewcommand{
16328 \backslash
16329 claimname}{_(Claim)}}
16330 \end_layout
16331
16332 \begin_layout LyX-Code
16333 EndBabelPreamble
16334 \end_layout
16335
16336 \end_deeper
16337 \begin_layout Standard
16338 In principle, any legal \SpecialChar LaTeX
16339  may appear in the 
16340 \begin_inset Flex Code
16341 status collapsed
16342
16343 \begin_layout Plain Layout
16344 LangPreamble
16345 \end_layout
16346
16347 \end_inset
16348
16349  and 
16350 \begin_inset Flex Code
16351 status collapsed
16352
16353 \begin_layout Plain Layout
16354 BabelPreamble
16355 \end_layout
16356
16357 \end_inset
16358
16359  tags, but in practice they will typically look as they do here.
16360  The key to correct translation of the typeset text is the definition of
16361  the \SpecialChar LaTeX
16362  command 
16363 \begin_inset Flex Code
16364 status collapsed
16365
16366 \begin_layout Plain Layout
16367
16368 \backslash
16369 claimname
16370 \end_layout
16371
16372 \end_inset
16373
16374  and its use in 
16375 \begin_inset Flex Code
16376 status collapsed
16377
16378 \begin_layout Plain Layout
16379
16380 \backslash
16381 newtheorem
16382 \end_layout
16383
16384 \end_inset
16385
16386 .
16387  
16388 \end_layout
16389
16390 \begin_layout Standard
16391 The 
16392 \begin_inset Flex Code
16393 status collapsed
16394
16395 \begin_layout Plain Layout
16396 LangPreamble
16397 \end_layout
16398
16399 \end_inset
16400
16401  tag provides for internationalization based upon the overall language of
16402  the document.
16403  The contents of the tag will be included in the preamble, just as with
16404  the 
16405 \begin_inset Flex Code
16406 status collapsed
16407
16408 \begin_layout Plain Layout
16409 Preamble
16410 \end_layout
16411
16412 \end_inset
16413
16414  tag.
16415  What makes it special is the use of the 
16416 \begin_inset Quotes eld
16417 \end_inset
16418
16419 function
16420 \begin_inset Quotes erd
16421 \end_inset
16422
16423  
16424 \begin_inset Flex Code
16425 status collapsed
16426
16427 \begin_layout Plain Layout
16428 _()
16429 \end_layout
16430
16431 \end_inset
16432
16433 , which will be replaced, when \SpecialChar LyX
16434  produces \SpecialChar LaTeX
16435  output, with the translation of
16436  its argument into the document language.
16437 \end_layout
16438
16439 \begin_layout Standard
16440 The 
16441 \begin_inset Flex Code
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445 BabelPreamble
16446 \end_layout
16447
16448 \end_inset
16449
16450  tag is more complex, since it is meant to provide support for multi-language
16451  documents and so offers an interface to the 
16452 \begin_inset Flex Code
16453 status collapsed
16454
16455 \begin_layout Plain Layout
16456 babel
16457 \end_layout
16458
16459 \end_inset
16460
16461  package.
16462  Its contents will be added to the preamble once for each language that
16463  appears in the document.
16464  In this case, the argument to 
16465 \begin_inset Flex Code
16466 status collapsed
16467
16468 \begin_layout Plain Layout
16469 _()
16470 \end_layout
16471
16472 \end_inset
16473
16474  will be replaced with its translation into the language in question; the
16475  expression 
16476 \begin_inset Flex Code
16477 status collapsed
16478
16479 \begin_layout Plain Layout
16480 $$lang
16481 \end_layout
16482
16483 \end_inset
16484
16485  is replaced by the language name (as used by the babel package).
16486 \end_layout
16487
16488 \begin_layout Standard
16489 A German document that also included a French section would thus have the
16490  following in the preamble:
16491 \end_layout
16492
16493 \begin_layout LyX-Code
16494
16495 \backslash
16496 addto
16497 \backslash
16498 captionsfrench{
16499 \backslash
16500 renewcommand{
16501 \backslash
16502 claimname}{Affirmation}}
16503 \begin_inset Newline newline
16504 \end_inset
16505
16506
16507 \backslash
16508 addto
16509 \backslash
16510 captionsngerman{
16511 \backslash
16512 renewcommand{
16513 \backslash
16514 claimname}{Behauptung}}
16515 \begin_inset Newline newline
16516 \end_inset
16517
16518
16519 \backslash
16520 providecommand{
16521 \backslash
16522 claimname}{Behauptung}
16523 \end_layout
16524
16525 \begin_layout Standard
16526 \SpecialChar LaTeX
16527  and 
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 babel
16533 \end_layout
16534
16535 \end_inset
16536
16537  will then conspire to produce the correct text in the output.
16538 \end_layout
16539
16540 \begin_layout Standard
16541 One important point to note here is that the translations are provided by
16542  \SpecialChar LyX
16543  itself, through the file 
16544 \begin_inset Flex Code
16545 status collapsed
16546
16547 \begin_layout Plain Layout
16548 layouttranslations
16549 \end_layout
16550
16551 \end_inset
16552
16553 .
16554  This means, in effect, that 
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559 LangPreamble
16560 \end_layout
16561
16562 \end_inset
16563
16564  and 
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 BabelPreamble
16570 \end_layout
16571
16572 \end_inset
16573
16574  are really only of use in layout files that are provided with \SpecialChar LyX
16575 , since text
16576  entered in user-created layout files will not be seen by \SpecialChar LyX
16577 's internationalizatio
16578 n routines unless the 
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 layouttranslations
16584 \end_layout
16585
16586 \end_inset
16587
16588  file is modified accordingly.
16589  That said, however, any layout created with the intention that it will
16590  be included with \SpecialChar LyX
16591  should use these tags where appropriate.
16592  Please note that the paragraph style translations provided by \SpecialChar LyX
16593  will never
16594  change with a minor update (e.
16595 \begin_inset space \thinspace{}
16596 \end_inset
16597
16598 g.
16599 \begin_inset space \space{}
16600 \end_inset
16601
16602 from version 2.1.x to 2.1.y).
16603  It is however quite likely that a major update (e.
16604 \begin_inset space \thinspace{}
16605 \end_inset
16606
16607 g.
16608 \begin_inset space \space{}
16609 \end_inset
16610
16611 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16612 \end_layout
16613
16614 \begin_layout Subsection
16615 Floats
16616 \begin_inset CommandInset label
16617 LatexCommand label
16618 name "subsec:Floats"
16619
16620 \end_inset
16621
16622
16623 \end_layout
16624
16625 \begin_layout Standard
16626 It is necessary to define the floats (
16627 \begin_inset Flex Noun
16628 status collapsed
16629
16630 \begin_layout Plain Layout
16631 figure
16632 \end_layout
16633
16634 \end_inset
16635
16636
16637 \begin_inset Flex Noun
16638 status collapsed
16639
16640 \begin_layout Plain Layout
16641 table
16642 \end_layout
16643
16644 \end_inset
16645
16646 , \SpecialChar ldots
16647 ) in the text class itself.
16648  Standard floats are included in the file 
16649 \begin_inset Flex Code
16650 status collapsed
16651
16652 \begin_layout Plain Layout
16653 stdfloats.inc
16654 \end_layout
16655
16656 \end_inset
16657
16658 , so you may have to do no more than add
16659 \end_layout
16660
16661 \begin_layout LyX-Code
16662 Input stdfloats.inc
16663 \end_layout
16664
16665 \begin_layout Standard
16666 to your layout file.
16667  If you want to implement a text class that proposes some other float types
16668  (like the AGU class bundled with \SpecialChar LyX
16669 ), the information below will hopefully
16670  help you:
16671 \end_layout
16672
16673 \begin_layout Description
16674 \begin_inset Flex Code
16675 status collapsed
16676
16677 \begin_layout Plain Layout
16678 AllowedPlacement
16679 \end_layout
16680
16681 \end_inset
16682
16683  [
16684 \begin_inset Flex Code
16685 status collapsed
16686
16687 \begin_layout Plain Layout
16688 string
16689 \end_layout
16690
16691 \end_inset
16692
16693 =!htbpH] Allowed placement options for this float type.
16694  The value is a string of placement characters.
16695  Possible characters include: 
16696 \emph on
16697 h
16698 \emph default
16699  (
16700 \begin_inset Quotes eld
16701 \end_inset
16702
16703 here if possible
16704 \begin_inset Quotes erd
16705 \end_inset
16706
16707 ), 
16708 \emph on
16709 t
16710 \emph default
16711  (
16712 \begin_inset Quotes eld
16713 \end_inset
16714
16715 top of page
16716 \begin_inset Quotes erd
16717 \end_inset
16718
16719 ), 
16720 \emph on
16721 b
16722 \emph default
16723  (
16724 \begin_inset Quotes eld
16725 \end_inset
16726
16727 bottom of page
16728 \begin_inset Quotes erd
16729 \end_inset
16730
16731 ), 
16732 \emph on
16733 p
16734 \emph default
16735  (
16736 \begin_inset Quotes eld
16737 \end_inset
16738
16739 page of floats
16740 \begin_inset Quotes erd
16741 \end_inset
16742
16743 ), 
16744 \emph on
16745 H
16746 \emph default
16747  (
16748 \begin_inset Quotes eld
16749 \end_inset
16750
16751 here definitely
16752 \begin_inset Quotes erd
16753 \end_inset
16754
16755 ) and 
16756 \emph on
16757 !
16758 \emph default
16759  (
16760 \begin_inset Quotes eld
16761 \end_inset
16762
16763 ignore LaTeX rules
16764 \begin_inset Quotes erd
16765 \end_inset
16766
16767 ).
16768  The order of the characters in the string does not matter.
16769  If no placement options are allowed, use the string 
16770 \emph on
16771 none
16772 \emph default
16773 .
16774 \end_layout
16775
16776 \begin_layout Description
16777 \begin_inset Flex Code
16778 status collapsed
16779
16780 \begin_layout Plain Layout
16781 AllowsSideways
16782 \end_layout
16783
16784 \end_inset
16785
16786  [
16787 \begin_inset Flex Code
16788 status collapsed
16789
16790 \begin_layout Plain Layout
16791
16792 \emph off
16793 0
16794 \end_layout
16795
16796 \end_inset
16797
16798 ,
16799 \begin_inset space \thinspace{}
16800 \end_inset
16801
16802
16803 \emph on
16804
16805 \begin_inset Flex Code
16806 status collapsed
16807
16808 \begin_layout Plain Layout
16809
16810 \emph on
16811 1
16812 \end_layout
16813
16814 \end_inset
16815
16816
16817 \emph default
16818 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
16819 -package 
16820 \family typewriter
16821 rotfloat
16822 \family default
16823  (sidewaysfloat).
16824  Set to 
16825 \begin_inset Flex Code
16826 status collapsed
16827
16828 \begin_layout Plain Layout
16829 0
16830 \end_layout
16831
16832 \end_inset
16833
16834  if the float does not support this feature.
16835 \end_layout
16836
16837 \begin_layout Description
16838 \begin_inset Flex Code
16839 status collapsed
16840
16841 \begin_layout Plain Layout
16842 AllowsWide
16843 \end_layout
16844
16845 \end_inset
16846
16847  [
16848 \begin_inset Flex Code
16849 status collapsed
16850
16851 \begin_layout Plain Layout
16852
16853 \emph off
16854 0
16855 \end_layout
16856
16857 \end_inset
16858
16859 ,
16860 \begin_inset space \thinspace{}
16861 \end_inset
16862
16863
16864 \emph on
16865
16866 \begin_inset Flex Code
16867 status collapsed
16868
16869 \begin_layout Plain Layout
16870
16871 \emph on
16872 1
16873 \end_layout
16874
16875 \end_inset
16876
16877
16878 \emph default
16879 ] Defines whether the float has a starred variant that spans columns in
16880  a two column paragraph.
16881  Set to 
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 0
16887 \end_layout
16888
16889 \end_inset
16890
16891  if the float does not support this feature.
16892 \end_layout
16893
16894 \begin_layout Description
16895 \begin_inset Flex Code
16896 status collapsed
16897
16898 \begin_layout Plain Layout
16899 Extension
16900 \end_layout
16901
16902 \end_inset
16903
16904  [
16905 \begin_inset Flex Code
16906 status collapsed
16907
16908 \begin_layout Plain Layout
16909 string
16910 \end_layout
16911
16912 \end_inset
16913
16914 =
16915 \begin_inset Quotes erd
16916 \end_inset
16917
16918
16919 \begin_inset Quotes erd
16920 \end_inset
16921
16922 ] The file name extension of an auxiliary file for the list of figures (or
16923  whatever).
16924  \SpecialChar LaTeX
16925  writes the captions to this file.
16926 \end_layout
16927
16928 \begin_layout Description
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933 GuiName
16934 \end_layout
16935
16936 \end_inset
16937
16938  [
16939 \begin_inset Flex Code
16940 status collapsed
16941
16942 \begin_layout Plain Layout
16943 string
16944 \end_layout
16945
16946 \end_inset
16947
16948 =
16949 \begin_inset Quotes erd
16950 \end_inset
16951
16952
16953 \begin_inset Quotes erd
16954 \end_inset
16955
16956 ] The string that will be used in the menus and also for the caption.
16957  This is translated to the current language if babel is used.
16958 \end_layout
16959
16960 \begin_layout Description
16961 \begin_inset Flex Code
16962 status collapsed
16963
16964 \begin_layout Plain Layout
16965 HTML*
16966 \end_layout
16967
16968 \end_inset
16969
16970  These tags control the XHTML output.
16971  See 
16972 \begin_inset CommandInset ref
16973 LatexCommand ref
16974 reference "sec:Tags-for-XHTML"
16975
16976 \end_inset
16977
16978 .
16979 \end_layout
16980
16981 \begin_layout Description
16982 \begin_inset Flex Code
16983 status collapsed
16984
16985 \begin_layout Plain Layout
16986 IsPredefined
16987 \end_layout
16988
16989 \end_inset
16990
16991  [
16992 \emph on
16993
16994 \begin_inset Flex Code
16995 status collapsed
16996
16997 \begin_layout Plain Layout
16998 0
16999 \end_layout
17000
17001 \end_inset
17002
17003
17004 \emph default
17005 ,
17006 \begin_inset space \thinspace{}
17007 \end_inset
17008
17009
17010 \begin_inset Flex Code
17011 status collapsed
17012
17013 \begin_layout Plain Layout
17014 1
17015 \end_layout
17016
17017 \end_inset
17018
17019 ] Indicates whether the float is already defined in the document class or
17020  if instead the \SpecialChar LaTeX
17021  package 
17022 \begin_inset Flex Code
17023 status collapsed
17024
17025 \begin_layout Plain Layout
17026 float
17027 \end_layout
17028
17029 \end_inset
17030
17031  needs to be loaded to define it on-the-fly.
17032  The default is 
17033 \begin_inset Flex Code
17034 status collapsed
17035
17036 \begin_layout Plain Layout
17037 0
17038 \end_layout
17039
17040 \end_inset
17041
17042 , which means: 
17043 \begin_inset Flex Code
17044 status collapsed
17045
17046 \begin_layout Plain Layout
17047 float
17048 \end_layout
17049
17050 \end_inset
17051
17052  is used.
17053  It should be set to 
17054 \begin_inset Flex Code
17055 status collapsed
17056
17057 \begin_layout Plain Layout
17058 1
17059 \end_layout
17060
17061 \end_inset
17062
17063  if the float is already defined by the \SpecialChar LaTeX
17064  document class.
17065 \end_layout
17066
17067 \begin_layout Description
17068 \begin_inset Flex Code
17069 status collapsed
17070
17071 \begin_layout Plain Layout
17072 ListCommand
17073 \end_layout
17074
17075 \end_inset
17076
17077  [
17078 \begin_inset Flex Code
17079 status collapsed
17080
17081 \begin_layout Plain Layout
17082 string
17083 \end_layout
17084
17085 \end_inset
17086
17087 =
17088 \begin_inset Quotes erd
17089 \end_inset
17090
17091
17092 \begin_inset Quotes erd
17093 \end_inset
17094
17095 ] The command used to generate a list of floats of this type; the leading
17096  `
17097 \backslash
17098 ' must be omitted.
17099  This 
17100 \emph on
17101 must
17102 \emph default
17103  be given if 
17104 \begin_inset Flex Code
17105 status collapsed
17106
17107 \begin_layout Plain Layout
17108 UsesFloatPkg
17109 \end_layout
17110
17111 \end_inset
17112
17113  is false, since there is no standard way to generate this command.
17114  It is ignored if 
17115 \begin_inset Flex Code
17116 status collapsed
17117
17118 \begin_layout Plain Layout
17119 UsesFloatPkg
17120 \end_layout
17121
17122 \end_inset
17123
17124  is true, since in that case there is a standard way to define the command.
17125 \end_layout
17126
17127 \begin_layout Description
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132 ListName
17133 \end_layout
17134
17135 \end_inset
17136
17137  [
17138 \begin_inset Flex Code
17139 status collapsed
17140
17141 \begin_layout Plain Layout
17142 string
17143 \end_layout
17144
17145 \end_inset
17146
17147 =
17148 \begin_inset Quotes erd
17149 \end_inset
17150
17151
17152 \begin_inset Quotes erd
17153 \end_inset
17154
17155 ] A title for a list of floats of this kind (list of figures, tables, or
17156  whatever).
17157  It is used for the screen label within \SpecialChar LyX
17158 , it is used by \SpecialChar LaTeX
17159  for the title and
17160  it is used as the title in the XHTML output.
17161  It will be translated to the document language.
17162 \end_layout
17163
17164 \begin_layout Description
17165 \begin_inset Flex Code
17166 status collapsed
17167
17168 \begin_layout Plain Layout
17169 NumberWithin
17170 \end_layout
17171
17172 \end_inset
17173
17174  [
17175 \begin_inset Flex Code
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 string
17180 \end_layout
17181
17182 \end_inset
17183
17184 =
17185 \begin_inset Quotes erd
17186 \end_inset
17187
17188
17189 \begin_inset Quotes erd
17190 \end_inset
17191
17192 ] This (optional) argument determines whether floats of this class will
17193  be numbered within some sectional unit of the document.
17194  For example, if 
17195 \begin_inset Flex Code
17196 status collapsed
17197
17198 \begin_layout Plain Layout
17199 NumberWithin
17200 \end_layout
17201
17202 \end_inset
17203
17204  is set to 
17205 \begin_inset Quotes eld
17206 \end_inset
17207
17208
17209 \begin_inset Flex Code
17210 status collapsed
17211
17212 \begin_layout Plain Layout
17213 chapter
17214 \end_layout
17215
17216 \end_inset
17217
17218
17219 \begin_inset Quotes erd
17220 \end_inset
17221
17222 , the floats will be numbered within chapters.
17223  
17224 \end_layout
17225
17226 \begin_layout Description
17227 \begin_inset Flex Code
17228 status collapsed
17229
17230 \begin_layout Plain Layout
17231 Placement
17232 \end_layout
17233
17234 \end_inset
17235
17236  [
17237 \begin_inset Flex Code
17238 status collapsed
17239
17240 \begin_layout Plain Layout
17241 string
17242 \end_layout
17243
17244 \end_inset
17245
17246 =
17247 \begin_inset Quotes erd
17248 \end_inset
17249
17250
17251 \begin_inset Quotes erd
17252 \end_inset
17253
17254 ] The default placement for the given class of floats.
17255  The string should be as in standard \SpecialChar LaTeX
17256
17257 \begin_inset Flex Code
17258 status collapsed
17259
17260 \begin_layout Plain Layout
17261 t
17262 \end_layout
17263
17264 \end_inset
17265
17266
17267 \begin_inset Flex Code
17268 status collapsed
17269
17270 \begin_layout Plain Layout
17271 b
17272 \end_layout
17273
17274 \end_inset
17275
17276
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 p
17282 \end_layout
17283
17284 \end_inset
17285
17286  and 
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 h
17292 \end_layout
17293
17294 \end_inset
17295
17296  for top, bottom, page, and here, respectively.
17297 \begin_inset Foot
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 Note that the order of these letters in the string is irrelevant, like in
17302  \SpecialChar LaTeX
17303 .
17304 \end_layout
17305
17306 \end_inset
17307
17308  On top of that there is a new type, 
17309 \begin_inset Flex Code
17310 status collapsed
17311
17312 \begin_layout Plain Layout
17313 H
17314 \end_layout
17315
17316 \end_inset
17317
17318 , which does not really correspond to a float, since it means: put it 
17319 \begin_inset Quotes eld
17320 \end_inset
17321
17322 here
17323 \begin_inset Quotes erd
17324 \end_inset
17325
17326  and nowhere else.
17327  Note however that the 
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332 H
17333 \end_layout
17334
17335 \end_inset
17336
17337  specifier is special and, because of implementation details, cannot be
17338  used in non-built in float types.
17339  If you do not understand what this means, just use 
17340 \begin_inset Quotes eld
17341 \end_inset
17342
17343
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 tbp
17349 \end_layout
17350
17351 \end_inset
17352
17353
17354 \begin_inset Quotes erd
17355 \end_inset
17356
17357 .
17358 \end_layout
17359
17360 \begin_layout Description
17361 \begin_inset Flex Code
17362 status collapsed
17363
17364 \begin_layout Plain Layout
17365 RefPrefix
17366 \end_layout
17367
17368 \end_inset
17369
17370  [
17371 \begin_inset Flex Code
17372 status collapsed
17373
17374 \begin_layout Plain Layout
17375 string
17376 \end_layout
17377
17378 \end_inset
17379
17380 ] The prefix to use when creating labels referring to floats of this type.
17381  This allows the use of formatted references.
17382  Note that you can remove any 
17383 \begin_inset Flex Code
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387 RefPrefix
17388 \end_layout
17389
17390 \end_inset
17391
17392  set by a copied style by using the special value 
17393 \begin_inset Quotes eld
17394 \end_inset
17395
17396 OFF
17397 \begin_inset Quotes erd
17398 \end_inset
17399
17400 , which must be all caps.
17401 \end_layout
17402
17403 \begin_layout Description
17404 \begin_inset Flex Code
17405 status collapsed
17406
17407 \begin_layout Plain Layout
17408 Style
17409 \end_layout
17410
17411 \end_inset
17412
17413  [
17414 \begin_inset Flex Code
17415 status collapsed
17416
17417 \begin_layout Plain Layout
17418 string
17419 \end_layout
17420
17421 \end_inset
17422
17423 =
17424 \begin_inset Quotes erd
17425 \end_inset
17426
17427
17428 \begin_inset Quotes erd
17429 \end_inset
17430
17431 ] The style used when defining the float using 
17432 \begin_inset Flex Code
17433 status collapsed
17434
17435 \begin_layout Plain Layout
17436
17437 \backslash
17438 newfloat
17439 \end_layout
17440
17441 \end_inset
17442
17443 .
17444 \end_layout
17445
17446 \begin_layout Description
17447 \begin_inset Flex Code
17448 status collapsed
17449
17450 \begin_layout Plain Layout
17451 Type
17452 \end_layout
17453
17454 \end_inset
17455
17456  [
17457 \begin_inset Flex Code
17458 status collapsed
17459
17460 \begin_layout Plain Layout
17461 string
17462 \end_layout
17463
17464 \end_inset
17465
17466 =
17467 \begin_inset Quotes erd
17468 \end_inset
17469
17470
17471 \begin_inset Quotes erd
17472 \end_inset
17473
17474 ] The 
17475 \begin_inset Quotes eld
17476 \end_inset
17477
17478 type
17479 \begin_inset Quotes erd
17480 \end_inset
17481
17482  of the new class of floats, like program or algorithm.
17483  After the appropriate 
17484 \begin_inset Flex Code
17485 status collapsed
17486
17487 \begin_layout Plain Layout
17488
17489 \backslash
17490 newfloat
17491 \end_layout
17492
17493 \end_inset
17494
17495 , commands such as 
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500
17501 \backslash
17502 begin{program}
17503 \end_layout
17504
17505 \end_inset
17506
17507  or 
17508 \begin_inset Flex Code
17509 status collapsed
17510
17511 \begin_layout Plain Layout
17512
17513 \backslash
17514 end{algorithm*}
17515 \end_layout
17516
17517 \end_inset
17518
17519  will be available.
17520 \end_layout
17521
17522 \begin_layout Description
17523 \begin_inset Flex Code
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527 UsesFloatPkg
17528 \end_layout
17529
17530 \end_inset
17531
17532  [
17533 \begin_inset Flex Code
17534 status collapsed
17535
17536 \begin_layout Plain Layout
17537 0
17538 \end_layout
17539
17540 \end_inset
17541
17542 ,
17543 \begin_inset space \thinspace{}
17544 \end_inset
17545
17546
17547 \begin_inset Flex Code
17548 status collapsed
17549
17550 \begin_layout Plain Layout
17551
17552 \emph on
17553 1
17554 \end_layout
17555
17556 \end_inset
17557
17558 ] Specifies whether this float is defined using the \SpecialChar LaTeX
17559  package 
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 float
17565 \end_layout
17566
17567 \end_inset
17568
17569 , either by the class file, another package or on-the-fly by \SpecialChar LyX
17570  itself.
17571 \end_layout
17572
17573 \begin_layout Standard
17574 Note that defining a float with type 
17575 \begin_inset Flex Code
17576 status collapsed
17577
17578 \begin_layout Plain Layout
17579
17580 \emph on
17581 type
17582 \end_layout
17583
17584 \end_inset
17585
17586  automatically defines the corresponding counter with name 
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591
17592 \emph on
17593 type
17594 \end_layout
17595
17596 \end_inset
17597
17598 .
17599 \end_layout
17600
17601 \begin_layout Subsection
17602 Flex insets and InsetLayout
17603 \begin_inset CommandInset label
17604 LatexCommand label
17605 name "subsec:Flex-insets-and"
17606
17607 \end_inset
17608
17609
17610 \end_layout
17611
17612 \begin_layout Standard
17613 Flex insets come in three different kinds: 
17614 \end_layout
17615
17616 \begin_layout Itemize
17617 character style (
17618 \begin_inset Flex Code
17619 status collapsed
17620
17621 \begin_layout Plain Layout
17622 CharStyle
17623 \end_layout
17624
17625 \end_inset
17626
17627 ): These define semantic markup corresponding to such \SpecialChar LaTeX
17628  commands as 
17629 \begin_inset Flex Code
17630 status collapsed
17631
17632 \begin_layout Plain Layout
17633
17634 \backslash
17635 noun
17636 \end_layout
17637
17638 \end_inset
17639
17640  and 
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645
17646 \backslash
17647 code
17648 \end_layout
17649
17650 \end_inset
17651
17652 .
17653 \end_layout
17654
17655 \begin_layout Itemize
17656 user custom (
17657 \begin_inset Flex Code
17658 status collapsed
17659
17660 \begin_layout Plain Layout
17661 Custom
17662 \end_layout
17663
17664 \end_inset
17665
17666 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
17667  code,
17668  footnote, and the like.
17669  An obvious example is an endnote inset, which is defined in the 
17670 \begin_inset Flex Code
17671 status collapsed
17672
17673 \begin_layout Plain Layout
17674 endnote
17675 \end_layout
17676
17677 \end_inset
17678
17679  module.
17680 \end_layout
17681
17682 \begin_layout Itemize
17683 XML elements (
17684 \begin_inset Flex Code
17685 status collapsed
17686
17687 \begin_layout Plain Layout
17688 Element
17689 \end_layout
17690
17691 \end_inset
17692
17693 ): For use with DocBook classes.
17694 \end_layout
17695
17696 \begin_layout Standard
17697 Flex insets are defined using the 
17698 \begin_inset Flex Code
17699 status collapsed
17700
17701 \begin_layout Plain Layout
17702 InsetLayout
17703 \end_layout
17704
17705 \end_inset
17706
17707  tag, which shall be explained in a moment.
17708 \end_layout
17709
17710 \begin_layout Standard
17711 The 
17712 \begin_inset Flex Code
17713 status collapsed
17714
17715 \begin_layout Plain Layout
17716 InsetLayout
17717 \end_layout
17718
17719 \end_inset
17720
17721  tag also serves another function: It can be used to customize the general
17722  layout of many different types of insets.
17723  Currently, 
17724 \begin_inset Flex Code
17725 status collapsed
17726
17727 \begin_layout Plain Layout
17728 InsetLayout
17729 \end_layout
17730
17731 \end_inset
17732
17733  can be used to customize the layout parameters for footnotes, marginal
17734  notes, note insets, \SpecialChar TeX
17735  code (ERT) insets, branches, listings, indexes, boxes,
17736  tables, algorithms, URLs, and captions, as well as to define Flex insets.
17737 \end_layout
17738
17739 \begin_layout Standard
17740 The 
17741 \begin_inset Flex Code
17742 status collapsed
17743
17744 \begin_layout Plain Layout
17745 InsetLayout
17746 \end_layout
17747
17748 \end_inset
17749
17750  definition must begin with a line of the form:
17751 \end_layout
17752
17753 \begin_layout LyX-Code
17754 InsetLayout <type>
17755 \end_layout
17756
17757 \begin_layout Standard
17758 Here 
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763 <Type>
17764 \end_layout
17765
17766 \end_inset
17767
17768  indicates the inset whose layout is being defined, and here there are four
17769  cases.
17770 \end_layout
17771
17772 \begin_layout Enumerate
17773 The layout for a pre-existing inset is being modified.
17774  In this case, can be 
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 <Type>
17780 \end_layout
17781
17782 \end_inset
17783
17784  any one of the following: 
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789 Algorithm
17790 \end_layout
17791
17792 \end_inset
17793
17794
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799 Branch
17800 \end_layout
17801
17802 \end_inset
17803
17804
17805 \begin_inset Flex Code
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809 Box
17810 \end_layout
17811
17812 \end_inset
17813
17814
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 Box:shaded
17820 \end_layout
17821
17822 \end_inset
17823
17824
17825 \begin_inset Flex Code
17826 status collapsed
17827
17828 \begin_layout Plain Layout
17829 Caption:Standard
17830 \end_layout
17831
17832 \end_inset
17833
17834
17835 \begin_inset Flex Code
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 ERT
17840 \end_layout
17841
17842 \end_inset
17843
17844
17845 \begin_inset Flex Code
17846 status collapsed
17847
17848 \begin_layout Plain Layout
17849 Figure
17850 \end_layout
17851
17852 \end_inset
17853
17854
17855 \begin_inset Flex Code
17856 status collapsed
17857
17858 \begin_layout Plain Layout
17859 Foot
17860 \end_layout
17861
17862 \end_inset
17863
17864
17865 \begin_inset Flex Code
17866 status collapsed
17867
17868 \begin_layout Plain Layout
17869 Index
17870 \end_layout
17871
17872 \end_inset
17873
17874
17875 \begin_inset Flex Code
17876 status collapsed
17877
17878 \begin_layout Plain Layout
17879 Info
17880 \end_layout
17881
17882 \end_inset
17883
17884
17885 \begin_inset Flex Code
17886 status collapsed
17887
17888 \begin_layout Plain Layout
17889 Info:menu
17890 \end_layout
17891
17892 \end_inset
17893
17894
17895 \begin_inset Flex Code
17896 status collapsed
17897
17898 \begin_layout Plain Layout
17899 Info:shortcut
17900 \end_layout
17901
17902 \end_inset
17903
17904
17905 \begin_inset Flex Code
17906 status collapsed
17907
17908 \begin_layout Plain Layout
17909 Info:shortcuts
17910 \end_layout
17911
17912 \end_inset
17913
17914
17915 \begin_inset Flex Code
17916 status collapsed
17917
17918 \begin_layout Plain Layout
17919 Listings
17920 \end_layout
17921
17922 \end_inset
17923
17924
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 Marginal
17930 \end_layout
17931
17932 \end_inset
17933
17934
17935 \begin_inset Flex Code
17936 status collapsed
17937
17938 \begin_layout Plain Layout
17939 Note:Comment
17940 \end_layout
17941
17942 \end_inset
17943
17944
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 Note:Note
17950 \end_layout
17951
17952 \end_inset
17953
17954
17955 \begin_inset Flex Code
17956 status collapsed
17957
17958 \begin_layout Plain Layout
17959 Note:Greyedout
17960 \end_layout
17961
17962 \end_inset
17963
17964
17965 \begin_inset Flex Code
17966 status collapsed
17967
17968 \begin_layout Plain Layout
17969 Table
17970 \end_layout
17971
17972 \end_inset
17973
17974 , or 
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 URL
17980 \end_layout
17981
17982 \end_inset
17983
17984 .
17985 \end_layout
17986
17987 \begin_layout Enumerate
17988 The layout for a Flex inset is being defined.
17989  In this case, 
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 <Type>
17995 \end_layout
17996
17997 \end_inset
17998
17999  must be of the form 
18000 \begin_inset Quotes eld
18001 \end_inset
18002
18003
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008 Flex:<name>
18009 \end_layout
18010
18011 \end_inset
18012
18013
18014 \begin_inset Quotes erd
18015 \end_inset
18016
18017 , where 
18018 \begin_inset Flex Code
18019 status collapsed
18020
18021 \begin_layout Plain Layout
18022 name
18023 \end_layout
18024
18025 \end_inset
18026
18027  may be be any valid identifier not used by a pre-existing Flex inset.
18028  The identifier may include spaces, but in that case the whole thing must
18029  be wrapped in quotes.
18030  Note that the definition of a flex inset 
18031 \emph on
18032 must 
18033 \emph default
18034 also include a 
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 LyXType
18040 \end_layout
18041
18042 \end_inset
18043
18044  entry, declaring which type of inset it defines.
18045 \end_layout
18046
18047 \begin_layout Enumerate
18048 The layout for user specific branch is being defined.
18049  In this case, 
18050 \begin_inset Flex Code
18051 status collapsed
18052
18053 \begin_layout Plain Layout
18054 <Type>
18055 \end_layout
18056
18057 \end_inset
18058
18059  must be of the form 
18060 \begin_inset Quotes eld
18061 \end_inset
18062
18063
18064 \begin_inset Flex Code
18065 status collapsed
18066
18067 \begin_layout Plain Layout
18068 Branch:<name>
18069 \end_layout
18070
18071 \end_inset
18072
18073
18074 \begin_inset Quotes erd
18075 \end_inset
18076
18077 , where 
18078 \begin_inset Flex Code
18079 status collapsed
18080
18081 \begin_layout Plain Layout
18082 name
18083 \end_layout
18084
18085 \end_inset
18086
18087  may be be any valid identifier of branch defined in user's document.
18088  The identifier may include spaces, but in that case the whole thing must
18089  be wrapped in quotes.
18090  The main purpose of this feature is to allow \SpecialChar LaTeX
18091  wrapping around specific
18092  branches as user needs.
18093 \end_layout
18094
18095 \begin_layout Enumerate
18096 The layout of a user (or class) specific caption is being defined.
18097  In this case, 
18098 \begin_inset Flex Code
18099 status collapsed
18100
18101 \begin_layout Plain Layout
18102 <Type>
18103 \end_layout
18104
18105 \end_inset
18106
18107  must be of the form 
18108 \begin_inset Quotes eld
18109 \end_inset
18110
18111
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 Caption:<name>
18117 \end_layout
18118
18119 \end_inset
18120
18121
18122 \begin_inset Quotes erd
18123 \end_inset
18124
18125 , where 
18126 \begin_inset Flex Code
18127 status collapsed
18128
18129 \begin_layout Plain Layout
18130 name
18131 \end_layout
18132
18133 \end_inset
18134
18135  specifies the name of the caption as it appears in the menu.
18136  Have a look at the standard caption (
18137 \begin_inset Flex Code
18138 status collapsed
18139
18140 \begin_layout Plain Layout
18141 Caption:Standard
18142 \end_layout
18143
18144 \end_inset
18145
18146 ), the specific captions of the KOMA-Script classes (
18147 \begin_inset Flex Code
18148 status collapsed
18149
18150 \begin_layout Plain Layout
18151 Caption:Above
18152 \end_layout
18153
18154 \end_inset
18155
18156
18157 \begin_inset Flex Code
18158 status collapsed
18159
18160 \begin_layout Plain Layout
18161 Caption:Below
18162 \end_layout
18163
18164 \end_inset
18165
18166 ) or the module 
18167 \family sans
18168 Multilingual
18169 \begin_inset space ~
18170 \end_inset
18171
18172 Captions
18173 \begin_inset Newline linebreak
18174 \end_inset
18175
18176
18177 \family default
18178 (
18179 \begin_inset Flex Code
18180 status collapsed
18181
18182 \begin_layout Plain Layout
18183 Caption:Bicaption
18184 \end_layout
18185
18186 \end_inset
18187
18188 ) for applications.
18189 \end_layout
18190
18191 \begin_layout Standard
18192 The 
18193 \begin_inset Flex Code
18194 status collapsed
18195
18196 \begin_layout Plain Layout
18197 InsetLayout
18198 \end_layout
18199
18200 \end_inset
18201
18202  definition can contain the following entries:
18203 \end_layout
18204
18205 \begin_layout Description
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 AddToToc
18211 \end_layout
18212
18213 \end_inset
18214
18215  [
18216 \begin_inset Flex Code
18217 status collapsed
18218
18219 \begin_layout Plain Layout
18220 string
18221 \end_layout
18222
18223 \end_inset
18224
18225 =""] This inset will appear in the table of contents of the given type.
18226  An empty string disables.
18227  See also the OutlinerName and the IsTocCaption commands.
18228  This is only implemented for Flex insets.
18229  Default: disabled.
18230 \end_layout
18231
18232 \begin_layout Description
18233 \begin_inset Flex Code
18234 status collapsed
18235
18236 \begin_layout Plain Layout
18237 Argument
18238 \end_layout
18239
18240 \end_inset
18241
18242  [
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247 int
18248 \end_layout
18249
18250 \end_inset
18251
18252 ] Defines argument number of a command\SpecialChar breakableslash
18253 environment associated with the current
18254  layout.
18255  The definition must end with 
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260 EndArgument
18261 \end_layout
18262
18263 \end_inset
18264
18265 .
18266  See 
18267 \begin_inset CommandInset ref
18268 LatexCommand ref
18269 reference "subsec:Paragraph-Styles"
18270
18271 \end_inset
18272
18273  for details.
18274 \end_layout
18275
18276 \begin_layout Description
18277 \begin_inset Flex Code
18278 status collapsed
18279
18280 \begin_layout Plain Layout
18281 BabelPreamble
18282 \end_layout
18283
18284 \end_inset
18285
18286  Preamble for changing language commands; see 
18287 \begin_inset CommandInset ref
18288 LatexCommand ref
18289 reference "subsec:I18n"
18290
18291 \end_inset
18292
18293 .
18294 \end_layout
18295
18296 \begin_layout Description
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301 BgColor
18302 \end_layout
18303
18304 \end_inset
18305
18306  [
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 <name>
18312 \end_layout
18313
18314 \end_inset
18315
18316 ] The color for the inset's background.
18317  See 
18318 \begin_inset CommandInset ref
18319 LatexCommand ref
18320 reference "chap:Names-of-colors"
18321
18322 \end_inset
18323
18324  for a list of the available color names.
18325 \end_layout
18326
18327 \begin_layout Description
18328 \begin_inset Flex Code
18329 status collapsed
18330
18331 \begin_layout Plain Layout
18332 ContentAsLabel
18333 \end_layout
18334
18335 \end_inset
18336
18337  [
18338 \begin_inset Flex Code
18339 status collapsed
18340
18341 \begin_layout Plain Layout
18342
18343 \emph on
18344 0
18345 \end_layout
18346
18347 \end_inset
18348
18349 ,
18350 \begin_inset space \thinspace{}
18351 \end_inset
18352
18353
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358 1
18359 \end_layout
18360
18361 \end_inset
18362
18363 ] Whether to use the content of the inset as the label, when the inset is
18364  closed.
18365  Default is false.
18366 \end_layout
18367
18368 \begin_layout Description
18369 \begin_inset Flex Code
18370 status collapsed
18371
18372 \begin_layout Plain Layout
18373 CopyStyle
18374 \end_layout
18375
18376 \end_inset
18377
18378  [
18379 \begin_inset Flex Code
18380 status collapsed
18381
18382 \begin_layout Plain Layout
18383 <type>
18384 \end_layout
18385
18386 \end_inset
18387
18388 ] As with paragraph styles, see 
18389 \begin_inset CommandInset ref
18390 LatexCommand ref
18391 reference "subsec:Paragraph-Styles"
18392
18393 \end_inset
18394
18395 .
18396  Note that you need to specify the complete type, e.
18397 \begin_inset space \thinspace{}
18398 \end_inset
18399
18400 g.
18401 \begin_inset space ~
18402 \end_inset
18403
18404
18405 \begin_inset Flex Code
18406 status collapsed
18407
18408 \begin_layout Plain Layout
18409 CopyStyle Flex:<name>
18410 \end_layout
18411
18412 \end_inset
18413
18414 .
18415 \end_layout
18416
18417 \begin_layout Description
18418 \begin_inset Flex Code
18419 status collapsed
18420
18421 \begin_layout Plain Layout
18422 CustomPars
18423 \end_layout
18424
18425 \end_inset
18426
18427  [
18428 \begin_inset Flex Code
18429 status collapsed
18430
18431 \begin_layout Plain Layout
18432
18433 \emph on
18434 0
18435 \end_layout
18436
18437 \end_inset
18438
18439 ,
18440 \begin_inset space \thinspace{}
18441 \end_inset
18442
18443
18444 \begin_inset Flex Code
18445 status collapsed
18446
18447 \begin_layout Plain Layout
18448 1
18449 \end_layout
18450
18451 \end_inset
18452
18453 ] Indicates whether the user may employ the Paragraph Settings dialog to
18454  customize the paragraph.
18455 \end_layout
18456
18457 \begin_layout Description
18458 \begin_inset Flex Code
18459 status collapsed
18460
18461 \begin_layout Plain Layout
18462 Decoration
18463 \end_layout
18464
18465 \end_inset
18466
18467  can be 
18468 \begin_inset Flex Code
18469 status collapsed
18470
18471 \begin_layout Plain Layout
18472 Classic
18473 \end_layout
18474
18475 \end_inset
18476
18477
18478 \begin_inset Flex Code
18479 status collapsed
18480
18481 \begin_layout Plain Layout
18482 Minimalistic
18483 \end_layout
18484
18485 \end_inset
18486
18487 , or 
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 Conglomerate
18493 \end_layout
18494
18495 \end_inset
18496
18497 , describing the rendering style used for the inset's frame and buttons.
18498  Footnotes generally use 
18499 \begin_inset Flex Code
18500 status collapsed
18501
18502 \begin_layout Plain Layout
18503 Classic
18504 \end_layout
18505
18506 \end_inset
18507
18508 , ERT insets generally 
18509 \begin_inset Flex Code
18510 status collapsed
18511
18512 \begin_layout Plain Layout
18513 Minimalistic
18514 \end_layout
18515
18516 \end_inset
18517
18518 , and character styles 
18519 \begin_inset Flex Code
18520 status collapsed
18521
18522 \begin_layout Plain Layout
18523 Conglomerate
18524 \end_layout
18525
18526 \end_inset
18527
18528 .
18529 \end_layout
18530
18531 \begin_layout Description
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536 Display
18537 \end_layout
18538
18539 \end_inset
18540
18541  [
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546 0
18547 \end_layout
18548
18549 \end_inset
18550
18551 ,
18552 \emph on
18553
18554 \begin_inset space \thinspace{}
18555 \end_inset
18556
18557
18558 \emph default
18559
18560 \begin_inset Flex Code
18561 status collapsed
18562
18563 \begin_layout Plain Layout
18564
18565 \emph on
18566 1
18567 \end_layout
18568
18569 \end_inset
18570
18571 ] Only useful if 
18572 \begin_inset Flex Code
18573 status collapsed
18574
18575 \begin_layout Plain Layout
18576 LatexType
18577 \end_layout
18578
18579 \end_inset
18580
18581  is 
18582 \begin_inset Flex Code
18583 status collapsed
18584
18585 \begin_layout Plain Layout
18586 Environment
18587 \end_layout
18588
18589 \end_inset
18590
18591 .
18592  Indicates whether the environment will stand on its own in the output or
18593  will appear inline with the surrounding text.
18594  If set to false, it is supposed that the \SpecialChar LaTeX
18595  environment ignores white space
18596  (including one newline character) after the 
18597 \begin_inset Flex Code
18598 status collapsed
18599
18600 \begin_layout Plain Layout
18601
18602 \backslash
18603 begin{
18604 \emph on
18605 LatexName
18606 \emph default
18607 }
18608 \end_layout
18609
18610 \end_inset
18611
18612  and 
18613 \begin_inset Flex Code
18614 status collapsed
18615
18616 \begin_layout Plain Layout
18617
18618 \backslash
18619 end{
18620 \emph on
18621 LatexName
18622 \emph default
18623 }
18624 \end_layout
18625
18626 \end_inset
18627
18628  tags.
18629  Default is true.
18630 \end_layout
18631
18632 \begin_layout Description
18633 \begin_inset Flex Code
18634 status collapsed
18635
18636 \begin_layout Plain Layout
18637 End
18638 \end_layout
18639
18640 \end_inset
18641
18642  Required at the end of the 
18643 \begin_inset Flex Code
18644 status collapsed
18645
18646 \begin_layout Plain Layout
18647 InsetLayout
18648 \end_layout
18649
18650 \end_inset
18651
18652  declarations.
18653 \end_layout
18654
18655 \begin_layout Description
18656 \begin_inset Flex Code
18657 status collapsed
18658
18659 \begin_layout Plain Layout
18660 Font
18661 \end_layout
18662
18663 \end_inset
18664
18665  The font used for both the text body 
18666 \emph on
18667 and
18668 \emph default
18669  the label.
18670  See 
18671 \begin_inset CommandInset ref
18672 LatexCommand ref
18673 reference "subsec:Font-description"
18674
18675 \end_inset
18676
18677 .
18678  Note that defining this font automatically defines the 
18679 \begin_inset Flex Code
18680 status collapsed
18681
18682 \begin_layout Plain Layout
18683 LabelFont
18684 \end_layout
18685
18686 \end_inset
18687
18688  to the same value, so define this first and define 
18689 \begin_inset Flex Code
18690 status collapsed
18691
18692 \begin_layout Plain Layout
18693 LabelFont
18694 \end_layout
18695
18696 \end_inset
18697
18698  later if you want them to be different.
18699 \end_layout
18700
18701 \begin_layout Description
18702 \begin_inset Flex Code
18703 status collapsed
18704
18705 \begin_layout Plain Layout
18706 FixedWidthPreambleEncoding
18707 \end_layout
18708
18709 \end_inset
18710
18711  [
18712 \begin_inset Flex Code
18713 status collapsed
18714
18715 \begin_layout Plain Layout
18716
18717 \emph on
18718 0
18719 \end_layout
18720
18721 \end_inset
18722
18723 ,
18724 \begin_inset space \thinspace{}
18725 \end_inset
18726
18727
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 1
18733 \end_layout
18734
18735 \end_inset
18736
18737 ] Force a fixed width encoding for the translated contents of 
18738 \begin_inset Flex Code
18739 status collapsed
18740
18741 \begin_layout Plain Layout
18742 BabelPreamble
18743 \end_layout
18744
18745 \end_inset
18746
18747  and 
18748 \begin_inset Flex Code
18749 status collapsed
18750
18751 \begin_layout Plain Layout
18752 LangPreamble
18753 \end_layout
18754
18755 \end_inset
18756
18757  code generated by this layout.
18758  This is needed for special \SpecialChar LaTeX
18759 -packages like 
18760 \family typewriter
18761 listings
18762 \family default
18763  that do not work with variable width encodings such as 
18764 \family sans
18765 utf8
18766 \family default
18767 .
18768  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
18769  backends such as Xe\SpecialChar TeX
18770  or
18771  Lua\SpecialChar TeX
18772  are used.
18773 \end_layout
18774
18775 \begin_layout Description
18776 \begin_inset Flex Code
18777 status collapsed
18778
18779 \begin_layout Plain Layout
18780 ForceLocalFontSwitch
18781 \end_layout
18782
18783 \end_inset
18784
18785  [
18786 \begin_inset Flex Code
18787 status collapsed
18788
18789 \begin_layout Plain Layout
18790
18791 \emph on
18792 0
18793 \end_layout
18794
18795 \end_inset
18796
18797 ,
18798 \begin_inset space \thinspace{}
18799 \end_inset
18800
18801
18802 \begin_inset Flex Code
18803 status collapsed
18804
18805 \begin_layout Plain Layout
18806 1
18807 \end_layout
18808
18809 \end_inset
18810
18811 ] When using babel, always use a local font switch (
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816
18817 \backslash
18818 foreignlanguage
18819 \end_layout
18820
18821 \end_inset
18822
18823 ), never a global one (such as 
18824 \begin_inset Flex Code
18825 status collapsed
18826
18827 \begin_layout Plain Layout
18828
18829 \backslash
18830 selectlanguage
18831 \end_layout
18832
18833 \end_inset
18834
18835 ).
18836 \end_layout
18837
18838 \begin_layout Description
18839 \begin_inset Flex Code
18840 status collapsed
18841
18842 \begin_layout Plain Layout
18843 ForceLTR
18844 \end_layout
18845
18846 \end_inset
18847
18848  [
18849 \begin_inset Flex Code
18850 status collapsed
18851
18852 \begin_layout Plain Layout
18853
18854 \emph on
18855 0
18856 \end_layout
18857
18858 \end_inset
18859
18860 ,
18861 \begin_inset space \thinspace{}
18862 \end_inset
18863
18864
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 1
18870 \end_layout
18871
18872 \end_inset
18873
18874 ] Force the 
18875 \begin_inset Quotes eld
18876 \end_inset
18877
18878 latex
18879 \begin_inset Quotes erd
18880 \end_inset
18881
18882  language, leading to Left-to-Right (Latin) output, e.
18883 \begin_inset space \thinspace{}
18884 \end_inset
18885
18886 g.
18887 \begin_inset space \space{}
18888 \end_inset
18889
18890 in \SpecialChar TeX
18891  code or URL.
18892  A kludge.
18893 \end_layout
18894
18895 \begin_layout Description
18896 \begin_inset Flex Code
18897 status collapsed
18898
18899 \begin_layout Plain Layout
18900 ForceOwnlines
18901 \end_layout
18902
18903 \end_inset
18904
18905  [
18906 \begin_inset Flex Code
18907 status collapsed
18908
18909 \begin_layout Plain Layout
18910
18911 \emph on
18912 0
18913 \end_layout
18914
18915 \end_inset
18916
18917 ,
18918 \begin_inset space \thinspace{}
18919 \end_inset
18920
18921
18922 \begin_inset Flex Code
18923 status collapsed
18924
18925 \begin_layout Plain Layout
18926 1
18927 \end_layout
18928
18929 \end_inset
18930
18931 ] Force a a line break in the \SpecialChar LaTeX
18932  output before the inset starts and after
18933  the inset ends.
18934  This assures the inset itself is output on its own lines, for parsing purposes.
18935 \end_layout
18936
18937 \begin_layout Description
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 ForcePlain
18943 \end_layout
18944
18945 \end_inset
18946
18947  [
18948 \begin_inset Flex Code
18949 status collapsed
18950
18951 \begin_layout Plain Layout
18952
18953 \emph on
18954 0
18955 \end_layout
18956
18957 \end_inset
18958
18959 ,
18960 \begin_inset space \thinspace{}
18961 \end_inset
18962
18963
18964 \begin_inset Flex Code
18965 status collapsed
18966
18967 \begin_layout Plain Layout
18968 1
18969 \end_layout
18970
18971 \end_inset
18972
18973 ] Indicates whether the 
18974 \begin_inset Flex Code
18975 status collapsed
18976
18977 \begin_layout Plain Layout
18978 PlainLayout
18979 \end_layout
18980
18981 \end_inset
18982
18983  should be used or, instead, the user can change the paragraph style used
18984  in the inset.
18985  Default is false.
18986 \end_layout
18987
18988 \begin_layout Description
18989 \begin_inset Flex Code
18990 status collapsed
18991
18992 \begin_layout Plain Layout
18993 FreeSpacing
18994 \end_layout
18995
18996 \end_inset
18997
18998  [
18999 \begin_inset Flex Code
19000 status collapsed
19001
19002 \begin_layout Plain Layout
19003
19004 \emph on
19005 0
19006 \end_layout
19007
19008 \end_inset
19009
19010 ,
19011 \begin_inset space \thinspace{}
19012 \end_inset
19013
19014
19015 \begin_inset Flex Code
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 1
19020 \end_layout
19021
19022 \end_inset
19023
19024 ] As with paragraph styles, see 
19025 \begin_inset CommandInset ref
19026 LatexCommand ref
19027 reference "subsec:Paragraph-Styles"
19028
19029 \end_inset
19030
19031 .
19032 \end_layout
19033
19034 \begin_layout Description
19035 \begin_inset Flex Code
19036 status collapsed
19037
19038 \begin_layout Plain Layout
19039 HTML*
19040 \end_layout
19041
19042 \end_inset
19043
19044  These tags control the XHTML output.
19045  See 
19046 \begin_inset CommandInset ref
19047 LatexCommand ref
19048 reference "sec:Tags-for-XHTML"
19049
19050 \end_inset
19051
19052 .
19053 \end_layout
19054
19055 \begin_layout Description
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 InToc
19061 \end_layout
19062
19063 \end_inset
19064
19065  [
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070
19071 \emph on
19072 0
19073 \end_layout
19074
19075 \end_inset
19076
19077 ,
19078 \begin_inset space \thinspace{}
19079 \end_inset
19080
19081
19082 \begin_inset Flex Code
19083 status collapsed
19084
19085 \begin_layout Plain Layout
19086 1
19087 \end_layout
19088
19089 \end_inset
19090
19091 ] Whether to include the contents of this inset in the strings generated
19092  for the `Outline' pane for all table of contents, regardless of the AddToToc
19093  setting.
19094  One would not, for example, want the content of a footnote in a section
19095  header to be included in the TOC displayed in the outline, but one would
19096  normally want the content of a character style displayed.
19097  Default is false: not to include.
19098 \end_layout
19099
19100 \begin_layout Description
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 IsTocCaption
19106 \end_layout
19107
19108 \end_inset
19109
19110  [
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115
19116 \emph on
19117 0
19118 \end_layout
19119
19120 \end_inset
19121
19122 ,
19123 \begin_inset space \thinspace{}
19124 \end_inset
19125
19126
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131 1
19132 \end_layout
19133
19134 \end_inset
19135
19136 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19137  of its contents in its item in the table of contents.
19138  Otherwise, only the label appears.
19139 \end_layout
19140
19141 \begin_layout Description
19142 \begin_inset Flex Code
19143 status collapsed
19144
19145 \begin_layout Plain Layout
19146 KeepEmpty
19147 \end_layout
19148
19149 \end_inset
19150
19151  [
19152 \emph on
19153
19154 \begin_inset Flex Code
19155 status collapsed
19156
19157 \begin_layout Plain Layout
19158 0
19159 \end_layout
19160
19161 \end_inset
19162
19163
19164 \emph default
19165 ,
19166 \begin_inset space \thinspace{}
19167 \end_inset
19168
19169
19170 \begin_inset Flex Code
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174 1
19175 \end_layout
19176
19177 \end_inset
19178
19179 ] As with paragraph styles, see 
19180 \begin_inset CommandInset ref
19181 LatexCommand ref
19182 reference "subsec:Paragraph-Styles"
19183
19184 \end_inset
19185
19186 .
19187 \end_layout
19188
19189 \begin_layout Description
19190 \begin_inset Flex Code
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 LabelFont
19195 \end_layout
19196
19197 \end_inset
19198
19199  The font used for the label.
19200  See 
19201 \begin_inset CommandInset ref
19202 LatexCommand ref
19203 reference "subsec:Font-description"
19204
19205 \end_inset
19206
19207 .
19208  Note that this definition can never appear before 
19209 \begin_inset Flex Code
19210 status collapsed
19211
19212 \begin_layout Plain Layout
19213 Font
19214 \end_layout
19215
19216 \end_inset
19217
19218 , lest it be ineffective.
19219 \end_layout
19220
19221 \begin_layout Description
19222 \begin_inset Flex Code
19223 status collapsed
19224
19225 \begin_layout Plain Layout
19226 LabelString
19227 \end_layout
19228
19229 \end_inset
19230
19231  [
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 string
19237 \end_layout
19238
19239 \end_inset
19240
19241 =
19242 \begin_inset Quotes erd
19243 \end_inset
19244
19245
19246 \begin_inset Quotes erd
19247 \end_inset
19248
19249 ] What will be displayed on the button or elsewhere as the inset label.
19250  Some inset types (
19251 \begin_inset Flex Code
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 \SpecialChar TeX
19256  code
19257 \end_layout
19258
19259 \end_inset
19260
19261  and 
19262 \begin_inset Flex Code
19263 status collapsed
19264
19265 \begin_layout Plain Layout
19266 Branch
19267 \end_layout
19268
19269 \end_inset
19270
19271 ) modify this label on the fly.
19272 \end_layout
19273
19274 \begin_layout Description
19275 \begin_inset Flex Code
19276 status collapsed
19277
19278 \begin_layout Plain Layout
19279 LangPreamble
19280 \end_layout
19281
19282 \end_inset
19283
19284  Language dependent preamble; see 
19285 \begin_inset CommandInset ref
19286 LatexCommand ref
19287 reference "subsec:I18n"
19288
19289 \end_inset
19290
19291 .
19292 \end_layout
19293
19294 \begin_layout Description
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299 LatexName
19300 \end_layout
19301
19302 \end_inset
19303
19304  [
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 <name>
19310 \end_layout
19311
19312 \end_inset
19313
19314 ] The name of the corresponding \SpecialChar LaTeX
19315  stuff.
19316  Either the environment or command name.
19317 \end_layout
19318
19319 \begin_layout Description
19320 \begin_inset Flex Code
19321 status collapsed
19322
19323 \begin_layout Plain Layout
19324 LatexParam
19325 \end_layout
19326
19327 \end_inset
19328
19329  [
19330 \begin_inset Flex Code
19331 status collapsed
19332
19333 \begin_layout Plain Layout
19334 <parameter>
19335 \end_layout
19336
19337 \end_inset
19338
19339 ] The optional parameter for the corresponding 
19340 \begin_inset Flex Code
19341 status collapsed
19342
19343 \begin_layout Plain Layout
19344 LatexName
19345 \end_layout
19346
19347 \end_inset
19348
19349  stuff, including possible bracket pairs like 
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354 []
19355 \end_layout
19356
19357 \end_inset
19358
19359 .
19360  This parameter cannot be changed from within \SpecialChar LyX
19361  (use 
19362 \begin_inset Flex Code
19363 status collapsed
19364
19365 \begin_layout Plain Layout
19366 Argument
19367 \end_layout
19368
19369 \end_inset
19370
19371  for customizable parameters).
19372  It will be output as is after all \SpecialChar LaTeX
19373  
19374 \begin_inset Flex Code
19375 status collapsed
19376
19377 \begin_layout Plain Layout
19378 Argument
19379 \end_layout
19380
19381 \end_inset
19382
19383 s.
19384 \end_layout
19385
19386 \begin_layout Description
19387 \begin_inset Flex Code
19388 status collapsed
19389
19390 \begin_layout Plain Layout
19391 LatexType
19392 \end_layout
19393
19394 \end_inset
19395
19396  [
19397 \begin_inset Flex Code
19398 status collapsed
19399
19400 \begin_layout Plain Layout
19401 Command, Environment, None
19402 \end_layout
19403
19404 \end_inset
19405
19406 ] How the style should be translated into \SpecialChar LaTeX
19407 .
19408 \begin_inset Foot
19409 status collapsed
19410
19411 \begin_layout Plain Layout
19412 \begin_inset Flex Code
19413 status collapsed
19414
19415 \begin_layout Plain Layout
19416 LatexType
19417 \end_layout
19418
19419 \end_inset
19420
19421  is perhaps a bit misleading, since these rules apply to SGML classes too.
19422  Visit the SGML class files for specific examples.
19423 \end_layout
19424
19425 \end_inset
19426
19427
19428 \end_layout
19429
19430 \begin_deeper
19431 \begin_layout Description
19432 \begin_inset Flex Code
19433 status collapsed
19434
19435 \begin_layout Plain Layout
19436 None
19437 \end_layout
19438
19439 \end_inset
19440
19441  means nothing special
19442 \end_layout
19443
19444 \begin_layout Description
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449 Command
19450 \end_layout
19451
19452 \end_inset
19453
19454  means 
19455 \begin_inset Flex Code
19456 status collapsed
19457
19458 \begin_layout Plain Layout
19459
19460 \backslash
19461
19462 \emph on
19463 LatexName
19464 \emph default
19465 {\SpecialChar ldots
19466 }
19467 \end_layout
19468
19469 \end_inset
19470
19471
19472 \end_layout
19473
19474 \begin_layout Description
19475 \begin_inset Flex Code
19476 status collapsed
19477
19478 \begin_layout Plain Layout
19479 Environment
19480 \end_layout
19481
19482 \end_inset
19483
19484  means 
19485 \begin_inset Flex Code
19486 status collapsed
19487
19488 \begin_layout Plain Layout
19489
19490 \backslash
19491 begin{
19492 \emph on
19493 LatexName
19494 \emph default
19495 }\SpecialChar ldots
19496
19497 \backslash
19498 end{
19499 \emph on
19500 LatexName
19501 \emph default
19502 }
19503 \end_layout
19504
19505 \end_inset
19506
19507
19508 \end_layout
19509
19510 \begin_layout Standard
19511 Putting the last few things together, the \SpecialChar LaTeX
19512  output will be either: 
19513 \end_layout
19514
19515 \begin_layout LyX-Code
19516
19517 \backslash
19518 LatexName[LatexParam]{\SpecialChar ldots
19519 }
19520 \end_layout
19521
19522 \begin_layout Standard
19523 or: 
19524 \end_layout
19525
19526 \begin_layout LyX-Code
19527
19528 \backslash
19529 begin{LatexName}[LatexParam] \SpecialChar ldots
19530  
19531 \backslash
19532 end{LatexName}
19533 \end_layout
19534
19535 \begin_layout Standard
19536 depending upon the \SpecialChar LaTeX
19537  type.
19538 \end_layout
19539
19540 \end_deeper
19541 \begin_layout Description
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 LeftDelim
19547 \end_layout
19548
19549 \end_inset
19550
19551  [
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 string
19557 \end_layout
19558
19559 \end_inset
19560
19561 ] A string that is put at the beginning of the layout content.
19562  A line break in the output can be indicated by 
19563 \begin_inset Flex Code
19564 status collapsed
19565
19566 \begin_layout Plain Layout
19567 <br/>
19568 \end_layout
19569
19570 \end_inset
19571
19572 .
19573 \end_layout
19574
19575 \begin_layout Description
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 LyxType
19581 \end_layout
19582
19583 \end_inset
19584
19585  Can be 
19586 \begin_inset Flex Code
19587 status collapsed
19588
19589 \begin_layout Plain Layout
19590 charstyle
19591 \end_layout
19592
19593 \end_inset
19594
19595
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 custom
19601 \end_layout
19602
19603 \end_inset
19604
19605
19606 \begin_inset Flex Code
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 element
19611 \end_layout
19612
19613 \end_inset
19614
19615  or 
19616 \begin_inset Flex Code
19617 status collapsed
19618
19619 \begin_layout Plain Layout
19620 end
19621 \end_layout
19622
19623 \end_inset
19624
19625  (indicating a dummy definition ending definitions of charstyles, etc).
19626  This entry is required in and is only meaningful for Flex insets.
19627  Among other things, it determines on which menu this inset will appear.
19628  Setting 
19629 \begin_inset Flex Code
19630 status collapsed
19631
19632 \begin_layout Plain Layout
19633 LyxType
19634 \end_layout
19635
19636 \end_inset
19637
19638  to 
19639 \begin_inset Flex Code
19640 status collapsed
19641
19642 \begin_layout Plain Layout
19643 charstyle
19644 \end_layout
19645
19646 \end_inset
19647
19648  will automatically set 
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653 MultiPar
19654 \end_layout
19655
19656 \end_inset
19657
19658  to false and 
19659 \begin_inset Flex Code
19660 status collapsed
19661
19662 \begin_layout Plain Layout
19663 ForcePlain
19664 \end_layout
19665
19666 \end_inset
19667
19668  to true.
19669  
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 MultiPar
19675 \end_layout
19676
19677 \end_inset
19678
19679  can be set to true, or 
19680 \begin_inset Flex Code
19681 status collapsed
19682
19683 \begin_layout Plain Layout
19684 ForcePlain
19685 \end_layout
19686
19687 \end_inset
19688
19689  to false, for 
19690 \begin_inset Flex Code
19691 status collapsed
19692
19693 \begin_layout Plain Layout
19694 charstyle
19695 \end_layout
19696
19697 \end_inset
19698
19699  insets by setting it 
19700 \emph on
19701 after
19702 \emph default
19703  you set the 
19704 \begin_inset Flex Code
19705 status collapsed
19706
19707 \begin_layout Plain Layout
19708 LyxType
19709 \end_layout
19710
19711 \end_inset
19712
19713 .
19714 \end_layout
19715
19716 \begin_layout Description
19717 \begin_inset Flex Code
19718 status collapsed
19719
19720 \begin_layout Plain Layout
19721 MultiPar
19722 \end_layout
19723
19724 \end_inset
19725
19726  [
19727 \begin_inset Flex Code
19728 status collapsed
19729
19730 \begin_layout Plain Layout
19731
19732 \emph on
19733 0
19734 \end_layout
19735
19736 \end_inset
19737
19738 ,
19739 \begin_inset space \thinspace{}
19740 \end_inset
19741
19742
19743 \begin_inset Flex Code
19744 status collapsed
19745
19746 \begin_layout Plain Layout
19747 1
19748 \end_layout
19749
19750 \end_inset
19751
19752 ] Whether multiple paragraphs are permitted in this inset.
19753  This will also set 
19754 \begin_inset Flex Code
19755 status collapsed
19756
19757 \begin_layout Plain Layout
19758 CustomPars
19759 \end_layout
19760
19761 \end_inset
19762
19763  to the same value and 
19764 \begin_inset Flex Code
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 ForcePlain
19769 \end_layout
19770
19771 \end_inset
19772
19773  to the opposite value.
19774  These can be reset to other values, if they are used 
19775 \emph on
19776 after
19777 \emph default
19778  
19779 \begin_inset Flex Code
19780 status collapsed
19781
19782 \begin_layout Plain Layout
19783 MultiPar
19784 \end_layout
19785
19786 \end_inset
19787
19788 .
19789  Default is true.
19790 \end_layout
19791
19792 \begin_layout Description
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 NeedProtect
19798 \end_layout
19799
19800 \end_inset
19801
19802  [
19803 \begin_inset Flex Code
19804 status collapsed
19805
19806 \begin_layout Plain Layout
19807
19808 \emph on
19809 0
19810 \end_layout
19811
19812 \end_inset
19813
19814 ,
19815 \begin_inset space \thinspace{}
19816 \end_inset
19817
19818
19819 \begin_inset Flex Code
19820 status collapsed
19821
19822 \begin_layout Plain Layout
19823 1
19824 \end_layout
19825
19826 \end_inset
19827
19828 ] Whether fragile commands in this inset should be 
19829 \begin_inset Flex Code
19830 status collapsed
19831
19832 \begin_layout Plain Layout
19833
19834 \backslash
19835 protect
19836 \end_layout
19837
19838 \end_inset
19839
19840 'ed.
19841  (Note: This is 
19842 \emph on
19843 not
19844 \emph default
19845  whether the command should itself be protected.) Default is false.
19846 \change_inserted -712698321 1523633958
19847
19848 \end_layout
19849
19850 \begin_layout Description
19851
19852 \change_inserted -712698321 1523634088
19853 \begin_inset Flex Code
19854 status collapsed
19855
19856 \begin_layout Plain Layout
19857
19858 \change_inserted -712698321 1523633961
19859 NeedCProtect
19860 \end_layout
19861
19862 \end_inset
19863
19864  [
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869
19870 \change_inserted -712698321 1523633958
19871
19872 \emph on
19873 0
19874 \end_layout
19875
19876 \end_inset
19877
19878 ,
19879 \begin_inset space \thinspace{}
19880 \end_inset
19881
19882
19883 \begin_inset Flex Code
19884 status collapsed
19885
19886 \begin_layout Plain Layout
19887
19888 \change_inserted -712698321 1523633958
19889 1
19890 \end_layout
19891
19892 \end_inset
19893
19894 ] This causes macros that contain this inset to be protected with 
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899
19900 \change_inserted -712698321 1523634038
19901
19902 \backslash
19903 cprotect
19904 \change_unchanged
19905
19906 \end_layout
19907
19908 \end_inset
19909
19910  (cf.
19911  package 
19912 \family sans
19913 cprotect
19914 \family default
19915 ) if necessary and thus allows (some) verbatim stuff in macros.
19916  Default is false.
19917 \change_unchanged
19918
19919 \end_layout
19920
19921 \begin_layout Description
19922 \begin_inset Flex Code
19923 status collapsed
19924
19925 \begin_layout Plain Layout
19926 NoInsetLayout
19927 \end_layout
19928
19929 \end_inset
19930
19931  [
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 <layout>
19937 \end_layout
19938
19939 \end_inset
19940
19941 ] Deletes an existing 
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946 InsetLayout
19947 \end_layout
19948
19949 \end_inset
19950
19951 .
19952 \end_layout
19953
19954 \begin_layout Description
19955 \begin_inset Flex Code
19956 status collapsed
19957
19958 \begin_layout Plain Layout
19959 ObsoletedBy
19960 \end_layout
19961
19962 \end_inset
19963
19964  [
19965 \begin_inset Flex Code
19966 status collapsed
19967
19968 \begin_layout Plain Layout
19969 <layout>
19970 \end_layout
19971
19972 \end_inset
19973
19974 ] Name of an 
19975 \begin_inset Flex Code
19976 status collapsed
19977
19978 \begin_layout Plain Layout
19979 InsetLayout
19980 \end_layout
19981
19982 \end_inset
19983
19984  that has replaced this 
19985 \begin_inset Flex Code
19986 status collapsed
19987
19988 \begin_layout Plain Layout
19989 InsetLayout
19990 \end_layout
19991
19992 \end_inset
19993
19994 .
19995  This is used to rename an 
19996 \begin_inset Flex Code
19997 status collapsed
19998
19999 \begin_layout Plain Layout
20000 InsetLayout
20001 \end_layout
20002
20003 \end_inset
20004
20005 , while keeping backward compatibility.
20006 \end_layout
20007
20008 \begin_layout Description
20009 \begin_inset Flex Code
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 ParbreakIsNewline
20014 \end_layout
20015
20016 \end_inset
20017
20018  [
20019 \begin_inset Flex Code
20020 status collapsed
20021
20022 \begin_layout Plain Layout
20023
20024 \emph on
20025 0
20026 \end_layout
20027
20028 \end_inset
20029
20030 ,
20031 \begin_inset space \thinspace{}
20032 \end_inset
20033
20034
20035 \begin_inset Flex Code
20036 status collapsed
20037
20038 \begin_layout Plain Layout
20039 1
20040 \end_layout
20041
20042 \end_inset
20043
20044 ] As with paragraph styles, see 
20045 \begin_inset CommandInset ref
20046 LatexCommand ref
20047 reference "subsec:Paragraph-Styles"
20048
20049 \end_inset
20050
20051 .
20052  Default is false.
20053 \end_layout
20054
20055 \begin_layout Description
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 PassThru
20061 \end_layout
20062
20063 \end_inset
20064
20065  [
20066 \begin_inset Flex Code
20067 status collapsed
20068
20069 \begin_layout Plain Layout
20070
20071 \emph on
20072 0
20073 \end_layout
20074
20075 \end_inset
20076
20077 ,
20078 \begin_inset space \thinspace{}
20079 \end_inset
20080
20081
20082 \begin_inset Flex Code
20083 status collapsed
20084
20085 \begin_layout Plain Layout
20086 1
20087 \end_layout
20088
20089 \end_inset
20090
20091 ] As with paragraph styles, see 
20092 \begin_inset CommandInset ref
20093 LatexCommand ref
20094 reference "subsec:Paragraph-Styles"
20095
20096 \end_inset
20097
20098 .
20099  Default is false.
20100 \end_layout
20101
20102 \begin_layout Description
20103 \begin_inset Flex Code
20104 status collapsed
20105
20106 \begin_layout Plain Layout
20107 Preamble
20108 \end_layout
20109
20110 \end_inset
20111
20112  As with paragraph styles, see 
20113 \begin_inset CommandInset ref
20114 LatexCommand ref
20115 reference "subsec:Paragraph-Styles"
20116
20117 \end_inset
20118
20119 .
20120 \end_layout
20121
20122 \begin_layout Description
20123 \begin_inset Flex Code
20124 status collapsed
20125
20126 \begin_layout Plain Layout
20127 RefPrefix
20128 \end_layout
20129
20130 \end_inset
20131
20132  [
20133 \begin_inset Flex Code
20134 status collapsed
20135
20136 \begin_layout Plain Layout
20137 string
20138 \end_layout
20139
20140 \end_inset
20141
20142 ] The prefix to use when creating labels referring to insets of this type.
20143  This allows the use of formatted references.
20144 \end_layout
20145
20146 \begin_layout Description
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151 Requires
20152 \end_layout
20153
20154 \end_inset
20155
20156  [
20157 \begin_inset Flex Code
20158 status collapsed
20159
20160 \begin_layout Plain Layout
20161 string
20162 \end_layout
20163
20164 \end_inset
20165
20166 ] As with paragraph styles, see 
20167 \begin_inset CommandInset ref
20168 LatexCommand ref
20169 reference "subsec:Paragraph-Styles"
20170
20171 \end_inset
20172
20173 .
20174 \end_layout
20175
20176 \begin_layout Description
20177 \begin_inset Flex Code
20178 status collapsed
20179
20180 \begin_layout Plain Layout
20181 ResetArgs
20182 \end_layout
20183
20184 \end_inset
20185
20186  [
20187 \begin_inset Flex Code
20188 status collapsed
20189
20190 \begin_layout Plain Layout
20191
20192 \emph on
20193 0
20194 \end_layout
20195
20196 \end_inset
20197
20198 ,
20199 \begin_inset space \thinspace{}
20200 \end_inset
20201
20202
20203 \begin_inset Flex Code
20204 status collapsed
20205
20206 \begin_layout Plain Layout
20207 1
20208 \end_layout
20209
20210 \end_inset
20211
20212 ] Resets the \SpecialChar LaTeX
20213  arguments of this layout (as defined via the 
20214 \begin_inset Flex Code
20215 status collapsed
20216
20217 \begin_layout Plain Layout
20218 Argument
20219 \end_layout
20220
20221 \end_inset
20222
20223  tag).
20224  This is useful if you have copied a style via 
20225 \begin_inset Flex Code
20226 status collapsed
20227
20228 \begin_layout Plain Layout
20229 CopyStyle
20230 \end_layout
20231
20232 \end_inset
20233
20234 , but you do not want to inherit its (required and optional) arguments.
20235 \end_layout
20236
20237 \begin_layout Description
20238 \begin_inset Flex Code
20239 status collapsed
20240
20241 \begin_layout Plain Layout
20242 ResetsFont
20243 \end_layout
20244
20245 \end_inset
20246
20247  [
20248 \begin_inset Flex Code
20249 status collapsed
20250
20251 \begin_layout Plain Layout
20252 0
20253 \end_layout
20254
20255 \end_inset
20256
20257 ,
20258 \begin_inset space \thinspace{}
20259 \end_inset
20260
20261
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266
20267 \emph on
20268 1
20269 \end_layout
20270
20271 \end_inset
20272
20273 ] Whether this inset should use the font of its surrounding environment
20274  or uses its own.
20275  Default is false: use the font of the surrounding environment.
20276 \end_layout
20277
20278 \begin_layout Description
20279 \begin_inset Flex Code
20280 status collapsed
20281
20282 \begin_layout Plain Layout
20283 RightDelim
20284 \end_layout
20285
20286 \end_inset
20287
20288  [
20289 \begin_inset Flex Code
20290 status collapsed
20291
20292 \begin_layout Plain Layout
20293 string
20294 \end_layout
20295
20296 \end_inset
20297
20298 ] A string that is put at the end of the layout content.
20299  A line break in the output can be indicated by 
20300 \begin_inset Flex Code
20301 status collapsed
20302
20303 \begin_layout Plain Layout
20304 <br/>
20305 \end_layout
20306
20307 \end_inset
20308
20309 .
20310 \end_layout
20311
20312 \begin_layout Description
20313 \begin_inset Flex Code
20314 status collapsed
20315
20316 \begin_layout Plain Layout
20317 Spellcheck
20318 \end_layout
20319
20320 \end_inset
20321
20322  [
20323 \begin_inset Flex Code
20324 status collapsed
20325
20326 \begin_layout Plain Layout
20327 0
20328 \end_layout
20329
20330 \end_inset
20331
20332 ,
20333 \begin_inset space \thinspace{}
20334 \end_inset
20335
20336
20337 \begin_inset Flex Code
20338 status collapsed
20339
20340 \begin_layout Plain Layout
20341
20342 \emph on
20343 1
20344 \end_layout
20345
20346 \end_inset
20347
20348 ] Allow spell-checking the contents of this inset.
20349  Default is true.
20350 \end_layout
20351
20352 \begin_layout Subsection
20353 Counters
20354 \begin_inset CommandInset label
20355 LatexCommand label
20356 name "subsec:Counters"
20357
20358 \end_inset
20359
20360
20361 \end_layout
20362
20363 \begin_layout Standard
20364 It is necessary to define the counters (
20365 \begin_inset Flex Noun
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369 chapter
20370 \end_layout
20371
20372 \end_inset
20373
20374
20375 \begin_inset Flex Noun
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 figure
20380 \end_layout
20381
20382 \end_inset
20383
20384 , \SpecialChar ldots
20385 ) in the text class itself.
20386  The standard counters are defined in the file 
20387 \begin_inset Flex Code
20388 status collapsed
20389
20390 \begin_layout Plain Layout
20391 stdcounters.inc
20392 \end_layout
20393
20394 \end_inset
20395
20396 , so you may have to do no more than add
20397 \end_layout
20398
20399 \begin_layout LyX-Code
20400 Input stdcounters.inc
20401 \end_layout
20402
20403 \begin_layout Standard
20404 to your layout file to get them to work.
20405  But if you want to define custom counters, then you can do so.
20406  The counter declaration must begin with:
20407 \end_layout
20408
20409 \begin_layout LyX-Code
20410 Counter CounterName
20411 \end_layout
20412
20413 \begin_layout Standard
20414 where of course `
20415 \begin_inset Flex Code
20416 status collapsed
20417
20418 \begin_layout Plain Layout
20419 CounterName
20420 \end_layout
20421
20422 \end_inset
20423
20424 ' is replaced by the name of the counter.
20425  And it must end with 
20426 \begin_inset Quotes eld
20427 \end_inset
20428
20429
20430 \begin_inset Flex Code
20431 status collapsed
20432
20433 \begin_layout Plain Layout
20434 End
20435 \end_layout
20436
20437 \end_inset
20438
20439
20440 \begin_inset Quotes erd
20441 \end_inset
20442
20443 .
20444  The following parameters can also be used:
20445 \end_layout
20446
20447 \begin_layout Description
20448 \begin_inset Flex Code
20449 status collapsed
20450
20451 \begin_layout Plain Layout
20452 InitialValue
20453 \end_layout
20454
20455 \end_inset
20456
20457  [
20458 \begin_inset Flex Code
20459 status collapsed
20460
20461 \begin_layout Plain Layout
20462 int=1
20463 \end_layout
20464
20465 \end_inset
20466
20467 ] Sets the initial value for the counter, to which it will be reset whenever
20468  that happens.
20469  Normally, one will want the default, 1.
20470 \end_layout
20471
20472 \begin_layout Description
20473 \begin_inset Flex Code
20474 status collapsed
20475
20476 \begin_layout Plain Layout
20477 LabelString
20478 \end_layout
20479
20480 \end_inset
20481
20482  [
20483 \begin_inset Flex Code
20484 status collapsed
20485
20486 \begin_layout Plain Layout
20487 string
20488 \end_layout
20489
20490 \end_inset
20491
20492 =
20493 \begin_inset Quotes erd
20494 \end_inset
20495
20496
20497 \begin_inset Quotes erd
20498 \end_inset
20499
20500 ] When defined, this string defines how the counter is displayed.
20501  Setting this value sets 
20502 \begin_inset Flex Code
20503 status collapsed
20504
20505 \begin_layout Plain Layout
20506 LabelStringAppendix
20507 \end_layout
20508
20509 \end_inset
20510
20511  to the same value.
20512  The following special constructs can be used in the string:
20513 \end_layout
20514
20515 \begin_deeper
20516 \begin_layout Itemize
20517 \begin_inset Flex Code
20518 status collapsed
20519
20520 \begin_layout Plain Layout
20521
20522 \backslash
20523 thecounter
20524 \end_layout
20525
20526 \end_inset
20527
20528  will be replaced by the expansion of the 
20529 \begin_inset Flex Code
20530 status collapsed
20531
20532 \begin_layout Plain Layout
20533 LabelString
20534 \end_layout
20535
20536 \end_inset
20537
20538  (or 
20539 \begin_inset Flex Code
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543 LabelStringAppendix
20544 \end_layout
20545
20546 \end_inset
20547
20548 ) of the counter 
20549 \begin_inset Flex Code
20550 status collapsed
20551
20552 \begin_layout Plain Layout
20553 counter
20554 \end_layout
20555
20556 \end_inset
20557
20558 .
20559  
20560 \end_layout
20561
20562 \begin_layout Itemize
20563 counter values can be expressed using \SpecialChar LaTeX
20564 -like macros
20565 \begin_inset Newline newline
20566 \end_inset
20567
20568
20569 \begin_inset Flex Code
20570 status collapsed
20571
20572 \begin_layout Plain Layout
20573
20574 \backslash
20575
20576 \emph on
20577 numbertype
20578 \emph default
20579 {
20580 \emph on
20581 counter
20582 \emph default
20583 }
20584 \end_layout
20585
20586 \end_inset
20587
20588 , where 
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593
20594 \emph on
20595 numbertype
20596 \end_layout
20597
20598 \end_inset
20599
20600  can be:
20601 \begin_inset Foot
20602 status collapsed
20603
20604 \begin_layout Plain Layout
20605
20606 \family roman
20607 \series medium
20608 \shape up
20609 \size normal
20610 \emph off
20611 \bar no
20612 \noun off
20613 \color none
20614 Actually, the situation is a bit more complicated: any
20615 \family default
20616 \series default
20617 \shape default
20618 \emph default
20619 \bar default
20620  
20621 \size default
20622 \emph on
20623 \noun default
20624 \color inherit
20625 numbertype
20626 \family roman
20627 \series medium
20628 \shape up
20629 \size normal
20630 \emph off
20631 \bar no
20632 \noun off
20633  other than those described below will produce arabic numerals.
20634  It would not be surprising to see this change in the future.
20635 \end_layout
20636
20637 \end_inset
20638
20639  
20640 \begin_inset Flex Code
20641 status collapsed
20642
20643 \begin_layout Plain Layout
20644 arabic
20645 \end_layout
20646
20647 \end_inset
20648
20649 : 1, 2, 3,\SpecialChar ldots
20650
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655 alph
20656 \end_layout
20657
20658 \end_inset
20659
20660  for lower-case letters: a, b, c, \SpecialChar ldots
20661
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 Alph
20667 \end_layout
20668
20669 \end_inset
20670
20671  for upper-case letters: A, B, C, \SpecialChar ldots
20672
20673 \begin_inset Flex Code
20674 status collapsed
20675
20676 \begin_layout Plain Layout
20677 roman
20678 \end_layout
20679
20680 \end_inset
20681
20682  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
20683
20684 \begin_inset Flex Code
20685 status collapsed
20686
20687 \begin_layout Plain Layout
20688 Roman
20689 \end_layout
20690
20691 \end_inset
20692
20693  for upper-case roman numerals: I, II, III\SpecialChar ldots
20694
20695 \begin_inset Flex Code
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 hebrew
20700 \end_layout
20701
20702 \end_inset
20703
20704  for hebrew numerals.
20705 \end_layout
20706
20707 \end_deeper
20708 \begin_layout Standard
20709 If LabelString is not defined, a default value is constructed as follows:
20710  if the counter has a master counter 
20711 \begin_inset Flex Code
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715 master
20716 \end_layout
20717
20718 \end_inset
20719
20720  (defined via 
20721 \begin_inset Flex Code
20722 status collapsed
20723
20724 \begin_layout Plain Layout
20725 Within
20726 \end_layout
20727
20728 \end_inset
20729
20730 ), the string
20731 \begin_inset Newline newline
20732 \end_inset
20733
20734
20735 \begin_inset Flex Code
20736 status collapsed
20737
20738 \begin_layout Plain Layout
20739
20740 \backslash
20741 themaster.
20742 \backslash
20743 arabic{counter}
20744 \end_layout
20745
20746 \end_inset
20747
20748  is used; otherwise the string 
20749 \begin_inset Flex Code
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753
20754 \backslash
20755 arabic{counter}
20756 \end_layout
20757
20758 \end_inset
20759
20760  is used.
20761 \end_layout
20762
20763 \begin_layout Description
20764 \begin_inset Flex Code
20765 status collapsed
20766
20767 \begin_layout Plain Layout
20768 LabelStringAppendix
20769 \end_layout
20770
20771 \end_inset
20772
20773  [
20774 \begin_inset Flex Code
20775 status collapsed
20776
20777 \begin_layout Plain Layout
20778 string
20779 \end_layout
20780
20781 \end_inset
20782
20783 =
20784 \begin_inset Quotes erd
20785 \end_inset
20786
20787
20788 \begin_inset Quotes erd
20789 \end_inset
20790
20791 ] Same as 
20792 \begin_inset Flex Code
20793 status collapsed
20794
20795 \begin_layout Plain Layout
20796 LabelString
20797 \end_layout
20798
20799 \end_inset
20800
20801 , but for use in the Appendix.
20802 \end_layout
20803
20804 \begin_layout Description
20805 \begin_inset Flex Code
20806 status collapsed
20807
20808 \begin_layout Plain Layout
20809 PrettyFormat
20810 \end_layout
20811
20812 \end_inset
20813
20814  [
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 string
20820 \end_layout
20821
20822 \end_inset
20823
20824 =
20825 \begin_inset Quotes erd
20826 \end_inset
20827
20828
20829 \begin_inset Quotes erd
20830 \end_inset
20831
20832 ] A format for use with formatted references to this counter.
20833  For example, one might want to have references to section numbers appear
20834  as 
20835 \begin_inset Quotes eld
20836 \end_inset
20837
20838 Section 2.4
20839 \begin_inset Quotes erd
20840 \end_inset
20841
20842 .
20843  The string should contain 
20844 \begin_inset Quotes eld
20845 \end_inset
20846
20847 ##
20848 \begin_inset Quotes erd
20849 \end_inset
20850
20851 .
20852  This will be replaced by the counter number itself.
20853  So, for sections, it would be: Section ##.
20854 \end_layout
20855
20856 \begin_layout Description
20857 \begin_inset Flex Code
20858 status collapsed
20859
20860 \begin_layout Plain Layout
20861 Within
20862 \end_layout
20863
20864 \end_inset
20865
20866  [
20867 \begin_inset Flex Code
20868 status collapsed
20869
20870 \begin_layout Plain Layout
20871 string
20872 \end_layout
20873
20874 \end_inset
20875
20876 =
20877 \begin_inset Quotes erd
20878 \end_inset
20879
20880
20881 \begin_inset Quotes erd
20882 \end_inset
20883
20884 ] If this is set to the name of another counter, the present counter will
20885  be reset every time the other one is increased.
20886  For example, 
20887 \begin_inset Flex Code
20888 status collapsed
20889
20890 \begin_layout Plain Layout
20891 subsection
20892 \end_layout
20893
20894 \end_inset
20895
20896  is numbered inside 
20897 \begin_inset Flex Code
20898 status collapsed
20899
20900 \begin_layout Plain Layout
20901 section
20902 \end_layout
20903
20904 \end_inset
20905
20906 .
20907 \end_layout
20908
20909 \begin_layout Subsection
20910 Font description
20911 \begin_inset CommandInset label
20912 LatexCommand label
20913 name "subsec:Font-description"
20914
20915 \end_inset
20916
20917
20918 \end_layout
20919
20920 \begin_layout Standard
20921 A font description looks like this:
20922 \end_layout
20923
20924 \begin_layout LyX-Code
20925 Font 
20926 \family roman
20927 \emph on
20928 or
20929 \family default
20930 \emph default
20931  LabelFont
20932 \emph on
20933  
20934 \family roman
20935 or
20936 \family default
20937 \emph default
20938  DefaultFont
20939 \end_layout
20940
20941 \begin_layout LyX-Code
20942  ...
20943 \end_layout
20944
20945 \begin_layout LyX-Code
20946 EndFont
20947 \end_layout
20948
20949 \begin_layout Standard
20950 The following commands are available:
20951 \end_layout
20952
20953 \begin_layout Description
20954 \begin_inset Flex Code
20955 status collapsed
20956
20957 \begin_layout Plain Layout
20958 Color
20959 \end_layout
20960
20961 \end_inset
20962
20963  [
20964 \begin_inset Flex Code
20965 status collapsed
20966
20967 \begin_layout Plain Layout
20968
20969 \emph on
20970 none
20971 \end_layout
20972
20973 \end_inset
20974
20975
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980 black
20981 \end_layout
20982
20983 \end_inset
20984
20985
20986 \begin_inset Flex Code
20987 status collapsed
20988
20989 \begin_layout Plain Layout
20990 white
20991 \end_layout
20992
20993 \end_inset
20994
20995
20996 \begin_inset Flex Code
20997 status collapsed
20998
20999 \begin_layout Plain Layout
21000 red
21001 \end_layout
21002
21003 \end_inset
21004
21005
21006 \begin_inset Flex Code
21007 status collapsed
21008
21009 \begin_layout Plain Layout
21010 green
21011 \end_layout
21012
21013 \end_inset
21014
21015
21016 \begin_inset Flex Code
21017 status collapsed
21018
21019 \begin_layout Plain Layout
21020 blue
21021 \end_layout
21022
21023 \end_inset
21024
21025
21026 \begin_inset Flex Code
21027 status collapsed
21028
21029 \begin_layout Plain Layout
21030 cyan
21031 \end_layout
21032
21033 \end_inset
21034
21035
21036 \begin_inset Flex Code
21037 status collapsed
21038
21039 \begin_layout Plain Layout
21040 magenta
21041 \end_layout
21042
21043 \end_inset
21044
21045
21046 \begin_inset Flex Code
21047 status collapsed
21048
21049 \begin_layout Plain Layout
21050 yellow
21051 \end_layout
21052
21053 \end_inset
21054
21055
21056 \begin_inset Flex Code
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 brown
21061 \end_layout
21062
21063 \end_inset
21064
21065
21066 \begin_inset Flex Code
21067 status collapsed
21068
21069 \begin_layout Plain Layout
21070 darkgray
21071 \end_layout
21072
21073 \end_inset
21074
21075
21076 \begin_inset Flex Code
21077 status collapsed
21078
21079 \begin_layout Plain Layout
21080 gray
21081 \end_layout
21082
21083 \end_inset
21084
21085
21086 \begin_inset Flex Code
21087 status collapsed
21088
21089 \begin_layout Plain Layout
21090 lightgray
21091 \end_layout
21092
21093 \end_inset
21094
21095
21096 \begin_inset Flex Code
21097 status collapsed
21098
21099 \begin_layout Plain Layout
21100 lime
21101 \end_layout
21102
21103 \end_inset
21104
21105
21106 \begin_inset Flex Code
21107 status collapsed
21108
21109 \begin_layout Plain Layout
21110 orange
21111 \end_layout
21112
21113 \end_inset
21114
21115
21116 \begin_inset Flex Code
21117 status collapsed
21118
21119 \begin_layout Plain Layout
21120 olive
21121 \end_layout
21122
21123 \end_inset
21124
21125
21126 \begin_inset Flex Code
21127 status collapsed
21128
21129 \begin_layout Plain Layout
21130 pink
21131 \end_layout
21132
21133 \end_inset
21134
21135
21136 \begin_inset Flex Code
21137 status collapsed
21138
21139 \begin_layout Plain Layout
21140 purple
21141 \end_layout
21142
21143 \end_inset
21144
21145
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 teal
21151 \end_layout
21152
21153 \end_inset
21154
21155
21156 \begin_inset Flex Code
21157 status collapsed
21158
21159 \begin_layout Plain Layout
21160 violet
21161 \end_layout
21162
21163 \end_inset
21164
21165 ]
21166 \end_layout
21167
21168 \begin_layout Description
21169 \begin_inset Flex Code
21170 status collapsed
21171
21172 \begin_layout Plain Layout
21173 Family
21174 \end_layout
21175
21176 \end_inset
21177
21178  [
21179 \begin_inset Flex Code
21180 status collapsed
21181
21182 \begin_layout Plain Layout
21183
21184 \emph on
21185 Roman
21186 \end_layout
21187
21188 \end_inset
21189
21190
21191 \begin_inset Flex Code
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 Sans
21196 \end_layout
21197
21198 \end_inset
21199
21200
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205 Typewriter
21206 \end_layout
21207
21208 \end_inset
21209
21210 ]
21211 \end_layout
21212
21213 \begin_layout Description
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 Misc
21219 \end_layout
21220
21221 \end_inset
21222
21223  [
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 string
21229 \end_layout
21230
21231 \end_inset
21232
21233 ] Valid arguments are: 
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 emph
21239 \end_layout
21240
21241 \end_inset
21242
21243
21244 \begin_inset Flex Code
21245 status collapsed
21246
21247 \begin_layout Plain Layout
21248 noun
21249 \end_layout
21250
21251 \end_inset
21252
21253
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 strikeout
21259 \end_layout
21260
21261 \end_inset
21262
21263
21264 \begin_inset Flex Code
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268 underbar
21269 \end_layout
21270
21271 \end_inset
21272
21273
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 uuline
21279 \end_layout
21280
21281 \end_inset
21282
21283
21284 \begin_inset Flex Code
21285 status collapsed
21286
21287 \begin_layout Plain Layout
21288 uwave
21289 \end_layout
21290
21291 \end_inset
21292
21293
21294 \begin_inset Flex Code
21295 status collapsed
21296
21297 \begin_layout Plain Layout
21298 no_emph
21299 \end_layout
21300
21301 \end_inset
21302
21303
21304 \begin_inset Flex Code
21305 status collapsed
21306
21307 \begin_layout Plain Layout
21308 no_noun
21309 \end_layout
21310
21311 \end_inset
21312
21313
21314 \begin_inset Flex Code
21315 status collapsed
21316
21317 \begin_layout Plain Layout
21318 no_strikeout
21319 \end_layout
21320
21321 \end_inset
21322
21323
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 no_bar
21329 \end_layout
21330
21331 \end_inset
21332
21333
21334 \begin_inset Flex Code
21335 status collapsed
21336
21337 \begin_layout Plain Layout
21338 no_uuline
21339 \end_layout
21340
21341 \end_inset
21342
21343  and 
21344 \begin_inset Flex Code
21345 status collapsed
21346
21347 \begin_layout Plain Layout
21348 no_uwave
21349 \end_layout
21350
21351 \end_inset
21352
21353 .
21354  Each of these turns on or off the corresponding attribute.
21355  For example, 
21356 \begin_inset Flex Code
21357 status collapsed
21358
21359 \begin_layout Plain Layout
21360 emph
21361 \end_layout
21362
21363 \end_inset
21364
21365  turns on emphasis, and 
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370 no_emph
21371 \end_layout
21372
21373 \end_inset
21374
21375  turns it off.
21376  
21377 \begin_inset Newline newline
21378 \end_inset
21379
21380 If the latter seems puzzling, remember that the font settings for the present
21381  context are generally inherited from the surrounding context.
21382  So 
21383 \begin_inset Flex Code
21384 status collapsed
21385
21386 \begin_layout Plain Layout
21387 no_emph
21388 \end_layout
21389
21390 \end_inset
21391
21392  would turn off the emphasis that was anyway in effect, say, in a theorem
21393  environment.
21394 \end_layout
21395
21396 \begin_layout Description
21397 \begin_inset Flex Code
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401 Series
21402 \end_layout
21403
21404 \end_inset
21405
21406  [
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411
21412 \emph on
21413 Medium
21414 \end_layout
21415
21416 \end_inset
21417
21418
21419 \begin_inset Flex Code
21420 status collapsed
21421
21422 \begin_layout Plain Layout
21423 Bold
21424 \end_layout
21425
21426 \end_inset
21427
21428
21429 \end_layout
21430
21431 \begin_layout Description
21432 \begin_inset Flex Code
21433 status collapsed
21434
21435 \begin_layout Plain Layout
21436 Shape
21437 \end_layout
21438
21439 \end_inset
21440
21441  [
21442 \begin_inset Flex Code
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446
21447 \emph on
21448 Up
21449 \end_layout
21450
21451 \end_inset
21452
21453
21454 \begin_inset Flex Code
21455 status collapsed
21456
21457 \begin_layout Plain Layout
21458 Italic
21459 \end_layout
21460
21461 \end_inset
21462
21463
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468 SmallCaps
21469 \end_layout
21470
21471 \end_inset
21472
21473
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 Slanted
21479 \end_layout
21480
21481 \end_inset
21482
21483
21484 \end_layout
21485
21486 \begin_layout Description
21487 \begin_inset Flex Code
21488 status collapsed
21489
21490 \begin_layout Plain Layout
21491 Size
21492 \end_layout
21493
21494 \end_inset
21495
21496  [
21497 \begin_inset Flex Code
21498 status collapsed
21499
21500 \begin_layout Plain Layout
21501 tiny
21502 \end_layout
21503
21504 \end_inset
21505
21506
21507 \begin_inset Flex Code
21508 status collapsed
21509
21510 \begin_layout Plain Layout
21511 small
21512 \end_layout
21513
21514 \end_inset
21515
21516
21517 \begin_inset Flex Code
21518 status collapsed
21519
21520 \begin_layout Plain Layout
21521
21522 \emph on
21523 normal
21524 \end_layout
21525
21526 \end_inset
21527
21528
21529 \begin_inset Flex Code
21530 status collapsed
21531
21532 \begin_layout Plain Layout
21533 large
21534 \end_layout
21535
21536 \end_inset
21537
21538
21539 \begin_inset Flex Code
21540 status collapsed
21541
21542 \begin_layout Plain Layout
21543 larger
21544 \end_layout
21545
21546 \end_inset
21547
21548
21549 \begin_inset Flex Code
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553 largest
21554 \end_layout
21555
21556 \end_inset
21557
21558
21559 \begin_inset Flex Code
21560 status collapsed
21561
21562 \begin_layout Plain Layout
21563 huge
21564 \end_layout
21565
21566 \end_inset
21567
21568
21569 \begin_inset Flex Code
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573 giant
21574 \end_layout
21575
21576 \end_inset
21577
21578 ]
21579 \end_layout
21580
21581 \begin_layout Subsection
21582 \begin_inset CommandInset label
21583 LatexCommand label
21584 name "subsec:Citation-engine-description"
21585
21586 \end_inset
21587
21588 Cite engine description
21589 \end_layout
21590
21591 \begin_layout Standard
21592 The 
21593 \begin_inset Flex Code
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597 CiteEngine
21598 \end_layout
21599
21600 \end_inset
21601
21602  blocks, as used mainly in cite engine files (see 
21603 \begin_inset CommandInset ref
21604 LatexCommand ref
21605 reference "subsec:Cite-Engine-Files"
21606 plural "false"
21607 caps "false"
21608 noprefix "false"
21609
21610 \end_inset
21611
21612 ), define the citation commands provided by a specific 
21613 \begin_inset Quotes eld
21614 \end_inset
21615
21616 cite engine
21617 \begin_inset Quotes erd
21618 \end_inset
21619
21620 .
21621  A cite engine, in \SpecialChar LyX
21622  terms, is way specific way to format citations, using
21623  numbers, author names and/or years.
21624  Currently, \SpecialChar LyX
21625  supports three such engine types, namely:
21626 \end_layout
21627
21628 \begin_layout Enumerate
21629 \begin_inset Flex Code
21630 status collapsed
21631
21632 \begin_layout Plain Layout
21633 default
21634 \end_layout
21635
21636 \end_inset
21637
21638 : the default Bib\SpecialChar TeX
21639  way to format citations, a simple numeric style (e.
21640 \begin_inset space \thinspace{}
21641 \end_inset
21642
21643 g., 
21644 \begin_inset Quotes eld
21645 \end_inset
21646
21647 [1]
21648 \begin_inset Quotes erd
21649 \end_inset
21650
21651 )
21652 \end_layout
21653
21654 \begin_layout Enumerate
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659 authoryear
21660 \end_layout
21661
21662 \end_inset
21663
21664 : Harvard-styled citations using author names and publication year (e.
21665 \begin_inset space \thinspace{}
21666 \end_inset
21667
21668 g., 
21669 \begin_inset Quotes eld
21670 \end_inset
21671
21672 Smith and Miller (2017b)
21673 \begin_inset Quotes erd
21674 \end_inset
21675
21676 )
21677 \end_layout
21678
21679 \begin_layout Enumerate
21680 \begin_inset Flex Code
21681 status collapsed
21682
21683 \begin_layout Plain Layout
21684 numerical
21685 \end_layout
21686
21687 \end_inset
21688
21689 : extended numerical citations that also allow for author or title next
21690  to the number (e.
21691 \begin_inset space \thinspace{}
21692 \end_inset
21693
21694 g., 
21695 \begin_inset Quotes eld
21696 \end_inset
21697
21698 Smith and Miller [1]
21699 \begin_inset Quotes erd
21700 \end_inset
21701
21702 )
21703 \end_layout
21704
21705 \begin_layout Standard
21706 \begin_inset Flex Code
21707 status collapsed
21708
21709 \begin_layout Plain Layout
21710 CiteEngine
21711 \end_layout
21712
21713 \end_inset
21714
21715  blocks look like this:
21716 \end_layout
21717
21718 \begin_layout LyX-Code
21719 CiteEngine default
21720 \end_layout
21721
21722 \begin_layout LyX-Code
21723  cite
21724 \end_layout
21725
21726 \begin_layout LyX-Code
21727  Citep*[][]
21728 \end_layout
21729
21730 \begin_layout LyX-Code
21731  citeyearpar[][]=parencite*
21732 \end_layout
21733
21734 \begin_layout LyX-Code
21735  ...
21736 \end_layout
21737
21738 \begin_layout LyX-Code
21739 End
21740 \end_layout
21741
21742 \begin_layout Standard
21743 The tag following 
21744 \begin_inset Flex Code
21745 status collapsed
21746
21747 \begin_layout Plain Layout
21748 CiteEngine
21749 \end_layout
21750
21751 \end_inset
21752
21753  denotes the engine.
21754  The individual lines respectively define a cite command or cite command
21755  paradigm supported by this engine.
21756  The line can be as simple as a cite command that is used both to name the
21757  respective \SpecialChar LyX
21758  command and the \SpecialChar LaTeX
21759  output or more complex in order to differentiate
21760  things.
21761  The full syntax is:
21762 \end_layout
21763
21764 \begin_layout LyX-Code
21765 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
21766 \end_layout
21767
21768 \begin_layout Itemize
21769 \begin_inset Flex Code
21770 status collapsed
21771
21772 \begin_layout Plain Layout
21773 LyXName
21774 \end_layout
21775
21776 \end_inset
21777
21778 : The name as used in the 
21779 \begin_inset Flex Code
21780 status collapsed
21781
21782 \begin_layout Plain Layout
21783 *.lyx
21784 \end_layout
21785
21786 \end_inset
21787
21788  file.
21789 \end_layout
21790
21791 \begin_deeper
21792 \begin_layout Standard
21793 For portability reasons, we try to use the same name for same-formatted
21794  commands in different cite packages (thus many names stem from natbib,
21795  and thus we need to differentiate a 
21796 \begin_inset Flex Code
21797 status collapsed
21798
21799 \begin_layout Plain Layout
21800 latexcmd
21801 \end_layout
21802
21803 \end_inset
21804
21805  sometimes, if the \SpecialChar LaTeX
21806  command names differ).
21807 \end_layout
21808
21809 \end_deeper
21810 \begin_layout Itemize
21811 \begin_inset Flex Code
21812 status collapsed
21813
21814 \begin_layout Plain Layout
21815 alias
21816 \end_layout
21817
21818 \end_inset
21819
21820 : a (comma-separated) list of commands that fall back to the given 
21821 \begin_inset Flex Code
21822 status collapsed
21823
21824 \begin_layout Plain Layout
21825 LyXName
21826 \end_layout
21827
21828 \end_inset
21829
21830  in the current engine.
21831  This eases the switch of citation packages and engines.
21832  The 
21833 \begin_inset Flex Code
21834 status collapsed
21835
21836 \begin_layout Plain Layout
21837 alias
21838 \end_layout
21839
21840 \end_inset
21841
21842  can be compared to 
21843 \begin_inset Flex Code
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847 ObsoletedBy
21848 \end_layout
21849
21850 \end_inset
21851
21852  in layout definitions.
21853 \end_layout
21854
21855 \begin_layout Itemize
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860 latexcmd
21861 \end_layout
21862
21863 \end_inset
21864
21865 : The actual \SpecialChar LaTeX
21866  command that is output.
21867  
21868 \end_layout
21869
21870 \begin_layout Standard
21871 \begin_inset Flex Code
21872 status collapsed
21873
21874 \begin_layout Plain Layout
21875 Alias
21876 \end_layout
21877
21878 \end_inset
21879
21880  and 
21881 \begin_inset Flex Code
21882 status collapsed
21883
21884 \begin_layout Plain Layout
21885 latexcmd
21886 \end_layout
21887
21888 \end_inset
21889
21890  are optional.
21891  If no 
21892 \begin_inset Flex Code
21893 status collapsed
21894
21895 \begin_layout Plain Layout
21896 latexcmd
21897 \end_layout
21898
21899 \end_inset
21900
21901  is given, the 
21902 \begin_inset Flex Code
21903 status collapsed
21904
21905 \begin_layout Plain Layout
21906 LyXName
21907 \end_layout
21908
21909 \end_inset
21910
21911  will be output to \SpecialChar LaTeX
21912 .
21913 \end_layout
21914
21915 \begin_layout Standard
21916 Note further:
21917 \end_layout
21918
21919 \begin_layout Itemize
21920 Capitalization indicates that the command also has a capitalized form (
21921 \begin_inset Flex Code
21922 status collapsed
21923
21924 \begin_layout Plain Layout
21925
21926 \backslash
21927 Latexcmd
21928 \end_layout
21929
21930 \end_inset
21931
21932  vs.
21933  
21934 \begin_inset Flex Code
21935 status collapsed
21936
21937 \begin_layout Plain Layout
21938
21939 \backslash
21940 latexcmd
21941 \end_layout
21942
21943 \end_inset
21944
21945 ).
21946  These usually enforce up-casing of name prefixes (
21947 \emph on
21948 von Goethe
21949 \emph default
21950  
21951 \begin_inset Formula $\Rightarrow$
21952 \end_inset
21953
21954  
21955 \emph on
21956 Von Goethe
21957 \emph default
21958 ).
21959 \end_layout
21960
21961 \begin_layout Itemize
21962 Brackets 
21963 \begin_inset Flex Code
21964 status collapsed
21965
21966 \begin_layout Plain Layout
21967 []
21968 \end_layout
21969
21970 \end_inset
21971
21972  indicate the number of optional arguments (there can be 0–2).
21973 \end_layout
21974
21975 \begin_layout Itemize
21976 A star 
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 *
21982 \end_layout
21983
21984 \end_inset
21985
21986  indicates there is a starred version of the command (
21987 \begin_inset Flex Code
21988 status collapsed
21989
21990 \begin_layout Plain Layout
21991
21992 \backslash
21993 latexcmd*
21994 \end_layout
21995
21996 \end_inset
21997
21998  vs.
21999  
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004
22005 \backslash
22006 latexcmd
22007 \end_layout
22008
22009 \end_inset
22010
22011 ).
22012  
22013 \end_layout
22014
22015 \begin_deeper
22016 \begin_layout Standard
22017 By default, the starred version means: Output all authors even if it should
22018  be shortened with 
22019 \begin_inset Quotes eld
22020 \end_inset
22021
22022 et al.
22023 \begin_inset Quotes erd
22024 \end_inset
22025
22026  due to the 
22027 \begin_inset Flex Code
22028 status collapsed
22029
22030 \begin_layout Plain Layout
22031 MaxCiteNames
22032 \end_layout
22033
22034 \end_inset
22035
22036  threshold.
22037 \end_layout
22038
22039 \begin_layout Standard
22040 If the star has a different meaning for a given command, it can be specified
22041  in angle brackets: 
22042 \begin_inset Flex Code
22043 status collapsed
22044
22045 \begin_layout Plain Layout
22046 <!_stardesc!_stardesctooltip>
22047 \end_layout
22048
22049 \end_inset
22050
22051 .
22052  Maximal two translatable macro keywords, marked by the prefix 
22053 \begin_inset Flex Code
22054 status collapsed
22055
22056 \begin_layout Plain Layout
22057 !_
22058 \end_layout
22059
22060 \end_inset
22061
22062 , can be given.
22063  The first points to the string that replaces the 
22064 \begin_inset Quotes eld
22065 \end_inset
22066
22067 Full aut&hor list
22068 \begin_inset Quotes erd
22069 \end_inset
22070
22071  checkbox label in the citation dialog, the second one to an optional tool
22072  tip for this checkbox.
22073  
22074 \end_layout
22075
22076 \begin_layout Standard
22077 Note that these two macros have to be defined in a 
22078 \begin_inset Flex Code
22079 status collapsed
22080
22081 \begin_layout Plain Layout
22082 CiteFormat
22083 \end_layout
22084
22085 \end_inset
22086
22087  (see next section), dropping the 
22088 \begin_inset Flex Code
22089 status collapsed
22090
22091 \begin_layout Plain Layout
22092 !
22093 \end_layout
22094
22095 \end_inset
22096
22097  from the prefix, like this: 
22098 \end_layout
22099
22100 \begin_layout LyX-Code
22101 _stardesc Sta&rred command label
22102 \end_layout
22103
22104 \begin_layout LyX-Code
22105 _stardesctooltip Tooltip for the starred command checkbox.
22106 \end_layout
22107
22108 \end_deeper
22109 \begin_layout Itemize
22110 A dollar sign 
22111 \begin_inset Flex Code
22112 status collapsed
22113
22114 \begin_layout Plain Layout
22115 $
22116 \end_layout
22117
22118 \end_inset
22119
22120  indicates that this command features 
22121 \begin_inset Quotes eld
22122 \end_inset
22123
22124 qualified citation lists
22125 \begin_inset Quotes erd
22126 \end_inset
22127
22128 .
22129  This is a 
22130 \family sans
22131 Biblatex
22132 \family default
22133 -specific feature for multi-reference citations where an individual pre-
22134  and postnote can be given to each reference in the list.
22135  Please refer to the 
22136 \family sans
22137 Biblatex
22138 \family default
22139  manual for details.
22140 \end_layout
22141
22142 \begin_layout Subsection
22143 \begin_inset CommandInset label
22144 LatexCommand label
22145 name "subsec:Citation-format-description"
22146
22147 \end_inset
22148
22149 Cite format description
22150 \end_layout
22151
22152 \begin_layout Standard
22153 The 
22154 \begin_inset Flex Code
22155 status collapsed
22156
22157 \begin_layout Plain Layout
22158 CiteFormat
22159 \end_layout
22160
22161 \end_inset
22162
22163  blocks are used to describe how bibliographic information should be displayed,
22164  both within \SpecialChar LyX
22165  itself (in the citation dialog and in tooltips, for example)
22166  and in XHTML output.
22167  Such a block might look like this:
22168 \end_layout
22169
22170 \begin_layout LyX-Code
22171 CiteFormat
22172 \end_layout
22173
22174 \begin_layout LyX-Code
22175  article ...
22176 \end_layout
22177
22178 \begin_layout LyX-Code
22179  book ...
22180 \end_layout
22181
22182 \begin_layout LyX-Code
22183 End
22184 \end_layout
22185
22186 \begin_layout Standard
22187 or
22188 \end_layout
22189
22190 \begin_layout LyX-Code
22191 CiteFormat
22192 \end_layout
22193
22194 \begin_layout LyX-Code
22195  cite ...
22196 \end_layout
22197
22198 \begin_layout LyX-Code
22199  citet*[][] ...
22200 \end_layout
22201
22202 \begin_layout LyX-Code
22203 End
22204 \end_layout
22205
22206 \begin_layout Standard
22207 In the first case, the individual lines define how the bibliographic information
22208  associated with an article or book, respectively, is to be displayed, and
22209  such a definition can be given for any 
22210 \begin_inset Quotes els
22211 \end_inset
22212
22213 entry type
22214 \begin_inset Quotes ers
22215 \end_inset
22216
22217  that might be present in a Bib\SpecialChar TeX
22218  file.
22219  \SpecialChar LyX
22220  defines a default format in the source code that will be used if no specific
22221  definition has been given.
22222  \SpecialChar LyX
22223  predefines several formats in the file 
22224 \begin_inset Flex Code
22225 status collapsed
22226
22227 \begin_layout Plain Layout
22228 stdciteformats.inc
22229 \end_layout
22230
22231 \end_inset
22232
22233 , which is included in most of \SpecialChar LyX
22234 's document classes.
22235 \end_layout
22236
22237 \begin_layout Standard
22238 In the second case, the lines define how a specific citation command (in
22239  the example 
22240 \begin_inset Flex Code
22241 status collapsed
22242
22243 \begin_layout Plain Layout
22244
22245 \backslash
22246 cite
22247 \end_layout
22248
22249 \end_inset
22250
22251
22252 \begin_inset Flex Code
22253 status collapsed
22254
22255 \begin_layout Plain Layout
22256
22257 \backslash
22258 citet
22259 \end_layout
22260
22261 \end_inset
22262
22263 ) is to be displayed on the citation inset label, in the citation dialog,
22264  menu or XHTML output.
22265  \SpecialChar LyX
22266  defines such formats for the citation style variants it supports via 
22267 \family sans
22268 Document\SpecialChar menuseparator
22269 Setting\SpecialChar menuseparator
22270 Bibliography\SpecialChar ldots
22271
22272 \family default
22273  in specific 
22274 \begin_inset Flex Code
22275 status collapsed
22276
22277 \begin_layout Plain Layout
22278 *.citeengine
22279 \end_layout
22280
22281 \end_inset
22282
22283  files that are shipped with \SpecialChar LyX
22284  (see 
22285 \begin_inset CommandInset ref
22286 LatexCommand ref
22287 reference "subsec:Cite-Engine-Files"
22288 plural "false"
22289 caps "false"
22290 noprefix "false"
22291
22292 \end_inset
22293
22294 ).
22295 \end_layout
22296
22297 \begin_layout Standard
22298 The definitions use a simple language that allows Bib\SpecialChar TeX
22299  keys to be replaced
22300  with their values.
22301  Keys should be enclosed in 
22302 \begin_inset Flex Code
22303 status collapsed
22304
22305 \begin_layout Plain Layout
22306 %
22307 \end_layout
22308
22309 \end_inset
22310
22311  signs, e.g.: 
22312 \begin_inset Flex Code
22313 status collapsed
22314
22315 \begin_layout Plain Layout
22316 %author%
22317 \end_layout
22318
22319 \end_inset
22320
22321 .
22322  So a simple definition might look like this:
22323 \end_layout
22324
22325 \begin_layout LyX-Code
22326 misc %author%, 
22327 \begin_inset Quotes eld
22328 \end_inset
22329
22330 %title%
22331 \begin_inset Quotes erd
22332 \end_inset
22333
22334 .
22335 \end_layout
22336
22337 \begin_layout Standard
22338 This would print the author, followed by a comma, followed by the title,
22339  in quotes, followed by a period.
22340 \end_layout
22341
22342 \begin_layout Standard
22343 Of course, sometimes you may want to print a key only if it exists.
22344  This can be done by using a conditional construction, such as: 
22345 \begin_inset Flex Code
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 {%volume%[[vol.
22350 \begin_inset space ~
22351 \end_inset
22352
22353 %volume%]]}
22354 \end_layout
22355
22356 \end_inset
22357
22358 .
22359  This says: If the 
22360 \begin_inset Flex Code
22361 status collapsed
22362
22363 \begin_layout Plain Layout
22364 volume
22365 \end_layout
22366
22367 \end_inset
22368
22369  key exists, then print 
22370 \begin_inset Quotes eld
22371 \end_inset
22372
22373 vol.
22374 \begin_inset space ~
22375 \end_inset
22376
22377
22378 \begin_inset Quotes erd
22379 \end_inset
22380
22381  followed by the volume key.
22382  It is also possible to have an else clause in the conditional, such as:
22383 \begin_inset Newline newline
22384 \end_inset
22385
22386
22387 \begin_inset Flex Code
22388 status collapsed
22389
22390 \begin_layout Plain Layout
22391 {%author%[[%author%]][[%editor%, ed.]]}
22392 \end_layout
22393
22394 \end_inset
22395
22396 .
22397 \begin_inset Newline newline
22398 \end_inset
22399
22400 Here, the 
22401 \begin_inset Flex Code
22402 status collapsed
22403
22404 \begin_layout Plain Layout
22405 author
22406 \end_layout
22407
22408 \end_inset
22409
22410  key is printed if it exists; otherwise, the editor key is printed, followed
22411  by 
22412 \begin_inset Quotes eld
22413 \end_inset
22414
22415 ,
22416 \begin_inset space ~
22417 \end_inset
22418
22419 ed.
22420 \begin_inset Quotes erd
22421 \end_inset
22422
22423  Note that the key is again enclosed in 
22424 \begin_inset Flex Code
22425 status collapsed
22426
22427 \begin_layout Plain Layout
22428 %
22429 \end_layout
22430
22431 \end_inset
22432
22433  signs; the entire conditional is enclosed in braces; and the if and else
22434  clauses are enclosed in double brackets, 
22435 \begin_inset Quotes eld
22436 \end_inset
22437
22438
22439 \begin_inset Flex Code
22440 status collapsed
22441
22442 \begin_layout Plain Layout
22443 [[
22444 \end_layout
22445
22446 \end_inset
22447
22448
22449 \begin_inset Quotes eld
22450 \end_inset
22451
22452  and 
22453 \begin_inset Quotes eld
22454 \end_inset
22455
22456
22457 \begin_inset Flex Code
22458 status collapsed
22459
22460 \begin_layout Plain Layout
22461 ]]
22462 \end_layout
22463
22464 \end_inset
22465
22466
22467 \begin_inset Quotes erd
22468 \end_inset
22469
22470 .
22471  There must be no space between any of these.
22472 \end_layout
22473
22474 \begin_layout Standard
22475 Next to the entry keys, there are some special keys that can be used for
22476  these conditionals:
22477 \end_layout
22478
22479 \begin_layout Itemize
22480 \begin_inset Flex Code
22481 status collapsed
22482
22483 \begin_layout Plain Layout
22484 {%dialog%[[true]][[false]]}
22485 \end_layout
22486
22487 \end_inset
22488
22489 : process the 
22490 \begin_inset Quotes eld
22491 \end_inset
22492
22493 true
22494 \begin_inset Quotes erd
22495 \end_inset
22496
22497  part for dialogs and menus, the 
22498 \begin_inset Quotes eld
22499 \end_inset
22500
22501 false
22502 \begin_inset Quotes erd
22503 \end_inset
22504
22505  part for other contexts (workarea, export)
22506 \end_layout
22507
22508 \begin_layout Itemize
22509 \begin_inset Flex Code
22510 status collapsed
22511
22512 \begin_layout Plain Layout
22513 {%export%[[true]][[false]]}
22514 \end_layout
22515
22516 \end_inset
22517
22518 : process the 
22519 \begin_inset Quotes eld
22520 \end_inset
22521
22522 true
22523 \begin_inset Quotes erd
22524 \end_inset
22525
22526  part for export and menus, the 
22527 \begin_inset Quotes eld
22528 \end_inset
22529
22530 false
22531 \begin_inset Quotes erd
22532 \end_inset
22533
22534  part for other contexts (workarea, dialog)
22535 \end_layout
22536
22537 \begin_layout Itemize
22538 \begin_inset Flex Code
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542 {%next%[[true]]}
22543 \end_layout
22544
22545 \end_inset
22546
22547 : process the 
22548 \begin_inset Quotes eld
22549 \end_inset
22550
22551 true
22552 \begin_inset Quotes erd
22553 \end_inset
22554
22555  part if another item follows (e.
22556 \begin_inset space \thinspace{}
22557 \end_inset
22558
22559 g., in a citation with multiple keys)
22560 \end_layout
22561
22562 \begin_layout Itemize
22563 \begin_inset Flex Code
22564 status collapsed
22565
22566 \begin_layout Plain Layout
22567 {%second%[[true]][[false]]}
22568 \end_layout
22569
22570 \end_inset
22571
22572 : process the 
22573 \begin_inset Quotes eld
22574 \end_inset
22575
22576 true
22577 \begin_inset Quotes erd
22578 \end_inset
22579
22580  if this is the second of multiple items, else the 
22581 \begin_inset Quotes eld
22582 \end_inset
22583
22584 false
22585 \begin_inset Quotes erd
22586 \end_inset
22587
22588  part
22589 \end_layout
22590
22591 \begin_layout Itemize
22592 \begin_inset Flex Code
22593 status collapsed
22594
22595 \begin_layout Plain Layout
22596 {%ifstar%[[true]][[false]]}
22597 \end_layout
22598
22599 \end_inset
22600
22601 : process the 
22602 \begin_inset Quotes eld
22603 \end_inset
22604
22605 true
22606 \begin_inset Quotes erd
22607 \end_inset
22608
22609  part for starred citation commands (such as 
22610 \begin_inset Flex Code
22611 status collapsed
22612
22613 \begin_layout Plain Layout
22614
22615 \backslash
22616 cite*
22617 \end_layout
22618
22619 \end_inset
22620
22621 ), the false part for unstarred
22622 \end_layout
22623
22624 \begin_layout Itemize
22625 \begin_inset Flex Code
22626 status collapsed
22627
22628 \begin_layout Plain Layout
22629 {%ifentrytype:<type>%[[true]][[false]]}
22630 \end_layout
22631
22632 \end_inset
22633
22634 : process the 
22635 \begin_inset Quotes eld
22636 \end_inset
22637
22638 true
22639 \begin_inset Quotes erd
22640 \end_inset
22641
22642  if the current entry type matches 
22643 \begin_inset Flex Code
22644 status collapsed
22645
22646 \begin_layout Plain Layout
22647 <type>
22648 \end_layout
22649
22650 \end_inset
22651
22652 , else the false part (e.g., in a citation definition: 
22653 \begin_inset Flex Code
22654 status collapsed
22655
22656 \begin_layout Plain Layout
22657 {%ifentrytype:book%[[this is a book]][[this is no book]]}
22658 \end_layout
22659
22660 \end_inset
22661
22662 )
22663 \end_layout
22664
22665 \begin_layout Itemize
22666 \begin_inset Flex Code
22667 status collapsed
22668
22669 \begin_layout Plain Layout
22670 {%ifmultiple:<authortype>%[[true]][[false]]}
22671 \end_layout
22672
22673 \end_inset
22674
22675 : process the 
22676 \begin_inset Quotes eld
22677 \end_inset
22678
22679 true
22680 \begin_inset Quotes erd
22681 \end_inset
22682
22683  if the current author type (author, editor etc.) has multiple authors, else
22684  the false part (e.g., in a bibliography definition: 
22685 \begin_inset Flex Code
22686 status collapsed
22687
22688 \begin_layout Plain Layout
22689 {%ifmultiple:editor%[[eds.]][[ed.]]}
22690 \end_layout
22691
22692 \end_inset
22693
22694 )
22695 \end_layout
22696
22697 \begin_layout Itemize
22698 \begin_inset Flex Code
22699 status collapsed
22700
22701 \begin_layout Plain Layout
22702 {%ifqualified%[[true]][[false]]}
22703 \end_layout
22704
22705 \end_inset
22706
22707 : process the 
22708 \begin_inset Quotes eld
22709 \end_inset
22710
22711 true
22712 \begin_inset Quotes erd
22713 \end_inset
22714
22715  part if the current citation is a qualified citation list (a specific 
22716 \family sans
22717 Biblatex
22718 \family default
22719  format for multi-reference citations), the false part if this is not the
22720  case.
22721 \end_layout
22722
22723 \begin_layout Standard
22724 We said that 
22725 \begin_inset Flex Code
22726 status collapsed
22727
22728 \begin_layout Plain Layout
22729 %author%
22730 \end_layout
22731
22732 \end_inset
22733
22734  prints the author key as it is recorded in the bibliography file.
22735  This might not be what you want, since it will result in a string such
22736  as 
22737 \begin_inset Quotes eld
22738 \end_inset
22739
22740 Miller, Peter and Smith, Mary and White, Jane
22741 \begin_inset Quotes erd
22742 \end_inset
22743
22744  (since 
22745 \begin_inset Quotes eld
22746 \end_inset
22747
22748 and
22749 \begin_inset Quotes erd
22750 \end_inset
22751
22752  is used by Bib\SpecialChar TeX
22753  to delimit authors).
22754  \SpecialChar LyX
22755  therefore provides some methods to get properly formatted name lists (which
22756  will also get translated).
22757  The following keys are provided:
22758 \end_layout
22759
22760 \begin_layout Enumerate
22761 For name lists with pre- and surname, suitable for the main authors/editors
22762  of a bibliography item.
22763  The 
22764 \begin_inset Flex Code
22765 status collapsed
22766
22767 \begin_layout Plain Layout
22768 <nametype>
22769 \end_layout
22770
22771 \end_inset
22772
22773  part denotes the kind of list that is requested (e.g.
22774  
22775 \begin_inset Flex Code
22776 status collapsed
22777
22778 \begin_layout Plain Layout
22779 <nametype:author>
22780 \end_layout
22781
22782 \end_inset
22783
22784 ):
22785 \end_layout
22786
22787 \begin_deeper
22788 \begin_layout Itemize
22789 \begin_inset Flex Code
22790 status collapsed
22791
22792 \begin_layout Plain Layout
22793 %abbrvnames:<nametype>%
22794 \end_layout
22795
22796 \end_inset
22797
22798 : Provides a name list which is abbreviated (with 
22799 \begin_inset Quotes eld
22800 \end_inset
22801
22802 et al.
22803 \begin_inset Quotes erd
22804 \end_inset
22805
22806 ) when 
22807 \begin_inset Flex Code
22808 status collapsed
22809
22810 \begin_layout Plain Layout
22811 MaxCiteNames
22812 \end_layout
22813
22814 \end_inset
22815
22816  is reached.
22817 \end_layout
22818
22819 \begin_layout Itemize
22820 \begin_inset Flex Code
22821 status collapsed
22822
22823 \begin_layout Plain Layout
22824 %fullnames:<nametype>%
22825 \end_layout
22826
22827 \end_inset
22828
22829 : Provides a full name list (never abbreviated with 
22830 \begin_inset Quotes eld
22831 \end_inset
22832
22833 et al.
22834 \begin_inset Quotes erd
22835 \end_inset
22836
22837 ).
22838 \end_layout
22839
22840 \begin_layout Itemize
22841 \begin_inset Flex Code
22842 status collapsed
22843
22844 \begin_layout Plain Layout
22845 %forceabbrvnames:<nametype>%
22846 \end_layout
22847
22848 \end_inset
22849
22850 : Provides a name list which is always abbreviated (with 
22851 \begin_inset Quotes eld
22852 \end_inset
22853
22854 et al.
22855 \begin_inset Quotes erd
22856 \end_inset
22857
22858 ) irrespective of 
22859 \begin_inset Flex Code
22860 status collapsed
22861
22862 \begin_layout Plain Layout
22863 MaxCiteNames
22864 \end_layout
22865
22866 \end_inset
22867
22868 .
22869 \end_layout
22870
22871 \end_deeper
22872 \begin_layout Enumerate
22873 Alternative name lists with pre- and surname, if the order of pre- and surname
22874  inside the bibliography item differs (as in: 
22875 \begin_inset Quotes eld
22876 \end_inset
22877
22878 Miller, John: Some text, in: Mary Smith, ed.: A volume
22879 \begin_inset Quotes erd
22880 \end_inset
22881
22882 ):
22883 \end_layout
22884
22885 \begin_deeper
22886 \begin_layout Itemize
22887 \begin_inset Flex Code
22888 status collapsed
22889
22890 \begin_layout Plain Layout
22891 %abbrvbynames:<nametype>%
22892 \end_layout
22893
22894 \end_inset
22895
22896 : Provides a name list which is abbreviated (with 
22897 \begin_inset Quotes eld
22898 \end_inset
22899
22900 et al.
22901 \begin_inset Quotes erd
22902 \end_inset
22903
22904 ) when 
22905 \begin_inset Flex Code
22906 status collapsed
22907
22908 \begin_layout Plain Layout
22909 MaxCiteNames
22910 \end_layout
22911
22912 \end_inset
22913
22914  is reached.
22915 \end_layout
22916
22917 \begin_layout Itemize
22918 \begin_inset Flex Code
22919 status collapsed
22920
22921 \begin_layout Plain Layout
22922 %fullbynames:<nametype>%
22923 \end_layout
22924
22925 \end_inset
22926
22927 : Provides a full name list (never abbreviated with 
22928 \begin_inset Quotes eld
22929 \end_inset
22930
22931 et al.
22932 \begin_inset Quotes erd
22933 \end_inset
22934
22935 ).
22936 \end_layout
22937
22938 \begin_layout Itemize
22939 \begin_inset Flex Code
22940 status collapsed
22941
22942 \begin_layout Plain Layout
22943 %forceabbrvbynames:<nametype>%
22944 \end_layout
22945
22946 \end_inset
22947
22948 : Provides a name list which is always abbreviated (with 
22949 \begin_inset Quotes eld
22950 \end_inset
22951
22952 et al.
22953 \begin_inset Quotes erd
22954 \end_inset
22955
22956 ) irrespective of 
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 MaxCiteNames
22962 \end_layout
22963
22964 \end_inset
22965
22966 .
22967 \end_layout
22968
22969 \end_deeper
22970 \begin_layout Enumerate
22971 And finally name lists which consist of family names only, as used in author-yea
22972 r citation labels.
22973  These do not take a 
22974 \begin_inset Flex Code
22975 status collapsed
22976
22977 \begin_layout Plain Layout
22978 <nametype>
22979 \end_layout
22980
22981 \end_inset
22982
22983  part, but always return either an author list or, if this does not exist,
22984  an editor list (as common in author-year labels):
22985 \end_layout
22986
22987 \begin_deeper
22988 \begin_layout Itemize
22989 \begin_inset Flex Code
22990 status collapsed
22991
22992 \begin_layout Plain Layout
22993 %abbrvciteauthor%
22994 \end_layout
22995
22996 \end_inset
22997
22998 : Provides a name list which is abbreviated (with 
22999 \begin_inset Quotes eld
23000 \end_inset
23001
23002 et al.
23003 \begin_inset Quotes erd
23004 \end_inset
23005
23006 ) when 
23007 \begin_inset Flex Code
23008 status collapsed
23009
23010 \begin_layout Plain Layout
23011 MaxCiteNames
23012 \end_layout
23013
23014 \end_inset
23015
23016  is reached.
23017 \end_layout
23018
23019 \begin_layout Itemize
23020 \begin_inset Flex Code
23021 status collapsed
23022
23023 \begin_layout Plain Layout
23024 %fullciteauthor%
23025 \end_layout
23026
23027 \end_inset
23028
23029 : Provides a full name list (never abbreviated with 
23030 \begin_inset Quotes eld
23031 \end_inset
23032
23033 et al.
23034 \begin_inset Quotes erd
23035 \end_inset
23036
23037 ).
23038 \end_layout
23039
23040 \begin_layout Itemize
23041 \begin_inset Flex Code
23042 status collapsed
23043
23044 \begin_layout Plain Layout
23045 %forceabbrvciteauthor%
23046 \end_layout
23047
23048 \end_inset
23049
23050 : Provides a name list which is always abbreviated (with 
23051 \begin_inset Quotes eld
23052 \end_inset
23053
23054 et al.
23055 \begin_inset Quotes erd
23056 \end_inset
23057
23058 ) irrespective of 
23059 \begin_inset Flex Code
23060 status collapsed
23061
23062 \begin_layout Plain Layout
23063 MaxCiteNames
23064 \end_layout
23065
23066 \end_inset
23067
23068 .
23069 \end_layout
23070
23071 \end_deeper
23072 \begin_layout Standard
23073 The order of pre- and surname in the former two lists can be adjusted by
23074  these macros:
23075 \end_layout
23076
23077 \begin_layout Itemize
23078 \begin_inset Flex Code
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 !firstnameform %surname%, %prename%
23083 \end_layout
23084
23085 \end_inset
23086
23087  (first author in lists of type 1)
23088 \end_layout
23089
23090 \begin_layout Itemize
23091 \begin_inset Flex Code
23092 status collapsed
23093
23094 \begin_layout Plain Layout
23095 !othernameform %surname%, %prename%
23096 \end_layout
23097
23098 \end_inset
23099
23100  (other authors in lists of type 1)
23101 \end_layout
23102
23103 \begin_layout Itemize
23104 \begin_inset Flex Code
23105 status collapsed
23106
23107 \begin_layout Plain Layout
23108 !firstbynameform %prename% %surname%
23109 \end_layout
23110
23111 \end_inset
23112
23113  (first author in lists of type 2)
23114 \end_layout
23115
23116 \begin_layout Itemize
23117 \begin_inset Flex Code
23118 status collapsed
23119
23120 \begin_layout Plain Layout
23121 !otherbynameform %prename% %surname%
23122 \end_layout
23123
23124 \end_inset
23125
23126  (other authors in lists of type 2)
23127 \end_layout
23128
23129 \begin_layout Standard
23130 This allows you to configure namings like 
23131 \begin_inset Quotes eld
23132 \end_inset
23133
23134 Miller, Peter and Mary Smith: \SpecialChar ldots
23135 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
23136
23137 \begin_inset Quotes erd
23138 \end_inset
23139
23140 .
23141 \end_layout
23142
23143 \begin_layout Standard
23144 There is one other piece of syntax available in definitions, which looks
23145  like this: 
23146 \begin_inset Flex Code
23147 status collapsed
23148
23149 \begin_layout Plain Layout
23150 {!<i>!}
23151 \end_layout
23152
23153 \end_inset
23154
23155 .
23156  This defines a piece of formatting information that is to be used when
23157  creating 
23158 \begin_inset Quotes eld
23159 \end_inset
23160
23161 rich text
23162 \begin_inset Quotes erd
23163 \end_inset
23164
23165 .
23166  Obviously, we do not want to output HTML tags when writing plain text,
23167  so they should be wrapped in 
23168 \begin_inset Quotes eld
23169 \end_inset
23170
23171 {!
23172 \begin_inset Quotes erd
23173 \end_inset
23174
23175  and 
23176 \begin_inset Quotes eld
23177 \end_inset
23178
23179 !}
23180 \begin_inset Quotes erd
23181 \end_inset
23182
23183 .
23184 \end_layout
23185
23186 \begin_layout Standard
23187 Two special sorts of definitions are also possible in a 
23188 \begin_inset Flex Code
23189 status collapsed
23190
23191 \begin_layout Plain Layout
23192 CiteFormat
23193 \end_layout
23194
23195 \end_inset
23196
23197  block.
23198  An example of the first would be:
23199 \end_layout
23200
23201 \begin_layout LyX-Code
23202 !quotetitle 
23203 \begin_inset Quotes eld
23204 \end_inset
23205
23206 %title%
23207 \begin_inset Quotes erd
23208 \end_inset
23209
23210
23211 \end_layout
23212
23213 \begin_layout Standard
23214 This is an abbreviation, or macro, and it can be used by treating it as
23215  if it were a key: 
23216 \begin_inset Flex Code
23217 status collapsed
23218
23219 \begin_layout Plain Layout
23220 %!quotetitle%
23221 \end_layout
23222
23223 \end_inset
23224
23225 .
23226  \SpecialChar LyX
23227  will treat 
23228 \begin_inset Flex Code
23229 status collapsed
23230
23231 \begin_layout Plain Layout
23232 %!quotetitle%
23233 \end_layout
23234
23235 \end_inset
23236
23237  exactly as it would treat its definition.
23238  So, let us issue the obvious 
23239 \emph on
23240 warning
23241 \emph default
23242 .
23243  Do not do this:
23244 \end_layout
23245
23246 \begin_layout LyX-Code
23247 !funfun %funfun%
23248 \end_layout
23249
23250 \begin_layout Standard
23251 or anything like it.
23252  \SpecialChar LyX
23253  shouldn't go into an infinite loop, but it may go into a long one before
23254  it gives up.
23255 \end_layout
23256
23257 \begin_layout Standard
23258 The second sort of special definition might look like this:
23259 \end_layout
23260
23261 \begin_layout LyX-Code
23262 B_pptext pp.
23263 \end_layout
23264
23265 \begin_layout Standard
23266 This defines a translatable piece of text, which allows relevant parts of
23267  the bibliography or citation to be translated.
23268  It can be included in a definition by treating it as a key: 
23269 \begin_inset Flex Code
23270 status collapsed
23271
23272 \begin_layout Plain Layout
23273 %B_pptext%
23274 \end_layout
23275
23276 \end_inset
23277
23278 .
23279  Note that there are two different translation paths: All definitions starting
23280  with 
23281 \begin_inset Flex Code
23282 status collapsed
23283
23284 \begin_layout Plain Layout
23285 B_
23286 \end_layout
23287
23288 \end_inset
23289
23290 , such as in the example above, will be translated to the currently active
23291  buffer language (so the translation will match the generated document).
23292  All definitions starting with underscore only will be translated to the
23293  GUI language.
23294  This is the proper translation for strings that only occur in the dialogs
23295  or on buttons, such as this one:
23296 \end_layout
23297
23298 \begin_layout LyX-Code
23299 _addtobib Add to bibliography only.
23300 \end_layout
23301
23302 \begin_layout Standard
23303 Several of these translatable strings are predefined in 
23304 \begin_inset Flex Code
23305 status collapsed
23306
23307 \begin_layout Plain Layout
23308 stdciteformats.inc
23309 \end_layout
23310
23311 \end_inset
23312
23313  and the diverse 
23314 \begin_inset Flex Code
23315 status collapsed
23316
23317 \begin_layout Plain Layout
23318 *.citeengine
23319 \end_layout
23320
23321 \end_inset
23322
23323  files.
23324  Note that these are not macros, in the sense just defined.
23325  They will not be expanded.
23326 \end_layout
23327
23328 \begin_layout Standard
23329 So here then is an example that uses several of these features:
23330 \begin_inset VSpace defskip
23331 \end_inset
23332
23333
23334 \end_layout
23335
23336 \begin_layout Standard
23337 \noindent
23338
23339 \family sans
23340 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
23341 \end_layout
23342
23343 \begin_layout Standard
23344 \begin_inset VSpace defskip
23345 \end_inset
23346
23347 This defines a macro that prints the author, followed by a comma, if the
23348  
23349 \begin_inset Flex Code
23350 status collapsed
23351
23352 \begin_layout Plain Layout
23353 author
23354 \end_layout
23355
23356 \end_inset
23357
23358  key is defined, or else prints the name of the editor, followed by the
23359  
23360 \begin_inset Flex Code
23361 status collapsed
23362
23363 \begin_layout Plain Layout
23364 B_edtext
23365 \end_layout
23366
23367 \end_inset
23368
23369  or its translation (it is by default 
23370 \begin_inset Quotes eld
23371 \end_inset
23372
23373 ed.
23374 \begin_inset Quotes erd
23375 \end_inset
23376
23377 ), if the 
23378 \begin_inset Flex Code
23379 status collapsed
23380
23381 \begin_layout Plain Layout
23382 editor
23383 \end_layout
23384
23385 \end_inset
23386
23387  key is defined.
23388  Note that this is in fact defined in 
23389 \begin_inset Flex Code
23390 status collapsed
23391
23392 \begin_layout Plain Layout
23393 stdciteformats.inc
23394 \end_layout
23395
23396 \end_inset
23397
23398 , so you can use it in your own definitions, or re-definitions, if you load
23399  that file first.
23400 \end_layout
23401
23402 \begin_layout Section
23403 \begin_inset CommandInset label
23404 LatexCommand label
23405 name "sec:Tags-for-XHTML"
23406
23407 \end_inset
23408
23409 Tags for XHTML output
23410 \end_layout
23411
23412 \begin_layout Standard
23413 As with \SpecialChar LaTeX
23414  or DocBook, the format of \SpecialChar LyX
23415 's XHTML output is also controlled by
23416  layout information.
23417  In general, \SpecialChar LyX
23418  provides sensible defaults and, as mentioned earlier, it will
23419  even construct default CSS style rules from the other layout tags.
23420  For example, \SpecialChar LyX
23421  will attempt to use the information provided in the 
23422 \begin_inset Flex Code
23423 status collapsed
23424
23425 \begin_layout Plain Layout
23426 Font
23427 \end_layout
23428
23429 \end_inset
23430
23431  declaration for the Chapter style to write CSS that will appropriately
23432  format chapter headings.
23433 \end_layout
23434
23435 \begin_layout Standard
23436 In many cases, then, you may not have to do anything at all to get acceptable
23437  XHTML output for your own environments, custom insets, and so forth.
23438  But in some cases you will, and so \SpecialChar LyX
23439  provides a number of layout tags that
23440  can be used to customize the XHTML and CSS that are generated.
23441 \end_layout
23442
23443 \begin_layout Standard
23444 Note that there are two tags, 
23445 \begin_inset Flex Code
23446 status collapsed
23447
23448 \begin_layout Plain Layout
23449 HTMLPreamble
23450 \end_layout
23451
23452 \end_inset
23453
23454  and 
23455 \begin_inset Flex Code
23456 status collapsed
23457
23458 \begin_layout Plain Layout
23459 AddToHTMLPreamble
23460 \end_layout
23461
23462 \end_inset
23463
23464  that may appear outside style and inset declarations.
23465  See 
23466 \begin_inset CommandInset ref
23467 LatexCommand ref
23468 reference "subsec:General-text-class"
23469
23470 \end_inset
23471
23472  for details on these.
23473 \end_layout
23474
23475 \begin_layout Subsection
23476 \begin_inset CommandInset label
23477 LatexCommand label
23478 name "subsec:Paragraph-Style-XHTML"
23479
23480 \end_inset
23481
23482 Paragraph styles
23483 \end_layout
23484
23485 \begin_layout Standard
23486 The sort of XHTML \SpecialChar LyX
23487  outputs for a paragraph depends upon whether we are dealing
23488  with a normal paragraph, a command, or an environment, where this is itself
23489  determined by the contents of the corresponding 
23490 \begin_inset Flex Code
23491 status collapsed
23492
23493 \begin_layout Plain Layout
23494 \SpecialChar LaTeX
23495 Type
23496 \end_layout
23497
23498 \end_inset
23499
23500  tag.
23501  
23502 \end_layout
23503
23504 \begin_layout Standard
23505 For a command or normal paragraph, the output XHTML has the following form:
23506 \end_layout
23507
23508 \begin_layout LyX-Code
23509
23510 \family sans
23511 <tag attr=
23512 \begin_inset Quotes erd
23513 \end_inset
23514
23515 value
23516 \begin_inset Quotes erd
23517 \end_inset
23518
23519 >
23520 \end_layout
23521
23522 \begin_layout LyX-Code
23523
23524 \family sans
23525 <labeltag attr=
23526 \begin_inset Quotes erd
23527 \end_inset
23528
23529 value
23530 \begin_inset Quotes erd
23531 \end_inset
23532
23533 >Label</labeltag>
23534 \end_layout
23535
23536 \begin_layout LyX-Code
23537
23538 \family sans
23539 Contents of the paragraph.
23540 \end_layout
23541
23542 \begin_layout LyX-Code
23543
23544 \family sans
23545 </tag>
23546 \end_layout
23547
23548 \begin_layout Standard
23549 The label tags are of course omitted if the paragraph does not have a label.
23550 \end_layout
23551
23552 \begin_layout Standard
23553 For an environment that is not some sort of list, the XHTML takes this form:
23554 \end_layout
23555
23556 \begin_layout LyX-Code
23557
23558 \family sans
23559 <tag attr=
23560 \begin_inset Quotes erd
23561 \end_inset
23562
23563 value
23564 \begin_inset Quotes erd
23565 \end_inset
23566
23567 >
23568 \end_layout
23569
23570 \begin_layout LyX-Code
23571
23572 \family sans
23573 <itemtag attr=
23574 \begin_inset Quotes erd
23575 \end_inset
23576
23577 value
23578 \begin_inset Quotes erd
23579 \end_inset
23580
23581 ><labeltag attr=
23582 \begin_inset Quotes erd
23583 \end_inset
23584
23585 value
23586 \begin_inset Quotes erd
23587 \end_inset
23588
23589 >Environment Label</labeltag>First paragraph.</itemtag>
23590 \end_layout
23591
23592 \begin_layout LyX-Code
23593
23594 \family sans
23595 <itemtag>Second paragraph.</itemtag>
23596 \end_layout
23597
23598 \begin_layout LyX-Code
23599
23600 \family sans
23601 </tag>
23602 \end_layout
23603
23604 \begin_layout Standard
23605 Note that the label is output only for the first paragraph, as it should
23606  be for a theorem, for example.
23607  
23608 \end_layout
23609
23610 \begin_layout Standard
23611 For a list, we have one of these forms:
23612 \end_layout
23613
23614 \begin_layout LyX-Code
23615
23616 \family sans
23617 <tag attr=
23618 \begin_inset Quotes erd
23619 \end_inset
23620
23621 value
23622 \begin_inset Quotes erd
23623 \end_inset
23624
23625 >
23626 \end_layout
23627
23628 \begin_layout LyX-Code
23629
23630 \family sans
23631 <itemtag attr=
23632 \begin_inset Quotes erd
23633 \end_inset
23634
23635 value
23636 \begin_inset Quotes erd
23637 \end_inset
23638
23639 ><labeltag attr=
23640 \begin_inset Quotes erd
23641 \end_inset
23642
23643 value
23644 \begin_inset Quotes erd
23645 \end_inset
23646
23647 >List Label</labeltag>First item.</itemtag>
23648 \end_layout
23649
23650 \begin_layout LyX-Code
23651
23652 \family sans
23653 <itemtag attr=
23654 \begin_inset Quotes erd
23655 \end_inset
23656
23657 value
23658 \begin_inset Quotes erd
23659 \end_inset
23660
23661 ><labeltag attr=
23662 \begin_inset Quotes erd
23663 \end_inset
23664
23665 value
23666 \begin_inset Quotes erd
23667 \end_inset
23668
23669 >List Label</labeltag>Second item.</itemtag>
23670 \end_layout
23671
23672 \begin_layout LyX-Code
23673
23674 \family sans
23675 </tag>
23676 \end_layout
23677
23678 \begin_layout LyX-Code
23679
23680 \end_layout
23681
23682 \begin_layout LyX-Code
23683
23684 \family sans
23685 <tag attr=
23686 \begin_inset Quotes erd
23687 \end_inset
23688
23689 value
23690 \begin_inset Quotes erd
23691 \end_inset
23692
23693 >
23694 \end_layout
23695
23696 \begin_layout LyX-Code
23697
23698 \family sans
23699 <labeltag attr=
23700 \begin_inset Quotes erd
23701 \end_inset
23702
23703 value
23704 \begin_inset Quotes erd
23705 \end_inset
23706
23707 >List Label</labeltag><itemtag attr=
23708 \begin_inset Quotes erd
23709 \end_inset
23710
23711 value
23712 \begin_inset Quotes erd
23713 \end_inset
23714
23715 >First item.</itemtag>
23716 \end_layout
23717
23718 \begin_layout LyX-Code
23719
23720 \family sans
23721 <labeltag attr=
23722 \begin_inset Quotes erd
23723 \end_inset
23724
23725 value
23726 \begin_inset Quotes erd
23727 \end_inset
23728
23729 >List Label</labeltag><itemtag attr=
23730 \begin_inset Quotes erd
23731 \end_inset
23732
23733 value
23734 \begin_inset Quotes erd
23735 \end_inset
23736
23737 >Second item.</itemtag>
23738 \end_layout
23739
23740 \begin_layout LyX-Code
23741
23742 \family sans
23743 </tag>
23744 \end_layout
23745
23746 \begin_layout Standard
23747 Note the different orders of 
23748 \begin_inset Flex Code
23749 status collapsed
23750
23751 \begin_layout Plain Layout
23752 labeltag
23753 \end_layout
23754
23755 \end_inset
23756
23757  and 
23758 \begin_inset Flex Code
23759 status collapsed
23760
23761 \begin_layout Plain Layout
23762 itemtag
23763 \end_layout
23764
23765 \end_inset
23766
23767 .
23768  Which order we get depends upon the setting of 
23769 \begin_inset Flex Code
23770 status collapsed
23771
23772 \begin_layout Plain Layout
23773 HTMLLabelFirst
23774 \end_layout
23775
23776 \end_inset
23777
23778 : If 
23779 \begin_inset Flex Code
23780 status collapsed
23781
23782 \begin_layout Plain Layout
23783 HTMLLabelFirst
23784 \end_layout
23785
23786 \end_inset
23787
23788  is false (the default), you get the first of these, with the label within
23789  the item; if true, you get the second, with the label outside the item.
23790 \end_layout
23791
23792 \begin_layout Standard
23793 The specific tags and attributes output for each paragraph type can be controlle
23794 d by means of the layout tags we are about to describe.
23795  As mentioned earlier, however, \SpecialChar LyX
23796  uses sensible defaults for many of these,
23797  so you often may not need to do very much to get good XHTML output.
23798  Think of the available tags as there so you can tweak things to your liking.
23799 \end_layout
23800
23801 \begin_layout Description
23802 \begin_inset Flex Code
23803 status collapsed
23804
23805 \begin_layout Plain Layout
23806 HTMLAttr
23807 \end_layout
23808
23809 \end_inset
23810
23811  [
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816 string
23817 \end_layout
23818
23819 \end_inset
23820
23821 ] Specifies attribute information to be output with the main tag.
23822  For example, 
23823 \begin_inset Quotes eld
23824 \end_inset
23825
23826
23827 \begin_inset Flex Code
23828 status collapsed
23829
23830 \begin_layout Plain Layout
23831 class=`mydiv'
23832 \end_layout
23833
23834 \end_inset
23835
23836
23837 \begin_inset Quotes erd
23838 \end_inset
23839
23840 .
23841  By default, \SpecialChar LyX
23842  will output 
23843 \begin_inset Quotes eld
23844 \end_inset
23845
23846
23847 \begin_inset Flex Code
23848 status collapsed
23849
23850 \begin_layout Plain Layout
23851 class=`layoutname'
23852 \end_layout
23853
23854 \end_inset
23855
23856
23857 \begin_inset Quotes erd
23858 \end_inset
23859
23860 , where 
23861 \begin_inset Flex Code
23862 status collapsed
23863
23864 \begin_layout Plain Layout
23865 layoutname
23866 \end_layout
23867
23868 \end_inset
23869
23870  is the \SpecialChar LyX
23871  name of the layout, made lowercase, for example: chapter.
23872  This should 
23873 \emph on
23874 not
23875 \emph default
23876  contain any style information.
23877  Use 
23878 \begin_inset Flex Code
23879 status collapsed
23880
23881 \begin_layout Plain Layout
23882 HTMLStyle
23883 \end_layout
23884
23885 \end_inset
23886
23887  for that purpose.
23888 \end_layout
23889
23890 \begin_layout Description
23891 \begin_inset Flex Code
23892 status collapsed
23893
23894 \begin_layout Plain Layout
23895 HTMLForceCSS
23896 \end_layout
23897
23898 \end_inset
23899
23900  [
23901 \begin_inset Flex Code
23902 status collapsed
23903
23904 \begin_layout Plain Layout
23905
23906 \emph on
23907 0
23908 \emph default
23909 ,1
23910 \end_layout
23911
23912 \end_inset
23913
23914 ] Whether to output the default CSS information \SpecialChar LyX
23915  generates for this layout,
23916  even if additional information is explicitly provided via 
23917 \begin_inset Flex Code
23918 status collapsed
23919
23920 \begin_layout Plain Layout
23921 HTMLStyle
23922 \end_layout
23923
23924 \end_inset
23925
23926 .
23927  Setting this to 
23928 \begin_inset Flex Code
23929 status collapsed
23930
23931 \begin_layout Plain Layout
23932 1
23933 \end_layout
23934
23935 \end_inset
23936
23937  allows you to alter or augment the generated CSS, rather than to override
23938  it completely.
23939  Default is 
23940 \begin_inset Flex Code
23941 status collapsed
23942
23943 \begin_layout Plain Layout
23944 0
23945 \end_layout
23946
23947 \end_inset
23948
23949 .
23950 \end_layout
23951
23952 \begin_layout Description
23953 \begin_inset Flex Code
23954 status collapsed
23955
23956 \begin_layout Plain Layout
23957 HTMLItem
23958 \end_layout
23959
23960 \end_inset
23961
23962  [
23963 \begin_inset Flex Code
23964 status collapsed
23965
23966 \begin_layout Plain Layout
23967 string
23968 \end_layout
23969
23970 \end_inset
23971
23972 ] The tag to be used for individual paragraphs of environments, replacing
23973  
23974 \begin_inset Flex Code
23975 status collapsed
23976
23977 \begin_layout Plain Layout
23978 itemtag
23979 \end_layout
23980
23981 \end_inset
23982
23983  in the examples above.
23984  Defaults to 
23985 \begin_inset Flex Code
23986 status collapsed
23987
23988 \begin_layout Plain Layout
23989 div
23990 \end_layout
23991
23992 \end_inset
23993
23994 .
23995 \end_layout
23996
23997 \begin_layout Description
23998 \begin_inset Flex Code
23999 status collapsed
24000
24001 \begin_layout Plain Layout
24002 HTMLItemAttr
24003 \end_layout
24004
24005 \end_inset
24006
24007  [
24008 \begin_inset Flex Code
24009 status collapsed
24010
24011 \begin_layout Plain Layout
24012 string
24013 \end_layout
24014
24015 \end_inset
24016
24017 ] Attributes for the item tag.
24018  Defaults to
24019 \begin_inset Newline newline
24020 \end_inset
24021
24022
24023 \begin_inset Quotes eld
24024 \end_inset
24025
24026
24027 \begin_inset Flex Code
24028 status collapsed
24029
24030 \begin_layout Plain Layout
24031 class=`layoutname_item'
24032 \end_layout
24033
24034 \end_inset
24035
24036
24037 \begin_inset Quotes erd
24038 \end_inset
24039
24040 .
24041  This should 
24042 \emph on
24043 not
24044 \emph default
24045  contain any style information.
24046  Use 
24047 \begin_inset Flex Code
24048 status collapsed
24049
24050 \begin_layout Plain Layout
24051 HTMLStyle
24052 \end_layout
24053
24054 \end_inset
24055
24056  for that purpose.
24057 \end_layout
24058
24059 \begin_layout Description
24060 \begin_inset Flex Code
24061 status collapsed
24062
24063 \begin_layout Plain Layout
24064 HTMLLabel
24065 \end_layout
24066
24067 \end_inset
24068
24069  [
24070 \begin_inset Flex Code
24071 status collapsed
24072
24073 \begin_layout Plain Layout
24074 string
24075 \end_layout
24076
24077 \end_inset
24078
24079 ] The tag to be used for paragraph and item labels, replacing 
24080 \begin_inset Flex Code
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084 labeltag
24085 \end_layout
24086
24087 \end_inset
24088
24089  in the examples above.
24090  Defaults to 
24091 \begin_inset Flex Code
24092 status collapsed
24093
24094 \begin_layout Plain Layout
24095 span
24096 \end_layout
24097
24098 \end_inset
24099
24100 , unless 
24101 \begin_inset Flex Code
24102 status collapsed
24103
24104 \begin_layout Plain Layout
24105 LabelType
24106 \end_layout
24107
24108 \end_inset
24109
24110  is either 
24111 \begin_inset Flex Code
24112 status collapsed
24113
24114 \begin_layout Plain Layout
24115 Top_Environment
24116 \end_layout
24117
24118 \end_inset
24119
24120  or 
24121 \begin_inset Flex Code
24122 status collapsed
24123
24124 \begin_layout Plain Layout
24125 Centered_Top_Environment
24126 \end_layout
24127
24128 \end_inset
24129
24130 , in which case it defaults to 
24131 \begin_inset Flex Code
24132 status collapsed
24133
24134 \begin_layout Plain Layout
24135 div
24136 \end_layout
24137
24138 \end_inset
24139
24140 .
24141 \end_layout
24142
24143 \begin_layout Description
24144 \begin_inset Flex Code
24145 status collapsed
24146
24147 \begin_layout Plain Layout
24148 HTMLLabelAttr
24149 \end_layout
24150
24151 \end_inset
24152
24153  [
24154 \begin_inset Flex Code
24155 status collapsed
24156
24157 \begin_layout Plain Layout
24158 string
24159 \end_layout
24160
24161 \end_inset
24162
24163 ] Attributes for the label tag.
24164  Defaults to
24165 \begin_inset Newline newline
24166 \end_inset
24167
24168
24169 \begin_inset Quotes eld
24170 \end_inset
24171
24172
24173 \begin_inset Flex Code
24174 status collapsed
24175
24176 \begin_layout Plain Layout
24177 class=`layoutname_label'
24178 \end_layout
24179
24180 \end_inset
24181
24182
24183 \begin_inset Quotes erd
24184 \end_inset
24185
24186 .
24187  This should 
24188 \emph on
24189 not
24190 \emph default
24191  contain any style information.
24192  Use 
24193 \begin_inset Flex Code
24194 status collapsed
24195
24196 \begin_layout Plain Layout
24197 HTMLStyle
24198 \end_layout
24199
24200 \end_inset
24201
24202  for that purpose.
24203 \end_layout
24204
24205 \begin_layout Description
24206 \begin_inset Flex Code
24207 status collapsed
24208
24209 \begin_layout Plain Layout
24210 HTMLLabelFirst
24211 \end_layout
24212
24213 \end_inset
24214
24215  [
24216 \begin_inset Flex Code
24217 status collapsed
24218
24219 \begin_layout Plain Layout
24220
24221 \emph on
24222 0
24223 \emph default
24224 ,1
24225 \end_layout
24226
24227 \end_inset
24228
24229 ] Meaningful only for list-like environments, this tag controls whether
24230  the label tag is output before or inside the item tag.
24231  This is used, for example, in the description environment, where we want
24232  `
24233 \begin_inset Flex Code
24234 status collapsed
24235
24236 \begin_layout Plain Layout
24237 <dt>\SpecialChar ldots
24238 </dt><dd>\SpecialChar ldots
24239 </dd>
24240 \end_layout
24241
24242 \end_inset
24243
24244 .
24245  Default is 
24246 \begin_inset Flex Code
24247 status collapsed
24248
24249 \begin_layout Plain Layout
24250 0
24251 \end_layout
24252
24253 \end_inset
24254
24255 : The label tag is output inside the item tag.
24256 \end_layout
24257
24258 \begin_layout Description
24259 \begin_inset Flex Code
24260 status collapsed
24261
24262 \begin_layout Plain Layout
24263 HTMLPreamble
24264 \end_layout
24265
24266 \end_inset
24267
24268  Information to be output in the 
24269 \begin_inset Flex Code
24270 status collapsed
24271
24272 \begin_layout Plain Layout
24273 <head>
24274 \end_layout
24275
24276 \end_inset
24277
24278  section when this style is used.
24279  This might, for example, be used to include a 
24280 \begin_inset Flex Code
24281 status collapsed
24282
24283 \begin_layout Plain Layout
24284 <script>
24285 \end_layout
24286
24287 \end_inset
24288
24289  block defining an 
24290 \begin_inset Flex Code
24291 status collapsed
24292
24293 \begin_layout Plain Layout
24294 onclick
24295 \end_layout
24296
24297 \end_inset
24298
24299  handler.
24300 \end_layout
24301
24302 \begin_layout Description
24303 \begin_inset Flex Code
24304 status collapsed
24305
24306 \begin_layout Plain Layout
24307 HTMLStyle
24308 \end_layout
24309
24310 \end_inset
24311
24312  CSS style information to be included when this style is used.
24313  Note that this will automatically be wrapped in a layout-generated 
24314 \begin_inset Flex Code
24315 status collapsed
24316
24317 \begin_layout Plain Layout
24318 <style>
24319 \end_layout
24320
24321 \end_inset
24322
24323  block, so only the CSS itself need be included.
24324  Must end with 
24325 \begin_inset Flex Code
24326 status collapsed
24327
24328 \begin_layout Plain Layout
24329 EndHTMLStyle
24330 \end_layout
24331
24332 \end_inset
24333
24334 .
24335 \end_layout
24336
24337 \begin_layout Description
24338 \begin_inset Flex Code
24339 status collapsed
24340
24341 \begin_layout Plain Layout
24342 HTMLTag
24343 \end_layout
24344
24345 \end_inset
24346
24347  [
24348 \begin_inset Flex Code
24349 status collapsed
24350
24351 \begin_layout Plain Layout
24352 string
24353 \end_layout
24354
24355 \end_inset
24356
24357 ] The tag to be used for the main label, replacing 
24358 \begin_inset Flex Code
24359 status collapsed
24360
24361 \begin_layout Plain Layout
24362 tag
24363 \end_layout
24364
24365 \end_inset
24366
24367  in the examples above.
24368  Defaults to 
24369 \begin_inset Flex Code
24370 status collapsed
24371
24372 \begin_layout Plain Layout
24373 div
24374 \end_layout
24375
24376 \end_inset
24377
24378 .
24379 \end_layout
24380
24381 \begin_layout Description
24382 \begin_inset Flex Code
24383 status collapsed
24384
24385 \begin_layout Plain Layout
24386 HTMLTitle
24387 \end_layout
24388
24389 \end_inset
24390
24391  [
24392 \begin_inset Flex Code
24393 status collapsed
24394
24395 \begin_layout Plain Layout
24396
24397 \emph on
24398 0
24399 \emph default
24400 ,1
24401 \end_layout
24402
24403 \end_inset
24404
24405 ] Marks this style as the one to be used to generate the 
24406 \begin_inset Flex Code
24407 status collapsed
24408
24409 \begin_layout Plain Layout
24410 <title>
24411 \end_layout
24412
24413 \end_inset
24414
24415  tag for the XHTML file.
24416  By default, it is false.
24417  The 
24418 \begin_inset Flex Code
24419 status collapsed
24420
24421 \begin_layout Plain Layout
24422 stdtitle.inc
24423 \end_layout
24424
24425 \end_inset
24426
24427  file sets it to true for the 
24428 \begin_inset Flex Code
24429 status collapsed
24430
24431 \begin_layout Plain Layout
24432 title
24433 \end_layout
24434
24435 \end_inset
24436
24437  environment.
24438  
24439 \end_layout
24440
24441 \begin_layout Subsection
24442 InsetLayout XHTML
24443 \end_layout
24444
24445 \begin_layout Standard
24446 The XHTML output of insets can also be controlled by information in layout
24447  files.
24448 \begin_inset Foot
24449 status collapsed
24450
24451 \begin_layout Plain Layout
24452 At present, this is true only for 
24453 \begin_inset Quotes eld
24454 \end_inset
24455
24456 text
24457 \begin_inset Quotes erd
24458 \end_inset
24459
24460  insets (insets you can type into) and is not true for 
24461 \begin_inset Quotes eld
24462 \end_inset
24463
24464 command
24465 \begin_inset Quotes erd
24466 \end_inset
24467
24468  insets (insets that are associated with dialog boxes).
24469 \end_layout
24470
24471 \end_inset
24472
24473  Here, too, \SpecialChar LyX
24474  tries to provide sensible defaults, and it constructs default
24475  CSS style rules.
24476  But everything can be customized.
24477 \end_layout
24478
24479 \begin_layout Standard
24480 The XHTML \SpecialChar LyX
24481  outputs for an inset has the following form:
24482 \end_layout
24483
24484 \begin_layout LyX-Code
24485 <tag attr=
24486 \begin_inset Quotes erd
24487 \end_inset
24488
24489 value
24490 \begin_inset Quotes erd
24491 \end_inset
24492
24493 >
24494 \end_layout
24495
24496 \begin_layout LyX-Code
24497 <labeltag>Label</labeltag>
24498 \end_layout
24499
24500 \begin_layout LyX-Code
24501 <innertag attr=
24502 \begin_inset Quotes erd
24503 \end_inset
24504
24505 value
24506 \begin_inset Quotes erd
24507 \end_inset
24508
24509 >Contents of the inset.</innertag>
24510 \end_layout
24511
24512 \begin_layout LyX-Code
24513 </tag>
24514 \end_layout
24515
24516 \begin_layout Standard
24517 If the inset permits multiple paragraphs—that is, if 
24518 \begin_inset Flex Code
24519 status collapsed
24520
24521 \begin_layout Plain Layout
24522 MultiPar
24523 \end_layout
24524
24525 \end_inset
24526
24527  is true—then the contents of the inset will itself be output as paragraphs
24528  formatted according to the styles used for those paragraphs (standard,
24529  quote, and the like).
24530  The label tag is of course omitted if the paragraph does not have a label
24531  and, at present, is always 
24532 \begin_inset Flex Code
24533 status collapsed
24534
24535 \begin_layout Plain Layout
24536 span
24537 \end_layout
24538
24539 \end_inset
24540
24541 .
24542  The inner tag is optional and, by default, does not appear.
24543 \end_layout
24544
24545 \begin_layout Standard
24546 The specific tags and attributes output for each inset can be controlled
24547  by means of the following layout tags.
24548 \end_layout
24549
24550 \begin_layout Description
24551 \begin_inset Flex Code
24552 status collapsed
24553
24554 \begin_layout Plain Layout
24555 HTMLAttr
24556 \end_layout
24557
24558 \end_inset
24559
24560  [
24561 \begin_inset Flex Code
24562 status collapsed
24563
24564 \begin_layout Plain Layout
24565 string
24566 \end_layout
24567
24568 \end_inset
24569
24570 ] Specifies attribute information to be output with the main tag.
24571  For example, 
24572 \begin_inset Quotes eld
24573 \end_inset
24574
24575
24576 \begin_inset Flex Code
24577 status collapsed
24578
24579 \begin_layout Plain Layout
24580 class=`myinset' onclick=`\SpecialChar ldots
24581 '
24582 \end_layout
24583
24584 \end_inset
24585
24586
24587 \begin_inset Quotes erd
24588 \end_inset
24589
24590 .
24591  By default, \SpecialChar LyX
24592  will output 
24593 \begin_inset Quotes eld
24594 \end_inset
24595
24596
24597 \begin_inset Flex Code
24598 status collapsed
24599
24600 \begin_layout Plain Layout
24601 class=`insetname'
24602 \end_layout
24603
24604 \end_inset
24605
24606
24607 \begin_inset Quotes erd
24608 \end_inset
24609
24610 , where 
24611 \begin_inset Flex Code
24612 status collapsed
24613
24614 \begin_layout Plain Layout
24615 insetname
24616 \end_layout
24617
24618 \end_inset
24619
24620  is the \SpecialChar LyX
24621  name of the inset, made lowercase and with non-alphanumeric characters
24622  converted to underscores, for example: footnote.
24623 \end_layout
24624
24625 \begin_layout Description
24626 \begin_inset Flex Code
24627 status collapsed
24628
24629 \begin_layout Plain Layout
24630 HTMLForceCSS
24631 \end_layout
24632
24633 \end_inset
24634
24635  [
24636 \begin_inset Flex Code
24637 status collapsed
24638
24639 \begin_layout Plain Layout
24640
24641 \emph on
24642 0
24643 \emph default
24644 ,1
24645 \end_layout
24646
24647 \end_inset
24648
24649 ] Whether to output the default CSS information \SpecialChar LyX
24650  generates for this layout,
24651  even if additional information is explicitly provided via 
24652 \begin_inset Flex Code
24653 status collapsed
24654
24655 \begin_layout Plain Layout
24656 HTMLStyle
24657 \end_layout
24658
24659 \end_inset
24660
24661 .
24662  Setting this to 
24663 \begin_inset Flex Code
24664 status collapsed
24665
24666 \begin_layout Plain Layout
24667 1
24668 \end_layout
24669
24670 \end_inset
24671
24672  allows you to alter or augment the generated CSS, rather than to override
24673  it completely.
24674  Default is 0.
24675 \end_layout
24676
24677 \begin_layout Description
24678 \begin_inset Flex Code
24679 status collapsed
24680
24681 \begin_layout Plain Layout
24682 HTMLInnerAttr
24683 \end_layout
24684
24685 \end_inset
24686
24687  [
24688 \begin_inset Flex Code
24689 status collapsed
24690
24691 \begin_layout Plain Layout
24692 string
24693 \end_layout
24694
24695 \end_inset
24696
24697 ] Attributes for the inner tag.
24698  Defaults to
24699 \begin_inset Newline newline
24700 \end_inset
24701
24702
24703 \begin_inset Quotes eld
24704 \end_inset
24705
24706
24707 \begin_inset Flex Code
24708 status collapsed
24709
24710 \begin_layout Plain Layout
24711 class=`insetname_inner'
24712 \end_layout
24713
24714 \end_inset
24715
24716
24717 \begin_inset Quotes erd
24718 \end_inset
24719
24720 .
24721 \end_layout
24722
24723 \begin_layout Description
24724 \begin_inset Flex Code
24725 status collapsed
24726
24727 \begin_layout Plain Layout
24728 HTMLInnerTag
24729 \end_layout
24730
24731 \end_inset
24732
24733  [
24734 \begin_inset Flex Code
24735 status collapsed
24736
24737 \begin_layout Plain Layout
24738 string
24739 \end_layout
24740
24741 \end_inset
24742
24743 ] The inner tag, replacing 
24744 \begin_inset Flex Code
24745 status collapsed
24746
24747 \begin_layout Plain Layout
24748 innertag
24749 \end_layout
24750
24751 \end_inset
24752
24753  in the examples above.
24754  By default, there is none.
24755 \end_layout
24756
24757 \begin_layout Description
24758 \begin_inset Flex Code
24759 status collapsed
24760
24761 \begin_layout Plain Layout
24762 HTMLIsBlock
24763 \end_layout
24764
24765 \end_inset
24766
24767  [
24768 \begin_inset Flex Code
24769 status collapsed
24770
24771 \begin_layout Plain Layout
24772 0,
24773 \emph on
24774 1
24775 \end_layout
24776
24777 \end_inset
24778
24779 ] Whether this inset represents a standalone block of text (such as a footnote)
24780  or instead represents material that is included in the surrounding text
24781  (such as a branch).
24782  Defaults to 1.
24783 \end_layout
24784
24785 \begin_layout Description
24786 \begin_inset Flex Code
24787 status collapsed
24788
24789 \begin_layout Plain Layout
24790 HTMLLabel
24791 \end_layout
24792
24793 \end_inset
24794
24795  [
24796 \begin_inset Flex Code
24797 status collapsed
24798
24799 \begin_layout Plain Layout
24800 string
24801 \end_layout
24802
24803 \end_inset
24804
24805 ] A label for this inset, possibly including a reference to a counter.
24806  For example, for footnote, it might be: 
24807 \begin_inset Flex Code
24808 status collapsed
24809
24810 \begin_layout Plain Layout
24811
24812 \backslash
24813 arabic{footnote}
24814 \end_layout
24815
24816 \end_inset
24817
24818 .
24819  This is optional, and there is no default.
24820 \end_layout
24821
24822 \begin_layout Description
24823 \begin_inset Flex Code
24824 status collapsed
24825
24826 \begin_layout Plain Layout
24827 HTMLPreamble
24828 \end_layout
24829
24830 \end_inset
24831
24832  Information to be output in the 
24833 \begin_inset Flex Code
24834 status collapsed
24835
24836 \begin_layout Plain Layout
24837 <head>
24838 \end_layout
24839
24840 \end_inset
24841
24842  section when this style is used.
24843  This might, for example, be used to include a 
24844 \begin_inset Flex Code
24845 status collapsed
24846
24847 \begin_layout Plain Layout
24848 <script>
24849 \end_layout
24850
24851 \end_inset
24852
24853  block defining an 
24854 \begin_inset Flex Code
24855 status collapsed
24856
24857 \begin_layout Plain Layout
24858 onclick
24859 \end_layout
24860
24861 \end_inset
24862
24863  handler.
24864 \end_layout
24865
24866 \begin_layout Description
24867 \begin_inset Flex Code
24868 status collapsed
24869
24870 \begin_layout Plain Layout
24871 HTMLStyle
24872 \end_layout
24873
24874 \end_inset
24875
24876  CSS style information to be included when this style is used.
24877  Note that this will automatically be wrapped in a layout-generated 
24878 \begin_inset Flex Code
24879 status collapsed
24880
24881 \begin_layout Plain Layout
24882 <style>
24883 \end_layout
24884
24885 \end_inset
24886
24887  block, so only the CSS itself need be included.
24888 \end_layout
24889
24890 \begin_layout Description
24891 \begin_inset Flex Code
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 HTMLTag
24896 \end_layout
24897
24898 \end_inset
24899
24900  [
24901 \begin_inset Flex Code
24902 status collapsed
24903
24904 \begin_layout Plain Layout
24905 string
24906 \end_layout
24907
24908 \end_inset
24909
24910 ] The tag to be used for the main label, replacing 
24911 \begin_inset Flex Code
24912 status collapsed
24913
24914 \begin_layout Plain Layout
24915 tag
24916 \end_layout
24917
24918 \end_inset
24919
24920  in the examples above.
24921  The default depends upon the setting of 
24922 \begin_inset Flex Code
24923 status collapsed
24924
24925 \begin_layout Plain Layout
24926 MultiPar
24927 \end_layout
24928
24929 \end_inset
24930
24931 : If 
24932 \begin_inset Flex Code
24933 status collapsed
24934
24935 \begin_layout Plain Layout
24936 MultiPar
24937 \end_layout
24938
24939 \end_inset
24940
24941  is true, the default is 
24942 \begin_inset Flex Code
24943 status collapsed
24944
24945 \begin_layout Plain Layout
24946 div
24947 \end_layout
24948
24949 \end_inset
24950
24951 ; if it is false, the default is 
24952 \begin_inset Flex Code
24953 status collapsed
24954
24955 \begin_layout Plain Layout
24956 span
24957 \end_layout
24958
24959 \end_inset
24960
24961 .
24962 \end_layout
24963
24964 \begin_layout Subsection
24965 Float XHTML
24966 \end_layout
24967
24968 \begin_layout Standard
24969 The XHTML output for floats too can be controlled by layout information.
24970  The output has the following form:
24971 \end_layout
24972
24973 \begin_layout LyX-Code
24974 <tag attr=
24975 \begin_inset Quotes erd
24976 \end_inset
24977
24978 value
24979 \begin_inset Quotes erd
24980 \end_inset
24981
24982 >
24983 \end_layout
24984
24985 \begin_layout LyX-Code
24986 Contents of the float.
24987 \end_layout
24988
24989 \begin_layout LyX-Code
24990 </tag>
24991 \end_layout
24992
24993 \begin_layout Standard
24994 The caption, if there is one, is a separate inset and will be output as
24995  such.
24996  Its appearance can be controlled via the InsetLayout for caption insets.
24997  
24998 \end_layout
24999
25000 \begin_layout Description
25001 \begin_inset Flex Code
25002 status collapsed
25003
25004 \begin_layout Plain Layout
25005 HTMLAttr
25006 \end_layout
25007
25008 \end_inset
25009
25010  [
25011 \begin_inset Flex Code
25012 status collapsed
25013
25014 \begin_layout Plain Layout
25015 string
25016 \end_layout
25017
25018 \end_inset
25019
25020 ] Specifies attribute information to be output with the main tag.
25021  For example, 
25022 \begin_inset Quotes eld
25023 \end_inset
25024
25025
25026 \begin_inset Flex Code
25027 status collapsed
25028
25029 \begin_layout Plain Layout
25030 class=`myfloat' onclick=`\SpecialChar ldots
25031 '
25032 \end_layout
25033
25034 \end_inset
25035
25036
25037 \begin_inset Quotes erd
25038 \end_inset
25039
25040 .
25041  By default, \SpecialChar LyX
25042  will output 
25043 \begin_inset Quotes eld
25044 \end_inset
25045
25046
25047 \begin_inset Flex Code
25048 status collapsed
25049
25050 \begin_layout Plain Layout
25051 class=`float float-floattype'
25052 \end_layout
25053
25054 \end_inset
25055
25056
25057 \begin_inset Quotes erd
25058 \end_inset
25059
25060 , where 
25061 \begin_inset Flex Code
25062 status collapsed
25063
25064 \begin_layout Plain Layout
25065 floattype
25066 \end_layout
25067
25068 \end_inset
25069
25070  is \SpecialChar LyX
25071 's name for this type of float, as determined by the float declaration
25072  (see 
25073 \begin_inset CommandInset ref
25074 LatexCommand ref
25075 reference "subsec:Floats"
25076
25077 \end_inset
25078
25079 ), though made lowercase and with non-alphanumeric characters converted
25080  to underscores, for example: float-table.
25081 \end_layout
25082
25083 \begin_layout Description
25084 \begin_inset Flex Code
25085 status collapsed
25086
25087 \begin_layout Plain Layout
25088 HTMLStyle
25089 \end_layout
25090
25091 \end_inset
25092
25093  CSS style information to be included when this float is used.
25094  Note that this will automatically be wrapped in a layout-generated 
25095 \begin_inset Flex Code
25096 status collapsed
25097
25098 \begin_layout Plain Layout
25099 <style>
25100 \end_layout
25101
25102 \end_inset
25103
25104  block, so only the CSS itself need be included.
25105 \end_layout
25106
25107 \begin_layout Description
25108 \begin_inset Flex Code
25109 status collapsed
25110
25111 \begin_layout Plain Layout
25112 HTMLTag
25113 \end_layout
25114
25115 \end_inset
25116
25117  [
25118 \begin_inset Flex Code
25119 status collapsed
25120
25121 \begin_layout Plain Layout
25122 string
25123 \end_layout
25124
25125 \end_inset
25126
25127 ] The tag to be used for this float, replacing 
25128 \begin_inset Quotes eld
25129 \end_inset
25130
25131
25132 \begin_inset Flex Code
25133 status collapsed
25134
25135 \begin_layout Plain Layout
25136 tag
25137 \end_layout
25138
25139 \end_inset
25140
25141
25142 \begin_inset Quotes erd
25143 \end_inset
25144
25145  in the example above.
25146  The default is 
25147 \begin_inset Flex Code
25148 status collapsed
25149
25150 \begin_layout Plain Layout
25151 div
25152 \end_layout
25153
25154 \end_inset
25155
25156  and will rarely need changing.
25157 \end_layout
25158
25159 \begin_layout Subsection
25160 Bibliography formatting
25161 \end_layout
25162
25163 \begin_layout Standard
25164 The bibliography can be formatted using 
25165 \begin_inset Flex Code
25166 status collapsed
25167
25168 \begin_layout Plain Layout
25169 CiteFormat
25170 \end_layout
25171
25172 \end_inset
25173
25174  blocks.
25175  See 
25176 \begin_inset CommandInset ref
25177 LatexCommand ref
25178 reference "subsec:Citation-format-description"
25179
25180 \end_inset
25181
25182  for the details.
25183 \end_layout
25184
25185 \begin_layout Subsection
25186 \SpecialChar LyX
25187 -generated CSS
25188 \end_layout
25189
25190 \begin_layout Standard
25191 We have several times mentioned that \SpecialChar LyX
25192  will generate default CSS style rules
25193  for both insets and paragraph styles, based upon the other layout information
25194  that is provided.
25195  In this section, we shall say a word about which layout information \SpecialChar LyX
25196  uses
25197  and how.
25198 \end_layout
25199
25200 \begin_layout Standard
25201 At present, \SpecialChar LyX
25202  auto-generates CSS only for font information, making use of
25203  the 
25204 \begin_inset Flex Code
25205 status collapsed
25206
25207 \begin_layout Plain Layout
25208 Family
25209 \end_layout
25210
25211 \end_inset
25212
25213
25214 \begin_inset Flex Code
25215 status collapsed
25216
25217 \begin_layout Plain Layout
25218 Series
25219 \end_layout
25220
25221 \end_inset
25222
25223
25224 \begin_inset Flex Code
25225 status collapsed
25226
25227 \begin_layout Plain Layout
25228 Shape
25229 \end_layout
25230
25231 \end_inset
25232
25233 , and 
25234 \begin_inset Flex Code
25235 status collapsed
25236
25237 \begin_layout Plain Layout
25238 Size
25239 \end_layout
25240
25241 \end_inset
25242
25243  specified in the 
25244 \begin_inset Flex Code
25245 status collapsed
25246
25247 \begin_layout Plain Layout
25248 Font
25249 \end_layout
25250
25251 \end_inset
25252
25253  declaration (see 
25254 \begin_inset CommandInset ref
25255 LatexCommand ref
25256 reference "subsec:Font-description"
25257
25258 \end_inset
25259
25260 ).
25261  The translation is mostly straightforward and obvious.
25262  For example, 
25263 \begin_inset Quotes eld
25264 \end_inset
25265
25266
25267 \begin_inset Flex Code
25268 status collapsed
25269
25270 \begin_layout Plain Layout
25271 Family Sans
25272 \end_layout
25273
25274 \end_inset
25275
25276
25277 \begin_inset Quotes erd
25278 \end_inset
25279
25280  becomes 
25281 \begin_inset Quotes eld
25282 \end_inset
25283
25284
25285 \begin_inset Flex Code
25286 status collapsed
25287
25288 \begin_layout Plain Layout
25289 font-family: sans-serif;
25290 \end_layout
25291
25292 \end_inset
25293
25294
25295 \begin_inset Quotes erd
25296 \end_inset
25297
25298 .
25299  The correspondence of \SpecialChar LyX
25300  sizes and CSS sizes is a little less obvious but
25301  nonetheless intuitive.
25302  See the 
25303 \begin_inset Flex Code
25304 status collapsed
25305
25306 \begin_layout Plain Layout
25307 getSizeCSS()
25308 \end_layout
25309
25310 \end_inset
25311
25312  function in 
25313 \begin_inset Flex URL
25314 status collapsed
25315
25316 \begin_layout Plain Layout
25317
25318 src/FontInfo.cpp
25319 \end_layout
25320
25321 \end_inset
25322
25323  for the details.
25324 \end_layout
25325
25326 \begin_layout Chapter
25327 Including External Material
25328 \begin_inset CommandInset label
25329 LatexCommand label
25330 name "chap:Including-External-Material"
25331
25332 \end_inset
25333
25334
25335 \end_layout
25336
25337 \begin_layout Standard
25338 \begin_inset Box Shadowbox
25339 position "t"
25340 hor_pos "c"
25341 has_inner_box 1
25342 inner_pos "t"
25343 use_parbox 0
25344 use_makebox 0
25345 width "100col%"
25346 special "none"
25347 height "1in"
25348 height_special "totalheight"
25349 thickness "0.4pt"
25350 separation "3pt"
25351 shadowsize "4pt"
25352 framecolor "black"
25353 backgroundcolor "none"
25354 status open
25355
25356 \begin_layout Plain Layout
25357 WARNING: This portion of the documentation has not been updated for some
25358  time.
25359  We certainly hope that it is still accurate, but there are no guarantees.
25360 \end_layout
25361
25362 \end_inset
25363
25364
25365 \end_layout
25366
25367 \begin_layout Standard
25368 The use of material from sources external to \SpecialChar LyX
25369  is covered in detail in the
25370  
25371 \emph on
25372 Embedded Objects
25373 \emph default
25374  manual.
25375  This part of the manual covers what needs to happen behind the scenes for
25376  new sorts of material to be included.
25377 \end_layout
25378
25379 \begin_layout Section
25380 How does it work?
25381 \end_layout
25382
25383 \begin_layout Standard
25384 The external material feature is based on the concept of a 
25385 \emph on
25386 template
25387 \emph default
25388 .
25389  A template is a specification of how \SpecialChar LyX
25390  should interface with a certain kind
25391  of material.
25392  As bundled, \SpecialChar LyX
25393  comes with predefined templates for Xfig figures, various
25394  raster format images, chess diagrams, and LilyPond music notation.
25395  You can check the actual list by using the menu 
25396 \begin_inset Flex Noun
25397 status collapsed
25398
25399 \begin_layout Plain Layout
25400 Insert\SpecialChar menuseparator
25401 File\SpecialChar menuseparator
25402 External Material
25403 \end_layout
25404
25405 \end_inset
25406
25407 .
25408  Furthermore, it is possible to roll your own template to support a specific
25409  kind of material.
25410  Later we'll describe in more detail what is involved, and hopefully you
25411  will submit all the templates you create so we can include them in a later
25412  \SpecialChar LyX
25413  version.
25414 \end_layout
25415
25416 \begin_layout Standard
25417 Another basic idea of the external material feature is to distinguish between
25418  the original file that serves as a base for final material and the produced
25419  file that is included in your exported or printed document.
25420  For example, consider the case of a figure produced with 
25421 \begin_inset Flex Code
25422 status collapsed
25423
25424 \begin_layout Plain Layout
25425 Xfig
25426 \end_layout
25427
25428 \end_inset
25429
25430 .
25431  The Xfig application itself works on an original file with the 
25432 \begin_inset Flex Code
25433 status collapsed
25434
25435 \begin_layout Plain Layout
25436 .fig
25437 \end_layout
25438
25439 \end_inset
25440
25441  extension.
25442  Within Xfig, you create and change your figure, and when you are done,
25443  you save the 
25444 \begin_inset Flex Code
25445 status collapsed
25446
25447 \begin_layout Plain Layout
25448 fig
25449 \end_layout
25450
25451 \end_inset
25452
25453 -file.
25454  When you want to include the figure in your document, you invoke 
25455 \begin_inset Flex Code
25456 status collapsed
25457
25458 \begin_layout Plain Layout
25459 transfig
25460 \end_layout
25461
25462 \end_inset
25463
25464  in order to create a PostScript file that can readily be included in your
25465  \SpecialChar LaTeX
25466  file.
25467  In this case, the 
25468 \begin_inset Flex Code
25469 status collapsed
25470
25471 \begin_layout Plain Layout
25472 .fig
25473 \end_layout
25474
25475 \end_inset
25476
25477  file is the original file, and the PostScript file is the produced file.
25478 \end_layout
25479
25480 \begin_layout Standard
25481 This distinction is important in order to allow updating of the material
25482  while you are in the process of writing the document.
25483  Furthermore, it provides us with the flexibility that is needed to support
25484  multiple export formats.
25485  For instance, in the case of a plain text file, it is not exactly an award-winn
25486 ing idea to include the figure as raw PostScript.
25487  Instead, you would either prefer to just include a reference to the figure
25488  or try to invoke some graphics to ASCII converter to make the final result
25489  look similar to the real graphics.
25490  The external material management allows you to do this, because it is parametri
25491 zed on the different export formats that \SpecialChar LyX
25492  supports.
25493 \end_layout
25494
25495 \begin_layout Standard
25496 Besides supporting the production of different products according to the
25497  exported format, it supports tight integration with editing and viewing
25498  applications.
25499  In the case of an Xfig figure, you are able to invoke Xfig on the original
25500  file with a single click from within the external material dialog in \SpecialChar LyX
25501 ,
25502  and also preview the produced PostScript file with Ghostview with another
25503  click.
25504  No more fiddling around with the command line and/or file browsers to locate
25505  and manipulate the original or produced files.
25506  In this way, you are finally able to take full advantage of the many different
25507  applications that are relevant to use when you write your documents, and
25508  ultimately be more productive.
25509 \end_layout
25510
25511 \begin_layout Section
25512 The external template configuration files
25513 \end_layout
25514
25515 \begin_layout Standard
25516 It is relatively easy to add custom external template definitions to \SpecialChar LyX
25517 .
25518  However, be aware that doing this in an careless manner most probably 
25519 \emph on
25520 will
25521 \emph default
25522  introduce an easily exploitable security hole.
25523  So before you do this, please read the discussion about security in 
25524 \begin_inset CommandInset ref
25525 LatexCommand ref
25526 reference "sec:Security-discussion"
25527
25528 \end_inset
25529
25530 .
25531 \end_layout
25532
25533 \begin_layout Standard
25534 Having said that, we encourage you to submit any interesting templates that
25535  you create.
25536  
25537 \end_layout
25538
25539 \begin_layout Standard
25540 The external templates are defined in the 
25541 \begin_inset Flex Code
25542 status collapsed
25543
25544 \begin_layout Plain Layout
25545 *.xtemplate
25546 \end_layout
25547
25548 \end_inset
25549
25550  files that are stored in the 
25551 \begin_inset Flex Code
25552 status collapsed
25553
25554 \begin_layout Plain Layout
25555 LyXDir/lib/xtemplates/
25556 \end_layout
25557
25558 \end_inset
25559
25560  directory.
25561  Each template is defined in a file of its own.
25562  You can place your own templates in 
25563 \begin_inset Flex Code
25564 status collapsed
25565
25566 \begin_layout Plain Layout
25567 UserDir/xtemplates/
25568 \end_layout
25569
25570 \end_inset
25571
25572  or copy existing templates to that directory in order to modify them.
25573 \end_layout
25574
25575 \begin_layout Standard
25576 A typical template looks like this:
25577 \end_layout
25578
25579 \begin_layout LyX-Code
25580 Template XFig
25581 \end_layout
25582
25583 \begin_layout LyX-Code
25584 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
25585 \end_layout
25586
25587 \begin_layout LyX-Code
25588 HelpText
25589 \end_layout
25590
25591 \begin_layout LyX-Code
25592 An XFig figure.
25593 \end_layout
25594
25595 \begin_layout LyX-Code
25596 HelpTextEnd
25597 \end_layout
25598
25599 \begin_layout LyX-Code
25600 InputFormat fig
25601 \end_layout
25602
25603 \begin_layout LyX-Code
25604 FileFilter "*.fig"
25605 \end_layout
25606
25607 \begin_layout LyX-Code
25608 AutomaticProduction true
25609 \end_layout
25610
25611 \begin_layout LyX-Code
25612 Transform Rotate
25613 \end_layout
25614
25615 \begin_layout LyX-Code
25616 Transform Resize
25617 \end_layout
25618
25619 \begin_layout LyX-Code
25620 Format LaTeX
25621 \end_layout
25622
25623 \begin_layout LyX-Code
25624 TransformCommand Rotate RotationLatexCommand
25625 \end_layout
25626
25627 \begin_layout LyX-Code
25628 TransformCommand Resize ResizeLatexCommand
25629 \end_layout
25630
25631 \begin_layout LyX-Code
25632 Product "$$RotateFront$$ResizeFront
25633 \end_layout
25634
25635 \begin_layout LyX-Code
25636          
25637 \backslash
25638
25639 \backslash
25640 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
25641 \end_layout
25642
25643 \begin_layout LyX-Code
25644          $$ResizeBack$$RotateBack"
25645 \end_layout
25646
25647 \begin_layout LyX-Code
25648 UpdateFormat pstex
25649 \end_layout
25650
25651 \begin_layout LyX-Code
25652 UpdateResult "$$AbsPath$$Basename.pstex_t"
25653 \end_layout
25654
25655 \begin_layout LyX-Code
25656 Requirement "graphicx"
25657 \end_layout
25658
25659 \begin_layout LyX-Code
25660 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
25661 \end_layout
25662
25663 \begin_layout LyX-Code
25664 ReferencedFile latex "$$AbsPath$$Basename.eps"
25665 \end_layout
25666
25667 \begin_layout LyX-Code
25668 ReferencedFile dvi "$$AbsPath$$Basename.eps"
25669 \end_layout
25670
25671 \begin_layout LyX-Code
25672 FormatEnd
25673 \end_layout
25674
25675 \begin_layout LyX-Code
25676 Format PDFLaTeX
25677 \end_layout
25678
25679 \begin_layout LyX-Code
25680 TransformCommand Rotate RotationLatexCommand
25681 \end_layout
25682
25683 \begin_layout LyX-Code
25684 TransformCommand Resize ResizeLatexCommand
25685 \end_layout
25686
25687 \begin_layout LyX-Code
25688 Product "$$RotateFront$$ResizeFront
25689 \end_layout
25690
25691 \begin_layout LyX-Code
25692          
25693 \backslash
25694
25695 \backslash
25696 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
25697 \end_layout
25698
25699 \begin_layout LyX-Code
25700          $$ResizeBack$$RotateBack"
25701 \end_layout
25702
25703 \begin_layout LyX-Code
25704 UpdateFormat pdftex
25705 \end_layout
25706
25707 \begin_layout LyX-Code
25708 UpdateResult "$$AbsPath$$Basename.pdftex_t"
25709 \end_layout
25710
25711 \begin_layout LyX-Code
25712 Requirement "graphicx"
25713 \end_layout
25714
25715 \begin_layout LyX-Code
25716 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
25717 \end_layout
25718
25719 \begin_layout LyX-Code
25720 ReferencedFile latex "$$AbsPath$$Basename.pdf"
25721 \end_layout
25722
25723 \begin_layout LyX-Code
25724 FormatEnd
25725 \end_layout
25726
25727 \begin_layout LyX-Code
25728 Format Ascii
25729 \end_layout
25730
25731 \begin_layout LyX-Code
25732 Product "[XFig: $$FName]"
25733 \end_layout
25734
25735 \begin_layout LyX-Code
25736 FormatEnd
25737 \end_layout
25738
25739 \begin_layout LyX-Code
25740 Format DocBook
25741 \end_layout
25742
25743 \begin_layout LyX-Code
25744 Product "<graphic fileref=
25745 \backslash
25746 "$$AbsOrRelPathMaster$$Basename.eps
25747 \backslash
25748 ">
25749 \end_layout
25750
25751 \begin_layout LyX-Code
25752          </graphic>"
25753 \end_layout
25754
25755 \begin_layout LyX-Code
25756 UpdateFormat eps
25757 \end_layout
25758
25759 \begin_layout LyX-Code
25760 UpdateResult "$$AbsPath$$Basename.eps"
25761 \end_layout
25762
25763 \begin_layout LyX-Code
25764 ReferencedFile docbook "$$AbsPath$$Basename.eps"
25765 \end_layout
25766
25767 \begin_layout LyX-Code
25768 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
25769 \end_layout
25770
25771 \begin_layout LyX-Code
25772 FormatEnd
25773 \end_layout
25774
25775 \begin_layout LyX-Code
25776 TemplateEnd
25777 \end_layout
25778
25779 \begin_layout Standard
25780 As you can see, the template is enclosed in 
25781 \begin_inset Flex Code
25782 status collapsed
25783
25784 \begin_layout Plain Layout
25785 Template
25786 \end_layout
25787
25788 \end_inset
25789
25790  \SpecialChar ldots
25791  
25792 \begin_inset Flex Code
25793 status collapsed
25794
25795 \begin_layout Plain Layout
25796 TemplateEnd
25797 \end_layout
25798
25799 \end_inset
25800
25801 .
25802  It contains a header specifying some general settings and, for each supported
25803  primary document file format, a section 
25804 \begin_inset Flex Code
25805 status collapsed
25806
25807 \begin_layout Plain Layout
25808 Format
25809 \end_layout
25810
25811 \end_inset
25812
25813  \SpecialChar ldots
25814  
25815 \begin_inset Flex Code
25816 status collapsed
25817
25818 \begin_layout Plain Layout
25819 FormatEnd
25820 \end_layout
25821
25822 \end_inset
25823
25824 .
25825 \end_layout
25826
25827 \begin_layout Subsection
25828 The template header
25829 \end_layout
25830
25831 \begin_layout Description
25832 \begin_inset Flex Code
25833 status collapsed
25834
25835 \begin_layout Plain Layout
25836 AutomaticProduction
25837 \begin_inset space ~
25838 \end_inset
25839
25840 true|false
25841 \end_layout
25842
25843 \end_inset
25844
25845  Whether the file represented by the template must be generated by \SpecialChar LyX
25846 .
25847  This command must occur exactly once.
25848 \end_layout
25849
25850 \begin_layout Description
25851 \begin_inset Flex Code
25852 status collapsed
25853
25854 \begin_layout Plain Layout
25855 FileFilter
25856 \begin_inset space ~
25857 \end_inset
25858
25859 <pattern>
25860 \end_layout
25861
25862 \end_inset
25863
25864  A glob pattern that is used in the file dialog to filter out the desired
25865  files.
25866  If there is more than one possible file extension (e.
25867 \begin_inset space \thinspace{}
25868 \end_inset
25869
25870 g.
25871 \begin_inset space \space{}
25872 \end_inset
25873
25874 tgif has 
25875 \begin_inset Flex Code
25876 status collapsed
25877
25878 \begin_layout Plain Layout
25879 .obj
25880 \end_layout
25881
25882 \end_inset
25883
25884  and 
25885 \begin_inset Flex Code
25886 status collapsed
25887
25888 \begin_layout Plain Layout
25889 .tgo
25890 \end_layout
25891
25892 \end_inset
25893
25894 ), use something like 
25895 \begin_inset Flex Code
25896 status collapsed
25897
25898 \begin_layout Plain Layout
25899 "*.{obj,tgo}"
25900 \end_layout
25901
25902 \end_inset
25903
25904 .
25905  This command must occur exactly once.
25906 \end_layout
25907
25908 \begin_layout Description
25909 \begin_inset Flex Code
25910 status collapsed
25911
25912 \begin_layout Plain Layout
25913 GuiName
25914 \begin_inset space ~
25915 \end_inset
25916
25917 <guiname>
25918 \end_layout
25919
25920 \end_inset
25921
25922  The text that is displayed on the button.
25923  This command must occur exactly once.
25924 \end_layout
25925
25926 \begin_layout Description
25927 \begin_inset Flex Code
25928 status collapsed
25929
25930 \begin_layout Plain Layout
25931 HelpText
25932 \begin_inset space ~
25933 \end_inset
25934
25935 <text>
25936 \begin_inset space ~
25937 \end_inset
25938
25939 HelpTextEnd
25940 \end_layout
25941
25942 \end_inset
25943
25944  The help text that is used in the External dialog.
25945  Provide enough information to explain to the user just what the template
25946  can provide him with.
25947  This command must occur exactly once.
25948 \end_layout
25949
25950 \begin_layout Description
25951 \begin_inset Flex Code
25952 status collapsed
25953
25954 \begin_layout Plain Layout
25955 InputFormat
25956 \begin_inset space ~
25957 \end_inset
25958
25959 <format>
25960 \end_layout
25961
25962 \end_inset
25963
25964  The file format of the original file.
25965  This must be the name of a format that is known to \SpecialChar LyX
25966  (see 
25967 \begin_inset CommandInset ref
25968 LatexCommand ref
25969 reference "sec:Formats"
25970
25971 \end_inset
25972
25973 ).
25974  Use 
25975 \begin_inset Quotes eld
25976 \end_inset
25977
25978
25979 \begin_inset Flex Code
25980 status collapsed
25981
25982 \begin_layout Plain Layout
25983 *
25984 \end_layout
25985
25986 \end_inset
25987
25988
25989 \begin_inset Quotes erd
25990 \end_inset
25991
25992  if the template can handle original files of more than one format.
25993  \SpecialChar LyX
25994  will attempt to interrogate the file itself in order to deduce its format
25995  in this case.
25996  This command must occur exactly once.
25997 \end_layout
25998
25999 \begin_layout Description
26000 \begin_inset Flex Code
26001 status collapsed
26002
26003 \begin_layout Plain Layout
26004 Template
26005 \begin_inset space ~
26006 \end_inset
26007
26008 <id>
26009 \end_layout
26010
26011 \end_inset
26012
26013  A unique name for the template.
26014  It must not contain substitution macros (see below).
26015 \end_layout
26016
26017 \begin_layout Description
26018 \begin_inset Flex Code
26019 status collapsed
26020
26021 \begin_layout Plain Layout
26022 Transform
26023 \begin_inset space ~
26024 \end_inset
26025
26026 Rotate|Resize|Clip|Extra
26027 \end_layout
26028
26029 \end_inset
26030
26031  This command specifies which transformations are supported by this template.
26032  It may occur zero or more times.
26033  This command enables the corresponding tabs in the external dialog.
26034  Each 
26035 \begin_inset Flex Code
26036 status collapsed
26037
26038 \begin_layout Plain Layout
26039 Transform
26040 \end_layout
26041
26042 \end_inset
26043
26044  command must have either a corresponding 
26045 \begin_inset Flex Code
26046 status collapsed
26047
26048 \begin_layout Plain Layout
26049 TransformCommand
26050 \end_layout
26051
26052 \end_inset
26053
26054  or a 
26055 \begin_inset Flex Code
26056 status collapsed
26057
26058 \begin_layout Plain Layout
26059 TransformOption
26060 \end_layout
26061
26062 \end_inset
26063
26064  command in the 
26065 \begin_inset Flex Code
26066 status collapsed
26067
26068 \begin_layout Plain Layout
26069 Format
26070 \end_layout
26071
26072 \end_inset
26073
26074  section.
26075  Otherwise the transformation will not be supported by that format.
26076 \end_layout
26077
26078 \begin_layout Subsection
26079 The Format section
26080 \end_layout
26081
26082 \begin_layout Description
26083 \begin_inset Flex Code
26084 status collapsed
26085
26086 \begin_layout Plain Layout
26087 Format
26088 \begin_inset space ~
26089 \end_inset
26090
26091 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
26092 \end_layout
26093
26094 \end_inset
26095
26096  The primary document file format that this format definition is for.
26097  Not every template has a sensible representation in all document file formats.
26098  Please define nevertheless a 
26099 \begin_inset Flex Code
26100 status collapsed
26101
26102 \begin_layout Plain Layout
26103 Format
26104 \end_layout
26105
26106 \end_inset
26107
26108  section for all templates.
26109  Use a dummy text when no representation is available.
26110  Then you can at least see a reference to the external material in the exported
26111  document.
26112 \end_layout
26113
26114 \begin_layout Description
26115 \begin_inset Flex Code
26116 status collapsed
26117
26118 \begin_layout Plain Layout
26119 Option
26120 \begin_inset space ~
26121 \end_inset
26122
26123 <name>
26124 \begin_inset space ~
26125 \end_inset
26126
26127 <value>
26128 \end_layout
26129
26130 \end_inset
26131
26132  This command defines an additional macro 
26133 \begin_inset Flex Code
26134 status collapsed
26135
26136 \begin_layout Plain Layout
26137 $$<name>
26138 \end_layout
26139
26140 \end_inset
26141
26142  for substitution in 
26143 \begin_inset Flex Code
26144 status collapsed
26145
26146 \begin_layout Plain Layout
26147 Product
26148 \end_layout
26149
26150 \end_inset
26151
26152 .
26153  
26154 \begin_inset Flex Code
26155 status collapsed
26156
26157 \begin_layout Plain Layout
26158 <value>
26159 \end_layout
26160
26161 \end_inset
26162
26163  itself may contain substitution macros.
26164  The advantage over using 
26165 \begin_inset Flex Code
26166 status collapsed
26167
26168 \begin_layout Plain Layout
26169 <value>
26170 \end_layout
26171
26172 \end_inset
26173
26174  directly in 
26175 \begin_inset Flex Code
26176 status collapsed
26177
26178 \begin_layout Plain Layout
26179 Product
26180 \end_layout
26181
26182 \end_inset
26183
26184  is that the substituted value of 
26185 \begin_inset Flex Code
26186 status collapsed
26187
26188 \begin_layout Plain Layout
26189 $$<name>
26190 \end_layout
26191
26192 \end_inset
26193
26194  is sanitized so that it is a valid optional argument in the document format.
26195  This command may occur zero or more times.
26196 \end_layout
26197
26198 \begin_layout Description
26199 \begin_inset Flex Code
26200 status collapsed
26201
26202 \begin_layout Plain Layout
26203 Product
26204 \begin_inset space ~
26205 \end_inset
26206
26207 <text>
26208 \end_layout
26209
26210 \end_inset
26211
26212  The text that is inserted in the exported document.
26213  This is actually the most important command and can be quite complex.
26214  This command must occur exactly once.
26215 \end_layout
26216
26217 \begin_layout Description
26218 \begin_inset Flex Code
26219 status collapsed
26220
26221 \begin_layout Plain Layout
26222 Preamble
26223 \begin_inset space ~
26224 \end_inset
26225
26226 <name>
26227 \end_layout
26228
26229 \end_inset
26230
26231  This command specifies a preamble snippet that will be included in the
26232  \SpecialChar LaTeX
26233  preamble.
26234  It has to be defined using 
26235 \begin_inset Flex Code
26236 status collapsed
26237
26238 \begin_layout Plain Layout
26239 PreambleDef
26240 \end_layout
26241
26242 \end_inset
26243
26244  \SpecialChar ldots
26245  
26246 \begin_inset Flex Code
26247 status collapsed
26248
26249 \begin_layout Plain Layout
26250 PreambleDefEnd
26251 \end_layout
26252
26253 \end_inset
26254
26255 .
26256  This command may occur zero or more times.
26257 \end_layout
26258
26259 \begin_layout Description
26260 \begin_inset Flex Code
26261 status collapsed
26262
26263 \begin_layout Plain Layout
26264 ReferencedFile
26265 \begin_inset space ~
26266 \end_inset
26267
26268 <format>
26269 \begin_inset space ~
26270 \end_inset
26271
26272 <filename>
26273 \end_layout
26274
26275 \end_inset
26276
26277  This command denotes files that are created by the conversion process and
26278  are needed for a particular export format.
26279  If the filename is relative, it is interpreted relative to the master document.
26280  This command may be given zero or more times.
26281 \end_layout
26282
26283 \begin_layout Description
26284 \begin_inset Flex Code
26285 status collapsed
26286
26287 \begin_layout Plain Layout
26288 Requirement
26289 \begin_inset space ~
26290 \end_inset
26291
26292 <package>
26293 \end_layout
26294
26295 \end_inset
26296
26297  The name of a required \SpecialChar LaTeX
26298  package.
26299  The package is included via 
26300 \begin_inset Flex Code
26301 status collapsed
26302
26303 \begin_layout Plain Layout
26304
26305 \backslash
26306 usepackage{}
26307 \end_layout
26308
26309 \end_inset
26310
26311  in the \SpecialChar LaTeX
26312  preamble.
26313  This command may occur zero or more times.
26314 \end_layout
26315
26316 \begin_layout Description
26317 \begin_inset Flex Code
26318 status collapsed
26319
26320 \begin_layout Plain Layout
26321 TransformCommand
26322 \begin_inset space ~
26323 \end_inset
26324
26325 Rotate
26326 \begin_inset space ~
26327 \end_inset
26328
26329 RotationLatexCommand
26330 \end_layout
26331
26332 \end_inset
26333
26334  This command specifies that the built in \SpecialChar LaTeX
26335  command should be used for rotation.
26336  This command may occur once or not at all.
26337 \end_layout
26338
26339 \begin_layout Description
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 TransformCommand
26345 \begin_inset space ~
26346 \end_inset
26347
26348 Resize
26349 \begin_inset space ~
26350 \end_inset
26351
26352 ResizeLatexCommand
26353 \end_layout
26354
26355 \end_inset
26356
26357  This command specifies that the built in \SpecialChar LaTeX
26358  command should be used for resizing.
26359  This command may occur once or not at all.
26360 \end_layout
26361
26362 \begin_layout Description
26363 \begin_inset Flex Code
26364 status collapsed
26365
26366 \begin_layout Plain Layout
26367 TransformOption
26368 \begin_inset space ~
26369 \end_inset
26370
26371 Rotate
26372 \begin_inset space ~
26373 \end_inset
26374
26375 RotationLatexOption
26376 \end_layout
26377
26378 \end_inset
26379
26380  This command specifies that rotation is done via an optional argument.
26381  This command may occur once or not at all.
26382 \end_layout
26383
26384 \begin_layout Description
26385 \begin_inset Flex Code
26386 status collapsed
26387
26388 \begin_layout Plain Layout
26389 TransformOption
26390 \begin_inset space ~
26391 \end_inset
26392
26393 Resize
26394 \begin_inset space ~
26395 \end_inset
26396
26397 ResizeLatexOption
26398 \end_layout
26399
26400 \end_inset
26401
26402  This command specifies that resizing is done via an optional argument.
26403  This command may occur once or not at all.
26404 \end_layout
26405
26406 \begin_layout Description
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 TransformOption
26412 \begin_inset space ~
26413 \end_inset
26414
26415 Clip
26416 \begin_inset space ~
26417 \end_inset
26418
26419 ClipLatexOption
26420 \end_layout
26421
26422 \end_inset
26423
26424  This command specifies that clipping is done via an optional argument.
26425  This command may occur once or not at all.
26426 \end_layout
26427
26428 \begin_layout Description
26429 \begin_inset Flex Code
26430 status collapsed
26431
26432 \begin_layout Plain Layout
26433 TransformOption
26434 \begin_inset space ~
26435 \end_inset
26436
26437 Extra
26438 \begin_inset space ~
26439 \end_inset
26440
26441 ExtraLatexOption
26442 \end_layout
26443
26444 \end_inset
26445
26446  This command specifies that an extra optional argument is used.
26447  This command may occur once or not at all.
26448 \end_layout
26449
26450 \begin_layout Description
26451 \begin_inset Flex Code
26452 status collapsed
26453
26454 \begin_layout Plain Layout
26455 UpdateFormat
26456 \begin_inset space ~
26457 \end_inset
26458
26459 <format>
26460 \end_layout
26461
26462 \end_inset
26463
26464  The file format of the converted file.
26465  This must be the name of a format that is known to \SpecialChar LyX
26466  (see the 
26467 \begin_inset Flex Noun
26468 status collapsed
26469
26470 \begin_layout Plain Layout
26471 Tools\SpecialChar menuseparator
26472 Preferences\SpecialChar menuseparator
26473 File Handling\SpecialChar menuseparator
26474 File Format
26475 \end_layout
26476
26477 \end_inset
26478
26479  dialog).
26480  This command must occur exactly once.
26481  If the resulting file format is PDF, you need to specify the format 
26482 \begin_inset Flex Code
26483 status collapsed
26484
26485 \begin_layout Plain Layout
26486 pdf6
26487 \end_layout
26488
26489 \end_inset
26490
26491 .
26492  This is the PDF format used for including graphics.
26493  The other defined PDF formats are for document export.
26494 \end_layout
26495
26496 \begin_layout Description
26497 \begin_inset Flex Code
26498 status collapsed
26499
26500 \begin_layout Plain Layout
26501 UpdateResult
26502 \begin_inset space ~
26503 \end_inset
26504
26505 <filename>
26506 \end_layout
26507
26508 \end_inset
26509
26510  The file name of the converted file.
26511  The file name must be absolute.
26512  This command must occur exactly once.
26513 \end_layout
26514
26515 \begin_layout Subsection
26516 Preamble definitions
26517 \end_layout
26518
26519 \begin_layout Standard
26520 The external template configuration file may contain additional preamble
26521  definitions enclosed by 
26522 \begin_inset Flex Code
26523 status collapsed
26524
26525 \begin_layout Plain Layout
26526 PreambleDef
26527 \end_layout
26528
26529 \end_inset
26530
26531  \SpecialChar ldots
26532  
26533 \begin_inset Flex Code
26534 status collapsed
26535
26536 \begin_layout Plain Layout
26537 PreambleDefEnd
26538 \end_layout
26539
26540 \end_inset
26541
26542 .
26543  They can be used by the templates in the 
26544 \begin_inset Flex Code
26545 status collapsed
26546
26547 \begin_layout Plain Layout
26548 Format
26549 \end_layout
26550
26551 \end_inset
26552
26553  section.
26554 \end_layout
26555
26556 \begin_layout Section
26557 The substitution mechanism
26558 \end_layout
26559
26560 \begin_layout Standard
26561 When the external material facility invokes an external program, it is done
26562  on the basis of a command defined in the template configuration file.
26563  These commands can contain various macros that are expanded before execution.
26564  Execution always take place in the directory of the containing document.
26565 \end_layout
26566
26567 \begin_layout Standard
26568 Also, whenever external material is to be displayed, the name will be produced
26569  by the substitution mechanism, and most other commands in the template
26570  definition support substitution as well.
26571 \end_layout
26572
26573 \begin_layout Standard
26574 The available macros are the following:
26575 \end_layout
26576
26577 \begin_layout Description
26578 \begin_inset Flex Code
26579 status collapsed
26580
26581 \begin_layout Plain Layout
26582 $$AbsOrRelPathMaster
26583 \end_layout
26584
26585 \end_inset
26586
26587  The file path, absolute or relative to the master \SpecialChar LyX
26588  document.
26589 \end_layout
26590
26591 \begin_layout Description
26592 \begin_inset Flex Code
26593 status collapsed
26594
26595 \begin_layout Plain Layout
26596 $$AbsOrRelPathParent
26597 \end_layout
26598
26599 \end_inset
26600
26601  The file path, absolute or relative to the \SpecialChar LyX
26602  document.
26603 \end_layout
26604
26605 \begin_layout Description
26606 \begin_inset Flex Code
26607 status collapsed
26608
26609 \begin_layout Plain Layout
26610 $$AbsPath
26611 \end_layout
26612
26613 \end_inset
26614
26615  The absolute file path.
26616 \end_layout
26617
26618 \begin_layout Description
26619 \begin_inset Flex Code
26620 status collapsed
26621
26622 \begin_layout Plain Layout
26623 $$Basename
26624 \end_layout
26625
26626 \end_inset
26627
26628  The filename without path and without the extension.
26629 \end_layout
26630
26631 \begin_layout Description
26632 \begin_inset Flex Code
26633 status collapsed
26634
26635 \begin_layout Plain Layout
26636 $$Contents(
26637 \begin_inset Quotes eld
26638 \end_inset
26639
26640 filename.ext
26641 \begin_inset Quotes erd
26642 \end_inset
26643
26644 )
26645 \end_layout
26646
26647 \end_inset
26648
26649  This macro will expand to the contents of the file with the name 
26650 \begin_inset Flex Code
26651 status collapsed
26652
26653 \begin_layout Plain Layout
26654 filename.ext
26655 \end_layout
26656
26657 \end_inset
26658
26659 .
26660 \end_layout
26661
26662 \begin_layout Description
26663 \begin_inset Flex Code
26664 status collapsed
26665
26666 \begin_layout Plain Layout
26667 $$Extension
26668 \end_layout
26669
26670 \end_inset
26671
26672  The file extension (including the dot).
26673 \end_layout
26674
26675 \begin_layout Description
26676 \begin_inset Flex Code
26677 status collapsed
26678
26679 \begin_layout Plain Layout
26680 $$pngOrjpg
26681 \end_layout
26682
26683 \end_inset
26684
26685  This will be the string 
26686 \begin_inset Quotes eld
26687 \end_inset
26688
26689 jpg
26690 \begin_inset Quotes erd
26691 \end_inset
26692
26693  if the file is in JPEG format, otherwise it will be the string 
26694 \begin_inset Quotes eld
26695 \end_inset
26696
26697 png
26698 \begin_inset Quotes erd
26699 \end_inset
26700
26701 .
26702  This is useful to avoid uneeded conversions for output formats that support
26703  both PNG and JPEG fomats.
26704  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
26705  output
26706  format.
26707 \end_layout
26708
26709 \begin_layout Description
26710 \begin_inset Flex Code
26711 status collapsed
26712
26713 \begin_layout Plain Layout
26714 $$FName
26715 \end_layout
26716
26717 \end_inset
26718
26719  The filename of the file specified in the external material dialog.
26720  This is either an absolute name, or it is relative to the \SpecialChar LyX
26721  document.
26722 \end_layout
26723
26724 \begin_layout Description
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 $$FPath
26730 \end_layout
26731
26732 \end_inset
26733
26734  The path part of 
26735 \begin_inset Flex Code
26736 status collapsed
26737
26738 \begin_layout Plain Layout
26739 $$FName
26740 \end_layout
26741
26742 \end_inset
26743
26744  (absolute name or relative to the \SpecialChar LyX
26745  document).
26746 \end_layout
26747
26748 \begin_layout Description
26749 \begin_inset Flex Code
26750 status collapsed
26751
26752 \begin_layout Plain Layout
26753 $$RelPathMaster
26754 \end_layout
26755
26756 \end_inset
26757
26758  The file path, relative to the master \SpecialChar LyX
26759  document.
26760 \end_layout
26761
26762 \begin_layout Description
26763 \begin_inset Flex Code
26764 status collapsed
26765
26766 \begin_layout Plain Layout
26767 $$RelPathParent
26768 \end_layout
26769
26770 \end_inset
26771
26772  The file path, relative to the \SpecialChar LyX
26773  document.
26774 \end_layout
26775
26776 \begin_layout Description
26777 \begin_inset Flex Code
26778 status collapsed
26779
26780 \begin_layout Plain Layout
26781 $$Sysdir
26782 \end_layout
26783
26784 \end_inset
26785
26786  This macro will expand to the absolute path of the system directory.
26787  This is typically used to point to the various helper scripts that are
26788  bundled with \SpecialChar LyX
26789 .
26790 \end_layout
26791
26792 \begin_layout Description
26793 \begin_inset Flex Code
26794 status collapsed
26795
26796 \begin_layout Plain Layout
26797 $$Tempname
26798 \end_layout
26799
26800 \end_inset
26801
26802  A name and full path to a temporary file which will be automatically deleted
26803  whenever the containing document is closed, or the external material insertion
26804  deleted.
26805 \end_layout
26806
26807 \begin_layout Standard
26808 All path macros contain a trailing directory separator, so you can construct
26809  e.
26810 \begin_inset space \thinspace{}
26811 \end_inset
26812
26813 g.
26814 \begin_inset space \space{}
26815 \end_inset
26816
26817 the absolute filename with 
26818 \begin_inset Flex Code
26819 status collapsed
26820
26821 \begin_layout Plain Layout
26822 $$AbsPath$$Basename$$Extension
26823 \end_layout
26824
26825 \end_inset
26826
26827 .
26828 \end_layout
26829
26830 \begin_layout Standard
26831 The macros above are substituted in all commands unless otherwise noted.
26832  The command 
26833 \begin_inset Flex Code
26834 status collapsed
26835
26836 \begin_layout Plain Layout
26837 Product
26838 \end_layout
26839
26840 \end_inset
26841
26842  supports additionally the following substitutions if they are enabled by
26843  the 
26844 \begin_inset Flex Code
26845 status collapsed
26846
26847 \begin_layout Plain Layout
26848 Transform
26849 \end_layout
26850
26851 \end_inset
26852
26853  and 
26854 \begin_inset Flex Code
26855 status collapsed
26856
26857 \begin_layout Plain Layout
26858 TransformCommand
26859 \end_layout
26860
26861 \end_inset
26862
26863  commands:
26864 \end_layout
26865
26866 \begin_layout Description
26867 \begin_inset Flex Code
26868 status collapsed
26869
26870 \begin_layout Plain Layout
26871 $$ResizeFront
26872 \end_layout
26873
26874 \end_inset
26875
26876  The front part of the resize command.
26877 \end_layout
26878
26879 \begin_layout Description
26880 \begin_inset Flex Code
26881 status collapsed
26882
26883 \begin_layout Plain Layout
26884 $$ResizeBack
26885 \end_layout
26886
26887 \end_inset
26888
26889  The back part of the resize command.
26890 \end_layout
26891
26892 \begin_layout Description
26893 \begin_inset Flex Code
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897 $$RotateFront
26898 \end_layout
26899
26900 \end_inset
26901
26902  The front part of the rotation command.
26903 \end_layout
26904
26905 \begin_layout Description
26906 \begin_inset Flex Code
26907 status collapsed
26908
26909 \begin_layout Plain Layout
26910 $$RotateBack
26911 \end_layout
26912
26913 \end_inset
26914
26915  The back part of the rotation command.
26916 \end_layout
26917
26918 \begin_layout Standard
26919 The value string of the 
26920 \begin_inset Flex Code
26921 status collapsed
26922
26923 \begin_layout Plain Layout
26924 Option
26925 \end_layout
26926
26927 \end_inset
26928
26929  command supports additionally the following substitutions if they are enabled
26930  by the 
26931 \begin_inset Flex Code
26932 status collapsed
26933
26934 \begin_layout Plain Layout
26935 Transform
26936 \end_layout
26937
26938 \end_inset
26939
26940  and 
26941 \begin_inset Flex Code
26942 status collapsed
26943
26944 \begin_layout Plain Layout
26945 TransformOption
26946 \end_layout
26947
26948 \end_inset
26949
26950  commands:
26951 \end_layout
26952
26953 \begin_layout Description
26954 \begin_inset Flex Code
26955 status collapsed
26956
26957 \begin_layout Plain Layout
26958 $$Clip
26959 \end_layout
26960
26961 \end_inset
26962
26963  The clip option.
26964 \end_layout
26965
26966 \begin_layout Description
26967 \begin_inset Flex Code
26968 status collapsed
26969
26970 \begin_layout Plain Layout
26971 $$Extra
26972 \end_layout
26973
26974 \end_inset
26975
26976  The extra option.
26977 \end_layout
26978
26979 \begin_layout Description
26980 \begin_inset Flex Code
26981 status collapsed
26982
26983 \begin_layout Plain Layout
26984 $$Resize
26985 \end_layout
26986
26987 \end_inset
26988
26989  The resize option.
26990 \end_layout
26991
26992 \begin_layout Description
26993 \begin_inset Flex Code
26994 status collapsed
26995
26996 \begin_layout Plain Layout
26997 $$Rotate
26998 \end_layout
26999
27000 \end_inset
27001
27002  The rotation option.
27003 \end_layout
27004
27005 \begin_layout Standard
27006 You may ask why there are so many path macros.
27007  There are mainly two reasons:
27008 \end_layout
27009
27010 \begin_layout Enumerate
27011 Relative and absolute file names should remain relative or absolute, respectivel
27012 y.
27013  Users may have reasons to prefer either form.
27014  Relative names are useful for portable documents that should work on different
27015  machines, for example.
27016  Absolute names may be required by some programs.
27017 \end_layout
27018
27019 \begin_layout Enumerate
27020 \SpecialChar LaTeX
27021  treats relative file names differently than \SpecialChar LyX
27022  and other programs in nested
27023  included files.
27024  For \SpecialChar LyX
27025 , a relative file name is always relative to the document that contains
27026  the file name.
27027  For \SpecialChar LaTeX
27028 , it is always relative to the master document.
27029  These two definitions are identical if you have only one document, but
27030  differ if you have a master document that includes part documents.
27031  That means that relative filenames must be transformed when presented to
27032  \SpecialChar LaTeX
27033 .
27034  Fortunately \SpecialChar LyX
27035  does this automatically for you if you choose the right macros.
27036 \end_layout
27037
27038 \begin_layout Standard
27039 So which path macro should be used in new template definitions? The rule
27040  is not difficult:
27041 \end_layout
27042
27043 \begin_layout Itemize
27044 Use 
27045 \begin_inset Flex Code
27046 status collapsed
27047
27048 \begin_layout Plain Layout
27049 $$AbsPath
27050 \end_layout
27051
27052 \end_inset
27053
27054  if an absolute path is required.
27055 \end_layout
27056
27057 \begin_layout Itemize
27058 Use 
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 $$AbsOrRelPathMaster
27064 \end_layout
27065
27066 \end_inset
27067
27068  if the substituted string is some kind of \SpecialChar LaTeX
27069  input.
27070 \end_layout
27071
27072 \begin_layout Itemize
27073 Else use 
27074 \begin_inset Flex Code
27075 status collapsed
27076
27077 \begin_layout Plain Layout
27078 $$AbsOrRelPathParent
27079 \end_layout
27080
27081 \end_inset
27082
27083  in order to preserve the user's choice.
27084 \end_layout
27085
27086 \begin_layout Standard
27087 There are special cases where this rule does not work and e.
27088 \begin_inset space \thinspace{}
27089 \end_inset
27090
27091 g.
27092 \begin_inset space \space{}
27093 \end_inset
27094
27095 relative names are needed, but normally it will work just fine.
27096  One example for such a case is the command 
27097 \begin_inset Flex Code
27098 status collapsed
27099
27100 \begin_layout Plain Layout
27101 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27102 \end_layout
27103
27104 \end_inset
27105
27106  in the XFig template above: We can't use the absolute name because the
27107  copier for 
27108 \begin_inset Flex Code
27109 status collapsed
27110
27111 \begin_layout Plain Layout
27112 .pstex_t
27113 \end_layout
27114
27115 \end_inset
27116
27117  files needs the relative name in order to rewrite the file content.
27118 \end_layout
27119
27120 \begin_layout Section
27121 Security discussion
27122 \begin_inset CommandInset label
27123 LatexCommand label
27124 name "sec:Security-discussion"
27125
27126 \end_inset
27127
27128
27129 \end_layout
27130
27131 \begin_layout Standard
27132 The external material feature interfaces with a lot of external programs
27133  and does so automatically, so we have to consider the security implications
27134  of this.
27135  In particular, since you have the option of including your own filenames
27136  and/or parameter strings and those are expanded into a command, it seems
27137  that it would be possible to create a malicious document which executes
27138  arbitrary commands when a user views or prints the document.
27139  This is something we definitely want to avoid.
27140 \end_layout
27141
27142 \begin_layout Standard
27143 However, since the external program commands are specified in the template
27144  configuration file only, there are no security issues if \SpecialChar LyX
27145  is properly configure
27146 d with safe templates only.
27147  This is so because the external programs are invoked with the 
27148 \begin_inset Flex Code
27149 status collapsed
27150
27151 \begin_layout Plain Layout
27152 execvp
27153 \end_layout
27154
27155 \end_inset
27156
27157 -system call rather than the 
27158 \begin_inset Flex Code
27159 status collapsed
27160
27161 \begin_layout Plain Layout
27162 system
27163 \end_layout
27164
27165 \end_inset
27166
27167  system-call, so it's not possible to execute arbitrary commands from the
27168  filename or parameter section via the shell.
27169 \end_layout
27170
27171 \begin_layout Standard
27172 This also implies that you are restricted in what command strings you can
27173  use in the external material templates.
27174  In particular, pipes and redirection are not readily available.
27175  This has to be so if \SpecialChar LyX
27176  should remain safe.
27177  If you want to use some of the shell features, you should write a safe
27178  script to do this in a controlled manner, and then invoke the script from
27179  the command string.
27180  
27181 \end_layout
27182
27183 \begin_layout Standard
27184 It is possible to design a template that interacts directly with the shell,
27185  but since this would allow a malicious user to execute arbitrary commands
27186  by writing clever filenames and/or parameters, we generally recommend that
27187  you only use safe scripts that work with the 
27188 \begin_inset Flex Code
27189 status collapsed
27190
27191 \begin_layout Plain Layout
27192 execvp
27193 \end_layout
27194
27195 \end_inset
27196
27197  system call in a controlled manner.
27198  Of course, for use in a controlled environment, it can be tempting to just
27199  fall back to use ordinary shell scripts.
27200  If you do so, be aware that you 
27201 \emph on
27202 will
27203 \emph default
27204  provide an easily exploitable security hole in your system.
27205  Of course it stands to reason that such unsafe templates will never be
27206  included in the standard \SpecialChar LyX
27207  distribution, although we do encourage people
27208  to submit new templates in the open source tradition.
27209  But \SpecialChar LyX
27210  as shipped from the official distribution channels will never have
27211  unsafe templates.
27212 \end_layout
27213
27214 \begin_layout Standard
27215 Including external material provides a lot of power, and you have to be
27216  careful not to introduce security hazards with this power.
27217  A subtle error in a single line in an innocent looking script can open
27218  the door to huge security problems.
27219  So if you do not fully understand the issues, we recommend that you consult
27220  a knowledgeable security professional or the \SpecialChar LyX
27221  development team if you have
27222  any questions about whether a given template is safe or not.
27223  And do this before you use it in an uncontrolled environment.
27224 \end_layout
27225
27226 \begin_layout Chapter
27227 \start_of_appendix
27228 List of supported \SpecialChar LyX
27229  functions to be used in layouts
27230 \begin_inset CommandInset label
27231 LatexCommand label
27232 name "chap:List-of-functions"
27233
27234 \end_inset
27235
27236
27237 \end_layout
27238
27239 \begin_layout Standard
27240 \align center
27241 \begin_inset Tabular
27242 <lyxtabular version="3" rows="11" columns="8">
27243 <features tabularvalignment="middle">
27244 <column alignment="left" valignment="top">
27245 <column alignment="left" valignment="top">
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 <row>
27253 <cell alignment="left" valignment="top" usebox="none">
27254 \begin_inset Text
27255
27256 \begin_layout Plain Layout
27257 accents
27258 \end_layout
27259
27260 \end_inset
27261 </cell>
27262 <cell alignment="left" valignment="top" usebox="none">
27263 \begin_inset Text
27264
27265 \begin_layout Plain Layout
27266 booktabs
27267 \end_layout
27268
27269 \end_inset
27270 </cell>
27271 <cell alignment="left" valignment="top" usebox="none">
27272 \begin_inset Text
27273
27274 \begin_layout Plain Layout
27275 feyn
27276 \end_layout
27277
27278 \end_inset
27279 </cell>
27280 <cell alignment="left" valignment="top" usebox="none">
27281 \begin_inset Text
27282
27283 \begin_layout Plain Layout
27284 listings
27285 \end_layout
27286
27287 \end_inset
27288 </cell>
27289 <cell alignment="center" valignment="top" usebox="none">
27290 \begin_inset Text
27291
27292 \begin_layout Plain Layout
27293 natbib
27294 \end_layout
27295
27296 \end_inset
27297 </cell>
27298 <cell alignment="center" valignment="top" usebox="none">
27299 \begin_inset Text
27300
27301 \begin_layout Plain Layout
27302 rotfloat
27303 \end_layout
27304
27305 \end_inset
27306 </cell>
27307 <cell alignment="center" valignment="top" usebox="none">
27308 \begin_inset Text
27309
27310 \begin_layout Plain Layout
27311 tfrupee
27312 \end_layout
27313
27314 \end_inset
27315 </cell>
27316 <cell alignment="center" valignment="top" usebox="none">
27317 \begin_inset Text
27318
27319 \begin_layout Plain Layout
27320 wasysym
27321 \end_layout
27322
27323 \end_inset
27324 </cell>
27325 </row>
27326 <row>
27327 <cell alignment="left" valignment="top" usebox="none">
27328 \begin_inset Text
27329
27330 \begin_layout Plain Layout
27331 amsbsy
27332 \end_layout
27333
27334 \end_inset
27335 </cell>
27336 <cell alignment="left" valignment="top" usebox="none">
27337 \begin_inset Text
27338
27339 \begin_layout Plain Layout
27340 calc
27341 \end_layout
27342
27343 \end_inset
27344 </cell>
27345 <cell alignment="left" valignment="top" usebox="none">
27346 \begin_inset Text
27347
27348 \begin_layout Plain Layout
27349 fixltx2e
27350 \end_layout
27351
27352 \end_inset
27353 </cell>
27354 <cell alignment="left" valignment="top" usebox="none">
27355 \begin_inset Text
27356
27357 \begin_layout Plain Layout
27358 longtable
27359 \end_layout
27360
27361 \end_inset
27362 </cell>
27363 <cell alignment="center" valignment="top" usebox="none">
27364 \begin_inset Text
27365
27366 \begin_layout Plain Layout
27367 nomencl
27368 \end_layout
27369
27370 \end_inset
27371 </cell>
27372 <cell alignment="center" valignment="top" usebox="none">
27373 \begin_inset Text
27374
27375 \begin_layout Plain Layout
27376 rsphrase
27377 \end_layout
27378
27379 \end_inset
27380 </cell>
27381 <cell alignment="center" valignment="top" usebox="none">
27382 \begin_inset Text
27383
27384 \begin_layout Plain Layout
27385 tipa
27386 \end_layout
27387
27388 \end_inset
27389 </cell>
27390 <cell alignment="center" valignment="top" usebox="none">
27391 \begin_inset Text
27392
27393 \begin_layout Plain Layout
27394 wrapfig
27395 \end_layout
27396
27397 \end_inset
27398 </cell>
27399 </row>
27400 <row>
27401 <cell alignment="left" valignment="top" usebox="none">
27402 \begin_inset Text
27403
27404 \begin_layout Plain Layout
27405 amscd
27406 \end_layout
27407
27408 \end_inset
27409 </cell>
27410 <cell alignment="left" valignment="top" usebox="none">
27411 \begin_inset Text
27412
27413 \begin_layout Plain Layout
27414 CJK
27415 \end_layout
27416
27417 \end_inset
27418 </cell>
27419 <cell alignment="left" valignment="top" usebox="none">
27420 \begin_inset Text
27421
27422 \begin_layout Plain Layout
27423 float
27424 \end_layout
27425
27426 \end_inset
27427 </cell>
27428 <cell alignment="left" valignment="top" usebox="none">
27429 \begin_inset Text
27430
27431 \begin_layout Plain Layout
27432 lyxskak
27433 \end_layout
27434
27435 \end_inset
27436 </cell>
27437 <cell alignment="center" valignment="top" usebox="none">
27438 \begin_inset Text
27439
27440 \begin_layout Plain Layout
27441 pdfcolmk
27442 \end_layout
27443
27444 \end_inset
27445 </cell>
27446 <cell alignment="center" valignment="top" usebox="none">
27447 \begin_inset Text
27448
27449 \begin_layout Plain Layout
27450 setspace
27451 \end_layout
27452
27453 \end_inset
27454 </cell>
27455 <cell alignment="center" valignment="top" usebox="none">
27456 \begin_inset Text
27457
27458 \begin_layout Plain Layout
27459 tipx
27460 \end_layout
27461
27462 \end_inset
27463 </cell>
27464 <cell alignment="center" valignment="top" usebox="none">
27465 \begin_inset Text
27466
27467 \begin_layout Plain Layout
27468 xargs
27469 \end_layout
27470
27471 \end_inset
27472 </cell>
27473 </row>
27474 <row>
27475 <cell alignment="left" valignment="top" usebox="none">
27476 \begin_inset Text
27477
27478 \begin_layout Plain Layout
27479 amsmath
27480 \end_layout
27481
27482 \end_inset
27483 </cell>
27484 <cell alignment="left" valignment="top" usebox="none">
27485 \begin_inset Text
27486
27487 \begin_layout Plain Layout
27488 color
27489 \end_layout
27490
27491 \end_inset
27492 </cell>
27493 <cell alignment="left" valignment="top" usebox="none">
27494 \begin_inset Text
27495
27496 \begin_layout Plain Layout
27497 framed
27498 \end_layout
27499
27500 \end_inset
27501 </cell>
27502 <cell alignment="left" valignment="top" usebox="none">
27503 \begin_inset Text
27504
27505 \begin_layout Plain Layout
27506 makeidx
27507 \end_layout
27508
27509 \end_inset
27510 </cell>
27511 <cell alignment="center" valignment="top" usebox="none">
27512 \begin_inset Text
27513
27514 \begin_layout Plain Layout
27515 pdfpages
27516 \end_layout
27517
27518 \end_inset
27519 </cell>
27520 <cell alignment="center" valignment="top" usebox="none">
27521 \begin_inset Text
27522
27523 \begin_layout Plain Layout
27524 shapepar
27525 \end_layout
27526
27527 \end_inset
27528 </cell>
27529 <cell alignment="center" valignment="top" usebox="none">
27530 \begin_inset Text
27531
27532 \begin_layout Plain Layout
27533 tone
27534 \end_layout
27535
27536 \end_inset
27537 </cell>
27538 <cell alignment="center" valignment="top" usebox="none">
27539 \begin_inset Text
27540
27541 \begin_layout Plain Layout
27542 xcolor
27543 \end_layout
27544
27545 \end_inset
27546 </cell>
27547 </row>
27548 <row>
27549 <cell alignment="left" valignment="top" usebox="none">
27550 \begin_inset Text
27551
27552 \begin_layout Plain Layout
27553 amssymb
27554 \end_layout
27555
27556 \end_inset
27557 </cell>
27558 <cell alignment="left" valignment="top" usebox="none">
27559 \begin_inset Text
27560
27561 \begin_layout Plain Layout
27562 covington
27563 \end_layout
27564
27565 \end_inset
27566 </cell>
27567 <cell alignment="left" valignment="top" usebox="none">
27568 \begin_inset Text
27569
27570 \begin_layout Plain Layout
27571 graphicx
27572 \end_layout
27573
27574 \end_inset
27575 </cell>
27576 <cell alignment="left" valignment="top" usebox="none">
27577 \begin_inset Text
27578
27579 \begin_layout Plain Layout
27580 marvosym
27581 \end_layout
27582
27583 \end_inset
27584 </cell>
27585 <cell alignment="center" valignment="top" usebox="none">
27586 \begin_inset Text
27587
27588 \begin_layout Plain Layout
27589 pifont
27590 \end_layout
27591
27592 \end_inset
27593 </cell>
27594 <cell alignment="center" valignment="top" usebox="none">
27595 \begin_inset Text
27596
27597 \begin_layout Plain Layout
27598 slashed
27599 \end_layout
27600
27601 \end_inset
27602 </cell>
27603 <cell alignment="center" valignment="top" usebox="none">
27604 \begin_inset Text
27605
27606 \begin_layout Plain Layout
27607 txfonts
27608 \end_layout
27609
27610 \end_inset
27611 </cell>
27612 <cell alignment="center" valignment="top" usebox="none">
27613 \begin_inset Text
27614
27615 \begin_layout Plain Layout
27616 xy
27617 \end_layout
27618
27619 \end_inset
27620 </cell>
27621 </row>
27622 <row>
27623 <cell alignment="left" valignment="top" usebox="none">
27624 \begin_inset Text
27625
27626 \begin_layout Plain Layout
27627 amstext
27628 \end_layout
27629
27630 \end_inset
27631 </cell>
27632 <cell alignment="left" valignment="top" usebox="none">
27633 \begin_inset Text
27634
27635 \begin_layout Plain Layout
27636 csquotes
27637 \end_layout
27638
27639 \end_inset
27640 </cell>
27641 <cell alignment="left" valignment="top" usebox="none">
27642 \begin_inset Text
27643
27644 \begin_layout Plain Layout
27645 hhline
27646 \end_layout
27647
27648 \end_inset
27649 </cell>
27650 <cell alignment="left" valignment="top" usebox="none">
27651 \begin_inset Text
27652
27653 \begin_layout Plain Layout
27654 mathdesign
27655 \end_layout
27656
27657 \end_inset
27658 </cell>
27659 <cell alignment="center" valignment="top" usebox="none">
27660 \begin_inset Text
27661
27662 \begin_layout Plain Layout
27663 pmboxdraw
27664 \end_layout
27665
27666 \end_inset
27667 </cell>
27668 <cell alignment="center" valignment="top" usebox="none">
27669 \begin_inset Text
27670
27671 \begin_layout Plain Layout
27672 soul
27673 \end_layout
27674
27675 \end_inset
27676 </cell>
27677 <cell alignment="center" valignment="top" usebox="none">
27678 \begin_inset Text
27679
27680 \begin_layout Plain Layout
27681 ulem
27682 \end_layout
27683
27684 \end_inset
27685 </cell>
27686 <cell alignment="center" valignment="top" usebox="none">
27687 \begin_inset Text
27688
27689 \begin_layout Plain Layout
27690 yhmath
27691 \end_layout
27692
27693 \end_inset
27694 </cell>
27695 </row>
27696 <row>
27697 <cell alignment="left" valignment="top" usebox="none">
27698 \begin_inset Text
27699
27700 \begin_layout Plain Layout
27701 amsthm
27702 \end_layout
27703
27704 \end_inset
27705 </cell>
27706 <cell alignment="left" valignment="top" usebox="none">
27707 \begin_inset Text
27708
27709 \begin_layout Plain Layout
27710 dvipost
27711 \end_layout
27712
27713 \end_inset
27714 </cell>
27715 <cell alignment="left" valignment="top" usebox="none">
27716 \begin_inset Text
27717
27718 \begin_layout Plain Layout
27719 hyperref
27720 \end_layout
27721
27722 \end_inset
27723 </cell>
27724 <cell alignment="left" valignment="top" usebox="none">
27725 \begin_inset Text
27726
27727 \begin_layout Plain Layout
27728 mathdots
27729 \end_layout
27730
27731 \end_inset
27732 </cell>
27733 <cell alignment="center" valignment="top" usebox="none">
27734 \begin_inset Text
27735
27736 \begin_layout Plain Layout
27737 polyglossia
27738 \end_layout
27739
27740 \end_inset
27741 </cell>
27742 <cell alignment="center" valignment="top" usebox="none">
27743 \begin_inset Text
27744
27745 \begin_layout Plain Layout
27746 splitidx
27747 \end_layout
27748
27749 \end_inset
27750 </cell>
27751 <cell alignment="center" valignment="top" usebox="none">
27752 \begin_inset Text
27753
27754 \begin_layout Plain Layout
27755 undertilde
27756 \end_layout
27757
27758 \end_inset
27759 </cell>
27760 <cell alignment="center" valignment="top" usebox="none">
27761 \begin_inset Text
27762
27763 \begin_layout Plain Layout
27764
27765 \end_layout
27766
27767 \end_inset
27768 </cell>
27769 </row>
27770 <row>
27771 <cell alignment="left" valignment="top" usebox="none">
27772 \begin_inset Text
27773
27774 \begin_layout Plain Layout
27775 array
27776 \end_layout
27777
27778 \end_inset
27779 </cell>
27780 <cell alignment="left" valignment="top" usebox="none">
27781 \begin_inset Text
27782
27783 \begin_layout Plain Layout
27784 endnotes
27785 \end_layout
27786
27787 \end_inset
27788 </cell>
27789 <cell alignment="left" valignment="top" usebox="none">
27790 \begin_inset Text
27791
27792 \begin_layout Plain Layout
27793 ifsym
27794 \end_layout
27795
27796 \end_inset
27797 </cell>
27798 <cell alignment="left" valignment="top" usebox="none">
27799 \begin_inset Text
27800
27801 \begin_layout Plain Layout
27802 mathrsfs
27803 \end_layout
27804
27805 \end_inset
27806 </cell>
27807 <cell alignment="center" valignment="top" usebox="none">
27808 \begin_inset Text
27809
27810 \begin_layout Plain Layout
27811 prettyref
27812 \end_layout
27813
27814 \end_inset
27815 </cell>
27816 <cell alignment="center" valignment="top" usebox="none">
27817 \begin_inset Text
27818
27819 \begin_layout Plain Layout
27820 subfig
27821 \end_layout
27822
27823 \end_inset
27824 </cell>
27825 <cell alignment="center" valignment="top" usebox="none">
27826 \begin_inset Text
27827
27828 \begin_layout Plain Layout
27829 units
27830 \end_layout
27831
27832 \end_inset
27833 </cell>
27834 <cell alignment="center" valignment="top" usebox="none">
27835 \begin_inset Text
27836
27837 \begin_layout Plain Layout
27838
27839 \end_layout
27840
27841 \end_inset
27842 </cell>
27843 </row>
27844 <row>
27845 <cell alignment="left" valignment="top" usebox="none">
27846 \begin_inset Text
27847
27848 \begin_layout Plain Layout
27849 ascii
27850 \end_layout
27851
27852 \end_inset
27853 </cell>
27854 <cell alignment="left" valignment="top" usebox="none">
27855 \begin_inset Text
27856
27857 \begin_layout Plain Layout
27858 enumitem
27859 \end_layout
27860
27861 \end_inset
27862 </cell>
27863 <cell alignment="left" valignment="top" usebox="none">
27864 \begin_inset Text
27865
27866 \begin_layout Plain Layout
27867 ifthen
27868 \end_layout
27869
27870 \end_inset
27871 </cell>
27872 <cell alignment="left" valignment="top" usebox="none">
27873 \begin_inset Text
27874
27875 \begin_layout Plain Layout
27876 mhchem
27877 \end_layout
27878
27879 \end_inset
27880 </cell>
27881 <cell alignment="center" valignment="top" usebox="none">
27882 \begin_inset Text
27883
27884 \begin_layout Plain Layout
27885 pxfonts
27886 \end_layout
27887
27888 \end_inset
27889 </cell>
27890 <cell alignment="center" valignment="top" usebox="none">
27891 \begin_inset Text
27892
27893 \begin_layout Plain Layout
27894 subscript
27895 \end_layout
27896
27897 \end_inset
27898 </cell>
27899 <cell alignment="center" valignment="top" usebox="none">
27900 \begin_inset Text
27901
27902 \begin_layout Plain Layout
27903 url
27904 \end_layout
27905
27906 \end_inset
27907 </cell>
27908 <cell alignment="center" valignment="top" usebox="none">
27909 \begin_inset Text
27910
27911 \begin_layout Plain Layout
27912
27913 \end_layout
27914
27915 \end_inset
27916 </cell>
27917 </row>
27918 <row>
27919 <cell alignment="left" valignment="top" usebox="none">
27920 \begin_inset Text
27921
27922 \begin_layout Plain Layout
27923 bbding
27924 \end_layout
27925
27926 \end_inset
27927 </cell>
27928 <cell alignment="left" valignment="top" usebox="none">
27929 \begin_inset Text
27930
27931 \begin_layout Plain Layout
27932 esint
27933 \end_layout
27934
27935 \end_inset
27936 </cell>
27937 <cell alignment="left" valignment="top" usebox="none">
27938 \begin_inset Text
27939
27940 \begin_layout Plain Layout
27941 jurabib
27942 \end_layout
27943
27944 \end_inset
27945 </cell>
27946 <cell alignment="left" valignment="top" usebox="none">
27947 \begin_inset Text
27948
27949 \begin_layout Plain Layout
27950 multicol
27951 \end_layout
27952
27953 \end_inset
27954 </cell>
27955 <cell alignment="center" valignment="top" usebox="none">
27956 \begin_inset Text
27957
27958 \begin_layout Plain Layout
27959 refstyle
27960 \end_layout
27961
27962 \end_inset
27963 </cell>
27964 <cell alignment="center" valignment="top" usebox="none">
27965 \begin_inset Text
27966
27967 \begin_layout Plain Layout
27968 textcomp
27969 \end_layout
27970
27971 \end_inset
27972 </cell>
27973 <cell alignment="center" valignment="top" usebox="none">
27974 \begin_inset Text
27975
27976 \begin_layout Plain Layout
27977 varioref
27978 \end_layout
27979
27980 \end_inset
27981 </cell>
27982 <cell alignment="center" valignment="top" usebox="none">
27983 \begin_inset Text
27984
27985 \begin_layout Plain Layout
27986
27987 \end_layout
27988
27989 \end_inset
27990 </cell>
27991 </row>
27992 <row>
27993 <cell alignment="center" valignment="top" usebox="none">
27994 \begin_inset Text
27995
27996 \begin_layout Plain Layout
27997 bm
27998 \end_layout
27999
28000 \end_inset
28001 </cell>
28002 <cell alignment="center" valignment="top" usebox="none">
28003 \begin_inset Text
28004
28005 \begin_layout Plain Layout
28006 fancybox
28007 \end_layout
28008
28009 \end_inset
28010 </cell>
28011 <cell alignment="center" valignment="top" usebox="none">
28012 \begin_inset Text
28013
28014 \begin_layout Plain Layout
28015 latexsym
28016 \end_layout
28017
28018 \end_inset
28019 </cell>
28020 <cell alignment="center" valignment="top" usebox="none">
28021 \begin_inset Text
28022
28023 \begin_layout Plain Layout
28024 multirow
28025 \end_layout
28026
28027 \end_inset
28028 </cell>
28029 <cell alignment="center" valignment="top" usebox="none">
28030 \begin_inset Text
28031
28032 \begin_layout Plain Layout
28033 rotating
28034 \end_layout
28035
28036 \end_inset
28037 </cell>
28038 <cell alignment="center" valignment="top" usebox="none">
28039 \begin_inset Text
28040
28041 \begin_layout Plain Layout
28042 textgreek
28043 \end_layout
28044
28045 \end_inset
28046 </cell>
28047 <cell alignment="center" valignment="top" usebox="none">
28048 \begin_inset Text
28049
28050 \begin_layout Plain Layout
28051 verbatim
28052 \end_layout
28053
28054 \end_inset
28055 </cell>
28056 <cell alignment="center" valignment="top" usebox="none">
28057 \begin_inset Text
28058
28059 \begin_layout Plain Layout
28060
28061 \end_layout
28062
28063 \end_inset
28064 </cell>
28065 </row>
28066 </lyxtabular>
28067
28068 \end_inset
28069
28070
28071 \end_layout
28072
28073 \begin_layout Chapter
28074 Names of available colors to be used in layouts
28075 \begin_inset CommandInset label
28076 LatexCommand label
28077 name "chap:Names-of-colors"
28078
28079 \end_inset
28080
28081
28082 \end_layout
28083
28084 \begin_layout Standard
28085 The colors listed below are the standard colors and those that you can adjust
28086  in the \SpecialChar LyX
28087  preferences.
28088 \end_layout
28089
28090 \begin_layout Section
28091 Color functions
28092 \end_layout
28093
28094 \begin_layout Standard
28095 The following are no real colors, but rather act on color definitions:
28096 \end_layout
28097
28098 \begin_layout Description
28099 ignore The color is ignored
28100 \end_layout
28101
28102 \begin_layout Description
28103 inherit The color is inherited
28104 \end_layout
28105
28106 \begin_layout Description
28107 none
28108 \family roman
28109 \series medium
28110 \shape up
28111 \size normal
28112 \emph off
28113 \bar no
28114 \strikeout off
28115 \uuline off
28116 \uwave off
28117 \noun off
28118 \color none
28119  No particular color – clear or default
28120 \end_layout
28121
28122 \begin_layout Section
28123 Static colors
28124 \end_layout
28125
28126 \begin_layout Standard
28127 These are fixed colors that cannot me customized:
28128 \end_layout
28129
28130 \begin_layout Description
28131 black
28132 \end_layout
28133
28134 \begin_layout Description
28135 white
28136 \end_layout
28137
28138 \begin_layout Description
28139 blue
28140 \end_layout
28141
28142 \begin_layout Description
28143 brown
28144 \end_layout
28145
28146 \begin_layout Description
28147 cyan
28148 \end_layout
28149
28150 \begin_layout Description
28151 darkgray
28152 \end_layout
28153
28154 \begin_layout Description
28155 gray
28156 \end_layout
28157
28158 \begin_layout Description
28159 green
28160 \end_layout
28161
28162 \begin_layout Description
28163 lightgray
28164 \end_layout
28165
28166 \begin_layout Description
28167 lime
28168 \end_layout
28169
28170 \begin_layout Description
28171 magenta
28172 \end_layout
28173
28174 \begin_layout Description
28175 olive
28176 \end_layout
28177
28178 \begin_layout Description
28179 orange
28180 \end_layout
28181
28182 \begin_layout Description
28183 pink
28184 \end_layout
28185
28186 \begin_layout Description
28187 purple
28188 \end_layout
28189
28190 \begin_layout Description
28191 red
28192 \end_layout
28193
28194 \begin_layout Description
28195 teal
28196 \end_layout
28197
28198 \begin_layout Description
28199 violet
28200 \end_layout
28201
28202 \begin_layout Description
28203 yellow
28204 \end_layout
28205
28206 \begin_layout Section
28207 Dynamic colors
28208 \end_layout
28209
28210 \begin_layout Standard
28211 These are the colors allocated to specific elements in 
28212 \begin_inset Info
28213 type  "menu"
28214 arg   "dialog-show prefs"
28215 \end_inset
28216
28217 :
28218 \end_layout
28219
28220 \begin_layout Description
28221 added_space Added space color
28222 \end_layout
28223
28224 \begin_layout Description
28225 addedtext Added text color
28226 \end_layout
28227
28228 \begin_layout Description
28229 appendix Appendix marker color
28230 \end_layout
28231
28232 \begin_layout Description
28233 background Background color
28234 \end_layout
28235
28236 \begin_layout Description
28237 bottomarea Bottom area color
28238 \end_layout
28239
28240 \begin_layout Description
28241 branchlabel Label color for branches
28242 \end_layout
28243
28244 \begin_layout Description
28245 buttonbg Color used for button background
28246 \end_layout
28247
28248 \begin_layout Description
28249 buttonframe Color for inset button frames
28250 \end_layout
28251
28252 \begin_layout Description
28253 buttonhoverbg Color used for button background under focus
28254 \end_layout
28255
28256 \begin_layout Description
28257 changebar Changebar color
28258 \end_layout
28259
28260 \begin_layout Description
28261 changedtextauthor1 Changed text color author 1
28262 \end_layout
28263
28264 \begin_layout Description
28265 changedtextauthor2 Changed text color author 2
28266 \end_layout
28267
28268 \begin_layout Description
28269 changedtextauthor3 Changed text color author 3
28270 \end_layout
28271
28272 \begin_layout Description
28273 changedtextauthor4 Changed text color author 4
28274 \end_layout
28275
28276 \begin_layout Description
28277 changedtextauthor5 Changed text color author 5
28278 \end_layout
28279
28280 \begin_layout Description
28281 collapsible Collapsible insets text color
28282 \end_layout
28283
28284 \begin_layout Description
28285 collapsibleframe Collapsible insets framecolor
28286 \end_layout
28287
28288 \begin_layout Description
28289 command Text color for command insets
28290 \end_layout
28291
28292 \begin_layout Description
28293 commandbg Background color for command insets
28294 \end_layout
28295
28296 \begin_layout Description
28297 commandframe Frame color for command insets
28298 \end_layout
28299
28300 \begin_layout Description
28301 comment Label color for comments
28302 \end_layout
28303
28304 \begin_layout Description
28305 commentbg Background color of comments
28306 \end_layout
28307
28308 \begin_layout Description
28309 cursor Cursor color
28310 \end_layout
28311
28312 \begin_layout Description
28313 deletedtext Deleted text color
28314 \end_layout
28315
28316 \begin_layout Description
28317 deletedtextmodifier Deleted text modifying color
28318 \end_layout
28319
28320 \begin_layout Description
28321 depthbar Color for the depth bars in the margin
28322 \end_layout
28323
28324 \begin_layout Description
28325 eolmarker End of line marker color
28326 \end_layout
28327
28328 \begin_layout Description
28329 error Color of the \SpecialChar LaTeX
28330  error box
28331 \end_layout
28332
28333 \begin_layout Description
28334 footlabel Label color for footnotes
28335 \end_layout
28336
28337 \begin_layout Description
28338 foreground Foreground color
28339 \end_layout
28340
28341 \begin_layout Description
28342 graphicsbg Graphics inset background color
28343 \end_layout
28344
28345 \begin_layout Description
28346 greyedoutbg Background color of greyedout inset
28347 \end_layout
28348
28349 \begin_layout Description
28350 greyedoutlabel Label color for greyedout insets
28351 \end_layout
28352
28353 \begin_layout Description
28354 greyedouttext Color for greyedout inset text
28355 \end_layout
28356
28357 \begin_layout Description
28358 indexlabel Label color for index insets
28359 \end_layout
28360
28361 \begin_layout Description
28362 inlinecompletion Inline completion color
28363 \end_layout
28364
28365 \begin_layout Description
28366 insetbg Inset marker background color
28367 \end_layout
28368
28369 \begin_layout Description
28370 insetframe Inset marker frame color
28371 \end_layout
28372
28373 \begin_layout Description
28374 language Color for marking foreign language words
28375 \end_layout
28376
28377 \begin_layout Description
28378 latex Text color in \SpecialChar LaTeX
28379  mode
28380 \end_layout
28381
28382 \begin_layout Description
28383 listingsbg Background color of listings inset
28384 \end_layout
28385
28386 \begin_layout Description
28387 marginlabel Label color for margin notes
28388 \end_layout
28389
28390 \begin_layout Description
28391 math Math inset text color
28392 \end_layout
28393
28394 \begin_layout Description
28395 mathbg Math inset background color
28396 \end_layout
28397
28398 \begin_layout Description
28399 mathcorners Math inset frame color not under focus
28400 \end_layout
28401
28402 \begin_layout Description
28403 mathframe Math inset frame color under focus
28404 \end_layout
28405
28406 \begin_layout Description
28407 mathline Math line color
28408 \end_layout
28409
28410 \begin_layout Description
28411 mathmacrobg Macro math inset background color
28412 \end_layout
28413
28414 \begin_layout Description
28415 mathmacroblend Macro math blended color
28416 \end_layout
28417
28418 \begin_layout Description
28419 mathmacroframe Macro math frame color
28420 \end_layout
28421
28422 \begin_layout Description
28423 mathmacrohoverbg Macro math inset background color hovered
28424 \end_layout
28425
28426 \begin_layout Description
28427 mathmacrolabel Macro math label color
28428 \end_layout
28429
28430 \begin_layout Description
28431 mathmacronewarg Macro template color for new parameters
28432 \end_layout
28433
28434 \begin_layout Description
28435 mathmacrooldarg Macro template color for old parameters
28436 \end_layout
28437
28438 \begin_layout Description
28439 newpage New page color
28440 \end_layout
28441
28442 \begin_layout Description
28443 nonunique_inlinecompletion Inline completion color for the non-unique part
28444 \end_layout
28445
28446 \begin_layout Description
28447 note Label color for notes
28448 \end_layout
28449
28450 \begin_layout Description
28451 notebg Background color of notes
28452 \end_layout
28453
28454 \begin_layout Description
28455 pagebreak Page break/line break color
28456 \end_layout
28457
28458 \begin_layout Description
28459 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
28460 \end_layout
28461
28462 \begin_layout Description
28463 phantomtext Text color for phantom insets
28464 \end_layout
28465
28466 \begin_layout Description
28467 preview The color used for previews
28468 \end_layout
28469
28470 \begin_layout Description
28471 previewframe Preview frame color
28472 \end_layout
28473
28474 \begin_layout Description
28475 regexpframe Color for regexp frame
28476 \end_layout
28477
28478 \begin_layout Description
28479 scroll Color that indicates when a row can be scrolled 
28480 \end_layout
28481
28482 \begin_layout Description
28483 selection Background color of selected text
28484 \end_layout
28485
28486 \begin_layout Description
28487 selectiontext Foreground color of selected text
28488 \end_layout
28489
28490 \begin_layout Description
28491 shadedbg Background color of shaded box
28492 \end_layout
28493
28494 \begin_layout Description
28495 special Special chars text color
28496 \end_layout
28497
28498 \begin_layout Description
28499 tabularline Table line color
28500 \end_layout
28501
28502 \begin_layout Description
28503 tabularonoffline Table line color
28504 \end_layout
28505
28506 \begin_layout Description
28507 urllabel Label color for URL insets
28508 \end_layout
28509
28510 \begin_layout Description
28511 urltext Color for URL inset text
28512 \end_layout
28513
28514 \end_body
28515 \end_document