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