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