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