]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Documentation for modules.
[features.git] / lib / doc / Customization.lyx
1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 286
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_manifest
47 \end_manifest
48
49 \begin_body
50
51 \begin_layout Title
52 Customizing LyX: Features for the Advanced User
53 \end_layout
54
55 \begin_layout Author
56 by the LyX Team
57 \begin_inset Foot
58 status collapsed
59
60 \begin_layout Standard
61 \noindent
62 Principal maintainer of this file is 
63 \noun on
64 Mike Ressler
65 \noun default
66 .
67  If you have comments or error corrections, please send them to the LyX
68  Documentation mailing list, <lyx-docs@lists.lyx.org>.
69 \end_layout
70
71 \end_inset
72
73  
74 \end_layout
75
76 \begin_layout Standard
77 \begin_inset LatexCommand tableofcontents
78
79 \end_inset
80
81
82 \end_layout
83
84 \begin_layout Chapter
85 Introduction
86 \end_layout
87
88 \begin_layout Standard
89 This manual covers the customization features present in LyX.
90  In it, we discuss issues like keyboard shortcuts, screen previewing options,
91  printer options, sending commands to LyX via the LyX Server, internationalizati
92 on, installing new LaTeX classes and LyX layouts, etc.
93  We can't possibly hope to touch on everything you can change---our developers
94  add new features faster than we can document them---but we will explain
95  the most common customizations and hopefully point you in the right direction
96  for some of the more obscure ones.
97 \end_layout
98
99 \begin_layout Chapter
100 LyX configuration files
101 \end_layout
102
103 \begin_layout Standard
104 \begin_inset LatexCommand label
105 name "chap:config"
106
107 \end_inset
108
109 This chapter aims to help you to find your way through the LyX configuration
110  files.
111  Before continuing to read this chapter, you should find out where your
112  LyX library directory is by using 
113 \family sans
114 \bar under
115 H
116 \bar default
117 elp\SpecialChar \menuseparator
118 About\InsetSpace ~
119 Ly
120 \bar under
121 X
122 \family default
123 \bar default
124 .
125  This directory is the place where LyX places its system-wide configuration
126  files, and we will simply name it 
127 \family typewriter
128 LyXDir
129 \family default
130  in the remainder of this document.
131  
132 \end_layout
133
134 \begin_layout Section
135 What's in 
136 \family typewriter
137 LyXDir
138 \family default
139 ?
140 \end_layout
141
142 \begin_layout Standard
143
144 \family typewriter
145 LyXDir
146 \family default
147  and its sub-directories contain a number of files and that can be used
148  to customise LyX's behaviour.
149  You can change many of these files from within LyX itself through the 
150 \family sans
151 \bar under
152 T
153 \bar default
154 ools\SpecialChar \menuseparator
155
156 \bar under
157 P
158 \bar default
159 references
160 \family default
161  dialog.
162  Most customization that you might want to do to LyX is possible through
163  this dialog.
164  However, many other inner aspects of LyX can be customized by modifying
165  the files in 
166 \family typewriter
167 LyXDir
168 \family default
169 .
170  They fall in different categories, described in the following subsections.
171 \end_layout
172
173 \begin_layout Subsection
174 Automatically generated files
175 \end_layout
176
177 \begin_layout Standard
178 These files are generated when you configure LyX.
179  They contain various default values that are guessed by inspection.
180  In general, it is not a good idea to modify them, since they might be overwritt
181 en at any time.
182 \end_layout
183
184 \begin_layout List
185 \labelwidthstring 00.00.0000
186
187 \family typewriter
188 \series medium
189 lyxrc.defaults
190 \family default
191 \series default
192  contains defaults for various commands.
193 \end_layout
194
195 \begin_layout List
196 \labelwidthstring 00.00.0000
197
198 \family typewriter
199 \series medium
200 packages.lst
201 \family default
202 \series default
203  contains the list of packages that have been recognized by LyX.
204  It is currently unused by the LyX program itself, but the information extracted
205 , and more, is made available with 
206 \family sans
207 \bar under
208 H
209 \bar default
210 elp\SpecialChar \menuseparator
211 L
212 \bar under
213 a
214 \bar default
215 TeX\InsetSpace ~
216 Configuration
217 \family default
218 .
219 \end_layout
220
221 \begin_layout List
222 \labelwidthstring 00.00.0000
223
224 \family typewriter
225 \series medium
226 textclass.lst
227 \family default
228 \series default
229  is the list of text classes that have been found in your 
230 \family typewriter
231 layout/
232 \family default
233  directory, along with the associated LaTeX document class and their description.
234 \end_layout
235
236 \begin_layout List
237 \labelwidthstring 00.00.0000
238
239 \family typewriter
240 doc/LaTeXConfig.lyx
241 \family default
242  is automatically generated during configuration from the file 
243 \family typewriter
244 LaTeXConfig.lyx.in
245 \family default
246 .
247 \end_layout
248
249 \begin_layout Subsection
250 Directories
251 \end_layout
252
253 \begin_layout List
254 \labelwidthstring 00.00.0000
255
256 \family typewriter
257 \series medium
258 bind/
259 \family default
260 \series default
261  this directory contains files with the extension 
262 \family typewriter
263 .bind
264 \family default
265  that define the keybindings used in LyX (see section\InsetSpace ~
266
267 \begin_inset LatexCommand ref
268 reference "sec:bindings"
269
270 \end_inset
271
272 ).
273  If there exists an internationalized version of the bind file named 
274 \family typewriter
275 $LANG_xxx.bind
276 \family default
277 , that will be used first.
278  See Chapter\InsetSpace ~
279
280 \begin_inset LatexCommand ref
281 reference "chap:i18n"
282
283 \end_inset
284
285 , and section 
286 \begin_inset LatexCommand ref
287 reference "sec:bindings"
288
289 \end_inset
290
291 for details.
292 \end_layout
293
294 \begin_layout List
295 \labelwidthstring 00.00.0000
296
297 \family typewriter
298 \series medium
299 clipart/
300 \family default
301 \series default
302  contains graphics files that can be included in documents.
303  
304 \end_layout
305
306 \begin_layout List
307 \labelwidthstring 00.00.0000
308
309 \family typewriter
310 \series medium
311 doc/
312 \family default
313 \series default
314  contains LyX documentation files (including the one you are currently reading).
315  The file 
316 \family typewriter
317 LaTeXConfig.lyx
318 \family default
319  deserves special attention, as noted above.
320  If there exists an internationalized version of the help-document with
321  
322 \family typewriter
323 $LANG_
324 \family default
325  prepended to the name, that will be used first.
326  See Chapter\InsetSpace ~
327
328 \begin_inset LatexCommand ref
329 reference "chap:i18n"
330
331 \end_inset
332
333  for details.
334 \end_layout
335
336 \begin_layout List
337 \labelwidthstring 00.00.0000
338
339 \family typewriter
340 \series medium
341 examples/
342 \family default
343 \series default
344  contains example files that explain how to use some features.
345  In the file browser, press the 
346 \family sans
347 Examples
348 \family default
349  button to get there.
350 \end_layout
351
352 \begin_layout List
353 \labelwidthstring 00.00.0000
354
355 \family typewriter
356 images/
357 \family default
358  contains image files that are used by the 
359 \family sans
360 Document
361 \family default
362  dialog.
363  In addition, it also contains the individual icons used in the toolbar
364  and the banners that can be shown when LyX is launched.
365 \end_layout
366
367 \begin_layout List
368 \labelwidthstring 00.00.0000
369
370 \family typewriter
371 \series medium
372 kbd/
373 \family default
374 \series default
375  contains keyboard keymapping files.
376  See Chapter\InsetSpace ~
377
378 \begin_inset LatexCommand ref
379 reference "sec:keymap"
380
381 \end_inset
382
383  for details.
384 \end_layout
385
386 \begin_layout List
387 \labelwidthstring 00.00.0000
388
389 \family typewriter
390 \series medium
391 layouts/
392 \family default
393 \series default
394  contains the text class files described in Chapter\InsetSpace ~
395
396 \begin_inset LatexCommand ref
397 reference "chap:textclass"
398
399 \end_inset
400
401 .
402 \end_layout
403
404 \begin_layout List
405 \labelwidthstring 00.00.0000
406
407 \family typewriter
408 scripts/
409 \family default
410  contains some files that demonstrate the capabilities of the 
411 \family sans
412 External\InsetSpace ~
413 Template
414 \family default
415  feature.
416 \end_layout
417
418 \begin_layout List
419 \labelwidthstring 00.00.0000
420
421 \family typewriter
422 templates/
423 \family default
424  contains the standard LyX template files described in Chapter\InsetSpace ~
425
426 \begin_inset LatexCommand ref
427 reference "sec:templates"
428
429 \end_inset
430
431 .
432 \end_layout
433
434 \begin_layout List
435 \labelwidthstring 00.00.0000
436
437 \family typewriter
438 tex/
439 \family default
440  contains some LaTeX cls files distributed with LyX.
441 \end_layout
442
443 \begin_layout List
444 \labelwidthstring 00.00.0000
445
446 \family typewriter
447 ui/
448 \family default
449  contains files with the extension 
450 \family typewriter
451 .ui
452 \family default
453  that define the user interface to LyX.
454  That is, the files define which items appear in which menus and the items
455  appearing on the toolbar.
456  See Chapter\InsetSpace ~
457
458 \begin_inset LatexCommand ref
459 reference "sec:ui"
460
461 \end_inset
462
463  for details.
464 \end_layout
465
466 \begin_layout Subsection
467 Files you don't want to modify
468 \end_layout
469
470 \begin_layout Standard
471 These files are used internally by LyX and you generally do not need to
472  modify them unless you are a developer.
473 \end_layout
474
475 \begin_layout List
476 \labelwidthstring 00.00.0000
477
478 \family typewriter
479 \series medium
480 CREDITS
481 \family default
482 \series default
483  this file contains the list of LyX developers.
484  The contents are displayed with the menu entry 
485 \family sans
486 \bar under
487 H
488 \bar default
489 elp\SpecialChar \menuseparator
490 About\InsetSpace ~
491 LyX
492 \family default
493 .
494 \end_layout
495
496 \begin_layout List
497 \labelwidthstring 00.00.0000
498
499 \family typewriter
500 \series medium
501 chkconfig.ltx
502 \family default
503 \series default
504  this is a LaTeX script used during the configuration process.
505  Do not run directly.
506 \end_layout
507
508 \begin_layout List
509 \labelwidthstring 00.00.0000
510
511 \family typewriter
512 \series medium
513 configure
514 \family default
515 \series default
516  this is the script that is used to re-configure LyX.
517  It creates configuration files in the directory it was run from.
518 \end_layout
519
520 \begin_layout Subsection
521 Other files needing a line or two...
522 \end_layout
523
524 \begin_layout List
525 \labelwidthstring 00.00.0000
526
527 \family typewriter
528 encodings
529 \family default
530  this contains tables describing how different character encodings can be
531  mapped to unicode
532 \end_layout
533
534 \begin_layout List
535 \labelwidthstring 00.00.0000
536
537 \family typewriter
538 external_templates
539 \family default
540  this file contains the templates available to the new 
541 \family sans
542 External\InsetSpace ~
543 Template
544 \family default
545  feature.
546 \end_layout
547
548 \begin_layout List
549 \labelwidthstring 00.00.0000
550
551 \family typewriter
552 languages
553 \family default
554  this file contains a list of all the languages currently supported by LyX.
555 \end_layout
556
557 \begin_layout Section
558 Your local configuration directory
559 \end_layout
560
561 \begin_layout Standard
562 Even if you are using LyX as an unprivileged user, you might want to change
563  LyX configuration for your own use.
564  The 
565 \family typewriter
566 UserDir
567 \family default
568  directory contains all your personal configuration files.
569  This is the directory described as 
570 \begin_inset Quotes eld
571 \end_inset
572
573 user directory
574 \begin_inset Quotes erd
575 \end_inset
576
577  in 
578 \family sans
579 \bar under
580 H
581 \bar default
582 elp\SpecialChar \menuseparator
583 About\InsetSpace ~
584 LyX
585 \family default
586 .
587  This directory is used as a mirror of 
588 \family typewriter
589 LyXDir
590 \family default
591 , which means that every file in 
592 \family typewriter
593 UserDir
594 \family default
595  is a replacement for the corresponding file in 
596 \family typewriter
597 LyXDir
598 \family default
599 .
600  Any configuration file described in the above sections can be placed either
601  in the system-wide directory, in which case it will affect all users, or
602  in your local directory for your own use.
603 \end_layout
604
605 \begin_layout Standard
606 To make things clearer, let's provide a few examples:
607 \end_layout
608
609 \begin_layout Itemize
610 The preferences set in the 
611 \family sans
612 \bar under
613 T
614 \bar default
615 ools\SpecialChar \menuseparator
616
617 \bar under
618 P
619 \bar default
620 references
621 \family default
622  dialog are saved to a file 
623 \family typewriter
624 preferences
625 \family default
626  in 
627 \family typewriter
628 UserDir
629 \family default
630 .
631 \end_layout
632
633 \begin_layout Itemize
634 When you reconfigure using 
635 \family sans
636 \bar under
637 T
638 \bar default
639 ools\SpecialChar \menuseparator
640
641 \bar under
642 R
643 \bar default
644 econfigure
645 \family default
646 , LyX runs 
647 \family typewriter
648 configure
649 \family default
650  and the resulting files are written in your local configuration directory
651  (see section\InsetSpace ~
652
653 \begin_inset LatexCommand ref
654 reference "sec:autodetected"
655
656 \end_inset
657
658  to have a list of the 
659 \family typewriter
660 preferences
661 \family default
662  settings affected by this section).
663  This means that any additional text class file that you might have added
664  in 
665 \family typewriter
666 UserDir/layouts
667 \family default
668  will be added to the list of classes in the 
669 \family sans
670 \bar under
671 L
672 \bar default
673 ayout\SpecialChar \menuseparator
674
675 \bar under
676 D
677 \bar default
678 ocument
679 \family default
680  dialog.
681 \end_layout
682
683 \begin_layout Itemize
684 Similarly, if you have installed some LaTeX document classes in your home
685  directory, that LaTeX can find with your 
686 \family typewriter
687 TEXINPUTS
688 \family default
689  path, they will show up in your list of text classes.
690 \begin_inset Foot
691 status collapsed
692
693 \begin_layout Standard
694 as long as LyX or yourself have a 
695 \family typewriter
696 .layout
697 \family default
698  file for it, of course.
699 \end_layout
700
701 \end_inset
702
703
704 \end_layout
705
706 \begin_layout Itemize
707 If you get some updated documentation from LyX ftp site and cannot install
708  it because you do not have sysadmin rights on your system, you can just
709  copy the files in 
710 \family typewriter
711 UserDir/doc/
712 \family default
713  and the items in the 
714 \family sans
715 \bar under
716 H
717 \bar default
718 elp
719 \family default
720  menu will open them!
721 \end_layout
722
723 \begin_layout Section
724 Running LyX with multiple configurations
725 \end_layout
726
727 \begin_layout Standard
728 The configuration freedom of the local configuration directory may not suffice
729  if you want to have more than one configuration at your disposal.
730  For example, you may want to be use different key bindings or printer settings
731  at different times.
732  You can achieve this by having several such directories.
733  You then specify which directory to use at run-time.
734 \end_layout
735
736 \begin_layout Standard
737 Invoking LyX with the command line switch 
738 \family typewriter
739 -userdir
740 \family default
741  
742 \emph on
743 <some directory>
744 \emph default
745  instructs the program to read the configuration from that directory, and
746  not from the default directory (you can determine the default directory
747  by running LyX without this switch as described above).
748  If this directory does not exist, LyX offers to create it for you, just
749  like it does for the default directory on the first time you run the program.
750  You can modify the configuration options in this additional 
751 \family typewriter
752 Userdir
753 \family default
754  exactly as you would for the default directory.
755  These directories are completely independent (but read on).
756  Note that setting the environment variable 
757 \family typewriter
758 LYX_USERDIR_15x
759 \family default
760  to some value has exactly the same effect
761 \family typewriter
762 .
763 \end_layout
764
765 \begin_layout Standard
766 Having several configurations also requires more maintenance: if you want
767  to add a new layout to 
768 \family typewriter
769 Userdir/layouts
770 \family default
771  which you want available from all your configurations, you must add it
772  to each directory separately.
773  You can avoid this with the following trick: after LyX creates the additional
774  directory, most of the subdirectories (see above) are empty.
775  If you want the new configuration to mirror an existing one, replace the
776  empty subdirectory with a symbolic link to the matching subdirectory in
777  the existing configuration.
778  Take care with the 
779 \family typewriter
780 \series medium
781 doc/
782 \family default
783 \series default
784  subirectory, however, since it contains a file written by the configuration
785  script (also accessible through 
786 \family sans
787 \bar under
788 T
789 \bar default
790 ools\SpecialChar \menuseparator
791
792 \bar under
793 R
794 \bar default
795 econfigure 
796 \begin_inset LatexCommand ref
797 reference "sec:autodetected"
798
799 \end_inset
800
801 )
802 \family default
803  which is configuration-specific.
804 \end_layout
805
806 \begin_layout Chapter
807 The 
808 \family sans
809 \bar under
810 P
811 \bar default
812 references
813 \family default
814  dialog
815 \end_layout
816
817 \begin_layout Section
818 Using the dialog for the first time
819 \end_layout
820
821 \begin_layout Standard
822 The 
823 \family typewriter
824 UserDir/preferences
825 \family default
826  file will contain only changes that you have made to the default behaviour,
827  some of which is hard-coded into LyX and some of which is contained in
828  the system file 
829 \family typewriter
830 LyXDir/lyxrc.defaults
831 \family default
832 .
833  Note that in both files lines beginning with a 
834 \begin_inset Quotes eld
835 \end_inset
836
837
838 \family typewriter
839 #
840 \family default
841
842 \begin_inset Quotes erd
843 \end_inset
844
845  are just comments and not interpreted.
846  However, only system administrators should edit 
847 \family typewriter
848 LyXDir/lyxrc
849 \family default
850 .
851  Users should use the 
852 \family sans
853 \bar under
854 T
855 \bar default
856 ools\SpecialChar \menuseparator
857
858 \bar under
859 P
860 \bar default
861 references
862 \family default
863  dialog to create and modify their own 
864 \family typewriter
865 UserDir/preferences
866 \family default
867  file.
868 \end_layout
869
870 \begin_layout Standard
871 We hope that the 
872 \family sans
873 \bar under
874 T
875 \bar default
876 ools\SpecialChar \menuseparator
877
878 \bar under
879 P
880 \bar default
881 references
882 \family default
883  dialog will be largely self-explanatory.
884  Almost all the commands have an associated comment, so you shouldn't have
885  too much trouble modifying it to taste.
886  Before we highlight a few of the more important commands below, however,
887  a word of warning: 
888 \family sans
889 Apply
890 \family default
891 ing some of your changes (e.g., screen fonts) will have an instant effect.
892  Others (e.g.
893  changing the bind file) will not.
894  If nothing appears to have changed, just 
895 \family sans
896 Save
897 \family default
898  the changes and restart LyX.
899 \end_layout
900
901 \begin_layout Section
902 On-screen fonts
903 \end_layout
904
905 \begin_layout Standard
906 The font used to display your documents on the LyX screen is very important,
907  since you'll be reading all your documents with this font.
908  Therefore it is important that the font is as readable and good-looking
909  as possible.
910  The LyX team tried to provide the best possible default font for you, but
911  since practically all X11 systems are different, it's likely that the default
912  fonts will be sub-optimal on your system.
913  Fortunately, you can do something about this.
914  Before we explain how to do this, you should learn a bit more about fonts
915  so that you are better prepared for choosing your fonts, because it is
916  a trade-off that is specific to your preferences and the capabilities of
917  your system.
918 \end_layout
919
920 \begin_layout Standard
921 Notice that this section only deals with the fonts on the 
922 \emph on
923 screen
924 \emph default
925  inside the LyX window.
926  The fonts that appear on the 
927 \emph on
928 paper
929 \emph default
930  
931 \emph on
932 output
933 \emph default
934  are independent from these fonts, and are determined by the document class.
935  Read the 
936 \emph on
937 User's Guide
938 \emph default
939  to learn how to change the font of the printed version of your document.
940 \end_layout
941
942 \begin_layout Standard
943 Basically, screen fonts come in two different kinds: scalable outline fonts
944  and non-scalable bitmap fonts.
945  This distinction seems a bit arbitrary, since non-scalable fonts are actually
946  scalable in most modern font renderers.
947  The difference lies in the 
948 \emph on
949 quality
950 \emph default
951  of the scaling, and the 
952 \emph on
953 speed
954 \emph default
955  of display.
956  The most important decision is thus whether you should use non-scalable
957  bitmap fonts or scalable outline fonts.
958 \end_layout
959
960 \begin_layout Standard
961 The scalable fonts are built from 
962 \emph on
963 outlines
964 \emph default
965  of the single glyphs (i.e.
966  characters) in the font.
967  This means that each glyph is defined using mathematical curves that are
968  well suited for scaling to any requested size.
969  This mathematical definition is interpreted by the font renderer and turned
970  into a small picture composed of pixels according to which size and glyph,
971  the programmer requests.
972  This means that scalable fonts will look pretty good in all sizes.
973  Well, almost all sizes.
974  Since scalable fonts are defined in an abstract way, it can be hard to
975  provide a good rendering at small sizes, where each pixel has to be very
976  carefully computed to provide a good image.
977  Technically it is possible to do this from the mathematical definition,
978  but in order to keep the rendering reasonably fast, tradeoffs have to be
979  made, and the result is that scalable fonts can be difficult to read at
980  small sizes.
981 \end_layout
982
983 \begin_layout Standard
984 Bitmap fonts on the other hand, are defined by bitmap graphics from the
985  start, so they will look good at all the sizes they are meant for.
986  However, they don't scale well, because in order to scale a glyph, each
987  pixel is enlarged into several pixels.
988  It is the same effect that happens if you try to enlarge a picture in 
989 \family typewriter
990 xv
991 \family default
992  or any other picture manipulation program.
993  In order to relieve this effect, bitmap fonts are typically provided in
994  several fixed sizes typically from around 8 pixels high up to 34 pixels
995  or so high in steps according to what is believed to be useful.
996  The advantage of bitmap fonts is that no complicated computations are necessary
997  to display each glyph, so bitmap fonts are thus faster displayed than scalable
998  fonts.
999  The disadvantage is that sizes that don't exists as fixed versions have
1000  to be scaled by doubling pixels, and thus look bad.
1001 \end_layout
1002
1003 \begin_layout Standard
1004 The net result of all this, is that bitmap fonts are generally best for
1005  the small sizes, where they are available, while scalable fonts are generally
1006  best for large sizes.
1007  The logical conclusion would thus be to use bitmap fonts for the small
1008  sizes, and scalable fonts for the large sizes.
1009  Unfortunately, this is not a good idea, since bitmap fonts and scalable
1010  fonts are not designed to be used together, so the overall look of such
1011  a scheme would be bad.
1012  The best you can do is thus to try both schemes and decide for yourself
1013  what suits you.
1014 \end_layout
1015
1016 \begin_layout Standard
1017 By default, LyX uses non-scalable bitmap fonts (when using the XForms frontend).
1018  For serif fonts, 
1019 \emph on
1020 times
1021 \emph default
1022  is used, for sans serif fonts, 
1023 \emph on
1024 helvetica
1025 \emph default
1026  is used, while 
1027 \emph on
1028 courier
1029 \emph default
1030  is used as the monospaced/typewriter font.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 In the following, we will describe what to do if the text does not look
1035  good in LyX.
1036  We'll start with the most important parameters: DPI and font zoom.
1037 \end_layout
1038
1039 \begin_layout Subsection
1040 DPI setting and Font Zoom
1041 \end_layout
1042
1043 \begin_layout Standard
1044 LyX automatically tries to scale the fonts to look as close as the paper
1045  output size as possible, except for the so-called font zoom factor.
1046 \end_layout
1047
1048 \begin_layout Standard
1049 In order for this to work on all systems, it relies on the screen DPI (dots
1050  per inch) setting to be correct.
1051  The DPI setting for your system is autodetected by LyX using the information
1052  the X server can provide.
1053  You can check what LyX autodetects the DPI setting to, by running LyX as
1054  
1055 \family typewriter
1056 lyx -dbg 2
1057 \family default
1058 .
1059 \end_layout
1060
1061 \begin_layout Standard
1062 On many systems, X is not set up correctly, so you should check that it
1063  is correct by hand.
1064  Run 
1065 \begin_inset Quotes eld
1066 \end_inset
1067
1068
1069 \family typewriter
1070 xdpyinfo | more
1071 \family default
1072
1073 \begin_inset Quotes erd
1074 \end_inset
1075
1076  and write down what the DPI is for the resolution you use (this will be
1077  close to the value LyX detects).
1078  It is the number mentioned as 
1079 \begin_inset Quotes eld
1080 \end_inset
1081
1082 resolution
1083 \begin_inset Quotes erd
1084 \end_inset
1085
1086 .
1087  Also write down the number of pixels you have in the width (the first number
1088  under 
1089 \begin_inset Quotes eld
1090 \end_inset
1091
1092 dimensions
1093 \begin_inset Quotes erd
1094 \end_inset
1095
1096 ).
1097 \end_layout
1098
1099 \begin_layout Standard
1100 Then get the good old ruler out of the closet, and measure the width of
1101  the visible screen-image on your monitor.
1102  Convert this measurement to inches if you used a centimeter ruler by dividing
1103  by 2.54.
1104  Now you can determine the correct DPI setting for your screen by dividing
1105  the number of pixels in the width by the width of the screen-image on the
1106  monitor.
1107  If this number is more than, say, 5 DPI from the detected value, you should
1108  either fix the X setup, or at least tell LyX that the DPI is different
1109  than the detected value.
1110 \end_layout
1111
1112 \begin_layout Standard
1113 If you can't fix the X setup (which of course is best since other programs
1114  than LyX will benefit from this as well), you can tell LyX the correct
1115  DPI using the 
1116 \family sans
1117 Preferences
1118 \family default
1119  dialog.
1120 \end_layout
1121
1122 \begin_layout Standard
1123 If the text is too small or too big for your taste, you should fiddle with
1124  the font zoom setting.
1125  This setting is used to scale the point size of the text.
1126  If your DPI setting is correct, and the font zoom setting is set to 100,
1127  this means that LyX will try to display the text exactly the same size
1128  as it will appear on the paper-output.
1129  If you set the zoom factor to 200, the text will try to be 2 times as big
1130  as on paper.
1131  Of course, this will only happen if LyX can find a font that has the appropriat
1132 e size, which you can't count on.
1133  Since LyX is a WYSIWYM system anyways, this limitation isn't much of an
1134  issue.
1135 \end_layout
1136
1137 \begin_layout Standard
1138 The default font zoom setting is 150, since a monitor is typically wider
1139  than a piece of paper, but you should try to fiddle with it through the
1140  
1141 \family sans
1142 Font\InsetSpace ~
1143
1144 \bar under
1145 Z
1146 \bar default
1147 oom
1148 \family default
1149  setting in the 
1150 \family sans
1151 Preferences
1152 \family default
1153  dialog to find a size that you like.
1154  When you've found a setting that seems to work nicely for you (tip: use
1155  the 
1156 \family sans
1157 \bar under
1158 A
1159 \bar default
1160 pply
1161 \family default
1162  button to keep the dialog open while you experiment), you can make this
1163  setting the default by using the 
1164 \family sans
1165 \bar under
1166 S
1167 \bar default
1168 ave
1169 \family default
1170  button.
1171 \end_layout
1172
1173 \begin_layout Standard
1174 While it is often possible to find a suitable size for the text on the screen,
1175  this doesn't necessarily mean that the fonts are the best ones available
1176  on your system.
1177  In order to help you get the most out of your system, you can use the font
1178  definition commands to fine-tune the look of the text in greater detail
1179  than merely size.
1180 \end_layout
1181
1182 \begin_layout Subsection
1183 Font definition commands
1184 \end_layout
1185
1186 \begin_layout Standard
1187 As mentioned, LyX uses non-scalable bitmap fonts by default with the XForms
1188  frontend.
1189  For serif fonts, 
1190 \emph on
1191 times
1192 \emph default
1193  is used, for sans serif fonts, 
1194 \emph on
1195 helvetica
1196 \emph default
1197  is used, while 
1198 \emph on
1199 courier
1200 \emph default
1201  is used as the monospaced/typewriter font.
1202 \end_layout
1203
1204 \begin_layout Standard
1205 You can change all of these from within the 
1206 \family sans
1207 Preferences
1208 \family default
1209  dialog.
1210  The number of fonts that are available on different systems vary, but the
1211  program 
1212 \family typewriter
1213 xfontsel
1214 \family default
1215  should be available everywhere.
1216  Use that program to find candidate fonts.
1217  When you've found a font that you like, try to insert the first two elements
1218  of the name (called 
1219 \begin_inset Quotes eld
1220 \end_inset
1221
1222 fndry
1223 \begin_inset Quotes erd
1224 \end_inset
1225
1226  and 
1227 \begin_inset Quotes eld
1228 \end_inset
1229
1230 fmly
1231 \begin_inset Quotes erd
1232 \end_inset
1233
1234  in 
1235 \family typewriter
1236 xfontsel
1237 \family default
1238 ) in the appropriate field in the 
1239 \family sans
1240 Preferences
1241 \family default
1242  dialog and press 
1243 \family sans
1244 \bar under
1245 A
1246 \bar default
1247 pply
1248 \family default
1249 .
1250  LyX will then reformat your document using the new font, and if you like
1251  the font, you should 
1252 \family sans
1253 \bar under
1254 S
1255 \bar default
1256 ave
1257 \family default
1258  it.
1259  One place to start for a new font is to see if the scalable font 
1260 \begin_inset Quotes eld
1261 \end_inset
1262
1263 utopia
1264 \begin_inset Quotes erd
1265 \end_inset
1266
1267  is available.
1268  Tip: You can see whether a font is a bitmap font or a scalable font by
1269  checking the 
1270 \begin_inset Quotes eld
1271 \end_inset
1272
1273 resx
1274 \begin_inset Quotes erd
1275 \end_inset
1276
1277  or 
1278 \begin_inset Quotes eld
1279 \end_inset
1280
1281 resy
1282 \begin_inset Quotes erd
1283 \end_inset
1284
1285  fields in 
1286 \family typewriter
1287 xfontsel
1288 \family default
1289 .
1290  If the value 0 is available, the font is scalable.
1291  If the value 0 isn't available, the font is a bitmap font.
1292 \end_layout
1293
1294 \begin_layout Standard
1295 Before you go about scrapping a bitmap font because the larger sizes look
1296  
1297 \begin_inset Quotes eld
1298 \end_inset
1299
1300 blocky
1301 \begin_inset Quotes erd
1302 \end_inset
1303
1304 , you should toggle the 
1305 \begin_inset Quotes eld
1306 \end_inset
1307
1308 Use scalable fonts
1309 \begin_inset Quotes erd
1310 \end_inset
1311
1312  button.
1313  This is only useful if you use bitmap fonts, because only these don't scale
1314  well.
1315  If you define this flag, LyX will only use the fixed font sizes that are
1316  available, and this guarantees that all bitmap fonts look well.
1317  (You can see which individual font sizes are available with the 
1318 \family typewriter
1319 xlsfonts
1320 \family default
1321  command.
1322  Try 
1323 \family typewriter
1324 man xlsfonts
1325 \family default
1326 .) However, the prize is that the difference between the size of the fonts
1327  on screen and the size of fonts on paper will be larger because LyX will
1328  have to be satisfied with the closest available size, and not try to scale
1329  a size to fit.
1330  Also, you can risk that some logically different sizes, such as 
1331 \family sans
1332 Large
1333 \family default
1334  and 
1335 \family sans
1336 Larger
1337 \family default
1338 , will be mapped to the same screen font, making it hard for you to see
1339  the difference on screen.
1340  We've decided not to use scalable fonts by default because of these artifacts,
1341  but since LyX is a WYSIWYM system, many people like to use the flag anyways,
1342  well-knowing that the font size on the screen can't be trusted.
1343  But remember that this flag only makes a difference when you use bitmap
1344  fonts.
1345  Scalable fonts won't be affected for reasons you should understand by now.
1346 \end_layout
1347
1348 \begin_layout Standard
1349 One final note regarding this flag: you should know that there is nothing
1350  wrong with using bitmap and scalable fonts at the same time for different
1351  purposes.
1352  For instance, it's common to use the scalable 
1353 \begin_inset Quotes eld
1354 \end_inset
1355
1356 Utopia
1357 \begin_inset Quotes erd
1358 \end_inset
1359
1360  for the serif text together with a bitmap version of 
1361 \begin_inset Quotes eld
1362 \end_inset
1363
1364 Helvetica
1365 \begin_inset Quotes erd
1366 \end_inset
1367
1368 .
1369  And you can safely select the 
1370 \begin_inset Quotes eld
1371 \end_inset
1372
1373 Use scalable fonts
1374 \begin_inset Quotes erd
1375 \end_inset
1376
1377  button without worries: It will only apply to the Helvetica font.
1378 \end_layout
1379
1380 \begin_layout Standard
1381 Sometimes the artifacts introduced by use of the flag can be relieved by
1382  using the fine-detail screen font sizes which defines which point sizes
1383  the different logical font sizes correspond to.
1384  Run LyX as 
1385 \family typewriter
1386 lyx -dbg 513
1387 \family default
1388  to see exactly what concrete fonts the logical sizes map to, and try adjusting
1389  the corresponding entries in the 
1390 \family sans
1391 Preferences
1392 \family default
1393  dialog until you've managed to hit the nail and get the fonts you want.
1394  This can be hard to do, because LyX uses the DPI setting and the font zoom
1395  settings to calculate which exact screen font size to ask the X server
1396  for, thus obfuscating the mapping.
1397  If you can't make it by trial-and-error, you can make the process more
1398  transparent if you set both the DPI setting and font zoom settings to 100---eve
1399 n when this is known to be wrong.
1400  This will of course make your scalable fonts look weird, so use with care.
1401 \end_layout
1402
1403 \begin_layout Subsection
1404 Font encoding
1405 \end_layout
1406
1407 \begin_layout Standard
1408 By default, LyX will use fonts meant to write Western European text, including
1409  all kinds of English.
1410  This is defined through the so-called 
1411 \emph on
1412 font
1413 \emph default
1414  
1415 \emph on
1416 encoding
1417 \emph default
1418 .
1419  If you want to use LyX to write for instance Eastern European text, Cyrillic
1420  or any other language not covered by the ISO-8859-1 font encoding, you
1421  can define a different one with the encoding setting.
1422  This requires you to have special fonts installed.
1423  You can use 
1424 \family typewriter
1425 xfontsel
1426 \family default
1427  to see whether this is the case: check the 
1428 \begin_inset Quotes eld
1429 \end_inset
1430
1431 rgstry
1432 \begin_inset Quotes erd
1433 \end_inset
1434
1435  and 
1436 \begin_inset Quotes eld
1437 \end_inset
1438
1439 encdng
1440 \begin_inset Quotes erd
1441 \end_inset
1442
1443  fields for ISO-8859-X values different from ISO-8859-1, and search for
1444  one that contains the national characters of your language.
1445  If you find any, enter this encoding in the dialog.
1446  If not, go searching the Web for appropriate fonts.
1447  For the Qt frontend, it's recommended you use an iso646 font set.
1448 \end_layout
1449
1450 \begin_layout Standard
1451 When you've set LyX up to use a different font encoding, you should also
1452  consider changing the font used by dialog windows in LyX.
1453  For instance, the 
1454 \family sans
1455 Table\InsetSpace ~
1456 of\InsetSpace ~
1457 Contents
1458 \family default
1459  dialog will not be understandable unless you tell LyX to use a different
1460  font for this.
1461  By default the menu font is set to 
1462 \family typewriter
1463 -*-helvetica-medium-r
1464 \family default
1465 , but often Helvetica is not available in the font encoding you need, so
1466  the dialog allows this to be changed.
1467 \end_layout
1468
1469 \begin_layout Standard
1470 As you can see, there are quite a few options that can be used to fine tune
1471  the look of your fonts.
1472  This should not scare you from fiddling with the settings, because after
1473  all, you will hopefully be using LyX for many hours in the future.
1474  And contrary to real WYSIWYG word processors where you are tied to using
1475  fonts that have to look good both on paper and on screen, LyX gives you
1476  the possibility of using fonts that are designed to look good on the screen
1477  while using a different set of fonts to look good on paper.
1478 \end_layout
1479
1480 \begin_layout Section
1481 Bindings
1482 \begin_inset LatexCommand label
1483 name "sec:bindings"
1484
1485 \end_inset
1486
1487
1488 \end_layout
1489
1490 \begin_layout Standard
1491 Bindings are used to, well, bind a function to a key.
1492  Several prepackaged binding files are available: a CUA set of bindings
1493  (familiar as the typical set of PC and CDE set of keyboard shortcuts),
1494  an Emacs set of bindings, for those of us who follow the One True Way and
1495  refuse to lower our standards,
1496 \begin_inset Foot
1497 status collapsed
1498
1499 \begin_layout Standard
1500 I'm kidding here, of course!
1501 \end_layout
1502
1503 \end_inset
1504
1505  as well as specialty bindings (broadway and hollywood) and other languages
1506  (French, German, etc.).
1507 \end_layout
1508
1509 \begin_layout Standard
1510 If, however, you'd like to customise the keybindings to your own exacting
1511  tastes, then copy the best-fit file in 
1512 \family typewriter
1513 LyXDir/bind/
1514 \family default
1515  to your own 
1516 \family typewriter
1517 UserDir/bind/
1518 \family default
1519  and modify that.
1520  Don't forget to load this new file into LyX using the 
1521 \family sans
1522 Preferences
1523 \family default
1524  dialog.
1525  (For the moment you'll have to restart LyX for these changes to take effect.)
1526 \end_layout
1527
1528 \begin_layout Standard
1529 LyX supports internationalization of the user interface (see Chapter\InsetSpace ~
1530
1531 \begin_inset LatexCommand ref
1532 reference "chap:i18n"
1533
1534 \end_inset
1535
1536 ).
1537  If your 
1538 \emph on
1539 locale
1540 \emph default
1541  is set, with the environment variable 
1542 \family typewriter
1543 $LANG
1544 \family default
1545 , LyX will try to use bindfiles by prepending 
1546 \family typewriter
1547 $LANG_
1548 \family default
1549  to their name.
1550  For example, you can put a translated copy of some standard bind file in
1551  your personal 
1552 \family typewriter
1553 bind/
1554 \family default
1555  directory, and LyX will use it automatically.
1556 \end_layout
1557
1558 \begin_layout Standard
1559 The syntax of the 
1560 \family typewriter
1561 .bind
1562 \family default
1563  files is straightforward:
1564 \end_layout
1565
1566 \begin_layout Standard
1567
1568 \family typewriter
1569
1570 \backslash
1571 bind <key combination> <lyx-function>
1572 \end_layout
1573
1574 \begin_layout Standard
1575 Both key combination and lyx-function (including any arguments) must be
1576  enclosed in "double quotes".
1577  All the LyX functions are listed in the 
1578 \emph on
1579 Reference Guide
1580 \emph default
1581 .
1582 \end_layout
1583
1584 \begin_layout Section
1585 User Interface
1586 \begin_inset LatexCommand label
1587 name "sec:ui"
1588
1589 \end_inset
1590
1591
1592 \end_layout
1593
1594 \begin_layout Standard
1595 The appearance of both the menu and toolbar may both be changed using the
1596  
1597 \family sans
1598 Preferences
1599 \family default
1600  dialog.
1601  Simply change the 
1602 \family typewriter
1603 .ui
1604 \family default
1605  file in 
1606 \family typewriter
1607 LyXDir/ui/
1608 \family default
1609 .
1610  For the moment, only one file exists, 
1611 \family typewriter
1612 default.ui
1613 \family default
1614 , but feel free to experiment.
1615  Just copy the file to the 
1616 \family typewriter
1617 UserDir/ui/
1618 \family default
1619  directory and play! Note that, for the moment, you'll have to restart LyX
1620  for these changes to take effect.
1621 \end_layout
1622
1623 \begin_layout Standard
1624 The syntax of the 
1625 \family typewriter
1626 .ui
1627 \family default
1628  files is straightforward: have a look at 
1629 \family typewriter
1630 default.ui.
1631  The Menubar
1632 \family default
1633
1634 \family typewriter
1635 Menu
1636 \family default
1637  and 
1638 \family typewriter
1639 Toolbar
1640 \family default
1641  entries must be ended with an explicit 
1642 \family typewriter
1643 End
1644 \family default
1645 .
1646  They may contain 
1647 \family typewriter
1648 Submenu
1649 \family default
1650 s, 
1651 \family typewriter
1652 Item
1653 \family default
1654 s, 
1655 \family typewriter
1656 OptItem
1657 \family default
1658 s, 
1659 \family typewriter
1660 Separator
1661 \family default
1662 s, 
1663 \family typewriter
1664 Icon
1665 \family default
1666 s and in the case of the 
1667 \begin_inset Quotes eld
1668 \end_inset
1669
1670 file
1671 \begin_inset Quotes erd
1672 \end_inset
1673
1674  menus, a 
1675 \family typewriter
1676 Lastfiles
1677 \family default
1678  entry.
1679  One small word of warning.
1680  
1681 \family typewriter
1682 Submenu
1683 \family default
1684 s may be inserted in a 
1685 \family typewriter
1686 Menubar
1687 \family default
1688  or 
1689 \family typewriter
1690 Menu
1691 \family default
1692 , but they are defined as 
1693 \family typewriter
1694 Menu
1695 \family default
1696 s, not as 
1697 \family typewriter
1698 Submenu
1699 \family default
1700 s.
1701 \end_layout
1702
1703 \begin_layout Section
1704 \begin_inset LatexCommand label
1705 name "sec:converters-etc"
1706
1707 \end_inset
1708
1709 Converters, Formats, and Copiers
1710 \end_layout
1711
1712 \begin_layout Standard
1713 LyX has a powerful mechanism to convert to and from any file format using
1714  external programs.
1715  
1716 \end_layout
1717
1718 \begin_layout Subsection
1719 Formats
1720 \end_layout
1721
1722 \begin_layout Standard
1723 The first step is to define your file formats if they are not already defined.
1724  To do so, open the 
1725 \family sans
1726 Tools\SpecialChar \menuseparator
1727 Preferences:Converters
1728 \family default
1729  dialog.
1730  Enter a new format name; a new GUI name (used in e.\InsetSpace \thinspace{}
1731 g.\InsetSpace ~
1732 the 
1733 \family sans
1734 View
1735 \family default
1736  and 
1737 \family sans
1738 Export
1739 \family default
1740  menus); and a file extension.
1741  These are required.
1742  
1743 \end_layout
1744
1745 \begin_layout Standard
1746 The 
1747 \family sans
1748 Document format
1749 \family default
1750  option tells LyX that a format is suitable for document export.
1751  If this is is set and if a suitable conversion route exists, the format
1752  will appear in the 
1753 \family sans
1754 File\SpecialChar \menuseparator
1755 Export
1756 \family default
1757  menu.
1758  The format will also appear in the 
1759 \family sans
1760 View
1761 \family default
1762  menu if it has a specified viewer.
1763  Pure image formats, e.\InsetSpace \thinspace{}
1764 g.\InsetSpace ~
1765
1766 \family typewriter
1767 png
1768 \family default
1769 , should not use this option.
1770  Formats that can both represent vector graphics and documents like e.\InsetSpace \thinspace{}
1771 g.\InsetSpace ~
1772
1773 \family typewriter
1774 pdf
1775 \family default
1776  should use it.
1777 \end_layout
1778
1779 \begin_layout Standard
1780 The option 
1781 \family sans
1782 Vector graphics format
1783 \family default
1784  tells LyX that a format can contain vector graphics.
1785  This information is used to determine the target format of included graphics
1786  for 
1787 \family sans
1788 pdflatex
1789 \family default
1790  export.
1791  Included graphics may need to be converted to either 
1792 \family sans
1793 pdf
1794 \family default
1795
1796 \family sans
1797 png
1798 \family default
1799 , or 
1800 \family sans
1801 jpg
1802 \family default
1803 , since 
1804 \family sans
1805 pdflatex
1806 \family default
1807  cannot handle other image formats.
1808  If an included graphic is not already in 
1809 \family sans
1810 pdf
1811 \family default
1812
1813 \family sans
1814 png
1815 \family default
1816 , or 
1817 \family sans
1818 jpg
1819 \family default
1820  format, it is converted to 
1821 \family sans
1822 pdf
1823 \family default
1824  if the vector format option is set, and otherwise to 
1825 \family sans
1826 png
1827 \family default
1828 .
1829 \end_layout
1830
1831 \begin_layout Standard
1832 A Format can have a Viewer and Editor program associated with it.
1833  For example, you might want to use 
1834 \family sans
1835 Ghostview
1836 \family default
1837  to view PostScript files.
1838  You can enter the program call and its options to the corresponding fields.
1839  For the call you can use the four variable listed in the next section.
1840  The viewer is launched when you view an image in LyX or use the 
1841 \family sans
1842 View
1843 \family default
1844  menu.
1845  If the operating system has a default viewer associated to a format, this
1846  viewer is used instead of the one defined here when you enter in the Viewer
1847  field 
1848 \begin_inset Quotes eld
1849 \end_inset
1850
1851
1852 \family sans
1853 auto
1854 \family default
1855
1856 \begin_inset Quotes erd
1857 \end_inset
1858
1859 .
1860  The editor is for example launched when you press the 
1861 \family sans
1862 Edit
1863 \family default
1864  button in the 
1865 \family sans
1866 Graphics
1867 \family default
1868  or the 
1869 \family sans
1870 External material
1871 \family default
1872  dialog.
1873 \end_layout
1874
1875 \begin_layout Subsection
1876 Copiers
1877 \end_layout
1878
1879 \begin_layout Standard
1880 Each format can have a Copier associated with it.
1881  These are defined in the 
1882 \family sans
1883 Tools\SpecialChar \menuseparator
1884 Preferences:Copiers
1885 \family default
1886  dialog.
1887  Since all conversions from one format to another take place in LyX's temporary
1888  directory, it is sometimes necessary to modify a file before copying it
1889  to the temporary directory in order that the conversion may be performed.
1890 \begin_inset Foot
1891 status collapsed
1892
1893 \begin_layout Standard
1894 For example, the file may refer to other files---images, for example---using
1895  relative filenames, and these may become invalid when the file is copied
1896  to the temporary directory.
1897 \end_layout
1898
1899 \end_inset
1900
1901  This is done by the Copier: It copies a file to (or from) the temporary
1902  directory and may modify it in the process.
1903 \end_layout
1904
1905 \begin_layout Standard
1906 Copiers may also be used for other purposes.
1907  For example, if appropriate converters are found, LyX will automatically
1908  install copiers for the 
1909 \family sans
1910 HTML
1911 \family default
1912  and 
1913 \family sans
1914 HTML\InsetSpace ~
1915 (MS Word)
1916 \family default
1917  formats.
1918  When these formats are exported, the copier sees that not just the main
1919  HTML file but various associated files (style files, images, etc.) are also
1920  copied.
1921  All these files are written to a subdirectory of the directory in which
1922  the original LyX file was found.
1923 \end_layout
1924
1925 \begin_layout Standard
1926 Copier can of course be customized.
1927  The optional 
1928 \begin_inset Quotes eld
1929 \end_inset
1930
1931 -e
1932 \begin_inset Quotes erd
1933 \end_inset
1934
1935  argument takes a comma-separated list of extensions to be copied; if it
1936  is omitted, all files will be copied.
1937  The 
1938 \begin_inset Quotes eld
1939 \end_inset
1940
1941 -t
1942 \begin_inset Quotes erd
1943 \end_inset
1944
1945  argument determines the extension added to the generated directory.
1946  By default, it is 
1947 \begin_inset Quotes eld
1948 \end_inset
1949
1950
1951 \family sans
1952 LyXconv
1953 \family default
1954
1955 \begin_inset Quotes erd
1956 \end_inset
1957
1958 , so HTML generated from 
1959 \family sans
1960 /path/to/filename.lyx
1961 \family default
1962  will end up in 
1963 \family sans
1964 /path/to/filename.html.LyXconv
1965 \family default
1966 .
1967  
1968 \end_layout
1969
1970 \begin_layout Standard
1971 The definitions of the copiers may use four variables:
1972 \end_layout
1973
1974 \begin_layout List
1975 \labelwidthstring 00.00.0000
1976 $$s The LyX system directory (e.\InsetSpace \thinspace{}
1977 g.\InsetSpace ~
1978
1979 \family sans
1980 /usr/share/lyx
1981 \family default
1982 ).
1983 \end_layout
1984
1985 \begin_layout List
1986 \labelwidthstring 00.00.0000
1987 $$i The input file
1988 \end_layout
1989
1990 \begin_layout List
1991 \labelwidthstring 00.00.0000
1992 $$o The output file
1993 \end_layout
1994
1995 \begin_layout List
1996 \labelwidthstring 00.00.0000
1997 $$l The `LaTeX name'
1998 \end_layout
1999
2000 \begin_layout Standard
2001 The latter is to be given in a form suitable for inclusion in a LaTeX's
2002  
2003 \series bold
2004
2005 \backslash
2006 include
2007 \series default
2008  command and is relevant only when exporting files suitable for such inclusion.
2009 \end_layout
2010
2011 \begin_layout Subsection
2012 Converters
2013 \end_layout
2014
2015 \begin_layout Standard
2016 To define a new converter, select an existing one, select a different format
2017  in the 
2018 \family sans
2019 From\InsetSpace ~
2020 format
2021 \family default
2022  and\InsetSpace \thinspace{}
2023 /\InsetSpace \thinspace{}
2024 or 
2025 \family sans
2026 To\InsetSpace ~
2027 format
2028 \family default
2029  drop-down list, modify the 
2030 \family sans
2031 Converter
2032 \family default
2033  field, and press the 
2034 \family sans
2035 Add
2036 \family default
2037  button.
2038 \end_layout
2039
2040 \begin_layout Standard
2041 You do not have to define converters between all the formats between which
2042  you want to convert.
2043  For example, you will note that there is no `LyX to PostScript' converter,
2044  but LyX will export PostScript.
2045  It does so by first creating a LaTeX file (no converter needs to be defined
2046  for this) which is then converted to DVI using the `LaTeX to DVI' converter,
2047  and finally converts the resulting DVI file to PostScript.
2048  LyX finds such `chains' of converters automatically, and it will always
2049  choose the shortest possible chain.
2050  You can, though, still define multiple conversion methods between file
2051  formats.
2052  For example, the standard LyX configuration provides three ways to convert
2053  LaTeX to PDF: Directly, using 
2054 \family sans
2055 pdflatex
2056 \family default
2057 ; via (DVI and) PostScript, using 
2058 \family sans
2059 ps2pdf
2060 \family default
2061 ; or via DVI, using 
2062 \family sans
2063 dvipdfm
2064 \family default
2065 .
2066  To define such alternate chains, you must define multiple target `file
2067  formats', as described in the next section.
2068  For example in the standard configuration the formats named 
2069 \family sans
2070 pdf
2071 \family default
2072
2073 \family sans
2074 pdf2
2075 \family default
2076 , and 
2077 \family sans
2078 pdf3
2079 \family default
2080  are defined, all of which share the extension 
2081 \family sans
2082 .pdf
2083 \family default
2084 .
2085 \end_layout
2086
2087 \begin_layout Standard
2088 Several variables can be used in the definition of converters:
2089 \end_layout
2090
2091 \begin_layout List
2092 \labelwidthstring 00.00.0000
2093 $$s The LyX system directory
2094 \end_layout
2095
2096 \begin_layout List
2097 \labelwidthstring 00.00.0000
2098 $$i The input file
2099 \end_layout
2100
2101 \begin_layout List
2102 \labelwidthstring 00.00.0000
2103 $$o The output file
2104 \end_layout
2105
2106 \begin_layout List
2107 \labelwidthstring 00.00.0000
2108 $$b The base filename of the input file
2109 \end_layout
2110
2111 \begin_layout List
2112 \labelwidthstring 00.00.0000
2113 $$p The path to the input file
2114 \end_layout
2115
2116 \begin_layout Standard
2117 In the 
2118 \family sans
2119 Extra\InsetSpace ~
2120 Flag
2121 \family default
2122  field you can enter the following flags, separated by commas:
2123 \end_layout
2124
2125 \begin_layout List
2126 \labelwidthstring 00.00.0000
2127 latex This converter runs some form of LaTeX.
2128  This will make LyX's LaTeX error logs available.
2129 \end_layout
2130
2131 \begin_layout List
2132 \labelwidthstring 00.00.0000
2133 needaux Needs the LaTeX 
2134 \family sans
2135 .aux
2136 \family default
2137  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 flags are not really flags at all because they take
2147  an argument in the 
2148 \family sans
2149 key\InsetSpace ~
2150 =\InsetSpace ~
2151 value
2152 \family default
2153  format:
2154 \end_layout
2155
2156 \begin_layout List
2157 \labelwidthstring 00.00.0000
2158 parselog If set, the converter's standard error will be redirected to a
2159  file 
2160 \family typewriter
2161 infile.out
2162 \family default
2163 , and the script given as argument will be run as: 
2164 \family typewriter
2165 script <infile.out >infile.log
2166 \family default
2167 .
2168  The argument may contain $$s.
2169 \end_layout
2170
2171 \begin_layout List
2172 \labelwidthstring 00.00.0000
2173 resultdir The name of the directory in which the 
2174 \emph on
2175 converter
2176 \emph default
2177  will dump the generated files.
2178  LyX will not create this directory, and it does not copy anything into
2179  it, though it will copy this directory to the destination.
2180  The argument may contain $$b, which will be replaced by the basename of
2181  the input and output files, respectively, when the directory is copied.
2182 \newline
2183 Note
2184  that resultdir and usetempdir make no sense together.
2185  The latter will be ignored if the former is given.
2186 \end_layout
2187
2188 \begin_layout List
2189 \labelwidthstring 00.00.0000
2190 resultfile Determines the output filename and may, contain $$b.
2191  Sensible only with resultdir, and optional even then; if not given, it
2192  defaults to `index'.
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 \begin_inset LatexCommand label
5570 name "sec:Layouts"
5571
5572 \end_inset
5573
5574 Layouts
5575 \end_layout
5576
5577 \begin_layout Standard
5578 This section describes how to write and install your own LyX layout files
5579  (also known as text classes) and walks through the 
5580 \family typewriter
5581 article
5582 \family default
5583  text class format as an example.
5584  The 
5585 \family typewriter
5586 .layout
5587 \family default
5588  files describe what paragraph styles are available for a given document
5589  class and how LyX should display them.
5590  We try to provide a thorough description of the process here; however,
5591  there are so many different types of documents supported by LaTeX classes
5592  that we can't hope to cover every different possibility or problem you
5593  might encounter.
5594  (The LyX users' list is frequented by people with lots of experience with
5595  layout design who are willing to share what they've learned.)
5596 \end_layout
5597
5598 \begin_layout Standard
5599 As you prepare to write a new layout, it is extremely helpful to look at
5600  the example layouts distributed with LyX.
5601  If you use a nice LaTeX document class that might be of interest for others,
5602  too, and have a nice corresponding LyX layout, feel free to contribute
5603  the stuff to us, so we may put it into the distribution.
5604  There is also a section on the LyX wiki for this kind of material.
5605 \end_layout
5606
5607 \begin_layout Standard
5608 All the tags described in this chapter are case-insensitive; this means
5609  that 
5610 \family typewriter
5611 Style
5612 \family default
5613
5614 \family typewriter
5615 style
5616 \family default
5617  and 
5618 \family typewriter
5619 StYlE
5620 \family default
5621  are really the same command.
5622  The possible values are printed in brackets after the feature's name.
5623  The default value if a feature isn't specified inside a text class-description
5624  is typeset 
5625 \family typewriter
5626 \emph on
5627 emphasized
5628 \family default
5629 \emph default
5630 .
5631  If the argument has a datatype like 
5632 \begin_inset Quotes eld
5633 \end_inset
5634
5635 string
5636 \begin_inset Quotes erd
5637 \end_inset
5638
5639  or 
5640 \begin_inset Quotes eld
5641 \end_inset
5642
5643 float
5644 \begin_inset Quotes erd
5645 \end_inset
5646
5647 , the default is shown like this: 
5648 \family typewriter
5649 float=
5650 \emph on
5651 default
5652 \family default
5653 \emph default
5654 .
5655 \end_layout
5656
5657 \begin_layout Subsection
5658 Layout modules
5659 \end_layout
5660
5661 \begin_layout Standard
5662 Similar to layout files, and new with LyX 1.6, are layout 
5663 \emph on
5664 modules
5665 \emph default
5666 .
5667  Modules are to LaTeX packages much as layouts are to LaTeX classes, and
5668  some modules---such as the URL module---provide support for just such a
5669  package.
5670  In a sense, layout modules are similar to included files---files like stdsectio
5671 ns.inc---in that modules are not specific to a given document layout but
5672  may be used with many different layouts.
5673  The difference is that using a layout module does not require editing the
5674  layout file.
5675  Rather, modules are selected in the 
5676 \family sans
5677 \bar under
5678 D
5679 \bar default
5680 ocument\SpecialChar \menuseparator
5681
5682 \bar under
5683 S
5684 \bar default
5685 ettings
5686 \family default
5687  dialog.
5688 \end_layout
5689
5690 \begin_layout Standard
5691 Building modules is the easiest way to get started with layout editing,
5692  since it can be as simple as adding a single new paragraph or flex inset.
5693  But modules may, in principle, contain anything a layout file can contain.
5694 \end_layout
5695
5696 \begin_layout Standard
5697 A module must begin with a line like the following:
5698 \end_layout
5699
5700 \begin_layout LyX-Code
5701 #
5702 \backslash
5703 DeclareLyXModule[url.sty]{Adds a character style for the 
5704 \backslash
5705 url command.}{URL} 
5706 \end_layout
5707
5708 \begin_layout Standard
5709 The argument in square brackets is optional: It declares any LaTeX packages
5710  on which the module depends.
5711  The two mandatory arguments, in curly brackets, are a short description
5712  of the module and the name of the module, as they should appear in 
5713 \family sans
5714 Document\SpecialChar \menuseparator
5715 Settings
5716 \family default
5717 .
5718  
5719 \end_layout
5720
5721 \begin_layout Standard
5722 After creating a new module, you will need to reconfigure and then restart
5723  LyX for it to appear in the menu.
5724  However, changes you make to the module will be seen immediately, if you
5725  open 
5726 \family sans
5727 Document\SpecialChar \menuseparator
5728 Settings
5729 \family default
5730 , make some change (or even just highlight something), and then hit 
5731 \begin_inset Quotes eld
5732 \end_inset
5733
5734 OK
5735 \begin_inset Quotes erd
5736 \end_inset
5737
5738 .
5739  It is strongly recommended that you save your work before doing so.
5740  It is, in fact, strongly recommended that you not attempt to create or
5741  edit modules while simultaneously working on documents.
5742  Though of course the developers strive to keep LyX stable in such situations,
5743  syntax errors and the like in your module file could cause strange behavior.
5744 \end_layout
5745
5746 \begin_layout Subsection
5747 Supporting new document classes
5748 \end_layout
5749
5750 \begin_layout Standard
5751 There are two situations you are likely to encounter when wanting to support
5752  a new LaTeX document class, involving LaTeX2e class (
5753 \family typewriter
5754 .cls
5755 \family default
5756 ) and style (
5757 \family typewriter
5758 .sty
5759 \family default
5760 ) files.
5761  Supporting a style file is usually fairly easy.
5762  Supporting a new document class is a bit harder.
5763 \end_layout
5764
5765 \begin_layout Subsection
5766 A layout for a 
5767 \family sans
5768 sty
5769 \family default
5770  file
5771 \end_layout
5772
5773 \begin_layout Standard
5774 If your new document class is provided as a style file that is used in conjuncti
5775 on with an existing, supported document class---for the sake of the example,
5776  we'll assume that the style file is called 
5777 \family sans
5778 myclass.sty
5779 \family default
5780  and it is meant to be used with 
5781 \family sans
5782 report.cls
5783 \family default
5784 , which is a standard class---start by copying the existing class's layout
5785  file into your local directory:
5786 \end_layout
5787
5788 \begin_layout LyX-Code
5789 cp report.layout ~/.lyx/layouts/myclass.layout
5790 \end_layout
5791
5792 \begin_layout Standard
5793 Then edit 
5794 \family typewriter
5795 myclass.layout
5796 \family default
5797  and change the line: 
5798 \end_layout
5799
5800 \begin_layout LyX-Code
5801
5802 \backslash
5803 DeclareLaTeXClass{report}
5804 \end_layout
5805
5806 \begin_layout Standard
5807 to read
5808 \end_layout
5809
5810 \begin_layout LyX-Code
5811
5812 \backslash
5813 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
5814 \end_layout
5815
5816 \begin_layout Standard
5817 Then add:
5818 \end_layout
5819
5820 \begin_layout LyX-Code
5821 Preamble 
5822 \newline
5823     
5824 \backslash
5825 usepackage{myclass}
5826 \newline
5827 EndPreamble
5828 \end_layout
5829
5830 \begin_layout Standard
5831 near the top of the file.
5832 \end_layout
5833
5834 \begin_layout Standard
5835 Start LyX and select 
5836 \family sans
5837 \bar under
5838 T
5839 \bar default
5840 ools\SpecialChar \menuseparator
5841
5842 \bar under
5843 R
5844 \bar default
5845 econfigure
5846 \family default
5847 .
5848  Then restart LyX and try creating a new document.
5849  You should see "
5850 \family sans
5851 report (myclass)
5852 \family default
5853 " as a document class option in the 
5854 \family sans
5855 \bar under
5856 D
5857 \bar default
5858 ocument\SpecialChar \menuseparator
5859
5860 \bar under
5861 S
5862 \bar default
5863 ettings
5864 \family default
5865  dialog.
5866  It is likely that some of the sectioning commands and such in your new
5867  class will work differently from how they worked in the base class---
5868 \family typewriter
5869 report
5870 \family default
5871  in this example---so you can fiddle around with the settings for the different
5872  sections if you wish.
5873  See below for more discussion on this.
5874 \end_layout
5875
5876 \begin_layout Subsection
5877 Layout for a 
5878 \family sans
5879 cls
5880 \family default
5881  file
5882 \end_layout
5883
5884 \begin_layout Standard
5885 There are two possibilities here.
5886  One is that the class file is itself based upon an existing document class.
5887  For example, many thesis classes are based upon 
5888 \family sans
5889 book.cls
5890 \family default
5891 .
5892  To see whether yours is, look for a line like
5893 \end_layout
5894
5895 \begin_layout LyX-Code
5896
5897 \backslash
5898 LoadClass{book}
5899 \end_layout
5900
5901 \begin_layout Standard
5902 in the file.
5903  If so, then you may proceed largely as in the previous section, though
5904  the DeclareLaTeXClass line will be different.
5905  If your new class is thesis, and it is based upon book, then the line should
5906  read:
5907 \end_layout
5908
5909 \begin_layout LyX-Code
5910
5911 \backslash
5912 DeclareLaTeXClass[myclass, book]{thesis}
5913 \end_layout
5914
5915 \begin_layout Standard
5916 If, on the other hand, the new class is not based upon an existing class,
5917  you will probably have to 
5918 \begin_inset Quotes eld
5919 \end_inset
5920
5921 roll your own
5922 \begin_inset Quotes erd
5923 \end_inset
5924
5925  layout.
5926  We strongly suggest copying an existing layout file which uses a similar
5927  LaTeX class and then modifying it, if you can do so.
5928  At least use an existing file as a starting point so you can find out what
5929  items you need to worry about.
5930  Again, the specifics are covered below.
5931 \end_layout
5932
5933 \begin_layout Section
5934 Declaring a new text class
5935 \end_layout
5936
5937 \begin_layout Standard
5938 When it's finally time to get your hands dirty and create or edit your own
5939  layout file, the following sections describe what you're up against.
5940  Our advice is to go slowly, save and test often, listen to soothing music,
5941  and enjoy one or two of your favorite adult beverages; more if you are
5942  getting particularly stuck.
5943  It's really not that hard, except that the multitude of options can become
5944  overwhelming if you try to do to much in one sitting.
5945  Go have another adult beverage, just for good measure.
5946 \end_layout
5947
5948 \begin_layout Standard
5949 Here we go!
5950 \end_layout
5951
5952 \begin_layout Standard
5953 Lines in a layout file which begin with a 
5954 \family typewriter
5955 #
5956 \family default
5957  are comments.
5958  There is one exception to this rule: all layouts should begin with lines
5959  like:
5960 \end_layout
5961
5962 \begin_layout LyX-Code
5963
5964 \size small
5965 #% Do not delete the line below; configure depends on this 
5966 \end_layout
5967
5968 \begin_layout LyX-Code
5969
5970 \size small
5971 #  
5972 \backslash
5973 DeclareLaTeXClass{article}
5974 \end_layout
5975
5976 \begin_layout Standard
5977 The second line is used when you configure LyX.
5978  The layout file is read by the LaTeX script 
5979 \family typewriter
5980 chkconfig.ltx
5981 \family default
5982 , in a special mode where 
5983 \family typewriter
5984 #
5985 \family default
5986  is ignored.
5987  The first line is just a LaTeX comment, and the second one contains the
5988  declaration of the text class.
5989  If these lines appear in a file named 
5990 \family typewriter
5991 article.layout
5992 \family default
5993 , then they define a text class of name 
5994 \family typewriter
5995 article
5996 \family default
5997  (the name of the layout file) which uses the LaTeX document class 
5998 \family typewriter
5999 article.cls
6000 \family default
6001  (the default is to use the same name as the layout).
6002  The string 
6003 \begin_inset Quotes eld
6004 \end_inset
6005
6006 article
6007 \begin_inset Quotes erd
6008 \end_inset
6009
6010  that appears above is used as a description of the text class in the 
6011 \family sans
6012 \bar under
6013 D
6014 \bar default
6015 ocument\SpecialChar \menuseparator
6016
6017 \bar under
6018 S
6019 \bar default
6020 ettings
6021 \family default
6022  dialog.
6023 \end_layout
6024
6025 \begin_layout Standard
6026 Let's assume that you wrote your own text class that uses the 
6027 \family typewriter
6028 article.cls
6029 \family default
6030  documentclass, but where you changed the appearance of the section headings.
6031  If you put it in a file 
6032 \family typewriter
6033 myarticle.layout
6034 \family default
6035 , the header of this file should be:
6036 \end_layout
6037
6038 \begin_layout LyX-Code
6039
6040 \size small
6041 #% Do not delete the line below; configure depends on this 
6042 \end_layout
6043
6044 \begin_layout LyX-Code
6045
6046 \size small
6047 #  
6048 \backslash
6049 DeclareLaTeXClass[article]{article (with my own headings)}
6050 \end_layout
6051
6052 \begin_layout Standard
6053 This declares a text class 
6054 \family typewriter
6055 myarticle
6056 \family default
6057 , associated with the LaTeX document class 
6058 \family typewriter
6059 article.cls
6060 \family default
6061  and described as 
6062 \begin_inset Quotes eld
6063 \end_inset
6064
6065 article (with my own headings)
6066 \begin_inset Quotes erd
6067 \end_inset
6068
6069 .
6070  If your text class depends on several packages, you can declare it as:
6071 \end_layout
6072
6073 \begin_layout LyX-Code
6074
6075 \size small
6076 #% Do not delete the line below; configure depends on this 
6077 \end_layout
6078
6079 \begin_layout LyX-Code
6080
6081 \size small
6082 #  
6083 \backslash
6084 DeclareLaTeXClass[article,foo.sty]{article (with my own headings)}
6085 \end_layout
6086
6087 \begin_layout Standard
6088 This indicates that your text class uses the foo.sty package.
6089  Finally, it is also possible to declare classes for DocBook code.
6090  Typical declarations will look like
6091 \end_layout
6092
6093 \begin_layout LyX-Code
6094
6095 \size small
6096 #% Do not delete the line below; configure depends on this 
6097 \end_layout
6098
6099 \begin_layout LyX-Code
6100
6101 \size small
6102
6103 \backslash
6104 DeclareDocBookClass[article]{SGML (DocBook article)}
6105 \end_layout
6106
6107 \begin_layout Standard
6108 Note that these declarations can also be given an optional parameter declaring
6109  the name of the document class (but not a list).
6110 \end_layout
6111
6112 \begin_layout Standard
6113 When the text class has been modified to your taste, all you have to do
6114  is to copy it either in 
6115 \family typewriter
6116 $LyXDir/layouts/
6117 \family default
6118  or in 
6119 \family typewriter
6120 $UserDir/layouts
6121 \family default
6122  and run 
6123 \family sans
6124 \bar under
6125 T
6126 \bar default
6127 ools\SpecialChar \menuseparator
6128
6129 \bar under
6130 R
6131 \bar default
6132 econfigure
6133 \family default
6134 .
6135  Exit LyX and restart it; then your new text class should be available along
6136  with the others.
6137 \end_layout
6138
6139 \begin_layout Standard
6140 In versions of LyX prior to 1.6, you had to restart LyX to see any changes
6141  you made to your layout files.
6142  As a result, editing layout files could be very time consuming.
6143  Beginning with 1.6, however, you can force a reload of the layout currently
6144  in use by using the LyX function 
6145 \family sans
6146 layout-reload
6147 \family default
6148 .
6149  There is no default binding for this function---though, of course, you
6150  can bind it to a key yourself (see section 
6151 \begin_inset LatexCommand ref
6152 reference "sec:bindings"
6153
6154 \end_inset
6155
6156 ).
6157  You should simply enter this command in the mini-buffer.
6158  
6159 \emph on
6160 Warning
6161 \emph default
6162 : This is very much an `advanced feature'.
6163  It is 
6164 \emph on
6165 strongly
6166 \emph default
6167  recommended that you save your work before using this function.
6168  It is, in fact, 
6169 \emph on
6170 strongly
6171 \emph default
6172  recommended that you not attempt to edit your layout while simultaneously
6173  working on a document that you care about.
6174  Use a test document.
6175  Syntax errors and the like in your layout file could cause peculiar behavior.
6176  In particular, such errors could cause LyX to regard the current layout
6177  as invalid and to attempt to switch to some other layout.
6178  The LyX team strives to keep LyX stable in such situations, but safe is
6179  better than sorry.
6180 \end_layout
6181
6182 \begin_layout Subsection
6183 File format
6184 \end_layout
6185
6186 \begin_layout Standard
6187 The first non-comment line must contain the file format number:
6188 \end_layout
6189
6190 \begin_layout Description
6191
6192 \family typewriter
6193 \series medium
6194 Format
6195 \family default
6196 \series default
6197  [
6198 \family typewriter
6199 int
6200 \family default
6201 ] This tag was introduced with LyX 1.4.0 (layout files of LyX 1.3.x and earlier
6202  don't have an explicit file format).
6203  The file format that is documented here is 
6204 \family typewriter
6205 2
6206 \family default
6207 .
6208 \end_layout
6209
6210 \begin_layout Subsection
6211 General text class parameters
6212 \end_layout
6213
6214 \begin_layout Standard
6215 These are the general parameters which describe the form of the entire document:
6216 \end_layout
6217
6218 \begin_layout Standard
6219 \begin_inset ERT
6220 status open
6221
6222 \begin_layout Standard
6223
6224
6225 \backslash
6226 begin{sloppypar}
6227 \end_layout
6228
6229 \end_inset
6230
6231
6232 \end_layout
6233
6234 \begin_layout Description
6235
6236 \family typewriter
6237 \series medium
6238 Columns
6239 \family default
6240 \series default
6241  [
6242 \family typewriter
6243 \emph on
6244 1
6245 \emph default
6246 , 2
6247 \family default
6248 ] Whether the class-default should have one or two columns.
6249  Can be changed in the 
6250 \family sans
6251 \bar under
6252 D
6253 \bar default
6254 ocument\SpecialChar \menuseparator
6255
6256 \bar under
6257 S
6258 \bar default
6259 ettings
6260 \family default
6261  dialog.
6262  This setting (same goes for 
6263 \family typewriter
6264 Sides
6265 \family default
6266 , too) is important: if your text class has two columns by default but you
6267  forget to set it correctly, the 
6268 \family typewriter
6269 twocolumn
6270 \family default
6271  LaTeX option will 
6272 \emph on
6273 not
6274 \emph default
6275  be output when you select 
6276 \family sans
6277 Two columns
6278 \family default
6279  in 
6280 \family sans
6281 \bar under
6282 D
6283 \bar default
6284 ocument\SpecialChar \menuseparator
6285
6286 \bar under
6287 S
6288 \bar default
6289 ettings.
6290 \end_layout
6291
6292 \begin_layout Description
6293
6294 \family typewriter
6295 \series medium
6296 Sides
6297 \family default
6298 \series default
6299  [
6300 \family typewriter
6301 \emph on
6302 1
6303 \emph default
6304 , 2
6305 \family default
6306 ] Whether the class-default should be printing on one or both sides of the
6307  paper.
6308  Can be changed in the 
6309 \family sans
6310 \bar under
6311 D
6312 \bar default
6313 ocument\SpecialChar \menuseparator
6314
6315 \bar under
6316 S
6317 \bar default
6318 ettings
6319 \family default
6320  dialog.
6321 \end_layout
6322
6323 \begin_layout Description
6324
6325 \family typewriter
6326 \series medium
6327 PageStyle
6328 \family default
6329 \series default
6330  [
6331 \family typewriter
6332 \emph on
6333 plain
6334 \emph default
6335 , empty, headings
6336 \family default
6337 ] The class default pagestyle.
6338  Can be changed in the 
6339 \family sans
6340 \bar under
6341 D
6342 \bar default
6343 ocument\SpecialChar \menuseparator
6344
6345 \bar under
6346 S
6347 \bar default
6348 ettings
6349 \family default
6350  dialog.
6351 \end_layout
6352
6353 \begin_layout Description
6354
6355 \family typewriter
6356 \series medium
6357 ClassOptions\SpecialChar \ldots{}
6358 End
6359 \family default
6360 \series default
6361  This section describes various global options supported by the document
6362  class.
6363  See Section\InsetSpace ~
6364
6365 \begin_inset LatexCommand ref
6366 reference "sec:classoptions"
6367
6368 \end_inset
6369
6370  for a description.
6371 \end_layout
6372
6373 \begin_layout Description
6374
6375 \family typewriter
6376 \series medium
6377 Provides 
6378 \family default
6379 \series default
6380 [
6381 \family typewriter
6382 string
6383 \family default
6384 ] [
6385 \family typewriter
6386 \emph on
6387 0
6388 \emph default
6389 , 1
6390 \family default
6391 ] Whether the class already provides the feature
6392 \family typewriter
6393  string
6394 \family default
6395 .
6396  A feature is in general the name of a package (amsmath, makeidx, \SpecialChar \ldots{}
6397 ) or a
6398  macro (url, boldsymbol,\SpecialChar \ldots{}
6399 ); the complete list of supported features is unfortunat
6400 ely not documented.
6401 \end_layout
6402
6403 \begin_layout Description
6404
6405 \family typewriter
6406 \series medium
6407 DefaultFont
6408 \family default
6409 \series default
6410  This is used to describe the default font of the document.
6411  See Section\InsetSpace ~
6412
6413 \begin_inset LatexCommand ref
6414 reference "sec:fonts"
6415
6416 \end_inset
6417
6418  for a description.
6419 \end_layout
6420
6421 \begin_layout Description
6422
6423 \family typewriter
6424 \series medium
6425 DefaultStyle
6426 \family default
6427 \series default
6428  [
6429 \family typewriter
6430 string
6431 \family default
6432 ] This is the style that will be assigned to new paragraphs, usually 
6433 \family sans
6434 Standard
6435 \family default
6436 .
6437  This will default to the first defined style if not given, but you are
6438  highly encouraged to use this directive.
6439 \end_layout
6440
6441 \begin_layout Description
6442
6443 \family typewriter
6444 \series medium
6445 TitleLatexType
6446 \family default
6447 \series default
6448  [
6449 \family typewriter
6450 \emph on
6451 CommandAfter
6452 \family default
6453 \emph default
6454
6455 \family typewriter
6456 Environment
6457 \family default
6458 ] Indicates what kind of markup is used to define the title of a document.
6459  
6460 \family typewriter
6461 CommandAfter
6462 \family default
6463  means that the macro with name 
6464 \family typewriter
6465 TitleLatexName
6466 \family default
6467  will be inserted after the last layout which has 
6468 \begin_inset Quotes eld
6469 \end_inset
6470
6471
6472 \family typewriter
6473 InTitle 1
6474 \family default
6475
6476 \begin_inset Quotes erd
6477 \end_inset
6478
6479 .
6480  
6481 \family typewriter
6482 Environment
6483 \family default
6484  corresponds to the case where the block of paragraphs which have 
6485 \begin_inset Quotes eld
6486 \end_inset
6487
6488
6489 \family typewriter
6490 InTitle 1
6491 \family default
6492
6493 \begin_inset Quotes erd
6494 \end_inset
6495
6496  should be enclosed into the 
6497 \family typewriter
6498 TitleLatexName
6499 \family default
6500  environment
6501 \family typewriter
6502 .
6503 \end_layout
6504
6505 \begin_layout Description
6506
6507 \family typewriter
6508 \series medium
6509 TitleLatexName
6510 \family default
6511 \series default
6512  [
6513 \family typewriter
6514 string="maketitle"
6515 \family default
6516 ] The name of the command/environment mentionned above.
6517 \end_layout
6518
6519 \begin_layout Description
6520
6521 \family typewriter
6522 \series medium
6523 Preamble\SpecialChar \ldots{}
6524 EndPreamble
6525 \family default
6526 \series default
6527  A set of macro definitions that will be output at the beginning of the
6528  LaTeX files.
6529  Use this for global definitions.
6530 \end_layout
6531
6532 \begin_layout Description
6533
6534 \family typewriter
6535 \series medium
6536 Input
6537 \family default
6538 \series default
6539  As its name implies, this command allows you to include another layout
6540  definition file within yours to avoid duplicating commands.
6541  Common examples are the standard layout files, for example, 
6542 \family typewriter
6543 stdclass.inc
6544 \family default
6545 , which contains most of the basic layouts.
6546 \end_layout
6547
6548 \begin_layout Description
6549
6550 \family typewriter
6551 \series medium
6552 Style\SpecialChar \ldots{}
6553 End
6554 \family default
6555 \series default
6556  This sequence defines a new style.
6557  If the style already exists, it will redefine some of its parameters instead.
6558  See Section\InsetSpace ~
6559
6560 \begin_inset LatexCommand ref
6561 reference "sec:style"
6562
6563 \end_inset
6564
6565  for details.
6566 \end_layout
6567
6568 \begin_layout Description
6569
6570 \family typewriter
6571 \series medium
6572 NoStyle
6573 \family default
6574 \series default
6575  This command deletes an existing style.
6576  This is particularly useful when you want to suppress a style that has
6577  be defined in an input file.
6578 \end_layout
6579
6580 \begin_layout Description
6581
6582 \family typewriter
6583 \series medium
6584 Float\SpecialChar \ldots{}
6585 End
6586 \family default
6587 \series default
6588  This sequence defines a new float.
6589  See Section\InsetSpace ~
6590
6591 \begin_inset LatexCommand ref
6592 reference "sec:floats"
6593
6594 \end_inset
6595
6596  for details.
6597 \end_layout
6598
6599 \begin_layout Description
6600
6601 \family typewriter
6602 \series medium
6603 NoFloat
6604 \family default
6605 \series default
6606  This command deletes an existing float.
6607  This is particularly useful when you want to suppress a float that has
6608  be defined in an input file.
6609 \end_layout
6610
6611 \begin_layout Description
6612
6613 \family typewriter
6614 \series medium
6615 InsetLayout\SpecialChar \ldots{}
6616 End
6617 \family default
6618 \series default
6619  This section (re-)defines the layout of an inset.
6620  It can be applied to an existing inset of to a new, user-defined inset,
6621  e.g., a new character style.
6622  See Section\InsetSpace ~
6623
6624 \begin_inset LatexCommand ref
6625 reference "sec:charstyle"
6626
6627 \end_inset
6628
6629  for a description.
6630 \end_layout
6631
6632 \begin_layout Description
6633
6634 \family typewriter
6635 \series medium
6636 Counter\SpecialChar \ldots{}
6637 End
6638 \family default
6639 \series default
6640  This sequence defines a new counter.
6641  See Section\InsetSpace ~
6642
6643 \begin_inset LatexCommand ref
6644 reference "sec:counter"
6645
6646 \end_inset
6647
6648  for details.
6649 \end_layout
6650
6651 \begin_layout Standard
6652 \begin_inset ERT
6653 status open
6654
6655 \begin_layout Standard
6656
6657
6658 \backslash
6659 end{sloppypar}
6660 \end_layout
6661
6662 \end_inset
6663
6664
6665 \end_layout
6666
6667 \begin_layout Subsection
6668
6669 \family typewriter
6670 ClassOptions
6671 \family default
6672  section
6673 \end_layout
6674
6675 \begin_layout Standard
6676 \begin_inset LatexCommand label
6677 name "sec:classoptions"
6678
6679 \end_inset
6680
6681 The 
6682 \family typewriter
6683 ClassOptions
6684 \family default
6685  section can contain the following entries:
6686 \end_layout
6687
6688 \begin_layout Description
6689
6690 \family typewriter
6691 \series medium
6692 FontSize
6693 \family default
6694 \series default
6695  [
6696 \family typewriter
6697 string="10|11|12"
6698 \family default
6699 ] The list of available font sizes for the document's main font, separated
6700  by 
6701 \begin_inset Quotes eld
6702 \end_inset
6703
6704
6705 \family typewriter
6706 |
6707 \family default
6708
6709 \begin_inset Quotes erd
6710 \end_inset
6711
6712 .
6713 \end_layout
6714
6715 \begin_layout Description
6716
6717 \family typewriter
6718 \series medium
6719 PageStyle
6720 \family default
6721 \series default
6722  [
6723 \family typewriter
6724 string="empty|plain|headings|fancy"
6725 \family default
6726 ] The list of available page styles, separated by 
6727 \begin_inset Quotes eld
6728 \end_inset
6729
6730
6731 \family typewriter
6732 |
6733 \family default
6734
6735 \begin_inset Quotes erd
6736 \end_inset
6737
6738 .
6739 \end_layout
6740
6741 \begin_layout Description
6742
6743 \family typewriter
6744 \series medium
6745 Other
6746 \family default
6747 \series default
6748  [
6749 \family typewriter
6750 string=""
6751 \family default
6752 ] Some document class options, separated by a comma, that will be added
6753  to the optional part of the 
6754 \family typewriter
6755
6756 \backslash
6757 documentclass
6758 \family default
6759  command.
6760 \end_layout
6761
6762 \begin_layout Subsection
6763 Specific Paragraph Layouts
6764 \end_layout
6765
6766 \begin_layout Standard
6767 \begin_inset LatexCommand label
6768 name "sec:style"
6769
6770 \end_inset
6771
6772 A paragraph layout description looks like this
6773 \begin_inset Foot
6774 status collapsed
6775
6776 \begin_layout Standard
6777 Note that this will either define a new layout or modify an existing one.
6778 \end_layout
6779
6780 \end_inset
6781
6782 :
6783 \end_layout
6784
6785 \begin_layout LyX-Code
6786 Style 
6787 \family roman
6788 \emph on
6789 name
6790 \end_layout
6791
6792 \begin_layout LyX-Code
6793  ...
6794 \end_layout
6795
6796 \begin_layout LyX-Code
6797 End
6798 \end_layout
6799
6800 \begin_layout Standard
6801 where the following commands are allowed:
6802 \end_layout
6803
6804 \begin_layout Standard
6805 \begin_inset ERT
6806 status open
6807
6808 \begin_layout Standard
6809
6810
6811 \backslash
6812 begin{sloppypar}
6813 \end_layout
6814
6815 \end_inset
6816
6817
6818 \end_layout
6819
6820 \begin_layout Description
6821
6822 \family typewriter
6823 \series medium
6824 CopyStyle
6825 \family default
6826 \series default
6827  
6828 \family typewriter
6829 [string]
6830 \family default
6831  This is used to copy all the features of an existing layout into the current
6832  one.
6833  
6834 \end_layout
6835
6836 \begin_layout Description
6837
6838 \family typewriter
6839 \series medium
6840 LatexType
6841 \family default
6842 \series default
6843  [
6844 \family typewriter
6845 \emph on
6846 Paragraph
6847 \emph default
6848 , Command, Environment, Item_Environment,
6849 \family default
6850  
6851 \family typewriter
6852 List_Environment
6853 \family default
6854 ] How the layout should be translated into LaTeX.
6855  
6856 \family typewriter
6857 Paragraph
6858 \family default
6859  means nothing special.
6860  
6861 \family typewriter
6862 Command
6863 \family default
6864  means 
6865 \family typewriter
6866
6867 \backslash
6868
6869 \emph on
6870 LatexName
6871 \emph default
6872 {\SpecialChar \ldots{}
6873 }
6874 \family default
6875  and 
6876 \family typewriter
6877 Environment
6878 \family default
6879  means 
6880 \family typewriter
6881
6882 \backslash
6883 begin{
6884 \emph on
6885 LatexName
6886 \emph default
6887 }\SpecialChar \ldots{}
6888
6889 \backslash
6890 end{
6891 \emph on
6892 LatexName
6893 \emph default
6894 }
6895 \family default
6896 .
6897  
6898 \family typewriter
6899 Item_Environment
6900 \family default
6901  is the same as 
6902 \family typewriter
6903 Environment
6904 \family default
6905 , except that a 
6906 \family typewriter
6907
6908 \backslash
6909 item
6910 \family default
6911  is generated for each paragraph of this environment.
6912  
6913 \family typewriter
6914 List_Environment
6915 \family default
6916  is the same as 
6917 \family typewriter
6918 Item_Environment
6919 \family default
6920 , except that 
6921 \family typewriter
6922 LabelWidthString
6923 \family default
6924  is passed as an argument to the environment.
6925  
6926 \family typewriter
6927 LabelWidthString
6928 \family default
6929  can be defined in the 
6930 \family sans
6931 \bar under
6932 L
6933 \bar default
6934 ayout\SpecialChar \menuseparator
6935
6936 \bar under
6937 P
6938 \bar default
6939 aragraph
6940 \family default
6941  dialog.
6942  
6943 \family typewriter
6944 \emph on
6945 LatexType
6946 \family default
6947 \emph default
6948  is perhaps a bit misleading, since these rules apply to SGML classes, too.
6949  Visit the SGML class files for specific examples.
6950 \end_layout
6951
6952 \begin_layout Description
6953
6954 \family typewriter
6955 \series medium
6956 InTitle
6957 \family default
6958 \series default
6959  
6960 \family typewriter
6961 [1, 0]
6962 \family default
6963  If 1, marks the layout as being part of a title block (see also the 
6964 \family typewriter
6965 TitleLatexType
6966 \family default
6967  and 
6968 \family typewriter
6969 TitleLatexName
6970 \family default
6971  global entries)
6972 \end_layout
6973
6974 \begin_layout Description
6975
6976 \family typewriter
6977 \series medium
6978 LatexName
6979 \family default
6980 \series default
6981  The name of the corresponding LaTeX stuff.
6982  Either the environment or command name.
6983 \end_layout
6984
6985 \begin_layout Description
6986
6987 \family typewriter
6988 \series medium
6989 LatexParam
6990 \family default
6991 \series default
6992  The optional parameter for the corresponding 
6993 \family typewriter
6994 \series medium
6995 LatexName
6996 \family default
6997 \series default
6998  stuff.
6999  This parameter cannot be changed from within LyX.
7000 \end_layout
7001
7002 \begin_layout Description
7003
7004 \family typewriter
7005 \series medium
7006 OptionalArgs
7007 \family default
7008 \series default
7009  [
7010 \family typewriter
7011 int=0
7012 \family default
7013 ] The number of optional arguments that can be used with this layout.
7014  This is useful for things like section headings, and only makes sense with
7015  LaTeX.
7016 \end_layout
7017
7018 \begin_layout Description
7019
7020 \family typewriter
7021 \series medium
7022 Margin
7023 \family default
7024 \series default
7025  [
7026 \family typewriter
7027 \emph on
7028 Static
7029 \emph default
7030 , Manual, Dynamic, First_Dynamic, Right_Address_Box
7031 \family default
7032
7033 \newline
7034 The kind of margin that the layout has on the left side.
7035  
7036 \family typewriter
7037 Static
7038 \family default
7039  just means a fixed margin.
7040  
7041 \family typewriter
7042 Manual
7043 \family default
7044  means that the left margin depends on the string entered in the 
7045 \family sans
7046 \bar under
7047 E
7048 \bar default
7049 dit\SpecialChar \menuseparator
7050
7051 \bar under
7052 P
7053 \bar default
7054 aragraph\InsetSpace ~
7055 Settings
7056 \family default
7057  dialog.
7058  This is used to typeset nice lists without tabulators.
7059  
7060 \family typewriter
7061 Dynamic
7062 \family default
7063  means that the margin depends on the size of the label.
7064  This is used for automatic enumerated headlines.
7065  It is obvious that the headline 
7066 \begin_inset Quotes eld
7067 \end_inset
7068
7069 5.4.3.2.1 Very long headline
7070 \begin_inset Quotes erd
7071 \end_inset
7072
7073  must have a wider left margin (as wide as 
7074 \begin_inset Quotes eld
7075 \end_inset
7076
7077 5.4.3.2.1
7078 \begin_inset Quotes erd
7079 \end_inset
7080
7081  plus the space) than 
7082 \begin_inset Quotes eld
7083 \end_inset
7084
7085 3.2 Very long headline
7086 \begin_inset Quotes erd
7087 \end_inset
7088
7089 , even if other word processors are not able to do this.
7090  
7091 \family typewriter
7092 First_Dynamic
7093 \family default
7094  is similar, but only the very first row of the paragraph is dynamic, while
7095  the others are static; this is used, for example, for descriptions.
7096  
7097 \family typewriter
7098 Right_Address_Box
7099 \family default
7100  means the margin is chosen in a way that the longest row of this paragraph
7101  fits to the right margin.
7102  This is used to typeset an address on the right edge of the page.
7103 \end_layout
7104
7105 \begin_layout Description
7106
7107 \family typewriter
7108 \series medium
7109 NextNoIndent
7110 \family default
7111 \series default
7112  [
7113 \family typewriter
7114 1,
7115 \family default
7116  
7117 \family typewriter
7118 \emph on
7119 0
7120 \family default
7121 \emph default
7122 ] Whether the following Paragraph is allowed to indent its very first row.
7123  
7124 \family typewriter
7125 1
7126 \family default
7127  means that it is not allowed to do so, 
7128 \family typewriter
7129 0
7130 \family default
7131  means it could do so if it wants to.
7132 \end_layout
7133
7134 \begin_layout Description
7135
7136 \family typewriter
7137 \series medium
7138 ParIndent
7139 \family default
7140 \series default
7141  [
7142 \family typewriter
7143 string=""
7144 \family default
7145 ] The indent of the very first line of a paragraph.
7146  The argument is passed as a string.
7147  For example 
7148 \family typewriter
7149 "MM"
7150 \family default
7151  means that the paragraph is indented with the width of 
7152 \family typewriter
7153 "MM"
7154 \family default
7155  in 
7156 \family typewriter
7157 the
7158 \family default
7159  normal font.
7160  You can get a negative width by prefixing the string with 
7161 \family typewriter
7162 "-"
7163 \family default
7164 .
7165  This way was chosen so that the look is the same with each used screen
7166  font.
7167  The 
7168 \family typewriter
7169 Parindent
7170 \family default
7171  will be fixed for a certain layout.
7172  The exception is Standard layout, since the indentation of a Standard layout
7173  paragraph can be prohibited with 
7174 \family typewriter
7175 NextNoIndent
7176 \family default
7177 .
7178  Also, Standard layout paragraphs inside environments use the 
7179 \family typewriter
7180 Parindent
7181 \family default
7182  of the environment, not their native one.
7183  For example, Standard paragraphs inside an enumeration are not indented.
7184 \end_layout
7185
7186 \begin_layout Description
7187
7188 \family typewriter
7189 \series medium
7190 Parskip
7191 \family default
7192 \series default
7193  [
7194 \family typewriter
7195 float=0
7196 \family default
7197 ] LyX allows to choose either 
7198 \begin_inset Quotes eld
7199 \end_inset
7200
7201 indent
7202 \begin_inset Quotes erd
7203 \end_inset
7204
7205  or 
7206 \begin_inset Quotes eld
7207 \end_inset
7208
7209 skip
7210 \begin_inset Quotes erd
7211 \end_inset
7212
7213  to typeset a document.
7214  When 
7215 \begin_inset Quotes eld
7216 \end_inset
7217
7218 indent
7219 \begin_inset Quotes erd
7220 \end_inset
7221
7222  is chosen, this value is completely ignored.
7223  When 
7224 \begin_inset Quotes eld
7225 \end_inset
7226
7227 skip
7228 \begin_inset Quotes erd
7229 \end_inset
7230
7231  is chosen, the parindent of a LaTeXtype 
7232 \begin_inset Quotes eld
7233 \end_inset
7234
7235 Paragraph
7236 \begin_inset Quotes erd
7237 \end_inset
7238
7239  layout is ignored and all paragraphs are additionally separated by this
7240  parskip argument.
7241  The vertical space is calculated with 
7242 \family typewriter
7243 value*DefaultHeight()
7244 \family default
7245  where 
7246 \family typewriter
7247 DefaultHeight()
7248 \family default
7249  is the height of a row with the normal font.
7250  This way, the look stays the same with different screen fonts.
7251 \end_layout
7252
7253 \begin_layout Description
7254
7255 \family typewriter
7256 \series medium
7257 TopSep
7258 \family default
7259 \series default
7260  [
7261 \family typewriter
7262 float=0
7263 \family default
7264 ] The vertical space with which the very first of a chain of paragraphs
7265  with this layout is separated from the previous paragraph.
7266  If the previous paragraph has another layout, the separations are not simply
7267  added, but the maximum is taken.
7268 \end_layout
7269
7270 \begin_layout Description
7271
7272 \family typewriter
7273 \series medium
7274 BottomSep
7275 \family default
7276 \series default
7277  [
7278 \family typewriter
7279 float=0
7280 \family default
7281 ] The same as 
7282 \family typewriter
7283 TopSep
7284 \family default
7285  for the very last paragraph.
7286 \end_layout
7287
7288 \begin_layout Description
7289
7290 \family typewriter
7291 \series medium
7292 Parsep
7293 \family default
7294 \series default
7295  [
7296 \family typewriter
7297 float=0
7298 \family default
7299 ] The vertical space between two paragraphs of this layout.
7300 \end_layout
7301
7302 \begin_layout Description
7303
7304 \family typewriter
7305 \series medium
7306 Itemsep
7307 \family default
7308 \series default
7309  [
7310 \family typewriter
7311 float=0
7312 \family default
7313 ] This is an extra space between the paragraphs of an environment layout.
7314  If you put other layouts into an environment, each is separated with the
7315  environment's 
7316 \family typewriter
7317 Parsep
7318 \family default
7319 .
7320  But the whole items of the environment are additionally separated with
7321  this 
7322 \family typewriter
7323 Itemsep
7324 \family default
7325 .
7326  
7327 \end_layout
7328
7329 \begin_layout Description
7330
7331 \family typewriter
7332 \series medium
7333 LeftMargin
7334 \family default
7335 \series default
7336  [
7337 \family typewriter
7338 string=""
7339 \family default
7340 ] If you put layouts into environments, the leftmargins are not simply added,
7341  but added with a factor 
7342 \begin_inset Formula $\frac{4}{depth+4}$
7343 \end_inset
7344
7345 .
7346  Note that this parameter is also used when the border is defined as 
7347 \family typewriter
7348 Manual
7349 \family default
7350  or 
7351 \family typewriter
7352 Dynamic
7353 \family default
7354 .
7355  Then it is added to the manual or dynamic border.
7356  This string has the same meaning as for 
7357 \family typewriter
7358 ParIndent
7359 \family default
7360 .
7361 \end_layout
7362
7363 \begin_layout Description
7364
7365 \family typewriter
7366 \series medium
7367 RightMargin
7368 \family default
7369 \series default
7370  [
7371 \family typewriter
7372 string=""
7373 \family default
7374 ] Similar to 
7375 \family typewriter
7376 LeftMargin
7377 \family default
7378 .
7379 \end_layout
7380
7381 \begin_layout Description
7382
7383 \family typewriter
7384 \series medium
7385 Labeltype
7386 \family default
7387 \series default
7388  [
7389 \family typewriter
7390 \emph on
7391 No_Label
7392 \emph default
7393 , Manual, Static, Top_Environment, 
7394 \newline
7395 Centered_Top_Environment, Sensitive,
7396  Counter
7397 \family default
7398
7399 \newline
7400
7401 \family typewriter
7402 Manual
7403 \family default
7404  means the label is the very first word (up to the first real blank).
7405  
7406 \family typewriter
7407 Static
7408 \family default
7409  means it is defined in the layout (see 
7410 \family typewriter
7411 LabelString
7412 \family default
7413 ).
7414  
7415 \family typewriter
7416 Top_Environment
7417 \family default
7418  and 
7419 \family typewriter
7420 Centered_Top_Environment
7421 \family default
7422  are special cases of 
7423 \family typewriter
7424 Static
7425 \family default
7426 .
7427  The label will be printed above the paragraph, but only at the top of an
7428  environment or the top of a chain of paragraphs with this layout.
7429  Usage is for example the 
7430 \family sans
7431 Abstract
7432 \family default
7433  layout or the 
7434 \family sans
7435 Bibliography
7436 \family default
7437  layout.
7438  This is also the case for 
7439 \family typewriter
7440 Manual
7441 \family default
7442  labels with latex type 
7443 \family typewriter
7444 Environment
7445 \family default
7446 , in order to make layouts for theorems work correctly.
7447  
7448 \family typewriter
7449 Sensitive
7450 \family default
7451  is a special case for the caption-labels 
7452 \begin_inset Quotes eld
7453 \end_inset
7454
7455 Figure
7456 \begin_inset Quotes erd
7457 \end_inset
7458
7459  and 
7460 \begin_inset Quotes eld
7461 \end_inset
7462
7463 Table
7464 \begin_inset Quotes erd
7465 \end_inset
7466
7467 .
7468  
7469 \family typewriter
7470 Sensitive
7471 \family default
7472  means the (hardcoded) label string depends on the kind of float.
7473  The 
7474 \family typewriter
7475 Counter
7476 \family default
7477  label type defines automatically numbered labels.
7478 \end_layout
7479
7480 \begin_layout Description
7481
7482 \family typewriter
7483 \series medium
7484 LabelCounter
7485 \family default
7486 \series default
7487  [
7488 \family typewriter
7489 string=""
7490 \family default
7491 ]
7492 \newline
7493 The name of the counter for automatic numbering (see Section\InsetSpace ~
7494
7495 \begin_inset LatexCommand ref
7496 reference "sec:counter"
7497
7498 \end_inset
7499
7500  for details).
7501  This must be given if 
7502 \family typewriter
7503 \series medium
7504 Labeltype
7505 \family default
7506 \series default
7507  is 
7508 \family typewriter
7509 Counter
7510 \family default
7511 .
7512 \end_layout
7513
7514 \begin_layout Description
7515
7516 \family typewriter
7517 \series medium
7518 Labelsep
7519 \family default
7520 \series default
7521  [
7522 \family typewriter
7523 string=""
7524 \family default
7525 ] The horizontal space between the label and the text body.
7526  Only used for labels that are not above the text body.
7527 \end_layout
7528
7529 \begin_layout Description
7530
7531 \family typewriter
7532 \series medium
7533 LabelBottomsep
7534 \family default
7535 \series default
7536  [float=0] The vertical space between the label and the text body.
7537  Only used for labels that are above the text body (
7538 \family typewriter
7539 Top_Environment
7540 \family default
7541
7542 \family typewriter
7543 Centered_Top_Environment
7544 \family default
7545 ).
7546 \end_layout
7547
7548 \begin_layout Description
7549
7550 \family typewriter
7551 \series medium
7552 LabelString
7553 \family default
7554 \series default
7555  [
7556 \family typewriter
7557 string=""
7558 \family default
7559 ] The string used for a label with a 
7560 \family typewriter
7561 Static
7562 \family default
7563  labeltype.
7564  When the border is 
7565 \family typewriter
7566 Manual
7567 \family default
7568  this string is also used as a suggestion for the 
7569 \family typewriter
7570 LabelWidthString
7571 \family default
7572  that can be set in the 
7573 \family sans
7574 \bar under
7575 E
7576 \bar default
7577 dit\SpecialChar \menuseparator
7578
7579 \bar under
7580 P
7581 \bar default
7582 aragraph\InsetSpace ~
7583 Settings
7584 \family default
7585  dialog.
7586  When 
7587 \family typewriter
7588 \series medium
7589 LabelCounter
7590 \family default
7591 \series default
7592  is set, this string can be contain the special formatting commands described
7593  in Section\InsetSpace ~
7594
7595 \begin_inset LatexCommand ref
7596 reference "sec:counter"
7597
7598 \end_inset
7599
7600 .
7601  For the sake of backwards compatibility, the string 
7602 \family typewriter
7603 @
7604 \emph on
7605 style-name
7606 \emph default
7607 @
7608 \family default
7609  will be replaced by the expanded 
7610 \family typewriter
7611 LabelString
7612 \family default
7613  of style 
7614 \family typewriter
7615 \emph on
7616 style-name
7617 \family default
7618 \emph default
7619 .
7620  This feature is now obsolete and should be replaced by the mechanisms of
7621  Section\InsetSpace ~
7622
7623 \begin_inset LatexCommand ref
7624 reference "sec:counter"
7625
7626 \end_inset
7627
7628 .
7629 \end_layout
7630
7631 \begin_layout Description
7632
7633 \family typewriter
7634 \series medium
7635 LabelStringAppendix
7636 \family default
7637 \series default
7638  [
7639 \family typewriter
7640 string=""
7641 \family default
7642 ] This is used inside the appendix instead of 
7643 \family typewriter
7644 LabelString
7645 \family default
7646 .
7647  Note that every 
7648 \family typewriter
7649 LabelString
7650 \family default
7651  statement resets 
7652 \family typewriter
7653 \series medium
7654 LabelStringAppendix
7655 \family default
7656 \series default
7657  too
7658 \family typewriter
7659 \series medium
7660 .
7661 \end_layout
7662
7663 \begin_layout Description
7664
7665 \family typewriter
7666 \series medium
7667 TocLevel [int]
7668 \family default
7669 \series default
7670  The level of the style in the table of contents.
7671  This is used for automatic numbering of section headings.
7672 \end_layout
7673
7674 \begin_layout Description
7675
7676 \family typewriter
7677 \series medium
7678 EndLabeltype
7679 \family default
7680 \series default
7681  [
7682 \family typewriter
7683 \emph on
7684 No_Label
7685 \emph default
7686 , Box, Filled_Box, Static
7687 \family default
7688 ] The type of label that stands at the end of the paragraph (or sequence
7689  of paragraphs if 
7690 \family typewriter
7691 LatexType
7692 \family default
7693  is 
7694 \family typewriter
7695 Environment
7696 \family default
7697
7698 \family typewriter
7699 Item_Environment
7700 \family default
7701  or 
7702 \family typewriter
7703 List_Environment
7704 \family default
7705 ).
7706  
7707 \family typewriter
7708 No_Label
7709 \family default
7710  means 
7711 \begin_inset Quotes eld
7712 \end_inset
7713
7714 nothing
7715 \begin_inset Quotes erd
7716 \end_inset
7717
7718
7719 \family typewriter
7720 Box
7721 \family default
7722  (resp.
7723 \family typewriter
7724 \InsetSpace ~
7725 Filled_Box
7726 \family default
7727 ) is a white (resp.\InsetSpace ~
7728 black) square suitable for end of proof markers, 
7729 \family typewriter
7730 Static
7731 \family default
7732  is an explicit text string.
7733 \end_layout
7734
7735 \begin_layout Description
7736
7737 \family typewriter
7738 \series medium
7739 EndLabelString
7740 \family default
7741 \series default
7742  [
7743 \family typewriter
7744 string=""
7745 \family default
7746 ] The string used for a label with a 
7747 \family typewriter
7748 Static
7749 \family default
7750  
7751 \family typewriter
7752 EndLabelType
7753 \family default
7754 .
7755  
7756 \end_layout
7757
7758 \begin_layout Description
7759
7760 \family typewriter
7761 \series medium
7762 Align
7763 \family default
7764 \series default
7765  [
7766 \family typewriter
7767 \emph on
7768 block
7769 \emph default
7770 , left, right, center
7771 \family default
7772 ] Paragraph alignment.
7773 \end_layout
7774
7775 \begin_layout Description
7776
7777 \family typewriter
7778 \series medium
7779 AlignPossible
7780 \family default
7781 \series default
7782  [
7783 \family typewriter
7784 \emph on
7785 block
7786 \emph default
7787 , left, right, center
7788 \family default
7789 ] A comma separated 
7790 \emph on
7791 list
7792 \emph default
7793  of possible aligns.
7794  Some LaTeX styles prohibit certain alignments, since those wouldn't make
7795  sense.
7796  For example a right-aligned or centered enumeration isn't possible.
7797 \end_layout
7798
7799 \begin_layout Description
7800
7801 \family typewriter
7802 \series medium
7803 Fill_Top
7804 \family default
7805 \series default
7806  [
7807 \family typewriter
7808 \emph on
7809 0
7810 \emph default
7811 ,1
7812 \family default
7813 ] With this parameter the 
7814 \family sans
7815 Fill
7816 \family default
7817  value of the 
7818 \begin_inset Quotes eld
7819 \end_inset
7820
7821 Vertical space above
7822 \begin_inset Quotes erd
7823 \end_inset
7824
7825  list of the 
7826 \family sans
7827 \bar under
7828 E
7829 \bar default
7830 dit\SpecialChar \menuseparator
7831
7832 \bar under
7833 P
7834 \bar default
7835 aragraph\InsetSpace ~
7836 Settings
7837 \family default
7838  dialog can be set when initializing a paragraph with this layout
7839 \begin_inset Foot
7840 status collapsed
7841
7842 \begin_layout Standard
7843
7844 \emph on
7845 Note from Jean-Marc:
7846 \emph default
7847  I'm not sure that this setting has much use, and it should probably be
7848  removed in later versions.
7849 \end_layout
7850
7851 \end_inset
7852
7853 .
7854  
7855 \end_layout
7856
7857 \begin_layout Description
7858
7859 \family typewriter
7860 \series medium
7861 Fill_Bottom
7862 \family default
7863 \series default
7864  [
7865 \family typewriter
7866 \emph on
7867 0
7868 \emph default
7869 ,1
7870 \family default
7871 ] Similar to 
7872 \family typewriter
7873 Fill_Top
7874 \family default
7875 .
7876 \end_layout
7877
7878 \begin_layout Description
7879
7880 \family typewriter
7881 \series medium
7882 NeedProtect
7883 \family default
7884 \series default
7885  [
7886 \family typewriter
7887 \emph on
7888 0
7889 \emph default
7890 ,1
7891 \family default
7892 ] Whether fragile commands in this layout should be 
7893 \family typewriter
7894
7895 \backslash
7896 protect
7897 \family default
7898 'ed.
7899 \end_layout
7900
7901 \begin_layout Description
7902
7903 \family typewriter
7904 \series medium
7905 Newline
7906 \family default
7907 \series default
7908  [
7909 \family typewriter
7910 0,
7911 \family default
7912  
7913 \family typewriter
7914 \emph on
7915 1
7916 \family default
7917 \emph default
7918 ] Whether newlines are translated into LaTeX newlines (
7919 \family typewriter
7920
7921 \backslash
7922
7923 \backslash
7924
7925 \family default
7926 ) or not.
7927  The translation can be switched off to allow more comfortable LaTeX editing
7928  inside LyX.
7929 \end_layout
7930
7931 \begin_layout Description
7932
7933 \family typewriter
7934 \series medium
7935 PassThru
7936 \family default
7937 \series default
7938  [
7939 \family typewriter
7940 \emph on
7941 0
7942 \emph default
7943 , 1
7944 \family default
7945 ] Whether the contents of this paragraph should be output in raw form, meaning
7946  without special translations that LaTeX would require.
7947  This somehow replaces the older 
7948 \family typewriter
7949 Latex
7950 \family default
7951  font property.
7952 \end_layout
7953
7954 \begin_layout Description
7955
7956 \family typewriter
7957 \series medium
7958 FreeSpacing
7959 \family default
7960 \series default
7961  [
7962 \family typewriter
7963 \emph on
7964 0
7965 \emph default
7966 , 1
7967 \family default
7968 ] Usually LyX doesn't allow you to insert more than one space between words,
7969  since a space is considered as the separation between two words, not a
7970  character or symbol of its own.
7971  This is a very fine thing but sometimes annoying, for example when typing
7972  program code or plain LaTeX code.
7973  For this reason, 
7974 \family typewriter
7975 FreeSpacing
7976 \family default
7977  can be enabled.
7978  Note that LyX will create protected blanks for the additional blanks when
7979  in another mode than LaTeX-mode.
7980 \end_layout
7981
7982 \begin_layout Description
7983
7984 \family typewriter
7985 \series medium
7986 KeepEmpty
7987 \family default
7988 \series default
7989  [
7990 \family typewriter
7991 \emph on
7992 0
7993 \emph default
7994 , 1
7995 \family default
7996 ] Usually LyX does not allow you to leave a paragraph empty, since it would
7997  lead to empty LaTeX output.
7998  There are some cases where this could be desirable however: in a letter
7999  template, the required fields can be provided as empty fields, so that
8000  people do not forget them; in some special classes, a layout can be used
8001  as some kind of break, which does not contain actual text.
8002 \end_layout
8003
8004 \begin_layout Description
8005
8006 \family typewriter
8007 \series medium
8008 Spacing
8009 \family default
8010 \series default
8011  [
8012 \family typewriter
8013 \emph on
8014 single
8015 \emph default
8016 , onehalf, double, other
8017 \family default
8018  
8019 \emph on
8020 value
8021 \emph default
8022 ] This defines what the default spacing should be in the layout.
8023  The arguments 
8024 \family typewriter
8025 single
8026 \family default
8027
8028 \family typewriter
8029 onehalf
8030 \family default
8031  and 
8032 \family typewriter
8033 double
8034 \family default
8035  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
8036  If you specify the argument 
8037 \family typewriter
8038 other
8039 \family default
8040 , then you should also provide a numerical argument which will be the actual
8041  multiplier value.
8042  Note that, contrary to other parameters, 
8043 \family typewriter
8044 Spacing
8045 \family default
8046  implies the generation of specific LaTeX code, using the package 
8047 \family typewriter
8048 setspace.sty
8049 \family roman
8050 .
8051 \end_layout
8052
8053 \begin_layout Description
8054
8055 \family typewriter
8056 \series medium
8057 Font
8058 \family default
8059 \series default
8060  The font used for both the text body 
8061 \emph on
8062 and
8063 \emph default
8064  the label.
8065  See section\InsetSpace ~
8066
8067 \begin_inset LatexCommand ref
8068 reference "sec:fonts"
8069
8070 \end_inset
8071
8072 .
8073  Note that defining this font automatically defines the 
8074 \family typewriter
8075 LabelFont
8076 \family default
8077  to the same value.
8078 \end_layout
8079
8080 \begin_layout Description
8081
8082 \family typewriter
8083 \series medium
8084 TextFont
8085 \family default
8086 \series default
8087  The font used for the text body .
8088  See section\InsetSpace ~
8089
8090 \begin_inset LatexCommand ref
8091 reference "sec:fonts"
8092
8093 \end_inset
8094
8095 .
8096 \end_layout
8097
8098 \begin_layout Description
8099
8100 \family typewriter
8101 \series medium
8102 LabelFont
8103 \family default
8104 \series default
8105  The font used for the label.
8106  See section\InsetSpace ~
8107
8108 \begin_inset LatexCommand ref
8109 reference "sec:fonts"
8110
8111 \end_inset
8112
8113 .
8114 \end_layout
8115
8116 \begin_layout Description
8117
8118 \family typewriter
8119 \series medium
8120 Preamble\SpecialChar \ldots{}
8121 EndPreamble
8122 \family default
8123 \series default
8124  A set of macro definitions that will be output at the beginning of the
8125  LaTeX files when the layout is used.
8126  Use this to define the macros needed by this particular layout.
8127 \end_layout
8128
8129 \begin_layout Description
8130
8131 \family typewriter
8132 \series medium
8133 DependsOn
8134 \family default
8135 \series default
8136  the name of a style which preamble should be output 
8137 \emph on
8138 before
8139 \emph default
8140  the one mentionned above.
8141  This allows to ensure some ordering of the preamble snippets when macros
8142  definitions depend on one another
8143 \begin_inset Foot
8144 status collapsed
8145
8146 \begin_layout Standard
8147 Note that, besides that functionality, there is no way to ensure any ordering
8148  of preambles.
8149  The ordering that you see in a given version of LyX may change without
8150  warning in later versions.
8151 \end_layout
8152
8153 \end_inset
8154
8155 .
8156 \end_layout
8157
8158 \begin_layout Standard
8159 \begin_inset ERT
8160 status open
8161
8162 \begin_layout Standard
8163
8164
8165 \backslash
8166 end{sloppypar}
8167 \end_layout
8168
8169 \end_inset
8170
8171
8172 \end_layout
8173
8174 \begin_layout Subsection
8175 Floats
8176 \end_layout
8177
8178 \begin_layout Standard
8179 \begin_inset LatexCommand label
8180 name "sec:floats"
8181
8182 \end_inset
8183
8184 Since version 1.3.0 of LyX, it is necessary to define the floats (
8185 \family sans
8186 figure
8187 \family default
8188
8189 \family sans
8190 table
8191 \family default
8192 , \SpecialChar \ldots{}
8193 ) in the text class itself.
8194  If you are looking here to learn how to upgrade an existing text class,
8195  it will probably turn out that all you have to do is to add
8196 \end_layout
8197
8198 \begin_layout LyX-Code
8199 Input stdfloats.inc
8200 \end_layout
8201
8202 \begin_layout Standard
8203 at a reasonable location of the text class.
8204 \begin_inset Foot
8205 status collapsed
8206
8207 \begin_layout Standard
8208 Don't forget to also have a look at counters in next section.
8209 \end_layout
8210
8211 \end_inset
8212
8213  If you want to implement a text class that proposes some other float types
8214  (like the AGU class bundled with LyX), the information below will hopefully
8215  help you:
8216 \end_layout
8217
8218 \begin_layout Description
8219
8220 \family typewriter
8221 \series medium
8222 Type
8223 \family default
8224 \series default
8225  [
8226 \family typewriter
8227 string
8228 \family default
8229 =
8230 \begin_inset Quotes erd
8231 \end_inset
8232
8233
8234 \begin_inset Quotes erd
8235 \end_inset
8236
8237 ] The 
8238 \begin_inset Quotes eld
8239 \end_inset
8240
8241 type
8242 \begin_inset Quotes erd
8243 \end_inset
8244
8245  of the new class of floats, like program or algorithm.
8246  After the appropriate 
8247 \family typewriter
8248
8249 \backslash
8250 newfloat
8251 \family default
8252 , commands such as 
8253 \family typewriter
8254
8255 \backslash
8256 begin{program}
8257 \family default
8258  or 
8259 \family typewriter
8260
8261 \backslash
8262 end{algorithm*}
8263 \family default
8264  will be available.
8265 \end_layout
8266
8267 \begin_layout Description
8268
8269 \family typewriter
8270 \series medium
8271 GuiName
8272 \family default
8273 \series default
8274  [
8275 \family typewriter
8276 string
8277 \family default
8278 =
8279 \begin_inset Quotes erd
8280 \end_inset
8281
8282
8283 \begin_inset Quotes erd
8284 \end_inset
8285
8286 ] The string that will be used in the menus and also for the caption.
8287 \end_layout
8288
8289 \begin_layout Description
8290
8291 \family typewriter
8292 \series medium
8293 LaTeXBuiltin
8294 \family default
8295 \series default
8296  [
8297 \family typewriter
8298 \emph on
8299 0
8300 \family default
8301 \emph default
8302
8303 \family typewriter
8304 1
8305 \family default
8306 ] Set to 
8307 \family typewriter
8308 1
8309 \family default
8310  if the float is already defined by the documentclass.
8311  If this is set to 
8312 \family typewriter
8313 0
8314 \family default
8315 , the float will be defined using the LaTeX package 
8316 \family typewriter
8317 float
8318 \family default
8319 .
8320 \end_layout
8321
8322 \begin_layout Description
8323
8324 \family typewriter
8325 \series medium
8326 NumberWithin
8327 \family default
8328 \series default
8329  [
8330 \family typewriter
8331 string
8332 \family default
8333 =
8334 \begin_inset Quotes erd
8335 \end_inset
8336
8337
8338 \begin_inset Quotes erd
8339 \end_inset
8340
8341 ] This (optional) argument determines whether floats of this class will
8342  be numbered within some sectional unit of the document.
8343  For example, if within is equal to 
8344 \family typewriter
8345 chapter
8346 \family default
8347 , the floats will be numbered within chapters.
8348  
8349 \end_layout
8350
8351 \begin_layout Description
8352
8353 \family typewriter
8354 \series medium
8355 Style
8356 \family default
8357 \series default
8358  [
8359 \family typewriter
8360 string
8361 \family default
8362 =
8363 \begin_inset Quotes erd
8364 \end_inset
8365
8366
8367 \begin_inset Quotes erd
8368 \end_inset
8369
8370 ] The style used when defining the float using 
8371 \family typewriter
8372
8373 \backslash
8374 newfloat
8375 \family default
8376 .
8377 \end_layout
8378
8379 \begin_layout Description
8380
8381 \family typewriter
8382 \series medium
8383 Placement
8384 \family default
8385 \series default
8386  [
8387 \family typewriter
8388 string
8389 \family default
8390 =
8391 \begin_inset Quotes erd
8392 \end_inset
8393
8394
8395 \begin_inset Quotes erd
8396 \end_inset
8397
8398 ] The default placement for the given class of floats.
8399  They are like in standard LaTeX: 
8400 \family typewriter
8401 t
8402 \family default
8403
8404 \family typewriter
8405 b
8406 \family default
8407
8408 \family typewriter
8409 p
8410 \family default
8411  and 
8412 \family typewriter
8413 h
8414 \family default
8415  for top, bottom, page, and here, respectively.
8416 \begin_inset Foot
8417 status collapsed
8418
8419 \begin_layout Standard
8420 Note that the order of these letters in the string is irrelevant, like in
8421  LaTeX.
8422 \end_layout
8423
8424 \end_inset
8425
8426  On top of that there is a new type, 
8427 \family typewriter
8428 H
8429 \family default
8430 , which does not really correspond to a float, since it means: put it 
8431 \begin_inset Quotes eld
8432 \end_inset
8433
8434 here
8435 \begin_inset Quotes erd
8436 \end_inset
8437
8438  and nowhere else.
8439  Note, however that the 
8440 \family typewriter
8441 H
8442 \family default
8443  specifier is special and, because of implementation details cannot be used
8444  in non-builtin float types.
8445  If you do not understand what this means, just use 
8446 \family typewriter
8447 "tbp"
8448 \family default
8449 .
8450 \end_layout
8451
8452 \begin_layout Description
8453
8454 \family typewriter
8455 \series medium
8456 Extension
8457 \family default
8458 \series default
8459  [
8460 \family typewriter
8461 string
8462 \family default
8463 =
8464 \begin_inset Quotes erd
8465 \end_inset
8466
8467
8468 \begin_inset Quotes erd
8469 \end_inset
8470
8471 ] The file name extension of an auxiliary file for the list of figures (or
8472  whatever).
8473  LaTeX writes the captions to this file.
8474 \end_layout
8475
8476 \begin_layout Description
8477
8478 \family typewriter
8479 \series medium
8480 ListName
8481 \family default
8482 \series default
8483  [
8484 \family typewriter
8485 string
8486 \family default
8487 =
8488 \begin_inset Quotes erd
8489 \end_inset
8490
8491
8492 \begin_inset Quotes erd
8493 \end_inset
8494
8495 ] The heading used for the list of floats.
8496 \end_layout
8497
8498 \begin_layout Standard
8499 Note that defining a float with type 
8500 \family typewriter
8501 \emph on
8502 type
8503 \family default
8504 \emph default
8505  automatically defines the corresponding counter with name 
8506 \family typewriter
8507 \emph on
8508 type
8509 \family default
8510 \emph default
8511 .
8512 \end_layout
8513
8514 \begin_layout Subsection
8515 Inset layouts and Flex insets
8516 \end_layout
8517
8518 \begin_layout Standard
8519 \begin_inset LatexCommand label
8520 name "sec:charstyle"
8521
8522 \end_inset
8523
8524 You can define character styles since version 1.4.0 of LyX; since version
8525  1.6.0 these are called Flex insets.
8526  
8527 \end_layout
8528
8529 \begin_layout Standard
8530 Furthermore it is possible to define the general layout of many different
8531  types of insets.
8532  Currently layout parameters can be defined for footnotes, marginal notes,
8533  note insets, ERT insets, branch insets, and Flex insets.
8534  The latter are definable from the user GUI and come in three different
8535  kinds: character style (
8536 \family typewriter
8537 CharStyle
8538 \family default
8539 ) , user custom (
8540 \family typewriter
8541 Custom
8542 \family default
8543 ), and XML element (
8544 \family typewriter
8545 Element
8546 \family default
8547 ) insets.
8548  
8549 \end_layout
8550
8551 \begin_layout Standard
8552 The 
8553 \family typewriter
8554 InsetLayout
8555 \family default
8556  definition starting line is of the form
8557 \end_layout
8558
8559 \begin_layout LyX-Code
8560 InsetLayout <Type> <Name>
8561 \end_layout
8562
8563 \begin_layout Standard
8564 where
8565 \end_layout
8566
8567 \begin_layout Standard
8568
8569 \family typewriter
8570 <type>
8571 \family default
8572  can be 
8573 \family typewriter
8574 Foot, Margin, Note, Flex
8575 \family default
8576 , and 
8577 \end_layout
8578
8579 \begin_layout Standard
8580
8581 \family typewriter
8582 <Name>
8583 \family default
8584  can be empty (for foot- and marginal notes, branches and ERT) or one of
8585  types 
8586 \family typewriter
8587 CharStyle:Noun
8588 \family default
8589
8590 \family typewriter
8591 Note:Comment
8592 \family default
8593
8594 \family typewriter
8595 Custom:Endnote
8596 \family default
8597
8598 \family typewriter
8599 Element:Filename
8600 \family default
8601 , etc.
8602  Here, the second part of the name can be chosen freely (for CharStyle,
8603  Custom and Element), or from a predefined list (for Note).
8604 \end_layout
8605
8606 \begin_layout Standard
8607 The following 
8608 \family typewriter
8609 InsetLayout
8610 \family default
8611  section can contain the following entries:
8612 \end_layout
8613
8614 \begin_layout Description
8615
8616 \family typewriter
8617 \series medium
8618 LyxType 
8619 \family default
8620 \series default
8621 can be 
8622 \family typewriter
8623 charstyle
8624 \family default
8625
8626 \family typewriter
8627 custom
8628 \family default
8629
8630 \family typewriter
8631 element
8632 \family default
8633
8634 \family typewriter
8635 end
8636 \family default
8637  (indicating a dummy definition ending definitions of charstyles etc.).
8638  This entry is only meaningful for Flex (user definable) insets, the three
8639  types of which are CharStyle, Custom and Element.
8640 \end_layout
8641
8642 \begin_layout Description
8643
8644 \family typewriter
8645 \series medium
8646 Decoration
8647 \family default
8648 \series default
8649  can be 
8650 \family typewriter
8651 \series medium
8652 Classic
8653 \family default
8654 \series default
8655 ,
8656 \family typewriter
8657 \series medium
8658  Minimalistic or Conglomerate
8659 \family default
8660 \series default
8661 , describing the rendering style used for the inset's frame and buttons.
8662 \end_layout
8663
8664 \begin_layout Description
8665
8666 \family typewriter
8667 \series medium
8668 LabelString
8669 \family default
8670 \series default
8671  defines what will be displayed on the button or elsewhere as the inset
8672  label.
8673  Some inset types (ERT and Branch) modify this label on the fly.
8674 \end_layout
8675
8676 \begin_layout Description
8677
8678 \family typewriter
8679 \series medium
8680 Font
8681 \family default
8682 \series default
8683  The font used for both the text body 
8684 \emph on
8685 and
8686 \emph default
8687  the label.
8688  See section\InsetSpace ~
8689
8690 \begin_inset LatexCommand ref
8691 reference "sec:fonts"
8692
8693 \end_inset
8694
8695 .
8696  Note that defining this font automatically defines the 
8697 \family typewriter
8698 LabelFont
8699 \family default
8700  to the same value.
8701 \end_layout
8702
8703 \begin_layout Description
8704
8705 \family typewriter
8706 \series medium
8707 LabelFont
8708 \family default
8709 \series default
8710  The font used for the label.
8711  See section\InsetSpace ~
8712
8713 \begin_inset LatexCommand ref
8714 reference "sec:fonts"
8715
8716 \end_inset
8717
8718 .
8719  Note that this definition can never appear before 
8720 \family typewriter
8721 Font
8722 \family default
8723 , lest it be ineffective (see above)
8724 \end_layout
8725
8726 \begin_layout Description
8727
8728 \family typewriter
8729 \series medium
8730 LatexName
8731 \family default
8732 \series default
8733  The name of the corresponding LaTeX stuff.
8734  Either the environment or command name.
8735 \end_layout
8736
8737 \begin_layout Description
8738
8739 \family typewriter
8740 \series medium
8741 LatexParam
8742 \family default
8743 \series default
8744  The optional parameter for the corresponding 
8745 \family typewriter
8746 \series medium
8747 LatexName
8748 \family default
8749 \series default
8750  stuff, including possible bracket pairs like 
8751 \family typewriter
8752 []
8753 \family default
8754 .
8755  This parameter cannot be changed from within LyX.
8756 \end_layout
8757
8758 \begin_layout Description
8759
8760 \family typewriter
8761 \series medium
8762 LatexType
8763 \family default
8764 \series default
8765  See section\InsetSpace ~
8766
8767 \begin_inset LatexCommand ref
8768 reference "sec:style"
8769
8770 \end_inset
8771
8772 .
8773 \end_layout
8774
8775 \begin_layout Description
8776
8777 \family typewriter
8778 \series medium
8779 Preamble\SpecialChar \ldots{}
8780 EndPreamble
8781 \family default
8782 \series default
8783  See section\InsetSpace ~
8784
8785 \begin_inset LatexCommand ref
8786 reference "sec:style"
8787
8788 \end_inset
8789
8790
8791 \end_layout
8792
8793 \begin_layout Subsection
8794 Counters
8795 \end_layout
8796
8797 \begin_layout Standard
8798 \begin_inset LatexCommand label
8799 name "sec:counter"
8800
8801 \end_inset
8802
8803 Since version 1.3.0 of LyX, it is necessary to define the counters (
8804 \family sans
8805 chapter
8806 \family default
8807
8808 \family sans
8809 figure
8810 \family default
8811 , \SpecialChar \ldots{}
8812 ) in the text class itself.
8813  If you are looking here to learn how to upgrade an existing text class,
8814  it will probably turn out that all you have to do is to add
8815 \end_layout
8816
8817 \begin_layout LyX-Code
8818 Input stdcounters.inc
8819 \end_layout
8820
8821 \begin_layout Standard
8822 The following parameters can be used:
8823 \end_layout
8824
8825 \begin_layout Description
8826
8827 \family typewriter
8828 \series medium
8829 Name
8830 \family default
8831 \series default
8832  [
8833 \family typewriter
8834 string
8835 \family default
8836 =
8837 \begin_inset Quotes erd
8838 \end_inset
8839
8840
8841 \begin_inset Quotes erd
8842 \end_inset
8843
8844 ] The name of the counter.
8845 \end_layout
8846
8847 \begin_layout Description
8848
8849 \family typewriter
8850 \series medium
8851 Within
8852 \family default
8853 \series default
8854  [
8855 \family typewriter
8856 string
8857 \family default
8858 =
8859 \begin_inset Quotes erd
8860 \end_inset
8861
8862
8863 \begin_inset Quotes erd
8864 \end_inset
8865
8866 ] If this is set to the name of another counter, the present counter will
8867  be reset everytime the other one is increased.
8868  For example, 
8869 \family typewriter
8870 subsection
8871 \family default
8872  is numbered inside 
8873 \family typewriter
8874 section
8875 \family default
8876 .
8877 \end_layout
8878
8879 \begin_layout Description
8880
8881 \family typewriter
8882 \series medium
8883 LabelString [string=""]
8884 \family default
8885 \series default
8886  when this is defined, this string defines how the counter is displayed.
8887  Setting this value resets 
8888 \family typewriter
8889 LabelStringAppendix
8890 \family default
8891  to the same value.
8892  The following special constructs can be used in the string:
8893 \end_layout
8894
8895 \begin_deeper
8896 \begin_layout Itemize
8897
8898 \family typewriter
8899
8900 \backslash
8901 thecounter
8902 \family default
8903  will be replaced by the expansion of the 
8904 \family typewriter
8905 LabelString
8906 \family default
8907  (or 
8908 \family typewriter
8909 LabelStringAppendix
8910 \family default
8911 ) of the counter 
8912 \family typewriter
8913 counter
8914 \family default
8915 .
8916  If these are empty, a default value is constructed as follows: if the counter
8917  has a master counter 
8918 \family typewriter
8919 master
8920 \family default
8921 , the string 
8922 \family typewriter
8923
8924 \backslash
8925 themaster.
8926 \backslash
8927 arabic{counter}
8928 \family default
8929  is used; otherwise the string 
8930 \family typewriter
8931
8932 \backslash
8933 arabic{counter}
8934 \family default
8935  is used.
8936 \end_layout
8937
8938 \begin_layout Itemize
8939 counter values can be expressed using LaTeX-like macros 
8940 \family typewriter
8941
8942 \backslash
8943
8944 \emph on
8945 numbertype
8946 \emph default
8947 {
8948 \emph on
8949 counter
8950 \emph default
8951 }
8952 \family default
8953 , where 
8954 \family typewriter
8955 \emph on
8956 numbertype
8957 \family default
8958 \emph default
8959  can be:
8960 \end_layout
8961
8962 \begin_deeper
8963 \begin_layout Description
8964
8965 \family typewriter
8966 \series medium
8967 arabic
8968 \family default
8969 \series default
8970  to translate 
8971 \family typewriter
8972 counter
8973 \family default
8974  to arabic numerals, like 1, 2, 3\SpecialChar \ldots{}
8975
8976 \begin_inset Foot
8977 status collapsed
8978
8979 \begin_layout Standard
8980
8981 \family roman
8982 \series medium
8983 \shape up
8984 \size normal
8985 \emph off
8986 \bar no
8987 \noun off
8988 \color none
8989 Actually, the situation is a bit more complicated than that: any
8990 \family default
8991 \series default
8992 \shape default
8993 \emph default
8994 \bar default
8995  
8996 \family typewriter
8997 \size default
8998 \emph on
8999 \noun default
9000 numbertype
9001 \family roman
9002 \series medium
9003 \shape up
9004 \size normal
9005 \emph off
9006 \bar no
9007 \noun off
9008  other than those descibed below will produce arabic numerals.
9009  It would not be surprising to see this change in the future.
9010 \end_layout
9011
9012 \end_inset
9013
9014
9015 \end_layout
9016
9017 \begin_layout Description
9018
9019 \family typewriter
9020 \series medium
9021 alph
9022 \family default
9023 \series default
9024  for lower-case letters: a, b, c, \SpecialChar \ldots{}
9025
9026 \end_layout
9027
9028 \begin_layout Description
9029
9030 \family typewriter
9031 \series medium
9032 Alph
9033 \family default
9034 \series default
9035  for upper-case letters: A, B, C, \SpecialChar \ldots{}
9036
9037 \end_layout
9038
9039 \begin_layout Description
9040
9041 \family typewriter
9042 \series medium
9043 roman
9044 \family default
9045 \series default
9046  for lower-case roman numerals: i, ii, iii, \SpecialChar \ldots{}
9047
9048 \end_layout
9049
9050 \begin_layout Description
9051
9052 \family typewriter
9053 \series medium
9054 Roman
9055 \family default
9056 \series default
9057  for upper-case roman numerals: I, II, III\SpecialChar \ldots{}
9058
9059 \end_layout
9060
9061 \begin_layout Description
9062
9063 \family typewriter
9064 \series medium
9065 hebrew
9066 \family default
9067 \series default
9068  for hebrew numerals.
9069 \end_layout
9070
9071 \end_deeper
9072 \end_deeper
9073 \begin_layout Description
9074
9075 \family typewriter
9076 \series medium
9077 LabelStringAppendix [string=""]
9078 \family default
9079 \series default
9080  the same as 
9081 \family typewriter
9082 LabelString
9083 \family default
9084 , for use in appendix.
9085 \end_layout
9086
9087 \begin_layout Subsection
9088 Font description
9089 \end_layout
9090
9091 \begin_layout Standard
9092 \begin_inset LatexCommand label
9093 name "sec:fonts"
9094
9095 \end_inset
9096
9097 A font description looks like that:
9098 \end_layout
9099
9100 \begin_layout LyX-Code
9101 Font 
9102 \family roman
9103 \emph on
9104 or
9105 \family default
9106 \emph default
9107  LabelFont
9108 \end_layout
9109
9110 \begin_layout LyX-Code
9111  ...
9112 \end_layout
9113
9114 \begin_layout LyX-Code
9115 EndFont
9116 \end_layout
9117
9118 \begin_layout Standard
9119 and the following commands are available:
9120 \end_layout
9121
9122 \begin_layout Description
9123
9124 \family typewriter
9125 \series medium
9126 Family
9127 \family default
9128 \series default
9129  [
9130 \family typewriter
9131 \emph on
9132 Roman
9133 \emph default
9134 , Sans, Typewriter
9135 \family default
9136
9137 \end_layout
9138
9139 \begin_layout Description
9140
9141 \family typewriter
9142 \series medium
9143 Series
9144 \family default
9145 \series default
9146  [
9147 \family typewriter
9148 \emph on
9149 Medium
9150 \emph default
9151 , Bold
9152 \family default
9153
9154 \end_layout
9155
9156 \begin_layout Description
9157
9158 \family typewriter
9159 \series medium
9160 Shape
9161 \family default
9162 \series default
9163  [
9164 \family typewriter
9165 \emph on
9166 Up
9167 \emph default
9168 , Italic, SmallCaps, Slanted
9169 \family default
9170
9171 \end_layout
9172
9173 \begin_layout Description
9174
9175 \family typewriter
9176 \series medium
9177 Size
9178 \family default
9179 \series default
9180  [
9181 \family typewriter
9182 tiny, small,
9183 \family default
9184  
9185 \family typewriter
9186 \emph on
9187 normal
9188 \emph default
9189 , large, larger, largest, huge, giant
9190 \family default
9191 ]
9192 \end_layout
9193
9194 \begin_layout Description
9195
9196 \family typewriter
9197 \series medium
9198 Color
9199 \family default
9200 \series default
9201  [
9202 \family typewriter
9203 \emph on
9204 none
9205 \emph default
9206 , black, white, red, green, blue, cyan, magenta, yellow
9207 \family default
9208 ]
9209 \end_layout
9210
9211 \begin_layout Subsection
9212 Upgrading old layout files
9213 \end_layout
9214
9215 \begin_layout Standard
9216 The file format of layout files changes from time to time, so old layout
9217  files need to be converted.
9218  This process has been automated in LyX 1.4.0: If LyX reads an old format
9219  layout file it will call the conversion tool 
9220 \family typewriter
9221 $LyXDir/scripts/layout2layout.py
9222 \family default
9223  and convert it to a temporary file in current format.
9224  The original file is left untouched, so that you can still use it with
9225  LyX 1.3.x.
9226  If you want to convert the layout file permanently, just call the converter
9227  by hand:
9228 \end_layout
9229
9230 \begin_layout LyX-Code
9231 python $LyXDir/scripts/layout2layout.py myclass.layout myclassnew.layout
9232 \end_layout
9233
9234 \begin_layout Standard
9235 Then copy 
9236 \family typewriter
9237 myclassnew.layout
9238 \family default
9239  to 
9240 \family typewriter
9241 $UserDir/layouts/
9242 \family default
9243 .
9244 \end_layout
9245
9246 \begin_layout Standard
9247 The automatic conversion does only handle syntax changes.
9248  It cannot handle the case where the contents of included files was changed.
9249  For example, layout files based on 
9250 \family typewriter
9251 book.layout
9252 \family default
9253  need to include 
9254 \family typewriter
9255 numreport.inc
9256 \family default
9257  in addition to 
9258 \family typewriter
9259 stdclass.inc
9260 \family default
9261 .
9262  If you get error messages about undefined counters, try to convert your
9263  file with 
9264 \family typewriter
9265 layout2layout.py
9266 \family default
9267  and then add one of 
9268 \family typewriter
9269 numarticle.inc
9270 \family default
9271
9272 \family typewriter
9273 numreport.inc
9274 \family default
9275  and 
9276 \family typewriter
9277 numrevtex.inc
9278 \family default
9279 .
9280 \end_layout
9281
9282 \begin_layout Section
9283 Creating Templates
9284 \begin_inset LatexCommand label
9285 name "sec:templates"
9286
9287 \end_inset
9288
9289
9290 \end_layout
9291
9292 \begin_layout Standard
9293 Templates are created just like usual documents.
9294  The only difference is that usual documents contain all possible settings,
9295  including the fontscheme and the papersize.
9296  Usually a user doesn't want a template to overwrite his defaults in these
9297  cases.
9298  For that reason, the designer of a template should remove the corresponding
9299  commands like 
9300 \family typewriter
9301
9302 \backslash
9303 fontscheme
9304 \family default
9305  or 
9306 \family typewriter
9307
9308 \backslash
9309 papersize
9310 \family default
9311  from the template LyX file.
9312  This can be done with any simple text-editor, for example 
9313 \family typewriter
9314 vi
9315 \family default
9316  or 
9317 \family typewriter
9318 xedit
9319 \family default
9320 .
9321  
9322 \end_layout
9323
9324 \begin_layout Standard
9325 Put the edited template files you create in 
9326 \family typewriter
9327 $UserDir/templates/
9328 \family default
9329 , copy the ones you use from the global template directory in 
9330 \family typewriter
9331 $LyXDir/templates/
9332 \family default
9333  to the same place, and redefine the template path in the 
9334 \family sans
9335 \bar under
9336 E
9337 \bar default
9338 dit\SpecialChar \menuseparator
9339
9340 \bar under
9341 P
9342 \bar default
9343 references
9344 \family default
9345  dialog (tabs 
9346 \family sans
9347 Input
9348 \family default
9349
9350 \family sans
9351 Path
9352 \family default
9353 ).
9354  
9355 \end_layout
9356
9357 \begin_layout Standard
9358 Note that there is a template which has a particular meaning: 
9359 \family typewriter
9360 defaults.lyx
9361 \family default
9362 .
9363  This template is loaded everytime you create a new document with 
9364 \family sans
9365 \bar under
9366 F
9367 \bar default
9368 ile
9369 \family default
9370 \SpecialChar \menuseparator
9371
9372 \family sans
9373 \bar under
9374 N
9375 \bar default
9376 ew
9377 \family default
9378  in order to provide useful defaults.
9379  To create this template from inside LyX, all you have to do is to open
9380  a document with the correct settings, and use the 
9381 \family sans
9382 Sa
9383 \bar under
9384 v
9385 \bar default
9386 e as Document Defaults
9387 \family default
9388  button.
9389 \end_layout
9390
9391 \begin_layout Chapter
9392 Including External Material
9393 \end_layout
9394
9395 \begin_layout Section
9396 Background
9397 \end_layout
9398
9399 \begin_layout Standard
9400 \begin_inset Note Note
9401 status collapsed
9402
9403 \begin_layout Standard
9404 This section is completely outdated.
9405 \end_layout
9406
9407 \end_inset
9408
9409 One often requested feature from LyX users is to be able to interface LyX
9410  with Xfig, Dia, or other similar applications that specialize in producing
9411  a certain kind of diagram, figure, schematic or whatever material might
9412  be relevant to include in your document.
9413  Previously, it was only possible to include boring, static, fixed images
9414  in LyX documents with the graphics feature, but there are several limitations
9415  attached to this approach:
9416 \end_layout
9417
9418 \begin_layout Itemize
9419 If you want to change the figure, you have to invoke an external program
9420  by hand
9421 \end_layout
9422
9423 \begin_layout Itemize
9424 LyX does not notice that the referenced files change, so the on-screen display
9425  can fast become obsolete, and this is aggravated by the lack of a means
9426  of updating the display
9427 \end_layout
9428
9429 \begin_layout Itemize
9430 The graphics stuff does not provide any mechanisms for coping with different
9431  exported formats such as DocBook, HTML or plain text
9432 \end_layout
9433
9434 \begin_layout Standard
9435 The external material facility attempts to solve all of these problems
9436 \begin_inset Foot
9437 status collapsed
9438
9439 \begin_layout Standard
9440 Even if the graphics facility can't solve all problems, it is still valuable
9441  because it does provide in-line preview of the graphics, and supports advanced
9442  geometric transformations with a comfortable user interface.
9443 \end_layout
9444
9445 \end_inset
9446
9447 .
9448  It does this by offering a general method to interface LyX to external
9449  applications.
9450  Instead of introducing a long list of different constructs tailored for
9451  each specific application, we chose to sacrifice the in-line displaying
9452  of the included material in order to provide a general construct to cover
9453  a wide range of applications.
9454  The result is the external material construct.
9455  External material presents itself in the document simply as a button, but
9456  don't let this fool you.
9457  When you click on it, a dialog will appear that allows you to chose exactly
9458  what material to include, and in the following sections you will learn
9459  that this is indeed a powerful mechanism that can solve all of the above
9460  problems, and more.
9461 \end_layout
9462
9463 \begin_layout Section
9464 How does it work?
9465 \end_layout
9466
9467 \begin_layout Standard
9468 The external material feature is based on the concept of a 
9469 \emph on
9470 template
9471 \emph default
9472 .
9473  A template is a specification of how LyX should interface with a certain
9474  kind of material.
9475  As bundled, LyX comes with predefined templates for Xfig figures, Dia diagrams,
9476  various raster format images, gnuplot, and more.
9477  You can check the actual list by using the menu 
9478 \family sans
9479 Insert\SpecialChar \menuseparator
9480 File\SpecialChar \menuseparator
9481 External
9482 \family default
9483 \InsetSpace ~
9484
9485 \family sans
9486 Material
9487 \family default
9488 .
9489  Furthermore, it is possible to roll your own template to support a specific
9490  kind of material.
9491  Later we'll describe in more detail what is involved, and hopefully you
9492  will submit all the templates you create so we can include them in a later
9493  LyX version.
9494 \end_layout
9495
9496 \begin_layout Standard
9497 Another basic idea of the external material feature is to distinguish between
9498  the original file that serves as a base for final material and the produced
9499  file that is included in your exported or printed document.
9500  For example, consider the case of a figure produced with 
9501 \family typewriter
9502 Xfig
9503 \family default
9504 .
9505  The Xfig application itself works on an original file with the 
9506 \family typewriter
9507 .fig
9508 \family default
9509  extension.
9510  Within XFig, you create and change your figure, and when you are done,
9511  you save the 
9512 \family typewriter
9513 fig
9514 \family default
9515 -file.
9516  When you want to include the figure in your document, you invoke 
9517 \family typewriter
9518 transfig
9519 \family default
9520  in order to create a PostScript file that can readily be included in your
9521  LaTeX file.
9522  In this case, the 
9523 \family typewriter
9524 .fig
9525 \family default
9526  file is the original file, and the PostScript file is the produced file.
9527 \end_layout
9528
9529 \begin_layout Standard
9530 This distinction is important in order to allow updating of the material
9531  while you are in the process of writing the document.
9532  Furthermore, it provides us with the flexibility that is needed to support
9533  multiple export formats.
9534  For instance, in the case of a plain text file, it is not exactly an award-winn
9535 ing idea to include the figure as raw PostScript.
9536  Instead, you'd either prefer to just include a reference to the figure,
9537  or try to invoke some graphics to Ascii converter to make the final result
9538  look similar to the real graphics.
9539  The external material management allows you to do this, because it is parameter
9540 ized on the different export formats that LyX supports.
9541 \end_layout
9542
9543 \begin_layout Standard
9544 Besides supporting the production of different products according to the
9545  exported format, it supports tight integration with editing and viewing
9546  applications.
9547  In the case of an XFig figure, you are able to invoke 
9548 \family typewriter
9549 Xfig
9550 \family default
9551  on the original file with a single click from within the external material
9552  dialog in LyX, and also preview the produced PostScript file with 
9553 \family typewriter
9554 ghostview
9555 \family default
9556  with another click.
9557  No more fiddling around with the command line and/or file browsers to locate
9558  and manipulate the original or produced files.
9559  In this way, you are finally able to take full advantage of the many different
9560  applications that are relevant to use when you write your documents, and
9561  ultimately be more productive.
9562 \end_layout
9563
9564 \begin_layout Section
9565 External material dialog
9566 \end_layout
9567
9568 \begin_layout Standard
9569 The 
9570 \family sans
9571 External Material
9572 \family default
9573  dialog is described in the 
9574 \family sans
9575 \emph on
9576 EmbeddedObjects
9577 \family default
9578 \emph default
9579  manual.
9580 \end_layout
9581
9582 \begin_layout Section
9583 Examples
9584 \end_layout
9585
9586 \begin_layout Standard
9587 In this section, we should include some examples of use of the external
9588  material.
9589  Those examples could include:
9590 \end_layout
9591
9592 \begin_layout Itemize
9593 External raster images
9594 \end_layout
9595
9596 \begin_layout Itemize
9597 External XFig figures
9598 \end_layout
9599
9600 \begin_layout Itemize
9601 Chess diagrams
9602 \end_layout
9603
9604 \begin_layout Itemize
9605 Sound samples
9606 \end_layout
9607
9608 \begin_layout Itemize
9609 The use of makefiles
9610 \end_layout
9611
9612 \begin_layout Itemize
9613 Recursive external LyX templates
9614 \end_layout
9615
9616 \begin_layout Section
9617 The external template configuration file
9618 \end_layout
9619
9620 \begin_layout Standard
9621 It is relatively easy to add custom external template definitions to LyX.
9622  However, be aware this doing this in an careless manner most probably 
9623 \emph on
9624 will
9625 \emph default
9626  introduce an easily exploitable security hole.
9627  So before you do this, please read the discussion about security which
9628  will follow later.
9629 \end_layout
9630
9631 \begin_layout Standard
9632 Having said that, we encourage you to submit any interesting templates that
9633  you create.
9634  
9635 \end_layout
9636
9637 \begin_layout Standard
9638 The external templates are defined in the 
9639 \family typewriter
9640 lib/external_templates
9641 \family default
9642  file.
9643  You can place your own version in 
9644 \family typewriter
9645 .lyx/external_templates
9646 \family default
9647 .
9648 \end_layout
9649
9650 \begin_layout Standard
9651 A typical template looks like this:
9652 \end_layout
9653
9654 \begin_layout LyX-Code
9655 Template XFig
9656 \end_layout
9657
9658 \begin_layout LyX-Code
9659 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
9660 \end_layout
9661
9662 \begin_layout LyX-Code
9663 HelpText
9664 \end_layout
9665
9666 \begin_layout LyX-Code
9667 An XFig figure.
9668 \end_layout
9669
9670 \begin_layout LyX-Code
9671 HelpTextEnd
9672 \end_layout
9673
9674 \begin_layout LyX-Code
9675 InputFormat fig
9676 \end_layout
9677
9678 \begin_layout LyX-Code
9679 FileFilter "*.fig"
9680 \end_layout
9681
9682 \begin_layout LyX-Code
9683 AutomaticProduction true
9684 \end_layout
9685
9686 \begin_layout LyX-Code
9687 Transform Rotate
9688 \end_layout
9689
9690 \begin_layout LyX-Code
9691 Transform Resize
9692 \end_layout
9693
9694 \begin_layout LyX-Code
9695 Format LaTeX
9696 \end_layout
9697
9698 \begin_layout LyX-Code
9699 TransformCommand Rotate RotationLatexCommand
9700 \end_layout
9701
9702 \begin_layout LyX-Code
9703 TransformCommand Resize ResizeLatexCommand
9704 \end_layout
9705
9706 \begin_layout LyX-Code
9707 Product "$$RotateFront$$ResizeFront
9708 \end_layout
9709
9710 \begin_layout LyX-Code
9711          
9712 \backslash
9713
9714 \backslash
9715 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
9716 \end_layout
9717
9718 \begin_layout LyX-Code
9719          $$ResizeBack$$RotateBack"
9720 \end_layout
9721
9722 \begin_layout LyX-Code
9723 UpdateFormat pstex
9724 \end_layout
9725
9726 \begin_layout LyX-Code
9727 UpdateResult "$$AbsPath$$Basename.pstex_t"
9728 \end_layout
9729
9730 \begin_layout LyX-Code
9731 Requirement "graphicx"
9732 \end_layout
9733
9734 \begin_layout LyX-Code
9735 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
9736 \end_layout
9737
9738 \begin_layout LyX-Code
9739 ReferencedFile latex "$$AbsPath$$Basename.eps"
9740 \end_layout
9741
9742 \begin_layout LyX-Code
9743 ReferencedFile dvi "$$AbsPath$$Basename.eps"
9744 \end_layout
9745
9746 \begin_layout LyX-Code
9747 FormatEnd
9748 \end_layout
9749
9750 \begin_layout LyX-Code
9751 Format PDFLaTeX
9752 \end_layout
9753
9754 \begin_layout LyX-Code
9755 TransformCommand Rotate RotationLatexCommand
9756 \end_layout
9757
9758 \begin_layout LyX-Code
9759 TransformCommand Resize ResizeLatexCommand
9760 \end_layout
9761
9762 \begin_layout LyX-Code
9763 Product "$$RotateFront$$ResizeFront
9764 \end_layout
9765
9766 \begin_layout LyX-Code
9767          
9768 \backslash
9769
9770 \backslash
9771 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
9772 \end_layout
9773
9774 \begin_layout LyX-Code
9775          $$ResizeBack$$RotateBack"
9776 \end_layout
9777
9778 \begin_layout LyX-Code
9779 UpdateFormat pdftex
9780 \end_layout
9781
9782 \begin_layout LyX-Code
9783 UpdateResult "$$AbsPath$$Basename.pdftex_t"
9784 \end_layout
9785
9786 \begin_layout LyX-Code
9787 Requirement "graphicx"
9788 \end_layout
9789
9790 \begin_layout LyX-Code
9791 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
9792 \end_layout
9793
9794 \begin_layout LyX-Code
9795 ReferencedFile latex "$$AbsPath$$Basename.pdf"
9796 \end_layout
9797
9798 \begin_layout LyX-Code
9799 FormatEnd
9800 \end_layout
9801
9802 \begin_layout LyX-Code
9803 Format Ascii
9804 \end_layout
9805
9806 \begin_layout LyX-Code
9807 Product "$$Contents(
9808 \backslash
9809 "$$AbsPath$$Basename.asc
9810 \backslash
9811 ")"
9812 \end_layout
9813
9814 \begin_layout LyX-Code
9815 UpdateFormat asciixfig
9816 \end_layout
9817
9818 \begin_layout LyX-Code
9819 UpdateResult "$$AbsPath$$Basename.asc"
9820 \end_layout
9821
9822 \begin_layout LyX-Code
9823 FormatEnd
9824 \end_layout
9825
9826 \begin_layout LyX-Code
9827 Format DocBook
9828 \end_layout
9829
9830 \begin_layout LyX-Code
9831 Product "<graphic fileref=
9832 \backslash
9833 "$$AbsOrRelPathMaster$$Basename.eps
9834 \backslash
9835 ">
9836 \end_layout
9837
9838 \begin_layout LyX-Code
9839          </graphic>"
9840 \end_layout
9841
9842 \begin_layout LyX-Code
9843 UpdateFormat eps
9844 \end_layout
9845
9846 \begin_layout LyX-Code
9847 UpdateResult "$$AbsPath$$Basename.eps"
9848 \end_layout
9849
9850 \begin_layout LyX-Code
9851 ReferencedFile docbook "$$AbsPath$$Basename.eps"
9852 \end_layout
9853
9854 \begin_layout LyX-Code
9855 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
9856 \end_layout
9857
9858 \begin_layout LyX-Code
9859 FormatEnd
9860 \end_layout
9861
9862 \begin_layout LyX-Code
9863 Product "[XFig: $$FName]"
9864 \end_layout
9865
9866 \begin_layout LyX-Code
9867 FormatEnd
9868 \end_layout
9869
9870 \begin_layout LyX-Code
9871 TemplateEnd
9872 \end_layout
9873
9874 \begin_layout Standard
9875 As you can see, the template is enclosed in 
9876 \family typewriter
9877 Template
9878 \family default
9879  \SpecialChar \ldots{}
9880  
9881 \family typewriter
9882 TemplateEnd
9883 \family default
9884 .
9885  It contains a header specifying some general settings, and for each supported
9886  primary document file format a section 
9887 \family typewriter
9888 Format
9889 \family default
9890  \SpecialChar \ldots{}
9891  
9892 \family typewriter
9893 FormatEnd
9894 \family default
9895 .
9896 \end_layout
9897
9898 \begin_layout Subsection
9899 The template header
9900 \end_layout
9901
9902 \begin_layout Description
9903
9904 \family typewriter
9905 \series medium
9906 Template\InsetSpace ~
9907 <id>
9908 \family default
9909 \series default
9910  A unique name for the template.
9911  It must not contain substitution macros (see below).
9912 \end_layout
9913
9914 \begin_layout Description
9915
9916 \family typewriter
9917 \series medium
9918 GuiName\InsetSpace ~
9919 <guiname>
9920 \family default
9921 \series default
9922  The text that is displayed on the button.
9923  This command must occur exactly once.
9924 \end_layout
9925
9926 \begin_layout Description
9927
9928 \family typewriter
9929 \series medium
9930 HelpText\InsetSpace ~
9931 <text>\InsetSpace ~
9932 HelpTextEnd
9933 \family default
9934 \series default
9935  The help text that is used in the External dialog.
9936  Provide enough information to explain to the user just what the template
9937  can provide him with.
9938  This command must occur exactly once.
9939 \end_layout
9940
9941 \begin_layout Description
9942
9943 \family typewriter
9944 \series medium
9945 InputFormat\InsetSpace ~
9946 <format>
9947 \family default
9948 \series default
9949  The file format of the original file.
9950  This must be the name of a format that is known to LyX (see the 
9951 \family sans
9952 \bar under
9953 T
9954 \bar default
9955 ools\SpecialChar \menuseparator
9956
9957 \bar under
9958 P
9959 \bar default
9960 references:Conversion
9961 \family default
9962  dialog).
9963  Use 
9964 \family typewriter
9965 "*"
9966 \family default
9967  if the template can handle original files of more than one format.
9968  LyX will attempt to interrogate the file itself in order to deduce its
9969  format in this case.
9970  This command must occur exactly once.
9971 \end_layout
9972
9973 \begin_layout Description
9974
9975 \family typewriter
9976 \series medium
9977 FileFilter\InsetSpace ~
9978 <pattern>
9979 \family default
9980 \series default
9981  A glob pattern that is used in the file dialog to filter out the desired
9982  files.
9983  If there is more than one possible file extension (e.g.\InsetSpace ~
9984 tgif has 
9985 \family typewriter
9986 .obj
9987 \family default
9988  and 
9989 \family typewriter
9990 .tgo
9991 \family default
9992 ), use something like 
9993 \family typewriter
9994 "*.{obj,tgo}"
9995 \family default
9996 .
9997  This command must occur exactly once.
9998 \end_layout
9999
10000 \begin_layout Description
10001
10002 \family typewriter
10003 \series medium
10004 AutomaticProduction\InsetSpace ~
10005 true|false
10006 \family default
10007 \series default
10008  Wether the file represented by the template must be generated by LyX.
10009  This command must occur exactly once.
10010 \end_layout
10011
10012 \begin_layout Description
10013
10014 \family typewriter
10015 \series medium
10016 Transform\InsetSpace ~
10017 Rotate|Resize|Clip|Extra
10018 \family default
10019 \series default
10020  This command specifies which transformations are supported by this template.
10021  It may occur zero or more times.
10022  This command enables the corresponding tabs in the external dialog.
10023  Each 
10024 \family typewriter
10025 Transform
10026 \family default
10027  command must have either a corresponding 
10028 \family typewriter
10029 TransformCommand
10030 \family default
10031  or a 
10032 \family typewriter
10033 TransformOption
10034 \family default
10035  command in the 
10036 \family typewriter
10037 Format
10038 \family default
10039  section.
10040  Otherwise the transformation will not be supported by that format.
10041 \end_layout
10042
10043 \begin_layout Subsection
10044 The Format section
10045 \end_layout
10046
10047 \begin_layout Description
10048
10049 \family typewriter
10050 \series medium
10051 Format\InsetSpace ~
10052 LaTeX|PDFLaTeX|PlainText|DocBook
10053 \family default
10054 \series default
10055  The primary document file format that this format definition is for.
10056  Not every template has a sensible representation in all document file formats.
10057  Please define nevertheless a 
10058 \family typewriter
10059 Format
10060 \family default
10061  section for all formats.
10062  Use a dummy text when no representation is available.
10063  Then you can at least see a reference to the external material in the exported
10064  document.
10065 \end_layout
10066
10067 \begin_layout Description
10068
10069 \family typewriter
10070 \series medium
10071 TransformCommand\InsetSpace ~
10072 Rotate\InsetSpace ~
10073 RotationLatexCommand
10074 \family default
10075 \series default
10076  This command specifies that the built in LaTeX command should be used for
10077  rotation.
10078  This command may occur once or not at all.
10079 \end_layout
10080
10081 \begin_layout Description
10082
10083 \family typewriter
10084 \series medium
10085 TransformCommand\InsetSpace ~
10086 Resize\InsetSpace ~
10087 ResizeLatexCommand
10088 \family default
10089 \series default
10090  This command specifies that the built in LaTeX command should be used for
10091  resizing.
10092  This command may occur once or not at all.
10093 \end_layout
10094
10095 \begin_layout Description
10096
10097 \family typewriter
10098 \series medium
10099 TransformOption\InsetSpace ~
10100 Rotate\InsetSpace ~
10101 RotationLatexOption
10102 \family default
10103 \series default
10104  This command specifies that rotation is done via an optional argument.
10105  This command may occur once or not at all.
10106 \end_layout
10107
10108 \begin_layout Description
10109
10110 \family typewriter
10111 \series medium
10112 TransformOption\InsetSpace ~
10113 Resize\InsetSpace ~
10114 ResizeLatexOption
10115 \family default
10116 \series default
10117  This command specifies that resizing is done via an optional argument.
10118  This command may occur once or not at all.
10119 \end_layout
10120
10121 \begin_layout Description
10122
10123 \family typewriter
10124 \series medium
10125 TransformOption\InsetSpace ~
10126 Clip\InsetSpace ~
10127 ClipLatexOption
10128 \family default
10129 \series default
10130  This command specifies that clipping is done via an optional argument.
10131  This command may occur once or not at all.
10132 \end_layout
10133
10134 \begin_layout Description
10135
10136 \family typewriter
10137 \series medium
10138 TransformOption\InsetSpace ~
10139 Extra\InsetSpace ~
10140 ExtraLatexOption
10141 \family default
10142 \series default
10143  This command specifies that an extra optional argument is used.
10144  This command may occur once or not at all.
10145 \end_layout
10146
10147 \begin_layout Description
10148
10149 \family typewriter
10150 \series medium
10151 Product\InsetSpace ~
10152 <text>
10153 \family default
10154 \series default
10155  The text that is inserted in the exported document.
10156  This is actually the most important command and can be quite complex.
10157  This command must occur exactly once.
10158 \end_layout
10159
10160 \begin_layout Description
10161
10162 \family typewriter
10163 \series medium
10164 UpdateFormat\InsetSpace ~
10165 <format>
10166 \family default
10167 \series default
10168  The file format of the converted file.
10169  This must be the name of a format that is known to LyX (see the 
10170 \family sans
10171 \bar under
10172 T
10173 \bar default
10174 ools\SpecialChar \menuseparator
10175
10176 \bar under
10177 P
10178 \bar default
10179 references:Conversion
10180 \family default
10181  dialog).
10182  This command must occur exactly once.
10183 \end_layout
10184
10185 \begin_layout Description
10186
10187 \family typewriter
10188 \series medium
10189 UpdateResult\InsetSpace ~
10190 <filename>
10191 \family default
10192 \series default
10193  The file name of the converted file.
10194  The file name must be absolute.
10195  This command must occur exactly once.
10196 \end_layout
10197
10198 \begin_layout Description
10199
10200 \family typewriter
10201 \series medium
10202 ReferencedFile\InsetSpace ~
10203 <format>\InsetSpace ~
10204 <filename>
10205 \family default
10206 \series default
10207  This command denotes files that are created by the conversion process and
10208  are needed for a particular export format.
10209  If the filename is relative, it is interpreted relative to the master document.
10210  This command may be given zero or more times.
10211 \end_layout
10212
10213 \begin_layout Description
10214
10215 \family typewriter
10216 \series medium
10217 Requirement\InsetSpace ~
10218 <package>
10219 \family default
10220 \series default
10221  The name of a required LaTeX package.
10222  The package is included via 
10223 \family typewriter
10224
10225 \backslash
10226 usepackage{}
10227 \family default
10228  in the LaTeX preamble.
10229  This command may occur zero or more times.
10230 \end_layout
10231
10232 \begin_layout Description
10233
10234 \family typewriter
10235 \series medium
10236 Preamble\InsetSpace ~
10237 <name>
10238 \family default
10239 \series default
10240  This command specifies a preamble snippet that will be included in the
10241  LaTeX preamble.
10242  It has to be defined using 
10243 \family typewriter
10244 PreambleDef
10245 \family default
10246  \SpecialChar \ldots{}
10247  
10248 \family typewriter
10249 PreambleDefEnd
10250 \family default
10251 .
10252  This command may occur zero or more times.
10253 \end_layout
10254
10255 \begin_layout Description
10256
10257 \family typewriter
10258 \series medium
10259 Option\InsetSpace ~
10260 <name>\InsetSpace ~
10261 <value>
10262 \family default
10263 \series default
10264  This command defines an additional macro 
10265 \family typewriter
10266 $$<name>
10267 \family default
10268  for substitution in 
10269 \family typewriter
10270 Product
10271 \family default
10272 .
10273  
10274 \family typewriter
10275 <value>
10276 \family default
10277  itself may contain substitution macros.
10278  The advantage over using 
10279 \family typewriter
10280 <value>
10281 \family default
10282  directly in 
10283 \family typewriter
10284 Product
10285 \family default
10286  is that the substituted value of 
10287 \family typewriter
10288 $$<name>
10289 \family default
10290  is sanitized so that it is a valid optional argument in the document format.
10291  This command may occur zero or more times.
10292 \end_layout
10293
10294 \begin_layout Subsection
10295 Preamble definitions
10296 \end_layout
10297
10298 \begin_layout Standard
10299 The external template configuration file may contain additional preamble
10300  definitions enclosed by 
10301 \family typewriter
10302 PreambleDef
10303 \family default
10304  \SpecialChar \ldots{}
10305  
10306 \family typewriter
10307 PreambleDefEnd
10308 \family default
10309 .
10310  They can be used by the templates in the 
10311 \family typewriter
10312 Format
10313 \family default
10314  section.
10315 \end_layout
10316
10317 \begin_layout Section
10318 The substitution mechanism
10319 \end_layout
10320
10321 \begin_layout Standard
10322 When the external material facility invokes an external program, it is done
10323  on the basis of a command defined in the template configuration file.
10324  These commands can contain various macros that are expanded before execution.
10325  Execution always take place in the directory of the containing document.
10326 \end_layout
10327
10328 \begin_layout Standard
10329 Also, whenever external material is to be displayed, the name will be produced
10330  by the substitution mechanism, and most other commands in the template
10331  definition support substitution as well.
10332 \end_layout
10333
10334 \begin_layout Standard
10335 The available macros are the following:
10336 \end_layout
10337
10338 \begin_layout Description
10339 $$FName The filename of the file specified in the external material dialog.
10340  This is either an absolute name, or it is relative to the LyX document.
10341 \end_layout
10342
10343 \begin_layout Description
10344 $$Basename The filename without path and without the extension.
10345 \end_layout
10346
10347 \begin_layout Description
10348 $$Extension The file extension (including the dot).
10349 \end_layout
10350
10351 \begin_layout Description
10352 $$FPath The path part of 
10353 \family typewriter
10354 $$FName
10355 \family default
10356  (absolute name or relative to the LyX document).
10357 \end_layout
10358
10359 \begin_layout Description
10360 $$AbsPath The absolute file path.
10361 \end_layout
10362
10363 \begin_layout Description
10364 $$RelPathMaster The file path, relative to the master LyX document.
10365 \end_layout
10366
10367 \begin_layout Description
10368 $$RelPathParent The file path, relative to the LyX document.
10369 \end_layout
10370
10371 \begin_layout Description
10372 $$AbsOrRelPathMaster The file path, absolute or relative to the master LyX
10373  document.
10374 \end_layout
10375
10376 \begin_layout Description
10377 $$AbsOrRelPathParent The file path, absolute or relative to the LyX document.
10378 \end_layout
10379
10380 \begin_layout Description
10381 $$Tempname A name and full path to a temporary file which will be automatically
10382  deleted whenever the containing document is closed, or the external material
10383  insertion deleted.
10384 \end_layout
10385
10386 \begin_layout Description
10387 $$Contents(
10388 \begin_inset Quotes eld
10389 \end_inset
10390
10391 filename.ext
10392 \begin_inset Quotes erd
10393 \end_inset
10394
10395 ) This macro will expand to the contents of the file with the name 
10396 \family typewriter
10397 filename.ext
10398 \family default
10399 .
10400 \end_layout
10401
10402 \begin_layout Description
10403 $$Sysdir This macro will expand to the absolute path of the system directory.
10404  This is typically used to point to the various helper scripts that are
10405  bundled with LyX.
10406 \end_layout
10407
10408 \begin_layout Standard
10409 All path macros contain a trailing directory separator, so you can construct
10410  e.g.
10411  the absolute filename with 
10412 \family typewriter
10413 $$AbsPath$$Basename$$Extension
10414 \family default
10415 .
10416 \end_layout
10417
10418 \begin_layout Standard
10419 The macros above are substituted in all commands unless otherwise noted.
10420  The command 
10421 \family typewriter
10422 Product
10423 \family default
10424  supports additionally the following substitutions if they are enabled by
10425  the 
10426 \family typewriter
10427 Transform
10428 \family default
10429  and 
10430 \family typewriter
10431 TransformCommand
10432 \family default
10433  commands:
10434 \end_layout
10435
10436 \begin_layout Description
10437 $$ResizeFront The front part of the resize command.
10438 \end_layout
10439
10440 \begin_layout Description
10441 $$ResizeBack The back part of the resize command.
10442 \end_layout
10443
10444 \begin_layout Description
10445 $$RotateFront The front part of the rotation command.
10446 \end_layout
10447
10448 \begin_layout Description
10449 $$RotateBack The back part of the rotation command.
10450 \end_layout
10451
10452 \begin_layout Standard
10453 The value string of the 
10454 \family typewriter
10455 Option
10456 \family default
10457  command supports additionally the following substitutions if they are enabled
10458  by the 
10459 \family typewriter
10460 Transform
10461 \family default
10462  and 
10463 \family typewriter
10464 TransformOption
10465 \family default
10466  commands:
10467 \end_layout
10468
10469 \begin_layout Description
10470 $$Clip The clip option.
10471 \end_layout
10472
10473 \begin_layout Description
10474 $$Extra The extra option.
10475 \end_layout
10476
10477 \begin_layout Description
10478 $$Resize The resize option.
10479 \end_layout
10480
10481 \begin_layout Description
10482 $$Rotate The rotation option.
10483 \end_layout
10484
10485 \begin_layout Standard
10486 You may ask why there are so many path macros.
10487  There are mainly two reasons:
10488 \end_layout
10489
10490 \begin_layout Standard
10491 First, relative and absolute file names should remain relative or absolute,
10492  respectively.
10493  Users may have reasons to prefer either form.
10494  Relative names are useful for portable documents that should work on different
10495  machines, for example.
10496  Absolute names may be required by some programs.
10497 \end_layout
10498
10499 \begin_layout Standard
10500 Second, LaTeX treats relative file names differently than LyX and other
10501  programs in nested included files.
10502  For LyX, a relative file name is always relative to the document that contains
10503  the file name.
10504  For LaTeX, it is always relative to the master document.
10505  These two definitions are identical if you have only one document, but
10506  differ if you have a master document that includes part documents.
10507  That means that relative filenames must be transformed when presented to
10508  LaTeX.
10509  Fortunately LyX does this automatically for you if you choose the right
10510  macros.
10511 \end_layout
10512
10513 \begin_layout Standard
10514 So which path macro should be used in new template definitions? The rule
10515  is not difficult:
10516 \end_layout
10517
10518 \begin_layout Itemize
10519 Use 
10520 \family typewriter
10521 $$AbsPath
10522 \family default
10523  if an absolute path is required.
10524 \end_layout
10525
10526 \begin_layout Itemize
10527 Use 
10528 \family typewriter
10529 $$AbsOrRelPathMaster
10530 \family default
10531  if the substituted string is some kind of LaTeX input.
10532 \end_layout
10533
10534 \begin_layout Itemize
10535 Else use 
10536 \family typewriter
10537 $$AbsOrRelPathParent
10538 \family default
10539  in order to preserve the user's choice.
10540 \end_layout
10541
10542 \begin_layout Standard
10543 There are special cases where this rule does not work and e.g.\InsetSpace ~
10544 relative names
10545  are needed, but normally it will work just fine.
10546  One example for such a case is the command 
10547 \family typewriter
10548 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
10549 \family default
10550  in the XFig template above: We can't use the absolute name because the
10551  copier for 
10552 \family typewriter
10553 .pstex_t
10554 \family default
10555  files needs the relative name in order to rewrite the file content.
10556 \end_layout
10557
10558 \begin_layout Section
10559 Security discussion
10560 \end_layout
10561
10562 \begin_layout Standard
10563 \begin_inset Note Note
10564 status collapsed
10565
10566 \begin_layout Standard
10567 This section is outdated
10568 \end_layout
10569
10570 \end_inset
10571
10572 The external material feature interfaces with a lot of external programs
10573  and does so automatically, so we have to consider the security implications
10574  of this.
10575  In particular, since you have the option of including your own filenames
10576  and/or parameter strings and those are expanded into a command, it seems
10577  that it would be possible to create a malicious document which executes
10578  arbitrary commands when a user views or prints the document.
10579  This is something we definately want to avoid.
10580 \end_layout
10581
10582 \begin_layout Standard
10583 However, since the external program commands are specified in the template
10584  configuration file only, there are no security issues if LyX is properly
10585  configured with safe templates only.
10586  This is so because the external programs are invoked with the 
10587 \family typewriter
10588 execvp
10589 \family default
10590 -system call rather than the 
10591 \family typewriter
10592 system
10593 \family default
10594  system-call, so it's not possible to execute arbitrary commands from the
10595  filename or parameter section via the shell.
10596 \end_layout
10597
10598 \begin_layout Standard
10599 This also implies that you are restricted in what command strings you can
10600  use in the external material templates.
10601  In particular, pipes and redirection are not readily available.
10602  This has to be so if LyX should remain safe.
10603  If you want to use some of the shell features, you should write a safe
10604  script to do this in a controlled manner, and then invoke the script from
10605  the command string.
10606  In the 
10607 \family typewriter
10608 lib/scripts
10609 \family default
10610  directory of the LyX installation, you can find a safe wrapper script 
10611 \family typewriter
10612 general_command_wrapper.py
10613 \family default
10614  that supports redirection of input and output.
10615  That can serve as an example for how to write safe template scripts.
10616  For a more advanced example that uses 
10617 \family typewriter
10618 fork
10619 \family default
10620  and friends, take a look at the 
10621 \family typewriter
10622 pic2ascii.py
10623 \family default
10624  converter script.
10625 \end_layout
10626
10627 \begin_layout Standard
10628 It is possible to design a template that interacts directly with the shell,
10629  but since this would allow a malicious user to execute arbitrary commands
10630  by writing clever filenames and/or parameters, we generally recommend that
10631  you only use safe scripts that work with the 
10632 \family typewriter
10633 execvp
10634 \family default
10635  system call in a controlled manner.
10636  Of course, for use in a controlled environment, it can be tempting to just
10637  fall back to use ordinary shell scripts.
10638  If you do so, be aware that you 
10639 \emph on
10640 will
10641 \emph default
10642  provide an easily exploitable security hole in your system.
10643  Of course it stands to reason that such unsafe templates will never be
10644  included in the standard LyX distribution, although we do encourage people
10645  to submit new templates in the open source tradition.
10646  But LyX as shipped from the official distribution channels will never have
10647  unsafe templates.
10648 \end_layout
10649
10650 \begin_layout Standard
10651 Including external material provides a lot of power, and you have to be
10652  careful not to introduce security hazards with this power.
10653  A subtle error in a single line in an innocent looking script can open
10654  the door to huge security problems.
10655  So if you do not fully understand the issues, we recommend that you consult
10656  a knowledgable security professional or the LyX development team if you
10657  have any questions about whether a given template is safe or not.
10658  And do this before you use it in an uncontrolled environment.
10659 \end_layout
10660
10661 \begin_layout Chapter
10662 The LyX Server
10663 \end_layout
10664
10665 \begin_layout Section
10666 Introduction
10667 \end_layout
10668
10669 \begin_layout Standard
10670 The LyX server is a method implemented in LyX that will enable other programs
10671  to talk to LyX, invoke LyX commands, and retrieve information about the
10672  LyX internal state.
10673  This is only intended for advanced users, but they should find it useful.
10674 \end_layout
10675
10676 \begin_layout Section
10677 Starting the LyX Server
10678 \end_layout
10679
10680 \begin_layout Standard
10681 The LyX server works through the use of a pair of named pipes.
10682  These are usually located in your home directory and have the names 
10683 \begin_inset Quotes eld
10684 \end_inset
10685
10686
10687 \family typewriter
10688 .lyxpipe.in
10689 \family default
10690
10691 \begin_inset Quotes erd
10692 \end_inset
10693
10694  and 
10695 \begin_inset Quotes eld
10696 \end_inset
10697
10698
10699 \family typewriter
10700 .lyxpipe.out
10701 \family default
10702
10703 \begin_inset Quotes erd
10704 \end_inset
10705
10706 .
10707  External programs write into 
10708 \family typewriter
10709 .lyxpipe.in
10710 \family default
10711  and read back data from 
10712 \family typewriter
10713 .lyxpipe.out
10714 \family default
10715 .
10716  The stem of the pipe names can be defined in the 
10717 \family sans
10718 \bar under
10719 T
10720 \bar default
10721 ools\SpecialChar \menuseparator
10722
10723 \bar under
10724 P
10725 \bar default
10726 references
10727 \family default
10728  dialog, for example 
10729 \family typewriter
10730 "/home/myhome/.lyxpipe"
10731 \family default
10732 .
10733 \end_layout
10734
10735 \begin_layout Standard
10736 LyX will add the '
10737 \family typewriter
10738 .in
10739 \family default
10740 ' and '
10741 \family typewriter
10742 .out
10743 \family default
10744 ' to create the pipes.
10745  The above setting also has the effect of activating the LyX server.
10746  If one of the pipes already exists, LyX will assume that another LyX process
10747  is already running and will not start the server.
10748  To have several LyX processes with servers at the same time, you have to
10749  change the configuration between the start of the programs.
10750 \end_layout
10751
10752 \begin_layout Standard
10753 If you are developing a client program, you might find it useful to enable
10754  debugging information from the LyX server.
10755  Do this by starting LyX as 
10756 \family typewriter
10757 lyx -dbg lyxserver.
10758 \end_layout
10759
10760 \begin_layout Standard
10761 Warning: if LyX crashes, it may not manage to remove the pipes; in this
10762  case you must remove them manually.
10763  If LyX starts and the pipes exist already, it will not start any server.
10764 \end_layout
10765
10766 \begin_layout Standard
10767 Other than this, there are a few points to consider:
10768 \end_layout
10769
10770 \begin_layout Itemize
10771 Both server and clients must run on UNIX or OS/2 machines.
10772  Communications between LyX on UNIX and clients on OS/2 or vice versa is
10773  not possible right now.
10774 \end_layout
10775
10776 \begin_layout Itemize
10777 On OS/2, only one client can connect to LyXServer at a time.
10778 \end_layout
10779
10780 \begin_layout Itemize
10781 On OS/2, clients must open inpipe with 
10782 \family typewriter
10783 O_WRONLY
10784 \family default
10785  mode.
10786 \end_layout
10787
10788 \begin_layout Standard
10789 You can find a complete example client written in C in the source distribution
10790  as 
10791 \family typewriter
10792 development/server_monitor.c
10793 \family default
10794 .
10795 \end_layout
10796
10797 \begin_layout Section
10798 Normal communication
10799 \end_layout
10800
10801 \begin_layout Standard
10802 To issue a LyX call, the client writes a line of ASCII text into the input
10803  pipe.
10804  This line has the following format:
10805 \end_layout
10806
10807 \begin_layout Quote
10808 LYXCMD:
10809 \emph on
10810 clientname
10811 \emph default
10812 :
10813 \emph on
10814 function
10815 \emph default
10816 :
10817 \emph on
10818 argument
10819 \end_layout
10820
10821 \begin_layout Standard
10822 Here 
10823 \emph on
10824 clientname
10825 \emph default
10826  is a name that the client can choose arbitrarily.
10827  Its only use is that LyX will echo it if it sends an answer - so a client
10828  can dispatch results from different requesters.
10829 \end_layout
10830
10831 \begin_layout Standard
10832
10833 \emph on
10834 function
10835 \emph default
10836  is the function you want LyX to perform.
10837  It is the same as the commands you'd use in the minibuffer.
10838 \end_layout
10839
10840 \begin_layout Standard
10841
10842 \emph on
10843 argument
10844 \emph default
10845  is an optional argument which is meaningful only to some functions (for
10846  instance 
10847 \begin_inset Quotes eld
10848 \end_inset
10849
10850 self-insert
10851 \begin_inset Quotes erd
10852 \end_inset
10853
10854  which will insert the argument as text at the cursor position.)
10855 \end_layout
10856
10857 \begin_layout Standard
10858 The answer from LyX will arrive in the output pipe and be of the form
10859 \end_layout
10860
10861 \begin_layout Quote
10862 INFO:
10863 \emph on
10864 clientname
10865 \emph default
10866 :
10867 \emph on
10868 function
10869 \emph default
10870 :
10871 \emph on
10872 data
10873 \end_layout
10874
10875 \begin_layout Standard
10876 where 
10877 \emph on
10878 clientname
10879 \emph default
10880  and 
10881 \emph on
10882 function
10883 \emph default
10884  are just echoed from the command request, while 
10885 \emph on
10886 data
10887 \emph default
10888  is more or less useful information filled according to how the command
10889  execution worked out.
10890  Some commands will return information about the internal state of LyX,
10891  such as 
10892 \begin_inset Quotes eld
10893 \end_inset
10894
10895 font-state
10896 \begin_inset Quotes erd
10897 \end_inset
10898
10899 , while other will return an empty data-response.
10900  This means that the command execution went fine.
10901 \end_layout
10902
10903 \begin_layout Standard
10904 In case of errors, the response from LyX will have this form
10905 \end_layout
10906
10907 \begin_layout Quote
10908 ERROR:
10909 \emph on
10910 clientname
10911 \emph default
10912 :
10913 \emph on
10914 function
10915 \emph default
10916 :
10917 \emph on
10918 error message
10919 \end_layout
10920
10921 \begin_layout Standard
10922 where the 
10923 \emph on
10924 error message
10925 \emph default
10926  should contain an explanation of why the command failed.
10927 \end_layout
10928
10929 \begin_layout Standard
10930 Examples:
10931 \end_layout
10932
10933 \begin_layout LyX-Code
10934 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
10935 \end_layout
10936
10937 \begin_layout LyX-Code
10938 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
10939 \newline
10940 read a <~/.lyxpipe.out
10941 \newline
10942 echo $a
10943 \end_layout
10944
10945 \begin_layout Section
10946 Notification
10947 \end_layout
10948
10949 \begin_layout Standard
10950 LyX can notify clients of events going on asynchronously.
10951  Currently it will only do this if the user binds a key sequence with the
10952  function 
10953 \begin_inset Quotes eld
10954 \end_inset
10955
10956 notify
10957 \begin_inset Quotes erd
10958 \end_inset
10959
10960 .
10961  The format of the string LyX sends is as follows:
10962 \end_layout
10963
10964 \begin_layout Quote
10965
10966 \family typewriter
10967 NOTIFY:
10968 \family default
10969 \emph on
10970 key-sequence
10971 \end_layout
10972
10973 \begin_layout Standard
10974 where 
10975 \emph on
10976 key-sequence
10977 \emph default
10978  is the printed representation of the key sequence that was actually typed
10979  by the user.
10980 \end_layout
10981
10982 \begin_layout Standard
10983 This mechanism can be used to extend LyX's command set and implement macros:
10984  bind some key sequence to 
10985 \begin_inset Quotes eld
10986 \end_inset
10987
10988 notify
10989 \begin_inset Quotes erd
10990 \end_inset
10991
10992 , start a client that listens on the out pipe, dispatches the command according
10993  to the sequence and starts a function that may use LyX calls and LyX requests
10994  to issue a command or a series of commands to LyX.
10995 \end_layout
10996
10997 \begin_layout Section
10998 The simple LyX Server Protocol
10999 \end_layout
11000
11001 \begin_layout Standard
11002 LyX implements a simple protocol that can be used for session management.
11003  All messages are of the form
11004 \end_layout
11005
11006 \begin_layout Quote
11007 LYXSRV:
11008 \emph on
11009 clientname
11010 \emph default
11011 :
11012 \emph on
11013 protocol message
11014 \end_layout
11015
11016 \begin_layout Standard
11017 where 
11018 \emph on
11019 protocol message
11020 \emph default
11021  can be 
11022 \begin_inset Quotes eld
11023 \end_inset
11024
11025 hello
11026 \begin_inset Quotes erd
11027 \end_inset
11028
11029  or 
11030 \begin_inset Quotes eld
11031 \end_inset
11032
11033 bye
11034 \begin_inset Quotes erd
11035 \end_inset
11036
11037 .
11038  If 
11039 \begin_inset Quotes eld
11040 \end_inset
11041
11042 hello
11043 \begin_inset Quotes erd
11044 \end_inset
11045
11046  is received from a client, LyX will report back to inform the client that
11047  it's listening to it's messages, while 
11048 \begin_inset Quotes eld
11049 \end_inset
11050
11051 bye
11052 \begin_inset Quotes erd
11053 \end_inset
11054
11055  sent from LyX will inform clients that LyX is closing.
11056 \end_layout
11057
11058 \begin_layout Chapter
11059 \start_of_appendix
11060 Bindings
11061 \end_layout
11062
11063 \begin_layout Standard
11064 This appendix is a huge cross-reference to all the English language keybindings.
11065  Originally, we simply wanted to list all of the key bindings followed by
11066  the function it's bound to.
11067  That way, a user can look up a key to find out what it does.
11068  We then decided, what the hey, why not include the default toolbar and
11069  menu bindings, too.
11070  Please note this section is likely to be very out of date.
11071 \end_layout
11072
11073 \begin_layout Standard
11074 The form is really self-explanatory, but here are a few tips: all entries
11075  are arranged roughly alphabetically for a given modifier (
11076 \family sans
11077 C-a
11078 \family default
11079
11080 \family sans
11081 C-b
11082 \family default
11083 , etc.).
11084  For the general keyboard layout, simpler prefixes precede the more complex
11085  (
11086 \family sans
11087 C-s
11088 \family default
11089  before 
11090 \family sans
11091 C-S-c
11092 \family default
11093 ).
11094  All entries were gleaned from the default user interface and binding files
11095  located in the directories 
11096 \family typewriter
11097 \SpecialChar \ldots{}
11098 /share/lyx/ui
11099 \family default
11100  and 
11101 \family typewriter
11102 \SpecialChar \ldots{}
11103 /share/lyx/bind
11104 \family default
11105 ; they should be treated as the final word on the bindings.
11106 \end_layout
11107
11108 \begin_layout Standard
11109 As a final note, be aware that some window managers (such as FVWM) take
11110  control of some of the function keys or motion keys.
11111  
11112 \family sans
11113 C-right
11114 \family default
11115  is listed here as generating 
11116 \family typewriter
11117 word-forward
11118 \family default
11119 , but FVWM grabs it and uses it to change virtual desktops instead.
11120  Very annoying unless you instruct your window manager to stop intercepting
11121  such sequences.
11122 \end_layout
11123
11124 \begin_layout Section
11125 Toolbar
11126 \end_layout
11127
11128 \begin_layout LyX-Code
11129 Toolbar
11130 \end_layout
11131
11132 \begin_layout LyX-Code
11133     Layouts
11134 \end_layout
11135
11136 \begin_layout LyX-Code
11137     Icon "buffer-open"
11138 \end_layout
11139
11140 \begin_layout LyX-Code
11141     Icon "buffer-write"
11142 \end_layout
11143
11144 \begin_layout LyX-Code
11145     Icon "buffer-print"
11146 \end_layout
11147
11148 \begin_layout LyX-Code
11149     Separator
11150 \end_layout
11151
11152 \begin_layout LyX-Code
11153     Icon "cut"
11154 \end_layout
11155
11156 \begin_layout LyX-Code
11157     Icon "copy"
11158 \end_layout
11159
11160 \begin_layout LyX-Code
11161     Icon "paste"
11162 \end_layout
11163
11164 \begin_layout LyX-Code
11165     Separator
11166 \end_layout
11167
11168 \begin_layout LyX-Code
11169     Icon "font-emph"
11170 \end_layout
11171
11172 \begin_layout LyX-Code
11173     Icon "font-noun"
11174 \end_layout
11175
11176 \begin_layout LyX-Code
11177     Icon "font-free"
11178 \end_layout
11179
11180 \begin_layout LyX-Code
11181     Separator
11182 \end_layout
11183
11184 \begin_layout LyX-Code
11185     Icon "tex-mode"
11186 \end_layout
11187
11188 \begin_layout LyX-Code
11189     Icon "math-mode"
11190 \end_layout
11191
11192 \begin_layout LyX-Code
11193     Separator
11194 \end_layout
11195
11196 \begin_layout LyX-Code
11197     Icon "footnote-insert"
11198 \end_layout
11199
11200 \begin_layout LyX-Code
11201     Icon "marginpar-insert"
11202 \end_layout
11203
11204 \begin_layout LyX-Code
11205     Icon "depth-next"
11206 \end_layout
11207
11208 \begin_layout LyX-Code
11209     Separator
11210 \end_layout
11211
11212 \begin_layout LyX-Code
11213     Icon "figure-insert"
11214 \end_layout
11215
11216 \begin_layout LyX-Code
11217     Icon "dialog-tabular-insert"
11218 \end_layout
11219
11220 \begin_layout LyX-Code
11221 End
11222 \end_layout
11223
11224 \begin_layout Section
11225 Menu
11226 \end_layout
11227
11228 \begin_layout Standard
11229 Note that the following bindings are for LyX with English menus.
11230  The second character of the binding depends on the menu language.
11231  For example 
11232 \begin_inset Quotes eld
11233 \end_inset
11234
11235
11236 \family sans
11237 M-i r
11238 \family default
11239
11240 \begin_inset Quotes erd
11241 \end_inset
11242
11243  is with German menus 
11244 \begin_inset Quotes eld
11245 \end_inset
11246
11247
11248 \family sans
11249 M-e q
11250 \family default
11251
11252 \begin_inset Quotes erd
11253 \end_inset
11254
11255 .
11256  To find out the shortcuts of your language press the Meta (Alt)-key and
11257  press then the keys of the underlined characters of the menu names.
11258 \end_layout
11259
11260 \begin_layout Subsection
11261 File
11262 \end_layout
11263
11264 \begin_layout List
11265 \labelwidthstring 00.00.0000
11266
11267 \family sans
11268 M-f\InsetSpace ~
11269 a
11270 \family default
11271  
11272 \family typewriter
11273 buffer-write-as
11274 \end_layout
11275
11276 \begin_layout List
11277 \labelwidthstring 00.00.0000
11278
11279 \family sans
11280 M-f\InsetSpace ~
11281 c
11282 \family default
11283  
11284 \family typewriter
11285 buffer-close
11286 \end_layout
11287
11288 \begin_layout List
11289 \labelwidthstring 00.00.0000
11290
11291 \family sans
11292 M-f\InsetSpace ~
11293 d
11294 \family default
11295  
11296 \family typewriter
11297 buffer-reload
11298 \end_layout
11299
11300 \begin_layout List
11301 \labelwidthstring 00.00.0000
11302
11303 \family sans
11304 M-f\InsetSpace ~
11305 e
11306 \family default
11307  
11308 \family typewriter
11309 file_export
11310 \family default
11311  submenu
11312 \end_layout
11313
11314 \begin_layout List
11315 \labelwidthstring 00.00.0000
11316
11317 \family sans
11318 M-f\InsetSpace ~
11319 f
11320 \family default
11321  
11322 \family typewriter
11323 buffer-export fax
11324 \end_layout
11325
11326 \begin_layout List
11327 \labelwidthstring 00.00.0000
11328
11329 \family sans
11330 M-f\InsetSpace ~
11331 i
11332 \family default
11333  
11334 \family typewriter
11335 file_import
11336 \family default
11337  submenu
11338 \end_layout
11339
11340 \begin_layout List
11341 \labelwidthstring 00.00.0000
11342
11343 \family sans
11344 M-f\InsetSpace ~
11345 n
11346 \family default
11347  
11348 \family typewriter
11349 buffer-new
11350 \end_layout
11351
11352 \begin_layout List
11353 \labelwidthstring 00.00.0000
11354
11355 \family sans
11356 M-f\InsetSpace ~
11357 o
11358 \family default
11359  
11360 \family typewriter
11361 buffer-open
11362 \end_layout
11363
11364 \begin_layout List
11365 \labelwidthstring 00.00.0000
11366
11367 \family sans
11368 M-f\InsetSpace ~
11369 p
11370 \family default
11371  
11372 \family typewriter
11373 buffer-print
11374 \end_layout
11375
11376 \begin_layout List
11377 \labelwidthstring 00.00.0000
11378
11379 \family sans
11380 M-f\InsetSpace ~
11381 s
11382 \family default
11383  
11384 \family typewriter
11385 buffer-write
11386 \end_layout
11387
11388 \begin_layout List
11389 \labelwidthstring 00.00.0000
11390
11391 \family sans
11392 M-f\InsetSpace ~
11393 t
11394 \family default
11395  
11396 \family typewriter
11397 buffer-new-template
11398 \end_layout
11399
11400 \begin_layout List
11401 \labelwidthstring 00.00.0000
11402
11403 \family sans
11404 M-f\InsetSpace ~
11405 v
11406 \family default
11407  
11408 \family typewriter
11409 file_vc
11410 \family default
11411  submenu 
11412 \end_layout
11413
11414 \begin_deeper
11415 \begin_layout List
11416 \labelwidthstring 00.00.0000
11417
11418 \family sans
11419 h
11420 \family default
11421  
11422 \family typewriter
11423 vc-history 
11424 \end_layout
11425
11426 \begin_layout List
11427 \labelwidthstring 00.00.0000
11428
11429 \family sans
11430 i
11431 \family default
11432  
11433 \family typewriter
11434 vc-check-in
11435 \end_layout
11436
11437 \begin_layout List
11438 \labelwidthstring 00.00.0000
11439
11440 \family sans
11441 l
11442 \family default
11443  
11444 \family typewriter
11445 vc-revert
11446 \end_layout
11447
11448 \begin_layout List
11449 \labelwidthstring 00.00.0000
11450
11451 \family sans
11452 o
11453 \family default
11454  
11455 \family typewriter
11456 vc-check-out
11457 \end_layout
11458
11459 \begin_layout List
11460 \labelwidthstring 00.00.0000
11461
11462 \family sans
11463 r
11464 \family default
11465  
11466 \family typewriter
11467 vc-register
11468 \end_layout
11469
11470 \begin_layout List
11471 \labelwidthstring 00.00.0000
11472
11473 \family sans
11474 u
11475 \family default
11476  
11477 \family typewriter
11478 vc-undo-last
11479 \end_layout
11480
11481 \end_deeper
11482 \begin_layout List
11483 \labelwidthstring 00.00.0000
11484
11485 \family sans
11486 M-f\InsetSpace ~
11487 x
11488 \family default
11489  
11490 \family typewriter
11491 lyx-quit
11492 \end_layout
11493
11494 \begin_layout Subsection
11495 Edit
11496 \end_layout
11497
11498 \begin_layout List
11499 \labelwidthstring 00.00.0000
11500
11501 \family sans
11502 M-e\InsetSpace ~
11503 a
11504 \family default
11505  
11506 \family typewriter
11507 paste
11508 \end_layout
11509
11510 \begin_layout List
11511 \labelwidthstring 00.00.0000
11512
11513 \family sans
11514 M-e\InsetSpace ~
11515 c
11516 \family default
11517  
11518 \family typewriter
11519 cut
11520 \end_layout
11521
11522 \begin_layout List
11523 \labelwidthstring 00.00.0000
11524
11525 \family sans
11526 M-e\InsetSpace ~
11527 d
11528 \family default
11529  
11530 \family typewriter
11531 redo
11532 \end_layout
11533
11534 \begin_layout List
11535 \labelwidthstring 00.00.0000
11536
11537 \family sans
11538 M-e\InsetSpace ~
11539 e
11540 \family default
11541  
11542 \family typewriter
11543 error-remove-all
11544 \end_layout
11545
11546 \begin_layout List
11547 \labelwidthstring 00.00.0000
11548
11549 \family sans
11550 M-e\InsetSpace ~
11551 f
11552 \family default
11553  
11554 \family typewriter
11555 find-replace
11556 \end_layout
11557
11558 \begin_layout List
11559 \labelwidthstring 00.00.0000
11560
11561 \family sans
11562 M-e\InsetSpace ~
11563 h
11564 \family default
11565  
11566 \family typewriter
11567 buffer-chktex
11568 \end_layout
11569
11570 \begin_layout List
11571 \labelwidthstring 00.00.0000
11572
11573 \family sans
11574 M-e\InsetSpace ~
11575 i
11576 \family default
11577  
11578 \family typewriter
11579 edit_floats
11580 \family default
11581  submenu
11582 \end_layout
11583
11584 \begin_deeper
11585 \begin_layout List
11586 \labelwidthstring 00.00.0000
11587
11588 \family sans
11589 a
11590 \family default
11591  
11592 \family typewriter
11593 tabular-feature append-row
11594 \end_layout
11595
11596 \begin_layout List
11597 \labelwidthstring 00.00.0000
11598
11599 \family sans
11600 b
11601 \family default
11602  
11603 \family typewriter
11604 tabular-feature toggle-line-bottom
11605 \end_layout
11606
11607 \begin_layout List
11608 \labelwidthstring 00.00.0000
11609
11610 \family sans
11611 c
11612 \family default
11613  
11614 \family typewriter
11615 tabular-feature align-center
11616 \end_layout
11617
11618 \begin_layout List
11619 \labelwidthstring 00.00.0000
11620
11621 \family sans
11622 d
11623 \family default
11624  
11625 \family typewriter
11626 tabular-feature delete-column
11627 \end_layout
11628
11629 \begin_layout List
11630 \labelwidthstring 00.00.0000
11631
11632 \family sans
11633 e
11634 \family default
11635  
11636 \family typewriter
11637 tabular-feature align-left
11638 \end_layout
11639
11640 \begin_layout List
11641 \labelwidthstring 00.00.0000
11642
11643 \family sans
11644 i
11645 \family default
11646  
11647 \family typewriter
11648 tabular-feature align-right
11649 \end_layout
11650
11651 \begin_layout List
11652 \labelwidthstring 00.00.0000
11653
11654 \family sans
11655 l
11656 \family default
11657  
11658 \family typewriter
11659 tabular-feature toggle-line-left
11660 \end_layout
11661
11662 \begin_layout List
11663 \labelwidthstring 00.00.0000
11664
11665 \family sans
11666 m
11667 \family default
11668  
11669 \family typewriter
11670 tabular-feature multicolumn
11671 \end_layout
11672
11673 \begin_layout List
11674 \labelwidthstring 00.00.0000
11675
11676 \family sans
11677 n
11678 \family default
11679  
11680 \family typewriter
11681 tabular-feature valign-center
11682 \end_layout
11683
11684 \begin_layout List
11685 \labelwidthstring 00.00.0000
11686
11687 \family sans
11688 o
11689 \family default
11690  
11691 \family typewriter
11692 tabular-feature valign-top
11693 \end_layout
11694
11695 \begin_layout List
11696 \labelwidthstring 00.00.0000
11697
11698 \family sans
11699 r
11700 \family default
11701  
11702 \family typewriter
11703 tabular-feature toggle-line-right
11704 \end_layout
11705
11706 \begin_layout List
11707 \labelwidthstring 00.00.0000
11708
11709 \family sans
11710 t
11711 \family default
11712  
11713 \family typewriter
11714 tabular-feature toggle-line-top
11715 \end_layout
11716
11717 \begin_layout List
11718 \labelwidthstring 00.00.0000
11719
11720 \family sans
11721 u
11722 \family default
11723  
11724 \family typewriter
11725 tabular-feature append-column
11726 \end_layout
11727
11728 \begin_layout List
11729 \labelwidthstring 00.00.0000
11730
11731 \family sans
11732 v
11733 \family default
11734  
11735 \family typewriter
11736 tabular-feature valign-bottom
11737 \end_layout
11738
11739 \begin_layout List
11740 \labelwidthstring 00.00.0000
11741
11742 \family sans
11743 w
11744 \family default
11745  
11746 \family typewriter
11747 tabular-feature delete-row
11748 \end_layout
11749
11750 \end_deeper
11751 \begin_layout List
11752 \labelwidthstring 00.00.0000
11753
11754 \family sans
11755 M-e\InsetSpace ~
11756 l
11757 \family default
11758  
11759 \family typewriter
11760 math-panel
11761 \end_layout
11762
11763 \begin_deeper
11764 \begin_layout List
11765 \labelwidthstring 00.00.0000
11766
11767 \family sans
11768 a
11769 \family default
11770  
11771 \family typewriter
11772 floats-operate openfoot
11773 \end_layout
11774
11775 \begin_layout List
11776 \labelwidthstring 00.00.0000
11777
11778 \family sans
11779 c
11780 \family default
11781  
11782 \family typewriter
11783 floats-operate closefoot
11784 \end_layout
11785
11786 \begin_layout List
11787 \labelwidthstring 00.00.0000
11788
11789 \family sans
11790 f
11791 \family default
11792  
11793 \family typewriter
11794 floats-operate openfig
11795 \end_layout
11796
11797 \begin_layout List
11798 \labelwidthstring 00.00.0000
11799
11800 \family sans
11801 m
11802 \family default
11803  
11804 \family typewriter
11805 melt
11806 \end_layout
11807
11808 \begin_layout List
11809 \labelwidthstring 00.00.0000
11810
11811 \family sans
11812 o
11813 \family default
11814  
11815 \family typewriter
11816 open-stuff
11817 \end_layout
11818
11819 \begin_layout List
11820 \labelwidthstring 00.00.0000
11821
11822 \family sans
11823 t
11824 \family default
11825  
11826 \family typewriter
11827 floats-operate closefig
11828 \end_layout
11829
11830 \end_deeper
11831 \begin_layout List
11832 \labelwidthstring 00.00.0000
11833
11834 \family sans
11835 M-e\InsetSpace ~
11836 o
11837 \family default
11838  
11839 \family typewriter
11840 copy
11841 \end_layout
11842
11843 \begin_layout List
11844 \labelwidthstring 00.00.0000
11845
11846 \family sans
11847 M-e\InsetSpace ~
11848 p
11849 \family default
11850  
11851 \family typewriter
11852 dialog-preferences
11853 \family default
11854  
11855 \end_layout
11856
11857 \begin_layout List
11858 \labelwidthstring 00.00.0000
11859
11860 \family sans
11861 M-e\InsetSpace ~
11862 r
11863 \family default
11864  
11865 \family typewriter
11866 reconfigure
11867 \end_layout
11868
11869 \begin_layout List
11870 \labelwidthstring 00.00.0000
11871
11872 \family sans
11873 M-e\InsetSpace ~
11874 s
11875 \family default
11876  
11877 \family typewriter
11878 spellchecker
11879 \end_layout
11880
11881 \begin_layout List
11882 \labelwidthstring 00.00.0000
11883
11884 \family sans
11885 M-e\InsetSpace ~
11886 t
11887 \family default
11888  
11889 \family typewriter
11890 edit_tabular
11891 \family default
11892  submenu
11893 \end_layout
11894
11895 \begin_layout List
11896 \labelwidthstring 00.00.0000
11897
11898 \family sans
11899 M-e\InsetSpace ~
11900 u
11901 \family default
11902  
11903 \family typewriter
11904 undo
11905 \end_layout
11906
11907 \begin_layout List
11908 \labelwidthstring 00.00.0000
11909
11910 \family sans
11911 M-e\InsetSpace ~
11912 x
11913 \family default
11914  
11915 \family typewriter
11916 edit_paste
11917 \family default
11918  submenu
11919 \end_layout
11920
11921 \begin_deeper
11922 \begin_layout List
11923 \labelwidthstring 00.00.0000
11924
11925 \family sans
11926 l
11927 \family default
11928  
11929 \family typewriter
11930 primary-selection-paste
11931 \end_layout
11932
11933 \begin_layout List
11934 \labelwidthstring 00.00.0000
11935
11936 \family sans
11937 p
11938 \family default
11939  
11940 \family typewriter
11941 primary-selection-paste paragraph
11942 \end_layout
11943
11944 \end_deeper
11945 \begin_layout Subsection
11946 Insert
11947 \end_layout
11948
11949 \begin_layout List
11950 \labelwidthstring 00.00.0000
11951
11952 \family sans
11953 M-i\InsetSpace ~
11954 a
11955 \family default
11956  
11957 \family typewriter
11958 insert_floats
11959 \family default
11960  submenu
11961 \end_layout
11962
11963 \begin_deeper
11964 \begin_layout List
11965 \labelwidthstring 00.00.0000
11966
11967 \family sans
11968 a
11969 \family default
11970  
11971 \family typewriter
11972 buffer-float-insert algorithm
11973 \end_layout
11974
11975 \begin_layout List
11976 \labelwidthstring 00.00.0000
11977
11978 \family sans
11979 d
11980 \family default
11981  
11982 \family typewriter
11983 buffer-float-insert wide-tab
11984 \end_layout
11985
11986 \begin_layout List
11987 \labelwidthstring 00.00.0000
11988
11989 \family sans
11990 f
11991 \family default
11992  
11993 \family typewriter
11994 buffer-float-insert figure
11995 \end_layout
11996
11997 \begin_layout List
11998 \labelwidthstring 00.00.0000
11999
12000 \family sans
12001 t
12002 \family default
12003  
12004 \family typewriter
12005 buffer-float-insert table
12006 \end_layout
12007
12008 \begin_layout List
12009 \labelwidthstring 00.00.0000
12010
12011 \family sans
12012 w
12013 \family default
12014  
12015 \family typewriter
12016 buffer-float-insert wide-fig
12017 \end_layout
12018
12019 \end_deeper
12020 \begin_layout List
12021 \labelwidthstring 00.00.0000
12022
12023 \family sans
12024 M-i\InsetSpace ~
12025 b
12026 \family default
12027  
12028 \family typewriter
12029 dialog-tabular-insert
12030 \end_layout
12031
12032 \begin_layout List
12033 \labelwidthstring 00.00.0000
12034
12035 \family sans
12036 M-i\InsetSpace ~
12037 c
12038 \family default
12039  
12040 \family typewriter
12041 citation-insert
12042 \end_layout
12043
12044 \begin_layout List
12045 \labelwidthstring 00.00.0000
12046
12047 \family sans
12048 M-i\InsetSpace ~
12049 d
12050 \family default
12051  
12052 \family typewriter
12053 math-display
12054 \end_layout
12055
12056 \begin_layout List
12057 \labelwidthstring 00.00.0000
12058
12059 \family sans
12060 M-i\InsetSpace ~
12061 e
12062 \family default
12063  
12064 \family typewriter
12065 buffer-child-insert
12066 \end_layout
12067
12068 \begin_layout List
12069 \labelwidthstring 00.00.0000
12070
12071 \family sans
12072 M-i\InsetSpace ~
12073 f
12074 \family default
12075  
12076 \family typewriter
12077 footnote-insert
12078 \end_layout
12079
12080 \begin_layout List
12081 \labelwidthstring 00.00.0000
12082
12083 \family sans
12084 M-i\InsetSpace ~
12085 g
12086 \family default
12087  
12088 \family typewriter
12089 figure-insert
12090 \end_layout
12091
12092 \begin_layout List
12093 \labelwidthstring 00.00.0000
12094
12095 \family sans
12096 M-i\InsetSpace ~
12097 h
12098 \family default
12099  
12100 \family typewriter
12101 math-mode
12102 \end_layout
12103
12104 \begin_layout List
12105 \labelwidthstring 00.00.0000
12106
12107 \family sans
12108 M-i\InsetSpace ~
12109 i
12110 \family default
12111  
12112 \family typewriter
12113 index-insert
12114 \end_layout
12115
12116 \begin_layout List
12117 \labelwidthstring 00.00.0000
12118
12119 \family sans
12120 M-i\InsetSpace ~
12121 l
12122 \family default
12123  
12124 \family typewriter
12125 label-insert
12126 \end_layout
12127
12128 \begin_layout List
12129 \labelwidthstring 00.00.0000
12130
12131 \family sans
12132 M-i\InsetSpace ~
12133 m
12134 \family default
12135  
12136 \family typewriter
12137 marginpar-insert
12138 \end_layout
12139
12140 \begin_layout List
12141 \labelwidthstring 00.00.0000
12142
12143 \family sans
12144 M-i\InsetSpace ~
12145 n
12146 \family default
12147  
12148 \family typewriter
12149 note-insert
12150 \end_layout
12151
12152 \begin_layout List
12153 \labelwidthstring 00.00.0000
12154
12155 \family sans
12156 M-i\InsetSpace ~
12157 o
12158 \family default
12159  
12160 \family typewriter
12161 insert_toc
12162 \family default
12163  submenu
12164 \end_layout
12165
12166 \begin_deeper
12167 \begin_layout List
12168 \labelwidthstring 00.00.0000
12169
12170 \family sans
12171 a
12172 \family default
12173  
12174 \family typewriter
12175 loa-insert
12176 \end_layout
12177
12178 \begin_layout List
12179 \labelwidthstring 00.00.0000
12180
12181 \family sans
12182 b
12183 \family default
12184  
12185 \family typewriter
12186 bibtex-insert
12187 \end_layout
12188
12189 \begin_layout List
12190 \labelwidthstring 00.00.0000
12191
12192 \family sans
12193 c
12194 \family default
12195  
12196 \family typewriter
12197 toc-insert
12198 \end_layout
12199
12200 \begin_layout List
12201 \labelwidthstring 00.00.0000
12202
12203 \family sans
12204 f
12205 \family default
12206  
12207 \family typewriter
12208 lof-insert
12209 \end_layout
12210
12211 \begin_layout List
12212 \labelwidthstring 00.00.0000
12213
12214 \family sans
12215 i
12216 \family default
12217  
12218 \family typewriter
12219 index-print
12220 \end_layout
12221
12222 \begin_layout List
12223 \labelwidthstring 00.00.0000
12224
12225 \family sans
12226 t
12227 \family default
12228  
12229 \family typewriter
12230 lot-insert
12231 \end_layout
12232
12233 \end_deeper
12234 \begin_layout List
12235 \labelwidthstring 00.00.0000
12236
12237 \family sans
12238 M-i\InsetSpace ~
12239 r
12240 \family default
12241  
12242 \family typewriter
12243 reference-insert
12244 \end_layout
12245
12246 \begin_layout List
12247 \labelwidthstring 00.00.0000
12248
12249 \family sans
12250 M-i\InsetSpace ~
12251 s
12252 \family default
12253  
12254 \family typewriter
12255 insert_special
12256 \family default
12257  submenu
12258 \end_layout
12259
12260 \begin_deeper
12261 \begin_layout List
12262 \labelwidthstring 00.00.0000
12263
12264 \family sans
12265 b
12266 \family default
12267  
12268 \family typewriter
12269 protected-space-insert
12270 \end_layout
12271
12272 \begin_layout List
12273 \labelwidthstring 00.00.0000
12274
12275 \family sans
12276 e
12277 \family default
12278  
12279 \family typewriter
12280 end-of-sentence-period-insert
12281 \end_layout
12282
12283 \begin_layout List
12284 \labelwidthstring 00.00.0000
12285
12286 \family sans
12287 h
12288 \family default
12289  
12290 \family typewriter
12291 hfill-insert
12292 \end_layout
12293
12294 \begin_layout List
12295 \labelwidthstring 00.00.0000
12296
12297 \family sans
12298 i
12299 \family default
12300  
12301 \family typewriter
12302 dots-insert
12303 \end_layout
12304
12305 \begin_layout List
12306 \labelwidthstring 00.00.0000
12307
12308 \family sans
12309 l
12310 \family default
12311  
12312 \family typewriter
12313 break-line
12314 \end_layout
12315
12316 \begin_layout List
12317 \labelwidthstring 00.00.0000
12318
12319 \family sans
12320 m
12321 \family default
12322  
12323 \family typewriter
12324 menu-separator-insert
12325 \end_layout
12326
12327 \begin_layout List
12328 \labelwidthstring 00.00.0000
12329
12330 \family sans
12331 p
12332 \family default
12333  
12334 \family typewriter
12335 hyphenation-point-insert
12336 \end_layout
12337
12338 \begin_layout List
12339 \labelwidthstring 00.00.0000
12340
12341 \family sans
12342 q
12343 \family default
12344  
12345 \family typewriter
12346 quote-insert
12347 \end_layout
12348
12349 \begin_layout List
12350 \labelwidthstring 00.00.0000
12351
12352 \family sans
12353 s
12354 \family default
12355  
12356 \family typewriter
12357 command-sequence math-insert ^;math-mode;
12358 \end_layout
12359
12360 \begin_layout List
12361 \labelwidthstring 00.00.0000
12362
12363 \family sans
12364 u
12365 \family default
12366  
12367 \family typewriter
12368 command-sequence math-insert _;math-mode;
12369 \end_layout
12370
12371 \end_deeper
12372 \begin_layout List
12373 \labelwidthstring 00.00.0000
12374
12375 \family sans
12376 M-i\InsetSpace ~
12377 t
12378 \family default
12379  
12380 \family typewriter
12381 insert_file
12382 \family default
12383  submenu
12384 \end_layout
12385
12386 \begin_deeper
12387 \begin_layout List
12388 \labelwidthstring 00.00.0000
12389
12390 \family sans
12391 l
12392 \family default
12393  
12394 \family typewriter
12395 file-insert-plaintext lines
12396 \end_layout
12397
12398 \begin_layout List
12399 \labelwidthstring 00.00.0000
12400
12401 \family sans
12402 p
12403 \family default
12404  
12405 \family typewriter
12406 file-insert-plaintext paragraphs
12407 \end_layout
12408
12409 \begin_layout List
12410 \labelwidthstring 00.00.0000
12411
12412 \family sans
12413 x
12414 \family default
12415  
12416 \family typewriter
12417 file-insert
12418 \end_layout
12419
12420 \end_deeper
12421 \begin_layout List
12422 \labelwidthstring 00.00.0000
12423
12424 \family sans
12425 M-i\InsetSpace ~
12426 u
12427 \family default
12428  
12429 \family typewriter
12430 url-insert
12431 \end_layout
12432
12433 \begin_layout List
12434 \labelwidthstring 00.00.0000
12435
12436 \family sans
12437 M-i\InsetSpace ~
12438 w
12439 \family default
12440  
12441 \family typewriter
12442 index-insert-last
12443 \end_layout
12444
12445 \begin_layout List
12446 \labelwidthstring 00.00.0000
12447
12448 \family sans
12449 M-i\InsetSpace ~
12450 x
12451 \family default
12452  
12453 \family typewriter
12454 external-insert
12455 \end_layout
12456
12457 \begin_layout Subsection
12458 Layout
12459 \end_layout
12460
12461 \begin_layout List
12462 \labelwidthstring 00.00.0000
12463
12464 \family sans
12465 M-l\InsetSpace ~
12466 a
12467 \family default
12468  
12469 \family typewriter
12470 appendix
12471 \end_layout
12472
12473 \begin_layout List
12474 \labelwidthstring 00.00.0000
12475
12476 \family sans
12477 M-l\InsetSpace ~
12478 b
12479 \family default
12480  
12481 \family typewriter
12482 font-bold
12483 \end_layout
12484
12485 \begin_layout List
12486 \labelwidthstring 00.00.0000
12487
12488 \family sans
12489 M-l\InsetSpace ~
12490 c
12491 \family default
12492  
12493 \family typewriter
12494 layout-character
12495 \end_layout
12496
12497 \begin_layout List
12498 \labelwidthstring 00.00.0000
12499
12500 \family sans
12501 M-l\InsetSpace ~
12502 d
12503 \family default
12504  
12505 \family typewriter
12506 layout-document
12507 \end_layout
12508
12509 \begin_layout List
12510 \labelwidthstring 00.00.0000
12511
12512 \family sans
12513 M-l\InsetSpace ~
12514 e
12515 \family default
12516  
12517 \family typewriter
12518 font-emph
12519 \end_layout
12520
12521 \begin_layout List
12522 \labelwidthstring 00.00.0000
12523
12524 \family sans
12525 M-l\InsetSpace ~
12526 l
12527 \family default
12528  
12529 \family typewriter
12530 layout-preamble
12531 \end_layout
12532
12533 \begin_layout List
12534 \labelwidthstring 00.00.0000
12535
12536 \family sans
12537 M-l\InsetSpace ~
12538 n
12539 \family default
12540  
12541 \family typewriter
12542 font-noun
12543 \end_layout
12544
12545 \begin_layout List
12546 \labelwidthstring 00.00.0000
12547
12548 \family sans
12549 M-l\InsetSpace ~
12550 p
12551 \family default
12552  
12553 \family typewriter
12554 layout-paragraph
12555 \end_layout
12556
12557 \begin_layout List
12558 \labelwidthstring 00.00.0000
12559
12560 \family sans
12561 M-l\InsetSpace ~
12562 s
12563 \family default
12564  
12565 \family typewriter
12566 layout-save-default
12567 \end_layout
12568
12569 \begin_layout List
12570 \labelwidthstring 00.00.0000
12571
12572 \family sans
12573 M-l\InsetSpace ~
12574 t
12575 \family default
12576  
12577 \family typewriter
12578 layout-tabular
12579 \end_layout
12580
12581 \begin_layout List
12582 \labelwidthstring 00.00.0000
12583
12584 \family sans
12585 M-l\InsetSpace ~
12586 v
12587 \family default
12588  
12589 \family typewriter
12590 depth-increment
12591 \end_layout
12592
12593 \begin_layout List
12594 \labelwidthstring 00.00.0000
12595
12596 \family sans
12597 M-l\InsetSpace ~
12598 x
12599 \family default
12600  
12601 \family typewriter
12602 tex-mode
12603 \end_layout
12604
12605 \begin_layout Subsubsection
12606
12607 \family sans
12608 Layout\SpecialChar \menuseparator
12609 Character
12610 \family default
12611  
12612 \end_layout
12613
12614 \begin_layout List
12615 \labelwidthstring 00.00.0000
12616
12617 \family sans
12618 M-c\InsetSpace ~
12619 b
12620 \family default
12621  
12622 \family typewriter
12623 font-bold
12624 \end_layout
12625
12626 \begin_layout List
12627 \labelwidthstring 00.00.0000
12628
12629 \family sans
12630 M-c\InsetSpace ~
12631 c
12632 \family default
12633  
12634 \family typewriter
12635 font-noun
12636 \end_layout
12637
12638 \begin_layout List
12639 \labelwidthstring 00.00.0000
12640
12641 \family sans
12642 M-c\InsetSpace ~
12643 e
12644 \family default
12645  
12646 \family typewriter
12647 font-emph
12648 \end_layout
12649
12650 \begin_layout List
12651 \labelwidthstring 00.00.0000
12652
12653 \family sans
12654 M-c\InsetSpace ~
12655 m
12656 \family default
12657  
12658 \family typewriter
12659 math-mode
12660 \end_layout
12661
12662 \begin_layout List
12663 \labelwidthstring 00.00.0000
12664
12665 \family sans
12666 M-c\InsetSpace ~
12667 p
12668 \family default
12669  
12670 \family typewriter
12671 font-code
12672 \end_layout
12673
12674 \begin_layout List
12675 \labelwidthstring 00.00.0000
12676
12677 \family sans
12678 M-c\InsetSpace ~
12679 r
12680 \family default
12681  
12682 \family typewriter
12683 font-roman
12684 \end_layout
12685
12686 \begin_layout List
12687 \labelwidthstring 00.00.0000
12688
12689 \family sans
12690 M-c\InsetSpace ~
12691 s
12692 \family default
12693  
12694 \family typewriter
12695 font-sans
12696 \end_layout
12697
12698 \begin_layout List
12699 \labelwidthstring 00.00.0000
12700
12701 \family sans
12702 M-c\InsetSpace ~
12703 u
12704 \family default
12705  
12706 \family typewriter
12707 font-underline
12708 \end_layout
12709
12710 \begin_layout List
12711 \labelwidthstring 00.00.0000
12712
12713 \family sans
12714 M-c\InsetSpace ~
12715 space
12716 \family default
12717  
12718 \family typewriter
12719 font-default
12720 \end_layout
12721
12722 \begin_layout List
12723 \labelwidthstring 00.00.0000
12724
12725 \family sans
12726 M-c\InsetSpace ~
12727 Down
12728 \family default
12729  
12730 \family typewriter
12731 word-lowcase
12732 \end_layout
12733
12734 \begin_layout List
12735 \labelwidthstring 00.00.0000
12736
12737 \family sans
12738 M-c\InsetSpace ~
12739 Up
12740 \family default
12741  
12742 \family typewriter
12743 word-upcase
12744 \end_layout
12745
12746 \begin_layout List
12747 \labelwidthstring 00.00.0000
12748
12749 \family sans
12750 M-c\InsetSpace ~
12751 Right
12752 \family default
12753  
12754 \family typewriter
12755 word-capitalize
12756 \end_layout
12757
12758 \begin_layout List
12759 \labelwidthstring 00.00.0000
12760
12761 \family sans
12762 M-s\InsetSpace ~
12763 h
12764 \family default
12765  
12766 \family typewriter
12767 font-size huge
12768 \end_layout
12769
12770 \begin_layout List
12771 \labelwidthstring 00.00.0000
12772
12773 \family sans
12774 M-s\InsetSpace ~
12775 l
12776 \family default
12777  
12778 \family typewriter
12779 font-size large
12780 \end_layout
12781
12782 \begin_layout List
12783 \labelwidthstring 00.00.0000
12784
12785 \family sans
12786 M-s\InsetSpace ~
12787 n
12788 \family default
12789  
12790 \family typewriter
12791 font-size normal
12792 \end_layout
12793
12794 \begin_layout List
12795 \labelwidthstring 00.00.0000
12796
12797 \family sans
12798 M-s\InsetSpace ~
12799 s
12800 \family default
12801  
12802 \family typewriter
12803 font-size small
12804 \end_layout
12805
12806 \begin_layout List
12807 \labelwidthstring 00.00.0000
12808
12809 \family sans
12810 M-s\InsetSpace ~
12811 t
12812 \family default
12813  
12814 \family typewriter
12815 font-size tiny
12816 \end_layout
12817
12818 \begin_layout List
12819 \labelwidthstring 00.00.0000
12820
12821 \family sans
12822 M-s\InsetSpace ~
12823 0
12824 \family default
12825  
12826 \family typewriter
12827 font-size huger
12828 \end_layout
12829
12830 \begin_layout List
12831 \labelwidthstring 00.00.0000
12832
12833 \family sans
12834 M-s\InsetSpace ~
12835 1
12836 \family default
12837  
12838 \family typewriter
12839 font-size tiny
12840 \end_layout
12841
12842 \begin_layout List
12843 \labelwidthstring 00.00.0000
12844
12845 \family sans
12846 M-s\InsetSpace ~
12847 2
12848 \family default
12849  
12850 \family typewriter
12851 font-size smallest
12852 \end_layout
12853
12854 \begin_layout List
12855 \labelwidthstring 00.00.0000
12856
12857 \family sans
12858 M-s\InsetSpace ~
12859 3
12860 \family default
12861  
12862 \family typewriter
12863 font-size smaller
12864 \end_layout
12865
12866 \begin_layout List
12867 \labelwidthstring 00.00.0000
12868
12869 \family sans
12870 M-s\InsetSpace ~
12871 4
12872 \family default
12873  
12874 \family typewriter
12875 font-size small
12876 \end_layout
12877
12878 \begin_layout List
12879 \labelwidthstring 00.00.0000
12880
12881 \family sans
12882 M-s\InsetSpace ~
12883 5
12884 \family default
12885  
12886 \family typewriter
12887 font-size normal
12888 \end_layout
12889
12890 \begin_layout List
12891 \labelwidthstring 00.00.0000
12892
12893 \family sans
12894 M-s\InsetSpace ~
12895 6
12896 \family default
12897  
12898 \family typewriter
12899 font-size large
12900 \end_layout
12901
12902 \begin_layout List
12903 \labelwidthstring 00.00.0000
12904
12905 \family sans
12906 M-s\InsetSpace ~
12907 7
12908 \family default
12909  
12910 \family typewriter
12911 font-size larger
12912 \end_layout
12913
12914 \begin_layout List
12915 \labelwidthstring 00.00.0000
12916
12917 \family sans
12918 M-s\InsetSpace ~
12919 8
12920 \family default
12921  
12922 \family typewriter
12923 font-size largest
12924 \end_layout
12925
12926 \begin_layout List
12927 \labelwidthstring 00.00.0000
12928
12929 \family sans
12930 M-s\InsetSpace ~
12931 9
12932 \family default
12933  
12934 \family typewriter
12935 font-size huge
12936 \end_layout
12937
12938 \begin_layout List
12939 \labelwidthstring 00.00.0000
12940
12941 \family sans
12942 M-s\InsetSpace ~
12943 S-H
12944 \family default
12945  
12946 \family typewriter
12947 font-size huger
12948 \end_layout
12949
12950 \begin_layout List
12951 \labelwidthstring 00.00.0000
12952
12953 \family sans
12954 M-s\InsetSpace ~
12955 S-L
12956 \family default
12957  
12958 \family typewriter
12959 font-size larger
12960 \end_layout
12961
12962 \begin_layout List
12963 \labelwidthstring 00.00.0000
12964
12965 \family sans
12966 M-s\InsetSpace ~
12967 S-S
12968 \family default
12969  
12970 \family typewriter
12971 font-size smaller
12972 \end_layout
12973
12974 \begin_layout List
12975 \labelwidthstring 00.00.0000
12976
12977 \family sans
12978 M-s\InsetSpace ~
12979 plus
12980 \family default
12981  
12982 \family typewriter
12983 font-size increase
12984 \end_layout
12985
12986 \begin_layout List
12987 \labelwidthstring 00.00.0000
12988
12989 \family sans
12990 M-s\InsetSpace ~
12991 minus
12992 \family default
12993  
12994 \family typewriter
12995 font-size decrease
12996 \end_layout
12997
12998 \begin_layout Subsection
12999 View
13000 \end_layout
13001
13002 \begin_layout Subsection
13003 Navigate
13004 \end_layout
13005
13006 \begin_layout Subsection
13007 Help
13008 \end_layout
13009
13010 \begin_layout Subsection
13011 Paragraph Style
13012 \end_layout
13013
13014 \begin_layout List
13015 \labelwidthstring 00.00.0000
13016
13017 \family sans
13018 M-p\InsetSpace ~
13019 a
13020 \family default
13021  
13022 \family typewriter
13023 layout Abstract
13024 \end_layout
13025
13026 \begin_layout List
13027 \labelwidthstring 00.00.0000
13028
13029 \family sans
13030 M-p\InsetSpace ~
13031 b
13032 \family default
13033  
13034 \family typewriter
13035 layout Itemize
13036 \end_layout
13037
13038 \begin_layout List
13039 \labelwidthstring 00.00.0000
13040
13041 \family sans
13042 M-p\InsetSpace ~
13043 c
13044 \family default
13045  
13046 \family typewriter
13047 layout LyX-Code
13048 \end_layout
13049
13050 \begin_layout List
13051 \labelwidthstring 00.00.0000
13052
13053 \family sans
13054 M-p\InsetSpace ~
13055 d
13056 \family default
13057  
13058 \family typewriter
13059 layout Description
13060 \end_layout
13061
13062 \begin_layout List
13063 \labelwidthstring 00.00.0000
13064
13065 \family sans
13066 M-p\InsetSpace ~
13067 e
13068 \family default
13069  
13070 \family typewriter
13071 layout Enumerate
13072 \end_layout
13073
13074 \begin_layout List
13075 \labelwidthstring 00.00.0000
13076
13077 \family sans
13078 M-p\InsetSpace ~
13079 f
13080 \family default
13081  
13082 \family typewriter
13083 layout ShortFoilhead
13084 \end_layout
13085
13086 \begin_layout List
13087 \labelwidthstring 00.00.0000
13088
13089 \family sans
13090 M-p\InsetSpace ~
13091 i
13092 \family default
13093  
13094 \family typewriter
13095 layout Itemize
13096 \end_layout
13097
13098 \begin_layout List
13099 \labelwidthstring 00.00.0000
13100
13101 \family sans
13102 M-p\InsetSpace ~
13103 l
13104 \family default
13105  
13106 \family typewriter
13107 layout List
13108 \end_layout
13109
13110 \begin_layout List
13111 \labelwidthstring 00.00.0000
13112
13113 \family sans
13114 M-p\InsetSpace ~
13115 n
13116 \family default
13117  
13118 \family typewriter
13119 layout Enumerate
13120 \end_layout
13121
13122 \begin_layout List
13123 \labelwidthstring 00.00.0000
13124
13125 \family sans
13126 M-p\InsetSpace ~
13127 q
13128 \family default
13129  
13130 \family typewriter
13131 layout Quote
13132 \end_layout
13133
13134 \begin_layout List
13135 \labelwidthstring 00.00.0000
13136
13137 \family sans
13138 M-p\InsetSpace ~
13139 r
13140 \family default
13141  
13142 \family typewriter
13143 layout ShortRotatefoilhead
13144 \end_layout
13145
13146 \begin_layout List
13147 \labelwidthstring 00.00.0000
13148
13149 \family sans
13150 M-p\InsetSpace ~
13151 s
13152 \family default
13153  
13154 \family typewriter
13155 layout Standard
13156 \end_layout
13157
13158 \begin_layout List
13159 \labelwidthstring 00.00.0000
13160
13161 \family sans
13162 M-p\InsetSpace ~
13163 t
13164 \family default
13165  
13166 \family typewriter
13167 layout Title
13168 \end_layout
13169
13170 \begin_layout List
13171 \labelwidthstring 00.00.0000
13172
13173 \family sans
13174 M-p\InsetSpace ~
13175 v
13176 \family default
13177  
13178 \family typewriter
13179 layout Verse
13180 \end_layout
13181
13182 \begin_layout List
13183 \labelwidthstring 00.00.0000
13184
13185 \family sans
13186 M-p\InsetSpace ~
13187 space
13188 \family default
13189  
13190 \family typewriter
13191 drop-layouts-choice
13192 \end_layout
13193
13194 \begin_layout List
13195 \labelwidthstring 00.00.0000
13196
13197 \family sans
13198 M-p
13199 \noun on
13200 \InsetSpace ~
13201 0
13202 \family default
13203 \noun default
13204  
13205 \family typewriter
13206 layout Part
13207 \end_layout
13208
13209 \begin_layout List
13210 \labelwidthstring 00.00.0000
13211
13212 \family sans
13213 M-p
13214 \noun on
13215 \InsetSpace ~
13216 1
13217 \family default
13218 \noun default
13219  
13220 \family typewriter
13221 layout Chapter
13222 \end_layout
13223
13224 \begin_layout List
13225 \labelwidthstring 00.00.0000
13226
13227 \family sans
13228 M-p\InsetSpace ~
13229 2
13230 \family default
13231  
13232 \family typewriter
13233 layout Section
13234 \end_layout
13235
13236 \begin_layout List
13237 \labelwidthstring 00.00.0000
13238
13239 \family sans
13240 M-p\InsetSpace ~
13241 3
13242 \family default
13243  
13244 \family typewriter
13245 layout Subsection
13246 \end_layout
13247
13248 \begin_layout List
13249 \labelwidthstring 00.00.0000
13250
13251 \family sans
13252 M-p\InsetSpace ~
13253 4
13254 \family default
13255  
13256 \family typewriter
13257 layout Subsubsection
13258 \end_layout
13259
13260 \begin_layout List
13261 \labelwidthstring 00.00.0000
13262
13263 \family sans
13264 M-p\InsetSpace ~
13265 5
13266 \family default
13267  
13268 \family typewriter
13269 layout Paragraph
13270 \end_layout
13271
13272 \begin_layout List
13273 \labelwidthstring 00.00.0000
13274
13275 \family sans
13276 M-p\InsetSpace ~
13277 6
13278 \family default
13279  
13280 \family typewriter
13281 layout Subparagraph
13282 \end_layout
13283
13284 \begin_layout List
13285 \labelwidthstring 00.00.0000
13286
13287 \family sans
13288 M-p\InsetSpace ~
13289 asterisk\InsetSpace ~
13290 0
13291 \family default
13292  
13293 \family typewriter
13294 layout Part*
13295 \end_layout
13296
13297 \begin_layout List
13298 \labelwidthstring 00.00.0000
13299
13300 \family sans
13301 M-p\InsetSpace ~
13302 asterisk\InsetSpace ~
13303 1
13304 \family default
13305  
13306 \family typewriter
13307 layout Chapter*
13308 \end_layout
13309
13310 \begin_layout List
13311 \labelwidthstring 00.00.0000
13312
13313 \family sans
13314 M-p\InsetSpace ~
13315 asterisk\InsetSpace ~
13316 2
13317 \family default
13318  
13319 \family typewriter
13320 layout Section*
13321 \end_layout
13322
13323 \begin_layout List
13324 \labelwidthstring 00.00.0000
13325
13326 \family sans
13327 M-p\InsetSpace ~
13328 asterisk\InsetSpace ~
13329 3
13330 \family default
13331  
13332 \family typewriter
13333 layout Subsection*
13334 \end_layout
13335
13336 \begin_layout List
13337 \labelwidthstring 00.00.0000
13338
13339 \family sans
13340 M-p\InsetSpace ~
13341 asterisk\InsetSpace ~
13342 4
13343 \family default
13344  
13345 \family typewriter
13346 layout Subsubsection*
13347 \end_layout
13348
13349 \begin_layout List
13350 \labelwidthstring 00.00.0000
13351
13352 \family sans
13353 M-p\InsetSpace ~
13354 asterisk\InsetSpace ~
13355 5
13356 \family default
13357  
13358 \family typewriter
13359 layout Paragraph*
13360 \end_layout
13361
13362 \begin_layout List
13363 \labelwidthstring 00.00.0000
13364
13365 \family sans
13366 M-p\InsetSpace ~
13367 asterisk\InsetSpace ~
13368 6
13369 \family default
13370  
13371 \family typewriter
13372 layout Subparagraph*
13373 \end_layout
13374
13375 \begin_layout List
13376 \labelwidthstring 00.00.0000
13377
13378 \family sans
13379 M-p\InsetSpace ~
13380 S-A
13381 \family default
13382  
13383 \family typewriter
13384 layout Author
13385 \end_layout
13386
13387 \begin_layout List
13388 \labelwidthstring 00.00.0000
13389
13390 \family sans
13391 M-p\InsetSpace ~
13392 S-B
13393 \family default
13394  
13395 \family typewriter
13396 layout Bibliography
13397 \end_layout
13398
13399 \begin_layout List
13400 \labelwidthstring 00.00.0000
13401
13402 \family sans
13403 M-p\InsetSpace ~
13404 S-C
13405 \family default
13406  
13407 \family typewriter
13408 layout Comment
13409 \end_layout
13410
13411 \begin_layout List
13412 \labelwidthstring 00.00.0000
13413
13414 \family sans
13415 M-p\InsetSpace ~
13416 S-D
13417 \family default
13418  
13419 \family typewriter
13420 layout Date
13421 \end_layout
13422
13423 \begin_layout List
13424 \labelwidthstring 00.00.0000
13425
13426 \family sans
13427 M-p\InsetSpace ~
13428 S-F
13429 \family default
13430  
13431 \family typewriter
13432 layout Foilhead
13433 \end_layout
13434
13435 \begin_layout List
13436 \labelwidthstring 00.00.0000
13437
13438 \family sans
13439 M-p\InsetSpace ~
13440 S-L
13441 \family default
13442  
13443 \family typewriter
13444 layout LaTeX
13445 \end_layout
13446
13447 \begin_layout List
13448 \labelwidthstring 00.00.0000
13449
13450 \family sans
13451 M-p\InsetSpace ~
13452 S-Q
13453 \family default
13454  
13455 \family typewriter
13456 layout Quotation
13457 \end_layout
13458
13459 \begin_layout List
13460 \labelwidthstring 00.00.0000
13461
13462 \family sans
13463 M-p\InsetSpace ~
13464 S-R
13465 \family default
13466  
13467 \family typewriter
13468 layout Rotatefoilhead
13469 \end_layout
13470
13471 \begin_layout List
13472 \labelwidthstring 00.00.0000
13473
13474 \family sans
13475 M-p\InsetSpace ~
13476 C-a
13477 \family default
13478  
13479 \family typewriter
13480 layout RightAddress
13481 \end_layout
13482
13483 \begin_layout List
13484 \labelwidthstring 00.00.0000
13485
13486 \family sans
13487 M-p\InsetSpace ~
13488 M-a
13489 \family default
13490  
13491 \family typewriter
13492 layout Address
13493 \end_layout
13494
13495 \begin_layout List
13496 \labelwidthstring 00.00.0000
13497
13498 \family sans
13499 M-p\InsetSpace ~
13500 M-c
13501 \family default
13502  
13503 \family typewriter
13504 layout Caption
13505 \end_layout
13506
13507 \begin_layout List
13508 \labelwidthstring 00.00.0000
13509
13510 \family sans
13511 M-p\InsetSpace ~
13512 Left
13513 \family default
13514  
13515 \family typewriter
13516 depth-decrement
13517 \end_layout
13518
13519 \begin_layout List
13520 \labelwidthstring 00.00.0000
13521
13522 \family sans
13523 M-p\InsetSpace ~
13524 Right
13525 \family default
13526  
13527 \family typewriter
13528 depth-increment
13529 \end_layout
13530
13531 \begin_layout Standard
13532 These ones are kept for backwards compatibility, but only make sense on
13533  a qwerty keyboard:
13534 \end_layout
13535
13536 \begin_layout List
13537 \labelwidthstring 00.00.0000
13538
13539 \family sans
13540 M-p\InsetSpace ~
13541 S-at
13542 \family default
13543  
13544 \family typewriter
13545 layout Section*
13546 \end_layout
13547
13548 \begin_layout List
13549 \labelwidthstring 00.00.0000
13550
13551 \family sans
13552 M-p\InsetSpace ~
13553 S-dollar
13554 \family default
13555  
13556 \family typewriter
13557 layout Subsubsection*
13558 \end_layout
13559
13560 \begin_layout List
13561 \labelwidthstring 00.00.0000
13562
13563 \family sans
13564 M-p\InsetSpace ~
13565 S-numbersign
13566 \family default
13567  
13568 \family typewriter
13569 layout Subsection*
13570 \end_layout
13571
13572 \begin_layout Section
13573 Keyboard
13574 \end_layout
13575
13576 \begin_layout Subsection
13577 Specific to 
13578 \family typewriter
13579 emacs.bind
13580 \end_layout
13581
13582 \begin_layout List
13583 \labelwidthstring 00.00.0000
13584
13585 \family sans
13586 C-a
13587 \family default
13588  
13589 \family typewriter
13590 line-begin
13591 \end_layout
13592
13593 \begin_layout List
13594 \labelwidthstring 00.00.0000
13595
13596 \family sans
13597 C-b
13598 \family default
13599  
13600 \family typewriter
13601 char-backward
13602 \end_layout
13603
13604 \begin_layout List
13605 \labelwidthstring 00.00.0000
13606
13607 \family sans
13608 C-d
13609 \family default
13610  
13611 \family typewriter
13612 delete-forward
13613 \end_layout
13614
13615 \begin_layout List
13616 \labelwidthstring 00.00.0000
13617
13618 \family sans
13619 C-e
13620 \family default
13621  
13622 \family typewriter
13623 line-end
13624 \end_layout
13625
13626 \begin_layout List
13627 \labelwidthstring 00.00.0000
13628
13629 \family sans
13630 C-f
13631 \family default
13632  
13633 \family typewriter
13634 char-forward
13635 \end_layout
13636
13637 \begin_layout List
13638 \labelwidthstring 00.00.0000
13639
13640 \family sans
13641 C-g
13642 \family default
13643  
13644 \family typewriter
13645 cancel
13646 \end_layout
13647
13648 \begin_layout List
13649 \labelwidthstring 00.00.0000
13650
13651 \family sans
13652 C-h
13653 \family default
13654  
13655 \family typewriter
13656 hyphenation-point-insert
13657 \end_layout
13658
13659 \begin_layout List
13660 \labelwidthstring 00.00.0000
13661
13662 \family sans
13663 C-i
13664 \family default
13665  
13666 \family typewriter
13667 hfill-insert
13668 \end_layout
13669
13670 \begin_layout List
13671 \labelwidthstring 00.00.0000
13672
13673 \family sans
13674 C-k
13675 \family default
13676  
13677 \family typewriter
13678 line-delete-forward
13679 \end_layout
13680
13681 \begin_layout List
13682 \labelwidthstring 00.00.0000
13683
13684 \family sans
13685 C-l
13686 \family default
13687  
13688 \family typewriter
13689 screen-recenter
13690 \end_layout
13691
13692 \begin_layout List
13693 \labelwidthstring 00.00.0000
13694
13695 \family sans
13696 C-m
13697 \family default
13698  
13699 \family typewriter
13700 mark-toggle
13701 \end_layout
13702
13703 \begin_layout List
13704 \labelwidthstring 00.00.0000
13705
13706 \family sans
13707 C-n
13708 \family default
13709  
13710 \family typewriter
13711 down
13712 \end_layout
13713
13714 \begin_layout List
13715 \labelwidthstring 00.00.0000
13716
13717 \family sans
13718 C-o
13719 \family default
13720  
13721 \family typewriter
13722 open-stuff
13723 \end_layout
13724
13725 \begin_layout List
13726 \labelwidthstring 00.00.0000
13727
13728 \family sans
13729 C-p
13730 \family default
13731  
13732 \family typewriter
13733 up
13734 \end_layout
13735
13736 \begin_layout List
13737 \labelwidthstring 00.00.0000
13738
13739 \family sans
13740 C-q
13741 \family default
13742  
13743 \family typewriter
13744 quote-insert 
13745 \end_layout
13746
13747 \begin_layout List
13748 \labelwidthstring 00.00.0000
13749
13750 \family sans
13751 C-s
13752 \family default
13753  
13754 \family typewriter
13755 find-replace
13756 \end_layout
13757
13758 \begin_layout List
13759 \labelwidthstring 00.00.0000
13760
13761 \family sans
13762 C-u
13763 \family default
13764  
13765 \family typewriter
13766 font-underline 
13767 \end_layout
13768
13769 \begin_layout List
13770 \labelwidthstring 00.00.0000
13771
13772 \family sans
13773 C-v
13774 \family default
13775  
13776 \family typewriter
13777 screen-down 
13778 \end_layout
13779
13780 \begin_layout List
13781 \labelwidthstring 00.00.0000
13782
13783 \family sans
13784 C-w
13785 \family default
13786  
13787 \family typewriter
13788 cut
13789 \end_layout
13790
13791 \begin_layout List
13792 \labelwidthstring 00.00.0000
13793
13794 \family sans
13795 C-y
13796 \family default
13797  
13798 \family typewriter
13799 paste
13800 \end_layout
13801
13802 \begin_layout List
13803 \labelwidthstring 00.00.0000
13804
13805 \family sans
13806 C-S-Y
13807 \family default
13808  
13809 \family typewriter
13810 layout-paste
13811 \end_layout
13812
13813 \begin_layout List
13814 \labelwidthstring 00.00.0000
13815
13816 \family sans
13817 C-x\InsetSpace ~
13818 a
13819 \family default
13820  
13821 \family typewriter
13822 buffer-auto-save
13823 \end_layout
13824
13825 \begin_layout List
13826 \labelwidthstring 00.00.0000
13827
13828 \family sans
13829 C-x\InsetSpace ~
13830 b
13831 \family default
13832  
13833 \family typewriter
13834 buffer-previous
13835 \end_layout
13836
13837 \begin_layout List
13838 \labelwidthstring 00.00.0000
13839
13840 \family sans
13841 C-x\InsetSpace ~
13842 c
13843 \family default
13844  
13845 \family typewriter
13846 lyx-quit
13847 \end_layout
13848
13849 \begin_layout List
13850 \labelwidthstring 00.00.0000
13851
13852 \family sans
13853 C-x\InsetSpace ~
13854 d
13855 \family default
13856  
13857 \family typewriter
13858 buffer-new
13859 \end_layout
13860
13861 \begin_layout List
13862 \labelwidthstring 00.00.0000
13863
13864 \family sans
13865 ?\InsetSpace ~
13866 C-x\InsetSpace ~
13867 f
13868 \family default
13869  
13870 \family typewriter
13871 buffer-open
13872 \end_layout
13873
13874 \begin_layout List
13875 \labelwidthstring 00.00.0000
13876
13877 \family sans
13878 C-x\InsetSpace ~
13879 g
13880 \family default
13881  
13882 \family typewriter
13883 buffer-view-ps
13884 \end_layout
13885
13886 \begin_layout List
13887 \labelwidthstring 00.00.0000
13888
13889 \family sans
13890 C-x\InsetSpace ~
13891 k
13892 \family default
13893  
13894 \family typewriter
13895 buffer-close
13896 \end_layout
13897
13898 \begin_layout List
13899 \labelwidthstring 00.00.0000
13900
13901 \family sans
13902 C-x\InsetSpace ~
13903 p
13904 \family default
13905  
13906 \family typewriter
13907 buffer-view
13908 \end_layout
13909
13910 \begin_layout List
13911 \labelwidthstring 00.00.0000
13912
13913 \family sans
13914 C-x\InsetSpace ~
13915 r
13916 \family default
13917  
13918 \family typewriter
13919 buffer-typeset
13920 \end_layout
13921
13922 \begin_layout List
13923 \labelwidthstring 00.00.0000
13924
13925 \family sans
13926 ?\InsetSpace ~
13927 C-x\InsetSpace ~
13928 s
13929 \family default
13930  
13931 \family typewriter
13932 buffer-write
13933 \end_layout
13934
13935 \begin_layout List
13936 \labelwidthstring 00.00.0000
13937
13938 \family sans
13939 C-x\InsetSpace ~
13940 t
13941 \family default
13942  
13943 \family typewriter
13944 buffer-typeset
13945 \end_layout
13946
13947 \begin_layout List
13948 \labelwidthstring 00.00.0000
13949
13950 \family sans
13951 C-x\InsetSpace ~
13952 u
13953 \family default
13954  
13955 \family typewriter
13956 undo
13957 \end_layout
13958
13959 \begin_layout List
13960 \labelwidthstring 00.00.0000
13961
13962 \family sans
13963 C-x\InsetSpace ~
13964 v\InsetSpace ~
13965 c
13966 \family default
13967  
13968 \family typewriter
13969 vc-undo-last
13970 \end_layout
13971
13972 \begin_layout List
13973 \labelwidthstring 00.00.0000
13974
13975 \family sans
13976 C-x\InsetSpace ~
13977 v\InsetSpace ~
13978 h
13979 \family default
13980  
13981 \family typewriter
13982 vc-history
13983 \end_layout
13984
13985 \begin_layout List
13986 \labelwidthstring 00.00.0000
13987
13988 \family sans
13989 C-x\InsetSpace ~
13990 v\InsetSpace ~
13991 i
13992 \family default
13993  
13994 \family typewriter
13995 vc-register
13996 \end_layout
13997
13998 \begin_layout List
13999 \labelwidthstring 00.00.0000
14000
14001 \family sans
14002 C-x\InsetSpace ~
14003 v\InsetSpace ~
14004 u
14005 \family default
14006  
14007 \family typewriter
14008 vc-revert
14009 \end_layout
14010
14011 \begin_layout List
14012 \labelwidthstring 00.00.0000
14013
14014 \family sans
14015 C-x\InsetSpace ~
14016 v\InsetSpace ~
14017 v
14018 \family default
14019  
14020 \family typewriter
14021 vc-check-in
14022 \end_layout
14023
14024 \begin_layout List
14025 \labelwidthstring 00.00.0000
14026
14027 \family sans
14028 ?\InsetSpace ~
14029 C-x\InsetSpace ~
14030 w
14031 \family default
14032  
14033 \family typewriter
14034 buffer-write-as
14035 \end_layout
14036
14037 \begin_layout List
14038 \labelwidthstring 00.00.0000
14039
14040 \family sans
14041 C-x\InsetSpace ~
14042 bracketleft
14043 \family default
14044  
14045 \family typewriter
14046 screen-up
14047 \end_layout
14048
14049 \begin_layout List
14050 \labelwidthstring 00.00.0000
14051
14052 \family sans
14053 C-x\InsetSpace ~
14054 bracketright
14055 \family default
14056  
14057 \family typewriter
14058 screen-down
14059 \end_layout
14060
14061 \begin_layout List
14062 \labelwidthstring 00.00.0000
14063
14064 \family sans
14065 C-x\InsetSpace ~
14066 C-a
14067 \family default
14068  
14069 \family typewriter
14070 buffer-auto-save
14071 \end_layout
14072
14073 \begin_layout List
14074 \labelwidthstring 00.00.0000
14075
14076 \family sans
14077 C-x\InsetSpace ~
14078 C-b
14079 \family default
14080  
14081 \family typewriter
14082 menu-open Documents
14083 \end_layout
14084
14085 \begin_layout List
14086 \labelwidthstring 00.00.0000
14087
14088 \family sans
14089 C-x\InsetSpace ~
14090 C-c
14091 \family default
14092  
14093 \family typewriter
14094 lyx-quit
14095 \end_layout
14096
14097 \begin_layout List
14098 \labelwidthstring 00.00.0000
14099
14100 \family sans
14101 C-x\InsetSpace ~
14102 C-d
14103 \family default
14104  
14105 \family typewriter
14106 buffer-new
14107 \end_layout
14108
14109 \begin_layout List
14110 \labelwidthstring 00.00.0000
14111
14112 \family sans
14113 C-x\InsetSpace ~
14114 C-f
14115 \family default
14116  
14117 \family typewriter
14118 buffer-open
14119 \end_layout
14120
14121 \begin_layout List
14122 \labelwidthstring 00.00.0000
14123
14124 \family sans
14125 C-x\InsetSpace ~
14126 C-g
14127 \family default
14128  
14129 \family typewriter
14130 buffer-view-ps
14131 \end_layout
14132
14133 \begin_layout List
14134 \labelwidthstring 00.00.0000
14135
14136 \family sans
14137 C-x\InsetSpace ~
14138 C-p
14139 \family default
14140  
14141 \family typewriter
14142 buffer-view
14143 \end_layout
14144
14145 \begin_layout List
14146 \labelwidthstring 00.00.0000
14147
14148 \family sans
14149 C-x\InsetSpace ~
14150 C-q
14151 \family default
14152  
14153 \family typewriter
14154 buffer-toggle-read-only
14155 \end_layout
14156
14157 \begin_layout List
14158 \labelwidthstring 00.00.0000
14159
14160 \family sans
14161 C-x\InsetSpace ~
14162 C-s
14163 \family default
14164  
14165 \family typewriter
14166 buffer-write
14167 \end_layout
14168
14169 \begin_layout List
14170 \labelwidthstring 00.00.0000
14171
14172 \family sans
14173 C-x\InsetSpace ~
14174 C-t
14175 \family default
14176  
14177 \family typewriter
14178 buffer-typeset
14179 \end_layout
14180
14181 \begin_layout List
14182 \labelwidthstring 00.00.0000
14183
14184 \family sans
14185 C-x\InsetSpace ~
14186 C-w
14187 \family default
14188  
14189 \family typewriter
14190 buffer-write-as
14191 \end_layout
14192
14193 \begin_layout List
14194 \labelwidthstring 00.00.0000
14195
14196 \family sans
14197 Home
14198 \family default
14199  
14200 \family typewriter
14201 buffer-begin
14202 \end_layout
14203
14204 \begin_layout List
14205 \labelwidthstring 00.00.0000
14206
14207 \family sans
14208 End
14209 \family default
14210  
14211 \family typewriter
14212 buffer-end
14213 \end_layout
14214
14215 \begin_layout List
14216 \labelwidthstring 00.00.0000
14217
14218 \family sans
14219 S-Home
14220 \family default
14221  
14222 \family typewriter
14223 line-begin-select
14224 \end_layout
14225
14226 \begin_layout List
14227 \labelwidthstring 00.00.0000
14228
14229 \family sans
14230 S-End
14231 \family default
14232  
14233 \family typewriter
14234 line-end-select
14235 \end_layout
14236
14237 \begin_layout List
14238 \labelwidthstring 00.00.0000
14239
14240 \family sans
14241 S-Up
14242 \family default
14243  
14244 \family typewriter
14245 up-select
14246 \end_layout
14247
14248 \begin_layout List
14249 \labelwidthstring 00.00.0000
14250
14251 \family sans
14252 S-Down
14253 \family default
14254  
14255 \family typewriter
14256 down-select
14257 \end_layout
14258
14259 \begin_layout List
14260 \labelwidthstring 00.00.0000
14261
14262 \family sans
14263 S-Next
14264 \family default
14265  
14266 \family typewriter
14267 screen-down-select
14268 \end_layout
14269
14270 \begin_layout List
14271 \labelwidthstring 00.00.0000
14272
14273 \family sans
14274 S-Prior
14275 \family default
14276  
14277 \family typewriter
14278 screen-up-select
14279 \end_layout
14280
14281 \begin_layout List
14282 \labelwidthstring 00.00.0000
14283
14284 \family sans
14285 S-Left
14286 \family default
14287  
14288 \family typewriter
14289 backward-select
14290 \end_layout
14291
14292 \begin_layout List
14293 \labelwidthstring 00.00.0000
14294
14295 \family sans
14296 S-Right
14297 \family default
14298  
14299 \family typewriter
14300 forward-select
14301 \end_layout
14302
14303 \begin_layout List
14304 \labelwidthstring 00.00.0000
14305
14306 \family sans
14307 C-Up
14308 \family default
14309  
14310 \family typewriter
14311 paragraph-up
14312 \end_layout
14313
14314 \begin_layout List
14315 \labelwidthstring 00.00.0000
14316
14317 \family sans
14318 C-Down
14319 \family default
14320  
14321 \family typewriter
14322 paragraph-down
14323 \end_layout
14324
14325 \begin_layout List
14326 \labelwidthstring 00.00.0000
14327
14328 \family sans
14329 C-Left
14330 \family default
14331  
14332 \family typewriter
14333 word-backward
14334 \end_layout
14335
14336 \begin_layout List
14337 \labelwidthstring 00.00.0000
14338
14339 \family sans
14340 C-Right
14341 \family default
14342  
14343 \family typewriter
14344 word-forward
14345 \end_layout
14346
14347 \begin_layout List
14348 \labelwidthstring 00.00.0000
14349
14350 \family sans
14351 C-Delete
14352 \family default
14353  
14354 \family typewriter
14355 word-delete-forward
14356 \end_layout
14357
14358 \begin_layout List
14359 \labelwidthstring 00.00.0000
14360
14361 \family sans
14362 C-BackSpace
14363 \family default
14364  
14365 \family typewriter
14366 word-delete-backward
14367 \end_layout
14368
14369 \begin_layout List
14370 \labelwidthstring 00.00.0000
14371
14372 \family sans
14373 C-Return
14374 \family default
14375  
14376 \family typewriter
14377 break-line
14378 \end_layout
14379
14380 \begin_layout List
14381 \labelwidthstring 00.00.0000
14382
14383 \family sans
14384 C-period
14385 \family default
14386  
14387 \family typewriter
14388 end-of-sentence-period-insert
14389 \end_layout
14390
14391 \begin_layout List
14392 \labelwidthstring 00.00.0000
14393
14394 \family sans
14395 C-space
14396 \family default
14397  
14398 \family typewriter
14399 protected-space-insert
14400 \end_layout
14401
14402 \begin_layout List
14403 \labelwidthstring 00.00.0000
14404
14405 \family sans
14406 C-S-at
14407 \family default
14408  
14409 \family typewriter
14410 mark-on
14411 \end_layout
14412
14413 \begin_layout List
14414 \labelwidthstring 00.00.0000
14415
14416 \family sans
14417 C-S-greater
14418 \family default
14419  
14420 \family typewriter
14421 label-goto
14422 \end_layout
14423
14424 \begin_layout List
14425 \labelwidthstring 00.00.0000
14426
14427 \family sans
14428 C-S-less
14429 \family default
14430  
14431 \family typewriter
14432 reference-back
14433 \end_layout
14434
14435 \begin_layout List
14436 \labelwidthstring 00.00.0000
14437
14438 \family sans
14439 C-S-slash
14440 \family default
14441  
14442 \family typewriter
14443 undo
14444 \end_layout
14445
14446 \begin_layout List
14447 \labelwidthstring 00.00.0000
14448
14449 \family sans
14450 C-S-underscore
14451 \family default
14452  
14453 \family typewriter
14454 undo
14455 \end_layout
14456
14457 \begin_layout List
14458 \labelwidthstring 00.00.0000
14459
14460 \family sans
14461 C-S-quotedbl
14462 \family default
14463  
14464 \family typewriter
14465 quote-insert
14466 \end_layout
14467
14468 \begin_layout List
14469 \labelwidthstring 00.00.0000
14470
14471 \family sans
14472 C-S-Home
14473 \family default
14474  
14475 \family typewriter
14476 buffer-begin-select
14477 \end_layout
14478
14479 \begin_layout List
14480 \labelwidthstring 00.00.0000
14481
14482 \family sans
14483 C-S-End
14484 \family default
14485  
14486 \family typewriter
14487 buffer-end-select
14488 \end_layout
14489
14490 \begin_layout List
14491 \labelwidthstring 00.00.0000
14492
14493 \family sans
14494 C-S-Up
14495 \family default
14496  
14497 \family typewriter
14498 paragraph-up-select
14499 \end_layout
14500
14501 \begin_layout List
14502 \labelwidthstring 00.00.0000
14503
14504 \family sans
14505 C-S-Down
14506 \family default
14507  
14508 \family typewriter
14509 paragraph-down-select
14510 \end_layout
14511
14512 \begin_layout List
14513 \labelwidthstring 00.00.0000
14514
14515 \family sans
14516 C-S-Left
14517 \family default
14518  
14519 \family typewriter
14520 word-backward-select
14521 \end_layout
14522
14523 \begin_layout List
14524 \labelwidthstring 00.00.0000
14525
14526 \family sans
14527 C-S-Right
14528 \family default
14529  
14530 \family typewriter
14531 word-forward-select
14532 \end_layout
14533
14534 \begin_layout List
14535 \labelwidthstring 00.00.0000
14536
14537 \family sans
14538 Escape
14539 \family default
14540  
14541 \family typewriter
14542 meta-prefix
14543 \end_layout
14544
14545 \begin_layout List
14546 \labelwidthstring 00.00.0000
14547
14548 \family sans
14549 M-d
14550 \family default
14551  
14552 \family typewriter
14553 word-delete-forward
14554 \end_layout
14555
14556 \begin_layout List
14557 \labelwidthstring 00.00.0000
14558
14559 \family sans
14560 M-w
14561 \family default
14562  
14563 \family typewriter
14564 copy
14565 \end_layout
14566
14567 \begin_layout List
14568 \labelwidthstring 00.00.0000
14569
14570 \family sans
14571 M-x
14572 \family default
14573  
14574 \family typewriter
14575 command-execute
14576 \end_layout
14577
14578 \begin_layout List
14579 \labelwidthstring 00.00.0000
14580
14581 \family sans
14582 M-S-W
14583 \family default
14584  
14585 \family typewriter
14586 layout-copy
14587 \end_layout
14588
14589 \begin_layout List
14590 \labelwidthstring 00.00.0000
14591
14592 \family sans
14593 M-period
14594 \family default
14595  
14596 \family typewriter
14597 dots-insert
14598 \end_layout
14599
14600 \begin_layout List
14601 \labelwidthstring 00.00.0000
14602
14603 \family sans
14604 M-Return
14605 \family default
14606  
14607 \family typewriter
14608 break-paragraph-keep-layout
14609 \end_layout
14610
14611 \begin_layout List
14612 \labelwidthstring 00.00.0000
14613
14614 \family sans
14615 M-S-percent
14616 \family default
14617  
14618 \family typewriter
14619 find-replace
14620 \end_layout
14621
14622 \begin_layout Subsection
14623 Specific to 
14624 \family typewriter
14625 cua.bind
14626 \end_layout
14627
14628 \begin_layout List
14629 \labelwidthstring 00.00.0000
14630
14631 \family sans
14632 C-b
14633 \family default
14634  
14635 \family typewriter
14636 font-bold
14637 \end_layout
14638
14639 \begin_layout List
14640 \labelwidthstring 00.00.0000
14641
14642 \family sans
14643 C-c
14644 \family default
14645  
14646 \family typewriter
14647 copy
14648 \end_layout
14649
14650 \begin_layout List
14651 \labelwidthstring 00.00.0000
14652
14653 \family sans
14654 C-d
14655 \family default
14656  
14657 \family typewriter
14658 buffer-view 
14659 \end_layout
14660
14661 \begin_layout List
14662 \labelwidthstring 00.00.0000
14663
14664 \family sans
14665 C-e
14666 \family default
14667  
14668 \family typewriter
14669 font-emph
14670 \end_layout
14671
14672 \begin_layout List
14673 \labelwidthstring 00.00.0000
14674
14675 \family sans
14676 C-f
14677 \family default
14678  
14679 \family typewriter
14680 find-replace
14681 \end_layout
14682
14683 \begin_layout List
14684 \labelwidthstring 00.00.0000
14685
14686 \family sans
14687 C-g
14688 \family default
14689  
14690 \family typewriter
14691 error-next
14692 \end_layout
14693
14694 \begin_layout List
14695 \labelwidthstring 00.00.0000
14696
14697 \family sans
14698 C-i
14699 \family default
14700  
14701 \family typewriter
14702 open-stuff 
14703 \end_layout
14704
14705 \begin_layout List
14706 \labelwidthstring 00.00.0000
14707
14708 \family sans
14709 C-k
14710 \family default
14711  
14712 \family typewriter
14713 font-noun 
14714 \end_layout
14715
14716 \begin_layout List
14717 \labelwidthstring 00.00.0000
14718
14719 \family sans
14720 C-l
14721 \family default
14722  
14723 \family typewriter
14724 tex-mode 
14725 \end_layout
14726
14727 \begin_layout List
14728 \labelwidthstring 00.00.0000
14729
14730 \family sans
14731 C-m
14732 \family default
14733  
14734 \family typewriter
14735 math-mode
14736 \end_layout
14737
14738 \begin_layout List
14739 \labelwidthstring 00.00.0000
14740
14741 \family sans
14742 C-n
14743 \family default
14744  
14745 \family typewriter
14746 buffer-new
14747 \end_layout
14748
14749 \begin_layout List
14750 \labelwidthstring 00.00.0000
14751
14752 \family sans
14753 C-o
14754 \family default
14755  
14756 \family typewriter
14757 buffer-open
14758 \end_layout
14759
14760 \begin_layout List
14761 \labelwidthstring 00.00.0000
14762
14763 \family sans
14764 C-p
14765 \family default
14766  
14767 \family typewriter
14768 buffer-print
14769 \end_layout
14770
14771 \begin_layout List
14772 \labelwidthstring 00.00.0000
14773
14774 \family sans
14775 C-q
14776 \family default
14777  
14778 \family typewriter
14779 lyx-quit
14780 \end_layout
14781
14782 \begin_layout List
14783 \labelwidthstring 00.00.0000
14784
14785 \family sans
14786 C-r
14787 \family default
14788  
14789 \family typewriter
14790 buffer-reload
14791 \end_layout
14792
14793 \begin_layout List
14794 \labelwidthstring 00.00.0000
14795
14796 \family sans
14797 C-s
14798 \family default
14799  
14800 \family typewriter
14801 buffer-write
14802 \end_layout
14803
14804 \begin_layout List
14805 \labelwidthstring 00.00.0000
14806
14807 \family sans
14808 C-t
14809 \family default
14810  
14811 \family typewriter
14812 buffer-view-ps
14813 \end_layout
14814
14815 \begin_layout List
14816 \labelwidthstring 00.00.0000
14817
14818 \family sans
14819 C-u
14820 \family default
14821  
14822 \family typewriter
14823 font-underline
14824 \end_layout
14825
14826 \begin_layout List
14827 \labelwidthstring 00.00.0000
14828
14829 \family sans
14830 C-v
14831 \family default
14832  
14833 \family typewriter
14834 paste
14835 \end_layout
14836
14837 \begin_layout List
14838 \labelwidthstring 00.00.0000
14839
14840 \family sans
14841 C-w
14842 \family default
14843  
14844 \family typewriter
14845 buffer-close
14846 \end_layout
14847
14848 \begin_layout List
14849 \labelwidthstring 00.00.0000
14850
14851 \family sans
14852 C-x
14853 \family default
14854  
14855 \family typewriter
14856 cut
14857 \end_layout
14858
14859 \begin_layout List
14860 \labelwidthstring 00.00.0000
14861
14862 \family sans
14863 C-z
14864 \family default
14865  
14866 \family typewriter
14867 undo
14868 \end_layout
14869
14870 \begin_layout List
14871 \labelwidthstring 00.00.0000
14872
14873 \family sans
14874 C-space
14875 \family default
14876  
14877 \family typewriter
14878 protected-space-insert
14879 \end_layout
14880
14881 \begin_layout List
14882 \labelwidthstring 00.00.0000
14883
14884 \family sans
14885 C-S-C
14886 \family default
14887  
14888 \family typewriter
14889 layout-copy
14890 \end_layout
14891
14892 \begin_layout List
14893 \labelwidthstring 00.00.0000
14894
14895 \family sans
14896 C-S-D
14897 \family default
14898  
14899 \family typewriter
14900 buffer-typeset
14901 \end_layout
14902
14903 \begin_layout List
14904 \labelwidthstring 00.00.0000
14905
14906 \family sans
14907 C-S-M
14908 \family default
14909  
14910 \family typewriter
14911 math-display
14912 \end_layout
14913
14914 \begin_layout List
14915 \labelwidthstring 00.00.0000
14916
14917 \family sans
14918 C-S-N
14919 \family default
14920  
14921 \family typewriter
14922 buffer-new-template
14923 \end_layout
14924
14925 \begin_layout List
14926 \labelwidthstring 00.00.0000
14927
14928 \family sans
14929 C-S-P
14930 \family default
14931  
14932 \family typewriter
14933 font-code 
14934 \end_layout
14935
14936 \begin_layout List
14937 \labelwidthstring 00.00.0000
14938
14939 \family sans
14940 C-S-S
14941 \family default
14942  
14943 \family typewriter
14944 buffer-write-as
14945 \end_layout
14946
14947 \begin_layout List
14948 \labelwidthstring 00.00.0000
14949
14950 \family sans
14951 C-S-T
14952 \family default
14953  
14954 \family typewriter
14955 buffer-typeset-ps
14956 \end_layout
14957
14958 \begin_layout List
14959 \labelwidthstring 00.00.0000
14960
14961 \family sans
14962 C-S-V
14963 \family default
14964  
14965 \family typewriter
14966 layout-paste
14967 \end_layout
14968
14969 \begin_layout List
14970 \labelwidthstring 00.00.0000
14971
14972 \family sans
14973 C-S-Z
14974 \family default
14975  
14976 \family typewriter
14977 redo
14978 \end_layout
14979
14980 \begin_layout List
14981 \labelwidthstring 00.00.0000
14982
14983 \family sans
14984 S-Insert
14985 \family default
14986  
14987 \family typewriter
14988 paste
14989 \end_layout
14990
14991 \begin_layout List
14992 \labelwidthstring 00.00.0000
14993
14994 \family sans
14995 S-Delete
14996 \family default
14997  
14998 \family typewriter
14999 cut
15000 \end_layout
15001
15002 \begin_layout List
15003 \labelwidthstring 00.00.0000
15004
15005 \family sans
15006 C-period
15007 \family default
15008  
15009 \family typewriter
15010 end-of-sentence-period-insert
15011 \end_layout
15012
15013 \begin_layout List
15014 \labelwidthstring 00.00.0000
15015
15016 \family sans
15017 C-S-greater
15018 \family default
15019  
15020 \family typewriter
15021 label-goto
15022 \end_layout
15023
15024 \begin_layout List
15025 \labelwidthstring 00.00.0000
15026
15027 \family sans
15028 C-S-less
15029 \family default
15030  
15031 \family typewriter
15032 reference-back
15033 \end_layout
15034
15035 \begin_layout List
15036 \labelwidthstring 00.00.0000
15037
15038 \family sans
15039 C-minus
15040 \family default
15041  
15042 \family typewriter
15043 hyphenation-point-insert
15044 \end_layout
15045
15046 \begin_layout List
15047 \labelwidthstring 00.00.0000
15048
15049 \family sans
15050 C-S-quotedbl
15051 \family default
15052  
15053 \family typewriter
15054 quote-insert
15055 \end_layout
15056
15057 \begin_layout List
15058 \labelwidthstring 00.00.0000
15059
15060 \family sans
15061 C-S-space
15062 \family default
15063  
15064 \family typewriter
15065 protected-space-insert
15066 \end_layout
15067
15068 \begin_layout List
15069 \labelwidthstring 00.00.0000
15070
15071 \family sans
15072 M-x
15073 \family default
15074  
15075 \family typewriter
15076 command-execute
15077 \end_layout
15078
15079 \begin_layout List
15080 \labelwidthstring 00.00.0000
15081
15082 \family sans
15083 S-Home
15084 \family default
15085  
15086 \family typewriter
15087 line-begin-select
15088 \end_layout
15089
15090 \begin_layout List
15091 \labelwidthstring 00.00.0000
15092
15093 \family sans
15094 S-End
15095 \family default
15096  
15097 \family typewriter
15098 line-end-select
15099 \end_layout
15100
15101 \begin_layout List
15102 \labelwidthstring 00.00.0000
15103
15104 \family sans
15105 S-Up
15106 \family default
15107  
15108 \family typewriter
15109 up-select
15110 \end_layout
15111
15112 \begin_layout List
15113 \labelwidthstring 00.00.0000
15114
15115 \family sans
15116 S-Down
15117 \family default
15118  
15119 \family typewriter
15120 down-select
15121 \end_layout
15122
15123 \begin_layout List
15124 \labelwidthstring 00.00.0000
15125
15126 \family sans
15127 S-Delete
15128 \family default
15129  
15130 \family typewriter
15131 cut
15132 \end_layout
15133
15134 \begin_layout List
15135 \labelwidthstring 00.00.0000
15136
15137 \family sans
15138 S-Insert
15139 \family default
15140  
15141 \family typewriter
15142 paste
15143 \end_layout
15144
15145 \begin_layout List
15146 \labelwidthstring 00.00.0000
15147
15148 \family sans
15149 S-Next
15150 \family default
15151  
15152 \family typewriter
15153 screen-down-select
15154 \end_layout
15155
15156 \begin_layout List
15157 \labelwidthstring 00.00.0000
15158
15159 \family sans
15160 S-Prior
15161 \family default
15162  
15163 \family typewriter
15164 screen-up-select
15165 \end_layout
15166
15167 \begin_layout List
15168 \labelwidthstring 00.00.0000
15169
15170 \family sans
15171 S-Left
15172 \family default
15173  
15174 \family typewriter
15175 backward-select
15176 \end_layout
15177
15178 \begin_layout List
15179 \labelwidthstring 00.00.0000
15180
15181 \family sans
15182 S-Right
15183 \family default
15184  
15185 \family typewriter
15186 forward-select
15187 \end_layout
15188
15189 \begin_layout List
15190 \labelwidthstring 00.00.0000
15191
15192 \family sans
15193 C-Home
15194 \family default
15195  
15196 \family typewriter
15197 buffer-begin
15198 \end_layout
15199
15200 \begin_layout List
15201 \labelwidthstring 00.00.0000
15202
15203 \family sans
15204 C-End
15205 \family default
15206  
15207 \family typewriter
15208 buffer-end
15209 \end_layout
15210
15211 \begin_layout List
15212 \labelwidthstring 00.00.0000
15213
15214 \family sans
15215 C-Up
15216 \family default
15217  
15218 \family typewriter
15219 paragraph-up
15220 \end_layout
15221
15222 \begin_layout List
15223 \labelwidthstring 00.00.0000
15224
15225 \family sans
15226 C-Down
15227 \family default
15228  
15229 \family typewriter
15230 paragraph-down
15231 \end_layout
15232
15233 \begin_layout List
15234 \labelwidthstring 00.00.0000
15235
15236 \family sans
15237 C-Delete
15238 \family default
15239  
15240 \family typewriter
15241 word-delete-forward
15242 \end_layout
15243
15244 \begin_layout List
15245 \labelwidthstring 00.00.0000
15246
15247 \family sans
15248 C-BackSpace
15249 \family default
15250  
15251 \family typewriter
15252 word-delete-backward
15253 \end_layout
15254
15255 \begin_layout List
15256 \labelwidthstring 00.00.0000
15257
15258 \family sans
15259 C-Insert
15260 \family default
15261  
15262 \family typewriter
15263 copy
15264 \end_layout
15265
15266 \begin_layout List
15267 \labelwidthstring 00.00.0000
15268
15269 \family sans
15270 C-Return
15271 \family default
15272  
15273 \family typewriter
15274 break-line
15275 \end_layout
15276
15277 \begin_layout List
15278 \labelwidthstring 00.00.0000
15279
15280 \family sans
15281 C-Left
15282 \family default
15283  
15284 \family typewriter
15285 word-backward
15286 \end_layout
15287
15288 \begin_layout List
15289 \labelwidthstring 00.00.0000
15290
15291 \family sans
15292 C-Right
15293 \family default
15294  
15295 \family typewriter
15296 word-forward
15297 \end_layout
15298
15299 \begin_layout List
15300 \labelwidthstring 00.00.0000
15301
15302 \family sans
15303 C-S-Down
15304 \family default
15305  
15306 \family typewriter
15307 paragraph-down-select
15308 \end_layout
15309
15310 \begin_layout List
15311 \labelwidthstring 00.00.0000
15312
15313 \family sans
15314 C-S-End
15315 \family default
15316  
15317 \family typewriter
15318 buffer-end-select
15319 \end_layout
15320
15321 \begin_layout List
15322 \labelwidthstring 00.00.0000
15323
15324 \family sans
15325 C-S-Home
15326 \family default
15327  
15328 \family typewriter
15329 buffer-begin-select
15330 \end_layout
15331
15332 \begin_layout List
15333 \labelwidthstring 00.00.0000
15334
15335 \family sans
15336 C-S-Left
15337 \family default
15338  
15339 \family typewriter
15340 word-backward-select
15341 \end_layout
15342
15343 \begin_layout List
15344 \labelwidthstring 00.00.0000
15345
15346 \family sans
15347 C-S-Right
15348 \family default
15349  
15350 \family typewriter
15351 word-forward-select
15352 \end_layout
15353
15354 \begin_layout List
15355 \labelwidthstring 00.00.0000
15356
15357 \family sans
15358 C-S-Up
15359 \family default
15360  
15361 \family typewriter
15362 paragraph-up-select
15363 \end_layout
15364
15365 \begin_layout List
15366 \labelwidthstring 00.00.0000
15367
15368 \family sans
15369 C-S-quotedbl
15370 \family default
15371  
15372 \family typewriter
15373 quote-insert
15374 \end_layout
15375
15376 \begin_layout List
15377 \labelwidthstring 00.00.0000
15378
15379 \family sans
15380 M-Return
15381 \family default
15382  
15383 \family typewriter
15384 break-paragraph-keep-layout
15385 \end_layout
15386
15387 \begin_layout List
15388 \labelwidthstring 00.00.0000
15389
15390 \family sans
15391 M-period
15392 \family default
15393  
15394 \family typewriter
15395 dots-insert
15396 \end_layout
15397
15398 \begin_layout List
15399 \labelwidthstring 00.00.0000
15400
15401 \family sans
15402 M-S-Right
15403 \family default
15404  
15405 \family typewriter
15406 depth-increment
15407 \end_layout
15408
15409 \begin_layout List
15410 \labelwidthstring 00.00.0000
15411
15412 \family sans
15413 M-S-Left
15414 \family default
15415  
15416 \family typewriter
15417 depth-decrement
15418 \end_layout
15419
15420 \begin_layout List
15421 \labelwidthstring 00.00.0000
15422
15423 \family sans
15424 Escape
15425 \family default
15426  
15427 \family typewriter
15428 cancel
15429 \end_layout
15430
15431 \begin_layout List
15432 \labelwidthstring 00.00.0000
15433
15434 \family sans
15435 F2
15436 \family default
15437  
15438 \family typewriter
15439 buffer-write
15440 \end_layout
15441
15442 \begin_layout List
15443 \labelwidthstring 00.00.0000
15444
15445 \family sans
15446 F3
15447 \family default
15448  
15449 \family typewriter
15450 buffer-open
15451 \end_layout
15452
15453 \begin_layout List
15454 \labelwidthstring 00.00.0000
15455
15456 \family sans
15457 F5
15458 \family default
15459  
15460 \family typewriter
15461 screen-recenter
15462 \end_layout
15463
15464 \begin_layout List
15465 \labelwidthstring 00.00.0000
15466
15467 \family sans
15468 F7
15469 \family default
15470  
15471 \family typewriter
15472 spellchecker
15473 \end_layout
15474
15475 \begin_layout List
15476 \labelwidthstring 00.00.0000
15477
15478 \family sans
15479 F9
15480 \family default
15481  
15482 \family typewriter
15483 meta-prefix
15484 \end_layout
15485
15486 \begin_layout List
15487 \labelwidthstring 00.00.0000
15488
15489 \family sans
15490 C-F4
15491 \family default
15492  
15493 \family typewriter
15494 buffer-close
15495 \end_layout
15496
15497 \begin_layout List
15498 \labelwidthstring 00.00.0000
15499
15500 \family sans
15501 M-F4
15502 \family default
15503  
15504 \family typewriter
15505 lyx-quit
15506 \end_layout
15507
15508 \begin_layout Subsection
15509 Specific to 
15510 \family typewriter
15511 sciword.bind
15512 \end_layout
15513
15514 \begin_layout Standard
15515 These are LyX keyboard definitions for mathematics, similar to those of
15516  Scientific Word.
15517 \end_layout
15518
15519 \begin_layout Standard
15520 The bindings file and the present documentation were prepared by Serge Winitzki
15521  with assistance from Jean-Marc Lasgouttes.
15522  Version 1.3, for LyX 1.2.x and 1.3.x.
15523 \end_layout
15524
15525 \begin_layout Standard
15526 These definitions make it a lot easier to type equations without using the
15527  mouse, especially for people familiar with Scientific Word.
15528  The standard LyX bindings such as 
15529 \family typewriter
15530 M-m
15531 \family default
15532  or 
15533 \family typewriter
15534 M-o
15535 \family default
15536  are unmodified.
15537 \end_layout
15538
15539 \begin_layout Standard
15540 Tip: to find the "LyX bind name" for a key, look at the status bar after
15541  typing some non-existent key combination.
15542  E.g.
15543  to find how "Ctrl-&" is referenced, press Ctrl-S and then Ctrl-&: the status
15544  bar shows "C-s S-C-ampersand." (This does not work in LyX 1.3.0!)
15545 \end_layout
15546
15547 \begin_layout List
15548 \labelwidthstring 00.00.0000
15549
15550 \family sans
15551 C-c
15552 \family default
15553  
15554 \family typewriter
15555 copy
15556 \family default
15557  -- Copy, cut, paste is as in Sciword, 
15558 \family typewriter
15559 C-c
15560 \family default
15561
15562 \family typewriter
15563 C-x
15564 \family default
15565 , and 
15566 \family typewriter
15567 C-v
15568 \family default
15569 .
15570 \end_layout
15571
15572 \begin_layout List
15573 \labelwidthstring 00.00.0000
15574
15575 \family sans
15576 C-d
15577 \family default
15578  
15579 \family typewriter
15580 math-display
15581 \family default
15582  -- Display equation toggle: type 
15583 \family typewriter
15584 C-d
15585 \family default
15586  to insert a displayed formula (
15587 \family typewriter
15588 d
15589 \family default
15590  for 
15591 \begin_inset Quotes eld
15592 \end_inset
15593
15594 displayed
15595 \begin_inset Quotes erd
15596 \end_inset
15597
15598 ).
15599  You can also type 
15600 \family typewriter
15601 C-d
15602 \family default
15603  in a displayed formula to convert it back to an inline formula.
15604 \end_layout
15605
15606 \begin_layout List
15607 \labelwidthstring 00.00.0000
15608
15609 \family sans
15610 C-f
15611 \family default
15612  
15613 \family typewriter
15614 math-insert 
15615 \backslash
15616 frac
15617 \family default
15618  -- Fractions: type 
15619 \family typewriter
15620 C-f
15621 \family default
15622  to insert a fraction (
15623 \family typewriter
15624 f
15625 \family default
15626  for 
15627 \begin_inset Quotes eld
15628 \end_inset
15629
15630 fraction
15631 \begin_inset Quotes erd
15632 \end_inset
15633
15634 ).
15635  You can also select an expression and type 
15636 \family typewriter
15637 C-f
15638 \family default
15639  to convert it to the numerator of a fraction.
15640  Note: pressing 
15641 \family typewriter
15642 Backspace
15643 \family default
15644  at the 
15645 \emph on
15646 left
15647 \emph default
15648  end of the denominator will delete the numerator and convert the denominator
15649  to a non-fraction.
15650 \end_layout
15651
15652 \begin_layout List
15653 \labelwidthstring 00.00.0000
15654
15655 \family sans
15656 C-i
15657 \family default
15658  
15659 \family typewriter
15660 math-insert 
15661 \backslash
15662 int
15663 \family default
15664  -- Inserts 
15665 \begin_inset Formula $\int$
15666 \end_inset
15667
15668  (
15669 \family typewriter
15670 i
15671 \family default
15672  for 
15673 \begin_inset Quotes eld
15674 \end_inset
15675
15676 integral
15677 \begin_inset Quotes erd
15678 \end_inset
15679
15680 )
15681 \end_layout
15682
15683 \begin_layout List
15684 \labelwidthstring 00.00.0000
15685
15686 \family sans
15687 C-k
15688 \family default
15689  
15690 \family typewriter
15691 line-delete-forward
15692 \family default
15693  -- Emacs-like binding: delete forward of cursor to end of line.
15694 \end_layout
15695
15696 \begin_layout List
15697 \labelwidthstring 00.00.0000
15698
15699 \family sans
15700 C-m
15701 \family default
15702  
15703 \family typewriter
15704 math-mode
15705 \family default
15706  -- A text/math toggle (
15707 \family typewriter
15708 m
15709 \family default
15710  for 
15711 \begin_inset Quotes eld
15712 \end_inset
15713
15714 math
15715 \begin_inset Quotes erd
15716 \end_inset
15717
15718 ): switches to math in text mode, and also inserts roman text in math mode.
15719  Also bound to 
15720 \family typewriter
15721 C-t
15722 \family default
15723  (
15724 \family typewriter
15725 t
15726 \family default
15727  for 
15728 \begin_inset Quotes eld
15729 \end_inset
15730
15731 text
15732 \begin_inset Quotes erd
15733 \end_inset
15734
15735 ).
15736 \end_layout
15737
15738 \begin_layout List
15739 \labelwidthstring 00.00.0000
15740
15741 \family sans
15742 C-n
15743 \family default
15744  
15745 \family typewriter
15746 math-number
15747 \family default
15748  -- Add/remove numbering in a single equation.
15749 \end_layout
15750
15751 \begin_layout List
15752 \labelwidthstring 00.00.0000
15753
15754 \family sans
15755 S-C-N
15756 \family default
15757  
15758 \family typewriter
15759 math-nonumber
15760 \family default
15761  -- Add/remove numbering at a line in equation arrays.
15762 \end_layout
15763
15764 \begin_layout Standard
15765 The above commands are toggles that control the numbering of equations (
15766 \family typewriter
15767 N
15768 \family default
15769  for 
15770 \begin_inset Quotes eld
15771 \end_inset
15772
15773 number
15774 \begin_inset Quotes erd
15775 \end_inset
15776
15777 ).
15778  Note: when deleting a number in a labeled eqnarray, the label is not really
15779  removed (the TeX code becomes 
15780 \begin_inset Quotes eld
15781 \end_inset
15782
15783
15784 \family typewriter
15785
15786 \backslash
15787 label{} 
15788 \backslash
15789 nonumber
15790 \family default
15791
15792 \begin_inset Quotes erd
15793 \end_inset
15794
15795  ) and this generates a (harmless) LaTeX warning.
15796 \end_layout
15797
15798 \begin_layout List
15799 \labelwidthstring 00.00.0000
15800
15801 \family sans
15802 C-o
15803 \family default
15804  
15805 \family typewriter
15806 file-open
15807 \family default
15808  -- Open a new document.
15809  (W*ndows)
15810 \end_layout
15811
15812 \begin_layout List
15813 \labelwidthstring 00.00.0000
15814
15815 \family sans
15816 C-q
15817 \family default
15818  
15819 \family typewriter
15820 quote-insert
15821 \family default
15822  -- Insert a quote character " (
15823 \family typewriter
15824 q
15825 \family default
15826  for 
15827 \begin_inset Quotes eld
15828 \end_inset
15829
15830 quote
15831 \begin_inset Quotes erd
15832 \end_inset
15833
15834 ).
15835  This is not the 
15836 \begin_inset Quotes eld
15837 \end_inset
15838
15839 smart
15840 \begin_inset Quotes erd
15841 \end_inset
15842
15843  double quote character that you get by default.
15844 \end_layout
15845
15846 \begin_layout List
15847 \labelwidthstring 00.00.0000
15848
15849 \family sans
15850 C-r
15851 \family default
15852  
15853 \family typewriter
15854 math-insert 
15855 \backslash
15856 sqrt
15857 \family default
15858  -- Square root sign 
15859 \begin_inset Formula $\sqrt{x}$
15860 \end_inset
15861
15862  (
15863 \family typewriter
15864 r
15865 \family default
15866  for 
15867 \begin_inset Quotes eld
15868 \end_inset
15869
15870 root
15871 \begin_inset Quotes erd
15872 \end_inset
15873
15874 ).
15875 \end_layout
15876
15877 \begin_layout List
15878 \labelwidthstring 00.00.0000
15879
15880 \family sans
15881 S-C-R
15882 \family default
15883  
15884 \family typewriter
15885 math-insert 
15886 \backslash
15887 root
15888 \family default
15889  -- root sign 
15890 \begin_inset Formula $\sqrt[n]{x}$
15891 \end_inset
15892
15893 .
15894 \end_layout
15895
15896 \begin_layout List
15897 \labelwidthstring 00.00.0000
15898
15899 \family sans
15900 C-t
15901 \family default
15902  
15903 \family typewriter
15904 math-mode
15905 \family default
15906  -- Another binding for a switch between the text and the math mode (
15907 \family typewriter
15908 t
15909 \family default
15910  is for 
15911 \begin_inset Quotes eld
15912 \end_inset
15913
15914 text
15915 \begin_inset Quotes erd
15916 \end_inset
15917
15918 ).
15919  Note that the roman text inserted in math mode is special.
15920 \end_layout
15921
15922 \begin_layout List
15923 \labelwidthstring 00.00.0000
15924
15925 \family sans
15926 C-u
15927 \family default
15928  
15929 \family typewriter
15930 font-underline
15931 \family default
15932  -- 
15933 \bar under
15934 Underline
15935 \bar default
15936  the selected text (text mode only, use things like 
15937 \family typewriter
15938
15939 \backslash
15940 overline
15941 \family default
15942  or 
15943 \family typewriter
15944
15945 \backslash
15946 underbar
15947 \family default
15948  for math ).
15949 \end_layout
15950
15951 \begin_layout List
15952 \labelwidthstring 00.00.0000
15953
15954 \family sans
15955 C-v
15956 \family default
15957  
15958 \family typewriter
15959 paste
15960 \family default
15961  -- W*ndows heritage.
15962 \end_layout
15963
15964 \begin_layout List
15965 \labelwidthstring 00.00.0000
15966
15967 \family sans
15968 C-w
15969 \family default
15970  
15971 \family typewriter
15972 buffer-close
15973 \family default
15974  -- Close the current document (again, a W*ndows heritage).
15975 \end_layout
15976
15977 \begin_layout List
15978 \labelwidthstring 00.00.0000
15979
15980 \family sans
15981 C-x
15982 \family default
15983  
15984 \family typewriter
15985 cut
15986 \end_layout
15987
15988 \begin_layout List
15989 \labelwidthstring 00.00.0000
15990
15991 \family sans
15992 C-z
15993 \family default
15994  
15995 \family typewriter
15996 undo
15997 \end_layout
15998
15999 \begin_layout List
16000 \labelwidthstring 00.00.0000
16001
16002 \family sans
16003 S-C-Z
16004 \family default
16005  
16006 \family typewriter
16007 redo
16008 \family default
16009  -- the 
16010 \begin_inset Quotes eld
16011 \end_inset
16012
16013 Redo
16014 \begin_inset Quotes erd
16015 \end_inset
16016
16017  operation, or 
16018 \begin_inset Quotes eld
16019 \end_inset
16020
16021 undo the undo
16022 \begin_inset Quotes erd
16023 \end_inset
16024
16025 .
16026 \end_layout
16027
16028 \begin_layout Standard
16029 Bracket delimiters: press 
16030 \family typewriter
16031 Ctrl
16032 \family default
16033 -<bracket key> to insert a matching pair of delimiters.
16034  For example, 
16035 \family typewriter
16036 Ctrl-[
16037 \family default
16038  inserts a pair of parentheses 
16039 \begin_inset Formula $\left[\right]$
16040 \end_inset
16041
16042 .
16043  (Note: 
16044 \family typewriter
16045 Ctrl-]
16046 \family default
16047  does the same thing.) It will switch to math mode if needed.
16048  The supported characters are ( [ { < |.
16049  It is the same to press the right or the left bracket.
16050  The corresponding delimiters are 
16051 \begin_inset Formula $\left(\right)$
16052 \end_inset
16053
16054  
16055 \begin_inset Formula $\left[\right]$
16056 \end_inset
16057
16058  
16059 \begin_inset Formula $\left\{ \right\} $
16060 \end_inset
16061
16062  
16063 \begin_inset Formula $\left\langle \right\rangle $
16064 \end_inset
16065
16066  
16067 \begin_inset Formula $\left|\right|$
16068 \end_inset
16069
16070 .
16071  The delimiters are 
16072 \begin_inset Quotes eld
16073 \end_inset
16074
16075 smart
16076 \begin_inset Quotes erd
16077 \end_inset
16078
16079  and resize with their contents.
16080  Use Math Panel to get other or non-matching delimiters.
16081  Press backspace on the 
16082 \emph on
16083 left
16084 \emph default
16085  delimiter to remove both 
16086 \begin_inset Quotes eld
16087 \end_inset
16088
16089 smart
16090 \begin_inset Quotes erd
16091 \end_inset
16092
16093  delimiters without removing their contents.
16094 \end_layout
16095
16096 \begin_layout List
16097 \labelwidthstring 00.00.0000
16098
16099 \family sans
16100 C-9
16101 \family default
16102  
16103 \family typewriter
16104 math-delim ( )
16105 \family default
16106  -- for convenience, pressing 
16107 \family typewriter
16108 Ctrl-9
16109 \family default
16110  is the same as 
16111 \family typewriter
16112 Ctrl-(
16113 \family default
16114  or 
16115 \family typewriter
16116 Ctrl-)
16117 \end_layout
16118
16119 \begin_layout List
16120 \labelwidthstring 00.00.0000
16121
16122 \family sans
16123 S-C-parenleft
16124 \family default
16125  
16126 \family typewriter
16127 math-delim ( )
16128 \end_layout
16129
16130 \begin_layout List
16131 \labelwidthstring 00.00.0000
16132
16133 \family sans
16134 C-0
16135 \family default
16136  
16137 \family typewriter
16138 math-delim ( )
16139 \end_layout
16140
16141 \begin_layout List
16142 \labelwidthstring 00.00.0000
16143
16144 \family sans
16145 S-C-parenright
16146 \family default
16147  
16148 \family typewriter
16149 math-delim ( )
16150 \end_layout
16151
16152 \begin_layout List
16153 \labelwidthstring 00.00.0000
16154
16155 \family sans
16156 C-bracketleft
16157 \family default
16158  
16159 \family typewriter
16160 math-delim [ ]
16161 \end_layout
16162
16163 \begin_layout List
16164 \labelwidthstring 00.00.0000
16165
16166 \family sans
16167 C-bracketright
16168 \family default
16169  
16170 \family typewriter
16171 math-delim [ ]
16172 \end_layout
16173
16174 \begin_layout List
16175 \labelwidthstring 00.00.0000
16176
16177 \family sans
16178 C-S-less
16179 \family default
16180  
16181 \family typewriter
16182 math-delim langle rangle
16183 \family default
16184  -- angular delimiters 
16185 \begin_inset Formula $\left\langle \right\rangle $
16186 \end_inset
16187
16188 , not to confuse with ordinary < > signs.
16189 \end_layout
16190
16191 \begin_layout List
16192 \labelwidthstring 00.00.0000
16193
16194 \family sans
16195 C-S-greater
16196 \family default
16197  
16198 \family typewriter
16199 math-delim langle rangle
16200 \end_layout
16201
16202 \begin_layout Standard
16203 The bar bracket: on some keyboards (e.g.\InsetSpace ~
16204 some British ones), the bar character
16205  is bound to an 
16206 \family typewriter
16207 Alt
16208 \family default
16209 -something and on some wayward Unices to "brokenbar".
16210  So we define all of these keys as well.
16211 \end_layout
16212
16213 \begin_layout List
16214 \labelwidthstring 00.00.0000
16215
16216 \family sans
16217 C-S-bar
16218 \family default
16219  
16220 \family typewriter
16221 math-delim | |
16222 \end_layout
16223
16224 \begin_layout List
16225 \labelwidthstring 00.00.0000
16226
16227 \family sans
16228 C-S-brokenbar
16229 \family default
16230  
16231 \family typewriter
16232 math-delim | |
16233 \end_layout
16234
16235 \begin_layout List
16236 \labelwidthstring 00.00.0000
16237
16238 \family sans
16239 C-M-bar
16240 \family default
16241  
16242 \family typewriter
16243 math-delim | |
16244 \end_layout
16245
16246 \begin_layout List
16247 \labelwidthstring 00.00.0000
16248
16249 \family sans
16250 S-C-braceleft
16251 \family default
16252  
16253 \family typewriter
16254 math-delim { }
16255 \end_layout
16256
16257 \begin_layout List
16258 \labelwidthstring 00.00.0000
16259
16260 \family sans
16261 S-C-braceright
16262 \family default
16263  
16264 \family typewriter
16265 math-delim { }
16266 \end_layout
16267
16268 \begin_layout Standard
16269 Accents are in most cases 
16270 \family typewriter
16271 Ctrl
16272 \family default
16273 -<accent key>, e.g.\InsetSpace ~
16274
16275 \family typewriter
16276 Ctrl-.
16277
16278 \family default
16279  for overdot, 
16280 \family typewriter
16281 Ctrl-'
16282 \family default
16283  for acute accent, 
16284 \family typewriter
16285 Ctrl-~
16286 \family default
16287  for tilde (you also need to press 
16288 \family typewriter
16289 Shift
16290 \family default
16291  here) etc.
16292  For example, 
16293 \begin_inset Quotes eld
16294 \end_inset
16295
16296
16297 \family typewriter
16298 Ctrl-'
16299 \family default
16300  
16301 \family typewriter
16302 a
16303 \family default
16304
16305 \begin_inset Quotes erd
16306 \end_inset
16307
16308  inserts á.
16309  Some accents work only in math mode and others only in text mode.
16310 \end_layout
16311
16312 \begin_layout List
16313 \labelwidthstring 00.00.0000
16314
16315 \family sans
16316 C-period
16317 \family default
16318  
16319 \family typewriter
16320 accent-dot
16321 \family default
16322  -- overdot accent, ȧ (text mode only).
16323 \end_layout
16324
16325 \begin_layout List
16326 \labelwidthstring 00.00.0000
16327
16328 \family sans
16329 C-comma
16330 \family default
16331  
16332 \family typewriter
16333 math-insert 
16334 \backslash
16335 dot
16336 \family default
16337  -- overdot accent, 
16338 \begin_inset Formula $\dot{a}$
16339 \end_inset
16340
16341  (math mode only -- in physics this denotes a first derivative).
16342 \end_layout
16343
16344 \begin_layout List
16345 \labelwidthstring 00.00.0000
16346
16347 \family sans
16348 C-equals
16349 \family default
16350  
16351 \family typewriter
16352 math-insert 
16353 \backslash
16354 overrightarrow
16355 \family default
16356  -- Vector accent over math 
16357 \begin_inset Formula $\overrightarrow{x}$
16358 \end_inset
16359
16360 .
16361 \end_layout
16362
16363 \begin_layout List
16364 \labelwidthstring 00.00.0000
16365
16366 \family sans
16367 S-C-quotedbl
16368 \family default
16369  
16370 \family typewriter
16371 accent-umlaut
16372 \family default
16373  -- umlaut accent, ä (text mode only)
16374 \end_layout
16375
16376 \begin_layout List
16377 \labelwidthstring 00.00.0000
16378
16379 \family sans
16380 S-C-colon
16381 \family default
16382  
16383 \family typewriter
16384 math-insert 
16385 \backslash
16386 ddot
16387 \family default
16388  -- double dot accent, 
16389 \begin_inset Formula $\ddot{a}$
16390 \end_inset
16391
16392  (math mode only -- in physics this denotes a second derivative).
16393  To get a triple dot in math mode, use 
16394 \family typewriter
16395
16396 \backslash
16397 dddot
16398 \end_layout
16399
16400 \begin_layout List
16401 \labelwidthstring 00.00.0000
16402
16403 \family sans
16404 C-quoteleft
16405 \family default
16406  
16407 \family typewriter
16408 accent-grave
16409 \family default
16410  -- grave accent à (text mode only, use 
16411 \family typewriter
16412
16413 \backslash
16414 grave
16415 \family default
16416  for math)
16417 \end_layout
16418
16419 \begin_layout List
16420 \labelwidthstring 00.00.0000
16421
16422 \family sans
16423 S-C-asciitilde
16424 \family default
16425  
16426 \family typewriter
16427 accent-tilde
16428 \family default
16429  -- tilde accent ã (text mode only, use 
16430 \family typewriter
16431
16432 \backslash
16433 tilde
16434 \family default
16435  for math)
16436 \end_layout
16437
16438 \begin_layout List
16439 \labelwidthstring 00.00.0000
16440
16441 \family sans
16442 C-apostrophe
16443 \family default
16444  
16445 \family typewriter
16446 accent-acute
16447 \family default
16448  -- acute accent á (text mode only, use 
16449 \family typewriter
16450
16451 \backslash
16452 acute
16453 \family default
16454  for math)
16455 \end_layout
16456
16457 \begin_layout List
16458 \labelwidthstring 00.00.0000
16459
16460 \family sans
16461 S-C-asciicircum
16462 \family default
16463  
16464 \family typewriter
16465 accent-circumflex
16466 \family default
16467  -- circumflex (caret) accent â (text mode only, use 
16468 \family typewriter
16469
16470 \backslash
16471 hat
16472 \family default
16473  for math).
16474 \end_layout
16475
16476 \begin_layout Standard
16477 Function keys.
16478  The new key S-F2 for creating a LaTeX file seems handy.
16479 \end_layout
16480
16481 \begin_layout List
16482 \labelwidthstring 00.00.0000
16483
16484 \family sans
16485 F2
16486 \family default
16487  
16488 \family typewriter
16489 buffer-write
16490 \family default
16491  -- Save current document.
16492 \end_layout
16493
16494 \begin_layout List
16495 \labelwidthstring 00.00.0000
16496
16497 \family sans
16498 S-F2
16499 \family default
16500  
16501 \family typewriter
16502 buffer-export latex
16503 \family default
16504  -- Write a LaTeX file for the current document.
16505 \end_layout
16506
16507 \begin_layout List
16508 \labelwidthstring 00.00.0000
16509
16510 \family sans
16511 F3
16512 \family default
16513  
16514 \family typewriter
16515 find-replace
16516 \family default
16517  -- Find and replace dialog.
16518 \end_layout
16519
16520 \begin_layout List
16521 \labelwidthstring 00.00.0000
16522
16523 \family sans
16524 C-F4
16525 \family default
16526  
16527 \family typewriter
16528 buffer-close
16529 \family default
16530  -- same as 
16531 \family typewriter
16532 C-w
16533 \family default
16534 .
16535 \end_layout
16536
16537 \begin_layout List
16538 \labelwidthstring 00.00.0000
16539
16540 \family sans
16541 M-F4
16542 \family default
16543  
16544 \family typewriter
16545 lyx-quit
16546 \family default
16547  -- 
16548 \family typewriter
16549 Alt-F4
16550 \family default
16551  to quit LyX is the W*ndows w*ndow manager's mnemonic.
16552 \end_layout
16553
16554 \begin_layout Standard
16555
16556 \family typewriter
16557 F4
16558 \family default
16559  to 
16560 \family typewriter
16561 F8
16562 \family default
16563  are used to switch fonts.
16564  Use 
16565 \family typewriter
16566 F4
16567 \family default
16568  to switch back to the normal font.
16569  The non-default font switches 
16570 \family typewriter
16571 F5
16572 \family default
16573  - 
16574 \family typewriter
16575 F8
16576 \family default
16577  all work as toggles.
16578  They also work on the whole word if you put the cursor in the middle of
16579  the word, or if you select some text.
16580 \end_layout
16581
16582 \begin_layout List
16583 \labelwidthstring 00.00.0000
16584
16585 \family sans
16586 F4
16587 \family default
16588  
16589 \family typewriter
16590 font-default
16591 \family default
16592  -- stop using any special font
16593 \end_layout
16594
16595 \begin_layout List
16596 \labelwidthstring 00.00.0000
16597
16598 \family sans
16599 F5
16600 \family default
16601  
16602 \family typewriter
16603 font-bold
16604 \family default
16605  -- make 
16606 \series bold
16607 bold
16608 \series default
16609  text.
16610 \end_layout
16611
16612 \begin_layout List
16613 \labelwidthstring 00.00.0000
16614
16615 \family sans
16616 F6
16617 \family default
16618  
16619 \family typewriter
16620 font-emph
16621 \family default
16622  -- make 
16623 \emph on
16624 emphasized
16625 \emph default
16626  text.
16627 \end_layout
16628
16629 \begin_layout List
16630 \labelwidthstring 00.00.0000
16631
16632 \family sans
16633 F7
16634 \family default
16635  
16636 \family typewriter
16637 font-code
16638 \family default
16639  -- make 
16640 \family typewriter
16641 typewritten
16642 \family default
16643  text.
16644 \end_layout
16645
16646 \begin_layout List
16647 \labelwidthstring 00.00.0000
16648
16649 \family sans
16650 F8
16651 \family default
16652  
16653 \family typewriter
16654 font-noun
16655 \family default
16656  -- make 
16657 \noun on
16658 Caps/small caps
16659 \noun default
16660  text.
16661  (Used sometimes for people's names.)
16662 \end_layout
16663
16664 \begin_layout Standard
16665
16666 \family typewriter
16667 F9
16668 \family default
16669  is bound as 
16670 \begin_inset Quotes eld
16671 \end_inset
16672
16673 meta-prefix
16674 \begin_inset Quotes erd
16675 \end_inset
16676
16677 , same as the 
16678 \family typewriter
16679 Alt
16680 \family default
16681  key (useful e.g.\InsetSpace ~
16682 if the keyboard has no working 
16683 \family typewriter
16684 Alt
16685 \family default
16686 ).
16687 \end_layout
16688
16689 \begin_layout Standard
16690 Here are some Sciword-inspired mnemonics for frequently used math symbols.
16691  Many symbols start with a 
16692 \family typewriter
16693 C-s
16694 \family default
16695  sequence.
16696  Therefore 
16697 \family typewriter
16698 C-s
16699 \family default
16700  cannot be itself bound to anything.
16701 \end_layout
16702
16703 \begin_layout List
16704 \labelwidthstring 00.00.0000
16705
16706 \family sans
16707 M-apostrophe
16708 \family default
16709  
16710 \family typewriter
16711 math-insert 
16712 \backslash
16713 prime
16714 \family default
16715  -- The 
16716 \begin_inset Quotes eld
16717 \end_inset
16718
16719 prime
16720 \begin_inset Quotes erd
16721 \end_inset
16722
16723  symbol 
16724 \begin_inset Formula $\prime$
16725 \end_inset
16726
16727  in math mode.
16728  This is frequently unnecessary: in most cases the normal apostrophe works
16729  just fine, e.g.
16730  
16731 \begin_inset Formula $x'+2x=0$
16732 \end_inset
16733
16734 , but in some cases this would generate a double superscript error in LaTeX.
16735  For example: 
16736 \begin_inset Formula $x^{\prime2}$
16737 \end_inset
16738
16739  (
16740 \begin_inset Formula $x$
16741 \end_inset
16742
16743  prime squared) must be entered with the prime character.
16744 \end_layout
16745
16746 \begin_layout List
16747 \labelwidthstring 00.00.0000
16748
16749 \family sans
16750 C-s\InsetSpace ~
16751 apostrophe
16752 \family default
16753  
16754 \family typewriter
16755 command-sequence math-superscript; math-insert 
16756 \backslash
16757 prime;
16758 \family default
16759  -- Insert a prime as a superscript (see example above).
16760 \end_layout
16761
16762 \begin_layout List
16763 \labelwidthstring 00.00.0000
16764
16765 \family sans
16766 C-Up
16767 \family default
16768  
16769 \family typewriter
16770 math-insert ^
16771 \family default
16772  -- Insert an upper index.
16773  Also, 
16774 \family typewriter
16775
16776 \end_layout
16777
16778 \begin_layout List
16779 \labelwidthstring 00.00.0000
16780
16781 \family sans
16782 C-Down
16783 \family default
16784  
16785 \family typewriter
16786 math-insert _
16787 \family default
16788  -- Insert a lower index.
16789  Also, 
16790 \family typewriter
16791 _
16792 \end_layout
16793
16794 \begin_layout List
16795 \labelwidthstring 00.00.0000
16796
16797 \family sans
16798 C-s\InsetSpace ~
16799 d
16800 \family default
16801  
16802 \family typewriter
16803 math-insert 
16804 \backslash
16805 partial
16806 \family default
16807  -- Partial derivative symbol 
16808 \begin_inset Formula $\partial$
16809 \end_inset
16810
16811 .
16812 \end_layout
16813
16814 \begin_layout List
16815 \labelwidthstring 00.00.0000
16816
16817 \family sans
16818 C-s\InsetSpace ~
16819 e
16820 \family default
16821  
16822 \family typewriter
16823 math-insert 
16824 \backslash
16825 sum
16826 \family default
16827  -- Summation symbol 
16828 \begin_inset Formula $\sum$
16829 \end_inset
16830
16831  (not the same as the Greek letter uppercase Sigma 
16832 \begin_inset Formula $\Sigma$
16833 \end_inset
16834
16835  because it can resize and allows smart upper/lower limits).
16836 \end_layout
16837
16838 \begin_layout List
16839 \labelwidthstring 00.00.0000
16840
16841 \family sans
16842 C-s\InsetSpace ~
16843 p
16844 \family default
16845  
16846 \family typewriter
16847 math-insert 
16848 \backslash
16849 prod
16850 \family default
16851  -- Product symbol 
16852 \begin_inset Formula $\prod$
16853 \end_inset
16854
16855  (not the same as the Greek letter uppercase Pi, 
16856 \begin_inset Formula $\Pi$
16857 \end_inset
16858
16859 ).
16860 \end_layout
16861
16862 \begin_layout List
16863 \labelwidthstring 00.00.0000
16864
16865 \family sans
16866 C-s\InsetSpace ~
16867 i
16868 \family default
16869  
16870 \family typewriter
16871 math-insert 
16872 \backslash
16873 infty
16874 \family default
16875  -- Infinity 
16876 \begin_inset Formula $\infty$
16877 \end_inset
16878
16879 .
16880 \end_layout
16881
16882 \begin_layout List
16883 \labelwidthstring 00.00.0000
16884
16885 \family sans
16886 C-s\InsetSpace ~
16887 x
16888 \family default
16889  
16890 \family typewriter
16891 math-insert 
16892 \backslash
16893 times
16894 \family default
16895  -- Cross product 
16896 \begin_inset Formula $\times$
16897 \end_inset
16898
16899 .
16900 \end_layout
16901
16902 \begin_layout List
16903 \labelwidthstring 00.00.0000
16904
16905 \family sans
16906 C-s\InsetSpace ~
16907 v
16908 \family default
16909  
16910 \family typewriter
16911 math-matrix 1 2
16912 \family default
16913  -- Insert a stacked array 
16914 \begin_inset Formula $\begin{array}{c}
16915 \begin{array}{c}
16916 \end{array}\end{array}$
16917 \end_inset
16918
16919 .
16920  (Frequently useful in formulae.)
16921 \end_layout
16922
16923 \begin_layout List
16924 \labelwidthstring 00.00.0000
16925
16926 \family sans
16927 C-s\InsetSpace ~
16928 m
16929 \family default
16930  
16931 \family typewriter
16932 math-matrix 3 3
16933 \family default
16934  -- Insert a 3
16935 \begin_inset Formula $\times$
16936 \end_inset
16937
16938 3 matrix 
16939 \begin_inset Formula $\begin{array}{ccc}
16940 \\\\\end{array}$
16941 \end_inset
16942
16943 .
16944  (Then you can modify its size using the 
16945 \family sans
16946 Edit\SpecialChar \menuseparator
16947 Math
16948 \family default
16949  menu.)
16950 \end_layout
16951
16952 \begin_layout List
16953 \labelwidthstring 00.00.0000
16954
16955 \family sans
16956 C-s\InsetSpace ~
16957 S-plus
16958 \family default
16959  
16960 \family typewriter
16961 math-insert 
16962 \backslash
16963 dagger
16964 \family default
16965  -- The 
16966 \begin_inset Quotes eld
16967 \end_inset
16968
16969 dagger
16970 \begin_inset Quotes erd
16971 \end_inset
16972
16973  
16974 \begin_inset Formula $\dagger$
16975 \end_inset
16976
16977 .
16978 \end_layout
16979
16980 \begin_layout List
16981 \labelwidthstring 00.00.0000
16982
16983 \family sans
16984 C-s\InsetSpace ~
16985 equal
16986 \family default
16987  
16988 \family typewriter
16989 math-insert 
16990 \backslash
16991 equiv
16992 \family default
16993  -- 
16994 \begin_inset Quotes eld
16995 \end_inset
16996
16997 Identical equality
16998 \begin_inset Quotes erd
16999 \end_inset
17000
17001  
17002 \begin_inset Formula $\equiv$
17003 \end_inset
17004
17005 .
17006 \end_layout
17007
17008 \begin_layout List
17009 \labelwidthstring 00.00.0000
17010
17011 \family sans
17012 M-equal
17013 \family default
17014  
17015 \family typewriter
17016 math-insert 
17017 \backslash
17018 approx
17019 \family default
17020  -- 
17021 \begin_inset Quotes eld
17022 \end_inset
17023
17024 Approximate equality
17025 \begin_inset Quotes erd
17026 \end_inset
17027
17028  
17029 \begin_inset Formula $\approx$
17030 \end_inset
17031
17032 .
17033 \end_layout
17034
17035 \begin_layout List
17036 \labelwidthstring 00.00.0000
17037
17038 \family sans
17039 M-minus
17040 \family default
17041  
17042 \family typewriter
17043 math-insert 
17044 \backslash
17045 sim
17046 \family default
17047  -- The 
17048 \begin_inset Quotes eld
17049 \end_inset
17050
17051 of order
17052 \begin_inset Quotes erd
17053 \end_inset
17054
17055  sign 
17056 \begin_inset Formula $\sim$
17057 \end_inset
17058
17059 .
17060 \end_layout
17061
17062 \begin_layout List
17063 \labelwidthstring 00.00.0000
17064
17065 \family sans
17066 C-minus
17067 \family default
17068  
17069 \family typewriter
17070 math-insert 
17071 \backslash
17072 rightarrow
17073 \family default
17074  -- The arrow 
17075 \begin_inset Formula $\rightarrow$
17076 \end_inset
17077
17078  as in 
17079 \begin_inset Formula $\lim_{x\rightarrow0}$
17080 \end_inset
17081
17082 .
17083 \end_layout
17084
17085 \begin_layout List
17086 \labelwidthstring 00.00.0000
17087
17088 \family sans
17089 S-M-less
17090 \family default
17091  
17092 \family typewriter
17093 math-insert 
17094 \backslash
17095 leq
17096 \family default
17097  -- Less-or-equal 
17098 \begin_inset Formula $\leq$
17099 \end_inset
17100
17101 .
17102 \end_layout
17103
17104 \begin_layout List
17105 \labelwidthstring 00.00.0000
17106
17107 \family sans
17108 S-M-greater
17109 \family default
17110  
17111 \family typewriter
17112 math-insert 
17113 \backslash
17114 geq
17115 \family default
17116  -- Greater-or-equal 
17117 \begin_inset Formula $\geq$
17118 \end_inset
17119
17120 .
17121 \end_layout
17122
17123 \begin_layout List
17124 \labelwidthstring 00.00.0000
17125
17126 \family sans
17127 C-s\InsetSpace ~
17128 S-less
17129 \family default
17130  
17131 \family typewriter
17132 math-insert 
17133 \backslash
17134 ll
17135 \family default
17136  -- 
17137 \begin_inset Quotes eld
17138 \end_inset
17139
17140 Much less than
17141 \begin_inset Quotes erd
17142 \end_inset
17143
17144  
17145 \begin_inset Formula $\ll$
17146 \end_inset
17147
17148  (useful in physics)
17149 \end_layout
17150
17151 \begin_layout List
17152 \labelwidthstring 00.00.0000
17153
17154 \family sans
17155 C-s\InsetSpace ~
17156 S-greater
17157 \family default
17158  
17159 \family typewriter
17160 math-insert 
17161 \backslash
17162 gg
17163 \family default
17164  -- 
17165 \begin_inset Quotes eld
17166 \end_inset
17167
17168 Much greater than
17169 \begin_inset Quotes erd
17170 \end_inset
17171
17172  sign 
17173 \begin_inset Formula $\gg$
17174 \end_inset
17175
17176 .
17177 \end_layout
17178
17179 \begin_layout Subsection
17180 Standard math bindings
17181 \end_layout
17182
17183 \begin_layout List
17184 \labelwidthstring 00.00.0000
17185
17186 \family sans
17187 M-m\InsetSpace ~
17188 b
17189 \family default
17190  
17191 \family typewriter
17192 math-insert 
17193 \backslash
17194 overline
17195 \end_layout
17196
17197 \begin_layout List
17198 \labelwidthstring 00.00.0000
17199
17200 \family sans
17201 M-m\InsetSpace ~
17202 d
17203 \family default
17204  
17205 \family typewriter
17206 math-display
17207 \end_layout
17208
17209 \begin_layout List
17210 \labelwidthstring 00.00.0000
17211
17212 \family sans
17213 M-m\InsetSpace ~
17214 e
17215 \family default
17216  
17217 \family typewriter
17218 math-insert ^
17219 \end_layout
17220
17221 \begin_layout List
17222 \labelwidthstring 00.00.0000
17223
17224 \family sans
17225 M-m\InsetSpace ~
17226 f
17227 \family default
17228  
17229 \family typewriter
17230 math-insert 
17231 \backslash
17232 frac
17233 \end_layout
17234
17235 \begin_layout List
17236 \labelwidthstring 00.00.0000
17237
17238 \family sans
17239 M-m\InsetSpace ~
17240 g
17241 \family default
17242  
17243 \family typewriter
17244 math-greek
17245 \end_layout
17246
17247 \begin_layout List
17248 \labelwidthstring 00.00.0000
17249
17250 \family sans
17251 M-m\InsetSpace ~
17252 h
17253 \family default
17254  
17255 \family typewriter
17256 accent-circumflex
17257 \end_layout
17258
17259 \begin_layout List
17260 \labelwidthstring 00.00.0000
17261
17262 \family sans
17263 M-m\InsetSpace ~
17264 i
17265 \family default
17266  
17267 \family typewriter
17268 math-insert 
17269 \backslash
17270 int
17271 \end_layout
17272
17273 \begin_layout List
17274 \labelwidthstring 00.00.0000
17275
17276 \family sans
17277 M-m\InsetSpace ~
17278 l
17279 \family default
17280  
17281 \family typewriter
17282 math-limits
17283 \end_layout
17284
17285 \begin_layout List
17286 \labelwidthstring 00.00.0000
17287
17288 \family sans
17289 M-m\InsetSpace ~
17290 m
17291 \family default
17292  
17293 \family typewriter
17294 math-mode
17295 \end_layout
17296
17297 \begin_layout List
17298 \labelwidthstring 00.00.0000
17299
17300 \family sans
17301 M-m\InsetSpace ~
17302 n
17303 \family default
17304  
17305 \family typewriter
17306 math-number
17307 \end_layout
17308
17309 \begin_layout List
17310 \labelwidthstring 00.00.0000
17311
17312 \family sans
17313 M-m\InsetSpace ~
17314 o
17315 \family default
17316  
17317 \family typewriter
17318 math-insert 
17319 \backslash
17320 oint
17321 \end_layout
17322
17323 \begin_layout List
17324 \labelwidthstring 00.00.0000
17325
17326 \family sans
17327 M-m\InsetSpace ~
17328 p
17329 \family default
17330  
17331 \family typewriter
17332 math-insert 
17333 \backslash
17334 partial
17335 \end_layout
17336
17337 \begin_layout List
17338 \labelwidthstring 00.00.0000
17339
17340 \family sans
17341 M-m\InsetSpace ~
17342 r
17343 \family default
17344  
17345 \family typewriter
17346 math-insert 
17347 \backslash
17348 sqrt
17349 \end_layout
17350
17351 \begin_layout List
17352 \labelwidthstring 00.00.0000
17353
17354 \family sans
17355 M-m\InsetSpace ~
17356 s
17357 \family default
17358  
17359 \family typewriter
17360 math-insert 
17361 \backslash
17362 sqrt
17363 \end_layout
17364
17365 \begin_layout List
17366 \labelwidthstring 00.00.0000
17367
17368 \family sans
17369 M-m\InsetSpace ~
17370 u
17371 \family default
17372  
17373 \family typewriter
17374 math-insert 
17375 \backslash
17376 sum
17377 \end_layout
17378
17379 \begin_layout List
17380 \labelwidthstring 00.00.0000
17381
17382 \family sans
17383 M-m\InsetSpace ~
17384 v
17385 \family default
17386  
17387 \family typewriter
17388 math-insert 
17389 \backslash
17390 vec
17391 \end_layout
17392
17393 \begin_layout List
17394 \labelwidthstring 00.00.0000
17395
17396 \family sans
17397 M-m\InsetSpace ~
17398 x
17399 \family default
17400  
17401 \family typewriter
17402 math-insert _
17403 \end_layout
17404
17405 \begin_layout List
17406 \labelwidthstring 00.00.0000
17407
17408 \family sans
17409 M-m\InsetSpace ~
17410 8
17411 \family default
17412  
17413 \family typewriter
17414 math-insert 
17415 \backslash
17416 infty
17417 \end_layout
17418
17419 \begin_layout List
17420 \labelwidthstring 00.00.0000
17421
17422 \family sans
17423 M-m\InsetSpace ~
17424 S-G
17425 \family default
17426  
17427 \family typewriter
17428 math-greek-toggle
17429 \end_layout
17430
17431 \begin_layout List
17432 \labelwidthstring 00.00.0000
17433
17434 \family sans
17435 M-m\InsetSpace ~
17436 S-N
17437 \family default
17438  
17439 \family typewriter
17440 math-nonumber
17441 \end_layout
17442
17443 \begin_layout List
17444 \labelwidthstring 00.00.0000
17445
17446 \family sans
17447 M-m\InsetSpace ~
17448 S-period
17449 \family default
17450  
17451 \family typewriter
17452 accent-dot
17453 \end_layout
17454
17455 \begin_layout List
17456 \labelwidthstring 00.00.0000
17457
17458 \family sans
17459 M-m\InsetSpace ~
17460 S-asciitilde
17461 \family default
17462  
17463 \family typewriter
17464 accent-tilde
17465 \end_layout
17466
17467 \begin_layout List
17468 \labelwidthstring 00.00.0000
17469
17470 \family sans
17471 M-m\InsetSpace ~
17472 S-apostrophe
17473 \family default
17474  
17475 \family typewriter
17476 math-insert 
17477 \backslash
17478 prime
17479 \end_layout
17480
17481 \begin_layout List
17482 \labelwidthstring 00.00.0000
17483
17484 \family sans
17485 M-m\InsetSpace ~
17486 S-parenleft
17487 \family default
17488  
17489 \family typewriter
17490 math-delim ( )
17491 \end_layout
17492
17493 \begin_layout List
17494 \labelwidthstring 00.00.0000
17495
17496 \family sans
17497 M-m\InsetSpace ~
17498 S-bracketleft
17499 \family default
17500  
17501 \family typewriter
17502 math-delim [ ]
17503 \end_layout
17504
17505 \begin_layout List
17506 \labelwidthstring 00.00.0000
17507
17508 \family sans
17509 M-m\InsetSpace ~
17510 S-braceleft
17511 \family default
17512  
17513 \family typewriter
17514 math-delim { }
17515 \end_layout
17516
17517 \begin_layout List
17518 \labelwidthstring 00.00.0000
17519
17520 \family sans
17521 M-m\InsetSpace ~
17522 S-less
17523 \family default
17524  
17525 \family typewriter
17526 math-delim langle rangle
17527 \end_layout
17528
17529 \begin_layout List
17530 \labelwidthstring 00.00.0000
17531
17532 \family sans
17533 M-m\InsetSpace ~
17534 S-greater
17535 \family default
17536  
17537 \family typewriter
17538 math-delim rangle langle
17539 \end_layout
17540
17541 \begin_layout List
17542 \labelwidthstring 00.00.0000
17543
17544 \family sans
17545 M-m\InsetSpace ~
17546 S-bar
17547 \family default
17548  
17549 \family typewriter
17550 math-delim | |
17551 \end_layout
17552
17553 \begin_layout List
17554 \labelwidthstring 00.00.0000
17555
17556 \family sans
17557 M-m\InsetSpace ~
17558 S-plus
17559 \family default
17560  
17561 \family typewriter
17562 math-insert 
17563 \backslash
17564 pm
17565 \end_layout
17566
17567 \begin_layout List
17568 \labelwidthstring 00.00.0000
17569
17570 \family sans
17571 M-m\InsetSpace ~
17572 S-equal
17573 \family default
17574  
17575 \family typewriter
17576 math-insert 
17577 \backslash
17578 neq
17579 \end_layout
17580
17581 \begin_layout Subsection
17582 Other Accelerators
17583 \end_layout
17584
17585 \begin_layout List
17586 \labelwidthstring 00.00.0000
17587
17588 \family sans
17589 M-k\InsetSpace ~
17590 o
17591 \family default
17592  
17593 \family typewriter
17594 keymap-off
17595 \end_layout
17596
17597 \begin_layout List
17598 \labelwidthstring 00.00.0000
17599
17600 \family sans
17601 M-k\InsetSpace ~
17602 t
17603 \family default
17604  
17605 \family typewriter
17606 keymap-toggle
17607 \end_layout
17608
17609 \begin_layout List
17610 \labelwidthstring 00.00.0000
17611
17612 \family sans
17613 M-k\InsetSpace ~
17614 x
17615 \family default
17616  
17617 \family typewriter
17618 keymap-off
17619 \end_layout
17620
17621 \begin_layout List
17622 \labelwidthstring 00.00.0000
17623
17624 \family sans
17625 M-k\InsetSpace ~
17626 1
17627 \family default
17628  
17629 \family typewriter
17630 keymap-primary
17631 \end_layout
17632
17633 \begin_layout List
17634 \labelwidthstring 00.00.0000
17635
17636 \family sans
17637 M-k\InsetSpace ~
17638 2
17639 \family default
17640  
17641 \family typewriter
17642 keymap-secondary
17643 \end_layout
17644
17645 \end_body
17646 \end_document