]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
1736b0629a19cc0f539515a887b5fc87dc3a8602
[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 Subsection
10651 File
10652 \end_layout
10653
10654 \begin_layout List
10655 \labelwidthstring 00.00.0000
10656
10657 \family sans
10658 M-f\InsetSpace ~
10659 a
10660 \family default
10661  
10662 \family typewriter
10663 buffer-write-as
10664 \end_layout
10665
10666 \begin_layout List
10667 \labelwidthstring 00.00.0000
10668
10669 \family sans
10670 M-f\InsetSpace ~
10671 c
10672 \family default
10673  
10674 \family typewriter
10675 buffer-close
10676 \end_layout
10677
10678 \begin_layout List
10679 \labelwidthstring 00.00.0000
10680
10681 \family sans
10682 M-f\InsetSpace ~
10683 d
10684 \family default
10685  
10686 \family typewriter
10687 buffer-reload
10688 \end_layout
10689
10690 \begin_layout List
10691 \labelwidthstring 00.00.0000
10692
10693 \family sans
10694 M-f\InsetSpace ~
10695 e
10696 \family default
10697  
10698 \family typewriter
10699 file_export
10700 \family default
10701  submenu
10702 \end_layout
10703
10704 \begin_layout List
10705 \labelwidthstring 00.00.0000
10706
10707 \family sans
10708 M-f\InsetSpace ~
10709 f
10710 \family default
10711  
10712 \family typewriter
10713 buffer-export fax
10714 \end_layout
10715
10716 \begin_layout List
10717 \labelwidthstring 00.00.0000
10718
10719 \family sans
10720 M-f\InsetSpace ~
10721 i
10722 \family default
10723  
10724 \family typewriter
10725 file_import
10726 \family default
10727  submenu
10728 \end_layout
10729
10730 \begin_layout List
10731 \labelwidthstring 00.00.0000
10732
10733 \family sans
10734 M-f\InsetSpace ~
10735 n
10736 \family default
10737  
10738 \family typewriter
10739 buffer-new
10740 \end_layout
10741
10742 \begin_layout List
10743 \labelwidthstring 00.00.0000
10744
10745 \family sans
10746 M-f\InsetSpace ~
10747 o
10748 \family default
10749  
10750 \family typewriter
10751 buffer-open
10752 \end_layout
10753
10754 \begin_layout List
10755 \labelwidthstring 00.00.0000
10756
10757 \family sans
10758 M-f\InsetSpace ~
10759 p
10760 \family default
10761  
10762 \family typewriter
10763 buffer-print
10764 \end_layout
10765
10766 \begin_layout List
10767 \labelwidthstring 00.00.0000
10768
10769 \family sans
10770 M-f\InsetSpace ~
10771 s
10772 \family default
10773  
10774 \family typewriter
10775 buffer-write
10776 \end_layout
10777
10778 \begin_layout List
10779 \labelwidthstring 00.00.0000
10780
10781 \family sans
10782 M-f\InsetSpace ~
10783 t
10784 \family default
10785  
10786 \family typewriter
10787 buffer-new-template
10788 \end_layout
10789
10790 \begin_layout List
10791 \labelwidthstring 00.00.0000
10792
10793 \family sans
10794 M-f\InsetSpace ~
10795 v
10796 \family default
10797  
10798 \family typewriter
10799 file_vc
10800 \family default
10801  submenu 
10802 \end_layout
10803
10804 \begin_deeper
10805 \begin_layout List
10806 \labelwidthstring 00.00.0000
10807
10808 \family sans
10809 h
10810 \family default
10811  
10812 \family typewriter
10813 vc-history 
10814 \end_layout
10815
10816 \begin_layout List
10817 \labelwidthstring 00.00.0000
10818
10819 \family sans
10820 i
10821 \family default
10822  
10823 \family typewriter
10824 vc-check-in
10825 \end_layout
10826
10827 \begin_layout List
10828 \labelwidthstring 00.00.0000
10829
10830 \family sans
10831 l
10832 \family default
10833  
10834 \family typewriter
10835 vc-revert
10836 \end_layout
10837
10838 \begin_layout List
10839 \labelwidthstring 00.00.0000
10840
10841 \family sans
10842 o
10843 \family default
10844  
10845 \family typewriter
10846 vc-check-out
10847 \end_layout
10848
10849 \begin_layout List
10850 \labelwidthstring 00.00.0000
10851
10852 \family sans
10853 r
10854 \family default
10855  
10856 \family typewriter
10857 vc-register
10858 \end_layout
10859
10860 \begin_layout List
10861 \labelwidthstring 00.00.0000
10862
10863 \family sans
10864 u
10865 \family default
10866  
10867 \family typewriter
10868 vc-undo-last
10869 \end_layout
10870
10871 \end_deeper
10872 \begin_layout List
10873 \labelwidthstring 00.00.0000
10874
10875 \family sans
10876 M-f\InsetSpace ~
10877 x
10878 \family default
10879  
10880 \family typewriter
10881 lyx-quit
10882 \end_layout
10883
10884 \begin_layout Subsection
10885 Edit
10886 \end_layout
10887
10888 \begin_layout List
10889 \labelwidthstring 00.00.0000
10890
10891 \family sans
10892 M-e\InsetSpace ~
10893 a
10894 \family default
10895  
10896 \family typewriter
10897 paste
10898 \end_layout
10899
10900 \begin_layout List
10901 \labelwidthstring 00.00.0000
10902
10903 \family sans
10904 M-e\InsetSpace ~
10905 c
10906 \family default
10907  
10908 \family typewriter
10909 cut
10910 \end_layout
10911
10912 \begin_layout List
10913 \labelwidthstring 00.00.0000
10914
10915 \family sans
10916 M-e\InsetSpace ~
10917 d
10918 \family default
10919  
10920 \family typewriter
10921 redo
10922 \end_layout
10923
10924 \begin_layout List
10925 \labelwidthstring 00.00.0000
10926
10927 \family sans
10928 M-e\InsetSpace ~
10929 e
10930 \family default
10931  
10932 \family typewriter
10933 error-remove-all
10934 \end_layout
10935
10936 \begin_layout List
10937 \labelwidthstring 00.00.0000
10938
10939 \family sans
10940 M-e\InsetSpace ~
10941 f
10942 \family default
10943  
10944 \family typewriter
10945 find-replace
10946 \end_layout
10947
10948 \begin_layout List
10949 \labelwidthstring 00.00.0000
10950
10951 \family sans
10952 M-e\InsetSpace ~
10953 h
10954 \family default
10955  
10956 \family typewriter
10957 buffer-chktex
10958 \end_layout
10959
10960 \begin_layout List
10961 \labelwidthstring 00.00.0000
10962
10963 \family sans
10964 M-e\InsetSpace ~
10965 i
10966 \family default
10967  
10968 \family typewriter
10969 edit_floats
10970 \family default
10971  submenu
10972 \end_layout
10973
10974 \begin_deeper
10975 \begin_layout List
10976 \labelwidthstring 00.00.0000
10977
10978 \family sans
10979 a
10980 \family default
10981  
10982 \family typewriter
10983 tabular-feature append-row
10984 \end_layout
10985
10986 \begin_layout List
10987 \labelwidthstring 00.00.0000
10988
10989 \family sans
10990 b
10991 \family default
10992  
10993 \family typewriter
10994 tabular-feature toggle-line-bottom
10995 \end_layout
10996
10997 \begin_layout List
10998 \labelwidthstring 00.00.0000
10999
11000 \family sans
11001 c
11002 \family default
11003  
11004 \family typewriter
11005 tabular-feature align-center
11006 \end_layout
11007
11008 \begin_layout List
11009 \labelwidthstring 00.00.0000
11010
11011 \family sans
11012 d
11013 \family default
11014  
11015 \family typewriter
11016 tabular-feature delete-column
11017 \end_layout
11018
11019 \begin_layout List
11020 \labelwidthstring 00.00.0000
11021
11022 \family sans
11023 e
11024 \family default
11025  
11026 \family typewriter
11027 tabular-feature align-left
11028 \end_layout
11029
11030 \begin_layout List
11031 \labelwidthstring 00.00.0000
11032
11033 \family sans
11034 i
11035 \family default
11036  
11037 \family typewriter
11038 tabular-feature align-right
11039 \end_layout
11040
11041 \begin_layout List
11042 \labelwidthstring 00.00.0000
11043
11044 \family sans
11045 l
11046 \family default
11047  
11048 \family typewriter
11049 tabular-feature toggle-line-left
11050 \end_layout
11051
11052 \begin_layout List
11053 \labelwidthstring 00.00.0000
11054
11055 \family sans
11056 m
11057 \family default
11058  
11059 \family typewriter
11060 tabular-feature multicolumn
11061 \end_layout
11062
11063 \begin_layout List
11064 \labelwidthstring 00.00.0000
11065
11066 \family sans
11067 n
11068 \family default
11069  
11070 \family typewriter
11071 tabular-feature valign-center
11072 \end_layout
11073
11074 \begin_layout List
11075 \labelwidthstring 00.00.0000
11076
11077 \family sans
11078 o
11079 \family default
11080  
11081 \family typewriter
11082 tabular-feature valign-top
11083 \end_layout
11084
11085 \begin_layout List
11086 \labelwidthstring 00.00.0000
11087
11088 \family sans
11089 r
11090 \family default
11091  
11092 \family typewriter
11093 tabular-feature toggle-line-right
11094 \end_layout
11095
11096 \begin_layout List
11097 \labelwidthstring 00.00.0000
11098
11099 \family sans
11100 t
11101 \family default
11102  
11103 \family typewriter
11104 tabular-feature toggle-line-top
11105 \end_layout
11106
11107 \begin_layout List
11108 \labelwidthstring 00.00.0000
11109
11110 \family sans
11111 u
11112 \family default
11113  
11114 \family typewriter
11115 tabular-feature append-column
11116 \end_layout
11117
11118 \begin_layout List
11119 \labelwidthstring 00.00.0000
11120
11121 \family sans
11122 v
11123 \family default
11124  
11125 \family typewriter
11126 tabular-feature valign-bottom
11127 \end_layout
11128
11129 \begin_layout List
11130 \labelwidthstring 00.00.0000
11131
11132 \family sans
11133 w
11134 \family default
11135  
11136 \family typewriter
11137 tabular-feature delete-row
11138 \end_layout
11139
11140 \end_deeper
11141 \begin_layout List
11142 \labelwidthstring 00.00.0000
11143
11144 \family sans
11145 M-e\InsetSpace ~
11146 l
11147 \family default
11148  
11149 \family typewriter
11150 math-panel
11151 \end_layout
11152
11153 \begin_deeper
11154 \begin_layout List
11155 \labelwidthstring 00.00.0000
11156
11157 \family sans
11158 a
11159 \family default
11160  
11161 \family typewriter
11162 floats-operate openfoot
11163 \end_layout
11164
11165 \begin_layout List
11166 \labelwidthstring 00.00.0000
11167
11168 \family sans
11169 c
11170 \family default
11171  
11172 \family typewriter
11173 floats-operate closefoot
11174 \end_layout
11175
11176 \begin_layout List
11177 \labelwidthstring 00.00.0000
11178
11179 \family sans
11180 f
11181 \family default
11182  
11183 \family typewriter
11184 floats-operate openfig
11185 \end_layout
11186
11187 \begin_layout List
11188 \labelwidthstring 00.00.0000
11189
11190 \family sans
11191 m
11192 \family default
11193  
11194 \family typewriter
11195 melt
11196 \end_layout
11197
11198 \begin_layout List
11199 \labelwidthstring 00.00.0000
11200
11201 \family sans
11202 o
11203 \family default
11204  
11205 \family typewriter
11206 open-stuff
11207 \end_layout
11208
11209 \begin_layout List
11210 \labelwidthstring 00.00.0000
11211
11212 \family sans
11213 t
11214 \family default
11215  
11216 \family typewriter
11217 floats-operate closefig
11218 \end_layout
11219
11220 \end_deeper
11221 \begin_layout List
11222 \labelwidthstring 00.00.0000
11223
11224 \family sans
11225 M-e\InsetSpace ~
11226 o
11227 \family default
11228  
11229 \family typewriter
11230 copy
11231 \end_layout
11232
11233 \begin_layout List
11234 \labelwidthstring 00.00.0000
11235
11236 \family sans
11237 M-e\InsetSpace ~
11238 p
11239 \family default
11240  
11241 \family typewriter
11242 dialog-preferences
11243 \family default
11244  
11245 \end_layout
11246
11247 \begin_layout List
11248 \labelwidthstring 00.00.0000
11249
11250 \family sans
11251 M-e\InsetSpace ~
11252 r
11253 \family default
11254  
11255 \family typewriter
11256 reconfigure
11257 \end_layout
11258
11259 \begin_layout List
11260 \labelwidthstring 00.00.0000
11261
11262 \family sans
11263 M-e\InsetSpace ~
11264 s
11265 \family default
11266  
11267 \family typewriter
11268 spellchecker
11269 \end_layout
11270
11271 \begin_layout List
11272 \labelwidthstring 00.00.0000
11273
11274 \family sans
11275 M-e\InsetSpace ~
11276 t
11277 \family default
11278  
11279 \family typewriter
11280 edit_tabular
11281 \family default
11282  submenu
11283 \end_layout
11284
11285 \begin_layout List
11286 \labelwidthstring 00.00.0000
11287
11288 \family sans
11289 M-e\InsetSpace ~
11290 u
11291 \family default
11292  
11293 \family typewriter
11294 undo
11295 \end_layout
11296
11297 \begin_layout List
11298 \labelwidthstring 00.00.0000
11299
11300 \family sans
11301 M-e\InsetSpace ~
11302 x
11303 \family default
11304  
11305 \family typewriter
11306 edit_paste
11307 \family default
11308  submenu
11309 \end_layout
11310
11311 \begin_deeper
11312 \begin_layout List
11313 \labelwidthstring 00.00.0000
11314
11315 \family sans
11316 l
11317 \family default
11318  
11319 \family typewriter
11320 primary-selection-paste
11321 \end_layout
11322
11323 \begin_layout List
11324 \labelwidthstring 00.00.0000
11325
11326 \family sans
11327 p
11328 \family default
11329  
11330 \family typewriter
11331 primary-selection-paste paragraph
11332 \end_layout
11333
11334 \end_deeper
11335 \begin_layout Subsection
11336 Insert
11337 \end_layout
11338
11339 \begin_layout List
11340 \labelwidthstring 00.00.0000
11341
11342 \family sans
11343 M-i\InsetSpace ~
11344 a
11345 \family default
11346  
11347 \family typewriter
11348 insert_floats
11349 \family default
11350  submenu
11351 \end_layout
11352
11353 \begin_deeper
11354 \begin_layout List
11355 \labelwidthstring 00.00.0000
11356
11357 \family sans
11358 a
11359 \family default
11360  
11361 \family typewriter
11362 buffer-float-insert algorithm
11363 \end_layout
11364
11365 \begin_layout List
11366 \labelwidthstring 00.00.0000
11367
11368 \family sans
11369 d
11370 \family default
11371  
11372 \family typewriter
11373 buffer-float-insert wide-tab
11374 \end_layout
11375
11376 \begin_layout List
11377 \labelwidthstring 00.00.0000
11378
11379 \family sans
11380 f
11381 \family default
11382  
11383 \family typewriter
11384 buffer-float-insert figure
11385 \end_layout
11386
11387 \begin_layout List
11388 \labelwidthstring 00.00.0000
11389
11390 \family sans
11391 t
11392 \family default
11393  
11394 \family typewriter
11395 buffer-float-insert table
11396 \end_layout
11397
11398 \begin_layout List
11399 \labelwidthstring 00.00.0000
11400
11401 \family sans
11402 w
11403 \family default
11404  
11405 \family typewriter
11406 buffer-float-insert wide-fig
11407 \end_layout
11408
11409 \end_deeper
11410 \begin_layout List
11411 \labelwidthstring 00.00.0000
11412
11413 \family sans
11414 M-i\InsetSpace ~
11415 b
11416 \family default
11417  
11418 \family typewriter
11419 dialog-tabular-insert
11420 \end_layout
11421
11422 \begin_layout List
11423 \labelwidthstring 00.00.0000
11424
11425 \family sans
11426 M-i\InsetSpace ~
11427 c
11428 \family default
11429  
11430 \family typewriter
11431 citation-insert
11432 \end_layout
11433
11434 \begin_layout List
11435 \labelwidthstring 00.00.0000
11436
11437 \family sans
11438 M-i\InsetSpace ~
11439 d
11440 \family default
11441  
11442 \family typewriter
11443 math-display
11444 \end_layout
11445
11446 \begin_layout List
11447 \labelwidthstring 00.00.0000
11448
11449 \family sans
11450 M-i\InsetSpace ~
11451 e
11452 \family default
11453  
11454 \family typewriter
11455 buffer-child-insert
11456 \end_layout
11457
11458 \begin_layout List
11459 \labelwidthstring 00.00.0000
11460
11461 \family sans
11462 M-i\InsetSpace ~
11463 f
11464 \family default
11465  
11466 \family typewriter
11467 footnote-insert
11468 \end_layout
11469
11470 \begin_layout List
11471 \labelwidthstring 00.00.0000
11472
11473 \family sans
11474 M-i\InsetSpace ~
11475 g
11476 \family default
11477  
11478 \family typewriter
11479 figure-insert
11480 \end_layout
11481
11482 \begin_layout List
11483 \labelwidthstring 00.00.0000
11484
11485 \family sans
11486 M-i\InsetSpace ~
11487 h
11488 \family default
11489  
11490 \family typewriter
11491 math-mode
11492 \end_layout
11493
11494 \begin_layout List
11495 \labelwidthstring 00.00.0000
11496
11497 \family sans
11498 M-i\InsetSpace ~
11499 i
11500 \family default
11501  
11502 \family typewriter
11503 index-insert
11504 \end_layout
11505
11506 \begin_layout List
11507 \labelwidthstring 00.00.0000
11508
11509 \family sans
11510 M-i\InsetSpace ~
11511 l
11512 \family default
11513  
11514 \family typewriter
11515 label-insert
11516 \end_layout
11517
11518 \begin_layout List
11519 \labelwidthstring 00.00.0000
11520
11521 \family sans
11522 M-i\InsetSpace ~
11523 m
11524 \family default
11525  
11526 \family typewriter
11527 marginpar-insert
11528 \end_layout
11529
11530 \begin_layout List
11531 \labelwidthstring 00.00.0000
11532
11533 \family sans
11534 M-i\InsetSpace ~
11535 n
11536 \family default
11537  
11538 \family typewriter
11539 note-insert
11540 \end_layout
11541
11542 \begin_layout List
11543 \labelwidthstring 00.00.0000
11544
11545 \family sans
11546 M-i\InsetSpace ~
11547 o
11548 \family default
11549  
11550 \family typewriter
11551 insert_toc
11552 \family default
11553  submenu
11554 \end_layout
11555
11556 \begin_deeper
11557 \begin_layout List
11558 \labelwidthstring 00.00.0000
11559
11560 \family sans
11561 a
11562 \family default
11563  
11564 \family typewriter
11565 loa-insert
11566 \end_layout
11567
11568 \begin_layout List
11569 \labelwidthstring 00.00.0000
11570
11571 \family sans
11572 b
11573 \family default
11574  
11575 \family typewriter
11576 bibtex-insert
11577 \end_layout
11578
11579 \begin_layout List
11580 \labelwidthstring 00.00.0000
11581
11582 \family sans
11583 c
11584 \family default
11585  
11586 \family typewriter
11587 toc-insert
11588 \end_layout
11589
11590 \begin_layout List
11591 \labelwidthstring 00.00.0000
11592
11593 \family sans
11594 f
11595 \family default
11596  
11597 \family typewriter
11598 lof-insert
11599 \end_layout
11600
11601 \begin_layout List
11602 \labelwidthstring 00.00.0000
11603
11604 \family sans
11605 i
11606 \family default
11607  
11608 \family typewriter
11609 index-print
11610 \end_layout
11611
11612 \begin_layout List
11613 \labelwidthstring 00.00.0000
11614
11615 \family sans
11616 t
11617 \family default
11618  
11619 \family typewriter
11620 lot-insert
11621 \end_layout
11622
11623 \end_deeper
11624 \begin_layout List
11625 \labelwidthstring 00.00.0000
11626
11627 \family sans
11628 M-i\InsetSpace ~
11629 r
11630 \family default
11631  
11632 \family typewriter
11633 reference-insert
11634 \end_layout
11635
11636 \begin_layout List
11637 \labelwidthstring 00.00.0000
11638
11639 \family sans
11640 M-i\InsetSpace ~
11641 s
11642 \family default
11643  
11644 \family typewriter
11645 insert_special
11646 \family default
11647  submenu
11648 \end_layout
11649
11650 \begin_deeper
11651 \begin_layout List
11652 \labelwidthstring 00.00.0000
11653
11654 \family sans
11655 b
11656 \family default
11657  
11658 \family typewriter
11659 protected-space-insert
11660 \end_layout
11661
11662 \begin_layout List
11663 \labelwidthstring 00.00.0000
11664
11665 \family sans
11666 e
11667 \family default
11668  
11669 \family typewriter
11670 end-of-sentence-period-insert
11671 \end_layout
11672
11673 \begin_layout List
11674 \labelwidthstring 00.00.0000
11675
11676 \family sans
11677 h
11678 \family default
11679  
11680 \family typewriter
11681 hfill-insert
11682 \end_layout
11683
11684 \begin_layout List
11685 \labelwidthstring 00.00.0000
11686
11687 \family sans
11688 i
11689 \family default
11690  
11691 \family typewriter
11692 dots-insert
11693 \end_layout
11694
11695 \begin_layout List
11696 \labelwidthstring 00.00.0000
11697
11698 \family sans
11699 l
11700 \family default
11701  
11702 \family typewriter
11703 break-line
11704 \end_layout
11705
11706 \begin_layout List
11707 \labelwidthstring 00.00.0000
11708
11709 \family sans
11710 m
11711 \family default
11712  
11713 \family typewriter
11714 menu-separator-insert
11715 \end_layout
11716
11717 \begin_layout List
11718 \labelwidthstring 00.00.0000
11719
11720 \family sans
11721 p
11722 \family default
11723  
11724 \family typewriter
11725 hyphenation-point-insert
11726 \end_layout
11727
11728 \begin_layout List
11729 \labelwidthstring 00.00.0000
11730
11731 \family sans
11732 q
11733 \family default
11734  
11735 \family typewriter
11736 quote-insert
11737 \end_layout
11738
11739 \begin_layout List
11740 \labelwidthstring 00.00.0000
11741
11742 \family sans
11743 s
11744 \family default
11745  
11746 \family typewriter
11747 command-sequence math-insert ^;math-mode;
11748 \end_layout
11749
11750 \begin_layout List
11751 \labelwidthstring 00.00.0000
11752
11753 \family sans
11754 u
11755 \family default
11756  
11757 \family typewriter
11758 command-sequence math-insert _;math-mode;
11759 \end_layout
11760
11761 \end_deeper
11762 \begin_layout List
11763 \labelwidthstring 00.00.0000
11764
11765 \family sans
11766 M-i\InsetSpace ~
11767 t
11768 \family default
11769  
11770 \family typewriter
11771 insert_file
11772 \family default
11773  submenu
11774 \end_layout
11775
11776 \begin_deeper
11777 \begin_layout List
11778 \labelwidthstring 00.00.0000
11779
11780 \family sans
11781 l
11782 \family default
11783  
11784 \family typewriter
11785 file-insert-plaintext lines
11786 \end_layout
11787
11788 \begin_layout List
11789 \labelwidthstring 00.00.0000
11790
11791 \family sans
11792 p
11793 \family default
11794  
11795 \family typewriter
11796 file-insert-plaintext paragraphs
11797 \end_layout
11798
11799 \begin_layout List
11800 \labelwidthstring 00.00.0000
11801
11802 \family sans
11803 x
11804 \family default
11805  
11806 \family typewriter
11807 file-insert
11808 \end_layout
11809
11810 \end_deeper
11811 \begin_layout List
11812 \labelwidthstring 00.00.0000
11813
11814 \family sans
11815 M-i\InsetSpace ~
11816 u
11817 \family default
11818  
11819 \family typewriter
11820 url-insert
11821 \end_layout
11822
11823 \begin_layout List
11824 \labelwidthstring 00.00.0000
11825
11826 \family sans
11827 M-i\InsetSpace ~
11828 w
11829 \family default
11830  
11831 \family typewriter
11832 index-insert-last
11833 \end_layout
11834
11835 \begin_layout List
11836 \labelwidthstring 00.00.0000
11837
11838 \family sans
11839 M-i\InsetSpace ~
11840 x
11841 \family default
11842  
11843 \family typewriter
11844 external-insert
11845 \end_layout
11846
11847 \begin_layout Subsection
11848 Layout
11849 \end_layout
11850
11851 \begin_layout List
11852 \labelwidthstring 00.00.0000
11853
11854 \family sans
11855 M-l\InsetSpace ~
11856 a
11857 \family default
11858  
11859 \family typewriter
11860 appendix
11861 \end_layout
11862
11863 \begin_layout List
11864 \labelwidthstring 00.00.0000
11865
11866 \family sans
11867 M-l\InsetSpace ~
11868 b
11869 \family default
11870  
11871 \family typewriter
11872 font-bold
11873 \end_layout
11874
11875 \begin_layout List
11876 \labelwidthstring 00.00.0000
11877
11878 \family sans
11879 M-l\InsetSpace ~
11880 c
11881 \family default
11882  
11883 \family typewriter
11884 layout-character
11885 \end_layout
11886
11887 \begin_layout List
11888 \labelwidthstring 00.00.0000
11889
11890 \family sans
11891 M-l\InsetSpace ~
11892 d
11893 \family default
11894  
11895 \family typewriter
11896 layout-document
11897 \end_layout
11898
11899 \begin_layout List
11900 \labelwidthstring 00.00.0000
11901
11902 \family sans
11903 M-l\InsetSpace ~
11904 e
11905 \family default
11906  
11907 \family typewriter
11908 font-emph
11909 \end_layout
11910
11911 \begin_layout List
11912 \labelwidthstring 00.00.0000
11913
11914 \family sans
11915 M-l\InsetSpace ~
11916 l
11917 \family default
11918  
11919 \family typewriter
11920 layout-preamble
11921 \end_layout
11922
11923 \begin_layout List
11924 \labelwidthstring 00.00.0000
11925
11926 \family sans
11927 M-l\InsetSpace ~
11928 n
11929 \family default
11930  
11931 \family typewriter
11932 font-noun
11933 \end_layout
11934
11935 \begin_layout List
11936 \labelwidthstring 00.00.0000
11937
11938 \family sans
11939 M-l\InsetSpace ~
11940 p
11941 \family default
11942  
11943 \family typewriter
11944 layout-paragraph
11945 \end_layout
11946
11947 \begin_layout List
11948 \labelwidthstring 00.00.0000
11949
11950 \family sans
11951 M-l\InsetSpace ~
11952 s
11953 \family default
11954  
11955 \family typewriter
11956 layout-save-default
11957 \end_layout
11958
11959 \begin_layout List
11960 \labelwidthstring 00.00.0000
11961
11962 \family sans
11963 M-l\InsetSpace ~
11964 t
11965 \family default
11966  
11967 \family typewriter
11968 layout-tabular
11969 \end_layout
11970
11971 \begin_layout List
11972 \labelwidthstring 00.00.0000
11973
11974 \family sans
11975 M-l\InsetSpace ~
11976 v
11977 \family default
11978  
11979 \family typewriter
11980 depth-increment
11981 \end_layout
11982
11983 \begin_layout List
11984 \labelwidthstring 00.00.0000
11985
11986 \family sans
11987 M-l\InsetSpace ~
11988 x
11989 \family default
11990  
11991 \family typewriter
11992 tex-mode
11993 \end_layout
11994
11995 \begin_layout Subsubsection
11996
11997 \family sans
11998 Layout\SpecialChar \menuseparator
11999 Character
12000 \family default
12001  
12002 \end_layout
12003
12004 \begin_layout List
12005 \labelwidthstring 00.00.0000
12006
12007 \family sans
12008 M-c\InsetSpace ~
12009 b
12010 \family default
12011  
12012 \family typewriter
12013 font-bold
12014 \end_layout
12015
12016 \begin_layout List
12017 \labelwidthstring 00.00.0000
12018
12019 \family sans
12020 M-c\InsetSpace ~
12021 c
12022 \family default
12023  
12024 \family typewriter
12025 font-noun
12026 \end_layout
12027
12028 \begin_layout List
12029 \labelwidthstring 00.00.0000
12030
12031 \family sans
12032 M-c\InsetSpace ~
12033 e
12034 \family default
12035  
12036 \family typewriter
12037 font-emph
12038 \end_layout
12039
12040 \begin_layout List
12041 \labelwidthstring 00.00.0000
12042
12043 \family sans
12044 M-c\InsetSpace ~
12045 m
12046 \family default
12047  
12048 \family typewriter
12049 math-mode
12050 \end_layout
12051
12052 \begin_layout List
12053 \labelwidthstring 00.00.0000
12054
12055 \family sans
12056 M-c\InsetSpace ~
12057 p
12058 \family default
12059  
12060 \family typewriter
12061 font-code
12062 \end_layout
12063
12064 \begin_layout List
12065 \labelwidthstring 00.00.0000
12066
12067 \family sans
12068 M-c\InsetSpace ~
12069 r
12070 \family default
12071  
12072 \family typewriter
12073 font-roman
12074 \end_layout
12075
12076 \begin_layout List
12077 \labelwidthstring 00.00.0000
12078
12079 \family sans
12080 M-c\InsetSpace ~
12081 s
12082 \family default
12083  
12084 \family typewriter
12085 font-sans
12086 \end_layout
12087
12088 \begin_layout List
12089 \labelwidthstring 00.00.0000
12090
12091 \family sans
12092 M-c\InsetSpace ~
12093 u
12094 \family default
12095  
12096 \family typewriter
12097 font-underline
12098 \end_layout
12099
12100 \begin_layout List
12101 \labelwidthstring 00.00.0000
12102
12103 \family sans
12104 M-c\InsetSpace ~
12105 space
12106 \family default
12107  
12108 \family typewriter
12109 font-default
12110 \end_layout
12111
12112 \begin_layout List
12113 \labelwidthstring 00.00.0000
12114
12115 \family sans
12116 M-c\InsetSpace ~
12117 Down
12118 \family default
12119  
12120 \family typewriter
12121 word-lowcase
12122 \end_layout
12123
12124 \begin_layout List
12125 \labelwidthstring 00.00.0000
12126
12127 \family sans
12128 M-c\InsetSpace ~
12129 Up
12130 \family default
12131  
12132 \family typewriter
12133 word-upcase
12134 \end_layout
12135
12136 \begin_layout List
12137 \labelwidthstring 00.00.0000
12138
12139 \family sans
12140 M-c\InsetSpace ~
12141 Right
12142 \family default
12143  
12144 \family typewriter
12145 word-capitalize
12146 \end_layout
12147
12148 \begin_layout List
12149 \labelwidthstring 00.00.0000
12150
12151 \family sans
12152 M-s\InsetSpace ~
12153 h
12154 \family default
12155  
12156 \family typewriter
12157 font-size huge
12158 \end_layout
12159
12160 \begin_layout List
12161 \labelwidthstring 00.00.0000
12162
12163 \family sans
12164 M-s\InsetSpace ~
12165 l
12166 \family default
12167  
12168 \family typewriter
12169 font-size large
12170 \end_layout
12171
12172 \begin_layout List
12173 \labelwidthstring 00.00.0000
12174
12175 \family sans
12176 M-s\InsetSpace ~
12177 n
12178 \family default
12179  
12180 \family typewriter
12181 font-size normal
12182 \end_layout
12183
12184 \begin_layout List
12185 \labelwidthstring 00.00.0000
12186
12187 \family sans
12188 M-s\InsetSpace ~
12189 s
12190 \family default
12191  
12192 \family typewriter
12193 font-size small
12194 \end_layout
12195
12196 \begin_layout List
12197 \labelwidthstring 00.00.0000
12198
12199 \family sans
12200 M-s\InsetSpace ~
12201 t
12202 \family default
12203  
12204 \family typewriter
12205 font-size tiny
12206 \end_layout
12207
12208 \begin_layout List
12209 \labelwidthstring 00.00.0000
12210
12211 \family sans
12212 M-s\InsetSpace ~
12213 0
12214 \family default
12215  
12216 \family typewriter
12217 font-size huger
12218 \end_layout
12219
12220 \begin_layout List
12221 \labelwidthstring 00.00.0000
12222
12223 \family sans
12224 M-s\InsetSpace ~
12225 1
12226 \family default
12227  
12228 \family typewriter
12229 font-size tiny
12230 \end_layout
12231
12232 \begin_layout List
12233 \labelwidthstring 00.00.0000
12234
12235 \family sans
12236 M-s\InsetSpace ~
12237 2
12238 \family default
12239  
12240 \family typewriter
12241 font-size smallest
12242 \end_layout
12243
12244 \begin_layout List
12245 \labelwidthstring 00.00.0000
12246
12247 \family sans
12248 M-s\InsetSpace ~
12249 3
12250 \family default
12251  
12252 \family typewriter
12253 font-size smaller
12254 \end_layout
12255
12256 \begin_layout List
12257 \labelwidthstring 00.00.0000
12258
12259 \family sans
12260 M-s\InsetSpace ~
12261 4
12262 \family default
12263  
12264 \family typewriter
12265 font-size small
12266 \end_layout
12267
12268 \begin_layout List
12269 \labelwidthstring 00.00.0000
12270
12271 \family sans
12272 M-s\InsetSpace ~
12273 5
12274 \family default
12275  
12276 \family typewriter
12277 font-size normal
12278 \end_layout
12279
12280 \begin_layout List
12281 \labelwidthstring 00.00.0000
12282
12283 \family sans
12284 M-s\InsetSpace ~
12285 6
12286 \family default
12287  
12288 \family typewriter
12289 font-size large
12290 \end_layout
12291
12292 \begin_layout List
12293 \labelwidthstring 00.00.0000
12294
12295 \family sans
12296 M-s\InsetSpace ~
12297 7
12298 \family default
12299  
12300 \family typewriter
12301 font-size larger
12302 \end_layout
12303
12304 \begin_layout List
12305 \labelwidthstring 00.00.0000
12306
12307 \family sans
12308 M-s\InsetSpace ~
12309 8
12310 \family default
12311  
12312 \family typewriter
12313 font-size largest
12314 \end_layout
12315
12316 \begin_layout List
12317 \labelwidthstring 00.00.0000
12318
12319 \family sans
12320 M-s\InsetSpace ~
12321 9
12322 \family default
12323  
12324 \family typewriter
12325 font-size huge
12326 \end_layout
12327
12328 \begin_layout List
12329 \labelwidthstring 00.00.0000
12330
12331 \family sans
12332 M-s\InsetSpace ~
12333 S-H
12334 \family default
12335  
12336 \family typewriter
12337 font-size huger
12338 \end_layout
12339
12340 \begin_layout List
12341 \labelwidthstring 00.00.0000
12342
12343 \family sans
12344 M-s\InsetSpace ~
12345 S-L
12346 \family default
12347  
12348 \family typewriter
12349 font-size larger
12350 \end_layout
12351
12352 \begin_layout List
12353 \labelwidthstring 00.00.0000
12354
12355 \family sans
12356 M-s\InsetSpace ~
12357 S-S
12358 \family default
12359  
12360 \family typewriter
12361 font-size smaller
12362 \end_layout
12363
12364 \begin_layout List
12365 \labelwidthstring 00.00.0000
12366
12367 \family sans
12368 M-s\InsetSpace ~
12369 plus
12370 \family default
12371  
12372 \family typewriter
12373 font-size increase
12374 \end_layout
12375
12376 \begin_layout List
12377 \labelwidthstring 00.00.0000
12378
12379 \family sans
12380 M-s\InsetSpace ~
12381 minus
12382 \family default
12383  
12384 \family typewriter
12385 font-size decrease
12386 \end_layout
12387
12388 \begin_layout Subsection
12389 View
12390 \end_layout
12391
12392 \begin_layout Subsection
12393 Navigate
12394 \end_layout
12395
12396 \begin_layout Subsection
12397 Help
12398 \end_layout
12399
12400 \begin_layout Subsection
12401 Paragraph Style
12402 \end_layout
12403
12404 \begin_layout List
12405 \labelwidthstring 00.00.0000
12406
12407 \family sans
12408 M-p\InsetSpace ~
12409 a
12410 \family default
12411  
12412 \family typewriter
12413 layout Abstract
12414 \end_layout
12415
12416 \begin_layout List
12417 \labelwidthstring 00.00.0000
12418
12419 \family sans
12420 M-p\InsetSpace ~
12421 b
12422 \family default
12423  
12424 \family typewriter
12425 layout Itemize
12426 \end_layout
12427
12428 \begin_layout List
12429 \labelwidthstring 00.00.0000
12430
12431 \family sans
12432 M-p\InsetSpace ~
12433 c
12434 \family default
12435  
12436 \family typewriter
12437 layout LyX-Code
12438 \end_layout
12439
12440 \begin_layout List
12441 \labelwidthstring 00.00.0000
12442
12443 \family sans
12444 M-p\InsetSpace ~
12445 d
12446 \family default
12447  
12448 \family typewriter
12449 layout Description
12450 \end_layout
12451
12452 \begin_layout List
12453 \labelwidthstring 00.00.0000
12454
12455 \family sans
12456 M-p\InsetSpace ~
12457 e
12458 \family default
12459  
12460 \family typewriter
12461 layout Enumerate
12462 \end_layout
12463
12464 \begin_layout List
12465 \labelwidthstring 00.00.0000
12466
12467 \family sans
12468 M-p\InsetSpace ~
12469 f
12470 \family default
12471  
12472 \family typewriter
12473 layout ShortFoilhead
12474 \end_layout
12475
12476 \begin_layout List
12477 \labelwidthstring 00.00.0000
12478
12479 \family sans
12480 M-p\InsetSpace ~
12481 i
12482 \family default
12483  
12484 \family typewriter
12485 layout Itemize
12486 \end_layout
12487
12488 \begin_layout List
12489 \labelwidthstring 00.00.0000
12490
12491 \family sans
12492 M-p\InsetSpace ~
12493 l
12494 \family default
12495  
12496 \family typewriter
12497 layout List
12498 \end_layout
12499
12500 \begin_layout List
12501 \labelwidthstring 00.00.0000
12502
12503 \family sans
12504 M-p\InsetSpace ~
12505 n
12506 \family default
12507  
12508 \family typewriter
12509 layout Enumerate
12510 \end_layout
12511
12512 \begin_layout List
12513 \labelwidthstring 00.00.0000
12514
12515 \family sans
12516 M-p\InsetSpace ~
12517 q
12518 \family default
12519  
12520 \family typewriter
12521 layout Quote
12522 \end_layout
12523
12524 \begin_layout List
12525 \labelwidthstring 00.00.0000
12526
12527 \family sans
12528 M-p\InsetSpace ~
12529 r
12530 \family default
12531  
12532 \family typewriter
12533 layout ShortRotatefoilhead
12534 \end_layout
12535
12536 \begin_layout List
12537 \labelwidthstring 00.00.0000
12538
12539 \family sans
12540 M-p\InsetSpace ~
12541 s
12542 \family default
12543  
12544 \family typewriter
12545 layout Standard
12546 \end_layout
12547
12548 \begin_layout List
12549 \labelwidthstring 00.00.0000
12550
12551 \family sans
12552 M-p\InsetSpace ~
12553 t
12554 \family default
12555  
12556 \family typewriter
12557 layout Title
12558 \end_layout
12559
12560 \begin_layout List
12561 \labelwidthstring 00.00.0000
12562
12563 \family sans
12564 M-p\InsetSpace ~
12565 v
12566 \family default
12567  
12568 \family typewriter
12569 layout Verse
12570 \end_layout
12571
12572 \begin_layout List
12573 \labelwidthstring 00.00.0000
12574
12575 \family sans
12576 M-p\InsetSpace ~
12577 space
12578 \family default
12579  
12580 \family typewriter
12581 drop-layouts-choice
12582 \end_layout
12583
12584 \begin_layout List
12585 \labelwidthstring 00.00.0000
12586
12587 \family sans
12588 M-p
12589 \noun on
12590 \InsetSpace ~
12591 0
12592 \family default
12593 \noun default
12594  
12595 \family typewriter
12596 layout Part
12597 \end_layout
12598
12599 \begin_layout List
12600 \labelwidthstring 00.00.0000
12601
12602 \family sans
12603 M-p
12604 \noun on
12605 \InsetSpace ~
12606 1
12607 \family default
12608 \noun default
12609  
12610 \family typewriter
12611 layout Chapter
12612 \end_layout
12613
12614 \begin_layout List
12615 \labelwidthstring 00.00.0000
12616
12617 \family sans
12618 M-p\InsetSpace ~
12619 2
12620 \family default
12621  
12622 \family typewriter
12623 layout Section
12624 \end_layout
12625
12626 \begin_layout List
12627 \labelwidthstring 00.00.0000
12628
12629 \family sans
12630 M-p\InsetSpace ~
12631 3
12632 \family default
12633  
12634 \family typewriter
12635 layout Subsection
12636 \end_layout
12637
12638 \begin_layout List
12639 \labelwidthstring 00.00.0000
12640
12641 \family sans
12642 M-p\InsetSpace ~
12643 4
12644 \family default
12645  
12646 \family typewriter
12647 layout Subsubsection
12648 \end_layout
12649
12650 \begin_layout List
12651 \labelwidthstring 00.00.0000
12652
12653 \family sans
12654 M-p\InsetSpace ~
12655 5
12656 \family default
12657  
12658 \family typewriter
12659 layout Paragraph
12660 \end_layout
12661
12662 \begin_layout List
12663 \labelwidthstring 00.00.0000
12664
12665 \family sans
12666 M-p\InsetSpace ~
12667 6
12668 \family default
12669  
12670 \family typewriter
12671 layout Subparagraph
12672 \end_layout
12673
12674 \begin_layout List
12675 \labelwidthstring 00.00.0000
12676
12677 \family sans
12678 M-p\InsetSpace ~
12679 asterisk\InsetSpace ~
12680 0
12681 \family default
12682  
12683 \family typewriter
12684 layout Part*
12685 \end_layout
12686
12687 \begin_layout List
12688 \labelwidthstring 00.00.0000
12689
12690 \family sans
12691 M-p\InsetSpace ~
12692 asterisk\InsetSpace ~
12693 1
12694 \family default
12695  
12696 \family typewriter
12697 layout Chapter*
12698 \end_layout
12699
12700 \begin_layout List
12701 \labelwidthstring 00.00.0000
12702
12703 \family sans
12704 M-p\InsetSpace ~
12705 asterisk\InsetSpace ~
12706 2
12707 \family default
12708  
12709 \family typewriter
12710 layout Section*
12711 \end_layout
12712
12713 \begin_layout List
12714 \labelwidthstring 00.00.0000
12715
12716 \family sans
12717 M-p\InsetSpace ~
12718 asterisk\InsetSpace ~
12719 3
12720 \family default
12721  
12722 \family typewriter
12723 layout Subsection*
12724 \end_layout
12725
12726 \begin_layout List
12727 \labelwidthstring 00.00.0000
12728
12729 \family sans
12730 M-p\InsetSpace ~
12731 asterisk\InsetSpace ~
12732 4
12733 \family default
12734  
12735 \family typewriter
12736 layout Subsubsection*
12737 \end_layout
12738
12739 \begin_layout List
12740 \labelwidthstring 00.00.0000
12741
12742 \family sans
12743 M-p\InsetSpace ~
12744 asterisk\InsetSpace ~
12745 5
12746 \family default
12747  
12748 \family typewriter
12749 layout Paragraph*
12750 \end_layout
12751
12752 \begin_layout List
12753 \labelwidthstring 00.00.0000
12754
12755 \family sans
12756 M-p\InsetSpace ~
12757 asterisk\InsetSpace ~
12758 6
12759 \family default
12760  
12761 \family typewriter
12762 layout Subparagraph*
12763 \end_layout
12764
12765 \begin_layout List
12766 \labelwidthstring 00.00.0000
12767
12768 \family sans
12769 M-p\InsetSpace ~
12770 S-A
12771 \family default
12772  
12773 \family typewriter
12774 layout Author
12775 \end_layout
12776
12777 \begin_layout List
12778 \labelwidthstring 00.00.0000
12779
12780 \family sans
12781 M-p\InsetSpace ~
12782 S-B
12783 \family default
12784  
12785 \family typewriter
12786 layout Bibliography
12787 \end_layout
12788
12789 \begin_layout List
12790 \labelwidthstring 00.00.0000
12791
12792 \family sans
12793 M-p\InsetSpace ~
12794 S-C
12795 \family default
12796  
12797 \family typewriter
12798 layout Comment
12799 \end_layout
12800
12801 \begin_layout List
12802 \labelwidthstring 00.00.0000
12803
12804 \family sans
12805 M-p\InsetSpace ~
12806 S-D
12807 \family default
12808  
12809 \family typewriter
12810 layout Date
12811 \end_layout
12812
12813 \begin_layout List
12814 \labelwidthstring 00.00.0000
12815
12816 \family sans
12817 M-p\InsetSpace ~
12818 S-F
12819 \family default
12820  
12821 \family typewriter
12822 layout Foilhead
12823 \end_layout
12824
12825 \begin_layout List
12826 \labelwidthstring 00.00.0000
12827
12828 \family sans
12829 M-p\InsetSpace ~
12830 S-L
12831 \family default
12832  
12833 \family typewriter
12834 layout LaTeX
12835 \end_layout
12836
12837 \begin_layout List
12838 \labelwidthstring 00.00.0000
12839
12840 \family sans
12841 M-p\InsetSpace ~
12842 S-Q
12843 \family default
12844  
12845 \family typewriter
12846 layout Quotation
12847 \end_layout
12848
12849 \begin_layout List
12850 \labelwidthstring 00.00.0000
12851
12852 \family sans
12853 M-p\InsetSpace ~
12854 S-R
12855 \family default
12856  
12857 \family typewriter
12858 layout Rotatefoilhead
12859 \end_layout
12860
12861 \begin_layout List
12862 \labelwidthstring 00.00.0000
12863
12864 \family sans
12865 M-p\InsetSpace ~
12866 C-a
12867 \family default
12868  
12869 \family typewriter
12870 layout RightAddress
12871 \end_layout
12872
12873 \begin_layout List
12874 \labelwidthstring 00.00.0000
12875
12876 \family sans
12877 M-p\InsetSpace ~
12878 M-a
12879 \family default
12880  
12881 \family typewriter
12882 layout Address
12883 \end_layout
12884
12885 \begin_layout List
12886 \labelwidthstring 00.00.0000
12887
12888 \family sans
12889 M-p\InsetSpace ~
12890 M-c
12891 \family default
12892  
12893 \family typewriter
12894 layout Caption
12895 \end_layout
12896
12897 \begin_layout List
12898 \labelwidthstring 00.00.0000
12899
12900 \family sans
12901 M-p\InsetSpace ~
12902 Left
12903 \family default
12904  
12905 \family typewriter
12906 depth-decrement
12907 \end_layout
12908
12909 \begin_layout List
12910 \labelwidthstring 00.00.0000
12911
12912 \family sans
12913 M-p\InsetSpace ~
12914 Right
12915 \family default
12916  
12917 \family typewriter
12918 depth-increment
12919 \end_layout
12920
12921 \begin_layout Standard
12922 These ones are kept for backwards compatibility, but only make sense on
12923  a qwerty keyboard:
12924 \end_layout
12925
12926 \begin_layout List
12927 \labelwidthstring 00.00.0000
12928
12929 \family sans
12930 M-p\InsetSpace ~
12931 S-at
12932 \family default
12933  
12934 \family typewriter
12935 layout Section*
12936 \end_layout
12937
12938 \begin_layout List
12939 \labelwidthstring 00.00.0000
12940
12941 \family sans
12942 M-p\InsetSpace ~
12943 S-dollar
12944 \family default
12945  
12946 \family typewriter
12947 layout Subsubsection*
12948 \end_layout
12949
12950 \begin_layout List
12951 \labelwidthstring 00.00.0000
12952
12953 \family sans
12954 M-p\InsetSpace ~
12955 S-numbersign
12956 \family default
12957  
12958 \family typewriter
12959 layout Subsection*
12960 \end_layout
12961
12962 \begin_layout Section
12963 Keyboard
12964 \end_layout
12965
12966 \begin_layout Subsection
12967 Specific to 
12968 \family typewriter
12969 emacs.bind
12970 \end_layout
12971
12972 \begin_layout List
12973 \labelwidthstring 00.00.0000
12974
12975 \family sans
12976 C-a
12977 \family default
12978  
12979 \family typewriter
12980 line-begin
12981 \end_layout
12982
12983 \begin_layout List
12984 \labelwidthstring 00.00.0000
12985
12986 \family sans
12987 C-b
12988 \family default
12989  
12990 \family typewriter
12991 char-backward
12992 \end_layout
12993
12994 \begin_layout List
12995 \labelwidthstring 00.00.0000
12996
12997 \family sans
12998 C-d
12999 \family default
13000  
13001 \family typewriter
13002 delete-forward
13003 \end_layout
13004
13005 \begin_layout List
13006 \labelwidthstring 00.00.0000
13007
13008 \family sans
13009 C-e
13010 \family default
13011  
13012 \family typewriter
13013 line-end
13014 \end_layout
13015
13016 \begin_layout List
13017 \labelwidthstring 00.00.0000
13018
13019 \family sans
13020 C-f
13021 \family default
13022  
13023 \family typewriter
13024 char-forward
13025 \end_layout
13026
13027 \begin_layout List
13028 \labelwidthstring 00.00.0000
13029
13030 \family sans
13031 C-g
13032 \family default
13033  
13034 \family typewriter
13035 cancel
13036 \end_layout
13037
13038 \begin_layout List
13039 \labelwidthstring 00.00.0000
13040
13041 \family sans
13042 C-h
13043 \family default
13044  
13045 \family typewriter
13046 hyphenation-point-insert
13047 \end_layout
13048
13049 \begin_layout List
13050 \labelwidthstring 00.00.0000
13051
13052 \family sans
13053 C-i
13054 \family default
13055  
13056 \family typewriter
13057 hfill-insert
13058 \end_layout
13059
13060 \begin_layout List
13061 \labelwidthstring 00.00.0000
13062
13063 \family sans
13064 C-k
13065 \family default
13066  
13067 \family typewriter
13068 line-delete-forward
13069 \end_layout
13070
13071 \begin_layout List
13072 \labelwidthstring 00.00.0000
13073
13074 \family sans
13075 C-l
13076 \family default
13077  
13078 \family typewriter
13079 screen-recenter
13080 \end_layout
13081
13082 \begin_layout List
13083 \labelwidthstring 00.00.0000
13084
13085 \family sans
13086 C-m
13087 \family default
13088  
13089 \family typewriter
13090 mark-toggle
13091 \end_layout
13092
13093 \begin_layout List
13094 \labelwidthstring 00.00.0000
13095
13096 \family sans
13097 C-n
13098 \family default
13099  
13100 \family typewriter
13101 down
13102 \end_layout
13103
13104 \begin_layout List
13105 \labelwidthstring 00.00.0000
13106
13107 \family sans
13108 C-o
13109 \family default
13110  
13111 \family typewriter
13112 open-stuff
13113 \end_layout
13114
13115 \begin_layout List
13116 \labelwidthstring 00.00.0000
13117
13118 \family sans
13119 C-p
13120 \family default
13121  
13122 \family typewriter
13123 up
13124 \end_layout
13125
13126 \begin_layout List
13127 \labelwidthstring 00.00.0000
13128
13129 \family sans
13130 C-q
13131 \family default
13132  
13133 \family typewriter
13134 quote-insert 
13135 \end_layout
13136
13137 \begin_layout List
13138 \labelwidthstring 00.00.0000
13139
13140 \family sans
13141 C-s
13142 \family default
13143  
13144 \family typewriter
13145 find-replace
13146 \end_layout
13147
13148 \begin_layout List
13149 \labelwidthstring 00.00.0000
13150
13151 \family sans
13152 C-u
13153 \family default
13154  
13155 \family typewriter
13156 font-underline 
13157 \end_layout
13158
13159 \begin_layout List
13160 \labelwidthstring 00.00.0000
13161
13162 \family sans
13163 C-v
13164 \family default
13165  
13166 \family typewriter
13167 screen-down 
13168 \end_layout
13169
13170 \begin_layout List
13171 \labelwidthstring 00.00.0000
13172
13173 \family sans
13174 C-w
13175 \family default
13176  
13177 \family typewriter
13178 cut
13179 \end_layout
13180
13181 \begin_layout List
13182 \labelwidthstring 00.00.0000
13183
13184 \family sans
13185 C-y
13186 \family default
13187  
13188 \family typewriter
13189 paste
13190 \end_layout
13191
13192 \begin_layout List
13193 \labelwidthstring 00.00.0000
13194
13195 \family sans
13196 C-S-Y
13197 \family default
13198  
13199 \family typewriter
13200 layout-paste
13201 \end_layout
13202
13203 \begin_layout List
13204 \labelwidthstring 00.00.0000
13205
13206 \family sans
13207 C-x\InsetSpace ~
13208 a
13209 \family default
13210  
13211 \family typewriter
13212 buffer-auto-save
13213 \end_layout
13214
13215 \begin_layout List
13216 \labelwidthstring 00.00.0000
13217
13218 \family sans
13219 C-x\InsetSpace ~
13220 b
13221 \family default
13222  
13223 \family typewriter
13224 buffer-previous
13225 \end_layout
13226
13227 \begin_layout List
13228 \labelwidthstring 00.00.0000
13229
13230 \family sans
13231 C-x\InsetSpace ~
13232 c
13233 \family default
13234  
13235 \family typewriter
13236 lyx-quit
13237 \end_layout
13238
13239 \begin_layout List
13240 \labelwidthstring 00.00.0000
13241
13242 \family sans
13243 C-x\InsetSpace ~
13244 d
13245 \family default
13246  
13247 \family typewriter
13248 buffer-new
13249 \end_layout
13250
13251 \begin_layout List
13252 \labelwidthstring 00.00.0000
13253
13254 \family sans
13255 ?\InsetSpace ~
13256 C-x\InsetSpace ~
13257 f
13258 \family default
13259  
13260 \family typewriter
13261 buffer-open
13262 \end_layout
13263
13264 \begin_layout List
13265 \labelwidthstring 00.00.0000
13266
13267 \family sans
13268 C-x\InsetSpace ~
13269 g
13270 \family default
13271  
13272 \family typewriter
13273 buffer-view-ps
13274 \end_layout
13275
13276 \begin_layout List
13277 \labelwidthstring 00.00.0000
13278
13279 \family sans
13280 C-x\InsetSpace ~
13281 k
13282 \family default
13283  
13284 \family typewriter
13285 buffer-close
13286 \end_layout
13287
13288 \begin_layout List
13289 \labelwidthstring 00.00.0000
13290
13291 \family sans
13292 C-x\InsetSpace ~
13293 p
13294 \family default
13295  
13296 \family typewriter
13297 buffer-view
13298 \end_layout
13299
13300 \begin_layout List
13301 \labelwidthstring 00.00.0000
13302
13303 \family sans
13304 C-x\InsetSpace ~
13305 r
13306 \family default
13307  
13308 \family typewriter
13309 buffer-typeset
13310 \end_layout
13311
13312 \begin_layout List
13313 \labelwidthstring 00.00.0000
13314
13315 \family sans
13316 ?\InsetSpace ~
13317 C-x\InsetSpace ~
13318 s
13319 \family default
13320  
13321 \family typewriter
13322 buffer-write
13323 \end_layout
13324
13325 \begin_layout List
13326 \labelwidthstring 00.00.0000
13327
13328 \family sans
13329 C-x\InsetSpace ~
13330 t
13331 \family default
13332  
13333 \family typewriter
13334 buffer-typeset
13335 \end_layout
13336
13337 \begin_layout List
13338 \labelwidthstring 00.00.0000
13339
13340 \family sans
13341 C-x\InsetSpace ~
13342 u
13343 \family default
13344  
13345 \family typewriter
13346 undo
13347 \end_layout
13348
13349 \begin_layout List
13350 \labelwidthstring 00.00.0000
13351
13352 \family sans
13353 C-x\InsetSpace ~
13354 v\InsetSpace ~
13355 c
13356 \family default
13357  
13358 \family typewriter
13359 vc-undo-last
13360 \end_layout
13361
13362 \begin_layout List
13363 \labelwidthstring 00.00.0000
13364
13365 \family sans
13366 C-x\InsetSpace ~
13367 v\InsetSpace ~
13368 h
13369 \family default
13370  
13371 \family typewriter
13372 vc-history
13373 \end_layout
13374
13375 \begin_layout List
13376 \labelwidthstring 00.00.0000
13377
13378 \family sans
13379 C-x\InsetSpace ~
13380 v\InsetSpace ~
13381 i
13382 \family default
13383  
13384 \family typewriter
13385 vc-register
13386 \end_layout
13387
13388 \begin_layout List
13389 \labelwidthstring 00.00.0000
13390
13391 \family sans
13392 C-x\InsetSpace ~
13393 v\InsetSpace ~
13394 u
13395 \family default
13396  
13397 \family typewriter
13398 vc-revert
13399 \end_layout
13400
13401 \begin_layout List
13402 \labelwidthstring 00.00.0000
13403
13404 \family sans
13405 C-x\InsetSpace ~
13406 v\InsetSpace ~
13407 v
13408 \family default
13409  
13410 \family typewriter
13411 vc-check-in
13412 \end_layout
13413
13414 \begin_layout List
13415 \labelwidthstring 00.00.0000
13416
13417 \family sans
13418 ?\InsetSpace ~
13419 C-x\InsetSpace ~
13420 w
13421 \family default
13422  
13423 \family typewriter
13424 buffer-write-as
13425 \end_layout
13426
13427 \begin_layout List
13428 \labelwidthstring 00.00.0000
13429
13430 \family sans
13431 C-x\InsetSpace ~
13432 bracketleft
13433 \family default
13434  
13435 \family typewriter
13436 screen-up
13437 \end_layout
13438
13439 \begin_layout List
13440 \labelwidthstring 00.00.0000
13441
13442 \family sans
13443 C-x\InsetSpace ~
13444 bracketright
13445 \family default
13446  
13447 \family typewriter
13448 screen-down
13449 \end_layout
13450
13451 \begin_layout List
13452 \labelwidthstring 00.00.0000
13453
13454 \family sans
13455 C-x\InsetSpace ~
13456 C-a
13457 \family default
13458  
13459 \family typewriter
13460 buffer-auto-save
13461 \end_layout
13462
13463 \begin_layout List
13464 \labelwidthstring 00.00.0000
13465
13466 \family sans
13467 C-x\InsetSpace ~
13468 C-b
13469 \family default
13470  
13471 \family typewriter
13472 menu-open Documents
13473 \end_layout
13474
13475 \begin_layout List
13476 \labelwidthstring 00.00.0000
13477
13478 \family sans
13479 C-x\InsetSpace ~
13480 C-c
13481 \family default
13482  
13483 \family typewriter
13484 lyx-quit
13485 \end_layout
13486
13487 \begin_layout List
13488 \labelwidthstring 00.00.0000
13489
13490 \family sans
13491 C-x\InsetSpace ~
13492 C-d
13493 \family default
13494  
13495 \family typewriter
13496 buffer-new
13497 \end_layout
13498
13499 \begin_layout List
13500 \labelwidthstring 00.00.0000
13501
13502 \family sans
13503 C-x\InsetSpace ~
13504 C-f
13505 \family default
13506  
13507 \family typewriter
13508 buffer-open
13509 \end_layout
13510
13511 \begin_layout List
13512 \labelwidthstring 00.00.0000
13513
13514 \family sans
13515 C-x\InsetSpace ~
13516 C-g
13517 \family default
13518  
13519 \family typewriter
13520 buffer-view-ps
13521 \end_layout
13522
13523 \begin_layout List
13524 \labelwidthstring 00.00.0000
13525
13526 \family sans
13527 C-x\InsetSpace ~
13528 C-p
13529 \family default
13530  
13531 \family typewriter
13532 buffer-view
13533 \end_layout
13534
13535 \begin_layout List
13536 \labelwidthstring 00.00.0000
13537
13538 \family sans
13539 C-x\InsetSpace ~
13540 C-q
13541 \family default
13542  
13543 \family typewriter
13544 buffer-toggle-read-only
13545 \end_layout
13546
13547 \begin_layout List
13548 \labelwidthstring 00.00.0000
13549
13550 \family sans
13551 C-x\InsetSpace ~
13552 C-s
13553 \family default
13554  
13555 \family typewriter
13556 buffer-write
13557 \end_layout
13558
13559 \begin_layout List
13560 \labelwidthstring 00.00.0000
13561
13562 \family sans
13563 C-x\InsetSpace ~
13564 C-t
13565 \family default
13566  
13567 \family typewriter
13568 buffer-typeset
13569 \end_layout
13570
13571 \begin_layout List
13572 \labelwidthstring 00.00.0000
13573
13574 \family sans
13575 C-x\InsetSpace ~
13576 C-w
13577 \family default
13578  
13579 \family typewriter
13580 buffer-write-as
13581 \end_layout
13582
13583 \begin_layout List
13584 \labelwidthstring 00.00.0000
13585
13586 \family sans
13587 Home
13588 \family default
13589  
13590 \family typewriter
13591 buffer-begin
13592 \end_layout
13593
13594 \begin_layout List
13595 \labelwidthstring 00.00.0000
13596
13597 \family sans
13598 End
13599 \family default
13600  
13601 \family typewriter
13602 buffer-end
13603 \end_layout
13604
13605 \begin_layout List
13606 \labelwidthstring 00.00.0000
13607
13608 \family sans
13609 S-Home
13610 \family default
13611  
13612 \family typewriter
13613 line-begin-select
13614 \end_layout
13615
13616 \begin_layout List
13617 \labelwidthstring 00.00.0000
13618
13619 \family sans
13620 S-End
13621 \family default
13622  
13623 \family typewriter
13624 line-end-select
13625 \end_layout
13626
13627 \begin_layout List
13628 \labelwidthstring 00.00.0000
13629
13630 \family sans
13631 S-Up
13632 \family default
13633  
13634 \family typewriter
13635 up-select
13636 \end_layout
13637
13638 \begin_layout List
13639 \labelwidthstring 00.00.0000
13640
13641 \family sans
13642 S-Down
13643 \family default
13644  
13645 \family typewriter
13646 down-select
13647 \end_layout
13648
13649 \begin_layout List
13650 \labelwidthstring 00.00.0000
13651
13652 \family sans
13653 S-Next
13654 \family default
13655  
13656 \family typewriter
13657 screen-down-select
13658 \end_layout
13659
13660 \begin_layout List
13661 \labelwidthstring 00.00.0000
13662
13663 \family sans
13664 S-Prior
13665 \family default
13666  
13667 \family typewriter
13668 screen-up-select
13669 \end_layout
13670
13671 \begin_layout List
13672 \labelwidthstring 00.00.0000
13673
13674 \family sans
13675 S-Left
13676 \family default
13677  
13678 \family typewriter
13679 backward-select
13680 \end_layout
13681
13682 \begin_layout List
13683 \labelwidthstring 00.00.0000
13684
13685 \family sans
13686 S-Right
13687 \family default
13688  
13689 \family typewriter
13690 forward-select
13691 \end_layout
13692
13693 \begin_layout List
13694 \labelwidthstring 00.00.0000
13695
13696 \family sans
13697 C-Up
13698 \family default
13699  
13700 \family typewriter
13701 paragraph-up
13702 \end_layout
13703
13704 \begin_layout List
13705 \labelwidthstring 00.00.0000
13706
13707 \family sans
13708 C-Down
13709 \family default
13710  
13711 \family typewriter
13712 paragraph-down
13713 \end_layout
13714
13715 \begin_layout List
13716 \labelwidthstring 00.00.0000
13717
13718 \family sans
13719 C-Left
13720 \family default
13721  
13722 \family typewriter
13723 word-backward
13724 \end_layout
13725
13726 \begin_layout List
13727 \labelwidthstring 00.00.0000
13728
13729 \family sans
13730 C-Right
13731 \family default
13732  
13733 \family typewriter
13734 word-forward
13735 \end_layout
13736
13737 \begin_layout List
13738 \labelwidthstring 00.00.0000
13739
13740 \family sans
13741 C-Delete
13742 \family default
13743  
13744 \family typewriter
13745 word-delete-forward
13746 \end_layout
13747
13748 \begin_layout List
13749 \labelwidthstring 00.00.0000
13750
13751 \family sans
13752 C-BackSpace
13753 \family default
13754  
13755 \family typewriter
13756 word-delete-backward
13757 \end_layout
13758
13759 \begin_layout List
13760 \labelwidthstring 00.00.0000
13761
13762 \family sans
13763 C-Return
13764 \family default
13765  
13766 \family typewriter
13767 break-line
13768 \end_layout
13769
13770 \begin_layout List
13771 \labelwidthstring 00.00.0000
13772
13773 \family sans
13774 C-period
13775 \family default
13776  
13777 \family typewriter
13778 end-of-sentence-period-insert
13779 \end_layout
13780
13781 \begin_layout List
13782 \labelwidthstring 00.00.0000
13783
13784 \family sans
13785 C-space
13786 \family default
13787  
13788 \family typewriter
13789 protected-space-insert
13790 \end_layout
13791
13792 \begin_layout List
13793 \labelwidthstring 00.00.0000
13794
13795 \family sans
13796 C-S-at
13797 \family default
13798  
13799 \family typewriter
13800 mark-on
13801 \end_layout
13802
13803 \begin_layout List
13804 \labelwidthstring 00.00.0000
13805
13806 \family sans
13807 C-S-greater
13808 \family default
13809  
13810 \family typewriter
13811 label-goto
13812 \end_layout
13813
13814 \begin_layout List
13815 \labelwidthstring 00.00.0000
13816
13817 \family sans
13818 C-S-less
13819 \family default
13820  
13821 \family typewriter
13822 reference-back
13823 \end_layout
13824
13825 \begin_layout List
13826 \labelwidthstring 00.00.0000
13827
13828 \family sans
13829 C-S-slash
13830 \family default
13831  
13832 \family typewriter
13833 undo
13834 \end_layout
13835
13836 \begin_layout List
13837 \labelwidthstring 00.00.0000
13838
13839 \family sans
13840 C-S-underscore
13841 \family default
13842  
13843 \family typewriter
13844 undo
13845 \end_layout
13846
13847 \begin_layout List
13848 \labelwidthstring 00.00.0000
13849
13850 \family sans
13851 C-S-quotedbl
13852 \family default
13853  
13854 \family typewriter
13855 quote-insert
13856 \end_layout
13857
13858 \begin_layout List
13859 \labelwidthstring 00.00.0000
13860
13861 \family sans
13862 C-S-Home
13863 \family default
13864  
13865 \family typewriter
13866 buffer-begin-select
13867 \end_layout
13868
13869 \begin_layout List
13870 \labelwidthstring 00.00.0000
13871
13872 \family sans
13873 C-S-End
13874 \family default
13875  
13876 \family typewriter
13877 buffer-end-select
13878 \end_layout
13879
13880 \begin_layout List
13881 \labelwidthstring 00.00.0000
13882
13883 \family sans
13884 C-S-Up
13885 \family default
13886  
13887 \family typewriter
13888 paragraph-up-select
13889 \end_layout
13890
13891 \begin_layout List
13892 \labelwidthstring 00.00.0000
13893
13894 \family sans
13895 C-S-Down
13896 \family default
13897  
13898 \family typewriter
13899 paragraph-down-select
13900 \end_layout
13901
13902 \begin_layout List
13903 \labelwidthstring 00.00.0000
13904
13905 \family sans
13906 C-S-Left
13907 \family default
13908  
13909 \family typewriter
13910 word-backward-select
13911 \end_layout
13912
13913 \begin_layout List
13914 \labelwidthstring 00.00.0000
13915
13916 \family sans
13917 C-S-Right
13918 \family default
13919  
13920 \family typewriter
13921 word-forward-select
13922 \end_layout
13923
13924 \begin_layout List
13925 \labelwidthstring 00.00.0000
13926
13927 \family sans
13928 Escape
13929 \family default
13930  
13931 \family typewriter
13932 meta-prefix
13933 \end_layout
13934
13935 \begin_layout List
13936 \labelwidthstring 00.00.0000
13937
13938 \family sans
13939 M-d
13940 \family default
13941  
13942 \family typewriter
13943 word-delete-forward
13944 \end_layout
13945
13946 \begin_layout List
13947 \labelwidthstring 00.00.0000
13948
13949 \family sans
13950 M-w
13951 \family default
13952  
13953 \family typewriter
13954 copy
13955 \end_layout
13956
13957 \begin_layout List
13958 \labelwidthstring 00.00.0000
13959
13960 \family sans
13961 M-x
13962 \family default
13963  
13964 \family typewriter
13965 command-execute
13966 \end_layout
13967
13968 \begin_layout List
13969 \labelwidthstring 00.00.0000
13970
13971 \family sans
13972 M-S-W
13973 \family default
13974  
13975 \family typewriter
13976 layout-copy
13977 \end_layout
13978
13979 \begin_layout List
13980 \labelwidthstring 00.00.0000
13981
13982 \family sans
13983 M-period
13984 \family default
13985  
13986 \family typewriter
13987 dots-insert
13988 \end_layout
13989
13990 \begin_layout List
13991 \labelwidthstring 00.00.0000
13992
13993 \family sans
13994 M-Return
13995 \family default
13996  
13997 \family typewriter
13998 break-paragraph-keep-layout
13999 \end_layout
14000
14001 \begin_layout List
14002 \labelwidthstring 00.00.0000
14003
14004 \family sans
14005 M-S-percent
14006 \family default
14007  
14008 \family typewriter
14009 find-replace
14010 \end_layout
14011
14012 \begin_layout Subsection
14013 Specific to 
14014 \family typewriter
14015 cua.bind
14016 \end_layout
14017
14018 \begin_layout List
14019 \labelwidthstring 00.00.0000
14020
14021 \family sans
14022 C-b
14023 \family default
14024  
14025 \family typewriter
14026 font-bold
14027 \end_layout
14028
14029 \begin_layout List
14030 \labelwidthstring 00.00.0000
14031
14032 \family sans
14033 C-c
14034 \family default
14035  
14036 \family typewriter
14037 copy
14038 \end_layout
14039
14040 \begin_layout List
14041 \labelwidthstring 00.00.0000
14042
14043 \family sans
14044 C-d
14045 \family default
14046  
14047 \family typewriter
14048 buffer-view 
14049 \end_layout
14050
14051 \begin_layout List
14052 \labelwidthstring 00.00.0000
14053
14054 \family sans
14055 C-e
14056 \family default
14057  
14058 \family typewriter
14059 font-emph
14060 \end_layout
14061
14062 \begin_layout List
14063 \labelwidthstring 00.00.0000
14064
14065 \family sans
14066 C-f
14067 \family default
14068  
14069 \family typewriter
14070 find-replace
14071 \end_layout
14072
14073 \begin_layout List
14074 \labelwidthstring 00.00.0000
14075
14076 \family sans
14077 C-g
14078 \family default
14079  
14080 \family typewriter
14081 error-next
14082 \end_layout
14083
14084 \begin_layout List
14085 \labelwidthstring 00.00.0000
14086
14087 \family sans
14088 C-i
14089 \family default
14090  
14091 \family typewriter
14092 open-stuff 
14093 \end_layout
14094
14095 \begin_layout List
14096 \labelwidthstring 00.00.0000
14097
14098 \family sans
14099 C-k
14100 \family default
14101  
14102 \family typewriter
14103 font-noun 
14104 \end_layout
14105
14106 \begin_layout List
14107 \labelwidthstring 00.00.0000
14108
14109 \family sans
14110 C-l
14111 \family default
14112  
14113 \family typewriter
14114 tex-mode 
14115 \end_layout
14116
14117 \begin_layout List
14118 \labelwidthstring 00.00.0000
14119
14120 \family sans
14121 C-m
14122 \family default
14123  
14124 \family typewriter
14125 math-mode
14126 \end_layout
14127
14128 \begin_layout List
14129 \labelwidthstring 00.00.0000
14130
14131 \family sans
14132 C-n
14133 \family default
14134  
14135 \family typewriter
14136 buffer-new
14137 \end_layout
14138
14139 \begin_layout List
14140 \labelwidthstring 00.00.0000
14141
14142 \family sans
14143 C-o
14144 \family default
14145  
14146 \family typewriter
14147 buffer-open
14148 \end_layout
14149
14150 \begin_layout List
14151 \labelwidthstring 00.00.0000
14152
14153 \family sans
14154 C-p
14155 \family default
14156  
14157 \family typewriter
14158 buffer-print
14159 \end_layout
14160
14161 \begin_layout List
14162 \labelwidthstring 00.00.0000
14163
14164 \family sans
14165 C-q
14166 \family default
14167  
14168 \family typewriter
14169 lyx-quit
14170 \end_layout
14171
14172 \begin_layout List
14173 \labelwidthstring 00.00.0000
14174
14175 \family sans
14176 C-r
14177 \family default
14178  
14179 \family typewriter
14180 buffer-reload
14181 \end_layout
14182
14183 \begin_layout List
14184 \labelwidthstring 00.00.0000
14185
14186 \family sans
14187 C-s
14188 \family default
14189  
14190 \family typewriter
14191 buffer-write
14192 \end_layout
14193
14194 \begin_layout List
14195 \labelwidthstring 00.00.0000
14196
14197 \family sans
14198 C-t
14199 \family default
14200  
14201 \family typewriter
14202 buffer-view-ps
14203 \end_layout
14204
14205 \begin_layout List
14206 \labelwidthstring 00.00.0000
14207
14208 \family sans
14209 C-u
14210 \family default
14211  
14212 \family typewriter
14213 font-underline
14214 \end_layout
14215
14216 \begin_layout List
14217 \labelwidthstring 00.00.0000
14218
14219 \family sans
14220 C-v
14221 \family default
14222  
14223 \family typewriter
14224 paste
14225 \end_layout
14226
14227 \begin_layout List
14228 \labelwidthstring 00.00.0000
14229
14230 \family sans
14231 C-w
14232 \family default
14233  
14234 \family typewriter
14235 buffer-close
14236 \end_layout
14237
14238 \begin_layout List
14239 \labelwidthstring 00.00.0000
14240
14241 \family sans
14242 C-x
14243 \family default
14244  
14245 \family typewriter
14246 cut
14247 \end_layout
14248
14249 \begin_layout List
14250 \labelwidthstring 00.00.0000
14251
14252 \family sans
14253 C-z
14254 \family default
14255  
14256 \family typewriter
14257 undo
14258 \end_layout
14259
14260 \begin_layout List
14261 \labelwidthstring 00.00.0000
14262
14263 \family sans
14264 C-space
14265 \family default
14266  
14267 \family typewriter
14268 protected-space-insert
14269 \end_layout
14270
14271 \begin_layout List
14272 \labelwidthstring 00.00.0000
14273
14274 \family sans
14275 C-S-C
14276 \family default
14277  
14278 \family typewriter
14279 layout-copy
14280 \end_layout
14281
14282 \begin_layout List
14283 \labelwidthstring 00.00.0000
14284
14285 \family sans
14286 C-S-D
14287 \family default
14288  
14289 \family typewriter
14290 buffer-typeset
14291 \end_layout
14292
14293 \begin_layout List
14294 \labelwidthstring 00.00.0000
14295
14296 \family sans
14297 C-S-M
14298 \family default
14299  
14300 \family typewriter
14301 math-display
14302 \end_layout
14303
14304 \begin_layout List
14305 \labelwidthstring 00.00.0000
14306
14307 \family sans
14308 C-S-N
14309 \family default
14310  
14311 \family typewriter
14312 buffer-new-template
14313 \end_layout
14314
14315 \begin_layout List
14316 \labelwidthstring 00.00.0000
14317
14318 \family sans
14319 C-S-P
14320 \family default
14321  
14322 \family typewriter
14323 font-code 
14324 \end_layout
14325
14326 \begin_layout List
14327 \labelwidthstring 00.00.0000
14328
14329 \family sans
14330 C-S-S
14331 \family default
14332  
14333 \family typewriter
14334 buffer-write-as
14335 \end_layout
14336
14337 \begin_layout List
14338 \labelwidthstring 00.00.0000
14339
14340 \family sans
14341 C-S-T
14342 \family default
14343  
14344 \family typewriter
14345 buffer-typeset-ps
14346 \end_layout
14347
14348 \begin_layout List
14349 \labelwidthstring 00.00.0000
14350
14351 \family sans
14352 C-S-V
14353 \family default
14354  
14355 \family typewriter
14356 layout-paste
14357 \end_layout
14358
14359 \begin_layout List
14360 \labelwidthstring 00.00.0000
14361
14362 \family sans
14363 C-S-Z
14364 \family default
14365  
14366 \family typewriter
14367 redo
14368 \end_layout
14369
14370 \begin_layout List
14371 \labelwidthstring 00.00.0000
14372
14373 \family sans
14374 S-Insert
14375 \family default
14376  
14377 \family typewriter
14378 paste
14379 \end_layout
14380
14381 \begin_layout List
14382 \labelwidthstring 00.00.0000
14383
14384 \family sans
14385 S-Delete
14386 \family default
14387  
14388 \family typewriter
14389 cut
14390 \end_layout
14391
14392 \begin_layout List
14393 \labelwidthstring 00.00.0000
14394
14395 \family sans
14396 C-period
14397 \family default
14398  
14399 \family typewriter
14400 end-of-sentence-period-insert
14401 \end_layout
14402
14403 \begin_layout List
14404 \labelwidthstring 00.00.0000
14405
14406 \family sans
14407 C-S-greater
14408 \family default
14409  
14410 \family typewriter
14411 label-goto
14412 \end_layout
14413
14414 \begin_layout List
14415 \labelwidthstring 00.00.0000
14416
14417 \family sans
14418 C-S-less
14419 \family default
14420  
14421 \family typewriter
14422 reference-back
14423 \end_layout
14424
14425 \begin_layout List
14426 \labelwidthstring 00.00.0000
14427
14428 \family sans
14429 C-minus
14430 \family default
14431  
14432 \family typewriter
14433 hyphenation-point-insert
14434 \end_layout
14435
14436 \begin_layout List
14437 \labelwidthstring 00.00.0000
14438
14439 \family sans
14440 C-S-quotedbl
14441 \family default
14442  
14443 \family typewriter
14444 quote-insert
14445 \end_layout
14446
14447 \begin_layout List
14448 \labelwidthstring 00.00.0000
14449
14450 \family sans
14451 C-S-space
14452 \family default
14453  
14454 \family typewriter
14455 protected-space-insert
14456 \end_layout
14457
14458 \begin_layout List
14459 \labelwidthstring 00.00.0000
14460
14461 \family sans
14462 M-x
14463 \family default
14464  
14465 \family typewriter
14466 command-execute
14467 \end_layout
14468
14469 \begin_layout List
14470 \labelwidthstring 00.00.0000
14471
14472 \family sans
14473 S-Home
14474 \family default
14475  
14476 \family typewriter
14477 line-begin-select
14478 \end_layout
14479
14480 \begin_layout List
14481 \labelwidthstring 00.00.0000
14482
14483 \family sans
14484 S-End
14485 \family default
14486  
14487 \family typewriter
14488 line-end-select
14489 \end_layout
14490
14491 \begin_layout List
14492 \labelwidthstring 00.00.0000
14493
14494 \family sans
14495 S-Up
14496 \family default
14497  
14498 \family typewriter
14499 up-select
14500 \end_layout
14501
14502 \begin_layout List
14503 \labelwidthstring 00.00.0000
14504
14505 \family sans
14506 S-Down
14507 \family default
14508  
14509 \family typewriter
14510 down-select
14511 \end_layout
14512
14513 \begin_layout List
14514 \labelwidthstring 00.00.0000
14515
14516 \family sans
14517 S-Delete
14518 \family default
14519  
14520 \family typewriter
14521 cut
14522 \end_layout
14523
14524 \begin_layout List
14525 \labelwidthstring 00.00.0000
14526
14527 \family sans
14528 S-Insert
14529 \family default
14530  
14531 \family typewriter
14532 paste
14533 \end_layout
14534
14535 \begin_layout List
14536 \labelwidthstring 00.00.0000
14537
14538 \family sans
14539 S-Next
14540 \family default
14541  
14542 \family typewriter
14543 screen-down-select
14544 \end_layout
14545
14546 \begin_layout List
14547 \labelwidthstring 00.00.0000
14548
14549 \family sans
14550 S-Prior
14551 \family default
14552  
14553 \family typewriter
14554 screen-up-select
14555 \end_layout
14556
14557 \begin_layout List
14558 \labelwidthstring 00.00.0000
14559
14560 \family sans
14561 S-Left
14562 \family default
14563  
14564 \family typewriter
14565 backward-select
14566 \end_layout
14567
14568 \begin_layout List
14569 \labelwidthstring 00.00.0000
14570
14571 \family sans
14572 S-Right
14573 \family default
14574  
14575 \family typewriter
14576 forward-select
14577 \end_layout
14578
14579 \begin_layout List
14580 \labelwidthstring 00.00.0000
14581
14582 \family sans
14583 C-Home
14584 \family default
14585  
14586 \family typewriter
14587 buffer-begin
14588 \end_layout
14589
14590 \begin_layout List
14591 \labelwidthstring 00.00.0000
14592
14593 \family sans
14594 C-End
14595 \family default
14596  
14597 \family typewriter
14598 buffer-end
14599 \end_layout
14600
14601 \begin_layout List
14602 \labelwidthstring 00.00.0000
14603
14604 \family sans
14605 C-Up
14606 \family default
14607  
14608 \family typewriter
14609 paragraph-up
14610 \end_layout
14611
14612 \begin_layout List
14613 \labelwidthstring 00.00.0000
14614
14615 \family sans
14616 C-Down
14617 \family default
14618  
14619 \family typewriter
14620 paragraph-down
14621 \end_layout
14622
14623 \begin_layout List
14624 \labelwidthstring 00.00.0000
14625
14626 \family sans
14627 C-Delete
14628 \family default
14629  
14630 \family typewriter
14631 word-delete-forward
14632 \end_layout
14633
14634 \begin_layout List
14635 \labelwidthstring 00.00.0000
14636
14637 \family sans
14638 C-BackSpace
14639 \family default
14640  
14641 \family typewriter
14642 word-delete-backward
14643 \end_layout
14644
14645 \begin_layout List
14646 \labelwidthstring 00.00.0000
14647
14648 \family sans
14649 C-Insert
14650 \family default
14651  
14652 \family typewriter
14653 copy
14654 \end_layout
14655
14656 \begin_layout List
14657 \labelwidthstring 00.00.0000
14658
14659 \family sans
14660 C-Return
14661 \family default
14662  
14663 \family typewriter
14664 break-line
14665 \end_layout
14666
14667 \begin_layout List
14668 \labelwidthstring 00.00.0000
14669
14670 \family sans
14671 C-Left
14672 \family default
14673  
14674 \family typewriter
14675 word-backward
14676 \end_layout
14677
14678 \begin_layout List
14679 \labelwidthstring 00.00.0000
14680
14681 \family sans
14682 C-Right
14683 \family default
14684  
14685 \family typewriter
14686 word-forward
14687 \end_layout
14688
14689 \begin_layout List
14690 \labelwidthstring 00.00.0000
14691
14692 \family sans
14693 C-S-Down
14694 \family default
14695  
14696 \family typewriter
14697 paragraph-down-select
14698 \end_layout
14699
14700 \begin_layout List
14701 \labelwidthstring 00.00.0000
14702
14703 \family sans
14704 C-S-End
14705 \family default
14706  
14707 \family typewriter
14708 buffer-end-select
14709 \end_layout
14710
14711 \begin_layout List
14712 \labelwidthstring 00.00.0000
14713
14714 \family sans
14715 C-S-Home
14716 \family default
14717  
14718 \family typewriter
14719 buffer-begin-select
14720 \end_layout
14721
14722 \begin_layout List
14723 \labelwidthstring 00.00.0000
14724
14725 \family sans
14726 C-S-Left
14727 \family default
14728  
14729 \family typewriter
14730 word-backward-select
14731 \end_layout
14732
14733 \begin_layout List
14734 \labelwidthstring 00.00.0000
14735
14736 \family sans
14737 C-S-Right
14738 \family default
14739  
14740 \family typewriter
14741 word-forward-select
14742 \end_layout
14743
14744 \begin_layout List
14745 \labelwidthstring 00.00.0000
14746
14747 \family sans
14748 C-S-Up
14749 \family default
14750  
14751 \family typewriter
14752 paragraph-up-select
14753 \end_layout
14754
14755 \begin_layout List
14756 \labelwidthstring 00.00.0000
14757
14758 \family sans
14759 C-S-quotedbl
14760 \family default
14761  
14762 \family typewriter
14763 quote-insert
14764 \end_layout
14765
14766 \begin_layout List
14767 \labelwidthstring 00.00.0000
14768
14769 \family sans
14770 M-Return
14771 \family default
14772  
14773 \family typewriter
14774 break-paragraph-keep-layout
14775 \end_layout
14776
14777 \begin_layout List
14778 \labelwidthstring 00.00.0000
14779
14780 \family sans
14781 M-period
14782 \family default
14783  
14784 \family typewriter
14785 dots-insert
14786 \end_layout
14787
14788 \begin_layout List
14789 \labelwidthstring 00.00.0000
14790
14791 \family sans
14792 M-S-Right
14793 \family default
14794  
14795 \family typewriter
14796 depth-increment
14797 \end_layout
14798
14799 \begin_layout List
14800 \labelwidthstring 00.00.0000
14801
14802 \family sans
14803 M-S-Left
14804 \family default
14805  
14806 \family typewriter
14807 depth-decrement
14808 \end_layout
14809
14810 \begin_layout List
14811 \labelwidthstring 00.00.0000
14812
14813 \family sans
14814 Escape
14815 \family default
14816  
14817 \family typewriter
14818 cancel
14819 \end_layout
14820
14821 \begin_layout List
14822 \labelwidthstring 00.00.0000
14823
14824 \family sans
14825 F2
14826 \family default
14827  
14828 \family typewriter
14829 buffer-write
14830 \end_layout
14831
14832 \begin_layout List
14833 \labelwidthstring 00.00.0000
14834
14835 \family sans
14836 F3
14837 \family default
14838  
14839 \family typewriter
14840 buffer-open
14841 \end_layout
14842
14843 \begin_layout List
14844 \labelwidthstring 00.00.0000
14845
14846 \family sans
14847 F5
14848 \family default
14849  
14850 \family typewriter
14851 screen-recenter
14852 \end_layout
14853
14854 \begin_layout List
14855 \labelwidthstring 00.00.0000
14856
14857 \family sans
14858 F7
14859 \family default
14860  
14861 \family typewriter
14862 spellchecker
14863 \end_layout
14864
14865 \begin_layout List
14866 \labelwidthstring 00.00.0000
14867
14868 \family sans
14869 F9
14870 \family default
14871  
14872 \family typewriter
14873 meta-prefix
14874 \end_layout
14875
14876 \begin_layout List
14877 \labelwidthstring 00.00.0000
14878
14879 \family sans
14880 C-F4
14881 \family default
14882  
14883 \family typewriter
14884 buffer-close
14885 \end_layout
14886
14887 \begin_layout List
14888 \labelwidthstring 00.00.0000
14889
14890 \family sans
14891 M-F4
14892 \family default
14893  
14894 \family typewriter
14895 lyx-quit
14896 \end_layout
14897
14898 \begin_layout Subsection
14899 Specific to 
14900 \family typewriter
14901 sciword.bind
14902 \end_layout
14903
14904 \begin_layout Standard
14905 These are LyX keyboard definitions for mathematics, similar to those of
14906  Scientific Word.
14907 \end_layout
14908
14909 \begin_layout Standard
14910 The bindings file and the present documentation were prepared by Serge Winitzki
14911  with assistance from Jean-Marc Lasgouttes.
14912  Version 1.3, for LyX 1.2.x and 1.3.x.
14913 \end_layout
14914
14915 \begin_layout Standard
14916 These definitions make it a lot easier to type equations without using the
14917  mouse, especially for people familiar with Scientific Word.
14918  The standard LyX bindings such as 
14919 \family typewriter
14920 M-m
14921 \family default
14922  or 
14923 \family typewriter
14924 M-o
14925 \family default
14926  are unmodified.
14927 \end_layout
14928
14929 \begin_layout Standard
14930 Tip: to find the "LyX bind name" for a key, look at the status bar after
14931  typing some non-existent key combination.
14932  E.g.
14933  to find how "Ctrl-&" is referenced, press Ctrl-S and then Ctrl-&: the status
14934  bar shows "C-s S-C-ampersand." (This does not work in LyX 1.3.0!)
14935 \end_layout
14936
14937 \begin_layout List
14938 \labelwidthstring 00.00.0000
14939
14940 \family sans
14941 C-c
14942 \family default
14943  
14944 \family typewriter
14945 copy
14946 \family default
14947  -- Copy, cut, paste is as in Sciword, 
14948 \family typewriter
14949 C-c
14950 \family default
14951
14952 \family typewriter
14953 C-x
14954 \family default
14955 , and 
14956 \family typewriter
14957 C-v
14958 \family default
14959 .
14960 \end_layout
14961
14962 \begin_layout List
14963 \labelwidthstring 00.00.0000
14964
14965 \family sans
14966 C-d
14967 \family default
14968  
14969 \family typewriter
14970 math-display
14971 \family default
14972  -- Display equation toggle: type 
14973 \family typewriter
14974 C-d
14975 \family default
14976  to insert a displayed formula (
14977 \family typewriter
14978 d
14979 \family default
14980  for 
14981 \begin_inset Quotes eld
14982 \end_inset
14983
14984 displayed
14985 \begin_inset Quotes erd
14986 \end_inset
14987
14988 ).
14989  You can also type 
14990 \family typewriter
14991 C-d
14992 \family default
14993  in a displayed formula to convert it back to an inline formula.
14994 \end_layout
14995
14996 \begin_layout List
14997 \labelwidthstring 00.00.0000
14998
14999 \family sans
15000 C-f
15001 \family default
15002  
15003 \family typewriter
15004 math-insert 
15005 \backslash
15006 frac
15007 \family default
15008  -- Fractions: type 
15009 \family typewriter
15010 C-f
15011 \family default
15012  to insert a fraction (
15013 \family typewriter
15014 f
15015 \family default
15016  for 
15017 \begin_inset Quotes eld
15018 \end_inset
15019
15020 fraction
15021 \begin_inset Quotes erd
15022 \end_inset
15023
15024 ).
15025  You can also select an expression and type 
15026 \family typewriter
15027 C-f
15028 \family default
15029  to convert it to the numerator of a fraction.
15030  Note: pressing 
15031 \family typewriter
15032 Backspace
15033 \family default
15034  at the 
15035 \emph on
15036 left
15037 \emph default
15038  end of the denominator will delete the numerator and convert the denominator
15039  to a non-fraction.
15040 \end_layout
15041
15042 \begin_layout List
15043 \labelwidthstring 00.00.0000
15044
15045 \family sans
15046 C-i
15047 \family default
15048  
15049 \family typewriter
15050 math-insert 
15051 \backslash
15052 int
15053 \family default
15054  -- Inserts 
15055 \begin_inset Formula $\int$
15056 \end_inset
15057
15058  (
15059 \family typewriter
15060 i
15061 \family default
15062  for 
15063 \begin_inset Quotes eld
15064 \end_inset
15065
15066 integral
15067 \begin_inset Quotes erd
15068 \end_inset
15069
15070 )
15071 \end_layout
15072
15073 \begin_layout List
15074 \labelwidthstring 00.00.0000
15075
15076 \family sans
15077 C-k
15078 \family default
15079  
15080 \family typewriter
15081 line-delete-forward
15082 \family default
15083  -- Emacs-like binding: delete forward of cursor to end of line.
15084 \end_layout
15085
15086 \begin_layout List
15087 \labelwidthstring 00.00.0000
15088
15089 \family sans
15090 C-m
15091 \family default
15092  
15093 \family typewriter
15094 math-mode
15095 \family default
15096  -- A text/math toggle (
15097 \family typewriter
15098 m
15099 \family default
15100  for 
15101 \begin_inset Quotes eld
15102 \end_inset
15103
15104 math
15105 \begin_inset Quotes erd
15106 \end_inset
15107
15108 ): switches to math in text mode, and also inserts roman text in math mode.
15109  Also bound to 
15110 \family typewriter
15111 C-t
15112 \family default
15113  (
15114 \family typewriter
15115 t
15116 \family default
15117  for 
15118 \begin_inset Quotes eld
15119 \end_inset
15120
15121 text
15122 \begin_inset Quotes erd
15123 \end_inset
15124
15125 ).
15126 \end_layout
15127
15128 \begin_layout List
15129 \labelwidthstring 00.00.0000
15130
15131 \family sans
15132 C-n
15133 \family default
15134  
15135 \family typewriter
15136 math-number
15137 \family default
15138  -- Add/remove numbering in a single equation.
15139 \end_layout
15140
15141 \begin_layout List
15142 \labelwidthstring 00.00.0000
15143
15144 \family sans
15145 S-C-N
15146 \family default
15147  
15148 \family typewriter
15149 math-nonumber
15150 \family default
15151  -- Add/remove numbering at a line in equation arrays.
15152 \end_layout
15153
15154 \begin_layout Standard
15155 The above commands are toggles that control the numbering of equations (
15156 \family typewriter
15157 N
15158 \family default
15159  for 
15160 \begin_inset Quotes eld
15161 \end_inset
15162
15163 number
15164 \begin_inset Quotes erd
15165 \end_inset
15166
15167 ).
15168  Note: when deleting a number in a labeled eqnarray, the label is not really
15169  removed (the TeX code becomes 
15170 \begin_inset Quotes eld
15171 \end_inset
15172
15173
15174 \family typewriter
15175
15176 \backslash
15177 label{} 
15178 \backslash
15179 nonumber
15180 \family default
15181
15182 \begin_inset Quotes erd
15183 \end_inset
15184
15185  ) and this generates a (harmless) LaTeX warning.
15186 \end_layout
15187
15188 \begin_layout List
15189 \labelwidthstring 00.00.0000
15190
15191 \family sans
15192 C-o
15193 \family default
15194  
15195 \family typewriter
15196 file-open
15197 \family default
15198  -- Open a new document.
15199  (W*ndows)
15200 \end_layout
15201
15202 \begin_layout List
15203 \labelwidthstring 00.00.0000
15204
15205 \family sans
15206 C-q
15207 \family default
15208  
15209 \family typewriter
15210 quote-insert
15211 \family default
15212  -- Insert a quote character " (
15213 \family typewriter
15214 q
15215 \family default
15216  for 
15217 \begin_inset Quotes eld
15218 \end_inset
15219
15220 quote
15221 \begin_inset Quotes erd
15222 \end_inset
15223
15224 ).
15225  This is not the 
15226 \begin_inset Quotes eld
15227 \end_inset
15228
15229 smart
15230 \begin_inset Quotes erd
15231 \end_inset
15232
15233  double quote character that you get by default.
15234 \end_layout
15235
15236 \begin_layout List
15237 \labelwidthstring 00.00.0000
15238
15239 \family sans
15240 C-r
15241 \family default
15242  
15243 \family typewriter
15244 math-insert 
15245 \backslash
15246 sqrt
15247 \family default
15248  -- Square root sign 
15249 \begin_inset Formula $\sqrt{x}$
15250 \end_inset
15251
15252  (
15253 \family typewriter
15254 r
15255 \family default
15256  for 
15257 \begin_inset Quotes eld
15258 \end_inset
15259
15260 root
15261 \begin_inset Quotes erd
15262 \end_inset
15263
15264 ).
15265 \end_layout
15266
15267 \begin_layout List
15268 \labelwidthstring 00.00.0000
15269
15270 \family sans
15271 S-C-R
15272 \family default
15273  
15274 \family typewriter
15275 math-insert 
15276 \backslash
15277 root
15278 \family default
15279  -- root sign 
15280 \begin_inset Formula $\sqrt[n]{x}$
15281 \end_inset
15282
15283 .
15284 \end_layout
15285
15286 \begin_layout List
15287 \labelwidthstring 00.00.0000
15288
15289 \family sans
15290 C-t
15291 \family default
15292  
15293 \family typewriter
15294 math-mode
15295 \family default
15296  -- Another binding for a switch between the text and the math mode (
15297 \family typewriter
15298 t
15299 \family default
15300  is for 
15301 \begin_inset Quotes eld
15302 \end_inset
15303
15304 text
15305 \begin_inset Quotes erd
15306 \end_inset
15307
15308 ).
15309  Note that the roman text inserted in math mode is special.
15310 \end_layout
15311
15312 \begin_layout List
15313 \labelwidthstring 00.00.0000
15314
15315 \family sans
15316 C-u
15317 \family default
15318  
15319 \family typewriter
15320 font-underline
15321 \family default
15322  -- 
15323 \bar under
15324 Underline
15325 \bar default
15326  the selected text (text mode only, use things like 
15327 \family typewriter
15328
15329 \backslash
15330 overline
15331 \family default
15332  or 
15333 \family typewriter
15334
15335 \backslash
15336 underbar
15337 \family default
15338  for math ).
15339 \end_layout
15340
15341 \begin_layout List
15342 \labelwidthstring 00.00.0000
15343
15344 \family sans
15345 C-v
15346 \family default
15347  
15348 \family typewriter
15349 paste
15350 \family default
15351  -- W*ndows heritage.
15352 \end_layout
15353
15354 \begin_layout List
15355 \labelwidthstring 00.00.0000
15356
15357 \family sans
15358 C-w
15359 \family default
15360  
15361 \family typewriter
15362 buffer-close
15363 \family default
15364  -- Close the current document (again, a W*ndows heritage).
15365 \end_layout
15366
15367 \begin_layout List
15368 \labelwidthstring 00.00.0000
15369
15370 \family sans
15371 C-x
15372 \family default
15373  
15374 \family typewriter
15375 cut
15376 \end_layout
15377
15378 \begin_layout List
15379 \labelwidthstring 00.00.0000
15380
15381 \family sans
15382 C-z
15383 \family default
15384  
15385 \family typewriter
15386 undo
15387 \end_layout
15388
15389 \begin_layout List
15390 \labelwidthstring 00.00.0000
15391
15392 \family sans
15393 S-C-Z
15394 \family default
15395  
15396 \family typewriter
15397 redo
15398 \family default
15399  -- the 
15400 \begin_inset Quotes eld
15401 \end_inset
15402
15403 Redo
15404 \begin_inset Quotes erd
15405 \end_inset
15406
15407  operation, or 
15408 \begin_inset Quotes eld
15409 \end_inset
15410
15411 undo the undo
15412 \begin_inset Quotes erd
15413 \end_inset
15414
15415 .
15416 \end_layout
15417
15418 \begin_layout Standard
15419 Bracket delimiters: press 
15420 \family typewriter
15421 Ctrl
15422 \family default
15423 -<bracket key> to insert a matching pair of delimiters.
15424  For example, 
15425 \family typewriter
15426 Ctrl-[
15427 \family default
15428  inserts a pair of parentheses 
15429 \begin_inset Formula $\left[\right]$
15430 \end_inset
15431
15432 .
15433  (Note: 
15434 \family typewriter
15435 Ctrl-]
15436 \family default
15437  does the same thing.) It will switch to math mode if needed.
15438  The supported characters are ( [ { < |.
15439  It is the same to press the right or the left bracket.
15440  The corresponding delimiters are 
15441 \begin_inset Formula $\left(\right)$
15442 \end_inset
15443
15444  
15445 \begin_inset Formula $\left[\right]$
15446 \end_inset
15447
15448  
15449 \begin_inset Formula $\left\{ \right\} $
15450 \end_inset
15451
15452  
15453 \begin_inset Formula $\left\langle \right\rangle $
15454 \end_inset
15455
15456  
15457 \begin_inset Formula $\left|\right|$
15458 \end_inset
15459
15460 .
15461  The delimiters are 
15462 \begin_inset Quotes eld
15463 \end_inset
15464
15465 smart
15466 \begin_inset Quotes erd
15467 \end_inset
15468
15469  and resize with their contents.
15470  Use Math Panel to get other or non-matching delimiters.
15471  Press backspace on the 
15472 \emph on
15473 left
15474 \emph default
15475  delimiter to remove both 
15476 \begin_inset Quotes eld
15477 \end_inset
15478
15479 smart
15480 \begin_inset Quotes erd
15481 \end_inset
15482
15483  delimiters without removing their contents.
15484 \end_layout
15485
15486 \begin_layout List
15487 \labelwidthstring 00.00.0000
15488
15489 \family sans
15490 C-9
15491 \family default
15492  
15493 \family typewriter
15494 math-delim ( )
15495 \family default
15496  -- for convenience, pressing 
15497 \family typewriter
15498 Ctrl-9
15499 \family default
15500  is the same as 
15501 \family typewriter
15502 Ctrl-(
15503 \family default
15504  or 
15505 \family typewriter
15506 Ctrl-)
15507 \end_layout
15508
15509 \begin_layout List
15510 \labelwidthstring 00.00.0000
15511
15512 \family sans
15513 S-C-parenleft
15514 \family default
15515  
15516 \family typewriter
15517 math-delim ( )
15518 \end_layout
15519
15520 \begin_layout List
15521 \labelwidthstring 00.00.0000
15522
15523 \family sans
15524 C-0
15525 \family default
15526  
15527 \family typewriter
15528 math-delim ( )
15529 \end_layout
15530
15531 \begin_layout List
15532 \labelwidthstring 00.00.0000
15533
15534 \family sans
15535 S-C-parenright
15536 \family default
15537  
15538 \family typewriter
15539 math-delim ( )
15540 \end_layout
15541
15542 \begin_layout List
15543 \labelwidthstring 00.00.0000
15544
15545 \family sans
15546 C-bracketleft
15547 \family default
15548  
15549 \family typewriter
15550 math-delim [ ]
15551 \end_layout
15552
15553 \begin_layout List
15554 \labelwidthstring 00.00.0000
15555
15556 \family sans
15557 C-bracketright
15558 \family default
15559  
15560 \family typewriter
15561 math-delim [ ]
15562 \end_layout
15563
15564 \begin_layout List
15565 \labelwidthstring 00.00.0000
15566
15567 \family sans
15568 C-S-less
15569 \family default
15570  
15571 \family typewriter
15572 math-delim langle rangle
15573 \family default
15574  -- angular delimiters 
15575 \begin_inset Formula $\left\langle \right\rangle $
15576 \end_inset
15577
15578 , not to confuse with ordinary < > signs.
15579 \end_layout
15580
15581 \begin_layout List
15582 \labelwidthstring 00.00.0000
15583
15584 \family sans
15585 C-S-greater
15586 \family default
15587  
15588 \family typewriter
15589 math-delim langle rangle
15590 \end_layout
15591
15592 \begin_layout Standard
15593 The bar bracket: on some keyboards (e.g.\InsetSpace ~
15594 some British ones), the bar character
15595  is bound to an 
15596 \family typewriter
15597 Alt
15598 \family default
15599 -something and on some wayward Unices to "brokenbar".
15600  So we define all of these keys as well.
15601 \end_layout
15602
15603 \begin_layout List
15604 \labelwidthstring 00.00.0000
15605
15606 \family sans
15607 C-S-bar
15608 \family default
15609  
15610 \family typewriter
15611 math-delim | |
15612 \end_layout
15613
15614 \begin_layout List
15615 \labelwidthstring 00.00.0000
15616
15617 \family sans
15618 C-S-brokenbar
15619 \family default
15620  
15621 \family typewriter
15622 math-delim | |
15623 \end_layout
15624
15625 \begin_layout List
15626 \labelwidthstring 00.00.0000
15627
15628 \family sans
15629 C-M-bar
15630 \family default
15631  
15632 \family typewriter
15633 math-delim | |
15634 \end_layout
15635
15636 \begin_layout List
15637 \labelwidthstring 00.00.0000
15638
15639 \family sans
15640 S-C-braceleft
15641 \family default
15642  
15643 \family typewriter
15644 math-delim { }
15645 \end_layout
15646
15647 \begin_layout List
15648 \labelwidthstring 00.00.0000
15649
15650 \family sans
15651 S-C-braceright
15652 \family default
15653  
15654 \family typewriter
15655 math-delim { }
15656 \end_layout
15657
15658 \begin_layout Standard
15659 Accents are in most cases 
15660 \family typewriter
15661 Ctrl
15662 \family default
15663 -<accent key>, e.g.\InsetSpace ~
15664
15665 \family typewriter
15666 Ctrl-.
15667
15668 \family default
15669  for overdot, 
15670 \family typewriter
15671 Ctrl-'
15672 \family default
15673  for acute accent, 
15674 \family typewriter
15675 Ctrl-~
15676 \family default
15677  for tilde (you also need to press 
15678 \family typewriter
15679 Shift
15680 \family default
15681  here) etc.
15682  For example, 
15683 \begin_inset Quotes eld
15684 \end_inset
15685
15686
15687 \family typewriter
15688 Ctrl-'
15689 \family default
15690  
15691 \family typewriter
15692 a
15693 \family default
15694
15695 \begin_inset Quotes erd
15696 \end_inset
15697
15698  inserts á.
15699  Some accents work only in math mode and others only in text mode.
15700 \end_layout
15701
15702 \begin_layout List
15703 \labelwidthstring 00.00.0000
15704
15705 \family sans
15706 C-period
15707 \family default
15708  
15709 \family typewriter
15710 accent-dot
15711 \family default
15712  -- overdot accent, ȧ (text mode only).
15713 \end_layout
15714
15715 \begin_layout List
15716 \labelwidthstring 00.00.0000
15717
15718 \family sans
15719 C-comma
15720 \family default
15721  
15722 \family typewriter
15723 math-insert 
15724 \backslash
15725 dot
15726 \family default
15727  -- overdot accent, 
15728 \begin_inset Formula $\dot{a}$
15729 \end_inset
15730
15731  (math mode only -- in physics this denotes a first derivative).
15732 \end_layout
15733
15734 \begin_layout List
15735 \labelwidthstring 00.00.0000
15736
15737 \family sans
15738 C-equals
15739 \family default
15740  
15741 \family typewriter
15742 math-insert 
15743 \backslash
15744 overrightarrow
15745 \family default
15746  -- Vector accent over math 
15747 \begin_inset Formula $\overrightarrow{x}$
15748 \end_inset
15749
15750 .
15751 \end_layout
15752
15753 \begin_layout List
15754 \labelwidthstring 00.00.0000
15755
15756 \family sans
15757 S-C-quotedbl
15758 \family default
15759  
15760 \family typewriter
15761 accent-umlaut
15762 \family default
15763  -- umlaut accent, ä (text mode only)
15764 \end_layout
15765
15766 \begin_layout List
15767 \labelwidthstring 00.00.0000
15768
15769 \family sans
15770 S-C-colon
15771 \family default
15772  
15773 \family typewriter
15774 math-insert 
15775 \backslash
15776 ddot
15777 \family default
15778  -- double dot accent, 
15779 \begin_inset Formula $\ddot{a}$
15780 \end_inset
15781
15782  (math mode only -- in physics this denotes a second derivative).
15783  To get a triple dot in math mode, use 
15784 \family typewriter
15785
15786 \backslash
15787 dddot
15788 \end_layout
15789
15790 \begin_layout List
15791 \labelwidthstring 00.00.0000
15792
15793 \family sans
15794 C-quoteleft
15795 \family default
15796  
15797 \family typewriter
15798 accent-grave
15799 \family default
15800  -- grave accent à (text mode only, use 
15801 \family typewriter
15802
15803 \backslash
15804 grave
15805 \family default
15806  for math)
15807 \end_layout
15808
15809 \begin_layout List
15810 \labelwidthstring 00.00.0000
15811
15812 \family sans
15813 S-C-asciitilde
15814 \family default
15815  
15816 \family typewriter
15817 accent-tilde
15818 \family default
15819  -- tilde accent ã (text mode only, use 
15820 \family typewriter
15821
15822 \backslash
15823 tilde
15824 \family default
15825  for math)
15826 \end_layout
15827
15828 \begin_layout List
15829 \labelwidthstring 00.00.0000
15830
15831 \family sans
15832 C-apostrophe
15833 \family default
15834  
15835 \family typewriter
15836 accent-acute
15837 \family default
15838  -- acute accent á (text mode only, use 
15839 \family typewriter
15840
15841 \backslash
15842 acute
15843 \family default
15844  for math)
15845 \end_layout
15846
15847 \begin_layout List
15848 \labelwidthstring 00.00.0000
15849
15850 \family sans
15851 S-C-asciicircum
15852 \family default
15853  
15854 \family typewriter
15855 accent-circumflex
15856 \family default
15857  -- circumflex (caret) accent â (text mode only, use 
15858 \family typewriter
15859
15860 \backslash
15861 hat
15862 \family default
15863  for math).
15864 \end_layout
15865
15866 \begin_layout Standard
15867 Function keys.
15868  The new key S-F2 for creating a LaTeX file seems handy.
15869 \end_layout
15870
15871 \begin_layout List
15872 \labelwidthstring 00.00.0000
15873
15874 \family sans
15875 F2
15876 \family default
15877  
15878 \family typewriter
15879 buffer-write
15880 \family default
15881  -- Save current document.
15882 \end_layout
15883
15884 \begin_layout List
15885 \labelwidthstring 00.00.0000
15886
15887 \family sans
15888 S-F2
15889 \family default
15890  
15891 \family typewriter
15892 buffer-export latex
15893 \family default
15894  -- Write a LaTeX file for the current document.
15895 \end_layout
15896
15897 \begin_layout List
15898 \labelwidthstring 00.00.0000
15899
15900 \family sans
15901 F3
15902 \family default
15903  
15904 \family typewriter
15905 find-replace
15906 \family default
15907  -- Find and replace dialog.
15908 \end_layout
15909
15910 \begin_layout List
15911 \labelwidthstring 00.00.0000
15912
15913 \family sans
15914 C-F4
15915 \family default
15916  
15917 \family typewriter
15918 buffer-close
15919 \family default
15920  -- same as 
15921 \family typewriter
15922 C-w
15923 \family default
15924 .
15925 \end_layout
15926
15927 \begin_layout List
15928 \labelwidthstring 00.00.0000
15929
15930 \family sans
15931 M-F4
15932 \family default
15933  
15934 \family typewriter
15935 lyx-quit
15936 \family default
15937  -- 
15938 \family typewriter
15939 Alt-F4
15940 \family default
15941  to quit LyX is the W*ndows w*ndow manager's mnemonic.
15942 \end_layout
15943
15944 \begin_layout Standard
15945
15946 \family typewriter
15947 F4
15948 \family default
15949  to 
15950 \family typewriter
15951 F8
15952 \family default
15953  are used to switch fonts.
15954  Use 
15955 \family typewriter
15956 F4
15957 \family default
15958  to switch back to the normal font.
15959  The non-default font switches 
15960 \family typewriter
15961 F5
15962 \family default
15963  - 
15964 \family typewriter
15965 F8
15966 \family default
15967  all work as toggles.
15968  They also work on the whole word if you put the cursor in the middle of
15969  the word, or if you select some text.
15970 \end_layout
15971
15972 \begin_layout List
15973 \labelwidthstring 00.00.0000
15974
15975 \family sans
15976 F4
15977 \family default
15978  
15979 \family typewriter
15980 font-default
15981 \family default
15982  -- stop using any special font
15983 \end_layout
15984
15985 \begin_layout List
15986 \labelwidthstring 00.00.0000
15987
15988 \family sans
15989 F5
15990 \family default
15991  
15992 \family typewriter
15993 font-bold
15994 \family default
15995  -- make 
15996 \series bold
15997 bold
15998 \series default
15999  text.
16000 \end_layout
16001
16002 \begin_layout List
16003 \labelwidthstring 00.00.0000
16004
16005 \family sans
16006 F6
16007 \family default
16008  
16009 \family typewriter
16010 font-emph
16011 \family default
16012  -- make 
16013 \emph on
16014 emphasized
16015 \emph default
16016  text.
16017 \end_layout
16018
16019 \begin_layout List
16020 \labelwidthstring 00.00.0000
16021
16022 \family sans
16023 F7
16024 \family default
16025  
16026 \family typewriter
16027 font-code
16028 \family default
16029  -- make 
16030 \family typewriter
16031 typewritten
16032 \family default
16033  text.
16034 \end_layout
16035
16036 \begin_layout List
16037 \labelwidthstring 00.00.0000
16038
16039 \family sans
16040 F8
16041 \family default
16042  
16043 \family typewriter
16044 font-noun
16045 \family default
16046  -- make 
16047 \noun on
16048 Caps/small caps
16049 \noun default
16050  text.
16051  (Used sometimes for people's names.)
16052 \end_layout
16053
16054 \begin_layout Standard
16055
16056 \family typewriter
16057 F9
16058 \family default
16059  is bound as 
16060 \begin_inset Quotes eld
16061 \end_inset
16062
16063 meta-prefix
16064 \begin_inset Quotes erd
16065 \end_inset
16066
16067 , same as the 
16068 \family typewriter
16069 Alt
16070 \family default
16071  key (useful e.g.\InsetSpace ~
16072 if the keyboard has no working 
16073 \family typewriter
16074 Alt
16075 \family default
16076 ).
16077 \end_layout
16078
16079 \begin_layout Standard
16080 Here are some Sciword-inspired mnemonics for frequently used math symbols.
16081  Many symbols start with a 
16082 \family typewriter
16083 C-s
16084 \family default
16085  sequence.
16086  Therefore 
16087 \family typewriter
16088 C-s
16089 \family default
16090  cannot be itself bound to anything.
16091 \end_layout
16092
16093 \begin_layout List
16094 \labelwidthstring 00.00.0000
16095
16096 \family sans
16097 M-apostrophe
16098 \family default
16099  
16100 \family typewriter
16101 math-insert 
16102 \backslash
16103 prime
16104 \family default
16105  -- The 
16106 \begin_inset Quotes eld
16107 \end_inset
16108
16109 prime
16110 \begin_inset Quotes erd
16111 \end_inset
16112
16113  symbol 
16114 \begin_inset Formula $\prime$
16115 \end_inset
16116
16117  in math mode.
16118  This is frequently unnecessary: in most cases the normal apostrophe works
16119  just fine, e.g.
16120  
16121 \begin_inset Formula $x'+2x=0$
16122 \end_inset
16123
16124 , but in some cases this would generate a double superscript error in LaTeX.
16125  For example: 
16126 \begin_inset Formula $x^{\prime2}$
16127 \end_inset
16128
16129  (
16130 \begin_inset Formula $x$
16131 \end_inset
16132
16133  prime squared) must be entered with the prime character.
16134 \end_layout
16135
16136 \begin_layout List
16137 \labelwidthstring 00.00.0000
16138
16139 \family sans
16140 C-s\InsetSpace ~
16141 apostrophe
16142 \family default
16143  
16144 \family typewriter
16145 command-sequence math-superscript; math-insert 
16146 \backslash
16147 prime;
16148 \family default
16149  -- Insert a prime as a superscript (see example above).
16150 \end_layout
16151
16152 \begin_layout List
16153 \labelwidthstring 00.00.0000
16154
16155 \family sans
16156 C-Up
16157 \family default
16158  
16159 \family typewriter
16160 math-insert ^
16161 \family default
16162  -- Insert an upper index.
16163  Also, 
16164 \family typewriter
16165
16166 \end_layout
16167
16168 \begin_layout List
16169 \labelwidthstring 00.00.0000
16170
16171 \family sans
16172 C-Down
16173 \family default
16174  
16175 \family typewriter
16176 math-insert _
16177 \family default
16178  -- Insert a lower index.
16179  Also, 
16180 \family typewriter
16181 _
16182 \end_layout
16183
16184 \begin_layout List
16185 \labelwidthstring 00.00.0000
16186
16187 \family sans
16188 C-s\InsetSpace ~
16189 d
16190 \family default
16191  
16192 \family typewriter
16193 math-insert 
16194 \backslash
16195 partial
16196 \family default
16197  -- Partial derivative symbol 
16198 \begin_inset Formula $\partial$
16199 \end_inset
16200
16201 .
16202 \end_layout
16203
16204 \begin_layout List
16205 \labelwidthstring 00.00.0000
16206
16207 \family sans
16208 C-s\InsetSpace ~
16209 e
16210 \family default
16211  
16212 \family typewriter
16213 math-insert 
16214 \backslash
16215 sum
16216 \family default
16217  -- Summation symbol 
16218 \begin_inset Formula $\sum$
16219 \end_inset
16220
16221  (not the same as the Greek letter uppercase Sigma 
16222 \begin_inset Formula $\Sigma$
16223 \end_inset
16224
16225  because it can resize and allows smart upper/lower limits).
16226 \end_layout
16227
16228 \begin_layout List
16229 \labelwidthstring 00.00.0000
16230
16231 \family sans
16232 C-s\InsetSpace ~
16233 p
16234 \family default
16235  
16236 \family typewriter
16237 math-insert 
16238 \backslash
16239 prod
16240 \family default
16241  -- Product symbol 
16242 \begin_inset Formula $\prod$
16243 \end_inset
16244
16245  (not the same as the Greek letter uppercase Pi, 
16246 \begin_inset Formula $\Pi$
16247 \end_inset
16248
16249 ).
16250 \end_layout
16251
16252 \begin_layout List
16253 \labelwidthstring 00.00.0000
16254
16255 \family sans
16256 C-s\InsetSpace ~
16257 i
16258 \family default
16259  
16260 \family typewriter
16261 math-insert 
16262 \backslash
16263 infty
16264 \family default
16265  -- Infinity 
16266 \begin_inset Formula $\infty$
16267 \end_inset
16268
16269 .
16270 \end_layout
16271
16272 \begin_layout List
16273 \labelwidthstring 00.00.0000
16274
16275 \family sans
16276 C-s\InsetSpace ~
16277 x
16278 \family default
16279  
16280 \family typewriter
16281 math-insert 
16282 \backslash
16283 times
16284 \family default
16285  -- Cross product 
16286 \begin_inset Formula $\times$
16287 \end_inset
16288
16289 .
16290 \end_layout
16291
16292 \begin_layout List
16293 \labelwidthstring 00.00.0000
16294
16295 \family sans
16296 C-s\InsetSpace ~
16297 v
16298 \family default
16299  
16300 \family typewriter
16301 math-matrix 1 2
16302 \family default
16303  -- Insert a stacked array 
16304 \begin_inset Formula $\begin{array}{c}
16305 \begin{array}{c}
16306 \end{array}\end{array}$
16307 \end_inset
16308
16309 .
16310  (Frequently useful in formulae.)
16311 \end_layout
16312
16313 \begin_layout List
16314 \labelwidthstring 00.00.0000
16315
16316 \family sans
16317 C-s\InsetSpace ~
16318 m
16319 \family default
16320  
16321 \family typewriter
16322 math-matrix 3 3
16323 \family default
16324  -- Insert a 3
16325 \begin_inset Formula $\times$
16326 \end_inset
16327
16328 3 matrix 
16329 \begin_inset Formula $\begin{array}{ccc}
16330 \\\\\end{array}$
16331 \end_inset
16332
16333 .
16334  (Then you can modify its size using the 
16335 \family sans
16336 Edit\SpecialChar \menuseparator
16337 Math
16338 \family default
16339  menu.)
16340 \end_layout
16341
16342 \begin_layout List
16343 \labelwidthstring 00.00.0000
16344
16345 \family sans
16346 C-s\InsetSpace ~
16347 S-plus
16348 \family default
16349  
16350 \family typewriter
16351 math-insert 
16352 \backslash
16353 dagger
16354 \family default
16355  -- The 
16356 \begin_inset Quotes eld
16357 \end_inset
16358
16359 dagger
16360 \begin_inset Quotes erd
16361 \end_inset
16362
16363  
16364 \begin_inset Formula $\dagger$
16365 \end_inset
16366
16367 .
16368 \end_layout
16369
16370 \begin_layout List
16371 \labelwidthstring 00.00.0000
16372
16373 \family sans
16374 C-s\InsetSpace ~
16375 equal
16376 \family default
16377  
16378 \family typewriter
16379 math-insert 
16380 \backslash
16381 equiv
16382 \family default
16383  -- 
16384 \begin_inset Quotes eld
16385 \end_inset
16386
16387 Identical equality
16388 \begin_inset Quotes erd
16389 \end_inset
16390
16391  
16392 \begin_inset Formula $\equiv$
16393 \end_inset
16394
16395 .
16396 \end_layout
16397
16398 \begin_layout List
16399 \labelwidthstring 00.00.0000
16400
16401 \family sans
16402 M-equal
16403 \family default
16404  
16405 \family typewriter
16406 math-insert 
16407 \backslash
16408 approx
16409 \family default
16410  -- 
16411 \begin_inset Quotes eld
16412 \end_inset
16413
16414 Approximate equality
16415 \begin_inset Quotes erd
16416 \end_inset
16417
16418  
16419 \begin_inset Formula $\approx$
16420 \end_inset
16421
16422 .
16423 \end_layout
16424
16425 \begin_layout List
16426 \labelwidthstring 00.00.0000
16427
16428 \family sans
16429 M-minus
16430 \family default
16431  
16432 \family typewriter
16433 math-insert 
16434 \backslash
16435 sim
16436 \family default
16437  -- The 
16438 \begin_inset Quotes eld
16439 \end_inset
16440
16441 of order
16442 \begin_inset Quotes erd
16443 \end_inset
16444
16445  sign 
16446 \begin_inset Formula $\sim$
16447 \end_inset
16448
16449 .
16450 \end_layout
16451
16452 \begin_layout List
16453 \labelwidthstring 00.00.0000
16454
16455 \family sans
16456 C-minus
16457 \family default
16458  
16459 \family typewriter
16460 math-insert 
16461 \backslash
16462 rightarrow
16463 \family default
16464  -- The arrow 
16465 \begin_inset Formula $\rightarrow$
16466 \end_inset
16467
16468  as in 
16469 \begin_inset Formula $\lim_{x\rightarrow0}$
16470 \end_inset
16471
16472 .
16473 \end_layout
16474
16475 \begin_layout List
16476 \labelwidthstring 00.00.0000
16477
16478 \family sans
16479 S-M-less
16480 \family default
16481  
16482 \family typewriter
16483 math-insert 
16484 \backslash
16485 leq
16486 \family default
16487  -- Less-or-equal 
16488 \begin_inset Formula $\leq$
16489 \end_inset
16490
16491 .
16492 \end_layout
16493
16494 \begin_layout List
16495 \labelwidthstring 00.00.0000
16496
16497 \family sans
16498 S-M-greater
16499 \family default
16500  
16501 \family typewriter
16502 math-insert 
16503 \backslash
16504 geq
16505 \family default
16506  -- Greater-or-equal 
16507 \begin_inset Formula $\geq$
16508 \end_inset
16509
16510 .
16511 \end_layout
16512
16513 \begin_layout List
16514 \labelwidthstring 00.00.0000
16515
16516 \family sans
16517 C-s\InsetSpace ~
16518 S-less
16519 \family default
16520  
16521 \family typewriter
16522 math-insert 
16523 \backslash
16524 ll
16525 \family default
16526  -- 
16527 \begin_inset Quotes eld
16528 \end_inset
16529
16530 Much less than
16531 \begin_inset Quotes erd
16532 \end_inset
16533
16534  
16535 \begin_inset Formula $\ll$
16536 \end_inset
16537
16538  (useful in physics)
16539 \end_layout
16540
16541 \begin_layout List
16542 \labelwidthstring 00.00.0000
16543
16544 \family sans
16545 C-s\InsetSpace ~
16546 S-greater
16547 \family default
16548  
16549 \family typewriter
16550 math-insert 
16551 \backslash
16552 gg
16553 \family default
16554  -- 
16555 \begin_inset Quotes eld
16556 \end_inset
16557
16558 Much greater than
16559 \begin_inset Quotes erd
16560 \end_inset
16561
16562  sign 
16563 \begin_inset Formula $\gg$
16564 \end_inset
16565
16566 .
16567 \end_layout
16568
16569 \begin_layout Subsection
16570 Standard math bindings
16571 \end_layout
16572
16573 \begin_layout List
16574 \labelwidthstring 00.00.0000
16575
16576 \family sans
16577 M-m\InsetSpace ~
16578 b
16579 \family default
16580  
16581 \family typewriter
16582 math-insert 
16583 \backslash
16584 overline
16585 \end_layout
16586
16587 \begin_layout List
16588 \labelwidthstring 00.00.0000
16589
16590 \family sans
16591 M-m\InsetSpace ~
16592 d
16593 \family default
16594  
16595 \family typewriter
16596 math-display
16597 \end_layout
16598
16599 \begin_layout List
16600 \labelwidthstring 00.00.0000
16601
16602 \family sans
16603 M-m\InsetSpace ~
16604 e
16605 \family default
16606  
16607 \family typewriter
16608 math-insert ^
16609 \end_layout
16610
16611 \begin_layout List
16612 \labelwidthstring 00.00.0000
16613
16614 \family sans
16615 M-m\InsetSpace ~
16616 f
16617 \family default
16618  
16619 \family typewriter
16620 math-insert 
16621 \backslash
16622 frac
16623 \end_layout
16624
16625 \begin_layout List
16626 \labelwidthstring 00.00.0000
16627
16628 \family sans
16629 M-m\InsetSpace ~
16630 g
16631 \family default
16632  
16633 \family typewriter
16634 math-greek
16635 \end_layout
16636
16637 \begin_layout List
16638 \labelwidthstring 00.00.0000
16639
16640 \family sans
16641 M-m\InsetSpace ~
16642 h
16643 \family default
16644  
16645 \family typewriter
16646 accent-circumflex
16647 \end_layout
16648
16649 \begin_layout List
16650 \labelwidthstring 00.00.0000
16651
16652 \family sans
16653 M-m\InsetSpace ~
16654 i
16655 \family default
16656  
16657 \family typewriter
16658 math-insert 
16659 \backslash
16660 int
16661 \end_layout
16662
16663 \begin_layout List
16664 \labelwidthstring 00.00.0000
16665
16666 \family sans
16667 M-m\InsetSpace ~
16668 l
16669 \family default
16670  
16671 \family typewriter
16672 math-limits
16673 \end_layout
16674
16675 \begin_layout List
16676 \labelwidthstring 00.00.0000
16677
16678 \family sans
16679 M-m\InsetSpace ~
16680 m
16681 \family default
16682  
16683 \family typewriter
16684 math-mode
16685 \end_layout
16686
16687 \begin_layout List
16688 \labelwidthstring 00.00.0000
16689
16690 \family sans
16691 M-m\InsetSpace ~
16692 n
16693 \family default
16694  
16695 \family typewriter
16696 math-number
16697 \end_layout
16698
16699 \begin_layout List
16700 \labelwidthstring 00.00.0000
16701
16702 \family sans
16703 M-m\InsetSpace ~
16704 o
16705 \family default
16706  
16707 \family typewriter
16708 math-insert 
16709 \backslash
16710 oint
16711 \end_layout
16712
16713 \begin_layout List
16714 \labelwidthstring 00.00.0000
16715
16716 \family sans
16717 M-m\InsetSpace ~
16718 p
16719 \family default
16720  
16721 \family typewriter
16722 math-insert 
16723 \backslash
16724 partial
16725 \end_layout
16726
16727 \begin_layout List
16728 \labelwidthstring 00.00.0000
16729
16730 \family sans
16731 M-m\InsetSpace ~
16732 r
16733 \family default
16734  
16735 \family typewriter
16736 math-insert 
16737 \backslash
16738 sqrt
16739 \end_layout
16740
16741 \begin_layout List
16742 \labelwidthstring 00.00.0000
16743
16744 \family sans
16745 M-m\InsetSpace ~
16746 s
16747 \family default
16748  
16749 \family typewriter
16750 math-insert 
16751 \backslash
16752 sqrt
16753 \end_layout
16754
16755 \begin_layout List
16756 \labelwidthstring 00.00.0000
16757
16758 \family sans
16759 M-m\InsetSpace ~
16760 u
16761 \family default
16762  
16763 \family typewriter
16764 math-insert 
16765 \backslash
16766 sum
16767 \end_layout
16768
16769 \begin_layout List
16770 \labelwidthstring 00.00.0000
16771
16772 \family sans
16773 M-m\InsetSpace ~
16774 v
16775 \family default
16776  
16777 \family typewriter
16778 math-insert 
16779 \backslash
16780 vec
16781 \end_layout
16782
16783 \begin_layout List
16784 \labelwidthstring 00.00.0000
16785
16786 \family sans
16787 M-m\InsetSpace ~
16788 x
16789 \family default
16790  
16791 \family typewriter
16792 math-insert _
16793 \end_layout
16794
16795 \begin_layout List
16796 \labelwidthstring 00.00.0000
16797
16798 \family sans
16799 M-m\InsetSpace ~
16800 8
16801 \family default
16802  
16803 \family typewriter
16804 math-insert 
16805 \backslash
16806 infty
16807 \end_layout
16808
16809 \begin_layout List
16810 \labelwidthstring 00.00.0000
16811
16812 \family sans
16813 M-m\InsetSpace ~
16814 S-G
16815 \family default
16816  
16817 \family typewriter
16818 math-greek-toggle
16819 \end_layout
16820
16821 \begin_layout List
16822 \labelwidthstring 00.00.0000
16823
16824 \family sans
16825 M-m\InsetSpace ~
16826 S-N
16827 \family default
16828  
16829 \family typewriter
16830 math-nonumber
16831 \end_layout
16832
16833 \begin_layout List
16834 \labelwidthstring 00.00.0000
16835
16836 \family sans
16837 M-m\InsetSpace ~
16838 S-period
16839 \family default
16840  
16841 \family typewriter
16842 accent-dot
16843 \end_layout
16844
16845 \begin_layout List
16846 \labelwidthstring 00.00.0000
16847
16848 \family sans
16849 M-m\InsetSpace ~
16850 S-asciitilde
16851 \family default
16852  
16853 \family typewriter
16854 accent-tilde
16855 \end_layout
16856
16857 \begin_layout List
16858 \labelwidthstring 00.00.0000
16859
16860 \family sans
16861 M-m\InsetSpace ~
16862 S-apostrophe
16863 \family default
16864  
16865 \family typewriter
16866 math-insert 
16867 \backslash
16868 prime
16869 \end_layout
16870
16871 \begin_layout List
16872 \labelwidthstring 00.00.0000
16873
16874 \family sans
16875 M-m\InsetSpace ~
16876 S-parenleft
16877 \family default
16878  
16879 \family typewriter
16880 math-delim ( )
16881 \end_layout
16882
16883 \begin_layout List
16884 \labelwidthstring 00.00.0000
16885
16886 \family sans
16887 M-m\InsetSpace ~
16888 S-bracketleft
16889 \family default
16890  
16891 \family typewriter
16892 math-delim [ ]
16893 \end_layout
16894
16895 \begin_layout List
16896 \labelwidthstring 00.00.0000
16897
16898 \family sans
16899 M-m\InsetSpace ~
16900 S-braceleft
16901 \family default
16902  
16903 \family typewriter
16904 math-delim { }
16905 \end_layout
16906
16907 \begin_layout List
16908 \labelwidthstring 00.00.0000
16909
16910 \family sans
16911 M-m\InsetSpace ~
16912 S-less
16913 \family default
16914  
16915 \family typewriter
16916 math-delim langle rangle
16917 \end_layout
16918
16919 \begin_layout List
16920 \labelwidthstring 00.00.0000
16921
16922 \family sans
16923 M-m\InsetSpace ~
16924 S-greater
16925 \family default
16926  
16927 \family typewriter
16928 math-delim rangle langle
16929 \end_layout
16930
16931 \begin_layout List
16932 \labelwidthstring 00.00.0000
16933
16934 \family sans
16935 M-m\InsetSpace ~
16936 S-bar
16937 \family default
16938  
16939 \family typewriter
16940 math-delim | |
16941 \end_layout
16942
16943 \begin_layout List
16944 \labelwidthstring 00.00.0000
16945
16946 \family sans
16947 M-m\InsetSpace ~
16948 S-plus
16949 \family default
16950  
16951 \family typewriter
16952 math-insert 
16953 \backslash
16954 pm
16955 \end_layout
16956
16957 \begin_layout List
16958 \labelwidthstring 00.00.0000
16959
16960 \family sans
16961 M-m\InsetSpace ~
16962 S-equal
16963 \family default
16964  
16965 \family typewriter
16966 math-insert 
16967 \backslash
16968 neq
16969 \end_layout
16970
16971 \begin_layout Subsection
16972 Other Accelerators
16973 \end_layout
16974
16975 \begin_layout List
16976 \labelwidthstring 00.00.0000
16977
16978 \family sans
16979 M-k\InsetSpace ~
16980 o
16981 \family default
16982  
16983 \family typewriter
16984 keymap-off
16985 \end_layout
16986
16987 \begin_layout List
16988 \labelwidthstring 00.00.0000
16989
16990 \family sans
16991 M-k\InsetSpace ~
16992 t
16993 \family default
16994  
16995 \family typewriter
16996 keymap-toggle
16997 \end_layout
16998
16999 \begin_layout List
17000 \labelwidthstring 00.00.0000
17001
17002 \family sans
17003 M-k\InsetSpace ~
17004 x
17005 \family default
17006  
17007 \family typewriter
17008 keymap-off
17009 \end_layout
17010
17011 \begin_layout List
17012 \labelwidthstring 00.00.0000
17013
17014 \family sans
17015 M-k\InsetSpace ~
17016 1
17017 \family default
17018  
17019 \family typewriter
17020 keymap-primary
17021 \end_layout
17022
17023 \begin_layout List
17024 \labelwidthstring 00.00.0000
17025
17026 \family sans
17027 M-k\InsetSpace ~
17028 2
17029 \family default
17030  
17031 \family typewriter
17032 keymap-secondary
17033 \end_layout
17034
17035 \end_body
17036 \end_document