]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Separate caption and label from InsetListingsParams and handle them separately in...
[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 "Jean-Marc Lasgouttes" 
43 \author "usti" 
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 Provides 
5991 \family default
5992 \series default
5993 [
5994 \family typewriter
5995 string
5996 \family default
5997 ] [
5998 \family typewriter
5999 \emph on
6000 0
6001 \emph default
6002 , 1
6003 \family default
6004 ] Whether the class already provides the feature
6005 \family typewriter
6006  string
6007 \family default
6008 .
6009  A feature is in general the name of a package (amsmath, makeidx, \SpecialChar \ldots{}
6010 ) or a
6011  macro (url, boldsymbol,\SpecialChar \ldots{}
6012 ); the complete list of supported features is unfortunat
6013 ely not documented.
6014 \end_layout
6015
6016 \begin_layout Description
6017
6018 \family typewriter
6019 \series medium
6020 DefaultFont
6021 \family default
6022 \series default
6023  This is used to describe the default font of the document.
6024  See Section\InsetSpace ~
6025
6026 \begin_inset LatexCommand ref
6027 reference "sec:fonts"
6028
6029 \end_inset
6030
6031  for a description.
6032 \end_layout
6033
6034 \begin_layout Description
6035
6036 \family typewriter
6037 \series medium
6038 DefaultStyle
6039 \family default
6040 \series default
6041  [
6042 \family typewriter
6043 string
6044 \family default
6045 ] This is the style that will be assigned to new paragraphs, usually 
6046 \family sans
6047 Standard
6048 \family default
6049 .
6050  This will default to the first defined style if not given, but you are
6051  highly encouraged to use this directive.
6052 \end_layout
6053
6054 \begin_layout Description
6055
6056 \family typewriter
6057 \series medium
6058 TitleLatexType
6059 \family default
6060 \series default
6061  [
6062 \family typewriter
6063 \emph on
6064 CommandAfter
6065 \family default
6066 \emph default
6067
6068 \family typewriter
6069 Environment
6070 \family default
6071 ] Indicates what kind of markup is used to define the title of a document.
6072  
6073 \family typewriter
6074 CommandAfter
6075 \family default
6076  means that the macro with name 
6077 \family typewriter
6078 TitleLatexName
6079 \family default
6080  will be inserted after the last layout which has 
6081 \begin_inset Quotes eld
6082 \end_inset
6083
6084
6085 \family typewriter
6086 InTitle 1
6087 \family default
6088
6089 \begin_inset Quotes erd
6090 \end_inset
6091
6092 .
6093  
6094 \family typewriter
6095 Environment
6096 \family default
6097  corresponds to the case where the block of paragraphs which have 
6098 \begin_inset Quotes eld
6099 \end_inset
6100
6101
6102 \family typewriter
6103 InTitle 1
6104 \family default
6105
6106 \begin_inset Quotes erd
6107 \end_inset
6108
6109  should be enclosed into the 
6110 \family typewriter
6111 TitleLatexName
6112 \family default
6113  environment
6114 \family typewriter
6115 .
6116 \end_layout
6117
6118 \begin_layout Description
6119
6120 \family typewriter
6121 \series medium
6122 TitleLatexName
6123 \family default
6124 \series default
6125  [
6126 \family typewriter
6127 string="maketitle"
6128 \family default
6129 ] The name of the command/environment mentionned above.
6130 \end_layout
6131
6132 \begin_layout Description
6133
6134 \family typewriter
6135 \series medium
6136 Preamble\SpecialChar \ldots{}
6137 EndPreamble
6138 \family default
6139 \series default
6140  A set of macro definitions that will be output at the beginning of the
6141  LaTeX files.
6142  Use this for global definitions.
6143 \end_layout
6144
6145 \begin_layout Description
6146
6147 \family typewriter
6148 \series medium
6149 Input
6150 \family default
6151 \series default
6152  As its name implies, this command allows you to include another layout
6153  definition file within yours to avoid duplicating commands.
6154  Common examples are the standard layout files, for example, 
6155 \family typewriter
6156 stdclass.inc
6157 \family default
6158 , which contains most of the basic layouts.
6159 \end_layout
6160
6161 \begin_layout Description
6162
6163 \family typewriter
6164 \series medium
6165 Style\SpecialChar \ldots{}
6166 End
6167 \family default
6168 \series default
6169  This sequence defines a new style.
6170  If the style already exists, it will redefine some of its parameters instead.
6171  See Section\InsetSpace ~
6172
6173 \begin_inset LatexCommand ref
6174 reference "sec:style"
6175
6176 \end_inset
6177
6178  for details.
6179 \end_layout
6180
6181 \begin_layout Description
6182
6183 \family typewriter
6184 \series medium
6185 NoStyle
6186 \family default
6187 \series default
6188  This command deletes an existing style.
6189  This is particularly useful when you want to suppress a style that has
6190  be defined in an input file.
6191 \end_layout
6192
6193 \begin_layout Description
6194
6195 \family typewriter
6196 \series medium
6197 Float\SpecialChar \ldots{}
6198 End
6199 \family default
6200 \series default
6201  This sequence defines a new float.
6202  See Section\InsetSpace ~
6203
6204 \begin_inset LatexCommand ref
6205 reference "sec:floats"
6206
6207 \end_inset
6208
6209  for details.
6210 \end_layout
6211
6212 \begin_layout Description
6213
6214 \family typewriter
6215 \series medium
6216 NoFloat
6217 \family default
6218 \series default
6219  This command deletes an existing float.
6220  This is particularly useful when you want to suppress a float that has
6221  be defined in an input file.
6222 \end_layout
6223
6224 \begin_layout Description
6225
6226 \family typewriter
6227 \series medium
6228 CharStyle\SpecialChar \ldots{}
6229 End
6230 \family default
6231 \series default
6232  This section defines a new character style.
6233  See Section\InsetSpace ~
6234
6235 \begin_inset LatexCommand ref
6236 reference "sec:charstyle"
6237
6238 \end_inset
6239
6240  for a description.
6241 \end_layout
6242
6243 \begin_layout Description
6244
6245 \family typewriter
6246 \series medium
6247 Counter\SpecialChar \ldots{}
6248 End
6249 \family default
6250 \series default
6251  This sequence defines a new counter.
6252  See Section\InsetSpace ~
6253
6254 \begin_inset LatexCommand ref
6255 reference "sec:counter"
6256
6257 \end_inset
6258
6259  for details.
6260 \end_layout
6261
6262 \begin_layout Standard
6263 \begin_inset ERT
6264 status inlined
6265
6266 \begin_layout Standard
6267
6268
6269 \backslash
6270 end{sloppypar}
6271 \end_layout
6272
6273 \end_inset
6274
6275
6276 \end_layout
6277
6278 \begin_layout Subsection
6279
6280 \family typewriter
6281 ClassOptions
6282 \family default
6283  section
6284 \end_layout
6285
6286 \begin_layout Standard
6287 \begin_inset LatexCommand label
6288 name "sec:classoptions"
6289
6290 \end_inset
6291
6292 The 
6293 \family typewriter
6294 ClassOptions
6295 \family default
6296  section can contain the following entries:
6297 \end_layout
6298
6299 \begin_layout Description
6300
6301 \family typewriter
6302 \series medium
6303 FontSize
6304 \family default
6305 \series default
6306  [
6307 \family typewriter
6308 string="10|11|12"
6309 \family default
6310 ] The list of available font sizes for the document's main font, separated
6311  by 
6312 \begin_inset Quotes eld
6313 \end_inset
6314
6315
6316 \family typewriter
6317 |
6318 \family default
6319
6320 \begin_inset Quotes erd
6321 \end_inset
6322
6323 .
6324 \end_layout
6325
6326 \begin_layout Description
6327
6328 \family typewriter
6329 \series medium
6330 PageStyle
6331 \family default
6332 \series default
6333  [
6334 \family typewriter
6335 string="empty|plain|headings|fancy"
6336 \family default
6337 ] The list of available page styles, separated by 
6338 \begin_inset Quotes eld
6339 \end_inset
6340
6341
6342 \family typewriter
6343 |
6344 \family default
6345
6346 \begin_inset Quotes erd
6347 \end_inset
6348
6349 .
6350 \end_layout
6351
6352 \begin_layout Description
6353
6354 \family typewriter
6355 \series medium
6356 Other
6357 \family default
6358 \series default
6359  [
6360 \family typewriter
6361 string=""
6362 \family default
6363 ] Some document class options, separated by a comma, that will be added
6364  to the optional part of the 
6365 \family typewriter
6366
6367 \backslash
6368 documentclass
6369 \family default
6370  command.
6371 \end_layout
6372
6373 \begin_layout Subsection
6374 Specific Paragraph Layouts
6375 \end_layout
6376
6377 \begin_layout Standard
6378 \begin_inset LatexCommand label
6379 name "sec:style"
6380
6381 \end_inset
6382
6383 A paragraph layout description looks like this
6384 \begin_inset Foot
6385 status collapsed
6386
6387 \begin_layout Standard
6388 Note that this will either define a new layout or modify an existing one.
6389 \end_layout
6390
6391 \end_inset
6392
6393 :
6394 \end_layout
6395
6396 \begin_layout LyX-Code
6397 Style 
6398 \family roman
6399 \emph on
6400 name
6401 \end_layout
6402
6403 \begin_layout LyX-Code
6404  ...
6405 \end_layout
6406
6407 \begin_layout LyX-Code
6408 End
6409 \end_layout
6410
6411 \begin_layout Standard
6412 where the following commands are allowed:
6413 \end_layout
6414
6415 \begin_layout Standard
6416 \begin_inset ERT
6417 status inlined
6418
6419 \begin_layout Standard
6420
6421
6422 \backslash
6423 begin{sloppypar}
6424 \end_layout
6425
6426 \end_inset
6427
6428
6429 \end_layout
6430
6431 \begin_layout Description
6432
6433 \family typewriter
6434 \series medium
6435 CopyStyle
6436 \family default
6437 \series default
6438  
6439 \family typewriter
6440 [string]
6441 \family default
6442  This is used to copy all the features of an existing layout into the current
6443  one.
6444  
6445 \end_layout
6446
6447 \begin_layout Description
6448
6449 \family typewriter
6450 \series medium
6451 LatexType
6452 \family default
6453 \series default
6454  [
6455 \family typewriter
6456 \emph on
6457 Paragraph
6458 \emph default
6459 , Command, Environment, Item_Environment,
6460 \family default
6461  
6462 \family typewriter
6463 List_Environment
6464 \family default
6465 ] How the layout should be translated into LaTeX.
6466  
6467 \family typewriter
6468 Paragraph
6469 \family default
6470  means nothing special.
6471  
6472 \family typewriter
6473 Command
6474 \family default
6475  means 
6476 \family typewriter
6477
6478 \backslash
6479
6480 \emph on
6481 LatexName
6482 \emph default
6483 {\SpecialChar \ldots{}
6484 }
6485 \family default
6486  and 
6487 \family typewriter
6488 Environment
6489 \family default
6490  means 
6491 \family typewriter
6492
6493 \backslash
6494 begin{
6495 \emph on
6496 LatexName
6497 \emph default
6498 }\SpecialChar \ldots{}
6499
6500 \backslash
6501 end{
6502 \emph on
6503 LatexName
6504 \emph default
6505 }
6506 \family default
6507 .
6508  
6509 \family typewriter
6510 Item_Environment
6511 \family default
6512  is the same as 
6513 \family typewriter
6514 Environment
6515 \family default
6516 , except that a 
6517 \family typewriter
6518
6519 \backslash
6520 item
6521 \family default
6522  is generated for each paragraph of this environment.
6523  
6524 \family typewriter
6525 List_Environment
6526 \family default
6527  is the same as 
6528 \family typewriter
6529 Item_Environment
6530 \family default
6531 , except that 
6532 \family typewriter
6533 LabelWidthString
6534 \family default
6535  is passed as an argument to the environment.
6536  
6537 \family typewriter
6538 LabelWidthString
6539 \family default
6540  can be defined in the 
6541 \family sans
6542 \bar under
6543 L
6544 \bar default
6545 ayout\SpecialChar \menuseparator
6546
6547 \bar under
6548 P
6549 \bar default
6550 aragraph
6551 \family default
6552  dialog.
6553  
6554 \family typewriter
6555 \emph on
6556 LatexType
6557 \family default
6558 \emph default
6559  is perhaps a bit misleading, since these rules apply to SGML classes, too.
6560  Visit the SGML class files for specific examples.
6561 \end_layout
6562
6563 \begin_layout Description
6564
6565 \family typewriter
6566 \series medium
6567 InTitle
6568 \family default
6569 \series default
6570  
6571 \family typewriter
6572 [1, 0]
6573 \family default
6574  If 1, marks the layout as being part of a title block (see also the 
6575 \family typewriter
6576 TitleLatexType
6577 \family default
6578  and 
6579 \family typewriter
6580 TitleLatexName
6581 \family default
6582  global entries)
6583 \end_layout
6584
6585 \begin_layout Description
6586
6587 \family typewriter
6588 \series medium
6589 LatexName
6590 \family default
6591 \series default
6592  The name of the corresponding LaTeX stuff.
6593  Either the environment or command name.
6594 \end_layout
6595
6596 \begin_layout Description
6597
6598 \family typewriter
6599 \series medium
6600 LatexParam
6601 \family default
6602 \series default
6603  The optional parameter for the corresponding 
6604 \family typewriter
6605 \series medium
6606 LatexName
6607 \family default
6608 \series default
6609  stuff.
6610  This parameter cannot be changed from within LyX.
6611 \end_layout
6612
6613 \begin_layout Description
6614
6615 \family typewriter
6616 \series medium
6617 OptionalArgs
6618 \family default
6619 \series default
6620  [
6621 \family typewriter
6622 int=0
6623 \family default
6624 ] The number of optional arguments that can be used with this layout.
6625  This is useful for things like section headings, and only makes sense with
6626  LaTeX.
6627 \end_layout
6628
6629 \begin_layout Description
6630
6631 \family typewriter
6632 \series medium
6633 Margin
6634 \family default
6635 \series default
6636  [
6637 \family typewriter
6638 \emph on
6639 Static
6640 \emph default
6641 , Manual, Dynamic, First_Dynamic, Right_Address_Box
6642 \family default
6643
6644 \newline
6645 The kind of margin that the layout has on the left side.
6646  
6647 \family typewriter
6648 Static
6649 \family default
6650  just means a fixed margin.
6651  
6652 \family typewriter
6653 Manual
6654 \family default
6655  means that the left margin depends on the string entered in the 
6656 \family sans
6657 \bar under
6658 E
6659 \bar default
6660 dit\SpecialChar \menuseparator
6661
6662 \bar under
6663 P
6664 \bar default
6665 aragraph\InsetSpace ~
6666 Settings
6667 \family default
6668  dialog.
6669  This is used to typeset nice lists without tabulators.
6670  
6671 \family typewriter
6672 Dynamic
6673 \family default
6674  means that the margin depends on the size of the label.
6675  This is used for automatic enumerated headlines.
6676  It is obvious that the headline 
6677 \begin_inset Quotes eld
6678 \end_inset
6679
6680 5.4.3.2.1 Very long headline
6681 \begin_inset Quotes erd
6682 \end_inset
6683
6684  must have a wider left margin (as wide as 
6685 \begin_inset Quotes eld
6686 \end_inset
6687
6688 5.4.3.2.1
6689 \begin_inset Quotes erd
6690 \end_inset
6691
6692  plus the space) than 
6693 \begin_inset Quotes eld
6694 \end_inset
6695
6696 3.2 Very long headline
6697 \begin_inset Quotes erd
6698 \end_inset
6699
6700 , even if other word processors are not able to do this.
6701  
6702 \family typewriter
6703 First_Dynamic
6704 \family default
6705  is similar, but only the very first row of the paragraph is dynamic, while
6706  the others are static; this is used, for example, for descriptions.
6707  
6708 \family typewriter
6709 Right_Address_Box
6710 \family default
6711  means the margin is chosen in a way that the longest row of this paragraph
6712  fits to the right margin.
6713  This is used to typeset an address on the right edge of the page.
6714 \end_layout
6715
6716 \begin_layout Description
6717
6718 \family typewriter
6719 \series medium
6720 NextNoIndent
6721 \family default
6722 \series default
6723  [
6724 \family typewriter
6725 1,
6726 \family default
6727  
6728 \family typewriter
6729 \emph on
6730 0
6731 \family default
6732 \emph default
6733 ] Whether the following Paragraph is allowed to indent its very first row.
6734  
6735 \family typewriter
6736 1
6737 \family default
6738  means that it is not allowed to do so, 
6739 \family typewriter
6740 0
6741 \family default
6742  means it could do so if it wants to.
6743 \end_layout
6744
6745 \begin_layout Description
6746
6747 \family typewriter
6748 \series medium
6749 ParIndent
6750 \family default
6751 \series default
6752  [
6753 \family typewriter
6754 string=""
6755 \family default
6756 ] The indent of the very first line of a paragraph.
6757  The argument is passed as a string.
6758  For example 
6759 \family typewriter
6760 "MM"
6761 \family default
6762  means that the paragraph is indented with the width of 
6763 \family typewriter
6764 "MM"
6765 \family default
6766  in 
6767 \family typewriter
6768 the
6769 \family default
6770  normal font.
6771  You can get a negative width by prefixing the string with 
6772 \family typewriter
6773 "-"
6774 \family default
6775 .
6776  This way was chosen so that the look is the same with each used screen
6777  font.
6778  The 
6779 \family typewriter
6780 Parindent
6781 \family default
6782  will be fixed for a certain layout.
6783  The exception is Standard layout, since the indentation of a Standard layout
6784  paragraph can be prohibited with 
6785 \family typewriter
6786 NextNoIndent
6787 \family default
6788 .
6789  Also, Standard layout paragraphs inside environments use the 
6790 \family typewriter
6791 Parindent
6792 \family default
6793  of the environment, not their native one.
6794  For example, Standard paragraphs inside an enumeration are not indented.
6795 \end_layout
6796
6797 \begin_layout Description
6798
6799 \family typewriter
6800 \series medium
6801 Parskip
6802 \family default
6803 \series default
6804  [
6805 \family typewriter
6806 float=0
6807 \family default
6808 ] LyX allows to choose either 
6809 \begin_inset Quotes eld
6810 \end_inset
6811
6812 indent
6813 \begin_inset Quotes erd
6814 \end_inset
6815
6816  or 
6817 \begin_inset Quotes eld
6818 \end_inset
6819
6820 skip
6821 \begin_inset Quotes erd
6822 \end_inset
6823
6824  to typeset a document.
6825  When 
6826 \begin_inset Quotes eld
6827 \end_inset
6828
6829 indent
6830 \begin_inset Quotes erd
6831 \end_inset
6832
6833  is chosen, this value is completely ignored.
6834  When 
6835 \begin_inset Quotes eld
6836 \end_inset
6837
6838 skip
6839 \begin_inset Quotes erd
6840 \end_inset
6841
6842  is chosen, the parindent of a LaTeXtype 
6843 \begin_inset Quotes eld
6844 \end_inset
6845
6846 Paragraph
6847 \begin_inset Quotes erd
6848 \end_inset
6849
6850  layout is ignored and all paragraphs are additionally separated by this
6851  parskip argument.
6852  The vertical space is calculated with 
6853 \family typewriter
6854 value*DefaultHeight()
6855 \family default
6856  where 
6857 \family typewriter
6858 DefaultHeight()
6859 \family default
6860  is the height of a row with the normal font.
6861  This way, the look stays the same with different screen fonts.
6862 \end_layout
6863
6864 \begin_layout Description
6865
6866 \family typewriter
6867 \series medium
6868 TopSep
6869 \family default
6870 \series default
6871  [
6872 \family typewriter
6873 float=0
6874 \family default
6875 ] The vertical space with which the very first of a chain of paragraphs
6876  with this layout is separated from the previous paragraph.
6877  If the previous paragraph has another layout, the separations are not simply
6878  added, but the maximum is taken.
6879 \end_layout
6880
6881 \begin_layout Description
6882
6883 \family typewriter
6884 \series medium
6885 BottomSep
6886 \family default
6887 \series default
6888  [
6889 \family typewriter
6890 float=0
6891 \family default
6892 ] The same as 
6893 \family typewriter
6894 TopSep
6895 \family default
6896  for the very last paragraph.
6897 \end_layout
6898
6899 \begin_layout Description
6900
6901 \family typewriter
6902 \series medium
6903 Parsep
6904 \family default
6905 \series default
6906  [
6907 \family typewriter
6908 float=0
6909 \family default
6910 ] The vertical space between two paragraphs of this layout.
6911 \end_layout
6912
6913 \begin_layout Description
6914
6915 \family typewriter
6916 \series medium
6917 Itemsep
6918 \family default
6919 \series default
6920  [
6921 \family typewriter
6922 float=0
6923 \family default
6924 ] This is an extra space between the paragraphs of an environment layout.
6925  If you put other layouts into an environment, each is separated with the
6926  environment's 
6927 \family typewriter
6928 Parsep
6929 \family default
6930 .
6931  But the whole items of the environment are additionally separated with
6932  this 
6933 \family typewriter
6934 Itemsep
6935 \family default
6936 .
6937  
6938 \end_layout
6939
6940 \begin_layout Description
6941
6942 \family typewriter
6943 \series medium
6944 LeftMargin
6945 \family default
6946 \series default
6947  [
6948 \family typewriter
6949 string=""
6950 \family default
6951 ] If you put layouts into environments, the leftmargins are not simply added,
6952  but added with a factor 
6953 \begin_inset Formula $\frac{4}{depth+4}$
6954 \end_inset
6955
6956 .
6957  Note that this parameter is also used when the border is defined as 
6958 \family typewriter
6959 Manual
6960 \family default
6961  or 
6962 \family typewriter
6963 Dynamic
6964 \family default
6965 .
6966  Then it is added to the manual or dynamic border.
6967  This string has the same meaning as for 
6968 \family typewriter
6969 ParIndent
6970 \family default
6971 .
6972 \end_layout
6973
6974 \begin_layout Description
6975
6976 \family typewriter
6977 \series medium
6978 RightMargin
6979 \family default
6980 \series default
6981  [
6982 \family typewriter
6983 string=""
6984 \family default
6985 ] Similar to 
6986 \family typewriter
6987 LeftMargin
6988 \family default
6989 .
6990 \end_layout
6991
6992 \begin_layout Description
6993
6994 \family typewriter
6995 \series medium
6996 Labeltype
6997 \family default
6998 \series default
6999  [
7000 \family typewriter
7001 \emph on
7002 No_Label
7003 \emph default
7004 , Manual, Static, Top_Environment, 
7005 \newline
7006 Centered_Top_Environment, Sensitive,
7007  Counter
7008 \family default
7009
7010 \newline
7011
7012 \family typewriter
7013 Manual
7014 \family default
7015  means the label is the very first word (up to the first real blank).
7016  
7017 \family typewriter
7018 Static
7019 \family default
7020  means it is defined in the layout (see 
7021 \family typewriter
7022 LabelString
7023 \family default
7024 ).
7025  
7026 \family typewriter
7027 Top_Environment
7028 \family default
7029  and 
7030 \family typewriter
7031 Centered_Top_Environment
7032 \family default
7033  are special cases of 
7034 \family typewriter
7035 Static
7036 \family default
7037 .
7038  The label will be printed above the paragraph, but only at the top of an
7039  environment or the top of a chain of paragraphs with this layout.
7040  Usage is for example the 
7041 \family sans
7042 Abstract
7043 \family default
7044  layout or the 
7045 \family sans
7046 Bibliography
7047 \family default
7048  layout.
7049  This is also the case for 
7050 \family typewriter
7051 Manual
7052 \family default
7053  labels with latex type 
7054 \family typewriter
7055 Environment
7056 \family default
7057 , in order to make layouts for theorems work correctly.
7058  
7059 \family typewriter
7060 Sensitive
7061 \family default
7062  is a special case for the caption-labels 
7063 \begin_inset Quotes eld
7064 \end_inset
7065
7066 Figure
7067 \begin_inset Quotes erd
7068 \end_inset
7069
7070  and 
7071 \begin_inset Quotes eld
7072 \end_inset
7073
7074 Table
7075 \begin_inset Quotes erd
7076 \end_inset
7077
7078 .
7079  
7080 \family typewriter
7081 Sensitive
7082 \family default
7083  means the (hardcoded) label string depends on the kind of float.
7084  The 
7085 \family typewriter
7086 Counter
7087 \family default
7088  label type defines automatically numbered labels.
7089 \end_layout
7090
7091 \begin_layout Description
7092
7093 \family typewriter
7094 \series medium
7095 LabelCounter
7096 \family default
7097 \series default
7098  [
7099 \family typewriter
7100 string=""
7101 \family default
7102 ]
7103 \newline
7104 The name of the counter for automatic numbering (see Section\InsetSpace ~
7105
7106 \begin_inset LatexCommand ref
7107 reference "sec:counter"
7108
7109 \end_inset
7110
7111  for details).
7112  This must be given if 
7113 \family typewriter
7114 \series medium
7115 Labeltype
7116 \family default
7117 \series default
7118  is 
7119 \family typewriter
7120 Counter
7121 \family default
7122 .
7123 \end_layout
7124
7125 \begin_layout Description
7126
7127 \family typewriter
7128 \series medium
7129 Labelsep
7130 \family default
7131 \series default
7132  [
7133 \family typewriter
7134 string=""
7135 \family default
7136 ] The horizontal space between the label and the text body.
7137  Only used for labels that are not above the text body.
7138 \end_layout
7139
7140 \begin_layout Description
7141
7142 \family typewriter
7143 \series medium
7144 LabelBottomsep
7145 \family default
7146 \series default
7147  [float=0] The vertical space between the label and the text body.
7148  Only used for labels that are above the text body (
7149 \family typewriter
7150 Top_Environment
7151 \family default
7152
7153 \family typewriter
7154 Centered_Top_Environment
7155 \family default
7156 ).
7157 \end_layout
7158
7159 \begin_layout Description
7160
7161 \family typewriter
7162 \series medium
7163 LabelString
7164 \family default
7165 \series default
7166  [
7167 \family typewriter
7168 string=""
7169 \family default
7170 ] The string used for a label with a 
7171 \family typewriter
7172 Static
7173 \family default
7174  labeltype.
7175  When the border is 
7176 \family typewriter
7177 Manual
7178 \family default
7179  this string is also used as a suggestion for the 
7180 \family typewriter
7181 LabelWidthString
7182 \family default
7183  that can be set in the 
7184 \family sans
7185 \bar under
7186 E
7187 \bar default
7188 dit\SpecialChar \menuseparator
7189
7190 \bar under
7191 P
7192 \bar default
7193 aragraph\InsetSpace ~
7194 Settings
7195 \family default
7196  dialog.
7197  When 
7198 \family typewriter
7199 \series medium
7200 LabelCounter
7201 \family default
7202 \series default
7203  is set, this string can be contain special formatting commands as explained
7204  in Section\InsetSpace ~
7205
7206 \begin_inset LatexCommand ref
7207 reference "sec:counter"
7208
7209 \end_inset
7210
7211 .
7212 \end_layout
7213
7214 \begin_layout Description
7215
7216 \family typewriter
7217 \series medium
7218 LabelStringAppendix
7219 \family default
7220 \series default
7221  [
7222 \family typewriter
7223 string=""
7224 \family default
7225 ] This is used inside the appendix instead of 
7226 \family typewriter
7227 LabelString
7228 \family default
7229 .
7230  Note that every 
7231 \family typewriter
7232 LabelString
7233 \family default
7234  statement resets 
7235 \family typewriter
7236 \series medium
7237 LabelStringAppendix
7238 \family default
7239 \series default
7240  too
7241 \family typewriter
7242 \series medium
7243 .
7244 \end_layout
7245
7246 \begin_layout Description
7247
7248 \family typewriter
7249 \series medium
7250 TocLevel [int]
7251 \family default
7252 \series default
7253  The level of the style in the table of contents.
7254  This is used for automatic numbering of section headings.
7255 \end_layout
7256
7257 \begin_layout Description
7258
7259 \family typewriter
7260 \series medium
7261 EndLabeltype
7262 \family default
7263 \series default
7264  [
7265 \family typewriter
7266 \emph on
7267 No_Label
7268 \emph default
7269 , Box, Filled_Box, Static
7270 \family default
7271 ] The type of label that stands at the end of the paragraph (or sequence
7272  of paragraphs if 
7273 \family typewriter
7274 LatexType
7275 \family default
7276  is 
7277 \family typewriter
7278 Environment
7279 \family default
7280
7281 \family typewriter
7282 Item_Environment
7283 \family default
7284  or 
7285 \family typewriter
7286 List_Environment
7287 \family default
7288 ).
7289  
7290 \family typewriter
7291 No_Label
7292 \family default
7293  means 
7294 \begin_inset Quotes eld
7295 \end_inset
7296
7297 nothing
7298 \begin_inset Quotes erd
7299 \end_inset
7300
7301
7302 \family typewriter
7303 Box
7304 \family default
7305  (resp.
7306 \family typewriter
7307 \InsetSpace ~
7308 Filled_Box
7309 \family default
7310 ) is a white (resp.\InsetSpace ~
7311 black) square suitable for end of proof markers, 
7312 \family typewriter
7313 Static
7314 \family default
7315  is an explicit text string.
7316 \end_layout
7317
7318 \begin_layout Description
7319
7320 \family typewriter
7321 \series medium
7322 EndLabelString
7323 \family default
7324 \series default
7325  [
7326 \family typewriter
7327 string=""
7328 \family default
7329 ] The string used for a label with a 
7330 \family typewriter
7331 Static
7332 \family default
7333  
7334 \family typewriter
7335 EndLabelType
7336 \family default
7337 .
7338  
7339 \end_layout
7340
7341 \begin_layout Description
7342
7343 \family typewriter
7344 \series medium
7345 Align
7346 \family default
7347 \series default
7348  [
7349 \family typewriter
7350 \emph on
7351 block
7352 \emph default
7353 , left, right, center
7354 \family default
7355 ] Paragraph alignment.
7356 \end_layout
7357
7358 \begin_layout Description
7359
7360 \family typewriter
7361 \series medium
7362 AlignPossible
7363 \family default
7364 \series default
7365  [
7366 \family typewriter
7367 \emph on
7368 block
7369 \emph default
7370 , left, right, center
7371 \family default
7372 ] A comma separated 
7373 \emph on
7374 list
7375 \emph default
7376  of possible aligns.
7377  Some LaTeX styles prohibit certain alignments, since those wouldn't make
7378  sense.
7379  For example a right-aligned or centered enumeration isn't possible.
7380 \end_layout
7381
7382 \begin_layout Description
7383
7384 \family typewriter
7385 \series medium
7386 Fill_Top
7387 \family default
7388 \series default
7389  [
7390 \family typewriter
7391 \emph on
7392 0
7393 \emph default
7394 ,1
7395 \family default
7396 ] With this parameter the 
7397 \family sans
7398 Fill
7399 \family default
7400  value of the 
7401 \begin_inset Quotes eld
7402 \end_inset
7403
7404 Vertical space above
7405 \begin_inset Quotes erd
7406 \end_inset
7407
7408  list of the 
7409 \family sans
7410 \bar under
7411 E
7412 \bar default
7413 dit\SpecialChar \menuseparator
7414
7415 \bar under
7416 P
7417 \bar default
7418 aragraph\InsetSpace ~
7419 Settings
7420 \family default
7421  dialog can be set when initializing a paragraph with this layout
7422 \begin_inset Foot
7423 status collapsed
7424
7425 \begin_layout Standard
7426
7427 \emph on
7428 Note from Jean-Marc:
7429 \emph default
7430  I'm not sure that this setting has much use, and it should probably be
7431  removed in later versions.
7432 \end_layout
7433
7434 \end_inset
7435
7436 .
7437  
7438 \end_layout
7439
7440 \begin_layout Description
7441
7442 \family typewriter
7443 \series medium
7444 Fill_Bottom
7445 \family default
7446 \series default
7447  [
7448 \family typewriter
7449 \emph on
7450 0
7451 \emph default
7452 ,1
7453 \family default
7454 ] Similar to 
7455 \family typewriter
7456 Fill_Top
7457 \family default
7458 .
7459 \end_layout
7460
7461 \begin_layout Description
7462
7463 \family typewriter
7464 \series medium
7465 NeedProtect
7466 \family default
7467 \series default
7468  [
7469 \family typewriter
7470 \emph on
7471 0
7472 \emph default
7473 ,1
7474 \family default
7475 ] Whether fragile commands in this layout should be 
7476 \family typewriter
7477
7478 \backslash
7479 protect
7480 \family default
7481 'ed.
7482 \end_layout
7483
7484 \begin_layout Description
7485
7486 \family typewriter
7487 \series medium
7488 Newline
7489 \family default
7490 \series default
7491  [
7492 \family typewriter
7493 0,
7494 \family default
7495  
7496 \family typewriter
7497 \emph on
7498 1
7499 \family default
7500 \emph default
7501 ] Whether newlines are translated into LaTeX newlines (
7502 \family typewriter
7503
7504 \backslash
7505
7506 \backslash
7507
7508 \family default
7509 ) or not.
7510  The translation can be switched off to allow more comfortable LaTeX editing
7511  inside LyX.
7512 \end_layout
7513
7514 \begin_layout Description
7515
7516 \family typewriter
7517 \series medium
7518 PassThru
7519 \family default
7520 \series default
7521  [
7522 \family typewriter
7523 \emph on
7524 0
7525 \emph default
7526 , 1
7527 \family default
7528 ] Whether the contents of this paragraph should be output in raw form, meaning
7529  without special translations that LaTeX would require.
7530  This somehow replaces the older 
7531 \family typewriter
7532 Latex
7533 \family default
7534  font property.
7535 \end_layout
7536
7537 \begin_layout Description
7538
7539 \family typewriter
7540 \series medium
7541 FreeSpacing
7542 \family default
7543 \series default
7544  [
7545 \family typewriter
7546 \emph on
7547 0
7548 \emph default
7549 , 1
7550 \family default
7551 ] Usually LyX doesn't allow you to insert more than one space between words,
7552  since a space is considered as the separation between two words, not a
7553  character or symbol of its own.
7554  This is a very fine thing but sometimes annoying, for example when typing
7555  program code or plain LaTeX code.
7556  For this reason, 
7557 \family typewriter
7558 FreeSpacing
7559 \family default
7560  can be enabled.
7561  Note that LyX will create protected blanks for the additional blanks when
7562  in another mode than LaTeX-mode.
7563 \end_layout
7564
7565 \begin_layout Description
7566
7567 \family typewriter
7568 \series medium
7569 KeepEmpty
7570 \family default
7571 \series default
7572  [
7573 \family typewriter
7574 \emph on
7575 0
7576 \emph default
7577 , 1
7578 \family default
7579 ] Usually LyX does not allow you to leave a paragraph empty, since it would
7580  lead to empty LaTeX output.
7581  There are some cases where this could be desirable however: in a letter
7582  template, the required fields can be provided as empty fields, so that
7583  people do not forget them; in some special classes, a layout can be used
7584  as some kind of break, which does not contain actual text.
7585 \end_layout
7586
7587 \begin_layout Description
7588
7589 \family typewriter
7590 \series medium
7591 Spacing
7592 \family default
7593 \series default
7594  [
7595 \family typewriter
7596 \emph on
7597 single
7598 \emph default
7599 , onehalf, double, other
7600 \family default
7601  
7602 \emph on
7603 value
7604 \emph default
7605 ] This defines what the default spacing should be in the layout.
7606  The arguments 
7607 \family typewriter
7608 single
7609 \family default
7610
7611 \family typewriter
7612 onehalf
7613 \family default
7614  and 
7615 \family typewriter
7616 double
7617 \family default
7618  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
7619  If you specify the argument 
7620 \family typewriter
7621 other
7622 \family default
7623 , then you should also provide a numerical argument which will be the actual
7624  multiplier value.
7625  Note that, contrary to other parameters, 
7626 \family typewriter
7627 Spacing
7628 \family default
7629  implies the generation of specific LaTeX code, using the package 
7630 \family typewriter
7631 setspace.sty
7632 \family roman
7633 .
7634 \end_layout
7635
7636 \begin_layout Description
7637
7638 \family typewriter
7639 \series medium
7640 Font
7641 \family default
7642 \series default
7643  The font used for both the text body 
7644 \emph on
7645 and
7646 \emph default
7647  the label.
7648  See section\InsetSpace ~
7649
7650 \begin_inset LatexCommand ref
7651 reference "sec:fonts"
7652
7653 \end_inset
7654
7655 .
7656  Note that defining this font automatically defines the 
7657 \family typewriter
7658 LabelFont
7659 \family default
7660  to the same value.
7661 \end_layout
7662
7663 \begin_layout Description
7664
7665 \family typewriter
7666 \series medium
7667 TextFont
7668 \family default
7669 \series default
7670  The font used for the text body .
7671  See section\InsetSpace ~
7672
7673 \begin_inset LatexCommand ref
7674 reference "sec:fonts"
7675
7676 \end_inset
7677
7678 .
7679 \end_layout
7680
7681 \begin_layout Description
7682
7683 \family typewriter
7684 \series medium
7685 LabelFont
7686 \family default
7687 \series default
7688  The font used for the label.
7689  See section\InsetSpace ~
7690
7691 \begin_inset LatexCommand ref
7692 reference "sec:fonts"
7693
7694 \end_inset
7695
7696 .
7697 \end_layout
7698
7699 \begin_layout Description
7700
7701 \family typewriter
7702 \series medium
7703 Preamble\SpecialChar \ldots{}
7704 EndPreamble
7705 \family default
7706 \series default
7707  A set of macro definitions that will be output at the beginning of the
7708  LaTeX files when the layout is used.
7709  Use this to define the macros needed by this particular layout.
7710 \end_layout
7711
7712 \begin_layout Description
7713
7714 \family typewriter
7715 \series medium
7716 DependsOn
7717 \family default
7718 \series default
7719  the name of a style which preamble should be output 
7720 \emph on
7721 before
7722 \emph default
7723  the one mentionned above.
7724  This allows to ensure some ordering of the preamble snippets when macros
7725  definitions depend on one another
7726 \begin_inset Foot
7727 status collapsed
7728
7729 \begin_layout Standard
7730 Note that, besides that functionality, there is no way to ensure any ordering
7731  of preambles.
7732  The ordering that you see in a given version of LyX may change without
7733  warning in later versions.
7734 \end_layout
7735
7736 \end_inset
7737
7738 .
7739 \end_layout
7740
7741 \begin_layout Standard
7742 \begin_inset ERT
7743 status inlined
7744
7745 \begin_layout Standard
7746
7747
7748 \backslash
7749 end{sloppypar}
7750 \end_layout
7751
7752 \end_inset
7753
7754
7755 \end_layout
7756
7757 \begin_layout Subsection
7758 Floats
7759 \end_layout
7760
7761 \begin_layout Standard
7762 \begin_inset LatexCommand label
7763 name "sec:floats"
7764
7765 \end_inset
7766
7767 Since version 1.3.0 of LyX, it is necessary to define the floats (
7768 \family sans
7769 figure
7770 \family default
7771
7772 \family sans
7773 table
7774 \family default
7775 , \SpecialChar \ldots{}
7776 ) in the text class itself.
7777  If you are looking here to learn how to upgrade an existing text class,
7778  it will probably turn out that all you have to do is to add
7779 \end_layout
7780
7781 \begin_layout LyX-Code
7782 Input stdfloats.inc
7783 \end_layout
7784
7785 \begin_layout Standard
7786 at a reasonable location of the text class.
7787 \begin_inset Foot
7788 status collapsed
7789
7790 \begin_layout Standard
7791 Don't forget to also have a look at counters in next section.
7792 \end_layout
7793
7794 \end_inset
7795
7796  If you want to implement a text class that proposes some other float types
7797  (like the AGU class bundled with LyX), the information below will hopefully
7798  help you:
7799 \end_layout
7800
7801 \begin_layout Description
7802
7803 \family typewriter
7804 \series medium
7805 Type
7806 \family default
7807 \series default
7808  [
7809 \family typewriter
7810 string
7811 \family default
7812 =
7813 \begin_inset Quotes erd
7814 \end_inset
7815
7816
7817 \begin_inset Quotes erd
7818 \end_inset
7819
7820 ] The 
7821 \begin_inset Quotes eld
7822 \end_inset
7823
7824 type
7825 \begin_inset Quotes erd
7826 \end_inset
7827
7828  of the new class of floats, like program or algorithm.
7829  After the appropriate 
7830 \family typewriter
7831
7832 \backslash
7833 newfloat
7834 \family default
7835 , commands such as 
7836 \family typewriter
7837
7838 \backslash
7839 begin{program}
7840 \family default
7841  or 
7842 \family typewriter
7843
7844 \backslash
7845 end{algorithm*}
7846 \family default
7847  will be available.
7848 \end_layout
7849
7850 \begin_layout Description
7851
7852 \family typewriter
7853 \series medium
7854 GuiName
7855 \family default
7856 \series default
7857  [
7858 \family typewriter
7859 string
7860 \family default
7861 =
7862 \begin_inset Quotes erd
7863 \end_inset
7864
7865
7866 \begin_inset Quotes erd
7867 \end_inset
7868
7869 ] The string that will be used in the menus and also for the caption.
7870 \end_layout
7871
7872 \begin_layout Description
7873
7874 \family typewriter
7875 \series medium
7876 LaTeXBuiltin
7877 \family default
7878 \series default
7879  [
7880 \family typewriter
7881 \emph on
7882 0
7883 \family default
7884 \emph default
7885
7886 \family typewriter
7887 1
7888 \family default
7889 ] Set to 
7890 \family typewriter
7891 1
7892 \family default
7893  if the float is already defined by the documentclass.
7894  If this is set to 
7895 \family typewriter
7896 0
7897 \family default
7898 , the float will be defined using the LaTeX package 
7899 \family typewriter
7900 float
7901 \family default
7902 .
7903 \end_layout
7904
7905 \begin_layout Description
7906
7907 \family typewriter
7908 \series medium
7909 NumberWithin
7910 \family default
7911 \series default
7912  [
7913 \family typewriter
7914 string
7915 \family default
7916 =
7917 \begin_inset Quotes erd
7918 \end_inset
7919
7920
7921 \begin_inset Quotes erd
7922 \end_inset
7923
7924 ] This (optional) argument determines whether floats of this class will
7925  be numbered within some sectional unit of the document.
7926  For example, if within is equal to 
7927 \family typewriter
7928 chapter
7929 \family default
7930 , the floats will be numbered within chapters.
7931  
7932 \end_layout
7933
7934 \begin_layout Description
7935
7936 \family typewriter
7937 \series medium
7938 Style
7939 \family default
7940 \series default
7941  [
7942 \family typewriter
7943 string
7944 \family default
7945 =
7946 \begin_inset Quotes erd
7947 \end_inset
7948
7949
7950 \begin_inset Quotes erd
7951 \end_inset
7952
7953 ] The style used when defining the float using 
7954 \family typewriter
7955
7956 \backslash
7957 newfloat
7958 \family default
7959 .
7960 \end_layout
7961
7962 \begin_layout Description
7963
7964 \family typewriter
7965 \series medium
7966 Placement
7967 \family default
7968 \series default
7969  [
7970 \family typewriter
7971 string
7972 \family default
7973 =
7974 \begin_inset Quotes erd
7975 \end_inset
7976
7977
7978 \begin_inset Quotes erd
7979 \end_inset
7980
7981 ] The default placement for the given class of floats.
7982  They are like in standard LaTeX: 
7983 \family typewriter
7984 t
7985 \family default
7986
7987 \family typewriter
7988 b
7989 \family default
7990
7991 \family typewriter
7992 p
7993 \family default
7994  and 
7995 \family typewriter
7996 h
7997 \family default
7998  for top, bottom, page, and here, respectively.
7999 \begin_inset Foot
8000 status collapsed
8001
8002 \begin_layout Standard
8003 Note that the order of these letters in the string is irrelevant, like in
8004  LaTeX.
8005 \end_layout
8006
8007 \end_inset
8008
8009  On top of that there is a new type, 
8010 \family typewriter
8011 H
8012 \family default
8013 , which does not really correspond to a float, since it means: put it 
8014 \begin_inset Quotes eld
8015 \end_inset
8016
8017 here
8018 \begin_inset Quotes erd
8019 \end_inset
8020
8021  and nowhere else.
8022  Note, however that the 
8023 \family typewriter
8024 H
8025 \family default
8026  specifier is special and, because of implementation details cannot be used
8027  in non-builtin float types.
8028  If you do not understand what this means, just use 
8029 \family typewriter
8030 "tbp"
8031 \family default
8032 .
8033 \end_layout
8034
8035 \begin_layout Description
8036
8037 \family typewriter
8038 \series medium
8039 Extension
8040 \family default
8041 \series default
8042  [
8043 \family typewriter
8044 string
8045 \family default
8046 =
8047 \begin_inset Quotes erd
8048 \end_inset
8049
8050
8051 \begin_inset Quotes erd
8052 \end_inset
8053
8054 ] The file name extension of an auxiliary file for the list of figures (or
8055  whatever).
8056  LaTeX writes the captions to this file.
8057 \end_layout
8058
8059 \begin_layout Description
8060
8061 \family typewriter
8062 \series medium
8063 ListName
8064 \family default
8065 \series default
8066  [
8067 \family typewriter
8068 string
8069 \family default
8070 =
8071 \begin_inset Quotes erd
8072 \end_inset
8073
8074
8075 \begin_inset Quotes erd
8076 \end_inset
8077
8078 ] The heading used for the list of floats.
8079 \end_layout
8080
8081 \begin_layout Subsection
8082 Character styles
8083 \end_layout
8084
8085 \begin_layout Standard
8086 \begin_inset LatexCommand label
8087 name "sec:charstyle"
8088
8089 \end_inset
8090
8091 You can define character styles since version 1.4.0 of LyX.
8092  The 
8093 \family typewriter
8094 CharStyle
8095 \family default
8096  section can contain the following entries:
8097 \end_layout
8098
8099 \begin_layout Description
8100
8101 \family typewriter
8102 \series medium
8103 Font
8104 \family default
8105 \series default
8106  The font used for both the text body 
8107 \emph on
8108 and
8109 \emph default
8110  the label.
8111  See section\InsetSpace ~
8112
8113 \begin_inset LatexCommand ref
8114 reference "sec:fonts"
8115
8116 \end_inset
8117
8118 .
8119  Note that defining this font automatically defines the 
8120 \family typewriter
8121 LabelFont
8122 \family default
8123  to the same value.
8124 \end_layout
8125
8126 \begin_layout Description
8127
8128 \family typewriter
8129 \series medium
8130 LabelFont
8131 \family default
8132 \series default
8133  The font used for the label.
8134  See section\InsetSpace ~
8135
8136 \begin_inset LatexCommand ref
8137 reference "sec:fonts"
8138
8139 \end_inset
8140
8141 .
8142 \end_layout
8143
8144 \begin_layout Description
8145
8146 \family typewriter
8147 \series medium
8148 LatexName
8149 \family default
8150 \series default
8151  The name of the corresponding LaTeX stuff.
8152  Either the environment or command name.
8153 \end_layout
8154
8155 \begin_layout Description
8156
8157 \family typewriter
8158 \series medium
8159 LatexParam
8160 \family default
8161 \series default
8162  The optional parameter for the corresponding 
8163 \family typewriter
8164 \series medium
8165 LatexName
8166 \family default
8167 \series default
8168  stuff.
8169  This parameter cannot be changed from within LyX.
8170 \end_layout
8171
8172 \begin_layout Description
8173
8174 \family typewriter
8175 \series medium
8176 LatexType
8177 \family default
8178 \series default
8179  See section\InsetSpace ~
8180
8181 \begin_inset LatexCommand ref
8182 reference "sec:style"
8183
8184 \end_inset
8185
8186 .
8187 \end_layout
8188
8189 \begin_layout Description
8190
8191 \family typewriter
8192 \series medium
8193 Preamble\SpecialChar \ldots{}
8194 EndPreamble
8195 \family default
8196 \series default
8197  See section\InsetSpace ~
8198
8199 \begin_inset LatexCommand ref
8200 reference "sec:style"
8201
8202 \end_inset
8203
8204
8205 \end_layout
8206
8207 \begin_layout Subsection
8208 Counters
8209 \end_layout
8210
8211 \begin_layout Standard
8212 \begin_inset LatexCommand label
8213 name "sec:counter"
8214
8215 \end_inset
8216
8217 Since version 1.3.0 of LyX, it is necessary to define the counters (
8218 \family sans
8219 chapter
8220 \family default
8221
8222 \family sans
8223 figure
8224 \family default
8225 , \SpecialChar \ldots{}
8226 ) in the text class itself.
8227  If you are looking here to learn how to upgrade an existing text class,
8228  it will probably turn out that all you have to do is to add
8229 \end_layout
8230
8231 \begin_layout LyX-Code
8232 Input stdcounters.inc
8233 \end_layout
8234
8235 \begin_layout Standard
8236 The definition of counters is presently a bit primitive in LyX, since many
8237  things are still hardcoded.
8238  The following two parameters can be used:
8239 \end_layout
8240
8241 \begin_layout Description
8242
8243 \family typewriter
8244 \series medium
8245 Name
8246 \family default
8247 \series default
8248  [
8249 \family typewriter
8250 string
8251 \family default
8252 =
8253 \begin_inset Quotes erd
8254 \end_inset
8255
8256
8257 \begin_inset Quotes erd
8258 \end_inset
8259
8260 ] The name of the counter
8261 \end_layout
8262
8263 \begin_layout Description
8264
8265 \family typewriter
8266 \series medium
8267 Within
8268 \family default
8269 \series default
8270  [
8271 \family typewriter
8272 string
8273 \family default
8274 =
8275 \begin_inset Quotes erd
8276 \end_inset
8277
8278
8279 \begin_inset Quotes erd
8280 \end_inset
8281
8282 ] If this is set to the name of another counter, the present counter will
8283  be reset everytime the other one is increased (is that unclear enough?).
8284 \end_layout
8285
8286 \begin_layout Standard
8287 When a counter has been associated to a style, it is possible to use some
8288  special constructs in 
8289 \family typewriter
8290 LabelSt
8291 \family default
8292 r
8293 \family typewriter
8294 ing
8295 \family default
8296  and 
8297 \family typewriter
8298 LabelStringAppendix
8299 \family default
8300 :
8301 \end_layout
8302
8303 \begin_layout Itemize
8304
8305 \family typewriter
8306 @
8307 \emph on
8308 style-name
8309 \emph default
8310 @
8311 \family default
8312  will be replaced the expanded 
8313 \family typewriter
8314 LabelString
8315 \family default
8316  of style 
8317 \family typewriter
8318 \emph on
8319 style-name
8320 \family default
8321 \emph default
8322 .
8323  This is used for example to define the label of a subsection in terms of
8324  the label of a section.
8325 \end_layout
8326
8327 \begin_layout Itemize
8328 counter values can be expressed using LaTeX-like macros 
8329 \family typewriter
8330
8331 \backslash
8332
8333 \emph on
8334 numbertype
8335 \emph default
8336 {
8337 \emph on
8338 counter
8339 \emph default
8340 }
8341 \family default
8342 , where 
8343 \family typewriter
8344 \emph on
8345 numbertype
8346 \family default
8347 \emph default
8348  can be:
8349 \end_layout
8350
8351 \begin_deeper
8352 \begin_layout Description
8353
8354 \family typewriter
8355 \series medium
8356 arabic
8357 \family default
8358 \series default
8359  to translate 
8360 \family typewriter
8361 counter
8362 \family default
8363  to arabic numerals, like 1, 2, 3\SpecialChar \ldots{}
8364
8365 \begin_inset Foot
8366 status collapsed
8367
8368 \begin_layout Standard
8369
8370 \family roman
8371 \series medium
8372 \shape up
8373 \size normal
8374 \emph off
8375 \bar no
8376 \noun off
8377 \color none
8378 Actually, the situation is a bit more complicated than that: any
8379 \family default
8380 \series default
8381 \shape default
8382 \emph default
8383 \bar default
8384  
8385 \family typewriter
8386 \size default
8387 \emph on
8388 \noun default
8389 numbertype
8390 \family roman
8391 \series medium
8392 \shape up
8393 \size normal
8394 \emph off
8395 \bar no
8396 \noun off
8397  other than those descibed below will produce arabic numerals.
8398  It would not be surprising to see this change in the future.
8399 \end_layout
8400
8401 \end_inset
8402
8403
8404 \end_layout
8405
8406 \begin_layout Description
8407
8408 \family typewriter
8409 \series medium
8410 alph
8411 \family default
8412 \series default
8413  for lower-case letters: a, b, c, \SpecialChar \ldots{}
8414
8415 \end_layout
8416
8417 \begin_layout Description
8418
8419 \family typewriter
8420 \series medium
8421 Alph
8422 \family default
8423 \series default
8424  for upper-case letters: A, B, C, \SpecialChar \ldots{}
8425
8426 \end_layout
8427
8428 \begin_layout Description
8429
8430 \family typewriter
8431 \series medium
8432 roman
8433 \family default
8434 \series default
8435  for lower-case roman numerals: i, ii, iii, \SpecialChar \ldots{}
8436
8437 \end_layout
8438
8439 \begin_layout Description
8440
8441 \family typewriter
8442 \series medium
8443 Roman
8444 \family default
8445 \series default
8446  for upper-case roman numerals: I, II, III\SpecialChar \ldots{}
8447
8448 \end_layout
8449
8450 \begin_layout Description
8451
8452 \family typewriter
8453 \series medium
8454 hebrew
8455 \family default
8456 \series default
8457  for hebrew numerals.
8458 \end_layout
8459
8460 \end_deeper
8461 \begin_layout Subsection
8462 Font description
8463 \end_layout
8464
8465 \begin_layout Standard
8466 \begin_inset LatexCommand label
8467 name "sec:fonts"
8468
8469 \end_inset
8470
8471 A font description looks like that:
8472 \end_layout
8473
8474 \begin_layout LyX-Code
8475 Font 
8476 \family roman
8477 \emph on
8478 or
8479 \family default
8480 \emph default
8481  LabelFont
8482 \end_layout
8483
8484 \begin_layout LyX-Code
8485  ...
8486 \end_layout
8487
8488 \begin_layout LyX-Code
8489 EndFont
8490 \end_layout
8491
8492 \begin_layout Standard
8493 and the following commands are available:
8494 \end_layout
8495
8496 \begin_layout Description
8497
8498 \family typewriter
8499 \series medium
8500 Family
8501 \family default
8502 \series default
8503  [
8504 \family typewriter
8505 \emph on
8506 Roman
8507 \emph default
8508 , Sans, Typewriter
8509 \family default
8510
8511 \end_layout
8512
8513 \begin_layout Description
8514
8515 \family typewriter
8516 \series medium
8517 Series
8518 \family default
8519 \series default
8520  [
8521 \family typewriter
8522 \emph on
8523 Medium
8524 \emph default
8525 , Bold
8526 \family default
8527
8528 \end_layout
8529
8530 \begin_layout Description
8531
8532 \family typewriter
8533 \series medium
8534 Shape
8535 \family default
8536 \series default
8537  [
8538 \family typewriter
8539 \emph on
8540 Up
8541 \emph default
8542 , Italic, SmallCaps, Slanted
8543 \family default
8544
8545 \end_layout
8546
8547 \begin_layout Description
8548
8549 \family typewriter
8550 \series medium
8551 Size
8552 \family default
8553 \series default
8554  [
8555 \family typewriter
8556 tiny, small,
8557 \family default
8558  
8559 \family typewriter
8560 \emph on
8561 normal
8562 \emph default
8563 , large, larger, largest, huge, giant
8564 \family default
8565 ]
8566 \end_layout
8567
8568 \begin_layout Description
8569
8570 \family typewriter
8571 \series medium
8572 Color
8573 \family default
8574 \series default
8575  [
8576 \family typewriter
8577 \emph on
8578 none
8579 \emph default
8580 , black, white, red, green, blue, cyan, magenta, yellow
8581 \family default
8582 ]
8583 \end_layout
8584
8585 \begin_layout Subsection
8586 Upgrading old layout files
8587 \end_layout
8588
8589 \begin_layout Standard
8590 The file format of layout files changes from time to time, so old layout
8591  files need to be converted.
8592  This process has been automated in LyX 1.4.0: If LyX reads an old format
8593  layout file it will call the conversion tool 
8594 \family typewriter
8595 $LyXDir/scripts/layout2layout.py
8596 \family default
8597  and convert it to a temporary file in current format.
8598  The original file is left untouched, so that you can still use it with
8599  LyX 1.3.x.
8600  If you want to convert the layout file permanently, just call the converter
8601  by hand:
8602 \end_layout
8603
8604 \begin_layout LyX-Code
8605 python $LyXDir/scripts/layout2layout.py myclass.layout myclassnew.layout
8606 \end_layout
8607
8608 \begin_layout Standard
8609 Then copy 
8610 \family typewriter
8611 myclassnew.layout
8612 \family default
8613  to 
8614 \family typewriter
8615 $UserDir/layouts/
8616 \family default
8617 .
8618 \end_layout
8619
8620 \begin_layout Standard
8621 The automatic conversion does only handle syntax changes.
8622  It cannot handle the case where the contents of included files was changed.
8623  For example, layout files based on 
8624 \family typewriter
8625 book.layout
8626 \family default
8627  need to include 
8628 \family typewriter
8629 numreport.inc
8630 \family default
8631  in addition to 
8632 \family typewriter
8633 stdclass.inc
8634 \family default
8635 .
8636  If you get error messages about undefined counters, try to convert your
8637  file with 
8638 \family typewriter
8639 layout2layout.py
8640 \family default
8641  and then add one of 
8642 \family typewriter
8643 numarticle.inc
8644 \family default
8645
8646 \family typewriter
8647 numreport.inc
8648 \family default
8649  and 
8650 \family typewriter
8651 numrevtex.inc
8652 \family default
8653 .
8654 \end_layout
8655
8656 \begin_layout Section
8657 Creating Templates
8658 \begin_inset LatexCommand label
8659 name "sec:templates"
8660
8661 \end_inset
8662
8663
8664 \end_layout
8665
8666 \begin_layout Standard
8667 Templates are created just like usual documents.
8668  The only difference is that usual documents contain all possible settings,
8669  including the fontscheme and the papersize.
8670  Usually a user doesn't want a template to overwrite his defaults in these
8671  cases.
8672  For that reason, the designer of a template should remove the corresponding
8673  commands like 
8674 \family typewriter
8675
8676 \backslash
8677 fontscheme
8678 \family default
8679  or 
8680 \family typewriter
8681
8682 \backslash
8683 papersize
8684 \family default
8685  from the template LyX file.
8686  This can be done with any simple text-editor, for example 
8687 \family typewriter
8688 vi
8689 \family default
8690  or 
8691 \family typewriter
8692 xedit
8693 \family default
8694 .
8695  
8696 \end_layout
8697
8698 \begin_layout Standard
8699 Put the edited template files you create in 
8700 \family typewriter
8701 $UserDir/templates/
8702 \family default
8703 , copy the ones you use from the global template directory in 
8704 \family typewriter
8705 $LyXDir/templates/
8706 \family default
8707  to the same place, and redefine the template path in the 
8708 \family sans
8709 \bar under
8710 E
8711 \bar default
8712 dit\SpecialChar \menuseparator
8713
8714 \bar under
8715 P
8716 \bar default
8717 references
8718 \family default
8719  dialog (tabs 
8720 \family sans
8721 Input
8722 \family default
8723
8724 \family sans
8725 Path
8726 \family default
8727 ).
8728  
8729 \end_layout
8730
8731 \begin_layout Standard
8732 Note that there is a template which has a particular meaning: 
8733 \family typewriter
8734 defaults.lyx
8735 \family default
8736 .
8737  This template is loaded everytime you create a new document with 
8738 \family sans
8739 \bar under
8740 F
8741 \bar default
8742 ile
8743 \family default
8744 \SpecialChar \menuseparator
8745
8746 \family sans
8747 \bar under
8748 N
8749 \bar default
8750 ew
8751 \family default
8752  in order to provide useful defaults.
8753  To create this template from inside LyX, all you have to do is to open
8754  a document with the correct settings, and use the 
8755 \family sans
8756 Sa
8757 \bar under
8758 v
8759 \bar default
8760 e as Document Defaults
8761 \family default
8762  button.
8763 \end_layout
8764
8765 \begin_layout Chapter
8766 Including External Material
8767 \end_layout
8768
8769 \begin_layout Section
8770 Background
8771 \end_layout
8772
8773 \begin_layout Standard
8774 \begin_inset Note Note
8775 status collapsed
8776
8777 \begin_layout Standard
8778 This section is completely outdated.
8779 \end_layout
8780
8781 \end_inset
8782
8783 One often requested feature from LyX users is to be able to interface LyX
8784  with Xfig, Dia, or other similar applications that specialize in producing
8785  a certain kind of diagram, figure, schematic or whatever material might
8786  be relevant to include in your document.
8787  Previously, it was only possible to include boring, static, fixed images
8788  in LyX documents with the graphics feature, but there are several limitations
8789  attached to this approach:
8790 \end_layout
8791
8792 \begin_layout Itemize
8793 If you want to change the figure, you have to invoke an external program
8794  by hand
8795 \end_layout
8796
8797 \begin_layout Itemize
8798 LyX does not notice that the referenced files change, so the on-screen display
8799  can fast become obsolete, and this is aggravated by the lack of a means
8800  of updating the display
8801 \end_layout
8802
8803 \begin_layout Itemize
8804 The graphics stuff does not provide any mechanisms for coping with different
8805  exported formats such as DocBook, HTML or plain text
8806 \end_layout
8807
8808 \begin_layout Standard
8809 The external material facility attempts to solve all of these problems
8810 \begin_inset Foot
8811 status collapsed
8812
8813 \begin_layout Standard
8814 Even if the graphics facility can't solve all problems, it is still valuable
8815  because it does provide in-line preview of the graphics, and supports advanced
8816  geometric transformations with a comfortable user interface.
8817 \end_layout
8818
8819 \end_inset
8820
8821 .
8822  It does this by offering a general method to interface LyX to external
8823  applications.
8824  Instead of introducing a long list of different constructs tailored for
8825  each specific application, we chose to sacrifice the in-line displaying
8826  of the included material in order to provide a general construct to cover
8827  a wide range of applications.
8828  The result is the external material construct.
8829  External material presents itself in the document simply as a button, but
8830  don't let this fool you.
8831  When you click on it, a dialog will appear that allows you to chose exactly
8832  what material to include, and in the following sections you will learn
8833  that this is indeed a powerful mechanism that can solve all of the above
8834  problems, and more.
8835 \end_layout
8836
8837 \begin_layout Section
8838 How does it work?
8839 \end_layout
8840
8841 \begin_layout Standard
8842 The external material feature is based on the concept of a 
8843 \emph on
8844 template
8845 \emph default
8846 .
8847  A template is a specification of how LyX should interface with a certain
8848  kind of material.
8849  As bundled, LyX comes with predefined templates for Xfig figures, Dia diagrams,
8850  various raster format images, gnuplot, and more.
8851  You can check the actual list by using the menu 
8852 \family sans
8853 Insert\SpecialChar \menuseparator
8854 File\SpecialChar \menuseparator
8855 External
8856 \family default
8857 \InsetSpace ~
8858
8859 \family sans
8860 Material
8861 \family default
8862 .
8863  Furthermore, it is possible to roll your own template to support a specific
8864  kind of material.
8865  Later we'll describe in more detail what is involved, and hopefully you
8866  will submit all the templates you create so we can include them in a later
8867  LyX version.
8868 \end_layout
8869
8870 \begin_layout Standard
8871 Another basic idea of the external material feature is to distinguish between
8872  the original file that serves as a base for final material and the produced
8873  file that is included in your exported or printed document.
8874  For example, consider the case of a figure produced with 
8875 \family typewriter
8876 Xfig
8877 \family default
8878 .
8879  The Xfig application itself works on an original file with the 
8880 \family typewriter
8881 .fig
8882 \family default
8883  extension.
8884  Within XFig, you create and change your figure, and when you are done,
8885  you save the 
8886 \family typewriter
8887 fig
8888 \family default
8889 -file.
8890  When you want to include the figure in your document, you invoke 
8891 \family typewriter
8892 transfig
8893 \family default
8894  in order to create a PostScript file that can readily be included in your
8895  LaTeX file.
8896  In this case, the 
8897 \family typewriter
8898 .fig
8899 \family default
8900  file is the original file, and the PostScript file is the produced file.
8901 \end_layout
8902
8903 \begin_layout Standard
8904 This distinction is important in order to allow updating of the material
8905  while you are in the process of writing the document.
8906  Furthermore, it provides us with the flexibility that is needed to support
8907  multiple export formats.
8908  For instance, in the case of a plain text file, it is not exactly an award-winn
8909 ing idea to include the figure as raw PostScript.
8910  Instead, you'd either prefer to just include a reference to the figure,
8911  or try to invoke some graphics to Ascii converter to make the final result
8912  look similar to the real graphics.
8913  The external material management allows you to do this, because it is parameter
8914 ized on the different export formats that LyX supports.
8915 \end_layout
8916
8917 \begin_layout Standard
8918 Besides supporting the production of different products according to the
8919  exported format, it supports tight integration with editing and viewing
8920  applications.
8921  In the case of an XFig figure, you are able to invoke 
8922 \family typewriter
8923 Xfig
8924 \family default
8925  on the original file with a single click from within the external material
8926  dialog in LyX, and also preview the produced PostScript file with 
8927 \family typewriter
8928 ghostview
8929 \family default
8930  with another click.
8931  No more fiddling around with the command line and/or file browsers to locate
8932  and manipulate the original or produced files.
8933  In this way, you are finally able to take full advantage of the many different
8934  applications that are relevant to use when you write your documents, and
8935  ultimately be more productive.
8936 \end_layout
8937
8938 \begin_layout Section
8939 External material dialog
8940 \end_layout
8941
8942 \begin_layout Standard
8943 The 
8944 \family sans
8945 External Material
8946 \family default
8947  dialog is described in the 
8948 \family sans
8949 \emph on
8950 EmbeddedObjects
8951 \family default
8952 \emph default
8953  manual.
8954 \end_layout
8955
8956 \begin_layout Section
8957 Examples
8958 \end_layout
8959
8960 \begin_layout Standard
8961 In this section, we should include some examples of use of the external
8962  material.
8963  Those examples could include:
8964 \end_layout
8965
8966 \begin_layout Itemize
8967 External raster images
8968 \end_layout
8969
8970 \begin_layout Itemize
8971 External XFig figures
8972 \end_layout
8973
8974 \begin_layout Itemize
8975 Chess diagrams
8976 \end_layout
8977
8978 \begin_layout Itemize
8979 Sound samples
8980 \end_layout
8981
8982 \begin_layout Itemize
8983 The use of makefiles
8984 \end_layout
8985
8986 \begin_layout Itemize
8987 Recursive external LyX templates
8988 \end_layout
8989
8990 \begin_layout Section
8991 The external template configuration file
8992 \end_layout
8993
8994 \begin_layout Standard
8995 It is relatively easy to add custom external template definitions to LyX.
8996  However, be aware this doing this in an careless manner most probably 
8997 \emph on
8998 will
8999 \emph default
9000  introduce an easily exploitable security hole.
9001  So before you do this, please read the discussion about security which
9002  will follow later.
9003 \end_layout
9004
9005 \begin_layout Standard
9006 Having said that, we encourage you to submit any interesting templates that
9007  you create.
9008  
9009 \end_layout
9010
9011 \begin_layout Standard
9012 The external templates are defined in the 
9013 \family typewriter
9014 lib/external_templates
9015 \family default
9016  file.
9017  You can place your own version in 
9018 \family typewriter
9019 .lyx/external_templates
9020 \family default
9021 .
9022 \end_layout
9023
9024 \begin_layout Standard
9025 A typical template looks like this:
9026 \end_layout
9027
9028 \begin_layout LyX-Code
9029 Template XFig
9030 \end_layout
9031
9032 \begin_layout LyX-Code
9033 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
9034 \end_layout
9035
9036 \begin_layout LyX-Code
9037 HelpText
9038 \end_layout
9039
9040 \begin_layout LyX-Code
9041 An XFig figure.
9042 \end_layout
9043
9044 \begin_layout LyX-Code
9045 HelpTextEnd
9046 \end_layout
9047
9048 \begin_layout LyX-Code
9049 InputFormat fig
9050 \end_layout
9051
9052 \begin_layout LyX-Code
9053 FileFilter "*.fig"
9054 \end_layout
9055
9056 \begin_layout LyX-Code
9057 AutomaticProduction true
9058 \end_layout
9059
9060 \begin_layout LyX-Code
9061 Transform Rotate
9062 \end_layout
9063
9064 \begin_layout LyX-Code
9065 Transform Resize
9066 \end_layout
9067
9068 \begin_layout LyX-Code
9069 Format LaTeX
9070 \end_layout
9071
9072 \begin_layout LyX-Code
9073 TransformCommand Rotate RotationLatexCommand
9074 \end_layout
9075
9076 \begin_layout LyX-Code
9077 TransformCommand Resize ResizeLatexCommand
9078 \end_layout
9079
9080 \begin_layout LyX-Code
9081 Product "$$RotateFront$$ResizeFront
9082 \end_layout
9083
9084 \begin_layout LyX-Code
9085          
9086 \backslash
9087
9088 \backslash
9089 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
9090 \end_layout
9091
9092 \begin_layout LyX-Code
9093          $$ResizeBack$$RotateBack"
9094 \end_layout
9095
9096 \begin_layout LyX-Code
9097 UpdateFormat pstex
9098 \end_layout
9099
9100 \begin_layout LyX-Code
9101 UpdateResult "$$AbsPath$$Basename.pstex_t"
9102 \end_layout
9103
9104 \begin_layout LyX-Code
9105 Requirement "graphicx"
9106 \end_layout
9107
9108 \begin_layout LyX-Code
9109 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
9110 \end_layout
9111
9112 \begin_layout LyX-Code
9113 ReferencedFile latex "$$AbsPath$$Basename.eps"
9114 \end_layout
9115
9116 \begin_layout LyX-Code
9117 ReferencedFile dvi "$$AbsPath$$Basename.eps"
9118 \end_layout
9119
9120 \begin_layout LyX-Code
9121 FormatEnd
9122 \end_layout
9123
9124 \begin_layout LyX-Code
9125 Format PDFLaTeX
9126 \end_layout
9127
9128 \begin_layout LyX-Code
9129 TransformCommand Rotate RotationLatexCommand
9130 \end_layout
9131
9132 \begin_layout LyX-Code
9133 TransformCommand Resize ResizeLatexCommand
9134 \end_layout
9135
9136 \begin_layout LyX-Code
9137 Product "$$RotateFront$$ResizeFront
9138 \end_layout
9139
9140 \begin_layout LyX-Code
9141          
9142 \backslash
9143
9144 \backslash
9145 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
9146 \end_layout
9147
9148 \begin_layout LyX-Code
9149          $$ResizeBack$$RotateBack"
9150 \end_layout
9151
9152 \begin_layout LyX-Code
9153 UpdateFormat pdftex
9154 \end_layout
9155
9156 \begin_layout LyX-Code
9157 UpdateResult "$$AbsPath$$Basename.pdftex_t"
9158 \end_layout
9159
9160 \begin_layout LyX-Code
9161 Requirement "graphicx"
9162 \end_layout
9163
9164 \begin_layout LyX-Code
9165 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
9166 \end_layout
9167
9168 \begin_layout LyX-Code
9169 ReferencedFile latex "$$AbsPath$$Basename.pdf"
9170 \end_layout
9171
9172 \begin_layout LyX-Code
9173 FormatEnd
9174 \end_layout
9175
9176 \begin_layout LyX-Code
9177 Format Ascii
9178 \end_layout
9179
9180 \begin_layout LyX-Code
9181 Product "$$Contents(
9182 \backslash
9183 "$$AbsPath$$Basename.asc
9184 \backslash
9185 ")"
9186 \end_layout
9187
9188 \begin_layout LyX-Code
9189 UpdateFormat asciixfig
9190 \end_layout
9191
9192 \begin_layout LyX-Code
9193 UpdateResult "$$AbsPath$$Basename.asc"
9194 \end_layout
9195
9196 \begin_layout LyX-Code
9197 FormatEnd
9198 \end_layout
9199
9200 \begin_layout LyX-Code
9201 Format DocBook
9202 \end_layout
9203
9204 \begin_layout LyX-Code
9205 Product "<graphic fileref=
9206 \backslash
9207 "$$AbsOrRelPathMaster$$Basename.eps
9208 \backslash
9209 ">
9210 \end_layout
9211
9212 \begin_layout LyX-Code
9213          </graphic>"
9214 \end_layout
9215
9216 \begin_layout LyX-Code
9217 UpdateFormat eps
9218 \end_layout
9219
9220 \begin_layout LyX-Code
9221 UpdateResult "$$AbsPath$$Basename.eps"
9222 \end_layout
9223
9224 \begin_layout LyX-Code
9225 ReferencedFile docbook "$$AbsPath$$Basename.eps"
9226 \end_layout
9227
9228 \begin_layout LyX-Code
9229 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
9230 \end_layout
9231
9232 \begin_layout LyX-Code
9233 FormatEnd
9234 \end_layout
9235
9236 \begin_layout LyX-Code
9237 Format LinuxDoc
9238 \end_layout
9239
9240 \begin_layout LyX-Code
9241 Product "[XFig: $$FName]"
9242 \end_layout
9243
9244 \begin_layout LyX-Code
9245 FormatEnd
9246 \end_layout
9247
9248 \begin_layout LyX-Code
9249 TemplateEnd
9250 \end_layout
9251
9252 \begin_layout Standard
9253 As you can see, the template is enclosed in 
9254 \family typewriter
9255 Template
9256 \family default
9257  \SpecialChar \ldots{}
9258  
9259 \family typewriter
9260 TemplateEnd
9261 \family default
9262 .
9263  It contains a header specifying some general settings, and for each supported
9264  primary document file format a section 
9265 \family typewriter
9266 Format
9267 \family default
9268  \SpecialChar \ldots{}
9269  
9270 \family typewriter
9271 FormatEnd
9272 \family default
9273 .
9274 \end_layout
9275
9276 \begin_layout Subsection
9277 The template header
9278 \end_layout
9279
9280 \begin_layout Description
9281
9282 \family typewriter
9283 \series medium
9284 Template\InsetSpace ~
9285 <id>
9286 \family default
9287 \series default
9288  A unique name for the template.
9289  It must not contain substitution macros (see below).
9290 \end_layout
9291
9292 \begin_layout Description
9293
9294 \family typewriter
9295 \series medium
9296 GuiName\InsetSpace ~
9297 <guiname>
9298 \family default
9299 \series default
9300  The text that is displayed on the button.
9301  This command must occur exactly once.
9302 \end_layout
9303
9304 \begin_layout Description
9305
9306 \family typewriter
9307 \series medium
9308 HelpText\InsetSpace ~
9309 <text>\InsetSpace ~
9310 HelpTextEnd
9311 \family default
9312 \series default
9313  The help text that is used in the External dialog.
9314  Provide enough information to explain to the user just what the template
9315  can provide him with.
9316  This command must occur exactly once.
9317 \end_layout
9318
9319 \begin_layout Description
9320
9321 \family typewriter
9322 \series medium
9323 InputFormat\InsetSpace ~
9324 <format>
9325 \family default
9326 \series default
9327  The file format of the original file.
9328  This must be the name of a format that is known to LyX (see the 
9329 \family sans
9330 \bar under
9331 T
9332 \bar default
9333 ools\SpecialChar \menuseparator
9334
9335 \bar under
9336 P
9337 \bar default
9338 references:Conversion
9339 \family default
9340  dialog).
9341  Use 
9342 \family typewriter
9343 "*"
9344 \family default
9345  if the template can handle original files of more than one format.
9346  LyX will attempt to interrogate the file itself in order to deduce its
9347  format in this case.
9348  This command must occur exactly once.
9349 \end_layout
9350
9351 \begin_layout Description
9352
9353 \family typewriter
9354 \series medium
9355 FileFilter\InsetSpace ~
9356 <pattern>
9357 \family default
9358 \series default
9359  A glob pattern that is used in the file dialog to filter out the desired
9360  files.
9361  If there is more than one possible file extension (e.g.\InsetSpace ~
9362 tgif has 
9363 \family typewriter
9364 .obj
9365 \family default
9366  and 
9367 \family typewriter
9368 .tgo
9369 \family default
9370 ), use something like 
9371 \family typewriter
9372 "*.{obj,tgo}"
9373 \family default
9374 .
9375  This command must occur exactly once.
9376 \end_layout
9377
9378 \begin_layout Description
9379
9380 \family typewriter
9381 \series medium
9382 AutomaticProduction\InsetSpace ~
9383 true|false
9384 \family default
9385 \series default
9386  Wether the file represented by the template must be generated by LyX.
9387  This command must occur exactly once.
9388 \end_layout
9389
9390 \begin_layout Description
9391
9392 \family typewriter
9393 \series medium
9394 Transform\InsetSpace ~
9395 Rotate|Resize|Clip|Extra
9396 \family default
9397 \series default
9398  This command specifies which transformations are supported by this template.
9399  It may occur zero or more times.
9400  This command enables the corresponding tabs in the external dialog.
9401  Each 
9402 \family typewriter
9403 Transform
9404 \family default
9405  command must have either a corresponding 
9406 \family typewriter
9407 TransformCommand
9408 \family default
9409  or a 
9410 \family typewriter
9411 TransformOption
9412 \family default
9413  command in the 
9414 \family typewriter
9415 Format
9416 \family default
9417  section.
9418  Otherwise the transformation will not be supported by that format.
9419 \end_layout
9420
9421 \begin_layout Subsection
9422 The Format section
9423 \end_layout
9424
9425 \begin_layout Description
9426
9427 \family typewriter
9428 \series medium
9429 Format\InsetSpace ~
9430 LaTeX|PDFLaTeX|PlainText|DocBook|LinuxDoc
9431 \family default
9432 \series default
9433  The primary document file format that this format definition is for.
9434  Not every template has a sensible representation in all document file formats.
9435  Please define nevertheless a 
9436 \family typewriter
9437 Format
9438 \family default
9439  section for all formats.
9440  Use a dummy text when no representation is available (see the LinuxDoc
9441  format in the example above).
9442  Then you can at least see a reference to the external material in the exported
9443  document.
9444 \end_layout
9445
9446 \begin_layout Description
9447
9448 \family typewriter
9449 \series medium
9450 TransformCommand\InsetSpace ~
9451 Rotate\InsetSpace ~
9452 RotationLatexCommand
9453 \family default
9454 \series default
9455  This command specifies that the built in LaTeX command should be used for
9456  rotation.
9457  This command may occur once or not at all.
9458 \end_layout
9459
9460 \begin_layout Description
9461
9462 \family typewriter
9463 \series medium
9464 TransformCommand\InsetSpace ~
9465 Resize\InsetSpace ~
9466 ResizeLatexCommand
9467 \family default
9468 \series default
9469  This command specifies that the built in LaTeX command should be used for
9470  resizing.
9471  This command may occur once or not at all.
9472 \end_layout
9473
9474 \begin_layout Description
9475
9476 \family typewriter
9477 \series medium
9478 TransformOption\InsetSpace ~
9479 Rotate\InsetSpace ~
9480 RotationLatexOption
9481 \family default
9482 \series default
9483  This command specifies that rotation is done via an optional argument.
9484  This command may occur once or not at all.
9485 \end_layout
9486
9487 \begin_layout Description
9488
9489 \family typewriter
9490 \series medium
9491 TransformOption\InsetSpace ~
9492 Resize\InsetSpace ~
9493 ResizeLatexOption
9494 \family default
9495 \series default
9496  This command specifies that resizing is done via an optional argument.
9497  This command may occur once or not at all.
9498 \end_layout
9499
9500 \begin_layout Description
9501
9502 \family typewriter
9503 \series medium
9504 TransformOption\InsetSpace ~
9505 Clip\InsetSpace ~
9506 ClipLatexOption
9507 \family default
9508 \series default
9509  This command specifies that clipping is done via an optional argument.
9510  This command may occur once or not at all.
9511 \end_layout
9512
9513 \begin_layout Description
9514
9515 \family typewriter
9516 \series medium
9517 TransformOption\InsetSpace ~
9518 Extra\InsetSpace ~
9519 ExtraLatexOption
9520 \family default
9521 \series default
9522  This command specifies that an extra optional argument is used.
9523  This command may occur once or not at all.
9524 \end_layout
9525
9526 \begin_layout Description
9527
9528 \family typewriter
9529 \series medium
9530 Product\InsetSpace ~
9531 <text>
9532 \family default
9533 \series default
9534  The text that is inserted in the exported document.
9535  This is actually the most important command and can be quite complex.
9536  This command must occur exactly once.
9537 \end_layout
9538
9539 \begin_layout Description
9540
9541 \family typewriter
9542 \series medium
9543 UpdateFormat\InsetSpace ~
9544 <format>
9545 \family default
9546 \series default
9547  The file format of the converted file.
9548  This must be the name of a format that is known to LyX (see the 
9549 \family sans
9550 \bar under
9551 T
9552 \bar default
9553 ools\SpecialChar \menuseparator
9554
9555 \bar under
9556 P
9557 \bar default
9558 references:Conversion
9559 \family default
9560  dialog).
9561  This command must occur exactly once.
9562 \end_layout
9563
9564 \begin_layout Description
9565
9566 \family typewriter
9567 \series medium
9568 UpdateResult\InsetSpace ~
9569 <filename>
9570 \family default
9571 \series default
9572  The file name of the converted file.
9573  The file name must be absolute.
9574  This command must occur exactly once.
9575 \end_layout
9576
9577 \begin_layout Description
9578
9579 \family typewriter
9580 \series medium
9581 ReferencedFile\InsetSpace ~
9582 <format>\InsetSpace ~
9583 <filename>
9584 \family default
9585 \series default
9586  This command denotes files that are created by the conversion process and
9587  are needed for a particular export format.
9588  If the filename is relative, it is interpreted relative to the master document.
9589  This command may be given zero or more times.
9590 \end_layout
9591
9592 \begin_layout Description
9593
9594 \family typewriter
9595 \series medium
9596 Requirement\InsetSpace ~
9597 <package>
9598 \family default
9599 \series default
9600  The name of a required LaTeX package.
9601  The package is included via 
9602 \family typewriter
9603
9604 \backslash
9605 usepackage{}
9606 \family default
9607  in the LaTeX preamble.
9608  This command may occur zero or more times.
9609 \end_layout
9610
9611 \begin_layout Description
9612
9613 \family typewriter
9614 \series medium
9615 Preamble\InsetSpace ~
9616 <name>
9617 \family default
9618 \series default
9619  This command specifies a preamble snippet that will be included in the
9620  LaTeX preamble.
9621  It has to be defined using 
9622 \family typewriter
9623 PreambleDef
9624 \family default
9625  \SpecialChar \ldots{}
9626  
9627 \family typewriter
9628 PreambleDefEnd
9629 \family default
9630 .
9631  This command may occur zero or more times.
9632 \end_layout
9633
9634 \begin_layout Description
9635
9636 \family typewriter
9637 \series medium
9638 Option\InsetSpace ~
9639 <name>\InsetSpace ~
9640 <value>
9641 \family default
9642 \series default
9643  This command defines an additional macro 
9644 \family typewriter
9645 $$<name>
9646 \family default
9647  for substitution in 
9648 \family typewriter
9649 Product
9650 \family default
9651 .
9652  
9653 \family typewriter
9654 <value>
9655 \family default
9656  itself may contain substitution macros.
9657  The advantage over using 
9658 \family typewriter
9659 <value>
9660 \family default
9661  directly in 
9662 \family typewriter
9663 Product
9664 \family default
9665  is that the substituted value of 
9666 \family typewriter
9667 $$<name>
9668 \family default
9669  is sanitized so that it is a valid optional argument in the document format.
9670  This command may occur zero or more times.
9671 \end_layout
9672
9673 \begin_layout Subsection
9674 Preamble definitions
9675 \end_layout
9676
9677 \begin_layout Standard
9678 The external template configuration file may contain additional preamble
9679  definitions enclosed by 
9680 \family typewriter
9681 PreambleDef
9682 \family default
9683  \SpecialChar \ldots{}
9684  
9685 \family typewriter
9686 PreambleDefEnd
9687 \family default
9688 .
9689  They can be used by the templates in the 
9690 \family typewriter
9691 Format
9692 \family default
9693  section.
9694 \end_layout
9695
9696 \begin_layout Section
9697 The substitution mechanism
9698 \end_layout
9699
9700 \begin_layout Standard
9701 When the external material facility invokes an external program, it is done
9702  on the basis of a command defined in the template configuration file.
9703  These commands can contain various macros that are expanded before execution.
9704  Execution always take place in the directory of the containing document.
9705 \end_layout
9706
9707 \begin_layout Standard
9708 Also, whenever external material is to be displayed, the name will be produced
9709  by the substitution mechanism, and most other commands in the template
9710  definition support substitution as well.
9711 \end_layout
9712
9713 \begin_layout Standard
9714 The available macros are the following:
9715 \end_layout
9716
9717 \begin_layout Description
9718 $$FName The filename of the file specified in the external material dialog.
9719  This is either an absolute name, or it is relative to the LyX document.
9720 \end_layout
9721
9722 \begin_layout Description
9723 $$Basename The filename without path and without the extension.
9724 \end_layout
9725
9726 \begin_layout Description
9727 $$Extension The file extension (including the dot).
9728 \end_layout
9729
9730 \begin_layout Description
9731 $$FPath The path part of 
9732 \family typewriter
9733 $$FName
9734 \family default
9735  (absolute name or relative to the LyX document).
9736 \end_layout
9737
9738 \begin_layout Description
9739 $$AbsPath The absolute file path.
9740 \end_layout
9741
9742 \begin_layout Description
9743 $$RelPathMaster The file path, relative to the master LyX document.
9744 \end_layout
9745
9746 \begin_layout Description
9747 $$RelPathParent The file path, relative to the LyX document.
9748 \end_layout
9749
9750 \begin_layout Description
9751 $$AbsOrRelPathMaster The file path, absolute or relative to the master LyX
9752  document.
9753 \end_layout
9754
9755 \begin_layout Description
9756 $$AbsOrRelPathParent The file path, absolute or relative to the LyX document.
9757 \end_layout
9758
9759 \begin_layout Description
9760 $$Tempname A name and full path to a temporary file which will be automatically
9761  deleted whenever the containing document is closed, or the external material
9762  insertion deleted.
9763 \end_layout
9764
9765 \begin_layout Description
9766 $$Contents(
9767 \begin_inset Quotes eld
9768 \end_inset
9769
9770 filename.ext
9771 \begin_inset Quotes erd
9772 \end_inset
9773
9774 ) This macro will expand to the contents of the file with the name 
9775 \family typewriter
9776 filename.ext
9777 \family default
9778 .
9779 \end_layout
9780
9781 \begin_layout Description
9782 $$Sysdir This macro will expand to the absolute path of the system directory.
9783  This is typically used to point to the various helper scripts that are
9784  bundled with LyX.
9785 \end_layout
9786
9787 \begin_layout Standard
9788 All path macros contain a trailing directory separator, so you can construct
9789  e.g.
9790  the absolute filename with 
9791 \family typewriter
9792 $$AbsPath$$Basename$$Extension
9793 \family default
9794 .
9795 \end_layout
9796
9797 \begin_layout Standard
9798 The macros above are substituted in all commands unless otherwise noted.
9799  The command 
9800 \family typewriter
9801 Product
9802 \family default
9803  supports additionally the following substitutions if they are enabled by
9804  the 
9805 \family typewriter
9806 Transform
9807 \family default
9808  and 
9809 \family typewriter
9810 TransformCommand
9811 \family default
9812  commands:
9813 \end_layout
9814
9815 \begin_layout Description
9816 $$ResizeFront The front part of the resize command.
9817 \end_layout
9818
9819 \begin_layout Description
9820 $$ResizeBack The back part of the resize command.
9821 \end_layout
9822
9823 \begin_layout Description
9824 $$RotateFront The front part of the rotation command.
9825 \end_layout
9826
9827 \begin_layout Description
9828 $$RotateBack The back part of the rotation command.
9829 \end_layout
9830
9831 \begin_layout Standard
9832 The value string of the 
9833 \family typewriter
9834 Option
9835 \family default
9836  command supports additionally the following substitutions if they are enabled
9837  by the 
9838 \family typewriter
9839 Transform
9840 \family default
9841  and 
9842 \family typewriter
9843 TransformOption
9844 \family default
9845  commands:
9846 \end_layout
9847
9848 \begin_layout Description
9849 $$Clip The clip option.
9850 \end_layout
9851
9852 \begin_layout Description
9853 $$Extra The extra option.
9854 \end_layout
9855
9856 \begin_layout Description
9857 $$Resize The resize option.
9858 \end_layout
9859
9860 \begin_layout Description
9861 $$Rotate The rotation option.
9862 \end_layout
9863
9864 \begin_layout Standard
9865 You may ask why there are so many path macros.
9866  There are mainly two reasons:
9867 \end_layout
9868
9869 \begin_layout Standard
9870 First, relative and absolute file names should remain relative or absolute,
9871  respectively.
9872  Users may have reasons to prefer either form.
9873  Relative names are useful for portable documents that should work on different
9874  machines, for example.
9875  Absolute names may be required by some programs.
9876 \end_layout
9877
9878 \begin_layout Standard
9879 Second, LaTeX treats relative file names differently than LyX and other
9880  programs in nested included files.
9881  For LyX, a relative file name is always relative to the document that contains
9882  the file name.
9883  For LaTeX, it is always relative to the master document.
9884  These two definitions are identical if you have only one document, but
9885  differ if you have a master document that includes part documents.
9886  That means that relative filenames must be transformed when presented to
9887  LaTeX.
9888  Fortunately LyX does this automatically for you if you choose the right
9889  macros.
9890 \end_layout
9891
9892 \begin_layout Standard
9893 So which path macro should be used in new template definitions? The rule
9894  is not difficult:
9895 \end_layout
9896
9897 \begin_layout Itemize
9898 Use 
9899 \family typewriter
9900 $$AbsPath
9901 \family default
9902  if an absolute path is required.
9903 \end_layout
9904
9905 \begin_layout Itemize
9906 Use 
9907 \family typewriter
9908 $$AbsOrRelPathMaster
9909 \family default
9910  if the substituted string is some kind of LaTeX input.
9911 \end_layout
9912
9913 \begin_layout Itemize
9914 Else use 
9915 \family typewriter
9916 $$AbsOrRelPathParent
9917 \family default
9918  in order to preserve the user's choice.
9919 \end_layout
9920
9921 \begin_layout Standard
9922 There are special cases where this rule does not work and e.g.\InsetSpace ~
9923 relative names
9924  are needed, but normally it will work just fine.
9925  One example for such a case is the command 
9926 \family typewriter
9927 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
9928 \family default
9929  in the XFig template above: We can't use the absolute name because the
9930  copier for 
9931 \family typewriter
9932 .pstex_t
9933 \family default
9934  files needs the relative name in order to rewrite the file content.
9935 \end_layout
9936
9937 \begin_layout Section
9938 Security discussion
9939 \end_layout
9940
9941 \begin_layout Standard
9942 \begin_inset Note Note
9943 status collapsed
9944
9945 \begin_layout Standard
9946 This section is outdated
9947 \end_layout
9948
9949 \end_inset
9950
9951 The external material feature interfaces with a lot of external programs
9952  and does so automatically, so we have to consider the security implications
9953  of this.
9954  In particular, since you have the option of including your own filenames
9955  and/or parameter strings and those are expanded into a command, it seems
9956  that it would be possible to create a malicious document which executes
9957  arbitrary commands when a user views or prints the document.
9958  This is something we definately want to avoid.
9959 \end_layout
9960
9961 \begin_layout Standard
9962 However, since the external program commands are specified in the template
9963  configuration file only, there are no security issues if LyX is properly
9964  configured with safe templates only.
9965  This is so because the external programs are invoked with the 
9966 \family typewriter
9967 execvp
9968 \family default
9969 -system call rather than the 
9970 \family typewriter
9971 system
9972 \family default
9973  system-call, so it's not possible to execute arbitrary commands from the
9974  filename or parameter section via the shell.
9975 \end_layout
9976
9977 \begin_layout Standard
9978 This also implies that you are restricted in what command strings you can
9979  use in the external material templates.
9980  In particular, pipes and redirection are not readily available.
9981  This has to be so if LyX should remain safe.
9982  If you want to use some of the shell features, you should write a safe
9983  script to do this in a controlled manner, and then invoke the script from
9984  the command string.
9985  In the 
9986 \family typewriter
9987 lib/scripts
9988 \family default
9989  directory of the LyX installation, you can find a safe wrapper script 
9990 \family typewriter
9991 general_command_wrapper.py
9992 \family default
9993  that supports redirection of input and output.
9994  That can serve as an example for how to write safe template scripts.
9995  For a more advanced example that uses 
9996 \family typewriter
9997 fork
9998 \family default
9999  and friends, take a look at the 
10000 \family typewriter
10001 pic2ascii.py
10002 \family default
10003  converter script.
10004 \end_layout
10005
10006 \begin_layout Standard
10007 It is possible to design a template that interacts directly with the shell,
10008  but since this would allow a malicious user to execute arbitrary commands
10009  by writing clever filenames and/or parameters, we generally recommend that
10010  you only use safe scripts that work with the 
10011 \family typewriter
10012 execvp
10013 \family default
10014  system call in a controlled manner.
10015  Of course, for use in a controlled environment, it can be tempting to just
10016  fall back to use ordinary shell scripts.
10017  If you do so, be aware that you 
10018 \emph on
10019 will
10020 \emph default
10021  provide an easily exploitable security hole in your system.
10022  Of course it stands to reason that such unsafe templates will never be
10023  included in the standard LyX distribution, although we do encourage people
10024  to submit new templates in the open source tradition.
10025  But LyX as shipped from the official distribution channels will never have
10026  unsafe templates.
10027 \end_layout
10028
10029 \begin_layout Standard
10030 Including external material provides a lot of power, and you have to be
10031  careful not to introduce security hazards with this power.
10032  A subtle error in a single line in an innocent looking script can open
10033  the door to huge security problems.
10034  So if you do not fully understand the issues, we recommend that you consult
10035  a knowledgable security professional or the LyX development team if you
10036  have any questions about whether a given template is safe or not.
10037  And do this before you use it in an uncontrolled environment.
10038 \end_layout
10039
10040 \begin_layout Chapter
10041 The LyX Server
10042 \end_layout
10043
10044 \begin_layout Section
10045 Introduction
10046 \end_layout
10047
10048 \begin_layout Standard
10049 The LyX server is a method implemented in LyX that will enable other programs
10050  to talk to LyX, invoke LyX commands, and retrieve information about the
10051  LyX internal state.
10052  This is only intended for advanced users, but they should find it useful.
10053 \end_layout
10054
10055 \begin_layout Section
10056 Starting the LyX Server
10057 \end_layout
10058
10059 \begin_layout Standard
10060 The LyX server works through the use of a pair of named pipes.
10061  These are usually located in your home directory and have the names 
10062 \begin_inset Quotes eld
10063 \end_inset
10064
10065
10066 \family typewriter
10067 .lyxpipe.in
10068 \family default
10069
10070 \begin_inset Quotes erd
10071 \end_inset
10072
10073  and 
10074 \begin_inset Quotes eld
10075 \end_inset
10076
10077
10078 \family typewriter
10079 .lyxpipe.out
10080 \family default
10081
10082 \begin_inset Quotes erd
10083 \end_inset
10084
10085 .
10086  External programs write into 
10087 \family typewriter
10088 .lyxpipe.in
10089 \family default
10090  and read back data from 
10091 \family typewriter
10092 .lyxpipe.out
10093 \family default
10094 .
10095  The stem of the pipe names can be defined in the 
10096 \family sans
10097 \bar under
10098 T
10099 \bar default
10100 ools\SpecialChar \menuseparator
10101
10102 \bar under
10103 P
10104 \bar default
10105 references
10106 \family default
10107  dialog, for example 
10108 \family typewriter
10109 "/home/myhome/.lyxpipe"
10110 \family default
10111 .
10112 \end_layout
10113
10114 \begin_layout Standard
10115 LyX will add the '
10116 \family typewriter
10117 .in
10118 \family default
10119 ' and '
10120 \family typewriter
10121 .out
10122 \family default
10123 ' to create the pipes.
10124  The above setting also has the effect of activating the LyX server.
10125  If one of the pipes already exists, LyX will assume that another LyX process
10126  is already running and will not start the server.
10127  To have several LyX processes with servers at the same time, you have to
10128  change the configuration between the start of the programs.
10129 \end_layout
10130
10131 \begin_layout Standard
10132 If you are developing a client program, you might find it useful to enable
10133  debugging information from the LyX server.
10134  Do this by starting LyX as 
10135 \family typewriter
10136 lyx -dbg lyxserver.
10137 \end_layout
10138
10139 \begin_layout Standard
10140 Warning: if LyX crashes, it may not manage to remove the pipes; in this
10141  case you must remove them manually.
10142  If LyX starts and the pipes exist already, it will not start any server.
10143 \end_layout
10144
10145 \begin_layout Standard
10146 Other than this, there are a few points to consider:
10147 \end_layout
10148
10149 \begin_layout Itemize
10150 Both server and clients must run on UNIX or OS/2 machines.
10151  Communications between LyX on UNIX and clients on OS/2 or vice versa is
10152  not possible right now.
10153 \end_layout
10154
10155 \begin_layout Itemize
10156 On OS/2, only one client can connect to LyXServer at a time.
10157 \end_layout
10158
10159 \begin_layout Itemize
10160 On OS/2, clients must open inpipe with 
10161 \family typewriter
10162 O_WRONLY
10163 \family default
10164  mode.
10165 \end_layout
10166
10167 \begin_layout Standard
10168 You can find a complete example client written in C in the source distribution
10169  as 
10170 \family typewriter
10171 development/server_monitor.c
10172 \family default
10173 .
10174 \end_layout
10175
10176 \begin_layout Section
10177 Normal communication
10178 \end_layout
10179
10180 \begin_layout Standard
10181 To issue a LyX call, the client writes a line of ASCII text into the input
10182  pipe.
10183  This line has the following format:
10184 \end_layout
10185
10186 \begin_layout Quote
10187 LYXCMD:
10188 \emph on
10189 clientname
10190 \emph default
10191 :
10192 \emph on
10193 function
10194 \emph default
10195 :
10196 \emph on
10197 argument
10198 \end_layout
10199
10200 \begin_layout Standard
10201 Here 
10202 \emph on
10203 clientname
10204 \emph default
10205  is a name that the client can choose arbitrarily.
10206  Its only use is that LyX will echo it if it sends an answer - so a client
10207  can dispatch results from different requesters.
10208 \end_layout
10209
10210 \begin_layout Standard
10211
10212 \emph on
10213 function
10214 \emph default
10215  is the function you want LyX to perform.
10216  It is the same as the commands you'd use in the minibuffer.
10217 \end_layout
10218
10219 \begin_layout Standard
10220
10221 \emph on
10222 argument
10223 \emph default
10224  is an optional argument which is meaningful only to some functions (for
10225  instance 
10226 \begin_inset Quotes eld
10227 \end_inset
10228
10229 self-insert
10230 \begin_inset Quotes erd
10231 \end_inset
10232
10233  which will insert the argument as text at the cursor position.)
10234 \end_layout
10235
10236 \begin_layout Standard
10237 The answer from LyX will arrive in the output pipe and be of the form
10238 \end_layout
10239
10240 \begin_layout Quote
10241 INFO:
10242 \emph on
10243 clientname
10244 \emph default
10245 :
10246 \emph on
10247 function
10248 \emph default
10249 :
10250 \emph on
10251 data
10252 \end_layout
10253
10254 \begin_layout Standard
10255 where 
10256 \emph on
10257 clientname
10258 \emph default
10259  and 
10260 \emph on
10261 function
10262 \emph default
10263  are just echoed from the command request, while 
10264 \emph on
10265 data
10266 \emph default
10267  is more or less useful information filled according to how the command
10268  execution worked out.
10269  Some commands will return information about the internal state of LyX,
10270  such as 
10271 \begin_inset Quotes eld
10272 \end_inset
10273
10274 font-state
10275 \begin_inset Quotes erd
10276 \end_inset
10277
10278 , while other will return an empty data-response.
10279  This means that the command execution went fine.
10280 \end_layout
10281
10282 \begin_layout Standard
10283 In case of errors, the response from LyX will have this form
10284 \end_layout
10285
10286 \begin_layout Quote
10287 ERROR:
10288 \emph on
10289 clientname
10290 \emph default
10291 :
10292 \emph on
10293 function
10294 \emph default
10295 :
10296 \emph on
10297 error message
10298 \end_layout
10299
10300 \begin_layout Standard
10301 where the 
10302 \emph on
10303 error message
10304 \emph default
10305  should contain an explanation of why the command failed.
10306 \end_layout
10307
10308 \begin_layout Standard
10309 Examples:
10310 \end_layout
10311
10312 \begin_layout LyX-Code
10313 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
10314 \end_layout
10315
10316 \begin_layout LyX-Code
10317 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
10318 \newline
10319 read a <~/.lyxpipe.out
10320 \newline
10321 echo $a
10322 \end_layout
10323
10324 \begin_layout Section
10325 Notification
10326 \end_layout
10327
10328 \begin_layout Standard
10329 LyX can notify clients of events going on asynchronously.
10330  Currently it will only do this if the user binds a key sequence with the
10331  function 
10332 \begin_inset Quotes eld
10333 \end_inset
10334
10335 notify
10336 \begin_inset Quotes erd
10337 \end_inset
10338
10339 .
10340  The format of the string LyX sends is as follows:
10341 \end_layout
10342
10343 \begin_layout Quote
10344
10345 \family typewriter
10346 NOTIFY:
10347 \family default
10348 \emph on
10349 key-sequence
10350 \end_layout
10351
10352 \begin_layout Standard
10353 where 
10354 \emph on
10355 key-sequence
10356 \emph default
10357  is the printed representation of the key sequence that was actually typed
10358  by the user.
10359 \end_layout
10360
10361 \begin_layout Standard
10362 This mechanism can be used to extend LyX's command set and implement macros:
10363  bind some key sequence to 
10364 \begin_inset Quotes eld
10365 \end_inset
10366
10367 notify
10368 \begin_inset Quotes erd
10369 \end_inset
10370
10371 , start a client that listens on the out pipe, dispatches the command according
10372  to the sequence and starts a function that may use LyX calls and LyX requests
10373  to issue a command or a series of commands to LyX.
10374 \end_layout
10375
10376 \begin_layout Section
10377 The simple LyX Server Protocol
10378 \end_layout
10379
10380 \begin_layout Standard
10381 LyX implements a simple protocol that can be used for session management.
10382  All messages are of the form
10383 \end_layout
10384
10385 \begin_layout Quote
10386 LYXSRV:
10387 \emph on
10388 clientname
10389 \emph default
10390 :
10391 \emph on
10392 protocol message
10393 \end_layout
10394
10395 \begin_layout Standard
10396 where 
10397 \emph on
10398 protocol message
10399 \emph default
10400  can be 
10401 \begin_inset Quotes eld
10402 \end_inset
10403
10404 hello
10405 \begin_inset Quotes erd
10406 \end_inset
10407
10408  or 
10409 \begin_inset Quotes eld
10410 \end_inset
10411
10412 bye
10413 \begin_inset Quotes erd
10414 \end_inset
10415
10416 .
10417  If 
10418 \begin_inset Quotes eld
10419 \end_inset
10420
10421 hello
10422 \begin_inset Quotes erd
10423 \end_inset
10424
10425  is received from a client, LyX will report back to inform the client that
10426  it's listening to it's messages, while 
10427 \begin_inset Quotes eld
10428 \end_inset
10429
10430 bye
10431 \begin_inset Quotes erd
10432 \end_inset
10433
10434  sent from LyX will inform clients that LyX is closing.
10435 \end_layout
10436
10437 \begin_layout Chapter
10438 \start_of_appendix
10439 Bindings
10440 \end_layout
10441
10442 \begin_layout Standard
10443 This appendix is a huge cross-reference to all the English language keybindings.
10444  Originally, we simply wanted to list all of the key bindings followed by
10445  the function it's bound to.
10446  That way, a user can look up a key to find out what it does.
10447  We then decided, what the hey, why not include the default toolbar and
10448  menu bindings, too.
10449  Please note this section is likely to be very out of date.
10450 \end_layout
10451
10452 \begin_layout Standard
10453 The form is really self-explanatory, but here are a few tips: all entries
10454  are arranged roughly alphabetically for a given modifier (
10455 \family sans
10456 C-a
10457 \family default
10458
10459 \family sans
10460 C-b
10461 \family default
10462 , etc.).
10463  For the general keyboard layout, simpler prefixes precede the more complex
10464  (
10465 \family sans
10466 C-s
10467 \family default
10468  before 
10469 \family sans
10470 C-S-c
10471 \family default
10472 ).
10473  All entries were gleaned from the default user interface and binding files
10474  located in the directories 
10475 \family typewriter
10476 \SpecialChar \ldots{}
10477 /share/lyx/ui
10478 \family default
10479  and 
10480 \family typewriter
10481 \SpecialChar \ldots{}
10482 /share/lyx/bind
10483 \family default
10484 ; they should be treated as the final word on the bindings.
10485 \end_layout
10486
10487 \begin_layout Standard
10488 As a final note, be aware that some window managers (such as FVWM) take
10489  control of some of the function keys or motion keys.
10490  
10491 \family sans
10492 C-right
10493 \family default
10494  is listed here as generating 
10495 \family typewriter
10496 word-forward
10497 \family default
10498 , but FVWM grabs it and uses it to change virtual desktops instead.
10499  Very annoying unless you instruct your window manager to stop intercepting
10500  such sequences.
10501 \end_layout
10502
10503 \begin_layout Section
10504 Toolbar
10505 \end_layout
10506
10507 \begin_layout LyX-Code
10508 Toolbar
10509 \end_layout
10510
10511 \begin_layout LyX-Code
10512     Layouts
10513 \end_layout
10514
10515 \begin_layout LyX-Code
10516     Icon "buffer-open"
10517 \end_layout
10518
10519 \begin_layout LyX-Code
10520     Icon "buffer-write"
10521 \end_layout
10522
10523 \begin_layout LyX-Code
10524     Icon "buffer-print"
10525 \end_layout
10526
10527 \begin_layout LyX-Code
10528     Separator
10529 \end_layout
10530
10531 \begin_layout LyX-Code
10532     Icon "cut"
10533 \end_layout
10534
10535 \begin_layout LyX-Code
10536     Icon "copy"
10537 \end_layout
10538
10539 \begin_layout LyX-Code
10540     Icon "paste"
10541 \end_layout
10542
10543 \begin_layout LyX-Code
10544     Separator
10545 \end_layout
10546
10547 \begin_layout LyX-Code
10548     Icon "font-emph"
10549 \end_layout
10550
10551 \begin_layout LyX-Code
10552     Icon "font-noun"
10553 \end_layout
10554
10555 \begin_layout LyX-Code
10556     Icon "font-free"
10557 \end_layout
10558
10559 \begin_layout LyX-Code
10560     Separator
10561 \end_layout
10562
10563 \begin_layout LyX-Code
10564     Icon "tex-mode"
10565 \end_layout
10566
10567 \begin_layout LyX-Code
10568     Icon "math-mode"
10569 \end_layout
10570
10571 \begin_layout LyX-Code
10572     Separator
10573 \end_layout
10574
10575 \begin_layout LyX-Code
10576     Icon "footnote-insert"
10577 \end_layout
10578
10579 \begin_layout LyX-Code
10580     Icon "marginpar-insert"
10581 \end_layout
10582
10583 \begin_layout LyX-Code
10584     Icon "depth-next"
10585 \end_layout
10586
10587 \begin_layout LyX-Code
10588     Separator
10589 \end_layout
10590
10591 \begin_layout LyX-Code
10592     Icon "figure-insert"
10593 \end_layout
10594
10595 \begin_layout LyX-Code
10596     Icon "dialog-tabular-insert"
10597 \end_layout
10598
10599 \begin_layout LyX-Code
10600 End
10601 \end_layout
10602
10603 \begin_layout Section
10604 Menu
10605 \end_layout
10606
10607 \begin_layout Standard
10608 Note that the following bindings are for LyX with English menus.
10609  The second character of the binding depends on the menu language.
10610  For example 
10611 \begin_inset Quotes eld
10612 \end_inset
10613
10614
10615 \family sans
10616 M-i r
10617 \family default
10618
10619 \begin_inset Quotes erd
10620 \end_inset
10621
10622  is with German menus 
10623 \begin_inset Quotes eld
10624 \end_inset
10625
10626
10627 \family sans
10628 M-e q
10629 \family default
10630
10631 \begin_inset Quotes erd
10632 \end_inset
10633
10634 .
10635  To find out the shortcuts of your language press the Meta (Alt)-key and
10636  press then the keys of the underlined characters of the menu names.
10637 \end_layout
10638
10639 \begin_layout Subsection
10640 File
10641 \end_layout
10642
10643 \begin_layout List
10644 \labelwidthstring 00.00.0000
10645
10646 \family sans
10647 M-f\InsetSpace ~
10648 a
10649 \family default
10650  
10651 \family typewriter
10652 buffer-write-as
10653 \end_layout
10654
10655 \begin_layout List
10656 \labelwidthstring 00.00.0000
10657
10658 \family sans
10659 M-f\InsetSpace ~
10660 c
10661 \family default
10662  
10663 \family typewriter
10664 buffer-close
10665 \end_layout
10666
10667 \begin_layout List
10668 \labelwidthstring 00.00.0000
10669
10670 \family sans
10671 M-f\InsetSpace ~
10672 d
10673 \family default
10674  
10675 \family typewriter
10676 buffer-reload
10677 \end_layout
10678
10679 \begin_layout List
10680 \labelwidthstring 00.00.0000
10681
10682 \family sans
10683 M-f\InsetSpace ~
10684 e
10685 \family default
10686  
10687 \family typewriter
10688 file_export
10689 \family default
10690  submenu
10691 \end_layout
10692
10693 \begin_layout List
10694 \labelwidthstring 00.00.0000
10695
10696 \family sans
10697 M-f\InsetSpace ~
10698 f
10699 \family default
10700  
10701 \family typewriter
10702 buffer-export fax
10703 \end_layout
10704
10705 \begin_layout List
10706 \labelwidthstring 00.00.0000
10707
10708 \family sans
10709 M-f\InsetSpace ~
10710 i
10711 \family default
10712  
10713 \family typewriter
10714 file_import
10715 \family default
10716  submenu
10717 \end_layout
10718
10719 \begin_layout List
10720 \labelwidthstring 00.00.0000
10721
10722 \family sans
10723 M-f\InsetSpace ~
10724 n
10725 \family default
10726  
10727 \family typewriter
10728 buffer-new
10729 \end_layout
10730
10731 \begin_layout List
10732 \labelwidthstring 00.00.0000
10733
10734 \family sans
10735 M-f\InsetSpace ~
10736 o
10737 \family default
10738  
10739 \family typewriter
10740 buffer-open
10741 \end_layout
10742
10743 \begin_layout List
10744 \labelwidthstring 00.00.0000
10745
10746 \family sans
10747 M-f\InsetSpace ~
10748 p
10749 \family default
10750  
10751 \family typewriter
10752 buffer-print
10753 \end_layout
10754
10755 \begin_layout List
10756 \labelwidthstring 00.00.0000
10757
10758 \family sans
10759 M-f\InsetSpace ~
10760 s
10761 \family default
10762  
10763 \family typewriter
10764 buffer-write
10765 \end_layout
10766
10767 \begin_layout List
10768 \labelwidthstring 00.00.0000
10769
10770 \family sans
10771 M-f\InsetSpace ~
10772 t
10773 \family default
10774  
10775 \family typewriter
10776 buffer-new-template
10777 \end_layout
10778
10779 \begin_layout List
10780 \labelwidthstring 00.00.0000
10781
10782 \family sans
10783 M-f\InsetSpace ~
10784 v
10785 \family default
10786  
10787 \family typewriter
10788 file_vc
10789 \family default
10790  submenu 
10791 \end_layout
10792
10793 \begin_deeper
10794 \begin_layout List
10795 \labelwidthstring 00.00.0000
10796
10797 \family sans
10798 h
10799 \family default
10800  
10801 \family typewriter
10802 vc-history 
10803 \end_layout
10804
10805 \begin_layout List
10806 \labelwidthstring 00.00.0000
10807
10808 \family sans
10809 i
10810 \family default
10811  
10812 \family typewriter
10813 vc-check-in
10814 \end_layout
10815
10816 \begin_layout List
10817 \labelwidthstring 00.00.0000
10818
10819 \family sans
10820 l
10821 \family default
10822  
10823 \family typewriter
10824 vc-revert
10825 \end_layout
10826
10827 \begin_layout List
10828 \labelwidthstring 00.00.0000
10829
10830 \family sans
10831 o
10832 \family default
10833  
10834 \family typewriter
10835 vc-check-out
10836 \end_layout
10837
10838 \begin_layout List
10839 \labelwidthstring 00.00.0000
10840
10841 \family sans
10842 r
10843 \family default
10844  
10845 \family typewriter
10846 vc-register
10847 \end_layout
10848
10849 \begin_layout List
10850 \labelwidthstring 00.00.0000
10851
10852 \family sans
10853 u
10854 \family default
10855  
10856 \family typewriter
10857 vc-undo-last
10858 \end_layout
10859
10860 \end_deeper
10861 \begin_layout List
10862 \labelwidthstring 00.00.0000
10863
10864 \family sans
10865 M-f\InsetSpace ~
10866 x
10867 \family default
10868  
10869 \family typewriter
10870 lyx-quit
10871 \end_layout
10872
10873 \begin_layout Subsection
10874 Edit
10875 \end_layout
10876
10877 \begin_layout List
10878 \labelwidthstring 00.00.0000
10879
10880 \family sans
10881 M-e\InsetSpace ~
10882 a
10883 \family default
10884  
10885 \family typewriter
10886 paste
10887 \end_layout
10888
10889 \begin_layout List
10890 \labelwidthstring 00.00.0000
10891
10892 \family sans
10893 M-e\InsetSpace ~
10894 c
10895 \family default
10896  
10897 \family typewriter
10898 cut
10899 \end_layout
10900
10901 \begin_layout List
10902 \labelwidthstring 00.00.0000
10903
10904 \family sans
10905 M-e\InsetSpace ~
10906 d
10907 \family default
10908  
10909 \family typewriter
10910 redo
10911 \end_layout
10912
10913 \begin_layout List
10914 \labelwidthstring 00.00.0000
10915
10916 \family sans
10917 M-e\InsetSpace ~
10918 e
10919 \family default
10920  
10921 \family typewriter
10922 error-remove-all
10923 \end_layout
10924
10925 \begin_layout List
10926 \labelwidthstring 00.00.0000
10927
10928 \family sans
10929 M-e\InsetSpace ~
10930 f
10931 \family default
10932  
10933 \family typewriter
10934 find-replace
10935 \end_layout
10936
10937 \begin_layout List
10938 \labelwidthstring 00.00.0000
10939
10940 \family sans
10941 M-e\InsetSpace ~
10942 h
10943 \family default
10944  
10945 \family typewriter
10946 buffer-chktex
10947 \end_layout
10948
10949 \begin_layout List
10950 \labelwidthstring 00.00.0000
10951
10952 \family sans
10953 M-e\InsetSpace ~
10954 i
10955 \family default
10956  
10957 \family typewriter
10958 edit_floats
10959 \family default
10960  submenu
10961 \end_layout
10962
10963 \begin_deeper
10964 \begin_layout List
10965 \labelwidthstring 00.00.0000
10966
10967 \family sans
10968 a
10969 \family default
10970  
10971 \family typewriter
10972 tabular-feature append-row
10973 \end_layout
10974
10975 \begin_layout List
10976 \labelwidthstring 00.00.0000
10977
10978 \family sans
10979 b
10980 \family default
10981  
10982 \family typewriter
10983 tabular-feature toggle-line-bottom
10984 \end_layout
10985
10986 \begin_layout List
10987 \labelwidthstring 00.00.0000
10988
10989 \family sans
10990 c
10991 \family default
10992  
10993 \family typewriter
10994 tabular-feature align-center
10995 \end_layout
10996
10997 \begin_layout List
10998 \labelwidthstring 00.00.0000
10999
11000 \family sans
11001 d
11002 \family default
11003  
11004 \family typewriter
11005 tabular-feature delete-column
11006 \end_layout
11007
11008 \begin_layout List
11009 \labelwidthstring 00.00.0000
11010
11011 \family sans
11012 e
11013 \family default
11014  
11015 \family typewriter
11016 tabular-feature align-left
11017 \end_layout
11018
11019 \begin_layout List
11020 \labelwidthstring 00.00.0000
11021
11022 \family sans
11023 i
11024 \family default
11025  
11026 \family typewriter
11027 tabular-feature align-right
11028 \end_layout
11029
11030 \begin_layout List
11031 \labelwidthstring 00.00.0000
11032
11033 \family sans
11034 l
11035 \family default
11036  
11037 \family typewriter
11038 tabular-feature toggle-line-left
11039 \end_layout
11040
11041 \begin_layout List
11042 \labelwidthstring 00.00.0000
11043
11044 \family sans
11045 m
11046 \family default
11047  
11048 \family typewriter
11049 tabular-feature multicolumn
11050 \end_layout
11051
11052 \begin_layout List
11053 \labelwidthstring 00.00.0000
11054
11055 \family sans
11056 n
11057 \family default
11058  
11059 \family typewriter
11060 tabular-feature valign-center
11061 \end_layout
11062
11063 \begin_layout List
11064 \labelwidthstring 00.00.0000
11065
11066 \family sans
11067 o
11068 \family default
11069  
11070 \family typewriter
11071 tabular-feature valign-top
11072 \end_layout
11073
11074 \begin_layout List
11075 \labelwidthstring 00.00.0000
11076
11077 \family sans
11078 r
11079 \family default
11080  
11081 \family typewriter
11082 tabular-feature toggle-line-right
11083 \end_layout
11084
11085 \begin_layout List
11086 \labelwidthstring 00.00.0000
11087
11088 \family sans
11089 t
11090 \family default
11091  
11092 \family typewriter
11093 tabular-feature toggle-line-top
11094 \end_layout
11095
11096 \begin_layout List
11097 \labelwidthstring 00.00.0000
11098
11099 \family sans
11100 u
11101 \family default
11102  
11103 \family typewriter
11104 tabular-feature append-column
11105 \end_layout
11106
11107 \begin_layout List
11108 \labelwidthstring 00.00.0000
11109
11110 \family sans
11111 v
11112 \family default
11113  
11114 \family typewriter
11115 tabular-feature valign-bottom
11116 \end_layout
11117
11118 \begin_layout List
11119 \labelwidthstring 00.00.0000
11120
11121 \family sans
11122 w
11123 \family default
11124  
11125 \family typewriter
11126 tabular-feature delete-row
11127 \end_layout
11128
11129 \end_deeper
11130 \begin_layout List
11131 \labelwidthstring 00.00.0000
11132
11133 \family sans
11134 M-e\InsetSpace ~
11135 l
11136 \family default
11137  
11138 \family typewriter
11139 math-panel
11140 \end_layout
11141
11142 \begin_deeper
11143 \begin_layout List
11144 \labelwidthstring 00.00.0000
11145
11146 \family sans
11147 a
11148 \family default
11149  
11150 \family typewriter
11151 floats-operate openfoot
11152 \end_layout
11153
11154 \begin_layout List
11155 \labelwidthstring 00.00.0000
11156
11157 \family sans
11158 c
11159 \family default
11160  
11161 \family typewriter
11162 floats-operate closefoot
11163 \end_layout
11164
11165 \begin_layout List
11166 \labelwidthstring 00.00.0000
11167
11168 \family sans
11169 f
11170 \family default
11171  
11172 \family typewriter
11173 floats-operate openfig
11174 \end_layout
11175
11176 \begin_layout List
11177 \labelwidthstring 00.00.0000
11178
11179 \family sans
11180 m
11181 \family default
11182  
11183 \family typewriter
11184 melt
11185 \end_layout
11186
11187 \begin_layout List
11188 \labelwidthstring 00.00.0000
11189
11190 \family sans
11191 o
11192 \family default
11193  
11194 \family typewriter
11195 open-stuff
11196 \end_layout
11197
11198 \begin_layout List
11199 \labelwidthstring 00.00.0000
11200
11201 \family sans
11202 t
11203 \family default
11204  
11205 \family typewriter
11206 floats-operate closefig
11207 \end_layout
11208
11209 \end_deeper
11210 \begin_layout List
11211 \labelwidthstring 00.00.0000
11212
11213 \family sans
11214 M-e\InsetSpace ~
11215 o
11216 \family default
11217  
11218 \family typewriter
11219 copy
11220 \end_layout
11221
11222 \begin_layout List
11223 \labelwidthstring 00.00.0000
11224
11225 \family sans
11226 M-e\InsetSpace ~
11227 p
11228 \family default
11229  
11230 \family typewriter
11231 dialog-preferences
11232 \family default
11233  
11234 \end_layout
11235
11236 \begin_layout List
11237 \labelwidthstring 00.00.0000
11238
11239 \family sans
11240 M-e\InsetSpace ~
11241 r
11242 \family default
11243  
11244 \family typewriter
11245 reconfigure
11246 \end_layout
11247
11248 \begin_layout List
11249 \labelwidthstring 00.00.0000
11250
11251 \family sans
11252 M-e\InsetSpace ~
11253 s
11254 \family default
11255  
11256 \family typewriter
11257 spellchecker
11258 \end_layout
11259
11260 \begin_layout List
11261 \labelwidthstring 00.00.0000
11262
11263 \family sans
11264 M-e\InsetSpace ~
11265 t
11266 \family default
11267  
11268 \family typewriter
11269 edit_tabular
11270 \family default
11271  submenu
11272 \end_layout
11273
11274 \begin_layout List
11275 \labelwidthstring 00.00.0000
11276
11277 \family sans
11278 M-e\InsetSpace ~
11279 u
11280 \family default
11281  
11282 \family typewriter
11283 undo
11284 \end_layout
11285
11286 \begin_layout List
11287 \labelwidthstring 00.00.0000
11288
11289 \family sans
11290 M-e\InsetSpace ~
11291 x
11292 \family default
11293  
11294 \family typewriter
11295 edit_paste
11296 \family default
11297  submenu
11298 \end_layout
11299
11300 \begin_deeper
11301 \begin_layout List
11302 \labelwidthstring 00.00.0000
11303
11304 \family sans
11305 l
11306 \family default
11307  
11308 \family typewriter
11309 primary-selection-paste
11310 \end_layout
11311
11312 \begin_layout List
11313 \labelwidthstring 00.00.0000
11314
11315 \family sans
11316 p
11317 \family default
11318  
11319 \family typewriter
11320 primary-selection-paste paragraph
11321 \end_layout
11322
11323 \end_deeper
11324 \begin_layout Subsection
11325 Insert
11326 \end_layout
11327
11328 \begin_layout List
11329 \labelwidthstring 00.00.0000
11330
11331 \family sans
11332 M-i\InsetSpace ~
11333 a
11334 \family default
11335  
11336 \family typewriter
11337 insert_floats
11338 \family default
11339  submenu
11340 \end_layout
11341
11342 \begin_deeper
11343 \begin_layout List
11344 \labelwidthstring 00.00.0000
11345
11346 \family sans
11347 a
11348 \family default
11349  
11350 \family typewriter
11351 buffer-float-insert algorithm
11352 \end_layout
11353
11354 \begin_layout List
11355 \labelwidthstring 00.00.0000
11356
11357 \family sans
11358 d
11359 \family default
11360  
11361 \family typewriter
11362 buffer-float-insert wide-tab
11363 \end_layout
11364
11365 \begin_layout List
11366 \labelwidthstring 00.00.0000
11367
11368 \family sans
11369 f
11370 \family default
11371  
11372 \family typewriter
11373 buffer-float-insert figure
11374 \end_layout
11375
11376 \begin_layout List
11377 \labelwidthstring 00.00.0000
11378
11379 \family sans
11380 t
11381 \family default
11382  
11383 \family typewriter
11384 buffer-float-insert table
11385 \end_layout
11386
11387 \begin_layout List
11388 \labelwidthstring 00.00.0000
11389
11390 \family sans
11391 w
11392 \family default
11393  
11394 \family typewriter
11395 buffer-float-insert wide-fig
11396 \end_layout
11397
11398 \end_deeper
11399 \begin_layout List
11400 \labelwidthstring 00.00.0000
11401
11402 \family sans
11403 M-i\InsetSpace ~
11404 b
11405 \family default
11406  
11407 \family typewriter
11408 dialog-tabular-insert
11409 \end_layout
11410
11411 \begin_layout List
11412 \labelwidthstring 00.00.0000
11413
11414 \family sans
11415 M-i\InsetSpace ~
11416 c
11417 \family default
11418  
11419 \family typewriter
11420 citation-insert
11421 \end_layout
11422
11423 \begin_layout List
11424 \labelwidthstring 00.00.0000
11425
11426 \family sans
11427 M-i\InsetSpace ~
11428 d
11429 \family default
11430  
11431 \family typewriter
11432 math-display
11433 \end_layout
11434
11435 \begin_layout List
11436 \labelwidthstring 00.00.0000
11437
11438 \family sans
11439 M-i\InsetSpace ~
11440 e
11441 \family default
11442  
11443 \family typewriter
11444 buffer-child-insert
11445 \end_layout
11446
11447 \begin_layout List
11448 \labelwidthstring 00.00.0000
11449
11450 \family sans
11451 M-i\InsetSpace ~
11452 f
11453 \family default
11454  
11455 \family typewriter
11456 footnote-insert
11457 \end_layout
11458
11459 \begin_layout List
11460 \labelwidthstring 00.00.0000
11461
11462 \family sans
11463 M-i\InsetSpace ~
11464 g
11465 \family default
11466  
11467 \family typewriter
11468 figure-insert
11469 \end_layout
11470
11471 \begin_layout List
11472 \labelwidthstring 00.00.0000
11473
11474 \family sans
11475 M-i\InsetSpace ~
11476 h
11477 \family default
11478  
11479 \family typewriter
11480 math-mode
11481 \end_layout
11482
11483 \begin_layout List
11484 \labelwidthstring 00.00.0000
11485
11486 \family sans
11487 M-i\InsetSpace ~
11488 i
11489 \family default
11490  
11491 \family typewriter
11492 index-insert
11493 \end_layout
11494
11495 \begin_layout List
11496 \labelwidthstring 00.00.0000
11497
11498 \family sans
11499 M-i\InsetSpace ~
11500 l
11501 \family default
11502  
11503 \family typewriter
11504 label-insert
11505 \end_layout
11506
11507 \begin_layout List
11508 \labelwidthstring 00.00.0000
11509
11510 \family sans
11511 M-i\InsetSpace ~
11512 m
11513 \family default
11514  
11515 \family typewriter
11516 marginpar-insert
11517 \end_layout
11518
11519 \begin_layout List
11520 \labelwidthstring 00.00.0000
11521
11522 \family sans
11523 M-i\InsetSpace ~
11524 n
11525 \family default
11526  
11527 \family typewriter
11528 note-insert
11529 \end_layout
11530
11531 \begin_layout List
11532 \labelwidthstring 00.00.0000
11533
11534 \family sans
11535 M-i\InsetSpace ~
11536 o
11537 \family default
11538  
11539 \family typewriter
11540 insert_toc
11541 \family default
11542  submenu
11543 \end_layout
11544
11545 \begin_deeper
11546 \begin_layout List
11547 \labelwidthstring 00.00.0000
11548
11549 \family sans
11550 a
11551 \family default
11552  
11553 \family typewriter
11554 loa-insert
11555 \end_layout
11556
11557 \begin_layout List
11558 \labelwidthstring 00.00.0000
11559
11560 \family sans
11561 b
11562 \family default
11563  
11564 \family typewriter
11565 bibtex-insert
11566 \end_layout
11567
11568 \begin_layout List
11569 \labelwidthstring 00.00.0000
11570
11571 \family sans
11572 c
11573 \family default
11574  
11575 \family typewriter
11576 toc-insert
11577 \end_layout
11578
11579 \begin_layout List
11580 \labelwidthstring 00.00.0000
11581
11582 \family sans
11583 f
11584 \family default
11585  
11586 \family typewriter
11587 lof-insert
11588 \end_layout
11589
11590 \begin_layout List
11591 \labelwidthstring 00.00.0000
11592
11593 \family sans
11594 i
11595 \family default
11596  
11597 \family typewriter
11598 index-print
11599 \end_layout
11600
11601 \begin_layout List
11602 \labelwidthstring 00.00.0000
11603
11604 \family sans
11605 t
11606 \family default
11607  
11608 \family typewriter
11609 lot-insert
11610 \end_layout
11611
11612 \end_deeper
11613 \begin_layout List
11614 \labelwidthstring 00.00.0000
11615
11616 \family sans
11617 M-i\InsetSpace ~
11618 r
11619 \family default
11620  
11621 \family typewriter
11622 reference-insert
11623 \end_layout
11624
11625 \begin_layout List
11626 \labelwidthstring 00.00.0000
11627
11628 \family sans
11629 M-i\InsetSpace ~
11630 s
11631 \family default
11632  
11633 \family typewriter
11634 insert_special
11635 \family default
11636  submenu
11637 \end_layout
11638
11639 \begin_deeper
11640 \begin_layout List
11641 \labelwidthstring 00.00.0000
11642
11643 \family sans
11644 b
11645 \family default
11646  
11647 \family typewriter
11648 protected-space-insert
11649 \end_layout
11650
11651 \begin_layout List
11652 \labelwidthstring 00.00.0000
11653
11654 \family sans
11655 e
11656 \family default
11657  
11658 \family typewriter
11659 end-of-sentence-period-insert
11660 \end_layout
11661
11662 \begin_layout List
11663 \labelwidthstring 00.00.0000
11664
11665 \family sans
11666 h
11667 \family default
11668  
11669 \family typewriter
11670 hfill-insert
11671 \end_layout
11672
11673 \begin_layout List
11674 \labelwidthstring 00.00.0000
11675
11676 \family sans
11677 i
11678 \family default
11679  
11680 \family typewriter
11681 dots-insert
11682 \end_layout
11683
11684 \begin_layout List
11685 \labelwidthstring 00.00.0000
11686
11687 \family sans
11688 l
11689 \family default
11690  
11691 \family typewriter
11692 break-line
11693 \end_layout
11694
11695 \begin_layout List
11696 \labelwidthstring 00.00.0000
11697
11698 \family sans
11699 m
11700 \family default
11701  
11702 \family typewriter
11703 menu-separator-insert
11704 \end_layout
11705
11706 \begin_layout List
11707 \labelwidthstring 00.00.0000
11708
11709 \family sans
11710 p
11711 \family default
11712  
11713 \family typewriter
11714 hyphenation-point-insert
11715 \end_layout
11716
11717 \begin_layout List
11718 \labelwidthstring 00.00.0000
11719
11720 \family sans
11721 q
11722 \family default
11723  
11724 \family typewriter
11725 quote-insert
11726 \end_layout
11727
11728 \begin_layout List
11729 \labelwidthstring 00.00.0000
11730
11731 \family sans
11732 s
11733 \family default
11734  
11735 \family typewriter
11736 command-sequence math-insert ^;math-mode;
11737 \end_layout
11738
11739 \begin_layout List
11740 \labelwidthstring 00.00.0000
11741
11742 \family sans
11743 u
11744 \family default
11745  
11746 \family typewriter
11747 command-sequence math-insert _;math-mode;
11748 \end_layout
11749
11750 \end_deeper
11751 \begin_layout List
11752 \labelwidthstring 00.00.0000
11753
11754 \family sans
11755 M-i\InsetSpace ~
11756 t
11757 \family default
11758  
11759 \family typewriter
11760 insert_file
11761 \family default
11762  submenu
11763 \end_layout
11764
11765 \begin_deeper
11766 \begin_layout List
11767 \labelwidthstring 00.00.0000
11768
11769 \family sans
11770 l
11771 \family default
11772  
11773 \family typewriter
11774 file-insert-plaintext lines
11775 \end_layout
11776
11777 \begin_layout List
11778 \labelwidthstring 00.00.0000
11779
11780 \family sans
11781 p
11782 \family default
11783  
11784 \family typewriter
11785 file-insert-plaintext paragraphs
11786 \end_layout
11787
11788 \begin_layout List
11789 \labelwidthstring 00.00.0000
11790
11791 \family sans
11792 x
11793 \family default
11794  
11795 \family typewriter
11796 file-insert
11797 \end_layout
11798
11799 \end_deeper
11800 \begin_layout List
11801 \labelwidthstring 00.00.0000
11802
11803 \family sans
11804 M-i\InsetSpace ~
11805 u
11806 \family default
11807  
11808 \family typewriter
11809 url-insert
11810 \end_layout
11811
11812 \begin_layout List
11813 \labelwidthstring 00.00.0000
11814
11815 \family sans
11816 M-i\InsetSpace ~
11817 w
11818 \family default
11819  
11820 \family typewriter
11821 index-insert-last
11822 \end_layout
11823
11824 \begin_layout List
11825 \labelwidthstring 00.00.0000
11826
11827 \family sans
11828 M-i\InsetSpace ~
11829 x
11830 \family default
11831  
11832 \family typewriter
11833 external-insert
11834 \end_layout
11835
11836 \begin_layout Subsection
11837 Layout
11838 \end_layout
11839
11840 \begin_layout List
11841 \labelwidthstring 00.00.0000
11842
11843 \family sans
11844 M-l\InsetSpace ~
11845 a
11846 \family default
11847  
11848 \family typewriter
11849 appendix
11850 \end_layout
11851
11852 \begin_layout List
11853 \labelwidthstring 00.00.0000
11854
11855 \family sans
11856 M-l\InsetSpace ~
11857 b
11858 \family default
11859  
11860 \family typewriter
11861 font-bold
11862 \end_layout
11863
11864 \begin_layout List
11865 \labelwidthstring 00.00.0000
11866
11867 \family sans
11868 M-l\InsetSpace ~
11869 c
11870 \family default
11871  
11872 \family typewriter
11873 layout-character
11874 \end_layout
11875
11876 \begin_layout List
11877 \labelwidthstring 00.00.0000
11878
11879 \family sans
11880 M-l\InsetSpace ~
11881 d
11882 \family default
11883  
11884 \family typewriter
11885 layout-document
11886 \end_layout
11887
11888 \begin_layout List
11889 \labelwidthstring 00.00.0000
11890
11891 \family sans
11892 M-l\InsetSpace ~
11893 e
11894 \family default
11895  
11896 \family typewriter
11897 font-emph
11898 \end_layout
11899
11900 \begin_layout List
11901 \labelwidthstring 00.00.0000
11902
11903 \family sans
11904 M-l\InsetSpace ~
11905 l
11906 \family default
11907  
11908 \family typewriter
11909 layout-preamble
11910 \end_layout
11911
11912 \begin_layout List
11913 \labelwidthstring 00.00.0000
11914
11915 \family sans
11916 M-l\InsetSpace ~
11917 n
11918 \family default
11919  
11920 \family typewriter
11921 font-noun
11922 \end_layout
11923
11924 \begin_layout List
11925 \labelwidthstring 00.00.0000
11926
11927 \family sans
11928 M-l\InsetSpace ~
11929 p
11930 \family default
11931  
11932 \family typewriter
11933 layout-paragraph
11934 \end_layout
11935
11936 \begin_layout List
11937 \labelwidthstring 00.00.0000
11938
11939 \family sans
11940 M-l\InsetSpace ~
11941 s
11942 \family default
11943  
11944 \family typewriter
11945 layout-save-default
11946 \end_layout
11947
11948 \begin_layout List
11949 \labelwidthstring 00.00.0000
11950
11951 \family sans
11952 M-l\InsetSpace ~
11953 t
11954 \family default
11955  
11956 \family typewriter
11957 layout-tabular
11958 \end_layout
11959
11960 \begin_layout List
11961 \labelwidthstring 00.00.0000
11962
11963 \family sans
11964 M-l\InsetSpace ~
11965 v
11966 \family default
11967  
11968 \family typewriter
11969 depth-increment
11970 \end_layout
11971
11972 \begin_layout List
11973 \labelwidthstring 00.00.0000
11974
11975 \family sans
11976 M-l\InsetSpace ~
11977 x
11978 \family default
11979  
11980 \family typewriter
11981 tex-mode
11982 \end_layout
11983
11984 \begin_layout Subsubsection
11985
11986 \family sans
11987 Layout\SpecialChar \menuseparator
11988 Character
11989 \family default
11990  
11991 \end_layout
11992
11993 \begin_layout List
11994 \labelwidthstring 00.00.0000
11995
11996 \family sans
11997 M-c\InsetSpace ~
11998 b
11999 \family default
12000  
12001 \family typewriter
12002 font-bold
12003 \end_layout
12004
12005 \begin_layout List
12006 \labelwidthstring 00.00.0000
12007
12008 \family sans
12009 M-c\InsetSpace ~
12010 c
12011 \family default
12012  
12013 \family typewriter
12014 font-noun
12015 \end_layout
12016
12017 \begin_layout List
12018 \labelwidthstring 00.00.0000
12019
12020 \family sans
12021 M-c\InsetSpace ~
12022 e
12023 \family default
12024  
12025 \family typewriter
12026 font-emph
12027 \end_layout
12028
12029 \begin_layout List
12030 \labelwidthstring 00.00.0000
12031
12032 \family sans
12033 M-c\InsetSpace ~
12034 m
12035 \family default
12036  
12037 \family typewriter
12038 math-mode
12039 \end_layout
12040
12041 \begin_layout List
12042 \labelwidthstring 00.00.0000
12043
12044 \family sans
12045 M-c\InsetSpace ~
12046 p
12047 \family default
12048  
12049 \family typewriter
12050 font-code
12051 \end_layout
12052
12053 \begin_layout List
12054 \labelwidthstring 00.00.0000
12055
12056 \family sans
12057 M-c\InsetSpace ~
12058 r
12059 \family default
12060  
12061 \family typewriter
12062 font-roman
12063 \end_layout
12064
12065 \begin_layout List
12066 \labelwidthstring 00.00.0000
12067
12068 \family sans
12069 M-c\InsetSpace ~
12070 s
12071 \family default
12072  
12073 \family typewriter
12074 font-sans
12075 \end_layout
12076
12077 \begin_layout List
12078 \labelwidthstring 00.00.0000
12079
12080 \family sans
12081 M-c\InsetSpace ~
12082 u
12083 \family default
12084  
12085 \family typewriter
12086 font-underline
12087 \end_layout
12088
12089 \begin_layout List
12090 \labelwidthstring 00.00.0000
12091
12092 \family sans
12093 M-c\InsetSpace ~
12094 space
12095 \family default
12096  
12097 \family typewriter
12098 font-default
12099 \end_layout
12100
12101 \begin_layout List
12102 \labelwidthstring 00.00.0000
12103
12104 \family sans
12105 M-c\InsetSpace ~
12106 Down
12107 \family default
12108  
12109 \family typewriter
12110 word-lowcase
12111 \end_layout
12112
12113 \begin_layout List
12114 \labelwidthstring 00.00.0000
12115
12116 \family sans
12117 M-c\InsetSpace ~
12118 Up
12119 \family default
12120  
12121 \family typewriter
12122 word-upcase
12123 \end_layout
12124
12125 \begin_layout List
12126 \labelwidthstring 00.00.0000
12127
12128 \family sans
12129 M-c\InsetSpace ~
12130 Right
12131 \family default
12132  
12133 \family typewriter
12134 word-capitalize
12135 \end_layout
12136
12137 \begin_layout List
12138 \labelwidthstring 00.00.0000
12139
12140 \family sans
12141 M-s\InsetSpace ~
12142 h
12143 \family default
12144  
12145 \family typewriter
12146 font-size huge
12147 \end_layout
12148
12149 \begin_layout List
12150 \labelwidthstring 00.00.0000
12151
12152 \family sans
12153 M-s\InsetSpace ~
12154 l
12155 \family default
12156  
12157 \family typewriter
12158 font-size large
12159 \end_layout
12160
12161 \begin_layout List
12162 \labelwidthstring 00.00.0000
12163
12164 \family sans
12165 M-s\InsetSpace ~
12166 n
12167 \family default
12168  
12169 \family typewriter
12170 font-size normal
12171 \end_layout
12172
12173 \begin_layout List
12174 \labelwidthstring 00.00.0000
12175
12176 \family sans
12177 M-s\InsetSpace ~
12178 s
12179 \family default
12180  
12181 \family typewriter
12182 font-size small
12183 \end_layout
12184
12185 \begin_layout List
12186 \labelwidthstring 00.00.0000
12187
12188 \family sans
12189 M-s\InsetSpace ~
12190 t
12191 \family default
12192  
12193 \family typewriter
12194 font-size tiny
12195 \end_layout
12196
12197 \begin_layout List
12198 \labelwidthstring 00.00.0000
12199
12200 \family sans
12201 M-s\InsetSpace ~
12202 0
12203 \family default
12204  
12205 \family typewriter
12206 font-size huger
12207 \end_layout
12208
12209 \begin_layout List
12210 \labelwidthstring 00.00.0000
12211
12212 \family sans
12213 M-s\InsetSpace ~
12214 1
12215 \family default
12216  
12217 \family typewriter
12218 font-size tiny
12219 \end_layout
12220
12221 \begin_layout List
12222 \labelwidthstring 00.00.0000
12223
12224 \family sans
12225 M-s\InsetSpace ~
12226 2
12227 \family default
12228  
12229 \family typewriter
12230 font-size smallest
12231 \end_layout
12232
12233 \begin_layout List
12234 \labelwidthstring 00.00.0000
12235
12236 \family sans
12237 M-s\InsetSpace ~
12238 3
12239 \family default
12240  
12241 \family typewriter
12242 font-size smaller
12243 \end_layout
12244
12245 \begin_layout List
12246 \labelwidthstring 00.00.0000
12247
12248 \family sans
12249 M-s\InsetSpace ~
12250 4
12251 \family default
12252  
12253 \family typewriter
12254 font-size small
12255 \end_layout
12256
12257 \begin_layout List
12258 \labelwidthstring 00.00.0000
12259
12260 \family sans
12261 M-s\InsetSpace ~
12262 5
12263 \family default
12264  
12265 \family typewriter
12266 font-size normal
12267 \end_layout
12268
12269 \begin_layout List
12270 \labelwidthstring 00.00.0000
12271
12272 \family sans
12273 M-s\InsetSpace ~
12274 6
12275 \family default
12276  
12277 \family typewriter
12278 font-size large
12279 \end_layout
12280
12281 \begin_layout List
12282 \labelwidthstring 00.00.0000
12283
12284 \family sans
12285 M-s\InsetSpace ~
12286 7
12287 \family default
12288  
12289 \family typewriter
12290 font-size larger
12291 \end_layout
12292
12293 \begin_layout List
12294 \labelwidthstring 00.00.0000
12295
12296 \family sans
12297 M-s\InsetSpace ~
12298 8
12299 \family default
12300  
12301 \family typewriter
12302 font-size largest
12303 \end_layout
12304
12305 \begin_layout List
12306 \labelwidthstring 00.00.0000
12307
12308 \family sans
12309 M-s\InsetSpace ~
12310 9
12311 \family default
12312  
12313 \family typewriter
12314 font-size huge
12315 \end_layout
12316
12317 \begin_layout List
12318 \labelwidthstring 00.00.0000
12319
12320 \family sans
12321 M-s\InsetSpace ~
12322 S-H
12323 \family default
12324  
12325 \family typewriter
12326 font-size huger
12327 \end_layout
12328
12329 \begin_layout List
12330 \labelwidthstring 00.00.0000
12331
12332 \family sans
12333 M-s\InsetSpace ~
12334 S-L
12335 \family default
12336  
12337 \family typewriter
12338 font-size larger
12339 \end_layout
12340
12341 \begin_layout List
12342 \labelwidthstring 00.00.0000
12343
12344 \family sans
12345 M-s\InsetSpace ~
12346 S-S
12347 \family default
12348  
12349 \family typewriter
12350 font-size smaller
12351 \end_layout
12352
12353 \begin_layout List
12354 \labelwidthstring 00.00.0000
12355
12356 \family sans
12357 M-s\InsetSpace ~
12358 plus
12359 \family default
12360  
12361 \family typewriter
12362 font-size increase
12363 \end_layout
12364
12365 \begin_layout List
12366 \labelwidthstring 00.00.0000
12367
12368 \family sans
12369 M-s\InsetSpace ~
12370 minus
12371 \family default
12372  
12373 \family typewriter
12374 font-size decrease
12375 \end_layout
12376
12377 \begin_layout Subsection
12378 View
12379 \end_layout
12380
12381 \begin_layout Subsection
12382 Navigate
12383 \end_layout
12384
12385 \begin_layout Subsection
12386 Help
12387 \end_layout
12388
12389 \begin_layout Subsection
12390 Paragraph Style
12391 \end_layout
12392
12393 \begin_layout List
12394 \labelwidthstring 00.00.0000
12395
12396 \family sans
12397 M-p\InsetSpace ~
12398 a
12399 \family default
12400  
12401 \family typewriter
12402 layout Abstract
12403 \end_layout
12404
12405 \begin_layout List
12406 \labelwidthstring 00.00.0000
12407
12408 \family sans
12409 M-p\InsetSpace ~
12410 b
12411 \family default
12412  
12413 \family typewriter
12414 layout Itemize
12415 \end_layout
12416
12417 \begin_layout List
12418 \labelwidthstring 00.00.0000
12419
12420 \family sans
12421 M-p\InsetSpace ~
12422 c
12423 \family default
12424  
12425 \family typewriter
12426 layout LyX-Code
12427 \end_layout
12428
12429 \begin_layout List
12430 \labelwidthstring 00.00.0000
12431
12432 \family sans
12433 M-p\InsetSpace ~
12434 d
12435 \family default
12436  
12437 \family typewriter
12438 layout Description
12439 \end_layout
12440
12441 \begin_layout List
12442 \labelwidthstring 00.00.0000
12443
12444 \family sans
12445 M-p\InsetSpace ~
12446 e
12447 \family default
12448  
12449 \family typewriter
12450 layout Enumerate
12451 \end_layout
12452
12453 \begin_layout List
12454 \labelwidthstring 00.00.0000
12455
12456 \family sans
12457 M-p\InsetSpace ~
12458 f
12459 \family default
12460  
12461 \family typewriter
12462 layout ShortFoilhead
12463 \end_layout
12464
12465 \begin_layout List
12466 \labelwidthstring 00.00.0000
12467
12468 \family sans
12469 M-p\InsetSpace ~
12470 i
12471 \family default
12472  
12473 \family typewriter
12474 layout Itemize
12475 \end_layout
12476
12477 \begin_layout List
12478 \labelwidthstring 00.00.0000
12479
12480 \family sans
12481 M-p\InsetSpace ~
12482 l
12483 \family default
12484  
12485 \family typewriter
12486 layout List
12487 \end_layout
12488
12489 \begin_layout List
12490 \labelwidthstring 00.00.0000
12491
12492 \family sans
12493 M-p\InsetSpace ~
12494 n
12495 \family default
12496  
12497 \family typewriter
12498 layout Enumerate
12499 \end_layout
12500
12501 \begin_layout List
12502 \labelwidthstring 00.00.0000
12503
12504 \family sans
12505 M-p\InsetSpace ~
12506 q
12507 \family default
12508  
12509 \family typewriter
12510 layout Quote
12511 \end_layout
12512
12513 \begin_layout List
12514 \labelwidthstring 00.00.0000
12515
12516 \family sans
12517 M-p\InsetSpace ~
12518 r
12519 \family default
12520  
12521 \family typewriter
12522 layout ShortRotatefoilhead
12523 \end_layout
12524
12525 \begin_layout List
12526 \labelwidthstring 00.00.0000
12527
12528 \family sans
12529 M-p\InsetSpace ~
12530 s
12531 \family default
12532  
12533 \family typewriter
12534 layout Standard
12535 \end_layout
12536
12537 \begin_layout List
12538 \labelwidthstring 00.00.0000
12539
12540 \family sans
12541 M-p\InsetSpace ~
12542 t
12543 \family default
12544  
12545 \family typewriter
12546 layout Title
12547 \end_layout
12548
12549 \begin_layout List
12550 \labelwidthstring 00.00.0000
12551
12552 \family sans
12553 M-p\InsetSpace ~
12554 v
12555 \family default
12556  
12557 \family typewriter
12558 layout Verse
12559 \end_layout
12560
12561 \begin_layout List
12562 \labelwidthstring 00.00.0000
12563
12564 \family sans
12565 M-p\InsetSpace ~
12566 space
12567 \family default
12568  
12569 \family typewriter
12570 drop-layouts-choice
12571 \end_layout
12572
12573 \begin_layout List
12574 \labelwidthstring 00.00.0000
12575
12576 \family sans
12577 M-p
12578 \noun on
12579 \InsetSpace ~
12580 0
12581 \family default
12582 \noun default
12583  
12584 \family typewriter
12585 layout Part
12586 \end_layout
12587
12588 \begin_layout List
12589 \labelwidthstring 00.00.0000
12590
12591 \family sans
12592 M-p
12593 \noun on
12594 \InsetSpace ~
12595 1
12596 \family default
12597 \noun default
12598  
12599 \family typewriter
12600 layout Chapter
12601 \end_layout
12602
12603 \begin_layout List
12604 \labelwidthstring 00.00.0000
12605
12606 \family sans
12607 M-p\InsetSpace ~
12608 2
12609 \family default
12610  
12611 \family typewriter
12612 layout Section
12613 \end_layout
12614
12615 \begin_layout List
12616 \labelwidthstring 00.00.0000
12617
12618 \family sans
12619 M-p\InsetSpace ~
12620 3
12621 \family default
12622  
12623 \family typewriter
12624 layout Subsection
12625 \end_layout
12626
12627 \begin_layout List
12628 \labelwidthstring 00.00.0000
12629
12630 \family sans
12631 M-p\InsetSpace ~
12632 4
12633 \family default
12634  
12635 \family typewriter
12636 layout Subsubsection
12637 \end_layout
12638
12639 \begin_layout List
12640 \labelwidthstring 00.00.0000
12641
12642 \family sans
12643 M-p\InsetSpace ~
12644 5
12645 \family default
12646  
12647 \family typewriter
12648 layout Paragraph
12649 \end_layout
12650
12651 \begin_layout List
12652 \labelwidthstring 00.00.0000
12653
12654 \family sans
12655 M-p\InsetSpace ~
12656 6
12657 \family default
12658  
12659 \family typewriter
12660 layout Subparagraph
12661 \end_layout
12662
12663 \begin_layout List
12664 \labelwidthstring 00.00.0000
12665
12666 \family sans
12667 M-p\InsetSpace ~
12668 asterisk\InsetSpace ~
12669 0
12670 \family default
12671  
12672 \family typewriter
12673 layout Part*
12674 \end_layout
12675
12676 \begin_layout List
12677 \labelwidthstring 00.00.0000
12678
12679 \family sans
12680 M-p\InsetSpace ~
12681 asterisk\InsetSpace ~
12682 1
12683 \family default
12684  
12685 \family typewriter
12686 layout Chapter*
12687 \end_layout
12688
12689 \begin_layout List
12690 \labelwidthstring 00.00.0000
12691
12692 \family sans
12693 M-p\InsetSpace ~
12694 asterisk\InsetSpace ~
12695 2
12696 \family default
12697  
12698 \family typewriter
12699 layout Section*
12700 \end_layout
12701
12702 \begin_layout List
12703 \labelwidthstring 00.00.0000
12704
12705 \family sans
12706 M-p\InsetSpace ~
12707 asterisk\InsetSpace ~
12708 3
12709 \family default
12710  
12711 \family typewriter
12712 layout Subsection*
12713 \end_layout
12714
12715 \begin_layout List
12716 \labelwidthstring 00.00.0000
12717
12718 \family sans
12719 M-p\InsetSpace ~
12720 asterisk\InsetSpace ~
12721 4
12722 \family default
12723  
12724 \family typewriter
12725 layout Subsubsection*
12726 \end_layout
12727
12728 \begin_layout List
12729 \labelwidthstring 00.00.0000
12730
12731 \family sans
12732 M-p\InsetSpace ~
12733 asterisk\InsetSpace ~
12734 5
12735 \family default
12736  
12737 \family typewriter
12738 layout Paragraph*
12739 \end_layout
12740
12741 \begin_layout List
12742 \labelwidthstring 00.00.0000
12743
12744 \family sans
12745 M-p\InsetSpace ~
12746 asterisk\InsetSpace ~
12747 6
12748 \family default
12749  
12750 \family typewriter
12751 layout Subparagraph*
12752 \end_layout
12753
12754 \begin_layout List
12755 \labelwidthstring 00.00.0000
12756
12757 \family sans
12758 M-p\InsetSpace ~
12759 S-A
12760 \family default
12761  
12762 \family typewriter
12763 layout Author
12764 \end_layout
12765
12766 \begin_layout List
12767 \labelwidthstring 00.00.0000
12768
12769 \family sans
12770 M-p\InsetSpace ~
12771 S-B
12772 \family default
12773  
12774 \family typewriter
12775 layout Bibliography
12776 \end_layout
12777
12778 \begin_layout List
12779 \labelwidthstring 00.00.0000
12780
12781 \family sans
12782 M-p\InsetSpace ~
12783 S-C
12784 \family default
12785  
12786 \family typewriter
12787 layout Comment
12788 \end_layout
12789
12790 \begin_layout List
12791 \labelwidthstring 00.00.0000
12792
12793 \family sans
12794 M-p\InsetSpace ~
12795 S-D
12796 \family default
12797  
12798 \family typewriter
12799 layout Date
12800 \end_layout
12801
12802 \begin_layout List
12803 \labelwidthstring 00.00.0000
12804
12805 \family sans
12806 M-p\InsetSpace ~
12807 S-F
12808 \family default
12809  
12810 \family typewriter
12811 layout Foilhead
12812 \end_layout
12813
12814 \begin_layout List
12815 \labelwidthstring 00.00.0000
12816
12817 \family sans
12818 M-p\InsetSpace ~
12819 S-L
12820 \family default
12821  
12822 \family typewriter
12823 layout LaTeX
12824 \end_layout
12825
12826 \begin_layout List
12827 \labelwidthstring 00.00.0000
12828
12829 \family sans
12830 M-p\InsetSpace ~
12831 S-Q
12832 \family default
12833  
12834 \family typewriter
12835 layout Quotation
12836 \end_layout
12837
12838 \begin_layout List
12839 \labelwidthstring 00.00.0000
12840
12841 \family sans
12842 M-p\InsetSpace ~
12843 S-R
12844 \family default
12845  
12846 \family typewriter
12847 layout Rotatefoilhead
12848 \end_layout
12849
12850 \begin_layout List
12851 \labelwidthstring 00.00.0000
12852
12853 \family sans
12854 M-p\InsetSpace ~
12855 C-a
12856 \family default
12857  
12858 \family typewriter
12859 layout RightAddress
12860 \end_layout
12861
12862 \begin_layout List
12863 \labelwidthstring 00.00.0000
12864
12865 \family sans
12866 M-p\InsetSpace ~
12867 M-a
12868 \family default
12869  
12870 \family typewriter
12871 layout Address
12872 \end_layout
12873
12874 \begin_layout List
12875 \labelwidthstring 00.00.0000
12876
12877 \family sans
12878 M-p\InsetSpace ~
12879 M-c
12880 \family default
12881  
12882 \family typewriter
12883 layout Caption
12884 \end_layout
12885
12886 \begin_layout List
12887 \labelwidthstring 00.00.0000
12888
12889 \family sans
12890 M-p\InsetSpace ~
12891 Left
12892 \family default
12893  
12894 \family typewriter
12895 depth-decrement
12896 \end_layout
12897
12898 \begin_layout List
12899 \labelwidthstring 00.00.0000
12900
12901 \family sans
12902 M-p\InsetSpace ~
12903 Right
12904 \family default
12905  
12906 \family typewriter
12907 depth-increment
12908 \end_layout
12909
12910 \begin_layout Standard
12911 These ones are kept for backwards compatibility, but only make sense on
12912  a qwerty keyboard:
12913 \end_layout
12914
12915 \begin_layout List
12916 \labelwidthstring 00.00.0000
12917
12918 \family sans
12919 M-p\InsetSpace ~
12920 S-at
12921 \family default
12922  
12923 \family typewriter
12924 layout Section*
12925 \end_layout
12926
12927 \begin_layout List
12928 \labelwidthstring 00.00.0000
12929
12930 \family sans
12931 M-p\InsetSpace ~
12932 S-dollar
12933 \family default
12934  
12935 \family typewriter
12936 layout Subsubsection*
12937 \end_layout
12938
12939 \begin_layout List
12940 \labelwidthstring 00.00.0000
12941
12942 \family sans
12943 M-p\InsetSpace ~
12944 S-numbersign
12945 \family default
12946  
12947 \family typewriter
12948 layout Subsection*
12949 \end_layout
12950
12951 \begin_layout Section
12952 Keyboard
12953 \end_layout
12954
12955 \begin_layout Subsection
12956 Specific to 
12957 \family typewriter
12958 emacs.bind
12959 \end_layout
12960
12961 \begin_layout List
12962 \labelwidthstring 00.00.0000
12963
12964 \family sans
12965 C-a
12966 \family default
12967  
12968 \family typewriter
12969 line-begin
12970 \end_layout
12971
12972 \begin_layout List
12973 \labelwidthstring 00.00.0000
12974
12975 \family sans
12976 C-b
12977 \family default
12978  
12979 \family typewriter
12980 char-backward
12981 \end_layout
12982
12983 \begin_layout List
12984 \labelwidthstring 00.00.0000
12985
12986 \family sans
12987 C-d
12988 \family default
12989  
12990 \family typewriter
12991 delete-forward
12992 \end_layout
12993
12994 \begin_layout List
12995 \labelwidthstring 00.00.0000
12996
12997 \family sans
12998 C-e
12999 \family default
13000  
13001 \family typewriter
13002 line-end
13003 \end_layout
13004
13005 \begin_layout List
13006 \labelwidthstring 00.00.0000
13007
13008 \family sans
13009 C-f
13010 \family default
13011  
13012 \family typewriter
13013 char-forward
13014 \end_layout
13015
13016 \begin_layout List
13017 \labelwidthstring 00.00.0000
13018
13019 \family sans
13020 C-g
13021 \family default
13022  
13023 \family typewriter
13024 cancel
13025 \end_layout
13026
13027 \begin_layout List
13028 \labelwidthstring 00.00.0000
13029
13030 \family sans
13031 C-h
13032 \family default
13033  
13034 \family typewriter
13035 hyphenation-point-insert
13036 \end_layout
13037
13038 \begin_layout List
13039 \labelwidthstring 00.00.0000
13040
13041 \family sans
13042 C-i
13043 \family default
13044  
13045 \family typewriter
13046 hfill-insert
13047 \end_layout
13048
13049 \begin_layout List
13050 \labelwidthstring 00.00.0000
13051
13052 \family sans
13053 C-k
13054 \family default
13055  
13056 \family typewriter
13057 line-delete-forward
13058 \end_layout
13059
13060 \begin_layout List
13061 \labelwidthstring 00.00.0000
13062
13063 \family sans
13064 C-l
13065 \family default
13066  
13067 \family typewriter
13068 screen-recenter
13069 \end_layout
13070
13071 \begin_layout List
13072 \labelwidthstring 00.00.0000
13073
13074 \family sans
13075 C-m
13076 \family default
13077  
13078 \family typewriter
13079 mark-toggle
13080 \end_layout
13081
13082 \begin_layout List
13083 \labelwidthstring 00.00.0000
13084
13085 \family sans
13086 C-n
13087 \family default
13088  
13089 \family typewriter
13090 down
13091 \end_layout
13092
13093 \begin_layout List
13094 \labelwidthstring 00.00.0000
13095
13096 \family sans
13097 C-o
13098 \family default
13099  
13100 \family typewriter
13101 open-stuff
13102 \end_layout
13103
13104 \begin_layout List
13105 \labelwidthstring 00.00.0000
13106
13107 \family sans
13108 C-p
13109 \family default
13110  
13111 \family typewriter
13112 up
13113 \end_layout
13114
13115 \begin_layout List
13116 \labelwidthstring 00.00.0000
13117
13118 \family sans
13119 C-q
13120 \family default
13121  
13122 \family typewriter
13123 quote-insert 
13124 \end_layout
13125
13126 \begin_layout List
13127 \labelwidthstring 00.00.0000
13128
13129 \family sans
13130 C-s
13131 \family default
13132  
13133 \family typewriter
13134 find-replace
13135 \end_layout
13136
13137 \begin_layout List
13138 \labelwidthstring 00.00.0000
13139
13140 \family sans
13141 C-u
13142 \family default
13143  
13144 \family typewriter
13145 font-underline 
13146 \end_layout
13147
13148 \begin_layout List
13149 \labelwidthstring 00.00.0000
13150
13151 \family sans
13152 C-v
13153 \family default
13154  
13155 \family typewriter
13156 screen-down 
13157 \end_layout
13158
13159 \begin_layout List
13160 \labelwidthstring 00.00.0000
13161
13162 \family sans
13163 C-w
13164 \family default
13165  
13166 \family typewriter
13167 cut
13168 \end_layout
13169
13170 \begin_layout List
13171 \labelwidthstring 00.00.0000
13172
13173 \family sans
13174 C-y
13175 \family default
13176  
13177 \family typewriter
13178 paste
13179 \end_layout
13180
13181 \begin_layout List
13182 \labelwidthstring 00.00.0000
13183
13184 \family sans
13185 C-S-Y
13186 \family default
13187  
13188 \family typewriter
13189 layout-paste
13190 \end_layout
13191
13192 \begin_layout List
13193 \labelwidthstring 00.00.0000
13194
13195 \family sans
13196 C-x\InsetSpace ~
13197 a
13198 \family default
13199  
13200 \family typewriter
13201 buffer-auto-save
13202 \end_layout
13203
13204 \begin_layout List
13205 \labelwidthstring 00.00.0000
13206
13207 \family sans
13208 C-x\InsetSpace ~
13209 b
13210 \family default
13211  
13212 \family typewriter
13213 buffer-previous
13214 \end_layout
13215
13216 \begin_layout List
13217 \labelwidthstring 00.00.0000
13218
13219 \family sans
13220 C-x\InsetSpace ~
13221 c
13222 \family default
13223  
13224 \family typewriter
13225 lyx-quit
13226 \end_layout
13227
13228 \begin_layout List
13229 \labelwidthstring 00.00.0000
13230
13231 \family sans
13232 C-x\InsetSpace ~
13233 d
13234 \family default
13235  
13236 \family typewriter
13237 buffer-new
13238 \end_layout
13239
13240 \begin_layout List
13241 \labelwidthstring 00.00.0000
13242
13243 \family sans
13244 ?\InsetSpace ~
13245 C-x\InsetSpace ~
13246 f
13247 \family default
13248  
13249 \family typewriter
13250 buffer-open
13251 \end_layout
13252
13253 \begin_layout List
13254 \labelwidthstring 00.00.0000
13255
13256 \family sans
13257 C-x\InsetSpace ~
13258 g
13259 \family default
13260  
13261 \family typewriter
13262 buffer-view-ps
13263 \end_layout
13264
13265 \begin_layout List
13266 \labelwidthstring 00.00.0000
13267
13268 \family sans
13269 C-x\InsetSpace ~
13270 k
13271 \family default
13272  
13273 \family typewriter
13274 buffer-close
13275 \end_layout
13276
13277 \begin_layout List
13278 \labelwidthstring 00.00.0000
13279
13280 \family sans
13281 C-x\InsetSpace ~
13282 p
13283 \family default
13284  
13285 \family typewriter
13286 buffer-view
13287 \end_layout
13288
13289 \begin_layout List
13290 \labelwidthstring 00.00.0000
13291
13292 \family sans
13293 C-x\InsetSpace ~
13294 r
13295 \family default
13296  
13297 \family typewriter
13298 buffer-typeset
13299 \end_layout
13300
13301 \begin_layout List
13302 \labelwidthstring 00.00.0000
13303
13304 \family sans
13305 ?\InsetSpace ~
13306 C-x\InsetSpace ~
13307 s
13308 \family default
13309  
13310 \family typewriter
13311 buffer-write
13312 \end_layout
13313
13314 \begin_layout List
13315 \labelwidthstring 00.00.0000
13316
13317 \family sans
13318 C-x\InsetSpace ~
13319 t
13320 \family default
13321  
13322 \family typewriter
13323 buffer-typeset
13324 \end_layout
13325
13326 \begin_layout List
13327 \labelwidthstring 00.00.0000
13328
13329 \family sans
13330 C-x\InsetSpace ~
13331 u
13332 \family default
13333  
13334 \family typewriter
13335 undo
13336 \end_layout
13337
13338 \begin_layout List
13339 \labelwidthstring 00.00.0000
13340
13341 \family sans
13342 C-x\InsetSpace ~
13343 v\InsetSpace ~
13344 c
13345 \family default
13346  
13347 \family typewriter
13348 vc-undo-last
13349 \end_layout
13350
13351 \begin_layout List
13352 \labelwidthstring 00.00.0000
13353
13354 \family sans
13355 C-x\InsetSpace ~
13356 v\InsetSpace ~
13357 h
13358 \family default
13359  
13360 \family typewriter
13361 vc-history
13362 \end_layout
13363
13364 \begin_layout List
13365 \labelwidthstring 00.00.0000
13366
13367 \family sans
13368 C-x\InsetSpace ~
13369 v\InsetSpace ~
13370 i
13371 \family default
13372  
13373 \family typewriter
13374 vc-register
13375 \end_layout
13376
13377 \begin_layout List
13378 \labelwidthstring 00.00.0000
13379
13380 \family sans
13381 C-x\InsetSpace ~
13382 v\InsetSpace ~
13383 u
13384 \family default
13385  
13386 \family typewriter
13387 vc-revert
13388 \end_layout
13389
13390 \begin_layout List
13391 \labelwidthstring 00.00.0000
13392
13393 \family sans
13394 C-x\InsetSpace ~
13395 v\InsetSpace ~
13396 v
13397 \family default
13398  
13399 \family typewriter
13400 vc-check-in
13401 \end_layout
13402
13403 \begin_layout List
13404 \labelwidthstring 00.00.0000
13405
13406 \family sans
13407 ?\InsetSpace ~
13408 C-x\InsetSpace ~
13409 w
13410 \family default
13411  
13412 \family typewriter
13413 buffer-write-as
13414 \end_layout
13415
13416 \begin_layout List
13417 \labelwidthstring 00.00.0000
13418
13419 \family sans
13420 C-x\InsetSpace ~
13421 bracketleft
13422 \family default
13423  
13424 \family typewriter
13425 screen-up
13426 \end_layout
13427
13428 \begin_layout List
13429 \labelwidthstring 00.00.0000
13430
13431 \family sans
13432 C-x\InsetSpace ~
13433 bracketright
13434 \family default
13435  
13436 \family typewriter
13437 screen-down
13438 \end_layout
13439
13440 \begin_layout List
13441 \labelwidthstring 00.00.0000
13442
13443 \family sans
13444 C-x\InsetSpace ~
13445 C-a
13446 \family default
13447  
13448 \family typewriter
13449 buffer-auto-save
13450 \end_layout
13451
13452 \begin_layout List
13453 \labelwidthstring 00.00.0000
13454
13455 \family sans
13456 C-x\InsetSpace ~
13457 C-b
13458 \family default
13459  
13460 \family typewriter
13461 menu-open Documents
13462 \end_layout
13463
13464 \begin_layout List
13465 \labelwidthstring 00.00.0000
13466
13467 \family sans
13468 C-x\InsetSpace ~
13469 C-c
13470 \family default
13471  
13472 \family typewriter
13473 lyx-quit
13474 \end_layout
13475
13476 \begin_layout List
13477 \labelwidthstring 00.00.0000
13478
13479 \family sans
13480 C-x\InsetSpace ~
13481 C-d
13482 \family default
13483  
13484 \family typewriter
13485 buffer-new
13486 \end_layout
13487
13488 \begin_layout List
13489 \labelwidthstring 00.00.0000
13490
13491 \family sans
13492 C-x\InsetSpace ~
13493 C-f
13494 \family default
13495  
13496 \family typewriter
13497 buffer-open
13498 \end_layout
13499
13500 \begin_layout List
13501 \labelwidthstring 00.00.0000
13502
13503 \family sans
13504 C-x\InsetSpace ~
13505 C-g
13506 \family default
13507  
13508 \family typewriter
13509 buffer-view-ps
13510 \end_layout
13511
13512 \begin_layout List
13513 \labelwidthstring 00.00.0000
13514
13515 \family sans
13516 C-x\InsetSpace ~
13517 C-p
13518 \family default
13519  
13520 \family typewriter
13521 buffer-view
13522 \end_layout
13523
13524 \begin_layout List
13525 \labelwidthstring 00.00.0000
13526
13527 \family sans
13528 C-x\InsetSpace ~
13529 C-q
13530 \family default
13531  
13532 \family typewriter
13533 buffer-toggle-read-only
13534 \end_layout
13535
13536 \begin_layout List
13537 \labelwidthstring 00.00.0000
13538
13539 \family sans
13540 C-x\InsetSpace ~
13541 C-s
13542 \family default
13543  
13544 \family typewriter
13545 buffer-write
13546 \end_layout
13547
13548 \begin_layout List
13549 \labelwidthstring 00.00.0000
13550
13551 \family sans
13552 C-x\InsetSpace ~
13553 C-t
13554 \family default
13555  
13556 \family typewriter
13557 buffer-typeset
13558 \end_layout
13559
13560 \begin_layout List
13561 \labelwidthstring 00.00.0000
13562
13563 \family sans
13564 C-x\InsetSpace ~
13565 C-w
13566 \family default
13567  
13568 \family typewriter
13569 buffer-write-as
13570 \end_layout
13571
13572 \begin_layout List
13573 \labelwidthstring 00.00.0000
13574
13575 \family sans
13576 Home
13577 \family default
13578  
13579 \family typewriter
13580 buffer-begin
13581 \end_layout
13582
13583 \begin_layout List
13584 \labelwidthstring 00.00.0000
13585
13586 \family sans
13587 End
13588 \family default
13589  
13590 \family typewriter
13591 buffer-end
13592 \end_layout
13593
13594 \begin_layout List
13595 \labelwidthstring 00.00.0000
13596
13597 \family sans
13598 S-Home
13599 \family default
13600  
13601 \family typewriter
13602 line-begin-select
13603 \end_layout
13604
13605 \begin_layout List
13606 \labelwidthstring 00.00.0000
13607
13608 \family sans
13609 S-End
13610 \family default
13611  
13612 \family typewriter
13613 line-end-select
13614 \end_layout
13615
13616 \begin_layout List
13617 \labelwidthstring 00.00.0000
13618
13619 \family sans
13620 S-Up
13621 \family default
13622  
13623 \family typewriter
13624 up-select
13625 \end_layout
13626
13627 \begin_layout List
13628 \labelwidthstring 00.00.0000
13629
13630 \family sans
13631 S-Down
13632 \family default
13633  
13634 \family typewriter
13635 down-select
13636 \end_layout
13637
13638 \begin_layout List
13639 \labelwidthstring 00.00.0000
13640
13641 \family sans
13642 S-Next
13643 \family default
13644  
13645 \family typewriter
13646 screen-down-select
13647 \end_layout
13648
13649 \begin_layout List
13650 \labelwidthstring 00.00.0000
13651
13652 \family sans
13653 S-Prior
13654 \family default
13655  
13656 \family typewriter
13657 screen-up-select
13658 \end_layout
13659
13660 \begin_layout List
13661 \labelwidthstring 00.00.0000
13662
13663 \family sans
13664 S-Left
13665 \family default
13666  
13667 \family typewriter
13668 backward-select
13669 \end_layout
13670
13671 \begin_layout List
13672 \labelwidthstring 00.00.0000
13673
13674 \family sans
13675 S-Right
13676 \family default
13677  
13678 \family typewriter
13679 forward-select
13680 \end_layout
13681
13682 \begin_layout List
13683 \labelwidthstring 00.00.0000
13684
13685 \family sans
13686 C-Up
13687 \family default
13688  
13689 \family typewriter
13690 paragraph-up
13691 \end_layout
13692
13693 \begin_layout List
13694 \labelwidthstring 00.00.0000
13695
13696 \family sans
13697 C-Down
13698 \family default
13699  
13700 \family typewriter
13701 paragraph-down
13702 \end_layout
13703
13704 \begin_layout List
13705 \labelwidthstring 00.00.0000
13706
13707 \family sans
13708 C-Left
13709 \family default
13710  
13711 \family typewriter
13712 word-backward
13713 \end_layout
13714
13715 \begin_layout List
13716 \labelwidthstring 00.00.0000
13717
13718 \family sans
13719 C-Right
13720 \family default
13721  
13722 \family typewriter
13723 word-forward
13724 \end_layout
13725
13726 \begin_layout List
13727 \labelwidthstring 00.00.0000
13728
13729 \family sans
13730 C-Delete
13731 \family default
13732  
13733 \family typewriter
13734 word-delete-forward
13735 \end_layout
13736
13737 \begin_layout List
13738 \labelwidthstring 00.00.0000
13739
13740 \family sans
13741 C-BackSpace
13742 \family default
13743  
13744 \family typewriter
13745 word-delete-backward
13746 \end_layout
13747
13748 \begin_layout List
13749 \labelwidthstring 00.00.0000
13750
13751 \family sans
13752 C-Return
13753 \family default
13754  
13755 \family typewriter
13756 break-line
13757 \end_layout
13758
13759 \begin_layout List
13760 \labelwidthstring 00.00.0000
13761
13762 \family sans
13763 C-period
13764 \family default
13765  
13766 \family typewriter
13767 end-of-sentence-period-insert
13768 \end_layout
13769
13770 \begin_layout List
13771 \labelwidthstring 00.00.0000
13772
13773 \family sans
13774 C-space
13775 \family default
13776  
13777 \family typewriter
13778 protected-space-insert
13779 \end_layout
13780
13781 \begin_layout List
13782 \labelwidthstring 00.00.0000
13783
13784 \family sans
13785 C-S-at
13786 \family default
13787  
13788 \family typewriter
13789 mark-on
13790 \end_layout
13791
13792 \begin_layout List
13793 \labelwidthstring 00.00.0000
13794
13795 \family sans
13796 C-S-greater
13797 \family default
13798  
13799 \family typewriter
13800 label-goto
13801 \end_layout
13802
13803 \begin_layout List
13804 \labelwidthstring 00.00.0000
13805
13806 \family sans
13807 C-S-less
13808 \family default
13809  
13810 \family typewriter
13811 reference-back
13812 \end_layout
13813
13814 \begin_layout List
13815 \labelwidthstring 00.00.0000
13816
13817 \family sans
13818 C-S-slash
13819 \family default
13820  
13821 \family typewriter
13822 undo
13823 \end_layout
13824
13825 \begin_layout List
13826 \labelwidthstring 00.00.0000
13827
13828 \family sans
13829 C-S-underscore
13830 \family default
13831  
13832 \family typewriter
13833 undo
13834 \end_layout
13835
13836 \begin_layout List
13837 \labelwidthstring 00.00.0000
13838
13839 \family sans
13840 C-S-quotedbl
13841 \family default
13842  
13843 \family typewriter
13844 quote-insert
13845 \end_layout
13846
13847 \begin_layout List
13848 \labelwidthstring 00.00.0000
13849
13850 \family sans
13851 C-S-Home
13852 \family default
13853  
13854 \family typewriter
13855 buffer-begin-select
13856 \end_layout
13857
13858 \begin_layout List
13859 \labelwidthstring 00.00.0000
13860
13861 \family sans
13862 C-S-End
13863 \family default
13864  
13865 \family typewriter
13866 buffer-end-select
13867 \end_layout
13868
13869 \begin_layout List
13870 \labelwidthstring 00.00.0000
13871
13872 \family sans
13873 C-S-Up
13874 \family default
13875  
13876 \family typewriter
13877 paragraph-up-select
13878 \end_layout
13879
13880 \begin_layout List
13881 \labelwidthstring 00.00.0000
13882
13883 \family sans
13884 C-S-Down
13885 \family default
13886  
13887 \family typewriter
13888 paragraph-down-select
13889 \end_layout
13890
13891 \begin_layout List
13892 \labelwidthstring 00.00.0000
13893
13894 \family sans
13895 C-S-Left
13896 \family default
13897  
13898 \family typewriter
13899 word-backward-select
13900 \end_layout
13901
13902 \begin_layout List
13903 \labelwidthstring 00.00.0000
13904
13905 \family sans
13906 C-S-Right
13907 \family default
13908  
13909 \family typewriter
13910 word-forward-select
13911 \end_layout
13912
13913 \begin_layout List
13914 \labelwidthstring 00.00.0000
13915
13916 \family sans
13917 Escape
13918 \family default
13919  
13920 \family typewriter
13921 meta-prefix
13922 \end_layout
13923
13924 \begin_layout List
13925 \labelwidthstring 00.00.0000
13926
13927 \family sans
13928 M-d
13929 \family default
13930  
13931 \family typewriter
13932 word-delete-forward
13933 \end_layout
13934
13935 \begin_layout List
13936 \labelwidthstring 00.00.0000
13937
13938 \family sans
13939 M-w
13940 \family default
13941  
13942 \family typewriter
13943 copy
13944 \end_layout
13945
13946 \begin_layout List
13947 \labelwidthstring 00.00.0000
13948
13949 \family sans
13950 M-x
13951 \family default
13952  
13953 \family typewriter
13954 command-execute
13955 \end_layout
13956
13957 \begin_layout List
13958 \labelwidthstring 00.00.0000
13959
13960 \family sans
13961 M-S-W
13962 \family default
13963  
13964 \family typewriter
13965 layout-copy
13966 \end_layout
13967
13968 \begin_layout List
13969 \labelwidthstring 00.00.0000
13970
13971 \family sans
13972 M-period
13973 \family default
13974  
13975 \family typewriter
13976 dots-insert
13977 \end_layout
13978
13979 \begin_layout List
13980 \labelwidthstring 00.00.0000
13981
13982 \family sans
13983 M-Return
13984 \family default
13985  
13986 \family typewriter
13987 break-paragraph-keep-layout
13988 \end_layout
13989
13990 \begin_layout List
13991 \labelwidthstring 00.00.0000
13992
13993 \family sans
13994 M-S-percent
13995 \family default
13996  
13997 \family typewriter
13998 find-replace
13999 \end_layout
14000
14001 \begin_layout Subsection
14002 Specific to 
14003 \family typewriter
14004 cua.bind
14005 \end_layout
14006
14007 \begin_layout List
14008 \labelwidthstring 00.00.0000
14009
14010 \family sans
14011 C-b
14012 \family default
14013  
14014 \family typewriter
14015 font-bold
14016 \end_layout
14017
14018 \begin_layout List
14019 \labelwidthstring 00.00.0000
14020
14021 \family sans
14022 C-c
14023 \family default
14024  
14025 \family typewriter
14026 copy
14027 \end_layout
14028
14029 \begin_layout List
14030 \labelwidthstring 00.00.0000
14031
14032 \family sans
14033 C-d
14034 \family default
14035  
14036 \family typewriter
14037 buffer-view 
14038 \end_layout
14039
14040 \begin_layout List
14041 \labelwidthstring 00.00.0000
14042
14043 \family sans
14044 C-e
14045 \family default
14046  
14047 \family typewriter
14048 font-emph
14049 \end_layout
14050
14051 \begin_layout List
14052 \labelwidthstring 00.00.0000
14053
14054 \family sans
14055 C-f
14056 \family default
14057  
14058 \family typewriter
14059 find-replace
14060 \end_layout
14061
14062 \begin_layout List
14063 \labelwidthstring 00.00.0000
14064
14065 \family sans
14066 C-g
14067 \family default
14068  
14069 \family typewriter
14070 error-next
14071 \end_layout
14072
14073 \begin_layout List
14074 \labelwidthstring 00.00.0000
14075
14076 \family sans
14077 C-i
14078 \family default
14079  
14080 \family typewriter
14081 open-stuff 
14082 \end_layout
14083
14084 \begin_layout List
14085 \labelwidthstring 00.00.0000
14086
14087 \family sans
14088 C-k
14089 \family default
14090  
14091 \family typewriter
14092 font-noun 
14093 \end_layout
14094
14095 \begin_layout List
14096 \labelwidthstring 00.00.0000
14097
14098 \family sans
14099 C-l
14100 \family default
14101  
14102 \family typewriter
14103 tex-mode 
14104 \end_layout
14105
14106 \begin_layout List
14107 \labelwidthstring 00.00.0000
14108
14109 \family sans
14110 C-m
14111 \family default
14112  
14113 \family typewriter
14114 math-mode
14115 \end_layout
14116
14117 \begin_layout List
14118 \labelwidthstring 00.00.0000
14119
14120 \family sans
14121 C-n
14122 \family default
14123  
14124 \family typewriter
14125 buffer-new
14126 \end_layout
14127
14128 \begin_layout List
14129 \labelwidthstring 00.00.0000
14130
14131 \family sans
14132 C-o
14133 \family default
14134  
14135 \family typewriter
14136 buffer-open
14137 \end_layout
14138
14139 \begin_layout List
14140 \labelwidthstring 00.00.0000
14141
14142 \family sans
14143 C-p
14144 \family default
14145  
14146 \family typewriter
14147 buffer-print
14148 \end_layout
14149
14150 \begin_layout List
14151 \labelwidthstring 00.00.0000
14152
14153 \family sans
14154 C-q
14155 \family default
14156  
14157 \family typewriter
14158 lyx-quit
14159 \end_layout
14160
14161 \begin_layout List
14162 \labelwidthstring 00.00.0000
14163
14164 \family sans
14165 C-r
14166 \family default
14167  
14168 \family typewriter
14169 buffer-reload
14170 \end_layout
14171
14172 \begin_layout List
14173 \labelwidthstring 00.00.0000
14174
14175 \family sans
14176 C-s
14177 \family default
14178  
14179 \family typewriter
14180 buffer-write
14181 \end_layout
14182
14183 \begin_layout List
14184 \labelwidthstring 00.00.0000
14185
14186 \family sans
14187 C-t
14188 \family default
14189  
14190 \family typewriter
14191 buffer-view-ps
14192 \end_layout
14193
14194 \begin_layout List
14195 \labelwidthstring 00.00.0000
14196
14197 \family sans
14198 C-u
14199 \family default
14200  
14201 \family typewriter
14202 font-underline
14203 \end_layout
14204
14205 \begin_layout List
14206 \labelwidthstring 00.00.0000
14207
14208 \family sans
14209 C-v
14210 \family default
14211  
14212 \family typewriter
14213 paste
14214 \end_layout
14215
14216 \begin_layout List
14217 \labelwidthstring 00.00.0000
14218
14219 \family sans
14220 C-w
14221 \family default
14222  
14223 \family typewriter
14224 buffer-close
14225 \end_layout
14226
14227 \begin_layout List
14228 \labelwidthstring 00.00.0000
14229
14230 \family sans
14231 C-x
14232 \family default
14233  
14234 \family typewriter
14235 cut
14236 \end_layout
14237
14238 \begin_layout List
14239 \labelwidthstring 00.00.0000
14240
14241 \family sans
14242 C-z
14243 \family default
14244  
14245 \family typewriter
14246 undo
14247 \end_layout
14248
14249 \begin_layout List
14250 \labelwidthstring 00.00.0000
14251
14252 \family sans
14253 C-space
14254 \family default
14255  
14256 \family typewriter
14257 protected-space-insert
14258 \end_layout
14259
14260 \begin_layout List
14261 \labelwidthstring 00.00.0000
14262
14263 \family sans
14264 C-S-C
14265 \family default
14266  
14267 \family typewriter
14268 layout-copy
14269 \end_layout
14270
14271 \begin_layout List
14272 \labelwidthstring 00.00.0000
14273
14274 \family sans
14275 C-S-D
14276 \family default
14277  
14278 \family typewriter
14279 buffer-typeset
14280 \end_layout
14281
14282 \begin_layout List
14283 \labelwidthstring 00.00.0000
14284
14285 \family sans
14286 C-S-M
14287 \family default
14288  
14289 \family typewriter
14290 math-display
14291 \end_layout
14292
14293 \begin_layout List
14294 \labelwidthstring 00.00.0000
14295
14296 \family sans
14297 C-S-N
14298 \family default
14299  
14300 \family typewriter
14301 buffer-new-template
14302 \end_layout
14303
14304 \begin_layout List
14305 \labelwidthstring 00.00.0000
14306
14307 \family sans
14308 C-S-P
14309 \family default
14310  
14311 \family typewriter
14312 font-code 
14313 \end_layout
14314
14315 \begin_layout List
14316 \labelwidthstring 00.00.0000
14317
14318 \family sans
14319 C-S-S
14320 \family default
14321  
14322 \family typewriter
14323 buffer-write-as
14324 \end_layout
14325
14326 \begin_layout List
14327 \labelwidthstring 00.00.0000
14328
14329 \family sans
14330 C-S-T
14331 \family default
14332  
14333 \family typewriter
14334 buffer-typeset-ps
14335 \end_layout
14336
14337 \begin_layout List
14338 \labelwidthstring 00.00.0000
14339
14340 \family sans
14341 C-S-V
14342 \family default
14343  
14344 \family typewriter
14345 layout-paste
14346 \end_layout
14347
14348 \begin_layout List
14349 \labelwidthstring 00.00.0000
14350
14351 \family sans
14352 C-S-Z
14353 \family default
14354  
14355 \family typewriter
14356 redo
14357 \end_layout
14358
14359 \begin_layout List
14360 \labelwidthstring 00.00.0000
14361
14362 \family sans
14363 S-Insert
14364 \family default
14365  
14366 \family typewriter
14367 paste
14368 \end_layout
14369
14370 \begin_layout List
14371 \labelwidthstring 00.00.0000
14372
14373 \family sans
14374 S-Delete
14375 \family default
14376  
14377 \family typewriter
14378 cut
14379 \end_layout
14380
14381 \begin_layout List
14382 \labelwidthstring 00.00.0000
14383
14384 \family sans
14385 C-period
14386 \family default
14387  
14388 \family typewriter
14389 end-of-sentence-period-insert
14390 \end_layout
14391
14392 \begin_layout List
14393 \labelwidthstring 00.00.0000
14394
14395 \family sans
14396 C-S-greater
14397 \family default
14398  
14399 \family typewriter
14400 label-goto
14401 \end_layout
14402
14403 \begin_layout List
14404 \labelwidthstring 00.00.0000
14405
14406 \family sans
14407 C-S-less
14408 \family default
14409  
14410 \family typewriter
14411 reference-back
14412 \end_layout
14413
14414 \begin_layout List
14415 \labelwidthstring 00.00.0000
14416
14417 \family sans
14418 C-minus
14419 \family default
14420  
14421 \family typewriter
14422 hyphenation-point-insert
14423 \end_layout
14424
14425 \begin_layout List
14426 \labelwidthstring 00.00.0000
14427
14428 \family sans
14429 C-S-quotedbl
14430 \family default
14431  
14432 \family typewriter
14433 quote-insert
14434 \end_layout
14435
14436 \begin_layout List
14437 \labelwidthstring 00.00.0000
14438
14439 \family sans
14440 C-S-space
14441 \family default
14442  
14443 \family typewriter
14444 protected-space-insert
14445 \end_layout
14446
14447 \begin_layout List
14448 \labelwidthstring 00.00.0000
14449
14450 \family sans
14451 M-x
14452 \family default
14453  
14454 \family typewriter
14455 command-execute
14456 \end_layout
14457
14458 \begin_layout List
14459 \labelwidthstring 00.00.0000
14460
14461 \family sans
14462 S-Home
14463 \family default
14464  
14465 \family typewriter
14466 line-begin-select
14467 \end_layout
14468
14469 \begin_layout List
14470 \labelwidthstring 00.00.0000
14471
14472 \family sans
14473 S-End
14474 \family default
14475  
14476 \family typewriter
14477 line-end-select
14478 \end_layout
14479
14480 \begin_layout List
14481 \labelwidthstring 00.00.0000
14482
14483 \family sans
14484 S-Up
14485 \family default
14486  
14487 \family typewriter
14488 up-select
14489 \end_layout
14490
14491 \begin_layout List
14492 \labelwidthstring 00.00.0000
14493
14494 \family sans
14495 S-Down
14496 \family default
14497  
14498 \family typewriter
14499 down-select
14500 \end_layout
14501
14502 \begin_layout List
14503 \labelwidthstring 00.00.0000
14504
14505 \family sans
14506 S-Delete
14507 \family default
14508  
14509 \family typewriter
14510 cut
14511 \end_layout
14512
14513 \begin_layout List
14514 \labelwidthstring 00.00.0000
14515
14516 \family sans
14517 S-Insert
14518 \family default
14519  
14520 \family typewriter
14521 paste
14522 \end_layout
14523
14524 \begin_layout List
14525 \labelwidthstring 00.00.0000
14526
14527 \family sans
14528 S-Next
14529 \family default
14530  
14531 \family typewriter
14532 screen-down-select
14533 \end_layout
14534
14535 \begin_layout List
14536 \labelwidthstring 00.00.0000
14537
14538 \family sans
14539 S-Prior
14540 \family default
14541  
14542 \family typewriter
14543 screen-up-select
14544 \end_layout
14545
14546 \begin_layout List
14547 \labelwidthstring 00.00.0000
14548
14549 \family sans
14550 S-Left
14551 \family default
14552  
14553 \family typewriter
14554 backward-select
14555 \end_layout
14556
14557 \begin_layout List
14558 \labelwidthstring 00.00.0000
14559
14560 \family sans
14561 S-Right
14562 \family default
14563  
14564 \family typewriter
14565 forward-select
14566 \end_layout
14567
14568 \begin_layout List
14569 \labelwidthstring 00.00.0000
14570
14571 \family sans
14572 C-Home
14573 \family default
14574  
14575 \family typewriter
14576 buffer-begin
14577 \end_layout
14578
14579 \begin_layout List
14580 \labelwidthstring 00.00.0000
14581
14582 \family sans
14583 C-End
14584 \family default
14585  
14586 \family typewriter
14587 buffer-end
14588 \end_layout
14589
14590 \begin_layout List
14591 \labelwidthstring 00.00.0000
14592
14593 \family sans
14594 C-Up
14595 \family default
14596  
14597 \family typewriter
14598 paragraph-up
14599 \end_layout
14600
14601 \begin_layout List
14602 \labelwidthstring 00.00.0000
14603
14604 \family sans
14605 C-Down
14606 \family default
14607  
14608 \family typewriter
14609 paragraph-down
14610 \end_layout
14611
14612 \begin_layout List
14613 \labelwidthstring 00.00.0000
14614
14615 \family sans
14616 C-Delete
14617 \family default
14618  
14619 \family typewriter
14620 word-delete-forward
14621 \end_layout
14622
14623 \begin_layout List
14624 \labelwidthstring 00.00.0000
14625
14626 \family sans
14627 C-BackSpace
14628 \family default
14629  
14630 \family typewriter
14631 word-delete-backward
14632 \end_layout
14633
14634 \begin_layout List
14635 \labelwidthstring 00.00.0000
14636
14637 \family sans
14638 C-Insert
14639 \family default
14640  
14641 \family typewriter
14642 copy
14643 \end_layout
14644
14645 \begin_layout List
14646 \labelwidthstring 00.00.0000
14647
14648 \family sans
14649 C-Return
14650 \family default
14651  
14652 \family typewriter
14653 break-line
14654 \end_layout
14655
14656 \begin_layout List
14657 \labelwidthstring 00.00.0000
14658
14659 \family sans
14660 C-Left
14661 \family default
14662  
14663 \family typewriter
14664 word-backward
14665 \end_layout
14666
14667 \begin_layout List
14668 \labelwidthstring 00.00.0000
14669
14670 \family sans
14671 C-Right
14672 \family default
14673  
14674 \family typewriter
14675 word-forward
14676 \end_layout
14677
14678 \begin_layout List
14679 \labelwidthstring 00.00.0000
14680
14681 \family sans
14682 C-S-Down
14683 \family default
14684  
14685 \family typewriter
14686 paragraph-down-select
14687 \end_layout
14688
14689 \begin_layout List
14690 \labelwidthstring 00.00.0000
14691
14692 \family sans
14693 C-S-End
14694 \family default
14695  
14696 \family typewriter
14697 buffer-end-select
14698 \end_layout
14699
14700 \begin_layout List
14701 \labelwidthstring 00.00.0000
14702
14703 \family sans
14704 C-S-Home
14705 \family default
14706  
14707 \family typewriter
14708 buffer-begin-select
14709 \end_layout
14710
14711 \begin_layout List
14712 \labelwidthstring 00.00.0000
14713
14714 \family sans
14715 C-S-Left
14716 \family default
14717  
14718 \family typewriter
14719 word-backward-select
14720 \end_layout
14721
14722 \begin_layout List
14723 \labelwidthstring 00.00.0000
14724
14725 \family sans
14726 C-S-Right
14727 \family default
14728  
14729 \family typewriter
14730 word-forward-select
14731 \end_layout
14732
14733 \begin_layout List
14734 \labelwidthstring 00.00.0000
14735
14736 \family sans
14737 C-S-Up
14738 \family default
14739  
14740 \family typewriter
14741 paragraph-up-select
14742 \end_layout
14743
14744 \begin_layout List
14745 \labelwidthstring 00.00.0000
14746
14747 \family sans
14748 C-S-quotedbl
14749 \family default
14750  
14751 \family typewriter
14752 quote-insert
14753 \end_layout
14754
14755 \begin_layout List
14756 \labelwidthstring 00.00.0000
14757
14758 \family sans
14759 M-Return
14760 \family default
14761  
14762 \family typewriter
14763 break-paragraph-keep-layout
14764 \end_layout
14765
14766 \begin_layout List
14767 \labelwidthstring 00.00.0000
14768
14769 \family sans
14770 M-period
14771 \family default
14772  
14773 \family typewriter
14774 dots-insert
14775 \end_layout
14776
14777 \begin_layout List
14778 \labelwidthstring 00.00.0000
14779
14780 \family sans
14781 M-S-Right
14782 \family default
14783  
14784 \family typewriter
14785 depth-increment
14786 \end_layout
14787
14788 \begin_layout List
14789 \labelwidthstring 00.00.0000
14790
14791 \family sans
14792 M-S-Left
14793 \family default
14794  
14795 \family typewriter
14796 depth-decrement
14797 \end_layout
14798
14799 \begin_layout List
14800 \labelwidthstring 00.00.0000
14801
14802 \family sans
14803 Escape
14804 \family default
14805  
14806 \family typewriter
14807 cancel
14808 \end_layout
14809
14810 \begin_layout List
14811 \labelwidthstring 00.00.0000
14812
14813 \family sans
14814 F2
14815 \family default
14816  
14817 \family typewriter
14818 buffer-write
14819 \end_layout
14820
14821 \begin_layout List
14822 \labelwidthstring 00.00.0000
14823
14824 \family sans
14825 F3
14826 \family default
14827  
14828 \family typewriter
14829 buffer-open
14830 \end_layout
14831
14832 \begin_layout List
14833 \labelwidthstring 00.00.0000
14834
14835 \family sans
14836 F5
14837 \family default
14838  
14839 \family typewriter
14840 screen-recenter
14841 \end_layout
14842
14843 \begin_layout List
14844 \labelwidthstring 00.00.0000
14845
14846 \family sans
14847 F7
14848 \family default
14849  
14850 \family typewriter
14851 spellchecker
14852 \end_layout
14853
14854 \begin_layout List
14855 \labelwidthstring 00.00.0000
14856
14857 \family sans
14858 F9
14859 \family default
14860  
14861 \family typewriter
14862 meta-prefix
14863 \end_layout
14864
14865 \begin_layout List
14866 \labelwidthstring 00.00.0000
14867
14868 \family sans
14869 C-F4
14870 \family default
14871  
14872 \family typewriter
14873 buffer-close
14874 \end_layout
14875
14876 \begin_layout List
14877 \labelwidthstring 00.00.0000
14878
14879 \family sans
14880 M-F4
14881 \family default
14882  
14883 \family typewriter
14884 lyx-quit
14885 \end_layout
14886
14887 \begin_layout Subsection
14888 Specific to 
14889 \family typewriter
14890 sciword.bind
14891 \end_layout
14892
14893 \begin_layout Standard
14894 These are LyX keyboard definitions for mathematics, similar to those of
14895  Scientific Word.
14896 \end_layout
14897
14898 \begin_layout Standard
14899 The bindings file and the present documentation were prepared by Serge Winitzki
14900  with assistance from Jean-Marc Lasgouttes.
14901  Version 1.3, for LyX 1.2.x and 1.3.x.
14902 \end_layout
14903
14904 \begin_layout Standard
14905 These definitions make it a lot easier to type equations without using the
14906  mouse, especially for people familiar with Scientific Word.
14907  The standard LyX bindings such as 
14908 \family typewriter
14909 M-m
14910 \family default
14911  or 
14912 \family typewriter
14913 M-o
14914 \family default
14915  are unmodified.
14916 \end_layout
14917
14918 \begin_layout Standard
14919 Tip: to find the "LyX bind name" for a key, look at the status bar after
14920  typing some non-existent key combination.
14921  E.g.
14922  to find how "Ctrl-&" is referenced, press Ctrl-S and then Ctrl-&: the status
14923  bar shows "C-s S-C-ampersand." (This does not work in LyX 1.3.0!)
14924 \end_layout
14925
14926 \begin_layout List
14927 \labelwidthstring 00.00.0000
14928
14929 \family sans
14930 C-c
14931 \family default
14932  
14933 \family typewriter
14934 copy
14935 \family default
14936  -- Copy, cut, paste is as in Sciword, 
14937 \family typewriter
14938 C-c
14939 \family default
14940
14941 \family typewriter
14942 C-x
14943 \family default
14944 , and 
14945 \family typewriter
14946 C-v
14947 \family default
14948 .
14949 \end_layout
14950
14951 \begin_layout List
14952 \labelwidthstring 00.00.0000
14953
14954 \family sans
14955 C-d
14956 \family default
14957  
14958 \family typewriter
14959 math-display
14960 \family default
14961  -- Display equation toggle: type 
14962 \family typewriter
14963 C-d
14964 \family default
14965  to insert a displayed formula (
14966 \family typewriter
14967 d
14968 \family default
14969  for 
14970 \begin_inset Quotes eld
14971 \end_inset
14972
14973 displayed
14974 \begin_inset Quotes erd
14975 \end_inset
14976
14977 ).
14978  You can also type 
14979 \family typewriter
14980 C-d
14981 \family default
14982  in a displayed formula to convert it back to an inline formula.
14983 \end_layout
14984
14985 \begin_layout List
14986 \labelwidthstring 00.00.0000
14987
14988 \family sans
14989 C-f
14990 \family default
14991  
14992 \family typewriter
14993 math-insert 
14994 \backslash
14995 frac
14996 \family default
14997  -- Fractions: type 
14998 \family typewriter
14999 C-f
15000 \family default
15001  to insert a fraction (
15002 \family typewriter
15003 f
15004 \family default
15005  for 
15006 \begin_inset Quotes eld
15007 \end_inset
15008
15009 fraction
15010 \begin_inset Quotes erd
15011 \end_inset
15012
15013 ).
15014  You can also select an expression and type 
15015 \family typewriter
15016 C-f
15017 \family default
15018  to convert it to the numerator of a fraction.
15019  Note: pressing 
15020 \family typewriter
15021 Backspace
15022 \family default
15023  at the 
15024 \emph on
15025 left
15026 \emph default
15027  end of the denominator will delete the numerator and convert the denominator
15028  to a non-fraction.
15029 \end_layout
15030
15031 \begin_layout List
15032 \labelwidthstring 00.00.0000
15033
15034 \family sans
15035 C-i
15036 \family default
15037  
15038 \family typewriter
15039 math-insert 
15040 \backslash
15041 int
15042 \family default
15043  -- Inserts 
15044 \begin_inset Formula $\int$
15045 \end_inset
15046
15047  (
15048 \family typewriter
15049 i
15050 \family default
15051  for 
15052 \begin_inset Quotes eld
15053 \end_inset
15054
15055 integral
15056 \begin_inset Quotes erd
15057 \end_inset
15058
15059 )
15060 \end_layout
15061
15062 \begin_layout List
15063 \labelwidthstring 00.00.0000
15064
15065 \family sans
15066 C-k
15067 \family default
15068  
15069 \family typewriter
15070 line-delete-forward
15071 \family default
15072  -- Emacs-like binding: delete forward of cursor to end of line.
15073 \end_layout
15074
15075 \begin_layout List
15076 \labelwidthstring 00.00.0000
15077
15078 \family sans
15079 C-m
15080 \family default
15081  
15082 \family typewriter
15083 math-mode
15084 \family default
15085  -- A text/math toggle (
15086 \family typewriter
15087 m
15088 \family default
15089  for 
15090 \begin_inset Quotes eld
15091 \end_inset
15092
15093 math
15094 \begin_inset Quotes erd
15095 \end_inset
15096
15097 ): switches to math in text mode, and also inserts roman text in math mode.
15098  Also bound to 
15099 \family typewriter
15100 C-t
15101 \family default
15102  (
15103 \family typewriter
15104 t
15105 \family default
15106  for 
15107 \begin_inset Quotes eld
15108 \end_inset
15109
15110 text
15111 \begin_inset Quotes erd
15112 \end_inset
15113
15114 ).
15115 \end_layout
15116
15117 \begin_layout List
15118 \labelwidthstring 00.00.0000
15119
15120 \family sans
15121 C-n
15122 \family default
15123  
15124 \family typewriter
15125 math-number
15126 \family default
15127  -- Add/remove numbering in a single equation.
15128 \end_layout
15129
15130 \begin_layout List
15131 \labelwidthstring 00.00.0000
15132
15133 \family sans
15134 S-C-N
15135 \family default
15136  
15137 \family typewriter
15138 math-nonumber
15139 \family default
15140  -- Add/remove numbering at a line in equation arrays.
15141 \end_layout
15142
15143 \begin_layout Standard
15144 The above commands are toggles that control the numbering of equations (
15145 \family typewriter
15146 N
15147 \family default
15148  for 
15149 \begin_inset Quotes eld
15150 \end_inset
15151
15152 number
15153 \begin_inset Quotes erd
15154 \end_inset
15155
15156 ).
15157  Note: when deleting a number in a labeled eqnarray, the label is not really
15158  removed (the TeX code becomes 
15159 \begin_inset Quotes eld
15160 \end_inset
15161
15162
15163 \family typewriter
15164
15165 \backslash
15166 label{} 
15167 \backslash
15168 nonumber
15169 \family default
15170
15171 \begin_inset Quotes erd
15172 \end_inset
15173
15174  ) and this generates a (harmless) LaTeX warning.
15175 \end_layout
15176
15177 \begin_layout List
15178 \labelwidthstring 00.00.0000
15179
15180 \family sans
15181 C-o
15182 \family default
15183  
15184 \family typewriter
15185 file-open
15186 \family default
15187  -- Open a new document.
15188  (W*ndows)
15189 \end_layout
15190
15191 \begin_layout List
15192 \labelwidthstring 00.00.0000
15193
15194 \family sans
15195 C-q
15196 \family default
15197  
15198 \family typewriter
15199 quote-insert
15200 \family default
15201  -- Insert a quote character " (
15202 \family typewriter
15203 q
15204 \family default
15205  for 
15206 \begin_inset Quotes eld
15207 \end_inset
15208
15209 quote
15210 \begin_inset Quotes erd
15211 \end_inset
15212
15213 ).
15214  This is not the 
15215 \begin_inset Quotes eld
15216 \end_inset
15217
15218 smart
15219 \begin_inset Quotes erd
15220 \end_inset
15221
15222  double quote character that you get by default.
15223 \end_layout
15224
15225 \begin_layout List
15226 \labelwidthstring 00.00.0000
15227
15228 \family sans
15229 C-r
15230 \family default
15231  
15232 \family typewriter
15233 math-insert 
15234 \backslash
15235 sqrt
15236 \family default
15237  -- Square root sign 
15238 \begin_inset Formula $\sqrt{x}$
15239 \end_inset
15240
15241  (
15242 \family typewriter
15243 r
15244 \family default
15245  for 
15246 \begin_inset Quotes eld
15247 \end_inset
15248
15249 root
15250 \begin_inset Quotes erd
15251 \end_inset
15252
15253 ).
15254 \end_layout
15255
15256 \begin_layout List
15257 \labelwidthstring 00.00.0000
15258
15259 \family sans
15260 S-C-R
15261 \family default
15262  
15263 \family typewriter
15264 math-insert 
15265 \backslash
15266 root
15267 \family default
15268  -- root sign 
15269 \begin_inset Formula $\sqrt[n]{x}$
15270 \end_inset
15271
15272 .
15273 \end_layout
15274
15275 \begin_layout List
15276 \labelwidthstring 00.00.0000
15277
15278 \family sans
15279 C-t
15280 \family default
15281  
15282 \family typewriter
15283 math-mode
15284 \family default
15285  -- Another binding for a switch between the text and the math mode (
15286 \family typewriter
15287 t
15288 \family default
15289  is for 
15290 \begin_inset Quotes eld
15291 \end_inset
15292
15293 text
15294 \begin_inset Quotes erd
15295 \end_inset
15296
15297 ).
15298  Note that the roman text inserted in math mode is special.
15299 \end_layout
15300
15301 \begin_layout List
15302 \labelwidthstring 00.00.0000
15303
15304 \family sans
15305 C-u
15306 \family default
15307  
15308 \family typewriter
15309 font-underline
15310 \family default
15311  -- 
15312 \bar under
15313 Underline
15314 \bar default
15315  the selected text (text mode only, use things like 
15316 \family typewriter
15317
15318 \backslash
15319 overline
15320 \family default
15321  or 
15322 \family typewriter
15323
15324 \backslash
15325 underbar
15326 \family default
15327  for math ).
15328 \end_layout
15329
15330 \begin_layout List
15331 \labelwidthstring 00.00.0000
15332
15333 \family sans
15334 C-v
15335 \family default
15336  
15337 \family typewriter
15338 paste
15339 \family default
15340  -- W*ndows heritage.
15341 \end_layout
15342
15343 \begin_layout List
15344 \labelwidthstring 00.00.0000
15345
15346 \family sans
15347 C-w
15348 \family default
15349  
15350 \family typewriter
15351 buffer-close
15352 \family default
15353  -- Close the current document (again, a W*ndows heritage).
15354 \end_layout
15355
15356 \begin_layout List
15357 \labelwidthstring 00.00.0000
15358
15359 \family sans
15360 C-x
15361 \family default
15362  
15363 \family typewriter
15364 cut
15365 \end_layout
15366
15367 \begin_layout List
15368 \labelwidthstring 00.00.0000
15369
15370 \family sans
15371 C-z
15372 \family default
15373  
15374 \family typewriter
15375 undo
15376 \end_layout
15377
15378 \begin_layout List
15379 \labelwidthstring 00.00.0000
15380
15381 \family sans
15382 S-C-Z
15383 \family default
15384  
15385 \family typewriter
15386 redo
15387 \family default
15388  -- the 
15389 \begin_inset Quotes eld
15390 \end_inset
15391
15392 Redo
15393 \begin_inset Quotes erd
15394 \end_inset
15395
15396  operation, or 
15397 \begin_inset Quotes eld
15398 \end_inset
15399
15400 undo the undo
15401 \begin_inset Quotes erd
15402 \end_inset
15403
15404 .
15405 \end_layout
15406
15407 \begin_layout Standard
15408 Bracket delimiters: press 
15409 \family typewriter
15410 Ctrl
15411 \family default
15412 -<bracket key> to insert a matching pair of delimiters.
15413  For example, 
15414 \family typewriter
15415 Ctrl-[
15416 \family default
15417  inserts a pair of parentheses 
15418 \begin_inset Formula $\left[\right]$
15419 \end_inset
15420
15421 .
15422  (Note: 
15423 \family typewriter
15424 Ctrl-]
15425 \family default
15426  does the same thing.) It will switch to math mode if needed.
15427  The supported characters are ( [ { < |.
15428  It is the same to press the right or the left bracket.
15429  The corresponding delimiters are 
15430 \begin_inset Formula $\left(\right)$
15431 \end_inset
15432
15433  
15434 \begin_inset Formula $\left[\right]$
15435 \end_inset
15436
15437  
15438 \begin_inset Formula $\left\{ \right\} $
15439 \end_inset
15440
15441  
15442 \begin_inset Formula $\left\langle \right\rangle $
15443 \end_inset
15444
15445  
15446 \begin_inset Formula $\left|\right|$
15447 \end_inset
15448
15449 .
15450  The delimiters are 
15451 \begin_inset Quotes eld
15452 \end_inset
15453
15454 smart
15455 \begin_inset Quotes erd
15456 \end_inset
15457
15458  and resize with their contents.
15459  Use Math Panel to get other or non-matching delimiters.
15460  Press backspace on the 
15461 \emph on
15462 left
15463 \emph default
15464  delimiter to remove both 
15465 \begin_inset Quotes eld
15466 \end_inset
15467
15468 smart
15469 \begin_inset Quotes erd
15470 \end_inset
15471
15472  delimiters without removing their contents.
15473 \end_layout
15474
15475 \begin_layout List
15476 \labelwidthstring 00.00.0000
15477
15478 \family sans
15479 C-9
15480 \family default
15481  
15482 \family typewriter
15483 math-delim ( )
15484 \family default
15485  -- for convenience, pressing 
15486 \family typewriter
15487 Ctrl-9
15488 \family default
15489  is the same as 
15490 \family typewriter
15491 Ctrl-(
15492 \family default
15493  or 
15494 \family typewriter
15495 Ctrl-)
15496 \end_layout
15497
15498 \begin_layout List
15499 \labelwidthstring 00.00.0000
15500
15501 \family sans
15502 S-C-parenleft
15503 \family default
15504  
15505 \family typewriter
15506 math-delim ( )
15507 \end_layout
15508
15509 \begin_layout List
15510 \labelwidthstring 00.00.0000
15511
15512 \family sans
15513 C-0
15514 \family default
15515  
15516 \family typewriter
15517 math-delim ( )
15518 \end_layout
15519
15520 \begin_layout List
15521 \labelwidthstring 00.00.0000
15522
15523 \family sans
15524 S-C-parenright
15525 \family default
15526  
15527 \family typewriter
15528 math-delim ( )
15529 \end_layout
15530
15531 \begin_layout List
15532 \labelwidthstring 00.00.0000
15533
15534 \family sans
15535 C-bracketleft
15536 \family default
15537  
15538 \family typewriter
15539 math-delim [ ]
15540 \end_layout
15541
15542 \begin_layout List
15543 \labelwidthstring 00.00.0000
15544
15545 \family sans
15546 C-bracketright
15547 \family default
15548  
15549 \family typewriter
15550 math-delim [ ]
15551 \end_layout
15552
15553 \begin_layout List
15554 \labelwidthstring 00.00.0000
15555
15556 \family sans
15557 C-S-less
15558 \family default
15559  
15560 \family typewriter
15561 math-delim langle rangle
15562 \family default
15563  -- angular delimiters 
15564 \begin_inset Formula $\left\langle \right\rangle $
15565 \end_inset
15566
15567 , not to confuse with ordinary < > signs.
15568 \end_layout
15569
15570 \begin_layout List
15571 \labelwidthstring 00.00.0000
15572
15573 \family sans
15574 C-S-greater
15575 \family default
15576  
15577 \family typewriter
15578 math-delim langle rangle
15579 \end_layout
15580
15581 \begin_layout Standard
15582 The bar bracket: on some keyboards (e.g.\InsetSpace ~
15583 some British ones), the bar character
15584  is bound to an 
15585 \family typewriter
15586 Alt
15587 \family default
15588 -something and on some wayward Unices to "brokenbar".
15589  So we define all of these keys as well.
15590 \end_layout
15591
15592 \begin_layout List
15593 \labelwidthstring 00.00.0000
15594
15595 \family sans
15596 C-S-bar
15597 \family default
15598  
15599 \family typewriter
15600 math-delim | |
15601 \end_layout
15602
15603 \begin_layout List
15604 \labelwidthstring 00.00.0000
15605
15606 \family sans
15607 C-S-brokenbar
15608 \family default
15609  
15610 \family typewriter
15611 math-delim | |
15612 \end_layout
15613
15614 \begin_layout List
15615 \labelwidthstring 00.00.0000
15616
15617 \family sans
15618 C-M-bar
15619 \family default
15620  
15621 \family typewriter
15622 math-delim | |
15623 \end_layout
15624
15625 \begin_layout List
15626 \labelwidthstring 00.00.0000
15627
15628 \family sans
15629 S-C-braceleft
15630 \family default
15631  
15632 \family typewriter
15633 math-delim { }
15634 \end_layout
15635
15636 \begin_layout List
15637 \labelwidthstring 00.00.0000
15638
15639 \family sans
15640 S-C-braceright
15641 \family default
15642  
15643 \family typewriter
15644 math-delim { }
15645 \end_layout
15646
15647 \begin_layout Standard
15648 Accents are in most cases 
15649 \family typewriter
15650 Ctrl
15651 \family default
15652 -<accent key>, e.g.\InsetSpace ~
15653
15654 \family typewriter
15655 Ctrl-.
15656
15657 \family default
15658  for overdot, 
15659 \family typewriter
15660 Ctrl-'
15661 \family default
15662  for acute accent, 
15663 \family typewriter
15664 Ctrl-~
15665 \family default
15666  for tilde (you also need to press 
15667 \family typewriter
15668 Shift
15669 \family default
15670  here) etc.
15671  For example, 
15672 \begin_inset Quotes eld
15673 \end_inset
15674
15675
15676 \family typewriter
15677 Ctrl-'
15678 \family default
15679  
15680 \family typewriter
15681 a
15682 \family default
15683
15684 \begin_inset Quotes erd
15685 \end_inset
15686
15687  inserts á.
15688  Some accents work only in math mode and others only in text mode.
15689 \end_layout
15690
15691 \begin_layout List
15692 \labelwidthstring 00.00.0000
15693
15694 \family sans
15695 C-period
15696 \family default
15697  
15698 \family typewriter
15699 accent-dot
15700 \family default
15701  -- overdot accent, ȧ (text mode only).
15702 \end_layout
15703
15704 \begin_layout List
15705 \labelwidthstring 00.00.0000
15706
15707 \family sans
15708 C-comma
15709 \family default
15710  
15711 \family typewriter
15712 math-insert 
15713 \backslash
15714 dot
15715 \family default
15716  -- overdot accent, 
15717 \begin_inset Formula $\dot{a}$
15718 \end_inset
15719
15720  (math mode only -- in physics this denotes a first derivative).
15721 \end_layout
15722
15723 \begin_layout List
15724 \labelwidthstring 00.00.0000
15725
15726 \family sans
15727 C-equals
15728 \family default
15729  
15730 \family typewriter
15731 math-insert 
15732 \backslash
15733 overrightarrow
15734 \family default
15735  -- Vector accent over math 
15736 \begin_inset Formula $\overrightarrow{x}$
15737 \end_inset
15738
15739 .
15740 \end_layout
15741
15742 \begin_layout List
15743 \labelwidthstring 00.00.0000
15744
15745 \family sans
15746 S-C-quotedbl
15747 \family default
15748  
15749 \family typewriter
15750 accent-umlaut
15751 \family default
15752  -- umlaut accent, ä (text mode only)
15753 \end_layout
15754
15755 \begin_layout List
15756 \labelwidthstring 00.00.0000
15757
15758 \family sans
15759 S-C-colon
15760 \family default
15761  
15762 \family typewriter
15763 math-insert 
15764 \backslash
15765 ddot
15766 \family default
15767  -- double dot accent, 
15768 \begin_inset Formula $\ddot{a}$
15769 \end_inset
15770
15771  (math mode only -- in physics this denotes a second derivative).
15772  To get a triple dot in math mode, use 
15773 \family typewriter
15774
15775 \backslash
15776 dddot
15777 \end_layout
15778
15779 \begin_layout List
15780 \labelwidthstring 00.00.0000
15781
15782 \family sans
15783 C-quoteleft
15784 \family default
15785  
15786 \family typewriter
15787 accent-grave
15788 \family default
15789  -- grave accent à (text mode only, use 
15790 \family typewriter
15791
15792 \backslash
15793 grave
15794 \family default
15795  for math)
15796 \end_layout
15797
15798 \begin_layout List
15799 \labelwidthstring 00.00.0000
15800
15801 \family sans
15802 S-C-asciitilde
15803 \family default
15804  
15805 \family typewriter
15806 accent-tilde
15807 \family default
15808  -- tilde accent ã (text mode only, use 
15809 \family typewriter
15810
15811 \backslash
15812 tilde
15813 \family default
15814  for math)
15815 \end_layout
15816
15817 \begin_layout List
15818 \labelwidthstring 00.00.0000
15819
15820 \family sans
15821 C-apostrophe
15822 \family default
15823  
15824 \family typewriter
15825 accent-acute
15826 \family default
15827  -- acute accent á (text mode only, use 
15828 \family typewriter
15829
15830 \backslash
15831 acute
15832 \family default
15833  for math)
15834 \end_layout
15835
15836 \begin_layout List
15837 \labelwidthstring 00.00.0000
15838
15839 \family sans
15840 S-C-asciicircum
15841 \family default
15842  
15843 \family typewriter
15844 accent-circumflex
15845 \family default
15846  -- circumflex (caret) accent â (text mode only, use 
15847 \family typewriter
15848
15849 \backslash
15850 hat
15851 \family default
15852  for math).
15853 \end_layout
15854
15855 \begin_layout Standard
15856 Function keys.
15857  The new key S-F2 for creating a LaTeX file seems handy.
15858 \end_layout
15859
15860 \begin_layout List
15861 \labelwidthstring 00.00.0000
15862
15863 \family sans
15864 F2
15865 \family default
15866  
15867 \family typewriter
15868 buffer-write
15869 \family default
15870  -- Save current document.
15871 \end_layout
15872
15873 \begin_layout List
15874 \labelwidthstring 00.00.0000
15875
15876 \family sans
15877 S-F2
15878 \family default
15879  
15880 \family typewriter
15881 buffer-export latex
15882 \family default
15883  -- Write a LaTeX file for the current document.
15884 \end_layout
15885
15886 \begin_layout List
15887 \labelwidthstring 00.00.0000
15888
15889 \family sans
15890 F3
15891 \family default
15892  
15893 \family typewriter
15894 find-replace
15895 \family default
15896  -- Find and replace dialog.
15897 \end_layout
15898
15899 \begin_layout List
15900 \labelwidthstring 00.00.0000
15901
15902 \family sans
15903 C-F4
15904 \family default
15905  
15906 \family typewriter
15907 buffer-close
15908 \family default
15909  -- same as 
15910 \family typewriter
15911 C-w
15912 \family default
15913 .
15914 \end_layout
15915
15916 \begin_layout List
15917 \labelwidthstring 00.00.0000
15918
15919 \family sans
15920 M-F4
15921 \family default
15922  
15923 \family typewriter
15924 lyx-quit
15925 \family default
15926  -- 
15927 \family typewriter
15928 Alt-F4
15929 \family default
15930  to quit LyX is the W*ndows w*ndow manager's mnemonic.
15931 \end_layout
15932
15933 \begin_layout Standard
15934
15935 \family typewriter
15936 F4
15937 \family default
15938  to 
15939 \family typewriter
15940 F8
15941 \family default
15942  are used to switch fonts.
15943  Use 
15944 \family typewriter
15945 F4
15946 \family default
15947  to switch back to the normal font.
15948  The non-default font switches 
15949 \family typewriter
15950 F5
15951 \family default
15952  - 
15953 \family typewriter
15954 F8
15955 \family default
15956  all work as toggles.
15957  They also work on the whole word if you put the cursor in the middle of
15958  the word, or if you select some text.
15959 \end_layout
15960
15961 \begin_layout List
15962 \labelwidthstring 00.00.0000
15963
15964 \family sans
15965 F4
15966 \family default
15967  
15968 \family typewriter
15969 font-default
15970 \family default
15971  -- stop using any special font
15972 \end_layout
15973
15974 \begin_layout List
15975 \labelwidthstring 00.00.0000
15976
15977 \family sans
15978 F5
15979 \family default
15980  
15981 \family typewriter
15982 font-bold
15983 \family default
15984  -- make 
15985 \series bold
15986 bold
15987 \series default
15988  text.
15989 \end_layout
15990
15991 \begin_layout List
15992 \labelwidthstring 00.00.0000
15993
15994 \family sans
15995 F6
15996 \family default
15997  
15998 \family typewriter
15999 font-emph
16000 \family default
16001  -- make 
16002 \emph on
16003 emphasized
16004 \emph default
16005  text.
16006 \end_layout
16007
16008 \begin_layout List
16009 \labelwidthstring 00.00.0000
16010
16011 \family sans
16012 F7
16013 \family default
16014  
16015 \family typewriter
16016 font-code
16017 \family default
16018  -- make 
16019 \family typewriter
16020 typewritten
16021 \family default
16022  text.
16023 \end_layout
16024
16025 \begin_layout List
16026 \labelwidthstring 00.00.0000
16027
16028 \family sans
16029 F8
16030 \family default
16031  
16032 \family typewriter
16033 font-noun
16034 \family default
16035  -- make 
16036 \noun on
16037 Caps/small caps
16038 \noun default
16039  text.
16040  (Used sometimes for people's names.)
16041 \end_layout
16042
16043 \begin_layout Standard
16044
16045 \family typewriter
16046 F9
16047 \family default
16048  is bound as 
16049 \begin_inset Quotes eld
16050 \end_inset
16051
16052 meta-prefix
16053 \begin_inset Quotes erd
16054 \end_inset
16055
16056 , same as the 
16057 \family typewriter
16058 Alt
16059 \family default
16060  key (useful e.g.\InsetSpace ~
16061 if the keyboard has no working 
16062 \family typewriter
16063 Alt
16064 \family default
16065 ).
16066 \end_layout
16067
16068 \begin_layout Standard
16069 Here are some Sciword-inspired mnemonics for frequently used math symbols.
16070  Many symbols start with a 
16071 \family typewriter
16072 C-s
16073 \family default
16074  sequence.
16075  Therefore 
16076 \family typewriter
16077 C-s
16078 \family default
16079  cannot be itself bound to anything.
16080 \end_layout
16081
16082 \begin_layout List
16083 \labelwidthstring 00.00.0000
16084
16085 \family sans
16086 M-apostrophe
16087 \family default
16088  
16089 \family typewriter
16090 math-insert 
16091 \backslash
16092 prime
16093 \family default
16094  -- The 
16095 \begin_inset Quotes eld
16096 \end_inset
16097
16098 prime
16099 \begin_inset Quotes erd
16100 \end_inset
16101
16102  symbol 
16103 \begin_inset Formula $\prime$
16104 \end_inset
16105
16106  in math mode.
16107  This is frequently unnecessary: in most cases the normal apostrophe works
16108  just fine, e.g.
16109  
16110 \begin_inset Formula $x'+2x=0$
16111 \end_inset
16112
16113 , but in some cases this would generate a double superscript error in LaTeX.
16114  For example: 
16115 \begin_inset Formula $x^{\prime2}$
16116 \end_inset
16117
16118  (
16119 \begin_inset Formula $x$
16120 \end_inset
16121
16122  prime squared) must be entered with the prime character.
16123 \end_layout
16124
16125 \begin_layout List
16126 \labelwidthstring 00.00.0000
16127
16128 \family sans
16129 C-s\InsetSpace ~
16130 apostrophe
16131 \family default
16132  
16133 \family typewriter
16134 command-sequence math-superscript; math-insert 
16135 \backslash
16136 prime;
16137 \family default
16138  -- Insert a prime as a superscript (see example above).
16139 \end_layout
16140
16141 \begin_layout List
16142 \labelwidthstring 00.00.0000
16143
16144 \family sans
16145 C-Up
16146 \family default
16147  
16148 \family typewriter
16149 math-insert ^
16150 \family default
16151  -- Insert an upper index.
16152  Also, 
16153 \family typewriter
16154
16155 \end_layout
16156
16157 \begin_layout List
16158 \labelwidthstring 00.00.0000
16159
16160 \family sans
16161 C-Down
16162 \family default
16163  
16164 \family typewriter
16165 math-insert _
16166 \family default
16167  -- Insert a lower index.
16168  Also, 
16169 \family typewriter
16170 _
16171 \end_layout
16172
16173 \begin_layout List
16174 \labelwidthstring 00.00.0000
16175
16176 \family sans
16177 C-s\InsetSpace ~
16178 d
16179 \family default
16180  
16181 \family typewriter
16182 math-insert 
16183 \backslash
16184 partial
16185 \family default
16186  -- Partial derivative symbol 
16187 \begin_inset Formula $\partial$
16188 \end_inset
16189
16190 .
16191 \end_layout
16192
16193 \begin_layout List
16194 \labelwidthstring 00.00.0000
16195
16196 \family sans
16197 C-s\InsetSpace ~
16198 e
16199 \family default
16200  
16201 \family typewriter
16202 math-insert 
16203 \backslash
16204 sum
16205 \family default
16206  -- Summation symbol 
16207 \begin_inset Formula $\sum$
16208 \end_inset
16209
16210  (not the same as the Greek letter uppercase Sigma 
16211 \begin_inset Formula $\Sigma$
16212 \end_inset
16213
16214  because it can resize and allows smart upper/lower limits).
16215 \end_layout
16216
16217 \begin_layout List
16218 \labelwidthstring 00.00.0000
16219
16220 \family sans
16221 C-s\InsetSpace ~
16222 p
16223 \family default
16224  
16225 \family typewriter
16226 math-insert 
16227 \backslash
16228 prod
16229 \family default
16230  -- Product symbol 
16231 \begin_inset Formula $\prod$
16232 \end_inset
16233
16234  (not the same as the Greek letter uppercase Pi, 
16235 \begin_inset Formula $\Pi$
16236 \end_inset
16237
16238 ).
16239 \end_layout
16240
16241 \begin_layout List
16242 \labelwidthstring 00.00.0000
16243
16244 \family sans
16245 C-s\InsetSpace ~
16246 i
16247 \family default
16248  
16249 \family typewriter
16250 math-insert 
16251 \backslash
16252 infty
16253 \family default
16254  -- Infinity 
16255 \begin_inset Formula $\infty$
16256 \end_inset
16257
16258 .
16259 \end_layout
16260
16261 \begin_layout List
16262 \labelwidthstring 00.00.0000
16263
16264 \family sans
16265 C-s\InsetSpace ~
16266 x
16267 \family default
16268  
16269 \family typewriter
16270 math-insert 
16271 \backslash
16272 times
16273 \family default
16274  -- Cross product 
16275 \begin_inset Formula $\times$
16276 \end_inset
16277
16278 .
16279 \end_layout
16280
16281 \begin_layout List
16282 \labelwidthstring 00.00.0000
16283
16284 \family sans
16285 C-s\InsetSpace ~
16286 v
16287 \family default
16288  
16289 \family typewriter
16290 math-matrix 1 2
16291 \family default
16292  -- Insert a stacked array 
16293 \begin_inset Formula $\begin{array}{c}
16294 \begin{array}{c}
16295 \end{array}\end{array}$
16296 \end_inset
16297
16298 .
16299  (Frequently useful in formulae.)
16300 \end_layout
16301
16302 \begin_layout List
16303 \labelwidthstring 00.00.0000
16304
16305 \family sans
16306 C-s\InsetSpace ~
16307 m
16308 \family default
16309  
16310 \family typewriter
16311 math-matrix 3 3
16312 \family default
16313  -- Insert a 3
16314 \begin_inset Formula $\times$
16315 \end_inset
16316
16317 3 matrix 
16318 \begin_inset Formula $\begin{array}{ccc}
16319 \\\\\end{array}$
16320 \end_inset
16321
16322 .
16323  (Then you can modify its size using the 
16324 \family sans
16325 Edit\SpecialChar \menuseparator
16326 Math
16327 \family default
16328  menu.)
16329 \end_layout
16330
16331 \begin_layout List
16332 \labelwidthstring 00.00.0000
16333
16334 \family sans
16335 C-s\InsetSpace ~
16336 S-plus
16337 \family default
16338  
16339 \family typewriter
16340 math-insert 
16341 \backslash
16342 dagger
16343 \family default
16344  -- The 
16345 \begin_inset Quotes eld
16346 \end_inset
16347
16348 dagger
16349 \begin_inset Quotes erd
16350 \end_inset
16351
16352  
16353 \begin_inset Formula $\dagger$
16354 \end_inset
16355
16356 .
16357 \end_layout
16358
16359 \begin_layout List
16360 \labelwidthstring 00.00.0000
16361
16362 \family sans
16363 C-s\InsetSpace ~
16364 equal
16365 \family default
16366  
16367 \family typewriter
16368 math-insert 
16369 \backslash
16370 equiv
16371 \family default
16372  -- 
16373 \begin_inset Quotes eld
16374 \end_inset
16375
16376 Identical equality
16377 \begin_inset Quotes erd
16378 \end_inset
16379
16380  
16381 \begin_inset Formula $\equiv$
16382 \end_inset
16383
16384 .
16385 \end_layout
16386
16387 \begin_layout List
16388 \labelwidthstring 00.00.0000
16389
16390 \family sans
16391 M-equal
16392 \family default
16393  
16394 \family typewriter
16395 math-insert 
16396 \backslash
16397 approx
16398 \family default
16399  -- 
16400 \begin_inset Quotes eld
16401 \end_inset
16402
16403 Approximate equality
16404 \begin_inset Quotes erd
16405 \end_inset
16406
16407  
16408 \begin_inset Formula $\approx$
16409 \end_inset
16410
16411 .
16412 \end_layout
16413
16414 \begin_layout List
16415 \labelwidthstring 00.00.0000
16416
16417 \family sans
16418 M-minus
16419 \family default
16420  
16421 \family typewriter
16422 math-insert 
16423 \backslash
16424 sim
16425 \family default
16426  -- The 
16427 \begin_inset Quotes eld
16428 \end_inset
16429
16430 of order
16431 \begin_inset Quotes erd
16432 \end_inset
16433
16434  sign 
16435 \begin_inset Formula $\sim$
16436 \end_inset
16437
16438 .
16439 \end_layout
16440
16441 \begin_layout List
16442 \labelwidthstring 00.00.0000
16443
16444 \family sans
16445 C-minus
16446 \family default
16447  
16448 \family typewriter
16449 math-insert 
16450 \backslash
16451 rightarrow
16452 \family default
16453  -- The arrow 
16454 \begin_inset Formula $\rightarrow$
16455 \end_inset
16456
16457  as in 
16458 \begin_inset Formula $\lim_{x\rightarrow0}$
16459 \end_inset
16460
16461 .
16462 \end_layout
16463
16464 \begin_layout List
16465 \labelwidthstring 00.00.0000
16466
16467 \family sans
16468 S-M-less
16469 \family default
16470  
16471 \family typewriter
16472 math-insert 
16473 \backslash
16474 leq
16475 \family default
16476  -- Less-or-equal 
16477 \begin_inset Formula $\leq$
16478 \end_inset
16479
16480 .
16481 \end_layout
16482
16483 \begin_layout List
16484 \labelwidthstring 00.00.0000
16485
16486 \family sans
16487 S-M-greater
16488 \family default
16489  
16490 \family typewriter
16491 math-insert 
16492 \backslash
16493 geq
16494 \family default
16495  -- Greater-or-equal 
16496 \begin_inset Formula $\geq$
16497 \end_inset
16498
16499 .
16500 \end_layout
16501
16502 \begin_layout List
16503 \labelwidthstring 00.00.0000
16504
16505 \family sans
16506 C-s\InsetSpace ~
16507 S-less
16508 \family default
16509  
16510 \family typewriter
16511 math-insert 
16512 \backslash
16513 ll
16514 \family default
16515  -- 
16516 \begin_inset Quotes eld
16517 \end_inset
16518
16519 Much less than
16520 \begin_inset Quotes erd
16521 \end_inset
16522
16523  
16524 \begin_inset Formula $\ll$
16525 \end_inset
16526
16527  (useful in physics)
16528 \end_layout
16529
16530 \begin_layout List
16531 \labelwidthstring 00.00.0000
16532
16533 \family sans
16534 C-s\InsetSpace ~
16535 S-greater
16536 \family default
16537  
16538 \family typewriter
16539 math-insert 
16540 \backslash
16541 gg
16542 \family default
16543  -- 
16544 \begin_inset Quotes eld
16545 \end_inset
16546
16547 Much greater than
16548 \begin_inset Quotes erd
16549 \end_inset
16550
16551  sign 
16552 \begin_inset Formula $\gg$
16553 \end_inset
16554
16555 .
16556 \end_layout
16557
16558 \begin_layout Subsection
16559 Standard math bindings
16560 \end_layout
16561
16562 \begin_layout List
16563 \labelwidthstring 00.00.0000
16564
16565 \family sans
16566 M-m\InsetSpace ~
16567 b
16568 \family default
16569  
16570 \family typewriter
16571 math-insert 
16572 \backslash
16573 overline
16574 \end_layout
16575
16576 \begin_layout List
16577 \labelwidthstring 00.00.0000
16578
16579 \family sans
16580 M-m\InsetSpace ~
16581 d
16582 \family default
16583  
16584 \family typewriter
16585 math-display
16586 \end_layout
16587
16588 \begin_layout List
16589 \labelwidthstring 00.00.0000
16590
16591 \family sans
16592 M-m\InsetSpace ~
16593 e
16594 \family default
16595  
16596 \family typewriter
16597 math-insert ^
16598 \end_layout
16599
16600 \begin_layout List
16601 \labelwidthstring 00.00.0000
16602
16603 \family sans
16604 M-m\InsetSpace ~
16605 f
16606 \family default
16607  
16608 \family typewriter
16609 math-insert 
16610 \backslash
16611 frac
16612 \end_layout
16613
16614 \begin_layout List
16615 \labelwidthstring 00.00.0000
16616
16617 \family sans
16618 M-m\InsetSpace ~
16619 g
16620 \family default
16621  
16622 \family typewriter
16623 math-greek
16624 \end_layout
16625
16626 \begin_layout List
16627 \labelwidthstring 00.00.0000
16628
16629 \family sans
16630 M-m\InsetSpace ~
16631 h
16632 \family default
16633  
16634 \family typewriter
16635 accent-circumflex
16636 \end_layout
16637
16638 \begin_layout List
16639 \labelwidthstring 00.00.0000
16640
16641 \family sans
16642 M-m\InsetSpace ~
16643 i
16644 \family default
16645  
16646 \family typewriter
16647 math-insert 
16648 \backslash
16649 int
16650 \end_layout
16651
16652 \begin_layout List
16653 \labelwidthstring 00.00.0000
16654
16655 \family sans
16656 M-m\InsetSpace ~
16657 l
16658 \family default
16659  
16660 \family typewriter
16661 math-limits
16662 \end_layout
16663
16664 \begin_layout List
16665 \labelwidthstring 00.00.0000
16666
16667 \family sans
16668 M-m\InsetSpace ~
16669 m
16670 \family default
16671  
16672 \family typewriter
16673 math-mode
16674 \end_layout
16675
16676 \begin_layout List
16677 \labelwidthstring 00.00.0000
16678
16679 \family sans
16680 M-m\InsetSpace ~
16681 n
16682 \family default
16683  
16684 \family typewriter
16685 math-number
16686 \end_layout
16687
16688 \begin_layout List
16689 \labelwidthstring 00.00.0000
16690
16691 \family sans
16692 M-m\InsetSpace ~
16693 o
16694 \family default
16695  
16696 \family typewriter
16697 math-insert 
16698 \backslash
16699 oint
16700 \end_layout
16701
16702 \begin_layout List
16703 \labelwidthstring 00.00.0000
16704
16705 \family sans
16706 M-m\InsetSpace ~
16707 p
16708 \family default
16709  
16710 \family typewriter
16711 math-insert 
16712 \backslash
16713 partial
16714 \end_layout
16715
16716 \begin_layout List
16717 \labelwidthstring 00.00.0000
16718
16719 \family sans
16720 M-m\InsetSpace ~
16721 r
16722 \family default
16723  
16724 \family typewriter
16725 math-insert 
16726 \backslash
16727 sqrt
16728 \end_layout
16729
16730 \begin_layout List
16731 \labelwidthstring 00.00.0000
16732
16733 \family sans
16734 M-m\InsetSpace ~
16735 s
16736 \family default
16737  
16738 \family typewriter
16739 math-insert 
16740 \backslash
16741 sqrt
16742 \end_layout
16743
16744 \begin_layout List
16745 \labelwidthstring 00.00.0000
16746
16747 \family sans
16748 M-m\InsetSpace ~
16749 u
16750 \family default
16751  
16752 \family typewriter
16753 math-insert 
16754 \backslash
16755 sum
16756 \end_layout
16757
16758 \begin_layout List
16759 \labelwidthstring 00.00.0000
16760
16761 \family sans
16762 M-m\InsetSpace ~
16763 v
16764 \family default
16765  
16766 \family typewriter
16767 math-insert 
16768 \backslash
16769 vec
16770 \end_layout
16771
16772 \begin_layout List
16773 \labelwidthstring 00.00.0000
16774
16775 \family sans
16776 M-m\InsetSpace ~
16777 x
16778 \family default
16779  
16780 \family typewriter
16781 math-insert _
16782 \end_layout
16783
16784 \begin_layout List
16785 \labelwidthstring 00.00.0000
16786
16787 \family sans
16788 M-m\InsetSpace ~
16789 8
16790 \family default
16791  
16792 \family typewriter
16793 math-insert 
16794 \backslash
16795 infty
16796 \end_layout
16797
16798 \begin_layout List
16799 \labelwidthstring 00.00.0000
16800
16801 \family sans
16802 M-m\InsetSpace ~
16803 S-G
16804 \family default
16805  
16806 \family typewriter
16807 math-greek-toggle
16808 \end_layout
16809
16810 \begin_layout List
16811 \labelwidthstring 00.00.0000
16812
16813 \family sans
16814 M-m\InsetSpace ~
16815 S-N
16816 \family default
16817  
16818 \family typewriter
16819 math-nonumber
16820 \end_layout
16821
16822 \begin_layout List
16823 \labelwidthstring 00.00.0000
16824
16825 \family sans
16826 M-m\InsetSpace ~
16827 S-period
16828 \family default
16829  
16830 \family typewriter
16831 accent-dot
16832 \end_layout
16833
16834 \begin_layout List
16835 \labelwidthstring 00.00.0000
16836
16837 \family sans
16838 M-m\InsetSpace ~
16839 S-asciitilde
16840 \family default
16841  
16842 \family typewriter
16843 accent-tilde
16844 \end_layout
16845
16846 \begin_layout List
16847 \labelwidthstring 00.00.0000
16848
16849 \family sans
16850 M-m\InsetSpace ~
16851 S-apostrophe
16852 \family default
16853  
16854 \family typewriter
16855 math-insert 
16856 \backslash
16857 prime
16858 \end_layout
16859
16860 \begin_layout List
16861 \labelwidthstring 00.00.0000
16862
16863 \family sans
16864 M-m\InsetSpace ~
16865 S-parenleft
16866 \family default
16867  
16868 \family typewriter
16869 math-delim ( )
16870 \end_layout
16871
16872 \begin_layout List
16873 \labelwidthstring 00.00.0000
16874
16875 \family sans
16876 M-m\InsetSpace ~
16877 S-bracketleft
16878 \family default
16879  
16880 \family typewriter
16881 math-delim [ ]
16882 \end_layout
16883
16884 \begin_layout List
16885 \labelwidthstring 00.00.0000
16886
16887 \family sans
16888 M-m\InsetSpace ~
16889 S-braceleft
16890 \family default
16891  
16892 \family typewriter
16893 math-delim { }
16894 \end_layout
16895
16896 \begin_layout List
16897 \labelwidthstring 00.00.0000
16898
16899 \family sans
16900 M-m\InsetSpace ~
16901 S-less
16902 \family default
16903  
16904 \family typewriter
16905 math-delim langle rangle
16906 \end_layout
16907
16908 \begin_layout List
16909 \labelwidthstring 00.00.0000
16910
16911 \family sans
16912 M-m\InsetSpace ~
16913 S-greater
16914 \family default
16915  
16916 \family typewriter
16917 math-delim rangle langle
16918 \end_layout
16919
16920 \begin_layout List
16921 \labelwidthstring 00.00.0000
16922
16923 \family sans
16924 M-m\InsetSpace ~
16925 S-bar
16926 \family default
16927  
16928 \family typewriter
16929 math-delim | |
16930 \end_layout
16931
16932 \begin_layout List
16933 \labelwidthstring 00.00.0000
16934
16935 \family sans
16936 M-m\InsetSpace ~
16937 S-plus
16938 \family default
16939  
16940 \family typewriter
16941 math-insert 
16942 \backslash
16943 pm
16944 \end_layout
16945
16946 \begin_layout List
16947 \labelwidthstring 00.00.0000
16948
16949 \family sans
16950 M-m\InsetSpace ~
16951 S-equal
16952 \family default
16953  
16954 \family typewriter
16955 math-insert 
16956 \backslash
16957 neq
16958 \end_layout
16959
16960 \begin_layout Subsection
16961 Other Accelerators
16962 \end_layout
16963
16964 \begin_layout List
16965 \labelwidthstring 00.00.0000
16966
16967 \family sans
16968 M-k\InsetSpace ~
16969 o
16970 \family default
16971  
16972 \family typewriter
16973 keymap-off
16974 \end_layout
16975
16976 \begin_layout List
16977 \labelwidthstring 00.00.0000
16978
16979 \family sans
16980 M-k\InsetSpace ~
16981 t
16982 \family default
16983  
16984 \family typewriter
16985 keymap-toggle
16986 \end_layout
16987
16988 \begin_layout List
16989 \labelwidthstring 00.00.0000
16990
16991 \family sans
16992 M-k\InsetSpace ~
16993 x
16994 \family default
16995  
16996 \family typewriter
16997 keymap-off
16998 \end_layout
16999
17000 \begin_layout List
17001 \labelwidthstring 00.00.0000
17002
17003 \family sans
17004 M-k\InsetSpace ~
17005 1
17006 \family default
17007  
17008 \family typewriter
17009 keymap-primary
17010 \end_layout
17011
17012 \begin_layout List
17013 \labelwidthstring 00.00.0000
17014
17015 \family sans
17016 M-k\InsetSpace ~
17017 2
17018 \family default
17019  
17020 \family typewriter
17021 keymap-secondary
17022 \end_layout
17023
17024 \end_body
17025 \end_document