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