]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Support FreeSpacing in InsetArgument
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 575
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children false
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_osf false
57 \font_sf_scale 100 100
58 \font_tt_scale 100 100
59 \use_microtype false
60 \use_dash_ligatures true
61 \graphics default
62 \default_output_format pdf2
63 \output_sync 0
64 \bibtex_command default
65 \index_command default
66 \paperfontsize 12
67 \spacing single
68 \use_hyperref true
69 \pdf_title "LyX Configuration Manual"
70 \pdf_author "LyX Team"
71 \pdf_subject "LyX-documentation Customization"
72 \pdf_keywords "LyX, documentation, customization"
73 \pdf_bookmarks true
74 \pdf_bookmarksnumbered true
75 \pdf_bookmarksopen true
76 \pdf_bookmarksopenlevel 1
77 \pdf_breaklinks false
78 \pdf_pdfborder false
79 \pdf_colorlinks true
80 \pdf_backref false
81 \pdf_pdfusetitle false
82 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
83 \papersize default
84 \use_geometry false
85 \use_package amsmath 1
86 \use_package amssymb 1
87 \use_package cancel 1
88 \use_package esint 1
89 \use_package mathdots 1
90 \use_package mathtools 1
91 \use_package mhchem 1
92 \use_package stackrel 1
93 \use_package stmaryrd 1
94 \use_package undertilde 1
95 \cite_engine basic
96 \cite_engine_type default
97 \biblio_style plain
98 \use_bibtopic false
99 \use_indices false
100 \paperorientation portrait
101 \suppress_date false
102 \justification true
103 \use_refstyle 0
104 \use_minted 0
105 \use_lineno 0
106 \lineno_options 
107 \notefontcolor #0000ff
108 \branch OutDated
109 \selected 0
110 \filename_suffix 0
111 \color #f5fae7
112 \end_branch
113 \index Index
114 \shortcut idx
115 \color #008000
116 \end_index
117 \secnumdepth 3
118 \tocdepth 3
119 \paragraph_separation indent
120 \paragraph_indentation default
121 \is_math_indent 1
122 \math_indentation default
123 \math_numbering_side default
124 \quotes_style english
125 \dynamic_quotes 0
126 \papercolumns 1
127 \papersides 2
128 \paperpagestyle headings
129 \tablestyle default
130 \tracking_changes true
131 \output_changes false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict true
135 \author -712698321 "Jürgen Spitzmüller"
136 \author -495245474 "Jean-Marc Lasgouttes"
137 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
138 \end_header
139
140 \begin_body
141
142 \begin_layout Title
143 Customizing \SpecialChar LyX
144 : Features for the Advanced User
145 \end_layout
146
147 \begin_layout Author
148 by the \SpecialChar LyX
149  Team
150 \begin_inset Foot
151 status collapsed
152
153 \begin_layout Plain Layout
154 \noindent
155 If you have comments or error corrections, please send them to the \SpecialChar LyX
156  Documentatio
157 n mailing list, 
158 \begin_inset CommandInset href
159 LatexCommand href
160 target "lyx-docs@lists.lyx.org"
161 type "mailto:"
162 literal "false"
163
164 \end_inset
165
166 .
167  Include 
168 \begin_inset Quotes eld
169 \end_inset
170
171 [Customization]
172 \begin_inset Quotes erd
173 \end_inset
174
175  in the subject header, and please cc the current maintainer of this file,
176  Richard Heck <rgheck@comcast.net>.
177 \end_layout
178
179 \end_inset
180
181
182 \begin_inset Newline newline
183 \end_inset
184
185
186 \begin_inset Newline newline
187 \end_inset
188
189 Version 2.3.x 
190 \end_layout
191
192 \begin_layout Standard
193 \begin_inset CommandInset toc
194 LatexCommand tableofcontents
195
196 \end_inset
197
198
199 \end_layout
200
201 \begin_layout Standard
202 \begin_inset Note Note
203 status open
204
205 \begin_layout Plain Layout
206 Please use change tracking when modifying this document.
207  This makes it easier for our translators to recognize things that have
208  been changed, and it helps the maintainer keep up-to-date with what's been
209  done.
210 \end_layout
211
212 \end_inset
213
214
215 \end_layout
216
217 \begin_layout Chapter
218 Introduction
219 \end_layout
220
221 \begin_layout Standard
222 This manual covers the customization features present in \SpecialChar LyX
223 .
224  In it, we discuss issues like keyboard shortcuts, screen previewing options,
225  printer options, sending commands to \SpecialChar LyX
226  via the \SpecialChar LyX
227  Server, internationalization,
228  installing new \SpecialChar LaTeX
229  classes and \SpecialChar LyX
230  layouts, etc.
231  We can't possibly hope to touch on everything you can change—our developers
232  add new features faster than we can document them—but we will explain the
233  most common customizations and hopefully point you in the right direction
234  for some of the more obscure ones.
235 \end_layout
236
237 \begin_layout Standard
238 \begin_inset Branch OutDated
239 inverted 0
240 status collapsed
241
242 \begin_layout Standard
243 Information from previous versions of this document that now seems to be
244  outdated is contained in the OutDated branch of this document.
245  By default, this information will not appear in the \SpecialChar LaTeX
246  output.
247 \end_layout
248
249 \end_inset
250
251
252 \end_layout
253
254 \begin_layout Chapter
255 \SpecialChar LyX
256  configuration files
257 \end_layout
258
259 \begin_layout Standard
260 This chapter aims to help you to find your way through the \SpecialChar LyX
261  configuration
262  files.
263  Before continuing to read this chapter, you should find out where your
264  \SpecialChar LyX
265  library and user directories are by using 
266 \begin_inset Flex Noun
267 status collapsed
268
269 \begin_layout Plain Layout
270 Help\SpecialChar menuseparator
271 About
272 \begin_inset space ~
273 \end_inset
274
275 LyX
276 \end_layout
277
278 \end_inset
279
280 .
281  The library directory is the place where \SpecialChar LyX
282  places its system-wide configuration
283  files; the user directory is where you can place your modified versions.
284  We will call the former 
285 \begin_inset Flex Code
286 status collapsed
287
288 \begin_layout Plain Layout
289 LyXDir
290 \end_layout
291
292 \end_inset
293
294  and the latter 
295 \begin_inset Flex Noun
296 status collapsed
297
298 \begin_layout Plain Layout
299 UserDir
300 \end_layout
301
302 \end_inset
303
304  in the remainder of this document.
305  
306 \end_layout
307
308 \begin_layout Section
309 What's in 
310 \begin_inset Flex Code
311 status collapsed
312
313 \begin_layout Plain Layout
314 LyXDir
315 \end_layout
316
317 \end_inset
318
319 ?
320 \end_layout
321
322 \begin_layout Standard
323 \begin_inset Flex Code
324 status collapsed
325
326 \begin_layout Plain Layout
327 LyXDir
328 \end_layout
329
330 \end_inset
331
332  and its sub-directories contain a number of files and that can be used
333  to customize \SpecialChar LyX
334 's behavior.
335  You can change many of these files from within \SpecialChar LyX
336  itself through the 
337 \begin_inset Flex Noun
338 status collapsed
339
340 \begin_layout Plain Layout
341 Tools\SpecialChar menuseparator
342 Preferences
343 \end_layout
344
345 \end_inset
346
347  dialog.
348  Most customization that you will want to do in \SpecialChar LyX
349  is possible through this
350  dialog.
351  However, many other inner aspects of \SpecialChar LyX
352  can be customized by modifying the
353  files in 
354 \begin_inset Flex Code
355 status collapsed
356
357 \begin_layout Plain Layout
358 LyXDir
359 \end_layout
360
361 \end_inset
362
363 .
364  These files fall in different categories, described in the following subsection
365 s.
366 \end_layout
367
368 \begin_layout Subsection
369 Automatically generated files
370 \end_layout
371
372 \begin_layout Standard
373 The files, which are to be found in 
374 \begin_inset Flex Noun
375 status collapsed
376
377 \begin_layout Plain Layout
378 UserDir
379 \end_layout
380
381 \end_inset
382
383 , are generated when you configure \SpecialChar LyX
384 .
385  They contain various default values that are guessed by inspection.
386  In general, it is not a good idea to modify them, since they might be overwritt
387 en at any time.
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 lyxrc.defaults
397 \end_layout
398
399 \end_inset
400
401  contains defaults for various commands.
402 \end_layout
403
404 \begin_layout Labeling
405 \labelwidthstring 00.00.0000
406 \begin_inset Flex Code
407 status collapsed
408
409 \begin_layout Plain Layout
410 packages.lst
411 \end_layout
412
413 \end_inset
414
415  contains the list of packages that have been recognized by \SpecialChar LyX
416 .
417  It is currently unused by the \SpecialChar LyX
418  program itself, but the information extracted,
419  and more, is made available with 
420 \begin_inset Flex Noun
421 status collapsed
422
423 \begin_layout Plain Layout
424 Help\SpecialChar menuseparator
425 \SpecialChar LaTeX
426
427 \begin_inset space ~
428 \end_inset
429
430 Configuration
431 \end_layout
432
433 \end_inset
434
435 .
436 \end_layout
437
438 \begin_layout Labeling
439 \labelwidthstring 00.00.0000
440 \begin_inset Flex Code
441 status collapsed
442
443 \begin_layout Plain Layout
444 textclass.lst
445 \end_layout
446
447 \end_inset
448
449  the list of text classes that have been found in your 
450 \begin_inset Flex Code
451 status collapsed
452
453 \begin_layout Plain Layout
454 layout/
455 \end_layout
456
457 \end_inset
458
459  directories, along with the associated \SpecialChar LaTeX
460  document class and their description.
461 \end_layout
462
463 \begin_layout Labeling
464 \labelwidthstring 00.00.0000
465 \begin_inset Flex Code
466 status collapsed
467
468 \begin_layout Plain Layout
469 lyxmodules.lst
470 \end_layout
471
472 \end_inset
473
474  the list of layout modules found in your 
475 \begin_inset Flex Code
476 status collapsed
477
478 \begin_layout Plain Layout
479 layout/
480 \end_layout
481
482 \end_inset
483
484  directories
485 \end_layout
486
487 \begin_layout Labeling
488 \labelwidthstring 00.00.0000
489 \begin_inset Flex Code
490 status collapsed
491
492 \begin_layout Plain Layout
493 *files.lst
494 \end_layout
495
496 \end_inset
497
498  lists of various sorts of \SpecialChar LaTeX
499 -related files found on your system
500 \end_layout
501
502 \begin_layout Labeling
503 \labelwidthstring 00.00.0000
504 \begin_inset Flex Code
505 status collapsed
506
507 \begin_layout Plain Layout
508 doc/\SpecialChar LaTeX
509 Config.lyx
510 \end_layout
511
512 \end_inset
513
514  is automatically generated during configuration from the file 
515 \begin_inset Flex Code
516 status collapsed
517
518 \begin_layout Plain Layout
519 \SpecialChar LaTeX
520 Config.lyx.in
521 \end_layout
522
523 \end_inset
524
525 .
526  It contains information on your \SpecialChar LaTeX
527  configuration.
528 \end_layout
529
530 \begin_layout Subsection
531 Directories
532 \end_layout
533
534 \begin_layout Standard
535 These directories are duplicated between 
536 \begin_inset Flex Code
537 status collapsed
538
539 \begin_layout Plain Layout
540 LyXDir
541 \end_layout
542
543 \end_inset
544
545  and 
546 \begin_inset Flex Code
547 status collapsed
548
549 \begin_layout Plain Layout
550 UserDir
551 \end_layout
552
553 \end_inset
554
555 .
556  If a particular files exists in both places, the one in 
557 \begin_inset Flex Code
558 status collapsed
559
560 \begin_layout Plain Layout
561 UserDir
562 \end_layout
563
564 \end_inset
565
566  will be used.
567 \end_layout
568
569 \begin_layout Labeling
570 \labelwidthstring 00.00.0000
571 \begin_inset Flex Code
572 status collapsed
573
574 \begin_layout Plain Layout
575 bind/
576 \end_layout
577
578 \end_inset
579
580  this directory contains files with the extension 
581 \begin_inset Flex Code
582 status collapsed
583
584 \begin_layout Plain Layout
585 .bind
586 \end_layout
587
588 \end_inset
589
590  that define the keybindings used in \SpecialChar LyX
591 .
592  If there exists an internationalized version of the bind file named 
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 $LANG_xxx.bind
598 \end_layout
599
600 \end_inset
601
602 , that will be used first.
603 \end_layout
604
605 \begin_layout Labeling
606 \labelwidthstring 00.00.0000
607 \begin_inset Flex Code
608 status collapsed
609
610 \begin_layout Plain Layout
611 citeengines/
612 \end_layout
613
614 \end_inset
615
616  contains files with the extension 
617 \begin_inset Flex Code
618 status collapsed
619
620 \begin_layout Plain Layout
621 .citeengine
622 \end_layout
623
624 \end_inset
625
626  which define the diverse citation possibilities (natbib, biblatex etc.).
627  See 
628 \begin_inset CommandInset ref
629 LatexCommand ref
630 reference "subsec:Cite-Engine-Files"
631 plural "false"
632 caps "false"
633 noprefix "false"
634
635 \end_inset
636
637  for details.
638 \end_layout
639
640 \begin_layout Labeling
641 \labelwidthstring 00.00.0000
642 \begin_inset Flex Code
643 status collapsed
644
645 \begin_layout Plain Layout
646 clipart/
647 \end_layout
648
649 \end_inset
650
651  contains graphics files that can be included in documents.
652  
653 \end_layout
654
655 \begin_layout Labeling
656 \labelwidthstring 00.00.0000
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661 doc/
662 \end_layout
663
664 \end_inset
665
666  contains \SpecialChar LyX
667  documentation files (including the one you are currently reading).
668  The file 
669 \begin_inset Flex Code
670 status collapsed
671
672 \begin_layout Plain Layout
673 \SpecialChar LaTeX
674 Config.lyx
675 \end_layout
676
677 \end_inset
678
679  deserves special attention, as noted above.
680  The internationalized help docs are in subdirectories 
681 \begin_inset Flex Code
682 status collapsed
683
684 \begin_layout Plain Layout
685 doc/xx
686 \end_layout
687
688 \end_inset
689
690  where 
691 \begin_inset Quotes eld
692 \end_inset
693
694 xx
695 \begin_inset Quotes erd
696 \end_inset
697
698  is the ISO language code.
699  See 
700 \begin_inset CommandInset ref
701 LatexCommand ref
702 reference "cha:Internationalizing-LyX"
703
704 \end_inset
705
706  for details.
707 \end_layout
708
709 \begin_layout Labeling
710 \labelwidthstring 00.00.0000
711 \begin_inset Flex Code
712 status collapsed
713
714 \begin_layout Plain Layout
715 examples/
716 \end_layout
717
718 \end_inset
719
720  contains example files that explain how to use some features.
721  In the file browser, press the 
722 \begin_inset Flex Noun
723 status collapsed
724
725 \begin_layout Plain Layout
726 Examples
727 \end_layout
728
729 \end_inset
730
731  button to get there.
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 images/
741 \end_layout
742
743 \end_inset
744
745  contains image files that are used by the 
746 \begin_inset Flex Noun
747 status collapsed
748
749 \begin_layout Plain Layout
750 Document
751 \end_layout
752
753 \end_inset
754
755  dialog.
756  In addition, it also contains the individual icons used in the toolbar
757  and the banners that can be shown when \SpecialChar LyX
758  is launched.
759 \end_layout
760
761 \begin_layout Labeling
762 \labelwidthstring 00.00.0000
763 \begin_inset Flex Code
764 status collapsed
765
766 \begin_layout Plain Layout
767 kbd/
768 \end_layout
769
770 \end_inset
771
772  contains keyboard keymapping files.
773  See 
774 \begin_inset CommandInset ref
775 LatexCommand ref
776 reference "sec:International-Keymap-Stuff"
777
778 \end_inset
779
780  for details.
781 \end_layout
782
783 \begin_layout Labeling
784 \labelwidthstring 00.00.0000
785 \begin_inset Flex Code
786 status collapsed
787
788 \begin_layout Plain Layout
789 layouts/
790 \end_layout
791
792 \end_inset
793
794  contains the text class and module files described in 
795 \begin_inset CommandInset ref
796 LatexCommand ref
797 reference "cha:Installing-New-Document"
798
799 \end_inset
800
801 .
802 \end_layout
803
804 \begin_layout Labeling
805 \labelwidthstring 00.00.0000
806 \begin_inset Flex Code
807 status collapsed
808
809 \begin_layout Plain Layout
810 lyx2lyx
811 \end_layout
812
813 \end_inset
814
815  contains the 
816 \begin_inset Flex Code
817 status collapsed
818
819 \begin_layout Plain Layout
820 lyx2lyx
821 \end_layout
822
823 \end_inset
824
825  Python scripts used to convert between \SpecialChar LyX
826  versions.
827  These can be run from the command line if, say, you want to batch-convert
828  files.
829 \end_layout
830
831 \begin_layout Labeling
832 \labelwidthstring 00.00.0000
833 \begin_inset Flex Code
834 status collapsed
835
836 \begin_layout Plain Layout
837 scripts/
838 \end_layout
839
840 \end_inset
841
842  contains some files that demonstrate the capabilities of the 
843 \begin_inset Flex Noun
844 status collapsed
845
846 \begin_layout Plain Layout
847 External
848 \begin_inset space ~
849 \end_inset
850
851 Template
852 \end_layout
853
854 \end_inset
855
856  feature.
857  Also contains some scripts used by \SpecialChar LyX
858  itself.
859 \end_layout
860
861 \begin_layout Labeling
862 \labelwidthstring 00.00.0000
863 \begin_inset Flex Code
864 status collapsed
865
866 \begin_layout Plain Layout
867 templates/
868 \end_layout
869
870 \end_inset
871
872  contains the standard \SpecialChar LyX
873  template files described in 
874 \begin_inset CommandInset ref
875 LatexCommand ref
876 reference "subsec:Creating-Templates"
877
878 \end_inset
879
880 .
881 \end_layout
882
883 \begin_layout Labeling
884 \labelwidthstring 00.00.0000
885 \begin_inset Flex Code
886 status collapsed
887
888 \begin_layout Plain Layout
889 ui/
890 \end_layout
891
892 \end_inset
893
894  contains files with the extension 
895 \begin_inset Flex Code
896 status collapsed
897
898 \begin_layout Plain Layout
899 .ui
900 \end_layout
901
902 \end_inset
903
904  that define the user interface to \SpecialChar LyX
905 .
906  That is, the files define which items appear in which menus and the items
907  appearing on the toolbar.
908 \end_layout
909
910 \begin_layout Labeling
911 \labelwidthstring 00.00.0000
912 \begin_inset Flex Code
913 status collapsed
914
915 \begin_layout Plain Layout
916 xtemplates/
917 \end_layout
918
919 \end_inset
920
921  contains files with the extension 
922 \begin_inset Flex Code
923 status collapsed
924
925 \begin_layout Plain Layout
926 .xtemplate
927 \end_layout
928
929 \end_inset
930
931  which define the templates for the insertion of external material to a
932  \SpecialChar LyX
933  document; see 
934 \begin_inset CommandInset ref
935 LatexCommand ref
936 reference "chap:Including-External-Material"
937
938 \end_inset
939
940 .
941 \end_layout
942
943 \begin_layout Subsection
944 Files you don't want to modify
945 \end_layout
946
947 \begin_layout Standard
948 These files are used internally by \SpecialChar LyX
949  and you generally do not need to modify
950  them unless you are a developer.
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 CREDITS
960 \end_layout
961
962 \end_inset
963
964  this file contains the list of \SpecialChar LyX
965  developers.
966  The contents are displayed with the menu entry 
967 \begin_inset Flex Noun
968 status collapsed
969
970 \begin_layout Plain Layout
971 Help\SpecialChar menuseparator
972 About
973 \begin_inset space ~
974 \end_inset
975
976 LyX
977 \end_layout
978
979 \end_inset
980
981 .
982 \end_layout
983
984 \begin_layout Labeling
985 \labelwidthstring 00.00.0000
986 \begin_inset Flex Code
987 status collapsed
988
989 \begin_layout Plain Layout
990 chkconfig.ltx
991 \end_layout
992
993 \end_inset
994
995  this is a \SpecialChar LaTeX
996  script used during the configuration process.
997  Do not run directly.
998 \end_layout
999
1000 \begin_layout Labeling
1001 \labelwidthstring 00.00.0000
1002 \begin_inset Flex Code
1003 status collapsed
1004
1005 \begin_layout Plain Layout
1006 configure.py
1007 \end_layout
1008
1009 \end_inset
1010
1011  this is a Python script that is used to re-configure \SpecialChar LyX
1012 .
1013  It creates configuration files in the directory it was run from.
1014 \end_layout
1015
1016 \begin_layout Subsection
1017 Other files needing a line or two
1018 \end_layout
1019
1020 \begin_layout Labeling
1021 \labelwidthstring 00.00.0000
1022 \begin_inset Flex Code
1023 status collapsed
1024
1025 \begin_layout Plain Layout
1026 encodings
1027 \end_layout
1028
1029 \end_inset
1030
1031  this contains tables describing how different character encodings can be
1032  mapped to Unicode
1033 \end_layout
1034
1035 \begin_layout Labeling
1036 \labelwidthstring 00.00.0000
1037 \begin_inset Flex Code
1038 status collapsed
1039
1040 \begin_layout Plain Layout
1041 languages
1042 \end_layout
1043
1044 \end_inset
1045
1046  this file contains a list of all the languages currently supported by \SpecialChar LyX
1047 .
1048 \end_layout
1049
1050 \begin_layout Labeling
1051 \labelwidthstring 00.00.0000
1052 \begin_inset Flex Code
1053 status collapsed
1054
1055 \begin_layout Plain Layout
1056 latexfonts
1057 \end_layout
1058
1059 \end_inset
1060
1061  contains information about the supported fonts.
1062 \end_layout
1063
1064 \begin_layout Labeling
1065 \labelwidthstring 00.00.0000
1066 \begin_inset Flex Code
1067 status collapsed
1068
1069 \begin_layout Plain Layout
1070 layouttranslations
1071 \end_layout
1072
1073 \end_inset
1074
1075  this file contains translations for internationalized paragraph styles
1076  (see 
1077 \begin_inset CommandInset ref
1078 LatexCommand ref
1079 reference "subsec:I18n"
1080
1081 \end_inset
1082
1083 ).
1084 \end_layout
1085
1086 \begin_layout Labeling
1087 \labelwidthstring 00.00.0000
1088 \begin_inset Flex Code
1089 status collapsed
1090
1091 \begin_layout Plain Layout
1092 unicodesymbols
1093 \end_layout
1094
1095 \end_inset
1096
1097  this file contains information about Unicode-encoded glyphs and the way
1098  they are supported by \SpecialChar LyX
1099  via \SpecialChar LaTeX
1100 .
1101 \end_layout
1102
1103 \begin_layout Section
1104 Your local configuration directory
1105 \end_layout
1106
1107 \begin_layout Standard
1108 Even if you are using \SpecialChar LyX
1109  as an unprivileged user, you might want to change
1110  \SpecialChar LyX
1111  configuration for your own use.
1112  The 
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 UserDir
1118 \end_layout
1119
1120 \end_inset
1121
1122  directory contains all your personal configuration files.
1123  This is the directory described as 
1124 \begin_inset Quotes eld
1125 \end_inset
1126
1127 user directory
1128 \begin_inset Quotes erd
1129 \end_inset
1130
1131  in 
1132 \begin_inset Flex Noun
1133 status collapsed
1134
1135 \begin_layout Plain Layout
1136 Help\SpecialChar menuseparator
1137 About
1138 \begin_inset space ~
1139 \end_inset
1140
1141 LyX
1142 \end_layout
1143
1144 \end_inset
1145
1146 .
1147  This directory is used as a mirror of 
1148 \begin_inset Flex Code
1149 status collapsed
1150
1151 \begin_layout Plain Layout
1152 LyXDir
1153 \end_layout
1154
1155 \end_inset
1156
1157 , which means that every file in 
1158 \begin_inset Flex Code
1159 status collapsed
1160
1161 \begin_layout Plain Layout
1162 UserDir
1163 \end_layout
1164
1165 \end_inset
1166
1167  is a replacement for the corresponding file in 
1168 \begin_inset Flex Code
1169 status collapsed
1170
1171 \begin_layout Plain Layout
1172 LyXDir
1173 \end_layout
1174
1175 \end_inset
1176
1177 .
1178  Any configuration file described in the above sections can be placed either
1179  in the system-wide directory, in which case it will affect all users, or
1180  in your local directory for your own use.
1181 \end_layout
1182
1183 \begin_layout Standard
1184 To make things clearer, let's provide a few examples:
1185 \end_layout
1186
1187 \begin_layout Itemize
1188 The preferences set in the 
1189 \begin_inset Flex Noun
1190 status collapsed
1191
1192 \begin_layout Plain Layout
1193 Tools\SpecialChar menuseparator
1194 Preferences
1195 \end_layout
1196
1197 \end_inset
1198
1199  dialog are saved to a file 
1200 \begin_inset Flex Code
1201 status collapsed
1202
1203 \begin_layout Plain Layout
1204 preferences
1205 \end_layout
1206
1207 \end_inset
1208
1209  in 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214 UserDir
1215 \end_layout
1216
1217 \end_inset
1218
1219 .
1220 \end_layout
1221
1222 \begin_layout Itemize
1223 When you reconfigure using 
1224 \begin_inset Flex Noun
1225 status collapsed
1226
1227 \begin_layout Plain Layout
1228 Tools\SpecialChar menuseparator
1229 Reconfigure
1230 \end_layout
1231
1232 \end_inset
1233
1234 , \SpecialChar LyX
1235  runs the 
1236 \begin_inset Flex Code
1237 status collapsed
1238
1239 \begin_layout Plain Layout
1240 configure.py
1241 \end_layout
1242
1243 \end_inset
1244
1245  script, and the resulting files are written in your local configuration
1246  directory.
1247  This means that any additional text class file that you might have added
1248  in 
1249 \begin_inset Flex Code
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 UserDir/layouts
1254 \end_layout
1255
1256 \end_inset
1257
1258  will be added to the list of classes in the 
1259 \begin_inset Flex Noun
1260 status collapsed
1261
1262 \begin_layout Plain Layout
1263 Document\SpecialChar menuseparator
1264 Settings
1265 \end_layout
1266
1267 \end_inset
1268
1269  dialog.
1270 \end_layout
1271
1272 \begin_layout Itemize
1273 If you get some updated documentation from \SpecialChar LyX
1274  ftp site and cannot install
1275  it because you do not have sysadmin rights on your system, you can just
1276  copy the files in 
1277 \begin_inset Flex Code
1278 status collapsed
1279
1280 \begin_layout Plain Layout
1281 UserDir/doc/
1282 \end_layout
1283
1284 \end_inset
1285
1286  and the items in the 
1287 \begin_inset Flex Noun
1288 status collapsed
1289
1290 \begin_layout Plain Layout
1291 Help
1292 \end_layout
1293
1294 \end_inset
1295
1296  menu will open them!
1297 \end_layout
1298
1299 \begin_layout Section
1300 Running \SpecialChar LyX
1301  with multiple configurations
1302 \end_layout
1303
1304 \begin_layout Standard
1305 The configuration freedom of the local configuration directory may not suffice
1306  if you want to have more than one configuration at your disposal.
1307  For example, you may want to be use different key bindings or printer settings
1308  at different times.
1309  You can achieve this by having several such directories.
1310  You then specify which directory to use at run-time.
1311 \end_layout
1312
1313 \begin_layout Standard
1314 Invoking \SpecialChar LyX
1315  with the command line switch 
1316 \begin_inset Flex Code
1317 status collapsed
1318
1319 \begin_layout Plain Layout
1320 -userdir
1321 \end_layout
1322
1323 \end_inset
1324
1325  
1326 \emph on
1327 <some directory>
1328 \emph default
1329  instructs the program to read the configuration from that directory, and
1330  not from the default directory.
1331  (You can determine the default directory by running \SpecialChar LyX
1332  without the 
1333 \begin_inset Flex Code
1334 status collapsed
1335
1336 \begin_layout Plain Layout
1337 -userdir
1338 \end_layout
1339
1340 \end_inset
1341
1342  switch.) If the specified directory does not exist, \SpecialChar LyX
1343  offers to create it
1344  for you, just like it does for the default directory on the first time
1345  you run the program.
1346  You can modify the configuration options in this additional user directory
1347  exactly as you would for the default directory.
1348  These directories are completely independent (but read on).
1349  Note that setting the environment variable 
1350 \begin_inset Flex Code
1351 status collapsed
1352
1353 \begin_layout Plain Layout
1354 LYX_USERDIR_VER
1355 \end_layout
1356
1357 \end_inset
1358
1359  to some value has exactly the same effect.
1360 \end_layout
1361
1362 \begin_layout Standard
1363 Having several configurations also requires more maintenance: if you want
1364  to add a new layout to 
1365 \begin_inset Flex Code
1366 status collapsed
1367
1368 \begin_layout Plain Layout
1369 NewUserDir/layouts
1370 \end_layout
1371
1372 \end_inset
1373
1374  which you want available from all your configurations, you must add it
1375  to each directory separately.
1376  You can avoid this with the following trick: after \SpecialChar LyX
1377  creates the additional
1378  directory, most of the subdirectories (see above) are empty.
1379  If you want the new configuration to mirror an existing one, replace the
1380  empty subdirectory with a symbolic link to the matching subdirectory in
1381  the existing configuration.
1382  Take care with the 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387 doc/
1388 \end_layout
1389
1390 \end_inset
1391
1392  subdirectory, however, since it contains a file written by the configuration
1393  script (also accessible through 
1394 \begin_inset Flex Noun
1395 status collapsed
1396
1397 \begin_layout Plain Layout
1398 Tools\SpecialChar menuseparator
1399 Reconfigure
1400 \end_layout
1401
1402 \end_inset
1403
1404 ) which is configuration-specific.
1405 \end_layout
1406
1407 \begin_layout Chapter
1408 The Preferences dialog
1409 \end_layout
1410
1411 \begin_layout Standard
1412 All options of the preferences dialog are described in the Appendix 
1413 \emph on
1414 The Preferences Dialog
1415 \emph default
1416  in the 
1417 \emph on
1418 User's Guide
1419 \emph default
1420 .
1421  For some options you might find here more details.
1422 \end_layout
1423
1424 \begin_layout Section
1425 Formats
1426 \begin_inset CommandInset label
1427 LatexCommand label
1428 name "sec:Formats"
1429
1430 \end_inset
1431
1432
1433 \end_layout
1434
1435 \begin_layout Standard
1436 The first step is to define your file formats if they are not already defined.
1437  To do so, open the 
1438 \begin_inset Flex Noun
1439 status collapsed
1440
1441 \begin_layout Plain Layout
1442 Tools\SpecialChar menuseparator
1443 Preferences
1444 \end_layout
1445
1446 \end_inset
1447
1448  dialog.
1449  Under 
1450 \begin_inset Flex Noun
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454 File Handling\SpecialChar menuseparator
1455 File formats
1456 \end_layout
1457
1458 \end_inset
1459
1460  press the 
1461 \begin_inset Flex Noun
1462 status collapsed
1463
1464 \begin_layout Plain Layout
1465 New
1466 \end_layout
1467
1468 \end_inset
1469
1470  button to define your new format.
1471  The 
1472 \begin_inset Flex Noun
1473 status collapsed
1474
1475 \begin_layout Plain Layout
1476 Format
1477 \end_layout
1478
1479 \end_inset
1480
1481  field contains the name used to identify the format in the GUI.
1482  The 
1483 \begin_inset Flex Noun
1484 status collapsed
1485
1486 \begin_layout Plain Layout
1487 Short Name
1488 \end_layout
1489
1490 \end_inset
1491
1492  is used to identify the format internally.
1493  You will also need to enter a file extension.
1494  These are all required.
1495  The optional 
1496 \begin_inset Flex Noun
1497 status collapsed
1498
1499 \begin_layout Plain Layout
1500 Shortcut
1501 \end_layout
1502
1503 \end_inset
1504
1505  field is used to provide a keyboard shortcut on the menus.
1506  (For example, pressing 
1507 \begin_inset Flex Noun
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 Ctrl+D
1512 \end_layout
1513
1514 \end_inset
1515
1516  will 
1517 \begin_inset Flex Noun
1518 status collapsed
1519
1520 \begin_layout Plain Layout
1521 Document\SpecialChar menuseparator
1522 View (Other Formats)\SpecialChar menuseparator
1523 DVI
1524 \end_layout
1525
1526 \end_inset
1527
1528 .) 
1529 \end_layout
1530
1531 \begin_layout Standard
1532 A Format can have a 
1533 \begin_inset Flex Noun
1534 status collapsed
1535
1536 \begin_layout Plain Layout
1537 Viewer
1538 \end_layout
1539
1540 \end_inset
1541
1542  and an 
1543 \begin_inset Flex Noun
1544 status collapsed
1545
1546 \begin_layout Plain Layout
1547 Editor
1548 \end_layout
1549
1550 \end_inset
1551
1552  associated with it.
1553  For example, you might want to use 
1554 \begin_inset Flex Noun
1555 status collapsed
1556
1557 \begin_layout Plain Layout
1558 Ghostview
1559 \end_layout
1560
1561 \end_inset
1562
1563  to view PostScript files.
1564  You can enter the command needed to start the program in the corresponding
1565  fields.
1566  In defining this command, you can use the four variables listed in the
1567  next section.
1568  The viewer is launched when you view an image in \SpecialChar LyX
1569  or use the 
1570 \begin_inset Flex Noun
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 Document\SpecialChar menuseparator
1575 View
1576 \end_layout
1577
1578 \end_inset
1579
1580  menu.
1581  The editor is for example launched when you right-click on an image and
1582  choose 
1583 \begin_inset Flex Noun
1584 status collapsed
1585
1586 \begin_layout Plain Layout
1587 Edit externally
1588 \end_layout
1589
1590 \end_inset
1591
1592  in the appearing context menu.
1593 \end_layout
1594
1595 \begin_layout Standard
1596 The 
1597 \begin_inset Flex Noun
1598 status collapsed
1599
1600 \begin_layout Plain Layout
1601 MIME
1602 \end_layout
1603
1604 \end_inset
1605
1606  type of a format is optional, but if it is specified, it must be unique
1607  across all formats.
1608  It is used to detect files of this format from the file contents.
1609  For some important file formats there is no MIME type officially registered
1610  with the 
1611 \begin_inset CommandInset href
1612 LatexCommand href
1613 name "IANA"
1614 target "http://www.iana.org/assignments/media-types/"
1615 literal "false"
1616
1617 \end_inset
1618
1619 .
1620  Therefore \SpecialChar LyX
1621  uses the extended list of MIME types as specified by 
1622 \begin_inset CommandInset href
1623 LatexCommand href
1624 name "freedesktop.org"
1625 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1626 literal "false"
1627
1628 \end_inset
1629
1630 .
1631 \end_layout
1632
1633 \begin_layout Standard
1634 The 
1635 \begin_inset Flex Noun
1636 status collapsed
1637
1638 \begin_layout Plain Layout
1639 Document format
1640 \end_layout
1641
1642 \end_inset
1643
1644  option tells \SpecialChar LyX
1645  that a format is suitable for document export.
1646  If this is set and if a suitable conversion route exists (see 
1647 \begin_inset CommandInset ref
1648 LatexCommand ref
1649 reference "sec:Converters"
1650
1651 \end_inset
1652
1653 ), the format will appear in the 
1654 \begin_inset Flex Noun
1655 status collapsed
1656
1657 \begin_layout Plain Layout
1658 File\SpecialChar menuseparator
1659 Export
1660 \end_layout
1661
1662 \end_inset
1663
1664  menu.
1665  The format will also appear in the 
1666 \begin_inset Flex Noun
1667 status collapsed
1668
1669 \begin_layout Plain Layout
1670 Document\SpecialChar menuseparator
1671 View
1672 \end_layout
1673
1674 \end_inset
1675
1676  menu if a viewer is specified for the format.
1677  Pure image formats, such as 
1678 \begin_inset Flex Code
1679 status collapsed
1680
1681 \begin_layout Plain Layout
1682 png
1683 \end_layout
1684
1685 \end_inset
1686
1687 , should not use this option.
1688  Formats that can both represent vector graphics and documents like 
1689 \begin_inset Flex Code
1690 status collapsed
1691
1692 \begin_layout Plain Layout
1693 pdf
1694 \end_layout
1695
1696 \end_inset
1697
1698  should use it.
1699 \end_layout
1700
1701 \begin_layout Standard
1702 The option 
1703 \begin_inset Flex Noun
1704 status collapsed
1705
1706 \begin_layout Plain Layout
1707 Vector graphics format
1708 \end_layout
1709
1710 \end_inset
1711
1712  tells \SpecialChar LyX
1713  that a format can contain vector graphics.
1714  This information is used to determine the target format of included graphics
1715  for 
1716 \begin_inset Flex Noun
1717 status collapsed
1718
1719 \begin_layout Plain Layout
1720 pdflatex
1721 \end_layout
1722
1723 \end_inset
1724
1725  export.
1726  Included graphics may need to be converted to either 
1727 \begin_inset Flex Noun
1728 status collapsed
1729
1730 \begin_layout Plain Layout
1731 pdf
1732 \end_layout
1733
1734 \end_inset
1735
1736
1737 \begin_inset Flex Noun
1738 status collapsed
1739
1740 \begin_layout Plain Layout
1741 png
1742 \end_layout
1743
1744 \end_inset
1745
1746 , or 
1747 \begin_inset Flex Noun
1748 status collapsed
1749
1750 \begin_layout Plain Layout
1751 jpg
1752 \end_layout
1753
1754 \end_inset
1755
1756 , since 
1757 \begin_inset Flex Noun
1758 status collapsed
1759
1760 \begin_layout Plain Layout
1761 pdflatex
1762 \end_layout
1763
1764 \end_inset
1765
1766  cannot handle other image formats.
1767  If an included graphic is not already in 
1768 \begin_inset Flex Noun
1769 status collapsed
1770
1771 \begin_layout Plain Layout
1772 pdf
1773 \end_layout
1774
1775 \end_inset
1776
1777
1778 \begin_inset Flex Noun
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 png
1783 \end_layout
1784
1785 \end_inset
1786
1787 , or 
1788 \begin_inset Flex Noun
1789 status collapsed
1790
1791 \begin_layout Plain Layout
1792 jpg
1793 \end_layout
1794
1795 \end_inset
1796
1797  format, it is converted to 
1798 \begin_inset Flex Noun
1799 status collapsed
1800
1801 \begin_layout Plain Layout
1802 pdf
1803 \end_layout
1804
1805 \end_inset
1806
1807  if the vector format option is set, and otherwise to 
1808 \begin_inset Flex Noun
1809 status collapsed
1810
1811 \begin_layout Plain Layout
1812 png
1813 \end_layout
1814
1815 \end_inset
1816
1817 .
1818 \end_layout
1819
1820 \begin_layout Section
1821 Copiers
1822 \end_layout
1823
1824 \begin_layout Standard
1825 Since all conversions from one format to another take place in \SpecialChar LyX
1826 's temporary
1827  directory, it is sometimes necessary to modify a file before copying it
1828  to the temporary directory in order that the conversion may be performed.
1829 \begin_inset Foot
1830 status collapsed
1831
1832 \begin_layout Plain Layout
1833 For example, the file may refer to other files—images, for example—using
1834  relative file names, and these may become invalid when the file is copied
1835  to the temporary directory.
1836 \end_layout
1837
1838 \end_inset
1839
1840  This is done by a Copier: It copies a file to (or from) the temporary directory
1841  and may modify it in the process.
1842 \end_layout
1843
1844 \begin_layout Standard
1845 The definitions of the copiers may use eight variables:
1846 \end_layout
1847
1848 \begin_layout Labeling
1849 \labelwidthstring 00.00.0000
1850 \begin_inset Flex Code
1851 status collapsed
1852
1853 \begin_layout Plain Layout
1854 $$s
1855 \end_layout
1856
1857 \end_inset
1858
1859  The \SpecialChar LyX
1860  system directory (e.
1861 \begin_inset space \thinspace{}
1862 \end_inset
1863
1864 g.
1865 \begin_inset space \space{}
1866 \end_inset
1867
1868
1869 \begin_inset Flex Noun
1870 status collapsed
1871
1872 \begin_layout Plain Layout
1873 /usr/share/lyx
1874 \end_layout
1875
1876 \end_inset
1877
1878 ).
1879 \end_layout
1880
1881 \begin_layout Labeling
1882 \labelwidthstring 00.00.0000
1883 \begin_inset Flex Code
1884 status collapsed
1885
1886 \begin_layout Plain Layout
1887 $$i
1888 \end_layout
1889
1890 \end_inset
1891
1892  The input file
1893 \end_layout
1894
1895 \begin_layout Labeling
1896 \labelwidthstring 00.00.0000
1897 \begin_inset Flex Code
1898 status collapsed
1899
1900 \begin_layout Plain Layout
1901 $$o
1902 \end_layout
1903
1904 \end_inset
1905
1906  The output file
1907 \end_layout
1908
1909 \begin_layout Labeling
1910 \labelwidthstring 00.00.0000
1911 \begin_inset Flex Code
1912 status collapsed
1913
1914 \begin_layout Plain Layout
1915 $$b
1916 \end_layout
1917
1918 \end_inset
1919
1920  The base name (without filename extension) in the \SpecialChar LyX
1921  temporary directory
1922 \end_layout
1923
1924 \begin_layout Labeling
1925 \labelwidthstring 00.00.0000
1926 \begin_inset Flex Code
1927 status collapsed
1928
1929 \begin_layout Plain Layout
1930 $$p
1931 \end_layout
1932
1933 \end_inset
1934
1935  The full directory path of the \SpecialChar LyX
1936  temporary directory
1937 \end_layout
1938
1939 \begin_layout Labeling
1940 \labelwidthstring 00.00.0000
1941 \begin_inset Flex Code
1942 status collapsed
1943
1944 \begin_layout Plain Layout
1945 $$r
1946 \end_layout
1947
1948 \end_inset
1949
1950  The full pathname to the original \SpecialChar LyX
1951  file being processed
1952 \end_layout
1953
1954 \begin_layout Labeling
1955 \labelwidthstring 00.00.0000
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 $$f
1961 \end_layout
1962
1963 \end_inset
1964
1965  The filename (without any directory path) of the \SpecialChar LyX
1966  file.
1967 \end_layout
1968
1969 \begin_layout Labeling
1970 \labelwidthstring 00.00.0000
1971 \begin_inset Flex Code
1972 status collapsed
1973
1974 \begin_layout Plain Layout
1975 $$l
1976 \end_layout
1977
1978 \end_inset
1979
1980  The `\SpecialChar LaTeX
1981  name'
1982 \end_layout
1983
1984 \begin_layout Standard
1985 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1986 's 
1987 \series bold
1988
1989 \backslash
1990 include
1991 \series default
1992  command.
1993  It is relevant only when exporting files suitable for such inclusion.
1994 \end_layout
1995
1996 \begin_layout Standard
1997 Copiers can be used to do almost anything with output files.
1998  For example, suppose you want generated pdf files to be copied to a special
1999  directory, 
2000 \begin_inset Flex Code
2001 status collapsed
2002
2003 \begin_layout Plain Layout
2004 /home/you/pdf/
2005 \end_layout
2006
2007 \end_inset
2008
2009 .
2010  Then you could write a shell script such as this one:
2011 \end_layout
2012
2013 \begin_layout Standard
2014 \begin_inset listings
2015 inline false
2016 status open
2017
2018 \begin_layout Plain Layout
2019
2020 #!/bin/bash
2021 \end_layout
2022
2023 \begin_layout Plain Layout
2024
2025 FROMFILE=$1
2026 \end_layout
2027
2028 \begin_layout Plain Layout
2029
2030 TOFILE=`basename $2`
2031 \end_layout
2032
2033 \begin_layout Plain Layout
2034
2035 cp $FROMFILE /home/you/pdf/$TOFILE
2036 \end_layout
2037
2038 \end_inset
2039
2040 Save it in your local \SpecialChar LyX
2041  directory—say, 
2042 \begin_inset Flex Code
2043 status collapsed
2044
2045 \begin_layout Plain Layout
2046 /home/you/.lyx/scripts/pdfcopier.sh
2047 \end_layout
2048
2049 \end_inset
2050
2051 —and make it executable, if you need to do so on your platform.
2052  Then, in the 
2053 \begin_inset Flex Noun
2054 status collapsed
2055
2056 \begin_layout Plain Layout
2057 Tools\SpecialChar menuseparator
2058 Preferences
2059 \end_layout
2060
2061 \end_inset
2062
2063  dialog, select under 
2064 \begin_inset Flex Noun
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 File Handling\SpecialChar menuseparator
2069 File formats
2070 \end_layout
2071
2072 \end_inset
2073
2074  the 
2075 \begin_inset Flex Noun
2076 status collapsed
2077
2078 \begin_layout Plain Layout
2079 PDF(pdflatex)
2080 \end_layout
2081
2082 \end_inset
2083
2084  format—or one of the other pdf formats—and enter 
2085 \begin_inset Flex Code
2086 status collapsed
2087
2088 \begin_layout Plain Layout
2089 pdfcopier.sh $$i $$o
2090 \end_layout
2091
2092 \end_inset
2093
2094  into the 
2095 \begin_inset Flex Noun
2096 status collapsed
2097
2098 \begin_layout Plain Layout
2099 Copier
2100 \end_layout
2101
2102 \end_inset
2103
2104  field.
2105  
2106 \end_layout
2107
2108 \begin_layout Standard
2109 Copiers are used by \SpecialChar LyX
2110  in various of its own conversions.
2111  For example, if appropriate programs are found, \SpecialChar LyX
2112  will automatically install
2113  copiers for the 
2114 \begin_inset Flex Noun
2115 status collapsed
2116
2117 \begin_layout Plain Layout
2118 HTML
2119 \end_layout
2120
2121 \end_inset
2122
2123  and 
2124 \begin_inset Flex Noun
2125 status collapsed
2126
2127 \begin_layout Plain Layout
2128 HTML
2129 \begin_inset space ~
2130 \end_inset
2131
2132 (MS Word)
2133 \end_layout
2134
2135 \end_inset
2136
2137  formats.
2138  When these formats are exported, the copier sees that not just the main
2139  HTML file but various associated files (style files, images, etc.) are also
2140  copied.
2141  All these files are written to a subdirectory of the directory in which
2142  the original \SpecialChar LyX
2143  file was found.
2144 \begin_inset Foot
2145 status collapsed
2146
2147 \begin_layout Plain Layout
2148 This copier can be customized.
2149  The optional 
2150 \begin_inset Quotes eld
2151 \end_inset
2152
2153 -e
2154 \begin_inset Quotes erd
2155 \end_inset
2156
2157  argument takes a comma-separated list of extensions to be copied; if it
2158  is omitted, all files will be copied.
2159  The 
2160 \begin_inset Quotes eld
2161 \end_inset
2162
2163 -t
2164 \begin_inset Quotes erd
2165 \end_inset
2166
2167  argument determines the extension added to the generated directory.
2168  By default, it is 
2169 \begin_inset Quotes eld
2170 \end_inset
2171
2172
2173 \begin_inset Flex Noun
2174 status collapsed
2175
2176 \begin_layout Plain Layout
2177 LyXconv
2178 \end_layout
2179
2180 \end_inset
2181
2182
2183 \begin_inset Quotes erd
2184 \end_inset
2185
2186 , so HTML generated from 
2187 \begin_inset Flex Noun
2188 status collapsed
2189
2190 \begin_layout Plain Layout
2191 /path/to/filename.lyx
2192 \end_layout
2193
2194 \end_inset
2195
2196  will end up in 
2197 \begin_inset Flex Noun
2198 status collapsed
2199
2200 \begin_layout Plain Layout
2201 /path/to/filename.html.LyXconv
2202 \end_layout
2203
2204 \end_inset
2205
2206 .
2207  
2208 \end_layout
2209
2210 \end_inset
2211
2212
2213 \end_layout
2214
2215 \begin_layout Section
2216 Converters
2217 \begin_inset CommandInset label
2218 LatexCommand label
2219 name "sec:Converters"
2220
2221 \end_inset
2222
2223
2224 \end_layout
2225
2226 \begin_layout Standard
2227 You can define your own Converters to convert files between different formats.
2228  This is done in the 
2229 \begin_inset Flex Noun
2230 status collapsed
2231
2232 \begin_layout Plain Layout
2233 Tools\SpecialChar menuseparator
2234 Preferences\SpecialChar menuseparator
2235 File Handling\SpecialChar menuseparator
2236 Converters
2237 \end_layout
2238
2239 \end_inset
2240
2241  dialog.
2242 \end_layout
2243
2244 \begin_layout Standard
2245 To define a new converter, select the 
2246 \begin_inset Flex Noun
2247 status collapsed
2248
2249 \begin_layout Plain Layout
2250 From
2251 \begin_inset space ~
2252 \end_inset
2253
2254 format
2255 \end_layout
2256
2257 \end_inset
2258
2259  and 
2260 \begin_inset Flex Noun
2261 status collapsed
2262
2263 \begin_layout Plain Layout
2264 To
2265 \begin_inset space ~
2266 \end_inset
2267
2268 format
2269 \end_layout
2270
2271 \end_inset
2272
2273  from the drop-down lists, enter the command needed for the conversion,
2274  and then press the 
2275 \begin_inset Flex Noun
2276 status collapsed
2277
2278 \begin_layout Plain Layout
2279 Add
2280 \end_layout
2281
2282 \end_inset
2283
2284  button.
2285  Several variables can be used in the definition of converters:
2286 \end_layout
2287
2288 \begin_layout Labeling
2289 \labelwidthstring 00.00.0000
2290 \begin_inset Flex Code
2291 status collapsed
2292
2293 \begin_layout Plain Layout
2294 $$s
2295 \end_layout
2296
2297 \end_inset
2298
2299  The \SpecialChar LyX
2300  system directory
2301 \end_layout
2302
2303 \begin_layout Labeling
2304 \labelwidthstring 00.00.0000
2305 \begin_inset Flex Code
2306 status collapsed
2307
2308 \begin_layout Plain Layout
2309 $$i
2310 \end_layout
2311
2312 \end_inset
2313
2314  The input file
2315 \end_layout
2316
2317 \begin_layout Labeling
2318 \labelwidthstring 00.00.0000
2319 \begin_inset Flex Code
2320 status collapsed
2321
2322 \begin_layout Plain Layout
2323 $$o
2324 \end_layout
2325
2326 \end_inset
2327
2328  The output file
2329 \end_layout
2330
2331 \begin_layout Labeling
2332 \labelwidthstring 00.00.0000
2333 \begin_inset Flex Code
2334 status collapsed
2335
2336 \begin_layout Plain Layout
2337 $$b
2338 \end_layout
2339
2340 \end_inset
2341
2342  The base filename of the input file (i.
2343 \begin_inset space \thinspace{}
2344 \end_inset
2345
2346 g., without the extension)
2347 \end_layout
2348
2349 \begin_layout Labeling
2350 \labelwidthstring 00.00.0000
2351 \begin_inset Flex Code
2352 status collapsed
2353
2354 \begin_layout Plain Layout
2355 $$p
2356 \end_layout
2357
2358 \end_inset
2359
2360  The path to the input file
2361 \end_layout
2362
2363 \begin_layout Labeling
2364 \labelwidthstring 00.00.0000
2365 \begin_inset Flex Code
2366 status collapsed
2367
2368 \begin_layout Plain Layout
2369 $$r
2370 \end_layout
2371
2372 \end_inset
2373
2374  The path to the original input file (this is different from $$p when a
2375  chain of converters is called)
2376 \end_layout
2377
2378 \begin_layout Labeling
2379 \labelwidthstring 00.00.0000
2380 \begin_inset Flex Code
2381 status collapsed
2382
2383 \begin_layout Plain Layout
2384 $$e
2385 \end_layout
2386
2387 \end_inset
2388
2389  The iconv name for the encoding of the document.
2390 \end_layout
2391
2392 \begin_layout Standard
2393 In the 
2394 \begin_inset Flex Noun
2395 status collapsed
2396
2397 \begin_layout Plain Layout
2398 Extra
2399 \begin_inset space ~
2400 \end_inset
2401
2402 Flag
2403 \end_layout
2404
2405 \end_inset
2406
2407  field you can enter the following flags, separated by commas:
2408 \end_layout
2409
2410 \begin_layout Labeling
2411 \labelwidthstring 00.00.0000
2412 \begin_inset Flex Code
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 latex
2417 \change_inserted -712698321 1524656940
2418 =flavor
2419 \change_unchanged
2420
2421 \end_layout
2422
2423 \end_inset
2424
2425  This converter runs some form of \SpecialChar LaTeX
2426 .
2427  This will make \SpecialChar LyX
2428 's \SpecialChar LaTeX
2429  error logs available.
2430
2431 \change_inserted -712698321 1524657018
2432  The optional 
2433 \begin_inset Flex Code
2434 status open
2435
2436 \begin_layout Plain Layout
2437
2438 \change_inserted -712698321 1524657012
2439 flavor
2440 \change_unchanged
2441
2442 \end_layout
2443
2444 \end_inset
2445
2446  value specifies the form of \SpecialChar LaTeX
2447  that is run (
2448 \begin_inset Flex Code
2449 status open
2450
2451 \begin_layout Plain Layout
2452
2453 \change_inserted -712698321 1524657005
2454 latex, pdflatex, platex, xetex, luatex
2455 \change_unchanged
2456
2457 \end_layout
2458
2459 \end_inset
2460
2461 ).
2462  If no value is specified, 
2463 \begin_inset Flex Code
2464 status open
2465
2466 \begin_layout Plain Layout
2467
2468 \change_inserted -712698321 1524657018
2469 latex
2470 \change_unchanged
2471
2472 \end_layout
2473
2474 \end_inset
2475
2476  is used.
2477 \change_unchanged
2478
2479 \end_layout
2480
2481 \begin_layout Labeling
2482 \labelwidthstring 00.00.0000
2483 \begin_inset Flex Code
2484 status collapsed
2485
2486 \begin_layout Plain Layout
2487 needaux
2488 \change_inserted -712698321 1524656935
2489 =flavor
2490 \change_unchanged
2491
2492 \end_layout
2493
2494 \end_inset
2495
2496  Needs the \SpecialChar LaTeX
2497  
2498 \begin_inset Flex Noun
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 .aux
2503 \end_layout
2504
2505 \end_inset
2506
2507  file for the conversion.
2508
2509 \change_inserted -712698321 1524657047
2510  The optional 
2511 \begin_inset Flex Code
2512 status open
2513
2514 \begin_layout Plain Layout
2515
2516 \change_inserted -712698321 1524657030
2517 flavor
2518 \end_layout
2519
2520 \end_inset
2521
2522  value specifies the form of \SpecialChar LaTeX
2523  that is run in order to generate the 
2524 \begin_inset Flex Noun
2525 status collapsed
2526
2527 \begin_layout Plain Layout
2528
2529 \change_inserted -712698321 1524657047
2530 .aux
2531 \end_layout
2532
2533 \end_inset
2534
2535  file (
2536 \begin_inset Flex Code
2537 status open
2538
2539 \begin_layout Plain Layout
2540
2541 \change_inserted -712698321 1524657030
2542 latex, pdflatex, platex, xetex, luatex
2543 \end_layout
2544
2545 \end_inset
2546
2547 ).
2548  If no value is specified, 
2549 \begin_inset Flex Code
2550 status open
2551
2552 \begin_layout Plain Layout
2553
2554 \change_inserted -712698321 1524657030
2555 latex
2556 \end_layout
2557
2558 \end_inset
2559
2560  is used.
2561 \change_unchanged
2562
2563 \end_layout
2564
2565 \begin_layout Labeling
2566 \labelwidthstring 00.00.0000
2567 \begin_inset Flex Code
2568 status collapsed
2569
2570 \begin_layout Plain Layout
2571 nice
2572 \end_layout
2573
2574 \end_inset
2575
2576  Needs a 
2577 \begin_inset Quotes eld
2578 \end_inset
2579
2580 nice
2581 \begin_inset Quotes erd
2582 \end_inset
2583
2584  file from the backend, which in practice means a \SpecialChar LaTeX
2585  file like the one we
2586  would export, without 
2587 \begin_inset Flex Code
2588 status collapsed
2589
2590 \begin_layout Plain Layout
2591 input@path
2592 \end_layout
2593
2594 \end_inset
2595
2596 .
2597 \end_layout
2598
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2601 \begin_inset Flex Code
2602 status collapsed
2603
2604 \begin_layout Plain Layout
2605 xml
2606 \end_layout
2607
2608 \end_inset
2609
2610  Output is XML.
2611 \end_layout
2612
2613 \begin_layout Standard
2614 The following three flags are not really flags at all because they take
2615  an argument in the 
2616 \begin_inset Flex Noun
2617 status collapsed
2618
2619 \begin_layout Plain Layout
2620 key
2621 \begin_inset space ~
2622 \end_inset
2623
2624 =
2625 \begin_inset space ~
2626 \end_inset
2627
2628 value
2629 \end_layout
2630
2631 \end_inset
2632
2633  format:
2634 \end_layout
2635
2636 \begin_layout Labeling
2637 \labelwidthstring 00.00.0000
2638
2639 \change_inserted -712698321 1523206314
2640 \begin_inset Flex Code
2641 status collapsed
2642
2643 \begin_layout Plain Layout
2644
2645 \change_inserted -712698321 1523206193
2646 hyperref-driver
2647 \end_layout
2648
2649 \end_inset
2650
2651  The name of the driver that needs to be loaded with the 
2652 \family sans
2653 hyperref
2654 \family default
2655  package for this converter.
2656  The loading of the correct driver is necessary to get some PDF-specific
2657  features.
2658  See the 
2659 \family sans
2660 hyperref
2661 \family default
2662  manual for details.
2663 \end_layout
2664
2665 \begin_layout Labeling
2666 \labelwidthstring 00.00.0000
2667 \begin_inset Flex Code
2668 status collapsed
2669
2670 \begin_layout Plain Layout
2671 parselog
2672 \end_layout
2673
2674 \end_inset
2675
2676  If set, the converter's standard error will be redirected to a file 
2677 \begin_inset Flex Code
2678 status collapsed
2679
2680 \begin_layout Plain Layout
2681 infile.out
2682 \end_layout
2683
2684 \end_inset
2685
2686 , and the script given as argument will be run as: 
2687 \begin_inset Flex Code
2688 status collapsed
2689
2690 \begin_layout Plain Layout
2691 script < infile.out > infile.log
2692 \end_layout
2693
2694 \end_inset
2695
2696 .
2697  The argument may contain 
2698 \begin_inset Flex Code
2699 status collapsed
2700
2701 \begin_layout Plain Layout
2702 $$s
2703 \end_layout
2704
2705 \end_inset
2706
2707 .
2708 \end_layout
2709
2710 \begin_layout Labeling
2711 \labelwidthstring 00.00.0000
2712 \begin_inset Flex Code
2713 status collapsed
2714
2715 \begin_layout Plain Layout
2716 resultdir
2717 \end_layout
2718
2719 \end_inset
2720
2721  The name of the directory in which the converter will dump the generated
2722  files.
2723  \SpecialChar LyX
2724  will not create this directory, and it does not copy anything into it,
2725  though it will copy this directory to the destination.
2726  The argument may contain 
2727 \begin_inset Flex Code
2728 status collapsed
2729
2730 \begin_layout Plain Layout
2731 $$b
2732 \end_layout
2733
2734 \end_inset
2735
2736 , which will be replaced by the base name of the input and output files,
2737  respectively, when the directory is copied.
2738 \begin_inset Newline newline
2739 \end_inset
2740
2741 Note that resultdir and usetempdir make no sense together.
2742  The latter will be ignored if the former is given.
2743 \end_layout
2744
2745 \begin_layout Labeling
2746 \labelwidthstring 00.00.0000
2747 \begin_inset Flex Code
2748 status collapsed
2749
2750 \begin_layout Plain Layout
2751 resultfile
2752 \end_layout
2753
2754 \end_inset
2755
2756  Determines the output file name and may, contain 
2757 \begin_inset Flex Code
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 $$b
2762 \end_layout
2763
2764 \end_inset
2765
2766 .
2767  Sensible only with resultdir and optional even then; if not given, it defaults
2768  to `index'.
2769 \end_layout
2770
2771 \begin_layout Standard
2772
2773 \change_inserted -712698321 1523206384
2774 A suitable hyperref-driver is set for some converters that are installed
2775  with \SpecialChar LyX
2776 .
2777  
2778 \change_deleted -712698321 1523206388
2779 None of these
2780 \change_inserted -712698321 1523206389
2781 The
2782 \change_unchanged
2783  last three
2784 \change_inserted -712698321 1523206400
2785  flags, however,
2786 \change_unchanged
2787  are presently 
2788 \change_inserted -712698321 1523206407
2789 not 
2790 \change_unchanged
2791 used in any of the 
2792 \change_inserted -712698321 1523206437
2793 pre-installed 
2794 \change_unchanged
2795 converters
2796 \change_deleted -712698321 1523206442
2797  that are installed with \SpecialChar LyX
2798
2799 \change_unchanged
2800 .
2801  
2802 \end_layout
2803
2804 \begin_layout Standard
2805 You do not have to define converters for all formats between which you want
2806  to convert.
2807  For example, you will note that there is no `\SpecialChar LyX
2808  to PostScript' converter,
2809  but \SpecialChar LyX
2810  will export PostScript.
2811  It does so by first creating a \SpecialChar LaTeX
2812  file (no converter needs to be defined
2813  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2814  to DVI' converter,
2815  and finally converting the resulting DVI file to PostScript.
2816  \SpecialChar LyX
2817  finds such `chains' of converters automatically, and it will always choose
2818  the shortest possible chain.
2819  You can, though, still define multiple conversion methods between file
2820  formats.
2821  For example, the standard \SpecialChar LyX
2822  configuration provides five ways to convert
2823  \SpecialChar LaTeX
2824  to PDF:
2825 \end_layout
2826
2827 \begin_layout Enumerate
2828 Directly, using 
2829 \begin_inset Flex Noun
2830 status collapsed
2831
2832 \begin_layout Plain Layout
2833 pdflatex
2834 \end_layout
2835
2836 \end_inset
2837
2838
2839 \end_layout
2840
2841 \begin_layout Enumerate
2842 via (DVI and) PostScript, using 
2843 \begin_inset Flex Noun
2844 status collapsed
2845
2846 \begin_layout Plain Layout
2847 ps2pdf
2848 \end_layout
2849
2850 \end_inset
2851
2852
2853 \end_layout
2854
2855 \begin_layout Enumerate
2856 via DVI, using 
2857 \begin_inset Flex Noun
2858 status collapsed
2859
2860 \begin_layout Plain Layout
2861 dvipdfm
2862 \end_layout
2863
2864 \end_inset
2865
2866
2867 \end_layout
2868
2869 \begin_layout Enumerate
2870 directly using 
2871 \begin_inset Flex Noun
2872 status collapsed
2873
2874 \begin_layout Plain Layout
2875 Xe\SpecialChar TeX
2876
2877 \end_layout
2878
2879 \end_inset
2880
2881
2882 \end_layout
2883
2884 \begin_layout Enumerate
2885 directly using 
2886 \begin_inset Flex Noun
2887 status collapsed
2888
2889 \begin_layout Plain Layout
2890 Lua\SpecialChar TeX
2891
2892 \end_layout
2893
2894 \end_inset
2895
2896
2897 \end_layout
2898
2899 \begin_layout Standard
2900 To define such alternate chains, you must define multiple target `file formats',
2901  as described in 
2902 \begin_inset CommandInset ref
2903 LatexCommand ref
2904 reference "sec:Formats"
2905
2906 \end_inset
2907
2908 .
2909  For example, in the standard configuration, the formats named 
2910 \begin_inset Flex Noun
2911 status collapsed
2912
2913 \begin_layout Plain Layout
2914 pdf
2915 \end_layout
2916
2917 \end_inset
2918
2919  (for 
2920 \begin_inset Flex Noun
2921 status collapsed
2922
2923 \begin_layout Plain Layout
2924 ps2pdf
2925 \end_layout
2926
2927 \end_inset
2928
2929 ), 
2930 \begin_inset Flex Noun
2931 status collapsed
2932
2933 \begin_layout Plain Layout
2934 pdf2
2935 \end_layout
2936
2937 \end_inset
2938
2939  (for 
2940 \begin_inset Flex Noun
2941 status collapsed
2942
2943 \begin_layout Plain Layout
2944 pdflatex
2945 \end_layout
2946
2947 \end_inset
2948
2949 ), 
2950 \begin_inset Flex Noun
2951 status collapsed
2952
2953 \begin_layout Plain Layout
2954 pdf3
2955 \end_layout
2956
2957 \end_inset
2958
2959  (for 
2960 \begin_inset Flex Noun
2961 status collapsed
2962
2963 \begin_layout Plain Layout
2964 dvipdfm
2965 \end_layout
2966
2967 \end_inset
2968
2969 ), 
2970 \begin_inset Flex Noun
2971 status collapsed
2972
2973 \begin_layout Plain Layout
2974 pdf4
2975 \end_layout
2976
2977 \end_inset
2978
2979  (for 
2980 \begin_inset Flex Noun
2981 status collapsed
2982
2983 \begin_layout Plain Layout
2984 Xe\SpecialChar TeX
2985
2986 \end_layout
2987
2988 \end_inset
2989
2990 ), and 
2991 \begin_inset Flex Noun
2992 status collapsed
2993
2994 \begin_layout Plain Layout
2995 pdf5
2996 \end_layout
2997
2998 \end_inset
2999
3000  (for 
3001 \begin_inset Flex Noun
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005 Lua\SpecialChar TeX
3006
3007 \end_layout
3008
3009 \end_inset
3010
3011 ) are defined, all of which share the extension 
3012 \begin_inset Flex Noun
3013 status collapsed
3014
3015 \begin_layout Plain Layout
3016 .pdf
3017 \end_layout
3018
3019 \end_inset
3020
3021 , and which correspond to the conversion methods just mentioned.
3022 \end_layout
3023
3024 \begin_layout Chapter
3025 Internationalizing \SpecialChar LyX
3026
3027 \begin_inset CommandInset label
3028 LatexCommand label
3029 name "cha:Internationalizing-LyX"
3030
3031 \end_inset
3032
3033
3034 \end_layout
3035
3036 \begin_layout Standard
3037 \SpecialChar LyX
3038  supports using a translated interface.
3039  Last time we checked, \SpecialChar LyX
3040  provided text in thirty languages.
3041  The language of choice is called your 
3042 \emph on
3043 locale
3044 \emph default
3045 .
3046  (For further reading on locale settings, see also the documentation for
3047  locale that comes with your operating system.
3048  For Linux, the manual page for 
3049 \begin_inset Flex Code
3050 status collapsed
3051
3052 \begin_layout Plain Layout
3053 locale(5)
3054 \end_layout
3055
3056 \end_inset
3057
3058  could be a good place to start).
3059 \end_layout
3060
3061 \begin_layout Standard
3062 Notice that these translations will work, but do contain a few flaws.
3063  In particular, all dialogs have been designed with the English text in
3064  mind, which means that some of the translated text will be too large to
3065  fit within the space allocated.
3066  This is only a display problem and will not cause any harm.
3067  Also, you will find that some of the translations do not define shortcut
3068  keys for everything.
3069  Sometimes, there are simply not enough free letters to do it.
3070  Other times, the translator just hasn't got around to doing it yet.
3071  Our localization team, which you may wish to join,
3072 \begin_inset Foot
3073 status collapsed
3074
3075 \begin_layout Plain Layout
3076 If you are a fluent speaker of a language other than English, joining these
3077  teams is a great way to give back to the \SpecialChar LyX
3078  community!
3079 \end_layout
3080
3081 \end_inset
3082
3083  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3084 .
3085 \end_layout
3086
3087 \begin_layout Section
3088 Translating \SpecialChar LyX
3089
3090 \end_layout
3091
3092 \begin_layout Subsection
3093 Translating the graphical user interface (text messages).
3094 \end_layout
3095
3096 \begin_layout Standard
3097 \SpecialChar LyX
3098  uses the GNU 
3099 \begin_inset Flex Code
3100 status collapsed
3101
3102 \begin_layout Plain Layout
3103 gettext
3104 \end_layout
3105
3106 \end_inset
3107
3108  library to handle the internationalization of the interface.
3109  To have \SpecialChar LyX
3110  speak your favorite language in all menus and dialogs, you need
3111  a 
3112 \begin_inset Flex Code
3113 status collapsed
3114
3115 \begin_layout Plain Layout
3116 po
3117 \end_layout
3118
3119 \end_inset
3120
3121 -file for that language.
3122  When this is available, you'll have to generate a 
3123 \begin_inset Flex Code
3124 status collapsed
3125
3126 \begin_layout Plain Layout
3127 mo
3128 \end_layout
3129
3130 \end_inset
3131
3132 -file from it and install the 
3133 \begin_inset Flex Code
3134 status collapsed
3135
3136 \begin_layout Plain Layout
3137 mo
3138 \end_layout
3139
3140 \end_inset
3141
3142 -file.
3143  The process of doing all of this is explained in the documentation for
3144  GNU 
3145 \begin_inset Flex Code
3146 status collapsed
3147
3148 \begin_layout Plain Layout
3149 gettext
3150 \end_layout
3151
3152 \end_inset
3153
3154 .
3155  It is possible to do this just for yourself, but if you're going to do
3156  it, you might as well share the results of your labors with the rest of
3157  the \SpecialChar LyX
3158  community.
3159  Send a message to the \SpecialChar LyX
3160  developers' list for more information about how
3161  to proceed.
3162 \end_layout
3163
3164 \begin_layout Standard
3165 In short, this is what you should do (xx denotes the language code):
3166 \end_layout
3167
3168 \begin_layout Itemize
3169 Check out the \SpecialChar LyX
3170  source code.
3171  (See the 
3172 \begin_inset CommandInset href
3173 LatexCommand href
3174 name "information on the web"
3175 target "https://www.lyx.org/HowToUseGIT"
3176 literal "false"
3177
3178 \end_inset
3179
3180 .)
3181 \end_layout
3182
3183 \begin_layout Itemize
3184 Copy the file 
3185 \begin_inset Flex Code
3186 status collapsed
3187
3188 \begin_layout Plain Layout
3189 lyx.pot
3190 \end_layout
3191
3192 \end_inset
3193
3194  to the folder of the 
3195 \begin_inset Flex Code
3196 status collapsed
3197
3198 \begin_layout Plain Layout
3199 **.po
3200 \end_layout
3201
3202 \end_inset
3203
3204  files.
3205  Then rename it to 
3206 \begin_inset Flex Code
3207 status collapsed
3208
3209 \begin_layout Plain Layout
3210 xx.po
3211 \end_layout
3212
3213 \end_inset
3214
3215 .
3216  (If 
3217 \begin_inset Flex Code
3218 status collapsed
3219
3220 \begin_layout Plain Layout
3221 lyx.pot
3222 \end_layout
3223
3224 \end_inset
3225
3226  doesn't exist anywhere, it can be remade with the console command 
3227 \begin_inset Flex Code
3228 status collapsed
3229
3230 \begin_layout Plain Layout
3231 make lyx.pot
3232 \end_layout
3233
3234 \end_inset
3235
3236  in that directory, or you can use an existing po-file for some other language
3237  as a template).
3238 \end_layout
3239
3240 \begin_layout Itemize
3241 Edit 
3242 \begin_inset Flex Code
3243 status collapsed
3244
3245 \begin_layout Plain Layout
3246 xx.po
3247 \end_layout
3248
3249 \end_inset
3250
3251 .
3252 \begin_inset Foot
3253 status collapsed
3254
3255 \begin_layout Plain Layout
3256 This is just a text file, so it can be edited in any text editor.
3257  But there are also specialized programs that support such editing, such
3258  as 
3259 \family typewriter
3260 Poedit
3261 \family default
3262  (for all platforms) or 
3263 \family typewriter
3264 KBabel
3265 \family default
3266  (for KDE).
3267  
3268 \family typewriter
3269 Emacs
3270 \family default
3271  contains a `mode' for editing 
3272 \begin_inset Flex Code
3273 status collapsed
3274
3275 \begin_layout Plain Layout
3276 po
3277 \end_layout
3278
3279 \end_inset
3280
3281  files, as well, see 
3282 \begin_inset Flex URL
3283 status open
3284
3285 \begin_layout Plain Layout
3286
3287 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3288 \end_layout
3289
3290 \end_inset
3291
3292 .
3293 \end_layout
3294
3295 \end_inset
3296
3297  For some menu- and widget-labels, there are also shortcut keys that should
3298  be translated.
3299  Those keys are marked after a `|', and should be translated according to
3300  the words and phrases of the language.
3301  You should also fill also out the information at the beginning of the new
3302  
3303 \begin_inset Flex Code
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 po
3308 \end_layout
3309
3310 \end_inset
3311
3312 -file with your email-address, etc., so people know where to reach you with
3313  suggestions and entertaining flames.
3314 \end_layout
3315
3316 \begin_layout Standard
3317 If you are just doing this on your own, then:
3318 \end_layout
3319
3320 \begin_layout Itemize
3321 Generate 
3322 \begin_inset Flex Code
3323 status collapsed
3324
3325 \begin_layout Plain Layout
3326 xx.mo
3327 \end_layout
3328
3329 \end_inset
3330
3331 .
3332  This can be done with 
3333 \begin_inset Flex Code
3334 status collapsed
3335
3336 \begin_layout Plain Layout
3337 msgfmt -o xx.mo < xx.po
3338 \end_layout
3339
3340 \end_inset
3341
3342 .
3343 \end_layout
3344
3345 \begin_layout Itemize
3346 Copy the 
3347 \begin_inset Flex Code
3348 status collapsed
3349
3350 \begin_layout Plain Layout
3351 mo
3352 \end_layout
3353
3354 \end_inset
3355
3356 -file to your locale-tree, at the correct directory for application messages
3357  for the language
3358 \series bold
3359  
3360 \series default
3361 xx, and under the name 
3362 \begin_inset Flex Code
3363 status collapsed
3364
3365 \begin_layout Plain Layout
3366 lyx.mo
3367 \end_layout
3368
3369 \end_inset
3370
3371  (e.
3372 \begin_inset space \thinspace{}
3373 \end_inset
3374
3375 g.
3376 \begin_inset space \space{}
3377 \end_inset
3378
3379
3380 \begin_inset Flex Code
3381 status collapsed
3382
3383 \begin_layout Plain Layout
3384 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3385 \end_layout
3386
3387 \end_inset
3388
3389
3390 \series bold
3391 .
3392 \end_layout
3393
3394 \begin_layout Standard
3395 As said, however, it would be best if the new 
3396 \begin_inset Flex Code
3397 status collapsed
3398
3399 \begin_layout Plain Layout
3400 po
3401 \end_layout
3402
3403 \end_inset
3404
3405  file could be added to the \SpecialChar LyX
3406  distribution, so others can use it.
3407  Adding it involves making additional changes to \SpecialChar LyX
3408 .
3409  So send an email to the developers' mailing list if you're interested in
3410  doing that.
3411 \end_layout
3412
3413 \begin_layout Subsubsection
3414 Ambiguous messages
3415 \end_layout
3416
3417 \begin_layout Standard
3418 Sometimes it turns out that one English message needs to be translated into
3419  different messages in the target language.
3420  One example is the message 
3421 \begin_inset Flex Code
3422 status collapsed
3423
3424 \begin_layout Plain Layout
3425 To
3426 \end_layout
3427
3428 \end_inset
3429
3430  which has the German translation 
3431 \lang german
3432 Nach
3433 \lang english
3434  or 
3435 \lang german
3436 Bis
3437 \lang english
3438 , depending upon exactly what the English 
3439 \begin_inset Quotes eld
3440 \end_inset
3441
3442 to
3443 \begin_inset Quotes erd
3444 \end_inset
3445
3446  means.
3447  GNU 
3448 \begin_inset Flex Code
3449 status collapsed
3450
3451 \begin_layout Plain Layout
3452 gettext
3453 \end_layout
3454
3455 \end_inset
3456
3457  does not handle such ambiguous translations.
3458  Therefore you have to add some context information to the message: Instead
3459  of 
3460 \begin_inset Flex Code
3461 status collapsed
3462
3463 \begin_layout Plain Layout
3464 To
3465 \end_layout
3466
3467 \end_inset
3468
3469  it becomes 
3470 \begin_inset Flex Code
3471 status collapsed
3472
3473 \begin_layout Plain Layout
3474 To[[as in 'From format x to format y']]
3475 \end_layout
3476
3477 \end_inset
3478
3479  and 
3480 \begin_inset Flex Code
3481 status collapsed
3482
3483 \begin_layout Plain Layout
3484 To[[as in 'From page x to page y']].
3485 \end_layout
3486
3487 \end_inset
3488
3489  Now the two occurrences of 
3490 \begin_inset Flex Code
3491 status collapsed
3492
3493 \begin_layout Plain Layout
3494 To
3495 \end_layout
3496
3497 \end_inset
3498
3499  are different for 
3500 \begin_inset Flex Code
3501 status collapsed
3502
3503 \begin_layout Plain Layout
3504 gettext
3505 \end_layout
3506
3507 \end_inset
3508
3509  and can be translated correctly to 
3510 \lang german
3511 Nach
3512 \lang english
3513  and 
3514 \lang german
3515 Bis
3516 \lang english
3517 , respectively.
3518 \end_layout
3519
3520 \begin_layout Standard
3521 Of course the context information needs to be stripped off the original
3522  message when no translation is used.
3523  Therefore you have to put it in double square brackets at the end of the
3524  message (see the example above).
3525  The translation mechanism of \SpecialChar LyX
3526  ensures that everything in double square
3527  brackets at the end of messages is removed before displaying the message.
3528 \end_layout
3529
3530 \begin_layout Subsection
3531 Translating the documentation.
3532 \end_layout
3533
3534 \begin_layout Standard
3535 The online documentation (in the 
3536 \begin_inset Flex Noun
3537 status collapsed
3538
3539 \begin_layout Plain Layout
3540 Help
3541 \end_layout
3542
3543 \end_inset
3544
3545 -menu) can (and should!) be translated.
3546  If there are translated versions of the documentation available
3547 \begin_inset Foot
3548 status collapsed
3549
3550 \begin_layout Plain Layout
3551 As of March 2008, at least some of the documents have been translated into
3552  fourteen languages, with the Tutorial available in a few more.
3553 \end_layout
3554
3555 \end_inset
3556
3557  and the locale is set accordingly, these will be used automagically by
3558  \SpecialChar LyX
3559 .
3560  \SpecialChar LyX
3561  looks for translated versions as 
3562 \begin_inset Flex Code
3563 status collapsed
3564
3565 \begin_layout Plain Layout
3566 LyXDir/doc/xx/DocName.lyx
3567 \end_layout
3568
3569 \end_inset
3570
3571 , where 
3572 \begin_inset Flex Code
3573 status collapsed
3574
3575 \begin_layout Plain Layout
3576 xx
3577 \end_layout
3578
3579 \end_inset
3580
3581  is the code for the language currently in use.
3582  If there are no translated documents, the default English versions will
3583  be displayed.
3584  Note that the translated versions must have the same filenames (
3585 \begin_inset Flex Code
3586 status collapsed
3587
3588 \begin_layout Plain Layout
3589 DocName
3590 \end_layout
3591
3592 \end_inset
3593
3594  above) as the original.
3595  If you feel up to translating the documentation (an excellent way to proof-read
3596  the original documentation by the way!), there are a few things you should
3597  do right away:
3598 \end_layout
3599
3600 \begin_layout Itemize
3601 Check out the documentation translation web page at 
3602 \begin_inset CommandInset href
3603 LatexCommand href
3604 name "https://www.lyx.org/Translation"
3605 target "https://www.lyx.org/Translation"
3606 literal "false"
3607
3608 \end_inset
3609
3610 .
3611  That way, you can find out which (if any) documents have already been translate
3612 d into your language.
3613  You can also find out who (if anyone) is organizing the effort to translate
3614  the documentation into your language.
3615  If no one is organizing the effort, please let us know that you're interested.
3616 \end_layout
3617
3618 \begin_layout Standard
3619 Once you get to actually translating, here's a few hints for you that may
3620  save you trouble:
3621 \end_layout
3622
3623 \begin_layout Itemize
3624 Join the documentation team! There is information on how to do that in 
3625 \begin_inset Flex Code
3626 status collapsed
3627
3628 \begin_layout Plain Layout
3629 Intro.lyx
3630 \end_layout
3631
3632 \end_inset
3633
3634  (
3635 \begin_inset Flex Noun
3636 status collapsed
3637
3638 \begin_layout Plain Layout
3639 Help\SpecialChar menuseparator
3640 Introduction
3641 \end_layout
3642
3643 \end_inset
3644
3645 ), which by the way is the first document you should translate.
3646 \end_layout
3647
3648 \begin_layout Itemize
3649 Learn the typographic conventions for the language you are translating to.
3650  Typography is an ancient art and over the centuries, a great variety of
3651  conventions have developed throughout different parts of the world.
3652  Also study the professional terminology amongst typographers in your country.
3653  Inventing your own terminology will only confuse the users.
3654  
3655 \emph on
3656 (Warning! Typography is addictive!)
3657 \end_layout
3658
3659 \begin_layout Itemize
3660 Make a copy of the document.
3661  This will be your working copy.
3662  You can use this as your personal translated help-file by placing it in
3663  your 
3664 \begin_inset Flex Code
3665 status collapsed
3666
3667 \begin_layout Plain Layout
3668 UserDir/doc/xx/
3669 \end_layout
3670
3671 \end_inset
3672
3673  directory.
3674 \begin_inset Note Greyedout
3675 status open
3676
3677 \begin_layout Plain Layout
3678
3679 \series bold
3680 Note:
3681 \series default
3682  For a complex document with external material (images, etc.), if you make
3683  a copy e.
3684 \begin_inset space \thinspace{}
3685 \end_inset
3686
3687 g.
3688 \begin_inset space \space{}
3689 \end_inset
3690
3691 in a temp dir, beware that the links to external material may be broken
3692  when the document is moved to a different place.
3693  The best way is to retrieve the \SpecialChar LyX
3694  tree from git (see 
3695 \begin_inset Flex URL
3696 status collapsed
3697
3698 \begin_layout Plain Layout
3699
3700 https://www.lyx.org/HowToUseGIT
3701 \end_layout
3702
3703 \end_inset
3704
3705 ) and to edit the doc file in place.
3706 \end_layout
3707
3708 \end_inset
3709
3710
3711 \end_layout
3712
3713 \begin_layout Itemize
3714 Sometimes the original document (from the \SpecialChar LyX
3715  team) will be updated.
3716  Use the source viewer at 
3717 \begin_inset CommandInset href
3718 LatexCommand href
3719 name "https://www.lyx.org/trac/timeline"
3720 target "https://www.lyx.org/trac/timeline"
3721 literal "false"
3722
3723 \end_inset
3724
3725  to see what has been changed.
3726  That way you can easily see which parts of the translated document need
3727  to be updated.
3728 \end_layout
3729
3730 \begin_layout Standard
3731 If you ever find an error in the original document, fix it and notify the
3732  rest of the documentation team of the changes! (You didn't forget to join
3733  the documentation team, did you?)
3734 \end_layout
3735
3736 \begin_layout Standard
3737 \begin_inset Branch OutDated
3738 inverted 0
3739 status collapsed
3740
3741 \begin_layout Section
3742 International Keyboard Support
3743 \end_layout
3744
3745 \begin_layout Standard
3746
3747 \emph on
3748 [Editor's Note: The following section is by
3749 \emph default
3750  
3751 \shape smallcaps
3752 \emph on
3753 Ivan Schreter
3754 \shape default
3755 .
3756  It needs to be fixed to conform to the new Documentation Style sheet and
3757  to make use of the new v1.0 features.
3758  The whole thing also needs to be merged with the section following it.-jw
3759  It may also be badly out of date.-rh (2008)]
3760 \end_layout
3761
3762 \begin_layout Subsection
3763 Defining Own Keymaps: Keymap File Format
3764 \end_layout
3765
3766 \begin_layout Standard
3767 Let's look at a keyboard definition file a little closer.
3768  It is a plain text file defining
3769 \end_layout
3770
3771 \begin_layout Itemize
3772 key-to-key or key-to-string translations
3773 \end_layout
3774
3775 \begin_layout Itemize
3776 dead keys
3777 \end_layout
3778
3779 \begin_layout Itemize
3780 dead keys exceptions
3781 \end_layout
3782
3783 \begin_layout Standard
3784 To define key-to-key or key-to-string translation, use this command:
3785 \end_layout
3786
3787 \begin_layout Quotation
3788 \begin_inset Flex Code
3789 status collapsed
3790
3791 \begin_layout Plain Layout
3792
3793 \backslash
3794 kmap
3795 \end_layout
3796
3797 \end_inset
3798
3799  
3800 \begin_inset Flex Code
3801 status collapsed
3802
3803 \begin_layout Plain Layout
3804 key
3805 \end_layout
3806
3807 \end_inset
3808
3809  outstring 
3810 \end_layout
3811
3812 \begin_layout Standard
3813 where 
3814 \begin_inset Flex Code
3815 status collapsed
3816
3817 \begin_layout Plain Layout
3818 key
3819 \end_layout
3820
3821 \end_inset
3822
3823  is the key to be translated and 
3824 \begin_inset Flex Code
3825 status collapsed
3826
3827 \begin_layout Plain Layout
3828 outstring
3829 \end_layout
3830
3831 \end_inset
3832
3833  is the string to be inserted into the document.
3834  To define dead keys, use:
3835 \end_layout
3836
3837 \begin_layout Quotation
3838 \begin_inset Flex Code
3839 status collapsed
3840
3841 \begin_layout Plain Layout
3842
3843 \backslash
3844 kmod
3845 \end_layout
3846
3847 \end_inset
3848
3849  
3850 \begin_inset Flex Code
3851 status collapsed
3852
3853 \begin_layout Plain Layout
3854 key
3855 \end_layout
3856
3857 \end_inset
3858
3859  deadkey
3860 \end_layout
3861
3862 \begin_layout Standard
3863 where 
3864 \begin_inset Flex Code
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868 key
3869 \end_layout
3870
3871 \end_inset
3872
3873  is a keyboard key and 
3874 \begin_inset Flex Code
3875 status collapsed
3876
3877 \begin_layout Plain Layout
3878 deadkey
3879 \end_layout
3880
3881 \end_inset
3882
3883  is dead key name.
3884  The following dead keys are supported (shortcut name is in parentheses):
3885 \end_layout
3886
3887 \begin_layout Quotation
3888
3889 \emph on
3890 Name
3891 \begin_inset space \hfill{}
3892 \end_inset
3893
3894 Example
3895 \end_layout
3896
3897 \begin_layout Quotation
3898 acute (acu)
3899 \begin_inset space \hfill{}
3900 \end_inset
3901
3902 áéíóú
3903 \end_layout
3904
3905 \begin_layout Quotation
3906 grave (gra)
3907 \begin_inset space \hfill{}
3908 \end_inset
3909
3910 àèìòù
3911 \end_layout
3912
3913 \begin_layout Quotation
3914 macron (mac)
3915 \begin_inset space \hfill{}
3916 \end_inset
3917
3918  ō
3919 \end_layout
3920
3921 \begin_layout Quotation
3922 tilde (til)
3923 \begin_inset space \hfill{}
3924 \end_inset
3925
3926 ñÑ
3927 \end_layout
3928
3929 \begin_layout Quotation
3930 underbar (underb)
3931 \begin_inset space \hfill{}
3932 \end_inset
3933
3934
3935 \begin_inset ERT
3936 status open
3937
3938 \begin_layout Plain Layout
3939
3940
3941 \backslash
3942 b o
3943 \end_layout
3944
3945 \end_inset
3946
3947
3948 \end_layout
3949
3950 \begin_layout Quotation
3951 cedilla (ced)
3952 \begin_inset space \hfill{}
3953 \end_inset
3954
3955 çÇ
3956 \end_layout
3957
3958 \begin_layout Quotation
3959 underdot (underd)
3960 \begin_inset space \hfill{}
3961 \end_inset
3962
3963
3964 \begin_inset ERT
3965 status open
3966
3967 \begin_layout Plain Layout
3968
3969
3970 \backslash
3971 d o
3972 \end_layout
3973
3974 \end_inset
3975
3976
3977 \end_layout
3978
3979 \begin_layout Quotation
3980 circumflex (circu)
3981 \begin_inset space \hfill{}
3982 \end_inset
3983
3984 âêîôû
3985 \end_layout
3986
3987 \begin_layout Quotation
3988 circle (circl)
3989 \begin_inset space \hfill{}
3990 \end_inset
3991
3992 ÅůŮ
3993 \end_layout
3994
3995 \begin_layout Quotation
3996 tie (tie)
3997 \begin_inset space \hfill{}
3998 \end_inset
3999
4000
4001 \begin_inset ERT
4002 status open
4003
4004 \begin_layout Plain Layout
4005
4006
4007 \backslash
4008 t o
4009 \end_layout
4010
4011 \end_inset
4012
4013
4014 \end_layout
4015
4016 \begin_layout Quotation
4017 breve (bre)
4018 \begin_inset space \hfill{}
4019 \end_inset
4020
4021 ă
4022 \begin_inset ERT
4023 status open
4024
4025 \begin_layout Plain Layout
4026
4027
4028 \backslash
4029 u o
4030 \end_layout
4031
4032 \end_inset
4033
4034
4035 \end_layout
4036
4037 \begin_layout Quotation
4038 caron (car)
4039 \begin_inset space \hfill{}
4040 \end_inset
4041
4042 čšž
4043 \end_layout
4044
4045 \begin_layout Quotation
4046 hungarian umlaut (hug)
4047 \begin_inset space \hfill{}
4048 \end_inset
4049
4050 őű
4051 \end_layout
4052
4053 \begin_layout Quotation
4054 umlaut (uml)
4055 \begin_inset space \hfill{}
4056 \end_inset
4057
4058 äöü
4059 \end_layout
4060
4061 \begin_layout Quotation
4062 dot (dot)
4063 \begin_inset space \hfill{}
4064 \end_inset
4065
4066 ż
4067 \begin_inset ERT
4068 status open
4069
4070 \begin_layout Plain Layout
4071
4072
4073 \backslash
4074 .s
4075 \end_layout
4076
4077 \end_inset
4078
4079
4080 \end_layout
4081
4082 \begin_layout Standard
4083 Since in many international keyboards there are exceptions to what some
4084  dead keys should do, you can define them using
4085 \end_layout
4086
4087 \begin_layout Quotation
4088 \begin_inset Flex Code
4089 status collapsed
4090
4091 \begin_layout Plain Layout
4092
4093 \backslash
4094 kxmod
4095 \end_layout
4096
4097 \end_inset
4098
4099  deadkey key outstring
4100 \end_layout
4101
4102 \begin_layout Standard
4103 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4104 , so you put in
4105 \end_layout
4106
4107 \begin_layout Quotation
4108 \begin_inset Flex Code
4109 status collapsed
4110
4111 \begin_layout Plain Layout
4112
4113 \backslash
4114 kxmod
4115 \end_layout
4116
4117 \end_inset
4118
4119  caron o "
4120 \backslash
4121 ^o"
4122 \end_layout
4123
4124 \begin_layout Standard
4125 to make it work correctly.
4126  Also, you have to define as exceptions dead keys over i and j, to remove
4127  the dot from them before inserting an accent mark.
4128  I will change this when the time comes, but so far I haven't had time.
4129 \end_layout
4130
4131 \begin_layout Standard
4132 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4133  double backslash.
4134  Also, quotes and 
4135 \begin_inset Flex Code
4136 status collapsed
4137
4138 \begin_layout Plain Layout
4139 #
4140 \end_layout
4141
4142 \end_inset
4143
4144  have different meaning.
4145  
4146 \begin_inset Flex Code
4147 status collapsed
4148
4149 \begin_layout Plain Layout
4150 #
4151 \end_layout
4152
4153 \end_inset
4154
4155  marks comments, quotes start and end \SpecialChar LaTeX
4156 -style commands.
4157  To enter quote, you'll need to use 
4158 \begin_inset Flex Code
4159 status collapsed
4160
4161 \begin_layout Plain Layout
4162
4163 \backslash
4164 "
4165 \end_layout
4166
4167 \end_inset
4168
4169 , to enter 
4170 \begin_inset Flex Code
4171 status collapsed
4172
4173 \begin_layout Plain Layout
4174 #
4175 \end_layout
4176
4177 \end_inset
4178
4179 , use 
4180 \begin_inset Flex Code
4181 status collapsed
4182
4183 \begin_layout Plain Layout
4184
4185 \backslash
4186 #
4187 \end_layout
4188
4189 \end_inset
4190
4191 .
4192 \end_layout
4193
4194 \begin_layout Standard
4195 If you make a keyboard description file that works for your language, please
4196  mail it to me, so I can include it in the next keymap distribution.
4197 \end_layout
4198
4199 \begin_layout Standard
4200 More keywords will be supported in keymap configuration file in future,
4201  like
4202 \end_layout
4203
4204 \begin_layout Itemize
4205 \begin_inset Flex Code
4206 status collapsed
4207
4208 \begin_layout Plain Layout
4209
4210 \backslash
4211 kinclude filename
4212 \end_layout
4213
4214 \end_inset
4215
4216
4217 \emph on
4218
4219 \begin_inset space \hfill{}
4220 \end_inset
4221
4222
4223 \begin_inset Flex Code
4224 status collapsed
4225
4226 \begin_layout Plain Layout
4227 include
4228 \end_layout
4229
4230 \end_inset
4231
4232  another file
4233 \end_layout
4234
4235 \begin_layout Itemize
4236 \begin_inset Flex Code
4237 status collapsed
4238
4239 \begin_layout Plain Layout
4240
4241 \backslash
4242 kprog program
4243 \end_layout
4244
4245 \end_inset
4246
4247
4248 \emph on
4249
4250 \begin_inset space \hfill{}
4251 \end_inset
4252
4253
4254 \begin_inset Flex Code
4255 status collapsed
4256
4257 \begin_layout Plain Layout
4258 define
4259 \end_layout
4260
4261 \end_inset
4262
4263  an external keymap translation program 
4264 \end_layout
4265
4266 \begin_layout Standard
4267 Also, it should look into 
4268 \begin_inset Flex Code
4269 status collapsed
4270
4271 \begin_layout Plain Layout
4272 lyxrc
4273 \end_layout
4274
4275 \end_inset
4276
4277  file for defaults, too (for example, a 
4278 \begin_inset Flex Code
4279 status collapsed
4280
4281 \begin_layout Plain Layout
4282
4283 \backslash
4284 kinclude
4285 \end_layout
4286
4287 \end_inset
4288
4289  option to include default keyboard).
4290 \end_layout
4291
4292 \end_inset
4293
4294
4295 \end_layout
4296
4297 \begin_layout Section
4298 International Keymap Stuff
4299 \begin_inset CommandInset label
4300 LatexCommand label
4301 name "sec:International-Keymap-Stuff"
4302
4303 \end_inset
4304
4305
4306 \end_layout
4307
4308 \begin_layout Standard
4309 \begin_inset Note Note
4310 status open
4311
4312 \begin_layout Plain Layout
4313 In doing the revisions on this document in March 2008, I did not look over
4314  this stuff, as I do not understand it.
4315  It would be good if someone else could do so.
4316  (RH)
4317 \end_layout
4318
4319 \end_inset
4320
4321
4322 \end_layout
4323
4324 \begin_layout Standard
4325 The next two sections describe the 
4326 \begin_inset Flex Code
4327 status collapsed
4328
4329 \begin_layout Plain Layout
4330
4331 \shape up
4332 .kmap
4333 \end_layout
4334
4335 \end_inset
4336
4337  and 
4338 \begin_inset Flex Code
4339 status collapsed
4340
4341 \begin_layout Plain Layout
4342
4343 \shape up
4344 .cdef
4345 \end_layout
4346
4347 \end_inset
4348
4349  file syntax in detail.
4350  These sections should help you design your own key map if the ones provided
4351  do not meet your needs.
4352 \end_layout
4353
4354 \begin_layout Subsection
4355 The .kmap File
4356 \end_layout
4357
4358 \begin_layout Standard
4359
4360 \shape up
4361 .
4362 \begin_inset Flex Code
4363 status collapsed
4364
4365 \begin_layout Plain Layout
4366 kmap
4367 \end_layout
4368
4369 \end_inset
4370
4371  file maps keystrokes to characters or strings.
4372  As the name suggests, it sets a keyboard mapping.
4373  The 
4374 \begin_inset Flex Code
4375 status collapsed
4376
4377 \begin_layout Plain Layout
4378 .kmap
4379 \end_layout
4380
4381 \end_inset
4382
4383
4384 \shape default
4385  file keywords 
4386 \shape up
4387
4388 \begin_inset Flex Code
4389 status collapsed
4390
4391 \begin_layout Plain Layout
4392
4393 \shape up
4394 kmap
4395 \end_layout
4396
4397 \end_inset
4398
4399
4400 \shape default
4401 ,
4402 \shape up
4403  
4404 \shape default
4405
4406 \begin_inset Flex Code
4407 status collapsed
4408
4409 \begin_layout Plain Layout
4410
4411 \shape up
4412 kmod
4413 \end_layout
4414
4415 \end_inset
4416
4417 ,
4418 \shape up
4419  
4420 \shape default
4421
4422 \begin_inset Flex Code
4423 status collapsed
4424
4425 \begin_layout Plain Layout
4426
4427 \shape up
4428 kxmod
4429 \end_layout
4430
4431 \end_inset
4432
4433 , and 
4434 \begin_inset Flex Code
4435 status collapsed
4436
4437 \begin_layout Plain Layout
4438
4439 \shape up
4440 kcomb
4441 \end_layout
4442
4443 \end_inset
4444
4445  are described in this section.
4446 \end_layout
4447
4448 \begin_layout Labeling
4449 \labelwidthstring 00.00.0000
4450 \begin_inset Flex Code
4451 status collapsed
4452
4453 \begin_layout Plain Layout
4454
4455 \shape up
4456 kmap
4457 \end_layout
4458
4459 \end_inset
4460
4461  Map a character to a string
4462 \end_layout
4463
4464 \begin_layout LyX-Code
4465
4466 \backslash
4467 kmap 
4468 \family roman
4469 \emph on
4470 char
4471 \family default
4472 \emph default
4473  
4474 \family roman
4475 \emph on
4476 string
4477 \end_layout
4478
4479 \begin_layout Standard
4480 This will ma
4481 \family roman
4482 p
4483 \family default
4484  
4485 \family roman
4486 \emph on
4487 char
4488 \family default
4489 \emph default
4490  
4491 \family roman
4492 to
4493 \family default
4494  
4495 \family roman
4496 \emph on
4497 string
4498 \emph default
4499 .
4500  Note that in
4501 \family default
4502  
4503 \family roman
4504 \emph on
4505 string
4506 \emph default
4507 ,
4508 \family default
4509  
4510 \family roman
4511 \shape up
4512 the double-quote (")
4513 \family default
4514 \shape default
4515  
4516 \family roman
4517 and
4518 \family default
4519  
4520 \family roman
4521 \shape up
4522 the backslash (
4523 \backslash
4524 )
4525 \family default
4526 \shape default
4527  
4528 \family roman
4529 must be escaped with a preceding backslash (
4530 \shape up
4531
4532 \backslash
4533
4534 \shape default
4535 )
4536 \family default
4537 .
4538 \end_layout
4539
4540 \begin_layout Standard
4541 An example of a 
4542 \begin_inset Flex Noun
4543 status collapsed
4544
4545 \begin_layout Plain Layout
4546
4547 \shape up
4548 kmap
4549 \end_layout
4550
4551 \end_inset
4552
4553  statement to cause the symbol 
4554 \begin_inset Flex Noun
4555 status collapsed
4556
4557 \begin_layout Plain Layout
4558
4559 \shape up
4560 /
4561 \end_layout
4562
4563 \end_inset
4564
4565  to be output for the keystroke 
4566 \begin_inset Flex Noun
4567 status collapsed
4568
4569 \begin_layout Plain Layout
4570
4571 \shape up
4572 &
4573 \end_layout
4574
4575 \end_inset
4576
4577  is:
4578 \end_layout
4579
4580 \begin_layout LyX-Code
4581
4582 \backslash
4583 kmap & /
4584 \end_layout
4585
4586 \begin_layout Labeling
4587 \labelwidthstring 00.00.0000
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592
4593 \shape up
4594 kmod
4595 \end_layout
4596
4597 \end_inset
4598
4599  Specify an accent character
4600 \end_layout
4601
4602 \begin_layout LyX-Code
4603
4604 \backslash
4605 kmod 
4606 \family roman
4607 \emph on
4608 char accent allowed
4609 \end_layout
4610
4611 \begin_layout Standard
4612 This will make the cha
4613 \family roman
4614 racter
4615 \family default
4616  
4617 \family roman
4618 \emph on
4619 char
4620 \family default
4621 \emph default
4622  
4623 \family roman
4624 \shape up
4625 \emph on
4626 be an accent
4627 \family default
4628 \shape default
4629 \emph default
4630  
4631 \family roman
4632 \shape up
4633 on the
4634 \family default
4635 \shape default
4636  
4637 \family roman
4638 \shape up
4639 \emph on
4640 allowed
4641 \family default
4642 \shape default
4643 \emph default
4644  
4645 \family roman
4646 \shape up
4647 cha
4648 \family default
4649 racter(s).
4650  This is the dead key
4651 \begin_inset Foot
4652 status collapsed
4653
4654 \begin_layout Plain Layout
4655 The term 
4656 \family roman
4657 \emph on
4658 dead key
4659 \family default
4660 \emph default
4661  refers to a key that does not produce a character by itself, but when followed
4662  with another key, produces the desired accent character.
4663  For example, a German characte
4664 \family roman
4665 r with an umlaut like
4666 \family default
4667  
4668 \family roman
4669 \emph on
4670 ä
4671 \family default
4672 \emph default
4673  
4674 \family roman
4675 can be produced in this manner.
4676 \end_layout
4677
4678 \end_inset
4679
4680  mechanism.
4681  
4682 \end_layout
4683
4684 \begin_layout Standard
4685 If you 
4686 \family roman
4687 hit
4688 \family default
4689  
4690 \family roman
4691 \emph on
4692 char
4693 \family default
4694 \emph default
4695  
4696 \family roman
4697 and then another key not in
4698 \family default
4699  
4700 \family roman
4701 \emph on
4702 allowed
4703 \emph default
4704 , you will get a
4705 \family default
4706  
4707 \family roman
4708 \emph on
4709 char
4710 \family default
4711 \emph default
4712  
4713 \family roman
4714 followed by the other, not allowed key, as output.
4715
4716 \family default
4717  Note that a 
4718 \begin_inset Flex Noun
4719 status collapsed
4720
4721 \begin_layout Plain Layout
4722
4723 \shape up
4724 Backspace
4725 \end_layout
4726
4727 \end_inset
4728
4729  cancels a dead key, so if 
4730 \family roman
4731 you hit
4732 \family default
4733  
4734 \family roman
4735 \emph on
4736 char
4737 \family default
4738 \emph default
4739  
4740 \begin_inset Flex Noun
4741 status collapsed
4742
4743 \begin_layout Plain Layout
4744
4745 \shape up
4746 \emph on
4747 Backspace
4748 \end_layout
4749
4750 \end_inset
4751
4752 , the cursor will not go one position backwards but will instead cancel
4753  the effect t
4754 \family roman
4755 hat
4756 \family default
4757  
4758 \family roman
4759 \shape up
4760 \emph on
4761 char
4762 \family default
4763 \shape default
4764 \emph default
4765  
4766 \family roman
4767 \shape up
4768 might have had on the next keystroke.
4769  
4770 \end_layout
4771
4772 \begin_layout Standard
4773 The following example specifies that the character ' is to be an acute accent,
4774  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4775 \end_layout
4776
4777 \begin_layout LyX-Code
4778
4779 \backslash
4780 kmod ' acute aeiouAEIOU
4781 \end_layout
4782
4783 \begin_layout Labeling
4784 \labelwidthstring 00.00.0000
4785 \begin_inset Flex Code
4786 status collapsed
4787
4788 \begin_layout Plain Layout
4789 kxmod
4790 \end_layout
4791
4792 \end_inset
4793
4794  Specify an exception to the accent character
4795 \end_layout
4796
4797 \begin_layout LyX-Code
4798
4799 \backslash
4800 kxmod  
4801 \family roman
4802 \emph on
4803 accent char result
4804 \end_layout
4805
4806 \begin_layout Standard
4807 This defines an exce
4808 \family roman
4809 ption for
4810 \family default
4811  
4812 \family roman
4813 \emph on
4814 accent
4815 \family default
4816 \emph default
4817  
4818 \family roman
4819 on
4820 \family default
4821  
4822 \family roman
4823 \emph on
4824 char
4825 \emph default
4826 .
4827  T
4828 \shape up
4829 he
4830 \family default
4831 \shape default
4832  
4833 \family roman
4834 \shape up
4835 \emph on
4836 accent
4837 \family default
4838 \shape default
4839 \emph default
4840  
4841 \family roman
4842 \shape up
4843 must
4844 \family default
4845 \shape default
4846  
4847 \shape up
4848 have been assigned a keystroke with a previous
4849 \shape default
4850  
4851 \begin_inset Flex Code
4852 status collapsed
4853
4854 \begin_layout Plain Layout
4855
4856 \shape up
4857
4858 \backslash
4859 kmo
4860 \shape default
4861 d
4862 \end_layout
4863
4864 \end_inset
4865
4866  declar
4867 \family roman
4868 ation and
4869 \family default
4870  
4871 \family roman
4872 \emph on
4873 char
4874 \family default
4875 \emph default
4876  
4877 \family roman
4878 must not belong in the
4879 \family default
4880  
4881 \family roman
4882 \emph on
4883 allowed
4884 \family default
4885 \emph default
4886  
4887 \family roman
4888 set of
4889 \family default
4890  
4891 \family roman
4892 \emph on
4893 accent
4894 \emph default
4895 .
4896  When
4897 \family default
4898  
4899 \family roman
4900 \shape up
4901 you enter the
4902 \family default
4903 \shape default
4904  
4905 \family roman
4906 \shape up
4907 \emph on
4908 accent char
4909 \family default
4910 \shape default
4911 \emph default
4912  
4913 \family roman
4914 \shape up
4915 sequence,
4916 \family default
4917 \shape default
4918  
4919 \family roman
4920 \shape up
4921 \emph on
4922 result
4923 \emph default
4924  is produced.
4925  If such a declaration does not exist in
4926 \family default
4927 \shape default
4928  
4929 \shape up
4930 the
4931 \shape default
4932  
4933 \begin_inset Flex Code
4934 status collapsed
4935
4936 \begin_layout Plain Layout
4937
4938 \shape up
4939 .kmap
4940 \end_layout
4941
4942 \end_inset
4943
4944  file and yo
4945 \family roman
4946 u enter
4947 \family default
4948  
4949 \family roman
4950 \emph on
4951 accent char
4952 \emph default
4953 , you get
4954 \family default
4955  
4956 \family roman
4957 \emph on
4958 accent_key char
4959 \emph default
4960  where
4961 \family default
4962  
4963 \family roman
4964 \emph on
4965 accent_key
4966 \emph default
4967  is the first arg
4968 \family default
4969 ument of the 
4970 \begin_inset Flex Code
4971 status collapsed
4972
4973 \begin_layout Plain Layout
4974
4975 \shape up
4976
4977 \backslash
4978 kmod
4979 \end_layout
4980
4981 \end_inset
4982
4983  declaration.
4984  
4985 \end_layout
4986
4987 \begin_layout Standard
4988 The following command produces causes äi to be produced when you enter acute-i
4989  ('i):
4990 \end_layout
4991
4992 \begin_layout LyX-Code
4993
4994 \backslash
4995 kxmod acute i "
4996 \backslash
4997
4998 \backslash
4999 '{
5000 \backslash
5001
5002 \backslash
5003 i}"
5004 \end_layout
5005
5006 \begin_layout Labeling
5007 \labelwidthstring 00.00.0000
5008 \begin_inset Flex Code
5009 status collapsed
5010
5011 \begin_layout Plain Layout
5012 kcomb
5013 \end_layout
5014
5015 \end_inset
5016
5017  Combine two accent characters
5018 \end_layout
5019
5020 \begin_layout LyX-Code
5021
5022 \backslash
5023 kcomb 
5024 \family roman
5025 \emph on
5026 accent1 accent2 allowed
5027 \end_layout
5028
5029 \begin_layout Standard
5030 This one is getting pretty esoteric.
5031  It allows you to combine the effect 
5032 \family roman
5033 of
5034 \family default
5035  
5036 \family roman
5037 \emph on
5038 accent1
5039 \family default
5040 \emph default
5041  
5042 \family roman
5043 and
5044 \family default
5045  
5046 \family roman
5047 \emph on
5048 accent2
5049 \family default
5050 \emph default
5051  
5052 \family roman
5053 (in that order!) on
5054 \family default
5055  
5056 \family roman
5057 \emph on
5058 allowed
5059 \family default
5060 \emph default
5061  
5062 \family roman
5063 chars.
5064  The keystrokes for
5065 \family default
5066  
5067 \family roman
5068 \emph on
5069 accent1
5070 \family default
5071 \emph default
5072  
5073 \family roman
5074 and
5075 \family default
5076  
5077 \family roman
5078 \emph on
5079 accent2
5080 \family default
5081 \emph default
5082  
5083 \family roman
5084 must have be
5085 \family default
5086 en set with a 
5087 \begin_inset Flex Code
5088 status collapsed
5089
5090 \begin_layout Plain Layout
5091
5092 \shape up
5093
5094 \backslash
5095 kmod
5096 \end_layout
5097
5098 \end_inset
5099
5100  command at 
5101 \family roman
5102 a
5103 \family default
5104  
5105 \family roman
5106 \emph on
5107 previous
5108 \family default
5109 \emph default
5110  
5111 \family roman
5112 point in the
5113 \family default
5114  file.
5115  
5116 \end_layout
5117
5118 \begin_layout Standard
5119 Consider this example from the 
5120 \begin_inset Flex Code
5121 status collapsed
5122
5123 \begin_layout Plain Layout
5124
5125 \shape up
5126 greek.kmap
5127 \end_layout
5128
5129 \end_inset
5130
5131  file:
5132 \end_layout
5133
5134 \begin_layout LyX-Code
5135
5136 \backslash
5137 kmod ; acute aeioyvhAEIOYVH 
5138 \backslash
5139 kmod : umlaut iyIY 
5140 \backslash
5141 kcomb acute umlaut iyIY
5142 \end_layout
5143
5144 \begin_layout Standard
5145 This allows you to press 
5146 \begin_inset Flex Noun
5147 status collapsed
5148
5149 \begin_layout Plain Layout
5150
5151 \shape up
5152 ;:i
5153 \end_layout
5154
5155 \end_inset
5156
5157  and get the effect of 
5158 \begin_inset Flex Code
5159 status collapsed
5160
5161 \begin_layout Plain Layout
5162
5163 \shape up
5164
5165 \backslash
5166 '{
5167 \backslash
5168 "{i}}
5169 \end_layout
5170
5171 \end_inset
5172
5173 .
5174  
5175 \family roman
5176 \shape up
5177 A backspace
5178 \family default
5179 \shape default
5180  in this case cancels the last dead key, so if you press 
5181 \begin_inset Flex Noun
5182 status collapsed
5183
5184 \begin_layout Plain Layout
5185
5186 \shape up
5187 ;: Backspace i
5188 \end_layout
5189
5190 \end_inset
5191
5192  you get 
5193 \begin_inset Flex Code
5194 status collapsed
5195
5196 \begin_layout Plain Layout
5197
5198 \shape up
5199
5200 \backslash
5201 '{i}
5202 \end_layout
5203
5204 \end_inset
5205
5206 .
5207 \end_layout
5208
5209 \begin_layout Subsection
5210 The .cdef File
5211 \end_layout
5212
5213 \begin_layout Standard
5214 After the 
5215 \begin_inset Flex Code
5216 status collapsed
5217
5218 \begin_layout Plain Layout
5219
5220 \shape up
5221 .kmap
5222 \end_layout
5223
5224 \end_inset
5225
5226  mapping is performed, a 
5227 \begin_inset Flex Code
5228 status collapsed
5229
5230 \begin_layout Plain Layout
5231
5232 \shape up
5233 .cde
5234 \shape default
5235 f
5236 \end_layout
5237
5238 \end_inset
5239
5240  file maps the strings that the symbols generate to characters in the current
5241  font.
5242  The \SpecialChar LyX
5243  distribution currently includes at least the 
5244 \begin_inset Flex Code
5245 status collapsed
5246
5247 \begin_layout Plain Layout
5248
5249 \shape up
5250 iso8859-1.cdef
5251 \end_layout
5252
5253 \end_inset
5254
5255  and 
5256 \begin_inset Flex Code
5257 status collapsed
5258
5259 \begin_layout Plain Layout
5260
5261 \shape up
5262 iso8859-2.cdef
5263 \end_layout
5264
5265 \end_inset
5266
5267  files.
5268 \end_layout
5269
5270 \begin_layout Standard
5271 In general the 
5272 \begin_inset Flex Code
5273 status collapsed
5274
5275 \begin_layout Plain Layout
5276
5277 \shape up
5278 .cdef
5279 \end_layout
5280
5281 \end_inset
5282
5283  file is a sequence of declarations of the form
5284 \end_layout
5285
5286 \begin_layout LyX-Code
5287
5288 \family roman
5289 \emph on
5290 char_index_in_set
5291 \family default
5292 \emph default
5293  
5294 \family roman
5295 \emph on
5296  string
5297 \end_layout
5298
5299 \begin_layout Standard
5300 For example, in order to map 
5301 \begin_inset Flex Noun
5302 status collapsed
5303
5304 \begin_layout Plain Layout
5305
5306 \shape up
5307
5308 \backslash
5309 '{e}
5310 \end_layout
5311
5312 \end_inset
5313
5314  to the corresponding character in the iso-8859-1 set (233), the following
5315  declaration is used
5316 \end_layout
5317
5318 \begin_layout LyX-Code
5319 233 "
5320 \backslash
5321
5322 \backslash
5323 '{e}"
5324 \end_layout
5325
5326 \begin_layout Standard
5327 with 
5328 \begin_inset Flex Code
5329 status collapsed
5330
5331 \begin_layout Plain Layout
5332
5333 \backslash
5334
5335 \end_layout
5336
5337 \end_inset
5338
5339  and 
5340 \begin_inset Flex Code
5341 status collapsed
5342
5343 \begin_layout Plain Layout
5344 "
5345 \end_layout
5346
5347 \end_inset
5348
5349  being escap
5350 \family roman
5351 ed in
5352 \family default
5353  
5354 \family roman
5355 \emph on
5356 string
5357 \emph default
5358 .
5359  Note that
5360 \family default
5361  the same character can apply to more than one string.
5362  In the 
5363 \begin_inset Flex Code
5364 status collapsed
5365
5366 \begin_layout Plain Layout
5367 i
5368 \shape up
5369 so-8859-7.cdef
5370 \end_layout
5371
5372 \end_inset
5373
5374  file you have
5375 \end_layout
5376
5377 \begin_layout LyX-Code
5378 192 "
5379 \backslash
5380
5381 \backslash
5382 '{
5383 \backslash
5384
5385 \backslash
5386
5387 \backslash
5388 "{i}}"
5389 \begin_inset Newline newline
5390 \end_inset
5391
5392 192 "
5393 \backslash
5394
5395 \backslash
5396
5397 \backslash
5398 "{
5399 \backslash
5400
5401 \backslash
5402 '{i}}"
5403 \end_layout
5404
5405 \begin_layout Standard
5406 If \SpecialChar LyX
5407  cannot find a mapping for the string produced by the keystroke or a
5408  deadkey sequence, it will check if it looks like an accented char and try
5409  to draw an accent over the character on screen.
5410 \end_layout
5411
5412 \begin_layout Subsection
5413 Dead Keys
5414 \end_layout
5415
5416 \begin_layout Standard
5417 There is a second way to add support for international characters through
5418  so-called dead-keys.
5419  A dead-key works in combination with a letter to produce an accented character.
5420  Here, we'll explain how to create a really simple dead-key to illustrate
5421  how they work.
5422 \end_layout
5423
5424 \begin_layout Standard
5425 Suppose you happen to need the circumflex character, 
5426 \begin_inset Quotes eld
5427 \end_inset
5428
5429  ̂
5430 \begin_inset Quotes erd
5431 \end_inset
5432
5433 .
5434  You could bind the 
5435 \begin_inset Flex Noun
5436 status collapsed
5437
5438 \begin_layout Plain Layout
5439 ^
5440 \end_layout
5441
5442 \end_inset
5443
5444 -key [a.k.a.
5445 \begin_inset space ~
5446 \end_inset
5447
5448
5449 \begin_inset Flex Noun
5450 status collapsed
5451
5452 \begin_layout Plain Layout
5453 Shift-6
5454 \end_layout
5455
5456 \end_inset
5457
5458 ] to the \SpecialChar LyX
5459  command 
5460 \begin_inset Flex Code
5461 status collapsed
5462
5463 \begin_layout Plain Layout
5464 accent-circumflex
5465 \end_layout
5466
5467 \end_inset
5468
5469  in your 
5470 \begin_inset Flex Code
5471 status collapsed
5472
5473 \begin_layout Plain Layout
5474 lyxrc
5475 \end_layout
5476
5477 \end_inset
5478
5479  file.
5480  Now, whenever you type the 
5481 \begin_inset Flex Noun
5482 status collapsed
5483
5484 \begin_layout Plain Layout
5485 ^
5486 \end_layout
5487
5488 \end_inset
5489
5490 -key followed by a letter, that letter will have a circumflex accent on
5491  it.
5492  For example, the sequence 
5493 \begin_inset Quotes eld
5494 \end_inset
5495
5496
5497 \begin_inset Flex Noun
5498 status collapsed
5499
5500 \begin_layout Plain Layout
5501 ^e
5502 \end_layout
5503
5504 \end_inset
5505
5506
5507 \begin_inset Quotes erd
5508 \end_inset
5509
5510  produces the letter: 
5511 \begin_inset Quotes eld
5512 \end_inset
5513
5514 ê
5515 \begin_inset Quotes erd
5516 \end_inset
5517
5518 .
5519  If you tried to type 
5520 \begin_inset Quotes eld
5521 \end_inset
5522
5523
5524 \begin_inset Flex Noun
5525 status collapsed
5526
5527 \begin_layout Plain Layout
5528 ^t
5529 \end_layout
5530
5531 \end_inset
5532
5533
5534 \begin_inset Quotes erd
5535 \end_inset
5536
5537 , however, \SpecialChar LyX
5538  will complain with a beep, since a 
5539 \begin_inset Quotes eld
5540 \end_inset
5541
5542
5543 \begin_inset Flex Noun
5544 status collapsed
5545
5546 \begin_layout Plain Layout
5547 t
5548 \end_layout
5549
5550 \end_inset
5551
5552
5553 \begin_inset Quotes erd
5554 \end_inset
5555
5556  never takes a circumflex accent.
5557  Hitting 
5558 \begin_inset Flex Noun
5559 status collapsed
5560
5561 \begin_layout Plain Layout
5562 Space
5563 \end_layout
5564
5565 \end_inset
5566
5567  after a dead-key produces the bare-accent.
5568  Please note this last point! If you bind a key to a dead-key, you'll need
5569  to rebind the character on that key to yet another key.
5570  Binding the 
5571 \begin_inset Flex Noun
5572 status collapsed
5573
5574 \begin_layout Plain Layout
5575 ,-key
5576 \end_layout
5577
5578 \end_inset
5579
5580  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5581 \end_layout
5582
5583 \begin_layout Standard
5584 One common way to bind dead-keys is to use 
5585 \begin_inset Flex Noun
5586 status collapsed
5587
5588 \begin_layout Plain Layout
5589 Meta-
5590 \end_layout
5591
5592 \end_inset
5593
5594
5595 \begin_inset Flex Noun
5596 status collapsed
5597
5598 \begin_layout Plain Layout
5599 Ctrl-
5600 \end_layout
5601
5602 \end_inset
5603
5604 , and 
5605 \begin_inset Flex Noun
5606 status collapsed
5607
5608 \begin_layout Plain Layout
5609 Shift-
5610 \end_layout
5611
5612 \end_inset
5613
5614  in combination with an accent, like 
5615 \begin_inset Quotes eld
5616 \end_inset
5617
5618
5619 \begin_inset Flex Noun
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623 ~
5624 \end_layout
5625
5626 \end_inset
5627
5628
5629 \begin_inset Quotes erd
5630 \end_inset
5631
5632  or 
5633 \begin_inset Quotes eld
5634 \end_inset
5635
5636
5637 \begin_inset Flex Noun
5638 status collapsed
5639
5640 \begin_layout Plain Layout
5641 ,
5642 \end_layout
5643
5644 \end_inset
5645
5646
5647 \begin_inset Quotes erd
5648 \end_inset
5649
5650  or 
5651 \begin_inset Quotes eld
5652 \end_inset
5653
5654
5655 \begin_inset Flex Noun
5656 status collapsed
5657
5658 \begin_layout Plain Layout
5659 ^
5660 \end_layout
5661
5662 \end_inset
5663
5664
5665 \begin_inset Quotes erd
5666 \end_inset
5667
5668 .
5669  Another way involves using 
5670 \begin_inset Flex Code
5671 status collapsed
5672
5673 \begin_layout Plain Layout
5674 xmodmap
5675 \end_layout
5676
5677 \end_inset
5678
5679  and 
5680 \begin_inset Flex Code
5681 status collapsed
5682
5683 \begin_layout Plain Layout
5684 xkeycaps
5685 \end_layout
5686
5687 \end_inset
5688
5689  to set up the special 
5690 \begin_inset Flex Code
5691 status collapsed
5692
5693 \begin_layout Plain Layout
5694 Mode_Switch
5695 \end_layout
5696
5697 \end_inset
5698
5699  key.
5700  The 
5701 \begin_inset Flex Code
5702 status collapsed
5703
5704 \begin_layout Plain Layout
5705 Mode_Switch
5706 \end_layout
5707
5708 \end_inset
5709
5710  acts in some ways just like 
5711 \begin_inset Flex Noun
5712 status collapsed
5713
5714 \begin_layout Plain Layout
5715 Shift
5716 \end_layout
5717
5718 \end_inset
5719
5720  and permits you to bind keys to accented characters.
5721  You can also turn keys into dead-keys by binding them to something like
5722  
5723 \begin_inset Flex Code
5724 status collapsed
5725
5726 \begin_layout Plain Layout
5727 usldead_cedilla
5728 \end_layout
5729
5730 \end_inset
5731
5732  and then binding this symbolic key to the corresponding \SpecialChar LyX
5733  command.
5734 \begin_inset Foot
5735 status collapsed
5736
5737 \begin_layout Plain Layout
5738 Note from 
5739 \noun on
5740 John Weiss
5741 \noun default
5742 : This is exactly what I do in my 
5743 \begin_inset Flex Code
5744 status collapsed
5745
5746 \begin_layout Plain Layout
5747 ~/.lyx/lyxrc
5748 \end_layout
5749
5750 \end_inset
5751
5752  and my 
5753 \begin_inset Flex Code
5754 status collapsed
5755
5756 \begin_layout Plain Layout
5757 ~/.xmodmap
5758 \end_layout
5759
5760 \end_inset
5761
5762  files.
5763  I have my 
5764 \begin_inset Flex Noun
5765 status collapsed
5766
5767 \begin_layout Plain Layout
5768 Scroll
5769 \begin_inset space ~
5770 \end_inset
5771
5772 Lock
5773 \end_layout
5774
5775 \end_inset
5776
5777  key set up as 
5778 \begin_inset Flex Code
5779 status collapsed
5780
5781 \begin_layout Plain Layout
5782 Mode_Shift
5783 \end_layout
5784
5785 \end_inset
5786
5787  and a bunch of these 
5788 \begin_inset Quotes eld
5789 \end_inset
5790
5791
5792 \begin_inset Flex Code
5793 status collapsed
5794
5795 \begin_layout Plain Layout
5796 usldead_*
5797 \end_layout
5798
5799 \end_inset
5800
5801
5802 \begin_inset Quotes erd
5803 \end_inset
5804
5805  symbolic keys bound such things as 
5806 \begin_inset Flex Noun
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 Scroll
5811 \begin_inset space ~
5812 \end_inset
5813
5814 Lock-^
5815 \end_layout
5816
5817 \end_inset
5818
5819  and 
5820 \begin_inset Flex Noun
5821 status collapsed
5822
5823 \begin_layout Plain Layout
5824 Scroll
5825 \begin_inset space ~
5826 \end_inset
5827
5828 Lock-~
5829 \end_layout
5830
5831 \end_inset
5832
5833 .
5834  This is how I produce my accented characters.
5835 \end_layout
5836
5837 \end_inset
5838
5839  You can make just about anything into the 
5840 \begin_inset Flex Code
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 Mode_Switch
5845 \end_layout
5846
5847 \end_inset
5848
5849  key: One of the 
5850 \begin_inset Flex Noun
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854 Ctrl-
5855 \end_layout
5856
5857 \end_inset
5858
5859  keys, a spare function key, etc.
5860  As for the \SpecialChar LyX
5861  commands that produce accents, check the entry for 
5862 \begin_inset Flex Code
5863 status collapsed
5864
5865 \begin_layout Plain Layout
5866 accent-acute
5867 \end_layout
5868
5869 \end_inset
5870
5871  in the 
5872 \emph on
5873 Reference Manual
5874 \emph default
5875 .
5876  You'll find the complete list there.
5877 \end_layout
5878
5879 \begin_layout Subsection
5880 Saving your Language Configuration
5881 \end_layout
5882
5883 \begin_layout Standard
5884 You can edit your preferences so that your desired language environment
5885  is automatically configured when \SpecialChar LyX
5886  starts up, via the 
5887 \begin_inset Flex Noun
5888 status collapsed
5889
5890 \begin_layout Plain Layout
5891 Edit\SpecialChar menuseparator
5892 Preferences
5893 \end_layout
5894
5895 \end_inset
5896
5897  dialog.
5898 \end_layout
5899
5900 \begin_layout Chapter
5901 Installing New Document Classes, Layouts, and Templates
5902 \begin_inset CommandInset label
5903 LatexCommand label
5904 name "cha:Installing-New-Document"
5905
5906 \end_inset
5907
5908
5909 \begin_inset Argument 1
5910 status collapsed
5911
5912 \begin_layout Plain Layout
5913 Installing New Document Classes
5914 \end_layout
5915
5916 \end_inset
5917
5918
5919 \end_layout
5920
5921 \begin_layout Standard
5922 In this chapter, we describe the procedures for creating and installing
5923  new \SpecialChar LyX
5924  layout and template files, as well as offer a refresher on correctly
5925  installing new \SpecialChar LaTeX
5926  document classes.
5927  
5928 \end_layout
5929
5930 \begin_layout Standard
5931 First, let us a say a few words about how one ought to think about the relation
5932  between \SpecialChar LyX
5933  and \SpecialChar LaTeX
5934 .
5935  The thing to understand is that, in a certain sense, \SpecialChar LyX
5936  doesn't know anything
5937  about \SpecialChar LaTeX
5938 .
5939  Indeed, from \SpecialChar LyX
5940 's point of view, \SpecialChar LaTeX
5941  is just one of several 
5942 \begin_inset Quotes eld
5943 \end_inset
5944
5945 backend formats
5946 \begin_inset Quotes erd
5947 \end_inset
5948
5949  in which it is capable of producing output.
5950  Other such formats are DocBook, plaintext, and XHTML.
5951  \SpecialChar LaTeX
5952  is, of course, a particularly important format, but very little of the
5953  information \SpecialChar LyX
5954  has about \SpecialChar LaTeX
5955  is actually contained in the program itself.
5956 \begin_inset Foot
5957 status collapsed
5958
5959 \begin_layout Plain Layout
5960 Some commands are sufficiently complex that they are 
5961 \begin_inset Quotes eld
5962 \end_inset
5963
5964 hardcoded
5965 \begin_inset Quotes erd
5966 \end_inset
5967
5968  into \SpecialChar LyX
5969 .
5970  But the developers generally regard this as a Bad Thing.
5971 \end_layout
5972
5973 \end_inset
5974
5975  Rather, that information, even for the standard classes like 
5976 \begin_inset Flex Code
5977 status collapsed
5978
5979 \begin_layout Plain Layout
5980 article.cls
5981 \end_layout
5982
5983 \end_inset
5984
5985 , is contained in `layout files'.
5986  Similarly, \SpecialChar LyX
5987  itself does not know much about DocBook or XHTML.
5988  What it knows is contained in layout files.
5989 \end_layout
5990
5991 \begin_layout Standard
5992 You can think of the layout file for a given document class as a translation
5993  manual between \SpecialChar LyX
5994  constructs—paragraphs with their corresponding styles,
5995  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5996 , DocBook, or XHTML
5997  constructs.
5998  Almost everything \SpecialChar LyX
5999  knows about 
6000 \begin_inset Flex Code
6001 status collapsed
6002
6003 \begin_layout Plain Layout
6004 article.cls
6005 \end_layout
6006
6007 \end_inset
6008
6009 , for example, is contained in the file 
6010 \begin_inset Flex Code
6011 status collapsed
6012
6013 \begin_layout Plain Layout
6014 article.layout
6015 \end_layout
6016
6017 \end_inset
6018
6019  and in various other files it includes.
6020  For this reason, anyone intending to write layout files should plan to
6021  study the existing files.
6022  A good place to start is with 
6023 \begin_inset Flex Code
6024 status collapsed
6025
6026 \begin_layout Plain Layout
6027 stdsections.inc
6028 \end_layout
6029
6030 \end_inset
6031
6032 , which is included in 
6033 \begin_inset Flex Code
6034 status collapsed
6035
6036 \begin_layout Plain Layout
6037 article.layout
6038 \end_layout
6039
6040 \end_inset
6041
6042
6043 \begin_inset Flex Code
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 book.layout
6048 \end_layout
6049
6050 \end_inset
6051
6052 , and many of the other layout files for document classes.
6053  This file is where sections and the like are defined: 
6054 \begin_inset Flex Code
6055 status collapsed
6056
6057 \begin_layout Plain Layout
6058 stdsections.inc
6059 \end_layout
6060
6061 \end_inset
6062
6063  tells \SpecialChar LyX
6064  how paragraphs that are marked with the Section, Subsection, etc,
6065  styles can be translated into corresponding \SpecialChar LaTeX
6066 , DocBook, and XHTML commands
6067  and tags.
6068  The 
6069 \begin_inset Flex Code
6070 status collapsed
6071
6072 \begin_layout Plain Layout
6073 article.layout
6074 \end_layout
6075
6076 \end_inset
6077
6078  file basically just includes several of these 
6079 \begin_inset Flex Code
6080 status collapsed
6081
6082 \begin_layout Plain Layout
6083 std*.inc
6084 \end_layout
6085
6086 \end_inset
6087
6088  files.
6089 \end_layout
6090
6091 \begin_layout Standard
6092 Defining the \SpecialChar LyX
6093 –\SpecialChar LaTeX
6094  correspondence is not the only thing layout files do, though.
6095  Their other job is to define how the \SpecialChar LyX
6096  constructs themselves will appear
6097  on-screen.
6098  The fact that layout files have these two jobs is often a source of confusion,
6099  because they are completely separate.
6100  Telling \SpecialChar LyX
6101  how to translate a certain paragraph style into \SpecialChar LaTeX
6102  does not tell
6103  \SpecialChar LyX
6104  how to display it; conversely, telling \SpecialChar LyX
6105  how to display a certain paragraph
6106  style does not tell \SpecialChar LyX
6107  how to translate it into \SpecialChar LaTeX
6108  (let alone tell \SpecialChar LaTeX
6109  how to
6110  display it).
6111  So, in general, when you define a new \SpecialChar LyX
6112  construct, you must always do two
6113  quite separate things: (i)
6114 \begin_inset space ~
6115 \end_inset
6116
6117 tell \SpecialChar LyX
6118  how to translate it into \SpecialChar LaTeX
6119  and (ii)
6120 \begin_inset space ~
6121 \end_inset
6122
6123 tell \SpecialChar LyX
6124  how to display it.
6125 \end_layout
6126
6127 \begin_layout Standard
6128 Much the same is true, of course, as regards \SpecialChar LyX
6129 's other backend formats, though
6130  XHTML is in some ways different, because in that case \SpecialChar LyX
6131  
6132 \emph on
6133 is
6134 \emph default
6135  able, to some extent, to use information about how it should display a
6136  paragraph on the screen to output information (in the form of CSS) about
6137  how the paragraph should be displayed in a browser.
6138  Even in this case, however, the distinction between what \SpecialChar LyX
6139  does internally
6140  and how things are rendered externally remains in force, and the two can
6141  be controlled separately.
6142  See 
6143 \begin_inset CommandInset ref
6144 LatexCommand ref
6145 reference "sec:Tags-for-XHTML"
6146
6147 \end_inset
6148
6149  for the details.
6150 \end_layout
6151
6152 \begin_layout Section
6153 Installing new \SpecialChar LaTeX
6154  files
6155 \end_layout
6156
6157 \begin_layout Standard
6158 Some installations may not include a \SpecialChar LaTeX
6159  package or class file that you would
6160  like to use within \SpecialChar LyX
6161 .
6162  For example, you might need Foil\SpecialChar TeX
6163 , a package for preparing slides for overhead
6164  projectors.
6165  Modern \SpecialChar LaTeX
6166  distributions like \SpecialChar TeX
6167 Live (2008 or newer) or MiK\SpecialChar TeX
6168  provide a user interface
6169  for installing such packages.
6170  For example, with MiK\SpecialChar TeX
6171 , you start the program 
6172 \begin_inset Quotes eld
6173 \end_inset
6174
6175 Package
6176 \begin_inset space ~
6177 \end_inset
6178
6179 Manager
6180 \begin_inset Quotes erd
6181 \end_inset
6182
6183  to get a list of available packages.
6184  To install one of them, right click on it or use the corresponding toolbar
6185  button.
6186 \end_layout
6187
6188 \begin_layout Standard
6189 If your \SpecialChar LaTeX
6190  distribution does not provide such a `package manager', or if the
6191  package is not available from your distribution, then follow these steps
6192  to install it manually:
6193 \end_layout
6194
6195 \begin_layout Enumerate
6196 Get the package from 
6197 \begin_inset CommandInset href
6198 LatexCommand href
6199 name "CTAN"
6200 target "http://www.ctan.org/"
6201 literal "false"
6202
6203 \end_inset
6204
6205  or wherever.
6206 \end_layout
6207
6208 \begin_layout Enumerate
6209 If the package contains a file with the ending 
6210 \begin_inset Quotes eld
6211 \end_inset
6212
6213
6214 \begin_inset Flex Code
6215 status collapsed
6216
6217 \begin_layout Plain Layout
6218 .ins
6219 \end_layout
6220
6221 \end_inset
6222
6223
6224 \begin_inset Quotes erd
6225 \end_inset
6226
6227  (is the case for Foil\SpecialChar TeX
6228 ) then open a console, change to the folder of this
6229  file and execute the command 
6230 \begin_inset Flex Code
6231 status collapsed
6232
6233 \begin_layout Plain Layout
6234 latex foiltex.ins
6235 \end_layout
6236
6237 \end_inset
6238
6239 .
6240  You have now unpacked the package and have all files to install it.
6241  Most \SpecialChar LaTeX
6242 -packages are not packed and you can skip this step.
6243 \end_layout
6244
6245 \begin_layout Enumerate
6246 Now you need to decide if the package should be available for all users
6247  or only for you.
6248 \end_layout
6249
6250 \begin_deeper
6251 \begin_layout Enumerate
6252 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6253  for all users on your system, then install it in your `local' \SpecialChar TeX
6254  tree, otherwise
6255  install it in your own `user' \SpecialChar TeX
6256  tree.
6257  Where these trees should be created, if they do not already exist, depends
6258  on your system.
6259  To find this out, look in the file 
6260 \begin_inset Flex Code
6261 status collapsed
6262
6263 \begin_layout Plain Layout
6264 texmf.cnf
6265 \end_layout
6266
6267 \end_inset
6268
6269 .
6270 \begin_inset Foot
6271 status collapsed
6272
6273 \begin_layout Plain Layout
6274 This is usually in the directory 
6275 \begin_inset Flex Code
6276 status collapsed
6277
6278 \begin_layout Plain Layout
6279 $TEXMF/web2c
6280 \end_layout
6281
6282 \end_inset
6283
6284 , though you can execute the command 
6285 \begin_inset Flex Code
6286 status collapsed
6287
6288 \begin_layout Plain Layout
6289 kpsewhich texmf.cnf
6290 \end_layout
6291
6292 \end_inset
6293
6294  to locate it.
6295 \end_layout
6296
6297 \end_inset
6298
6299  The location of the `local' \SpecialChar TeX
6300  tree is defined by the 
6301 \begin_inset Flex Code
6302 status collapsed
6303
6304 \begin_layout Plain Layout
6305 TEXMFLOCAL
6306 \end_layout
6307
6308 \end_inset
6309
6310  variable; this is usually somewhere like 
6311 \begin_inset Flex Code
6312 status collapsed
6313
6314 \begin_layout Plain Layout
6315 /usr/local/share/texmf
6316 \end_layout
6317
6318 \end_inset
6319
6320  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6321 Live
6322  distribution.
6323  The location of the `user' \SpecialChar TeX
6324  tree is defined by 
6325 \begin_inset Flex Code
6326 status collapsed
6327
6328 \begin_layout Plain Layout
6329 TEXMFHOME
6330 \end_layout
6331
6332 \end_inset
6333
6334  and is commonly 
6335 \begin_inset Flex Code
6336 status collapsed
6337
6338 \begin_layout Plain Layout
6339 $HOME/texmf
6340 \end_layout
6341
6342 \end_inset
6343
6344  or 
6345 \begin_inset Flex Code
6346 status collapsed
6347
6348 \begin_layout Plain Layout
6349
6350 \family sans
6351 $HOME/.texliveXXXX
6352 \end_layout
6353
6354 \end_inset
6355
6356 .
6357  (If these variables are not predefined, you have to define them.) You'll
6358  probably need root permissions to create or modify the `local' tree, but
6359  not for your `user' tree.
6360 \begin_inset Newline newline
6361 \end_inset
6362
6363 In general, it is recommended to install in the user tree because your user
6364  will not be modified or even overwritten when you upgrade your system.
6365  It will typically also be backed up together with everything else when
6366  you backup your home directory (which, of course, you do on a regular basis).
6367 \end_layout
6368
6369 \begin_layout Enumerate
6370 On Windows, if you want the new package to be available for all users on
6371  your system, change to the folder where \SpecialChar LaTeX
6372  is installed and then change to
6373  the subfolder 
6374 \begin_inset Flex Code
6375 status collapsed
6376
6377 \begin_layout Plain Layout
6378 ~
6379 \backslash
6380 tex
6381 \backslash
6382 latex
6383 \end_layout
6384
6385 \end_inset
6386
6387 .
6388  (For MiK\SpecialChar TeX
6389 , this would be by default the folder 
6390 \begin_inset Flex Code
6391 status collapsed
6392
6393 \begin_layout Plain Layout
6394 ~:
6395 \backslash
6396 Programs
6397 \backslash
6398 MiKTeX
6399 \backslash
6400 tex
6401 \backslash
6402 latex
6403 \end_layout
6404
6405 \end_inset
6406
6407 .)
6408 \begin_inset Foot
6409 status collapsed
6410
6411 \begin_layout Plain Layout
6412 Note that this will be the correct path only on English installations.
6413  On a German one, it would be 
6414 \begin_inset Flex Code
6415 status collapsed
6416
6417 \begin_layout Plain Layout
6418 ~:
6419 \backslash
6420 Programme
6421 \backslash
6422 MiKTeX
6423 \backslash
6424 tex
6425 \backslash
6426 latex
6427 \end_layout
6428
6429 \end_inset
6430
6431 , and similarly for other languages.
6432 \end_layout
6433
6434 \end_inset
6435
6436  Create there a new folder 
6437 \begin_inset Flex Code
6438 status collapsed
6439
6440 \begin_layout Plain Layout
6441 foiltex
6442 \end_layout
6443
6444 \end_inset
6445
6446  and copy all files of the package into it.
6447  
6448 \begin_inset Newline newline
6449 \end_inset
6450
6451 If the package should only available for you or you don't have admin permissions
6452 , do the same, but in the local \SpecialChar LaTeX
6453  folder.
6454  E.
6455 \begin_inset space \thinspace{}
6456 \end_inset
6457
6458 g., for MiK\SpecialChar TeX
6459
6460 \begin_inset space ~
6461 \end_inset
6462
6463 2.8 under Windows XP, this would be the folder:
6464 \begin_inset Newline newline
6465 \end_inset
6466
6467
6468 \family sans
6469
6470 \begin_inset Flex Code
6471 status collapsed
6472
6473 \begin_layout Plain Layout
6474 ~:
6475 \backslash
6476 Documents and Settings
6477 \backslash
6478 <username>
6479 \backslash
6480 Application Data
6481 \backslash
6482
6483 \end_layout
6484
6485 \end_inset
6486
6487
6488 \begin_inset Newline newline
6489 \end_inset
6490
6491
6492 \family default
6493
6494 \begin_inset Phantom HPhantom
6495 status open
6496
6497 \begin_layout Plain Layout
6498
6499 \family sans
6500 ~:
6501 \backslash
6502
6503 \end_layout
6504
6505 \end_inset
6506
6507
6508 \begin_inset Flex Code
6509 status collapsed
6510
6511 \begin_layout Plain Layout
6512 MiKTeX
6513 \backslash
6514 2.8
6515 \backslash
6516 tex
6517 \backslash
6518 latex
6519 \end_layout
6520
6521 \end_inset
6522
6523
6524 \begin_inset Newline newline
6525 \end_inset
6526
6527 On Vista, it would be:
6528 \begin_inset Newline newline
6529 \end_inset
6530
6531
6532 \begin_inset Flex Code
6533 status collapsed
6534
6535 \begin_layout Plain Layout
6536 ~:
6537 \backslash
6538 Users
6539 \backslash
6540 <username>
6541 \backslash
6542 AppData
6543 \backslash
6544 Roaming
6545 \backslash
6546 2.8
6547 \backslash
6548 MiKTeX
6549 \backslash
6550 tex
6551 \backslash
6552 latex
6553 \end_layout
6554
6555 \end_inset
6556
6557
6558 \end_layout
6559
6560 \end_deeper
6561 \begin_layout Enumerate
6562 Now one only need to tell \SpecialChar LaTeX
6563  that there are new files.
6564  This depends on the used \SpecialChar LaTeX
6565 -Distribution:
6566 \end_layout
6567
6568 \begin_deeper
6569 \begin_layout Enumerate
6570 For \SpecialChar TeX
6571 Live execute the command 
6572 \begin_inset Flex Code
6573 status collapsed
6574
6575 \begin_layout Plain Layout
6576 texhash
6577 \end_layout
6578
6579 \end_inset
6580
6581  from a console.
6582  If you installed the package for all users, then you will probably need
6583  to have root permissions for that.
6584 \end_layout
6585
6586 \begin_layout Enumerate
6587 For MiK\SpecialChar TeX
6588 , if you have installed the package for all users, start the program
6589  
6590 \begin_inset Quotes eld
6591 \end_inset
6592
6593 Settings
6594 \begin_inset space ~
6595 \end_inset
6596
6597 (Admin)
6598 \begin_inset Quotes erd
6599 \end_inset
6600
6601  and press the button marked 
6602 \begin_inset Quotes eld
6603 \end_inset
6604
6605 Refresh FNDB
6606 \begin_inset Quotes erd
6607 \end_inset
6608
6609 .
6610  Otherwise start the program 
6611 \begin_inset Quotes eld
6612 \end_inset
6613
6614 Settings
6615 \begin_inset Quotes erd
6616 \end_inset
6617
6618  and do the same.
6619 \end_layout
6620
6621 \end_deeper
6622 \begin_layout Enumerate
6623 Finally, you need to tell \SpecialChar LyX
6624  that there are new packages available.
6625  So, in \SpecialChar LyX
6626 , use the menu 
6627 \begin_inset Flex Noun
6628 status collapsed
6629
6630 \begin_layout Plain Layout
6631 Tools
6632 \family sans
6633 \SpecialChar menuseparator
6634 Reconfigure
6635 \end_layout
6636
6637 \end_inset
6638
6639  and then restart \SpecialChar LyX
6640 .
6641 \end_layout
6642
6643 \begin_layout Standard
6644 Now the package is installed.
6645  In our example, the document class 
6646 \begin_inset Flex Code
6647 status collapsed
6648
6649 \begin_layout Plain Layout
6650 FoilTex
6651 \end_layout
6652
6653 \end_inset
6654
6655  will now be available under 
6656 \begin_inset Flex Noun
6657 status collapsed
6658
6659 \begin_layout Plain Layout
6660 Document\SpecialChar menuseparator
6661 Settings\SpecialChar menuseparator
6662 Document Class
6663 \end_layout
6664
6665 \end_inset
6666
6667  (in the 
6668 \begin_inset Quotes eld
6669 \end_inset
6670
6671 Presentations
6672 \begin_inset Quotes erd
6673 \end_inset
6674
6675  category).
6676  
6677 \end_layout
6678
6679 \begin_layout Standard
6680 If you would like to use a \SpecialChar LaTeX
6681  document class that is not even listed in the
6682  menu 
6683 \begin_inset Flex Noun
6684 status collapsed
6685
6686 \begin_layout Plain Layout
6687 Document\SpecialChar menuseparator
6688 Settings\SpecialChar menuseparator
6689 Document Class
6690 \end_layout
6691
6692 \end_inset
6693
6694 , then you need to create a `layout' file for it.
6695  That is the topic of the next section.
6696 \end_layout
6697
6698 \begin_layout Section
6699 Types of layout files
6700 \end_layout
6701
6702 \begin_layout Standard
6703 This section describes the various sorts of \SpecialChar LyX
6704  files that contain layout informati
6705 on.
6706  These files describe various paragraph and character styles, determining
6707  how \SpecialChar LyX
6708  should display them and how they should be translated into \SpecialChar LaTeX
6709 , DocBook,
6710  XHTML, or whatever output format is being used.
6711  
6712 \end_layout
6713
6714 \begin_layout Standard
6715 We shall try to provide a thorough description of the process of writing
6716  layout files here.
6717  However, there are so many different types of documents supported even
6718  by just \SpecialChar LaTeX
6719  that we can't hope to cover every different possibility or problem
6720  you might encounter.
6721  The \SpecialChar LyX
6722  users' list is frequented by people with lots of experience with layout
6723  design who are willing to share what they've learned, so please feel free
6724  to ask questions there.
6725 \end_layout
6726
6727 \begin_layout Standard
6728 As you prepare to write a new layout, it is extremely helpful to look at
6729  the layouts distributed with \SpecialChar LyX
6730 .
6731  If you write a \SpecialChar LyX
6732  layout for a \SpecialChar LaTeX
6733  document class that might also be used by
6734  others, or write a module that might be useful to others, then you should
6735  consider posting your layout to the 
6736 \begin_inset CommandInset href
6737 LatexCommand href
6738 name "layout section on the LyX wiki"
6739 target "https://wiki.lyx.org/Layouts/Layouts"
6740 literal "false"
6741
6742 \end_inset
6743
6744  or even to the \SpecialChar LyX
6745  developers' list, so that it might be included in \SpecialChar LyX
6746  itself.
6747 \begin_inset Foot
6748 status collapsed
6749
6750 \begin_layout Plain Layout
6751 Note that \SpecialChar LyX
6752  is licensed under the General Public License, so any material
6753  that is contributed to \SpecialChar LyX
6754  must be similarly licensed.
6755 \end_layout
6756
6757 \end_inset
6758
6759
6760 \end_layout
6761
6762 \begin_layout Subsection
6763 Layout modules
6764 \begin_inset CommandInset label
6765 LatexCommand label
6766 name "subsec:Layout-modules"
6767
6768 \end_inset
6769
6770
6771 \end_layout
6772
6773 \begin_layout Standard
6774 We have spoken to this point about `layout files'.
6775  But there are different sorts of files that contain layout information.
6776  Layout files, strictly so called, have the 
6777 \begin_inset Flex Code
6778 status collapsed
6779
6780 \begin_layout Plain Layout
6781 .layout
6782 \end_layout
6783
6784 \end_inset
6785
6786  extension and provide \SpecialChar LyX
6787  with information about document classes.
6788  Since \SpecialChar LyX
6789  1.6 layout information can also be contained in layout 
6790 \emph on
6791 modules
6792 \emph default
6793 , which have the 
6794 \begin_inset Flex Code
6795 status collapsed
6796
6797 \begin_layout Plain Layout
6798 .module
6799 \end_layout
6800
6801 \end_inset
6802
6803  extension.
6804  Modules are to \SpecialChar LaTeX
6805  packages much as layouts are to \SpecialChar LaTeX
6806  classes, and some modules—such
6807  as the 
6808 \begin_inset Flex Code
6809 status collapsed
6810
6811 \begin_layout Plain Layout
6812 endnotes
6813 \end_layout
6814
6815 \end_inset
6816
6817  module—specifically provide support for one package.
6818  In a sense, layout modules are similar to included
6819 \begin_inset Foot
6820 status collapsed
6821
6822 \begin_layout Plain Layout
6823 These can have any extension, but by convention have the 
6824 \begin_inset Flex Code
6825 status collapsed
6826
6827 \begin_layout Plain Layout
6828 .inc
6829 \end_layout
6830
6831 \end_inset
6832
6833  extension.
6834 \end_layout
6835
6836 \end_inset
6837
6838  files—files like 
6839 \begin_inset Flex Code
6840 status collapsed
6841
6842 \begin_layout Plain Layout
6843 stdsections.inc
6844 \end_layout
6845
6846 \end_inset
6847
6848 —in that modules are not specific to a given document class but may be used
6849  with many different classes.
6850  The difference is that using an included file with 
6851 \begin_inset Flex Code
6852 status collapsed
6853
6854 \begin_layout Plain Layout
6855 article.cls
6856 \end_layout
6857
6858 \end_inset
6859
6860  requires editing that file.
6861  Modules, by contrast, are selected in the 
6862 \begin_inset Flex Noun
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 Document\SpecialChar menuseparator
6867 Settings
6868 \end_layout
6869
6870 \end_inset
6871
6872  dialog.
6873 \end_layout
6874
6875 \begin_layout Standard
6876 Building modules is the easiest way to get started with layout editing,
6877  since it can be as simple as adding a single new paragraph style or flex
6878  inset.
6879  But modules may, in principle, contain anything a layout file can contain.
6880 \end_layout
6881
6882 \begin_layout Standard
6883 After creating a new module and copying it to the 
6884 \begin_inset Flex Code
6885 status collapsed
6886
6887 \begin_layout Plain Layout
6888 layouts/
6889 \end_layout
6890
6891 \end_inset
6892
6893  folder, you will need to reconfigure and then restart \SpecialChar LyX
6894  for the module to
6895  appear in the menu.
6896  However, changes you make to the module will be seen immediately, if you
6897  open 
6898 \begin_inset Flex Noun
6899 status collapsed
6900
6901 \begin_layout Plain Layout
6902 Document\SpecialChar menuseparator
6903 Settings
6904 \end_layout
6905
6906 \end_inset
6907
6908 , highlight something, and then hit 
6909 \begin_inset Quotes eld
6910 \end_inset
6911
6912 OK
6913 \begin_inset Quotes erd
6914 \end_inset
6915
6916 .
6917  
6918 \emph on
6919 It is strongly recommended that you save your work before doing this
6920 \emph default
6921 .
6922  In fact, 
6923 \emph on
6924 it is strongly recommended that you not attempt to edit modules while simultaneo
6925 usly working on actual documents
6926 \emph default
6927 .
6928  Though of course the developers strive to keep \SpecialChar LyX
6929  stable in such situations,
6930  syntax errors and the like in your module file could cause strange behavior.
6931 \end_layout
6932
6933 \begin_layout Subsubsection
6934 Local Layout
6935 \end_layout
6936
6937 \begin_layout Standard
6938 Modules are to \SpecialChar LyX
6939  as packages are to \SpecialChar LaTeX
6940 .
6941  Sometimes, however, you find yourself wanting a specific inset or character
6942  style just for one document and writing a module that will also be available
6943  to other documents makes little sense.
6944  What you need is \SpecialChar LyX
6945 's 
6946 \begin_inset Quotes eld
6947 \end_inset
6948
6949 Local Layout
6950 \begin_inset Quotes erd
6951 \end_inset
6952
6953 .
6954 \end_layout
6955
6956 \begin_layout Standard
6957 You will find it under 
6958 \family sans
6959 Document\SpecialChar menuseparator
6960 Settings\SpecialChar menuseparator
6961 Local Layout
6962 \family default
6963 .
6964  The large text box allows you to enter anything that you might enter in
6965  a layout file or module.
6966  You can think of a document's local layout, in fact, as a module that belongs
6967  just to it.
6968  So, in particular, you must enter a 
6969 \begin_inset Flex Code
6970 status collapsed
6971
6972 \begin_layout Plain Layout
6973 Format
6974 \end_layout
6975
6976 \end_inset
6977
6978  tag.
6979  Any format is acceptable, but one would normally use the format current
6980  at the time.
6981  (In \SpecialChar LyX
6982  
6983 \begin_inset Info
6984 type  "lyxinfo"
6985 arg   "version"
6986 \end_inset
6987
6988 , the current layout format is 
6989 \begin_inset Info
6990 type  "lyxinfo"
6991 arg   "layoutformat"
6992 \end_inset
6993
6994 .)
6995 \end_layout
6996
6997 \begin_layout Standard
6998 When you have entered something in the 
6999 \begin_inset Flex Code
7000 status collapsed
7001
7002 \begin_layout Plain Layout
7003 Local Layout
7004 \end_layout
7005
7006 \end_inset
7007
7008  pane, \SpecialChar LyX
7009  will enable the 
7010 \begin_inset Quotes eld
7011 \end_inset
7012
7013 Validate
7014 \begin_inset Quotes erd
7015 \end_inset
7016
7017  button at the bottom.
7018  Clicking this button will cause \SpecialChar LyX
7019  to determine whether what you have entered
7020  is valid layout information for the chosen format.
7021  \SpecialChar LyX
7022  will report the result but, unfortunately, will not tell you what errors
7023  there might have been.
7024  These will be written to the terminal, however, if \SpecialChar LyX
7025  is started from a terminal.
7026  You will not be permitted to save your local layout until you have entered
7027  something valid.
7028 \end_layout
7029
7030 \begin_layout Standard
7031 The warnings at the end of the previous section apply here, too.
7032  Do not play with local layout while you are actually working, especially
7033  if you have not saved your document.
7034  That said, using local layout with a test document can be a very convenient
7035  way to try out layout ideas, or even to start developing a module.
7036 \end_layout
7037
7038 \begin_layout Subsection
7039 Layout for 
7040 \begin_inset Flex Noun
7041 status collapsed
7042
7043 \begin_layout Plain Layout
7044 .sty
7045 \end_layout
7046
7047 \end_inset
7048
7049  files
7050 \end_layout
7051
7052 \begin_layout Standard
7053 There are two situations you are likely to encounter when wanting to support
7054  a new \SpecialChar LaTeX
7055  document class, involving style (
7056 \begin_inset Flex Code
7057 status collapsed
7058
7059 \begin_layout Plain Layout
7060 .sty
7061 \end_layout
7062
7063 \end_inset
7064
7065 ) files and \SpecialChar LaTeX2e
7066  class (
7067 \begin_inset Flex Code
7068 status collapsed
7069
7070 \begin_layout Plain Layout
7071 .cls
7072 \end_layout
7073
7074 \end_inset
7075
7076 ) .
7077  Supporting a style file is usually fairly easy.
7078  Supporting a new class file is a bit harder.
7079  We'll discuss the former in this section and the latter in the next.
7080  Similar remarks apply, of course, if you want to support a new DocBook
7081  DTD.
7082 \end_layout
7083
7084 \begin_layout Standard
7085 The easier case is the one in which your new document class is provided
7086  as a style file that is to be used in conjunction with an already supported
7087  document class.
7088  For the sake of the example, we'll assume that the style file is called
7089  
7090 \begin_inset Flex Noun
7091 status collapsed
7092
7093 \begin_layout Plain Layout
7094 myclass.sty
7095 \end_layout
7096
7097 \end_inset
7098
7099  and that it is meant to be used with 
7100 \begin_inset Flex Noun
7101 status collapsed
7102
7103 \begin_layout Plain Layout
7104 report.cls
7105 \end_layout
7106
7107 \end_inset
7108
7109 , which is a standard class.
7110  
7111 \end_layout
7112
7113 \begin_layout Standard
7114 Start by copying the existing class's layout file into your local directory:
7115 \begin_inset Foot
7116 status collapsed
7117
7118 \begin_layout Plain Layout
7119 Of course, which directory is your local directory will vary by platform,
7120  and \SpecialChar LyX
7121  allows you to specify your local directory on startup, too, using
7122  the 
7123 \begin_inset Flex Code
7124 status collapsed
7125
7126 \begin_layout Plain Layout
7127 -userdir
7128 \end_layout
7129
7130 \end_inset
7131
7132  option.
7133 \end_layout
7134
7135 \end_inset
7136
7137
7138 \end_layout
7139
7140 \begin_layout LyX-Code
7141 cp report.layout ~/.lyx/layouts/myclass.layout
7142 \end_layout
7143
7144 \begin_layout Standard
7145 Then edit 
7146 \begin_inset Flex Code
7147 status collapsed
7148
7149 \begin_layout Plain Layout
7150 myclass.layout
7151 \end_layout
7152
7153 \end_inset
7154
7155  and change the line: 
7156 \end_layout
7157
7158 \begin_layout LyX-Code
7159
7160 \backslash
7161 DeclareLaTeXClass{Report (Standard Class)}
7162 \end_layout
7163
7164 \begin_layout Standard
7165 to read
7166 \end_layout
7167
7168 \begin_layout LyX-Code
7169
7170 \backslash
7171 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7172 \end_layout
7173
7174 \begin_layout Standard
7175 Then add:
7176 \end_layout
7177
7178 \begin_layout LyX-Code
7179 Preamble 
7180 \begin_inset Newline newline
7181 \end_inset
7182
7183     
7184 \backslash
7185 usepackage{myclass}
7186 \begin_inset Newline newline
7187 \end_inset
7188
7189 EndPreamble
7190 \end_layout
7191
7192 \begin_layout Standard
7193 near the top of the file.
7194 \end_layout
7195
7196 \begin_layout Standard
7197 Start \SpecialChar LyX
7198  and select 
7199 \begin_inset Flex Noun
7200 status collapsed
7201
7202 \begin_layout Plain Layout
7203 Tools\SpecialChar menuseparator
7204 Reconfigure
7205 \end_layout
7206
7207 \end_inset
7208
7209 .
7210  Then restart \SpecialChar LyX
7211  and try creating a new document.
7212  You should see "
7213 \begin_inset Flex Noun
7214 status collapsed
7215
7216 \begin_layout Plain Layout
7217 Report (My Class)
7218 \end_layout
7219
7220 \end_inset
7221
7222 " as a document class option in the 
7223 \begin_inset Flex Noun
7224 status collapsed
7225
7226 \begin_layout Plain Layout
7227 Document\SpecialChar menuseparator
7228 Settings
7229 \end_layout
7230
7231 \end_inset
7232
7233  dialog.
7234  It is likely that some of the sectioning commands and such in your new
7235  class will work differently from how they worked in the base class—
7236 \begin_inset Flex Code
7237 status collapsed
7238
7239 \begin_layout Plain Layout
7240 report
7241 \end_layout
7242
7243 \end_inset
7244
7245  in this example—so you can fiddle around with the settings for the different
7246  sections if you wish.
7247  The layout information for sections is contained in 
7248 \begin_inset Flex Code
7249 status collapsed
7250
7251 \begin_layout Plain Layout
7252 stdsections.inc
7253 \end_layout
7254
7255 \end_inset
7256
7257 , but you do not need to copy and change this file.
7258  Instead, you can simply add your changes to your layout file, after the
7259  line 
7260 \begin_inset Flex Code
7261 status collapsed
7262
7263 \begin_layout Plain Layout
7264 Input stdclass.inc
7265 \end_layout
7266
7267 \end_inset
7268
7269 , which itself includes 
7270 \begin_inset Flex Code
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 stdsections.inc
7275 \end_layout
7276
7277 \end_inset
7278
7279 .
7280  For example, you might add these lines:
7281 \end_layout
7282
7283 \begin_layout LyX-Code
7284 Style Chapter
7285 \end_layout
7286
7287 \begin_layout LyX-Code
7288     Font
7289 \end_layout
7290
7291 \begin_layout LyX-Code
7292         Family Sans
7293 \end_layout
7294
7295 \begin_layout LyX-Code
7296     EndFont
7297 \end_layout
7298
7299 \begin_layout LyX-Code
7300 End
7301 \end_layout
7302
7303 \begin_layout Standard
7304 to change the font for chapter headings to sans-serif.
7305  This will override (or, in this case, add to) the existing declaration
7306  for the Chapter style.
7307  
7308 \end_layout
7309
7310 \begin_layout Standard
7311 Your new package may also provide commands or environments not present in
7312  the base class.
7313  In this case, you will want to add these to the layout file.
7314  See 
7315 \begin_inset CommandInset ref
7316 LatexCommand ref
7317 reference "sec:TextClass"
7318
7319 \end_inset
7320
7321  for information on how to do so.
7322 \end_layout
7323
7324 \begin_layout Standard
7325 If 
7326 \begin_inset Flex Noun
7327 status collapsed
7328
7329 \begin_layout Plain Layout
7330 myclass.sty
7331 \end_layout
7332
7333 \end_inset
7334
7335  can be used with several different document classes, and even if it cannot,
7336  you might find it easiest just to write a module that you can load with
7337  the base class.
7338  The simplest possible such module would be:
7339 \end_layout
7340
7341 \begin_layout LyX-Code
7342 #
7343 \backslash
7344 DeclareLyXModule{My Class} 
7345 \end_layout
7346
7347 \begin_layout LyX-Code
7348 #DescriptionBegin 
7349 \end_layout
7350
7351 \begin_layout LyX-Code
7352 #Support for myclass.sty.
7353 \end_layout
7354
7355 \begin_layout LyX-Code
7356 #DescriptionEnd
7357 \begin_inset Newline newline
7358 \end_inset
7359
7360
7361 \end_layout
7362
7363 \begin_layout LyX-Code
7364 Format 
7365 \begin_inset Info
7366 type  "lyxinfo"
7367 arg   "layoutformat"
7368 \end_inset
7369
7370
7371 \begin_inset Newline newline
7372 \end_inset
7373
7374
7375 \end_layout
7376
7377 \begin_layout LyX-Code
7378 Preamble
7379 \begin_inset Newline newline
7380 \end_inset
7381
7382     
7383 \backslash
7384 usepackage{myclass}
7385 \begin_inset Newline newline
7386 \end_inset
7387
7388 EndPreamble
7389 \end_layout
7390
7391 \begin_layout Standard
7392 A more complex module might modify the behavior of some existing constructs
7393  or define some new ones.
7394  Again, see 
7395 \begin_inset CommandInset ref
7396 LatexCommand ref
7397 reference "sec:TextClass"
7398
7399 \end_inset
7400
7401  for discussion.
7402 \end_layout
7403
7404 \begin_layout Subsection
7405 Layout for 
7406 \begin_inset Flex Noun
7407 status collapsed
7408
7409 \begin_layout Plain Layout
7410 .cls
7411 \end_layout
7412
7413 \end_inset
7414
7415  files
7416 \end_layout
7417
7418 \begin_layout Standard
7419 There are two possibilities here.
7420  One is that the class file is itself based upon an existing document class.
7421  For example, many thesis classes are based upon 
7422 \begin_inset Flex Noun
7423 status collapsed
7424
7425 \begin_layout Plain Layout
7426 book.cls
7427 \end_layout
7428
7429 \end_inset
7430
7431 .
7432  To see whether yours is, look for a line like
7433 \end_layout
7434
7435 \begin_layout LyX-Code
7436
7437 \backslash
7438 LoadClass{book}
7439 \end_layout
7440
7441 \begin_layout Standard
7442 in the file.
7443  If so, then you may proceed largely as in the previous section, though
7444  the 
7445 \begin_inset Flex Code
7446 status collapsed
7447
7448 \begin_layout Plain Layout
7449 Declare\SpecialChar LaTeX
7450 Class
7451 \end_layout
7452
7453 \end_inset
7454
7455  line will be different.
7456  If your new class is 
7457 \begin_inset Flex Code
7458 status collapsed
7459
7460 \begin_layout Plain Layout
7461 thesis
7462 \end_layout
7463
7464 \end_inset
7465
7466  and it is based upon 
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 book
7472 \end_layout
7473
7474 \end_inset
7475
7476 , then the line should read:
7477 \begin_inset Foot
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 And it will be easiest if you save the file to 
7482 \begin_inset Flex Code
7483 status collapsed
7484
7485 \begin_layout Plain Layout
7486 thesis.layout
7487 \end_layout
7488
7489 \end_inset
7490
7491 : \SpecialChar LyX
7492  assumes that the document class has the same name as the layout file.
7493  
7494 \end_layout
7495
7496 \end_inset
7497
7498
7499 \end_layout
7500
7501 \begin_layout LyX-Code
7502
7503 \backslash
7504 DeclareLaTeXClass[thesis,book]{thesis}
7505 \end_layout
7506
7507 \begin_layout Standard
7508 If, on the other hand, the new class is not based upon an existing class,
7509  you will probably have to 
7510 \begin_inset Quotes eld
7511 \end_inset
7512
7513 roll your own
7514 \begin_inset Quotes erd
7515 \end_inset
7516
7517  layout.
7518  We strongly suggest copying an existing layout file which uses a similar
7519  \SpecialChar LaTeX
7520  class and then modifying it, if you can do so.
7521  At least use an existing file as a starting point so you can find out what
7522  items you need to worry about.
7523  Again, the specifics are covered below.
7524 \end_layout
7525
7526 \begin_layout Subsection
7527 Creating templates
7528 \begin_inset CommandInset label
7529 LatexCommand label
7530 name "subsec:Creating-Templates"
7531
7532 \end_inset
7533
7534
7535 \end_layout
7536
7537 \begin_layout Standard
7538 Once you have written a layout file for a new document class, you might
7539  want to consider writing a 
7540 \emph on
7541 template
7542 \emph default
7543  for it, too.
7544  A template acts as a kind of tutorial for your layout, showing how it might
7545  be used, though containing dummy content.
7546  You can of course look at the various templates included with \SpecialChar LyX
7547  for ideas.
7548 \end_layout
7549
7550 \begin_layout Standard
7551 Templates are created just like usual documents: using \SpecialChar LyX
7552 .
7553  The only difference is that usual documents contain all possible settings,
7554  including the font scheme and the paper size.
7555  Usually a user doesn't want a template to overwrite his preferred settings
7556  for such parameters.
7557  For that reason, the designer of a template should remove the corresponding
7558  commands like 
7559 \begin_inset Flex Code
7560 status collapsed
7561
7562 \begin_layout Plain Layout
7563
7564 \backslash
7565 font_roman
7566 \end_layout
7567
7568 \end_inset
7569
7570  or 
7571 \begin_inset Flex Code
7572 status collapsed
7573
7574 \begin_layout Plain Layout
7575
7576 \backslash
7577 papersize
7578 \end_layout
7579
7580 \end_inset
7581
7582  from the template \SpecialChar LyX
7583  file.
7584  This can be done with any simple text-editor, for example 
7585 \begin_inset Flex Code
7586 status collapsed
7587
7588 \begin_layout Plain Layout
7589 vi
7590 \end_layout
7591
7592 \end_inset
7593
7594  or 
7595 \begin_inset Flex Code
7596 status collapsed
7597
7598 \begin_layout Plain Layout
7599 notepad
7600 \end_layout
7601
7602 \end_inset
7603
7604 .
7605 \end_layout
7606
7607 \begin_layout Standard
7608 Put the edited template files you create in 
7609 \begin_inset Flex Code
7610 status collapsed
7611
7612 \begin_layout Plain Layout
7613 UserDir/templates/
7614 \end_layout
7615
7616 \end_inset
7617
7618 , copy the ones you use from the global template directory in 
7619 \begin_inset Flex Code
7620 status collapsed
7621
7622 \begin_layout Plain Layout
7623 LyXDir/templates/
7624 \end_layout
7625
7626 \end_inset
7627
7628  to the same place, and redefine the template path in the 
7629 \begin_inset Flex Noun
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633 Tools\SpecialChar menuseparator
7634 Preferences\SpecialChar menuseparator
7635 Paths
7636 \end_layout
7637
7638 \end_inset
7639
7640  dialog.
7641 \end_layout
7642
7643 \begin_layout Standard
7644 Note, by the way, that there is a template which has a particular meaning:
7645 \begin_inset Newline linebreak
7646 \end_inset
7647
7648
7649 \begin_inset Flex Code
7650 status collapsed
7651
7652 \begin_layout Plain Layout
7653 defaults.lyx
7654 \end_layout
7655
7656 \end_inset
7657
7658 .
7659  This template is loaded every time you create a new document with 
7660 \begin_inset Flex Noun
7661 status collapsed
7662
7663 \begin_layout Plain Layout
7664 File\SpecialChar menuseparator
7665 New
7666 \end_layout
7667
7668 \end_inset
7669
7670  in order to provide useful defaults.
7671  To create this template from inside \SpecialChar LyX
7672 , all you have to do is to open a document
7673  with the correct settings, and use the 
7674 \begin_inset Flex Noun
7675 status collapsed
7676
7677 \begin_layout Plain Layout
7678 Save as Document Defaults
7679 \end_layout
7680
7681 \end_inset
7682
7683  button.
7684 \end_layout
7685
7686 \begin_layout Subsection
7687 Upgrading old layout files
7688 \end_layout
7689
7690 \begin_layout Standard
7691 The format of layout files changes with each \SpecialChar LyX
7692  release, so old layout files
7693  need to be converted to the new format.
7694  If \SpecialChar LyX
7695  reads a layout file in an older format, it automatically calls the
7696  script 
7697 \begin_inset Flex Code
7698 status collapsed
7699
7700 \begin_layout Plain Layout
7701 layout2layout.py
7702 \end_layout
7703
7704 \end_inset
7705
7706  to convert it to a temporary file in current format.
7707  The original file is left untouched.
7708  If you use the layout file often, then, you may want to convert it permanently,
7709  so that \SpecialChar LyX
7710  does not have to do so itself every time.
7711  To do this, you can call the converter manually:
7712 \end_layout
7713
7714 \begin_layout Enumerate
7715 rename the file 
7716 \begin_inset Flex Code
7717 status collapsed
7718
7719 \begin_layout Plain Layout
7720 myclass.layout
7721 \end_layout
7722
7723 \end_inset
7724
7725  to 
7726 \begin_inset Flex Code
7727 status collapsed
7728
7729 \begin_layout Plain Layout
7730 myclass.old
7731 \end_layout
7732
7733 \end_inset
7734
7735
7736 \end_layout
7737
7738 \begin_layout Enumerate
7739 Call the command
7740 \begin_inset Newline newline
7741 \end_inset
7742
7743
7744 \begin_inset Flex Code
7745 status collapsed
7746
7747 \begin_layout Plain Layout
7748 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7749 \end_layout
7750
7751 \end_inset
7752
7753
7754 \begin_inset Newline newline
7755 \end_inset
7756
7757 where 
7758 \begin_inset Flex Code
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 LyXDir
7763 \end_layout
7764
7765 \end_inset
7766
7767  is the name of your \SpecialChar LyX
7768  system directory.
7769 \end_layout
7770
7771 \begin_layout Standard
7772 Note that manual conversion does not affect included files, so these will
7773  have to be converted separately.
7774 \end_layout
7775
7776 \begin_layout Subsection
7777 \begin_inset CommandInset label
7778 LatexCommand label
7779 name "subsec:Cite-Engine-Files"
7780
7781 \end_inset
7782
7783 Cite engine files
7784 \end_layout
7785
7786 \begin_layout Standard
7787 A specific form of layout files are the so-called 
7788 \begin_inset Flex Code
7789 status collapsed
7790
7791 \begin_layout Plain Layout
7792 *.citeengine
7793 \end_layout
7794
7795 \end_inset
7796
7797  files that are located in the 
7798 \begin_inset Flex Code
7799 status collapsed
7800
7801 \begin_layout Plain Layout
7802 citeengines/
7803 \end_layout
7804
7805 \end_inset
7806
7807  sub-directory.
7808  Their purpose is to define the specifics of \SpecialChar LaTeX
7809  packages aimed at bibliography
7810  generation, such as 
7811 \family sans
7812 natbib
7813 \family default
7814 ,
7815 \family sans
7816  jurabib
7817 \family default
7818  or 
7819 \family sans
7820 biblatex
7821 \family default
7822 , but also the way how normal Bib\SpecialChar TeX
7823  citations (without additional packages)
7824  are handled in \SpecialChar LyX
7825  is defined in such a file.
7826  
7827 \end_layout
7828
7829 \begin_layout Standard
7830 More specifically, it is defined which packages \SpecialChar LyX
7831  needs to load, which citation
7832  commands are available, how these are to be displayed in \SpecialChar LyX
7833  (in the workarea,
7834  the dialogs, the context menus) as well as in the XHTML and plain text
7835  output.
7836  Furthermore, the files specify available style variants (author-year, numerical
7837 , etc.) and their specifics.
7838  The cite engine files are also used to generate the options that are available
7839  in 
7840 \family sans
7841 Document\SpecialChar menuseparator
7842 Settings\SpecialChar menuseparator
7843 Bibliography\SpecialChar menuseparator
7844 Style engine
7845 \family default
7846 .
7847 \end_layout
7848
7849 \begin_layout Standard
7850 Even though a cite engine file is essentially a normal layout file that
7851  could theoretically include any layout information, it usually primarily
7852  includes some specific parameters such as 
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857 MaxCiteNames
7858 \end_layout
7859
7860 \end_inset
7861
7862
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 CiteFramework
7868 \end_layout
7869
7870 \end_inset
7871
7872
7873 \begin_inset Flex Code
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 CiteEngine
7878 \end_layout
7879
7880 \end_inset
7881
7882  and 
7883 \begin_inset Flex Code
7884 status collapsed
7885
7886 \begin_layout Plain Layout
7887 CiteFormat
7888 \end_layout
7889
7890 \end_inset
7891
7892  blocks.
7893  The syntax of the latter two is described in 
7894 \begin_inset CommandInset ref
7895 LatexCommand ref
7896 reference "subsec:Citation-engine-description"
7897 plural "false"
7898 caps "false"
7899 noprefix "false"
7900
7901 \end_inset
7902
7903  and 
7904 \begin_inset CommandInset ref
7905 LatexCommand ref
7906 reference "subsec:Citation-format-description"
7907
7908 \end_inset
7909
7910 , as well as in the files themselves.
7911 \end_layout
7912
7913 \begin_layout Section
7914 \begin_inset CommandInset label
7915 LatexCommand label
7916 name "sec:TextClass"
7917
7918 \end_inset
7919
7920 The layout file format
7921 \end_layout
7922
7923 \begin_layout Standard
7924 The following sections describe how layout files are structured and written.
7925  Our advice is to go slowly, save and test often.
7926  It is really not that hard, except that the multitude of options can become
7927  overwhelming, especially if you try to check out too many at once.
7928  It becomes easier if you use existing layouts of \SpecialChar LyX
7929  as examples/reference
7930  or if you modify an existing layout to your needs.
7931 \end_layout
7932
7933 \begin_layout Standard
7934 Note that all the tags used in layout files are case-insensitive.
7935  This means that 
7936 \begin_inset Flex Code
7937 status collapsed
7938
7939 \begin_layout Plain Layout
7940 Style
7941 \end_layout
7942
7943 \end_inset
7944
7945
7946 \begin_inset Flex Code
7947 status collapsed
7948
7949 \begin_layout Plain Layout
7950 style
7951 \end_layout
7952
7953 \end_inset
7954
7955  and 
7956 \begin_inset Flex Code
7957 status collapsed
7958
7959 \begin_layout Plain Layout
7960 StYlE
7961 \end_layout
7962
7963 \end_inset
7964
7965  are really the same tag.
7966  The possible arguments are printed in brackets after the tag's name.
7967  The default argument is typeset 
7968 \begin_inset Flex Code
7969 status collapsed
7970
7971 \begin_layout Plain Layout
7972
7973 \emph on
7974 emphasized
7975 \end_layout
7976
7977 \end_inset
7978
7979 .
7980  If the argument has a data type like 
7981 \begin_inset Quotes eld
7982 \end_inset
7983
7984 string
7985 \begin_inset Quotes erd
7986 \end_inset
7987
7988  or 
7989 \begin_inset Quotes eld
7990 \end_inset
7991
7992 float
7993 \begin_inset Quotes erd
7994 \end_inset
7995
7996 , the default is shown like this: 
7997 \begin_inset Flex Code
7998 status collapsed
7999
8000 \begin_layout Plain Layout
8001 float=
8002 \emph on
8003 default
8004 \end_layout
8005
8006 \end_inset
8007
8008 .
8009 \end_layout
8010
8011 \begin_layout Subsection
8012 The document class declaration and classification
8013 \end_layout
8014
8015 \begin_layout Standard
8016 Lines in a layout file which begin with 
8017 \begin_inset Flex Code
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 #
8022 \end_layout
8023
8024 \end_inset
8025
8026  are comments.
8027  There is one exception to this rule.
8028  All 
8029 \begin_inset Flex Code
8030 status collapsed
8031
8032 \begin_layout Plain Layout
8033 *.layout
8034 \end_layout
8035
8036 \end_inset
8037
8038  files should begin with lines like:
8039 \end_layout
8040
8041 \begin_layout LyX-Code
8042
8043 \size small
8044 #% Do not delete the line below; configure depends on this 
8045 \end_layout
8046
8047 \begin_layout LyX-Code
8048
8049 \size small
8050 #  
8051 \backslash
8052 DeclareLaTeXClass{Article (Standard Class)}
8053 \end_layout
8054
8055 \begin_layout LyX-Code
8056
8057 \size small
8058 #  
8059 \backslash
8060 DeclareCategory{Articles}
8061 \end_layout
8062
8063 \begin_layout Standard
8064 The second and third lines are used when you (re)configure \SpecialChar LyX
8065 .
8066  The layout file is read by the \SpecialChar LaTeX
8067  script 
8068 \begin_inset Flex Code
8069 status collapsed
8070
8071 \begin_layout Plain Layout
8072 chkconfig.ltx
8073 \end_layout
8074
8075 \end_inset
8076
8077 , in a special mode where 
8078 \begin_inset Flex Code
8079 status collapsed
8080
8081 \begin_layout Plain Layout
8082 #
8083 \end_layout
8084
8085 \end_inset
8086
8087  is ignored.
8088  The first line is just a \SpecialChar LaTeX
8089  comment, the second one contains the mandatory
8090  declaration of the text class and the third line contains the optional
8091  classification of the class.
8092  If these lines appear in a file named 
8093 \begin_inset Flex Code
8094 status collapsed
8095
8096 \begin_layout Plain Layout
8097 article.layout
8098 \end_layout
8099
8100 \end_inset
8101
8102 , then they define a text class of name 
8103 \begin_inset Flex Code
8104 status collapsed
8105
8106 \begin_layout Plain Layout
8107 article
8108 \end_layout
8109
8110 \end_inset
8111
8112  (the name of the layout file) which uses the \SpecialChar LaTeX
8113  document class 
8114 \begin_inset Flex Code
8115 status collapsed
8116
8117 \begin_layout Plain Layout
8118 article.cls
8119 \end_layout
8120
8121 \end_inset
8122
8123  (the default is to use the same name as the layout).
8124  The string 
8125 \begin_inset Quotes eld
8126 \end_inset
8127
8128 Article (Standard Class)
8129 \begin_inset Quotes erd
8130 \end_inset
8131
8132  that appears above is used as a description of the text class in the 
8133 \begin_inset Flex Noun
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137 Document\SpecialChar menuseparator
8138 Settings
8139 \end_layout
8140
8141 \end_inset
8142
8143  dialog.
8144  The category (
8145 \begin_inset Quotes eld
8146 \end_inset
8147
8148 Articles
8149 \begin_inset Quotes erd
8150 \end_inset
8151
8152  in the example) is also used in the 
8153 \begin_inset Flex Noun
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 Document\SpecialChar menuseparator
8158 Settings
8159 \end_layout
8160
8161 \end_inset
8162
8163  dialog: the text classes are grouped by these categories (which are usually
8164  genres, so typical categories are 
8165 \begin_inset Quotes eld
8166 \end_inset
8167
8168 Articles
8169 \begin_inset Quotes erd
8170 \end_inset
8171
8172
8173 \begin_inset Quotes eld
8174 \end_inset
8175
8176 Books
8177 \begin_inset Quotes erd
8178 \end_inset
8179
8180
8181 \begin_inset Quotes eld
8182 \end_inset
8183
8184 Reports
8185 \begin_inset Quotes erd
8186 \end_inset
8187
8188
8189 \begin_inset Quotes eld
8190 \end_inset
8191
8192 Letters
8193 \begin_inset Quotes erd
8194 \end_inset
8195
8196
8197 \begin_inset Quotes eld
8198 \end_inset
8199
8200 Presentations
8201 \begin_inset Quotes erd
8202 \end_inset
8203
8204
8205 \begin_inset Quotes eld
8206 \end_inset
8207
8208 Curricula Vitae
8209 \begin_inset Quotes erd
8210 \end_inset
8211
8212  etc.).
8213  If no category has been declared, the class will be put in the 
8214 \begin_inset Quotes eld
8215 \end_inset
8216
8217 Uncategorized
8218 \begin_inset Quotes erd
8219 \end_inset
8220
8221  group.
8222 \end_layout
8223
8224 \begin_layout Standard
8225 Let's assume that you wrote your own text class that uses the 
8226 \begin_inset Flex Code
8227 status collapsed
8228
8229 \begin_layout Plain Layout
8230 article.cls
8231 \end_layout
8232
8233 \end_inset
8234
8235  document class, but where you changed the appearance of the section headings.
8236  If you put it in a file 
8237 \begin_inset Flex Code
8238 status collapsed
8239
8240 \begin_layout Plain Layout
8241 myarticle.layout
8242 \end_layout
8243
8244 \end_inset
8245
8246 , the header of this file should be:
8247 \end_layout
8248
8249 \begin_layout LyX-Code
8250
8251 \size small
8252 #% Do not delete the line below; configure depends on this 
8253 \end_layout
8254
8255 \begin_layout LyX-Code
8256
8257 \size small
8258 #  
8259 \backslash
8260 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8261 \end_layout
8262
8263 \begin_layout LyX-Code
8264
8265 \size small
8266 #  
8267 \backslash
8268 DeclareCategory{Articles}
8269 \end_layout
8270
8271 \begin_layout Standard
8272 This declares a text class 
8273 \begin_inset Flex Code
8274 status collapsed
8275
8276 \begin_layout Plain Layout
8277 myarticle
8278 \end_layout
8279
8280 \end_inset
8281
8282 , associated with the \SpecialChar LaTeX
8283  document class 
8284 \begin_inset Flex Code
8285 status collapsed
8286
8287 \begin_layout Plain Layout
8288 article.cls
8289 \end_layout
8290
8291 \end_inset
8292
8293  and described as 
8294 \begin_inset Quotes eld
8295 \end_inset
8296
8297 Article (with My Own Headings)
8298 \begin_inset Quotes erd
8299 \end_inset
8300
8301 .
8302  If your text class depends on several packages, you can declare it as:
8303 \end_layout
8304
8305 \begin_layout LyX-Code
8306
8307 \size small
8308 #% Do not delete the line below; configure depends on this 
8309 \end_layout
8310
8311 \begin_layout LyX-Code
8312
8313 \size small
8314 #  
8315 \backslash
8316 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8317 \end_layout
8318
8319 \begin_layout LyX-Code
8320
8321 \size small
8322 #  
8323 \backslash
8324 DeclareCategory{Articles}
8325 \end_layout
8326
8327 \begin_layout Standard
8328 This indicates that your text class uses the 
8329 \begin_inset Flex Code
8330 status collapsed
8331
8332 \begin_layout Plain Layout
8333 foo.sty
8334 \end_layout
8335
8336 \end_inset
8337
8338  package.
8339  Finally, it is also possible to declare classes for DocBook code.
8340  Typical declarations will look like:
8341 \end_layout
8342
8343 \begin_layout LyX-Code
8344
8345 \size small
8346 #% Do not delete the line below; configure depends on this 
8347 \end_layout
8348
8349 \begin_layout LyX-Code
8350
8351 \size small
8352
8353 \backslash
8354 DeclareDocBookClass[article]{SGML (DocBook Article)}
8355 \end_layout
8356
8357 \begin_layout LyX-Code
8358
8359 \size small
8360
8361 \backslash
8362 DeclareCategory{Articles (DocBook)}
8363 \end_layout
8364
8365 \begin_layout Standard
8366 Note that these declarations can also be given an optional parameter declaring
8367  the name of the document class (but not a list).
8368 \end_layout
8369
8370 \begin_layout Standard
8371 So, to be as explicit as possible, the form of the layout declaration is:
8372 \end_layout
8373
8374 \begin_layout LyX-Code
8375
8376 \size small
8377 #  
8378 \backslash
8379 DeclareLaTeXClass[class,package.sty]{layout description}
8380 \end_layout
8381
8382 \begin_layout LyX-Code
8383
8384 \size small
8385 #  
8386 \backslash
8387 DeclareCategory{category}
8388 \end_layout
8389
8390 \begin_layout Standard
8391 The class need only be specified if the name of the \SpecialChar LaTeX
8392  class file and the
8393  name of the layout file are different or if there are packages to load.
8394  If the name of the class file is not specified, then \SpecialChar LyX
8395  will simply assume
8396  that it is the same as the name of the layout file.
8397 \end_layout
8398
8399 \begin_layout Standard
8400 When the text class has been modified to your taste, all you have to do
8401  is to copy it either to 
8402 \begin_inset Flex Code
8403 status collapsed
8404
8405 \begin_layout Plain Layout
8406 LyXDir/layouts/
8407 \end_layout
8408
8409 \end_inset
8410
8411  or to 
8412 \begin_inset Flex Code
8413 status collapsed
8414
8415 \begin_layout Plain Layout
8416 UserDir/layouts
8417 \end_layout
8418
8419 \end_inset
8420
8421 , run 
8422 \begin_inset Flex Noun
8423 status collapsed
8424
8425 \begin_layout Plain Layout
8426 Tools\SpecialChar menuseparator
8427 Reconfigure
8428 \end_layout
8429
8430 \end_inset
8431
8432 , exit \SpecialChar LyX
8433  and restart.
8434  Then your new text class should be available along with the others.
8435 \end_layout
8436
8437 \begin_layout Standard
8438 Once the layout file is installed, you can edit it and see your changes
8439  without having to reconfigure or to restart \SpecialChar LyX
8440 .
8441 \begin_inset Foot
8442 status collapsed
8443
8444 \begin_layout Plain Layout
8445 In versions of \SpecialChar LyX
8446  prior to 1.6, this was not true.
8447  As a result, editing layout files was very time consuming, since you had
8448  constantly to restart \SpecialChar LyX
8449  to see changes.
8450 \end_layout
8451
8452 \end_inset
8453
8454  You can force a reload of the current layout by using the \SpecialChar LyX
8455  function 
8456 \begin_inset Flex Noun
8457 status collapsed
8458
8459 \begin_layout Plain Layout
8460 layout-reload
8461 \end_layout
8462
8463 \end_inset
8464
8465 .
8466  There is no default binding for this function—though, of course, you can
8467  bind it to a key yourself.
8468  But you will normally use this function simply by entering it in the mini-buffe
8469 r.
8470  
8471 \end_layout
8472
8473 \begin_layout Standard
8474
8475 \emph on
8476 Warning
8477 \emph default
8478
8479 \begin_inset Flex Noun
8480 status collapsed
8481
8482 \begin_layout Plain Layout
8483 layout-reload
8484 \end_layout
8485
8486 \end_inset
8487
8488  is very much an `advanced feature'.
8489  It is 
8490 \emph on
8491 strongly
8492 \emph default
8493  recommended that you save your work before using this function.
8494  In fact, it is 
8495 \emph on
8496 strongly
8497 \emph default
8498  recommended that you not attempt to edit layout information while simultaneousl
8499 y working on a document that you care about.
8500  Use a test document.
8501  Syntax errors and the like in your layout file could cause peculiar behavior.
8502  In particular, such errors could cause \SpecialChar LyX
8503  to regard the current layout as
8504  invalid and to attempt to switch to some other layout.
8505 \begin_inset Foot
8506 status collapsed
8507
8508 \begin_layout Plain Layout
8509 Really bad syntax errors may even caused \SpecialChar LyX
8510  to exit.
8511  This is because certain sorts of errors may make \SpecialChar LyX
8512  unable to read 
8513 \emph on
8514 any
8515 \emph default
8516  layout information.
8517  Please be careful.
8518 \end_layout
8519
8520 \end_inset
8521
8522  The \SpecialChar LyX
8523  team strives to keep \SpecialChar LyX
8524  stable in such situations, but safe is better
8525  than sorry.
8526 \begin_inset Foot
8527 status collapsed
8528
8529 \begin_layout Plain Layout
8530 While we're giving advice: make regular backups.
8531  And be nice to your mother.
8532 \end_layout
8533
8534 \end_inset
8535
8536
8537 \end_layout
8538
8539 \begin_layout Subsection
8540 The Module declaration
8541 \end_layout
8542
8543 \begin_layout Standard
8544 A module must begin with a line like the following:
8545 \end_layout
8546
8547 \begin_layout LyX-Code
8548 #
8549 \backslash
8550 DeclareLyXModule[endnotes.sty]{Endnotes}
8551 \change_inserted -712698321 1554395911
8552
8553 \end_layout
8554
8555 \begin_layout LyX-Code
8556
8557 \change_inserted -712698321 1554395924
8558
8559 \size small
8560 #
8561 \backslash
8562 DeclareCategory{Foot- and Endnotes}
8563 \change_deleted -712698321 1554395911
8564
8565 \size default
8566  
8567 \change_unchanged
8568
8569 \end_layout
8570
8571 \begin_layout Standard
8572 The mandatory argument
8573 \change_inserted -712698321 1554395956
8574  of 
8575 \family typewriter
8576
8577 \backslash
8578 DeclareLyXModule
8579 \change_unchanged
8580
8581 \family default
8582 , in curly brackets, is the name of the module, as it should appear in 
8583 \begin_inset Flex Noun
8584 status collapsed
8585
8586 \begin_layout Plain Layout
8587 Document\SpecialChar menuseparator
8588 Settings\SpecialChar menuseparator
8589 Modules
8590 \end_layout
8591
8592 \end_inset
8593
8594 .
8595  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8596  packages
8597  on which the module depends.
8598  It is also possible to use the form 
8599 \begin_inset Flex Noun
8600 status collapsed
8601
8602 \begin_layout Plain Layout
8603 from->to
8604 \end_layout
8605
8606 \end_inset
8607
8608  as an optional argument, which declares that the module can only be used
8609  when there exists a conversion chain between the formats `
8610 \begin_inset Flex Code
8611 status collapsed
8612
8613 \begin_layout Plain Layout
8614 from
8615 \end_layout
8616
8617 \end_inset
8618
8619 ' and `
8620 \begin_inset Flex Code
8621 status collapsed
8622
8623 \begin_layout Plain Layout
8624 to
8625 \end_layout
8626
8627 \end_inset
8628
8629 '.
8630
8631 \change_inserted -712698321 1554396133
8632  The 
8633 \family typewriter
8634
8635 \backslash
8636 DeclareCategory
8637 \family default
8638  declaration is not strictly mandatory, but you should add it, since it
8639  is helpful to find the module.
8640  Please have a look at the existing module categories and if appropriate,
8641  use one of those.
8642 \change_unchanged
8643
8644 \end_layout
8645
8646 \begin_layout Standard
8647 The module 
8648 \change_inserted -712698321 1554395988
8649 and category 
8650 \change_unchanged
8651 declaration should then be followed by lines like the following:
8652 \begin_inset Foot
8653 status collapsed
8654
8655 \begin_layout Plain Layout
8656 Preferably in English if the module should be published with \SpecialChar LyX
8657 .
8658  This description will appear in the list of messages to be translated and
8659  will be thus translated with the next interface update.
8660 \end_layout
8661
8662 \end_inset
8663
8664
8665 \end_layout
8666
8667 \begin_layout LyX-Code
8668 #DescriptionBegin 
8669 \end_layout
8670
8671 \begin_layout LyX-Code
8672 #Adds an endnote command, in addition to footnotes.
8673  
8674 \end_layout
8675
8676 \begin_layout LyX-Code
8677 #You will need to add  
8678 \backslash
8679 theendnotes in TeX code where you 
8680 \end_layout
8681
8682 \begin_layout LyX-Code
8683 #want the endnotes to appear.
8684  
8685 \end_layout
8686
8687 \begin_layout LyX-Code
8688 #DescriptionEnd 
8689 \end_layout
8690
8691 \begin_layout LyX-Code
8692 #Requires: somemodule | othermodule
8693 \end_layout
8694
8695 \begin_layout LyX-Code
8696 #Excludes: badmodule
8697 \end_layout
8698
8699 \begin_layout Standard
8700 The description is used in 
8701 \begin_inset Flex Noun
8702 status collapsed
8703
8704 \begin_layout Plain Layout
8705 Document\SpecialChar menuseparator
8706 Settings\SpecialChar menuseparator
8707 Modules
8708 \end_layout
8709
8710 \end_inset
8711
8712  to provide the user with information about what the module does.
8713  The 
8714 \begin_inset Flex Code
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718 Requires
8719 \end_layout
8720
8721 \end_inset
8722
8723  line is used to identify other modules with which this one must be used;
8724  the 
8725 \begin_inset Flex Code
8726 status collapsed
8727
8728 \begin_layout Plain Layout
8729 Excludes
8730 \end_layout
8731
8732 \end_inset
8733
8734  line is used to identify modules with which this one may not be used.
8735  Both are optional, and, as shown, multiple modules should be separated
8736  with the pipe symbol: |.
8737  Note that the required modules are treated disjunctively: 
8738 \emph on
8739 at least one
8740 \emph default
8741  of the required modules must be used.
8742  Similarly, 
8743 \emph on
8744 no
8745 \emph default
8746  excluded module may be used.
8747  Note that modules are identified here by their filenames without the 
8748 \begin_inset Flex Code
8749 status collapsed
8750
8751 \begin_layout Plain Layout
8752 .module
8753 \end_layout
8754
8755 \end_inset
8756
8757  extension.
8758  So 
8759 \begin_inset Flex Code
8760 status collapsed
8761
8762 \begin_layout Plain Layout
8763 somemodule
8764 \end_layout
8765
8766 \end_inset
8767
8768  is really 
8769 \begin_inset Flex Code
8770 status collapsed
8771
8772 \begin_layout Plain Layout
8773 somemodule.module
8774 \end_layout
8775
8776 \end_inset
8777
8778 .
8779 \end_layout
8780
8781 \begin_layout Subsection
8782 The CiteEngine file declaration
8783 \end_layout
8784
8785 \begin_layout Standard
8786 A cite engine file must begin with a line like the following:
8787 \end_layout
8788
8789 \begin_layout LyX-Code
8790 #
8791 \backslash
8792 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8793 \end_layout
8794
8795 \begin_layout Standard
8796 The mandatory argument, in curly brackets, is the name of the cite style,
8797  as it should appear in 
8798 \begin_inset Flex Noun
8799 status collapsed
8800
8801 \begin_layout Plain Layout
8802 Document\SpecialChar menuseparator
8803 Settings\SpecialChar menuseparator
8804 Bibliography
8805 \end_layout
8806
8807 \end_inset
8808
8809 .
8810  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8811  packages
8812  on which the cite engine depends.
8813 \end_layout
8814
8815 \begin_layout Standard
8816 The cite engine declaration should then be followed by lines like the following:
8817 \begin_inset Foot
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 Preferably in English if the module should be published with \SpecialChar LyX
8822 .
8823  This description will appear in the list of messages to be translated and
8824  will be thus translated with the next interface update.
8825 \end_layout
8826
8827 \end_inset
8828
8829
8830 \end_layout
8831
8832 \begin_layout LyX-Code
8833 # DescriptionBegin
8834 \end_layout
8835
8836 \begin_layout LyX-Code
8837 #   Biblatex supports many author-year and numerical styles.
8838 \end_layout
8839
8840 \begin_layout LyX-Code
8841 #   It is mainly aimed at the Humanities.
8842  It is highly
8843 \end_layout
8844
8845 \begin_layout LyX-Code
8846 #   customizable, fully localized and provides many features
8847 \end_layout
8848
8849 \begin_layout LyX-Code
8850 #   that are not possible with BibTeX.
8851  The use of 'biber' as
8852 \end_layout
8853
8854 \begin_layout LyX-Code
8855 #   bibliography processor is advised.
8856 \end_layout
8857
8858 \begin_layout LyX-Code
8859 # DescriptionEnd
8860 \end_layout
8861
8862 \begin_layout Standard
8863 The description is used in 
8864 \begin_inset Flex Noun
8865 status collapsed
8866
8867 \begin_layout Plain Layout
8868 Document\SpecialChar menuseparator
8869 Settings\SpecialChar menuseparator
8870 Bibliography
8871 \end_layout
8872
8873 \end_inset
8874
8875  to provide the user with information about the cite engine.
8876 \end_layout
8877
8878 \begin_layout Subsection
8879 Format number
8880 \end_layout
8881
8882 \begin_layout Standard
8883 The first non-comment line of any layout file, included file, or module
8884  
8885 \emph on
8886 must
8887 \emph default
8888  contain the file format number:
8889 \end_layout
8890
8891 \begin_layout Description
8892 \begin_inset Flex Code
8893 status collapsed
8894
8895 \begin_layout Plain Layout
8896 Format
8897 \end_layout
8898
8899 \end_inset
8900
8901  [
8902 \begin_inset Flex Code
8903 status collapsed
8904
8905 \begin_layout Plain Layout
8906 int
8907 \end_layout
8908
8909 \end_inset
8910
8911 ] The format number of the layout file.
8912 \end_layout
8913
8914 \begin_layout Standard
8915 This tag was introduced with \SpecialChar LyX
8916
8917 \begin_inset space ~
8918 \end_inset
8919
8920 1.4.0.
8921  Layout files from older \SpecialChar LyX
8922  versions do not have an explicit file format and
8923  are considered to have 
8924 \begin_inset Flex Code
8925 status collapsed
8926
8927 \begin_layout Plain Layout
8928 Format
8929 \begin_inset space ~
8930 \end_inset
8931
8932 1
8933 \end_layout
8934
8935 \end_inset
8936
8937 .
8938  The format for the present version of \SpecialChar LyX
8939  is format 60.
8940  But each version of \SpecialChar LyX
8941  is capable of reading earlier versions' layout files,
8942  just as they are capable of reading files produced by earlier versions
8943  of \SpecialChar LyX
8944 .
8945  There is, however, no provision for converting to earlier formats.
8946 \end_layout
8947
8948 \begin_layout Subsection
8949 \begin_inset CommandInset label
8950 LatexCommand label
8951 name "subsec:General-text-class"
8952
8953 \end_inset
8954
8955 General text class parameters
8956 \end_layout
8957
8958 \begin_layout Standard
8959 These are general parameters that govern the behavior of an entire document
8960  class.
8961  (This does 
8962 \emph on
8963 not
8964 \emph default
8965  mean that they must appear in 
8966 \begin_inset Flex Code
8967 status collapsed
8968
8969 \begin_layout Plain Layout
8970 .layout
8971 \end_layout
8972
8973 \end_inset
8974
8975  files rather than in modules.
8976  A module can contain any layout tag.)
8977 \end_layout
8978
8979 \begin_layout Description
8980
8981 \change_inserted -712698321 1526899478
8982 \begin_inset Flex Code
8983 status collapsed
8984
8985 \begin_layout Plain Layout
8986
8987 \change_inserted -712698321 1526898610
8988 AddToCiteEngine <engine>
8989 \end_layout
8990
8991 \end_inset
8992
8993  Extends the possibilities for displaying citation references.
8994  See 
8995 \begin_inset CommandInset ref
8996 LatexCommand ref
8997 reference "subsec:Citation-engine-description"
8998 plural "false"
8999 caps "false"
9000 noprefix "false"
9001
9002 \end_inset
9003
9004  for details.
9005  Must end with 
9006 \begin_inset Flex Code
9007 status collapsed
9008
9009 \begin_layout Plain Layout
9010
9011 \change_inserted -712698321 1526898823
9012 End
9013 \change_unchanged
9014
9015 \end_layout
9016
9017 \end_inset
9018
9019 .
9020 \end_layout
9021
9022 \begin_layout Description
9023 \begin_inset Flex Code
9024 status collapsed
9025
9026 \begin_layout Plain Layout
9027 AddToHTMLPreamble
9028 \end_layout
9029
9030 \end_inset
9031
9032  Adds information that will be output in the 
9033 \begin_inset Flex Code
9034 status collapsed
9035
9036 \begin_layout Plain Layout
9037 <head>
9038 \end_layout
9039
9040 \end_inset
9041
9042  block when the document is output to XHTML.
9043  Typically, this would be used to output CSS style information, but it can
9044  be used for anything that can appear in 
9045 \begin_inset Flex Code
9046 status collapsed
9047
9048 \begin_layout Plain Layout
9049 <head>
9050 \end_layout
9051
9052 \end_inset
9053
9054 .
9055  Must end with 
9056 \begin_inset Quotes eld
9057 \end_inset
9058
9059
9060 \begin_inset Flex Code
9061 status collapsed
9062
9063 \begin_layout Plain Layout
9064 EndPreamble
9065 \end_layout
9066
9067 \end_inset
9068
9069
9070 \begin_inset Quotes erd
9071 \end_inset
9072
9073 .
9074 \end_layout
9075
9076 \begin_layout Description
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 AddToPreamble
9082 \end_layout
9083
9084 \end_inset
9085
9086  Adds information to the document preamble.
9087  Must end with
9088 \begin_inset Newline newline
9089 \end_inset
9090
9091
9092 \begin_inset Quotes eld
9093 \end_inset
9094
9095
9096 \begin_inset Flex Code
9097 status collapsed
9098
9099 \begin_layout Plain Layout
9100 EndPreamble
9101 \end_layout
9102
9103 \end_inset
9104
9105
9106 \begin_inset Quotes erd
9107 \end_inset
9108
9109 .
9110 \end_layout
9111
9112 \begin_layout Description
9113 \begin_inset Flex Code
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 CiteEngine <engine>
9118 \end_layout
9119
9120 \end_inset
9121
9122  Defines the possibilities for displaying citation references.
9123  See 
9124 \begin_inset CommandInset ref
9125 LatexCommand ref
9126 reference "subsec:Citation-engine-description"
9127 plural "false"
9128 caps "false"
9129 noprefix "false"
9130
9131 \end_inset
9132
9133  for details.
9134  Must end with 
9135 \begin_inset Quotes eld
9136 \end_inset
9137
9138
9139 \begin_inset Flex Code
9140 status collapsed
9141
9142 \begin_layout Plain Layout
9143 End
9144 \end_layout
9145
9146 \end_inset
9147
9148
9149 \begin_inset Quotes erd
9150 \end_inset
9151
9152 .
9153  Primarily used in cite engine files (see 
9154 \begin_inset CommandInset ref
9155 LatexCommand ref
9156 reference "subsec:Cite-Engine-Files"
9157 plural "false"
9158 caps "false"
9159 noprefix "false"
9160
9161 \end_inset
9162
9163 ).
9164
9165 \change_inserted -712698321 1526898530
9166  Note that if you specify this in a layout file or module, any cite engine
9167  definition will be overridden.
9168  Also see 
9169 \begin_inset Flex Code
9170 status collapsed
9171
9172 \begin_layout Plain Layout
9173
9174 \change_inserted -712698321 1526898530
9175 AddToCiteEngine
9176 \change_unchanged
9177
9178 \end_layout
9179
9180 \end_inset
9181
9182 .
9183 \change_unchanged
9184
9185 \end_layout
9186
9187 \begin_layout Description
9188 \begin_inset Flex Code
9189 status collapsed
9190
9191 \begin_layout Plain Layout
9192 CiteFormat
9193 \end_layout
9194
9195 \end_inset
9196
9197  Defines formats for use in the display of bibliographic information.
9198  See 
9199 \begin_inset CommandInset ref
9200 LatexCommand ref
9201 reference "subsec:Citation-format-description"
9202
9203 \end_inset
9204
9205  for details.
9206  Must end with 
9207 \begin_inset Quotes eld
9208 \end_inset
9209
9210
9211 \begin_inset Flex Code
9212 status collapsed
9213
9214 \begin_layout Plain Layout
9215 End
9216 \end_layout
9217
9218 \end_inset
9219
9220
9221 \begin_inset Quotes erd
9222 \end_inset
9223
9224 .
9225  Primarily used in cite engine files (see 
9226 \begin_inset CommandInset ref
9227 LatexCommand ref
9228 reference "subsec:Cite-Engine-Files"
9229 plural "false"
9230 caps "false"
9231 noprefix "false"
9232
9233 \end_inset
9234
9235 ).
9236
9237 \change_inserted -712698321 1526898585
9238  A cite format defined in a layout or module will override the cite engine
9239  definition.
9240 \change_unchanged
9241
9242 \end_layout
9243
9244 \begin_layout Description
9245 \begin_inset Flex Code
9246 status collapsed
9247
9248 \begin_layout Plain Layout
9249 CiteFramework
9250 \end_layout
9251
9252 \end_inset
9253
9254  [
9255 \begin_inset Flex Code
9256 status collapsed
9257
9258 \begin_layout Plain Layout
9259
9260 \emph on
9261 bibtex
9262 \end_layout
9263
9264 \end_inset
9265
9266 ,
9267 \begin_inset Flex Code
9268 status collapsed
9269
9270 \begin_layout Plain Layout
9271 biblatex
9272 \end_layout
9273
9274 \end_inset
9275
9276 ] Determines whether 
9277 \family sans
9278 Biblatex
9279 \family default
9280  or Bib\SpecialChar TeX
9281  is used to generate a Bibliography.
9282  Primarily used in cite engine files (see 
9283 \begin_inset CommandInset ref
9284 LatexCommand ref
9285 reference "subsec:Cite-Engine-Files"
9286 plural "false"
9287 caps "false"
9288 noprefix "false"
9289
9290 \end_inset
9291
9292 ).
9293 \end_layout
9294
9295 \begin_layout Description
9296 \begin_inset Flex Code
9297 status collapsed
9298
9299 \begin_layout Plain Layout
9300 ClassOptions
9301 \end_layout
9302
9303 \end_inset
9304
9305  Describes various global options supported by the document class.
9306  See 
9307 \begin_inset CommandInset ref
9308 LatexCommand ref
9309 reference "subsec:ClassOptions"
9310
9311 \end_inset
9312
9313  for a description.
9314  Must end with 
9315 \begin_inset Quotes eld
9316 \end_inset
9317
9318
9319 \begin_inset Flex Code
9320 status collapsed
9321
9322 \begin_layout Plain Layout
9323 End
9324 \end_layout
9325
9326 \end_inset
9327
9328
9329 \begin_inset Quotes erd
9330 \end_inset
9331
9332 .
9333 \end_layout
9334
9335 \begin_layout Description
9336 \begin_inset Flex Code
9337 status collapsed
9338
9339 \begin_layout Plain Layout
9340 Columns
9341 \end_layout
9342
9343 \end_inset
9344
9345  [
9346 \begin_inset Flex Code
9347 status collapsed
9348
9349 \begin_layout Plain Layout
9350
9351 \emph on
9352 1
9353 \end_layout
9354
9355 \end_inset
9356
9357 ,
9358 \begin_inset space \thinspace{}
9359 \end_inset
9360
9361
9362 \begin_inset Flex Code
9363 status collapsed
9364
9365 \begin_layout Plain Layout
9366 2
9367 \end_layout
9368
9369 \end_inset
9370
9371 ] Whether the class should 
9372 \emph on
9373 default
9374 \emph default
9375  to having one or two columns.
9376  Can be changed in the 
9377 \begin_inset Flex Noun
9378 status collapsed
9379
9380 \begin_layout Plain Layout
9381 Document\SpecialChar menuseparator
9382 Settings
9383 \end_layout
9384
9385 \end_inset
9386
9387  dialog.
9388 \end_layout
9389
9390 \begin_layout Description
9391 \begin_inset Flex Code
9392 status collapsed
9393
9394 \begin_layout Plain Layout
9395 Counter
9396 \end_layout
9397
9398 \end_inset
9399
9400  [
9401 \begin_inset Flex Code
9402 status collapsed
9403
9404 \begin_layout Plain Layout
9405 string
9406 \end_layout
9407
9408 \end_inset
9409
9410 ] This sequence defines the properties for a counter.
9411  If the counter does not yet exist, it is created; if it does exist, it
9412  is modified.
9413  Must end with 
9414 \begin_inset Quotes eld
9415 \end_inset
9416
9417
9418 \begin_inset Flex Code
9419 status collapsed
9420
9421 \begin_layout Plain Layout
9422 End
9423 \end_layout
9424
9425 \end_inset
9426
9427
9428 \begin_inset Quotes erd
9429 \end_inset
9430
9431 .
9432 \begin_inset Newline newline
9433 \end_inset
9434
9435 See 
9436 \begin_inset CommandInset ref
9437 LatexCommand ref
9438 reference "subsec:Counters"
9439
9440 \end_inset
9441
9442  for details on counters.
9443 \end_layout
9444
9445 \begin_layout Description
9446 \begin_inset Flex Code
9447 status collapsed
9448
9449 \begin_layout Plain Layout
9450 DefaultFont
9451 \end_layout
9452
9453 \end_inset
9454
9455  Sets the default font used to display the document.
9456  See 
9457 \begin_inset CommandInset ref
9458 LatexCommand ref
9459 reference "subsec:Font-description"
9460
9461 \end_inset
9462
9463  for how to declare fonts.
9464  Must end with 
9465 \begin_inset Quotes eld
9466 \end_inset
9467
9468
9469 \begin_inset Flex Code
9470 status collapsed
9471
9472 \begin_layout Plain Layout
9473 EndFont
9474 \end_layout
9475
9476 \end_inset
9477
9478
9479 \begin_inset Quotes erd
9480 \end_inset
9481
9482 .
9483 \end_layout
9484
9485 \begin_layout Description
9486 \begin_inset Flex Code
9487 status collapsed
9488
9489 \begin_layout Plain Layout
9490 DefaultModule
9491 \end_layout
9492
9493 \end_inset
9494
9495  [
9496 \begin_inset Flex Code
9497 status collapsed
9498
9499 \begin_layout Plain Layout
9500 <module>
9501 \end_layout
9502
9503 \end_inset
9504
9505 ] Specifies a module to be included by default with this document class.
9506  The module is specified as filename without the 
9507 \begin_inset Flex Code
9508 status collapsed
9509
9510 \begin_layout Plain Layout
9511 .module
9512 \end_layout
9513
9514 \end_inset
9515
9516  extension.
9517  The user can still remove the module, but it will be active at the outset.
9518  (This applies only when new files are created, or when this class is chosen
9519  for an existing document.)
9520 \end_layout
9521
9522 \begin_layout Description
9523 \begin_inset Flex Code
9524 status collapsed
9525
9526 \begin_layout Plain Layout
9527 DefaultStyle
9528 \end_layout
9529
9530 \end_inset
9531
9532  [
9533 \begin_inset Flex Code
9534 status collapsed
9535
9536 \begin_layout Plain Layout
9537 <style>
9538 \end_layout
9539
9540 \end_inset
9541
9542 ] This is the style that will be assigned to new paragraphs, usually 
9543 \begin_inset Flex Noun
9544 status collapsed
9545
9546 \begin_layout Plain Layout
9547 Standard
9548 \end_layout
9549
9550 \end_inset
9551
9552 .
9553  This will default to the first defined style if not given, but you are
9554  encouraged to use this directive.
9555 \end_layout
9556
9557 \begin_layout Description
9558 \begin_inset Flex Code
9559 status collapsed
9560
9561 \begin_layout Plain Layout
9562 ExcludesModule
9563 \end_layout
9564
9565 \end_inset
9566
9567  [
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 <module>
9573 \end_layout
9574
9575 \end_inset
9576
9577 ] This tag indicates that the module (which is specified by filename without
9578  the 
9579 \begin_inset Flex Code
9580 status collapsed
9581
9582 \begin_layout Plain Layout
9583 .module
9584 \end_layout
9585
9586 \end_inset
9587
9588  extension) cannot be used with this document class.
9589  This might be used in a journal-specific layout file to prevent, say, the
9590  use of the 
9591 \begin_inset Flex Code
9592 status collapsed
9593
9594 \begin_layout Plain Layout
9595 theorems-sec
9596 \end_layout
9597
9598 \end_inset
9599
9600  module that numbers theorems by section.
9601  This tag may 
9602 \emph on
9603 not
9604 \emph default
9605  be used in a module.
9606  Modules have their own way of excluding other modules (see 
9607 \begin_inset CommandInset ref
9608 LatexCommand ref
9609 reference "subsec:Layout-modules"
9610
9611 \end_inset
9612
9613 ).
9614 \end_layout
9615
9616 \begin_layout Description
9617 \begin_inset Flex Code
9618 status collapsed
9619
9620 \begin_layout Plain Layout
9621 Float
9622 \end_layout
9623
9624 \end_inset
9625
9626  Defines a new float.
9627  See 
9628 \begin_inset CommandInset ref
9629 LatexCommand ref
9630 reference "subsec:Floats"
9631
9632 \end_inset
9633
9634  for details.
9635  Must end with 
9636 \begin_inset Quotes eld
9637 \end_inset
9638
9639
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644 End
9645 \end_layout
9646
9647 \end_inset
9648
9649
9650 \begin_inset Quotes erd
9651 \end_inset
9652
9653 .
9654 \end_layout
9655
9656 \begin_layout Description
9657 \begin_inset Flex Code
9658 status collapsed
9659
9660 \begin_layout Plain Layout
9661 HTMLPreamble
9662 \end_layout
9663
9664 \end_inset
9665
9666  Sets the information that will be output in the 
9667 \begin_inset Flex Code
9668 status collapsed
9669
9670 \begin_layout Plain Layout
9671 <head>
9672 \end_layout
9673
9674 \end_inset
9675
9676  block when this document class is output to XHTML.
9677  Note that this will completely override any prior 
9678 \begin_inset Flex Code
9679 status collapsed
9680
9681 \begin_layout Plain Layout
9682 HTMLPreamble
9683 \end_layout
9684
9685 \end_inset
9686
9687  or 
9688 \begin_inset Flex Code
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 AddToHTMLPreamble
9693 \end_layout
9694
9695 \end_inset
9696
9697  declarations.
9698  (Use
9699 \begin_inset Newline newline
9700 \end_inset
9701
9702
9703 \begin_inset Flex Code
9704 status collapsed
9705
9706 \begin_layout Plain Layout
9707 AddToHTMLPreamble
9708 \end_layout
9709
9710 \end_inset
9711
9712  if you just want to add material to the preamble.) Must end with 
9713 \begin_inset Quotes eld
9714 \end_inset
9715
9716
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 EndPreamble
9722 \end_layout
9723
9724 \end_inset
9725
9726
9727 \begin_inset Quotes erd
9728 \end_inset
9729
9730 .
9731 \end_layout
9732
9733 \begin_layout Description
9734 \begin_inset Flex Code
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 HTMLTOCSection
9739 \end_layout
9740
9741 \end_inset
9742
9743  [
9744 \begin_inset Flex Code
9745 status collapsed
9746
9747 \begin_layout Plain Layout
9748 <style>
9749 \end_layout
9750
9751 \end_inset
9752
9753 ] The style to use for the table of contents, bibliography, and so forth,
9754  when the document is output to HTML.
9755  For articles, this should normally be 
9756 \begin_inset Flex Code
9757 status collapsed
9758
9759 \begin_layout Plain Layout
9760 Section
9761 \end_layout
9762
9763 \end_inset
9764
9765 ; for books 
9766 \begin_inset Flex Code
9767 status collapsed
9768
9769 \begin_layout Plain Layout
9770 Chapter
9771 \end_layout
9772
9773 \end_inset
9774
9775 .
9776  If it is not given, then \SpecialChar LyX
9777  will attempt to figure out which layout to use.
9778 \end_layout
9779
9780 \begin_layout Description
9781 \begin_inset Flex Code
9782 status collapsed
9783
9784 \begin_layout Plain Layout
9785 IfCounter
9786 \end_layout
9787
9788 \end_inset
9789
9790  [
9791 \begin_inset Flex Code
9792 status collapsed
9793
9794 \begin_layout Plain Layout
9795 <counter>
9796 \end_layout
9797
9798 \end_inset
9799
9800 ] Modifies the properties of the given counter.
9801  If the counter does not exist, the statement is ignored.
9802  Must end with 
9803 \begin_inset Quotes eld
9804 \end_inset
9805
9806
9807 \begin_inset Flex Code
9808 status collapsed
9809
9810 \begin_layout Plain Layout
9811 End
9812 \end_layout
9813
9814 \end_inset
9815
9816
9817 \begin_inset Quotes erd
9818 \end_inset
9819
9820 .
9821 \begin_inset Newline newline
9822 \end_inset
9823
9824 See 
9825 \begin_inset CommandInset ref
9826 LatexCommand ref
9827 reference "subsec:Counters"
9828
9829 \end_inset
9830
9831  for details on counters.
9832 \end_layout
9833
9834 \begin_layout Description
9835 \begin_inset Flex Code
9836 status collapsed
9837
9838 \begin_layout Plain Layout
9839 Input
9840 \end_layout
9841
9842 \end_inset
9843
9844  [
9845 \begin_inset Flex Code
9846 status collapsed
9847
9848 \begin_layout Plain Layout
9849 <filename>
9850 \end_layout
9851
9852 \end_inset
9853
9854 ] This allows you to include another layout definition file within yours
9855  to avoid duplicating commands.
9856  Common examples are the standard layout files, for example, 
9857 \begin_inset Flex Code
9858 status collapsed
9859
9860 \begin_layout Plain Layout
9861 stdclass.inc
9862 \end_layout
9863
9864 \end_inset
9865
9866 , which contains most of the basic layouts.
9867 \end_layout
9868
9869 \begin_layout Description
9870 \begin_inset Flex Code
9871 status collapsed
9872
9873 \begin_layout Plain Layout
9874 InsetLayout
9875 \end_layout
9876
9877 \end_inset
9878
9879  [
9880 \begin_inset Flex Code
9881 status collapsed
9882
9883 \begin_layout Plain Layout
9884 <type>
9885 \end_layout
9886
9887 \end_inset
9888
9889 ] This section (re-)defines the layout of an inset.
9890  It can be applied to an existing inset or to a new, user-defined inset,
9891  e.g., a new character style.
9892  Must end with 
9893 \begin_inset Quotes eld
9894 \end_inset
9895
9896
9897 \begin_inset Flex Code
9898 status collapsed
9899
9900 \begin_layout Plain Layout
9901 End
9902 \end_layout
9903
9904 \end_inset
9905
9906
9907 \begin_inset Quotes erd
9908 \end_inset
9909
9910 .
9911 \begin_inset Newline newline
9912 \end_inset
9913
9914 See 
9915 \begin_inset CommandInset ref
9916 LatexCommand ref
9917 reference "subsec:Flex-insets-and"
9918
9919 \end_inset
9920
9921  for more information.
9922  
9923 \end_layout
9924
9925 \begin_layout Description
9926 \begin_inset Flex Code
9927 status collapsed
9928
9929 \begin_layout Plain Layout
9930 LeftMargin
9931 \end_layout
9932
9933 \end_inset
9934
9935  [
9936 \begin_inset Flex Code
9937 status collapsed
9938
9939 \begin_layout Plain Layout
9940 string
9941 \end_layout
9942
9943 \end_inset
9944
9945 ] A string that indicates the width of the left margin on the screen, for
9946  example, 
9947 \begin_inset Quotes eld
9948 \end_inset
9949
9950
9951 \begin_inset Flex Code
9952 status collapsed
9953
9954 \begin_layout Plain Layout
9955 MMMMM
9956 \end_layout
9957
9958 \end_inset
9959
9960
9961 \begin_inset Quotes erd
9962 \end_inset
9963
9964 .
9965  (Note that this is not a `length', like 
9966 \begin_inset Quotes eld
9967 \end_inset
9968
9969 2ex
9970 \begin_inset Quotes erd
9971 \end_inset
9972
9973 .)
9974 \end_layout
9975
9976 \begin_layout Description
9977 \begin_inset Flex Code
9978 status collapsed
9979
9980 \begin_layout Plain Layout
9981 MaxCiteNames
9982 \end_layout
9983
9984 \end_inset
9985
9986  [
9987 \begin_inset Flex Code
9988 status collapsed
9989
9990 \begin_layout Plain Layout
9991 integer
9992 \end_layout
9993
9994 \end_inset
9995
9996 ] An integer that determines the maximal number of names displayed in an
9997  author-year citation before the citation switches to 
9998 \begin_inset Quotes eld
9999 \end_inset
10000
10001 FirstAuthor et al.
10002 \begin_inset Quotes erd
10003 \end_inset
10004
10005 .
10006  Primarily used in cite engine files (see 
10007 \begin_inset CommandInset ref
10008 LatexCommand ref
10009 reference "subsec:Cite-Engine-Files"
10010 plural "false"
10011 caps "false"
10012 noprefix "false"
10013
10014 \end_inset
10015
10016 ).
10017 \end_layout
10018
10019 \begin_layout Description
10020 \begin_inset Flex Code
10021 status collapsed
10022
10023 \begin_layout Plain Layout
10024 ModifyStyle
10025 \end_layout
10026
10027 \end_inset
10028
10029  [
10030 \begin_inset Flex Code
10031 status collapsed
10032
10033 \begin_layout Plain Layout
10034 <style>
10035 \end_layout
10036
10037 \end_inset
10038
10039 ] Modifies the properties of the given paragraph style.
10040  If the style does not exist, this section is ignored.
10041  Must end with 
10042 \begin_inset Quotes eld
10043 \end_inset
10044
10045
10046 \begin_inset Flex Code
10047 status collapsed
10048
10049 \begin_layout Plain Layout
10050 End
10051 \end_layout
10052
10053 \end_inset
10054
10055
10056 \begin_inset Quotes erd
10057 \end_inset
10058
10059 .
10060 \end_layout
10061
10062 \begin_layout Description
10063 \begin_inset Flex Code
10064 status collapsed
10065
10066 \begin_layout Plain Layout
10067 NoCounter
10068 \end_layout
10069
10070 \end_inset
10071
10072  [
10073 \begin_inset Flex Code
10074 status collapsed
10075
10076 \begin_layout Plain Layout
10077 <counter>
10078 \end_layout
10079
10080 \end_inset
10081
10082 ] Deletes an existing counter, usually one defined in an included file.
10083 \end_layout
10084
10085 \begin_layout Description
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 NoFloat
10091 \end_layout
10092
10093 \end_inset
10094
10095  [
10096 \begin_inset Flex Code
10097 status collapsed
10098
10099 \begin_layout Plain Layout
10100 <float>
10101 \end_layout
10102
10103 \end_inset
10104
10105 ] Deletes an existing float.
10106  This is particularly useful when you want to suppress a float that has
10107  been defined in an input file.
10108 \end_layout
10109
10110 \begin_layout Description
10111 \begin_inset Flex Code
10112 status collapsed
10113
10114 \begin_layout Plain Layout
10115 NoStyle
10116 \end_layout
10117
10118 \end_inset
10119
10120  [
10121 \begin_inset Flex Code
10122 status collapsed
10123
10124 \begin_layout Plain Layout
10125 <style>
10126 \end_layout
10127
10128 \end_inset
10129
10130 ] Deletes an existing style.
10131 \end_layout
10132
10133 \begin_layout Description
10134 \begin_inset Flex Code
10135 status collapsed
10136
10137 \begin_layout Plain Layout
10138 OutlinerName
10139 \end_layout
10140
10141 \end_inset
10142
10143  [
10144 \begin_inset Flex Code
10145 status collapsed
10146
10147 \begin_layout Plain Layout
10148 <type>
10149 \end_layout
10150
10151 \end_inset
10152
10153 ] [
10154 \begin_inset Flex Code
10155 status collapsed
10156
10157 \begin_layout Plain Layout
10158 <string>
10159 \end_layout
10160
10161 \end_inset
10162
10163 ] Define a new table of contents with type 
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 <type>
10169 \end_layout
10170
10171 \end_inset
10172
10173  and name 
10174 \begin_inset Flex Code
10175 status collapsed
10176
10177 \begin_layout Plain Layout
10178 <string>
10179 \end_layout
10180
10181 \end_inset
10182
10183 .
10184  See also the AddToToc commands.
10185 \end_layout
10186
10187 \begin_layout Description
10188 \begin_inset Flex Code
10189 status collapsed
10190
10191 \begin_layout Plain Layout
10192 OutputFormat
10193 \end_layout
10194
10195 \end_inset
10196
10197  [
10198 \begin_inset Flex Code
10199 status collapsed
10200
10201 \begin_layout Plain Layout
10202 <format>
10203 \end_layout
10204
10205 \end_inset
10206
10207 ] The file format (as defined in the \SpecialChar LyX
10208  preferences) produced by this document
10209  class.
10210  It is mainly useful when 
10211 \begin_inset Flex Code
10212 status collapsed
10213
10214 \begin_layout Plain Layout
10215 OutputType
10216 \end_layout
10217
10218 \end_inset
10219
10220  is 
10221 \begin_inset Flex Code
10222 status collapsed
10223
10224 \begin_layout Plain Layout
10225 literate
10226 \end_layout
10227
10228 \end_inset
10229
10230  and one wants to define a new type of literate document.
10231  The format is reset to 
10232 \begin_inset Quotes eld
10233 \end_inset
10234
10235
10236 \begin_inset Flex Code
10237 status collapsed
10238
10239 \begin_layout Plain Layout
10240 docbook
10241 \end_layout
10242
10243 \end_inset
10244
10245
10246 \begin_inset Quotes erd
10247 \end_inset
10248
10249  or 
10250 \begin_inset Quotes eld
10251 \end_inset
10252
10253
10254 \begin_inset Flex Code
10255 status collapsed
10256
10257 \begin_layout Plain Layout
10258 latex
10259 \end_layout
10260
10261 \end_inset
10262
10263
10264 \begin_inset Quotes erd
10265 \end_inset
10266
10267  when the corresponding 
10268 \begin_inset Flex Code
10269 status collapsed
10270
10271 \begin_layout Plain Layout
10272 OutputType
10273 \end_layout
10274
10275 \end_inset
10276
10277  parameter is encountered.
10278 \end_layout
10279
10280 \begin_layout Description
10281 \begin_inset Flex Code
10282 status collapsed
10283
10284 \begin_layout Plain Layout
10285 OutputType
10286 \end_layout
10287
10288 \end_inset
10289
10290  [
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295
10296 \emph on
10297 lat
10298 \emph default
10299 ex
10300 \end_layout
10301
10302 \end_inset
10303
10304
10305 \begin_inset Flex Code
10306 status collapsed
10307
10308 \begin_layout Plain Layout
10309 docbook
10310 \end_layout
10311
10312 \end_inset
10313
10314
10315 \begin_inset Flex Code
10316 status collapsed
10317
10318 \begin_layout Plain Layout
10319 literate
10320 \end_layout
10321
10322 \end_inset
10323
10324 ] Specifies what sort of output documents using this class will produce.
10325 \end_layout
10326
10327 \begin_layout Description
10328 \begin_inset Flex Code
10329 status collapsed
10330
10331 \begin_layout Plain Layout
10332 PackageOptions
10333 \end_layout
10334
10335 \end_inset
10336
10337  [
10338 \begin_inset Flex Code
10339 status collapsed
10340
10341 \begin_layout Plain Layout
10342 string
10343 \end_layout
10344
10345 \end_inset
10346
10347  
10348 \begin_inset Flex Code
10349 status collapsed
10350
10351 \begin_layout Plain Layout
10352 string
10353 \end_layout
10354
10355 \end_inset
10356
10357 ] Specifies options, given in the second string, for the package named by
10358  the first string.
10359  For example, 
10360 \begin_inset Quotes eld
10361 \end_inset
10362
10363
10364 \begin_inset Flex Code
10365 status collapsed
10366
10367 \begin_layout Plain Layout
10368 PackageOptions natbib square
10369 \end_layout
10370
10371 \end_inset
10372
10373
10374 \begin_inset Quotes erd
10375 \end_inset
10376
10377  will cause 
10378 \begin_inset Flex Code
10379 status collapsed
10380
10381 \begin_layout Plain Layout
10382 natbib
10383 \end_layout
10384
10385 \end_inset
10386
10387  to be loaded with the 
10388 \begin_inset Flex Code
10389 status collapsed
10390
10391 \begin_layout Plain Layout
10392 square
10393 \end_layout
10394
10395 \end_inset
10396
10397  option.
10398  (For \SpecialChar TeX
10399 perts, this causes \SpecialChar LyX
10400  to output: 
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405
10406 \backslash
10407 PassOptionsToPackage{natbib}{square}
10408 \end_layout
10409
10410 \end_inset
10411
10412  prior to loading 
10413 \begin_inset Flex Code
10414 status collapsed
10415
10416 \begin_layout Plain Layout
10417 natbib
10418 \end_layout
10419
10420 \end_inset
10421
10422 .)
10423 \end_layout
10424
10425 \begin_layout Description
10426 \begin_inset Flex Code
10427 status collapsed
10428
10429 \begin_layout Plain Layout
10430 PageStyle
10431 \end_layout
10432
10433 \end_inset
10434
10435  [
10436 \begin_inset Flex Code
10437 status collapsed
10438
10439 \begin_layout Plain Layout
10440
10441 \emph on
10442 plain
10443 \end_layout
10444
10445 \end_inset
10446
10447
10448 \begin_inset Flex Code
10449 status collapsed
10450
10451 \begin_layout Plain Layout
10452 empty
10453 \end_layout
10454
10455 \end_inset
10456
10457
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 headings
10463 \end_layout
10464
10465 \end_inset
10466
10467 ] The default pagestyle.
10468  Can be changed in the 
10469 \begin_inset Flex Noun
10470 status collapsed
10471
10472 \begin_layout Plain Layout
10473 Document\SpecialChar menuseparator
10474 Settings
10475 \end_layout
10476
10477 \end_inset
10478
10479  dialog.
10480 \end_layout
10481
10482 \begin_layout Description
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 Preamble
10488 \end_layout
10489
10490 \end_inset
10491
10492  Sets the preamble for the \SpecialChar LaTeX
10493  document.
10494  Note that this will completely override any prior 
10495 \begin_inset Flex Code
10496 status collapsed
10497
10498 \begin_layout Plain Layout
10499 Preamble
10500 \end_layout
10501
10502 \end_inset
10503
10504  or 
10505 \begin_inset Flex Code
10506 status collapsed
10507
10508 \begin_layout Plain Layout
10509 AddToPreamble
10510 \end_layout
10511
10512 \end_inset
10513
10514  declarations.
10515  (Use 
10516 \begin_inset Flex Code
10517 status collapsed
10518
10519 \begin_layout Plain Layout
10520 AddToPreamble
10521 \end_layout
10522
10523 \end_inset
10524
10525  if you just want to add material to the preamble.) Must end with 
10526 \begin_inset Quotes eld
10527 \end_inset
10528
10529
10530 \begin_inset Flex Code
10531 status collapsed
10532
10533 \begin_layout Plain Layout
10534 EndPreamble
10535 \end_layout
10536
10537 \end_inset
10538
10539
10540 \begin_inset Quotes erd
10541 \end_inset
10542
10543 .
10544 \end_layout
10545
10546 \begin_layout Description
10547 \begin_inset Flex Code
10548 status collapsed
10549
10550 \begin_layout Plain Layout
10551 Provides
10552 \end_layout
10553
10554 \end_inset
10555
10556  [
10557 \begin_inset Flex Code
10558 status collapsed
10559
10560 \begin_layout Plain Layout
10561 string
10562 \end_layout
10563
10564 \end_inset
10565
10566 ] [
10567 \begin_inset Flex Code
10568 status collapsed
10569
10570 \begin_layout Plain Layout
10571
10572 \emph on
10573 0
10574 \end_layout
10575
10576 \end_inset
10577
10578 ,
10579 \begin_inset space \thinspace{}
10580 \end_inset
10581
10582
10583 \begin_inset Flex Code
10584 status collapsed
10585
10586 \begin_layout Plain Layout
10587 1
10588 \end_layout
10589
10590 \end_inset
10591
10592 ] Whether the class already provides the feature 
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 string
10598 \end_layout
10599
10600 \end_inset
10601
10602 .
10603  A feature is in general the name of a package (e.
10604 \begin_inset space \thinspace{}
10605 \end_inset
10606
10607 g.
10608 \begin_inset space \space{}
10609 \end_inset
10610
10611
10612 \begin_inset Flex Code
10613 status collapsed
10614
10615 \begin_layout Plain Layout
10616 amsmath
10617 \end_layout
10618
10619 \end_inset
10620
10621  or 
10622 \begin_inset Flex Code
10623 status collapsed
10624
10625 \begin_layout Plain Layout
10626 makeidx
10627 \end_layout
10628
10629 \end_inset
10630
10631 ) or a macro (e.
10632 \begin_inset space \thinspace{}
10633 \end_inset
10634
10635 g.
10636 \begin_inset space \space{}
10637 \end_inset
10638
10639
10640 \begin_inset Flex Code
10641 status collapsed
10642
10643 \begin_layout Plain Layout
10644 url
10645 \end_layout
10646
10647 \end_inset
10648
10649  or 
10650 \begin_inset Flex Code
10651 status collapsed
10652
10653 \begin_layout Plain Layout
10654 boldsymbol
10655 \end_layout
10656
10657 \end_inset
10658
10659 ).
10660  See 
10661 \begin_inset CommandInset ref
10662 LatexCommand ref
10663 reference "chap:List-of-functions"
10664
10665 \end_inset
10666
10667  for the list of features.
10668 \end_layout
10669
10670 \begin_layout Description
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 ProvidesModule
10676 \end_layout
10677
10678 \end_inset
10679
10680  [
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 string
10686 \end_layout
10687
10688 \end_inset
10689
10690 ] Indicates that this layout provides the functionality of the module mentioned,
10691  which should be specified by the filename without the 
10692 \begin_inset Flex Code
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 .module
10697 \end_layout
10698
10699 \end_inset
10700
10701  extension.
10702  This will typically be used if the layout includes the module directly,
10703  rather than using the 
10704 \begin_inset Flex Code
10705 status collapsed
10706
10707 \begin_layout Plain Layout
10708 DefaultModule
10709 \end_layout
10710
10711 \end_inset
10712
10713  tag to indicate that it ought to be used.
10714  It could also be used in a module that provided an alternate implementation
10715  of the same functionality.
10716 \end_layout
10717
10718 \begin_layout Description
10719 \begin_inset Flex Code
10720 status collapsed
10721
10722 \begin_layout Plain Layout
10723 ProvideStyle
10724 \end_layout
10725
10726 \end_inset
10727
10728  [
10729 \begin_inset Flex Code
10730 status collapsed
10731
10732 \begin_layout Plain Layout
10733 <style>
10734 \end_layout
10735
10736 \end_inset
10737
10738 ] Creates a new paragraph style if it does not already exist.
10739  If the style does exist, this section is ignored.
10740  Must end with 
10741 \begin_inset Quotes eld
10742 \end_inset
10743
10744
10745 \begin_inset Flex Code
10746 status collapsed
10747
10748 \begin_layout Plain Layout
10749 End
10750 \end_layout
10751
10752 \end_inset
10753
10754
10755 \begin_inset Quotes erd
10756 \end_inset
10757
10758 .
10759 \end_layout
10760
10761 \begin_layout Description
10762 \begin_inset Flex Code
10763 status collapsed
10764
10765 \begin_layout Plain Layout
10766 Requires
10767 \end_layout
10768
10769 \end_inset
10770
10771  [
10772 \begin_inset Flex Code
10773 status collapsed
10774
10775 \begin_layout Plain Layout
10776 string
10777 \end_layout
10778
10779 \end_inset
10780
10781 ] Whether the class requires the feature 
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786 string
10787 \end_layout
10788
10789 \end_inset
10790
10791 .
10792  Multiple features must be separated by commas.
10793  Note that you can only request supported features.
10794  (See 
10795 \begin_inset CommandInset ref
10796 LatexCommand ref
10797 reference "chap:List-of-functions"
10798
10799 \end_inset
10800
10801  for the list of features.).
10802  If you require a package with specific options, you can additionally use
10803  
10804 \begin_inset Flex Code
10805 status collapsed
10806
10807 \begin_layout Plain Layout
10808 PackageOptions
10809 \end_layout
10810
10811 \end_inset
10812
10813 .
10814 \end_layout
10815
10816 \begin_layout Description
10817 \begin_inset Flex Code
10818 status collapsed
10819
10820 \begin_layout Plain Layout
10821 RightMargin
10822 \end_layout
10823
10824 \end_inset
10825
10826  [
10827 \begin_inset Flex Code
10828 status collapsed
10829
10830 \begin_layout Plain Layout
10831 string
10832 \end_layout
10833
10834 \end_inset
10835
10836 ] A string that indicates the width of the right margin on the screen, for
10837  example, 
10838 \begin_inset Quotes eld
10839 \end_inset
10840
10841
10842 \begin_inset Flex Code
10843 status collapsed
10844
10845 \begin_layout Plain Layout
10846 MMMMM
10847 \end_layout
10848
10849 \end_inset
10850
10851
10852 \begin_inset Quotes erd
10853 \end_inset
10854
10855 .
10856 \end_layout
10857
10858 \begin_layout Description
10859 \begin_inset Flex Code
10860 status collapsed
10861
10862 \begin_layout Plain Layout
10863 SecNumDepth
10864 \end_layout
10865
10866 \end_inset
10867
10868  [
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873 int=3
10874 \end_layout
10875
10876 \end_inset
10877
10878 ] Sets which divisions get numbered.
10879  Corresponds to the
10880 \begin_inset Newline newline
10881 \end_inset
10882
10883
10884 \begin_inset Flex Code
10885 status collapsed
10886
10887 \begin_layout Plain Layout
10888 secnumdepth
10889 \end_layout
10890
10891 \end_inset
10892
10893  counter in \SpecialChar LaTeX
10894 .
10895 \end_layout
10896
10897 \begin_layout Description
10898 \begin_inset Flex Code
10899 status collapsed
10900
10901 \begin_layout Plain Layout
10902 Sides
10903 \end_layout
10904
10905 \end_inset
10906
10907  [
10908 \begin_inset Flex Code
10909 status collapsed
10910
10911 \begin_layout Plain Layout
10912
10913 \emph on
10914 1
10915 \end_layout
10916
10917 \end_inset
10918
10919 ,
10920 \begin_inset space \thinspace{}
10921 \end_inset
10922
10923
10924 \begin_inset Flex Code
10925 status collapsed
10926
10927 \begin_layout Plain Layout
10928 2
10929 \end_layout
10930
10931 \end_inset
10932
10933 ] Whether the class-default should be printing on one or both sides of the
10934  paper.
10935  Can be changed in the 
10936 \begin_inset Flex Noun
10937 status collapsed
10938
10939 \begin_layout Plain Layout
10940 Document\SpecialChar menuseparator
10941 Settings
10942 \end_layout
10943
10944 \end_inset
10945
10946  dialog.
10947 \end_layout
10948
10949 \begin_layout Description
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 Style
10955 \end_layout
10956
10957 \end_inset
10958
10959  [
10960 \begin_inset Flex Code
10961 status collapsed
10962
10963 \begin_layout Plain Layout
10964 <name>
10965 \end_layout
10966
10967 \end_inset
10968
10969 ] This sequence defines a paragraph style.
10970  If the style does not yet exist, it is created; if it does exist, its parameter
10971 s are modified.
10972  Must end with 
10973 \begin_inset Quotes eld
10974 \end_inset
10975
10976
10977 \begin_inset Flex Code
10978 status collapsed
10979
10980 \begin_layout Plain Layout
10981 End
10982 \end_layout
10983
10984 \end_inset
10985
10986
10987 \begin_inset Quotes erd
10988 \end_inset
10989
10990 .
10991 \begin_inset Newline newline
10992 \end_inset
10993
10994 See 
10995 \begin_inset CommandInset ref
10996 LatexCommand ref
10997 reference "subsec:Paragraph-Styles"
10998
10999 \end_inset
11000
11001  for details on paragraph styles.
11002 \change_inserted -712698321 1553617804
11003
11004 \end_layout
11005
11006 \begin_layout Description
11007
11008 \change_inserted -712698321 1553617862
11009 \begin_inset Flex Code
11010 status collapsed
11011
11012 \begin_layout Plain Layout
11013
11014 \change_inserted -712698321 1553617809
11015 TableStyle
11016 \end_layout
11017
11018 \end_inset
11019
11020  [
11021 \begin_inset Flex Code
11022 status collapsed
11023
11024 \begin_layout Plain Layout
11025
11026 \change_inserted -712698321 1553617805
11027 <name>
11028 \end_layout
11029
11030 \end_inset
11031
11032 ] defines the default table style that is used when inserting a table.
11033  The following styles are available:
11034 \end_layout
11035
11036 \begin_deeper
11037 \begin_layout Itemize
11038
11039 \change_inserted -712698321 1554308039
11040 \begin_inset Flex Code
11041 status collapsed
11042
11043 \begin_layout Plain Layout
11044
11045 \change_inserted -712698321 1554307928
11046 Formal_with_Footline
11047 \change_unchanged
11048
11049 \end_layout
11050
11051 \end_inset
11052
11053 : formal (
11054 \begin_inset Quotes eld
11055 \end_inset
11056
11057 booktabs
11058 \begin_inset Quotes erd
11059 \end_inset
11060
11061 ) style with horizontal lines only, using a bold top and bottom line, the
11062  first and last row are additionally separated from the table body with
11063  a thin middle line.
11064 \end_layout
11065
11066 \begin_layout Itemize
11067
11068 \change_inserted -712698321 1554308087
11069 \begin_inset Flex Code
11070 status collapsed
11071
11072 \begin_layout Plain Layout
11073
11074 \change_inserted -712698321 1554308042
11075 Formal_without_Footline
11076 \end_layout
11077
11078 \end_inset
11079
11080 : same as the above, but the last row is not separated with a middle line
11081  from the body.
11082 \end_layout
11083
11084 \begin_layout Itemize
11085
11086 \change_inserted -712698321 1553618031
11087 \begin_inset Flex Code
11088 status collapsed
11089
11090 \begin_layout Plain Layout
11091
11092 \change_inserted -712698321 1553618006
11093 Simple_Grid
11094 \end_layout
11095
11096 \end_inset
11097
11098 : Simple table lines.
11099 \end_layout
11100
11101 \begin_layout Itemize
11102
11103 \change_inserted -712698321 1553618309
11104 \begin_inset Flex Code
11105 status collapsed
11106
11107 \begin_layout Plain Layout
11108
11109 \change_inserted -712698321 1553618031
11110 Grid_with_Head
11111 \end_layout
11112
11113 \end_inset
11114
11115 : Like 
11116 \begin_inset Flex Code
11117 status collapsed
11118
11119 \begin_layout Plain Layout
11120
11121 \change_inserted -712698321 1553618043
11122 Simple_Grid
11123 \end_layout
11124
11125 \end_inset
11126
11127 , but with the header column offset with a second horizontal line.
11128  This is also the default style of \SpecialChar LyX
11129 .
11130 \end_layout
11131
11132 \begin_layout Itemize
11133
11134 \change_inserted -712698321 1553618280
11135 \begin_inset Flex Code
11136 status collapsed
11137
11138 \begin_layout Plain Layout
11139
11140 \change_inserted -712698321 1553618261
11141 No_Borders
11142 \end_layout
11143
11144 \end_inset
11145
11146 : Table without lines.
11147 \change_unchanged
11148
11149 \end_layout
11150
11151 \end_deeper
11152 \begin_layout Description
11153 \begin_inset Flex Code
11154 status collapsed
11155
11156 \begin_layout Plain Layout
11157 TitleLatexName
11158 \end_layout
11159
11160 \end_inset
11161
11162  [
11163 \begin_inset Flex Code
11164 status collapsed
11165
11166 \begin_layout Plain Layout
11167 string="maketitle"
11168 \end_layout
11169
11170 \end_inset
11171
11172 ] The name of the command or environment to be used with 
11173 \begin_inset Flex Code
11174 status collapsed
11175
11176 \begin_layout Plain Layout
11177 TitleLatexType
11178 \end_layout
11179
11180 \end_inset
11181
11182 .
11183 \end_layout
11184
11185 \begin_layout Description
11186 \begin_inset Flex Code
11187 status collapsed
11188
11189 \begin_layout Plain Layout
11190 TitleLatexType
11191 \end_layout
11192
11193 \end_inset
11194
11195  [
11196 \begin_inset Flex Code
11197 status collapsed
11198
11199 \begin_layout Plain Layout
11200
11201 \emph on
11202 CommandAfter
11203 \end_layout
11204
11205 \end_inset
11206
11207
11208 \begin_inset Flex Code
11209 status collapsed
11210
11211 \begin_layout Plain Layout
11212 Environment
11213 \end_layout
11214
11215 \end_inset
11216
11217 ] Indicates what kind of markup is used to define the title of a document.
11218  
11219 \begin_inset Flex Code
11220 status collapsed
11221
11222 \begin_layout Plain Layout
11223 CommandAfter
11224 \end_layout
11225
11226 \end_inset
11227
11228  means that the macro with name 
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 TitleLatexName
11234 \end_layout
11235
11236 \end_inset
11237
11238  will be inserted after the last layout which has 
11239 \begin_inset Quotes eld
11240 \end_inset
11241
11242
11243 \begin_inset Flex Code
11244 status collapsed
11245
11246 \begin_layout Plain Layout
11247 InTitle
11248 \begin_inset space ~
11249 \end_inset
11250
11251 1
11252 \end_layout
11253
11254 \end_inset
11255
11256
11257 \begin_inset Quotes erd
11258 \end_inset
11259
11260 .
11261  
11262 \begin_inset Flex Code
11263 status collapsed
11264
11265 \begin_layout Plain Layout
11266 Environment
11267 \end_layout
11268
11269 \end_inset
11270
11271  corresponds to the case where all layouts which have 
11272 \begin_inset Quotes eld
11273 \end_inset
11274
11275
11276 \begin_inset Flex Code
11277 status collapsed
11278
11279 \begin_layout Plain Layout
11280 InTitle
11281 \begin_inset space ~
11282 \end_inset
11283
11284 1
11285 \end_layout
11286
11287 \end_inset
11288
11289
11290 \begin_inset Quotes erd
11291 \end_inset
11292
11293  should be enclosed into the 
11294 \begin_inset Flex Code
11295 status collapsed
11296
11297 \begin_layout Plain Layout
11298 TitleLatexName
11299 \end_layout
11300
11301 \end_inset
11302
11303  environment.
11304 \end_layout
11305
11306 \begin_layout Description
11307 \begin_inset Flex Code
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311 TocDepth
11312 \end_layout
11313
11314 \end_inset
11315
11316  [
11317 \begin_inset Flex Code
11318 status collapsed
11319
11320 \begin_layout Plain Layout
11321 int=3
11322 \end_layout
11323
11324 \end_inset
11325
11326 ] Sets which divisions are included in the table of contents.
11327  Corresponds to the 
11328 \begin_inset Flex Code
11329 status collapsed
11330
11331 \begin_layout Plain Layout
11332 tocdepth
11333 \end_layout
11334
11335 \end_inset
11336
11337  counter in \SpecialChar LaTeX
11338 .
11339 \end_layout
11340
11341 \begin_layout Subsection
11342 \begin_inset Flex Code
11343 status collapsed
11344
11345 \begin_layout Plain Layout
11346 ClassOptions
11347 \end_layout
11348
11349 \end_inset
11350
11351  section
11352 \begin_inset CommandInset label
11353 LatexCommand label
11354 name "subsec:ClassOptions"
11355
11356 \end_inset
11357
11358
11359 \end_layout
11360
11361 \begin_layout Standard
11362 The 
11363 \begin_inset Flex Code
11364 status collapsed
11365
11366 \begin_layout Plain Layout
11367 ClassOptions
11368 \end_layout
11369
11370 \end_inset
11371
11372  section can contain the following entries:
11373 \end_layout
11374
11375 \begin_layout Description
11376 \begin_inset Flex Code
11377 status collapsed
11378
11379 \begin_layout Plain Layout
11380 FontSize
11381 \end_layout
11382
11383 \end_inset
11384
11385  [
11386 \begin_inset Flex Code
11387 status collapsed
11388
11389 \begin_layout Plain Layout
11390 string="10|11|12"
11391 \end_layout
11392
11393 \end_inset
11394
11395 ] The list of available font sizes for the document's main font, separated
11396  by 
11397 \begin_inset Quotes eld
11398 \end_inset
11399
11400
11401 \begin_inset Flex Code
11402 status collapsed
11403
11404 \begin_layout Plain Layout
11405 |
11406 \end_layout
11407
11408 \end_inset
11409
11410
11411 \begin_inset Quotes erd
11412 \end_inset
11413
11414 .
11415 \end_layout
11416
11417 \begin_layout Description
11418 \begin_inset Flex Code
11419 status collapsed
11420
11421 \begin_layout Plain Layout
11422 Header
11423 \end_layout
11424
11425 \end_inset
11426
11427  Used to set the DTD line with XML-based output classes.
11428  E.
11429 \begin_inset space \thinspace{}
11430 \end_inset
11431
11432 g.: PUBLIC 
11433 \begin_inset Quotes eld
11434 \end_inset
11435
11436 -//OASIS//DTD DocBook V4.2//EN
11437 \begin_inset Quotes erd
11438 \end_inset
11439
11440 .
11441 \end_layout
11442
11443 \begin_layout Description
11444 \begin_inset Flex Code
11445 status collapsed
11446
11447 \begin_layout Plain Layout
11448 PageStyle
11449 \end_layout
11450
11451 \end_inset
11452
11453  [
11454 \begin_inset Flex Code
11455 status collapsed
11456
11457 \begin_layout Plain Layout
11458 string="empty|plain|headings|fancy"
11459 \end_layout
11460
11461 \end_inset
11462
11463 ] The list of available page sty\SpecialChar softhyphen
11464 les, separated by 
11465 \begin_inset Quotes eld
11466 \end_inset
11467
11468
11469 \begin_inset Flex Code
11470 status collapsed
11471
11472 \begin_layout Plain Layout
11473 |
11474 \end_layout
11475
11476 \end_inset
11477
11478
11479 \begin_inset Quotes erd
11480 \end_inset
11481
11482 .
11483 \end_layout
11484
11485 \begin_layout Description
11486 \begin_inset Flex Code
11487 status collapsed
11488
11489 \begin_layout Plain Layout
11490 Other
11491 \end_layout
11492
11493 \end_inset
11494
11495  [
11496 \begin_inset Flex Code
11497 status collapsed
11498
11499 \begin_layout Plain Layout
11500 string=""
11501 \end_layout
11502
11503 \end_inset
11504
11505 ] Some document class options, separated by a comma, that will be added
11506  to the optional part of the 
11507 \begin_inset Flex Code
11508 status collapsed
11509
11510 \begin_layout Plain Layout
11511
11512 \backslash
11513 documentclass
11514 \end_layout
11515
11516 \end_inset
11517
11518  command.
11519 \end_layout
11520
11521 \begin_layout Standard
11522 The 
11523 \begin_inset Flex Code
11524 status collapsed
11525
11526 \begin_layout Plain Layout
11527 ClassOptions
11528 \end_layout
11529
11530 \end_inset
11531
11532  section must end with 
11533 \begin_inset Quotes eld
11534 \end_inset
11535
11536
11537 \begin_inset Flex Code
11538 status collapsed
11539
11540 \begin_layout Plain Layout
11541 End
11542 \end_layout
11543
11544 \end_inset
11545
11546
11547 \begin_inset Quotes erd
11548 \end_inset
11549
11550 .
11551 \end_layout
11552
11553 \begin_layout Subsection
11554 Paragraph styles
11555 \begin_inset CommandInset label
11556 LatexCommand label
11557 name "subsec:Paragraph-Styles"
11558
11559 \end_inset
11560
11561
11562 \end_layout
11563
11564 \begin_layout Standard
11565 A paragraph style description looks like this:
11566 \begin_inset Foot
11567 status collapsed
11568
11569 \begin_layout Plain Layout
11570 Note that this will either define a new style or modify an existing one.
11571 \end_layout
11572
11573 \end_inset
11574
11575
11576 \end_layout
11577
11578 \begin_layout LyX-Code
11579 Style 
11580 \family roman
11581 \emph on
11582 name
11583 \end_layout
11584
11585 \begin_layout LyX-Code
11586  ...
11587 \end_layout
11588
11589 \begin_layout LyX-Code
11590 End
11591 \end_layout
11592
11593 \begin_layout Standard
11594 where the following commands are allowed:
11595 \end_layout
11596
11597 \begin_layout Description
11598 \begin_inset Flex Code
11599 status collapsed
11600
11601 \begin_layout Plain Layout
11602 AddToToc
11603 \end_layout
11604
11605 \end_inset
11606
11607  [
11608 \begin_inset Flex Code
11609 status collapsed
11610
11611 \begin_layout Plain Layout
11612 string
11613 \end_layout
11614
11615 \end_inset
11616
11617 =""] This paragraph will appear in the table of contents of the given type.
11618  An empty string disables.
11619  See also the OutlinerName and the IsTocCaption commands.
11620  Default: disabled.
11621 \end_layout
11622
11623 \begin_layout Description
11624 \begin_inset Flex Code
11625 status collapsed
11626
11627 \begin_layout Plain Layout
11628 Align
11629 \end_layout
11630
11631 \end_inset
11632
11633  [
11634 \begin_inset Flex Code
11635 status collapsed
11636
11637 \begin_layout Plain Layout
11638
11639 \emph on
11640 block
11641 \emph default
11642 , left, right, center
11643 \end_layout
11644
11645 \end_inset
11646
11647 ] Paragraph alignment.
11648 \end_layout
11649
11650 \begin_layout Description
11651 \begin_inset Flex Code
11652 status collapsed
11653
11654 \begin_layout Plain Layout
11655 AlignPossible
11656 \end_layout
11657
11658 \end_inset
11659
11660  [
11661 \begin_inset Flex Code
11662 status collapsed
11663
11664 \begin_layout Plain Layout
11665
11666 \emph on
11667 block
11668 \emph default
11669 , left, right, center
11670 \end_layout
11671
11672 \end_inset
11673
11674 ] A comma separated list of permitted alignments.
11675  (Some \SpecialChar LaTeX
11676  styles prohibit certain alignments, since those wouldn't make sense.
11677  For example a right-aligned or centered enumeration isn't possible.)
11678 \end_layout
11679
11680 \begin_layout Description
11681 \begin_inset Flex Code
11682 status collapsed
11683
11684 \begin_layout Plain Layout
11685 Argument
11686 \end_layout
11687
11688 \end_inset
11689
11690  [
11691 \begin_inset Flex Code
11692 status collapsed
11693
11694 \begin_layout Plain Layout
11695 int
11696 \end_layout
11697
11698 \end_inset
11699
11700 ] Defines argument number <int> of a command\SpecialChar breakableslash
11701 environment associated with
11702  the current style.
11703  This is useful for things like section headings, and only makes sense with
11704  \SpecialChar LaTeX
11705 .
11706  Every (optional or required) argument of a command or environment – except
11707  for the required argument that is associated with the content of the paragraph
11708  itself – has a separate definition, where the number specifies the order
11709  of the arguments.
11710  The definition must end with 
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715 EndArgument
11716 \end_layout
11717
11718 \end_inset
11719
11720 .
11721  So a command with two optional arguments has:
11722 \end_layout
11723
11724 \begin_deeper
11725 \begin_layout Quote
11726
11727 \family typewriter
11728 Argument 1
11729 \end_layout
11730
11731 \begin_layout Quote
11732
11733 \family typewriter
11734 ...
11735 \end_layout
11736
11737 \begin_layout Quote
11738
11739 \family typewriter
11740 EndArgument
11741 \end_layout
11742
11743 \begin_layout Quote
11744
11745 \family typewriter
11746 Argument 2
11747 \end_layout
11748
11749 \begin_layout Quote
11750
11751 \family typewriter
11752 ...
11753 \end_layout
11754
11755 \begin_layout Quote
11756
11757 \family typewriter
11758 EndArgument
11759 \end_layout
11760
11761 \begin_layout Standard
11762 Inside the 
11763 \begin_inset Flex Code
11764 status collapsed
11765
11766 \begin_layout Plain Layout
11767 Argument
11768 \end_layout
11769
11770 \end_inset
11771
11772  definition, the following specifications are possible:
11773 \end_layout
11774
11775 \begin_layout Itemize
11776 \begin_inset Flex Code
11777 status collapsed
11778
11779 \begin_layout Plain Layout
11780 LabelString
11781 \end_layout
11782
11783 \end_inset
11784
11785  
11786 \begin_inset Flex Code
11787 status collapsed
11788
11789 \begin_layout Plain Layout
11790 [string]
11791 \end_layout
11792
11793 \end_inset
11794
11795  The string that will appear both in the menu (to insert this argument)
11796  and on the argument inset button (unless you also specify a separate 
11797 \begin_inset Flex Code
11798 status collapsed
11799
11800 \begin_layout Plain Layout
11801 MenuString
11802 \end_layout
11803
11804 \end_inset
11805
11806 ).
11807  For the menu, you can define an accelerator by appending the respective
11808  character to the string, divided by 
11809 \begin_inset Quotes eld
11810 \end_inset
11811
11812 |
11813 \begin_inset Quotes erd
11814 \end_inset
11815
11816  (e.
11817 \begin_inset space \thinspace{}
11818 \end_inset
11819
11820 g.
11821 \begin_inset space \space{}
11822 \end_inset
11823
11824
11825 \begin_inset Quotes eld
11826 \end_inset
11827
11828
11829 \begin_inset Flex Code
11830 status collapsed
11831
11832 \begin_layout Plain Layout
11833 Short Title|S
11834 \end_layout
11835
11836 \end_inset
11837
11838
11839 \begin_inset Quotes erd
11840 \end_inset
11841
11842 ).
11843 \end_layout
11844
11845 \begin_layout Itemize
11846 \begin_inset Flex Code
11847 status collapsed
11848
11849 \begin_layout Plain Layout
11850 MenuString
11851 \end_layout
11852
11853 \end_inset
11854
11855  
11856 \begin_inset Flex Code
11857 status collapsed
11858
11859 \begin_layout Plain Layout
11860 [string]
11861 \end_layout
11862
11863 \end_inset
11864
11865  A separate string for the menu.
11866  You can define an accelerator by appending the respective character to
11867  the string, divided by 
11868 \begin_inset Quotes eld
11869 \end_inset
11870
11871 |
11872 \begin_inset Quotes erd
11873 \end_inset
11874
11875  (e.
11876 \begin_inset space \thinspace{}
11877 \end_inset
11878
11879 g.
11880 \begin_inset space \space{}
11881 \end_inset
11882
11883
11884 \begin_inset Quotes eld
11885 \end_inset
11886
11887
11888 \begin_inset Flex Code
11889 status collapsed
11890
11891 \begin_layout Plain Layout
11892 Short Title|S
11893 \end_layout
11894
11895 \end_inset
11896
11897
11898 \begin_inset Quotes erd
11899 \end_inset
11900
11901 ).
11902  This specification is optional.
11903  If it is not given the 
11904 \begin_inset Flex Code
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908 LabelString
11909 \end_layout
11910
11911 \end_inset
11912
11913  will be used instead for the menu.
11914 \end_layout
11915
11916 \begin_layout Itemize
11917 \begin_inset Flex Code
11918 status collapsed
11919
11920 \begin_layout Plain Layout
11921 Tooltip
11922 \end_layout
11923
11924 \end_inset
11925
11926  
11927 \begin_inset Flex Code
11928 status collapsed
11929
11930 \begin_layout Plain Layout
11931 [string]
11932 \end_layout
11933
11934 \end_inset
11935
11936  A longer explanatory text that appears in the tooltip when hovering over
11937  the argument inset.
11938 \end_layout
11939
11940 \begin_layout Itemize
11941 \begin_inset Flex Code
11942 status collapsed
11943
11944 \begin_layout Plain Layout
11945 Mandatory
11946 \end_layout
11947
11948 \end_inset
11949
11950  [
11951 \begin_inset Flex Code
11952 status collapsed
11953
11954 \begin_layout Plain Layout
11955
11956 \emph on
11957 0
11958 \end_layout
11959
11960 \end_inset
11961
11962 ,
11963 \begin_inset space \thinspace{}
11964 \end_inset
11965
11966
11967 \begin_inset Flex Code
11968 status collapsed
11969
11970 \begin_layout Plain Layout
11971 1
11972 \end_layout
11973
11974 \end_inset
11975
11976 ] Declare if this is a mandatory (1) or an optional (0) argument.
11977  Mandatory arguments will be output empty if not given, while optional arguments
11978  will not be output at all.
11979  By default, mandatory arguments are delimited by 
11980 \begin_inset Flex Code
11981 status collapsed
11982
11983 \begin_layout Plain Layout
11984 {...}
11985 \end_layout
11986
11987 \end_inset
11988
11989 , while optional arguments are delimited by 
11990 \begin_inset Flex Code
11991 status collapsed
11992
11993 \begin_layout Plain Layout
11994 [...]
11995 \end_layout
11996
11997 \end_inset
11998
11999
12000 \change_inserted -712698321 1555579782
12001
12002 \end_layout
12003
12004 \begin_layout Itemize
12005
12006 \change_inserted -712698321 1555579780
12007 \begin_inset Flex Code
12008 status collapsed
12009
12010 \begin_layout Plain Layout
12011
12012 \change_inserted -712698321 1555579780
12013 NewlineCmd
12014 \end_layout
12015
12016 \end_inset
12017
12018  
12019 \begin_inset Flex Code
12020 status collapsed
12021
12022 \begin_layout Plain Layout
12023
12024 \change_inserted -712698321 1555579780
12025 [string]
12026 \end_layout
12027
12028 \end_inset
12029
12030  Option to define a different command (from the default 
12031 \begin_inset Flex Code
12032 status collapsed
12033
12034 \begin_layout Plain Layout
12035
12036 \change_inserted -712698321 1555579780
12037
12038 \backslash
12039
12040 \backslash
12041
12042 \end_layout
12043
12044 \end_inset
12045
12046 ) to be used for line breaks.
12047  The initial backslash must not be specified.
12048 \change_unchanged
12049
12050 \end_layout
12051
12052 \begin_layout Itemize
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057 Requires
12058 \end_layout
12059
12060 \end_inset
12061
12062  
12063 \begin_inset Flex Code
12064 status collapsed
12065
12066 \begin_layout Plain Layout
12067 [int=0]
12068 \end_layout
12069
12070 \end_inset
12071
12072  defines another argument (by its number) which this argument requires to
12073  be output if it is itself output.
12074  E.
12075 \begin_inset space \thinspace{}
12076 \end_inset
12077
12078 g., in \SpecialChar LaTeX
12079  commands, optional arguments often require previous optional arguments
12080  to be output (at least empty), as in 
12081 \begin_inset Flex Code
12082 status collapsed
12083
12084 \begin_layout Plain Layout
12085
12086 \backslash
12087 command[][argument]{text}
12088 \end_layout
12089
12090 \end_inset
12091
12092 .
12093  This can be achieved by the statement 
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098 Requires 1
12099 \end_layout
12100
12101 \end_inset
12102
12103  within 
12104 \begin_inset Flex Code
12105 status collapsed
12106
12107 \begin_layout Plain Layout
12108 Argument 2
12109 \end_layout
12110
12111 \end_inset
12112
12113 .
12114 \end_layout
12115
12116 \begin_layout Itemize
12117 \begin_inset Flex Code
12118 status collapsed
12119
12120 \begin_layout Plain Layout
12121 LeftDelim
12122 \end_layout
12123
12124 \end_inset
12125
12126  
12127 \begin_inset Flex Code
12128 status collapsed
12129
12130 \begin_layout Plain Layout
12131 [string]
12132 \end_layout
12133
12134 \end_inset
12135
12136  defines a custom left delimiter (instead of 
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141 {
12142 \end_layout
12143
12144 \end_inset
12145
12146  or 
12147 \begin_inset Flex Code
12148 status collapsed
12149
12150 \begin_layout Plain Layout
12151 [
12152 \end_layout
12153
12154 \end_inset
12155
12156 ).
12157  A line break in the output can be indicated by 
12158 \begin_inset Flex Code
12159 status collapsed
12160
12161 \begin_layout Plain Layout
12162 <br/>
12163 \end_layout
12164
12165 \end_inset
12166
12167 .
12168 \end_layout
12169
12170 \begin_layout Itemize
12171 \begin_inset Flex Code
12172 status collapsed
12173
12174 \begin_layout Plain Layout
12175 RightDelim
12176 \end_layout
12177
12178 \end_inset
12179
12180  
12181 \begin_inset Flex Code
12182 status collapsed
12183
12184 \begin_layout Plain Layout
12185 [string]
12186 \end_layout
12187
12188 \end_inset
12189
12190  defines a custom right delimiter (instead of 
12191 \begin_inset Flex Code
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195 }
12196 \end_layout
12197
12198 \end_inset
12199
12200  or 
12201 \begin_inset Flex Code
12202 status collapsed
12203
12204 \begin_layout Plain Layout
12205 ]
12206 \end_layout
12207
12208 \end_inset
12209
12210 ).
12211  A line break in the output can be indicated by 
12212 \begin_inset Flex Code
12213 status collapsed
12214
12215 \begin_layout Plain Layout
12216 <br/>
12217 \end_layout
12218
12219 \end_inset
12220
12221 .
12222 \end_layout
12223
12224 \begin_layout Itemize
12225 \begin_inset Flex Code
12226 status collapsed
12227
12228 \begin_layout Plain Layout
12229 DefaultArg
12230 \end_layout
12231
12232 \end_inset
12233
12234  
12235 \begin_inset Flex Code
12236 status collapsed
12237
12238 \begin_layout Plain Layout
12239 [string]
12240 \end_layout
12241
12242 \end_inset
12243
12244  defines an argument that is inserted if and only if no user-specified arguments
12245  were given, i.
12246 \begin_inset space \thinspace{}
12247 \end_inset
12248
12249 e.
12250 \begin_inset space \space{}
12251 \end_inset
12252
12253 if no argument inset has been inserted (note that also an empty argument
12254  inset omits the DefaultArg).
12255  Multiple arguments need to be separated by comma.
12256 \end_layout
12257
12258 \begin_layout Itemize
12259 \begin_inset Flex Code
12260 status collapsed
12261
12262 \begin_layout Plain Layout
12263 PresetArg
12264 \end_layout
12265
12266 \end_inset
12267
12268  
12269 \begin_inset Flex Code
12270 status collapsed
12271
12272 \begin_layout Plain Layout
12273 [string]
12274 \end_layout
12275
12276 \end_inset
12277
12278  defines an argument that is inserted in any case (alone or in addition
12279  to user-specified arguments).
12280  Multiple arguments need to be separated by comma.
12281 \end_layout
12282
12283 \begin_layout Itemize
12284 \begin_inset Flex Code
12285 status collapsed
12286
12287 \begin_layout Plain Layout
12288 Font
12289 \end_layout
12290
12291 \end_inset
12292
12293  The font used for the argument content, see 
12294 \begin_inset CommandInset ref
12295 LatexCommand ref
12296 reference "subsec:Font-description"
12297
12298 \end_inset
12299
12300 .
12301 \change_inserted -712698321 1559484228
12302
12303 \end_layout
12304
12305 \begin_layout Itemize
12306
12307 \change_inserted -712698321 1559484228
12308 \begin_inset Flex Code
12309 status collapsed
12310
12311 \begin_layout Plain Layout
12312
12313 \change_inserted -712698321 1559484228
12314 FreeSpacing
12315 \end_layout
12316
12317 \end_inset
12318
12319  [
12320 \begin_inset Flex Code
12321 status collapsed
12322
12323 \begin_layout Plain Layout
12324
12325 \change_inserted -712698321 1559484228
12326
12327 \emph on
12328 0
12329 \end_layout
12330
12331 \end_inset
12332
12333 ,
12334 \begin_inset space \thinspace{}
12335 \end_inset
12336
12337
12338 \begin_inset Flex Code
12339 status collapsed
12340
12341 \begin_layout Plain Layout
12342
12343 \change_inserted -712698321 1559484228
12344 1
12345 \end_layout
12346
12347 \end_inset
12348
12349 ] As with paragraph styles, see 
12350 \begin_inset CommandInset ref
12351 LatexCommand ref
12352 reference "subsec:Paragraph-Styles"
12353
12354 \end_inset
12355
12356 .
12357 \change_unchanged
12358
12359 \end_layout
12360
12361 \begin_layout Itemize
12362 \begin_inset Flex Code
12363 status collapsed
12364
12365 \begin_layout Plain Layout
12366 LabelFont
12367 \end_layout
12368
12369 \end_inset
12370
12371  The font used for the label; see 
12372 \begin_inset CommandInset ref
12373 LatexCommand ref
12374 reference "subsec:Font-description"
12375
12376 \end_inset
12377
12378 .
12379 \end_layout
12380
12381 \begin_layout Itemize
12382 \begin_inset Flex Code
12383 status collapsed
12384
12385 \begin_layout Plain Layout
12386 Decoration
12387 \end_layout
12388
12389 \end_inset
12390
12391  [
12392 \begin_inset Flex Code
12393 status collapsed
12394
12395 \begin_layout Plain Layout
12396
12397 \emph on
12398 Classic
12399 \emph default
12400 , Minimalistic, Conglomerate
12401 \end_layout
12402
12403 \end_inset
12404
12405 ] describes the rendering style used for the inset's frame and buttons.
12406 \end_layout
12407
12408 \begin_layout Itemize
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 AutoInsert
12414 \end_layout
12415
12416 \end_inset
12417
12418  
12419 \begin_inset Flex Code
12420 status collapsed
12421
12422 \begin_layout Plain Layout
12423 [int=0]
12424 \end_layout
12425
12426 \end_inset
12427
12428  If this is set to 
12429 \begin_inset Flex Code
12430 status collapsed
12431
12432 \begin_layout Plain Layout
12433 1
12434 \end_layout
12435
12436 \end_inset
12437
12438 , this argument is automatically inserted when the respective style is selected.
12439
12440 \change_deleted -712698321 1559484200
12441  Currently, only one argument per style\SpecialChar breakableslash
12442 layout can be automatically inserted.
12443 \change_unchanged
12444
12445 \end_layout
12446
12447 \begin_layout Itemize
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452 InsertCotext
12453 \end_layout
12454
12455 \end_inset
12456
12457  
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462 [int=0]
12463 \end_layout
12464
12465 \end_inset
12466
12467  If this is set to 
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 1
12473 \end_layout
12474
12475 \end_inset
12476
12477 , this argument will be inserted with a copy of the co-text (either selected
12478  text or the whole paragraph) as content.
12479 \end_layout
12480
12481 \begin_layout Itemize
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 PassThru
12487 \end_layout
12488
12489 \end_inset
12490
12491  [
12492 \begin_inset Flex Code
12493 status collapsed
12494
12495 \begin_layout Plain Layout
12496
12497 \emph on
12498 inherited
12499 \emph default
12500 , true, false
12501 \end_layout
12502
12503 \end_inset
12504
12505 ] Whether the contents of this argument should be output in raw form, meaning
12506  without special translations that \SpecialChar LaTeX
12507  would require.
12508  By default, the 
12509 \begin_inset Flex Code
12510 status collapsed
12511
12512 \begin_layout Plain Layout
12513 PassThru
12514 \end_layout
12515
12516 \end_inset
12517
12518  status is inherited by the inset or paragraph layout the argument belongs
12519  to, true and false change the status for the given argument only.
12520 \end_layout
12521
12522 \begin_layout Itemize
12523 \begin_inset Flex Code
12524 status collapsed
12525
12526 \begin_layout Plain Layout
12527 PassThruChars
12528 \end_layout
12529
12530 \end_inset
12531
12532  [
12533 \begin_inset Flex Code
12534 status collapsed
12535
12536 \begin_layout Plain Layout
12537 string of characters
12538 \end_layout
12539
12540 \end_inset
12541
12542 ]
12543 \family typewriter
12544  
12545 \family default
12546 Defines individual characters
12547 \begin_inset Newline linebreak
12548 \end_inset
12549
12550 that should be output in raw form, meaning without special translations
12551  that \SpecialChar LaTeX
12552  would require.
12553  Note that, contrary to PassThru, this needs to be explicitly defined for
12554  arguments.
12555  That is, arguments do not inherit PassThruChars from their parent inset
12556  or layout.
12557 \end_layout
12558
12559 \begin_layout Itemize
12560 \begin_inset Flex Code
12561 status collapsed
12562
12563 \begin_layout Plain Layout
12564 IsTocCaption
12565 \end_layout
12566
12567 \end_inset
12568
12569  [
12570 \begin_inset Flex Code
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574
12575 \emph on
12576 0
12577 \end_layout
12578
12579 \end_inset
12580
12581 ,
12582 \begin_inset space \thinspace{}
12583 \end_inset
12584
12585
12586 \begin_inset Flex Code
12587 status collapsed
12588
12589 \begin_layout Plain Layout
12590 1
12591 \end_layout
12592
12593 \end_inset
12594
12595 ] If this is set to 1, the argument will output its content in the corresponding
12596  item in the table of contents.
12597  See AddToToc.
12598 \end_layout
12599
12600 \begin_layout Standard
12601 By default, the text entered in the \SpecialChar LyX
12602  workarea in the respective layout is
12603  the last (mandatory) argument of a command if the 
12604 \begin_inset Flex Code
12605 status collapsed
12606
12607 \begin_layout Plain Layout
12608 LatexType
12609 \end_layout
12610
12611 \end_inset
12612
12613  is 
12614 \begin_inset Flex Code
12615 status collapsed
12616
12617 \begin_layout Plain Layout
12618 Command
12619 \end_layout
12620
12621 \end_inset
12622
12623 .
12624  However, arguments with the prefix 
12625 \begin_inset Flex Code
12626 status collapsed
12627
12628 \begin_layout Plain Layout
12629 post:
12630 \end_layout
12631
12632 \end_inset
12633
12634  are output after this workarea argument.
12635  Note that post-argument numbering restarts at 1, so the first argument
12636  following the workarea argument is 
12637 \begin_inset Flex Code
12638 status collapsed
12639
12640 \begin_layout Plain Layout
12641 post:1
12642 \end_layout
12643
12644 \end_inset
12645
12646 .
12647  Post-arguments are ignored in any other 
12648 \begin_inset Flex Code
12649 status collapsed
12650
12651 \begin_layout Plain Layout
12652 LatexType
12653 \end_layout
12654
12655 \end_inset
12656
12657  than 
12658 \begin_inset Flex Code
12659 status collapsed
12660
12661 \begin_layout Plain Layout
12662 Command
12663 \end_layout
12664
12665 \end_inset
12666
12667 .
12668 \end_layout
12669
12670 \begin_layout Standard
12671 Arguments for list 
12672 \begin_inset Flex Code
12673 status collapsed
12674
12675 \begin_layout Plain Layout
12676
12677 \backslash
12678 item
12679 \end_layout
12680
12681 \end_inset
12682
12683 s (as in 
12684 \begin_inset Flex Code
12685 status collapsed
12686
12687 \begin_layout Plain Layout
12688
12689 \backslash
12690 item[foo]
12691 \end_layout
12692
12693 \end_inset
12694
12695 ) have the prefix 
12696 \begin_inset Flex Code
12697 status collapsed
12698
12699 \begin_layout Plain Layout
12700 item:
12701 \end_layout
12702
12703 \end_inset
12704
12705  followed by the number (e.
12706 \begin_inset space \thinspace{}
12707 \end_inset
12708
12709 g.
12710 \begin_inset space \space{}
12711 \end_inset
12712
12713
12714 \begin_inset Flex Code
12715 status collapsed
12716
12717 \begin_layout Plain Layout
12718 Argument item:1
12719 \end_layout
12720
12721 \end_inset
12722
12723 ).
12724 \change_inserted -712698321 1534487781
12725
12726 \end_layout
12727
12728 \begin_layout Standard
12729
12730 \change_inserted -712698321 1534488561
12731 Finally, there is a special argument type with the prefix 
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736
12737 \change_inserted -712698321 1534487844
12738 listpreamble:
12739 \change_unchanged
12740
12741 \end_layout
12742
12743 \end_inset
12744
12745 .
12746  It is not really an argument, but uses the argument interface (thus, the
12747  prefix is also followed by a number, e.
12748 \begin_inset space \thinspace{}
12749 \end_inset
12750
12751 g.
12752  
12753 \begin_inset Flex Code
12754 status collapsed
12755
12756 \begin_layout Plain Layout
12757
12758 \change_inserted -712698321 1534488412
12759 Argument listpreamble:1
12760 \end_layout
12761
12762 \end_inset
12763
12764 ).
12765  As the name implies, it is targeted at lists such as 
12766 \family sans
12767 Itemize
12768 \family default
12769
12770 \family sans
12771 Enumerate
12772 \family default
12773
12774 \family sans
12775 Description
12776 \family default
12777 , or 
12778 \family sans
12779 Bibliography
12780 \family default
12781 .
12782  Its content will be output at the list start, before the first 
12783 \begin_inset Flex Code
12784 status collapsed
12785
12786 \begin_layout Plain Layout
12787
12788 \change_inserted -712698321 1534488058
12789
12790 \backslash
12791 item
12792 \change_unchanged
12793
12794 \end_layout
12795
12796 \end_inset
12797
12798 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
12799 ).
12800  This way, users can insert redefinitions (of lengths etc.) to individual
12801  lists.
12802  By default, these arguments do not have a delimiter.
12803 \change_unchanged
12804
12805 \end_layout
12806
12807 \end_deeper
12808 \begin_layout Description
12809 \begin_inset Flex Code
12810 status collapsed
12811
12812 \begin_layout Plain Layout
12813 AutoNests
12814 \end_layout
12815
12816 \end_inset
12817
12818  Includes a comma-separated list of layouts that should be nested in and
12819  after the current layout.
12820  Only makes sense for nestable layouts (such as environments).
12821  Must be ended by 
12822 \begin_inset Quotes eld
12823 \end_inset
12824
12825
12826 \begin_inset Flex Code
12827 status collapsed
12828
12829 \begin_layout Plain Layout
12830 EndAutoNests
12831 \end_layout
12832
12833 \end_inset
12834
12835
12836 \begin_inset Quotes erd
12837 \end_inset
12838
12839 .
12840  See also 
12841 \begin_inset Flex Code
12842 status collapsed
12843
12844 \begin_layout Plain Layout
12845 IsAutoNestedBy
12846 \end_layout
12847
12848 \end_inset
12849
12850 .
12851 \end_layout
12852
12853 \begin_layout Description
12854 \begin_inset Flex Code
12855 status collapsed
12856
12857 \begin_layout Plain Layout
12858 BabelPreamble
12859 \end_layout
12860
12861 \end_inset
12862
12863  Note that this will completely override any prior 
12864 \begin_inset Flex Code
12865 status collapsed
12866
12867 \begin_layout Plain Layout
12868 BabelPreamble
12869 \end_layout
12870
12871 \end_inset
12872
12873  declaration for this style.
12874  Must end with 
12875 \begin_inset Quotes eld
12876 \end_inset
12877
12878
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883 EndBabelPreamble
12884 \end_layout
12885
12886 \end_inset
12887
12888
12889 \begin_inset Quotes erd
12890 \end_inset
12891
12892 .
12893  See 
12894 \begin_inset CommandInset ref
12895 LatexCommand ref
12896 reference "subsec:I18n"
12897
12898 \end_inset
12899
12900  for details on its use.
12901 \end_layout
12902
12903 \begin_layout Description
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908 BottomSep
12909 \end_layout
12910
12911 \end_inset
12912
12913  [
12914 \begin_inset Flex Code
12915 status collapsed
12916
12917 \begin_layout Plain Layout
12918 float=0
12919 \end_layout
12920
12921 \end_inset
12922
12923 ]
12924 \begin_inset Foot
12925 status collapsed
12926
12927 \begin_layout Plain Layout
12928 Note that a `float' here is a real number, such as: 1.5.
12929 \end_layout
12930
12931 \end_inset
12932
12933  The vertical space with which the last of a chain of paragraphs with this
12934  style is separated from the following paragraph.
12935  If the next paragraph has another style, the separations are not simply
12936  added, but the maximum is taken.
12937 \end_layout
12938
12939 \begin_layout Description
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 Category
12945 \end_layout
12946
12947 \end_inset
12948
12949  [
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954 string
12955 \end_layout
12956
12957 \end_inset
12958
12959 ] The category for this style.
12960  This is used to group related styles in the style combobox on the toolbar.
12961  Any string can be used, but you may want to use existing categories with
12962  your own styles.
12963  
12964 \end_layout
12965
12966 \begin_layout Description
12967 \begin_inset Flex Code
12968 status collapsed
12969
12970 \begin_layout Plain Layout
12971 CommandDepth
12972 \end_layout
12973
12974 \end_inset
12975
12976  Depth of XML command.
12977  Used only with XML-type formats.
12978 \end_layout
12979
12980 \begin_layout Description
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 CopyStyle
12986 \end_layout
12987
12988 \end_inset
12989
12990  [
12991 \begin_inset Flex Code
12992 status collapsed
12993
12994 \begin_layout Plain Layout
12995 string
12996 \end_layout
12997
12998 \end_inset
12999
13000 ] Copies all the features of an existing style into the current one.
13001  
13002 \end_layout
13003
13004 \begin_layout Description
13005 \begin_inset Flex Code
13006 status collapsed
13007
13008 \begin_layout Plain Layout
13009 DependsOn
13010 \end_layout
13011
13012 \end_inset
13013
13014  [
13015 \begin_inset Flex Code
13016 status collapsed
13017
13018 \begin_layout Plain Layout
13019 <name>
13020 \end_layout
13021
13022 \end_inset
13023
13024 ] The name of a style whose preamble should be output 
13025 \emph on
13026 before
13027 \emph default
13028  this one.
13029  This allows to ensure some ordering of the preamble snippets when macros
13030  definitions depend on one another.
13031 \begin_inset Foot
13032 status collapsed
13033
13034 \begin_layout Plain Layout
13035 Note that, besides that functionality, there is no way to ensure any ordering
13036  of preambles.
13037  The ordering that you see in a given version of \SpecialChar LyX
13038  may change without warning
13039  in later versions.
13040 \end_layout
13041
13042 \end_inset
13043
13044
13045 \end_layout
13046
13047 \begin_layout Description
13048 \begin_inset Flex Code
13049 status collapsed
13050
13051 \begin_layout Plain Layout
13052 EndLabeltype
13053 \end_layout
13054
13055 \end_inset
13056
13057  [
13058 \begin_inset Flex Code
13059 status collapsed
13060
13061 \begin_layout Plain Layout
13062
13063 \emph on
13064 No_Label
13065 \emph default
13066 , Box, Filled_Box, Static
13067 \end_layout
13068
13069 \end_inset
13070
13071 ] The type of label that stands at the end of the paragraph (or sequence
13072  of paragraphs if 
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 LatexType
13078 \end_layout
13079
13080 \end_inset
13081
13082  is
13083 \begin_inset Newline newline
13084 \end_inset
13085
13086
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091 Environment
13092 \end_layout
13093
13094 \end_inset
13095
13096
13097 \begin_inset Flex Code
13098 status collapsed
13099
13100 \begin_layout Plain Layout
13101 Item_Environment
13102 \end_layout
13103
13104 \end_inset
13105
13106  or 
13107 \begin_inset Flex Code
13108 status collapsed
13109
13110 \begin_layout Plain Layout
13111 List_Environment
13112 \end_layout
13113
13114 \end_inset
13115
13116 ).
13117  
13118 \begin_inset Flex Code
13119 status collapsed
13120
13121 \begin_layout Plain Layout
13122 No_Label
13123 \end_layout
13124
13125 \end_inset
13126
13127  means 
13128 \begin_inset Quotes eld
13129 \end_inset
13130
13131 nothing
13132 \begin_inset Quotes erd
13133 \end_inset
13134
13135
13136 \begin_inset Flex Code
13137 status collapsed
13138
13139 \begin_layout Plain Layout
13140 Box
13141 \end_layout
13142
13143 \end_inset
13144
13145  (resp.
13146 \begin_inset space \space{}
13147 \end_inset
13148
13149
13150 \begin_inset Flex Code
13151 status collapsed
13152
13153 \begin_layout Plain Layout
13154 Filled_Box
13155 \end_layout
13156
13157 \end_inset
13158
13159 ) is a white (resp.
13160 \begin_inset space ~
13161 \end_inset
13162
13163 black) square suitable for end of proof markers, 
13164 \begin_inset Flex Code
13165 status collapsed
13166
13167 \begin_layout Plain Layout
13168 Static
13169 \end_layout
13170
13171 \end_inset
13172
13173  is an explicit text string.
13174 \end_layout
13175
13176 \begin_layout Description
13177 \begin_inset Flex Code
13178 status collapsed
13179
13180 \begin_layout Plain Layout
13181 EndLabelString
13182 \end_layout
13183
13184 \end_inset
13185
13186  [
13187 \begin_inset Flex Code
13188 status collapsed
13189
13190 \begin_layout Plain Layout
13191 string=""
13192 \end_layout
13193
13194 \end_inset
13195
13196 ] The string used for a label with a 
13197 \begin_inset Flex Code
13198 status collapsed
13199
13200 \begin_layout Plain Layout
13201 Static
13202 \end_layout
13203
13204 \end_inset
13205
13206
13207 \begin_inset Newline newline
13208 \end_inset
13209
13210
13211 \begin_inset Flex Code
13212 status collapsed
13213
13214 \begin_layout Plain Layout
13215 EndLabelType
13216 \end_layout
13217
13218 \end_inset
13219
13220 .
13221  
13222 \end_layout
13223
13224 \begin_layout Description
13225 \begin_inset Flex Code
13226 status collapsed
13227
13228 \begin_layout Plain Layout
13229 Font
13230 \end_layout
13231
13232 \end_inset
13233
13234  The font used for both the text body 
13235 \emph on
13236 and
13237 \emph default
13238  the label.
13239  See 
13240 \begin_inset CommandInset ref
13241 LatexCommand ref
13242 reference "subsec:Font-description"
13243
13244 \end_inset
13245
13246 .
13247  Note that defining this font automatically defines the 
13248 \begin_inset Flex Code
13249 status collapsed
13250
13251 \begin_layout Plain Layout
13252 LabelFont
13253 \end_layout
13254
13255 \end_inset
13256
13257  to the same value.
13258  So you should define this one first if you also want to define 
13259 \begin_inset Flex Code
13260 status collapsed
13261
13262 \begin_layout Plain Layout
13263 LabelFont
13264 \end_layout
13265
13266 \end_inset
13267
13268 .
13269 \end_layout
13270
13271 \begin_layout Description
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276 ForceLocal
13277 \end_layout
13278
13279 \end_inset
13280
13281  [
13282 \begin_inset Flex Code
13283 status collapsed
13284
13285 \begin_layout Plain Layout
13286 int=0
13287 \end_layout
13288
13289 \end_inset
13290
13291 ] Used for backporting new styles to stable \SpecialChar LyX
13292  versions.
13293  The first stable version that supports this tag is \SpecialChar LyX
13294  2.1.0.
13295  The argument is a number which may either be 0, -1 or any value greater
13296  than zero.
13297  If the 
13298 \begin_inset Flex Code
13299 status collapsed
13300
13301 \begin_layout Plain Layout
13302 ForceLocal
13303 \end_layout
13304
13305 \end_inset
13306
13307  flag of a style is greater than zero, it will always be written to the
13308  document header.
13309  If a .lyx file is read, the style definitions from the document header are
13310  added to the document class.
13311  Therefore even older \SpecialChar LyX
13312  versions can handle the style.
13313  The argument of 
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 ForceLocal
13319 \end_layout
13320
13321 \end_inset
13322
13323  is a version number: if the style is read, and the version number is less
13324  than the version number of the already existing style in the document class,
13325  the new style is ignored.
13326  If the version number is greater, the new style replaces the existing style.
13327  A value of -1 means an infinite version number, i.
13328 \begin_inset space \thinspace{}
13329 \end_inset
13330
13331 e.
13332 \begin_inset space \space{}
13333 \end_inset
13334
13335 the style is always used.
13336 \end_layout
13337
13338 \begin_layout Description
13339 \begin_inset Flex Code
13340 status collapsed
13341
13342 \begin_layout Plain Layout
13343 FreeSpacing
13344 \end_layout
13345
13346 \end_inset
13347
13348  [
13349 \begin_inset Flex Code
13350 status collapsed
13351
13352 \begin_layout Plain Layout
13353
13354 \emph on
13355 0
13356 \end_layout
13357
13358 \end_inset
13359
13360 ,
13361 \begin_inset space \thinspace{}
13362 \end_inset
13363
13364
13365 \begin_inset Flex Code
13366 status collapsed
13367
13368 \begin_layout Plain Layout
13369 1
13370 \end_layout
13371
13372 \end_inset
13373
13374 ] Usually \SpecialChar LyX
13375  does not allow you to insert more than one space between words,
13376  since a space is considered as the separation between two words, not a
13377  character or symbol of its own.
13378  This is a very fine thing but sometimes annoying, for example, when typing
13379  program code or plain \SpecialChar LaTeX
13380  code.
13381  For this reason, 
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386 FreeSpacing
13387 \end_layout
13388
13389 \end_inset
13390
13391  can be enabled.
13392  
13393 \change_deleted -495245474 1550490105
13394 Note that 
13395 \change_unchanged
13396 \SpecialChar LyX
13397  will create protected blanks for the additional blanks when in 
13398 \change_inserted -495245474 1550490096
13399
13400 \begin_inset Flex Code
13401 status collapsed
13402
13403 \begin_layout Plain Layout
13404
13405 \change_inserted -495245474 1550490089
13406 Passthru 1
13407 \end_layout
13408
13409 \end_inset
13410
13411  is not specified.
13412 \change_deleted -495245474 1550490116
13413 another mode than \SpecialChar LaTeX
13414 -mode.
13415
13416 \change_inserted -495245474 1550247760
13417  Note that 
13418 \begin_inset Flex Code
13419 status collapsed
13420
13421 \begin_layout Plain Layout
13422
13423 \change_inserted -495245474 1550247736
13424 FreeSpacing
13425 \end_layout
13426
13427 \end_inset
13428
13429  implies 
13430 \begin_inset Flex Code
13431 status collapsed
13432
13433 \begin_layout Plain Layout
13434
13435 \change_inserted -495245474 1550247755
13436 KeepEmpty
13437 \end_layout
13438
13439 \end_inset
13440
13441 .
13442 \change_unchanged
13443
13444 \end_layout
13445
13446 \begin_layout Description
13447 \begin_inset Flex Code
13448 status collapsed
13449
13450 \begin_layout Plain Layout
13451 HTML*
13452 \end_layout
13453
13454 \end_inset
13455
13456  These tags are used with XHTML output.
13457  See 
13458 \begin_inset CommandInset ref
13459 LatexCommand ref
13460 reference "subsec:Paragraph-Style-XHTML"
13461
13462 \end_inset
13463
13464 .
13465 \end_layout
13466
13467 \begin_layout Description
13468 \begin_inset Flex Code
13469 status collapsed
13470
13471 \begin_layout Plain Layout
13472 InnerTag
13473 \end_layout
13474
13475 \end_inset
13476
13477  [FIXME] (Used only with XML-type formats.)
13478 \end_layout
13479
13480 \begin_layout Description
13481 \begin_inset Flex Code
13482 status collapsed
13483
13484 \begin_layout Plain Layout
13485 InPreamble
13486 \end_layout
13487
13488 \end_inset
13489
13490  [
13491 \begin_inset Flex Code
13492 status collapsed
13493
13494 \begin_layout Plain Layout
13495
13496 \emph on
13497 0
13498 \end_layout
13499
13500 \end_inset
13501
13502 ,
13503 \begin_inset space \thinspace{}
13504 \end_inset
13505
13506
13507 \begin_inset Flex Code
13508 status collapsed
13509
13510 \begin_layout Plain Layout
13511 1
13512 \end_layout
13513
13514 \end_inset
13515
13516 ] If 
13517 \begin_inset Flex Code
13518 status collapsed
13519
13520 \begin_layout Plain Layout
13521 1
13522 \end_layout
13523
13524 \end_inset
13525
13526 , marks the style as to be included in the document preamble and not in
13527  the document body.
13528  This is useful for document classes that want such information as the title
13529  and author to appear in the preamble.
13530  Note that this works only for styles for which the 
13531 \begin_inset Flex Code
13532 status collapsed
13533
13534 \begin_layout Plain Layout
13535 LatexType
13536 \end_layout
13537
13538 \end_inset
13539
13540  is 
13541 \begin_inset Flex Code
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 Command
13546 \end_layout
13547
13548 \end_inset
13549
13550  or 
13551 \begin_inset Flex Code
13552 status collapsed
13553
13554 \begin_layout Plain Layout
13555 Paragraph
13556 \end_layout
13557
13558 \end_inset
13559
13560 .
13561 \end_layout
13562
13563 \begin_layout Description
13564 \begin_inset Flex Code
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568 InTitle
13569 \end_layout
13570
13571 \end_inset
13572
13573  [
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578
13579 \emph on
13580 0
13581 \end_layout
13582
13583 \end_inset
13584
13585 ,
13586 \begin_inset space \thinspace{}
13587 \end_inset
13588
13589
13590 \begin_inset Flex Code
13591 status collapsed
13592
13593 \begin_layout Plain Layout
13594 1
13595 \end_layout
13596
13597 \end_inset
13598
13599 ] If 
13600 \begin_inset Flex Code
13601 status collapsed
13602
13603 \begin_layout Plain Layout
13604 1
13605 \end_layout
13606
13607 \end_inset
13608
13609 , marks the style as being part of a title block (see also the 
13610 \begin_inset Flex Code
13611 status collapsed
13612
13613 \begin_layout Plain Layout
13614 TitleLatexType
13615 \end_layout
13616
13617 \end_inset
13618
13619  and 
13620 \begin_inset Flex Code
13621 status collapsed
13622
13623 \begin_layout Plain Layout
13624 TitleLatexName
13625 \end_layout
13626
13627 \end_inset
13628
13629  global entries).
13630 \end_layout
13631
13632 \begin_layout Description
13633 \begin_inset Flex Code
13634 status collapsed
13635
13636 \begin_layout Plain Layout
13637 IsAutoNestedBy
13638 \end_layout
13639
13640 \end_inset
13641
13642  Includes a comma-separated list of layouts after which this one should
13643  be nested.
13644  Only makes sense with regard to nestable layouts (such as environments).
13645  Must be ended by 
13646 \begin_inset Quotes eld
13647 \end_inset
13648
13649
13650 \begin_inset Flex Code
13651 status collapsed
13652
13653 \begin_layout Plain Layout
13654 EndIsAutoNestedBy
13655 \end_layout
13656
13657 \end_inset
13658
13659
13660 \begin_inset Quotes erd
13661 \end_inset
13662
13663 .
13664  See also 
13665 \begin_inset Flex Code
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 AutoNests
13670 \end_layout
13671
13672 \end_inset
13673
13674 .
13675 \end_layout
13676
13677 \begin_layout Description
13678 \begin_inset Flex Code
13679 status collapsed
13680
13681 \begin_layout Plain Layout
13682 IsTocCaption
13683 \end_layout
13684
13685 \end_inset
13686
13687  [
13688 \begin_inset Flex Code
13689 status collapsed
13690
13691 \begin_layout Plain Layout
13692
13693 \emph on
13694 0
13695 \end_layout
13696
13697 \end_inset
13698
13699 ,
13700 \begin_inset space \thinspace{}
13701 \end_inset
13702
13703
13704 \begin_inset Flex Code
13705 status collapsed
13706
13707 \begin_layout Plain Layout
13708 1
13709 \end_layout
13710
13711 \end_inset
13712
13713 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
13714  of its contents in its item in the table of contents.
13715  Otherwise, only the label, if it exists, appears.
13716 \end_layout
13717
13718 \begin_layout Description
13719 \begin_inset Flex Code
13720 status collapsed
13721
13722 \begin_layout Plain Layout
13723 ItemCommand
13724 \end_layout
13725
13726 \end_inset
13727
13728  [
13729 \begin_inset Flex Code
13730 status collapsed
13731
13732 \begin_layout Plain Layout
13733 string="item"
13734 \end_layout
13735
13736 \end_inset
13737
13738 ] The \SpecialChar LaTeX
13739  command sequence declaring an item in a list.
13740  The command is to be defined without the preceding backslash (the default
13741  is 
13742 \begin_inset Quotes eld
13743 \end_inset
13744
13745 item
13746 \begin_inset Quotes erd
13747 \end_inset
13748
13749 , resulting in 
13750 \begin_inset Flex Code
13751 status collapsed
13752
13753 \begin_layout Plain Layout
13754
13755 \backslash
13756 item
13757 \end_layout
13758
13759 \end_inset
13760
13761  in the \SpecialChar LaTeX
13762  output).
13763 \end_layout
13764
13765 \begin_layout Description
13766 \begin_inset Flex Code
13767 status collapsed
13768
13769 \begin_layout Plain Layout
13770 ItemSep
13771 \end_layout
13772
13773 \end_inset
13774
13775  [
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 float=0
13781 \end_layout
13782
13783 \end_inset
13784
13785 ] This provides extra space between paragraphs that have the same style.
13786  If you put other styles into an environment, each is separated with the
13787  environment's 
13788 \begin_inset Flex Code
13789 status collapsed
13790
13791 \begin_layout Plain Layout
13792 ParSep
13793 \end_layout
13794
13795 \end_inset
13796
13797 .
13798  But the whole items of the environment are additionally separated with
13799  this 
13800 \begin_inset Flex Code
13801 status collapsed
13802
13803 \begin_layout Plain Layout
13804 ItemSep
13805 \end_layout
13806
13807 \end_inset
13808
13809 .
13810  Note that this is a
13811 \emph on
13812  multiplier.
13813 \end_layout
13814
13815 \begin_layout Description
13816 \begin_inset Flex Code
13817 status collapsed
13818
13819 \begin_layout Plain Layout
13820 ItemTag
13821 \end_layout
13822
13823 \end_inset
13824
13825  [FIXME] (Used only with XML-type formats.)
13826 \end_layout
13827
13828 \begin_layout Description
13829 \begin_inset Flex Code
13830 status collapsed
13831
13832 \begin_layout Plain Layout
13833 KeepEmpty
13834 \end_layout
13835
13836 \end_inset
13837
13838  [
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843
13844 \emph on
13845 0
13846 \end_layout
13847
13848 \end_inset
13849
13850 ,
13851 \begin_inset space \thinspace{}
13852 \end_inset
13853
13854
13855 \begin_inset Flex Code
13856 status collapsed
13857
13858 \begin_layout Plain Layout
13859 1
13860 \end_layout
13861
13862 \end_inset
13863
13864 ] Usually \SpecialChar LyX
13865  does not allow you to leave a paragraph empty, since it would
13866  lead to empty \SpecialChar LaTeX
13867  output.
13868  There are some cases where this could be desirable however: in a letter
13869  template, the required fields can be provided as empty fields, so that
13870  people do not forget them; in some special classes, a style can be used
13871  as some kind of break, which does not contain actual text.
13872 \end_layout
13873
13874 \begin_layout Description
13875 \begin_inset Flex Code
13876 status collapsed
13877
13878 \begin_layout Plain Layout
13879 LabelBottomsep
13880 \end_layout
13881
13882 \end_inset
13883
13884  [
13885 \begin_inset Flex Code
13886 status collapsed
13887
13888 \begin_layout Plain Layout
13889 float=0
13890 \end_layout
13891
13892 \end_inset
13893
13894 ] The vertical space between the label and the text body.
13895  Only used for labels that are above the text body (
13896 \begin_inset Flex Code
13897 status collapsed
13898
13899 \begin_layout Plain Layout
13900 Top_Environment
13901 \end_layout
13902
13903 \end_inset
13904
13905  and
13906 \begin_inset Newline newline
13907 \end_inset
13908
13909
13910 \begin_inset Flex Code
13911 status collapsed
13912
13913 \begin_layout Plain Layout
13914 Centered_Top_Environment
13915 \end_layout
13916
13917 \end_inset
13918
13919 ).
13920 \end_layout
13921
13922 \begin_layout Description
13923 \begin_inset Flex Code
13924 status collapsed
13925
13926 \begin_layout Plain Layout
13927 LabelCounter
13928 \end_layout
13929
13930 \end_inset
13931
13932  [
13933 \begin_inset Flex Code
13934 status collapsed
13935
13936 \begin_layout Plain Layout
13937 string=""
13938 \end_layout
13939
13940 \end_inset
13941
13942 ] The name of the counter for automatic numbering.
13943  In order to have the counter appear with your label, you will need to reference
13944  it in the 
13945 \begin_inset Flex Code
13946 status collapsed
13947
13948 \begin_layout Plain Layout
13949
13950 \family typewriter
13951 LabelString
13952 \end_layout
13953
13954 \end_inset
13955
13956 .
13957  This will work with 
13958 \begin_inset Flex Code
13959 status collapsed
13960
13961 \begin_layout Plain Layout
13962 LabelType
13963 \end_layout
13964
13965 \end_inset
13966
13967 s, 
13968 \begin_inset Flex Code
13969 status collapsed
13970
13971 \begin_layout Plain Layout
13972 Static
13973 \end_layout
13974
13975 \end_inset
13976
13977
13978 \begin_inset Flex Code
13979 status collapsed
13980
13981 \begin_layout Plain Layout
13982 Above
13983 \end_layout
13984
13985 \end_inset
13986
13987  and 
13988 \begin_inset Flex Code
13989 status collapsed
13990
13991 \begin_layout Plain Layout
13992 Centered
13993 \end_layout
13994
13995 \end_inset
13996
13997 , at least.
13998 \begin_inset Newline newline
13999 \end_inset
14000
14001 This 
14002 \emph on
14003 may
14004 \emph default
14005  also be given if 
14006 \begin_inset Flex Code
14007 status collapsed
14008
14009 \begin_layout Plain Layout
14010 LabelType
14011 \end_layout
14012
14013 \end_inset
14014
14015  is 
14016 \begin_inset Flex Code
14017 status collapsed
14018
14019 \begin_layout Plain Layout
14020 Enumerate
14021 \end_layout
14022
14023 \end_inset
14024
14025 , though this case is a bit complicated.
14026  Suppose you declare 
14027 \begin_inset Quotes eld
14028 \end_inset
14029
14030
14031 \begin_inset Flex Code
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035 LabelCounter myenum
14036 \end_layout
14037
14038 \end_inset
14039
14040
14041 \begin_inset Quotes erd
14042 \end_inset
14043
14044 .
14045  Then the actual counters used are 
14046 \begin_inset Flex Code
14047 status collapsed
14048
14049 \begin_layout Plain Layout
14050 myenumi
14051 \end_layout
14052
14053 \end_inset
14054
14055
14056 \begin_inset Flex Code
14057 status collapsed
14058
14059 \begin_layout Plain Layout
14060 myenumii
14061 \end_layout
14062
14063 \end_inset
14064
14065
14066 \begin_inset Flex Code
14067 status collapsed
14068
14069 \begin_layout Plain Layout
14070 myenumiii
14071 \end_layout
14072
14073 \end_inset
14074
14075  and 
14076 \begin_inset Flex Code
14077 status collapsed
14078
14079 \begin_layout Plain Layout
14080 myenumiv
14081 \end_layout
14082
14083 \end_inset
14084
14085 , much as in \SpecialChar LaTeX
14086 .
14087  These counters must all be declared separately.
14088 \begin_inset Newline newline
14089 \end_inset
14090
14091 See 
14092 \begin_inset CommandInset ref
14093 LatexCommand ref
14094 reference "subsec:Counters"
14095
14096 \end_inset
14097
14098  for details on counters.
14099 \end_layout
14100
14101 \begin_layout Description
14102 \begin_inset Flex Code
14103 status collapsed
14104
14105 \begin_layout Plain Layout
14106 LabelFont
14107 \end_layout
14108
14109 \end_inset
14110
14111  The font used for the label.
14112  See 
14113 \begin_inset CommandInset ref
14114 LatexCommand ref
14115 reference "subsec:Font-description"
14116
14117 \end_inset
14118
14119 .
14120 \end_layout
14121
14122 \begin_layout Description
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 LabelIndent
14128 \end_layout
14129
14130 \end_inset
14131
14132  [
14133 \begin_inset Flex Code
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137 string=""
14138 \end_layout
14139
14140 \end_inset
14141
14142 ] Text that indicates how far a label should be indented.
14143 \end_layout
14144
14145 \begin_layout Description
14146 \begin_inset Flex Code
14147 status collapsed
14148
14149 \begin_layout Plain Layout
14150 LabelSep
14151 \end_layout
14152
14153 \end_inset
14154
14155  [
14156 \begin_inset Flex Code
14157 status collapsed
14158
14159 \begin_layout Plain Layout
14160 string=""
14161 \end_layout
14162
14163 \end_inset
14164
14165 ] Text that indicates the amount of horizontal space between the label and
14166  the text body.
14167  Only used for labels that are not above the text body.
14168 \end_layout
14169
14170 \begin_layout Description
14171 \begin_inset Flex Code
14172 status collapsed
14173
14174 \begin_layout Plain Layout
14175 LabelString
14176 \end_layout
14177
14178 \end_inset
14179
14180  [
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 string=""
14186 \end_layout
14187
14188 \end_inset
14189
14190 ] The string used for the label.
14191  When 
14192 \begin_inset Flex Code
14193 status collapsed
14194
14195 \begin_layout Plain Layout
14196 LabelCounter
14197 \end_layout
14198
14199 \end_inset
14200
14201  is set, this string can be contain the special formatting commands described
14202  in 
14203 \begin_inset CommandInset ref
14204 LatexCommand ref
14205 reference "subsec:Counters"
14206
14207 \end_inset
14208
14209 .
14210 \end_layout
14211
14212 \begin_layout Description
14213 \begin_inset Flex Code
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 LabelStringAppendix
14218 \end_layout
14219
14220 \end_inset
14221
14222  [
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 string=""
14228 \end_layout
14229
14230 \end_inset
14231
14232 ] This is used inside the appendix instead of
14233 \begin_inset Newline newline
14234 \end_inset
14235
14236
14237 \begin_inset Flex Code
14238 status collapsed
14239
14240 \begin_layout Plain Layout
14241 LabelString
14242 \end_layout
14243
14244 \end_inset
14245
14246 .
14247  Note that every 
14248 \begin_inset Flex Code
14249 status collapsed
14250
14251 \begin_layout Plain Layout
14252 LabelString
14253 \end_layout
14254
14255 \end_inset
14256
14257  statement resets
14258 \begin_inset Newline newline
14259 \end_inset
14260
14261
14262 \begin_inset Flex Code
14263 status collapsed
14264
14265 \begin_layout Plain Layout
14266 LabelStringAppendix
14267 \end_layout
14268
14269 \end_inset
14270
14271  too.
14272 \end_layout
14273
14274 \begin_layout Description
14275 \begin_inset Flex Code
14276 status collapsed
14277
14278 \begin_layout Plain Layout
14279 LabelTag
14280 \end_layout
14281
14282 \end_inset
14283
14284  [FIXME] (Used only with XML-type formats.)
14285 \end_layout
14286
14287 \begin_layout Description
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 LabelType
14293 \end_layout
14294
14295 \end_inset
14296
14297  [
14298 \begin_inset Flex Code
14299 status collapsed
14300
14301 \begin_layout Plain Layout
14302
14303 \emph on
14304 No_Label
14305 \emph default
14306 , Manual, Static, Above, 
14307 \begin_inset Newline newline
14308 \end_inset
14309
14310 Centered, Sensitive, Enumerate,
14311 \begin_inset Newline newline
14312 \end_inset
14313
14314 Itemize, Bibliography
14315 \end_layout
14316
14317 \end_inset
14318
14319 ]
14320 \end_layout
14321
14322 \begin_deeper
14323 \begin_layout Description
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 Manual
14329 \end_layout
14330
14331 \end_inset
14332
14333  means the label is the very first word (up to the first real blank).
14334  Use protected spaces if you want more than one word as the label.
14335  
14336 \end_layout
14337
14338 \begin_layout Description
14339 \begin_inset Flex Code
14340 status collapsed
14341
14342 \begin_layout Plain Layout
14343 Static
14344 \end_layout
14345
14346 \end_inset
14347
14348  means the label is simply what is declared as 
14349 \begin_inset Flex Code
14350 status collapsed
14351
14352 \begin_layout Plain Layout
14353 LabelString
14354 \end_layout
14355
14356 \end_inset
14357
14358 .
14359  This will be displayed 
14360 \begin_inset Quotes eld
14361 \end_inset
14362
14363 inline
14364 \begin_inset Quotes erd
14365 \end_inset
14366
14367 , at the beginning of the paragraph.
14368  If the 
14369 \begin_inset Flex Code
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373 LatexType
14374 \end_layout
14375
14376 \end_inset
14377
14378  is 
14379 \begin_inset Flex Code
14380 status collapsed
14381
14382 \begin_layout Plain Layout
14383 Environment
14384 \end_layout
14385
14386 \end_inset
14387
14388 , then it will be displayed only in the first paragraph of any sequence
14389  of paragraphs with the same 
14390 \begin_inset Flex Code
14391 status collapsed
14392
14393 \begin_layout Plain Layout
14394 Style
14395 \end_layout
14396
14397 \end_inset
14398
14399 .
14400 \end_layout
14401
14402 \begin_layout Description
14403 \begin_inset Flex Code
14404 status collapsed
14405
14406 \begin_layout Plain Layout
14407 Above
14408 \end_layout
14409
14410 \end_inset
14411
14412
14413 \begin_inset space ~
14414 \end_inset
14415
14416 and
14417 \begin_inset space ~
14418 \end_inset
14419
14420
14421 \begin_inset Flex Code
14422 status collapsed
14423
14424 \begin_layout Plain Layout
14425 Centered
14426 \end_layout
14427
14428 \end_inset
14429
14430  are special cases of 
14431 \begin_inset Flex Code
14432 status collapsed
14433
14434 \begin_layout Plain Layout
14435 Static
14436 \end_layout
14437
14438 \end_inset
14439
14440 .
14441  The label will be printed above the paragraph either at the beginning of
14442  the line or centered.
14443 \end_layout
14444
14445 \begin_layout Description
14446 \begin_inset Flex Code
14447 status collapsed
14448
14449 \begin_layout Plain Layout
14450 Sensitive
14451 \end_layout
14452
14453 \end_inset
14454
14455  is a special case for the caption-labels 
14456 \begin_inset Quotes eld
14457 \end_inset
14458
14459 Figure
14460 \begin_inset Quotes erd
14461 \end_inset
14462
14463  and 
14464 \begin_inset Quotes eld
14465 \end_inset
14466
14467 Table
14468 \begin_inset Quotes erd
14469 \end_inset
14470
14471 .
14472 \begin_inset Newline newline
14473 \end_inset
14474
14475
14476 \begin_inset Flex Code
14477 status collapsed
14478
14479 \begin_layout Plain Layout
14480 Sensitive
14481 \end_layout
14482
14483 \end_inset
14484
14485  means the (hardcoded) label string depends on the kind of float: It is
14486  hardcoded to be `FloatType N', where N is the value of the counter associated
14487  with the float.
14488  For the case that a caption is inserted outside of a float the 
14489 \begin_inset Flex Code
14490 status collapsed
14491
14492 \begin_layout Plain Layout
14493 LabelString
14494 \end_layout
14495
14496 \end_inset
14497
14498  will appear as 
14499 \begin_inset Quotes eld
14500 \end_inset
14501
14502 Senseless!
14503 \begin_inset Quotes erd
14504 \end_inset
14505
14506 .
14507 \end_layout
14508
14509 \begin_layout Description
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 Enumerate
14515 \end_layout
14516
14517 \end_inset
14518
14519  produces the usual sort of enumeration labels.
14520  The number type needs to be set in the 
14521 \family sans
14522 Counter
14523 \family default
14524 , see 
14525 \begin_inset CommandInset ref
14526 LatexCommand ref
14527 reference "subsec:Counters"
14528
14529 \end_inset
14530
14531 .
14532 \end_layout
14533
14534 \begin_layout Description
14535 \begin_inset Flex Code
14536 status collapsed
14537
14538 \begin_layout Plain Layout
14539 Itemize
14540 \end_layout
14541
14542 \end_inset
14543
14544  produces various bullets at the different levels.
14545  The bullet types displayed can be set via 
14546 \begin_inset Flex Noun
14547 status collapsed
14548
14549 \begin_layout Plain Layout
14550 Document\SpecialChar menuseparator
14551 Settings\SpecialChar menuseparator
14552 Bullets
14553 \end_layout
14554
14555 \end_inset
14556
14557 .
14558 \end_layout
14559
14560 \begin_layout Description
14561 \begin_inset Flex Code
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565 Bibliography
14566 \end_layout
14567
14568 \end_inset
14569
14570  should be used only with 
14571 \begin_inset Flex Code
14572 status collapsed
14573
14574 \begin_layout Plain Layout
14575 LatexType BibEnvironment
14576 \end_layout
14577
14578 \end_inset
14579
14580 .
14581 \end_layout
14582
14583 \end_deeper
14584 \begin_layout Description
14585 \begin_inset Flex Code
14586 status collapsed
14587
14588 \begin_layout Plain Layout
14589 LangPreamble
14590 \end_layout
14591
14592 \end_inset
14593
14594  Note that this will completely override any prior 
14595 \begin_inset Flex Code
14596 status collapsed
14597
14598 \begin_layout Plain Layout
14599 LangPreamble
14600 \end_layout
14601
14602 \end_inset
14603
14604  declaration for this style.
14605  Must end with 
14606 \begin_inset Quotes eld
14607 \end_inset
14608
14609
14610 \begin_inset Flex Code
14611 status collapsed
14612
14613 \begin_layout Plain Layout
14614 EndLangPreamble
14615 \end_layout
14616
14617 \end_inset
14618
14619
14620 \begin_inset Quotes erd
14621 \end_inset
14622
14623 .
14624  See 
14625 \begin_inset CommandInset ref
14626 LatexCommand ref
14627 reference "subsec:I18n"
14628
14629 \end_inset
14630
14631  for details on its use.
14632 \end_layout
14633
14634 \begin_layout Description
14635 \begin_inset Flex Code
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639 LatexName
14640 \end_layout
14641
14642 \end_inset
14643
14644  [
14645 \begin_inset Flex Code
14646 status collapsed
14647
14648 \begin_layout Plain Layout
14649 <name>
14650 \end_layout
14651
14652 \end_inset
14653
14654 ] The name of the corresponding \SpecialChar LaTeX
14655  stuff.
14656  Either the environment or command name.
14657 \end_layout
14658
14659 \begin_layout Description
14660 \begin_inset Flex Code
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664 LatexParam
14665 \end_layout
14666
14667 \end_inset
14668
14669  [
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 <parameter>
14675 \end_layout
14676
14677 \end_inset
14678
14679 ] An optional parameter for the corresponding 
14680 \begin_inset Flex Code
14681 status collapsed
14682
14683 \begin_layout Plain Layout
14684 LatexName
14685 \end_layout
14686
14687 \end_inset
14688
14689  stuff.
14690  This parameter cannot be changed from within \SpecialChar LyX
14691  (use 
14692 \begin_inset Flex Code
14693 status collapsed
14694
14695 \begin_layout Plain Layout
14696 Argument
14697 \end_layout
14698
14699 \end_inset
14700
14701  for customizable parameters).
14702  This will be output as is after all \SpecialChar LaTeX
14703  
14704 \begin_inset Flex Code
14705 status collapsed
14706
14707 \begin_layout Plain Layout
14708 Argument
14709 \end_layout
14710
14711 \end_inset
14712
14713 s.
14714 \end_layout
14715
14716 \begin_layout Description
14717 \begin_inset Flex Code
14718 status collapsed
14719
14720 \begin_layout Plain Layout
14721 LatexType
14722 \end_layout
14723
14724 \end_inset
14725
14726  [
14727 \begin_inset Flex Code
14728 status collapsed
14729
14730 \begin_layout Plain Layout
14731
14732 \emph on
14733 Paragraph
14734 \emph default
14735 , Command, Environment, Item_Environment,
14736 \begin_inset Newline newline
14737 \end_inset
14738
14739 List_Environment, Bib_Environment
14740 \end_layout
14741
14742 \end_inset
14743
14744 ] How the style should be translated into \SpecialChar LaTeX
14745 .
14746 \begin_inset Foot
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 \begin_inset Flex Code
14751 status collapsed
14752
14753 \begin_layout Plain Layout
14754 LatexType
14755 \end_layout
14756
14757 \end_inset
14758
14759  is perhaps a bit misleading, since these rules apply to SGML classes, too.
14760  Visit the SGML class files for specific examples.
14761 \end_layout
14762
14763 \end_inset
14764
14765
14766 \end_layout
14767
14768 \begin_deeper
14769 \begin_layout Description
14770 \begin_inset Flex Code
14771 status collapsed
14772
14773 \begin_layout Plain Layout
14774 Paragraph
14775 \end_layout
14776
14777 \end_inset
14778
14779  means nothing special.
14780 \end_layout
14781
14782 \begin_layout Description
14783 \begin_inset Flex Code
14784 status collapsed
14785
14786 \begin_layout Plain Layout
14787 Command
14788 \end_layout
14789
14790 \end_inset
14791
14792  means 
14793 \begin_inset Flex Code
14794 status collapsed
14795
14796 \begin_layout Plain Layout
14797
14798 \backslash
14799
14800 \emph on
14801 LatexName
14802 \emph default
14803 {\SpecialChar ldots
14804 }
14805 \end_layout
14806
14807 \end_inset
14808
14809 .
14810 \end_layout
14811
14812 \begin_layout Description
14813 \begin_inset Flex Code
14814 status collapsed
14815
14816 \begin_layout Plain Layout
14817 Environment
14818 \end_layout
14819
14820 \end_inset
14821
14822  means 
14823 \begin_inset Flex Code
14824 status collapsed
14825
14826 \begin_layout Plain Layout
14827
14828 \backslash
14829 begin{
14830 \emph on
14831 LatexName
14832 \emph default
14833 }\SpecialChar ldots
14834
14835 \backslash
14836 end{
14837 \emph on
14838 LatexName
14839 \emph default
14840 }
14841 \end_layout
14842
14843 \end_inset
14844
14845 .
14846  
14847 \end_layout
14848
14849 \begin_layout Description
14850 \begin_inset Flex Code
14851 status collapsed
14852
14853 \begin_layout Plain Layout
14854 Item_Environment
14855 \end_layout
14856
14857 \end_inset
14858
14859  is the same as 
14860 \begin_inset Flex Code
14861 status collapsed
14862
14863 \begin_layout Plain Layout
14864 Environment
14865 \end_layout
14866
14867 \end_inset
14868
14869 , except that an 
14870 \begin_inset Flex Code
14871 status collapsed
14872
14873 \begin_layout Plain Layout
14874
14875 \backslash
14876 item
14877 \end_layout
14878
14879 \end_inset
14880
14881  is generated for each paragraph of this environment.
14882  
14883 \end_layout
14884
14885 \begin_layout Description
14886 \begin_inset Flex Code
14887 status collapsed
14888
14889 \begin_layout Plain Layout
14890 List_Environment
14891 \end_layout
14892
14893 \end_inset
14894
14895  is the same as 
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900 Item_Environment
14901 \end_layout
14902
14903 \end_inset
14904
14905 , except that
14906 \begin_inset Newline newline
14907 \end_inset
14908
14909
14910 \begin_inset Flex Code
14911 status collapsed
14912
14913 \begin_layout Plain Layout
14914 LabelWidthString
14915 \end_layout
14916
14917 \end_inset
14918
14919  is passed as an argument to the environment.
14920 \begin_inset Newline newline
14921 \end_inset
14922
14923
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928 LabelWidthString
14929 \end_layout
14930
14931 \end_inset
14932
14933  can be defined in the 
14934 \begin_inset Flex Noun
14935 status collapsed
14936
14937 \begin_layout Plain Layout
14938 Edit\SpecialChar menuseparator
14939 Paragraph
14940 \begin_inset space ~
14941 \end_inset
14942
14943 settings
14944 \end_layout
14945
14946 \end_inset
14947
14948  dialog.
14949 \end_layout
14950
14951 \begin_layout Description
14952 \begin_inset Flex Code
14953 status collapsed
14954
14955 \begin_layout Plain Layout
14956 Bib_Environment
14957 \end_layout
14958
14959 \end_inset
14960
14961  is like 
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 Environment
14967 \end_layout
14968
14969 \end_inset
14970
14971  but adds the necessary mandatory argument (the longest label) to the begin
14972  statement of the bibliography environment:
14973 \begin_inset Newline newline
14974 \end_inset
14975
14976
14977 \begin_inset Flex Code
14978 status collapsed
14979
14980 \begin_layout Plain Layout
14981
14982 \backslash
14983 begin{thebibliography}{99}
14984 \end_layout
14985
14986 \end_inset
14987
14988 .
14989  It is therefore only useful for bibliography environments.
14990  The default longest label 
14991 \begin_inset Quotes eld
14992 \end_inset
14993
14994 99
14995 \begin_inset Quotes erd
14996 \end_inset
14997
14998  can be changed by the user in the paragraph settings of a bibliography
14999  item.
15000 \end_layout
15001
15002 \begin_layout Standard
15003 Putting the last few things together, the \SpecialChar LaTeX
15004  output will be either: 
15005 \end_layout
15006
15007 \begin_layout LyX-Code
15008
15009 \backslash
15010 LatexName[LatexParam]{\SpecialChar ldots
15011 }
15012 \end_layout
15013
15014 \begin_layout Standard
15015 or: 
15016 \end_layout
15017
15018 \begin_layout LyX-Code
15019
15020 \backslash
15021 begin{LatexName}[LatexParam] \SpecialChar ldots
15022  
15023 \backslash
15024 end{LatexName}.
15025 \end_layout
15026
15027 \begin_layout Standard
15028 depending upon the \SpecialChar LaTeX
15029  type.
15030 \end_layout
15031
15032 \end_deeper
15033 \begin_layout Description
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 LeftDelim
15039 \end_layout
15040
15041 \end_inset
15042
15043  [
15044 \begin_inset Flex Code
15045 status collapsed
15046
15047 \begin_layout Plain Layout
15048 string
15049 \end_layout
15050
15051 \end_inset
15052
15053 ] A string that is put at the beginning of the style content.
15054  A line break in the output can be indicated by 
15055 \begin_inset Flex Code
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059 <br/>
15060 \end_layout
15061
15062 \end_inset
15063
15064 .
15065 \end_layout
15066
15067 \begin_layout Description
15068 \begin_inset Flex Code
15069 status collapsed
15070
15071 \begin_layout Plain Layout
15072 LeftMargin
15073 \end_layout
15074
15075 \end_inset
15076
15077  [
15078 \begin_inset Flex Code
15079 status collapsed
15080
15081 \begin_layout Plain Layout
15082 string=""
15083 \end_layout
15084
15085 \end_inset
15086
15087 ] If you put styles into environments, the different 
15088 \begin_inset Flex Code
15089 status collapsed
15090
15091 \begin_layout Plain Layout
15092 LeftMargin
15093 \end_layout
15094
15095 \end_inset
15096
15097  are not simply added, but added with a factor 
15098 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15099 \end_inset
15100
15101 .
15102  Note that this parameter is also used when 
15103 \begin_inset Flex Code
15104 status collapsed
15105
15106 \begin_layout Plain Layout
15107 Margin
15108 \end_layout
15109
15110 \end_inset
15111
15112  is defined as 
15113 \begin_inset Flex Code
15114 status collapsed
15115
15116 \begin_layout Plain Layout
15117 Manual
15118 \end_layout
15119
15120 \end_inset
15121
15122  or 
15123 \begin_inset Flex Code
15124 status collapsed
15125
15126 \begin_layout Plain Layout
15127 Dynamic
15128 \end_layout
15129
15130 \end_inset
15131
15132 .
15133  Then it is added to the manual or dynamic margin.
15134 \begin_inset Newline newline
15135 \end_inset
15136
15137 For example 
15138 \begin_inset Quotes eld
15139 \end_inset
15140
15141
15142 \begin_inset Flex Code
15143 status collapsed
15144
15145 \begin_layout Plain Layout
15146 MM
15147 \end_layout
15148
15149 \end_inset
15150
15151
15152 \begin_inset Quotes erd
15153 \end_inset
15154
15155  means that the paragraph is indented with the width of 
15156 \begin_inset Quotes eld
15157 \end_inset
15158
15159
15160 \begin_inset Flex Code
15161 status collapsed
15162
15163 \begin_layout Plain Layout
15164 MM
15165 \end_layout
15166
15167 \end_inset
15168
15169
15170 \begin_inset Quotes erd
15171 \end_inset
15172
15173  in the normal font.
15174  You can get a negative width by prefixing the string with 
15175 \begin_inset Quotes eld
15176 \end_inset
15177
15178
15179 \begin_inset Flex Code
15180 status collapsed
15181
15182 \begin_layout Plain Layout
15183 -
15184 \end_layout
15185
15186 \end_inset
15187
15188
15189 \begin_inset Quotes erd
15190 \end_inset
15191
15192 .
15193  This way was chosen so that the look is the same with each used screen
15194  font.
15195 \end_layout
15196
15197 \begin_layout Description
15198 \begin_inset Flex Code
15199 status collapsed
15200
15201 \begin_layout Plain Layout
15202 Margin
15203 \end_layout
15204
15205 \end_inset
15206
15207  [
15208 \begin_inset Flex Code
15209 status collapsed
15210
15211 \begin_layout Plain Layout
15212
15213 \emph on
15214 Static
15215 \emph default
15216 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15217 \end_layout
15218
15219 \end_inset
15220
15221
15222 \begin_inset Newline newline
15223 \end_inset
15224
15225 The kind of margin that the style has on the left side.
15226 \end_layout
15227
15228 \begin_deeper
15229 \begin_layout Description
15230 \begin_inset Flex Code
15231 status collapsed
15232
15233 \begin_layout Plain Layout
15234 Static
15235 \end_layout
15236
15237 \end_inset
15238
15239  just means a fixed margin.
15240 \end_layout
15241
15242 \begin_layout Description
15243 \begin_inset Flex Code
15244 status collapsed
15245
15246 \begin_layout Plain Layout
15247 Manual
15248 \end_layout
15249
15250 \end_inset
15251
15252  means that the left margin depends on the string entered in the 
15253 \begin_inset Flex Noun
15254 status collapsed
15255
15256 \begin_layout Plain Layout
15257 Edit\SpecialChar menuseparator
15258 Paragraph
15259 \begin_inset space ~
15260 \end_inset
15261
15262 Settings
15263 \end_layout
15264
15265 \end_inset
15266
15267  dialog.
15268  This is used to typeset nice lists without tabulators.
15269 \end_layout
15270
15271 \begin_layout Description
15272 \begin_inset Flex Code
15273 status collapsed
15274
15275 \begin_layout Plain Layout
15276 Dynamic
15277 \end_layout
15278
15279 \end_inset
15280
15281  means that the margin depends on the size of the label.
15282  This is used for automatic enumerated headlines.
15283  It is obvious that the headline 
15284 \begin_inset Quotes eld
15285 \end_inset
15286
15287 5.4.3.2.1 Very long headline
15288 \begin_inset Quotes erd
15289 \end_inset
15290
15291  must have a wider left margin (as wide as 
15292 \begin_inset Quotes eld
15293 \end_inset
15294
15295 5.4.3.2.1
15296 \begin_inset Quotes erd
15297 \end_inset
15298
15299  plus the space) than 
15300 \begin_inset Quotes eld
15301 \end_inset
15302
15303 3.2 Very long headline
15304 \begin_inset Quotes erd
15305 \end_inset
15306
15307 , even if standard 
15308 \begin_inset Quotes eld
15309 \end_inset
15310
15311 word processors
15312 \begin_inset Quotes erd
15313 \end_inset
15314
15315  are not able to do this.
15316 \end_layout
15317
15318 \begin_layout Description
15319 \begin_inset Flex Code
15320 status collapsed
15321
15322 \begin_layout Plain Layout
15323 First_Dynamic
15324 \end_layout
15325
15326 \end_inset
15327
15328  is similar, but only the very first row of the paragraph is dynamic, while
15329  the others are static; this is used, for example, for descriptions.
15330 \end_layout
15331
15332 \begin_layout Description
15333 \begin_inset Flex Code
15334 status collapsed
15335
15336 \begin_layout Plain Layout
15337 Right_Address_Box
15338 \end_layout
15339
15340 \end_inset
15341
15342  means the margin is chosen in a way that the longest row of this paragraph
15343  fits to the right margin.
15344  This is used to typeset an address on the right edge of the page.
15345 \end_layout
15346
15347 \end_deeper
15348 \begin_layout Description
15349 \begin_inset Flex Code
15350 status collapsed
15351
15352 \begin_layout Plain Layout
15353 NeedProtect
15354 \end_layout
15355
15356 \end_inset
15357
15358  [
15359 \begin_inset Flex Code
15360 status collapsed
15361
15362 \begin_layout Plain Layout
15363
15364 \emph on
15365 0
15366 \end_layout
15367
15368 \end_inset
15369
15370 ,
15371 \begin_inset space \thinspace{}
15372 \end_inset
15373
15374
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 1
15380 \end_layout
15381
15382 \end_inset
15383
15384 ] Whether fragile commands in this style should be 
15385 \begin_inset Flex Code
15386 status collapsed
15387
15388 \begin_layout Plain Layout
15389
15390 \backslash
15391 protect
15392 \end_layout
15393
15394 \end_inset
15395
15396 'ed.
15397  (Note: This is 
15398 \emph on
15399 not
15400 \emph default
15401  whether this command should itself be protected.)
15402 \change_inserted -712698321 1523696949
15403
15404 \end_layout
15405
15406 \begin_layout Description
15407
15408 \change_inserted -712698321 1552395557
15409 \begin_inset Flex Code
15410 status collapsed
15411
15412 \begin_layout Plain Layout
15413
15414 \change_inserted -712698321 1523696950
15415 NeedCProtect
15416 \end_layout
15417
15418 \end_inset
15419
15420  [
15421 \begin_inset Flex Code
15422 status collapsed
15423
15424 \begin_layout Plain Layout
15425
15426 \change_inserted -712698321 1523696950
15427
15428 \emph on
15429 0
15430 \end_layout
15431
15432 \end_inset
15433
15434 ,
15435 \begin_inset space \thinspace{}
15436 \end_inset
15437
15438
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443
15444 \change_inserted -712698321 1523696950
15445 1
15446 \end_layout
15447
15448 \end_inset
15449
15450 ] This causes macros that contain this layout to be protected with 
15451 \begin_inset Flex Code
15452 status collapsed
15453
15454 \begin_layout Plain Layout
15455
15456 \change_inserted -712698321 1523696950
15457
15458 \backslash
15459 cprotect
15460 \end_layout
15461
15462 \end_inset
15463
15464  (cf.
15465  package 
15466 \family sans
15467 cprotect
15468 \family default
15469 ) if necessary and thus allows (some) verbatim stuff in macros.
15470 \end_layout
15471
15472 \begin_layout Description
15473
15474 \change_inserted -712698321 1552395844
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479
15480 \change_inserted -712698321 1552395561
15481 NeedMBoxProtect
15482 \end_layout
15483
15484 \end_inset
15485
15486  [
15487 \begin_inset Flex Code
15488 status collapsed
15489
15490 \begin_layout Plain Layout
15491
15492 \change_inserted -712698321 1552395557
15493
15494 \emph on
15495 0
15496 \end_layout
15497
15498 \end_inset
15499
15500 ,
15501 \begin_inset space \thinspace{}
15502 \end_inset
15503
15504
15505 \begin_inset Flex Code
15506 status collapsed
15507
15508 \begin_layout Plain Layout
15509
15510 \change_inserted -712698321 1552395557
15511 1
15512 \end_layout
15513
15514 \end_inset
15515
15516 ] Whether specific commands in this style (such as 
15517 \begin_inset Flex Code
15518 status collapsed
15519
15520 \begin_layout Plain Layout
15521
15522 \change_inserted -712698321 1552395655
15523
15524 \backslash
15525 cite
15526 \change_unchanged
15527
15528 \end_layout
15529
15530 \end_inset
15531
15532  and 
15533 \begin_inset Flex Code
15534 status collapsed
15535
15536 \begin_layout Plain Layout
15537
15538 \change_inserted -712698321 1552395661
15539
15540 \backslash
15541 ref
15542 \change_unchanged
15543
15544 \end_layout
15545
15546 \end_inset
15547
15548 ) should be protected in an 
15549 \begin_inset Flex Code
15550 status collapsed
15551
15552 \begin_layout Plain Layout
15553
15554 \change_inserted -712698321 1552395631
15555
15556 \backslash
15557 mbox
15558 \change_unchanged
15559
15560 \end_layout
15561
15562 \end_inset
15563
15564 .
15565  This is particularly needed for styles that draw on 
15566 \family sans
15567 ulem
15568 \family default
15569  or 
15570 \family sans
15571 soul
15572 \family default
15573  commands which parse their content in complex ways.
15574 \change_unchanged
15575
15576 \end_layout
15577
15578 \begin_layout Description
15579 \begin_inset Flex Code
15580 status collapsed
15581
15582 \begin_layout Plain Layout
15583 Newline
15584 \end_layout
15585
15586 \end_inset
15587
15588  [
15589 \begin_inset Flex Code
15590 status collapsed
15591
15592 \begin_layout Plain Layout
15593 0
15594 \end_layout
15595
15596 \end_inset
15597
15598 ,
15599 \begin_inset space \thinspace{}
15600 \end_inset
15601
15602
15603 \begin_inset Flex Code
15604 status collapsed
15605
15606 \begin_layout Plain Layout
15607
15608 \emph on
15609 1
15610 \end_layout
15611
15612 \end_inset
15613
15614 ] Whether newlines are translated into \SpecialChar LaTeX
15615  newlines (
15616 \begin_inset Flex Code
15617 status collapsed
15618
15619 \begin_layout Plain Layout
15620
15621 \backslash
15622
15623 \backslash
15624
15625 \end_layout
15626
15627 \end_inset
15628
15629 ) or not.
15630  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15631  editing
15632  inside \SpecialChar LyX
15633 .
15634 \end_layout
15635
15636 \begin_layout Description
15637 \begin_inset Flex Code
15638 status collapsed
15639
15640 \begin_layout Plain Layout
15641 NextNoIndent
15642 \end_layout
15643
15644 \end_inset
15645
15646  [
15647 \begin_inset Flex Code
15648 status collapsed
15649
15650 \begin_layout Plain Layout
15651
15652 \emph on
15653 0
15654 \end_layout
15655
15656 \end_inset
15657
15658 ,
15659 \begin_inset space \thinspace{}
15660 \end_inset
15661
15662
15663 \begin_inset Flex Code
15664 status collapsed
15665
15666 \begin_layout Plain Layout
15667 1
15668 \end_layout
15669
15670 \end_inset
15671
15672 ] If set to true, and if 
15673 \begin_inset Flex Code
15674 status collapsed
15675
15676 \begin_layout Plain Layout
15677 DefaultStyle
15678 \end_layout
15679
15680 \end_inset
15681
15682  (usually 
15683 \begin_inset Flex Code
15684 status collapsed
15685
15686 \begin_layout Plain Layout
15687 Standard
15688 \end_layout
15689
15690 \end_inset
15691
15692 ) paragraphs are being indented, then the indentation of such a paragraph
15693  following one of this type will be suppressed.
15694  (So this will not affect the display of non-default paragraphs.)
15695 \end_layout
15696
15697 \begin_layout Description
15698 \begin_inset Flex Code
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702 ObsoletedBy
15703 \end_layout
15704
15705 \end_inset
15706
15707  [
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 <name>
15713 \end_layout
15714
15715 \end_inset
15716
15717 ] Name of a style that has replaced this style.
15718  This is used to rename a style, while keeping backward compatibility.
15719 \end_layout
15720
15721 \begin_layout Description
15722 \begin_inset Flex Code
15723 status collapsed
15724
15725 \begin_layout Plain Layout
15726 ParagraphGroup
15727 \end_layout
15728
15729 \end_inset
15730
15731  [
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736 0
15737 \end_layout
15738
15739 \end_inset
15740
15741 ,
15742 \begin_inset space \thinspace{}
15743 \end_inset
15744
15745
15746 \begin_inset Flex Code
15747 status collapsed
15748
15749 \begin_layout Plain Layout
15750 1
15751 \end_layout
15752
15753 \end_inset
15754
15755 ] Determines whether consecutive paragraphs of the same type are treated
15756  as belonging together.
15757  This has the effect that the 
15758 \begin_inset Flex Code
15759 status collapsed
15760
15761 \begin_layout Plain Layout
15762 GuiLabel
15763 \end_layout
15764
15765 \end_inset
15766
15767  is only printed once before such a group.
15768  By default, this is true for 
15769 \begin_inset Flex Code
15770 status collapsed
15771
15772 \begin_layout Plain Layout
15773 LaTeXType
15774 \end_layout
15775
15776 \end_inset
15777
15778  
15779 \begin_inset Flex Code
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 Environment
15784 \end_layout
15785
15786 \end_inset
15787
15788  and 
15789 \begin_inset Flex Code
15790 status collapsed
15791
15792 \begin_layout Plain Layout
15793 Bib_Environment
15794 \end_layout
15795
15796 \end_inset
15797
15798  and false for all other types.
15799 \end_layout
15800
15801 \begin_layout Description
15802 \begin_inset Flex Code
15803 status collapsed
15804
15805 \begin_layout Plain Layout
15806 ParbreakIsNewline
15807 \end_layout
15808
15809 \end_inset
15810
15811  [
15812 \begin_inset Flex Code
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816
15817 \emph on
15818 0
15819 \end_layout
15820
15821 \end_inset
15822
15823 ,
15824 \begin_inset space \thinspace{}
15825 \end_inset
15826
15827
15828 \begin_inset Flex Code
15829 status collapsed
15830
15831 \begin_layout Plain Layout
15832 1
15833 \end_layout
15834
15835 \end_inset
15836
15837 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15838  output,
15839  but only by a line break; together with 
15840 \begin_inset Flex Code
15841 status collapsed
15842
15843 \begin_layout Plain Layout
15844 PassThru 1
15845 \end_layout
15846
15847 \end_inset
15848
15849 , this allows to emulate a plain text editor (like the ERT inset).
15850 \end_layout
15851
15852 \begin_layout Description
15853 \begin_inset Flex Code
15854 status collapsed
15855
15856 \begin_layout Plain Layout
15857 ParIndent
15858 \end_layout
15859
15860 \end_inset
15861
15862  [
15863 \begin_inset Flex Code
15864 status collapsed
15865
15866 \begin_layout Plain Layout
15867 string=""
15868 \end_layout
15869
15870 \end_inset
15871
15872 ] The indent of the very first line of a paragraph.
15873  The
15874 \begin_inset Newline newline
15875 \end_inset
15876
15877
15878 \begin_inset Flex Code
15879 status collapsed
15880
15881 \begin_layout Plain Layout
15882 Parindent
15883 \end_layout
15884
15885 \end_inset
15886
15887  will be fixed for a certain style.
15888  The exception is the default style, since the indentation for these paragraphs
15889  can be prohibited with 
15890 \begin_inset Flex Code
15891 status collapsed
15892
15893 \begin_layout Plain Layout
15894 NextNoIndent
15895 \end_layout
15896
15897 \end_inset
15898
15899 .
15900  Also, 
15901 \begin_inset Flex Code
15902 status collapsed
15903
15904 \begin_layout Plain Layout
15905 Standard
15906 \end_layout
15907
15908 \end_inset
15909
15910  style paragraphs inside environments use the 
15911 \begin_inset Flex Code
15912 status collapsed
15913
15914 \begin_layout Plain Layout
15915 Parindent
15916 \end_layout
15917
15918 \end_inset
15919
15920  of the environment, not their native one.
15921  For example, 
15922 \begin_inset Flex Code
15923 status collapsed
15924
15925 \begin_layout Plain Layout
15926 Standard
15927 \end_layout
15928
15929 \end_inset
15930
15931  paragraphs inside an enumeration are not indented.
15932 \end_layout
15933
15934 \begin_layout Description
15935 \begin_inset Flex Code
15936 status collapsed
15937
15938 \begin_layout Plain Layout
15939 ParSep
15940 \end_layout
15941
15942 \end_inset
15943
15944  [
15945 \begin_inset Flex Code
15946 status collapsed
15947
15948 \begin_layout Plain Layout
15949 float=0
15950 \end_layout
15951
15952 \end_inset
15953
15954 ] The vertical space between two paragraphs of this style.
15955 \end_layout
15956
15957 \begin_layout Description
15958 \begin_inset Flex Code
15959 status collapsed
15960
15961 \begin_layout Plain Layout
15962 Parskip
15963 \end_layout
15964
15965 \end_inset
15966
15967  [
15968 \begin_inset Flex Code
15969 status collapsed
15970
15971 \begin_layout Plain Layout
15972 float=0
15973 \end_layout
15974
15975 \end_inset
15976
15977 ] \SpecialChar LyX
15978  allows the user to choose either 
15979 \begin_inset Quotes eld
15980 \end_inset
15981
15982 indent
15983 \begin_inset Quotes erd
15984 \end_inset
15985
15986  or 
15987 \begin_inset Quotes eld
15988 \end_inset
15989
15990 skip
15991 \begin_inset Quotes erd
15992 \end_inset
15993
15994  to separate paragraphs.
15995  When 
15996 \begin_inset Quotes eld
15997 \end_inset
15998
15999 indent
16000 \begin_inset Quotes erd
16001 \end_inset
16002
16003  is chosen, 
16004 \begin_inset Flex Code
16005 status collapsed
16006
16007 \begin_layout Plain Layout
16008 Parskip
16009 \end_layout
16010
16011 \end_inset
16012
16013  is ignored.
16014  When 
16015 \begin_inset Quotes eld
16016 \end_inset
16017
16018 skip
16019 \begin_inset Quotes erd
16020 \end_inset
16021
16022  is chosen, 
16023 \begin_inset Flex Code
16024 status collapsed
16025
16026 \begin_layout Plain Layout
16027 ParIndent
16028 \end_layout
16029
16030 \end_inset
16031
16032  is ignored and all paragraphs are separated by the 
16033 \begin_inset Flex Code
16034 status collapsed
16035
16036 \begin_layout Plain Layout
16037 Parskip
16038 \end_layout
16039
16040 \end_inset
16041
16042  argument.
16043  The vertical space is calculated with 
16044 \begin_inset Flex Code
16045 status collapsed
16046
16047 \begin_layout Plain Layout
16048 Parskip
16049 \begin_inset space ~
16050 \end_inset
16051
16052 * DefaultHeight
16053 \end_layout
16054
16055 \end_inset
16056
16057  where 
16058 \begin_inset Flex Code
16059 status collapsed
16060
16061 \begin_layout Plain Layout
16062 DefaultHeight
16063 \end_layout
16064
16065 \end_inset
16066
16067  is the height of a row with the normal font.
16068  This way, the look stays the same with different screen fonts.
16069 \end_layout
16070
16071 \begin_layout Description
16072 \begin_inset Flex Code
16073 status collapsed
16074
16075 \begin_layout Plain Layout
16076 PassThru
16077 \end_layout
16078
16079 \end_inset
16080
16081  [
16082 \begin_inset Flex Code
16083 status collapsed
16084
16085 \begin_layout Plain Layout
16086
16087 \emph on
16088 0
16089 \end_layout
16090
16091 \end_inset
16092
16093 ,
16094 \begin_inset space \thinspace{}
16095 \end_inset
16096
16097
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 1
16103 \end_layout
16104
16105 \end_inset
16106
16107 ] Whether the contents of this paragraph should be output in raw form, meaning
16108  without special translations that \SpecialChar LaTeX
16109  would require.
16110 \end_layout
16111
16112 \begin_layout Description
16113 \begin_inset Flex Code
16114 status collapsed
16115
16116 \begin_layout Plain Layout
16117 PassThruChars
16118 \end_layout
16119
16120 \end_inset
16121
16122  [
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 string
16128 \end_layout
16129
16130 \end_inset
16131
16132 ]
16133 \family typewriter
16134  
16135 \family default
16136 Defines individual characters that should be output in raw form, meaning
16137  without special translations that \SpecialChar LaTeX
16138  would require.
16139 \end_layout
16140
16141 \begin_layout Description
16142 \begin_inset Flex Code
16143 status collapsed
16144
16145 \begin_layout Plain Layout
16146 Preamble
16147 \end_layout
16148
16149 \end_inset
16150
16151  Information to be included in the \SpecialChar LaTeX
16152  preamble when this style is used.
16153  Used to define macros, load packages, etc., required by this particular
16154  style.
16155  Must end with 
16156 \begin_inset Quotes eld
16157 \end_inset
16158
16159
16160 \begin_inset Flex Code
16161 status collapsed
16162
16163 \begin_layout Plain Layout
16164 EndPreamble
16165 \end_layout
16166
16167 \end_inset
16168
16169
16170 \begin_inset Quotes erd
16171 \end_inset
16172
16173 .
16174 \end_layout
16175
16176 \begin_layout Description
16177 \begin_inset Flex Code
16178 status collapsed
16179
16180 \begin_layout Plain Layout
16181 RefPrefix
16182 \end_layout
16183
16184 \end_inset
16185
16186  [
16187 \begin_inset Flex Code
16188 status collapsed
16189
16190 \begin_layout Plain Layout
16191 string
16192 \end_layout
16193
16194 \end_inset
16195
16196 ] The prefix to use when creating labels referring to paragraphs of this
16197  type.
16198  This allows the use of formatted references.
16199 \end_layout
16200
16201 \begin_layout Description
16202 \begin_inset Flex Code
16203 status collapsed
16204
16205 \begin_layout Plain Layout
16206 Requires 
16207 \end_layout
16208
16209 \end_inset
16210
16211  [
16212 \begin_inset Flex Code
16213 status collapsed
16214
16215 \begin_layout Plain Layout
16216 string
16217 \end_layout
16218
16219 \end_inset
16220
16221 ] Whether the style requires the feature 
16222 \begin_inset Flex Code
16223 status collapsed
16224
16225 \begin_layout Plain Layout
16226 string
16227 \end_layout
16228
16229 \end_inset
16230
16231  (see 
16232 \begin_inset CommandInset ref
16233 LatexCommand ref
16234 reference "chap:List-of-functions"
16235
16236 \end_inset
16237
16238  for the list of features).
16239  If you require a package with specific options, you can additionally use
16240  
16241 \begin_inset Flex Code
16242 status collapsed
16243
16244 \begin_layout Plain Layout
16245 PackageOptions
16246 \end_layout
16247
16248 \end_inset
16249
16250  as a general text class parameter (see 
16251 \begin_inset CommandInset ref
16252 LatexCommand ref
16253 reference "subsec:General-text-class"
16254
16255 \end_inset
16256
16257 ).
16258 \end_layout
16259
16260 \begin_layout Description
16261 \begin_inset Flex Code
16262 status collapsed
16263
16264 \begin_layout Plain Layout
16265 ResetArgs
16266 \end_layout
16267
16268 \end_inset
16269
16270  [
16271 \begin_inset Flex Code
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275
16276 \emph on
16277 0
16278 \end_layout
16279
16280 \end_inset
16281
16282 ,
16283 \begin_inset Flex Code
16284 status collapsed
16285
16286 \begin_layout Plain Layout
16287 1
16288 \end_layout
16289
16290 \end_inset
16291
16292 ] Resets the \SpecialChar LaTeX
16293  arguments of this style (as defined via the 
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 Argument
16299 \end_layout
16300
16301 \end_inset
16302
16303  tag).
16304  This is useful if you have copied a style via 
16305 \begin_inset Flex Code
16306 status collapsed
16307
16308 \begin_layout Plain Layout
16309 CopyStyle
16310 \end_layout
16311
16312 \end_inset
16313
16314 , but you do not want to inherit its (required and optional) arguments.
16315 \end_layout
16316
16317 \begin_layout Description
16318 \begin_inset Flex Code
16319 status collapsed
16320
16321 \begin_layout Plain Layout
16322 ResumeCounter
16323 \end_layout
16324
16325 \end_inset
16326
16327  [
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332
16333 \emph on
16334 0
16335 \end_layout
16336
16337 \end_inset
16338
16339 ,
16340 \begin_inset Flex Code
16341 status collapsed
16342
16343 \begin_layout Plain Layout
16344 1
16345 \end_layout
16346
16347 \end_inset
16348
16349 ] Resumes a counter that is usually reset at each new sequence of layouts.
16350  This is currently only useful when 
16351 \begin_inset Flex Code
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 LabelType
16356 \end_layout
16357
16358 \end_inset
16359
16360  is 
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 Enumerate
16366 \end_layout
16367
16368 \end_inset
16369
16370 .
16371 \end_layout
16372
16373 \begin_layout Description
16374 \begin_inset Flex Code
16375 status collapsed
16376
16377 \begin_layout Plain Layout
16378 RightDelim
16379 \end_layout
16380
16381 \end_inset
16382
16383  [
16384 \begin_inset Flex Code
16385 status collapsed
16386
16387 \begin_layout Plain Layout
16388 string
16389 \end_layout
16390
16391 \end_inset
16392
16393 ] A string that is put at the end of the layout content.
16394  A line break in the output can be indicated by 
16395 \begin_inset Flex Code
16396 status collapsed
16397
16398 \begin_layout Plain Layout
16399 <br/>
16400 \end_layout
16401
16402 \end_inset
16403
16404 .
16405 \end_layout
16406
16407 \begin_layout Description
16408 \begin_inset Flex Code
16409 status collapsed
16410
16411 \begin_layout Plain Layout
16412 RightMargin
16413 \end_layout
16414
16415 \end_inset
16416
16417  [
16418 \begin_inset Flex Code
16419 status collapsed
16420
16421 \begin_layout Plain Layout
16422 string=""
16423 \end_layout
16424
16425 \end_inset
16426
16427 ] Similar to 
16428 \begin_inset Flex Code
16429 status collapsed
16430
16431 \begin_layout Plain Layout
16432 LeftMargin
16433 \end_layout
16434
16435 \end_inset
16436
16437 .
16438 \end_layout
16439
16440 \begin_layout Description
16441 \begin_inset Flex Code
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445 Spacing
16446 \end_layout
16447
16448 \end_inset
16449
16450  [
16451 \begin_inset Flex Code
16452 status collapsed
16453
16454 \begin_layout Plain Layout
16455
16456 \emph on
16457 single
16458 \end_layout
16459
16460 \end_inset
16461
16462
16463 \begin_inset Flex Code
16464 status collapsed
16465
16466 \begin_layout Plain Layout
16467 onehalf
16468 \end_layout
16469
16470 \end_inset
16471
16472
16473 \begin_inset Flex Code
16474 status collapsed
16475
16476 \begin_layout Plain Layout
16477 double
16478 \end_layout
16479
16480 \end_inset
16481
16482
16483 \begin_inset Flex Code
16484 status collapsed
16485
16486 \begin_layout Plain Layout
16487 other
16488 \begin_inset space ~
16489 \end_inset
16490
16491 <value>
16492 \end_layout
16493
16494 \end_inset
16495
16496 ] This defines what the default spacing should be in the style.
16497  The arguments 
16498 \begin_inset Flex Code
16499 status collapsed
16500
16501 \begin_layout Plain Layout
16502 single
16503 \end_layout
16504
16505 \end_inset
16506
16507
16508 \begin_inset Flex Code
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512 onehalf
16513 \end_layout
16514
16515 \end_inset
16516
16517  and 
16518 \begin_inset Flex Code
16519 status collapsed
16520
16521 \begin_layout Plain Layout
16522 double
16523 \end_layout
16524
16525 \end_inset
16526
16527  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16528  If you specify the argument 
16529 \begin_inset Flex Code
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533 other
16534 \end_layout
16535
16536 \end_inset
16537
16538 , then you must also provide a value argument which will be the actual multiplie
16539 r value.
16540  Note that, contrary to other parameters, 
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545 Spacing
16546 \end_layout
16547
16548 \end_inset
16549
16550  implies the generation of specific \SpecialChar LaTeX
16551  code, using the \SpecialChar LaTeX
16552  package 
16553 \family roman
16554
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559 setspace
16560 \end_layout
16561
16562 \end_inset
16563
16564 .
16565 \end_layout
16566
16567 \begin_layout Description
16568 \begin_inset Flex Code
16569 status collapsed
16570
16571 \begin_layout Plain Layout
16572 Spellcheck
16573 \end_layout
16574
16575 \end_inset
16576
16577  [
16578 \begin_inset Flex Code
16579 status collapsed
16580
16581 \begin_layout Plain Layout
16582 0
16583 \end_layout
16584
16585 \end_inset
16586
16587 ,
16588 \begin_inset space \thinspace{}
16589 \end_inset
16590
16591
16592 \begin_inset Flex Code
16593 status collapsed
16594
16595 \begin_layout Plain Layout
16596
16597 \emph on
16598 1
16599 \end_layout
16600
16601 \end_inset
16602
16603 ] Allow spell-checking paragraphs of this style.
16604  Default is true.
16605 \end_layout
16606
16607 \begin_layout Description
16608 \begin_inset Flex Code
16609 status collapsed
16610
16611 \begin_layout Plain Layout
16612 StepMasterCounter
16613 \end_layout
16614
16615 \end_inset
16616
16617  [
16618 \begin_inset Flex Code
16619 status collapsed
16620
16621 \begin_layout Plain Layout
16622
16623 \emph on
16624 0
16625 \end_layout
16626
16627 \end_inset
16628
16629 ,
16630 \begin_inset Flex Code
16631 status collapsed
16632
16633 \begin_layout Plain Layout
16634 1
16635 \end_layout
16636
16637 \end_inset
16638
16639 ] Steps the master counter of a given counter at the beginning of a new
16640  sequence of layouts.
16641  This is currently only useful when 
16642 \begin_inset Flex Code
16643 status collapsed
16644
16645 \begin_layout Plain Layout
16646 LabelType
16647 \end_layout
16648
16649 \end_inset
16650
16651  is 
16652 \begin_inset Flex Code
16653 status collapsed
16654
16655 \begin_layout Plain Layout
16656 Enumerate
16657 \end_layout
16658
16659 \end_inset
16660
16661 .
16662 \end_layout
16663
16664 \begin_layout Description
16665 \begin_inset Flex Code
16666 status collapsed
16667
16668 \begin_layout Plain Layout
16669 TextFont
16670 \end_layout
16671
16672 \end_inset
16673
16674  The font used for the text body .
16675  See 
16676 \begin_inset CommandInset ref
16677 LatexCommand ref
16678 reference "subsec:Font-description"
16679
16680 \end_inset
16681
16682 .
16683 \end_layout
16684
16685 \begin_layout Description
16686 \begin_inset Flex Code
16687 status collapsed
16688
16689 \begin_layout Plain Layout
16690 TocLevel
16691 \end_layout
16692
16693 \end_inset
16694
16695
16696 \series medium
16697  [
16698 \begin_inset Flex Code
16699 status collapsed
16700
16701 \begin_layout Plain Layout
16702
16703 \series medium
16704 int=3
16705 \end_layout
16706
16707 \end_inset
16708
16709 ]
16710 \series default
16711  The level of the style in the table of contents.
16712  This is used for automatic numbering of section headings.
16713 \end_layout
16714
16715 \begin_layout Description
16716 \begin_inset Flex Code
16717 status collapsed
16718
16719 \begin_layout Plain Layout
16720 ToggleIndent
16721 \end_layout
16722
16723 \end_inset
16724
16725  [
16726 \emph on
16727
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732
16733 \emph on
16734 default
16735 \end_layout
16736
16737 \end_inset
16738
16739
16740 \emph default
16741
16742 \begin_inset Flex Code
16743 status collapsed
16744
16745 \begin_layout Plain Layout
16746 always
16747 \end_layout
16748
16749 \end_inset
16750
16751
16752 \begin_inset Flex Code
16753 status collapsed
16754
16755 \begin_layout Plain Layout
16756 never
16757 \end_layout
16758
16759 \end_inset
16760
16761 ] This tag determines whether the first line indentation of this paragraph
16762  can be toggled via the Paragraph settings dialog.
16763  If 
16764 \emph on
16765
16766 \begin_inset Flex Code
16767 status collapsed
16768
16769 \begin_layout Plain Layout
16770
16771 \emph off
16772 default
16773 \end_layout
16774
16775 \end_inset
16776
16777
16778 \emph default
16779  is set, indentation can be toggled if the document settings use 
16780 \begin_inset Quotes eld
16781 \end_inset
16782
16783 indent
16784 \begin_inset Quotes erd
16785 \end_inset
16786
16787  paragraph style, with 
16788 \begin_inset Flex Code
16789 status collapsed
16790
16791 \begin_layout Plain Layout
16792 always
16793 \end_layout
16794
16795 \end_inset
16796
16797 , indentation can always be toggled, notwithstanding the document settings,
16798  with 
16799 \begin_inset Flex Code
16800 status collapsed
16801
16802 \begin_layout Plain Layout
16803 never
16804 \end_layout
16805
16806 \end_inset
16807
16808 , indentation can never be toggled.
16809 \end_layout
16810
16811 \begin_layout Description
16812 \begin_inset Flex Code
16813 status collapsed
16814
16815 \begin_layout Plain Layout
16816 TopSep
16817 \end_layout
16818
16819 \end_inset
16820
16821  [
16822 \begin_inset Flex Code
16823 status collapsed
16824
16825 \begin_layout Plain Layout
16826 float=0
16827 \end_layout
16828
16829 \end_inset
16830
16831 ] The vertical space with which the very first of a chain of paragraphs
16832  with this style is separated from the previous paragraph.
16833  If the previous paragraph has another style, the separations are not simply
16834  added, but the maximum is taken.
16835 \end_layout
16836
16837 \begin_layout Subsection
16838 \begin_inset CommandInset label
16839 LatexCommand label
16840 name "subsec:I18n"
16841
16842 \end_inset
16843
16844 Internationalization of Paragraph Styles
16845 \end_layout
16846
16847 \begin_layout Standard
16848 \SpecialChar LyX
16849  has long supported internationalization of layout information, but, until
16850  version 2.0, this applied only to the user interface and not to, say, PDF
16851  output.
16852  Thus, French authors were forced to resort to ugly hacks if they wanted
16853  `
16854 \lang french
16855 Théorème
16856 \lang english
16857  1' instead of `Theorem 1'.
16858  Thanks to Georg Baum, that is no longer the case.
16859 \end_layout
16860
16861 \begin_layout Standard
16862 If a 
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867 Style
16868 \end_layout
16869
16870 \end_inset
16871
16872  defines text that is to appear in the typeset document, it may use 
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877 LangPreamble
16878 \end_layout
16879
16880 \end_inset
16881
16882  and 
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 BabelPreamble
16888 \end_layout
16889
16890 \end_inset
16891
16892  to support non-English and even multi-language documents correctly.
16893  The following excerpt (from the 
16894 \begin_inset Flex Code
16895 status collapsed
16896
16897 \begin_layout Plain Layout
16898 theorems-ams.inc
16899 \end_layout
16900
16901 \end_inset
16902
16903  file) shows how this works:
16904 \end_layout
16905
16906 \begin_layout LyX-Code
16907 Preamble
16908 \end_layout
16909
16910 \begin_deeper
16911 \begin_layout LyX-Code
16912   
16913 \backslash
16914 theoremstyle{remark}
16915 \end_layout
16916
16917 \begin_layout LyX-Code
16918   
16919 \backslash
16920 newtheorem{claim}[thm]{
16921 \backslash
16922 protect
16923 \backslash
16924 claimname}
16925 \end_layout
16926
16927 \begin_layout LyX-Code
16928 EndPreamble
16929 \end_layout
16930
16931 \begin_layout LyX-Code
16932 LangPreamble
16933 \end_layout
16934
16935 \begin_layout LyX-Code
16936   
16937 \backslash
16938 providecommand{
16939 \backslash
16940 claimname}{_(Claim)}
16941 \end_layout
16942
16943 \begin_layout LyX-Code
16944 EndLangPreamble
16945 \end_layout
16946
16947 \begin_layout LyX-Code
16948 BabelPreamble
16949 \end_layout
16950
16951 \begin_layout LyX-Code
16952     
16953 \backslash
16954 addto
16955 \backslash
16956 captions$$lang{
16957 \backslash
16958 renewcommand{
16959 \backslash
16960 claimname}{_(Claim)}}
16961 \end_layout
16962
16963 \begin_layout LyX-Code
16964 EndBabelPreamble
16965 \end_layout
16966
16967 \end_deeper
16968 \begin_layout Standard
16969 In principle, any legal \SpecialChar LaTeX
16970  may appear in the 
16971 \begin_inset Flex Code
16972 status collapsed
16973
16974 \begin_layout Plain Layout
16975 LangPreamble
16976 \end_layout
16977
16978 \end_inset
16979
16980  and 
16981 \begin_inset Flex Code
16982 status collapsed
16983
16984 \begin_layout Plain Layout
16985 BabelPreamble
16986 \end_layout
16987
16988 \end_inset
16989
16990  tags, but in practice they will typically look as they do here.
16991  The key to correct translation of the typeset text is the definition of
16992  the \SpecialChar LaTeX
16993  command 
16994 \begin_inset Flex Code
16995 status collapsed
16996
16997 \begin_layout Plain Layout
16998
16999 \backslash
17000 claimname
17001 \end_layout
17002
17003 \end_inset
17004
17005  and its use in 
17006 \begin_inset Flex Code
17007 status collapsed
17008
17009 \begin_layout Plain Layout
17010
17011 \backslash
17012 newtheorem
17013 \end_layout
17014
17015 \end_inset
17016
17017 .
17018  
17019 \end_layout
17020
17021 \begin_layout Standard
17022 The 
17023 \begin_inset Flex Code
17024 status collapsed
17025
17026 \begin_layout Plain Layout
17027 LangPreamble
17028 \end_layout
17029
17030 \end_inset
17031
17032  tag provides for internationalization based upon the overall language of
17033  the document.
17034  The contents of the tag will be included in the preamble, just as with
17035  the 
17036 \begin_inset Flex Code
17037 status collapsed
17038
17039 \begin_layout Plain Layout
17040 Preamble
17041 \end_layout
17042
17043 \end_inset
17044
17045  tag.
17046  What makes it special is the use of the 
17047 \begin_inset Quotes eld
17048 \end_inset
17049
17050 function
17051 \begin_inset Quotes erd
17052 \end_inset
17053
17054  
17055 \begin_inset Flex Code
17056 status collapsed
17057
17058 \begin_layout Plain Layout
17059 _()
17060 \end_layout
17061
17062 \end_inset
17063
17064 , which will be replaced, when \SpecialChar LyX
17065  produces \SpecialChar LaTeX
17066  output, with the translation of
17067  its argument into the document language.
17068 \end_layout
17069
17070 \begin_layout Standard
17071 The 
17072 \begin_inset Flex Code
17073 status collapsed
17074
17075 \begin_layout Plain Layout
17076 BabelPreamble
17077 \end_layout
17078
17079 \end_inset
17080
17081  tag is more complex, since it is meant to provide support for multi-language
17082  documents and so offers an interface to the 
17083 \begin_inset Flex Code
17084 status collapsed
17085
17086 \begin_layout Plain Layout
17087 babel
17088 \end_layout
17089
17090 \end_inset
17091
17092  package.
17093  Its contents will be added to the preamble once for each language that
17094  appears in the document.
17095  In this case, the argument to 
17096 \begin_inset Flex Code
17097 status collapsed
17098
17099 \begin_layout Plain Layout
17100 _()
17101 \end_layout
17102
17103 \end_inset
17104
17105  will be replaced with its translation into the language in question; the
17106  expression 
17107 \begin_inset Flex Code
17108 status collapsed
17109
17110 \begin_layout Plain Layout
17111 $$lang
17112 \end_layout
17113
17114 \end_inset
17115
17116  is replaced by the language name (as used by the babel package).
17117 \end_layout
17118
17119 \begin_layout Standard
17120 A German document that also included a French section would thus have the
17121  following in the preamble:
17122 \end_layout
17123
17124 \begin_layout LyX-Code
17125
17126 \backslash
17127 addto
17128 \backslash
17129 captionsfrench{
17130 \backslash
17131 renewcommand{
17132 \backslash
17133 claimname}{Affirmation}}
17134 \begin_inset Newline newline
17135 \end_inset
17136
17137
17138 \backslash
17139 addto
17140 \backslash
17141 captionsngerman{
17142 \backslash
17143 renewcommand{
17144 \backslash
17145 claimname}{Behauptung}}
17146 \begin_inset Newline newline
17147 \end_inset
17148
17149
17150 \backslash
17151 providecommand{
17152 \backslash
17153 claimname}{Behauptung}
17154 \end_layout
17155
17156 \begin_layout Standard
17157 \SpecialChar LaTeX
17158  and 
17159 \begin_inset Flex Code
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163 babel
17164 \end_layout
17165
17166 \end_inset
17167
17168  will then conspire to produce the correct text in the output.
17169 \end_layout
17170
17171 \begin_layout Standard
17172 One important point to note here is that the translations are provided by
17173  \SpecialChar LyX
17174  itself, through the file 
17175 \begin_inset Flex Code
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 layouttranslations
17180 \end_layout
17181
17182 \end_inset
17183
17184 .
17185  This means, in effect, that 
17186 \begin_inset Flex Code
17187 status collapsed
17188
17189 \begin_layout Plain Layout
17190 LangPreamble
17191 \end_layout
17192
17193 \end_inset
17194
17195  and 
17196 \begin_inset Flex Code
17197 status collapsed
17198
17199 \begin_layout Plain Layout
17200 BabelPreamble
17201 \end_layout
17202
17203 \end_inset
17204
17205  are really only of use in layout files that are provided with \SpecialChar LyX
17206 , since text
17207  entered in user-created layout files will not be seen by \SpecialChar LyX
17208 's internationalizatio
17209 n routines unless the 
17210 \begin_inset Flex Code
17211 status collapsed
17212
17213 \begin_layout Plain Layout
17214 layouttranslations
17215 \end_layout
17216
17217 \end_inset
17218
17219  file is modified accordingly.
17220  That said, however, any layout created with the intention that it will
17221  be included with \SpecialChar LyX
17222  should use these tags where appropriate.
17223  Please note that the paragraph style translations provided by \SpecialChar LyX
17224  will never
17225  change with a minor update (e.
17226 \begin_inset space \thinspace{}
17227 \end_inset
17228
17229 g.
17230 \begin_inset space \space{}
17231 \end_inset
17232
17233 from version 2.1.x to 2.1.y).
17234  It is however quite likely that a major update (e.
17235 \begin_inset space \thinspace{}
17236 \end_inset
17237
17238 g.
17239 \begin_inset space \space{}
17240 \end_inset
17241
17242 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17243 \end_layout
17244
17245 \begin_layout Subsection
17246 Floats
17247 \begin_inset CommandInset label
17248 LatexCommand label
17249 name "subsec:Floats"
17250
17251 \end_inset
17252
17253
17254 \end_layout
17255
17256 \begin_layout Standard
17257 It is necessary to define the floats (
17258 \begin_inset Flex Noun
17259 status collapsed
17260
17261 \begin_layout Plain Layout
17262 figure
17263 \end_layout
17264
17265 \end_inset
17266
17267
17268 \begin_inset Flex Noun
17269 status collapsed
17270
17271 \begin_layout Plain Layout
17272 table
17273 \end_layout
17274
17275 \end_inset
17276
17277 , \SpecialChar ldots
17278 ) in the text class itself.
17279  Standard floats are included in the file 
17280 \begin_inset Flex Code
17281 status collapsed
17282
17283 \begin_layout Plain Layout
17284 stdfloats.inc
17285 \end_layout
17286
17287 \end_inset
17288
17289 , so you may have to do no more than add
17290 \end_layout
17291
17292 \begin_layout LyX-Code
17293 Input stdfloats.inc
17294 \end_layout
17295
17296 \begin_layout Standard
17297 to your layout file.
17298  If you want to implement a text class that proposes some other float types
17299  (like the AGU class bundled with \SpecialChar LyX
17300 ), the information below will hopefully
17301  help you:
17302 \end_layout
17303
17304 \begin_layout Description
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309 AllowedPlacement
17310 \end_layout
17311
17312 \end_inset
17313
17314  [
17315 \begin_inset Flex Code
17316 status collapsed
17317
17318 \begin_layout Plain Layout
17319 string
17320 \end_layout
17321
17322 \end_inset
17323
17324 =!htbpH] Allowed placement options for this float type.
17325  The value is a string of placement characters.
17326  Possible characters include: 
17327 \emph on
17328 h
17329 \emph default
17330  (
17331 \begin_inset Quotes eld
17332 \end_inset
17333
17334 here if possible
17335 \begin_inset Quotes erd
17336 \end_inset
17337
17338 ), 
17339 \emph on
17340 t
17341 \emph default
17342  (
17343 \begin_inset Quotes eld
17344 \end_inset
17345
17346 top of page
17347 \begin_inset Quotes erd
17348 \end_inset
17349
17350 ), 
17351 \emph on
17352 b
17353 \emph default
17354  (
17355 \begin_inset Quotes eld
17356 \end_inset
17357
17358 bottom of page
17359 \begin_inset Quotes erd
17360 \end_inset
17361
17362 ), 
17363 \emph on
17364 p
17365 \emph default
17366  (
17367 \begin_inset Quotes eld
17368 \end_inset
17369
17370 page of floats
17371 \begin_inset Quotes erd
17372 \end_inset
17373
17374 ), 
17375 \emph on
17376 H
17377 \emph default
17378  (
17379 \begin_inset Quotes eld
17380 \end_inset
17381
17382 here definitely
17383 \begin_inset Quotes erd
17384 \end_inset
17385
17386 ) and 
17387 \emph on
17388 !
17389 \emph default
17390  (
17391 \begin_inset Quotes eld
17392 \end_inset
17393
17394 ignore LaTeX rules
17395 \begin_inset Quotes erd
17396 \end_inset
17397
17398 ).
17399  The order of the characters in the string does not matter.
17400  If no placement options are allowed, use the string 
17401 \emph on
17402 none
17403 \emph default
17404 .
17405 \end_layout
17406
17407 \begin_layout Description
17408 \begin_inset Flex Code
17409 status collapsed
17410
17411 \begin_layout Plain Layout
17412 AllowsSideways
17413 \end_layout
17414
17415 \end_inset
17416
17417  [
17418 \begin_inset Flex Code
17419 status collapsed
17420
17421 \begin_layout Plain Layout
17422
17423 \emph off
17424 0
17425 \end_layout
17426
17427 \end_inset
17428
17429 ,
17430 \begin_inset space \thinspace{}
17431 \end_inset
17432
17433
17434 \emph on
17435
17436 \begin_inset Flex Code
17437 status collapsed
17438
17439 \begin_layout Plain Layout
17440
17441 \emph on
17442 1
17443 \end_layout
17444
17445 \end_inset
17446
17447
17448 \emph default
17449 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17450 -package 
17451 \family typewriter
17452 rotfloat
17453 \family default
17454  (sidewaysfloat).
17455  Set to 
17456 \begin_inset Flex Code
17457 status collapsed
17458
17459 \begin_layout Plain Layout
17460 0
17461 \end_layout
17462
17463 \end_inset
17464
17465  if the float does not support this feature.
17466 \end_layout
17467
17468 \begin_layout Description
17469 \begin_inset Flex Code
17470 status collapsed
17471
17472 \begin_layout Plain Layout
17473 AllowsWide
17474 \end_layout
17475
17476 \end_inset
17477
17478  [
17479 \begin_inset Flex Code
17480 status collapsed
17481
17482 \begin_layout Plain Layout
17483
17484 \emph off
17485 0
17486 \end_layout
17487
17488 \end_inset
17489
17490 ,
17491 \begin_inset space \thinspace{}
17492 \end_inset
17493
17494
17495 \emph on
17496
17497 \begin_inset Flex Code
17498 status collapsed
17499
17500 \begin_layout Plain Layout
17501
17502 \emph on
17503 1
17504 \end_layout
17505
17506 \end_inset
17507
17508
17509 \emph default
17510 ] Defines whether the float has a starred variant that spans columns in
17511  a two column paragraph.
17512  Set to 
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517 0
17518 \end_layout
17519
17520 \end_inset
17521
17522  if the float does not support this feature.
17523 \end_layout
17524
17525 \begin_layout Description
17526 \begin_inset Flex Code
17527 status collapsed
17528
17529 \begin_layout Plain Layout
17530 Extension
17531 \end_layout
17532
17533 \end_inset
17534
17535  [
17536 \begin_inset Flex Code
17537 status collapsed
17538
17539 \begin_layout Plain Layout
17540 string
17541 \end_layout
17542
17543 \end_inset
17544
17545 =
17546 \begin_inset Quotes erd
17547 \end_inset
17548
17549
17550 \begin_inset Quotes erd
17551 \end_inset
17552
17553 ] The file name extension of an auxiliary file for the list of figures (or
17554  whatever).
17555  \SpecialChar LaTeX
17556  writes the captions to this file.
17557 \end_layout
17558
17559 \begin_layout Description
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 GuiName
17565 \end_layout
17566
17567 \end_inset
17568
17569  [
17570 \begin_inset Flex Code
17571 status collapsed
17572
17573 \begin_layout Plain Layout
17574 string
17575 \end_layout
17576
17577 \end_inset
17578
17579 =
17580 \begin_inset Quotes erd
17581 \end_inset
17582
17583
17584 \begin_inset Quotes erd
17585 \end_inset
17586
17587 ] The string that will be used in the menus and also for the caption.
17588  This is translated to the current language if babel is used.
17589 \end_layout
17590
17591 \begin_layout Description
17592 \begin_inset Flex Code
17593 status collapsed
17594
17595 \begin_layout Plain Layout
17596 HTML*
17597 \end_layout
17598
17599 \end_inset
17600
17601  These tags control the XHTML output.
17602  See 
17603 \begin_inset CommandInset ref
17604 LatexCommand ref
17605 reference "sec:Tags-for-XHTML"
17606
17607 \end_inset
17608
17609 .
17610 \end_layout
17611
17612 \begin_layout Description
17613 \begin_inset Flex Code
17614 status collapsed
17615
17616 \begin_layout Plain Layout
17617 IsPredefined
17618 \end_layout
17619
17620 \end_inset
17621
17622  [
17623 \emph on
17624
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 0
17630 \end_layout
17631
17632 \end_inset
17633
17634
17635 \emph default
17636 ,
17637 \begin_inset space \thinspace{}
17638 \end_inset
17639
17640
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645 1
17646 \end_layout
17647
17648 \end_inset
17649
17650 ] Indicates whether the float is already defined in the document class or
17651  if instead the \SpecialChar LaTeX
17652  package 
17653 \begin_inset Flex Code
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657 float
17658 \end_layout
17659
17660 \end_inset
17661
17662  needs to be loaded to define it on-the-fly.
17663  The default is 
17664 \begin_inset Flex Code
17665 status collapsed
17666
17667 \begin_layout Plain Layout
17668 0
17669 \end_layout
17670
17671 \end_inset
17672
17673 , which means: 
17674 \begin_inset Flex Code
17675 status collapsed
17676
17677 \begin_layout Plain Layout
17678 float
17679 \end_layout
17680
17681 \end_inset
17682
17683  is used.
17684  It should be set to 
17685 \begin_inset Flex Code
17686 status collapsed
17687
17688 \begin_layout Plain Layout
17689 1
17690 \end_layout
17691
17692 \end_inset
17693
17694  if the float is already defined by the \SpecialChar LaTeX
17695  document class.
17696 \end_layout
17697
17698 \begin_layout Description
17699 \begin_inset Flex Code
17700 status collapsed
17701
17702 \begin_layout Plain Layout
17703 ListCommand
17704 \end_layout
17705
17706 \end_inset
17707
17708  [
17709 \begin_inset Flex Code
17710 status collapsed
17711
17712 \begin_layout Plain Layout
17713 string
17714 \end_layout
17715
17716 \end_inset
17717
17718 =
17719 \begin_inset Quotes erd
17720 \end_inset
17721
17722
17723 \begin_inset Quotes erd
17724 \end_inset
17725
17726 ] The command used to generate a list of floats of this type; the leading
17727  `
17728 \backslash
17729 ' must be omitted.
17730  This 
17731 \emph on
17732 must
17733 \emph default
17734  be given if 
17735 \begin_inset Flex Code
17736 status collapsed
17737
17738 \begin_layout Plain Layout
17739 UsesFloatPkg
17740 \end_layout
17741
17742 \end_inset
17743
17744  is false, since there is no standard way to generate this command.
17745  It is ignored if 
17746 \begin_inset Flex Code
17747 status collapsed
17748
17749 \begin_layout Plain Layout
17750 UsesFloatPkg
17751 \end_layout
17752
17753 \end_inset
17754
17755  is true, since in that case there is a standard way to define the command.
17756 \end_layout
17757
17758 \begin_layout Description
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763 ListName
17764 \end_layout
17765
17766 \end_inset
17767
17768  [
17769 \begin_inset Flex Code
17770 status collapsed
17771
17772 \begin_layout Plain Layout
17773 string
17774 \end_layout
17775
17776 \end_inset
17777
17778 =
17779 \begin_inset Quotes erd
17780 \end_inset
17781
17782
17783 \begin_inset Quotes erd
17784 \end_inset
17785
17786 ] A title for a list of floats of this kind (list of figures, tables, or
17787  whatever).
17788  It is used for the screen label within \SpecialChar LyX
17789 , it is used by \SpecialChar LaTeX
17790  for the title and
17791  it is used as the title in the XHTML output.
17792  It will be translated to the document language.
17793 \end_layout
17794
17795 \begin_layout Description
17796 \begin_inset Flex Code
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 NumberWithin
17801 \end_layout
17802
17803 \end_inset
17804
17805  [
17806 \begin_inset Flex Code
17807 status collapsed
17808
17809 \begin_layout Plain Layout
17810 string
17811 \end_layout
17812
17813 \end_inset
17814
17815 =
17816 \begin_inset Quotes erd
17817 \end_inset
17818
17819
17820 \begin_inset Quotes erd
17821 \end_inset
17822
17823 ] This (optional) argument determines whether floats of this class will
17824  be numbered within some sectional unit of the document.
17825  For example, if 
17826 \begin_inset Flex Code
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 NumberWithin
17831 \end_layout
17832
17833 \end_inset
17834
17835  is set to 
17836 \begin_inset Quotes eld
17837 \end_inset
17838
17839
17840 \begin_inset Flex Code
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844 chapter
17845 \end_layout
17846
17847 \end_inset
17848
17849
17850 \begin_inset Quotes erd
17851 \end_inset
17852
17853 , the floats will be numbered within chapters.
17854  
17855 \end_layout
17856
17857 \begin_layout Description
17858 \begin_inset Flex Code
17859 status collapsed
17860
17861 \begin_layout Plain Layout
17862 Placement
17863 \end_layout
17864
17865 \end_inset
17866
17867  [
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 string
17873 \end_layout
17874
17875 \end_inset
17876
17877 =
17878 \begin_inset Quotes erd
17879 \end_inset
17880
17881
17882 \begin_inset Quotes erd
17883 \end_inset
17884
17885 ] The default placement for the given class of floats.
17886  The string should be as in standard \SpecialChar LaTeX
17887
17888 \begin_inset Flex Code
17889 status collapsed
17890
17891 \begin_layout Plain Layout
17892 t
17893 \end_layout
17894
17895 \end_inset
17896
17897
17898 \begin_inset Flex Code
17899 status collapsed
17900
17901 \begin_layout Plain Layout
17902 b
17903 \end_layout
17904
17905 \end_inset
17906
17907
17908 \begin_inset Flex Code
17909 status collapsed
17910
17911 \begin_layout Plain Layout
17912 p
17913 \end_layout
17914
17915 \end_inset
17916
17917  and 
17918 \begin_inset Flex Code
17919 status collapsed
17920
17921 \begin_layout Plain Layout
17922 h
17923 \end_layout
17924
17925 \end_inset
17926
17927  for top, bottom, page, and here, respectively.
17928 \begin_inset Foot
17929 status collapsed
17930
17931 \begin_layout Plain Layout
17932 Note that the order of these letters in the string is irrelevant, like in
17933  \SpecialChar LaTeX
17934 .
17935 \end_layout
17936
17937 \end_inset
17938
17939  On top of that there is a new type, 
17940 \begin_inset Flex Code
17941 status collapsed
17942
17943 \begin_layout Plain Layout
17944 H
17945 \end_layout
17946
17947 \end_inset
17948
17949 , which does not really correspond to a float, since it means: put it 
17950 \begin_inset Quotes eld
17951 \end_inset
17952
17953 here
17954 \begin_inset Quotes erd
17955 \end_inset
17956
17957  and nowhere else.
17958  Note however that the 
17959 \begin_inset Flex Code
17960 status collapsed
17961
17962 \begin_layout Plain Layout
17963 H
17964 \end_layout
17965
17966 \end_inset
17967
17968  specifier is special and, because of implementation details, cannot be
17969  used in non-built in float types.
17970  If you do not understand what this means, just use 
17971 \begin_inset Quotes eld
17972 \end_inset
17973
17974
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 tbp
17980 \end_layout
17981
17982 \end_inset
17983
17984
17985 \begin_inset Quotes erd
17986 \end_inset
17987
17988 .
17989 \end_layout
17990
17991 \begin_layout Description
17992 \begin_inset Flex Code
17993 status collapsed
17994
17995 \begin_layout Plain Layout
17996 RefPrefix
17997 \end_layout
17998
17999 \end_inset
18000
18001  [
18002 \begin_inset Flex Code
18003 status collapsed
18004
18005 \begin_layout Plain Layout
18006 string
18007 \end_layout
18008
18009 \end_inset
18010
18011 ] The prefix to use when creating labels referring to floats of this type.
18012  This allows the use of formatted references.
18013  Note that you can remove any 
18014 \begin_inset Flex Code
18015 status collapsed
18016
18017 \begin_layout Plain Layout
18018 RefPrefix
18019 \end_layout
18020
18021 \end_inset
18022
18023  set by a copied style by using the special value 
18024 \begin_inset Quotes eld
18025 \end_inset
18026
18027 OFF
18028 \begin_inset Quotes erd
18029 \end_inset
18030
18031 , which must be all caps.
18032 \end_layout
18033
18034 \begin_layout Description
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 Style
18040 \end_layout
18041
18042 \end_inset
18043
18044  [
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 string
18050 \end_layout
18051
18052 \end_inset
18053
18054 =
18055 \begin_inset Quotes erd
18056 \end_inset
18057
18058
18059 \begin_inset Quotes erd
18060 \end_inset
18061
18062 ] The style used when defining the float using 
18063 \begin_inset Flex Code
18064 status collapsed
18065
18066 \begin_layout Plain Layout
18067
18068 \backslash
18069 newfloat
18070 \end_layout
18071
18072 \end_inset
18073
18074 .
18075 \end_layout
18076
18077 \begin_layout Description
18078 \begin_inset Flex Code
18079 status collapsed
18080
18081 \begin_layout Plain Layout
18082 Type
18083 \end_layout
18084
18085 \end_inset
18086
18087  [
18088 \begin_inset Flex Code
18089 status collapsed
18090
18091 \begin_layout Plain Layout
18092 string
18093 \end_layout
18094
18095 \end_inset
18096
18097 =
18098 \begin_inset Quotes erd
18099 \end_inset
18100
18101
18102 \begin_inset Quotes erd
18103 \end_inset
18104
18105 ] The 
18106 \begin_inset Quotes eld
18107 \end_inset
18108
18109 type
18110 \begin_inset Quotes erd
18111 \end_inset
18112
18113  of the new class of floats, like program or algorithm.
18114  After the appropriate 
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119
18120 \backslash
18121 newfloat
18122 \end_layout
18123
18124 \end_inset
18125
18126 , commands such as 
18127 \begin_inset Flex Code
18128 status collapsed
18129
18130 \begin_layout Plain Layout
18131
18132 \backslash
18133 begin{program}
18134 \end_layout
18135
18136 \end_inset
18137
18138  or 
18139 \begin_inset Flex Code
18140 status collapsed
18141
18142 \begin_layout Plain Layout
18143
18144 \backslash
18145 end{algorithm*}
18146 \end_layout
18147
18148 \end_inset
18149
18150  will be available.
18151 \end_layout
18152
18153 \begin_layout Description
18154 \begin_inset Flex Code
18155 status collapsed
18156
18157 \begin_layout Plain Layout
18158 UsesFloatPkg
18159 \end_layout
18160
18161 \end_inset
18162
18163  [
18164 \begin_inset Flex Code
18165 status collapsed
18166
18167 \begin_layout Plain Layout
18168 0
18169 \end_layout
18170
18171 \end_inset
18172
18173 ,
18174 \begin_inset space \thinspace{}
18175 \end_inset
18176
18177
18178 \begin_inset Flex Code
18179 status collapsed
18180
18181 \begin_layout Plain Layout
18182
18183 \emph on
18184 1
18185 \end_layout
18186
18187 \end_inset
18188
18189 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18190  package 
18191 \begin_inset Flex Code
18192 status collapsed
18193
18194 \begin_layout Plain Layout
18195 float
18196 \end_layout
18197
18198 \end_inset
18199
18200 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18201  itself.
18202 \end_layout
18203
18204 \begin_layout Standard
18205 Note that defining a float with type 
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210
18211 \emph on
18212 type
18213 \end_layout
18214
18215 \end_inset
18216
18217  automatically defines the corresponding counter with name 
18218 \begin_inset Flex Code
18219 status collapsed
18220
18221 \begin_layout Plain Layout
18222
18223 \emph on
18224 type
18225 \end_layout
18226
18227 \end_inset
18228
18229 .
18230 \end_layout
18231
18232 \begin_layout Subsection
18233 Flex insets and InsetLayout
18234 \begin_inset CommandInset label
18235 LatexCommand label
18236 name "subsec:Flex-insets-and"
18237
18238 \end_inset
18239
18240
18241 \end_layout
18242
18243 \begin_layout Standard
18244 Flex insets come in three different kinds: 
18245 \end_layout
18246
18247 \begin_layout Itemize
18248 character style (
18249 \begin_inset Flex Code
18250 status collapsed
18251
18252 \begin_layout Plain Layout
18253 CharStyle
18254 \end_layout
18255
18256 \end_inset
18257
18258 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18259  commands as 
18260 \begin_inset Flex Code
18261 status collapsed
18262
18263 \begin_layout Plain Layout
18264
18265 \backslash
18266 noun
18267 \end_layout
18268
18269 \end_inset
18270
18271  and 
18272 \begin_inset Flex Code
18273 status collapsed
18274
18275 \begin_layout Plain Layout
18276
18277 \backslash
18278 code
18279 \end_layout
18280
18281 \end_inset
18282
18283 .
18284 \end_layout
18285
18286 \begin_layout Itemize
18287 user custom (
18288 \begin_inset Flex Code
18289 status collapsed
18290
18291 \begin_layout Plain Layout
18292 Custom
18293 \end_layout
18294
18295 \end_inset
18296
18297 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18298  code,
18299  footnote, and the like.
18300  An obvious example is an endnote inset, which is defined in the 
18301 \begin_inset Flex Code
18302 status collapsed
18303
18304 \begin_layout Plain Layout
18305 endnote
18306 \end_layout
18307
18308 \end_inset
18309
18310  module.
18311 \end_layout
18312
18313 \begin_layout Itemize
18314 XML elements (
18315 \begin_inset Flex Code
18316 status collapsed
18317
18318 \begin_layout Plain Layout
18319 Element
18320 \end_layout
18321
18322 \end_inset
18323
18324 ): For use with DocBook classes.
18325 \end_layout
18326
18327 \begin_layout Standard
18328 Flex insets are defined using the 
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333 InsetLayout
18334 \end_layout
18335
18336 \end_inset
18337
18338  tag, which shall be explained in a moment.
18339 \end_layout
18340
18341 \begin_layout Standard
18342 The 
18343 \begin_inset Flex Code
18344 status collapsed
18345
18346 \begin_layout Plain Layout
18347 InsetLayout
18348 \end_layout
18349
18350 \end_inset
18351
18352  tag also serves another function: It can be used to customize the general
18353  layout of many different types of insets.
18354  Currently, 
18355 \begin_inset Flex Code
18356 status collapsed
18357
18358 \begin_layout Plain Layout
18359 InsetLayout
18360 \end_layout
18361
18362 \end_inset
18363
18364  can be used to customize the layout parameters for footnotes, marginal
18365  notes, note insets, \SpecialChar TeX
18366  code (ERT) insets, branches, listings, indexes, boxes,
18367  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18368 \end_layout
18369
18370 \begin_layout Standard
18371 The 
18372 \begin_inset Flex Code
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376 InsetLayout
18377 \end_layout
18378
18379 \end_inset
18380
18381  definition must begin with a line of the form:
18382 \end_layout
18383
18384 \begin_layout LyX-Code
18385 InsetLayout <type>
18386 \end_layout
18387
18388 \begin_layout Standard
18389 Here 
18390 \begin_inset Flex Code
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394 <Type>
18395 \end_layout
18396
18397 \end_inset
18398
18399  indicates the inset whose layout is being defined, and here there are four
18400  cases.
18401 \end_layout
18402
18403 \begin_layout Enumerate
18404 The layout for a pre-existing inset is being modified.
18405  In this case, can be 
18406 \begin_inset Flex Code
18407 status collapsed
18408
18409 \begin_layout Plain Layout
18410 <Type>
18411 \end_layout
18412
18413 \end_inset
18414
18415  any one of the following: 
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 Algorithm
18421 \end_layout
18422
18423 \end_inset
18424
18425
18426 \begin_inset Flex Code
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430 Branch
18431 \end_layout
18432
18433 \end_inset
18434
18435
18436 \begin_inset Flex Code
18437 status collapsed
18438
18439 \begin_layout Plain Layout
18440 Box
18441 \end_layout
18442
18443 \end_inset
18444
18445
18446 \begin_inset Flex Code
18447 status collapsed
18448
18449 \begin_layout Plain Layout
18450 Box:shaded
18451 \end_layout
18452
18453 \end_inset
18454
18455
18456 \begin_inset Flex Code
18457 status collapsed
18458
18459 \begin_layout Plain Layout
18460 Caption:Standard
18461 \end_layout
18462
18463 \end_inset
18464
18465
18466 \begin_inset Flex Code
18467 status collapsed
18468
18469 \begin_layout Plain Layout
18470 ERT
18471 \end_layout
18472
18473 \end_inset
18474
18475
18476 \begin_inset Flex Code
18477 status collapsed
18478
18479 \begin_layout Plain Layout
18480 Figure
18481 \end_layout
18482
18483 \end_inset
18484
18485
18486 \begin_inset Flex Code
18487 status collapsed
18488
18489 \begin_layout Plain Layout
18490 Foot
18491 \end_layout
18492
18493 \end_inset
18494
18495
18496 \begin_inset Flex Code
18497 status collapsed
18498
18499 \begin_layout Plain Layout
18500 Index
18501 \end_layout
18502
18503 \end_inset
18504
18505
18506 \begin_inset Flex Code
18507 status collapsed
18508
18509 \begin_layout Plain Layout
18510 Info
18511 \end_layout
18512
18513 \end_inset
18514
18515
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 Info:menu
18521 \end_layout
18522
18523 \end_inset
18524
18525
18526 \begin_inset Flex Code
18527 status collapsed
18528
18529 \begin_layout Plain Layout
18530 Info:shortcut
18531 \end_layout
18532
18533 \end_inset
18534
18535
18536 \begin_inset Flex Code
18537 status collapsed
18538
18539 \begin_layout Plain Layout
18540 Info:shortcuts
18541 \end_layout
18542
18543 \end_inset
18544
18545
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 Listings
18551 \end_layout
18552
18553 \end_inset
18554
18555
18556 \begin_inset Flex Code
18557 status collapsed
18558
18559 \begin_layout Plain Layout
18560 Marginal
18561 \end_layout
18562
18563 \end_inset
18564
18565
18566 \begin_inset Flex Code
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570 Note:Comment
18571 \end_layout
18572
18573 \end_inset
18574
18575
18576 \begin_inset Flex Code
18577 status collapsed
18578
18579 \begin_layout Plain Layout
18580 Note:Note
18581 \end_layout
18582
18583 \end_inset
18584
18585
18586 \begin_inset Flex Code
18587 status collapsed
18588
18589 \begin_layout Plain Layout
18590 Note:Greyedout
18591 \end_layout
18592
18593 \end_inset
18594
18595
18596 \begin_inset Flex Code
18597 status collapsed
18598
18599 \begin_layout Plain Layout
18600 Table
18601 \end_layout
18602
18603 \end_inset
18604
18605 , or 
18606 \begin_inset Flex Code
18607 status collapsed
18608
18609 \begin_layout Plain Layout
18610 URL
18611 \end_layout
18612
18613 \end_inset
18614
18615 .
18616 \end_layout
18617
18618 \begin_layout Enumerate
18619 The layout for a Flex inset is being defined.
18620  In this case, 
18621 \begin_inset Flex Code
18622 status collapsed
18623
18624 \begin_layout Plain Layout
18625 <Type>
18626 \end_layout
18627
18628 \end_inset
18629
18630  must be of the form 
18631 \begin_inset Quotes eld
18632 \end_inset
18633
18634
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639 Flex:<name>
18640 \end_layout
18641
18642 \end_inset
18643
18644
18645 \begin_inset Quotes erd
18646 \end_inset
18647
18648 , where 
18649 \begin_inset Flex Code
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653 name
18654 \end_layout
18655
18656 \end_inset
18657
18658  may be be any valid identifier not used by a pre-existing Flex inset.
18659  The identifier may include spaces, but in that case the whole thing must
18660  be wrapped in quotes.
18661  Note that the definition of a flex inset 
18662 \emph on
18663 must 
18664 \emph default
18665 also include a 
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670 LyXType
18671 \end_layout
18672
18673 \end_inset
18674
18675  entry, declaring which type of inset it defines.
18676 \end_layout
18677
18678 \begin_layout Enumerate
18679 The layout for user specific branch is being defined.
18680  In this case, 
18681 \begin_inset Flex Code
18682 status collapsed
18683
18684 \begin_layout Plain Layout
18685 <Type>
18686 \end_layout
18687
18688 \end_inset
18689
18690  must be of the form 
18691 \begin_inset Quotes eld
18692 \end_inset
18693
18694
18695 \begin_inset Flex Code
18696 status collapsed
18697
18698 \begin_layout Plain Layout
18699 Branch:<name>
18700 \end_layout
18701
18702 \end_inset
18703
18704
18705 \begin_inset Quotes erd
18706 \end_inset
18707
18708 , where 
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713 name
18714 \end_layout
18715
18716 \end_inset
18717
18718  may be be any valid identifier of branch defined in user's document.
18719  The identifier may include spaces, but in that case the whole thing must
18720  be wrapped in quotes.
18721  The main purpose of this feature is to allow \SpecialChar LaTeX
18722  wrapping around specific
18723  branches as user needs.
18724 \end_layout
18725
18726 \begin_layout Enumerate
18727 The layout of a user (or class) specific caption is being defined.
18728  In this case, 
18729 \begin_inset Flex Code
18730 status collapsed
18731
18732 \begin_layout Plain Layout
18733 <Type>
18734 \end_layout
18735
18736 \end_inset
18737
18738  must be of the form 
18739 \begin_inset Quotes eld
18740 \end_inset
18741
18742
18743 \begin_inset Flex Code
18744 status collapsed
18745
18746 \begin_layout Plain Layout
18747 Caption:<name>
18748 \end_layout
18749
18750 \end_inset
18751
18752
18753 \begin_inset Quotes erd
18754 \end_inset
18755
18756 , where 
18757 \begin_inset Flex Code
18758 status collapsed
18759
18760 \begin_layout Plain Layout
18761 name
18762 \end_layout
18763
18764 \end_inset
18765
18766  specifies the name of the caption as it appears in the menu.
18767  Have a look at the standard caption (
18768 \begin_inset Flex Code
18769 status collapsed
18770
18771 \begin_layout Plain Layout
18772 Caption:Standard
18773 \end_layout
18774
18775 \end_inset
18776
18777 ), the specific captions of the KOMA-Script classes (
18778 \begin_inset Flex Code
18779 status collapsed
18780
18781 \begin_layout Plain Layout
18782 Caption:Above
18783 \end_layout
18784
18785 \end_inset
18786
18787
18788 \begin_inset Flex Code
18789 status collapsed
18790
18791 \begin_layout Plain Layout
18792 Caption:Below
18793 \end_layout
18794
18795 \end_inset
18796
18797 ) or the module 
18798 \family sans
18799 Multilingual
18800 \begin_inset space ~
18801 \end_inset
18802
18803 Captions
18804 \begin_inset Newline linebreak
18805 \end_inset
18806
18807
18808 \family default
18809 (
18810 \begin_inset Flex Code
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814 Caption:Bicaption
18815 \end_layout
18816
18817 \end_inset
18818
18819 ) for applications.
18820 \end_layout
18821
18822 \begin_layout Standard
18823 The 
18824 \begin_inset Flex Code
18825 status collapsed
18826
18827 \begin_layout Plain Layout
18828 InsetLayout
18829 \end_layout
18830
18831 \end_inset
18832
18833  definition can contain the following entries:
18834 \end_layout
18835
18836 \begin_layout Description
18837 \begin_inset Flex Code
18838 status collapsed
18839
18840 \begin_layout Plain Layout
18841 AddToToc
18842 \end_layout
18843
18844 \end_inset
18845
18846  [
18847 \begin_inset Flex Code
18848 status collapsed
18849
18850 \begin_layout Plain Layout
18851 string
18852 \end_layout
18853
18854 \end_inset
18855
18856 =""] This inset will appear in the table of contents of the given type.
18857  An empty string disables.
18858  See also the OutlinerName and the IsTocCaption commands.
18859  This is only implemented for Flex insets.
18860  Default: disabled.
18861 \end_layout
18862
18863 \begin_layout Description
18864 \begin_inset Flex Code
18865 status collapsed
18866
18867 \begin_layout Plain Layout
18868 Argument
18869 \end_layout
18870
18871 \end_inset
18872
18873  [
18874 \begin_inset Flex Code
18875 status collapsed
18876
18877 \begin_layout Plain Layout
18878 int
18879 \end_layout
18880
18881 \end_inset
18882
18883 ] Defines argument number of a command\SpecialChar breakableslash
18884 environment associated with the current
18885  layout.
18886  The definition must end with 
18887 \begin_inset Flex Code
18888 status collapsed
18889
18890 \begin_layout Plain Layout
18891 EndArgument
18892 \end_layout
18893
18894 \end_inset
18895
18896 .
18897  See 
18898 \begin_inset CommandInset ref
18899 LatexCommand ref
18900 reference "subsec:Paragraph-Styles"
18901
18902 \end_inset
18903
18904  for details.
18905 \end_layout
18906
18907 \begin_layout Description
18908 \begin_inset Flex Code
18909 status collapsed
18910
18911 \begin_layout Plain Layout
18912 BabelPreamble
18913 \end_layout
18914
18915 \end_inset
18916
18917  Preamble for changing language commands; see 
18918 \begin_inset CommandInset ref
18919 LatexCommand ref
18920 reference "subsec:I18n"
18921
18922 \end_inset
18923
18924 .
18925 \end_layout
18926
18927 \begin_layout Description
18928 \begin_inset Flex Code
18929 status collapsed
18930
18931 \begin_layout Plain Layout
18932 BgColor
18933 \end_layout
18934
18935 \end_inset
18936
18937  [
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 <name>
18943 \end_layout
18944
18945 \end_inset
18946
18947 ] The color for the inset's background.
18948  See 
18949 \begin_inset CommandInset ref
18950 LatexCommand ref
18951 reference "chap:Names-of-colors"
18952
18953 \end_inset
18954
18955  for a list of the available color names.
18956 \end_layout
18957
18958 \begin_layout Description
18959 \begin_inset Flex Code
18960 status collapsed
18961
18962 \begin_layout Plain Layout
18963 ContentAsLabel
18964 \end_layout
18965
18966 \end_inset
18967
18968  [
18969 \begin_inset Flex Code
18970 status collapsed
18971
18972 \begin_layout Plain Layout
18973
18974 \emph on
18975 0
18976 \end_layout
18977
18978 \end_inset
18979
18980 ,
18981 \begin_inset space \thinspace{}
18982 \end_inset
18983
18984
18985 \begin_inset Flex Code
18986 status collapsed
18987
18988 \begin_layout Plain Layout
18989 1
18990 \end_layout
18991
18992 \end_inset
18993
18994 ] Whether to use the content of the inset as the label, when the inset is
18995  closed.
18996  Default is false.
18997 \end_layout
18998
18999 \begin_layout Description
19000 \begin_inset Flex Code
19001 status collapsed
19002
19003 \begin_layout Plain Layout
19004 CopyStyle
19005 \end_layout
19006
19007 \end_inset
19008
19009  [
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014 <type>
19015 \end_layout
19016
19017 \end_inset
19018
19019 ] As with paragraph styles, see 
19020 \begin_inset CommandInset ref
19021 LatexCommand ref
19022 reference "subsec:Paragraph-Styles"
19023
19024 \end_inset
19025
19026 .
19027  Note that you need to specify the complete type, e.
19028 \begin_inset space \thinspace{}
19029 \end_inset
19030
19031 g.
19032 \begin_inset space ~
19033 \end_inset
19034
19035
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 CopyStyle Flex:<name>
19041 \end_layout
19042
19043 \end_inset
19044
19045 .
19046 \end_layout
19047
19048 \begin_layout Description
19049 \begin_inset Flex Code
19050 status collapsed
19051
19052 \begin_layout Plain Layout
19053 CustomPars
19054 \end_layout
19055
19056 \end_inset
19057
19058  [
19059 \begin_inset Flex Code
19060 status collapsed
19061
19062 \begin_layout Plain Layout
19063
19064 \emph on
19065 0
19066 \end_layout
19067
19068 \end_inset
19069
19070 ,
19071 \begin_inset space \thinspace{}
19072 \end_inset
19073
19074
19075 \begin_inset Flex Code
19076 status collapsed
19077
19078 \begin_layout Plain Layout
19079 1
19080 \end_layout
19081
19082 \end_inset
19083
19084 ] Indicates whether the user may employ the Paragraph Settings dialog to
19085  customize the paragraph.
19086 \end_layout
19087
19088 \begin_layout Description
19089 \begin_inset Flex Code
19090 status collapsed
19091
19092 \begin_layout Plain Layout
19093 Decoration
19094 \end_layout
19095
19096 \end_inset
19097
19098  can be 
19099 \begin_inset Flex Code
19100 status collapsed
19101
19102 \begin_layout Plain Layout
19103 Classic
19104 \end_layout
19105
19106 \end_inset
19107
19108
19109 \begin_inset Flex Code
19110 status collapsed
19111
19112 \begin_layout Plain Layout
19113 Minimalistic
19114 \end_layout
19115
19116 \end_inset
19117
19118 , or 
19119 \begin_inset Flex Code
19120 status collapsed
19121
19122 \begin_layout Plain Layout
19123 Conglomerate
19124 \end_layout
19125
19126 \end_inset
19127
19128 , describing the rendering style used for the inset's frame and buttons.
19129  Footnotes generally use 
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134 Classic
19135 \end_layout
19136
19137 \end_inset
19138
19139 , ERT insets generally 
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 Minimalistic
19145 \end_layout
19146
19147 \end_inset
19148
19149 , and character styles 
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 Conglomerate
19155 \end_layout
19156
19157 \end_inset
19158
19159 .
19160 \end_layout
19161
19162 \begin_layout Description
19163 \begin_inset Flex Code
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167 Display
19168 \end_layout
19169
19170 \end_inset
19171
19172  [
19173 \begin_inset Flex Code
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177 0
19178 \end_layout
19179
19180 \end_inset
19181
19182 ,
19183 \emph on
19184
19185 \begin_inset space \thinspace{}
19186 \end_inset
19187
19188
19189 \emph default
19190
19191 \begin_inset Flex Code
19192 status collapsed
19193
19194 \begin_layout Plain Layout
19195
19196 \emph on
19197 1
19198 \end_layout
19199
19200 \end_inset
19201
19202 ] Only useful if 
19203 \begin_inset Flex Code
19204 status collapsed
19205
19206 \begin_layout Plain Layout
19207 LatexType
19208 \end_layout
19209
19210 \end_inset
19211
19212  is 
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 Environment
19218 \end_layout
19219
19220 \end_inset
19221
19222 .
19223  Indicates whether the environment will stand on its own in the output or
19224  will appear inline with the surrounding text.
19225  If set to false, it is supposed that the \SpecialChar LaTeX
19226  environment ignores white space
19227  (including one newline character) after the 
19228 \begin_inset Flex Code
19229 status collapsed
19230
19231 \begin_layout Plain Layout
19232
19233 \backslash
19234 begin{
19235 \emph on
19236 LatexName
19237 \emph default
19238 }
19239 \end_layout
19240
19241 \end_inset
19242
19243  and 
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248
19249 \backslash
19250 end{
19251 \emph on
19252 LatexName
19253 \emph default
19254 }
19255 \end_layout
19256
19257 \end_inset
19258
19259  tags.
19260  Default is true.
19261 \change_inserted 731793113 1538674858
19262
19263 \end_layout
19264
19265 \begin_layout Description
19266
19267 \change_inserted 731793113 1538674891
19268 \begin_inset Flex Code
19269 status open
19270
19271 \begin_layout Plain Layout
19272
19273 \change_inserted 731793113 1538674863
19274 EditExternal
19275 \change_unchanged
19276
19277 \end_layout
19278
19279 \end_inset
19280
19281  [
19282 \emph on
19283 0
19284 \emph default
19285 ,1] Allow the contents of the inset to be edited externally (using whatever
19286  editor is defined for the document's output format).
19287 \change_unchanged
19288
19289 \end_layout
19290
19291 \begin_layout Description
19292 \begin_inset Flex Code
19293 status collapsed
19294
19295 \begin_layout Plain Layout
19296 End
19297 \end_layout
19298
19299 \end_inset
19300
19301  Required at the end of the 
19302 \begin_inset Flex Code
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 InsetLayout
19307 \end_layout
19308
19309 \end_inset
19310
19311  declarations.
19312 \end_layout
19313
19314 \begin_layout Description
19315 \begin_inset Flex Code
19316 status collapsed
19317
19318 \begin_layout Plain Layout
19319 Font
19320 \end_layout
19321
19322 \end_inset
19323
19324  The font used for both the text body 
19325 \emph on
19326 and
19327 \emph default
19328  the label.
19329  See 
19330 \begin_inset CommandInset ref
19331 LatexCommand ref
19332 reference "subsec:Font-description"
19333
19334 \end_inset
19335
19336 .
19337  Note that defining this font automatically defines the 
19338 \begin_inset Flex Code
19339 status collapsed
19340
19341 \begin_layout Plain Layout
19342 LabelFont
19343 \end_layout
19344
19345 \end_inset
19346
19347  to the same value, so define this first and define 
19348 \begin_inset Flex Code
19349 status collapsed
19350
19351 \begin_layout Plain Layout
19352 LabelFont
19353 \end_layout
19354
19355 \end_inset
19356
19357  later if you want them to be different.
19358 \end_layout
19359
19360 \begin_layout Description
19361 \begin_inset Flex Code
19362 status collapsed
19363
19364 \begin_layout Plain Layout
19365 FixedWidthPreambleEncoding
19366 \end_layout
19367
19368 \end_inset
19369
19370  [
19371 \begin_inset Flex Code
19372 status collapsed
19373
19374 \begin_layout Plain Layout
19375
19376 \emph on
19377 0
19378 \end_layout
19379
19380 \end_inset
19381
19382 ,
19383 \begin_inset space \thinspace{}
19384 \end_inset
19385
19386
19387 \begin_inset Flex Code
19388 status collapsed
19389
19390 \begin_layout Plain Layout
19391 1
19392 \end_layout
19393
19394 \end_inset
19395
19396 ] Force a fixed width encoding for the translated contents of 
19397 \begin_inset Flex Code
19398 status collapsed
19399
19400 \begin_layout Plain Layout
19401 BabelPreamble
19402 \end_layout
19403
19404 \end_inset
19405
19406  and 
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 LangPreamble
19412 \end_layout
19413
19414 \end_inset
19415
19416  code generated by this layout.
19417  This is needed for special \SpecialChar LaTeX
19418 -packages like 
19419 \family typewriter
19420 listings
19421 \family default
19422  that do not work with variable width encodings such as 
19423 \family sans
19424 utf8
19425 \family default
19426 .
19427  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19428  backends such as Xe\SpecialChar TeX
19429  or
19430  Lua\SpecialChar TeX
19431  are used.
19432 \end_layout
19433
19434 \begin_layout Description
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 ForceLocalFontSwitch
19440 \end_layout
19441
19442 \end_inset
19443
19444  [
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449
19450 \emph on
19451 0
19452 \end_layout
19453
19454 \end_inset
19455
19456 ,
19457 \begin_inset space \thinspace{}
19458 \end_inset
19459
19460
19461 \begin_inset Flex Code
19462 status collapsed
19463
19464 \begin_layout Plain Layout
19465 1
19466 \end_layout
19467
19468 \end_inset
19469
19470 ] When using babel, always use a local font switch (
19471 \begin_inset Flex Code
19472 status collapsed
19473
19474 \begin_layout Plain Layout
19475
19476 \backslash
19477 foreignlanguage
19478 \end_layout
19479
19480 \end_inset
19481
19482 ), never a global one (such as 
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487
19488 \backslash
19489 selectlanguage
19490 \end_layout
19491
19492 \end_inset
19493
19494 ).
19495 \end_layout
19496
19497 \begin_layout Description
19498 \begin_inset Flex Code
19499 status collapsed
19500
19501 \begin_layout Plain Layout
19502 ForceLTR
19503 \end_layout
19504
19505 \end_inset
19506
19507  [
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512
19513 \emph on
19514 0
19515 \end_layout
19516
19517 \end_inset
19518
19519 ,
19520 \begin_inset space \thinspace{}
19521 \end_inset
19522
19523
19524 \begin_inset Flex Code
19525 status collapsed
19526
19527 \begin_layout Plain Layout
19528 1
19529 \end_layout
19530
19531 \end_inset
19532
19533 ] Force the 
19534 \begin_inset Quotes eld
19535 \end_inset
19536
19537 latex
19538 \begin_inset Quotes erd
19539 \end_inset
19540
19541  language, leading to Left-to-Right (Latin) output, e.
19542 \begin_inset space \thinspace{}
19543 \end_inset
19544
19545 g.
19546 \begin_inset space \space{}
19547 \end_inset
19548
19549 in \SpecialChar TeX
19550  code or URL.
19551  A kludge.
19552 \end_layout
19553
19554 \begin_layout Description
19555 \begin_inset Flex Code
19556 status collapsed
19557
19558 \begin_layout Plain Layout
19559 ForceOwnlines
19560 \end_layout
19561
19562 \end_inset
19563
19564  [
19565 \begin_inset Flex Code
19566 status collapsed
19567
19568 \begin_layout Plain Layout
19569
19570 \emph on
19571 0
19572 \end_layout
19573
19574 \end_inset
19575
19576 ,
19577 \begin_inset space \thinspace{}
19578 \end_inset
19579
19580
19581 \begin_inset Flex Code
19582 status collapsed
19583
19584 \begin_layout Plain Layout
19585 1
19586 \end_layout
19587
19588 \end_inset
19589
19590 ] Force a a line break in the \SpecialChar LaTeX
19591  output before the inset starts and after
19592  the inset ends.
19593  This assures the inset itself is output on its own lines, for parsing purposes.
19594 \end_layout
19595
19596 \begin_layout Description
19597 \begin_inset Flex Code
19598 status collapsed
19599
19600 \begin_layout Plain Layout
19601 ForcePlain
19602 \end_layout
19603
19604 \end_inset
19605
19606  [
19607 \begin_inset Flex Code
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611
19612 \emph on
19613 0
19614 \end_layout
19615
19616 \end_inset
19617
19618 ,
19619 \begin_inset space \thinspace{}
19620 \end_inset
19621
19622
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 1
19628 \end_layout
19629
19630 \end_inset
19631
19632 ] Indicates whether the 
19633 \begin_inset Flex Code
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637 PlainLayout
19638 \end_layout
19639
19640 \end_inset
19641
19642  should be used or, instead, the user can change the paragraph style used
19643  in the inset.
19644  Default is false.
19645 \end_layout
19646
19647 \begin_layout Description
19648 \begin_inset Flex Code
19649 status collapsed
19650
19651 \begin_layout Plain Layout
19652 FreeSpacing
19653 \end_layout
19654
19655 \end_inset
19656
19657  [
19658 \begin_inset Flex Code
19659 status collapsed
19660
19661 \begin_layout Plain Layout
19662
19663 \emph on
19664 0
19665 \end_layout
19666
19667 \end_inset
19668
19669 ,
19670 \begin_inset space \thinspace{}
19671 \end_inset
19672
19673
19674 \begin_inset Flex Code
19675 status collapsed
19676
19677 \begin_layout Plain Layout
19678 1
19679 \end_layout
19680
19681 \end_inset
19682
19683 ] As with paragraph styles, see 
19684 \begin_inset CommandInset ref
19685 LatexCommand ref
19686 reference "subsec:Paragraph-Styles"
19687
19688 \end_inset
19689
19690 .
19691 \end_layout
19692
19693 \begin_layout Description
19694 \begin_inset Flex Code
19695 status collapsed
19696
19697 \begin_layout Plain Layout
19698 HTML*
19699 \end_layout
19700
19701 \end_inset
19702
19703  These tags control the XHTML output.
19704  See 
19705 \begin_inset CommandInset ref
19706 LatexCommand ref
19707 reference "sec:Tags-for-XHTML"
19708
19709 \end_inset
19710
19711 .
19712 \end_layout
19713
19714 \begin_layout Description
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 InToc
19720 \end_layout
19721
19722 \end_inset
19723
19724  [
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729
19730 \emph on
19731 0
19732 \end_layout
19733
19734 \end_inset
19735
19736 ,
19737 \begin_inset space \thinspace{}
19738 \end_inset
19739
19740
19741 \begin_inset Flex Code
19742 status collapsed
19743
19744 \begin_layout Plain Layout
19745 1
19746 \end_layout
19747
19748 \end_inset
19749
19750 ] Whether to include the contents of this inset in the strings generated
19751  for the `Outline' pane for all table of contents, regardless of the AddToToc
19752  setting.
19753  One would not, for example, want the content of a footnote in a section
19754  header to be included in the TOC displayed in the outline, but one would
19755  normally want the content of a character style displayed.
19756  Default is false: not to include.
19757 \end_layout
19758
19759 \begin_layout Description
19760 \begin_inset Flex Code
19761 status collapsed
19762
19763 \begin_layout Plain Layout
19764 IsTocCaption
19765 \end_layout
19766
19767 \end_inset
19768
19769  [
19770 \begin_inset Flex Code
19771 status collapsed
19772
19773 \begin_layout Plain Layout
19774
19775 \emph on
19776 0
19777 \end_layout
19778
19779 \end_inset
19780
19781 ,
19782 \begin_inset space \thinspace{}
19783 \end_inset
19784
19785
19786 \begin_inset Flex Code
19787 status collapsed
19788
19789 \begin_layout Plain Layout
19790 1
19791 \end_layout
19792
19793 \end_inset
19794
19795 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
19796  of its contents in its item in the table of contents.
19797  Otherwise, only the label appears.
19798 \end_layout
19799
19800 \begin_layout Description
19801 \begin_inset Flex Code
19802 status collapsed
19803
19804 \begin_layout Plain Layout
19805 KeepEmpty
19806 \end_layout
19807
19808 \end_inset
19809
19810  [
19811 \emph on
19812
19813 \begin_inset Flex Code
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 0
19818 \end_layout
19819
19820 \end_inset
19821
19822
19823 \emph default
19824 ,
19825 \begin_inset space \thinspace{}
19826 \end_inset
19827
19828
19829 \begin_inset Flex Code
19830 status collapsed
19831
19832 \begin_layout Plain Layout
19833 1
19834 \end_layout
19835
19836 \end_inset
19837
19838 ] As with paragraph styles, see 
19839 \begin_inset CommandInset ref
19840 LatexCommand ref
19841 reference "subsec:Paragraph-Styles"
19842
19843 \end_inset
19844
19845 .
19846 \end_layout
19847
19848 \begin_layout Description
19849 \begin_inset Flex Code
19850 status collapsed
19851
19852 \begin_layout Plain Layout
19853 LabelFont
19854 \end_layout
19855
19856 \end_inset
19857
19858  The font used for the label.
19859  See 
19860 \begin_inset CommandInset ref
19861 LatexCommand ref
19862 reference "subsec:Font-description"
19863
19864 \end_inset
19865
19866 .
19867  Note that this definition can never appear before 
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872 Font
19873 \end_layout
19874
19875 \end_inset
19876
19877 , lest it be ineffective.
19878 \end_layout
19879
19880 \begin_layout Description
19881 \begin_inset Flex Code
19882 status collapsed
19883
19884 \begin_layout Plain Layout
19885 LabelString
19886 \end_layout
19887
19888 \end_inset
19889
19890  [
19891 \begin_inset Flex Code
19892 status collapsed
19893
19894 \begin_layout Plain Layout
19895 string
19896 \end_layout
19897
19898 \end_inset
19899
19900 =
19901 \begin_inset Quotes erd
19902 \end_inset
19903
19904
19905 \begin_inset Quotes erd
19906 \end_inset
19907
19908 ] What will be displayed on the button or elsewhere as the inset label.
19909  Some inset types (
19910 \begin_inset Flex Code
19911 status collapsed
19912
19913 \begin_layout Plain Layout
19914 \SpecialChar TeX
19915  code
19916 \end_layout
19917
19918 \end_inset
19919
19920  and 
19921 \begin_inset Flex Code
19922 status collapsed
19923
19924 \begin_layout Plain Layout
19925 Branch
19926 \end_layout
19927
19928 \end_inset
19929
19930 ) modify this label on the fly.
19931 \end_layout
19932
19933 \begin_layout Description
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 LangPreamble
19939 \end_layout
19940
19941 \end_inset
19942
19943  Language dependent preamble; see 
19944 \begin_inset CommandInset ref
19945 LatexCommand ref
19946 reference "subsec:I18n"
19947
19948 \end_inset
19949
19950 .
19951 \end_layout
19952
19953 \begin_layout Description
19954 \begin_inset Flex Code
19955 status collapsed
19956
19957 \begin_layout Plain Layout
19958 LatexName
19959 \end_layout
19960
19961 \end_inset
19962
19963  [
19964 \begin_inset Flex Code
19965 status collapsed
19966
19967 \begin_layout Plain Layout
19968 <name>
19969 \end_layout
19970
19971 \end_inset
19972
19973 ] The name of the corresponding \SpecialChar LaTeX
19974  stuff.
19975  Either the environment or command name.
19976 \end_layout
19977
19978 \begin_layout Description
19979 \begin_inset Flex Code
19980 status collapsed
19981
19982 \begin_layout Plain Layout
19983 LatexParam
19984 \end_layout
19985
19986 \end_inset
19987
19988  [
19989 \begin_inset Flex Code
19990 status collapsed
19991
19992 \begin_layout Plain Layout
19993 <parameter>
19994 \end_layout
19995
19996 \end_inset
19997
19998 ] The optional parameter for the corresponding 
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003 LatexName
20004 \end_layout
20005
20006 \end_inset
20007
20008  stuff, including possible bracket pairs like 
20009 \begin_inset Flex Code
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 []
20014 \end_layout
20015
20016 \end_inset
20017
20018 .
20019  This parameter cannot be changed from within \SpecialChar LyX
20020  (use 
20021 \begin_inset Flex Code
20022 status collapsed
20023
20024 \begin_layout Plain Layout
20025 Argument
20026 \end_layout
20027
20028 \end_inset
20029
20030  for customizable parameters).
20031  It will be output as is after all \SpecialChar LaTeX
20032  
20033 \begin_inset Flex Code
20034 status collapsed
20035
20036 \begin_layout Plain Layout
20037 Argument
20038 \end_layout
20039
20040 \end_inset
20041
20042 s.
20043 \end_layout
20044
20045 \begin_layout Description
20046 \begin_inset Flex Code
20047 status collapsed
20048
20049 \begin_layout Plain Layout
20050 LatexType
20051 \end_layout
20052
20053 \end_inset
20054
20055  [
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 Command, Environment, None
20061 \end_layout
20062
20063 \end_inset
20064
20065 ] How the style should be translated into \SpecialChar LaTeX
20066 .
20067 \begin_inset Foot
20068 status collapsed
20069
20070 \begin_layout Plain Layout
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 LatexType
20076 \end_layout
20077
20078 \end_inset
20079
20080  is perhaps a bit misleading, since these rules apply to SGML classes too.
20081  Visit the SGML class files for specific examples.
20082 \end_layout
20083
20084 \end_inset
20085
20086
20087 \end_layout
20088
20089 \begin_deeper
20090 \begin_layout Description
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 None
20096 \end_layout
20097
20098 \end_inset
20099
20100  means nothing special
20101 \end_layout
20102
20103 \begin_layout Description
20104 \begin_inset Flex Code
20105 status collapsed
20106
20107 \begin_layout Plain Layout
20108 Command
20109 \end_layout
20110
20111 \end_inset
20112
20113  means 
20114 \begin_inset Flex Code
20115 status collapsed
20116
20117 \begin_layout Plain Layout
20118
20119 \backslash
20120
20121 \emph on
20122 LatexName
20123 \emph default
20124 {\SpecialChar ldots
20125 }
20126 \end_layout
20127
20128 \end_inset
20129
20130
20131 \end_layout
20132
20133 \begin_layout Description
20134 \begin_inset Flex Code
20135 status collapsed
20136
20137 \begin_layout Plain Layout
20138 Environment
20139 \end_layout
20140
20141 \end_inset
20142
20143  means 
20144 \begin_inset Flex Code
20145 status collapsed
20146
20147 \begin_layout Plain Layout
20148
20149 \backslash
20150 begin{
20151 \emph on
20152 LatexName
20153 \emph default
20154 }\SpecialChar ldots
20155
20156 \backslash
20157 end{
20158 \emph on
20159 LatexName
20160 \emph default
20161 }
20162 \end_layout
20163
20164 \end_inset
20165
20166
20167 \end_layout
20168
20169 \begin_layout Standard
20170 Putting the last few things together, the \SpecialChar LaTeX
20171  output will be either: 
20172 \end_layout
20173
20174 \begin_layout LyX-Code
20175
20176 \backslash
20177 LatexName[LatexParam]{\SpecialChar ldots
20178 }
20179 \end_layout
20180
20181 \begin_layout Standard
20182 or: 
20183 \end_layout
20184
20185 \begin_layout LyX-Code
20186
20187 \backslash
20188 begin{LatexName}[LatexParam] \SpecialChar ldots
20189  
20190 \backslash
20191 end{LatexName}
20192 \end_layout
20193
20194 \begin_layout Standard
20195 depending upon the \SpecialChar LaTeX
20196  type.
20197 \end_layout
20198
20199 \end_deeper
20200 \begin_layout Description
20201 \begin_inset Flex Code
20202 status collapsed
20203
20204 \begin_layout Plain Layout
20205 LeftDelim
20206 \end_layout
20207
20208 \end_inset
20209
20210  [
20211 \begin_inset Flex Code
20212 status collapsed
20213
20214 \begin_layout Plain Layout
20215 string
20216 \end_layout
20217
20218 \end_inset
20219
20220 ] A string that is put at the beginning of the layout content.
20221  A line break in the output can be indicated by 
20222 \begin_inset Flex Code
20223 status collapsed
20224
20225 \begin_layout Plain Layout
20226 <br/>
20227 \end_layout
20228
20229 \end_inset
20230
20231 .
20232 \end_layout
20233
20234 \begin_layout Description
20235 \begin_inset Flex Code
20236 status collapsed
20237
20238 \begin_layout Plain Layout
20239 LyxType
20240 \end_layout
20241
20242 \end_inset
20243
20244  Can be 
20245 \begin_inset Flex Code
20246 status collapsed
20247
20248 \begin_layout Plain Layout
20249 charstyle
20250 \end_layout
20251
20252 \end_inset
20253
20254
20255 \begin_inset Flex Code
20256 status collapsed
20257
20258 \begin_layout Plain Layout
20259 custom
20260 \end_layout
20261
20262 \end_inset
20263
20264
20265 \begin_inset Flex Code
20266 status collapsed
20267
20268 \begin_layout Plain Layout
20269 element
20270 \end_layout
20271
20272 \end_inset
20273
20274  or 
20275 \begin_inset Flex Code
20276 status collapsed
20277
20278 \begin_layout Plain Layout
20279 end
20280 \end_layout
20281
20282 \end_inset
20283
20284  (indicating a dummy definition ending definitions of charstyles, etc).
20285  This entry is required in and is only meaningful for Flex insets.
20286  Among other things, it determines on which menu this inset will appear.
20287  Setting 
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 LyxType
20293 \end_layout
20294
20295 \end_inset
20296
20297  to 
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 charstyle
20303 \end_layout
20304
20305 \end_inset
20306
20307  will automatically set 
20308 \begin_inset Flex Code
20309 status collapsed
20310
20311 \begin_layout Plain Layout
20312 MultiPar
20313 \end_layout
20314
20315 \end_inset
20316
20317  to false and 
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 ForcePlain
20323 \end_layout
20324
20325 \end_inset
20326
20327  to true.
20328  
20329 \begin_inset Flex Code
20330 status collapsed
20331
20332 \begin_layout Plain Layout
20333 MultiPar
20334 \end_layout
20335
20336 \end_inset
20337
20338  can be set to true, or 
20339 \begin_inset Flex Code
20340 status collapsed
20341
20342 \begin_layout Plain Layout
20343 ForcePlain
20344 \end_layout
20345
20346 \end_inset
20347
20348  to false, for 
20349 \begin_inset Flex Code
20350 status collapsed
20351
20352 \begin_layout Plain Layout
20353 charstyle
20354 \end_layout
20355
20356 \end_inset
20357
20358  insets by setting it 
20359 \emph on
20360 after
20361 \emph default
20362  you set the 
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 LyxType
20368 \end_layout
20369
20370 \end_inset
20371
20372 .
20373 \change_inserted -712698321 1555575738
20374
20375 \end_layout
20376
20377 \begin_layout Description
20378
20379 \change_inserted -712698321 1555575844
20380 \begin_inset Flex Code
20381 status collapsed
20382
20383 \begin_layout Plain Layout
20384
20385 \change_inserted -712698321 1555575740
20386 MenuString
20387 \end_layout
20388
20389 \end_inset
20390
20391  
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396
20397 \change_inserted -712698321 1555575740
20398 [string]
20399 \end_layout
20400
20401 \end_inset
20402
20403  A dedicated string for the menu.
20404  You can define an accelerator by appending the respective character to
20405  the string, divided by 
20406 \begin_inset Quotes eld
20407 \end_inset
20408
20409 |
20410 \begin_inset Quotes erd
20411 \end_inset
20412
20413  (e.
20414 \begin_inset space \thinspace{}
20415 \end_inset
20416
20417 g.
20418 \begin_inset space \space{}
20419 \end_inset
20420
20421
20422 \begin_inset Quotes eld
20423 \end_inset
20424
20425
20426 \begin_inset Flex Code
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430
20431 \change_inserted -712698321 1555575781
20432 My Inset|M
20433 \end_layout
20434
20435 \end_inset
20436
20437
20438 \begin_inset Quotes erd
20439 \end_inset
20440
20441 ).
20442  This specification is optional.
20443  If it is not given the inset name as specified in the type declaration
20444  will be used instead for the menu.
20445 \change_unchanged
20446
20447 \end_layout
20448
20449 \begin_layout Description
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 MultiPar
20455 \end_layout
20456
20457 \end_inset
20458
20459  [
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464
20465 \emph on
20466 0
20467 \end_layout
20468
20469 \end_inset
20470
20471 ,
20472 \begin_inset space \thinspace{}
20473 \end_inset
20474
20475
20476 \begin_inset Flex Code
20477 status collapsed
20478
20479 \begin_layout Plain Layout
20480 1
20481 \end_layout
20482
20483 \end_inset
20484
20485 ] Whether multiple paragraphs are permitted in this inset.
20486  This will also set 
20487 \begin_inset Flex Code
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491 CustomPars
20492 \end_layout
20493
20494 \end_inset
20495
20496  to the same value and 
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 ForcePlain
20502 \end_layout
20503
20504 \end_inset
20505
20506  to the opposite value.
20507  These can be reset to other values, if they are used 
20508 \emph on
20509 after
20510 \emph default
20511  
20512 \begin_inset Flex Code
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516 MultiPar
20517 \end_layout
20518
20519 \end_inset
20520
20521 .
20522  Default is true.
20523 \end_layout
20524
20525 \begin_layout Description
20526 \begin_inset Flex Code
20527 status collapsed
20528
20529 \begin_layout Plain Layout
20530 NeedProtect
20531 \end_layout
20532
20533 \end_inset
20534
20535  [
20536 \begin_inset Flex Code
20537 status collapsed
20538
20539 \begin_layout Plain Layout
20540
20541 \emph on
20542 0
20543 \end_layout
20544
20545 \end_inset
20546
20547 ,
20548 \begin_inset space \thinspace{}
20549 \end_inset
20550
20551
20552 \begin_inset Flex Code
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556 1
20557 \end_layout
20558
20559 \end_inset
20560
20561 ] Whether fragile commands in this inset should be 
20562 \begin_inset Flex Code
20563 status collapsed
20564
20565 \begin_layout Plain Layout
20566
20567 \backslash
20568 protect
20569 \end_layout
20570
20571 \end_inset
20572
20573 'ed.
20574  (Note: This is 
20575 \emph on
20576 not
20577 \emph default
20578  whether the command should itself be protected.) Default is false.
20579 \change_inserted -712698321 1523633958
20580
20581 \end_layout
20582
20583 \begin_layout Description
20584
20585 \change_inserted -712698321 1552395786
20586 \begin_inset Flex Code
20587 status collapsed
20588
20589 \begin_layout Plain Layout
20590
20591 \change_inserted -712698321 1523633961
20592 NeedCProtect
20593 \end_layout
20594
20595 \end_inset
20596
20597  [
20598 \begin_inset Flex Code
20599 status collapsed
20600
20601 \begin_layout Plain Layout
20602
20603 \change_inserted -712698321 1523633958
20604
20605 \emph on
20606 0
20607 \end_layout
20608
20609 \end_inset
20610
20611 ,
20612 \begin_inset space \thinspace{}
20613 \end_inset
20614
20615
20616 \begin_inset Flex Code
20617 status collapsed
20618
20619 \begin_layout Plain Layout
20620
20621 \change_inserted -712698321 1523633958
20622 1
20623 \end_layout
20624
20625 \end_inset
20626
20627 ] This causes macros that contain this inset to be protected with 
20628 \begin_inset Flex Code
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632
20633 \change_inserted -712698321 1523634038
20634
20635 \backslash
20636 cprotect
20637 \change_unchanged
20638
20639 \end_layout
20640
20641 \end_inset
20642
20643  (cf.
20644  package 
20645 \family sans
20646 cprotect
20647 \family default
20648 ) if necessary and thus allows (some) verbatim stuff in macros.
20649  Default is false.
20650 \end_layout
20651
20652 \begin_layout Description
20653
20654 \change_inserted -712698321 1555579651
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659
20660 \change_inserted -712698321 1552395787
20661 NeedMBoxProtect
20662 \end_layout
20663
20664 \end_inset
20665
20666  [
20667 \begin_inset Flex Code
20668 status collapsed
20669
20670 \begin_layout Plain Layout
20671
20672 \change_inserted -712698321 1552395787
20673
20674 \emph on
20675 0
20676 \end_layout
20677
20678 \end_inset
20679
20680 ,
20681 \begin_inset space \thinspace{}
20682 \end_inset
20683
20684
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689
20690 \change_inserted -712698321 1552395787
20691 1
20692 \end_layout
20693
20694 \end_inset
20695
20696 ] Whether specific commands in this inset (such as 
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701
20702 \change_inserted -712698321 1552395787
20703
20704 \backslash
20705 cite
20706 \end_layout
20707
20708 \end_inset
20709
20710  and 
20711 \begin_inset Flex Code
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715
20716 \change_inserted -712698321 1552395787
20717
20718 \backslash
20719 ref
20720 \end_layout
20721
20722 \end_inset
20723
20724 ) should be protected in an 
20725 \begin_inset Flex Code
20726 status collapsed
20727
20728 \begin_layout Plain Layout
20729
20730 \change_inserted -712698321 1552395787
20731
20732 \backslash
20733 mbox
20734 \end_layout
20735
20736 \end_inset
20737
20738 .
20739  This is particularly needed for insets that draw on 
20740 \family sans
20741 ulem
20742 \family default
20743  or 
20744 \family sans
20745 soul
20746 \family default
20747  commands which parse their content in complex ways.
20748  Default is false.
20749 \end_layout
20750
20751 \begin_layout Description
20752
20753 \change_inserted -712698321 1555579742
20754 \begin_inset Flex Code
20755 status collapsed
20756
20757 \begin_layout Plain Layout
20758
20759 \change_inserted -712698321 1555579658
20760 NewlineCmd
20761 \end_layout
20762
20763 \end_inset
20764
20765  
20766 \begin_inset Flex Code
20767 status collapsed
20768
20769 \begin_layout Plain Layout
20770
20771 \change_inserted -712698321 1555579651
20772 [string]
20773 \end_layout
20774
20775 \end_inset
20776
20777  Option to define a different command (from the default 
20778 \begin_inset Flex Code
20779 status collapsed
20780
20781 \begin_layout Plain Layout
20782
20783 \change_inserted -712698321 1555579742
20784
20785 \backslash
20786
20787 \backslash
20788
20789 \change_unchanged
20790
20791 \end_layout
20792
20793 \end_inset
20794
20795 ) to be used for line breaks.
20796  The initial backslash must not be specified.
20797 \change_unchanged
20798
20799 \end_layout
20800
20801 \begin_layout Description
20802 \begin_inset Flex Code
20803 status collapsed
20804
20805 \begin_layout Plain Layout
20806 NoInsetLayout
20807 \end_layout
20808
20809 \end_inset
20810
20811  [
20812 \begin_inset Flex Code
20813 status collapsed
20814
20815 \begin_layout Plain Layout
20816 <layout>
20817 \end_layout
20818
20819 \end_inset
20820
20821 ] Deletes an existing 
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 InsetLayout
20827 \end_layout
20828
20829 \end_inset
20830
20831 .
20832 \end_layout
20833
20834 \begin_layout Description
20835 \begin_inset Flex Code
20836 status collapsed
20837
20838 \begin_layout Plain Layout
20839 ObsoletedBy
20840 \end_layout
20841
20842 \end_inset
20843
20844  [
20845 \begin_inset Flex Code
20846 status collapsed
20847
20848 \begin_layout Plain Layout
20849 <layout>
20850 \end_layout
20851
20852 \end_inset
20853
20854 ] Name of an 
20855 \begin_inset Flex Code
20856 status collapsed
20857
20858 \begin_layout Plain Layout
20859 InsetLayout
20860 \end_layout
20861
20862 \end_inset
20863
20864  that has replaced this 
20865 \begin_inset Flex Code
20866 status collapsed
20867
20868 \begin_layout Plain Layout
20869 InsetLayout
20870 \end_layout
20871
20872 \end_inset
20873
20874 .
20875  This is used to rename an 
20876 \begin_inset Flex Code
20877 status collapsed
20878
20879 \begin_layout Plain Layout
20880 InsetLayout
20881 \end_layout
20882
20883 \end_inset
20884
20885 , while keeping backward compatibility.
20886 \end_layout
20887
20888 \begin_layout Description
20889 \begin_inset Flex Code
20890 status collapsed
20891
20892 \begin_layout Plain Layout
20893 ParbreakIsNewline
20894 \end_layout
20895
20896 \end_inset
20897
20898  [
20899 \begin_inset Flex Code
20900 status collapsed
20901
20902 \begin_layout Plain Layout
20903
20904 \emph on
20905 0
20906 \end_layout
20907
20908 \end_inset
20909
20910 ,
20911 \begin_inset space \thinspace{}
20912 \end_inset
20913
20914
20915 \begin_inset Flex Code
20916 status collapsed
20917
20918 \begin_layout Plain Layout
20919 1
20920 \end_layout
20921
20922 \end_inset
20923
20924 ] As with paragraph styles, see 
20925 \begin_inset CommandInset ref
20926 LatexCommand ref
20927 reference "subsec:Paragraph-Styles"
20928
20929 \end_inset
20930
20931 .
20932  Default is false.
20933 \end_layout
20934
20935 \begin_layout Description
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 PassThru
20941 \end_layout
20942
20943 \end_inset
20944
20945  [
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950
20951 \emph on
20952 0
20953 \end_layout
20954
20955 \end_inset
20956
20957 ,
20958 \begin_inset space \thinspace{}
20959 \end_inset
20960
20961
20962 \begin_inset Flex Code
20963 status collapsed
20964
20965 \begin_layout Plain Layout
20966 1
20967 \end_layout
20968
20969 \end_inset
20970
20971 ] As with paragraph styles, see 
20972 \begin_inset CommandInset ref
20973 LatexCommand ref
20974 reference "subsec:Paragraph-Styles"
20975
20976 \end_inset
20977
20978 .
20979  Default is false.
20980 \end_layout
20981
20982 \begin_layout Description
20983 \begin_inset Flex Code
20984 status collapsed
20985
20986 \begin_layout Plain Layout
20987 Preamble
20988 \end_layout
20989
20990 \end_inset
20991
20992  As with paragraph styles, see 
20993 \begin_inset CommandInset ref
20994 LatexCommand ref
20995 reference "subsec:Paragraph-Styles"
20996
20997 \end_inset
20998
20999 .
21000 \end_layout
21001
21002 \begin_layout Description
21003 \begin_inset Flex Code
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007 RefPrefix
21008 \end_layout
21009
21010 \end_inset
21011
21012  [
21013 \begin_inset Flex Code
21014 status collapsed
21015
21016 \begin_layout Plain Layout
21017 string
21018 \end_layout
21019
21020 \end_inset
21021
21022 ] The prefix to use when creating labels referring to insets of this type.
21023  This allows the use of formatted references.
21024 \end_layout
21025
21026 \begin_layout Description
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 Requires
21032 \end_layout
21033
21034 \end_inset
21035
21036  [
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041 string
21042 \end_layout
21043
21044 \end_inset
21045
21046 ] As with paragraph styles, see 
21047 \begin_inset CommandInset ref
21048 LatexCommand ref
21049 reference "subsec:Paragraph-Styles"
21050
21051 \end_inset
21052
21053 .
21054 \end_layout
21055
21056 \begin_layout Description
21057 \begin_inset Flex Code
21058 status collapsed
21059
21060 \begin_layout Plain Layout
21061 ResetArgs
21062 \end_layout
21063
21064 \end_inset
21065
21066  [
21067 \begin_inset Flex Code
21068 status collapsed
21069
21070 \begin_layout Plain Layout
21071
21072 \emph on
21073 0
21074 \end_layout
21075
21076 \end_inset
21077
21078 ,
21079 \begin_inset space \thinspace{}
21080 \end_inset
21081
21082
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087 1
21088 \end_layout
21089
21090 \end_inset
21091
21092 ] Resets the \SpecialChar LaTeX
21093  arguments of this layout (as defined via the 
21094 \begin_inset Flex Code
21095 status collapsed
21096
21097 \begin_layout Plain Layout
21098 Argument
21099 \end_layout
21100
21101 \end_inset
21102
21103  tag).
21104  This is useful if you have copied a style via 
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109 CopyStyle
21110 \end_layout
21111
21112 \end_inset
21113
21114 , but you do not want to inherit its (required and optional) arguments.
21115 \end_layout
21116
21117 \begin_layout Description
21118 \begin_inset Flex Code
21119 status collapsed
21120
21121 \begin_layout Plain Layout
21122 ResetsFont
21123 \end_layout
21124
21125 \end_inset
21126
21127  [
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 0
21133 \end_layout
21134
21135 \end_inset
21136
21137 ,
21138 \begin_inset space \thinspace{}
21139 \end_inset
21140
21141
21142 \begin_inset Flex Code
21143 status collapsed
21144
21145 \begin_layout Plain Layout
21146
21147 \emph on
21148 1
21149 \end_layout
21150
21151 \end_inset
21152
21153 ] Whether this inset should use the font of its surrounding environment
21154  or uses its own.
21155  Default is false: use the font of the surrounding environment.
21156 \end_layout
21157
21158 \begin_layout Description
21159 \begin_inset Flex Code
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163 RightDelim
21164 \end_layout
21165
21166 \end_inset
21167
21168  [
21169 \begin_inset Flex Code
21170 status collapsed
21171
21172 \begin_layout Plain Layout
21173 string
21174 \end_layout
21175
21176 \end_inset
21177
21178 ] A string that is put at the end of the layout content.
21179  A line break in the output can be indicated by 
21180 \begin_inset Flex Code
21181 status collapsed
21182
21183 \begin_layout Plain Layout
21184 <br/>
21185 \end_layout
21186
21187 \end_inset
21188
21189 .
21190 \end_layout
21191
21192 \begin_layout Description
21193 \begin_inset Flex Code
21194 status collapsed
21195
21196 \begin_layout Plain Layout
21197 Spellcheck
21198 \end_layout
21199
21200 \end_inset
21201
21202  [
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207 0
21208 \end_layout
21209
21210 \end_inset
21211
21212 ,
21213 \begin_inset space \thinspace{}
21214 \end_inset
21215
21216
21217 \begin_inset Flex Code
21218 status collapsed
21219
21220 \begin_layout Plain Layout
21221
21222 \emph on
21223 1
21224 \end_layout
21225
21226 \end_inset
21227
21228 ] Allow spell-checking the contents of this inset.
21229  Default is true.
21230 \end_layout
21231
21232 \begin_layout Subsection
21233 Counters
21234 \begin_inset CommandInset label
21235 LatexCommand label
21236 name "subsec:Counters"
21237
21238 \end_inset
21239
21240
21241 \end_layout
21242
21243 \begin_layout Standard
21244 It is necessary to define the counters (
21245 \begin_inset Flex Noun
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249 chapter
21250 \end_layout
21251
21252 \end_inset
21253
21254
21255 \begin_inset Flex Noun
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 figure
21260 \end_layout
21261
21262 \end_inset
21263
21264 , \SpecialChar ldots
21265 ) in the text class itself.
21266  The standard counters are defined in the file 
21267 \begin_inset Flex Code
21268 status collapsed
21269
21270 \begin_layout Plain Layout
21271 stdcounters.inc
21272 \end_layout
21273
21274 \end_inset
21275
21276 , so you may have to do no more than add
21277 \end_layout
21278
21279 \begin_layout LyX-Code
21280 Input stdcounters.inc
21281 \end_layout
21282
21283 \begin_layout Standard
21284 to your layout file to get them to work.
21285  But if you want to define custom counters, then you can do so.
21286  The counter declaration must begin with:
21287 \end_layout
21288
21289 \begin_layout LyX-Code
21290 Counter CounterName
21291 \end_layout
21292
21293 \begin_layout Standard
21294 where of course `
21295 \begin_inset Flex Code
21296 status collapsed
21297
21298 \begin_layout Plain Layout
21299 CounterName
21300 \end_layout
21301
21302 \end_inset
21303
21304 ' is replaced by the name of the counter.
21305  And it must end with 
21306 \begin_inset Quotes eld
21307 \end_inset
21308
21309
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 End
21315 \end_layout
21316
21317 \end_inset
21318
21319
21320 \begin_inset Quotes erd
21321 \end_inset
21322
21323 .
21324  The following parameters can also be used:
21325 \end_layout
21326
21327 \begin_layout Description
21328 \begin_inset Flex Code
21329 status collapsed
21330
21331 \begin_layout Plain Layout
21332 InitialValue
21333 \end_layout
21334
21335 \end_inset
21336
21337  [
21338 \begin_inset Flex Code
21339 status collapsed
21340
21341 \begin_layout Plain Layout
21342 int=1
21343 \end_layout
21344
21345 \end_inset
21346
21347 ] Sets the initial value for the counter, to which it will be reset whenever
21348  that happens.
21349  Normally, one will want the default, 1.
21350 \end_layout
21351
21352 \begin_layout Description
21353 \begin_inset Flex Code
21354 status collapsed
21355
21356 \begin_layout Plain Layout
21357 LabelString
21358 \end_layout
21359
21360 \end_inset
21361
21362  [
21363 \begin_inset Flex Code
21364 status collapsed
21365
21366 \begin_layout Plain Layout
21367 string
21368 \end_layout
21369
21370 \end_inset
21371
21372 =
21373 \begin_inset Quotes erd
21374 \end_inset
21375
21376
21377 \begin_inset Quotes erd
21378 \end_inset
21379
21380 ] When defined, this string defines how the counter is displayed.
21381  Setting this value sets 
21382 \begin_inset Flex Code
21383 status collapsed
21384
21385 \begin_layout Plain Layout
21386 LabelStringAppendix
21387 \end_layout
21388
21389 \end_inset
21390
21391  to the same value.
21392  The following special constructs can be used in the string:
21393 \end_layout
21394
21395 \begin_deeper
21396 \begin_layout Itemize
21397 \begin_inset Flex Code
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401
21402 \backslash
21403 thecounter
21404 \end_layout
21405
21406 \end_inset
21407
21408  will be replaced by the expansion of the 
21409 \begin_inset Flex Code
21410 status collapsed
21411
21412 \begin_layout Plain Layout
21413 LabelString
21414 \end_layout
21415
21416 \end_inset
21417
21418  (or 
21419 \begin_inset Flex Code
21420 status collapsed
21421
21422 \begin_layout Plain Layout
21423 LabelStringAppendix
21424 \end_layout
21425
21426 \end_inset
21427
21428 ) of the counter 
21429 \begin_inset Flex Code
21430 status collapsed
21431
21432 \begin_layout Plain Layout
21433 counter
21434 \end_layout
21435
21436 \end_inset
21437
21438 .
21439  
21440 \end_layout
21441
21442 \begin_layout Itemize
21443 counter values can be expressed using \SpecialChar LaTeX
21444 -like macros
21445 \begin_inset Newline newline
21446 \end_inset
21447
21448
21449 \begin_inset Flex Code
21450 status collapsed
21451
21452 \begin_layout Plain Layout
21453
21454 \backslash
21455
21456 \emph on
21457 numbertype
21458 \emph default
21459 {
21460 \emph on
21461 counter
21462 \emph default
21463 }
21464 \end_layout
21465
21466 \end_inset
21467
21468 , where 
21469 \begin_inset Flex Code
21470 status collapsed
21471
21472 \begin_layout Plain Layout
21473
21474 \emph on
21475 numbertype
21476 \end_layout
21477
21478 \end_inset
21479
21480  can be:
21481 \begin_inset Foot
21482 status collapsed
21483
21484 \begin_layout Plain Layout
21485
21486 \family roman
21487 \series medium
21488 \shape up
21489 \size normal
21490 \emph off
21491 \bar no
21492 \noun off
21493 \color none
21494 Actually, the situation is a bit more complicated: any
21495 \family default
21496 \series default
21497 \shape default
21498 \emph default
21499 \bar default
21500  
21501 \size default
21502 \emph on
21503 \noun default
21504 \color inherit
21505 numbertype
21506 \family roman
21507 \series medium
21508 \shape up
21509 \size normal
21510 \emph off
21511 \bar no
21512 \noun off
21513  other than those described below will produce arabic numerals.
21514  It would not be surprising to see this change in the future.
21515 \end_layout
21516
21517 \end_inset
21518
21519  
21520 \begin_inset Flex Code
21521 status collapsed
21522
21523 \begin_layout Plain Layout
21524 arabic
21525 \end_layout
21526
21527 \end_inset
21528
21529 : 1, 2, 3,\SpecialChar ldots
21530
21531 \begin_inset Flex Code
21532 status collapsed
21533
21534 \begin_layout Plain Layout
21535 alph
21536 \end_layout
21537
21538 \end_inset
21539
21540  for lower-case letters: a, b, c, \SpecialChar ldots
21541
21542 \begin_inset Flex Code
21543 status collapsed
21544
21545 \begin_layout Plain Layout
21546 Alph
21547 \end_layout
21548
21549 \end_inset
21550
21551  for upper-case letters: A, B, C, \SpecialChar ldots
21552
21553 \begin_inset Flex Code
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557 roman
21558 \end_layout
21559
21560 \end_inset
21561
21562  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21563
21564 \begin_inset Flex Code
21565 status collapsed
21566
21567 \begin_layout Plain Layout
21568 Roman
21569 \end_layout
21570
21571 \end_inset
21572
21573  for upper-case roman numerals: I, II, III\SpecialChar ldots
21574
21575 \begin_inset Flex Code
21576 status collapsed
21577
21578 \begin_layout Plain Layout
21579 hebrew
21580 \end_layout
21581
21582 \end_inset
21583
21584  for hebrew numerals.
21585 \end_layout
21586
21587 \end_deeper
21588 \begin_layout Standard
21589 If LabelString is not defined, a default value is constructed as follows:
21590  if the counter has a master counter 
21591 \begin_inset Flex Code
21592 status collapsed
21593
21594 \begin_layout Plain Layout
21595 master
21596 \end_layout
21597
21598 \end_inset
21599
21600  (defined via 
21601 \begin_inset Flex Code
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605 Within
21606 \end_layout
21607
21608 \end_inset
21609
21610 ), the string
21611 \begin_inset Newline newline
21612 \end_inset
21613
21614
21615 \begin_inset Flex Code
21616 status collapsed
21617
21618 \begin_layout Plain Layout
21619
21620 \backslash
21621 themaster.
21622 \backslash
21623 arabic{counter}
21624 \end_layout
21625
21626 \end_inset
21627
21628  is used; otherwise the string 
21629 \begin_inset Flex Code
21630 status collapsed
21631
21632 \begin_layout Plain Layout
21633
21634 \backslash
21635 arabic{counter}
21636 \end_layout
21637
21638 \end_inset
21639
21640  is used.
21641 \end_layout
21642
21643 \begin_layout Description
21644 \begin_inset Flex Code
21645 status collapsed
21646
21647 \begin_layout Plain Layout
21648 LabelStringAppendix
21649 \end_layout
21650
21651 \end_inset
21652
21653  [
21654 \begin_inset Flex Code
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 string
21659 \end_layout
21660
21661 \end_inset
21662
21663 =
21664 \begin_inset Quotes erd
21665 \end_inset
21666
21667
21668 \begin_inset Quotes erd
21669 \end_inset
21670
21671 ] Same as 
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676 LabelString
21677 \end_layout
21678
21679 \end_inset
21680
21681 , but for use in the Appendix.
21682 \end_layout
21683
21684 \begin_layout Description
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 PrettyFormat
21690 \end_layout
21691
21692 \end_inset
21693
21694  [
21695 \begin_inset Flex Code
21696 status collapsed
21697
21698 \begin_layout Plain Layout
21699 string
21700 \end_layout
21701
21702 \end_inset
21703
21704 =
21705 \begin_inset Quotes erd
21706 \end_inset
21707
21708
21709 \begin_inset Quotes erd
21710 \end_inset
21711
21712 ] A format for use with formatted references to this counter.
21713  For example, one might want to have references to section numbers appear
21714  as 
21715 \begin_inset Quotes eld
21716 \end_inset
21717
21718 Section 2.4
21719 \begin_inset Quotes erd
21720 \end_inset
21721
21722 .
21723  The string should contain 
21724 \begin_inset Quotes eld
21725 \end_inset
21726
21727 ##
21728 \begin_inset Quotes erd
21729 \end_inset
21730
21731 .
21732  This will be replaced by the counter number itself.
21733  So, for sections, it would be: Section ##.
21734 \end_layout
21735
21736 \begin_layout Description
21737 \begin_inset Flex Code
21738 status collapsed
21739
21740 \begin_layout Plain Layout
21741 Within
21742 \end_layout
21743
21744 \end_inset
21745
21746  [
21747 \begin_inset Flex Code
21748 status collapsed
21749
21750 \begin_layout Plain Layout
21751 string
21752 \end_layout
21753
21754 \end_inset
21755
21756 =
21757 \begin_inset Quotes erd
21758 \end_inset
21759
21760
21761 \begin_inset Quotes erd
21762 \end_inset
21763
21764 ] If this is set to the name of another counter, the present counter will
21765  be reset every time the other one is increased.
21766  For example, 
21767 \begin_inset Flex Code
21768 status collapsed
21769
21770 \begin_layout Plain Layout
21771 subsection
21772 \end_layout
21773
21774 \end_inset
21775
21776  is numbered inside 
21777 \begin_inset Flex Code
21778 status collapsed
21779
21780 \begin_layout Plain Layout
21781 section
21782 \end_layout
21783
21784 \end_inset
21785
21786 .
21787 \end_layout
21788
21789 \begin_layout Subsection
21790 Font description
21791 \begin_inset CommandInset label
21792 LatexCommand label
21793 name "subsec:Font-description"
21794
21795 \end_inset
21796
21797
21798 \end_layout
21799
21800 \begin_layout Standard
21801 A font description looks like this:
21802 \end_layout
21803
21804 \begin_layout LyX-Code
21805 Font 
21806 \family roman
21807 \emph on
21808 or
21809 \family default
21810 \emph default
21811  LabelFont
21812 \emph on
21813  
21814 \family roman
21815 or
21816 \family default
21817 \emph default
21818  DefaultFont
21819 \end_layout
21820
21821 \begin_layout LyX-Code
21822  ...
21823 \end_layout
21824
21825 \begin_layout LyX-Code
21826 EndFont
21827 \end_layout
21828
21829 \begin_layout Standard
21830 The following commands are available:
21831 \end_layout
21832
21833 \begin_layout Description
21834 \begin_inset Flex Code
21835 status collapsed
21836
21837 \begin_layout Plain Layout
21838 Color
21839 \end_layout
21840
21841 \end_inset
21842
21843  [
21844 \begin_inset Flex Code
21845 status collapsed
21846
21847 \begin_layout Plain Layout
21848
21849 \emph on
21850 none
21851 \end_layout
21852
21853 \end_inset
21854
21855
21856 \begin_inset Flex Code
21857 status collapsed
21858
21859 \begin_layout Plain Layout
21860 black
21861 \end_layout
21862
21863 \end_inset
21864
21865
21866 \begin_inset Flex Code
21867 status collapsed
21868
21869 \begin_layout Plain Layout
21870 white
21871 \end_layout
21872
21873 \end_inset
21874
21875
21876 \begin_inset Flex Code
21877 status collapsed
21878
21879 \begin_layout Plain Layout
21880 red
21881 \end_layout
21882
21883 \end_inset
21884
21885
21886 \begin_inset Flex Code
21887 status collapsed
21888
21889 \begin_layout Plain Layout
21890 green
21891 \end_layout
21892
21893 \end_inset
21894
21895
21896 \begin_inset Flex Code
21897 status collapsed
21898
21899 \begin_layout Plain Layout
21900 blue
21901 \end_layout
21902
21903 \end_inset
21904
21905
21906 \begin_inset Flex Code
21907 status collapsed
21908
21909 \begin_layout Plain Layout
21910 cyan
21911 \end_layout
21912
21913 \end_inset
21914
21915
21916 \begin_inset Flex Code
21917 status collapsed
21918
21919 \begin_layout Plain Layout
21920 magenta
21921 \end_layout
21922
21923 \end_inset
21924
21925
21926 \begin_inset Flex Code
21927 status collapsed
21928
21929 \begin_layout Plain Layout
21930 yellow
21931 \end_layout
21932
21933 \end_inset
21934
21935
21936 \begin_inset Flex Code
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940 brown
21941 \end_layout
21942
21943 \end_inset
21944
21945
21946 \begin_inset Flex Code
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 darkgray
21951 \end_layout
21952
21953 \end_inset
21954
21955
21956 \begin_inset Flex Code
21957 status collapsed
21958
21959 \begin_layout Plain Layout
21960 gray
21961 \end_layout
21962
21963 \end_inset
21964
21965
21966 \begin_inset Flex Code
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970 lightgray
21971 \end_layout
21972
21973 \end_inset
21974
21975
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980 lime
21981 \end_layout
21982
21983 \end_inset
21984
21985
21986 \begin_inset Flex Code
21987 status collapsed
21988
21989 \begin_layout Plain Layout
21990 orange
21991 \end_layout
21992
21993 \end_inset
21994
21995
21996 \begin_inset Flex Code
21997 status collapsed
21998
21999 \begin_layout Plain Layout
22000 olive
22001 \end_layout
22002
22003 \end_inset
22004
22005
22006 \begin_inset Flex Code
22007 status collapsed
22008
22009 \begin_layout Plain Layout
22010 pink
22011 \end_layout
22012
22013 \end_inset
22014
22015
22016 \begin_inset Flex Code
22017 status collapsed
22018
22019 \begin_layout Plain Layout
22020 purple
22021 \end_layout
22022
22023 \end_inset
22024
22025
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 teal
22031 \end_layout
22032
22033 \end_inset
22034
22035
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 violet
22041 \end_layout
22042
22043 \end_inset
22044
22045 ]
22046 \end_layout
22047
22048 \begin_layout Description
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053 Family
22054 \end_layout
22055
22056 \end_inset
22057
22058  [
22059 \begin_inset Flex Code
22060 status collapsed
22061
22062 \begin_layout Plain Layout
22063
22064 \emph on
22065 Roman
22066 \end_layout
22067
22068 \end_inset
22069
22070
22071 \begin_inset Flex Code
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075 Sans
22076 \end_layout
22077
22078 \end_inset
22079
22080
22081 \begin_inset Flex Code
22082 status collapsed
22083
22084 \begin_layout Plain Layout
22085 Typewriter
22086 \end_layout
22087
22088 \end_inset
22089
22090 ]
22091 \end_layout
22092
22093 \begin_layout Description
22094 \begin_inset Flex Code
22095 status collapsed
22096
22097 \begin_layout Plain Layout
22098 Misc
22099 \end_layout
22100
22101 \end_inset
22102
22103  [
22104 \begin_inset Flex Code
22105 status collapsed
22106
22107 \begin_layout Plain Layout
22108 string
22109 \end_layout
22110
22111 \end_inset
22112
22113 ] Valid arguments are: 
22114 \begin_inset Flex Code
22115 status collapsed
22116
22117 \begin_layout Plain Layout
22118 emph
22119 \end_layout
22120
22121 \end_inset
22122
22123
22124 \begin_inset Flex Code
22125 status collapsed
22126
22127 \begin_layout Plain Layout
22128 noun
22129 \end_layout
22130
22131 \end_inset
22132
22133
22134 \begin_inset Flex Code
22135 status collapsed
22136
22137 \begin_layout Plain Layout
22138 strikeout
22139 \end_layout
22140
22141 \end_inset
22142
22143
22144 \begin_inset Flex Code
22145 status collapsed
22146
22147 \begin_layout Plain Layout
22148 underbar
22149 \end_layout
22150
22151 \end_inset
22152
22153
22154 \begin_inset Flex Code
22155 status collapsed
22156
22157 \begin_layout Plain Layout
22158 uuline
22159 \end_layout
22160
22161 \end_inset
22162
22163
22164 \begin_inset Flex Code
22165 status collapsed
22166
22167 \begin_layout Plain Layout
22168 uwave
22169 \end_layout
22170
22171 \end_inset
22172
22173
22174 \begin_inset Flex Code
22175 status collapsed
22176
22177 \begin_layout Plain Layout
22178 no_emph
22179 \end_layout
22180
22181 \end_inset
22182
22183
22184 \begin_inset Flex Code
22185 status collapsed
22186
22187 \begin_layout Plain Layout
22188 no_noun
22189 \end_layout
22190
22191 \end_inset
22192
22193
22194 \begin_inset Flex Code
22195 status collapsed
22196
22197 \begin_layout Plain Layout
22198 no_strikeout
22199 \end_layout
22200
22201 \end_inset
22202
22203
22204 \begin_inset Flex Code
22205 status collapsed
22206
22207 \begin_layout Plain Layout
22208 no_bar
22209 \end_layout
22210
22211 \end_inset
22212
22213
22214 \begin_inset Flex Code
22215 status collapsed
22216
22217 \begin_layout Plain Layout
22218 no_uuline
22219 \end_layout
22220
22221 \end_inset
22222
22223  and 
22224 \begin_inset Flex Code
22225 status collapsed
22226
22227 \begin_layout Plain Layout
22228 no_uwave
22229 \end_layout
22230
22231 \end_inset
22232
22233 .
22234  Each of these turns on or off the corresponding attribute.
22235  For example, 
22236 \begin_inset Flex Code
22237 status collapsed
22238
22239 \begin_layout Plain Layout
22240 emph
22241 \end_layout
22242
22243 \end_inset
22244
22245  turns on emphasis, and 
22246 \begin_inset Flex Code
22247 status collapsed
22248
22249 \begin_layout Plain Layout
22250 no_emph
22251 \end_layout
22252
22253 \end_inset
22254
22255  turns it off.
22256  
22257 \begin_inset Newline newline
22258 \end_inset
22259
22260 If the latter seems puzzling, remember that the font settings for the present
22261  context are generally inherited from the surrounding context.
22262  So 
22263 \begin_inset Flex Code
22264 status collapsed
22265
22266 \begin_layout Plain Layout
22267 no_emph
22268 \end_layout
22269
22270 \end_inset
22271
22272  would turn off the emphasis that was anyway in effect, say, in a theorem
22273  environment.
22274 \end_layout
22275
22276 \begin_layout Description
22277 \begin_inset Flex Code
22278 status collapsed
22279
22280 \begin_layout Plain Layout
22281 Series
22282 \end_layout
22283
22284 \end_inset
22285
22286  [
22287 \begin_inset Flex Code
22288 status collapsed
22289
22290 \begin_layout Plain Layout
22291
22292 \emph on
22293 Medium
22294 \end_layout
22295
22296 \end_inset
22297
22298
22299 \begin_inset Flex Code
22300 status collapsed
22301
22302 \begin_layout Plain Layout
22303 Bold
22304 \end_layout
22305
22306 \end_inset
22307
22308
22309 \end_layout
22310
22311 \begin_layout Description
22312 \begin_inset Flex Code
22313 status collapsed
22314
22315 \begin_layout Plain Layout
22316 Shape
22317 \end_layout
22318
22319 \end_inset
22320
22321  [
22322 \begin_inset Flex Code
22323 status collapsed
22324
22325 \begin_layout Plain Layout
22326
22327 \emph on
22328 Up
22329 \end_layout
22330
22331 \end_inset
22332
22333
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338 Italic
22339 \end_layout
22340
22341 \end_inset
22342
22343
22344 \begin_inset Flex Code
22345 status collapsed
22346
22347 \begin_layout Plain Layout
22348 SmallCaps
22349 \end_layout
22350
22351 \end_inset
22352
22353
22354 \begin_inset Flex Code
22355 status collapsed
22356
22357 \begin_layout Plain Layout
22358 Slanted
22359 \end_layout
22360
22361 \end_inset
22362
22363
22364 \end_layout
22365
22366 \begin_layout Description
22367 \begin_inset Flex Code
22368 status collapsed
22369
22370 \begin_layout Plain Layout
22371 Size
22372 \end_layout
22373
22374 \end_inset
22375
22376  [
22377 \begin_inset Flex Code
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381 tiny
22382 \end_layout
22383
22384 \end_inset
22385
22386
22387 \begin_inset Flex Code
22388 status collapsed
22389
22390 \begin_layout Plain Layout
22391 small
22392 \end_layout
22393
22394 \end_inset
22395
22396
22397 \begin_inset Flex Code
22398 status collapsed
22399
22400 \begin_layout Plain Layout
22401
22402 \emph on
22403 normal
22404 \end_layout
22405
22406 \end_inset
22407
22408
22409 \begin_inset Flex Code
22410 status collapsed
22411
22412 \begin_layout Plain Layout
22413 large
22414 \end_layout
22415
22416 \end_inset
22417
22418
22419 \begin_inset Flex Code
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423 larger
22424 \end_layout
22425
22426 \end_inset
22427
22428
22429 \begin_inset Flex Code
22430 status collapsed
22431
22432 \begin_layout Plain Layout
22433 largest
22434 \end_layout
22435
22436 \end_inset
22437
22438
22439 \begin_inset Flex Code
22440 status collapsed
22441
22442 \begin_layout Plain Layout
22443 huge
22444 \end_layout
22445
22446 \end_inset
22447
22448
22449 \begin_inset Flex Code
22450 status collapsed
22451
22452 \begin_layout Plain Layout
22453 giant
22454 \end_layout
22455
22456 \end_inset
22457
22458 ]
22459 \end_layout
22460
22461 \begin_layout Subsection
22462 \begin_inset CommandInset label
22463 LatexCommand label
22464 name "subsec:Citation-engine-description"
22465
22466 \end_inset
22467
22468 Cite engine description
22469 \end_layout
22470
22471 \begin_layout Standard
22472 The 
22473 \begin_inset Flex Code
22474 status collapsed
22475
22476 \begin_layout Plain Layout
22477 CiteEngine
22478 \end_layout
22479
22480 \end_inset
22481
22482  blocks, as used mainly in cite engine files (see 
22483 \begin_inset CommandInset ref
22484 LatexCommand ref
22485 reference "subsec:Cite-Engine-Files"
22486 plural "false"
22487 caps "false"
22488 noprefix "false"
22489
22490 \end_inset
22491
22492 ), define the citation commands provided by a specific 
22493 \begin_inset Quotes eld
22494 \end_inset
22495
22496 cite engine
22497 \begin_inset Quotes erd
22498 \end_inset
22499
22500 .
22501  A cite engine, in \SpecialChar LyX
22502  terms, is way specific way to format citations, using
22503  numbers, author names and/or years.
22504  Currently, \SpecialChar LyX
22505  supports three such engine types, namely:
22506 \end_layout
22507
22508 \begin_layout Enumerate
22509 \begin_inset Flex Code
22510 status collapsed
22511
22512 \begin_layout Plain Layout
22513 default
22514 \end_layout
22515
22516 \end_inset
22517
22518 : the default Bib\SpecialChar TeX
22519  way to format citations, a simple numeric style (e.
22520 \begin_inset space \thinspace{}
22521 \end_inset
22522
22523 g., 
22524 \begin_inset Quotes eld
22525 \end_inset
22526
22527 [1]
22528 \begin_inset Quotes erd
22529 \end_inset
22530
22531 )
22532 \end_layout
22533
22534 \begin_layout Enumerate
22535 \begin_inset Flex Code
22536 status collapsed
22537
22538 \begin_layout Plain Layout
22539 authoryear
22540 \end_layout
22541
22542 \end_inset
22543
22544 : Harvard-styled citations using author names and publication year (e.
22545 \begin_inset space \thinspace{}
22546 \end_inset
22547
22548 g., 
22549 \begin_inset Quotes eld
22550 \end_inset
22551
22552 Smith and Miller (2017b)
22553 \begin_inset Quotes erd
22554 \end_inset
22555
22556 )
22557 \end_layout
22558
22559 \begin_layout Enumerate
22560 \begin_inset Flex Code
22561 status collapsed
22562
22563 \begin_layout Plain Layout
22564 numerical
22565 \end_layout
22566
22567 \end_inset
22568
22569 : extended numerical citations that also allow for author or title next
22570  to the number (e.
22571 \begin_inset space \thinspace{}
22572 \end_inset
22573
22574 g., 
22575 \begin_inset Quotes eld
22576 \end_inset
22577
22578 Smith and Miller [1]
22579 \begin_inset Quotes erd
22580 \end_inset
22581
22582 )
22583 \end_layout
22584
22585 \begin_layout Standard
22586 \begin_inset Flex Code
22587 status collapsed
22588
22589 \begin_layout Plain Layout
22590 CiteEngine
22591 \end_layout
22592
22593 \end_inset
22594
22595  blocks look like this:
22596 \end_layout
22597
22598 \begin_layout LyX-Code
22599 CiteEngine default
22600 \end_layout
22601
22602 \begin_layout LyX-Code
22603  cite
22604 \end_layout
22605
22606 \begin_layout LyX-Code
22607  Citep*[][]
22608 \end_layout
22609
22610 \begin_layout LyX-Code
22611  citeyearpar[][]=parencite*
22612 \end_layout
22613
22614 \begin_layout LyX-Code
22615  ...
22616 \end_layout
22617
22618 \begin_layout LyX-Code
22619 End
22620 \end_layout
22621
22622 \begin_layout Standard
22623 The tag following 
22624 \begin_inset Flex Code
22625 status collapsed
22626
22627 \begin_layout Plain Layout
22628 CiteEngine
22629 \end_layout
22630
22631 \end_inset
22632
22633  denotes the engine.
22634  The individual lines respectively define a cite command or cite command
22635  paradigm supported by this engine.
22636  The line can be as simple as a cite command that is used both to name the
22637  respective \SpecialChar LyX
22638  command and the \SpecialChar LaTeX
22639  output or more complex in order to differentiate
22640  things.
22641  The full syntax is:
22642 \end_layout
22643
22644 \begin_layout LyX-Code
22645 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
22646 \end_layout
22647
22648 \begin_layout Itemize
22649 \begin_inset Flex Code
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653 LyXName
22654 \end_layout
22655
22656 \end_inset
22657
22658 : The name as used in the 
22659 \begin_inset Flex Code
22660 status collapsed
22661
22662 \begin_layout Plain Layout
22663 *.lyx
22664 \end_layout
22665
22666 \end_inset
22667
22668  file.
22669 \end_layout
22670
22671 \begin_deeper
22672 \begin_layout Standard
22673 For portability reasons, we try to use the same name for same-formatted
22674  commands in different cite packages (thus many names stem from natbib,
22675  and thus we need to differentiate a 
22676 \begin_inset Flex Code
22677 status collapsed
22678
22679 \begin_layout Plain Layout
22680 latexcmd
22681 \end_layout
22682
22683 \end_inset
22684
22685  sometimes, if the \SpecialChar LaTeX
22686  command names differ).
22687 \end_layout
22688
22689 \end_deeper
22690 \begin_layout Itemize
22691 \begin_inset Flex Code
22692 status collapsed
22693
22694 \begin_layout Plain Layout
22695 alias
22696 \end_layout
22697
22698 \end_inset
22699
22700 : a (comma-separated) list of commands that fall back to the given 
22701 \begin_inset Flex Code
22702 status collapsed
22703
22704 \begin_layout Plain Layout
22705 LyXName
22706 \end_layout
22707
22708 \end_inset
22709
22710  in the current engine.
22711  This eases the switch of citation packages and engines.
22712  The 
22713 \begin_inset Flex Code
22714 status collapsed
22715
22716 \begin_layout Plain Layout
22717 alias
22718 \end_layout
22719
22720 \end_inset
22721
22722  can be compared to 
22723 \begin_inset Flex Code
22724 status collapsed
22725
22726 \begin_layout Plain Layout
22727 ObsoletedBy
22728 \end_layout
22729
22730 \end_inset
22731
22732  in layout definitions.
22733 \end_layout
22734
22735 \begin_layout Itemize
22736 \begin_inset Flex Code
22737 status collapsed
22738
22739 \begin_layout Plain Layout
22740 latexcmd
22741 \end_layout
22742
22743 \end_inset
22744
22745 : The actual \SpecialChar LaTeX
22746  command that is output.
22747  
22748 \end_layout
22749
22750 \begin_layout Standard
22751 \begin_inset Flex Code
22752 status collapsed
22753
22754 \begin_layout Plain Layout
22755 Alias
22756 \end_layout
22757
22758 \end_inset
22759
22760  and 
22761 \begin_inset Flex Code
22762 status collapsed
22763
22764 \begin_layout Plain Layout
22765 latexcmd
22766 \end_layout
22767
22768 \end_inset
22769
22770  are optional.
22771  If no 
22772 \begin_inset Flex Code
22773 status collapsed
22774
22775 \begin_layout Plain Layout
22776 latexcmd
22777 \end_layout
22778
22779 \end_inset
22780
22781  is given, the 
22782 \begin_inset Flex Code
22783 status collapsed
22784
22785 \begin_layout Plain Layout
22786 LyXName
22787 \end_layout
22788
22789 \end_inset
22790
22791  will be output to \SpecialChar LaTeX
22792 .
22793 \end_layout
22794
22795 \begin_layout Standard
22796 Note further:
22797 \end_layout
22798
22799 \begin_layout Itemize
22800 Capitalization indicates that the command also has a capitalized form (
22801 \begin_inset Flex Code
22802 status collapsed
22803
22804 \begin_layout Plain Layout
22805
22806 \backslash
22807 Latexcmd
22808 \end_layout
22809
22810 \end_inset
22811
22812  vs.
22813  
22814 \begin_inset Flex Code
22815 status collapsed
22816
22817 \begin_layout Plain Layout
22818
22819 \backslash
22820 latexcmd
22821 \end_layout
22822
22823 \end_inset
22824
22825 ).
22826  These usually enforce up-casing of name prefixes (
22827 \emph on
22828 von Goethe
22829 \emph default
22830  
22831 \begin_inset Formula $\Rightarrow$
22832 \end_inset
22833
22834  
22835 \emph on
22836 Von Goethe
22837 \emph default
22838 ).
22839 \end_layout
22840
22841 \begin_layout Itemize
22842 Brackets 
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 []
22848 \end_layout
22849
22850 \end_inset
22851
22852  indicate the number of optional arguments (there can be 0–2).
22853 \end_layout
22854
22855 \begin_layout Itemize
22856 A star 
22857 \begin_inset Flex Code
22858 status collapsed
22859
22860 \begin_layout Plain Layout
22861 *
22862 \end_layout
22863
22864 \end_inset
22865
22866  indicates there is a starred version of the command (
22867 \begin_inset Flex Code
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871
22872 \backslash
22873 latexcmd*
22874 \end_layout
22875
22876 \end_inset
22877
22878  vs.
22879  
22880 \begin_inset Flex Code
22881 status collapsed
22882
22883 \begin_layout Plain Layout
22884
22885 \backslash
22886 latexcmd
22887 \end_layout
22888
22889 \end_inset
22890
22891 ).
22892  
22893 \end_layout
22894
22895 \begin_deeper
22896 \begin_layout Standard
22897 By default, the starred version means: Output all authors even if it should
22898  be shortened with 
22899 \begin_inset Quotes eld
22900 \end_inset
22901
22902 et al.
22903 \begin_inset Quotes erd
22904 \end_inset
22905
22906  due to the 
22907 \begin_inset Flex Code
22908 status collapsed
22909
22910 \begin_layout Plain Layout
22911 MaxCiteNames
22912 \end_layout
22913
22914 \end_inset
22915
22916  threshold.
22917 \end_layout
22918
22919 \begin_layout Standard
22920 If the star has a different meaning for a given command, it can be specified
22921  in angle brackets: 
22922 \begin_inset Flex Code
22923 status collapsed
22924
22925 \begin_layout Plain Layout
22926 <!_stardesc!_stardesctooltip>
22927 \end_layout
22928
22929 \end_inset
22930
22931 .
22932  Maximal two translatable macro keywords, marked by the prefix 
22933 \begin_inset Flex Code
22934 status collapsed
22935
22936 \begin_layout Plain Layout
22937 !_
22938 \end_layout
22939
22940 \end_inset
22941
22942 , can be given.
22943  The first points to the string that replaces the 
22944 \begin_inset Quotes eld
22945 \end_inset
22946
22947 Full aut&hor list
22948 \begin_inset Quotes erd
22949 \end_inset
22950
22951  checkbox label in the citation dialog, the second one to an optional tool
22952  tip for this checkbox.
22953  
22954 \end_layout
22955
22956 \begin_layout Standard
22957 Note that these two macros have to be defined in a 
22958 \begin_inset Flex Code
22959 status collapsed
22960
22961 \begin_layout Plain Layout
22962 CiteFormat
22963 \end_layout
22964
22965 \end_inset
22966
22967  (see next section), dropping the 
22968 \begin_inset Flex Code
22969 status collapsed
22970
22971 \begin_layout Plain Layout
22972 !
22973 \end_layout
22974
22975 \end_inset
22976
22977  from the prefix, like this: 
22978 \end_layout
22979
22980 \begin_layout LyX-Code
22981 _stardesc Sta&rred command label
22982 \end_layout
22983
22984 \begin_layout LyX-Code
22985 _stardesctooltip Tooltip for the starred command checkbox.
22986 \end_layout
22987
22988 \end_deeper
22989 \begin_layout Itemize
22990 A dollar sign 
22991 \begin_inset Flex Code
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995 $
22996 \end_layout
22997
22998 \end_inset
22999
23000  indicates that this command features 
23001 \begin_inset Quotes eld
23002 \end_inset
23003
23004 qualified citation lists
23005 \begin_inset Quotes erd
23006 \end_inset
23007
23008 .
23009  This is a 
23010 \family sans
23011 Biblatex
23012 \family default
23013 -specific feature for multi-reference citations where an individual pre-
23014  and postnote can be given to each reference in the list.
23015  Please refer to the 
23016 \family sans
23017 Biblatex
23018 \family default
23019  manual for details.
23020 \change_inserted -712698321 1526898670
23021
23022 \end_layout
23023
23024 \begin_layout Standard
23025
23026 \change_inserted -712698321 1526899524
23027 If you want to add a cite command to a cite engine (e.
23028 \begin_inset space \thinspace{}
23029 \end_inset
23030
23031 g., add a specific command provided by a class), you can use 
23032 \begin_inset Flex Code
23033 status collapsed
23034
23035 \begin_layout Plain Layout
23036
23037 \change_inserted -712698321 1526898768
23038 AddToCiteEngine <engine type> \SpecialChar ldots
23039  End
23040 \change_unchanged
23041
23042 \end_layout
23043
23044 \end_inset
23045
23046 .
23047  Note that only cite commands that do not exist yet are added.
23048 \change_unchanged
23049
23050 \end_layout
23051
23052 \begin_layout Subsection
23053 \begin_inset CommandInset label
23054 LatexCommand label
23055 name "subsec:Citation-format-description"
23056
23057 \end_inset
23058
23059 Cite format description
23060 \end_layout
23061
23062 \begin_layout Standard
23063 The 
23064 \begin_inset Flex Code
23065 status collapsed
23066
23067 \begin_layout Plain Layout
23068 CiteFormat
23069 \end_layout
23070
23071 \end_inset
23072
23073  blocks are used to describe how bibliographic information should be displayed,
23074  both within \SpecialChar LyX
23075  itself (in the citation dialog and in tooltips, for example)
23076  and in XHTML output.
23077  Such a block might look like this:
23078 \end_layout
23079
23080 \begin_layout LyX-Code
23081 CiteFormat
23082 \end_layout
23083
23084 \begin_layout LyX-Code
23085  article ...
23086 \end_layout
23087
23088 \begin_layout LyX-Code
23089  book ...
23090 \end_layout
23091
23092 \begin_layout LyX-Code
23093 End
23094 \end_layout
23095
23096 \begin_layout Standard
23097 or
23098 \end_layout
23099
23100 \begin_layout LyX-Code
23101 CiteFormat
23102 \end_layout
23103
23104 \begin_layout LyX-Code
23105  cite ...
23106 \end_layout
23107
23108 \begin_layout LyX-Code
23109  citet*[][] ...
23110 \end_layout
23111
23112 \begin_layout LyX-Code
23113 End
23114 \end_layout
23115
23116 \begin_layout Standard
23117 In the first case, the individual lines define how the bibliographic information
23118  associated with an article or book, respectively, is to be displayed, and
23119  such a definition can be given for any 
23120 \begin_inset Quotes els
23121 \end_inset
23122
23123 entry type
23124 \begin_inset Quotes ers
23125 \end_inset
23126
23127  that might be present in a Bib\SpecialChar TeX
23128  file.
23129  \SpecialChar LyX
23130  defines a default format in the source code that will be used if no specific
23131  definition has been given.
23132  \SpecialChar LyX
23133  predefines several formats in the file 
23134 \begin_inset Flex Code
23135 status collapsed
23136
23137 \begin_layout Plain Layout
23138 stdciteformats.inc
23139 \end_layout
23140
23141 \end_inset
23142
23143 , which is included in most of \SpecialChar LyX
23144 's document classes.
23145 \end_layout
23146
23147 \begin_layout Standard
23148 In the second case, the lines define how a specific citation command (in
23149  the example 
23150 \begin_inset Flex Code
23151 status collapsed
23152
23153 \begin_layout Plain Layout
23154
23155 \backslash
23156 cite
23157 \end_layout
23158
23159 \end_inset
23160
23161
23162 \begin_inset Flex Code
23163 status collapsed
23164
23165 \begin_layout Plain Layout
23166
23167 \backslash
23168 citet
23169 \end_layout
23170
23171 \end_inset
23172
23173 ) is to be displayed on the citation inset label, in the citation dialog,
23174  menu or XHTML output.
23175  \SpecialChar LyX
23176  defines such formats for the citation style variants it supports via 
23177 \family sans
23178 Document\SpecialChar menuseparator
23179 Setting\SpecialChar menuseparator
23180 Bibliography\SpecialChar ldots
23181
23182 \family default
23183  in specific 
23184 \begin_inset Flex Code
23185 status collapsed
23186
23187 \begin_layout Plain Layout
23188 *.citeengine
23189 \end_layout
23190
23191 \end_inset
23192
23193  files that are shipped with \SpecialChar LyX
23194  (see 
23195 \begin_inset CommandInset ref
23196 LatexCommand ref
23197 reference "subsec:Cite-Engine-Files"
23198 plural "false"
23199 caps "false"
23200 noprefix "false"
23201
23202 \end_inset
23203
23204 ).
23205 \end_layout
23206
23207 \begin_layout Standard
23208 The definitions use a simple language that allows Bib\SpecialChar TeX
23209  keys to be replaced
23210  with their values.
23211  Keys should be enclosed in 
23212 \begin_inset Flex Code
23213 status collapsed
23214
23215 \begin_layout Plain Layout
23216 %
23217 \end_layout
23218
23219 \end_inset
23220
23221  signs, e.g.: 
23222 \begin_inset Flex Code
23223 status collapsed
23224
23225 \begin_layout Plain Layout
23226 %author%
23227 \end_layout
23228
23229 \end_inset
23230
23231 .
23232  So a simple definition might look like this:
23233 \end_layout
23234
23235 \begin_layout LyX-Code
23236 misc %author%, 
23237 \begin_inset Quotes eld
23238 \end_inset
23239
23240 %title%
23241 \begin_inset Quotes erd
23242 \end_inset
23243
23244 .
23245 \end_layout
23246
23247 \begin_layout Standard
23248 This would print the author, followed by a comma, followed by the title,
23249  in quotes, followed by a period.
23250 \end_layout
23251
23252 \begin_layout Standard
23253 Of course, sometimes you may want to print a key only if it exists.
23254  This can be done by using a conditional construction, such as: 
23255 \begin_inset Flex Code
23256 status collapsed
23257
23258 \begin_layout Plain Layout
23259 {%volume%[[vol.
23260 \begin_inset space ~
23261 \end_inset
23262
23263 %volume%]]}
23264 \end_layout
23265
23266 \end_inset
23267
23268 .
23269  This says: If the 
23270 \begin_inset Flex Code
23271 status collapsed
23272
23273 \begin_layout Plain Layout
23274 volume
23275 \end_layout
23276
23277 \end_inset
23278
23279  key exists, then print 
23280 \begin_inset Quotes eld
23281 \end_inset
23282
23283 vol.
23284 \begin_inset space ~
23285 \end_inset
23286
23287
23288 \begin_inset Quotes erd
23289 \end_inset
23290
23291  followed by the volume key.
23292  It is also possible to have an else clause in the conditional, such as:
23293 \begin_inset Newline newline
23294 \end_inset
23295
23296
23297 \begin_inset Flex Code
23298 status collapsed
23299
23300 \begin_layout Plain Layout
23301 {%author%[[%author%]][[%editor%, ed.]]}
23302 \end_layout
23303
23304 \end_inset
23305
23306 .
23307 \begin_inset Newline newline
23308 \end_inset
23309
23310 Here, the 
23311 \begin_inset Flex Code
23312 status collapsed
23313
23314 \begin_layout Plain Layout
23315 author
23316 \end_layout
23317
23318 \end_inset
23319
23320  key is printed if it exists; otherwise, the editor key is printed, followed
23321  by 
23322 \begin_inset Quotes eld
23323 \end_inset
23324
23325 ,
23326 \begin_inset space ~
23327 \end_inset
23328
23329 ed.
23330 \begin_inset Quotes erd
23331 \end_inset
23332
23333  Note that the key is again enclosed in 
23334 \begin_inset Flex Code
23335 status collapsed
23336
23337 \begin_layout Plain Layout
23338 %
23339 \end_layout
23340
23341 \end_inset
23342
23343  signs; the entire conditional is enclosed in braces; and the if and else
23344  clauses are enclosed in double brackets, 
23345 \begin_inset Quotes eld
23346 \end_inset
23347
23348
23349 \begin_inset Flex Code
23350 status collapsed
23351
23352 \begin_layout Plain Layout
23353 [[
23354 \end_layout
23355
23356 \end_inset
23357
23358
23359 \begin_inset Quotes eld
23360 \end_inset
23361
23362  and 
23363 \begin_inset Quotes eld
23364 \end_inset
23365
23366
23367 \begin_inset Flex Code
23368 status collapsed
23369
23370 \begin_layout Plain Layout
23371 ]]
23372 \end_layout
23373
23374 \end_inset
23375
23376
23377 \begin_inset Quotes erd
23378 \end_inset
23379
23380 .
23381  There must be no space between any of these.
23382 \end_layout
23383
23384 \begin_layout Standard
23385 Next to the entry keys, there are some special keys that can be used for
23386  these conditionals:
23387 \end_layout
23388
23389 \begin_layout Itemize
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394 {%dialog%[[true]][[false]]}
23395 \end_layout
23396
23397 \end_inset
23398
23399 : process the 
23400 \begin_inset Quotes eld
23401 \end_inset
23402
23403 true
23404 \begin_inset Quotes erd
23405 \end_inset
23406
23407  part for dialogs and menus, the 
23408 \begin_inset Quotes eld
23409 \end_inset
23410
23411 false
23412 \begin_inset Quotes erd
23413 \end_inset
23414
23415  part for other contexts (workarea, export)
23416 \end_layout
23417
23418 \begin_layout Itemize
23419 \begin_inset Flex Code
23420 status collapsed
23421
23422 \begin_layout Plain Layout
23423 {%export%[[true]][[false]]}
23424 \end_layout
23425
23426 \end_inset
23427
23428 : process the 
23429 \begin_inset Quotes eld
23430 \end_inset
23431
23432 true
23433 \begin_inset Quotes erd
23434 \end_inset
23435
23436  part for export and menus, the 
23437 \begin_inset Quotes eld
23438 \end_inset
23439
23440 false
23441 \begin_inset Quotes erd
23442 \end_inset
23443
23444  part for other contexts (workarea, dialog)
23445 \end_layout
23446
23447 \begin_layout Itemize
23448 \begin_inset Flex Code
23449 status collapsed
23450
23451 \begin_layout Plain Layout
23452 {%next%[[true]]}
23453 \end_layout
23454
23455 \end_inset
23456
23457 : process the 
23458 \begin_inset Quotes eld
23459 \end_inset
23460
23461 true
23462 \begin_inset Quotes erd
23463 \end_inset
23464
23465  part if another item follows (e.
23466 \begin_inset space \thinspace{}
23467 \end_inset
23468
23469 g., in a citation with multiple keys)
23470 \end_layout
23471
23472 \begin_layout Itemize
23473 \begin_inset Flex Code
23474 status collapsed
23475
23476 \begin_layout Plain Layout
23477 {%second%[[true]][[false]]}
23478 \end_layout
23479
23480 \end_inset
23481
23482 : process the 
23483 \begin_inset Quotes eld
23484 \end_inset
23485
23486 true
23487 \begin_inset Quotes erd
23488 \end_inset
23489
23490  if this is the second of multiple items, else the 
23491 \begin_inset Quotes eld
23492 \end_inset
23493
23494 false
23495 \begin_inset Quotes erd
23496 \end_inset
23497
23498  part
23499 \end_layout
23500
23501 \begin_layout Itemize
23502 \begin_inset Flex Code
23503 status collapsed
23504
23505 \begin_layout Plain Layout
23506 {%ifstar%[[true]][[false]]}
23507 \end_layout
23508
23509 \end_inset
23510
23511 : process the 
23512 \begin_inset Quotes eld
23513 \end_inset
23514
23515 true
23516 \begin_inset Quotes erd
23517 \end_inset
23518
23519  part for starred citation commands (such as 
23520 \begin_inset Flex Code
23521 status collapsed
23522
23523 \begin_layout Plain Layout
23524
23525 \backslash
23526 cite*
23527 \end_layout
23528
23529 \end_inset
23530
23531 ), the false part for unstarred
23532 \end_layout
23533
23534 \begin_layout Itemize
23535 \begin_inset Flex Code
23536 status collapsed
23537
23538 \begin_layout Plain Layout
23539 {%ifentrytype:<type>%[[true]][[false]]}
23540 \end_layout
23541
23542 \end_inset
23543
23544 : process the 
23545 \begin_inset Quotes eld
23546 \end_inset
23547
23548 true
23549 \begin_inset Quotes erd
23550 \end_inset
23551
23552  if the current entry type matches 
23553 \begin_inset Flex Code
23554 status collapsed
23555
23556 \begin_layout Plain Layout
23557 <type>
23558 \end_layout
23559
23560 \end_inset
23561
23562 , else the false part (e.g., in a citation definition: 
23563 \begin_inset Flex Code
23564 status collapsed
23565
23566 \begin_layout Plain Layout
23567 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23568 \end_layout
23569
23570 \end_inset
23571
23572 )
23573 \end_layout
23574
23575 \begin_layout Itemize
23576 \begin_inset Flex Code
23577 status collapsed
23578
23579 \begin_layout Plain Layout
23580 {%ifmultiple:<authortype>%[[true]][[false]]}
23581 \end_layout
23582
23583 \end_inset
23584
23585 : process the 
23586 \begin_inset Quotes eld
23587 \end_inset
23588
23589 true
23590 \begin_inset Quotes erd
23591 \end_inset
23592
23593  if the current author type (author, editor etc.) has multiple authors, else
23594  the false part (e.g., in a bibliography definition: 
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599 {%ifmultiple:editor%[[eds.]][[ed.]]}
23600 \end_layout
23601
23602 \end_inset
23603
23604 )
23605 \end_layout
23606
23607 \begin_layout Itemize
23608 \begin_inset Flex Code
23609 status collapsed
23610
23611 \begin_layout Plain Layout
23612 {%ifqualified%[[true]][[false]]}
23613 \end_layout
23614
23615 \end_inset
23616
23617 : process the 
23618 \begin_inset Quotes eld
23619 \end_inset
23620
23621 true
23622 \begin_inset Quotes erd
23623 \end_inset
23624
23625  part if the current citation is a qualified citation list (a specific 
23626 \family sans
23627 Biblatex
23628 \family default
23629  format for multi-reference citations), the false part if this is not the
23630  case.
23631 \end_layout
23632
23633 \begin_layout Standard
23634 We said that 
23635 \begin_inset Flex Code
23636 status collapsed
23637
23638 \begin_layout Plain Layout
23639 %author%
23640 \end_layout
23641
23642 \end_inset
23643
23644  prints the author key as it is recorded in the bibliography file.
23645  This might not be what you want, since it will result in a string such
23646  as 
23647 \begin_inset Quotes eld
23648 \end_inset
23649
23650 Miller, Peter and Smith, Mary and White, Jane
23651 \begin_inset Quotes erd
23652 \end_inset
23653
23654  (since 
23655 \begin_inset Quotes eld
23656 \end_inset
23657
23658 and
23659 \begin_inset Quotes erd
23660 \end_inset
23661
23662  is used by Bib\SpecialChar TeX
23663  to delimit authors).
23664  \SpecialChar LyX
23665  therefore provides some methods to get properly formatted name lists (which
23666  will also get translated).
23667  The following keys are provided:
23668 \end_layout
23669
23670 \begin_layout Enumerate
23671 For name lists with pre- and surname, suitable for the main authors/editors
23672  of a bibliography item.
23673  The 
23674 \begin_inset Flex Code
23675 status collapsed
23676
23677 \begin_layout Plain Layout
23678 <nametype>
23679 \end_layout
23680
23681 \end_inset
23682
23683  part denotes the kind of list that is requested (e.g.
23684  
23685 \begin_inset Flex Code
23686 status collapsed
23687
23688 \begin_layout Plain Layout
23689 <nametype:author>
23690 \end_layout
23691
23692 \end_inset
23693
23694 ):
23695 \end_layout
23696
23697 \begin_deeper
23698 \begin_layout Itemize
23699 \begin_inset Flex Code
23700 status collapsed
23701
23702 \begin_layout Plain Layout
23703 %abbrvnames:<nametype>%
23704 \end_layout
23705
23706 \end_inset
23707
23708 : Provides a name list which is abbreviated (with 
23709 \begin_inset Quotes eld
23710 \end_inset
23711
23712 et al.
23713 \begin_inset Quotes erd
23714 \end_inset
23715
23716 ) when 
23717 \begin_inset Flex Code
23718 status collapsed
23719
23720 \begin_layout Plain Layout
23721 MaxCiteNames
23722 \end_layout
23723
23724 \end_inset
23725
23726  is reached.
23727 \end_layout
23728
23729 \begin_layout Itemize
23730 \begin_inset Flex Code
23731 status collapsed
23732
23733 \begin_layout Plain Layout
23734 %fullnames:<nametype>%
23735 \end_layout
23736
23737 \end_inset
23738
23739 : Provides a full name list (never abbreviated with 
23740 \begin_inset Quotes eld
23741 \end_inset
23742
23743 et al.
23744 \begin_inset Quotes erd
23745 \end_inset
23746
23747 ).
23748 \end_layout
23749
23750 \begin_layout Itemize
23751 \begin_inset Flex Code
23752 status collapsed
23753
23754 \begin_layout Plain Layout
23755 %forceabbrvnames:<nametype>%
23756 \end_layout
23757
23758 \end_inset
23759
23760 : Provides a name list which is always abbreviated (with 
23761 \begin_inset Quotes eld
23762 \end_inset
23763
23764 et al.
23765 \begin_inset Quotes erd
23766 \end_inset
23767
23768 ) irrespective of 
23769 \begin_inset Flex Code
23770 status collapsed
23771
23772 \begin_layout Plain Layout
23773 MaxCiteNames
23774 \end_layout
23775
23776 \end_inset
23777
23778 .
23779 \end_layout
23780
23781 \end_deeper
23782 \begin_layout Enumerate
23783 Alternative name lists with pre- and surname, if the order of pre- and surname
23784  inside the bibliography item differs (as in: 
23785 \begin_inset Quotes eld
23786 \end_inset
23787
23788 Miller, John: Some text, in: Mary Smith, ed.: A volume
23789 \begin_inset Quotes erd
23790 \end_inset
23791
23792 ):
23793 \end_layout
23794
23795 \begin_deeper
23796 \begin_layout Itemize
23797 \begin_inset Flex Code
23798 status collapsed
23799
23800 \begin_layout Plain Layout
23801 %abbrvbynames:<nametype>%
23802 \end_layout
23803
23804 \end_inset
23805
23806 : Provides a name list which is abbreviated (with 
23807 \begin_inset Quotes eld
23808 \end_inset
23809
23810 et al.
23811 \begin_inset Quotes erd
23812 \end_inset
23813
23814 ) when 
23815 \begin_inset Flex Code
23816 status collapsed
23817
23818 \begin_layout Plain Layout
23819 MaxCiteNames
23820 \end_layout
23821
23822 \end_inset
23823
23824  is reached.
23825 \end_layout
23826
23827 \begin_layout Itemize
23828 \begin_inset Flex Code
23829 status collapsed
23830
23831 \begin_layout Plain Layout
23832 %fullbynames:<nametype>%
23833 \end_layout
23834
23835 \end_inset
23836
23837 : Provides a full name list (never abbreviated with 
23838 \begin_inset Quotes eld
23839 \end_inset
23840
23841 et al.
23842 \begin_inset Quotes erd
23843 \end_inset
23844
23845 ).
23846 \end_layout
23847
23848 \begin_layout Itemize
23849 \begin_inset Flex Code
23850 status collapsed
23851
23852 \begin_layout Plain Layout
23853 %forceabbrvbynames:<nametype>%
23854 \end_layout
23855
23856 \end_inset
23857
23858 : Provides a name list which is always abbreviated (with 
23859 \begin_inset Quotes eld
23860 \end_inset
23861
23862 et al.
23863 \begin_inset Quotes erd
23864 \end_inset
23865
23866 ) irrespective of 
23867 \begin_inset Flex Code
23868 status collapsed
23869
23870 \begin_layout Plain Layout
23871 MaxCiteNames
23872 \end_layout
23873
23874 \end_inset
23875
23876 .
23877 \end_layout
23878
23879 \end_deeper
23880 \begin_layout Enumerate
23881 And finally name lists which consist of family names only, as used in author-yea
23882 r citation labels.
23883  These do not take a 
23884 \begin_inset Flex Code
23885 status collapsed
23886
23887 \begin_layout Plain Layout
23888 <nametype>
23889 \end_layout
23890
23891 \end_inset
23892
23893  part, but always return either an author list or, if this does not exist,
23894  an editor list (as common in author-year labels):
23895 \end_layout
23896
23897 \begin_deeper
23898 \begin_layout Itemize
23899 \begin_inset Flex Code
23900 status collapsed
23901
23902 \begin_layout Plain Layout
23903 %abbrvciteauthor%
23904 \end_layout
23905
23906 \end_inset
23907
23908 : Provides a name list which is abbreviated (with 
23909 \begin_inset Quotes eld
23910 \end_inset
23911
23912 et al.
23913 \begin_inset Quotes erd
23914 \end_inset
23915
23916 ) when 
23917 \begin_inset Flex Code
23918 status collapsed
23919
23920 \begin_layout Plain Layout
23921 MaxCiteNames
23922 \end_layout
23923
23924 \end_inset
23925
23926  is reached.
23927 \end_layout
23928
23929 \begin_layout Itemize
23930 \begin_inset Flex Code
23931 status collapsed
23932
23933 \begin_layout Plain Layout
23934 %fullciteauthor%
23935 \end_layout
23936
23937 \end_inset
23938
23939 : Provides a full name list (never abbreviated with 
23940 \begin_inset Quotes eld
23941 \end_inset
23942
23943 et al.
23944 \begin_inset Quotes erd
23945 \end_inset
23946
23947 ).
23948 \end_layout
23949
23950 \begin_layout Itemize
23951 \begin_inset Flex Code
23952 status collapsed
23953
23954 \begin_layout Plain Layout
23955 %forceabbrvciteauthor%
23956 \end_layout
23957
23958 \end_inset
23959
23960 : Provides a name list which is always abbreviated (with 
23961 \begin_inset Quotes eld
23962 \end_inset
23963
23964 et al.
23965 \begin_inset Quotes erd
23966 \end_inset
23967
23968 ) irrespective of 
23969 \begin_inset Flex Code
23970 status collapsed
23971
23972 \begin_layout Plain Layout
23973 MaxCiteNames
23974 \end_layout
23975
23976 \end_inset
23977
23978 .
23979 \end_layout
23980
23981 \end_deeper
23982 \begin_layout Standard
23983 The order of pre- and surname in the former two lists can be adjusted by
23984  these macros:
23985 \end_layout
23986
23987 \begin_layout Itemize
23988 \begin_inset Flex Code
23989 status collapsed
23990
23991 \begin_layout Plain Layout
23992 !firstnameform %surname%, %prename%
23993 \end_layout
23994
23995 \end_inset
23996
23997  (first author in lists of type 1)
23998 \end_layout
23999
24000 \begin_layout Itemize
24001 \begin_inset Flex Code
24002 status collapsed
24003
24004 \begin_layout Plain Layout
24005 !othernameform %surname%, %prename%
24006 \end_layout
24007
24008 \end_inset
24009
24010  (other authors in lists of type 1)
24011 \end_layout
24012
24013 \begin_layout Itemize
24014 \begin_inset Flex Code
24015 status collapsed
24016
24017 \begin_layout Plain Layout
24018 !firstbynameform %prename% %surname%
24019 \end_layout
24020
24021 \end_inset
24022
24023  (first author in lists of type 2)
24024 \end_layout
24025
24026 \begin_layout Itemize
24027 \begin_inset Flex Code
24028 status collapsed
24029
24030 \begin_layout Plain Layout
24031 !otherbynameform %prename% %surname%
24032 \end_layout
24033
24034 \end_inset
24035
24036  (other authors in lists of type 2)
24037 \end_layout
24038
24039 \begin_layout Standard
24040 This allows you to configure namings like 
24041 \begin_inset Quotes eld
24042 \end_inset
24043
24044 Miller, Peter and Mary Smith: \SpecialChar ldots
24045 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24046
24047 \begin_inset Quotes erd
24048 \end_inset
24049
24050 .
24051 \end_layout
24052
24053 \begin_layout Standard
24054 There is one other piece of syntax available in definitions, which looks
24055  like this: 
24056 \begin_inset Flex Code
24057 status collapsed
24058
24059 \begin_layout Plain Layout
24060 {!<i>!}
24061 \end_layout
24062
24063 \end_inset
24064
24065 .
24066  This defines a piece of formatting information that is to be used when
24067  creating 
24068 \begin_inset Quotes eld
24069 \end_inset
24070
24071 rich text
24072 \begin_inset Quotes erd
24073 \end_inset
24074
24075 .
24076  Obviously, we do not want to output HTML tags when writing plain text,
24077  so they should be wrapped in 
24078 \begin_inset Quotes eld
24079 \end_inset
24080
24081 {!
24082 \begin_inset Quotes erd
24083 \end_inset
24084
24085  and 
24086 \begin_inset Quotes eld
24087 \end_inset
24088
24089 !}
24090 \begin_inset Quotes erd
24091 \end_inset
24092
24093 .
24094 \end_layout
24095
24096 \begin_layout Standard
24097 Two special sorts of definitions are also possible in a 
24098 \begin_inset Flex Code
24099 status collapsed
24100
24101 \begin_layout Plain Layout
24102 CiteFormat
24103 \end_layout
24104
24105 \end_inset
24106
24107  block.
24108  An example of the first would be:
24109 \end_layout
24110
24111 \begin_layout LyX-Code
24112 !quotetitle 
24113 \begin_inset Quotes eld
24114 \end_inset
24115
24116 %title%
24117 \begin_inset Quotes erd
24118 \end_inset
24119
24120
24121 \end_layout
24122
24123 \begin_layout Standard
24124 This is an abbreviation, or macro, and it can be used by treating it as
24125  if it were a key: 
24126 \begin_inset Flex Code
24127 status collapsed
24128
24129 \begin_layout Plain Layout
24130 %!quotetitle%
24131 \end_layout
24132
24133 \end_inset
24134
24135 .
24136  \SpecialChar LyX
24137  will treat 
24138 \begin_inset Flex Code
24139 status collapsed
24140
24141 \begin_layout Plain Layout
24142 %!quotetitle%
24143 \end_layout
24144
24145 \end_inset
24146
24147  exactly as it would treat its definition.
24148  So, let us issue the obvious 
24149 \emph on
24150 warning
24151 \emph default
24152 .
24153  Do not do this:
24154 \end_layout
24155
24156 \begin_layout LyX-Code
24157 !funfun %funfun%
24158 \end_layout
24159
24160 \begin_layout Standard
24161 or anything like it.
24162  \SpecialChar LyX
24163  shouldn't go into an infinite loop, but it may go into a long one before
24164  it gives up.
24165 \end_layout
24166
24167 \begin_layout Standard
24168 The second sort of special definition might look like this:
24169 \end_layout
24170
24171 \begin_layout LyX-Code
24172 B_pptext pp.
24173 \end_layout
24174
24175 \begin_layout Standard
24176 This defines a translatable piece of text, which allows relevant parts of
24177  the bibliography or citation to be translated.
24178  It can be included in a definition by treating it as a key: 
24179 \begin_inset Flex Code
24180 status collapsed
24181
24182 \begin_layout Plain Layout
24183 %B_pptext%
24184 \end_layout
24185
24186 \end_inset
24187
24188 .
24189  Note that there are two different translation paths: All definitions starting
24190  with 
24191 \begin_inset Flex Code
24192 status collapsed
24193
24194 \begin_layout Plain Layout
24195 B_
24196 \end_layout
24197
24198 \end_inset
24199
24200 , such as in the example above, will be translated to the currently active
24201  buffer language (so the translation will match the generated document).
24202  All definitions starting with underscore only will be translated to the
24203  GUI language.
24204  This is the proper translation for strings that only occur in the dialogs
24205  or on buttons, such as this one:
24206 \end_layout
24207
24208 \begin_layout LyX-Code
24209 _addtobib Add to bibliography only.
24210 \end_layout
24211
24212 \begin_layout Standard
24213 Several of these translatable strings are predefined in 
24214 \begin_inset Flex Code
24215 status collapsed
24216
24217 \begin_layout Plain Layout
24218 stdciteformats.inc
24219 \end_layout
24220
24221 \end_inset
24222
24223  and the diverse 
24224 \begin_inset Flex Code
24225 status collapsed
24226
24227 \begin_layout Plain Layout
24228 *.citeengine
24229 \end_layout
24230
24231 \end_inset
24232
24233  files.
24234  Note that these are not macros, in the sense just defined.
24235  They will not be expanded.
24236 \end_layout
24237
24238 \begin_layout Standard
24239 So here then is an example that uses several of these features:
24240 \begin_inset VSpace defskip
24241 \end_inset
24242
24243
24244 \end_layout
24245
24246 \begin_layout Standard
24247 \noindent
24248
24249 \family sans
24250 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24251 \end_layout
24252
24253 \begin_layout Standard
24254 \begin_inset VSpace defskip
24255 \end_inset
24256
24257 This defines a macro that prints the author, followed by a comma, if the
24258  
24259 \begin_inset Flex Code
24260 status collapsed
24261
24262 \begin_layout Plain Layout
24263 author
24264 \end_layout
24265
24266 \end_inset
24267
24268  key is defined, or else prints the name of the editor, followed by the
24269  
24270 \begin_inset Flex Code
24271 status collapsed
24272
24273 \begin_layout Plain Layout
24274 B_edtext
24275 \end_layout
24276
24277 \end_inset
24278
24279  or its translation (it is by default 
24280 \begin_inset Quotes eld
24281 \end_inset
24282
24283 ed.
24284 \begin_inset Quotes erd
24285 \end_inset
24286
24287 ), if the 
24288 \begin_inset Flex Code
24289 status collapsed
24290
24291 \begin_layout Plain Layout
24292 editor
24293 \end_layout
24294
24295 \end_inset
24296
24297  key is defined.
24298  Note that this is in fact defined in 
24299 \begin_inset Flex Code
24300 status collapsed
24301
24302 \begin_layout Plain Layout
24303 stdciteformats.inc
24304 \end_layout
24305
24306 \end_inset
24307
24308 , so you can use it in your own definitions, or re-definitions, if you load
24309  that file first.
24310 \end_layout
24311
24312 \begin_layout Section
24313 \begin_inset CommandInset label
24314 LatexCommand label
24315 name "sec:Tags-for-XHTML"
24316
24317 \end_inset
24318
24319 Tags for XHTML output
24320 \end_layout
24321
24322 \begin_layout Standard
24323 As with \SpecialChar LaTeX
24324  or DocBook, the format of \SpecialChar LyX
24325 's XHTML output is also controlled by
24326  layout information.
24327  In general, \SpecialChar LyX
24328  provides sensible defaults and, as mentioned earlier, it will
24329  even construct default CSS style rules from the other layout tags.
24330  For example, \SpecialChar LyX
24331  will attempt to use the information provided in the 
24332 \begin_inset Flex Code
24333 status collapsed
24334
24335 \begin_layout Plain Layout
24336 Font
24337 \end_layout
24338
24339 \end_inset
24340
24341  declaration for the Chapter style to write CSS that will appropriately
24342  format chapter headings.
24343 \end_layout
24344
24345 \begin_layout Standard
24346 In many cases, then, you may not have to do anything at all to get acceptable
24347  XHTML output for your own environments, custom insets, and so forth.
24348  But in some cases you will, and so \SpecialChar LyX
24349  provides a number of layout tags that
24350  can be used to customize the XHTML and CSS that are generated.
24351 \end_layout
24352
24353 \begin_layout Standard
24354 Note that there are two tags, 
24355 \begin_inset Flex Code
24356 status collapsed
24357
24358 \begin_layout Plain Layout
24359 HTMLPreamble
24360 \end_layout
24361
24362 \end_inset
24363
24364  and 
24365 \begin_inset Flex Code
24366 status collapsed
24367
24368 \begin_layout Plain Layout
24369 AddToHTMLPreamble
24370 \end_layout
24371
24372 \end_inset
24373
24374  that may appear outside style and inset declarations.
24375  See 
24376 \begin_inset CommandInset ref
24377 LatexCommand ref
24378 reference "subsec:General-text-class"
24379
24380 \end_inset
24381
24382  for details on these.
24383 \end_layout
24384
24385 \begin_layout Subsection
24386 \begin_inset CommandInset label
24387 LatexCommand label
24388 name "subsec:Paragraph-Style-XHTML"
24389
24390 \end_inset
24391
24392 Paragraph styles
24393 \end_layout
24394
24395 \begin_layout Standard
24396 The sort of XHTML \SpecialChar LyX
24397  outputs for a paragraph depends upon whether we are dealing
24398  with a normal paragraph, a command, or an environment, where this is itself
24399  determined by the contents of the corresponding 
24400 \begin_inset Flex Code
24401 status collapsed
24402
24403 \begin_layout Plain Layout
24404 \SpecialChar LaTeX
24405 Type
24406 \end_layout
24407
24408 \end_inset
24409
24410  tag.
24411  
24412 \end_layout
24413
24414 \begin_layout Standard
24415 For a command or normal paragraph, the output XHTML has the following form:
24416 \end_layout
24417
24418 \begin_layout LyX-Code
24419
24420 \family sans
24421 <tag attr=
24422 \begin_inset Quotes erd
24423 \end_inset
24424
24425 value
24426 \begin_inset Quotes erd
24427 \end_inset
24428
24429 >
24430 \end_layout
24431
24432 \begin_layout LyX-Code
24433
24434 \family sans
24435 <labeltag attr=
24436 \begin_inset Quotes erd
24437 \end_inset
24438
24439 value
24440 \begin_inset Quotes erd
24441 \end_inset
24442
24443 >Label</labeltag>
24444 \end_layout
24445
24446 \begin_layout LyX-Code
24447
24448 \family sans
24449 Contents of the paragraph.
24450 \end_layout
24451
24452 \begin_layout LyX-Code
24453
24454 \family sans
24455 </tag>
24456 \end_layout
24457
24458 \begin_layout Standard
24459 The label tags are of course omitted if the paragraph does not have a label.
24460 \end_layout
24461
24462 \begin_layout Standard
24463 For an environment that is not some sort of list, the XHTML takes this form:
24464 \end_layout
24465
24466 \begin_layout LyX-Code
24467
24468 \family sans
24469 <tag attr=
24470 \begin_inset Quotes erd
24471 \end_inset
24472
24473 value
24474 \begin_inset Quotes erd
24475 \end_inset
24476
24477 >
24478 \end_layout
24479
24480 \begin_layout LyX-Code
24481
24482 \family sans
24483 <itemtag attr=
24484 \begin_inset Quotes erd
24485 \end_inset
24486
24487 value
24488 \begin_inset Quotes erd
24489 \end_inset
24490
24491 ><labeltag attr=
24492 \begin_inset Quotes erd
24493 \end_inset
24494
24495 value
24496 \begin_inset Quotes erd
24497 \end_inset
24498
24499 >Environment Label</labeltag>First paragraph.</itemtag>
24500 \end_layout
24501
24502 \begin_layout LyX-Code
24503
24504 \family sans
24505 <itemtag>Second paragraph.</itemtag>
24506 \end_layout
24507
24508 \begin_layout LyX-Code
24509
24510 \family sans
24511 </tag>
24512 \end_layout
24513
24514 \begin_layout Standard
24515 Note that the label is output only for the first paragraph, as it should
24516  be for a theorem, for example.
24517  
24518 \end_layout
24519
24520 \begin_layout Standard
24521 For a list, we have one of these forms:
24522 \end_layout
24523
24524 \begin_layout LyX-Code
24525
24526 \family sans
24527 <tag attr=
24528 \begin_inset Quotes erd
24529 \end_inset
24530
24531 value
24532 \begin_inset Quotes erd
24533 \end_inset
24534
24535 >
24536 \end_layout
24537
24538 \begin_layout LyX-Code
24539
24540 \family sans
24541 <itemtag attr=
24542 \begin_inset Quotes erd
24543 \end_inset
24544
24545 value
24546 \begin_inset Quotes erd
24547 \end_inset
24548
24549 ><labeltag attr=
24550 \begin_inset Quotes erd
24551 \end_inset
24552
24553 value
24554 \begin_inset Quotes erd
24555 \end_inset
24556
24557 >List Label</labeltag>First item.</itemtag>
24558 \end_layout
24559
24560 \begin_layout LyX-Code
24561
24562 \family sans
24563 <itemtag attr=
24564 \begin_inset Quotes erd
24565 \end_inset
24566
24567 value
24568 \begin_inset Quotes erd
24569 \end_inset
24570
24571 ><labeltag attr=
24572 \begin_inset Quotes erd
24573 \end_inset
24574
24575 value
24576 \begin_inset Quotes erd
24577 \end_inset
24578
24579 >List Label</labeltag>Second item.</itemtag>
24580 \end_layout
24581
24582 \begin_layout LyX-Code
24583
24584 \family sans
24585 </tag>
24586 \end_layout
24587
24588 \begin_layout LyX-Code
24589
24590 \end_layout
24591
24592 \begin_layout LyX-Code
24593
24594 \family sans
24595 <tag attr=
24596 \begin_inset Quotes erd
24597 \end_inset
24598
24599 value
24600 \begin_inset Quotes erd
24601 \end_inset
24602
24603 >
24604 \end_layout
24605
24606 \begin_layout LyX-Code
24607
24608 \family sans
24609 <labeltag attr=
24610 \begin_inset Quotes erd
24611 \end_inset
24612
24613 value
24614 \begin_inset Quotes erd
24615 \end_inset
24616
24617 >List Label</labeltag><itemtag attr=
24618 \begin_inset Quotes erd
24619 \end_inset
24620
24621 value
24622 \begin_inset Quotes erd
24623 \end_inset
24624
24625 >First item.</itemtag>
24626 \end_layout
24627
24628 \begin_layout LyX-Code
24629
24630 \family sans
24631 <labeltag attr=
24632 \begin_inset Quotes erd
24633 \end_inset
24634
24635 value
24636 \begin_inset Quotes erd
24637 \end_inset
24638
24639 >List Label</labeltag><itemtag attr=
24640 \begin_inset Quotes erd
24641 \end_inset
24642
24643 value
24644 \begin_inset Quotes erd
24645 \end_inset
24646
24647 >Second item.</itemtag>
24648 \end_layout
24649
24650 \begin_layout LyX-Code
24651
24652 \family sans
24653 </tag>
24654 \end_layout
24655
24656 \begin_layout Standard
24657 Note the different orders of 
24658 \begin_inset Flex Code
24659 status collapsed
24660
24661 \begin_layout Plain Layout
24662 labeltag
24663 \end_layout
24664
24665 \end_inset
24666
24667  and 
24668 \begin_inset Flex Code
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672 itemtag
24673 \end_layout
24674
24675 \end_inset
24676
24677 .
24678  Which order we get depends upon the setting of 
24679 \begin_inset Flex Code
24680 status collapsed
24681
24682 \begin_layout Plain Layout
24683 HTMLLabelFirst
24684 \end_layout
24685
24686 \end_inset
24687
24688 : If 
24689 \begin_inset Flex Code
24690 status collapsed
24691
24692 \begin_layout Plain Layout
24693 HTMLLabelFirst
24694 \end_layout
24695
24696 \end_inset
24697
24698  is false (the default), you get the first of these, with the label within
24699  the item; if true, you get the second, with the label outside the item.
24700 \end_layout
24701
24702 \begin_layout Standard
24703 The specific tags and attributes output for each paragraph type can be controlle
24704 d by means of the layout tags we are about to describe.
24705  As mentioned earlier, however, \SpecialChar LyX
24706  uses sensible defaults for many of these,
24707  so you often may not need to do very much to get good XHTML output.
24708  Think of the available tags as there so you can tweak things to your liking.
24709 \end_layout
24710
24711 \begin_layout Description
24712 \begin_inset Flex Code
24713 status collapsed
24714
24715 \begin_layout Plain Layout
24716 HTMLAttr
24717 \end_layout
24718
24719 \end_inset
24720
24721  [
24722 \begin_inset Flex Code
24723 status collapsed
24724
24725 \begin_layout Plain Layout
24726 string
24727 \end_layout
24728
24729 \end_inset
24730
24731 ] Specifies attribute information to be output with the main tag.
24732  For example, 
24733 \begin_inset Quotes eld
24734 \end_inset
24735
24736
24737 \begin_inset Flex Code
24738 status collapsed
24739
24740 \begin_layout Plain Layout
24741 class=`mydiv'
24742 \end_layout
24743
24744 \end_inset
24745
24746
24747 \begin_inset Quotes erd
24748 \end_inset
24749
24750 .
24751  By default, \SpecialChar LyX
24752  will output 
24753 \begin_inset Quotes eld
24754 \end_inset
24755
24756
24757 \begin_inset Flex Code
24758 status collapsed
24759
24760 \begin_layout Plain Layout
24761 class=`layoutname'
24762 \end_layout
24763
24764 \end_inset
24765
24766
24767 \begin_inset Quotes erd
24768 \end_inset
24769
24770 , where 
24771 \begin_inset Flex Code
24772 status collapsed
24773
24774 \begin_layout Plain Layout
24775 layoutname
24776 \end_layout
24777
24778 \end_inset
24779
24780  is the \SpecialChar LyX
24781  name of the layout, made lowercase, for example: chapter.
24782  This should 
24783 \emph on
24784 not
24785 \emph default
24786  contain any style information.
24787  Use 
24788 \begin_inset Flex Code
24789 status collapsed
24790
24791 \begin_layout Plain Layout
24792 HTMLStyle
24793 \end_layout
24794
24795 \end_inset
24796
24797  for that purpose.
24798 \end_layout
24799
24800 \begin_layout Description
24801 \begin_inset Flex Code
24802 status collapsed
24803
24804 \begin_layout Plain Layout
24805 HTMLForceCSS
24806 \end_layout
24807
24808 \end_inset
24809
24810  [
24811 \begin_inset Flex Code
24812 status collapsed
24813
24814 \begin_layout Plain Layout
24815
24816 \emph on
24817 0
24818 \emph default
24819 ,1
24820 \end_layout
24821
24822 \end_inset
24823
24824 ] Whether to output the default CSS information \SpecialChar LyX
24825  generates for this layout,
24826  even if additional information is explicitly provided via 
24827 \begin_inset Flex Code
24828 status collapsed
24829
24830 \begin_layout Plain Layout
24831 HTMLStyle
24832 \end_layout
24833
24834 \end_inset
24835
24836 .
24837  Setting this to 
24838 \begin_inset Flex Code
24839 status collapsed
24840
24841 \begin_layout Plain Layout
24842 1
24843 \end_layout
24844
24845 \end_inset
24846
24847  allows you to alter or augment the generated CSS, rather than to override
24848  it completely.
24849  Default is 
24850 \begin_inset Flex Code
24851 status collapsed
24852
24853 \begin_layout Plain Layout
24854 0
24855 \end_layout
24856
24857 \end_inset
24858
24859 .
24860 \end_layout
24861
24862 \begin_layout Description
24863 \begin_inset Flex Code
24864 status collapsed
24865
24866 \begin_layout Plain Layout
24867 HTMLItem
24868 \end_layout
24869
24870 \end_inset
24871
24872  [
24873 \begin_inset Flex Code
24874 status collapsed
24875
24876 \begin_layout Plain Layout
24877 string
24878 \end_layout
24879
24880 \end_inset
24881
24882 ] The tag to be used for individual paragraphs of environments, replacing
24883  
24884 \begin_inset Flex Code
24885 status collapsed
24886
24887 \begin_layout Plain Layout
24888 itemtag
24889 \end_layout
24890
24891 \end_inset
24892
24893  in the examples above.
24894  Defaults to 
24895 \begin_inset Flex Code
24896 status collapsed
24897
24898 \begin_layout Plain Layout
24899 div
24900 \end_layout
24901
24902 \end_inset
24903
24904 .
24905 \end_layout
24906
24907 \begin_layout Description
24908 \begin_inset Flex Code
24909 status collapsed
24910
24911 \begin_layout Plain Layout
24912 HTMLItemAttr
24913 \end_layout
24914
24915 \end_inset
24916
24917  [
24918 \begin_inset Flex Code
24919 status collapsed
24920
24921 \begin_layout Plain Layout
24922 string
24923 \end_layout
24924
24925 \end_inset
24926
24927 ] Attributes for the item tag.
24928  Defaults to
24929 \begin_inset Newline newline
24930 \end_inset
24931
24932
24933 \begin_inset Quotes eld
24934 \end_inset
24935
24936
24937 \begin_inset Flex Code
24938 status collapsed
24939
24940 \begin_layout Plain Layout
24941 class=`layoutname_item'
24942 \end_layout
24943
24944 \end_inset
24945
24946
24947 \begin_inset Quotes erd
24948 \end_inset
24949
24950 .
24951  This should 
24952 \emph on
24953 not
24954 \emph default
24955  contain any style information.
24956  Use 
24957 \begin_inset Flex Code
24958 status collapsed
24959
24960 \begin_layout Plain Layout
24961 HTMLStyle
24962 \end_layout
24963
24964 \end_inset
24965
24966  for that purpose.
24967 \end_layout
24968
24969 \begin_layout Description
24970 \begin_inset Flex Code
24971 status collapsed
24972
24973 \begin_layout Plain Layout
24974 HTMLLabel
24975 \end_layout
24976
24977 \end_inset
24978
24979  [
24980 \begin_inset Flex Code
24981 status collapsed
24982
24983 \begin_layout Plain Layout
24984 string
24985 \end_layout
24986
24987 \end_inset
24988
24989 ] The tag to be used for paragraph and item labels, replacing 
24990 \begin_inset Flex Code
24991 status collapsed
24992
24993 \begin_layout Plain Layout
24994 labeltag
24995 \end_layout
24996
24997 \end_inset
24998
24999  in the examples above.
25000  Defaults to 
25001 \begin_inset Flex Code
25002 status collapsed
25003
25004 \begin_layout Plain Layout
25005 span
25006 \end_layout
25007
25008 \end_inset
25009
25010 , unless 
25011 \begin_inset Flex Code
25012 status collapsed
25013
25014 \begin_layout Plain Layout
25015 LabelType
25016 \end_layout
25017
25018 \end_inset
25019
25020  is either 
25021 \begin_inset Flex Code
25022 status collapsed
25023
25024 \begin_layout Plain Layout
25025 Top_Environment
25026 \end_layout
25027
25028 \end_inset
25029
25030  or 
25031 \begin_inset Flex Code
25032 status collapsed
25033
25034 \begin_layout Plain Layout
25035 Centered_Top_Environment
25036 \end_layout
25037
25038 \end_inset
25039
25040 , in which case it defaults to 
25041 \begin_inset Flex Code
25042 status collapsed
25043
25044 \begin_layout Plain Layout
25045 div
25046 \end_layout
25047
25048 \end_inset
25049
25050 .
25051 \end_layout
25052
25053 \begin_layout Description
25054 \begin_inset Flex Code
25055 status collapsed
25056
25057 \begin_layout Plain Layout
25058 HTMLLabelAttr
25059 \end_layout
25060
25061 \end_inset
25062
25063  [
25064 \begin_inset Flex Code
25065 status collapsed
25066
25067 \begin_layout Plain Layout
25068 string
25069 \end_layout
25070
25071 \end_inset
25072
25073 ] Attributes for the label tag.
25074  Defaults to
25075 \begin_inset Newline newline
25076 \end_inset
25077
25078
25079 \begin_inset Quotes eld
25080 \end_inset
25081
25082
25083 \begin_inset Flex Code
25084 status collapsed
25085
25086 \begin_layout Plain Layout
25087 class=`layoutname_label'
25088 \end_layout
25089
25090 \end_inset
25091
25092
25093 \begin_inset Quotes erd
25094 \end_inset
25095
25096 .
25097  This should 
25098 \emph on
25099 not
25100 \emph default
25101  contain any style information.
25102  Use 
25103 \begin_inset Flex Code
25104 status collapsed
25105
25106 \begin_layout Plain Layout
25107 HTMLStyle
25108 \end_layout
25109
25110 \end_inset
25111
25112  for that purpose.
25113 \end_layout
25114
25115 \begin_layout Description
25116 \begin_inset Flex Code
25117 status collapsed
25118
25119 \begin_layout Plain Layout
25120 HTMLLabelFirst
25121 \end_layout
25122
25123 \end_inset
25124
25125  [
25126 \begin_inset Flex Code
25127 status collapsed
25128
25129 \begin_layout Plain Layout
25130
25131 \emph on
25132 0
25133 \emph default
25134 ,1
25135 \end_layout
25136
25137 \end_inset
25138
25139 ] Meaningful only for list-like environments, this tag controls whether
25140  the label tag is output before or inside the item tag.
25141  This is used, for example, in the description environment, where we want
25142  `
25143 \begin_inset Flex Code
25144 status collapsed
25145
25146 \begin_layout Plain Layout
25147 <dt>\SpecialChar ldots
25148 </dt><dd>\SpecialChar ldots
25149 </dd>
25150 \end_layout
25151
25152 \end_inset
25153
25154 .
25155  Default is 
25156 \begin_inset Flex Code
25157 status collapsed
25158
25159 \begin_layout Plain Layout
25160 0
25161 \end_layout
25162
25163 \end_inset
25164
25165 : The label tag is output inside the item tag.
25166 \end_layout
25167
25168 \begin_layout Description
25169 \begin_inset Flex Code
25170 status collapsed
25171
25172 \begin_layout Plain Layout
25173 HTMLPreamble
25174 \end_layout
25175
25176 \end_inset
25177
25178  Information to be output in the 
25179 \begin_inset Flex Code
25180 status collapsed
25181
25182 \begin_layout Plain Layout
25183 <head>
25184 \end_layout
25185
25186 \end_inset
25187
25188  section when this style is used.
25189  This might, for example, be used to include a 
25190 \begin_inset Flex Code
25191 status collapsed
25192
25193 \begin_layout Plain Layout
25194 <script>
25195 \end_layout
25196
25197 \end_inset
25198
25199  block defining an 
25200 \begin_inset Flex Code
25201 status collapsed
25202
25203 \begin_layout Plain Layout
25204 onclick
25205 \end_layout
25206
25207 \end_inset
25208
25209  handler.
25210 \end_layout
25211
25212 \begin_layout Description
25213 \begin_inset Flex Code
25214 status collapsed
25215
25216 \begin_layout Plain Layout
25217 HTMLStyle
25218 \end_layout
25219
25220 \end_inset
25221
25222  CSS style information to be included when this style is used.
25223  Note that this will automatically be wrapped in a layout-generated 
25224 \begin_inset Flex Code
25225 status collapsed
25226
25227 \begin_layout Plain Layout
25228 <style>
25229 \end_layout
25230
25231 \end_inset
25232
25233  block, so only the CSS itself need be included.
25234  Must end with 
25235 \begin_inset Flex Code
25236 status collapsed
25237
25238 \begin_layout Plain Layout
25239 EndHTMLStyle
25240 \end_layout
25241
25242 \end_inset
25243
25244 .
25245 \end_layout
25246
25247 \begin_layout Description
25248 \begin_inset Flex Code
25249 status collapsed
25250
25251 \begin_layout Plain Layout
25252 HTMLTag
25253 \end_layout
25254
25255 \end_inset
25256
25257  [
25258 \begin_inset Flex Code
25259 status collapsed
25260
25261 \begin_layout Plain Layout
25262 string
25263 \end_layout
25264
25265 \end_inset
25266
25267 ] The tag to be used for the main label, replacing 
25268 \begin_inset Flex Code
25269 status collapsed
25270
25271 \begin_layout Plain Layout
25272 tag
25273 \end_layout
25274
25275 \end_inset
25276
25277  in the examples above.
25278  Defaults to 
25279 \begin_inset Flex Code
25280 status collapsed
25281
25282 \begin_layout Plain Layout
25283 div
25284 \end_layout
25285
25286 \end_inset
25287
25288 .
25289 \end_layout
25290
25291 \begin_layout Description
25292 \begin_inset Flex Code
25293 status collapsed
25294
25295 \begin_layout Plain Layout
25296 HTMLTitle
25297 \end_layout
25298
25299 \end_inset
25300
25301  [
25302 \begin_inset Flex Code
25303 status collapsed
25304
25305 \begin_layout Plain Layout
25306
25307 \emph on
25308 0
25309 \emph default
25310 ,1
25311 \end_layout
25312
25313 \end_inset
25314
25315 ] Marks this style as the one to be used to generate the 
25316 \begin_inset Flex Code
25317 status collapsed
25318
25319 \begin_layout Plain Layout
25320 <title>
25321 \end_layout
25322
25323 \end_inset
25324
25325  tag for the XHTML file.
25326  By default, it is false.
25327  The 
25328 \begin_inset Flex Code
25329 status collapsed
25330
25331 \begin_layout Plain Layout
25332 stdtitle.inc
25333 \end_layout
25334
25335 \end_inset
25336
25337  file sets it to true for the 
25338 \begin_inset Flex Code
25339 status collapsed
25340
25341 \begin_layout Plain Layout
25342 title
25343 \end_layout
25344
25345 \end_inset
25346
25347  environment.
25348  
25349 \end_layout
25350
25351 \begin_layout Subsection
25352 InsetLayout XHTML
25353 \end_layout
25354
25355 \begin_layout Standard
25356 The XHTML output of insets can also be controlled by information in layout
25357  files.
25358 \begin_inset Foot
25359 status collapsed
25360
25361 \begin_layout Plain Layout
25362 At present, this is true only for 
25363 \begin_inset Quotes eld
25364 \end_inset
25365
25366 text
25367 \begin_inset Quotes erd
25368 \end_inset
25369
25370  insets (insets you can type into) and is not true for 
25371 \begin_inset Quotes eld
25372 \end_inset
25373
25374 command
25375 \begin_inset Quotes erd
25376 \end_inset
25377
25378  insets (insets that are associated with dialog boxes).
25379 \end_layout
25380
25381 \end_inset
25382
25383  Here, too, \SpecialChar LyX
25384  tries to provide sensible defaults, and it constructs default
25385  CSS style rules.
25386  But everything can be customized.
25387 \end_layout
25388
25389 \begin_layout Standard
25390 The XHTML \SpecialChar LyX
25391  outputs for an inset has the following form:
25392 \end_layout
25393
25394 \begin_layout LyX-Code
25395 <tag attr=
25396 \begin_inset Quotes erd
25397 \end_inset
25398
25399 value
25400 \begin_inset Quotes erd
25401 \end_inset
25402
25403 >
25404 \end_layout
25405
25406 \begin_layout LyX-Code
25407 <labeltag>Label</labeltag>
25408 \end_layout
25409
25410 \begin_layout LyX-Code
25411 <innertag attr=
25412 \begin_inset Quotes erd
25413 \end_inset
25414
25415 value
25416 \begin_inset Quotes erd
25417 \end_inset
25418
25419 >Contents of the inset.</innertag>
25420 \end_layout
25421
25422 \begin_layout LyX-Code
25423 </tag>
25424 \end_layout
25425
25426 \begin_layout Standard
25427 If the inset permits multiple paragraphs—that is, if 
25428 \begin_inset Flex Code
25429 status collapsed
25430
25431 \begin_layout Plain Layout
25432 MultiPar
25433 \end_layout
25434
25435 \end_inset
25436
25437  is true—then the contents of the inset will itself be output as paragraphs
25438  formatted according to the styles used for those paragraphs (standard,
25439  quote, and the like).
25440  The label tag is of course omitted if the paragraph does not have a label
25441  and, at present, is always 
25442 \begin_inset Flex Code
25443 status collapsed
25444
25445 \begin_layout Plain Layout
25446 span
25447 \end_layout
25448
25449 \end_inset
25450
25451 .
25452  The inner tag is optional and, by default, does not appear.
25453 \end_layout
25454
25455 \begin_layout Standard
25456 The specific tags and attributes output for each inset can be controlled
25457  by means of the following layout tags.
25458 \end_layout
25459
25460 \begin_layout Description
25461 \begin_inset Flex Code
25462 status collapsed
25463
25464 \begin_layout Plain Layout
25465 HTMLAttr
25466 \end_layout
25467
25468 \end_inset
25469
25470  [
25471 \begin_inset Flex Code
25472 status collapsed
25473
25474 \begin_layout Plain Layout
25475 string
25476 \end_layout
25477
25478 \end_inset
25479
25480 ] Specifies attribute information to be output with the main tag.
25481  For example, 
25482 \begin_inset Quotes eld
25483 \end_inset
25484
25485
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490 class=`myinset' onclick=`\SpecialChar ldots
25491 '
25492 \end_layout
25493
25494 \end_inset
25495
25496
25497 \begin_inset Quotes erd
25498 \end_inset
25499
25500 .
25501  By default, \SpecialChar LyX
25502  will output 
25503 \begin_inset Quotes eld
25504 \end_inset
25505
25506
25507 \begin_inset Flex Code
25508 status collapsed
25509
25510 \begin_layout Plain Layout
25511 class=`insetname'
25512 \end_layout
25513
25514 \end_inset
25515
25516
25517 \begin_inset Quotes erd
25518 \end_inset
25519
25520 , where 
25521 \begin_inset Flex Code
25522 status collapsed
25523
25524 \begin_layout Plain Layout
25525 insetname
25526 \end_layout
25527
25528 \end_inset
25529
25530  is the \SpecialChar LyX
25531  name of the inset, made lowercase and with non-alphanumeric characters
25532  converted to underscores, for example: footnote.
25533 \end_layout
25534
25535 \begin_layout Description
25536 \begin_inset Flex Code
25537 status collapsed
25538
25539 \begin_layout Plain Layout
25540 HTMLForceCSS
25541 \end_layout
25542
25543 \end_inset
25544
25545  [
25546 \begin_inset Flex Code
25547 status collapsed
25548
25549 \begin_layout Plain Layout
25550
25551 \emph on
25552 0
25553 \emph default
25554 ,1
25555 \end_layout
25556
25557 \end_inset
25558
25559 ] Whether to output the default CSS information \SpecialChar LyX
25560  generates for this layout,
25561  even if additional information is explicitly provided via 
25562 \begin_inset Flex Code
25563 status collapsed
25564
25565 \begin_layout Plain Layout
25566 HTMLStyle
25567 \end_layout
25568
25569 \end_inset
25570
25571 .
25572  Setting this to 
25573 \begin_inset Flex Code
25574 status collapsed
25575
25576 \begin_layout Plain Layout
25577 1
25578 \end_layout
25579
25580 \end_inset
25581
25582  allows you to alter or augment the generated CSS, rather than to override
25583  it completely.
25584  Default is 0.
25585 \end_layout
25586
25587 \begin_layout Description
25588 \begin_inset Flex Code
25589 status collapsed
25590
25591 \begin_layout Plain Layout
25592 HTMLInnerAttr
25593 \end_layout
25594
25595 \end_inset
25596
25597  [
25598 \begin_inset Flex Code
25599 status collapsed
25600
25601 \begin_layout Plain Layout
25602 string
25603 \end_layout
25604
25605 \end_inset
25606
25607 ] Attributes for the inner tag.
25608  Defaults to
25609 \begin_inset Newline newline
25610 \end_inset
25611
25612
25613 \begin_inset Quotes eld
25614 \end_inset
25615
25616
25617 \begin_inset Flex Code
25618 status collapsed
25619
25620 \begin_layout Plain Layout
25621 class=`insetname_inner'
25622 \end_layout
25623
25624 \end_inset
25625
25626
25627 \begin_inset Quotes erd
25628 \end_inset
25629
25630 .
25631 \end_layout
25632
25633 \begin_layout Description
25634 \begin_inset Flex Code
25635 status collapsed
25636
25637 \begin_layout Plain Layout
25638 HTMLInnerTag
25639 \end_layout
25640
25641 \end_inset
25642
25643  [
25644 \begin_inset Flex Code
25645 status collapsed
25646
25647 \begin_layout Plain Layout
25648 string
25649 \end_layout
25650
25651 \end_inset
25652
25653 ] The inner tag, replacing 
25654 \begin_inset Flex Code
25655 status collapsed
25656
25657 \begin_layout Plain Layout
25658 innertag
25659 \end_layout
25660
25661 \end_inset
25662
25663  in the examples above.
25664  By default, there is none.
25665 \end_layout
25666
25667 \begin_layout Description
25668 \begin_inset Flex Code
25669 status collapsed
25670
25671 \begin_layout Plain Layout
25672 HTMLIsBlock
25673 \end_layout
25674
25675 \end_inset
25676
25677  [
25678 \begin_inset Flex Code
25679 status collapsed
25680
25681 \begin_layout Plain Layout
25682 0,
25683 \emph on
25684 1
25685 \end_layout
25686
25687 \end_inset
25688
25689 ] Whether this inset represents a standalone block of text (such as a footnote)
25690  or instead represents material that is included in the surrounding text
25691  (such as a branch).
25692  Defaults to 1.
25693 \end_layout
25694
25695 \begin_layout Description
25696 \begin_inset Flex Code
25697 status collapsed
25698
25699 \begin_layout Plain Layout
25700 HTMLLabel
25701 \end_layout
25702
25703 \end_inset
25704
25705  [
25706 \begin_inset Flex Code
25707 status collapsed
25708
25709 \begin_layout Plain Layout
25710 string
25711 \end_layout
25712
25713 \end_inset
25714
25715 ] A label for this inset, possibly including a reference to a counter.
25716  For example, for footnote, it might be: 
25717 \begin_inset Flex Code
25718 status collapsed
25719
25720 \begin_layout Plain Layout
25721
25722 \backslash
25723 arabic{footnote}
25724 \end_layout
25725
25726 \end_inset
25727
25728 .
25729  This is optional, and there is no default.
25730 \end_layout
25731
25732 \begin_layout Description
25733 \begin_inset Flex Code
25734 status collapsed
25735
25736 \begin_layout Plain Layout
25737 HTMLPreamble
25738 \end_layout
25739
25740 \end_inset
25741
25742  Information to be output in the 
25743 \begin_inset Flex Code
25744 status collapsed
25745
25746 \begin_layout Plain Layout
25747 <head>
25748 \end_layout
25749
25750 \end_inset
25751
25752  section when this style is used.
25753  This might, for example, be used to include a 
25754 \begin_inset Flex Code
25755 status collapsed
25756
25757 \begin_layout Plain Layout
25758 <script>
25759 \end_layout
25760
25761 \end_inset
25762
25763  block defining an 
25764 \begin_inset Flex Code
25765 status collapsed
25766
25767 \begin_layout Plain Layout
25768 onclick
25769 \end_layout
25770
25771 \end_inset
25772
25773  handler.
25774 \end_layout
25775
25776 \begin_layout Description
25777 \begin_inset Flex Code
25778 status collapsed
25779
25780 \begin_layout Plain Layout
25781 HTMLStyle
25782 \end_layout
25783
25784 \end_inset
25785
25786  CSS style information to be included when this style is used.
25787  Note that this will automatically be wrapped in a layout-generated 
25788 \begin_inset Flex Code
25789 status collapsed
25790
25791 \begin_layout Plain Layout
25792 <style>
25793 \end_layout
25794
25795 \end_inset
25796
25797  block, so only the CSS itself need be included.
25798 \end_layout
25799
25800 \begin_layout Description
25801 \begin_inset Flex Code
25802 status collapsed
25803
25804 \begin_layout Plain Layout
25805 HTMLTag
25806 \end_layout
25807
25808 \end_inset
25809
25810  [
25811 \begin_inset Flex Code
25812 status collapsed
25813
25814 \begin_layout Plain Layout
25815 string
25816 \end_layout
25817
25818 \end_inset
25819
25820 ] The tag to be used for the main label, replacing 
25821 \begin_inset Flex Code
25822 status collapsed
25823
25824 \begin_layout Plain Layout
25825 tag
25826 \end_layout
25827
25828 \end_inset
25829
25830  in the examples above.
25831  The default depends upon the setting of 
25832 \begin_inset Flex Code
25833 status collapsed
25834
25835 \begin_layout Plain Layout
25836 MultiPar
25837 \end_layout
25838
25839 \end_inset
25840
25841 : If 
25842 \begin_inset Flex Code
25843 status collapsed
25844
25845 \begin_layout Plain Layout
25846 MultiPar
25847 \end_layout
25848
25849 \end_inset
25850
25851  is true, the default is 
25852 \begin_inset Flex Code
25853 status collapsed
25854
25855 \begin_layout Plain Layout
25856 div
25857 \end_layout
25858
25859 \end_inset
25860
25861 ; if it is false, the default is 
25862 \begin_inset Flex Code
25863 status collapsed
25864
25865 \begin_layout Plain Layout
25866 span
25867 \end_layout
25868
25869 \end_inset
25870
25871 .
25872 \end_layout
25873
25874 \begin_layout Subsection
25875 Float XHTML
25876 \end_layout
25877
25878 \begin_layout Standard
25879 The XHTML output for floats too can be controlled by layout information.
25880  The output has the following form:
25881 \end_layout
25882
25883 \begin_layout LyX-Code
25884 <tag attr=
25885 \begin_inset Quotes erd
25886 \end_inset
25887
25888 value
25889 \begin_inset Quotes erd
25890 \end_inset
25891
25892 >
25893 \end_layout
25894
25895 \begin_layout LyX-Code
25896 Contents of the float.
25897 \end_layout
25898
25899 \begin_layout LyX-Code
25900 </tag>
25901 \end_layout
25902
25903 \begin_layout Standard
25904 The caption, if there is one, is a separate inset and will be output as
25905  such.
25906  Its appearance can be controlled via the InsetLayout for caption insets.
25907  
25908 \end_layout
25909
25910 \begin_layout Description
25911 \begin_inset Flex Code
25912 status collapsed
25913
25914 \begin_layout Plain Layout
25915 HTMLAttr
25916 \end_layout
25917
25918 \end_inset
25919
25920  [
25921 \begin_inset Flex Code
25922 status collapsed
25923
25924 \begin_layout Plain Layout
25925 string
25926 \end_layout
25927
25928 \end_inset
25929
25930 ] Specifies attribute information to be output with the main tag.
25931  For example, 
25932 \begin_inset Quotes eld
25933 \end_inset
25934
25935
25936 \begin_inset Flex Code
25937 status collapsed
25938
25939 \begin_layout Plain Layout
25940 class=`myfloat' onclick=`\SpecialChar ldots
25941 '
25942 \end_layout
25943
25944 \end_inset
25945
25946
25947 \begin_inset Quotes erd
25948 \end_inset
25949
25950 .
25951  By default, \SpecialChar LyX
25952  will output 
25953 \begin_inset Quotes eld
25954 \end_inset
25955
25956
25957 \begin_inset Flex Code
25958 status collapsed
25959
25960 \begin_layout Plain Layout
25961 class=`float float-floattype'
25962 \end_layout
25963
25964 \end_inset
25965
25966
25967 \begin_inset Quotes erd
25968 \end_inset
25969
25970 , where 
25971 \begin_inset Flex Code
25972 status collapsed
25973
25974 \begin_layout Plain Layout
25975 floattype
25976 \end_layout
25977
25978 \end_inset
25979
25980  is \SpecialChar LyX
25981 's name for this type of float, as determined by the float declaration
25982  (see 
25983 \begin_inset CommandInset ref
25984 LatexCommand ref
25985 reference "subsec:Floats"
25986
25987 \end_inset
25988
25989 ), though made lowercase and with non-alphanumeric characters converted
25990  to underscores, for example: float-table.
25991 \end_layout
25992
25993 \begin_layout Description
25994 \begin_inset Flex Code
25995 status collapsed
25996
25997 \begin_layout Plain Layout
25998 HTMLStyle
25999 \end_layout
26000
26001 \end_inset
26002
26003  CSS style information to be included when this float is used.
26004  Note that this will automatically be wrapped in a layout-generated 
26005 \begin_inset Flex Code
26006 status collapsed
26007
26008 \begin_layout Plain Layout
26009 <style>
26010 \end_layout
26011
26012 \end_inset
26013
26014  block, so only the CSS itself need be included.
26015 \end_layout
26016
26017 \begin_layout Description
26018 \begin_inset Flex Code
26019 status collapsed
26020
26021 \begin_layout Plain Layout
26022 HTMLTag
26023 \end_layout
26024
26025 \end_inset
26026
26027  [
26028 \begin_inset Flex Code
26029 status collapsed
26030
26031 \begin_layout Plain Layout
26032 string
26033 \end_layout
26034
26035 \end_inset
26036
26037 ] The tag to be used for this float, replacing 
26038 \begin_inset Quotes eld
26039 \end_inset
26040
26041
26042 \begin_inset Flex Code
26043 status collapsed
26044
26045 \begin_layout Plain Layout
26046 tag
26047 \end_layout
26048
26049 \end_inset
26050
26051
26052 \begin_inset Quotes erd
26053 \end_inset
26054
26055  in the example above.
26056  The default is 
26057 \begin_inset Flex Code
26058 status collapsed
26059
26060 \begin_layout Plain Layout
26061 div
26062 \end_layout
26063
26064 \end_inset
26065
26066  and will rarely need changing.
26067 \end_layout
26068
26069 \begin_layout Subsection
26070 Bibliography formatting
26071 \end_layout
26072
26073 \begin_layout Standard
26074 The bibliography can be formatted using 
26075 \begin_inset Flex Code
26076 status collapsed
26077
26078 \begin_layout Plain Layout
26079 CiteFormat
26080 \end_layout
26081
26082 \end_inset
26083
26084  blocks.
26085  See 
26086 \begin_inset CommandInset ref
26087 LatexCommand ref
26088 reference "subsec:Citation-format-description"
26089
26090 \end_inset
26091
26092  for the details.
26093 \end_layout
26094
26095 \begin_layout Subsection
26096 \SpecialChar LyX
26097 -generated CSS
26098 \end_layout
26099
26100 \begin_layout Standard
26101 We have several times mentioned that \SpecialChar LyX
26102  will generate default CSS style rules
26103  for both insets and paragraph styles, based upon the other layout information
26104  that is provided.
26105  In this section, we shall say a word about which layout information \SpecialChar LyX
26106  uses
26107  and how.
26108 \end_layout
26109
26110 \begin_layout Standard
26111 At present, \SpecialChar LyX
26112  auto-generates CSS only for font information, making use of
26113  the 
26114 \begin_inset Flex Code
26115 status collapsed
26116
26117 \begin_layout Plain Layout
26118 Family
26119 \end_layout
26120
26121 \end_inset
26122
26123
26124 \begin_inset Flex Code
26125 status collapsed
26126
26127 \begin_layout Plain Layout
26128 Series
26129 \end_layout
26130
26131 \end_inset
26132
26133
26134 \begin_inset Flex Code
26135 status collapsed
26136
26137 \begin_layout Plain Layout
26138 Shape
26139 \end_layout
26140
26141 \end_inset
26142
26143 , and 
26144 \begin_inset Flex Code
26145 status collapsed
26146
26147 \begin_layout Plain Layout
26148 Size
26149 \end_layout
26150
26151 \end_inset
26152
26153  specified in the 
26154 \begin_inset Flex Code
26155 status collapsed
26156
26157 \begin_layout Plain Layout
26158 Font
26159 \end_layout
26160
26161 \end_inset
26162
26163  declaration (see 
26164 \begin_inset CommandInset ref
26165 LatexCommand ref
26166 reference "subsec:Font-description"
26167
26168 \end_inset
26169
26170 ).
26171  The translation is mostly straightforward and obvious.
26172  For example, 
26173 \begin_inset Quotes eld
26174 \end_inset
26175
26176
26177 \begin_inset Flex Code
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 Family Sans
26182 \end_layout
26183
26184 \end_inset
26185
26186
26187 \begin_inset Quotes erd
26188 \end_inset
26189
26190  becomes 
26191 \begin_inset Quotes eld
26192 \end_inset
26193
26194
26195 \begin_inset Flex Code
26196 status collapsed
26197
26198 \begin_layout Plain Layout
26199 font-family: sans-serif;
26200 \end_layout
26201
26202 \end_inset
26203
26204
26205 \begin_inset Quotes erd
26206 \end_inset
26207
26208 .
26209  The correspondence of \SpecialChar LyX
26210  sizes and CSS sizes is a little less obvious but
26211  nonetheless intuitive.
26212  See the 
26213 \begin_inset Flex Code
26214 status collapsed
26215
26216 \begin_layout Plain Layout
26217 getSizeCSS()
26218 \end_layout
26219
26220 \end_inset
26221
26222  function in 
26223 \begin_inset Flex URL
26224 status collapsed
26225
26226 \begin_layout Plain Layout
26227
26228 src/FontInfo.cpp
26229 \end_layout
26230
26231 \end_inset
26232
26233  for the details.
26234 \end_layout
26235
26236 \begin_layout Chapter
26237 Including External Material
26238 \begin_inset CommandInset label
26239 LatexCommand label
26240 name "chap:Including-External-Material"
26241
26242 \end_inset
26243
26244
26245 \end_layout
26246
26247 \begin_layout Standard
26248 \begin_inset Box Shadowbox
26249 position "t"
26250 hor_pos "c"
26251 has_inner_box 1
26252 inner_pos "t"
26253 use_parbox 0
26254 use_makebox 0
26255 width "100col%"
26256 special "none"
26257 height "1in"
26258 height_special "totalheight"
26259 thickness "0.4pt"
26260 separation "3pt"
26261 shadowsize "4pt"
26262 framecolor "black"
26263 backgroundcolor "none"
26264 status open
26265
26266 \begin_layout Plain Layout
26267 WARNING: This portion of the documentation has not been updated for some
26268  time.
26269  We certainly hope that it is still accurate, but there are no guarantees.
26270 \end_layout
26271
26272 \end_inset
26273
26274
26275 \end_layout
26276
26277 \begin_layout Standard
26278 The use of material from sources external to \SpecialChar LyX
26279  is covered in detail in the
26280  
26281 \emph on
26282 Embedded Objects
26283 \emph default
26284  manual.
26285  This part of the manual covers what needs to happen behind the scenes for
26286  new sorts of material to be included.
26287 \end_layout
26288
26289 \begin_layout Section
26290 How does it work?
26291 \end_layout
26292
26293 \begin_layout Standard
26294 The external material feature is based on the concept of a 
26295 \emph on
26296 template
26297 \emph default
26298 .
26299  A template is a specification of how \SpecialChar LyX
26300  should interface with a certain kind
26301  of material.
26302  As bundled, \SpecialChar LyX
26303  comes with predefined templates for Xfig figures, various
26304  raster format images, chess diagrams, and LilyPond music notation.
26305  You can check the actual list by using the menu 
26306 \begin_inset Flex Noun
26307 status collapsed
26308
26309 \begin_layout Plain Layout
26310 Insert\SpecialChar menuseparator
26311 File\SpecialChar menuseparator
26312 External Material
26313 \end_layout
26314
26315 \end_inset
26316
26317 .
26318  Furthermore, it is possible to roll your own template to support a specific
26319  kind of material.
26320  Later we'll describe in more detail what is involved, and hopefully you
26321  will submit all the templates you create so we can include them in a later
26322  \SpecialChar LyX
26323  version.
26324 \end_layout
26325
26326 \begin_layout Standard
26327 Another basic idea of the external material feature is to distinguish between
26328  the original file that serves as a base for final material and the produced
26329  file that is included in your exported or printed document.
26330  For example, consider the case of a figure produced with 
26331 \begin_inset Flex Code
26332 status collapsed
26333
26334 \begin_layout Plain Layout
26335 Xfig
26336 \end_layout
26337
26338 \end_inset
26339
26340 .
26341  The Xfig application itself works on an original file with the 
26342 \begin_inset Flex Code
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346 .fig
26347 \end_layout
26348
26349 \end_inset
26350
26351  extension.
26352  Within Xfig, you create and change your figure, and when you are done,
26353  you save the 
26354 \begin_inset Flex Code
26355 status collapsed
26356
26357 \begin_layout Plain Layout
26358 fig
26359 \end_layout
26360
26361 \end_inset
26362
26363 -file.
26364  When you want to include the figure in your document, you invoke 
26365 \begin_inset Flex Code
26366 status collapsed
26367
26368 \begin_layout Plain Layout
26369 transfig
26370 \end_layout
26371
26372 \end_inset
26373
26374  in order to create a PostScript file that can readily be included in your
26375  \SpecialChar LaTeX
26376  file.
26377  In this case, the 
26378 \begin_inset Flex Code
26379 status collapsed
26380
26381 \begin_layout Plain Layout
26382 .fig
26383 \end_layout
26384
26385 \end_inset
26386
26387  file is the original file, and the PostScript file is the produced file.
26388 \end_layout
26389
26390 \begin_layout Standard
26391 This distinction is important in order to allow updating of the material
26392  while you are in the process of writing the document.
26393  Furthermore, it provides us with the flexibility that is needed to support
26394  multiple export formats.
26395  For instance, in the case of a plain text file, it is not exactly an award-winn
26396 ing idea to include the figure as raw PostScript.
26397  Instead, you would either prefer to just include a reference to the figure
26398  or try to invoke some graphics to ASCII converter to make the final result
26399  look similar to the real graphics.
26400  The external material management allows you to do this, because it is parametri
26401 zed on the different export formats that \SpecialChar LyX
26402  supports.
26403 \end_layout
26404
26405 \begin_layout Standard
26406 Besides supporting the production of different products according to the
26407  exported format, it supports tight integration with editing and viewing
26408  applications.
26409  In the case of an Xfig figure, you are able to invoke Xfig on the original
26410  file with a single click from within the external material dialog in \SpecialChar LyX
26411 ,
26412  and also preview the produced PostScript file with Ghostview with another
26413  click.
26414  No more fiddling around with the command line and/or file browsers to locate
26415  and manipulate the original or produced files.
26416  In this way, you are finally able to take full advantage of the many different
26417  applications that are relevant to use when you write your documents, and
26418  ultimately be more productive.
26419 \end_layout
26420
26421 \begin_layout Section
26422 The external template configuration files
26423 \end_layout
26424
26425 \begin_layout Standard
26426 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26427 .
26428  However, be aware that doing this in an careless manner most probably 
26429 \emph on
26430 will
26431 \emph default
26432  introduce an easily exploitable security hole.
26433  So before you do this, please read the discussion about security in 
26434 \begin_inset CommandInset ref
26435 LatexCommand ref
26436 reference "sec:Security-discussion"
26437
26438 \end_inset
26439
26440 .
26441 \end_layout
26442
26443 \begin_layout Standard
26444 Having said that, we encourage you to submit any interesting templates that
26445  you create.
26446  
26447 \end_layout
26448
26449 \begin_layout Standard
26450 The external templates are defined in the 
26451 \begin_inset Flex Code
26452 status collapsed
26453
26454 \begin_layout Plain Layout
26455 *.xtemplate
26456 \end_layout
26457
26458 \end_inset
26459
26460  files that are stored in the 
26461 \begin_inset Flex Code
26462 status collapsed
26463
26464 \begin_layout Plain Layout
26465 LyXDir/lib/xtemplates/
26466 \end_layout
26467
26468 \end_inset
26469
26470  directory.
26471  Each template is defined in a file of its own.
26472  You can place your own templates in 
26473 \begin_inset Flex Code
26474 status collapsed
26475
26476 \begin_layout Plain Layout
26477 UserDir/xtemplates/
26478 \end_layout
26479
26480 \end_inset
26481
26482  or copy existing templates to that directory in order to modify them.
26483 \end_layout
26484
26485 \begin_layout Standard
26486 A typical template looks like this:
26487 \end_layout
26488
26489 \begin_layout LyX-Code
26490 Template XFig
26491 \end_layout
26492
26493 \begin_layout LyX-Code
26494 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26495 \end_layout
26496
26497 \begin_layout LyX-Code
26498 HelpText
26499 \end_layout
26500
26501 \begin_layout LyX-Code
26502 An XFig figure.
26503 \end_layout
26504
26505 \begin_layout LyX-Code
26506 HelpTextEnd
26507 \end_layout
26508
26509 \begin_layout LyX-Code
26510 InputFormat fig
26511 \end_layout
26512
26513 \begin_layout LyX-Code
26514 FileFilter "*.fig"
26515 \end_layout
26516
26517 \begin_layout LyX-Code
26518 AutomaticProduction true
26519 \end_layout
26520
26521 \begin_layout LyX-Code
26522 Transform Rotate
26523 \end_layout
26524
26525 \begin_layout LyX-Code
26526 Transform Resize
26527 \end_layout
26528
26529 \begin_layout LyX-Code
26530 Format LaTeX
26531 \end_layout
26532
26533 \begin_layout LyX-Code
26534 TransformCommand Rotate RotationLatexCommand
26535 \end_layout
26536
26537 \begin_layout LyX-Code
26538 TransformCommand Resize ResizeLatexCommand
26539 \end_layout
26540
26541 \begin_layout LyX-Code
26542 Product "$$RotateFront$$ResizeFront
26543 \end_layout
26544
26545 \begin_layout LyX-Code
26546          
26547 \backslash
26548
26549 \backslash
26550 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26551 \end_layout
26552
26553 \begin_layout LyX-Code
26554          $$ResizeBack$$RotateBack"
26555 \end_layout
26556
26557 \begin_layout LyX-Code
26558 UpdateFormat pstex
26559 \end_layout
26560
26561 \begin_layout LyX-Code
26562 UpdateResult "$$AbsPath$$Basename.pstex_t"
26563 \end_layout
26564
26565 \begin_layout LyX-Code
26566 Requirement "graphicx"
26567 \end_layout
26568
26569 \begin_layout LyX-Code
26570 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26571 \end_layout
26572
26573 \begin_layout LyX-Code
26574 ReferencedFile latex "$$AbsPath$$Basename.eps"
26575 \end_layout
26576
26577 \begin_layout LyX-Code
26578 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26579 \end_layout
26580
26581 \begin_layout LyX-Code
26582 FormatEnd
26583 \end_layout
26584
26585 \begin_layout LyX-Code
26586 Format PDFLaTeX
26587 \end_layout
26588
26589 \begin_layout LyX-Code
26590 TransformCommand Rotate RotationLatexCommand
26591 \end_layout
26592
26593 \begin_layout LyX-Code
26594 TransformCommand Resize ResizeLatexCommand
26595 \end_layout
26596
26597 \begin_layout LyX-Code
26598 Product "$$RotateFront$$ResizeFront
26599 \end_layout
26600
26601 \begin_layout LyX-Code
26602          
26603 \backslash
26604
26605 \backslash
26606 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
26607 \end_layout
26608
26609 \begin_layout LyX-Code
26610          $$ResizeBack$$RotateBack"
26611 \end_layout
26612
26613 \begin_layout LyX-Code
26614 UpdateFormat pdftex
26615 \end_layout
26616
26617 \begin_layout LyX-Code
26618 UpdateResult "$$AbsPath$$Basename.pdftex_t"
26619 \end_layout
26620
26621 \begin_layout LyX-Code
26622 Requirement "graphicx"
26623 \end_layout
26624
26625 \begin_layout LyX-Code
26626 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
26627 \end_layout
26628
26629 \begin_layout LyX-Code
26630 ReferencedFile latex "$$AbsPath$$Basename.pdf"
26631 \end_layout
26632
26633 \begin_layout LyX-Code
26634 FormatEnd
26635 \end_layout
26636
26637 \begin_layout LyX-Code
26638 Format Ascii
26639 \end_layout
26640
26641 \begin_layout LyX-Code
26642 Product "[XFig: $$FName]"
26643 \end_layout
26644
26645 \begin_layout LyX-Code
26646 FormatEnd
26647 \end_layout
26648
26649 \begin_layout LyX-Code
26650 Format DocBook
26651 \end_layout
26652
26653 \begin_layout LyX-Code
26654 Product "<graphic fileref=
26655 \backslash
26656 "$$AbsOrRelPathMaster$$Basename.eps
26657 \backslash
26658 ">
26659 \end_layout
26660
26661 \begin_layout LyX-Code
26662          </graphic>"
26663 \end_layout
26664
26665 \begin_layout LyX-Code
26666 UpdateFormat eps
26667 \end_layout
26668
26669 \begin_layout LyX-Code
26670 UpdateResult "$$AbsPath$$Basename.eps"
26671 \end_layout
26672
26673 \begin_layout LyX-Code
26674 ReferencedFile docbook "$$AbsPath$$Basename.eps"
26675 \end_layout
26676
26677 \begin_layout LyX-Code
26678 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
26679 \end_layout
26680
26681 \begin_layout LyX-Code
26682 FormatEnd
26683 \end_layout
26684
26685 \begin_layout LyX-Code
26686 TemplateEnd
26687 \end_layout
26688
26689 \begin_layout Standard
26690 As you can see, the template is enclosed in 
26691 \begin_inset Flex Code
26692 status collapsed
26693
26694 \begin_layout Plain Layout
26695 Template
26696 \end_layout
26697
26698 \end_inset
26699
26700  \SpecialChar ldots
26701  
26702 \begin_inset Flex Code
26703 status collapsed
26704
26705 \begin_layout Plain Layout
26706 TemplateEnd
26707 \end_layout
26708
26709 \end_inset
26710
26711 .
26712  It contains a header specifying some general settings and, for each supported
26713  primary document file format, a section 
26714 \begin_inset Flex Code
26715 status collapsed
26716
26717 \begin_layout Plain Layout
26718 Format
26719 \end_layout
26720
26721 \end_inset
26722
26723  \SpecialChar ldots
26724  
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 FormatEnd
26730 \end_layout
26731
26732 \end_inset
26733
26734 .
26735 \end_layout
26736
26737 \begin_layout Subsection
26738 The template header
26739 \end_layout
26740
26741 \begin_layout Description
26742 \begin_inset Flex Code
26743 status collapsed
26744
26745 \begin_layout Plain Layout
26746 AutomaticProduction
26747 \begin_inset space ~
26748 \end_inset
26749
26750 true|false
26751 \end_layout
26752
26753 \end_inset
26754
26755  Whether the file represented by the template must be generated by \SpecialChar LyX
26756 .
26757  This command must occur exactly once.
26758 \end_layout
26759
26760 \begin_layout Description
26761 \begin_inset Flex Code
26762 status collapsed
26763
26764 \begin_layout Plain Layout
26765 FileFilter
26766 \begin_inset space ~
26767 \end_inset
26768
26769 <pattern>
26770 \end_layout
26771
26772 \end_inset
26773
26774  A glob pattern that is used in the file dialog to filter out the desired
26775  files.
26776  If there is more than one possible file extension (e.
26777 \begin_inset space \thinspace{}
26778 \end_inset
26779
26780 g.
26781 \begin_inset space \space{}
26782 \end_inset
26783
26784 tgif has 
26785 \begin_inset Flex Code
26786 status collapsed
26787
26788 \begin_layout Plain Layout
26789 .obj
26790 \end_layout
26791
26792 \end_inset
26793
26794  and 
26795 \begin_inset Flex Code
26796 status collapsed
26797
26798 \begin_layout Plain Layout
26799 .tgo
26800 \end_layout
26801
26802 \end_inset
26803
26804 ), use something like 
26805 \begin_inset Flex Code
26806 status collapsed
26807
26808 \begin_layout Plain Layout
26809 "*.{obj,tgo}"
26810 \end_layout
26811
26812 \end_inset
26813
26814 .
26815  This command must occur exactly once.
26816 \end_layout
26817
26818 \begin_layout Description
26819 \begin_inset Flex Code
26820 status collapsed
26821
26822 \begin_layout Plain Layout
26823 GuiName
26824 \begin_inset space ~
26825 \end_inset
26826
26827 <guiname>
26828 \end_layout
26829
26830 \end_inset
26831
26832  The text that is displayed on the button.
26833  This command must occur exactly once.
26834 \end_layout
26835
26836 \begin_layout Description
26837 \begin_inset Flex Code
26838 status collapsed
26839
26840 \begin_layout Plain Layout
26841 HelpText
26842 \begin_inset space ~
26843 \end_inset
26844
26845 <text>
26846 \begin_inset space ~
26847 \end_inset
26848
26849 HelpTextEnd
26850 \end_layout
26851
26852 \end_inset
26853
26854  The help text that is used in the External dialog.
26855  Provide enough information to explain to the user just what the template
26856  can provide him with.
26857  This command must occur exactly once.
26858 \end_layout
26859
26860 \begin_layout Description
26861 \begin_inset Flex Code
26862 status collapsed
26863
26864 \begin_layout Plain Layout
26865 InputFormat
26866 \begin_inset space ~
26867 \end_inset
26868
26869 <format>
26870 \end_layout
26871
26872 \end_inset
26873
26874  The file format of the original file.
26875  This must be the name of a format that is known to \SpecialChar LyX
26876  (see 
26877 \begin_inset CommandInset ref
26878 LatexCommand ref
26879 reference "sec:Formats"
26880
26881 \end_inset
26882
26883 ).
26884  Use 
26885 \begin_inset Quotes eld
26886 \end_inset
26887
26888
26889 \begin_inset Flex Code
26890 status collapsed
26891
26892 \begin_layout Plain Layout
26893 *
26894 \end_layout
26895
26896 \end_inset
26897
26898
26899 \begin_inset Quotes erd
26900 \end_inset
26901
26902  if the template can handle original files of more than one format.
26903  \SpecialChar LyX
26904  will attempt to interrogate the file itself in order to deduce its format
26905  in this case.
26906  This command must occur exactly once.
26907 \end_layout
26908
26909 \begin_layout Description
26910 \begin_inset Flex Code
26911 status collapsed
26912
26913 \begin_layout Plain Layout
26914 Template
26915 \begin_inset space ~
26916 \end_inset
26917
26918 <id>
26919 \end_layout
26920
26921 \end_inset
26922
26923  A unique name for the template.
26924  It must not contain substitution macros (see below).
26925 \end_layout
26926
26927 \begin_layout Description
26928 \begin_inset Flex Code
26929 status collapsed
26930
26931 \begin_layout Plain Layout
26932 Transform
26933 \begin_inset space ~
26934 \end_inset
26935
26936 Rotate|Resize|Clip|Extra
26937 \end_layout
26938
26939 \end_inset
26940
26941  This command specifies which transformations are supported by this template.
26942  It may occur zero or more times.
26943  This command enables the corresponding tabs in the external dialog.
26944  Each 
26945 \begin_inset Flex Code
26946 status collapsed
26947
26948 \begin_layout Plain Layout
26949 Transform
26950 \end_layout
26951
26952 \end_inset
26953
26954  command must have either a corresponding 
26955 \begin_inset Flex Code
26956 status collapsed
26957
26958 \begin_layout Plain Layout
26959 TransformCommand
26960 \end_layout
26961
26962 \end_inset
26963
26964  or a 
26965 \begin_inset Flex Code
26966 status collapsed
26967
26968 \begin_layout Plain Layout
26969 TransformOption
26970 \end_layout
26971
26972 \end_inset
26973
26974  command in the 
26975 \begin_inset Flex Code
26976 status collapsed
26977
26978 \begin_layout Plain Layout
26979 Format
26980 \end_layout
26981
26982 \end_inset
26983
26984  section.
26985  Otherwise the transformation will not be supported by that format.
26986 \end_layout
26987
26988 \begin_layout Subsection
26989 The Format section
26990 \end_layout
26991
26992 \begin_layout Description
26993 \begin_inset Flex Code
26994 status collapsed
26995
26996 \begin_layout Plain Layout
26997 Format
26998 \begin_inset space ~
26999 \end_inset
27000
27001 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
27002 \end_layout
27003
27004 \end_inset
27005
27006  The primary document file format that this format definition is for.
27007  Not every template has a sensible representation in all document file formats.
27008  Please define nevertheless a 
27009 \begin_inset Flex Code
27010 status collapsed
27011
27012 \begin_layout Plain Layout
27013 Format
27014 \end_layout
27015
27016 \end_inset
27017
27018  section for all templates.
27019  Use a dummy text when no representation is available.
27020  Then you can at least see a reference to the external material in the exported
27021  document.
27022 \end_layout
27023
27024 \begin_layout Description
27025 \begin_inset Flex Code
27026 status collapsed
27027
27028 \begin_layout Plain Layout
27029 Option
27030 \begin_inset space ~
27031 \end_inset
27032
27033 <name>
27034 \begin_inset space ~
27035 \end_inset
27036
27037 <value>
27038 \end_layout
27039
27040 \end_inset
27041
27042  This command defines an additional macro 
27043 \begin_inset Flex Code
27044 status collapsed
27045
27046 \begin_layout Plain Layout
27047 $$<name>
27048 \end_layout
27049
27050 \end_inset
27051
27052  for substitution in 
27053 \begin_inset Flex Code
27054 status collapsed
27055
27056 \begin_layout Plain Layout
27057 Product
27058 \end_layout
27059
27060 \end_inset
27061
27062 .
27063  
27064 \begin_inset Flex Code
27065 status collapsed
27066
27067 \begin_layout Plain Layout
27068 <value>
27069 \end_layout
27070
27071 \end_inset
27072
27073  itself may contain substitution macros.
27074  The advantage over using 
27075 \begin_inset Flex Code
27076 status collapsed
27077
27078 \begin_layout Plain Layout
27079 <value>
27080 \end_layout
27081
27082 \end_inset
27083
27084  directly in 
27085 \begin_inset Flex Code
27086 status collapsed
27087
27088 \begin_layout Plain Layout
27089 Product
27090 \end_layout
27091
27092 \end_inset
27093
27094  is that the substituted value of 
27095 \begin_inset Flex Code
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099 $$<name>
27100 \end_layout
27101
27102 \end_inset
27103
27104  is sanitized so that it is a valid optional argument in the document format.
27105  This command may occur zero or more times.
27106 \end_layout
27107
27108 \begin_layout Description
27109 \begin_inset Flex Code
27110 status collapsed
27111
27112 \begin_layout Plain Layout
27113 Product
27114 \begin_inset space ~
27115 \end_inset
27116
27117 <text>
27118 \end_layout
27119
27120 \end_inset
27121
27122  The text that is inserted in the exported document.
27123  This is actually the most important command and can be quite complex.
27124  This command must occur exactly once.
27125 \end_layout
27126
27127 \begin_layout Description
27128 \begin_inset Flex Code
27129 status collapsed
27130
27131 \begin_layout Plain Layout
27132 Preamble
27133 \begin_inset space ~
27134 \end_inset
27135
27136 <name>
27137 \end_layout
27138
27139 \end_inset
27140
27141  This command specifies a preamble snippet that will be included in the
27142  \SpecialChar LaTeX
27143  preamble.
27144  It has to be defined using 
27145 \begin_inset Flex Code
27146 status collapsed
27147
27148 \begin_layout Plain Layout
27149 PreambleDef
27150 \end_layout
27151
27152 \end_inset
27153
27154  \SpecialChar ldots
27155  
27156 \begin_inset Flex Code
27157 status collapsed
27158
27159 \begin_layout Plain Layout
27160 PreambleDefEnd
27161 \end_layout
27162
27163 \end_inset
27164
27165 .
27166  This command may occur zero or more times.
27167 \end_layout
27168
27169 \begin_layout Description
27170 \begin_inset Flex Code
27171 status collapsed
27172
27173 \begin_layout Plain Layout
27174 ReferencedFile
27175 \begin_inset space ~
27176 \end_inset
27177
27178 <format>
27179 \begin_inset space ~
27180 \end_inset
27181
27182 <filename>
27183 \end_layout
27184
27185 \end_inset
27186
27187  This command denotes files that are created by the conversion process and
27188  are needed for a particular export format.
27189  If the filename is relative, it is interpreted relative to the master document.
27190  This command may be given zero or more times.
27191 \end_layout
27192
27193 \begin_layout Description
27194 \begin_inset Flex Code
27195 status collapsed
27196
27197 \begin_layout Plain Layout
27198 Requirement
27199 \begin_inset space ~
27200 \end_inset
27201
27202 <package>
27203 \end_layout
27204
27205 \end_inset
27206
27207  The name of a required \SpecialChar LaTeX
27208  package.
27209  The package is included via 
27210 \begin_inset Flex Code
27211 status collapsed
27212
27213 \begin_layout Plain Layout
27214
27215 \backslash
27216 usepackage{}
27217 \end_layout
27218
27219 \end_inset
27220
27221  in the \SpecialChar LaTeX
27222  preamble.
27223  This command may occur zero or more times.
27224 \end_layout
27225
27226 \begin_layout Description
27227 \begin_inset Flex Code
27228 status collapsed
27229
27230 \begin_layout Plain Layout
27231 TransformCommand
27232 \begin_inset space ~
27233 \end_inset
27234
27235 Rotate
27236 \begin_inset space ~
27237 \end_inset
27238
27239 RotationLatexCommand
27240 \end_layout
27241
27242 \end_inset
27243
27244  This command specifies that the built in \SpecialChar LaTeX
27245  command should be used for rotation.
27246  This command may occur once or not at all.
27247 \end_layout
27248
27249 \begin_layout Description
27250 \begin_inset Flex Code
27251 status collapsed
27252
27253 \begin_layout Plain Layout
27254 TransformCommand
27255 \begin_inset space ~
27256 \end_inset
27257
27258 Resize
27259 \begin_inset space ~
27260 \end_inset
27261
27262 ResizeLatexCommand
27263 \end_layout
27264
27265 \end_inset
27266
27267  This command specifies that the built in \SpecialChar LaTeX
27268  command should be used for resizing.
27269  This command may occur once or not at all.
27270 \end_layout
27271
27272 \begin_layout Description
27273 \begin_inset Flex Code
27274 status collapsed
27275
27276 \begin_layout Plain Layout
27277 TransformOption
27278 \begin_inset space ~
27279 \end_inset
27280
27281 Rotate
27282 \begin_inset space ~
27283 \end_inset
27284
27285 RotationLatexOption
27286 \end_layout
27287
27288 \end_inset
27289
27290  This command specifies that rotation is done via an optional argument.
27291  This command may occur once or not at all.
27292 \end_layout
27293
27294 \begin_layout Description
27295 \begin_inset Flex Code
27296 status collapsed
27297
27298 \begin_layout Plain Layout
27299 TransformOption
27300 \begin_inset space ~
27301 \end_inset
27302
27303 Resize
27304 \begin_inset space ~
27305 \end_inset
27306
27307 ResizeLatexOption
27308 \end_layout
27309
27310 \end_inset
27311
27312  This command specifies that resizing is done via an optional argument.
27313  This command may occur once or not at all.
27314 \end_layout
27315
27316 \begin_layout Description
27317 \begin_inset Flex Code
27318 status collapsed
27319
27320 \begin_layout Plain Layout
27321 TransformOption
27322 \begin_inset space ~
27323 \end_inset
27324
27325 Clip
27326 \begin_inset space ~
27327 \end_inset
27328
27329 ClipLatexOption
27330 \end_layout
27331
27332 \end_inset
27333
27334  This command specifies that clipping is done via an optional argument.
27335  This command may occur once or not at all.
27336 \end_layout
27337
27338 \begin_layout Description
27339 \begin_inset Flex Code
27340 status collapsed
27341
27342 \begin_layout Plain Layout
27343 TransformOption
27344 \begin_inset space ~
27345 \end_inset
27346
27347 Extra
27348 \begin_inset space ~
27349 \end_inset
27350
27351 ExtraLatexOption
27352 \end_layout
27353
27354 \end_inset
27355
27356  This command specifies that an extra optional argument is used.
27357  This command may occur once or not at all.
27358 \end_layout
27359
27360 \begin_layout Description
27361 \begin_inset Flex Code
27362 status collapsed
27363
27364 \begin_layout Plain Layout
27365 UpdateFormat
27366 \begin_inset space ~
27367 \end_inset
27368
27369 <format>
27370 \end_layout
27371
27372 \end_inset
27373
27374  The file format of the converted file.
27375  This must be the name of a format that is known to \SpecialChar LyX
27376  (see the 
27377 \begin_inset Flex Noun
27378 status collapsed
27379
27380 \begin_layout Plain Layout
27381 Tools\SpecialChar menuseparator
27382 Preferences\SpecialChar menuseparator
27383 File Handling\SpecialChar menuseparator
27384 File Format
27385 \end_layout
27386
27387 \end_inset
27388
27389  dialog).
27390  This command must occur exactly once.
27391  If the resulting file format is PDF, you need to specify the format 
27392 \begin_inset Flex Code
27393 status collapsed
27394
27395 \begin_layout Plain Layout
27396 pdf6
27397 \end_layout
27398
27399 \end_inset
27400
27401 .
27402  This is the PDF format used for including graphics.
27403  The other defined PDF formats are for document export.
27404 \end_layout
27405
27406 \begin_layout Description
27407 \begin_inset Flex Code
27408 status collapsed
27409
27410 \begin_layout Plain Layout
27411 UpdateResult
27412 \begin_inset space ~
27413 \end_inset
27414
27415 <filename>
27416 \end_layout
27417
27418 \end_inset
27419
27420  The file name of the converted file.
27421  The file name must be absolute.
27422  This command must occur exactly once.
27423 \end_layout
27424
27425 \begin_layout Subsection
27426 Preamble definitions
27427 \end_layout
27428
27429 \begin_layout Standard
27430 The external template configuration file may contain additional preamble
27431  definitions enclosed by 
27432 \begin_inset Flex Code
27433 status collapsed
27434
27435 \begin_layout Plain Layout
27436 PreambleDef
27437 \end_layout
27438
27439 \end_inset
27440
27441  \SpecialChar ldots
27442  
27443 \begin_inset Flex Code
27444 status collapsed
27445
27446 \begin_layout Plain Layout
27447 PreambleDefEnd
27448 \end_layout
27449
27450 \end_inset
27451
27452 .
27453  They can be used by the templates in the 
27454 \begin_inset Flex Code
27455 status collapsed
27456
27457 \begin_layout Plain Layout
27458 Format
27459 \end_layout
27460
27461 \end_inset
27462
27463  section.
27464 \end_layout
27465
27466 \begin_layout Section
27467 The substitution mechanism
27468 \end_layout
27469
27470 \begin_layout Standard
27471 When the external material facility invokes an external program, it is done
27472  on the basis of a command defined in the template configuration file.
27473  These commands can contain various macros that are expanded before execution.
27474  Execution always take place in the directory of the containing document.
27475 \end_layout
27476
27477 \begin_layout Standard
27478 Also, whenever external material is to be displayed, the name will be produced
27479  by the substitution mechanism, and most other commands in the template
27480  definition support substitution as well.
27481 \end_layout
27482
27483 \begin_layout Standard
27484 The available macros are the following:
27485 \end_layout
27486
27487 \begin_layout Description
27488 \begin_inset Flex Code
27489 status collapsed
27490
27491 \begin_layout Plain Layout
27492 $$AbsOrRelPathMaster
27493 \end_layout
27494
27495 \end_inset
27496
27497  The file path, absolute or relative to the master \SpecialChar LyX
27498  document.
27499 \end_layout
27500
27501 \begin_layout Description
27502 \begin_inset Flex Code
27503 status collapsed
27504
27505 \begin_layout Plain Layout
27506 $$AbsOrRelPathParent
27507 \end_layout
27508
27509 \end_inset
27510
27511  The file path, absolute or relative to the \SpecialChar LyX
27512  document.
27513 \end_layout
27514
27515 \begin_layout Description
27516 \begin_inset Flex Code
27517 status collapsed
27518
27519 \begin_layout Plain Layout
27520 $$AbsPath
27521 \end_layout
27522
27523 \end_inset
27524
27525  The absolute file path.
27526 \end_layout
27527
27528 \begin_layout Description
27529 \begin_inset Flex Code
27530 status collapsed
27531
27532 \begin_layout Plain Layout
27533 $$Basename
27534 \end_layout
27535
27536 \end_inset
27537
27538  The filename without path and without the extension.
27539 \end_layout
27540
27541 \begin_layout Description
27542 \begin_inset Flex Code
27543 status collapsed
27544
27545 \begin_layout Plain Layout
27546 $$Contents(
27547 \begin_inset Quotes eld
27548 \end_inset
27549
27550 filename.ext
27551 \begin_inset Quotes erd
27552 \end_inset
27553
27554 )
27555 \end_layout
27556
27557 \end_inset
27558
27559  This macro will expand to the contents of the file with the name 
27560 \begin_inset Flex Code
27561 status collapsed
27562
27563 \begin_layout Plain Layout
27564 filename.ext
27565 \end_layout
27566
27567 \end_inset
27568
27569 .
27570 \end_layout
27571
27572 \begin_layout Description
27573 \begin_inset Flex Code
27574 status collapsed
27575
27576 \begin_layout Plain Layout
27577 $$Extension
27578 \end_layout
27579
27580 \end_inset
27581
27582  The file extension (including the dot).
27583 \end_layout
27584
27585 \begin_layout Description
27586 \begin_inset Flex Code
27587 status collapsed
27588
27589 \begin_layout Plain Layout
27590 $$pngOrjpg
27591 \end_layout
27592
27593 \end_inset
27594
27595  This will be the string 
27596 \begin_inset Quotes eld
27597 \end_inset
27598
27599 jpg
27600 \begin_inset Quotes erd
27601 \end_inset
27602
27603  if the file is in JPEG format, otherwise it will be the string 
27604 \begin_inset Quotes eld
27605 \end_inset
27606
27607 png
27608 \begin_inset Quotes erd
27609 \end_inset
27610
27611 .
27612  This is useful to avoid uneeded conversions for output formats that support
27613  both PNG and JPEG fomats.
27614  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
27615  output
27616  format.
27617 \end_layout
27618
27619 \begin_layout Description
27620 \begin_inset Flex Code
27621 status collapsed
27622
27623 \begin_layout Plain Layout
27624 $$FName
27625 \end_layout
27626
27627 \end_inset
27628
27629  The filename of the file specified in the external material dialog.
27630  This is either an absolute name, or it is relative to the \SpecialChar LyX
27631  document.
27632 \end_layout
27633
27634 \begin_layout Description
27635 \begin_inset Flex Code
27636 status collapsed
27637
27638 \begin_layout Plain Layout
27639 $$FPath
27640 \end_layout
27641
27642 \end_inset
27643
27644  The path part of 
27645 \begin_inset Flex Code
27646 status collapsed
27647
27648 \begin_layout Plain Layout
27649 $$FName
27650 \end_layout
27651
27652 \end_inset
27653
27654  (absolute name or relative to the \SpecialChar LyX
27655  document).
27656 \end_layout
27657
27658 \begin_layout Description
27659 \begin_inset Flex Code
27660 status collapsed
27661
27662 \begin_layout Plain Layout
27663 $$RelPathMaster
27664 \end_layout
27665
27666 \end_inset
27667
27668  The file path, relative to the master \SpecialChar LyX
27669  document.
27670 \end_layout
27671
27672 \begin_layout Description
27673 \begin_inset Flex Code
27674 status collapsed
27675
27676 \begin_layout Plain Layout
27677 $$RelPathParent
27678 \end_layout
27679
27680 \end_inset
27681
27682  The file path, relative to the \SpecialChar LyX
27683  document.
27684 \end_layout
27685
27686 \begin_layout Description
27687 \begin_inset Flex Code
27688 status collapsed
27689
27690 \begin_layout Plain Layout
27691 $$Sysdir
27692 \end_layout
27693
27694 \end_inset
27695
27696  This macro will expand to the absolute path of the system directory.
27697  This is typically used to point to the various helper scripts that are
27698  bundled with \SpecialChar LyX
27699 .
27700 \end_layout
27701
27702 \begin_layout Description
27703 \begin_inset Flex Code
27704 status collapsed
27705
27706 \begin_layout Plain Layout
27707 $$Tempname
27708 \end_layout
27709
27710 \end_inset
27711
27712  A name and full path to a temporary file which will be automatically deleted
27713  whenever the containing document is closed, or the external material insertion
27714  deleted.
27715 \end_layout
27716
27717 \begin_layout Standard
27718 All path macros contain a trailing directory separator, so you can construct
27719  e.
27720 \begin_inset space \thinspace{}
27721 \end_inset
27722
27723 g.
27724 \begin_inset space \space{}
27725 \end_inset
27726
27727 the absolute filename with 
27728 \begin_inset Flex Code
27729 status collapsed
27730
27731 \begin_layout Plain Layout
27732 $$AbsPath$$Basename$$Extension
27733 \end_layout
27734
27735 \end_inset
27736
27737 .
27738 \end_layout
27739
27740 \begin_layout Standard
27741 The macros above are substituted in all commands unless otherwise noted.
27742  The command 
27743 \begin_inset Flex Code
27744 status collapsed
27745
27746 \begin_layout Plain Layout
27747 Product
27748 \end_layout
27749
27750 \end_inset
27751
27752  supports additionally the following substitutions if they are enabled by
27753  the 
27754 \begin_inset Flex Code
27755 status collapsed
27756
27757 \begin_layout Plain Layout
27758 Transform
27759 \end_layout
27760
27761 \end_inset
27762
27763  and 
27764 \begin_inset Flex Code
27765 status collapsed
27766
27767 \begin_layout Plain Layout
27768 TransformCommand
27769 \end_layout
27770
27771 \end_inset
27772
27773  commands:
27774 \end_layout
27775
27776 \begin_layout Description
27777 \begin_inset Flex Code
27778 status collapsed
27779
27780 \begin_layout Plain Layout
27781 $$ResizeFront
27782 \end_layout
27783
27784 \end_inset
27785
27786  The front part of the resize command.
27787 \end_layout
27788
27789 \begin_layout Description
27790 \begin_inset Flex Code
27791 status collapsed
27792
27793 \begin_layout Plain Layout
27794 $$ResizeBack
27795 \end_layout
27796
27797 \end_inset
27798
27799  The back part of the resize command.
27800 \end_layout
27801
27802 \begin_layout Description
27803 \begin_inset Flex Code
27804 status collapsed
27805
27806 \begin_layout Plain Layout
27807 $$RotateFront
27808 \end_layout
27809
27810 \end_inset
27811
27812  The front part of the rotation command.
27813 \end_layout
27814
27815 \begin_layout Description
27816 \begin_inset Flex Code
27817 status collapsed
27818
27819 \begin_layout Plain Layout
27820 $$RotateBack
27821 \end_layout
27822
27823 \end_inset
27824
27825  The back part of the rotation command.
27826 \end_layout
27827
27828 \begin_layout Standard
27829 The value string of the 
27830 \begin_inset Flex Code
27831 status collapsed
27832
27833 \begin_layout Plain Layout
27834 Option
27835 \end_layout
27836
27837 \end_inset
27838
27839  command supports additionally the following substitutions if they are enabled
27840  by the 
27841 \begin_inset Flex Code
27842 status collapsed
27843
27844 \begin_layout Plain Layout
27845 Transform
27846 \end_layout
27847
27848 \end_inset
27849
27850  and 
27851 \begin_inset Flex Code
27852 status collapsed
27853
27854 \begin_layout Plain Layout
27855 TransformOption
27856 \end_layout
27857
27858 \end_inset
27859
27860  commands:
27861 \end_layout
27862
27863 \begin_layout Description
27864 \begin_inset Flex Code
27865 status collapsed
27866
27867 \begin_layout Plain Layout
27868 $$Clip
27869 \end_layout
27870
27871 \end_inset
27872
27873  The clip option.
27874 \end_layout
27875
27876 \begin_layout Description
27877 \begin_inset Flex Code
27878 status collapsed
27879
27880 \begin_layout Plain Layout
27881 $$Extra
27882 \end_layout
27883
27884 \end_inset
27885
27886  The extra option.
27887 \end_layout
27888
27889 \begin_layout Description
27890 \begin_inset Flex Code
27891 status collapsed
27892
27893 \begin_layout Plain Layout
27894 $$Resize
27895 \end_layout
27896
27897 \end_inset
27898
27899  The resize option.
27900 \end_layout
27901
27902 \begin_layout Description
27903 \begin_inset Flex Code
27904 status collapsed
27905
27906 \begin_layout Plain Layout
27907 $$Rotate
27908 \end_layout
27909
27910 \end_inset
27911
27912  The rotation option.
27913 \end_layout
27914
27915 \begin_layout Standard
27916 You may ask why there are so many path macros.
27917  There are mainly two reasons:
27918 \end_layout
27919
27920 \begin_layout Enumerate
27921 Relative and absolute file names should remain relative or absolute, respectivel
27922 y.
27923  Users may have reasons to prefer either form.
27924  Relative names are useful for portable documents that should work on different
27925  machines, for example.
27926  Absolute names may be required by some programs.
27927 \end_layout
27928
27929 \begin_layout Enumerate
27930 \SpecialChar LaTeX
27931  treats relative file names differently than \SpecialChar LyX
27932  and other programs in nested
27933  included files.
27934  For \SpecialChar LyX
27935 , a relative file name is always relative to the document that contains
27936  the file name.
27937  For \SpecialChar LaTeX
27938 , it is always relative to the master document.
27939  These two definitions are identical if you have only one document, but
27940  differ if you have a master document that includes part documents.
27941  That means that relative filenames must be transformed when presented to
27942  \SpecialChar LaTeX
27943 .
27944  Fortunately \SpecialChar LyX
27945  does this automatically for you if you choose the right macros.
27946 \end_layout
27947
27948 \begin_layout Standard
27949 So which path macro should be used in new template definitions? The rule
27950  is not difficult:
27951 \end_layout
27952
27953 \begin_layout Itemize
27954 Use 
27955 \begin_inset Flex Code
27956 status collapsed
27957
27958 \begin_layout Plain Layout
27959 $$AbsPath
27960 \end_layout
27961
27962 \end_inset
27963
27964  if an absolute path is required.
27965 \end_layout
27966
27967 \begin_layout Itemize
27968 Use 
27969 \begin_inset Flex Code
27970 status collapsed
27971
27972 \begin_layout Plain Layout
27973 $$AbsOrRelPathMaster
27974 \end_layout
27975
27976 \end_inset
27977
27978  if the substituted string is some kind of \SpecialChar LaTeX
27979  input.
27980 \end_layout
27981
27982 \begin_layout Itemize
27983 Else use 
27984 \begin_inset Flex Code
27985 status collapsed
27986
27987 \begin_layout Plain Layout
27988 $$AbsOrRelPathParent
27989 \end_layout
27990
27991 \end_inset
27992
27993  in order to preserve the user's choice.
27994 \end_layout
27995
27996 \begin_layout Standard
27997 There are special cases where this rule does not work and e.
27998 \begin_inset space \thinspace{}
27999 \end_inset
28000
28001 g.
28002 \begin_inset space \space{}
28003 \end_inset
28004
28005 relative names are needed, but normally it will work just fine.
28006  One example for such a case is the command 
28007 \begin_inset Flex Code
28008 status collapsed
28009
28010 \begin_layout Plain Layout
28011 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28012 \end_layout
28013
28014 \end_inset
28015
28016  in the XFig template above: We can't use the absolute name because the
28017  copier for 
28018 \begin_inset Flex Code
28019 status collapsed
28020
28021 \begin_layout Plain Layout
28022 .pstex_t
28023 \end_layout
28024
28025 \end_inset
28026
28027  files needs the relative name in order to rewrite the file content.
28028 \end_layout
28029
28030 \begin_layout Section
28031 Security discussion
28032 \begin_inset CommandInset label
28033 LatexCommand label
28034 name "sec:Security-discussion"
28035
28036 \end_inset
28037
28038
28039 \end_layout
28040
28041 \begin_layout Standard
28042 The external material feature interfaces with a lot of external programs
28043  and does so automatically, so we have to consider the security implications
28044  of this.
28045  In particular, since you have the option of including your own filenames
28046  and/or parameter strings and those are expanded into a command, it seems
28047  that it would be possible to create a malicious document which executes
28048  arbitrary commands when a user views or prints the document.
28049  This is something we definitely want to avoid.
28050 \end_layout
28051
28052 \begin_layout Standard
28053 However, since the external program commands are specified in the template
28054  configuration file only, there are no security issues if \SpecialChar LyX
28055  is properly configure
28056 d with safe templates only.
28057  This is so because the external programs are invoked with the 
28058 \begin_inset Flex Code
28059 status collapsed
28060
28061 \begin_layout Plain Layout
28062 execvp
28063 \end_layout
28064
28065 \end_inset
28066
28067 -system call rather than the 
28068 \begin_inset Flex Code
28069 status collapsed
28070
28071 \begin_layout Plain Layout
28072 system
28073 \end_layout
28074
28075 \end_inset
28076
28077  system-call, so it's not possible to execute arbitrary commands from the
28078  filename or parameter section via the shell.
28079 \end_layout
28080
28081 \begin_layout Standard
28082 This also implies that you are restricted in what command strings you can
28083  use in the external material templates.
28084  In particular, pipes and redirection are not readily available.
28085  This has to be so if \SpecialChar LyX
28086  should remain safe.
28087  If you want to use some of the shell features, you should write a safe
28088  script to do this in a controlled manner, and then invoke the script from
28089  the command string.
28090  
28091 \end_layout
28092
28093 \begin_layout Standard
28094 It is possible to design a template that interacts directly with the shell,
28095  but since this would allow a malicious user to execute arbitrary commands
28096  by writing clever filenames and/or parameters, we generally recommend that
28097  you only use safe scripts that work with the 
28098 \begin_inset Flex Code
28099 status collapsed
28100
28101 \begin_layout Plain Layout
28102 execvp
28103 \end_layout
28104
28105 \end_inset
28106
28107  system call in a controlled manner.
28108  Of course, for use in a controlled environment, it can be tempting to just
28109  fall back to use ordinary shell scripts.
28110  If you do so, be aware that you 
28111 \emph on
28112 will
28113 \emph default
28114  provide an easily exploitable security hole in your system.
28115  Of course it stands to reason that such unsafe templates will never be
28116  included in the standard \SpecialChar LyX
28117  distribution, although we do encourage people
28118  to submit new templates in the open source tradition.
28119  But \SpecialChar LyX
28120  as shipped from the official distribution channels will never have
28121  unsafe templates.
28122 \end_layout
28123
28124 \begin_layout Standard
28125 Including external material provides a lot of power, and you have to be
28126  careful not to introduce security hazards with this power.
28127  A subtle error in a single line in an innocent looking script can open
28128  the door to huge security problems.
28129  So if you do not fully understand the issues, we recommend that you consult
28130  a knowledgeable security professional or the \SpecialChar LyX
28131  development team if you have
28132  any questions about whether a given template is safe or not.
28133  And do this before you use it in an uncontrolled environment.
28134 \end_layout
28135
28136 \begin_layout Chapter
28137 \start_of_appendix
28138 List of supported \SpecialChar LyX
28139  functions to be used in layouts
28140 \begin_inset CommandInset label
28141 LatexCommand label
28142 name "chap:List-of-functions"
28143
28144 \end_inset
28145
28146
28147 \end_layout
28148
28149 \begin_layout Standard
28150 \align center
28151 \begin_inset Tabular
28152 <lyxtabular version="3" rows="11" columns="8">
28153 <features tabularvalignment="middle">
28154 <column alignment="left" valignment="top">
28155 <column alignment="left" valignment="top">
28156 <column alignment="left" valignment="top">
28157 <column alignment="left" valignment="top">
28158 <column alignment="left" valignment="top">
28159 <column alignment="left" valignment="top">
28160 <column alignment="left" valignment="top">
28161 <column alignment="left" valignment="top">
28162 <row>
28163 <cell alignment="left" valignment="top" usebox="none">
28164 \begin_inset Text
28165
28166 \begin_layout Plain Layout
28167 accents
28168 \end_layout
28169
28170 \end_inset
28171 </cell>
28172 <cell alignment="left" valignment="top" usebox="none">
28173 \begin_inset Text
28174
28175 \begin_layout Plain Layout
28176 booktabs
28177 \end_layout
28178
28179 \end_inset
28180 </cell>
28181 <cell alignment="left" valignment="top" usebox="none">
28182 \begin_inset Text
28183
28184 \begin_layout Plain Layout
28185 feyn
28186 \end_layout
28187
28188 \end_inset
28189 </cell>
28190 <cell alignment="left" valignment="top" usebox="none">
28191 \begin_inset Text
28192
28193 \begin_layout Plain Layout
28194 listings
28195 \end_layout
28196
28197 \end_inset
28198 </cell>
28199 <cell alignment="center" valignment="top" usebox="none">
28200 \begin_inset Text
28201
28202 \begin_layout Plain Layout
28203 natbib
28204 \end_layout
28205
28206 \end_inset
28207 </cell>
28208 <cell alignment="center" valignment="top" usebox="none">
28209 \begin_inset Text
28210
28211 \begin_layout Plain Layout
28212 rotfloat
28213 \end_layout
28214
28215 \end_inset
28216 </cell>
28217 <cell alignment="center" valignment="top" usebox="none">
28218 \begin_inset Text
28219
28220 \begin_layout Plain Layout
28221 tfrupee
28222 \end_layout
28223
28224 \end_inset
28225 </cell>
28226 <cell alignment="center" valignment="top" usebox="none">
28227 \begin_inset Text
28228
28229 \begin_layout Plain Layout
28230 wasysym
28231 \end_layout
28232
28233 \end_inset
28234 </cell>
28235 </row>
28236 <row>
28237 <cell alignment="left" valignment="top" usebox="none">
28238 \begin_inset Text
28239
28240 \begin_layout Plain Layout
28241 amsbsy
28242 \end_layout
28243
28244 \end_inset
28245 </cell>
28246 <cell alignment="left" valignment="top" usebox="none">
28247 \begin_inset Text
28248
28249 \begin_layout Plain Layout
28250 calc
28251 \end_layout
28252
28253 \end_inset
28254 </cell>
28255 <cell alignment="left" valignment="top" usebox="none">
28256 \begin_inset Text
28257
28258 \begin_layout Plain Layout
28259 fixltx2e
28260 \end_layout
28261
28262 \end_inset
28263 </cell>
28264 <cell alignment="left" valignment="top" usebox="none">
28265 \begin_inset Text
28266
28267 \begin_layout Plain Layout
28268 longtable
28269 \end_layout
28270
28271 \end_inset
28272 </cell>
28273 <cell alignment="center" valignment="top" usebox="none">
28274 \begin_inset Text
28275
28276 \begin_layout Plain Layout
28277 nomencl
28278 \end_layout
28279
28280 \end_inset
28281 </cell>
28282 <cell alignment="center" valignment="top" usebox="none">
28283 \begin_inset Text
28284
28285 \begin_layout Plain Layout
28286 rsphrase
28287 \end_layout
28288
28289 \end_inset
28290 </cell>
28291 <cell alignment="center" valignment="top" usebox="none">
28292 \begin_inset Text
28293
28294 \begin_layout Plain Layout
28295 tipa
28296 \end_layout
28297
28298 \end_inset
28299 </cell>
28300 <cell alignment="center" valignment="top" usebox="none">
28301 \begin_inset Text
28302
28303 \begin_layout Plain Layout
28304 wrapfig
28305 \end_layout
28306
28307 \end_inset
28308 </cell>
28309 </row>
28310 <row>
28311 <cell alignment="left" valignment="top" usebox="none">
28312 \begin_inset Text
28313
28314 \begin_layout Plain Layout
28315 amscd
28316 \end_layout
28317
28318 \end_inset
28319 </cell>
28320 <cell alignment="left" valignment="top" usebox="none">
28321 \begin_inset Text
28322
28323 \begin_layout Plain Layout
28324 CJK
28325 \end_layout
28326
28327 \end_inset
28328 </cell>
28329 <cell alignment="left" valignment="top" usebox="none">
28330 \begin_inset Text
28331
28332 \begin_layout Plain Layout
28333 float
28334 \end_layout
28335
28336 \end_inset
28337 </cell>
28338 <cell alignment="left" valignment="top" usebox="none">
28339 \begin_inset Text
28340
28341 \begin_layout Plain Layout
28342 lyxskak
28343 \end_layout
28344
28345 \end_inset
28346 </cell>
28347 <cell alignment="center" valignment="top" usebox="none">
28348 \begin_inset Text
28349
28350 \begin_layout Plain Layout
28351 pdfcolmk
28352 \end_layout
28353
28354 \end_inset
28355 </cell>
28356 <cell alignment="center" valignment="top" usebox="none">
28357 \begin_inset Text
28358
28359 \begin_layout Plain Layout
28360 setspace
28361 \end_layout
28362
28363 \end_inset
28364 </cell>
28365 <cell alignment="center" valignment="top" usebox="none">
28366 \begin_inset Text
28367
28368 \begin_layout Plain Layout
28369 tipx
28370 \end_layout
28371
28372 \end_inset
28373 </cell>
28374 <cell alignment="center" valignment="top" usebox="none">
28375 \begin_inset Text
28376
28377 \begin_layout Plain Layout
28378 xargs
28379 \end_layout
28380
28381 \end_inset
28382 </cell>
28383 </row>
28384 <row>
28385 <cell alignment="left" valignment="top" usebox="none">
28386 \begin_inset Text
28387
28388 \begin_layout Plain Layout
28389 amsmath
28390 \end_layout
28391
28392 \end_inset
28393 </cell>
28394 <cell alignment="left" valignment="top" usebox="none">
28395 \begin_inset Text
28396
28397 \begin_layout Plain Layout
28398 color
28399 \end_layout
28400
28401 \end_inset
28402 </cell>
28403 <cell alignment="left" valignment="top" usebox="none">
28404 \begin_inset Text
28405
28406 \begin_layout Plain Layout
28407 framed
28408 \end_layout
28409
28410 \end_inset
28411 </cell>
28412 <cell alignment="left" valignment="top" usebox="none">
28413 \begin_inset Text
28414
28415 \begin_layout Plain Layout
28416 makeidx
28417 \end_layout
28418
28419 \end_inset
28420 </cell>
28421 <cell alignment="center" valignment="top" usebox="none">
28422 \begin_inset Text
28423
28424 \begin_layout Plain Layout
28425 pdfpages
28426 \end_layout
28427
28428 \end_inset
28429 </cell>
28430 <cell alignment="center" valignment="top" usebox="none">
28431 \begin_inset Text
28432
28433 \begin_layout Plain Layout
28434 shapepar
28435 \end_layout
28436
28437 \end_inset
28438 </cell>
28439 <cell alignment="center" valignment="top" usebox="none">
28440 \begin_inset Text
28441
28442 \begin_layout Plain Layout
28443 tone
28444 \end_layout
28445
28446 \end_inset
28447 </cell>
28448 <cell alignment="center" valignment="top" usebox="none">
28449 \begin_inset Text
28450
28451 \begin_layout Plain Layout
28452 xcolor
28453 \end_layout
28454
28455 \end_inset
28456 </cell>
28457 </row>
28458 <row>
28459 <cell alignment="left" valignment="top" usebox="none">
28460 \begin_inset Text
28461
28462 \begin_layout Plain Layout
28463 amssymb
28464 \end_layout
28465
28466 \end_inset
28467 </cell>
28468 <cell alignment="left" valignment="top" usebox="none">
28469 \begin_inset Text
28470
28471 \begin_layout Plain Layout
28472 covington
28473 \end_layout
28474
28475 \end_inset
28476 </cell>
28477 <cell alignment="left" valignment="top" usebox="none">
28478 \begin_inset Text
28479
28480 \begin_layout Plain Layout
28481 graphicx
28482 \end_layout
28483
28484 \end_inset
28485 </cell>
28486 <cell alignment="left" valignment="top" usebox="none">
28487 \begin_inset Text
28488
28489 \begin_layout Plain Layout
28490 marvosym
28491 \end_layout
28492
28493 \end_inset
28494 </cell>
28495 <cell alignment="center" valignment="top" usebox="none">
28496 \begin_inset Text
28497
28498 \begin_layout Plain Layout
28499 pifont
28500 \end_layout
28501
28502 \end_inset
28503 </cell>
28504 <cell alignment="center" valignment="top" usebox="none">
28505 \begin_inset Text
28506
28507 \begin_layout Plain Layout
28508 slashed
28509 \end_layout
28510
28511 \end_inset
28512 </cell>
28513 <cell alignment="center" valignment="top" usebox="none">
28514 \begin_inset Text
28515
28516 \begin_layout Plain Layout
28517 txfonts
28518 \end_layout
28519
28520 \end_inset
28521 </cell>
28522 <cell alignment="center" valignment="top" usebox="none">
28523 \begin_inset Text
28524
28525 \begin_layout Plain Layout
28526 xy
28527 \end_layout
28528
28529 \end_inset
28530 </cell>
28531 </row>
28532 <row>
28533 <cell alignment="left" valignment="top" usebox="none">
28534 \begin_inset Text
28535
28536 \begin_layout Plain Layout
28537 amstext
28538 \end_layout
28539
28540 \end_inset
28541 </cell>
28542 <cell alignment="left" valignment="top" usebox="none">
28543 \begin_inset Text
28544
28545 \begin_layout Plain Layout
28546 csquotes
28547 \end_layout
28548
28549 \end_inset
28550 </cell>
28551 <cell alignment="left" valignment="top" usebox="none">
28552 \begin_inset Text
28553
28554 \begin_layout Plain Layout
28555 hhline
28556 \end_layout
28557
28558 \end_inset
28559 </cell>
28560 <cell alignment="left" valignment="top" usebox="none">
28561 \begin_inset Text
28562
28563 \begin_layout Plain Layout
28564 mathdesign
28565 \end_layout
28566
28567 \end_inset
28568 </cell>
28569 <cell alignment="center" valignment="top" usebox="none">
28570 \begin_inset Text
28571
28572 \begin_layout Plain Layout
28573 pmboxdraw
28574 \end_layout
28575
28576 \end_inset
28577 </cell>
28578 <cell alignment="center" valignment="top" usebox="none">
28579 \begin_inset Text
28580
28581 \begin_layout Plain Layout
28582 soul
28583 \end_layout
28584
28585 \end_inset
28586 </cell>
28587 <cell alignment="center" valignment="top" usebox="none">
28588 \begin_inset Text
28589
28590 \begin_layout Plain Layout
28591 ulem
28592 \end_layout
28593
28594 \end_inset
28595 </cell>
28596 <cell alignment="center" valignment="top" usebox="none">
28597 \begin_inset Text
28598
28599 \begin_layout Plain Layout
28600 yhmath
28601 \end_layout
28602
28603 \end_inset
28604 </cell>
28605 </row>
28606 <row>
28607 <cell alignment="left" valignment="top" usebox="none">
28608 \begin_inset Text
28609
28610 \begin_layout Plain Layout
28611 amsthm
28612 \end_layout
28613
28614 \end_inset
28615 </cell>
28616 <cell alignment="left" valignment="top" usebox="none">
28617 \begin_inset Text
28618
28619 \begin_layout Plain Layout
28620 dvipost
28621 \end_layout
28622
28623 \end_inset
28624 </cell>
28625 <cell alignment="left" valignment="top" usebox="none">
28626 \begin_inset Text
28627
28628 \begin_layout Plain Layout
28629 hyperref
28630 \end_layout
28631
28632 \end_inset
28633 </cell>
28634 <cell alignment="left" valignment="top" usebox="none">
28635 \begin_inset Text
28636
28637 \begin_layout Plain Layout
28638 mathdots
28639 \end_layout
28640
28641 \end_inset
28642 </cell>
28643 <cell alignment="center" valignment="top" usebox="none">
28644 \begin_inset Text
28645
28646 \begin_layout Plain Layout
28647 polyglossia
28648 \end_layout
28649
28650 \end_inset
28651 </cell>
28652 <cell alignment="center" valignment="top" usebox="none">
28653 \begin_inset Text
28654
28655 \begin_layout Plain Layout
28656 splitidx
28657 \end_layout
28658
28659 \end_inset
28660 </cell>
28661 <cell alignment="center" valignment="top" usebox="none">
28662 \begin_inset Text
28663
28664 \begin_layout Plain Layout
28665 undertilde
28666 \end_layout
28667
28668 \end_inset
28669 </cell>
28670 <cell alignment="center" valignment="top" usebox="none">
28671 \begin_inset Text
28672
28673 \begin_layout Plain Layout
28674
28675 \end_layout
28676
28677 \end_inset
28678 </cell>
28679 </row>
28680 <row>
28681 <cell alignment="left" valignment="top" usebox="none">
28682 \begin_inset Text
28683
28684 \begin_layout Plain Layout
28685 array
28686 \end_layout
28687
28688 \end_inset
28689 </cell>
28690 <cell alignment="left" valignment="top" usebox="none">
28691 \begin_inset Text
28692
28693 \begin_layout Plain Layout
28694 endnotes
28695 \end_layout
28696
28697 \end_inset
28698 </cell>
28699 <cell alignment="left" valignment="top" usebox="none">
28700 \begin_inset Text
28701
28702 \begin_layout Plain Layout
28703 ifsym
28704 \end_layout
28705
28706 \end_inset
28707 </cell>
28708 <cell alignment="left" valignment="top" usebox="none">
28709 \begin_inset Text
28710
28711 \begin_layout Plain Layout
28712 mathrsfs
28713 \end_layout
28714
28715 \end_inset
28716 </cell>
28717 <cell alignment="center" valignment="top" usebox="none">
28718 \begin_inset Text
28719
28720 \begin_layout Plain Layout
28721 prettyref
28722 \end_layout
28723
28724 \end_inset
28725 </cell>
28726 <cell alignment="center" valignment="top" usebox="none">
28727 \begin_inset Text
28728
28729 \begin_layout Plain Layout
28730 subfig
28731 \end_layout
28732
28733 \end_inset
28734 </cell>
28735 <cell alignment="center" valignment="top" usebox="none">
28736 \begin_inset Text
28737
28738 \begin_layout Plain Layout
28739 units
28740 \end_layout
28741
28742 \end_inset
28743 </cell>
28744 <cell alignment="center" valignment="top" usebox="none">
28745 \begin_inset Text
28746
28747 \begin_layout Plain Layout
28748
28749 \end_layout
28750
28751 \end_inset
28752 </cell>
28753 </row>
28754 <row>
28755 <cell alignment="left" valignment="top" usebox="none">
28756 \begin_inset Text
28757
28758 \begin_layout Plain Layout
28759 ascii
28760 \end_layout
28761
28762 \end_inset
28763 </cell>
28764 <cell alignment="left" valignment="top" usebox="none">
28765 \begin_inset Text
28766
28767 \begin_layout Plain Layout
28768 enumitem
28769 \end_layout
28770
28771 \end_inset
28772 </cell>
28773 <cell alignment="left" valignment="top" usebox="none">
28774 \begin_inset Text
28775
28776 \begin_layout Plain Layout
28777 ifthen
28778 \end_layout
28779
28780 \end_inset
28781 </cell>
28782 <cell alignment="left" valignment="top" usebox="none">
28783 \begin_inset Text
28784
28785 \begin_layout Plain Layout
28786 mhchem
28787 \end_layout
28788
28789 \end_inset
28790 </cell>
28791 <cell alignment="center" valignment="top" usebox="none">
28792 \begin_inset Text
28793
28794 \begin_layout Plain Layout
28795 pxfonts
28796 \end_layout
28797
28798 \end_inset
28799 </cell>
28800 <cell alignment="center" valignment="top" usebox="none">
28801 \begin_inset Text
28802
28803 \begin_layout Plain Layout
28804 subscript
28805 \end_layout
28806
28807 \end_inset
28808 </cell>
28809 <cell alignment="center" valignment="top" usebox="none">
28810 \begin_inset Text
28811
28812 \begin_layout Plain Layout
28813 url
28814 \end_layout
28815
28816 \end_inset
28817 </cell>
28818 <cell alignment="center" valignment="top" usebox="none">
28819 \begin_inset Text
28820
28821 \begin_layout Plain Layout
28822
28823 \end_layout
28824
28825 \end_inset
28826 </cell>
28827 </row>
28828 <row>
28829 <cell alignment="left" valignment="top" usebox="none">
28830 \begin_inset Text
28831
28832 \begin_layout Plain Layout
28833 bbding
28834 \end_layout
28835
28836 \end_inset
28837 </cell>
28838 <cell alignment="left" valignment="top" usebox="none">
28839 \begin_inset Text
28840
28841 \begin_layout Plain Layout
28842 esint
28843 \end_layout
28844
28845 \end_inset
28846 </cell>
28847 <cell alignment="left" valignment="top" usebox="none">
28848 \begin_inset Text
28849
28850 \begin_layout Plain Layout
28851 jurabib
28852 \end_layout
28853
28854 \end_inset
28855 </cell>
28856 <cell alignment="left" valignment="top" usebox="none">
28857 \begin_inset Text
28858
28859 \begin_layout Plain Layout
28860 multicol
28861 \end_layout
28862
28863 \end_inset
28864 </cell>
28865 <cell alignment="center" valignment="top" usebox="none">
28866 \begin_inset Text
28867
28868 \begin_layout Plain Layout
28869 refstyle
28870 \end_layout
28871
28872 \end_inset
28873 </cell>
28874 <cell alignment="center" valignment="top" usebox="none">
28875 \begin_inset Text
28876
28877 \begin_layout Plain Layout
28878 textcomp
28879 \end_layout
28880
28881 \end_inset
28882 </cell>
28883 <cell alignment="center" valignment="top" usebox="none">
28884 \begin_inset Text
28885
28886 \begin_layout Plain Layout
28887 varioref
28888 \end_layout
28889
28890 \end_inset
28891 </cell>
28892 <cell alignment="center" valignment="top" usebox="none">
28893 \begin_inset Text
28894
28895 \begin_layout Plain Layout
28896
28897 \end_layout
28898
28899 \end_inset
28900 </cell>
28901 </row>
28902 <row>
28903 <cell alignment="center" valignment="top" usebox="none">
28904 \begin_inset Text
28905
28906 \begin_layout Plain Layout
28907 bm
28908 \end_layout
28909
28910 \end_inset
28911 </cell>
28912 <cell alignment="center" valignment="top" usebox="none">
28913 \begin_inset Text
28914
28915 \begin_layout Plain Layout
28916 fancybox
28917 \end_layout
28918
28919 \end_inset
28920 </cell>
28921 <cell alignment="center" valignment="top" usebox="none">
28922 \begin_inset Text
28923
28924 \begin_layout Plain Layout
28925 latexsym
28926 \end_layout
28927
28928 \end_inset
28929 </cell>
28930 <cell alignment="center" valignment="top" usebox="none">
28931 \begin_inset Text
28932
28933 \begin_layout Plain Layout
28934 multirow
28935 \end_layout
28936
28937 \end_inset
28938 </cell>
28939 <cell alignment="center" valignment="top" usebox="none">
28940 \begin_inset Text
28941
28942 \begin_layout Plain Layout
28943 rotating
28944 \end_layout
28945
28946 \end_inset
28947 </cell>
28948 <cell alignment="center" valignment="top" usebox="none">
28949 \begin_inset Text
28950
28951 \begin_layout Plain Layout
28952 textgreek
28953 \end_layout
28954
28955 \end_inset
28956 </cell>
28957 <cell alignment="center" valignment="top" usebox="none">
28958 \begin_inset Text
28959
28960 \begin_layout Plain Layout
28961 verbatim
28962 \end_layout
28963
28964 \end_inset
28965 </cell>
28966 <cell alignment="center" valignment="top" usebox="none">
28967 \begin_inset Text
28968
28969 \begin_layout Plain Layout
28970
28971 \end_layout
28972
28973 \end_inset
28974 </cell>
28975 </row>
28976 </lyxtabular>
28977
28978 \end_inset
28979
28980
28981 \end_layout
28982
28983 \begin_layout Chapter
28984 Names of available colors to be used in layouts
28985 \begin_inset CommandInset label
28986 LatexCommand label
28987 name "chap:Names-of-colors"
28988
28989 \end_inset
28990
28991
28992 \end_layout
28993
28994 \begin_layout Standard
28995 The colors listed below are the standard colors and those that you can adjust
28996  in the \SpecialChar LyX
28997  preferences.
28998 \end_layout
28999
29000 \begin_layout Section
29001 Color functions
29002 \end_layout
29003
29004 \begin_layout Standard
29005 The following are no real colors, but rather act on color definitions:
29006 \end_layout
29007
29008 \begin_layout Description
29009 ignore The color is ignored
29010 \end_layout
29011
29012 \begin_layout Description
29013 inherit The color is inherited
29014 \end_layout
29015
29016 \begin_layout Description
29017 none
29018 \family roman
29019 \series medium
29020 \shape up
29021 \size normal
29022 \emph off
29023 \bar no
29024 \strikeout off
29025 \uuline off
29026 \uwave off
29027 \noun off
29028 \color none
29029  No particular color – clear or default
29030 \end_layout
29031
29032 \begin_layout Section
29033 Static colors
29034 \end_layout
29035
29036 \begin_layout Standard
29037 These are fixed colors that cannot me customized:
29038 \end_layout
29039
29040 \begin_layout Description
29041 black
29042 \end_layout
29043
29044 \begin_layout Description
29045 white
29046 \end_layout
29047
29048 \begin_layout Description
29049 blue
29050 \end_layout
29051
29052 \begin_layout Description
29053 brown
29054 \end_layout
29055
29056 \begin_layout Description
29057 cyan
29058 \end_layout
29059
29060 \begin_layout Description
29061 darkgray
29062 \end_layout
29063
29064 \begin_layout Description
29065 gray
29066 \end_layout
29067
29068 \begin_layout Description
29069 green
29070 \end_layout
29071
29072 \begin_layout Description
29073 lightgray
29074 \end_layout
29075
29076 \begin_layout Description
29077 lime
29078 \end_layout
29079
29080 \begin_layout Description
29081 magenta
29082 \end_layout
29083
29084 \begin_layout Description
29085 olive
29086 \end_layout
29087
29088 \begin_layout Description
29089 orange
29090 \end_layout
29091
29092 \begin_layout Description
29093 pink
29094 \end_layout
29095
29096 \begin_layout Description
29097 purple
29098 \end_layout
29099
29100 \begin_layout Description
29101 red
29102 \end_layout
29103
29104 \begin_layout Description
29105 teal
29106 \end_layout
29107
29108 \begin_layout Description
29109 violet
29110 \end_layout
29111
29112 \begin_layout Description
29113 yellow
29114 \end_layout
29115
29116 \begin_layout Section
29117 Dynamic colors
29118 \end_layout
29119
29120 \begin_layout Standard
29121 These are the colors allocated to specific elements in 
29122 \begin_inset Info
29123 type  "menu"
29124 arg   "dialog-show prefs"
29125 \end_inset
29126
29127 :
29128 \end_layout
29129
29130 \begin_layout Description
29131 added_space Added space color
29132 \end_layout
29133
29134 \begin_layout Description
29135 addedtext Added text color
29136 \end_layout
29137
29138 \begin_layout Description
29139 appendix Appendix marker color
29140 \end_layout
29141
29142 \begin_layout Description
29143 background Background color
29144 \end_layout
29145
29146 \begin_layout Description
29147 bottomarea Bottom area color
29148 \end_layout
29149
29150 \begin_layout Description
29151 branchlabel Label color for branches
29152 \end_layout
29153
29154 \begin_layout Description
29155 buttonbg Color used for button background
29156 \end_layout
29157
29158 \begin_layout Description
29159 buttonframe Color for inset button frames
29160 \end_layout
29161
29162 \begin_layout Description
29163 buttonhoverbg Color used for button background under focus
29164 \end_layout
29165
29166 \begin_layout Description
29167 changebar Changebar color
29168 \end_layout
29169
29170 \begin_layout Description
29171 changedtextauthor1 Changed text color author 1
29172 \end_layout
29173
29174 \begin_layout Description
29175 changedtextauthor2 Changed text color author 2
29176 \end_layout
29177
29178 \begin_layout Description
29179 changedtextauthor3 Changed text color author 3
29180 \end_layout
29181
29182 \begin_layout Description
29183 changedtextauthor4 Changed text color author 4
29184 \end_layout
29185
29186 \begin_layout Description
29187 changedtextauthor5 Changed text color author 5
29188 \end_layout
29189
29190 \begin_layout Description
29191 collapsible Collapsible insets text color
29192 \end_layout
29193
29194 \begin_layout Description
29195 collapsibleframe Collapsible insets framecolor
29196 \end_layout
29197
29198 \begin_layout Description
29199 command Text color for command insets
29200 \end_layout
29201
29202 \begin_layout Description
29203 commandbg Background color for command insets
29204 \end_layout
29205
29206 \begin_layout Description
29207 commandframe Frame color for command insets
29208 \end_layout
29209
29210 \begin_layout Description
29211 comment Label color for comments
29212 \end_layout
29213
29214 \begin_layout Description
29215 commentbg Background color of comments
29216 \end_layout
29217
29218 \begin_layout Description
29219 cursor Cursor color
29220 \end_layout
29221
29222 \begin_layout Description
29223 deletedtext Deleted text color
29224 \end_layout
29225
29226 \begin_layout Description
29227 deletedtextmodifier Deleted text modifying color
29228 \end_layout
29229
29230 \begin_layout Description
29231 depthbar Color for the depth bars in the margin
29232 \end_layout
29233
29234 \begin_layout Description
29235 eolmarker End of line marker color
29236 \end_layout
29237
29238 \begin_layout Description
29239 error Color of the \SpecialChar LaTeX
29240  error box
29241 \end_layout
29242
29243 \begin_layout Description
29244 footlabel Label color for footnotes
29245 \end_layout
29246
29247 \begin_layout Description
29248 foreground Foreground color
29249 \end_layout
29250
29251 \begin_layout Description
29252 graphicsbg Graphics inset background color
29253 \end_layout
29254
29255 \begin_layout Description
29256 greyedoutbg Background color of greyedout inset
29257 \end_layout
29258
29259 \begin_layout Description
29260 greyedoutlabel Label color for greyedout insets
29261 \end_layout
29262
29263 \begin_layout Description
29264 greyedouttext Color for greyedout inset text
29265 \end_layout
29266
29267 \begin_layout Description
29268 indexlabel Label color for index insets
29269 \end_layout
29270
29271 \begin_layout Description
29272 inlinecompletion Inline completion color
29273 \end_layout
29274
29275 \begin_layout Description
29276 insetbg Inset marker background color
29277 \end_layout
29278
29279 \begin_layout Description
29280 insetframe Inset marker frame color
29281 \end_layout
29282
29283 \begin_layout Description
29284 language Color for marking foreign language words
29285 \end_layout
29286
29287 \begin_layout Description
29288 latex Text color in \SpecialChar LaTeX
29289  mode
29290 \end_layout
29291
29292 \begin_layout Description
29293 listingsbg Background color of listings inset
29294 \end_layout
29295
29296 \begin_layout Description
29297 marginlabel Label color for margin notes
29298 \end_layout
29299
29300 \begin_layout Description
29301 math Math inset text color
29302 \end_layout
29303
29304 \begin_layout Description
29305 mathbg Math inset background color
29306 \end_layout
29307
29308 \begin_layout Description
29309 mathcorners Math inset frame color not under focus
29310 \end_layout
29311
29312 \begin_layout Description
29313 mathframe Math inset frame color under focus
29314 \end_layout
29315
29316 \begin_layout Description
29317 mathline Math line color
29318 \end_layout
29319
29320 \begin_layout Description
29321 mathmacrobg Macro math inset background color
29322 \end_layout
29323
29324 \begin_layout Description
29325 mathmacroblend Macro math blended color
29326 \end_layout
29327
29328 \begin_layout Description
29329 mathmacroframe Macro math frame color
29330 \end_layout
29331
29332 \begin_layout Description
29333 mathmacrohoverbg Macro math inset background color hovered
29334 \end_layout
29335
29336 \begin_layout Description
29337 mathmacrolabel Macro math label color
29338 \end_layout
29339
29340 \begin_layout Description
29341 mathmacronewarg Macro template color for new parameters
29342 \end_layout
29343
29344 \begin_layout Description
29345 mathmacrooldarg Macro template color for old parameters
29346 \end_layout
29347
29348 \begin_layout Description
29349 newpage New page color
29350 \end_layout
29351
29352 \begin_layout Description
29353 nonunique_inlinecompletion Inline completion color for the non-unique part
29354 \end_layout
29355
29356 \begin_layout Description
29357 note Label color for notes
29358 \end_layout
29359
29360 \begin_layout Description
29361 notebg Background color of notes
29362 \end_layout
29363
29364 \begin_layout Description
29365 pagebreak Page break/line break color
29366 \end_layout
29367
29368 \begin_layout Description
29369 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29370 \end_layout
29371
29372 \begin_layout Description
29373 phantomtext Text color for phantom insets
29374 \end_layout
29375
29376 \begin_layout Description
29377 preview The color used for previews
29378 \end_layout
29379
29380 \begin_layout Description
29381 previewframe Preview frame color
29382 \end_layout
29383
29384 \begin_layout Description
29385 regexpframe Color for regexp frame
29386 \end_layout
29387
29388 \begin_layout Description
29389 scroll Color that indicates when a row can be scrolled 
29390 \end_layout
29391
29392 \begin_layout Description
29393 selection Background color of selected text
29394 \end_layout
29395
29396 \begin_layout Description
29397 selectiontext Foreground color of selected text
29398 \end_layout
29399
29400 \begin_layout Description
29401 shadedbg Background color of shaded box
29402 \end_layout
29403
29404 \begin_layout Description
29405 special Special chars text color
29406 \end_layout
29407
29408 \begin_layout Description
29409 tabularline Table line color
29410 \end_layout
29411
29412 \begin_layout Description
29413 tabularonoffline Table line color
29414 \end_layout
29415
29416 \begin_layout Description
29417 urllabel Label color for URL insets
29418 \end_layout
29419
29420 \begin_layout Description
29421 urltext Color for URL inset text
29422 \end_layout
29423
29424 \end_body
29425 \end_document