]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
ed94ece98d871dda71352822a8cecff1e66bb128
[lyx.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 \end_layout
10217
10218 \begin_layout Description
10219 \begin_inset Flex Code
10220 status collapsed
10221
10222 \begin_layout Plain Layout
10223 RightMargin
10224 \end_layout
10225
10226 \end_inset
10227
10228  [
10229 \begin_inset Flex Code
10230 status collapsed
10231
10232 \begin_layout Plain Layout
10233 string
10234 \end_layout
10235
10236 \end_inset
10237
10238 ] A string that indicates the width of the right margin on the screen, for
10239  example, 
10240 \begin_inset Quotes eld
10241 \end_inset
10242
10243
10244 \begin_inset Flex Code
10245 status collapsed
10246
10247 \begin_layout Plain Layout
10248 MMMMM
10249 \end_layout
10250
10251 \end_inset
10252
10253
10254 \begin_inset Quotes erd
10255 \end_inset
10256
10257 .
10258 \end_layout
10259
10260 \begin_layout Description
10261 \begin_inset Flex Code
10262 status collapsed
10263
10264 \begin_layout Plain Layout
10265 SecNumDepth
10266 \end_layout
10267
10268 \end_inset
10269
10270  [
10271 \begin_inset Flex Code
10272 status collapsed
10273
10274 \begin_layout Plain Layout
10275 int=3
10276 \end_layout
10277
10278 \end_inset
10279
10280 ] Sets which divisions get numbered.
10281  Corresponds to the
10282 \begin_inset Newline newline
10283 \end_inset
10284
10285
10286 \begin_inset Flex Code
10287 status collapsed
10288
10289 \begin_layout Plain Layout
10290 secnumdepth
10291 \end_layout
10292
10293 \end_inset
10294
10295  counter in \SpecialChar LaTeX
10296 .
10297 \end_layout
10298
10299 \begin_layout Description
10300 \begin_inset Flex Code
10301 status collapsed
10302
10303 \begin_layout Plain Layout
10304 Sides
10305 \end_layout
10306
10307 \end_inset
10308
10309  [
10310 \begin_inset Flex Code
10311 status collapsed
10312
10313 \begin_layout Plain Layout
10314
10315 \emph on
10316 1
10317 \end_layout
10318
10319 \end_inset
10320
10321 ,
10322 \begin_inset space \thinspace{}
10323 \end_inset
10324
10325
10326 \begin_inset Flex Code
10327 status collapsed
10328
10329 \begin_layout Plain Layout
10330 2
10331 \end_layout
10332
10333 \end_inset
10334
10335 ] Whether the class-default should be printing on one or both sides of the
10336  paper.
10337  Can be changed in the 
10338 \begin_inset Flex MenuItem
10339 status collapsed
10340
10341 \begin_layout Plain Layout
10342 Document\SpecialChar menuseparator
10343 Settings
10344 \end_layout
10345
10346 \end_inset
10347
10348  dialog.
10349 \end_layout
10350
10351 \begin_layout Description
10352 \begin_inset Flex Code
10353 status collapsed
10354
10355 \begin_layout Plain Layout
10356 Style
10357 \end_layout
10358
10359 \end_inset
10360
10361  [
10362 \begin_inset Flex Code
10363 status collapsed
10364
10365 \begin_layout Plain Layout
10366 <name>
10367 \end_layout
10368
10369 \end_inset
10370
10371 ] This sequence defines a paragraph style.
10372  If the style does not yet exist, it is created; if it does exist, its parameter
10373 s are modified.
10374  Must end with 
10375 \begin_inset Quotes eld
10376 \end_inset
10377
10378
10379 \begin_inset Flex Code
10380 status collapsed
10381
10382 \begin_layout Plain Layout
10383 End
10384 \end_layout
10385
10386 \end_inset
10387
10388
10389 \begin_inset Quotes erd
10390 \end_inset
10391
10392 .
10393 \begin_inset Newline newline
10394 \end_inset
10395
10396 See 
10397 \begin_inset CommandInset ref
10398 LatexCommand ref
10399 reference "subsec:Paragraph-Styles"
10400
10401 \end_inset
10402
10403  for details on paragraph styles.
10404 \end_layout
10405
10406 \begin_layout Description
10407 \begin_inset Flex Code
10408 status collapsed
10409
10410 \begin_layout Plain Layout
10411 TitleLatexName
10412 \end_layout
10413
10414 \end_inset
10415
10416  [
10417 \begin_inset Flex Code
10418 status collapsed
10419
10420 \begin_layout Plain Layout
10421 string="maketitle"
10422 \end_layout
10423
10424 \end_inset
10425
10426 ] The name of the command or environment to be used with 
10427 \begin_inset Flex Code
10428 status collapsed
10429
10430 \begin_layout Plain Layout
10431 TitleLatexType
10432 \end_layout
10433
10434 \end_inset
10435
10436 .
10437 \end_layout
10438
10439 \begin_layout Description
10440 \begin_inset Flex Code
10441 status collapsed
10442
10443 \begin_layout Plain Layout
10444 TitleLatexType
10445 \end_layout
10446
10447 \end_inset
10448
10449  [
10450 \begin_inset Flex Code
10451 status collapsed
10452
10453 \begin_layout Plain Layout
10454
10455 \emph on
10456 CommandAfter
10457 \end_layout
10458
10459 \end_inset
10460
10461
10462 \begin_inset Flex Code
10463 status collapsed
10464
10465 \begin_layout Plain Layout
10466 Environment
10467 \end_layout
10468
10469 \end_inset
10470
10471 ] Indicates what kind of markup is used to define the title of a document.
10472  
10473 \begin_inset Flex Code
10474 status collapsed
10475
10476 \begin_layout Plain Layout
10477 CommandAfter
10478 \end_layout
10479
10480 \end_inset
10481
10482  means that the macro with name 
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 TitleLatexName
10488 \end_layout
10489
10490 \end_inset
10491
10492  will be inserted after the last layout which has 
10493 \begin_inset Quotes eld
10494 \end_inset
10495
10496
10497 \begin_inset Flex Code
10498 status collapsed
10499
10500 \begin_layout Plain Layout
10501 InTitle
10502 \begin_inset space ~
10503 \end_inset
10504
10505 1
10506 \end_layout
10507
10508 \end_inset
10509
10510
10511 \begin_inset Quotes erd
10512 \end_inset
10513
10514 .
10515  
10516 \begin_inset Flex Code
10517 status collapsed
10518
10519 \begin_layout Plain Layout
10520 Environment
10521 \end_layout
10522
10523 \end_inset
10524
10525  corresponds to the case where all layouts which have 
10526 \begin_inset Quotes eld
10527 \end_inset
10528
10529
10530 \begin_inset Flex Code
10531 status collapsed
10532
10533 \begin_layout Plain Layout
10534 InTitle
10535 \begin_inset space ~
10536 \end_inset
10537
10538 1
10539 \end_layout
10540
10541 \end_inset
10542
10543
10544 \begin_inset Quotes erd
10545 \end_inset
10546
10547  should be enclosed into the 
10548 \begin_inset Flex Code
10549 status collapsed
10550
10551 \begin_layout Plain Layout
10552 TitleLatexName
10553 \end_layout
10554
10555 \end_inset
10556
10557  environment.
10558 \end_layout
10559
10560 \begin_layout Description
10561 \begin_inset Flex Code
10562 status collapsed
10563
10564 \begin_layout Plain Layout
10565 TocDepth
10566 \end_layout
10567
10568 \end_inset
10569
10570  [
10571 \begin_inset Flex Code
10572 status collapsed
10573
10574 \begin_layout Plain Layout
10575 int=3
10576 \end_layout
10577
10578 \end_inset
10579
10580 ] Sets which divisions are included in the table of contents.
10581  Corresponds to the 
10582 \begin_inset Flex Code
10583 status collapsed
10584
10585 \begin_layout Plain Layout
10586 tocdepth
10587 \end_layout
10588
10589 \end_inset
10590
10591  counter in \SpecialChar LaTeX
10592 .
10593 \end_layout
10594
10595 \begin_layout Subsection
10596 \begin_inset Flex Code
10597 status collapsed
10598
10599 \begin_layout Plain Layout
10600 ClassOptions
10601 \end_layout
10602
10603 \end_inset
10604
10605  section
10606 \begin_inset CommandInset label
10607 LatexCommand label
10608 name "subsec:ClassOptions"
10609
10610 \end_inset
10611
10612
10613 \end_layout
10614
10615 \begin_layout Standard
10616 The 
10617 \begin_inset Flex Code
10618 status collapsed
10619
10620 \begin_layout Plain Layout
10621 ClassOptions
10622 \end_layout
10623
10624 \end_inset
10625
10626  section can contain the following entries:
10627 \end_layout
10628
10629 \begin_layout Description
10630 \begin_inset Flex Code
10631 status collapsed
10632
10633 \begin_layout Plain Layout
10634 FontSize
10635 \end_layout
10636
10637 \end_inset
10638
10639  [
10640 \begin_inset Flex Code
10641 status collapsed
10642
10643 \begin_layout Plain Layout
10644 string="10|11|12"
10645 \end_layout
10646
10647 \end_inset
10648
10649 ] The list of available font sizes for the document's main font, separated
10650  by 
10651 \begin_inset Quotes eld
10652 \end_inset
10653
10654
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 |
10660 \end_layout
10661
10662 \end_inset
10663
10664
10665 \begin_inset Quotes erd
10666 \end_inset
10667
10668 .
10669 \end_layout
10670
10671 \begin_layout Description
10672 \begin_inset Flex Code
10673 status collapsed
10674
10675 \begin_layout Plain Layout
10676 Header
10677 \end_layout
10678
10679 \end_inset
10680
10681  Used to set the DTD line with XML-based output classes.
10682  E.
10683 \begin_inset space \thinspace{}
10684 \end_inset
10685
10686 g.: PUBLIC 
10687 \begin_inset Quotes eld
10688 \end_inset
10689
10690 -//OASIS//DTD DocBook V4.2//EN
10691 \begin_inset Quotes erd
10692 \end_inset
10693
10694 .
10695 \end_layout
10696
10697 \begin_layout Description
10698 \begin_inset Flex Code
10699 status collapsed
10700
10701 \begin_layout Plain Layout
10702 PageStyle
10703 \end_layout
10704
10705 \end_inset
10706
10707  [
10708 \begin_inset Flex Code
10709 status collapsed
10710
10711 \begin_layout Plain Layout
10712 string="empty|plain|headings|fancy"
10713 \end_layout
10714
10715 \end_inset
10716
10717 ] The list of available page sty\SpecialChar softhyphen
10718 les, separated by 
10719 \begin_inset Quotes eld
10720 \end_inset
10721
10722
10723 \begin_inset Flex Code
10724 status collapsed
10725
10726 \begin_layout Plain Layout
10727 |
10728 \end_layout
10729
10730 \end_inset
10731
10732
10733 \begin_inset Quotes erd
10734 \end_inset
10735
10736 .
10737 \end_layout
10738
10739 \begin_layout Description
10740 \begin_inset Flex Code
10741 status collapsed
10742
10743 \begin_layout Plain Layout
10744 Other
10745 \end_layout
10746
10747 \end_inset
10748
10749  [
10750 \begin_inset Flex Code
10751 status collapsed
10752
10753 \begin_layout Plain Layout
10754 string=""
10755 \end_layout
10756
10757 \end_inset
10758
10759 ] Some document class options, separated by a comma, that will be added
10760  to the optional part of the 
10761 \begin_inset Flex Code
10762 status collapsed
10763
10764 \begin_layout Plain Layout
10765
10766 \backslash
10767 documentclass
10768 \end_layout
10769
10770 \end_inset
10771
10772  command.
10773 \end_layout
10774
10775 \begin_layout Standard
10776 The 
10777 \begin_inset Flex Code
10778 status collapsed
10779
10780 \begin_layout Plain Layout
10781 ClassOptions
10782 \end_layout
10783
10784 \end_inset
10785
10786  section must end with 
10787 \begin_inset Quotes eld
10788 \end_inset
10789
10790
10791 \begin_inset Flex Code
10792 status collapsed
10793
10794 \begin_layout Plain Layout
10795 End
10796 \end_layout
10797
10798 \end_inset
10799
10800
10801 \begin_inset Quotes erd
10802 \end_inset
10803
10804 .
10805 \end_layout
10806
10807 \begin_layout Subsection
10808 Paragraph styles
10809 \begin_inset CommandInset label
10810 LatexCommand label
10811 name "subsec:Paragraph-Styles"
10812
10813 \end_inset
10814
10815
10816 \end_layout
10817
10818 \begin_layout Standard
10819 A paragraph style description looks like this:
10820 \begin_inset Foot
10821 status collapsed
10822
10823 \begin_layout Plain Layout
10824 Note that this will either define a new style or modify an existing one.
10825 \end_layout
10826
10827 \end_inset
10828
10829
10830 \end_layout
10831
10832 \begin_layout LyX-Code
10833 Style 
10834 \family roman
10835 \emph on
10836 name
10837 \end_layout
10838
10839 \begin_layout LyX-Code
10840  ...
10841 \end_layout
10842
10843 \begin_layout LyX-Code
10844 End
10845 \end_layout
10846
10847 \begin_layout Standard
10848 where the following commands are allowed:
10849 \end_layout
10850
10851 \begin_layout Description
10852 \begin_inset Flex Code
10853 status collapsed
10854
10855 \begin_layout Plain Layout
10856 Align
10857 \end_layout
10858
10859 \end_inset
10860
10861  [
10862 \begin_inset Flex Code
10863 status collapsed
10864
10865 \begin_layout Plain Layout
10866
10867 \emph on
10868 block
10869 \emph default
10870 , left, right, center
10871 \end_layout
10872
10873 \end_inset
10874
10875 ] Paragraph alignment.
10876 \end_layout
10877
10878 \begin_layout Description
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 AlignPossible
10884 \end_layout
10885
10886 \end_inset
10887
10888  [
10889 \begin_inset Flex Code
10890 status collapsed
10891
10892 \begin_layout Plain Layout
10893
10894 \emph on
10895 block
10896 \emph default
10897 , left, right, center
10898 \end_layout
10899
10900 \end_inset
10901
10902 ] A comma separated list of permitted alignments.
10903  (Some \SpecialChar LaTeX
10904  styles prohibit certain alignments, since those wouldn't make sense.
10905  For example a right-aligned or centered enumeration isn't possible.)
10906 \end_layout
10907
10908 \begin_layout Description
10909 \begin_inset Flex Code
10910 status collapsed
10911
10912 \begin_layout Plain Layout
10913 Argument
10914 \end_layout
10915
10916 \end_inset
10917
10918  [
10919 \begin_inset Flex Code
10920 status collapsed
10921
10922 \begin_layout Plain Layout
10923 int
10924 \end_layout
10925
10926 \end_inset
10927
10928 ] Defines argument number <int> of a command\SpecialChar breakableslash
10929 environment associated with
10930  the current style.
10931  This is useful for things like section headings, and only makes sense with
10932  \SpecialChar LaTeX
10933 .
10934  Every (optional or required) argument of a command or environment – except
10935  for the required argument that is associated with the content of the paragraph
10936  itself – has a separate definition, where the number specifies the order
10937  of the arguments.
10938  The definition must end with 
10939 \begin_inset Flex Code
10940 status collapsed
10941
10942 \begin_layout Plain Layout
10943 EndArgument
10944 \end_layout
10945
10946 \end_inset
10947
10948 .
10949  So a command with two optional arguments has:
10950 \begin_inset Separator parbreak
10951 \end_inset
10952
10953
10954 \end_layout
10955
10956 \begin_deeper
10957 \begin_layout Quote
10958
10959 \family typewriter
10960 Argument 1
10961 \end_layout
10962
10963 \begin_layout Quote
10964
10965 \family typewriter
10966 ...
10967 \end_layout
10968
10969 \begin_layout Quote
10970
10971 \family typewriter
10972 EndArgument
10973 \end_layout
10974
10975 \begin_layout Quote
10976
10977 \family typewriter
10978 Argument 2
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 Standard
10994 Inside the 
10995 \begin_inset Flex Code
10996 status collapsed
10997
10998 \begin_layout Plain Layout
10999 Argument
11000 \end_layout
11001
11002 \end_inset
11003
11004  definition, the following specifications are possible:
11005 \end_layout
11006
11007 \begin_layout Itemize
11008 \begin_inset Flex Code
11009 status collapsed
11010
11011 \begin_layout Plain Layout
11012 LabelString
11013 \end_layout
11014
11015 \end_inset
11016
11017  
11018 \begin_inset Flex Code
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022 [string]
11023 \end_layout
11024
11025 \end_inset
11026
11027  The string that will appear both in the menu (to insert this argument)
11028  and on the argument inset button (unless you also specify a separate 
11029 \begin_inset Flex Code
11030 status collapsed
11031
11032 \begin_layout Plain Layout
11033 MenuString
11034 \end_layout
11035
11036 \end_inset
11037
11038 ).
11039  For the menu, you can define an accelerator by appending the respective
11040  character to the string, divided by 
11041 \begin_inset Quotes eld
11042 \end_inset
11043
11044 |
11045 \begin_inset Quotes erd
11046 \end_inset
11047
11048  (e.
11049 \begin_inset space \thinspace{}
11050 \end_inset
11051
11052 g.
11053 \begin_inset space \space{}
11054 \end_inset
11055
11056
11057 \begin_inset Quotes eld
11058 \end_inset
11059
11060
11061 \begin_inset Flex Code
11062 status collapsed
11063
11064 \begin_layout Plain Layout
11065 Short Title|S
11066 \end_layout
11067
11068 \end_inset
11069
11070
11071 \begin_inset Quotes erd
11072 \end_inset
11073
11074 ).
11075 \end_layout
11076
11077 \begin_layout Itemize
11078 \begin_inset Flex Code
11079 status collapsed
11080
11081 \begin_layout Plain Layout
11082 MenuString
11083 \end_layout
11084
11085 \end_inset
11086
11087  
11088 \begin_inset Flex Code
11089 status collapsed
11090
11091 \begin_layout Plain Layout
11092 [string]
11093 \end_layout
11094
11095 \end_inset
11096
11097  A separate string for the menu.
11098  You can define an accelerator by appending the respective character to
11099  the string, divided by 
11100 \begin_inset Quotes eld
11101 \end_inset
11102
11103 |
11104 \begin_inset Quotes erd
11105 \end_inset
11106
11107  (e.
11108 \begin_inset space \thinspace{}
11109 \end_inset
11110
11111 g.
11112 \begin_inset space \space{}
11113 \end_inset
11114
11115
11116 \begin_inset Quotes eld
11117 \end_inset
11118
11119
11120 \begin_inset Flex Code
11121 status collapsed
11122
11123 \begin_layout Plain Layout
11124 Short Title|S
11125 \end_layout
11126
11127 \end_inset
11128
11129
11130 \begin_inset Quotes erd
11131 \end_inset
11132
11133 ).
11134  This specification is optional.
11135  If it is not given the 
11136 \begin_inset Flex Code
11137 status collapsed
11138
11139 \begin_layout Plain Layout
11140 LabelString
11141 \end_layout
11142
11143 \end_inset
11144
11145  will be used instead for the menu.
11146 \end_layout
11147
11148 \begin_layout Itemize
11149 \begin_inset Flex Code
11150 status collapsed
11151
11152 \begin_layout Plain Layout
11153 Tooltip
11154 \end_layout
11155
11156 \end_inset
11157
11158  
11159 \begin_inset Flex Code
11160 status collapsed
11161
11162 \begin_layout Plain Layout
11163 [string]
11164 \end_layout
11165
11166 \end_inset
11167
11168  A longer explanatory text that appears in the tooltip when hovering over
11169  the argument inset.
11170 \end_layout
11171
11172 \begin_layout Itemize
11173 \begin_inset Flex Code
11174 status collapsed
11175
11176 \begin_layout Plain Layout
11177 Mandatory
11178 \end_layout
11179
11180 \end_inset
11181
11182  [
11183 \begin_inset Flex Code
11184 status collapsed
11185
11186 \begin_layout Plain Layout
11187
11188 \emph on
11189 0
11190 \end_layout
11191
11192 \end_inset
11193
11194 ,
11195 \begin_inset space \thinspace{}
11196 \end_inset
11197
11198
11199 \begin_inset Flex Code
11200 status collapsed
11201
11202 \begin_layout Plain Layout
11203 1
11204 \end_layout
11205
11206 \end_inset
11207
11208 ] Declare if this is a mandatory (1) or an optional (0) argument.
11209  Mandatory arguments will be output empty if not given, while optional arguments
11210  will not be output at all.
11211  By default, mandatory arguments are delimited by 
11212 \begin_inset Flex Code
11213 status collapsed
11214
11215 \begin_layout Plain Layout
11216 {...}
11217 \end_layout
11218
11219 \end_inset
11220
11221 , while optional arguments are delimited by 
11222 \begin_inset Flex Code
11223 status collapsed
11224
11225 \begin_layout Plain Layout
11226 [...]
11227 \end_layout
11228
11229 \end_inset
11230
11231
11232 \end_layout
11233
11234 \begin_layout Itemize
11235 \begin_inset Flex Code
11236 status collapsed
11237
11238 \begin_layout Plain Layout
11239 Requires
11240 \end_layout
11241
11242 \end_inset
11243
11244  
11245 \begin_inset Flex Code
11246 status collapsed
11247
11248 \begin_layout Plain Layout
11249 [int=0]
11250 \end_layout
11251
11252 \end_inset
11253
11254  defines another argument (by its number) which this argument requires to
11255  be output if it is itself output.
11256  E.
11257 \begin_inset space \thinspace{}
11258 \end_inset
11259
11260 g., in \SpecialChar LaTeX
11261  commands, optional arguments often require previous optional arguments
11262  to be output (at least empty), as in 
11263 \begin_inset Flex Code
11264 status collapsed
11265
11266 \begin_layout Plain Layout
11267
11268 \backslash
11269 command[][argument]{text}
11270 \end_layout
11271
11272 \end_inset
11273
11274 .
11275  This can be achieved by the statement 
11276 \begin_inset Flex Code
11277 status collapsed
11278
11279 \begin_layout Plain Layout
11280 Requires 1
11281 \end_layout
11282
11283 \end_inset
11284
11285  within 
11286 \begin_inset Flex Code
11287 status collapsed
11288
11289 \begin_layout Plain Layout
11290 Argument 2
11291 \end_layout
11292
11293 \end_inset
11294
11295 .
11296 \end_layout
11297
11298 \begin_layout Itemize
11299 \begin_inset Flex Code
11300 status collapsed
11301
11302 \begin_layout Plain Layout
11303 LeftDelim
11304 \end_layout
11305
11306 \end_inset
11307
11308  
11309 \begin_inset Flex Code
11310 status collapsed
11311
11312 \begin_layout Plain Layout
11313 [string]
11314 \end_layout
11315
11316 \end_inset
11317
11318  defines a custom left delimiter (instead of 
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323 {
11324 \end_layout
11325
11326 \end_inset
11327
11328  or 
11329 \begin_inset Flex Code
11330 status collapsed
11331
11332 \begin_layout Plain Layout
11333 [
11334 \end_layout
11335
11336 \end_inset
11337
11338 ).
11339  A line break in the output can be indicated by 
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 <br/>
11345 \end_layout
11346
11347 \end_inset
11348
11349 .
11350 \end_layout
11351
11352 \begin_layout Itemize
11353 \begin_inset Flex Code
11354 status collapsed
11355
11356 \begin_layout Plain Layout
11357 RightDelim
11358 \end_layout
11359
11360 \end_inset
11361
11362  
11363 \begin_inset Flex Code
11364 status collapsed
11365
11366 \begin_layout Plain Layout
11367 [string]
11368 \end_layout
11369
11370 \end_inset
11371
11372  defines a custom right delimiter (instead of 
11373 \begin_inset Flex Code
11374 status collapsed
11375
11376 \begin_layout Plain Layout
11377 }
11378 \end_layout
11379
11380 \end_inset
11381
11382  or 
11383 \begin_inset Flex Code
11384 status collapsed
11385
11386 \begin_layout Plain Layout
11387 ]
11388 \end_layout
11389
11390 \end_inset
11391
11392 ).
11393  A line break in the output can be indicated by 
11394 \begin_inset Flex Code
11395 status collapsed
11396
11397 \begin_layout Plain Layout
11398 <br/>
11399 \end_layout
11400
11401 \end_inset
11402
11403 .
11404 \end_layout
11405
11406 \begin_layout Itemize
11407 \begin_inset Flex Code
11408 status collapsed
11409
11410 \begin_layout Plain Layout
11411 DefaultArg
11412 \end_layout
11413
11414 \end_inset
11415
11416  
11417 \begin_inset Flex Code
11418 status collapsed
11419
11420 \begin_layout Plain Layout
11421 [string]
11422 \end_layout
11423
11424 \end_inset
11425
11426  defines an argument that is inserted if and only if no user-specified arguments
11427  were given, i.
11428 \begin_inset space \thinspace{}
11429 \end_inset
11430
11431 e.
11432 \begin_inset space \space{}
11433 \end_inset
11434
11435 if no argument inset has been inserted (note that also an empty argument
11436  inset omits the DefaultArg).
11437  Multiple arguments need to be separated by comma.
11438 \end_layout
11439
11440 \begin_layout Itemize
11441 \begin_inset Flex Code
11442 status collapsed
11443
11444 \begin_layout Plain Layout
11445 PresetArg
11446 \end_layout
11447
11448 \end_inset
11449
11450  
11451 \begin_inset Flex Code
11452 status collapsed
11453
11454 \begin_layout Plain Layout
11455 [string]
11456 \end_layout
11457
11458 \end_inset
11459
11460  defines an argument that is inserted in any case (alone or in addition
11461  to user-specified arguments).
11462  Multiple arguments need to be separated by comma.
11463 \end_layout
11464
11465 \begin_layout Itemize
11466 \begin_inset Flex Code
11467 status collapsed
11468
11469 \begin_layout Plain Layout
11470 Font
11471 \end_layout
11472
11473 \end_inset
11474
11475  The font used for the argument content, see 
11476 \begin_inset CommandInset ref
11477 LatexCommand ref
11478 reference "subsec:Font-description"
11479
11480 \end_inset
11481
11482 .
11483 \end_layout
11484
11485 \begin_layout Itemize
11486 \begin_inset Flex Code
11487 status collapsed
11488
11489 \begin_layout Plain Layout
11490 LabelFont
11491 \end_layout
11492
11493 \end_inset
11494
11495  The font used for the label; see 
11496 \begin_inset CommandInset ref
11497 LatexCommand ref
11498 reference "subsec:Font-description"
11499
11500 \end_inset
11501
11502 .
11503 \end_layout
11504
11505 \begin_layout Itemize
11506 \begin_inset Flex Code
11507 status collapsed
11508
11509 \begin_layout Plain Layout
11510 Decoration
11511 \end_layout
11512
11513 \end_inset
11514
11515  [
11516 \begin_inset Flex Code
11517 status collapsed
11518
11519 \begin_layout Plain Layout
11520
11521 \emph on
11522 Classic
11523 \emph default
11524 , Minimalistic, Conglomerate
11525 \end_layout
11526
11527 \end_inset
11528
11529 ] describes the rendering style used for the inset's frame and buttons.
11530 \end_layout
11531
11532 \begin_layout Itemize
11533 \begin_inset Flex Code
11534 status collapsed
11535
11536 \begin_layout Plain Layout
11537 AutoInsert
11538 \end_layout
11539
11540 \end_inset
11541
11542  
11543 \begin_inset Flex Code
11544 status collapsed
11545
11546 \begin_layout Plain Layout
11547 [int=0]
11548 \end_layout
11549
11550 \end_inset
11551
11552  If this is set to 
11553 \begin_inset Flex Code
11554 status collapsed
11555
11556 \begin_layout Plain Layout
11557 1
11558 \end_layout
11559
11560 \end_inset
11561
11562 , this argument is automatically inserted when the respective style is selected.
11563  Currently, only one argument per style\SpecialChar breakableslash
11564 layout can be automatically inserted.
11565 \change_inserted -712698321 1431166542
11566
11567 \end_layout
11568
11569 \begin_layout Itemize
11570
11571 \change_inserted -712698321 1431166604
11572 \begin_inset Flex Code
11573 status collapsed
11574
11575 \begin_layout Plain Layout
11576
11577 \change_inserted -712698321 1431166548
11578 InsertCotext
11579 \end_layout
11580
11581 \end_inset
11582
11583  
11584 \begin_inset Flex Code
11585 status collapsed
11586
11587 \begin_layout Plain Layout
11588
11589 \change_inserted -712698321 1431166543
11590 [int=0]
11591 \end_layout
11592
11593 \end_inset
11594
11595  If this is set to 
11596 \begin_inset Flex Code
11597 status collapsed
11598
11599 \begin_layout Plain Layout
11600
11601 \change_inserted -712698321 1431166543
11602 1
11603 \end_layout
11604
11605 \end_inset
11606
11607 , this argument will bei inserted with a copy of the co-text (either selected
11608  text or the whole paragraph) as content.
11609 \end_layout
11610
11611 \begin_layout Itemize
11612
11613 \change_inserted -712698321 1431070588
11614 \begin_inset Flex Code
11615 status collapsed
11616
11617 \begin_layout Plain Layout
11618
11619 \change_inserted -712698321 1431070522
11620 PassThruChars
11621 \end_layout
11622
11623 \end_inset
11624
11625  [
11626 \begin_inset Flex Code
11627 status collapsed
11628
11629 \begin_layout Plain Layout
11630
11631 \change_inserted -712698321 1431070522
11632 string of characters
11633 \end_layout
11634
11635 \end_inset
11636
11637 ]
11638 \family typewriter
11639  
11640 \family default
11641 Defines individual characters that should be output in raw form, meaning
11642  without special translations that \SpecialChar LaTeX
11643  would require.
11644  Note that, contrary to PassThru, this needs to be explicitly defined for
11645  arguments.
11646  That is, arguments do not inherit PassThruChars from their parent inset
11647  or layout.
11648 \change_unchanged
11649
11650 \end_layout
11651
11652 \begin_layout Standard
11653 By default, the text entered in the \SpecialChar LyX
11654  workarea in the respective layout is
11655  the last (mandatory) argument of a command if the 
11656 \begin_inset Flex Code
11657 status collapsed
11658
11659 \begin_layout Plain Layout
11660 LatexType
11661 \end_layout
11662
11663 \end_inset
11664
11665  is 
11666 \begin_inset Flex Code
11667 status collapsed
11668
11669 \begin_layout Plain Layout
11670 Command
11671 \end_layout
11672
11673 \end_inset
11674
11675 .
11676  However, arguments with the prefix 
11677 \begin_inset Flex Code
11678 status collapsed
11679
11680 \begin_layout Plain Layout
11681 post:
11682 \end_layout
11683
11684 \end_inset
11685
11686  are output after this workarea argument.
11687  Note that post-argument numbering restarts at 1, so the first argument
11688  following the workarea argument is 
11689 \begin_inset Flex Code
11690 status collapsed
11691
11692 \begin_layout Plain Layout
11693 post:1
11694 \end_layout
11695
11696 \end_inset
11697
11698 .
11699  Post-arguments are ignored in any other 
11700 \begin_inset Flex Code
11701 status collapsed
11702
11703 \begin_layout Plain Layout
11704 LatexType
11705 \end_layout
11706
11707 \end_inset
11708
11709  than 
11710 \begin_inset Flex Code
11711 status collapsed
11712
11713 \begin_layout Plain Layout
11714 Command
11715 \end_layout
11716
11717 \end_inset
11718
11719 .
11720 \end_layout
11721
11722 \begin_layout Standard
11723 Arguments for list 
11724 \begin_inset Flex Code
11725 status collapsed
11726
11727 \begin_layout Plain Layout
11728
11729 \backslash
11730 item
11731 \end_layout
11732
11733 \end_inset
11734
11735 s (as in 
11736 \begin_inset Flex Code
11737 status collapsed
11738
11739 \begin_layout Plain Layout
11740
11741 \backslash
11742 item[foo]
11743 \end_layout
11744
11745 \end_inset
11746
11747 ) have the prefix 
11748 \begin_inset Flex Code
11749 status collapsed
11750
11751 \begin_layout Plain Layout
11752 item:
11753 \end_layout
11754
11755 \end_inset
11756
11757  followed by the number (e.
11758 \begin_inset space \thinspace{}
11759 \end_inset
11760
11761 g.
11762 \begin_inset space \space{}
11763 \end_inset
11764
11765
11766 \begin_inset Flex Code
11767 status collapsed
11768
11769 \begin_layout Plain Layout
11770 Argument item:1
11771 \end_layout
11772
11773 \end_inset
11774
11775 )
11776 \end_layout
11777
11778 \end_deeper
11779 \begin_layout Description
11780 \begin_inset Flex Code
11781 status collapsed
11782
11783 \begin_layout Plain Layout
11784 BabelPreamble
11785 \end_layout
11786
11787 \end_inset
11788
11789  Note that this will completely override any prior 
11790 \begin_inset Flex Code
11791 status collapsed
11792
11793 \begin_layout Plain Layout
11794 BabelPreamble
11795 \end_layout
11796
11797 \end_inset
11798
11799  declaration for this style.
11800  Must end with 
11801 \begin_inset Quotes eld
11802 \end_inset
11803
11804
11805 \begin_inset Flex Code
11806 status collapsed
11807
11808 \begin_layout Plain Layout
11809 EndBabelPreamble
11810 \end_layout
11811
11812 \end_inset
11813
11814
11815 \begin_inset Quotes erd
11816 \end_inset
11817
11818 .
11819  See 
11820 \begin_inset CommandInset ref
11821 LatexCommand ref
11822 reference "subsec:I18n"
11823
11824 \end_inset
11825
11826  for details on its use.
11827 \end_layout
11828
11829 \begin_layout Description
11830 \begin_inset Flex Code
11831 status collapsed
11832
11833 \begin_layout Plain Layout
11834 BottomSep
11835 \end_layout
11836
11837 \end_inset
11838
11839  [
11840 \begin_inset Flex Code
11841 status collapsed
11842
11843 \begin_layout Plain Layout
11844 float=0
11845 \end_layout
11846
11847 \end_inset
11848
11849 ]
11850 \begin_inset Foot
11851 status collapsed
11852
11853 \begin_layout Plain Layout
11854 Note that a `float' here is a real number, such as: 1.5.
11855 \end_layout
11856
11857 \end_inset
11858
11859  The vertical space with which the last of a chain of paragraphs with this
11860  style is separated from the following paragraph.
11861  If the next paragraph has another style, the separations are not simply
11862  added, but the maximum is taken.
11863 \end_layout
11864
11865 \begin_layout Description
11866 \begin_inset Flex Code
11867 status collapsed
11868
11869 \begin_layout Plain Layout
11870 Category
11871 \end_layout
11872
11873 \end_inset
11874
11875  [
11876 \begin_inset Flex Code
11877 status collapsed
11878
11879 \begin_layout Plain Layout
11880 string
11881 \end_layout
11882
11883 \end_inset
11884
11885 ] The category for this style.
11886  This is used to group related styles in the style combobox on the toolbar.
11887  Any string can be used, but you may want to use existing categories with
11888  your own styles.
11889  
11890 \end_layout
11891
11892 \begin_layout Description
11893 \begin_inset Flex Code
11894 status collapsed
11895
11896 \begin_layout Plain Layout
11897 CommandDepth
11898 \end_layout
11899
11900 \end_inset
11901
11902  Depth of XML command.
11903  Used only with XML-type formats.
11904 \end_layout
11905
11906 \begin_layout Description
11907 \begin_inset Flex Code
11908 status collapsed
11909
11910 \begin_layout Plain Layout
11911 CopyStyle
11912 \end_layout
11913
11914 \end_inset
11915
11916  [
11917 \begin_inset Flex Code
11918 status collapsed
11919
11920 \begin_layout Plain Layout
11921 string
11922 \end_layout
11923
11924 \end_inset
11925
11926 ] Copies all the features of an existing style into the current one.
11927  
11928 \end_layout
11929
11930 \begin_layout Description
11931 \begin_inset Flex Code
11932 status collapsed
11933
11934 \begin_layout Plain Layout
11935 DependsOn
11936 \end_layout
11937
11938 \end_inset
11939
11940  [
11941 \begin_inset Flex Code
11942 status collapsed
11943
11944 \begin_layout Plain Layout
11945 <name>
11946 \end_layout
11947
11948 \end_inset
11949
11950 ] The name of a style whose preamble should be output 
11951 \emph on
11952 before
11953 \emph default
11954  this one.
11955  This allows to ensure some ordering of the preamble snippets when macros
11956  definitions depend on one another.
11957 \begin_inset Foot
11958 status collapsed
11959
11960 \begin_layout Plain Layout
11961 Note that, besides that functionality, there is no way to ensure any ordering
11962  of preambles.
11963  The ordering that you see in a given version of \SpecialChar LyX
11964  may change without warning
11965  in later versions.
11966 \end_layout
11967
11968 \end_inset
11969
11970
11971 \end_layout
11972
11973 \begin_layout Description
11974 \begin_inset Flex Code
11975 status collapsed
11976
11977 \begin_layout Plain Layout
11978 EndLabeltype
11979 \end_layout
11980
11981 \end_inset
11982
11983  [
11984 \begin_inset Flex Code
11985 status collapsed
11986
11987 \begin_layout Plain Layout
11988
11989 \emph on
11990 No_Label
11991 \emph default
11992 , Box, Filled_Box, Static
11993 \end_layout
11994
11995 \end_inset
11996
11997 ] The type of label that stands at the end of the paragraph (or sequence
11998  of paragraphs if 
11999 \begin_inset Flex Code
12000 status collapsed
12001
12002 \begin_layout Plain Layout
12003 LatexType
12004 \end_layout
12005
12006 \end_inset
12007
12008  is
12009 \begin_inset Newline newline
12010 \end_inset
12011
12012
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017 Environment
12018 \end_layout
12019
12020 \end_inset
12021
12022
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027 Item_Environment
12028 \end_layout
12029
12030 \end_inset
12031
12032  or 
12033 \begin_inset Flex Code
12034 status collapsed
12035
12036 \begin_layout Plain Layout
12037 List_Environment
12038 \end_layout
12039
12040 \end_inset
12041
12042 ).
12043  
12044 \begin_inset Flex Code
12045 status collapsed
12046
12047 \begin_layout Plain Layout
12048 No_Label
12049 \end_layout
12050
12051 \end_inset
12052
12053  means 
12054 \begin_inset Quotes eld
12055 \end_inset
12056
12057 nothing
12058 \begin_inset Quotes erd
12059 \end_inset
12060
12061
12062 \begin_inset Flex Code
12063 status collapsed
12064
12065 \begin_layout Plain Layout
12066 Box
12067 \end_layout
12068
12069 \end_inset
12070
12071  (resp.
12072 \begin_inset space \space{}
12073 \end_inset
12074
12075
12076 \begin_inset Flex Code
12077 status collapsed
12078
12079 \begin_layout Plain Layout
12080 Filled_Box
12081 \end_layout
12082
12083 \end_inset
12084
12085 ) is a white (resp.
12086 \begin_inset space ~
12087 \end_inset
12088
12089 black) square suitable for end of proof markers, 
12090 \begin_inset Flex Code
12091 status collapsed
12092
12093 \begin_layout Plain Layout
12094 Static
12095 \end_layout
12096
12097 \end_inset
12098
12099  is an explicit text string.
12100 \end_layout
12101
12102 \begin_layout Description
12103 \begin_inset Flex Code
12104 status collapsed
12105
12106 \begin_layout Plain Layout
12107 EndLabelString
12108 \end_layout
12109
12110 \end_inset
12111
12112  [
12113 \begin_inset Flex Code
12114 status collapsed
12115
12116 \begin_layout Plain Layout
12117 string=""
12118 \end_layout
12119
12120 \end_inset
12121
12122 ] The string used for a label with a 
12123 \begin_inset Flex Code
12124 status collapsed
12125
12126 \begin_layout Plain Layout
12127 Static
12128 \end_layout
12129
12130 \end_inset
12131
12132
12133 \begin_inset Newline newline
12134 \end_inset
12135
12136
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 EndLabelType
12142 \end_layout
12143
12144 \end_inset
12145
12146 .
12147  
12148 \end_layout
12149
12150 \begin_layout Description
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 Font
12156 \end_layout
12157
12158 \end_inset
12159
12160  The font used for both the text body 
12161 \emph on
12162 and
12163 \emph default
12164  the label.
12165  See 
12166 \begin_inset CommandInset ref
12167 LatexCommand ref
12168 reference "subsec:Font-description"
12169
12170 \end_inset
12171
12172 .
12173  Note that defining this font automatically defines the 
12174 \begin_inset Flex Code
12175 status collapsed
12176
12177 \begin_layout Plain Layout
12178 LabelFont
12179 \end_layout
12180
12181 \end_inset
12182
12183  to the same value.
12184  So you should define this one first if you also want to define 
12185 \begin_inset Flex Code
12186 status collapsed
12187
12188 \begin_layout Plain Layout
12189 LabelFont
12190 \end_layout
12191
12192 \end_inset
12193
12194 .
12195 \end_layout
12196
12197 \begin_layout Description
12198 \begin_inset Flex Code
12199 status collapsed
12200
12201 \begin_layout Plain Layout
12202 ForceLocal
12203 \end_layout
12204
12205 \end_inset
12206
12207  [
12208 \begin_inset Flex Code
12209 status collapsed
12210
12211 \begin_layout Plain Layout
12212 int=0
12213 \end_layout
12214
12215 \end_inset
12216
12217 ] Used for backporting new styles to stable \SpecialChar LyX
12218  versions.
12219  The first stable version that supports this tag is \SpecialChar LyX
12220  2.1.0.
12221  The argument is a number which may either be 0, -1 or any value greater
12222  than zero.
12223  If the 
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228 ForceLocal
12229 \end_layout
12230
12231 \end_inset
12232
12233  flag of a style is greater than zero, it will always be written to the
12234  document header.
12235  If a .lyx file is read, the style definitions from the document header are
12236  added to the document class.
12237  Therefore even older \SpecialChar LyX
12238  versions can handle the style.
12239  The argument of 
12240 \begin_inset Flex Code
12241 status collapsed
12242
12243 \begin_layout Plain Layout
12244 ForceLocal
12245 \end_layout
12246
12247 \end_inset
12248
12249  is a version number: If the style is read, and the version number is less
12250  than the version number of the already existing style in the document class,
12251  the new style is ignored.
12252  If the version number is greater, the new style replaces the existing style.
12253  A value of -1 means an infinite version number, i.
12254 \begin_inset space \thinspace{}
12255 \end_inset
12256
12257 e.
12258 \begin_inset space \space{}
12259 \end_inset
12260
12261 the style is always used.
12262 \end_layout
12263
12264 \begin_layout Description
12265 \begin_inset Flex Code
12266 status collapsed
12267
12268 \begin_layout Plain Layout
12269 FreeSpacing
12270 \end_layout
12271
12272 \end_inset
12273
12274  [
12275 \begin_inset Flex Code
12276 status collapsed
12277
12278 \begin_layout Plain Layout
12279
12280 \emph on
12281 0
12282 \end_layout
12283
12284 \end_inset
12285
12286 ,
12287 \begin_inset space \thinspace{}
12288 \end_inset
12289
12290
12291 \begin_inset Flex Code
12292 status collapsed
12293
12294 \begin_layout Plain Layout
12295 1
12296 \end_layout
12297
12298 \end_inset
12299
12300 ] Usually \SpecialChar LyX
12301  does not allow you to insert more than one space between words,
12302  since a space is considered as the separation between two words, not a
12303  character or symbol of its own.
12304  This is a very fine thing but sometimes annoying, for example, when typing
12305  program code or plain \SpecialChar LaTeX
12306  code.
12307  For this reason, 
12308 \begin_inset Flex Code
12309 status collapsed
12310
12311 \begin_layout Plain Layout
12312 FreeSpacing
12313 \end_layout
12314
12315 \end_inset
12316
12317  can be enabled.
12318  Note that \SpecialChar LyX
12319  will create protected blanks for the additional blanks when
12320  in another mode than \SpecialChar LaTeX
12321 -mode.
12322 \end_layout
12323
12324 \begin_layout Description
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329 HTML*
12330 \end_layout
12331
12332 \end_inset
12333
12334  These tags are used with XHTML output.
12335  See 
12336 \begin_inset CommandInset ref
12337 LatexCommand ref
12338 reference "subsec:Paragraph-Style-XHTML"
12339
12340 \end_inset
12341
12342 .
12343 \end_layout
12344
12345 \begin_layout Description
12346 \begin_inset Flex Code
12347 status collapsed
12348
12349 \begin_layout Plain Layout
12350 InnerTag
12351 \end_layout
12352
12353 \end_inset
12354
12355  [FIXME] (Used only with XML-type formats.)
12356 \end_layout
12357
12358 \begin_layout Description
12359 \begin_inset Flex Code
12360 status collapsed
12361
12362 \begin_layout Plain Layout
12363 InPreamble
12364 \end_layout
12365
12366 \end_inset
12367
12368  [
12369 \begin_inset Flex Code
12370 status collapsed
12371
12372 \begin_layout Plain Layout
12373
12374 \emph on
12375 0
12376 \end_layout
12377
12378 \end_inset
12379
12380 ,
12381 \begin_inset space \thinspace{}
12382 \end_inset
12383
12384
12385 \begin_inset Flex Code
12386 status collapsed
12387
12388 \begin_layout Plain Layout
12389 1
12390 \end_layout
12391
12392 \end_inset
12393
12394 ] If 
12395 \begin_inset Flex Code
12396 status collapsed
12397
12398 \begin_layout Plain Layout
12399 1
12400 \end_layout
12401
12402 \end_inset
12403
12404 , marks the style as to be included in the document preamble and not in
12405  the document body.
12406  This is useful for document classes that want such information as the title
12407  and author to appear in the preamble.
12408  Note that this works only for styles for which the 
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 LatexType
12414 \end_layout
12415
12416 \end_inset
12417
12418  is 
12419 \begin_inset Flex Code
12420 status collapsed
12421
12422 \begin_layout Plain Layout
12423 Command
12424 \end_layout
12425
12426 \end_inset
12427
12428  or 
12429 \begin_inset Flex Code
12430 status collapsed
12431
12432 \begin_layout Plain Layout
12433 Paragraph
12434 \end_layout
12435
12436 \end_inset
12437
12438 .
12439 \end_layout
12440
12441 \begin_layout Description
12442 \begin_inset Flex Code
12443 status collapsed
12444
12445 \begin_layout Plain Layout
12446 InTitle
12447 \end_layout
12448
12449 \end_inset
12450
12451  [
12452 \begin_inset Flex Code
12453 status collapsed
12454
12455 \begin_layout Plain Layout
12456
12457 \emph on
12458 0
12459 \end_layout
12460
12461 \end_inset
12462
12463 ,
12464 \begin_inset space \thinspace{}
12465 \end_inset
12466
12467
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 1
12473 \end_layout
12474
12475 \end_inset
12476
12477 ] If 
12478 \begin_inset Flex Code
12479 status collapsed
12480
12481 \begin_layout Plain Layout
12482 1
12483 \end_layout
12484
12485 \end_inset
12486
12487 , marks the style as being part of a title block (see also the 
12488 \begin_inset Flex Code
12489 status collapsed
12490
12491 \begin_layout Plain Layout
12492 TitleLatexType
12493 \end_layout
12494
12495 \end_inset
12496
12497  and 
12498 \begin_inset Flex Code
12499 status collapsed
12500
12501 \begin_layout Plain Layout
12502 TitleLatexName
12503 \end_layout
12504
12505 \end_inset
12506
12507  global entries).
12508 \end_layout
12509
12510 \begin_layout Description
12511 \begin_inset Flex Code
12512 status collapsed
12513
12514 \begin_layout Plain Layout
12515 ItemCommand
12516 \end_layout
12517
12518 \end_inset
12519
12520  [
12521 \begin_inset Flex Code
12522 status collapsed
12523
12524 \begin_layout Plain Layout
12525 string="item"
12526 \end_layout
12527
12528 \end_inset
12529
12530 ] The \SpecialChar LaTeX
12531  command sequence declaring an item in a list.
12532  The command is to be defined without the preceding backslash (the default
12533  is 
12534 \begin_inset Quotes eld
12535 \end_inset
12536
12537 item
12538 \begin_inset Quotes erd
12539 \end_inset
12540
12541 , resulting in 
12542 \begin_inset Flex Code
12543 status collapsed
12544
12545 \begin_layout Plain Layout
12546
12547 \backslash
12548 item
12549 \end_layout
12550
12551 \end_inset
12552
12553  in the \SpecialChar LaTeX
12554  output).
12555 \end_layout
12556
12557 \begin_layout Description
12558 \begin_inset Flex Code
12559 status collapsed
12560
12561 \begin_layout Plain Layout
12562 ItemSep
12563 \end_layout
12564
12565 \end_inset
12566
12567  [
12568 \begin_inset Flex Code
12569 status collapsed
12570
12571 \begin_layout Plain Layout
12572 float=0
12573 \end_layout
12574
12575 \end_inset
12576
12577 ] This provides extra space between paragraphs that have the same style.
12578  If you put other styles into an environment, each is separated with the
12579  environment's 
12580 \begin_inset Flex Code
12581 status collapsed
12582
12583 \begin_layout Plain Layout
12584 ParSep
12585 \end_layout
12586
12587 \end_inset
12588
12589 .
12590  But the whole items of the environment are additionally separated with
12591  this 
12592 \begin_inset Flex Code
12593 status collapsed
12594
12595 \begin_layout Plain Layout
12596 ItemSep
12597 \end_layout
12598
12599 \end_inset
12600
12601 .
12602  Note that this is a
12603 \emph on
12604  multiplier.
12605 \end_layout
12606
12607 \begin_layout Description
12608 \begin_inset Flex Code
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612 ItemTag
12613 \end_layout
12614
12615 \end_inset
12616
12617  [FIXME] (Used only with XML-type formats.)
12618 \end_layout
12619
12620 \begin_layout Description
12621 \begin_inset Flex Code
12622 status collapsed
12623
12624 \begin_layout Plain Layout
12625 KeepEmpty
12626 \end_layout
12627
12628 \end_inset
12629
12630  [
12631 \begin_inset Flex Code
12632 status collapsed
12633
12634 \begin_layout Plain Layout
12635
12636 \emph on
12637 0
12638 \end_layout
12639
12640 \end_inset
12641
12642 ,
12643 \begin_inset space \thinspace{}
12644 \end_inset
12645
12646
12647 \begin_inset Flex Code
12648 status collapsed
12649
12650 \begin_layout Plain Layout
12651 1
12652 \end_layout
12653
12654 \end_inset
12655
12656 ] Usually \SpecialChar LyX
12657  does not allow you to leave a paragraph empty, since it would
12658  lead to empty \SpecialChar LaTeX
12659  output.
12660  There are some cases where this could be desirable however: in a letter
12661  template, the required fields can be provided as empty fields, so that
12662  people do not forget them; in some special classes, a style can be used
12663  as some kind of break, which does not contain actual text.
12664 \end_layout
12665
12666 \begin_layout Description
12667 \begin_inset Flex Code
12668 status collapsed
12669
12670 \begin_layout Plain Layout
12671 LabelBottomsep
12672 \end_layout
12673
12674 \end_inset
12675
12676  [
12677 \begin_inset Flex Code
12678 status collapsed
12679
12680 \begin_layout Plain Layout
12681 float=0
12682 \end_layout
12683
12684 \end_inset
12685
12686 ] The vertical space between the label and the text body.
12687  Only used for labels that are above the text body (
12688 \begin_inset Flex Code
12689 status collapsed
12690
12691 \begin_layout Plain Layout
12692 Top_Environment
12693 \end_layout
12694
12695 \end_inset
12696
12697  and
12698 \begin_inset Newline newline
12699 \end_inset
12700
12701
12702 \begin_inset Flex Code
12703 status collapsed
12704
12705 \begin_layout Plain Layout
12706 Centered_Top_Environment
12707 \end_layout
12708
12709 \end_inset
12710
12711 ).
12712 \end_layout
12713
12714 \begin_layout Description
12715 \begin_inset Flex Code
12716 status collapsed
12717
12718 \begin_layout Plain Layout
12719 LabelCounter
12720 \end_layout
12721
12722 \end_inset
12723
12724  [
12725 \begin_inset Flex Code
12726 status collapsed
12727
12728 \begin_layout Plain Layout
12729 string=""
12730 \end_layout
12731
12732 \end_inset
12733
12734 ] The name of the counter for automatic numbering.
12735  In order to have the counter appear with your label, you will need to reference
12736  it in the 
12737 \begin_inset Flex Code
12738 status collapsed
12739
12740 \begin_layout Plain Layout
12741
12742 \family typewriter
12743 LabelString
12744 \end_layout
12745
12746 \end_inset
12747
12748 .
12749  This will work with 
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754 LabelType
12755 \end_layout
12756
12757 \end_inset
12758
12759 s, 
12760 \begin_inset Flex Code
12761 status collapsed
12762
12763 \begin_layout Plain Layout
12764 Static
12765 \end_layout
12766
12767 \end_inset
12768
12769
12770 \begin_inset Flex Code
12771 status collapsed
12772
12773 \begin_layout Plain Layout
12774 Above
12775 \end_layout
12776
12777 \end_inset
12778
12779  and 
12780 \begin_inset Flex Code
12781 status collapsed
12782
12783 \begin_layout Plain Layout
12784 Centered
12785 \end_layout
12786
12787 \end_inset
12788
12789 , at least.
12790 \begin_inset Newline newline
12791 \end_inset
12792
12793 This 
12794 \emph on
12795 may
12796 \emph default
12797  also be given if 
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802 LabelType
12803 \end_layout
12804
12805 \end_inset
12806
12807  is 
12808 \begin_inset Flex Code
12809 status collapsed
12810
12811 \begin_layout Plain Layout
12812 Enumerate
12813 \end_layout
12814
12815 \end_inset
12816
12817 , though this case is a bit complicated.
12818  Suppose you declare 
12819 \begin_inset Quotes eld
12820 \end_inset
12821
12822
12823 \begin_inset Flex Code
12824 status collapsed
12825
12826 \begin_layout Plain Layout
12827 LabelCounter myenum
12828 \end_layout
12829
12830 \end_inset
12831
12832
12833 \begin_inset Quotes erd
12834 \end_inset
12835
12836 .
12837  Then the actual counters used are 
12838 \begin_inset Flex Code
12839 status collapsed
12840
12841 \begin_layout Plain Layout
12842 myenumi
12843 \end_layout
12844
12845 \end_inset
12846
12847
12848 \begin_inset Flex Code
12849 status collapsed
12850
12851 \begin_layout Plain Layout
12852 myenumii
12853 \end_layout
12854
12855 \end_inset
12856
12857
12858 \begin_inset Flex Code
12859 status collapsed
12860
12861 \begin_layout Plain Layout
12862 myenumiii
12863 \end_layout
12864
12865 \end_inset
12866
12867  and 
12868 \begin_inset Flex Code
12869 status collapsed
12870
12871 \begin_layout Plain Layout
12872 myenumiv
12873 \end_layout
12874
12875 \end_inset
12876
12877 , much as in \SpecialChar LaTeX
12878 .
12879  These counters must all be declared separately.
12880 \begin_inset Newline newline
12881 \end_inset
12882
12883 See 
12884 \begin_inset CommandInset ref
12885 LatexCommand ref
12886 reference "subsec:Counters"
12887
12888 \end_inset
12889
12890  for details on counters.
12891 \end_layout
12892
12893 \begin_layout Description
12894 \begin_inset Flex Code
12895 status collapsed
12896
12897 \begin_layout Plain Layout
12898 LabelFont
12899 \end_layout
12900
12901 \end_inset
12902
12903  The font used for the label.
12904  See 
12905 \begin_inset CommandInset ref
12906 LatexCommand ref
12907 reference "subsec:Font-description"
12908
12909 \end_inset
12910
12911 .
12912 \end_layout
12913
12914 \begin_layout Description
12915 \begin_inset Flex Code
12916 status collapsed
12917
12918 \begin_layout Plain Layout
12919 LabelIndent
12920 \end_layout
12921
12922 \end_inset
12923
12924  [
12925 \begin_inset Flex Code
12926 status collapsed
12927
12928 \begin_layout Plain Layout
12929 string=""
12930 \end_layout
12931
12932 \end_inset
12933
12934 ] Text that indicates how far a label should be indented.
12935 \end_layout
12936
12937 \begin_layout Description
12938 \begin_inset Flex Code
12939 status collapsed
12940
12941 \begin_layout Plain Layout
12942 LabelSep
12943 \end_layout
12944
12945 \end_inset
12946
12947  [
12948 \begin_inset Flex Code
12949 status collapsed
12950
12951 \begin_layout Plain Layout
12952 string=""
12953 \end_layout
12954
12955 \end_inset
12956
12957 ] Text that indicates the amount of horizontal space between the label and
12958  the text body.
12959  Only used for labels that are not above the text body.
12960 \end_layout
12961
12962 \begin_layout Description
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 LabelString
12968 \end_layout
12969
12970 \end_inset
12971
12972  [
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 string=""
12978 \end_layout
12979
12980 \end_inset
12981
12982 ] The string used for the label.
12983  When 
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988 LabelCounter
12989 \end_layout
12990
12991 \end_inset
12992
12993  is set, this string can be contain the special formatting commands described
12994  in 
12995 \begin_inset CommandInset ref
12996 LatexCommand ref
12997 reference "subsec:Counters"
12998
12999 \end_inset
13000
13001 .
13002 \end_layout
13003
13004 \begin_layout Description
13005 \begin_inset Flex Code
13006 status collapsed
13007
13008 \begin_layout Plain Layout
13009 LabelStringAppendix
13010 \end_layout
13011
13012 \end_inset
13013
13014  [
13015 \begin_inset Flex Code
13016 status collapsed
13017
13018 \begin_layout Plain Layout
13019 string=""
13020 \end_layout
13021
13022 \end_inset
13023
13024 ] This is used inside the appendix instead of
13025 \begin_inset Newline newline
13026 \end_inset
13027
13028
13029 \begin_inset Flex Code
13030 status collapsed
13031
13032 \begin_layout Plain Layout
13033 LabelString
13034 \end_layout
13035
13036 \end_inset
13037
13038 .
13039  Note that every 
13040 \begin_inset Flex Code
13041 status collapsed
13042
13043 \begin_layout Plain Layout
13044 LabelString
13045 \end_layout
13046
13047 \end_inset
13048
13049  statement resets
13050 \begin_inset Newline newline
13051 \end_inset
13052
13053
13054 \begin_inset Flex Code
13055 status collapsed
13056
13057 \begin_layout Plain Layout
13058 LabelStringAppendix
13059 \end_layout
13060
13061 \end_inset
13062
13063  too.
13064 \end_layout
13065
13066 \begin_layout Description
13067 \begin_inset Flex Code
13068 status collapsed
13069
13070 \begin_layout Plain Layout
13071 LabelTag
13072 \end_layout
13073
13074 \end_inset
13075
13076  [FIXME] (Used only with XML-type formats.)
13077 \end_layout
13078
13079 \begin_layout Description
13080 \begin_inset Flex Code
13081 status collapsed
13082
13083 \begin_layout Plain Layout
13084 LabelType
13085 \end_layout
13086
13087 \end_inset
13088
13089  [
13090 \begin_inset Flex Code
13091 status collapsed
13092
13093 \begin_layout Plain Layout
13094
13095 \emph on
13096 No_Label
13097 \emph default
13098 , Manual, Static, Above, 
13099 \begin_inset Newline newline
13100 \end_inset
13101
13102 Centered, Sensitive, Enumerate,
13103 \begin_inset Newline newline
13104 \end_inset
13105
13106 Itemize, Bibliography
13107 \end_layout
13108
13109 \end_inset
13110
13111 ]
13112 \begin_inset Separator parbreak
13113 \end_inset
13114
13115
13116 \end_layout
13117
13118 \begin_deeper
13119 \begin_layout Description
13120 \begin_inset Flex Code
13121 status collapsed
13122
13123 \begin_layout Plain Layout
13124 Manual
13125 \end_layout
13126
13127 \end_inset
13128
13129  means the label is the very first word (up to the first real blank).
13130  Use protected spaces if you want more than one word as the label.
13131  
13132 \end_layout
13133
13134 \begin_layout Description
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 Static
13140 \end_layout
13141
13142 \end_inset
13143
13144  means the label is simply what is declared as 
13145 \begin_inset Flex Code
13146 status collapsed
13147
13148 \begin_layout Plain Layout
13149 LabelString
13150 \end_layout
13151
13152 \end_inset
13153
13154 .
13155  This will be displayed 
13156 \begin_inset Quotes eld
13157 \end_inset
13158
13159 inline
13160 \begin_inset Quotes erd
13161 \end_inset
13162
13163 , at the beginning of the paragraph.
13164  If the 
13165 \begin_inset Flex Code
13166 status collapsed
13167
13168 \begin_layout Plain Layout
13169 LatexType
13170 \end_layout
13171
13172 \end_inset
13173
13174  is 
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179 Environment
13180 \end_layout
13181
13182 \end_inset
13183
13184 , then it will be displayed only in the first paragraph of any sequence
13185  of paragraphs with the same 
13186 \begin_inset Flex Code
13187 status collapsed
13188
13189 \begin_layout Plain Layout
13190 Style
13191 \end_layout
13192
13193 \end_inset
13194
13195 .
13196 \end_layout
13197
13198 \begin_layout Description
13199 \begin_inset Flex Code
13200 status collapsed
13201
13202 \begin_layout Plain Layout
13203 Above
13204 \end_layout
13205
13206 \end_inset
13207
13208
13209 \begin_inset space ~
13210 \end_inset
13211
13212 and
13213 \begin_inset space ~
13214 \end_inset
13215
13216
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 Centered
13222 \end_layout
13223
13224 \end_inset
13225
13226  are special cases of 
13227 \begin_inset Flex Code
13228 status collapsed
13229
13230 \begin_layout Plain Layout
13231 Static
13232 \end_layout
13233
13234 \end_inset
13235
13236 .
13237  The label will be printed above the paragraph either at the beginning of
13238  the line or centered.
13239 \end_layout
13240
13241 \begin_layout Description
13242 \begin_inset Flex Code
13243 status collapsed
13244
13245 \begin_layout Plain Layout
13246 Sensitive
13247 \end_layout
13248
13249 \end_inset
13250
13251  is a special case for the caption-labels 
13252 \begin_inset Quotes eld
13253 \end_inset
13254
13255 Figure
13256 \begin_inset Quotes erd
13257 \end_inset
13258
13259  and 
13260 \begin_inset Quotes eld
13261 \end_inset
13262
13263 Table
13264 \begin_inset Quotes erd
13265 \end_inset
13266
13267 .
13268 \begin_inset Newline newline
13269 \end_inset
13270
13271
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276 Sensitive
13277 \end_layout
13278
13279 \end_inset
13280
13281  means the (hardcoded) label string depends on the kind of float: It is
13282  hardcoded to be `FloatType N', where N is the value of the counter associated
13283  with the float.
13284  For the case that a caption is inserted outside of a float the 
13285 \begin_inset Flex Code
13286 status collapsed
13287
13288 \begin_layout Plain Layout
13289 LabelString
13290 \end_layout
13291
13292 \end_inset
13293
13294  will appear as 
13295 \begin_inset Quotes eld
13296 \end_inset
13297
13298 Senseless!
13299 \begin_inset Quotes erd
13300 \end_inset
13301
13302 .
13303 \end_layout
13304
13305 \begin_layout Description
13306 \begin_inset Flex Code
13307 status collapsed
13308
13309 \begin_layout Plain Layout
13310 Enumerate
13311 \end_layout
13312
13313 \end_inset
13314
13315  produces the usual sort of enumeration labels.
13316  At present, it is hardcoded to use Arabic numerals, lowercase letters,
13317  small Roman numerals, and uppercase letters for the four possible depths.
13318 \end_layout
13319
13320 \begin_layout Description
13321 \begin_inset Flex Code
13322 status collapsed
13323
13324 \begin_layout Plain Layout
13325 Itemize
13326 \end_layout
13327
13328 \end_inset
13329
13330  produces various bullets at the different levels.
13331  It is also hardcoded.
13332 \end_layout
13333
13334 \begin_layout Description
13335 \begin_inset Flex Code
13336 status collapsed
13337
13338 \begin_layout Plain Layout
13339 Bibliography
13340 \end_layout
13341
13342 \end_inset
13343
13344  should be used only with 
13345 \begin_inset Flex Code
13346 status collapsed
13347
13348 \begin_layout Plain Layout
13349 LatexType BibEnvironment
13350 \end_layout
13351
13352 \end_inset
13353
13354 .
13355 \end_layout
13356
13357 \end_deeper
13358 \begin_layout Description
13359 \begin_inset Flex Code
13360 status collapsed
13361
13362 \begin_layout Plain Layout
13363 LangPreamble
13364 \end_layout
13365
13366 \end_inset
13367
13368  Note that this will completely override any prior 
13369 \begin_inset Flex Code
13370 status collapsed
13371
13372 \begin_layout Plain Layout
13373 LangPreamble
13374 \end_layout
13375
13376 \end_inset
13377
13378  declaration for this style.
13379  Must end with 
13380 \begin_inset Quotes eld
13381 \end_inset
13382
13383
13384 \begin_inset Flex Code
13385 status collapsed
13386
13387 \begin_layout Plain Layout
13388 EndLangPreamble
13389 \end_layout
13390
13391 \end_inset
13392
13393
13394 \begin_inset Quotes erd
13395 \end_inset
13396
13397 .
13398  See 
13399 \begin_inset CommandInset ref
13400 LatexCommand ref
13401 reference "subsec:I18n"
13402
13403 \end_inset
13404
13405  for details on its use.
13406 \end_layout
13407
13408 \begin_layout Description
13409 \begin_inset Flex Code
13410 status collapsed
13411
13412 \begin_layout Plain Layout
13413 LatexName
13414 \end_layout
13415
13416 \end_inset
13417
13418  [
13419 \begin_inset Flex Code
13420 status collapsed
13421
13422 \begin_layout Plain Layout
13423 <name>
13424 \end_layout
13425
13426 \end_inset
13427
13428 ] The name of the corresponding \SpecialChar LaTeX
13429  stuff.
13430  Either the environment or command name.
13431 \end_layout
13432
13433 \begin_layout Description
13434 \begin_inset Flex Code
13435 status collapsed
13436
13437 \begin_layout Plain Layout
13438 LatexParam
13439 \end_layout
13440
13441 \end_inset
13442
13443  [
13444 \begin_inset Flex Code
13445 status collapsed
13446
13447 \begin_layout Plain Layout
13448 <parameter>
13449 \end_layout
13450
13451 \end_inset
13452
13453 ] An optional parameter for the corresponding 
13454 \begin_inset Flex Code
13455 status collapsed
13456
13457 \begin_layout Plain Layout
13458 LatexName
13459 \end_layout
13460
13461 \end_inset
13462
13463  stuff.
13464  This parameter cannot be changed from within \SpecialChar LyX
13465  (use 
13466 \begin_inset Flex Code
13467 status collapsed
13468
13469 \begin_layout Plain Layout
13470 Argument
13471 \end_layout
13472
13473 \end_inset
13474
13475  for customizable parameters).
13476  This will be output as is after all \SpecialChar LaTeX
13477  
13478 \begin_inset Flex Code
13479 status collapsed
13480
13481 \begin_layout Plain Layout
13482 Argument
13483 \end_layout
13484
13485 \end_inset
13486
13487 s.
13488 \end_layout
13489
13490 \begin_layout Description
13491 \begin_inset Flex Code
13492 status collapsed
13493
13494 \begin_layout Plain Layout
13495 LatexType
13496 \end_layout
13497
13498 \end_inset
13499
13500  [
13501 \begin_inset Flex Code
13502 status collapsed
13503
13504 \begin_layout Plain Layout
13505
13506 \emph on
13507 Paragraph
13508 \emph default
13509 , Command, Environment, Item_Environment,
13510 \begin_inset Newline newline
13511 \end_inset
13512
13513 List_Environment, Bib_Environment
13514 \end_layout
13515
13516 \end_inset
13517
13518 ] How the style should be translated into \SpecialChar LaTeX
13519 .
13520 \begin_inset Foot
13521 status collapsed
13522
13523 \begin_layout Plain Layout
13524 \begin_inset Flex Code
13525 status collapsed
13526
13527 \begin_layout Plain Layout
13528 LatexType
13529 \end_layout
13530
13531 \end_inset
13532
13533  is perhaps a bit misleading, since these rules apply to SGML classes, too.
13534  Visit the SGML class files for specific examples.
13535 \end_layout
13536
13537 \end_inset
13538
13539
13540 \begin_inset Separator parbreak
13541 \end_inset
13542
13543
13544 \end_layout
13545
13546 \begin_deeper
13547 \begin_layout Description
13548 \begin_inset Flex Code
13549 status collapsed
13550
13551 \begin_layout Plain Layout
13552 Paragraph
13553 \end_layout
13554
13555 \end_inset
13556
13557  means nothing special.
13558 \end_layout
13559
13560 \begin_layout Description
13561 \begin_inset Flex Code
13562 status collapsed
13563
13564 \begin_layout Plain Layout
13565 Command
13566 \end_layout
13567
13568 \end_inset
13569
13570  means 
13571 \begin_inset Flex Code
13572 status collapsed
13573
13574 \begin_layout Plain Layout
13575
13576 \backslash
13577
13578 \emph on
13579 LatexName
13580 \emph default
13581 {\SpecialChar ldots
13582 }
13583 \end_layout
13584
13585 \end_inset
13586
13587 .
13588 \end_layout
13589
13590 \begin_layout Description
13591 \begin_inset Flex Code
13592 status collapsed
13593
13594 \begin_layout Plain Layout
13595 Environment
13596 \end_layout
13597
13598 \end_inset
13599
13600  means 
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605
13606 \backslash
13607 begin{
13608 \emph on
13609 LatexName
13610 \emph default
13611 }\SpecialChar ldots
13612
13613 \backslash
13614 end{
13615 \emph on
13616 LatexName
13617 \emph default
13618 }
13619 \end_layout
13620
13621 \end_inset
13622
13623 .
13624  
13625 \end_layout
13626
13627 \begin_layout Description
13628 \begin_inset Flex Code
13629 status collapsed
13630
13631 \begin_layout Plain Layout
13632 Item_Environment
13633 \end_layout
13634
13635 \end_inset
13636
13637  is the same as 
13638 \begin_inset Flex Code
13639 status collapsed
13640
13641 \begin_layout Plain Layout
13642 Environment
13643 \end_layout
13644
13645 \end_inset
13646
13647 , except that an 
13648 \begin_inset Flex Code
13649 status collapsed
13650
13651 \begin_layout Plain Layout
13652
13653 \backslash
13654 item
13655 \end_layout
13656
13657 \end_inset
13658
13659  is generated for each paragraph of this environment.
13660  
13661 \end_layout
13662
13663 \begin_layout Description
13664 \begin_inset Flex Code
13665 status collapsed
13666
13667 \begin_layout Plain Layout
13668 List_Environment
13669 \end_layout
13670
13671 \end_inset
13672
13673  is the same as 
13674 \begin_inset Flex Code
13675 status collapsed
13676
13677 \begin_layout Plain Layout
13678 Item_Environment
13679 \end_layout
13680
13681 \end_inset
13682
13683 , except that
13684 \begin_inset Newline newline
13685 \end_inset
13686
13687
13688 \begin_inset Flex Code
13689 status collapsed
13690
13691 \begin_layout Plain Layout
13692 LabelWidthString
13693 \end_layout
13694
13695 \end_inset
13696
13697  is passed as an argument to the environment.
13698 \begin_inset Newline newline
13699 \end_inset
13700
13701
13702 \begin_inset Flex Code
13703 status collapsed
13704
13705 \begin_layout Plain Layout
13706 LabelWidthString
13707 \end_layout
13708
13709 \end_inset
13710
13711  can be defined in the 
13712 \begin_inset Flex MenuItem
13713 status collapsed
13714
13715 \begin_layout Plain Layout
13716 Edit\SpecialChar menuseparator
13717 Paragraph
13718 \begin_inset space ~
13719 \end_inset
13720
13721 settings
13722 \end_layout
13723
13724 \end_inset
13725
13726  dialog.
13727 \end_layout
13728
13729 \begin_layout Description
13730 \begin_inset Flex Code
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734 Bib_Environment
13735 \end_layout
13736
13737 \end_inset
13738
13739  is like 
13740 \begin_inset Flex Code
13741 status collapsed
13742
13743 \begin_layout Plain Layout
13744 Environment
13745 \end_layout
13746
13747 \end_inset
13748
13749  but adds additionally the necessary mandatory argument (the longest label)
13750  to the begin statement of the bibliography environment:
13751 \begin_inset Newline newline
13752 \end_inset
13753
13754
13755 \begin_inset Flex Code
13756 status collapsed
13757
13758 \begin_layout Plain Layout
13759
13760 \backslash
13761 begin{thebibliography}{99}
13762 \end_layout
13763
13764 \end_inset
13765
13766  It is therefore only useful for bibliography environments.
13767  The default longest label 
13768 \begin_inset Quotes eld
13769 \end_inset
13770
13771 99
13772 \begin_inset Quotes erd
13773 \end_inset
13774
13775  can be changed by the user in the paragraph settings of a bibliography
13776  item.
13777 \end_layout
13778
13779 \begin_layout Standard
13780 Putting the last few things together, the \SpecialChar LaTeX
13781  output will be either: 
13782 \end_layout
13783
13784 \begin_layout LyX-Code
13785
13786 \backslash
13787 LatexName[LatexParam]{\SpecialChar ldots
13788 }
13789 \end_layout
13790
13791 \begin_layout Standard
13792 or: 
13793 \end_layout
13794
13795 \begin_layout LyX-Code
13796
13797 \backslash
13798 begin{LatexName}[LatexParam] \SpecialChar ldots
13799  
13800 \backslash
13801 end{LatexName}.
13802 \end_layout
13803
13804 \begin_layout Standard
13805 depending upon the \SpecialChar LaTeX
13806  type.
13807 \end_layout
13808
13809 \end_deeper
13810 \begin_layout Description
13811 \begin_inset Flex Code
13812 status collapsed
13813
13814 \begin_layout Plain Layout
13815 LeftDelim
13816 \end_layout
13817
13818 \end_inset
13819
13820  [
13821 \begin_inset Flex Code
13822 status collapsed
13823
13824 \begin_layout Plain Layout
13825 string
13826 \end_layout
13827
13828 \end_inset
13829
13830 ] A string that is put at the beginning of the style content.
13831  A line break in the output can be indicated by 
13832 \begin_inset Flex Code
13833 status collapsed
13834
13835 \begin_layout Plain Layout
13836 <br/>
13837 \end_layout
13838
13839 \end_inset
13840
13841 .
13842 \end_layout
13843
13844 \begin_layout Description
13845 \begin_inset Flex Code
13846 status collapsed
13847
13848 \begin_layout Plain Layout
13849 LeftMargin
13850 \end_layout
13851
13852 \end_inset
13853
13854  [
13855 \begin_inset Flex Code
13856 status collapsed
13857
13858 \begin_layout Plain Layout
13859 string=""
13860 \end_layout
13861
13862 \end_inset
13863
13864 ] If you put styles into environments, the different 
13865 \begin_inset Flex Code
13866 status collapsed
13867
13868 \begin_layout Plain Layout
13869 LeftMargin
13870 \end_layout
13871
13872 \end_inset
13873
13874  are not simply added, but added with a factor 
13875 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
13876 \end_inset
13877
13878 .
13879  Note that this parameter is also used when 
13880 \begin_inset Flex Code
13881 status collapsed
13882
13883 \begin_layout Plain Layout
13884 Margin
13885 \end_layout
13886
13887 \end_inset
13888
13889  is defined as 
13890 \begin_inset Flex Code
13891 status collapsed
13892
13893 \begin_layout Plain Layout
13894 Manual
13895 \end_layout
13896
13897 \end_inset
13898
13899  or 
13900 \begin_inset Flex Code
13901 status collapsed
13902
13903 \begin_layout Plain Layout
13904 Dynamic
13905 \end_layout
13906
13907 \end_inset
13908
13909 .
13910  Then it is added to the manual or dynamic margin.
13911 \begin_inset Newline newline
13912 \end_inset
13913
13914 For example 
13915 \begin_inset Quotes eld
13916 \end_inset
13917
13918
13919 \begin_inset Flex Code
13920 status collapsed
13921
13922 \begin_layout Plain Layout
13923 MM
13924 \end_layout
13925
13926 \end_inset
13927
13928
13929 \begin_inset Quotes erd
13930 \end_inset
13931
13932  means that the paragraph is indented with the width of 
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  in the normal font.
13951  You can get a negative width by prefixing the string with 
13952 \begin_inset Quotes eld
13953 \end_inset
13954
13955
13956 \begin_inset Flex Code
13957 status collapsed
13958
13959 \begin_layout Plain Layout
13960 -
13961 \end_layout
13962
13963 \end_inset
13964
13965
13966 \begin_inset Quotes erd
13967 \end_inset
13968
13969 .
13970  This way was chosen so that the look is the same with each used screen
13971  font.
13972 \end_layout
13973
13974 \begin_layout Description
13975 \begin_inset Flex Code
13976 status collapsed
13977
13978 \begin_layout Plain Layout
13979 Margin
13980 \end_layout
13981
13982 \end_inset
13983
13984  [
13985 \begin_inset Flex Code
13986 status collapsed
13987
13988 \begin_layout Plain Layout
13989
13990 \emph on
13991 Static
13992 \emph default
13993 , Manual, Dynamic, First_Dynamic, Right_Address_Box
13994 \end_layout
13995
13996 \end_inset
13997
13998
13999 \begin_inset Newline newline
14000 \end_inset
14001
14002 The kind of margin that the style has on the left side.
14003 \begin_inset Separator parbreak
14004 \end_inset
14005
14006
14007 \end_layout
14008
14009 \begin_deeper
14010 \begin_layout Description
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 Static
14016 \end_layout
14017
14018 \end_inset
14019
14020  just means a fixed margin.
14021 \end_layout
14022
14023 \begin_layout Description
14024 \begin_inset Flex Code
14025 status collapsed
14026
14027 \begin_layout Plain Layout
14028 Manual
14029 \end_layout
14030
14031 \end_inset
14032
14033  means that the left margin depends on the string entered in the 
14034 \begin_inset Flex MenuItem
14035 status collapsed
14036
14037 \begin_layout Plain Layout
14038 Edit\SpecialChar menuseparator
14039 Paragraph
14040 \begin_inset space ~
14041 \end_inset
14042
14043 Settings
14044 \end_layout
14045
14046 \end_inset
14047
14048  dialog.
14049  This is used to typeset nice lists without tabulators.
14050 \end_layout
14051
14052 \begin_layout Description
14053 \begin_inset Flex Code
14054 status collapsed
14055
14056 \begin_layout Plain Layout
14057 Dynamic
14058 \end_layout
14059
14060 \end_inset
14061
14062  means that the margin depends on the size of the label.
14063  This is used for automatic enumerated headlines.
14064  It is obvious that the headline 
14065 \begin_inset Quotes eld
14066 \end_inset
14067
14068 5.4.3.2.1 Very long headline
14069 \begin_inset Quotes erd
14070 \end_inset
14071
14072  must have a wider left margin (as wide as 
14073 \begin_inset Quotes eld
14074 \end_inset
14075
14076 5.4.3.2.1
14077 \begin_inset Quotes erd
14078 \end_inset
14079
14080  plus the space) than 
14081 \begin_inset Quotes eld
14082 \end_inset
14083
14084 3.2 Very long headline
14085 \begin_inset Quotes erd
14086 \end_inset
14087
14088 , even if standard 
14089 \begin_inset Quotes eld
14090 \end_inset
14091
14092 word processors
14093 \begin_inset Quotes erd
14094 \end_inset
14095
14096  are not able to do this.
14097 \end_layout
14098
14099 \begin_layout Description
14100 \begin_inset Flex Code
14101 status collapsed
14102
14103 \begin_layout Plain Layout
14104 First_Dynamic
14105 \end_layout
14106
14107 \end_inset
14108
14109  is similar, but only the very first row of the paragraph is dynamic, while
14110  the others are static; this is used, for example, for descriptions.
14111 \end_layout
14112
14113 \begin_layout Description
14114 \begin_inset Flex Code
14115 status collapsed
14116
14117 \begin_layout Plain Layout
14118 Right_Address_Box
14119 \end_layout
14120
14121 \end_inset
14122
14123  means the margin is chosen in a way that the longest row of this paragraph
14124  fits to the right margin.
14125  This is used to typeset an address on the right edge of the page.
14126 \end_layout
14127
14128 \end_deeper
14129 \begin_layout Description
14130 \begin_inset Flex Code
14131 status collapsed
14132
14133 \begin_layout Plain Layout
14134 NeedProtect
14135 \end_layout
14136
14137 \end_inset
14138
14139  [
14140 \begin_inset Flex Code
14141 status collapsed
14142
14143 \begin_layout Plain Layout
14144
14145 \emph on
14146 0
14147 \end_layout
14148
14149 \end_inset
14150
14151 ,
14152 \begin_inset space \thinspace{}
14153 \end_inset
14154
14155
14156 \begin_inset Flex Code
14157 status collapsed
14158
14159 \begin_layout Plain Layout
14160 1
14161 \end_layout
14162
14163 \end_inset
14164
14165 ] Whether fragile commands in this style should be 
14166 \begin_inset Flex Code
14167 status collapsed
14168
14169 \begin_layout Plain Layout
14170
14171 \backslash
14172 protect
14173 \end_layout
14174
14175 \end_inset
14176
14177 'ed.
14178  (Note: This is 
14179 \emph on
14180 not
14181 \emph default
14182  whether this command should itself be protected.)
14183 \end_layout
14184
14185 \begin_layout Description
14186 \begin_inset Flex Code
14187 status collapsed
14188
14189 \begin_layout Plain Layout
14190 Newline
14191 \end_layout
14192
14193 \end_inset
14194
14195  [
14196 \begin_inset Flex Code
14197 status collapsed
14198
14199 \begin_layout Plain Layout
14200 0
14201 \end_layout
14202
14203 \end_inset
14204
14205 ,
14206 \begin_inset space \thinspace{}
14207 \end_inset
14208
14209
14210 \begin_inset Flex Code
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214
14215 \emph on
14216 1
14217 \end_layout
14218
14219 \end_inset
14220
14221 ] Whether newlines are translated into \SpecialChar LaTeX
14222  newlines (
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227
14228 \backslash
14229
14230 \backslash
14231
14232 \end_layout
14233
14234 \end_inset
14235
14236 ) or not.
14237  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
14238  editing
14239  inside \SpecialChar LyX
14240 .
14241 \end_layout
14242
14243 \begin_layout Description
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 NextNoIndent
14249 \end_layout
14250
14251 \end_inset
14252
14253  [
14254 \begin_inset Flex Code
14255 status collapsed
14256
14257 \begin_layout Plain Layout
14258
14259 \emph on
14260 0
14261 \end_layout
14262
14263 \end_inset
14264
14265 ,
14266 \begin_inset space \thinspace{}
14267 \end_inset
14268
14269
14270 \begin_inset Flex Code
14271 status collapsed
14272
14273 \begin_layout Plain Layout
14274 1
14275 \end_layout
14276
14277 \end_inset
14278
14279 ] If set to true, and if 
14280 \begin_inset Flex Code
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 DefaultStyle
14285 \end_layout
14286
14287 \end_inset
14288
14289  (usually 
14290 \begin_inset Flex Code
14291 status collapsed
14292
14293 \begin_layout Plain Layout
14294 Standard
14295 \end_layout
14296
14297 \end_inset
14298
14299 ) paragraphs are being indented, then the indentation of such a paragraph
14300  following one of this type will be suppressed.
14301  (So this will not affect the display of non-default paragraphs.)
14302 \end_layout
14303
14304 \begin_layout Description
14305 \begin_inset Flex Code
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309 ObsoletedBy
14310 \end_layout
14311
14312 \end_inset
14313
14314  [
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 <name>
14320 \end_layout
14321
14322 \end_inset
14323
14324 ] Name of a style that has replaced this style.
14325  This is used to rename a style, while keeping backward compatibility.
14326 \change_inserted -712698321 1432986397
14327
14328 \end_layout
14329
14330 \begin_layout Description
14331
14332 \change_inserted -712698321 1432986583
14333 \begin_inset Flex Code
14334 status collapsed
14335
14336 \begin_layout Plain Layout
14337
14338 \change_inserted -712698321 1432986403
14339 ParagraphGroup
14340 \end_layout
14341
14342 \end_inset
14343
14344  [
14345 \begin_inset Flex Code
14346 status collapsed
14347
14348 \begin_layout Plain Layout
14349
14350 \change_inserted -712698321 1432986397
14351 0
14352 \end_layout
14353
14354 \end_inset
14355
14356 ,
14357 \begin_inset space \thinspace{}
14358 \end_inset
14359
14360
14361 \begin_inset Flex Code
14362 status collapsed
14363
14364 \begin_layout Plain Layout
14365
14366 \change_inserted -712698321 1432986397
14367 1
14368 \end_layout
14369
14370 \end_inset
14371
14372 ] Determines whether consecutive pragraphs of the same type are treated
14373  as belonging together.
14374  This has the effect that the 
14375 \begin_inset Flex Code
14376 status collapsed
14377
14378 \begin_layout Plain Layout
14379
14380 \change_inserted -712698321 1432986460
14381 GuiLabel
14382 \end_layout
14383
14384 \end_inset
14385
14386  is only printed once before such a group.
14387  By default, this is true for 
14388 \begin_inset Flex Code
14389 status collapsed
14390
14391 \begin_layout Plain Layout
14392
14393 \change_inserted -712698321 1432986491
14394 LaTeXType
14395 \end_layout
14396
14397 \end_inset
14398
14399  
14400 \begin_inset Flex Code
14401 status collapsed
14402
14403 \begin_layout Plain Layout
14404
14405 \change_inserted -712698321 1432986583
14406 Environment
14407 \change_unchanged
14408
14409 \end_layout
14410
14411 \end_inset
14412
14413  and 
14414 \begin_inset Flex Code
14415 status collapsed
14416
14417 \begin_layout Plain Layout
14418
14419 \change_inserted -712698321 1432986572
14420 Bib_Environment
14421 \change_unchanged
14422
14423 \end_layout
14424
14425 \end_inset
14426
14427  and false for all other types.
14428 \change_unchanged
14429
14430 \end_layout
14431
14432 \begin_layout Description
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 ParbreakIsNewline
14438 \end_layout
14439
14440 \end_inset
14441
14442  [
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447
14448 \emph on
14449 0
14450 \end_layout
14451
14452 \end_inset
14453
14454 ,
14455 \begin_inset space \thinspace{}
14456 \end_inset
14457
14458
14459 \begin_inset Flex Code
14460 status collapsed
14461
14462 \begin_layout Plain Layout
14463 1
14464 \end_layout
14465
14466 \end_inset
14467
14468 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
14469  output,
14470  but only by a line break; together with 
14471 \begin_inset Flex Code
14472 status collapsed
14473
14474 \begin_layout Plain Layout
14475 PassThru 1
14476 \end_layout
14477
14478 \end_inset
14479
14480 , this allows to emulate a plain text editor (like the ERT inset).
14481 \end_layout
14482
14483 \begin_layout Description
14484 \begin_inset Flex Code
14485 status collapsed
14486
14487 \begin_layout Plain Layout
14488 ParIndent
14489 \end_layout
14490
14491 \end_inset
14492
14493  [
14494 \begin_inset Flex Code
14495 status collapsed
14496
14497 \begin_layout Plain Layout
14498 string=""
14499 \end_layout
14500
14501 \end_inset
14502
14503 ] The indent of the very first line of a paragraph.
14504  The
14505 \begin_inset Newline newline
14506 \end_inset
14507
14508
14509 \begin_inset Flex Code
14510 status collapsed
14511
14512 \begin_layout Plain Layout
14513 Parindent
14514 \end_layout
14515
14516 \end_inset
14517
14518  will be fixed for a certain style.
14519  The exception is the default style, since the indentation for these paragraphs
14520  can be prohibited with 
14521 \begin_inset Flex Code
14522 status collapsed
14523
14524 \begin_layout Plain Layout
14525 NextNoIndent
14526 \end_layout
14527
14528 \end_inset
14529
14530 .
14531  Also, 
14532 \begin_inset Flex Code
14533 status collapsed
14534
14535 \begin_layout Plain Layout
14536 Standard
14537 \end_layout
14538
14539 \end_inset
14540
14541  style paragraphs inside environments use the 
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 Parindent
14547 \end_layout
14548
14549 \end_inset
14550
14551  of the environment, not their native one.
14552  For example, 
14553 \begin_inset Flex Code
14554 status collapsed
14555
14556 \begin_layout Plain Layout
14557 Standard
14558 \end_layout
14559
14560 \end_inset
14561
14562  paragraphs inside an enumeration are not indented.
14563 \end_layout
14564
14565 \begin_layout Description
14566 \begin_inset Flex Code
14567 status collapsed
14568
14569 \begin_layout Plain Layout
14570 ParSep
14571 \end_layout
14572
14573 \end_inset
14574
14575  [
14576 \begin_inset Flex Code
14577 status collapsed
14578
14579 \begin_layout Plain Layout
14580 float=0
14581 \end_layout
14582
14583 \end_inset
14584
14585 ] The vertical space between two paragraphs of this style.
14586 \end_layout
14587
14588 \begin_layout Description
14589 \begin_inset Flex Code
14590 status collapsed
14591
14592 \begin_layout Plain Layout
14593 Parskip
14594 \end_layout
14595
14596 \end_inset
14597
14598  [
14599 \begin_inset Flex Code
14600 status collapsed
14601
14602 \begin_layout Plain Layout
14603 float=0
14604 \end_layout
14605
14606 \end_inset
14607
14608 ] \SpecialChar LyX
14609  allows the user to choose either 
14610 \begin_inset Quotes eld
14611 \end_inset
14612
14613 indent
14614 \begin_inset Quotes erd
14615 \end_inset
14616
14617  or 
14618 \begin_inset Quotes eld
14619 \end_inset
14620
14621 skip
14622 \begin_inset Quotes erd
14623 \end_inset
14624
14625  to separate paragraphs.
14626  When 
14627 \begin_inset Quotes eld
14628 \end_inset
14629
14630 indent
14631 \begin_inset Quotes erd
14632 \end_inset
14633
14634  is chosen, 
14635 \begin_inset Flex Code
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 Parskip
14640 \end_layout
14641
14642 \end_inset
14643
14644  is ignored.
14645  When 
14646 \begin_inset Quotes eld
14647 \end_inset
14648
14649 skip
14650 \begin_inset Quotes erd
14651 \end_inset
14652
14653  is chosen, 
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 ParIndent
14659 \end_layout
14660
14661 \end_inset
14662
14663  is ignored and all paragraphs are separated by the 
14664 \begin_inset Flex Code
14665 status collapsed
14666
14667 \begin_layout Plain Layout
14668 Parskip
14669 \end_layout
14670
14671 \end_inset
14672
14673  argument.
14674  The vertical space is calculated with 
14675 \begin_inset Flex Code
14676 status collapsed
14677
14678 \begin_layout Plain Layout
14679 Parskip
14680 \begin_inset space ~
14681 \end_inset
14682
14683 * DefaultHeight
14684 \end_layout
14685
14686 \end_inset
14687
14688  where 
14689 \begin_inset Flex Code
14690 status collapsed
14691
14692 \begin_layout Plain Layout
14693 DefaultHeight
14694 \end_layout
14695
14696 \end_inset
14697
14698  is the height of a row with the normal font.
14699  This way, the look stays the same with different screen fonts.
14700 \end_layout
14701
14702 \begin_layout Description
14703 \begin_inset Flex Code
14704 status collapsed
14705
14706 \begin_layout Plain Layout
14707 PassThru
14708 \end_layout
14709
14710 \end_inset
14711
14712  [
14713 \begin_inset Flex Code
14714 status collapsed
14715
14716 \begin_layout Plain Layout
14717
14718 \emph on
14719 0
14720 \end_layout
14721
14722 \end_inset
14723
14724 ,
14725 \begin_inset space \thinspace{}
14726 \end_inset
14727
14728
14729 \begin_inset Flex Code
14730 status collapsed
14731
14732 \begin_layout Plain Layout
14733 1
14734 \end_layout
14735
14736 \end_inset
14737
14738 ] Whether the contents of this paragraph should be output in raw form, meaning
14739  without special translations that \SpecialChar LaTeX
14740  would require.
14741 \change_inserted 155139281 1429534178
14742
14743 \end_layout
14744
14745 \begin_layout Description
14746
14747 \change_inserted 155139281 1429534242
14748
14749 \lang ngerman
14750 \begin_inset Flex Code
14751 status collapsed
14752
14753 \begin_layout Plain Layout
14754
14755 \change_inserted 155139281 1429534178
14756 PassThruChars
14757 \end_layout
14758
14759 \end_inset
14760
14761
14762 \lang english
14763  [
14764 \begin_inset Flex Code
14765 status collapsed
14766
14767 \begin_layout Plain Layout
14768
14769 \change_inserted 155139281 1429534178
14770 string of characters
14771 \end_layout
14772
14773 \end_inset
14774
14775 ]
14776 \family typewriter
14777  
14778 \family default
14779 Defines individual characters that should be output in raw form, meaning
14780  without special translations that \SpecialChar LaTeX
14781  would require.
14782 \change_unchanged
14783
14784 \end_layout
14785
14786 \begin_layout Description
14787 \begin_inset Flex Code
14788 status collapsed
14789
14790 \begin_layout Plain Layout
14791 Preamble
14792 \end_layout
14793
14794 \end_inset
14795
14796  Information to be included in the \SpecialChar LaTeX
14797  preamble when this style is used.
14798  Used to define macros, load packages, etc., required by this particular
14799  style.
14800  Must end with 
14801 \begin_inset Quotes eld
14802 \end_inset
14803
14804
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 EndPreamble
14810 \end_layout
14811
14812 \end_inset
14813
14814
14815 \begin_inset Quotes erd
14816 \end_inset
14817
14818 .
14819 \end_layout
14820
14821 \begin_layout Description
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826 RefPrefix
14827 \end_layout
14828
14829 \end_inset
14830
14831  [
14832 \begin_inset Flex Code
14833 status collapsed
14834
14835 \begin_layout Plain Layout
14836 string
14837 \end_layout
14838
14839 \end_inset
14840
14841 ] The prefix to use when creating labels referring to paragraphs of this
14842  type.
14843  This allows the use of formatted references.
14844 \end_layout
14845
14846 \begin_layout Description
14847 \begin_inset Flex Code
14848 status collapsed
14849
14850 \begin_layout Plain Layout
14851 Requires 
14852 \end_layout
14853
14854 \end_inset
14855
14856  [
14857 \begin_inset Flex Code
14858 status collapsed
14859
14860 \begin_layout Plain Layout
14861 string
14862 \end_layout
14863
14864 \end_inset
14865
14866 ] Whether the style requires the feature 
14867 \begin_inset Flex Code
14868 status collapsed
14869
14870 \begin_layout Plain Layout
14871 string
14872 \end_layout
14873
14874 \end_inset
14875
14876 .
14877  See the description of 
14878 \begin_inset Flex Code
14879 status collapsed
14880
14881 \begin_layout Plain Layout
14882 Provides
14883 \end_layout
14884
14885 \end_inset
14886
14887  above (
14888 \begin_inset CommandInset ref
14889 LatexCommand ref
14890 reference "subsec:General-text-class"
14891
14892 \end_inset
14893
14894 ) for information on `features'.
14895 \end_layout
14896
14897 \begin_layout Description
14898 \begin_inset Flex Code
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 ResetArgs
14903 \end_layout
14904
14905 \end_inset
14906
14907  [
14908 \begin_inset Flex Code
14909 status collapsed
14910
14911 \begin_layout Plain Layout
14912
14913 \emph on
14914 0
14915 \end_layout
14916
14917 \end_inset
14918
14919 ,
14920 \begin_inset Flex Code
14921 status collapsed
14922
14923 \begin_layout Plain Layout
14924 1
14925 \end_layout
14926
14927 \end_inset
14928
14929 ] Resets the \SpecialChar LaTeX
14930  arguments of this style (as defined via the 
14931 \begin_inset Flex Code
14932 status collapsed
14933
14934 \begin_layout Plain Layout
14935 Argument
14936 \end_layout
14937
14938 \end_inset
14939
14940  tag).
14941  This is useful if you have copied a style via 
14942 \begin_inset Flex Code
14943 status collapsed
14944
14945 \begin_layout Plain Layout
14946 CopyStyle
14947 \end_layout
14948
14949 \end_inset
14950
14951 , but you do not want to inherit its (required and optional) arguments.
14952 \end_layout
14953
14954 \begin_layout Description
14955 \begin_inset Flex Code
14956 status collapsed
14957
14958 \begin_layout Plain Layout
14959 RightDelim
14960 \end_layout
14961
14962 \end_inset
14963
14964  [
14965 \begin_inset Flex Code
14966 status collapsed
14967
14968 \begin_layout Plain Layout
14969 string
14970 \end_layout
14971
14972 \end_inset
14973
14974 ] A string that is put at the end of the layout content.
14975  A line break in the output can be indicated by 
14976 \begin_inset Flex Code
14977 status collapsed
14978
14979 \begin_layout Plain Layout
14980 <br/>
14981 \end_layout
14982
14983 \end_inset
14984
14985 .
14986 \end_layout
14987
14988 \begin_layout Description
14989 \begin_inset Flex Code
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993 RightMargin
14994 \end_layout
14995
14996 \end_inset
14997
14998  [
14999 \begin_inset Flex Code
15000 status collapsed
15001
15002 \begin_layout Plain Layout
15003 string=""
15004 \end_layout
15005
15006 \end_inset
15007
15008 ] Similar to 
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013 LeftMargin
15014 \end_layout
15015
15016 \end_inset
15017
15018 .
15019 \end_layout
15020
15021 \begin_layout Description
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 Spacing
15027 \end_layout
15028
15029 \end_inset
15030
15031  [
15032 \begin_inset Flex Code
15033 status collapsed
15034
15035 \begin_layout Plain Layout
15036
15037 \emph on
15038 single
15039 \end_layout
15040
15041 \end_inset
15042
15043
15044 \begin_inset Flex Code
15045 status collapsed
15046
15047 \begin_layout Plain Layout
15048 onehalf
15049 \end_layout
15050
15051 \end_inset
15052
15053
15054 \begin_inset Flex Code
15055 status collapsed
15056
15057 \begin_layout Plain Layout
15058 double
15059 \end_layout
15060
15061 \end_inset
15062
15063
15064 \begin_inset Flex Code
15065 status collapsed
15066
15067 \begin_layout Plain Layout
15068 other
15069 \begin_inset space ~
15070 \end_inset
15071
15072 <value>
15073 \end_layout
15074
15075 \end_inset
15076
15077 ] This defines what the default spacing should be in the style.
15078  The arguments 
15079 \begin_inset Flex Code
15080 status collapsed
15081
15082 \begin_layout Plain Layout
15083 single
15084 \end_layout
15085
15086 \end_inset
15087
15088
15089 \begin_inset Flex Code
15090 status collapsed
15091
15092 \begin_layout Plain Layout
15093 onehalf
15094 \end_layout
15095
15096 \end_inset
15097
15098  and 
15099 \begin_inset Flex Code
15100 status collapsed
15101
15102 \begin_layout Plain Layout
15103 double
15104 \end_layout
15105
15106 \end_inset
15107
15108  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
15109  If you specify the argument 
15110 \begin_inset Flex Code
15111 status collapsed
15112
15113 \begin_layout Plain Layout
15114 other
15115 \end_layout
15116
15117 \end_inset
15118
15119 , then you must also provide a value argument which will be the actual multiplie
15120 r value.
15121  Note that, contrary to other parameters, 
15122 \begin_inset Flex Code
15123 status collapsed
15124
15125 \begin_layout Plain Layout
15126 Spacing
15127 \end_layout
15128
15129 \end_inset
15130
15131  implies the generation of specific \SpecialChar LaTeX
15132  code, using the \SpecialChar LaTeX
15133  package 
15134 \family roman
15135
15136 \begin_inset Flex Code
15137 status collapsed
15138
15139 \begin_layout Plain Layout
15140 setspace
15141 \end_layout
15142
15143 \end_inset
15144
15145 .
15146 \end_layout
15147
15148 \begin_layout Description
15149 \begin_inset Flex Code
15150 status collapsed
15151
15152 \begin_layout Plain Layout
15153 Spellcheck
15154 \end_layout
15155
15156 \end_inset
15157
15158  [
15159 \begin_inset Flex Code
15160 status collapsed
15161
15162 \begin_layout Plain Layout
15163 0
15164 \end_layout
15165
15166 \end_inset
15167
15168 ,
15169 \begin_inset space \thinspace{}
15170 \end_inset
15171
15172
15173 \begin_inset Flex Code
15174 status collapsed
15175
15176 \begin_layout Plain Layout
15177
15178 \emph on
15179 1
15180 \end_layout
15181
15182 \end_inset
15183
15184 ] Allow spell-checking paragraphs of this style.
15185  Default is true.
15186 \end_layout
15187
15188 \begin_layout Description
15189 \begin_inset Flex Code
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193 TextFont
15194 \end_layout
15195
15196 \end_inset
15197
15198  The font used for the text body .
15199  See 
15200 \begin_inset CommandInset ref
15201 LatexCommand ref
15202 reference "subsec:Font-description"
15203
15204 \end_inset
15205
15206 .
15207 \end_layout
15208
15209 \begin_layout Description
15210 \begin_inset Flex Code
15211 status collapsed
15212
15213 \begin_layout Plain Layout
15214 TocLevel
15215 \end_layout
15216
15217 \end_inset
15218
15219
15220 \series medium
15221  [
15222 \begin_inset Flex Code
15223 status collapsed
15224
15225 \begin_layout Plain Layout
15226
15227 \series medium
15228 int=3
15229 \end_layout
15230
15231 \end_inset
15232
15233 ]
15234 \series default
15235  The level of the style in the table of contents.
15236  This is used for automatic numbering of section headings.
15237 \change_inserted -712698321 1401363541
15238
15239 \end_layout
15240
15241 \begin_layout Description
15242
15243 \change_inserted -712698321 1401363906
15244 \begin_inset Flex Code
15245 status collapsed
15246
15247 \begin_layout Plain Layout
15248
15249 \change_inserted -712698321 1401363547
15250 ToggleIndent
15251 \end_layout
15252
15253 \end_inset
15254
15255  [
15256 \emph on
15257
15258 \begin_inset Flex Code
15259 status collapsed
15260
15261 \begin_layout Plain Layout
15262
15263 \change_inserted -712698321 1401363664
15264
15265 \emph on
15266 default
15267 \change_unchanged
15268
15269 \end_layout
15270
15271 \end_inset
15272
15273
15274 \emph default
15275
15276 \begin_inset Flex Code
15277 status collapsed
15278
15279 \begin_layout Plain Layout
15280
15281 \change_inserted -712698321 1401363669
15282 always
15283 \change_unchanged
15284
15285 \end_layout
15286
15287 \end_inset
15288
15289
15290 \begin_inset Flex Code
15291 status collapsed
15292
15293 \begin_layout Plain Layout
15294
15295 \change_inserted -712698321 1401363675
15296 never
15297 \change_unchanged
15298
15299 \end_layout
15300
15301 \end_inset
15302
15303 ] This tag determines whether the first line indentation of this paragraph
15304  can be toggled via the Paragraph settings dialog.
15305  If 
15306 \emph on
15307
15308 \begin_inset Flex Code
15309 status collapsed
15310
15311 \begin_layout Plain Layout
15312
15313 \change_inserted -712698321 1401363761
15314
15315 \emph off
15316 default
15317 \end_layout
15318
15319 \end_inset
15320
15321
15322 \emph default
15323  is set, indentation can be toggled if the document settings use 
15324 \begin_inset Quotes eld
15325 \end_inset
15326
15327 indent
15328 \begin_inset Quotes erd
15329 \end_inset
15330
15331  paragraph style, with 
15332 \begin_inset Flex Code
15333 status collapsed
15334
15335 \begin_layout Plain Layout
15336
15337 \change_inserted -712698321 1401363844
15338 always
15339 \end_layout
15340
15341 \end_inset
15342
15343 , indentation can always be toggled, notwithstanding the document settings,
15344  with 
15345 \begin_inset Flex Code
15346 status collapsed
15347
15348 \begin_layout Plain Layout
15349
15350 \change_inserted -712698321 1401363901
15351 never
15352 \end_layout
15353
15354 \end_inset
15355
15356 , indentation can never be toggled.
15357 \change_unchanged
15358
15359 \end_layout
15360
15361 \begin_layout Description
15362 \begin_inset Flex Code
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 TopSep
15367 \end_layout
15368
15369 \end_inset
15370
15371  [
15372 \begin_inset Flex Code
15373 status collapsed
15374
15375 \begin_layout Plain Layout
15376 float=0
15377 \end_layout
15378
15379 \end_inset
15380
15381 ] The vertical space with which the very first of a chain of paragraphs
15382  with this style is separated from the previous paragraph.
15383  If the previous paragraph has another style, the separations are not simply
15384  added, but the maximum is taken.
15385 \end_layout
15386
15387 \begin_layout Subsection
15388 \begin_inset CommandInset label
15389 LatexCommand label
15390 name "subsec:I18n"
15391
15392 \end_inset
15393
15394 Internationalization of Paragraph Styles
15395 \end_layout
15396
15397 \begin_layout Standard
15398 \SpecialChar LyX
15399  has long supported internationalization of layout information, but, until
15400  version 2.0, this applied only to the user interface and not to, say, PDF
15401  output.
15402  Thus, French authors were forced to resort to ugly hacks if they wanted
15403  `
15404 \lang french
15405 Théorème
15406 \lang english
15407  1' instead of `Theorem 1'.
15408  Thanks to Georg Baum, that is no longer the case.
15409 \end_layout
15410
15411 \begin_layout Standard
15412 If a 
15413 \begin_inset Flex Code
15414 status collapsed
15415
15416 \begin_layout Plain Layout
15417 Style
15418 \end_layout
15419
15420 \end_inset
15421
15422  defines text that is to appear in the typeset document, it may use 
15423 \begin_inset Flex Code
15424 status collapsed
15425
15426 \begin_layout Plain Layout
15427 LangPreamble
15428 \end_layout
15429
15430 \end_inset
15431
15432  and 
15433 \begin_inset Flex Code
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437 BabelPreamble
15438 \end_layout
15439
15440 \end_inset
15441
15442  to support non-English and even multi-language documents correctly.
15443  The following excerpt (from the 
15444 \begin_inset Flex Code
15445 status collapsed
15446
15447 \begin_layout Plain Layout
15448 theorems-ams.inc
15449 \end_layout
15450
15451 \end_inset
15452
15453  file) shows how this works:
15454 \end_layout
15455
15456 \begin_layout LyX-Code
15457 Preamble
15458 \begin_inset Separator parbreak
15459 \end_inset
15460
15461
15462 \end_layout
15463
15464 \begin_deeper
15465 \begin_layout LyX-Code
15466   
15467 \backslash
15468 theoremstyle{remark}
15469 \end_layout
15470
15471 \begin_layout LyX-Code
15472   
15473 \backslash
15474 newtheorem{claim}[thm]{
15475 \backslash
15476 protect
15477 \backslash
15478 claimname}
15479 \end_layout
15480
15481 \begin_layout LyX-Code
15482 EndPreamble
15483 \end_layout
15484
15485 \begin_layout LyX-Code
15486 LangPreamble
15487 \end_layout
15488
15489 \begin_layout LyX-Code
15490   
15491 \backslash
15492 providecommand{
15493 \backslash
15494 claimname}{_(Claim)}
15495 \end_layout
15496
15497 \begin_layout LyX-Code
15498 EndLangPreamble
15499 \end_layout
15500
15501 \begin_layout LyX-Code
15502 BabelPreamble
15503 \end_layout
15504
15505 \begin_layout LyX-Code
15506     
15507 \backslash
15508 addto
15509 \backslash
15510 captions$$lang{
15511 \backslash
15512 renewcommand{
15513 \backslash
15514 claimname}{_(Claim)}}
15515 \end_layout
15516
15517 \begin_layout LyX-Code
15518 EndBabelPreamble
15519 \end_layout
15520
15521 \end_deeper
15522 \begin_layout Standard
15523 In principle, any legal \SpecialChar LaTeX
15524  may appear in the 
15525 \begin_inset Flex Code
15526 status collapsed
15527
15528 \begin_layout Plain Layout
15529 LangPreamble
15530 \end_layout
15531
15532 \end_inset
15533
15534  and 
15535 \begin_inset Flex Code
15536 status collapsed
15537
15538 \begin_layout Plain Layout
15539 BabelPreamble
15540 \end_layout
15541
15542 \end_inset
15543
15544  tags, but in practice they will typically look as they do here.
15545  The key to correct translation of the typeset text is the definition of
15546  the \SpecialChar LaTeX
15547  command 
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552
15553 \backslash
15554 claimname
15555 \end_layout
15556
15557 \end_inset
15558
15559  and its use in 
15560 \begin_inset Flex Code
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564
15565 \backslash
15566 newtheorem
15567 \end_layout
15568
15569 \end_inset
15570
15571 .
15572  
15573 \end_layout
15574
15575 \begin_layout Standard
15576 The 
15577 \begin_inset Flex Code
15578 status collapsed
15579
15580 \begin_layout Plain Layout
15581 LangPreamble
15582 \end_layout
15583
15584 \end_inset
15585
15586  tag provides for internationalization based upon the overall language of
15587  the document.
15588  The contents of the tag will be included in the preamble, just as with
15589  the 
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594 Preamble
15595 \end_layout
15596
15597 \end_inset
15598
15599  tag.
15600  What makes it special is the use of the 
15601 \begin_inset Quotes eld
15602 \end_inset
15603
15604 function
15605 \begin_inset Quotes erd
15606 \end_inset
15607
15608  
15609 \begin_inset Flex Code
15610 status collapsed
15611
15612 \begin_layout Plain Layout
15613 _()
15614 \end_layout
15615
15616 \end_inset
15617
15618 , which will be replaced, when \SpecialChar LyX
15619  produces \SpecialChar LaTeX
15620  output, with the translation of
15621  its argument into the document language.
15622 \end_layout
15623
15624 \begin_layout Standard
15625 The 
15626 \begin_inset Flex Code
15627 status collapsed
15628
15629 \begin_layout Plain Layout
15630 BabelPreamble
15631 \end_layout
15632
15633 \end_inset
15634
15635  tag is more complex, since it is meant to provide support for multi-language
15636  documents and so offers an interface to the 
15637 \begin_inset Flex Code
15638 status collapsed
15639
15640 \begin_layout Plain Layout
15641 babel
15642 \end_layout
15643
15644 \end_inset
15645
15646  package.
15647  Its contents will be added to the preamble once for each language that
15648  appears in the document.
15649  In this case, the argument to 
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 _()
15655 \end_layout
15656
15657 \end_inset
15658
15659  will be replaced with its translation into the language in question; the
15660  expression 
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665 $$lang
15666 \end_layout
15667
15668 \end_inset
15669
15670  is replaced by the language name (as used by the babel package).
15671 \end_layout
15672
15673 \begin_layout Standard
15674 A German document that also included a French section would thus have the
15675  following in the preamble:
15676 \end_layout
15677
15678 \begin_layout LyX-Code
15679
15680 \backslash
15681 addto
15682 \backslash
15683 captionsfrench{
15684 \backslash
15685 renewcommand{
15686 \backslash
15687 claimname}{Affirmation}}
15688 \begin_inset Newline newline
15689 \end_inset
15690
15691
15692 \backslash
15693 addto
15694 \backslash
15695 captionsngerman{
15696 \backslash
15697 renewcommand{
15698 \backslash
15699 claimname}{Behauptung}}
15700 \begin_inset Newline newline
15701 \end_inset
15702
15703
15704 \backslash
15705 providecommand{
15706 \backslash
15707 claimname}{Behauptung}
15708 \end_layout
15709
15710 \begin_layout Standard
15711 \SpecialChar LaTeX
15712  and 
15713 \begin_inset Flex Code
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717 babel
15718 \end_layout
15719
15720 \end_inset
15721
15722  will then conspire to produce the correct text in the output.
15723 \end_layout
15724
15725 \begin_layout Standard
15726 One important point to note here is that the translations are provided by
15727  \SpecialChar LyX
15728  itself, through the file 
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733 layouttranslations
15734 \end_layout
15735
15736 \end_inset
15737
15738 .
15739  This means, in effect, that 
15740 \begin_inset Flex Code
15741 status collapsed
15742
15743 \begin_layout Plain Layout
15744 LangPreamble
15745 \end_layout
15746
15747 \end_inset
15748
15749  and 
15750 \begin_inset Flex Code
15751 status collapsed
15752
15753 \begin_layout Plain Layout
15754 BabelPreamble
15755 \end_layout
15756
15757 \end_inset
15758
15759  are really only of use in layout files that are provided with \SpecialChar LyX
15760 , since text
15761  entered in user-created layout files will not be seen by \SpecialChar LyX
15762 's internationalizatio
15763 n routines unless the 
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 layouttranslations
15769 \end_layout
15770
15771 \end_inset
15772
15773  file is modified accordingly.
15774  That said, however, any layout created with the intention that it will
15775  be included with \SpecialChar LyX
15776  should use these tags where appropriate.
15777  Please note that the paragraph style translations provided by \SpecialChar LyX
15778  will never
15779  change with a minor update (e.
15780 \begin_inset space \thinspace{}
15781 \end_inset
15782
15783 g.
15784 \begin_inset space \space{}
15785 \end_inset
15786
15787 from version 2.1.x to 2.1.y).
15788  It is however quite likely that a major update (e.
15789 \begin_inset space \thinspace{}
15790 \end_inset
15791
15792 g.
15793 \begin_inset space \space{}
15794 \end_inset
15795
15796 from 2.0.x to 2.1.y) will introduce new translations or corrections.
15797 \end_layout
15798
15799 \begin_layout Subsection
15800 Floats
15801 \begin_inset CommandInset label
15802 LatexCommand label
15803 name "subsec:Floats"
15804
15805 \end_inset
15806
15807
15808 \end_layout
15809
15810 \begin_layout Standard
15811 It is necessary to define the floats (
15812 \begin_inset Flex MenuItem
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816 figure
15817 \end_layout
15818
15819 \end_inset
15820
15821
15822 \begin_inset Flex MenuItem
15823 status collapsed
15824
15825 \begin_layout Plain Layout
15826 table
15827 \end_layout
15828
15829 \end_inset
15830
15831 , \SpecialChar ldots
15832 ) in the text class itself.
15833  Standard floats are included in the file 
15834 \begin_inset Flex Code
15835 status collapsed
15836
15837 \begin_layout Plain Layout
15838 stdfloats.inc
15839 \end_layout
15840
15841 \end_inset
15842
15843 , so you may have to do no more than add
15844 \end_layout
15845
15846 \begin_layout LyX-Code
15847 Input stdfloats.inc
15848 \end_layout
15849
15850 \begin_layout Standard
15851 to your layout file.
15852  If you want to implement a text class that proposes some other float types
15853  (like the AGU class bundled with \SpecialChar LyX
15854 ), the information below will hopefully
15855  help you:
15856 \change_inserted -712698321 1432283506
15857
15858 \end_layout
15859
15860 \begin_layout Description
15861
15862 \change_inserted -712698321 1432313622
15863 \begin_inset Flex Code
15864 status collapsed
15865
15866 \begin_layout Plain Layout
15867
15868 \change_inserted -712698321 1432283514
15869 AllowedPlacement
15870 \end_layout
15871
15872 \end_inset
15873
15874  [
15875 \begin_inset Flex Code
15876 status collapsed
15877
15878 \begin_layout Plain Layout
15879
15880 \change_inserted -712698321 1432283507
15881 string
15882 \end_layout
15883
15884 \end_inset
15885
15886 =!htbpH] Allowed placement options for this float type.
15887  The value is a string of placement characters.
15888  Possible characters include: 
15889 \emph on
15890 h
15891 \emph default
15892  (
15893 \begin_inset Quotes eld
15894 \end_inset
15895
15896 here if possible
15897 \begin_inset Quotes erd
15898 \end_inset
15899
15900 ), 
15901 \emph on
15902 t
15903 \emph default
15904  (
15905 \begin_inset Quotes eld
15906 \end_inset
15907
15908 top of page
15909 \begin_inset Quotes erd
15910 \end_inset
15911
15912 ), 
15913 \emph on
15914 b
15915 \emph default
15916  (
15917 \begin_inset Quotes eld
15918 \end_inset
15919
15920 bottom of page
15921 \begin_inset Quotes erd
15922 \end_inset
15923
15924 ), 
15925 \emph on
15926 p
15927 \emph default
15928  (
15929 \begin_inset Quotes eld
15930 \end_inset
15931
15932 page of floats
15933 \begin_inset Quotes erd
15934 \end_inset
15935
15936 ), 
15937 \emph on
15938 H
15939 \emph default
15940  (
15941 \begin_inset Quotes eld
15942 \end_inset
15943
15944 here definitely
15945 \begin_inset Quotes erd
15946 \end_inset
15947
15948 ) and 
15949 \emph on
15950 !
15951 \emph default
15952  (
15953 \begin_inset Quotes eld
15954 \end_inset
15955
15956 ignore LaTeX rules
15957 \begin_inset Quotes erd
15958 \end_inset
15959
15960 ).
15961  The order of the characters in the string does not matter.
15962  If no placement options are allowed, use the string 
15963 \emph on
15964 none
15965 \emph default
15966 .
15967 \end_layout
15968
15969 \begin_layout Description
15970
15971 \change_inserted -712698321 1432313755
15972 \begin_inset Flex Code
15973 status collapsed
15974
15975 \begin_layout Plain Layout
15976
15977 \change_inserted -712698321 1432313630
15978 AllowsSideways
15979 \end_layout
15980
15981 \end_inset
15982
15983  [
15984 \begin_inset Flex Code
15985 status collapsed
15986
15987 \begin_layout Plain Layout
15988
15989 \change_inserted -712698321 1432313646
15990
15991 \emph off
15992 0
15993 \end_layout
15994
15995 \end_inset
15996
15997 ,
15998 \begin_inset space \thinspace{}
15999 \end_inset
16000
16001
16002 \emph on
16003
16004 \begin_inset Flex Code
16005 status collapsed
16006
16007 \begin_layout Plain Layout
16008
16009 \change_inserted -712698321 1432313646
16010
16011 \emph on
16012 1
16013 \end_layout
16014
16015 \end_inset
16016
16017
16018 \emph default
16019 ] Defines whether the float allows to be rotated via the rotfloat package
16020  (sidewaysfloat).
16021  Set to 
16022 \begin_inset Flex Code
16023 status collapsed
16024
16025 \begin_layout Plain Layout
16026
16027 \change_inserted -712698321 1432313721
16028 0
16029 \end_layout
16030
16031 \end_inset
16032
16033  if the float does not support this feature.
16034 \end_layout
16035
16036 \begin_layout Description
16037
16038 \change_inserted -712698321 1432313802
16039 \begin_inset Flex Code
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043
16044 \change_inserted -712698321 1432313759
16045 AllowsWide
16046 \end_layout
16047
16048 \end_inset
16049
16050  [
16051 \begin_inset Flex Code
16052 status collapsed
16053
16054 \begin_layout Plain Layout
16055
16056 \change_inserted -712698321 1432313755
16057
16058 \emph off
16059 0
16060 \end_layout
16061
16062 \end_inset
16063
16064 ,
16065 \begin_inset space \thinspace{}
16066 \end_inset
16067
16068
16069 \emph on
16070
16071 \begin_inset Flex Code
16072 status collapsed
16073
16074 \begin_layout Plain Layout
16075
16076 \change_inserted -712698321 1432313755
16077
16078 \emph on
16079 1
16080 \end_layout
16081
16082 \end_inset
16083
16084
16085 \emph default
16086 ] Defines whether the float has a starred variant that spans columns in
16087  a two column paragraph.
16088  Set to 
16089 \begin_inset Flex Code
16090 status collapsed
16091
16092 \begin_layout Plain Layout
16093
16094 \change_inserted -712698321 1432313755
16095 0
16096 \end_layout
16097
16098 \end_inset
16099
16100  if the float does not support this feature.
16101 \change_unchanged
16102
16103 \end_layout
16104
16105 \begin_layout Description
16106 \begin_inset Flex Code
16107 status collapsed
16108
16109 \begin_layout Plain Layout
16110 Extension
16111 \end_layout
16112
16113 \end_inset
16114
16115  [
16116 \begin_inset Flex Code
16117 status collapsed
16118
16119 \begin_layout Plain Layout
16120 string
16121 \end_layout
16122
16123 \end_inset
16124
16125 =
16126 \begin_inset Quotes erd
16127 \end_inset
16128
16129
16130 \begin_inset Quotes erd
16131 \end_inset
16132
16133 ] The file name extension of an auxiliary file for the list of figures (or
16134  whatever).
16135  \SpecialChar LaTeX
16136  writes the captions to this file.
16137 \end_layout
16138
16139 \begin_layout Description
16140 \begin_inset Flex Code
16141 status collapsed
16142
16143 \begin_layout Plain Layout
16144 GuiName
16145 \end_layout
16146
16147 \end_inset
16148
16149  [
16150 \begin_inset Flex Code
16151 status collapsed
16152
16153 \begin_layout Plain Layout
16154 string
16155 \end_layout
16156
16157 \end_inset
16158
16159 =
16160 \begin_inset Quotes erd
16161 \end_inset
16162
16163
16164 \begin_inset Quotes erd
16165 \end_inset
16166
16167 ] The string that will be used in the menus and also for the caption.
16168  This is translated to the current language if babel is used.
16169 \end_layout
16170
16171 \begin_layout Description
16172 \begin_inset Flex Code
16173 status collapsed
16174
16175 \begin_layout Plain Layout
16176 HTML*
16177 \end_layout
16178
16179 \end_inset
16180
16181  These tags control the XHTML output.
16182  See 
16183 \begin_inset CommandInset ref
16184 LatexCommand ref
16185 reference "sec:Tags-for-XHTML"
16186
16187 \end_inset
16188
16189 .
16190 \end_layout
16191
16192 \begin_layout Description
16193 \begin_inset Flex Code
16194 status collapsed
16195
16196 \begin_layout Plain Layout
16197 IsPredefined
16198 \end_layout
16199
16200 \end_inset
16201
16202  [
16203 \emph on
16204
16205 \begin_inset Flex Code
16206 status collapsed
16207
16208 \begin_layout Plain Layout
16209 0
16210 \end_layout
16211
16212 \end_inset
16213
16214
16215 \emph default
16216 ,
16217 \begin_inset space \thinspace{}
16218 \end_inset
16219
16220
16221 \begin_inset Flex Code
16222 status collapsed
16223
16224 \begin_layout Plain Layout
16225 1
16226 \end_layout
16227
16228 \end_inset
16229
16230 ] Indicates whether the float is already defined in the document class or
16231  if instead the \SpecialChar LaTeX
16232  package 
16233 \begin_inset Flex Code
16234 status collapsed
16235
16236 \begin_layout Plain Layout
16237 float
16238 \end_layout
16239
16240 \end_inset
16241
16242  needs to be loaded to define it on-the-fly.
16243  The default is 
16244 \begin_inset Flex Code
16245 status collapsed
16246
16247 \begin_layout Plain Layout
16248 0
16249 \end_layout
16250
16251 \end_inset
16252
16253 , which means: 
16254 \begin_inset Flex Code
16255 status collapsed
16256
16257 \begin_layout Plain Layout
16258 float
16259 \end_layout
16260
16261 \end_inset
16262
16263  is used.
16264  It should be set to 
16265 \begin_inset Flex Code
16266 status collapsed
16267
16268 \begin_layout Plain Layout
16269 1
16270 \end_layout
16271
16272 \end_inset
16273
16274  if the float is already defined by the \SpecialChar LaTeX
16275  document class.
16276 \end_layout
16277
16278 \begin_layout Description
16279 \begin_inset Flex Code
16280 status collapsed
16281
16282 \begin_layout Plain Layout
16283 ListCommand
16284 \end_layout
16285
16286 \end_inset
16287
16288  [
16289 \begin_inset Flex Code
16290 status collapsed
16291
16292 \begin_layout Plain Layout
16293 string
16294 \end_layout
16295
16296 \end_inset
16297
16298 =
16299 \begin_inset Quotes erd
16300 \end_inset
16301
16302
16303 \begin_inset Quotes erd
16304 \end_inset
16305
16306 ] The command used to generate a list of floats of this type; the leading
16307  `
16308 \backslash
16309 ' must be omitted.
16310  This 
16311 \emph on
16312 must
16313 \emph default
16314  be given if 
16315 \begin_inset Flex Code
16316 status collapsed
16317
16318 \begin_layout Plain Layout
16319 UsesFloatPkg
16320 \end_layout
16321
16322 \end_inset
16323
16324  is false, since there is no standard way to generate this command.
16325  It is ignored if 
16326 \begin_inset Flex Code
16327 status collapsed
16328
16329 \begin_layout Plain Layout
16330 UsesFloatPkg
16331 \end_layout
16332
16333 \end_inset
16334
16335  is true, since in that case there is a standard way to define the command.
16336 \end_layout
16337
16338 \begin_layout Description
16339 \begin_inset Flex Code
16340 status collapsed
16341
16342 \begin_layout Plain Layout
16343 ListName
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 ] A title for a list of floats of this kind (list of figures, tables, or
16367  whatever).
16368  It is used for the screen label within \SpecialChar LyX
16369 , it is used by \SpecialChar LaTeX
16370  for the title and
16371  it is used as the title in the XHTML output.
16372  It will be translated to the document language.
16373 \end_layout
16374
16375 \begin_layout Description
16376 \begin_inset Flex Code
16377 status collapsed
16378
16379 \begin_layout Plain Layout
16380 NumberWithin
16381 \end_layout
16382
16383 \end_inset
16384
16385  [
16386 \begin_inset Flex Code
16387 status collapsed
16388
16389 \begin_layout Plain Layout
16390 string
16391 \end_layout
16392
16393 \end_inset
16394
16395 =
16396 \begin_inset Quotes erd
16397 \end_inset
16398
16399
16400 \begin_inset Quotes erd
16401 \end_inset
16402
16403 ] This (optional) argument determines whether floats of this class will
16404  be numbered within some sectional unit of the document.
16405  For example, if 
16406 \begin_inset Flex Code
16407 status collapsed
16408
16409 \begin_layout Plain Layout
16410 NumberWithin
16411 \end_layout
16412
16413 \end_inset
16414
16415  is set to 
16416 \begin_inset Quotes eld
16417 \end_inset
16418
16419
16420 \begin_inset Flex Code
16421 status collapsed
16422
16423 \begin_layout Plain Layout
16424 chapter
16425 \end_layout
16426
16427 \end_inset
16428
16429
16430 \begin_inset Quotes erd
16431 \end_inset
16432
16433 , the floats will be numbered within chapters.
16434  
16435 \end_layout
16436
16437 \begin_layout Description
16438 \begin_inset Flex Code
16439 status collapsed
16440
16441 \begin_layout Plain Layout
16442 Placement
16443 \end_layout
16444
16445 \end_inset
16446
16447  [
16448 \begin_inset Flex Code
16449 status collapsed
16450
16451 \begin_layout Plain Layout
16452 string
16453 \end_layout
16454
16455 \end_inset
16456
16457 =
16458 \begin_inset Quotes erd
16459 \end_inset
16460
16461
16462 \begin_inset Quotes erd
16463 \end_inset
16464
16465 ] The default placement for the given class of floats.
16466  The string should be as in standard \SpecialChar LaTeX
16467
16468 \begin_inset Flex Code
16469 status collapsed
16470
16471 \begin_layout Plain Layout
16472 t
16473 \end_layout
16474
16475 \end_inset
16476
16477
16478 \begin_inset Flex Code
16479 status collapsed
16480
16481 \begin_layout Plain Layout
16482 b
16483 \end_layout
16484
16485 \end_inset
16486
16487
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 p
16493 \end_layout
16494
16495 \end_inset
16496
16497  and 
16498 \begin_inset Flex Code
16499 status collapsed
16500
16501 \begin_layout Plain Layout
16502 h
16503 \end_layout
16504
16505 \end_inset
16506
16507  for top, bottom, page, and here, respectively.
16508 \begin_inset Foot
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512 Note that the order of these letters in the string is irrelevant, like in
16513  \SpecialChar LaTeX
16514 .
16515 \end_layout
16516
16517 \end_inset
16518
16519  On top of that there is a new type, 
16520 \begin_inset Flex Code
16521 status collapsed
16522
16523 \begin_layout Plain Layout
16524 H
16525 \end_layout
16526
16527 \end_inset
16528
16529 , which does not really correspond to a float, since it means: put it 
16530 \begin_inset Quotes eld
16531 \end_inset
16532
16533 here
16534 \begin_inset Quotes erd
16535 \end_inset
16536
16537  and nowhere else.
16538  Note however that the 
16539 \begin_inset Flex Code
16540 status collapsed
16541
16542 \begin_layout Plain Layout
16543 H
16544 \end_layout
16545
16546 \end_inset
16547
16548  specifier is special and, because of implementation details, cannot be
16549  used in non-built in float types.
16550  If you do not understand what this means, just use 
16551 \begin_inset Quotes eld
16552 \end_inset
16553
16554
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559 tbp
16560 \end_layout
16561
16562 \end_inset
16563
16564
16565 \begin_inset Quotes erd
16566 \end_inset
16567
16568 .
16569 \end_layout
16570
16571 \begin_layout Description
16572 \begin_inset Flex Code
16573 status collapsed
16574
16575 \begin_layout Plain Layout
16576 RefPrefix
16577 \end_layout
16578
16579 \end_inset
16580
16581  [
16582 \begin_inset Flex Code
16583 status collapsed
16584
16585 \begin_layout Plain Layout
16586 string
16587 \end_layout
16588
16589 \end_inset
16590
16591 ] The prefix to use when creating labels referring to floats of this type.
16592  This allows the use of formatted references.
16593  Note that you can remove any 
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 RefPrefix
16599 \end_layout
16600
16601 \end_inset
16602
16603  set by a copied style by using the special value 
16604 \begin_inset Quotes eld
16605 \end_inset
16606
16607 OFF
16608 \begin_inset Quotes erd
16609 \end_inset
16610
16611 , which must be all caps.
16612 \end_layout
16613
16614 \begin_layout Description
16615 \begin_inset Flex Code
16616 status collapsed
16617
16618 \begin_layout Plain Layout
16619 Style
16620 \end_layout
16621
16622 \end_inset
16623
16624  [
16625 \begin_inset Flex Code
16626 status collapsed
16627
16628 \begin_layout Plain Layout
16629 string
16630 \end_layout
16631
16632 \end_inset
16633
16634 =
16635 \begin_inset Quotes erd
16636 \end_inset
16637
16638
16639 \begin_inset Quotes erd
16640 \end_inset
16641
16642 ] The style used when defining the float using 
16643 \begin_inset Flex Code
16644 status collapsed
16645
16646 \begin_layout Plain Layout
16647
16648 \backslash
16649 newfloat
16650 \end_layout
16651
16652 \end_inset
16653
16654 .
16655 \end_layout
16656
16657 \begin_layout Description
16658 \begin_inset Flex Code
16659 status collapsed
16660
16661 \begin_layout Plain Layout
16662 Type
16663 \end_layout
16664
16665 \end_inset
16666
16667  [
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 string
16673 \end_layout
16674
16675 \end_inset
16676
16677 =
16678 \begin_inset Quotes erd
16679 \end_inset
16680
16681
16682 \begin_inset Quotes erd
16683 \end_inset
16684
16685 ] The 
16686 \begin_inset Quotes eld
16687 \end_inset
16688
16689 type
16690 \begin_inset Quotes erd
16691 \end_inset
16692
16693  of the new class of floats, like program or algorithm.
16694  After the appropriate 
16695 \begin_inset Flex Code
16696 status collapsed
16697
16698 \begin_layout Plain Layout
16699
16700 \backslash
16701 newfloat
16702 \end_layout
16703
16704 \end_inset
16705
16706 , commands such as 
16707 \begin_inset Flex Code
16708 status collapsed
16709
16710 \begin_layout Plain Layout
16711
16712 \backslash
16713 begin{program}
16714 \end_layout
16715
16716 \end_inset
16717
16718  or 
16719 \begin_inset Flex Code
16720 status collapsed
16721
16722 \begin_layout Plain Layout
16723
16724 \backslash
16725 end{algorithm*}
16726 \end_layout
16727
16728 \end_inset
16729
16730  will be available.
16731 \end_layout
16732
16733 \begin_layout Description
16734 \begin_inset Flex Code
16735 status collapsed
16736
16737 \begin_layout Plain Layout
16738 UsesFloatPkg
16739 \end_layout
16740
16741 \end_inset
16742
16743  [
16744 \begin_inset Flex Code
16745 status collapsed
16746
16747 \begin_layout Plain Layout
16748 0
16749 \end_layout
16750
16751 \end_inset
16752
16753 ,
16754 \begin_inset space \thinspace{}
16755 \end_inset
16756
16757
16758 \begin_inset Flex Code
16759 status collapsed
16760
16761 \begin_layout Plain Layout
16762
16763 \emph on
16764 1
16765 \end_layout
16766
16767 \end_inset
16768
16769 ] Specifies whether this float is defined using the \SpecialChar LaTeX
16770  package 
16771 \begin_inset Flex Code
16772 status collapsed
16773
16774 \begin_layout Plain Layout
16775 float
16776 \end_layout
16777
16778 \end_inset
16779
16780 , either by the class file, another package or on-the-fly by \SpecialChar LyX
16781  itself.
16782 \end_layout
16783
16784 \begin_layout Standard
16785 Note that defining a float with type 
16786 \begin_inset Flex Code
16787 status collapsed
16788
16789 \begin_layout Plain Layout
16790
16791 \emph on
16792 type
16793 \end_layout
16794
16795 \end_inset
16796
16797  automatically defines the corresponding counter with name 
16798 \begin_inset Flex Code
16799 status collapsed
16800
16801 \begin_layout Plain Layout
16802
16803 \emph on
16804 type
16805 \end_layout
16806
16807 \end_inset
16808
16809 .
16810 \end_layout
16811
16812 \begin_layout Subsection
16813 Flex insets and InsetLayout
16814 \begin_inset CommandInset label
16815 LatexCommand label
16816 name "subsec:Flex-insets-and"
16817
16818 \end_inset
16819
16820
16821 \end_layout
16822
16823 \begin_layout Standard
16824 Flex insets come in three different kinds: 
16825 \end_layout
16826
16827 \begin_layout Itemize
16828 character style (
16829 \begin_inset Flex Code
16830 status collapsed
16831
16832 \begin_layout Plain Layout
16833 CharStyle
16834 \end_layout
16835
16836 \end_inset
16837
16838 ): These define semantic markup corresponding to such \SpecialChar LaTeX
16839  commands as 
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844
16845 \backslash
16846 noun
16847 \end_layout
16848
16849 \end_inset
16850
16851  and 
16852 \begin_inset Flex Code
16853 status collapsed
16854
16855 \begin_layout Plain Layout
16856
16857 \backslash
16858 code
16859 \end_layout
16860
16861 \end_inset
16862
16863 .
16864 \end_layout
16865
16866 \begin_layout Itemize
16867 user custom (
16868 \begin_inset Flex Code
16869 status collapsed
16870
16871 \begin_layout Plain Layout
16872 Custom
16873 \end_layout
16874
16875 \end_inset
16876
16877 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
16878  code,
16879  footnote, and the like.
16880  An obvious example is an endnote inset, which is defined in the 
16881 \begin_inset Flex Code
16882 status collapsed
16883
16884 \begin_layout Plain Layout
16885 endnote
16886 \end_layout
16887
16888 \end_inset
16889
16890  module.
16891 \end_layout
16892
16893 \begin_layout Itemize
16894 XML elements (
16895 \begin_inset Flex Code
16896 status collapsed
16897
16898 \begin_layout Plain Layout
16899 Element
16900 \end_layout
16901
16902 \end_inset
16903
16904 ): For use with DocBook classes.
16905 \end_layout
16906
16907 \begin_layout Standard
16908 Flex insets are defined using the 
16909 \begin_inset Flex Code
16910 status collapsed
16911
16912 \begin_layout Plain Layout
16913 InsetLayout
16914 \end_layout
16915
16916 \end_inset
16917
16918  tag, which shall be explained in a moment.
16919 \end_layout
16920
16921 \begin_layout Standard
16922 The 
16923 \begin_inset Flex Code
16924 status collapsed
16925
16926 \begin_layout Plain Layout
16927 InsetLayout
16928 \end_layout
16929
16930 \end_inset
16931
16932  tag also serves another function: It can be used to customize the general
16933  layout of many different types of insets.
16934  Currently, 
16935 \begin_inset Flex Code
16936 status collapsed
16937
16938 \begin_layout Plain Layout
16939 InsetLayout
16940 \end_layout
16941
16942 \end_inset
16943
16944  can be used to customize the layout parameters for footnotes, marginal
16945  notes, note insets, \SpecialChar TeX
16946  code (ERT) insets, branches, listings, indexes, boxes,
16947  tables, algorithms, URLs, and captions, as well as to define Flex insets.
16948 \end_layout
16949
16950 \begin_layout Standard
16951 The 
16952 \begin_inset Flex Code
16953 status collapsed
16954
16955 \begin_layout Plain Layout
16956 InsetLayout
16957 \end_layout
16958
16959 \end_inset
16960
16961  definition must begin with a line of the form:
16962 \end_layout
16963
16964 \begin_layout LyX-Code
16965 InsetLayout <type>
16966 \end_layout
16967
16968 \begin_layout Standard
16969 Here 
16970 \begin_inset Flex Code
16971 status collapsed
16972
16973 \begin_layout Plain Layout
16974 <Type>
16975 \end_layout
16976
16977 \end_inset
16978
16979  indicates the inset whose layout is being defined, and here there are four
16980  cases.
16981 \end_layout
16982
16983 \begin_layout Enumerate
16984 The layout for a pre-existing inset is being modified.
16985  In this case, can be 
16986 \begin_inset Flex Code
16987 status collapsed
16988
16989 \begin_layout Plain Layout
16990 <Type>
16991 \end_layout
16992
16993 \end_inset
16994
16995  any one of the following: 
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 Algorithm
17001 \end_layout
17002
17003 \end_inset
17004
17005
17006 \begin_inset Flex Code
17007 status collapsed
17008
17009 \begin_layout Plain Layout
17010 Branch
17011 \end_layout
17012
17013 \end_inset
17014
17015
17016 \begin_inset Flex Code
17017 status collapsed
17018
17019 \begin_layout Plain Layout
17020 Box
17021 \end_layout
17022
17023 \end_inset
17024
17025
17026 \begin_inset Flex Code
17027 status collapsed
17028
17029 \begin_layout Plain Layout
17030 Box:shaded
17031 \end_layout
17032
17033 \end_inset
17034
17035
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040 Caption:Standard
17041 \end_layout
17042
17043 \end_inset
17044
17045
17046 \begin_inset Flex Code
17047 status collapsed
17048
17049 \begin_layout Plain Layout
17050 ERT
17051 \end_layout
17052
17053 \end_inset
17054
17055
17056 \begin_inset Flex Code
17057 status collapsed
17058
17059 \begin_layout Plain Layout
17060 Figure
17061 \end_layout
17062
17063 \end_inset
17064
17065
17066 \begin_inset Flex Code
17067 status collapsed
17068
17069 \begin_layout Plain Layout
17070 Foot
17071 \end_layout
17072
17073 \end_inset
17074
17075
17076 \begin_inset Flex Code
17077 status collapsed
17078
17079 \begin_layout Plain Layout
17080 Index
17081 \end_layout
17082
17083 \end_inset
17084
17085
17086 \begin_inset Flex Code
17087 status collapsed
17088
17089 \begin_layout Plain Layout
17090 Info
17091 \end_layout
17092
17093 \end_inset
17094
17095
17096 \begin_inset Flex Code
17097 status collapsed
17098
17099 \begin_layout Plain Layout
17100 Info:menu
17101 \end_layout
17102
17103 \end_inset
17104
17105
17106 \begin_inset Flex Code
17107 status collapsed
17108
17109 \begin_layout Plain Layout
17110 Info:shortcut
17111 \end_layout
17112
17113 \end_inset
17114
17115
17116 \begin_inset Flex Code
17117 status collapsed
17118
17119 \begin_layout Plain Layout
17120 Info:shortcuts
17121 \end_layout
17122
17123 \end_inset
17124
17125
17126 \begin_inset Flex Code
17127 status collapsed
17128
17129 \begin_layout Plain Layout
17130 Listings
17131 \end_layout
17132
17133 \end_inset
17134
17135
17136 \begin_inset Flex Code
17137 status collapsed
17138
17139 \begin_layout Plain Layout
17140 Marginal
17141 \end_layout
17142
17143 \end_inset
17144
17145
17146 \begin_inset Flex Code
17147 status collapsed
17148
17149 \begin_layout Plain Layout
17150 Note:Comment
17151 \end_layout
17152
17153 \end_inset
17154
17155
17156 \begin_inset Flex Code
17157 status collapsed
17158
17159 \begin_layout Plain Layout
17160 Note:Note
17161 \end_layout
17162
17163 \end_inset
17164
17165
17166 \begin_inset Flex Code
17167 status collapsed
17168
17169 \begin_layout Plain Layout
17170 Note:Greyedout
17171 \end_layout
17172
17173 \end_inset
17174
17175
17176 \begin_inset Flex Code
17177 status collapsed
17178
17179 \begin_layout Plain Layout
17180 Table
17181 \end_layout
17182
17183 \end_inset
17184
17185 , or 
17186 \begin_inset Flex Code
17187 status collapsed
17188
17189 \begin_layout Plain Layout
17190 URL
17191 \end_layout
17192
17193 \end_inset
17194
17195 .
17196 \end_layout
17197
17198 \begin_layout Enumerate
17199 The layout for a Flex inset is being defined.
17200  In this case, 
17201 \begin_inset Flex Code
17202 status collapsed
17203
17204 \begin_layout Plain Layout
17205 <Type>
17206 \end_layout
17207
17208 \end_inset
17209
17210  must be of the form 
17211 \begin_inset Quotes eld
17212 \end_inset
17213
17214
17215 \begin_inset Flex Code
17216 status collapsed
17217
17218 \begin_layout Plain Layout
17219 Flex:<name>
17220 \end_layout
17221
17222 \end_inset
17223
17224
17225 \begin_inset Quotes erd
17226 \end_inset
17227
17228 , where 
17229 \begin_inset Flex Code
17230 status collapsed
17231
17232 \begin_layout Plain Layout
17233 name
17234 \end_layout
17235
17236 \end_inset
17237
17238  may be be any valid identifier not used by a pre-existing Flex inset.
17239  The identifier may include spaces, but in that case the whole thing must
17240  be wrapped in quotes.
17241  Note that the definition of a flex inset 
17242 \emph on
17243 must 
17244 \emph default
17245 also include a 
17246 \begin_inset Flex Code
17247 status collapsed
17248
17249 \begin_layout Plain Layout
17250
17251 \change_deleted -712698321 1437634848
17252 \SpecialChar LyX
17253
17254 \change_inserted -712698321 1437634847
17255 LyX
17256 \change_unchanged
17257 Type
17258 \end_layout
17259
17260 \end_inset
17261
17262  entry, declaring which type of inset it defines.
17263 \end_layout
17264
17265 \begin_layout Enumerate
17266 The layout for user specific branch is being defined.
17267  In this case, 
17268 \begin_inset Flex Code
17269 status collapsed
17270
17271 \begin_layout Plain Layout
17272 <Type>
17273 \end_layout
17274
17275 \end_inset
17276
17277  must be of the form 
17278 \begin_inset Quotes eld
17279 \end_inset
17280
17281
17282 \begin_inset Flex Code
17283 status collapsed
17284
17285 \begin_layout Plain Layout
17286 Branch:<name>
17287 \end_layout
17288
17289 \end_inset
17290
17291
17292 \begin_inset Quotes erd
17293 \end_inset
17294
17295 , where 
17296 \begin_inset Flex Code
17297 status collapsed
17298
17299 \begin_layout Plain Layout
17300 name
17301 \end_layout
17302
17303 \end_inset
17304
17305  may be be any valid identifier of branch defined in user's document.
17306  The identifier may include spaces, but in that case the whole thing must
17307  be wrapped in quotes.
17308  The main purpose of this feature is to allow \SpecialChar LaTeX
17309  wrapping around specific
17310  branches as user needs.
17311 \end_layout
17312
17313 \begin_layout Enumerate
17314 The layout of a user (or class) specific caption is being defined.
17315  In this case, 
17316 \begin_inset Flex Code
17317 status collapsed
17318
17319 \begin_layout Plain Layout
17320 <Type>
17321 \end_layout
17322
17323 \end_inset
17324
17325  must be of the form 
17326 \begin_inset Quotes eld
17327 \end_inset
17328
17329
17330 \begin_inset Flex Code
17331 status collapsed
17332
17333 \begin_layout Plain Layout
17334 Caption:<name>
17335 \end_layout
17336
17337 \end_inset
17338
17339
17340 \begin_inset Quotes erd
17341 \end_inset
17342
17343 , where 
17344 \begin_inset Flex Code
17345 status collapsed
17346
17347 \begin_layout Plain Layout
17348 name
17349 \end_layout
17350
17351 \end_inset
17352
17353  specifies the name of the caption as it appears in the menu.
17354  Have a look at the standard caption (
17355 \begin_inset Flex Code
17356 status collapsed
17357
17358 \begin_layout Plain Layout
17359 Caption:Standard
17360 \end_layout
17361
17362 \end_inset
17363
17364 ), the specific captions of the KOMA-Script classes (
17365 \begin_inset Flex Code
17366 status collapsed
17367
17368 \begin_layout Plain Layout
17369 Caption:Above
17370 \end_layout
17371
17372 \end_inset
17373
17374
17375 \begin_inset Flex Code
17376 status collapsed
17377
17378 \begin_layout Plain Layout
17379 Caption:Below
17380 \end_layout
17381
17382 \end_inset
17383
17384 ) or the module 
17385 \family sans
17386 Multilingual
17387 \begin_inset space ~
17388 \end_inset
17389
17390 Captions 
17391 \family default
17392 (
17393 \begin_inset Flex Code
17394 status collapsed
17395
17396 \begin_layout Plain Layout
17397 Caption:Bicaption
17398 \end_layout
17399
17400 \end_inset
17401
17402 ) for applications.
17403 \end_layout
17404
17405 \begin_layout Standard
17406 The 
17407 \begin_inset Flex Code
17408 status collapsed
17409
17410 \begin_layout Plain Layout
17411 InsetLayout
17412 \end_layout
17413
17414 \end_inset
17415
17416  definition can contain the following entries:
17417 \end_layout
17418
17419 \begin_layout Description
17420 \begin_inset Flex Code
17421 status collapsed
17422
17423 \begin_layout Plain Layout
17424 Argument
17425 \end_layout
17426
17427 \end_inset
17428
17429  [
17430 \begin_inset Flex Code
17431 status collapsed
17432
17433 \begin_layout Plain Layout
17434 int
17435 \end_layout
17436
17437 \end_inset
17438
17439 ] Defines argument number of a command\SpecialChar breakableslash
17440 environment associated with the current
17441  layout.
17442  The definition must end with 
17443 \begin_inset Flex Code
17444 status collapsed
17445
17446 \begin_layout Plain Layout
17447 EndArgument
17448 \end_layout
17449
17450 \end_inset
17451
17452 .
17453  See 
17454 \begin_inset CommandInset ref
17455 LatexCommand ref
17456 reference "subsec:Paragraph-Styles"
17457
17458 \end_inset
17459
17460  for details.
17461 \end_layout
17462
17463 \begin_layout Description
17464 \begin_inset Flex Code
17465 status collapsed
17466
17467 \begin_layout Plain Layout
17468 BabelPreamble
17469 \end_layout
17470
17471 \end_inset
17472
17473  Preamble for changing language commands; see 
17474 \begin_inset CommandInset ref
17475 LatexCommand ref
17476 reference "subsec:I18n"
17477
17478 \end_inset
17479
17480 .
17481 \end_layout
17482
17483 \begin_layout Description
17484 \begin_inset Flex Code
17485 status collapsed
17486
17487 \begin_layout Plain Layout
17488 BgColor
17489 \end_layout
17490
17491 \end_inset
17492
17493  [
17494 \begin_inset Flex Code
17495 status collapsed
17496
17497 \begin_layout Plain Layout
17498 <name>
17499 \end_layout
17500
17501 \end_inset
17502
17503 ] The color for the inset's background.
17504  See 
17505 \begin_inset CommandInset ref
17506 LatexCommand ref
17507 reference "chap:Names-of-colors"
17508
17509 \end_inset
17510
17511  for a list of the available color names.
17512 \end_layout
17513
17514 \begin_layout Description
17515 \begin_inset Flex Code
17516 status collapsed
17517
17518 \begin_layout Plain Layout
17519 ContentAsLabel
17520 \end_layout
17521
17522 \end_inset
17523
17524  [
17525 \begin_inset Flex Code
17526 status collapsed
17527
17528 \begin_layout Plain Layout
17529
17530 \emph on
17531 0
17532 \end_layout
17533
17534 \end_inset
17535
17536 ,
17537 \begin_inset space \thinspace{}
17538 \end_inset
17539
17540
17541 \begin_inset Flex Code
17542 status collapsed
17543
17544 \begin_layout Plain Layout
17545 1
17546 \end_layout
17547
17548 \end_inset
17549
17550 ] Whether to use the content of the inset as the label, when the inset is
17551  closed.
17552  Default is false.
17553 \end_layout
17554
17555 \begin_layout Description
17556 \begin_inset Flex Code
17557 status collapsed
17558
17559 \begin_layout Plain Layout
17560 CopyStyle
17561 \end_layout
17562
17563 \end_inset
17564
17565  [
17566 \begin_inset Flex Code
17567 status collapsed
17568
17569 \begin_layout Plain Layout
17570 <type>
17571 \end_layout
17572
17573 \end_inset
17574
17575 ] As with paragraph styles, see 
17576 \begin_inset CommandInset ref
17577 LatexCommand ref
17578 reference "subsec:Paragraph-Styles"
17579
17580 \end_inset
17581
17582 .
17583  Note that you need to specify the complete type, e.
17584 \begin_inset space \thinspace{}
17585 \end_inset
17586
17587 g.
17588 \begin_inset space ~
17589 \end_inset
17590
17591
17592 \begin_inset Flex Code
17593 status collapsed
17594
17595 \begin_layout Plain Layout
17596 CopyStyle Flex:<name>
17597 \end_layout
17598
17599 \end_inset
17600
17601 .
17602 \end_layout
17603
17604 \begin_layout Description
17605 \begin_inset Flex Code
17606 status collapsed
17607
17608 \begin_layout Plain Layout
17609 CustomPars
17610 \end_layout
17611
17612 \end_inset
17613
17614  [
17615 \begin_inset Flex Code
17616 status collapsed
17617
17618 \begin_layout Plain Layout
17619
17620 \emph on
17621 0
17622 \end_layout
17623
17624 \end_inset
17625
17626 ,
17627 \begin_inset space \thinspace{}
17628 \end_inset
17629
17630
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635 1
17636 \end_layout
17637
17638 \end_inset
17639
17640 ] Indicates whether the user may employ the Paragraph Settings dialog to
17641  customize the paragraph.
17642 \end_layout
17643
17644 \begin_layout Description
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 Decoration
17650 \end_layout
17651
17652 \end_inset
17653
17654  can be 
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 Classic
17660 \end_layout
17661
17662 \end_inset
17663
17664
17665 \begin_inset Flex Code
17666 status collapsed
17667
17668 \begin_layout Plain Layout
17669 Minimalistic
17670 \end_layout
17671
17672 \end_inset
17673
17674 , or 
17675 \begin_inset Flex Code
17676 status collapsed
17677
17678 \begin_layout Plain Layout
17679 Conglomerate
17680 \end_layout
17681
17682 \end_inset
17683
17684 , describing the rendering style used for the inset's frame and buttons.
17685  Footnotes generally use 
17686 \begin_inset Flex Code
17687 status collapsed
17688
17689 \begin_layout Plain Layout
17690 Classic
17691 \end_layout
17692
17693 \end_inset
17694
17695 , ERT insets generally 
17696 \begin_inset Flex Code
17697 status collapsed
17698
17699 \begin_layout Plain Layout
17700 Minimalistic
17701 \end_layout
17702
17703 \end_inset
17704
17705 , and character styles 
17706 \begin_inset Flex Code
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710 Conglomerate
17711 \end_layout
17712
17713 \end_inset
17714
17715 .
17716 \end_layout
17717
17718 \begin_layout Description
17719 \begin_inset Flex Code
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 Display
17724 \end_layout
17725
17726 \end_inset
17727
17728  [
17729 \begin_inset Flex Code
17730 status collapsed
17731
17732 \begin_layout Plain Layout
17733 0
17734 \end_layout
17735
17736 \end_inset
17737
17738 ,
17739 \emph on
17740
17741 \begin_inset space \thinspace{}
17742 \end_inset
17743
17744
17745 \emph default
17746
17747 \begin_inset Flex Code
17748 status collapsed
17749
17750 \begin_layout Plain Layout
17751
17752 \emph on
17753 1
17754 \end_layout
17755
17756 \end_inset
17757
17758 ] Only useful if 
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763 LatexType
17764 \end_layout
17765
17766 \end_inset
17767
17768  is 
17769 \begin_inset Flex Code
17770 status collapsed
17771
17772 \begin_layout Plain Layout
17773 Environment
17774 \end_layout
17775
17776 \end_inset
17777
17778 .
17779  Indicates whether the environment will stand on its own in the output or
17780  will appear inline with the surrounding text.
17781  If set to false, it is supposed that the \SpecialChar LaTeX
17782  environment ignores white space
17783  (including one newline character) after the 
17784 \begin_inset Flex Code
17785 status collapsed
17786
17787 \begin_layout Plain Layout
17788
17789 \backslash
17790 begin{
17791 \emph on
17792 LatexName
17793 \emph default
17794 }
17795 \end_layout
17796
17797 \end_inset
17798
17799  and 
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804
17805 \backslash
17806 end{
17807 \emph on
17808 LatexName
17809 \emph default
17810 }
17811 \end_layout
17812
17813 \end_inset
17814
17815  tags.
17816  Default is true.
17817 \end_layout
17818
17819 \begin_layout Description
17820 \begin_inset Flex Code
17821 status collapsed
17822
17823 \begin_layout Plain Layout
17824 End
17825 \end_layout
17826
17827 \end_inset
17828
17829  Required at the end of the 
17830 \begin_inset Flex Code
17831 status collapsed
17832
17833 \begin_layout Plain Layout
17834 InsetLayout
17835 \end_layout
17836
17837 \end_inset
17838
17839  declarations.
17840 \end_layout
17841
17842 \begin_layout Description
17843 \begin_inset Flex Code
17844 status collapsed
17845
17846 \begin_layout Plain Layout
17847 Font
17848 \end_layout
17849
17850 \end_inset
17851
17852  The font used for both the text body 
17853 \emph on
17854 and
17855 \emph default
17856  the label.
17857  See 
17858 \begin_inset CommandInset ref
17859 LatexCommand ref
17860 reference "subsec:Font-description"
17861
17862 \end_inset
17863
17864 .
17865  Note that defining this font automatically defines the 
17866 \begin_inset Flex Code
17867 status collapsed
17868
17869 \begin_layout Plain Layout
17870 LabelFont
17871 \end_layout
17872
17873 \end_inset
17874
17875  to the same value, so define this first and define 
17876 \begin_inset Flex Code
17877 status collapsed
17878
17879 \begin_layout Plain Layout
17880 LabelFont
17881 \end_layout
17882
17883 \end_inset
17884
17885  later if you want them to be different.
17886 \change_inserted -195340706 1421002157
17887
17888 \end_layout
17889
17890 \begin_layout Description
17891
17892 \change_inserted -195340706 1421002157
17893 \begin_inset Flex Code
17894 status collapsed
17895
17896 \begin_layout Plain Layout
17897
17898 \change_inserted -195340706 1421002157
17899 FixedWidthPreambleEncoding
17900 \end_layout
17901
17902 \end_inset
17903
17904  [
17905 \begin_inset Flex Code
17906 status collapsed
17907
17908 \begin_layout Plain Layout
17909
17910 \change_inserted -195340706 1421002157
17911
17912 \emph on
17913 0
17914 \end_layout
17915
17916 \end_inset
17917
17918 ,
17919 \begin_inset space \thinspace{}
17920 \end_inset
17921
17922
17923 \begin_inset Flex Code
17924 status collapsed
17925
17926 \begin_layout Plain Layout
17927
17928 \change_inserted -195340706 1421002157
17929 1
17930 \end_layout
17931
17932 \end_inset
17933
17934 ] Force a fixed width encoding for the translated contents of 
17935 \begin_inset Flex Code
17936 status collapsed
17937
17938 \begin_layout Plain Layout
17939
17940 \change_inserted -195340706 1421002157
17941 BabelPreamble
17942 \end_layout
17943
17944 \end_inset
17945
17946  and 
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951
17952 \change_inserted -195340706 1421002157
17953 LangPreamble
17954 \end_layout
17955
17956 \end_inset
17957
17958  code generated by this layout.
17959  This is needed for special packages like the listings package that do not
17960  work with variable width encodings such as utf8.
17961  Default is false.
17962  This setting is ignored if fully unicode aware \SpecialChar LaTeX
17963  backends such as Xe\SpecialChar LaTeX
17964  are
17965  used.
17966 \change_unchanged
17967
17968 \end_layout
17969
17970 \begin_layout Description
17971 \begin_inset Flex Code
17972 status collapsed
17973
17974 \begin_layout Plain Layout
17975 ForceLocalFontSwitch
17976 \end_layout
17977
17978 \end_inset
17979
17980  [
17981 \begin_inset Flex Code
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985
17986 \emph on
17987 0
17988 \end_layout
17989
17990 \end_inset
17991
17992 ,
17993 \begin_inset space \thinspace{}
17994 \end_inset
17995
17996
17997 \begin_inset Flex Code
17998 status collapsed
17999
18000 \begin_layout Plain Layout
18001 1
18002 \end_layout
18003
18004 \end_inset
18005
18006 ] When using babel, always use a local font switch (
18007 \begin_inset Flex Code
18008 status collapsed
18009
18010 \begin_layout Plain Layout
18011
18012 \backslash
18013 foreignlanguage
18014 \end_layout
18015
18016 \end_inset
18017
18018 ), never a global one (such as 
18019 \begin_inset Flex Code
18020 status collapsed
18021
18022 \begin_layout Plain Layout
18023
18024 \backslash
18025 selectlanguage
18026 \end_layout
18027
18028 \end_inset
18029
18030 ).
18031 \end_layout
18032
18033 \begin_layout Description
18034 \begin_inset Flex Code
18035 status collapsed
18036
18037 \begin_layout Plain Layout
18038 ForceLTR
18039 \end_layout
18040
18041 \end_inset
18042
18043  [
18044 \begin_inset Flex Code
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048
18049 \emph on
18050 0
18051 \end_layout
18052
18053 \end_inset
18054
18055 ,
18056 \begin_inset space \thinspace{}
18057 \end_inset
18058
18059
18060 \begin_inset Flex Code
18061 status collapsed
18062
18063 \begin_layout Plain Layout
18064 1
18065 \end_layout
18066
18067 \end_inset
18068
18069 ] Force the 
18070 \begin_inset Quotes eld
18071 \end_inset
18072
18073 latex
18074 \begin_inset Quotes erd
18075 \end_inset
18076
18077  language, leading to Left-to-Right (Latin) output, e.
18078 \begin_inset space \thinspace{}
18079 \end_inset
18080
18081 g.
18082 \begin_inset space \space{}
18083 \end_inset
18084
18085 in \SpecialChar TeX
18086  code or URL.
18087  A kludge.
18088 \change_inserted -712698321 1417441977
18089
18090 \end_layout
18091
18092 \begin_layout Description
18093
18094 \change_inserted -712698321 1417442090
18095 \begin_inset Flex Code
18096 status collapsed
18097
18098 \begin_layout Plain Layout
18099
18100 \change_inserted -712698321 1417441983
18101 ForceOwnlines
18102 \end_layout
18103
18104 \end_inset
18105
18106  [
18107 \begin_inset Flex Code
18108 status collapsed
18109
18110 \begin_layout Plain Layout
18111
18112 \change_inserted -712698321 1417441978
18113
18114 \emph on
18115 0
18116 \end_layout
18117
18118 \end_inset
18119
18120 ,
18121 \begin_inset space \thinspace{}
18122 \end_inset
18123
18124
18125 \begin_inset Flex Code
18126 status collapsed
18127
18128 \begin_layout Plain Layout
18129
18130 \change_inserted -712698321 1417441978
18131 1
18132 \end_layout
18133
18134 \end_inset
18135
18136 ] Force a a line break in the \SpecialChar LaTeX
18137  output before the inset starts and after
18138  the inset ends.
18139  This assures the inset itself is output on its own lines, for parsing purposes.
18140
18141 \change_inserted 274215730 1419105878
18142  Default is false.
18143 \change_unchanged
18144
18145 \end_layout
18146
18147 \begin_layout Description
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 ForcePlain
18153 \end_layout
18154
18155 \end_inset
18156
18157  [
18158 \begin_inset Flex Code
18159 status collapsed
18160
18161 \begin_layout Plain Layout
18162
18163 \emph on
18164 0
18165 \end_layout
18166
18167 \end_inset
18168
18169 ,
18170 \begin_inset space \thinspace{}
18171 \end_inset
18172
18173
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178 1
18179 \end_layout
18180
18181 \end_inset
18182
18183 ] Indicates whether the 
18184 \begin_inset Flex Code
18185 status collapsed
18186
18187 \begin_layout Plain Layout
18188 PlainLayout
18189 \end_layout
18190
18191 \end_inset
18192
18193  should be used or, instead, the user can change the paragraph style used
18194  in the inset.
18195  Default is false.
18196 \end_layout
18197
18198 \begin_layout Description
18199 \begin_inset Flex Code
18200 status collapsed
18201
18202 \begin_layout Plain Layout
18203 FreeSpacing
18204 \end_layout
18205
18206 \end_inset
18207
18208  [
18209 \begin_inset Flex Code
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213
18214 \emph on
18215 0
18216 \end_layout
18217
18218 \end_inset
18219
18220 ,
18221 \begin_inset space \thinspace{}
18222 \end_inset
18223
18224
18225 \begin_inset Flex Code
18226 status collapsed
18227
18228 \begin_layout Plain Layout
18229 1
18230 \end_layout
18231
18232 \end_inset
18233
18234 ] As with paragraph styles, see 
18235 \begin_inset CommandInset ref
18236 LatexCommand ref
18237 reference "subsec:Paragraph-Styles"
18238
18239 \end_inset
18240
18241 .
18242 \end_layout
18243
18244 \begin_layout Description
18245 \begin_inset Flex Code
18246 status collapsed
18247
18248 \begin_layout Plain Layout
18249 HTML*
18250 \end_layout
18251
18252 \end_inset
18253
18254  These tags control the XHTML output.
18255  See 
18256 \begin_inset CommandInset ref
18257 LatexCommand ref
18258 reference "sec:Tags-for-XHTML"
18259
18260 \end_inset
18261
18262 .
18263 \end_layout
18264
18265 \begin_layout Description
18266 \begin_inset Flex Code
18267 status collapsed
18268
18269 \begin_layout Plain Layout
18270 InToc
18271 \end_layout
18272
18273 \end_inset
18274
18275  [
18276 \begin_inset Flex Code
18277 status collapsed
18278
18279 \begin_layout Plain Layout
18280
18281 \emph on
18282 0
18283 \end_layout
18284
18285 \end_inset
18286
18287 ,
18288 \begin_inset space \thinspace{}
18289 \end_inset
18290
18291
18292 \begin_inset Flex Code
18293 status collapsed
18294
18295 \begin_layout Plain Layout
18296 1
18297 \end_layout
18298
18299 \end_inset
18300
18301 ] Whether to include the contents of this inset in the strings generated
18302  for the `Outline' pane.
18303  One would not, for example, want the content of a footnote in a section
18304  header to be included in the TOC displayed in the outline, but one would
18305  normally want the content of a character style displayed.
18306  Default is false: not to include.
18307 \end_layout
18308
18309 \begin_layout Description
18310 \begin_inset Flex Code
18311 status collapsed
18312
18313 \begin_layout Plain Layout
18314 KeepEmpty
18315 \end_layout
18316
18317 \end_inset
18318
18319  [
18320 \emph on
18321
18322 \begin_inset Flex Code
18323 status collapsed
18324
18325 \begin_layout Plain Layout
18326 0
18327 \end_layout
18328
18329 \end_inset
18330
18331
18332 \emph default
18333 ,
18334 \begin_inset space \thinspace{}
18335 \end_inset
18336
18337
18338 \begin_inset Flex Code
18339 status collapsed
18340
18341 \begin_layout Plain Layout
18342 1
18343 \end_layout
18344
18345 \end_inset
18346
18347 ] As with paragraph styles, see 
18348 \begin_inset CommandInset ref
18349 LatexCommand ref
18350 reference "subsec:Paragraph-Styles"
18351
18352 \end_inset
18353
18354 .
18355 \end_layout
18356
18357 \begin_layout Description
18358 \begin_inset Flex Code
18359 status collapsed
18360
18361 \begin_layout Plain Layout
18362 LabelFont
18363 \end_layout
18364
18365 \end_inset
18366
18367  The font used for the label.
18368  See 
18369 \begin_inset CommandInset ref
18370 LatexCommand ref
18371 reference "subsec:Font-description"
18372
18373 \end_inset
18374
18375 .
18376  Note that this definition can never appear before 
18377 \begin_inset Flex Code
18378 status collapsed
18379
18380 \begin_layout Plain Layout
18381 Font
18382 \end_layout
18383
18384 \end_inset
18385
18386 , lest it be ineffective.
18387 \end_layout
18388
18389 \begin_layout Description
18390 \begin_inset Flex Code
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394 LabelString
18395 \end_layout
18396
18397 \end_inset
18398
18399  [
18400 \begin_inset Flex Code
18401 status collapsed
18402
18403 \begin_layout Plain Layout
18404 string
18405 \end_layout
18406
18407 \end_inset
18408
18409 =
18410 \begin_inset Quotes erd
18411 \end_inset
18412
18413
18414 \begin_inset Quotes erd
18415 \end_inset
18416
18417 ] What will be displayed on the button or elsewhere as the inset label.
18418  Some inset types (
18419 \begin_inset Flex Code
18420 status collapsed
18421
18422 \begin_layout Plain Layout
18423 \SpecialChar TeX
18424  code
18425 \end_layout
18426
18427 \end_inset
18428
18429  and 
18430 \begin_inset Flex Code
18431 status collapsed
18432
18433 \begin_layout Plain Layout
18434 Branch
18435 \end_layout
18436
18437 \end_inset
18438
18439 ) modify this label on the fly.
18440 \end_layout
18441
18442 \begin_layout Description
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447 LangPreamble
18448 \end_layout
18449
18450 \end_inset
18451
18452  Language dependent preamble; see 
18453 \begin_inset CommandInset ref
18454 LatexCommand ref
18455 reference "subsec:I18n"
18456
18457 \end_inset
18458
18459 .
18460 \end_layout
18461
18462 \begin_layout Description
18463 \begin_inset Flex Code
18464 status collapsed
18465
18466 \begin_layout Plain Layout
18467 LatexName
18468 \end_layout
18469
18470 \end_inset
18471
18472  [
18473 \begin_inset Flex Code
18474 status collapsed
18475
18476 \begin_layout Plain Layout
18477 <name>
18478 \end_layout
18479
18480 \end_inset
18481
18482 ] The name of the corresponding \SpecialChar LaTeX
18483  stuff.
18484  Either the environment or command name.
18485 \end_layout
18486
18487 \begin_layout Description
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 LatexParam
18493 \end_layout
18494
18495 \end_inset
18496
18497  [
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502 <parameter>
18503 \end_layout
18504
18505 \end_inset
18506
18507 ] The optional parameter for the corresponding 
18508 \begin_inset Flex Code
18509 status collapsed
18510
18511 \begin_layout Plain Layout
18512 LatexName
18513 \end_layout
18514
18515 \end_inset
18516
18517  stuff, including possible bracket pairs like 
18518 \begin_inset Flex Code
18519 status collapsed
18520
18521 \begin_layout Plain Layout
18522 []
18523 \end_layout
18524
18525 \end_inset
18526
18527 .
18528  This parameter cannot be changed from within \SpecialChar LyX
18529  (use 
18530 \begin_inset Flex Code
18531 status collapsed
18532
18533 \begin_layout Plain Layout
18534 Argument
18535 \end_layout
18536
18537 \end_inset
18538
18539  for customizable parameters).
18540  It will be output as is after all \SpecialChar LaTeX
18541  
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546 Argument
18547 \end_layout
18548
18549 \end_inset
18550
18551 s.
18552 \end_layout
18553
18554 \begin_layout Description
18555 \begin_inset Flex Code
18556 status collapsed
18557
18558 \begin_layout Plain Layout
18559 LatexType
18560 \end_layout
18561
18562 \end_inset
18563
18564  [
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569 Command, Environment, None
18570 \end_layout
18571
18572 \end_inset
18573
18574 ] How the style should be translated into \SpecialChar LaTeX
18575 .
18576 \begin_inset Foot
18577 status collapsed
18578
18579 \begin_layout Plain Layout
18580 \begin_inset Flex Code
18581 status collapsed
18582
18583 \begin_layout Plain Layout
18584 LatexType
18585 \end_layout
18586
18587 \end_inset
18588
18589  is perhaps a bit misleading, since these rules apply to SGML classes too.
18590  Visit the SGML class files for specific examples.
18591 \end_layout
18592
18593 \end_inset
18594
18595
18596 \begin_inset Separator parbreak
18597 \end_inset
18598
18599
18600 \end_layout
18601
18602 \begin_deeper
18603 \begin_layout Description
18604 \begin_inset Flex Code
18605 status collapsed
18606
18607 \begin_layout Plain Layout
18608 None
18609 \end_layout
18610
18611 \end_inset
18612
18613  means nothing special
18614 \end_layout
18615
18616 \begin_layout Description
18617 \begin_inset Flex Code
18618 status collapsed
18619
18620 \begin_layout Plain Layout
18621 Command
18622 \end_layout
18623
18624 \end_inset
18625
18626  means 
18627 \begin_inset Flex Code
18628 status collapsed
18629
18630 \begin_layout Plain Layout
18631
18632 \backslash
18633
18634 \emph on
18635 LatexName
18636 \emph default
18637 {\SpecialChar ldots
18638 }
18639 \end_layout
18640
18641 \end_inset
18642
18643
18644 \end_layout
18645
18646 \begin_layout Description
18647 \begin_inset Flex Code
18648 status collapsed
18649
18650 \begin_layout Plain Layout
18651 Environment
18652 \end_layout
18653
18654 \end_inset
18655
18656  means 
18657 \begin_inset Flex Code
18658 status collapsed
18659
18660 \begin_layout Plain Layout
18661
18662 \backslash
18663 begin{
18664 \emph on
18665 LatexName
18666 \emph default
18667 }\SpecialChar ldots
18668
18669 \backslash
18670 end{
18671 \emph on
18672 LatexName
18673 \emph default
18674 }
18675 \end_layout
18676
18677 \end_inset
18678
18679
18680 \end_layout
18681
18682 \begin_layout Standard
18683 Putting the last few things together, the \SpecialChar LaTeX
18684  output will be either: 
18685 \end_layout
18686
18687 \begin_layout LyX-Code
18688
18689 \backslash
18690 LatexName[LatexParam]{\SpecialChar ldots
18691 }
18692 \end_layout
18693
18694 \begin_layout Standard
18695 or: 
18696 \end_layout
18697
18698 \begin_layout LyX-Code
18699
18700 \backslash
18701 begin{LatexName}[LatexParam] \SpecialChar ldots
18702  
18703 \backslash
18704 end{LatexName}
18705 \end_layout
18706
18707 \begin_layout Standard
18708 depending upon the \SpecialChar LaTeX
18709  type.
18710 \end_layout
18711
18712 \end_deeper
18713 \begin_layout Description
18714 \begin_inset Flex Code
18715 status collapsed
18716
18717 \begin_layout Plain Layout
18718 LeftDelim
18719 \end_layout
18720
18721 \end_inset
18722
18723  [
18724 \begin_inset Flex Code
18725 status collapsed
18726
18727 \begin_layout Plain Layout
18728 string
18729 \end_layout
18730
18731 \end_inset
18732
18733 ] A string that is put at the beginning of the layout content.
18734  A line break in the output can be indicated by 
18735 \begin_inset Flex Code
18736 status collapsed
18737
18738 \begin_layout Plain Layout
18739 <br/>
18740 \end_layout
18741
18742 \end_inset
18743
18744 .
18745 \end_layout
18746
18747 \begin_layout Description
18748 \begin_inset Flex Code
18749 status collapsed
18750
18751 \begin_layout Plain Layout
18752 LyxType
18753 \end_layout
18754
18755 \end_inset
18756
18757  Can be 
18758 \begin_inset Flex Code
18759 status collapsed
18760
18761 \begin_layout Plain Layout
18762 charstyle
18763 \end_layout
18764
18765 \end_inset
18766
18767
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772 custom
18773 \end_layout
18774
18775 \end_inset
18776
18777
18778 \begin_inset Flex Code
18779 status collapsed
18780
18781 \begin_layout Plain Layout
18782 element
18783 \end_layout
18784
18785 \end_inset
18786
18787  or 
18788 \begin_inset Flex Code
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792 end
18793 \end_layout
18794
18795 \end_inset
18796
18797  (indicating a dummy definition ending definitions of charstyles, etc).
18798  This entry is required in and is only meaningful for Flex insets.
18799  Among other things, it determines on which menu this inset will appear.
18800  Setting 
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805
18806 \change_deleted -712698321 1437634857
18807 \SpecialChar LyX
18808
18809 \change_inserted -712698321 1437634858
18810 LyX
18811 \change_unchanged
18812 Type
18813 \end_layout
18814
18815 \end_inset
18816
18817  to 
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  will automatically set 
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 MultiPar
18833 \end_layout
18834
18835 \end_inset
18836
18837  to false.
18838  
18839 \begin_inset Flex Code
18840 status collapsed
18841
18842 \begin_layout Plain Layout
18843 MultiPar
18844 \end_layout
18845
18846 \end_inset
18847
18848  can be set to true for 
18849 \begin_inset Flex Code
18850 status collapsed
18851
18852 \begin_layout Plain Layout
18853 charstyle
18854 \end_layout
18855
18856 \end_inset
18857
18858  insets by setting it 
18859 \emph on
18860 after
18861 \emph default
18862  you set the 
18863 \begin_inset Flex Code
18864 status collapsed
18865
18866 \begin_layout Plain Layout
18867
18868 \change_deleted -712698321 1437634864
18869 \SpecialChar LyX
18870
18871 \change_inserted -712698321 1437634865
18872 LyX
18873 \change_unchanged
18874 Type
18875 \end_layout
18876
18877 \end_inset
18878
18879 .
18880 \end_layout
18881
18882 \begin_layout Description
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 MultiPar
18888 \end_layout
18889
18890 \end_inset
18891
18892  [
18893 \begin_inset Flex Code
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897
18898 \emph on
18899 0
18900 \end_layout
18901
18902 \end_inset
18903
18904 ,
18905 \begin_inset space \thinspace{}
18906 \end_inset
18907
18908
18909 \begin_inset Flex Code
18910 status collapsed
18911
18912 \begin_layout Plain Layout
18913 1
18914 \end_layout
18915
18916 \end_inset
18917
18918 ] Whether multiple paragraphs are permitted in this inset.
18919  This will also set 
18920 \begin_inset Flex Code
18921 status collapsed
18922
18923 \begin_layout Plain Layout
18924 CustomPars
18925 \end_layout
18926
18927 \end_inset
18928
18929  to the same value and 
18930 \begin_inset Flex Code
18931 status collapsed
18932
18933 \begin_layout Plain Layout
18934 ForcePlain
18935 \end_layout
18936
18937 \end_inset
18938
18939  to the opposite value.
18940  These can be reset to other values, if they are used 
18941 \emph on
18942 after
18943 \emph default
18944  
18945 \begin_inset Flex Code
18946 status collapsed
18947
18948 \begin_layout Plain Layout
18949 MultiPar
18950 \end_layout
18951
18952 \end_inset
18953
18954 .
18955  Default is true.
18956 \end_layout
18957
18958 \begin_layout Description
18959 \begin_inset Flex Code
18960 status collapsed
18961
18962 \begin_layout Plain Layout
18963 NeedProtect
18964 \end_layout
18965
18966 \end_inset
18967
18968  [
18969 \begin_inset Flex Code
18970 status collapsed
18971
18972 \begin_layout Plain Layout
18973
18974 \emph on
18975 0
18976 \end_layout
18977
18978 \end_inset
18979
18980 ,
18981 \begin_inset space \thinspace{}
18982 \end_inset
18983
18984
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 1
18990 \end_layout
18991
18992 \end_inset
18993
18994 ] Whether fragile commands in this inset should be 
18995 \begin_inset Flex Code
18996 status collapsed
18997
18998 \begin_layout Plain Layout
18999
19000 \backslash
19001 protect
19002 \end_layout
19003
19004 \end_inset
19005
19006 'ed.
19007  (Note: This is 
19008 \emph on
19009 not
19010 \emph default
19011  whether the command should itself be protected.) Default is false.
19012 \end_layout
19013
19014 \begin_layout Description
19015 \begin_inset Flex Code
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 NoInsetLayout
19020 \end_layout
19021
19022 \end_inset
19023
19024  [
19025 \begin_inset Flex Code
19026 status collapsed
19027
19028 \begin_layout Plain Layout
19029 <layout>
19030 \end_layout
19031
19032 \end_inset
19033
19034 ] Deletes an existing 
19035 \begin_inset Flex Code
19036 status collapsed
19037
19038 \begin_layout Plain Layout
19039 InsetLayout
19040 \end_layout
19041
19042 \end_inset
19043
19044 .
19045 \change_inserted -712698321 1417953494
19046
19047 \end_layout
19048
19049 \begin_layout Description
19050
19051 \change_inserted -712698321 1417953559
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056
19057 \change_inserted -712698321 1417953494
19058 ObsoletedBy
19059 \end_layout
19060
19061 \end_inset
19062
19063  [
19064 \begin_inset Flex Code
19065 status collapsed
19066
19067 \begin_layout Plain Layout
19068
19069 \change_inserted -712698321 1417953574
19070 <layout>
19071 \end_layout
19072
19073 \end_inset
19074
19075 ] Name of an 
19076 \begin_inset Flex Code
19077 status collapsed
19078
19079 \begin_layout Plain Layout
19080
19081 \change_inserted -712698321 1417953533
19082 InsetLayout
19083 \end_layout
19084
19085 \end_inset
19086
19087  that has replaced this 
19088 \begin_inset Flex Code
19089 status collapsed
19090
19091 \begin_layout Plain Layout
19092
19093 \change_inserted -712698321 1417953551
19094 InsetLayout
19095 \end_layout
19096
19097 \end_inset
19098
19099 .
19100  This is used to rename an 
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105
19106 \change_inserted -712698321 1417953559
19107 InsetLayout
19108 \end_layout
19109
19110 \end_inset
19111
19112 , while keeping backward compatibility.
19113 \change_unchanged
19114
19115 \end_layout
19116
19117 \begin_layout Description
19118 \begin_inset Flex Code
19119 status collapsed
19120
19121 \begin_layout Plain Layout
19122 ParbreakIsNewline
19123 \end_layout
19124
19125 \end_inset
19126
19127  [
19128 \begin_inset Flex Code
19129 status collapsed
19130
19131 \begin_layout Plain Layout
19132
19133 \emph on
19134 0
19135 \end_layout
19136
19137 \end_inset
19138
19139 ,
19140 \begin_inset space \thinspace{}
19141 \end_inset
19142
19143
19144 \begin_inset Flex Code
19145 status collapsed
19146
19147 \begin_layout Plain Layout
19148 1
19149 \end_layout
19150
19151 \end_inset
19152
19153 ] As with paragraph styles, see 
19154 \begin_inset CommandInset ref
19155 LatexCommand ref
19156 reference "subsec:Paragraph-Styles"
19157
19158 \end_inset
19159
19160 .
19161  Default is false.
19162 \end_layout
19163
19164 \begin_layout Description
19165 \begin_inset Flex Code
19166 status collapsed
19167
19168 \begin_layout Plain Layout
19169 PassThru
19170 \end_layout
19171
19172 \end_inset
19173
19174  [
19175 \begin_inset Flex Code
19176 status collapsed
19177
19178 \begin_layout Plain Layout
19179
19180 \emph on
19181 0
19182 \end_layout
19183
19184 \end_inset
19185
19186 ,
19187 \begin_inset space \thinspace{}
19188 \end_inset
19189
19190
19191 \begin_inset Flex Code
19192 status collapsed
19193
19194 \begin_layout Plain Layout
19195 1
19196 \end_layout
19197
19198 \end_inset
19199
19200 ] As with paragraph styles, see 
19201 \begin_inset CommandInset ref
19202 LatexCommand ref
19203 reference "subsec:Paragraph-Styles"
19204
19205 \end_inset
19206
19207 .
19208  Default is false.
19209 \end_layout
19210
19211 \begin_layout Description
19212 \begin_inset Flex Code
19213 status collapsed
19214
19215 \begin_layout Plain Layout
19216 Preamble
19217 \end_layout
19218
19219 \end_inset
19220
19221  As with paragraph styles, see 
19222 \begin_inset CommandInset ref
19223 LatexCommand ref
19224 reference "subsec:Paragraph-Styles"
19225
19226 \end_inset
19227
19228 .
19229 \end_layout
19230
19231 \begin_layout Description
19232 \begin_inset Flex Code
19233 status collapsed
19234
19235 \begin_layout Plain Layout
19236 RefPrefix
19237 \end_layout
19238
19239 \end_inset
19240
19241  [
19242 \begin_inset Flex Code
19243 status collapsed
19244
19245 \begin_layout Plain Layout
19246 string
19247 \end_layout
19248
19249 \end_inset
19250
19251 ] The prefix to use when creating labels referring to insets of this type.
19252  This allows the use of formatted references.
19253 \end_layout
19254
19255 \begin_layout Description
19256 \begin_inset Flex Code
19257 status collapsed
19258
19259 \begin_layout Plain Layout
19260 Requires
19261 \end_layout
19262
19263 \end_inset
19264
19265  [
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270 string
19271 \end_layout
19272
19273 \end_inset
19274
19275 ] As with paragraph styles, see 
19276 \begin_inset CommandInset ref
19277 LatexCommand ref
19278 reference "subsec:Paragraph-Styles"
19279
19280 \end_inset
19281
19282 .
19283 \end_layout
19284
19285 \begin_layout Description
19286 \begin_inset Flex Code
19287 status collapsed
19288
19289 \begin_layout Plain Layout
19290 ResetArgs
19291 \end_layout
19292
19293 \end_inset
19294
19295  [
19296 \begin_inset Flex Code
19297 status collapsed
19298
19299 \begin_layout Plain Layout
19300
19301 \emph on
19302 0
19303 \end_layout
19304
19305 \end_inset
19306
19307 ,
19308 \begin_inset space \thinspace{}
19309 \end_inset
19310
19311
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 1
19317 \end_layout
19318
19319 \end_inset
19320
19321 ] Resets the \SpecialChar LaTeX
19322  arguments of this layout (as defined via the 
19323 \begin_inset Flex Code
19324 status collapsed
19325
19326 \begin_layout Plain Layout
19327 Argument
19328 \end_layout
19329
19330 \end_inset
19331
19332  tag).
19333  This is useful if you have copied a style via 
19334 \begin_inset Flex Code
19335 status collapsed
19336
19337 \begin_layout Plain Layout
19338 CopyStyle
19339 \end_layout
19340
19341 \end_inset
19342
19343 , but you do not want to inherit its (required and optional) arguments.
19344 \end_layout
19345
19346 \begin_layout Description
19347 \begin_inset Flex Code
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 ResetsFont
19352 \end_layout
19353
19354 \end_inset
19355
19356  [
19357 \begin_inset Flex Code
19358 status collapsed
19359
19360 \begin_layout Plain Layout
19361 0
19362 \end_layout
19363
19364 \end_inset
19365
19366 ,
19367 \begin_inset space \thinspace{}
19368 \end_inset
19369
19370
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375
19376 \emph on
19377 1
19378 \end_layout
19379
19380 \end_inset
19381
19382 ] Whether this inset should use the font of its surrounding environment
19383  or uses its own.
19384  Default is false: use the font of the surrounding environment.
19385 \end_layout
19386
19387 \begin_layout Description
19388 \begin_inset Flex Code
19389 status collapsed
19390
19391 \begin_layout Plain Layout
19392 RightDelim
19393 \end_layout
19394
19395 \end_inset
19396
19397  [
19398 \begin_inset Flex Code
19399 status collapsed
19400
19401 \begin_layout Plain Layout
19402 string
19403 \end_layout
19404
19405 \end_inset
19406
19407 ] A string that is put at the end of the layout content.
19408  A line break in the output can be indicated by 
19409 \begin_inset Flex Code
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413 <br/>
19414 \end_layout
19415
19416 \end_inset
19417
19418 .
19419 \end_layout
19420
19421 \begin_layout Description
19422 \begin_inset Flex Code
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426 Spellcheck
19427 \end_layout
19428
19429 \end_inset
19430
19431  [
19432 \begin_inset Flex Code
19433 status collapsed
19434
19435 \begin_layout Plain Layout
19436 0
19437 \end_layout
19438
19439 \end_inset
19440
19441 ,
19442 \begin_inset space \thinspace{}
19443 \end_inset
19444
19445
19446 \begin_inset Flex Code
19447 status collapsed
19448
19449 \begin_layout Plain Layout
19450
19451 \emph on
19452 1
19453 \end_layout
19454
19455 \end_inset
19456
19457 ] Allow spell-checking the contents of this inset.
19458  Default is true.
19459 \end_layout
19460
19461 \begin_layout Subsection
19462 Counters
19463 \begin_inset CommandInset label
19464 LatexCommand label
19465 name "subsec:Counters"
19466
19467 \end_inset
19468
19469
19470 \end_layout
19471
19472 \begin_layout Standard
19473 It is necessary to define the counters (
19474 \begin_inset Flex MenuItem
19475 status collapsed
19476
19477 \begin_layout Plain Layout
19478 chapter
19479 \end_layout
19480
19481 \end_inset
19482
19483
19484 \begin_inset Flex MenuItem
19485 status collapsed
19486
19487 \begin_layout Plain Layout
19488 figure
19489 \end_layout
19490
19491 \end_inset
19492
19493 , \SpecialChar ldots
19494 ) in the text class itself.
19495  The standard counters are defined in the file 
19496 \begin_inset Flex Code
19497 status collapsed
19498
19499 \begin_layout Plain Layout
19500 stdcounters.inc
19501 \end_layout
19502
19503 \end_inset
19504
19505 , so you may have to do no more than add
19506 \end_layout
19507
19508 \begin_layout LyX-Code
19509 Input stdcounters.inc
19510 \end_layout
19511
19512 \begin_layout Standard
19513 to your layout file to get them to work.
19514  But if you want to define custom counters, then you can do so.
19515  The counter declaration must begin with:
19516 \end_layout
19517
19518 \begin_layout LyX-Code
19519 Counter CounterName
19520 \end_layout
19521
19522 \begin_layout Standard
19523 where of course `
19524 \begin_inset Flex Code
19525 status collapsed
19526
19527 \begin_layout Plain Layout
19528 CounterName
19529 \end_layout
19530
19531 \end_inset
19532
19533 ' is replaced by the name of the counter.
19534  And it must end with 
19535 \begin_inset Quotes eld
19536 \end_inset
19537
19538
19539 \begin_inset Flex Code
19540 status collapsed
19541
19542 \begin_layout Plain Layout
19543 End
19544 \end_layout
19545
19546 \end_inset
19547
19548
19549 \begin_inset Quotes erd
19550 \end_inset
19551
19552 .
19553  The following parameters can also be used:
19554 \end_layout
19555
19556 \begin_layout Description
19557 \begin_inset Flex Code
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 InitialValue
19562 \end_layout
19563
19564 \end_inset
19565
19566  [
19567 \begin_inset Flex Code
19568 status collapsed
19569
19570 \begin_layout Plain Layout
19571 int=1
19572 \end_layout
19573
19574 \end_inset
19575
19576 ] Sets the initial value for the counter, to which it will be reset whenever
19577  that happens.
19578  Normally, one will want the default, 1.
19579 \end_layout
19580
19581 \begin_layout Description
19582 \begin_inset Flex Code
19583 status collapsed
19584
19585 \begin_layout Plain Layout
19586 LabelString
19587 \end_layout
19588
19589 \end_inset
19590
19591  [
19592 \begin_inset Flex Code
19593 status collapsed
19594
19595 \begin_layout Plain Layout
19596 string
19597 \end_layout
19598
19599 \end_inset
19600
19601 =
19602 \begin_inset Quotes erd
19603 \end_inset
19604
19605
19606 \begin_inset Quotes erd
19607 \end_inset
19608
19609 ] When defined, this string defines how the counter is displayed.
19610  Setting this value sets 
19611 \begin_inset Flex Code
19612 status collapsed
19613
19614 \begin_layout Plain Layout
19615 LabelStringAppendix
19616 \end_layout
19617
19618 \end_inset
19619
19620  to the same value.
19621  The following special constructs can be used in the string:
19622 \begin_inset Separator parbreak
19623 \end_inset
19624
19625
19626 \end_layout
19627
19628 \begin_deeper
19629 \begin_layout Itemize
19630 \begin_inset Flex Code
19631 status collapsed
19632
19633 \begin_layout Plain Layout
19634
19635 \backslash
19636 thecounter
19637 \end_layout
19638
19639 \end_inset
19640
19641  will be replaced by the expansion of the 
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  (or 
19652 \begin_inset Flex Code
19653 status collapsed
19654
19655 \begin_layout Plain Layout
19656 LabelStringAppendix
19657 \end_layout
19658
19659 \end_inset
19660
19661 ) of the counter 
19662 \begin_inset Flex Code
19663 status collapsed
19664
19665 \begin_layout Plain Layout
19666 counter
19667 \end_layout
19668
19669 \end_inset
19670
19671 .
19672  
19673 \end_layout
19674
19675 \begin_layout Itemize
19676 counter values can be expressed using \SpecialChar LaTeX
19677 -like macros
19678 \begin_inset Newline newline
19679 \end_inset
19680
19681
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686
19687 \backslash
19688
19689 \emph on
19690 numbertype
19691 \emph default
19692 {
19693 \emph on
19694 counter
19695 \emph default
19696 }
19697 \end_layout
19698
19699 \end_inset
19700
19701 , where 
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706
19707 \emph on
19708 numbertype
19709 \end_layout
19710
19711 \end_inset
19712
19713  can be:
19714 \begin_inset Foot
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718
19719 \family roman
19720 \series medium
19721 \shape up
19722 \size normal
19723 \emph off
19724 \bar no
19725 \noun off
19726 \color none
19727 Actually, the situation is a bit more complicated: any
19728 \family default
19729 \series default
19730 \shape default
19731 \emph default
19732 \bar default
19733  
19734 \size default
19735 \emph on
19736 \noun default
19737 \color inherit
19738 numbertype
19739 \family roman
19740 \series medium
19741 \shape up
19742 \size normal
19743 \emph off
19744 \bar no
19745 \noun off
19746  other than those described below will produce arabic numerals.
19747  It would not be surprising to see this change in the future.
19748 \end_layout
19749
19750 \end_inset
19751
19752  
19753 \begin_inset Flex Code
19754 status collapsed
19755
19756 \begin_layout Plain Layout
19757 arabic
19758 \end_layout
19759
19760 \end_inset
19761
19762 : 1, 2, 3,\SpecialChar ldots
19763
19764 \begin_inset Flex Code
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 alph
19769 \end_layout
19770
19771 \end_inset
19772
19773  for lower-case letters: a, b, c, \SpecialChar ldots
19774
19775 \begin_inset Flex Code
19776 status collapsed
19777
19778 \begin_layout Plain Layout
19779 Alph
19780 \end_layout
19781
19782 \end_inset
19783
19784  for upper-case letters: A, B, C, \SpecialChar ldots
19785
19786 \begin_inset Flex Code
19787 status collapsed
19788
19789 \begin_layout Plain Layout
19790 roman
19791 \end_layout
19792
19793 \end_inset
19794
19795  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
19796
19797 \begin_inset Flex Code
19798 status collapsed
19799
19800 \begin_layout Plain Layout
19801 Roman
19802 \end_layout
19803
19804 \end_inset
19805
19806  for upper-case roman numerals: I, II, III\SpecialChar ldots
19807
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 hebrew
19813 \end_layout
19814
19815 \end_inset
19816
19817  for hebrew numerals.
19818 \end_layout
19819
19820 \end_deeper
19821 \begin_layout Standard
19822 If LabelString is not defined, a default value is constructed as follows:
19823  if the counter has a master counter 
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828 master
19829 \end_layout
19830
19831 \end_inset
19832
19833  (defined via 
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 Within
19839 \end_layout
19840
19841 \end_inset
19842
19843 ), the string
19844 \begin_inset Newline newline
19845 \end_inset
19846
19847
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852
19853 \backslash
19854 themaster.
19855 \backslash
19856 arabic{counter}
19857 \end_layout
19858
19859 \end_inset
19860
19861  is used; otherwise the string 
19862 \begin_inset Flex Code
19863 status collapsed
19864
19865 \begin_layout Plain Layout
19866
19867 \backslash
19868 arabic{counter}
19869 \end_layout
19870
19871 \end_inset
19872
19873  is used.
19874 \end_layout
19875
19876 \begin_layout Description
19877 \begin_inset Flex Code
19878 status collapsed
19879
19880 \begin_layout Plain Layout
19881 LabelStringAppendix
19882 \end_layout
19883
19884 \end_inset
19885
19886  [
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 string
19892 \end_layout
19893
19894 \end_inset
19895
19896 =
19897 \begin_inset Quotes erd
19898 \end_inset
19899
19900
19901 \begin_inset Quotes erd
19902 \end_inset
19903
19904 ] Same as 
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909 LabelString
19910 \end_layout
19911
19912 \end_inset
19913
19914 , but for use in the Appendix.
19915 \end_layout
19916
19917 \begin_layout Description
19918 \begin_inset Flex Code
19919 status collapsed
19920
19921 \begin_layout Plain Layout
19922 PrettyFormat
19923 \end_layout
19924
19925 \end_inset
19926
19927  [
19928 \begin_inset Flex Code
19929 status collapsed
19930
19931 \begin_layout Plain Layout
19932 string
19933 \end_layout
19934
19935 \end_inset
19936
19937 =
19938 \begin_inset Quotes erd
19939 \end_inset
19940
19941
19942 \begin_inset Quotes erd
19943 \end_inset
19944
19945 ] A format for use with formatted references to this counter.
19946  For example, one might want to have references to section numbers appear
19947  as 
19948 \begin_inset Quotes eld
19949 \end_inset
19950
19951 Section 2.4
19952 \begin_inset Quotes erd
19953 \end_inset
19954
19955 .
19956  The string should contain 
19957 \begin_inset Quotes eld
19958 \end_inset
19959
19960 ##
19961 \begin_inset Quotes erd
19962 \end_inset
19963
19964 .
19965  This will be replaced by the counter number itself.
19966  So, for sections, it would be: Section ##.
19967 \end_layout
19968
19969 \begin_layout Description
19970 \begin_inset Flex Code
19971 status collapsed
19972
19973 \begin_layout Plain Layout
19974 Within
19975 \end_layout
19976
19977 \end_inset
19978
19979  [
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 string
19985 \end_layout
19986
19987 \end_inset
19988
19989 =
19990 \begin_inset Quotes erd
19991 \end_inset
19992
19993
19994 \begin_inset Quotes erd
19995 \end_inset
19996
19997 ] If this is set to the name of another counter, the present counter will
19998  be reset every time the other one is increased.
19999  For example, 
20000 \begin_inset Flex Code
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004 subsection
20005 \end_layout
20006
20007 \end_inset
20008
20009  is numbered inside 
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 section
20015 \end_layout
20016
20017 \end_inset
20018
20019 .
20020 \end_layout
20021
20022 \begin_layout Subsection
20023 Font description
20024 \begin_inset CommandInset label
20025 LatexCommand label
20026 name "subsec:Font-description"
20027
20028 \end_inset
20029
20030
20031 \end_layout
20032
20033 \begin_layout Standard
20034 A font description looks like this:
20035 \end_layout
20036
20037 \begin_layout LyX-Code
20038 Font 
20039 \family roman
20040 \emph on
20041 or
20042 \family default
20043 \emph default
20044  LabelFont
20045 \emph on
20046  or
20047 \emph default
20048  DefaultFont
20049 \end_layout
20050
20051 \begin_layout LyX-Code
20052  ...
20053 \end_layout
20054
20055 \begin_layout LyX-Code
20056 EndFont
20057 \end_layout
20058
20059 \begin_layout Standard
20060 The following commands are available:
20061 \end_layout
20062
20063 \begin_layout Description
20064 \begin_inset Flex Code
20065 status collapsed
20066
20067 \begin_layout Plain Layout
20068 Color
20069 \end_layout
20070
20071 \end_inset
20072
20073  [
20074 \begin_inset Flex Code
20075 status collapsed
20076
20077 \begin_layout Plain Layout
20078
20079 \emph on
20080 none
20081 \end_layout
20082
20083 \end_inset
20084
20085
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 black
20091 \end_layout
20092
20093 \end_inset
20094
20095
20096 \begin_inset Flex Code
20097 status collapsed
20098
20099 \begin_layout Plain Layout
20100 white
20101 \end_layout
20102
20103 \end_inset
20104
20105
20106 \begin_inset Flex Code
20107 status collapsed
20108
20109 \begin_layout Plain Layout
20110 red
20111 \end_layout
20112
20113 \end_inset
20114
20115
20116 \begin_inset Flex Code
20117 status collapsed
20118
20119 \begin_layout Plain Layout
20120 green
20121 \end_layout
20122
20123 \end_inset
20124
20125
20126 \begin_inset Flex Code
20127 status collapsed
20128
20129 \begin_layout Plain Layout
20130 blue
20131 \end_layout
20132
20133 \end_inset
20134
20135
20136 \begin_inset Flex Code
20137 status collapsed
20138
20139 \begin_layout Plain Layout
20140 cyan
20141 \end_layout
20142
20143 \end_inset
20144
20145
20146 \begin_inset Flex Code
20147 status collapsed
20148
20149 \begin_layout Plain Layout
20150 magenta
20151 \end_layout
20152
20153 \end_inset
20154
20155
20156 \begin_inset Flex Code
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160 yellow
20161 \end_layout
20162
20163 \end_inset
20164
20165 ]
20166 \end_layout
20167
20168 \begin_layout Description
20169 \begin_inset Flex Code
20170 status collapsed
20171
20172 \begin_layout Plain Layout
20173 Family
20174 \end_layout
20175
20176 \end_inset
20177
20178  [
20179 \begin_inset Flex Code
20180 status collapsed
20181
20182 \begin_layout Plain Layout
20183
20184 \emph on
20185 Roman
20186 \end_layout
20187
20188 \end_inset
20189
20190
20191 \begin_inset Flex Code
20192 status collapsed
20193
20194 \begin_layout Plain Layout
20195 Sans
20196 \end_layout
20197
20198 \end_inset
20199
20200
20201 \begin_inset Flex Code
20202 status collapsed
20203
20204 \begin_layout Plain Layout
20205 Typewriter
20206 \end_layout
20207
20208 \end_inset
20209
20210 ]
20211 \end_layout
20212
20213 \begin_layout Description
20214 \begin_inset Flex Code
20215 status collapsed
20216
20217 \begin_layout Plain Layout
20218 Misc
20219 \end_layout
20220
20221 \end_inset
20222
20223  [
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228 string
20229 \end_layout
20230
20231 \end_inset
20232
20233 ] Valid arguments are: 
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238 emph
20239 \end_layout
20240
20241 \end_inset
20242
20243
20244 \begin_inset Flex Code
20245 status collapsed
20246
20247 \begin_layout Plain Layout
20248 noun
20249 \end_layout
20250
20251 \end_inset
20252
20253
20254 \begin_inset Flex Code
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 strikeout
20259 \end_layout
20260
20261 \end_inset
20262
20263
20264 \begin_inset Flex Code
20265 status collapsed
20266
20267 \begin_layout Plain Layout
20268 underbar
20269 \end_layout
20270
20271 \end_inset
20272
20273
20274 \begin_inset Flex Code
20275 status collapsed
20276
20277 \begin_layout Plain Layout
20278 uuline
20279 \end_layout
20280
20281 \end_inset
20282
20283
20284 \begin_inset Flex Code
20285 status collapsed
20286
20287 \begin_layout Plain Layout
20288 uwave
20289 \end_layout
20290
20291 \end_inset
20292
20293
20294 \begin_inset Flex Code
20295 status collapsed
20296
20297 \begin_layout Plain Layout
20298 no_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 no_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 no_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 no_bar
20329 \end_layout
20330
20331 \end_inset
20332
20333
20334 \begin_inset Flex Code
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 no_uuline
20339 \end_layout
20340
20341 \end_inset
20342
20343  and 
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 no_uwave
20349 \end_layout
20350
20351 \end_inset
20352
20353 .
20354  Each of these turns on or off the corresponding attribute.
20355  For example, 
20356 \begin_inset Flex Code
20357 status collapsed
20358
20359 \begin_layout Plain Layout
20360 emph
20361 \end_layout
20362
20363 \end_inset
20364
20365  turns on emphasis, and 
20366 \begin_inset Flex Code
20367 status collapsed
20368
20369 \begin_layout Plain Layout
20370 no_emph
20371 \end_layout
20372
20373 \end_inset
20374
20375  turns it off.
20376  
20377 \begin_inset Newline newline
20378 \end_inset
20379
20380 If the latter seems puzzling, remember that the font settings for the present
20381  context are generally inherited from the surrounding context.
20382  So 
20383 \begin_inset Flex Code
20384 status collapsed
20385
20386 \begin_layout Plain Layout
20387 no_emph
20388 \end_layout
20389
20390 \end_inset
20391
20392  would turn off the emphasis that was anyway in effect, say, in a theorem
20393  environment.
20394 \end_layout
20395
20396 \begin_layout Description
20397 \begin_inset Flex Code
20398 status collapsed
20399
20400 \begin_layout Plain Layout
20401 Series
20402 \end_layout
20403
20404 \end_inset
20405
20406  [
20407 \begin_inset Flex Code
20408 status collapsed
20409
20410 \begin_layout Plain Layout
20411
20412 \emph on
20413 Medium
20414 \end_layout
20415
20416 \end_inset
20417
20418
20419 \begin_inset Flex Code
20420 status collapsed
20421
20422 \begin_layout Plain Layout
20423 Bold
20424 \end_layout
20425
20426 \end_inset
20427
20428
20429 \end_layout
20430
20431 \begin_layout Description
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436 Shape
20437 \end_layout
20438
20439 \end_inset
20440
20441  [
20442 \begin_inset Flex Code
20443 status collapsed
20444
20445 \begin_layout Plain Layout
20446
20447 \emph on
20448 Up
20449 \end_layout
20450
20451 \end_inset
20452
20453
20454 \begin_inset Flex Code
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458 Italic
20459 \end_layout
20460
20461 \end_inset
20462
20463
20464 \begin_inset Flex Code
20465 status collapsed
20466
20467 \begin_layout Plain Layout
20468 SmallCaps
20469 \end_layout
20470
20471 \end_inset
20472
20473
20474 \begin_inset Flex Code
20475 status collapsed
20476
20477 \begin_layout Plain Layout
20478 Slanted
20479 \end_layout
20480
20481 \end_inset
20482
20483
20484 \end_layout
20485
20486 \begin_layout Description
20487 \begin_inset Flex Code
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491 Size
20492 \end_layout
20493
20494 \end_inset
20495
20496  [
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 tiny
20502 \end_layout
20503
20504 \end_inset
20505
20506
20507 \begin_inset Flex Code
20508 status collapsed
20509
20510 \begin_layout Plain Layout
20511 small
20512 \end_layout
20513
20514 \end_inset
20515
20516
20517 \begin_inset Flex Code
20518 status collapsed
20519
20520 \begin_layout Plain Layout
20521
20522 \emph on
20523 normal
20524 \end_layout
20525
20526 \end_inset
20527
20528
20529 \begin_inset Flex Code
20530 status collapsed
20531
20532 \begin_layout Plain Layout
20533 large
20534 \end_layout
20535
20536 \end_inset
20537
20538
20539 \begin_inset Flex Code
20540 status collapsed
20541
20542 \begin_layout Plain Layout
20543 larger
20544 \end_layout
20545
20546 \end_inset
20547
20548
20549 \begin_inset Flex Code
20550 status collapsed
20551
20552 \begin_layout Plain Layout
20553 largest
20554 \end_layout
20555
20556 \end_inset
20557
20558
20559 \begin_inset Flex Code
20560 status collapsed
20561
20562 \begin_layout Plain Layout
20563 huge
20564 \end_layout
20565
20566 \end_inset
20567
20568
20569 \begin_inset Flex Code
20570 status collapsed
20571
20572 \begin_layout Plain Layout
20573 giant
20574 \end_layout
20575
20576 \end_inset
20577
20578 ]
20579 \end_layout
20580
20581 \begin_layout Subsection
20582 \begin_inset CommandInset label
20583 LatexCommand label
20584 name "subsec:Citation-format-description"
20585
20586 \end_inset
20587
20588 Citation format description
20589 \end_layout
20590
20591 \begin_layout Standard
20592 The 
20593 \begin_inset Flex Code
20594 status collapsed
20595
20596 \begin_layout Plain Layout
20597 CiteFormat
20598 \end_layout
20599
20600 \end_inset
20601
20602  blocks are used to describe how bibliographic information should be displayed,
20603  both within \SpecialChar LyX
20604  itself (in the citation dialog and in tooltips, for example)
20605  and in XHTML output.
20606  Such a block might look like this:
20607 \end_layout
20608
20609 \begin_layout LyX-Code
20610 CiteFormat
20611 \end_layout
20612
20613 \begin_layout LyX-Code
20614  article ...
20615 \end_layout
20616
20617 \begin_layout LyX-Code
20618  book ...
20619 \end_layout
20620
20621 \begin_layout LyX-Code
20622 End
20623 \end_layout
20624
20625 \begin_layout Standard
20626 The individual lines define how the bibliographic information associated
20627  with an article or book, respectively, is to be displayed, and such a definitio
20628 n can be given for any `entry type' that might be present in a Bib\SpecialChar TeX
20629  file.
20630  \SpecialChar LyX
20631  defines a default format in the source code that will be used if no specific
20632  definition has been given.
20633  \SpecialChar LyX
20634  predefines several formats in the file 
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 stdciteformats.inc
20640 \end_layout
20641
20642 \end_inset
20643
20644 , which is included in most of \SpecialChar LyX
20645 's document classes.
20646 \end_layout
20647
20648 \begin_layout Standard
20649 The definitions use a simple language that allows Bib\SpecialChar TeX
20650  keys to be replaced
20651  with their values.
20652  Keys should be enclosed in 
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 %
20658 \end_layout
20659
20660 \end_inset
20661
20662  signs, e.g.: 
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 %author%
20668 \end_layout
20669
20670 \end_inset
20671
20672 .
20673  So a simple definition might look like this:
20674 \end_layout
20675
20676 \begin_layout LyX-Code
20677 misc %author%, 
20678 \begin_inset Quotes eld
20679 \end_inset
20680
20681 %title
20682 \begin_inset Quotes erd
20683 \end_inset
20684
20685 .
20686 \end_layout
20687
20688 \begin_layout Standard
20689 This would print the author, followed by a comma, followed by the title,
20690  in quotes, followed by a period.
20691 \end_layout
20692
20693 \begin_layout Standard
20694 Of course, sometimes you may want to print a key only if it exists.
20695  This can be done by using a conditional construction, such as: 
20696 \begin_inset Flex Code
20697 status collapsed
20698
20699 \begin_layout Plain Layout
20700 {%volume%[[vol.
20701 \begin_inset space ~
20702 \end_inset
20703
20704 %volume%]]}
20705 \end_layout
20706
20707 \end_inset
20708
20709 .
20710  This says: If the 
20711 \begin_inset Flex Code
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715 volume
20716 \end_layout
20717
20718 \end_inset
20719
20720  key exists, then print 
20721 \begin_inset Quotes eld
20722 \end_inset
20723
20724 vol.
20725 \begin_inset space ~
20726 \end_inset
20727
20728
20729 \begin_inset Quotes erd
20730 \end_inset
20731
20732  followed by the volume key.
20733  It is also possible to have an else clause in the conditional, such as:
20734 \begin_inset Newline newline
20735 \end_inset
20736
20737
20738 \begin_inset Flex Code
20739 status collapsed
20740
20741 \begin_layout Plain Layout
20742 {%author%[[%author%]][[%editor%, ed.]]}
20743 \end_layout
20744
20745 \end_inset
20746
20747 .
20748 \begin_inset Newline newline
20749 \end_inset
20750
20751 Here, the 
20752 \begin_inset Flex Code
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756 author
20757 \end_layout
20758
20759 \end_inset
20760
20761  key is printed if it exists; otherwise, the editor key is printed, followed
20762  by 
20763 \begin_inset Quotes eld
20764 \end_inset
20765
20766 ,
20767 \begin_inset space ~
20768 \end_inset
20769
20770 ed.
20771 \begin_inset Quotes erd
20772 \end_inset
20773
20774  Note that the key is again enclosed in 
20775 \begin_inset Flex Code
20776 status collapsed
20777
20778 \begin_layout Plain Layout
20779 %
20780 \end_layout
20781
20782 \end_inset
20783
20784  signs; the entire conditional is enclosed in braces; and the if and else
20785  clauses are enclosed in double brackets, 
20786 \begin_inset Quotes eld
20787 \end_inset
20788
20789
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 [[
20795 \end_layout
20796
20797 \end_inset
20798
20799
20800 \begin_inset Quotes eld
20801 \end_inset
20802
20803  and 
20804 \begin_inset Quotes eld
20805 \end_inset
20806
20807
20808 \begin_inset Flex Code
20809 status collapsed
20810
20811 \begin_layout Plain Layout
20812 ]]
20813 \end_layout
20814
20815 \end_inset
20816
20817
20818 \begin_inset Quotes erd
20819 \end_inset
20820
20821 .
20822  There must be no space between any of these.
20823 \end_layout
20824
20825 \begin_layout Standard
20826 There is one other piece of syntax available in definitions, which looks
20827  like this: 
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 {!<i>!}
20833 \end_layout
20834
20835 \end_inset
20836
20837 .
20838  This defines a piece of formatting information that is to be used when
20839  creating 
20840 \begin_inset Quotes eld
20841 \end_inset
20842
20843 rich text
20844 \begin_inset Quotes erd
20845 \end_inset
20846
20847 .
20848  Obviously, we do not want to output HTML tags when writing plain text,
20849  so they should be wrapped in 
20850 \begin_inset Quotes eld
20851 \end_inset
20852
20853 {!
20854 \begin_inset Quotes erd
20855 \end_inset
20856
20857  and 
20858 \begin_inset Quotes eld
20859 \end_inset
20860
20861 !}
20862 \begin_inset Quotes erd
20863 \end_inset
20864
20865 .
20866 \end_layout
20867
20868 \begin_layout Standard
20869 Two special sorts of definitions are also possible in a 
20870 \begin_inset Flex Code
20871 status collapsed
20872
20873 \begin_layout Plain Layout
20874 CiteFormat
20875 \end_layout
20876
20877 \end_inset
20878
20879  block.
20880  An example of the first would be:
20881 \end_layout
20882
20883 \begin_layout LyX-Code
20884 !quotetitle 
20885 \begin_inset Quotes eld
20886 \end_inset
20887
20888 %title%
20889 \begin_inset Quotes erd
20890 \end_inset
20891
20892
20893 \end_layout
20894
20895 \begin_layout Standard
20896 This is an abbreviation, or macro, and it can be used by treating it as
20897  if it were a key: 
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 %!quotetitle%
20903 \end_layout
20904
20905 \end_inset
20906
20907 .
20908  \SpecialChar LyX
20909  will treat 
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914 %!quotetitle%
20915 \end_layout
20916
20917 \end_inset
20918
20919  exactly as it would treat its definition.
20920  So, let us issue the obvious 
20921 \emph on
20922 warning
20923 \emph default
20924 .
20925  Do not do this:
20926 \end_layout
20927
20928 \begin_layout LyX-Code
20929 !funfun %funfun%
20930 \end_layout
20931
20932 \begin_layout Standard
20933 or anything like it.
20934  \SpecialChar LyX
20935  shouldn't go into an infinite loop, but it may go into a long one before
20936  it gives up.
20937 \end_layout
20938
20939 \begin_layout Standard
20940 The second sort of special definition might look like this:
20941 \end_layout
20942
20943 \begin_layout LyX-Code
20944 _pptext pp.
20945 \end_layout
20946
20947 \begin_layout Standard
20948 This defines a translatable piece of text, which allows relevant parts of
20949  the bibliography to be translated.
20950  It can be included in a definition by treating it as a key: 
20951 \begin_inset Flex Code
20952 status collapsed
20953
20954 \begin_layout Plain Layout
20955 %_pptext%
20956 \end_layout
20957
20958 \end_inset
20959
20960 .
20961  Several of these are predefined in 
20962 \begin_inset Flex Code
20963 status collapsed
20964
20965 \begin_layout Plain Layout
20966 stdciteformats.inc
20967 \end_layout
20968
20969 \end_inset
20970
20971 .
20972  Note that these are not macros, in the sense just defined.
20973  They will not be expanded.
20974 \end_layout
20975
20976 \begin_layout Standard
20977 So here then is an example that use all these features:
20978 \begin_inset VSpace defskip
20979 \end_inset
20980
20981
20982 \end_layout
20983
20984 \begin_layout Standard
20985 \noindent
20986
20987 \family typewriter
20988 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %_edtext%, ]]}]]}
20989 \end_layout
20990
20991 \begin_layout Standard
20992 \begin_inset VSpace defskip
20993 \end_inset
20994
20995 This defines a macro that prints the author, followed by a comma, if the
20996  
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 author
21002 \end_layout
21003
21004 \end_inset
21005
21006  key is defined, or else prints the name of the editor, followed by the
21007  
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012 _edtext
21013 \end_layout
21014
21015 \end_inset
21016
21017  or its translation (it is by default 
21018 \begin_inset Quotes eld
21019 \end_inset
21020
21021 ed.
21022 \begin_inset Quotes erd
21023 \end_inset
21024
21025 ), if the 
21026 \begin_inset Flex Code
21027 status collapsed
21028
21029 \begin_layout Plain Layout
21030 editor
21031 \end_layout
21032
21033 \end_inset
21034
21035  key is defined.
21036  Note that this is in fact defined in 
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041 stdciteformats.inc
21042 \end_layout
21043
21044 \end_inset
21045
21046 , so you can use it in your own definitions, or re-definitions, if you load
21047  that file first.
21048 \end_layout
21049
21050 \begin_layout Section
21051 \begin_inset CommandInset label
21052 LatexCommand label
21053 name "sec:Tags-for-XHTML"
21054
21055 \end_inset
21056
21057 Tags for XHTML output
21058 \end_layout
21059
21060 \begin_layout Standard
21061 As with \SpecialChar LaTeX
21062  or DocBook, the format of \SpecialChar LyX
21063 's XHTML output is also controlled by
21064  layout information.
21065  In general, \SpecialChar LyX
21066  provides sensible defaults and, as mentioned earlier, it will
21067  even construct default CSS style rules from the other layout tags.
21068  For example, \SpecialChar LyX
21069  will attempt to use the information provided in the 
21070 \begin_inset Flex Code
21071 status collapsed
21072
21073 \begin_layout Plain Layout
21074 Font
21075 \end_layout
21076
21077 \end_inset
21078
21079  declaration for the Chapter style to write CSS that will appropriately
21080  format chapter headings.
21081 \end_layout
21082
21083 \begin_layout Standard
21084 In many cases, then, you may not have to do anything at all to get acceptable
21085  XHTML output for your own environments, custom insets, and so forth.
21086  But in some cases you will, and so \SpecialChar LyX
21087  provides a number of layout tags that
21088  can be used to customize the XHTML and CSS that are generated.
21089 \end_layout
21090
21091 \begin_layout Standard
21092 Note that there are two tags, 
21093 \begin_inset Flex Code
21094 status collapsed
21095
21096 \begin_layout Plain Layout
21097 HTMLPreamble
21098 \end_layout
21099
21100 \end_inset
21101
21102  and 
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107 AddToHTMLPreamble
21108 \end_layout
21109
21110 \end_inset
21111
21112  that may appear outside style and inset declarations.
21113  See 
21114 \begin_inset CommandInset ref
21115 LatexCommand ref
21116 reference "subsec:General-text-class"
21117
21118 \end_inset
21119
21120  for details on these.
21121 \end_layout
21122
21123 \begin_layout Subsection
21124 \begin_inset CommandInset label
21125 LatexCommand label
21126 name "subsec:Paragraph-Style-XHTML"
21127
21128 \end_inset
21129
21130 Paragraph styles
21131 \end_layout
21132
21133 \begin_layout Standard
21134 The sort of XHTML \SpecialChar LyX
21135  outputs for a paragraph depends upon whether we are dealing
21136  with a normal paragraph, a command, or an environment, where this is itself
21137  determined by the contents of the corresponding 
21138 \begin_inset Flex Code
21139 status collapsed
21140
21141 \begin_layout Plain Layout
21142 \SpecialChar LaTeX
21143 Type
21144 \end_layout
21145
21146 \end_inset
21147
21148  tag.
21149  
21150 \end_layout
21151
21152 \begin_layout Standard
21153 For a command or normal paragraph, the output XHTML has the following form:
21154 \end_layout
21155
21156 \begin_layout LyX-Code
21157 <tag attr=
21158 \begin_inset Quotes erd
21159 \end_inset
21160
21161 value
21162 \begin_inset Quotes erd
21163 \end_inset
21164
21165 >
21166 \end_layout
21167
21168 \begin_layout LyX-Code
21169 <labeltag attr=
21170 \begin_inset Quotes erd
21171 \end_inset
21172
21173 value
21174 \begin_inset Quotes erd
21175 \end_inset
21176
21177 >Label</labeltag>
21178 \end_layout
21179
21180 \begin_layout LyX-Code
21181 Contents of the paragraph.
21182 \end_layout
21183
21184 \begin_layout LyX-Code
21185 </tag>
21186 \end_layout
21187
21188 \begin_layout Standard
21189 The label tags are of course omitted if the paragraph does not have a label.
21190 \end_layout
21191
21192 \begin_layout Standard
21193 For an environment that is not some sort of list, the XHTML takes this form:
21194 \end_layout
21195
21196 \begin_layout LyX-Code
21197 <tag attr=
21198 \begin_inset Quotes erd
21199 \end_inset
21200
21201 value
21202 \begin_inset Quotes erd
21203 \end_inset
21204
21205 >
21206 \end_layout
21207
21208 \begin_layout LyX-Code
21209 <itemtag attr=
21210 \begin_inset Quotes erd
21211 \end_inset
21212
21213 value
21214 \begin_inset Quotes erd
21215 \end_inset
21216
21217 ><labeltag attr=
21218 \begin_inset Quotes erd
21219 \end_inset
21220
21221 value
21222 \begin_inset Quotes erd
21223 \end_inset
21224
21225 >Environment Label</labeltag>First paragraph.</itemtag>
21226 \end_layout
21227
21228 \begin_layout LyX-Code
21229 <itemtag>Second paragraph.</itemtag>
21230 \end_layout
21231
21232 \begin_layout LyX-Code
21233 </tag>
21234 \end_layout
21235
21236 \begin_layout Standard
21237 Note that the label is output only for the first paragraph, as it should
21238  be for a theorem, for example.
21239  
21240 \end_layout
21241
21242 \begin_layout Standard
21243 For a list, we have one of these forms:
21244 \end_layout
21245
21246 \begin_layout LyX-Code
21247 <tag attr=
21248 \begin_inset Quotes erd
21249 \end_inset
21250
21251 value
21252 \begin_inset Quotes erd
21253 \end_inset
21254
21255 >
21256 \end_layout
21257
21258 \begin_layout LyX-Code
21259 <itemtag attr=
21260 \begin_inset Quotes erd
21261 \end_inset
21262
21263 value
21264 \begin_inset Quotes erd
21265 \end_inset
21266
21267 ><labeltag attr=
21268 \begin_inset Quotes erd
21269 \end_inset
21270
21271 value
21272 \begin_inset Quotes erd
21273 \end_inset
21274
21275 >List Label</labeltag>First item.</itemtag>
21276 \end_layout
21277
21278 \begin_layout LyX-Code
21279 <itemtag attr=
21280 \begin_inset Quotes erd
21281 \end_inset
21282
21283 value
21284 \begin_inset Quotes erd
21285 \end_inset
21286
21287 ><labeltag attr=
21288 \begin_inset Quotes erd
21289 \end_inset
21290
21291 value
21292 \begin_inset Quotes erd
21293 \end_inset
21294
21295 >List Label</labeltag>Second item.</itemtag>
21296 \end_layout
21297
21298 \begin_layout LyX-Code
21299 </tag>
21300 \end_layout
21301
21302 \begin_layout LyX-Code
21303
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 <labeltag attr=
21320 \begin_inset Quotes erd
21321 \end_inset
21322
21323 value
21324 \begin_inset Quotes erd
21325 \end_inset
21326
21327 >List Label</labeltag><itemtag attr=
21328 \begin_inset Quotes erd
21329 \end_inset
21330
21331 value
21332 \begin_inset Quotes erd
21333 \end_inset
21334
21335 >First item.</itemtag>
21336 \end_layout
21337
21338 \begin_layout LyX-Code
21339 <labeltag attr=
21340 \begin_inset Quotes erd
21341 \end_inset
21342
21343 value
21344 \begin_inset Quotes erd
21345 \end_inset
21346
21347 >List Label</labeltag><itemtag attr=
21348 \begin_inset Quotes erd
21349 \end_inset
21350
21351 value
21352 \begin_inset Quotes erd
21353 \end_inset
21354
21355 >Second item.</itemtag>
21356 \end_layout
21357
21358 \begin_layout LyX-Code
21359 </tag>
21360 \end_layout
21361
21362 \begin_layout Standard
21363 Note the different orders of 
21364 \begin_inset Flex Code
21365 status collapsed
21366
21367 \begin_layout Plain Layout
21368 labeltag
21369 \end_layout
21370
21371 \end_inset
21372
21373  and 
21374 \begin_inset Flex Code
21375 status collapsed
21376
21377 \begin_layout Plain Layout
21378 itemtag
21379 \end_layout
21380
21381 \end_inset
21382
21383 .
21384  Which order we get depends upon the setting of 
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389 HTMLLabelFirst
21390 \end_layout
21391
21392 \end_inset
21393
21394 : If 
21395 \begin_inset Flex Code
21396 status collapsed
21397
21398 \begin_layout Plain Layout
21399 HTMLLabelFirst
21400 \end_layout
21401
21402 \end_inset
21403
21404  is false (the default), you get the first of these, with the label within
21405  the item; if true, you get the second, with the label outside the item.
21406 \end_layout
21407
21408 \begin_layout Standard
21409 The specific tags and attributes output for each paragraph type can be controlle
21410 d by means of the layout tags we are about to describe.
21411  As mentioned earlier, however, \SpecialChar LyX
21412  uses sensible defaults for many of these,
21413  so you often may not need to do very much to get good XHTML output.
21414  Think of the available tags as there so you can tweak things to your liking.
21415 \end_layout
21416
21417 \begin_layout Description
21418 \begin_inset Flex Code
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422 HTMLAttr
21423 \end_layout
21424
21425 \end_inset
21426
21427  [
21428 \begin_inset Flex Code
21429 status collapsed
21430
21431 \begin_layout Plain Layout
21432 string
21433 \end_layout
21434
21435 \end_inset
21436
21437 ] Specifies attribute information to be output with the main tag.
21438  For example, 
21439 \begin_inset Quotes eld
21440 \end_inset
21441
21442
21443 \begin_inset Flex Code
21444 status collapsed
21445
21446 \begin_layout Plain Layout
21447 class=`mydiv'
21448 \end_layout
21449
21450 \end_inset
21451
21452
21453 \begin_inset Quotes erd
21454 \end_inset
21455
21456 .
21457  By default, \SpecialChar LyX
21458  will output 
21459 \begin_inset Quotes eld
21460 \end_inset
21461
21462
21463 \begin_inset Flex Code
21464 status collapsed
21465
21466 \begin_layout Plain Layout
21467 class=`layoutname'
21468 \end_layout
21469
21470 \end_inset
21471
21472
21473 \begin_inset Quotes erd
21474 \end_inset
21475
21476 , where 
21477 \begin_inset Flex Code
21478 status collapsed
21479
21480 \begin_layout Plain Layout
21481 layoutname
21482 \end_layout
21483
21484 \end_inset
21485
21486  is the \SpecialChar LyX
21487  name of the layout, made lowercase, for example: chapter.
21488  This should 
21489 \emph on
21490 not
21491 \emph default
21492  contain any style information.
21493  Use 
21494 \begin_inset Flex Code
21495 status collapsed
21496
21497 \begin_layout Plain Layout
21498 HTMLStyle
21499 \end_layout
21500
21501 \end_inset
21502
21503  for that purpose.
21504 \end_layout
21505
21506 \begin_layout Description
21507 \begin_inset Flex Code
21508 status collapsed
21509
21510 \begin_layout Plain Layout
21511 HTMLForceCSS
21512 \end_layout
21513
21514 \end_inset
21515
21516  [
21517 \begin_inset Flex Code
21518 status collapsed
21519
21520 \begin_layout Plain Layout
21521
21522 \emph on
21523 0
21524 \emph default
21525 ,1
21526 \end_layout
21527
21528 \end_inset
21529
21530 ] Whether to output the default CSS information \SpecialChar LyX
21531  generates for this layout,
21532  even if additional information is explicitly provided via 
21533 \begin_inset Flex Code
21534 status collapsed
21535
21536 \begin_layout Plain Layout
21537 HTMLStyle
21538 \end_layout
21539
21540 \end_inset
21541
21542 .
21543  Setting this to 
21544 \begin_inset Flex Code
21545 status collapsed
21546
21547 \begin_layout Plain Layout
21548 1
21549 \end_layout
21550
21551 \end_inset
21552
21553  allows you to alter or augment the generated CSS, rather than to override
21554  it completely.
21555  Default is 
21556 \begin_inset Flex Code
21557 status collapsed
21558
21559 \begin_layout Plain Layout
21560 0
21561 \end_layout
21562
21563 \end_inset
21564
21565 .
21566 \end_layout
21567
21568 \begin_layout Description
21569 \begin_inset Flex Code
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573 HTMLItem
21574 \end_layout
21575
21576 \end_inset
21577
21578  [
21579 \begin_inset Flex Code
21580 status collapsed
21581
21582 \begin_layout Plain Layout
21583 string
21584 \end_layout
21585
21586 \end_inset
21587
21588 ] The tag to be used for individual paragraphs of environments, replacing
21589  
21590 \begin_inset Flex Code
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594 itemtag
21595 \end_layout
21596
21597 \end_inset
21598
21599  in the examples above.
21600  Defaults to 
21601 \begin_inset Flex Code
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605 div
21606 \end_layout
21607
21608 \end_inset
21609
21610 .
21611 \end_layout
21612
21613 \begin_layout Description
21614 \begin_inset Flex Code
21615 status collapsed
21616
21617 \begin_layout Plain Layout
21618 HTMLItemAttr
21619 \end_layout
21620
21621 \end_inset
21622
21623  [
21624 \begin_inset Flex Code
21625 status collapsed
21626
21627 \begin_layout Plain Layout
21628 string
21629 \end_layout
21630
21631 \end_inset
21632
21633 ] Attributes for the item tag.
21634  Defaults to 
21635 \begin_inset Quotes eld
21636 \end_inset
21637
21638
21639 \begin_inset Flex Code
21640 status collapsed
21641
21642 \begin_layout Plain Layout
21643 class=`layoutname_item'
21644 \end_layout
21645
21646 \end_inset
21647
21648
21649 \begin_inset Quotes erd
21650 \end_inset
21651
21652 .
21653  This should 
21654 \emph on
21655 not
21656 \emph default
21657  contain any style information.
21658  Use 
21659 \begin_inset Flex Code
21660 status collapsed
21661
21662 \begin_layout Plain Layout
21663 HTMLStyle
21664 \end_layout
21665
21666 \end_inset
21667
21668  for that purpose.
21669 \end_layout
21670
21671 \begin_layout Description
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676 HTMLLabel
21677 \end_layout
21678
21679 \end_inset
21680
21681  [
21682 \begin_inset Flex Code
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686 string
21687 \end_layout
21688
21689 \end_inset
21690
21691 ] The tag to be used for paragraph and item labels, replacing 
21692 \begin_inset Flex Code
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696 labeltag
21697 \end_layout
21698
21699 \end_inset
21700
21701  in the examples above.
21702  Defaults to 
21703 \begin_inset Flex Code
21704 status collapsed
21705
21706 \begin_layout Plain Layout
21707 span
21708 \end_layout
21709
21710 \end_inset
21711
21712 , unless 
21713 \begin_inset Flex Code
21714 status collapsed
21715
21716 \begin_layout Plain Layout
21717 LabelType
21718 \end_layout
21719
21720 \end_inset
21721
21722  is either 
21723 \begin_inset Flex Code
21724 status collapsed
21725
21726 \begin_layout Plain Layout
21727 Top_Environment
21728 \end_layout
21729
21730 \end_inset
21731
21732  or 
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 Centered_Top_Environment
21738 \end_layout
21739
21740 \end_inset
21741
21742 , in which case it defaults to 
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747 div
21748 \end_layout
21749
21750 \end_inset
21751
21752 .
21753 \end_layout
21754
21755 \begin_layout Description
21756 \begin_inset Flex Code
21757 status collapsed
21758
21759 \begin_layout Plain Layout
21760 HTMLLabelAttr
21761 \end_layout
21762
21763 \end_inset
21764
21765  [
21766 \begin_inset Flex Code
21767 status collapsed
21768
21769 \begin_layout Plain Layout
21770 string
21771 \end_layout
21772
21773 \end_inset
21774
21775 ] Attributes for the label tag.
21776  Defaults to 
21777 \begin_inset Quotes eld
21778 \end_inset
21779
21780
21781 \begin_inset Flex Code
21782 status collapsed
21783
21784 \begin_layout Plain Layout
21785 class=`layoutname_label'
21786 \end_layout
21787
21788 \end_inset
21789
21790
21791 \begin_inset Quotes erd
21792 \end_inset
21793
21794 .
21795  This should 
21796 \emph on
21797 not
21798 \emph default
21799  contain any style information.
21800  Use 
21801 \begin_inset Flex Code
21802 status collapsed
21803
21804 \begin_layout Plain Layout
21805 HTMLStyle
21806 \end_layout
21807
21808 \end_inset
21809
21810  for that purpose.
21811 \end_layout
21812
21813 \begin_layout Description
21814 \begin_inset Flex Code
21815 status collapsed
21816
21817 \begin_layout Plain Layout
21818 HTMLLabelFirst
21819 \end_layout
21820
21821 \end_inset
21822
21823  [
21824 \begin_inset Flex Code
21825 status collapsed
21826
21827 \begin_layout Plain Layout
21828
21829 \emph on
21830 0
21831 \emph default
21832 ,1
21833 \end_layout
21834
21835 \end_inset
21836
21837 ] Meaningful only for list-like environments, this tag controls whether
21838  the label tag is output before or inside the item tag.
21839  This is used, for example, in the description environment, where we want
21840  `
21841 \begin_inset Flex Code
21842 status collapsed
21843
21844 \begin_layout Plain Layout
21845 <dt>\SpecialChar ldots
21846 </dt><dd>\SpecialChar ldots
21847 </dd>
21848 \end_layout
21849
21850 \end_inset
21851
21852 .
21853  Default is 
21854 \begin_inset Flex Code
21855 status collapsed
21856
21857 \begin_layout Plain Layout
21858 0
21859 \end_layout
21860
21861 \end_inset
21862
21863 : The label tag is output inside the item tag.
21864 \end_layout
21865
21866 \begin_layout Description
21867 \begin_inset Flex Code
21868 status collapsed
21869
21870 \begin_layout Plain Layout
21871 HTMLPreamble
21872 \end_layout
21873
21874 \end_inset
21875
21876  Information to be output in the 
21877 \begin_inset Flex Code
21878 status collapsed
21879
21880 \begin_layout Plain Layout
21881 <head>
21882 \end_layout
21883
21884 \end_inset
21885
21886  section when this style is used.
21887  This might, for example, be used to include a 
21888 \begin_inset Flex Code
21889 status collapsed
21890
21891 \begin_layout Plain Layout
21892 <script>
21893 \end_layout
21894
21895 \end_inset
21896
21897  block defining an 
21898 \begin_inset Flex Code
21899 status collapsed
21900
21901 \begin_layout Plain Layout
21902 onclick
21903 \end_layout
21904
21905 \end_inset
21906
21907  handler.
21908 \end_layout
21909
21910 \begin_layout Description
21911 \begin_inset Flex Code
21912 status collapsed
21913
21914 \begin_layout Plain Layout
21915 HTMLStyle
21916 \end_layout
21917
21918 \end_inset
21919
21920  CSS style information to be included when this style is used.
21921  Note that this will automatically be wrapped in a layout-generated 
21922 \begin_inset Flex Code
21923 status collapsed
21924
21925 \begin_layout Plain Layout
21926 <style>
21927 \end_layout
21928
21929 \end_inset
21930
21931  block, so only the CSS itself need be included.
21932  Must end with 
21933 \begin_inset Flex Code
21934 status collapsed
21935
21936 \begin_layout Plain Layout
21937 EndHTMLStyle
21938 \end_layout
21939
21940 \end_inset
21941
21942 .
21943 \end_layout
21944
21945 \begin_layout Description
21946 \begin_inset Flex Code
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 HTMLTag
21951 \end_layout
21952
21953 \end_inset
21954
21955  [
21956 \begin_inset Flex Code
21957 status collapsed
21958
21959 \begin_layout Plain Layout
21960 string
21961 \end_layout
21962
21963 \end_inset
21964
21965 ] The tag to be used for the main label, replacing 
21966 \begin_inset Flex Code
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970 tag
21971 \end_layout
21972
21973 \end_inset
21974
21975  in the examples above.
21976  Defaults to 
21977 \begin_inset Flex Code
21978 status collapsed
21979
21980 \begin_layout Plain Layout
21981 div
21982 \end_layout
21983
21984 \end_inset
21985
21986 .
21987 \end_layout
21988
21989 \begin_layout Description
21990 \begin_inset Flex Code
21991 status collapsed
21992
21993 \begin_layout Plain Layout
21994 HTMLTitle
21995 \end_layout
21996
21997 \end_inset
21998
21999  [
22000 \begin_inset Flex Code
22001 status collapsed
22002
22003 \begin_layout Plain Layout
22004
22005 \emph on
22006 0
22007 \emph default
22008 ,1
22009 \end_layout
22010
22011 \end_inset
22012
22013 ] Marks this style as the one to be used to generate the 
22014 \begin_inset Flex Code
22015 status collapsed
22016
22017 \begin_layout Plain Layout
22018 <title>
22019 \end_layout
22020
22021 \end_inset
22022
22023  tag for the XHTML file.
22024  By default, it is false.
22025  The 
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 stdtitle.inc
22031 \end_layout
22032
22033 \end_inset
22034
22035  file sets it to true for the 
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 title
22041 \end_layout
22042
22043 \end_inset
22044
22045  environment.
22046  
22047 \end_layout
22048
22049 \begin_layout Subsection
22050 InsetLayout XHTML
22051 \end_layout
22052
22053 \begin_layout Standard
22054 The XHTML output of insets can also be controlled by information in layout
22055  files.
22056 \begin_inset Foot
22057 status collapsed
22058
22059 \begin_layout Plain Layout
22060 At present, this is true only for 
22061 \begin_inset Quotes eld
22062 \end_inset
22063
22064 text
22065 \begin_inset Quotes erd
22066 \end_inset
22067
22068  insets (insets you can type into) and is not true for 
22069 \begin_inset Quotes eld
22070 \end_inset
22071
22072 command
22073 \begin_inset Quotes erd
22074 \end_inset
22075
22076  insets (insets that are associated with dialog boxes).
22077 \end_layout
22078
22079 \end_inset
22080
22081  Here, too, \SpecialChar LyX
22082  tries to provide sensible defaults, and it constructs default
22083  CSS style rules.
22084  But everything can be customized.
22085 \end_layout
22086
22087 \begin_layout Standard
22088 The XHTML \SpecialChar LyX
22089  outputs for an inset has the following form:
22090 \end_layout
22091
22092 \begin_layout LyX-Code
22093 <tag attr=
22094 \begin_inset Quotes erd
22095 \end_inset
22096
22097 value
22098 \begin_inset Quotes erd
22099 \end_inset
22100
22101 >
22102 \end_layout
22103
22104 \begin_layout LyX-Code
22105 <labeltag>Label</labeltag>
22106 \end_layout
22107
22108 \begin_layout LyX-Code
22109 <innertag attr=
22110 \begin_inset Quotes erd
22111 \end_inset
22112
22113 value
22114 \begin_inset Quotes erd
22115 \end_inset
22116
22117 >Contents of the inset.</innertag>
22118 \end_layout
22119
22120 \begin_layout LyX-Code
22121 </tag>
22122 \end_layout
22123
22124 \begin_layout Standard
22125 If the inset permits multiple paragraphs—that is, if 
22126 \begin_inset Flex Code
22127 status collapsed
22128
22129 \begin_layout Plain Layout
22130 MultiPar
22131 \end_layout
22132
22133 \end_inset
22134
22135  is true—then the contents of the inset will itself be output as paragraphs
22136  formatted according to the styles used for those paragraphs (standard,
22137  quote, and the like).
22138  The label tag is of course omitted if the paragraph does not have a label
22139  and, at present, is always 
22140 \begin_inset Flex Code
22141 status collapsed
22142
22143 \begin_layout Plain Layout
22144 span
22145 \end_layout
22146
22147 \end_inset
22148
22149 .
22150  The inner tag is optional and, by default, does not appear.
22151 \end_layout
22152
22153 \begin_layout Standard
22154 The specific tags and attributes output for each inset can be controlled
22155  by means of the following layout tags.
22156 \end_layout
22157
22158 \begin_layout Description
22159 \begin_inset Flex Code
22160 status collapsed
22161
22162 \begin_layout Plain Layout
22163 HTMLAttr
22164 \end_layout
22165
22166 \end_inset
22167
22168  [
22169 \begin_inset Flex Code
22170 status collapsed
22171
22172 \begin_layout Plain Layout
22173 string
22174 \end_layout
22175
22176 \end_inset
22177
22178 ] Specifies attribute information to be output with the main tag.
22179  For example, 
22180 \begin_inset Quotes eld
22181 \end_inset
22182
22183
22184 \begin_inset Flex Code
22185 status collapsed
22186
22187 \begin_layout Plain Layout
22188 class=`myinset' onclick=`\SpecialChar ldots
22189 '
22190 \end_layout
22191
22192 \end_inset
22193
22194
22195 \begin_inset Quotes erd
22196 \end_inset
22197
22198 .
22199  By default, \SpecialChar LyX
22200  will output 
22201 \begin_inset Quotes eld
22202 \end_inset
22203
22204
22205 \begin_inset Flex Code
22206 status collapsed
22207
22208 \begin_layout Plain Layout
22209 class=`insetname'
22210 \end_layout
22211
22212 \end_inset
22213
22214
22215 \begin_inset Quotes erd
22216 \end_inset
22217
22218 , where 
22219 \begin_inset Flex Code
22220 status collapsed
22221
22222 \begin_layout Plain Layout
22223 insetname
22224 \end_layout
22225
22226 \end_inset
22227
22228  is the \SpecialChar LyX
22229  name of the inset, made lowercase and with non-alphanumeric characters
22230  converted to underscores, for example: footnote.
22231 \end_layout
22232
22233 \begin_layout Description
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238 HTMLForceCSS
22239 \end_layout
22240
22241 \end_inset
22242
22243  [
22244 \begin_inset Flex Code
22245 status collapsed
22246
22247 \begin_layout Plain Layout
22248
22249 \emph on
22250 0
22251 \emph default
22252 ,1
22253 \end_layout
22254
22255 \end_inset
22256
22257 ] Whether to output the default CSS information \SpecialChar LyX
22258  generates for this layout,
22259  even if additional information is explicitly provided via 
22260 \begin_inset Flex Code
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264 HTMLStyle
22265 \end_layout
22266
22267 \end_inset
22268
22269 .
22270  Setting this to 
22271 \begin_inset Flex Code
22272 status collapsed
22273
22274 \begin_layout Plain Layout
22275 1
22276 \end_layout
22277
22278 \end_inset
22279
22280  allows you to alter or augment the generated CSS, rather than to override
22281  it completely.
22282  Default is 0.
22283 \end_layout
22284
22285 \begin_layout Description
22286 \begin_inset Flex Code
22287 status collapsed
22288
22289 \begin_layout Plain Layout
22290 HTMLInnerAttr
22291 \end_layout
22292
22293 \end_inset
22294
22295  [
22296 \begin_inset Flex Code
22297 status collapsed
22298
22299 \begin_layout Plain Layout
22300 string
22301 \end_layout
22302
22303 \end_inset
22304
22305 ] Attributes for the inner tag.
22306  Defaults to 
22307 \begin_inset Quotes eld
22308 \end_inset
22309
22310
22311 \begin_inset Flex Code
22312 status collapsed
22313
22314 \begin_layout Plain Layout
22315 class=`insetname_inner'
22316 \end_layout
22317
22318 \end_inset
22319
22320
22321 \begin_inset Quotes erd
22322 \end_inset
22323
22324 .
22325 \end_layout
22326
22327 \begin_layout Description
22328 \begin_inset Flex Code
22329 status collapsed
22330
22331 \begin_layout Plain Layout
22332 HTMLInnerTag
22333 \end_layout
22334
22335 \end_inset
22336
22337  [
22338 \begin_inset Flex Code
22339 status collapsed
22340
22341 \begin_layout Plain Layout
22342 string
22343 \end_layout
22344
22345 \end_inset
22346
22347 ] The inner tag, replacing 
22348 \begin_inset Flex Code
22349 status collapsed
22350
22351 \begin_layout Plain Layout
22352 innertag
22353 \end_layout
22354
22355 \end_inset
22356
22357  in the examples above.
22358  By default, there is none.
22359 \end_layout
22360
22361 \begin_layout Description
22362 \begin_inset Flex Code
22363 status collapsed
22364
22365 \begin_layout Plain Layout
22366 HTMLIsBlock
22367 \end_layout
22368
22369 \end_inset
22370
22371  [
22372 \begin_inset Flex Code
22373 status collapsed
22374
22375 \begin_layout Plain Layout
22376 0,
22377 \emph on
22378 1
22379 \end_layout
22380
22381 \end_inset
22382
22383 ] Whether this inset represents a standalone block of text (such as a footnote)
22384  or instead represents material that is included in the surrounding text
22385  (such as a branch).
22386  Defaults to 1.
22387 \end_layout
22388
22389 \begin_layout Description
22390 \begin_inset Flex Code
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 HTMLLabel
22395 \end_layout
22396
22397 \end_inset
22398
22399  [
22400 \begin_inset Flex Code
22401 status collapsed
22402
22403 \begin_layout Plain Layout
22404 string
22405 \end_layout
22406
22407 \end_inset
22408
22409 ] A label for this inset, possibly including a reference to a counter.
22410  For example, for footnote, it might be: 
22411 \begin_inset Flex Code
22412 status collapsed
22413
22414 \begin_layout Plain Layout
22415
22416 \backslash
22417 arabic{footnote}
22418 \end_layout
22419
22420 \end_inset
22421
22422 .
22423  This is optional, and there is no default.
22424 \end_layout
22425
22426 \begin_layout Description
22427 \begin_inset Flex Code
22428 status collapsed
22429
22430 \begin_layout Plain Layout
22431 HTMLPreamble
22432 \end_layout
22433
22434 \end_inset
22435
22436  Information to be output in the 
22437 \begin_inset Flex Code
22438 status collapsed
22439
22440 \begin_layout Plain Layout
22441 <head>
22442 \end_layout
22443
22444 \end_inset
22445
22446  section when this style is used.
22447  This might, for example, be used to include a 
22448 \begin_inset Flex Code
22449 status collapsed
22450
22451 \begin_layout Plain Layout
22452 <script>
22453 \end_layout
22454
22455 \end_inset
22456
22457  block defining an 
22458 \begin_inset Flex Code
22459 status collapsed
22460
22461 \begin_layout Plain Layout
22462 onclick
22463 \end_layout
22464
22465 \end_inset
22466
22467  handler.
22468 \end_layout
22469
22470 \begin_layout Description
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 HTMLStyle
22476 \end_layout
22477
22478 \end_inset
22479
22480  CSS style information to be included when this style is used.
22481  Note that this will automatically be wrapped in a layout-generated 
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 <style>
22487 \end_layout
22488
22489 \end_inset
22490
22491  block, so only the CSS itself need be included.
22492 \end_layout
22493
22494 \begin_layout Description
22495 \begin_inset Flex Code
22496 status collapsed
22497
22498 \begin_layout Plain Layout
22499 HTMLTag
22500 \end_layout
22501
22502 \end_inset
22503
22504  [
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 string
22510 \end_layout
22511
22512 \end_inset
22513
22514 ] The tag to be used for the main label, replacing 
22515 \begin_inset Flex Code
22516 status collapsed
22517
22518 \begin_layout Plain Layout
22519 tag
22520 \end_layout
22521
22522 \end_inset
22523
22524  in the examples above.
22525  The default depends upon the setting of 
22526 \begin_inset Flex Code
22527 status collapsed
22528
22529 \begin_layout Plain Layout
22530 MultiPar
22531 \end_layout
22532
22533 \end_inset
22534
22535 : If 
22536 \begin_inset Flex Code
22537 status collapsed
22538
22539 \begin_layout Plain Layout
22540 MultiPar
22541 \end_layout
22542
22543 \end_inset
22544
22545  is true, the default is 
22546 \begin_inset Flex Code
22547 status collapsed
22548
22549 \begin_layout Plain Layout
22550 div
22551 \end_layout
22552
22553 \end_inset
22554
22555 ; if it is false, the default is 
22556 \begin_inset Flex Code
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 span
22561 \end_layout
22562
22563 \end_inset
22564
22565 .
22566 \end_layout
22567
22568 \begin_layout Subsection
22569 Float XHTML
22570 \end_layout
22571
22572 \begin_layout Standard
22573 The XHTML output for floats too can be controlled by layout information.
22574  The output has the following form:
22575 \end_layout
22576
22577 \begin_layout LyX-Code
22578 <tag attr=
22579 \begin_inset Quotes erd
22580 \end_inset
22581
22582 value
22583 \begin_inset Quotes erd
22584 \end_inset
22585
22586 >
22587 \end_layout
22588
22589 \begin_layout LyX-Code
22590 Contents of the float.
22591 \end_layout
22592
22593 \begin_layout LyX-Code
22594 </tag>
22595 \end_layout
22596
22597 \begin_layout Standard
22598 The caption, if there is one, is a separate inset and will be output as
22599  such.
22600  Its appearance can be controlled via the InsetLayout for caption insets.
22601  
22602 \end_layout
22603
22604 \begin_layout Description
22605 \begin_inset Flex Code
22606 status collapsed
22607
22608 \begin_layout Plain Layout
22609 HTMLAttr
22610 \end_layout
22611
22612 \end_inset
22613
22614  [
22615 \begin_inset Flex Code
22616 status collapsed
22617
22618 \begin_layout Plain Layout
22619 string
22620 \end_layout
22621
22622 \end_inset
22623
22624 ] Specifies attribute information to be output with the main tag.
22625  For example, 
22626 \begin_inset Quotes eld
22627 \end_inset
22628
22629
22630 \begin_inset Flex Code
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634 class=`myfloat' onclick=`\SpecialChar ldots
22635 '
22636 \end_layout
22637
22638 \end_inset
22639
22640
22641 \begin_inset Quotes erd
22642 \end_inset
22643
22644 .
22645  By default, \SpecialChar LyX
22646  will output 
22647 \begin_inset Quotes eld
22648 \end_inset
22649
22650
22651 \begin_inset Flex Code
22652 status collapsed
22653
22654 \begin_layout Plain Layout
22655 class=`float float-floattype'
22656 \end_layout
22657
22658 \end_inset
22659
22660
22661 \begin_inset Quotes erd
22662 \end_inset
22663
22664 , where 
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 floattype
22670 \end_layout
22671
22672 \end_inset
22673
22674  is \SpecialChar LyX
22675 's name for this type of float, as determined by the float declaration
22676  (see 
22677 \begin_inset CommandInset ref
22678 LatexCommand ref
22679 reference "subsec:Floats"
22680
22681 \end_inset
22682
22683 ), though made lowercase and with non-alphanumeric characters converted
22684  to underscores, for example: float-table.
22685 \end_layout
22686
22687 \begin_layout Description
22688 \begin_inset Flex Code
22689 status collapsed
22690
22691 \begin_layout Plain Layout
22692 HTMLStyle
22693 \end_layout
22694
22695 \end_inset
22696
22697  CSS style information to be included when this float is used.
22698  Note that this will automatically be wrapped in a layout-generated 
22699 \begin_inset Flex Code
22700 status collapsed
22701
22702 \begin_layout Plain Layout
22703 <style>
22704 \end_layout
22705
22706 \end_inset
22707
22708  block, so only the CSS itself need be included.
22709 \end_layout
22710
22711 \begin_layout Description
22712 \begin_inset Flex Code
22713 status collapsed
22714
22715 \begin_layout Plain Layout
22716 HTMLTag
22717 \end_layout
22718
22719 \end_inset
22720
22721  [
22722 \begin_inset Flex Code
22723 status collapsed
22724
22725 \begin_layout Plain Layout
22726 string
22727 \end_layout
22728
22729 \end_inset
22730
22731 ] The tag to be used for this float, replacing 
22732 \begin_inset Quotes eld
22733 \end_inset
22734
22735
22736 \begin_inset Flex Code
22737 status collapsed
22738
22739 \begin_layout Plain Layout
22740 tag
22741 \end_layout
22742
22743 \end_inset
22744
22745
22746 \begin_inset Quotes erd
22747 \end_inset
22748
22749  in the example above.
22750  The default is 
22751 \begin_inset Flex Code
22752 status collapsed
22753
22754 \begin_layout Plain Layout
22755 div
22756 \end_layout
22757
22758 \end_inset
22759
22760  and will rarely need changing.
22761 \end_layout
22762
22763 \begin_layout Subsection
22764 Bibliography formatting
22765 \end_layout
22766
22767 \begin_layout Standard
22768 The bibliography can be formatted using 
22769 \begin_inset Flex Code
22770 status collapsed
22771
22772 \begin_layout Plain Layout
22773 CiteFormat
22774 \end_layout
22775
22776 \end_inset
22777
22778  blocks.
22779  See 
22780 \begin_inset CommandInset ref
22781 LatexCommand ref
22782 reference "subsec:Citation-format-description"
22783
22784 \end_inset
22785
22786  for the details.
22787 \end_layout
22788
22789 \begin_layout Subsection
22790 \SpecialChar LyX
22791 -generated CSS
22792 \end_layout
22793
22794 \begin_layout Standard
22795 We have several times mentioned that \SpecialChar LyX
22796  will generate default CSS style rules
22797  for both insets and paragraph styles, based upon the other layout information
22798  that is provided.
22799  In this section, we shall say a word about which layout information \SpecialChar LyX
22800  uses
22801  and how.
22802 \end_layout
22803
22804 \begin_layout Standard
22805 At present, \SpecialChar LyX
22806  auto-generates CSS only for font information, making use of
22807  the 
22808 \begin_inset Flex Code
22809 status collapsed
22810
22811 \begin_layout Plain Layout
22812 Family
22813 \end_layout
22814
22815 \end_inset
22816
22817
22818 \begin_inset Flex Code
22819 status collapsed
22820
22821 \begin_layout Plain Layout
22822 Series
22823 \end_layout
22824
22825 \end_inset
22826
22827
22828 \begin_inset Flex Code
22829 status collapsed
22830
22831 \begin_layout Plain Layout
22832 Shape
22833 \end_layout
22834
22835 \end_inset
22836
22837 , and 
22838 \begin_inset Flex Code
22839 status collapsed
22840
22841 \begin_layout Plain Layout
22842 Size
22843 \end_layout
22844
22845 \end_inset
22846
22847  specified in the 
22848 \begin_inset Flex Code
22849 status collapsed
22850
22851 \begin_layout Plain Layout
22852 Font
22853 \end_layout
22854
22855 \end_inset
22856
22857  declaration (see 
22858 \begin_inset CommandInset ref
22859 LatexCommand ref
22860 reference "subsec:Font-description"
22861
22862 \end_inset
22863
22864 ).
22865  The translation is mostly straightforward and obvious.
22866  For example, 
22867 \begin_inset Quotes eld
22868 \end_inset
22869
22870
22871 \begin_inset Flex Code
22872 status collapsed
22873
22874 \begin_layout Plain Layout
22875 Family Sans
22876 \end_layout
22877
22878 \end_inset
22879
22880
22881 \begin_inset Quotes erd
22882 \end_inset
22883
22884  becomes 
22885 \begin_inset Quotes eld
22886 \end_inset
22887
22888
22889 \begin_inset Flex Code
22890 status collapsed
22891
22892 \begin_layout Plain Layout
22893 font-family: sans-serif;
22894 \end_layout
22895
22896 \end_inset
22897
22898
22899 \begin_inset Quotes erd
22900 \end_inset
22901
22902 .
22903  The correspondence of \SpecialChar LyX
22904  sizes and CSS sizes is a little less obvious but
22905  nonetheless intuitive.
22906  See the 
22907 \begin_inset Flex Code
22908 status collapsed
22909
22910 \begin_layout Plain Layout
22911 getSizeCSS()
22912 \end_layout
22913
22914 \end_inset
22915
22916  function in 
22917 \begin_inset Flex URL
22918 status collapsed
22919
22920 \begin_layout Plain Layout
22921
22922 src/FontInfo.cpp
22923 \end_layout
22924
22925 \end_inset
22926
22927  for the details.
22928 \end_layout
22929
22930 \begin_layout Chapter
22931 Including External Material
22932 \begin_inset CommandInset label
22933 LatexCommand label
22934 name "chap:Including-External-Material"
22935
22936 \end_inset
22937
22938
22939 \end_layout
22940
22941 \begin_layout Standard
22942 \begin_inset Box Shadowbox
22943 position "t"
22944 hor_pos "c"
22945 has_inner_box 1
22946 inner_pos "t"
22947 use_parbox 0
22948 use_makebox 0
22949 width "100col%"
22950 special "none"
22951 height "1in"
22952 height_special "totalheight"
22953 thickness "0.4pt"
22954 separation "3pt"
22955 shadowsize "4pt"
22956 framecolor "black"
22957 backgroundcolor "none"
22958 status open
22959
22960 \begin_layout Plain Layout
22961 WARNING: This portion of the documentation has not been updated for some
22962  time.
22963  We certainly hope that it is still accurate, but there are no guarantees.
22964 \end_layout
22965
22966 \end_inset
22967
22968
22969 \end_layout
22970
22971 \begin_layout Standard
22972 The use of material from sources external to \SpecialChar LyX
22973  is covered in detail in the
22974  
22975 \emph on
22976 Embedded Objects
22977 \emph default
22978  manual.
22979  This part of the manual covers what needs to happen behind the scenes for
22980  new sorts of material to be included.
22981 \end_layout
22982
22983 \begin_layout Section
22984 How does it work?
22985 \end_layout
22986
22987 \begin_layout Standard
22988 The external material feature is based on the concept of a 
22989 \emph on
22990 template
22991 \emph default
22992 .
22993  A template is a specification of how \SpecialChar LyX
22994  should interface with a certain kind
22995  of material.
22996  As bundled, \SpecialChar LyX
22997  comes with predefined templates for Xfig figures, various
22998  raster format images, chess diagrams, and LilyPond music notation.
22999  You can check the actual list by using the menu 
23000 \begin_inset Flex MenuItem
23001 status collapsed
23002
23003 \begin_layout Plain Layout
23004 Insert\SpecialChar menuseparator
23005 File\SpecialChar menuseparator
23006 External Material
23007 \end_layout
23008
23009 \end_inset
23010
23011 .
23012  Furthermore, it is possible to roll your own template to support a specific
23013  kind of material.
23014  Later we'll describe in more detail what is involved, and hopefully you
23015  will submit all the templates you create so we can include them in a later
23016  \SpecialChar LyX
23017  version.
23018 \end_layout
23019
23020 \begin_layout Standard
23021 Another basic idea of the external material feature is to distinguish between
23022  the original file that serves as a base for final material and the produced
23023  file that is included in your exported or printed document.
23024  For example, consider the case of a figure produced with 
23025 \begin_inset Flex Code
23026 status collapsed
23027
23028 \begin_layout Plain Layout
23029 Xfig
23030 \end_layout
23031
23032 \end_inset
23033
23034 .
23035  The Xfig application itself works on an original file with the 
23036 \begin_inset Flex Code
23037 status collapsed
23038
23039 \begin_layout Plain Layout
23040 .fig
23041 \end_layout
23042
23043 \end_inset
23044
23045  extension.
23046  Within Xfig, you create and change your figure, and when you are done,
23047  you save the 
23048 \begin_inset Flex Code
23049 status collapsed
23050
23051 \begin_layout Plain Layout
23052 fig
23053 \end_layout
23054
23055 \end_inset
23056
23057 -file.
23058  When you want to include the figure in your document, you invoke 
23059 \begin_inset Flex Code
23060 status collapsed
23061
23062 \begin_layout Plain Layout
23063 transfig
23064 \end_layout
23065
23066 \end_inset
23067
23068  in order to create a PostScript file that can readily be included in your
23069  \SpecialChar LaTeX
23070  file.
23071  In this case, the 
23072 \begin_inset Flex Code
23073 status collapsed
23074
23075 \begin_layout Plain Layout
23076 .fig
23077 \end_layout
23078
23079 \end_inset
23080
23081  file is the original file, and the PostScript file is the produced file.
23082 \end_layout
23083
23084 \begin_layout Standard
23085 This distinction is important in order to allow updating of the material
23086  while you are in the process of writing the document.
23087  Furthermore, it provides us with the flexibility that is needed to support
23088  multiple export formats.
23089  For instance, in the case of a plain text file, it is not exactly an award-winn
23090 ing idea to include the figure as raw PostScript.
23091  Instead, you would either prefer to just include a reference to the figure
23092  or try to invoke some graphics to ASCII converter to make the final result
23093  look similar to the real graphics.
23094  The external material management allows you to do this, because it is parametri
23095 zed on the different export formats that \SpecialChar LyX
23096  supports.
23097 \end_layout
23098
23099 \begin_layout Standard
23100 Besides supporting the production of different products according to the
23101  exported format, it supports tight integration with editing and viewing
23102  applications.
23103  In the case of an Xfig figure, you are able to invoke Xfig on the original
23104  file with a single click from within the external material dialog in \SpecialChar LyX
23105 ,
23106  and also preview the produced PostScript file with Ghostview with another
23107  click.
23108  No more fiddling around with the command line and/or file browsers to locate
23109  and manipulate the original or produced files.
23110  In this way, you are finally able to take full advantage of the many different
23111  applications that are relevant to use when you write your documents, and
23112  ultimately be more productive.
23113 \end_layout
23114
23115 \begin_layout Section
23116 The external template configuration file
23117 \end_layout
23118
23119 \begin_layout Standard
23120 It is relatively easy to add custom external template definitions to \SpecialChar LyX
23121 .
23122  However, be aware that doing this in an careless manner most probably 
23123 \emph on
23124 will
23125 \emph default
23126  introduce an easily exploitable security hole.
23127  So before you do this, please read the discussion about security in 
23128 \begin_inset CommandInset ref
23129 LatexCommand ref
23130 reference "sec:Security-discussion"
23131
23132 \end_inset
23133
23134 .
23135 \end_layout
23136
23137 \begin_layout Standard
23138 Having said that, we encourage you to submit any interesting templates that
23139  you create.
23140  
23141 \end_layout
23142
23143 \begin_layout Standard
23144 The external templates are defined in the 
23145 \begin_inset Flex Code
23146 status collapsed
23147
23148 \begin_layout Plain Layout
23149
23150 \change_deleted -712698321 1437634905
23151 \SpecialChar LyX
23152
23153 \change_inserted -712698321 1437634906
23154 LyX
23155 \change_unchanged
23156 Dir/lib/external_templates
23157 \end_layout
23158
23159 \end_inset
23160
23161  file.
23162  You can place your own version in 
23163 \begin_inset Flex Code
23164 status collapsed
23165
23166 \begin_layout Plain Layout
23167 UserDir/external_templates
23168 \end_layout
23169
23170 \end_inset
23171
23172 .
23173 \end_layout
23174
23175 \begin_layout Standard
23176 A typical template looks like this:
23177 \end_layout
23178
23179 \begin_layout LyX-Code
23180 Template XFig
23181 \end_layout
23182
23183 \begin_layout LyX-Code
23184 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
23185 \end_layout
23186
23187 \begin_layout LyX-Code
23188 HelpText
23189 \end_layout
23190
23191 \begin_layout LyX-Code
23192 An XFig figure.
23193 \end_layout
23194
23195 \begin_layout LyX-Code
23196 HelpTextEnd
23197 \end_layout
23198
23199 \begin_layout LyX-Code
23200 InputFormat fig
23201 \end_layout
23202
23203 \begin_layout LyX-Code
23204 FileFilter "*.fig"
23205 \end_layout
23206
23207 \begin_layout LyX-Code
23208 AutomaticProduction true
23209 \end_layout
23210
23211 \begin_layout LyX-Code
23212 Transform Rotate
23213 \end_layout
23214
23215 \begin_layout LyX-Code
23216 Transform Resize
23217 \end_layout
23218
23219 \begin_layout LyX-Code
23220 Format \SpecialChar LaTeX
23221
23222 \end_layout
23223
23224 \begin_layout LyX-Code
23225 TransformCommand Rotate RotationLatexCommand
23226 \end_layout
23227
23228 \begin_layout LyX-Code
23229 TransformCommand Resize ResizeLatexCommand
23230 \end_layout
23231
23232 \begin_layout LyX-Code
23233 Product "$$RotateFront$$ResizeFront
23234 \end_layout
23235
23236 \begin_layout LyX-Code
23237          
23238 \backslash
23239
23240 \backslash
23241 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
23242 \end_layout
23243
23244 \begin_layout LyX-Code
23245          $$ResizeBack$$RotateBack"
23246 \end_layout
23247
23248 \begin_layout LyX-Code
23249 UpdateFormat pstex
23250 \end_layout
23251
23252 \begin_layout LyX-Code
23253 UpdateResult "$$AbsPath$$Basename.pstex_t"
23254 \end_layout
23255
23256 \begin_layout LyX-Code
23257 Requirement "graphicx"
23258 \end_layout
23259
23260 \begin_layout LyX-Code
23261 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
23262 \end_layout
23263
23264 \begin_layout LyX-Code
23265 ReferencedFile latex "$$AbsPath$$Basename.eps"
23266 \end_layout
23267
23268 \begin_layout LyX-Code
23269 ReferencedFile dvi "$$AbsPath$$Basename.eps"
23270 \end_layout
23271
23272 \begin_layout LyX-Code
23273 FormatEnd
23274 \end_layout
23275
23276 \begin_layout LyX-Code
23277 Format PDF\SpecialChar LaTeX
23278
23279 \end_layout
23280
23281 \begin_layout LyX-Code
23282 TransformCommand Rotate RotationLatexCommand
23283 \end_layout
23284
23285 \begin_layout LyX-Code
23286 TransformCommand Resize ResizeLatexCommand
23287 \end_layout
23288
23289 \begin_layout LyX-Code
23290 Product "$$RotateFront$$ResizeFront
23291 \end_layout
23292
23293 \begin_layout LyX-Code
23294          
23295 \backslash
23296
23297 \backslash
23298 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
23299 \end_layout
23300
23301 \begin_layout LyX-Code
23302          $$ResizeBack$$RotateBack"
23303 \end_layout
23304
23305 \begin_layout LyX-Code
23306 UpdateFormat pdftex
23307 \end_layout
23308
23309 \begin_layout LyX-Code
23310 UpdateResult "$$AbsPath$$Basename.pdftex_t"
23311 \end_layout
23312
23313 \begin_layout LyX-Code
23314 Requirement "graphicx"
23315 \end_layout
23316
23317 \begin_layout LyX-Code
23318 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
23319 \end_layout
23320
23321 \begin_layout LyX-Code
23322 ReferencedFile latex "$$AbsPath$$Basename.pdf"
23323 \end_layout
23324
23325 \begin_layout LyX-Code
23326 FormatEnd
23327 \end_layout
23328
23329 \begin_layout LyX-Code
23330 Format Ascii
23331 \end_layout
23332
23333 \begin_layout LyX-Code
23334 Product "$$Contents(
23335 \backslash
23336 "$$AbsPath$$Basename.asc
23337 \backslash
23338 ")"
23339 \end_layout
23340
23341 \begin_layout LyX-Code
23342 UpdateFormat asciixfig
23343 \end_layout
23344
23345 \begin_layout LyX-Code
23346 UpdateResult "$$AbsPath$$Basename.asc"
23347 \end_layout
23348
23349 \begin_layout LyX-Code
23350 FormatEnd
23351 \end_layout
23352
23353 \begin_layout LyX-Code
23354 Format DocBook
23355 \end_layout
23356
23357 \begin_layout LyX-Code
23358 Product "<graphic fileref=
23359 \backslash
23360 "$$AbsOrRelPathMaster$$Basename.eps
23361 \backslash
23362 ">
23363 \end_layout
23364
23365 \begin_layout LyX-Code
23366          </graphic>"
23367 \end_layout
23368
23369 \begin_layout LyX-Code
23370 UpdateFormat eps
23371 \end_layout
23372
23373 \begin_layout LyX-Code
23374 UpdateResult "$$AbsPath$$Basename.eps"
23375 \end_layout
23376
23377 \begin_layout LyX-Code
23378 ReferencedFile docbook "$$AbsPath$$Basename.eps"
23379 \end_layout
23380
23381 \begin_layout LyX-Code
23382 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
23383 \end_layout
23384
23385 \begin_layout LyX-Code
23386 FormatEnd
23387 \end_layout
23388
23389 \begin_layout LyX-Code
23390 Product "[XFig: $$FName]"
23391 \end_layout
23392
23393 \begin_layout LyX-Code
23394 FormatEnd
23395 \end_layout
23396
23397 \begin_layout LyX-Code
23398 TemplateEnd
23399 \end_layout
23400
23401 \begin_layout Standard
23402 As you can see, the template is enclosed in 
23403 \begin_inset Flex Code
23404 status collapsed
23405
23406 \begin_layout Plain Layout
23407 Template
23408 \end_layout
23409
23410 \end_inset
23411
23412  \SpecialChar ldots
23413  
23414 \begin_inset Flex Code
23415 status collapsed
23416
23417 \begin_layout Plain Layout
23418 TemplateEnd
23419 \end_layout
23420
23421 \end_inset
23422
23423 .
23424  It contains a header specifying some general settings and, for each supported
23425  primary document file format, a section 
23426 \begin_inset Flex Code
23427 status collapsed
23428
23429 \begin_layout Plain Layout
23430 Format
23431 \end_layout
23432
23433 \end_inset
23434
23435  \SpecialChar ldots
23436  
23437 \begin_inset Flex Code
23438 status collapsed
23439
23440 \begin_layout Plain Layout
23441 FormatEnd
23442 \end_layout
23443
23444 \end_inset
23445
23446 .
23447 \end_layout
23448
23449 \begin_layout Subsection
23450 The template header
23451 \end_layout
23452
23453 \begin_layout Description
23454 \begin_inset Flex Code
23455 status collapsed
23456
23457 \begin_layout Plain Layout
23458 AutomaticProduction
23459 \begin_inset space ~
23460 \end_inset
23461
23462 true|false
23463 \end_layout
23464
23465 \end_inset
23466
23467  Whether the file represented by the template must be generated by \SpecialChar LyX
23468 .
23469  This command must occur exactly once.
23470 \end_layout
23471
23472 \begin_layout Description
23473 \begin_inset Flex Code
23474 status collapsed
23475
23476 \begin_layout Plain Layout
23477 FileFilter
23478 \begin_inset space ~
23479 \end_inset
23480
23481 <pattern>
23482 \end_layout
23483
23484 \end_inset
23485
23486  A glob pattern that is used in the file dialog to filter out the desired
23487  files.
23488  If there is more than one possible file extension (e.
23489 \begin_inset space \thinspace{}
23490 \end_inset
23491
23492 g.
23493 \begin_inset space \space{}
23494 \end_inset
23495
23496 tgif has 
23497 \begin_inset Flex Code
23498 status collapsed
23499
23500 \begin_layout Plain Layout
23501 .obj
23502 \end_layout
23503
23504 \end_inset
23505
23506  and 
23507 \begin_inset Flex Code
23508 status collapsed
23509
23510 \begin_layout Plain Layout
23511 .tgo
23512 \end_layout
23513
23514 \end_inset
23515
23516 ), use something like 
23517 \begin_inset Flex Code
23518 status collapsed
23519
23520 \begin_layout Plain Layout
23521 "*.{obj,tgo}"
23522 \end_layout
23523
23524 \end_inset
23525
23526 .
23527  This command must occur exactly once.
23528 \end_layout
23529
23530 \begin_layout Description
23531 \begin_inset Flex Code
23532 status collapsed
23533
23534 \begin_layout Plain Layout
23535 GuiName
23536 \begin_inset space ~
23537 \end_inset
23538
23539 <guiname>
23540 \end_layout
23541
23542 \end_inset
23543
23544  The text that is displayed on the button.
23545  This command must occur exactly once.
23546 \end_layout
23547
23548 \begin_layout Description
23549 \begin_inset Flex Code
23550 status collapsed
23551
23552 \begin_layout Plain Layout
23553 HelpText
23554 \begin_inset space ~
23555 \end_inset
23556
23557 <text>
23558 \begin_inset space ~
23559 \end_inset
23560
23561 HelpTextEnd
23562 \end_layout
23563
23564 \end_inset
23565
23566  The help text that is used in the External dialog.
23567  Provide enough information to explain to the user just what the template
23568  can provide him with.
23569  This command must occur exactly once.
23570 \end_layout
23571
23572 \begin_layout Description
23573 \begin_inset Flex Code
23574 status collapsed
23575
23576 \begin_layout Plain Layout
23577 InputFormat
23578 \begin_inset space ~
23579 \end_inset
23580
23581 <format>
23582 \end_layout
23583
23584 \end_inset
23585
23586  The file format of the original file.
23587  This must be the name of a format that is known to \SpecialChar LyX
23588  (see 
23589 \begin_inset CommandInset ref
23590 LatexCommand ref
23591 reference "sec:Formats"
23592
23593 \end_inset
23594
23595 ).
23596  Use 
23597 \begin_inset Quotes eld
23598 \end_inset
23599
23600
23601 \begin_inset Flex Code
23602 status collapsed
23603
23604 \begin_layout Plain Layout
23605 *
23606 \end_layout
23607
23608 \end_inset
23609
23610
23611 \begin_inset Quotes erd
23612 \end_inset
23613
23614  if the template can handle original files of more than one format.
23615  \SpecialChar LyX
23616  will attempt to interrogate the file itself in order to deduce its format
23617  in this case.
23618  This command must occur exactly once.
23619 \end_layout
23620
23621 \begin_layout Description
23622 \begin_inset Flex Code
23623 status collapsed
23624
23625 \begin_layout Plain Layout
23626 Template
23627 \begin_inset space ~
23628 \end_inset
23629
23630 <id>
23631 \end_layout
23632
23633 \end_inset
23634
23635  A unique name for the template.
23636  It must not contain substitution macros (see below).
23637 \end_layout
23638
23639 \begin_layout Description
23640 \begin_inset Flex Code
23641 status collapsed
23642
23643 \begin_layout Plain Layout
23644 Transform
23645 \begin_inset space ~
23646 \end_inset
23647
23648 Rotate|Resize|Clip|Extra
23649 \end_layout
23650
23651 \end_inset
23652
23653  This command specifies which transformations are supported by this template.
23654  It may occur zero or more times.
23655  This command enables the corresponding tabs in the external dialog.
23656  Each 
23657 \begin_inset Flex Code
23658 status collapsed
23659
23660 \begin_layout Plain Layout
23661 Transform
23662 \end_layout
23663
23664 \end_inset
23665
23666  command must have either a corresponding 
23667 \begin_inset Flex Code
23668 status collapsed
23669
23670 \begin_layout Plain Layout
23671 TransformCommand
23672 \end_layout
23673
23674 \end_inset
23675
23676  or a 
23677 \begin_inset Flex Code
23678 status collapsed
23679
23680 \begin_layout Plain Layout
23681 TransformOption
23682 \end_layout
23683
23684 \end_inset
23685
23686  command in the 
23687 \begin_inset Flex Code
23688 status collapsed
23689
23690 \begin_layout Plain Layout
23691 Format
23692 \end_layout
23693
23694 \end_inset
23695
23696  section.
23697  Otherwise the transformation will not be supported by that format.
23698 \end_layout
23699
23700 \begin_layout Subsection
23701 The Format section
23702 \end_layout
23703
23704 \begin_layout Description
23705 \begin_inset Flex Code
23706 status collapsed
23707
23708 \begin_layout Plain Layout
23709 Format
23710 \begin_inset space ~
23711 \end_inset
23712
23713
23714 \change_inserted -195340706 1437418821
23715 L
23716 \change_inserted -712698321 1437634430
23717 a
23718 \change_deleted -712698321 1437634429
23719 A
23720 \change_inserted -195340706 1437418821
23721 TeX
23722 \change_deleted -195340706 1437418827
23723 \SpecialChar LaTeX
23724
23725 \change_unchanged
23726 |PDF
23727 \change_inserted -195340706 1437418856
23728 L
23729 \change_inserted -712698321 1437634432
23730 a
23731 \change_deleted -712698321 1437634432
23732 A
23733 \change_inserted -195340706 1437418856
23734 TeX
23735 \change_deleted -195340706 1437418857
23736 \SpecialChar LaTeX
23737
23738 \change_unchanged
23739 |PlainText|DocBook
23740 \end_layout
23741
23742 \end_inset
23743
23744  The primary document file format that this format definition is for.
23745  Not every template has a sensible representation in all document file formats.
23746  Please define nevertheless a 
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 for all templates.
23757  Use a dummy text when no representation is available.
23758  Then you can at least see a reference to the external material in the exported
23759  document.
23760 \end_layout
23761
23762 \begin_layout Description
23763 \begin_inset Flex Code
23764 status collapsed
23765
23766 \begin_layout Plain Layout
23767 Option
23768 \begin_inset space ~
23769 \end_inset
23770
23771 <name>
23772 \begin_inset space ~
23773 \end_inset
23774
23775 <value>
23776 \end_layout
23777
23778 \end_inset
23779
23780  This command defines an additional macro 
23781 \begin_inset Flex Code
23782 status collapsed
23783
23784 \begin_layout Plain Layout
23785 $$<name>
23786 \end_layout
23787
23788 \end_inset
23789
23790  for substitution in 
23791 \begin_inset Flex Code
23792 status collapsed
23793
23794 \begin_layout Plain Layout
23795 Product
23796 \end_layout
23797
23798 \end_inset
23799
23800 .
23801  
23802 \begin_inset Flex Code
23803 status collapsed
23804
23805 \begin_layout Plain Layout
23806 <value>
23807 \end_layout
23808
23809 \end_inset
23810
23811  itself may contain substitution macros.
23812  The advantage over using 
23813 \begin_inset Flex Code
23814 status collapsed
23815
23816 \begin_layout Plain Layout
23817 <value>
23818 \end_layout
23819
23820 \end_inset
23821
23822  directly in 
23823 \begin_inset Flex Code
23824 status collapsed
23825
23826 \begin_layout Plain Layout
23827 Product
23828 \end_layout
23829
23830 \end_inset
23831
23832  is that the substituted value of 
23833 \begin_inset Flex Code
23834 status collapsed
23835
23836 \begin_layout Plain Layout
23837 $$<name>
23838 \end_layout
23839
23840 \end_inset
23841
23842  is sanitized so that it is a valid optional argument in the document format.
23843  This command may occur zero or more times.
23844 \end_layout
23845
23846 \begin_layout Description
23847 \begin_inset Flex Code
23848 status collapsed
23849
23850 \begin_layout Plain Layout
23851 Product
23852 \begin_inset space ~
23853 \end_inset
23854
23855 <text>
23856 \end_layout
23857
23858 \end_inset
23859
23860  The text that is inserted in the exported document.
23861  This is actually the most important command and can be quite complex.
23862  This command must occur exactly once.
23863 \end_layout
23864
23865 \begin_layout Description
23866 \begin_inset Flex Code
23867 status collapsed
23868
23869 \begin_layout Plain Layout
23870 Preamble
23871 \begin_inset space ~
23872 \end_inset
23873
23874 <name>
23875 \end_layout
23876
23877 \end_inset
23878
23879  This command specifies a preamble snippet that will be included in the
23880  \SpecialChar LaTeX
23881  preamble.
23882  It has to be defined using 
23883 \begin_inset Flex Code
23884 status collapsed
23885
23886 \begin_layout Plain Layout
23887 PreambleDef
23888 \end_layout
23889
23890 \end_inset
23891
23892  \SpecialChar ldots
23893  
23894 \begin_inset Flex Code
23895 status collapsed
23896
23897 \begin_layout Plain Layout
23898 PreambleDefEnd
23899 \end_layout
23900
23901 \end_inset
23902
23903 .
23904  This command may occur zero or more times.
23905 \end_layout
23906
23907 \begin_layout Description
23908 \begin_inset Flex Code
23909 status collapsed
23910
23911 \begin_layout Plain Layout
23912 ReferencedFile
23913 \begin_inset space ~
23914 \end_inset
23915
23916 <format>
23917 \begin_inset space ~
23918 \end_inset
23919
23920 <filename>
23921 \end_layout
23922
23923 \end_inset
23924
23925  This command denotes files that are created by the conversion process and
23926  are needed for a particular export format.
23927  If the filename is relative, it is interpreted relative to the master document.
23928  This command may be given zero or more times.
23929 \end_layout
23930
23931 \begin_layout Description
23932 \begin_inset Flex Code
23933 status collapsed
23934
23935 \begin_layout Plain Layout
23936 Requirement
23937 \begin_inset space ~
23938 \end_inset
23939
23940 <package>
23941 \end_layout
23942
23943 \end_inset
23944
23945  The name of a required \SpecialChar LaTeX
23946  package.
23947  The package is included via 
23948 \begin_inset Flex Code
23949 status collapsed
23950
23951 \begin_layout Plain Layout
23952
23953 \backslash
23954 usepackage{}
23955 \end_layout
23956
23957 \end_inset
23958
23959  in the \SpecialChar LaTeX
23960  preamble.
23961  This command may occur zero or more times.
23962 \end_layout
23963
23964 \begin_layout Description
23965 \begin_inset Flex Code
23966 status collapsed
23967
23968 \begin_layout Plain Layout
23969 TransformCommand
23970 \begin_inset space ~
23971 \end_inset
23972
23973 Rotate
23974 \begin_inset space ~
23975 \end_inset
23976
23977 RotationLatexCommand
23978 \end_layout
23979
23980 \end_inset
23981
23982  This command specifies that the built in \SpecialChar LaTeX
23983  command should be used for rotation.
23984  This command may occur once or not at all.
23985 \end_layout
23986
23987 \begin_layout Description
23988 \begin_inset Flex Code
23989 status collapsed
23990
23991 \begin_layout Plain Layout
23992 TransformCommand
23993 \begin_inset space ~
23994 \end_inset
23995
23996 Resize
23997 \begin_inset space ~
23998 \end_inset
23999
24000 ResizeLatexCommand
24001 \end_layout
24002
24003 \end_inset
24004
24005  This command specifies that the built in \SpecialChar LaTeX
24006  command should be used for resizing.
24007  This command may occur once or not at all.
24008 \end_layout
24009
24010 \begin_layout Description
24011 \begin_inset Flex Code
24012 status collapsed
24013
24014 \begin_layout Plain Layout
24015 TransformOption
24016 \begin_inset space ~
24017 \end_inset
24018
24019 Rotate
24020 \begin_inset space ~
24021 \end_inset
24022
24023 RotationLatexOption
24024 \end_layout
24025
24026 \end_inset
24027
24028  This command specifies that rotation is done via an optional argument.
24029  This command may occur once or not at all.
24030 \end_layout
24031
24032 \begin_layout Description
24033 \begin_inset Flex Code
24034 status collapsed
24035
24036 \begin_layout Plain Layout
24037 TransformOption
24038 \begin_inset space ~
24039 \end_inset
24040
24041 Resize
24042 \begin_inset space ~
24043 \end_inset
24044
24045 ResizeLatexOption
24046 \end_layout
24047
24048 \end_inset
24049
24050  This command specifies that resizing is done via an optional argument.
24051  This command may occur once or not at all.
24052 \end_layout
24053
24054 \begin_layout Description
24055 \begin_inset Flex Code
24056 status collapsed
24057
24058 \begin_layout Plain Layout
24059 TransformOption
24060 \begin_inset space ~
24061 \end_inset
24062
24063 Clip
24064 \begin_inset space ~
24065 \end_inset
24066
24067 ClipLatexOption
24068 \end_layout
24069
24070 \end_inset
24071
24072  This command specifies that clipping is done via an optional argument.
24073  This command may occur once or not at all.
24074 \end_layout
24075
24076 \begin_layout Description
24077 \begin_inset Flex Code
24078 status collapsed
24079
24080 \begin_layout Plain Layout
24081 TransformOption
24082 \begin_inset space ~
24083 \end_inset
24084
24085 Extra
24086 \begin_inset space ~
24087 \end_inset
24088
24089 ExtraLatexOption
24090 \end_layout
24091
24092 \end_inset
24093
24094  This command specifies that an extra optional argument is used.
24095  This command may occur once or not at all.
24096 \end_layout
24097
24098 \begin_layout Description
24099 \begin_inset Flex Code
24100 status collapsed
24101
24102 \begin_layout Plain Layout
24103 UpdateFormat
24104 \begin_inset space ~
24105 \end_inset
24106
24107 <format>
24108 \end_layout
24109
24110 \end_inset
24111
24112  The file format of the converted file.
24113  This must be the name of a format that is known to \SpecialChar LyX
24114  (see the 
24115 \begin_inset Flex MenuItem
24116 status collapsed
24117
24118 \begin_layout Plain Layout
24119 Tools\SpecialChar menuseparator
24120 Preferences\SpecialChar menuseparator
24121 File Handling\SpecialChar menuseparator
24122 File Format
24123 \end_layout
24124
24125 \end_inset
24126
24127  dialog).
24128  This command must occur exactly once.
24129  If the resulting file format is PDF, you need to specify the format 
24130 \begin_inset Flex Code
24131 status collapsed
24132
24133 \begin_layout Plain Layout
24134 pdf6
24135 \end_layout
24136
24137 \end_inset
24138
24139 .
24140  This is the PDF format used for including graphics.
24141  The other defined PDF formats are for document export.
24142 \end_layout
24143
24144 \begin_layout Description
24145 \begin_inset Flex Code
24146 status collapsed
24147
24148 \begin_layout Plain Layout
24149 UpdateResult
24150 \begin_inset space ~
24151 \end_inset
24152
24153 <filename>
24154 \end_layout
24155
24156 \end_inset
24157
24158  The file name of the converted file.
24159  The file name must be absolute.
24160  This command must occur exactly once.
24161 \end_layout
24162
24163 \begin_layout Subsection
24164 Preamble definitions
24165 \end_layout
24166
24167 \begin_layout Standard
24168 The external template configuration file may contain additional preamble
24169  definitions enclosed by 
24170 \begin_inset Flex Code
24171 status collapsed
24172
24173 \begin_layout Plain Layout
24174 PreambleDef
24175 \end_layout
24176
24177 \end_inset
24178
24179  \SpecialChar ldots
24180  
24181 \begin_inset Flex Code
24182 status collapsed
24183
24184 \begin_layout Plain Layout
24185 PreambleDefEnd
24186 \end_layout
24187
24188 \end_inset
24189
24190 .
24191  They can be used by the templates in the 
24192 \begin_inset Flex Code
24193 status collapsed
24194
24195 \begin_layout Plain Layout
24196 Format
24197 \end_layout
24198
24199 \end_inset
24200
24201  section.
24202 \end_layout
24203
24204 \begin_layout Section
24205 The substitution mechanism
24206 \end_layout
24207
24208 \begin_layout Standard
24209 When the external material facility invokes an external program, it is done
24210  on the basis of a command defined in the template configuration file.
24211  These commands can contain various macros that are expanded before execution.
24212  Execution always take place in the directory of the containing document.
24213 \end_layout
24214
24215 \begin_layout Standard
24216 Also, whenever external material is to be displayed, the name will be produced
24217  by the substitution mechanism, and most other commands in the template
24218  definition support substitution as well.
24219 \end_layout
24220
24221 \begin_layout Standard
24222 The available macros are the following:
24223 \end_layout
24224
24225 \begin_layout Description
24226 \begin_inset Flex Code
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230 $$AbsOrRelPathMaster
24231 \end_layout
24232
24233 \end_inset
24234
24235  The file path, absolute or relative to the master \SpecialChar LyX
24236  document.
24237 \end_layout
24238
24239 \begin_layout Description
24240 \begin_inset Flex Code
24241 status collapsed
24242
24243 \begin_layout Plain Layout
24244 $$AbsOrRelPathParent
24245 \end_layout
24246
24247 \end_inset
24248
24249  The file path, absolute or relative to the \SpecialChar LyX
24250  document.
24251 \end_layout
24252
24253 \begin_layout Description
24254 \begin_inset Flex Code
24255 status collapsed
24256
24257 \begin_layout Plain Layout
24258 $$AbsPath
24259 \end_layout
24260
24261 \end_inset
24262
24263  The absolute file path.
24264 \end_layout
24265
24266 \begin_layout Description
24267 \begin_inset Flex Code
24268 status collapsed
24269
24270 \begin_layout Plain Layout
24271 $$Basename
24272 \end_layout
24273
24274 \end_inset
24275
24276  The filename without path and without the extension.
24277 \end_layout
24278
24279 \begin_layout Description
24280 \begin_inset Flex Code
24281 status collapsed
24282
24283 \begin_layout Plain Layout
24284 $$Contents(
24285 \begin_inset Quotes eld
24286 \end_inset
24287
24288 filename.ext
24289 \begin_inset Quotes erd
24290 \end_inset
24291
24292 )
24293 \end_layout
24294
24295 \end_inset
24296
24297  This macro will expand to the contents of the file with the name 
24298 \begin_inset Flex Code
24299 status collapsed
24300
24301 \begin_layout Plain Layout
24302 filename.ext
24303 \end_layout
24304
24305 \end_inset
24306
24307 .
24308 \end_layout
24309
24310 \begin_layout Description
24311 \begin_inset Flex Code
24312 status collapsed
24313
24314 \begin_layout Plain Layout
24315 $$Extension
24316 \end_layout
24317
24318 \end_inset
24319
24320  The file extension (including the dot).
24321 \change_inserted -195340706 1437418878
24322
24323 \end_layout
24324
24325 \begin_layout Description
24326
24327 \change_inserted -195340706 1437418878
24328 \begin_inset Flex Code
24329 status collapsed
24330
24331 \begin_layout Plain Layout
24332
24333 \change_inserted -195340706 1437418878
24334 $$pngOrjpg
24335 \end_layout
24336
24337 \end_inset
24338
24339  This will be the string 
24340 \begin_inset Quotes eld
24341 \end_inset
24342
24343 jpg
24344 \begin_inset Quotes erd
24345 \end_inset
24346
24347  if the file is in JPEG format, otherwise it will be the string 
24348 \begin_inset Quotes eld
24349 \end_inset
24350
24351 png
24352 \begin_inset Quotes erd
24353 \end_inset
24354
24355 .
24356  This is useful to avoid uneeded conversions for output formats that support
24357  both PNG and JPEG fomats.
24358  The predefined RasterImage template uses this macro for the PDFL
24359 \change_deleted -712698321 1437634446
24360 A
24361 \change_inserted -712698321 1437634446
24362 a
24363 \change_inserted -195340706 1437418878
24364 TeX output format.
24365 \change_unchanged
24366
24367 \end_layout
24368
24369 \begin_layout Description
24370 \begin_inset Flex Code
24371 status collapsed
24372
24373 \begin_layout Plain Layout
24374 $$FName
24375 \end_layout
24376
24377 \end_inset
24378
24379  The filename of the file specified in the external material dialog.
24380  This is either an absolute name, or it is relative to the \SpecialChar LyX
24381  document.
24382 \end_layout
24383
24384 \begin_layout Description
24385 \begin_inset Flex Code
24386 status collapsed
24387
24388 \begin_layout Plain Layout
24389 $$FPath
24390 \end_layout
24391
24392 \end_inset
24393
24394  The path part of 
24395 \begin_inset Flex Code
24396 status collapsed
24397
24398 \begin_layout Plain Layout
24399 $$FName
24400 \end_layout
24401
24402 \end_inset
24403
24404  (absolute name or relative to the \SpecialChar LyX
24405  document).
24406 \end_layout
24407
24408 \begin_layout Description
24409 \begin_inset Flex Code
24410 status collapsed
24411
24412 \begin_layout Plain Layout
24413 $$RelPathMaster
24414 \end_layout
24415
24416 \end_inset
24417
24418  The file path, relative to the master \SpecialChar LyX
24419  document.
24420 \end_layout
24421
24422 \begin_layout Description
24423 \begin_inset Flex Code
24424 status collapsed
24425
24426 \begin_layout Plain Layout
24427 $$RelPathParent
24428 \end_layout
24429
24430 \end_inset
24431
24432  The file path, relative to the \SpecialChar LyX
24433  document.
24434 \end_layout
24435
24436 \begin_layout Description
24437 \begin_inset Flex Code
24438 status collapsed
24439
24440 \begin_layout Plain Layout
24441 $$Sysdir
24442 \end_layout
24443
24444 \end_inset
24445
24446  This macro will expand to the absolute path of the system directory.
24447  This is typically used to point to the various helper scripts that are
24448  bundled with \SpecialChar LyX
24449 .
24450 \end_layout
24451
24452 \begin_layout Description
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 $$Tempname
24458 \end_layout
24459
24460 \end_inset
24461
24462  A name and full path to a temporary file which will be automatically deleted
24463  whenever the containing document is closed, or the external material insertion
24464  deleted.
24465 \end_layout
24466
24467 \begin_layout Standard
24468 All path macros contain a trailing directory separator, so you can construct
24469  e.
24470 \begin_inset space \thinspace{}
24471 \end_inset
24472
24473 g.
24474 \begin_inset space \space{}
24475 \end_inset
24476
24477 the absolute filename with 
24478 \begin_inset Flex Code
24479 status collapsed
24480
24481 \begin_layout Plain Layout
24482 $$AbsPath$$Basename$$Extension
24483 \end_layout
24484
24485 \end_inset
24486
24487 .
24488 \end_layout
24489
24490 \begin_layout Standard
24491 The macros above are substituted in all commands unless otherwise noted.
24492  The command 
24493 \begin_inset Flex Code
24494 status collapsed
24495
24496 \begin_layout Plain Layout
24497 Product
24498 \end_layout
24499
24500 \end_inset
24501
24502  supports additionally the following substitutions if they are enabled by
24503  the 
24504 \begin_inset Flex Code
24505 status collapsed
24506
24507 \begin_layout Plain Layout
24508 Transform
24509 \end_layout
24510
24511 \end_inset
24512
24513  and 
24514 \begin_inset Flex Code
24515 status collapsed
24516
24517 \begin_layout Plain Layout
24518 TransformCommand
24519 \end_layout
24520
24521 \end_inset
24522
24523  commands:
24524 \end_layout
24525
24526 \begin_layout Description
24527 \begin_inset Flex Code
24528 status collapsed
24529
24530 \begin_layout Plain Layout
24531 $$ResizeFront
24532 \end_layout
24533
24534 \end_inset
24535
24536  The front part of the resize command.
24537 \end_layout
24538
24539 \begin_layout Description
24540 \begin_inset Flex Code
24541 status collapsed
24542
24543 \begin_layout Plain Layout
24544 $$ResizeBack
24545 \end_layout
24546
24547 \end_inset
24548
24549  The back part of the resize command.
24550 \end_layout
24551
24552 \begin_layout Description
24553 \begin_inset Flex Code
24554 status collapsed
24555
24556 \begin_layout Plain Layout
24557 $$RotateFront
24558 \end_layout
24559
24560 \end_inset
24561
24562  The front part of the rotation command.
24563 \end_layout
24564
24565 \begin_layout Description
24566 \begin_inset Flex Code
24567 status collapsed
24568
24569 \begin_layout Plain Layout
24570 $$RotateBack
24571 \end_layout
24572
24573 \end_inset
24574
24575  The back part of the rotation command.
24576 \end_layout
24577
24578 \begin_layout Standard
24579 The value string of the 
24580 \begin_inset Flex Code
24581 status collapsed
24582
24583 \begin_layout Plain Layout
24584 Option
24585 \end_layout
24586
24587 \end_inset
24588
24589  command supports additionally the following substitutions if they are enabled
24590  by the 
24591 \begin_inset Flex Code
24592 status collapsed
24593
24594 \begin_layout Plain Layout
24595 Transform
24596 \end_layout
24597
24598 \end_inset
24599
24600  and 
24601 \begin_inset Flex Code
24602 status collapsed
24603
24604 \begin_layout Plain Layout
24605 TransformOption
24606 \end_layout
24607
24608 \end_inset
24609
24610  commands:
24611 \end_layout
24612
24613 \begin_layout Description
24614 \begin_inset Flex Code
24615 status collapsed
24616
24617 \begin_layout Plain Layout
24618 $$Clip
24619 \end_layout
24620
24621 \end_inset
24622
24623  The clip option.
24624 \end_layout
24625
24626 \begin_layout Description
24627 \begin_inset Flex Code
24628 status collapsed
24629
24630 \begin_layout Plain Layout
24631 $$Extra
24632 \end_layout
24633
24634 \end_inset
24635
24636  The extra option.
24637 \end_layout
24638
24639 \begin_layout Description
24640 \begin_inset Flex Code
24641 status collapsed
24642
24643 \begin_layout Plain Layout
24644 $$Resize
24645 \end_layout
24646
24647 \end_inset
24648
24649  The resize option.
24650 \end_layout
24651
24652 \begin_layout Description
24653 \begin_inset Flex Code
24654 status collapsed
24655
24656 \begin_layout Plain Layout
24657 $$Rotate
24658 \end_layout
24659
24660 \end_inset
24661
24662  The rotation option.
24663 \end_layout
24664
24665 \begin_layout Standard
24666 You may ask why there are so many path macros.
24667  There are mainly two reasons:
24668 \end_layout
24669
24670 \begin_layout Enumerate
24671 Relative and absolute file names should remain relative or absolute, respectivel
24672 y.
24673  Users may have reasons to prefer either form.
24674  Relative names are useful for portable documents that should work on different
24675  machines, for example.
24676  Absolute names may be required by some programs.
24677 \end_layout
24678
24679 \begin_layout Enumerate
24680 \SpecialChar LaTeX
24681  treats relative file names differently than \SpecialChar LyX
24682  and other programs in nested
24683  included files.
24684  For \SpecialChar LyX
24685 , a relative file name is always relative to the document that contains
24686  the file name.
24687  For \SpecialChar LaTeX
24688 , it is always relative to the master document.
24689  These two definitions are identical if you have only one document, but
24690  differ if you have a master document that includes part documents.
24691  That means that relative filenames must be transformed when presented to
24692  \SpecialChar LaTeX
24693 .
24694  Fortunately \SpecialChar LyX
24695  does this automatically for you if you choose the right macros.
24696 \end_layout
24697
24698 \begin_layout Standard
24699 So which path macro should be used in new template definitions? The rule
24700  is not difficult:
24701 \end_layout
24702
24703 \begin_layout Itemize
24704 Use 
24705 \begin_inset Flex Code
24706 status collapsed
24707
24708 \begin_layout Plain Layout
24709 $$AbsPath
24710 \end_layout
24711
24712 \end_inset
24713
24714  if an absolute path is required.
24715 \end_layout
24716
24717 \begin_layout Itemize
24718 Use 
24719 \begin_inset Flex Code
24720 status collapsed
24721
24722 \begin_layout Plain Layout
24723 $$AbsOrRelPathMaster
24724 \end_layout
24725
24726 \end_inset
24727
24728  if the substituted string is some kind of \SpecialChar LaTeX
24729  input.
24730 \end_layout
24731
24732 \begin_layout Itemize
24733 Else use 
24734 \begin_inset Flex Code
24735 status collapsed
24736
24737 \begin_layout Plain Layout
24738 $$AbsOrRelPathParent
24739 \end_layout
24740
24741 \end_inset
24742
24743  in order to preserve the user's choice.
24744 \end_layout
24745
24746 \begin_layout Standard
24747 There are special cases where this rule does not work and e.
24748 \begin_inset space \thinspace{}
24749 \end_inset
24750
24751 g.
24752 \begin_inset space \space{}
24753 \end_inset
24754
24755 relative names are needed, but normally it will work just fine.
24756  One example for such a case is the command 
24757 \begin_inset Flex Code
24758 status collapsed
24759
24760 \begin_layout Plain Layout
24761 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
24762 \end_layout
24763
24764 \end_inset
24765
24766  in the XFig template above: We can't use the absolute name because the
24767  copier for 
24768 \begin_inset Flex Code
24769 status collapsed
24770
24771 \begin_layout Plain Layout
24772 .pstex_t
24773 \end_layout
24774
24775 \end_inset
24776
24777  files needs the relative name in order to rewrite the file content.
24778 \end_layout
24779
24780 \begin_layout Section
24781 Security discussion
24782 \begin_inset CommandInset label
24783 LatexCommand label
24784 name "sec:Security-discussion"
24785
24786 \end_inset
24787
24788
24789 \end_layout
24790
24791 \begin_layout Standard
24792 The external material feature interfaces with a lot of external programs
24793  and does so automatically, so we have to consider the security implications
24794  of this.
24795  In particular, since you have the option of including your own filenames
24796  and/or parameter strings and those are expanded into a command, it seems
24797  that it would be possible to create a malicious document which executes
24798  arbitrary commands when a user views or prints the document.
24799  This is something we definitely want to avoid.
24800 \end_layout
24801
24802 \begin_layout Standard
24803 However, since the external program commands are specified in the template
24804  configuration file only, there are no security issues if \SpecialChar LyX
24805  is properly configure
24806 d with safe templates only.
24807  This is so because the external programs are invoked with the 
24808 \begin_inset Flex Code
24809 status collapsed
24810
24811 \begin_layout Plain Layout
24812 execvp
24813 \end_layout
24814
24815 \end_inset
24816
24817 -system call rather than the 
24818 \begin_inset Flex Code
24819 status collapsed
24820
24821 \begin_layout Plain Layout
24822 system
24823 \end_layout
24824
24825 \end_inset
24826
24827  system-call, so it's not possible to execute arbitrary commands from the
24828  filename or parameter section via the shell.
24829 \end_layout
24830
24831 \begin_layout Standard
24832 This also implies that you are restricted in what command strings you can
24833  use in the external material templates.
24834  In particular, pipes and redirection are not readily available.
24835  This has to be so if \SpecialChar LyX
24836  should remain safe.
24837  If you want to use some of the shell features, you should write a safe
24838  script to do this in a controlled manner, and then invoke the script from
24839  the command string.
24840  
24841 \end_layout
24842
24843 \begin_layout Standard
24844 It is possible to design a template that interacts directly with the shell,
24845  but since this would allow a malicious user to execute arbitrary commands
24846  by writing clever filenames and/or parameters, we generally recommend that
24847  you only use safe scripts that work with the 
24848 \begin_inset Flex Code
24849 status collapsed
24850
24851 \begin_layout Plain Layout
24852 execvp
24853 \end_layout
24854
24855 \end_inset
24856
24857  system call in a controlled manner.
24858  Of course, for use in a controlled environment, it can be tempting to just
24859  fall back to use ordinary shell scripts.
24860  If you do so, be aware that you 
24861 \emph on
24862 will
24863 \emph default
24864  provide an easily exploitable security hole in your system.
24865  Of course it stands to reason that such unsafe templates will never be
24866  included in the standard \SpecialChar LyX
24867  distribution, although we do encourage people
24868  to submit new templates in the open source tradition.
24869  But \SpecialChar LyX
24870  as shipped from the official distribution channels will never have
24871  unsafe templates.
24872 \end_layout
24873
24874 \begin_layout Standard
24875 Including external material provides a lot of power, and you have to be
24876  careful not to introduce security hazards with this power.
24877  A subtle error in a single line in an innocent looking script can open
24878  the door to huge security problems.
24879  So if you do not fully understand the issues, we recommend that you consult
24880  a knowledgeable security professional or the \SpecialChar LyX
24881  development team if you have
24882  any questions about whether a given template is safe or not.
24883  And do this before you use it in an uncontrolled environment.
24884 \end_layout
24885
24886 \begin_layout Chapter
24887 \start_of_appendix
24888 List of supported \SpecialChar LyX
24889  functions to be used in layouts
24890 \begin_inset CommandInset label
24891 LatexCommand label
24892 name "chap:List-of-functions"
24893
24894 \end_inset
24895
24896
24897 \end_layout
24898
24899 \begin_layout Standard
24900 \align center
24901 \begin_inset Tabular
24902 <lyxtabular version="3" rows="11" columns="8">
24903 <features tabularvalignment="middle">
24904 <column alignment="left" valignment="top">
24905 <column alignment="left" valignment="top">
24906 <column alignment="left" valignment="top">
24907 <column alignment="left" valignment="top">
24908 <column alignment="left" valignment="top">
24909 <column alignment="left" valignment="top">
24910 <column alignment="left" valignment="top">
24911 <column alignment="left" valignment="top">
24912 <row>
24913 <cell alignment="left" valignment="top" usebox="none">
24914 \begin_inset Text
24915
24916 \begin_layout Plain Layout
24917 accents
24918 \end_layout
24919
24920 \end_inset
24921 </cell>
24922 <cell alignment="left" valignment="top" usebox="none">
24923 \begin_inset Text
24924
24925 \begin_layout Plain Layout
24926 booktabs
24927 \end_layout
24928
24929 \end_inset
24930 </cell>
24931 <cell alignment="left" valignment="top" usebox="none">
24932 \begin_inset Text
24933
24934 \begin_layout Plain Layout
24935 feyn
24936 \end_layout
24937
24938 \end_inset
24939 </cell>
24940 <cell alignment="left" valignment="top" usebox="none">
24941 \begin_inset Text
24942
24943 \begin_layout Plain Layout
24944 listings
24945 \end_layout
24946
24947 \end_inset
24948 </cell>
24949 <cell alignment="center" valignment="top" usebox="none">
24950 \begin_inset Text
24951
24952 \begin_layout Plain Layout
24953 natbib
24954 \end_layout
24955
24956 \end_inset
24957 </cell>
24958 <cell alignment="center" valignment="top" usebox="none">
24959 \begin_inset Text
24960
24961 \begin_layout Plain Layout
24962 rotfloat
24963 \end_layout
24964
24965 \end_inset
24966 </cell>
24967 <cell alignment="center" valignment="top" usebox="none">
24968 \begin_inset Text
24969
24970 \begin_layout Plain Layout
24971 tfrupee
24972 \end_layout
24973
24974 \end_inset
24975 </cell>
24976 <cell alignment="center" valignment="top" usebox="none">
24977 \begin_inset Text
24978
24979 \begin_layout Plain Layout
24980 wasysym
24981 \end_layout
24982
24983 \end_inset
24984 </cell>
24985 </row>
24986 <row>
24987 <cell alignment="left" valignment="top" usebox="none">
24988 \begin_inset Text
24989
24990 \begin_layout Plain Layout
24991 amsbsy
24992 \end_layout
24993
24994 \end_inset
24995 </cell>
24996 <cell alignment="left" valignment="top" usebox="none">
24997 \begin_inset Text
24998
24999 \begin_layout Plain Layout
25000 calc
25001 \end_layout
25002
25003 \end_inset
25004 </cell>
25005 <cell alignment="left" valignment="top" usebox="none">
25006 \begin_inset Text
25007
25008 \begin_layout Plain Layout
25009 fixltx2e
25010 \end_layout
25011
25012 \end_inset
25013 </cell>
25014 <cell alignment="left" valignment="top" usebox="none">
25015 \begin_inset Text
25016
25017 \begin_layout Plain Layout
25018 longtable
25019 \end_layout
25020
25021 \end_inset
25022 </cell>
25023 <cell alignment="center" valignment="top" usebox="none">
25024 \begin_inset Text
25025
25026 \begin_layout Plain Layout
25027 nomencl
25028 \end_layout
25029
25030 \end_inset
25031 </cell>
25032 <cell alignment="center" valignment="top" usebox="none">
25033 \begin_inset Text
25034
25035 \begin_layout Plain Layout
25036 rsphrase
25037 \end_layout
25038
25039 \end_inset
25040 </cell>
25041 <cell alignment="center" valignment="top" usebox="none">
25042 \begin_inset Text
25043
25044 \begin_layout Plain Layout
25045 tipa
25046 \end_layout
25047
25048 \end_inset
25049 </cell>
25050 <cell alignment="center" valignment="top" usebox="none">
25051 \begin_inset Text
25052
25053 \begin_layout Plain Layout
25054 wrapfig
25055 \end_layout
25056
25057 \end_inset
25058 </cell>
25059 </row>
25060 <row>
25061 <cell alignment="left" valignment="top" usebox="none">
25062 \begin_inset Text
25063
25064 \begin_layout Plain Layout
25065 amscd
25066 \end_layout
25067
25068 \end_inset
25069 </cell>
25070 <cell alignment="left" valignment="top" usebox="none">
25071 \begin_inset Text
25072
25073 \begin_layout Plain Layout
25074 CJK
25075 \end_layout
25076
25077 \end_inset
25078 </cell>
25079 <cell alignment="left" valignment="top" usebox="none">
25080 \begin_inset Text
25081
25082 \begin_layout Plain Layout
25083 float
25084 \end_layout
25085
25086 \end_inset
25087 </cell>
25088 <cell alignment="left" valignment="top" usebox="none">
25089 \begin_inset Text
25090
25091 \begin_layout Plain Layout
25092 lyxskak
25093 \end_layout
25094
25095 \end_inset
25096 </cell>
25097 <cell alignment="center" valignment="top" usebox="none">
25098 \begin_inset Text
25099
25100 \begin_layout Plain Layout
25101 pdfcolmk
25102 \end_layout
25103
25104 \end_inset
25105 </cell>
25106 <cell alignment="center" valignment="top" usebox="none">
25107 \begin_inset Text
25108
25109 \begin_layout Plain Layout
25110 setspace
25111 \end_layout
25112
25113 \end_inset
25114 </cell>
25115 <cell alignment="center" valignment="top" usebox="none">
25116 \begin_inset Text
25117
25118 \begin_layout Plain Layout
25119 tipx
25120 \end_layout
25121
25122 \end_inset
25123 </cell>
25124 <cell alignment="center" valignment="top" usebox="none">
25125 \begin_inset Text
25126
25127 \begin_layout Plain Layout
25128 xargs
25129 \end_layout
25130
25131 \end_inset
25132 </cell>
25133 </row>
25134 <row>
25135 <cell alignment="left" valignment="top" usebox="none">
25136 \begin_inset Text
25137
25138 \begin_layout Plain Layout
25139 amsmath
25140 \end_layout
25141
25142 \end_inset
25143 </cell>
25144 <cell alignment="left" valignment="top" usebox="none">
25145 \begin_inset Text
25146
25147 \begin_layout Plain Layout
25148 color
25149 \end_layout
25150
25151 \end_inset
25152 </cell>
25153 <cell alignment="left" valignment="top" usebox="none">
25154 \begin_inset Text
25155
25156 \begin_layout Plain Layout
25157 framed
25158 \end_layout
25159
25160 \end_inset
25161 </cell>
25162 <cell alignment="left" valignment="top" usebox="none">
25163 \begin_inset Text
25164
25165 \begin_layout Plain Layout
25166 makeidx
25167 \end_layout
25168
25169 \end_inset
25170 </cell>
25171 <cell alignment="center" valignment="top" usebox="none">
25172 \begin_inset Text
25173
25174 \begin_layout Plain Layout
25175 pdfpages
25176 \end_layout
25177
25178 \end_inset
25179 </cell>
25180 <cell alignment="center" valignment="top" usebox="none">
25181 \begin_inset Text
25182
25183 \begin_layout Plain Layout
25184 shapepar
25185 \end_layout
25186
25187 \end_inset
25188 </cell>
25189 <cell alignment="center" valignment="top" usebox="none">
25190 \begin_inset Text
25191
25192 \begin_layout Plain Layout
25193 tone
25194 \end_layout
25195
25196 \end_inset
25197 </cell>
25198 <cell alignment="center" valignment="top" usebox="none">
25199 \begin_inset Text
25200
25201 \begin_layout Plain Layout
25202 xcolor
25203 \end_layout
25204
25205 \end_inset
25206 </cell>
25207 </row>
25208 <row>
25209 <cell alignment="left" valignment="top" usebox="none">
25210 \begin_inset Text
25211
25212 \begin_layout Plain Layout
25213 amssymb
25214 \end_layout
25215
25216 \end_inset
25217 </cell>
25218 <cell alignment="left" valignment="top" usebox="none">
25219 \begin_inset Text
25220
25221 \begin_layout Plain Layout
25222 covington
25223 \end_layout
25224
25225 \end_inset
25226 </cell>
25227 <cell alignment="left" valignment="top" usebox="none">
25228 \begin_inset Text
25229
25230 \begin_layout Plain Layout
25231 graphicx
25232 \end_layout
25233
25234 \end_inset
25235 </cell>
25236 <cell alignment="left" valignment="top" usebox="none">
25237 \begin_inset Text
25238
25239 \begin_layout Plain Layout
25240 marvosym
25241 \end_layout
25242
25243 \end_inset
25244 </cell>
25245 <cell alignment="center" valignment="top" usebox="none">
25246 \begin_inset Text
25247
25248 \begin_layout Plain Layout
25249 pifont
25250 \end_layout
25251
25252 \end_inset
25253 </cell>
25254 <cell alignment="center" valignment="top" usebox="none">
25255 \begin_inset Text
25256
25257 \begin_layout Plain Layout
25258 slashed
25259 \end_layout
25260
25261 \end_inset
25262 </cell>
25263 <cell alignment="center" valignment="top" usebox="none">
25264 \begin_inset Text
25265
25266 \begin_layout Plain Layout
25267 txfonts
25268 \end_layout
25269
25270 \end_inset
25271 </cell>
25272 <cell alignment="center" valignment="top" usebox="none">
25273 \begin_inset Text
25274
25275 \begin_layout Plain Layout
25276 xy
25277 \end_layout
25278
25279 \end_inset
25280 </cell>
25281 </row>
25282 <row>
25283 <cell alignment="left" valignment="top" usebox="none">
25284 \begin_inset Text
25285
25286 \begin_layout Plain Layout
25287 amstext
25288 \end_layout
25289
25290 \end_inset
25291 </cell>
25292 <cell alignment="left" valignment="top" usebox="none">
25293 \begin_inset Text
25294
25295 \begin_layout Plain Layout
25296 csquotes
25297 \end_layout
25298
25299 \end_inset
25300 </cell>
25301 <cell alignment="left" valignment="top" usebox="none">
25302 \begin_inset Text
25303
25304 \begin_layout Plain Layout
25305 hhline
25306 \end_layout
25307
25308 \end_inset
25309 </cell>
25310 <cell alignment="left" valignment="top" usebox="none">
25311 \begin_inset Text
25312
25313 \begin_layout Plain Layout
25314 mathdesign
25315 \end_layout
25316
25317 \end_inset
25318 </cell>
25319 <cell alignment="center" valignment="top" usebox="none">
25320 \begin_inset Text
25321
25322 \begin_layout Plain Layout
25323 pmboxdraw
25324 \end_layout
25325
25326 \end_inset
25327 </cell>
25328 <cell alignment="center" valignment="top" usebox="none">
25329 \begin_inset Text
25330
25331 \begin_layout Plain Layout
25332 soul
25333 \end_layout
25334
25335 \end_inset
25336 </cell>
25337 <cell alignment="center" valignment="top" usebox="none">
25338 \begin_inset Text
25339
25340 \begin_layout Plain Layout
25341 ulem
25342 \end_layout
25343
25344 \end_inset
25345 </cell>
25346 <cell alignment="center" valignment="top" usebox="none">
25347 \begin_inset Text
25348
25349 \begin_layout Plain Layout
25350 yhmath
25351 \end_layout
25352
25353 \end_inset
25354 </cell>
25355 </row>
25356 <row>
25357 <cell alignment="left" valignment="top" usebox="none">
25358 \begin_inset Text
25359
25360 \begin_layout Plain Layout
25361 amsthm
25362 \end_layout
25363
25364 \end_inset
25365 </cell>
25366 <cell alignment="left" valignment="top" usebox="none">
25367 \begin_inset Text
25368
25369 \begin_layout Plain Layout
25370 dvipost
25371 \end_layout
25372
25373 \end_inset
25374 </cell>
25375 <cell alignment="left" valignment="top" usebox="none">
25376 \begin_inset Text
25377
25378 \begin_layout Plain Layout
25379 hyperref
25380 \end_layout
25381
25382 \end_inset
25383 </cell>
25384 <cell alignment="left" valignment="top" usebox="none">
25385 \begin_inset Text
25386
25387 \begin_layout Plain Layout
25388 mathdots
25389 \end_layout
25390
25391 \end_inset
25392 </cell>
25393 <cell alignment="center" valignment="top" usebox="none">
25394 \begin_inset Text
25395
25396 \begin_layout Plain Layout
25397 polyglossia
25398 \end_layout
25399
25400 \end_inset
25401 </cell>
25402 <cell alignment="center" valignment="top" usebox="none">
25403 \begin_inset Text
25404
25405 \begin_layout Plain Layout
25406 splitidx
25407 \end_layout
25408
25409 \end_inset
25410 </cell>
25411 <cell alignment="center" valignment="top" usebox="none">
25412 \begin_inset Text
25413
25414 \begin_layout Plain Layout
25415 undertilde
25416 \end_layout
25417
25418 \end_inset
25419 </cell>
25420 <cell alignment="center" valignment="top" usebox="none">
25421 \begin_inset Text
25422
25423 \begin_layout Plain Layout
25424
25425 \end_layout
25426
25427 \end_inset
25428 </cell>
25429 </row>
25430 <row>
25431 <cell alignment="left" valignment="top" usebox="none">
25432 \begin_inset Text
25433
25434 \begin_layout Plain Layout
25435 array
25436 \end_layout
25437
25438 \end_inset
25439 </cell>
25440 <cell alignment="left" valignment="top" usebox="none">
25441 \begin_inset Text
25442
25443 \begin_layout Plain Layout
25444 endnotes
25445 \end_layout
25446
25447 \end_inset
25448 </cell>
25449 <cell alignment="left" valignment="top" usebox="none">
25450 \begin_inset Text
25451
25452 \begin_layout Plain Layout
25453 ifsym
25454 \end_layout
25455
25456 \end_inset
25457 </cell>
25458 <cell alignment="left" valignment="top" usebox="none">
25459 \begin_inset Text
25460
25461 \begin_layout Plain Layout
25462 mathrsfs
25463 \end_layout
25464
25465 \end_inset
25466 </cell>
25467 <cell alignment="center" valignment="top" usebox="none">
25468 \begin_inset Text
25469
25470 \begin_layout Plain Layout
25471 prettyref
25472 \end_layout
25473
25474 \end_inset
25475 </cell>
25476 <cell alignment="center" valignment="top" usebox="none">
25477 \begin_inset Text
25478
25479 \begin_layout Plain Layout
25480 subfig
25481 \end_layout
25482
25483 \end_inset
25484 </cell>
25485 <cell alignment="center" valignment="top" usebox="none">
25486 \begin_inset Text
25487
25488 \begin_layout Plain Layout
25489 units
25490 \end_layout
25491
25492 \end_inset
25493 </cell>
25494 <cell alignment="center" valignment="top" usebox="none">
25495 \begin_inset Text
25496
25497 \begin_layout Plain Layout
25498
25499 \end_layout
25500
25501 \end_inset
25502 </cell>
25503 </row>
25504 <row>
25505 <cell alignment="left" valignment="top" usebox="none">
25506 \begin_inset Text
25507
25508 \begin_layout Plain Layout
25509 ascii
25510 \end_layout
25511
25512 \end_inset
25513 </cell>
25514 <cell alignment="left" valignment="top" usebox="none">
25515 \begin_inset Text
25516
25517 \begin_layout Plain Layout
25518 enumitem
25519 \end_layout
25520
25521 \end_inset
25522 </cell>
25523 <cell alignment="left" valignment="top" usebox="none">
25524 \begin_inset Text
25525
25526 \begin_layout Plain Layout
25527 ifthen
25528 \end_layout
25529
25530 \end_inset
25531 </cell>
25532 <cell alignment="left" valignment="top" usebox="none">
25533 \begin_inset Text
25534
25535 \begin_layout Plain Layout
25536 mhchem
25537 \end_layout
25538
25539 \end_inset
25540 </cell>
25541 <cell alignment="center" valignment="top" usebox="none">
25542 \begin_inset Text
25543
25544 \begin_layout Plain Layout
25545 pxfonts
25546 \end_layout
25547
25548 \end_inset
25549 </cell>
25550 <cell alignment="center" valignment="top" usebox="none">
25551 \begin_inset Text
25552
25553 \begin_layout Plain Layout
25554 subscript
25555 \end_layout
25556
25557 \end_inset
25558 </cell>
25559 <cell alignment="center" valignment="top" usebox="none">
25560 \begin_inset Text
25561
25562 \begin_layout Plain Layout
25563 url
25564 \end_layout
25565
25566 \end_inset
25567 </cell>
25568 <cell alignment="center" valignment="top" usebox="none">
25569 \begin_inset Text
25570
25571 \begin_layout Plain Layout
25572
25573 \end_layout
25574
25575 \end_inset
25576 </cell>
25577 </row>
25578 <row>
25579 <cell alignment="left" valignment="top" usebox="none">
25580 \begin_inset Text
25581
25582 \begin_layout Plain Layout
25583 bbding
25584 \end_layout
25585
25586 \end_inset
25587 </cell>
25588 <cell alignment="left" valignment="top" usebox="none">
25589 \begin_inset Text
25590
25591 \begin_layout Plain Layout
25592 esint
25593 \end_layout
25594
25595 \end_inset
25596 </cell>
25597 <cell alignment="left" valignment="top" usebox="none">
25598 \begin_inset Text
25599
25600 \begin_layout Plain Layout
25601 jurabib
25602 \end_layout
25603
25604 \end_inset
25605 </cell>
25606 <cell alignment="left" valignment="top" usebox="none">
25607 \begin_inset Text
25608
25609 \begin_layout Plain Layout
25610 multicol
25611 \end_layout
25612
25613 \end_inset
25614 </cell>
25615 <cell alignment="center" valignment="top" usebox="none">
25616 \begin_inset Text
25617
25618 \begin_layout Plain Layout
25619 refstyle
25620 \end_layout
25621
25622 \end_inset
25623 </cell>
25624 <cell alignment="center" valignment="top" usebox="none">
25625 \begin_inset Text
25626
25627 \begin_layout Plain Layout
25628 textcomp
25629 \end_layout
25630
25631 \end_inset
25632 </cell>
25633 <cell alignment="center" valignment="top" usebox="none">
25634 \begin_inset Text
25635
25636 \begin_layout Plain Layout
25637 varioref
25638 \end_layout
25639
25640 \end_inset
25641 </cell>
25642 <cell alignment="center" valignment="top" usebox="none">
25643 \begin_inset Text
25644
25645 \begin_layout Plain Layout
25646
25647 \end_layout
25648
25649 \end_inset
25650 </cell>
25651 </row>
25652 <row>
25653 <cell alignment="center" valignment="top" usebox="none">
25654 \begin_inset Text
25655
25656 \begin_layout Plain Layout
25657 bm
25658 \end_layout
25659
25660 \end_inset
25661 </cell>
25662 <cell alignment="center" valignment="top" usebox="none">
25663 \begin_inset Text
25664
25665 \begin_layout Plain Layout
25666 fancybox
25667 \end_layout
25668
25669 \end_inset
25670 </cell>
25671 <cell alignment="center" valignment="top" usebox="none">
25672 \begin_inset Text
25673
25674 \begin_layout Plain Layout
25675 latexsym
25676 \end_layout
25677
25678 \end_inset
25679 </cell>
25680 <cell alignment="center" valignment="top" usebox="none">
25681 \begin_inset Text
25682
25683 \begin_layout Plain Layout
25684 multirow
25685 \end_layout
25686
25687 \end_inset
25688 </cell>
25689 <cell alignment="center" valignment="top" usebox="none">
25690 \begin_inset Text
25691
25692 \begin_layout Plain Layout
25693 rotating
25694 \end_layout
25695
25696 \end_inset
25697 </cell>
25698 <cell alignment="center" valignment="top" usebox="none">
25699 \begin_inset Text
25700
25701 \begin_layout Plain Layout
25702 textgreek
25703 \end_layout
25704
25705 \end_inset
25706 </cell>
25707 <cell alignment="center" valignment="top" usebox="none">
25708 \begin_inset Text
25709
25710 \begin_layout Plain Layout
25711 verbatim
25712 \end_layout
25713
25714 \end_inset
25715 </cell>
25716 <cell alignment="center" valignment="top" usebox="none">
25717 \begin_inset Text
25718
25719 \begin_layout Plain Layout
25720
25721 \end_layout
25722
25723 \end_inset
25724 </cell>
25725 </row>
25726 </lyxtabular>
25727
25728 \end_inset
25729
25730
25731 \end_layout
25732
25733 \begin_layout Chapter
25734 Names of available colors to be used in layouts
25735 \begin_inset CommandInset label
25736 LatexCommand label
25737 name "chap:Names-of-colors"
25738
25739 \end_inset
25740
25741
25742 \end_layout
25743
25744 \begin_layout Standard
25745 The colors listed here are the standard colors and the those that you can
25746  adjust in the \SpecialChar LyX
25747  preferences.
25748 \end_layout
25749
25750 \begin_layout Description
25751 none
25752 \family roman
25753 \series medium
25754 \shape up
25755 \size normal
25756 \emph off
25757 \bar no
25758 \strikeout off
25759 \uuline off
25760 \uwave off
25761 \noun off
25762 \color none
25763  No particular color – clear or default
25764 \end_layout
25765
25766 \begin_layout Description
25767 black
25768 \end_layout
25769
25770 \begin_layout Description
25771 white
25772 \end_layout
25773
25774 \begin_layout Description
25775 red
25776 \end_layout
25777
25778 \begin_layout Description
25779 green
25780 \end_layout
25781
25782 \begin_layout Description
25783 blue
25784 \end_layout
25785
25786 \begin_layout Description
25787 cyan
25788 \end_layout
25789
25790 \begin_layout Description
25791 magenta
25792 \end_layout
25793
25794 \begin_layout Description
25795 yellow
25796 \end_layout
25797
25798 \begin_layout Description
25799 added_space Added space marker color
25800 \end_layout
25801
25802 \begin_layout Description
25803 addedtext Added text color
25804 \end_layout
25805
25806 \begin_layout Description
25807 appendix Appendix marker color
25808 \end_layout
25809
25810 \begin_layout Description
25811 background Background color
25812 \end_layout
25813
25814 \begin_layout Description
25815 bottomarea Bottom area color
25816 \end_layout
25817
25818 \begin_layout Description
25819 branchlabel Label color for branches
25820 \end_layout
25821
25822 \begin_layout Description
25823 buttonbg Color used for bottom background
25824 \end_layout
25825
25826 \begin_layout Description
25827 buttonhoverbg Color used for button background under focus
25828 \end_layout
25829
25830 \begin_layout Description
25831 buttonframe Color for inset button frames
25832 \end_layout
25833
25834 \begin_layout Description
25835 changebar Changebar color
25836 \end_layout
25837
25838 \begin_layout Description
25839 changedtextauthor1 Changed text color author 1
25840 \end_layout
25841
25842 \begin_layout Description
25843 changedtextauthor2 Changed text color author 2
25844 \end_layout
25845
25846 \begin_layout Description
25847 changedtextauthor3 Changed text color author 3
25848 \end_layout
25849
25850 \begin_layout Description
25851 changedtextauthor4 Changed text color author 4
25852 \end_layout
25853
25854 \begin_layout Description
25855 changedtextauthor5 Changed text color author 5
25856 \end_layout
25857
25858 \begin_layout Description
25859 collapsable_inset_frame Collapsable insets framecolor
25860 \end_layout
25861
25862 \begin_layout Description
25863 collapsable_inset_text Collapsable insets text color
25864 \end_layout
25865
25866 \begin_layout Description
25867 command Text color for command insets
25868 \end_layout
25869
25870 \begin_layout Description
25871 commandbg Background color for command insets
25872 \end_layout
25873
25874 \begin_layout Description
25875 commandframe Frame color for command insets
25876 \end_layout
25877
25878 \begin_layout Description
25879 comment color for comments
25880 \end_layout
25881
25882 \begin_layout Description
25883 commentbg Background color of comments
25884 \end_layout
25885
25886 \begin_layout Description
25887 cursor Cursor color
25888 \end_layout
25889
25890 \begin_layout Description
25891 deletedtext Deleted text color
25892 \end_layout
25893
25894 \begin_layout Description
25895 deletedtextmodifier Deleted text modifying color
25896 \end_layout
25897
25898 \begin_layout Description
25899 depthbar Color for the depth bars in the margin
25900 \end_layout
25901
25902 \begin_layout Description
25903 eolmarker End of line marker color
25904 \end_layout
25905
25906 \begin_layout Description
25907 error Color of the \SpecialChar LaTeX
25908  error box
25909 \end_layout
25910
25911 \begin_layout Description
25912 footlabel Label color for footnotes
25913 \end_layout
25914
25915 \begin_layout Description
25916 graphicsbg Graphics inset background color
25917 \end_layout
25918
25919 \begin_layout Description
25920 greyedout Label color for greyedout insets
25921 \end_layout
25922
25923 \begin_layout Description
25924 greyedoutbg Background color of greyedout inset
25925 \end_layout
25926
25927 \begin_layout Description
25928 greyedouttext Color for greyedout inset text
25929 \end_layout
25930
25931 \begin_layout Description
25932 indexlabel Label color for index insets
25933 \end_layout
25934
25935 \begin_layout Description
25936 ignore The color is ignored
25937 \end_layout
25938
25939 \begin_layout Description
25940 inherit The color is inherited
25941 \end_layout
25942
25943 \begin_layout Description
25944 inlinecompletion Inline completion color
25945 \end_layout
25946
25947 \begin_layout Description
25948 insetbg Inset marker background color
25949 \end_layout
25950
25951 \begin_layout Description
25952 insetframe Inset marker frame color
25953 \end_layout
25954
25955 \begin_layout Description
25956 language Color for marking foreign language words
25957 \end_layout
25958
25959 \begin_layout Description
25960 latex Text color in \SpecialChar LaTeX
25961  mode
25962 \end_layout
25963
25964 \begin_layout Description
25965 listingsbg Background color of listings inset
25966 \end_layout
25967
25968 \begin_layout Description
25969 marginlabel Label color for margin notes
25970 \end_layout
25971
25972 \begin_layout Description
25973 math Math inset text color
25974 \end_layout
25975
25976 \begin_layout Description
25977 mathbg Math inset background color
25978 \end_layout
25979
25980 \begin_layout Description
25981 mathcorners Math inset frame color not under focus
25982 \end_layout
25983
25984 \begin_layout Description
25985 mathframe Math inset frame color under focus
25986 \end_layout
25987
25988 \begin_layout Description
25989 mathline Math line color
25990 \end_layout
25991
25992 \begin_layout Description
25993 mathmacrobg Macro math inset background color
25994 \end_layout
25995
25996 \begin_layout Description
25997 mathmacroblend Macro math blended color
25998 \end_layout
25999
26000 \begin_layout Description
26001 mathmacroframe Macro math frame color
26002 \end_layout
26003
26004 \begin_layout Description
26005 mathmacrohoverbg Macro math inset background color hovered
26006 \end_layout
26007
26008 \begin_layout Description
26009 mathmacrolabel Macro math label color
26010 \end_layout
26011
26012 \begin_layout Description
26013 mathmacronewarg Macro template color for new parameters
26014 \end_layout
26015
26016 \begin_layout Description
26017 mathmacrooldarg Macro template color for old parameters
26018 \end_layout
26019
26020 \begin_layout Description
26021 newpage New page color
26022 \end_layout
26023
26024 \begin_layout Description
26025 nonunique_inlinecompletion Inline completion color for the non-unique part
26026 \end_layout
26027
26028 \begin_layout Description
26029 notebg Background color of notes
26030 \end_layout
26031
26032 \begin_layout Description
26033 notelabel Label color for notes
26034 \end_layout
26035
26036 \begin_layout Description
26037 pagebreak Page break/line break color
26038 \end_layout
26039
26040 \begin_layout Description
26041 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
26042 \end_layout
26043
26044 \begin_layout Description
26045 phantomtext Text color for phantom insets
26046 \end_layout
26047
26048 \begin_layout Description
26049 preview The color used for previews
26050 \end_layout
26051
26052 \begin_layout Description
26053 previewframe Preview frame color
26054 \end_layout
26055
26056 \begin_layout Description
26057 regexpframe Color for regexp frame
26058 \end_layout
26059
26060 \begin_layout Description
26061 selection Background color of selected text
26062 \end_layout
26063
26064 \begin_layout Description
26065 selectiontext Foreground color of selected text
26066 \end_layout
26067
26068 \begin_layout Description
26069 shadedbg Background color of shaded box
26070 \end_layout
26071
26072 \begin_layout Description
26073 special Special chars text color
26074 \end_layout
26075
26076 \begin_layout Description
26077 tabularline Table line color
26078 \end_layout
26079
26080 \begin_layout Description
26081 tabularonoffline Table line color
26082 \end_layout
26083
26084 \begin_layout Description
26085 urllabel Label color for URL insets
26086 \end_layout
26087
26088 \begin_layout Description
26089 urltext Color for URL inset text
26090 \end_layout
26091
26092 \end_body
26093 \end_document