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