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