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