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