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