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