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