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