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