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