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