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