]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Update of Customization for 2.4.0
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 620
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 no
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_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_formatted_ref 0
107 \use_minted 0
108 \use_lineno 0
109 \notefontcolor #0000ff
110 \branch OutDated
111 \selected 0
112 \filename_suffix 0
113 \color #f5fae7 #0a0518
114 \end_branch
115 \index Index
116 \shortcut idx
117 \color #008000
118 \end_index
119 \secnumdepth 3
120 \tocdepth 3
121 \paragraph_separation indent
122 \paragraph_indentation default
123 \is_math_indent 1
124 \math_indentation default
125 \math_numbering_side default
126 \quotes_style english
127 \dynamic_quotes 0
128 \papercolumns 1
129 \papersides 2
130 \paperpagestyle headings
131 \tablestyle default
132 \tracking_changes false
133 \output_changes false
134 \change_bars false
135 \postpone_fragile_content false
136 \html_math_output 0
137 \html_css_as_file 0
138 \html_be_strict true
139 \docbook_table_output 0
140 \docbook_mathml_prefix 1
141 \end_header
142
143 \begin_body
144
145 \begin_layout Title
146 Customizing \SpecialChar LyX
147 :
148  Features for the Advanced User
149 \end_layout
150
151 \begin_layout Author
152 by the \SpecialChar LyX
153  Team
154 \begin_inset Foot
155 status collapsed
156
157 \begin_layout Plain Layout
158 If you have comments or error corrections,
159  please send them to the \SpecialChar LyX
160  Documentation mailing list,
161  
162 \begin_inset CommandInset href
163 LatexCommand href
164 target "lyx-docs@lists.lyx.org"
165 type "mailto:"
166 literal "false"
167
168 \end_inset
169
170 .
171  Include 
172 \begin_inset Quotes eld
173 \end_inset
174
175 [Customization]
176 \begin_inset Quotes erd
177 \end_inset
178
179  in the subject header,
180  and please cc the current maintainer of this file,
181  Richard Kimberly Heck <rikiheck@lyx.org>.
182 \end_layout
183
184 \end_inset
185
186
187 \begin_inset Newline newline
188 \end_inset
189
190
191 \begin_inset Newline newline
192 \end_inset
193
194 Version 2.4.x
195 \end_layout
196
197 \begin_layout Standard
198 \begin_inset CommandInset toc
199 LatexCommand tableofcontents
200
201 \end_inset
202
203
204 \end_layout
205
206 \begin_layout Standard
207 \begin_inset Note Note
208 status collapsed
209
210 \begin_layout Plain Layout
211 Please use change tracking when modifying this document.
212  This makes it easier for our translators to recognize things that have been changed,
213  and it helps the maintainer keep up-to-date with what's been done.
214 \end_layout
215
216 \end_inset
217
218
219 \end_layout
220
221 \begin_layout Chapter
222 Introduction
223 \end_layout
224
225 \begin_layout Standard
226 This manual covers the customization features present in \SpecialChar LyX
227 .
228  In it,
229  we discuss issues like keyboard shortcuts,
230  screen previewing options,
231  printer options,
232  sending commands to \SpecialChar LyX
233  via the \SpecialChar LyX
234  Server,
235  internationalization,
236  installing new \SpecialChar LaTeX
237  classes and \SpecialChar LyX
238  layouts,
239  etc.
240  We can't possibly hope to touch on everything you can change—
241 our developers add new features faster than we can document them—
242 but we will explain the most common customizations and hopefully point you in the right direction for some of the more obscure ones.
243 \end_layout
244
245 \begin_layout Standard
246 \begin_inset Branch OutDated
247 inverted 0
248 status collapsed
249
250 \begin_layout Standard
251 Information from previous versions of this document that now seems to be outdated is contained in the OutDated branch of this document.
252  By default,
253  this information will not appear in the \SpecialChar LaTeX
254  output.
255 \end_layout
256
257 \end_inset
258
259
260 \end_layout
261
262 \begin_layout Chapter
263 \SpecialChar LyX
264  configuration files
265 \end_layout
266
267 \begin_layout Standard
268 This chapter aims to help you to find your way through the \SpecialChar LyX
269  configuration files.
270  Before continuing to read this chapter,
271  you should find out where your \SpecialChar LyX
272  system and user directories are by using 
273 \begin_inset Flex Noun
274 status collapsed
275
276 \begin_layout Plain Layout
277 Help\SpecialChar menuseparator
278 About
279 \begin_inset space ~
280 \end_inset
281
282 LyX
283 \end_layout
284
285 \end_inset
286
287 .
288  The system directory is the place where \SpecialChar LyX
289  places its system-wide configuration files;
290  the user directory is where you can place your modified versions.
291  We will call the former 
292 \begin_inset Flex Code
293 status collapsed
294
295 \begin_layout Plain Layout
296 LyXDir
297 \end_layout
298
299 \end_inset
300
301  and the latter 
302 \begin_inset Flex Noun
303 status collapsed
304
305 \begin_layout Plain Layout
306 UserDir
307 \end_layout
308
309 \end_inset
310
311  in the remainder of this document.
312  
313 \end_layout
314
315 \begin_layout Section
316 What's in 
317 \begin_inset Flex Code
318 status collapsed
319
320 \begin_layout Plain Layout
321 LyXDir
322 \end_layout
323
324 \end_inset
325
326 ?
327 \end_layout
328
329 \begin_layout Standard
330 \begin_inset Flex Code
331 status collapsed
332
333 \begin_layout Plain Layout
334 LyXDir
335 \end_layout
336
337 \end_inset
338
339  and its sub-directories contain a number of files that can be used to customize \SpecialChar LyX
340 's behavior.
341  You can change many of these files from within \SpecialChar LyX
342  itself through the 
343 \begin_inset Flex Noun
344 status collapsed
345
346 \begin_layout Plain Layout
347 Tools\SpecialChar menuseparator
348 Preferences
349 \end_layout
350
351 \end_inset
352
353  dialog.
354  Most customization that you will want to do in \SpecialChar LyX
355  is possible through this dialog.
356  However,
357  many other inner aspects of \SpecialChar LyX
358  can be customized by modifying the files in 
359 \begin_inset Flex Code
360 status collapsed
361
362 \begin_layout Plain Layout
363 LyXDir
364 \end_layout
365
366 \end_inset
367
368 .
369  These files fall in different categories,
370  described in the following subsections.
371 \end_layout
372
373 \begin_layout Subsection
374 Automatically generated files
375 \end_layout
376
377 \begin_layout Standard
378 The files found in 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 UserDir
384 \end_layout
385
386 \end_inset
387
388  are generated when you configure \SpecialChar LyX
389 .
390  They contain various default values that are automatically detected during reconfiguration.
391  In general,
392  it is not a good idea to modify them,
393  since they might be overwritten at any time.
394 \end_layout
395
396 \begin_layout Labeling
397 \labelwidthstring 00.00.0000
398 \begin_inset Flex Code
399 status collapsed
400
401 \begin_layout Plain Layout
402 lyxrc.defaults
403 \end_layout
404
405 \end_inset
406
407  Contains defaults for various commands.
408 \end_layout
409
410 \begin_layout Labeling
411 \labelwidthstring 00.00.0000
412 \begin_inset Flex Code
413 status collapsed
414
415 \begin_layout Plain Layout
416 packages.lst
417 \end_layout
418
419 \end_inset
420
421  Contains the list of packages that have been recognized by \SpecialChar LyX
422 .
423  It is currently unused by the \SpecialChar LyX
424  program itself,
425  but the information extracted,
426  and more,
427  is made available with 
428 \begin_inset Flex Noun
429 status collapsed
430
431 \begin_layout Plain Layout
432 Help\SpecialChar menuseparator
433 \SpecialChar LaTeX
434
435 \begin_inset space ~
436 \end_inset
437
438 Configuration
439 \end_layout
440
441 \end_inset
442
443 .
444 \end_layout
445
446 \begin_layout Labeling
447 \labelwidthstring 00.00.0000
448 \begin_inset Flex Code
449 status collapsed
450
451 \begin_layout Plain Layout
452 textclass.lst
453 \end_layout
454
455 \end_inset
456
457  The list of text classes that have been found in your 
458 \begin_inset Flex Code
459 status collapsed
460
461 \begin_layout Plain Layout
462 layout/
463 \end_layout
464
465 \end_inset
466
467  directories,
468  along with the associated \SpecialChar LaTeX
469  document class and their description.
470 \end_layout
471
472 \begin_layout Labeling
473 \labelwidthstring 00.00.0000
474 \begin_inset Flex Code
475 status collapsed
476
477 \begin_layout Plain Layout
478 lyxmodules.lst
479 \end_layout
480
481 \end_inset
482
483  The list of layout modules found in your 
484 \begin_inset Flex Code
485 status collapsed
486
487 \begin_layout Plain Layout
488 layout/
489 \end_layout
490
491 \end_inset
492
493  directories
494 \end_layout
495
496 \begin_layout Labeling
497 \labelwidthstring 00.00.0000
498 \begin_inset Flex Code
499 status open
500
501 \begin_layout Plain Layout
502 *files.lst
503 \end_layout
504
505 \end_inset
506
507  Lists of various sorts of \SpecialChar LaTeX
508 -related files found on your system
509 \end_layout
510
511 \begin_layout Labeling
512 \labelwidthstring 00.00.0000
513 \begin_inset Flex Code
514 status open
515
516 \begin_layout Plain Layout
517 doc/\SpecialChar LaTeX
518 Config.lyx
519 \end_layout
520
521 \end_inset
522
523  is automatically generated during configuration from the file 
524 \begin_inset Flex Code
525 status collapsed
526
527 \begin_layout Plain Layout
528 \SpecialChar LaTeX
529 Config.lyx.in
530 \end_layout
531
532 \end_inset
533
534 .
535  It contains information on your \SpecialChar LaTeX
536  configuration.
537 \end_layout
538
539 \begin_layout Subsection
540 Directories
541 \end_layout
542
543 \begin_layout Standard
544 The following directories in 
545 \begin_inset Flex Code
546 status collapsed
547
548 \begin_layout Plain Layout
549 LyXDir
550 \end_layout
551
552 \end_inset
553
554  can be duplicated in 
555 \begin_inset Flex Code
556 status collapsed
557
558 \begin_layout Plain Layout
559 UserDir
560 \end_layout
561
562 \end_inset
563
564 .
565  If a particular file exists in both places,
566  the one in 
567 \begin_inset Flex Code
568 status collapsed
569
570 \begin_layout Plain Layout
571 UserDir
572 \end_layout
573
574 \end_inset
575
576  will be used.
577 \end_layout
578
579 \begin_layout Labeling
580 \labelwidthstring 00.00.0000
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  This directory contains files with the extension 
591 \begin_inset Flex Code
592 status collapsed
593
594 \begin_layout Plain Layout
595 .bind
596 \end_layout
597
598 \end_inset
599
600  that define the keybindings used in \SpecialChar LyX
601 .
602  If there exists an internationalized version of the bind file in a subdirectory 
603 \begin_inset Flex Code
604 status collapsed
605
606 \begin_layout Plain Layout
607 bind/xx
608 \end_layout
609
610 \end_inset
611
612  where 
613 \begin_inset Quotes eld
614 \end_inset
615
616 xx
617 \begin_inset Quotes erd
618 \end_inset
619
620  is the ISO language code,
621  that will be used first.
622 \end_layout
623
624 \begin_layout Labeling
625 \labelwidthstring 00.00.0000
626 \begin_inset Flex Code
627 status collapsed
628
629 \begin_layout Plain Layout
630 citeengines/
631 \end_layout
632
633 \end_inset
634
635  Contains files with the extension 
636 \begin_inset Flex Code
637 status collapsed
638
639 \begin_layout Plain Layout
640 .citeengine
641 \end_layout
642
643 \end_inset
644
645  which define the diverse citation possibilities (natbib,
646  biblatex etc.).
647  See 
648 \begin_inset CommandInset ref
649 LatexCommand ref
650 reference "subsec:Cite-Engine-Files"
651 plural "false"
652 caps "false"
653 noprefix "false"
654 nolink "false"
655
656 \end_inset
657
658  for details.
659 \end_layout
660
661 \begin_layout Labeling
662 \labelwidthstring 00.00.0000
663 \begin_inset Flex Code
664 status collapsed
665
666 \begin_layout Plain Layout
667 clipart/
668 \end_layout
669
670 \end_inset
671
672  Contains graphics files that can be included in documents.
673  
674 \end_layout
675
676 \begin_layout Labeling
677 \labelwidthstring 00.00.0000
678 \begin_inset Flex Code
679 status collapsed
680
681 \begin_layout Plain Layout
682 doc/
683 \end_layout
684
685 \end_inset
686
687  Contains \SpecialChar LyX
688  documentation files (including the one you are currently reading).
689  The file 
690 \begin_inset Flex Code
691 status collapsed
692
693 \begin_layout Plain Layout
694 LaTexConfig.lyx
695 \end_layout
696
697 \end_inset
698
699  deserves special attention,
700  as noted above.
701  The internationalized help docs are in subdirectories 
702 \begin_inset Flex Code
703 status collapsed
704
705 \begin_layout Plain Layout
706 doc/xx
707 \end_layout
708
709 \end_inset
710
711  where 
712 \begin_inset Quotes eld
713 \end_inset
714
715 xx
716 \begin_inset Quotes erd
717 \end_inset
718
719  is the ISO language code.
720  See 
721 \begin_inset CommandInset ref
722 LatexCommand ref
723 reference "cha:Internationalizing-LyX"
724 nolink "false"
725
726 \end_inset
727
728  for details.
729 \end_layout
730
731 \begin_layout Labeling
732 \labelwidthstring 00.00.0000
733 \begin_inset Flex Code
734 status collapsed
735
736 \begin_layout Plain Layout
737 examples/
738 \end_layout
739
740 \end_inset
741
742  Contains example files that explain how to use some features.
743  In the file browser,
744  press the 
745 \begin_inset Flex Noun
746 status collapsed
747
748 \begin_layout Plain Layout
749 Examples
750 \end_layout
751
752 \end_inset
753
754  button to get there.
755 \end_layout
756
757 \begin_layout Labeling
758 \labelwidthstring 00.00.0000
759 \begin_inset Flex Code
760 status collapsed
761
762 \begin_layout Plain Layout
763 images/
764 \end_layout
765
766 \end_inset
767
768  Contains image files that are used by the 
769 \begin_inset Flex Noun
770 status collapsed
771
772 \begin_layout Plain Layout
773 Document
774 \end_layout
775
776 \end_inset
777
778  dialog.
779  In addition,
780  it also contains the individual icons used in the toolbar and the banners that can be shown when \SpecialChar LyX
781  is launched.
782 \end_layout
783
784 \begin_layout Labeling
785 \labelwidthstring 00.00.0000
786 \begin_inset Flex Code
787 status collapsed
788
789 \begin_layout Plain Layout
790 kbd/
791 \end_layout
792
793 \end_inset
794
795  Contains keyboard keymapping files.
796  See 
797 \begin_inset CommandInset ref
798 LatexCommand ref
799 reference "sec:International-Keymap-Stuff"
800 nolink "false"
801
802 \end_inset
803
804  for details.
805 \end_layout
806
807 \begin_layout Labeling
808 \labelwidthstring 00.00.0000
809 \begin_inset Flex Code
810 status collapsed
811
812 \begin_layout Plain Layout
813 layouts/
814 \end_layout
815
816 \end_inset
817
818  Contains the text class and module files described in 
819 \begin_inset CommandInset ref
820 LatexCommand ref
821 reference "cha:Installing-New-Document"
822 nolink "false"
823
824 \end_inset
825
826 .
827 \end_layout
828
829 \begin_layout Labeling
830 \labelwidthstring 00.00.0000
831 \begin_inset Flex Code
832 status collapsed
833
834 \begin_layout Plain Layout
835 lyx2lyx
836 \end_layout
837
838 \end_inset
839
840  Contains the 
841 \begin_inset Flex Code
842 status collapsed
843
844 \begin_layout Plain Layout
845 lyx2lyx
846 \end_layout
847
848 \end_inset
849
850  Python scripts used to convert between \SpecialChar LyX
851  versions.
852  These can be run from the command line if you want to batch-convert files.
853 \end_layout
854
855 \begin_layout Labeling
856 \labelwidthstring 00.00.0000
857 \begin_inset Flex Code
858 status collapsed
859
860 \begin_layout Plain Layout
861 scripts/
862 \end_layout
863
864 \end_inset
865
866  Contains some files that demonstrate the capabilities of the 
867 \begin_inset Flex Noun
868 status collapsed
869
870 \begin_layout Plain Layout
871 External
872 \begin_inset space ~
873 \end_inset
874
875 Template
876 \end_layout
877
878 \end_inset
879
880  feature.
881  Also contains some scripts used by \SpecialChar LyX
882  itself.
883 \end_layout
884
885 \begin_layout Labeling
886 \labelwidthstring 00.00.0000
887 \begin_inset Flex Code
888 status collapsed
889
890 \begin_layout Plain Layout
891 templates/
892 \end_layout
893
894 \end_inset
895
896  Contains the standard \SpecialChar LyX
897  template files described in 
898 \begin_inset CommandInset ref
899 LatexCommand ref
900 reference "subsec:Creating-Templates"
901 nolink "false"
902
903 \end_inset
904
905 .
906 \end_layout
907
908 \begin_layout Labeling
909 \labelwidthstring 00.00.0000
910 \begin_inset Flex Code
911 status collapsed
912
913 \begin_layout Plain Layout
914 ui/
915 \end_layout
916
917 \end_inset
918
919  Contains files with the extension 
920 \begin_inset Flex Code
921 status collapsed
922
923 \begin_layout Plain Layout
924 .ui
925 \end_layout
926
927 \end_inset
928
929  that define the user interface to \SpecialChar LyX
930 .
931  That is,
932  the files define which items appear in which menus and the items appearing on the toolbar.
933 \end_layout
934
935 \begin_layout Labeling
936 \labelwidthstring 00.00.0000
937 \begin_inset Flex Code
938 status collapsed
939
940 \begin_layout Plain Layout
941 xtemplates/
942 \end_layout
943
944 \end_inset
945
946  Contains files with the extension 
947 \begin_inset Flex Code
948 status collapsed
949
950 \begin_layout Plain Layout
951 .xtemplate
952 \end_layout
953
954 \end_inset
955
956  which define the templates for the insertion of external material to a \SpecialChar LyX
957  document;
958  see 
959 \begin_inset CommandInset ref
960 LatexCommand ref
961 reference "chap:Including-External-Material"
962 nolink "false"
963
964 \end_inset
965
966 .
967 \end_layout
968
969 \begin_layout Subsection
970 Files you don't want to modify
971 \end_layout
972
973 \begin_layout Standard
974 These files are used internally by \SpecialChar LyX
975  and you generally do not need to modify them unless you are a developer.
976 \end_layout
977
978 \begin_layout Labeling
979 \labelwidthstring 00.00.0000
980 \begin_inset Flex Code
981 status collapsed
982
983 \begin_layout Plain Layout
984 CREDITS
985 \end_layout
986
987 \end_inset
988
989  This file contains the list of \SpecialChar LyX
990  developers.
991  The contents are displayed with the menu entry 
992 \begin_inset Flex Noun
993 status collapsed
994
995 \begin_layout Plain Layout
996 Help\SpecialChar menuseparator
997 About
998 \begin_inset space ~
999 \end_inset
1000
1001 LyX
1002 \end_layout
1003
1004 \end_inset
1005
1006 .
1007 \end_layout
1008
1009 \begin_layout Labeling
1010 \labelwidthstring 00.00.0000
1011 \begin_inset Flex Code
1012 status collapsed
1013
1014 \begin_layout Plain Layout
1015 chkconfig.ltx
1016 \end_layout
1017
1018 \end_inset
1019
1020  This is a \SpecialChar LaTeX
1021  script used during the configuration process.
1022  Do not run directly.
1023 \end_layout
1024
1025 \begin_layout Labeling
1026 \labelwidthstring 00.00.0000
1027 \begin_inset Flex Code
1028 status collapsed
1029
1030 \begin_layout Plain Layout
1031 configure.py
1032 \end_layout
1033
1034 \end_inset
1035
1036  This is a Python script that is used to re-configure \SpecialChar LyX
1037 .
1038  It creates configuration files in the directory it was run from.
1039 \end_layout
1040
1041 \begin_layout Subsection
1042 Other files needing a line or two
1043 \end_layout
1044
1045 \begin_layout Labeling
1046 \labelwidthstring 00.00.0000
1047 \begin_inset Flex Code
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051 encodings
1052 \end_layout
1053
1054 \end_inset
1055
1056  This contains tables describing how different character encodings can be mapped to Unicode
1057 \end_layout
1058
1059 \begin_layout Labeling
1060 \labelwidthstring 00.00.0000
1061 \begin_inset Flex Code
1062 status collapsed
1063
1064 \begin_layout Plain Layout
1065 languages
1066 \end_layout
1067
1068 \end_inset
1069
1070  This file contains a list of all the languages currently supported by \SpecialChar LyX
1071 .
1072 \end_layout
1073
1074 \begin_layout Labeling
1075 \labelwidthstring 00.00.0000
1076 \begin_inset Flex Code
1077 status collapsed
1078
1079 \begin_layout Plain Layout
1080 latexfonts
1081 \end_layout
1082
1083 \end_inset
1084
1085  Contains information about the supported fonts.
1086 \end_layout
1087
1088 \begin_layout Labeling
1089 \labelwidthstring 00.00.0000
1090 \begin_inset Flex Code
1091 status collapsed
1092
1093 \begin_layout Plain Layout
1094 layouttranslations
1095 \end_layout
1096
1097 \end_inset
1098
1099  This file contains translations for internationalized paragraph styles (see 
1100 \begin_inset CommandInset ref
1101 LatexCommand ref
1102 reference "subsec:I18n"
1103 nolink "false"
1104
1105 \end_inset
1106
1107 ).
1108 \end_layout
1109
1110 \begin_layout Labeling
1111 \labelwidthstring 00.00.0000
1112 \begin_inset Flex Code
1113 status collapsed
1114
1115 \begin_layout Plain Layout
1116 unicodesymbols
1117 \end_layout
1118
1119 \end_inset
1120
1121  This file contains information about Unicode-encoded glyphs and the way they are supported by \SpecialChar LyX
1122  via \SpecialChar LaTeX
1123 .
1124 \end_layout
1125
1126 \begin_layout Section
1127 Your local configuration directory
1128 \end_layout
1129
1130 \begin_layout Standard
1131 Even if you are using \SpecialChar LyX
1132  as an unprivileged user,
1133  you might want to change \SpecialChar LyX
1134  configuration for your own use.
1135  The 
1136 \begin_inset Flex Code
1137 status collapsed
1138
1139 \begin_layout Plain Layout
1140 UserDir
1141 \end_layout
1142
1143 \end_inset
1144
1145  directory contains all your personal configuration files.
1146  This is the directory described as 
1147 \begin_inset Quotes eld
1148 \end_inset
1149
1150 user directory
1151 \begin_inset Quotes erd
1152 \end_inset
1153
1154  in 
1155 \begin_inset Flex Noun
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 Help\SpecialChar menuseparator
1160 About
1161 \begin_inset space ~
1162 \end_inset
1163
1164 LyX
1165 \end_layout
1166
1167 \end_inset
1168
1169 .
1170  This directory is used as a mirror of 
1171 \begin_inset Flex Code
1172 status collapsed
1173
1174 \begin_layout Plain Layout
1175 LyXDir
1176 \end_layout
1177
1178 \end_inset
1179
1180 ,
1181  which means that every file in 
1182 \begin_inset Flex Code
1183 status collapsed
1184
1185 \begin_layout Plain Layout
1186 UserDir
1187 \end_layout
1188
1189 \end_inset
1190
1191  is a replacement for the corresponding file in 
1192 \begin_inset Flex Code
1193 status collapsed
1194
1195 \begin_layout Plain Layout
1196 LyXDir
1197 \end_layout
1198
1199 \end_inset
1200
1201 .
1202  Any configuration file described in the above sections can be placed either in the system-wide directory,
1203  in which case it will affect all users,
1204  or in your local directory for your own use.
1205 \end_layout
1206
1207 \begin_layout Standard
1208 To make things clearer,
1209  let's provide a few examples:
1210 \end_layout
1211
1212 \begin_layout Itemize
1213 The preferences set in the 
1214 \begin_inset Flex Noun
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218 Tools\SpecialChar menuseparator
1219 Preferences
1220 \end_layout
1221
1222 \end_inset
1223
1224  dialog are saved to a file 
1225 \begin_inset Flex Code
1226 status collapsed
1227
1228 \begin_layout Plain Layout
1229 preferences
1230 \end_layout
1231
1232 \end_inset
1233
1234  in 
1235 \begin_inset Flex Code
1236 status collapsed
1237
1238 \begin_layout Plain Layout
1239 UserDir
1240 \end_layout
1241
1242 \end_inset
1243
1244 .
1245 \end_layout
1246
1247 \begin_layout Itemize
1248 When you reconfigure using 
1249 \begin_inset Flex Noun
1250 status collapsed
1251
1252 \begin_layout Plain Layout
1253 Tools\SpecialChar menuseparator
1254 Reconfigure
1255 \end_layout
1256
1257 \end_inset
1258
1259 ,
1260  \SpecialChar LyX
1261  runs the 
1262 \begin_inset Flex Code
1263 status collapsed
1264
1265 \begin_layout Plain Layout
1266 configure.py
1267 \end_layout
1268
1269 \end_inset
1270
1271  script,
1272  and the resulting files are written in your local configuration directory.
1273  This means that any additional text class file that you might have added in 
1274 \begin_inset Flex Code
1275 status collapsed
1276
1277 \begin_layout Plain Layout
1278 UserDir/layouts
1279 \end_layout
1280
1281 \end_inset
1282
1283  will be added to the list of classes in the 
1284 \begin_inset Flex Noun
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 Document\SpecialChar menuseparator
1289 Settings
1290 \end_layout
1291
1292 \end_inset
1293
1294  dialog.
1295 \end_layout
1296
1297 \begin_layout Itemize
1298 If you get some updated documentation from a \SpecialChar LyX
1299  ftp site and cannot install it because you do not have sysadmin rights on your system,
1300  you can just copy the files to 
1301 \begin_inset Flex Code
1302 status collapsed
1303
1304 \begin_layout Plain Layout
1305 UserDir/doc/
1306 \end_layout
1307
1308 \end_inset
1309
1310  and the items in the 
1311 \begin_inset Flex Noun
1312 status collapsed
1313
1314 \begin_layout Plain Layout
1315 Help
1316 \end_layout
1317
1318 \end_inset
1319
1320  menu will open them!
1321 \end_layout
1322
1323 \begin_layout Section
1324 Running \SpecialChar LyX
1325  with multiple configurations
1326 \end_layout
1327
1328 \begin_layout Standard
1329 The configuration freedom of the local configuration directory may not suffice if you want to have more than one configuration at your disposal.
1330  For example,
1331  you may want to use different key bindings or printer settings at different times.
1332  You can achieve this by having several such directories.
1333  You then specify which directory to use at run-time.
1334 \end_layout
1335
1336 \begin_layout Standard
1337 Invoking \SpecialChar LyX
1338  with the command line switch 
1339 \begin_inset Flex Code
1340 status collapsed
1341
1342 \begin_layout Plain Layout
1343 -userdir
1344 \end_layout
1345
1346 \end_inset
1347
1348  
1349 \emph on
1350 <some directory>
1351 \emph default
1352  instructs the program to read the configuration from that directory,
1353  and not from the default directory.
1354  (You can determine the default directory by running \SpecialChar LyX
1355  without the 
1356 \begin_inset Flex Code
1357 status collapsed
1358
1359 \begin_layout Plain Layout
1360 -userdir
1361 \end_layout
1362
1363 \end_inset
1364
1365  switch.) If the specified directory does not exist,
1366  \SpecialChar LyX
1367  offers to create it for you,
1368  just like it does for the default directory the first time you run the program.
1369  You can modify the configuration options in this additional user directory exactly as you would for the default directory.
1370  These directories are completely independent (but read on).
1371  Note that setting the environment variable 
1372 \begin_inset Flex Code
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376 LYX_USERDIR_24x
1377 \end_layout
1378
1379 \end_inset
1380
1381  to some value has exactly the same effect.
1382 \end_layout
1383
1384 \begin_layout Standard
1385 Having several configurations also requires more maintenance:
1386  if you want to add a new layout to 
1387 \begin_inset Flex Code
1388 status collapsed
1389
1390 \begin_layout Plain Layout
1391 NewUserDir/layouts
1392 \end_layout
1393
1394 \end_inset
1395
1396  which you want available from all your configurations,
1397  you must add it to each directory separately.
1398  You can avoid this with the following trick:
1399  after \SpecialChar LyX
1400  creates the additional directory,
1401  most of the subdirectories (see above) are empty.
1402  If you want the new configuration to mirror an existing one,
1403  replace the empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration.
1404  Take care with the 
1405 \begin_inset Flex Code
1406 status collapsed
1407
1408 \begin_layout Plain Layout
1409 doc/
1410 \end_layout
1411
1412 \end_inset
1413
1414  subdirectory,
1415  however,
1416  since it contains a file written by the configuration script (also accessible through 
1417 \begin_inset Flex Noun
1418 status collapsed
1419
1420 \begin_layout Plain Layout
1421 Tools\SpecialChar menuseparator
1422 Reconfigure
1423 \end_layout
1424
1425 \end_inset
1426
1427 ) which is configuration specific.
1428 \end_layout
1429
1430 \begin_layout Chapter
1431 The Preferences dialog
1432 \end_layout
1433
1434 \begin_layout Standard
1435 All options of the preferences dialog are described in the Appendix 
1436 \emph on
1437 The Preferences Dialog
1438 \emph default
1439  in the 
1440 \emph on
1441 User's Guide
1442 \emph default
1443 .
1444  For some options you might find here more details.
1445 \end_layout
1446
1447 \begin_layout Section
1448 Formats
1449 \begin_inset CommandInset label
1450 LatexCommand label
1451 name "sec:Formats"
1452
1453 \end_inset
1454
1455
1456 \end_layout
1457
1458 \begin_layout Standard
1459 The first step is to define your file formats if they are not already defined.
1460  To do so,
1461  open the 
1462 \begin_inset Flex Noun
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466 Tools\SpecialChar menuseparator
1467 Preferences
1468 \end_layout
1469
1470 \end_inset
1471
1472  dialog.
1473  Under 
1474 \begin_inset Flex Noun
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 File Handling\SpecialChar menuseparator
1479 File formats
1480 \end_layout
1481
1482 \end_inset
1483
1484  press the 
1485 \begin_inset Flex Noun
1486 status collapsed
1487
1488 \begin_layout Plain Layout
1489 New
1490 \end_layout
1491
1492 \end_inset
1493
1494  button to define your new format.
1495  The 
1496 \begin_inset Flex Noun
1497 status collapsed
1498
1499 \begin_layout Plain Layout
1500 Format
1501 \end_layout
1502
1503 \end_inset
1504
1505  field contains the name used to identify the format in the GUI.
1506  The 
1507 \begin_inset Flex Noun
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 Short Name
1512 \end_layout
1513
1514 \end_inset
1515
1516  is used to identify the format internally.
1517  You will also need to enter a file extension.
1518  These are all required.
1519  The optional 
1520 \begin_inset Flex Noun
1521 status collapsed
1522
1523 \begin_layout Plain Layout
1524 Shortcut
1525 \end_layout
1526
1527 \end_inset
1528
1529  field is used to provide a keyboard shortcut on the menus.
1530  (For example,
1531  pressing 
1532 \begin_inset Flex Noun
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 Ctrl+D
1537 \end_layout
1538
1539 \end_inset
1540
1541  will 
1542 \begin_inset Flex Noun
1543 status collapsed
1544
1545 \begin_layout Plain Layout
1546 Document\SpecialChar menuseparator
1547 View (Other Formats)\SpecialChar menuseparator
1548 DVI
1549 \end_layout
1550
1551 \end_inset
1552
1553 .) 
1554 \end_layout
1555
1556 \begin_layout Standard
1557 A Format can have a 
1558 \begin_inset Flex Noun
1559 status collapsed
1560
1561 \begin_layout Plain Layout
1562 Viewer
1563 \end_layout
1564
1565 \end_inset
1566
1567  and an 
1568 \begin_inset Flex Noun
1569 status collapsed
1570
1571 \begin_layout Plain Layout
1572 Editor
1573 \end_layout
1574
1575 \end_inset
1576
1577  associated with it.
1578  For example,
1579  you might want to use 
1580 \begin_inset Flex Noun
1581 status collapsed
1582
1583 \begin_layout Plain Layout
1584 Ghostview
1585 \end_layout
1586
1587 \end_inset
1588
1589  to view PostScript files.
1590  You can enter the command needed to start the program in the corresponding fields.
1591  In defining this command,
1592  you can use the four variables listed in the next section.
1593  The viewer is launched when you view an image in \SpecialChar LyX
1594  or use the 
1595 \begin_inset Flex Noun
1596 status collapsed
1597
1598 \begin_layout Plain Layout
1599 Document\SpecialChar menuseparator
1600 View
1601 \end_layout
1602
1603 \end_inset
1604
1605  menu.
1606  The editor is for example launched when you right-click on an image and choose 
1607 \begin_inset Flex Noun
1608 status collapsed
1609
1610 \begin_layout Plain Layout
1611 Edit externally
1612 \end_layout
1613
1614 \end_inset
1615
1616  in the appearing context menu.
1617 \end_layout
1618
1619 \begin_layout Standard
1620 The 
1621 \begin_inset Flex Noun
1622 status collapsed
1623
1624 \begin_layout Plain Layout
1625 MIME
1626 \end_layout
1627
1628 \end_inset
1629
1630  type of a format is optional,
1631  but if it is specified,
1632  it must be unique across all formats.
1633  It is used to detect files of this format from the file contents.
1634  For some important file formats there is no MIME type officially registered with the 
1635 \begin_inset CommandInset href
1636 LatexCommand href
1637 name "IANA"
1638 target "http://www.iana.org/assignments/media-types/"
1639 literal "false"
1640
1641 \end_inset
1642
1643 .
1644  Therefore \SpecialChar LyX
1645  uses the extended list of MIME types as specified by 
1646 \begin_inset CommandInset href
1647 LatexCommand href
1648 name "freedesktop.org"
1649 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1650 literal "false"
1651
1652 \end_inset
1653
1654 .
1655 \end_layout
1656
1657 \begin_layout Standard
1658 The 
1659 \begin_inset Flex Noun
1660 status collapsed
1661
1662 \begin_layout Plain Layout
1663 Document format
1664 \end_layout
1665
1666 \end_inset
1667
1668  option tells \SpecialChar LyX
1669  that a format is suitable for document export.
1670  If this is set and if a suitable conversion route exists (see 
1671 \begin_inset CommandInset ref
1672 LatexCommand ref
1673 reference "sec:Converters"
1674 nolink "false"
1675
1676 \end_inset
1677
1678 ),
1679  the format will appear in the 
1680 \begin_inset Flex Noun
1681 status collapsed
1682
1683 \begin_layout Plain Layout
1684 File\SpecialChar menuseparator
1685 Export
1686 \end_layout
1687
1688 \end_inset
1689
1690  menu.
1691  The format will also appear in the 
1692 \begin_inset Flex Noun
1693 status collapsed
1694
1695 \begin_layout Plain Layout
1696 Document\SpecialChar menuseparator
1697 View
1698 \end_layout
1699
1700 \end_inset
1701
1702  menu if a viewer is specified for the format.
1703  Pure image formats,
1704  such as 
1705 \begin_inset Flex Code
1706 status collapsed
1707
1708 \begin_layout Plain Layout
1709 png
1710 \end_layout
1711
1712 \end_inset
1713
1714 ,
1715  should not use this option.
1716  Formats that can both represent vector graphics and documents like 
1717 \begin_inset Flex Code
1718 status collapsed
1719
1720 \begin_layout Plain Layout
1721 pdf
1722 \end_layout
1723
1724 \end_inset
1725
1726  should use it.
1727 \end_layout
1728
1729 \begin_layout Standard
1730 The option 
1731 \begin_inset Flex Noun
1732 status collapsed
1733
1734 \begin_layout Plain Layout
1735 Vector graphics format
1736 \end_layout
1737
1738 \end_inset
1739
1740  tells \SpecialChar LyX
1741  that a format can contain vector graphics.
1742  This information is used to determine the target format of included graphics for 
1743 \begin_inset Flex Noun
1744 status collapsed
1745
1746 \begin_layout Plain Layout
1747 pdflatex
1748 \end_layout
1749
1750 \end_inset
1751
1752  export.
1753  Included graphics may need to be converted to either 
1754 \begin_inset Flex Noun
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 pdf
1759 \end_layout
1760
1761 \end_inset
1762
1763 ,
1764  
1765 \begin_inset Flex Noun
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 png
1770 \end_layout
1771
1772 \end_inset
1773
1774 ,
1775  or 
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 jpg
1781 \end_layout
1782
1783 \end_inset
1784
1785 ,
1786  since 
1787 \begin_inset Flex Noun
1788 status collapsed
1789
1790 \begin_layout Plain Layout
1791 pdflatex
1792 \end_layout
1793
1794 \end_inset
1795
1796  cannot handle other image formats.
1797  If an included graphic is not already in 
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 ,
1808  
1809 \begin_inset Flex Noun
1810 status collapsed
1811
1812 \begin_layout Plain Layout
1813 png
1814 \end_layout
1815
1816 \end_inset
1817
1818 ,
1819  or 
1820 \begin_inset Flex Noun
1821 status collapsed
1822
1823 \begin_layout Plain Layout
1824 jpg
1825 \end_layout
1826
1827 \end_inset
1828
1829  format,
1830  it is converted to 
1831 \begin_inset Flex Noun
1832 status collapsed
1833
1834 \begin_layout Plain Layout
1835 pdf
1836 \end_layout
1837
1838 \end_inset
1839
1840  if the vector format option is set,
1841  and otherwise to 
1842 \begin_inset Flex Noun
1843 status collapsed
1844
1845 \begin_layout Plain Layout
1846 png
1847 \end_layout
1848
1849 \end_inset
1850
1851 .
1852 \end_layout
1853
1854 \begin_layout Section
1855 Copiers
1856 \end_layout
1857
1858 \begin_layout Standard
1859 Since all conversions from one format to another take place in \SpecialChar LyX
1860 's temporary directory,
1861  it is sometimes necessary to modify a file before copying it to the temporary directory in order that the conversion may be performed.
1862 \begin_inset Foot
1863 status collapsed
1864
1865 \begin_layout Plain Layout
1866 For example,
1867  the file may refer to other files—
1868 images,
1869  for example—
1870 using relative file names,
1871  and these may become invalid when the file is copied to the temporary directory.
1872 \end_layout
1873
1874 \end_inset
1875
1876  This is done by a Copier:
1877  It copies a file to (or from) the temporary directory and may modify it in the process.
1878 \end_layout
1879
1880 \begin_layout Standard
1881 The definitions of the copiers may use eight variables:
1882 \end_layout
1883
1884 \begin_layout Labeling
1885 \labelwidthstring 00.00.0000
1886 \begin_inset Flex Code
1887 status collapsed
1888
1889 \begin_layout Plain Layout
1890 $$s
1891 \end_layout
1892
1893 \end_inset
1894
1895  The \SpecialChar LyX
1896  system directory (e.
1897 \begin_inset space \thinspace{}
1898 \end_inset
1899
1900 g.
1901 \begin_inset space \space{}
1902 \end_inset
1903
1904
1905 \begin_inset Flex Noun
1906 status collapsed
1907
1908 \begin_layout Plain Layout
1909 /usr/share/lyx
1910 \end_layout
1911
1912 \end_inset
1913
1914 ).
1915 \end_layout
1916
1917 \begin_layout Labeling
1918 \labelwidthstring 00.00.0000
1919 \begin_inset Flex Code
1920 status collapsed
1921
1922 \begin_layout Plain Layout
1923 $$i
1924 \end_layout
1925
1926 \end_inset
1927
1928  The input file
1929 \end_layout
1930
1931 \begin_layout Labeling
1932 \labelwidthstring 00.00.0000
1933 \begin_inset Flex Code
1934 status collapsed
1935
1936 \begin_layout Plain Layout
1937 $$o
1938 \end_layout
1939
1940 \end_inset
1941
1942  The output file
1943 \end_layout
1944
1945 \begin_layout Labeling
1946 \labelwidthstring 00.00.0000
1947 \begin_inset Flex Code
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951 $$b
1952 \end_layout
1953
1954 \end_inset
1955
1956  The base name (without filename extension) in the \SpecialChar LyX
1957  temporary directory
1958 \end_layout
1959
1960 \begin_layout Labeling
1961 \labelwidthstring 00.00.0000
1962 \begin_inset Flex Code
1963 status collapsed
1964
1965 \begin_layout Plain Layout
1966 $$p
1967 \end_layout
1968
1969 \end_inset
1970
1971  The full directory path of the \SpecialChar LyX
1972  temporary directory
1973 \end_layout
1974
1975 \begin_layout Labeling
1976 \labelwidthstring 00.00.0000
1977 \begin_inset Flex Code
1978 status collapsed
1979
1980 \begin_layout Plain Layout
1981 $$r
1982 \end_layout
1983
1984 \end_inset
1985
1986  The full pathname to the original \SpecialChar LyX
1987  file being processed
1988 \end_layout
1989
1990 \begin_layout Labeling
1991 \labelwidthstring 00.00.0000
1992 \begin_inset Flex Code
1993 status collapsed
1994
1995 \begin_layout Plain Layout
1996 $$f
1997 \end_layout
1998
1999 \end_inset
2000
2001  The filename (without any directory path) of the \SpecialChar LyX
2002  file.
2003 \end_layout
2004
2005 \begin_layout Labeling
2006 \labelwidthstring 00.00.0000
2007 \begin_inset Flex Code
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 $$l
2012 \end_layout
2013
2014 \end_inset
2015
2016  The `\SpecialChar LaTeX
2017  name'
2018 \end_layout
2019
2020 \begin_layout Standard
2021 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2022 's 
2023 \series bold
2024
2025 \backslash
2026 include
2027 \series default
2028  command.
2029  It is relevant only when exporting files suitable for such inclusion.
2030 \end_layout
2031
2032 \begin_layout Standard
2033 Copiers can be used to do almost anything with output files.
2034  For example,
2035  suppose you want generated pdf files to be copied to a special directory,
2036  
2037 \begin_inset Flex Code
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 /home/you/pdf/
2042 \end_layout
2043
2044 \end_inset
2045
2046 .
2047  Then you could write a shell script such as this one:
2048 \end_layout
2049
2050 \begin_layout Standard
2051 \begin_inset listings
2052 inline false
2053 status open
2054
2055 \begin_layout Plain Layout
2056
2057 #!/bin/bash
2058 \end_layout
2059
2060 \begin_layout Plain Layout
2061
2062 FROMFILE=$1
2063 \end_layout
2064
2065 \begin_layout Plain Layout
2066
2067 TOFILE=`basename $2`
2068 \end_layout
2069
2070 \begin_layout Plain Layout
2071
2072 cp $FROMFILE /home/you/pdf/$TOFILE
2073 \end_layout
2074
2075 \end_inset
2076
2077 Save it in your local \SpecialChar LyX
2078  directory—
2079 say,
2080  
2081 \begin_inset Flex Code
2082 status collapsed
2083
2084 \begin_layout Plain Layout
2085 /home/you/.lyx/scripts/pdfcopier.sh
2086 \end_layout
2087
2088 \end_inset
2089
2090
2091 and make it executable,
2092  if you need to do so on your platform.
2093  Then,
2094  in the 
2095 \begin_inset Flex Noun
2096 status collapsed
2097
2098 \begin_layout Plain Layout
2099 Tools\SpecialChar menuseparator
2100 Preferences
2101 \end_layout
2102
2103 \end_inset
2104
2105  dialog,
2106  select under 
2107 \begin_inset Flex Noun
2108 status collapsed
2109
2110 \begin_layout Plain Layout
2111 File Handling\SpecialChar menuseparator
2112 File formats
2113 \end_layout
2114
2115 \end_inset
2116
2117  the 
2118 \begin_inset Flex Noun
2119 status collapsed
2120
2121 \begin_layout Plain Layout
2122 PDF(pdflatex)
2123 \end_layout
2124
2125 \end_inset
2126
2127  format—
2128 or one of the other pdf formats—
2129 and enter 
2130 \begin_inset Flex Code
2131 status collapsed
2132
2133 \begin_layout Plain Layout
2134 pdfcopier.sh $$i $$o
2135 \end_layout
2136
2137 \end_inset
2138
2139  into the 
2140 \begin_inset Flex Noun
2141 status collapsed
2142
2143 \begin_layout Plain Layout
2144 Copier
2145 \end_layout
2146
2147 \end_inset
2148
2149  field.
2150  
2151 \end_layout
2152
2153 \begin_layout Standard
2154 Copiers are used by \SpecialChar LyX
2155  in various of its own conversions.
2156  For example,
2157  if appropriate programs are found,
2158  \SpecialChar LyX
2159  will automatically install copiers for the 
2160 \begin_inset Flex Noun
2161 status collapsed
2162
2163 \begin_layout Plain Layout
2164 HTML
2165 \end_layout
2166
2167 \end_inset
2168
2169  and 
2170 \begin_inset Flex Noun
2171 status collapsed
2172
2173 \begin_layout Plain Layout
2174 HTML
2175 \begin_inset space ~
2176 \end_inset
2177
2178 (MS Word)
2179 \end_layout
2180
2181 \end_inset
2182
2183  formats.
2184  When these formats are exported,
2185  the copier sees that not just the main HTML file but various associated files (style files,
2186  images,
2187  etc.) are also copied.
2188  All these files are written to a subdirectory of the directory in which the original \SpecialChar LyX
2189  file was found.
2190 \begin_inset Foot
2191 status collapsed
2192
2193 \begin_layout Plain Layout
2194 This copier can be customized.
2195  The optional 
2196 \begin_inset Quotes eld
2197 \end_inset
2198
2199 -e
2200 \begin_inset Quotes erd
2201 \end_inset
2202
2203  argument takes a comma-separated list of extensions to be copied;
2204  if it is omitted,
2205  all files will be copied.
2206  The 
2207 \begin_inset Quotes eld
2208 \end_inset
2209
2210 -t
2211 \begin_inset Quotes erd
2212 \end_inset
2213
2214  argument determines the extension added to the generated directory.
2215  By default,
2216  it is 
2217 \begin_inset Quotes eld
2218 \end_inset
2219
2220
2221 \begin_inset Flex Noun
2222 status collapsed
2223
2224 \begin_layout Plain Layout
2225 LyXconv
2226 \end_layout
2227
2228 \end_inset
2229
2230
2231 \begin_inset Quotes erd
2232 \end_inset
2233
2234 ,
2235  so HTML generated from 
2236 \begin_inset Flex Noun
2237 status collapsed
2238
2239 \begin_layout Plain Layout
2240 /path/to/filename.lyx
2241 \end_layout
2242
2243 \end_inset
2244
2245  will end up in 
2246 \begin_inset Flex Noun
2247 status collapsed
2248
2249 \begin_layout Plain Layout
2250 /path/to/filename.html.LyXconv
2251 \end_layout
2252
2253 \end_inset
2254
2255 .
2256  
2257 \end_layout
2258
2259 \end_inset
2260
2261
2262 \end_layout
2263
2264 \begin_layout Section
2265 Converters
2266 \begin_inset CommandInset label
2267 LatexCommand label
2268 name "sec:Converters"
2269
2270 \end_inset
2271
2272
2273 \end_layout
2274
2275 \begin_layout Standard
2276 You can define your own Converters to convert files between different formats.
2277  This is done in the 
2278 \begin_inset Flex Noun
2279 status collapsed
2280
2281 \begin_layout Plain Layout
2282 Tools\SpecialChar menuseparator
2283 Preferences\SpecialChar menuseparator
2284 File Handling\SpecialChar menuseparator
2285 Converters
2286 \end_layout
2287
2288 \end_inset
2289
2290  dialog.
2291 \end_layout
2292
2293 \begin_layout Standard
2294 To define a new converter,
2295  select the 
2296 \begin_inset Flex Noun
2297 status collapsed
2298
2299 \begin_layout Plain Layout
2300 From
2301 \begin_inset space ~
2302 \end_inset
2303
2304 format
2305 \end_layout
2306
2307 \end_inset
2308
2309  and 
2310 \begin_inset Flex Noun
2311 status collapsed
2312
2313 \begin_layout Plain Layout
2314 To
2315 \begin_inset space ~
2316 \end_inset
2317
2318 format
2319 \end_layout
2320
2321 \end_inset
2322
2323  from the drop-down lists,
2324  enter the command needed for the conversion,
2325  and then press the 
2326 \begin_inset Flex Noun
2327 status collapsed
2328
2329 \begin_layout Plain Layout
2330 Add
2331 \end_layout
2332
2333 \end_inset
2334
2335  button.
2336  Several variables can be used in the definition of converters:
2337 \end_layout
2338
2339 \begin_layout Labeling
2340 \labelwidthstring 00.00.0000
2341 \begin_inset Flex Code
2342 status collapsed
2343
2344 \begin_layout Plain Layout
2345 $$s
2346 \end_layout
2347
2348 \end_inset
2349
2350  The \SpecialChar LyX
2351  system directory
2352 \end_layout
2353
2354 \begin_layout Labeling
2355 \labelwidthstring 00.00.0000
2356 \begin_inset Flex Code
2357 status collapsed
2358
2359 \begin_layout Plain Layout
2360 $$i
2361 \end_layout
2362
2363 \end_inset
2364
2365  The input file
2366 \end_layout
2367
2368 \begin_layout Labeling
2369 \labelwidthstring 00.00.0000
2370 \begin_inset Flex Code
2371 status collapsed
2372
2373 \begin_layout Plain Layout
2374 $$o
2375 \end_layout
2376
2377 \end_inset
2378
2379  The output file
2380 \end_layout
2381
2382 \begin_layout Labeling
2383 \labelwidthstring 00.00.0000
2384 \begin_inset Flex Code
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388 $$b
2389 \end_layout
2390
2391 \end_inset
2392
2393  The base filename of the input file (i.
2394 \begin_inset space \thinspace{}
2395 \end_inset
2396
2397 g.,
2398  without the extension)
2399 \end_layout
2400
2401 \begin_layout Labeling
2402 \labelwidthstring 00.00.0000
2403 \begin_inset Flex Code
2404 status collapsed
2405
2406 \begin_layout Plain Layout
2407 $$p
2408 \end_layout
2409
2410 \end_inset
2411
2412  The path to the input file
2413 \end_layout
2414
2415 \begin_layout Labeling
2416 \labelwidthstring 00.00.0000
2417 \begin_inset Flex Code
2418 status collapsed
2419
2420 \begin_layout Plain Layout
2421 $$r
2422 \end_layout
2423
2424 \end_inset
2425
2426  The path to the original input file (this is different from $$p when a chain of converters is called)
2427 \end_layout
2428
2429 \begin_layout Labeling
2430 \labelwidthstring 00.00.0000
2431 \begin_inset Flex Code
2432 status collapsed
2433
2434 \begin_layout Plain Layout
2435 $$e
2436 \end_layout
2437
2438 \end_inset
2439
2440  The iconv name for the encoding of the document.
2441 \end_layout
2442
2443 \begin_layout Standard
2444 In the 
2445 \begin_inset Flex Noun
2446 status collapsed
2447
2448 \begin_layout Plain Layout
2449 Extra
2450 \begin_inset space ~
2451 \end_inset
2452
2453 Flag
2454 \end_layout
2455
2456 \end_inset
2457
2458  field you can enter the following flags,
2459  separated by commas:
2460 \end_layout
2461
2462 \begin_layout Labeling
2463 \labelwidthstring 00.00.0000
2464 \begin_inset Flex Code
2465 status collapsed
2466
2467 \begin_layout Plain Layout
2468 latex=flavor
2469 \end_layout
2470
2471 \end_inset
2472
2473  This converter runs some form of \SpecialChar LaTeX
2474 .
2475  This will make \SpecialChar LyX
2476 's \SpecialChar LaTeX
2477  error logs available.
2478  The optional 
2479 \begin_inset Flex Code
2480 status open
2481
2482 \begin_layout Plain Layout
2483 flavor
2484 \end_layout
2485
2486 \end_inset
2487
2488  value specifies the form of \SpecialChar LaTeX
2489  that is run (
2490 \begin_inset Flex Code
2491 status open
2492
2493 \begin_layout Plain Layout
2494 latex,
2495  pdflatex,
2496  platex,
2497  xetex,
2498  luatex
2499 \end_layout
2500
2501 \end_inset
2502
2503 ).
2504  If no value is specified,
2505  
2506 \begin_inset Flex Code
2507 status open
2508
2509 \begin_layout Plain Layout
2510 latex
2511 \end_layout
2512
2513 \end_inset
2514
2515  is used.
2516 \end_layout
2517
2518 \begin_layout Labeling
2519 \labelwidthstring 00.00.0000
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 needauth
2525 \end_layout
2526
2527 \end_inset
2528
2529  This converter is considered non-safe and needs authorization by the user.
2530  Depending on the settings in 
2531 \family sans
2532 Tools\SpecialChar menuseparator
2533 Preferences\SpecialChar menuseparator
2534 File Handling\SpecialChar menuseparator
2535 Converters
2536 \family default
2537 ,
2538  users will (a.) be asked whether they trust the current document temporarily,
2539  permanently,
2540  or not,
2541  (b.) be informed that conversion is not possible due to security concerns,
2542  or (c.) not be informed as they gave permanent consent.
2543  Set this flag for converters that might execute arbitrary programs.
2544 \end_layout
2545
2546 \begin_layout Labeling
2547 \labelwidthstring 00.00.0000
2548 \begin_inset Flex Code
2549 status collapsed
2550
2551 \begin_layout Plain Layout
2552 needaux=flavor
2553 \end_layout
2554
2555 \end_inset
2556
2557  Needs the \SpecialChar LaTeX
2558  
2559 \begin_inset Flex Noun
2560 status collapsed
2561
2562 \begin_layout Plain Layout
2563 .aux
2564 \end_layout
2565
2566 \end_inset
2567
2568  file for the conversion.
2569  The optional 
2570 \begin_inset Flex Code
2571 status open
2572
2573 \begin_layout Plain Layout
2574 flavor
2575 \end_layout
2576
2577 \end_inset
2578
2579  value specifies the form of \SpecialChar LaTeX
2580  that is run in order to generate the 
2581 \begin_inset Flex Noun
2582 status collapsed
2583
2584 \begin_layout Plain Layout
2585 .aux
2586 \end_layout
2587
2588 \end_inset
2589
2590  file (
2591 \begin_inset Flex Code
2592 status open
2593
2594 \begin_layout Plain Layout
2595 latex,
2596  pdflatex,
2597  platex,
2598  xetex,
2599  luatex
2600 \end_layout
2601
2602 \end_inset
2603
2604 ).
2605  If no value is specified,
2606  
2607 \begin_inset Flex Code
2608 status open
2609
2610 \begin_layout Plain Layout
2611 latex
2612 \end_layout
2613
2614 \end_inset
2615
2616  is used.
2617 \end_layout
2618
2619 \begin_layout Labeling
2620 \labelwidthstring 00.00.0000
2621 \begin_inset Flex Code
2622 status collapsed
2623
2624 \begin_layout Plain Layout
2625 nice
2626 \end_layout
2627
2628 \end_inset
2629
2630  Needs a 
2631 \begin_inset Quotes eld
2632 \end_inset
2633
2634 nice
2635 \begin_inset Quotes erd
2636 \end_inset
2637
2638  file from the backend,
2639  which in practice means a \SpecialChar LaTeX
2640  file like the one we would export,
2641  without 
2642 \begin_inset Flex Code
2643 status collapsed
2644
2645 \begin_layout Plain Layout
2646 input@path
2647 \end_layout
2648
2649 \end_inset
2650
2651 .
2652 \end_layout
2653
2654 \begin_layout Labeling
2655 \labelwidthstring 00.00.0000
2656 \begin_inset Flex Code
2657 status collapsed
2658
2659 \begin_layout Plain Layout
2660 xml
2661 \end_layout
2662
2663 \end_inset
2664
2665  Output is XML.
2666 \end_layout
2667
2668 \begin_layout Standard
2669 The following three flags are not really flags at all because they take an argument in the 
2670 \begin_inset Flex Noun
2671 status collapsed
2672
2673 \begin_layout Plain Layout
2674 key
2675 \begin_inset space ~
2676 \end_inset
2677
2678 =
2679 \begin_inset space ~
2680 \end_inset
2681
2682 value
2683 \end_layout
2684
2685 \end_inset
2686
2687  format:
2688 \end_layout
2689
2690 \begin_layout Labeling
2691 \labelwidthstring 00.00.0000
2692 \begin_inset Flex Code
2693 status collapsed
2694
2695 \begin_layout Plain Layout
2696 hyperref-driver
2697 \end_layout
2698
2699 \end_inset
2700
2701  The name of the driver that needs to be loaded with the 
2702 \family sans
2703 hyperref
2704 \family default
2705  package for this converter.
2706  The loading of the correct driver is necessary to get some PDF-specific features.
2707  See the 
2708 \family sans
2709 hyperref
2710 \family default
2711  manual for details.
2712 \end_layout
2713
2714 \begin_layout Labeling
2715 \labelwidthstring 00.00.0000
2716 \begin_inset Flex Code
2717 status collapsed
2718
2719 \begin_layout Plain Layout
2720 parselog
2721 \end_layout
2722
2723 \end_inset
2724
2725  If set,
2726  the converter's standard error will be redirected to a file 
2727 \begin_inset Flex Code
2728 status collapsed
2729
2730 \begin_layout Plain Layout
2731 infile.out
2732 \end_layout
2733
2734 \end_inset
2735
2736 ,
2737  and the script given as argument will be run as:
2738  
2739 \begin_inset Flex Code
2740 status collapsed
2741
2742 \begin_layout Plain Layout
2743 script < infile.out > infile.log
2744 \end_layout
2745
2746 \end_inset
2747
2748 .
2749  The argument may contain 
2750 \begin_inset Flex Code
2751 status collapsed
2752
2753 \begin_layout Plain Layout
2754 $$s
2755 \end_layout
2756
2757 \end_inset
2758
2759 .
2760 \end_layout
2761
2762 \begin_layout Labeling
2763 \labelwidthstring 00.00.0000
2764 \begin_inset Flex Code
2765 status collapsed
2766
2767 \begin_layout Plain Layout
2768 resultdir
2769 \end_layout
2770
2771 \end_inset
2772
2773  The name of the directory in which the converter will dump the generated files.
2774  \SpecialChar LyX
2775  will not create this directory,
2776  and it does not copy anything into it,
2777  though it will copy this directory to the destination.
2778  The argument may contain 
2779 \begin_inset Flex Code
2780 status collapsed
2781
2782 \begin_layout Plain Layout
2783 $$b
2784 \end_layout
2785
2786 \end_inset
2787
2788 ,
2789  which will be replaced by the base name of the input and output files,
2790  respectively,
2791  when the directory is copied.
2792 \begin_inset Newline newline
2793 \end_inset
2794
2795 Note that resultdir and usetempdir make no sense together.
2796  The latter will be ignored if the former is given.
2797 \end_layout
2798
2799 \begin_layout Labeling
2800 \labelwidthstring 00.00.0000
2801 \begin_inset Flex Code
2802 status collapsed
2803
2804 \begin_layout Plain Layout
2805 resultfile
2806 \end_layout
2807
2808 \end_inset
2809
2810  Determines the output file name and may,
2811  contain 
2812 \begin_inset Flex Code
2813 status collapsed
2814
2815 \begin_layout Plain Layout
2816 $$b
2817 \end_layout
2818
2819 \end_inset
2820
2821 .
2822  Sensible only with resultdir and optional even then;
2823  if not given,
2824  it defaults to `index'.
2825 \end_layout
2826
2827 \begin_layout Standard
2828 A suitable hyperref-driver is set for some converters that are installed with \SpecialChar LyX
2829 .
2830  The last three flags,
2831  however,
2832  are presently not used in any of the pre-installed converters.
2833 \end_layout
2834
2835 \begin_layout Standard
2836 You do not have to define converters for all formats between which you want to convert.
2837  For example,
2838  you will note that there is no `\SpecialChar LyX
2839  to PostScript' converter,
2840  but \SpecialChar LyX
2841  will export PostScript.
2842  It does so by first creating a \SpecialChar LaTeX
2843  file (no converter needs to be defined for this) which is then converted to DVI using the `\SpecialChar LaTeX
2844  to DVI' converter,
2845  and finally converting the resulting DVI file to PostScript.
2846  \SpecialChar LyX
2847  finds such `chains' of converters automatically,
2848  and it will always choose the shortest possible chain.
2849  You can,
2850  though,
2851  still define multiple conversion methods between file formats.
2852  For example,
2853  the standard \SpecialChar LyX
2854  configuration provides five ways to convert \SpecialChar LaTeX
2855  to PDF:
2856 \end_layout
2857
2858 \begin_layout Enumerate
2859 Directly,
2860  using 
2861 \begin_inset Flex Noun
2862 status collapsed
2863
2864 \begin_layout Plain Layout
2865 pdflatex
2866 \end_layout
2867
2868 \end_inset
2869
2870
2871 \end_layout
2872
2873 \begin_layout Enumerate
2874 via (DVI and) PostScript,
2875  using 
2876 \begin_inset Flex Noun
2877 status collapsed
2878
2879 \begin_layout Plain Layout
2880 ps2pdf
2881 \end_layout
2882
2883 \end_inset
2884
2885
2886 \end_layout
2887
2888 \begin_layout Enumerate
2889 via DVI,
2890  using 
2891 \begin_inset Flex Noun
2892 status collapsed
2893
2894 \begin_layout Plain Layout
2895 dvipdfm
2896 \end_layout
2897
2898 \end_inset
2899
2900
2901 \end_layout
2902
2903 \begin_layout Enumerate
2904 directly using 
2905 \begin_inset Flex Noun
2906 status collapsed
2907
2908 \begin_layout Plain Layout
2909 Xe\SpecialChar TeX
2910
2911 \end_layout
2912
2913 \end_inset
2914
2915
2916 \end_layout
2917
2918 \begin_layout Enumerate
2919 directly using 
2920 \begin_inset Flex Noun
2921 status collapsed
2922
2923 \begin_layout Plain Layout
2924 Lua\SpecialChar TeX
2925
2926 \end_layout
2927
2928 \end_inset
2929
2930
2931 \end_layout
2932
2933 \begin_layout Standard
2934 To define such alternate chains,
2935  you must define multiple target `file formats',
2936  as described in 
2937 \begin_inset CommandInset ref
2938 LatexCommand ref
2939 reference "sec:Formats"
2940 nolink "false"
2941
2942 \end_inset
2943
2944 .
2945  For example,
2946  in the standard configuration,
2947  the formats named 
2948 \begin_inset Flex Noun
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952 pdf
2953 \end_layout
2954
2955 \end_inset
2956
2957  (for 
2958 \begin_inset Flex Noun
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962 ps2pdf
2963 \end_layout
2964
2965 \end_inset
2966
2967 ),
2968  
2969 \begin_inset Flex Noun
2970 status collapsed
2971
2972 \begin_layout Plain Layout
2973 pdf2
2974 \end_layout
2975
2976 \end_inset
2977
2978  (for 
2979 \begin_inset Flex Noun
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 pdflatex
2984 \end_layout
2985
2986 \end_inset
2987
2988 ),
2989  
2990 \begin_inset Flex Noun
2991 status collapsed
2992
2993 \begin_layout Plain Layout
2994 pdf3
2995 \end_layout
2996
2997 \end_inset
2998
2999  (for 
3000 \begin_inset Flex Noun
3001 status collapsed
3002
3003 \begin_layout Plain Layout
3004 dvipdfm
3005 \end_layout
3006
3007 \end_inset
3008
3009 ),
3010  
3011 \begin_inset Flex Noun
3012 status collapsed
3013
3014 \begin_layout Plain Layout
3015 pdf4
3016 \end_layout
3017
3018 \end_inset
3019
3020  (for 
3021 \begin_inset Flex Noun
3022 status collapsed
3023
3024 \begin_layout Plain Layout
3025 Xe\SpecialChar TeX
3026
3027 \end_layout
3028
3029 \end_inset
3030
3031 ),
3032  and 
3033 \begin_inset Flex Noun
3034 status collapsed
3035
3036 \begin_layout Plain Layout
3037 pdf5
3038 \end_layout
3039
3040 \end_inset
3041
3042  (for 
3043 \begin_inset Flex Noun
3044 status collapsed
3045
3046 \begin_layout Plain Layout
3047 Lua\SpecialChar TeX
3048
3049 \end_layout
3050
3051 \end_inset
3052
3053 ) are defined,
3054  all of which share the extension 
3055 \begin_inset Flex Noun
3056 status collapsed
3057
3058 \begin_layout Plain Layout
3059 .pdf
3060 \end_layout
3061
3062 \end_inset
3063
3064 ,
3065  and which correspond to the conversion methods just mentioned.
3066 \end_layout
3067
3068 \begin_layout Chapter
3069 Internationalizing \SpecialChar LyX
3070
3071 \begin_inset CommandInset label
3072 LatexCommand label
3073 name "cha:Internationalizing-LyX"
3074
3075 \end_inset
3076
3077
3078 \end_layout
3079
3080 \begin_layout Standard
3081 \SpecialChar LyX
3082  supports using a translated interface.
3083  Last time we checked,
3084  \SpecialChar LyX
3085  provided text in thirty languages.
3086  The language of choice is called your 
3087 \emph on
3088 locale
3089 \emph default
3090 .
3091  (For further reading on locale settings,
3092  see also the documentation for locale that comes with your operating system.
3093  For Linux,
3094  the manual page for 
3095 \begin_inset Flex Code
3096 status collapsed
3097
3098 \begin_layout Plain Layout
3099 locale(5)
3100 \end_layout
3101
3102 \end_inset
3103
3104  could be a good place to start).
3105 \end_layout
3106
3107 \begin_layout Standard
3108 Notice that these translations will work,
3109  but do contain a few flaws.
3110  In particular,
3111  all dialogs have been designed with the English text in mind,
3112  which means that some of the translated text will be too large to fit within the space allocated.
3113  This is only a display problem and will not cause any harm.
3114  Also,
3115  you will find that some of the translations do not define shortcut keys for everything.
3116  Sometimes,
3117  there are simply not enough free letters to do it.
3118  Other times,
3119  the translator just hasn't got around to doing it yet.
3120  Our localization team,
3121  which you may wish to join,
3122 \begin_inset Foot
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 If you are a fluent speaker of a language other than English,
3127  joining these teams is a great way to give back to the \SpecialChar LyX
3128  community!
3129 \end_layout
3130
3131 \end_inset
3132
3133  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3134 .
3135 \end_layout
3136
3137 \begin_layout Section
3138 Translating \SpecialChar LyX
3139
3140 \end_layout
3141
3142 \begin_layout Subsection
3143 Translating the graphical user interface (text messages).
3144 \end_layout
3145
3146 \begin_layout Standard
3147 \SpecialChar LyX
3148  uses the GNU 
3149 \begin_inset Flex Code
3150 status collapsed
3151
3152 \begin_layout Plain Layout
3153 gettext
3154 \end_layout
3155
3156 \end_inset
3157
3158  library to handle the internationalization of the interface.
3159  To have \SpecialChar LyX
3160  speak your favorite language in all menus and dialogs,
3161  you need a 
3162 \begin_inset Flex Code
3163 status collapsed
3164
3165 \begin_layout Plain Layout
3166 po
3167 \end_layout
3168
3169 \end_inset
3170
3171 -file for that language.
3172  When this is available,
3173  you'll have to generate a 
3174 \begin_inset Flex Code
3175 status collapsed
3176
3177 \begin_layout Plain Layout
3178 mo
3179 \end_layout
3180
3181 \end_inset
3182
3183 -file from it and install the 
3184 \begin_inset Flex Code
3185 status collapsed
3186
3187 \begin_layout Plain Layout
3188 mo
3189 \end_layout
3190
3191 \end_inset
3192
3193 -file.
3194  The process of doing all of this is explained in the documentation for GNU 
3195 \begin_inset Flex Code
3196 status collapsed
3197
3198 \begin_layout Plain Layout
3199 gettext
3200 \end_layout
3201
3202 \end_inset
3203
3204 .
3205  It is possible to do this just for yourself,
3206  but if you're going to do it,
3207  you might as well share the results of your labors with the rest of the \SpecialChar LyX
3208  community.
3209  Send a message to the \SpecialChar LyX
3210  developers' list for more information about how to proceed.
3211 \end_layout
3212
3213 \begin_layout Standard
3214 In short,
3215  this is what you should do (xx denotes the language code):
3216 \end_layout
3217
3218 \begin_layout Itemize
3219 Check out the \SpecialChar LyX
3220  source code.
3221  (See the 
3222 \begin_inset CommandInset href
3223 LatexCommand href
3224 name "information on the web"
3225 target "https://www.lyx.org/HowToUseGIT"
3226 literal "false"
3227
3228 \end_inset
3229
3230 .)
3231 \end_layout
3232
3233 \begin_layout Itemize
3234 Copy the file 
3235 \begin_inset Flex Code
3236 status collapsed
3237
3238 \begin_layout Plain Layout
3239 lyx.pot
3240 \end_layout
3241
3242 \end_inset
3243
3244  to the folder of the 
3245 \begin_inset Flex Code
3246 status collapsed
3247
3248 \begin_layout Plain Layout
3249 **.po
3250 \end_layout
3251
3252 \end_inset
3253
3254  files.
3255  Then rename it to 
3256 \begin_inset Flex Code
3257 status collapsed
3258
3259 \begin_layout Plain Layout
3260 xx.po
3261 \end_layout
3262
3263 \end_inset
3264
3265 .
3266  (If 
3267 \begin_inset Flex Code
3268 status collapsed
3269
3270 \begin_layout Plain Layout
3271 lyx.pot
3272 \end_layout
3273
3274 \end_inset
3275
3276  doesn't exist anywhere,
3277  it can be remade with the console command 
3278 \begin_inset Flex Code
3279 status collapsed
3280
3281 \begin_layout Plain Layout
3282 make lyx.pot
3283 \end_layout
3284
3285 \end_inset
3286
3287  in that directory,
3288  or you can use an existing po-file for some other language as a template).
3289 \end_layout
3290
3291 \begin_layout Itemize
3292 Edit 
3293 \begin_inset Flex Code
3294 status collapsed
3295
3296 \begin_layout Plain Layout
3297 xx.po
3298 \end_layout
3299
3300 \end_inset
3301
3302 .
3303 \begin_inset Foot
3304 status collapsed
3305
3306 \begin_layout Plain Layout
3307 This is just a text file,
3308  so it can be edited in any text editor.
3309  But there are also specialized programs that support such editing,
3310  such as 
3311 \family typewriter
3312 Poedit
3313 \family default
3314  (for all platforms) or 
3315 \family typewriter
3316 KBabel
3317 \family default
3318  (for KDE).
3319  
3320 \family typewriter
3321 Emacs
3322 \family default
3323  contains a `mode' for editing 
3324 \begin_inset Flex Code
3325 status collapsed
3326
3327 \begin_layout Plain Layout
3328 po
3329 \end_layout
3330
3331 \end_inset
3332
3333  files,
3334  as well,
3335  see 
3336 \begin_inset Flex URL
3337 status open
3338
3339 \begin_layout Plain Layout
3340
3341 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3342 \end_layout
3343
3344 \end_inset
3345
3346 .
3347 \end_layout
3348
3349 \end_inset
3350
3351  For some menu- and widget-labels,
3352  there are also shortcut keys that should be translated.
3353  Those keys are marked after a `|',
3354  and should be translated according to the words and phrases of the language.
3355  You should also fill also out the information at the beginning of the new 
3356 \begin_inset Flex Code
3357 status collapsed
3358
3359 \begin_layout Plain Layout
3360 po
3361 \end_layout
3362
3363 \end_inset
3364
3365 -file with your email-address,
3366  etc.,
3367  so people know where to reach you with suggestions and entertaining flames.
3368 \end_layout
3369
3370 \begin_layout Standard
3371 If you are just doing this on your own,
3372  then:
3373 \end_layout
3374
3375 \begin_layout Itemize
3376 Generate 
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 xx.mo
3382 \end_layout
3383
3384 \end_inset
3385
3386 .
3387  This can be done with 
3388 \begin_inset Flex Code
3389 status collapsed
3390
3391 \begin_layout Plain Layout
3392 msgfmt -o xx.mo < xx.po
3393 \end_layout
3394
3395 \end_inset
3396
3397 .
3398 \end_layout
3399
3400 \begin_layout Itemize
3401 Copy the 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 mo
3407 \end_layout
3408
3409 \end_inset
3410
3411 -file to your locale-tree,
3412  at the correct directory for application messages for the language
3413 \series bold
3414  
3415 \series default
3416 xx,
3417  and under the name 
3418 \begin_inset Flex Code
3419 status collapsed
3420
3421 \begin_layout Plain Layout
3422 lyx.mo
3423 \end_layout
3424
3425 \end_inset
3426
3427  (e.
3428 \begin_inset space \thinspace{}
3429 \end_inset
3430
3431 g.
3432 \begin_inset space \space{}
3433 \end_inset
3434
3435
3436 \begin_inset Flex Code
3437 status collapsed
3438
3439 \begin_layout Plain Layout
3440 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3441 \end_layout
3442
3443 \end_inset
3444
3445
3446 \series bold
3447 .
3448 \end_layout
3449
3450 \begin_layout Standard
3451 As said,
3452  however,
3453  it would be best if the new 
3454 \begin_inset Flex Code
3455 status collapsed
3456
3457 \begin_layout Plain Layout
3458 po
3459 \end_layout
3460
3461 \end_inset
3462
3463  file could be added to the \SpecialChar LyX
3464  distribution,
3465  so others can use it.
3466  Adding it involves making additional changes to \SpecialChar LyX
3467 .
3468  So send an email to the developers' mailing list if you're interested in doing that.
3469 \end_layout
3470
3471 \begin_layout Subsubsection
3472 Ambiguous messages
3473 \end_layout
3474
3475 \begin_layout Standard
3476 Sometimes it turns out that one English message needs to be translated into different messages in the target language.
3477  One example is the message 
3478 \begin_inset Flex Code
3479 status collapsed
3480
3481 \begin_layout Plain Layout
3482 To
3483 \end_layout
3484
3485 \end_inset
3486
3487  which has the German translation 
3488 \lang german
3489 Nach
3490 \lang english
3491  or 
3492 \lang german
3493 Bis
3494 \lang english
3495 ,
3496  depending upon exactly what the English 
3497 \begin_inset Quotes eld
3498 \end_inset
3499
3500 to
3501 \begin_inset Quotes erd
3502 \end_inset
3503
3504  means.
3505  GNU 
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510 gettext
3511 \end_layout
3512
3513 \end_inset
3514
3515  does not handle such ambiguous translations.
3516  Therefore you have to add some context information to the message:
3517  Instead of 
3518 \begin_inset Flex Code
3519 status collapsed
3520
3521 \begin_layout Plain Layout
3522 To
3523 \end_layout
3524
3525 \end_inset
3526
3527  it becomes 
3528 \begin_inset Flex Code
3529 status collapsed
3530
3531 \begin_layout Plain Layout
3532 To[[as in 'From format x to format y']]
3533 \end_layout
3534
3535 \end_inset
3536
3537  and 
3538 \begin_inset Flex Code
3539 status collapsed
3540
3541 \begin_layout Plain Layout
3542 To[[as in 'From page x to page y']].
3543 \end_layout
3544
3545 \end_inset
3546
3547  Now the two occurrences of 
3548 \begin_inset Flex Code
3549 status collapsed
3550
3551 \begin_layout Plain Layout
3552 To
3553 \end_layout
3554
3555 \end_inset
3556
3557  are different for 
3558 \begin_inset Flex Code
3559 status collapsed
3560
3561 \begin_layout Plain Layout
3562 gettext
3563 \end_layout
3564
3565 \end_inset
3566
3567  and can be translated correctly to 
3568 \lang german
3569 Nach
3570 \lang english
3571  and 
3572 \lang german
3573 Bis
3574 \lang english
3575 ,
3576  respectively.
3577 \end_layout
3578
3579 \begin_layout Standard
3580 Of course the context information needs to be stripped off the original message when no translation is used.
3581  Therefore you have to put it in double square brackets at the end of the message (see the example above).
3582  The translation mechanism of \SpecialChar LyX
3583  ensures that everything in double square brackets at the end of messages is removed before displaying the message.
3584 \end_layout
3585
3586 \begin_layout Subsection
3587 Translating the documentation.
3588 \end_layout
3589
3590 \begin_layout Standard
3591 The online documentation (in the 
3592 \begin_inset Flex Noun
3593 status collapsed
3594
3595 \begin_layout Plain Layout
3596 Help
3597 \end_layout
3598
3599 \end_inset
3600
3601 -menu) can (and should!) be translated.
3602  If there are translated versions of the documentation available
3603 \begin_inset Foot
3604 status collapsed
3605
3606 \begin_layout Plain Layout
3607 As of March 2008,
3608  at least some of the documents have been translated into fourteen languages,
3609  with the Tutorial available in a few more.
3610 \end_layout
3611
3612 \end_inset
3613
3614  and the locale is set accordingly,
3615  these will be used automagically by \SpecialChar LyX
3616 .
3617  \SpecialChar LyX
3618  looks for translated versions as 
3619 \begin_inset Flex Code
3620 status collapsed
3621
3622 \begin_layout Plain Layout
3623 LyXDir/doc/xx/DocName.lyx
3624 \end_layout
3625
3626 \end_inset
3627
3628 ,
3629  where 
3630 \begin_inset Flex Code
3631 status collapsed
3632
3633 \begin_layout Plain Layout
3634 xx
3635 \end_layout
3636
3637 \end_inset
3638
3639  is the code for the language currently in use.
3640  If there are no translated documents,
3641  the default English versions will be displayed.
3642  Note that the translated versions must have the same filenames (
3643 \begin_inset Flex Code
3644 status collapsed
3645
3646 \begin_layout Plain Layout
3647 DocName
3648 \end_layout
3649
3650 \end_inset
3651
3652  above) as the original.
3653  If you feel up to translating the documentation (an excellent way to proof-read the original documentation by the way!),
3654  there are a few things you should do right away:
3655 \end_layout
3656
3657 \begin_layout Itemize
3658 Check out the documentation translation web page at 
3659 \begin_inset CommandInset href
3660 LatexCommand href
3661 name "https://www.lyx.org/Translation"
3662 target "https://www.lyx.org/Translation"
3663 literal "false"
3664
3665 \end_inset
3666
3667 .
3668  That way,
3669  you can find out which (if any) documents have already been translated into your language.
3670  You can also find out who (if anyone) is organizing the effort to translate the documentation into your language.
3671  If no one is organizing the effort,
3672  please let us know that you're interested.
3673 \end_layout
3674
3675 \begin_layout Standard
3676 Once you get to actually translating,
3677  here's a few hints for you that may save you trouble:
3678 \end_layout
3679
3680 \begin_layout Itemize
3681 Join the documentation team!
3682  There is information on how to do that in 
3683 \begin_inset Flex Code
3684 status collapsed
3685
3686 \begin_layout Plain Layout
3687 Intro.lyx
3688 \end_layout
3689
3690 \end_inset
3691
3692  (
3693 \begin_inset Flex Noun
3694 status collapsed
3695
3696 \begin_layout Plain Layout
3697 Help\SpecialChar menuseparator
3698 Introduction
3699 \end_layout
3700
3701 \end_inset
3702
3703 ),
3704  which by the way is the first document you should translate.
3705 \end_layout
3706
3707 \begin_layout Itemize
3708 Learn the typographic conventions for the language you are translating to.
3709  Typography is an ancient art and over the centuries,
3710  a great variety of conventions have developed throughout different parts of the world.
3711  Also study the professional terminology amongst typographers in your country.
3712  Inventing your own terminology will only confuse the users.
3713  
3714 \emph on
3715 (Warning!
3716  Typography is addictive!)
3717 \end_layout
3718
3719 \begin_layout Itemize
3720 Make a copy of the document.
3721  This will be your working copy.
3722  You can use this as your personal translated help-file by placing it in your 
3723 \begin_inset Flex Code
3724 status collapsed
3725
3726 \begin_layout Plain Layout
3727 UserDir/doc/xx/
3728 \end_layout
3729
3730 \end_inset
3731
3732  directory.
3733 \begin_inset Note Greyedout
3734 status open
3735
3736 \begin_layout Plain Layout
3737
3738 \series bold
3739 Note:
3740
3741 \series default
3742  For a complex document with external material (images,
3743  etc.),
3744  if you make a copy e.
3745 \begin_inset space \thinspace{}
3746 \end_inset
3747
3748 g.
3749 \begin_inset space \space{}
3750 \end_inset
3751
3752 in a temp dir,
3753  beware that the links to external material may be broken when the document is moved to a different place.
3754  The best way is to retrieve the \SpecialChar LyX
3755  tree from git (see 
3756 \begin_inset Flex URL
3757 status collapsed
3758
3759 \begin_layout Plain Layout
3760
3761 https://www.lyx.org/HowToUseGIT
3762 \end_layout
3763
3764 \end_inset
3765
3766 ) and to edit the doc file in place.
3767 \end_layout
3768
3769 \end_inset
3770
3771
3772 \end_layout
3773
3774 \begin_layout Itemize
3775 Sometimes the original document (from the \SpecialChar LyX
3776  team) will be updated.
3777  Use the source viewer at 
3778 \begin_inset CommandInset href
3779 LatexCommand href
3780 name "https://www.lyx.org/trac/timeline"
3781 target "https://www.lyx.org/trac/timeline"
3782 literal "false"
3783
3784 \end_inset
3785
3786  to see what has been changed.
3787  That way you can easily see which parts of the translated document need to be updated.
3788 \end_layout
3789
3790 \begin_layout Standard
3791 If you ever find an error in the original document,
3792  fix it and notify the rest of the documentation team of the changes!
3793  (You didn't forget to join the documentation team,
3794  did you?)
3795 \end_layout
3796
3797 \begin_layout Standard
3798 \begin_inset Branch OutDated
3799 inverted 0
3800 status collapsed
3801
3802 \begin_layout Section
3803 International Keyboard Support
3804 \end_layout
3805
3806 \begin_layout Standard
3807
3808 \emph on
3809 [Editor's Note:
3810  The following section is by
3811 \emph default
3812  
3813 \shape smallcaps
3814 \emph on
3815 Ivan Schreter
3816 \shape default
3817 .
3818  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
3819  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
3820 \end_layout
3821
3822 \begin_layout Subsection
3823 Defining Own Keymaps:
3824  Keymap File Format
3825 \end_layout
3826
3827 \begin_layout Standard
3828 Let's look at a keyboard definition file a little closer.
3829  It is a plain text file defining
3830 \end_layout
3831
3832 \begin_layout Itemize
3833 key-to-key or key-to-string translations
3834 \end_layout
3835
3836 \begin_layout Itemize
3837 dead keys
3838 \end_layout
3839
3840 \begin_layout Itemize
3841 dead keys exceptions
3842 \end_layout
3843
3844 \begin_layout Standard
3845 To define key-to-key or key-to-string translation,
3846  use this command:
3847 \end_layout
3848
3849 \begin_layout Quotation
3850 \begin_inset Flex Code
3851 status collapsed
3852
3853 \begin_layout Plain Layout
3854
3855 \backslash
3856 kmap
3857 \end_layout
3858
3859 \end_inset
3860
3861  
3862 \begin_inset Flex Code
3863 status collapsed
3864
3865 \begin_layout Plain Layout
3866 key
3867 \end_layout
3868
3869 \end_inset
3870
3871  outstring 
3872 \end_layout
3873
3874 \begin_layout Standard
3875 where 
3876 \begin_inset Flex Code
3877 status collapsed
3878
3879 \begin_layout Plain Layout
3880 key
3881 \end_layout
3882
3883 \end_inset
3884
3885  is the key to be translated and 
3886 \begin_inset Flex Code
3887 status collapsed
3888
3889 \begin_layout Plain Layout
3890 outstring
3891 \end_layout
3892
3893 \end_inset
3894
3895  is the string to be inserted into the document.
3896  To define dead keys,
3897  use:
3898 \end_layout
3899
3900 \begin_layout Quotation
3901 \begin_inset Flex Code
3902 status collapsed
3903
3904 \begin_layout Plain Layout
3905
3906 \backslash
3907 kmod
3908 \end_layout
3909
3910 \end_inset
3911
3912  
3913 \begin_inset Flex Code
3914 status collapsed
3915
3916 \begin_layout Plain Layout
3917 key
3918 \end_layout
3919
3920 \end_inset
3921
3922  deadkey
3923 \end_layout
3924
3925 \begin_layout Standard
3926 where 
3927 \begin_inset Flex Code
3928 status collapsed
3929
3930 \begin_layout Plain Layout
3931 key
3932 \end_layout
3933
3934 \end_inset
3935
3936  is a keyboard key and 
3937 \begin_inset Flex Code
3938 status collapsed
3939
3940 \begin_layout Plain Layout
3941 deadkey
3942 \end_layout
3943
3944 \end_inset
3945
3946  is dead key name.
3947  The following dead keys are supported (shortcut name is in parentheses):
3948 \end_layout
3949
3950 \begin_layout Quotation
3951
3952 \emph on
3953 Name
3954 \begin_inset space \hfill{}
3955 \end_inset
3956
3957 Example
3958 \end_layout
3959
3960 \begin_layout Quotation
3961 acute (acu)
3962 \begin_inset space \hfill{}
3963 \end_inset
3964
3965 áéíóú
3966 \end_layout
3967
3968 \begin_layout Quotation
3969 grave (gra)
3970 \begin_inset space \hfill{}
3971 \end_inset
3972
3973 àèìòù
3974 \end_layout
3975
3976 \begin_layout Quotation
3977 macron (mac)
3978 \begin_inset space \hfill{}
3979 \end_inset
3980
3981  ō
3982 \end_layout
3983
3984 \begin_layout Quotation
3985 tilde (til)
3986 \begin_inset space \hfill{}
3987 \end_inset
3988
3989 ñÑ
3990 \end_layout
3991
3992 \begin_layout Quotation
3993 underbar (underb)
3994 \begin_inset space \hfill{}
3995 \end_inset
3996
3997
3998 \begin_inset ERT
3999 status open
4000
4001 \begin_layout Plain Layout
4002
4003
4004 \backslash
4005 b o
4006 \end_layout
4007
4008 \end_inset
4009
4010
4011 \end_layout
4012
4013 \begin_layout Quotation
4014 cedilla (ced)
4015 \begin_inset space \hfill{}
4016 \end_inset
4017
4018 çÇ
4019 \end_layout
4020
4021 \begin_layout Quotation
4022 underdot (underd)
4023 \begin_inset space \hfill{}
4024 \end_inset
4025
4026
4027 \begin_inset ERT
4028 status open
4029
4030 \begin_layout Plain Layout
4031
4032
4033 \backslash
4034 d o
4035 \end_layout
4036
4037 \end_inset
4038
4039
4040 \end_layout
4041
4042 \begin_layout Quotation
4043 circumflex (circu)
4044 \begin_inset space \hfill{}
4045 \end_inset
4046
4047 âêîôû
4048 \end_layout
4049
4050 \begin_layout Quotation
4051 circle (circl)
4052 \begin_inset space \hfill{}
4053 \end_inset
4054
4055 ÅůŮ
4056 \end_layout
4057
4058 \begin_layout Quotation
4059 tie (tie)
4060 \begin_inset space \hfill{}
4061 \end_inset
4062
4063
4064 \begin_inset ERT
4065 status open
4066
4067 \begin_layout Plain Layout
4068
4069
4070 \backslash
4071 t o
4072 \end_layout
4073
4074 \end_inset
4075
4076
4077 \end_layout
4078
4079 \begin_layout Quotation
4080 breve (bre)
4081 \begin_inset space \hfill{}
4082 \end_inset
4083
4084 ă
4085 \begin_inset ERT
4086 status open
4087
4088 \begin_layout Plain Layout
4089
4090
4091 \backslash
4092 u o
4093 \end_layout
4094
4095 \end_inset
4096
4097
4098 \end_layout
4099
4100 \begin_layout Quotation
4101 caron (car)
4102 \begin_inset space \hfill{}
4103 \end_inset
4104
4105 čšž
4106 \end_layout
4107
4108 \begin_layout Quotation
4109 hungarian umlaut (hug)
4110 \begin_inset space \hfill{}
4111 \end_inset
4112
4113 őű
4114 \end_layout
4115
4116 \begin_layout Quotation
4117 umlaut (uml)
4118 \begin_inset space \hfill{}
4119 \end_inset
4120
4121 äöü
4122 \end_layout
4123
4124 \begin_layout Quotation
4125 dot (dot)
4126 \begin_inset space \hfill{}
4127 \end_inset
4128
4129 ż
4130 \begin_inset ERT
4131 status open
4132
4133 \begin_layout Plain Layout
4134
4135
4136 \backslash
4137 .s
4138 \end_layout
4139
4140 \end_inset
4141
4142
4143 \end_layout
4144
4145 \begin_layout Standard
4146 Since in many international keyboards there are exceptions to what some dead keys should do,
4147  you can define them using
4148 \end_layout
4149
4150 \begin_layout Quotation
4151 \begin_inset Flex Code
4152 status collapsed
4153
4154 \begin_layout Plain Layout
4155
4156 \backslash
4157 kxmod
4158 \end_layout
4159
4160 \end_inset
4161
4162  deadkey key outstring
4163 \end_layout
4164
4165 \begin_layout Standard
4166 For example,
4167  on Slovak keyboard,
4168  if you enter caron-o,
4169  it generates circumflex-o,
4170  so you put in
4171 \end_layout
4172
4173 \begin_layout Quotation
4174 \begin_inset Flex Code
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178
4179 \backslash
4180 kxmod
4181 \end_layout
4182
4183 \end_inset
4184
4185  caron o "
4186 \backslash
4187 ^o"
4188 \end_layout
4189
4190 \begin_layout Standard
4191 to make it work correctly.
4192  Also,
4193  you have to define as exceptions dead keys over i and j,
4194  to remove the dot from them before inserting an accent mark.
4195  I will change this when the time comes,
4196  but so far I haven't had time.
4197 \end_layout
4198
4199 \begin_layout Standard
4200 Oh,
4201  and about characters:
4202  backslash is escaped,
4203  so to enter it,
4204  you'll need double backslash.
4205  Also,
4206  quotes and 
4207 \begin_inset Flex Code
4208 status collapsed
4209
4210 \begin_layout Plain Layout
4211 #
4212 \end_layout
4213
4214 \end_inset
4215
4216  have different meaning.
4217  
4218 \begin_inset Flex Code
4219 status collapsed
4220
4221 \begin_layout Plain Layout
4222 #
4223 \end_layout
4224
4225 \end_inset
4226
4227  marks comments,
4228  quotes start and end \SpecialChar LaTeX
4229 -style commands.
4230  To enter quote,
4231  you'll need to use 
4232 \begin_inset Flex Code
4233 status collapsed
4234
4235 \begin_layout Plain Layout
4236
4237 \backslash
4238 "
4239 \end_layout
4240
4241 \end_inset
4242
4243 ,
4244  to enter 
4245 \begin_inset Flex Code
4246 status collapsed
4247
4248 \begin_layout Plain Layout
4249 #
4250 \end_layout
4251
4252 \end_inset
4253
4254 ,
4255  use 
4256 \begin_inset Flex Code
4257 status collapsed
4258
4259 \begin_layout Plain Layout
4260
4261 \backslash
4262 #
4263 \end_layout
4264
4265 \end_inset
4266
4267 .
4268 \end_layout
4269
4270 \begin_layout Standard
4271 If you make a keyboard description file that works for your language,
4272  please mail it to me,
4273  so I can include it in the next keymap distribution.
4274 \end_layout
4275
4276 \begin_layout Standard
4277 More keywords will be supported in keymap configuration file in future,
4278  like
4279 \end_layout
4280
4281 \begin_layout Itemize
4282 \begin_inset Flex Code
4283 status collapsed
4284
4285 \begin_layout Plain Layout
4286
4287 \backslash
4288 kinclude filename
4289 \end_layout
4290
4291 \end_inset
4292
4293
4294 \emph on
4295
4296 \begin_inset space \hfill{}
4297 \end_inset
4298
4299
4300 \begin_inset Flex Code
4301 status collapsed
4302
4303 \begin_layout Plain Layout
4304 include
4305 \end_layout
4306
4307 \end_inset
4308
4309  another file
4310 \end_layout
4311
4312 \begin_layout Itemize
4313 \begin_inset Flex Code
4314 status collapsed
4315
4316 \begin_layout Plain Layout
4317
4318 \backslash
4319 kprog program
4320 \end_layout
4321
4322 \end_inset
4323
4324
4325 \emph on
4326
4327 \begin_inset space \hfill{}
4328 \end_inset
4329
4330
4331 \begin_inset Flex Code
4332 status collapsed
4333
4334 \begin_layout Plain Layout
4335 define
4336 \end_layout
4337
4338 \end_inset
4339
4340  an external keymap translation program 
4341 \end_layout
4342
4343 \begin_layout Standard
4344 Also,
4345  it should look into 
4346 \begin_inset Flex Code
4347 status collapsed
4348
4349 \begin_layout Plain Layout
4350 lyxrc
4351 \end_layout
4352
4353 \end_inset
4354
4355  file for defaults,
4356  too (for example,
4357  a 
4358 \begin_inset Flex Code
4359 status collapsed
4360
4361 \begin_layout Plain Layout
4362
4363 \backslash
4364 kinclude
4365 \end_layout
4366
4367 \end_inset
4368
4369  option to include default keyboard).
4370 \end_layout
4371
4372 \end_inset
4373
4374
4375 \end_layout
4376
4377 \begin_layout Section
4378 International Keymap Stuff
4379 \begin_inset CommandInset label
4380 LatexCommand label
4381 name "sec:International-Keymap-Stuff"
4382
4383 \end_inset
4384
4385
4386 \end_layout
4387
4388 \begin_layout Standard
4389 \begin_inset Note Note
4390 status open
4391
4392 \begin_layout Plain Layout
4393 In doing the revisions on this document in March 2008,
4394  I did not look over this stuff,
4395  as I do not understand it.
4396  It would be good if someone else could do so.
4397  (RH)
4398 \end_layout
4399
4400 \end_inset
4401
4402
4403 \end_layout
4404
4405 \begin_layout Standard
4406 The next two sections describe the 
4407 \begin_inset Flex Code
4408 status collapsed
4409
4410 \begin_layout Plain Layout
4411
4412 \shape up
4413 .kmap
4414 \end_layout
4415
4416 \end_inset
4417
4418  and 
4419 \begin_inset Flex Code
4420 status collapsed
4421
4422 \begin_layout Plain Layout
4423
4424 \shape up
4425 .cdef
4426 \end_layout
4427
4428 \end_inset
4429
4430  file syntax in detail.
4431  These sections should help you design your own key map if the ones provided do not meet your needs.
4432 \end_layout
4433
4434 \begin_layout Subsection
4435 The .kmap File
4436 \end_layout
4437
4438 \begin_layout Standard
4439
4440 \shape up
4441 .
4442 \begin_inset Flex Code
4443 status collapsed
4444
4445 \begin_layout Plain Layout
4446 kmap
4447 \end_layout
4448
4449 \end_inset
4450
4451  file maps keystrokes to characters or strings.
4452  As the name suggests,
4453  it sets a keyboard mapping.
4454  The 
4455 \begin_inset Flex Code
4456 status collapsed
4457
4458 \begin_layout Plain Layout
4459 .kmap
4460 \end_layout
4461
4462 \end_inset
4463
4464
4465 \shape default
4466  file keywords 
4467 \shape up
4468
4469 \begin_inset Flex Code
4470 status collapsed
4471
4472 \begin_layout Plain Layout
4473
4474 \shape up
4475 kmap
4476 \end_layout
4477
4478 \end_inset
4479
4480
4481 \shape default
4482 ,
4483
4484 \shape up
4485  
4486 \shape default
4487
4488 \begin_inset Flex Code
4489 status collapsed
4490
4491 \begin_layout Plain Layout
4492
4493 \shape up
4494 kmod
4495 \end_layout
4496
4497 \end_inset
4498
4499 ,
4500
4501 \shape up
4502  
4503 \shape default
4504
4505 \begin_inset Flex Code
4506 status collapsed
4507
4508 \begin_layout Plain Layout
4509
4510 \shape up
4511 kxmod
4512 \end_layout
4513
4514 \end_inset
4515
4516 ,
4517  and 
4518 \begin_inset Flex Code
4519 status collapsed
4520
4521 \begin_layout Plain Layout
4522
4523 \shape up
4524 kcomb
4525 \end_layout
4526
4527 \end_inset
4528
4529  are described in this section.
4530 \end_layout
4531
4532 \begin_layout Labeling
4533 \labelwidthstring 00.00.0000
4534 \begin_inset Flex Code
4535 status collapsed
4536
4537 \begin_layout Plain Layout
4538
4539 \shape up
4540 kmap
4541 \end_layout
4542
4543 \end_inset
4544
4545  Map a character to a string
4546 \end_layout
4547
4548 \begin_layout LyX-Code
4549
4550 \backslash
4551 kmap 
4552 \family roman
4553 \emph on
4554 char
4555 \family default
4556 \emph default
4557  
4558 \family roman
4559 \emph on
4560 string
4561 \end_layout
4562
4563 \begin_layout Standard
4564 This will ma
4565 \family roman
4566 p
4567 \family default
4568  
4569 \family roman
4570 \emph on
4571 char
4572 \family default
4573 \emph default
4574  
4575 \family roman
4576 to
4577 \family default
4578  
4579 \family roman
4580 \emph on
4581 string
4582 \emph default
4583 .
4584  Note that in
4585 \family default
4586  
4587 \family roman
4588 \emph on
4589 string
4590 \emph default
4591 ,
4592
4593 \family default
4594  
4595 \family roman
4596 \shape up
4597 the double-quote (")
4598 \family default
4599 \shape default
4600  
4601 \family roman
4602 and
4603 \family default
4604  
4605 \family roman
4606 \shape up
4607 the backslash (
4608 \backslash
4609 )
4610 \family default
4611 \shape default
4612  
4613 \family roman
4614 must be escaped with a preceding backslash (
4615 \shape up
4616
4617 \backslash
4618
4619 \shape default
4620 )
4621 \family default
4622 .
4623 \end_layout
4624
4625 \begin_layout Standard
4626 An example of a 
4627 \begin_inset Flex Noun
4628 status collapsed
4629
4630 \begin_layout Plain Layout
4631
4632 \shape up
4633 kmap
4634 \end_layout
4635
4636 \end_inset
4637
4638  statement to cause the symbol 
4639 \begin_inset Flex Noun
4640 status collapsed
4641
4642 \begin_layout Plain Layout
4643
4644 \shape up
4645 /
4646 \end_layout
4647
4648 \end_inset
4649
4650  to be output for the keystroke 
4651 \begin_inset Flex Noun
4652 status collapsed
4653
4654 \begin_layout Plain Layout
4655
4656 \shape up
4657 &
4658 \end_layout
4659
4660 \end_inset
4661
4662  is:
4663 \end_layout
4664
4665 \begin_layout LyX-Code
4666
4667 \backslash
4668 kmap & /
4669 \end_layout
4670
4671 \begin_layout Labeling
4672 \labelwidthstring 00.00.0000
4673 \begin_inset Flex Code
4674 status collapsed
4675
4676 \begin_layout Plain Layout
4677
4678 \shape up
4679 kmod
4680 \end_layout
4681
4682 \end_inset
4683
4684  Specify an accent character
4685 \end_layout
4686
4687 \begin_layout LyX-Code
4688
4689 \backslash
4690 kmod 
4691 \family roman
4692 \emph on
4693 char accent allowed
4694 \end_layout
4695
4696 \begin_layout Standard
4697 This will make the cha
4698 \family roman
4699 racter
4700 \family default
4701  
4702 \family roman
4703 \emph on
4704 char
4705 \family default
4706 \emph default
4707  
4708 \family roman
4709 \shape up
4710 \emph on
4711 be an accent
4712 \family default
4713 \shape default
4714 \emph default
4715  
4716 \family roman
4717 \shape up
4718 on the
4719 \family default
4720 \shape default
4721  
4722 \family roman
4723 \shape up
4724 \emph on
4725 allowed
4726 \family default
4727 \shape default
4728 \emph default
4729  
4730 \family roman
4731 \shape up
4732 cha
4733 \family default
4734 racter(s).
4735  This is the dead key
4736 \begin_inset Foot
4737 status collapsed
4738
4739 \begin_layout Plain Layout
4740 The term 
4741 \family roman
4742 \emph on
4743 dead key
4744 \family default
4745 \emph default
4746  refers to a key that does not produce a character by itself,
4747  but when followed with another key,
4748  produces the desired accent character.
4749  For example,
4750  a German characte
4751 \family roman
4752 r with an umlaut like
4753 \family default
4754  
4755 \family roman
4756 \emph on
4757 ä
4758 \family default
4759 \emph default
4760  
4761 \family roman
4762 can be produced in this manner.
4763 \end_layout
4764
4765 \end_inset
4766
4767  mechanism.
4768  
4769 \end_layout
4770
4771 \begin_layout Standard
4772 If you 
4773 \family roman
4774 hit
4775 \family default
4776  
4777 \family roman
4778 \emph on
4779 char
4780 \family default
4781 \emph default
4782  
4783 \family roman
4784 and then another key not in
4785 \family default
4786  
4787 \family roman
4788 \emph on
4789 allowed
4790 \emph default
4791 ,
4792  you will get a
4793 \family default
4794  
4795 \family roman
4796 \emph on
4797 char
4798 \family default
4799 \emph default
4800  
4801 \family roman
4802 followed by the other,
4803  not allowed key,
4804  as output.
4805
4806 \family default
4807  Note that a 
4808 \begin_inset Flex Noun
4809 status collapsed
4810
4811 \begin_layout Plain Layout
4812
4813 \shape up
4814 Backspace
4815 \end_layout
4816
4817 \end_inset
4818
4819  cancels a dead key,
4820  so if 
4821 \family roman
4822 you hit
4823 \family default
4824  
4825 \family roman
4826 \emph on
4827 char
4828 \family default
4829 \emph default
4830  
4831 \begin_inset Flex Noun
4832 status collapsed
4833
4834 \begin_layout Plain Layout
4835
4836 \shape up
4837 \emph on
4838 Backspace
4839 \end_layout
4840
4841 \end_inset
4842
4843 ,
4844  the cursor will not go one position backwards but will instead cancel the effect t
4845 \family roman
4846 hat
4847 \family default
4848  
4849 \family roman
4850 \shape up
4851 \emph on
4852 char
4853 \family default
4854 \shape default
4855 \emph default
4856  
4857 \family roman
4858 \shape up
4859 might have had on the next keystroke.
4860  
4861 \end_layout
4862
4863 \begin_layout Standard
4864 The following example specifies that the character ' is to be an acute accent,
4865  allowed on the characters a,
4866  e,
4867  i,
4868  o,
4869  u,
4870  A,
4871  E,
4872  I,
4873  O,
4874  and U:
4875 \end_layout
4876
4877 \begin_layout LyX-Code
4878
4879 \backslash
4880 kmod ' acute aeiouAEIOU
4881 \end_layout
4882
4883 \begin_layout Labeling
4884 \labelwidthstring 00.00.0000
4885 \begin_inset Flex Code
4886 status collapsed
4887
4888 \begin_layout Plain Layout
4889 kxmod
4890 \end_layout
4891
4892 \end_inset
4893
4894  Specify an exception to the accent character
4895 \end_layout
4896
4897 \begin_layout LyX-Code
4898
4899 \backslash
4900 kxmod  
4901 \family roman
4902 \emph on
4903 accent char result
4904 \end_layout
4905
4906 \begin_layout Standard
4907 This defines an exce
4908 \family roman
4909 ption for
4910 \family default
4911  
4912 \family roman
4913 \emph on
4914 accent
4915 \family default
4916 \emph default
4917  
4918 \family roman
4919 on
4920 \family default
4921  
4922 \family roman
4923 \emph on
4924 char
4925 \emph default
4926 .
4927  T
4928 \shape up
4929 he
4930 \family default
4931 \shape default
4932  
4933 \family roman
4934 \shape up
4935 \emph on
4936 accent
4937 \family default
4938 \shape default
4939 \emph default
4940  
4941 \family roman
4942 \shape up
4943 must
4944 \family default
4945 \shape default
4946  
4947 \shape up
4948 have been assigned a keystroke with a previous
4949 \shape default
4950  
4951 \begin_inset Flex Code
4952 status collapsed
4953
4954 \begin_layout Plain Layout
4955
4956 \shape up
4957
4958 \backslash
4959 kmo
4960 \shape default
4961 d
4962 \end_layout
4963
4964 \end_inset
4965
4966  declar
4967 \family roman
4968 ation and
4969 \family default
4970  
4971 \family roman
4972 \emph on
4973 char
4974 \family default
4975 \emph default
4976  
4977 \family roman
4978 must not belong in the
4979 \family default
4980  
4981 \family roman
4982 \emph on
4983 allowed
4984 \family default
4985 \emph default
4986  
4987 \family roman
4988 set of
4989 \family default
4990  
4991 \family roman
4992 \emph on
4993 accent
4994 \emph default
4995 .
4996  When
4997 \family default
4998  
4999 \family roman
5000 \shape up
5001 you enter the
5002 \family default
5003 \shape default
5004  
5005 \family roman
5006 \shape up
5007 \emph on
5008 accent char
5009 \family default
5010 \shape default
5011 \emph default
5012  
5013 \family roman
5014 \shape up
5015 sequence,
5016
5017 \family default
5018 \shape default
5019  
5020 \family roman
5021 \shape up
5022 \emph on
5023 result
5024 \emph default
5025  is produced.
5026  If such a declaration does not exist in
5027 \family default
5028 \shape default
5029  
5030 \shape up
5031 the
5032 \shape default
5033  
5034 \begin_inset Flex Code
5035 status collapsed
5036
5037 \begin_layout Plain Layout
5038
5039 \shape up
5040 .kmap
5041 \end_layout
5042
5043 \end_inset
5044
5045  file and yo
5046 \family roman
5047 u enter
5048 \family default
5049  
5050 \family roman
5051 \emph on
5052 accent char
5053 \emph default
5054 ,
5055  you get
5056 \family default
5057  
5058 \family roman
5059 \emph on
5060 accent_key char
5061 \emph default
5062  where
5063 \family default
5064  
5065 \family roman
5066 \emph on
5067 accent_key
5068 \emph default
5069  is the first arg
5070 \family default
5071 ument of the 
5072 \begin_inset Flex Code
5073 status collapsed
5074
5075 \begin_layout Plain Layout
5076
5077 \shape up
5078
5079 \backslash
5080 kmod
5081 \end_layout
5082
5083 \end_inset
5084
5085  declaration.
5086  
5087 \end_layout
5088
5089 \begin_layout Standard
5090 The following command produces causes äi to be produced when you enter acute-i ('i):
5091 \end_layout
5092
5093 \begin_layout LyX-Code
5094
5095 \backslash
5096 kxmod acute i "
5097 \backslash
5098
5099 \backslash
5100 '{
5101 \backslash
5102
5103 \backslash
5104 i}"
5105 \end_layout
5106
5107 \begin_layout Labeling
5108 \labelwidthstring 00.00.0000
5109 \begin_inset Flex Code
5110 status collapsed
5111
5112 \begin_layout Plain Layout
5113 kcomb
5114 \end_layout
5115
5116 \end_inset
5117
5118  Combine two accent characters
5119 \end_layout
5120
5121 \begin_layout LyX-Code
5122
5123 \backslash
5124 kcomb 
5125 \family roman
5126 \emph on
5127 accent1 accent2 allowed
5128 \end_layout
5129
5130 \begin_layout Standard
5131 This one is getting pretty esoteric.
5132  It allows you to combine the effect 
5133 \family roman
5134 of
5135 \family default
5136  
5137 \family roman
5138 \emph on
5139 accent1
5140 \family default
5141 \emph default
5142  
5143 \family roman
5144 and
5145 \family default
5146  
5147 \family roman
5148 \emph on
5149 accent2
5150 \family default
5151 \emph default
5152  
5153 \family roman
5154 (in that order!) on
5155 \family default
5156  
5157 \family roman
5158 \emph on
5159 allowed
5160 \family default
5161 \emph default
5162  
5163 \family roman
5164 chars.
5165  The keystrokes for
5166 \family default
5167  
5168 \family roman
5169 \emph on
5170 accent1
5171 \family default
5172 \emph default
5173  
5174 \family roman
5175 and
5176 \family default
5177  
5178 \family roman
5179 \emph on
5180 accent2
5181 \family default
5182 \emph default
5183  
5184 \family roman
5185 must have be
5186 \family default
5187 en set with a 
5188 \begin_inset Flex Code
5189 status collapsed
5190
5191 \begin_layout Plain Layout
5192
5193 \shape up
5194
5195 \backslash
5196 kmod
5197 \end_layout
5198
5199 \end_inset
5200
5201  command at 
5202 \family roman
5203 a
5204 \family default
5205  
5206 \family roman
5207 \emph on
5208 previous
5209 \family default
5210 \emph default
5211  
5212 \family roman
5213 point in the
5214 \family default
5215  file.
5216  
5217 \end_layout
5218
5219 \begin_layout Standard
5220 Consider this example from the 
5221 \begin_inset Flex Code
5222 status collapsed
5223
5224 \begin_layout Plain Layout
5225
5226 \shape up
5227 greek.kmap
5228 \end_layout
5229
5230 \end_inset
5231
5232  file:
5233 \end_layout
5234
5235 \begin_layout LyX-Code
5236
5237 \backslash
5238 kmod ;
5239  acute aeioyvhAEIOYVH 
5240 \backslash
5241 kmod :
5242  umlaut iyIY 
5243 \backslash
5244 kcomb acute umlaut iyIY
5245 \end_layout
5246
5247 \begin_layout Standard
5248 This allows you to press 
5249 \begin_inset Flex Noun
5250 status collapsed
5251
5252 \begin_layout Plain Layout
5253
5254 \shape up
5255 ;:i
5256 \end_layout
5257
5258 \end_inset
5259
5260  and get the effect of 
5261 \begin_inset Flex Code
5262 status collapsed
5263
5264 \begin_layout Plain Layout
5265
5266 \shape up
5267
5268 \backslash
5269 '{
5270 \backslash
5271 "{i}}
5272 \end_layout
5273
5274 \end_inset
5275
5276 .
5277  
5278 \family roman
5279 \shape up
5280 A backspace
5281 \family default
5282 \shape default
5283  in this case cancels the last dead key,
5284  so if you press 
5285 \begin_inset Flex Noun
5286 status collapsed
5287
5288 \begin_layout Plain Layout
5289
5290 \shape up
5291 ;:
5292  Backspace i
5293 \end_layout
5294
5295 \end_inset
5296
5297  you get 
5298 \begin_inset Flex Code
5299 status collapsed
5300
5301 \begin_layout Plain Layout
5302
5303 \shape up
5304
5305 \backslash
5306 '{i}
5307 \end_layout
5308
5309 \end_inset
5310
5311 .
5312 \end_layout
5313
5314 \begin_layout Subsection
5315 The .cdef File
5316 \end_layout
5317
5318 \begin_layout Standard
5319 After the 
5320 \begin_inset Flex Code
5321 status collapsed
5322
5323 \begin_layout Plain Layout
5324
5325 \shape up
5326 .kmap
5327 \end_layout
5328
5329 \end_inset
5330
5331  mapping is performed,
5332  a 
5333 \begin_inset Flex Code
5334 status collapsed
5335
5336 \begin_layout Plain Layout
5337
5338 \shape up
5339 .cde
5340 \shape default
5341 f
5342 \end_layout
5343
5344 \end_inset
5345
5346  file maps the strings that the symbols generate to characters in the current font.
5347  The \SpecialChar LyX
5348  distribution currently includes at least the 
5349 \begin_inset Flex Code
5350 status collapsed
5351
5352 \begin_layout Plain Layout
5353
5354 \shape up
5355 iso8859-1.cdef
5356 \end_layout
5357
5358 \end_inset
5359
5360  and 
5361 \begin_inset Flex Code
5362 status collapsed
5363
5364 \begin_layout Plain Layout
5365
5366 \shape up
5367 iso8859-2.cdef
5368 \end_layout
5369
5370 \end_inset
5371
5372  files.
5373 \end_layout
5374
5375 \begin_layout Standard
5376 In general the 
5377 \begin_inset Flex Code
5378 status collapsed
5379
5380 \begin_layout Plain Layout
5381
5382 \shape up
5383 .cdef
5384 \end_layout
5385
5386 \end_inset
5387
5388  file is a sequence of declarations of the form
5389 \end_layout
5390
5391 \begin_layout LyX-Code
5392
5393 \family roman
5394 \emph on
5395 char_index_in_set
5396 \family default
5397 \emph default
5398  
5399 \family roman
5400 \emph on
5401  string
5402 \end_layout
5403
5404 \begin_layout Standard
5405 For example,
5406  in order to map 
5407 \begin_inset Flex Noun
5408 status collapsed
5409
5410 \begin_layout Plain Layout
5411
5412 \shape up
5413
5414 \backslash
5415 '{e}
5416 \end_layout
5417
5418 \end_inset
5419
5420  to the corresponding character in the iso-8859-1 set (233),
5421  the following declaration is used
5422 \end_layout
5423
5424 \begin_layout LyX-Code
5425 233 "
5426 \backslash
5427
5428 \backslash
5429 '{e}"
5430 \end_layout
5431
5432 \begin_layout Standard
5433 with 
5434 \begin_inset Flex Code
5435 status collapsed
5436
5437 \begin_layout Plain Layout
5438
5439 \backslash
5440
5441 \end_layout
5442
5443 \end_inset
5444
5445  and 
5446 \begin_inset Flex Code
5447 status collapsed
5448
5449 \begin_layout Plain Layout
5450 "
5451 \end_layout
5452
5453 \end_inset
5454
5455  being escap
5456 \family roman
5457 ed in
5458 \family default
5459  
5460 \family roman
5461 \emph on
5462 string
5463 \emph default
5464 .
5465  Note that
5466 \family default
5467  the same character can apply to more than one string.
5468  In the 
5469 \begin_inset Flex Code
5470 status collapsed
5471
5472 \begin_layout Plain Layout
5473 i
5474 \shape up
5475 so-8859-7.cdef
5476 \end_layout
5477
5478 \end_inset
5479
5480  file you have
5481 \end_layout
5482
5483 \begin_layout LyX-Code
5484 192 "
5485 \backslash
5486
5487 \backslash
5488 '{
5489 \backslash
5490
5491 \backslash
5492
5493 \backslash
5494 "{i}}"
5495 \begin_inset Newline newline
5496 \end_inset
5497
5498 192 "
5499 \backslash
5500
5501 \backslash
5502
5503 \backslash
5504 "{
5505 \backslash
5506
5507 \backslash
5508 '{i}}"
5509 \end_layout
5510
5511 \begin_layout Standard
5512 If \SpecialChar LyX
5513  cannot find a mapping for the string produced by the keystroke or a deadkey sequence,
5514  it will check if it looks like an accented char and try to draw an accent over the character on screen.
5515 \end_layout
5516
5517 \begin_layout Subsection
5518 Dead Keys
5519 \end_layout
5520
5521 \begin_layout Standard
5522 There is a second way to add support for international characters through so-called dead-keys.
5523  A dead-key works in combination with a letter to produce an accented character.
5524  Here,
5525  we'll explain how to create a really simple dead-key to illustrate how they work.
5526 \end_layout
5527
5528 \begin_layout Standard
5529 Suppose you happen to need the circumflex character,
5530  
5531 \begin_inset Quotes eld
5532 \end_inset
5533
5534  ̂
5535 \begin_inset Quotes erd
5536 \end_inset
5537
5538 .
5539  You could bind the 
5540 \begin_inset Flex Noun
5541 status collapsed
5542
5543 \begin_layout Plain Layout
5544 ^
5545 \end_layout
5546
5547 \end_inset
5548
5549 -key [a.k.a.
5550 \begin_inset space ~
5551 \end_inset
5552
5553
5554 \begin_inset Flex Noun
5555 status collapsed
5556
5557 \begin_layout Plain Layout
5558 Shift-6
5559 \end_layout
5560
5561 \end_inset
5562
5563 ] to the \SpecialChar LyX
5564  command 
5565 \begin_inset Flex Code
5566 status collapsed
5567
5568 \begin_layout Plain Layout
5569 accent-circumflex
5570 \end_layout
5571
5572 \end_inset
5573
5574  in your 
5575 \begin_inset Flex Code
5576 status collapsed
5577
5578 \begin_layout Plain Layout
5579 lyxrc
5580 \end_layout
5581
5582 \end_inset
5583
5584  file.
5585  Now,
5586  whenever you type the 
5587 \begin_inset Flex Noun
5588 status collapsed
5589
5590 \begin_layout Plain Layout
5591 ^
5592 \end_layout
5593
5594 \end_inset
5595
5596 -key followed by a letter,
5597  that letter will have a circumflex accent on it.
5598  For example,
5599  the sequence 
5600 \begin_inset Quotes eld
5601 \end_inset
5602
5603
5604 \begin_inset Flex Noun
5605 status collapsed
5606
5607 \begin_layout Plain Layout
5608 ^e
5609 \end_layout
5610
5611 \end_inset
5612
5613
5614 \begin_inset Quotes erd
5615 \end_inset
5616
5617  produces the letter:
5618  
5619 \begin_inset Quotes eld
5620 \end_inset
5621
5622 ê
5623 \begin_inset Quotes erd
5624 \end_inset
5625
5626 .
5627  If you tried to type 
5628 \begin_inset Quotes eld
5629 \end_inset
5630
5631
5632 \begin_inset Flex Noun
5633 status collapsed
5634
5635 \begin_layout Plain Layout
5636 ^t
5637 \end_layout
5638
5639 \end_inset
5640
5641
5642 \begin_inset Quotes erd
5643 \end_inset
5644
5645 ,
5646  however,
5647  \SpecialChar LyX
5648  will complain with a beep,
5649  since a 
5650 \begin_inset Quotes eld
5651 \end_inset
5652
5653
5654 \begin_inset Flex Noun
5655 status collapsed
5656
5657 \begin_layout Plain Layout
5658 t
5659 \end_layout
5660
5661 \end_inset
5662
5663
5664 \begin_inset Quotes erd
5665 \end_inset
5666
5667  never takes a circumflex accent.
5668  Hitting 
5669 \begin_inset Flex Noun
5670 status collapsed
5671
5672 \begin_layout Plain Layout
5673 Space
5674 \end_layout
5675
5676 \end_inset
5677
5678  after a dead-key produces the bare-accent.
5679  Please note this last point!
5680  If you bind a key to a dead-key,
5681  you'll need to rebind the character on that key to yet another key.
5682  Binding the 
5683 \begin_inset Flex Noun
5684 status collapsed
5685
5686 \begin_layout Plain Layout
5687 ,-key
5688 \end_layout
5689
5690 \end_inset
5691
5692  to a cedilla is a bad idea,
5693  since you'll only get cedillas instead of commas.
5694 \end_layout
5695
5696 \begin_layout Standard
5697 One common way to bind dead-keys is to use 
5698 \begin_inset Flex Noun
5699 status collapsed
5700
5701 \begin_layout Plain Layout
5702 Meta-
5703 \end_layout
5704
5705 \end_inset
5706
5707 ,
5708  
5709 \begin_inset Flex Noun
5710 status collapsed
5711
5712 \begin_layout Plain Layout
5713 Ctrl-
5714 \end_layout
5715
5716 \end_inset
5717
5718 ,
5719  and 
5720 \begin_inset Flex Noun
5721 status collapsed
5722
5723 \begin_layout Plain Layout
5724 Shift-
5725 \end_layout
5726
5727 \end_inset
5728
5729  in combination with an accent,
5730  like 
5731 \begin_inset Quotes eld
5732 \end_inset
5733
5734
5735 \begin_inset Flex Noun
5736 status collapsed
5737
5738 \begin_layout Plain Layout
5739 ~
5740 \end_layout
5741
5742 \end_inset
5743
5744
5745 \begin_inset Quotes erd
5746 \end_inset
5747
5748  or 
5749 \begin_inset Quotes eld
5750 \end_inset
5751
5752
5753 \begin_inset Flex Noun
5754 status collapsed
5755
5756 \begin_layout Plain Layout
5757 ,
5758 \end_layout
5759
5760 \end_inset
5761
5762
5763 \begin_inset Quotes erd
5764 \end_inset
5765
5766  or 
5767 \begin_inset Quotes eld
5768 \end_inset
5769
5770
5771 \begin_inset Flex Noun
5772 status collapsed
5773
5774 \begin_layout Plain Layout
5775 ^
5776 \end_layout
5777
5778 \end_inset
5779
5780
5781 \begin_inset Quotes erd
5782 \end_inset
5783
5784 .
5785  Another way involves using 
5786 \begin_inset Flex Code
5787 status collapsed
5788
5789 \begin_layout Plain Layout
5790 xmodmap
5791 \end_layout
5792
5793 \end_inset
5794
5795  and 
5796 \begin_inset Flex Code
5797 status collapsed
5798
5799 \begin_layout Plain Layout
5800 xkeycaps
5801 \end_layout
5802
5803 \end_inset
5804
5805  to set up the special 
5806 \begin_inset Flex Code
5807 status collapsed
5808
5809 \begin_layout Plain Layout
5810 Mode_Switch
5811 \end_layout
5812
5813 \end_inset
5814
5815  key.
5816  The 
5817 \begin_inset Flex Code
5818 status collapsed
5819
5820 \begin_layout Plain Layout
5821 Mode_Switch
5822 \end_layout
5823
5824 \end_inset
5825
5826  acts in some ways just like 
5827 \begin_inset Flex Noun
5828 status collapsed
5829
5830 \begin_layout Plain Layout
5831 Shift
5832 \end_layout
5833
5834 \end_inset
5835
5836  and permits you to bind keys to accented characters.
5837  You can also turn keys into dead-keys by binding them to something like 
5838 \begin_inset Flex Code
5839 status collapsed
5840
5841 \begin_layout Plain Layout
5842 usldead_cedilla
5843 \end_layout
5844
5845 \end_inset
5846
5847  and then binding this symbolic key to the corresponding \SpecialChar LyX
5848  command.
5849 \begin_inset Foot
5850 status collapsed
5851
5852 \begin_layout Plain Layout
5853 Note from 
5854 \noun on
5855 John Weiss
5856 \noun default
5857 :
5858  This is exactly what I do in my 
5859 \begin_inset Flex Code
5860 status collapsed
5861
5862 \begin_layout Plain Layout
5863 ~/.lyx/lyxrc
5864 \end_layout
5865
5866 \end_inset
5867
5868  and my 
5869 \begin_inset Flex Code
5870 status collapsed
5871
5872 \begin_layout Plain Layout
5873 ~/.xmodmap
5874 \end_layout
5875
5876 \end_inset
5877
5878  files.
5879  I have my 
5880 \begin_inset Flex Noun
5881 status collapsed
5882
5883 \begin_layout Plain Layout
5884 Scroll
5885 \begin_inset space ~
5886 \end_inset
5887
5888 Lock
5889 \end_layout
5890
5891 \end_inset
5892
5893  key set up as 
5894 \begin_inset Flex Code
5895 status collapsed
5896
5897 \begin_layout Plain Layout
5898 Mode_Shift
5899 \end_layout
5900
5901 \end_inset
5902
5903  and a bunch of these 
5904 \begin_inset Quotes eld
5905 \end_inset
5906
5907
5908 \begin_inset Flex Code
5909 status collapsed
5910
5911 \begin_layout Plain Layout
5912 usldead_*
5913 \end_layout
5914
5915 \end_inset
5916
5917
5918 \begin_inset Quotes erd
5919 \end_inset
5920
5921  symbolic keys bound such things as 
5922 \begin_inset Flex Noun
5923 status collapsed
5924
5925 \begin_layout Plain Layout
5926 Scroll
5927 \begin_inset space ~
5928 \end_inset
5929
5930 Lock-^
5931 \end_layout
5932
5933 \end_inset
5934
5935  and 
5936 \begin_inset Flex Noun
5937 status collapsed
5938
5939 \begin_layout Plain Layout
5940 Scroll
5941 \begin_inset space ~
5942 \end_inset
5943
5944 Lock-~
5945 \end_layout
5946
5947 \end_inset
5948
5949 .
5950  This is how I produce my accented characters.
5951 \end_layout
5952
5953 \end_inset
5954
5955  You can make just about anything into the 
5956 \begin_inset Flex Code
5957 status collapsed
5958
5959 \begin_layout Plain Layout
5960 Mode_Switch
5961 \end_layout
5962
5963 \end_inset
5964
5965  key:
5966  One of the 
5967 \begin_inset Flex Noun
5968 status collapsed
5969
5970 \begin_layout Plain Layout
5971 Ctrl-
5972 \end_layout
5973
5974 \end_inset
5975
5976  keys,
5977  a spare function key,
5978  etc.
5979  As for the \SpecialChar LyX
5980  commands that produce accents,
5981  check the entry for 
5982 \begin_inset Flex Code
5983 status collapsed
5984
5985 \begin_layout Plain Layout
5986 accent-acute
5987 \end_layout
5988
5989 \end_inset
5990
5991  in the 
5992 \emph on
5993 Reference Manual
5994 \emph default
5995 .
5996  You'll find the complete list there.
5997 \end_layout
5998
5999 \begin_layout Subsection
6000 Saving your Language Configuration
6001 \end_layout
6002
6003 \begin_layout Standard
6004 You can edit your preferences so that your desired language environment is automatically configured when \SpecialChar LyX
6005  starts up,
6006  via the 
6007 \begin_inset Flex Noun
6008 status collapsed
6009
6010 \begin_layout Plain Layout
6011 Edit\SpecialChar menuseparator
6012 Preferences
6013 \end_layout
6014
6015 \end_inset
6016
6017  dialog.
6018 \end_layout
6019
6020 \begin_layout Chapter
6021 Creating and Installing New Document Classes,
6022  Layouts,
6023  and Templates
6024 \begin_inset CommandInset label
6025 LatexCommand label
6026 name "cha:Installing-New-Document"
6027
6028 \end_inset
6029
6030
6031 \begin_inset Argument 1
6032 status collapsed
6033
6034 \begin_layout Plain Layout
6035 Installing New Document Classes
6036 \end_layout
6037
6038 \end_inset
6039
6040
6041 \end_layout
6042
6043 \begin_layout Standard
6044 In this chapter,
6045  we describe the procedures for creating and installing new \SpecialChar LyX
6046  layout and template files,
6047  as well as offer a refresher on correctly installing new \SpecialChar LaTeX
6048  document classes.
6049  
6050 \end_layout
6051
6052 \begin_layout Standard
6053 First,
6054  let us a say a few words about how one ought to think about the relation between \SpecialChar LyX
6055  and \SpecialChar LaTeX
6056 .
6057  The thing to understand is that,
6058  in a certain sense,
6059  \SpecialChar LyX
6060  doesn't know anything about \SpecialChar LaTeX
6061 .
6062  Indeed,
6063  from \SpecialChar LyX
6064 's point of view,
6065  \SpecialChar LaTeX
6066  is just one of several 
6067 \begin_inset Quotes eld
6068 \end_inset
6069
6070 backend formats
6071 \begin_inset Quotes erd
6072 \end_inset
6073
6074  in which it is capable of producing output.
6075  Other such formats are DocBook,
6076  plaintext,
6077  and XHTML.
6078  \SpecialChar LaTeX
6079  is,
6080  of course,
6081  a particularly important format,
6082  but very little of the information \SpecialChar LyX
6083  has about \SpecialChar LaTeX
6084  is actually contained in the program itself.
6085 \begin_inset Foot
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 Some commands are sufficiently complex that they are 
6090 \begin_inset Quotes eld
6091 \end_inset
6092
6093 hardcoded
6094 \begin_inset Quotes erd
6095 \end_inset
6096
6097  into \SpecialChar LyX
6098 .
6099  But the developers generally regard this as a Bad Thing.
6100 \end_layout
6101
6102 \end_inset
6103
6104  Rather,
6105  that information,
6106  even for the standard classes like 
6107 \begin_inset Flex Code
6108 status collapsed
6109
6110 \begin_layout Plain Layout
6111 article.cls
6112 \end_layout
6113
6114 \end_inset
6115
6116 ,
6117  is contained in `layout files'.
6118  Similarly,
6119  \SpecialChar LyX
6120  itself does not know much about DocBook or XHTML.
6121  What it knows is contained in layout files.
6122 \end_layout
6123
6124 \begin_layout Standard
6125 You can think of the layout file for a given document class as a translation manual between \SpecialChar LyX
6126  constructs—
6127 paragraphs with their corresponding styles,
6128  certain sorts of insets,
6129  etc—
6130 and the corresponding \SpecialChar LaTeX
6131 ,
6132  DocBook,
6133  or XHTML constructs.
6134  Almost everything \SpecialChar LyX
6135  knows about 
6136 \begin_inset Flex Code
6137 status collapsed
6138
6139 \begin_layout Plain Layout
6140 article.cls
6141 \end_layout
6142
6143 \end_inset
6144
6145 ,
6146  for example,
6147  is contained in the file 
6148 \begin_inset Flex Code
6149 status collapsed
6150
6151 \begin_layout Plain Layout
6152 article.layout
6153 \end_layout
6154
6155 \end_inset
6156
6157  and in various other files it includes.
6158  For this reason,
6159  anyone intending to write layout files should plan to study the existing files.
6160  A good place to start is with 
6161 \begin_inset Flex Code
6162 status collapsed
6163
6164 \begin_layout Plain Layout
6165 stdsections.inc
6166 \end_layout
6167
6168 \end_inset
6169
6170 ,
6171  which is included in 
6172 \begin_inset Flex Code
6173 status collapsed
6174
6175 \begin_layout Plain Layout
6176 article.layout
6177 \end_layout
6178
6179 \end_inset
6180
6181 ,
6182  
6183 \begin_inset Flex Code
6184 status collapsed
6185
6186 \begin_layout Plain Layout
6187 book.layout
6188 \end_layout
6189
6190 \end_inset
6191
6192 ,
6193  and many of the other layout files for document classes.
6194  This file is where sections and the like are defined:
6195  
6196 \begin_inset Flex Code
6197 status collapsed
6198
6199 \begin_layout Plain Layout
6200 stdsections.inc
6201 \end_layout
6202
6203 \end_inset
6204
6205  tells \SpecialChar LyX
6206  how paragraphs that are marked with the Section,
6207  Subsection,
6208  etc,
6209  styles can be translated into corresponding \SpecialChar LaTeX
6210 ,
6211  DocBook,
6212  and XHTML commands and tags.
6213  The 
6214 \begin_inset Flex Code
6215 status collapsed
6216
6217 \begin_layout Plain Layout
6218 article.layout
6219 \end_layout
6220
6221 \end_inset
6222
6223  file basically just includes several of these 
6224 \begin_inset Flex Code
6225 status collapsed
6226
6227 \begin_layout Plain Layout
6228 std*.inc
6229 \end_layout
6230
6231 \end_inset
6232
6233  files.
6234 \end_layout
6235
6236 \begin_layout Standard
6237 Defining the \SpecialChar LyX
6238 –\SpecialChar LaTeX
6239  correspondence is not the only thing layout files do,
6240  though.
6241  Their other job is to define how the \SpecialChar LyX
6242  constructs themselves will appear on-screen.
6243  The fact that layout files have these two jobs is often a source of confusion,
6244  because they are completely separate.
6245  Telling \SpecialChar LyX
6246  how to translate a certain paragraph style into \SpecialChar LaTeX
6247  does not tell \SpecialChar LyX
6248  how to display it;
6249  conversely,
6250  telling \SpecialChar LyX
6251  how to display a certain paragraph style does not tell \SpecialChar LyX
6252  how to translate it into \SpecialChar LaTeX
6253  (let alone tell \SpecialChar LaTeX
6254  how to display it).
6255  So,
6256  in general,
6257  when you define a new \SpecialChar LyX
6258  construct,
6259  you must always do two quite separate things:
6260  (i)
6261 \begin_inset space ~
6262 \end_inset
6263
6264 tell \SpecialChar LyX
6265  how to translate it into \SpecialChar LaTeX
6266  and (ii)
6267 \begin_inset space ~
6268 \end_inset
6269
6270 tell \SpecialChar LyX
6271  how to display it.
6272 \end_layout
6273
6274 \begin_layout Standard
6275 Much the same is true,
6276  of course,
6277  as regards \SpecialChar LyX
6278 's other backend formats,
6279  though XHTML is in some ways different,
6280  because in that case \SpecialChar LyX
6281  
6282 \emph on
6283 is
6284 \emph default
6285  able,
6286  to some extent,
6287  to use information about how it should display a paragraph on the screen to output information (in the form of CSS) about how the paragraph should be displayed in a browser.
6288  Even in this case,
6289  however,
6290  the distinction between what \SpecialChar LyX
6291  does internally and how things are rendered externally remains in force,
6292  and the two can be controlled separately.
6293  See 
6294 \begin_inset CommandInset ref
6295 LatexCommand ref
6296 reference "sec:Tags-for-XHTML"
6297 nolink "false"
6298
6299 \end_inset
6300
6301  for the details.
6302 \end_layout
6303
6304 \begin_layout Section
6305 Installing new \SpecialChar LaTeX
6306  files
6307 \end_layout
6308
6309 \begin_layout Standard
6310 Some installations may not include a \SpecialChar LaTeX
6311  package or class file that you would like to use within \SpecialChar LyX
6312 .
6313  For example,
6314  you might need Foil\SpecialChar TeX
6315 ,
6316  a package for preparing slides for overhead projectors.
6317  Modern \SpecialChar LaTeX
6318  distributions like \SpecialChar TeX
6319 Live (2008 or newer) or MiK\SpecialChar TeX
6320  provide a user interface for installing such packages.
6321  For example,
6322  with MiK\SpecialChar TeX
6323 ,
6324  you start the program 
6325 \begin_inset Quotes eld
6326 \end_inset
6327
6328 Package
6329 \begin_inset space ~
6330 \end_inset
6331
6332 Manager
6333 \begin_inset Quotes erd
6334 \end_inset
6335
6336  to get a list of available packages.
6337  To install one of them,
6338  right click on it or use the corresponding toolbar button.
6339 \end_layout
6340
6341 \begin_layout Standard
6342 If your \SpecialChar LaTeX
6343  distribution does not provide such a `package manager',
6344  or if the package is not available from your distribution,
6345  then follow these steps to install it manually:
6346 \end_layout
6347
6348 \begin_layout Enumerate
6349 Get the package from 
6350 \begin_inset CommandInset href
6351 LatexCommand href
6352 name "CTAN"
6353 target "http://www.ctan.org/"
6354 literal "false"
6355
6356 \end_inset
6357
6358  or wherever.
6359 \end_layout
6360
6361 \begin_layout Enumerate
6362 If the package contains a file with the ending 
6363 \begin_inset Quotes eld
6364 \end_inset
6365
6366
6367 \begin_inset Flex Code
6368 status collapsed
6369
6370 \begin_layout Plain Layout
6371 .ins
6372 \end_layout
6373
6374 \end_inset
6375
6376
6377 \begin_inset Quotes erd
6378 \end_inset
6379
6380  (is the case for Foil\SpecialChar TeX
6381 ) then open a console,
6382  change to the folder of this file and execute the command 
6383 \begin_inset Flex Code
6384 status collapsed
6385
6386 \begin_layout Plain Layout
6387 latex foiltex.ins
6388 \end_layout
6389
6390 \end_inset
6391
6392 .
6393  You have now unpacked the package and have all files to install it.
6394  Most \SpecialChar LaTeX
6395 -packages are not packed and you can skip this step.
6396 \end_layout
6397
6398 \begin_layout Enumerate
6399 Now you need to decide if the package should be available for all users or only for you.
6400 \end_layout
6401
6402 \begin_deeper
6403 \begin_layout Enumerate
6404 On *nix systems (Linux,
6405  OSX,
6406  etc.),
6407  if you want the new package to be available for all users on your system,
6408  then install it in your `local' \SpecialChar TeX
6409  tree,
6410  otherwise install it in your own `user' \SpecialChar TeX
6411  tree.
6412  Where these trees should be created,
6413  if they do not already exist,
6414  depends on your system.
6415  To find this out,
6416  look in the file 
6417 \begin_inset Flex Code
6418 status collapsed
6419
6420 \begin_layout Plain Layout
6421 texmf.cnf
6422 \end_layout
6423
6424 \end_inset
6425
6426 .
6427 \begin_inset Foot
6428 status collapsed
6429
6430 \begin_layout Plain Layout
6431 This is usually in the directory 
6432 \begin_inset Flex Code
6433 status collapsed
6434
6435 \begin_layout Plain Layout
6436 $TEXMF/web2c
6437 \end_layout
6438
6439 \end_inset
6440
6441 ,
6442  though you can execute the command 
6443 \begin_inset Flex Code
6444 status collapsed
6445
6446 \begin_layout Plain Layout
6447 kpsewhich texmf.cnf
6448 \end_layout
6449
6450 \end_inset
6451
6452  to locate it.
6453 \end_layout
6454
6455 \end_inset
6456
6457  The location of the `local' \SpecialChar TeX
6458  tree is defined by the 
6459 \begin_inset Flex Code
6460 status collapsed
6461
6462 \begin_layout Plain Layout
6463 TEXMFLOCAL
6464 \end_layout
6465
6466 \end_inset
6467
6468  variable;
6469  this is usually somewhere like 
6470 \begin_inset Flex Code
6471 status collapsed
6472
6473 \begin_layout Plain Layout
6474 /usr/local/share/texmf
6475 \end_layout
6476
6477 \end_inset
6478
6479  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6480 Live distribution.
6481  The location of the `user' \SpecialChar TeX
6482  tree is defined by 
6483 \begin_inset Flex Code
6484 status collapsed
6485
6486 \begin_layout Plain Layout
6487 TEXMFHOME
6488 \end_layout
6489
6490 \end_inset
6491
6492  and is commonly 
6493 \begin_inset Flex Code
6494 status collapsed
6495
6496 \begin_layout Plain Layout
6497 $HOME/texmf
6498 \end_layout
6499
6500 \end_inset
6501
6502  or 
6503 \begin_inset Flex Code
6504 status collapsed
6505
6506 \begin_layout Plain Layout
6507
6508 \family sans
6509 $HOME/.texliveXXXX
6510 \end_layout
6511
6512 \end_inset
6513
6514 .
6515  (If these variables are not predefined,
6516  you have to define them.) You'll probably need root permissions to create or modify the `local' tree,
6517  but not for your `user' tree.
6518 \begin_inset Newline newline
6519 \end_inset
6520
6521 In general,
6522  it is recommended to install in the user tree because your user will not be modified or even overwritten when you upgrade your system.
6523  It will typically also be backed up together with everything else when you backup your home directory (which,
6524  of course,
6525  you do on a regular basis).
6526 \end_layout
6527
6528 \begin_layout Enumerate
6529 On Windows,
6530  if you want the new package to be available for all users on your system,
6531  change to the folder where \SpecialChar LaTeX
6532  is installed and then change to the subfolder 
6533 \begin_inset Flex Code
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537 ~
6538 \backslash
6539 tex
6540 \backslash
6541 latex
6542 \end_layout
6543
6544 \end_inset
6545
6546 .
6547  (For MiK\SpecialChar TeX
6548 ,
6549  this would be by default the folder 
6550 \begin_inset Flex Code
6551 status collapsed
6552
6553 \begin_layout Plain Layout
6554 ~:
6555 \backslash
6556 Programs
6557 \backslash
6558 MiKTeX
6559 \backslash
6560 tex
6561 \backslash
6562 latex
6563 \end_layout
6564
6565 \end_inset
6566
6567 .)
6568 \begin_inset Foot
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 Note that this will be the correct path only on English installations.
6573  On a German one,
6574  it would be 
6575 \begin_inset Flex Code
6576 status collapsed
6577
6578 \begin_layout Plain Layout
6579 ~:
6580 \backslash
6581 Programme
6582 \backslash
6583 MiKTeX
6584 \backslash
6585 tex
6586 \backslash
6587 latex
6588 \end_layout
6589
6590 \end_inset
6591
6592 ,
6593  and similarly for other languages.
6594 \end_layout
6595
6596 \end_inset
6597
6598  Create there a new folder 
6599 \begin_inset Flex Code
6600 status collapsed
6601
6602 \begin_layout Plain Layout
6603 foiltex
6604 \end_layout
6605
6606 \end_inset
6607
6608  and copy all files of the package into it.
6609  
6610 \begin_inset Newline newline
6611 \end_inset
6612
6613 If the package should only available for you or you don't have admin permissions,
6614  do the same,
6615  but in the local \SpecialChar LaTeX
6616  folder.
6617  E.
6618 \begin_inset space \thinspace{}
6619 \end_inset
6620
6621 g.,
6622  for MiK\SpecialChar TeX
6623
6624 \begin_inset space ~
6625 \end_inset
6626
6627 2.8 under Windows XP,
6628  this would be the folder:
6629 \begin_inset Newline newline
6630 \end_inset
6631
6632
6633 \family sans
6634
6635 \begin_inset Flex Code
6636 status collapsed
6637
6638 \begin_layout Plain Layout
6639 ~:
6640 \backslash
6641 Documents and Settings
6642 \backslash
6643 <username>
6644 \backslash
6645 Application Data
6646 \backslash
6647
6648 \end_layout
6649
6650 \end_inset
6651
6652
6653 \begin_inset Newline newline
6654 \end_inset
6655
6656
6657 \family default
6658
6659 \begin_inset Phantom HPhantom
6660 status open
6661
6662 \begin_layout Plain Layout
6663
6664 \family sans
6665 ~:
6666 \backslash
6667
6668 \end_layout
6669
6670 \end_inset
6671
6672
6673 \begin_inset Flex Code
6674 status collapsed
6675
6676 \begin_layout Plain Layout
6677 MiKTeX
6678 \backslash
6679 2.8
6680 \backslash
6681 tex
6682 \backslash
6683 latex
6684 \end_layout
6685
6686 \end_inset
6687
6688
6689 \begin_inset Newline newline
6690 \end_inset
6691
6692 On Vista,
6693  it would be:
6694 \begin_inset Newline newline
6695 \end_inset
6696
6697
6698 \begin_inset Flex Code
6699 status collapsed
6700
6701 \begin_layout Plain Layout
6702 ~:
6703 \backslash
6704 Users
6705 \backslash
6706 <username>
6707 \backslash
6708 AppData
6709 \backslash
6710 Roaming
6711 \backslash
6712 2.8
6713 \backslash
6714 MiKTeX
6715 \backslash
6716 tex
6717 \backslash
6718 latex
6719 \end_layout
6720
6721 \end_inset
6722
6723
6724 \end_layout
6725
6726 \end_deeper
6727 \begin_layout Enumerate
6728 Now one only need to tell \SpecialChar LaTeX
6729  that there are new files.
6730  This depends on the used \SpecialChar LaTeX
6731 -Distribution:
6732 \end_layout
6733
6734 \begin_deeper
6735 \begin_layout Enumerate
6736 For \SpecialChar TeX
6737 Live execute the command 
6738 \begin_inset Flex Code
6739 status collapsed
6740
6741 \begin_layout Plain Layout
6742 texhash
6743 \end_layout
6744
6745 \end_inset
6746
6747  from a console.
6748  If you installed the package for all users,
6749  then you will probably need to have root permissions for that.
6750 \end_layout
6751
6752 \begin_layout Enumerate
6753 For MiK\SpecialChar TeX
6754 ,
6755  if you have installed the package for all users,
6756  start the program 
6757 \begin_inset Quotes eld
6758 \end_inset
6759
6760 Settings
6761 \begin_inset space ~
6762 \end_inset
6763
6764 (Admin)
6765 \begin_inset Quotes erd
6766 \end_inset
6767
6768  and press the button marked 
6769 \begin_inset Quotes eld
6770 \end_inset
6771
6772 Refresh FNDB
6773 \begin_inset Quotes erd
6774 \end_inset
6775
6776 .
6777  Otherwise start the program 
6778 \begin_inset Quotes eld
6779 \end_inset
6780
6781 Settings
6782 \begin_inset Quotes erd
6783 \end_inset
6784
6785  and do the same.
6786 \end_layout
6787
6788 \end_deeper
6789 \begin_layout Enumerate
6790 Finally,
6791  you need to tell \SpecialChar LyX
6792  that there are new packages available.
6793  So,
6794  in \SpecialChar LyX
6795 ,
6796  use the menu 
6797 \begin_inset Flex Noun
6798 status collapsed
6799
6800 \begin_layout Plain Layout
6801 Tools
6802 \family sans
6803 \SpecialChar menuseparator
6804 Reconfigure
6805 \end_layout
6806
6807 \end_inset
6808
6809  and then restart \SpecialChar LyX
6810 .
6811 \end_layout
6812
6813 \begin_layout Standard
6814 Now the package is installed.
6815  In our example,
6816  the document class 
6817 \begin_inset Flex Code
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 FoilTex
6822 \end_layout
6823
6824 \end_inset
6825
6826  will now be available under 
6827 \begin_inset Flex Noun
6828 status collapsed
6829
6830 \begin_layout Plain Layout
6831 Document\SpecialChar menuseparator
6832 Settings\SpecialChar menuseparator
6833 Document Class
6834 \end_layout
6835
6836 \end_inset
6837
6838  (in the 
6839 \begin_inset Quotes eld
6840 \end_inset
6841
6842 Presentations
6843 \begin_inset Quotes erd
6844 \end_inset
6845
6846  category).
6847  
6848 \end_layout
6849
6850 \begin_layout Standard
6851 If you would like to use a \SpecialChar LaTeX
6852  document class that is not even listed in the menu 
6853 \begin_inset Flex Noun
6854 status collapsed
6855
6856 \begin_layout Plain Layout
6857 Document\SpecialChar menuseparator
6858 Settings\SpecialChar menuseparator
6859 Document Class
6860 \end_layout
6861
6862 \end_inset
6863
6864 ,
6865  then you need to create a `layout' file for it.
6866  That is the topic of the next section.
6867 \end_layout
6868
6869 \begin_layout Section
6870 Types of layout files
6871 \end_layout
6872
6873 \begin_layout Standard
6874 This section describes the various sorts of \SpecialChar LyX
6875  files that contain layout information.
6876  These files describe various paragraph and character styles,
6877  determining how \SpecialChar LyX
6878  should display them and how they should be translated into \SpecialChar LaTeX
6879 ,
6880  DocBook,
6881  XHTML,
6882  or whatever output format is being used.
6883  
6884 \end_layout
6885
6886 \begin_layout Standard
6887 We shall try to provide a thorough description of the process of writing layout files here.
6888  However,
6889  there are so many different types of documents supported even by just \SpecialChar LaTeX
6890  that we can't hope to cover every different possibility or problem you might encounter.
6891  The \SpecialChar LyX
6892  users' list is frequented by people with lots of experience with layout design who are willing to share what they've learned,
6893  so please feel free to ask questions there.
6894 \end_layout
6895
6896 \begin_layout Standard
6897 As you prepare to write a new layout,
6898  it is extremely helpful to look at the layouts distributed with \SpecialChar LyX
6899 .
6900  If you write a \SpecialChar LyX
6901  layout for a \SpecialChar LaTeX
6902  document class that might also be used by others,
6903  or write a module that might be useful to others,
6904  then you should consider posting your layout to the 
6905 \begin_inset CommandInset href
6906 LatexCommand href
6907 name "layout section on the LyX wiki"
6908 target "https://wiki.lyx.org/Layouts/Layouts"
6909 literal "false"
6910
6911 \end_inset
6912
6913  or even to the \SpecialChar LyX
6914  developers' list,
6915  so that it might be included in \SpecialChar LyX
6916  itself.
6917 \begin_inset Foot
6918 status collapsed
6919
6920 \begin_layout Plain Layout
6921 Note that \SpecialChar LyX
6922  is licensed under the General Public License,
6923  so any material that is contributed to \SpecialChar LyX
6924  must be similarly licensed.
6925 \end_layout
6926
6927 \end_inset
6928
6929
6930 \end_layout
6931
6932 \begin_layout Subsection
6933 Layout modules
6934 \begin_inset CommandInset label
6935 LatexCommand label
6936 name "subsec:Layout-modules"
6937
6938 \end_inset
6939
6940
6941 \end_layout
6942
6943 \begin_layout Standard
6944 We have spoken to this point about `layout files'.
6945  But there are different sorts of files that contain layout information.
6946  Layout files,
6947  strictly so called,
6948  have the 
6949 \begin_inset Flex Code
6950 status collapsed
6951
6952 \begin_layout Plain Layout
6953 .layout
6954 \end_layout
6955
6956 \end_inset
6957
6958  extension and provide \SpecialChar LyX
6959  with information about document classes.
6960  Since \SpecialChar LyX
6961  1.6 layout information can also be contained in layout 
6962 \emph on
6963 modules
6964 \emph default
6965 ,
6966  which have the 
6967 \begin_inset Flex Code
6968 status collapsed
6969
6970 \begin_layout Plain Layout
6971 .module
6972 \end_layout
6973
6974 \end_inset
6975
6976  extension.
6977  Modules are to \SpecialChar LaTeX
6978  packages much as layouts are to \SpecialChar LaTeX
6979  classes,
6980  and some modules—
6981 such as the 
6982 \begin_inset Flex Code
6983 status collapsed
6984
6985 \begin_layout Plain Layout
6986 endnotes
6987 \end_layout
6988
6989 \end_inset
6990
6991  module—
6992 specifically provide support for one package.
6993  In a sense,
6994  layout modules are similar to included
6995 \begin_inset Foot
6996 status collapsed
6997
6998 \begin_layout Plain Layout
6999 These can have any extension,
7000  but by convention have the 
7001 \begin_inset Flex Code
7002 status collapsed
7003
7004 \begin_layout Plain Layout
7005 .inc
7006 \end_layout
7007
7008 \end_inset
7009
7010  extension.
7011 \end_layout
7012
7013 \end_inset
7014
7015  files—
7016 files like 
7017 \begin_inset Flex Code
7018 status collapsed
7019
7020 \begin_layout Plain Layout
7021 stdsections.inc
7022 \end_layout
7023
7024 \end_inset
7025
7026
7027 in that modules are not specific to a given document class but may be used with many different classes.
7028  The difference is that using an included file with 
7029 \begin_inset Flex Code
7030 status collapsed
7031
7032 \begin_layout Plain Layout
7033 article.cls
7034 \end_layout
7035
7036 \end_inset
7037
7038  requires editing that file.
7039  Modules,
7040  by contrast,
7041  are selected in the 
7042 \begin_inset Flex Noun
7043 status collapsed
7044
7045 \begin_layout Plain Layout
7046 Document\SpecialChar menuseparator
7047 Settings
7048 \end_layout
7049
7050 \end_inset
7051
7052  dialog.
7053 \end_layout
7054
7055 \begin_layout Standard
7056 Building modules is the easiest way to get started with layout editing,
7057  since it can be as simple as adding a single new paragraph style or flex inset.
7058  But modules may,
7059  in principle,
7060  contain anything a layout file can contain.
7061 \end_layout
7062
7063 \begin_layout Standard
7064 After creating a new module and copying it to the 
7065 \begin_inset Flex Code
7066 status collapsed
7067
7068 \begin_layout Plain Layout
7069 layouts/
7070 \end_layout
7071
7072 \end_inset
7073
7074  folder,
7075  you will need to reconfigure and then restart \SpecialChar LyX
7076  for the module to appear in the menu.
7077  However,
7078  changes you make to the module will be seen immediately,
7079  if you open 
7080 \begin_inset Flex Noun
7081 status collapsed
7082
7083 \begin_layout Plain Layout
7084 Document\SpecialChar menuseparator
7085 Settings
7086 \end_layout
7087
7088 \end_inset
7089
7090 ,
7091  highlight something,
7092  and then hit 
7093 \begin_inset Quotes eld
7094 \end_inset
7095
7096 OK
7097 \begin_inset Quotes erd
7098 \end_inset
7099
7100 .
7101  
7102 \emph on
7103 It is strongly recommended that you save your work before doing this
7104 \emph default
7105 .
7106  In fact,
7107  
7108 \emph on
7109 it is strongly recommended that you not attempt to edit modules while simultaneously working on actual documents
7110 \emph default
7111 .
7112  Though of course the developers strive to keep \SpecialChar LyX
7113  stable in such situations,
7114  syntax errors and the like in your module file could cause strange behavior.
7115 \end_layout
7116
7117 \begin_layout Subsubsection
7118 Local Layout
7119 \end_layout
7120
7121 \begin_layout Standard
7122 Modules are to \SpecialChar LyX
7123  as packages are to \SpecialChar LaTeX
7124 .
7125  Sometimes,
7126  however,
7127  you find yourself wanting a specific inset or character style just for one document and writing a module that will also be available to other documents makes little sense.
7128  What you need is \SpecialChar LyX
7129 's 
7130 \begin_inset Quotes eld
7131 \end_inset
7132
7133 Local Layout
7134 \begin_inset Quotes erd
7135 \end_inset
7136
7137 .
7138 \end_layout
7139
7140 \begin_layout Standard
7141 You will find it under 
7142 \family sans
7143 Document\SpecialChar menuseparator
7144 Settings\SpecialChar menuseparator
7145 Local Layout
7146 \family default
7147 .
7148  The large text box allows you to enter anything that you might enter in a layout file or module.
7149  You can think of a document's local layout,
7150  in fact,
7151  as a module that belongs just to it.
7152  So,
7153  in particular,
7154  you must enter a 
7155 \begin_inset Flex Code
7156 status collapsed
7157
7158 \begin_layout Plain Layout
7159 Format
7160 \end_layout
7161
7162 \end_inset
7163
7164  tag.
7165  Any format is acceptable,
7166  but one would normally use the format current at the time.
7167  (In \SpecialChar LyX
7168  
7169 \begin_inset Info
7170 type  "lyxinfo"
7171 arg   "version"
7172 \end_inset
7173
7174 ,
7175  the current layout format is 
7176 \begin_inset Info
7177 type  "lyxinfo"
7178 arg   "layoutformat"
7179 \end_inset
7180
7181 .)
7182 \end_layout
7183
7184 \begin_layout Standard
7185 When you have entered something in the 
7186 \begin_inset Flex Code
7187 status collapsed
7188
7189 \begin_layout Plain Layout
7190 Local Layout
7191 \end_layout
7192
7193 \end_inset
7194
7195  pane,
7196  \SpecialChar LyX
7197  will enable the 
7198 \begin_inset Quotes eld
7199 \end_inset
7200
7201 Validate
7202 \begin_inset Quotes erd
7203 \end_inset
7204
7205  button at the bottom.
7206  Clicking this button will cause \SpecialChar LyX
7207  to determine whether what you have entered is valid layout information for the chosen format.
7208  \SpecialChar LyX
7209  will report the result but,
7210  unfortunately,
7211  will not tell you what errors there might have been.
7212  These will be written to the terminal,
7213  however,
7214  if \SpecialChar LyX
7215  is started from a terminal.
7216  You will not be permitted to save your local layout until you have entered something valid.
7217 \end_layout
7218
7219 \begin_layout Standard
7220 The warnings at the end of the previous section apply here,
7221  too.
7222  Do not play with local layout while you are actually working,
7223  especially if you have not saved your document.
7224  That said,
7225  using local layout with a test document can be a very convenient way to try out layout ideas,
7226  or even to start developing a module.
7227 \end_layout
7228
7229 \begin_layout Subsection
7230 Layout for 
7231 \begin_inset Flex Noun
7232 status collapsed
7233
7234 \begin_layout Plain Layout
7235 .sty
7236 \end_layout
7237
7238 \end_inset
7239
7240  files
7241 \end_layout
7242
7243 \begin_layout Standard
7244 There are two situations you are likely to encounter when wanting to support a new \SpecialChar LaTeX
7245  document class,
7246  involving style (
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 .sty
7252 \end_layout
7253
7254 \end_inset
7255
7256 ) files and \SpecialChar LaTeX2e
7257  class (
7258 \begin_inset Flex Code
7259 status collapsed
7260
7261 \begin_layout Plain Layout
7262 .cls
7263 \end_layout
7264
7265 \end_inset
7266
7267 ) .
7268  Supporting a style file is usually fairly easy.
7269  Supporting a new class file is a bit harder.
7270  We'll discuss the former in this section and the latter in the next.
7271  
7272 \end_layout
7273
7274 \begin_layout Standard
7275 The easier case is the one in which your new document class is provided as a style file that is to be used in conjunction with an already supported document class.
7276  For the sake of the example,
7277  we'll assume that the style file is called 
7278 \begin_inset Flex Noun
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282 myclass.sty
7283 \end_layout
7284
7285 \end_inset
7286
7287  and that it is meant to be used with 
7288 \begin_inset Flex Noun
7289 status collapsed
7290
7291 \begin_layout Plain Layout
7292 report.cls
7293 \end_layout
7294
7295 \end_inset
7296
7297 ,
7298  which is a standard class.
7299  
7300 \end_layout
7301
7302 \begin_layout Standard
7303 Start by copying the existing class's layout file into your local directory:
7304 \begin_inset Foot
7305 status collapsed
7306
7307 \begin_layout Plain Layout
7308 Of course,
7309  which directory is your local directory will vary by platform,
7310  and \SpecialChar LyX
7311  allows you to specify your local directory on startup,
7312  too,
7313  using the 
7314 \begin_inset Flex Code
7315 status collapsed
7316
7317 \begin_layout Plain Layout
7318 -userdir
7319 \end_layout
7320
7321 \end_inset
7322
7323  option.
7324 \end_layout
7325
7326 \end_inset
7327
7328
7329 \end_layout
7330
7331 \begin_layout LyX-Code
7332 cp report.layout ~/.lyx/layouts/myclass.layout
7333 \end_layout
7334
7335 \begin_layout Standard
7336 Then edit 
7337 \begin_inset Flex Code
7338 status collapsed
7339
7340 \begin_layout Plain Layout
7341 myclass.layout
7342 \end_layout
7343
7344 \end_inset
7345
7346  and change the line:
7347  
7348 \end_layout
7349
7350 \begin_layout LyX-Code
7351
7352 \backslash
7353 DeclareLaTeXClass{Report (Standard Class)}
7354 \end_layout
7355
7356 \begin_layout Standard
7357 to read
7358 \end_layout
7359
7360 \begin_layout LyX-Code
7361
7362 \backslash
7363 DeclareLaTeXClass[report,
7364  myclass.sty]{Report (My Class)}
7365 \end_layout
7366
7367 \begin_layout Standard
7368 Then add:
7369 \end_layout
7370
7371 \begin_layout LyX-Code
7372 Preamble 
7373 \begin_inset Newline newline
7374 \end_inset
7375
7376     
7377 \backslash
7378 usepackage{myclass}
7379 \begin_inset Newline newline
7380 \end_inset
7381
7382 EndPreamble
7383 \end_layout
7384
7385 \begin_layout Standard
7386 near the top of the file.
7387 \end_layout
7388
7389 \begin_layout Standard
7390 Start \SpecialChar LyX
7391  and select 
7392 \begin_inset Flex Noun
7393 status collapsed
7394
7395 \begin_layout Plain Layout
7396 Tools\SpecialChar menuseparator
7397 Reconfigure
7398 \end_layout
7399
7400 \end_inset
7401
7402 .
7403  Then restart \SpecialChar LyX
7404  and try creating a new document.
7405  You should see "
7406 \begin_inset Flex Noun
7407 status collapsed
7408
7409 \begin_layout Plain Layout
7410 Report (My Class)
7411 \end_layout
7412
7413 \end_inset
7414
7415 " as a document class option in the 
7416 \begin_inset Flex Noun
7417 status collapsed
7418
7419 \begin_layout Plain Layout
7420 Document\SpecialChar menuseparator
7421 Settings
7422 \end_layout
7423
7424 \end_inset
7425
7426  dialog.
7427  It is likely that some of the sectioning commands and such in your new class will work differently from how they worked in the base class—
7428
7429 \begin_inset Flex Code
7430 status collapsed
7431
7432 \begin_layout Plain Layout
7433 report
7434 \end_layout
7435
7436 \end_inset
7437
7438  in this example—
7439 so you can fiddle around with the settings for the different sections if you wish.
7440  The layout information for sections is contained in 
7441 \begin_inset Flex Code
7442 status collapsed
7443
7444 \begin_layout Plain Layout
7445 stdsections.inc
7446 \end_layout
7447
7448 \end_inset
7449
7450 ,
7451  but you do not need to copy and change this file.
7452  Instead,
7453  you can simply add your changes to your layout file,
7454  after the line 
7455 \begin_inset Flex Code
7456 status collapsed
7457
7458 \begin_layout Plain Layout
7459 Input stdclass.inc
7460 \end_layout
7461
7462 \end_inset
7463
7464 ,
7465  which itself includes 
7466 \begin_inset Flex Code
7467 status collapsed
7468
7469 \begin_layout Plain Layout
7470 stdsections.inc
7471 \end_layout
7472
7473 \end_inset
7474
7475 .
7476  For example,
7477  you might add these lines:
7478 \end_layout
7479
7480 \begin_layout LyX-Code
7481 Style Chapter
7482 \end_layout
7483
7484 \begin_layout LyX-Code
7485     Font
7486 \end_layout
7487
7488 \begin_layout LyX-Code
7489         Family Sans
7490 \end_layout
7491
7492 \begin_layout LyX-Code
7493     EndFont
7494 \end_layout
7495
7496 \begin_layout LyX-Code
7497 End
7498 \end_layout
7499
7500 \begin_layout Standard
7501 to change the font for chapter headings to sans-serif.
7502  This will override (or,
7503  in this case,
7504  add to) the existing declaration for the Chapter style.
7505  
7506 \end_layout
7507
7508 \begin_layout Standard
7509 Your new package may also provide commands or environments not present in the base class.
7510  In this case,
7511  you will want to add these to the layout file.
7512  See 
7513 \begin_inset CommandInset ref
7514 LatexCommand ref
7515 reference "sec:TextClass"
7516 nolink "false"
7517
7518 \end_inset
7519
7520  for information on how to do so.
7521 \end_layout
7522
7523 \begin_layout Standard
7524 If 
7525 \begin_inset Flex Noun
7526 status collapsed
7527
7528 \begin_layout Plain Layout
7529 myclass.sty
7530 \end_layout
7531
7532 \end_inset
7533
7534  can be used with several different document classes,
7535  and even if it cannot,
7536  you might find it easiest just to write a module that you can load with the base class.
7537  The simplest possible such module would be:
7538 \end_layout
7539
7540 \begin_layout LyX-Code
7541 #
7542 \backslash
7543 DeclareLyXModule{My Class} 
7544 \end_layout
7545
7546 \begin_layout LyX-Code
7547 #DescriptionBegin 
7548 \end_layout
7549
7550 \begin_layout LyX-Code
7551 #Support for myclass.sty.
7552 \end_layout
7553
7554 \begin_layout LyX-Code
7555 #DescriptionEnd
7556 \begin_inset Newline newline
7557 \end_inset
7558
7559
7560 \end_layout
7561
7562 \begin_layout LyX-Code
7563 Format 
7564 \begin_inset Info
7565 type  "lyxinfo"
7566 arg   "layoutformat"
7567 \end_inset
7568
7569
7570 \begin_inset Newline newline
7571 \end_inset
7572
7573
7574 \end_layout
7575
7576 \begin_layout LyX-Code
7577 Preamble
7578 \begin_inset Newline newline
7579 \end_inset
7580
7581     
7582 \backslash
7583 usepackage{myclass}
7584 \begin_inset Newline newline
7585 \end_inset
7586
7587 EndPreamble
7588 \end_layout
7589
7590 \begin_layout Standard
7591 A more complex module might modify the behavior of some existing constructs or define some new ones.
7592  Again,
7593  see 
7594 \begin_inset CommandInset ref
7595 LatexCommand ref
7596 reference "sec:TextClass"
7597 nolink "false"
7598
7599 \end_inset
7600
7601  for discussion.
7602 \end_layout
7603
7604 \begin_layout Subsection
7605 Layout for 
7606 \begin_inset Flex Noun
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610 .cls
7611 \end_layout
7612
7613 \end_inset
7614
7615  files
7616 \end_layout
7617
7618 \begin_layout Standard
7619 There are two possibilities here.
7620  One is that the class file is itself based upon an existing document class.
7621  For example,
7622  many thesis classes are based upon 
7623 \begin_inset Flex Noun
7624 status collapsed
7625
7626 \begin_layout Plain Layout
7627 book.cls
7628 \end_layout
7629
7630 \end_inset
7631
7632 .
7633  To see whether yours is,
7634  look for a line like
7635 \end_layout
7636
7637 \begin_layout LyX-Code
7638
7639 \backslash
7640 LoadClass{book}
7641 \end_layout
7642
7643 \begin_layout Standard
7644 in the file.
7645  If so,
7646  then you may proceed largely as in the previous section,
7647  though the 
7648 \begin_inset Flex Code
7649 status collapsed
7650
7651 \begin_layout Plain Layout
7652 Declare\SpecialChar LaTeX
7653 Class
7654 \end_layout
7655
7656 \end_inset
7657
7658  line will be different.
7659  If your new class is 
7660 \begin_inset Flex Code
7661 status collapsed
7662
7663 \begin_layout Plain Layout
7664 thesis
7665 \end_layout
7666
7667 \end_inset
7668
7669  and it is based upon 
7670 \begin_inset Flex Code
7671 status collapsed
7672
7673 \begin_layout Plain Layout
7674 book
7675 \end_layout
7676
7677 \end_inset
7678
7679 ,
7680  then the line should read:
7681 \begin_inset Foot
7682 status collapsed
7683
7684 \begin_layout Plain Layout
7685 And it will be easiest if you save the file to 
7686 \begin_inset Flex Code
7687 status collapsed
7688
7689 \begin_layout Plain Layout
7690 thesis.layout
7691 \end_layout
7692
7693 \end_inset
7694
7695 :
7696  \SpecialChar LyX
7697  assumes that the document class has the same name as the layout file.
7698  
7699 \end_layout
7700
7701 \end_inset
7702
7703
7704 \end_layout
7705
7706 \begin_layout LyX-Code
7707
7708 \backslash
7709 DeclareLaTeXClass[thesis,book]{thesis}
7710 \end_layout
7711
7712 \begin_layout Standard
7713 If,
7714  on the other hand,
7715  the new class is not based upon an existing class,
7716  you will probably have to 
7717 \begin_inset Quotes eld
7718 \end_inset
7719
7720 roll your own
7721 \begin_inset Quotes erd
7722 \end_inset
7723
7724  layout.
7725  We strongly suggest copying an existing layout file which uses a similar \SpecialChar LaTeX
7726  class and then modifying it,
7727  if you can do so.
7728  At least use an existing file as a starting point so you can find out what items you need to worry about.
7729  Again,
7730  the specifics are covered below.
7731 \end_layout
7732
7733 \begin_layout Subsection
7734 Creating templates
7735 \begin_inset CommandInset label
7736 LatexCommand label
7737 name "subsec:Creating-Templates"
7738
7739 \end_inset
7740
7741
7742 \end_layout
7743
7744 \begin_layout Standard
7745 Once you have written a layout file for a new document class,
7746  you might want to consider writing a 
7747 \emph on
7748 template
7749 \emph default
7750  for it,
7751  too.
7752  A template acts as a kind of tutorial for your layout,
7753  showing how it might be used,
7754  though containing dummy content.
7755  You can of course look at the various templates included with \SpecialChar LyX
7756  for ideas.
7757 \end_layout
7758
7759 \begin_layout Standard
7760 Templates are created just like usual documents:
7761  using \SpecialChar LyX
7762 .
7763  The only difference is that usual documents contain all possible settings,
7764  including the font scheme and the paper size.
7765  Usually a user doesn't want a template to overwrite his preferred settings for such parameters.
7766  For that reason,
7767  the designer of a template should remove the corresponding commands like 
7768 \begin_inset Flex Code
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772
7773 \backslash
7774 font_roman
7775 \end_layout
7776
7777 \end_inset
7778
7779  or 
7780 \begin_inset Flex Code
7781 status collapsed
7782
7783 \begin_layout Plain Layout
7784
7785 \backslash
7786 papersize
7787 \end_layout
7788
7789 \end_inset
7790
7791  from the template \SpecialChar LyX
7792  file.
7793  This can be done with any simple text-editor,
7794  for example 
7795 \begin_inset Flex Code
7796 status collapsed
7797
7798 \begin_layout Plain Layout
7799 vi
7800 \end_layout
7801
7802 \end_inset
7803
7804  or 
7805 \begin_inset Flex Code
7806 status collapsed
7807
7808 \begin_layout Plain Layout
7809 notepad
7810 \end_layout
7811
7812 \end_inset
7813
7814 .
7815 \end_layout
7816
7817 \begin_layout Standard
7818 Put the edited template files you create in 
7819 \begin_inset Flex Code
7820 status collapsed
7821
7822 \begin_layout Plain Layout
7823 UserDir/templates/
7824 \end_layout
7825
7826 \end_inset
7827
7828 ,
7829  copy the ones you use from the global template directory in 
7830 \begin_inset Flex Code
7831 status collapsed
7832
7833 \begin_layout Plain Layout
7834 LyXDir/templates/
7835 \end_layout
7836
7837 \end_inset
7838
7839  to the same place,
7840  and redefine the template path in the 
7841 \begin_inset Flex Noun
7842 status collapsed
7843
7844 \begin_layout Plain Layout
7845 Tools\SpecialChar menuseparator
7846 Preferences\SpecialChar menuseparator
7847 Paths
7848 \end_layout
7849
7850 \end_inset
7851
7852  dialog.
7853 \end_layout
7854
7855 \begin_layout Standard
7856 Note,
7857  by the way,
7858  that there is a template which has a particular meaning:
7859 \begin_inset Newline linebreak
7860 \end_inset
7861
7862
7863 \begin_inset Flex Code
7864 status collapsed
7865
7866 \begin_layout Plain Layout
7867 defaults.lyx
7868 \end_layout
7869
7870 \end_inset
7871
7872 .
7873  This template is loaded every time you create a new document with 
7874 \begin_inset Flex Noun
7875 status collapsed
7876
7877 \begin_layout Plain Layout
7878 File\SpecialChar menuseparator
7879 New
7880 \end_layout
7881
7882 \end_inset
7883
7884  in order to provide useful defaults.
7885  To create this template from inside \SpecialChar LyX
7886 ,
7887  all you have to do is to open a document with the correct settings,
7888  and use the 
7889 \begin_inset Flex Noun
7890 status collapsed
7891
7892 \begin_layout Plain Layout
7893 Save as Document Defaults
7894 \end_layout
7895
7896 \end_inset
7897
7898  button.
7899 \end_layout
7900
7901 \begin_layout Subsection
7902 Upgrading old layout files
7903 \end_layout
7904
7905 \begin_layout Standard
7906 The format of layout files changes with each \SpecialChar LyX
7907  release,
7908  so old layout files need to be converted to the new format.
7909  If \SpecialChar LyX
7910  reads a layout file in an older format,
7911  it automatically calls the script 
7912 \begin_inset Flex Code
7913 status collapsed
7914
7915 \begin_layout Plain Layout
7916 layout2layout.py
7917 \end_layout
7918
7919 \end_inset
7920
7921  to convert it to a temporary file in current format.
7922  The original file is left untouched.
7923  If you use the layout file often,
7924  then,
7925  you may want to convert it permanently,
7926  so that \SpecialChar LyX
7927  does not have to do so itself every time.
7928  To do this,
7929  you can call the converter manually:
7930 \end_layout
7931
7932 \begin_layout Enumerate
7933 rename the file 
7934 \begin_inset Flex Code
7935 status collapsed
7936
7937 \begin_layout Plain Layout
7938 myclass.layout
7939 \end_layout
7940
7941 \end_inset
7942
7943  to 
7944 \begin_inset Flex Code
7945 status collapsed
7946
7947 \begin_layout Plain Layout
7948 myclass.old
7949 \end_layout
7950
7951 \end_inset
7952
7953
7954 \end_layout
7955
7956 \begin_layout Enumerate
7957 Call the command
7958 \begin_inset Newline newline
7959 \end_inset
7960
7961
7962 \begin_inset Flex Code
7963 status collapsed
7964
7965 \begin_layout Plain Layout
7966 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7967 \end_layout
7968
7969 \end_inset
7970
7971
7972 \begin_inset Newline newline
7973 \end_inset
7974
7975 where 
7976 \begin_inset Flex Code
7977 status collapsed
7978
7979 \begin_layout Plain Layout
7980 LyXDir
7981 \end_layout
7982
7983 \end_inset
7984
7985  is the name of your \SpecialChar LyX
7986  system directory.
7987 \end_layout
7988
7989 \begin_layout Standard
7990 Note that manual conversion does not affect included files,
7991  so these will have to be converted separately.
7992 \end_layout
7993
7994 \begin_layout Subsection
7995 \begin_inset CommandInset label
7996 LatexCommand label
7997 name "subsec:Cite-Engine-Files"
7998
7999 \end_inset
8000
8001 Cite engine files
8002 \end_layout
8003
8004 \begin_layout Standard
8005 A specific form of layout files are the so-called 
8006 \begin_inset Flex Code
8007 status collapsed
8008
8009 \begin_layout Plain Layout
8010 *.citeengine
8011 \end_layout
8012
8013 \end_inset
8014
8015  files that are located in the 
8016 \begin_inset Flex Code
8017 status collapsed
8018
8019 \begin_layout Plain Layout
8020 citeengines/
8021 \end_layout
8022
8023 \end_inset
8024
8025  sub-directory.
8026  Their purpose is to define the specifics of \SpecialChar LaTeX
8027  packages aimed at bibliography generation,
8028  such as 
8029 \family sans
8030 natbib
8031 \family default
8032 ,
8033
8034 \family sans
8035  jurabib
8036 \family default
8037  or 
8038 \family sans
8039 biblatex
8040 \family default
8041 ,
8042  but also the way how normal Bib\SpecialChar TeX
8043  citations (without additional packages) are handled in \SpecialChar LyX
8044  is defined in such a file.
8045  
8046 \end_layout
8047
8048 \begin_layout Standard
8049 More specifically,
8050  it is defined which packages \SpecialChar LyX
8051  needs to load,
8052  which citation commands are available,
8053  how these are to be displayed in \SpecialChar LyX
8054  (in the workarea,
8055  the dialogs,
8056  the context menus) as well as in the XHTML and plain text output.
8057  Furthermore,
8058  the files specify available style variants (author-year,
8059  numerical,
8060  etc.) and their specifics.
8061  The cite engine files are also used to generate the options that are available in 
8062 \family sans
8063 Document\SpecialChar menuseparator
8064 Settings\SpecialChar menuseparator
8065 Bibliography\SpecialChar menuseparator
8066 Style engine
8067 \family default
8068 .
8069 \end_layout
8070
8071 \begin_layout Standard
8072 Even though a cite engine file is essentially a normal layout file that could theoretically include any layout information,
8073  it usually primarily includes some specific parameters such as 
8074 \begin_inset Flex Code
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 MaxCiteNames
8079 \end_layout
8080
8081 \end_inset
8082
8083 ,
8084  
8085 \begin_inset Flex Code
8086 status collapsed
8087
8088 \begin_layout Plain Layout
8089 CiteFramework
8090 \end_layout
8091
8092 \end_inset
8093
8094 ,
8095  
8096 \begin_inset Flex Code
8097 status collapsed
8098
8099 \begin_layout Plain Layout
8100 CiteEngine
8101 \end_layout
8102
8103 \end_inset
8104
8105  and 
8106 \begin_inset Flex Code
8107 status collapsed
8108
8109 \begin_layout Plain Layout
8110 CiteFormat
8111 \end_layout
8112
8113 \end_inset
8114
8115  blocks.
8116  The syntax of the latter two is described in 
8117 \begin_inset CommandInset ref
8118 LatexCommand ref
8119 reference "subsec:Citation-engine-description"
8120 plural "false"
8121 caps "false"
8122 noprefix "false"
8123 nolink "false"
8124
8125 \end_inset
8126
8127  and 
8128 \begin_inset CommandInset ref
8129 LatexCommand ref
8130 reference "subsec:Citation-format-description"
8131 nolink "false"
8132
8133 \end_inset
8134
8135 ,
8136  as well as in the files themselves.
8137 \end_layout
8138
8139 \begin_layout Section
8140 \begin_inset CommandInset label
8141 LatexCommand label
8142 name "sec:TextClass"
8143
8144 \end_inset
8145
8146 The layout file format
8147 \end_layout
8148
8149 \begin_layout Standard
8150 The following sections describe how layout files are structured and written.
8151  Our advice is to go slowly,
8152  save and test often.
8153  It is really not that hard,
8154  except that the multitude of options can become overwhelming,
8155  especially if you try to check out too many at once.
8156  It becomes easier if you use existing layouts of \SpecialChar LyX
8157  as examples/reference or if you modify an existing layout to your needs.
8158 \end_layout
8159
8160 \begin_layout Standard
8161 Note that all the tags used in layout files are case-insensitive.
8162  This means that 
8163 \begin_inset Flex Code
8164 status collapsed
8165
8166 \begin_layout Plain Layout
8167 Style
8168 \end_layout
8169
8170 \end_inset
8171
8172 ,
8173  
8174 \begin_inset Flex Code
8175 status collapsed
8176
8177 \begin_layout Plain Layout
8178 style
8179 \end_layout
8180
8181 \end_inset
8182
8183  and 
8184 \begin_inset Flex Code
8185 status collapsed
8186
8187 \begin_layout Plain Layout
8188 StYlE
8189 \end_layout
8190
8191 \end_inset
8192
8193  are really the same tag.
8194  The possible arguments are printed in brackets after the tag's name.
8195  The default argument is typeset 
8196 \begin_inset Flex Code
8197 status collapsed
8198
8199 \begin_layout Plain Layout
8200
8201 \emph on
8202 emphasized
8203 \end_layout
8204
8205 \end_inset
8206
8207 .
8208  If the argument has a data type like 
8209 \begin_inset Quotes eld
8210 \end_inset
8211
8212 string
8213 \begin_inset Quotes erd
8214 \end_inset
8215
8216  or 
8217 \begin_inset Quotes eld
8218 \end_inset
8219
8220 float
8221 \begin_inset Quotes erd
8222 \end_inset
8223
8224 ,
8225  the default is shown like this:
8226  
8227 \begin_inset Flex Code
8228 status collapsed
8229
8230 \begin_layout Plain Layout
8231 float=
8232 \emph on
8233 default
8234 \end_layout
8235
8236 \end_inset
8237
8238 .
8239 \end_layout
8240
8241 \begin_layout Subsection
8242 The document class declaration and classification
8243 \end_layout
8244
8245 \begin_layout Standard
8246 Lines in a layout file which begin with 
8247 \begin_inset Flex Code
8248 status collapsed
8249
8250 \begin_layout Plain Layout
8251 #
8252 \end_layout
8253
8254 \end_inset
8255
8256  are comments.
8257  There is one exception to this rule.
8258  All 
8259 \begin_inset Flex Code
8260 status collapsed
8261
8262 \begin_layout Plain Layout
8263 *.layout
8264 \end_layout
8265
8266 \end_inset
8267
8268  files should begin with lines like:
8269 \end_layout
8270
8271 \begin_layout LyX-Code
8272
8273 \size small
8274 #% Do not delete the line below;
8275  configure depends on this 
8276 \end_layout
8277
8278 \begin_layout LyX-Code
8279
8280 \size small
8281 #  
8282 \backslash
8283 DeclareLaTeXClass{Article (Standard Class)}
8284 \end_layout
8285
8286 \begin_layout LyX-Code
8287
8288 \size small
8289 #  
8290 \backslash
8291 DeclareCategory{Articles}
8292 \end_layout
8293
8294 \begin_layout Standard
8295 The second and third lines are used when you (re)configure \SpecialChar LyX
8296 .
8297  The layout file is read by the \SpecialChar LaTeX
8298  script 
8299 \begin_inset Flex Code
8300 status collapsed
8301
8302 \begin_layout Plain Layout
8303 chkconfig.ltx
8304 \end_layout
8305
8306 \end_inset
8307
8308 ,
8309  in a special mode where 
8310 \begin_inset Flex Code
8311 status collapsed
8312
8313 \begin_layout Plain Layout
8314 #
8315 \end_layout
8316
8317 \end_inset
8318
8319  is ignored.
8320  The first line is just a \SpecialChar LaTeX
8321  comment,
8322  the second one contains the mandatory declaration of the text class and the third line contains the optional classification of the class.
8323  If these lines appear in a file named 
8324 \begin_inset Flex Code
8325 status collapsed
8326
8327 \begin_layout Plain Layout
8328 article.layout
8329 \end_layout
8330
8331 \end_inset
8332
8333 ,
8334  then they define a text class of name 
8335 \begin_inset Flex Code
8336 status collapsed
8337
8338 \begin_layout Plain Layout
8339 article
8340 \end_layout
8341
8342 \end_inset
8343
8344  (the name of the layout file) which uses the \SpecialChar LaTeX
8345  document class 
8346 \begin_inset Flex Code
8347 status collapsed
8348
8349 \begin_layout Plain Layout
8350 article.cls
8351 \end_layout
8352
8353 \end_inset
8354
8355  (the default is to use the same name as the layout).
8356  The string 
8357 \begin_inset Quotes eld
8358 \end_inset
8359
8360 Article (Standard Class)
8361 \begin_inset Quotes erd
8362 \end_inset
8363
8364  that appears above is used as a description of the text class in the 
8365 \begin_inset Flex Noun
8366 status collapsed
8367
8368 \begin_layout Plain Layout
8369 Document\SpecialChar menuseparator
8370 Settings
8371 \end_layout
8372
8373 \end_inset
8374
8375  dialog.
8376  The category (
8377 \begin_inset Quotes eld
8378 \end_inset
8379
8380 Articles
8381 \begin_inset Quotes erd
8382 \end_inset
8383
8384  in the example) is also used in the 
8385 \begin_inset Flex Noun
8386 status collapsed
8387
8388 \begin_layout Plain Layout
8389 Document\SpecialChar menuseparator
8390 Settings
8391 \end_layout
8392
8393 \end_inset
8394
8395  dialog:
8396  the text classes are grouped by these categories (which are usually genres,
8397  so typical categories are 
8398 \begin_inset Quotes eld
8399 \end_inset
8400
8401 Articles
8402 \begin_inset Quotes erd
8403 \end_inset
8404
8405 ,
8406  
8407 \begin_inset Quotes eld
8408 \end_inset
8409
8410 Books
8411 \begin_inset Quotes erd
8412 \end_inset
8413
8414 ,
8415  
8416 \begin_inset Quotes eld
8417 \end_inset
8418
8419 Reports
8420 \begin_inset Quotes erd
8421 \end_inset
8422
8423 ,
8424  
8425 \begin_inset Quotes eld
8426 \end_inset
8427
8428 Letters
8429 \begin_inset Quotes erd
8430 \end_inset
8431
8432 ,
8433  
8434 \begin_inset Quotes eld
8435 \end_inset
8436
8437 Presentations
8438 \begin_inset Quotes erd
8439 \end_inset
8440
8441 ,
8442  
8443 \begin_inset Quotes eld
8444 \end_inset
8445
8446 Curricula Vitae
8447 \begin_inset Quotes erd
8448 \end_inset
8449
8450  etc.).
8451  If no category has been declared,
8452  the class will be put in the 
8453 \begin_inset Quotes eld
8454 \end_inset
8455
8456 Uncategorized
8457 \begin_inset Quotes erd
8458 \end_inset
8459
8460  group.
8461 \end_layout
8462
8463 \begin_layout Standard
8464 Let's assume that you wrote your own text class that uses the 
8465 \begin_inset Flex Code
8466 status collapsed
8467
8468 \begin_layout Plain Layout
8469 article.cls
8470 \end_layout
8471
8472 \end_inset
8473
8474  document class,
8475  but where you changed the appearance of the section headings.
8476  If you put it in a file 
8477 \begin_inset Flex Code
8478 status collapsed
8479
8480 \begin_layout Plain Layout
8481 myarticle.layout
8482 \end_layout
8483
8484 \end_inset
8485
8486 ,
8487  the header of this file should be:
8488 \end_layout
8489
8490 \begin_layout LyX-Code
8491
8492 \size small
8493 #% Do not delete the line below;
8494  configure depends on this 
8495 \end_layout
8496
8497 \begin_layout LyX-Code
8498
8499 \size small
8500 #  
8501 \backslash
8502 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8503 \end_layout
8504
8505 \begin_layout LyX-Code
8506
8507 \size small
8508 #  
8509 \backslash
8510 DeclareCategory{Articles}
8511 \end_layout
8512
8513 \begin_layout Standard
8514 This declares a text class 
8515 \begin_inset Flex Code
8516 status collapsed
8517
8518 \begin_layout Plain Layout
8519 myarticle
8520 \end_layout
8521
8522 \end_inset
8523
8524 ,
8525  associated with the \SpecialChar LaTeX
8526  document class 
8527 \begin_inset Flex Code
8528 status collapsed
8529
8530 \begin_layout Plain Layout
8531 article.cls
8532 \end_layout
8533
8534 \end_inset
8535
8536  and described as 
8537 \begin_inset Quotes eld
8538 \end_inset
8539
8540 Article (with My Own Headings)
8541 \begin_inset Quotes erd
8542 \end_inset
8543
8544 .
8545  If your text class depends on several packages,
8546  you can declare it as:
8547 \end_layout
8548
8549 \begin_layout LyX-Code
8550
8551 \size small
8552 #% Do not delete the line below;
8553  configure depends on this 
8554 \end_layout
8555
8556 \begin_layout LyX-Code
8557
8558 \size small
8559 #  
8560 \backslash
8561 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8562 \end_layout
8563
8564 \begin_layout LyX-Code
8565
8566 \size small
8567 #  
8568 \backslash
8569 DeclareCategory{Articles}
8570 \end_layout
8571
8572 \begin_layout Standard
8573 This indicates that your text class uses the 
8574 \begin_inset Flex Code
8575 status collapsed
8576
8577 \begin_layout Plain Layout
8578 foo.sty
8579 \end_layout
8580
8581 \end_inset
8582
8583  package.
8584  
8585 \end_layout
8586
8587 \begin_layout Standard
8588 Note that these declarations can also be given an optional parameter declaring the name of the document class (but not a list).
8589 \end_layout
8590
8591 \begin_layout Standard
8592 So,
8593  to be as explicit as possible,
8594  the form of the layout declaration is:
8595 \end_layout
8596
8597 \begin_layout LyX-Code
8598
8599 \size small
8600 #  
8601 \backslash
8602 DeclareLaTeXClass[class,package.sty]{layout description}
8603 \end_layout
8604
8605 \begin_layout LyX-Code
8606
8607 \size small
8608 #  
8609 \backslash
8610 DeclareCategory{category}
8611 \end_layout
8612
8613 \begin_layout Standard
8614 The class need only be specified if the name of the \SpecialChar LaTeX
8615  class file and the name of the layout file are different or if there are packages to load.
8616  If the name of the class file is not specified,
8617  then \SpecialChar LyX
8618  will simply assume that it is the same as the name of the layout file.
8619 \end_layout
8620
8621 \begin_layout Standard
8622 When the text class has been modified to your taste,
8623  all you have to do is to copy it either to 
8624 \begin_inset Flex Code
8625 status collapsed
8626
8627 \begin_layout Plain Layout
8628 LyXDir/layouts/
8629 \end_layout
8630
8631 \end_inset
8632
8633  or to 
8634 \begin_inset Flex Code
8635 status collapsed
8636
8637 \begin_layout Plain Layout
8638 UserDir/layouts
8639 \end_layout
8640
8641 \end_inset
8642
8643 ,
8644  run 
8645 \begin_inset Flex Noun
8646 status collapsed
8647
8648 \begin_layout Plain Layout
8649 Tools\SpecialChar menuseparator
8650 Reconfigure
8651 \end_layout
8652
8653 \end_inset
8654
8655 ,
8656  exit \SpecialChar LyX
8657  and restart.
8658  Then your new text class should be available along with the others.
8659 \end_layout
8660
8661 \begin_layout Standard
8662 Once the layout file is installed,
8663  you can edit it and see your changes without having to reconfigure or to restart \SpecialChar LyX
8664 .
8665 \begin_inset Foot
8666 status collapsed
8667
8668 \begin_layout Plain Layout
8669 In versions of \SpecialChar LyX
8670  prior to 1.6,
8671  this was not true.
8672  As a result,
8673  editing layout files was very time consuming,
8674  since you had constantly to restart \SpecialChar LyX
8675  to see changes.
8676 \end_layout
8677
8678 \end_inset
8679
8680  You can force a reload of the current layout by using the \SpecialChar LyX
8681  function 
8682 \begin_inset Flex Noun
8683 status collapsed
8684
8685 \begin_layout Plain Layout
8686 layout-reload
8687 \end_layout
8688
8689 \end_inset
8690
8691 .
8692  There is no default binding for this function—
8693 though,
8694  of course,
8695  you can bind it to a key yourself.
8696  But you will normally use this function simply by entering it in the mini-buffer.
8697  
8698 \end_layout
8699
8700 \begin_layout Standard
8701
8702 \emph on
8703 Warning
8704 \emph default
8705 :
8706  
8707 \begin_inset Flex Noun
8708 status collapsed
8709
8710 \begin_layout Plain Layout
8711 layout-reload
8712 \end_layout
8713
8714 \end_inset
8715
8716  is very much an `advanced feature'.
8717  It is 
8718 \emph on
8719 strongly
8720 \emph default
8721  recommended that you save your work before using this function.
8722  In fact,
8723  it is 
8724 \emph on
8725 strongly
8726 \emph default
8727  recommended that you not attempt to edit layout information while simultaneously working on a document that you care about.
8728  Use a test document.
8729  Syntax errors and the like in your layout file could cause peculiar behavior.
8730  In particular,
8731  such errors could cause \SpecialChar LyX
8732  to regard the current layout as invalid and to attempt to switch to some other layout.
8733 \begin_inset Foot
8734 status collapsed
8735
8736 \begin_layout Plain Layout
8737 Really bad syntax errors may even caused \SpecialChar LyX
8738  to exit.
8739  This is because certain sorts of errors may make \SpecialChar LyX
8740  unable to read 
8741 \emph on
8742 any
8743 \emph default
8744  layout information.
8745  Please be careful.
8746 \end_layout
8747
8748 \end_inset
8749
8750  The \SpecialChar LyX
8751  team strives to keep \SpecialChar LyX
8752  stable in such situations,
8753  but safe is better than sorry.
8754 \begin_inset Foot
8755 status collapsed
8756
8757 \begin_layout Plain Layout
8758 While we're giving advice:
8759  make regular backups.
8760  And be nice to your mother.
8761 \end_layout
8762
8763 \end_inset
8764
8765
8766 \end_layout
8767
8768 \begin_layout Subsection
8769 The Module declaration
8770 \end_layout
8771
8772 \begin_layout Standard
8773 A module must begin with a line like the following:
8774 \end_layout
8775
8776 \begin_layout LyX-Code
8777 #
8778 \backslash
8779 DeclareLyXModule[endnotes.sty]{Endnotes}
8780 \end_layout
8781
8782 \begin_layout LyX-Code
8783
8784 \size small
8785 #
8786 \backslash
8787 DeclareCategory{Foot- and Endnotes}
8788 \end_layout
8789
8790 \begin_layout Standard
8791 The mandatory argument of 
8792 \family typewriter
8793
8794 \backslash
8795 DeclareLyXModule
8796 \family default
8797 ,
8798  in curly brackets,
8799  is the name of the module,
8800  as it should appear in 
8801 \begin_inset Flex Noun
8802 status collapsed
8803
8804 \begin_layout Plain Layout
8805 Document\SpecialChar menuseparator
8806 Settings\SpecialChar menuseparator
8807 Modules
8808 \end_layout
8809
8810 \end_inset
8811
8812 .
8813  The argument in square brackets is optional:
8814  It declares any \SpecialChar LaTeX
8815  packages on which the module depends.
8816  It is also possible to use the form 
8817 \begin_inset Flex Noun
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 from->to
8822 \end_layout
8823
8824 \end_inset
8825
8826  as an optional argument,
8827  which declares that the module can only be used when there exists a conversion chain between the formats `
8828 \begin_inset Flex Code
8829 status collapsed
8830
8831 \begin_layout Plain Layout
8832 from
8833 \end_layout
8834
8835 \end_inset
8836
8837 ' and `
8838 \begin_inset Flex Code
8839 status collapsed
8840
8841 \begin_layout Plain Layout
8842 to
8843 \end_layout
8844
8845 \end_inset
8846
8847 '.
8848  The 
8849 \family typewriter
8850
8851 \backslash
8852 DeclareCategory
8853 \family default
8854  declaration is not strictly mandatory,
8855  but you should add it,
8856  since it is helpful to find the module.
8857  Please have a look at the existing module categories and if appropriate,
8858  use one of those.
8859 \end_layout
8860
8861 \begin_layout Standard
8862 The module and category declaration should then be followed by lines like the following:
8863 \begin_inset Foot
8864 status collapsed
8865
8866 \begin_layout Plain Layout
8867 Preferably in English if the module should be published with \SpecialChar LyX
8868 .
8869  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
8870 \end_layout
8871
8872 \end_inset
8873
8874
8875 \end_layout
8876
8877 \begin_layout LyX-Code
8878 #DescriptionBegin 
8879 \end_layout
8880
8881 \begin_layout LyX-Code
8882 #Adds an endnote command,
8883  in addition to footnotes.
8884  
8885 \end_layout
8886
8887 \begin_layout LyX-Code
8888 #You will need to add  
8889 \backslash
8890 theendnotes in TeX code where you 
8891 \end_layout
8892
8893 \begin_layout LyX-Code
8894 #want the endnotes to appear.
8895  
8896 \end_layout
8897
8898 \begin_layout LyX-Code
8899 #DescriptionEnd 
8900 \end_layout
8901
8902 \begin_layout LyX-Code
8903 #Requires:
8904  somemodule | othermodule
8905 \end_layout
8906
8907 \begin_layout LyX-Code
8908 #Excludes:
8909  badmodule
8910 \end_layout
8911
8912 \begin_layout Standard
8913 The description is used in 
8914 \begin_inset Flex Noun
8915 status collapsed
8916
8917 \begin_layout Plain Layout
8918 Document\SpecialChar menuseparator
8919 Settings\SpecialChar menuseparator
8920 Modules
8921 \end_layout
8922
8923 \end_inset
8924
8925  to provide the user with information about what the module does.
8926  The 
8927 \begin_inset Flex Code
8928 status collapsed
8929
8930 \begin_layout Plain Layout
8931 Requires
8932 \end_layout
8933
8934 \end_inset
8935
8936  line is used to identify other modules with which this one must be used;
8937  the 
8938 \begin_inset Flex Code
8939 status collapsed
8940
8941 \begin_layout Plain Layout
8942 Excludes
8943 \end_layout
8944
8945 \end_inset
8946
8947  line is used to identify modules with which this one may not be used.
8948  Both are optional,
8949  and,
8950  as shown,
8951  multiple modules should be separated with the pipe symbol:
8952  |.
8953  Note that the required modules are treated disjunctively:
8954  
8955 \emph on
8956 at least one
8957 \emph default
8958  of the required modules must be used.
8959  Similarly,
8960  
8961 \emph on
8962 no
8963 \emph default
8964  excluded module may be used.
8965  Note that modules are identified here by their filenames without the 
8966 \begin_inset Flex Code
8967 status collapsed
8968
8969 \begin_layout Plain Layout
8970 .module
8971 \end_layout
8972
8973 \end_inset
8974
8975  extension.
8976  So 
8977 \begin_inset Flex Code
8978 status collapsed
8979
8980 \begin_layout Plain Layout
8981 somemodule
8982 \end_layout
8983
8984 \end_inset
8985
8986  is really 
8987 \begin_inset Flex Code
8988 status collapsed
8989
8990 \begin_layout Plain Layout
8991 somemodule.module
8992 \end_layout
8993
8994 \end_inset
8995
8996 .
8997 \end_layout
8998
8999 \begin_layout Subsection
9000 The CiteEngine file declaration
9001 \end_layout
9002
9003 \begin_layout Standard
9004 A cite engine file must begin with a line like the following:
9005 \end_layout
9006
9007 \begin_layout LyX-Code
9008 #
9009 \backslash
9010 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9011 \end_layout
9012
9013 \begin_layout Standard
9014 The mandatory argument,
9015  in curly brackets,
9016  is the name of the cite style,
9017  as it should appear in 
9018 \begin_inset Flex Noun
9019 status collapsed
9020
9021 \begin_layout Plain Layout
9022 Document\SpecialChar menuseparator
9023 Settings\SpecialChar menuseparator
9024 Bibliography
9025 \end_layout
9026
9027 \end_inset
9028
9029 .
9030  The argument in square brackets is optional:
9031  It declares any \SpecialChar LaTeX
9032  packages on which the cite engine depends.
9033 \end_layout
9034
9035 \begin_layout Standard
9036 The cite engine declaration should then be followed by lines like the following:
9037 \begin_inset Foot
9038 status collapsed
9039
9040 \begin_layout Plain Layout
9041 Preferably in English if the module should be published with \SpecialChar LyX
9042 .
9043  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9044 \end_layout
9045
9046 \end_inset
9047
9048
9049 \end_layout
9050
9051 \begin_layout LyX-Code
9052 # DescriptionBegin
9053 \end_layout
9054
9055 \begin_layout LyX-Code
9056 #   Biblatex supports many author-year and numerical styles.
9057 \end_layout
9058
9059 \begin_layout LyX-Code
9060 #   It is mainly aimed at the Humanities.
9061  It is highly
9062 \end_layout
9063
9064 \begin_layout LyX-Code
9065 #   customizable,
9066  fully localized and provides many features
9067 \end_layout
9068
9069 \begin_layout LyX-Code
9070 #   that are not possible with BibTeX.
9071  The use of 'biber' as
9072 \end_layout
9073
9074 \begin_layout LyX-Code
9075 #   bibliography processor is advised.
9076 \end_layout
9077
9078 \begin_layout LyX-Code
9079 # DescriptionEnd
9080 \end_layout
9081
9082 \begin_layout Standard
9083 The description is used in 
9084 \begin_inset Flex Noun
9085 status collapsed
9086
9087 \begin_layout Plain Layout
9088 Document\SpecialChar menuseparator
9089 Settings\SpecialChar menuseparator
9090 Bibliography
9091 \end_layout
9092
9093 \end_inset
9094
9095  to provide the user with information about the cite engine.
9096 \end_layout
9097
9098 \begin_layout Subsection
9099 Format number
9100 \end_layout
9101
9102 \begin_layout Standard
9103 The first non-comment line of any layout file,
9104  included file,
9105  or module 
9106 \emph on
9107 must
9108 \emph default
9109  contain the file format number:
9110 \end_layout
9111
9112 \begin_layout Description
9113 \begin_inset Flex Code
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 Format
9118 \end_layout
9119
9120 \end_inset
9121
9122  [
9123 \begin_inset Flex Code
9124 status collapsed
9125
9126 \begin_layout Plain Layout
9127 int
9128 \end_layout
9129
9130 \end_inset
9131
9132 ] The format number of the layout file.
9133 \end_layout
9134
9135 \begin_layout Standard
9136 This tag was introduced with \SpecialChar LyX
9137
9138 \begin_inset space ~
9139 \end_inset
9140
9141 1.4.0.
9142  Layout files from older \SpecialChar LyX
9143  versions do not have an explicit file format and are considered to have 
9144 \begin_inset Flex Code
9145 status collapsed
9146
9147 \begin_layout Plain Layout
9148 Format
9149 \begin_inset space ~
9150 \end_inset
9151
9152 1
9153 \end_layout
9154
9155 \end_inset
9156
9157 .
9158  The format for the present version of \SpecialChar LyX
9159  is format 60.
9160  But each version of \SpecialChar LyX
9161  is capable of reading earlier versions' layout files,
9162  just as they are capable of reading files produced by earlier versions of \SpecialChar LyX
9163 .
9164  There is,
9165  however,
9166  no provision for converting to earlier formats.
9167 \end_layout
9168
9169 \begin_layout Subsection
9170 \begin_inset CommandInset label
9171 LatexCommand label
9172 name "subsec:General-text-class"
9173
9174 \end_inset
9175
9176 General text class parameters
9177 \end_layout
9178
9179 \begin_layout Standard
9180 These are general parameters that govern the behavior of an entire document class.
9181  (This does 
9182 \emph on
9183 not
9184 \emph default
9185  mean that they must appear in 
9186 \begin_inset Flex Code
9187 status collapsed
9188
9189 \begin_layout Plain Layout
9190 .layout
9191 \end_layout
9192
9193 \end_inset
9194
9195  files rather than in modules.
9196  A module can contain any layout tag.)
9197 \end_layout
9198
9199 \begin_layout Description
9200 \begin_inset Flex Code
9201 status collapsed
9202
9203 \begin_layout Plain Layout
9204 AddToCiteEngine <engine>
9205 \end_layout
9206
9207 \end_inset
9208
9209  Extends the possibilities for displaying citation references.
9210  See 
9211 \begin_inset CommandInset ref
9212 LatexCommand ref
9213 reference "subsec:Citation-engine-description"
9214 plural "false"
9215 caps "false"
9216 noprefix "false"
9217 nolink "false"
9218
9219 \end_inset
9220
9221  for details.
9222  Must end with 
9223 \begin_inset Flex Code
9224 status collapsed
9225
9226 \begin_layout Plain Layout
9227 End
9228 \end_layout
9229
9230 \end_inset
9231
9232 .
9233 \end_layout
9234
9235 \begin_layout Description
9236 \begin_inset Flex Code
9237 status collapsed
9238
9239 \begin_layout Plain Layout
9240 AddToHTMLPreamble
9241 \end_layout
9242
9243 \end_inset
9244
9245  Adds information that will be output in the 
9246 \begin_inset Flex Code
9247 status collapsed
9248
9249 \begin_layout Plain Layout
9250 <head>
9251 \end_layout
9252
9253 \end_inset
9254
9255  block when the document is output to XHTML.
9256  Typically,
9257  this would be used to output CSS style information,
9258  but it can be used for anything that can appear in 
9259 \begin_inset Flex Code
9260 status collapsed
9261
9262 \begin_layout Plain Layout
9263 <head>
9264 \end_layout
9265
9266 \end_inset
9267
9268 .
9269  Must end with 
9270 \begin_inset Quotes eld
9271 \end_inset
9272
9273
9274 \begin_inset Flex Code
9275 status collapsed
9276
9277 \begin_layout Plain Layout
9278 EndPreamble
9279 \end_layout
9280
9281 \end_inset
9282
9283
9284 \begin_inset Quotes erd
9285 \end_inset
9286
9287 .
9288 \end_layout
9289
9290 \begin_layout Description
9291 \begin_inset Flex Code
9292 status collapsed
9293
9294 \begin_layout Plain Layout
9295 AddToPreamble
9296 \end_layout
9297
9298 \end_inset
9299
9300  Adds information to the document preamble.
9301  Must end with
9302 \begin_inset Newline newline
9303 \end_inset
9304
9305
9306 \begin_inset Quotes eld
9307 \end_inset
9308
9309
9310 \begin_inset Flex Code
9311 status collapsed
9312
9313 \begin_layout Plain Layout
9314 EndPreamble
9315 \end_layout
9316
9317 \end_inset
9318
9319
9320 \begin_inset Quotes erd
9321 \end_inset
9322
9323 .
9324 \end_layout
9325
9326 \begin_layout Description
9327 \begin_inset Flex Code
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331 BibInToc
9332 \end_layout
9333
9334 \end_inset
9335
9336  [
9337 \begin_inset Flex Code
9338 status collapsed
9339
9340 \begin_layout Plain Layout
9341
9342 \emph on
9343 0
9344 \end_layout
9345
9346 \end_inset
9347
9348 ,
9349 \begin_inset space \thinspace{}
9350 \end_inset
9351
9352
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357 1
9358 \end_layout
9359
9360 \end_inset
9361
9362 ] If the document class adds the bibliography to the table of contents,
9363  add this option with value 
9364 \begin_inset Flex Code
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368 1
9369 \end_layout
9370
9371 \end_inset
9372
9373  (or 
9374 \begin_inset Flex Code
9375 status collapsed
9376
9377 \begin_layout Plain Layout
9378 true
9379 \end_layout
9380
9381 \end_inset
9382
9383 ).
9384  This prevents the bibliography from being added twice.
9385 \end_layout
9386
9387 \begin_layout Description
9388 \begin_inset Flex Code
9389 status collapsed
9390
9391 \begin_layout Plain Layout
9392 CiteEngine <engine>
9393 \end_layout
9394
9395 \end_inset
9396
9397  Defines the possibilities for displaying citation references.
9398  See 
9399 \begin_inset CommandInset ref
9400 LatexCommand ref
9401 reference "subsec:Citation-engine-description"
9402 plural "false"
9403 caps "false"
9404 noprefix "false"
9405 nolink "false"
9406
9407 \end_inset
9408
9409  for details.
9410  Must end with 
9411 \begin_inset Quotes eld
9412 \end_inset
9413
9414
9415 \begin_inset Flex Code
9416 status collapsed
9417
9418 \begin_layout Plain Layout
9419 End
9420 \end_layout
9421
9422 \end_inset
9423
9424
9425 \begin_inset Quotes erd
9426 \end_inset
9427
9428 .
9429  Primarily used in cite engine files (see 
9430 \begin_inset CommandInset ref
9431 LatexCommand ref
9432 reference "subsec:Cite-Engine-Files"
9433 plural "false"
9434 caps "false"
9435 noprefix "false"
9436 nolink "false"
9437
9438 \end_inset
9439
9440 ).
9441  Note that if you specify this in a layout file or module,
9442  any cite engine definition will be overridden.
9443  Also see 
9444 \begin_inset Flex Code
9445 status collapsed
9446
9447 \begin_layout Plain Layout
9448 AddToCiteEngine
9449 \end_layout
9450
9451 \end_inset
9452
9453 .
9454 \end_layout
9455
9456 \begin_layout Description
9457 \begin_inset Flex Code
9458 status collapsed
9459
9460 \begin_layout Plain Layout
9461 CiteFormat
9462 \end_layout
9463
9464 \end_inset
9465
9466  Defines formats for use in the display of bibliographic information.
9467  See 
9468 \begin_inset CommandInset ref
9469 LatexCommand ref
9470 reference "subsec:Citation-format-description"
9471 nolink "false"
9472
9473 \end_inset
9474
9475  for details.
9476  Must end with 
9477 \begin_inset Quotes eld
9478 \end_inset
9479
9480
9481 \begin_inset Flex Code
9482 status collapsed
9483
9484 \begin_layout Plain Layout
9485 End
9486 \end_layout
9487
9488 \end_inset
9489
9490
9491 \begin_inset Quotes erd
9492 \end_inset
9493
9494 .
9495  Primarily used in cite engine files (see 
9496 \begin_inset CommandInset ref
9497 LatexCommand ref
9498 reference "subsec:Cite-Engine-Files"
9499 plural "false"
9500 caps "false"
9501 noprefix "false"
9502 nolink "false"
9503
9504 \end_inset
9505
9506 ).
9507  A cite format defined in a layout or module will override the cite engine definition.
9508 \end_layout
9509
9510 \begin_layout Description
9511 \begin_inset Flex Code
9512 status collapsed
9513
9514 \begin_layout Plain Layout
9515 CiteFramework
9516 \end_layout
9517
9518 \end_inset
9519
9520  [
9521 \begin_inset Flex Code
9522 status collapsed
9523
9524 \begin_layout Plain Layout
9525
9526 \emph on
9527 bibtex
9528 \end_layout
9529
9530 \end_inset
9531
9532 ,
9533 \begin_inset Flex Code
9534 status collapsed
9535
9536 \begin_layout Plain Layout
9537 biblatex
9538 \end_layout
9539
9540 \end_inset
9541
9542 ] Determines whether 
9543 \family sans
9544 Biblatex
9545 \family default
9546  or Bib\SpecialChar TeX
9547  is used to generate a Bibliography.
9548  Primarily used in cite engine files (see 
9549 \begin_inset CommandInset ref
9550 LatexCommand ref
9551 reference "subsec:Cite-Engine-Files"
9552 plural "false"
9553 caps "false"
9554 noprefix "false"
9555 nolink "false"
9556
9557 \end_inset
9558
9559 ).
9560 \end_layout
9561
9562 \begin_layout Description
9563 \begin_inset Flex Code
9564 status collapsed
9565
9566 \begin_layout Plain Layout
9567 ClassOptions
9568 \end_layout
9569
9570 \end_inset
9571
9572  Describes various global options supported by the document class.
9573  See 
9574 \begin_inset CommandInset ref
9575 LatexCommand ref
9576 reference "subsec:ClassOptions"
9577 nolink "false"
9578
9579 \end_inset
9580
9581  for a description.
9582  Must end with 
9583 \begin_inset Quotes eld
9584 \end_inset
9585
9586
9587 \begin_inset Flex Code
9588 status collapsed
9589
9590 \begin_layout Plain Layout
9591 End
9592 \end_layout
9593
9594 \end_inset
9595
9596
9597 \begin_inset Quotes erd
9598 \end_inset
9599
9600 .
9601 \end_layout
9602
9603 \begin_layout Description
9604 \begin_inset Flex Code
9605 status collapsed
9606
9607 \begin_layout Plain Layout
9608 Columns
9609 \end_layout
9610
9611 \end_inset
9612
9613  [
9614 \begin_inset Flex Code
9615 status collapsed
9616
9617 \begin_layout Plain Layout
9618
9619 \emph on
9620 1
9621 \end_layout
9622
9623 \end_inset
9624
9625 ,
9626 \begin_inset space \thinspace{}
9627 \end_inset
9628
9629
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634 2
9635 \end_layout
9636
9637 \end_inset
9638
9639 ] Whether the class should 
9640 \emph on
9641 default
9642 \emph default
9643  to having one or two columns.
9644  Can be changed in the 
9645 \begin_inset Flex Noun
9646 status collapsed
9647
9648 \begin_layout Plain Layout
9649 Document\SpecialChar menuseparator
9650 Settings
9651 \end_layout
9652
9653 \end_inset
9654
9655  dialog.
9656 \end_layout
9657
9658 \begin_layout Description
9659 \begin_inset Flex Code
9660 status collapsed
9661
9662 \begin_layout Plain Layout
9663 Counter
9664 \end_layout
9665
9666 \end_inset
9667
9668  [
9669 \begin_inset Flex Code
9670 status collapsed
9671
9672 \begin_layout Plain Layout
9673 string
9674 \end_layout
9675
9676 \end_inset
9677
9678 ] This sequence defines the properties for a counter.
9679  If the counter does not yet exist,
9680  it is created;
9681  if it does exist,
9682  it is modified.
9683  Must end with 
9684 \begin_inset Quotes eld
9685 \end_inset
9686
9687
9688 \begin_inset Flex Code
9689 status collapsed
9690
9691 \begin_layout Plain Layout
9692 End
9693 \end_layout
9694
9695 \end_inset
9696
9697
9698 \begin_inset Quotes erd
9699 \end_inset
9700
9701 .
9702 \begin_inset Newline newline
9703 \end_inset
9704
9705 See 
9706 \begin_inset CommandInset ref
9707 LatexCommand ref
9708 reference "subsec:Counters"
9709 nolink "false"
9710
9711 \end_inset
9712
9713  for details on counters.
9714 \end_layout
9715
9716 \begin_layout Description
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 DefaultFont
9722 \end_layout
9723
9724 \end_inset
9725
9726  Sets the default font used to display the document.
9727  See 
9728 \begin_inset CommandInset ref
9729 LatexCommand ref
9730 reference "subsec:Font-description"
9731 nolink "false"
9732
9733 \end_inset
9734
9735  for how to declare fonts.
9736  Must end with 
9737 \begin_inset Quotes eld
9738 \end_inset
9739
9740
9741 \begin_inset Flex Code
9742 status collapsed
9743
9744 \begin_layout Plain Layout
9745 EndFont
9746 \end_layout
9747
9748 \end_inset
9749
9750
9751 \begin_inset Quotes erd
9752 \end_inset
9753
9754 .
9755 \end_layout
9756
9757 \begin_layout Description
9758 \begin_inset Flex Code
9759 status collapsed
9760
9761 \begin_layout Plain Layout
9762 DefaultModule
9763 \end_layout
9764
9765 \end_inset
9766
9767  [
9768 \begin_inset Flex Code
9769 status collapsed
9770
9771 \begin_layout Plain Layout
9772 <module>
9773 \end_layout
9774
9775 \end_inset
9776
9777 ] Specifies a module to be included by default with this document class.
9778  The module is specified as filename without the 
9779 \begin_inset Flex Code
9780 status collapsed
9781
9782 \begin_layout Plain Layout
9783 .module
9784 \end_layout
9785
9786 \end_inset
9787
9788  extension.
9789  The user can still remove the module,
9790  but it will be active at the outset.
9791  (This applies only when new files are created,
9792  or when this class is chosen for an existing document.)
9793 \end_layout
9794
9795 \begin_layout Description
9796 \begin_inset Flex Code
9797 status collapsed
9798
9799 \begin_layout Plain Layout
9800 DefaultStyle
9801 \end_layout
9802
9803 \end_inset
9804
9805  [
9806 \begin_inset Flex Code
9807 status collapsed
9808
9809 \begin_layout Plain Layout
9810 <style>
9811 \end_layout
9812
9813 \end_inset
9814
9815 ] This is the style that will be assigned to new paragraphs,
9816  usually 
9817 \begin_inset Flex Noun
9818 status collapsed
9819
9820 \begin_layout Plain Layout
9821 Standard
9822 \end_layout
9823
9824 \end_inset
9825
9826 .
9827  This will default to the first defined style if not given,
9828  but you are encouraged to use this directive.
9829 \end_layout
9830
9831 \begin_layout Description
9832 \begin_inset Flex Code
9833 status collapsed
9834
9835 \begin_layout Plain Layout
9836 DocBookRoot
9837 \end_layout
9838
9839 \end_inset
9840
9841  [
9842 \begin_inset Flex Code
9843 status collapsed
9844
9845 \begin_layout Plain Layout
9846 string
9847 \end_layout
9848
9849 \end_inset
9850
9851 ] The root element (at the top of the document) to use when outputting documents with this class in DocBook.
9852  The default value is 
9853 \begin_inset Quotes eld
9854 \end_inset
9855
9856
9857 \begin_inset Flex Code
9858 status collapsed
9859
9860 \begin_layout Plain Layout
9861 article
9862 \end_layout
9863
9864 \end_inset
9865
9866
9867 \begin_inset Quotes erd
9868 \end_inset
9869
9870 .
9871 \end_layout
9872
9873 \begin_layout Description
9874 \begin_inset Flex Code
9875 status collapsed
9876
9877 \begin_layout Plain Layout
9878 DocBookForceAbstract
9879 \end_layout
9880
9881 \end_inset
9882
9883  [
9884 \begin_inset Flex Code
9885 status collapsed
9886
9887 \begin_layout Plain Layout
9888 boolean
9889 \end_layout
9890
9891 \end_inset
9892
9893 ] If 
9894 \begin_inset Quotes eld
9895 \end_inset
9896
9897
9898 \family typewriter
9899 true
9900 \family default
9901
9902 \begin_inset Quotes erd
9903 \end_inset
9904
9905 ,
9906  the root element will always have an 
9907 \family typewriter
9908 <abstract>
9909 \family default
9910  tag.
9911  The default value is 
9912 \begin_inset Quotes eld
9913 \end_inset
9914
9915
9916 \family typewriter
9917 false
9918 \family default
9919
9920 \begin_inset Quotes erd
9921 \end_inset
9922
9923 .
9924 \end_layout
9925
9926 \begin_layout Description
9927 \begin_inset Flex Code
9928 status collapsed
9929
9930 \begin_layout Plain Layout
9931 ExcludesModule
9932 \end_layout
9933
9934 \end_inset
9935
9936  [
9937 \begin_inset Flex Code
9938 status collapsed
9939
9940 \begin_layout Plain Layout
9941 <module>
9942 \end_layout
9943
9944 \end_inset
9945
9946 ] This tag indicates that the module (which is specified by filename without the 
9947 \begin_inset Flex Code
9948 status collapsed
9949
9950 \begin_layout Plain Layout
9951 .module
9952 \end_layout
9953
9954 \end_inset
9955
9956  extension) cannot be used with this document class.
9957  This might be used in a journal-specific layout file to prevent,
9958  say,
9959  the use of the 
9960 \begin_inset Flex Code
9961 status collapsed
9962
9963 \begin_layout Plain Layout
9964 theorems-sec
9965 \end_layout
9966
9967 \end_inset
9968
9969  module that numbers theorems by section.
9970  This tag may 
9971 \emph on
9972 not
9973 \emph default
9974  be used in a module.
9975  Modules have their own way of excluding other modules (see 
9976 \begin_inset CommandInset ref
9977 LatexCommand ref
9978 reference "subsec:Layout-modules"
9979 nolink "false"
9980
9981 \end_inset
9982
9983 ).
9984 \end_layout
9985
9986 \begin_layout Description
9987 \begin_inset Flex Code
9988 status collapsed
9989
9990 \begin_layout Plain Layout
9991 Float
9992 \end_layout
9993
9994 \end_inset
9995
9996  Defines a new float.
9997  See 
9998 \begin_inset CommandInset ref
9999 LatexCommand ref
10000 reference "subsec:Floats"
10001 nolink "false"
10002
10003 \end_inset
10004
10005  for details.
10006  Must end with 
10007 \begin_inset Quotes eld
10008 \end_inset
10009
10010
10011 \begin_inset Flex Code
10012 status collapsed
10013
10014 \begin_layout Plain Layout
10015 End
10016 \end_layout
10017
10018 \end_inset
10019
10020
10021 \begin_inset Quotes erd
10022 \end_inset
10023
10024 .
10025 \end_layout
10026
10027 \begin_layout Description
10028 \begin_inset Flex Code
10029 status collapsed
10030
10031 \begin_layout Plain Layout
10032 HTMLPreamble
10033 \end_layout
10034
10035 \end_inset
10036
10037  Sets the information that will be output in the 
10038 \begin_inset Flex Code
10039 status collapsed
10040
10041 \begin_layout Plain Layout
10042 <head>
10043 \end_layout
10044
10045 \end_inset
10046
10047  block when this document class is output to XHTML.
10048  Note that this will completely override any prior 
10049 \begin_inset Flex Code
10050 status collapsed
10051
10052 \begin_layout Plain Layout
10053 HTMLPreamble
10054 \end_layout
10055
10056 \end_inset
10057
10058  or 
10059 \begin_inset Flex Code
10060 status collapsed
10061
10062 \begin_layout Plain Layout
10063 AddToHTMLPreamble
10064 \end_layout
10065
10066 \end_inset
10067
10068  declarations.
10069  (Use
10070 \begin_inset Newline newline
10071 \end_inset
10072
10073
10074 \begin_inset Flex Code
10075 status collapsed
10076
10077 \begin_layout Plain Layout
10078 AddToHTMLPreamble
10079 \end_layout
10080
10081 \end_inset
10082
10083  if you just want to add material to the preamble.) Must end with 
10084 \begin_inset Quotes eld
10085 \end_inset
10086
10087
10088 \begin_inset Flex Code
10089 status collapsed
10090
10091 \begin_layout Plain Layout
10092 EndPreamble
10093 \end_layout
10094
10095 \end_inset
10096
10097
10098 \begin_inset Quotes erd
10099 \end_inset
10100
10101 .
10102 \end_layout
10103
10104 \begin_layout Description
10105 \begin_inset Flex Code
10106 status collapsed
10107
10108 \begin_layout Plain Layout
10109 HTMLTOCSection
10110 \end_layout
10111
10112 \end_inset
10113
10114  [
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119 <style>
10120 \end_layout
10121
10122 \end_inset
10123
10124 ] The style to use for the table of contents,
10125  bibliography,
10126  and so forth,
10127  when the document is output to HTML.
10128  For articles,
10129  this should normally be 
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 Section
10135 \end_layout
10136
10137 \end_inset
10138
10139 ;
10140  for books 
10141 \begin_inset Flex Code
10142 status collapsed
10143
10144 \begin_layout Plain Layout
10145 Chapter
10146 \end_layout
10147
10148 \end_inset
10149
10150 .
10151  If it is not given,
10152  then \SpecialChar LyX
10153  will attempt to figure out which layout to use.
10154 \end_layout
10155
10156 \begin_layout Description
10157 \begin_inset Flex Code
10158 status collapsed
10159
10160 \begin_layout Plain Layout
10161 IfCounter
10162 \end_layout
10163
10164 \end_inset
10165
10166  [
10167 \begin_inset Flex Code
10168 status collapsed
10169
10170 \begin_layout Plain Layout
10171 <counter>
10172 \end_layout
10173
10174 \end_inset
10175
10176 ] Modifies the properties of the given counter.
10177  If the counter does not exist,
10178  the statement is ignored.
10179  Must end with 
10180 \begin_inset Quotes eld
10181 \end_inset
10182
10183
10184 \begin_inset Flex Code
10185 status collapsed
10186
10187 \begin_layout Plain Layout
10188 End
10189 \end_layout
10190
10191 \end_inset
10192
10193
10194 \begin_inset Quotes erd
10195 \end_inset
10196
10197 .
10198 \begin_inset Newline newline
10199 \end_inset
10200
10201 See 
10202 \begin_inset CommandInset ref
10203 LatexCommand ref
10204 reference "subsec:Counters"
10205 nolink "false"
10206
10207 \end_inset
10208
10209  for details on counters.
10210 \end_layout
10211
10212 \begin_layout Description
10213 \begin_inset Flex Code
10214 status collapsed
10215
10216 \begin_layout Plain Layout
10217 Input
10218 \end_layout
10219
10220 \end_inset
10221
10222  [
10223 \begin_inset Flex Code
10224 status collapsed
10225
10226 \begin_layout Plain Layout
10227 <filename>
10228 \end_layout
10229
10230 \end_inset
10231
10232 ] This allows you to include another layout definition file within yours to avoid duplicating commands.
10233  Common examples are the standard layout files,
10234  for example,
10235  
10236 \begin_inset Flex Code
10237 status collapsed
10238
10239 \begin_layout Plain Layout
10240 stdclass.inc
10241 \end_layout
10242
10243 \end_inset
10244
10245 ,
10246  which contains most of the basic layouts.
10247 \end_layout
10248
10249 \begin_layout Description
10250 \begin_inset Flex Code
10251 status collapsed
10252
10253 \begin_layout Plain Layout
10254 InputGlobal
10255 \end_layout
10256
10257 \end_inset
10258
10259  [
10260 \begin_inset Flex Code
10261 status collapsed
10262
10263 \begin_layout Plain Layout
10264 <filename>
10265 \end_layout
10266
10267 \end_inset
10268
10269 ] is a variant of the 
10270 \begin_inset Flex Code
10271 status collapsed
10272
10273 \begin_layout Plain Layout
10274 Input
10275 \end_layout
10276
10277 \end_inset
10278
10279  command which does not look for files in the user directory.
10280  This allows to create a file 
10281 \begin_inset Flex Code
10282 status collapsed
10283
10284 \begin_layout Plain Layout
10285 name.layout
10286 \end_layout
10287
10288 \end_inset
10289
10290  or 
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295 name.inc
10296 \end_layout
10297
10298 \end_inset
10299
10300  in the user directory which includes a global file with the same name via 
10301 \begin_inset Flex Code
10302 status collapsed
10303
10304 \begin_layout Plain Layout
10305 InputGlobal name
10306 \end_layout
10307
10308 \end_inset
10309
10310  or 
10311 \begin_inset Flex Code
10312 status collapsed
10313
10314 \begin_layout Plain Layout
10315 InputGlobal name.inc
10316 \end_layout
10317
10318 \end_inset
10319
10320 ,
10321  respectively (with 
10322 \begin_inset Flex Code
10323 status collapsed
10324
10325 \begin_layout Plain Layout
10326 Input
10327 \end_layout
10328
10329 \end_inset
10330
10331 ,
10332  the file would recursively include itself).
10333  This way,
10334  you can modify global files without having to completely copy them.
10335 \end_layout
10336
10337 \begin_layout Description
10338 \begin_inset Flex Code
10339 status collapsed
10340
10341 \begin_layout Plain Layout
10342 InsetLayout
10343 \end_layout
10344
10345 \end_inset
10346
10347  [
10348 \begin_inset Flex Code
10349 status collapsed
10350
10351 \begin_layout Plain Layout
10352 <type>
10353 \end_layout
10354
10355 \end_inset
10356
10357 ] This section (re-)defines the layout of an inset.
10358  It can be applied to an existing inset or to a new,
10359  user-defined inset,
10360  e.g.,
10361  a new character style.
10362  Must end with 
10363 \begin_inset Quotes eld
10364 \end_inset
10365
10366
10367 \begin_inset Flex Code
10368 status collapsed
10369
10370 \begin_layout Plain Layout
10371 End
10372 \end_layout
10373
10374 \end_inset
10375
10376
10377 \begin_inset Quotes erd
10378 \end_inset
10379
10380 .
10381 \begin_inset Newline newline
10382 \end_inset
10383
10384 See 
10385 \begin_inset CommandInset ref
10386 LatexCommand ref
10387 reference "subsec:Flex-insets-and"
10388 nolink "false"
10389
10390 \end_inset
10391
10392  for more information.
10393  
10394 \end_layout
10395
10396 \begin_layout Description
10397 \begin_inset Flex Code
10398 status collapsed
10399
10400 \begin_layout Plain Layout
10401 LeftMargin
10402 \end_layout
10403
10404 \end_inset
10405
10406  [
10407 \begin_inset Flex Code
10408 status collapsed
10409
10410 \begin_layout Plain Layout
10411 string
10412 \end_layout
10413
10414 \end_inset
10415
10416 ] A string that indicates the width of the left margin on the screen,
10417  for example,
10418  
10419 \begin_inset Quotes eld
10420 \end_inset
10421
10422
10423 \begin_inset Flex Code
10424 status collapsed
10425
10426 \begin_layout Plain Layout
10427 MMMMM
10428 \end_layout
10429
10430 \end_inset
10431
10432
10433 \begin_inset Quotes erd
10434 \end_inset
10435
10436 .
10437  (Note that this is not a `length',
10438  like 
10439 \begin_inset Quotes eld
10440 \end_inset
10441
10442 2ex
10443 \begin_inset Quotes erd
10444 \end_inset
10445
10446 .)
10447 \end_layout
10448
10449 \begin_layout Description
10450 \begin_inset Flex Code
10451 status collapsed
10452
10453 \begin_layout Plain Layout
10454 MaxCiteNames
10455 \end_layout
10456
10457 \end_inset
10458
10459  [
10460 \begin_inset Flex Code
10461 status collapsed
10462
10463 \begin_layout Plain Layout
10464 integer
10465 \end_layout
10466
10467 \end_inset
10468
10469 ] An integer that determines the maximal number of names displayed in an author-year citation before the citation switches to 
10470 \begin_inset Quotes eld
10471 \end_inset
10472
10473 FirstAuthor et al.
10474 \begin_inset Quotes erd
10475 \end_inset
10476
10477 .
10478  Primarily used in cite engine files (see 
10479 \begin_inset CommandInset ref
10480 LatexCommand ref
10481 reference "subsec:Cite-Engine-Files"
10482 plural "false"
10483 caps "false"
10484 noprefix "false"
10485 nolink "false"
10486
10487 \end_inset
10488
10489 ).
10490 \end_layout
10491
10492 \begin_layout Description
10493 \begin_inset Flex Code
10494 status collapsed
10495
10496 \begin_layout Plain Layout
10497 ModifyInsetLayout
10498 \end_layout
10499
10500 \end_inset
10501
10502  [
10503 \begin_inset Flex Code
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 <type>
10508 \end_layout
10509
10510 \end_inset
10511
10512 ] Modifies the layout of an inset.
10513  If the layout does not exist,
10514  this section is ignored.
10515  Must end with 
10516 \begin_inset Quotes eld
10517 \end_inset
10518
10519
10520 \begin_inset Flex Code
10521 status collapsed
10522
10523 \begin_layout Plain Layout
10524 End
10525 \end_layout
10526
10527 \end_inset
10528
10529
10530 \begin_inset Quotes erd
10531 \end_inset
10532
10533 .
10534 \end_layout
10535
10536 \begin_layout Description
10537 \begin_inset Flex Code
10538 status collapsed
10539
10540 \begin_layout Plain Layout
10541 ModifyStyle
10542 \end_layout
10543
10544 \end_inset
10545
10546  [
10547 \begin_inset Flex Code
10548 status collapsed
10549
10550 \begin_layout Plain Layout
10551 <style>
10552 \end_layout
10553
10554 \end_inset
10555
10556 ] Modifies the properties of the given paragraph style.
10557  If the style does not exist,
10558  this section is ignored.
10559  Must end with 
10560 \begin_inset Quotes eld
10561 \end_inset
10562
10563
10564 \begin_inset Flex Code
10565 status collapsed
10566
10567 \begin_layout Plain Layout
10568 End
10569 \end_layout
10570
10571 \end_inset
10572
10573
10574 \begin_inset Quotes erd
10575 \end_inset
10576
10577 .
10578 \end_layout
10579
10580 \begin_layout Description
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 NoCounter
10586 \end_layout
10587
10588 \end_inset
10589
10590  [
10591 \begin_inset Flex Code
10592 status collapsed
10593
10594 \begin_layout Plain Layout
10595 <counter>
10596 \end_layout
10597
10598 \end_inset
10599
10600 ] Deletes an existing counter,
10601  usually one defined in an included file.
10602 \end_layout
10603
10604 \begin_layout Description
10605 \begin_inset Flex Code
10606 status collapsed
10607
10608 \begin_layout Plain Layout
10609 NoFloat
10610 \end_layout
10611
10612 \end_inset
10613
10614  [
10615 \begin_inset Flex Code
10616 status collapsed
10617
10618 \begin_layout Plain Layout
10619 <float>
10620 \end_layout
10621
10622 \end_inset
10623
10624 ] Deletes an existing float.
10625  This is particularly useful when you want to suppress a float that has been defined in an input file.
10626 \end_layout
10627
10628 \begin_layout Description
10629 \begin_inset Flex Code
10630 status collapsed
10631
10632 \begin_layout Plain Layout
10633 NoStyle
10634 \end_layout
10635
10636 \end_inset
10637
10638  [
10639 \begin_inset Flex Code
10640 status collapsed
10641
10642 \begin_layout Plain Layout
10643 <style>
10644 \end_layout
10645
10646 \end_inset
10647
10648 ] Deletes an existing style.
10649 \end_layout
10650
10651 \begin_layout Description
10652 \begin_inset Flex Code
10653 status collapsed
10654
10655 \begin_layout Plain Layout
10656 OutlinerName
10657 \end_layout
10658
10659 \end_inset
10660
10661  [
10662 \begin_inset Flex Code
10663 status collapsed
10664
10665 \begin_layout Plain Layout
10666 <type>
10667 \end_layout
10668
10669 \end_inset
10670
10671 ] [
10672 \begin_inset Flex Code
10673 status collapsed
10674
10675 \begin_layout Plain Layout
10676 <string>
10677 \end_layout
10678
10679 \end_inset
10680
10681 ] Define a new table of contents with type 
10682 \begin_inset Flex Code
10683 status collapsed
10684
10685 \begin_layout Plain Layout
10686 <type>
10687 \end_layout
10688
10689 \end_inset
10690
10691  and name 
10692 \begin_inset Flex Code
10693 status collapsed
10694
10695 \begin_layout Plain Layout
10696 <string>
10697 \end_layout
10698
10699 \end_inset
10700
10701 .
10702  See also the AddToToc commands.
10703 \end_layout
10704
10705 \begin_layout Description
10706 \begin_inset Flex Code
10707 status collapsed
10708
10709 \begin_layout Plain Layout
10710 OutputFormat
10711 \end_layout
10712
10713 \end_inset
10714
10715  [
10716 \begin_inset Flex Code
10717 status collapsed
10718
10719 \begin_layout Plain Layout
10720 <format>
10721 \end_layout
10722
10723 \end_inset
10724
10725 ] The file format (as defined in the \SpecialChar LyX
10726  preferences) produced by this document class.
10727  It is mainly useful when 
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 OutputType
10733 \end_layout
10734
10735 \end_inset
10736
10737  is 
10738 \begin_inset Flex Code
10739 status collapsed
10740
10741 \begin_layout Plain Layout
10742 literate
10743 \end_layout
10744
10745 \end_inset
10746
10747  and one wants to define a new type of literate document.
10748  The format is reset to 
10749 \begin_inset Quotes eld
10750 \end_inset
10751
10752
10753 \begin_inset Flex Code
10754 status collapsed
10755
10756 \begin_layout Plain Layout
10757 latex
10758 \end_layout
10759
10760 \end_inset
10761
10762
10763 \begin_inset Quotes erd
10764 \end_inset
10765
10766  when the corresponding 
10767 \begin_inset Flex Code
10768 status collapsed
10769
10770 \begin_layout Plain Layout
10771 OutputType
10772 \end_layout
10773
10774 \end_inset
10775
10776  parameter is encountered.
10777 \end_layout
10778
10779 \begin_layout Description
10780 \begin_inset Flex Code
10781 status collapsed
10782
10783 \begin_layout Plain Layout
10784 OutputType
10785 \end_layout
10786
10787 \end_inset
10788
10789  [
10790 \begin_inset Flex Code
10791 status collapsed
10792
10793 \begin_layout Plain Layout
10794
10795 \emph on
10796 lat
10797 \emph default
10798 ex
10799 \end_layout
10800
10801 \end_inset
10802
10803 ,
10804  
10805 \begin_inset Flex Code
10806 status collapsed
10807
10808 \begin_layout Plain Layout
10809 literate
10810 \end_layout
10811
10812 \end_inset
10813
10814 ] Specifies what sort of output documents using this class will produce.
10815 \end_layout
10816
10817 \begin_layout Description
10818 \begin_inset Flex Code
10819 status collapsed
10820
10821 \begin_layout Plain Layout
10822 PackageOptions
10823 \end_layout
10824
10825 \end_inset
10826
10827  [
10828 \begin_inset Flex Code
10829 status collapsed
10830
10831 \begin_layout Plain Layout
10832 string
10833 \end_layout
10834
10835 \end_inset
10836
10837  
10838 \begin_inset Flex Code
10839 status collapsed
10840
10841 \begin_layout Plain Layout
10842 string
10843 \end_layout
10844
10845 \end_inset
10846
10847 ] Specifies options,
10848  given in the second string,
10849  for the package named by the first string.
10850  For example,
10851  
10852 \begin_inset Quotes eld
10853 \end_inset
10854
10855
10856 \begin_inset Flex Code
10857 status collapsed
10858
10859 \begin_layout Plain Layout
10860 PackageOptions natbib square
10861 \end_layout
10862
10863 \end_inset
10864
10865
10866 \begin_inset Quotes erd
10867 \end_inset
10868
10869  will cause 
10870 \begin_inset Flex Code
10871 status collapsed
10872
10873 \begin_layout Plain Layout
10874 natbib
10875 \end_layout
10876
10877 \end_inset
10878
10879  to be loaded with the 
10880 \begin_inset Flex Code
10881 status collapsed
10882
10883 \begin_layout Plain Layout
10884 square
10885 \end_layout
10886
10887 \end_inset
10888
10889  option.
10890  (For \SpecialChar TeX
10891 perts,
10892  this causes \SpecialChar LyX
10893  to output:
10894  
10895 \begin_inset Flex Code
10896 status collapsed
10897
10898 \begin_layout Plain Layout
10899
10900 \backslash
10901 PassOptionsToPackage{natbib}{square}
10902 \end_layout
10903
10904 \end_inset
10905
10906  prior to loading 
10907 \begin_inset Flex Code
10908 status collapsed
10909
10910 \begin_layout Plain Layout
10911 natbib
10912 \end_layout
10913
10914 \end_inset
10915
10916 .)
10917 \end_layout
10918
10919 \begin_layout Description
10920 \begin_inset Flex Code
10921 status collapsed
10922
10923 \begin_layout Plain Layout
10924 PageSize
10925 \end_layout
10926
10927 \end_inset
10928
10929  [
10930 \begin_inset Flex Code
10931 status collapsed
10932
10933 \begin_layout Plain Layout
10934
10935 \emph on
10936 custom
10937 \emph default
10938 ,
10939  letter,
10940  legal,
10941  executive,
10942  a0,
10943  a1,
10944  a2,
10945  a3,
10946  a4,
10947  a5,
10948  a6,
10949  b0,
10950  b1,
10951  b2,
10952  b3,
10953  b4,
10954  b5,
10955  b6,
10956  c0,
10957  c1,
10958  c2,
10959  c3,
10960  c4,
10961  c5,
10962  c6,
10963  b0j,
10964  b1j,
10965  b2j,
10966  b3j,
10967  b4j,
10968  b5j,
10969  b6j
10970 \end_layout
10971
10972 \end_inset
10973
10974 ] The default page size.
10975  This is used by some converters.
10976 \end_layout
10977
10978 \begin_layout Description
10979 \begin_inset Flex Code
10980 status collapsed
10981
10982 \begin_layout Plain Layout
10983 PageStyle
10984 \end_layout
10985
10986 \end_inset
10987
10988  [
10989 \begin_inset Flex Code
10990 status collapsed
10991
10992 \begin_layout Plain Layout
10993
10994 \emph on
10995 plain
10996 \end_layout
10997
10998 \end_inset
10999
11000 ,
11001  
11002 \begin_inset Flex Code
11003 status collapsed
11004
11005 \begin_layout Plain Layout
11006 empty
11007 \end_layout
11008
11009 \end_inset
11010
11011 ,
11012  
11013 \begin_inset Flex Code
11014 status collapsed
11015
11016 \begin_layout Plain Layout
11017 headings
11018 \end_layout
11019
11020 \end_inset
11021
11022 ] The default pagestyle.
11023  Can be changed in the 
11024 \begin_inset Flex Noun
11025 status collapsed
11026
11027 \begin_layout Plain Layout
11028 Document\SpecialChar menuseparator
11029 Settings
11030 \end_layout
11031
11032 \end_inset
11033
11034  dialog.
11035 \end_layout
11036
11037 \begin_layout Description
11038 \begin_inset Flex Code
11039 status collapsed
11040
11041 \begin_layout Plain Layout
11042 Preamble
11043 \end_layout
11044
11045 \end_inset
11046
11047  Sets the preamble for the \SpecialChar LaTeX
11048  document.
11049  Note that this will completely override any prior 
11050 \begin_inset Flex Code
11051 status collapsed
11052
11053 \begin_layout Plain Layout
11054 Preamble
11055 \end_layout
11056
11057 \end_inset
11058
11059  or 
11060 \begin_inset Flex Code
11061 status collapsed
11062
11063 \begin_layout Plain Layout
11064 AddToPreamble
11065 \end_layout
11066
11067 \end_inset
11068
11069  declarations.
11070  (Use 
11071 \begin_inset Flex Code
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 AddToPreamble
11076 \end_layout
11077
11078 \end_inset
11079
11080  if you just want to add material to the preamble.) Must end with 
11081 \begin_inset Quotes eld
11082 \end_inset
11083
11084
11085 \begin_inset Flex Code
11086 status collapsed
11087
11088 \begin_layout Plain Layout
11089 EndPreamble
11090 \end_layout
11091
11092 \end_inset
11093
11094
11095 \begin_inset Quotes erd
11096 \end_inset
11097
11098 .
11099 \end_layout
11100
11101 \begin_layout Description
11102 \begin_inset Flex Code
11103 status collapsed
11104
11105 \begin_layout Plain Layout
11106 ProvideInsetLayout
11107 \end_layout
11108
11109 \end_inset
11110
11111  [
11112 \begin_inset Flex Code
11113 status collapsed
11114
11115 \begin_layout Plain Layout
11116 <type>
11117 \end_layout
11118
11119 \end_inset
11120
11121 ] Defines the layout of an inset if it does not already exist.
11122  If the layout does exist,
11123  this section is ignored.
11124  Must end with 
11125 \begin_inset Quotes eld
11126 \end_inset
11127
11128
11129 \begin_inset Flex Code
11130 status collapsed
11131
11132 \begin_layout Plain Layout
11133 End
11134 \end_layout
11135
11136 \end_inset
11137
11138
11139 \begin_inset Quotes erd
11140 \end_inset
11141
11142 .
11143 \end_layout
11144
11145 \begin_layout Description
11146 \begin_inset Flex Code
11147 status collapsed
11148
11149 \begin_layout Plain Layout
11150 Provides
11151 \end_layout
11152
11153 \end_inset
11154
11155  [
11156 \begin_inset Flex Code
11157 status collapsed
11158
11159 \begin_layout Plain Layout
11160 string
11161 \end_layout
11162
11163 \end_inset
11164
11165 ] [
11166 \begin_inset Flex Code
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170
11171 \emph on
11172 0
11173 \end_layout
11174
11175 \end_inset
11176
11177 ,
11178 \begin_inset space \thinspace{}
11179 \end_inset
11180
11181
11182 \begin_inset Flex Code
11183 status collapsed
11184
11185 \begin_layout Plain Layout
11186 1
11187 \end_layout
11188
11189 \end_inset
11190
11191 ] Whether the class already provides the feature 
11192 \begin_inset Flex Code
11193 status collapsed
11194
11195 \begin_layout Plain Layout
11196 string
11197 \end_layout
11198
11199 \end_inset
11200
11201 .
11202  A feature is in general the name of a package (e.
11203 \begin_inset space \thinspace{}
11204 \end_inset
11205
11206 g.
11207 \begin_inset space \space{}
11208 \end_inset
11209
11210
11211 \begin_inset Flex Code
11212 status collapsed
11213
11214 \begin_layout Plain Layout
11215 amsmath
11216 \end_layout
11217
11218 \end_inset
11219
11220  or 
11221 \begin_inset Flex Code
11222 status collapsed
11223
11224 \begin_layout Plain Layout
11225 makeidx
11226 \end_layout
11227
11228 \end_inset
11229
11230 ) or a macro (e.
11231 \begin_inset space \thinspace{}
11232 \end_inset
11233
11234 g.
11235 \begin_inset space \space{}
11236 \end_inset
11237
11238
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 url
11244 \end_layout
11245
11246 \end_inset
11247
11248  or 
11249 \begin_inset Flex Code
11250 status collapsed
11251
11252 \begin_layout Plain Layout
11253 boldsymbol
11254 \end_layout
11255
11256 \end_inset
11257
11258 ).
11259  See 
11260 \begin_inset CommandInset ref
11261 LatexCommand ref
11262 reference "chap:List-of-functions"
11263 nolink "false"
11264
11265 \end_inset
11266
11267  for the list of features.
11268 \end_layout
11269
11270 \begin_layout Description
11271 \begin_inset Flex Code
11272 status collapsed
11273
11274 \begin_layout Plain Layout
11275 ProvidesModule
11276 \end_layout
11277
11278 \end_inset
11279
11280  [
11281 \begin_inset Flex Code
11282 status collapsed
11283
11284 \begin_layout Plain Layout
11285 string
11286 \end_layout
11287
11288 \end_inset
11289
11290 ] Indicates that this layout provides the functionality of the module mentioned,
11291  which should be specified by the filename without the 
11292 \begin_inset Flex Code
11293 status collapsed
11294
11295 \begin_layout Plain Layout
11296 .module
11297 \end_layout
11298
11299 \end_inset
11300
11301  extension.
11302  This will typically be used if the layout includes the module directly,
11303  rather than using the 
11304 \begin_inset Flex Code
11305 status collapsed
11306
11307 \begin_layout Plain Layout
11308 DefaultModule
11309 \end_layout
11310
11311 \end_inset
11312
11313  tag to indicate that it ought to be used.
11314  It could also be used in a module that provided an alternate implementation of the same functionality.
11315 \end_layout
11316
11317 \begin_layout Description
11318 \begin_inset Flex Code
11319 status collapsed
11320
11321 \begin_layout Plain Layout
11322 ProvideStyle
11323 \end_layout
11324
11325 \end_inset
11326
11327  [
11328 \begin_inset Flex Code
11329 status collapsed
11330
11331 \begin_layout Plain Layout
11332 <style>
11333 \end_layout
11334
11335 \end_inset
11336
11337 ] Creates a new paragraph style if it does not already exist.
11338  If the style does exist,
11339  this section is ignored.
11340  Must end with 
11341 \begin_inset Quotes eld
11342 \end_inset
11343
11344
11345 \begin_inset Flex Code
11346 status collapsed
11347
11348 \begin_layout Plain Layout
11349 End
11350 \end_layout
11351
11352 \end_inset
11353
11354
11355 \begin_inset Quotes erd
11356 \end_inset
11357
11358 .
11359 \end_layout
11360
11361 \begin_layout Description
11362 \begin_inset Flex Code
11363 status collapsed
11364
11365 \begin_layout Plain Layout
11366 Requires
11367 \end_layout
11368
11369 \end_inset
11370
11371  [
11372 \begin_inset Flex Code
11373 status collapsed
11374
11375 \begin_layout Plain Layout
11376 string
11377 \end_layout
11378
11379 \end_inset
11380
11381 ] Whether the class requires the feature 
11382 \begin_inset Flex Code
11383 status collapsed
11384
11385 \begin_layout Plain Layout
11386 string
11387 \end_layout
11388
11389 \end_inset
11390
11391 .
11392  Multiple features must be separated by commas.
11393  Note that you can only request supported features.
11394  (See 
11395 \begin_inset CommandInset ref
11396 LatexCommand ref
11397 reference "chap:List-of-functions"
11398 nolink "false"
11399
11400 \end_inset
11401
11402  for the list of features.).
11403  If you require a package with specific options,
11404  you can additionally use 
11405 \begin_inset Flex Code
11406 status collapsed
11407
11408 \begin_layout Plain Layout
11409 PackageOptions
11410 \end_layout
11411
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 RightMargin
11423 \end_layout
11424
11425 \end_inset
11426
11427  [
11428 \begin_inset Flex Code
11429 status collapsed
11430
11431 \begin_layout Plain Layout
11432 string
11433 \end_layout
11434
11435 \end_inset
11436
11437 ] A string that indicates the width of the right margin on the screen,
11438  for example,
11439  
11440 \begin_inset Quotes eld
11441 \end_inset
11442
11443
11444 \begin_inset Flex Code
11445 status collapsed
11446
11447 \begin_layout Plain Layout
11448 MMMMM
11449 \end_layout
11450
11451 \end_inset
11452
11453
11454 \begin_inset Quotes erd
11455 \end_inset
11456
11457 .
11458 \end_layout
11459
11460 \begin_layout Description
11461 \begin_inset Flex Code
11462 status collapsed
11463
11464 \begin_layout Plain Layout
11465 SecNumDepth
11466 \end_layout
11467
11468 \end_inset
11469
11470  [
11471 \begin_inset Flex Code
11472 status collapsed
11473
11474 \begin_layout Plain Layout
11475 int=3
11476 \end_layout
11477
11478 \end_inset
11479
11480 ] Sets which divisions get numbered.
11481  Corresponds to the
11482 \begin_inset Newline newline
11483 \end_inset
11484
11485
11486 \begin_inset Flex Code
11487 status collapsed
11488
11489 \begin_layout Plain Layout
11490 secnumdepth
11491 \end_layout
11492
11493 \end_inset
11494
11495  counter in \SpecialChar LaTeX
11496 .
11497 \end_layout
11498
11499 \begin_layout Description
11500 \begin_inset Flex Code
11501 status collapsed
11502
11503 \begin_layout Plain Layout
11504 Sides
11505 \end_layout
11506
11507 \end_inset
11508
11509  [
11510 \begin_inset Flex Code
11511 status collapsed
11512
11513 \begin_layout Plain Layout
11514
11515 \emph on
11516 1
11517 \end_layout
11518
11519 \end_inset
11520
11521 ,
11522 \begin_inset space \thinspace{}
11523 \end_inset
11524
11525
11526 \begin_inset Flex Code
11527 status collapsed
11528
11529 \begin_layout Plain Layout
11530 2
11531 \end_layout
11532
11533 \end_inset
11534
11535 ] Whether the class-default should be printing on one or both sides of the paper.
11536  Can be changed in the 
11537 \begin_inset Flex Noun
11538 status collapsed
11539
11540 \begin_layout Plain Layout
11541 Document\SpecialChar menuseparator
11542 Settings
11543 \end_layout
11544
11545 \end_inset
11546
11547  dialog.
11548 \end_layout
11549
11550 \begin_layout Description
11551 \begin_inset Flex Code
11552 status collapsed
11553
11554 \begin_layout Plain Layout
11555 Style
11556 \end_layout
11557
11558 \end_inset
11559
11560  [
11561 \begin_inset Flex Code
11562 status collapsed
11563
11564 \begin_layout Plain Layout
11565 <name>
11566 \end_layout
11567
11568 \end_inset
11569
11570 ] This sequence defines a paragraph style.
11571  If the style does not yet exist,
11572  it is created;
11573  if it does exist,
11574  its parameters are modified.
11575  Must end with 
11576 \begin_inset Quotes eld
11577 \end_inset
11578
11579
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584 End
11585 \end_layout
11586
11587 \end_inset
11588
11589
11590 \begin_inset Quotes erd
11591 \end_inset
11592
11593 .
11594 \begin_inset Newline newline
11595 \end_inset
11596
11597 See 
11598 \begin_inset CommandInset ref
11599 LatexCommand ref
11600 reference "subsec:Paragraph-Styles"
11601 nolink "false"
11602
11603 \end_inset
11604
11605  for details on paragraph styles.
11606 \end_layout
11607
11608 \begin_layout Description
11609 \begin_inset Flex Code
11610 status collapsed
11611
11612 \begin_layout Plain Layout
11613 TableStyle
11614 \end_layout
11615
11616 \end_inset
11617
11618  [
11619 \begin_inset Flex Code
11620 status collapsed
11621
11622 \begin_layout Plain Layout
11623 <name>
11624 \end_layout
11625
11626 \end_inset
11627
11628 ] defines the default table style that is used when inserting a table.
11629  The following styles are available:
11630 \end_layout
11631
11632 \begin_deeper
11633 \begin_layout Itemize
11634 \begin_inset Flex Code
11635 status collapsed
11636
11637 \begin_layout Plain Layout
11638 Formal_with_Footline
11639 \end_layout
11640
11641 \end_inset
11642
11643 :
11644  formal (
11645 \begin_inset Quotes eld
11646 \end_inset
11647
11648 booktabs
11649 \begin_inset Quotes erd
11650 \end_inset
11651
11652 ) style with horizontal lines only,
11653  using a bold top and bottom line,
11654  the first and last row are additionally separated from the table body with a thin middle line.
11655 \end_layout
11656
11657 \begin_layout Itemize
11658 \begin_inset Flex Code
11659 status collapsed
11660
11661 \begin_layout Plain Layout
11662 Formal_without_Footline
11663 \end_layout
11664
11665 \end_inset
11666
11667 :
11668  same as the above,
11669  but the last row is not separated with a middle line from the body.
11670 \end_layout
11671
11672 \begin_layout Itemize
11673 \begin_inset Flex Code
11674 status collapsed
11675
11676 \begin_layout Plain Layout
11677 Simple_Grid
11678 \end_layout
11679
11680 \end_inset
11681
11682 :
11683  Simple table lines.
11684 \end_layout
11685
11686 \begin_layout Itemize
11687 \begin_inset Flex Code
11688 status collapsed
11689
11690 \begin_layout Plain Layout
11691 Grid_with_Head
11692 \end_layout
11693
11694 \end_inset
11695
11696 :
11697  Like 
11698 \begin_inset Flex Code
11699 status collapsed
11700
11701 \begin_layout Plain Layout
11702 Simple_Grid
11703 \end_layout
11704
11705 \end_inset
11706
11707 ,
11708  but with the header row offset with a second horizontal line.
11709  This is also the default style of \SpecialChar LyX
11710 .
11711 \end_layout
11712
11713 \begin_layout Itemize
11714 \begin_inset Flex Code
11715 status collapsed
11716
11717 \begin_layout Plain Layout
11718 No_Borders
11719 \end_layout
11720
11721 \end_inset
11722
11723 :
11724  Table without lines.
11725 \end_layout
11726
11727 \end_deeper
11728 \begin_layout Description
11729 \begin_inset Flex Code
11730 status collapsed
11731
11732 \begin_layout Plain Layout
11733 TitleLatexName
11734 \end_layout
11735
11736 \end_inset
11737
11738  [
11739 \begin_inset Flex Code
11740 status collapsed
11741
11742 \begin_layout Plain Layout
11743 string="maketitle"
11744 \end_layout
11745
11746 \end_inset
11747
11748 ] The name of the command or environment to be used with 
11749 \begin_inset Flex Code
11750 status collapsed
11751
11752 \begin_layout Plain Layout
11753 TitleLatexType
11754 \end_layout
11755
11756 \end_inset
11757
11758 .
11759 \end_layout
11760
11761 \begin_layout Description
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 TitleLatexType
11767 \end_layout
11768
11769 \end_inset
11770
11771  [
11772 \begin_inset Flex Code
11773 status collapsed
11774
11775 \begin_layout Plain Layout
11776
11777 \emph on
11778 CommandAfter
11779 \end_layout
11780
11781 \end_inset
11782
11783 ,
11784  
11785 \begin_inset Flex Code
11786 status collapsed
11787
11788 \begin_layout Plain Layout
11789 Environment
11790 \end_layout
11791
11792 \end_inset
11793
11794 ] Indicates what kind of markup is used to define the title of a document.
11795  
11796 \begin_inset Flex Code
11797 status collapsed
11798
11799 \begin_layout Plain Layout
11800 CommandAfter
11801 \end_layout
11802
11803 \end_inset
11804
11805  means that the macro with name 
11806 \begin_inset Flex Code
11807 status collapsed
11808
11809 \begin_layout Plain Layout
11810 TitleLatexName
11811 \end_layout
11812
11813 \end_inset
11814
11815  will be inserted after the last layout which has 
11816 \begin_inset Quotes eld
11817 \end_inset
11818
11819
11820 \begin_inset Flex Code
11821 status collapsed
11822
11823 \begin_layout Plain Layout
11824 InTitle
11825 \begin_inset space ~
11826 \end_inset
11827
11828 1
11829 \end_layout
11830
11831 \end_inset
11832
11833
11834 \begin_inset Quotes erd
11835 \end_inset
11836
11837 .
11838  
11839 \begin_inset Flex Code
11840 status collapsed
11841
11842 \begin_layout Plain Layout
11843 Environment
11844 \end_layout
11845
11846 \end_inset
11847
11848  corresponds to the case where all layouts which have 
11849 \begin_inset Quotes eld
11850 \end_inset
11851
11852
11853 \begin_inset Flex Code
11854 status collapsed
11855
11856 \begin_layout Plain Layout
11857 InTitle
11858 \begin_inset space ~
11859 \end_inset
11860
11861 1
11862 \end_layout
11863
11864 \end_inset
11865
11866
11867 \begin_inset Quotes erd
11868 \end_inset
11869
11870  should be enclosed into the 
11871 \begin_inset Flex Code
11872 status collapsed
11873
11874 \begin_layout Plain Layout
11875 TitleLatexName
11876 \end_layout
11877
11878 \end_inset
11879
11880  environment.
11881 \end_layout
11882
11883 \begin_layout Description
11884 \begin_inset Flex Code
11885 status collapsed
11886
11887 \begin_layout Plain Layout
11888 TocDepth
11889 \end_layout
11890
11891 \end_inset
11892
11893  [
11894 \begin_inset Flex Code
11895 status collapsed
11896
11897 \begin_layout Plain Layout
11898 int=3
11899 \end_layout
11900
11901 \end_inset
11902
11903 ] Sets which divisions are included in the table of contents.
11904  Corresponds to the 
11905 \begin_inset Flex Code
11906 status collapsed
11907
11908 \begin_layout Plain Layout
11909 tocdepth
11910 \end_layout
11911
11912 \end_inset
11913
11914  counter in \SpecialChar LaTeX
11915 .
11916 \end_layout
11917
11918 \begin_layout Subsection
11919 \begin_inset Flex Code
11920 status collapsed
11921
11922 \begin_layout Plain Layout
11923 ClassOptions
11924 \end_layout
11925
11926 \end_inset
11927
11928  section
11929 \begin_inset CommandInset label
11930 LatexCommand label
11931 name "subsec:ClassOptions"
11932
11933 \end_inset
11934
11935
11936 \end_layout
11937
11938 \begin_layout Standard
11939 The 
11940 \begin_inset Flex Code
11941 status collapsed
11942
11943 \begin_layout Plain Layout
11944 ClassOptions
11945 \end_layout
11946
11947 \end_inset
11948
11949  section can contain the following entries:
11950 \end_layout
11951
11952 \begin_layout Description
11953 \begin_inset Flex Code
11954 status collapsed
11955
11956 \begin_layout Plain Layout
11957 FontSize
11958 \end_layout
11959
11960 \end_inset
11961
11962  [
11963 \begin_inset Flex Code
11964 status collapsed
11965
11966 \begin_layout Plain Layout
11967 string="10|11|12"
11968 \end_layout
11969
11970 \end_inset
11971
11972 ] The list of available font sizes for the document's main font,
11973  separated by 
11974 \begin_inset Quotes eld
11975 \end_inset
11976
11977
11978 \begin_inset Flex Code
11979 status collapsed
11980
11981 \begin_layout Plain Layout
11982 |
11983 \end_layout
11984
11985 \end_inset
11986
11987
11988 \begin_inset Quotes erd
11989 \end_inset
11990
11991 .
11992  Any number is possible.
11993 \end_layout
11994
11995 \begin_layout Description
11996 \begin_inset Flex Code
11997 status collapsed
11998
11999 \begin_layout Plain Layout
12000 FontSizeFormat
12001 \end_layout
12002
12003 \end_inset
12004
12005  [
12006 \begin_inset Flex Code
12007 status collapsed
12008
12009 \begin_layout Plain Layout
12010 string
12011 \end_layout
12012
12013 \end_inset
12014
12015 ] The format for the font size option.
12016  Default:
12017  
12018 \begin_inset Flex Code
12019 status collapsed
12020
12021 \begin_layout Plain Layout
12022 $$spt
12023 \end_layout
12024
12025 \end_inset
12026
12027 .
12028  
12029 \begin_inset Flex Code
12030 status collapsed
12031
12032 \begin_layout Plain Layout
12033 $$s
12034 \end_layout
12035
12036 \end_inset
12037
12038  is a placeholder for the font size.
12039 \end_layout
12040
12041 \begin_layout Description
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046 PageSize
12047 \end_layout
12048
12049 \end_inset
12050
12051  [
12052 \begin_inset Flex Code
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056 string="letter|\SpecialChar allowbreak
12057 legal|\SpecialChar allowbreak
12058 executive|\SpecialChar allowbreak
12059 a0|\SpecialChar allowbreak
12060 a1|\SpecialChar allowbreak
12061 a2|\SpecialChar allowbreak
12062 a3|\SpecialChar allowbreak
12063 a4|\SpecialChar allowbreak
12064 a5|\SpecialChar allowbreak
12065 a6|\SpecialChar allowbreak
12066 b0|\SpecialChar allowbreak
12067 b1|\SpecialChar allowbreak
12068 b2|\SpecialChar allowbreak
12069 b3|\SpecialChar allowbreak
12070 b4|\SpecialChar allowbreak
12071 b5|\SpecialChar allowbreak
12072 b6|\SpecialChar allowbreak
12073 c0|\SpecialChar allowbreak
12074 c1|\SpecialChar allowbreak
12075 c2|\SpecialChar allowbreak
12076 c3|\SpecialChar allowbreak
12077 c4|\SpecialChar allowbreak
12078 c5|\SpecialChar allowbreak
12079 c6|\SpecialChar allowbreak
12080 b0j|\SpecialChar allowbreak
12081 b1j|\SpecialChar allowbreak
12082 b2j|\SpecialChar allowbreak
12083 b3j|\SpecialChar allowbreak
12084 b4j|\SpecialChar allowbreak
12085 b5j|\SpecialChar allowbreak
12086 b6j"
12087 \end_layout
12088
12089 \end_inset
12090
12091 ] The list of available page sizes,
12092  separated by 
12093 \begin_inset Quotes eld
12094 \end_inset
12095
12096
12097 \begin_inset Flex Code
12098 status collapsed
12099
12100 \begin_layout Plain Layout
12101 |
12102 \end_layout
12103
12104 \end_inset
12105
12106
12107 \begin_inset Quotes erd
12108 \end_inset
12109
12110 .
12111  Currently,
12112  only the listed sizes are supported.
12113  Other sizes might be entered as custom class option.
12114 \end_layout
12115
12116 \begin_layout Description
12117 \begin_inset Flex Code
12118 status collapsed
12119
12120 \begin_layout Plain Layout
12121 PageSizeFormat
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 ] The format for the page size option.
12137  Default:
12138  
12139 \begin_inset Flex Code
12140 status collapsed
12141
12142 \begin_layout Plain Layout
12143 $$spaper
12144 \end_layout
12145
12146 \end_inset
12147
12148 .
12149  
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 $$s
12155 \end_layout
12156
12157 \end_inset
12158
12159  is a placeholder for the paper size.
12160 \end_layout
12161
12162 \begin_layout Description
12163 \begin_inset Flex Code
12164 status collapsed
12165
12166 \begin_layout Plain Layout
12167 PageStyle
12168 \end_layout
12169
12170 \end_inset
12171
12172  [
12173 \begin_inset Flex Code
12174 status collapsed
12175
12176 \begin_layout Plain Layout
12177 string="empty|plain|headings|fancy"
12178 \end_layout
12179
12180 \end_inset
12181
12182 ] The list of available page sty\SpecialChar softhyphen
12183 les,
12184  separated by 
12185 \begin_inset Quotes eld
12186 \end_inset
12187
12188
12189 \begin_inset Flex Code
12190 status collapsed
12191
12192 \begin_layout Plain Layout
12193 |
12194 \end_layout
12195
12196 \end_inset
12197
12198
12199 \begin_inset Quotes erd
12200 \end_inset
12201
12202 .
12203 \end_layout
12204
12205 \begin_layout Description
12206 \begin_inset Flex Code
12207 status collapsed
12208
12209 \begin_layout Plain Layout
12210 Other
12211 \end_layout
12212
12213 \end_inset
12214
12215  [
12216 \begin_inset Flex Code
12217 status collapsed
12218
12219 \begin_layout Plain Layout
12220 string=""
12221 \end_layout
12222
12223 \end_inset
12224
12225 ] Some document class options,
12226  separated by a comma,
12227  that will be added to the optional part of the 
12228 \begin_inset Flex Code
12229 status collapsed
12230
12231 \begin_layout Plain Layout
12232
12233 \backslash
12234 documentclass
12235 \end_layout
12236
12237 \end_inset
12238
12239  command.
12240 \end_layout
12241
12242 \begin_layout Standard
12243 The 
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248 ClassOptions
12249 \end_layout
12250
12251 \end_inset
12252
12253  section must end with 
12254 \begin_inset Quotes eld
12255 \end_inset
12256
12257
12258 \begin_inset Flex Code
12259 status collapsed
12260
12261 \begin_layout Plain Layout
12262 End
12263 \end_layout
12264
12265 \end_inset
12266
12267
12268 \begin_inset Quotes erd
12269 \end_inset
12270
12271 .
12272 \end_layout
12273
12274 \begin_layout Subsection
12275 Paragraph styles
12276 \begin_inset CommandInset label
12277 LatexCommand label
12278 name "subsec:Paragraph-Styles"
12279
12280 \end_inset
12281
12282
12283 \end_layout
12284
12285 \begin_layout Standard
12286 A paragraph style description looks like this:
12287 \begin_inset Foot
12288 status collapsed
12289
12290 \begin_layout Plain Layout
12291 Note that this will either define a new style or modify an existing one.
12292 \end_layout
12293
12294 \end_inset
12295
12296
12297 \end_layout
12298
12299 \begin_layout LyX-Code
12300 Style 
12301 \family roman
12302 \emph on
12303 name
12304 \end_layout
12305
12306 \begin_layout LyX-Code
12307  ...
12308 \end_layout
12309
12310 \begin_layout LyX-Code
12311 End
12312 \end_layout
12313
12314 \begin_layout Standard
12315 where the following commands are allowed:
12316 \end_layout
12317
12318 \begin_layout Description
12319 \begin_inset Flex Code
12320 status collapsed
12321
12322 \begin_layout Plain Layout
12323 AddToToc
12324 \end_layout
12325
12326 \end_inset
12327
12328  [
12329 \begin_inset Flex Code
12330 status collapsed
12331
12332 \begin_layout Plain Layout
12333 string
12334 \end_layout
12335
12336 \end_inset
12337
12338 =""] This paragraph will appear in the table of contents of the given type.
12339  An empty string disables.
12340  See also the OutlinerName and the IsTocCaption commands.
12341  Default:
12342  disabled.
12343 \end_layout
12344
12345 \begin_layout Description
12346 \begin_inset Flex Code
12347 status collapsed
12348
12349 \begin_layout Plain Layout
12350 Align
12351 \end_layout
12352
12353 \end_inset
12354
12355  [
12356 \begin_inset Flex Code
12357 status collapsed
12358
12359 \begin_layout Plain Layout
12360
12361 \emph on
12362 block
12363 \emph default
12364 ,
12365  left,
12366  right,
12367  center
12368 \end_layout
12369
12370 \end_inset
12371
12372 ] Paragraph alignment.
12373 \end_layout
12374
12375 \begin_layout Description
12376 \begin_inset Flex Code
12377 status collapsed
12378
12379 \begin_layout Plain Layout
12380 AlignPossible
12381 \end_layout
12382
12383 \end_inset
12384
12385  [
12386 \begin_inset Flex Code
12387 status collapsed
12388
12389 \begin_layout Plain Layout
12390
12391 \emph on
12392 block
12393 \emph default
12394 ,
12395  left,
12396  right,
12397  center
12398 \end_layout
12399
12400 \end_inset
12401
12402 ] A comma separated list of permitted alignments.
12403  (Some \SpecialChar LaTeX
12404  styles prohibit certain alignments,
12405  since those wouldn't make sense.
12406  For example a right-aligned or centered enumeration isn't possible.)
12407 \end_layout
12408
12409 \begin_layout Description
12410 \begin_inset Flex Code
12411 status collapsed
12412
12413 \begin_layout Plain Layout
12414 Argument
12415 \end_layout
12416
12417 \end_inset
12418
12419  [
12420 \begin_inset Flex Code
12421 status collapsed
12422
12423 \begin_layout Plain Layout
12424 int
12425 \end_layout
12426
12427 \end_inset
12428
12429 ] Defines argument number <int> of a command\SpecialChar breakableslash
12430 environment associated with the current style.
12431  The definition must end with 
12432 \begin_inset Flex Code
12433 status collapsed
12434
12435 \begin_layout Plain Layout
12436 EndArgument
12437 \end_layout
12438
12439 \end_inset
12440
12441 .
12442  See 
12443 \begin_inset CommandInset ref
12444 LatexCommand ref
12445 reference "subsec:Arguments"
12446 plural "false"
12447 caps "false"
12448 noprefix "false"
12449 nolink "false"
12450
12451 \end_inset
12452
12453  for more information.
12454  
12455 \end_layout
12456
12457 \begin_layout Description
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462 AutoNests
12463 \end_layout
12464
12465 \end_inset
12466
12467  Includes a comma-separated list of layouts that should be nested in and after the current layout.
12468  Only makes sense for nestable layouts (such as environments).
12469  Must be ended by 
12470 \begin_inset Quotes eld
12471 \end_inset
12472
12473
12474 \begin_inset Flex Code
12475 status collapsed
12476
12477 \begin_layout Plain Layout
12478 EndAutoNests
12479 \end_layout
12480
12481 \end_inset
12482
12483
12484 \begin_inset Quotes erd
12485 \end_inset
12486
12487 .
12488  See also 
12489 \begin_inset Flex Code
12490 status collapsed
12491
12492 \begin_layout Plain Layout
12493 IsAutoNestedBy
12494 \end_layout
12495
12496 \end_inset
12497
12498 .
12499 \end_layout
12500
12501 \begin_layout Description
12502 \begin_inset Flex Code
12503 status collapsed
12504
12505 \begin_layout Plain Layout
12506 BabelPreamble
12507 \end_layout
12508
12509 \end_inset
12510
12511  Note that this will completely override any prior 
12512 \begin_inset Flex Code
12513 status collapsed
12514
12515 \begin_layout Plain Layout
12516 BabelPreamble
12517 \end_layout
12518
12519 \end_inset
12520
12521  declaration for this style.
12522  Must end with 
12523 \begin_inset Quotes eld
12524 \end_inset
12525
12526
12527 \begin_inset Flex Code
12528 status collapsed
12529
12530 \begin_layout Plain Layout
12531 EndBabelPreamble
12532 \end_layout
12533
12534 \end_inset
12535
12536
12537 \begin_inset Quotes erd
12538 \end_inset
12539
12540 .
12541  See 
12542 \begin_inset CommandInset ref
12543 LatexCommand ref
12544 reference "subsec:I18n"
12545 nolink "false"
12546
12547 \end_inset
12548
12549  for details on its use.
12550 \end_layout
12551
12552 \begin_layout Description
12553 \begin_inset Flex Code
12554 status collapsed
12555
12556 \begin_layout Plain Layout
12557 BottomSep
12558 \end_layout
12559
12560 \end_inset
12561
12562  [
12563 \begin_inset Flex Code
12564 status collapsed
12565
12566 \begin_layout Plain Layout
12567 float=0
12568 \end_layout
12569
12570 \end_inset
12571
12572 ]
12573 \begin_inset Foot
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 Note that a `float' here is a real number,
12578  such as:
12579  1.5.
12580 \end_layout
12581
12582 \end_inset
12583
12584  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
12585  If the next paragraph has another style,
12586  the separations are not simply added,
12587  but the maximum is taken.
12588 \end_layout
12589
12590 \begin_layout Description
12591 \begin_inset Flex Code
12592 status collapsed
12593
12594 \begin_layout Plain Layout
12595 Category
12596 \end_layout
12597
12598 \end_inset
12599
12600  [
12601 \begin_inset Flex Code
12602 status collapsed
12603
12604 \begin_layout Plain Layout
12605 string
12606 \end_layout
12607
12608 \end_inset
12609
12610 ] The category for this style.
12611  This is used to group related styles in the style combobox on the toolbar.
12612  Any string can be used,
12613  but you may want to use existing categories with your own styles.
12614  
12615 \end_layout
12616
12617 \begin_layout Description
12618 \begin_inset Flex Code
12619 status collapsed
12620
12621 \begin_layout Plain Layout
12622 CopyStyle
12623 \end_layout
12624
12625 \end_inset
12626
12627  [
12628 \begin_inset Flex Code
12629 status collapsed
12630
12631 \begin_layout Plain Layout
12632 string
12633 \end_layout
12634
12635 \end_inset
12636
12637 ] Copies all the features of an existing style into the current one.
12638  Note that this copies the style as it is defined at that point.
12639  Later changes to it will not affect styles into which it has been copied.
12640 \end_layout
12641
12642 \begin_layout Description
12643 \begin_inset Flex Code
12644 status collapsed
12645
12646 \begin_layout Plain Layout
12647 DocBookGenerateTitle
12648 \end_layout
12649
12650 \end_inset
12651
12652  [
12653 \begin_inset Flex Code
12654 status collapsed
12655
12656 \begin_layout Plain Layout
12657 bool=false
12658 \end_layout
12659
12660 \end_inset
12661
12662 ] Generates a 
12663 \begin_inset Flex Code
12664 status collapsed
12665
12666 \begin_layout Plain Layout
12667 title
12668 \end_layout
12669
12670 \end_inset
12671
12672  tag after the wrapper tag.
12673  This parameter should only be used with
12674 \begin_inset Flex Code
12675 status collapsed
12676
12677 \begin_layout Plain Layout
12678 DocBookWrapperTag
12679 \end_layout
12680
12681 \end_inset
12682
12683 ,
12684  otherwise the title will be output
12685 \emph on
12686  before
12687 \emph default
12688  the contents of the environment.
12689  The generated title is the same as the LyXHTML label:
12690  a combination of the environment type and its number.
12691  A major use is when DocBook has no close mapping for LaTeX environments and users must fallback to using a generic container such as
12692 \begin_inset Flex Code
12693 status collapsed
12694
12695 \begin_layout Plain Layout
12696 figure
12697 \end_layout
12698
12699 \end_inset
12700
12701 ,
12702  which requires a title although there is none in LaTeX.
12703  This feature is heavily used for theorem-like environments.
12704 \end_layout
12705
12706 \begin_layout Description
12707 \begin_inset Flex Code
12708 status collapsed
12709
12710 \begin_layout Plain Layout
12711 DependsOn
12712 \end_layout
12713
12714 \end_inset
12715
12716  [
12717 \begin_inset Flex Code
12718 status collapsed
12719
12720 \begin_layout Plain Layout
12721 <name>
12722 \end_layout
12723
12724 \end_inset
12725
12726 ] The name of a style whose preamble should be output 
12727 \emph on
12728 before
12729 \emph default
12730  this one.
12731  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
12732 \begin_inset Foot
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 Note that,
12737  besides that functionality,
12738  there is no way to ensure any ordering of preambles.
12739  The ordering that you see in a given version of \SpecialChar LyX
12740  may change without warning in later versions.
12741 \end_layout
12742
12743 \end_inset
12744
12745
12746 \end_layout
12747
12748 \begin_layout Description
12749 \begin_inset Flex Code
12750 status collapsed
12751
12752 \begin_layout Plain Layout
12753 EndLabelType
12754 \end_layout
12755
12756 \end_inset
12757
12758  [
12759 \begin_inset Flex Code
12760 status collapsed
12761
12762 \begin_layout Plain Layout
12763
12764 \emph on
12765 No_Label
12766 \emph default
12767 ,
12768  Box,
12769  Filled_Box,
12770  Static
12771 \end_layout
12772
12773 \end_inset
12774
12775 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
12776 \begin_inset Flex Code
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780 LatexType
12781 \end_layout
12782
12783 \end_inset
12784
12785  is
12786 \begin_inset Newline newline
12787 \end_inset
12788
12789
12790 \begin_inset Flex Code
12791 status collapsed
12792
12793 \begin_layout Plain Layout
12794 Environment
12795 \end_layout
12796
12797 \end_inset
12798
12799 ,
12800  
12801 \begin_inset Flex Code
12802 status collapsed
12803
12804 \begin_layout Plain Layout
12805 Item_Environment
12806 \end_layout
12807
12808 \end_inset
12809
12810  or 
12811 \begin_inset Flex Code
12812 status collapsed
12813
12814 \begin_layout Plain Layout
12815 List_Environment
12816 \end_layout
12817
12818 \end_inset
12819
12820 ).
12821  
12822 \begin_inset Flex Code
12823 status collapsed
12824
12825 \begin_layout Plain Layout
12826 No_Label
12827 \end_layout
12828
12829 \end_inset
12830
12831  means 
12832 \begin_inset Quotes eld
12833 \end_inset
12834
12835 nothing
12836 \begin_inset Quotes erd
12837 \end_inset
12838
12839 ,
12840  
12841 \begin_inset Flex Code
12842 status collapsed
12843
12844 \begin_layout Plain Layout
12845 Box
12846 \end_layout
12847
12848 \end_inset
12849
12850  (resp.
12851 \begin_inset space \space{}
12852 \end_inset
12853
12854
12855 \begin_inset Flex Code
12856 status collapsed
12857
12858 \begin_layout Plain Layout
12859 Filled_Box
12860 \end_layout
12861
12862 \end_inset
12863
12864 ) is a white (resp.
12865 \begin_inset space ~
12866 \end_inset
12867
12868 black) square suitable for end of proof markers,
12869  
12870 \begin_inset Flex Code
12871 status collapsed
12872
12873 \begin_layout Plain Layout
12874 Static
12875 \end_layout
12876
12877 \end_inset
12878
12879  is an explicit text string.
12880 \end_layout
12881
12882 \begin_layout Description
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887 EndLabelString
12888 \end_layout
12889
12890 \end_inset
12891
12892  [
12893 \begin_inset Flex Code
12894 status collapsed
12895
12896 \begin_layout Plain Layout
12897 string=""
12898 \end_layout
12899
12900 \end_inset
12901
12902 ] The string used for a label with a 
12903 \begin_inset Flex Code
12904 status collapsed
12905
12906 \begin_layout Plain Layout
12907 Static
12908 \end_layout
12909
12910 \end_inset
12911
12912
12913 \begin_inset Newline newline
12914 \end_inset
12915
12916
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 EndLabelType
12922 \end_layout
12923
12924 \end_inset
12925
12926 .
12927  
12928 \end_layout
12929
12930 \begin_layout Description
12931 \begin_inset Flex Code
12932 status collapsed
12933
12934 \begin_layout Plain Layout
12935 Font
12936 \end_layout
12937
12938 \end_inset
12939
12940  The font used for both the text body 
12941 \emph on
12942 and
12943 \emph default
12944  the label.
12945  See 
12946 \begin_inset CommandInset ref
12947 LatexCommand ref
12948 reference "subsec:Font-description"
12949 nolink "false"
12950
12951 \end_inset
12952
12953 .
12954  Note that defining this font automatically defines the 
12955 \begin_inset Flex Code
12956 status collapsed
12957
12958 \begin_layout Plain Layout
12959 LabelFont
12960 \end_layout
12961
12962 \end_inset
12963
12964  to the same value.
12965  So you should define this one first if you also want to define 
12966 \begin_inset Flex Code
12967 status collapsed
12968
12969 \begin_layout Plain Layout
12970 LabelFont
12971 \end_layout
12972
12973 \end_inset
12974
12975 .
12976 \end_layout
12977
12978 \begin_layout Description
12979 \begin_inset Flex Code
12980 status collapsed
12981
12982 \begin_layout Plain Layout
12983 ForceLocal
12984 \end_layout
12985
12986 \end_inset
12987
12988  [
12989 \begin_inset Flex Code
12990 status collapsed
12991
12992 \begin_layout Plain Layout
12993 int=0
12994 \end_layout
12995
12996 \end_inset
12997
12998 ] Used for backporting new styles to stable \SpecialChar LyX
12999  versions.
13000  The first stable version that supports this tag is \SpecialChar LyX
13001  2.1.0.
13002  The argument is a number which may either be 0,
13003  -1 or any value greater than zero.
13004  If the 
13005 \begin_inset Flex Code
13006 status collapsed
13007
13008 \begin_layout Plain Layout
13009 ForceLocal
13010 \end_layout
13011
13012 \end_inset
13013
13014  flag of a style is greater than zero,
13015  it will always be written to the document header.
13016  If a .lyx file is read,
13017  the style definitions from the document header are added to the document class.
13018  Therefore even older \SpecialChar LyX
13019  versions can handle the style.
13020  The argument of 
13021 \begin_inset Flex Code
13022 status collapsed
13023
13024 \begin_layout Plain Layout
13025 ForceLocal
13026 \end_layout
13027
13028 \end_inset
13029
13030  is a version number:
13031  if the style is read,
13032  and the version number is less than the version number of the already existing style in the document class,
13033  the new style is ignored.
13034  If the version number is greater,
13035  the new style replaces the existing style.
13036  A value of -1 means an infinite version number,
13037  i.
13038 \begin_inset space \thinspace{}
13039 \end_inset
13040
13041 e.
13042 \begin_inset space \space{}
13043 \end_inset
13044
13045 the style is always used.
13046 \end_layout
13047
13048 \begin_layout Description
13049 \begin_inset Flex Code
13050 status collapsed
13051
13052 \begin_layout Plain Layout
13053 FreeSpacing
13054 \end_layout
13055
13056 \end_inset
13057
13058  [
13059 \begin_inset Flex Code
13060 status collapsed
13061
13062 \begin_layout Plain Layout
13063
13064 \emph on
13065 0
13066 \end_layout
13067
13068 \end_inset
13069
13070 ,
13071 \begin_inset space \thinspace{}
13072 \end_inset
13073
13074
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079 1
13080 \end_layout
13081
13082 \end_inset
13083
13084 ] Usually \SpecialChar LyX
13085  does not allow you to insert more than one space between words,
13086  since a space is considered as the separation between two words,
13087  not a character or symbol of its own.
13088  This is a very fine thing but sometimes annoying,
13089  for example,
13090  when typing program code or plain \SpecialChar LaTeX
13091  code.
13092  For this reason,
13093  
13094 \begin_inset Flex Code
13095 status collapsed
13096
13097 \begin_layout Plain Layout
13098 FreeSpacing
13099 \end_layout
13100
13101 \end_inset
13102
13103  can be enabled.
13104  \SpecialChar LyX
13105  will create non-breaking spaces for the additional blanks when 
13106 \begin_inset Flex Code
13107 status collapsed
13108
13109 \begin_layout Plain Layout
13110 Passthru 1
13111 \end_layout
13112
13113 \end_inset
13114
13115  is not specified.
13116  Note that 
13117 \begin_inset Flex Code
13118 status collapsed
13119
13120 \begin_layout Plain Layout
13121 FreeSpacing
13122 \end_layout
13123
13124 \end_inset
13125
13126  implies 
13127 \begin_inset Flex Code
13128 status collapsed
13129
13130 \begin_layout Plain Layout
13131 KeepEmpty
13132 \end_layout
13133
13134 \end_inset
13135
13136 .
13137 \end_layout
13138
13139 \begin_layout Description
13140 \begin_inset Flex Code
13141 status collapsed
13142
13143 \begin_layout Plain Layout
13144 HTML*
13145 \end_layout
13146
13147 \end_inset
13148
13149  These tags are used with XHTML output.
13150  See 
13151 \begin_inset CommandInset ref
13152 LatexCommand ref
13153 reference "subsec:Paragraph-Style-XHTML"
13154 nolink "false"
13155
13156 \end_inset
13157
13158 .
13159 \end_layout
13160
13161 \begin_layout Description
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166 InPreamble
13167 \end_layout
13168
13169 \end_inset
13170
13171  [
13172 \begin_inset Flex Code
13173 status collapsed
13174
13175 \begin_layout Plain Layout
13176
13177 \emph on
13178 0
13179 \end_layout
13180
13181 \end_inset
13182
13183 ,
13184 \begin_inset space \thinspace{}
13185 \end_inset
13186
13187
13188 \begin_inset Flex Code
13189 status collapsed
13190
13191 \begin_layout Plain Layout
13192 1
13193 \end_layout
13194
13195 \end_inset
13196
13197 ] If 
13198 \begin_inset Flex Code
13199 status collapsed
13200
13201 \begin_layout Plain Layout
13202 1
13203 \end_layout
13204
13205 \end_inset
13206
13207 ,
13208  marks the style as to be included in the document preamble and not in the document body.
13209  This is useful for document classes that want such information as the title and author to appear in the preamble.
13210  Note that this works only for styles for which the 
13211 \begin_inset Flex Code
13212 status collapsed
13213
13214 \begin_layout Plain Layout
13215 LatexType
13216 \end_layout
13217
13218 \end_inset
13219
13220  is 
13221 \begin_inset Flex Code
13222 status collapsed
13223
13224 \begin_layout Plain Layout
13225 Command
13226 \end_layout
13227
13228 \end_inset
13229
13230  or 
13231 \begin_inset Flex Code
13232 status collapsed
13233
13234 \begin_layout Plain Layout
13235 Paragraph
13236 \end_layout
13237
13238 \end_inset
13239
13240 .
13241 \end_layout
13242
13243 \begin_layout Description
13244 \begin_inset Flex Code
13245 status collapsed
13246
13247 \begin_layout Plain Layout
13248 InTitle
13249 \end_layout
13250
13251 \end_inset
13252
13253  [
13254 \begin_inset Flex Code
13255 status collapsed
13256
13257 \begin_layout Plain Layout
13258
13259 \emph on
13260 0
13261 \end_layout
13262
13263 \end_inset
13264
13265 ,
13266 \begin_inset space \thinspace{}
13267 \end_inset
13268
13269
13270 \begin_inset Flex Code
13271 status collapsed
13272
13273 \begin_layout Plain Layout
13274 1
13275 \end_layout
13276
13277 \end_inset
13278
13279 ] If 
13280 \begin_inset Flex Code
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284 1
13285 \end_layout
13286
13287 \end_inset
13288
13289 ,
13290  marks the style as being part of a title block (see also the 
13291 \begin_inset Flex Code
13292 status collapsed
13293
13294 \begin_layout Plain Layout
13295 TitleLatexType
13296 \end_layout
13297
13298 \end_inset
13299
13300  and 
13301 \begin_inset Flex Code
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305 TitleLatexName
13306 \end_layout
13307
13308 \end_inset
13309
13310  global entries).
13311 \end_layout
13312
13313 \begin_layout Description
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 IsAutoNestedBy
13319 \end_layout
13320
13321 \end_inset
13322
13323  Includes a comma-separated list of layouts after which this one should be nested.
13324  Only makes sense with regard to nestable layouts (such as environments).
13325  Must be ended by 
13326 \begin_inset Quotes eld
13327 \end_inset
13328
13329
13330 \begin_inset Flex Code
13331 status collapsed
13332
13333 \begin_layout Plain Layout
13334 EndIsAutoNestedBy
13335 \end_layout
13336
13337 \end_inset
13338
13339
13340 \begin_inset Quotes erd
13341 \end_inset
13342
13343 .
13344  See also 
13345 \begin_inset Flex Code
13346 status collapsed
13347
13348 \begin_layout Plain Layout
13349 AutoNests
13350 \end_layout
13351
13352 \end_inset
13353
13354 .
13355 \end_layout
13356
13357 \begin_layout Description
13358 \begin_inset Flex Code
13359 status collapsed
13360
13361 \begin_layout Plain Layout
13362 IsTocCaption
13363 \end_layout
13364
13365 \end_inset
13366
13367  [
13368 \begin_inset Flex Code
13369 status collapsed
13370
13371 \begin_layout Plain Layout
13372
13373 \emph on
13374 0
13375 \end_layout
13376
13377 \end_inset
13378
13379 ,
13380 \begin_inset space \thinspace{}
13381 \end_inset
13382
13383
13384 \begin_inset Flex Code
13385 status collapsed
13386
13387 \begin_layout Plain Layout
13388 1
13389 \end_layout
13390
13391 \end_inset
13392
13393 ] If this is set to 1 and AddToToc is enabled,
13394  the paragraph adds a summary of its contents in its item in the table of contents.
13395  Otherwise,
13396  only the label,
13397  if it exists,
13398  appears.
13399 \end_layout
13400
13401 \begin_layout Description
13402 \begin_inset Flex Code
13403 status collapsed
13404
13405 \begin_layout Plain Layout
13406 ItemCommand
13407 \end_layout
13408
13409 \end_inset
13410
13411  [
13412 \begin_inset Flex Code
13413 status collapsed
13414
13415 \begin_layout Plain Layout
13416 string="item"
13417 \end_layout
13418
13419 \end_inset
13420
13421 ] The \SpecialChar LaTeX
13422  command sequence declaring an item in a list.
13423  The command is to be defined without the preceding backslash (the default is 
13424 \begin_inset Quotes eld
13425 \end_inset
13426
13427 item
13428 \begin_inset Quotes erd
13429 \end_inset
13430
13431 ,
13432  resulting in 
13433 \begin_inset Flex Code
13434 status collapsed
13435
13436 \begin_layout Plain Layout
13437
13438 \backslash
13439 item
13440 \end_layout
13441
13442 \end_inset
13443
13444  in the \SpecialChar LaTeX
13445  output).
13446 \end_layout
13447
13448 \begin_layout Description
13449 \begin_inset Flex Code
13450 status collapsed
13451
13452 \begin_layout Plain Layout
13453 ItemSep
13454 \end_layout
13455
13456 \end_inset
13457
13458  [
13459 \begin_inset Flex Code
13460 status collapsed
13461
13462 \begin_layout Plain Layout
13463 float=0
13464 \end_layout
13465
13466 \end_inset
13467
13468 ] This provides extra space between paragraphs that have the same style.
13469  If you put other styles into an environment,
13470  each is separated with the environment's 
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475 ParSep
13476 \end_layout
13477
13478 \end_inset
13479
13480 .
13481  But the whole items of the environment are additionally separated with this 
13482 \begin_inset Flex Code
13483 status collapsed
13484
13485 \begin_layout Plain Layout
13486 ItemSep
13487 \end_layout
13488
13489 \end_inset
13490
13491 .
13492  Note that this is a
13493 \emph on
13494  multiplier.
13495 \end_layout
13496
13497 \begin_layout Description
13498 \begin_inset Flex Code
13499 status collapsed
13500
13501 \begin_layout Plain Layout
13502 KeepEmpty
13503 \end_layout
13504
13505 \end_inset
13506
13507  [
13508 \begin_inset Flex Code
13509 status collapsed
13510
13511 \begin_layout Plain Layout
13512
13513 \emph on
13514 0
13515 \end_layout
13516
13517 \end_inset
13518
13519 ,
13520 \begin_inset space \thinspace{}
13521 \end_inset
13522
13523
13524 \begin_inset Flex Code
13525 status collapsed
13526
13527 \begin_layout Plain Layout
13528 1
13529 \end_layout
13530
13531 \end_inset
13532
13533 ] Usually \SpecialChar LyX
13534  does not allow you to leave a paragraph empty,
13535  since it would lead to empty \SpecialChar LaTeX
13536  output.
13537  There are some cases where this could be desirable however:
13538  in a letter template,
13539  the required fields can be provided as empty fields,
13540  so that people do not forget them;
13541  in some special classes,
13542  a style can be used as some kind of break,
13543  which does not contain actual text.
13544 \end_layout
13545
13546 \begin_layout Description
13547 \begin_inset Flex Code
13548 status collapsed
13549
13550 \begin_layout Plain Layout
13551 LabelBottomsep
13552 \end_layout
13553
13554 \end_inset
13555
13556  [
13557 \begin_inset Flex Code
13558 status collapsed
13559
13560 \begin_layout Plain Layout
13561 float=0
13562 \end_layout
13563
13564 \end_inset
13565
13566 ] The vertical space between the label and the text body.
13567  Only used for labels that are above the text body (
13568 \begin_inset Flex Code
13569 status collapsed
13570
13571 \begin_layout Plain Layout
13572 Top_Environment
13573 \end_layout
13574
13575 \end_inset
13576
13577  and
13578 \begin_inset Newline newline
13579 \end_inset
13580
13581
13582 \begin_inset Flex Code
13583 status collapsed
13584
13585 \begin_layout Plain Layout
13586 Centered_Top_Environment
13587 \end_layout
13588
13589 \end_inset
13590
13591 ).
13592 \end_layout
13593
13594 \begin_layout Description
13595 \begin_inset Flex Code
13596 status collapsed
13597
13598 \begin_layout Plain Layout
13599 LabelCounter
13600 \end_layout
13601
13602 \end_inset
13603
13604  [
13605 \begin_inset Flex Code
13606 status collapsed
13607
13608 \begin_layout Plain Layout
13609 string=""
13610 \end_layout
13611
13612 \end_inset
13613
13614 ] The name of the counter for automatic numbering.
13615  In order to have the counter appear with your label,
13616  you will need to reference it in the 
13617 \begin_inset Flex Code
13618 status collapsed
13619
13620 \begin_layout Plain Layout
13621
13622 \family typewriter
13623 LabelString
13624 \end_layout
13625
13626 \end_inset
13627
13628 .
13629  This will work with 
13630 \begin_inset Flex Code
13631 status collapsed
13632
13633 \begin_layout Plain Layout
13634 LabelType
13635 \end_layout
13636
13637 \end_inset
13638
13639 s,
13640  
13641 \begin_inset Flex Code
13642 status collapsed
13643
13644 \begin_layout Plain Layout
13645 Static
13646 \end_layout
13647
13648 \end_inset
13649
13650 ,
13651  
13652 \begin_inset Flex Code
13653 status collapsed
13654
13655 \begin_layout Plain Layout
13656 Above
13657 \end_layout
13658
13659 \end_inset
13660
13661  and 
13662 \begin_inset Flex Code
13663 status collapsed
13664
13665 \begin_layout Plain Layout
13666 Centered
13667 \end_layout
13668
13669 \end_inset
13670
13671 ,
13672  at least.
13673 \begin_inset Newline newline
13674 \end_inset
13675
13676 This 
13677 \emph on
13678 may
13679 \emph default
13680  also be given if 
13681 \begin_inset Flex Code
13682 status collapsed
13683
13684 \begin_layout Plain Layout
13685 LabelType
13686 \end_layout
13687
13688 \end_inset
13689
13690  is 
13691 \begin_inset Flex Code
13692 status collapsed
13693
13694 \begin_layout Plain Layout
13695 Enumerate
13696 \end_layout
13697
13698 \end_inset
13699
13700 ,
13701  though this case is a bit complicated.
13702  Suppose you declare 
13703 \begin_inset Quotes eld
13704 \end_inset
13705
13706
13707 \begin_inset Flex Code
13708 status collapsed
13709
13710 \begin_layout Plain Layout
13711 LabelCounter myenum
13712 \end_layout
13713
13714 \end_inset
13715
13716
13717 \begin_inset Quotes erd
13718 \end_inset
13719
13720 .
13721  Then the actual counters used are 
13722 \begin_inset Flex Code
13723 status collapsed
13724
13725 \begin_layout Plain Layout
13726 myenumi
13727 \end_layout
13728
13729 \end_inset
13730
13731 ,
13732  
13733 \begin_inset Flex Code
13734 status collapsed
13735
13736 \begin_layout Plain Layout
13737 myenumii
13738 \end_layout
13739
13740 \end_inset
13741
13742 ,
13743  
13744 \begin_inset Flex Code
13745 status collapsed
13746
13747 \begin_layout Plain Layout
13748 myenumiii
13749 \end_layout
13750
13751 \end_inset
13752
13753  and 
13754 \begin_inset Flex Code
13755 status collapsed
13756
13757 \begin_layout Plain Layout
13758 myenumiv
13759 \end_layout
13760
13761 \end_inset
13762
13763 ,
13764  much as in \SpecialChar LaTeX
13765 .
13766  These counters must all be declared separately.
13767 \begin_inset Newline newline
13768 \end_inset
13769
13770 See 
13771 \begin_inset CommandInset ref
13772 LatexCommand ref
13773 reference "subsec:Counters"
13774 nolink "false"
13775
13776 \end_inset
13777
13778  for details on counters.
13779 \end_layout
13780
13781 \begin_layout Description
13782 \begin_inset Flex Code
13783 status collapsed
13784
13785 \begin_layout Plain Layout
13786 LabelFont
13787 \end_layout
13788
13789 \end_inset
13790
13791  The font used for the label.
13792  See 
13793 \begin_inset CommandInset ref
13794 LatexCommand ref
13795 reference "subsec:Font-description"
13796 nolink "false"
13797
13798 \end_inset
13799
13800 .
13801 \end_layout
13802
13803 \begin_layout Description
13804 \begin_inset Flex Code
13805 status collapsed
13806
13807 \begin_layout Plain Layout
13808 LabelIndent
13809 \end_layout
13810
13811 \end_inset
13812
13813  [
13814 \begin_inset Flex Code
13815 status collapsed
13816
13817 \begin_layout Plain Layout
13818 string=""
13819 \end_layout
13820
13821 \end_inset
13822
13823 ] Text that indicates how far a label should be indented.
13824 \end_layout
13825
13826 \begin_layout Description
13827 \begin_inset Flex Code
13828 status collapsed
13829
13830 \begin_layout Plain Layout
13831 LabelSep
13832 \end_layout
13833
13834 \end_inset
13835
13836  [
13837 \begin_inset Flex Code
13838 status collapsed
13839
13840 \begin_layout Plain Layout
13841 string=""
13842 \end_layout
13843
13844 \end_inset
13845
13846 ] Text that indicates the amount of horizontal space between the label and the text body.
13847  Only used for labels that are not above the text body.
13848 \end_layout
13849
13850 \begin_layout Description
13851 \begin_inset Flex Code
13852 status collapsed
13853
13854 \begin_layout Plain Layout
13855 LabelString
13856 \end_layout
13857
13858 \end_inset
13859
13860  [
13861 \begin_inset Flex Code
13862 status collapsed
13863
13864 \begin_layout Plain Layout
13865 string=""
13866 \end_layout
13867
13868 \end_inset
13869
13870 ] The string used for the label.
13871  When 
13872 \begin_inset Flex Code
13873 status collapsed
13874
13875 \begin_layout Plain Layout
13876 LabelCounter
13877 \end_layout
13878
13879 \end_inset
13880
13881  is set,
13882  this string can be contain the special formatting commands described in 
13883 \begin_inset CommandInset ref
13884 LatexCommand ref
13885 reference "subsec:Counters"
13886 nolink "false"
13887
13888 \end_inset
13889
13890 .
13891 \end_layout
13892
13893 \begin_layout Description
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898 LabelStringAppendix
13899 \end_layout
13900
13901 \end_inset
13902
13903  [
13904 \begin_inset Flex Code
13905 status collapsed
13906
13907 \begin_layout Plain Layout
13908 string=""
13909 \end_layout
13910
13911 \end_inset
13912
13913 ] This is used inside the appendix instead of
13914 \begin_inset Newline newline
13915 \end_inset
13916
13917
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922 LabelString
13923 \end_layout
13924
13925 \end_inset
13926
13927 .
13928  Note that every 
13929 \begin_inset Flex Code
13930 status collapsed
13931
13932 \begin_layout Plain Layout
13933 LabelString
13934 \end_layout
13935
13936 \end_inset
13937
13938  statement resets
13939 \begin_inset Newline newline
13940 \end_inset
13941
13942
13943 \begin_inset Flex Code
13944 status collapsed
13945
13946 \begin_layout Plain Layout
13947 LabelStringAppendix
13948 \end_layout
13949
13950 \end_inset
13951
13952  too.
13953 \end_layout
13954
13955 \begin_layout Description
13956 \begin_inset Flex Code
13957 status collapsed
13958
13959 \begin_layout Plain Layout
13960 LabelType
13961 \end_layout
13962
13963 \end_inset
13964
13965  [
13966 \begin_inset Flex Code
13967 status collapsed
13968
13969 \begin_layout Plain Layout
13970
13971 \emph on
13972 No_Label
13973 \emph default
13974 ,
13975  Manual,
13976  Static,
13977  Above,
13978  
13979 \begin_inset Newline newline
13980 \end_inset
13981
13982 Centered,
13983  Sensitive,
13984  Enumerate,
13985 \begin_inset Newline newline
13986 \end_inset
13987
13988 Itemize,
13989  Bibliography
13990 \end_layout
13991
13992 \end_inset
13993
13994 ]
13995 \end_layout
13996
13997 \begin_deeper
13998 \begin_layout Description
13999 \begin_inset Flex Code
14000 status collapsed
14001
14002 \begin_layout Plain Layout
14003 Manual
14004 \end_layout
14005
14006 \end_inset
14007
14008  means the label is the very first word (up to the first real blank).
14009  Use non-breaking spaces if you want more than one word as the label.
14010  
14011 \end_layout
14012
14013 \begin_layout Description
14014 \begin_inset Flex Code
14015 status collapsed
14016
14017 \begin_layout Plain Layout
14018 Static
14019 \end_layout
14020
14021 \end_inset
14022
14023  means the label is simply what is declared as 
14024 \begin_inset Flex Code
14025 status collapsed
14026
14027 \begin_layout Plain Layout
14028 LabelString
14029 \end_layout
14030
14031 \end_inset
14032
14033 .
14034  This will be displayed 
14035 \begin_inset Quotes eld
14036 \end_inset
14037
14038 inline
14039 \begin_inset Quotes erd
14040 \end_inset
14041
14042 ,
14043  at the beginning of the paragraph.
14044  If the 
14045 \begin_inset Flex Code
14046 status collapsed
14047
14048 \begin_layout Plain Layout
14049 LatexType
14050 \end_layout
14051
14052 \end_inset
14053
14054  is 
14055 \begin_inset Flex Code
14056 status collapsed
14057
14058 \begin_layout Plain Layout
14059 Environment
14060 \end_layout
14061
14062 \end_inset
14063
14064 ,
14065  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
14066 \begin_inset Flex Code
14067 status collapsed
14068
14069 \begin_layout Plain Layout
14070 Style
14071 \end_layout
14072
14073 \end_inset
14074
14075 .
14076 \end_layout
14077
14078 \begin_layout Description
14079 \begin_inset Flex Code
14080 status collapsed
14081
14082 \begin_layout Plain Layout
14083 Above
14084 \end_layout
14085
14086 \end_inset
14087
14088
14089 \begin_inset space ~
14090 \end_inset
14091
14092 and
14093 \begin_inset space ~
14094 \end_inset
14095
14096
14097 \begin_inset Flex Code
14098 status collapsed
14099
14100 \begin_layout Plain Layout
14101 Centered
14102 \end_layout
14103
14104 \end_inset
14105
14106  are special cases of 
14107 \begin_inset Flex Code
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111 Static
14112 \end_layout
14113
14114 \end_inset
14115
14116 .
14117  The label will be printed above the paragraph either at the beginning of the line or centered.
14118 \end_layout
14119
14120 \begin_layout Description
14121 \begin_inset Flex Code
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 Sensitive
14126 \end_layout
14127
14128 \end_inset
14129
14130  is a special case for the caption-labels 
14131 \begin_inset Quotes eld
14132 \end_inset
14133
14134 Figure
14135 \begin_inset Quotes erd
14136 \end_inset
14137
14138  and 
14139 \begin_inset Quotes eld
14140 \end_inset
14141
14142 Table
14143 \begin_inset Quotes erd
14144 \end_inset
14145
14146 .
14147 \begin_inset Newline newline
14148 \end_inset
14149
14150
14151 \begin_inset Flex Code
14152 status collapsed
14153
14154 \begin_layout Plain Layout
14155 Sensitive
14156 \end_layout
14157
14158 \end_inset
14159
14160  means the (hardcoded) label string depends on the kind of float:
14161  It is hardcoded to be `FloatType N',
14162  where N is the value of the counter associated with the float.
14163  For the case that a caption is inserted outside of a float the 
14164 \begin_inset Flex Code
14165 status collapsed
14166
14167 \begin_layout Plain Layout
14168 LabelString
14169 \end_layout
14170
14171 \end_inset
14172
14173  will appear as 
14174 \begin_inset Quotes eld
14175 \end_inset
14176
14177 Senseless!
14178 \begin_inset Quotes erd
14179 \end_inset
14180
14181 .
14182 \end_layout
14183
14184 \begin_layout Description
14185 \begin_inset Flex Code
14186 status collapsed
14187
14188 \begin_layout Plain Layout
14189 Enumerate
14190 \end_layout
14191
14192 \end_inset
14193
14194  produces the usual sort of enumeration labels.
14195  The number type needs to be set in the 
14196 \family sans
14197 Counter
14198 \family default
14199 ,
14200  see 
14201 \begin_inset CommandInset ref
14202 LatexCommand ref
14203 reference "subsec:Counters"
14204 nolink "false"
14205
14206 \end_inset
14207
14208 .
14209 \end_layout
14210
14211 \begin_layout Description
14212 \begin_inset Flex Code
14213 status collapsed
14214
14215 \begin_layout Plain Layout
14216 Itemize
14217 \end_layout
14218
14219 \end_inset
14220
14221  produces various bullets at the different levels.
14222  The bullet types displayed can be set via 
14223 \begin_inset Flex Noun
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 Document\SpecialChar menuseparator
14228 Settings\SpecialChar menuseparator
14229 Bullets
14230 \end_layout
14231
14232 \end_inset
14233
14234 .
14235 \end_layout
14236
14237 \begin_layout Description
14238 \begin_inset Flex Code
14239 status collapsed
14240
14241 \begin_layout Plain Layout
14242 Bibliography
14243 \end_layout
14244
14245 \end_inset
14246
14247  should be used only with 
14248 \begin_inset Flex Code
14249 status collapsed
14250
14251 \begin_layout Plain Layout
14252 LatexType BibEnvironment
14253 \end_layout
14254
14255 \end_inset
14256
14257 .
14258 \end_layout
14259
14260 \end_deeper
14261 \begin_layout Description
14262 \begin_inset Flex Code
14263 status collapsed
14264
14265 \begin_layout Plain Layout
14266 LangPreamble
14267 \end_layout
14268
14269 \end_inset
14270
14271  Note that this will completely override any prior 
14272 \begin_inset Flex Code
14273 status collapsed
14274
14275 \begin_layout Plain Layout
14276 LangPreamble
14277 \end_layout
14278
14279 \end_inset
14280
14281  declaration for this style.
14282  Must end with 
14283 \begin_inset Quotes eld
14284 \end_inset
14285
14286
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 EndLangPreamble
14292 \end_layout
14293
14294 \end_inset
14295
14296
14297 \begin_inset Quotes erd
14298 \end_inset
14299
14300 .
14301  See 
14302 \begin_inset CommandInset ref
14303 LatexCommand ref
14304 reference "subsec:I18n"
14305 nolink "false"
14306
14307 \end_inset
14308
14309  for details on its use.
14310 \end_layout
14311
14312 \begin_layout Description
14313 \begin_inset Flex Code
14314 status collapsed
14315
14316 \begin_layout Plain Layout
14317 LatexName
14318 \end_layout
14319
14320 \end_inset
14321
14322  [
14323 \begin_inset Flex Code
14324 status collapsed
14325
14326 \begin_layout Plain Layout
14327 <name>
14328 \end_layout
14329
14330 \end_inset
14331
14332 ] The name of the corresponding \SpecialChar LaTeX
14333  stuff.
14334  Either the environment or command name.
14335 \end_layout
14336
14337 \begin_layout Description
14338 \begin_inset Flex Code
14339 status collapsed
14340
14341 \begin_layout Plain Layout
14342 LatexParam
14343 \end_layout
14344
14345 \end_inset
14346
14347  [
14348 \begin_inset Flex Code
14349 status collapsed
14350
14351 \begin_layout Plain Layout
14352 <parameter>
14353 \end_layout
14354
14355 \end_inset
14356
14357 ] An optional parameter for the corresponding 
14358 \begin_inset Flex Code
14359 status collapsed
14360
14361 \begin_layout Plain Layout
14362 LatexName
14363 \end_layout
14364
14365 \end_inset
14366
14367  stuff.
14368  This parameter cannot be changed from within \SpecialChar LyX
14369  (use 
14370 \begin_inset Flex Code
14371 status collapsed
14372
14373 \begin_layout Plain Layout
14374 Argument
14375 \end_layout
14376
14377 \end_inset
14378
14379  for customizable parameters).
14380  This will be output as is after all \SpecialChar LaTeX
14381  
14382 \begin_inset Flex Code
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 Argument
14387 \end_layout
14388
14389 \end_inset
14390
14391 s.
14392 \end_layout
14393
14394 \begin_layout Description
14395 \begin_inset Flex Code
14396 status collapsed
14397
14398 \begin_layout Plain Layout
14399 LatexType
14400 \end_layout
14401
14402 \end_inset
14403
14404  [
14405 \begin_inset Flex Code
14406 status collapsed
14407
14408 \begin_layout Plain Layout
14409
14410 \emph on
14411 Paragraph
14412 \emph default
14413 ,
14414  Command,
14415  Environment,
14416  Item_Environment,
14417 \begin_inset Newline newline
14418 \end_inset
14419
14420 List_Environment,
14421  Bib_Environment
14422 \end_layout
14423
14424 \end_inset
14425
14426 ] How the style should be translated into \SpecialChar LaTeX
14427 .
14428 \begin_inset Foot
14429 status collapsed
14430
14431 \begin_layout Plain Layout
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436 LatexType
14437 \end_layout
14438
14439 \end_inset
14440
14441  is perhaps a bit misleading,
14442  since these rules apply to SGML classes,
14443  too.
14444  Visit the SGML class files for specific examples.
14445 \end_layout
14446
14447 \end_inset
14448
14449
14450 \end_layout
14451
14452 \begin_deeper
14453 \begin_layout Description
14454 \begin_inset Flex Code
14455 status collapsed
14456
14457 \begin_layout Plain Layout
14458 Paragraph
14459 \end_layout
14460
14461 \end_inset
14462
14463  means nothing special.
14464 \end_layout
14465
14466 \begin_layout Description
14467 \begin_inset Flex Code
14468 status collapsed
14469
14470 \begin_layout Plain Layout
14471 Command
14472 \end_layout
14473
14474 \end_inset
14475
14476  means 
14477 \begin_inset Flex Code
14478 status collapsed
14479
14480 \begin_layout Plain Layout
14481
14482 \backslash
14483
14484 \emph on
14485 LatexName
14486 \emph default
14487 {\SpecialChar ldots
14488 }
14489 \end_layout
14490
14491 \end_inset
14492
14493 .
14494 \end_layout
14495
14496 \begin_layout Description
14497 \begin_inset Flex Code
14498 status collapsed
14499
14500 \begin_layout Plain Layout
14501 Environment
14502 \end_layout
14503
14504 \end_inset
14505
14506  means 
14507 \begin_inset Flex Code
14508 status collapsed
14509
14510 \begin_layout Plain Layout
14511
14512 \backslash
14513 begin{
14514 \emph on
14515 LatexName
14516 \emph default
14517 }\SpecialChar ldots
14518
14519 \backslash
14520 end{
14521 \emph on
14522 LatexName
14523 \emph default
14524 }
14525 \end_layout
14526
14527 \end_inset
14528
14529 .
14530  
14531 \end_layout
14532
14533 \begin_layout Description
14534 \begin_inset Flex Code
14535 status collapsed
14536
14537 \begin_layout Plain Layout
14538 Item_Environment
14539 \end_layout
14540
14541 \end_inset
14542
14543  is the same as 
14544 \begin_inset Flex Code
14545 status collapsed
14546
14547 \begin_layout Plain Layout
14548 Environment
14549 \end_layout
14550
14551 \end_inset
14552
14553 ,
14554  except that an 
14555 \begin_inset Flex Code
14556 status collapsed
14557
14558 \begin_layout Plain Layout
14559
14560 \backslash
14561 item
14562 \end_layout
14563
14564 \end_inset
14565
14566  is generated for each paragraph of this environment.
14567  
14568 \end_layout
14569
14570 \begin_layout Description
14571 \begin_inset Flex Code
14572 status collapsed
14573
14574 \begin_layout Plain Layout
14575 List_Environment
14576 \end_layout
14577
14578 \end_inset
14579
14580  is the same as 
14581 \begin_inset Flex Code
14582 status collapsed
14583
14584 \begin_layout Plain Layout
14585 Item_Environment
14586 \end_layout
14587
14588 \end_inset
14589
14590 ,
14591  except that
14592 \begin_inset Newline newline
14593 \end_inset
14594
14595
14596 \begin_inset Flex Code
14597 status collapsed
14598
14599 \begin_layout Plain Layout
14600 LabelWidthString
14601 \end_layout
14602
14603 \end_inset
14604
14605  is passed as an argument to the environment.
14606 \begin_inset Newline newline
14607 \end_inset
14608
14609
14610 \begin_inset Flex Code
14611 status collapsed
14612
14613 \begin_layout Plain Layout
14614 LabelWidthString
14615 \end_layout
14616
14617 \end_inset
14618
14619  can be defined in the 
14620 \begin_inset Flex Noun
14621 status collapsed
14622
14623 \begin_layout Plain Layout
14624 Edit\SpecialChar menuseparator
14625 Paragraph
14626 \begin_inset space ~
14627 \end_inset
14628
14629 settings
14630 \end_layout
14631
14632 \end_inset
14633
14634  dialog.
14635 \end_layout
14636
14637 \begin_layout Description
14638 \begin_inset Flex Code
14639 status collapsed
14640
14641 \begin_layout Plain Layout
14642 Bib_Environment
14643 \end_layout
14644
14645 \end_inset
14646
14647  is like 
14648 \begin_inset Flex Code
14649 status collapsed
14650
14651 \begin_layout Plain Layout
14652 Environment
14653 \end_layout
14654
14655 \end_inset
14656
14657  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
14658 \begin_inset Newline newline
14659 \end_inset
14660
14661
14662 \begin_inset Flex Code
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666
14667 \backslash
14668 begin{thebibliography}{99}
14669 \end_layout
14670
14671 \end_inset
14672
14673 .
14674  It is therefore only useful for bibliography environments.
14675  The default longest label 
14676 \begin_inset Quotes eld
14677 \end_inset
14678
14679 99
14680 \begin_inset Quotes erd
14681 \end_inset
14682
14683  can be changed by the user in the paragraph settings of a bibliography item.
14684 \end_layout
14685
14686 \begin_layout Standard
14687 Putting the last few things together,
14688  the \SpecialChar LaTeX
14689  output will be either:
14690  
14691 \end_layout
14692
14693 \begin_layout LyX-Code
14694
14695 \backslash
14696 LatexName[LatexParam]{\SpecialChar ldots
14697 }
14698 \end_layout
14699
14700 \begin_layout Standard
14701 or:
14702  
14703 \end_layout
14704
14705 \begin_layout LyX-Code
14706
14707 \backslash
14708 begin{LatexName}[LatexParam] \SpecialChar ldots
14709  
14710 \backslash
14711 end{LatexName}.
14712 \end_layout
14713
14714 \begin_layout Standard
14715 depending upon the \SpecialChar LaTeX
14716  type.
14717 \end_layout
14718
14719 \end_deeper
14720 \begin_layout Description
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725 LeftDelim
14726 \end_layout
14727
14728 \end_inset
14729
14730  [
14731 \begin_inset Flex Code
14732 status collapsed
14733
14734 \begin_layout Plain Layout
14735 string
14736 \end_layout
14737
14738 \end_inset
14739
14740 ] A string that is put at the beginning of the style content.
14741  A line break in the output can be indicated by 
14742 \begin_inset Flex Code
14743 status collapsed
14744
14745 \begin_layout Plain Layout
14746 <br/>
14747 \end_layout
14748
14749 \end_inset
14750
14751 .
14752 \end_layout
14753
14754 \begin_layout Description
14755 \begin_inset Flex Code
14756 status collapsed
14757
14758 \begin_layout Plain Layout
14759 LeftMargin
14760 \end_layout
14761
14762 \end_inset
14763
14764  [
14765 \begin_inset Flex Code
14766 status collapsed
14767
14768 \begin_layout Plain Layout
14769 string=""
14770 \end_layout
14771
14772 \end_inset
14773
14774 ] If you put styles into environments,
14775  the different 
14776 \begin_inset Flex Code
14777 status collapsed
14778
14779 \begin_layout Plain Layout
14780 LeftMargin
14781 \end_layout
14782
14783 \end_inset
14784
14785  are not simply added,
14786  but added with a factor 
14787 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14788 \end_inset
14789
14790 .
14791  Note that this parameter is also used when 
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796 Margin
14797 \end_layout
14798
14799 \end_inset
14800
14801  is defined as 
14802 \begin_inset Flex Code
14803 status collapsed
14804
14805 \begin_layout Plain Layout
14806 Manual
14807 \end_layout
14808
14809 \end_inset
14810
14811  or 
14812 \begin_inset Flex Code
14813 status collapsed
14814
14815 \begin_layout Plain Layout
14816 Dynamic
14817 \end_layout
14818
14819 \end_inset
14820
14821 .
14822  Then it is added to the manual or dynamic margin.
14823 \begin_inset Newline newline
14824 \end_inset
14825
14826 For example 
14827 \begin_inset Quotes eld
14828 \end_inset
14829
14830
14831 \begin_inset Flex Code
14832 status collapsed
14833
14834 \begin_layout Plain Layout
14835 MM
14836 \end_layout
14837
14838 \end_inset
14839
14840
14841 \begin_inset Quotes erd
14842 \end_inset
14843
14844  means that the paragraph is indented with the width of 
14845 \begin_inset Quotes eld
14846 \end_inset
14847
14848
14849 \begin_inset Flex Code
14850 status collapsed
14851
14852 \begin_layout Plain Layout
14853 MM
14854 \end_layout
14855
14856 \end_inset
14857
14858
14859 \begin_inset Quotes erd
14860 \end_inset
14861
14862  in the normal font.
14863  You can get a negative width by prefixing the string with 
14864 \begin_inset Quotes eld
14865 \end_inset
14866
14867
14868 \begin_inset Flex Code
14869 status collapsed
14870
14871 \begin_layout Plain Layout
14872 -
14873 \end_layout
14874
14875 \end_inset
14876
14877
14878 \begin_inset Quotes erd
14879 \end_inset
14880
14881 .
14882  This way was chosen so that the look is the same with each used screen font.
14883 \end_layout
14884
14885 \begin_layout Description
14886 \begin_inset Flex Code
14887 status collapsed
14888
14889 \begin_layout Plain Layout
14890 Margin
14891 \end_layout
14892
14893 \end_inset
14894
14895  [
14896 \begin_inset Flex Code
14897 status collapsed
14898
14899 \begin_layout Plain Layout
14900
14901 \emph on
14902 Static
14903 \emph default
14904 ,
14905  Manual,
14906  Dynamic,
14907  First_Dynamic,
14908  Right_Address_Box
14909 \end_layout
14910
14911 \end_inset
14912
14913
14914 \begin_inset Newline newline
14915 \end_inset
14916
14917 The kind of margin that the style has on the left side.
14918 \end_layout
14919
14920 \begin_deeper
14921 \begin_layout Description
14922 \begin_inset Flex Code
14923 status collapsed
14924
14925 \begin_layout Plain Layout
14926 Static
14927 \end_layout
14928
14929 \end_inset
14930
14931  just means a fixed margin.
14932 \end_layout
14933
14934 \begin_layout Description
14935 \begin_inset Flex Code
14936 status collapsed
14937
14938 \begin_layout Plain Layout
14939 Manual
14940 \end_layout
14941
14942 \end_inset
14943
14944  means that the left margin depends on the string entered in the 
14945 \begin_inset Flex Noun
14946 status collapsed
14947
14948 \begin_layout Plain Layout
14949 Edit\SpecialChar menuseparator
14950 Paragraph
14951 \begin_inset space ~
14952 \end_inset
14953
14954 Settings
14955 \end_layout
14956
14957 \end_inset
14958
14959  dialog.
14960  This is used to typeset nice lists without tabulators.
14961 \end_layout
14962
14963 \begin_layout Description
14964 \begin_inset Flex Code
14965 status collapsed
14966
14967 \begin_layout Plain Layout
14968 Dynamic
14969 \end_layout
14970
14971 \end_inset
14972
14973  means that the margin depends on the size of the label.
14974  This is used for automatic enumerated headlines.
14975  It is obvious that the headline 
14976 \begin_inset Quotes eld
14977 \end_inset
14978
14979 5.4.3.2.1 Very long headline
14980 \begin_inset Quotes erd
14981 \end_inset
14982
14983  must have a wider left margin (as wide as 
14984 \begin_inset Quotes eld
14985 \end_inset
14986
14987 5.4.3.2.1
14988 \begin_inset Quotes erd
14989 \end_inset
14990
14991  plus the space) than 
14992 \begin_inset Quotes eld
14993 \end_inset
14994
14995 3.2 Very long headline
14996 \begin_inset Quotes erd
14997 \end_inset
14998
14999 ,
15000  even if standard 
15001 \begin_inset Quotes eld
15002 \end_inset
15003
15004 word processors
15005 \begin_inset Quotes erd
15006 \end_inset
15007
15008  are not able to do this.
15009 \end_layout
15010
15011 \begin_layout Description
15012 \begin_inset Flex Code
15013 status collapsed
15014
15015 \begin_layout Plain Layout
15016 First_Dynamic
15017 \end_layout
15018
15019 \end_inset
15020
15021  is similar,
15022  but only the very first row of the paragraph is dynamic,
15023  while the others are static;
15024  this is used,
15025  for example,
15026  for descriptions.
15027 \end_layout
15028
15029 \begin_layout Description
15030 \begin_inset Flex Code
15031 status collapsed
15032
15033 \begin_layout Plain Layout
15034 Right_Address_Box
15035 \end_layout
15036
15037 \end_inset
15038
15039  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
15040  This is used to typeset an address on the right edge of the page.
15041 \end_layout
15042
15043 \end_deeper
15044 \begin_layout Description
15045 \begin_inset Flex Code
15046 status collapsed
15047
15048 \begin_layout Plain Layout
15049 NeedProtect
15050 \end_layout
15051
15052 \end_inset
15053
15054  [
15055 \begin_inset Flex Code
15056 status collapsed
15057
15058 \begin_layout Plain Layout
15059
15060 \emph on
15061 0
15062 \end_layout
15063
15064 \end_inset
15065
15066 ,
15067 \begin_inset space \thinspace{}
15068 \end_inset
15069
15070
15071 \begin_inset Flex Code
15072 status collapsed
15073
15074 \begin_layout Plain Layout
15075 1
15076 \end_layout
15077
15078 \end_inset
15079
15080 ] Whether fragile commands in this style should be 
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085
15086 \backslash
15087 protect
15088 \end_layout
15089
15090 \end_inset
15091
15092 'ed.
15093  (Note:
15094  This is 
15095 \emph on
15096 not
15097 \emph default
15098  whether this command should itself be protected.)
15099 \end_layout
15100
15101 \begin_layout Description
15102 \begin_inset Flex Code
15103 status collapsed
15104
15105 \begin_layout Plain Layout
15106 NeedCProtect
15107 \end_layout
15108
15109 \end_inset
15110
15111  [
15112 \begin_inset Flex Code
15113 status collapsed
15114
15115 \begin_layout Plain Layout
15116
15117 \emph on
15118 0
15119 \end_layout
15120
15121 \end_inset
15122
15123 ,
15124 \begin_inset space \thinspace{}
15125 \end_inset
15126
15127
15128 \begin_inset Flex Code
15129 status collapsed
15130
15131 \begin_layout Plain Layout
15132 1
15133 \end_layout
15134
15135 \end_inset
15136
15137 ] This causes macros that contain this layout to be protected with 
15138 \begin_inset Flex Code
15139 status collapsed
15140
15141 \begin_layout Plain Layout
15142
15143 \backslash
15144 cprotect
15145 \end_layout
15146
15147 \end_inset
15148
15149  (cf.
15150  package 
15151 \family sans
15152 cprotect
15153 \family default
15154 ) if necessary and thus allows (some) verbatim stuff in macros.
15155 \end_layout
15156
15157 \begin_layout Description
15158 \begin_inset Flex Code
15159 status collapsed
15160
15161 \begin_layout Plain Layout
15162 NeedMBoxProtect
15163 \end_layout
15164
15165 \end_inset
15166
15167  [
15168 \begin_inset Flex Code
15169 status collapsed
15170
15171 \begin_layout Plain Layout
15172
15173 \emph on
15174 0
15175 \end_layout
15176
15177 \end_inset
15178
15179 ,
15180 \begin_inset space \thinspace{}
15181 \end_inset
15182
15183
15184 \begin_inset Flex Code
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188 1
15189 \end_layout
15190
15191 \end_inset
15192
15193 ] Whether specific commands in this style (such as 
15194 \begin_inset Flex Code
15195 status collapsed
15196
15197 \begin_layout Plain Layout
15198
15199 \backslash
15200 cite
15201 \end_layout
15202
15203 \end_inset
15204
15205  and 
15206 \begin_inset Flex Code
15207 status collapsed
15208
15209 \begin_layout Plain Layout
15210
15211 \backslash
15212 ref
15213 \end_layout
15214
15215 \end_inset
15216
15217 ) should be protected in an 
15218 \begin_inset Flex Code
15219 status collapsed
15220
15221 \begin_layout Plain Layout
15222
15223 \backslash
15224 mbox
15225 \end_layout
15226
15227 \end_inset
15228
15229 .
15230  This is particularly needed for styles that draw on 
15231 \family sans
15232 ulem
15233 \family default
15234  or 
15235 \family sans
15236 soul
15237 \family default
15238  commands which parse their content in complex ways.
15239 \end_layout
15240
15241 \begin_layout Description
15242 \begin_inset Flex Code
15243 status collapsed
15244
15245 \begin_layout Plain Layout
15246 Newline
15247 \end_layout
15248
15249 \end_inset
15250
15251  [
15252 \begin_inset Flex Code
15253 status collapsed
15254
15255 \begin_layout Plain Layout
15256 0
15257 \end_layout
15258
15259 \end_inset
15260
15261 ,
15262 \begin_inset space \thinspace{}
15263 \end_inset
15264
15265
15266 \begin_inset Flex Code
15267 status collapsed
15268
15269 \begin_layout Plain Layout
15270
15271 \emph on
15272 1
15273 \end_layout
15274
15275 \end_inset
15276
15277 ] Whether newlines are translated into \SpecialChar LaTeX
15278  newlines (
15279 \begin_inset Flex Code
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283
15284 \backslash
15285
15286 \backslash
15287
15288 \end_layout
15289
15290 \end_inset
15291
15292 ) or not.
15293  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15294  editing inside \SpecialChar LyX
15295 .
15296 \end_layout
15297
15298 \begin_layout Description
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 NextNoIndent
15304 \end_layout
15305
15306 \end_inset
15307
15308  [
15309 \begin_inset Flex Code
15310 status collapsed
15311
15312 \begin_layout Plain Layout
15313
15314 \emph on
15315 0
15316 \end_layout
15317
15318 \end_inset
15319
15320 ,
15321 \begin_inset space \thinspace{}
15322 \end_inset
15323
15324
15325 \begin_inset Flex Code
15326 status collapsed
15327
15328 \begin_layout Plain Layout
15329 1
15330 \end_layout
15331
15332 \end_inset
15333
15334 ] If set to true,
15335  and if 
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340 DefaultStyle
15341 \end_layout
15342
15343 \end_inset
15344
15345  (usually 
15346 \begin_inset Flex Code
15347 status collapsed
15348
15349 \begin_layout Plain Layout
15350 Standard
15351 \end_layout
15352
15353 \end_inset
15354
15355 ) paragraphs are being indented,
15356  then the indentation of such a paragraph following one of this type will be suppressed.
15357  (So this will not affect the display of non-default paragraphs.)
15358 \end_layout
15359
15360 \begin_layout Description
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 ObsoletedBy
15366 \end_layout
15367
15368 \end_inset
15369
15370  [
15371 \begin_inset Flex Code
15372 status collapsed
15373
15374 \begin_layout Plain Layout
15375 <name>
15376 \end_layout
15377
15378 \end_inset
15379
15380 ] Name of a style that has replaced this style.
15381  This is used to rename a style,
15382  while keeping backward compatibility.
15383 \end_layout
15384
15385 \begin_layout Description
15386 \begin_inset Flex Code
15387 status collapsed
15388
15389 \begin_layout Plain Layout
15390 ParagraphGroup
15391 \end_layout
15392
15393 \end_inset
15394
15395  [
15396 \begin_inset Flex Code
15397 status collapsed
15398
15399 \begin_layout Plain Layout
15400 0
15401 \end_layout
15402
15403 \end_inset
15404
15405 ,
15406 \begin_inset space \thinspace{}
15407 \end_inset
15408
15409
15410 \begin_inset Flex Code
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 1
15415 \end_layout
15416
15417 \end_inset
15418
15419 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
15420  This has the effect that the 
15421 \begin_inset Flex Code
15422 status collapsed
15423
15424 \begin_layout Plain Layout
15425 GuiLabel
15426 \end_layout
15427
15428 \end_inset
15429
15430  is only printed once before such a group.
15431  By default,
15432  this is true for 
15433 \begin_inset Flex Code
15434 status collapsed
15435
15436 \begin_layout Plain Layout
15437 LaTeXType
15438 \end_layout
15439
15440 \end_inset
15441
15442  
15443 \begin_inset Flex Code
15444 status collapsed
15445
15446 \begin_layout Plain Layout
15447 Environment
15448 \end_layout
15449
15450 \end_inset
15451
15452  and 
15453 \begin_inset Flex Code
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457 Bib_Environment
15458 \end_layout
15459
15460 \end_inset
15461
15462  and false for all other types.
15463 \end_layout
15464
15465 \begin_layout Description
15466 \begin_inset Flex Code
15467 status collapsed
15468
15469 \begin_layout Plain Layout
15470 ParbreakIsNewline
15471 \end_layout
15472
15473 \end_inset
15474
15475  [
15476 \begin_inset Flex Code
15477 status collapsed
15478
15479 \begin_layout Plain Layout
15480
15481 \emph on
15482 0
15483 \end_layout
15484
15485 \end_inset
15486
15487 ,
15488 \begin_inset space \thinspace{}
15489 \end_inset
15490
15491
15492 \begin_inset Flex Code
15493 status collapsed
15494
15495 \begin_layout Plain Layout
15496 1
15497 \end_layout
15498
15499 \end_inset
15500
15501 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15502  output,
15503  but only by a line break;
15504  together with 
15505 \begin_inset Flex Code
15506 status collapsed
15507
15508 \begin_layout Plain Layout
15509 PassThru 1
15510 \end_layout
15511
15512 \end_inset
15513
15514 ,
15515  this allows to emulate a plain text editor (like the ERT inset).
15516 \end_layout
15517
15518 \begin_layout Description
15519 \begin_inset Flex Code
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 ParIndent
15524 \end_layout
15525
15526 \end_inset
15527
15528  [
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533 string=""
15534 \end_layout
15535
15536 \end_inset
15537
15538 ] The indent of the very first line of a paragraph.
15539  The
15540 \begin_inset Newline newline
15541 \end_inset
15542
15543
15544 \begin_inset Flex Code
15545 status collapsed
15546
15547 \begin_layout Plain Layout
15548 Parindent
15549 \end_layout
15550
15551 \end_inset
15552
15553  will be fixed for a certain style.
15554  The exception is the default style,
15555  since the indentation for these paragraphs can be prohibited with 
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 NextNoIndent
15561 \end_layout
15562
15563 \end_inset
15564
15565 .
15566  Also,
15567  
15568 \begin_inset Flex Code
15569 status collapsed
15570
15571 \begin_layout Plain Layout
15572 Standard
15573 \end_layout
15574
15575 \end_inset
15576
15577  style paragraphs inside environments use the 
15578 \begin_inset Flex Code
15579 status collapsed
15580
15581 \begin_layout Plain Layout
15582 Parindent
15583 \end_layout
15584
15585 \end_inset
15586
15587  of the environment,
15588  not their native one.
15589  For example,
15590  
15591 \begin_inset Flex Code
15592 status collapsed
15593
15594 \begin_layout Plain Layout
15595 Standard
15596 \end_layout
15597
15598 \end_inset
15599
15600  paragraphs inside an enumeration are not indented.
15601 \end_layout
15602
15603 \begin_layout Description
15604 \begin_inset Flex Code
15605 status collapsed
15606
15607 \begin_layout Plain Layout
15608 ParSep
15609 \end_layout
15610
15611 \end_inset
15612
15613  [
15614 \begin_inset Flex Code
15615 status collapsed
15616
15617 \begin_layout Plain Layout
15618 float=0
15619 \end_layout
15620
15621 \end_inset
15622
15623 ] The vertical space between two paragraphs of this style.
15624 \end_layout
15625
15626 \begin_layout Description
15627 \begin_inset Flex Code
15628 status collapsed
15629
15630 \begin_layout Plain Layout
15631 Parskip
15632 \end_layout
15633
15634 \end_inset
15635
15636  [
15637 \begin_inset Flex Code
15638 status collapsed
15639
15640 \begin_layout Plain Layout
15641 float=0
15642 \end_layout
15643
15644 \end_inset
15645
15646 ] \SpecialChar LyX
15647  allows the user to choose either 
15648 \begin_inset Quotes eld
15649 \end_inset
15650
15651 indent
15652 \begin_inset Quotes erd
15653 \end_inset
15654
15655  or 
15656 \begin_inset Quotes eld
15657 \end_inset
15658
15659 skip
15660 \begin_inset Quotes erd
15661 \end_inset
15662
15663  to separate paragraphs.
15664  When 
15665 \begin_inset Quotes eld
15666 \end_inset
15667
15668 indent
15669 \begin_inset Quotes erd
15670 \end_inset
15671
15672  is chosen,
15673  
15674 \begin_inset Flex Code
15675 status collapsed
15676
15677 \begin_layout Plain Layout
15678 Parskip
15679 \end_layout
15680
15681 \end_inset
15682
15683  is ignored.
15684  When 
15685 \begin_inset Quotes eld
15686 \end_inset
15687
15688 skip
15689 \begin_inset Quotes erd
15690 \end_inset
15691
15692  is chosen,
15693  
15694 \begin_inset Flex Code
15695 status collapsed
15696
15697 \begin_layout Plain Layout
15698 ParIndent
15699 \end_layout
15700
15701 \end_inset
15702
15703  is ignored and all paragraphs are separated by the 
15704 \begin_inset Flex Code
15705 status collapsed
15706
15707 \begin_layout Plain Layout
15708 Parskip
15709 \end_layout
15710
15711 \end_inset
15712
15713  argument.
15714  The vertical space is calculated with 
15715 \begin_inset Flex Code
15716 status collapsed
15717
15718 \begin_layout Plain Layout
15719 Parskip
15720 \begin_inset space ~
15721 \end_inset
15722
15723 * DefaultHeight
15724 \end_layout
15725
15726 \end_inset
15727
15728  where 
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733 DefaultHeight
15734 \end_layout
15735
15736 \end_inset
15737
15738  is the height of a row with the normal font.
15739  This way,
15740  the look stays the same with different screen fonts.
15741 \end_layout
15742
15743 \begin_layout Description
15744 \begin_inset Flex Code
15745 status collapsed
15746
15747 \begin_layout Plain Layout
15748 PassThru
15749 \end_layout
15750
15751 \end_inset
15752
15753  [
15754 \begin_inset Flex Code
15755 status collapsed
15756
15757 \begin_layout Plain Layout
15758
15759 \emph on
15760 0
15761 \end_layout
15762
15763 \end_inset
15764
15765 ,
15766 \begin_inset space \thinspace{}
15767 \end_inset
15768
15769
15770 \begin_inset Flex Code
15771 status collapsed
15772
15773 \begin_layout Plain Layout
15774 1
15775 \end_layout
15776
15777 \end_inset
15778
15779 ] Whether the contents of this paragraph should be output in raw form,
15780  meaning without special translations that \SpecialChar LaTeX
15781  would require.
15782 \end_layout
15783
15784 \begin_layout Description
15785 \begin_inset Flex Code
15786 status collapsed
15787
15788 \begin_layout Plain Layout
15789 PassThruChars
15790 \end_layout
15791
15792 \end_inset
15793
15794  [
15795 \begin_inset Flex Code
15796 status collapsed
15797
15798 \begin_layout Plain Layout
15799 string
15800 \end_layout
15801
15802 \end_inset
15803
15804 ]
15805 \family typewriter
15806  
15807 \family default
15808 Defines individual characters that should be output in raw form,
15809  meaning without special translations that \SpecialChar LaTeX
15810  would require.
15811 \end_layout
15812
15813 \begin_layout Description
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818 Preamble
15819 \end_layout
15820
15821 \end_inset
15822
15823  Information to be included in the \SpecialChar LaTeX
15824  preamble when this style is used.
15825  Used to define macros,
15826  load packages,
15827  etc.,
15828  required by this particular style.
15829  Must end with 
15830 \begin_inset Quotes eld
15831 \end_inset
15832
15833
15834 \begin_inset Flex Code
15835 status collapsed
15836
15837 \begin_layout Plain Layout
15838 EndPreamble
15839 \end_layout
15840
15841 \end_inset
15842
15843
15844 \begin_inset Quotes erd
15845 \end_inset
15846
15847 .
15848 \end_layout
15849
15850 \begin_layout Description
15851 \begin_inset Flex Code
15852 status collapsed
15853
15854 \begin_layout Plain Layout
15855 RefPrefix
15856 \end_layout
15857
15858 \end_inset
15859
15860  [
15861 \begin_inset Flex Code
15862 status collapsed
15863
15864 \begin_layout Plain Layout
15865 string
15866 \end_layout
15867
15868 \end_inset
15869
15870 ] The prefix to use when creating labels referring to paragraphs of this type.
15871  This allows the use of formatted references.
15872 \end_layout
15873
15874 \begin_layout Description
15875 \begin_inset Flex Code
15876 status collapsed
15877
15878 \begin_layout Plain Layout
15879 Requires 
15880 \end_layout
15881
15882 \end_inset
15883
15884  [
15885 \begin_inset Flex Code
15886 status collapsed
15887
15888 \begin_layout Plain Layout
15889 string
15890 \end_layout
15891
15892 \end_inset
15893
15894 ] Whether the style requires the feature 
15895 \begin_inset Flex Code
15896 status collapsed
15897
15898 \begin_layout Plain Layout
15899 string
15900 \end_layout
15901
15902 \end_inset
15903
15904  (see 
15905 \begin_inset CommandInset ref
15906 LatexCommand ref
15907 reference "chap:List-of-functions"
15908 nolink "false"
15909
15910 \end_inset
15911
15912  for the list of features).
15913  If you require a package with specific options,
15914  you can additionally use 
15915 \begin_inset Flex Code
15916 status collapsed
15917
15918 \begin_layout Plain Layout
15919 PackageOptions
15920 \end_layout
15921
15922 \end_inset
15923
15924  as a general text class parameter (see 
15925 \begin_inset CommandInset ref
15926 LatexCommand ref
15927 reference "subsec:General-text-class"
15928 nolink "false"
15929
15930 \end_inset
15931
15932 ).
15933 \end_layout
15934
15935 \begin_layout Description
15936 \begin_inset Flex Code
15937 status collapsed
15938
15939 \begin_layout Plain Layout
15940 ResetArgs
15941 \end_layout
15942
15943 \end_inset
15944
15945  [
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950
15951 \emph on
15952 0
15953 \end_layout
15954
15955 \end_inset
15956
15957 ,
15958 \begin_inset Flex Code
15959 status collapsed
15960
15961 \begin_layout Plain Layout
15962 1
15963 \end_layout
15964
15965 \end_inset
15966
15967 ] Resets the \SpecialChar LaTeX
15968  arguments of this style (as defined via the 
15969 \begin_inset Flex Code
15970 status collapsed
15971
15972 \begin_layout Plain Layout
15973 Argument
15974 \end_layout
15975
15976 \end_inset
15977
15978  tag).
15979  This is useful if you have copied a style via 
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 CopyStyle
15985 \end_layout
15986
15987 \end_inset
15988
15989 ,
15990  but you do not want to inherit its (required and optional) arguments.
15991 \end_layout
15992
15993 \begin_layout Description
15994 \begin_inset Flex Code
15995 status collapsed
15996
15997 \begin_layout Plain Layout
15998 ResumeCounter
15999 \end_layout
16000
16001 \end_inset
16002
16003  [
16004 \begin_inset Flex Code
16005 status collapsed
16006
16007 \begin_layout Plain Layout
16008
16009 \emph on
16010 0
16011 \end_layout
16012
16013 \end_inset
16014
16015 ,
16016 \begin_inset Flex Code
16017 status collapsed
16018
16019 \begin_layout Plain Layout
16020 1
16021 \end_layout
16022
16023 \end_inset
16024
16025 ] Resumes a counter that is usually reset at each new sequence of layouts.
16026  This is currently only useful when 
16027 \begin_inset Flex Code
16028 status collapsed
16029
16030 \begin_layout Plain Layout
16031 LabelType
16032 \end_layout
16033
16034 \end_inset
16035
16036  is 
16037 \begin_inset Flex Code
16038 status collapsed
16039
16040 \begin_layout Plain Layout
16041 Enumerate
16042 \end_layout
16043
16044 \end_inset
16045
16046 .
16047 \end_layout
16048
16049 \begin_layout Description
16050 \begin_inset Flex Code
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054 RightDelim
16055 \end_layout
16056
16057 \end_inset
16058
16059  [
16060 \begin_inset Flex Code
16061 status collapsed
16062
16063 \begin_layout Plain Layout
16064 string
16065 \end_layout
16066
16067 \end_inset
16068
16069 ] A string that is put at the end of the layout content.
16070  A line break in the output can be indicated by 
16071 \begin_inset Flex Code
16072 status collapsed
16073
16074 \begin_layout Plain Layout
16075 <br/>
16076 \end_layout
16077
16078 \end_inset
16079
16080 .
16081 \end_layout
16082
16083 \begin_layout Description
16084 \begin_inset Flex Code
16085 status collapsed
16086
16087 \begin_layout Plain Layout
16088 RightMargin
16089 \end_layout
16090
16091 \end_inset
16092
16093  [
16094 \begin_inset Flex Code
16095 status collapsed
16096
16097 \begin_layout Plain Layout
16098 string=""
16099 \end_layout
16100
16101 \end_inset
16102
16103 ] Similar to 
16104 \begin_inset Flex Code
16105 status collapsed
16106
16107 \begin_layout Plain Layout
16108 LeftMargin
16109 \end_layout
16110
16111 \end_inset
16112
16113 .
16114 \end_layout
16115
16116 \begin_layout Description
16117 \begin_inset Flex Code
16118 status collapsed
16119
16120 \begin_layout Plain Layout
16121 Spacing
16122 \end_layout
16123
16124 \end_inset
16125
16126  [
16127 \begin_inset Flex Code
16128 status collapsed
16129
16130 \begin_layout Plain Layout
16131
16132 \emph on
16133 single
16134 \end_layout
16135
16136 \end_inset
16137
16138 ,
16139  
16140 \begin_inset Flex Code
16141 status collapsed
16142
16143 \begin_layout Plain Layout
16144 onehalf
16145 \end_layout
16146
16147 \end_inset
16148
16149 ,
16150  
16151 \begin_inset Flex Code
16152 status collapsed
16153
16154 \begin_layout Plain Layout
16155 double
16156 \end_layout
16157
16158 \end_inset
16159
16160 ,
16161  
16162 \begin_inset Flex Code
16163 status collapsed
16164
16165 \begin_layout Plain Layout
16166 other
16167 \begin_inset space ~
16168 \end_inset
16169
16170 <value>
16171 \end_layout
16172
16173 \end_inset
16174
16175 ] This defines what the default spacing should be in the style.
16176  The arguments 
16177 \begin_inset Flex Code
16178 status collapsed
16179
16180 \begin_layout Plain Layout
16181 single
16182 \end_layout
16183
16184 \end_inset
16185
16186 ,
16187  
16188 \begin_inset Flex Code
16189 status collapsed
16190
16191 \begin_layout Plain Layout
16192 onehalf
16193 \end_layout
16194
16195 \end_inset
16196
16197  and 
16198 \begin_inset Flex Code
16199 status collapsed
16200
16201 \begin_layout Plain Layout
16202 double
16203 \end_layout
16204
16205 \end_inset
16206
16207  correspond respectively to a multiplier value of 1,
16208  1.25 and 1.667.
16209  If you specify the argument 
16210 \begin_inset Flex Code
16211 status collapsed
16212
16213 \begin_layout Plain Layout
16214 other
16215 \end_layout
16216
16217 \end_inset
16218
16219 ,
16220  then you must also provide a value argument which will be the actual multiplier value.
16221  Note that,
16222  contrary to other parameters,
16223  
16224 \begin_inset Flex Code
16225 status collapsed
16226
16227 \begin_layout Plain Layout
16228 Spacing
16229 \end_layout
16230
16231 \end_inset
16232
16233  implies the generation of specific \SpecialChar LaTeX
16234  code,
16235  using the \SpecialChar LaTeX
16236  package 
16237 \family roman
16238
16239 \begin_inset Flex Code
16240 status collapsed
16241
16242 \begin_layout Plain Layout
16243 setspace
16244 \end_layout
16245
16246 \end_inset
16247
16248 .
16249 \end_layout
16250
16251 \begin_layout Description
16252 \begin_inset Flex Code
16253 status collapsed
16254
16255 \begin_layout Plain Layout
16256 Spellcheck
16257 \end_layout
16258
16259 \end_inset
16260
16261  [
16262 \begin_inset Flex Code
16263 status collapsed
16264
16265 \begin_layout Plain Layout
16266 0
16267 \end_layout
16268
16269 \end_inset
16270
16271 ,
16272 \begin_inset space \thinspace{}
16273 \end_inset
16274
16275
16276 \begin_inset Flex Code
16277 status collapsed
16278
16279 \begin_layout Plain Layout
16280
16281 \emph on
16282 1
16283 \end_layout
16284
16285 \end_inset
16286
16287 ] Allow spell-checking paragraphs of this style.
16288  Default is true.
16289 \end_layout
16290
16291 \begin_layout Description
16292 \begin_inset Flex Code
16293 status collapsed
16294
16295 \begin_layout Plain Layout
16296 StepParentCounter
16297 \end_layout
16298
16299 \end_inset
16300
16301  [
16302 \begin_inset Flex Code
16303 status collapsed
16304
16305 \begin_layout Plain Layout
16306
16307 \emph on
16308 0
16309 \end_layout
16310
16311 \end_inset
16312
16313 ,
16314 \begin_inset Flex Code
16315 status collapsed
16316
16317 \begin_layout Plain Layout
16318 1
16319 \end_layout
16320
16321 \end_inset
16322
16323 ] Steps the parent counter of a given counter at the beginning of a new sequence of layouts.
16324  This is currently only useful when 
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329 LabelType
16330 \end_layout
16331
16332 \end_inset
16333
16334  is 
16335 \begin_inset Flex Code
16336 status collapsed
16337
16338 \begin_layout Plain Layout
16339 Enumerate
16340 \end_layout
16341
16342 \end_inset
16343
16344 .
16345 \end_layout
16346
16347 \begin_layout Description
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 TextFont
16353 \end_layout
16354
16355 \end_inset
16356
16357  The font used for the text body .
16358  See 
16359 \begin_inset CommandInset ref
16360 LatexCommand ref
16361 reference "subsec:Font-description"
16362 nolink "false"
16363
16364 \end_inset
16365
16366 .
16367 \end_layout
16368
16369 \begin_layout Description
16370 \begin_inset Flex Code
16371 status collapsed
16372
16373 \begin_layout Plain Layout
16374 TocLevel
16375 \end_layout
16376
16377 \end_inset
16378
16379
16380 \series medium
16381  [
16382 \begin_inset Flex Code
16383 status collapsed
16384
16385 \begin_layout Plain Layout
16386
16387 \series medium
16388 int=3
16389 \end_layout
16390
16391 \end_inset
16392
16393 ]
16394 \series default
16395  The level of the style in the table of contents.
16396  This is used for automatic numbering of section headings.
16397 \end_layout
16398
16399 \begin_layout Description
16400 \begin_inset Flex Code
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404 ToggleIndent
16405 \end_layout
16406
16407 \end_inset
16408
16409  [
16410 \emph on
16411
16412 \begin_inset Flex Code
16413 status collapsed
16414
16415 \begin_layout Plain Layout
16416
16417 \emph on
16418 default
16419 \end_layout
16420
16421 \end_inset
16422
16423
16424 \emph default
16425 ,
16426  
16427 \begin_inset Flex Code
16428 status collapsed
16429
16430 \begin_layout Plain Layout
16431 always
16432 \end_layout
16433
16434 \end_inset
16435
16436 ,
16437  
16438 \begin_inset Flex Code
16439 status collapsed
16440
16441 \begin_layout Plain Layout
16442 never
16443 \end_layout
16444
16445 \end_inset
16446
16447 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
16448  If 
16449 \emph on
16450
16451 \begin_inset Flex Code
16452 status collapsed
16453
16454 \begin_layout Plain Layout
16455
16456 \emph off
16457 default
16458 \end_layout
16459
16460 \end_inset
16461
16462
16463 \emph default
16464  is set,
16465  indentation can be toggled if the document settings use 
16466 \begin_inset Quotes eld
16467 \end_inset
16468
16469 indent
16470 \begin_inset Quotes erd
16471 \end_inset
16472
16473  paragraph style,
16474  with 
16475 \begin_inset Flex Code
16476 status collapsed
16477
16478 \begin_layout Plain Layout
16479 always
16480 \end_layout
16481
16482 \end_inset
16483
16484 ,
16485  indentation can always be toggled,
16486  notwithstanding the document settings,
16487  with 
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 never
16493 \end_layout
16494
16495 \end_inset
16496
16497 ,
16498  indentation can never be toggled.
16499 \end_layout
16500
16501 \begin_layout Description
16502 \begin_inset Flex Code
16503 status collapsed
16504
16505 \begin_layout Plain Layout
16506 TopSep
16507 \end_layout
16508
16509 \end_inset
16510
16511  [
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516 float=0
16517 \end_layout
16518
16519 \end_inset
16520
16521 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
16522  If the previous paragraph has another style,
16523  the separations are not simply added,
16524  but the maximum is taken.
16525 \end_layout
16526
16527 \begin_layout Subsection
16528 \begin_inset CommandInset label
16529 LatexCommand label
16530 name "subsec:I18n"
16531
16532 \end_inset
16533
16534 Internationalization of Paragraph Styles
16535 \end_layout
16536
16537 \begin_layout Standard
16538 \SpecialChar LyX
16539  has long supported internationalization of layout information,
16540  but,
16541  until version 2.0,
16542  this applied only to the user interface and not to,
16543  say,
16544  PDF output.
16545  Thus,
16546  French authors were forced to resort to ugly hacks if they wanted `
16547 \lang french
16548 Théorème
16549 \lang english
16550  1' instead of `Theorem 1'.
16551  Thanks to Georg Baum,
16552  that is no longer the case.
16553 \end_layout
16554
16555 \begin_layout Standard
16556 If a 
16557 \begin_inset Flex Code
16558 status collapsed
16559
16560 \begin_layout Plain Layout
16561 Style
16562 \end_layout
16563
16564 \end_inset
16565
16566  defines text that is to appear in the typeset document,
16567  it may use 
16568 \begin_inset Flex Code
16569 status collapsed
16570
16571 \begin_layout Plain Layout
16572 LangPreamble
16573 \end_layout
16574
16575 \end_inset
16576
16577  and 
16578 \begin_inset Flex Code
16579 status collapsed
16580
16581 \begin_layout Plain Layout
16582 BabelPreamble
16583 \end_layout
16584
16585 \end_inset
16586
16587  to support non-English and even multi-language documents correctly.
16588  The following excerpt (from the 
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593 theorems-ams.inc
16594 \end_layout
16595
16596 \end_inset
16597
16598  file) shows how this works:
16599 \end_layout
16600
16601 \begin_layout LyX-Code
16602 Preamble
16603 \end_layout
16604
16605 \begin_deeper
16606 \begin_layout LyX-Code
16607   
16608 \backslash
16609 theoremstyle{remark}
16610 \end_layout
16611
16612 \begin_layout LyX-Code
16613   
16614 \backslash
16615 newtheorem{claim}[thm]{
16616 \backslash
16617 protect
16618 \backslash
16619 claimname}
16620 \end_layout
16621
16622 \begin_layout LyX-Code
16623 EndPreamble
16624 \end_layout
16625
16626 \begin_layout LyX-Code
16627 LangPreamble
16628 \end_layout
16629
16630 \begin_layout LyX-Code
16631   
16632 \backslash
16633 providecommand{
16634 \backslash
16635 claimname}{_(Claim)}
16636 \end_layout
16637
16638 \begin_layout LyX-Code
16639 EndLangPreamble
16640 \end_layout
16641
16642 \begin_layout LyX-Code
16643 BabelPreamble
16644 \end_layout
16645
16646 \begin_layout LyX-Code
16647     
16648 \backslash
16649 addto
16650 \backslash
16651 captions$$lang{
16652 \backslash
16653 renewcommand{
16654 \backslash
16655 claimname}{_(Claim)}}
16656 \end_layout
16657
16658 \begin_layout LyX-Code
16659 EndBabelPreamble
16660 \end_layout
16661
16662 \end_deeper
16663 \begin_layout Standard
16664 In principle,
16665  any legal \SpecialChar LaTeX
16666  may appear in the 
16667 \begin_inset Flex Code
16668 status collapsed
16669
16670 \begin_layout Plain Layout
16671 LangPreamble
16672 \end_layout
16673
16674 \end_inset
16675
16676  and 
16677 \begin_inset Flex Code
16678 status collapsed
16679
16680 \begin_layout Plain Layout
16681 BabelPreamble
16682 \end_layout
16683
16684 \end_inset
16685
16686  tags,
16687  but in practice they will typically look as they do here.
16688  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
16689  command 
16690 \begin_inset Flex Code
16691 status collapsed
16692
16693 \begin_layout Plain Layout
16694
16695 \backslash
16696 claimname
16697 \end_layout
16698
16699 \end_inset
16700
16701  and its use in 
16702 \begin_inset Flex Code
16703 status collapsed
16704
16705 \begin_layout Plain Layout
16706
16707 \backslash
16708 newtheorem
16709 \end_layout
16710
16711 \end_inset
16712
16713 .
16714  
16715 \end_layout
16716
16717 \begin_layout Standard
16718 The 
16719 \begin_inset Flex Code
16720 status collapsed
16721
16722 \begin_layout Plain Layout
16723 LangPreamble
16724 \end_layout
16725
16726 \end_inset
16727
16728  tag provides for internationalization based upon the overall language of the document.
16729  The contents of the tag will be included in the preamble,
16730  just as with the 
16731 \begin_inset Flex Code
16732 status collapsed
16733
16734 \begin_layout Plain Layout
16735 Preamble
16736 \end_layout
16737
16738 \end_inset
16739
16740  tag.
16741  What makes it special is the use of the 
16742 \begin_inset Quotes eld
16743 \end_inset
16744
16745 function
16746 \begin_inset Quotes erd
16747 \end_inset
16748
16749  
16750 \begin_inset Flex Code
16751 status collapsed
16752
16753 \begin_layout Plain Layout
16754 _()
16755 \end_layout
16756
16757 \end_inset
16758
16759 ,
16760  which will be replaced,
16761  when \SpecialChar LyX
16762  produces \SpecialChar LaTeX
16763  output,
16764  with the translation of its argument into the document language.
16765 \end_layout
16766
16767 \begin_layout Standard
16768 The 
16769 \begin_inset Flex Code
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 BabelPreamble
16774 \end_layout
16775
16776 \end_inset
16777
16778  tag is more complex,
16779  since it is meant to provide support for multi-language documents and so offers an interface to the 
16780 \begin_inset Flex Code
16781 status collapsed
16782
16783 \begin_layout Plain Layout
16784 babel
16785 \end_layout
16786
16787 \end_inset
16788
16789  package.
16790  Its contents will be added to the preamble once for each language that appears in the document.
16791  In this case,
16792  the argument to 
16793 \begin_inset Flex Code
16794 status collapsed
16795
16796 \begin_layout Plain Layout
16797 _()
16798 \end_layout
16799
16800 \end_inset
16801
16802  will be replaced with its translation into the language in question;
16803  the expression 
16804 \begin_inset Flex Code
16805 status collapsed
16806
16807 \begin_layout Plain Layout
16808 $$lang
16809 \end_layout
16810
16811 \end_inset
16812
16813  is replaced by the language name (as used by the babel package).
16814 \end_layout
16815
16816 \begin_layout Standard
16817 A German document that also included a French section would thus have the following in the preamble:
16818 \end_layout
16819
16820 \begin_layout LyX-Code
16821
16822 \backslash
16823 addto
16824 \backslash
16825 captionsfrench{
16826 \backslash
16827 renewcommand{
16828 \backslash
16829 claimname}{Affirmation}}
16830 \begin_inset Newline newline
16831 \end_inset
16832
16833
16834 \backslash
16835 addto
16836 \backslash
16837 captionsngerman{
16838 \backslash
16839 renewcommand{
16840 \backslash
16841 claimname}{Behauptung}}
16842 \begin_inset Newline newline
16843 \end_inset
16844
16845
16846 \backslash
16847 providecommand{
16848 \backslash
16849 claimname}{Behauptung}
16850 \end_layout
16851
16852 \begin_layout Standard
16853 \SpecialChar LaTeX
16854  and 
16855 \begin_inset Flex Code
16856 status collapsed
16857
16858 \begin_layout Plain Layout
16859 babel
16860 \end_layout
16861
16862 \end_inset
16863
16864  will then conspire to produce the correct text in the output.
16865 \end_layout
16866
16867 \begin_layout Standard
16868 One important point to note here is that the translations are provided by \SpecialChar LyX
16869  itself,
16870  through the file 
16871 \begin_inset Flex Code
16872 status collapsed
16873
16874 \begin_layout Plain Layout
16875 layouttranslations
16876 \end_layout
16877
16878 \end_inset
16879
16880 .
16881  This means,
16882  in effect,
16883  that 
16884 \begin_inset Flex Code
16885 status collapsed
16886
16887 \begin_layout Plain Layout
16888 LangPreamble
16889 \end_layout
16890
16891 \end_inset
16892
16893  and 
16894 \begin_inset Flex Code
16895 status collapsed
16896
16897 \begin_layout Plain Layout
16898 BabelPreamble
16899 \end_layout
16900
16901 \end_inset
16902
16903  are really only of use in layout files that are provided with \SpecialChar LyX
16904 ,
16905  since text entered in user-created layout files will not be seen by \SpecialChar LyX
16906 's internationalization routines unless the 
16907 \begin_inset Flex Code
16908 status collapsed
16909
16910 \begin_layout Plain Layout
16911 layouttranslations
16912 \end_layout
16913
16914 \end_inset
16915
16916  file is modified accordingly.
16917  That said,
16918  however,
16919  any layout created with the intention that it will be included with \SpecialChar LyX
16920  should use these tags where appropriate.
16921  Please note that the paragraph style translations provided by \SpecialChar LyX
16922  will never change with a minor update (e.
16923 \begin_inset space \thinspace{}
16924 \end_inset
16925
16926 g.
16927 \begin_inset space \space{}
16928 \end_inset
16929
16930 from version 2.1.x to 2.1.y).
16931  It is however quite likely that a major update (e.
16932 \begin_inset space \thinspace{}
16933 \end_inset
16934
16935 g.
16936 \begin_inset space \space{}
16937 \end_inset
16938
16939 from 2.0.x to 2.1.0) will introduce new translations or corrections.
16940 \end_layout
16941
16942 \begin_layout Subsection
16943 Floats
16944 \begin_inset CommandInset label
16945 LatexCommand label
16946 name "subsec:Floats"
16947
16948 \end_inset
16949
16950
16951 \end_layout
16952
16953 \begin_layout Standard
16954 It is necessary to define the floats (
16955 \begin_inset Flex Noun
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 figure
16960 \end_layout
16961
16962 \end_inset
16963
16964 ,
16965  
16966 \begin_inset Flex Noun
16967 status collapsed
16968
16969 \begin_layout Plain Layout
16970 table
16971 \end_layout
16972
16973 \end_inset
16974
16975 ,
16976  \SpecialChar ldots
16977 ) in the text class itself.
16978  Standard floats are included in the file 
16979 \begin_inset Flex Code
16980 status collapsed
16981
16982 \begin_layout Plain Layout
16983 stdfloats.inc
16984 \end_layout
16985
16986 \end_inset
16987
16988 ,
16989  so you may have to do no more than add
16990 \end_layout
16991
16992 \begin_layout LyX-Code
16993 Input stdfloats.inc
16994 \end_layout
16995
16996 \begin_layout Standard
16997 to your layout file.
16998  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
16999 ),
17000  the information below will hopefully help you:
17001 \end_layout
17002
17003 \begin_layout Description
17004 \begin_inset Flex Code
17005 status collapsed
17006
17007 \begin_layout Plain Layout
17008 AllowedPlacement
17009 \end_layout
17010
17011 \end_inset
17012
17013  [
17014 \begin_inset Flex Code
17015 status collapsed
17016
17017 \begin_layout Plain Layout
17018 string
17019 \end_layout
17020
17021 \end_inset
17022
17023 =!htbpH] Allowed placement options for this float type.
17024  The value is a string of placement characters.
17025  Possible characters include:
17026  
17027 \emph on
17028 h
17029 \emph default
17030  (
17031 \begin_inset Quotes eld
17032 \end_inset
17033
17034 here if possible
17035 \begin_inset Quotes erd
17036 \end_inset
17037
17038 ),
17039  
17040 \emph on
17041 t
17042 \emph default
17043  (
17044 \begin_inset Quotes eld
17045 \end_inset
17046
17047 top of page
17048 \begin_inset Quotes erd
17049 \end_inset
17050
17051 ),
17052  
17053 \emph on
17054 b
17055 \emph default
17056  (
17057 \begin_inset Quotes eld
17058 \end_inset
17059
17060 bottom of page
17061 \begin_inset Quotes erd
17062 \end_inset
17063
17064 ),
17065  
17066 \emph on
17067 p
17068 \emph default
17069  (
17070 \begin_inset Quotes eld
17071 \end_inset
17072
17073 page of floats
17074 \begin_inset Quotes erd
17075 \end_inset
17076
17077 ),
17078  
17079 \emph on
17080 H
17081 \emph default
17082  (
17083 \begin_inset Quotes eld
17084 \end_inset
17085
17086 here definitely
17087 \begin_inset Quotes erd
17088 \end_inset
17089
17090 ) and 
17091 \emph on
17092 !
17093
17094 \emph default
17095  (
17096 \begin_inset Quotes eld
17097 \end_inset
17098
17099 ignore LaTeX rules
17100 \begin_inset Quotes erd
17101 \end_inset
17102
17103 ).
17104  The order of the characters in the string does not matter.
17105  If no placement options are allowed,
17106  use the string 
17107 \emph on
17108 none
17109 \emph default
17110 .
17111 \end_layout
17112
17113 \begin_layout Description
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 AllowsSideways
17119 \end_layout
17120
17121 \end_inset
17122
17123  [
17124 \begin_inset Flex Code
17125 status collapsed
17126
17127 \begin_layout Plain Layout
17128
17129 \emph off
17130 0
17131 \end_layout
17132
17133 \end_inset
17134
17135 ,
17136 \begin_inset space \thinspace{}
17137 \end_inset
17138
17139
17140 \emph on
17141
17142 \begin_inset Flex Code
17143 status collapsed
17144
17145 \begin_layout Plain Layout
17146
17147 \emph on
17148 1
17149 \end_layout
17150
17151 \end_inset
17152
17153
17154 \emph default
17155 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17156 -package 
17157 \family typewriter
17158 rotfloat
17159 \family default
17160  (sidewaysfloat).
17161  Set to 
17162 \begin_inset Flex Code
17163 status collapsed
17164
17165 \begin_layout Plain Layout
17166 0
17167 \end_layout
17168
17169 \end_inset
17170
17171  if the float does not support this feature.
17172 \end_layout
17173
17174 \begin_layout Description
17175 \begin_inset Flex Code
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 AllowsWide
17180 \end_layout
17181
17182 \end_inset
17183
17184  [
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189
17190 \emph off
17191 0
17192 \end_layout
17193
17194 \end_inset
17195
17196 ,
17197 \begin_inset space \thinspace{}
17198 \end_inset
17199
17200
17201 \emph on
17202
17203 \begin_inset Flex Code
17204 status collapsed
17205
17206 \begin_layout Plain Layout
17207
17208 \emph on
17209 1
17210 \end_layout
17211
17212 \end_inset
17213
17214
17215 \emph default
17216 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
17217  Set to 
17218 \begin_inset Flex Code
17219 status collapsed
17220
17221 \begin_layout Plain Layout
17222 0
17223 \end_layout
17224
17225 \end_inset
17226
17227  if the float does not support this feature.
17228 \end_layout
17229
17230 \begin_layout Description
17231 \begin_inset Flex Code
17232 status collapsed
17233
17234 \begin_layout Plain Layout
17235 Extension
17236 \end_layout
17237
17238 \end_inset
17239
17240  [
17241 \begin_inset Flex Code
17242 status collapsed
17243
17244 \begin_layout Plain Layout
17245 string
17246 \end_layout
17247
17248 \end_inset
17249
17250 =
17251 \begin_inset Quotes erd
17252 \end_inset
17253
17254
17255 \begin_inset Quotes erd
17256 \end_inset
17257
17258 ] The file name extension of an auxiliary file for the list of figures (or whatever).
17259  \SpecialChar LaTeX
17260  writes the captions to this file.
17261 \end_layout
17262
17263 \begin_layout Description
17264 \begin_inset Flex Code
17265 status collapsed
17266
17267 \begin_layout Plain Layout
17268 GuiName
17269 \end_layout
17270
17271 \end_inset
17272
17273  [
17274 \begin_inset Flex Code
17275 status collapsed
17276
17277 \begin_layout Plain Layout
17278 string
17279 \end_layout
17280
17281 \end_inset
17282
17283 =
17284 \begin_inset Quotes erd
17285 \end_inset
17286
17287
17288 \begin_inset Quotes erd
17289 \end_inset
17290
17291 ] The string that will be used in the menus and also for the caption.
17292  This is translated to the current language if babel is used.
17293 \end_layout
17294
17295 \begin_layout Description
17296 \begin_inset Flex Code
17297 status collapsed
17298
17299 \begin_layout Plain Layout
17300 HTML*
17301 \end_layout
17302
17303 \end_inset
17304
17305  These tags control the XHTML output.
17306  See 
17307 \begin_inset CommandInset ref
17308 LatexCommand ref
17309 reference "sec:Tags-for-XHTML"
17310 nolink "false"
17311
17312 \end_inset
17313
17314 .
17315 \end_layout
17316
17317 \begin_layout Description
17318 \begin_inset Flex Code
17319 status collapsed
17320
17321 \begin_layout Plain Layout
17322 IsPredefined
17323 \end_layout
17324
17325 \end_inset
17326
17327  [
17328 \emph on
17329
17330 \begin_inset Flex Code
17331 status collapsed
17332
17333 \begin_layout Plain Layout
17334 0
17335 \end_layout
17336
17337 \end_inset
17338
17339
17340 \emph default
17341 ,
17342 \begin_inset space \thinspace{}
17343 \end_inset
17344
17345
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350 1
17351 \end_layout
17352
17353 \end_inset
17354
17355 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
17356  package 
17357 \begin_inset Flex Code
17358 status collapsed
17359
17360 \begin_layout Plain Layout
17361 float
17362 \end_layout
17363
17364 \end_inset
17365
17366  needs to be loaded to define it on-the-fly.
17367  The default is 
17368 \begin_inset Flex Code
17369 status collapsed
17370
17371 \begin_layout Plain Layout
17372 0
17373 \end_layout
17374
17375 \end_inset
17376
17377 ,
17378  which means:
17379  
17380 \begin_inset Flex Code
17381 status collapsed
17382
17383 \begin_layout Plain Layout
17384 float
17385 \end_layout
17386
17387 \end_inset
17388
17389  is used.
17390  It should be set to 
17391 \begin_inset Flex Code
17392 status collapsed
17393
17394 \begin_layout Plain Layout
17395 1
17396 \end_layout
17397
17398 \end_inset
17399
17400  if the float is already defined by the \SpecialChar LaTeX
17401  document class.
17402 \end_layout
17403
17404 \begin_layout Description
17405 \begin_inset Flex Code
17406 status collapsed
17407
17408 \begin_layout Plain Layout
17409 ListCommand
17410 \end_layout
17411
17412 \end_inset
17413
17414  [
17415 \begin_inset Flex Code
17416 status collapsed
17417
17418 \begin_layout Plain Layout
17419 string
17420 \end_layout
17421
17422 \end_inset
17423
17424 =
17425 \begin_inset Quotes erd
17426 \end_inset
17427
17428
17429 \begin_inset Quotes erd
17430 \end_inset
17431
17432 ] The command used to generate a list of floats of this type;
17433  the leading `
17434 \backslash
17435 ' must be omitted.
17436  This 
17437 \emph on
17438 must
17439 \emph default
17440  be given if 
17441 \begin_inset Flex Code
17442 status collapsed
17443
17444 \begin_layout Plain Layout
17445 UsesFloatPkg
17446 \end_layout
17447
17448 \end_inset
17449
17450  is false,
17451  since there is no standard way to generate this command.
17452  It is ignored if 
17453 \begin_inset Flex Code
17454 status collapsed
17455
17456 \begin_layout Plain Layout
17457 UsesFloatPkg
17458 \end_layout
17459
17460 \end_inset
17461
17462  is true,
17463  since in that case there is a standard way to define the command.
17464 \end_layout
17465
17466 \begin_layout Description
17467 \begin_inset Flex Code
17468 status collapsed
17469
17470 \begin_layout Plain Layout
17471 ListName
17472 \end_layout
17473
17474 \end_inset
17475
17476  [
17477 \begin_inset Flex Code
17478 status collapsed
17479
17480 \begin_layout Plain Layout
17481 string
17482 \end_layout
17483
17484 \end_inset
17485
17486 =
17487 \begin_inset Quotes erd
17488 \end_inset
17489
17490
17491 \begin_inset Quotes erd
17492 \end_inset
17493
17494 ] A title for a list of floats of this kind (list of figures,
17495  tables,
17496  or whatever).
17497  It is used for the screen label within \SpecialChar LyX
17498 ,
17499  it is used by \SpecialChar LaTeX
17500  for the title and it is used as the title in the XHTML output.
17501  It will be translated to the document language.
17502 \end_layout
17503
17504 \begin_layout Description
17505 \begin_inset Flex Code
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509 NumberWithin
17510 \end_layout
17511
17512 \end_inset
17513
17514  [
17515 \begin_inset Flex Code
17516 status collapsed
17517
17518 \begin_layout Plain Layout
17519 string
17520 \end_layout
17521
17522 \end_inset
17523
17524 =
17525 \begin_inset Quotes erd
17526 \end_inset
17527
17528
17529 \begin_inset Quotes erd
17530 \end_inset
17531
17532 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
17533  For example,
17534  if 
17535 \begin_inset Flex Code
17536 status collapsed
17537
17538 \begin_layout Plain Layout
17539 NumberWithin
17540 \end_layout
17541
17542 \end_inset
17543
17544  is set to 
17545 \begin_inset Quotes eld
17546 \end_inset
17547
17548
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 chapter
17554 \end_layout
17555
17556 \end_inset
17557
17558
17559 \begin_inset Quotes erd
17560 \end_inset
17561
17562 ,
17563  the floats will be numbered within chapters.
17564  
17565 \end_layout
17566
17567 \begin_layout Description
17568 \begin_inset Flex Code
17569 status collapsed
17570
17571 \begin_layout Plain Layout
17572 Placement
17573 \end_layout
17574
17575 \end_inset
17576
17577  [
17578 \begin_inset Flex Code
17579 status collapsed
17580
17581 \begin_layout Plain Layout
17582 string
17583 \end_layout
17584
17585 \end_inset
17586
17587 =
17588 \begin_inset Quotes erd
17589 \end_inset
17590
17591
17592 \begin_inset Quotes erd
17593 \end_inset
17594
17595 ] The default placement for the given class of floats.
17596  The string should be as in standard \SpecialChar LaTeX
17597 :
17598  
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 t
17604 \end_layout
17605
17606 \end_inset
17607
17608 ,
17609  
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 b
17615 \end_layout
17616
17617 \end_inset
17618
17619 ,
17620  
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625 p
17626 \end_layout
17627
17628 \end_inset
17629
17630  and 
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635 h
17636 \end_layout
17637
17638 \end_inset
17639
17640  for top,
17641  bottom,
17642  page,
17643  and here,
17644  respectively.
17645 \begin_inset Foot
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 Note that the order of these letters in the string is irrelevant,
17650  like in \SpecialChar LaTeX
17651 .
17652 \end_layout
17653
17654 \end_inset
17655
17656  On top of that there is a new type,
17657  
17658 \begin_inset Flex Code
17659 status collapsed
17660
17661 \begin_layout Plain Layout
17662 H
17663 \end_layout
17664
17665 \end_inset
17666
17667 ,
17668  which does not really correspond to a float,
17669  since it means:
17670  put it 
17671 \begin_inset Quotes eld
17672 \end_inset
17673
17674 here
17675 \begin_inset Quotes erd
17676 \end_inset
17677
17678  and nowhere else.
17679  Note however that the 
17680 \begin_inset Flex Code
17681 status collapsed
17682
17683 \begin_layout Plain Layout
17684 H
17685 \end_layout
17686
17687 \end_inset
17688
17689  specifier is special and,
17690  because of implementation details,
17691  cannot be used in non-built in float types.
17692  If you do not understand what this means,
17693  just use 
17694 \begin_inset Quotes eld
17695 \end_inset
17696
17697
17698 \begin_inset Flex Code
17699 status collapsed
17700
17701 \begin_layout Plain Layout
17702 tbp
17703 \end_layout
17704
17705 \end_inset
17706
17707
17708 \begin_inset Quotes erd
17709 \end_inset
17710
17711 .
17712 \end_layout
17713
17714 \begin_layout Description
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719 PrettyFormat
17720 \end_layout
17721
17722 \end_inset
17723
17724  [
17725 \begin_inset Flex Code
17726 status collapsed
17727
17728 \begin_layout Plain Layout
17729 string
17730 \end_layout
17731
17732 \end_inset
17733
17734 =
17735 \begin_inset Quotes erd
17736 \end_inset
17737
17738
17739 \begin_inset Quotes erd
17740 \end_inset
17741
17742 ] A format for use with formatted references to this counter.
17743  For example,
17744  one might want to have references to tables appear as 
17745 \begin_inset Quotes eld
17746 \end_inset
17747
17748 Table 2
17749 \begin_inset Quotes erd
17750 \end_inset
17751
17752 .
17753  The string may contain 
17754 \begin_inset Quotes eld
17755 \end_inset
17756
17757 ##
17758 \begin_inset Quotes erd
17759 \end_inset
17760
17761  or a counter specification.
17762  (See the documentation for 
17763 \begin_inset Flex Code
17764 status open
17765
17766 \begin_layout Plain Layout
17767 LabelString
17768 \end_layout
17769
17770 \end_inset
17771
17772  in 
17773 \begin_inset CommandInset ref
17774 LatexCommand formatted
17775 reference "subsec:Counters"
17776 plural "false"
17777 caps "false"
17778 noprefix "false"
17779 nolink "false"
17780
17781 \end_inset
17782
17783 .) The former will be replaced by the counter number itself.
17784  So,
17785  for sections,
17786  it would be:
17787  Section ##,
17788  or perhaps:
17789  section 
17790 \backslash
17791 arabic{section} (which might render as:
17792  section 2.7).
17793 \end_layout
17794
17795 \begin_layout Description
17796 \begin_inset Flex Code
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 RefPrefix
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 ] The prefix to use when creating labels referring to floats of this type.
17816  This allows the use of formatted references.
17817  Note that you can remove any 
17818 \begin_inset Flex Code
17819 status collapsed
17820
17821 \begin_layout Plain Layout
17822 RefPrefix
17823 \end_layout
17824
17825 \end_inset
17826
17827  set by a copied style by using the special value 
17828 \begin_inset Quotes eld
17829 \end_inset
17830
17831 OFF
17832 \begin_inset Quotes erd
17833 \end_inset
17834
17835 ,
17836  which must be all caps.
17837 \end_layout
17838
17839 \begin_layout Description
17840 \begin_inset Flex Code
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844 Requires
17845 \end_layout
17846
17847 \end_inset
17848
17849  [
17850 \begin_inset Flex Code
17851 status collapsed
17852
17853 \begin_layout Plain Layout
17854 string
17855 \end_layout
17856
17857 \end_inset
17858
17859 ] As with paragraph styles,
17860  see 
17861 \begin_inset CommandInset ref
17862 LatexCommand ref
17863 reference "subsec:Paragraph-Styles"
17864 nolink "false"
17865
17866 \end_inset
17867
17868 .
17869 \end_layout
17870
17871 \begin_layout Description
17872 \begin_inset Flex Code
17873 status collapsed
17874
17875 \begin_layout Plain Layout
17876 Style
17877 \end_layout
17878
17879 \end_inset
17880
17881  [
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 string
17887 \end_layout
17888
17889 \end_inset
17890
17891 =
17892 \begin_inset Quotes erd
17893 \end_inset
17894
17895
17896 \begin_inset Quotes erd
17897 \end_inset
17898
17899 ] The style used when defining the float using 
17900 \begin_inset Flex Code
17901 status collapsed
17902
17903 \begin_layout Plain Layout
17904
17905 \backslash
17906 newfloat
17907 \end_layout
17908
17909 \end_inset
17910
17911 .
17912 \end_layout
17913
17914 \begin_layout Description
17915 \begin_inset Flex Code
17916 status collapsed
17917
17918 \begin_layout Plain Layout
17919 Type
17920 \end_layout
17921
17922 \end_inset
17923
17924  [
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 string
17930 \end_layout
17931
17932 \end_inset
17933
17934 =
17935 \begin_inset Quotes erd
17936 \end_inset
17937
17938
17939 \begin_inset Quotes erd
17940 \end_inset
17941
17942 ] The 
17943 \begin_inset Quotes eld
17944 \end_inset
17945
17946 type
17947 \begin_inset Quotes erd
17948 \end_inset
17949
17950  of the new class of floats,
17951  like program or algorithm.
17952  After the appropriate 
17953 \begin_inset Flex Code
17954 status collapsed
17955
17956 \begin_layout Plain Layout
17957
17958 \backslash
17959 newfloat
17960 \end_layout
17961
17962 \end_inset
17963
17964 ,
17965  commands such as 
17966 \begin_inset Flex Code
17967 status collapsed
17968
17969 \begin_layout Plain Layout
17970
17971 \backslash
17972 begin{program}
17973 \end_layout
17974
17975 \end_inset
17976
17977  or 
17978 \begin_inset Flex Code
17979 status collapsed
17980
17981 \begin_layout Plain Layout
17982
17983 \backslash
17984 end{algorithm*}
17985 \end_layout
17986
17987 \end_inset
17988
17989  will be available.
17990 \end_layout
17991
17992 \begin_layout Description
17993 \begin_inset Flex Code
17994 status collapsed
17995
17996 \begin_layout Plain Layout
17997 UsesFloatPkg
17998 \end_layout
17999
18000 \end_inset
18001
18002  [
18003 \begin_inset Flex Code
18004 status collapsed
18005
18006 \begin_layout Plain Layout
18007 0
18008 \end_layout
18009
18010 \end_inset
18011
18012 ,
18013 \begin_inset space \thinspace{}
18014 \end_inset
18015
18016
18017 \begin_inset Flex Code
18018 status collapsed
18019
18020 \begin_layout Plain Layout
18021
18022 \emph on
18023 1
18024 \end_layout
18025
18026 \end_inset
18027
18028 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18029  package 
18030 \begin_inset Flex Code
18031 status collapsed
18032
18033 \begin_layout Plain Layout
18034 float
18035 \end_layout
18036
18037 \end_inset
18038
18039 ,
18040  either by the class file,
18041  another package or on-the-fly by \SpecialChar LyX
18042  itself.
18043 \end_layout
18044
18045 \begin_layout Standard
18046 Note that defining a float with type 
18047 \begin_inset Flex Code
18048 status collapsed
18049
18050 \begin_layout Plain Layout
18051
18052 \emph on
18053 type
18054 \end_layout
18055
18056 \end_inset
18057
18058  automatically defines the corresponding counter with name 
18059 \begin_inset Flex Code
18060 status collapsed
18061
18062 \begin_layout Plain Layout
18063
18064 \emph on
18065 type
18066 \end_layout
18067
18068 \end_inset
18069
18070 .
18071 \end_layout
18072
18073 \begin_layout Subsection
18074 Flex insets and InsetLayout
18075 \begin_inset CommandInset label
18076 LatexCommand label
18077 name "subsec:Flex-insets-and"
18078
18079 \end_inset
18080
18081
18082 \end_layout
18083
18084 \begin_layout Standard
18085 Flex insets come in two different kinds:
18086  
18087 \end_layout
18088
18089 \begin_layout Itemize
18090 character style (
18091 \begin_inset Flex Code
18092 status collapsed
18093
18094 \begin_layout Plain Layout
18095 CharStyle
18096 \end_layout
18097
18098 \end_inset
18099
18100 ):
18101  These define semantic markup corresponding to such \SpecialChar LaTeX
18102  commands as 
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107
18108 \backslash
18109 noun
18110 \end_layout
18111
18112 \end_inset
18113
18114  and 
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119
18120 \backslash
18121 code
18122 \end_layout
18123
18124 \end_inset
18125
18126 .
18127 \end_layout
18128
18129 \begin_layout Itemize
18130 user custom (
18131 \begin_inset Flex Code
18132 status collapsed
18133
18134 \begin_layout Plain Layout
18135 Custom
18136 \end_layout
18137
18138 \end_inset
18139
18140 ):
18141  These can be used to define custom collapsible insets,
18142  similar to \SpecialChar TeX
18143  code,
18144  footnote,
18145  and the like.
18146  An obvious example is an endnote inset,
18147  which is defined in the 
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 endnote
18153 \end_layout
18154
18155 \end_inset
18156
18157  module.
18158 \end_layout
18159
18160 \begin_layout Standard
18161 Flex insets are defined using the 
18162 \begin_inset Flex Code
18163 status collapsed
18164
18165 \begin_layout Plain Layout
18166 InsetLayout
18167 \end_layout
18168
18169 \end_inset
18170
18171  tag,
18172  which shall be explained in a moment.
18173 \end_layout
18174
18175 \begin_layout Standard
18176 The 
18177 \begin_inset Flex Code
18178 status collapsed
18179
18180 \begin_layout Plain Layout
18181 InsetLayout
18182 \end_layout
18183
18184 \end_inset
18185
18186  tag also serves another function:
18187  It can be used to customize the general layout of many different types of insets.
18188  Currently,
18189  
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 InsetLayout
18195 \end_layout
18196
18197 \end_inset
18198
18199  can be used to customize the layout parameters for footnotes,
18200  marginal notes,
18201  note insets,
18202  \SpecialChar TeX
18203  code (ERT) insets,
18204  branches,
18205  listings,
18206  indexes,
18207  boxes,
18208  tables,
18209  algorithms,
18210  URLs,
18211  and captions,
18212  as well as to define Flex insets.
18213 \end_layout
18214
18215 \begin_layout Standard
18216 The 
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 InsetLayout
18222 \end_layout
18223
18224 \end_inset
18225
18226  definition must begin with a line of the form:
18227 \end_layout
18228
18229 \begin_layout LyX-Code
18230 InsetLayout <type>
18231 \end_layout
18232
18233 \begin_layout Standard
18234 Here 
18235 \begin_inset Flex Code
18236 status collapsed
18237
18238 \begin_layout Plain Layout
18239 <Type>
18240 \end_layout
18241
18242 \end_inset
18243
18244  indicates the inset whose layout is being defined,
18245  and here there are four cases.
18246 \end_layout
18247
18248 \begin_layout Enumerate
18249 The layout for a pre-existing inset is being modified.
18250  In this case,
18251  can be 
18252 \begin_inset Flex Code
18253 status collapsed
18254
18255 \begin_layout Plain Layout
18256 <Type>
18257 \end_layout
18258
18259 \end_inset
18260
18261  any one of the following:
18262  
18263 \begin_inset Flex Code
18264 status collapsed
18265
18266 \begin_layout Plain Layout
18267 Algorithm
18268 \end_layout
18269
18270 \end_inset
18271
18272 ,
18273  
18274 \begin_inset Flex Code
18275 status collapsed
18276
18277 \begin_layout Plain Layout
18278 Branch
18279 \end_layout
18280
18281 \end_inset
18282
18283 ,
18284  
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 Box
18290 \end_layout
18291
18292 \end_inset
18293
18294 ,
18295  
18296 \begin_inset Flex Code
18297 status collapsed
18298
18299 \begin_layout Plain Layout
18300 Box:shaded
18301 \end_layout
18302
18303 \end_inset
18304
18305 ,
18306  
18307 \begin_inset Flex Code
18308 status collapsed
18309
18310 \begin_layout Plain Layout
18311 Caption:Standard
18312 \end_layout
18313
18314 \end_inset
18315
18316 ,
18317  
18318 \begin_inset Flex Code
18319 status collapsed
18320
18321 \begin_layout Plain Layout
18322 ERT
18323 \end_layout
18324
18325 \end_inset
18326
18327 ,
18328  
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333 Figure
18334 \end_layout
18335
18336 \end_inset
18337
18338 ,
18339  
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 Foot
18345 \end_layout
18346
18347 \end_inset
18348
18349 ,
18350  
18351 \begin_inset Flex Code
18352 status collapsed
18353
18354 \begin_layout Plain Layout
18355 Index
18356 \end_layout
18357
18358 \end_inset
18359
18360 ,
18361  
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366 Info
18367 \end_layout
18368
18369 \end_inset
18370
18371 ,
18372  
18373 \begin_inset Flex Code
18374 status collapsed
18375
18376 \begin_layout Plain Layout
18377 Info:menu
18378 \end_layout
18379
18380 \end_inset
18381
18382 ,
18383  
18384 \begin_inset Flex Code
18385 status collapsed
18386
18387 \begin_layout Plain Layout
18388 Info:shortcut
18389 \end_layout
18390
18391 \end_inset
18392
18393 ,
18394  
18395 \begin_inset Flex Code
18396 status collapsed
18397
18398 \begin_layout Plain Layout
18399 Info:shortcuts
18400 \end_layout
18401
18402 \end_inset
18403
18404 ,
18405  
18406 \begin_inset Flex Code
18407 status collapsed
18408
18409 \begin_layout Plain Layout
18410 Listings
18411 \end_layout
18412
18413 \end_inset
18414
18415 ,
18416  
18417 \begin_inset Flex Code
18418 status collapsed
18419
18420 \begin_layout Plain Layout
18421 Marginal
18422 \end_layout
18423
18424 \end_inset
18425
18426 ,
18427  
18428 \begin_inset Flex Code
18429 status collapsed
18430
18431 \begin_layout Plain Layout
18432 Note:Comment
18433 \end_layout
18434
18435 \end_inset
18436
18437 ,
18438  
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443 Note:Note
18444 \end_layout
18445
18446 \end_inset
18447
18448 ,
18449  
18450 \begin_inset Flex Code
18451 status collapsed
18452
18453 \begin_layout Plain Layout
18454 Note:Greyedout
18455 \end_layout
18456
18457 \end_inset
18458
18459 ,
18460  
18461 \begin_inset Flex Code
18462 status collapsed
18463
18464 \begin_layout Plain Layout
18465 Table
18466 \end_layout
18467
18468 \end_inset
18469
18470 ,
18471  or 
18472 \begin_inset Flex Code
18473 status collapsed
18474
18475 \begin_layout Plain Layout
18476 URL
18477 \end_layout
18478
18479 \end_inset
18480
18481 .
18482 \end_layout
18483
18484 \begin_layout Enumerate
18485 The layout for a Flex inset is being defined.
18486  In this case,
18487  
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 <Type>
18493 \end_layout
18494
18495 \end_inset
18496
18497  must be of the form 
18498 \begin_inset Quotes eld
18499 \end_inset
18500
18501
18502 \begin_inset Flex Code
18503 status collapsed
18504
18505 \begin_layout Plain Layout
18506 Flex:<name>
18507 \end_layout
18508
18509 \end_inset
18510
18511
18512 \begin_inset Quotes erd
18513 \end_inset
18514
18515 ,
18516  where 
18517 \begin_inset Flex Code
18518 status collapsed
18519
18520 \begin_layout Plain Layout
18521 name
18522 \end_layout
18523
18524 \end_inset
18525
18526  may be any valid identifier not used by a pre-existing Flex inset.
18527  The identifier may include spaces,
18528  but in that case the whole thing must be wrapped in quotes.
18529  Note that the definition of a flex inset 
18530 \emph on
18531 must 
18532 \emph default
18533 also include a 
18534 \begin_inset Flex Code
18535 status collapsed
18536
18537 \begin_layout Plain Layout
18538 LyXType
18539 \end_layout
18540
18541 \end_inset
18542
18543  entry,
18544  declaring which type of inset it defines.
18545 \end_layout
18546
18547 \begin_layout Enumerate
18548 The layout for user specific branch is being defined.
18549  In this case,
18550  
18551 \begin_inset Flex Code
18552 status collapsed
18553
18554 \begin_layout Plain Layout
18555 <Type>
18556 \end_layout
18557
18558 \end_inset
18559
18560  must be of the form 
18561 \begin_inset Quotes eld
18562 \end_inset
18563
18564
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569 Branch:<name>
18570 \end_layout
18571
18572 \end_inset
18573
18574
18575 \begin_inset Quotes erd
18576 \end_inset
18577
18578 ,
18579  where 
18580 \begin_inset Flex Code
18581 status collapsed
18582
18583 \begin_layout Plain Layout
18584 name
18585 \end_layout
18586
18587 \end_inset
18588
18589  may be any valid identifier of branch defined in user's document.
18590  The identifier may include spaces,
18591  but in that case the whole thing must be wrapped in quotes.
18592  The main purpose of this feature is to allow \SpecialChar LaTeX
18593  wrapping around specific branches as user needs.
18594 \end_layout
18595
18596 \begin_layout Enumerate
18597 The layout of a user (or class) specific caption is being defined.
18598  In this case,
18599  
18600 \begin_inset Flex Code
18601 status collapsed
18602
18603 \begin_layout Plain Layout
18604 <Type>
18605 \end_layout
18606
18607 \end_inset
18608
18609  must be of the form 
18610 \begin_inset Quotes eld
18611 \end_inset
18612
18613
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 Caption:<name>
18619 \end_layout
18620
18621 \end_inset
18622
18623
18624 \begin_inset Quotes erd
18625 \end_inset
18626
18627 ,
18628  where 
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 name
18634 \end_layout
18635
18636 \end_inset
18637
18638  specifies the name of the caption as it appears in the menu.
18639  Have a look at the standard caption (
18640 \begin_inset Flex Code
18641 status collapsed
18642
18643 \begin_layout Plain Layout
18644 Caption:Standard
18645 \end_layout
18646
18647 \end_inset
18648
18649 ),
18650  the specific captions of the KOMA-Script classes (
18651 \begin_inset Flex Code
18652 status collapsed
18653
18654 \begin_layout Plain Layout
18655 Caption:Above
18656 \end_layout
18657
18658 \end_inset
18659
18660 ,
18661  
18662 \begin_inset Flex Code
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666 Caption:Below
18667 \end_layout
18668
18669 \end_inset
18670
18671 ) or the module 
18672 \family sans
18673 Multilingual
18674 \begin_inset space ~
18675 \end_inset
18676
18677 Captions
18678 \begin_inset Newline linebreak
18679 \end_inset
18680
18681
18682 \family default
18683 (
18684 \begin_inset Flex Code
18685 status collapsed
18686
18687 \begin_layout Plain Layout
18688 Caption:Bicaption
18689 \end_layout
18690
18691 \end_inset
18692
18693 ) for applications.
18694 \end_layout
18695
18696 \begin_layout Standard
18697 The 
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 InsetLayout
18703 \end_layout
18704
18705 \end_inset
18706
18707  definition can contain the following entries:
18708 \end_layout
18709
18710 \begin_layout Description
18711 \begin_inset Flex Code
18712 status collapsed
18713
18714 \begin_layout Plain Layout
18715 AddToToc
18716 \end_layout
18717
18718 \end_inset
18719
18720  [
18721 \begin_inset Flex Code
18722 status collapsed
18723
18724 \begin_layout Plain Layout
18725 string
18726 \end_layout
18727
18728 \end_inset
18729
18730 =""] This inset will appear in the table of contents of the given type.
18731  An empty string disables.
18732  See also the OutlinerName and the IsTocCaption commands.
18733  This is only implemented for Flex insets.
18734  Default:
18735  disabled.
18736 \end_layout
18737
18738 \begin_layout Description
18739 \begin_inset Flex Code
18740 status collapsed
18741
18742 \begin_layout Plain Layout
18743 AllowedInInsets
18744 \end_layout
18745
18746 \end_inset
18747
18748  Includes a comma-separated list of insets to which this inset can be inserted.
18749  Must be ended by 
18750 \begin_inset Quotes eld
18751 \end_inset
18752
18753
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 EndAllowedInInsets
18759 \end_layout
18760
18761 \end_inset
18762
18763
18764 \begin_inset Quotes erd
18765 \end_inset
18766
18767 .
18768  If you you also want the insertion to be allowed in specific arguments of the target insets,
18769  append the argument name after @ (e.
18770 \begin_inset space \thinspace{}
18771 \end_inset
18772
18773 g.,
18774  
18775 \begin_inset Flex Code
18776 status collapsed
18777
18778 \begin_layout Plain Layout
18779 My_Inset@post:1
18780 \end_layout
18781
18782 \end_inset
18783
18784 ).
18785  Note that this currently only supports immediately containing insets (no deeper nesting).
18786  See also 
18787 \begin_inset Flex Code
18788 status collapsed
18789
18790 \begin_layout Plain Layout
18791 AllowedInLayouts
18792 \end_layout
18793
18794 \end_inset
18795
18796 .
18797 \end_layout
18798
18799 \begin_layout Description
18800 \begin_inset Flex Code
18801 status collapsed
18802
18803 \begin_layout Plain Layout
18804 AllowedInLayouts
18805 \end_layout
18806
18807 \end_inset
18808
18809  Includes a comma-separated list of layouts within which this inset can be inserted.
18810  Must be ended by 
18811 \begin_inset Quotes eld
18812 \end_inset
18813
18814
18815 \begin_inset Flex Code
18816 status collapsed
18817
18818 \begin_layout Plain Layout
18819 EndAllowedInLayouts
18820 \end_layout
18821
18822 \end_inset
18823
18824
18825 \begin_inset Quotes erd
18826 \end_inset
18827
18828 .
18829  Note that this currently only supports immediately containing layouts (no deeper nesting).
18830  See also 
18831 \begin_inset Flex Code
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835 AllowedInInsets
18836 \end_layout
18837
18838 \end_inset
18839
18840 .
18841 \end_layout
18842
18843 \begin_layout Description
18844 \begin_inset Flex Code
18845 status collapsed
18846
18847 \begin_layout Plain Layout
18848 AllowedOccurrences
18849 \end_layout
18850
18851 \end_inset
18852
18853  [
18854 \begin_inset Flex Code
18855 status collapsed
18856
18857 \begin_layout Plain Layout
18858 int
18859 \end_layout
18860
18861 \end_inset
18862
18863 ] If 
18864 \begin_inset Flex Code
18865 status collapsed
18866
18867 \begin_layout Plain Layout
18868 AllowedInInsets
18869 \end_layout
18870
18871 \end_inset
18872
18873  or 
18874 \begin_inset Flex Code
18875 status collapsed
18876
18877 \begin_layout Plain Layout
18878 AllowedInLayouts
18879 \end_layout
18880
18881 \end_inset
18882
18883  has been defined,
18884  this can be used to determine how many times the inset can be inserted to a given inset or the paragraph (group).
18885 \end_layout
18886
18887 \begin_layout Description
18888 \begin_inset Flex Code
18889 status collapsed
18890
18891 \begin_layout Plain Layout
18892 AllowedOccurrencesPerItem
18893 \end_layout
18894
18895 \end_inset
18896
18897  [
18898 \begin_inset Flex Code
18899 status collapsed
18900
18901 \begin_layout Plain Layout
18902
18903 \emph on
18904 0
18905 \end_layout
18906
18907 \end_inset
18908
18909 ,
18910 \begin_inset space \thinspace{}
18911 \end_inset
18912
18913
18914 \begin_inset Flex Code
18915 status collapsed
18916
18917 \begin_layout Plain Layout
18918 1
18919 \end_layout
18920
18921 \end_inset
18922
18923 ] If this is set to true,
18924  
18925 \begin_inset Flex Code
18926 status collapsed
18927
18928 \begin_layout Plain Layout
18929 AllowedOccurrences
18930 \end_layout
18931
18932 \end_inset
18933
18934  applies to single paragraphs if we are in a list-type environment (with 
18935 \begin_inset Flex Code
18936 status collapsed
18937
18938 \begin_layout Plain Layout
18939
18940 \backslash
18941 item
18942 \end_layout
18943
18944 \end_inset
18945
18946 s).
18947 \end_layout
18948
18949 \begin_layout Description
18950 \begin_inset Flex Code
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 Argument
18955 \end_layout
18956
18957 \end_inset
18958
18959  [
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 int
18965 \end_layout
18966
18967 \end_inset
18968
18969 ] Defines argument number of a command\SpecialChar breakableslash
18970 environment associated with the current layout.
18971  The definition must end with 
18972 \begin_inset Flex Code
18973 status collapsed
18974
18975 \begin_layout Plain Layout
18976 EndArgument
18977 \end_layout
18978
18979 \end_inset
18980
18981 .
18982  See 
18983 \begin_inset CommandInset ref
18984 LatexCommand ref
18985 reference "subsec:Arguments"
18986 plural "false"
18987 caps "false"
18988 noprefix "false"
18989 nolink "false"
18990
18991 \end_inset
18992
18993  for more information.
18994 \end_layout
18995
18996 \begin_layout Description
18997 \begin_inset Flex Code
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001 BabelPreamble
19002 \end_layout
19003
19004 \end_inset
19005
19006  Preamble for changing language commands;
19007  see 
19008 \begin_inset CommandInset ref
19009 LatexCommand ref
19010 reference "subsec:I18n"
19011 nolink "false"
19012
19013 \end_inset
19014
19015 .
19016 \end_layout
19017
19018 \begin_layout Description
19019 \begin_inset Flex Code
19020 status collapsed
19021
19022 \begin_layout Plain Layout
19023 BgColor
19024 \end_layout
19025
19026 \end_inset
19027
19028  [
19029 \begin_inset Flex Code
19030 status collapsed
19031
19032 \begin_layout Plain Layout
19033 <name>
19034 \end_layout
19035
19036 \end_inset
19037
19038 ] The color for the inset's background.
19039  See 
19040 \begin_inset CommandInset ref
19041 LatexCommand ref
19042 reference "chap:Names-of-colors"
19043 nolink "false"
19044
19045 \end_inset
19046
19047  for a list of the available color names.
19048 \end_layout
19049
19050 \begin_layout Description
19051 \begin_inset Flex Code
19052 status collapsed
19053
19054 \begin_layout Plain Layout
19055 ContentAsLabel
19056 \end_layout
19057
19058 \end_inset
19059
19060  [
19061 \begin_inset Flex Code
19062 status collapsed
19063
19064 \begin_layout Plain Layout
19065
19066 \emph on
19067 0
19068 \end_layout
19069
19070 \end_inset
19071
19072 ,
19073 \begin_inset space \thinspace{}
19074 \end_inset
19075
19076
19077 \begin_inset Flex Code
19078 status collapsed
19079
19080 \begin_layout Plain Layout
19081 1
19082 \end_layout
19083
19084 \end_inset
19085
19086 ] Whether to use the content of the inset as the label,
19087  when the inset is closed.
19088  Default is false.
19089 \end_layout
19090
19091 \begin_layout Description
19092 \begin_inset Flex Code
19093 status collapsed
19094
19095 \begin_layout Plain Layout
19096 CopyStyle
19097 \end_layout
19098
19099 \end_inset
19100
19101  [
19102 \begin_inset Flex Code
19103 status collapsed
19104
19105 \begin_layout Plain Layout
19106 <type>
19107 \end_layout
19108
19109 \end_inset
19110
19111 ] As with paragraph styles,
19112  see 
19113 \begin_inset CommandInset ref
19114 LatexCommand ref
19115 reference "subsec:Paragraph-Styles"
19116 nolink "false"
19117
19118 \end_inset
19119
19120 .
19121  Note that you need to specify the complete type,
19122  e.
19123 \begin_inset space \thinspace{}
19124 \end_inset
19125
19126 g.
19127 \begin_inset space ~
19128 \end_inset
19129
19130
19131 \begin_inset Flex Code
19132 status collapsed
19133
19134 \begin_layout Plain Layout
19135 CopyStyle Flex:<name>
19136 \end_layout
19137
19138 \end_inset
19139
19140 .
19141 \end_layout
19142
19143 \begin_layout Description
19144 \begin_inset Flex Code
19145 status collapsed
19146
19147 \begin_layout Plain Layout
19148 CustomPars
19149 \end_layout
19150
19151 \end_inset
19152
19153  [
19154 \begin_inset Flex Code
19155 status collapsed
19156
19157 \begin_layout Plain Layout
19158
19159 \emph on
19160 0
19161 \end_layout
19162
19163 \end_inset
19164
19165 ,
19166 \begin_inset space \thinspace{}
19167 \end_inset
19168
19169
19170 \begin_inset Flex Code
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174 1
19175 \end_layout
19176
19177 \end_inset
19178
19179 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
19180 \end_layout
19181
19182 \begin_layout Description
19183 \begin_inset Flex Code
19184 status collapsed
19185
19186 \begin_layout Plain Layout
19187 Decoration
19188 \end_layout
19189
19190 \end_inset
19191
19192  can be 
19193 \begin_inset Flex Code
19194 status collapsed
19195
19196 \begin_layout Plain Layout
19197 Classic
19198 \end_layout
19199
19200 \end_inset
19201
19202 ,
19203  
19204 \begin_inset Flex Code
19205 status collapsed
19206
19207 \begin_layout Plain Layout
19208 Minimalistic
19209 \end_layout
19210
19211 \end_inset
19212
19213 ,
19214  or 
19215 \begin_inset Flex Code
19216 status collapsed
19217
19218 \begin_layout Plain Layout
19219 Conglomerate
19220 \end_layout
19221
19222 \end_inset
19223
19224 ,
19225  describing the rendering style used for the inset's frame and buttons.
19226  Footnotes generally use 
19227 \begin_inset Flex Code
19228 status collapsed
19229
19230 \begin_layout Plain Layout
19231 Classic
19232 \end_layout
19233
19234 \end_inset
19235
19236 ,
19237  ERT insets generally 
19238 \begin_inset Flex Code
19239 status collapsed
19240
19241 \begin_layout Plain Layout
19242 Minimalistic
19243 \end_layout
19244
19245 \end_inset
19246
19247 ,
19248  and character styles 
19249 \begin_inset Flex Code
19250 status collapsed
19251
19252 \begin_layout Plain Layout
19253 Conglomerate
19254 \end_layout
19255
19256 \end_inset
19257
19258 .
19259 \end_layout
19260
19261 \begin_layout Description
19262 \begin_inset Flex Code
19263 status collapsed
19264
19265 \begin_layout Plain Layout
19266 Display
19267 \end_layout
19268
19269 \end_inset
19270
19271  [
19272 \begin_inset Flex Code
19273 status collapsed
19274
19275 \begin_layout Plain Layout
19276 0
19277 \end_layout
19278
19279 \end_inset
19280
19281 ,
19282 \emph on
19283
19284 \begin_inset space \thinspace{}
19285 \end_inset
19286
19287
19288 \emph default
19289
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294
19295 \emph on
19296 1
19297 \end_layout
19298
19299 \end_inset
19300
19301 ] Only useful if 
19302 \begin_inset Flex Code
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 LatexType
19307 \end_layout
19308
19309 \end_inset
19310
19311  is 
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 Environment
19317 \end_layout
19318
19319 \end_inset
19320
19321 .
19322  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
19323  If set to false,
19324  it is supposed that the \SpecialChar LaTeX
19325  environment ignores white space (including one newline character) after the 
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330
19331 \backslash
19332 begin{
19333 \emph on
19334 LatexName
19335 \emph default
19336 }
19337 \end_layout
19338
19339 \end_inset
19340
19341  and 
19342 \begin_inset Flex Code
19343 status collapsed
19344
19345 \begin_layout Plain Layout
19346
19347 \backslash
19348 end{
19349 \emph on
19350 LatexName
19351 \emph default
19352 }
19353 \end_layout
19354
19355 \end_inset
19356
19357  tags.
19358  Default is true.
19359 \end_layout
19360
19361 \begin_layout Description
19362 \begin_inset Flex Code
19363 status open
19364
19365 \begin_layout Plain Layout
19366 EditExternal
19367 \end_layout
19368
19369 \end_inset
19370
19371  [
19372 \emph on
19373 0
19374 \emph default
19375 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
19376 \end_layout
19377
19378 \begin_layout Description
19379 \begin_inset Flex Code
19380 status collapsed
19381
19382 \begin_layout Plain Layout
19383 End
19384 \end_layout
19385
19386 \end_inset
19387
19388  Required at the end of the 
19389 \begin_inset Flex Code
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393 InsetLayout
19394 \end_layout
19395
19396 \end_inset
19397
19398  declarations.
19399 \end_layout
19400
19401 \begin_layout Description
19402 \begin_inset Flex Code
19403 status collapsed
19404
19405 \begin_layout Plain Layout
19406 Font
19407 \end_layout
19408
19409 \end_inset
19410
19411  The font used for both the text body 
19412 \emph on
19413 and
19414 \emph default
19415  the label.
19416  See 
19417 \begin_inset CommandInset ref
19418 LatexCommand formatted
19419 reference "subsec:Font-description"
19420 nolink "false"
19421
19422 \end_inset
19423
19424 .
19425  Note that defining this font automatically defines the 
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 LabelFont
19431 \end_layout
19432
19433 \end_inset
19434
19435  to the same value,
19436  so define this first and define 
19437 \begin_inset Flex Code
19438 status collapsed
19439
19440 \begin_layout Plain Layout
19441 LabelFont
19442 \end_layout
19443
19444 \end_inset
19445
19446  later if you want them to be different.
19447 \end_layout
19448
19449 \begin_layout Description
19450 \begin_inset Flex Code
19451 status collapsed
19452
19453 \begin_layout Plain Layout
19454 FixedWidthPreambleEncoding
19455 \end_layout
19456
19457 \end_inset
19458
19459  [
19460 \begin_inset Flex Code
19461 status collapsed
19462
19463 \begin_layout Plain Layout
19464
19465 \emph on
19466 0
19467 \end_layout
19468
19469 \end_inset
19470
19471 ,
19472 \begin_inset space \thinspace{}
19473 \end_inset
19474
19475
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480 1
19481 \end_layout
19482
19483 \end_inset
19484
19485 ] Force a fixed width encoding for the translated contents of 
19486 \begin_inset Flex Code
19487 status collapsed
19488
19489 \begin_layout Plain Layout
19490 BabelPreamble
19491 \end_layout
19492
19493 \end_inset
19494
19495  and 
19496 \begin_inset Flex Code
19497 status collapsed
19498
19499 \begin_layout Plain Layout
19500 LangPreamble
19501 \end_layout
19502
19503 \end_inset
19504
19505  code generated by this layout.
19506  This is needed for special \SpecialChar LaTeX
19507 -packages like 
19508 \family typewriter
19509 listings
19510 \family default
19511  that do not work with variable width encodings such as 
19512 \family sans
19513 utf8
19514 \family default
19515 .
19516  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19517  backends such as Xe\SpecialChar TeX
19518  or Lua\SpecialChar TeX
19519  are used.
19520 \end_layout
19521
19522 \begin_layout Description
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 ForceLocalFontSwitch
19528 \end_layout
19529
19530 \end_inset
19531
19532  [
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537
19538 \emph on
19539 0
19540 \end_layout
19541
19542 \end_inset
19543
19544 ,
19545 \begin_inset space \thinspace{}
19546 \end_inset
19547
19548
19549 \begin_inset Flex Code
19550 status collapsed
19551
19552 \begin_layout Plain Layout
19553 1
19554 \end_layout
19555
19556 \end_inset
19557
19558 ] When using babel,
19559  always use a local font switch (
19560 \begin_inset Flex Code
19561 status collapsed
19562
19563 \begin_layout Plain Layout
19564
19565 \backslash
19566 foreignlanguage
19567 \end_layout
19568
19569 \end_inset
19570
19571 ),
19572  never a global one (such as 
19573 \begin_inset Flex Code
19574 status collapsed
19575
19576 \begin_layout Plain Layout
19577
19578 \backslash
19579 selectlanguage
19580 \end_layout
19581
19582 \end_inset
19583
19584 ).
19585 \end_layout
19586
19587 \begin_layout Description
19588 \begin_inset Flex Code
19589 status collapsed
19590
19591 \begin_layout Plain Layout
19592 ForceLTR
19593 \end_layout
19594
19595 \end_inset
19596
19597  [
19598 \begin_inset Flex Code
19599 status collapsed
19600
19601 \begin_layout Plain Layout
19602
19603 \emph on
19604 0
19605 \end_layout
19606
19607 \end_inset
19608
19609 ,
19610 \begin_inset space \thinspace{}
19611 \end_inset
19612
19613
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 1
19619 \end_layout
19620
19621 \end_inset
19622
19623 ] Force the 
19624 \begin_inset Quotes eld
19625 \end_inset
19626
19627 latex
19628 \begin_inset Quotes erd
19629 \end_inset
19630
19631  language,
19632  leading to Left-to-Right (Latin) output,
19633  e.
19634 \begin_inset space \thinspace{}
19635 \end_inset
19636
19637 g.
19638 \begin_inset space \space{}
19639 \end_inset
19640
19641 in \SpecialChar TeX
19642  code or URL.
19643  A kludge.
19644 \end_layout
19645
19646 \begin_layout Description
19647 \begin_inset Flex Code
19648 status collapsed
19649
19650 \begin_layout Plain Layout
19651 ForceOwnlines
19652 \end_layout
19653
19654 \end_inset
19655
19656  [
19657 \begin_inset Flex Code
19658 status collapsed
19659
19660 \begin_layout Plain Layout
19661
19662 \emph on
19663 0
19664 \end_layout
19665
19666 \end_inset
19667
19668 ,
19669 \begin_inset space \thinspace{}
19670 \end_inset
19671
19672
19673 \begin_inset Flex Code
19674 status collapsed
19675
19676 \begin_layout Plain Layout
19677 1
19678 \end_layout
19679
19680 \end_inset
19681
19682 ] Force a line break in the \SpecialChar LaTeX
19683  output before the inset starts and after the inset ends.
19684  This assures the inset itself is output on its own lines,
19685  for parsing purposes.
19686 \end_layout
19687
19688 \begin_layout Description
19689 \begin_inset Flex Code
19690 status collapsed
19691
19692 \begin_layout Plain Layout
19693 ForcePlain
19694 \end_layout
19695
19696 \end_inset
19697
19698  [
19699 \begin_inset Flex Code
19700 status collapsed
19701
19702 \begin_layout Plain Layout
19703
19704 \emph on
19705 0
19706 \end_layout
19707
19708 \end_inset
19709
19710 ,
19711 \begin_inset space \thinspace{}
19712 \end_inset
19713
19714
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 1
19720 \end_layout
19721
19722 \end_inset
19723
19724 ] Indicates whether the 
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 PlainLayout
19730 \end_layout
19731
19732 \end_inset
19733
19734  should be used or,
19735  instead,
19736  the user can change the paragraph style used in the inset.
19737  Default is false.
19738 \end_layout
19739
19740 \begin_layout Description
19741 \begin_inset Flex Code
19742 status collapsed
19743
19744 \begin_layout Plain Layout
19745 FreeSpacing
19746 \end_layout
19747
19748 \end_inset
19749
19750  [
19751 \begin_inset Flex Code
19752 status collapsed
19753
19754 \begin_layout Plain Layout
19755
19756 \emph on
19757 0
19758 \end_layout
19759
19760 \end_inset
19761
19762 ,
19763 \begin_inset space \thinspace{}
19764 \end_inset
19765
19766
19767 \begin_inset Flex Code
19768 status collapsed
19769
19770 \begin_layout Plain Layout
19771 1
19772 \end_layout
19773
19774 \end_inset
19775
19776 ] As with paragraph styles,
19777  see 
19778 \begin_inset CommandInset ref
19779 LatexCommand ref
19780 reference "subsec:Paragraph-Styles"
19781 nolink "false"
19782
19783 \end_inset
19784
19785 .
19786 \end_layout
19787
19788 \begin_layout Description
19789 \begin_inset Flex Code
19790 status collapsed
19791
19792 \begin_layout Plain Layout
19793 HTML*
19794 \end_layout
19795
19796 \end_inset
19797
19798  These tags control the XHTML output.
19799  See 
19800 \begin_inset CommandInset ref
19801 LatexCommand ref
19802 reference "sec:Tags-for-XHTML"
19803 nolink "false"
19804
19805 \end_inset
19806
19807 .
19808 \end_layout
19809
19810 \begin_layout Description
19811 \begin_inset Flex Code
19812 status collapsed
19813
19814 \begin_layout Plain Layout
19815 InheritFont
19816 \end_layout
19817
19818 \end_inset
19819
19820  [
19821 \begin_inset Flex Code
19822 status collapsed
19823
19824 \begin_layout Plain Layout
19825 0
19826 \end_layout
19827
19828 \end_inset
19829
19830 ,
19831 \begin_inset space \thinspace{}
19832 \end_inset
19833
19834
19835 \begin_inset Flex Code
19836 status collapsed
19837
19838 \begin_layout Plain Layout
19839
19840 \emph on
19841 1
19842 \end_layout
19843
19844 \end_inset
19845
19846 ] The font inside the inset is inherited from the parent for \SpecialChar LaTeX
19847  export if this parameter is 1,
19848  as well as on screen.
19849  Otherwise the document default font is used.
19850 \end_layout
19851
19852 \begin_layout Description
19853 \begin_inset Flex Code
19854 status collapsed
19855
19856 \begin_layout Plain Layout
19857 InToc
19858 \end_layout
19859
19860 \end_inset
19861
19862  [
19863 \begin_inset Flex Code
19864 status collapsed
19865
19866 \begin_layout Plain Layout
19867
19868 \emph on
19869 0
19870 \end_layout
19871
19872 \end_inset
19873
19874 ,
19875 \begin_inset space \thinspace{}
19876 \end_inset
19877
19878
19879 \begin_inset Flex Code
19880 status collapsed
19881
19882 \begin_layout Plain Layout
19883 1
19884 \end_layout
19885
19886 \end_inset
19887
19888 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
19889  regardless of the AddToToc setting.
19890  One would not,
19891  for example,
19892  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
19893  but one would normally want the content of a character style displayed.
19894  Default is false:
19895  not to include.
19896 \end_layout
19897
19898 \begin_layout Description
19899 \begin_inset Flex Code
19900 status collapsed
19901
19902 \begin_layout Plain Layout
19903 IsTocCaption
19904 \end_layout
19905
19906 \end_inset
19907
19908  [
19909 \begin_inset Flex Code
19910 status collapsed
19911
19912 \begin_layout Plain Layout
19913
19914 \emph on
19915 0
19916 \end_layout
19917
19918 \end_inset
19919
19920 ,
19921 \begin_inset space \thinspace{}
19922 \end_inset
19923
19924
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 1
19930 \end_layout
19931
19932 \end_inset
19933
19934 ] If this is set to 1 and AddToToc is enabled,
19935  the inset adds a summary of its contents in its item in the table of contents.
19936  Otherwise,
19937  only the label appears.
19938 \end_layout
19939
19940 \begin_layout Description
19941 \begin_inset Flex Code
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945 KeepEmpty
19946 \end_layout
19947
19948 \end_inset
19949
19950  [
19951 \emph on
19952
19953 \begin_inset Flex Code
19954 status collapsed
19955
19956 \begin_layout Plain Layout
19957 0
19958 \end_layout
19959
19960 \end_inset
19961
19962
19963 \emph default
19964 ,
19965 \begin_inset space \thinspace{}
19966 \end_inset
19967
19968
19969 \begin_inset Flex Code
19970 status collapsed
19971
19972 \begin_layout Plain Layout
19973 1
19974 \end_layout
19975
19976 \end_inset
19977
19978 ] As with paragraph styles,
19979  see 
19980 \begin_inset CommandInset ref
19981 LatexCommand ref
19982 reference "subsec:Paragraph-Styles"
19983 nolink "false"
19984
19985 \end_inset
19986
19987 .
19988 \end_layout
19989
19990 \begin_layout Description
19991 \begin_inset Flex Code
19992 status collapsed
19993
19994 \begin_layout Plain Layout
19995 LabelFont
19996 \end_layout
19997
19998 \end_inset
19999
20000  The font used for the label.
20001  See 
20002 \begin_inset CommandInset ref
20003 LatexCommand ref
20004 reference "subsec:Font-description"
20005 nolink "false"
20006
20007 \end_inset
20008
20009 .
20010  Note that this definition can never appear before 
20011 \begin_inset Flex Code
20012 status collapsed
20013
20014 \begin_layout Plain Layout
20015 Font
20016 \end_layout
20017
20018 \end_inset
20019
20020 ,
20021  lest it be ineffective.
20022 \end_layout
20023
20024 \begin_layout Description
20025 \begin_inset Flex Code
20026 status collapsed
20027
20028 \begin_layout Plain Layout
20029 LabelString
20030 \end_layout
20031
20032 \end_inset
20033
20034  [
20035 \begin_inset Flex Code
20036 status collapsed
20037
20038 \begin_layout Plain Layout
20039 string
20040 \end_layout
20041
20042 \end_inset
20043
20044 =
20045 \begin_inset Quotes erd
20046 \end_inset
20047
20048
20049 \begin_inset Quotes erd
20050 \end_inset
20051
20052 ] What will be displayed on the button or elsewhere as the inset label.
20053  Some inset types (
20054 \begin_inset Flex Code
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058 \SpecialChar TeX
20059  code
20060 \end_layout
20061
20062 \end_inset
20063
20064  and 
20065 \begin_inset Flex Code
20066 status collapsed
20067
20068 \begin_layout Plain Layout
20069 Branch
20070 \end_layout
20071
20072 \end_inset
20073
20074 ) modify this label on the fly.
20075 \end_layout
20076
20077 \begin_layout Description
20078 \begin_inset Flex Code
20079 status collapsed
20080
20081 \begin_layout Plain Layout
20082 LangPreamble
20083 \end_layout
20084
20085 \end_inset
20086
20087  Language dependent preamble;
20088  see 
20089 \begin_inset CommandInset ref
20090 LatexCommand ref
20091 reference "subsec:I18n"
20092 nolink "false"
20093
20094 \end_inset
20095
20096 .
20097 \end_layout
20098
20099 \begin_layout Description
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104 LatexName
20105 \end_layout
20106
20107 \end_inset
20108
20109  [
20110 \begin_inset Flex Code
20111 status collapsed
20112
20113 \begin_layout Plain Layout
20114 <name>
20115 \end_layout
20116
20117 \end_inset
20118
20119 ] The name of the corresponding \SpecialChar LaTeX
20120  stuff.
20121  Either the environment or command name.
20122 \end_layout
20123
20124 \begin_layout Description
20125 \begin_inset Flex Code
20126 status collapsed
20127
20128 \begin_layout Plain Layout
20129 LatexParam
20130 \end_layout
20131
20132 \end_inset
20133
20134  [
20135 \begin_inset Flex Code
20136 status collapsed
20137
20138 \begin_layout Plain Layout
20139 <parameter>
20140 \end_layout
20141
20142 \end_inset
20143
20144 ] The optional parameter for the corresponding 
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149 LatexName
20150 \end_layout
20151
20152 \end_inset
20153
20154  stuff,
20155  including possible bracket pairs like 
20156 \begin_inset Flex Code
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160 []
20161 \end_layout
20162
20163 \end_inset
20164
20165 .
20166  This parameter cannot be changed from within \SpecialChar LyX
20167  (use 
20168 \begin_inset Flex Code
20169 status collapsed
20170
20171 \begin_layout Plain Layout
20172 Argument
20173 \end_layout
20174
20175 \end_inset
20176
20177  for customizable parameters).
20178  It will be output as is after all \SpecialChar LaTeX
20179  
20180 \begin_inset Flex Code
20181 status collapsed
20182
20183 \begin_layout Plain Layout
20184 Argument
20185 \end_layout
20186
20187 \end_inset
20188
20189 s.
20190 \end_layout
20191
20192 \begin_layout Description
20193 \begin_inset Flex Code
20194 status collapsed
20195
20196 \begin_layout Plain Layout
20197 LatexType
20198 \end_layout
20199
20200 \end_inset
20201
20202  [
20203 \begin_inset Flex Code
20204 status collapsed
20205
20206 \begin_layout Plain Layout
20207 Command,
20208  Environment,
20209  None
20210 \end_layout
20211
20212 \end_inset
20213
20214 ] How the style should be translated into \SpecialChar LaTeX
20215 .
20216 \begin_inset Foot
20217 status collapsed
20218
20219 \begin_layout Plain Layout
20220 \begin_inset Flex Code
20221 status collapsed
20222
20223 \begin_layout Plain Layout
20224 LatexType
20225 \end_layout
20226
20227 \end_inset
20228
20229  is perhaps a bit misleading,
20230  since these rules apply to SGML classes too.
20231  Visit the SGML class files for specific examples.
20232 \end_layout
20233
20234 \end_inset
20235
20236
20237 \end_layout
20238
20239 \begin_deeper
20240 \begin_layout Description
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 None
20246 \end_layout
20247
20248 \end_inset
20249
20250  means nothing special
20251 \end_layout
20252
20253 \begin_layout Description
20254 \begin_inset Flex Code
20255 status collapsed
20256
20257 \begin_layout Plain Layout
20258 Command
20259 \end_layout
20260
20261 \end_inset
20262
20263  means 
20264 \begin_inset Flex Code
20265 status collapsed
20266
20267 \begin_layout Plain Layout
20268
20269 \backslash
20270
20271 \emph on
20272 LatexName
20273 \emph default
20274 {\SpecialChar ldots
20275 }
20276 \end_layout
20277
20278 \end_inset
20279
20280
20281 \end_layout
20282
20283 \begin_layout Description
20284 \begin_inset Flex Code
20285 status collapsed
20286
20287 \begin_layout Plain Layout
20288 Environment
20289 \end_layout
20290
20291 \end_inset
20292
20293  means 
20294 \begin_inset Flex Code
20295 status collapsed
20296
20297 \begin_layout Plain Layout
20298
20299 \backslash
20300 begin{
20301 \emph on
20302 LatexName
20303 \emph default
20304 }\SpecialChar ldots
20305
20306 \backslash
20307 end{
20308 \emph on
20309 LatexName
20310 \emph default
20311 }
20312 \end_layout
20313
20314 \end_inset
20315
20316
20317 \end_layout
20318
20319 \begin_layout Standard
20320 Putting the last few things together,
20321  the \SpecialChar LaTeX
20322  output will be either:
20323  
20324 \end_layout
20325
20326 \begin_layout LyX-Code
20327
20328 \backslash
20329 LatexName[LatexParam]{\SpecialChar ldots
20330 }
20331 \end_layout
20332
20333 \begin_layout Standard
20334 or:
20335  
20336 \end_layout
20337
20338 \begin_layout LyX-Code
20339
20340 \backslash
20341 begin{LatexName}[LatexParam] \SpecialChar ldots
20342  
20343 \backslash
20344 end{LatexName}
20345 \end_layout
20346
20347 \begin_layout Standard
20348 depending upon the \SpecialChar LaTeX
20349  type.
20350 \end_layout
20351
20352 \end_deeper
20353 \begin_layout Description
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 LeftDelim
20359 \end_layout
20360
20361 \end_inset
20362
20363  [
20364 \begin_inset Flex Code
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 string
20369 \end_layout
20370
20371 \end_inset
20372
20373 ] A string that is put at the beginning of the layout content.
20374  A line break in the output can be indicated by 
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 <br/>
20380 \end_layout
20381
20382 \end_inset
20383
20384 .
20385 \end_layout
20386
20387 \begin_layout Description
20388 \begin_inset Flex Code
20389 status collapsed
20390
20391 \begin_layout Plain Layout
20392 LyxType
20393 \end_layout
20394
20395 \end_inset
20396
20397  Can be 
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 charstyle
20403 \end_layout
20404
20405 \end_inset
20406
20407 ,
20408  
20409 \begin_inset Flex Code
20410 status collapsed
20411
20412 \begin_layout Plain Layout
20413 custom
20414 \end_layout
20415
20416 \end_inset
20417
20418 ,
20419  or 
20420 \begin_inset Flex Code
20421 status collapsed
20422
20423 \begin_layout Plain Layout
20424 end
20425 \end_layout
20426
20427 \end_inset
20428
20429  (indicating a dummy definition ending definitions of charstyles,
20430  etc).
20431  This entry is required in and is only meaningful for Flex insets.
20432  Among other things,
20433  it determines on which menu this inset will appear.
20434  Setting 
20435 \begin_inset Flex Code
20436 status collapsed
20437
20438 \begin_layout Plain Layout
20439 LyxType
20440 \end_layout
20441
20442 \end_inset
20443
20444  to 
20445 \begin_inset Flex Code
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449 charstyle
20450 \end_layout
20451
20452 \end_inset
20453
20454  will automatically set 
20455 \begin_inset Flex Code
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459 MultiPar
20460 \end_layout
20461
20462 \end_inset
20463
20464  to false and 
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469 ForcePlain
20470 \end_layout
20471
20472 \end_inset
20473
20474  to true.
20475  
20476 \begin_inset Flex Code
20477 status collapsed
20478
20479 \begin_layout Plain Layout
20480 MultiPar
20481 \end_layout
20482
20483 \end_inset
20484
20485  can be set to true,
20486  or 
20487 \begin_inset Flex Code
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491 ForcePlain
20492 \end_layout
20493
20494 \end_inset
20495
20496  to false,
20497  for 
20498 \begin_inset Flex Code
20499 status collapsed
20500
20501 \begin_layout Plain Layout
20502 charstyle
20503 \end_layout
20504
20505 \end_inset
20506
20507  insets by setting it 
20508 \emph on
20509 after
20510 \emph default
20511  you set the 
20512 \begin_inset Flex Code
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516 LyxType
20517 \end_layout
20518
20519 \end_inset
20520
20521 .
20522 \end_layout
20523
20524 \begin_layout Description
20525 \begin_inset Flex Code
20526 status collapsed
20527
20528 \begin_layout Plain Layout
20529 MenuString
20530 \end_layout
20531
20532 \end_inset
20533
20534  
20535 \begin_inset Flex Code
20536 status collapsed
20537
20538 \begin_layout Plain Layout
20539 [string]
20540 \end_layout
20541
20542 \end_inset
20543
20544  A dedicated string for the menu.
20545  You can define an accelerator by appending the respective character to the string,
20546  divided by 
20547 \begin_inset Quotes eld
20548 \end_inset
20549
20550 |
20551 \begin_inset Quotes erd
20552 \end_inset
20553
20554  (e.
20555 \begin_inset space \thinspace{}
20556 \end_inset
20557
20558 g.
20559 \begin_inset space \space{}
20560 \end_inset
20561
20562
20563 \begin_inset Quotes eld
20564 \end_inset
20565
20566
20567 \begin_inset Flex Code
20568 status collapsed
20569
20570 \begin_layout Plain Layout
20571 My Inset|M
20572 \end_layout
20573
20574 \end_inset
20575
20576
20577 \begin_inset Quotes erd
20578 \end_inset
20579
20580 ).
20581  This specification is optional.
20582  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
20583 \end_layout
20584
20585 \begin_layout Description
20586 \begin_inset Flex Code
20587 status collapsed
20588
20589 \begin_layout Plain Layout
20590 MultiPar
20591 \end_layout
20592
20593 \end_inset
20594
20595  [
20596 \begin_inset Flex Code
20597 status collapsed
20598
20599 \begin_layout Plain Layout
20600
20601 \emph on
20602 0
20603 \end_layout
20604
20605 \end_inset
20606
20607 ,
20608 \begin_inset space \thinspace{}
20609 \end_inset
20610
20611
20612 \begin_inset Flex Code
20613 status collapsed
20614
20615 \begin_layout Plain Layout
20616 1
20617 \end_layout
20618
20619 \end_inset
20620
20621 ] Whether multiple paragraphs are permitted in this inset.
20622  This will also set 
20623 \begin_inset Flex Code
20624 status collapsed
20625
20626 \begin_layout Plain Layout
20627 CustomPars
20628 \end_layout
20629
20630 \end_inset
20631
20632  to the same value and 
20633 \begin_inset Flex Code
20634 status collapsed
20635
20636 \begin_layout Plain Layout
20637 ForcePlain
20638 \end_layout
20639
20640 \end_inset
20641
20642  to the opposite value.
20643  These can be reset to other values,
20644  if they are used 
20645 \emph on
20646 after
20647 \emph default
20648  
20649 \begin_inset Flex Code
20650 status collapsed
20651
20652 \begin_layout Plain Layout
20653 MultiPar
20654 \end_layout
20655
20656 \end_inset
20657
20658 .
20659  Default is true.
20660 \end_layout
20661
20662 \begin_layout Description
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 NeedProtect
20668 \end_layout
20669
20670 \end_inset
20671
20672  [
20673 \begin_inset Flex Code
20674 status collapsed
20675
20676 \begin_layout Plain Layout
20677
20678 \emph on
20679 0
20680 \end_layout
20681
20682 \end_inset
20683
20684 ,
20685 \begin_inset space \thinspace{}
20686 \end_inset
20687
20688
20689 \begin_inset Flex Code
20690 status collapsed
20691
20692 \begin_layout Plain Layout
20693 1
20694 \end_layout
20695
20696 \end_inset
20697
20698 ] Whether fragile commands in this inset should be 
20699 \begin_inset Flex Code
20700 status collapsed
20701
20702 \begin_layout Plain Layout
20703
20704 \backslash
20705 protect
20706 \end_layout
20707
20708 \end_inset
20709
20710 'ed.
20711  (Note:
20712  This is 
20713 \emph on
20714 not
20715 \emph default
20716  whether the command should itself be protected.) Default is false.
20717 \end_layout
20718
20719 \begin_layout Description
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724 NeedCProtect
20725 \end_layout
20726
20727 \end_inset
20728
20729  [
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734
20735 \emph on
20736 0
20737 \end_layout
20738
20739 \end_inset
20740
20741 ,
20742 \begin_inset space \thinspace{}
20743 \end_inset
20744
20745
20746 \begin_inset Flex Code
20747 status collapsed
20748
20749 \begin_layout Plain Layout
20750 1
20751 \end_layout
20752
20753 \end_inset
20754
20755 ] This causes macros that contain this inset to be protected with 
20756 \begin_inset Flex Code
20757 status collapsed
20758
20759 \begin_layout Plain Layout
20760
20761 \backslash
20762 cprotect
20763 \end_layout
20764
20765 \end_inset
20766
20767  (cf.
20768  package 
20769 \family sans
20770 cprotect
20771 \family default
20772 ) if necessary and thus allows (some) verbatim stuff in macros.
20773  Default is false.
20774 \end_layout
20775
20776 \begin_layout Description
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 NeedMBoxProtect
20782 \end_layout
20783
20784 \end_inset
20785
20786  [
20787 \begin_inset Flex Code
20788 status collapsed
20789
20790 \begin_layout Plain Layout
20791
20792 \emph on
20793 0
20794 \end_layout
20795
20796 \end_inset
20797
20798 ,
20799 \begin_inset space \thinspace{}
20800 \end_inset
20801
20802
20803 \begin_inset Flex Code
20804 status collapsed
20805
20806 \begin_layout Plain Layout
20807 1
20808 \end_layout
20809
20810 \end_inset
20811
20812 ] Whether specific commands in this inset (such as 
20813 \begin_inset Flex Code
20814 status collapsed
20815
20816 \begin_layout Plain Layout
20817
20818 \backslash
20819 cite
20820 \end_layout
20821
20822 \end_inset
20823
20824  and 
20825 \begin_inset Flex Code
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829
20830 \backslash
20831 ref
20832 \end_layout
20833
20834 \end_inset
20835
20836 ) should be protected in an 
20837 \begin_inset Flex Code
20838 status collapsed
20839
20840 \begin_layout Plain Layout
20841
20842 \backslash
20843 mbox
20844 \end_layout
20845
20846 \end_inset
20847
20848 .
20849  This is particularly needed for insets that draw on 
20850 \family sans
20851 ulem
20852 \family default
20853  or 
20854 \family sans
20855 soul
20856 \family default
20857  commands which parse their content in complex ways.
20858  Default is false.
20859 \end_layout
20860
20861 \begin_layout Description
20862 \begin_inset Flex Code
20863 status collapsed
20864
20865 \begin_layout Plain Layout
20866 NewlineCmd
20867 \end_layout
20868
20869 \end_inset
20870
20871  
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 [string]
20877 \end_layout
20878
20879 \end_inset
20880
20881  Option to define a different command (from the default 
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886
20887 \backslash
20888
20889 \backslash
20890
20891 \end_layout
20892
20893 \end_inset
20894
20895 ) to be used for line breaks.
20896  The initial backslash must not be specified.
20897 \end_layout
20898
20899 \begin_layout Description
20900 \begin_inset Flex Code
20901 status collapsed
20902
20903 \begin_layout Plain Layout
20904 NoInsetLayout
20905 \end_layout
20906
20907 \end_inset
20908
20909  [
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914 <layout>
20915 \end_layout
20916
20917 \end_inset
20918
20919 ] Deletes an existing 
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 InsetLayout
20925 \end_layout
20926
20927 \end_inset
20928
20929 .
20930 \end_layout
20931
20932 \begin_layout Description
20933 \begin_inset Flex Code
20934 status collapsed
20935
20936 \begin_layout Plain Layout
20937 ObsoletedBy
20938 \end_layout
20939
20940 \end_inset
20941
20942  [
20943 \begin_inset Flex Code
20944 status collapsed
20945
20946 \begin_layout Plain Layout
20947 <layout>
20948 \end_layout
20949
20950 \end_inset
20951
20952 ] Name of an 
20953 \begin_inset Flex Code
20954 status collapsed
20955
20956 \begin_layout Plain Layout
20957 InsetLayout
20958 \end_layout
20959
20960 \end_inset
20961
20962  that has replaced this 
20963 \begin_inset Flex Code
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967 InsetLayout
20968 \end_layout
20969
20970 \end_inset
20971
20972 .
20973  This is used to rename an 
20974 \begin_inset Flex Code
20975 status collapsed
20976
20977 \begin_layout Plain Layout
20978 InsetLayout
20979 \end_layout
20980
20981 \end_inset
20982
20983 ,
20984  while keeping backward compatibility.
20985 \end_layout
20986
20987 \begin_layout Description
20988 \begin_inset Flex Code
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992 ParbreakIgnored
20993 \end_layout
20994
20995 \end_inset
20996
20997  [
20998 \begin_inset Flex Code
20999 status collapsed
21000
21001 \begin_layout Plain Layout
21002
21003 \emph on
21004 0
21005 \end_layout
21006
21007 \end_inset
21008
21009 ,
21010 \begin_inset space \thinspace{}
21011 \end_inset
21012
21013
21014 \begin_inset Flex Code
21015 status collapsed
21016
21017 \begin_layout Plain Layout
21018 1
21019 \end_layout
21020
21021 \end_inset
21022
21023 ] If this is set to 
21024 \begin_inset Flex Code
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 1
21029 \end_layout
21030
21031 \end_inset
21032
21033 ,
21034  paragraph breaks will be ignored in the output.
21035  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
21036  workarea,
21037  without any effect in the output.
21038 \end_layout
21039
21040 \begin_layout Description
21041 \begin_inset Flex Code
21042 status collapsed
21043
21044 \begin_layout Plain Layout
21045 ParbreakIsNewline
21046 \end_layout
21047
21048 \end_inset
21049
21050  [
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055
21056 \emph on
21057 0
21058 \end_layout
21059
21060 \end_inset
21061
21062 ,
21063 \begin_inset space \thinspace{}
21064 \end_inset
21065
21066
21067 \begin_inset Flex Code
21068 status collapsed
21069
21070 \begin_layout Plain Layout
21071 1
21072 \end_layout
21073
21074 \end_inset
21075
21076 ] As with paragraph styles,
21077  see 
21078 \begin_inset CommandInset ref
21079 LatexCommand ref
21080 reference "subsec:Paragraph-Styles"
21081 nolink "false"
21082
21083 \end_inset
21084
21085 .
21086  Default is false.
21087 \end_layout
21088
21089 \begin_layout Description
21090 \begin_inset Flex Code
21091 status collapsed
21092
21093 \begin_layout Plain Layout
21094 PassThru
21095 \end_layout
21096
21097 \end_inset
21098
21099  [
21100 \begin_inset Flex Code
21101 status collapsed
21102
21103 \begin_layout Plain Layout
21104
21105 \emph on
21106 0
21107 \end_layout
21108
21109 \end_inset
21110
21111 ,
21112 \begin_inset space \thinspace{}
21113 \end_inset
21114
21115
21116 \begin_inset Flex Code
21117 status collapsed
21118
21119 \begin_layout Plain Layout
21120 1
21121 \end_layout
21122
21123 \end_inset
21124
21125 ] As with paragraph styles,
21126  see 
21127 \begin_inset CommandInset ref
21128 LatexCommand ref
21129 reference "subsec:Paragraph-Styles"
21130 nolink "false"
21131
21132 \end_inset
21133
21134 .
21135  Default is false.
21136 \end_layout
21137
21138 \begin_layout Description
21139 \begin_inset Flex Code
21140 status collapsed
21141
21142 \begin_layout Plain Layout
21143 Preamble
21144 \end_layout
21145
21146 \end_inset
21147
21148  As with paragraph styles,
21149  see 
21150 \begin_inset CommandInset ref
21151 LatexCommand ref
21152 reference "subsec:Paragraph-Styles"
21153 nolink "false"
21154
21155 \end_inset
21156
21157 .
21158 \end_layout
21159
21160 \begin_layout Description
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165 RefPrefix
21166 \end_layout
21167
21168 \end_inset
21169
21170  [
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 string
21176 \end_layout
21177
21178 \end_inset
21179
21180 ] The prefix to use when creating labels referring to insets of this type.
21181  This allows the use of formatted references.
21182 \end_layout
21183
21184 \begin_layout Description
21185 \begin_inset Flex Code
21186 status collapsed
21187
21188 \begin_layout Plain Layout
21189 Requires
21190 \end_layout
21191
21192 \end_inset
21193
21194  [
21195 \begin_inset Flex Code
21196 status collapsed
21197
21198 \begin_layout Plain Layout
21199 string
21200 \end_layout
21201
21202 \end_inset
21203
21204 ] As with paragraph styles,
21205  see 
21206 \begin_inset CommandInset ref
21207 LatexCommand ref
21208 reference "subsec:Paragraph-Styles"
21209 nolink "false"
21210
21211 \end_inset
21212
21213 .
21214 \end_layout
21215
21216 \begin_layout Description
21217 \begin_inset Flex Code
21218 status collapsed
21219
21220 \begin_layout Plain Layout
21221 ResetArgs
21222 \end_layout
21223
21224 \end_inset
21225
21226  [
21227 \begin_inset Flex Code
21228 status collapsed
21229
21230 \begin_layout Plain Layout
21231
21232 \emph on
21233 0
21234 \end_layout
21235
21236 \end_inset
21237
21238 ,
21239 \begin_inset space \thinspace{}
21240 \end_inset
21241
21242
21243 \begin_inset Flex Code
21244 status collapsed
21245
21246 \begin_layout Plain Layout
21247 1
21248 \end_layout
21249
21250 \end_inset
21251
21252 ] Resets the \SpecialChar LaTeX
21253  arguments of this layout (as defined via the 
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 Argument
21259 \end_layout
21260
21261 \end_inset
21262
21263  tag).
21264  This is useful if you have copied a style via 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 CopyStyle
21270 \end_layout
21271
21272 \end_inset
21273
21274 ,
21275  but you do not want to inherit its (required and optional) arguments.
21276 \end_layout
21277
21278 \begin_layout Description
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283 ResetsFont
21284 \end_layout
21285
21286 \end_inset
21287
21288  [
21289 \begin_inset Flex Code
21290 status collapsed
21291
21292 \begin_layout Plain Layout
21293
21294 \emph on
21295 0
21296 \end_layout
21297
21298 \end_inset
21299
21300 ,
21301 \begin_inset space \thinspace{}
21302 \end_inset
21303
21304
21305 \begin_inset Flex Code
21306 status collapsed
21307
21308 \begin_layout Plain Layout
21309 1
21310 \end_layout
21311
21312 \end_inset
21313
21314 ] If 
21315 \begin_inset Flex Code
21316 status collapsed
21317
21318 \begin_layout Plain Layout
21319 1
21320 \end_layout
21321
21322 \end_inset
21323
21324 ,
21325  font changes are redone inside the respective inset (in the output) even if the inset itself is in the context of this font changes (e.
21326 \begin_inset space \thinspace{}
21327 \end_inset
21328
21329 g.,
21330  
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335
21336 \backslash
21337 textbf{Sourrounding text 
21338 \backslash
21339 myinset{
21340 \backslash
21341 textbf{content}}\SpecialChar ldots
21342 }
21343 \end_layout
21344
21345 \end_inset
21346
21347  rather than 
21348 \begin_inset Flex Code
21349 status collapsed
21350
21351 \begin_layout Plain Layout
21352
21353 \backslash
21354 textbf{Sourrounding text 
21355 \backslash
21356 myinset{content}\SpecialChar ldots
21357 }
21358 \end_layout
21359
21360 \end_inset
21361
21362 .
21363  Setting this makes sense for commands that internally reset font settings (e.
21364 \begin_inset space \thinspace{}
21365 \end_inset
21366
21367 g.,
21368  footnotes).
21369  Note that wrongly setting this might lead to unwanted result (e.
21370 \begin_inset space \thinspace{}
21371 \end_inset
21372
21373 g.,
21374  with 
21375 \begin_inset Flex Code
21376 status collapsed
21377
21378 \begin_layout Plain Layout
21379
21380 \backslash
21381 emph{Sourrounding text 
21382 \backslash
21383 myinset{
21384 \backslash
21385 emph{content}}\SpecialChar ldots
21386 }
21387 \end_layout
21388
21389 \end_inset
21390
21391 ,
21392  content is upright,
21393  as 
21394 \begin_inset Flex Code
21395 status collapsed
21396
21397 \begin_layout Plain Layout
21398
21399 \backslash
21400 emph
21401 \end_layout
21402
21403 \end_inset
21404
21405  toggles.
21406  Default is 
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 0
21412 \end_layout
21413
21414 \end_inset
21415
21416 :
21417  font changes are not redone inside the inset.
21418 \end_layout
21419
21420 \begin_layout Description
21421 \begin_inset Flex Code
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 RightDelim
21426 \end_layout
21427
21428 \end_inset
21429
21430  [
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 string
21436 \end_layout
21437
21438 \end_inset
21439
21440 ] A string that is put at the end of the layout content.
21441  A line break in the output can be indicated by 
21442 \begin_inset Flex Code
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446 <br/>
21447 \end_layout
21448
21449 \end_inset
21450
21451 .
21452 \end_layout
21453
21454 \begin_layout Description
21455 \begin_inset Flex Code
21456 status collapsed
21457
21458 \begin_layout Plain Layout
21459 Spellcheck
21460 \end_layout
21461
21462 \end_inset
21463
21464  [
21465 \begin_inset Flex Code
21466 status collapsed
21467
21468 \begin_layout Plain Layout
21469 0
21470 \end_layout
21471
21472 \end_inset
21473
21474 ,
21475 \begin_inset space \thinspace{}
21476 \end_inset
21477
21478
21479 \begin_inset Flex Code
21480 status collapsed
21481
21482 \begin_layout Plain Layout
21483
21484 \emph on
21485 1
21486 \end_layout
21487
21488 \end_inset
21489
21490 ] Allow spell-checking the contents of this inset.
21491  Default is true.
21492 \end_layout
21493
21494 \begin_layout Subsection
21495 Arguments
21496 \begin_inset CommandInset label
21497 LatexCommand label
21498 name "subsec:Arguments"
21499
21500 \end_inset
21501
21502
21503 \end_layout
21504
21505 \begin_layout Standard
21506 Both paragraph styles and inset layouts allow for 
21507 \emph on
21508 arguments
21509 \emph default
21510  as well as the main content.
21511  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
21512 .
21513  Each (optional or required) argument of a command or environment—
21514 except for the required argument that is associated with the content—
21515 has a separate definition,
21516  where the number specifies the order of the arguments.
21517  The definition must end with 
21518 \begin_inset Flex Code
21519 status collapsed
21520
21521 \begin_layout Plain Layout
21522 EndArgument
21523 \end_layout
21524
21525 \end_inset
21526
21527 .
21528  So a command with two optional arguments looks like:
21529 \end_layout
21530
21531 \begin_layout Quote
21532
21533 \family typewriter
21534 Argument 1
21535 \end_layout
21536
21537 \begin_layout Quote
21538
21539 \family typewriter
21540 ...
21541 \end_layout
21542
21543 \begin_layout Quote
21544
21545 \family typewriter
21546 EndArgument
21547 \end_layout
21548
21549 \begin_layout Quote
21550
21551 \family typewriter
21552 Argument 2
21553 \end_layout
21554
21555 \begin_layout Quote
21556
21557 \family typewriter
21558 ...
21559 \end_layout
21560
21561 \begin_layout Quote
21562
21563 \family typewriter
21564 EndArgument
21565 \end_layout
21566
21567 \begin_layout Standard
21568 Inside the 
21569 \begin_inset Flex Code
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573 Argument
21574 \end_layout
21575
21576 \end_inset
21577
21578  definition,
21579  the following specifications are possible:
21580 \end_layout
21581
21582 \begin_layout Itemize
21583 \begin_inset Flex Code
21584 status collapsed
21585
21586 \begin_layout Plain Layout
21587 LabelString
21588 \end_layout
21589
21590 \end_inset
21591
21592  
21593 \begin_inset Flex Code
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597 [string]
21598 \end_layout
21599
21600 \end_inset
21601
21602  The string that will appear both in the menu (to insert this argument) and on the argument inset button (unless you also specify a separate 
21603 \begin_inset Flex Code
21604 status collapsed
21605
21606 \begin_layout Plain Layout
21607 MenuString
21608 \end_layout
21609
21610 \end_inset
21611
21612 ).
21613  For the menu,
21614  you can define an accelerator by appending the respective character to the string,
21615  divided by 
21616 \begin_inset Quotes eld
21617 \end_inset
21618
21619 |
21620 \begin_inset Quotes erd
21621 \end_inset
21622
21623  (e.
21624 \begin_inset space \thinspace{}
21625 \end_inset
21626
21627 g.
21628 \begin_inset space \space{}
21629 \end_inset
21630
21631
21632 \begin_inset Quotes eld
21633 \end_inset
21634
21635
21636 \begin_inset Flex Code
21637 status collapsed
21638
21639 \begin_layout Plain Layout
21640 Short Title|S
21641 \end_layout
21642
21643 \end_inset
21644
21645
21646 \begin_inset Quotes erd
21647 \end_inset
21648
21649 ).
21650 \end_layout
21651
21652 \begin_layout Itemize
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657 MenuString
21658 \end_layout
21659
21660 \end_inset
21661
21662  
21663 \begin_inset Flex Code
21664 status collapsed
21665
21666 \begin_layout Plain Layout
21667 [string]
21668 \end_layout
21669
21670 \end_inset
21671
21672  A separate string for the menu.
21673  You can define an accelerator by appending the respective character to the string,
21674  divided by 
21675 \begin_inset Quotes eld
21676 \end_inset
21677
21678 |
21679 \begin_inset Quotes erd
21680 \end_inset
21681
21682  (e.
21683 \begin_inset space \thinspace{}
21684 \end_inset
21685
21686 g.
21687 \begin_inset space \space{}
21688 \end_inset
21689
21690
21691 \begin_inset Quotes eld
21692 \end_inset
21693
21694
21695 \begin_inset Flex Code
21696 status collapsed
21697
21698 \begin_layout Plain Layout
21699 Short Title|S
21700 \end_layout
21701
21702 \end_inset
21703
21704
21705 \begin_inset Quotes erd
21706 \end_inset
21707
21708 ).
21709  This specification is optional.
21710  If it is not given the 
21711 \begin_inset Flex Code
21712 status collapsed
21713
21714 \begin_layout Plain Layout
21715 LabelString
21716 \end_layout
21717
21718 \end_inset
21719
21720  will be used instead for the menu.
21721 \end_layout
21722
21723 \begin_layout Itemize
21724 \begin_inset Flex Code
21725 status collapsed
21726
21727 \begin_layout Plain Layout
21728 Tooltip
21729 \end_layout
21730
21731 \end_inset
21732
21733  
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738 [string]
21739 \end_layout
21740
21741 \end_inset
21742
21743  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
21744 \end_layout
21745
21746 \begin_layout Itemize
21747 \begin_inset Flex Code
21748 status collapsed
21749
21750 \begin_layout Plain Layout
21751 Mandatory
21752 \end_layout
21753
21754 \end_inset
21755
21756  [
21757 \begin_inset Flex Code
21758 status collapsed
21759
21760 \begin_layout Plain Layout
21761
21762 \emph on
21763 0
21764 \end_layout
21765
21766 \end_inset
21767
21768 ,
21769 \begin_inset space \thinspace{}
21770 \end_inset
21771
21772
21773 \begin_inset Flex Code
21774 status collapsed
21775
21776 \begin_layout Plain Layout
21777 1
21778 \end_layout
21779
21780 \end_inset
21781
21782 ] Declare if this is a mandatory (1) or an optional (0) argument.
21783  Mandatory arguments will be output empty if not given,
21784  while optional arguments will not be output at all.
21785  By default,
21786  mandatory arguments are delimited by 
21787 \begin_inset Flex Code
21788 status collapsed
21789
21790 \begin_layout Plain Layout
21791 {...}
21792 \end_layout
21793
21794 \end_inset
21795
21796 ,
21797  while optional arguments are delimited by 
21798 \begin_inset Flex Code
21799 status collapsed
21800
21801 \begin_layout Plain Layout
21802 [...]
21803 \end_layout
21804
21805 \end_inset
21806
21807
21808 \end_layout
21809
21810 \begin_layout Itemize
21811 \begin_inset Flex Code
21812 status collapsed
21813
21814 \begin_layout Plain Layout
21815 NewlineCmd
21816 \end_layout
21817
21818 \end_inset
21819
21820  
21821 \begin_inset Flex Code
21822 status collapsed
21823
21824 \begin_layout Plain Layout
21825 [string]
21826 \end_layout
21827
21828 \end_inset
21829
21830  Option to define a different command (from the default 
21831 \begin_inset Flex Code
21832 status collapsed
21833
21834 \begin_layout Plain Layout
21835
21836 \backslash
21837
21838 \backslash
21839
21840 \end_layout
21841
21842 \end_inset
21843
21844 ) to be used for line breaks.
21845  The initial backslash must not be specified.
21846 \end_layout
21847
21848 \begin_layout Itemize
21849 \begin_inset Flex Code
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853 Requires
21854 \end_layout
21855
21856 \end_inset
21857
21858  
21859 \begin_inset Flex Code
21860 status collapsed
21861
21862 \begin_layout Plain Layout
21863 [int=0]
21864 \end_layout
21865
21866 \end_inset
21867
21868  defines another argument or arguments (by their number) which this argument requires to be output if it is itself output.
21869  E.
21870 \begin_inset space \thinspace{}
21871 \end_inset
21872
21873 g.,
21874  in \SpecialChar LaTeX
21875  commands,
21876  optional arguments often require previous optional arguments to be output (at least empty),
21877  as in 
21878 \begin_inset Flex Code
21879 status collapsed
21880
21881 \begin_layout Plain Layout
21882
21883 \backslash
21884 command[][argument]{text}
21885 \end_layout
21886
21887 \end_inset
21888
21889 .
21890  This can be achieved by the statement 
21891 \begin_inset Flex Code
21892 status collapsed
21893
21894 \begin_layout Plain Layout
21895 Requires 1
21896 \end_layout
21897
21898 \end_inset
21899
21900  within 
21901 \begin_inset Flex Code
21902 status collapsed
21903
21904 \begin_layout Plain Layout
21905 Argument 2
21906 \end_layout
21907
21908 \end_inset
21909
21910 .
21911  If multiple arguments are required,
21912  separate them by comma (e.g.,
21913  
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918 Requires 1,2
21919 \end_layout
21920
21921 \end_inset
21922
21923 ).
21924 \end_layout
21925
21926 \begin_layout Itemize
21927 \begin_inset Flex Code
21928 status collapsed
21929
21930 \begin_layout Plain Layout
21931 LeftDelim
21932 \end_layout
21933
21934 \end_inset
21935
21936  
21937 \begin_inset Flex Code
21938 status collapsed
21939
21940 \begin_layout Plain Layout
21941 [string]
21942 \end_layout
21943
21944 \end_inset
21945
21946  defines a custom left delimiter (instead of 
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951 {
21952 \end_layout
21953
21954 \end_inset
21955
21956  or 
21957 \begin_inset Flex Code
21958 status collapsed
21959
21960 \begin_layout Plain Layout
21961 [
21962 \end_layout
21963
21964 \end_inset
21965
21966 ).
21967  A line break in the output can be indicated by 
21968 \begin_inset Flex Code
21969 status collapsed
21970
21971 \begin_layout Plain Layout
21972 <br/>
21973 \end_layout
21974
21975 \end_inset
21976
21977 .
21978 \end_layout
21979
21980 \begin_layout Itemize
21981 \begin_inset Flex Code
21982 status collapsed
21983
21984 \begin_layout Plain Layout
21985 RightDelim
21986 \end_layout
21987
21988 \end_inset
21989
21990  
21991 \begin_inset Flex Code
21992 status collapsed
21993
21994 \begin_layout Plain Layout
21995 [string]
21996 \end_layout
21997
21998 \end_inset
21999
22000  defines a custom right delimiter (instead of 
22001 \begin_inset Flex Code
22002 status collapsed
22003
22004 \begin_layout Plain Layout
22005 }
22006 \end_layout
22007
22008 \end_inset
22009
22010  or 
22011 \begin_inset Flex Code
22012 status collapsed
22013
22014 \begin_layout Plain Layout
22015 ]
22016 \end_layout
22017
22018 \end_inset
22019
22020 ).
22021  A line break in the output can be indicated by 
22022 \begin_inset Flex Code
22023 status collapsed
22024
22025 \begin_layout Plain Layout
22026 <br/>
22027 \end_layout
22028
22029 \end_inset
22030
22031 .
22032 \end_layout
22033
22034 \begin_layout Itemize
22035 \begin_inset Flex Code
22036 status collapsed
22037
22038 \begin_layout Plain Layout
22039 DefaultArg
22040 \end_layout
22041
22042 \end_inset
22043
22044  
22045 \begin_inset Flex Code
22046 status collapsed
22047
22048 \begin_layout Plain Layout
22049 [string]
22050 \end_layout
22051
22052 \end_inset
22053
22054  defines an argument that is inserted if and only if no user-specified arguments were given,
22055  i.
22056 \begin_inset space \thinspace{}
22057 \end_inset
22058
22059 e.
22060 \begin_inset space \space{}
22061 \end_inset
22062
22063 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
22064  Multiple arguments need to be separated by comma.
22065 \end_layout
22066
22067 \begin_layout Itemize
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 PresetArg
22073 \end_layout
22074
22075 \end_inset
22076
22077  
22078 \begin_inset Flex Code
22079 status collapsed
22080
22081 \begin_layout Plain Layout
22082 [string]
22083 \end_layout
22084
22085 \end_inset
22086
22087  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
22088  Multiple arguments need to be separated by comma.
22089 \end_layout
22090
22091 \begin_layout Itemize
22092 \begin_inset Flex Code
22093 status collapsed
22094
22095 \begin_layout Plain Layout
22096 Font
22097 \end_layout
22098
22099 \end_inset
22100
22101  The font used for the argument content,
22102  see 
22103 \begin_inset CommandInset ref
22104 LatexCommand ref
22105 reference "subsec:Font-description"
22106 nolink "false"
22107
22108 \end_inset
22109
22110 .
22111 \end_layout
22112
22113 \begin_layout Itemize
22114 \begin_inset Flex Code
22115 status collapsed
22116
22117 \begin_layout Plain Layout
22118 FreeSpacing
22119 \end_layout
22120
22121 \end_inset
22122
22123  [
22124 \begin_inset Flex Code
22125 status collapsed
22126
22127 \begin_layout Plain Layout
22128
22129 \emph on
22130 0
22131 \end_layout
22132
22133 \end_inset
22134
22135 ,
22136 \begin_inset space \thinspace{}
22137 \end_inset
22138
22139
22140 \begin_inset Flex Code
22141 status collapsed
22142
22143 \begin_layout Plain Layout
22144 1
22145 \end_layout
22146
22147 \end_inset
22148
22149 ] As with paragraph styles,
22150  see 
22151 \begin_inset CommandInset ref
22152 LatexCommand ref
22153 reference "subsec:Paragraph-Styles"
22154 nolink "false"
22155
22156 \end_inset
22157
22158 .
22159 \end_layout
22160
22161 \begin_layout Itemize
22162 \begin_inset Flex Code
22163 status collapsed
22164
22165 \begin_layout Plain Layout
22166 LabelFont
22167 \end_layout
22168
22169 \end_inset
22170
22171  The font used for the label;
22172  see 
22173 \begin_inset CommandInset ref
22174 LatexCommand ref
22175 reference "subsec:Font-description"
22176 nolink "false"
22177
22178 \end_inset
22179
22180 .
22181 \end_layout
22182
22183 \begin_layout Itemize
22184 \begin_inset Flex Code
22185 status collapsed
22186
22187 \begin_layout Plain Layout
22188 Decoration
22189 \end_layout
22190
22191 \end_inset
22192
22193  [
22194 \begin_inset Flex Code
22195 status collapsed
22196
22197 \begin_layout Plain Layout
22198
22199 \emph on
22200 Classic
22201 \emph default
22202 ,
22203  Minimalistic,
22204  Conglomerate
22205 \end_layout
22206
22207 \end_inset
22208
22209 ] describes the rendering style used for the inset's frame and buttons.
22210 \end_layout
22211
22212 \begin_layout Itemize
22213 \begin_inset Flex Code
22214 status collapsed
22215
22216 \begin_layout Plain Layout
22217 AutoInsert
22218 \end_layout
22219
22220 \end_inset
22221
22222  
22223 \begin_inset Flex Code
22224 status collapsed
22225
22226 \begin_layout Plain Layout
22227 [int=0]
22228 \end_layout
22229
22230 \end_inset
22231
22232  If this is set to 
22233 \begin_inset Flex Code
22234 status collapsed
22235
22236 \begin_layout Plain Layout
22237 1
22238 \end_layout
22239
22240 \end_inset
22241
22242 ,
22243  this argument is automatically inserted when the respective style is selected.
22244 \end_layout
22245
22246 \begin_layout Itemize
22247 \begin_inset Flex Code
22248 status collapsed
22249
22250 \begin_layout Plain Layout
22251 InsertOnNewline
22252 \end_layout
22253
22254 \end_inset
22255
22256  
22257 \begin_inset Flex Code
22258 status collapsed
22259
22260 \begin_layout Plain Layout
22261 [int=0]
22262 \end_layout
22263
22264 \end_inset
22265
22266  If this is set to 
22267 \begin_inset Flex Code
22268 status collapsed
22269
22270 \begin_layout Plain Layout
22271 1
22272 \end_layout
22273
22274 \end_inset
22275
22276 ,
22277  this argument will be inserted on a new line with 
22278 \begin_inset Flex Code
22279 status collapsed
22280
22281 \begin_layout Plain Layout
22282 AutoInsert
22283 \end_layout
22284
22285 \end_inset
22286
22287  (only available within Flex insets).
22288 \end_layout
22289
22290 \begin_layout Itemize
22291 \begin_inset Flex Code
22292 status collapsed
22293
22294 \begin_layout Plain Layout
22295 InsertCotext
22296 \end_layout
22297
22298 \end_inset
22299
22300  
22301 \begin_inset Flex Code
22302 status collapsed
22303
22304 \begin_layout Plain Layout
22305 [int=0]
22306 \end_layout
22307
22308 \end_inset
22309
22310  If this is set to 
22311 \begin_inset Flex Code
22312 status collapsed
22313
22314 \begin_layout Plain Layout
22315 1
22316 \end_layout
22317
22318 \end_inset
22319
22320 ,
22321  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
22322 \end_layout
22323
22324 \begin_layout Itemize
22325 \begin_inset Flex Code
22326 status collapsed
22327
22328 \begin_layout Plain Layout
22329 PassThru
22330 \end_layout
22331
22332 \end_inset
22333
22334  [
22335 \begin_inset Flex Code
22336 status collapsed
22337
22338 \begin_layout Plain Layout
22339
22340 \emph on
22341 inherited
22342 \emph default
22343 ,
22344  true,
22345  false
22346 \end_layout
22347
22348 \end_inset
22349
22350 ] Whether the contents of this argument should be output in raw form,
22351  meaning without special translations that \SpecialChar LaTeX
22352  would require.
22353  By default,
22354  the 
22355 \begin_inset Flex Code
22356 status collapsed
22357
22358 \begin_layout Plain Layout
22359 PassThru
22360 \end_layout
22361
22362 \end_inset
22363
22364  status is inherited by the inset or paragraph layout the argument belongs to,
22365  true and false change the status for the given argument only.
22366 \end_layout
22367
22368 \begin_layout Itemize
22369 \begin_inset Flex Code
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373 PassThruChars
22374 \end_layout
22375
22376 \end_inset
22377
22378  [
22379 \begin_inset Flex Code
22380 status collapsed
22381
22382 \begin_layout Plain Layout
22383 string of characters
22384 \end_layout
22385
22386 \end_inset
22387
22388 ]
22389 \family typewriter
22390  
22391 \family default
22392 Defines individual characters
22393 \begin_inset Newline linebreak
22394 \end_inset
22395
22396 that should be output in raw form,
22397  meaning without special translations that \SpecialChar LaTeX
22398  would require.
22399  Note that,
22400  contrary to PassThru,
22401  this needs to be explicitly defined for arguments.
22402  That is,
22403  arguments do not inherit PassThruChars from their parent inset or layout.
22404 \end_layout
22405
22406 \begin_layout Itemize
22407 \begin_inset Flex Code
22408 status collapsed
22409
22410 \begin_layout Plain Layout
22411 IsTocCaption
22412 \end_layout
22413
22414 \end_inset
22415
22416  [
22417 \begin_inset Flex Code
22418 status collapsed
22419
22420 \begin_layout Plain Layout
22421
22422 \emph on
22423 0
22424 \end_layout
22425
22426 \end_inset
22427
22428 ,
22429 \begin_inset space \thinspace{}
22430 \end_inset
22431
22432
22433 \begin_inset Flex Code
22434 status collapsed
22435
22436 \begin_layout Plain Layout
22437 1
22438 \end_layout
22439
22440 \end_inset
22441
22442 ] If this is set to 1,
22443  the argument will output its content in the corresponding item in the table of contents.
22444  See AddToToc.
22445 \end_layout
22446
22447 \begin_layout Standard
22448 By default,
22449  the text entered in the \SpecialChar LyX
22450  workarea in the respective layout is the last (mandatory) argument of a command if the 
22451 \begin_inset Flex Code
22452 status collapsed
22453
22454 \begin_layout Plain Layout
22455 LatexType
22456 \end_layout
22457
22458 \end_inset
22459
22460  is 
22461 \begin_inset Flex Code
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 Command
22466 \end_layout
22467
22468 \end_inset
22469
22470 .
22471  However,
22472  arguments with the prefix 
22473 \begin_inset Flex Code
22474 status collapsed
22475
22476 \begin_layout Plain Layout
22477 post:
22478 \end_layout
22479
22480 \end_inset
22481
22482  are output after this workarea argument.
22483  Note that post-argument numbering restarts at 1,
22484  so the first argument following the workarea argument is 
22485 \begin_inset Flex Code
22486 status collapsed
22487
22488 \begin_layout Plain Layout
22489 post:1
22490 \end_layout
22491
22492 \end_inset
22493
22494 .
22495  Post-arguments are ignored in any other 
22496 \begin_inset Flex Code
22497 status collapsed
22498
22499 \begin_layout Plain Layout
22500 LatexType
22501 \end_layout
22502
22503 \end_inset
22504
22505  than 
22506 \begin_inset Flex Code
22507 status collapsed
22508
22509 \begin_layout Plain Layout
22510 Command
22511 \end_layout
22512
22513 \end_inset
22514
22515 .
22516 \end_layout
22517
22518 \begin_layout Standard
22519 Arguments for list 
22520 \begin_inset Flex Code
22521 status collapsed
22522
22523 \begin_layout Plain Layout
22524
22525 \backslash
22526 item
22527 \end_layout
22528
22529 \end_inset
22530
22531 s (as in 
22532 \begin_inset Flex Code
22533 status collapsed
22534
22535 \begin_layout Plain Layout
22536
22537 \backslash
22538 item[foo]
22539 \end_layout
22540
22541 \end_inset
22542
22543 ) have the prefix 
22544 \begin_inset Flex Code
22545 status collapsed
22546
22547 \begin_layout Plain Layout
22548 item:
22549 \end_layout
22550
22551 \end_inset
22552
22553  followed by the number (e.
22554 \begin_inset space \thinspace{}
22555 \end_inset
22556
22557 g.
22558 \begin_inset space \space{}
22559 \end_inset
22560
22561
22562 \begin_inset Flex Code
22563 status collapsed
22564
22565 \begin_layout Plain Layout
22566 Argument item:1
22567 \end_layout
22568
22569 \end_inset
22570
22571 ).
22572 \end_layout
22573
22574 \begin_layout Standard
22575 Finally,
22576  there is a special argument type with the prefix 
22577 \begin_inset Flex Code
22578 status collapsed
22579
22580 \begin_layout Plain Layout
22581 listpreamble:
22582 \end_layout
22583
22584 \end_inset
22585
22586 .
22587  It is not really an argument,
22588  but uses the argument interface (thus,
22589  the prefix is also followed by a number,
22590  e.
22591 \begin_inset space \thinspace{}
22592 \end_inset
22593
22594 g.
22595  
22596 \begin_inset Flex Code
22597 status collapsed
22598
22599 \begin_layout Plain Layout
22600 Argument listpreamble:1
22601 \end_layout
22602
22603 \end_inset
22604
22605 ).
22606  As the name implies,
22607  it is targeted at lists such as 
22608 \family sans
22609 Itemize
22610 \family default
22611 ,
22612  
22613 \family sans
22614 Enumerate
22615 \family default
22616 ,
22617  
22618 \family sans
22619 Description
22620 \family default
22621 ,
22622  or 
22623 \family sans
22624 Bibliography
22625 \family default
22626 .
22627  Its content will be output at the list start,
22628  before the first 
22629 \begin_inset Flex Code
22630 status collapsed
22631
22632 \begin_layout Plain Layout
22633
22634 \backslash
22635 item
22636 \end_layout
22637
22638 \end_inset
22639
22640 ,
22641  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
22642 ).
22643  This way,
22644  users can insert redefinitions (of lengths etc.) to individual lists.
22645  By default,
22646  these arguments do not have a delimiter.
22647 \end_layout
22648
22649 \begin_layout Subsection
22650 Counters
22651 \begin_inset CommandInset label
22652 LatexCommand label
22653 name "subsec:Counters"
22654
22655 \end_inset
22656
22657
22658 \end_layout
22659
22660 \begin_layout Standard
22661 It is necessary to define the counters (
22662 \begin_inset Flex Noun
22663 status collapsed
22664
22665 \begin_layout Plain Layout
22666 chapter
22667 \end_layout
22668
22669 \end_inset
22670
22671 ,
22672  
22673 \begin_inset Flex Noun
22674 status collapsed
22675
22676 \begin_layout Plain Layout
22677 figure
22678 \end_layout
22679
22680 \end_inset
22681
22682 ,
22683  \SpecialChar ldots
22684 ) in the text class itself.
22685  The standard counters are defined in the file 
22686 \begin_inset Flex Code
22687 status collapsed
22688
22689 \begin_layout Plain Layout
22690 stdcounters.inc
22691 \end_layout
22692
22693 \end_inset
22694
22695 ,
22696  so you may have to do no more than add
22697 \end_layout
22698
22699 \begin_layout LyX-Code
22700 Input stdcounters.inc
22701 \end_layout
22702
22703 \begin_layout Standard
22704 to your layout file to get them to work.
22705  But if you want to define custom counters,
22706  then you can do so.
22707  The counter declaration must begin with:
22708 \end_layout
22709
22710 \begin_layout LyX-Code
22711 Counter CounterName
22712 \end_layout
22713
22714 \begin_layout Standard
22715 where of course `
22716 \begin_inset Flex Code
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720 CounterName
22721 \end_layout
22722
22723 \end_inset
22724
22725 ' is replaced by the name of the counter.
22726  And it must end with 
22727 \begin_inset Quotes eld
22728 \end_inset
22729
22730
22731 \begin_inset Flex Code
22732 status collapsed
22733
22734 \begin_layout Plain Layout
22735 End
22736 \end_layout
22737
22738 \end_inset
22739
22740
22741 \begin_inset Quotes erd
22742 \end_inset
22743
22744 .
22745  The following parameters can also be used:
22746 \end_layout
22747
22748 \begin_layout Description
22749 \begin_inset Flex Code
22750 status collapsed
22751
22752 \begin_layout Plain Layout
22753 InitialValue
22754 \end_layout
22755
22756 \end_inset
22757
22758  [
22759 \begin_inset Flex Code
22760 status collapsed
22761
22762 \begin_layout Plain Layout
22763 int=1
22764 \end_layout
22765
22766 \end_inset
22767
22768 ] Sets the initial value for the counter,
22769  to which it will be reset whenever that happens.
22770  Normally,
22771  one will want the default,
22772  1.
22773 \end_layout
22774
22775 \begin_layout Description
22776 \begin_inset Flex Code
22777 status collapsed
22778
22779 \begin_layout Plain Layout
22780 LabelString
22781 \end_layout
22782
22783 \end_inset
22784
22785  [
22786 \begin_inset Flex Code
22787 status collapsed
22788
22789 \begin_layout Plain Layout
22790 string
22791 \end_layout
22792
22793 \end_inset
22794
22795 =
22796 \begin_inset Quotes erd
22797 \end_inset
22798
22799
22800 \begin_inset Quotes erd
22801 \end_inset
22802
22803 ] When defined,
22804  this string defines how the counter is displayed.
22805  Setting this value sets 
22806 \begin_inset Flex Code
22807 status collapsed
22808
22809 \begin_layout Plain Layout
22810 LabelStringAppendix
22811 \end_layout
22812
22813 \end_inset
22814
22815  to the same value.
22816  The following special constructs can be used in the string:
22817 \end_layout
22818
22819 \begin_deeper
22820 \begin_layout Itemize
22821 \begin_inset Flex Code
22822 status collapsed
22823
22824 \begin_layout Plain Layout
22825
22826 \backslash
22827 thecounter
22828 \end_layout
22829
22830 \end_inset
22831
22832  will be replaced by the expansion of the 
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 LabelString
22838 \end_layout
22839
22840 \end_inset
22841
22842  (or 
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 LabelStringAppendix
22848 \end_layout
22849
22850 \end_inset
22851
22852 ) of the counter 
22853 \begin_inset Flex Code
22854 status collapsed
22855
22856 \begin_layout Plain Layout
22857 counter
22858 \end_layout
22859
22860 \end_inset
22861
22862 .
22863  
22864 \end_layout
22865
22866 \begin_layout Itemize
22867 counter values can be expressed using \SpecialChar LaTeX
22868 -like macros
22869 \begin_inset Newline newline
22870 \end_inset
22871
22872
22873 \begin_inset Flex Code
22874 status collapsed
22875
22876 \begin_layout Plain Layout
22877
22878 \backslash
22879
22880 \emph on
22881 numbertype
22882 \emph default
22883 {
22884 \emph on
22885 counter
22886 \emph default
22887 }
22888 \end_layout
22889
22890 \end_inset
22891
22892 ,
22893  where 
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898
22899 \emph on
22900 numbertype
22901 \end_layout
22902
22903 \end_inset
22904
22905  can be:
22906 \begin_inset Foot
22907 status collapsed
22908
22909 \begin_layout Plain Layout
22910
22911 \family roman
22912 \series medium
22913 \shape up
22914 \size normal
22915 \emph off
22916 \bar no
22917 \noun off
22918 \color none
22919 Actually,
22920  the situation is a bit more complicated:
22921  any
22922 \family default
22923 \series default
22924 \shape default
22925 \emph default
22926 \bar default
22927  
22928 \size default
22929 \emph on
22930 \noun default
22931 \color inherit
22932 numbertype
22933 \family roman
22934 \series medium
22935 \shape up
22936 \size normal
22937 \emph off
22938 \bar no
22939 \noun off
22940  other than those described below will produce arabic numerals.
22941  It would not be surprising to see this change in the future.
22942 \end_layout
22943
22944 \end_inset
22945
22946  
22947 \begin_inset Flex Code
22948 status collapsed
22949
22950 \begin_layout Plain Layout
22951 arabic
22952 \end_layout
22953
22954 \end_inset
22955
22956 :
22957  1,
22958  2,
22959  3,\SpecialChar ldots
22960 ;
22961  
22962 \begin_inset Flex Code
22963 status collapsed
22964
22965 \begin_layout Plain Layout
22966 alph
22967 \end_layout
22968
22969 \end_inset
22970
22971  for lower-case letters:
22972  a,
22973  b,
22974  c,
22975  \SpecialChar ldots
22976 ;
22977  
22978 \begin_inset Flex Code
22979 status collapsed
22980
22981 \begin_layout Plain Layout
22982 Alph
22983 \end_layout
22984
22985 \end_inset
22986
22987  for upper-case letters:
22988  A,
22989  B,
22990  C,
22991  \SpecialChar ldots
22992 ;
22993  
22994 \begin_inset Flex Code
22995 status collapsed
22996
22997 \begin_layout Plain Layout
22998 roman
22999 \end_layout
23000
23001 \end_inset
23002
23003  for lower-case roman numerals:
23004  i,
23005  ii,
23006  iii,
23007  \SpecialChar ldots
23008 ;
23009  
23010 \begin_inset Flex Code
23011 status collapsed
23012
23013 \begin_layout Plain Layout
23014 Roman
23015 \end_layout
23016
23017 \end_inset
23018
23019  for upper-case roman numerals:
23020  I,
23021  II,
23022  III\SpecialChar ldots
23023 ;
23024  
23025 \begin_inset Flex Code
23026 status collapsed
23027
23028 \begin_layout Plain Layout
23029 hebrew
23030 \end_layout
23031
23032 \end_inset
23033
23034  for hebrew numerals.
23035 \end_layout
23036
23037 \end_deeper
23038 \begin_layout Standard
23039 If LabelString is not defined,
23040  a default value is constructed as follows:
23041  if the counter has a parent counter 
23042 \begin_inset Flex Code
23043 status collapsed
23044
23045 \begin_layout Plain Layout
23046 parent
23047 \end_layout
23048
23049 \end_inset
23050
23051  (defined via 
23052 \begin_inset Flex Code
23053 status collapsed
23054
23055 \begin_layout Plain Layout
23056 Within
23057 \end_layout
23058
23059 \end_inset
23060
23061 ),
23062  the string
23063 \begin_inset Newline newline
23064 \end_inset
23065
23066
23067 \begin_inset Flex Code
23068 status collapsed
23069
23070 \begin_layout Plain Layout
23071
23072 \backslash
23073 theparent.
23074 \backslash
23075 arabic{counter}
23076 \end_layout
23077
23078 \end_inset
23079
23080  is used;
23081  otherwise the string 
23082 \begin_inset Flex Code
23083 status collapsed
23084
23085 \begin_layout Plain Layout
23086
23087 \backslash
23088 arabic{counter}
23089 \end_layout
23090
23091 \end_inset
23092
23093  is used.
23094 \end_layout
23095
23096 \begin_layout Description
23097 \begin_inset Flex Code
23098 status collapsed
23099
23100 \begin_layout Plain Layout
23101 LabelStringAppendix
23102 \end_layout
23103
23104 \end_inset
23105
23106  [
23107 \begin_inset Flex Code
23108 status collapsed
23109
23110 \begin_layout Plain Layout
23111 string
23112 \end_layout
23113
23114 \end_inset
23115
23116
23117 \begin_inset Quotes eld
23118 \end_inset
23119
23120
23121 \begin_inset Quotes erd
23122 \end_inset
23123
23124 ] Same as 
23125 \begin_inset Flex Code
23126 status collapsed
23127
23128 \begin_layout Plain Layout
23129 LabelString
23130 \end_layout
23131
23132 \end_inset
23133
23134 ,
23135  but for use in the Appendix.
23136 \end_layout
23137
23138 \begin_layout Description
23139 \begin_inset Flex Code
23140 status open
23141
23142 \begin_layout Plain Layout
23143 LaTeXName
23144 \end_layout
23145
23146 \end_inset
23147
23148  [
23149 \begin_inset Flex Code
23150 status open
23151
23152 \begin_layout Plain Layout
23153 string
23154 \end_layout
23155
23156 \end_inset
23157
23158  = 
23159 \begin_inset Quotes eld
23160 \end_inset
23161
23162
23163 \begin_inset Quotes erd
23164 \end_inset
23165
23166 ] The counter name as used in \SpecialChar LaTeX
23167 .
23168  (e.g.,
23169  in \SpecialChar LyX
23170 ,
23171  there is a counter named `theorem',
23172  but it is output to \SpecialChar LaTeX
23173  as `thm'.)
23174 \end_layout
23175
23176 \begin_layout Description
23177 \begin_inset Flex Code
23178 status collapsed
23179
23180 \begin_layout Plain Layout
23181 PrettyFormat
23182 \end_layout
23183
23184 \end_inset
23185
23186  [
23187 \begin_inset Flex Code
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191 string
23192 \end_layout
23193
23194 \end_inset
23195
23196 =
23197 \begin_inset Quotes erd
23198 \end_inset
23199
23200
23201 \begin_inset Quotes erd
23202 \end_inset
23203
23204 ] A format for use with formatted references to this counter.
23205  For example,
23206  one might want to have references to section numbers appear as 
23207 \begin_inset Quotes eld
23208 \end_inset
23209
23210 Section 2.4
23211 \begin_inset Quotes erd
23212 \end_inset
23213
23214 .
23215  The string may contain 
23216 \begin_inset Quotes eld
23217 \end_inset
23218
23219 ##
23220 \begin_inset Quotes erd
23221 \end_inset
23222
23223  or a counter specification as in 
23224 \begin_inset Flex Code
23225 status open
23226
23227 \begin_layout Plain Layout
23228 LabelString
23229 \end_layout
23230
23231 \end_inset
23232
23233 .
23234  The former will be replaced by the counter number itself.
23235  So,
23236  for sections,
23237  it would be:
23238  Section ##,
23239  or perhaps:
23240  
23241 \begin_inset Flex Code
23242 status open
23243
23244 \begin_layout Plain Layout
23245
23246 \backslash
23247 S
23248 \backslash
23249 arabic{section}
23250 \end_layout
23251
23252 \end_inset
23253
23254  (which might render as §2.7).
23255 \end_layout
23256
23257 \begin_layout Description
23258 \begin_inset Flex Code
23259 status collapsed
23260
23261 \begin_layout Plain Layout
23262 RefFormat
23263 \end_layout
23264
23265 \end_inset
23266
23267  [
23268 \begin_inset Flex Code
23269 status collapsed
23270
23271 \begin_layout Plain Layout
23272 string
23273 \end_layout
23274
23275 \end_inset
23276
23277 ,
23278  
23279 \begin_inset Flex Code
23280 status collapsed
23281
23282 \begin_layout Plain Layout
23283 string
23284 \end_layout
23285
23286 \end_inset
23287
23288 ] For use with `formatted references',
23289  specifically when a single counter is used with multiple sorts of styles.
23290  For example,
23291  the 
23292 \begin_inset Flex Code
23293 status open
23294
23295 \begin_layout Plain Layout
23296 theorem
23297 \end_layout
23298
23299 \end_inset
23300
23301  counter is often used for all sorts of theorem-like environments:
23302  Theorem,
23303  Lemma,
23304  etc.
23305  The first argument gives a prefix used in the labels (e.g.,
23306  
23307 \begin_inset Quotes eld
23308 \end_inset
23309
23310 thm
23311 \begin_inset Quotes erd
23312 \end_inset
23313
23314  or 
23315 \begin_inset Quotes eld
23316 \end_inset
23317
23318 lem
23319 \begin_inset Quotes erd
23320 \end_inset
23321
23322 ),
23323  and the second a formatting string,
23324  as for 
23325 \begin_inset Flex Code
23326 status open
23327
23328 \begin_layout Plain Layout
23329 LabelString
23330 \end_layout
23331
23332 \end_inset
23333
23334  or 
23335 \begin_inset Flex Code
23336 status open
23337
23338 \begin_layout Plain Layout
23339 PrettyFormat
23340 \end_layout
23341
23342 \end_inset
23343
23344 .
23345  If this is not given,
23346  then 
23347 \begin_inset Flex Code
23348 status open
23349
23350 \begin_layout Plain Layout
23351 PrettyFormat
23352 \end_layout
23353
23354 \end_inset
23355
23356  is used.
23357 \end_layout
23358
23359 \begin_layout Description
23360 \begin_inset Flex Code
23361 status collapsed
23362
23363 \begin_layout Plain Layout
23364 Within
23365 \end_layout
23366
23367 \end_inset
23368
23369  [
23370 \begin_inset Flex Code
23371 status collapsed
23372
23373 \begin_layout Plain Layout
23374 string
23375 \end_layout
23376
23377 \end_inset
23378
23379 =
23380 \begin_inset Quotes erd
23381 \end_inset
23382
23383
23384 \begin_inset Quotes erd
23385 \end_inset
23386
23387 ] If this is set to the name of another counter,
23388  the present counter will be reset every time the other one is increased.
23389  For example,
23390  
23391 \begin_inset Flex Code
23392 status collapsed
23393
23394 \begin_layout Plain Layout
23395 subsection
23396 \end_layout
23397
23398 \end_inset
23399
23400  is numbered inside 
23401 \begin_inset Flex Code
23402 status collapsed
23403
23404 \begin_layout Plain Layout
23405 section
23406 \end_layout
23407
23408 \end_inset
23409
23410 .
23411 \end_layout
23412
23413 \begin_layout Subsection
23414 Font description
23415 \begin_inset CommandInset label
23416 LatexCommand label
23417 name "subsec:Font-description"
23418
23419 \end_inset
23420
23421
23422 \end_layout
23423
23424 \begin_layout Standard
23425 A font description looks like this:
23426 \end_layout
23427
23428 \begin_layout LyX-Code
23429 Font 
23430 \family roman
23431 \emph on
23432 or
23433 \family default
23434 \emph default
23435  LabelFont
23436 \emph on
23437  
23438 \family roman
23439 or
23440 \family default
23441 \emph default
23442  DefaultFont
23443 \end_layout
23444
23445 \begin_layout LyX-Code
23446  ...
23447 \end_layout
23448
23449 \begin_layout LyX-Code
23450 EndFont
23451 \end_layout
23452
23453 \begin_layout Standard
23454 The following commands are available:
23455 \end_layout
23456
23457 \begin_layout Description
23458 \begin_inset Flex Code
23459 status collapsed
23460
23461 \begin_layout Plain Layout
23462 Color
23463 \end_layout
23464
23465 \end_inset
23466
23467  [
23468 \begin_inset Flex Code
23469 status collapsed
23470
23471 \begin_layout Plain Layout
23472 string
23473 \end_layout
23474
23475 \end_inset
23476
23477 ] See appendix
23478 \begin_inset space ~
23479 \end_inset
23480
23481
23482 \begin_inset CommandInset ref
23483 LatexCommand ref
23484 reference "chap:Names-of-colors"
23485 plural "false"
23486 caps "false"
23487 noprefix "false"
23488 nolink "false"
23489
23490 \end_inset
23491
23492  for valid arguments.
23493 \end_layout
23494
23495 \begin_layout Description
23496 \begin_inset Flex Code
23497 status collapsed
23498
23499 \begin_layout Plain Layout
23500 Family
23501 \end_layout
23502
23503 \end_inset
23504
23505  [
23506 \begin_inset Flex Code
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510
23511 \emph on
23512 Roman
23513 \end_layout
23514
23515 \end_inset
23516
23517 ,
23518  
23519 \begin_inset Flex Code
23520 status collapsed
23521
23522 \begin_layout Plain Layout
23523 Sans
23524 \end_layout
23525
23526 \end_inset
23527
23528 ,
23529  
23530 \begin_inset Flex Code
23531 status collapsed
23532
23533 \begin_layout Plain Layout
23534 Typewriter
23535 \end_layout
23536
23537 \end_inset
23538
23539 ]
23540 \end_layout
23541
23542 \begin_layout Description
23543 \begin_inset Flex Code
23544 status collapsed
23545
23546 \begin_layout Plain Layout
23547 Misc
23548 \end_layout
23549
23550 \end_inset
23551
23552  [
23553 \begin_inset Flex Code
23554 status collapsed
23555
23556 \begin_layout Plain Layout
23557 string
23558 \end_layout
23559
23560 \end_inset
23561
23562 ] Valid arguments are:
23563  
23564 \begin_inset Flex Code
23565 status collapsed
23566
23567 \begin_layout Plain Layout
23568 emph
23569 \end_layout
23570
23571 \end_inset
23572
23573 ,
23574  
23575 \begin_inset Flex Code
23576 status collapsed
23577
23578 \begin_layout Plain Layout
23579 noun
23580 \end_layout
23581
23582 \end_inset
23583
23584 ,
23585  
23586 \begin_inset Flex Code
23587 status collapsed
23588
23589 \begin_layout Plain Layout
23590 strikeout
23591 \end_layout
23592
23593 \end_inset
23594
23595 ,
23596  
23597 \begin_inset Flex Code
23598 status collapsed
23599
23600 \begin_layout Plain Layout
23601 underbar
23602 \end_layout
23603
23604 \end_inset
23605
23606 ,
23607  
23608 \begin_inset Flex Code
23609 status collapsed
23610
23611 \begin_layout Plain Layout
23612 uuline
23613 \end_layout
23614
23615 \end_inset
23616
23617 ,
23618  
23619 \begin_inset Flex Code
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623 uwave
23624 \end_layout
23625
23626 \end_inset
23627
23628 ,
23629  
23630 \begin_inset Flex Code
23631 status collapsed
23632
23633 \begin_layout Plain Layout
23634 no_emph
23635 \end_layout
23636
23637 \end_inset
23638
23639 ,
23640  
23641 \begin_inset Flex Code
23642 status collapsed
23643
23644 \begin_layout Plain Layout
23645 no_noun
23646 \end_layout
23647
23648 \end_inset
23649
23650 ,
23651  
23652 \begin_inset Flex Code
23653 status collapsed
23654
23655 \begin_layout Plain Layout
23656 no_strikeout
23657 \end_layout
23658
23659 \end_inset
23660
23661 ,
23662  
23663 \begin_inset Flex Code
23664 status collapsed
23665
23666 \begin_layout Plain Layout
23667 no_bar
23668 \end_layout
23669
23670 \end_inset
23671
23672 ,
23673  
23674 \begin_inset Flex Code
23675 status collapsed
23676
23677 \begin_layout Plain Layout
23678 no_uuline
23679 \end_layout
23680
23681 \end_inset
23682
23683  and 
23684 \begin_inset Flex Code
23685 status collapsed
23686
23687 \begin_layout Plain Layout
23688 no_uwave
23689 \end_layout
23690
23691 \end_inset
23692
23693 .
23694  Each of these turns on or off the corresponding attribute.
23695  For example,
23696  
23697 \begin_inset Flex Code
23698 status collapsed
23699
23700 \begin_layout Plain Layout
23701 emph
23702 \end_layout
23703
23704 \end_inset
23705
23706  turns on emphasis,
23707  and 
23708 \begin_inset Flex Code
23709 status collapsed
23710
23711 \begin_layout Plain Layout
23712 no_emph
23713 \end_layout
23714
23715 \end_inset
23716
23717  turns it off.
23718  
23719 \begin_inset Newline newline
23720 \end_inset
23721
23722 If the latter seems puzzling,
23723  remember that the font settings for the present context are generally inherited from the surrounding context.
23724  So 
23725 \begin_inset Flex Code
23726 status collapsed
23727
23728 \begin_layout Plain Layout
23729 no_emph
23730 \end_layout
23731
23732 \end_inset
23733
23734  would turn off the emphasis that was anyway in effect,
23735  say,
23736  in a theorem environment.
23737 \end_layout
23738
23739 \begin_layout Description
23740 \begin_inset Flex Code
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744 Series
23745 \end_layout
23746
23747 \end_inset
23748
23749  [
23750 \begin_inset Flex Code
23751 status collapsed
23752
23753 \begin_layout Plain Layout
23754
23755 \emph on
23756 Medium
23757 \end_layout
23758
23759 \end_inset
23760
23761 ,
23762  
23763 \begin_inset Flex Code
23764 status collapsed
23765
23766 \begin_layout Plain Layout
23767 Bold
23768 \end_layout
23769
23770 \end_inset
23771
23772
23773 \end_layout
23774
23775 \begin_layout Description
23776 \begin_inset Flex Code
23777 status collapsed
23778
23779 \begin_layout Plain Layout
23780 Shape
23781 \end_layout
23782
23783 \end_inset
23784
23785  [
23786 \begin_inset Flex Code
23787 status collapsed
23788
23789 \begin_layout Plain Layout
23790
23791 \emph on
23792 Up
23793 \end_layout
23794
23795 \end_inset
23796
23797 ,
23798  
23799 \begin_inset Flex Code
23800 status collapsed
23801
23802 \begin_layout Plain Layout
23803 Italic
23804 \end_layout
23805
23806 \end_inset
23807
23808 ,
23809  
23810 \begin_inset Flex Code
23811 status collapsed
23812
23813 \begin_layout Plain Layout
23814 SmallCaps
23815 \end_layout
23816
23817 \end_inset
23818
23819 ,
23820  
23821 \begin_inset Flex Code
23822 status collapsed
23823
23824 \begin_layout Plain Layout
23825 Slanted
23826 \end_layout
23827
23828 \end_inset
23829
23830
23831 \end_layout
23832
23833 \begin_layout Description
23834 \begin_inset Flex Code
23835 status collapsed
23836
23837 \begin_layout Plain Layout
23838 Size
23839 \end_layout
23840
23841 \end_inset
23842
23843  [
23844 \begin_inset Flex Code
23845 status collapsed
23846
23847 \begin_layout Plain Layout
23848 tiny
23849 \end_layout
23850
23851 \end_inset
23852
23853 ,
23854  
23855 \begin_inset Flex Code
23856 status collapsed
23857
23858 \begin_layout Plain Layout
23859 small
23860 \end_layout
23861
23862 \end_inset
23863
23864 ,
23865  
23866 \begin_inset Flex Code
23867 status collapsed
23868
23869 \begin_layout Plain Layout
23870
23871 \emph on
23872 normal
23873 \end_layout
23874
23875 \end_inset
23876
23877 ,
23878  
23879 \begin_inset Flex Code
23880 status collapsed
23881
23882 \begin_layout Plain Layout
23883 large
23884 \end_layout
23885
23886 \end_inset
23887
23888 ,
23889  
23890 \begin_inset Flex Code
23891 status collapsed
23892
23893 \begin_layout Plain Layout
23894 larger
23895 \end_layout
23896
23897 \end_inset
23898
23899 ,
23900  
23901 \begin_inset Flex Code
23902 status collapsed
23903
23904 \begin_layout Plain Layout
23905 largest
23906 \end_layout
23907
23908 \end_inset
23909
23910 ,
23911  
23912 \begin_inset Flex Code
23913 status collapsed
23914
23915 \begin_layout Plain Layout
23916 huge
23917 \end_layout
23918
23919 \end_inset
23920
23921 ,
23922  
23923 \begin_inset Flex Code
23924 status collapsed
23925
23926 \begin_layout Plain Layout
23927 giant
23928 \end_layout
23929
23930 \end_inset
23931
23932 ]
23933 \end_layout
23934
23935 \begin_layout Subsection
23936 \begin_inset CommandInset label
23937 LatexCommand label
23938 name "subsec:Citation-engine-description"
23939
23940 \end_inset
23941
23942 Cite engine description
23943 \end_layout
23944
23945 \begin_layout Standard
23946 The 
23947 \begin_inset Flex Code
23948 status collapsed
23949
23950 \begin_layout Plain Layout
23951 CiteEngine
23952 \end_layout
23953
23954 \end_inset
23955
23956  blocks,
23957  as used mainly in cite engine files (see 
23958 \begin_inset CommandInset ref
23959 LatexCommand ref
23960 reference "subsec:Cite-Engine-Files"
23961 plural "false"
23962 caps "false"
23963 noprefix "false"
23964 nolink "false"
23965
23966 \end_inset
23967
23968 ),
23969  define the citation commands provided by a specific 
23970 \begin_inset Quotes eld
23971 \end_inset
23972
23973 cite engine
23974 \begin_inset Quotes erd
23975 \end_inset
23976
23977 .
23978  A cite engine,
23979  in \SpecialChar LyX
23980  terms,
23981  is way specific way to format citations,
23982  using numbers,
23983  author names and/or years.
23984  Currently,
23985  \SpecialChar LyX
23986  supports three such engine types,
23987  namely:
23988 \end_layout
23989
23990 \begin_layout Enumerate
23991 \begin_inset Flex Code
23992 status collapsed
23993
23994 \begin_layout Plain Layout
23995 default
23996 \end_layout
23997
23998 \end_inset
23999
24000 :
24001  the default Bib\SpecialChar TeX
24002  way to format citations,
24003  a simple numeric style (e.
24004 \begin_inset space \thinspace{}
24005 \end_inset
24006
24007 g.,
24008  
24009 \begin_inset Quotes eld
24010 \end_inset
24011
24012 [1]
24013 \begin_inset Quotes erd
24014 \end_inset
24015
24016 )
24017 \end_layout
24018
24019 \begin_layout Enumerate
24020 \begin_inset Flex Code
24021 status collapsed
24022
24023 \begin_layout Plain Layout
24024 authoryear
24025 \end_layout
24026
24027 \end_inset
24028
24029 :
24030  Harvard-styled citations using author names and publication year (e.
24031 \begin_inset space \thinspace{}
24032 \end_inset
24033
24034 g.,
24035  
24036 \begin_inset Quotes eld
24037 \end_inset
24038
24039 Smith and Miller (2017b)
24040 \begin_inset Quotes erd
24041 \end_inset
24042
24043 )
24044 \end_layout
24045
24046 \begin_layout Enumerate
24047 \begin_inset Flex Code
24048 status collapsed
24049
24050 \begin_layout Plain Layout
24051 numerical
24052 \end_layout
24053
24054 \end_inset
24055
24056 :
24057  extended numerical citations that also allow for author or title next to the number (e.
24058 \begin_inset space \thinspace{}
24059 \end_inset
24060
24061 g.,
24062  
24063 \begin_inset Quotes eld
24064 \end_inset
24065
24066 Smith and Miller [1]
24067 \begin_inset Quotes erd
24068 \end_inset
24069
24070 )
24071 \end_layout
24072
24073 \begin_layout Standard
24074 \begin_inset Flex Code
24075 status collapsed
24076
24077 \begin_layout Plain Layout
24078 CiteEngine
24079 \end_layout
24080
24081 \end_inset
24082
24083  blocks look like this:
24084 \end_layout
24085
24086 \begin_layout LyX-Code
24087 CiteEngine default
24088 \end_layout
24089
24090 \begin_layout LyX-Code
24091  cite
24092 \end_layout
24093
24094 \begin_layout LyX-Code
24095  Citep*[][]
24096 \end_layout
24097
24098 \begin_layout LyX-Code
24099  citeyearpar[][]=parencite*
24100 \end_layout
24101
24102 \begin_layout LyX-Code
24103  ...
24104 \end_layout
24105
24106 \begin_layout LyX-Code
24107 End
24108 \end_layout
24109
24110 \begin_layout Standard
24111 The tag following 
24112 \begin_inset Flex Code
24113 status collapsed
24114
24115 \begin_layout Plain Layout
24116 CiteEngine
24117 \end_layout
24118
24119 \end_inset
24120
24121  denotes the engine.
24122  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
24123  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
24124  command and the \SpecialChar LaTeX
24125  output or more complex in order to differentiate things.
24126  The full syntax is:
24127 \end_layout
24128
24129 \begin_layout LyX-Code
24130 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
24131 \end_layout
24132
24133 \begin_layout Itemize
24134 \begin_inset Flex Code
24135 status collapsed
24136
24137 \begin_layout Plain Layout
24138 LyXName
24139 \end_layout
24140
24141 \end_inset
24142
24143 :
24144  The name as used in the 
24145 \begin_inset Flex Code
24146 status collapsed
24147
24148 \begin_layout Plain Layout
24149 *.lyx
24150 \end_layout
24151
24152 \end_inset
24153
24154  file.
24155 \end_layout
24156
24157 \begin_deeper
24158 \begin_layout Standard
24159 For portability reasons,
24160  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
24161  and thus we need to differentiate a 
24162 \begin_inset Flex Code
24163 status collapsed
24164
24165 \begin_layout Plain Layout
24166 latexcmd
24167 \end_layout
24168
24169 \end_inset
24170
24171  sometimes,
24172  if the \SpecialChar LaTeX
24173  command names differ).
24174 \end_layout
24175
24176 \end_deeper
24177 \begin_layout Itemize
24178 \begin_inset Flex Code
24179 status collapsed
24180
24181 \begin_layout Plain Layout
24182 alias
24183 \end_layout
24184
24185 \end_inset
24186
24187 :
24188  a (comma-separated) list of commands that fall back to the given 
24189 \begin_inset Flex Code
24190 status collapsed
24191
24192 \begin_layout Plain Layout
24193 LyXName
24194 \end_layout
24195
24196 \end_inset
24197
24198  in the current engine.
24199  This eases the switch of citation packages and engines.
24200  The 
24201 \begin_inset Flex Code
24202 status collapsed
24203
24204 \begin_layout Plain Layout
24205 alias
24206 \end_layout
24207
24208 \end_inset
24209
24210  can be compared to 
24211 \begin_inset Flex Code
24212 status collapsed
24213
24214 \begin_layout Plain Layout
24215 ObsoletedBy
24216 \end_layout
24217
24218 \end_inset
24219
24220  in layout definitions.
24221 \end_layout
24222
24223 \begin_layout Itemize
24224 \begin_inset Flex Code
24225 status collapsed
24226
24227 \begin_layout Plain Layout
24228 latexcmd
24229 \end_layout
24230
24231 \end_inset
24232
24233 :
24234  The actual \SpecialChar LaTeX
24235  command that is output.
24236  
24237 \end_layout
24238
24239 \begin_layout Standard
24240 \begin_inset Flex Code
24241 status collapsed
24242
24243 \begin_layout Plain Layout
24244 Alias
24245 \end_layout
24246
24247 \end_inset
24248
24249  and 
24250 \begin_inset Flex Code
24251 status collapsed
24252
24253 \begin_layout Plain Layout
24254 latexcmd
24255 \end_layout
24256
24257 \end_inset
24258
24259  are optional.
24260  If no 
24261 \begin_inset Flex Code
24262 status collapsed
24263
24264 \begin_layout Plain Layout
24265 latexcmd
24266 \end_layout
24267
24268 \end_inset
24269
24270  is given,
24271  the 
24272 \begin_inset Flex Code
24273 status collapsed
24274
24275 \begin_layout Plain Layout
24276 LyXName
24277 \end_layout
24278
24279 \end_inset
24280
24281  will be output to \SpecialChar LaTeX
24282 .
24283 \end_layout
24284
24285 \begin_layout Standard
24286 Note further:
24287 \end_layout
24288
24289 \begin_layout Itemize
24290 Capitalization indicates that the command also has a capitalized form (
24291 \begin_inset Flex Code
24292 status collapsed
24293
24294 \begin_layout Plain Layout
24295
24296 \backslash
24297 Latexcmd
24298 \end_layout
24299
24300 \end_inset
24301
24302  vs.
24303  
24304 \begin_inset Flex Code
24305 status collapsed
24306
24307 \begin_layout Plain Layout
24308
24309 \backslash
24310 latexcmd
24311 \end_layout
24312
24313 \end_inset
24314
24315 ).
24316  These usually enforce up-casing of name prefixes (
24317 \emph on
24318 von Goethe
24319 \emph default
24320  
24321 \begin_inset Formula $\Rightarrow$
24322 \end_inset
24323
24324  
24325 \emph on
24326 Von Goethe
24327 \emph default
24328 ).
24329 \end_layout
24330
24331 \begin_layout Itemize
24332 Brackets 
24333 \begin_inset Flex Code
24334 status collapsed
24335
24336 \begin_layout Plain Layout
24337 []
24338 \end_layout
24339
24340 \end_inset
24341
24342  indicate the number of optional arguments (there can be 0–2).
24343 \end_layout
24344
24345 \begin_layout Itemize
24346 A star 
24347 \begin_inset Flex Code
24348 status collapsed
24349
24350 \begin_layout Plain Layout
24351 *
24352 \end_layout
24353
24354 \end_inset
24355
24356  indicates there is a starred version of the command (
24357 \begin_inset Flex Code
24358 status collapsed
24359
24360 \begin_layout Plain Layout
24361
24362 \backslash
24363 latexcmd*
24364 \end_layout
24365
24366 \end_inset
24367
24368  vs.
24369  
24370 \begin_inset Flex Code
24371 status collapsed
24372
24373 \begin_layout Plain Layout
24374
24375 \backslash
24376 latexcmd
24377 \end_layout
24378
24379 \end_inset
24380
24381 ).
24382  
24383 \end_layout
24384
24385 \begin_deeper
24386 \begin_layout Standard
24387 By default,
24388  the starred version means:
24389  Output all authors even if it should be shortened with 
24390 \begin_inset Quotes eld
24391 \end_inset
24392
24393 et al.
24394 \begin_inset Quotes erd
24395 \end_inset
24396
24397  due to the 
24398 \begin_inset Flex Code
24399 status collapsed
24400
24401 \begin_layout Plain Layout
24402 MaxCiteNames
24403 \end_layout
24404
24405 \end_inset
24406
24407  threshold.
24408 \end_layout
24409
24410 \begin_layout Standard
24411 If the star has a different meaning for a given command,
24412  it can be specified in angle brackets:
24413  
24414 \begin_inset Flex Code
24415 status collapsed
24416
24417 \begin_layout Plain Layout
24418 <!_stardesc!_stardesctooltip>
24419 \end_layout
24420
24421 \end_inset
24422
24423 .
24424  Maximal two translatable macro keywords,
24425  marked by the prefix 
24426 \begin_inset Flex Code
24427 status collapsed
24428
24429 \begin_layout Plain Layout
24430 !_
24431 \end_layout
24432
24433 \end_inset
24434
24435 ,
24436  can be given.
24437  The first points to the string that replaces the 
24438 \begin_inset Quotes eld
24439 \end_inset
24440
24441 Full aut&hor list
24442 \begin_inset Quotes erd
24443 \end_inset
24444
24445  checkbox label in the citation dialog,
24446  the second one to an optional tool tip for this checkbox.
24447  
24448 \end_layout
24449
24450 \begin_layout Standard
24451 Note that these two macros have to be defined in a 
24452 \begin_inset Flex Code
24453 status collapsed
24454
24455 \begin_layout Plain Layout
24456 CiteFormat
24457 \end_layout
24458
24459 \end_inset
24460
24461  (see next section),
24462  dropping the 
24463 \begin_inset Flex Code
24464 status collapsed
24465
24466 \begin_layout Plain Layout
24467 !
24468 \end_layout
24469
24470 \end_inset
24471
24472  from the prefix,
24473  like this:
24474  
24475 \end_layout
24476
24477 \begin_layout LyX-Code
24478 _stardesc Sta&rred command label
24479 \end_layout
24480
24481 \begin_layout LyX-Code
24482 _stardesctooltip Tooltip for the starred command checkbox.
24483 \end_layout
24484
24485 \end_deeper
24486 \begin_layout Itemize
24487 A dollar sign 
24488 \begin_inset Flex Code
24489 status collapsed
24490
24491 \begin_layout Plain Layout
24492 $
24493 \end_layout
24494
24495 \end_inset
24496
24497  indicates that this command features 
24498 \begin_inset Quotes eld
24499 \end_inset
24500
24501 qualified citation lists
24502 \begin_inset Quotes erd
24503 \end_inset
24504
24505 .
24506  This is a 
24507 \family sans
24508 Biblatex
24509 \family default
24510 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
24511  Please refer to the 
24512 \family sans
24513 Biblatex
24514 \family default
24515  manual for details.
24516 \end_layout
24517
24518 \begin_layout Standard
24519 If you want to add a cite command to a cite engine (e.
24520 \begin_inset space \thinspace{}
24521 \end_inset
24522
24523 g.,
24524  add a specific command provided by a class),
24525  you can use 
24526 \begin_inset Flex Code
24527 status collapsed
24528
24529 \begin_layout Plain Layout
24530 AddToCiteEngine <engine type> \SpecialChar ldots
24531  End
24532 \end_layout
24533
24534 \end_inset
24535
24536 .
24537  Note that only cite commands that do not exist yet are added.
24538 \end_layout
24539
24540 \begin_layout Subsection
24541 \begin_inset CommandInset label
24542 LatexCommand label
24543 name "subsec:Citation-format-description"
24544
24545 \end_inset
24546
24547 Cite format description
24548 \end_layout
24549
24550 \begin_layout Standard
24551 The 
24552 \begin_inset Flex Code
24553 status collapsed
24554
24555 \begin_layout Plain Layout
24556 CiteFormat
24557 \end_layout
24558
24559 \end_inset
24560
24561  blocks are used to describe how bibliographic information should be displayed,
24562  both within \SpecialChar LyX
24563  itself (in the citation dialog and in tooltips,
24564  for example) and in XHTML output.
24565  Such a block might look like this:
24566 \end_layout
24567
24568 \begin_layout LyX-Code
24569 CiteFormat
24570 \end_layout
24571
24572 \begin_layout LyX-Code
24573  article ...
24574 \end_layout
24575
24576 \begin_layout LyX-Code
24577  book ...
24578 \end_layout
24579
24580 \begin_layout LyX-Code
24581 End
24582 \end_layout
24583
24584 \begin_layout Standard
24585 or
24586 \end_layout
24587
24588 \begin_layout LyX-Code
24589 CiteFormat
24590 \end_layout
24591
24592 \begin_layout LyX-Code
24593  cite ...
24594 \end_layout
24595
24596 \begin_layout LyX-Code
24597  citet*[][] ...
24598 \end_layout
24599
24600 \begin_layout LyX-Code
24601 End
24602 \end_layout
24603
24604 \begin_layout Standard
24605 In the first case,
24606  the individual lines define how the bibliographic information associated with an article or book,
24607  respectively,
24608  is to be displayed,
24609  and such a definition can be given for any 
24610 \begin_inset Quotes els
24611 \end_inset
24612
24613 entry type
24614 \begin_inset Quotes ers
24615 \end_inset
24616
24617  that might be present in a Bib\SpecialChar TeX
24618  file.
24619  \SpecialChar LyX
24620  defines a default format in the source code that will be used if no specific definition has been given.
24621  \SpecialChar LyX
24622  predefines several formats in the file 
24623 \begin_inset Flex Code
24624 status collapsed
24625
24626 \begin_layout Plain Layout
24627 stdciteformats.inc
24628 \end_layout
24629
24630 \end_inset
24631
24632 ,
24633  which is included in most of \SpecialChar LyX
24634 's document classes.
24635 \end_layout
24636
24637 \begin_layout Standard
24638 In the second case,
24639  the lines define how a specific citation command (in the example 
24640 \begin_inset Flex Code
24641 status collapsed
24642
24643 \begin_layout Plain Layout
24644
24645 \backslash
24646 cite
24647 \end_layout
24648
24649 \end_inset
24650
24651 ,
24652  
24653 \begin_inset Flex Code
24654 status collapsed
24655
24656 \begin_layout Plain Layout
24657
24658 \backslash
24659 citet
24660 \end_layout
24661
24662 \end_inset
24663
24664 ) is to be displayed on the citation inset label,
24665  in the citation dialog,
24666  menu or XHTML output.
24667  \SpecialChar LyX
24668  defines such formats for the citation style variants it supports via 
24669 \family sans
24670 Document\SpecialChar menuseparator
24671 Setting\SpecialChar menuseparator
24672 Bibliography\SpecialChar ldots
24673
24674 \family default
24675  in specific 
24676 \begin_inset Flex Code
24677 status collapsed
24678
24679 \begin_layout Plain Layout
24680 *.citeengine
24681 \end_layout
24682
24683 \end_inset
24684
24685  files that are shipped with \SpecialChar LyX
24686  (see 
24687 \begin_inset CommandInset ref
24688 LatexCommand ref
24689 reference "subsec:Cite-Engine-Files"
24690 plural "false"
24691 caps "false"
24692 noprefix "false"
24693 nolink "false"
24694
24695 \end_inset
24696
24697 ).
24698 \end_layout
24699
24700 \begin_layout Standard
24701 The definitions use a simple language that allows Bib\SpecialChar TeX
24702  keys to be replaced with their values.
24703  Keys should be enclosed in 
24704 \begin_inset Flex Code
24705 status collapsed
24706
24707 \begin_layout Plain Layout
24708 %
24709 \end_layout
24710
24711 \end_inset
24712
24713  signs,
24714  e.g.:
24715  
24716 \begin_inset Flex Code
24717 status collapsed
24718
24719 \begin_layout Plain Layout
24720 %author%
24721 \end_layout
24722
24723 \end_inset
24724
24725 .
24726  So a simple definition might look like this:
24727 \end_layout
24728
24729 \begin_layout LyX-Code
24730 misc %author%,
24731  
24732 \begin_inset Quotes eld
24733 \end_inset
24734
24735 %title%
24736 \begin_inset Quotes erd
24737 \end_inset
24738
24739 .
24740 \end_layout
24741
24742 \begin_layout Standard
24743 This would print the author,
24744  followed by a comma,
24745  followed by the title,
24746  in quotes,
24747  followed by a period.
24748 \end_layout
24749
24750 \begin_layout Standard
24751 Of course,
24752  sometimes you may want to print a key only if it exists.
24753  This can be done by using a conditional construction,
24754  such as:
24755  
24756 \begin_inset Flex Code
24757 status collapsed
24758
24759 \begin_layout Plain Layout
24760 {%volume%[[vol.
24761 \begin_inset space ~
24762 \end_inset
24763
24764 %volume%]]}
24765 \end_layout
24766
24767 \end_inset
24768
24769 .
24770  This says:
24771  If the 
24772 \begin_inset Flex Code
24773 status collapsed
24774
24775 \begin_layout Plain Layout
24776 volume
24777 \end_layout
24778
24779 \end_inset
24780
24781  key exists,
24782  then print 
24783 \begin_inset Quotes eld
24784 \end_inset
24785
24786 vol.
24787 \begin_inset space ~
24788 \end_inset
24789
24790
24791 \begin_inset Quotes erd
24792 \end_inset
24793
24794  followed by the volume key.
24795  It is also possible to have an else clause in the conditional,
24796  such as:
24797 \begin_inset Newline newline
24798 \end_inset
24799
24800
24801 \begin_inset Flex Code
24802 status collapsed
24803
24804 \begin_layout Plain Layout
24805 {%author%[[%author%]][[%editor%,
24806  ed.]]}
24807 \end_layout
24808
24809 \end_inset
24810
24811 .
24812 \begin_inset Newline newline
24813 \end_inset
24814
24815 Here,
24816  the 
24817 \begin_inset Flex Code
24818 status collapsed
24819
24820 \begin_layout Plain Layout
24821 author
24822 \end_layout
24823
24824 \end_inset
24825
24826  key is printed if it exists;
24827  otherwise,
24828  the editor key is printed,
24829  followed by 
24830 \begin_inset Quotes eld
24831 \end_inset
24832
24833 ,
24834 \begin_inset space ~
24835 \end_inset
24836
24837 ed.
24838 \begin_inset Quotes erd
24839 \end_inset
24840
24841  Note that the key is again enclosed in 
24842 \begin_inset Flex Code
24843 status collapsed
24844
24845 \begin_layout Plain Layout
24846 %
24847 \end_layout
24848
24849 \end_inset
24850
24851  signs;
24852  the entire conditional is enclosed in braces;
24853  and the if and else clauses are enclosed in double brackets,
24854  
24855 \begin_inset Quotes eld
24856 \end_inset
24857
24858
24859 \begin_inset Flex Code
24860 status collapsed
24861
24862 \begin_layout Plain Layout
24863 [[
24864 \end_layout
24865
24866 \end_inset
24867
24868
24869 \begin_inset Quotes eld
24870 \end_inset
24871
24872  and 
24873 \begin_inset Quotes eld
24874 \end_inset
24875
24876
24877 \begin_inset Flex Code
24878 status collapsed
24879
24880 \begin_layout Plain Layout
24881 ]]
24882 \end_layout
24883
24884 \end_inset
24885
24886
24887 \begin_inset Quotes erd
24888 \end_inset
24889
24890 .
24891  There must be no space between any of these.
24892 \end_layout
24893
24894 \begin_layout Standard
24895 Next to the entry keys,
24896  there are some special keys that can be used for these conditionals:
24897 \end_layout
24898
24899 \begin_layout Itemize
24900 \begin_inset Flex Code
24901 status collapsed
24902
24903 \begin_layout Plain Layout
24904 {%dialog%[[true]][[false]]}
24905 \end_layout
24906
24907 \end_inset
24908
24909 :
24910  process the 
24911 \begin_inset Quotes eld
24912 \end_inset
24913
24914 true
24915 \begin_inset Quotes erd
24916 \end_inset
24917
24918  part for dialogs and menus,
24919  the 
24920 \begin_inset Quotes eld
24921 \end_inset
24922
24923 false
24924 \begin_inset Quotes erd
24925 \end_inset
24926
24927  part for other contexts (workarea,
24928  export)
24929 \end_layout
24930
24931 \begin_layout Itemize
24932 \begin_inset Flex Code
24933 status collapsed
24934
24935 \begin_layout Plain Layout
24936 {%export%[[true]][[false]]}
24937 \end_layout
24938
24939 \end_inset
24940
24941 :
24942  process the 
24943 \begin_inset Quotes eld
24944 \end_inset
24945
24946 true
24947 \begin_inset Quotes erd
24948 \end_inset
24949
24950  part for export and menus,
24951  the 
24952 \begin_inset Quotes eld
24953 \end_inset
24954
24955 false
24956 \begin_inset Quotes erd
24957 \end_inset
24958
24959  part for other contexts (workarea,
24960  dialog)
24961 \end_layout
24962
24963 \begin_layout Itemize
24964 \begin_inset Flex Code
24965 status collapsed
24966
24967 \begin_layout Plain Layout
24968 {%next%[[true]]}
24969 \end_layout
24970
24971 \end_inset
24972
24973 :
24974  process the 
24975 \begin_inset Quotes eld
24976 \end_inset
24977
24978 true
24979 \begin_inset Quotes erd
24980 \end_inset
24981
24982  part if another item follows (e.
24983 \begin_inset space \thinspace{}
24984 \end_inset
24985
24986 g.,
24987  in a citation with multiple keys)
24988 \end_layout
24989
24990 \begin_layout Itemize
24991 \begin_inset Flex Code
24992 status collapsed
24993
24994 \begin_layout Plain Layout
24995 {%second%[[true]][[false]]}
24996 \end_layout
24997
24998 \end_inset
24999
25000 :
25001  process the 
25002 \begin_inset Quotes eld
25003 \end_inset
25004
25005 true
25006 \begin_inset Quotes erd
25007 \end_inset
25008
25009  if this is the second of multiple items,
25010  else the 
25011 \begin_inset Quotes eld
25012 \end_inset
25013
25014 false
25015 \begin_inset Quotes erd
25016 \end_inset
25017
25018  part
25019 \end_layout
25020
25021 \begin_layout Itemize
25022 \begin_inset Flex Code
25023 status collapsed
25024
25025 \begin_layout Plain Layout
25026 {%ifstar%[[true]][[false]]}
25027 \end_layout
25028
25029 \end_inset
25030
25031 :
25032  process the 
25033 \begin_inset Quotes eld
25034 \end_inset
25035
25036 true
25037 \begin_inset Quotes erd
25038 \end_inset
25039
25040  part for starred citation commands (such as 
25041 \begin_inset Flex Code
25042 status collapsed
25043
25044 \begin_layout Plain Layout
25045
25046 \backslash
25047 cite*
25048 \end_layout
25049
25050 \end_inset
25051
25052 ),
25053  the false part for unstarred
25054 \end_layout
25055
25056 \begin_layout Itemize
25057 \begin_inset Flex Code
25058 status collapsed
25059
25060 \begin_layout Plain Layout
25061 {%ifentrytype:<type>%[[true]][[false]]}
25062 \end_layout
25063
25064 \end_inset
25065
25066 :
25067  process the 
25068 \begin_inset Quotes eld
25069 \end_inset
25070
25071 true
25072 \begin_inset Quotes erd
25073 \end_inset
25074
25075  if the current entry type matches 
25076 \begin_inset Flex Code
25077 status collapsed
25078
25079 \begin_layout Plain Layout
25080 <type>
25081 \end_layout
25082
25083 \end_inset
25084
25085 ,
25086  else the false part (e.g.,
25087  in a citation definition:
25088  
25089 \begin_inset Flex Code
25090 status collapsed
25091
25092 \begin_layout Plain Layout
25093 {%ifentrytype:book%[[this is a book]][[this is no book]]}
25094 \end_layout
25095
25096 \end_inset
25097
25098 )
25099 \end_layout
25100
25101 \begin_layout Itemize
25102 \begin_inset Flex Code
25103 status collapsed
25104
25105 \begin_layout Plain Layout
25106 {%ifmultiple:<authortype>%[[true]][[false]]}
25107 \end_layout
25108
25109 \end_inset
25110
25111 :
25112  process the 
25113 \begin_inset Quotes eld
25114 \end_inset
25115
25116 true
25117 \begin_inset Quotes erd
25118 \end_inset
25119
25120  if the current author type (author,
25121  editor etc.) has multiple authors,
25122  else the false part (e.g.,
25123  in a bibliography definition:
25124  
25125 \begin_inset Flex Code
25126 status collapsed
25127
25128 \begin_layout Plain Layout
25129 {%ifmultiple:editor%[[eds.]][[ed.]]}
25130 \end_layout
25131
25132 \end_inset
25133
25134 )
25135 \end_layout
25136
25137 \begin_layout Itemize
25138 \begin_inset Flex Code
25139 status collapsed
25140
25141 \begin_layout Plain Layout
25142 {%ifqualified%[[true]][[false]]}
25143 \end_layout
25144
25145 \end_inset
25146
25147 :
25148  process the 
25149 \begin_inset Quotes eld
25150 \end_inset
25151
25152 true
25153 \begin_inset Quotes erd
25154 \end_inset
25155
25156  part if the current citation is a qualified citation list (a specific 
25157 \family sans
25158 Biblatex
25159 \family default
25160  format for multi-reference citations),
25161  the false part if this is not the case.
25162 \end_layout
25163
25164 \begin_layout Standard
25165 We said that 
25166 \begin_inset Flex Code
25167 status collapsed
25168
25169 \begin_layout Plain Layout
25170 %author%
25171 \end_layout
25172
25173 \end_inset
25174
25175  prints the author key as it is recorded in the bibliography file.
25176  This might not be what you want,
25177  since it will result in a string such as 
25178 \begin_inset Quotes eld
25179 \end_inset
25180
25181 Miller,
25182  Peter and Smith,
25183  Mary and White,
25184  Jane
25185 \begin_inset Quotes erd
25186 \end_inset
25187
25188  (since 
25189 \begin_inset Quotes eld
25190 \end_inset
25191
25192 and
25193 \begin_inset Quotes erd
25194 \end_inset
25195
25196  is used by Bib\SpecialChar TeX
25197  to delimit authors).
25198  \SpecialChar LyX
25199  therefore provides some methods to get properly formatted name lists (which will also get translated).
25200  The following keys are provided:
25201 \end_layout
25202
25203 \begin_layout Enumerate
25204 For name lists with pre- and surname,
25205  suitable for the main authors/editors of a bibliography item.
25206  The 
25207 \begin_inset Flex Code
25208 status collapsed
25209
25210 \begin_layout Plain Layout
25211 <nametype>
25212 \end_layout
25213
25214 \end_inset
25215
25216  part denotes the kind of list that is requested (e.g.
25217  
25218 \begin_inset Flex Code
25219 status collapsed
25220
25221 \begin_layout Plain Layout
25222 <nametype:author>
25223 \end_layout
25224
25225 \end_inset
25226
25227 ):
25228 \end_layout
25229
25230 \begin_deeper
25231 \begin_layout Itemize
25232 \begin_inset Flex Code
25233 status collapsed
25234
25235 \begin_layout Plain Layout
25236 %abbrvnames:<nametype>%
25237 \end_layout
25238
25239 \end_inset
25240
25241 :
25242  Provides a name list which is abbreviated (with 
25243 \begin_inset Quotes eld
25244 \end_inset
25245
25246 et al.
25247 \begin_inset Quotes erd
25248 \end_inset
25249
25250 ) when 
25251 \begin_inset Flex Code
25252 status collapsed
25253
25254 \begin_layout Plain Layout
25255 MaxCiteNames
25256 \end_layout
25257
25258 \end_inset
25259
25260  is reached.
25261 \end_layout
25262
25263 \begin_layout Itemize
25264 \begin_inset Flex Code
25265 status collapsed
25266
25267 \begin_layout Plain Layout
25268 %fullnames:<nametype>%
25269 \end_layout
25270
25271 \end_inset
25272
25273 :
25274  Provides a full name list (never abbreviated with 
25275 \begin_inset Quotes eld
25276 \end_inset
25277
25278 et al.
25279 \begin_inset Quotes erd
25280 \end_inset
25281
25282 ).
25283 \end_layout
25284
25285 \begin_layout Itemize
25286 \begin_inset Flex Code
25287 status collapsed
25288
25289 \begin_layout Plain Layout
25290 %forceabbrvnames:<nametype>%
25291 \end_layout
25292
25293 \end_inset
25294
25295 :
25296  Provides a name list which is always abbreviated (with 
25297 \begin_inset Quotes eld
25298 \end_inset
25299
25300 et al.
25301 \begin_inset Quotes erd
25302 \end_inset
25303
25304 ) irrespective of 
25305 \begin_inset Flex Code
25306 status collapsed
25307
25308 \begin_layout Plain Layout
25309 MaxCiteNames
25310 \end_layout
25311
25312 \end_inset
25313
25314 .
25315 \end_layout
25316
25317 \end_deeper
25318 \begin_layout Enumerate
25319 Alternative name lists with pre- and surname,
25320  if the order of pre- and surname inside the bibliography item differs (as in:
25321  
25322 \begin_inset Quotes eld
25323 \end_inset
25324
25325 Miller,
25326  John:
25327  Some text,
25328  in:
25329  Mary Smith,
25330  ed.:
25331  A volume
25332 \begin_inset Quotes erd
25333 \end_inset
25334
25335 ):
25336 \end_layout
25337
25338 \begin_deeper
25339 \begin_layout Itemize
25340 \begin_inset Flex Code
25341 status collapsed
25342
25343 \begin_layout Plain Layout
25344 %abbrvbynames:<nametype>%
25345 \end_layout
25346
25347 \end_inset
25348
25349 :
25350  Provides a name list which is abbreviated (with 
25351 \begin_inset Quotes eld
25352 \end_inset
25353
25354 et al.
25355 \begin_inset Quotes erd
25356 \end_inset
25357
25358 ) when 
25359 \begin_inset Flex Code
25360 status collapsed
25361
25362 \begin_layout Plain Layout
25363 MaxCiteNames
25364 \end_layout
25365
25366 \end_inset
25367
25368  is reached.
25369 \end_layout
25370
25371 \begin_layout Itemize
25372 \begin_inset Flex Code
25373 status collapsed
25374
25375 \begin_layout Plain Layout
25376 %fullbynames:<nametype>%
25377 \end_layout
25378
25379 \end_inset
25380
25381 :
25382  Provides a full name list (never abbreviated with 
25383 \begin_inset Quotes eld
25384 \end_inset
25385
25386 et al.
25387 \begin_inset Quotes erd
25388 \end_inset
25389
25390 ).
25391 \end_layout
25392
25393 \begin_layout Itemize
25394 \begin_inset Flex Code
25395 status collapsed
25396
25397 \begin_layout Plain Layout
25398 %forceabbrvbynames:<nametype>%
25399 \end_layout
25400
25401 \end_inset
25402
25403 :
25404  Provides a name list which is always abbreviated (with 
25405 \begin_inset Quotes eld
25406 \end_inset
25407
25408 et al.
25409 \begin_inset Quotes erd
25410 \end_inset
25411
25412 ) irrespective of 
25413 \begin_inset Flex Code
25414 status collapsed
25415
25416 \begin_layout Plain Layout
25417 MaxCiteNames
25418 \end_layout
25419
25420 \end_inset
25421
25422 .
25423 \end_layout
25424
25425 \end_deeper
25426 \begin_layout Enumerate
25427 And finally name lists which consist of family names only,
25428  as used in author-year citation labels.
25429  These do not take a 
25430 \begin_inset Flex Code
25431 status collapsed
25432
25433 \begin_layout Plain Layout
25434 <nametype>
25435 \end_layout
25436
25437 \end_inset
25438
25439  part,
25440  but always return either an author list or,
25441  if this does not exist,
25442  an editor list (as common in author-year labels):
25443 \end_layout
25444
25445 \begin_deeper
25446 \begin_layout Itemize
25447 \begin_inset Flex Code
25448 status collapsed
25449
25450 \begin_layout Plain Layout
25451 %abbrvciteauthor%
25452 \end_layout
25453
25454 \end_inset
25455
25456 :
25457  Provides a name list which is abbreviated (with 
25458 \begin_inset Quotes eld
25459 \end_inset
25460
25461 et al.
25462 \begin_inset Quotes erd
25463 \end_inset
25464
25465 ) when 
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470 MaxCiteNames
25471 \end_layout
25472
25473 \end_inset
25474
25475  is reached.
25476 \end_layout
25477
25478 \begin_layout Itemize
25479 \begin_inset Flex Code
25480 status collapsed
25481
25482 \begin_layout Plain Layout
25483 %fullciteauthor%
25484 \end_layout
25485
25486 \end_inset
25487
25488 :
25489  Provides a full name list (never abbreviated with 
25490 \begin_inset Quotes eld
25491 \end_inset
25492
25493 et al.
25494 \begin_inset Quotes erd
25495 \end_inset
25496
25497 ).
25498 \end_layout
25499
25500 \begin_layout Itemize
25501 \begin_inset Flex Code
25502 status collapsed
25503
25504 \begin_layout Plain Layout
25505 %forceabbrvciteauthor%
25506 \end_layout
25507
25508 \end_inset
25509
25510 :
25511  Provides a name list which is always abbreviated (with 
25512 \begin_inset Quotes eld
25513 \end_inset
25514
25515 et al.
25516 \begin_inset Quotes erd
25517 \end_inset
25518
25519 ) irrespective of 
25520 \begin_inset Flex Code
25521 status collapsed
25522
25523 \begin_layout Plain Layout
25524 MaxCiteNames
25525 \end_layout
25526
25527 \end_inset
25528
25529 .
25530 \end_layout
25531
25532 \end_deeper
25533 \begin_layout Standard
25534 The order of pre- and surname in the former two lists can be adjusted by these macros:
25535 \end_layout
25536
25537 \begin_layout Itemize
25538 \begin_inset Flex Code
25539 status collapsed
25540
25541 \begin_layout Plain Layout
25542 !firstnameform %surname%,
25543  %prename%
25544 \end_layout
25545
25546 \end_inset
25547
25548  (first author in lists of type 1)
25549 \end_layout
25550
25551 \begin_layout Itemize
25552 \begin_inset Flex Code
25553 status collapsed
25554
25555 \begin_layout Plain Layout
25556 !othernameform %surname%,
25557  %prename%
25558 \end_layout
25559
25560 \end_inset
25561
25562  (other authors in lists of type 1)
25563 \end_layout
25564
25565 \begin_layout Itemize
25566 \begin_inset Flex Code
25567 status collapsed
25568
25569 \begin_layout Plain Layout
25570 !firstbynameform %prename% %surname%
25571 \end_layout
25572
25573 \end_inset
25574
25575  (first author in lists of type 2)
25576 \end_layout
25577
25578 \begin_layout Itemize
25579 \begin_inset Flex Code
25580 status collapsed
25581
25582 \begin_layout Plain Layout
25583 !otherbynameform %prename% %surname%
25584 \end_layout
25585
25586 \end_inset
25587
25588  (other authors in lists of type 2)
25589 \end_layout
25590
25591 \begin_layout Standard
25592 This allows you to configure namings like 
25593 \begin_inset Quotes eld
25594 \end_inset
25595
25596 Miller,
25597  Peter and Mary Smith:
25598  \SpecialChar ldots
25599 ,
25600  in:
25601  John Doe and Pat Green,
25602  eds.:\SpecialChar ldots
25603
25604 \begin_inset Quotes erd
25605 \end_inset
25606
25607 .
25608 \end_layout
25609
25610 \begin_layout Standard
25611 There is one other piece of syntax available in definitions,
25612  which looks like this:
25613  
25614 \begin_inset Flex Code
25615 status collapsed
25616
25617 \begin_layout Plain Layout
25618 {!<i>!}
25619 \end_layout
25620
25621 \end_inset
25622
25623 .
25624  This defines a piece of formatting information that is to be used when creating 
25625 \begin_inset Quotes eld
25626 \end_inset
25627
25628 rich text
25629 \begin_inset Quotes erd
25630 \end_inset
25631
25632 .
25633  Obviously,
25634  we do not want to output HTML tags when writing plain text,
25635  so they should be wrapped in 
25636 \begin_inset Quotes eld
25637 \end_inset
25638
25639 {!
25640 \begin_inset Quotes erd
25641 \end_inset
25642
25643  and 
25644 \begin_inset Quotes eld
25645 \end_inset
25646
25647 !}
25648 \begin_inset Quotes erd
25649 \end_inset
25650
25651 .
25652 \end_layout
25653
25654 \begin_layout Standard
25655 Two special sorts of definitions are also possible in a 
25656 \begin_inset Flex Code
25657 status collapsed
25658
25659 \begin_layout Plain Layout
25660 CiteFormat
25661 \end_layout
25662
25663 \end_inset
25664
25665  block.
25666  An example of the first would be:
25667 \end_layout
25668
25669 \begin_layout LyX-Code
25670 !quotetitle 
25671 \begin_inset Quotes eld
25672 \end_inset
25673
25674 %title%
25675 \begin_inset Quotes erd
25676 \end_inset
25677
25678
25679 \end_layout
25680
25681 \begin_layout Standard
25682 This is an abbreviation,
25683  or macro,
25684  and it can be used by treating it as if it were a key:
25685  
25686 \begin_inset Flex Code
25687 status collapsed
25688
25689 \begin_layout Plain Layout
25690 %!quotetitle%
25691 \end_layout
25692
25693 \end_inset
25694
25695 .
25696  \SpecialChar LyX
25697  will treat 
25698 \begin_inset Flex Code
25699 status collapsed
25700
25701 \begin_layout Plain Layout
25702 %!quotetitle%
25703 \end_layout
25704
25705 \end_inset
25706
25707  exactly as it would treat its definition.
25708  So,
25709  let us issue the obvious 
25710 \emph on
25711 warning
25712 \emph default
25713 .
25714  Do not do this:
25715 \end_layout
25716
25717 \begin_layout LyX-Code
25718 !funfun %funfun%
25719 \end_layout
25720
25721 \begin_layout Standard
25722 or anything like it.
25723  \SpecialChar LyX
25724  shouldn't go into an infinite loop,
25725  but it may go into a long one before it gives up.
25726 \end_layout
25727
25728 \begin_layout Standard
25729 The second sort of special definition might look like this:
25730 \end_layout
25731
25732 \begin_layout LyX-Code
25733 B_pptext pp.
25734 \end_layout
25735
25736 \begin_layout Standard
25737 This defines a translatable piece of text,
25738  which allows relevant parts of the bibliography or citation to be translated.
25739  It can be included in a definition by treating it as a key:
25740  
25741 \begin_inset Flex Code
25742 status collapsed
25743
25744 \begin_layout Plain Layout
25745 %B_pptext%
25746 \end_layout
25747
25748 \end_inset
25749
25750 .
25751  Note that there are two different translation paths:
25752  All definitions starting with 
25753 \begin_inset Flex Code
25754 status collapsed
25755
25756 \begin_layout Plain Layout
25757 B_
25758 \end_layout
25759
25760 \end_inset
25761
25762 ,
25763  such as in the example above,
25764  will be translated to the currently active buffer language (so the translation will match the generated document).
25765  All definitions starting with underscore only will be translated to the GUI language.
25766  This is the proper translation for strings that only occur in the dialogs or on buttons,
25767  such as this one:
25768 \end_layout
25769
25770 \begin_layout LyX-Code
25771 _addtobib Add to bibliography only.
25772 \end_layout
25773
25774 \begin_layout Standard
25775 Several of these translatable strings are predefined in 
25776 \begin_inset Flex Code
25777 status collapsed
25778
25779 \begin_layout Plain Layout
25780 stdciteformats.inc
25781 \end_layout
25782
25783 \end_inset
25784
25785  and the diverse 
25786 \begin_inset Flex Code
25787 status collapsed
25788
25789 \begin_layout Plain Layout
25790 *.citeengine
25791 \end_layout
25792
25793 \end_inset
25794
25795  files.
25796  Note that these are not macros,
25797  in the sense just defined.
25798  They will not be expanded.
25799 \end_layout
25800
25801 \begin_layout Standard
25802 So here then is an example that uses several of these features:
25803 \begin_inset VSpace defskip
25804 \end_inset
25805
25806
25807 \end_layout
25808
25809 \begin_layout Standard
25810 \noindent
25811
25812 \family sans
25813 !authoredit {%author%[[%author%,
25814  ]][[{%editor%[[%editor%,
25815  %B_edtext%,
25816  ]]}]]}
25817 \end_layout
25818
25819 \begin_layout Standard
25820 \begin_inset VSpace defskip
25821 \end_inset
25822
25823 This defines a macro that prints the author,
25824  followed by a comma,
25825  if the 
25826 \begin_inset Flex Code
25827 status collapsed
25828
25829 \begin_layout Plain Layout
25830 author
25831 \end_layout
25832
25833 \end_inset
25834
25835  key is defined,
25836  or else prints the name of the editor,
25837  followed by the 
25838 \begin_inset Flex Code
25839 status collapsed
25840
25841 \begin_layout Plain Layout
25842 B_edtext
25843 \end_layout
25844
25845 \end_inset
25846
25847  or its translation (it is by default 
25848 \begin_inset Quotes eld
25849 \end_inset
25850
25851 ed.
25852 \begin_inset Quotes erd
25853 \end_inset
25854
25855 ),
25856  if the 
25857 \begin_inset Flex Code
25858 status collapsed
25859
25860 \begin_layout Plain Layout
25861 editor
25862 \end_layout
25863
25864 \end_inset
25865
25866  key is defined.
25867  Note that this is in fact defined in 
25868 \begin_inset Flex Code
25869 status collapsed
25870
25871 \begin_layout Plain Layout
25872 stdciteformats.inc
25873 \end_layout
25874
25875 \end_inset
25876
25877 ,
25878  so you can use it in your own definitions,
25879  or re-definitions,
25880  if you load that file first.
25881 \end_layout
25882
25883 \begin_layout Section
25884 \begin_inset CommandInset label
25885 LatexCommand label
25886 name "sec:Tags-for-XHTML"
25887
25888 \end_inset
25889
25890 Tags for XHTML output
25891 \end_layout
25892
25893 \begin_layout Standard
25894 As with \SpecialChar LaTeX
25895  or DocBook,
25896  the format of \SpecialChar LyX
25897 's XHTML output is also controlled by layout information.
25898  In general,
25899  \SpecialChar LyX
25900  provides sensible defaults and,
25901  as mentioned earlier,
25902  it will even construct default CSS style rules from the other layout tags.
25903  For example,
25904  \SpecialChar LyX
25905  will attempt to use the information provided in the 
25906 \begin_inset Flex Code
25907 status collapsed
25908
25909 \begin_layout Plain Layout
25910 Font
25911 \end_layout
25912
25913 \end_inset
25914
25915  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
25916 \end_layout
25917
25918 \begin_layout Standard
25919 In many cases,
25920  then,
25921  you may not have to do anything at all to get acceptable XHTML output for your own environments,
25922  custom insets,
25923  and so forth.
25924  But in some cases you will,
25925  and so \SpecialChar LyX
25926  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
25927 \end_layout
25928
25929 \begin_layout Standard
25930 Note that there are two tags,
25931  
25932 \begin_inset Flex Code
25933 status collapsed
25934
25935 \begin_layout Plain Layout
25936 HTMLPreamble
25937 \end_layout
25938
25939 \end_inset
25940
25941  and 
25942 \begin_inset Flex Code
25943 status collapsed
25944
25945 \begin_layout Plain Layout
25946 AddToHTMLPreamble
25947 \end_layout
25948
25949 \end_inset
25950
25951  that may appear outside style and inset declarations.
25952  See 
25953 \begin_inset CommandInset ref
25954 LatexCommand ref
25955 reference "subsec:General-text-class"
25956 nolink "false"
25957
25958 \end_inset
25959
25960  for details on these.
25961 \end_layout
25962
25963 \begin_layout Subsection
25964 \begin_inset CommandInset label
25965 LatexCommand label
25966 name "subsec:Paragraph-Style-XHTML"
25967
25968 \end_inset
25969
25970 Paragraph styles
25971 \end_layout
25972
25973 \begin_layout Standard
25974 The sort of XHTML \SpecialChar LyX
25975  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
25976  a command,
25977  or an environment,
25978  where this is itself determined by the contents of the corresponding 
25979 \begin_inset Flex Code
25980 status collapsed
25981
25982 \begin_layout Plain Layout
25983 \SpecialChar LaTeX
25984 Type
25985 \end_layout
25986
25987 \end_inset
25988
25989  tag.
25990  
25991 \end_layout
25992
25993 \begin_layout Standard
25994 For a command or normal paragraph,
25995  the output XHTML has the following form:
25996 \end_layout
25997
25998 \begin_layout LyX-Code
25999
26000 \family sans
26001 <tag attr=
26002 \begin_inset Quotes erd
26003 \end_inset
26004
26005 value
26006 \begin_inset Quotes erd
26007 \end_inset
26008
26009 >
26010 \end_layout
26011
26012 \begin_layout LyX-Code
26013
26014 \family sans
26015 <labeltag attr=
26016 \begin_inset Quotes erd
26017 \end_inset
26018
26019 value
26020 \begin_inset Quotes erd
26021 \end_inset
26022
26023 >Label</labeltag>
26024 \end_layout
26025
26026 \begin_layout LyX-Code
26027
26028 \family sans
26029 Contents of the paragraph.
26030 \end_layout
26031
26032 \begin_layout LyX-Code
26033
26034 \family sans
26035 </tag>
26036 \end_layout
26037
26038 \begin_layout Standard
26039 The label tags are of course omitted if the paragraph does not have a label.
26040 \end_layout
26041
26042 \begin_layout Standard
26043 For an environment that is not some sort of list,
26044  the XHTML takes this form:
26045 \end_layout
26046
26047 \begin_layout LyX-Code
26048
26049 \family sans
26050 <tag attr=
26051 \begin_inset Quotes erd
26052 \end_inset
26053
26054 value
26055 \begin_inset Quotes erd
26056 \end_inset
26057
26058 >
26059 \end_layout
26060
26061 \begin_layout LyX-Code
26062
26063 \family sans
26064 <itemtag attr=
26065 \begin_inset Quotes erd
26066 \end_inset
26067
26068 value
26069 \begin_inset Quotes erd
26070 \end_inset
26071
26072 ><labeltag attr=
26073 \begin_inset Quotes erd
26074 \end_inset
26075
26076 value
26077 \begin_inset Quotes erd
26078 \end_inset
26079
26080 >Environment Label</labeltag>First paragraph.</itemtag>
26081 \end_layout
26082
26083 \begin_layout LyX-Code
26084
26085 \family sans
26086 <itemtag>Second paragraph.</itemtag>
26087 \end_layout
26088
26089 \begin_layout LyX-Code
26090
26091 \family sans
26092 </tag>
26093 \end_layout
26094
26095 \begin_layout Standard
26096 Note that the label is output only for the first paragraph,
26097  as it should be for a theorem,
26098  for example.
26099  
26100 \end_layout
26101
26102 \begin_layout Standard
26103 For a list,
26104  we have one of these forms:
26105 \end_layout
26106
26107 \begin_layout LyX-Code
26108
26109 \family sans
26110 <tag attr=
26111 \begin_inset Quotes erd
26112 \end_inset
26113
26114 value
26115 \begin_inset Quotes erd
26116 \end_inset
26117
26118 >
26119 \end_layout
26120
26121 \begin_layout LyX-Code
26122
26123 \family sans
26124 <itemtag attr=
26125 \begin_inset Quotes erd
26126 \end_inset
26127
26128 value
26129 \begin_inset Quotes erd
26130 \end_inset
26131
26132 ><labeltag attr=
26133 \begin_inset Quotes erd
26134 \end_inset
26135
26136 value
26137 \begin_inset Quotes erd
26138 \end_inset
26139
26140 >List Label</labeltag>First item.</itemtag>
26141 \end_layout
26142
26143 \begin_layout LyX-Code
26144
26145 \family sans
26146 <itemtag attr=
26147 \begin_inset Quotes erd
26148 \end_inset
26149
26150 value
26151 \begin_inset Quotes erd
26152 \end_inset
26153
26154 ><labeltag attr=
26155 \begin_inset Quotes erd
26156 \end_inset
26157
26158 value
26159 \begin_inset Quotes erd
26160 \end_inset
26161
26162 >List Label</labeltag>Second item.</itemtag>
26163 \end_layout
26164
26165 \begin_layout LyX-Code
26166
26167 \family sans
26168 </tag>
26169 \end_layout
26170
26171 \begin_layout LyX-Code
26172
26173 \end_layout
26174
26175 \begin_layout LyX-Code
26176
26177 \family sans
26178 <tag attr=
26179 \begin_inset Quotes erd
26180 \end_inset
26181
26182 value
26183 \begin_inset Quotes erd
26184 \end_inset
26185
26186 >
26187 \end_layout
26188
26189 \begin_layout LyX-Code
26190
26191 \family sans
26192 <labeltag attr=
26193 \begin_inset Quotes erd
26194 \end_inset
26195
26196 value
26197 \begin_inset Quotes erd
26198 \end_inset
26199
26200 >List Label</labeltag><itemtag attr=
26201 \begin_inset Quotes erd
26202 \end_inset
26203
26204 value
26205 \begin_inset Quotes erd
26206 \end_inset
26207
26208 >First item.</itemtag>
26209 \end_layout
26210
26211 \begin_layout LyX-Code
26212
26213 \family sans
26214 <labeltag attr=
26215 \begin_inset Quotes erd
26216 \end_inset
26217
26218 value
26219 \begin_inset Quotes erd
26220 \end_inset
26221
26222 >List Label</labeltag><itemtag attr=
26223 \begin_inset Quotes erd
26224 \end_inset
26225
26226 value
26227 \begin_inset Quotes erd
26228 \end_inset
26229
26230 >Second item.</itemtag>
26231 \end_layout
26232
26233 \begin_layout LyX-Code
26234
26235 \family sans
26236 </tag>
26237 \end_layout
26238
26239 \begin_layout Standard
26240 Note the different orders of 
26241 \begin_inset Flex Code
26242 status collapsed
26243
26244 \begin_layout Plain Layout
26245 labeltag
26246 \end_layout
26247
26248 \end_inset
26249
26250  and 
26251 \begin_inset Flex Code
26252 status collapsed
26253
26254 \begin_layout Plain Layout
26255 itemtag
26256 \end_layout
26257
26258 \end_inset
26259
26260 .
26261  Which order we get depends upon the setting of 
26262 \begin_inset Flex Code
26263 status collapsed
26264
26265 \begin_layout Plain Layout
26266 HTMLLabelFirst
26267 \end_layout
26268
26269 \end_inset
26270
26271 :
26272  If 
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 HTMLLabelFirst
26278 \end_layout
26279
26280 \end_inset
26281
26282  is false (the default),
26283  you get the first of these,
26284  with the label within the item;
26285  if true,
26286  you get the second,
26287  with the label outside the item.
26288 \end_layout
26289
26290 \begin_layout Standard
26291 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
26292  As mentioned earlier,
26293  however,
26294  \SpecialChar LyX
26295  uses sensible defaults for many of these,
26296  so you often may not need to do very much to get good XHTML output.
26297  Think of the available tags as there so you can tweak things to your liking.
26298 \end_layout
26299
26300 \begin_layout Description
26301 \begin_inset Flex Code
26302 status collapsed
26303
26304 \begin_layout Plain Layout
26305 HTMLAttr
26306 \end_layout
26307
26308 \end_inset
26309
26310  [
26311 \begin_inset Flex Code
26312 status collapsed
26313
26314 \begin_layout Plain Layout
26315 string
26316 \end_layout
26317
26318 \end_inset
26319
26320 ] Specifies attribute information to be output with the main tag.
26321  For example,
26322  
26323 \begin_inset Quotes eld
26324 \end_inset
26325
26326
26327 \begin_inset Flex Code
26328 status collapsed
26329
26330 \begin_layout Plain Layout
26331 class=`mydiv'
26332 \end_layout
26333
26334 \end_inset
26335
26336
26337 \begin_inset Quotes erd
26338 \end_inset
26339
26340 .
26341  By default,
26342  \SpecialChar LyX
26343  will output 
26344 \begin_inset Quotes eld
26345 \end_inset
26346
26347
26348 \begin_inset Flex Code
26349 status collapsed
26350
26351 \begin_layout Plain Layout
26352 class=`layoutname'
26353 \end_layout
26354
26355 \end_inset
26356
26357
26358 \begin_inset Quotes erd
26359 \end_inset
26360
26361 ,
26362  where 
26363 \begin_inset Flex Code
26364 status collapsed
26365
26366 \begin_layout Plain Layout
26367 layoutname
26368 \end_layout
26369
26370 \end_inset
26371
26372  is the \SpecialChar LyX
26373  name of the layout,
26374  made lowercase,
26375  for example:
26376  chapter.
26377  This should 
26378 \emph on
26379 not
26380 \emph default
26381  contain any style information.
26382  Use 
26383 \begin_inset Flex Code
26384 status collapsed
26385
26386 \begin_layout Plain Layout
26387 HTMLStyle
26388 \end_layout
26389
26390 \end_inset
26391
26392  for that purpose.
26393 \end_layout
26394
26395 \begin_layout Description
26396 \begin_inset Flex Code
26397 status collapsed
26398
26399 \begin_layout Plain Layout
26400 HTMLClass
26401 \end_layout
26402
26403 \end_inset
26404
26405  [
26406 \begin_inset Flex Code
26407 status collapsed
26408
26409 \begin_layout Plain Layout
26410 string
26411 \end_layout
26412
26413 \end_inset
26414
26415 ] The CSS class to use for this paragraph.
26416  Note that,
26417  if the paragarph is of enumerate or itemize type,
26418  then the default will be 
26419 \begin_inset Quotes eld
26420 \end_inset
26421
26422 lyxenum
26423 \begin_inset Quotes erd
26424 \end_inset
26425
26426  or 
26427 \begin_inset Quotes eld
26428 \end_inset
26429
26430 lyxitem
26431 \begin_inset Quotes erd
26432 \end_inset
26433
26434 ,
26435  plus 
26436 \begin_inset Quotes eld
26437 \end_inset
26438
26439 i
26440 \begin_inset Quotes erd
26441 \end_inset
26442
26443 ,
26444  
26445 \begin_inset Quotes eld
26446 \end_inset
26447
26448 ii
26449 \begin_inset Quotes erd
26450 \end_inset
26451
26452 ,
26453  
26454 \begin_inset Quotes eld
26455 \end_inset
26456
26457 iii
26458 \begin_inset Quotes erd
26459 \end_inset
26460
26461 ,
26462  or 
26463 \begin_inset Quotes eld
26464 \end_inset
26465
26466 iv
26467 \begin_inset Quotes erd
26468 \end_inset
26469
26470 ,
26471  depending upon the depth.
26472  That can be over-ridden here.
26473  However,
26474  the suffix will not be added in that case.
26475  I.e.,
26476  the CSS class will always be exactly what it is declared to be here.
26477 \end_layout
26478
26479 \begin_layout Description
26480 \begin_inset Flex Code
26481 status collapsed
26482
26483 \begin_layout Plain Layout
26484 HTMLForceCSS
26485 \end_layout
26486
26487 \end_inset
26488
26489  [
26490 \begin_inset Flex Code
26491 status collapsed
26492
26493 \begin_layout Plain Layout
26494
26495 \emph on
26496 0
26497 \emph default
26498 ,1
26499 \end_layout
26500
26501 \end_inset
26502
26503 ] Whether to output the default CSS information \SpecialChar LyX
26504  generates for this layout,
26505  even if additional information is explicitly provided via 
26506 \begin_inset Flex Code
26507 status collapsed
26508
26509 \begin_layout Plain Layout
26510 HTMLStyle
26511 \end_layout
26512
26513 \end_inset
26514
26515 .
26516  Setting this to 
26517 \begin_inset Flex Code
26518 status collapsed
26519
26520 \begin_layout Plain Layout
26521 1
26522 \end_layout
26523
26524 \end_inset
26525
26526  allows you to alter or augment the generated CSS,
26527  rather than to override it completely.
26528  Default is 
26529 \begin_inset Flex Code
26530 status collapsed
26531
26532 \begin_layout Plain Layout
26533 0
26534 \end_layout
26535
26536 \end_inset
26537
26538 .
26539 \end_layout
26540
26541 \begin_layout Description
26542 \begin_inset Flex Code
26543 status collapsed
26544
26545 \begin_layout Plain Layout
26546 HTMLInToc
26547 \end_layout
26548
26549 \end_inset
26550
26551  [
26552 \begin_inset Flex Code
26553 status open
26554
26555 \begin_layout Plain Layout
26556 0,
26557 \emph on
26558 1
26559 \end_layout
26560
26561 \end_inset
26562
26563 ] Whether to include this paragraph (usually,
26564  a section or something of the sort) in the TOC.
26565  By default,
26566  true,
26567  so it should be set to false e.g.
26568 \begin_inset space ~
26569 \end_inset
26570
26571 for starred sections.
26572 \end_layout
26573
26574 \begin_layout Description
26575 \begin_inset Flex Code
26576 status collapsed
26577
26578 \begin_layout Plain Layout
26579 HTMLItem
26580 \end_layout
26581
26582 \end_inset
26583
26584  [
26585 \begin_inset Flex Code
26586 status collapsed
26587
26588 \begin_layout Plain Layout
26589 string
26590 \end_layout
26591
26592 \end_inset
26593
26594 ] The tag to be used for individual paragraphs of environments,
26595  replacing 
26596 \begin_inset Flex Code
26597 status collapsed
26598
26599 \begin_layout Plain Layout
26600 itemtag
26601 \end_layout
26602
26603 \end_inset
26604
26605  in the examples above.
26606  Defaults to 
26607 \begin_inset Flex Code
26608 status collapsed
26609
26610 \begin_layout Plain Layout
26611 div
26612 \end_layout
26613
26614 \end_inset
26615
26616 .
26617 \end_layout
26618
26619 \begin_layout Description
26620 \begin_inset Flex Code
26621 status collapsed
26622
26623 \begin_layout Plain Layout
26624 HTMLItemAttr
26625 \end_layout
26626
26627 \end_inset
26628
26629  [
26630 \begin_inset Flex Code
26631 status collapsed
26632
26633 \begin_layout Plain Layout
26634 string
26635 \end_layout
26636
26637 \end_inset
26638
26639 ] Attributes for the item tag.
26640  Defaults to
26641 \begin_inset Newline newline
26642 \end_inset
26643
26644
26645 \begin_inset Quotes eld
26646 \end_inset
26647
26648
26649 \begin_inset Flex Code
26650 status collapsed
26651
26652 \begin_layout Plain Layout
26653 class=`layoutname_item'
26654 \end_layout
26655
26656 \end_inset
26657
26658
26659 \begin_inset Quotes erd
26660 \end_inset
26661
26662 .
26663  This should 
26664 \emph on
26665 not
26666 \emph default
26667  contain any style information.
26668  Use 
26669 \begin_inset Flex Code
26670 status collapsed
26671
26672 \begin_layout Plain Layout
26673 HTMLStyle
26674 \end_layout
26675
26676 \end_inset
26677
26678  for that purpose.
26679 \end_layout
26680
26681 \begin_layout Description
26682 \begin_inset Flex Code
26683 status collapsed
26684
26685 \begin_layout Plain Layout
26686 HTMLLabel
26687 \end_layout
26688
26689 \end_inset
26690
26691  [
26692 \begin_inset Flex Code
26693 status collapsed
26694
26695 \begin_layout Plain Layout
26696 string
26697 \end_layout
26698
26699 \end_inset
26700
26701 ] The tag to be used for paragraph and item labels,
26702  replacing 
26703 \begin_inset Flex Code
26704 status collapsed
26705
26706 \begin_layout Plain Layout
26707 labeltag
26708 \end_layout
26709
26710 \end_inset
26711
26712  in the examples above.
26713  Defaults to 
26714 \begin_inset Flex Code
26715 status collapsed
26716
26717 \begin_layout Plain Layout
26718 span
26719 \end_layout
26720
26721 \end_inset
26722
26723 ,
26724  unless 
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 LabelType
26730 \end_layout
26731
26732 \end_inset
26733
26734  is either 
26735 \begin_inset Flex Code
26736 status collapsed
26737
26738 \begin_layout Plain Layout
26739 Top_Environment
26740 \end_layout
26741
26742 \end_inset
26743
26744  or 
26745 \begin_inset Flex Code
26746 status collapsed
26747
26748 \begin_layout Plain Layout
26749 Centered_Top_Environment
26750 \end_layout
26751
26752 \end_inset
26753
26754 ,
26755  in which case it defaults to 
26756 \begin_inset Flex Code
26757 status collapsed
26758
26759 \begin_layout Plain Layout
26760 div
26761 \end_layout
26762
26763 \end_inset
26764
26765 .
26766 \end_layout
26767
26768 \begin_layout Description
26769 \begin_inset Flex Code
26770 status collapsed
26771
26772 \begin_layout Plain Layout
26773 HTMLLabelAttr
26774 \end_layout
26775
26776 \end_inset
26777
26778  [
26779 \begin_inset Flex Code
26780 status collapsed
26781
26782 \begin_layout Plain Layout
26783 string
26784 \end_layout
26785
26786 \end_inset
26787
26788 ] Attributes for the label tag.
26789  Defaults to
26790 \begin_inset Newline newline
26791 \end_inset
26792
26793
26794 \begin_inset Quotes eld
26795 \end_inset
26796
26797
26798 \begin_inset Flex Code
26799 status collapsed
26800
26801 \begin_layout Plain Layout
26802 class=`layoutname_label'
26803 \end_layout
26804
26805 \end_inset
26806
26807
26808 \begin_inset Quotes erd
26809 \end_inset
26810
26811 .
26812  This should 
26813 \emph on
26814 not
26815 \emph default
26816  contain any style information.
26817  Use 
26818 \begin_inset Flex Code
26819 status collapsed
26820
26821 \begin_layout Plain Layout
26822 HTMLStyle
26823 \end_layout
26824
26825 \end_inset
26826
26827  for that purpose.
26828 \end_layout
26829
26830 \begin_layout Description
26831 \begin_inset Flex Code
26832 status collapsed
26833
26834 \begin_layout Plain Layout
26835 HTMLLabelFirst
26836 \end_layout
26837
26838 \end_inset
26839
26840  [
26841 \begin_inset Flex Code
26842 status collapsed
26843
26844 \begin_layout Plain Layout
26845
26846 \emph on
26847 0
26848 \emph default
26849 ,1
26850 \end_layout
26851
26852 \end_inset
26853
26854 ] Meaningful only for list-like environments,
26855  this tag controls whether the label tag is output before or inside the item tag.
26856  This is used,
26857  for example,
26858  in the description environment,
26859  where we want `
26860 \begin_inset Flex Code
26861 status collapsed
26862
26863 \begin_layout Plain Layout
26864 <dt>\SpecialChar ldots
26865 </dt><dd>\SpecialChar ldots
26866 </dd>
26867 \end_layout
26868
26869 \end_inset
26870
26871 .
26872  Default is 
26873 \begin_inset Flex Code
26874 status collapsed
26875
26876 \begin_layout Plain Layout
26877 0
26878 \end_layout
26879
26880 \end_inset
26881
26882 :
26883  The label tag is output inside the item tag.
26884 \end_layout
26885
26886 \begin_layout Description
26887 \begin_inset Flex Code
26888 status collapsed
26889
26890 \begin_layout Plain Layout
26891 HTMLPreamble
26892 \end_layout
26893
26894 \end_inset
26895
26896  Information to be output in the 
26897 \begin_inset Flex Code
26898 status collapsed
26899
26900 \begin_layout Plain Layout
26901 <head>
26902 \end_layout
26903
26904 \end_inset
26905
26906  section when this style is used.
26907  This might,
26908  for example,
26909  be used to include a 
26910 \begin_inset Flex Code
26911 status collapsed
26912
26913 \begin_layout Plain Layout
26914 <script>
26915 \end_layout
26916
26917 \end_inset
26918
26919  block defining an 
26920 \begin_inset Flex Code
26921 status collapsed
26922
26923 \begin_layout Plain Layout
26924 onclick
26925 \end_layout
26926
26927 \end_inset
26928
26929  handler.
26930 \end_layout
26931
26932 \begin_layout Description
26933 \begin_inset Flex Code
26934 status collapsed
26935
26936 \begin_layout Plain Layout
26937 HTMLStyle
26938 \end_layout
26939
26940 \end_inset
26941
26942  CSS style information to be included when this style is used.
26943  Note that this will automatically be wrapped in a layout-generated 
26944 \begin_inset Flex Code
26945 status collapsed
26946
26947 \begin_layout Plain Layout
26948 <style>
26949 \end_layout
26950
26951 \end_inset
26952
26953  block,
26954  so only the CSS itself need be included.
26955  Must end with 
26956 \begin_inset Flex Code
26957 status collapsed
26958
26959 \begin_layout Plain Layout
26960 EndHTMLStyle
26961 \end_layout
26962
26963 \end_inset
26964
26965 .
26966 \end_layout
26967
26968 \begin_layout Description
26969 \begin_inset Flex Code
26970 status collapsed
26971
26972 \begin_layout Plain Layout
26973 HTMLTag
26974 \end_layout
26975
26976 \end_inset
26977
26978  [
26979 \begin_inset Flex Code
26980 status collapsed
26981
26982 \begin_layout Plain Layout
26983 string
26984 \end_layout
26985
26986 \end_inset
26987
26988 ] The tag to be used for the main label,
26989  replacing 
26990 \begin_inset Flex Code
26991 status collapsed
26992
26993 \begin_layout Plain Layout
26994 tag
26995 \end_layout
26996
26997 \end_inset
26998
26999  in the examples above.
27000  Defaults to 
27001 \begin_inset Flex Code
27002 status collapsed
27003
27004 \begin_layout Plain Layout
27005 div
27006 \end_layout
27007
27008 \end_inset
27009
27010 .
27011 \end_layout
27012
27013 \begin_layout Description
27014 \begin_inset Flex Code
27015 status collapsed
27016
27017 \begin_layout Plain Layout
27018 HTMLTitle
27019 \end_layout
27020
27021 \end_inset
27022
27023  [
27024 \begin_inset Flex Code
27025 status collapsed
27026
27027 \begin_layout Plain Layout
27028
27029 \emph on
27030 0
27031 \emph default
27032 ,1
27033 \end_layout
27034
27035 \end_inset
27036
27037 ] Marks this style as the one to be used to generate the 
27038 \begin_inset Flex Code
27039 status collapsed
27040
27041 \begin_layout Plain Layout
27042 <title>
27043 \end_layout
27044
27045 \end_inset
27046
27047  tag for the XHTML file.
27048  By default,
27049  it is false.
27050  The 
27051 \begin_inset Flex Code
27052 status collapsed
27053
27054 \begin_layout Plain Layout
27055 stdtitle.inc
27056 \end_layout
27057
27058 \end_inset
27059
27060  file sets it to true for the 
27061 \begin_inset Flex Code
27062 status collapsed
27063
27064 \begin_layout Plain Layout
27065 title
27066 \end_layout
27067
27068 \end_inset
27069
27070  environment.
27071  
27072 \end_layout
27073
27074 \begin_layout Subsection
27075 InsetLayout XHTML
27076 \end_layout
27077
27078 \begin_layout Standard
27079 The XHTML output of insets can also be controlled by information in layout files.
27080 \begin_inset Foot
27081 status collapsed
27082
27083 \begin_layout Plain Layout
27084 At present,
27085  this is true only for 
27086 \begin_inset Quotes eld
27087 \end_inset
27088
27089 text
27090 \begin_inset Quotes erd
27091 \end_inset
27092
27093  insets (insets you can type into) and is not true for 
27094 \begin_inset Quotes eld
27095 \end_inset
27096
27097 command
27098 \begin_inset Quotes erd
27099 \end_inset
27100
27101  insets (insets that are associated with dialog boxes).
27102 \end_layout
27103
27104 \end_inset
27105
27106  Here,
27107  too,
27108  \SpecialChar LyX
27109  tries to provide sensible defaults,
27110  and it constructs default CSS style rules.
27111  But everything can be customized.
27112 \end_layout
27113
27114 \begin_layout Standard
27115 The XHTML \SpecialChar LyX
27116  outputs for an inset has the following form:
27117 \end_layout
27118
27119 \begin_layout LyX-Code
27120 <tag attr=
27121 \begin_inset Quotes erd
27122 \end_inset
27123
27124 value
27125 \begin_inset Quotes erd
27126 \end_inset
27127
27128 >
27129 \end_layout
27130
27131 \begin_layout LyX-Code
27132 <labeltag>Label</labeltag>
27133 \end_layout
27134
27135 \begin_layout LyX-Code
27136 <innertag attr=
27137 \begin_inset Quotes erd
27138 \end_inset
27139
27140 value
27141 \begin_inset Quotes erd
27142 \end_inset
27143
27144 >Contents of the inset.</innertag>
27145 \end_layout
27146
27147 \begin_layout LyX-Code
27148 </tag>
27149 \end_layout
27150
27151 \begin_layout Standard
27152 If the inset permits multiple paragraphs—
27153 that is,
27154  if 
27155 \begin_inset Flex Code
27156 status collapsed
27157
27158 \begin_layout Plain Layout
27159 MultiPar
27160 \end_layout
27161
27162 \end_inset
27163
27164  is true—
27165 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
27166  quote,
27167  and the like).
27168  The label tag is of course omitted if the paragraph does not have a label and,
27169  at present,
27170  is always 
27171 \begin_inset Flex Code
27172 status collapsed
27173
27174 \begin_layout Plain Layout
27175 span
27176 \end_layout
27177
27178 \end_inset
27179
27180 .
27181  The inner tag is optional and,
27182  by default,
27183  does not appear.
27184 \end_layout
27185
27186 \begin_layout Standard
27187 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
27188 \end_layout
27189
27190 \begin_layout Description
27191 \begin_inset Flex Code
27192 status collapsed
27193
27194 \begin_layout Plain Layout
27195 HTMLAttr
27196 \end_layout
27197
27198 \end_inset
27199
27200  [
27201 \begin_inset Flex Code
27202 status collapsed
27203
27204 \begin_layout Plain Layout
27205 string
27206 \end_layout
27207
27208 \end_inset
27209
27210 ] Specifies attribute information to be output with the main tag.
27211  For example,
27212  
27213 \begin_inset Quotes eld
27214 \end_inset
27215
27216
27217 \begin_inset Flex Code
27218 status collapsed
27219
27220 \begin_layout Plain Layout
27221 class=`myinset' onclick=`\SpecialChar ldots
27222 '
27223 \end_layout
27224
27225 \end_inset
27226
27227
27228 \begin_inset Quotes erd
27229 \end_inset
27230
27231 .
27232  By default,
27233  \SpecialChar LyX
27234  will output 
27235 \begin_inset Quotes eld
27236 \end_inset
27237
27238
27239 \begin_inset Flex Code
27240 status collapsed
27241
27242 \begin_layout Plain Layout
27243 class=`insetname'
27244 \end_layout
27245
27246 \end_inset
27247
27248
27249 \begin_inset Quotes erd
27250 \end_inset
27251
27252 ,
27253  where 
27254 \begin_inset Flex Code
27255 status collapsed
27256
27257 \begin_layout Plain Layout
27258 insetname
27259 \end_layout
27260
27261 \end_inset
27262
27263  is the \SpecialChar LyX
27264  name of the inset,
27265  made lowercase and with non-alphanumeric characters converted to underscores,
27266  for example:
27267  footnote.
27268 \end_layout
27269
27270 \begin_layout Description
27271 \begin_inset Flex Code
27272 status collapsed
27273
27274 \begin_layout Plain Layout
27275 HTMLForceCSS
27276 \end_layout
27277
27278 \end_inset
27279
27280  [
27281 \begin_inset Flex Code
27282 status collapsed
27283
27284 \begin_layout Plain Layout
27285
27286 \emph on
27287 0
27288 \emph default
27289 ,1
27290 \end_layout
27291
27292 \end_inset
27293
27294 ] Whether to output the default CSS information \SpecialChar LyX
27295  generates for this layout,
27296  even if additional information is explicitly provided via 
27297 \begin_inset Flex Code
27298 status collapsed
27299
27300 \begin_layout Plain Layout
27301 HTMLStyle
27302 \end_layout
27303
27304 \end_inset
27305
27306 .
27307  Setting this to 
27308 \begin_inset Flex Code
27309 status collapsed
27310
27311 \begin_layout Plain Layout
27312 1
27313 \end_layout
27314
27315 \end_inset
27316
27317  allows you to alter or augment the generated CSS,
27318  rather than to override it completely.
27319  Default is 0.
27320 \end_layout
27321
27322 \begin_layout Description
27323 \begin_inset Flex Code
27324 status collapsed
27325
27326 \begin_layout Plain Layout
27327 HTMLInnerAttr
27328 \end_layout
27329
27330 \end_inset
27331
27332  [
27333 \begin_inset Flex Code
27334 status collapsed
27335
27336 \begin_layout Plain Layout
27337 string
27338 \end_layout
27339
27340 \end_inset
27341
27342 ] Attributes for the inner tag.
27343  Defaults to
27344 \begin_inset Newline newline
27345 \end_inset
27346
27347
27348 \begin_inset Quotes eld
27349 \end_inset
27350
27351
27352 \begin_inset Flex Code
27353 status collapsed
27354
27355 \begin_layout Plain Layout
27356 class=`insetname_inner'
27357 \end_layout
27358
27359 \end_inset
27360
27361
27362 \begin_inset Quotes erd
27363 \end_inset
27364
27365 .
27366 \end_layout
27367
27368 \begin_layout Description
27369 \begin_inset Flex Code
27370 status collapsed
27371
27372 \begin_layout Plain Layout
27373 HTMLInnerTag
27374 \end_layout
27375
27376 \end_inset
27377
27378  [
27379 \begin_inset Flex Code
27380 status collapsed
27381
27382 \begin_layout Plain Layout
27383 string
27384 \end_layout
27385
27386 \end_inset
27387
27388 ] The inner tag,
27389  replacing 
27390 \begin_inset Flex Code
27391 status collapsed
27392
27393 \begin_layout Plain Layout
27394 innertag
27395 \end_layout
27396
27397 \end_inset
27398
27399  in the examples above.
27400  By default,
27401  there is none.
27402 \end_layout
27403
27404 \begin_layout Description
27405 \begin_inset Flex Code
27406 status collapsed
27407
27408 \begin_layout Plain Layout
27409 HTMLIsBlock
27410 \end_layout
27411
27412 \end_inset
27413
27414  [
27415 \begin_inset Flex Code
27416 status collapsed
27417
27418 \begin_layout Plain Layout
27419 0,
27420 \emph on
27421 1
27422 \end_layout
27423
27424 \end_inset
27425
27426 ] Whether this inset represents a standalone block of text (such as a footnote) or instead represents material that is included in the surrounding text (such as a branch).
27427  Defaults to 1.
27428 \end_layout
27429
27430 \begin_layout Description
27431 \begin_inset Flex Code
27432 status collapsed
27433
27434 \begin_layout Plain Layout
27435 HTMLLabel
27436 \end_layout
27437
27438 \end_inset
27439
27440  [
27441 \begin_inset Flex Code
27442 status collapsed
27443
27444 \begin_layout Plain Layout
27445 string
27446 \end_layout
27447
27448 \end_inset
27449
27450 ] A label for this inset,
27451  possibly including a reference to a counter.
27452  For example,
27453  for footnote,
27454  it might be:
27455  
27456 \begin_inset Flex Code
27457 status collapsed
27458
27459 \begin_layout Plain Layout
27460
27461 \backslash
27462 arabic{footnote}
27463 \end_layout
27464
27465 \end_inset
27466
27467 .
27468  This is optional,
27469  and there is no default.
27470 \end_layout
27471
27472 \begin_layout Description
27473 \begin_inset Flex Code
27474 status collapsed
27475
27476 \begin_layout Plain Layout
27477 HTMLPreamble
27478 \end_layout
27479
27480 \end_inset
27481
27482  Information to be output in the 
27483 \begin_inset Flex Code
27484 status collapsed
27485
27486 \begin_layout Plain Layout
27487 <head>
27488 \end_layout
27489
27490 \end_inset
27491
27492  section when this style is used.
27493  This might,
27494  for example,
27495  be used to include a 
27496 \begin_inset Flex Code
27497 status collapsed
27498
27499 \begin_layout Plain Layout
27500 <script>
27501 \end_layout
27502
27503 \end_inset
27504
27505  block defining an 
27506 \begin_inset Flex Code
27507 status collapsed
27508
27509 \begin_layout Plain Layout
27510 onclick
27511 \end_layout
27512
27513 \end_inset
27514
27515  handler.
27516 \end_layout
27517
27518 \begin_layout Description
27519 \begin_inset Flex Code
27520 status collapsed
27521
27522 \begin_layout Plain Layout
27523 HTMLStyle
27524 \end_layout
27525
27526 \end_inset
27527
27528  CSS style information to be included when this style is used.
27529  Note that this will automatically be wrapped in a layout-generated 
27530 \begin_inset Flex Code
27531 status collapsed
27532
27533 \begin_layout Plain Layout
27534 <style>
27535 \end_layout
27536
27537 \end_inset
27538
27539  block,
27540  so only the CSS itself need be included.
27541 \end_layout
27542
27543 \begin_layout Description
27544 \begin_inset Flex Code
27545 status collapsed
27546
27547 \begin_layout Plain Layout
27548 HTMLTag
27549 \end_layout
27550
27551 \end_inset
27552
27553  [
27554 \begin_inset Flex Code
27555 status collapsed
27556
27557 \begin_layout Plain Layout
27558 string
27559 \end_layout
27560
27561 \end_inset
27562
27563 ] The tag to be used for the main label,
27564  replacing 
27565 \begin_inset Flex Code
27566 status collapsed
27567
27568 \begin_layout Plain Layout
27569 tag
27570 \end_layout
27571
27572 \end_inset
27573
27574  in the examples above.
27575  The default depends upon the setting of 
27576 \begin_inset Flex Code
27577 status collapsed
27578
27579 \begin_layout Plain Layout
27580 MultiPar
27581 \end_layout
27582
27583 \end_inset
27584
27585 :
27586  If 
27587 \begin_inset Flex Code
27588 status collapsed
27589
27590 \begin_layout Plain Layout
27591 MultiPar
27592 \end_layout
27593
27594 \end_inset
27595
27596  is true,
27597  the default is 
27598 \begin_inset Flex Code
27599 status collapsed
27600
27601 \begin_layout Plain Layout
27602 div
27603 \end_layout
27604
27605 \end_inset
27606
27607 ;
27608  if it is false,
27609  the default is 
27610 \begin_inset Flex Code
27611 status collapsed
27612
27613 \begin_layout Plain Layout
27614 span
27615 \end_layout
27616
27617 \end_inset
27618
27619 .
27620 \end_layout
27621
27622 \begin_layout Subsection
27623 Float XHTML
27624 \end_layout
27625
27626 \begin_layout Standard
27627 The XHTML output for floats too can be controlled by layout information.
27628  The output has the following form:
27629 \end_layout
27630
27631 \begin_layout LyX-Code
27632 <tag attr=
27633 \begin_inset Quotes erd
27634 \end_inset
27635
27636 value
27637 \begin_inset Quotes erd
27638 \end_inset
27639
27640 >
27641 \end_layout
27642
27643 \begin_layout LyX-Code
27644 Contents of the float.
27645 \end_layout
27646
27647 \begin_layout LyX-Code
27648 </tag>
27649 \end_layout
27650
27651 \begin_layout Standard
27652 The caption,
27653  if there is one,
27654  is a separate inset and will be output as such.
27655  Its appearance can be controlled via the InsetLayout for caption insets.
27656  
27657 \end_layout
27658
27659 \begin_layout Description
27660 \begin_inset Flex Code
27661 status collapsed
27662
27663 \begin_layout Plain Layout
27664 HTMLAttr
27665 \end_layout
27666
27667 \end_inset
27668
27669  [
27670 \begin_inset Flex Code
27671 status collapsed
27672
27673 \begin_layout Plain Layout
27674 string
27675 \end_layout
27676
27677 \end_inset
27678
27679 ] Specifies attribute information to be output with the main tag.
27680  For example,
27681  
27682 \begin_inset Quotes eld
27683 \end_inset
27684
27685
27686 \begin_inset Flex Code
27687 status collapsed
27688
27689 \begin_layout Plain Layout
27690 class=`myfloat' onclick=`\SpecialChar ldots
27691 '
27692 \end_layout
27693
27694 \end_inset
27695
27696
27697 \begin_inset Quotes erd
27698 \end_inset
27699
27700 .
27701  By default,
27702  \SpecialChar LyX
27703  will output 
27704 \begin_inset Quotes eld
27705 \end_inset
27706
27707
27708 \begin_inset Flex Code
27709 status collapsed
27710
27711 \begin_layout Plain Layout
27712 class=`float float-floattype'
27713 \end_layout
27714
27715 \end_inset
27716
27717
27718 \begin_inset Quotes erd
27719 \end_inset
27720
27721 ,
27722  where 
27723 \begin_inset Flex Code
27724 status collapsed
27725
27726 \begin_layout Plain Layout
27727 floattype
27728 \end_layout
27729
27730 \end_inset
27731
27732  is \SpecialChar LyX
27733 's name for this type of float,
27734  as determined by the float declaration (see 
27735 \begin_inset CommandInset ref
27736 LatexCommand ref
27737 reference "subsec:Floats"
27738 nolink "false"
27739
27740 \end_inset
27741
27742 ),
27743  though made lowercase and with non-alphanumeric characters converted to underscores,
27744  for example:
27745  float-table.
27746 \end_layout
27747
27748 \begin_layout Description
27749 \begin_inset Flex Code
27750 status collapsed
27751
27752 \begin_layout Plain Layout
27753 HTMLStyle
27754 \end_layout
27755
27756 \end_inset
27757
27758  CSS style information to be included when this float is used.
27759  Note that this will automatically be wrapped in a layout-generated 
27760 \begin_inset Flex Code
27761 status collapsed
27762
27763 \begin_layout Plain Layout
27764 <style>
27765 \end_layout
27766
27767 \end_inset
27768
27769  block,
27770  so only the CSS itself need be included.
27771 \end_layout
27772
27773 \begin_layout Description
27774 \begin_inset Flex Code
27775 status collapsed
27776
27777 \begin_layout Plain Layout
27778 HTMLTag
27779 \end_layout
27780
27781 \end_inset
27782
27783  [
27784 \begin_inset Flex Code
27785 status collapsed
27786
27787 \begin_layout Plain Layout
27788 string
27789 \end_layout
27790
27791 \end_inset
27792
27793 ] The tag to be used for this float,
27794  replacing 
27795 \begin_inset Quotes eld
27796 \end_inset
27797
27798
27799 \begin_inset Flex Code
27800 status collapsed
27801
27802 \begin_layout Plain Layout
27803 tag
27804 \end_layout
27805
27806 \end_inset
27807
27808
27809 \begin_inset Quotes erd
27810 \end_inset
27811
27812  in the example above.
27813  The default is 
27814 \begin_inset Flex Code
27815 status collapsed
27816
27817 \begin_layout Plain Layout
27818 div
27819 \end_layout
27820
27821 \end_inset
27822
27823  and will rarely need changing.
27824 \end_layout
27825
27826 \begin_layout Subsection
27827 Bibliography formatting
27828 \end_layout
27829
27830 \begin_layout Standard
27831 The bibliography can be formatted using 
27832 \begin_inset Flex Code
27833 status collapsed
27834
27835 \begin_layout Plain Layout
27836 CiteFormat
27837 \end_layout
27838
27839 \end_inset
27840
27841  blocks.
27842  See 
27843 \begin_inset CommandInset ref
27844 LatexCommand ref
27845 reference "subsec:Citation-format-description"
27846 nolink "false"
27847
27848 \end_inset
27849
27850  for the details.
27851 \end_layout
27852
27853 \begin_layout Subsection
27854 \SpecialChar LyX
27855 -generated CSS
27856 \end_layout
27857
27858 \begin_layout Standard
27859 We have several times mentioned that \SpecialChar LyX
27860  will generate default CSS style rules for both insets and paragraph styles,
27861  based upon the other layout information that is provided.
27862  In this section,
27863  we shall say a word about which layout information \SpecialChar LyX
27864  uses and how.
27865 \end_layout
27866
27867 \begin_layout Standard
27868 At present,
27869  \SpecialChar LyX
27870  auto-generates CSS only for font information,
27871  making use of the 
27872 \begin_inset Flex Code
27873 status collapsed
27874
27875 \begin_layout Plain Layout
27876 Family
27877 \end_layout
27878
27879 \end_inset
27880
27881 ,
27882  
27883 \begin_inset Flex Code
27884 status collapsed
27885
27886 \begin_layout Plain Layout
27887 Series
27888 \end_layout
27889
27890 \end_inset
27891
27892 ,
27893  
27894 \begin_inset Flex Code
27895 status collapsed
27896
27897 \begin_layout Plain Layout
27898 Shape
27899 \end_layout
27900
27901 \end_inset
27902
27903 ,
27904  and 
27905 \begin_inset Flex Code
27906 status collapsed
27907
27908 \begin_layout Plain Layout
27909 Size
27910 \end_layout
27911
27912 \end_inset
27913
27914  specified in the 
27915 \begin_inset Flex Code
27916 status collapsed
27917
27918 \begin_layout Plain Layout
27919 Font
27920 \end_layout
27921
27922 \end_inset
27923
27924  declaration (see 
27925 \begin_inset CommandInset ref
27926 LatexCommand ref
27927 reference "subsec:Font-description"
27928 nolink "false"
27929
27930 \end_inset
27931
27932 ).
27933  The translation is mostly straightforward and obvious.
27934  For example,
27935  
27936 \begin_inset Quotes eld
27937 \end_inset
27938
27939
27940 \begin_inset Flex Code
27941 status collapsed
27942
27943 \begin_layout Plain Layout
27944 Family Sans
27945 \end_layout
27946
27947 \end_inset
27948
27949
27950 \begin_inset Quotes erd
27951 \end_inset
27952
27953  becomes 
27954 \begin_inset Quotes eld
27955 \end_inset
27956
27957
27958 \begin_inset Flex Code
27959 status collapsed
27960
27961 \begin_layout Plain Layout
27962 font-family:
27963  sans-serif;
27964 \end_layout
27965
27966 \end_inset
27967
27968
27969 \begin_inset Quotes erd
27970 \end_inset
27971
27972 .
27973  The correspondence of \SpecialChar LyX
27974  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
27975  See the 
27976 \begin_inset Flex Code
27977 status collapsed
27978
27979 \begin_layout Plain Layout
27980 getSizeCSS()
27981 \end_layout
27982
27983 \end_inset
27984
27985  function in 
27986 \begin_inset Flex URL
27987 status collapsed
27988
27989 \begin_layout Plain Layout
27990
27991 src/FontInfo.cpp
27992 \end_layout
27993
27994 \end_inset
27995
27996  for the details.
27997 \end_layout
27998
27999 \begin_layout Section
28000 \begin_inset CommandInset label
28001 LatexCommand label
28002 name "sec:Tags-for-DocBook"
28003
28004 \end_inset
28005
28006 Tags for DocBook output
28007 \end_layout
28008
28009 \begin_layout Standard
28010 As with \SpecialChar LaTeX
28011  or XHTML,
28012  the format of \SpecialChar LyX
28013 's DocBook output is also controlled by layout information.
28014  In general,
28015  \SpecialChar LyX
28016  provides sensible defaults;
28017  however,
28018  much of the styling is lost during the conversion,
28019  as DocBook is strictly semantic and does not allow formatting.
28020  When possible,
28021  information from \SpecialChar LyX
28022  will be rendered in 
28023 \family typewriter
28024 role
28025 \family default
28026  attributes.
28027 \end_layout
28028
28029 \begin_layout Standard
28030 In many cases,
28031  then,
28032  you may not have to do anything at all to get acceptable DocBook output for your own environments,
28033  custom insets,
28034  and so forth.
28035  But in some cases you will,
28036  and so \SpecialChar LyX
28037  provides a number of layout tags that can be used to customize the DocBook that is generated.
28038 \end_layout
28039
28040 \begin_layout Standard
28041 Labels are rarely output,
28042  as they are redundant in DocBook:
28043  this information is carried by the tags themselves,
28044  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
28045  However,
28046  sometimes,
28047  labels are not redundant content,
28048  such as definition lists:
28049  in this case,
28050  the term being defined will be the label.
28051 \end_layout
28052
28053 \begin_layout Subsection
28054 \begin_inset CommandInset label
28055 LatexCommand label
28056 name "subsec:Paragraph-Style-DocBook"
28057
28058 \end_inset
28059
28060 Paragraph styles
28061 \end_layout
28062
28063 \begin_layout Standard
28064 The sort of DocBook \SpecialChar LyX
28065  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
28066  a command,
28067  or an environment,
28068  where this is itself determined by the contents of the corresponding 
28069 \begin_inset Flex Code
28070 status collapsed
28071
28072 \begin_layout Plain Layout
28073 \SpecialChar LaTeX
28074 Type
28075 \end_layout
28076
28077 \end_inset
28078
28079  tag.
28080 \end_layout
28081
28082 \begin_layout Standard
28083 For a command or normal paragraph,
28084  the output DocBook has the following form:
28085 \end_layout
28086
28087 \begin_layout LyX-Code
28088 <tag attr>
28089 \end_layout
28090
28091 \begin_layout LyX-Code
28092 Contents of the paragraph.
28093 \end_layout
28094
28095 \begin_layout LyX-Code
28096 </tag>
28097 \end_layout
28098
28099 \begin_layout Standard
28100 For an environment that is not some sort of list,
28101  the generated DocBook takes this form:
28102 \end_layout
28103
28104 \begin_layout LyX-Code
28105 <tag attr>
28106 \end_layout
28107
28108 \begin_layout LyX-Code
28109 <itemtag>First paragraph.</itemtag>
28110 \end_layout
28111
28112 \begin_layout LyX-Code
28113 <itemtag>Second paragraph.</itemtag>
28114 \end_layout
28115
28116 \begin_layout LyX-Code
28117 </tag>
28118 \end_layout
28119
28120 \begin_layout Standard
28121 For a list,
28122  the resulting DocBook takes this form:
28123 \end_layout
28124
28125 \begin_layout LyX-Code
28126 <tag attr>
28127 \end_layout
28128
28129 \begin_layout LyX-Code
28130 <itemtag attr>First item.</itemtag>
28131 \end_layout
28132
28133 \begin_layout LyX-Code
28134 <itemtag attr>Second item.</itemtag>
28135 \end_layout
28136
28137 \begin_layout LyX-Code
28138 </tag>
28139 \end_layout
28140
28141 \begin_layout Standard
28142 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
28143  Please note that,
28144  due to the very nature of DocBook,
28145  no sensible defaults really exist,
28146  and the values must always be carefully chosen.
28147 \end_layout
28148
28149 \begin_layout Description
28150 \begin_inset Flex Code
28151 status collapsed
28152
28153 \begin_layout Plain Layout
28154 DocBookAttr
28155 \end_layout
28156
28157 \end_inset
28158
28159  [
28160 \begin_inset Flex Code
28161 status collapsed
28162
28163 \begin_layout Plain Layout
28164 string
28165 \end_layout
28166
28167 \end_inset
28168
28169 ] Specifies attribute information to be output with the main tag,
28170  replacing 
28171 \begin_inset Quotes eld
28172 \end_inset
28173
28174
28175 \begin_inset Flex Code
28176 status collapsed
28177
28178 \begin_layout Plain Layout
28179 attr
28180 \end_layout
28181
28182 \end_inset
28183
28184
28185 \begin_inset Quotes erd
28186 \end_inset
28187
28188  in the example above.
28189  This information can be used in further processing of the DocBook files.
28190 \end_layout
28191
28192 \begin_layout Description
28193 \begin_inset Flex Code
28194 status collapsed
28195
28196 \begin_layout Plain Layout
28197 DocBookTag
28198 \end_layout
28199
28200 \end_inset
28201
28202  [
28203 \begin_inset Flex Code
28204 status collapsed
28205
28206 \begin_layout Plain Layout
28207 string
28208 \end_layout
28209
28210 \end_inset
28211
28212 ] The tag to be used for this inset,
28213  replacing 
28214 \begin_inset Quotes eld
28215 \end_inset
28216
28217
28218 \begin_inset Flex Code
28219 status collapsed
28220
28221 \begin_layout Plain Layout
28222 tag
28223 \end_layout
28224
28225 \end_inset
28226
28227
28228 \begin_inset Quotes erd
28229 \end_inset
28230
28231  in the example above.
28232  The default is the name of the float and always needs to be changed,
28233  as DocBook provides no generic tag.
28234 \end_layout
28235
28236 \begin_layout Description
28237 \begin_inset Flex Code
28238 status collapsed
28239
28240 \begin_layout Plain Layout
28241 DocBookTagType
28242 \end_layout
28243
28244 \end_inset
28245
28246  [
28247 \begin_inset Flex Code
28248 status collapsed
28249
28250 \begin_layout Plain Layout
28251 block,
28252  paragraph,
28253  inline
28254 \end_layout
28255
28256 \end_inset
28257
28258 ] The new-line policy for this tag,
28259  see Section
28260 \begin_inset space ~
28261 \end_inset
28262
28263
28264 \begin_inset CommandInset ref
28265 LatexCommand ref
28266 reference "subsec:DocBook-New-line-policy"
28267 plural "false"
28268 caps "false"
28269 noprefix "false"
28270 nolink "false"
28271
28272 \end_inset
28273
28274  for the details.
28275 \end_layout
28276
28277 \begin_layout Subsection
28278 New-line policy
28279 \begin_inset CommandInset label
28280 LatexCommand label
28281 name "subsec:DocBook-New-line-policy"
28282
28283 \end_inset
28284
28285
28286 \end_layout
28287
28288 \begin_layout Standard
28289 For all tags,
28290  there are three possible policies for outputting new lines (given in the 
28291 \begin_inset Flex Code
28292 status collapsed
28293
28294 \begin_layout Plain Layout
28295 DocBook*TagType
28296 \end_layout
28297
28298 \end_inset
28299
28300  attribute):
28301 \end_layout
28302
28303 \begin_layout Itemize
28304 \begin_inset Quotes eld
28305 \end_inset
28306
28307
28308 \begin_inset Flex Code
28309 status collapsed
28310
28311 \begin_layout Plain Layout
28312 block
28313 \end_layout
28314
28315 \end_inset
28316
28317
28318 \begin_inset Quotes erd
28319 \end_inset
28320
28321 :
28322  the opening and closing tags are on their own lines (i.e.
28323  a line feed after and before the opening and the closing tags).
28324  Typical elements are floats.
28325  For instance:
28326 \end_layout
28327
28328 \begin_layout LyX-Code
28329 Content before
28330 \end_layout
28331
28332 \begin_layout LyX-Code
28333 <blocktag>
28334 \end_layout
28335
28336 \begin_layout LyX-Code
28337   Contents of the block.
28338 \end_layout
28339
28340 \begin_layout LyX-Code
28341 </blocktag>
28342 \end_layout
28343
28344 \begin_layout LyX-Code
28345 Content after
28346 \end_layout
28347
28348 \begin_layout Itemize
28349 \begin_inset Quotes eld
28350 \end_inset
28351
28352
28353 \begin_inset Flex Code
28354 status collapsed
28355
28356 \begin_layout Plain Layout
28357 paragraph
28358 \end_layout
28359
28360 \end_inset
28361
28362
28363 \begin_inset Quotes erd
28364 \end_inset
28365
28366 :
28367  the opening and closing tags are on the same,
28368  new line;
28369  a line feed is output before the opening tag and after the closing tag.
28370  Typical elements are paragraphs and list items.
28371  For instance:
28372 \end_layout
28373
28374 \begin_layout LyX-Code
28375 Content before
28376 \end_layout
28377
28378 \begin_layout LyX-Code
28379 <paratag>Contents of the paragraph.</paratag>
28380 \end_layout
28381
28382 \begin_layout LyX-Code
28383 Content after
28384 \end_layout
28385
28386 \begin_layout Itemize
28387 \begin_inset Quotes eld
28388 \end_inset
28389
28390
28391 \begin_inset Flex Code
28392 status collapsed
28393
28394 \begin_layout Plain Layout
28395 inline
28396 \end_layout
28397
28398 \end_inset
28399
28400
28401 \begin_inset Quotes erd
28402 \end_inset
28403
28404 :
28405  the opening and closing tags are on the same line as the rest of the content.
28406  No line feeds are output.
28407  Typical elements are fonts.
28408  For instance:
28409 \end_layout
28410
28411 \begin_layout LyX-Code
28412 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
28413 \end_layout
28414
28415 \begin_layout Standard
28416 The default value is always 
28417 \begin_inset Quotes eld
28418 \end_inset
28419
28420
28421 \begin_inset Flex Code
28422 status collapsed
28423
28424 \begin_layout Plain Layout
28425 block
28426 \end_layout
28427
28428 \end_inset
28429
28430
28431 \begin_inset Quotes erd
28432 \end_inset
28433
28434 .
28435 \end_layout
28436
28437 \begin_layout Subsection
28438 InsetLayout DocBook
28439 \end_layout
28440
28441 \begin_layout Standard
28442 The DocBook output of insets can also be controlled by information in layout files.
28443 \end_layout
28444
28445 \begin_layout Standard
28446 The DocBook \SpecialChar LyX
28447  outputs for an inset has the following form:
28448 \end_layout
28449
28450 \begin_layout LyX-Code
28451 <wrappertag wrapperattr>
28452 \end_layout
28453
28454 \begin_layout LyX-Code
28455   <tag attr>
28456 \end_layout
28457
28458 \begin_layout LyX-Code
28459     <innertag innerattr>
28460 \end_layout
28461
28462 \begin_layout LyX-Code
28463       Contents of the inset.
28464 \end_layout
28465
28466 \begin_layout LyX-Code
28467     </innertag>
28468 \end_layout
28469
28470 \begin_layout LyX-Code
28471   </tag>
28472 \end_layout
28473
28474 \begin_layout LyX-Code
28475 </wrappertag>
28476 \end_layout
28477
28478 \begin_layout Standard
28479 For an itemising inset,
28480  it rather looks like this:
28481 \end_layout
28482
28483 \begin_layout LyX-Code
28484 <wrappertag wrapperattr>
28485 \end_layout
28486
28487 \begin_layout LyX-Code
28488   <tag attr>
28489 \end_layout
28490
28491 \begin_layout LyX-Code
28492     <innertag innerattr>
28493 \end_layout
28494
28495 \begin_layout LyX-Code
28496       <itemwrappertag itemwrapperattr>
28497 \end_layout
28498
28499 \begin_layout LyX-Code
28500         <itemlabeltag itemattr>
28501 \end_layout
28502
28503 \begin_layout LyX-Code
28504           Label of the first item.
28505 \end_layout
28506
28507 \begin_layout LyX-Code
28508         </itemtag>
28509 \end_layout
28510
28511 \begin_layout LyX-Code
28512         <itemtag itemattr>
28513 \end_layout
28514
28515 \begin_layout LyX-Code
28516           <itemtag itemattr>
28517 \end_layout
28518
28519 \begin_layout LyX-Code
28520             Contents of the first item.
28521 \end_layout
28522
28523 \begin_layout LyX-Code
28524           </itemtag>
28525 \end_layout
28526
28527 \begin_layout LyX-Code
28528         </itemtag>
28529 \end_layout
28530
28531 \begin_layout LyX-Code
28532       </itemwrappertag>
28533 \end_layout
28534
28535 \begin_layout LyX-Code
28536       <itemwrappertag itemwrapperattr>
28537 \end_layout
28538
28539 \begin_layout LyX-Code
28540         <itemlabeltag itemattr>
28541 \end_layout
28542
28543 \begin_layout LyX-Code
28544           Label of the second item.
28545 \end_layout
28546
28547 \begin_layout LyX-Code
28548         </itemtag>
28549 \end_layout
28550
28551 \begin_layout LyX-Code
28552         <itemtag itemattr>
28553 \end_layout
28554
28555 \begin_layout LyX-Code
28556           <itemtag itemattr>
28557 \end_layout
28558
28559 \begin_layout LyX-Code
28560             Contents of the second item.
28561 \end_layout
28562
28563 \begin_layout LyX-Code
28564           </itemtag>
28565 \end_layout
28566
28567 \begin_layout LyX-Code
28568         </itemtag>
28569 \end_layout
28570
28571 \begin_layout LyX-Code
28572       </itemwrappertag>
28573 \end_layout
28574
28575 \begin_layout LyX-Code
28576       ...
28577 \end_layout
28578
28579 \begin_layout LyX-Code
28580     </innertag>
28581 \end_layout
28582
28583 \begin_layout LyX-Code
28584   </tag>
28585 \end_layout
28586
28587 \begin_layout LyX-Code
28588 </wrappertag>
28589 \end_layout
28590
28591 \begin_layout Standard
28592 If the inset permits multiple paragraphs—
28593 that is,
28594  if 
28595 \begin_inset Flex Code
28596 status collapsed
28597
28598 \begin_layout Plain Layout
28599 MultiPar
28600 \end_layout
28601
28602 \end_inset
28603
28604  is true—
28605 then the contents of the inset will themselves be output as paragraphs formatted according to the styles used for those paragraphs (standard,
28606  quote,
28607  and the like).
28608  The inner tag is optional and,
28609  by default,
28610  does not appear.
28611 \end_layout
28612
28613 \begin_layout Standard
28614 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
28615 \end_layout
28616
28617 \begin_layout Description
28618 \begin_inset Flex Code
28619 status collapsed
28620
28621 \begin_layout Plain Layout
28622 DocBookAttr
28623 \end_layout
28624
28625 \end_inset
28626
28627  [
28628 \begin_inset Flex Code
28629 status collapsed
28630
28631 \begin_layout Plain Layout
28632 string
28633 \end_layout
28634
28635 \end_inset
28636
28637 ] Specifies attribute information to be output with the main tag,
28638  replacing 
28639 \begin_inset Quotes eld
28640 \end_inset
28641
28642
28643 \begin_inset Flex Code
28644 status collapsed
28645
28646 \begin_layout Plain Layout
28647 attr
28648 \end_layout
28649
28650 \end_inset
28651
28652
28653 \begin_inset Quotes erd
28654 \end_inset
28655
28656  in the example above.
28657  This information can be used in further processing of the DocBook files.
28658 \end_layout
28659
28660 \begin_layout Description
28661 \begin_inset Flex Code
28662 status collapsed
28663
28664 \begin_layout Plain Layout
28665 DocBookInInfo
28666 \end_layout
28667
28668 \end_inset
28669
28670  [
28671 \begin_inset Flex Code
28672 status collapsed
28673
28674 \begin_layout Plain Layout
28675 never,
28676  always,
28677  maybe
28678 \end_layout
28679
28680 \end_inset
28681
28682 ] Specifies whether this tag goes into the 
28683 \begin_inset Flex Code
28684 status collapsed
28685
28686 \begin_layout Plain Layout
28687 <info>
28688 \end_layout
28689
28690 \end_inset
28691
28692  tag at the beginning of the parent layout.
28693  
28694 \begin_inset Flex Code
28695 status collapsed
28696
28697 \begin_layout Plain Layout
28698 never
28699 \end_layout
28700
28701 \end_inset
28702
28703  indicates that the tag never goes into 
28704 \begin_inset Flex Code
28705 status collapsed
28706
28707 \begin_layout Plain Layout
28708 <info>
28709 \end_layout
28710
28711 \end_inset
28712
28713  (this is default value,
28714  and corresponds to usual content).
28715  
28716 \begin_inset Flex Code
28717 status collapsed
28718
28719 \begin_layout Plain Layout
28720 always
28721 \end_layout
28722
28723 \end_inset
28724
28725  indicates that the tag always goes into 
28726 \begin_inset Flex Code
28727 status collapsed
28728
28729 \begin_layout Plain Layout
28730 <info>
28731 \end_layout
28732
28733 \end_inset
28734
28735  (this corresponds to usual metadata):
28736  if there is no 
28737 \begin_inset Flex Code
28738 status collapsed
28739
28740 \begin_layout Plain Layout
28741 <info>
28742 \end_layout
28743
28744 \end_inset
28745
28746  tag for the parent,
28747  one 
28748 \series bold
28749 will
28750 \series default
28751  be generated.
28752  
28753 \begin_inset Flex Code
28754 status collapsed
28755
28756 \begin_layout Plain Layout
28757 maybe
28758 \end_layout
28759
28760 \end_inset
28761
28762  indicates that the tag may go into 
28763 \begin_inset Flex Code
28764 status collapsed
28765
28766 \begin_layout Plain Layout
28767 <info>
28768 \end_layout
28769
28770 \end_inset
28771
28772  (this is only the case for titles):
28773  if there is no 
28774 \begin_inset Flex Code
28775 status collapsed
28776
28777 \begin_layout Plain Layout
28778 <info>
28779 \end_layout
28780
28781 \end_inset
28782
28783  tag for the parent,
28784  
28785 \series bold
28786 none
28787 \series default
28788  will be generated,
28789  the corresponding tag will be output directly as content.
28790 \end_layout
28791
28792 \begin_layout Description
28793 \begin_inset Flex Code
28794 status collapsed
28795
28796 \begin_layout Plain Layout
28797 DocBookItemAttr
28798 \end_layout
28799
28800 \end_inset
28801
28802  [
28803 \begin_inset Flex Code
28804 status collapsed
28805
28806 \begin_layout Plain Layout
28807 string
28808 \end_layout
28809
28810 \end_inset
28811
28812 ] Specifies attribute information to be output with the item tag,
28813  replacing 
28814 \begin_inset Quotes eld
28815 \end_inset
28816
28817
28818 \begin_inset Flex Code
28819 status collapsed
28820
28821 \begin_layout Plain Layout
28822 itemattr
28823 \end_layout
28824
28825 \end_inset
28826
28827
28828 \begin_inset Quotes erd
28829 \end_inset
28830
28831  in the example above.
28832  This information can be used in further processing of the DocBook files.
28833 \end_layout
28834
28835 \begin_layout Description
28836 \begin_inset Flex Code
28837 status collapsed
28838
28839 \begin_layout Plain Layout
28840 DocBookItemInnerAttr
28841 \end_layout
28842
28843 \end_inset
28844
28845  [
28846 \begin_inset Flex Code
28847 status collapsed
28848
28849 \begin_layout Plain Layout
28850 string
28851 \end_layout
28852
28853 \end_inset
28854
28855 ] Specifies attribute information to be output with the item inner tag,
28856  replacing 
28857 \begin_inset Quotes eld
28858 \end_inset
28859
28860
28861 \begin_inset Flex Code
28862 status collapsed
28863
28864 \begin_layout Plain Layout
28865 iteminnerattr
28866 \end_layout
28867
28868 \end_inset
28869
28870
28871 \begin_inset Quotes erd
28872 \end_inset
28873
28874  in the example above.
28875  This information can be used in further processing of the DocBook files.
28876 \end_layout
28877
28878 \begin_layout Description
28879 \begin_inset Flex Code
28880 status collapsed
28881
28882 \begin_layout Plain Layout
28883 DocBookItemInnerTag
28884 \end_layout
28885
28886 \end_inset
28887
28888  [
28889 \begin_inset Flex Code
28890 status collapsed
28891
28892 \begin_layout Plain Layout
28893 string
28894 \end_layout
28895
28896 \end_inset
28897
28898 ] The tag to be used for the item inner tag within the inset,
28899  replacing 
28900 \begin_inset Quotes eld
28901 \end_inset
28902
28903
28904 \begin_inset Flex Code
28905 status collapsed
28906
28907 \begin_layout Plain Layout
28908 iteminnertag
28909 \end_layout
28910
28911 \end_inset
28912
28913
28914 \begin_inset Quotes erd
28915 \end_inset
28916
28917  in the example above.
28918  The default is 
28919 \begin_inset Flex Code
28920 status collapsed
28921
28922 \begin_layout Plain Layout
28923 NONE
28924 \end_layout
28925
28926 \end_inset
28927
28928 ,
28929  indicating that there is no item inner tag:
28930  content is directly output without it for each itemised element.
28931  This parameter only makes sense when itemising layouts are used,
28932  such as lists.
28933  The most likely value is 
28934 \begin_inset Quotes eld
28935 \end_inset
28936
28937
28938 \begin_inset Flex Code
28939 status collapsed
28940
28941 \begin_layout Plain Layout
28942 para
28943 \end_layout
28944
28945 \end_inset
28946
28947
28948 \begin_inset Quotes erd
28949 \end_inset
28950
28951 .
28952 \begin_inset Newline newline
28953 \end_inset
28954
28955 When a list item is split using a new line,
28956  the item inner tag will be repeated for each part of the paragraph,
28957  parts being separated by new lines.
28958 \end_layout
28959
28960 \begin_layout Description
28961 \begin_inset Flex Code
28962 status collapsed
28963
28964 \begin_layout Plain Layout
28965 DocBookItemInnerTagType
28966 \end_layout
28967
28968 \end_inset
28969
28970  [
28971 \begin_inset Flex Code
28972 status collapsed
28973
28974 \begin_layout Plain Layout
28975 block,
28976  paragraph,
28977  inline
28978 \end_layout
28979
28980 \end_inset
28981
28982 ] The new-line policy for this tag,
28983  see Section
28984 \begin_inset space ~
28985 \end_inset
28986
28987
28988 \begin_inset CommandInset ref
28989 LatexCommand ref
28990 reference "subsec:DocBook-New-line-policy"
28991 plural "false"
28992 caps "false"
28993 noprefix "false"
28994 nolink "false"
28995
28996 \end_inset
28997
28998  for the details.
28999 \end_layout
29000
29001 \begin_layout Description
29002 \begin_inset Flex Code
29003 status collapsed
29004
29005 \begin_layout Plain Layout
29006 DocBookItemLabelAttr
29007 \end_layout
29008
29009 \end_inset
29010
29011  [
29012 \begin_inset Flex Code
29013 status collapsed
29014
29015 \begin_layout Plain Layout
29016 string
29017 \end_layout
29018
29019 \end_inset
29020
29021 ] Specifies attribute information to be output with the item label tag,
29022  replacing 
29023 \begin_inset Quotes eld
29024 \end_inset
29025
29026
29027 \begin_inset Flex Code
29028 status collapsed
29029
29030 \begin_layout Plain Layout
29031 itemlabelattr
29032 \end_layout
29033
29034 \end_inset
29035
29036
29037 \begin_inset Quotes erd
29038 \end_inset
29039
29040  in the example above.
29041  This information can be used in further processing of the DocBook files.
29042 \end_layout
29043
29044 \begin_layout Description
29045 \begin_inset Flex Code
29046 status collapsed
29047
29048 \begin_layout Plain Layout
29049 DocBookItemLabelTag
29050 \end_layout
29051
29052 \end_inset
29053
29054  [
29055 \begin_inset Flex Code
29056 status collapsed
29057
29058 \begin_layout Plain Layout
29059 string
29060 \end_layout
29061
29062 \end_inset
29063
29064 ] The tag to be used for the item label tag within the inset,
29065  replacing 
29066 \begin_inset Quotes eld
29067 \end_inset
29068
29069
29070 \begin_inset Flex Code
29071 status collapsed
29072
29073 \begin_layout Plain Layout
29074 itemlabeltag
29075 \end_layout
29076
29077 \end_inset
29078
29079
29080 \begin_inset Quotes erd
29081 \end_inset
29082
29083  in the example above.
29084  This parameter only makes sense when itemising layouts are used with a notion of labels,
29085  such as definition lists.
29086 \end_layout
29087
29088 \begin_layout Description
29089 \begin_inset Flex Code
29090 status collapsed
29091
29092 \begin_layout Plain Layout
29093 DocBookItemLabelTagType
29094 \end_layout
29095
29096 \end_inset
29097
29098  [
29099 \begin_inset Flex Code
29100 status collapsed
29101
29102 \begin_layout Plain Layout
29103 block,
29104  paragraph,
29105  inline
29106 \end_layout
29107
29108 \end_inset
29109
29110 ] The new-line policy for this tag,
29111  see Section
29112 \begin_inset space ~
29113 \end_inset
29114
29115
29116 \begin_inset CommandInset ref
29117 LatexCommand ref
29118 reference "subsec:DocBook-New-line-policy"
29119 plural "false"
29120 caps "false"
29121 noprefix "false"
29122 nolink "false"
29123
29124 \end_inset
29125
29126  for the details.
29127 \end_layout
29128
29129 \begin_layout Description
29130 \begin_inset Flex Code
29131 status collapsed
29132
29133 \begin_layout Plain Layout
29134 DocBookItemTag
29135 \end_layout
29136
29137 \end_inset
29138
29139  [
29140 \begin_inset Flex Code
29141 status collapsed
29142
29143 \begin_layout Plain Layout
29144 string
29145 \end_layout
29146
29147 \end_inset
29148
29149 ] The tag to be used for the item tag within the inset,
29150  replacing 
29151 \begin_inset Quotes eld
29152 \end_inset
29153
29154
29155 \begin_inset Flex Code
29156 status collapsed
29157
29158 \begin_layout Plain Layout
29159 itemtag
29160 \end_layout
29161
29162 \end_inset
29163
29164
29165 \begin_inset Quotes erd
29166 \end_inset
29167
29168  in the example above.
29169  The default is 
29170 \begin_inset Flex Code
29171 status collapsed
29172
29173 \begin_layout Plain Layout
29174 NONE
29175 \end_layout
29176
29177 \end_inset
29178
29179 ,
29180  indicating that there is no item tag.
29181  This parameter only makes sense when itemising layouts are used,
29182  such as lists.
29183 \end_layout
29184
29185 \begin_layout Description
29186 \begin_inset Flex Code
29187 status collapsed
29188
29189 \begin_layout Plain Layout
29190 DocBookItemTagType
29191 \end_layout
29192
29193 \end_inset
29194
29195  [
29196 \begin_inset Flex Code
29197 status collapsed
29198
29199 \begin_layout Plain Layout
29200 block,
29201  paragraph,
29202  inline
29203 \end_layout
29204
29205 \end_inset
29206
29207 ] The new-line policy for this tag,
29208  see Section
29209 \begin_inset space ~
29210 \end_inset
29211
29212
29213 \begin_inset CommandInset ref
29214 LatexCommand ref
29215 reference "subsec:DocBook-New-line-policy"
29216 plural "false"
29217 caps "false"
29218 noprefix "false"
29219 nolink "false"
29220
29221 \end_inset
29222
29223  for the details.
29224 \end_layout
29225
29226 \begin_layout Description
29227 \begin_inset Flex Code
29228 status collapsed
29229
29230 \begin_layout Plain Layout
29231 DocBookItemWrapperAttr
29232 \end_layout
29233
29234 \end_inset
29235
29236  [
29237 \begin_inset Flex Code
29238 status collapsed
29239
29240 \begin_layout Plain Layout
29241 string
29242 \end_layout
29243
29244 \end_inset
29245
29246 ] Specifies attribute information to be output with the item wrapper tag,
29247  replacing 
29248 \begin_inset Quotes eld
29249 \end_inset
29250
29251
29252 \begin_inset Flex Code
29253 status collapsed
29254
29255 \begin_layout Plain Layout
29256 itemwrapperattr
29257 \end_layout
29258
29259 \end_inset
29260
29261
29262 \begin_inset Quotes erd
29263 \end_inset
29264
29265  in the example above.
29266  This information can be used in further processing of the DocBook files.
29267 \end_layout
29268
29269 \begin_layout Description
29270 \begin_inset Flex Code
29271 status collapsed
29272
29273 \begin_layout Plain Layout
29274 DocBookItemWrapperTag
29275 \end_layout
29276
29277 \end_inset
29278
29279  [
29280 \begin_inset Flex Code
29281 status collapsed
29282
29283 \begin_layout Plain Layout
29284 string
29285 \end_layout
29286
29287 \end_inset
29288
29289 ] The tag to be used for the item wrapper tag within the inset,
29290  replacing 
29291 \begin_inset Quotes eld
29292 \end_inset
29293
29294
29295 \begin_inset Flex Code
29296 status collapsed
29297
29298 \begin_layout Plain Layout
29299 itemwrappertag
29300 \end_layout
29301
29302 \end_inset
29303
29304
29305 \begin_inset Quotes erd
29306 \end_inset
29307
29308  in the example above.
29309  The default is 
29310 \begin_inset Flex Code
29311 status collapsed
29312
29313 \begin_layout Plain Layout
29314 NONE
29315 \end_layout
29316
29317 \end_inset
29318
29319 ,
29320  indicating that there is no item wrapper tag:
29321  tag and content are directly output without it for each itemised element.
29322  This parameter only makes sense when itemising layouts are used,
29323  such as lists.
29324 \end_layout
29325
29326 \begin_layout Description
29327 \begin_inset Flex Code
29328 status collapsed
29329
29330 \begin_layout Plain Layout
29331 DocBookItemWrapperTagType
29332 \end_layout
29333
29334 \end_inset
29335
29336  [
29337 \begin_inset Flex Code
29338 status collapsed
29339
29340 \begin_layout Plain Layout
29341 block,
29342  paragraph,
29343  inline
29344 \end_layout
29345
29346 \end_inset
29347
29348 ] The new-line policy for this tag,
29349  see Section
29350 \begin_inset space ~
29351 \end_inset
29352
29353
29354 \begin_inset CommandInset ref
29355 LatexCommand ref
29356 reference "subsec:DocBook-New-line-policy"
29357 plural "false"
29358 caps "false"
29359 noprefix "false"
29360 nolink "false"
29361
29362 \end_inset
29363
29364  for the details.
29365 \end_layout
29366
29367 \begin_layout Description
29368 \begin_inset Flex Code
29369 status collapsed
29370
29371 \begin_layout Plain Layout
29372 DocBookInnerAttr
29373 \end_layout
29374
29375 \end_inset
29376
29377  [
29378 \begin_inset Flex Code
29379 status collapsed
29380
29381 \begin_layout Plain Layout
29382 string
29383 \end_layout
29384
29385 \end_inset
29386
29387 ] Specifies attribute information to be output with the inner tag,
29388  replacing 
29389 \begin_inset Quotes eld
29390 \end_inset
29391
29392
29393 \begin_inset Flex Code
29394 status collapsed
29395
29396 \begin_layout Plain Layout
29397 innerattr
29398 \end_layout
29399
29400 \end_inset
29401
29402
29403 \begin_inset Quotes erd
29404 \end_inset
29405
29406  in the example above.
29407  This information can be used in further processing of the DocBook files.
29408 \end_layout
29409
29410 \begin_layout Description
29411 \begin_inset Flex Code
29412 status collapsed
29413
29414 \begin_layout Plain Layout
29415 DocBookInnerTag
29416 \end_layout
29417
29418 \end_inset
29419
29420  [
29421 \begin_inset Flex Code
29422 status collapsed
29423
29424 \begin_layout Plain Layout
29425 string
29426 \end_layout
29427
29428 \end_inset
29429
29430 ] The tag to be used for the inner tag within the inset,
29431  replacing 
29432 \begin_inset Quotes eld
29433 \end_inset
29434
29435
29436 \begin_inset Flex Code
29437 status collapsed
29438
29439 \begin_layout Plain Layout
29440 innertag
29441 \end_layout
29442
29443 \end_inset
29444
29445
29446 \begin_inset Quotes erd
29447 \end_inset
29448
29449  in the example above.
29450  The default is 
29451 \begin_inset Flex Code
29452 status collapsed
29453
29454 \begin_layout Plain Layout
29455 NONE
29456 \end_layout
29457
29458 \end_inset
29459
29460 ,
29461  indicating that there is no inner tag:
29462  content is directly output without it.
29463 \end_layout
29464
29465 \begin_layout Description
29466 \begin_inset Flex Code
29467 status collapsed
29468
29469 \begin_layout Plain Layout
29470 DocBookInnerTagType
29471 \end_layout
29472
29473 \end_inset
29474
29475  [
29476 \begin_inset Flex Code
29477 status collapsed
29478
29479 \begin_layout Plain Layout
29480 block,
29481  paragraph,
29482  inline
29483 \end_layout
29484
29485 \end_inset
29486
29487 ] The new-line policy for this tag,
29488  see Section
29489 \begin_inset space ~
29490 \end_inset
29491
29492
29493 \begin_inset CommandInset ref
29494 LatexCommand ref
29495 reference "subsec:DocBook-New-line-policy"
29496 plural "false"
29497 caps "false"
29498 noprefix "false"
29499 nolink "false"
29500
29501 \end_inset
29502
29503  for the details.
29504 \end_layout
29505
29506 \begin_layout Description
29507 \begin_inset Flex Code
29508 status collapsed
29509
29510 \begin_layout Plain Layout
29511 DocBookSectionTag
29512 \end_layout
29513
29514 \end_inset
29515
29516  [
29517 \begin_inset Flex Code
29518 status collapsed
29519
29520 \begin_layout Plain Layout
29521 string
29522 \end_layout
29523
29524 \end_inset
29525
29526 ] Specifies the tag that corresponds to this kind of section.
29527  This parameter only makes sense for sectioning elements (part,
29528  chapter,
29529  section,
29530  etc.).
29531  The default value is 
29532 \begin_inset Flex Code
29533 status collapsed
29534
29535 \begin_layout Plain Layout
29536 section
29537 \end_layout
29538
29539 \end_inset
29540
29541 ,
29542  and is only overridden when DocBook uses something else for sectioning (typically,
29543  parts and chapters of a book).
29544 \end_layout
29545
29546 \begin_layout Description
29547 \begin_inset Flex Code
29548 status collapsed
29549
29550 \begin_layout Plain Layout
29551 DocBookTag
29552 \end_layout
29553
29554 \end_inset
29555
29556  [
29557 \begin_inset Flex Code
29558 status collapsed
29559
29560 \begin_layout Plain Layout
29561 string
29562 \end_layout
29563
29564 \end_inset
29565
29566 ] The tag to be used for this inset,
29567  replacing 
29568 \begin_inset Quotes eld
29569 \end_inset
29570
29571
29572 \begin_inset Flex Code
29573 status collapsed
29574
29575 \begin_layout Plain Layout
29576 tag
29577 \end_layout
29578
29579 \end_inset
29580
29581
29582 \begin_inset Quotes erd
29583 \end_inset
29584
29585  in the example above.
29586  The default is the name of the float and always needs to be changed,
29587  as DocBook provides no generic inset tag.
29588 \end_layout
29589
29590 \begin_layout Description
29591 \begin_inset Flex Code
29592 status collapsed
29593
29594 \begin_layout Plain Layout
29595 DocBookTagType
29596 \end_layout
29597
29598 \end_inset
29599
29600  [
29601 \begin_inset Flex Code
29602 status collapsed
29603
29604 \begin_layout Plain Layout
29605 block,
29606  paragraph,
29607  inline
29608 \end_layout
29609
29610 \end_inset
29611
29612 ] The new-line policy for this tag,
29613  see Section
29614 \begin_inset space ~
29615 \end_inset
29616
29617
29618 \begin_inset CommandInset ref
29619 LatexCommand ref
29620 reference "subsec:DocBook-New-line-policy"
29621 plural "false"
29622 caps "false"
29623 noprefix "false"
29624 nolink "false"
29625
29626 \end_inset
29627
29628  for the details.
29629 \end_layout
29630
29631 \begin_layout Description
29632 \begin_inset Flex Code
29633 status collapsed
29634
29635 \begin_layout Plain Layout
29636 DocBookWrapperAttr
29637 \end_layout
29638
29639 \end_inset
29640
29641  [
29642 \begin_inset Flex Code
29643 status collapsed
29644
29645 \begin_layout Plain Layout
29646 string
29647 \end_layout
29648
29649 \end_inset
29650
29651 ] Specifies attribute information to be output with the outer wrapper tag,
29652  replacing 
29653 \begin_inset Quotes eld
29654 \end_inset
29655
29656
29657 \begin_inset Flex Code
29658 status collapsed
29659
29660 \begin_layout Plain Layout
29661 wrapperattr
29662 \end_layout
29663
29664 \end_inset
29665
29666
29667 \begin_inset Quotes erd
29668 \end_inset
29669
29670  in the example above.
29671  This information can be used in further processing of the DocBook files.
29672 \end_layout
29673
29674 \begin_layout Description
29675 \begin_inset Flex Code
29676 status collapsed
29677
29678 \begin_layout Plain Layout
29679 DocBookWrapperTag
29680 \end_layout
29681
29682 \end_inset
29683
29684  [
29685 \begin_inset Flex Code
29686 status collapsed
29687
29688 \begin_layout Plain Layout
29689 string
29690 \end_layout
29691
29692 \end_inset
29693
29694 ] The tag to be used for the wrapper tag around the inset,
29695  replacing 
29696 \begin_inset Quotes eld
29697 \end_inset
29698
29699
29700 \begin_inset Flex Code
29701 status collapsed
29702
29703 \begin_layout Plain Layout
29704 wrappertag
29705 \end_layout
29706
29707 \end_inset
29708
29709
29710 \begin_inset Quotes erd
29711 \end_inset
29712
29713  in the example above.
29714  The default is 
29715 \begin_inset Flex Code
29716 status collapsed
29717
29718 \begin_layout Plain Layout
29719 NONE
29720 \end_layout
29721
29722 \end_inset
29723
29724 ,
29725  indicating that there is no wrapper tag:
29726  tag and content are directly output without it.
29727 \end_layout
29728
29729 \begin_layout Description
29730 \begin_inset Flex Code
29731 status collapsed
29732
29733 \begin_layout Plain Layout
29734 DocBookWrapperTagType
29735 \end_layout
29736
29737 \end_inset
29738
29739  [
29740 \begin_inset Flex Code
29741 status collapsed
29742
29743 \begin_layout Plain Layout
29744 block,
29745  paragraph,
29746  inline
29747 \end_layout
29748
29749 \end_inset
29750
29751 ] The new-line policy for this tag,
29752  see Section
29753 \begin_inset space ~
29754 \end_inset
29755
29756
29757 \begin_inset CommandInset ref
29758 LatexCommand ref
29759 reference "subsec:DocBook-New-line-policy"
29760 plural "false"
29761 caps "false"
29762 noprefix "false"
29763 nolink "false"
29764
29765 \end_inset
29766
29767  for the details.
29768 \end_layout
29769
29770 \begin_layout Subsection
29771 Float DocBook
29772 \end_layout
29773
29774 \begin_layout Standard
29775 The DocBook output for floats too can be controlled by layout information.
29776  The output has the following form:
29777 \end_layout
29778
29779 \begin_layout LyX-Code
29780 <tag attr>
29781 \end_layout
29782
29783 \begin_layout LyX-Code
29784   Contents of the float as DocBook.
29785 \end_layout
29786
29787 \begin_layout LyX-Code
29788 </tag>
29789 \end_layout
29790
29791 \begin_layout Standard
29792 The caption,
29793  if there is one,
29794  is a separate inset and will be output as a title.
29795 \end_layout
29796
29797 \begin_layout Description
29798 \begin_inset Flex Code
29799 status collapsed
29800
29801 \begin_layout Plain Layout
29802 DocBookAttr
29803 \end_layout
29804
29805 \end_inset
29806
29807  [
29808 \begin_inset Flex Code
29809 status collapsed
29810
29811 \begin_layout Plain Layout
29812 string
29813 \end_layout
29814
29815 \end_inset
29816
29817 ] Specifies attribute information to be output with the main tag,
29818  replacing 
29819 \begin_inset Quotes eld
29820 \end_inset
29821
29822
29823 \begin_inset Flex Code
29824 status collapsed
29825
29826 \begin_layout Plain Layout
29827 attr
29828 \end_layout
29829
29830 \end_inset
29831
29832
29833 \begin_inset Quotes erd
29834 \end_inset
29835
29836  in the example above.
29837  This information can be used in further processing of the DocBook files.
29838 \end_layout
29839
29840 \begin_layout Description
29841 \begin_inset Flex Code
29842 status collapsed
29843
29844 \begin_layout Plain Layout
29845 DocBookTag
29846 \end_layout
29847
29848 \end_inset
29849
29850  [
29851 \begin_inset Flex Code
29852 status collapsed
29853
29854 \begin_layout Plain Layout
29855 string
29856 \end_layout
29857
29858 \end_inset
29859
29860 ] The tag to be used for this float,
29861  replacing 
29862 \begin_inset Quotes eld
29863 \end_inset
29864
29865
29866 \begin_inset Flex Code
29867 status collapsed
29868
29869 \begin_layout Plain Layout
29870 tag
29871 \end_layout
29872
29873 \end_inset
29874
29875
29876 \begin_inset Quotes erd
29877 \end_inset
29878
29879  in the example above.
29880  The default is the name of the float and always needs to be changed,
29881  as DocBook provides no generic float tag.
29882 \end_layout
29883
29884 \begin_layout Subsection
29885 Bibliography formatting
29886 \end_layout
29887
29888 \begin_layout Standard
29889 Included bibliographies cannot be formatted:
29890  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file),
29891  using the 
29892 \begin_inset Flex Code
29893 status collapsed
29894
29895 \begin_layout Plain Layout
29896 biblioentry
29897 \end_layout
29898
29899 \end_inset
29900
29901  tag.
29902 \end_layout
29903
29904 \begin_layout Standard
29905 When the bibliographic entries are manually inserted into the \SpecialChar LyX
29906  document as Bibliography Items,
29907  the user deals with formatting themself:
29908  there is no attempt of parsing what the user wrote,
29909  the string is directly used (with the 
29910 \begin_inset Flex Code
29911 status collapsed
29912
29913 \begin_layout Plain Layout
29914 bibliomixed
29915 \end_layout
29916
29917 \end_inset
29918
29919  tag).
29920 \end_layout
29921
29922 \begin_layout Chapter
29923 Including External Material
29924 \begin_inset CommandInset label
29925 LatexCommand label
29926 name "chap:Including-External-Material"
29927
29928 \end_inset
29929
29930
29931 \end_layout
29932
29933 \begin_layout Standard
29934 \begin_inset Box Shadowbox
29935 position "t"
29936 hor_pos "c"
29937 has_inner_box 1
29938 inner_pos "t"
29939 use_parbox 0
29940 use_makebox 0
29941 width "100col%"
29942 special "none"
29943 height "1in"
29944 height_special "totalheight"
29945 thickness "0.4pt"
29946 separation "3pt"
29947 shadowsize "4pt"
29948 framecolor "black"
29949 backgroundcolor "none"
29950 status open
29951
29952 \begin_layout Plain Layout
29953 WARNING:
29954  This portion of the documentation has not been updated for some time.
29955  We certainly hope that it is still accurate,
29956  but there are no guarantees.
29957 \end_layout
29958
29959 \end_inset
29960
29961
29962 \end_layout
29963
29964 \begin_layout Standard
29965 The use of material from sources external to \SpecialChar LyX
29966  is covered in detail in the 
29967 \emph on
29968 Embedded Objects
29969 \emph default
29970  manual.
29971  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
29972 \end_layout
29973
29974 \begin_layout Section
29975 How does it work?
29976 \end_layout
29977
29978 \begin_layout Standard
29979 The external material feature is based on the concept of a 
29980 \emph on
29981 template
29982 \emph default
29983 .
29984  A template is a specification of how \SpecialChar LyX
29985  should interface with a certain kind of material.
29986  As bundled,
29987  \SpecialChar LyX
29988  comes with predefined templates for Xfig figures,
29989  various raster format images,
29990  chess diagrams,
29991  and LilyPond music notation.
29992  You can check the actual list by using the menu 
29993 \begin_inset Flex Noun
29994 status collapsed
29995
29996 \begin_layout Plain Layout
29997 Insert\SpecialChar menuseparator
29998 File\SpecialChar menuseparator
29999 External Material
30000 \end_layout
30001
30002 \end_inset
30003
30004 .
30005  Furthermore,
30006  it is possible to roll your own template to support a specific kind of material.
30007  Later we'll describe in more detail what is involved,
30008  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
30009  version.
30010 \end_layout
30011
30012 \begin_layout Standard
30013 Another basic idea of the external material feature is to distinguish between the original file that serves as a base for final material and the produced file that is included in your exported or printed document.
30014  For example,
30015  consider the case of a figure produced with 
30016 \begin_inset Flex Code
30017 status collapsed
30018
30019 \begin_layout Plain Layout
30020 Xfig
30021 \end_layout
30022
30023 \end_inset
30024
30025 .
30026  The Xfig application itself works on an original file with the 
30027 \begin_inset Flex Code
30028 status collapsed
30029
30030 \begin_layout Plain Layout
30031 .fig
30032 \end_layout
30033
30034 \end_inset
30035
30036  extension.
30037  Within Xfig,
30038  you create and change your figure,
30039  and when you are done,
30040  you save the 
30041 \begin_inset Flex Code
30042 status collapsed
30043
30044 \begin_layout Plain Layout
30045 fig
30046 \end_layout
30047
30048 \end_inset
30049
30050 -file.
30051  When you want to include the figure in your document,
30052  you invoke 
30053 \begin_inset Flex Code
30054 status collapsed
30055
30056 \begin_layout Plain Layout
30057 transfig
30058 \end_layout
30059
30060 \end_inset
30061
30062  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
30063  file.
30064  In this case,
30065  the 
30066 \begin_inset Flex Code
30067 status collapsed
30068
30069 \begin_layout Plain Layout
30070 .fig
30071 \end_layout
30072
30073 \end_inset
30074
30075  file is the original file,
30076  and the PostScript file is the produced file.
30077 \end_layout
30078
30079 \begin_layout Standard
30080 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
30081  Furthermore,
30082  it provides us with the flexibility that is needed to support multiple export formats.
30083  For instance,
30084  in the case of a plain text file,
30085  it is not exactly an award-winning idea to include the figure as raw PostScript.
30086  Instead,
30087  you would either prefer to just include a reference to the figure or try to invoke some graphics to ASCII converter to make the final result look similar to the real graphics.
30088  The external material management allows you to do this,
30089  because it is parametrized on the different export formats that \SpecialChar LyX
30090  supports.
30091 \end_layout
30092
30093 \begin_layout Standard
30094 Besides supporting the production of different products according to the exported format,
30095  it supports tight integration with editing and viewing applications.
30096  In the case of an Xfig figure,
30097  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
30098 ,
30099  and also preview the produced PostScript file with Ghostview with another click.
30100  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
30101  In this way,
30102  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
30103  and ultimately be more productive.
30104 \end_layout
30105
30106 \begin_layout Section
30107 The external template configuration files
30108 \end_layout
30109
30110 \begin_layout Standard
30111 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30112 .
30113  However,
30114  be aware that doing this in an careless manner most probably 
30115 \emph on
30116 will
30117 \emph default
30118  introduce an easily exploitable security hole.
30119  So before you do this,
30120  please read the discussion about security in 
30121 \begin_inset CommandInset ref
30122 LatexCommand ref
30123 reference "sec:Security-discussion"
30124 nolink "false"
30125
30126 \end_inset
30127
30128 .
30129 \end_layout
30130
30131 \begin_layout Standard
30132 Having said that,
30133  we encourage you to submit any interesting templates that you create.
30134  
30135 \end_layout
30136
30137 \begin_layout Standard
30138 The external templates are defined in the 
30139 \begin_inset Flex Code
30140 status collapsed
30141
30142 \begin_layout Plain Layout
30143 *.xtemplate
30144 \end_layout
30145
30146 \end_inset
30147
30148  files that are stored in the 
30149 \begin_inset Flex Code
30150 status collapsed
30151
30152 \begin_layout Plain Layout
30153 LyXDir/lib/xtemplates/
30154 \end_layout
30155
30156 \end_inset
30157
30158  directory.
30159  Each template is defined in a file of its own.
30160  You can place your own templates in 
30161 \begin_inset Flex Code
30162 status collapsed
30163
30164 \begin_layout Plain Layout
30165 UserDir/xtemplates/
30166 \end_layout
30167
30168 \end_inset
30169
30170  or copy existing templates to that directory in order to modify them.
30171 \end_layout
30172
30173 \begin_layout Standard
30174 A typical template looks like this:
30175 \end_layout
30176
30177 \begin_layout LyX-Code
30178 Template XFig
30179 \end_layout
30180
30181 \begin_layout LyX-Code
30182 GuiName "XFig:
30183  $$AbsOrRelPathParent$$Basename"
30184 \end_layout
30185
30186 \begin_layout LyX-Code
30187 HelpText
30188 \end_layout
30189
30190 \begin_layout LyX-Code
30191 An XFig figure.
30192 \end_layout
30193
30194 \begin_layout LyX-Code
30195 HelpTextEnd
30196 \end_layout
30197
30198 \begin_layout LyX-Code
30199 InputFormat fig
30200 \end_layout
30201
30202 \begin_layout LyX-Code
30203 FileFilter "*.fig"
30204 \end_layout
30205
30206 \begin_layout LyX-Code
30207 AutomaticProduction true
30208 \end_layout
30209
30210 \begin_layout LyX-Code
30211 Transform Rotate
30212 \end_layout
30213
30214 \begin_layout LyX-Code
30215 Transform Resize
30216 \end_layout
30217
30218 \begin_layout LyX-Code
30219 Format LaTeX
30220 \end_layout
30221
30222 \begin_layout LyX-Code
30223 TransformCommand Rotate RotationLatexCommand
30224 \end_layout
30225
30226 \begin_layout LyX-Code
30227 TransformCommand Resize ResizeLatexCommand
30228 \end_layout
30229
30230 \begin_layout LyX-Code
30231 Product "$$RotateFront$$ResizeFront
30232 \end_layout
30233
30234 \begin_layout LyX-Code
30235          
30236 \backslash
30237
30238 \backslash
30239 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30240 \end_layout
30241
30242 \begin_layout LyX-Code
30243          $$ResizeBack$$RotateBack"
30244 \end_layout
30245
30246 \begin_layout LyX-Code
30247 UpdateFormat pstex
30248 \end_layout
30249
30250 \begin_layout LyX-Code
30251 UpdateResult "$$AbsPath$$Basename.pstex_t"
30252 \end_layout
30253
30254 \begin_layout LyX-Code
30255 Requirement "graphicx"
30256 \end_layout
30257
30258 \begin_layout LyX-Code
30259 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30260 \end_layout
30261
30262 \begin_layout LyX-Code
30263 ReferencedFile latex "$$AbsPath$$Basename.eps"
30264 \end_layout
30265
30266 \begin_layout LyX-Code
30267 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30268 \end_layout
30269
30270 \begin_layout LyX-Code
30271 FormatEnd
30272 \end_layout
30273
30274 \begin_layout LyX-Code
30275 Format PDFLaTeX
30276 \end_layout
30277
30278 \begin_layout LyX-Code
30279 TransformCommand Rotate RotationLatexCommand
30280 \end_layout
30281
30282 \begin_layout LyX-Code
30283 TransformCommand Resize ResizeLatexCommand
30284 \end_layout
30285
30286 \begin_layout LyX-Code
30287 Product "$$RotateFront$$ResizeFront
30288 \end_layout
30289
30290 \begin_layout LyX-Code
30291          
30292 \backslash
30293
30294 \backslash
30295 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30296 \end_layout
30297
30298 \begin_layout LyX-Code
30299          $$ResizeBack$$RotateBack"
30300 \end_layout
30301
30302 \begin_layout LyX-Code
30303 UpdateFormat pdftex
30304 \end_layout
30305
30306 \begin_layout LyX-Code
30307 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30308 \end_layout
30309
30310 \begin_layout LyX-Code
30311 Requirement "graphicx"
30312 \end_layout
30313
30314 \begin_layout LyX-Code
30315 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30316 \end_layout
30317
30318 \begin_layout LyX-Code
30319 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30320 \end_layout
30321
30322 \begin_layout LyX-Code
30323 FormatEnd
30324 \end_layout
30325
30326 \begin_layout LyX-Code
30327 Format Ascii
30328 \end_layout
30329
30330 \begin_layout LyX-Code
30331 Product "[XFig:
30332  $$FName]"
30333 \end_layout
30334
30335 \begin_layout LyX-Code
30336 FormatEnd
30337 \end_layout
30338
30339 \begin_layout LyX-Code
30340 Format DocBook
30341 \end_layout
30342
30343 \begin_layout LyX-Code
30344 Product "<graphic fileref=
30345 \backslash
30346 "$$AbsOrRelPathMaster$$Basename.eps
30347 \backslash
30348 ">
30349 \end_layout
30350
30351 \begin_layout LyX-Code
30352          </graphic>"
30353 \end_layout
30354
30355 \begin_layout LyX-Code
30356 UpdateFormat eps
30357 \end_layout
30358
30359 \begin_layout LyX-Code
30360 UpdateResult "$$AbsPath$$Basename.eps"
30361 \end_layout
30362
30363 \begin_layout LyX-Code
30364 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30365 \end_layout
30366
30367 \begin_layout LyX-Code
30368 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30369 \end_layout
30370
30371 \begin_layout LyX-Code
30372 FormatEnd
30373 \end_layout
30374
30375 \begin_layout LyX-Code
30376 TemplateEnd
30377 \end_layout
30378
30379 \begin_layout Standard
30380 As you can see,
30381  the template is enclosed in 
30382 \begin_inset Flex Code
30383 status collapsed
30384
30385 \begin_layout Plain Layout
30386 Template
30387 \end_layout
30388
30389 \end_inset
30390
30391  \SpecialChar ldots
30392  
30393 \begin_inset Flex Code
30394 status collapsed
30395
30396 \begin_layout Plain Layout
30397 TemplateEnd
30398 \end_layout
30399
30400 \end_inset
30401
30402 .
30403  It contains a header specifying some general settings and,
30404  for each supported primary document file format,
30405  a section 
30406 \begin_inset Flex Code
30407 status collapsed
30408
30409 \begin_layout Plain Layout
30410 Format
30411 \end_layout
30412
30413 \end_inset
30414
30415  \SpecialChar ldots
30416  
30417 \begin_inset Flex Code
30418 status collapsed
30419
30420 \begin_layout Plain Layout
30421 FormatEnd
30422 \end_layout
30423
30424 \end_inset
30425
30426 .
30427 \end_layout
30428
30429 \begin_layout Subsection
30430 The template header
30431 \end_layout
30432
30433 \begin_layout Description
30434 \begin_inset Flex Code
30435 status collapsed
30436
30437 \begin_layout Plain Layout
30438 AutomaticProduction
30439 \begin_inset space ~
30440 \end_inset
30441
30442 true|false
30443 \end_layout
30444
30445 \end_inset
30446
30447  Whether the file represented by the template must be generated by \SpecialChar LyX
30448 .
30449  This command must occur exactly once.
30450 \end_layout
30451
30452 \begin_layout Description
30453 \begin_inset Flex Code
30454 status collapsed
30455
30456 \begin_layout Plain Layout
30457 FileFilter
30458 \begin_inset space ~
30459 \end_inset
30460
30461 <pattern>
30462 \end_layout
30463
30464 \end_inset
30465
30466  A glob pattern that is used in the file dialog to filter out the desired files.
30467  If there is more than one possible file extension (e.
30468 \begin_inset space \thinspace{}
30469 \end_inset
30470
30471 g.
30472 \begin_inset space \space{}
30473 \end_inset
30474
30475 tgif has 
30476 \begin_inset Flex Code
30477 status collapsed
30478
30479 \begin_layout Plain Layout
30480 .obj
30481 \end_layout
30482
30483 \end_inset
30484
30485  and 
30486 \begin_inset Flex Code
30487 status collapsed
30488
30489 \begin_layout Plain Layout
30490 .tgo
30491 \end_layout
30492
30493 \end_inset
30494
30495 ),
30496  use something like 
30497 \begin_inset Flex Code
30498 status collapsed
30499
30500 \begin_layout Plain Layout
30501 "*.{obj,tgo}"
30502 \end_layout
30503
30504 \end_inset
30505
30506 .
30507  This command must occur exactly once.
30508 \end_layout
30509
30510 \begin_layout Description
30511 \begin_inset Flex Code
30512 status collapsed
30513
30514 \begin_layout Plain Layout
30515 GuiName
30516 \begin_inset space ~
30517 \end_inset
30518
30519 <guiname>
30520 \end_layout
30521
30522 \end_inset
30523
30524  The text that is displayed on the button.
30525  This command must occur exactly once.
30526 \end_layout
30527
30528 \begin_layout Description
30529 \begin_inset Flex Code
30530 status collapsed
30531
30532 \begin_layout Plain Layout
30533 HelpText
30534 \begin_inset space ~
30535 \end_inset
30536
30537 <text>
30538 \begin_inset space ~
30539 \end_inset
30540
30541 HelpTextEnd
30542 \end_layout
30543
30544 \end_inset
30545
30546  The help text that is used in the External dialog.
30547  Provide enough information to explain to the user just what the template can provide him with.
30548  This command must occur exactly once.
30549 \end_layout
30550
30551 \begin_layout Description
30552 \begin_inset Flex Code
30553 status collapsed
30554
30555 \begin_layout Plain Layout
30556 InputFormat
30557 \begin_inset space ~
30558 \end_inset
30559
30560 <format>
30561 \end_layout
30562
30563 \end_inset
30564
30565  The file format of the original file.
30566  This must be the name of a format that is known to \SpecialChar LyX
30567  (see 
30568 \begin_inset CommandInset ref
30569 LatexCommand ref
30570 reference "sec:Formats"
30571 nolink "false"
30572
30573 \end_inset
30574
30575 ).
30576  Use 
30577 \begin_inset Quotes eld
30578 \end_inset
30579
30580
30581 \begin_inset Flex Code
30582 status collapsed
30583
30584 \begin_layout Plain Layout
30585 *
30586 \end_layout
30587
30588 \end_inset
30589
30590
30591 \begin_inset Quotes erd
30592 \end_inset
30593
30594  if the template can handle original files of more than one format.
30595  \SpecialChar LyX
30596  will attempt to interrogate the file itself in order to deduce its format in this case.
30597  This command must occur exactly once.
30598 \end_layout
30599
30600 \begin_layout Description
30601 \begin_inset Flex Code
30602 status collapsed
30603
30604 \begin_layout Plain Layout
30605 Template
30606 \begin_inset space ~
30607 \end_inset
30608
30609 <id>
30610 \end_layout
30611
30612 \end_inset
30613
30614  A unique name for the template.
30615  It must not contain substitution macros (see below).
30616 \end_layout
30617
30618 \begin_layout Description
30619 \begin_inset Flex Code
30620 status collapsed
30621
30622 \begin_layout Plain Layout
30623 Transform
30624 \begin_inset space ~
30625 \end_inset
30626
30627 Rotate|Resize|Clip|Extra
30628 \end_layout
30629
30630 \end_inset
30631
30632  This command specifies which transformations are supported by this template.
30633  It may occur zero or more times.
30634  This command enables the corresponding tabs in the external dialog.
30635  Each 
30636 \begin_inset Flex Code
30637 status collapsed
30638
30639 \begin_layout Plain Layout
30640 Transform
30641 \end_layout
30642
30643 \end_inset
30644
30645  command must have either a corresponding 
30646 \begin_inset Flex Code
30647 status collapsed
30648
30649 \begin_layout Plain Layout
30650 TransformCommand
30651 \end_layout
30652
30653 \end_inset
30654
30655  or a 
30656 \begin_inset Flex Code
30657 status collapsed
30658
30659 \begin_layout Plain Layout
30660 TransformOption
30661 \end_layout
30662
30663 \end_inset
30664
30665  command in the 
30666 \begin_inset Flex Code
30667 status collapsed
30668
30669 \begin_layout Plain Layout
30670 Format
30671 \end_layout
30672
30673 \end_inset
30674
30675  section.
30676  Otherwise the transformation will not be supported by that format.
30677 \end_layout
30678
30679 \begin_layout Subsection
30680 The Format section
30681 \end_layout
30682
30683 \begin_layout Description
30684 \begin_inset Flex Code
30685 status collapsed
30686
30687 \begin_layout Plain Layout
30688 Format
30689 \begin_inset space ~
30690 \end_inset
30691
30692 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
30693 \end_layout
30694
30695 \end_inset
30696
30697  The primary document file format that this format definition is for.
30698  Not every template has a sensible representation in all document file formats.
30699  Please define nevertheless a 
30700 \begin_inset Flex Code
30701 status collapsed
30702
30703 \begin_layout Plain Layout
30704 Format
30705 \end_layout
30706
30707 \end_inset
30708
30709  section for all templates.
30710  Use a dummy text when no representation is available.
30711  Then you can at least see a reference to the external material in the exported document.
30712 \end_layout
30713
30714 \begin_layout Description
30715 \begin_inset Flex Code
30716 status collapsed
30717
30718 \begin_layout Plain Layout
30719 Option
30720 \begin_inset space ~
30721 \end_inset
30722
30723 <name>
30724 \begin_inset space ~
30725 \end_inset
30726
30727 <value>
30728 \end_layout
30729
30730 \end_inset
30731
30732  This command defines an additional macro 
30733 \begin_inset Flex Code
30734 status collapsed
30735
30736 \begin_layout Plain Layout
30737 $$<name>
30738 \end_layout
30739
30740 \end_inset
30741
30742  for substitution in 
30743 \begin_inset Flex Code
30744 status collapsed
30745
30746 \begin_layout Plain Layout
30747 Product
30748 \end_layout
30749
30750 \end_inset
30751
30752 .
30753  
30754 \begin_inset Flex Code
30755 status collapsed
30756
30757 \begin_layout Plain Layout
30758 <value>
30759 \end_layout
30760
30761 \end_inset
30762
30763  itself may contain substitution macros.
30764  The advantage over using 
30765 \begin_inset Flex Code
30766 status collapsed
30767
30768 \begin_layout Plain Layout
30769 <value>
30770 \end_layout
30771
30772 \end_inset
30773
30774  directly in 
30775 \begin_inset Flex Code
30776 status collapsed
30777
30778 \begin_layout Plain Layout
30779 Product
30780 \end_layout
30781
30782 \end_inset
30783
30784  is that the substituted value of 
30785 \begin_inset Flex Code
30786 status collapsed
30787
30788 \begin_layout Plain Layout
30789 $$<name>
30790 \end_layout
30791
30792 \end_inset
30793
30794  is sanitized so that it is a valid optional argument in the document format.
30795  This command may occur zero or more times.
30796 \end_layout
30797
30798 \begin_layout Description
30799 \begin_inset Flex Code
30800 status collapsed
30801
30802 \begin_layout Plain Layout
30803 Product
30804 \begin_inset space ~
30805 \end_inset
30806
30807 <text>
30808 \end_layout
30809
30810 \end_inset
30811
30812  The text that is inserted in the exported document.
30813  This is actually the most important command and can be quite complex.
30814  This command must occur exactly once.
30815 \end_layout
30816
30817 \begin_layout Description
30818 \begin_inset Flex Code
30819 status collapsed
30820
30821 \begin_layout Plain Layout
30822 Preamble
30823 \begin_inset space ~
30824 \end_inset
30825
30826 <name>
30827 \end_layout
30828
30829 \end_inset
30830
30831  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
30832  preamble.
30833  It has to be defined using 
30834 \begin_inset Flex Code
30835 status collapsed
30836
30837 \begin_layout Plain Layout
30838 PreambleDef
30839 \end_layout
30840
30841 \end_inset
30842
30843  \SpecialChar ldots
30844  
30845 \begin_inset Flex Code
30846 status collapsed
30847
30848 \begin_layout Plain Layout
30849 PreambleDefEnd
30850 \end_layout
30851
30852 \end_inset
30853
30854 .
30855  This command may occur zero or more times.
30856 \end_layout
30857
30858 \begin_layout Description
30859 \begin_inset Flex Code
30860 status collapsed
30861
30862 \begin_layout Plain Layout
30863 ReferencedFile
30864 \begin_inset space ~
30865 \end_inset
30866
30867 <format>
30868 \begin_inset space ~
30869 \end_inset
30870
30871 <filename>
30872 \end_layout
30873
30874 \end_inset
30875
30876  This command denotes files that are created by the conversion process and are needed for a particular export format.
30877  If the filename is relative,
30878  it is interpreted relative to the master document.
30879  This command may be given zero or more times.
30880 \end_layout
30881
30882 \begin_layout Description
30883 \begin_inset Flex Code
30884 status collapsed
30885
30886 \begin_layout Plain Layout
30887 Requirement
30888 \begin_inset space ~
30889 \end_inset
30890
30891 <package>
30892 \end_layout
30893
30894 \end_inset
30895
30896  The name of a required \SpecialChar LaTeX
30897  package.
30898  The package is included via 
30899 \begin_inset Flex Code
30900 status collapsed
30901
30902 \begin_layout Plain Layout
30903
30904 \backslash
30905 usepackage{}
30906 \end_layout
30907
30908 \end_inset
30909
30910  in the \SpecialChar LaTeX
30911  preamble.
30912  This command may occur zero or more times.
30913 \end_layout
30914
30915 \begin_layout Description
30916 \begin_inset Flex Code
30917 status collapsed
30918
30919 \begin_layout Plain Layout
30920 TransformCommand
30921 \begin_inset space ~
30922 \end_inset
30923
30924 Rotate
30925 \begin_inset space ~
30926 \end_inset
30927
30928 RotationLatexCommand
30929 \end_layout
30930
30931 \end_inset
30932
30933  This command specifies that the built in \SpecialChar LaTeX
30934  command should be used for rotation.
30935  This command may occur once or not at all.
30936 \end_layout
30937
30938 \begin_layout Description
30939 \begin_inset Flex Code
30940 status collapsed
30941
30942 \begin_layout Plain Layout
30943 TransformCommand
30944 \begin_inset space ~
30945 \end_inset
30946
30947 Resize
30948 \begin_inset space ~
30949 \end_inset
30950
30951 ResizeLatexCommand
30952 \end_layout
30953
30954 \end_inset
30955
30956  This command specifies that the built in \SpecialChar LaTeX
30957  command should be used for resizing.
30958  This command may occur once or not at all.
30959 \end_layout
30960
30961 \begin_layout Description
30962 \begin_inset Flex Code
30963 status collapsed
30964
30965 \begin_layout Plain Layout
30966 TransformOption
30967 \begin_inset space ~
30968 \end_inset
30969
30970 Rotate
30971 \begin_inset space ~
30972 \end_inset
30973
30974 RotationLatexOption
30975 \end_layout
30976
30977 \end_inset
30978
30979  This command specifies that rotation is done via an optional argument.
30980  This command may occur once or not at all.
30981 \end_layout
30982
30983 \begin_layout Description
30984 \begin_inset Flex Code
30985 status collapsed
30986
30987 \begin_layout Plain Layout
30988 TransformOption
30989 \begin_inset space ~
30990 \end_inset
30991
30992 Resize
30993 \begin_inset space ~
30994 \end_inset
30995
30996 ResizeLatexOption
30997 \end_layout
30998
30999 \end_inset
31000
31001  This command specifies that resizing is done via an optional argument.
31002  This command may occur once or not at all.
31003 \end_layout
31004
31005 \begin_layout Description
31006 \begin_inset Flex Code
31007 status collapsed
31008
31009 \begin_layout Plain Layout
31010 TransformOption
31011 \begin_inset space ~
31012 \end_inset
31013
31014 Clip
31015 \begin_inset space ~
31016 \end_inset
31017
31018 ClipLatexOption
31019 \end_layout
31020
31021 \end_inset
31022
31023  This command specifies that clipping is done via an optional argument.
31024  This command may occur once or not at all.
31025 \end_layout
31026
31027 \begin_layout Description
31028 \begin_inset Flex Code
31029 status collapsed
31030
31031 \begin_layout Plain Layout
31032 TransformOption
31033 \begin_inset space ~
31034 \end_inset
31035
31036 Extra
31037 \begin_inset space ~
31038 \end_inset
31039
31040 ExtraLatexOption
31041 \end_layout
31042
31043 \end_inset
31044
31045  This command specifies that an extra optional argument is used.
31046  This command may occur once or not at all.
31047 \end_layout
31048
31049 \begin_layout Description
31050 \begin_inset Flex Code
31051 status collapsed
31052
31053 \begin_layout Plain Layout
31054 UpdateFormat
31055 \begin_inset space ~
31056 \end_inset
31057
31058 <format>
31059 \end_layout
31060
31061 \end_inset
31062
31063  The file format of the converted file.
31064  This must be the name of a format that is known to \SpecialChar LyX
31065  (see the 
31066 \begin_inset Flex Noun
31067 status collapsed
31068
31069 \begin_layout Plain Layout
31070 Tools\SpecialChar menuseparator
31071 Preferences\SpecialChar menuseparator
31072 File Handling\SpecialChar menuseparator
31073 File Format
31074 \end_layout
31075
31076 \end_inset
31077
31078  dialog).
31079  This command must occur exactly once.
31080  If the resulting file format is PDF,
31081  you need to specify the format 
31082 \begin_inset Flex Code
31083 status collapsed
31084
31085 \begin_layout Plain Layout
31086 pdf6
31087 \end_layout
31088
31089 \end_inset
31090
31091 .
31092  This is the PDF format used for including graphics.
31093  The other defined PDF formats are for document export.
31094 \end_layout
31095
31096 \begin_layout Description
31097 \begin_inset Flex Code
31098 status collapsed
31099
31100 \begin_layout Plain Layout
31101 UpdateResult
31102 \begin_inset space ~
31103 \end_inset
31104
31105 <filename>
31106 \end_layout
31107
31108 \end_inset
31109
31110  The file name of the converted file.
31111  The file name must be absolute.
31112  This command must occur exactly once.
31113 \end_layout
31114
31115 \begin_layout Subsection
31116 Preamble definitions
31117 \end_layout
31118
31119 \begin_layout Standard
31120 The external template configuration file may contain additional preamble definitions enclosed by 
31121 \begin_inset Flex Code
31122 status collapsed
31123
31124 \begin_layout Plain Layout
31125 PreambleDef
31126 \end_layout
31127
31128 \end_inset
31129
31130  \SpecialChar ldots
31131  
31132 \begin_inset Flex Code
31133 status collapsed
31134
31135 \begin_layout Plain Layout
31136 PreambleDefEnd
31137 \end_layout
31138
31139 \end_inset
31140
31141 .
31142  They can be used by the templates in the 
31143 \begin_inset Flex Code
31144 status collapsed
31145
31146 \begin_layout Plain Layout
31147 Format
31148 \end_layout
31149
31150 \end_inset
31151
31152  section.
31153 \end_layout
31154
31155 \begin_layout Section
31156 The substitution mechanism
31157 \end_layout
31158
31159 \begin_layout Standard
31160 When the external material facility invokes an external program,
31161  it is done on the basis of a command defined in the template configuration file.
31162  These commands can contain various macros that are expanded before execution.
31163  Execution always take place in the directory of the containing document.
31164 \end_layout
31165
31166 \begin_layout Standard
31167 Also,
31168  whenever external material is to be displayed,
31169  the name will be produced by the substitution mechanism,
31170  and most other commands in the template definition support substitution as well.
31171 \end_layout
31172
31173 \begin_layout Standard
31174 The available macros are the following:
31175 \end_layout
31176
31177 \begin_layout Description
31178 \begin_inset Flex Code
31179 status collapsed
31180
31181 \begin_layout Plain Layout
31182 $$AbsOrRelPathMaster
31183 \end_layout
31184
31185 \end_inset
31186
31187  The file path,
31188  absolute or relative to the master \SpecialChar LyX
31189  document.
31190 \end_layout
31191
31192 \begin_layout Description
31193 \begin_inset Flex Code
31194 status collapsed
31195
31196 \begin_layout Plain Layout
31197 $$AbsOrRelPathParent
31198 \end_layout
31199
31200 \end_inset
31201
31202  The file path,
31203  absolute or relative to the \SpecialChar LyX
31204  document.
31205 \end_layout
31206
31207 \begin_layout Description
31208 \begin_inset Flex Code
31209 status collapsed
31210
31211 \begin_layout Plain Layout
31212 $$AbsPath
31213 \end_layout
31214
31215 \end_inset
31216
31217  The absolute file path.
31218 \end_layout
31219
31220 \begin_layout Description
31221 \begin_inset Flex Code
31222 status collapsed
31223
31224 \begin_layout Plain Layout
31225 $$Basename
31226 \end_layout
31227
31228 \end_inset
31229
31230  The filename without path and without the extension.
31231 \end_layout
31232
31233 \begin_layout Description
31234 \begin_inset Flex Code
31235 status collapsed
31236
31237 \begin_layout Plain Layout
31238 $$Contents(
31239 \begin_inset Quotes eld
31240 \end_inset
31241
31242 filename.ext
31243 \begin_inset Quotes erd
31244 \end_inset
31245
31246 )
31247 \end_layout
31248
31249 \end_inset
31250
31251  This macro will expand to the contents of the file with the name 
31252 \begin_inset Flex Code
31253 status collapsed
31254
31255 \begin_layout Plain Layout
31256 filename.ext
31257 \end_layout
31258
31259 \end_inset
31260
31261 .
31262 \end_layout
31263
31264 \begin_layout Description
31265 \begin_inset Flex Code
31266 status collapsed
31267
31268 \begin_layout Plain Layout
31269 $$Extension
31270 \end_layout
31271
31272 \end_inset
31273
31274  The file extension (including the dot).
31275 \end_layout
31276
31277 \begin_layout Description
31278 \begin_inset Flex Code
31279 status collapsed
31280
31281 \begin_layout Plain Layout
31282 $$pngOrjpg
31283 \end_layout
31284
31285 \end_inset
31286
31287  This will be the string 
31288 \begin_inset Quotes eld
31289 \end_inset
31290
31291 jpg
31292 \begin_inset Quotes erd
31293 \end_inset
31294
31295  if the file is in JPEG format,
31296  otherwise it will be the string 
31297 \begin_inset Quotes eld
31298 \end_inset
31299
31300 png
31301 \begin_inset Quotes erd
31302 \end_inset
31303
31304 .
31305  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
31306  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31307  output format.
31308 \end_layout
31309
31310 \begin_layout Description
31311 \begin_inset Flex Code
31312 status collapsed
31313
31314 \begin_layout Plain Layout
31315 $$FName
31316 \end_layout
31317
31318 \end_inset
31319
31320  The filename of the file specified in the external material dialog.
31321  This is either an absolute name,
31322  or it is relative to the \SpecialChar LyX
31323  document.
31324 \end_layout
31325
31326 \begin_layout Description
31327 \begin_inset Flex Code
31328 status collapsed
31329
31330 \begin_layout Plain Layout
31331 $$FPath
31332 \end_layout
31333
31334 \end_inset
31335
31336  The path part of 
31337 \begin_inset Flex Code
31338 status collapsed
31339
31340 \begin_layout Plain Layout
31341 $$FName
31342 \end_layout
31343
31344 \end_inset
31345
31346  (absolute name or relative to the \SpecialChar LyX
31347  document).
31348 \end_layout
31349
31350 \begin_layout Description
31351 \begin_inset Flex Code
31352 status collapsed
31353
31354 \begin_layout Plain Layout
31355 $$RelPathMaster
31356 \end_layout
31357
31358 \end_inset
31359
31360  The file path,
31361  relative to the master \SpecialChar LyX
31362  document.
31363 \end_layout
31364
31365 \begin_layout Description
31366 \begin_inset Flex Code
31367 status collapsed
31368
31369 \begin_layout Plain Layout
31370 $$RelPathParent
31371 \end_layout
31372
31373 \end_inset
31374
31375  The file path,
31376  relative to the \SpecialChar LyX
31377  document.
31378 \end_layout
31379
31380 \begin_layout Description
31381 \begin_inset Flex Code
31382 status collapsed
31383
31384 \begin_layout Plain Layout
31385 $$Sysdir
31386 \end_layout
31387
31388 \end_inset
31389
31390  This macro will expand to the absolute path of the system directory.
31391  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
31392 .
31393 \end_layout
31394
31395 \begin_layout Description
31396 \begin_inset Flex Code
31397 status collapsed
31398
31399 \begin_layout Plain Layout
31400 $$Tempname
31401 \end_layout
31402
31403 \end_inset
31404
31405  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
31406  or the external material insertion deleted.
31407 \end_layout
31408
31409 \begin_layout Standard
31410 All path macros contain a trailing directory separator,
31411  so you can construct e.
31412 \begin_inset space \thinspace{}
31413 \end_inset
31414
31415 g.
31416 \begin_inset space \space{}
31417 \end_inset
31418
31419 the absolute filename with 
31420 \begin_inset Flex Code
31421 status collapsed
31422
31423 \begin_layout Plain Layout
31424 $$AbsPath$$Basename$$Extension
31425 \end_layout
31426
31427 \end_inset
31428
31429 .
31430 \end_layout
31431
31432 \begin_layout Standard
31433 The macros above are substituted in all commands unless otherwise noted.
31434  The command 
31435 \begin_inset Flex Code
31436 status collapsed
31437
31438 \begin_layout Plain Layout
31439 Product
31440 \end_layout
31441
31442 \end_inset
31443
31444  supports additionally the following substitutions if they are enabled by the 
31445 \begin_inset Flex Code
31446 status collapsed
31447
31448 \begin_layout Plain Layout
31449 Transform
31450 \end_layout
31451
31452 \end_inset
31453
31454  and 
31455 \begin_inset Flex Code
31456 status collapsed
31457
31458 \begin_layout Plain Layout
31459 TransformCommand
31460 \end_layout
31461
31462 \end_inset
31463
31464  commands:
31465 \end_layout
31466
31467 \begin_layout Description
31468 \begin_inset Flex Code
31469 status collapsed
31470
31471 \begin_layout Plain Layout
31472 $$ResizeFront
31473 \end_layout
31474
31475 \end_inset
31476
31477  The front part of the resize command.
31478 \end_layout
31479
31480 \begin_layout Description
31481 \begin_inset Flex Code
31482 status collapsed
31483
31484 \begin_layout Plain Layout
31485 $$ResizeBack
31486 \end_layout
31487
31488 \end_inset
31489
31490  The back part of the resize command.
31491 \end_layout
31492
31493 \begin_layout Description
31494 \begin_inset Flex Code
31495 status collapsed
31496
31497 \begin_layout Plain Layout
31498 $$RotateFront
31499 \end_layout
31500
31501 \end_inset
31502
31503  The front part of the rotation command.
31504 \end_layout
31505
31506 \begin_layout Description
31507 \begin_inset Flex Code
31508 status collapsed
31509
31510 \begin_layout Plain Layout
31511 $$RotateBack
31512 \end_layout
31513
31514 \end_inset
31515
31516  The back part of the rotation command.
31517 \end_layout
31518
31519 \begin_layout Standard
31520 The value string of the 
31521 \begin_inset Flex Code
31522 status collapsed
31523
31524 \begin_layout Plain Layout
31525 Option
31526 \end_layout
31527
31528 \end_inset
31529
31530  command supports additionally the following substitutions if they are enabled by the 
31531 \begin_inset Flex Code
31532 status collapsed
31533
31534 \begin_layout Plain Layout
31535 Transform
31536 \end_layout
31537
31538 \end_inset
31539
31540  and 
31541 \begin_inset Flex Code
31542 status collapsed
31543
31544 \begin_layout Plain Layout
31545 TransformOption
31546 \end_layout
31547
31548 \end_inset
31549
31550  commands:
31551 \end_layout
31552
31553 \begin_layout Description
31554 \begin_inset Flex Code
31555 status collapsed
31556
31557 \begin_layout Plain Layout
31558 $$Clip
31559 \end_layout
31560
31561 \end_inset
31562
31563  The clip option.
31564 \end_layout
31565
31566 \begin_layout Description
31567 \begin_inset Flex Code
31568 status collapsed
31569
31570 \begin_layout Plain Layout
31571 $$Extra
31572 \end_layout
31573
31574 \end_inset
31575
31576  The extra option.
31577 \end_layout
31578
31579 \begin_layout Description
31580 \begin_inset Flex Code
31581 status collapsed
31582
31583 \begin_layout Plain Layout
31584 $$Resize
31585 \end_layout
31586
31587 \end_inset
31588
31589  The resize option.
31590 \end_layout
31591
31592 \begin_layout Description
31593 \begin_inset Flex Code
31594 status collapsed
31595
31596 \begin_layout Plain Layout
31597 $$Rotate
31598 \end_layout
31599
31600 \end_inset
31601
31602  The rotation option.
31603 \end_layout
31604
31605 \begin_layout Standard
31606 You may ask why there are so many path macros.
31607  There are mainly two reasons:
31608 \end_layout
31609
31610 \begin_layout Enumerate
31611 Relative and absolute file names should remain relative or absolute,
31612  respectively.
31613  Users may have reasons to prefer either form.
31614  Relative names are useful for portable documents that should work on different machines,
31615  for example.
31616  Absolute names may be required by some programs.
31617 \end_layout
31618
31619 \begin_layout Enumerate
31620 \SpecialChar LaTeX
31621  treats relative file names differently than \SpecialChar LyX
31622  and other programs in nested included files.
31623  For \SpecialChar LyX
31624 ,
31625  a relative file name is always relative to the document that contains the file name.
31626  For \SpecialChar LaTeX
31627 ,
31628  it is always relative to the master document.
31629  These two definitions are identical if you have only one document,
31630  but differ if you have a master document that includes part documents.
31631  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
31632 .
31633  Fortunately \SpecialChar LyX
31634  does this automatically for you if you choose the right macros.
31635 \end_layout
31636
31637 \begin_layout Standard
31638 So which path macro should be used in new template definitions?
31639  The rule is not difficult:
31640 \end_layout
31641
31642 \begin_layout Itemize
31643 Use 
31644 \begin_inset Flex Code
31645 status collapsed
31646
31647 \begin_layout Plain Layout
31648 $$AbsPath
31649 \end_layout
31650
31651 \end_inset
31652
31653  if an absolute path is required.
31654 \end_layout
31655
31656 \begin_layout Itemize
31657 Use 
31658 \begin_inset Flex Code
31659 status collapsed
31660
31661 \begin_layout Plain Layout
31662 $$AbsOrRelPathMaster
31663 \end_layout
31664
31665 \end_inset
31666
31667  if the substituted string is some kind of \SpecialChar LaTeX
31668  input.
31669 \end_layout
31670
31671 \begin_layout Itemize
31672 Else use 
31673 \begin_inset Flex Code
31674 status collapsed
31675
31676 \begin_layout Plain Layout
31677 $$AbsOrRelPathParent
31678 \end_layout
31679
31680 \end_inset
31681
31682  in order to preserve the user's choice.
31683 \end_layout
31684
31685 \begin_layout Standard
31686 There are special cases where this rule does not work and e.
31687 \begin_inset space \thinspace{}
31688 \end_inset
31689
31690 g.
31691 \begin_inset space \space{}
31692 \end_inset
31693
31694 relative names are needed,
31695  but normally it will work just fine.
31696  One example for such a case is the command 
31697 \begin_inset Flex Code
31698 status collapsed
31699
31700 \begin_layout Plain Layout
31701 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
31702 \end_layout
31703
31704 \end_inset
31705
31706  in the XFig template above:
31707  We can't use the absolute name because the copier for 
31708 \begin_inset Flex Code
31709 status collapsed
31710
31711 \begin_layout Plain Layout
31712 .pstex_t
31713 \end_layout
31714
31715 \end_inset
31716
31717  files needs the relative name in order to rewrite the file content.
31718 \end_layout
31719
31720 \begin_layout Section
31721 Security discussion
31722 \begin_inset CommandInset label
31723 LatexCommand label
31724 name "sec:Security-discussion"
31725
31726 \end_inset
31727
31728
31729 \end_layout
31730
31731 \begin_layout Standard
31732 The external material feature interfaces with a lot of external programs and does so automatically,
31733  so we have to consider the security implications of this.
31734  In particular,
31735  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
31736  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
31737  This is something we definitely want to avoid.
31738 \end_layout
31739
31740 \begin_layout Standard
31741 However,
31742  since the external program commands are specified in the template configuration file only,
31743  there are no security issues if \SpecialChar LyX
31744  is properly configured with safe templates only.
31745  This is so because the external programs are invoked with the 
31746 \begin_inset Flex Code
31747 status collapsed
31748
31749 \begin_layout Plain Layout
31750 execvp
31751 \end_layout
31752
31753 \end_inset
31754
31755 -system call rather than the 
31756 \begin_inset Flex Code
31757 status collapsed
31758
31759 \begin_layout Plain Layout
31760 system
31761 \end_layout
31762
31763 \end_inset
31764
31765  system-call,
31766  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
31767 \end_layout
31768
31769 \begin_layout Standard
31770 This also implies that you are restricted in what command strings you can use in the external material templates.
31771  In particular,
31772  pipes and redirection are not readily available.
31773  This has to be so if \SpecialChar LyX
31774  should remain safe.
31775  If you want to use some of the shell features,
31776  you should write a safe script to do this in a controlled manner,
31777  and then invoke the script from the command string.
31778  
31779 \end_layout
31780
31781 \begin_layout Standard
31782 It is possible to design a template that interacts directly with the shell,
31783  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
31784  we generally recommend that you only use safe scripts that work with the 
31785 \begin_inset Flex Code
31786 status collapsed
31787
31788 \begin_layout Plain Layout
31789 execvp
31790 \end_layout
31791
31792 \end_inset
31793
31794  system call in a controlled manner.
31795  Of course,
31796  for use in a controlled environment,
31797  it can be tempting to just fall back to use ordinary shell scripts.
31798  If you do so,
31799  be aware that you 
31800 \emph on
31801 will
31802 \emph default
31803  provide an easily exploitable security hole in your system.
31804  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
31805  distribution,
31806  although we do encourage people to submit new templates in the open source tradition.
31807  But \SpecialChar LyX
31808  as shipped from the official distribution channels will never have unsafe templates.
31809 \end_layout
31810
31811 \begin_layout Standard
31812 Including external material provides a lot of power,
31813  and you have to be careful not to introduce security hazards with this power.
31814  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
31815  So if you do not fully understand the issues,
31816  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
31817  development team if you have any questions about whether a given template is safe or not.
31818  And do this before you use it in an uncontrolled environment.
31819 \end_layout
31820
31821 \begin_layout Chapter
31822 \start_of_appendix
31823 List of supported \SpecialChar LyX
31824  functions to be used in layouts
31825 \begin_inset CommandInset label
31826 LatexCommand label
31827 name "chap:List-of-functions"
31828
31829 \end_inset
31830
31831
31832 \end_layout
31833
31834 \begin_layout Standard
31835 \align center
31836 \begin_inset Tabular
31837 <lyxtabular version="3" rows="11" columns="8">
31838 <features tabularvalignment="middle">
31839 <column alignment="left" valignment="top">
31840 <column alignment="left" valignment="top">
31841 <column alignment="left" valignment="top">
31842 <column alignment="left" valignment="top">
31843 <column alignment="left" valignment="top">
31844 <column alignment="left" valignment="top">
31845 <column alignment="left" valignment="top">
31846 <column alignment="left" valignment="top">
31847 <row>
31848 <cell alignment="left" valignment="top" usebox="none">
31849 \begin_inset Text
31850
31851 \begin_layout Plain Layout
31852 accents
31853 \end_layout
31854
31855 \end_inset
31856 </cell>
31857 <cell alignment="left" valignment="top" usebox="none">
31858 \begin_inset Text
31859
31860 \begin_layout Plain Layout
31861 booktabs
31862 \end_layout
31863
31864 \end_inset
31865 </cell>
31866 <cell alignment="left" valignment="top" usebox="none">
31867 \begin_inset Text
31868
31869 \begin_layout Plain Layout
31870 feyn
31871 \end_layout
31872
31873 \end_inset
31874 </cell>
31875 <cell alignment="left" valignment="top" usebox="none">
31876 \begin_inset Text
31877
31878 \begin_layout Plain Layout
31879 listings
31880 \end_layout
31881
31882 \end_inset
31883 </cell>
31884 <cell alignment="center" valignment="top" usebox="none">
31885 \begin_inset Text
31886
31887 \begin_layout Plain Layout
31888 natbib
31889 \end_layout
31890
31891 \end_inset
31892 </cell>
31893 <cell alignment="center" valignment="top" usebox="none">
31894 \begin_inset Text
31895
31896 \begin_layout Plain Layout
31897 rsphrase
31898 \end_layout
31899
31900 \end_inset
31901 </cell>
31902 <cell alignment="center" valignment="top" usebox="none">
31903 \begin_inset Text
31904
31905 \begin_layout Plain Layout
31906 tfrupee
31907 \end_layout
31908
31909 \end_inset
31910 </cell>
31911 <cell alignment="center" valignment="top" usebox="none">
31912 \begin_inset Text
31913
31914 \begin_layout Plain Layout
31915 wasysym
31916 \end_layout
31917
31918 \end_inset
31919 </cell>
31920 </row>
31921 <row>
31922 <cell alignment="left" valignment="top" usebox="none">
31923 \begin_inset Text
31924
31925 \begin_layout Plain Layout
31926 amsbsy
31927 \end_layout
31928
31929 \end_inset
31930 </cell>
31931 <cell alignment="left" valignment="top" usebox="none">
31932 \begin_inset Text
31933
31934 \begin_layout Plain Layout
31935 calc
31936 \end_layout
31937
31938 \end_inset
31939 </cell>
31940 <cell alignment="left" valignment="top" usebox="none">
31941 \begin_inset Text
31942
31943 \begin_layout Plain Layout
31944 fixltx2e
31945 \end_layout
31946
31947 \end_inset
31948 </cell>
31949 <cell alignment="left" valignment="top" usebox="none">
31950 \begin_inset Text
31951
31952 \begin_layout Plain Layout
31953 longtable
31954 \end_layout
31955
31956 \end_inset
31957 </cell>
31958 <cell alignment="center" valignment="top" usebox="none">
31959 \begin_inset Text
31960
31961 \begin_layout Plain Layout
31962 nomencl
31963 \end_layout
31964
31965 \end_inset
31966 </cell>
31967 <cell alignment="center" valignment="top" usebox="none">
31968 \begin_inset Text
31969
31970 \begin_layout Plain Layout
31971 setspace
31972 \end_layout
31973
31974 \end_inset
31975 </cell>
31976 <cell alignment="center" valignment="top" usebox="none">
31977 \begin_inset Text
31978
31979 \begin_layout Plain Layout
31980 tipa
31981 \end_layout
31982
31983 \end_inset
31984 </cell>
31985 <cell alignment="center" valignment="top" usebox="none">
31986 \begin_inset Text
31987
31988 \begin_layout Plain Layout
31989 wrapfig
31990 \end_layout
31991
31992 \end_inset
31993 </cell>
31994 </row>
31995 <row>
31996 <cell alignment="left" valignment="top" usebox="none">
31997 \begin_inset Text
31998
31999 \begin_layout Plain Layout
32000 amscd
32001 \end_layout
32002
32003 \end_inset
32004 </cell>
32005 <cell alignment="left" valignment="top" usebox="none">
32006 \begin_inset Text
32007
32008 \begin_layout Plain Layout
32009 CJK
32010 \end_layout
32011
32012 \end_inset
32013 </cell>
32014 <cell alignment="left" valignment="top" usebox="none">
32015 \begin_inset Text
32016
32017 \begin_layout Plain Layout
32018 float
32019 \end_layout
32020
32021 \end_inset
32022 </cell>
32023 <cell alignment="left" valignment="top" usebox="none">
32024 \begin_inset Text
32025
32026 \begin_layout Plain Layout
32027 lyxskak
32028 \end_layout
32029
32030 \end_inset
32031 </cell>
32032 <cell alignment="center" valignment="top" usebox="none">
32033 \begin_inset Text
32034
32035 \begin_layout Plain Layout
32036 pdfpages
32037 \end_layout
32038
32039 \end_inset
32040 </cell>
32041 <cell alignment="center" valignment="top" usebox="none">
32042 \begin_inset Text
32043
32044 \begin_layout Plain Layout
32045 shapepar
32046 \end_layout
32047
32048 \end_inset
32049 </cell>
32050 <cell alignment="center" valignment="top" usebox="none">
32051 \begin_inset Text
32052
32053 \begin_layout Plain Layout
32054 tipx
32055 \end_layout
32056
32057 \end_inset
32058 </cell>
32059 <cell alignment="center" valignment="top" usebox="none">
32060 \begin_inset Text
32061
32062 \begin_layout Plain Layout
32063 xargs
32064 \end_layout
32065
32066 \end_inset
32067 </cell>
32068 </row>
32069 <row>
32070 <cell alignment="left" valignment="top" usebox="none">
32071 \begin_inset Text
32072
32073 \begin_layout Plain Layout
32074 amsmath
32075 \end_layout
32076
32077 \end_inset
32078 </cell>
32079 <cell alignment="left" valignment="top" usebox="none">
32080 \begin_inset Text
32081
32082 \begin_layout Plain Layout
32083 color
32084 \end_layout
32085
32086 \end_inset
32087 </cell>
32088 <cell alignment="left" valignment="top" usebox="none">
32089 \begin_inset Text
32090
32091 \begin_layout Plain Layout
32092 framed
32093 \end_layout
32094
32095 \end_inset
32096 </cell>
32097 <cell alignment="left" valignment="top" usebox="none">
32098 \begin_inset Text
32099
32100 \begin_layout Plain Layout
32101 makeidx
32102 \end_layout
32103
32104 \end_inset
32105 </cell>
32106 <cell alignment="center" valignment="top" usebox="none">
32107 \begin_inset Text
32108
32109 \begin_layout Plain Layout
32110 pifont
32111 \end_layout
32112
32113 \end_inset
32114 </cell>
32115 <cell alignment="center" valignment="top" usebox="none">
32116 \begin_inset Text
32117
32118 \begin_layout Plain Layout
32119 slashed
32120 \end_layout
32121
32122 \end_inset
32123 </cell>
32124 <cell alignment="center" valignment="top" usebox="none">
32125 \begin_inset Text
32126
32127 \begin_layout Plain Layout
32128 tone
32129 \end_layout
32130
32131 \end_inset
32132 </cell>
32133 <cell alignment="center" valignment="top" usebox="none">
32134 \begin_inset Text
32135
32136 \begin_layout Plain Layout
32137 xcolor
32138 \end_layout
32139
32140 \end_inset
32141 </cell>
32142 </row>
32143 <row>
32144 <cell alignment="left" valignment="top" usebox="none">
32145 \begin_inset Text
32146
32147 \begin_layout Plain Layout
32148 amssymb
32149 \end_layout
32150
32151 \end_inset
32152 </cell>
32153 <cell alignment="left" valignment="top" usebox="none">
32154 \begin_inset Text
32155
32156 \begin_layout Plain Layout
32157 covington
32158 \end_layout
32159
32160 \end_inset
32161 </cell>
32162 <cell alignment="left" valignment="top" usebox="none">
32163 \begin_inset Text
32164
32165 \begin_layout Plain Layout
32166 graphicx
32167 \end_layout
32168
32169 \end_inset
32170 </cell>
32171 <cell alignment="left" valignment="top" usebox="none">
32172 \begin_inset Text
32173
32174 \begin_layout Plain Layout
32175 marvosym
32176 \end_layout
32177
32178 \end_inset
32179 </cell>
32180 <cell alignment="center" valignment="top" usebox="none">
32181 \begin_inset Text
32182
32183 \begin_layout Plain Layout
32184 pmboxdraw
32185 \end_layout
32186
32187 \end_inset
32188 </cell>
32189 <cell alignment="center" valignment="top" usebox="none">
32190 \begin_inset Text
32191
32192 \begin_layout Plain Layout
32193 soul
32194 \end_layout
32195
32196 \end_inset
32197 </cell>
32198 <cell alignment="center" valignment="top" usebox="none">
32199 \begin_inset Text
32200
32201 \begin_layout Plain Layout
32202 txfonts
32203 \end_layout
32204
32205 \end_inset
32206 </cell>
32207 <cell alignment="center" valignment="top" usebox="none">
32208 \begin_inset Text
32209
32210 \begin_layout Plain Layout
32211 xy
32212 \end_layout
32213
32214 \end_inset
32215 </cell>
32216 </row>
32217 <row>
32218 <cell alignment="left" valignment="top" usebox="none">
32219 \begin_inset Text
32220
32221 \begin_layout Plain Layout
32222 amstext
32223 \end_layout
32224
32225 \end_inset
32226 </cell>
32227 <cell alignment="left" valignment="top" usebox="none">
32228 \begin_inset Text
32229
32230 \begin_layout Plain Layout
32231 csquotes
32232 \end_layout
32233
32234 \end_inset
32235 </cell>
32236 <cell alignment="left" valignment="top" usebox="none">
32237 \begin_inset Text
32238
32239 \begin_layout Plain Layout
32240 hhline
32241 \end_layout
32242
32243 \end_inset
32244 </cell>
32245 <cell alignment="left" valignment="top" usebox="none">
32246 \begin_inset Text
32247
32248 \begin_layout Plain Layout
32249 mathdesign
32250 \end_layout
32251
32252 \end_inset
32253 </cell>
32254 <cell alignment="center" valignment="top" usebox="none">
32255 \begin_inset Text
32256
32257 \begin_layout Plain Layout
32258 polyglossia
32259 \end_layout
32260
32261 \end_inset
32262 </cell>
32263 <cell alignment="center" valignment="top" usebox="none">
32264 \begin_inset Text
32265
32266 \begin_layout Plain Layout
32267 splitidx
32268 \end_layout
32269
32270 \end_inset
32271 </cell>
32272 <cell alignment="center" valignment="top" usebox="none">
32273 \begin_inset Text
32274
32275 \begin_layout Plain Layout
32276 ulem
32277 \end_layout
32278
32279 \end_inset
32280 </cell>
32281 <cell alignment="center" valignment="top" usebox="none">
32282 \begin_inset Text
32283
32284 \begin_layout Plain Layout
32285 yhmath
32286 \end_layout
32287
32288 \end_inset
32289 </cell>
32290 </row>
32291 <row>
32292 <cell alignment="left" valignment="top" usebox="none">
32293 \begin_inset Text
32294
32295 \begin_layout Plain Layout
32296 amsthm
32297 \end_layout
32298
32299 \end_inset
32300 </cell>
32301 <cell alignment="left" valignment="top" usebox="none">
32302 \begin_inset Text
32303
32304 \begin_layout Plain Layout
32305 dvipost
32306 \end_layout
32307
32308 \end_inset
32309 </cell>
32310 <cell alignment="left" valignment="top" usebox="none">
32311 \begin_inset Text
32312
32313 \begin_layout Plain Layout
32314 hyperref
32315 \end_layout
32316
32317 \end_inset
32318 </cell>
32319 <cell alignment="left" valignment="top" usebox="none">
32320 \begin_inset Text
32321
32322 \begin_layout Plain Layout
32323 mathdots
32324 \end_layout
32325
32326 \end_inset
32327 </cell>
32328 <cell alignment="center" valignment="top" usebox="none">
32329 \begin_inset Text
32330
32331 \begin_layout Plain Layout
32332 prettyref
32333 \end_layout
32334
32335 \end_inset
32336 </cell>
32337 <cell alignment="center" valignment="top" usebox="none">
32338 \begin_inset Text
32339
32340 \begin_layout Plain Layout
32341 subfig
32342 \end_layout
32343
32344 \end_inset
32345 </cell>
32346 <cell alignment="center" valignment="top" usebox="none">
32347 \begin_inset Text
32348
32349 \begin_layout Plain Layout
32350 undertilde
32351 \end_layout
32352
32353 \end_inset
32354 </cell>
32355 <cell alignment="center" valignment="top" usebox="none">
32356 \begin_inset Text
32357
32358 \begin_layout Plain Layout
32359
32360 \end_layout
32361
32362 \end_inset
32363 </cell>
32364 </row>
32365 <row>
32366 <cell alignment="left" valignment="top" usebox="none">
32367 \begin_inset Text
32368
32369 \begin_layout Plain Layout
32370 array
32371 \end_layout
32372
32373 \end_inset
32374 </cell>
32375 <cell alignment="left" valignment="top" usebox="none">
32376 \begin_inset Text
32377
32378 \begin_layout Plain Layout
32379 endnotes
32380 \end_layout
32381
32382 \end_inset
32383 </cell>
32384 <cell alignment="left" valignment="top" usebox="none">
32385 \begin_inset Text
32386
32387 \begin_layout Plain Layout
32388 ifsym
32389 \end_layout
32390
32391 \end_inset
32392 </cell>
32393 <cell alignment="left" valignment="top" usebox="none">
32394 \begin_inset Text
32395
32396 \begin_layout Plain Layout
32397 mathrsfs
32398 \end_layout
32399
32400 \end_inset
32401 </cell>
32402 <cell alignment="center" valignment="top" usebox="none">
32403 \begin_inset Text
32404
32405 \begin_layout Plain Layout
32406 pxfonts
32407 \end_layout
32408
32409 \end_inset
32410 </cell>
32411 <cell alignment="center" valignment="top" usebox="none">
32412 \begin_inset Text
32413
32414 \begin_layout Plain Layout
32415 subscript
32416 \end_layout
32417
32418 \end_inset
32419 </cell>
32420 <cell alignment="center" valignment="top" usebox="none">
32421 \begin_inset Text
32422
32423 \begin_layout Plain Layout
32424 units
32425 \end_layout
32426
32427 \end_inset
32428 </cell>
32429 <cell alignment="center" valignment="top" usebox="none">
32430 \begin_inset Text
32431
32432 \begin_layout Plain Layout
32433
32434 \end_layout
32435
32436 \end_inset
32437 </cell>
32438 </row>
32439 <row>
32440 <cell alignment="left" valignment="top" usebox="none">
32441 \begin_inset Text
32442
32443 \begin_layout Plain Layout
32444 ascii
32445 \end_layout
32446
32447 \end_inset
32448 </cell>
32449 <cell alignment="left" valignment="top" usebox="none">
32450 \begin_inset Text
32451
32452 \begin_layout Plain Layout
32453 enumitem
32454 \end_layout
32455
32456 \end_inset
32457 </cell>
32458 <cell alignment="left" valignment="top" usebox="none">
32459 \begin_inset Text
32460
32461 \begin_layout Plain Layout
32462 ifthen
32463 \end_layout
32464
32465 \end_inset
32466 </cell>
32467 <cell alignment="left" valignment="top" usebox="none">
32468 \begin_inset Text
32469
32470 \begin_layout Plain Layout
32471 mhchem
32472 \end_layout
32473
32474 \end_inset
32475 </cell>
32476 <cell alignment="center" valignment="top" usebox="none">
32477 \begin_inset Text
32478
32479 \begin_layout Plain Layout
32480 refstyle
32481 \end_layout
32482
32483 \end_inset
32484 </cell>
32485 <cell alignment="center" valignment="top" usebox="none">
32486 \begin_inset Text
32487
32488 \begin_layout Plain Layout
32489 tcolorbox
32490 \end_layout
32491
32492 \end_inset
32493 </cell>
32494 <cell alignment="center" valignment="top" usebox="none">
32495 \begin_inset Text
32496
32497 \begin_layout Plain Layout
32498 url
32499 \end_layout
32500
32501 \end_inset
32502 </cell>
32503 <cell alignment="center" valignment="top" usebox="none">
32504 \begin_inset Text
32505
32506 \begin_layout Plain Layout
32507
32508 \end_layout
32509
32510 \end_inset
32511 </cell>
32512 </row>
32513 <row>
32514 <cell alignment="left" valignment="top" usebox="none">
32515 \begin_inset Text
32516
32517 \begin_layout Plain Layout
32518 bbding
32519 \end_layout
32520
32521 \end_inset
32522 </cell>
32523 <cell alignment="left" valignment="top" usebox="none">
32524 \begin_inset Text
32525
32526 \begin_layout Plain Layout
32527 esint
32528 \end_layout
32529
32530 \end_inset
32531 </cell>
32532 <cell alignment="left" valignment="top" usebox="none">
32533 \begin_inset Text
32534
32535 \begin_layout Plain Layout
32536 jurabib
32537 \end_layout
32538
32539 \end_inset
32540 </cell>
32541 <cell alignment="left" valignment="top" usebox="none">
32542 \begin_inset Text
32543
32544 \begin_layout Plain Layout
32545 multicol
32546 \end_layout
32547
32548 \end_inset
32549 </cell>
32550 <cell alignment="center" valignment="top" usebox="none">
32551 \begin_inset Text
32552
32553 \begin_layout Plain Layout
32554 rotating
32555 \end_layout
32556
32557 \end_inset
32558 </cell>
32559 <cell alignment="center" valignment="top" usebox="none">
32560 \begin_inset Text
32561
32562 \begin_layout Plain Layout
32563 textcomp
32564 \end_layout
32565
32566 \end_inset
32567 </cell>
32568 <cell alignment="center" valignment="top" usebox="none">
32569 \begin_inset Text
32570
32571 \begin_layout Plain Layout
32572 varioref
32573 \end_layout
32574
32575 \end_inset
32576 </cell>
32577 <cell alignment="center" valignment="top" usebox="none">
32578 \begin_inset Text
32579
32580 \begin_layout Plain Layout
32581
32582 \end_layout
32583
32584 \end_inset
32585 </cell>
32586 </row>
32587 <row>
32588 <cell alignment="center" valignment="top" usebox="none">
32589 \begin_inset Text
32590
32591 \begin_layout Plain Layout
32592 bm
32593 \end_layout
32594
32595 \end_inset
32596 </cell>
32597 <cell alignment="center" valignment="top" usebox="none">
32598 \begin_inset Text
32599
32600 \begin_layout Plain Layout
32601 fancybox
32602 \end_layout
32603
32604 \end_inset
32605 </cell>
32606 <cell alignment="center" valignment="top" usebox="none">
32607 \begin_inset Text
32608
32609 \begin_layout Plain Layout
32610 latexsym
32611 \end_layout
32612
32613 \end_inset
32614 </cell>
32615 <cell alignment="center" valignment="top" usebox="none">
32616 \begin_inset Text
32617
32618 \begin_layout Plain Layout
32619 multirow
32620 \end_layout
32621
32622 \end_inset
32623 </cell>
32624 <cell alignment="center" valignment="top" usebox="none">
32625 \begin_inset Text
32626
32627 \begin_layout Plain Layout
32628 rotfloat
32629 \end_layout
32630
32631 \end_inset
32632 </cell>
32633 <cell alignment="center" valignment="top" usebox="none">
32634 \begin_inset Text
32635
32636 \begin_layout Plain Layout
32637 textgreek
32638 \end_layout
32639
32640 \end_inset
32641 </cell>
32642 <cell alignment="center" valignment="top" usebox="none">
32643 \begin_inset Text
32644
32645 \begin_layout Plain Layout
32646 verbatim
32647 \end_layout
32648
32649 \end_inset
32650 </cell>
32651 <cell alignment="center" valignment="top" usebox="none">
32652 \begin_inset Text
32653
32654 \begin_layout Plain Layout
32655
32656 \end_layout
32657
32658 \end_inset
32659 </cell>
32660 </row>
32661 </lyxtabular>
32662
32663 \end_inset
32664
32665
32666 \end_layout
32667
32668 \begin_layout Chapter
32669 Names of available colors to be used in layouts
32670 \begin_inset CommandInset label
32671 LatexCommand label
32672 name "chap:Names-of-colors"
32673
32674 \end_inset
32675
32676
32677 \end_layout
32678
32679 \begin_layout Standard
32680 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
32681  preferences.
32682 \end_layout
32683
32684 \begin_layout Section
32685 Color functions
32686 \end_layout
32687
32688 \begin_layout Standard
32689 The following are no real colors,
32690  but rather act on color definitions:
32691 \end_layout
32692
32693 \begin_layout Description
32694 ignore The color is ignored
32695 \end_layout
32696
32697 \begin_layout Description
32698 inherit The color is inherited
32699 \end_layout
32700
32701 \begin_layout Description
32702 none
32703 \family roman
32704 \series medium
32705 \shape up
32706 \size normal
32707 \emph off
32708 \bar no
32709 \strikeout off
32710 \uuline off
32711 \uwave off
32712 \noun off
32713 \color none
32714  No particular color – clear or default
32715 \end_layout
32716
32717 \begin_layout Section
32718 Static colors
32719 \end_layout
32720
32721 \begin_layout Standard
32722 These are fixed colors that cannot be customized.
32723  Please do 
32724 \emph on
32725 not
32726 \emph default
32727  use these colors in layout definitions,
32728  since they will not work well with some color themes (such as dark themes):
32729 \end_layout
32730
32731 \begin_layout Description
32732 black
32733 \end_layout
32734
32735 \begin_layout Description
32736 white
32737 \end_layout
32738
32739 \begin_layout Description
32740 blue
32741 \end_layout
32742
32743 \begin_layout Description
32744 brown
32745 \end_layout
32746
32747 \begin_layout Description
32748 cyan
32749 \end_layout
32750
32751 \begin_layout Description
32752 darkgray
32753 \end_layout
32754
32755 \begin_layout Description
32756 gray
32757 \end_layout
32758
32759 \begin_layout Description
32760 green
32761 \end_layout
32762
32763 \begin_layout Description
32764 lightgray
32765 \end_layout
32766
32767 \begin_layout Description
32768 lime
32769 \end_layout
32770
32771 \begin_layout Description
32772 magenta
32773 \end_layout
32774
32775 \begin_layout Description
32776 olive
32777 \end_layout
32778
32779 \begin_layout Description
32780 orange
32781 \end_layout
32782
32783 \begin_layout Description
32784 pink
32785 \end_layout
32786
32787 \begin_layout Description
32788 purple
32789 \end_layout
32790
32791 \begin_layout Description
32792 red
32793 \end_layout
32794
32795 \begin_layout Description
32796 teal
32797 \end_layout
32798
32799 \begin_layout Description
32800 violet
32801 \end_layout
32802
32803 \begin_layout Description
32804 yellow
32805 \end_layout
32806
32807 \begin_layout Section
32808 Dynamic colors
32809 \end_layout
32810
32811 \begin_layout Standard
32812 These are the colors allocated to specific elements in 
32813 \begin_inset Info
32814 type  "menu"
32815 arg   "dialog-show prefs"
32816 \end_inset
32817
32818 :
32819 \end_layout
32820
32821 \begin_layout Description
32822 added_space Added space color
32823 \end_layout
32824
32825 \begin_layout Description
32826 addedtext Added text color
32827 \end_layout
32828
32829 \begin_layout Description
32830 appendix Appendix marker color
32831 \end_layout
32832
32833 \begin_layout Description
32834 background Background color
32835 \end_layout
32836
32837 \begin_layout Description
32838 bookmark Bookmark indicator color
32839 \end_layout
32840
32841 \begin_layout Description
32842 bottomarea Bottom area color
32843 \end_layout
32844
32845 \begin_layout Description
32846 branchlabel Label color for branches
32847 \end_layout
32848
32849 \begin_layout Description
32850 buttonbg Color used for button background
32851 \end_layout
32852
32853 \begin_layout Description
32854 buttonframe Color for inset button frames
32855 \end_layout
32856
32857 \begin_layout Description
32858 buttonhoverbg Color used for button background under focus
32859 \end_layout
32860
32861 \begin_layout Description
32862 buttonhoverbg_broken Color used for broken inset button under focus
32863 \end_layout
32864
32865 \begin_layout Description
32866 changebar Changebar color
32867 \end_layout
32868
32869 \begin_layout Description
32870 changedtextauthor1 Changed text color author 1
32871 \end_layout
32872
32873 \begin_layout Description
32874 changedtextauthor2 Changed text color author 2
32875 \end_layout
32876
32877 \begin_layout Description
32878 changedtextauthor3 Changed text color author 3
32879 \end_layout
32880
32881 \begin_layout Description
32882 changedtextauthor4 Changed text color author 4
32883 \end_layout
32884
32885 \begin_layout Description
32886 changedtextauthor5 Changed text color author 5
32887 \end_layout
32888
32889 \begin_layout Description
32890 changedtextcomparison Changed text color document comparison (workarea)
32891 \end_layout
32892
32893 \begin_layout Description
32894 collapsible Collapsible insets text color
32895 \end_layout
32896
32897 \begin_layout Description
32898 collapsibleframe Collapsible insets framecolor
32899 \end_layout
32900
32901 \begin_layout Description
32902 command Text color for command insets
32903 \end_layout
32904
32905 \begin_layout Description
32906 commandbg Background color for command insets
32907 \end_layout
32908
32909 \begin_layout Description
32910 commandframe Frame color for command insets
32911 \end_layout
32912
32913 \begin_layout Description
32914 command_broken Text color for broken (reference) insets
32915 \end_layout
32916
32917 \begin_layout Description
32918 commandbg_broken Background color for broken insets
32919 \end_layout
32920
32921 \begin_layout Description
32922 commandframe_broken Frame color for broken insets
32923 \end_layout
32924
32925 \begin_layout Description
32926 comment Label color for comments
32927 \end_layout
32928
32929 \begin_layout Description
32930 commentbg Background color of comments
32931 \end_layout
32932
32933 \begin_layout Description
32934 cursor Cursor color
32935 \end_layout
32936
32937 \begin_layout Description
32938 deletedtext Deleted text color
32939 \end_layout
32940
32941 \begin_layout Description
32942 deletedtextmodifier Deleted text modifying color (for adjusting the brightness)
32943 \end_layout
32944
32945 \begin_layout Description
32946 depthbar Color for the depth bars in the margin
32947 \end_layout
32948
32949 \begin_layout Description
32950 eolmarker End of line marker color
32951 \end_layout
32952
32953 \begin_layout Description
32954 error Color of the \SpecialChar LaTeX
32955  error box
32956 \end_layout
32957
32958 \begin_layout Description
32959 footlabel Label color for footnotes
32960 \end_layout
32961
32962 \begin_layout Description
32963 foreground Foreground color
32964 \end_layout
32965
32966 \begin_layout Description
32967 graphicsbg Graphics inset background color
32968 \end_layout
32969
32970 \begin_layout Description
32971 greyedoutbg Background color of greyedout inset
32972 \end_layout
32973
32974 \begin_layout Description
32975 greyedoutlabel Label color for greyedout insets
32976 \end_layout
32977
32978 \begin_layout Description
32979 greyedouttext Color for greyedout inset text
32980 \end_layout
32981
32982 \begin_layout Description
32983 indexlabel Label color for index insets
32984 \end_layout
32985
32986 \begin_layout Description
32987 inlinecompletion Inline completion color
32988 \end_layout
32989
32990 \begin_layout Description
32991 insetbg Inset marker background color
32992 \end_layout
32993
32994 \begin_layout Description
32995 insetframe Inset marker frame color
32996 \end_layout
32997
32998 \begin_layout Description
32999 language Color for marking foreign language words
33000 \end_layout
33001
33002 \begin_layout Description
33003 latex Text color in \SpecialChar LaTeX
33004  mode
33005 \end_layout
33006
33007 \begin_layout Description
33008 listingsbg Background color of listings inset
33009 \end_layout
33010
33011 \begin_layout Description
33012 marginlabel Label color for margin notes
33013 \end_layout
33014
33015 \begin_layout Description
33016 math Math inset text color
33017 \end_layout
33018
33019 \begin_layout Description
33020 mathbg Math inset background color
33021 \end_layout
33022
33023 \begin_layout Description
33024 mathcorners Math inset frame color not under focus
33025 \end_layout
33026
33027 \begin_layout Description
33028 mathframe Math inset frame color under focus
33029 \end_layout
33030
33031 \begin_layout Description
33032 mathline Math line color
33033 \end_layout
33034
33035 \begin_layout Description
33036 mathmacrobg Macro math inset background color
33037 \end_layout
33038
33039 \begin_layout Description
33040 mathmacroblend Macro math blended color
33041 \end_layout
33042
33043 \begin_layout Description
33044 mathmacroframe Macro math frame color
33045 \end_layout
33046
33047 \begin_layout Description
33048 mathmacrohoverbg Macro math inset background color hovered
33049 \end_layout
33050
33051 \begin_layout Description
33052 mathmacrolabel Macro math label color
33053 \end_layout
33054
33055 \begin_layout Description
33056 mathmacronewarg Macro template color for new parameters
33057 \end_layout
33058
33059 \begin_layout Description
33060 mathmacrooldarg Macro template color for old parameters
33061 \end_layout
33062
33063 \begin_layout Description
33064 newpage New page color
33065 \end_layout
33066
33067 \begin_layout Description
33068 nonunique_inlinecompletion Inline completion color for the non-unique part
33069 \end_layout
33070
33071 \begin_layout Description
33072 note Label color for notes
33073 \end_layout
33074
33075 \begin_layout Description
33076 notebg Background color of notes
33077 \end_layout
33078
33079 \begin_layout Description
33080 pagebreak Page break/line break color
33081 \end_layout
33082
33083 \begin_layout Description
33084 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33085 \end_layout
33086
33087 \begin_layout Description
33088 phantomtext Text color for phantom insets
33089 \end_layout
33090
33091 \begin_layout Description
33092 preview The color used for previews
33093 \end_layout
33094
33095 \begin_layout Description
33096 previewframe Preview frame color
33097 \end_layout
33098
33099 \begin_layout Description
33100 regexpframe Color for regexp frame
33101 \end_layout
33102
33103 \begin_layout Description
33104 scroll Color that indicates when a row can be scrolled 
33105 \end_layout
33106
33107 \begin_layout Description
33108 selection Background color of selected text
33109 \end_layout
33110
33111 \begin_layout Description
33112 selectionmath Foreground color of selected text in math insets
33113 \end_layout
33114
33115 \begin_layout Description
33116 selectiontext Foreground color of selected text
33117 \end_layout
33118
33119 \begin_layout Description
33120 shadedbg Background color of shaded box
33121 \end_layout
33122
33123 \begin_layout Description
33124 special Special chars text color
33125 \end_layout
33126
33127 \begin_layout Description
33128 tabularline Table line color
33129 \end_layout
33130
33131 \begin_layout Description
33132 tabularonoffline Table line color
33133 \end_layout
33134
33135 \begin_layout Description
33136 textlabel1 Color 1 of layout and custom inset labels
33137 \end_layout
33138
33139 \begin_layout Description
33140 textlabel2 Color 2 of layout and custom inset labels
33141 \end_layout
33142
33143 \begin_layout Description
33144 textlabel3 Color 3 of layout and custom inset labels
33145 \end_layout
33146
33147 \begin_layout Description
33148 urllabel Label color for URL insets
33149 \end_layout
33150
33151 \begin_layout Description
33152 urltext Color for URL inset text
33153 \end_layout
33154
33155 \end_body
33156 \end_document