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