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