]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
This commit adds some new functionality to the modules stuff. In particular, it intro...
[features.git] / lib / doc / Customization.lyx
1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 310
3 \begin_document
4 \begin_header
5 \textclass book
6 \begin_preamble
7 % DO NOT ALTER THIS PREAMBLE!!!
8 %
9 % This preamble is designed to ensure that the User's Guide prints
10 % out as advertised. If you mess with this preamble,
11 % parts of the User's Guide may not print out as expected.  If you
12 % have problems LaTeXing this file, please contact 
13 % the documentation team
14 % email: lyx-docs@lists.lyx.org
15
16 \usepackage{ifpdf} % part of the hyperref bundle
17 \ifpdf % if pdflatex is used
18
19  % set fonts for nicer pdf view
20  \IfFileExists{lmodern.sty}{\usepackage{lmodern}}{%
21  \usepackage[scaled=0.92]{helvet}
22  \usepackage{mathptmx}
23  \usepackage{courier} }
24
25  % link all cross references and URLs in pdf output
26  \usepackage[colorlinks=true, bookmarks, bookmarksnumbered,
27  linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,
28  pdfpagelayout=OneColumn, pdfnewwindow=true,
29  pdfstartview=XYZ, plainpages=false, pdfpagelabels,
30  pdfauthor={LyX Team}, pdftex,
31  pdftitle={Customizing LyX: Features for the Advanced User},pdfsubject={LyX-documentation Customization},
32  pdfkeywords={LyX, documentation}
33 ]{hyperref}
34  
35 \else % if dvi or ps is produced
36
37  % link all cross references and URLs in dvi output
38  \usepackage[ps2pdf]{hyperref}
39
40 \fi % end if pdflatex is used
41
42  % the pages of the TOC are numbered roman
43  % and a pdf-bookmark for the TOC is added
44  \pagenumbering{roman}
45  \let\myTOC\tableofcontents
46  \renewcommand\tableofcontents{%
47    \pdfbookmark[1]{Contents}{}
48    \myTOC
49    \cleardoublepage
50    \pagenumbering{arabic} }
51
52 % redefine the \LyX macro for PDF bookmarks
53 \def\LyX{\texorpdfstring{%
54   L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
55   {LyX }}
56
57 % used for multi-column text
58 \usepackage{multicol}
59 \end_preamble
60 \begin_modules
61 Logical Markup
62 \end_modules
63 \language english
64 \inputencoding default
65 \font_roman default
66 \font_sans default
67 \font_typewriter default
68 \font_default_family default
69 \font_sc false
70 \font_osf false
71 \font_sf_scale 100
72 \font_tt_scale 100
73 \graphics none
74 \paperfontsize default
75 \spacing single
76 \use_hyperref false
77 \papersize default
78 \use_geometry false
79 \use_amsmath 0
80 \use_esint 0
81 \cite_engine basic
82 \use_bibtopic false
83 \paperorientation portrait
84 \secnumdepth 3
85 \tocdepth 3
86 \paragraph_separation indent
87 \defskip medskip
88 \quotes_language english
89 \papercolumns 1
90 \papersides 2
91 \paperpagestyle headings
92 \tracking_changes false
93 \output_changes false
94 \author "" 
95 \author "" 
96 \end_header
97
98 \begin_body
99
100 \begin_layout Title
101 Customizing LyX: Features for the Advanced User
102 \end_layout
103
104 \begin_layout Author
105 by the LyX Team
106 \begin_inset Foot
107 status collapsed
108
109 \begin_layout Standard
110 \noindent
111 Principal maintainer of this file is 
112 \noun on
113 Mike Ressler
114 \noun default
115 .
116  If you have comments or error corrections, please send them to the LyX
117  Documentation mailing list, <lyx-docs@lists.lyx.org>.
118 \end_layout
119
120 \end_inset
121
122  
123 \end_layout
124
125 \begin_layout Standard
126 \begin_inset CommandInset toc
127 LatexCommand tableofcontents
128
129 \end_inset
130
131
132 \end_layout
133
134 \begin_layout Chapter
135 Introduction
136 \end_layout
137
138 \begin_layout Standard
139 This manual covers the customization features present in LyX.
140  In it, we discuss issues like keyboard shortcuts, screen previewing options,
141  printer options, sending commands to LyX via the LyX Server, internationalizati
142 on, installing new LaTeX classes and LyX layouts, etc.
143  We can't possibly hope to touch on everything you can change---our developers
144  add new features faster than we can document them---but we will explain
145  the most common customizations and hopefully point you in the right direction
146  for some of the more obscure ones.
147 \end_layout
148
149 \begin_layout Chapter
150 LyX configuration files
151 \end_layout
152
153 \begin_layout Standard
154 \begin_inset CommandInset label
155 LatexCommand label
156 name "chap:config"
157
158 \end_inset
159
160 This chapter aims to help you to find your way through the LyX configuration
161  files.
162  Before continuing to read this chapter, you should find out where your
163  LyX library directory is by using 
164 \family sans
165 \bar under
166 H
167 \bar default
168 elp\SpecialChar \menuseparator
169 About\InsetSpace ~
170 Ly
171 \bar under
172 X
173 \family default
174 \bar default
175 .
176  This directory is the place where LyX places its system-wide configuration
177  files, and we will simply name it 
178 \family typewriter
179 LyXDir
180 \family default
181  in the remainder of this document.
182  
183 \end_layout
184
185 \begin_layout Section
186 What's in 
187 \family typewriter
188 LyXDir
189 \family default
190 ?
191 \end_layout
192
193 \begin_layout Standard
194
195 \family typewriter
196 LyXDir
197 \family default
198  and its sub-directories contain a number of files and that can be used
199  to customise LyX's behaviour.
200  You can change many of these files from within LyX itself through the 
201 \family sans
202 \bar under
203 T
204 \bar default
205 ools\SpecialChar \menuseparator
206
207 \bar under
208 P
209 \bar default
210 references
211 \family default
212  dialog.
213  Most customization that you might want to do to LyX is possible through
214  this dialog.
215  However, many other inner aspects of LyX can be customized by modifying
216  the files in 
217 \family typewriter
218 LyXDir
219 \family default
220 .
221  They fall in different categories, described in the following subsections.
222 \end_layout
223
224 \begin_layout Subsection
225 Automatically generated files
226 \end_layout
227
228 \begin_layout Standard
229 These files are generated when you configure LyX.
230  They contain various default values that are guessed by inspection.
231  In general, it is not a good idea to modify them, since they might be overwritt
232 en at any time.
233 \end_layout
234
235 \begin_layout List
236 \labelwidthstring 00.00.0000
237
238 \family typewriter
239 \series medium
240 lyxrc.defaults
241 \family default
242 \series default
243  contains defaults for various commands.
244 \end_layout
245
246 \begin_layout List
247 \labelwidthstring 00.00.0000
248
249 \family typewriter
250 \series medium
251 packages.lst
252 \family default
253 \series default
254  contains the list of packages that have been recognized by LyX.
255  It is currently unused by the LyX program itself, but the information extracted
256 , and more, is made available with 
257 \family sans
258 \bar under
259 H
260 \bar default
261 elp\SpecialChar \menuseparator
262 L
263 \bar under
264 a
265 \bar default
266 TeX\InsetSpace ~
267 Configuration
268 \family default
269 .
270 \end_layout
271
272 \begin_layout List
273 \labelwidthstring 00.00.0000
274
275 \family typewriter
276 \series medium
277 textclass.lst
278 \family default
279 \series default
280  is the list of text classes that have been found in your 
281 \family typewriter
282 layout/
283 \family default
284  directory, along with the associated LaTeX document class and their description.
285 \end_layout
286
287 \begin_layout List
288 \labelwidthstring 00.00.0000
289
290 \family typewriter
291 doc/LaTeXConfig.lyx
292 \family default
293  is automatically generated during configuration from the file 
294 \family typewriter
295 LaTeXConfig.lyx.in
296 \family default
297 .
298 \end_layout
299
300 \begin_layout Subsection
301 Directories
302 \end_layout
303
304 \begin_layout List
305 \labelwidthstring 00.00.0000
306
307 \family typewriter
308 \series medium
309 bind/
310 \family default
311 \series default
312  this directory contains files with the extension 
313 \family typewriter
314 .bind
315 \family default
316  that define the keybindings used in LyX (see section\InsetSpace ~
317
318 \begin_inset CommandInset ref
319 LatexCommand ref
320 reference "sec:bindings"
321
322 \end_inset
323
324 ).
325  If there exists an internationalized version of the bind file named 
326 \family typewriter
327 $LANG_xxx.bind
328 \family default
329 , that will be used first.
330  See Chapter\InsetSpace ~
331
332 \begin_inset CommandInset ref
333 LatexCommand ref
334 reference "chap:i18n"
335
336 \end_inset
337
338 , and section 
339 \begin_inset CommandInset ref
340 LatexCommand ref
341 reference "sec:bindings"
342
343 \end_inset
344
345 for details.
346 \end_layout
347
348 \begin_layout List
349 \labelwidthstring 00.00.0000
350
351 \family typewriter
352 \series medium
353 clipart/
354 \family default
355 \series default
356  contains graphics files that can be included in documents.
357  
358 \end_layout
359
360 \begin_layout List
361 \labelwidthstring 00.00.0000
362
363 \family typewriter
364 \series medium
365 doc/
366 \family default
367 \series default
368  contains LyX documentation files (including the one you are currently reading).
369  The file 
370 \family typewriter
371 LaTeXConfig.lyx
372 \family default
373  deserves special attention, as noted above.
374  If there exists an internationalized version of the help-document with
375  
376 \family typewriter
377 $LANG_
378 \family default
379  prepended to the name, that will be used first.
380  See Chapter\InsetSpace ~
381
382 \begin_inset CommandInset ref
383 LatexCommand ref
384 reference "chap:i18n"
385
386 \end_inset
387
388  for details.
389 \end_layout
390
391 \begin_layout List
392 \labelwidthstring 00.00.0000
393
394 \family typewriter
395 \series medium
396 examples/
397 \family default
398 \series default
399  contains example files that explain how to use some features.
400  In the file browser, press the 
401 \family sans
402 Examples
403 \family default
404  button to get there.
405 \end_layout
406
407 \begin_layout List
408 \labelwidthstring 00.00.0000
409
410 \family typewriter
411 images/
412 \family default
413  contains image files that are used by the 
414 \family sans
415 Document
416 \family default
417  dialog.
418  In addition, it also contains the individual icons used in the toolbar
419  and the banners that can be shown when LyX is launched.
420 \end_layout
421
422 \begin_layout List
423 \labelwidthstring 00.00.0000
424
425 \family typewriter
426 \series medium
427 kbd/
428 \family default
429 \series default
430  contains keyboard keymapping files.
431  See Chapter\InsetSpace ~
432
433 \begin_inset CommandInset ref
434 LatexCommand ref
435 reference "sec:keymap"
436
437 \end_inset
438
439  for details.
440 \end_layout
441
442 \begin_layout List
443 \labelwidthstring 00.00.0000
444
445 \family typewriter
446 \series medium
447 layouts/
448 \family default
449 \series default
450  contains the text class files described in Chapter\InsetSpace ~
451
452 \begin_inset CommandInset ref
453 LatexCommand ref
454 reference "chap:textclass"
455
456 \end_inset
457
458 .
459 \end_layout
460
461 \begin_layout List
462 \labelwidthstring 00.00.0000
463
464 \family typewriter
465 scripts/
466 \family default
467  contains some files that demonstrate the capabilities of the 
468 \family sans
469 External\InsetSpace ~
470 Template
471 \family default
472  feature.
473 \end_layout
474
475 \begin_layout List
476 \labelwidthstring 00.00.0000
477
478 \family typewriter
479 templates/
480 \family default
481  contains the standard LyX template files described in Chapter\InsetSpace ~
482
483 \begin_inset CommandInset ref
484 LatexCommand ref
485 reference "sec:templates"
486
487 \end_inset
488
489 .
490 \end_layout
491
492 \begin_layout List
493 \labelwidthstring 00.00.0000
494
495 \family typewriter
496 tex/
497 \family default
498  contains some LaTeX cls files distributed with LyX.
499 \end_layout
500
501 \begin_layout List
502 \labelwidthstring 00.00.0000
503
504 \family typewriter
505 ui/
506 \family default
507  contains files with the extension 
508 \family typewriter
509 .ui
510 \family default
511  that define the user interface to LyX.
512  That is, the files define which items appear in which menus and the items
513  appearing on the toolbar.
514  See Chapter\InsetSpace ~
515
516 \begin_inset CommandInset ref
517 LatexCommand ref
518 reference "sec:ui"
519
520 \end_inset
521
522  for details.
523 \end_layout
524
525 \begin_layout Subsection
526 Files you don't want to modify
527 \end_layout
528
529 \begin_layout Standard
530 These files are used internally by LyX and you generally do not need to
531  modify them unless you are a developer.
532 \end_layout
533
534 \begin_layout List
535 \labelwidthstring 00.00.0000
536
537 \family typewriter
538 \series medium
539 CREDITS
540 \family default
541 \series default
542  this file contains the list of LyX developers.
543  The contents are displayed with the menu entry 
544 \family sans
545 \bar under
546 H
547 \bar default
548 elp\SpecialChar \menuseparator
549 About\InsetSpace ~
550 LyX
551 \family default
552 .
553 \end_layout
554
555 \begin_layout List
556 \labelwidthstring 00.00.0000
557
558 \family typewriter
559 \series medium
560 chkconfig.ltx
561 \family default
562 \series default
563  this is a LaTeX script used during the configuration process.
564  Do not run directly.
565 \end_layout
566
567 \begin_layout List
568 \labelwidthstring 00.00.0000
569
570 \family typewriter
571 \series medium
572 configure
573 \family default
574 \series default
575  this is the script that is used to re-configure LyX.
576  It creates configuration files in the directory it was run from.
577 \end_layout
578
579 \begin_layout Subsection
580 Other files needing a line or two...
581 \end_layout
582
583 \begin_layout List
584 \labelwidthstring 00.00.0000
585
586 \family typewriter
587 encodings
588 \family default
589  this contains tables describing how different character encodings can be
590  mapped to unicode
591 \end_layout
592
593 \begin_layout List
594 \labelwidthstring 00.00.0000
595
596 \family typewriter
597 external_templates
598 \family default
599  this file contains the templates available to the new 
600 \family sans
601 External\InsetSpace ~
602 Template
603 \family default
604  feature.
605 \end_layout
606
607 \begin_layout List
608 \labelwidthstring 00.00.0000
609
610 \family typewriter
611 languages
612 \family default
613  this file contains a list of all the languages currently supported by LyX.
614 \end_layout
615
616 \begin_layout Section
617 Your local configuration directory
618 \end_layout
619
620 \begin_layout Standard
621 Even if you are using LyX as an unprivileged user, you might want to change
622  LyX configuration for your own use.
623  The 
624 \family typewriter
625 UserDir
626 \family default
627  directory contains all your personal configuration files.
628  This is the directory described as 
629 \begin_inset Quotes eld
630 \end_inset
631
632 user directory
633 \begin_inset Quotes erd
634 \end_inset
635
636  in 
637 \family sans
638 \bar under
639 H
640 \bar default
641 elp\SpecialChar \menuseparator
642 About\InsetSpace ~
643 LyX
644 \family default
645 .
646  This directory is used as a mirror of 
647 \family typewriter
648 LyXDir
649 \family default
650 , which means that every file in 
651 \family typewriter
652 UserDir
653 \family default
654  is a replacement for the corresponding file in 
655 \family typewriter
656 LyXDir
657 \family default
658 .
659  Any configuration file described in the above sections can be placed either
660  in the system-wide directory, in which case it will affect all users, or
661  in your local directory for your own use.
662 \end_layout
663
664 \begin_layout Standard
665 To make things clearer, let's provide a few examples:
666 \end_layout
667
668 \begin_layout Itemize
669 The preferences set in the 
670 \family sans
671 \bar under
672 T
673 \bar default
674 ools\SpecialChar \menuseparator
675
676 \bar under
677 P
678 \bar default
679 references
680 \family default
681  dialog are saved to a file 
682 \family typewriter
683 preferences
684 \family default
685  in 
686 \family typewriter
687 UserDir
688 \family default
689 .
690 \end_layout
691
692 \begin_layout Itemize
693 When you reconfigure using 
694 \family sans
695 \bar under
696 T
697 \bar default
698 ools\SpecialChar \menuseparator
699
700 \bar under
701 R
702 \bar default
703 econfigure
704 \family default
705 , LyX runs 
706 \family typewriter
707 configure
708 \family default
709  and the resulting files are written in your local configuration directory
710  (see section\InsetSpace ~
711
712 \begin_inset CommandInset ref
713 LatexCommand ref
714 reference "sec:autodetected"
715
716 \end_inset
717
718  to have a list of the 
719 \family typewriter
720 preferences
721 \family default
722  settings affected by this section).
723  This means that any additional text class file that you might have added
724  in 
725 \family typewriter
726 UserDir/layouts
727 \family default
728  will be added to the list of classes in the 
729 \family sans
730 \bar under
731 L
732 \bar default
733 ayout\SpecialChar \menuseparator
734
735 \bar under
736 D
737 \bar default
738 ocument
739 \family default
740  dialog.
741 \end_layout
742
743 \begin_layout Itemize
744 Similarly, if you have installed some LaTeX document classes in your home
745  directory, that LaTeX can find with your 
746 \family typewriter
747 TEXINPUTS
748 \family default
749  path, they will show up in your list of text classes.
750 \begin_inset Foot
751 status collapsed
752
753 \begin_layout Standard
754 as long as LyX or yourself have a 
755 \family typewriter
756 .layout
757 \family default
758  file for it, of course.
759 \end_layout
760
761 \end_inset
762
763
764 \end_layout
765
766 \begin_layout Itemize
767 If you get some updated documentation from LyX ftp site and cannot install
768  it because you do not have sysadmin rights on your system, you can just
769  copy the files in 
770 \family typewriter
771 UserDir/doc/
772 \family default
773  and the items in the 
774 \family sans
775 \bar under
776 H
777 \bar default
778 elp
779 \family default
780  menu will open them!
781 \end_layout
782
783 \begin_layout Section
784 Running LyX with multiple configurations
785 \end_layout
786
787 \begin_layout Standard
788 The configuration freedom of the local configuration directory may not suffice
789  if you want to have more than one configuration at your disposal.
790  For example, you may want to be use different key bindings or printer settings
791  at different times.
792  You can achieve this by having several such directories.
793  You then specify which directory to use at run-time.
794 \end_layout
795
796 \begin_layout Standard
797 Invoking LyX with the command line switch 
798 \family typewriter
799 -userdir
800 \family default
801  
802 \emph on
803 <some directory>
804 \emph default
805  instructs the program to read the configuration from that directory, and
806  not from the default directory (you can determine the default directory
807  by running LyX without this switch as described above).
808  If this directory does not exist, LyX offers to create it for you, just
809  like it does for the default directory on the first time you run the program.
810  You can modify the configuration options in this additional 
811 \family typewriter
812 Userdir
813 \family default
814  exactly as you would for the default directory.
815  These directories are completely independent (but read on).
816  Note that setting the environment variable 
817 \family typewriter
818 LYX_USERDIR_15x
819 \family default
820  to some value has exactly the same effect
821 \family typewriter
822 .
823 \end_layout
824
825 \begin_layout Standard
826 Having several configurations also requires more maintenance: if you want
827  to add a new layout to 
828 \family typewriter
829 Userdir/layouts
830 \family default
831  which you want available from all your configurations, you must add it
832  to each directory separately.
833  You can avoid this with the following trick: after LyX creates the additional
834  directory, most of the subdirectories (see above) are empty.
835  If you want the new configuration to mirror an existing one, replace the
836  empty subdirectory with a symbolic link to the matching subdirectory in
837  the existing configuration.
838  Take care with the 
839 \family typewriter
840 \series medium
841 doc/
842 \family default
843 \series default
844  subirectory, however, since it contains a file written by the configuration
845  script (also accessible through 
846 \family sans
847 \bar under
848 T
849 \bar default
850 ools\SpecialChar \menuseparator
851
852 \bar under
853 R
854 \bar default
855 econfigure 
856 \begin_inset CommandInset ref
857 LatexCommand ref
858 reference "sec:autodetected"
859
860 \end_inset
861
862 )
863 \family default
864  which is configuration-specific.
865 \end_layout
866
867 \begin_layout Chapter
868 The 
869 \family sans
870 Preferences
871 \family default
872  dialog
873 \end_layout
874
875 \begin_layout Section
876 Using the dialog for the first time
877 \end_layout
878
879 \begin_layout Standard
880 The 
881 \family typewriter
882 UserDir/preferences
883 \family default
884  file will contain only changes that you have made to the default behaviour,
885  some of which is hard-coded into LyX and some of which is contained in
886  the system file 
887 \family typewriter
888 LyXDir/lyxrc.defaults
889 \family default
890 .
891  Note that in both files lines beginning with a 
892 \begin_inset Quotes eld
893 \end_inset
894
895
896 \family typewriter
897 #
898 \family default
899
900 \begin_inset Quotes erd
901 \end_inset
902
903  are just comments and not interpreted.
904  However, only system administrators should edit 
905 \family typewriter
906 LyXDir/lyxrc
907 \family default
908 .
909  Users should use the 
910 \family sans
911 \bar under
912 T
913 \bar default
914 ools\SpecialChar \menuseparator
915
916 \bar under
917 P
918 \bar default
919 references
920 \family default
921  dialog to create and modify their own 
922 \family typewriter
923 UserDir/preferences
924 \family default
925  file.
926 \end_layout
927
928 \begin_layout Standard
929 We hope that the 
930 \family sans
931 \bar under
932 T
933 \bar default
934 ools\SpecialChar \menuseparator
935
936 \bar under
937 P
938 \bar default
939 references
940 \family default
941  dialog will be largely self-explanatory.
942  Almost all the commands have an associated comment, so you shouldn't have
943  too much trouble modifying it to taste.
944  Before we highlight a few of the more important commands below, however,
945  a word of warning: 
946 \family sans
947 Apply
948 \family default
949 ing some of your changes (e.g., screen fonts) will have an instant effect.
950  Others (e.g.
951  changing the bind file) will not.
952  If nothing appears to have changed, just 
953 \family sans
954 Save
955 \family default
956  the changes and restart LyX.
957 \end_layout
958
959 \begin_layout Section
960 On-screen fonts
961 \end_layout
962
963 \begin_layout Standard
964 The font used to display your documents on the LyX screen is very important,
965  since you'll be reading all your documents with this font.
966  Therefore it is important that the font is as readable and good-looking
967  as possible.
968  The LyX team tried to provide the best possible default font for you, but
969  since practically all X11 systems are different, it's likely that the default
970  fonts will be sub-optimal on your system.
971  Fortunately, you can do something about this.
972  Before we explain how to do this, you should learn a bit more about fonts
973  so that you are better prepared for choosing your fonts, because it is
974  a trade-off that is specific to your preferences and the capabilities of
975  your system.
976 \end_layout
977
978 \begin_layout Standard
979 Notice that this section only deals with the fonts on the 
980 \emph on
981 screen
982 \emph default
983  inside the LyX window.
984  The fonts that appear on the 
985 \emph on
986 paper
987 \emph default
988  
989 \emph on
990 output
991 \emph default
992  are independent from these fonts, and are determined by the document class.
993  Read the 
994 \emph on
995 User's Guide
996 \emph default
997  to learn how to change the font of the printed version of your document.
998 \end_layout
999
1000 \begin_layout Standard
1001 Basically, screen fonts come in two different kinds: scalable outline fonts
1002  and non-scalable bitmap fonts.
1003  This distinction seems a bit arbitrary, since non-scalable fonts are actually
1004  scalable in most modern font renderers.
1005  The difference lies in the 
1006 \emph on
1007 quality
1008 \emph default
1009  of the scaling, and the 
1010 \emph on
1011 speed
1012 \emph default
1013  of display.
1014  The most important decision is thus whether you should use non-scalable
1015  bitmap fonts or scalable outline fonts.
1016 \end_layout
1017
1018 \begin_layout Standard
1019 The scalable fonts are built from 
1020 \emph on
1021 outlines
1022 \emph default
1023  of the single glyphs (i.e.
1024  characters) in the font.
1025  This means that each glyph is defined using mathematical curves that are
1026  well suited for scaling to any requested size.
1027  This mathematical definition is interpreted by the font renderer and turned
1028  into a small picture composed of pixels according to which size and glyph,
1029  the programmer requests.
1030  This means that scalable fonts will look pretty good in all sizes.
1031  Well, almost all sizes.
1032  Since scalable fonts are defined in an abstract way, it can be hard to
1033  provide a good rendering at small sizes, where each pixel has to be very
1034  carefully computed to provide a good image.
1035  Technically it is possible to do this from the mathematical definition,
1036  but in order to keep the rendering reasonably fast, tradeoffs have to be
1037  made, and the result is that scalable fonts can be difficult to read at
1038  small sizes.
1039 \end_layout
1040
1041 \begin_layout Standard
1042 Bitmap fonts on the other hand, are defined by bitmap graphics from the
1043  start, so they will look good at all the sizes they are meant for.
1044  However, they don't scale well, because in order to scale a glyph, each
1045  pixel is enlarged into several pixels.
1046  It is the same effect that happens if you try to enlarge a picture in 
1047 \family typewriter
1048 xv
1049 \family default
1050  or any other picture manipulation program.
1051  In order to relieve this effect, bitmap fonts are typically provided in
1052  several fixed sizes typically from around 8 pixels high up to 34 pixels
1053  or so high in steps according to what is believed to be useful.
1054  The advantage of bitmap fonts is that no complicated computations are necessary
1055  to display each glyph, so bitmap fonts are thus faster displayed than scalable
1056  fonts.
1057  The disadvantage is that sizes that don't exists as fixed versions have
1058  to be scaled by doubling pixels, and thus look bad.
1059 \end_layout
1060
1061 \begin_layout Standard
1062 The net result of all this, is that bitmap fonts are generally best for
1063  the small sizes, where they are available, while scalable fonts are generally
1064  best for large sizes.
1065  The logical conclusion would thus be to use bitmap fonts for the small
1066  sizes, and scalable fonts for the large sizes.
1067  Unfortunately, this is not a good idea, since bitmap fonts and scalable
1068  fonts are not designed to be used together, so the overall look of such
1069  a scheme would be bad.
1070  The best you can do is thus to try both schemes and decide for yourself
1071  what suits you.
1072 \end_layout
1073
1074 \begin_layout Standard
1075 By default, LyX uses non-scalable bitmap fonts (when using the XForms frontend).
1076  For serif fonts, 
1077 \emph on
1078 times
1079 \emph default
1080  is used, for sans serif fonts, 
1081 \emph on
1082 helvetica
1083 \emph default
1084  is used, while 
1085 \emph on
1086 courier
1087 \emph default
1088  is used as the monospaced/typewriter font.
1089 \end_layout
1090
1091 \begin_layout Standard
1092 In the following, we will describe what to do if the text does not look
1093  good in LyX.
1094  We'll start with the most important parameters: DPI and font zoom.
1095 \end_layout
1096
1097 \begin_layout Subsection
1098 DPI setting and Font Zoom
1099 \end_layout
1100
1101 \begin_layout Standard
1102 LyX automatically tries to scale the fonts to look as close as the paper
1103  output size as possible, except for the so-called font zoom factor.
1104 \end_layout
1105
1106 \begin_layout Standard
1107 In order for this to work on all systems, it relies on the screen DPI (dots
1108  per inch) setting to be correct.
1109  The DPI setting for your system is autodetected by LyX using the information
1110  the X server can provide.
1111  You can check what LyX autodetects the DPI setting to, by running LyX as
1112  
1113 \family typewriter
1114 lyx -dbg 2
1115 \family default
1116 .
1117 \end_layout
1118
1119 \begin_layout Standard
1120 On many systems, X is not set up correctly, so you should check that it
1121  is correct by hand.
1122  Run 
1123 \begin_inset Quotes eld
1124 \end_inset
1125
1126
1127 \family typewriter
1128 xdpyinfo | more
1129 \family default
1130
1131 \begin_inset Quotes erd
1132 \end_inset
1133
1134  and write down what the DPI is for the resolution you use (this will be
1135  close to the value LyX detects).
1136  It is the number mentioned as 
1137 \begin_inset Quotes eld
1138 \end_inset
1139
1140 resolution
1141 \begin_inset Quotes erd
1142 \end_inset
1143
1144 .
1145  Also write down the number of pixels you have in the width (the first number
1146  under 
1147 \begin_inset Quotes eld
1148 \end_inset
1149
1150 dimensions
1151 \begin_inset Quotes erd
1152 \end_inset
1153
1154 ).
1155 \end_layout
1156
1157 \begin_layout Standard
1158 Then get the good old ruler out of the closet, and measure the width of
1159  the visible screen-image on your monitor.
1160  Convert this measurement to inches if you used a centimeter ruler by dividing
1161  by 2.54.
1162  Now you can determine the correct DPI setting for your screen by dividing
1163  the number of pixels in the width by the width of the screen-image on the
1164  monitor.
1165  If this number is more than, say, 5 DPI from the detected value, you should
1166  either fix the X setup, or at least tell LyX that the DPI is different
1167  than the detected value.
1168 \end_layout
1169
1170 \begin_layout Standard
1171 If you can't fix the X setup (which of course is best since other programs
1172  than LyX will benefit from this as well), you can tell LyX the correct
1173  DPI using the 
1174 \family sans
1175 Preferences
1176 \family default
1177  dialog.
1178 \end_layout
1179
1180 \begin_layout Standard
1181 If the text is too small or too big for your taste, you should fiddle with
1182  the font zoom setting.
1183  This setting is used to scale the point size of the text.
1184  If your DPI setting is correct, and the font zoom setting is set to 100,
1185  this means that LyX will try to display the text exactly the same size
1186  as it will appear on the paper-output.
1187  If you set the zoom factor to 200, the text will try to be 2 times as big
1188  as on paper.
1189  Of course, this will only happen if LyX can find a font that has the appropriat
1190 e size, which you can't count on.
1191  Since LyX is a WYSIWYM system anyways, this limitation isn't much of an
1192  issue.
1193 \end_layout
1194
1195 \begin_layout Standard
1196 The default font zoom setting is 150, since a monitor is typically wider
1197  than a piece of paper, but you should try to fiddle with it through the
1198  
1199 \family sans
1200 Font\InsetSpace ~
1201
1202 \bar under
1203 Z
1204 \bar default
1205 oom
1206 \family default
1207  setting in the 
1208 \family sans
1209 Preferences
1210 \family default
1211  dialog to find a size that you like.
1212  When you've found a setting that seems to work nicely for you (tip: use
1213  the 
1214 \family sans
1215 \bar under
1216 A
1217 \bar default
1218 pply
1219 \family default
1220  button to keep the dialog open while you experiment), you can make this
1221  setting the default by using the 
1222 \family sans
1223 \bar under
1224 S
1225 \bar default
1226 ave
1227 \family default
1228  button.
1229 \end_layout
1230
1231 \begin_layout Standard
1232 While it is often possible to find a suitable size for the text on the screen,
1233  this doesn't necessarily mean that the fonts are the best ones available
1234  on your system.
1235  In order to help you get the most out of your system, you can use the font
1236  definition commands to fine-tune the look of the text in greater detail
1237  than merely size.
1238 \end_layout
1239
1240 \begin_layout Subsection
1241 Font definition commands
1242 \end_layout
1243
1244 \begin_layout Standard
1245 As mentioned, LyX uses non-scalable bitmap fonts by default with the XForms
1246  frontend.
1247  For serif fonts, 
1248 \emph on
1249 times
1250 \emph default
1251  is used, for sans serif fonts, 
1252 \emph on
1253 helvetica
1254 \emph default
1255  is used, while 
1256 \emph on
1257 courier
1258 \emph default
1259  is used as the monospaced/typewriter font.
1260 \end_layout
1261
1262 \begin_layout Standard
1263 You can change all of these from within the 
1264 \family sans
1265 Preferences
1266 \family default
1267  dialog.
1268  The number of fonts that are available on different systems vary, but the
1269  program 
1270 \family typewriter
1271 xfontsel
1272 \family default
1273  should be available everywhere.
1274  Use that program to find candidate fonts.
1275  When you've found a font that you like, try to insert the first two elements
1276  of the name (called 
1277 \begin_inset Quotes eld
1278 \end_inset
1279
1280 fndry
1281 \begin_inset Quotes erd
1282 \end_inset
1283
1284  and 
1285 \begin_inset Quotes eld
1286 \end_inset
1287
1288 fmly
1289 \begin_inset Quotes erd
1290 \end_inset
1291
1292  in 
1293 \family typewriter
1294 xfontsel
1295 \family default
1296 ) in the appropriate field in the 
1297 \family sans
1298 Preferences
1299 \family default
1300  dialog and press 
1301 \family sans
1302 \bar under
1303 A
1304 \bar default
1305 pply
1306 \family default
1307 .
1308  LyX will then reformat your document using the new font, and if you like
1309  the font, you should 
1310 \family sans
1311 \bar under
1312 S
1313 \bar default
1314 ave
1315 \family default
1316  it.
1317  One place to start for a new font is to see if the scalable font 
1318 \begin_inset Quotes eld
1319 \end_inset
1320
1321 utopia
1322 \begin_inset Quotes erd
1323 \end_inset
1324
1325  is available.
1326  Tip: You can see whether a font is a bitmap font or a scalable font by
1327  checking the 
1328 \begin_inset Quotes eld
1329 \end_inset
1330
1331 resx
1332 \begin_inset Quotes erd
1333 \end_inset
1334
1335  or 
1336 \begin_inset Quotes eld
1337 \end_inset
1338
1339 resy
1340 \begin_inset Quotes erd
1341 \end_inset
1342
1343  fields in 
1344 \family typewriter
1345 xfontsel
1346 \family default
1347 .
1348  If the value 0 is available, the font is scalable.
1349  If the value 0 isn't available, the font is a bitmap font.
1350 \end_layout
1351
1352 \begin_layout Standard
1353 Before you go about scrapping a bitmap font because the larger sizes look
1354  
1355 \begin_inset Quotes eld
1356 \end_inset
1357
1358 blocky
1359 \begin_inset Quotes erd
1360 \end_inset
1361
1362 , you should toggle the 
1363 \begin_inset Quotes eld
1364 \end_inset
1365
1366 Use scalable fonts
1367 \begin_inset Quotes erd
1368 \end_inset
1369
1370  button.
1371  This is only useful if you use bitmap fonts, because only these don't scale
1372  well.
1373  If you define this flag, LyX will only use the fixed font sizes that are
1374  available, and this guarantees that all bitmap fonts look well.
1375  (You can see which individual font sizes are available with the 
1376 \family typewriter
1377 xlsfonts
1378 \family default
1379  command.
1380  Try 
1381 \family typewriter
1382 man xlsfonts
1383 \family default
1384 .) However, the prize is that the difference between the size of the fonts
1385  on screen and the size of fonts on paper will be larger because LyX will
1386  have to be satisfied with the closest available size, and not try to scale
1387  a size to fit.
1388  Also, you can risk that some logically different sizes, such as 
1389 \family sans
1390 Large
1391 \family default
1392  and 
1393 \family sans
1394 Larger
1395 \family default
1396 , will be mapped to the same screen font, making it hard for you to see
1397  the difference on screen.
1398  We've decided not to use scalable fonts by default because of these artifacts,
1399  but since LyX is a WYSIWYM system, many people like to use the flag anyways,
1400  well-knowing that the font size on the screen can't be trusted.
1401  But remember that this flag only makes a difference when you use bitmap
1402  fonts.
1403  Scalable fonts won't be affected for reasons you should understand by now.
1404 \end_layout
1405
1406 \begin_layout Standard
1407 One final note regarding this flag: you should know that there is nothing
1408  wrong with using bitmap and scalable fonts at the same time for different
1409  purposes.
1410  For instance, it's common to use the scalable 
1411 \begin_inset Quotes eld
1412 \end_inset
1413
1414 Utopia
1415 \begin_inset Quotes erd
1416 \end_inset
1417
1418  for the serif text together with a bitmap version of 
1419 \begin_inset Quotes eld
1420 \end_inset
1421
1422 Helvetica
1423 \begin_inset Quotes erd
1424 \end_inset
1425
1426 .
1427  And you can safely select the 
1428 \begin_inset Quotes eld
1429 \end_inset
1430
1431 Use scalable fonts
1432 \begin_inset Quotes erd
1433 \end_inset
1434
1435  button without worries: It will only apply to the Helvetica font.
1436 \end_layout
1437
1438 \begin_layout Standard
1439 Sometimes the artifacts introduced by use of the flag can be relieved by
1440  using the fine-detail screen font sizes which defines which point sizes
1441  the different logical font sizes correspond to.
1442  Run LyX as 
1443 \family typewriter
1444 lyx -dbg 513
1445 \family default
1446  to see exactly what concrete fonts the logical sizes map to, and try adjusting
1447  the corresponding entries in the 
1448 \family sans
1449 Preferences
1450 \family default
1451  dialog until you've managed to hit the nail and get the fonts you want.
1452  This can be hard to do, because LyX uses the DPI setting and the font zoom
1453  settings to calculate which exact screen font size to ask the X server
1454  for, thus obfuscating the mapping.
1455  If you can't make it by trial-and-error, you can make the process more
1456  transparent if you set both the DPI setting and font zoom settings to 100---eve
1457 n when this is known to be wrong.
1458  This will of course make your scalable fonts look weird, so use with care.
1459 \end_layout
1460
1461 \begin_layout Subsection
1462 Font encoding
1463 \end_layout
1464
1465 \begin_layout Standard
1466 By default, LyX will use fonts meant to write Western European text, including
1467  all kinds of English.
1468  This is defined through the so-called 
1469 \emph on
1470 font
1471 \emph default
1472  
1473 \emph on
1474 encoding
1475 \emph default
1476 .
1477  If you want to use LyX to write for instance Eastern European text, Cyrillic
1478  or any other language not covered by the ISO-8859-1 font encoding, you
1479  can define a different one with the encoding setting.
1480  This requires you to have special fonts installed.
1481  You can use 
1482 \family typewriter
1483 xfontsel
1484 \family default
1485  to see whether this is the case: check the 
1486 \begin_inset Quotes eld
1487 \end_inset
1488
1489 rgstry
1490 \begin_inset Quotes erd
1491 \end_inset
1492
1493  and 
1494 \begin_inset Quotes eld
1495 \end_inset
1496
1497 encdng
1498 \begin_inset Quotes erd
1499 \end_inset
1500
1501  fields for ISO-8859-X values different from ISO-8859-1, and search for
1502  one that contains the national characters of your language.
1503  If you find any, enter this encoding in the dialog.
1504  If not, go searching the Web for appropriate fonts.
1505  For the Qt frontend, it's recommended you use an iso646 font set.
1506 \end_layout
1507
1508 \begin_layout Standard
1509 When you've set LyX up to use a different font encoding, you should also
1510  consider changing the font used by dialog windows in LyX.
1511  For instance, the 
1512 \family sans
1513 Table\InsetSpace ~
1514 of\InsetSpace ~
1515 Contents
1516 \family default
1517  dialog will not be understandable unless you tell LyX to use a different
1518  font for this.
1519  By default the menu font is set to 
1520 \family typewriter
1521 -*-helvetica-medium-r
1522 \family default
1523 , but often Helvetica is not available in the font encoding you need, so
1524  the dialog allows this to be changed.
1525 \end_layout
1526
1527 \begin_layout Standard
1528 As you can see, there are quite a few options that can be used to fine tune
1529  the look of your fonts.
1530  This should not scare you from fiddling with the settings, because after
1531  all, you will hopefully be using LyX for many hours in the future.
1532  And contrary to real WYSIWYG word processors where you are tied to using
1533  fonts that have to look good both on paper and on screen, LyX gives you
1534  the possibility of using fonts that are designed to look good on the screen
1535  while using a different set of fonts to look good on paper.
1536 \end_layout
1537
1538 \begin_layout Section
1539 Bindings
1540 \begin_inset CommandInset label
1541 LatexCommand label
1542 name "sec:bindings"
1543
1544 \end_inset
1545
1546
1547 \end_layout
1548
1549 \begin_layout Standard
1550 Bindings are used to, well, bind a function to a key.
1551  Several prepackaged binding files are available: a CUA set of bindings
1552  (familiar as the typical set of PC and CDE set of keyboard shortcuts),
1553  an Emacs set of bindings, for those of us who follow the One True Way and
1554  refuse to lower our standards,
1555 \begin_inset Foot
1556 status collapsed
1557
1558 \begin_layout Standard
1559 I'm kidding here, of course!
1560 \end_layout
1561
1562 \end_inset
1563
1564  as well as specialty bindings (broadway and hollywood) and other languages
1565  (French, German, etc.).
1566 \end_layout
1567
1568 \begin_layout Standard
1569 If, however, you'd like to customise the keybindings to your own exacting
1570  tastes, then copy the best-fit file in 
1571 \family typewriter
1572 LyXDir/bind/
1573 \family default
1574  to your own 
1575 \family typewriter
1576 UserDir/bind/
1577 \family default
1578  and modify that.
1579  Don't forget to load this new file into LyX using the 
1580 \family sans
1581 Preferences
1582 \family default
1583  dialog.
1584  (For the moment you'll have to restart LyX for these changes to take effect.)
1585 \end_layout
1586
1587 \begin_layout Standard
1588 LyX supports internationalization of the user interface (see Chapter\InsetSpace ~
1589
1590 \begin_inset CommandInset ref
1591 LatexCommand ref
1592 reference "chap:i18n"
1593
1594 \end_inset
1595
1596 ).
1597  If your 
1598 \emph on
1599 locale
1600 \emph default
1601  is set, with the environment variable 
1602 \family typewriter
1603 $LANG
1604 \family default
1605 , LyX will try to use bindfiles by prepending 
1606 \family typewriter
1607 $LANG_
1608 \family default
1609  to their name.
1610  For example, you can put a translated copy of some standard bind file in
1611  your personal 
1612 \family typewriter
1613 bind/
1614 \family default
1615  directory, and LyX will use it automatically.
1616 \end_layout
1617
1618 \begin_layout Standard
1619 The syntax of the 
1620 \family typewriter
1621 .bind
1622 \family default
1623  files is straightforward:
1624 \end_layout
1625
1626 \begin_layout Standard
1627
1628 \family typewriter
1629
1630 \backslash
1631 bind <key combination> <lyx-function>
1632 \end_layout
1633
1634 \begin_layout Standard
1635 Both key combination and lyx-function (including any arguments) must be
1636  enclosed in "double quotes".
1637  All the LyX functions are listed in the 
1638 \emph on
1639 Reference Guide
1640 \emph default
1641 .
1642 \end_layout
1643
1644 \begin_layout Section
1645 User Interface
1646 \begin_inset CommandInset label
1647 LatexCommand label
1648 name "sec:ui"
1649
1650 \end_inset
1651
1652
1653 \end_layout
1654
1655 \begin_layout Standard
1656 The appearance of both the menu and toolbar may both be changed using the
1657  
1658 \family sans
1659 Preferences
1660 \family default
1661  dialog.
1662  Simply change the 
1663 \family typewriter
1664 .ui
1665 \family default
1666  file in 
1667 \family typewriter
1668 LyXDir/ui/
1669 \family default
1670 .
1671  For the moment, only one file exists, 
1672 \family typewriter
1673 default.ui
1674 \family default
1675 , but feel free to experiment.
1676  Just copy the file to the 
1677 \family typewriter
1678 UserDir/ui/
1679 \family default
1680  directory and play! Note that, for the moment, you'll have to restart LyX
1681  for these changes to take effect.
1682 \end_layout
1683
1684 \begin_layout Standard
1685 The syntax of the 
1686 \family typewriter
1687 .ui
1688 \family default
1689  files is straightforward: have a look at 
1690 \family typewriter
1691 default.ui.
1692  The Menubar
1693 \family default
1694
1695 \family typewriter
1696 Menu
1697 \family default
1698  and 
1699 \family typewriter
1700 Toolbar
1701 \family default
1702  entries must be ended with an explicit 
1703 \family typewriter
1704 End
1705 \family default
1706 .
1707  They may contain 
1708 \family typewriter
1709 Submenu
1710 \family default
1711 s, 
1712 \family typewriter
1713 Item
1714 \family default
1715 s, 
1716 \family typewriter
1717 OptItem
1718 \family default
1719 s, 
1720 \family typewriter
1721 Separator
1722 \family default
1723 s, 
1724 \family typewriter
1725 Icon
1726 \family default
1727 s and in the case of the 
1728 \begin_inset Quotes eld
1729 \end_inset
1730
1731 file
1732 \begin_inset Quotes erd
1733 \end_inset
1734
1735  menus, a 
1736 \family typewriter
1737 Lastfiles
1738 \family default
1739  entry.
1740  One small word of warning.
1741  
1742 \family typewriter
1743 Submenu
1744 \family default
1745 s may be inserted in a 
1746 \family typewriter
1747 Menubar
1748 \family default
1749  or 
1750 \family typewriter
1751 Menu
1752 \family default
1753 , but they are defined as 
1754 \family typewriter
1755 Menu
1756 \family default
1757 s, not as 
1758 \family typewriter
1759 Submenu
1760 \family default
1761 s.
1762 \end_layout
1763
1764 \begin_layout Section
1765 \begin_inset CommandInset label
1766 LatexCommand label
1767 name "sec:converters-etc"
1768
1769 \end_inset
1770
1771 Converters, Formats, and Copiers
1772 \end_layout
1773
1774 \begin_layout Standard
1775 LyX has a powerful mechanism to convert to and from any file format using
1776  external programs.
1777  
1778 \end_layout
1779
1780 \begin_layout Subsection
1781 Formats
1782 \end_layout
1783
1784 \begin_layout Standard
1785 The first step is to define your file formats if they are not already defined.
1786  To do so, open the 
1787 \family sans
1788 Tools\SpecialChar \menuseparator
1789 Preferences:Converters
1790 \family default
1791  dialog.
1792  Enter a new format name; a new GUI name (used in e.\InsetSpace \thinspace{}
1793 g.\InsetSpace ~
1794 the 
1795 \family sans
1796 View
1797 \family default
1798  and 
1799 \family sans
1800 Export
1801 \family default
1802  menus); and a file extension.
1803  These are required.
1804  
1805 \end_layout
1806
1807 \begin_layout Standard
1808 The 
1809 \family sans
1810 Document format
1811 \family default
1812  option tells LyX that a format is suitable for document export.
1813  If this is is set and if a suitable conversion route exists, the format
1814  will appear in the 
1815 \family sans
1816 File\SpecialChar \menuseparator
1817 Export
1818 \family default
1819  menu.
1820  The format will also appear in the 
1821 \family sans
1822 View
1823 \family default
1824  menu if it has a specified viewer.
1825  Pure image formats, e.\InsetSpace \thinspace{}
1826 g.\InsetSpace ~
1827
1828 \family typewriter
1829 png
1830 \family default
1831 , should not use this option.
1832  Formats that can both represent vector graphics and documents like e.\InsetSpace \thinspace{}
1833 g.\InsetSpace ~
1834
1835 \family typewriter
1836 pdf
1837 \family default
1838  should use it.
1839 \end_layout
1840
1841 \begin_layout Standard
1842 The option 
1843 \family sans
1844 Vector graphics format
1845 \family default
1846  tells LyX that a format can contain vector graphics.
1847  This information is used to determine the target format of included graphics
1848  for 
1849 \family sans
1850 pdflatex
1851 \family default
1852  export.
1853  Included graphics may need to be converted to either 
1854 \family sans
1855 pdf
1856 \family default
1857
1858 \family sans
1859 png
1860 \family default
1861 , or 
1862 \family sans
1863 jpg
1864 \family default
1865 , since 
1866 \family sans
1867 pdflatex
1868 \family default
1869  cannot handle other image formats.
1870  If an included graphic is not already in 
1871 \family sans
1872 pdf
1873 \family default
1874
1875 \family sans
1876 png
1877 \family default
1878 , or 
1879 \family sans
1880 jpg
1881 \family default
1882  format, it is converted to 
1883 \family sans
1884 pdf
1885 \family default
1886  if the vector format option is set, and otherwise to 
1887 \family sans
1888 png
1889 \family default
1890 .
1891 \end_layout
1892
1893 \begin_layout Standard
1894 A Format can have a Viewer and Editor program associated with it.
1895  For example, you might want to use 
1896 \family sans
1897 Ghostview
1898 \family default
1899  to view PostScript files.
1900  You can enter the program call and its options to the corresponding fields.
1901  For the call you can use the four variable listed in the next section.
1902  The viewer is launched when you view an image in LyX or use the 
1903 \family sans
1904 View
1905 \family default
1906  menu.
1907  If the operating system has a default viewer associated to a format, this
1908  viewer is used instead of the one defined here when you enter in the Viewer
1909  field 
1910 \begin_inset Quotes eld
1911 \end_inset
1912
1913
1914 \family sans
1915 auto
1916 \family default
1917
1918 \begin_inset Quotes erd
1919 \end_inset
1920
1921 .
1922  The editor is for example launched when you press the 
1923 \family sans
1924 Edit
1925 \family default
1926  button in the 
1927 \family sans
1928 Graphics
1929 \family default
1930  or the 
1931 \family sans
1932 External material
1933 \family default
1934  dialog.
1935 \end_layout
1936
1937 \begin_layout Subsection
1938 Copiers
1939 \end_layout
1940
1941 \begin_layout Standard
1942 Each format can have a Copier associated with it.
1943  These are defined in the 
1944 \family sans
1945 Tools\SpecialChar \menuseparator
1946 Preferences:Copiers
1947 \family default
1948  dialog.
1949  Since all conversions from one format to another take place in LyX's temporary
1950  directory, it is sometimes necessary to modify a file before copying it
1951  to the temporary directory in order that the conversion may be performed.
1952 \begin_inset Foot
1953 status collapsed
1954
1955 \begin_layout Standard
1956 For example, the file may refer to other files---images, for example---using
1957  relative filenames, and these may become invalid when the file is copied
1958  to the temporary directory.
1959 \end_layout
1960
1961 \end_inset
1962
1963  This is done by the Copier: It copies a file to (or from) the temporary
1964  directory and may modify it in the process.
1965 \end_layout
1966
1967 \begin_layout Standard
1968 Copiers may also be used for other purposes.
1969  For example, if appropriate converters are found, LyX will automatically
1970  install copiers for the 
1971 \family sans
1972 HTML
1973 \family default
1974  and 
1975 \family sans
1976 HTML\InsetSpace ~
1977 (MS Word)
1978 \family default
1979  formats.
1980  When these formats are exported, the copier sees that not just the main
1981  HTML file but various associated files (style files, images, etc.) are also
1982  copied.
1983  All these files are written to a subdirectory of the directory in which
1984  the original LyX file was found.
1985 \begin_inset Foot
1986 status collapsed
1987
1988 \begin_layout Standard
1989 This copier can be customized.
1990  The optional 
1991 \begin_inset Quotes eld
1992 \end_inset
1993
1994 -e
1995 \begin_inset Quotes erd
1996 \end_inset
1997
1998  argument takes a comma-separated list of extensions to be copied; if it
1999  is omitted, all files will be copied.
2000  The 
2001 \begin_inset Quotes eld
2002 \end_inset
2003
2004 -t
2005 \begin_inset Quotes erd
2006 \end_inset
2007
2008  argument determines the extension added to the generated directory.
2009  By default, it is 
2010 \begin_inset Quotes eld
2011 \end_inset
2012
2013
2014 \family sans
2015 LyXconv
2016 \family default
2017
2018 \begin_inset Quotes erd
2019 \end_inset
2020
2021 , so HTML generated from 
2022 \family sans
2023 /path/to/filename.lyx
2024 \family default
2025  will end up in 
2026 \family sans
2027 /path/to/filename.html.LyXconv
2028 \family default
2029 .
2030  
2031 \end_layout
2032
2033 \end_inset
2034
2035
2036 \end_layout
2037
2038 \begin_layout Standard
2039 The definitions of the copiers may use four variables:
2040 \end_layout
2041
2042 \begin_layout List
2043 \labelwidthstring 00.00.0000
2044 $$s The LyX system directory (e.\InsetSpace \thinspace{}
2045 g.\InsetSpace ~
2046
2047 \family sans
2048 /usr/share/lyx
2049 \family default
2050 ).
2051 \end_layout
2052
2053 \begin_layout List
2054 \labelwidthstring 00.00.0000
2055 $$i The input file
2056 \end_layout
2057
2058 \begin_layout List
2059 \labelwidthstring 00.00.0000
2060 $$o The output file
2061 \end_layout
2062
2063 \begin_layout List
2064 \labelwidthstring 00.00.0000
2065 $$l The `LaTeX name'
2066 \end_layout
2067
2068 \begin_layout Standard
2069 The latter is to be given in a form suitable for inclusion in a LaTeX's
2070  
2071 \series bold
2072
2073 \backslash
2074 include
2075 \series default
2076  command and is relevant only when exporting files suitable for such inclusion.
2077 \end_layout
2078
2079 \begin_layout Standard
2080 Copiers can be used to do almost anything with output files.
2081  For example, suppose you want generated pdf files to be copied to a special
2082  directory, 
2083 \begin_inset Flex CharStyle:Code
2084 status collapsed
2085
2086 \begin_layout Standard
2087 /home/you/pdf/
2088 \end_layout
2089
2090 \end_inset
2091
2092 .
2093  Then you could write a shell script such as this one:
2094 \end_layout
2095
2096 \begin_layout Standard
2097 \begin_inset listings
2098 inline false
2099 status open
2100
2101 \begin_layout Standard
2102 #!/bin/bash
2103 \end_layout
2104
2105 \begin_layout Standard
2106 FROMFILE=$1
2107 \end_layout
2108
2109 \begin_layout Standard
2110 TOFILE=`basename $2`
2111 \end_layout
2112
2113 \begin_layout Standard
2114 cp $FROMFILE /home/you/pdf/$TOFILE
2115 \end_layout
2116
2117 \end_inset
2118
2119 Save that in your local LyX directory---say, 
2120 \begin_inset Flex CharStyle:Code
2121 status collapsed
2122
2123 \begin_layout Standard
2124 /home/you/.lyx/scripts/pdfcopier.sh
2125 \end_layout
2126
2127 \end_inset
2128
2129 ---and make it executable, if you need to do so on your platform.
2130  Then, in the 
2131 \family sans
2132 Tools\SpecialChar \menuseparator
2133 Preferences:Copiers
2134 \family default
2135  dialog, select the 
2136 \family sans
2137 PDF(pdflatex)
2138 \family default
2139  format---or one of the other pdf formats---and enter 
2140 \begin_inset Flex CharStyle:Code
2141 status collapsed
2142
2143 \begin_layout Standard
2144 pdfcopier.sh $$i $$o
2145 \end_layout
2146
2147 \end_inset
2148
2149  into the 
2150 \family sans
2151 Copier
2152 \family default
2153  field.
2154  
2155 \end_layout
2156
2157 \begin_layout Subsection
2158 Converters
2159 \end_layout
2160
2161 \begin_layout Standard
2162 To define a new converter, select an existing one, select a different format
2163  in the 
2164 \family sans
2165 From\InsetSpace ~
2166 format
2167 \family default
2168  and\InsetSpace \thinspace{}
2169 /\InsetSpace \thinspace{}
2170 or 
2171 \family sans
2172 To\InsetSpace ~
2173 format
2174 \family default
2175  drop-down list, modify the 
2176 \family sans
2177 Converter
2178 \family default
2179  field, and press the 
2180 \family sans
2181 Add
2182 \family default
2183  button.
2184 \end_layout
2185
2186 \begin_layout Standard
2187 You do not have to define converters between all the formats between which
2188  you want to convert.
2189  For example, you will note that there is no `LyX to PostScript' converter,
2190  but LyX will export PostScript.
2191  It does so by first creating a LaTeX file (no converter needs to be defined
2192  for this) which is then converted to DVI using the `LaTeX to DVI' converter,
2193  and finally converts the resulting DVI file to PostScript.
2194  LyX finds such `chains' of converters automatically, and it will always
2195  choose the shortest possible chain.
2196  You can, though, still define multiple conversion methods between file
2197  formats.
2198  For example, the standard LyX configuration provides three ways to convert
2199  LaTeX to PDF: Directly, using 
2200 \family sans
2201 pdflatex
2202 \family default
2203 ; via (DVI and) PostScript, using 
2204 \family sans
2205 ps2pdf
2206 \family default
2207 ; or via DVI, using 
2208 \family sans
2209 dvipdfm
2210 \family default
2211 .
2212  To define such alternate chains, you must define multiple target `file
2213  formats', as described in the next section.
2214  For example in the standard configuration the formats named 
2215 \family sans
2216 pdf
2217 \family default
2218
2219 \family sans
2220 pdf2
2221 \family default
2222 , and 
2223 \family sans
2224 pdf3
2225 \family default
2226  are defined, all of which share the extension 
2227 \family sans
2228 .pdf
2229 \family default
2230 .
2231 \end_layout
2232
2233 \begin_layout Standard
2234 Several variables can be used in the definition of converters:
2235 \end_layout
2236
2237 \begin_layout List
2238 \labelwidthstring 00.00.0000
2239 $$s The LyX system directory
2240 \end_layout
2241
2242 \begin_layout List
2243 \labelwidthstring 00.00.0000
2244 $$i The input file
2245 \end_layout
2246
2247 \begin_layout List
2248 \labelwidthstring 00.00.0000
2249 $$o The output file
2250 \end_layout
2251
2252 \begin_layout List
2253 \labelwidthstring 00.00.0000
2254 $$b The base filename of the input file
2255 \end_layout
2256
2257 \begin_layout List
2258 \labelwidthstring 00.00.0000
2259 $$p The path to the input file
2260 \end_layout
2261
2262 \begin_layout Standard
2263 In the 
2264 \family sans
2265 Extra\InsetSpace ~
2266 Flag
2267 \family default
2268  field you can enter the following flags, separated by commas:
2269 \end_layout
2270
2271 \begin_layout List
2272 \labelwidthstring 00.00.0000
2273 latex This converter runs some form of LaTeX.
2274  This will make LyX's LaTeX error logs available.
2275 \end_layout
2276
2277 \begin_layout List
2278 \labelwidthstring 00.00.0000
2279 needaux Needs the LaTeX 
2280 \family sans
2281 .aux
2282 \family default
2283  file for the conversion.
2284 \end_layout
2285
2286 \begin_layout List
2287 \labelwidthstring 00.00.0000
2288 xml Output is XML.
2289 \end_layout
2290
2291 \begin_layout Standard
2292 The following three flags are not really flags at all because they take
2293  an argument in the 
2294 \family sans
2295 key\InsetSpace ~
2296 =\InsetSpace ~
2297 value
2298 \family default
2299  format:
2300 \end_layout
2301
2302 \begin_layout List
2303 \labelwidthstring 00.00.0000
2304 parselog If set, the converter's standard error will be redirected to a
2305  file 
2306 \family typewriter
2307 infile.out
2308 \family default
2309 , and the script given as argument will be run as: 
2310 \family typewriter
2311 script <infile.out >infile.log
2312 \family default
2313 .
2314  The argument may contain $$s.
2315 \end_layout
2316
2317 \begin_layout List
2318 \labelwidthstring 00.00.0000
2319 resultdir The name of the directory in which the 
2320 \emph on
2321 converter
2322 \emph default
2323  will dump the generated files.
2324  LyX will not create this directory, and it does not copy anything into
2325  it, though it will copy this directory to the destination.
2326  The argument may contain $$b, which will be replaced by the basename of
2327  the input and output files, respectively, when the directory is copied.
2328 \newline
2329 Note
2330  that resultdir and usetempdir make no sense together.
2331  The latter will be ignored if the former is given.
2332 \end_layout
2333
2334 \begin_layout List
2335 \labelwidthstring 00.00.0000
2336 resultfile Determines the output filename and may, contain $$b.
2337  Sensible only with resultdir, and optional even then; if not given, it
2338  defaults to `index'.
2339 \end_layout
2340
2341 \begin_layout Standard
2342 None of these last three are presently used in any of the converters that
2343  are installed with LyX.
2344  But see section 
2345 \begin_inset CommandInset ref
2346 LatexCommand ref
2347 reference "sub:LyX-and-Literate"
2348
2349 \end_inset
2350
2351  of the Extended Features guide for some examples of how you might use parselog.
2352 \end_layout
2353
2354 \begin_layout Section
2355 BibTeX and makeindex
2356 \end_layout
2357
2358 \begin_layout Standard
2359 Both the bibliography generating command (default 
2360 \family typewriter
2361 bibtex
2362 \family default
2363 ) and the index generating command (default 
2364 \family typewriter
2365 makeindex
2366 \family default
2367  with options 
2368 \family typewriter
2369 -c
2370 \family default
2371  and 
2372 \family typewriter
2373 -q
2374 \family default
2375 ) can be changed.
2376  As an alternative for 
2377 \family typewriter
2378 makeindex
2379 \family default
2380
2381 \family typewriter
2382 xindy
2383 \family default
2384  can be recommended.
2385  
2386 \end_layout
2387
2388 \begin_layout Standard
2389 The command to enter is
2390 \end_layout
2391
2392 \begin_layout Quote
2393
2394 \family typewriter
2395 makeindex.sh -m $$lang
2396 \end_layout
2397
2398 \begin_layout Standard
2399 where the placeholder 
2400 \family typewriter
2401 $$lang
2402 \family default
2403  will be replaced by the chosen document (babel) language.
2404  For this, you must 
2405 \end_layout
2406
2407 \begin_layout Standard
2408 have installed the packages 
2409 \family typewriter
2410 xindy
2411 \family default
2412  and 
2413 \family typewriter
2414 make-rules
2415 \family default
2416  (
2417 \family typewriter
2418 xindy-make-rules
2419 \family default
2420 ).
2421  Type 
2422 \family typewriter
2423 makeindex.sh
2424 \family default
2425  at a shell prompt for a help page.
2426 \end_layout
2427
2428 \begin_layout Section
2429 Plain text export options
2430 \end_layout
2431
2432 \begin_layout Standard
2433 \begin_inset VSpace bigskip
2434 \end_inset
2435
2436
2437 \end_layout
2438
2439 \begin_layout Standard
2440 \noindent
2441 There are a couple of commands that can be used to 
2442 \begin_inset Quotes eld
2443 \end_inset
2444
2445 clean up
2446 \begin_inset Quotes erd
2447 \end_inset
2448
2449  exported plain text files.
2450  Note that LyX automatically detects and uses the best settings for your
2451  system at installation time, but you can modify them if you disagree with
2452  its interpretation.
2453 \end_layout
2454
2455 \begin_layout Description
2456
2457 \family typewriter
2458 \series medium
2459 Plain text\InsetSpace ~
2460 roff
2461 \family default
2462 \series default
2463  This option defines the command used to produce better plain text tables
2464  with the 
2465 \family typewriter
2466 groff/troff/nroff
2467 \family default
2468  UNIX-commands (refer to their manpages for more information about them).
2469  Setting this as empty tells LyX to use the internal (inferior) formatter.
2470 \end_layout
2471
2472 \begin_layout Description
2473
2474 \family typewriter
2475 \series medium
2476 Plain text\InsetSpace ~
2477 line\InsetSpace ~
2478 length
2479 \family default
2480 \series default
2481  With this command you can set the default line length of the plain text
2482  output file.
2483  Setting it to 0 means endless lines.
2484 \end_layout
2485
2486 \begin_layout Section
2487 Printer
2488 \end_layout
2489
2490 \begin_layout Standard
2491 There are a bunch of configuration options that are used for interaction
2492  with the external print command from LyX.
2493  Normally the defaults are fine: if, however, your print command takes different
2494  option names, you can modify them here.
2495 \end_layout
2496
2497 \begin_layout Subsection
2498 Changing Colors
2499 \end_layout
2500
2501 \begin_layout Standard
2502 You can change the colors used by LyX on-screen using the new 
2503 \family sans
2504 Preferences
2505 \family default
2506  dialog.
2507  Alternatively, if you're feeling particularly perverse you could use the
2508  
2509 \family typewriter
2510 set-color
2511 \family default
2512  bindable function (see the 
2513 \emph on
2514 Reference Guide
2515 \emph default
2516 ).
2517  Input would have the format:
2518 \end_layout
2519
2520 \begin_layout Standard
2521
2522 \family typewriter
2523 set-color LyXName X11Color
2524 \end_layout
2525
2526 \begin_layout Standard
2527 Here is a (partial) list of the functions and default colors:
2528 \end_layout
2529
2530 \begin_layout Standard
2531 \align center
2532 \begin_inset Tabular
2533 <lyxtabular version="3" rows="10" columns="3">
2534 <features>
2535 <column alignment="left" valignment="top" leftline="true" width="0pt">
2536 <column alignment="left" valignment="top" leftline="true" width="0pt">
2537 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
2538 <row topline="true" bottomline="true">
2539 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2540 \begin_inset Text
2541
2542 \begin_layout Standard
2543
2544 \family roman
2545 \series medium
2546 \shape up
2547 \size normal
2548 \emph off
2549 \bar no
2550 \noun off
2551 \color none
2552 LyX Name
2553 \end_layout
2554
2555 \end_inset
2556 </cell>
2557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
2558 \begin_inset Text
2559
2560 \begin_layout Standard
2561
2562 \family roman
2563 \series medium
2564 \shape up
2565 \size normal
2566 \emph off
2567 \bar no
2568 \noun off
2569 \color none
2570 Purpose
2571 \end_layout
2572
2573 \end_inset
2574 </cell>
2575 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2576 \begin_inset Text
2577
2578 \begin_layout Standard
2579
2580 \family roman
2581 \series medium
2582 \shape up
2583 \size normal
2584 \emph off
2585 \bar no
2586 \noun off
2587 \color none
2588 Default Color (X11)
2589 \end_layout
2590
2591 \end_inset
2592 </cell>
2593 </row>
2594 <row topline="true">
2595 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2596 \begin_inset Text
2597
2598 \begin_layout Standard
2599
2600 \family roman
2601 \series medium
2602 \shape up
2603 \size normal
2604 \emph off
2605 \bar no
2606 \noun off
2607 \color none
2608 background
2609 \end_layout
2610
2611 \end_inset
2612 </cell>
2613 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2614 \begin_inset Text
2615
2616 \begin_layout Standard
2617
2618 \family roman
2619 \series medium
2620 \shape up
2621 \size normal
2622 \emph off
2623 \bar no
2624 \noun off
2625 \color none
2626 text background
2627 \end_layout
2628
2629 \end_inset
2630 </cell>
2631 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2632 \begin_inset Text
2633
2634 \begin_layout Standard
2635
2636 \family roman
2637 \series medium
2638 \shape up
2639 \size normal
2640 \emph off
2641 \bar no
2642 \noun off
2643 \color none
2644 black
2645 \end_layout
2646
2647 \end_inset
2648 </cell>
2649 </row>
2650 <row topline="true">
2651 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2652 \begin_inset Text
2653
2654 \begin_layout Standard
2655
2656 \family roman
2657 \series medium
2658 \shape up
2659 \size normal
2660 \emph off
2661 \bar no
2662 \noun off
2663 \color none
2664 foreground
2665 \end_layout
2666
2667 \end_inset
2668 </cell>
2669 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2670 \begin_inset Text
2671
2672 \begin_layout Standard
2673
2674 \family roman
2675 \series medium
2676 \shape up
2677 \size normal
2678 \emph off
2679 \bar no
2680 \noun off
2681 \color none
2682 text foreground
2683 \end_layout
2684
2685 \end_inset
2686 </cell>
2687 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2688 \begin_inset Text
2689
2690 \begin_layout Standard
2691
2692 \family roman
2693 \series medium
2694 \shape up
2695 \size normal
2696 \emph off
2697 \bar no
2698 \noun off
2699 \color none
2700 linen
2701 \end_layout
2702
2703 \end_inset
2704 </cell>
2705 </row>
2706 <row topline="true">
2707 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2708 \begin_inset Text
2709
2710 \begin_layout Standard
2711
2712 \family roman
2713 \series medium
2714 \shape up
2715 \size normal
2716 \emph off
2717 \bar no
2718 \noun off
2719 \color none
2720 latex
2721 \end_layout
2722
2723 \end_inset
2724 </cell>
2725 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2726 \begin_inset Text
2727
2728 \begin_layout Standard
2729
2730 \family roman
2731 \series medium
2732 \shape up
2733 \size normal
2734 \emph off
2735 \bar no
2736 \noun off
2737 \color none
2738 LaTeX code
2739 \end_layout
2740
2741 \end_inset
2742 </cell>
2743 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2744 \begin_inset Text
2745
2746 \begin_layout Standard
2747
2748 \family roman
2749 \series medium
2750 \shape up
2751 \size normal
2752 \emph off
2753 \bar no
2754 \noun off
2755 \color none
2756 DarkRed
2757 \end_layout
2758
2759 \end_inset
2760 </cell>
2761 </row>
2762 <row topline="true">
2763 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2764 \begin_inset Text
2765
2766 \begin_layout Standard
2767
2768 \family roman
2769 \series medium
2770 \shape up
2771 \size normal
2772 \emph off
2773 \bar no
2774 \noun off
2775 \color none
2776 math
2777 \end_layout
2778
2779 \end_inset
2780 </cell>
2781 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2782 \begin_inset Text
2783
2784 \begin_layout Standard
2785
2786 \family roman
2787 \series medium
2788 \shape up
2789 \size normal
2790 \emph off
2791 \bar no
2792 \noun off
2793 \color none
2794 Mathed formulae
2795 \end_layout
2796
2797 \end_inset
2798 </cell>
2799 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2800 \begin_inset Text
2801
2802 \begin_layout Standard
2803
2804 \family roman
2805 \series medium
2806 \shape up
2807 \size normal
2808 \emph off
2809 \bar no
2810 \noun off
2811 \color none
2812 DarkBlue
2813 \end_layout
2814
2815 \end_inset
2816 </cell>
2817 </row>
2818 <row topline="true">
2819 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2820 \begin_inset Text
2821
2822 \begin_layout Standard
2823
2824 \family roman
2825 \series medium
2826 \shape up
2827 \size normal
2828 \emph off
2829 \bar no
2830 \noun off
2831 \color none
2832 mathline
2833 \end_layout
2834
2835 \end_inset
2836 </cell>
2837 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2838 \begin_inset Text
2839
2840 \begin_layout Standard
2841
2842 \family roman
2843 \series medium
2844 \shape up
2845 \size normal
2846 \emph off
2847 \bar no
2848 \noun off
2849 \color none
2850 fraction Lines, brackets, etc.
2851 \end_layout
2852
2853 \end_inset
2854 </cell>
2855 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2856 \begin_inset Text
2857
2858 \begin_layout Standard
2859
2860 \family roman
2861 \series medium
2862 \shape up
2863 \size normal
2864 \emph off
2865 \bar no
2866 \noun off
2867 \color none
2868 Blue
2869 \end_layout
2870
2871 \end_inset
2872 </cell>
2873 </row>
2874 <row topline="true">
2875 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2876 \begin_inset Text
2877
2878 \begin_layout Standard
2879
2880 \family roman
2881 \series medium
2882 \shape up
2883 \size normal
2884 \emph off
2885 \bar no
2886 \noun off
2887 \color none
2888 mathbg
2889 \end_layout
2890
2891 \end_inset
2892 </cell>
2893 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2894 \begin_inset Text
2895
2896 \begin_layout Standard
2897
2898 \end_layout
2899
2900 \end_inset
2901 </cell>
2902 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2903 \begin_inset Text
2904
2905 \begin_layout Standard
2906
2907 \family roman
2908 \series medium
2909 \shape up
2910 \size normal
2911 \emph off
2912 \bar no
2913 \noun off
2914 \color none
2915 AntiqueWhite
2916 \end_layout
2917
2918 \end_inset
2919 </cell>
2920 </row>
2921 <row topline="true">
2922 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2923 \begin_inset Text
2924
2925 \begin_layout Standard
2926
2927 \family roman
2928 \series medium
2929 \shape up
2930 \size normal
2931 \emph off
2932 \bar no
2933 \noun off
2934 \color none
2935 mathframe
2936 \end_layout
2937
2938 \end_inset
2939 </cell>
2940 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2941 \begin_inset Text
2942
2943 \begin_layout Standard
2944
2945 \end_layout
2946
2947 \end_inset
2948 </cell>
2949 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2950 \begin_inset Text
2951
2952 \begin_layout Standard
2953
2954 \family roman
2955 \series medium
2956 \shape up
2957 \size normal
2958 \emph off
2959 \bar no
2960 \noun off
2961 \color none
2962 Magenta
2963 \end_layout
2964
2965 \end_inset
2966 </cell>
2967 </row>
2968 <row topline="true">
2969 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2970 \begin_inset Text
2971
2972 \begin_layout Standard
2973
2974 \family roman
2975 \series medium
2976 \shape up
2977 \size normal
2978 \emph off
2979 \bar no
2980 \noun off
2981 \color none
2982 mathcursor
2983 \end_layout
2984
2985 \end_inset
2986 </cell>
2987 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
2988 \begin_inset Text
2989
2990 \begin_layout Standard
2991
2992 \end_layout
2993
2994 \end_inset
2995 </cell>
2996 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
2997 \begin_inset Text
2998
2999 \begin_layout Standard
3000
3001 \family roman
3002 \series medium
3003 \shape up
3004 \size normal
3005 \emph off
3006 \bar no
3007 \noun off
3008 \color none
3009 black
3010 \end_layout
3011
3012 \end_inset
3013 </cell>
3014 </row>
3015 <row topline="true" bottomline="true">
3016 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
3017 \begin_inset Text
3018
3019 \begin_layout Standard
3020
3021 \family roman
3022 \series medium
3023 \shape up
3024 \size normal
3025 \emph off
3026 \bar no
3027 \noun off
3028 \color none
3029 selection
3030 \end_layout
3031
3032 \end_inset
3033 </cell>
3034 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
3035 \begin_inset Text
3036
3037 \begin_layout Standard
3038
3039 \family roman
3040 \series medium
3041 \shape up
3042 \size normal
3043 \emph off
3044 \bar no
3045 \noun off
3046 \color none
3047 selection background
3048 \end_layout
3049
3050 \end_inset
3051 </cell>
3052 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3053 \begin_inset Text
3054
3055 \begin_layout Standard
3056
3057 \family roman
3058 \series medium
3059 \shape up
3060 \size normal
3061 \emph off
3062 \bar no
3063 \noun off
3064 \color none
3065 LightBlue
3066 \end_layout
3067
3068 \end_inset
3069 </cell>
3070 </row>
3071 </lyxtabular>
3072
3073 \end_inset
3074
3075
3076 \end_layout
3077
3078 \begin_layout Section
3079 The autodetected settings
3080 \end_layout
3081
3082 \begin_layout Standard
3083 \begin_inset CommandInset label
3084 LatexCommand label
3085 name "sec:autodetected"
3086
3087 \end_inset
3088
3089 There are several items that are detected for you when you run 
3090 \family sans
3091 \bar under
3092 T
3093 \bar default
3094 ools
3095 \bar under
3096 \SpecialChar \menuseparator
3097 R
3098 \bar default
3099 econfigure
3100 \family default
3101 .
3102  In this section, we list those which pertain to the user preferences.
3103 \end_layout
3104
3105 \begin_layout Description
3106
3107 \family typewriter
3108 \series medium
3109
3110 \backslash
3111 plaintext_roff_command
3112 \family default
3113 \series default
3114  uses either 
3115 \family typewriter
3116 groff
3117 \family default
3118  or 
3119 \family typewriter
3120 nroff
3121 \family default
3122 +
3123 \family typewriter
3124 tbl
3125 \family default
3126 , depending on what is available.
3127 \end_layout
3128
3129 \begin_layout Description
3130
3131 \family typewriter
3132 \series medium
3133
3134 \backslash
3135 chktex_command
3136 \family default
3137 \series default
3138  is set to 
3139 \family typewriter
3140 chktex
3141 \family default
3142  plus a bunch of options.
3143 \end_layout
3144
3145 \begin_layout Description
3146
3147 \family typewriter
3148 \series medium
3149
3150 \backslash
3151 print_spool_command
3152 \family default
3153 \series default
3154  is set to 
3155 \family typewriter
3156 lp
3157 \family default
3158  on systems (so-called System V) who have this command, and 
3159 \family typewriter
3160 lpr
3161 \family default
3162  otherwise (BSD systems).
3163 \end_layout
3164
3165 \begin_layout Description
3166
3167 \family typewriter
3168 \series medium
3169
3170 \backslash
3171 print_spool_printerprefix
3172 \family default
3173 \series default
3174  is set to 
3175 \family typewriter
3176 -d
3177 \family default
3178  or 
3179 \family typewriter
3180 -P
3181 \family default
3182 , depending on whether 
3183 \family typewriter
3184 lp
3185 \family default
3186  or 
3187 \family typewriter
3188 lpr
3189 \family default
3190  was found.
3191 \end_layout
3192
3193 \begin_layout Description
3194
3195 \family typewriter
3196 \series medium
3197
3198 \backslash
3199 font_encoding
3200 \family default
3201 \series default
3202  is set to 
3203 \family typewriter
3204 T1
3205 \family default
3206  if the 
3207 \family typewriter
3208 ec
3209 \family default
3210  fonts are found and LaTeX has support for these fonts built-in.
3211  You can set it manually if you only have the so-called 
3212 \family typewriter
3213 dc
3214 \family default
3215  fonts.
3216 \end_layout
3217
3218 \begin_layout Section
3219 The rest
3220 \end_layout
3221
3222 \begin_layout Standard
3223 There are many other configuration options that can be used to customize
3224  LyX behavior.
3225  We still need to document them here, but again, most should be fairly obvious.
3226  Please ask on the mailing lists if you need some more information; it may
3227  even prompt us to expand this section.
3228 \end_layout
3229
3230 \begin_layout Chapter
3231 Internationalizing LyX
3232 \begin_inset CommandInset label
3233 LatexCommand label
3234 name "chap:i18n"
3235
3236 \end_inset
3237
3238
3239 \end_layout
3240
3241 \begin_layout Standard
3242 LyX supports using a translated interface.
3243  Last time we checked, LyX provided text in 14 languages together with the
3244  default English text.
3245  The language of choice is called your 
3246 \emph on
3247 locale
3248 \emph default
3249 .
3250  (For further reading on locale settings, see also the documentation for
3251  locale that comes with your operating system.
3252  For Linux, the manual page for locale(5) could be a good place to start).
3253 \end_layout
3254
3255 \begin_layout Standard
3256 Notice that these translations will work, but do contain a few flaws.
3257  In particular, all dialogs have been designed with the English text in
3258  mind, which means that some of the translated text will be too large to
3259  fit within the space allocated.
3260  This is only a display problem and will not cause any harm.
3261  Also, you will find that some of the translations do not define short-cut
3262  keys for everything.
3263  Sometimes, there are simply not enough free letters to do it.
3264  Other times, the translator just hasn't got around to doing it yet.
3265  Our localization team -- which you may wish to join -- will try to fix
3266  these shortcomings in future versions of LyX.
3267 \end_layout
3268
3269 \begin_layout Section
3270 Selecting an alternative language for the user interface
3271 \end_layout
3272
3273 \begin_layout Standard
3274 This feature is disabled by default, meaning that system default language
3275  will be used.
3276  To enable an alternative language, you have to set an appropriate environment
3277  variable.
3278  Use 
3279 \family typewriter
3280 "setenv LANG xx"
3281 \family default
3282  
3283 \family roman
3284 for csh class shells
3285 \family default
3286  or 
3287 \family typewriter
3288 "export LANG=xx"
3289 \family default
3290  
3291 \family roman
3292 for sh class shells
3293 \family default
3294 .
3295  Substitute the 
3296 \family typewriter
3297 xx
3298 \family default
3299  with the two letter code (or four letter code, like 
3300 \family typewriter
3301 en_GB
3302 \family default
3303  for British English) for the language you want.
3304  For instance, 
3305 \family typewriter
3306 no
3307 \family default
3308  is Norwegian.
3309  Besides the user interface texts being translated, also the appropriate
3310  manuals will be presented under the Help menu -- if available.
3311 \end_layout
3312
3313 \begin_layout Standard
3314 On some systems, you may have to redefine 
3315 \family typewriter
3316 LC_ALL
3317 \family default
3318  or 
3319 \family typewriter
3320 LC_MESSAGES
3321 \family default
3322  instead of 
3323 \family typewriter
3324 LANG
3325 \family default
3326 , to override the system settings; their preference is in this order
3327 \begin_inset Foot
3328 status collapsed
3329
3330 \begin_layout Standard
3331 The shell variable LANGUAGE has been disabled in LyX for technical reasons.
3332  Don't use it.
3333 \end_layout
3334
3335 \end_inset
3336
3337 , which corresponds to the way GNU 
3338 \family typewriter
3339 gettext
3340 \family default
3341  does it.
3342  Consult your system documentation.
3343  Normally, you'll want to put the appropriate line in a shell script run
3344  on start-up, so that the translation is on by default.
3345  Remember that this affects 
3346 \emph on
3347 all
3348 \emph default
3349  localized packages, not only LyX! 
3350 \end_layout
3351
3352 \begin_layout Standard
3353 If LyX is configured and compiled with 
3354 \begin_inset Quotes eld
3355 \end_inset
3356
3357
3358 \family typewriter
3359 --disable-nls
3360 \family default
3361
3362 \begin_inset Quotes erd
3363 \end_inset
3364
3365 , this mechanism will not work.
3366 \end_layout
3367
3368 \begin_layout Section
3369 Translating LyX
3370 \end_layout
3371
3372 \begin_layout Subsection
3373 Translating the graphical user interface (text messages).
3374 \end_layout
3375
3376 \begin_layout Standard
3377 LyX uses the GNU 
3378 \family typewriter
3379 gettext
3380 \family default
3381  library to handle the internationalization of the interface.
3382  To have LyX speak your favorite language in all menus and dialogs, you
3383  need a 
3384 \family typewriter
3385 po
3386 \family default
3387 -file for that language.
3388  When this is available, you'll have to generate a mo-file from it and install
3389  the 
3390 \family typewriter
3391 mo
3392 \family default
3393 -file.
3394  The process of doing all of this is explained in the documentation for
3395  GNU 
3396 \family typewriter
3397 gettext
3398 \family default
3399 , but in short, this is what you do (
3400 \series bold
3401 xx
3402 \series default
3403  denotes the language code):
3404 \end_layout
3405
3406 \begin_layout Standard
3407 \begin_inset ERT
3408 status open
3409
3410 \begin_layout Standard
3411
3412
3413 \backslash
3414 begin{sloppypar}
3415 \end_layout
3416
3417 \end_inset
3418
3419
3420 \end_layout
3421
3422 \begin_layout Itemize
3423 Copy 
3424 \family typewriter
3425 LYX-SOURCE-DIR/po/lyx.pot
3426 \family default
3427  to 
3428 \series bold
3429 xx
3430 \family typewriter
3431 \series default
3432 .po
3433 \family default
3434  (if 
3435 \family typewriter
3436 lyx.pot
3437 \family default
3438  doesn't exist, it can be remade with 
3439 \family typewriter
3440 make lyx.pot
3441 \family default
3442  in that directory, or you can use an existing po-file for some other language
3443  as a template).
3444 \end_layout
3445
3446 \begin_layout Itemize
3447 Edit 
3448 \family typewriter
3449 xx.po
3450 \begin_inset Foot
3451 status collapsed
3452
3453 \begin_layout Standard
3454 We recommend that you use Emacs to do this, since the 
3455 \family typewriter
3456 gettext
3457 \family default
3458  distribution includes a nice mode that supports you in doing this.
3459 \end_layout
3460
3461 \end_inset
3462
3463
3464 \family default
3465 .
3466  For some menu- and widget-labels, there are also shortcut keys that should
3467  be translated.
3468  Those keys are marked after a `|', and should be translated according to
3469  the words and phrases of the 
3470 \series bold
3471 xx
3472 \series default
3473 -language.
3474  There is a tool named 
3475 \family typewriter
3476 scgen.pl
3477 \family default
3478  written in Prolog in 
3479 \family typewriter
3480 LYX-SOURCE-DIR/development/tools/
3481 \family default
3482  that may be useful to help determine short-cut keys.
3483  Note that XForms (version 0.86 at least) can't handle anything but 7-bit
3484  characters as shortcut keys.
3485  You should also fill also out the information at the beginning of the new
3486  
3487 \family typewriter
3488 po
3489 \family default
3490 -file with your email-address, etc., so people know where to reach you with
3491  suggestions and entertaining flames.
3492 \end_layout
3493
3494 \begin_layout Itemize
3495 Generate 
3496 \series bold
3497 xx
3498 \family typewriter
3499 \series default
3500 .mo
3501 \family default
3502 .
3503  This can be done with
3504 \newline
3505
3506 \family typewriter
3507 msgfmt -o
3508 \family default
3509  
3510 \series bold
3511 xx
3512 \family typewriter
3513 \series default
3514 .mo <
3515 \family default
3516  
3517 \series bold
3518 xx
3519 \family typewriter
3520 \series default
3521 .po
3522 \end_layout
3523
3524 \begin_layout Itemize
3525 Copy the 
3526 \family typewriter
3527 mo
3528 \family default
3529 -file to your locale-tree, at the correct directory for application messages
3530  for the language 
3531 \series bold
3532 xx
3533 \series default
3534 , and under the name 
3535 \family typewriter
3536 lyx.mo
3537 \family default
3538
3539 \newline
3540 (e.g.
3541  
3542 \family typewriter
3543 /usr/local/share/locale/
3544 \family default
3545 \series bold
3546 xx
3547 \family typewriter
3548 \series default
3549 /LC_MESSAGES/lyx.mo
3550 \family default
3551 )
3552 \end_layout
3553
3554 \begin_layout Standard
3555 \begin_inset ERT
3556 status open
3557
3558 \begin_layout Standard
3559
3560
3561 \backslash
3562 end{sloppypar}
3563 \end_layout
3564
3565 \end_inset
3566
3567
3568 \end_layout
3569
3570 \begin_layout Standard
3571 Adding a new po-file to the 
3572 \emph on
3573 distribution
3574 \emph default
3575  of LyX involves altering the configure scripts and more, but the way 
3576 \family typewriter
3577 gettext
3578 \family default
3579  works, you don't actually need the source-code of LyX to translate it---having
3580  
3581 \family typewriter
3582 lyx.pot
3583 \family default
3584  (or an existing 
3585 \family typewriter
3586 po
3587 \family default
3588 -file) and the 
3589 \family typewriter
3590 gettext
3591 \family default
3592  tools suffices.
3593 \end_layout
3594
3595 \begin_layout Standard
3596 If you've written a translation file for a language that LyX does not currently
3597  support, feel free to submit it for inclusion by sending a patch.
3598  In this case, we recommend that you read the 
3599 \family typewriter
3600 README
3601 \family default
3602  provided in the 
3603 \family typewriter
3604 LYX-SOURCE-DIR/po/
3605 \family default
3606  directory for more instructions.
3607 \end_layout
3608
3609 \begin_layout Subsubsection
3610 Ambigous messages
3611 \end_layout
3612
3613 \begin_layout Standard
3614 Sometimes it turns out that one english message needs to be translated into
3615  different messages in the target language.
3616  One example is the message 
3617 \family typewriter
3618 To
3619 \family default
3620  which has the german translation 
3621 \family typewriter
3622 \lang german
3623 Nach
3624 \family default
3625 \lang english
3626  or 
3627 \family typewriter
3628 \lang german
3629 Bis
3630 \family default
3631 \lang english
3632 .
3633  
3634 \family typewriter
3635 gettext
3636 \family default
3637  does not handle such ambigous translations.
3638  Therefore you have to add some context information to the message: Instead
3639  of 
3640 \family typewriter
3641 To
3642 \family default
3643  it becomes 
3644 \family typewriter
3645 To[[as in 'From format x to format y']]
3646 \family default
3647  and 
3648 \family typewriter
3649 To[[as in 'From page x to page y']].
3650
3651 \family default
3652  Now the two occurences of 
3653 \family typewriter
3654 To
3655 \family default
3656  are different for 
3657 \family typewriter
3658 gettext
3659 \family default
3660  and can be translated correctly to 
3661 \family typewriter
3662 \lang german
3663 Nach
3664 \family default
3665 \lang english
3666  and 
3667 \family typewriter
3668 \lang german
3669 Bis
3670 \family default
3671 \lang english
3672 , respectively.
3673 \end_layout
3674
3675 \begin_layout Standard
3676 Of course the context information needs to be stripped off the original
3677  message when no translation is used.
3678  Therefore you have to put it in double square brackets at the end of the
3679  message (see the example above).
3680  The translation mechanism of LyX ensures that everything in double square
3681  brackets at the end of messages is removed before displaying the message.
3682 \end_layout
3683
3684 \begin_layout Subsection
3685 Translating the documentation.
3686 \end_layout
3687
3688 \begin_layout Standard
3689 The online documentation (in the 
3690 \family sans
3691 \bar under
3692 H
3693 \bar default
3694 elp
3695 \family default
3696 -menu) can (and should!) be translated.
3697  If there are translated versions of the documentation available
3698 \begin_inset Foot
3699 status collapsed
3700
3701 \begin_layout Standard
3702 As of February 2003, almost all of the docs have been translated into German
3703  and French.
3704  The 
3705 \emph on
3706 Tutorial
3707 \emph default
3708  has been translated into at least 12 other languages, with other translations
3709  in progress.
3710  The library of translated documents is growing rapidly.
3711 \end_layout
3712
3713 \end_inset
3714
3715 , and the locale is set accordingly, these will be used automagically by
3716  LyX.
3717  LyX looks for translated versions as 
3718 \family typewriter
3719 LyXDir/doc/
3720 \series bold
3721 xx
3722 \series default
3723 _DocName.lyx
3724 \family default
3725 , where 
3726 \family typewriter
3727 \series bold
3728 xx
3729 \family default
3730 \series default
3731  denotes the language as set by the environmental variable 
3732 \family typewriter
3733 $LANG
3734 \family default
3735 .
3736  If there are none, the default English versions will be displayed.
3737  Note that the translated versions must have the same filenames (
3738 \family typewriter
3739 DocName
3740 \family default
3741  above) as the original.
3742  If you feel up to translating the documentation (an excellent way to proof-read
3743  the original documentation BTW!), there are a few things you should do
3744  right away:
3745 \end_layout
3746
3747 \begin_layout Itemize
3748 Read 
3749 \family typewriter
3750 DocStyle.lyx
3751 \family default
3752 , the guide to writing LyX documentation.
3753  Pay special attention to the translator's section.
3754 \end_layout
3755
3756 \begin_layout Itemize
3757 Check out the documentation translation web page at 
3758 \begin_inset Flex URL
3759 status collapsed
3760
3761 \begin_layout Standard
3762
3763 http://www.devel.lyx.org
3764 \end_layout
3765
3766 \end_inset
3767
3768 .
3769  That way, you can find out which (if any) documents have already been translate
3770 d into your language.
3771  You can also find out who (if anyone) is organizing the effort to translate
3772  the documentation into your language.
3773  If no one is organizing the effort, please let us know that you're interested.
3774 \end_layout
3775
3776 \begin_layout Standard
3777 Once you get to actually translating, here's a few hints for you that may
3778  save you trouble:
3779 \end_layout
3780
3781 \begin_layout Itemize
3782 Join the documentation team! There is information on how to do that in 
3783 \family typewriter
3784 Intro.lyx
3785 \family default
3786  (
3787 \family sans
3788 \bar under
3789 H
3790 \bar default
3791 elp\SpecialChar \menuseparator
3792
3793 \bar under
3794 I
3795 \bar default
3796 ntroduction
3797 \family default
3798 ), which by the way is the first document you should translate.
3799 \end_layout
3800
3801 \begin_layout Itemize
3802 Learn the typographic conventions for the language you are translating to.
3803  Typography is an ancient art and over the centuries, a great variety of
3804  conventions have developed throughout different parts of the world.
3805  Also study the professional terminology amongst typographers in your country.
3806  Inventing your own terminology will only confuse the users.
3807  
3808 \emph on
3809 (Warning! Typography is addictive!)
3810 \end_layout
3811
3812 \begin_layout Itemize
3813 Make a copy of the document.
3814  This will be your working copy.
3815  You can use this as your personal translated help-file by placing it in
3816  your 
3817 \family typewriter
3818 ~/.lyx/doc/
3819 \family default
3820 -directory.
3821 \end_layout
3822
3823 \begin_layout Itemize
3824 Sometimes the original document (from the LyX-team) will be updated.
3825  Use the ViewCVS tool available at 
3826 \begin_inset Flex URL
3827 status collapsed
3828
3829 \begin_layout Standard
3830
3831 http://www.lyx.org/viewcvs.cgi/lyxdoc/
3832 \end_layout
3833
3834 \end_inset
3835
3836  to see what has been changed
3837 \begin_inset Foot
3838 status collapsed
3839
3840 \begin_layout Standard
3841 Alternatively, you can keep a copy of the latest version of the English
3842  document which you've translated.
3843 \end_layout
3844
3845 \end_inset
3846
3847 .
3848  That way you can easily see which parts of the translated document need
3849  to be updated.
3850 \end_layout
3851
3852 \begin_layout Itemize
3853 If you ever find an error in the original document, fix it and notify the
3854  rest of the documentation team of the changes! (You didn't forget to join
3855  the documentation team did you?)
3856 \end_layout
3857
3858 \begin_layout Section
3859 International Keyboard Support
3860 \end_layout
3861
3862 \begin_layout Standard
3863
3864 \emph on
3865 [Editor's Note: The following section is by
3866 \emph default
3867  
3868 \shape smallcaps
3869 \emph on
3870 Ivan Schreter
3871 \shape default
3872 .
3873  It needs to be fixed to conform to the new Documentation Style sheet and
3874  to make use of the new v1.0 features.
3875  The whole thing also needs to be merged with the section following it.-jw]
3876 \end_layout
3877
3878 \begin_layout Subsection
3879 Defining Own Keymaps: Keymap File Format
3880 \end_layout
3881
3882 \begin_layout Standard
3883 Let's look at a keyboard definition file a little closer.
3884  It is a plain text file defining
3885 \end_layout
3886
3887 \begin_layout Itemize
3888 key-to-key or key-to-string translations
3889 \end_layout
3890
3891 \begin_layout Itemize
3892 dead keys
3893 \end_layout
3894
3895 \begin_layout Itemize
3896 dead keys exceptions
3897 \end_layout
3898
3899 \begin_layout Standard
3900 To define key-to-key or key-to-string translation, use this command:
3901 \end_layout
3902
3903 \begin_layout Quotation
3904
3905 \family typewriter
3906
3907 \backslash
3908 kmap
3909 \family default
3910  
3911 \family typewriter
3912 key
3913 \family default
3914  
3915 \family typewriter
3916 outstring
3917 \end_layout
3918
3919 \begin_layout Standard
3920 where 
3921 \family typewriter
3922 key
3923 \family default
3924  is the key to be translated and 
3925 \family typewriter
3926 outstring
3927 \family default
3928  is the string to be inserted into the document.
3929  To define dead keys, use:
3930 \end_layout
3931
3932 \begin_layout Quotation
3933
3934 \family typewriter
3935
3936 \backslash
3937 kmod
3938 \family default
3939  
3940 \family typewriter
3941 key
3942 \family default
3943  
3944 \family typewriter
3945 deadkey
3946 \end_layout
3947
3948 \begin_layout Standard
3949 where 
3950 \family typewriter
3951 key
3952 \family default
3953  is keyboard key and 
3954 \family typewriter
3955 deadkey
3956 \family default
3957  is dead key name.
3958  The following dead keys are supported (shortcut name is in parentheses):
3959 \end_layout
3960
3961 \begin_layout Quotation
3962
3963 \emph on
3964 Name
3965 \hfill
3966 Example
3967 \end_layout
3968
3969 \begin_layout Quotation
3970 acute (acu)
3971 \hfill
3972 áéíóú
3973 \end_layout
3974
3975 \begin_layout Quotation
3976 grave (gra)
3977 \hfill
3978 àèìòù
3979 \end_layout
3980
3981 \begin_layout Quotation
3982 macron (mac)
3983 \hfill
3984  ō
3985 \end_layout
3986
3987 \begin_layout Quotation
3988 tilde (til)
3989 \hfill
3990 ñÑ
3991 \end_layout
3992
3993 \begin_layout Quotation
3994 underbar (underb)
3995 \hfill
3996
3997 \begin_inset ERT
3998 status open
3999
4000 \begin_layout Standard
4001
4002
4003 \backslash
4004 b o
4005 \end_layout
4006
4007 \end_inset
4008
4009
4010 \end_layout
4011
4012 \begin_layout Quotation
4013 cedilla (ced)
4014 \hfill
4015 çÇ
4016 \end_layout
4017
4018 \begin_layout Quotation
4019 underdot (underd)
4020 \hfill
4021
4022 \begin_inset ERT
4023 status open
4024
4025 \begin_layout Standard
4026
4027
4028 \backslash
4029 d o
4030 \end_layout
4031
4032 \end_inset
4033
4034
4035 \end_layout
4036
4037 \begin_layout Quotation
4038 circumflex (circu)
4039 \hfill
4040 âêîôû
4041 \end_layout
4042
4043 \begin_layout Quotation
4044 circle (circl)
4045 \hfill
4046 ÅůŮ
4047 \end_layout
4048
4049 \begin_layout Quotation
4050 tie (tie)
4051 \hfill
4052
4053 \begin_inset ERT
4054 status open
4055
4056 \begin_layout Standard
4057
4058
4059 \backslash
4060 t o
4061 \end_layout
4062
4063 \end_inset
4064
4065
4066 \end_layout
4067
4068 \begin_layout Quotation
4069 breve (bre)
4070 \hfill
4071 ă
4072 \begin_inset ERT
4073 status open
4074
4075 \begin_layout Standard
4076
4077
4078 \backslash
4079 u o
4080 \end_layout
4081
4082 \end_inset
4083
4084
4085 \end_layout
4086
4087 \begin_layout Quotation
4088 caron (car)
4089 \hfill
4090 čšž
4091 \end_layout
4092
4093 \begin_layout Quotation
4094 hungarian umlaut (hug)
4095 \hfill
4096 őű
4097 \end_layout
4098
4099 \begin_layout Quotation
4100 umlaut (uml)
4101 \hfill
4102 äöü
4103 \end_layout
4104
4105 \begin_layout Quotation
4106 dot (dot)
4107 \hfill
4108 ż
4109 \begin_inset ERT
4110 status open
4111
4112 \begin_layout Standard
4113
4114
4115 \backslash
4116 .s
4117 \end_layout
4118
4119 \end_inset
4120
4121
4122 \end_layout
4123
4124 \begin_layout Standard
4125 Since in many international keyboards there are exceptions to what some
4126  dead keys should do, you can define them using
4127 \end_layout
4128
4129 \begin_layout Quotation
4130
4131 \family typewriter
4132
4133 \backslash
4134 kxmod
4135 \family default
4136  
4137 \family typewriter
4138 deadkey key outstring
4139 \end_layout
4140
4141 \begin_layout Standard
4142 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4143 , so you put in
4144 \end_layout
4145
4146 \begin_layout Quotation
4147
4148 \family typewriter
4149
4150 \backslash
4151 kxmod
4152 \family default
4153  
4154 \family typewriter
4155 caron o "
4156 \backslash
4157 ^o"
4158 \end_layout
4159
4160 \begin_layout Standard
4161 to make it work correctly.
4162  Also, you have to define as exceptions dead keys over i and j, to remove
4163  the dot from them before inserting an accent mark.
4164  I will change this when the time comes, but so far I haven't had time.
4165 \end_layout
4166
4167 \begin_layout Standard
4168 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4169  double backslash.
4170  Also, quotes and 
4171 \family typewriter
4172 #
4173 \family default
4174  have different meaning.
4175  
4176 \family typewriter
4177 #
4178 \family default
4179  marks comments, quotes start and end LaTeX-style commands.
4180  To enter quote, you'll need to use 
4181 \family typewriter
4182
4183 \backslash
4184 "
4185 \family default
4186 , to enter 
4187 \family typewriter
4188 #
4189 \family default
4190 , use 
4191 \family typewriter
4192
4193 \backslash
4194 #
4195 \family default
4196 .
4197 \end_layout
4198
4199 \begin_layout Standard
4200 If you make a keyboard description file that works for your language, please
4201  mail it to me, so I can include it in the next keymap distribution.
4202 \end_layout
4203
4204 \begin_layout Standard
4205 More keywords will be supported in keymap configuration file in future,
4206  like
4207 \end_layout
4208
4209 \begin_layout Itemize
4210
4211 \family typewriter
4212
4213 \backslash
4214 kinclude filename
4215 \family default
4216 \emph on
4217
4218 \hfill
4219
4220 \family typewriter
4221 \emph default
4222 include
4223 \family default
4224  another file
4225 \end_layout
4226
4227 \begin_layout Itemize
4228
4229 \family typewriter
4230
4231 \backslash
4232 kprog program
4233 \family default
4234 \emph on
4235
4236 \hfill
4237
4238 \family typewriter
4239 \emph default
4240 define
4241 \family default
4242  an external keymap translation program 
4243 \end_layout
4244
4245 \begin_layout Standard
4246 Also, it should look into 
4247 \family typewriter
4248 lyxrc
4249 \family default
4250  file for defaults, too (for example, a 
4251 \family typewriter
4252
4253 \backslash
4254 kinclude
4255 \family default
4256  option to include default keyboard).
4257 \end_layout
4258
4259 \begin_layout Section
4260 International Keymap Stuff
4261 \begin_inset CommandInset label
4262 LatexCommand label
4263 name "sec:keymap"
4264
4265 \end_inset
4266
4267
4268 \end_layout
4269
4270 \begin_layout Standard
4271 The next two sections describe the 
4272 \family typewriter
4273 \shape up
4274 .kmap
4275 \family default
4276 \shape default
4277  and 
4278 \family typewriter
4279 \shape up
4280 .cdef
4281 \family default
4282 \shape default
4283  file syntax in detail.
4284  These sections should help you design your own key map if the ones provided
4285  do not meet your needs.
4286 \end_layout
4287
4288 \begin_layout Subsection
4289 The .kmap File
4290 \end_layout
4291
4292 \begin_layout Standard
4293
4294 \family sans
4295 \shape up
4296 .
4297 \family typewriter
4298 kmap
4299 \family default
4300 \shape default
4301  file maps keystrokes to characters or strings.
4302  As the name suggests it sets a keyboard mapping.
4303  The 
4304 \family typewriter
4305 .kmap
4306 \family default
4307  file keywords 
4308 \family typewriter
4309 \shape up
4310 kmap
4311 \shape default
4312 ,
4313 \shape up
4314 kmod
4315 \shape default
4316 ,
4317 \shape up
4318 ksmod
4319 \family default
4320 \shape default
4321 , and 
4322 \family typewriter
4323 \shape up
4324 kcomb
4325 \family default
4326 \shape default
4327  are described in this section.
4328 \end_layout
4329
4330 \begin_layout List
4331 \labelwidthstring 00.00.0000
4332
4333 \family typewriter
4334 \shape up
4335 kmap
4336 \family default
4337 \shape default
4338  Map a character to a string
4339 \end_layout
4340
4341 \begin_layout LyX-Code
4342
4343 \backslash
4344 kmap 
4345 \family roman
4346 \emph on
4347 char
4348 \family default
4349 \emph default
4350  
4351 \family roman
4352 \emph on
4353 string
4354 \end_layout
4355
4356 \begin_layout Standard
4357 This will ma
4358 \family roman
4359 p
4360 \family default
4361  
4362 \family roman
4363 \emph on
4364 char
4365 \family default
4366 \emph default
4367  
4368 \family roman
4369 to
4370 \family default
4371  
4372 \family roman
4373 \emph on
4374 string
4375 \emph default
4376 .
4377  Note that in
4378 \family default
4379  
4380 \family roman
4381 \emph on
4382 string
4383 \emph default
4384 ,
4385 \family default
4386  
4387 \family roman
4388 \shape up
4389 the double-quote (")
4390 \family default
4391 \shape default
4392  
4393 \family roman
4394 and
4395 \family default
4396  
4397 \family roman
4398 \shape up
4399 the backslash (
4400 \backslash
4401 )
4402 \family default
4403 \shape default
4404  
4405 \family roman
4406 must be escaped with a preceding backslash (
4407 \shape up
4408
4409 \backslash
4410
4411 \shape default
4412 )
4413 \family default
4414 .
4415 \end_layout
4416
4417 \begin_layout Standard
4418 An example of a 
4419 \family sans
4420 \shape up
4421 kmap
4422 \family default
4423 \shape default
4424  statement to cause the symbol 
4425 \family sans
4426 \shape up
4427 /
4428 \family default
4429 \shape default
4430  to be output for the keystroke 
4431 \family sans
4432 \shape up
4433 &
4434 \family default
4435 \shape default
4436  is:
4437 \end_layout
4438
4439 \begin_layout LyX-Code
4440
4441 \backslash
4442 kmap & /
4443 \end_layout
4444
4445 \begin_layout List
4446 \labelwidthstring 00.00.0000
4447
4448 \family typewriter
4449 \shape up
4450 kmod
4451 \family default
4452 \shape default
4453  Specify an accent character
4454 \end_layout
4455
4456 \begin_layout LyX-Code
4457
4458 \backslash
4459 kmod 
4460 \family roman
4461 \emph on
4462 char accent allowed
4463 \end_layout
4464
4465 \begin_layout Standard
4466 This will make the cha
4467 \family roman
4468 racter
4469 \family default
4470  
4471 \family roman
4472 \emph on
4473 char
4474 \family default
4475 \emph default
4476  
4477 \family roman
4478 \shape up
4479 \emph on
4480 be an accent
4481 \family default
4482 \shape default
4483 \emph default
4484  
4485 \family roman
4486 \shape up
4487 on the
4488 \family default
4489 \shape default
4490  
4491 \family roman
4492 \shape up
4493 \emph on
4494 allowed
4495 \family default
4496 \shape default
4497 \emph default
4498  
4499 \family roman
4500 \shape up
4501 cha
4502 \family default
4503 racter(s).
4504  This is the dead key
4505 \begin_inset Foot
4506 status collapsed
4507
4508 \begin_layout Standard
4509 The term 
4510 \family roman
4511 \emph on
4512 dead key
4513 \family default
4514 \emph default
4515  refers to a key that does not produce a character by itself, but when followed
4516  with another key, produces the desired accent character.
4517  For example, a German characte
4518 \family roman
4519 r with an umlaut like
4520 \family default
4521  
4522 \family roman
4523 \emph on
4524 ä
4525 \family default
4526 \emph default
4527  
4528 \family roman
4529 can be produced in this manner.
4530 \end_layout
4531
4532 \end_inset
4533
4534  mechanism.
4535  
4536 \end_layout
4537
4538 \begin_layout Standard
4539 If you 
4540 \family roman
4541 hit
4542 \family default
4543  
4544 \family roman
4545 \emph on
4546 char
4547 \family default
4548 \emph default
4549  
4550 \family roman
4551 and then another key not in
4552 \family default
4553  
4554 \family roman
4555 \emph on
4556 allowed
4557 \emph default
4558 , you will get a
4559 \family default
4560  
4561 \family roman
4562 \emph on
4563 char
4564 \family default
4565 \emph default
4566  
4567 \family roman
4568 followed by the other, unallowed key, as output.
4569
4570 \family default
4571  Note that a 
4572 \family sans
4573 \shape up
4574 Backspace
4575 \family default
4576 \shape default
4577  cancels a dead key, so if 
4578 \family roman
4579 you hit
4580 \family default
4581  
4582 \family roman
4583 \emph on
4584 char
4585 \family default
4586 \emph default
4587  
4588 \family sans
4589 \shape up
4590 \emph on
4591 Backspace
4592 \family default
4593 \emph default
4594 , the cursor will not go one position backwards but will instead cancel
4595  the effect t
4596 \family roman
4597 hat
4598 \family default
4599 \shape default
4600  
4601 \family roman
4602 \shape up
4603 \emph on
4604 char
4605 \family default
4606 \shape default
4607 \emph default
4608  
4609 \family roman
4610 \shape up
4611 might have had on the next keystroke.
4612  
4613 \end_layout
4614
4615 \begin_layout Standard
4616 The following example specifies that the character ' is to be an acute accent,
4617  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4618 \end_layout
4619
4620 \begin_layout LyX-Code
4621
4622 \backslash
4623 kmod ' acute aeiouAEIOU
4624 \end_layout
4625
4626 \begin_layout List
4627 \labelwidthstring 00.00.0000
4628
4629 \family typewriter
4630 ksmod
4631 \family default
4632  Specify an exception to the accent character
4633 \end_layout
4634
4635 \begin_layout LyX-Code
4636
4637 \backslash
4638 kxmod  
4639 \family roman
4640 \emph on
4641 accent char result
4642 \end_layout
4643
4644 \begin_layout Standard
4645 This defines an exce
4646 \family roman
4647 ption for
4648 \family default
4649  
4650 \family roman
4651 \emph on
4652 accent
4653 \family default
4654 \emph default
4655  
4656 \family roman
4657 on
4658 \family default
4659  
4660 \family roman
4661 \emph on
4662 char
4663 \emph default
4664 .
4665  T
4666 \shape up
4667 he
4668 \family default
4669 \shape default
4670  
4671 \family roman
4672 \shape up
4673 \emph on
4674 accent
4675 \family default
4676 \shape default
4677 \emph default
4678  
4679 \family roman
4680 \shape up
4681 must
4682 \family default
4683 \shape default
4684  
4685 \shape up
4686 have been assigned a keystroke with a previous
4687 \shape default
4688  
4689 \family typewriter
4690 \shape up
4691
4692 \backslash
4693 kmo
4694 \shape default
4695 d
4696 \family default
4697  declar
4698 \family roman
4699 ation and
4700 \family default
4701  
4702 \family roman
4703 \emph on
4704 char
4705 \family default
4706 \emph default
4707  
4708 \family roman
4709 must not belong in the
4710 \family default
4711  
4712 \family roman
4713 \emph on
4714 allowed
4715 \family default
4716 \emph default
4717  
4718 \family roman
4719 set of
4720 \family default
4721  
4722 \family roman
4723 \emph on
4724 accent
4725 \emph default
4726 .
4727  When
4728 \family default
4729  
4730 \family roman
4731 \shape up
4732 you enter the
4733 \family default
4734 \shape default
4735  
4736 \family roman
4737 \shape up
4738 \emph on
4739 accent char
4740 \family default
4741 \shape default
4742 \emph default
4743  
4744 \family roman
4745 \shape up
4746 sequence,
4747 \family default
4748 \shape default
4749  
4750 \family roman
4751 \shape up
4752 \emph on
4753 result
4754 \family default
4755 \shape default
4756 \emph default
4757  
4758 \family roman
4759 \shape up
4760  is produced.
4761  If such a declaration does not exist in
4762 \family default
4763 \shape default
4764  
4765 \shape up
4766 the
4767 \shape default
4768  
4769 \family typewriter
4770 \shape up
4771 .kmap
4772 \family default
4773 \shape default
4774  file and yo
4775 \family roman
4776 u enter
4777 \family default
4778  
4779 \family roman
4780 \emph on
4781 accent  char
4782 \emph default
4783 , you get
4784 \family default
4785  
4786 \family roman
4787 \emph on
4788 accent_key char
4789 \family default
4790 \emph default
4791  
4792 \family roman
4793  where
4794 \family default
4795  
4796 \family roman
4797 \emph on
4798 accent_key
4799 \family default
4800 \emph default
4801  
4802 \family roman
4803  is the first arg
4804 \family default
4805 ument of the 
4806 \family typewriter
4807 \shape up
4808
4809 \backslash
4810 kmod
4811 \family default
4812 \shape default
4813  declaration.
4814  
4815 \end_layout
4816
4817 \begin_layout Standard
4818 The following command produces causes äi to be produced when you enter acute-i
4819  ('i):
4820 \end_layout
4821
4822 \begin_layout LyX-Code
4823
4824 \backslash
4825 kxmod acute i "
4826 \backslash
4827
4828 \backslash
4829 '{
4830 \backslash
4831
4832 \backslash
4833 i}"
4834 \end_layout
4835
4836 \begin_layout List
4837 \labelwidthstring 00.00.0000
4838
4839 \family typewriter
4840 kcomb
4841 \family default
4842  Combine two accent characters
4843 \end_layout
4844
4845 \begin_layout LyX-Code
4846
4847 \backslash
4848 kcomb 
4849 \family roman
4850 \emph on
4851 accent1 accent2 allowed
4852 \end_layout
4853
4854 \begin_layout Standard
4855 This one is getting pretty esoteric.
4856  It allows you to combine the effect 
4857 \family roman
4858 of
4859 \family default
4860  
4861 \family roman
4862 \emph on
4863 accent1
4864 \family default
4865 \emph default
4866  
4867 \family roman
4868 and
4869 \family default
4870  
4871 \family roman
4872 \emph on
4873 accent2
4874 \family default
4875 \emph default
4876  
4877 \family roman
4878 (in that order!) on
4879 \family default
4880  
4881 \family roman
4882 \emph on
4883 allowed
4884 \family default
4885 \emph default
4886  
4887 \family roman
4888 chars.
4889  The keystrokes for
4890 \family default
4891  
4892 \family roman
4893 \emph on
4894 accent1
4895 \family default
4896 \emph default
4897  
4898 \family roman
4899 and
4900 \family default
4901  
4902 \family roman
4903 \emph on
4904 accent2
4905 \family default
4906 \emph default
4907  
4908 \family roman
4909 must have be
4910 \family default
4911 en set with a 
4912 \family typewriter
4913 \shape up
4914
4915 \backslash
4916 kmod
4917 \family default
4918 \shape default
4919  command at 
4920 \family roman
4921 a
4922 \family default
4923  
4924 \family roman
4925 \emph on
4926 previous
4927 \family default
4928 \emph default
4929  
4930 \family roman
4931 point in the
4932 \family default
4933  file.
4934  
4935 \end_layout
4936
4937 \begin_layout Standard
4938 Consider this example from the 
4939 \family typewriter
4940 \shape up
4941 greek.kmap
4942 \family default
4943 \shape default
4944  file:
4945 \end_layout
4946
4947 \begin_layout LyX-Code
4948
4949 \backslash
4950 kmod ; acute aeioyvhAEIOYVH 
4951 \backslash
4952 kmod : umlaut iyIY 
4953 \backslash
4954 kcomb acute umlaut iyIY
4955 \end_layout
4956
4957 \begin_layout Standard
4958 This allows you to press 
4959 \family sans
4960 \shape up
4961 ;:i
4962 \family default
4963 \shape default
4964  and get the effect of 
4965 \family typewriter
4966 \shape up
4967
4968 \backslash
4969 '{
4970 \backslash
4971 "{i}}
4972 \family default
4973 \shape default
4974 .
4975  
4976 \family roman
4977 \shape up
4978 A backspace
4979 \family default
4980 \shape default
4981  in this case cancels the last dead key, so if you press 
4982 \family sans
4983 \shape up
4984 ;: Backspace i
4985 \family default
4986 \shape default
4987  you get 
4988 \family typewriter
4989 \shape up
4990
4991 \backslash
4992 '{i}
4993 \family default
4994 \shape default
4995 .
4996 \end_layout
4997
4998 \begin_layout Subsection
4999 The .cdef File
5000 \end_layout
5001
5002 \begin_layout Standard
5003 After the 
5004 \family typewriter
5005 \shape up
5006 .kmap
5007 \family default
5008 \shape default
5009  mapping is performed, a 
5010 \family typewriter
5011 \shape up
5012 .cde
5013 \shape default
5014 f
5015 \family default
5016  file maps the strings that the symbols generate to characters in the current
5017  font.
5018  The LyX distribution currently includes at least the 
5019 \family typewriter
5020 \shape up
5021 iso8859-1.cdef
5022 \family default
5023 \shape default
5024  and 
5025 \family typewriter
5026 \shape up
5027 iso8859-2.cdef
5028 \family default
5029 \shape default
5030  files.
5031 \end_layout
5032
5033 \begin_layout Standard
5034 In general the 
5035 \family typewriter
5036 \shape up
5037 .cdef
5038 \family default
5039 \shape default
5040  file is a sequence of declarations of the form
5041 \end_layout
5042
5043 \begin_layout LyX-Code
5044
5045 \family roman
5046 \emph on
5047 char_index_in_set
5048 \family default
5049 \emph default
5050  
5051 \family roman
5052 \emph on
5053  string
5054 \end_layout
5055
5056 \begin_layout Standard
5057 For example, in order to map 
5058 \family sans
5059 \shape up
5060
5061 \backslash
5062 '{e}
5063 \family default
5064 \shape default
5065  to the corresponding character in the iso-8859-1 set (233), the following
5066  declaration is used
5067 \end_layout
5068
5069 \begin_layout LyX-Code
5070 233 "
5071 \backslash
5072
5073 \backslash
5074 '{e}"
5075 \end_layout
5076
5077 \begin_layout Standard
5078 with 
5079 \family typewriter
5080
5081 \backslash
5082
5083 \family default
5084  and 
5085 \family typewriter
5086 "
5087 \family default
5088  being escap
5089 \family roman
5090 ed in
5091 \family default
5092  
5093 \family roman
5094 \emph on
5095 string
5096 \emph default
5097 .
5098  Note that
5099 \family default
5100  the same character can apply to more than one string.
5101  In the 
5102 \family typewriter
5103 i
5104 \shape up
5105 so-8859-7.cdef
5106 \family default
5107 \shape default
5108  file you have
5109 \end_layout
5110
5111 \begin_layout LyX-Code
5112 192 "
5113 \backslash
5114
5115 \backslash
5116 '{
5117 \backslash
5118
5119 \backslash
5120
5121 \backslash
5122 "{i}}"
5123 \newline
5124 192 "
5125 \backslash
5126
5127 \backslash
5128
5129 \backslash
5130 "{
5131 \backslash
5132
5133 \backslash
5134 '{i}}"
5135 \end_layout
5136
5137 \begin_layout Standard
5138 If LyX cannot find a mapping for the string produced by the keystroke or
5139  a deadkey sequence, it will check if it looks like an accented char and
5140  try to draw an accent over the character on screen.
5141 \end_layout
5142
5143 \begin_layout Subsection
5144 Dead Keys
5145 \end_layout
5146
5147 \begin_layout Standard
5148 There is a second way to add support for international characters through
5149  so-called dead-keys.
5150  A dead-key works in combination with a letter to produce an accented character.
5151  Here, we'll explain how to create a really simple dead-key to illustrate
5152  how they work.
5153 \end_layout
5154
5155 \begin_layout Standard
5156 Suppose you happen to need the circumflex character, 
5157 \begin_inset Quotes eld
5158 \end_inset
5159
5160  ̂
5161 \begin_inset Quotes erd
5162 \end_inset
5163
5164 .
5165  You could bind the 
5166 \family sans
5167 ^
5168 \family default
5169 -key [a.k.a.\InsetSpace ~
5170
5171 \family sans
5172 Shift-6
5173 \family default
5174 ] to the LyX command 
5175 \family typewriter
5176 accent-circumflex
5177 \family default
5178  in your 
5179 \family typewriter
5180 lyxrc
5181 \family default
5182  file.
5183  Now, whenever you type the 
5184 \family sans
5185 ^
5186 \family default
5187 -key followed by a letter, that letter will have a circumflex accent on
5188  it.
5189  For example, the sequence 
5190 \begin_inset Quotes eld
5191 \end_inset
5192
5193
5194 \family sans
5195 ^e
5196 \family default
5197
5198 \begin_inset Quotes erd
5199 \end_inset
5200
5201  produces the letter: 
5202 \begin_inset Quotes eld
5203 \end_inset
5204
5205 ê
5206 \begin_inset Quotes erd
5207 \end_inset
5208
5209 .
5210  If you tried to type 
5211 \begin_inset Quotes eld
5212 \end_inset
5213
5214
5215 \family sans
5216 ^t
5217 \family default
5218
5219 \begin_inset Quotes erd
5220 \end_inset
5221
5222 , however, LyX will complain with a beep, since a 
5223 \begin_inset Quotes eld
5224 \end_inset
5225
5226
5227 \family sans
5228 t
5229 \family default
5230
5231 \begin_inset Quotes erd
5232 \end_inset
5233
5234  never takes a circumflex accent.
5235  Hitting 
5236 \family sans
5237 Space
5238 \family default
5239  after a dead-key produces the bare-accent.
5240  Please note this last point! If you bind a key to a dead-key, you'll need
5241  to rebind the character on that key to yet another key.
5242  Binding the 
5243 \family sans
5244 ,-key
5245 \family default
5246  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5247 \end_layout
5248
5249 \begin_layout Standard
5250 One common way to bind dead-keys is to use 
5251 \family sans
5252 Meta-
5253 \family default
5254
5255 \family sans
5256 Ctrl-
5257 \family default
5258 , and 
5259 \family sans
5260 Shift-
5261 \family default
5262  in combination with an accent, like 
5263 \begin_inset Quotes eld
5264 \end_inset
5265
5266
5267 \family sans
5268 ~
5269 \family default
5270
5271 \begin_inset Quotes erd
5272 \end_inset
5273
5274  or 
5275 \begin_inset Quotes eld
5276 \end_inset
5277
5278
5279 \family sans
5280 ,
5281 \family default
5282
5283 \begin_inset Quotes erd
5284 \end_inset
5285
5286  or 
5287 \begin_inset Quotes eld
5288 \end_inset
5289
5290
5291 \family sans
5292 ^
5293 \family default
5294
5295 \begin_inset Quotes erd
5296 \end_inset
5297
5298 .
5299  Another way involves using 
5300 \family typewriter
5301 xmodmap
5302 \family default
5303  and 
5304 \family typewriter
5305 xkeycaps
5306 \family default
5307  [remember them from section?] to set up the special 
5308 \family typewriter
5309 Mode_Switch
5310 \family default
5311  key.
5312  The 
5313 \family typewriter
5314 Mode_Switch
5315 \family default
5316  acts in some ways just like 
5317 \family sans
5318 Shift
5319 \family default
5320  and permits you to bind keys to accented characters.
5321  You can also turn keys into dead-keys by binding them to something like
5322  
5323 \family typewriter
5324 usldead_cedilla
5325 \family default
5326  and then binding this symbolic key to the corresponding LyX command.
5327 \begin_inset Foot
5328 status collapsed
5329
5330 \begin_layout Standard
5331 Note from 
5332 \noun on
5333 John Weiss
5334 \noun default
5335 : This is exactly what I do in my 
5336 \family typewriter
5337 ~/.lyx/lyxrc
5338 \family default
5339  and my 
5340 \family typewriter
5341 ~/.xmodmap
5342 \family default
5343  files.
5344  I have my 
5345 \family sans
5346 Scroll\InsetSpace ~
5347 Lock
5348 \family default
5349  key set up as 
5350 \family typewriter
5351 Mode_Shift
5352 \family default
5353  and a bunch of these 
5354 \begin_inset Quotes eld
5355 \end_inset
5356
5357
5358 \family typewriter
5359 usldead_*
5360 \family default
5361
5362 \begin_inset Quotes erd
5363 \end_inset
5364
5365  symbolic keys bound such things as 
5366 \family sans
5367 Scroll\InsetSpace ~
5368 Lock-^
5369 \family default
5370  and 
5371 \family sans
5372 Scroll\InsetSpace ~
5373 Lock-~
5374 \family default
5375 .
5376  This is how I produce my accented characters.
5377 \end_layout
5378
5379 \end_inset
5380
5381  You can make just about anything into the 
5382 \family typewriter
5383 Mode_Switch
5384 \family default
5385  key: One of the 
5386 \family sans
5387 Ctrl-
5388 \family default
5389  keys, a spare function key, etc.
5390  As for the LyX commands that produce accents, check the entry for 
5391 \family typewriter
5392 accent-acute
5393 \family default
5394  in the 
5395 \emph on
5396 Reference Manual
5397 \emph default
5398 .
5399  You'll find the complete list there.
5400 \end_layout
5401
5402 \begin_layout Subsection
5403 Saving your Language Configuration
5404 \end_layout
5405
5406 \begin_layout Standard
5407 \begin_inset CommandInset label
5408 LatexCommand label
5409 name "sec:savlang"
5410
5411 \end_inset
5412
5413 You can edit your preferences so that your desired language environment
5414  is automatically configured when LyX starts up, via the 
5415 \family sans
5416 \bar under
5417 E
5418 \bar default
5419 dit\SpecialChar \menuseparator
5420
5421 \bar under
5422 P
5423 \bar default
5424 references
5425 \family default
5426  dialog.
5427 \end_layout
5428
5429 \begin_layout Chapter
5430 Installing New Document Classes, Layouts, and Templates 
5431 \begin_inset CommandInset label
5432 LatexCommand label
5433 name "chap:textclass"
5434
5435 \end_inset
5436
5437
5438 \begin_inset OptArg
5439 status collapsed
5440
5441 \begin_layout Standard
5442 Installing New Document Classes
5443 \end_layout
5444
5445 \end_inset
5446
5447
5448 \end_layout
5449
5450 \begin_layout Standard
5451 In this chapter, we describe the procedures for creating and installing
5452  new LyX layout and template files, as well as offer a refresher on correctly
5453  installing new LaTeX document classes.
5454  Some definitions: a document class is a LaTeX file (usually ending in 
5455 \family typewriter
5456 .cls
5457 \family default
5458  or 
5459 \family typewriter
5460 .sty
5461 \family default
5462 ) which describes the format of a document such as an article, report, journal
5463  preprint, etc.
5464  and all the commands needed to realize that format.
5465  A layout file is a LyX file which corresponds to a LaTeX document class
5466  and which tells LyX how to 
5467 \begin_inset Quotes eld
5468 \end_inset
5469
5470 draw
5471 \begin_inset Quotes erd
5472 \end_inset
5473
5474  things on the screen to make the display look something like the final
5475  printed page.
5476  More precisely, a layout file describes a 
5477 \begin_inset Quotes eld
5478 \end_inset
5479
5480 text class
5481 \begin_inset Quotes erd
5482 \end_inset
5483
5484  which is the internal construct LyX uses to render the screen display.
5485  
5486 \begin_inset Quotes eld
5487 \end_inset
5488
5489 Layout
5490 \begin_inset Quotes erd
5491 \end_inset
5492
5493  and 
5494 \begin_inset Quotes eld
5495 \end_inset
5496
5497 text class
5498 \begin_inset Quotes erd
5499 \end_inset
5500
5501  can be used somewhat interchangeably, but it is better to refer to the
5502  file as the layout, and the thing living in LyX's memory as the text class.
5503  A template file is simply a LyX document which contains a set of predefined
5504  entries for a given document class which are generally required for that
5505  class.
5506  Templates are especially useful for things like journal manuscripts which
5507  are to be submitted electronically.
5508 \end_layout
5509
5510 \begin_layout Section
5511 Installing a new LaTeX package
5512 \end_layout
5513
5514 \begin_layout Standard
5515 Some installations may not include a LaTeX package that you would like to
5516  use within LyX.
5517  For example, you might need FoilTeX, a common (and very powerful) package
5518  for preparing slides or viewgraphs for overhead projectors.
5519  Here are the formal steps involved in getting the package up and running
5520  if you are using teTeX or some other web2c based distribution.
5521  
5522 \end_layout
5523
5524 \begin_layout Enumerate
5525 Get the package from CTAN or wherever.
5526 \begin_inset Foot
5527 status collapsed
5528
5529 \begin_layout Standard
5530 See the 
5531 \emph on
5532 Inventory of your LaTeX configuration
5533 \emph default
5534  manual for details of what CTAN is and where supported document classes
5535  can be found.
5536 \end_layout
5537
5538 \end_inset
5539
5540
5541 \end_layout
5542
5543 \begin_layout Enumerate
5544 Read the file 
5545 \family typewriter
5546 texmf.cnf
5547 \family default
5548  (this usually lives in the directory 
5549 \family typewriter
5550 $TEXMF/web2c
5551 \family default
5552 , though you can run 
5553 \family typewriter
5554 kpsewhich texmf.cnf
5555 \family default
5556  to locate it).
5557  It describes how to add a local 
5558 \family typewriter
5559 texmf
5560 \family default
5561  directory; follow the instructions.
5562  You need to insert the name of your local 
5563 \family typewriter
5564 texmf
5565 \family default
5566  directory in 
5567 \family typewriter
5568 texmf.cnf
5569 \family default
5570 .
5571  Under Linux, 
5572 \family typewriter
5573 /usr/local
5574 \family default
5575  is a logical place to install software that did not come with your distribution
5576 , so you might use 
5577 \family typewriter
5578 /usr/local/texmf
5579 \family default
5580 .
5581  Usually, you will have to modify only two things:
5582 \end_layout
5583
5584 \begin_deeper
5585 \begin_layout Enumerate
5586 Set 
5587 \family typewriter
5588 TEXMFLOCAL
5589 \family default
5590  to the directory you chose; e.g.
5591  
5592 \newline
5593
5594 \family typewriter
5595 TEXMFLOCAL = /usr/local/texmf
5596 \end_layout
5597
5598 \begin_layout Enumerate
5599 Make sure 
5600 \family typewriter
5601 TEXMF
5602 \family default
5603  includes the 
5604 \family typewriter
5605 TEXMFLOCAL
5606 \family default
5607  variable; e.g.
5608  
5609 \newline
5610
5611 \family typewriter
5612 TEXMF = {$HOMETEXMF,!!$TEXMFLOCAL,!!$TEXMFMAIN}
5613 \end_layout
5614
5615 \end_deeper
5616 \begin_layout Enumerate
5617 Create your local 
5618 \family typewriter
5619 texmf
5620 \family default
5621  directory (e.g.
5622  
5623 \family typewriter
5624 /usr/local/texmf
5625 \family default
5626 ).
5627  You must follow the directory structure of your existing 
5628 \family typewriter
5629 texmf
5630 \family default
5631  directory (for example, latex packages should go under 
5632 \family typewriter
5633 /usr/local/texmf/tex/latex/
5634 \family default
5635 ).
5636 \end_layout
5637
5638 \begin_layout Enumerate
5639 Install the package.
5640  For example, you would unpack the FoilTeX tarball and create 
5641 \family typewriter
5642 /usr/local/texmf/tex/latex/foiltex
5643 \family default
5644 .
5645  The 
5646 \family typewriter
5647 foiltex
5648 \family default
5649  directory contains various files.
5650 \end_layout
5651
5652 \begin_layout Enumerate
5653 Run: 
5654 \family typewriter
5655 texhash
5656 \family default
5657 .
5658  This should create 
5659 \family typewriter
5660 /usr/local/texmf/ls-R
5661 \family default
5662  amongst others.
5663 \end_layout
5664
5665 \begin_layout Enumerate
5666 From within LyX, do: 
5667 \family sans
5668 \bar under
5669 T
5670 \bar default
5671 ools\SpecialChar \menuseparator
5672
5673 \bar under
5674 R
5675 \bar default
5676 econfigure
5677 \family default
5678 .
5679  Restart LyX.
5680 \end_layout
5681
5682 \begin_layout Standard
5683 Now you should see your new package---for example 
5684 \family sans
5685 slides (FoilTeX)
5686 \family default
5687 ---under 
5688 \family sans
5689 \bar under
5690 L
5691 \bar default
5692 ayout\SpecialChar \menuseparator
5693
5694 \bar under
5695 D
5696 \bar default
5697 ocument
5698 \family default
5699 , field 
5700 \family sans
5701 \bar under
5702 C
5703 \bar default
5704 lass
5705 \family default
5706 .
5707  Note that there are simpler ways of installing packages: you can add a
5708  link to the new package directory in the system LaTeX directory (
5709 \family typewriter
5710 $TEXMF/tex/latex
5711 \family default
5712 , don't forget to then run 
5713 \family typewriter
5714 texconfig
5715 \family default
5716 ), or sometimes simply set the 
5717 \family typewriter
5718 $TEXINPUTS
5719 \family default
5720  environment variable to include the new package.
5721  However, the formal procedure described in 
5722 \family typewriter
5723 texmf.cnf
5724 \family default
5725  is guaranteed to work, so you should follow it unless circumstances absolutely
5726  prevent it: such as, when you don't have superuser access.
5727 \end_layout
5728
5729 \begin_layout Section
5730 \begin_inset CommandInset label
5731 LatexCommand label
5732 name "sec:Layouts"
5733
5734 \end_inset
5735
5736 Layouts
5737 \end_layout
5738
5739 \begin_layout Standard
5740 This section describes how to write and install your own LyX layout files
5741  (also known as text classes) and walks through the 
5742 \family typewriter
5743 article
5744 \family default
5745  text class format as an example.
5746  The 
5747 \family typewriter
5748 .layout
5749 \family default
5750  files describe what paragraph styles are available for a given document
5751  class and how LyX should display them.
5752  We try to provide a thorough description of the process here; however,
5753  there are so many different types of documents supported by LaTeX classes
5754  that we can't hope to cover every different possibility or problem you
5755  might encounter.
5756  (The LyX users' list is frequented by people with lots of experience with
5757  layout design who are willing to share what they've learned.)
5758 \end_layout
5759
5760 \begin_layout Standard
5761 As you prepare to write a new layout, it is extremely helpful to look at
5762  the example layouts distributed with LyX.
5763  If you use a nice LaTeX document class that might be of interest for others,
5764  too, and have a nice corresponding LyX layout, feel free to contribute
5765  the stuff to us, so we may put it into the distribution.
5766  There is also a section on the LyX wiki for this kind of material.
5767 \end_layout
5768
5769 \begin_layout Standard
5770 All the tags described in this chapter are case-insensitive; this means
5771  that 
5772 \family typewriter
5773 Style
5774 \family default
5775
5776 \family typewriter
5777 style
5778 \family default
5779  and 
5780 \family typewriter
5781 StYlE
5782 \family default
5783  are really the same command.
5784  The possible values are printed in brackets after the feature's name.
5785  The default value if a feature isn't specified inside a text class-description
5786  is typeset 
5787 \family typewriter
5788 \emph on
5789 emphasized
5790 \family default
5791 \emph default
5792 .
5793  If the argument has a datatype like 
5794 \begin_inset Quotes eld
5795 \end_inset
5796
5797 string
5798 \begin_inset Quotes erd
5799 \end_inset
5800
5801  or 
5802 \begin_inset Quotes eld
5803 \end_inset
5804
5805 float
5806 \begin_inset Quotes erd
5807 \end_inset
5808
5809 , the default is shown like this: 
5810 \family typewriter
5811 float=
5812 \emph on
5813 default
5814 \family default
5815 \emph default
5816 .
5817 \end_layout
5818
5819 \begin_layout Subsection
5820 Layout modules
5821 \end_layout
5822
5823 \begin_layout Standard
5824 Similar to layout files, and new with LyX 1.6, are layout 
5825 \emph on
5826 modules
5827 \emph default
5828 .
5829  Modules are to LaTeX packages much as layouts are to LaTeX classes, and
5830  some modules---such as the Endnotes module---provide support for just such
5831  a package.
5832  In a sense, layout modules are similar to included files---files like stdsectio
5833 ns.inc---in that modules are not specific to a given document layout but
5834  may be used with many different layouts.
5835  The difference is that using a layout module does not require editing the
5836  layout file.
5837  Rather, modules are selected in the 
5838 \family sans
5839 \bar under
5840 D
5841 \bar default
5842 ocument\SpecialChar \menuseparator
5843
5844 \bar under
5845 S
5846 \bar default
5847 ettings
5848 \family default
5849  dialog.
5850 \end_layout
5851
5852 \begin_layout Standard
5853 Building modules is the easiest way to get started with layout editing,
5854  since it can be as simple as adding a single new paragraph or flex inset.
5855  But modules may, in principle, contain anything a layout file can contain.
5856 \end_layout
5857
5858 \begin_layout Standard
5859 A module must begin with a line like the following:
5860 \end_layout
5861
5862 \begin_layout LyX-Code
5863 #
5864 \backslash
5865 DeclareLyXModule[endnotes.sty]{Endnotes} 
5866 \end_layout
5867
5868 \begin_layout Standard
5869 The argument in square brackets is optional: It declares any LaTeX packages
5870  on which the module depends.
5871  The mandatory argument, in curly brackets, is the name of the module, as
5872  it should appear in 
5873 \family sans
5874 Document\SpecialChar \menuseparator
5875 Settings
5876 \family default
5877 .
5878  LyX uses the name to identify the module, so it should be unique.
5879 \end_layout
5880
5881 \begin_layout Standard
5882 The module declaration should then be followed by lines like the following:
5883 \end_layout
5884
5885 \begin_layout LyX-Code
5886 #DescriptionBegin 
5887 \end_layout
5888
5889 \begin_layout LyX-Code
5890 #Adds an endnote command, in addition to footnotes.
5891  
5892 \end_layout
5893
5894 \begin_layout LyX-Code
5895 #You will need to add  
5896 \backslash
5897 theendnotes in ERT where you 
5898 \end_layout
5899
5900 \begin_layout LyX-Code
5901 #want the endnotes to appear.
5902  
5903 \end_layout
5904
5905 \begin_layout LyX-Code
5906 #DescriptionEnd 
5907 \end_layout
5908
5909 \begin_layout LyX-Code
5910 #Requires: Some Module | Some Other Module 
5911 \end_layout
5912
5913 \begin_layout LyX-Code
5914 #Excludes: Bad Module 
5915 \end_layout
5916
5917 \begin_layout Standard
5918 The description is used in 
5919 \family sans
5920 Document\SpecialChar \menuseparator
5921 Settings
5922 \family default
5923  to provide the user with information about what the module does.
5924  The Requires is used to identify other modules with which this one must
5925  be used; the Excludes line is used to identify modules with which this
5926  one may not be used.
5927  Both are optional, and, as shown, multiple modules should be separated
5928  with the pipe symbol: |.
5929  Note that the required modules are treated disjunctively: 
5930 \emph on
5931 at least one
5932 \emph default
5933  of the required modules must be used.
5934  Similarly, 
5935 \emph on
5936 no
5937 \emph default
5938  excluded module may be used.
5939 \end_layout
5940
5941 \begin_layout Standard
5942 After creating a new module, you will need to reconfigure and then restart
5943  LyX for it to appear in the menu.
5944  However, changes you make to the module will be seen immediately, if you
5945  open 
5946 \family sans
5947 Document\SpecialChar \menuseparator
5948 Settings
5949 \family default
5950 , make some change (or even just highlight something), and then hit 
5951 \begin_inset Quotes eld
5952 \end_inset
5953
5954 OK
5955 \begin_inset Quotes erd
5956 \end_inset
5957
5958 .
5959  
5960 \emph on
5961 It is strongly recommended that you save your work before doing so
5962 \emph default
5963 .
5964  In fact, it is strongly recommended that you not attempt to edit modules
5965  while simultaneously working on documents.
5966  Though of course the developers strive to keep LyX stable in such situations,
5967  syntax errors and the like in your module file could cause strange behavior.
5968 \end_layout
5969
5970 \begin_layout Subsection
5971 Supporting new document classes
5972 \end_layout
5973
5974 \begin_layout Standard
5975 There are two situations you are likely to encounter when wanting to support
5976  a new LaTeX document class, involving LaTeX2e class (
5977 \family typewriter
5978 .cls
5979 \family default
5980 ) and style (
5981 \family typewriter
5982 .sty
5983 \family default
5984 ) files.
5985  Supporting a style file is usually fairly easy.
5986  Supporting a new document class is a bit harder.
5987 \end_layout
5988
5989 \begin_layout Subsection
5990 A layout for a 
5991 \family sans
5992 sty
5993 \family default
5994  file
5995 \end_layout
5996
5997 \begin_layout Standard
5998 If your new document class is provided as a style file that is used in conjuncti
5999 on with an existing, supported document class---for the sake of the example,
6000  we'll assume that the style file is called 
6001 \family sans
6002 myclass.sty
6003 \family default
6004  and it is meant to be used with 
6005 \family sans
6006 report.cls
6007 \family default
6008 , which is a standard class---start by copying the existing class's layout
6009  file into your local directory:
6010 \end_layout
6011
6012 \begin_layout LyX-Code
6013 cp report.layout ~/.lyx/layouts/myclass.layout
6014 \end_layout
6015
6016 \begin_layout Standard
6017 Then edit 
6018 \family typewriter
6019 myclass.layout
6020 \family default
6021  and change the line: 
6022 \end_layout
6023
6024 \begin_layout LyX-Code
6025
6026 \backslash
6027 DeclareLaTeXClass{report}
6028 \end_layout
6029
6030 \begin_layout Standard
6031 to read
6032 \end_layout
6033
6034 \begin_layout LyX-Code
6035
6036 \backslash
6037 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6038 \end_layout
6039
6040 \begin_layout Standard
6041 Then add:
6042 \end_layout
6043
6044 \begin_layout LyX-Code
6045 Preamble 
6046 \newline
6047     
6048 \backslash
6049 usepackage{myclass}
6050 \newline
6051 EndPreamble
6052 \end_layout
6053
6054 \begin_layout Standard
6055 near the top of the file.
6056 \end_layout
6057
6058 \begin_layout Standard
6059 Start LyX and select 
6060 \family sans
6061 \bar under
6062 T
6063 \bar default
6064 ools\SpecialChar \menuseparator
6065
6066 \bar under
6067 R
6068 \bar default
6069 econfigure
6070 \family default
6071 .
6072  Then restart LyX and try creating a new document.
6073  You should see "
6074 \family sans
6075 report (myclass)
6076 \family default
6077 " as a document class option in the 
6078 \family sans
6079 \bar under
6080 D
6081 \bar default
6082 ocument\SpecialChar \menuseparator
6083
6084 \bar under
6085 S
6086 \bar default
6087 ettings
6088 \family default
6089  dialog.
6090  It is likely that some of the sectioning commands and such in your new
6091  class will work differently from how they worked in the base class---
6092 \family typewriter
6093 report
6094 \family default
6095  in this example---so you can fiddle around with the settings for the different
6096  sections if you wish.
6097  See below for more discussion on this.
6098 \end_layout
6099
6100 \begin_layout Subsection
6101 Layout for a 
6102 \family sans
6103 cls
6104 \family default
6105  file
6106 \end_layout
6107
6108 \begin_layout Standard
6109 There are two possibilities here.
6110  One is that the class file is itself based upon an existing document class.
6111  For example, many thesis classes are based upon 
6112 \family sans
6113 book.cls
6114 \family default
6115 .
6116  To see whether yours is, look for a line like
6117 \end_layout
6118
6119 \begin_layout LyX-Code
6120
6121 \backslash
6122 LoadClass{book}
6123 \end_layout
6124
6125 \begin_layout Standard
6126 in the file.
6127  If so, then you may proceed largely as in the previous section, though
6128  the DeclareLaTeXClass line will be different.
6129  If your new class is thesis, and it is based upon book, then the line should
6130  read:
6131 \end_layout
6132
6133 \begin_layout LyX-Code
6134
6135 \backslash
6136 DeclareLaTeXClass[myclass, book]{thesis}
6137 \end_layout
6138
6139 \begin_layout Standard
6140 If, on the other hand, the new class is not based upon an existing class,
6141  you will probably have to 
6142 \begin_inset Quotes eld
6143 \end_inset
6144
6145 roll your own
6146 \begin_inset Quotes erd
6147 \end_inset
6148
6149  layout.
6150  We strongly suggest copying an existing layout file which uses a similar
6151  LaTeX class and then modifying it, if you can do so.
6152  At least use an existing file as a starting point so you can find out what
6153  items you need to worry about.
6154  Again, the specifics are covered below.
6155 \end_layout
6156
6157 \begin_layout Section
6158 Declaring a new text class
6159 \end_layout
6160
6161 \begin_layout Standard
6162 When it's finally time to get your hands dirty and create or edit your own
6163  layout file, the following sections describe what you're up against.
6164  Our advice is to go slowly, save and test often, listen to soothing music,
6165  and enjoy one or two of your favorite adult beverages; more if you are
6166  getting particularly stuck.
6167  It's really not that hard, except that the multitude of options can become
6168  overwhelming if you try to do to much in one sitting.
6169  Go have another adult beverage, just for good measure.
6170 \end_layout
6171
6172 \begin_layout Standard
6173 Here we go!
6174 \end_layout
6175
6176 \begin_layout Standard
6177 Lines in a layout file which begin with a 
6178 \family typewriter
6179 #
6180 \family default
6181  are comments.
6182  There is one exception to this rule: all layouts should begin with lines
6183  like:
6184 \end_layout
6185
6186 \begin_layout LyX-Code
6187
6188 \size small
6189 #% Do not delete the line below; configure depends on this 
6190 \end_layout
6191
6192 \begin_layout LyX-Code
6193
6194 \size small
6195 #  
6196 \backslash
6197 DeclareLaTeXClass{article}
6198 \end_layout
6199
6200 \begin_layout Standard
6201 The second line is used when you configure LyX.
6202  The layout file is read by the LaTeX script 
6203 \family typewriter
6204 chkconfig.ltx
6205 \family default
6206 , in a special mode where 
6207 \family typewriter
6208 #
6209 \family default
6210  is ignored.
6211  The first line is just a LaTeX comment, and the second one contains the
6212  declaration of the text class.
6213  If these lines appear in a file named 
6214 \family typewriter
6215 article.layout
6216 \family default
6217 , then they define a text class of name 
6218 \family typewriter
6219 article
6220 \family default
6221  (the name of the layout file) which uses the LaTeX document class 
6222 \family typewriter
6223 article.cls
6224 \family default
6225  (the default is to use the same name as the layout).
6226  The string 
6227 \begin_inset Quotes eld
6228 \end_inset
6229
6230 article
6231 \begin_inset Quotes erd
6232 \end_inset
6233
6234  that appears above is used as a description of the text class in the 
6235 \family sans
6236 \bar under
6237 D
6238 \bar default
6239 ocument\SpecialChar \menuseparator
6240
6241 \bar under
6242 S
6243 \bar default
6244 ettings
6245 \family default
6246  dialog.
6247 \end_layout
6248
6249 \begin_layout Standard
6250 Let's assume that you wrote your own text class that uses the 
6251 \family typewriter
6252 article.cls
6253 \family default
6254  documentclass, but where you changed the appearance of the section headings.
6255  If you put it in a file 
6256 \family typewriter
6257 myarticle.layout
6258 \family default
6259 , the header of this file should be:
6260 \end_layout
6261
6262 \begin_layout LyX-Code
6263
6264 \size small
6265 #% Do not delete the line below; configure depends on this 
6266 \end_layout
6267
6268 \begin_layout LyX-Code
6269
6270 \size small
6271 #  
6272 \backslash
6273 DeclareLaTeXClass[article]{article (with my own headings)}
6274 \end_layout
6275
6276 \begin_layout Standard
6277 This declares a text class 
6278 \family typewriter
6279 myarticle
6280 \family default
6281 , associated with the LaTeX document class 
6282 \family typewriter
6283 article.cls
6284 \family default
6285  and described as 
6286 \begin_inset Quotes eld
6287 \end_inset
6288
6289 article (with my own headings)
6290 \begin_inset Quotes erd
6291 \end_inset
6292
6293 .
6294  If your text class depends on several packages, you can declare it as:
6295 \end_layout
6296
6297 \begin_layout LyX-Code
6298
6299 \size small
6300 #% Do not delete the line below; configure depends on this 
6301 \end_layout
6302
6303 \begin_layout LyX-Code
6304
6305 \size small
6306 #  
6307 \backslash
6308 DeclareLaTeXClass[article,foo.sty]{article (with my own headings)}
6309 \end_layout
6310
6311 \begin_layout Standard
6312 This indicates that your text class uses the foo.sty package.
6313  Finally, it is also possible to declare classes for DocBook code.
6314  Typical declarations will look like
6315 \end_layout
6316
6317 \begin_layout LyX-Code
6318
6319 \size small
6320 #% Do not delete the line below; configure depends on this 
6321 \end_layout
6322
6323 \begin_layout LyX-Code
6324
6325 \size small
6326
6327 \backslash
6328 DeclareDocBookClass[article]{SGML (DocBook article)}
6329 \end_layout
6330
6331 \begin_layout Standard
6332 Note that these declarations can also be given an optional parameter declaring
6333  the name of the document class (but not a list).
6334 \end_layout
6335
6336 \begin_layout Standard
6337 When the text class has been modified to your taste, all you have to do
6338  is to copy it either in 
6339 \family typewriter
6340 $LyXDir/layouts/
6341 \family default
6342  or in 
6343 \family typewriter
6344 $UserDir/layouts
6345 \family default
6346  and run 
6347 \family sans
6348 \bar under
6349 T
6350 \bar default
6351 ools\SpecialChar \menuseparator
6352
6353 \bar under
6354 R
6355 \bar default
6356 econfigure
6357 \family default
6358 .
6359  Exit LyX and restart it; then your new text class should be available along
6360  with the others.
6361 \end_layout
6362
6363 \begin_layout Standard
6364 In versions of LyX prior to 1.6, you had to restart LyX to see any changes
6365  you made to your layout files.
6366  As a result, editing layout files could be very time consuming.
6367  Beginning with 1.6, however, you can force a reload of the layout currently
6368  in use by using the LyX function 
6369 \family sans
6370 layout-reload
6371 \family default
6372 .
6373  There is no default binding for this function---though, of course, you
6374  can bind it to a key yourself (see section 
6375 \begin_inset CommandInset ref
6376 LatexCommand ref
6377 reference "sec:bindings"
6378
6379 \end_inset
6380
6381 ).
6382  You should simply enter this command in the mini-buffer.
6383  
6384 \emph on
6385 Warning
6386 \emph default
6387 : This is very much an `advanced feature'.
6388  It is 
6389 \emph on
6390 strongly
6391 \emph default
6392  recommended that you save your work before using this function.
6393  In fact, it is 
6394 \emph on
6395 strongly
6396 \emph default
6397  recommended that you not attempt to edit your layout while simultaneously
6398  working on a document that you care about.
6399  Use a test document.
6400  Syntax errors and the like in your layout file could cause peculiar behavior.
6401  In particular, such errors could cause LyX to regard the current layout
6402  as invalid and to attempt to switch to some other layout.
6403  The LyX team strives to keep LyX stable in such situations, but safe is
6404  better than sorry.
6405 \end_layout
6406
6407 \begin_layout Subsection
6408 File format
6409 \end_layout
6410
6411 \begin_layout Standard
6412 The first non-comment line must contain the file format number:
6413 \end_layout
6414
6415 \begin_layout Description
6416
6417 \family typewriter
6418 \series medium
6419 Format
6420 \family default
6421 \series default
6422  [
6423 \family typewriter
6424 int
6425 \family default
6426 ] This tag was introduced with LyX 1.4.0 (layout files of LyX 1.3.x and earlier
6427  don't have an explicit file format).
6428  The file format that is documented here is 
6429 \family typewriter
6430 6
6431 \family default
6432 .
6433 \end_layout
6434
6435 \begin_layout Subsection
6436 General text class parameters
6437 \end_layout
6438
6439 \begin_layout Standard
6440 These are the general parameters which describe the form of the entire document:
6441 \end_layout
6442
6443 \begin_layout Standard
6444 \begin_inset ERT
6445 status open
6446
6447 \begin_layout Standard
6448
6449
6450 \backslash
6451 begin{sloppypar}
6452 \end_layout
6453
6454 \end_inset
6455
6456
6457 \end_layout
6458
6459 \begin_layout Description
6460
6461 \family typewriter
6462 \series medium
6463 Columns
6464 \family default
6465 \series default
6466  [
6467 \family typewriter
6468 \emph on
6469 1
6470 \emph default
6471 , 2
6472 \family default
6473 ] Whether the class-default should have one or two columns.
6474  Can be changed in the 
6475 \family sans
6476 \bar under
6477 D
6478 \bar default
6479 ocument\SpecialChar \menuseparator
6480
6481 \bar under
6482 S
6483 \bar default
6484 ettings
6485 \family default
6486  dialog.
6487  This setting (same goes for 
6488 \family typewriter
6489 Sides
6490 \family default
6491 , too) is important: if your text class has two columns by default but you
6492  forget to set it correctly, the 
6493 \family typewriter
6494 twocolumn
6495 \family default
6496  LaTeX option will 
6497 \emph on
6498 not
6499 \emph default
6500  be output when you select 
6501 \family sans
6502 Two columns
6503 \family default
6504  in 
6505 \family sans
6506 \bar under
6507 D
6508 \bar default
6509 ocument\SpecialChar \menuseparator
6510
6511 \bar under
6512 S
6513 \bar default
6514 ettings.
6515 \end_layout
6516
6517 \begin_layout Description
6518
6519 \family typewriter
6520 \series medium
6521 Sides
6522 \family default
6523 \series default
6524  [
6525 \family typewriter
6526 \emph on
6527 1
6528 \emph default
6529 , 2
6530 \family default
6531 ] Whether the class-default should be printing on one or both sides of the
6532  paper.
6533  Can be changed in the 
6534 \family sans
6535 \bar under
6536 D
6537 \bar default
6538 ocument\SpecialChar \menuseparator
6539
6540 \bar under
6541 S
6542 \bar default
6543 ettings
6544 \family default
6545  dialog.
6546 \end_layout
6547
6548 \begin_layout Description
6549
6550 \family typewriter
6551 \series medium
6552 PageStyle
6553 \family default
6554 \series default
6555  [
6556 \family typewriter
6557 \emph on
6558 plain
6559 \emph default
6560 , empty, headings
6561 \family default
6562 ] The class default pagestyle.
6563  Can be changed in the 
6564 \family sans
6565 \bar under
6566 D
6567 \bar default
6568 ocument\SpecialChar \menuseparator
6569
6570 \bar under
6571 S
6572 \bar default
6573 ettings
6574 \family default
6575  dialog.
6576 \end_layout
6577
6578 \begin_layout Description
6579
6580 \family typewriter
6581 \series medium
6582 ClassOptions\SpecialChar \ldots{}
6583 End
6584 \family default
6585 \series default
6586  This section describes various global options supported by the document
6587  class.
6588  See Section\InsetSpace ~
6589
6590 \begin_inset CommandInset ref
6591 LatexCommand ref
6592 reference "sec:classoptions"
6593
6594 \end_inset
6595
6596  for a description.
6597 \end_layout
6598
6599 \begin_layout Description
6600
6601 \family typewriter
6602 \series medium
6603 Provides 
6604 \family default
6605 \series default
6606 [
6607 \family typewriter
6608 string
6609 \family default
6610 ] [
6611 \family typewriter
6612 \emph on
6613 0
6614 \emph default
6615 , 1
6616 \family default
6617 ] Whether the class already provides the feature
6618 \family typewriter
6619  string
6620 \family default
6621 .
6622  A feature is in general the name of a package (amsmath, makeidx, \SpecialChar \ldots{}
6623 ) or a
6624  macro (url, boldsymbol,\SpecialChar \ldots{}
6625 ); the complete list of supported features is unfortunat
6626 ely not documented.
6627 \end_layout
6628
6629 \begin_layout Description
6630
6631 \family typewriter
6632 \series medium
6633 Requires 
6634 \family default
6635 \series default
6636 [
6637 \family typewriter
6638 string
6639 \family default
6640 ] Whether the class requires the feature
6641 \family typewriter
6642  string
6643 \family default
6644 .
6645  A feature is in general the name of a package (amsmath, makeidx, \SpecialChar \ldots{}
6646 ) or a
6647  macro (url, boldsymbol,\SpecialChar \ldots{}
6648 ).
6649  Multiple features must be separated by commas.
6650  Note that you can only request supported features; unfortunately, the complete
6651  list of supported features is not documented (however, 
6652 \family sans
6653 \bar under
6654 H
6655 \bar default
6656 elp\SpecialChar \menuseparator
6657
6658 \bar under
6659 L
6660 \bar default
6661 aTeX Configuration
6662 \family default
6663  gives an overview of the supported packages).
6664 \end_layout
6665
6666 \begin_layout Description
6667
6668 \family typewriter
6669 \series medium
6670 DefaultFont
6671 \family default
6672 \series default
6673  This is used to describe the default font of the document.
6674  See Section\InsetSpace ~
6675
6676 \begin_inset CommandInset ref
6677 LatexCommand ref
6678 reference "sec:fonts"
6679
6680 \end_inset
6681
6682  for a description.
6683 \end_layout
6684
6685 \begin_layout Description
6686
6687 \family typewriter
6688 \series medium
6689 DefaultStyle
6690 \family default
6691 \series default
6692  [
6693 \family typewriter
6694 string
6695 \family default
6696 ] This is the style that will be assigned to new paragraphs, usually 
6697 \family sans
6698 Standard
6699 \family default
6700 .
6701  This will default to the first defined style if not given, but you are
6702  highly encouraged to use this directive.
6703 \end_layout
6704
6705 \begin_layout Description
6706
6707 \family typewriter
6708 \series medium
6709 TitleLatexType
6710 \family default
6711 \series default
6712  [
6713 \family typewriter
6714 \emph on
6715 CommandAfter
6716 \family default
6717 \emph default
6718
6719 \family typewriter
6720 Environment
6721 \family default
6722 ] Indicates what kind of markup is used to define the title of a document.
6723  
6724 \family typewriter
6725 CommandAfter
6726 \family default
6727  means that the macro with name 
6728 \family typewriter
6729 TitleLatexName
6730 \family default
6731  will be inserted after the last layout which has 
6732 \begin_inset Quotes eld
6733 \end_inset
6734
6735
6736 \family typewriter
6737 InTitle 1
6738 \family default
6739
6740 \begin_inset Quotes erd
6741 \end_inset
6742
6743 .
6744  
6745 \family typewriter
6746 Environment
6747 \family default
6748  corresponds to the case where the block of paragraphs which have 
6749 \begin_inset Quotes eld
6750 \end_inset
6751
6752
6753 \family typewriter
6754 InTitle 1
6755 \family default
6756
6757 \begin_inset Quotes erd
6758 \end_inset
6759
6760  should be enclosed into the 
6761 \family typewriter
6762 TitleLatexName
6763 \family default
6764  environment
6765 \family typewriter
6766 .
6767 \end_layout
6768
6769 \begin_layout Description
6770
6771 \family typewriter
6772 \series medium
6773 TitleLatexName
6774 \family default
6775 \series default
6776  [
6777 \family typewriter
6778 string="maketitle"
6779 \family default
6780 ] The name of the command/environment mentionned above.
6781 \end_layout
6782
6783 \begin_layout Description
6784
6785 \family typewriter
6786 \series medium
6787 Preamble\SpecialChar \ldots{}
6788 EndPreamble
6789 \family default
6790 \series default
6791  A set of macro definitions that will be output at the beginning of the
6792  LaTeX files.
6793  Use this for global definitions.
6794 \end_layout
6795
6796 \begin_layout Description
6797
6798 \family typewriter
6799 \series medium
6800 Input
6801 \family default
6802 \series default
6803  As its name implies, this command allows you to include another layout
6804  definition file within yours to avoid duplicating commands.
6805  Common examples are the standard layout files, for example, 
6806 \family typewriter
6807 stdclass.inc
6808 \family default
6809 , which contains most of the basic layouts.
6810 \end_layout
6811
6812 \begin_layout Description
6813
6814 \family typewriter
6815 \series medium
6816 Style\SpecialChar \ldots{}
6817 End
6818 \family default
6819 \series default
6820  This sequence defines a new style.
6821  If the style already exists, it will redefine some of its parameters instead.
6822  See Section\InsetSpace ~
6823
6824 \begin_inset CommandInset ref
6825 LatexCommand ref
6826 reference "sec:style"
6827
6828 \end_inset
6829
6830  for details.
6831 \end_layout
6832
6833 \begin_layout Description
6834
6835 \family typewriter
6836 \series medium
6837 NoStyle
6838 \family default
6839 \series default
6840  This command deletes an existing style.
6841  This is particularly useful when you want to suppress a style that has
6842  be defined in an input file.
6843 \end_layout
6844
6845 \begin_layout Description
6846
6847 \family typewriter
6848 \series medium
6849 Float\SpecialChar \ldots{}
6850 End
6851 \family default
6852 \series default
6853  This sequence defines a new float.
6854  See Section\InsetSpace ~
6855
6856 \begin_inset CommandInset ref
6857 LatexCommand ref
6858 reference "sec:floats"
6859
6860 \end_inset
6861
6862  for details.
6863 \end_layout
6864
6865 \begin_layout Description
6866
6867 \family typewriter
6868 \series medium
6869 NoFloat
6870 \family default
6871 \series default
6872  This command deletes an existing float.
6873  This is particularly useful when you want to suppress a float that has
6874  be defined in an input file.
6875 \end_layout
6876
6877 \begin_layout Description
6878
6879 \family typewriter
6880 \series medium
6881 InsetLayout\SpecialChar \ldots{}
6882 End
6883 \family default
6884 \series default
6885  This section (re-)defines the layout of an inset.
6886  It can be applied to an existing inset of to a new, user-defined inset,
6887  e.g., a new character style.
6888  See Section\InsetSpace ~
6889
6890 \begin_inset CommandInset ref
6891 LatexCommand ref
6892 reference "sec:charstyle"
6893
6894 \end_inset
6895
6896  for a description.
6897 \end_layout
6898
6899 \begin_layout Description
6900
6901 \family typewriter
6902 \series medium
6903 Counter\SpecialChar \ldots{}
6904 End
6905 \family default
6906 \series default
6907  This sequence defines a new counter.
6908  See Section\InsetSpace ~
6909
6910 \begin_inset CommandInset ref
6911 LatexCommand ref
6912 reference "sec:counter"
6913
6914 \end_inset
6915
6916  for details.
6917 \end_layout
6918
6919 \begin_layout Standard
6920 \begin_inset ERT
6921 status open
6922
6923 \begin_layout Standard
6924
6925
6926 \backslash
6927 end{sloppypar}
6928 \end_layout
6929
6930 \end_inset
6931
6932
6933 \end_layout
6934
6935 \begin_layout Subsection
6936
6937 \family typewriter
6938 ClassOptions
6939 \family default
6940  section
6941 \end_layout
6942
6943 \begin_layout Standard
6944 \begin_inset CommandInset label
6945 LatexCommand label
6946 name "sec:classoptions"
6947
6948 \end_inset
6949
6950 The 
6951 \family typewriter
6952 ClassOptions
6953 \family default
6954  section can contain the following entries:
6955 \end_layout
6956
6957 \begin_layout Description
6958
6959 \family typewriter
6960 \series medium
6961 FontSize
6962 \family default
6963 \series default
6964  [
6965 \family typewriter
6966 string="10|11|12"
6967 \family default
6968 ] The list of available font sizes for the document's main font, separated
6969  by 
6970 \begin_inset Quotes eld
6971 \end_inset
6972
6973
6974 \family typewriter
6975 |
6976 \family default
6977
6978 \begin_inset Quotes erd
6979 \end_inset
6980
6981 .
6982 \end_layout
6983
6984 \begin_layout Description
6985
6986 \family typewriter
6987 \series medium
6988 PageStyle
6989 \family default
6990 \series default
6991  [
6992 \family typewriter
6993 string="empty|plain|headings|fancy"
6994 \family default
6995 ] The list of available page styles, separated by 
6996 \begin_inset Quotes eld
6997 \end_inset
6998
6999
7000 \family typewriter
7001 |
7002 \family default
7003
7004 \begin_inset Quotes erd
7005 \end_inset
7006
7007 .
7008 \end_layout
7009
7010 \begin_layout Description
7011
7012 \family typewriter
7013 \series medium
7014 Other
7015 \family default
7016 \series default
7017  [
7018 \family typewriter
7019 string=""
7020 \family default
7021 ] Some document class options, separated by a comma, that will be added
7022  to the optional part of the 
7023 \family typewriter
7024
7025 \backslash
7026 documentclass
7027 \family default
7028  command.
7029 \end_layout
7030
7031 \begin_layout Subsection
7032 Specific Paragraph Layouts
7033 \end_layout
7034
7035 \begin_layout Standard
7036 \begin_inset CommandInset label
7037 LatexCommand label
7038 name "sec:style"
7039
7040 \end_inset
7041
7042 A paragraph layout description looks like this
7043 \begin_inset Foot
7044 status collapsed
7045
7046 \begin_layout Standard
7047 Note that this will either define a new layout or modify an existing one.
7048 \end_layout
7049
7050 \end_inset
7051
7052 :
7053 \end_layout
7054
7055 \begin_layout LyX-Code
7056 Style 
7057 \family roman
7058 \emph on
7059 name
7060 \end_layout
7061
7062 \begin_layout LyX-Code
7063  ...
7064 \end_layout
7065
7066 \begin_layout LyX-Code
7067 End
7068 \end_layout
7069
7070 \begin_layout Standard
7071 where the following commands are allowed:
7072 \end_layout
7073
7074 \begin_layout Standard
7075 \begin_inset ERT
7076 status open
7077
7078 \begin_layout Standard
7079
7080
7081 \backslash
7082 begin{sloppypar}
7083 \end_layout
7084
7085 \end_inset
7086
7087
7088 \end_layout
7089
7090 \begin_layout Description
7091
7092 \family typewriter
7093 \series medium
7094 CopyStyle
7095 \family default
7096 \series default
7097  
7098 \family typewriter
7099 [string]
7100 \family default
7101  This is used to copy all the features of an existing layout into the current
7102  one.
7103  
7104 \end_layout
7105
7106 \begin_layout Description
7107
7108 \family typewriter
7109 \series medium
7110 LatexType
7111 \family default
7112 \series default
7113  [
7114 \family typewriter
7115 \emph on
7116 Paragraph
7117 \emph default
7118 , Command, Environment, Item_Environment,
7119 \family default
7120  
7121 \family typewriter
7122 List_Environment
7123 \family default
7124 ] How the layout should be translated into LaTeX.
7125  
7126 \family typewriter
7127 Paragraph
7128 \family default
7129  means nothing special.
7130  
7131 \family typewriter
7132 Command
7133 \family default
7134  means 
7135 \family typewriter
7136
7137 \backslash
7138
7139 \emph on
7140 LatexName
7141 \emph default
7142 {\SpecialChar \ldots{}
7143 }
7144 \family default
7145  and 
7146 \family typewriter
7147 Environment
7148 \family default
7149  means 
7150 \family typewriter
7151
7152 \backslash
7153 begin{
7154 \emph on
7155 LatexName
7156 \emph default
7157 }\SpecialChar \ldots{}
7158
7159 \backslash
7160 end{
7161 \emph on
7162 LatexName
7163 \emph default
7164 }
7165 \family default
7166 .
7167  
7168 \family typewriter
7169 Item_Environment
7170 \family default
7171  is the same as 
7172 \family typewriter
7173 Environment
7174 \family default
7175 , except that a 
7176 \family typewriter
7177
7178 \backslash
7179 item
7180 \family default
7181  is generated for each paragraph of this environment.
7182  
7183 \family typewriter
7184 List_Environment
7185 \family default
7186  is the same as 
7187 \family typewriter
7188 Item_Environment
7189 \family default
7190 , except that 
7191 \family typewriter
7192 LabelWidthString
7193 \family default
7194  is passed as an argument to the environment.
7195  
7196 \family typewriter
7197 LabelWidthString
7198 \family default
7199  can be defined in the 
7200 \family sans
7201 \bar under
7202 L
7203 \bar default
7204 ayout\SpecialChar \menuseparator
7205
7206 \bar under
7207 P
7208 \bar default
7209 aragraph
7210 \family default
7211  dialog.
7212  
7213 \family typewriter
7214 \emph on
7215 LatexType
7216 \family default
7217 \emph default
7218  is perhaps a bit misleading, since these rules apply to SGML classes, too.
7219  Visit the SGML class files for specific examples.
7220 \end_layout
7221
7222 \begin_layout Description
7223
7224 \family typewriter
7225 \series medium
7226 InTitle
7227 \family default
7228 \series default
7229  
7230 \family typewriter
7231 [1, 0]
7232 \family default
7233  If 1, marks the layout as being part of a title block (see also the 
7234 \family typewriter
7235 TitleLatexType
7236 \family default
7237  and 
7238 \family typewriter
7239 TitleLatexName
7240 \family default
7241  global entries)
7242 \end_layout
7243
7244 \begin_layout Description
7245
7246 \family typewriter
7247 \series medium
7248 LatexName
7249 \family default
7250 \series default
7251  The name of the corresponding LaTeX stuff.
7252  Either the environment or command name.
7253 \end_layout
7254
7255 \begin_layout Description
7256
7257 \family typewriter
7258 \series medium
7259 LatexParam
7260 \family default
7261 \series default
7262  The optional parameter for the corresponding 
7263 \family typewriter
7264 \series medium
7265 LatexName
7266 \family default
7267 \series default
7268  stuff.
7269  This parameter cannot be changed from within LyX.
7270 \end_layout
7271
7272 \begin_layout Description
7273
7274 \family typewriter
7275 \series medium
7276 OptionalArgs
7277 \family default
7278 \series default
7279  [
7280 \family typewriter
7281 int=0
7282 \family default
7283 ] The number of optional arguments that can be used with this layout.
7284  This is useful for things like section headings, and only makes sense with
7285  LaTeX.
7286 \end_layout
7287
7288 \begin_layout Description
7289
7290 \family typewriter
7291 \series medium
7292 Margin
7293 \family default
7294 \series default
7295  [
7296 \family typewriter
7297 \emph on
7298 Static
7299 \emph default
7300 , Manual, Dynamic, First_Dynamic, Right_Address_Box
7301 \family default
7302
7303 \newline
7304 The kind of margin that the layout has on the left side.
7305  
7306 \family typewriter
7307 Static
7308 \family default
7309  just means a fixed margin.
7310  
7311 \family typewriter
7312 Manual
7313 \family default
7314  means that the left margin depends on the string entered in the 
7315 \family sans
7316 \bar under
7317 E
7318 \bar default
7319 dit\SpecialChar \menuseparator
7320
7321 \bar under
7322 P
7323 \bar default
7324 aragraph\InsetSpace ~
7325 Settings
7326 \family default
7327  dialog.
7328  This is used to typeset nice lists without tabulators.
7329  
7330 \family typewriter
7331 Dynamic
7332 \family default
7333  means that the margin depends on the size of the label.
7334  This is used for automatic enumerated headlines.
7335  It is obvious that the headline 
7336 \begin_inset Quotes eld
7337 \end_inset
7338
7339 5.4.3.2.1 Very long headline
7340 \begin_inset Quotes erd
7341 \end_inset
7342
7343  must have a wider left margin (as wide as 
7344 \begin_inset Quotes eld
7345 \end_inset
7346
7347 5.4.3.2.1
7348 \begin_inset Quotes erd
7349 \end_inset
7350
7351  plus the space) than 
7352 \begin_inset Quotes eld
7353 \end_inset
7354
7355 3.2 Very long headline
7356 \begin_inset Quotes erd
7357 \end_inset
7358
7359 , even if other word processors are not able to do this.
7360  
7361 \family typewriter
7362 First_Dynamic
7363 \family default
7364  is similar, but only the very first row of the paragraph is dynamic, while
7365  the others are static; this is used, for example, for descriptions.
7366  
7367 \family typewriter
7368 Right_Address_Box
7369 \family default
7370  means the margin is chosen in a way that the longest row of this paragraph
7371  fits to the right margin.
7372  This is used to typeset an address on the right edge of the page.
7373 \end_layout
7374
7375 \begin_layout Description
7376
7377 \family typewriter
7378 \series medium
7379 NextNoIndent
7380 \family default
7381 \series default
7382  [
7383 \family typewriter
7384 1,
7385 \family default
7386  
7387 \family typewriter
7388 \emph on
7389 0
7390 \family default
7391 \emph default
7392 ] Whether the following Paragraph is allowed to indent its very first row.
7393  
7394 \family typewriter
7395 1
7396 \family default
7397  means that it is not allowed to do so, 
7398 \family typewriter
7399 0
7400 \family default
7401  means it could do so if it wants to.
7402 \end_layout
7403
7404 \begin_layout Description
7405
7406 \family typewriter
7407 \series medium
7408 ParIndent
7409 \family default
7410 \series default
7411  [
7412 \family typewriter
7413 string=""
7414 \family default
7415 ] The indent of the very first line of a paragraph.
7416  The argument is passed as a string.
7417  For example 
7418 \family typewriter
7419 "MM"
7420 \family default
7421  means that the paragraph is indented with the width of 
7422 \family typewriter
7423 "MM"
7424 \family default
7425  in 
7426 \family typewriter
7427 the
7428 \family default
7429  normal font.
7430  You can get a negative width by prefixing the string with 
7431 \family typewriter
7432 "-"
7433 \family default
7434 .
7435  This way was chosen so that the look is the same with each used screen
7436  font.
7437  The 
7438 \family typewriter
7439 Parindent
7440 \family default
7441  will be fixed for a certain layout.
7442  The exception is Standard layout, since the indentation of a Standard layout
7443  paragraph can be prohibited with 
7444 \family typewriter
7445 NextNoIndent
7446 \family default
7447 .
7448  Also, Standard layout paragraphs inside environments use the 
7449 \family typewriter
7450 Parindent
7451 \family default
7452  of the environment, not their native one.
7453  For example, Standard paragraphs inside an enumeration are not indented.
7454 \end_layout
7455
7456 \begin_layout Description
7457
7458 \family typewriter
7459 \series medium
7460 Parskip
7461 \family default
7462 \series default
7463  [
7464 \family typewriter
7465 float=0
7466 \family default
7467 ] LyX allows to choose either 
7468 \begin_inset Quotes eld
7469 \end_inset
7470
7471 indent
7472 \begin_inset Quotes erd
7473 \end_inset
7474
7475  or 
7476 \begin_inset Quotes eld
7477 \end_inset
7478
7479 skip
7480 \begin_inset Quotes erd
7481 \end_inset
7482
7483  to typeset a document.
7484  When 
7485 \begin_inset Quotes eld
7486 \end_inset
7487
7488 indent
7489 \begin_inset Quotes erd
7490 \end_inset
7491
7492  is chosen, this value is completely ignored.
7493  When 
7494 \begin_inset Quotes eld
7495 \end_inset
7496
7497 skip
7498 \begin_inset Quotes erd
7499 \end_inset
7500
7501  is chosen, the parindent of a LaTeXtype 
7502 \begin_inset Quotes eld
7503 \end_inset
7504
7505 Paragraph
7506 \begin_inset Quotes erd
7507 \end_inset
7508
7509  layout is ignored and all paragraphs are additionally separated by this
7510  parskip argument.
7511  The vertical space is calculated with 
7512 \family typewriter
7513 value*DefaultHeight()
7514 \family default
7515  where 
7516 \family typewriter
7517 DefaultHeight()
7518 \family default
7519  is the height of a row with the normal font.
7520  This way, the look stays the same with different screen fonts.
7521 \end_layout
7522
7523 \begin_layout Description
7524
7525 \family typewriter
7526 \series medium
7527 TopSep
7528 \family default
7529 \series default
7530  [
7531 \family typewriter
7532 float=0
7533 \family default
7534 ] The vertical space with which the very first of a chain of paragraphs
7535  with this layout is separated from the previous paragraph.
7536  If the previous paragraph has another layout, the separations are not simply
7537  added, but the maximum is taken.
7538 \end_layout
7539
7540 \begin_layout Description
7541
7542 \family typewriter
7543 \series medium
7544 BottomSep
7545 \family default
7546 \series default
7547  [
7548 \family typewriter
7549 float=0
7550 \family default
7551 ] The same as 
7552 \family typewriter
7553 TopSep
7554 \family default
7555  for the very last paragraph.
7556 \end_layout
7557
7558 \begin_layout Description
7559
7560 \family typewriter
7561 \series medium
7562 Parsep
7563 \family default
7564 \series default
7565  [
7566 \family typewriter
7567 float=0
7568 \family default
7569 ] The vertical space between two paragraphs of this layout.
7570 \end_layout
7571
7572 \begin_layout Description
7573
7574 \family typewriter
7575 \series medium
7576 Itemsep
7577 \family default
7578 \series default
7579  [
7580 \family typewriter
7581 float=0
7582 \family default
7583 ] This is an extra space between the paragraphs of an environment layout.
7584  If you put other layouts into an environment, each is separated with the
7585  environment's 
7586 \family typewriter
7587 Parsep
7588 \family default
7589 .
7590  But the whole items of the environment are additionally separated with
7591  this 
7592 \family typewriter
7593 Itemsep
7594 \family default
7595 .
7596  
7597 \end_layout
7598
7599 \begin_layout Description
7600
7601 \family typewriter
7602 \series medium
7603 LeftMargin
7604 \family default
7605 \series default
7606  [
7607 \family typewriter
7608 string=""
7609 \family default
7610 ] If you put layouts into environments, the leftmargins are not simply added,
7611  but added with a factor 
7612 \begin_inset Formula $\frac{4}{depth+4}$
7613 \end_inset
7614
7615 .
7616  Note that this parameter is also used when the border is defined as 
7617 \family typewriter
7618 Manual
7619 \family default
7620  or 
7621 \family typewriter
7622 Dynamic
7623 \family default
7624 .
7625  Then it is added to the manual or dynamic border.
7626  This string has the same meaning as for 
7627 \family typewriter
7628 ParIndent
7629 \family default
7630 .
7631 \end_layout
7632
7633 \begin_layout Description
7634
7635 \family typewriter
7636 \series medium
7637 RightMargin
7638 \family default
7639 \series default
7640  [
7641 \family typewriter
7642 string=""
7643 \family default
7644 ] Similar to 
7645 \family typewriter
7646 LeftMargin
7647 \family default
7648 .
7649 \end_layout
7650
7651 \begin_layout Description
7652
7653 \family typewriter
7654 \series medium
7655 Labeltype
7656 \family default
7657 \series default
7658  [
7659 \family typewriter
7660 \emph on
7661 No_Label
7662 \emph default
7663 , Manual, Static, Top_Environment, 
7664 \newline
7665 Centered_Top_Environment, Sensitive,
7666  Counter
7667 \family default
7668
7669 \newline
7670
7671 \family typewriter
7672 Manual
7673 \family default
7674  means the label is the very first word (up to the first real blank).
7675  
7676 \family typewriter
7677 Static
7678 \family default
7679  means it is defined in the layout (see 
7680 \family typewriter
7681 LabelString
7682 \family default
7683 ).
7684  
7685 \family typewriter
7686 Top_Environment
7687 \family default
7688  and 
7689 \family typewriter
7690 Centered_Top_Environment
7691 \family default
7692  are special cases of 
7693 \family typewriter
7694 Static
7695 \family default
7696 .
7697  The label will be printed above the paragraph, but only at the top of an
7698  environment or the top of a chain of paragraphs with this layout.
7699  Usage is for example the 
7700 \family sans
7701 Abstract
7702 \family default
7703  layout or the 
7704 \family sans
7705 Bibliography
7706 \family default
7707  layout.
7708  This is also the case for 
7709 \family typewriter
7710 Manual
7711 \family default
7712  labels with latex type 
7713 \family typewriter
7714 Environment
7715 \family default
7716 , in order to make layouts for theorems work correctly.
7717  
7718 \family typewriter
7719 Sensitive
7720 \family default
7721  is a special case for the caption-labels 
7722 \begin_inset Quotes eld
7723 \end_inset
7724
7725 Figure
7726 \begin_inset Quotes erd
7727 \end_inset
7728
7729  and 
7730 \begin_inset Quotes eld
7731 \end_inset
7732
7733 Table
7734 \begin_inset Quotes erd
7735 \end_inset
7736
7737 .
7738  
7739 \family typewriter
7740 Sensitive
7741 \family default
7742  means the (hardcoded) label string depends on the kind of float.
7743  The 
7744 \family typewriter
7745 Counter
7746 \family default
7747  label type defines automatically numbered labels.
7748 \end_layout
7749
7750 \begin_layout Description
7751
7752 \family typewriter
7753 \series medium
7754 LabelCounter
7755 \family default
7756 \series default
7757  [
7758 \family typewriter
7759 string=""
7760 \family default
7761 ]
7762 \newline
7763 The name of the counter for automatic numbering (see Section\InsetSpace ~
7764
7765 \begin_inset CommandInset ref
7766 LatexCommand ref
7767 reference "sec:counter"
7768
7769 \end_inset
7770
7771  for details).
7772  This must be given if 
7773 \family typewriter
7774 \series medium
7775 Labeltype
7776 \family default
7777 \series default
7778  is 
7779 \family typewriter
7780 Counter
7781 \family default
7782 .
7783 \end_layout
7784
7785 \begin_layout Description
7786
7787 \family typewriter
7788 \series medium
7789 Labelsep
7790 \family default
7791 \series default
7792  [
7793 \family typewriter
7794 string=""
7795 \family default
7796 ] The horizontal space between the label and the text body.
7797  Only used for labels that are not above the text body.
7798 \end_layout
7799
7800 \begin_layout Description
7801
7802 \family typewriter
7803 \series medium
7804 LabelBottomsep
7805 \family default
7806 \series default
7807  [float=0] The vertical space between the label and the text body.
7808  Only used for labels that are above the text body (
7809 \family typewriter
7810 Top_Environment
7811 \family default
7812
7813 \family typewriter
7814 Centered_Top_Environment
7815 \family default
7816 ).
7817 \end_layout
7818
7819 \begin_layout Description
7820
7821 \family typewriter
7822 \series medium
7823 LabelString
7824 \family default
7825 \series default
7826  [
7827 \family typewriter
7828 string=""
7829 \family default
7830 ] The string used for a label with a 
7831 \family typewriter
7832 Static
7833 \family default
7834  labeltype.
7835  When the border is 
7836 \family typewriter
7837 Manual
7838 \family default
7839  this string is also used as a suggestion for the 
7840 \family typewriter
7841 LabelWidthString
7842 \family default
7843  that can be set in the 
7844 \family sans
7845 \bar under
7846 E
7847 \bar default
7848 dit\SpecialChar \menuseparator
7849
7850 \bar under
7851 P
7852 \bar default
7853 aragraph\InsetSpace ~
7854 Settings
7855 \family default
7856  dialog.
7857  When 
7858 \family typewriter
7859 \series medium
7860 LabelCounter
7861 \family default
7862 \series default
7863  is set, this string can be contain the special formatting commands described
7864  in Section\InsetSpace ~
7865
7866 \begin_inset CommandInset ref
7867 LatexCommand ref
7868 reference "sec:counter"
7869
7870 \end_inset
7871
7872 .
7873  For the sake of backwards compatibility, the string 
7874 \family typewriter
7875 @
7876 \emph on
7877 style-name
7878 \emph default
7879 @
7880 \family default
7881  will be replaced by the expanded 
7882 \family typewriter
7883 LabelString
7884 \family default
7885  of style 
7886 \family typewriter
7887 \emph on
7888 style-name
7889 \family default
7890 \emph default
7891 .
7892  This feature is now obsolete and should be replaced by the mechanisms of
7893  Section\InsetSpace ~
7894
7895 \begin_inset CommandInset ref
7896 LatexCommand ref
7897 reference "sec:counter"
7898
7899 \end_inset
7900
7901 .
7902 \end_layout
7903
7904 \begin_layout Description
7905
7906 \family typewriter
7907 \series medium
7908 LabelStringAppendix
7909 \family default
7910 \series default
7911  [
7912 \family typewriter
7913 string=""
7914 \family default
7915 ] This is used inside the appendix instead of 
7916 \family typewriter
7917 LabelString
7918 \family default
7919 .
7920  Note that every 
7921 \family typewriter
7922 LabelString
7923 \family default
7924  statement resets 
7925 \family typewriter
7926 \series medium
7927 LabelStringAppendix
7928 \family default
7929 \series default
7930  too
7931 \family typewriter
7932 \series medium
7933 .
7934 \end_layout
7935
7936 \begin_layout Description
7937
7938 \family typewriter
7939 \series medium
7940 TocLevel [int]
7941 \family default
7942 \series default
7943  The level of the style in the table of contents.
7944  This is used for automatic numbering of section headings.
7945 \end_layout
7946
7947 \begin_layout Description
7948
7949 \family typewriter
7950 \series medium
7951 EndLabeltype
7952 \family default
7953 \series default
7954  [
7955 \family typewriter
7956 \emph on
7957 No_Label
7958 \emph default
7959 , Box, Filled_Box, Static
7960 \family default
7961 ] The type of label that stands at the end of the paragraph (or sequence
7962  of paragraphs if 
7963 \family typewriter
7964 LatexType
7965 \family default
7966  is 
7967 \family typewriter
7968 Environment
7969 \family default
7970
7971 \family typewriter
7972 Item_Environment
7973 \family default
7974  or 
7975 \family typewriter
7976 List_Environment
7977 \family default
7978 ).
7979  
7980 \family typewriter
7981 No_Label
7982 \family default
7983  means 
7984 \begin_inset Quotes eld
7985 \end_inset
7986
7987 nothing
7988 \begin_inset Quotes erd
7989 \end_inset
7990
7991
7992 \family typewriter
7993 Box
7994 \family default
7995  (resp.
7996 \family typewriter
7997 \InsetSpace ~
7998 Filled_Box
7999 \family default
8000 ) is a white (resp.\InsetSpace ~
8001 black) square suitable for end of proof markers, 
8002 \family typewriter
8003 Static
8004 \family default
8005  is an explicit text string.
8006 \end_layout
8007
8008 \begin_layout Description
8009
8010 \family typewriter
8011 \series medium
8012 EndLabelString
8013 \family default
8014 \series default
8015  [
8016 \family typewriter
8017 string=""
8018 \family default
8019 ] The string used for a label with a 
8020 \family typewriter
8021 Static
8022 \family default
8023  
8024 \family typewriter
8025 EndLabelType
8026 \family default
8027 .
8028  
8029 \end_layout
8030
8031 \begin_layout Description
8032
8033 \family typewriter
8034 \series medium
8035 Align
8036 \family default
8037 \series default
8038  [
8039 \family typewriter
8040 \emph on
8041 block
8042 \emph default
8043 , left, right, center
8044 \family default
8045 ] Paragraph alignment.
8046 \end_layout
8047
8048 \begin_layout Description
8049
8050 \family typewriter
8051 \series medium
8052 AlignPossible
8053 \family default
8054 \series default
8055  [
8056 \family typewriter
8057 \emph on
8058 block
8059 \emph default
8060 , left, right, center
8061 \family default
8062 ] A comma separated 
8063 \emph on
8064 list
8065 \emph default
8066  of possible aligns.
8067  Some LaTeX styles prohibit certain alignments, since those wouldn't make
8068  sense.
8069  For example a right-aligned or centered enumeration isn't possible.
8070 \end_layout
8071
8072 \begin_layout Description
8073
8074 \family typewriter
8075 \series medium
8076 Fill_Top
8077 \family default
8078 \series default
8079  [
8080 \family typewriter
8081 \emph on
8082 0
8083 \emph default
8084 ,1
8085 \family default
8086 ] With this parameter the 
8087 \family sans
8088 Fill
8089 \family default
8090  value of the 
8091 \begin_inset Quotes eld
8092 \end_inset
8093
8094 Vertical space above
8095 \begin_inset Quotes erd
8096 \end_inset
8097
8098  list of the 
8099 \family sans
8100 \bar under
8101 E
8102 \bar default
8103 dit\SpecialChar \menuseparator
8104
8105 \bar under
8106 P
8107 \bar default
8108 aragraph\InsetSpace ~
8109 Settings
8110 \family default
8111  dialog can be set when initializing a paragraph with this layout
8112 \begin_inset Foot
8113 status collapsed
8114
8115 \begin_layout Standard
8116
8117 \emph on
8118 Note from Jean-Marc:
8119 \emph default
8120  I'm not sure that this setting has much use, and it should probably be
8121  removed in later versions.
8122 \end_layout
8123
8124 \end_inset
8125
8126 .
8127  
8128 \end_layout
8129
8130 \begin_layout Description
8131
8132 \family typewriter
8133 \series medium
8134 Fill_Bottom
8135 \family default
8136 \series default
8137  [
8138 \family typewriter
8139 \emph on
8140 0
8141 \emph default
8142 ,1
8143 \family default
8144 ] Similar to 
8145 \family typewriter
8146 Fill_Top
8147 \family default
8148 .
8149 \end_layout
8150
8151 \begin_layout Description
8152
8153 \family typewriter
8154 \series medium
8155 NeedProtect
8156 \family default
8157 \series default
8158  [
8159 \family typewriter
8160 \emph on
8161 0
8162 \emph default
8163 ,1
8164 \family default
8165 ] Whether fragile commands in this layout should be 
8166 \family typewriter
8167
8168 \backslash
8169 protect
8170 \family default
8171 'ed.
8172 \end_layout
8173
8174 \begin_layout Description
8175
8176 \family typewriter
8177 \series medium
8178 Newline
8179 \family default
8180 \series default
8181  [
8182 \family typewriter
8183 0,
8184 \family default
8185  
8186 \family typewriter
8187 \emph on
8188 1
8189 \family default
8190 \emph default
8191 ] Whether newlines are translated into LaTeX newlines (
8192 \family typewriter
8193
8194 \backslash
8195
8196 \backslash
8197
8198 \family default
8199 ) or not.
8200  The translation can be switched off to allow more comfortable LaTeX editing
8201  inside LyX.
8202 \end_layout
8203
8204 \begin_layout Description
8205
8206 \family typewriter
8207 \series medium
8208 PassThru
8209 \family default
8210 \series default
8211  [
8212 \family typewriter
8213 \emph on
8214 0
8215 \emph default
8216 , 1
8217 \family default
8218 ] Whether the contents of this paragraph should be output in raw form, meaning
8219  without special translations that LaTeX would require.
8220  This somehow replaces the older 
8221 \family typewriter
8222 Latex
8223 \family default
8224  font property.
8225 \end_layout
8226
8227 \begin_layout Description
8228
8229 \family typewriter
8230 \series medium
8231 FreeSpacing
8232 \family default
8233 \series default
8234  [
8235 \family typewriter
8236 \emph on
8237 0
8238 \emph default
8239 , 1
8240 \family default
8241 ] Usually LyX doesn't allow you to insert more than one space between words,
8242  since a space is considered as the separation between two words, not a
8243  character or symbol of its own.
8244  This is a very fine thing but sometimes annoying, for example when typing
8245  program code or plain LaTeX code.
8246  For this reason, 
8247 \family typewriter
8248 FreeSpacing
8249 \family default
8250  can be enabled.
8251  Note that LyX will create protected blanks for the additional blanks when
8252  in another mode than LaTeX-mode.
8253 \end_layout
8254
8255 \begin_layout Description
8256
8257 \family typewriter
8258 \series medium
8259 KeepEmpty
8260 \family default
8261 \series default
8262  [
8263 \family typewriter
8264 \emph on
8265 0
8266 \emph default
8267 , 1
8268 \family default
8269 ] Usually LyX does not allow you to leave a paragraph empty, since it would
8270  lead to empty LaTeX output.
8271  There are some cases where this could be desirable however: in a letter
8272  template, the required fields can be provided as empty fields, so that
8273  people do not forget them; in some special classes, a layout can be used
8274  as some kind of break, which does not contain actual text.
8275 \end_layout
8276
8277 \begin_layout Description
8278
8279 \family typewriter
8280 \series medium
8281 Spacing
8282 \family default
8283 \series default
8284  [
8285 \family typewriter
8286 \emph on
8287 single
8288 \emph default
8289 , onehalf, double, other
8290 \family default
8291  
8292 \emph on
8293 value
8294 \emph default
8295 ] This defines what the default spacing should be in the layout.
8296  The arguments 
8297 \family typewriter
8298 single
8299 \family default
8300
8301 \family typewriter
8302 onehalf
8303 \family default
8304  and 
8305 \family typewriter
8306 double
8307 \family default
8308  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
8309  If you specify the argument 
8310 \family typewriter
8311 other
8312 \family default
8313 , then you should also provide a numerical argument which will be the actual
8314  multiplier value.
8315  Note that, contrary to other parameters, 
8316 \family typewriter
8317 Spacing
8318 \family default
8319  implies the generation of specific LaTeX code, using the package 
8320 \family typewriter
8321 setspace.sty
8322 \family roman
8323 .
8324 \end_layout
8325
8326 \begin_layout Description
8327
8328 \family typewriter
8329 \series medium
8330 Font
8331 \family default
8332 \series default
8333  The font used for both the text body 
8334 \emph on
8335 and
8336 \emph default
8337  the label.
8338  See section\InsetSpace ~
8339
8340 \begin_inset CommandInset ref
8341 LatexCommand ref
8342 reference "sec:fonts"
8343
8344 \end_inset
8345
8346 .
8347  Note that defining this font automatically defines the 
8348 \family typewriter
8349 LabelFont
8350 \family default
8351  to the same value.
8352 \end_layout
8353
8354 \begin_layout Description
8355
8356 \family typewriter
8357 \series medium
8358 TextFont
8359 \family default
8360 \series default
8361  The font used for the text body .
8362  See section\InsetSpace ~
8363
8364 \begin_inset CommandInset ref
8365 LatexCommand ref
8366 reference "sec:fonts"
8367
8368 \end_inset
8369
8370 .
8371 \end_layout
8372
8373 \begin_layout Description
8374
8375 \family typewriter
8376 \series medium
8377 LabelFont
8378 \family default
8379 \series default
8380  The font used for the label.
8381  See section\InsetSpace ~
8382
8383 \begin_inset CommandInset ref
8384 LatexCommand ref
8385 reference "sec:fonts"
8386
8387 \end_inset
8388
8389 .
8390 \end_layout
8391
8392 \begin_layout Description
8393
8394 \family typewriter
8395 \series medium
8396 Preamble\SpecialChar \ldots{}
8397 EndPreamble
8398 \family default
8399 \series default
8400  A set of macro definitions that will be output at the beginning of the
8401  LaTeX files when the layout is used.
8402  Use this to define the macros needed by this particular layout.
8403 \end_layout
8404
8405 \begin_layout Description
8406
8407 \family typewriter
8408 \series medium
8409 Requires 
8410 \family default
8411 \series default
8412 [
8413 \family typewriter
8414 string
8415 \family default
8416 ] Whether the layout requires the feature
8417 \family typewriter
8418  string
8419 \family default
8420 .
8421  A feature is in general the name of a package (amsmath, makeidx, \SpecialChar \ldots{}
8422 ) or a
8423  macro (url, boldsymbol,\SpecialChar \ldots{}
8424 ).
8425  Multiple features must be separated by commas.
8426  Note that you can only request supported features; unfortunately, the complete
8427  list of supported features is not documented (however, 
8428 \family sans
8429 \bar under
8430 H
8431 \bar default
8432 elp\SpecialChar \menuseparator
8433
8434 \bar under
8435 L
8436 \bar default
8437 aTeX Configuration
8438 \family default
8439  gives an overview of the supported packages).
8440 \end_layout
8441
8442 \begin_layout Description
8443
8444 \family typewriter
8445 \series medium
8446 DependsOn
8447 \family default
8448 \series default
8449  the name of a style which preamble should be output 
8450 \emph on
8451 before
8452 \emph default
8453  the one mentionned above.
8454  This allows to ensure some ordering of the preamble snippets when macros
8455  definitions depend on one another
8456 \begin_inset Foot
8457 status collapsed
8458
8459 \begin_layout Standard
8460 Note that, besides that functionality, there is no way to ensure any ordering
8461  of preambles.
8462  The ordering that you see in a given version of LyX may change without
8463  warning in later versions.
8464 \end_layout
8465
8466 \end_inset
8467
8468 .
8469 \end_layout
8470
8471 \begin_layout Standard
8472 \begin_inset ERT
8473 status open
8474
8475 \begin_layout Standard
8476
8477
8478 \backslash
8479 end{sloppypar}
8480 \end_layout
8481
8482 \end_inset
8483
8484
8485 \end_layout
8486
8487 \begin_layout Subsection
8488 Floats
8489 \end_layout
8490
8491 \begin_layout Standard
8492 \begin_inset CommandInset label
8493 LatexCommand label
8494 name "sec:floats"
8495
8496 \end_inset
8497
8498 Since version 1.3.0 of LyX, it is necessary to define the floats (
8499 \family sans
8500 figure
8501 \family default
8502
8503 \family sans
8504 table
8505 \family default
8506 , \SpecialChar \ldots{}
8507 ) in the text class itself.
8508  If you are looking here to learn how to upgrade an existing text class,
8509  it will probably turn out that all you have to do is to add
8510 \end_layout
8511
8512 \begin_layout LyX-Code
8513 Input stdfloats.inc
8514 \end_layout
8515
8516 \begin_layout Standard
8517 at a reasonable location of the text class.
8518 \begin_inset Foot
8519 status collapsed
8520
8521 \begin_layout Standard
8522 Don't forget to also have a look at counters in next section.
8523 \end_layout
8524
8525 \end_inset
8526
8527  If you want to implement a text class that proposes some other float types
8528  (like the AGU class bundled with LyX), the information below will hopefully
8529  help you:
8530 \end_layout
8531
8532 \begin_layout Description
8533
8534 \family typewriter
8535 \series medium
8536 Type
8537 \family default
8538 \series default
8539  [
8540 \family typewriter
8541 string
8542 \family default
8543 =
8544 \begin_inset Quotes erd
8545 \end_inset
8546
8547
8548 \begin_inset Quotes erd
8549 \end_inset
8550
8551 ] The 
8552 \begin_inset Quotes eld
8553 \end_inset
8554
8555 type
8556 \begin_inset Quotes erd
8557 \end_inset
8558
8559  of the new class of floats, like program or algorithm.
8560  After the appropriate 
8561 \family typewriter
8562
8563 \backslash
8564 newfloat
8565 \family default
8566 , commands such as 
8567 \family typewriter
8568
8569 \backslash
8570 begin{program}
8571 \family default
8572  or 
8573 \family typewriter
8574
8575 \backslash
8576 end{algorithm*}
8577 \family default
8578  will be available.
8579 \end_layout
8580
8581 \begin_layout Description
8582
8583 \family typewriter
8584 \series medium
8585 GuiName
8586 \family default
8587 \series default
8588  [
8589 \family typewriter
8590 string
8591 \family default
8592 =
8593 \begin_inset Quotes erd
8594 \end_inset
8595
8596
8597 \begin_inset Quotes erd
8598 \end_inset
8599
8600 ] The string that will be used in the menus and also for the caption.
8601 \end_layout
8602
8603 \begin_layout Description
8604
8605 \family typewriter
8606 \series medium
8607 LaTeXBuiltin
8608 \family default
8609 \series default
8610  [
8611 \family typewriter
8612 \emph on
8613 0
8614 \family default
8615 \emph default
8616
8617 \family typewriter
8618 1
8619 \family default
8620 ] Set to 
8621 \family typewriter
8622 1
8623 \family default
8624  if the float is already defined by the documentclass.
8625  If this is set to 
8626 \family typewriter
8627 0
8628 \family default
8629 , the float will be defined using the LaTeX package 
8630 \family typewriter
8631 float
8632 \family default
8633 .
8634 \end_layout
8635
8636 \begin_layout Description
8637
8638 \family typewriter
8639 \series medium
8640 NumberWithin
8641 \family default
8642 \series default
8643  [
8644 \family typewriter
8645 string
8646 \family default
8647 =
8648 \begin_inset Quotes erd
8649 \end_inset
8650
8651
8652 \begin_inset Quotes erd
8653 \end_inset
8654
8655 ] This (optional) argument determines whether floats of this class will
8656  be numbered within some sectional unit of the document.
8657  For example, if within is equal to 
8658 \family typewriter
8659 chapter
8660 \family default
8661 , the floats will be numbered within chapters.
8662  
8663 \end_layout
8664
8665 \begin_layout Description
8666
8667 \family typewriter
8668 \series medium
8669 Style
8670 \family default
8671 \series default
8672  [
8673 \family typewriter
8674 string
8675 \family default
8676 =
8677 \begin_inset Quotes erd
8678 \end_inset
8679
8680
8681 \begin_inset Quotes erd
8682 \end_inset
8683
8684 ] The style used when defining the float using 
8685 \family typewriter
8686
8687 \backslash
8688 newfloat
8689 \family default
8690 .
8691 \end_layout
8692
8693 \begin_layout Description
8694
8695 \family typewriter
8696 \series medium
8697 Placement
8698 \family default
8699 \series default
8700  [
8701 \family typewriter
8702 string
8703 \family default
8704 =
8705 \begin_inset Quotes erd
8706 \end_inset
8707
8708
8709 \begin_inset Quotes erd
8710 \end_inset
8711
8712 ] The default placement for the given class of floats.
8713  They are like in standard LaTeX: 
8714 \family typewriter
8715 t
8716 \family default
8717
8718 \family typewriter
8719 b
8720 \family default
8721
8722 \family typewriter
8723 p
8724 \family default
8725  and 
8726 \family typewriter
8727 h
8728 \family default
8729  for top, bottom, page, and here, respectively.
8730 \begin_inset Foot
8731 status collapsed
8732
8733 \begin_layout Standard
8734 Note that the order of these letters in the string is irrelevant, like in
8735  LaTeX.
8736 \end_layout
8737
8738 \end_inset
8739
8740  On top of that there is a new type, 
8741 \family typewriter
8742 H
8743 \family default
8744 , which does not really correspond to a float, since it means: put it 
8745 \begin_inset Quotes eld
8746 \end_inset
8747
8748 here
8749 \begin_inset Quotes erd
8750 \end_inset
8751
8752  and nowhere else.
8753  Note, however that the 
8754 \family typewriter
8755 H
8756 \family default
8757  specifier is special and, because of implementation details cannot be used
8758  in non-builtin float types.
8759  If you do not understand what this means, just use 
8760 \family typewriter
8761 "tbp"
8762 \family default
8763 .
8764 \end_layout
8765
8766 \begin_layout Description
8767
8768 \family typewriter
8769 \series medium
8770 Extension
8771 \family default
8772 \series default
8773  [
8774 \family typewriter
8775 string
8776 \family default
8777 =
8778 \begin_inset Quotes erd
8779 \end_inset
8780
8781
8782 \begin_inset Quotes erd
8783 \end_inset
8784
8785 ] The file name extension of an auxiliary file for the list of figures (or
8786  whatever).
8787  LaTeX writes the captions to this file.
8788 \end_layout
8789
8790 \begin_layout Description
8791
8792 \family typewriter
8793 \series medium
8794 ListName
8795 \family default
8796 \series default
8797  [
8798 \family typewriter
8799 string
8800 \family default
8801 =
8802 \begin_inset Quotes erd
8803 \end_inset
8804
8805
8806 \begin_inset Quotes erd
8807 \end_inset
8808
8809 ] The heading used for the list of floats.
8810 \end_layout
8811
8812 \begin_layout Standard
8813 Note that defining a float with type 
8814 \family typewriter
8815 \emph on
8816 type
8817 \family default
8818 \emph default
8819  automatically defines the corresponding counter with name 
8820 \family typewriter
8821 \emph on
8822 type
8823 \family default
8824 \emph default
8825 .
8826 \end_layout
8827
8828 \begin_layout Subsection
8829 Inset layouts and Flex insets
8830 \end_layout
8831
8832 \begin_layout Standard
8833 \begin_inset CommandInset label
8834 LatexCommand label
8835 name "sec:charstyle"
8836
8837 \end_inset
8838
8839 You can define character styles since version 1.4.0 of LyX; since version
8840  1.6.0 these are called Flex insets.
8841  
8842 \end_layout
8843
8844 \begin_layout Standard
8845 Furthermore it is possible to define the general layout of many different
8846  types of insets.
8847  Currently layout parameters can be defined for footnotes, marginal notes,
8848  note insets, ERT insets, branch insets, and Flex insets.
8849  The latter are definable from the user GUI and come in three different
8850  kinds: character style (
8851 \family typewriter
8852 CharStyle
8853 \family default
8854 ) , user custom (
8855 \family typewriter
8856 Custom
8857 \family default
8858 ), and XML element (
8859 \family typewriter
8860 Element
8861 \family default
8862 ) insets.
8863  
8864 \end_layout
8865
8866 \begin_layout Standard
8867 The 
8868 \family typewriter
8869 InsetLayout
8870 \family default
8871  definition starting line is of the form
8872 \end_layout
8873
8874 \begin_layout LyX-Code
8875 InsetLayout <Type> <Name>
8876 \end_layout
8877
8878 \begin_layout Standard
8879 where
8880 \end_layout
8881
8882 \begin_layout Standard
8883
8884 \family typewriter
8885 <type>
8886 \family default
8887  can be 
8888 \family typewriter
8889 Foot, Margin, Note, Flex
8890 \family default
8891 , and 
8892 \end_layout
8893
8894 \begin_layout Standard
8895
8896 \family typewriter
8897 <Name>
8898 \family default
8899  can be empty (for foot- and marginal notes, branches and ERT) or one of
8900  types 
8901 \family typewriter
8902 CharStyle:Noun
8903 \family default
8904
8905 \family typewriter
8906 Note:Comment
8907 \family default
8908
8909 \family typewriter
8910 Custom:Endnote
8911 \family default
8912
8913 \family typewriter
8914 Element:Filename
8915 \family default
8916 , etc.
8917  Here, the second part of the name can be chosen freely (for CharStyle,
8918  Custom and Element), or from a predefined list (for Note).
8919 \end_layout
8920
8921 \begin_layout Standard
8922 The following 
8923 \family typewriter
8924 InsetLayout
8925 \family default
8926  section can contain the following entries:
8927 \end_layout
8928
8929 \begin_layout Description
8930
8931 \family typewriter
8932 \series medium
8933 LyxType 
8934 \family default
8935 \series default
8936 can be 
8937 \family typewriter
8938 charstyle
8939 \family default
8940
8941 \family typewriter
8942 custom
8943 \family default
8944
8945 \family typewriter
8946 element
8947 \family default
8948
8949 \family typewriter
8950 end
8951 \family default
8952  (indicating a dummy definition ending definitions of charstyles etc.).
8953  This entry is only meaningful for Flex (user definable) insets, the three
8954  types of which are CharStyle, Custom and Element.
8955 \end_layout
8956
8957 \begin_layout Description
8958
8959 \family typewriter
8960 \series medium
8961 Decoration
8962 \family default
8963 \series default
8964  can be 
8965 \family typewriter
8966 \series medium
8967 Classic
8968 \family default
8969 \series default
8970 ,
8971 \family typewriter
8972 \series medium
8973  Minimalistic or Conglomerate
8974 \family default
8975 \series default
8976 , describing the rendering style used for the inset's frame and buttons.
8977 \end_layout
8978
8979 \begin_layout Description
8980
8981 \family typewriter
8982 \series medium
8983 LabelString
8984 \family default
8985 \series default
8986  defines what will be displayed on the button or elsewhere as the inset
8987  label.
8988  Some inset types (ERT and Branch) modify this label on the fly.
8989 \end_layout
8990
8991 \begin_layout Description
8992
8993 \family typewriter
8994 \series medium
8995 Font
8996 \family default
8997 \series default
8998  The font used for both the text body 
8999 \emph on
9000 and
9001 \emph default
9002  the label.
9003  See section\InsetSpace ~
9004
9005 \begin_inset CommandInset ref
9006 LatexCommand ref
9007 reference "sec:fonts"
9008
9009 \end_inset
9010
9011 .
9012  Note that defining this font automatically defines the 
9013 \family typewriter
9014 LabelFont
9015 \family default
9016  to the same value.
9017 \end_layout
9018
9019 \begin_layout Description
9020
9021 \family typewriter
9022 \series medium
9023 LabelFont
9024 \family default
9025 \series default
9026  The font used for the label.
9027  See section\InsetSpace ~
9028
9029 \begin_inset CommandInset ref
9030 LatexCommand ref
9031 reference "sec:fonts"
9032
9033 \end_inset
9034
9035 .
9036  Note that this definition can never appear before 
9037 \family typewriter
9038 Font
9039 \family default
9040 , lest it be ineffective (see above)
9041 \end_layout
9042
9043 \begin_layout Description
9044
9045 \family typewriter
9046 \series medium
9047 LatexName
9048 \family default
9049 \series default
9050  The name of the corresponding LaTeX stuff.
9051  Either the environment or command name.
9052 \end_layout
9053
9054 \begin_layout Description
9055
9056 \family typewriter
9057 \series medium
9058 LatexParam
9059 \family default
9060 \series default
9061  The optional parameter for the corresponding 
9062 \family typewriter
9063 \series medium
9064 LatexName
9065 \family default
9066 \series default
9067  stuff, including possible bracket pairs like 
9068 \family typewriter
9069 []
9070 \family default
9071 .
9072  This parameter cannot be changed from within LyX.
9073 \end_layout
9074
9075 \begin_layout Description
9076
9077 \family typewriter
9078 \series medium
9079 LatexType
9080 \family default
9081 \series default
9082  See section\InsetSpace ~
9083
9084 \begin_inset CommandInset ref
9085 LatexCommand ref
9086 reference "sec:style"
9087
9088 \end_inset
9089
9090 .
9091 \end_layout
9092
9093 \begin_layout Description
9094
9095 \family typewriter
9096 \series medium
9097 Preamble\SpecialChar \ldots{}
9098 EndPreamble
9099 \family default
9100 \series default
9101  See section\InsetSpace ~
9102
9103 \begin_inset CommandInset ref
9104 LatexCommand ref
9105 reference "sec:style"
9106
9107 \end_inset
9108
9109 .
9110 \end_layout
9111
9112 \begin_layout Description
9113
9114 \family typewriter
9115 \series medium
9116 Requires 
9117 \family default
9118 \series default
9119 [
9120 \family typewriter
9121 string
9122 \family default
9123 ] See section\InsetSpace ~
9124
9125 \begin_inset CommandInset ref
9126 LatexCommand ref
9127 reference "sec:style"
9128
9129 \end_inset
9130
9131 .
9132 \end_layout
9133
9134 \begin_layout Subsection
9135 Counters
9136 \end_layout
9137
9138 \begin_layout Standard
9139 \begin_inset CommandInset label
9140 LatexCommand label
9141 name "sec:counter"
9142
9143 \end_inset
9144
9145 Since version 1.3.0 of LyX, it is necessary to define the counters (
9146 \family sans
9147 chapter
9148 \family default
9149
9150 \family sans
9151 figure
9152 \family default
9153 , \SpecialChar \ldots{}
9154 ) in the text class itself.
9155  If you are looking here to learn how to upgrade an existing text class,
9156  it will probably turn out that all you have to do is to add
9157 \end_layout
9158
9159 \begin_layout LyX-Code
9160 Input stdcounters.inc
9161 \end_layout
9162
9163 \begin_layout Standard
9164 The following parameters can be used:
9165 \end_layout
9166
9167 \begin_layout Description
9168
9169 \family typewriter
9170 \series medium
9171 Name
9172 \family default
9173 \series default
9174  [
9175 \family typewriter
9176 string
9177 \family default
9178 =
9179 \begin_inset Quotes erd
9180 \end_inset
9181
9182
9183 \begin_inset Quotes erd
9184 \end_inset
9185
9186 ] The name of the counter.
9187 \end_layout
9188
9189 \begin_layout Description
9190
9191 \family typewriter
9192 \series medium
9193 Within
9194 \family default
9195 \series default
9196  [
9197 \family typewriter
9198 string
9199 \family default
9200 =
9201 \begin_inset Quotes erd
9202 \end_inset
9203
9204
9205 \begin_inset Quotes erd
9206 \end_inset
9207
9208 ] If this is set to the name of another counter, the present counter will
9209  be reset everytime the other one is increased.
9210  For example, 
9211 \family typewriter
9212 subsection
9213 \family default
9214  is numbered inside 
9215 \family typewriter
9216 section
9217 \family default
9218 .
9219 \end_layout
9220
9221 \begin_layout Description
9222
9223 \family typewriter
9224 \series medium
9225 LabelString [string=""]
9226 \family default
9227 \series default
9228  when this is defined, this string defines how the counter is displayed.
9229  Setting this value resets 
9230 \family typewriter
9231 LabelStringAppendix
9232 \family default
9233  to the same value.
9234  The following special constructs can be used in the string:
9235 \end_layout
9236
9237 \begin_deeper
9238 \begin_layout Itemize
9239
9240 \family typewriter
9241
9242 \backslash
9243 thecounter
9244 \family default
9245  will be replaced by the expansion of the 
9246 \family typewriter
9247 LabelString
9248 \family default
9249  (or 
9250 \family typewriter
9251 LabelStringAppendix
9252 \family default
9253 ) of the counter 
9254 \family typewriter
9255 counter
9256 \family default
9257 .
9258  If these are empty, a default value is constructed as follows: if the counter
9259  has a master counter 
9260 \family typewriter
9261 master
9262 \family default
9263 , the string 
9264 \family typewriter
9265
9266 \backslash
9267 themaster.
9268 \backslash
9269 arabic{counter}
9270 \family default
9271  is used; otherwise the string 
9272 \family typewriter
9273
9274 \backslash
9275 arabic{counter}
9276 \family default
9277  is used.
9278 \end_layout
9279
9280 \begin_layout Itemize
9281 counter values can be expressed using LaTeX-like macros 
9282 \family typewriter
9283
9284 \backslash
9285
9286 \emph on
9287 numbertype
9288 \emph default
9289 {
9290 \emph on
9291 counter
9292 \emph default
9293 }
9294 \family default
9295 , where 
9296 \family typewriter
9297 \emph on
9298 numbertype
9299 \family default
9300 \emph default
9301  can be:
9302 \end_layout
9303
9304 \begin_deeper
9305 \begin_layout Description
9306
9307 \family typewriter
9308 \series medium
9309 arabic
9310 \family default
9311 \series default
9312  to translate 
9313 \family typewriter
9314 counter
9315 \family default
9316  to arabic numerals, like 1, 2, 3\SpecialChar \ldots{}
9317
9318 \begin_inset Foot
9319 status collapsed
9320
9321 \begin_layout Standard
9322
9323 \family roman
9324 \series medium
9325 \shape up
9326 \size normal
9327 \emph off
9328 \bar no
9329 \noun off
9330 \color none
9331 Actually, the situation is a bit more complicated than that: any
9332 \family default
9333 \series default
9334 \shape default
9335 \emph default
9336 \bar default
9337  
9338 \family typewriter
9339 \size default
9340 \emph on
9341 \noun default
9342 numbertype
9343 \family roman
9344 \series medium
9345 \shape up
9346 \size normal
9347 \emph off
9348 \bar no
9349 \noun off
9350  other than those descibed below will produce arabic numerals.
9351  It would not be surprising to see this change in the future.
9352 \end_layout
9353
9354 \end_inset
9355
9356
9357 \end_layout
9358
9359 \begin_layout Description
9360
9361 \family typewriter
9362 \series medium
9363 alph
9364 \family default
9365 \series default
9366  for lower-case letters: a, b, c, \SpecialChar \ldots{}
9367
9368 \end_layout
9369
9370 \begin_layout Description
9371
9372 \family typewriter
9373 \series medium
9374 Alph
9375 \family default
9376 \series default
9377  for upper-case letters: A, B, C, \SpecialChar \ldots{}
9378
9379 \end_layout
9380
9381 \begin_layout Description
9382
9383 \family typewriter
9384 \series medium
9385 roman
9386 \family default
9387 \series default
9388  for lower-case roman numerals: i, ii, iii, \SpecialChar \ldots{}
9389
9390 \end_layout
9391
9392 \begin_layout Description
9393
9394 \family typewriter
9395 \series medium
9396 Roman
9397 \family default
9398 \series default
9399  for upper-case roman numerals: I, II, III\SpecialChar \ldots{}
9400
9401 \end_layout
9402
9403 \begin_layout Description
9404
9405 \family typewriter
9406 \series medium
9407 hebrew
9408 \family default
9409 \series default
9410  for hebrew numerals.
9411 \end_layout
9412
9413 \end_deeper
9414 \end_deeper
9415 \begin_layout Description
9416
9417 \family typewriter
9418 \series medium
9419 LabelStringAppendix [string=""]
9420 \family default
9421 \series default
9422  the same as 
9423 \family typewriter
9424 LabelString
9425 \family default
9426 , for use in appendix.
9427 \end_layout
9428
9429 \begin_layout Subsection
9430 Font description
9431 \end_layout
9432
9433 \begin_layout Standard
9434 \begin_inset CommandInset label
9435 LatexCommand label
9436 name "sec:fonts"
9437
9438 \end_inset
9439
9440 A font description looks like that:
9441 \end_layout
9442
9443 \begin_layout LyX-Code
9444 Font 
9445 \family roman
9446 \emph on
9447 or
9448 \family default
9449 \emph default
9450  LabelFont
9451 \end_layout
9452
9453 \begin_layout LyX-Code
9454  ...
9455 \end_layout
9456
9457 \begin_layout LyX-Code
9458 EndFont
9459 \end_layout
9460
9461 \begin_layout Standard
9462 and the following commands are available:
9463 \end_layout
9464
9465 \begin_layout Description
9466
9467 \family typewriter
9468 \series medium
9469 Family
9470 \family default
9471 \series default
9472  [
9473 \family typewriter
9474 \emph on
9475 Roman
9476 \emph default
9477 , Sans, Typewriter
9478 \family default
9479
9480 \end_layout
9481
9482 \begin_layout Description
9483
9484 \family typewriter
9485 \series medium
9486 Series
9487 \family default
9488 \series default
9489  [
9490 \family typewriter
9491 \emph on
9492 Medium
9493 \emph default
9494 , Bold
9495 \family default
9496
9497 \end_layout
9498
9499 \begin_layout Description
9500
9501 \family typewriter
9502 \series medium
9503 Shape
9504 \family default
9505 \series default
9506  [
9507 \family typewriter
9508 \emph on
9509 Up
9510 \emph default
9511 , Italic, SmallCaps, Slanted
9512 \family default
9513
9514 \end_layout
9515
9516 \begin_layout Description
9517
9518 \family typewriter
9519 \series medium
9520 Size
9521 \family default
9522 \series default
9523  [
9524 \family typewriter
9525 tiny, small,
9526 \family default
9527  
9528 \family typewriter
9529 \emph on
9530 normal
9531 \emph default
9532 , large, larger, largest, huge, giant
9533 \family default
9534 ]
9535 \end_layout
9536
9537 \begin_layout Description
9538
9539 \family typewriter
9540 \series medium
9541 Color
9542 \family default
9543 \series default
9544  [
9545 \family typewriter
9546 \emph on
9547 none
9548 \emph default
9549 , black, white, red, green, blue, cyan, magenta, yellow
9550 \family default
9551 ]
9552 \end_layout
9553
9554 \begin_layout Subsection
9555 Upgrading old layout files
9556 \end_layout
9557
9558 \begin_layout Standard
9559 The file format of layout files changes from time to time, so old layout
9560  files need to be converted.
9561  This process has been automated in LyX 1.4.0: If LyX reads an old format
9562  layout file it will call the conversion tool 
9563 \family typewriter
9564 $LyXDir/scripts/layout2layout.py
9565 \family default
9566  and convert it to a temporary file in current format.
9567  The original file is left untouched, so that you can still use it with
9568  LyX 1.3.x.
9569  If you want to convert the layout file permanently, just call the converter
9570  by hand:
9571 \end_layout
9572
9573 \begin_layout LyX-Code
9574 python $LyXDir/scripts/layout2layout.py myclass.layout myclassnew.layout
9575 \end_layout
9576
9577 \begin_layout Standard
9578 Then copy 
9579 \family typewriter
9580 myclassnew.layout
9581 \family default
9582  to 
9583 \family typewriter
9584 $UserDir/layouts/
9585 \family default
9586 .
9587 \end_layout
9588
9589 \begin_layout Standard
9590 The automatic conversion does only handle syntax changes.
9591  It cannot handle the case where the contents of included files was changed.
9592  For example, layout files based on 
9593 \family typewriter
9594 book.layout
9595 \family default
9596  need to include 
9597 \family typewriter
9598 numreport.inc
9599 \family default
9600  in addition to 
9601 \family typewriter
9602 stdclass.inc
9603 \family default
9604 .
9605  If you get error messages about undefined counters, try to convert your
9606  file with 
9607 \family typewriter
9608 layout2layout.py
9609 \family default
9610  and then add one of 
9611 \family typewriter
9612 numarticle.inc
9613 \family default
9614
9615 \family typewriter
9616 numreport.inc
9617 \family default
9618  and 
9619 \family typewriter
9620 numrevtex.inc
9621 \family default
9622 .
9623 \end_layout
9624
9625 \begin_layout Section
9626 Creating Templates
9627 \begin_inset CommandInset label
9628 LatexCommand label
9629 name "sec:templates"
9630
9631 \end_inset
9632
9633
9634 \end_layout
9635
9636 \begin_layout Standard
9637 Templates are created just like usual documents.
9638  The only difference is that usual documents contain all possible settings,
9639  including the fontscheme and the papersize.
9640  Usually a user doesn't want a template to overwrite his defaults in these
9641  cases.
9642  For that reason, the designer of a template should remove the corresponding
9643  commands like 
9644 \family typewriter
9645
9646 \backslash
9647 fontscheme
9648 \family default
9649  or 
9650 \family typewriter
9651
9652 \backslash
9653 papersize
9654 \family default
9655  from the template LyX file.
9656  This can be done with any simple text-editor, for example 
9657 \family typewriter
9658 vi
9659 \family default
9660  or 
9661 \family typewriter
9662 xedit
9663 \family default
9664 .
9665  
9666 \end_layout
9667
9668 \begin_layout Standard
9669 Put the edited template files you create in 
9670 \family typewriter
9671 $UserDir/templates/
9672 \family default
9673 , copy the ones you use from the global template directory in 
9674 \family typewriter
9675 $LyXDir/templates/
9676 \family default
9677  to the same place, and redefine the template path in the 
9678 \family sans
9679 \bar under
9680 E
9681 \bar default
9682 dit\SpecialChar \menuseparator
9683
9684 \bar under
9685 P
9686 \bar default
9687 references
9688 \family default
9689  dialog (tabs 
9690 \family sans
9691 Input
9692 \family default
9693
9694 \family sans
9695 Path
9696 \family default
9697 ).
9698  
9699 \end_layout
9700
9701 \begin_layout Standard
9702 Note that there is a template which has a particular meaning: 
9703 \family typewriter
9704 defaults.lyx
9705 \family default
9706 .
9707  This template is loaded everytime you create a new document with 
9708 \family sans
9709 \bar under
9710 F
9711 \bar default
9712 ile
9713 \family default
9714 \SpecialChar \menuseparator
9715
9716 \family sans
9717 \bar under
9718 N
9719 \bar default
9720 ew
9721 \family default
9722  in order to provide useful defaults.
9723  To create this template from inside LyX, all you have to do is to open
9724  a document with the correct settings, and use the 
9725 \family sans
9726 Sa
9727 \bar under
9728 v
9729 \bar default
9730 e as Document Defaults
9731 \family default
9732  button.
9733 \end_layout
9734
9735 \begin_layout Chapter
9736 Including External Material
9737 \end_layout
9738
9739 \begin_layout Section
9740 Background
9741 \end_layout
9742
9743 \begin_layout Standard
9744 \begin_inset Note Note
9745 status collapsed
9746
9747 \begin_layout Standard
9748 This section is completely outdated.
9749 \end_layout
9750
9751 \end_inset
9752
9753 One often requested feature from LyX users is to be able to interface LyX
9754  with Xfig, Dia, or other similar applications that specialize in producing
9755  a certain kind of diagram, figure, schematic or whatever material might
9756  be relevant to include in your document.
9757  Previously, it was only possible to include boring, static, fixed images
9758  in LyX documents with the graphics feature, but there are several limitations
9759  attached to this approach:
9760 \end_layout
9761
9762 \begin_layout Itemize
9763 If you want to change the figure, you have to invoke an external program
9764  by hand
9765 \end_layout
9766
9767 \begin_layout Itemize
9768 LyX does not notice that the referenced files change, so the on-screen display
9769  can fast become obsolete, and this is aggravated by the lack of a means
9770  of updating the display
9771 \end_layout
9772
9773 \begin_layout Itemize
9774 The graphics stuff does not provide any mechanisms for coping with different
9775  exported formats such as DocBook, HTML or plain text
9776 \end_layout
9777
9778 \begin_layout Standard
9779 The external material facility attempts to solve all of these problems
9780 \begin_inset Foot
9781 status collapsed
9782
9783 \begin_layout Standard
9784 Even if the graphics facility can't solve all problems, it is still valuable
9785  because it does provide in-line preview of the graphics, and supports advanced
9786  geometric transformations with a comfortable user interface.
9787 \end_layout
9788
9789 \end_inset
9790
9791 .
9792  It does this by offering a general method to interface LyX to external
9793  applications.
9794  Instead of introducing a long list of different constructs tailored for
9795  each specific application, we chose to sacrifice the in-line displaying
9796  of the included material in order to provide a general construct to cover
9797  a wide range of applications.
9798  The result is the external material construct.
9799  External material presents itself in the document simply as a button, but
9800  don't let this fool you.
9801  When you click on it, a dialog will appear that allows you to chose exactly
9802  what material to include, and in the following sections you will learn
9803  that this is indeed a powerful mechanism that can solve all of the above
9804  problems, and more.
9805 \end_layout
9806
9807 \begin_layout Section
9808 How does it work?
9809 \end_layout
9810
9811 \begin_layout Standard
9812 The external material feature is based on the concept of a 
9813 \emph on
9814 template
9815 \emph default
9816 .
9817  A template is a specification of how LyX should interface with a certain
9818  kind of material.
9819  As bundled, LyX comes with predefined templates for Xfig figures, Dia diagrams,
9820  various raster format images, gnuplot, and more.
9821  You can check the actual list by using the menu 
9822 \family sans
9823 Insert\SpecialChar \menuseparator
9824 File\SpecialChar \menuseparator
9825 External
9826 \family default
9827 \InsetSpace ~
9828
9829 \family sans
9830 Material
9831 \family default
9832 .
9833  Furthermore, it is possible to roll your own template to support a specific
9834  kind of material.
9835  Later we'll describe in more detail what is involved, and hopefully you
9836  will submit all the templates you create so we can include them in a later
9837  LyX version.
9838 \end_layout
9839
9840 \begin_layout Standard
9841 Another basic idea of the external material feature is to distinguish between
9842  the original file that serves as a base for final material and the produced
9843  file that is included in your exported or printed document.
9844  For example, consider the case of a figure produced with 
9845 \family typewriter
9846 Xfig
9847 \family default
9848 .
9849  The Xfig application itself works on an original file with the 
9850 \family typewriter
9851 .fig
9852 \family default
9853  extension.
9854  Within XFig, you create and change your figure, and when you are done,
9855  you save the 
9856 \family typewriter
9857 fig
9858 \family default
9859 -file.
9860  When you want to include the figure in your document, you invoke 
9861 \family typewriter
9862 transfig
9863 \family default
9864  in order to create a PostScript file that can readily be included in your
9865  LaTeX file.
9866  In this case, the 
9867 \family typewriter
9868 .fig
9869 \family default
9870  file is the original file, and the PostScript file is the produced file.
9871 \end_layout
9872
9873 \begin_layout Standard
9874 This distinction is important in order to allow updating of the material
9875  while you are in the process of writing the document.
9876  Furthermore, it provides us with the flexibility that is needed to support
9877  multiple export formats.
9878  For instance, in the case of a plain text file, it is not exactly an award-winn
9879 ing idea to include the figure as raw PostScript.
9880  Instead, you'd either prefer to just include a reference to the figure,
9881  or try to invoke some graphics to Ascii converter to make the final result
9882  look similar to the real graphics.
9883  The external material management allows you to do this, because it is parameter
9884 ized on the different export formats that LyX supports.
9885 \end_layout
9886
9887 \begin_layout Standard
9888 Besides supporting the production of different products according to the
9889  exported format, it supports tight integration with editing and viewing
9890  applications.
9891  In the case of an XFig figure, you are able to invoke 
9892 \family typewriter
9893 Xfig
9894 \family default
9895  on the original file with a single click from within the external material
9896  dialog in LyX, and also preview the produced PostScript file with 
9897 \family typewriter
9898 ghostview
9899 \family default
9900  with another click.
9901  No more fiddling around with the command line and/or file browsers to locate
9902  and manipulate the original or produced files.
9903  In this way, you are finally able to take full advantage of the many different
9904  applications that are relevant to use when you write your documents, and
9905  ultimately be more productive.
9906 \end_layout
9907
9908 \begin_layout Section
9909 External material dialog
9910 \end_layout
9911
9912 \begin_layout Standard
9913 The 
9914 \family sans
9915 External Material
9916 \family default
9917  dialog is described in the 
9918 \family sans
9919 \emph on
9920 EmbeddedObjects
9921 \family default
9922 \emph default
9923  manual.
9924 \end_layout
9925
9926 \begin_layout Section
9927 Examples
9928 \end_layout
9929
9930 \begin_layout Standard
9931 In this section, we should include some examples of use of the external
9932  material.
9933  Those examples could include:
9934 \end_layout
9935
9936 \begin_layout Itemize
9937 External raster images
9938 \end_layout
9939
9940 \begin_layout Itemize
9941 External XFig figures
9942 \end_layout
9943
9944 \begin_layout Itemize
9945 Chess diagrams
9946 \end_layout
9947
9948 \begin_layout Itemize
9949 Sound samples
9950 \end_layout
9951
9952 \begin_layout Itemize
9953 The use of makefiles
9954 \end_layout
9955
9956 \begin_layout Itemize
9957 Recursive external LyX templates
9958 \end_layout
9959
9960 \begin_layout Section
9961 The external template configuration file
9962 \end_layout
9963
9964 \begin_layout Standard
9965 It is relatively easy to add custom external template definitions to LyX.
9966  However, be aware this doing this in an careless manner most probably 
9967 \emph on
9968 will
9969 \emph default
9970  introduce an easily exploitable security hole.
9971  So before you do this, please read the discussion about security which
9972  will follow later.
9973 \end_layout
9974
9975 \begin_layout Standard
9976 Having said that, we encourage you to submit any interesting templates that
9977  you create.
9978  
9979 \end_layout
9980
9981 \begin_layout Standard
9982 The external templates are defined in the 
9983 \family typewriter
9984 lib/external_templates
9985 \family default
9986  file.
9987  You can place your own version in 
9988 \family typewriter
9989 .lyx/external_templates
9990 \family default
9991 .
9992 \end_layout
9993
9994 \begin_layout Standard
9995 A typical template looks like this:
9996 \end_layout
9997
9998 \begin_layout LyX-Code
9999 Template XFig
10000 \end_layout
10001
10002 \begin_layout LyX-Code
10003 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
10004 \end_layout
10005
10006 \begin_layout LyX-Code
10007 HelpText
10008 \end_layout
10009
10010 \begin_layout LyX-Code
10011 An XFig figure.
10012 \end_layout
10013
10014 \begin_layout LyX-Code
10015 HelpTextEnd
10016 \end_layout
10017
10018 \begin_layout LyX-Code
10019 InputFormat fig
10020 \end_layout
10021
10022 \begin_layout LyX-Code
10023 FileFilter "*.fig"
10024 \end_layout
10025
10026 \begin_layout LyX-Code
10027 AutomaticProduction true
10028 \end_layout
10029
10030 \begin_layout LyX-Code
10031 Transform Rotate
10032 \end_layout
10033
10034 \begin_layout LyX-Code
10035 Transform Resize
10036 \end_layout
10037
10038 \begin_layout LyX-Code
10039 Format LaTeX
10040 \end_layout
10041
10042 \begin_layout LyX-Code
10043 TransformCommand Rotate RotationLatexCommand
10044 \end_layout
10045
10046 \begin_layout LyX-Code
10047 TransformCommand Resize ResizeLatexCommand
10048 \end_layout
10049
10050 \begin_layout LyX-Code
10051 Product "$$RotateFront$$ResizeFront
10052 \end_layout
10053
10054 \begin_layout LyX-Code
10055          
10056 \backslash
10057
10058 \backslash
10059 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
10060 \end_layout
10061
10062 \begin_layout LyX-Code
10063          $$ResizeBack$$RotateBack"
10064 \end_layout
10065
10066 \begin_layout LyX-Code
10067 UpdateFormat pstex
10068 \end_layout
10069
10070 \begin_layout LyX-Code
10071 UpdateResult "$$AbsPath$$Basename.pstex_t"
10072 \end_layout
10073
10074 \begin_layout LyX-Code
10075 Requirement "graphicx"
10076 \end_layout
10077
10078 \begin_layout LyX-Code
10079 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
10080 \end_layout
10081
10082 \begin_layout LyX-Code
10083 ReferencedFile latex "$$AbsPath$$Basename.eps"
10084 \end_layout
10085
10086 \begin_layout LyX-Code
10087 ReferencedFile dvi "$$AbsPath$$Basename.eps"
10088 \end_layout
10089
10090 \begin_layout LyX-Code
10091 FormatEnd
10092 \end_layout
10093
10094 \begin_layout LyX-Code
10095 Format PDFLaTeX
10096 \end_layout
10097
10098 \begin_layout LyX-Code
10099 TransformCommand Rotate RotationLatexCommand
10100 \end_layout
10101
10102 \begin_layout LyX-Code
10103 TransformCommand Resize ResizeLatexCommand
10104 \end_layout
10105
10106 \begin_layout LyX-Code
10107 Product "$$RotateFront$$ResizeFront
10108 \end_layout
10109
10110 \begin_layout LyX-Code
10111          
10112 \backslash
10113
10114 \backslash
10115 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
10116 \end_layout
10117
10118 \begin_layout LyX-Code
10119          $$ResizeBack$$RotateBack"
10120 \end_layout
10121
10122 \begin_layout LyX-Code
10123 UpdateFormat pdftex
10124 \end_layout
10125
10126 \begin_layout LyX-Code
10127 UpdateResult "$$AbsPath$$Basename.pdftex_t"
10128 \end_layout
10129
10130 \begin_layout LyX-Code
10131 Requirement "graphicx"
10132 \end_layout
10133
10134 \begin_layout LyX-Code
10135 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
10136 \end_layout
10137
10138 \begin_layout LyX-Code
10139 ReferencedFile latex "$$AbsPath$$Basename.pdf"
10140 \end_layout
10141
10142 \begin_layout LyX-Code
10143 FormatEnd
10144 \end_layout
10145
10146 \begin_layout LyX-Code
10147 Format Ascii
10148 \end_layout
10149
10150 \begin_layout LyX-Code
10151 Product "$$Contents(
10152 \backslash
10153 "$$AbsPath$$Basename.asc
10154 \backslash
10155 ")"
10156 \end_layout
10157
10158 \begin_layout LyX-Code
10159 UpdateFormat asciixfig
10160 \end_layout
10161
10162 \begin_layout LyX-Code
10163 UpdateResult "$$AbsPath$$Basename.asc"
10164 \end_layout
10165
10166 \begin_layout LyX-Code
10167 FormatEnd
10168 \end_layout
10169
10170 \begin_layout LyX-Code
10171 Format DocBook
10172 \end_layout
10173
10174 \begin_layout LyX-Code
10175 Product "<graphic fileref=
10176 \backslash
10177 "$$AbsOrRelPathMaster$$Basename.eps
10178 \backslash
10179 ">
10180 \end_layout
10181
10182 \begin_layout LyX-Code
10183          </graphic>"
10184 \end_layout
10185
10186 \begin_layout LyX-Code
10187 UpdateFormat eps
10188 \end_layout
10189
10190 \begin_layout LyX-Code
10191 UpdateResult "$$AbsPath$$Basename.eps"
10192 \end_layout
10193
10194 \begin_layout LyX-Code
10195 ReferencedFile docbook "$$AbsPath$$Basename.eps"
10196 \end_layout
10197
10198 \begin_layout LyX-Code
10199 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
10200 \end_layout
10201
10202 \begin_layout LyX-Code
10203 FormatEnd
10204 \end_layout
10205
10206 \begin_layout LyX-Code
10207 Product "[XFig: $$FName]"
10208 \end_layout
10209
10210 \begin_layout LyX-Code
10211 FormatEnd
10212 \end_layout
10213
10214 \begin_layout LyX-Code
10215 TemplateEnd
10216 \end_layout
10217
10218 \begin_layout Standard
10219 As you can see, the template is enclosed in 
10220 \family typewriter
10221 Template
10222 \family default
10223  \SpecialChar \ldots{}
10224  
10225 \family typewriter
10226 TemplateEnd
10227 \family default
10228 .
10229  It contains a header specifying some general settings, and for each supported
10230  primary document file format a section 
10231 \family typewriter
10232 Format
10233 \family default
10234  \SpecialChar \ldots{}
10235  
10236 \family typewriter
10237 FormatEnd
10238 \family default
10239 .
10240 \end_layout
10241
10242 \begin_layout Subsection
10243 The template header
10244 \end_layout
10245
10246 \begin_layout Description
10247
10248 \family typewriter
10249 \series medium
10250 Template\InsetSpace ~
10251 <id>
10252 \family default
10253 \series default
10254  A unique name for the template.
10255  It must not contain substitution macros (see below).
10256 \end_layout
10257
10258 \begin_layout Description
10259
10260 \family typewriter
10261 \series medium
10262 GuiName\InsetSpace ~
10263 <guiname>
10264 \family default
10265 \series default
10266  The text that is displayed on the button.
10267  This command must occur exactly once.
10268 \end_layout
10269
10270 \begin_layout Description
10271
10272 \family typewriter
10273 \series medium
10274 HelpText\InsetSpace ~
10275 <text>\InsetSpace ~
10276 HelpTextEnd
10277 \family default
10278 \series default
10279  The help text that is used in the External dialog.
10280  Provide enough information to explain to the user just what the template
10281  can provide him with.
10282  This command must occur exactly once.
10283 \end_layout
10284
10285 \begin_layout Description
10286
10287 \family typewriter
10288 \series medium
10289 InputFormat\InsetSpace ~
10290 <format>
10291 \family default
10292 \series default
10293  The file format of the original file.
10294  This must be the name of a format that is known to LyX (see the 
10295 \family sans
10296 \bar under
10297 T
10298 \bar default
10299 ools\SpecialChar \menuseparator
10300
10301 \bar under
10302 P
10303 \bar default
10304 references:Conversion
10305 \family default
10306  dialog).
10307  Use 
10308 \family typewriter
10309 "*"
10310 \family default
10311  if the template can handle original files of more than one format.
10312  LyX will attempt to interrogate the file itself in order to deduce its
10313  format in this case.
10314  This command must occur exactly once.
10315 \end_layout
10316
10317 \begin_layout Description
10318
10319 \family typewriter
10320 \series medium
10321 FileFilter\InsetSpace ~
10322 <pattern>
10323 \family default
10324 \series default
10325  A glob pattern that is used in the file dialog to filter out the desired
10326  files.
10327  If there is more than one possible file extension (e.g.\InsetSpace ~
10328 tgif has 
10329 \family typewriter
10330 .obj
10331 \family default
10332  and 
10333 \family typewriter
10334 .tgo
10335 \family default
10336 ), use something like 
10337 \family typewriter
10338 "*.{obj,tgo}"
10339 \family default
10340 .
10341  This command must occur exactly once.
10342 \end_layout
10343
10344 \begin_layout Description
10345
10346 \family typewriter
10347 \series medium
10348 AutomaticProduction\InsetSpace ~
10349 true|false
10350 \family default
10351 \series default
10352  Wether the file represented by the template must be generated by LyX.
10353  This command must occur exactly once.
10354 \end_layout
10355
10356 \begin_layout Description
10357
10358 \family typewriter
10359 \series medium
10360 Transform\InsetSpace ~
10361 Rotate|Resize|Clip|Extra
10362 \family default
10363 \series default
10364  This command specifies which transformations are supported by this template.
10365  It may occur zero or more times.
10366  This command enables the corresponding tabs in the external dialog.
10367  Each 
10368 \family typewriter
10369 Transform
10370 \family default
10371  command must have either a corresponding 
10372 \family typewriter
10373 TransformCommand
10374 \family default
10375  or a 
10376 \family typewriter
10377 TransformOption
10378 \family default
10379  command in the 
10380 \family typewriter
10381 Format
10382 \family default
10383  section.
10384  Otherwise the transformation will not be supported by that format.
10385 \end_layout
10386
10387 \begin_layout Subsection
10388 The Format section
10389 \end_layout
10390
10391 \begin_layout Description
10392
10393 \family typewriter
10394 \series medium
10395 Format\InsetSpace ~
10396 LaTeX|PDFLaTeX|PlainText|DocBook
10397 \family default
10398 \series default
10399  The primary document file format that this format definition is for.
10400  Not every template has a sensible representation in all document file formats.
10401  Please define nevertheless a 
10402 \family typewriter
10403 Format
10404 \family default
10405  section for all formats.
10406  Use a dummy text when no representation is available.
10407  Then you can at least see a reference to the external material in the exported
10408  document.
10409 \end_layout
10410
10411 \begin_layout Description
10412
10413 \family typewriter
10414 \series medium
10415 TransformCommand\InsetSpace ~
10416 Rotate\InsetSpace ~
10417 RotationLatexCommand
10418 \family default
10419 \series default
10420  This command specifies that the built in LaTeX command should be used for
10421  rotation.
10422  This command may occur once or not at all.
10423 \end_layout
10424
10425 \begin_layout Description
10426
10427 \family typewriter
10428 \series medium
10429 TransformCommand\InsetSpace ~
10430 Resize\InsetSpace ~
10431 ResizeLatexCommand
10432 \family default
10433 \series default
10434  This command specifies that the built in LaTeX command should be used for
10435  resizing.
10436  This command may occur once or not at all.
10437 \end_layout
10438
10439 \begin_layout Description
10440
10441 \family typewriter
10442 \series medium
10443 TransformOption\InsetSpace ~
10444 Rotate\InsetSpace ~
10445 RotationLatexOption
10446 \family default
10447 \series default
10448  This command specifies that rotation is done via an optional argument.
10449  This command may occur once or not at all.
10450 \end_layout
10451
10452 \begin_layout Description
10453
10454 \family typewriter
10455 \series medium
10456 TransformOption\InsetSpace ~
10457 Resize\InsetSpace ~
10458 ResizeLatexOption
10459 \family default
10460 \series default
10461  This command specifies that resizing is done via an optional argument.
10462  This command may occur once or not at all.
10463 \end_layout
10464
10465 \begin_layout Description
10466
10467 \family typewriter
10468 \series medium
10469 TransformOption\InsetSpace ~
10470 Clip\InsetSpace ~
10471 ClipLatexOption
10472 \family default
10473 \series default
10474  This command specifies that clipping is done via an optional argument.
10475  This command may occur once or not at all.
10476 \end_layout
10477
10478 \begin_layout Description
10479
10480 \family typewriter
10481 \series medium
10482 TransformOption\InsetSpace ~
10483 Extra\InsetSpace ~
10484 ExtraLatexOption
10485 \family default
10486 \series default
10487  This command specifies that an extra optional argument is used.
10488  This command may occur once or not at all.
10489 \end_layout
10490
10491 \begin_layout Description
10492
10493 \family typewriter
10494 \series medium
10495 Product\InsetSpace ~
10496 <text>
10497 \family default
10498 \series default
10499  The text that is inserted in the exported document.
10500  This is actually the most important command and can be quite complex.
10501  This command must occur exactly once.
10502 \end_layout
10503
10504 \begin_layout Description
10505
10506 \family typewriter
10507 \series medium
10508 UpdateFormat\InsetSpace ~
10509 <format>
10510 \family default
10511 \series default
10512  The file format of the converted file.
10513  This must be the name of a format that is known to LyX (see the 
10514 \family sans
10515 \bar under
10516 T
10517 \bar default
10518 ools\SpecialChar \menuseparator
10519
10520 \bar under
10521 P
10522 \bar default
10523 references:Conversion
10524 \family default
10525  dialog).
10526  This command must occur exactly once.
10527 \end_layout
10528
10529 \begin_layout Description
10530
10531 \family typewriter
10532 \series medium
10533 UpdateResult\InsetSpace ~
10534 <filename>
10535 \family default
10536 \series default
10537  The file name of the converted file.
10538  The file name must be absolute.
10539  This command must occur exactly once.
10540 \end_layout
10541
10542 \begin_layout Description
10543
10544 \family typewriter
10545 \series medium
10546 ReferencedFile\InsetSpace ~
10547 <format>\InsetSpace ~
10548 <filename>
10549 \family default
10550 \series default
10551  This command denotes files that are created by the conversion process and
10552  are needed for a particular export format.
10553  If the filename is relative, it is interpreted relative to the master document.
10554  This command may be given zero or more times.
10555 \end_layout
10556
10557 \begin_layout Description
10558
10559 \family typewriter
10560 \series medium
10561 Requirement\InsetSpace ~
10562 <package>
10563 \family default
10564 \series default
10565  The name of a required LaTeX package.
10566  The package is included via 
10567 \family typewriter
10568
10569 \backslash
10570 usepackage{}
10571 \family default
10572  in the LaTeX preamble.
10573  This command may occur zero or more times.
10574 \end_layout
10575
10576 \begin_layout Description
10577
10578 \family typewriter
10579 \series medium
10580 Preamble\InsetSpace ~
10581 <name>
10582 \family default
10583 \series default
10584  This command specifies a preamble snippet that will be included in the
10585  LaTeX preamble.
10586  It has to be defined using 
10587 \family typewriter
10588 PreambleDef
10589 \family default
10590  \SpecialChar \ldots{}
10591  
10592 \family typewriter
10593 PreambleDefEnd
10594 \family default
10595 .
10596  This command may occur zero or more times.
10597 \end_layout
10598
10599 \begin_layout Description
10600
10601 \family typewriter
10602 \series medium
10603 Option\InsetSpace ~
10604 <name>\InsetSpace ~
10605 <value>
10606 \family default
10607 \series default
10608  This command defines an additional macro 
10609 \family typewriter
10610 $$<name>
10611 \family default
10612  for substitution in 
10613 \family typewriter
10614 Product
10615 \family default
10616 .
10617  
10618 \family typewriter
10619 <value>
10620 \family default
10621  itself may contain substitution macros.
10622  The advantage over using 
10623 \family typewriter
10624 <value>
10625 \family default
10626  directly in 
10627 \family typewriter
10628 Product
10629 \family default
10630  is that the substituted value of 
10631 \family typewriter
10632 $$<name>
10633 \family default
10634  is sanitized so that it is a valid optional argument in the document format.
10635  This command may occur zero or more times.
10636 \end_layout
10637
10638 \begin_layout Subsection
10639 Preamble definitions
10640 \end_layout
10641
10642 \begin_layout Standard
10643 The external template configuration file may contain additional preamble
10644  definitions enclosed by 
10645 \family typewriter
10646 PreambleDef
10647 \family default
10648  \SpecialChar \ldots{}
10649  
10650 \family typewriter
10651 PreambleDefEnd
10652 \family default
10653 .
10654  They can be used by the templates in the 
10655 \family typewriter
10656 Format
10657 \family default
10658  section.
10659 \end_layout
10660
10661 \begin_layout Section
10662 The substitution mechanism
10663 \end_layout
10664
10665 \begin_layout Standard
10666 When the external material facility invokes an external program, it is done
10667  on the basis of a command defined in the template configuration file.
10668  These commands can contain various macros that are expanded before execution.
10669  Execution always take place in the directory of the containing document.
10670 \end_layout
10671
10672 \begin_layout Standard
10673 Also, whenever external material is to be displayed, the name will be produced
10674  by the substitution mechanism, and most other commands in the template
10675  definition support substitution as well.
10676 \end_layout
10677
10678 \begin_layout Standard
10679 The available macros are the following:
10680 \end_layout
10681
10682 \begin_layout Description
10683 $$FName The filename of the file specified in the external material dialog.
10684  This is either an absolute name, or it is relative to the LyX document.
10685 \end_layout
10686
10687 \begin_layout Description
10688 $$Basename The filename without path and without the extension.
10689 \end_layout
10690
10691 \begin_layout Description
10692 $$Extension The file extension (including the dot).
10693 \end_layout
10694
10695 \begin_layout Description
10696 $$FPath The path part of 
10697 \family typewriter
10698 $$FName
10699 \family default
10700  (absolute name or relative to the LyX document).
10701 \end_layout
10702
10703 \begin_layout Description
10704 $$AbsPath The absolute file path.
10705 \end_layout
10706
10707 \begin_layout Description
10708 $$RelPathMaster The file path, relative to the master LyX document.
10709 \end_layout
10710
10711 \begin_layout Description
10712 $$RelPathParent The file path, relative to the LyX document.
10713 \end_layout
10714
10715 \begin_layout Description
10716 $$AbsOrRelPathMaster The file path, absolute or relative to the master LyX
10717  document.
10718 \end_layout
10719
10720 \begin_layout Description
10721 $$AbsOrRelPathParent The file path, absolute or relative to the LyX document.
10722 \end_layout
10723
10724 \begin_layout Description
10725 $$Tempname A name and full path to a temporary file which will be automatically
10726  deleted whenever the containing document is closed, or the external material
10727  insertion deleted.
10728 \end_layout
10729
10730 \begin_layout Description
10731 $$Contents(
10732 \begin_inset Quotes eld
10733 \end_inset
10734
10735 filename.ext
10736 \begin_inset Quotes erd
10737 \end_inset
10738
10739 ) This macro will expand to the contents of the file with the name 
10740 \family typewriter
10741 filename.ext
10742 \family default
10743 .
10744 \end_layout
10745
10746 \begin_layout Description
10747 $$Sysdir This macro will expand to the absolute path of the system directory.
10748  This is typically used to point to the various helper scripts that are
10749  bundled with LyX.
10750 \end_layout
10751
10752 \begin_layout Standard
10753 All path macros contain a trailing directory separator, so you can construct
10754  e.g.
10755  the absolute filename with 
10756 \family typewriter
10757 $$AbsPath$$Basename$$Extension
10758 \family default
10759 .
10760 \end_layout
10761
10762 \begin_layout Standard
10763 The macros above are substituted in all commands unless otherwise noted.
10764  The command 
10765 \family typewriter
10766 Product
10767 \family default
10768  supports additionally the following substitutions if they are enabled by
10769  the 
10770 \family typewriter
10771 Transform
10772 \family default
10773  and 
10774 \family typewriter
10775 TransformCommand
10776 \family default
10777  commands:
10778 \end_layout
10779
10780 \begin_layout Description
10781 $$ResizeFront The front part of the resize command.
10782 \end_layout
10783
10784 \begin_layout Description
10785 $$ResizeBack The back part of the resize command.
10786 \end_layout
10787
10788 \begin_layout Description
10789 $$RotateFront The front part of the rotation command.
10790 \end_layout
10791
10792 \begin_layout Description
10793 $$RotateBack The back part of the rotation command.
10794 \end_layout
10795
10796 \begin_layout Standard
10797 The value string of the 
10798 \family typewriter
10799 Option
10800 \family default
10801  command supports additionally the following substitutions if they are enabled
10802  by the 
10803 \family typewriter
10804 Transform
10805 \family default
10806  and 
10807 \family typewriter
10808 TransformOption
10809 \family default
10810  commands:
10811 \end_layout
10812
10813 \begin_layout Description
10814 $$Clip The clip option.
10815 \end_layout
10816
10817 \begin_layout Description
10818 $$Extra The extra option.
10819 \end_layout
10820
10821 \begin_layout Description
10822 $$Resize The resize option.
10823 \end_layout
10824
10825 \begin_layout Description
10826 $$Rotate The rotation option.
10827 \end_layout
10828
10829 \begin_layout Standard
10830 You may ask why there are so many path macros.
10831  There are mainly two reasons:
10832 \end_layout
10833
10834 \begin_layout Standard
10835 First, relative and absolute file names should remain relative or absolute,
10836  respectively.
10837  Users may have reasons to prefer either form.
10838  Relative names are useful for portable documents that should work on different
10839  machines, for example.
10840  Absolute names may be required by some programs.
10841 \end_layout
10842
10843 \begin_layout Standard
10844 Second, LaTeX treats relative file names differently than LyX and other
10845  programs in nested included files.
10846  For LyX, a relative file name is always relative to the document that contains
10847  the file name.
10848  For LaTeX, it is always relative to the master document.
10849  These two definitions are identical if you have only one document, but
10850  differ if you have a master document that includes part documents.
10851  That means that relative filenames must be transformed when presented to
10852  LaTeX.
10853  Fortunately LyX does this automatically for you if you choose the right
10854  macros.
10855 \end_layout
10856
10857 \begin_layout Standard
10858 So which path macro should be used in new template definitions? The rule
10859  is not difficult:
10860 \end_layout
10861
10862 \begin_layout Itemize
10863 Use 
10864 \family typewriter
10865 $$AbsPath
10866 \family default
10867  if an absolute path is required.
10868 \end_layout
10869
10870 \begin_layout Itemize
10871 Use 
10872 \family typewriter
10873 $$AbsOrRelPathMaster
10874 \family default
10875  if the substituted string is some kind of LaTeX input.
10876 \end_layout
10877
10878 \begin_layout Itemize
10879 Else use 
10880 \family typewriter
10881 $$AbsOrRelPathParent
10882 \family default
10883  in order to preserve the user's choice.
10884 \end_layout
10885
10886 \begin_layout Standard
10887 There are special cases where this rule does not work and e.g.\InsetSpace ~
10888 relative names
10889  are needed, but normally it will work just fine.
10890  One example for such a case is the command 
10891 \family typewriter
10892 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
10893 \family default
10894  in the XFig template above: We can't use the absolute name because the
10895  copier for 
10896 \family typewriter
10897 .pstex_t
10898 \family default
10899  files needs the relative name in order to rewrite the file content.
10900 \end_layout
10901
10902 \begin_layout Section
10903 Security discussion
10904 \end_layout
10905
10906 \begin_layout Standard
10907 \begin_inset Note Note
10908 status collapsed
10909
10910 \begin_layout Standard
10911 This section is outdated
10912 \end_layout
10913
10914 \end_inset
10915
10916 The external material feature interfaces with a lot of external programs
10917  and does so automatically, so we have to consider the security implications
10918  of this.
10919  In particular, since you have the option of including your own filenames
10920  and/or parameter strings and those are expanded into a command, it seems
10921  that it would be possible to create a malicious document which executes
10922  arbitrary commands when a user views or prints the document.
10923  This is something we definately want to avoid.
10924 \end_layout
10925
10926 \begin_layout Standard
10927 However, since the external program commands are specified in the template
10928  configuration file only, there are no security issues if LyX is properly
10929  configured with safe templates only.
10930  This is so because the external programs are invoked with the 
10931 \family typewriter
10932 execvp
10933 \family default
10934 -system call rather than the 
10935 \family typewriter
10936 system
10937 \family default
10938  system-call, so it's not possible to execute arbitrary commands from the
10939  filename or parameter section via the shell.
10940 \end_layout
10941
10942 \begin_layout Standard
10943 This also implies that you are restricted in what command strings you can
10944  use in the external material templates.
10945  In particular, pipes and redirection are not readily available.
10946  This has to be so if LyX should remain safe.
10947  If you want to use some of the shell features, you should write a safe
10948  script to do this in a controlled manner, and then invoke the script from
10949  the command string.
10950  In the 
10951 \family typewriter
10952 lib/scripts
10953 \family default
10954  directory of the LyX installation, you can find a safe wrapper script 
10955 \family typewriter
10956 general_command_wrapper.py
10957 \family default
10958  that supports redirection of input and output.
10959  That can serve as an example for how to write safe template scripts.
10960  For a more advanced example that uses 
10961 \family typewriter
10962 fork
10963 \family default
10964  and friends, take a look at the 
10965 \family typewriter
10966 pic2ascii.py
10967 \family default
10968  converter script.
10969 \end_layout
10970
10971 \begin_layout Standard
10972 It is possible to design a template that interacts directly with the shell,
10973  but since this would allow a malicious user to execute arbitrary commands
10974  by writing clever filenames and/or parameters, we generally recommend that
10975  you only use safe scripts that work with the 
10976 \family typewriter
10977 execvp
10978 \family default
10979  system call in a controlled manner.
10980  Of course, for use in a controlled environment, it can be tempting to just
10981  fall back to use ordinary shell scripts.
10982  If you do so, be aware that you 
10983 \emph on
10984 will
10985 \emph default
10986  provide an easily exploitable security hole in your system.
10987  Of course it stands to reason that such unsafe templates will never be
10988  included in the standard LyX distribution, although we do encourage people
10989  to submit new templates in the open source tradition.
10990  But LyX as shipped from the official distribution channels will never have
10991  unsafe templates.
10992 \end_layout
10993
10994 \begin_layout Standard
10995 Including external material provides a lot of power, and you have to be
10996  careful not to introduce security hazards with this power.
10997  A subtle error in a single line in an innocent looking script can open
10998  the door to huge security problems.
10999  So if you do not fully understand the issues, we recommend that you consult
11000  a knowledgable security professional or the LyX development team if you
11001  have any questions about whether a given template is safe or not.
11002  And do this before you use it in an uncontrolled environment.
11003 \end_layout
11004
11005 \begin_layout Chapter
11006 The LyX Server
11007 \end_layout
11008
11009 \begin_layout Section
11010 Introduction
11011 \end_layout
11012
11013 \begin_layout Standard
11014 The LyX server is a method implemented in LyX that will enable other programs
11015  to talk to LyX, invoke LyX commands, and retrieve information about the
11016  LyX internal state.
11017  This is only intended for advanced users, but they should find it useful.
11018 \end_layout
11019
11020 \begin_layout Section
11021 Starting the LyX Server
11022 \end_layout
11023
11024 \begin_layout Standard
11025 The LyX server works through the use of a pair of named pipes.
11026  These are usually located in your home directory and have the names 
11027 \begin_inset Quotes eld
11028 \end_inset
11029
11030
11031 \family typewriter
11032 .lyxpipe.in
11033 \family default
11034
11035 \begin_inset Quotes erd
11036 \end_inset
11037
11038  and 
11039 \begin_inset Quotes eld
11040 \end_inset
11041
11042
11043 \family typewriter
11044 .lyxpipe.out
11045 \family default
11046
11047 \begin_inset Quotes erd
11048 \end_inset
11049
11050 .
11051  External programs write into 
11052 \family typewriter
11053 .lyxpipe.in
11054 \family default
11055  and read back data from 
11056 \family typewriter
11057 .lyxpipe.out
11058 \family default
11059 .
11060  The stem of the pipe names can be defined in the 
11061 \family sans
11062 \bar under
11063 T
11064 \bar default
11065 ools\SpecialChar \menuseparator
11066
11067 \bar under
11068 P
11069 \bar default
11070 references
11071 \family default
11072  dialog, for example 
11073 \family typewriter
11074 "/home/myhome/.lyxpipe"
11075 \family default
11076 .
11077 \end_layout
11078
11079 \begin_layout Standard
11080 LyX will add the '
11081 \family typewriter
11082 .in
11083 \family default
11084 ' and '
11085 \family typewriter
11086 .out
11087 \family default
11088 ' to create the pipes.
11089  The above setting also has the effect of activating the LyX server.
11090  If one of the pipes already exists, LyX will assume that another LyX process
11091  is already running and will not start the server.
11092  To have several LyX processes with servers at the same time, you have to
11093  change the configuration between the start of the programs.
11094 \end_layout
11095
11096 \begin_layout Standard
11097 If you are developing a client program, you might find it useful to enable
11098  debugging information from the LyX server.
11099  Do this by starting LyX as 
11100 \family typewriter
11101 lyx -dbg lyxserver.
11102 \end_layout
11103
11104 \begin_layout Standard
11105 Warning: if LyX crashes, it may not manage to remove the pipes; in this
11106  case you must remove them manually.
11107  If LyX starts and the pipes exist already, it will not start any server.
11108 \end_layout
11109
11110 \begin_layout Standard
11111 Other than this, there are a few points to consider:
11112 \end_layout
11113
11114 \begin_layout Itemize
11115 Both server and clients must run on UNIX or OS/2 machines.
11116  Communications between LyX on UNIX and clients on OS/2 or vice versa is
11117  not possible right now.
11118 \end_layout
11119
11120 \begin_layout Itemize
11121 On OS/2, only one client can connect to LyXServer at a time.
11122 \end_layout
11123
11124 \begin_layout Itemize
11125 On OS/2, clients must open inpipe with 
11126 \family typewriter
11127 O_WRONLY
11128 \family default
11129  mode.
11130 \end_layout
11131
11132 \begin_layout Standard
11133 You can find a complete example client written in C in the source distribution
11134  as 
11135 \family typewriter
11136 development/server_monitor.c
11137 \family default
11138 .
11139 \end_layout
11140
11141 \begin_layout Section
11142 Normal communication
11143 \end_layout
11144
11145 \begin_layout Standard
11146 To issue a LyX call, the client writes a line of ASCII text into the input
11147  pipe.
11148  This line has the following format:
11149 \end_layout
11150
11151 \begin_layout Quote
11152 LYXCMD:
11153 \emph on
11154 clientname
11155 \emph default
11156 :
11157 \emph on
11158 function
11159 \emph default
11160 :
11161 \emph on
11162 argument
11163 \end_layout
11164
11165 \begin_layout Standard
11166 Here 
11167 \emph on
11168 clientname
11169 \emph default
11170  is a name that the client can choose arbitrarily.
11171  Its only use is that LyX will echo it if it sends an answer - so a client
11172  can dispatch results from different requesters.
11173 \end_layout
11174
11175 \begin_layout Standard
11176
11177 \emph on
11178 function
11179 \emph default
11180  is the function you want LyX to perform.
11181  It is the same as the commands you'd use in the minibuffer.
11182 \end_layout
11183
11184 \begin_layout Standard
11185
11186 \emph on
11187 argument
11188 \emph default
11189  is an optional argument which is meaningful only to some functions (for
11190  instance 
11191 \begin_inset Quotes eld
11192 \end_inset
11193
11194 self-insert
11195 \begin_inset Quotes erd
11196 \end_inset
11197
11198  which will insert the argument as text at the cursor position.)
11199 \end_layout
11200
11201 \begin_layout Standard
11202 The answer from LyX will arrive in the output pipe and be of the form
11203 \end_layout
11204
11205 \begin_layout Quote
11206 INFO:
11207 \emph on
11208 clientname
11209 \emph default
11210 :
11211 \emph on
11212 function
11213 \emph default
11214 :
11215 \emph on
11216 data
11217 \end_layout
11218
11219 \begin_layout Standard
11220 where 
11221 \emph on
11222 clientname
11223 \emph default
11224  and 
11225 \emph on
11226 function
11227 \emph default
11228  are just echoed from the command request, while 
11229 \emph on
11230 data
11231 \emph default
11232  is more or less useful information filled according to how the command
11233  execution worked out.
11234  Some commands will return information about the internal state of LyX,
11235  such as 
11236 \begin_inset Quotes eld
11237 \end_inset
11238
11239 font-state
11240 \begin_inset Quotes erd
11241 \end_inset
11242
11243 , while other will return an empty data-response.
11244  This means that the command execution went fine.
11245 \end_layout
11246
11247 \begin_layout Standard
11248 In case of errors, the response from LyX will have this form
11249 \end_layout
11250
11251 \begin_layout Quote
11252 ERROR:
11253 \emph on
11254 clientname
11255 \emph default
11256 :
11257 \emph on
11258 function
11259 \emph default
11260 :
11261 \emph on
11262 error message
11263 \end_layout
11264
11265 \begin_layout Standard
11266 where the 
11267 \emph on
11268 error message
11269 \emph default
11270  should contain an explanation of why the command failed.
11271 \end_layout
11272
11273 \begin_layout Standard
11274 Examples:
11275 \end_layout
11276
11277 \begin_layout LyX-Code
11278 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
11279 \end_layout
11280
11281 \begin_layout LyX-Code
11282 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
11283 \newline
11284 read a <~/.lyxpipe.out
11285 \newline
11286 echo $a
11287 \end_layout
11288
11289 \begin_layout Section
11290 Notification
11291 \end_layout
11292
11293 \begin_layout Standard
11294 LyX can notify clients of events going on asynchronously.
11295  Currently it will only do this if the user binds a key sequence with the
11296  function 
11297 \begin_inset Quotes eld
11298 \end_inset
11299
11300 notify
11301 \begin_inset Quotes erd
11302 \end_inset
11303
11304 .
11305  The format of the string LyX sends is as follows:
11306 \end_layout
11307
11308 \begin_layout Quote
11309
11310 \family typewriter
11311 NOTIFY:
11312 \family default
11313 \emph on
11314 key-sequence
11315 \end_layout
11316
11317 \begin_layout Standard
11318 where 
11319 \emph on
11320 key-sequence
11321 \emph default
11322  is the printed representation of the key sequence that was actually typed
11323  by the user.
11324 \end_layout
11325
11326 \begin_layout Standard
11327 This mechanism can be used to extend LyX's command set and implement macros:
11328  bind some key sequence to 
11329 \begin_inset Quotes eld
11330 \end_inset
11331
11332 notify
11333 \begin_inset Quotes erd
11334 \end_inset
11335
11336 , start a client that listens on the out pipe, dispatches the command according
11337  to the sequence and starts a function that may use LyX calls and LyX requests
11338  to issue a command or a series of commands to LyX.
11339 \end_layout
11340
11341 \begin_layout Section
11342 The simple LyX Server Protocol
11343 \end_layout
11344
11345 \begin_layout Standard
11346 LyX implements a simple protocol that can be used for session management.
11347  All messages are of the form
11348 \end_layout
11349
11350 \begin_layout Quote
11351 LYXSRV:
11352 \emph on
11353 clientname
11354 \emph default
11355 :
11356 \emph on
11357 protocol message
11358 \end_layout
11359
11360 \begin_layout Standard
11361 where 
11362 \emph on
11363 protocol message
11364 \emph default
11365  can be 
11366 \begin_inset Quotes eld
11367 \end_inset
11368
11369 hello
11370 \begin_inset Quotes erd
11371 \end_inset
11372
11373  or 
11374 \begin_inset Quotes eld
11375 \end_inset
11376
11377 bye
11378 \begin_inset Quotes erd
11379 \end_inset
11380
11381 .
11382  If 
11383 \begin_inset Quotes eld
11384 \end_inset
11385
11386 hello
11387 \begin_inset Quotes erd
11388 \end_inset
11389
11390  is received from a client, LyX will report back to inform the client that
11391  it's listening to it's messages, while 
11392 \begin_inset Quotes eld
11393 \end_inset
11394
11395 bye
11396 \begin_inset Quotes erd
11397 \end_inset
11398
11399  sent from LyX will inform clients that LyX is closing.
11400 \end_layout
11401
11402 \begin_layout Chapter
11403 \start_of_appendix
11404 Bindings
11405 \end_layout
11406
11407 \begin_layout Standard
11408 This appendix is a huge cross-reference to all the English language keybindings.
11409  Originally, we simply wanted to list all of the key bindings followed by
11410  the function it's bound to.
11411  That way, a user can look up a key to find out what it does.
11412  We then decided, what the hey, why not include the default toolbar and
11413  menu bindings, too.
11414  Please note this section is likely to be very out of date.
11415 \end_layout
11416
11417 \begin_layout Standard
11418 The form is really self-explanatory, but here are a few tips: all entries
11419  are arranged roughly alphabetically for a given modifier (
11420 \family sans
11421 C-a
11422 \family default
11423
11424 \family sans
11425 C-b
11426 \family default
11427 , etc.).
11428  For the general keyboard layout, simpler prefixes precede the more complex
11429  (
11430 \family sans
11431 C-s
11432 \family default
11433  before 
11434 \family sans
11435 C-S-c
11436 \family default
11437 ).
11438  All entries were gleaned from the default user interface and binding files
11439  located in the directories 
11440 \family typewriter
11441 \SpecialChar \ldots{}
11442 /share/lyx/ui
11443 \family default
11444  and 
11445 \family typewriter
11446 \SpecialChar \ldots{}
11447 /share/lyx/bind
11448 \family default
11449 ; they should be treated as the final word on the bindings.
11450 \end_layout
11451
11452 \begin_layout Standard
11453 As a final note, be aware that some window managers (such as FVWM) take
11454  control of some of the function keys or motion keys.
11455  
11456 \family sans
11457 C-right
11458 \family default
11459  is listed here as generating 
11460 \family typewriter
11461 word-forward
11462 \family default
11463 , but FVWM grabs it and uses it to change virtual desktops instead.
11464  Very annoying unless you instruct your window manager to stop intercepting
11465  such sequences.
11466 \end_layout
11467
11468 \begin_layout Section
11469 Toolbar
11470 \end_layout
11471
11472 \begin_layout LyX-Code
11473 Toolbar
11474 \end_layout
11475
11476 \begin_layout LyX-Code
11477     Layouts
11478 \end_layout
11479
11480 \begin_layout LyX-Code
11481     Icon "buffer-open"
11482 \end_layout
11483
11484 \begin_layout LyX-Code
11485     Icon "buffer-write"
11486 \end_layout
11487
11488 \begin_layout LyX-Code
11489     Icon "buffer-print"
11490 \end_layout
11491
11492 \begin_layout LyX-Code
11493     Separator
11494 \end_layout
11495
11496 \begin_layout LyX-Code
11497     Icon "cut"
11498 \end_layout
11499
11500 \begin_layout LyX-Code
11501     Icon "copy"
11502 \end_layout
11503
11504 \begin_layout LyX-Code
11505     Icon "paste"
11506 \end_layout
11507
11508 \begin_layout LyX-Code
11509     Separator
11510 \end_layout
11511
11512 \begin_layout LyX-Code
11513     Icon "font-emph"
11514 \end_layout
11515
11516 \begin_layout LyX-Code
11517     Icon "font-noun"
11518 \end_layout
11519
11520 \begin_layout LyX-Code
11521     Icon "font-free"
11522 \end_layout
11523
11524 \begin_layout LyX-Code
11525     Separator
11526 \end_layout
11527
11528 \begin_layout LyX-Code
11529     Icon "tex-mode"
11530 \end_layout
11531
11532 \begin_layout LyX-Code
11533     Icon "math-mode"
11534 \end_layout
11535
11536 \begin_layout LyX-Code
11537     Separator
11538 \end_layout
11539
11540 \begin_layout LyX-Code
11541     Icon "footnote-insert"
11542 \end_layout
11543
11544 \begin_layout LyX-Code
11545     Icon "marginpar-insert"
11546 \end_layout
11547
11548 \begin_layout LyX-Code
11549     Icon "depth-next"
11550 \end_layout
11551
11552 \begin_layout LyX-Code
11553     Separator
11554 \end_layout
11555
11556 \begin_layout LyX-Code
11557     Icon "figure-insert"
11558 \end_layout
11559
11560 \begin_layout LyX-Code
11561     Icon "dialog-tabular-insert"
11562 \end_layout
11563
11564 \begin_layout LyX-Code
11565 End
11566 \end_layout
11567
11568 \begin_layout Section
11569 Menu
11570 \end_layout
11571
11572 \begin_layout Standard
11573 Note that the following bindings are for LyX with English menus.
11574  The second character of the binding depends on the menu language.
11575  For example 
11576 \begin_inset Quotes eld
11577 \end_inset
11578
11579
11580 \family sans
11581 M-i r
11582 \family default
11583
11584 \begin_inset Quotes erd
11585 \end_inset
11586
11587  is with German menus 
11588 \begin_inset Quotes eld
11589 \end_inset
11590
11591
11592 \family sans
11593 M-e q
11594 \family default
11595
11596 \begin_inset Quotes erd
11597 \end_inset
11598
11599 .
11600  To find out the shortcuts of your language press the Meta (Alt)-key and
11601  press then the keys of the underlined characters of the menu names.
11602 \end_layout
11603
11604 \begin_layout Subsection
11605 File
11606 \end_layout
11607
11608 \begin_layout List
11609 \labelwidthstring 00.00.0000
11610
11611 \family sans
11612 M-f\InsetSpace ~
11613 a
11614 \family default
11615  
11616 \family typewriter
11617 buffer-write-as
11618 \end_layout
11619
11620 \begin_layout List
11621 \labelwidthstring 00.00.0000
11622
11623 \family sans
11624 M-f\InsetSpace ~
11625 c
11626 \family default
11627  
11628 \family typewriter
11629 buffer-close
11630 \end_layout
11631
11632 \begin_layout List
11633 \labelwidthstring 00.00.0000
11634
11635 \family sans
11636 M-f\InsetSpace ~
11637 d
11638 \family default
11639  
11640 \family typewriter
11641 buffer-reload
11642 \end_layout
11643
11644 \begin_layout List
11645 \labelwidthstring 00.00.0000
11646
11647 \family sans
11648 M-f\InsetSpace ~
11649 e
11650 \family default
11651  
11652 \family typewriter
11653 file_export
11654 \family default
11655  submenu
11656 \end_layout
11657
11658 \begin_layout List
11659 \labelwidthstring 00.00.0000
11660
11661 \family sans
11662 M-f\InsetSpace ~
11663 f
11664 \family default
11665  
11666 \family typewriter
11667 buffer-export fax
11668 \end_layout
11669
11670 \begin_layout List
11671 \labelwidthstring 00.00.0000
11672
11673 \family sans
11674 M-f\InsetSpace ~
11675 i
11676 \family default
11677  
11678 \family typewriter
11679 file_import
11680 \family default
11681  submenu
11682 \end_layout
11683
11684 \begin_layout List
11685 \labelwidthstring 00.00.0000
11686
11687 \family sans
11688 M-f\InsetSpace ~
11689 n
11690 \family default
11691  
11692 \family typewriter
11693 buffer-new
11694 \end_layout
11695
11696 \begin_layout List
11697 \labelwidthstring 00.00.0000
11698
11699 \family sans
11700 M-f\InsetSpace ~
11701 o
11702 \family default
11703  
11704 \family typewriter
11705 buffer-open
11706 \end_layout
11707
11708 \begin_layout List
11709 \labelwidthstring 00.00.0000
11710
11711 \family sans
11712 M-f\InsetSpace ~
11713 p
11714 \family default
11715  
11716 \family typewriter
11717 buffer-print
11718 \end_layout
11719
11720 \begin_layout List
11721 \labelwidthstring 00.00.0000
11722
11723 \family sans
11724 M-f\InsetSpace ~
11725 s
11726 \family default
11727  
11728 \family typewriter
11729 buffer-write
11730 \end_layout
11731
11732 \begin_layout List
11733 \labelwidthstring 00.00.0000
11734
11735 \family sans
11736 M-f\InsetSpace ~
11737 t
11738 \family default
11739  
11740 \family typewriter
11741 buffer-new-template
11742 \end_layout
11743
11744 \begin_layout List
11745 \labelwidthstring 00.00.0000
11746
11747 \family sans
11748 M-f\InsetSpace ~
11749 v
11750 \family default
11751  
11752 \family typewriter
11753 file_vc
11754 \family default
11755  submenu 
11756 \end_layout
11757
11758 \begin_deeper
11759 \begin_layout List
11760 \labelwidthstring 00.00.0000
11761
11762 \family sans
11763 h
11764 \family default
11765  
11766 \family typewriter
11767 vc-history 
11768 \end_layout
11769
11770 \begin_layout List
11771 \labelwidthstring 00.00.0000
11772
11773 \family sans
11774 i
11775 \family default
11776  
11777 \family typewriter
11778 vc-check-in
11779 \end_layout
11780
11781 \begin_layout List
11782 \labelwidthstring 00.00.0000
11783
11784 \family sans
11785 l
11786 \family default
11787  
11788 \family typewriter
11789 vc-revert
11790 \end_layout
11791
11792 \begin_layout List
11793 \labelwidthstring 00.00.0000
11794
11795 \family sans
11796 o
11797 \family default
11798  
11799 \family typewriter
11800 vc-check-out
11801 \end_layout
11802
11803 \begin_layout List
11804 \labelwidthstring 00.00.0000
11805
11806 \family sans
11807 r
11808 \family default
11809  
11810 \family typewriter
11811 vc-register
11812 \end_layout
11813
11814 \begin_layout List
11815 \labelwidthstring 00.00.0000
11816
11817 \family sans
11818 u
11819 \family default
11820  
11821 \family typewriter
11822 vc-undo-last
11823 \end_layout
11824
11825 \end_deeper
11826 \begin_layout List
11827 \labelwidthstring 00.00.0000
11828
11829 \family sans
11830 M-f\InsetSpace ~
11831 x
11832 \family default
11833  
11834 \family typewriter
11835 lyx-quit
11836 \end_layout
11837
11838 \begin_layout Subsection
11839 Edit
11840 \end_layout
11841
11842 \begin_layout List
11843 \labelwidthstring 00.00.0000
11844
11845 \family sans
11846 M-e\InsetSpace ~
11847 a
11848 \family default
11849  
11850 \family typewriter
11851 paste
11852 \end_layout
11853
11854 \begin_layout List
11855 \labelwidthstring 00.00.0000
11856
11857 \family sans
11858 M-e\InsetSpace ~
11859 c
11860 \family default
11861  
11862 \family typewriter
11863 cut
11864 \end_layout
11865
11866 \begin_layout List
11867 \labelwidthstring 00.00.0000
11868
11869 \family sans
11870 M-e\InsetSpace ~
11871 d
11872 \family default
11873  
11874 \family typewriter
11875 redo
11876 \end_layout
11877
11878 \begin_layout List
11879 \labelwidthstring 00.00.0000
11880
11881 \family sans
11882 M-e\InsetSpace ~
11883 e
11884 \family default
11885  
11886 \family typewriter
11887 error-remove-all
11888 \end_layout
11889
11890 \begin_layout List
11891 \labelwidthstring 00.00.0000
11892
11893 \family sans
11894 M-e\InsetSpace ~
11895 f
11896 \family default
11897  
11898 \family typewriter
11899 find-replace
11900 \end_layout
11901
11902 \begin_layout List
11903 \labelwidthstring 00.00.0000
11904
11905 \family sans
11906 M-e\InsetSpace ~
11907 h
11908 \family default
11909  
11910 \family typewriter
11911 buffer-chktex
11912 \end_layout
11913
11914 \begin_layout List
11915 \labelwidthstring 00.00.0000
11916
11917 \family sans
11918 M-e\InsetSpace ~
11919 i
11920 \family default
11921  
11922 \family typewriter
11923 edit_floats
11924 \family default
11925  submenu
11926 \end_layout
11927
11928 \begin_deeper
11929 \begin_layout List
11930 \labelwidthstring 00.00.0000
11931
11932 \family sans
11933 a
11934 \family default
11935  
11936 \family typewriter
11937 tabular-feature append-row
11938 \end_layout
11939
11940 \begin_layout List
11941 \labelwidthstring 00.00.0000
11942
11943 \family sans
11944 b
11945 \family default
11946  
11947 \family typewriter
11948 tabular-feature toggle-line-bottom
11949 \end_layout
11950
11951 \begin_layout List
11952 \labelwidthstring 00.00.0000
11953
11954 \family sans
11955 c
11956 \family default
11957  
11958 \family typewriter
11959 tabular-feature align-center
11960 \end_layout
11961
11962 \begin_layout List
11963 \labelwidthstring 00.00.0000
11964
11965 \family sans
11966 d
11967 \family default
11968  
11969 \family typewriter
11970 tabular-feature delete-column
11971 \end_layout
11972
11973 \begin_layout List
11974 \labelwidthstring 00.00.0000
11975
11976 \family sans
11977 e
11978 \family default
11979  
11980 \family typewriter
11981 tabular-feature align-left
11982 \end_layout
11983
11984 \begin_layout List
11985 \labelwidthstring 00.00.0000
11986
11987 \family sans
11988 i
11989 \family default
11990  
11991 \family typewriter
11992 tabular-feature align-right
11993 \end_layout
11994
11995 \begin_layout List
11996 \labelwidthstring 00.00.0000
11997
11998 \family sans
11999 l
12000 \family default
12001  
12002 \family typewriter
12003 tabular-feature toggle-line-left
12004 \end_layout
12005
12006 \begin_layout List
12007 \labelwidthstring 00.00.0000
12008
12009 \family sans
12010 m
12011 \family default
12012  
12013 \family typewriter
12014 tabular-feature multicolumn
12015 \end_layout
12016
12017 \begin_layout List
12018 \labelwidthstring 00.00.0000
12019
12020 \family sans
12021 n
12022 \family default
12023  
12024 \family typewriter
12025 tabular-feature valign-center
12026 \end_layout
12027
12028 \begin_layout List
12029 \labelwidthstring 00.00.0000
12030
12031 \family sans
12032 o
12033 \family default
12034  
12035 \family typewriter
12036 tabular-feature valign-top
12037 \end_layout
12038
12039 \begin_layout List
12040 \labelwidthstring 00.00.0000
12041
12042 \family sans
12043 r
12044 \family default
12045  
12046 \family typewriter
12047 tabular-feature toggle-line-right
12048 \end_layout
12049
12050 \begin_layout List
12051 \labelwidthstring 00.00.0000
12052
12053 \family sans
12054 t
12055 \family default
12056  
12057 \family typewriter
12058 tabular-feature toggle-line-top
12059 \end_layout
12060
12061 \begin_layout List
12062 \labelwidthstring 00.00.0000
12063
12064 \family sans
12065 u
12066 \family default
12067  
12068 \family typewriter
12069 tabular-feature append-column
12070 \end_layout
12071
12072 \begin_layout List
12073 \labelwidthstring 00.00.0000
12074
12075 \family sans
12076 v
12077 \family default
12078  
12079 \family typewriter
12080 tabular-feature valign-bottom
12081 \end_layout
12082
12083 \begin_layout List
12084 \labelwidthstring 00.00.0000
12085
12086 \family sans
12087 w
12088 \family default
12089  
12090 \family typewriter
12091 tabular-feature delete-row
12092 \end_layout
12093
12094 \end_deeper
12095 \begin_layout List
12096 \labelwidthstring 00.00.0000
12097
12098 \family sans
12099 M-e\InsetSpace ~
12100 l
12101 \family default
12102  
12103 \family typewriter
12104 math-panel
12105 \end_layout
12106
12107 \begin_deeper
12108 \begin_layout List
12109 \labelwidthstring 00.00.0000
12110
12111 \family sans
12112 a
12113 \family default
12114  
12115 \family typewriter
12116 floats-operate openfoot
12117 \end_layout
12118
12119 \begin_layout List
12120 \labelwidthstring 00.00.0000
12121
12122 \family sans
12123 c
12124 \family default
12125  
12126 \family typewriter
12127 floats-operate closefoot
12128 \end_layout
12129
12130 \begin_layout List
12131 \labelwidthstring 00.00.0000
12132
12133 \family sans
12134 f
12135 \family default
12136  
12137 \family typewriter
12138 floats-operate openfig
12139 \end_layout
12140
12141 \begin_layout List
12142 \labelwidthstring 00.00.0000
12143
12144 \family sans
12145 m
12146 \family default
12147  
12148 \family typewriter
12149 melt
12150 \end_layout
12151
12152 \begin_layout List
12153 \labelwidthstring 00.00.0000
12154
12155 \family sans
12156 o
12157 \family default
12158  
12159 \family typewriter
12160 open-stuff
12161 \end_layout
12162
12163 \begin_layout List
12164 \labelwidthstring 00.00.0000
12165
12166 \family sans
12167 t
12168 \family default
12169  
12170 \family typewriter
12171 floats-operate closefig
12172 \end_layout
12173
12174 \end_deeper
12175 \begin_layout List
12176 \labelwidthstring 00.00.0000
12177
12178 \family sans
12179 M-e\InsetSpace ~
12180 o
12181 \family default
12182  
12183 \family typewriter
12184 copy
12185 \end_layout
12186
12187 \begin_layout List
12188 \labelwidthstring 00.00.0000
12189
12190 \family sans
12191 M-e\InsetSpace ~
12192 p
12193 \family default
12194  
12195 \family typewriter
12196 dialog-preferences
12197 \family default
12198  
12199 \end_layout
12200
12201 \begin_layout List
12202 \labelwidthstring 00.00.0000
12203
12204 \family sans
12205 M-e\InsetSpace ~
12206 r
12207 \family default
12208  
12209 \family typewriter
12210 reconfigure
12211 \end_layout
12212
12213 \begin_layout List
12214 \labelwidthstring 00.00.0000
12215
12216 \family sans
12217 M-e\InsetSpace ~
12218 s
12219 \family default
12220  
12221 \family typewriter
12222 spellchecker
12223 \end_layout
12224
12225 \begin_layout List
12226 \labelwidthstring 00.00.0000
12227
12228 \family sans
12229 M-e\InsetSpace ~
12230 t
12231 \family default
12232  
12233 \family typewriter
12234 edit_tabular
12235 \family default
12236  submenu
12237 \end_layout
12238
12239 \begin_layout List
12240 \labelwidthstring 00.00.0000
12241
12242 \family sans
12243 M-e\InsetSpace ~
12244 u
12245 \family default
12246  
12247 \family typewriter
12248 undo
12249 \end_layout
12250
12251 \begin_layout List
12252 \labelwidthstring 00.00.0000
12253
12254 \family sans
12255 M-e\InsetSpace ~
12256 x
12257 \family default
12258  
12259 \family typewriter
12260 edit_paste
12261 \family default
12262  submenu
12263 \end_layout
12264
12265 \begin_deeper
12266 \begin_layout List
12267 \labelwidthstring 00.00.0000
12268
12269 \family sans
12270 l
12271 \family default
12272  
12273 \family typewriter
12274 primary-selection-paste
12275 \end_layout
12276
12277 \begin_layout List
12278 \labelwidthstring 00.00.0000
12279
12280 \family sans
12281 p
12282 \family default
12283  
12284 \family typewriter
12285 primary-selection-paste paragraph
12286 \end_layout
12287
12288 \end_deeper
12289 \begin_layout Subsection
12290 Insert
12291 \end_layout
12292
12293 \begin_layout List
12294 \labelwidthstring 00.00.0000
12295
12296 \family sans
12297 M-i\InsetSpace ~
12298 a
12299 \family default
12300  
12301 \family typewriter
12302 insert_floats
12303 \family default
12304  submenu
12305 \end_layout
12306
12307 \begin_deeper
12308 \begin_layout List
12309 \labelwidthstring 00.00.0000
12310
12311 \family sans
12312 a
12313 \family default
12314  
12315 \family typewriter
12316 buffer-float-insert algorithm
12317 \end_layout
12318
12319 \begin_layout List
12320 \labelwidthstring 00.00.0000
12321
12322 \family sans
12323 d
12324 \family default
12325  
12326 \family typewriter
12327 buffer-float-insert wide-tab
12328 \end_layout
12329
12330 \begin_layout List
12331 \labelwidthstring 00.00.0000
12332
12333 \family sans
12334 f
12335 \family default
12336  
12337 \family typewriter
12338 buffer-float-insert figure
12339 \end_layout
12340
12341 \begin_layout List
12342 \labelwidthstring 00.00.0000
12343
12344 \family sans
12345 t
12346 \family default
12347  
12348 \family typewriter
12349 buffer-float-insert table
12350 \end_layout
12351
12352 \begin_layout List
12353 \labelwidthstring 00.00.0000
12354
12355 \family sans
12356 w
12357 \family default
12358  
12359 \family typewriter
12360 buffer-float-insert wide-fig
12361 \end_layout
12362
12363 \end_deeper
12364 \begin_layout List
12365 \labelwidthstring 00.00.0000
12366
12367 \family sans
12368 M-i\InsetSpace ~
12369 b
12370 \family default
12371  
12372 \family typewriter
12373 dialog-tabular-insert
12374 \end_layout
12375
12376 \begin_layout List
12377 \labelwidthstring 00.00.0000
12378
12379 \family sans
12380 M-i\InsetSpace ~
12381 c
12382 \family default
12383  
12384 \family typewriter
12385 citation-insert
12386 \end_layout
12387
12388 \begin_layout List
12389 \labelwidthstring 00.00.0000
12390
12391 \family sans
12392 M-i\InsetSpace ~
12393 d
12394 \family default
12395  
12396 \family typewriter
12397 math-display
12398 \end_layout
12399
12400 \begin_layout List
12401 \labelwidthstring 00.00.0000
12402
12403 \family sans
12404 M-i\InsetSpace ~
12405 e
12406 \family default
12407  
12408 \family typewriter
12409 buffer-child-insert
12410 \end_layout
12411
12412 \begin_layout List
12413 \labelwidthstring 00.00.0000
12414
12415 \family sans
12416 M-i\InsetSpace ~
12417 f
12418 \family default
12419  
12420 \family typewriter
12421 footnote-insert
12422 \end_layout
12423
12424 \begin_layout List
12425 \labelwidthstring 00.00.0000
12426
12427 \family sans
12428 M-i\InsetSpace ~
12429 g
12430 \family default
12431  
12432 \family typewriter
12433 figure-insert
12434 \end_layout
12435
12436 \begin_layout List
12437 \labelwidthstring 00.00.0000
12438
12439 \family sans
12440 M-i\InsetSpace ~
12441 h
12442 \family default
12443  
12444 \family typewriter
12445 math-mode
12446 \end_layout
12447
12448 \begin_layout List
12449 \labelwidthstring 00.00.0000
12450
12451 \family sans
12452 M-i\InsetSpace ~
12453 i
12454 \family default
12455  
12456 \family typewriter
12457 index-insert
12458 \end_layout
12459
12460 \begin_layout List
12461 \labelwidthstring 00.00.0000
12462
12463 \family sans
12464 M-i\InsetSpace ~
12465 l
12466 \family default
12467  
12468 \family typewriter
12469 label-insert
12470 \end_layout
12471
12472 \begin_layout List
12473 \labelwidthstring 00.00.0000
12474
12475 \family sans
12476 M-i\InsetSpace ~
12477 m
12478 \family default
12479  
12480 \family typewriter
12481 marginpar-insert
12482 \end_layout
12483
12484 \begin_layout List
12485 \labelwidthstring 00.00.0000
12486
12487 \family sans
12488 M-i\InsetSpace ~
12489 n
12490 \family default
12491  
12492 \family typewriter
12493 note-insert
12494 \end_layout
12495
12496 \begin_layout List
12497 \labelwidthstring 00.00.0000
12498
12499 \family sans
12500 M-i\InsetSpace ~
12501 o
12502 \family default
12503  
12504 \family typewriter
12505 insert_toc
12506 \family default
12507  submenu
12508 \end_layout
12509
12510 \begin_deeper
12511 \begin_layout List
12512 \labelwidthstring 00.00.0000
12513
12514 \family sans
12515 a
12516 \family default
12517  
12518 \family typewriter
12519 loa-insert
12520 \end_layout
12521
12522 \begin_layout List
12523 \labelwidthstring 00.00.0000
12524
12525 \family sans
12526 b
12527 \family default
12528  
12529 \family typewriter
12530 bibtex-insert
12531 \end_layout
12532
12533 \begin_layout List
12534 \labelwidthstring 00.00.0000
12535
12536 \family sans
12537 c
12538 \family default
12539  
12540 \family typewriter
12541 toc-insert
12542 \end_layout
12543
12544 \begin_layout List
12545 \labelwidthstring 00.00.0000
12546
12547 \family sans
12548 f
12549 \family default
12550  
12551 \family typewriter
12552 lof-insert
12553 \end_layout
12554
12555 \begin_layout List
12556 \labelwidthstring 00.00.0000
12557
12558 \family sans
12559 i
12560 \family default
12561  
12562 \family typewriter
12563 index-print
12564 \end_layout
12565
12566 \begin_layout List
12567 \labelwidthstring 00.00.0000
12568
12569 \family sans
12570 t
12571 \family default
12572  
12573 \family typewriter
12574 lot-insert
12575 \end_layout
12576
12577 \end_deeper
12578 \begin_layout List
12579 \labelwidthstring 00.00.0000
12580
12581 \family sans
12582 M-i\InsetSpace ~
12583 r
12584 \family default
12585  
12586 \family typewriter
12587 reference-insert
12588 \end_layout
12589
12590 \begin_layout List
12591 \labelwidthstring 00.00.0000
12592
12593 \family sans
12594 M-i\InsetSpace ~
12595 s
12596 \family default
12597  
12598 \family typewriter
12599 insert_special
12600 \family default
12601  submenu
12602 \end_layout
12603
12604 \begin_deeper
12605 \begin_layout List
12606 \labelwidthstring 00.00.0000
12607
12608 \family sans
12609 b
12610 \family default
12611  
12612 \family typewriter
12613 protected-space-insert
12614 \end_layout
12615
12616 \begin_layout List
12617 \labelwidthstring 00.00.0000
12618
12619 \family sans
12620 e
12621 \family default
12622  
12623 \family typewriter
12624 end-of-sentence-period-insert
12625 \end_layout
12626
12627 \begin_layout List
12628 \labelwidthstring 00.00.0000
12629
12630 \family sans
12631 h
12632 \family default
12633  
12634 \family typewriter
12635 hfill-insert
12636 \end_layout
12637
12638 \begin_layout List
12639 \labelwidthstring 00.00.0000
12640
12641 \family sans
12642 i
12643 \family default
12644  
12645 \family typewriter
12646 dots-insert
12647 \end_layout
12648
12649 \begin_layout List
12650 \labelwidthstring 00.00.0000
12651
12652 \family sans
12653 l
12654 \family default
12655  
12656 \family typewriter
12657 break-line
12658 \end_layout
12659
12660 \begin_layout List
12661 \labelwidthstring 00.00.0000
12662
12663 \family sans
12664 m
12665 \family default
12666  
12667 \family typewriter
12668 menu-separator-insert
12669 \end_layout
12670
12671 \begin_layout List
12672 \labelwidthstring 00.00.0000
12673
12674 \family sans
12675 p
12676 \family default
12677  
12678 \family typewriter
12679 hyphenation-point-insert
12680 \end_layout
12681
12682 \begin_layout List
12683 \labelwidthstring 00.00.0000
12684
12685 \family sans
12686 q
12687 \family default
12688  
12689 \family typewriter
12690 quote-insert
12691 \end_layout
12692
12693 \begin_layout List
12694 \labelwidthstring 00.00.0000
12695
12696 \family sans
12697 s
12698 \family default
12699  
12700 \family typewriter
12701 command-sequence math-insert ^;math-mode;
12702 \end_layout
12703
12704 \begin_layout List
12705 \labelwidthstring 00.00.0000
12706
12707 \family sans
12708 u
12709 \family default
12710  
12711 \family typewriter
12712 command-sequence math-insert _;math-mode;
12713 \end_layout
12714
12715 \end_deeper
12716 \begin_layout List
12717 \labelwidthstring 00.00.0000
12718
12719 \family sans
12720 M-i\InsetSpace ~
12721 t
12722 \family default
12723  
12724 \family typewriter
12725 insert_file
12726 \family default
12727  submenu
12728 \end_layout
12729
12730 \begin_deeper
12731 \begin_layout List
12732 \labelwidthstring 00.00.0000
12733
12734 \family sans
12735 l
12736 \family default
12737  
12738 \family typewriter
12739 file-insert-plaintext lines
12740 \end_layout
12741
12742 \begin_layout List
12743 \labelwidthstring 00.00.0000
12744
12745 \family sans
12746 p
12747 \family default
12748  
12749 \family typewriter
12750 file-insert-plaintext paragraphs
12751 \end_layout
12752
12753 \begin_layout List
12754 \labelwidthstring 00.00.0000
12755
12756 \family sans
12757 x
12758 \family default
12759  
12760 \family typewriter
12761 file-insert
12762 \end_layout
12763
12764 \end_deeper
12765 \begin_layout List
12766 \labelwidthstring 00.00.0000
12767
12768 \family sans
12769 M-i\InsetSpace ~
12770 u
12771 \family default
12772  
12773 \family typewriter
12774 url-insert
12775 \end_layout
12776
12777 \begin_layout List
12778 \labelwidthstring 00.00.0000
12779
12780 \family sans
12781 M-i\InsetSpace ~
12782 w
12783 \family default
12784  
12785 \family typewriter
12786 index-insert-last
12787 \end_layout
12788
12789 \begin_layout List
12790 \labelwidthstring 00.00.0000
12791
12792 \family sans
12793 M-i\InsetSpace ~
12794 x
12795 \family default
12796  
12797 \family typewriter
12798 external-insert
12799 \end_layout
12800
12801 \begin_layout Subsection
12802 Layout
12803 \end_layout
12804
12805 \begin_layout List
12806 \labelwidthstring 00.00.0000
12807
12808 \family sans
12809 M-l\InsetSpace ~
12810 a
12811 \family default
12812  
12813 \family typewriter
12814 appendix
12815 \end_layout
12816
12817 \begin_layout List
12818 \labelwidthstring 00.00.0000
12819
12820 \family sans
12821 M-l\InsetSpace ~
12822 b
12823 \family default
12824  
12825 \family typewriter
12826 font-bold
12827 \end_layout
12828
12829 \begin_layout List
12830 \labelwidthstring 00.00.0000
12831
12832 \family sans
12833 M-l\InsetSpace ~
12834 c
12835 \family default
12836  
12837 \family typewriter
12838 layout-character
12839 \end_layout
12840
12841 \begin_layout List
12842 \labelwidthstring 00.00.0000
12843
12844 \family sans
12845 M-l\InsetSpace ~
12846 d
12847 \family default
12848  
12849 \family typewriter
12850 layout-document
12851 \end_layout
12852
12853 \begin_layout List
12854 \labelwidthstring 00.00.0000
12855
12856 \family sans
12857 M-l\InsetSpace ~
12858 e
12859 \family default
12860  
12861 \family typewriter
12862 font-emph
12863 \end_layout
12864
12865 \begin_layout List
12866 \labelwidthstring 00.00.0000
12867
12868 \family sans
12869 M-l\InsetSpace ~
12870 l
12871 \family default
12872  
12873 \family typewriter
12874 layout-preamble
12875 \end_layout
12876
12877 \begin_layout List
12878 \labelwidthstring 00.00.0000
12879
12880 \family sans
12881 M-l\InsetSpace ~
12882 n
12883 \family default
12884  
12885 \family typewriter
12886 font-noun
12887 \end_layout
12888
12889 \begin_layout List
12890 \labelwidthstring 00.00.0000
12891
12892 \family sans
12893 M-l\InsetSpace ~
12894 p
12895 \family default
12896  
12897 \family typewriter
12898 layout-paragraph
12899 \end_layout
12900
12901 \begin_layout List
12902 \labelwidthstring 00.00.0000
12903
12904 \family sans
12905 M-l\InsetSpace ~
12906 s
12907 \family default
12908  
12909 \family typewriter
12910 layout-save-default
12911 \end_layout
12912
12913 \begin_layout List
12914 \labelwidthstring 00.00.0000
12915
12916 \family sans
12917 M-l\InsetSpace ~
12918 t
12919 \family default
12920  
12921 \family typewriter
12922 layout-tabular
12923 \end_layout
12924
12925 \begin_layout List
12926 \labelwidthstring 00.00.0000
12927
12928 \family sans
12929 M-l\InsetSpace ~
12930 v
12931 \family default
12932  
12933 \family typewriter
12934 depth-increment
12935 \end_layout
12936
12937 \begin_layout List
12938 \labelwidthstring 00.00.0000
12939
12940 \family sans
12941 M-l\InsetSpace ~
12942 x
12943 \family default
12944  
12945 \family typewriter
12946 tex-mode
12947 \end_layout
12948
12949 \begin_layout Subsubsection
12950
12951 \family sans
12952 Layout\SpecialChar \menuseparator
12953 Character
12954 \family default
12955  
12956 \end_layout
12957
12958 \begin_layout List
12959 \labelwidthstring 00.00.0000
12960
12961 \family sans
12962 M-c\InsetSpace ~
12963 b
12964 \family default
12965  
12966 \family typewriter
12967 font-bold
12968 \end_layout
12969
12970 \begin_layout List
12971 \labelwidthstring 00.00.0000
12972
12973 \family sans
12974 M-c\InsetSpace ~
12975 c
12976 \family default
12977  
12978 \family typewriter
12979 font-noun
12980 \end_layout
12981
12982 \begin_layout List
12983 \labelwidthstring 00.00.0000
12984
12985 \family sans
12986 M-c\InsetSpace ~
12987 e
12988 \family default
12989  
12990 \family typewriter
12991 font-emph
12992 \end_layout
12993
12994 \begin_layout List
12995 \labelwidthstring 00.00.0000
12996
12997 \family sans
12998 M-c\InsetSpace ~
12999 m
13000 \family default
13001  
13002 \family typewriter
13003 math-mode
13004 \end_layout
13005
13006 \begin_layout List
13007 \labelwidthstring 00.00.0000
13008
13009 \family sans
13010 M-c\InsetSpace ~
13011 p
13012 \family default
13013  
13014 \family typewriter
13015 font-code
13016 \end_layout
13017
13018 \begin_layout List
13019 \labelwidthstring 00.00.0000
13020
13021 \family sans
13022 M-c\InsetSpace ~
13023 r
13024 \family default
13025  
13026 \family typewriter
13027 font-roman
13028 \end_layout
13029
13030 \begin_layout List
13031 \labelwidthstring 00.00.0000
13032
13033 \family sans
13034 M-c\InsetSpace ~
13035 s
13036 \family default
13037  
13038 \family typewriter
13039 font-sans
13040 \end_layout
13041
13042 \begin_layout List
13043 \labelwidthstring 00.00.0000
13044
13045 \family sans
13046 M-c\InsetSpace ~
13047 u
13048 \family default
13049  
13050 \family typewriter
13051 font-underline
13052 \end_layout
13053
13054 \begin_layout List
13055 \labelwidthstring 00.00.0000
13056
13057 \family sans
13058 M-c\InsetSpace ~
13059 space
13060 \family default
13061  
13062 \family typewriter
13063 font-default
13064 \end_layout
13065
13066 \begin_layout List
13067 \labelwidthstring 00.00.0000
13068
13069 \family sans
13070 M-c\InsetSpace ~
13071 Down
13072 \family default
13073  
13074 \family typewriter
13075 word-lowcase
13076 \end_layout
13077
13078 \begin_layout List
13079 \labelwidthstring 00.00.0000
13080
13081 \family sans
13082 M-c\InsetSpace ~
13083 Up
13084 \family default
13085  
13086 \family typewriter
13087 word-upcase
13088 \end_layout
13089
13090 \begin_layout List
13091 \labelwidthstring 00.00.0000
13092
13093 \family sans
13094 M-c\InsetSpace ~
13095 Right
13096 \family default
13097  
13098 \family typewriter
13099 word-capitalize
13100 \end_layout
13101
13102 \begin_layout List
13103 \labelwidthstring 00.00.0000
13104
13105 \family sans
13106 M-s\InsetSpace ~
13107 h
13108 \family default
13109  
13110 \family typewriter
13111 font-size huge
13112 \end_layout
13113
13114 \begin_layout List
13115 \labelwidthstring 00.00.0000
13116
13117 \family sans
13118 M-s\InsetSpace ~
13119 l
13120 \family default
13121  
13122 \family typewriter
13123 font-size large
13124 \end_layout
13125
13126 \begin_layout List
13127 \labelwidthstring 00.00.0000
13128
13129 \family sans
13130 M-s\InsetSpace ~
13131 n
13132 \family default
13133  
13134 \family typewriter
13135 font-size normal
13136 \end_layout
13137
13138 \begin_layout List
13139 \labelwidthstring 00.00.0000
13140
13141 \family sans
13142 M-s\InsetSpace ~
13143 s
13144 \family default
13145  
13146 \family typewriter
13147 font-size small
13148 \end_layout
13149
13150 \begin_layout List
13151 \labelwidthstring 00.00.0000
13152
13153 \family sans
13154 M-s\InsetSpace ~
13155 t
13156 \family default
13157  
13158 \family typewriter
13159 font-size tiny
13160 \end_layout
13161
13162 \begin_layout List
13163 \labelwidthstring 00.00.0000
13164
13165 \family sans
13166 M-s\InsetSpace ~
13167 0
13168 \family default
13169  
13170 \family typewriter
13171 font-size huger
13172 \end_layout
13173
13174 \begin_layout List
13175 \labelwidthstring 00.00.0000
13176
13177 \family sans
13178 M-s\InsetSpace ~
13179 1
13180 \family default
13181  
13182 \family typewriter
13183 font-size tiny
13184 \end_layout
13185
13186 \begin_layout List
13187 \labelwidthstring 00.00.0000
13188
13189 \family sans
13190 M-s\InsetSpace ~
13191 2
13192 \family default
13193  
13194 \family typewriter
13195 font-size smallest
13196 \end_layout
13197
13198 \begin_layout List
13199 \labelwidthstring 00.00.0000
13200
13201 \family sans
13202 M-s\InsetSpace ~
13203 3
13204 \family default
13205  
13206 \family typewriter
13207 font-size smaller
13208 \end_layout
13209
13210 \begin_layout List
13211 \labelwidthstring 00.00.0000
13212
13213 \family sans
13214 M-s\InsetSpace ~
13215 4
13216 \family default
13217  
13218 \family typewriter
13219 font-size small
13220 \end_layout
13221
13222 \begin_layout List
13223 \labelwidthstring 00.00.0000
13224
13225 \family sans
13226 M-s\InsetSpace ~
13227 5
13228 \family default
13229  
13230 \family typewriter
13231 font-size normal
13232 \end_layout
13233
13234 \begin_layout List
13235 \labelwidthstring 00.00.0000
13236
13237 \family sans
13238 M-s\InsetSpace ~
13239 6
13240 \family default
13241  
13242 \family typewriter
13243 font-size large
13244 \end_layout
13245
13246 \begin_layout List
13247 \labelwidthstring 00.00.0000
13248
13249 \family sans
13250 M-s\InsetSpace ~
13251 7
13252 \family default
13253  
13254 \family typewriter
13255 font-size larger
13256 \end_layout
13257
13258 \begin_layout List
13259 \labelwidthstring 00.00.0000
13260
13261 \family sans
13262 M-s\InsetSpace ~
13263 8
13264 \family default
13265  
13266 \family typewriter
13267 font-size largest
13268 \end_layout
13269
13270 \begin_layout List
13271 \labelwidthstring 00.00.0000
13272
13273 \family sans
13274 M-s\InsetSpace ~
13275 9
13276 \family default
13277  
13278 \family typewriter
13279 font-size huge
13280 \end_layout
13281
13282 \begin_layout List
13283 \labelwidthstring 00.00.0000
13284
13285 \family sans
13286 M-s\InsetSpace ~
13287 S-H
13288 \family default
13289  
13290 \family typewriter
13291 font-size huger
13292 \end_layout
13293
13294 \begin_layout List
13295 \labelwidthstring 00.00.0000
13296
13297 \family sans
13298 M-s\InsetSpace ~
13299 S-L
13300 \family default
13301  
13302 \family typewriter
13303 font-size larger
13304 \end_layout
13305
13306 \begin_layout List
13307 \labelwidthstring 00.00.0000
13308
13309 \family sans
13310 M-s\InsetSpace ~
13311 S-S
13312 \family default
13313  
13314 \family typewriter
13315 font-size smaller
13316 \end_layout
13317
13318 \begin_layout List
13319 \labelwidthstring 00.00.0000
13320
13321 \family sans
13322 M-s\InsetSpace ~
13323 plus
13324 \family default
13325  
13326 \family typewriter
13327 font-size increase
13328 \end_layout
13329
13330 \begin_layout List
13331 \labelwidthstring 00.00.0000
13332
13333 \family sans
13334 M-s\InsetSpace ~
13335 minus
13336 \family default
13337  
13338 \family typewriter
13339 font-size decrease
13340 \end_layout
13341
13342 \begin_layout Subsection
13343 View
13344 \end_layout
13345
13346 \begin_layout Subsection
13347 Navigate
13348 \end_layout
13349
13350 \begin_layout Subsection
13351 Help
13352 \end_layout
13353
13354 \begin_layout Subsection
13355 Paragraph Style
13356 \end_layout
13357
13358 \begin_layout List
13359 \labelwidthstring 00.00.0000
13360
13361 \family sans
13362 M-p\InsetSpace ~
13363 a
13364 \family default
13365  
13366 \family typewriter
13367 layout Abstract
13368 \end_layout
13369
13370 \begin_layout List
13371 \labelwidthstring 00.00.0000
13372
13373 \family sans
13374 M-p\InsetSpace ~
13375 b
13376 \family default
13377  
13378 \family typewriter
13379 layout Itemize
13380 \end_layout
13381
13382 \begin_layout List
13383 \labelwidthstring 00.00.0000
13384
13385 \family sans
13386 M-p\InsetSpace ~
13387 c
13388 \family default
13389  
13390 \family typewriter
13391 layout LyX-Code
13392 \end_layout
13393
13394 \begin_layout List
13395 \labelwidthstring 00.00.0000
13396
13397 \family sans
13398 M-p\InsetSpace ~
13399 d
13400 \family default
13401  
13402 \family typewriter
13403 layout Description
13404 \end_layout
13405
13406 \begin_layout List
13407 \labelwidthstring 00.00.0000
13408
13409 \family sans
13410 M-p\InsetSpace ~
13411 e
13412 \family default
13413  
13414 \family typewriter
13415 layout Enumerate
13416 \end_layout
13417
13418 \begin_layout List
13419 \labelwidthstring 00.00.0000
13420
13421 \family sans
13422 M-p\InsetSpace ~
13423 f
13424 \family default
13425  
13426 \family typewriter
13427 layout ShortFoilhead
13428 \end_layout
13429
13430 \begin_layout List
13431 \labelwidthstring 00.00.0000
13432
13433 \family sans
13434 M-p\InsetSpace ~
13435 i
13436 \family default
13437  
13438 \family typewriter
13439 layout Itemize
13440 \end_layout
13441
13442 \begin_layout List
13443 \labelwidthstring 00.00.0000
13444
13445 \family sans
13446 M-p\InsetSpace ~
13447 l
13448 \family default
13449  
13450 \family typewriter
13451 layout List
13452 \end_layout
13453
13454 \begin_layout List
13455 \labelwidthstring 00.00.0000
13456
13457 \family sans
13458 M-p\InsetSpace ~
13459 n
13460 \family default
13461  
13462 \family typewriter
13463 layout Enumerate
13464 \end_layout
13465
13466 \begin_layout List
13467 \labelwidthstring 00.00.0000
13468
13469 \family sans
13470 M-p\InsetSpace ~
13471 q
13472 \family default
13473  
13474 \family typewriter
13475 layout Quote
13476 \end_layout
13477
13478 \begin_layout List
13479 \labelwidthstring 00.00.0000
13480
13481 \family sans
13482 M-p\InsetSpace ~
13483 r
13484 \family default
13485  
13486 \family typewriter
13487 layout ShortRotatefoilhead
13488 \end_layout
13489
13490 \begin_layout List
13491 \labelwidthstring 00.00.0000
13492
13493 \family sans
13494 M-p\InsetSpace ~
13495 s
13496 \family default
13497  
13498 \family typewriter
13499 layout Standard
13500 \end_layout
13501
13502 \begin_layout List
13503 \labelwidthstring 00.00.0000
13504
13505 \family sans
13506 M-p\InsetSpace ~
13507 t
13508 \family default
13509  
13510 \family typewriter
13511 layout Title
13512 \end_layout
13513
13514 \begin_layout List
13515 \labelwidthstring 00.00.0000
13516
13517 \family sans
13518 M-p\InsetSpace ~
13519 v
13520 \family default
13521  
13522 \family typewriter
13523 layout Verse
13524 \end_layout
13525
13526 \begin_layout List
13527 \labelwidthstring 00.00.0000
13528
13529 \family sans
13530 M-p\InsetSpace ~
13531 space
13532 \family default
13533  
13534 \family typewriter
13535 drop-layouts-choice
13536 \end_layout
13537
13538 \begin_layout List
13539 \labelwidthstring 00.00.0000
13540
13541 \family sans
13542 M-p
13543 \noun on
13544 \InsetSpace ~
13545 0
13546 \family default
13547 \noun default
13548  
13549 \family typewriter
13550 layout Part
13551 \end_layout
13552
13553 \begin_layout List
13554 \labelwidthstring 00.00.0000
13555
13556 \family sans
13557 M-p
13558 \noun on
13559 \InsetSpace ~
13560 1
13561 \family default
13562 \noun default
13563  
13564 \family typewriter
13565 layout Chapter
13566 \end_layout
13567
13568 \begin_layout List
13569 \labelwidthstring 00.00.0000
13570
13571 \family sans
13572 M-p\InsetSpace ~
13573 2
13574 \family default
13575  
13576 \family typewriter
13577 layout Section
13578 \end_layout
13579
13580 \begin_layout List
13581 \labelwidthstring 00.00.0000
13582
13583 \family sans
13584 M-p\InsetSpace ~
13585 3
13586 \family default
13587  
13588 \family typewriter
13589 layout Subsection
13590 \end_layout
13591
13592 \begin_layout List
13593 \labelwidthstring 00.00.0000
13594
13595 \family sans
13596 M-p\InsetSpace ~
13597 4
13598 \family default
13599  
13600 \family typewriter
13601 layout Subsubsection
13602 \end_layout
13603
13604 \begin_layout List
13605 \labelwidthstring 00.00.0000
13606
13607 \family sans
13608 M-p\InsetSpace ~
13609 5
13610 \family default
13611  
13612 \family typewriter
13613 layout Paragraph
13614 \end_layout
13615
13616 \begin_layout List
13617 \labelwidthstring 00.00.0000
13618
13619 \family sans
13620 M-p\InsetSpace ~
13621 6
13622 \family default
13623  
13624 \family typewriter
13625 layout Subparagraph
13626 \end_layout
13627
13628 \begin_layout List
13629 \labelwidthstring 00.00.0000
13630
13631 \family sans
13632 M-p\InsetSpace ~
13633 asterisk\InsetSpace ~
13634 0
13635 \family default
13636  
13637 \family typewriter
13638 layout Part*
13639 \end_layout
13640
13641 \begin_layout List
13642 \labelwidthstring 00.00.0000
13643
13644 \family sans
13645 M-p\InsetSpace ~
13646 asterisk\InsetSpace ~
13647 1
13648 \family default
13649  
13650 \family typewriter
13651 layout Chapter*
13652 \end_layout
13653
13654 \begin_layout List
13655 \labelwidthstring 00.00.0000
13656
13657 \family sans
13658 M-p\InsetSpace ~
13659 asterisk\InsetSpace ~
13660 2
13661 \family default
13662  
13663 \family typewriter
13664 layout Section*
13665 \end_layout
13666
13667 \begin_layout List
13668 \labelwidthstring 00.00.0000
13669
13670 \family sans
13671 M-p\InsetSpace ~
13672 asterisk\InsetSpace ~
13673 3
13674 \family default
13675  
13676 \family typewriter
13677 layout Subsection*
13678 \end_layout
13679
13680 \begin_layout List
13681 \labelwidthstring 00.00.0000
13682
13683 \family sans
13684 M-p\InsetSpace ~
13685 asterisk\InsetSpace ~
13686 4
13687 \family default
13688  
13689 \family typewriter
13690 layout Subsubsection*
13691 \end_layout
13692
13693 \begin_layout List
13694 \labelwidthstring 00.00.0000
13695
13696 \family sans
13697 M-p\InsetSpace ~
13698 asterisk\InsetSpace ~
13699 5
13700 \family default
13701  
13702 \family typewriter
13703 layout Paragraph*
13704 \end_layout
13705
13706 \begin_layout List
13707 \labelwidthstring 00.00.0000
13708
13709 \family sans
13710 M-p\InsetSpace ~
13711 asterisk\InsetSpace ~
13712 6
13713 \family default
13714  
13715 \family typewriter
13716 layout Subparagraph*
13717 \end_layout
13718
13719 \begin_layout List
13720 \labelwidthstring 00.00.0000
13721
13722 \family sans
13723 M-p\InsetSpace ~
13724 S-A
13725 \family default
13726  
13727 \family typewriter
13728 layout Author
13729 \end_layout
13730
13731 \begin_layout List
13732 \labelwidthstring 00.00.0000
13733
13734 \family sans
13735 M-p\InsetSpace ~
13736 S-B
13737 \family default
13738  
13739 \family typewriter
13740 layout Bibliography
13741 \end_layout
13742
13743 \begin_layout List
13744 \labelwidthstring 00.00.0000
13745
13746 \family sans
13747 M-p\InsetSpace ~
13748 S-C
13749 \family default
13750  
13751 \family typewriter
13752 layout Comment
13753 \end_layout
13754
13755 \begin_layout List
13756 \labelwidthstring 00.00.0000
13757
13758 \family sans
13759 M-p\InsetSpace ~
13760 S-D
13761 \family default
13762  
13763 \family typewriter
13764 layout Date
13765 \end_layout
13766
13767 \begin_layout List
13768 \labelwidthstring 00.00.0000
13769
13770 \family sans
13771 M-p\InsetSpace ~
13772 S-F
13773 \family default
13774  
13775 \family typewriter
13776 layout Foilhead
13777 \end_layout
13778
13779 \begin_layout List
13780 \labelwidthstring 00.00.0000
13781
13782 \family sans
13783 M-p\InsetSpace ~
13784 S-L
13785 \family default
13786  
13787 \family typewriter
13788 layout LaTeX
13789 \end_layout
13790
13791 \begin_layout List
13792 \labelwidthstring 00.00.0000
13793
13794 \family sans
13795 M-p\InsetSpace ~
13796 S-Q
13797 \family default
13798  
13799 \family typewriter
13800 layout Quotation
13801 \end_layout
13802
13803 \begin_layout List
13804 \labelwidthstring 00.00.0000
13805
13806 \family sans
13807 M-p\InsetSpace ~
13808 S-R
13809 \family default
13810  
13811 \family typewriter
13812 layout Rotatefoilhead
13813 \end_layout
13814
13815 \begin_layout List
13816 \labelwidthstring 00.00.0000
13817
13818 \family sans
13819 M-p\InsetSpace ~
13820 C-a
13821 \family default
13822  
13823 \family typewriter
13824 layout RightAddress
13825 \end_layout
13826
13827 \begin_layout List
13828 \labelwidthstring 00.00.0000
13829
13830 \family sans
13831 M-p\InsetSpace ~
13832 M-a
13833 \family default
13834  
13835 \family typewriter
13836 layout Address
13837 \end_layout
13838
13839 \begin_layout List
13840 \labelwidthstring 00.00.0000
13841
13842 \family sans
13843 M-p\InsetSpace ~
13844 M-c
13845 \family default
13846  
13847 \family typewriter
13848 layout Caption
13849 \end_layout
13850
13851 \begin_layout List
13852 \labelwidthstring 00.00.0000
13853
13854 \family sans
13855 M-p\InsetSpace ~
13856 Left
13857 \family default
13858  
13859 \family typewriter
13860 depth-decrement
13861 \end_layout
13862
13863 \begin_layout List
13864 \labelwidthstring 00.00.0000
13865
13866 \family sans
13867 M-p\InsetSpace ~
13868 Right
13869 \family default
13870  
13871 \family typewriter
13872 depth-increment
13873 \end_layout
13874
13875 \begin_layout Standard
13876 These ones are kept for backwards compatibility, but only make sense on
13877  a qwerty keyboard:
13878 \end_layout
13879
13880 \begin_layout List
13881 \labelwidthstring 00.00.0000
13882
13883 \family sans
13884 M-p\InsetSpace ~
13885 S-at
13886 \family default
13887  
13888 \family typewriter
13889 layout Section*
13890 \end_layout
13891
13892 \begin_layout List
13893 \labelwidthstring 00.00.0000
13894
13895 \family sans
13896 M-p\InsetSpace ~
13897 S-dollar
13898 \family default
13899  
13900 \family typewriter
13901 layout Subsubsection*
13902 \end_layout
13903
13904 \begin_layout List
13905 \labelwidthstring 00.00.0000
13906
13907 \family sans
13908 M-p\InsetSpace ~
13909 S-numbersign
13910 \family default
13911  
13912 \family typewriter
13913 layout Subsection*
13914 \end_layout
13915
13916 \begin_layout Section
13917 Keyboard
13918 \end_layout
13919
13920 \begin_layout Subsection
13921 Specific to 
13922 \family typewriter
13923 emacs.bind
13924 \end_layout
13925
13926 \begin_layout List
13927 \labelwidthstring 00.00.0000
13928
13929 \family sans
13930 C-a
13931 \family default
13932  
13933 \family typewriter
13934 line-begin
13935 \end_layout
13936
13937 \begin_layout List
13938 \labelwidthstring 00.00.0000
13939
13940 \family sans
13941 C-b
13942 \family default
13943  
13944 \family typewriter
13945 char-backward
13946 \end_layout
13947
13948 \begin_layout List
13949 \labelwidthstring 00.00.0000
13950
13951 \family sans
13952 C-d
13953 \family default
13954  
13955 \family typewriter
13956 delete-forward
13957 \end_layout
13958
13959 \begin_layout List
13960 \labelwidthstring 00.00.0000
13961
13962 \family sans
13963 C-e
13964 \family default
13965  
13966 \family typewriter
13967 line-end
13968 \end_layout
13969
13970 \begin_layout List
13971 \labelwidthstring 00.00.0000
13972
13973 \family sans
13974 C-f
13975 \family default
13976  
13977 \family typewriter
13978 char-forward
13979 \end_layout
13980
13981 \begin_layout List
13982 \labelwidthstring 00.00.0000
13983
13984 \family sans
13985 C-g
13986 \family default
13987  
13988 \family typewriter
13989 cancel
13990 \end_layout
13991
13992 \begin_layout List
13993 \labelwidthstring 00.00.0000
13994
13995 \family sans
13996 C-h
13997 \family default
13998  
13999 \family typewriter
14000 hyphenation-point-insert
14001 \end_layout
14002
14003 \begin_layout List
14004 \labelwidthstring 00.00.0000
14005
14006 \family sans
14007 C-i
14008 \family default
14009  
14010 \family typewriter
14011 hfill-insert
14012 \end_layout
14013
14014 \begin_layout List
14015 \labelwidthstring 00.00.0000
14016
14017 \family sans
14018 C-k
14019 \family default
14020  
14021 \family typewriter
14022 line-delete-forward
14023 \end_layout
14024
14025 \begin_layout List
14026 \labelwidthstring 00.00.0000
14027
14028 \family sans
14029 C-l
14030 \family default
14031  
14032 \family typewriter
14033 screen-recenter
14034 \end_layout
14035
14036 \begin_layout List
14037 \labelwidthstring 00.00.0000
14038
14039 \family sans
14040 C-m
14041 \family default
14042  
14043 \family typewriter
14044 mark-toggle
14045 \end_layout
14046
14047 \begin_layout List
14048 \labelwidthstring 00.00.0000
14049
14050 \family sans
14051 C-n
14052 \family default
14053  
14054 \family typewriter
14055 down
14056 \end_layout
14057
14058 \begin_layout List
14059 \labelwidthstring 00.00.0000
14060
14061 \family sans
14062 C-o
14063 \family default
14064  
14065 \family typewriter
14066 open-stuff
14067 \end_layout
14068
14069 \begin_layout List
14070 \labelwidthstring 00.00.0000
14071
14072 \family sans
14073 C-p
14074 \family default
14075  
14076 \family typewriter
14077 up
14078 \end_layout
14079
14080 \begin_layout List
14081 \labelwidthstring 00.00.0000
14082
14083 \family sans
14084 C-q
14085 \family default
14086  
14087 \family typewriter
14088 quote-insert 
14089 \end_layout
14090
14091 \begin_layout List
14092 \labelwidthstring 00.00.0000
14093
14094 \family sans
14095 C-s
14096 \family default
14097  
14098 \family typewriter
14099 find-replace
14100 \end_layout
14101
14102 \begin_layout List
14103 \labelwidthstring 00.00.0000
14104
14105 \family sans
14106 C-u
14107 \family default
14108  
14109 \family typewriter
14110 font-underline 
14111 \end_layout
14112
14113 \begin_layout List
14114 \labelwidthstring 00.00.0000
14115
14116 \family sans
14117 C-v
14118 \family default
14119  
14120 \family typewriter
14121 screen-down 
14122 \end_layout
14123
14124 \begin_layout List
14125 \labelwidthstring 00.00.0000
14126
14127 \family sans
14128 C-w
14129 \family default
14130  
14131 \family typewriter
14132 cut
14133 \end_layout
14134
14135 \begin_layout List
14136 \labelwidthstring 00.00.0000
14137
14138 \family sans
14139 C-y
14140 \family default
14141  
14142 \family typewriter
14143 paste
14144 \end_layout
14145
14146 \begin_layout List
14147 \labelwidthstring 00.00.0000
14148
14149 \family sans
14150 C-S-Y
14151 \family default
14152  
14153 \family typewriter
14154 layout-paste
14155 \end_layout
14156
14157 \begin_layout List
14158 \labelwidthstring 00.00.0000
14159
14160 \family sans
14161 C-x\InsetSpace ~
14162 a
14163 \family default
14164  
14165 \family typewriter
14166 buffer-auto-save
14167 \end_layout
14168
14169 \begin_layout List
14170 \labelwidthstring 00.00.0000
14171
14172 \family sans
14173 C-x\InsetSpace ~
14174 b
14175 \family default
14176  
14177 \family typewriter
14178 buffer-previous
14179 \end_layout
14180
14181 \begin_layout List
14182 \labelwidthstring 00.00.0000
14183
14184 \family sans
14185 C-x\InsetSpace ~
14186 c
14187 \family default
14188  
14189 \family typewriter
14190 lyx-quit
14191 \end_layout
14192
14193 \begin_layout List
14194 \labelwidthstring 00.00.0000
14195
14196 \family sans
14197 C-x\InsetSpace ~
14198 d
14199 \family default
14200  
14201 \family typewriter
14202 buffer-new
14203 \end_layout
14204
14205 \begin_layout List
14206 \labelwidthstring 00.00.0000
14207
14208 \family sans
14209 ?\InsetSpace ~
14210 C-x\InsetSpace ~
14211 f
14212 \family default
14213  
14214 \family typewriter
14215 buffer-open
14216 \end_layout
14217
14218 \begin_layout List
14219 \labelwidthstring 00.00.0000
14220
14221 \family sans
14222 C-x\InsetSpace ~
14223 g
14224 \family default
14225  
14226 \family typewriter
14227 buffer-view-ps
14228 \end_layout
14229
14230 \begin_layout List
14231 \labelwidthstring 00.00.0000
14232
14233 \family sans
14234 C-x\InsetSpace ~
14235 k
14236 \family default
14237  
14238 \family typewriter
14239 buffer-close
14240 \end_layout
14241
14242 \begin_layout List
14243 \labelwidthstring 00.00.0000
14244
14245 \family sans
14246 C-x\InsetSpace ~
14247 p
14248 \family default
14249  
14250 \family typewriter
14251 buffer-view
14252 \end_layout
14253
14254 \begin_layout List
14255 \labelwidthstring 00.00.0000
14256
14257 \family sans
14258 C-x\InsetSpace ~
14259 r
14260 \family default
14261  
14262 \family typewriter
14263 buffer-typeset
14264 \end_layout
14265
14266 \begin_layout List
14267 \labelwidthstring 00.00.0000
14268
14269 \family sans
14270 ?\InsetSpace ~
14271 C-x\InsetSpace ~
14272 s
14273 \family default
14274  
14275 \family typewriter
14276 buffer-write
14277 \end_layout
14278
14279 \begin_layout List
14280 \labelwidthstring 00.00.0000
14281
14282 \family sans
14283 C-x\InsetSpace ~
14284 t
14285 \family default
14286  
14287 \family typewriter
14288 buffer-typeset
14289 \end_layout
14290
14291 \begin_layout List
14292 \labelwidthstring 00.00.0000
14293
14294 \family sans
14295 C-x\InsetSpace ~
14296 u
14297 \family default
14298  
14299 \family typewriter
14300 undo
14301 \end_layout
14302
14303 \begin_layout List
14304 \labelwidthstring 00.00.0000
14305
14306 \family sans
14307 C-x\InsetSpace ~
14308 v\InsetSpace ~
14309 c
14310 \family default
14311  
14312 \family typewriter
14313 vc-undo-last
14314 \end_layout
14315
14316 \begin_layout List
14317 \labelwidthstring 00.00.0000
14318
14319 \family sans
14320 C-x\InsetSpace ~
14321 v\InsetSpace ~
14322 h
14323 \family default
14324  
14325 \family typewriter
14326 vc-history
14327 \end_layout
14328
14329 \begin_layout List
14330 \labelwidthstring 00.00.0000
14331
14332 \family sans
14333 C-x\InsetSpace ~
14334 v\InsetSpace ~
14335 i
14336 \family default
14337  
14338 \family typewriter
14339 vc-register
14340 \end_layout
14341
14342 \begin_layout List
14343 \labelwidthstring 00.00.0000
14344
14345 \family sans
14346 C-x\InsetSpace ~
14347 v\InsetSpace ~
14348 u
14349 \family default
14350  
14351 \family typewriter
14352 vc-revert
14353 \end_layout
14354
14355 \begin_layout List
14356 \labelwidthstring 00.00.0000
14357
14358 \family sans
14359 C-x\InsetSpace ~
14360 v\InsetSpace ~
14361 v
14362 \family default
14363  
14364 \family typewriter
14365 vc-check-in
14366 \end_layout
14367
14368 \begin_layout List
14369 \labelwidthstring 00.00.0000
14370
14371 \family sans
14372 ?\InsetSpace ~
14373 C-x\InsetSpace ~
14374 w
14375 \family default
14376  
14377 \family typewriter
14378 buffer-write-as
14379 \end_layout
14380
14381 \begin_layout List
14382 \labelwidthstring 00.00.0000
14383
14384 \family sans
14385 C-x\InsetSpace ~
14386 bracketleft
14387 \family default
14388  
14389 \family typewriter
14390 screen-up
14391 \end_layout
14392
14393 \begin_layout List
14394 \labelwidthstring 00.00.0000
14395
14396 \family sans
14397 C-x\InsetSpace ~
14398 bracketright
14399 \family default
14400  
14401 \family typewriter
14402 screen-down
14403 \end_layout
14404
14405 \begin_layout List
14406 \labelwidthstring 00.00.0000
14407
14408 \family sans
14409 C-x\InsetSpace ~
14410 C-a
14411 \family default
14412  
14413 \family typewriter
14414 buffer-auto-save
14415 \end_layout
14416
14417 \begin_layout List
14418 \labelwidthstring 00.00.0000
14419
14420 \family sans
14421 C-x\InsetSpace ~
14422 C-b
14423 \family default
14424  
14425 \family typewriter
14426 menu-open Documents
14427 \end_layout
14428
14429 \begin_layout List
14430 \labelwidthstring 00.00.0000
14431
14432 \family sans
14433 C-x\InsetSpace ~
14434 C-c
14435 \family default
14436  
14437 \family typewriter
14438 lyx-quit
14439 \end_layout
14440
14441 \begin_layout List
14442 \labelwidthstring 00.00.0000
14443
14444 \family sans
14445 C-x\InsetSpace ~
14446 C-d
14447 \family default
14448  
14449 \family typewriter
14450 buffer-new
14451 \end_layout
14452
14453 \begin_layout List
14454 \labelwidthstring 00.00.0000
14455
14456 \family sans
14457 C-x\InsetSpace ~
14458 C-f
14459 \family default
14460  
14461 \family typewriter
14462 buffer-open
14463 \end_layout
14464
14465 \begin_layout List
14466 \labelwidthstring 00.00.0000
14467
14468 \family sans
14469 C-x\InsetSpace ~
14470 C-g
14471 \family default
14472  
14473 \family typewriter
14474 buffer-view-ps
14475 \end_layout
14476
14477 \begin_layout List
14478 \labelwidthstring 00.00.0000
14479
14480 \family sans
14481 C-x\InsetSpace ~
14482 C-p
14483 \family default
14484  
14485 \family typewriter
14486 buffer-view
14487 \end_layout
14488
14489 \begin_layout List
14490 \labelwidthstring 00.00.0000
14491
14492 \family sans
14493 C-x\InsetSpace ~
14494 C-q
14495 \family default
14496  
14497 \family typewriter
14498 buffer-toggle-read-only
14499 \end_layout
14500
14501 \begin_layout List
14502 \labelwidthstring 00.00.0000
14503
14504 \family sans
14505 C-x\InsetSpace ~
14506 C-s
14507 \family default
14508  
14509 \family typewriter
14510 buffer-write
14511 \end_layout
14512
14513 \begin_layout List
14514 \labelwidthstring 00.00.0000
14515
14516 \family sans
14517 C-x\InsetSpace ~
14518 C-t
14519 \family default
14520  
14521 \family typewriter
14522 buffer-typeset
14523 \end_layout
14524
14525 \begin_layout List
14526 \labelwidthstring 00.00.0000
14527
14528 \family sans
14529 C-x\InsetSpace ~
14530 C-w
14531 \family default
14532  
14533 \family typewriter
14534 buffer-write-as
14535 \end_layout
14536
14537 \begin_layout List
14538 \labelwidthstring 00.00.0000
14539
14540 \family sans
14541 Home
14542 \family default
14543  
14544 \family typewriter
14545 buffer-begin
14546 \end_layout
14547
14548 \begin_layout List
14549 \labelwidthstring 00.00.0000
14550
14551 \family sans
14552 End
14553 \family default
14554  
14555 \family typewriter
14556 buffer-end
14557 \end_layout
14558
14559 \begin_layout List
14560 \labelwidthstring 00.00.0000
14561
14562 \family sans
14563 S-Home
14564 \family default
14565  
14566 \family typewriter
14567 line-begin-select
14568 \end_layout
14569
14570 \begin_layout List
14571 \labelwidthstring 00.00.0000
14572
14573 \family sans
14574 S-End
14575 \family default
14576  
14577 \family typewriter
14578 line-end-select
14579 \end_layout
14580
14581 \begin_layout List
14582 \labelwidthstring 00.00.0000
14583
14584 \family sans
14585 S-Up
14586 \family default
14587  
14588 \family typewriter
14589 up-select
14590 \end_layout
14591
14592 \begin_layout List
14593 \labelwidthstring 00.00.0000
14594
14595 \family sans
14596 S-Down
14597 \family default
14598  
14599 \family typewriter
14600 down-select
14601 \end_layout
14602
14603 \begin_layout List
14604 \labelwidthstring 00.00.0000
14605
14606 \family sans
14607 S-Next
14608 \family default
14609  
14610 \family typewriter
14611 screen-down-select
14612 \end_layout
14613
14614 \begin_layout List
14615 \labelwidthstring 00.00.0000
14616
14617 \family sans
14618 S-Prior
14619 \family default
14620  
14621 \family typewriter
14622 screen-up-select
14623 \end_layout
14624
14625 \begin_layout List
14626 \labelwidthstring 00.00.0000
14627
14628 \family sans
14629 S-Left
14630 \family default
14631  
14632 \family typewriter
14633 backward-select
14634 \end_layout
14635
14636 \begin_layout List
14637 \labelwidthstring 00.00.0000
14638
14639 \family sans
14640 S-Right
14641 \family default
14642  
14643 \family typewriter
14644 forward-select
14645 \end_layout
14646
14647 \begin_layout List
14648 \labelwidthstring 00.00.0000
14649
14650 \family sans
14651 C-Up
14652 \family default
14653  
14654 \family typewriter
14655 paragraph-up
14656 \end_layout
14657
14658 \begin_layout List
14659 \labelwidthstring 00.00.0000
14660
14661 \family sans
14662 C-Down
14663 \family default
14664  
14665 \family typewriter
14666 paragraph-down
14667 \end_layout
14668
14669 \begin_layout List
14670 \labelwidthstring 00.00.0000
14671
14672 \family sans
14673 C-Left
14674 \family default
14675  
14676 \family typewriter
14677 word-backward
14678 \end_layout
14679
14680 \begin_layout List
14681 \labelwidthstring 00.00.0000
14682
14683 \family sans
14684 C-Right
14685 \family default
14686  
14687 \family typewriter
14688 word-forward
14689 \end_layout
14690
14691 \begin_layout List
14692 \labelwidthstring 00.00.0000
14693
14694 \family sans
14695 C-Delete
14696 \family default
14697  
14698 \family typewriter
14699 word-delete-forward
14700 \end_layout
14701
14702 \begin_layout List
14703 \labelwidthstring 00.00.0000
14704
14705 \family sans
14706 C-BackSpace
14707 \family default
14708  
14709 \family typewriter
14710 word-delete-backward
14711 \end_layout
14712
14713 \begin_layout List
14714 \labelwidthstring 00.00.0000
14715
14716 \family sans
14717 C-Return
14718 \family default
14719  
14720 \family typewriter
14721 break-line
14722 \end_layout
14723
14724 \begin_layout List
14725 \labelwidthstring 00.00.0000
14726
14727 \family sans
14728 C-period
14729 \family default
14730  
14731 \family typewriter
14732 end-of-sentence-period-insert
14733 \end_layout
14734
14735 \begin_layout List
14736 \labelwidthstring 00.00.0000
14737
14738 \family sans
14739 C-space
14740 \family default
14741  
14742 \family typewriter
14743 protected-space-insert
14744 \end_layout
14745
14746 \begin_layout List
14747 \labelwidthstring 00.00.0000
14748
14749 \family sans
14750 C-S-at
14751 \family default
14752  
14753 \family typewriter
14754 mark-on
14755 \end_layout
14756
14757 \begin_layout List
14758 \labelwidthstring 00.00.0000
14759
14760 \family sans
14761 C-S-greater
14762 \family default
14763  
14764 \family typewriter
14765 label-goto
14766 \end_layout
14767
14768 \begin_layout List
14769 \labelwidthstring 00.00.0000
14770
14771 \family sans
14772 C-S-less
14773 \family default
14774  
14775 \family typewriter
14776 reference-back
14777 \end_layout
14778
14779 \begin_layout List
14780 \labelwidthstring 00.00.0000
14781
14782 \family sans
14783 C-S-slash
14784 \family default
14785  
14786 \family typewriter
14787 undo
14788 \end_layout
14789
14790 \begin_layout List
14791 \labelwidthstring 00.00.0000
14792
14793 \family sans
14794 C-S-underscore
14795 \family default
14796  
14797 \family typewriter
14798 undo
14799 \end_layout
14800
14801 \begin_layout List
14802 \labelwidthstring 00.00.0000
14803
14804 \family sans
14805 C-S-quotedbl
14806 \family default
14807  
14808 \family typewriter
14809 quote-insert
14810 \end_layout
14811
14812 \begin_layout List
14813 \labelwidthstring 00.00.0000
14814
14815 \family sans
14816 C-S-Home
14817 \family default
14818  
14819 \family typewriter
14820 buffer-begin-select
14821 \end_layout
14822
14823 \begin_layout List
14824 \labelwidthstring 00.00.0000
14825
14826 \family sans
14827 C-S-End
14828 \family default
14829  
14830 \family typewriter
14831 buffer-end-select
14832 \end_layout
14833
14834 \begin_layout List
14835 \labelwidthstring 00.00.0000
14836
14837 \family sans
14838 C-S-Up
14839 \family default
14840  
14841 \family typewriter
14842 paragraph-up-select
14843 \end_layout
14844
14845 \begin_layout List
14846 \labelwidthstring 00.00.0000
14847
14848 \family sans
14849 C-S-Down
14850 \family default
14851  
14852 \family typewriter
14853 paragraph-down-select
14854 \end_layout
14855
14856 \begin_layout List
14857 \labelwidthstring 00.00.0000
14858
14859 \family sans
14860 C-S-Left
14861 \family default
14862  
14863 \family typewriter
14864 word-backward-select
14865 \end_layout
14866
14867 \begin_layout List
14868 \labelwidthstring 00.00.0000
14869
14870 \family sans
14871 C-S-Right
14872 \family default
14873  
14874 \family typewriter
14875 word-forward-select
14876 \end_layout
14877
14878 \begin_layout List
14879 \labelwidthstring 00.00.0000
14880
14881 \family sans
14882 Escape
14883 \family default
14884  
14885 \family typewriter
14886 meta-prefix
14887 \end_layout
14888
14889 \begin_layout List
14890 \labelwidthstring 00.00.0000
14891
14892 \family sans
14893 M-d
14894 \family default
14895  
14896 \family typewriter
14897 word-delete-forward
14898 \end_layout
14899
14900 \begin_layout List
14901 \labelwidthstring 00.00.0000
14902
14903 \family sans
14904 M-w
14905 \family default
14906  
14907 \family typewriter
14908 copy
14909 \end_layout
14910
14911 \begin_layout List
14912 \labelwidthstring 00.00.0000
14913
14914 \family sans
14915 M-x
14916 \family default
14917  
14918 \family typewriter
14919 command-execute
14920 \end_layout
14921
14922 \begin_layout List
14923 \labelwidthstring 00.00.0000
14924
14925 \family sans
14926 M-S-W
14927 \family default
14928  
14929 \family typewriter
14930 layout-copy
14931 \end_layout
14932
14933 \begin_layout List
14934 \labelwidthstring 00.00.0000
14935
14936 \family sans
14937 M-period
14938 \family default
14939  
14940 \family typewriter
14941 dots-insert
14942 \end_layout
14943
14944 \begin_layout List
14945 \labelwidthstring 00.00.0000
14946
14947 \family sans
14948 M-Return
14949 \family default
14950  
14951 \family typewriter
14952 break-paragraph-keep-layout
14953 \end_layout
14954
14955 \begin_layout List
14956 \labelwidthstring 00.00.0000
14957
14958 \family sans
14959 M-S-percent
14960 \family default
14961  
14962 \family typewriter
14963 find-replace
14964 \end_layout
14965
14966 \begin_layout Subsection
14967 Specific to 
14968 \family typewriter
14969 cua.bind
14970 \end_layout
14971
14972 \begin_layout List
14973 \labelwidthstring 00.00.0000
14974
14975 \family sans
14976 C-b
14977 \family default
14978  
14979 \family typewriter
14980 font-bold
14981 \end_layout
14982
14983 \begin_layout List
14984 \labelwidthstring 00.00.0000
14985
14986 \family sans
14987 C-c
14988 \family default
14989  
14990 \family typewriter
14991 copy
14992 \end_layout
14993
14994 \begin_layout List
14995 \labelwidthstring 00.00.0000
14996
14997 \family sans
14998 C-d
14999 \family default
15000  
15001 \family typewriter
15002 buffer-view 
15003 \end_layout
15004
15005 \begin_layout List
15006 \labelwidthstring 00.00.0000
15007
15008 \family sans
15009 C-e
15010 \family default
15011  
15012 \family typewriter
15013 font-emph
15014 \end_layout
15015
15016 \begin_layout List
15017 \labelwidthstring 00.00.0000
15018
15019 \family sans
15020 C-f
15021 \family default
15022  
15023 \family typewriter
15024 find-replace
15025 \end_layout
15026
15027 \begin_layout List
15028 \labelwidthstring 00.00.0000
15029
15030 \family sans
15031 C-g
15032 \family default
15033  
15034 \family typewriter
15035 error-next
15036 \end_layout
15037
15038 \begin_layout List
15039 \labelwidthstring 00.00.0000
15040
15041 \family sans
15042 C-i
15043 \family default
15044  
15045 \family typewriter
15046 open-stuff 
15047 \end_layout
15048
15049 \begin_layout List
15050 \labelwidthstring 00.00.0000
15051
15052 \family sans
15053 C-k
15054 \family default
15055  
15056 \family typewriter
15057 font-noun 
15058 \end_layout
15059
15060 \begin_layout List
15061 \labelwidthstring 00.00.0000
15062
15063 \family sans
15064 C-l
15065 \family default
15066  
15067 \family typewriter
15068 tex-mode 
15069 \end_layout
15070
15071 \begin_layout List
15072 \labelwidthstring 00.00.0000
15073
15074 \family sans
15075 C-m
15076 \family default
15077  
15078 \family typewriter
15079 math-mode
15080 \end_layout
15081
15082 \begin_layout List
15083 \labelwidthstring 00.00.0000
15084
15085 \family sans
15086 C-n
15087 \family default
15088  
15089 \family typewriter
15090 buffer-new
15091 \end_layout
15092
15093 \begin_layout List
15094 \labelwidthstring 00.00.0000
15095
15096 \family sans
15097 C-o
15098 \family default
15099  
15100 \family typewriter
15101 buffer-open
15102 \end_layout
15103
15104 \begin_layout List
15105 \labelwidthstring 00.00.0000
15106
15107 \family sans
15108 C-p
15109 \family default
15110  
15111 \family typewriter
15112 buffer-print
15113 \end_layout
15114
15115 \begin_layout List
15116 \labelwidthstring 00.00.0000
15117
15118 \family sans
15119 C-q
15120 \family default
15121  
15122 \family typewriter
15123 lyx-quit
15124 \end_layout
15125
15126 \begin_layout List
15127 \labelwidthstring 00.00.0000
15128
15129 \family sans
15130 C-r
15131 \family default
15132  
15133 \family typewriter
15134 buffer-reload
15135 \end_layout
15136
15137 \begin_layout List
15138 \labelwidthstring 00.00.0000
15139
15140 \family sans
15141 C-s
15142 \family default
15143  
15144 \family typewriter
15145 buffer-write
15146 \end_layout
15147
15148 \begin_layout List
15149 \labelwidthstring 00.00.0000
15150
15151 \family sans
15152 C-t
15153 \family default
15154  
15155 \family typewriter
15156 buffer-view-ps
15157 \end_layout
15158
15159 \begin_layout List
15160 \labelwidthstring 00.00.0000
15161
15162 \family sans
15163 C-u
15164 \family default
15165  
15166 \family typewriter
15167 font-underline
15168 \end_layout
15169
15170 \begin_layout List
15171 \labelwidthstring 00.00.0000
15172
15173 \family sans
15174 C-v
15175 \family default
15176  
15177 \family typewriter
15178 paste
15179 \end_layout
15180
15181 \begin_layout List
15182 \labelwidthstring 00.00.0000
15183
15184 \family sans
15185 C-w
15186 \family default
15187  
15188 \family typewriter
15189 buffer-close
15190 \end_layout
15191
15192 \begin_layout List
15193 \labelwidthstring 00.00.0000
15194
15195 \family sans
15196 C-x
15197 \family default
15198  
15199 \family typewriter
15200 cut
15201 \end_layout
15202
15203 \begin_layout List
15204 \labelwidthstring 00.00.0000
15205
15206 \family sans
15207 C-z
15208 \family default
15209  
15210 \family typewriter
15211 undo
15212 \end_layout
15213
15214 \begin_layout List
15215 \labelwidthstring 00.00.0000
15216
15217 \family sans
15218 C-space
15219 \family default
15220  
15221 \family typewriter
15222 protected-space-insert
15223 \end_layout
15224
15225 \begin_layout List
15226 \labelwidthstring 00.00.0000
15227
15228 \family sans
15229 C-S-C
15230 \family default
15231  
15232 \family typewriter
15233 layout-copy
15234 \end_layout
15235
15236 \begin_layout List
15237 \labelwidthstring 00.00.0000
15238
15239 \family sans
15240 C-S-D
15241 \family default
15242  
15243 \family typewriter
15244 buffer-typeset
15245 \end_layout
15246
15247 \begin_layout List
15248 \labelwidthstring 00.00.0000
15249
15250 \family sans
15251 C-S-M
15252 \family default
15253  
15254 \family typewriter
15255 math-display
15256 \end_layout
15257
15258 \begin_layout List
15259 \labelwidthstring 00.00.0000
15260
15261 \family sans
15262 C-S-N
15263 \family default
15264  
15265 \family typewriter
15266 buffer-new-template
15267 \end_layout
15268
15269 \begin_layout List
15270 \labelwidthstring 00.00.0000
15271
15272 \family sans
15273 C-S-P
15274 \family default
15275  
15276 \family typewriter
15277 font-code 
15278 \end_layout
15279
15280 \begin_layout List
15281 \labelwidthstring 00.00.0000
15282
15283 \family sans
15284 C-S-S
15285 \family default
15286  
15287 \family typewriter
15288 buffer-write-as
15289 \end_layout
15290
15291 \begin_layout List
15292 \labelwidthstring 00.00.0000
15293
15294 \family sans
15295 C-S-T
15296 \family default
15297  
15298 \family typewriter
15299 buffer-typeset-ps
15300 \end_layout
15301
15302 \begin_layout List
15303 \labelwidthstring 00.00.0000
15304
15305 \family sans
15306 C-S-V
15307 \family default
15308  
15309 \family typewriter
15310 layout-paste
15311 \end_layout
15312
15313 \begin_layout List
15314 \labelwidthstring 00.00.0000
15315
15316 \family sans
15317 C-S-Z
15318 \family default
15319  
15320 \family typewriter
15321 redo
15322 \end_layout
15323
15324 \begin_layout List
15325 \labelwidthstring 00.00.0000
15326
15327 \family sans
15328 S-Insert
15329 \family default
15330  
15331 \family typewriter
15332 paste
15333 \end_layout
15334
15335 \begin_layout List
15336 \labelwidthstring 00.00.0000
15337
15338 \family sans
15339 S-Delete
15340 \family default
15341  
15342 \family typewriter
15343 cut
15344 \end_layout
15345
15346 \begin_layout List
15347 \labelwidthstring 00.00.0000
15348
15349 \family sans
15350 C-period
15351 \family default
15352  
15353 \family typewriter
15354 end-of-sentence-period-insert
15355 \end_layout
15356
15357 \begin_layout List
15358 \labelwidthstring 00.00.0000
15359
15360 \family sans
15361 C-S-greater
15362 \family default
15363  
15364 \family typewriter
15365 label-goto
15366 \end_layout
15367
15368 \begin_layout List
15369 \labelwidthstring 00.00.0000
15370
15371 \family sans
15372 C-S-less
15373 \family default
15374  
15375 \family typewriter
15376 reference-back
15377 \end_layout
15378
15379 \begin_layout List
15380 \labelwidthstring 00.00.0000
15381
15382 \family sans
15383 C-minus
15384 \family default
15385  
15386 \family typewriter
15387 hyphenation-point-insert
15388 \end_layout
15389
15390 \begin_layout List
15391 \labelwidthstring 00.00.0000
15392
15393 \family sans
15394 C-S-quotedbl
15395 \family default
15396  
15397 \family typewriter
15398 quote-insert
15399 \end_layout
15400
15401 \begin_layout List
15402 \labelwidthstring 00.00.0000
15403
15404 \family sans
15405 C-S-space
15406 \family default
15407  
15408 \family typewriter
15409 protected-space-insert
15410 \end_layout
15411
15412 \begin_layout List
15413 \labelwidthstring 00.00.0000
15414
15415 \family sans
15416 M-x
15417 \family default
15418  
15419 \family typewriter
15420 command-execute
15421 \end_layout
15422
15423 \begin_layout List
15424 \labelwidthstring 00.00.0000
15425
15426 \family sans
15427 S-Home
15428 \family default
15429  
15430 \family typewriter
15431 line-begin-select
15432 \end_layout
15433
15434 \begin_layout List
15435 \labelwidthstring 00.00.0000
15436
15437 \family sans
15438 S-End
15439 \family default
15440  
15441 \family typewriter
15442 line-end-select
15443 \end_layout
15444
15445 \begin_layout List
15446 \labelwidthstring 00.00.0000
15447
15448 \family sans
15449 S-Up
15450 \family default
15451  
15452 \family typewriter
15453 up-select
15454 \end_layout
15455
15456 \begin_layout List
15457 \labelwidthstring 00.00.0000
15458
15459 \family sans
15460 S-Down
15461 \family default
15462  
15463 \family typewriter
15464 down-select
15465 \end_layout
15466
15467 \begin_layout List
15468 \labelwidthstring 00.00.0000
15469
15470 \family sans
15471 S-Delete
15472 \family default
15473  
15474 \family typewriter
15475 cut
15476 \end_layout
15477
15478 \begin_layout List
15479 \labelwidthstring 00.00.0000
15480
15481 \family sans
15482 S-Insert
15483 \family default
15484  
15485 \family typewriter
15486 paste
15487 \end_layout
15488
15489 \begin_layout List
15490 \labelwidthstring 00.00.0000
15491
15492 \family sans
15493 S-Next
15494 \family default
15495  
15496 \family typewriter
15497 screen-down-select
15498 \end_layout
15499
15500 \begin_layout List
15501 \labelwidthstring 00.00.0000
15502
15503 \family sans
15504 S-Prior
15505 \family default
15506  
15507 \family typewriter
15508 screen-up-select
15509 \end_layout
15510
15511 \begin_layout List
15512 \labelwidthstring 00.00.0000
15513
15514 \family sans
15515 S-Left
15516 \family default
15517  
15518 \family typewriter
15519 backward-select
15520 \end_layout
15521
15522 \begin_layout List
15523 \labelwidthstring 00.00.0000
15524
15525 \family sans
15526 S-Right
15527 \family default
15528  
15529 \family typewriter
15530 forward-select
15531 \end_layout
15532
15533 \begin_layout List
15534 \labelwidthstring 00.00.0000
15535
15536 \family sans
15537 C-Home
15538 \family default
15539  
15540 \family typewriter
15541 buffer-begin
15542 \end_layout
15543
15544 \begin_layout List
15545 \labelwidthstring 00.00.0000
15546
15547 \family sans
15548 C-End
15549 \family default
15550  
15551 \family typewriter
15552 buffer-end
15553 \end_layout
15554
15555 \begin_layout List
15556 \labelwidthstring 00.00.0000
15557
15558 \family sans
15559 C-Up
15560 \family default
15561  
15562 \family typewriter
15563 paragraph-up
15564 \end_layout
15565
15566 \begin_layout List
15567 \labelwidthstring 00.00.0000
15568
15569 \family sans
15570 C-Down
15571 \family default
15572  
15573 \family typewriter
15574 paragraph-down
15575 \end_layout
15576
15577 \begin_layout List
15578 \labelwidthstring 00.00.0000
15579
15580 \family sans
15581 C-Delete
15582 \family default
15583  
15584 \family typewriter
15585 word-delete-forward
15586 \end_layout
15587
15588 \begin_layout List
15589 \labelwidthstring 00.00.0000
15590
15591 \family sans
15592 C-BackSpace
15593 \family default
15594  
15595 \family typewriter
15596 word-delete-backward
15597 \end_layout
15598
15599 \begin_layout List
15600 \labelwidthstring 00.00.0000
15601
15602 \family sans
15603 C-Insert
15604 \family default
15605  
15606 \family typewriter
15607 copy
15608 \end_layout
15609
15610 \begin_layout List
15611 \labelwidthstring 00.00.0000
15612
15613 \family sans
15614 C-Return
15615 \family default
15616  
15617 \family typewriter
15618 break-line
15619 \end_layout
15620
15621 \begin_layout List
15622 \labelwidthstring 00.00.0000
15623
15624 \family sans
15625 C-Left
15626 \family default
15627  
15628 \family typewriter
15629 word-backward
15630 \end_layout
15631
15632 \begin_layout List
15633 \labelwidthstring 00.00.0000
15634
15635 \family sans
15636 C-Right
15637 \family default
15638  
15639 \family typewriter
15640 word-forward
15641 \end_layout
15642
15643 \begin_layout List
15644 \labelwidthstring 00.00.0000
15645
15646 \family sans
15647 C-S-Down
15648 \family default
15649  
15650 \family typewriter
15651 paragraph-down-select
15652 \end_layout
15653
15654 \begin_layout List
15655 \labelwidthstring 00.00.0000
15656
15657 \family sans
15658 C-S-End
15659 \family default
15660  
15661 \family typewriter
15662 buffer-end-select
15663 \end_layout
15664
15665 \begin_layout List
15666 \labelwidthstring 00.00.0000
15667
15668 \family sans
15669 C-S-Home
15670 \family default
15671  
15672 \family typewriter
15673 buffer-begin-select
15674 \end_layout
15675
15676 \begin_layout List
15677 \labelwidthstring 00.00.0000
15678
15679 \family sans
15680 C-S-Left
15681 \family default
15682  
15683 \family typewriter
15684 word-backward-select
15685 \end_layout
15686
15687 \begin_layout List
15688 \labelwidthstring 00.00.0000
15689
15690 \family sans
15691 C-S-Right
15692 \family default
15693  
15694 \family typewriter
15695 word-forward-select
15696 \end_layout
15697
15698 \begin_layout List
15699 \labelwidthstring 00.00.0000
15700
15701 \family sans
15702 C-S-Up
15703 \family default
15704  
15705 \family typewriter
15706 paragraph-up-select
15707 \end_layout
15708
15709 \begin_layout List
15710 \labelwidthstring 00.00.0000
15711
15712 \family sans
15713 C-S-quotedbl
15714 \family default
15715  
15716 \family typewriter
15717 quote-insert
15718 \end_layout
15719
15720 \begin_layout List
15721 \labelwidthstring 00.00.0000
15722
15723 \family sans
15724 M-Return
15725 \family default
15726  
15727 \family typewriter
15728 break-paragraph-keep-layout
15729 \end_layout
15730
15731 \begin_layout List
15732 \labelwidthstring 00.00.0000
15733
15734 \family sans
15735 M-period
15736 \family default
15737  
15738 \family typewriter
15739 dots-insert
15740 \end_layout
15741
15742 \begin_layout List
15743 \labelwidthstring 00.00.0000
15744
15745 \family sans
15746 M-S-Right
15747 \family default
15748  
15749 \family typewriter
15750 depth-increment
15751 \end_layout
15752
15753 \begin_layout List
15754 \labelwidthstring 00.00.0000
15755
15756 \family sans
15757 M-S-Left
15758 \family default
15759  
15760 \family typewriter
15761 depth-decrement
15762 \end_layout
15763
15764 \begin_layout List
15765 \labelwidthstring 00.00.0000
15766
15767 \family sans
15768 Escape
15769 \family default
15770  
15771 \family typewriter
15772 cancel
15773 \end_layout
15774
15775 \begin_layout List
15776 \labelwidthstring 00.00.0000
15777
15778 \family sans
15779 F2
15780 \family default
15781  
15782 \family typewriter
15783 buffer-write
15784 \end_layout
15785
15786 \begin_layout List
15787 \labelwidthstring 00.00.0000
15788
15789 \family sans
15790 F3
15791 \family default
15792  
15793 \family typewriter
15794 buffer-open
15795 \end_layout
15796
15797 \begin_layout List
15798 \labelwidthstring 00.00.0000
15799
15800 \family sans
15801 F5
15802 \family default
15803  
15804 \family typewriter
15805 screen-recenter
15806 \end_layout
15807
15808 \begin_layout List
15809 \labelwidthstring 00.00.0000
15810
15811 \family sans
15812 F7
15813 \family default
15814  
15815 \family typewriter
15816 spellchecker
15817 \end_layout
15818
15819 \begin_layout List
15820 \labelwidthstring 00.00.0000
15821
15822 \family sans
15823 F9
15824 \family default
15825  
15826 \family typewriter
15827 meta-prefix
15828 \end_layout
15829
15830 \begin_layout List
15831 \labelwidthstring 00.00.0000
15832
15833 \family sans
15834 C-F4
15835 \family default
15836  
15837 \family typewriter
15838 buffer-close
15839 \end_layout
15840
15841 \begin_layout List
15842 \labelwidthstring 00.00.0000
15843
15844 \family sans
15845 M-F4
15846 \family default
15847  
15848 \family typewriter
15849 lyx-quit
15850 \end_layout
15851
15852 \begin_layout Subsection
15853 Specific to 
15854 \family typewriter
15855 sciword.bind
15856 \end_layout
15857
15858 \begin_layout Standard
15859 These are LyX keyboard definitions for mathematics, similar to those of
15860  Scientific Word.
15861 \end_layout
15862
15863 \begin_layout Standard
15864 The bindings file and the present documentation were prepared by Serge Winitzki
15865  with assistance from Jean-Marc Lasgouttes.
15866  Version 1.3, for LyX 1.2.x and 1.3.x.
15867 \end_layout
15868
15869 \begin_layout Standard
15870 These definitions make it a lot easier to type equations without using the
15871  mouse, especially for people familiar with Scientific Word.
15872  The standard LyX bindings such as 
15873 \family typewriter
15874 M-m
15875 \family default
15876  or 
15877 \family typewriter
15878 M-o
15879 \family default
15880  are unmodified.
15881 \end_layout
15882
15883 \begin_layout Standard
15884 Tip: to find the "LyX bind name" for a key, look at the status bar after
15885  typing some non-existent key combination.
15886  E.g.
15887  to find how "Ctrl-&" is referenced, press Ctrl-S and then Ctrl-&: the status
15888  bar shows "C-s S-C-ampersand." (This does not work in LyX 1.3.0!)
15889 \end_layout
15890
15891 \begin_layout List
15892 \labelwidthstring 00.00.0000
15893
15894 \family sans
15895 C-c
15896 \family default
15897  
15898 \family typewriter
15899 copy
15900 \family default
15901  -- Copy, cut, paste is as in Sciword, 
15902 \family typewriter
15903 C-c
15904 \family default
15905
15906 \family typewriter
15907 C-x
15908 \family default
15909 , and 
15910 \family typewriter
15911 C-v
15912 \family default
15913 .
15914 \end_layout
15915
15916 \begin_layout List
15917 \labelwidthstring 00.00.0000
15918
15919 \family sans
15920 C-d
15921 \family default
15922  
15923 \family typewriter
15924 math-display
15925 \family default
15926  -- Display equation toggle: type 
15927 \family typewriter
15928 C-d
15929 \family default
15930  to insert a displayed formula (
15931 \family typewriter
15932 d
15933 \family default
15934  for 
15935 \begin_inset Quotes eld
15936 \end_inset
15937
15938 displayed
15939 \begin_inset Quotes erd
15940 \end_inset
15941
15942 ).
15943  You can also type 
15944 \family typewriter
15945 C-d
15946 \family default
15947  in a displayed formula to convert it back to an inline formula.
15948 \end_layout
15949
15950 \begin_layout List
15951 \labelwidthstring 00.00.0000
15952
15953 \family sans
15954 C-f
15955 \family default
15956  
15957 \family typewriter
15958 math-insert 
15959 \backslash
15960 frac
15961 \family default
15962  -- Fractions: type 
15963 \family typewriter
15964 C-f
15965 \family default
15966  to insert a fraction (
15967 \family typewriter
15968 f
15969 \family default
15970  for 
15971 \begin_inset Quotes eld
15972 \end_inset
15973
15974 fraction
15975 \begin_inset Quotes erd
15976 \end_inset
15977
15978 ).
15979  You can also select an expression and type 
15980 \family typewriter
15981 C-f
15982 \family default
15983  to convert it to the numerator of a fraction.
15984  Note: pressing 
15985 \family typewriter
15986 Backspace
15987 \family default
15988  at the 
15989 \emph on
15990 left
15991 \emph default
15992  end of the denominator will delete the numerator and convert the denominator
15993  to a non-fraction.
15994 \end_layout
15995
15996 \begin_layout List
15997 \labelwidthstring 00.00.0000
15998
15999 \family sans
16000 C-i
16001 \family default
16002  
16003 \family typewriter
16004 math-insert 
16005 \backslash
16006 int
16007 \family default
16008  -- Inserts 
16009 \begin_inset Formula $\int$
16010 \end_inset
16011
16012  (
16013 \family typewriter
16014 i
16015 \family default
16016  for 
16017 \begin_inset Quotes eld
16018 \end_inset
16019
16020 integral
16021 \begin_inset Quotes erd
16022 \end_inset
16023
16024 )
16025 \end_layout
16026
16027 \begin_layout List
16028 \labelwidthstring 00.00.0000
16029
16030 \family sans
16031 C-k
16032 \family default
16033  
16034 \family typewriter
16035 line-delete-forward
16036 \family default
16037  -- Emacs-like binding: delete forward of cursor to end of line.
16038 \end_layout
16039
16040 \begin_layout List
16041 \labelwidthstring 00.00.0000
16042
16043 \family sans
16044 C-m
16045 \family default
16046  
16047 \family typewriter
16048 math-mode
16049 \family default
16050  -- A text/math toggle (
16051 \family typewriter
16052 m
16053 \family default
16054  for 
16055 \begin_inset Quotes eld
16056 \end_inset
16057
16058 math
16059 \begin_inset Quotes erd
16060 \end_inset
16061
16062 ): switches to math in text mode, and also inserts roman text in math mode.
16063  Also bound to 
16064 \family typewriter
16065 C-t
16066 \family default
16067  (
16068 \family typewriter
16069 t
16070 \family default
16071  for 
16072 \begin_inset Quotes eld
16073 \end_inset
16074
16075 text
16076 \begin_inset Quotes erd
16077 \end_inset
16078
16079 ).
16080 \end_layout
16081
16082 \begin_layout List
16083 \labelwidthstring 00.00.0000
16084
16085 \family sans
16086 C-n
16087 \family default
16088  
16089 \family typewriter
16090 math-number
16091 \family default
16092  -- Add/remove numbering in a single equation.
16093 \end_layout
16094
16095 \begin_layout List
16096 \labelwidthstring 00.00.0000
16097
16098 \family sans
16099 S-C-N
16100 \family default
16101  
16102 \family typewriter
16103 math-nonumber
16104 \family default
16105  -- Add/remove numbering at a line in equation arrays.
16106 \end_layout
16107
16108 \begin_layout Standard
16109 The above commands are toggles that control the numbering of equations (
16110 \family typewriter
16111 N
16112 \family default
16113  for 
16114 \begin_inset Quotes eld
16115 \end_inset
16116
16117 number
16118 \begin_inset Quotes erd
16119 \end_inset
16120
16121 ).
16122  Note: when deleting a number in a labeled eqnarray, the label is not really
16123  removed (the TeX code becomes 
16124 \begin_inset Quotes eld
16125 \end_inset
16126
16127
16128 \family typewriter
16129
16130 \backslash
16131 label{} 
16132 \backslash
16133 nonumber
16134 \family default
16135
16136 \begin_inset Quotes erd
16137 \end_inset
16138
16139  ) and this generates a (harmless) LaTeX warning.
16140 \end_layout
16141
16142 \begin_layout List
16143 \labelwidthstring 00.00.0000
16144
16145 \family sans
16146 C-o
16147 \family default
16148  
16149 \family typewriter
16150 file-open
16151 \family default
16152  -- Open a new document.
16153  (W*ndows)
16154 \end_layout
16155
16156 \begin_layout List
16157 \labelwidthstring 00.00.0000
16158
16159 \family sans
16160 C-q
16161 \family default
16162  
16163 \family typewriter
16164 quote-insert
16165 \family default
16166  -- Insert a quote character " (
16167 \family typewriter
16168 q
16169 \family default
16170  for 
16171 \begin_inset Quotes eld
16172 \end_inset
16173
16174 quote
16175 \begin_inset Quotes erd
16176 \end_inset
16177
16178 ).
16179  This is not the 
16180 \begin_inset Quotes eld
16181 \end_inset
16182
16183 smart
16184 \begin_inset Quotes erd
16185 \end_inset
16186
16187  double quote character that you get by default.
16188 \end_layout
16189
16190 \begin_layout List
16191 \labelwidthstring 00.00.0000
16192
16193 \family sans
16194 C-r
16195 \family default
16196  
16197 \family typewriter
16198 math-insert 
16199 \backslash
16200 sqrt
16201 \family default
16202  -- Square root sign 
16203 \begin_inset Formula $\sqrt{x}$
16204 \end_inset
16205
16206  (
16207 \family typewriter
16208 r
16209 \family default
16210  for 
16211 \begin_inset Quotes eld
16212 \end_inset
16213
16214 root
16215 \begin_inset Quotes erd
16216 \end_inset
16217
16218 ).
16219 \end_layout
16220
16221 \begin_layout List
16222 \labelwidthstring 00.00.0000
16223
16224 \family sans
16225 S-C-R
16226 \family default
16227  
16228 \family typewriter
16229 math-insert 
16230 \backslash
16231 root
16232 \family default
16233  -- root sign 
16234 \begin_inset Formula $\sqrt[n]{x}$
16235 \end_inset
16236
16237 .
16238 \end_layout
16239
16240 \begin_layout List
16241 \labelwidthstring 00.00.0000
16242
16243 \family sans
16244 C-t
16245 \family default
16246  
16247 \family typewriter
16248 math-mode
16249 \family default
16250  -- Another binding for a switch between the text and the math mode (
16251 \family typewriter
16252 t
16253 \family default
16254  is for 
16255 \begin_inset Quotes eld
16256 \end_inset
16257
16258 text
16259 \begin_inset Quotes erd
16260 \end_inset
16261
16262 ).
16263  Note that the roman text inserted in math mode is special.
16264 \end_layout
16265
16266 \begin_layout List
16267 \labelwidthstring 00.00.0000
16268
16269 \family sans
16270 C-u
16271 \family default
16272  
16273 \family typewriter
16274 font-underline
16275 \family default
16276  -- 
16277 \bar under
16278 Underline
16279 \bar default
16280  the selected text (text mode only, use things like 
16281 \family typewriter
16282
16283 \backslash
16284 overline
16285 \family default
16286  or 
16287 \family typewriter
16288
16289 \backslash
16290 underbar
16291 \family default
16292  for math ).
16293 \end_layout
16294
16295 \begin_layout List
16296 \labelwidthstring 00.00.0000
16297
16298 \family sans
16299 C-v
16300 \family default
16301  
16302 \family typewriter
16303 paste
16304 \family default
16305  -- W*ndows heritage.
16306 \end_layout
16307
16308 \begin_layout List
16309 \labelwidthstring 00.00.0000
16310
16311 \family sans
16312 C-w
16313 \family default
16314  
16315 \family typewriter
16316 buffer-close
16317 \family default
16318  -- Close the current document (again, a W*ndows heritage).
16319 \end_layout
16320
16321 \begin_layout List
16322 \labelwidthstring 00.00.0000
16323
16324 \family sans
16325 C-x
16326 \family default
16327  
16328 \family typewriter
16329 cut
16330 \end_layout
16331
16332 \begin_layout List
16333 \labelwidthstring 00.00.0000
16334
16335 \family sans
16336 C-z
16337 \family default
16338  
16339 \family typewriter
16340 undo
16341 \end_layout
16342
16343 \begin_layout List
16344 \labelwidthstring 00.00.0000
16345
16346 \family sans
16347 S-C-Z
16348 \family default
16349  
16350 \family typewriter
16351 redo
16352 \family default
16353  -- the 
16354 \begin_inset Quotes eld
16355 \end_inset
16356
16357 Redo
16358 \begin_inset Quotes erd
16359 \end_inset
16360
16361  operation, or 
16362 \begin_inset Quotes eld
16363 \end_inset
16364
16365 undo the undo
16366 \begin_inset Quotes erd
16367 \end_inset
16368
16369 .
16370 \end_layout
16371
16372 \begin_layout Standard
16373 Bracket delimiters: press 
16374 \family typewriter
16375 Ctrl
16376 \family default
16377 -<bracket key> to insert a matching pair of delimiters.
16378  For example, 
16379 \family typewriter
16380 Ctrl-[
16381 \family default
16382  inserts a pair of parentheses 
16383 \begin_inset Formula $\left[\right]$
16384 \end_inset
16385
16386 .
16387  (Note: 
16388 \family typewriter
16389 Ctrl-]
16390 \family default
16391  does the same thing.) It will switch to math mode if needed.
16392  The supported characters are ( [ { < |.
16393  It is the same to press the right or the left bracket.
16394  The corresponding delimiters are 
16395 \begin_inset Formula $\left(\right)$
16396 \end_inset
16397
16398  
16399 \begin_inset Formula $\left[\right]$
16400 \end_inset
16401
16402  
16403 \begin_inset Formula $\left\{ \right\} $
16404 \end_inset
16405
16406  
16407 \begin_inset Formula $\left\langle \right\rangle $
16408 \end_inset
16409
16410  
16411 \begin_inset Formula $\left|\right|$
16412 \end_inset
16413
16414 .
16415  The delimiters are 
16416 \begin_inset Quotes eld
16417 \end_inset
16418
16419 smart
16420 \begin_inset Quotes erd
16421 \end_inset
16422
16423  and resize with their contents.
16424  Use Math Panel to get other or non-matching delimiters.
16425  Press backspace on the 
16426 \emph on
16427 left
16428 \emph default
16429  delimiter to remove both 
16430 \begin_inset Quotes eld
16431 \end_inset
16432
16433 smart
16434 \begin_inset Quotes erd
16435 \end_inset
16436
16437  delimiters without removing their contents.
16438 \end_layout
16439
16440 \begin_layout List
16441 \labelwidthstring 00.00.0000
16442
16443 \family sans
16444 C-9
16445 \family default
16446  
16447 \family typewriter
16448 math-delim ( )
16449 \family default
16450  -- for convenience, pressing 
16451 \family typewriter
16452 Ctrl-9
16453 \family default
16454  is the same as 
16455 \family typewriter
16456 Ctrl-(
16457 \family default
16458  or 
16459 \family typewriter
16460 Ctrl-)
16461 \end_layout
16462
16463 \begin_layout List
16464 \labelwidthstring 00.00.0000
16465
16466 \family sans
16467 S-C-parenleft
16468 \family default
16469  
16470 \family typewriter
16471 math-delim ( )
16472 \end_layout
16473
16474 \begin_layout List
16475 \labelwidthstring 00.00.0000
16476
16477 \family sans
16478 C-0
16479 \family default
16480  
16481 \family typewriter
16482 math-delim ( )
16483 \end_layout
16484
16485 \begin_layout List
16486 \labelwidthstring 00.00.0000
16487
16488 \family sans
16489 S-C-parenright
16490 \family default
16491  
16492 \family typewriter
16493 math-delim ( )
16494 \end_layout
16495
16496 \begin_layout List
16497 \labelwidthstring 00.00.0000
16498
16499 \family sans
16500 C-bracketleft
16501 \family default
16502  
16503 \family typewriter
16504 math-delim [ ]
16505 \end_layout
16506
16507 \begin_layout List
16508 \labelwidthstring 00.00.0000
16509
16510 \family sans
16511 C-bracketright
16512 \family default
16513  
16514 \family typewriter
16515 math-delim [ ]
16516 \end_layout
16517
16518 \begin_layout List
16519 \labelwidthstring 00.00.0000
16520
16521 \family sans
16522 C-S-less
16523 \family default
16524  
16525 \family typewriter
16526 math-delim langle rangle
16527 \family default
16528  -- angular delimiters 
16529 \begin_inset Formula $\left\langle \right\rangle $
16530 \end_inset
16531
16532 , not to confuse with ordinary < > signs.
16533 \end_layout
16534
16535 \begin_layout List
16536 \labelwidthstring 00.00.0000
16537
16538 \family sans
16539 C-S-greater
16540 \family default
16541  
16542 \family typewriter
16543 math-delim langle rangle
16544 \end_layout
16545
16546 \begin_layout Standard
16547 The bar bracket: on some keyboards (e.g.\InsetSpace ~
16548 some British ones), the bar character
16549  is bound to an 
16550 \family typewriter
16551 Alt
16552 \family default
16553 -something and on some wayward Unices to "brokenbar".
16554  So we define all of these keys as well.
16555 \end_layout
16556
16557 \begin_layout List
16558 \labelwidthstring 00.00.0000
16559
16560 \family sans
16561 C-S-bar
16562 \family default
16563  
16564 \family typewriter
16565 math-delim | |
16566 \end_layout
16567
16568 \begin_layout List
16569 \labelwidthstring 00.00.0000
16570
16571 \family sans
16572 C-S-brokenbar
16573 \family default
16574  
16575 \family typewriter
16576 math-delim | |
16577 \end_layout
16578
16579 \begin_layout List
16580 \labelwidthstring 00.00.0000
16581
16582 \family sans
16583 C-M-bar
16584 \family default
16585  
16586 \family typewriter
16587 math-delim | |
16588 \end_layout
16589
16590 \begin_layout List
16591 \labelwidthstring 00.00.0000
16592
16593 \family sans
16594 S-C-braceleft
16595 \family default
16596  
16597 \family typewriter
16598 math-delim { }
16599 \end_layout
16600
16601 \begin_layout List
16602 \labelwidthstring 00.00.0000
16603
16604 \family sans
16605 S-C-braceright
16606 \family default
16607  
16608 \family typewriter
16609 math-delim { }
16610 \end_layout
16611
16612 \begin_layout Standard
16613 Accents are in most cases 
16614 \family typewriter
16615 Ctrl
16616 \family default
16617 -<accent key>, e.g.\InsetSpace ~
16618
16619 \family typewriter
16620 Ctrl-.
16621
16622 \family default
16623  for overdot, 
16624 \family typewriter
16625 Ctrl-'
16626 \family default
16627  for acute accent, 
16628 \family typewriter
16629 Ctrl-~
16630 \family default
16631  for tilde (you also need to press 
16632 \family typewriter
16633 Shift
16634 \family default
16635  here) etc.
16636  For example, 
16637 \begin_inset Quotes eld
16638 \end_inset
16639
16640
16641 \family typewriter
16642 Ctrl-'
16643 \family default
16644  
16645 \family typewriter
16646 a
16647 \family default
16648
16649 \begin_inset Quotes erd
16650 \end_inset
16651
16652  inserts á.
16653  Some accents work only in math mode and others only in text mode.
16654 \end_layout
16655
16656 \begin_layout List
16657 \labelwidthstring 00.00.0000
16658
16659 \family sans
16660 C-period
16661 \family default
16662  
16663 \family typewriter
16664 accent-dot
16665 \family default
16666  -- overdot accent, ȧ (text mode only).
16667 \end_layout
16668
16669 \begin_layout List
16670 \labelwidthstring 00.00.0000
16671
16672 \family sans
16673 C-comma
16674 \family default
16675  
16676 \family typewriter
16677 math-insert 
16678 \backslash
16679 dot
16680 \family default
16681  -- overdot accent, 
16682 \begin_inset Formula $\dot{a}$
16683 \end_inset
16684
16685  (math mode only -- in physics this denotes a first derivative).
16686 \end_layout
16687
16688 \begin_layout List
16689 \labelwidthstring 00.00.0000
16690
16691 \family sans
16692 C-equals
16693 \family default
16694  
16695 \family typewriter
16696 math-insert 
16697 \backslash
16698 overrightarrow
16699 \family default
16700  -- Vector accent over math 
16701 \begin_inset Formula $\overrightarrow{x}$
16702 \end_inset
16703
16704 .
16705 \end_layout
16706
16707 \begin_layout List
16708 \labelwidthstring 00.00.0000
16709
16710 \family sans
16711 S-C-quotedbl
16712 \family default
16713  
16714 \family typewriter
16715 accent-umlaut
16716 \family default
16717  -- umlaut accent, ä (text mode only)
16718 \end_layout
16719
16720 \begin_layout List
16721 \labelwidthstring 00.00.0000
16722
16723 \family sans
16724 S-C-colon
16725 \family default
16726  
16727 \family typewriter
16728 math-insert 
16729 \backslash
16730 ddot
16731 \family default
16732  -- double dot accent, 
16733 \begin_inset Formula $\ddot{a}$
16734 \end_inset
16735
16736  (math mode only -- in physics this denotes a second derivative).
16737  To get a triple dot in math mode, use 
16738 \family typewriter
16739
16740 \backslash
16741 dddot
16742 \end_layout
16743
16744 \begin_layout List
16745 \labelwidthstring 00.00.0000
16746
16747 \family sans
16748 C-quoteleft
16749 \family default
16750  
16751 \family typewriter
16752 accent-grave
16753 \family default
16754  -- grave accent à (text mode only, use 
16755 \family typewriter
16756
16757 \backslash
16758 grave
16759 \family default
16760  for math)
16761 \end_layout
16762
16763 \begin_layout List
16764 \labelwidthstring 00.00.0000
16765
16766 \family sans
16767 S-C-asciitilde
16768 \family default
16769  
16770 \family typewriter
16771 accent-tilde
16772 \family default
16773  -- tilde accent ã (text mode only, use 
16774 \family typewriter
16775
16776 \backslash
16777 tilde
16778 \family default
16779  for math)
16780 \end_layout
16781
16782 \begin_layout List
16783 \labelwidthstring 00.00.0000
16784
16785 \family sans
16786 C-apostrophe
16787 \family default
16788  
16789 \family typewriter
16790 accent-acute
16791 \family default
16792  -- acute accent á (text mode only, use 
16793 \family typewriter
16794
16795 \backslash
16796 acute
16797 \family default
16798  for math)
16799 \end_layout
16800
16801 \begin_layout List
16802 \labelwidthstring 00.00.0000
16803
16804 \family sans
16805 S-C-asciicircum
16806 \family default
16807  
16808 \family typewriter
16809 accent-circumflex
16810 \family default
16811  -- circumflex (caret) accent â (text mode only, use 
16812 \family typewriter
16813
16814 \backslash
16815 hat
16816 \family default
16817  for math).
16818 \end_layout
16819
16820 \begin_layout Standard
16821 Function keys.
16822  The new key S-F2 for creating a LaTeX file seems handy.
16823 \end_layout
16824
16825 \begin_layout List
16826 \labelwidthstring 00.00.0000
16827
16828 \family sans
16829 F2
16830 \family default
16831  
16832 \family typewriter
16833 buffer-write
16834 \family default
16835  -- Save current document.
16836 \end_layout
16837
16838 \begin_layout List
16839 \labelwidthstring 00.00.0000
16840
16841 \family sans
16842 S-F2
16843 \family default
16844  
16845 \family typewriter
16846 buffer-export latex
16847 \family default
16848  -- Write a LaTeX file for the current document.
16849 \end_layout
16850
16851 \begin_layout List
16852 \labelwidthstring 00.00.0000
16853
16854 \family sans
16855 F3
16856 \family default
16857  
16858 \family typewriter
16859 find-replace
16860 \family default
16861  -- Find and replace dialog.
16862 \end_layout
16863
16864 \begin_layout List
16865 \labelwidthstring 00.00.0000
16866
16867 \family sans
16868 C-F4
16869 \family default
16870  
16871 \family typewriter
16872 buffer-close
16873 \family default
16874  -- same as 
16875 \family typewriter
16876 C-w
16877 \family default
16878 .
16879 \end_layout
16880
16881 \begin_layout List
16882 \labelwidthstring 00.00.0000
16883
16884 \family sans
16885 M-F4
16886 \family default
16887  
16888 \family typewriter
16889 lyx-quit
16890 \family default
16891  -- 
16892 \family typewriter
16893 Alt-F4
16894 \family default
16895  to quit LyX is the W*ndows w*ndow manager's mnemonic.
16896 \end_layout
16897
16898 \begin_layout Standard
16899
16900 \family typewriter
16901 F4
16902 \family default
16903  to 
16904 \family typewriter
16905 F8
16906 \family default
16907  are used to switch fonts.
16908  Use 
16909 \family typewriter
16910 F4
16911 \family default
16912  to switch back to the normal font.
16913  The non-default font switches 
16914 \family typewriter
16915 F5
16916 \family default
16917  - 
16918 \family typewriter
16919 F8
16920 \family default
16921  all work as toggles.
16922  They also work on the whole word if you put the cursor in the middle of
16923  the word, or if you select some text.
16924 \end_layout
16925
16926 \begin_layout List
16927 \labelwidthstring 00.00.0000
16928
16929 \family sans
16930 F4
16931 \family default
16932  
16933 \family typewriter
16934 font-default
16935 \family default
16936  -- stop using any special font
16937 \end_layout
16938
16939 \begin_layout List
16940 \labelwidthstring 00.00.0000
16941
16942 \family sans
16943 F5
16944 \family default
16945  
16946 \family typewriter
16947 font-bold
16948 \family default
16949  -- make 
16950 \series bold
16951 bold
16952 \series default
16953  text.
16954 \end_layout
16955
16956 \begin_layout List
16957 \labelwidthstring 00.00.0000
16958
16959 \family sans
16960 F6
16961 \family default
16962  
16963 \family typewriter
16964 font-emph
16965 \family default
16966  -- make 
16967 \emph on
16968 emphasized
16969 \emph default
16970  text.
16971 \end_layout
16972
16973 \begin_layout List
16974 \labelwidthstring 00.00.0000
16975
16976 \family sans
16977 F7
16978 \family default
16979  
16980 \family typewriter
16981 font-code
16982 \family default
16983  -- make 
16984 \family typewriter
16985 typewritten
16986 \family default
16987  text.
16988 \end_layout
16989
16990 \begin_layout List
16991 \labelwidthstring 00.00.0000
16992
16993 \family sans
16994 F8
16995 \family default
16996  
16997 \family typewriter
16998 font-noun
16999 \family default
17000  -- make 
17001 \noun on
17002 Caps/small caps
17003 \noun default
17004  text.
17005  (Used sometimes for people's names.)
17006 \end_layout
17007
17008 \begin_layout Standard
17009
17010 \family typewriter
17011 F9
17012 \family default
17013  is bound as 
17014 \begin_inset Quotes eld
17015 \end_inset
17016
17017 meta-prefix
17018 \begin_inset Quotes erd
17019 \end_inset
17020
17021 , same as the 
17022 \family typewriter
17023 Alt
17024 \family default
17025  key (useful e.g.\InsetSpace ~
17026 if the keyboard has no working 
17027 \family typewriter
17028 Alt
17029 \family default
17030 ).
17031 \end_layout
17032
17033 \begin_layout Standard
17034 Here are some Sciword-inspired mnemonics for frequently used math symbols.
17035  Many symbols start with a 
17036 \family typewriter
17037 C-s
17038 \family default
17039  sequence.
17040  Therefore 
17041 \family typewriter
17042 C-s
17043 \family default
17044  cannot be itself bound to anything.
17045 \end_layout
17046
17047 \begin_layout List
17048 \labelwidthstring 00.00.0000
17049
17050 \family sans
17051 M-apostrophe
17052 \family default
17053  
17054 \family typewriter
17055 math-insert 
17056 \backslash
17057 prime
17058 \family default
17059  -- The 
17060 \begin_inset Quotes eld
17061 \end_inset
17062
17063 prime
17064 \begin_inset Quotes erd
17065 \end_inset
17066
17067  symbol 
17068 \begin_inset Formula $\prime$
17069 \end_inset
17070
17071  in math mode.
17072  This is frequently unnecessary: in most cases the normal apostrophe works
17073  just fine, e.g.
17074  
17075 \begin_inset Formula $x'+2x=0$
17076 \end_inset
17077
17078 , but in some cases this would generate a double superscript error in LaTeX.
17079  For example: 
17080 \begin_inset Formula $x^{\prime2}$
17081 \end_inset
17082
17083  (
17084 \begin_inset Formula $x$
17085 \end_inset
17086
17087  prime squared) must be entered with the prime character.
17088 \end_layout
17089
17090 \begin_layout List
17091 \labelwidthstring 00.00.0000
17092
17093 \family sans
17094 C-s\InsetSpace ~
17095 apostrophe
17096 \family default
17097  
17098 \family typewriter
17099 command-sequence math-superscript; math-insert 
17100 \backslash
17101 prime;
17102 \family default
17103  -- Insert a prime as a superscript (see example above).
17104 \end_layout
17105
17106 \begin_layout List
17107 \labelwidthstring 00.00.0000
17108
17109 \family sans
17110 C-Up
17111 \family default
17112  
17113 \family typewriter
17114 math-insert ^
17115 \family default
17116  -- Insert an upper index.
17117  Also, 
17118 \family typewriter
17119
17120 \end_layout
17121
17122 \begin_layout List
17123 \labelwidthstring 00.00.0000
17124
17125 \family sans
17126 C-Down
17127 \family default
17128  
17129 \family typewriter
17130 math-insert _
17131 \family default
17132  -- Insert a lower index.
17133  Also, 
17134 \family typewriter
17135 _
17136 \end_layout
17137
17138 \begin_layout List
17139 \labelwidthstring 00.00.0000
17140
17141 \family sans
17142 C-s\InsetSpace ~
17143 d
17144 \family default
17145  
17146 \family typewriter
17147 math-insert 
17148 \backslash
17149 partial
17150 \family default
17151  -- Partial derivative symbol 
17152 \begin_inset Formula $\partial$
17153 \end_inset
17154
17155 .
17156 \end_layout
17157
17158 \begin_layout List
17159 \labelwidthstring 00.00.0000
17160
17161 \family sans
17162 C-s\InsetSpace ~
17163 e
17164 \family default
17165  
17166 \family typewriter
17167 math-insert 
17168 \backslash
17169 sum
17170 \family default
17171  -- Summation symbol 
17172 \begin_inset Formula $\sum$
17173 \end_inset
17174
17175  (not the same as the Greek letter uppercase Sigma 
17176 \begin_inset Formula $\Sigma$
17177 \end_inset
17178
17179  because it can resize and allows smart upper/lower limits).
17180 \end_layout
17181
17182 \begin_layout List
17183 \labelwidthstring 00.00.0000
17184
17185 \family sans
17186 C-s\InsetSpace ~
17187 p
17188 \family default
17189  
17190 \family typewriter
17191 math-insert 
17192 \backslash
17193 prod
17194 \family default
17195  -- Product symbol 
17196 \begin_inset Formula $\prod$
17197 \end_inset
17198
17199  (not the same as the Greek letter uppercase Pi, 
17200 \begin_inset Formula $\Pi$
17201 \end_inset
17202
17203 ).
17204 \end_layout
17205
17206 \begin_layout List
17207 \labelwidthstring 00.00.0000
17208
17209 \family sans
17210 C-s\InsetSpace ~
17211 i
17212 \family default
17213  
17214 \family typewriter
17215 math-insert 
17216 \backslash
17217 infty
17218 \family default
17219  -- Infinity 
17220 \begin_inset Formula $\infty$
17221 \end_inset
17222
17223 .
17224 \end_layout
17225
17226 \begin_layout List
17227 \labelwidthstring 00.00.0000
17228
17229 \family sans
17230 C-s\InsetSpace ~
17231 x
17232 \family default
17233  
17234 \family typewriter
17235 math-insert 
17236 \backslash
17237 times
17238 \family default
17239  -- Cross product 
17240 \begin_inset Formula $\times$
17241 \end_inset
17242
17243 .
17244 \end_layout
17245
17246 \begin_layout List
17247 \labelwidthstring 00.00.0000
17248
17249 \family sans
17250 C-s\InsetSpace ~
17251 v
17252 \family default
17253  
17254 \family typewriter
17255 math-matrix 1 2
17256 \family default
17257  -- Insert a stacked array 
17258 \begin_inset Formula $\begin{array}{c}
17259 \begin{array}{c}
17260 \end{array}\end{array}$
17261 \end_inset
17262
17263 .
17264  (Frequently useful in formulae.)
17265 \end_layout
17266
17267 \begin_layout List
17268 \labelwidthstring 00.00.0000
17269
17270 \family sans
17271 C-s\InsetSpace ~
17272 m
17273 \family default
17274  
17275 \family typewriter
17276 math-matrix 3 3
17277 \family default
17278  -- Insert a 3
17279 \begin_inset Formula $\times$
17280 \end_inset
17281
17282 3 matrix 
17283 \begin_inset Formula $\begin{array}{ccc}
17284 \\\\\end{array}$
17285 \end_inset
17286
17287 .
17288  (Then you can modify its size using the 
17289 \family sans
17290 Edit\SpecialChar \menuseparator
17291 Math
17292 \family default
17293  menu.)
17294 \end_layout
17295
17296 \begin_layout List
17297 \labelwidthstring 00.00.0000
17298
17299 \family sans
17300 C-s\InsetSpace ~
17301 S-plus
17302 \family default
17303  
17304 \family typewriter
17305 math-insert 
17306 \backslash
17307 dagger
17308 \family default
17309  -- The 
17310 \begin_inset Quotes eld
17311 \end_inset
17312
17313 dagger
17314 \begin_inset Quotes erd
17315 \end_inset
17316
17317  
17318 \begin_inset Formula $\dagger$
17319 \end_inset
17320
17321 .
17322 \end_layout
17323
17324 \begin_layout List
17325 \labelwidthstring 00.00.0000
17326
17327 \family sans
17328 C-s\InsetSpace ~
17329 equal
17330 \family default
17331  
17332 \family typewriter
17333 math-insert 
17334 \backslash
17335 equiv
17336 \family default
17337  -- 
17338 \begin_inset Quotes eld
17339 \end_inset
17340
17341 Identical equality
17342 \begin_inset Quotes erd
17343 \end_inset
17344
17345  
17346 \begin_inset Formula $\equiv$
17347 \end_inset
17348
17349 .
17350 \end_layout
17351
17352 \begin_layout List
17353 \labelwidthstring 00.00.0000
17354
17355 \family sans
17356 M-equal
17357 \family default
17358  
17359 \family typewriter
17360 math-insert 
17361 \backslash
17362 approx
17363 \family default
17364  -- 
17365 \begin_inset Quotes eld
17366 \end_inset
17367
17368 Approximate equality
17369 \begin_inset Quotes erd
17370 \end_inset
17371
17372  
17373 \begin_inset Formula $\approx$
17374 \end_inset
17375
17376 .
17377 \end_layout
17378
17379 \begin_layout List
17380 \labelwidthstring 00.00.0000
17381
17382 \family sans
17383 M-minus
17384 \family default
17385  
17386 \family typewriter
17387 math-insert 
17388 \backslash
17389 sim
17390 \family default
17391  -- The 
17392 \begin_inset Quotes eld
17393 \end_inset
17394
17395 of order
17396 \begin_inset Quotes erd
17397 \end_inset
17398
17399  sign 
17400 \begin_inset Formula $\sim$
17401 \end_inset
17402
17403 .
17404 \end_layout
17405
17406 \begin_layout List
17407 \labelwidthstring 00.00.0000
17408
17409 \family sans
17410 C-minus
17411 \family default
17412  
17413 \family typewriter
17414 math-insert 
17415 \backslash
17416 rightarrow
17417 \family default
17418  -- The arrow 
17419 \begin_inset Formula $\rightarrow$
17420 \end_inset
17421
17422  as in 
17423 \begin_inset Formula $\lim_{x\rightarrow0}$
17424 \end_inset
17425
17426 .
17427 \end_layout
17428
17429 \begin_layout List
17430 \labelwidthstring 00.00.0000
17431
17432 \family sans
17433 S-M-less
17434 \family default
17435  
17436 \family typewriter
17437 math-insert 
17438 \backslash
17439 leq
17440 \family default
17441  -- Less-or-equal 
17442 \begin_inset Formula $\leq$
17443 \end_inset
17444
17445 .
17446 \end_layout
17447
17448 \begin_layout List
17449 \labelwidthstring 00.00.0000
17450
17451 \family sans
17452 S-M-greater
17453 \family default
17454  
17455 \family typewriter
17456 math-insert 
17457 \backslash
17458 geq
17459 \family default
17460  -- Greater-or-equal 
17461 \begin_inset Formula $\geq$
17462 \end_inset
17463
17464 .
17465 \end_layout
17466
17467 \begin_layout List
17468 \labelwidthstring 00.00.0000
17469
17470 \family sans
17471 C-s\InsetSpace ~
17472 S-less
17473 \family default
17474  
17475 \family typewriter
17476 math-insert 
17477 \backslash
17478 ll
17479 \family default
17480  -- 
17481 \begin_inset Quotes eld
17482 \end_inset
17483
17484 Much less than
17485 \begin_inset Quotes erd
17486 \end_inset
17487
17488  
17489 \begin_inset Formula $\ll$
17490 \end_inset
17491
17492  (useful in physics)
17493 \end_layout
17494
17495 \begin_layout List
17496 \labelwidthstring 00.00.0000
17497
17498 \family sans
17499 C-s\InsetSpace ~
17500 S-greater
17501 \family default
17502  
17503 \family typewriter
17504 math-insert 
17505 \backslash
17506 gg
17507 \family default
17508  -- 
17509 \begin_inset Quotes eld
17510 \end_inset
17511
17512 Much greater than
17513 \begin_inset Quotes erd
17514 \end_inset
17515
17516  sign 
17517 \begin_inset Formula $\gg$
17518 \end_inset
17519
17520 .
17521 \end_layout
17522
17523 \begin_layout Subsection
17524 Standard math bindings
17525 \end_layout
17526
17527 \begin_layout List
17528 \labelwidthstring 00.00.0000
17529
17530 \family sans
17531 M-m\InsetSpace ~
17532 b
17533 \family default
17534  
17535 \family typewriter
17536 math-insert 
17537 \backslash
17538 overline
17539 \end_layout
17540
17541 \begin_layout List
17542 \labelwidthstring 00.00.0000
17543
17544 \family sans
17545 M-m\InsetSpace ~
17546 d
17547 \family default
17548  
17549 \family typewriter
17550 math-display
17551 \end_layout
17552
17553 \begin_layout List
17554 \labelwidthstring 00.00.0000
17555
17556 \family sans
17557 M-m\InsetSpace ~
17558 e
17559 \family default
17560  
17561 \family typewriter
17562 math-insert ^
17563 \end_layout
17564
17565 \begin_layout List
17566 \labelwidthstring 00.00.0000
17567
17568 \family sans
17569 M-m\InsetSpace ~
17570 f
17571 \family default
17572  
17573 \family typewriter
17574 math-insert 
17575 \backslash
17576 frac
17577 \end_layout
17578
17579 \begin_layout List
17580 \labelwidthstring 00.00.0000
17581
17582 \family sans
17583 M-m\InsetSpace ~
17584 g
17585 \family default
17586  
17587 \family typewriter
17588 math-greek
17589 \end_layout
17590
17591 \begin_layout List
17592 \labelwidthstring 00.00.0000
17593
17594 \family sans
17595 M-m\InsetSpace ~
17596 h
17597 \family default
17598  
17599 \family typewriter
17600 accent-circumflex
17601 \end_layout
17602
17603 \begin_layout List
17604 \labelwidthstring 00.00.0000
17605
17606 \family sans
17607 M-m\InsetSpace ~
17608 i
17609 \family default
17610  
17611 \family typewriter
17612 math-insert 
17613 \backslash
17614 int
17615 \end_layout
17616
17617 \begin_layout List
17618 \labelwidthstring 00.00.0000
17619
17620 \family sans
17621 M-m\InsetSpace ~
17622 l
17623 \family default
17624  
17625 \family typewriter
17626 math-limits
17627 \end_layout
17628
17629 \begin_layout List
17630 \labelwidthstring 00.00.0000
17631
17632 \family sans
17633 M-m\InsetSpace ~
17634 m
17635 \family default
17636  
17637 \family typewriter
17638 math-mode
17639 \end_layout
17640
17641 \begin_layout List
17642 \labelwidthstring 00.00.0000
17643
17644 \family sans
17645 M-m\InsetSpace ~
17646 n
17647 \family default
17648  
17649 \family typewriter
17650 math-number
17651 \end_layout
17652
17653 \begin_layout List
17654 \labelwidthstring 00.00.0000
17655
17656 \family sans
17657 M-m\InsetSpace ~
17658 o
17659 \family default
17660  
17661 \family typewriter
17662 math-insert 
17663 \backslash
17664 oint
17665 \end_layout
17666
17667 \begin_layout List
17668 \labelwidthstring 00.00.0000
17669
17670 \family sans
17671 M-m\InsetSpace ~
17672 p
17673 \family default
17674  
17675 \family typewriter
17676 math-insert 
17677 \backslash
17678 partial
17679 \end_layout
17680
17681 \begin_layout List
17682 \labelwidthstring 00.00.0000
17683
17684 \family sans
17685 M-m\InsetSpace ~
17686 r
17687 \family default
17688  
17689 \family typewriter
17690 math-insert 
17691 \backslash
17692 sqrt
17693 \end_layout
17694
17695 \begin_layout List
17696 \labelwidthstring 00.00.0000
17697
17698 \family sans
17699 M-m\InsetSpace ~
17700 s
17701 \family default
17702  
17703 \family typewriter
17704 math-insert 
17705 \backslash
17706 sqrt
17707 \end_layout
17708
17709 \begin_layout List
17710 \labelwidthstring 00.00.0000
17711
17712 \family sans
17713 M-m\InsetSpace ~
17714 u
17715 \family default
17716  
17717 \family typewriter
17718 math-insert 
17719 \backslash
17720 sum
17721 \end_layout
17722
17723 \begin_layout List
17724 \labelwidthstring 00.00.0000
17725
17726 \family sans
17727 M-m\InsetSpace ~
17728 v
17729 \family default
17730  
17731 \family typewriter
17732 math-insert 
17733 \backslash
17734 vec
17735 \end_layout
17736
17737 \begin_layout List
17738 \labelwidthstring 00.00.0000
17739
17740 \family sans
17741 M-m\InsetSpace ~
17742 x
17743 \family default
17744  
17745 \family typewriter
17746 math-insert _
17747 \end_layout
17748
17749 \begin_layout List
17750 \labelwidthstring 00.00.0000
17751
17752 \family sans
17753 M-m\InsetSpace ~
17754 8
17755 \family default
17756  
17757 \family typewriter
17758 math-insert 
17759 \backslash
17760 infty
17761 \end_layout
17762
17763 \begin_layout List
17764 \labelwidthstring 00.00.0000
17765
17766 \family sans
17767 M-m\InsetSpace ~
17768 S-G
17769 \family default
17770  
17771 \family typewriter
17772 math-greek-toggle
17773 \end_layout
17774
17775 \begin_layout List
17776 \labelwidthstring 00.00.0000
17777
17778 \family sans
17779 M-m\InsetSpace ~
17780 S-N
17781 \family default
17782  
17783 \family typewriter
17784 math-nonumber
17785 \end_layout
17786
17787 \begin_layout List
17788 \labelwidthstring 00.00.0000
17789
17790 \family sans
17791 M-m\InsetSpace ~
17792 S-period
17793 \family default
17794  
17795 \family typewriter
17796 accent-dot
17797 \end_layout
17798
17799 \begin_layout List
17800 \labelwidthstring 00.00.0000
17801
17802 \family sans
17803 M-m\InsetSpace ~
17804 S-asciitilde
17805 \family default
17806  
17807 \family typewriter
17808 accent-tilde
17809 \end_layout
17810
17811 \begin_layout List
17812 \labelwidthstring 00.00.0000
17813
17814 \family sans
17815 M-m\InsetSpace ~
17816 S-apostrophe
17817 \family default
17818  
17819 \family typewriter
17820 math-insert 
17821 \backslash
17822 prime
17823 \end_layout
17824
17825 \begin_layout List
17826 \labelwidthstring 00.00.0000
17827
17828 \family sans
17829 M-m\InsetSpace ~
17830 S-parenleft
17831 \family default
17832  
17833 \family typewriter
17834 math-delim ( )
17835 \end_layout
17836
17837 \begin_layout List
17838 \labelwidthstring 00.00.0000
17839
17840 \family sans
17841 M-m\InsetSpace ~
17842 S-bracketleft
17843 \family default
17844  
17845 \family typewriter
17846 math-delim [ ]
17847 \end_layout
17848
17849 \begin_layout List
17850 \labelwidthstring 00.00.0000
17851
17852 \family sans
17853 M-m\InsetSpace ~
17854 S-braceleft
17855 \family default
17856  
17857 \family typewriter
17858 math-delim { }
17859 \end_layout
17860
17861 \begin_layout List
17862 \labelwidthstring 00.00.0000
17863
17864 \family sans
17865 M-m\InsetSpace ~
17866 S-less
17867 \family default
17868  
17869 \family typewriter
17870 math-delim langle rangle
17871 \end_layout
17872
17873 \begin_layout List
17874 \labelwidthstring 00.00.0000
17875
17876 \family sans
17877 M-m\InsetSpace ~
17878 S-greater
17879 \family default
17880  
17881 \family typewriter
17882 math-delim rangle langle
17883 \end_layout
17884
17885 \begin_layout List
17886 \labelwidthstring 00.00.0000
17887
17888 \family sans
17889 M-m\InsetSpace ~
17890 S-bar
17891 \family default
17892  
17893 \family typewriter
17894 math-delim | |
17895 \end_layout
17896
17897 \begin_layout List
17898 \labelwidthstring 00.00.0000
17899
17900 \family sans
17901 M-m\InsetSpace ~
17902 S-plus
17903 \family default
17904  
17905 \family typewriter
17906 math-insert 
17907 \backslash
17908 pm
17909 \end_layout
17910
17911 \begin_layout List
17912 \labelwidthstring 00.00.0000
17913
17914 \family sans
17915 M-m\InsetSpace ~
17916 S-equal
17917 \family default
17918  
17919 \family typewriter
17920 math-insert 
17921 \backslash
17922 neq
17923 \end_layout
17924
17925 \begin_layout Subsection
17926 Other Accelerators
17927 \end_layout
17928
17929 \begin_layout List
17930 \labelwidthstring 00.00.0000
17931
17932 \family sans
17933 M-k\InsetSpace ~
17934 o
17935 \family default
17936  
17937 \family typewriter
17938 keymap-off
17939 \end_layout
17940
17941 \begin_layout List
17942 \labelwidthstring 00.00.0000
17943
17944 \family sans
17945 M-k\InsetSpace ~
17946 t
17947 \family default
17948  
17949 \family typewriter
17950 keymap-toggle
17951 \end_layout
17952
17953 \begin_layout List
17954 \labelwidthstring 00.00.0000
17955
17956 \family sans
17957 M-k\InsetSpace ~
17958 x
17959 \family default
17960  
17961 \family typewriter
17962 keymap-off
17963 \end_layout
17964
17965 \begin_layout List
17966 \labelwidthstring 00.00.0000
17967
17968 \family sans
17969 M-k\InsetSpace ~
17970 1
17971 \family default
17972  
17973 \family typewriter
17974 keymap-primary
17975 \end_layout
17976
17977 \begin_layout List
17978 \labelwidthstring 00.00.0000
17979
17980 \family sans
17981 M-k\InsetSpace ~
17982 2
17983 \family default
17984  
17985 \family typewriter
17986 keymap-secondary
17987 \end_layout
17988
17989 \end_body
17990 \end_document