]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
This commit changes the way individual LyXModule's are represented, both internally...
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 313
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 logicalmkup
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]{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 mandatory argument, in curly brackets, is the name of the module, as
5872  it should appear in 
5873 \family sans
5874 Document\SpecialChar \menuseparator
5875 Settings
5876 \family default
5877 .
5878  LyX uses the name to identify the module, so it should be unique.
5879 \end_layout
5880
5881 \begin_layout Standard
5882 The module declaration should then be followed by lines like the following:
5883 \end_layout
5884
5885 \begin_layout LyX-Code
5886 #DescriptionBegin 
5887 \end_layout
5888
5889 \begin_layout LyX-Code
5890 #Adds an endnote command, in addition to footnotes.
5891  
5892 \end_layout
5893
5894 \begin_layout LyX-Code
5895 #You will need to add  
5896 \backslash
5897 theendnotes in ERT where you 
5898 \end_layout
5899
5900 \begin_layout LyX-Code
5901 #want the endnotes to appear.
5902  
5903 \end_layout
5904
5905 \begin_layout LyX-Code
5906 #DescriptionEnd 
5907 \end_layout
5908
5909 \begin_layout LyX-Code
5910 #Requires: somemodule | othermodule
5911 \end_layout
5912
5913 \begin_layout LyX-Code
5914 #Excludes: badmodule
5915 \end_layout
5916
5917 \begin_layout Standard
5918 The description is used in 
5919 \family sans
5920 Document\SpecialChar \menuseparator
5921 Settings
5922 \family default
5923  to provide the user with information about what the module does.
5924  The Requires is used to identify other modules with which this one must
5925  be used; the Excludes line is used to identify modules with which this
5926  one may not be used.
5927  Both are optional, and, as shown, multiple modules should be separated
5928  with the pipe symbol: |.
5929  Note that the required modules are treated disjunctively: 
5930 \emph on
5931 at least one
5932 \emph default
5933  of the required modules must be used.
5934  Similarly, 
5935 \emph on
5936 no
5937 \emph default
5938  excluded module may be used.
5939  Note that modules are identified here by their 
5940 \emph on
5941 filenames
5942 \emph default
5943  without the .module extension.
5944  So 
5945 \begin_inset Flex CharStyle:Code
5946 status collapsed
5947
5948 \begin_layout Standard
5949 somemodule
5950 \end_layout
5951
5952 \end_inset
5953
5954  is really 
5955 \begin_inset Flex CharStyle:Code
5956 status collapsed
5957
5958 \begin_layout Standard
5959 somemodule.module
5960 \end_layout
5961
5962 \end_inset
5963
5964 .
5965 \end_layout
5966
5967 \begin_layout Standard
5968 After creating a new module, you will need to reconfigure and then restart
5969  LyX for it to appear in the menu.
5970  However, changes you make to the module will be seen immediately, if you
5971  open 
5972 \family sans
5973 Document\SpecialChar \menuseparator
5974 Settings
5975 \family default
5976 , highlight something, and then hit 
5977 \begin_inset Quotes eld
5978 \end_inset
5979
5980 OK
5981 \begin_inset Quotes erd
5982 \end_inset
5983
5984 .
5985  
5986 \emph on
5987 It is strongly recommended that you save your work before doing so
5988 \emph default
5989 .
5990  In fact, it is strongly recommended that you not attempt to edit modules
5991  while simultaneously working on documents.
5992  Though of course the developers strive to keep LyX stable in such situations,
5993  syntax errors and the like in your module file could cause strange behavior.
5994 \end_layout
5995
5996 \begin_layout Subsection
5997 Supporting new document classes
5998 \end_layout
5999
6000 \begin_layout Standard
6001 There are two situations you are likely to encounter when wanting to support
6002  a new LaTeX document class, involving LaTeX2e class (
6003 \family typewriter
6004 .cls
6005 \family default
6006 ) and style (
6007 \family typewriter
6008 .sty
6009 \family default
6010 ) files.
6011  Supporting a style file is usually fairly easy.
6012  Supporting a new document class is a bit harder.
6013 \end_layout
6014
6015 \begin_layout Subsection
6016 A layout for a 
6017 \family sans
6018 sty
6019 \family default
6020  file
6021 \end_layout
6022
6023 \begin_layout Standard
6024 If your new document class is provided as a style file that is used in conjuncti
6025 on with an existing, supported document class---for the sake of the example,
6026  we'll assume that the style file is called 
6027 \family sans
6028 myclass.sty
6029 \family default
6030  and it is meant to be used with 
6031 \family sans
6032 report.cls
6033 \family default
6034 , which is a standard class---start by copying the existing class's layout
6035  file into your local directory:
6036 \end_layout
6037
6038 \begin_layout LyX-Code
6039 cp report.layout ~/.lyx/layouts/myclass.layout
6040 \end_layout
6041
6042 \begin_layout Standard
6043 Then edit 
6044 \family typewriter
6045 myclass.layout
6046 \family default
6047  and change the line: 
6048 \end_layout
6049
6050 \begin_layout LyX-Code
6051
6052 \backslash
6053 DeclareLaTeXClass{report}
6054 \end_layout
6055
6056 \begin_layout Standard
6057 to read
6058 \end_layout
6059
6060 \begin_layout LyX-Code
6061
6062 \backslash
6063 DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
6064 \end_layout
6065
6066 \begin_layout Standard
6067 Then add:
6068 \end_layout
6069
6070 \begin_layout LyX-Code
6071 Preamble 
6072 \newline
6073     
6074 \backslash
6075 usepackage{myclass}
6076 \newline
6077 EndPreamble
6078 \end_layout
6079
6080 \begin_layout Standard
6081 near the top of the file.
6082 \end_layout
6083
6084 \begin_layout Standard
6085 Start LyX and select 
6086 \family sans
6087 \bar under
6088 T
6089 \bar default
6090 ools\SpecialChar \menuseparator
6091
6092 \bar under
6093 R
6094 \bar default
6095 econfigure
6096 \family default
6097 .
6098  Then restart LyX and try creating a new document.
6099  You should see "
6100 \family sans
6101 report (myclass)
6102 \family default
6103 " as a document class option in the 
6104 \family sans
6105 \bar under
6106 D
6107 \bar default
6108 ocument\SpecialChar \menuseparator
6109
6110 \bar under
6111 S
6112 \bar default
6113 ettings
6114 \family default
6115  dialog.
6116  It is likely that some of the sectioning commands and such in your new
6117  class will work differently from how they worked in the base class---
6118 \family typewriter
6119 report
6120 \family default
6121  in this example---so you can fiddle around with the settings for the different
6122  sections if you wish.
6123  See below for more discussion on this.
6124 \end_layout
6125
6126 \begin_layout Subsection
6127 Layout for a 
6128 \family sans
6129 cls
6130 \family default
6131  file
6132 \end_layout
6133
6134 \begin_layout Standard
6135 There are two possibilities here.
6136  One is that the class file is itself based upon an existing document class.
6137  For example, many thesis classes are based upon 
6138 \family sans
6139 book.cls
6140 \family default
6141 .
6142  To see whether yours is, look for a line like
6143 \end_layout
6144
6145 \begin_layout LyX-Code
6146
6147 \backslash
6148 LoadClass{book}
6149 \end_layout
6150
6151 \begin_layout Standard
6152 in the file.
6153  If so, then you may proceed largely as in the previous section, though
6154  the DeclareLaTeXClass line will be different.
6155  If your new class is thesis, and it is based upon book, then the line should
6156  read:
6157 \end_layout
6158
6159 \begin_layout LyX-Code
6160
6161 \backslash
6162 DeclareLaTeXClass[myclass, book]{thesis}
6163 \end_layout
6164
6165 \begin_layout Standard
6166 If, on the other hand, the new class is not based upon an existing class,
6167  you will probably have to 
6168 \begin_inset Quotes eld
6169 \end_inset
6170
6171 roll your own
6172 \begin_inset Quotes erd
6173 \end_inset
6174
6175  layout.
6176  We strongly suggest copying an existing layout file which uses a similar
6177  LaTeX class and then modifying it, if you can do so.
6178  At least use an existing file as a starting point so you can find out what
6179  items you need to worry about.
6180  Again, the specifics are covered below.
6181 \end_layout
6182
6183 \begin_layout Section
6184 Declaring a new text class
6185 \end_layout
6186
6187 \begin_layout Standard
6188 When it's finally time to get your hands dirty and create or edit your own
6189  layout file, the following sections describe what you're up against.
6190  Our advice is to go slowly, save and test often, listen to soothing music,
6191  and enjoy one or two of your favorite adult beverages; more if you are
6192  getting particularly stuck.
6193  It's really not that hard, except that the multitude of options can become
6194  overwhelming if you try to do to much in one sitting.
6195  Go have another adult beverage, just for good measure.
6196 \end_layout
6197
6198 \begin_layout Standard
6199 Here we go!
6200 \end_layout
6201
6202 \begin_layout Standard
6203 Lines in a layout file which begin with a 
6204 \family typewriter
6205 #
6206 \family default
6207  are comments.
6208  There is one exception to this rule: all layouts should begin with lines
6209  like:
6210 \end_layout
6211
6212 \begin_layout LyX-Code
6213
6214 \size small
6215 #% Do not delete the line below; configure depends on this 
6216 \end_layout
6217
6218 \begin_layout LyX-Code
6219
6220 \size small
6221 #  
6222 \backslash
6223 DeclareLaTeXClass{article}
6224 \end_layout
6225
6226 \begin_layout Standard
6227 The second line is used when you configure LyX.
6228  The layout file is read by the LaTeX script 
6229 \family typewriter
6230 chkconfig.ltx
6231 \family default
6232 , in a special mode where 
6233 \family typewriter
6234 #
6235 \family default
6236  is ignored.
6237  The first line is just a LaTeX comment, and the second one contains the
6238  declaration of the text class.
6239  If these lines appear in a file named 
6240 \family typewriter
6241 article.layout
6242 \family default
6243 , then they define a text class of name 
6244 \family typewriter
6245 article
6246 \family default
6247  (the name of the layout file) which uses the LaTeX document class 
6248 \family typewriter
6249 article.cls
6250 \family default
6251  (the default is to use the same name as the layout).
6252  The string 
6253 \begin_inset Quotes eld
6254 \end_inset
6255
6256 article
6257 \begin_inset Quotes erd
6258 \end_inset
6259
6260  that appears above is used as a description of the text class in the 
6261 \family sans
6262 \bar under
6263 D
6264 \bar default
6265 ocument\SpecialChar \menuseparator
6266
6267 \bar under
6268 S
6269 \bar default
6270 ettings
6271 \family default
6272  dialog.
6273 \end_layout
6274
6275 \begin_layout Standard
6276 Let's assume that you wrote your own text class that uses the 
6277 \family typewriter
6278 article.cls
6279 \family default
6280  documentclass, but where you changed the appearance of the section headings.
6281  If you put it in a file 
6282 \family typewriter
6283 myarticle.layout
6284 \family default
6285 , the header of this file should be:
6286 \end_layout
6287
6288 \begin_layout LyX-Code
6289
6290 \size small
6291 #% Do not delete the line below; configure depends on this 
6292 \end_layout
6293
6294 \begin_layout LyX-Code
6295
6296 \size small
6297 #  
6298 \backslash
6299 DeclareLaTeXClass[article]{article (with my own headings)}
6300 \end_layout
6301
6302 \begin_layout Standard
6303 This declares a text class 
6304 \family typewriter
6305 myarticle
6306 \family default
6307 , associated with the LaTeX document class 
6308 \family typewriter
6309 article.cls
6310 \family default
6311  and described as 
6312 \begin_inset Quotes eld
6313 \end_inset
6314
6315 article (with my own headings)
6316 \begin_inset Quotes erd
6317 \end_inset
6318
6319 .
6320  If your text class depends on several packages, you can declare it as:
6321 \end_layout
6322
6323 \begin_layout LyX-Code
6324
6325 \size small
6326 #% Do not delete the line below; configure depends on this 
6327 \end_layout
6328
6329 \begin_layout LyX-Code
6330
6331 \size small
6332 #  
6333 \backslash
6334 DeclareLaTeXClass[article,foo.sty]{article (with my own headings)}
6335 \end_layout
6336
6337 \begin_layout Standard
6338 This indicates that your text class uses the foo.sty package.
6339  Finally, it is also possible to declare classes for DocBook code.
6340  Typical declarations will look like
6341 \end_layout
6342
6343 \begin_layout LyX-Code
6344
6345 \size small
6346 #% Do not delete the line below; configure depends on this 
6347 \end_layout
6348
6349 \begin_layout LyX-Code
6350
6351 \size small
6352
6353 \backslash
6354 DeclareDocBookClass[article]{SGML (DocBook article)}
6355 \end_layout
6356
6357 \begin_layout Standard
6358 Note that these declarations can also be given an optional parameter declaring
6359  the name of the document class (but not a list).
6360 \end_layout
6361
6362 \begin_layout Standard
6363 When the text class has been modified to your taste, all you have to do
6364  is to copy it either in 
6365 \family typewriter
6366 $LyXDir/layouts/
6367 \family default
6368  or in 
6369 \family typewriter
6370 $UserDir/layouts
6371 \family default
6372  and run 
6373 \family sans
6374 \bar under
6375 T
6376 \bar default
6377 ools\SpecialChar \menuseparator
6378
6379 \bar under
6380 R
6381 \bar default
6382 econfigure
6383 \family default
6384 .
6385  Exit LyX and restart it; then your new text class should be available along
6386  with the others.
6387 \end_layout
6388
6389 \begin_layout Standard
6390 In versions of LyX prior to 1.6, you had to restart LyX to see any changes
6391  you made to your layout files.
6392  As a result, editing layout files could be very time consuming.
6393  Beginning with 1.6, however, you can force a reload of the layout currently
6394  in use by using the LyX function 
6395 \family sans
6396 layout-reload
6397 \family default
6398 .
6399  There is no default binding for this function---though, of course, you
6400  can bind it to a key yourself (see section 
6401 \begin_inset CommandInset ref
6402 LatexCommand ref
6403 reference "sec:bindings"
6404
6405 \end_inset
6406
6407 ).
6408  You should simply enter this command in the mini-buffer.
6409  
6410 \emph on
6411 Warning
6412 \emph default
6413 : This is very much an `advanced feature'.
6414  It is 
6415 \emph on
6416 strongly
6417 \emph default
6418  recommended that you save your work before using this function.
6419  In fact, it is 
6420 \emph on
6421 strongly
6422 \emph default
6423  recommended that you not attempt to edit your layout while simultaneously
6424  working on a document that you care about.
6425  Use a test document.
6426  Syntax errors and the like in your layout file could cause peculiar behavior.
6427  In particular, such errors could cause LyX to regard the current layout
6428  as invalid and to attempt to switch to some other layout.
6429  The LyX team strives to keep LyX stable in such situations, but safe is
6430  better than sorry.
6431 \end_layout
6432
6433 \begin_layout Subsection
6434 File format
6435 \end_layout
6436
6437 \begin_layout Standard
6438 The first non-comment line must contain the file format number:
6439 \end_layout
6440
6441 \begin_layout Description
6442
6443 \family typewriter
6444 \series medium
6445 Format
6446 \family default
6447 \series default
6448  [
6449 \family typewriter
6450 int
6451 \family default
6452 ] This tag was introduced with LyX 1.4.0 (layout files of LyX 1.3.x and earlier
6453  don't have an explicit file format).
6454  The file format that is documented here is 
6455 \family typewriter
6456 6
6457 \family default
6458 .
6459 \end_layout
6460
6461 \begin_layout Subsection
6462 General text class parameters
6463 \end_layout
6464
6465 \begin_layout Standard
6466 These are the general parameters which describe the form of the entire document:
6467 \end_layout
6468
6469 \begin_layout Standard
6470 \begin_inset ERT
6471 status open
6472
6473 \begin_layout Standard
6474
6475
6476 \backslash
6477 begin{sloppypar}
6478 \end_layout
6479
6480 \end_inset
6481
6482
6483 \end_layout
6484
6485 \begin_layout Description
6486
6487 \family typewriter
6488 \series medium
6489 Columns
6490 \family default
6491 \series default
6492  [
6493 \family typewriter
6494 \emph on
6495 1
6496 \emph default
6497 , 2
6498 \family default
6499 ] Whether the class-default should have one or two columns.
6500  Can be changed in the 
6501 \family sans
6502 \bar under
6503 D
6504 \bar default
6505 ocument\SpecialChar \menuseparator
6506
6507 \bar under
6508 S
6509 \bar default
6510 ettings
6511 \family default
6512  dialog.
6513  This setting (same goes for 
6514 \family typewriter
6515 Sides
6516 \family default
6517 , too) is important: if your text class has two columns by default but you
6518  forget to set it correctly, the 
6519 \family typewriter
6520 twocolumn
6521 \family default
6522  LaTeX option will 
6523 \emph on
6524 not
6525 \emph default
6526  be output when you select 
6527 \family sans
6528 Two columns
6529 \family default
6530  in 
6531 \family sans
6532 \bar under
6533 D
6534 \bar default
6535 ocument\SpecialChar \menuseparator
6536
6537 \bar under
6538 S
6539 \bar default
6540 ettings.
6541 \end_layout
6542
6543 \begin_layout Description
6544
6545 \family typewriter
6546 \series medium
6547 Sides
6548 \family default
6549 \series default
6550  [
6551 \family typewriter
6552 \emph on
6553 1
6554 \emph default
6555 , 2
6556 \family default
6557 ] Whether the class-default should be printing on one or both sides of the
6558  paper.
6559  Can be changed in the 
6560 \family sans
6561 \bar under
6562 D
6563 \bar default
6564 ocument\SpecialChar \menuseparator
6565
6566 \bar under
6567 S
6568 \bar default
6569 ettings
6570 \family default
6571  dialog.
6572 \end_layout
6573
6574 \begin_layout Description
6575
6576 \family typewriter
6577 \series medium
6578 PageStyle
6579 \family default
6580 \series default
6581  [
6582 \family typewriter
6583 \emph on
6584 plain
6585 \emph default
6586 , empty, headings
6587 \family default
6588 ] The class default pagestyle.
6589  Can be changed in the 
6590 \family sans
6591 \bar under
6592 D
6593 \bar default
6594 ocument\SpecialChar \menuseparator
6595
6596 \bar under
6597 S
6598 \bar default
6599 ettings
6600 \family default
6601  dialog.
6602 \end_layout
6603
6604 \begin_layout Description
6605
6606 \family typewriter
6607 \series medium
6608 ClassOptions\SpecialChar \ldots{}
6609 End
6610 \family default
6611 \series default
6612  This section describes various global options supported by the document
6613  class.
6614  See Section\InsetSpace ~
6615
6616 \begin_inset CommandInset ref
6617 LatexCommand ref
6618 reference "sec:classoptions"
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 Provides 
6630 \family default
6631 \series default
6632 [
6633 \family typewriter
6634 string
6635 \family default
6636 ] [
6637 \family typewriter
6638 \emph on
6639 0
6640 \emph default
6641 , 1
6642 \family default
6643 ] Whether the class already provides the feature
6644 \family typewriter
6645  string
6646 \family default
6647 .
6648  A feature is in general the name of a package (amsmath, makeidx, \SpecialChar \ldots{}
6649 ) or a
6650  macro (url, boldsymbol,\SpecialChar \ldots{}
6651 ); the complete list of supported features is unfortunat
6652 ely not documented.
6653 \end_layout
6654
6655 \begin_layout Description
6656
6657 \family typewriter
6658 \series medium
6659 Requires 
6660 \family default
6661 \series default
6662 [
6663 \family typewriter
6664 string
6665 \family default
6666 ] Whether the class requires the feature
6667 \family typewriter
6668  string
6669 \family default
6670 .
6671  A feature is in general the name of a package (amsmath, makeidx, \SpecialChar \ldots{}
6672 ) or a
6673  macro (url, boldsymbol,\SpecialChar \ldots{}
6674 ).
6675  Multiple features must be separated by commas.
6676  Note that you can only request supported features; unfortunately, the complete
6677  list of supported features is not documented (however, 
6678 \family sans
6679 \bar under
6680 H
6681 \bar default
6682 elp\SpecialChar \menuseparator
6683
6684 \bar under
6685 L
6686 \bar default
6687 aTeX Configuration
6688 \family default
6689  gives an overview of the supported packages).
6690 \end_layout
6691
6692 \begin_layout Description
6693
6694 \family typewriter
6695 \series medium
6696 DefaultFont
6697 \family default
6698 \series default
6699  This is used to describe the default font of the document.
6700  See Section\InsetSpace ~
6701
6702 \begin_inset CommandInset ref
6703 LatexCommand ref
6704 reference "sec:fonts"
6705
6706 \end_inset
6707
6708  for a description.
6709 \end_layout
6710
6711 \begin_layout Description
6712
6713 \family typewriter
6714 \series medium
6715 DefaultStyle
6716 \family default
6717 \series default
6718  [
6719 \family typewriter
6720 string
6721 \family default
6722 ] This is the style that will be assigned to new paragraphs, usually 
6723 \family sans
6724 Standard
6725 \family default
6726 .
6727  This will default to the first defined style if not given, but you are
6728  highly encouraged to use this directive.
6729 \end_layout
6730
6731 \begin_layout Description
6732
6733 \family typewriter
6734 \series medium
6735 TitleLatexType
6736 \family default
6737 \series default
6738  [
6739 \family typewriter
6740 \emph on
6741 CommandAfter
6742 \family default
6743 \emph default
6744
6745 \family typewriter
6746 Environment
6747 \family default
6748 ] Indicates what kind of markup is used to define the title of a document.
6749  
6750 \family typewriter
6751 CommandAfter
6752 \family default
6753  means that the macro with name 
6754 \family typewriter
6755 TitleLatexName
6756 \family default
6757  will be inserted after the last layout which has 
6758 \begin_inset Quotes eld
6759 \end_inset
6760
6761
6762 \family typewriter
6763 InTitle 1
6764 \family default
6765
6766 \begin_inset Quotes erd
6767 \end_inset
6768
6769 .
6770  
6771 \family typewriter
6772 Environment
6773 \family default
6774  corresponds to the case where the block of paragraphs which have 
6775 \begin_inset Quotes eld
6776 \end_inset
6777
6778
6779 \family typewriter
6780 InTitle 1
6781 \family default
6782
6783 \begin_inset Quotes erd
6784 \end_inset
6785
6786  should be enclosed into the 
6787 \family typewriter
6788 TitleLatexName
6789 \family default
6790  environment
6791 \family typewriter
6792 .
6793 \end_layout
6794
6795 \begin_layout Description
6796
6797 \family typewriter
6798 \series medium
6799 TitleLatexName
6800 \family default
6801 \series default
6802  [
6803 \family typewriter
6804 string="maketitle"
6805 \family default
6806 ] The name of the command/environment mentionned above.
6807 \end_layout
6808
6809 \begin_layout Description
6810
6811 \family typewriter
6812 \series medium
6813 Preamble\SpecialChar \ldots{}
6814 EndPreamble
6815 \family default
6816 \series default
6817  A set of macro definitions that will be output at the beginning of the
6818  LaTeX files.
6819  Use this for global definitions.
6820 \end_layout
6821
6822 \begin_layout Description
6823
6824 \family typewriter
6825 \series medium
6826 Input
6827 \family default
6828 \series default
6829  As its name implies, this command allows you to include another layout
6830  definition file within yours to avoid duplicating commands.
6831  Common examples are the standard layout files, for example, 
6832 \family typewriter
6833 stdclass.inc
6834 \family default
6835 , which contains most of the basic layouts.
6836 \end_layout
6837
6838 \begin_layout Description
6839
6840 \family typewriter
6841 \series medium
6842 Style\SpecialChar \ldots{}
6843 End
6844 \family default
6845 \series default
6846  This sequence defines a new style.
6847  If the style already exists, it will redefine some of its parameters instead.
6848  See Section\InsetSpace ~
6849
6850 \begin_inset CommandInset ref
6851 LatexCommand ref
6852 reference "sec:style"
6853
6854 \end_inset
6855
6856  for details.
6857 \end_layout
6858
6859 \begin_layout Description
6860
6861 \family typewriter
6862 \series medium
6863 NoStyle
6864 \family default
6865 \series default
6866  This command deletes an existing style.
6867  This is particularly useful when you want to suppress a style that has
6868  be defined in an input file.
6869 \end_layout
6870
6871 \begin_layout Description
6872
6873 \family typewriter
6874 \series medium
6875 Float\SpecialChar \ldots{}
6876 End
6877 \family default
6878 \series default
6879  This sequence defines a new float.
6880  See Section\InsetSpace ~
6881
6882 \begin_inset CommandInset ref
6883 LatexCommand ref
6884 reference "sec:floats"
6885
6886 \end_inset
6887
6888  for details.
6889 \end_layout
6890
6891 \begin_layout Description
6892
6893 \family typewriter
6894 \series medium
6895 NoFloat
6896 \family default
6897 \series default
6898  This command deletes an existing float.
6899  This is particularly useful when you want to suppress a float that has
6900  be defined in an input file.
6901 \end_layout
6902
6903 \begin_layout Description
6904
6905 \family typewriter
6906 \series medium
6907 InsetLayout\SpecialChar \ldots{}
6908 End
6909 \family default
6910 \series default
6911  This section (re-)defines the layout of an inset.
6912  It can be applied to an existing inset of to a new, user-defined inset,
6913  e.g., a new character style.
6914  See Section\InsetSpace ~
6915
6916 \begin_inset CommandInset ref
6917 LatexCommand ref
6918 reference "sec:charstyle"
6919
6920 \end_inset
6921
6922  for a description.
6923 \end_layout
6924
6925 \begin_layout Description
6926
6927 \family typewriter
6928 \series medium
6929 Counter\SpecialChar \ldots{}
6930 End
6931 \family default
6932 \series default
6933  This sequence defines a new counter.
6934  See Section\InsetSpace ~
6935
6936 \begin_inset CommandInset ref
6937 LatexCommand ref
6938 reference "sec:counter"
6939
6940 \end_inset
6941
6942  for details.
6943 \end_layout
6944
6945 \begin_layout Standard
6946 \begin_inset ERT
6947 status open
6948
6949 \begin_layout Standard
6950
6951
6952 \backslash
6953 end{sloppypar}
6954 \end_layout
6955
6956 \end_inset
6957
6958
6959 \end_layout
6960
6961 \begin_layout Subsection
6962
6963 \family typewriter
6964 ClassOptions
6965 \family default
6966  section
6967 \end_layout
6968
6969 \begin_layout Standard
6970 \begin_inset CommandInset label
6971 LatexCommand label
6972 name "sec:classoptions"
6973
6974 \end_inset
6975
6976 The 
6977 \family typewriter
6978 ClassOptions
6979 \family default
6980  section can contain the following entries:
6981 \end_layout
6982
6983 \begin_layout Description
6984
6985 \family typewriter
6986 \series medium
6987 FontSize
6988 \family default
6989 \series default
6990  [
6991 \family typewriter
6992 string="10|11|12"
6993 \family default
6994 ] The list of available font sizes for the document's main font, separated
6995  by 
6996 \begin_inset Quotes eld
6997 \end_inset
6998
6999
7000 \family typewriter
7001 |
7002 \family default
7003
7004 \begin_inset Quotes erd
7005 \end_inset
7006
7007 .
7008 \end_layout
7009
7010 \begin_layout Description
7011
7012 \family typewriter
7013 \series medium
7014 PageStyle
7015 \family default
7016 \series default
7017  [
7018 \family typewriter
7019 string="empty|plain|headings|fancy"
7020 \family default
7021 ] The list of available page styles, separated by 
7022 \begin_inset Quotes eld
7023 \end_inset
7024
7025
7026 \family typewriter
7027 |
7028 \family default
7029
7030 \begin_inset Quotes erd
7031 \end_inset
7032
7033 .
7034 \end_layout
7035
7036 \begin_layout Description
7037
7038 \family typewriter
7039 \series medium
7040 Other
7041 \family default
7042 \series default
7043  [
7044 \family typewriter
7045 string=""
7046 \family default
7047 ] Some document class options, separated by a comma, that will be added
7048  to the optional part of the 
7049 \family typewriter
7050
7051 \backslash
7052 documentclass
7053 \family default
7054  command.
7055 \end_layout
7056
7057 \begin_layout Subsection
7058 Specific Paragraph Layouts
7059 \end_layout
7060
7061 \begin_layout Standard
7062 \begin_inset CommandInset label
7063 LatexCommand label
7064 name "sec:style"
7065
7066 \end_inset
7067
7068 A paragraph layout description looks like this
7069 \begin_inset Foot
7070 status collapsed
7071
7072 \begin_layout Standard
7073 Note that this will either define a new layout or modify an existing one.
7074 \end_layout
7075
7076 \end_inset
7077
7078 :
7079 \end_layout
7080
7081 \begin_layout LyX-Code
7082 Style 
7083 \family roman
7084 \emph on
7085 name
7086 \end_layout
7087
7088 \begin_layout LyX-Code
7089  ...
7090 \end_layout
7091
7092 \begin_layout LyX-Code
7093 End
7094 \end_layout
7095
7096 \begin_layout Standard
7097 where the following commands are allowed:
7098 \end_layout
7099
7100 \begin_layout Standard
7101 \begin_inset ERT
7102 status open
7103
7104 \begin_layout Standard
7105
7106
7107 \backslash
7108 begin{sloppypar}
7109 \end_layout
7110
7111 \end_inset
7112
7113
7114 \end_layout
7115
7116 \begin_layout Description
7117
7118 \family typewriter
7119 \series medium
7120 CopyStyle
7121 \family default
7122 \series default
7123  
7124 \family typewriter
7125 [string]
7126 \family default
7127  This is used to copy all the features of an existing layout into the current
7128  one.
7129  
7130 \end_layout
7131
7132 \begin_layout Description
7133
7134 \family typewriter
7135 \series medium
7136 LatexType
7137 \family default
7138 \series default
7139  [
7140 \family typewriter
7141 \emph on
7142 Paragraph
7143 \emph default
7144 , Command, Environment, Item_Environment,
7145 \family default
7146  
7147 \family typewriter
7148 List_Environment
7149 \family default
7150 ] How the layout should be translated into LaTeX.
7151  
7152 \family typewriter
7153 Paragraph
7154 \family default
7155  means nothing special.
7156  
7157 \family typewriter
7158 Command
7159 \family default
7160  means 
7161 \family typewriter
7162
7163 \backslash
7164
7165 \emph on
7166 LatexName
7167 \emph default
7168 {\SpecialChar \ldots{}
7169 }
7170 \family default
7171  and 
7172 \family typewriter
7173 Environment
7174 \family default
7175  means 
7176 \family typewriter
7177
7178 \backslash
7179 begin{
7180 \emph on
7181 LatexName
7182 \emph default
7183 }\SpecialChar \ldots{}
7184
7185 \backslash
7186 end{
7187 \emph on
7188 LatexName
7189 \emph default
7190 }
7191 \family default
7192 .
7193  
7194 \family typewriter
7195 Item_Environment
7196 \family default
7197  is the same as 
7198 \family typewriter
7199 Environment
7200 \family default
7201 , except that a 
7202 \family typewriter
7203
7204 \backslash
7205 item
7206 \family default
7207  is generated for each paragraph of this environment.
7208  
7209 \family typewriter
7210 List_Environment
7211 \family default
7212  is the same as 
7213 \family typewriter
7214 Item_Environment
7215 \family default
7216 , except that 
7217 \family typewriter
7218 LabelWidthString
7219 \family default
7220  is passed as an argument to the environment.
7221  
7222 \family typewriter
7223 LabelWidthString
7224 \family default
7225  can be defined in the 
7226 \family sans
7227 \bar under
7228 L
7229 \bar default
7230 ayout\SpecialChar \menuseparator
7231
7232 \bar under
7233 P
7234 \bar default
7235 aragraph
7236 \family default
7237  dialog.
7238  
7239 \family typewriter
7240 \emph on
7241 LatexType
7242 \family default
7243 \emph default
7244  is perhaps a bit misleading, since these rules apply to SGML classes, too.
7245  Visit the SGML class files for specific examples.
7246 \end_layout
7247
7248 \begin_layout Description
7249
7250 \family typewriter
7251 \series medium
7252 InTitle
7253 \family default
7254 \series default
7255  
7256 \family typewriter
7257 [1, 0]
7258 \family default
7259  If 1, marks the layout as being part of a title block (see also the 
7260 \family typewriter
7261 TitleLatexType
7262 \family default
7263  and 
7264 \family typewriter
7265 TitleLatexName
7266 \family default
7267  global entries)
7268 \end_layout
7269
7270 \begin_layout Description
7271
7272 \family typewriter
7273 \series medium
7274 LatexName
7275 \family default
7276 \series default
7277  The name of the corresponding LaTeX stuff.
7278  Either the environment or command name.
7279 \end_layout
7280
7281 \begin_layout Description
7282
7283 \family typewriter
7284 \series medium
7285 LatexParam
7286 \family default
7287 \series default
7288  The optional parameter for the corresponding 
7289 \family typewriter
7290 \series medium
7291 LatexName
7292 \family default
7293 \series default
7294  stuff.
7295  This parameter cannot be changed from within LyX.
7296 \end_layout
7297
7298 \begin_layout Description
7299
7300 \family typewriter
7301 \series medium
7302 OptionalArgs
7303 \family default
7304 \series default
7305  [
7306 \family typewriter
7307 int=0
7308 \family default
7309 ] The number of optional arguments that can be used with this layout.
7310  This is useful for things like section headings, and only makes sense with
7311  LaTeX.
7312 \end_layout
7313
7314 \begin_layout Description
7315
7316 \family typewriter
7317 \series medium
7318 Margin
7319 \family default
7320 \series default
7321  [
7322 \family typewriter
7323 \emph on
7324 Static
7325 \emph default
7326 , Manual, Dynamic, First_Dynamic, Right_Address_Box
7327 \family default
7328
7329 \newline
7330 The kind of margin that the layout has on the left side.
7331  
7332 \family typewriter
7333 Static
7334 \family default
7335  just means a fixed margin.
7336  
7337 \family typewriter
7338 Manual
7339 \family default
7340  means that the left margin depends on the string entered in the 
7341 \family sans
7342 \bar under
7343 E
7344 \bar default
7345 dit\SpecialChar \menuseparator
7346
7347 \bar under
7348 P
7349 \bar default
7350 aragraph\InsetSpace ~
7351 Settings
7352 \family default
7353  dialog.
7354  This is used to typeset nice lists without tabulators.
7355  
7356 \family typewriter
7357 Dynamic
7358 \family default
7359  means that the margin depends on the size of the label.
7360  This is used for automatic enumerated headlines.
7361  It is obvious that the headline 
7362 \begin_inset Quotes eld
7363 \end_inset
7364
7365 5.4.3.2.1 Very long headline
7366 \begin_inset Quotes erd
7367 \end_inset
7368
7369  must have a wider left margin (as wide as 
7370 \begin_inset Quotes eld
7371 \end_inset
7372
7373 5.4.3.2.1
7374 \begin_inset Quotes erd
7375 \end_inset
7376
7377  plus the space) than 
7378 \begin_inset Quotes eld
7379 \end_inset
7380
7381 3.2 Very long headline
7382 \begin_inset Quotes erd
7383 \end_inset
7384
7385 , even if other word processors are not able to do this.
7386  
7387 \family typewriter
7388 First_Dynamic
7389 \family default
7390  is similar, but only the very first row of the paragraph is dynamic, while
7391  the others are static; this is used, for example, for descriptions.
7392  
7393 \family typewriter
7394 Right_Address_Box
7395 \family default
7396  means the margin is chosen in a way that the longest row of this paragraph
7397  fits to the right margin.
7398  This is used to typeset an address on the right edge of the page.
7399 \end_layout
7400
7401 \begin_layout Description
7402
7403 \family typewriter
7404 \series medium
7405 NextNoIndent
7406 \family default
7407 \series default
7408  [
7409 \family typewriter
7410 1,
7411 \family default
7412  
7413 \family typewriter
7414 \emph on
7415 0
7416 \family default
7417 \emph default
7418 ] Whether the following Paragraph is allowed to indent its very first row.
7419  
7420 \family typewriter
7421 1
7422 \family default
7423  means that it is not allowed to do so, 
7424 \family typewriter
7425 0
7426 \family default
7427  means it could do so if it wants to.
7428 \end_layout
7429
7430 \begin_layout Description
7431
7432 \family typewriter
7433 \series medium
7434 ParIndent
7435 \family default
7436 \series default
7437  [
7438 \family typewriter
7439 string=""
7440 \family default
7441 ] The indent of the very first line of a paragraph.
7442  The argument is passed as a string.
7443  For example 
7444 \family typewriter
7445 "MM"
7446 \family default
7447  means that the paragraph is indented with the width of 
7448 \family typewriter
7449 "MM"
7450 \family default
7451  in 
7452 \family typewriter
7453 the
7454 \family default
7455  normal font.
7456  You can get a negative width by prefixing the string with 
7457 \family typewriter
7458 "-"
7459 \family default
7460 .
7461  This way was chosen so that the look is the same with each used screen
7462  font.
7463  The 
7464 \family typewriter
7465 Parindent
7466 \family default
7467  will be fixed for a certain layout.
7468  The exception is Standard layout, since the indentation of a Standard layout
7469  paragraph can be prohibited with 
7470 \family typewriter
7471 NextNoIndent
7472 \family default
7473 .
7474  Also, Standard layout paragraphs inside environments use the 
7475 \family typewriter
7476 Parindent
7477 \family default
7478  of the environment, not their native one.
7479  For example, Standard paragraphs inside an enumeration are not indented.
7480 \end_layout
7481
7482 \begin_layout Description
7483
7484 \family typewriter
7485 \series medium
7486 Parskip
7487 \family default
7488 \series default
7489  [
7490 \family typewriter
7491 float=0
7492 \family default
7493 ] LyX allows to choose either 
7494 \begin_inset Quotes eld
7495 \end_inset
7496
7497 indent
7498 \begin_inset Quotes erd
7499 \end_inset
7500
7501  or 
7502 \begin_inset Quotes eld
7503 \end_inset
7504
7505 skip
7506 \begin_inset Quotes erd
7507 \end_inset
7508
7509  to typeset a document.
7510  When 
7511 \begin_inset Quotes eld
7512 \end_inset
7513
7514 indent
7515 \begin_inset Quotes erd
7516 \end_inset
7517
7518  is chosen, this value is completely ignored.
7519  When 
7520 \begin_inset Quotes eld
7521 \end_inset
7522
7523 skip
7524 \begin_inset Quotes erd
7525 \end_inset
7526
7527  is chosen, the parindent of a LaTeXtype 
7528 \begin_inset Quotes eld
7529 \end_inset
7530
7531 Paragraph
7532 \begin_inset Quotes erd
7533 \end_inset
7534
7535  layout is ignored and all paragraphs are additionally separated by this
7536  parskip argument.
7537  The vertical space is calculated with 
7538 \family typewriter
7539 value*DefaultHeight()
7540 \family default
7541  where 
7542 \family typewriter
7543 DefaultHeight()
7544 \family default
7545  is the height of a row with the normal font.
7546  This way, the look stays the same with different screen fonts.
7547 \end_layout
7548
7549 \begin_layout Description
7550
7551 \family typewriter
7552 \series medium
7553 TopSep
7554 \family default
7555 \series default
7556  [
7557 \family typewriter
7558 float=0
7559 \family default
7560 ] The vertical space with which the very first of a chain of paragraphs
7561  with this layout is separated from the previous paragraph.
7562  If the previous paragraph has another layout, the separations are not simply
7563  added, but the maximum is taken.
7564 \end_layout
7565
7566 \begin_layout Description
7567
7568 \family typewriter
7569 \series medium
7570 BottomSep
7571 \family default
7572 \series default
7573  [
7574 \family typewriter
7575 float=0
7576 \family default
7577 ] The same as 
7578 \family typewriter
7579 TopSep
7580 \family default
7581  for the very last paragraph.
7582 \end_layout
7583
7584 \begin_layout Description
7585
7586 \family typewriter
7587 \series medium
7588 Parsep
7589 \family default
7590 \series default
7591  [
7592 \family typewriter
7593 float=0
7594 \family default
7595 ] The vertical space between two paragraphs of this layout.
7596 \end_layout
7597
7598 \begin_layout Description
7599
7600 \family typewriter
7601 \series medium
7602 Itemsep
7603 \family default
7604 \series default
7605  [
7606 \family typewriter
7607 float=0
7608 \family default
7609 ] This is an extra space between the paragraphs of an environment layout.
7610  If you put other layouts into an environment, each is separated with the
7611  environment's 
7612 \family typewriter
7613 Parsep
7614 \family default
7615 .
7616  But the whole items of the environment are additionally separated with
7617  this 
7618 \family typewriter
7619 Itemsep
7620 \family default
7621 .
7622  
7623 \end_layout
7624
7625 \begin_layout Description
7626
7627 \family typewriter
7628 \series medium
7629 LeftMargin
7630 \family default
7631 \series default
7632  [
7633 \family typewriter
7634 string=""
7635 \family default
7636 ] If you put layouts into environments, the leftmargins are not simply added,
7637  but added with a factor 
7638 \begin_inset Formula $\frac{4}{depth+4}$
7639 \end_inset
7640
7641 .
7642  Note that this parameter is also used when the border is defined as 
7643 \family typewriter
7644 Manual
7645 \family default
7646  or 
7647 \family typewriter
7648 Dynamic
7649 \family default
7650 .
7651  Then it is added to the manual or dynamic border.
7652  This string has the same meaning as for 
7653 \family typewriter
7654 ParIndent
7655 \family default
7656 .
7657 \end_layout
7658
7659 \begin_layout Description
7660
7661 \family typewriter
7662 \series medium
7663 RightMargin
7664 \family default
7665 \series default
7666  [
7667 \family typewriter
7668 string=""
7669 \family default
7670 ] Similar to 
7671 \family typewriter
7672 LeftMargin
7673 \family default
7674 .
7675 \end_layout
7676
7677 \begin_layout Description
7678
7679 \family typewriter
7680 \series medium
7681 Labeltype
7682 \family default
7683 \series default
7684  [
7685 \family typewriter
7686 \emph on
7687 No_Label
7688 \emph default
7689 , Manual, Static, Top_Environment, 
7690 \newline
7691 Centered_Top_Environment, Sensitive,
7692  Counter
7693 \family default
7694
7695 \newline
7696
7697 \family typewriter
7698 Manual
7699 \family default
7700  means the label is the very first word (up to the first real blank).
7701  
7702 \family typewriter
7703 Static
7704 \family default
7705  means it is defined in the layout (see 
7706 \family typewriter
7707 LabelString
7708 \family default
7709 ).
7710  
7711 \family typewriter
7712 Top_Environment
7713 \family default
7714  and 
7715 \family typewriter
7716 Centered_Top_Environment
7717 \family default
7718  are special cases of 
7719 \family typewriter
7720 Static
7721 \family default
7722 .
7723  The label will be printed above the paragraph, but only at the top of an
7724  environment or the top of a chain of paragraphs with this layout.
7725  Usage is for example the 
7726 \family sans
7727 Abstract
7728 \family default
7729  layout or the 
7730 \family sans
7731 Bibliography
7732 \family default
7733  layout.
7734  This is also the case for 
7735 \family typewriter
7736 Manual
7737 \family default
7738  labels with latex type 
7739 \family typewriter
7740 Environment
7741 \family default
7742 , in order to make layouts for theorems work correctly.
7743  
7744 \family typewriter
7745 Sensitive
7746 \family default
7747  is a special case for the caption-labels 
7748 \begin_inset Quotes eld
7749 \end_inset
7750
7751 Figure
7752 \begin_inset Quotes erd
7753 \end_inset
7754
7755  and 
7756 \begin_inset Quotes eld
7757 \end_inset
7758
7759 Table
7760 \begin_inset Quotes erd
7761 \end_inset
7762
7763 .
7764  
7765 \family typewriter
7766 Sensitive
7767 \family default
7768  means the (hardcoded) label string depends on the kind of float.
7769  The 
7770 \family typewriter
7771 Counter
7772 \family default
7773  label type defines automatically numbered labels.
7774 \end_layout
7775
7776 \begin_layout Description
7777
7778 \family typewriter
7779 \series medium
7780 LabelCounter
7781 \family default
7782 \series default
7783  [
7784 \family typewriter
7785 string=""
7786 \family default
7787 ]
7788 \newline
7789 The name of the counter for automatic numbering (see Section\InsetSpace ~
7790
7791 \begin_inset CommandInset ref
7792 LatexCommand ref
7793 reference "sec:counter"
7794
7795 \end_inset
7796
7797  for details).
7798  This must be given if 
7799 \family typewriter
7800 \series medium
7801 Labeltype
7802 \family default
7803 \series default
7804  is 
7805 \family typewriter
7806 Counter
7807 \family default
7808 .
7809 \end_layout
7810
7811 \begin_layout Description
7812
7813 \family typewriter
7814 \series medium
7815 Labelsep
7816 \family default
7817 \series default
7818  [
7819 \family typewriter
7820 string=""
7821 \family default
7822 ] The horizontal space between the label and the text body.
7823  Only used for labels that are not above the text body.
7824 \end_layout
7825
7826 \begin_layout Description
7827
7828 \family typewriter
7829 \series medium
7830 LabelBottomsep
7831 \family default
7832 \series default
7833  [float=0] The vertical space between the label and the text body.
7834  Only used for labels that are above the text body (
7835 \family typewriter
7836 Top_Environment
7837 \family default
7838
7839 \family typewriter
7840 Centered_Top_Environment
7841 \family default
7842 ).
7843 \end_layout
7844
7845 \begin_layout Description
7846
7847 \family typewriter
7848 \series medium
7849 LabelString
7850 \family default
7851 \series default
7852  [
7853 \family typewriter
7854 string=""
7855 \family default
7856 ] The string used for a label with a 
7857 \family typewriter
7858 Static
7859 \family default
7860  labeltype.
7861  When the border is 
7862 \family typewriter
7863 Manual
7864 \family default
7865  this string is also used as a suggestion for the 
7866 \family typewriter
7867 LabelWidthString
7868 \family default
7869  that can be set in the 
7870 \family sans
7871 \bar under
7872 E
7873 \bar default
7874 dit\SpecialChar \menuseparator
7875
7876 \bar under
7877 P
7878 \bar default
7879 aragraph\InsetSpace ~
7880 Settings
7881 \family default
7882  dialog.
7883  When 
7884 \family typewriter
7885 \series medium
7886 LabelCounter
7887 \family default
7888 \series default
7889  is set, this string can be contain the special formatting commands described
7890  in Section\InsetSpace ~
7891
7892 \begin_inset CommandInset ref
7893 LatexCommand ref
7894 reference "sec:counter"
7895
7896 \end_inset
7897
7898 .
7899  For the sake of backwards compatibility, the string 
7900 \family typewriter
7901 @
7902 \emph on
7903 style-name
7904 \emph default
7905 @
7906 \family default
7907  will be replaced by the expanded 
7908 \family typewriter
7909 LabelString
7910 \family default
7911  of style 
7912 \family typewriter
7913 \emph on
7914 style-name
7915 \family default
7916 \emph default
7917 .
7918  This feature is now obsolete and should be replaced by the mechanisms of
7919  Section\InsetSpace ~
7920
7921 \begin_inset CommandInset ref
7922 LatexCommand ref
7923 reference "sec:counter"
7924
7925 \end_inset
7926
7927 .
7928 \end_layout
7929
7930 \begin_layout Description
7931
7932 \family typewriter
7933 \series medium
7934 LabelStringAppendix
7935 \family default
7936 \series default
7937  [
7938 \family typewriter
7939 string=""
7940 \family default
7941 ] This is used inside the appendix instead of 
7942 \family typewriter
7943 LabelString
7944 \family default
7945 .
7946  Note that every 
7947 \family typewriter
7948 LabelString
7949 \family default
7950  statement resets 
7951 \family typewriter
7952 \series medium
7953 LabelStringAppendix
7954 \family default
7955 \series default
7956  too
7957 \family typewriter
7958 \series medium
7959 .
7960 \end_layout
7961
7962 \begin_layout Description
7963
7964 \family typewriter
7965 \series medium
7966 TocLevel [int]
7967 \family default
7968 \series default
7969  The level of the style in the table of contents.
7970  This is used for automatic numbering of section headings.
7971 \end_layout
7972
7973 \begin_layout Description
7974
7975 \family typewriter
7976 \series medium
7977 EndLabeltype
7978 \family default
7979 \series default
7980  [
7981 \family typewriter
7982 \emph on
7983 No_Label
7984 \emph default
7985 , Box, Filled_Box, Static
7986 \family default
7987 ] The type of label that stands at the end of the paragraph (or sequence
7988  of paragraphs if 
7989 \family typewriter
7990 LatexType
7991 \family default
7992  is 
7993 \family typewriter
7994 Environment
7995 \family default
7996
7997 \family typewriter
7998 Item_Environment
7999 \family default
8000  or 
8001 \family typewriter
8002 List_Environment
8003 \family default
8004 ).
8005  
8006 \family typewriter
8007 No_Label
8008 \family default
8009  means 
8010 \begin_inset Quotes eld
8011 \end_inset
8012
8013 nothing
8014 \begin_inset Quotes erd
8015 \end_inset
8016
8017
8018 \family typewriter
8019 Box
8020 \family default
8021  (resp.
8022 \family typewriter
8023 \InsetSpace ~
8024 Filled_Box
8025 \family default
8026 ) is a white (resp.\InsetSpace ~
8027 black) square suitable for end of proof markers, 
8028 \family typewriter
8029 Static
8030 \family default
8031  is an explicit text string.
8032 \end_layout
8033
8034 \begin_layout Description
8035
8036 \family typewriter
8037 \series medium
8038 EndLabelString
8039 \family default
8040 \series default
8041  [
8042 \family typewriter
8043 string=""
8044 \family default
8045 ] The string used for a label with a 
8046 \family typewriter
8047 Static
8048 \family default
8049  
8050 \family typewriter
8051 EndLabelType
8052 \family default
8053 .
8054  
8055 \end_layout
8056
8057 \begin_layout Description
8058
8059 \family typewriter
8060 \series medium
8061 Align
8062 \family default
8063 \series default
8064  [
8065 \family typewriter
8066 \emph on
8067 block
8068 \emph default
8069 , left, right, center
8070 \family default
8071 ] Paragraph alignment.
8072 \end_layout
8073
8074 \begin_layout Description
8075
8076 \family typewriter
8077 \series medium
8078 AlignPossible
8079 \family default
8080 \series default
8081  [
8082 \family typewriter
8083 \emph on
8084 block
8085 \emph default
8086 , left, right, center
8087 \family default
8088 ] A comma separated 
8089 \emph on
8090 list
8091 \emph default
8092  of possible aligns.
8093  Some LaTeX styles prohibit certain alignments, since those wouldn't make
8094  sense.
8095  For example a right-aligned or centered enumeration isn't possible.
8096 \end_layout
8097
8098 \begin_layout Description
8099
8100 \family typewriter
8101 \series medium
8102 Fill_Top
8103 \family default
8104 \series default
8105  [
8106 \family typewriter
8107 \emph on
8108 0
8109 \emph default
8110 ,1
8111 \family default
8112 ] With this parameter the 
8113 \family sans
8114 Fill
8115 \family default
8116  value of the 
8117 \begin_inset Quotes eld
8118 \end_inset
8119
8120 Vertical space above
8121 \begin_inset Quotes erd
8122 \end_inset
8123
8124  list of the 
8125 \family sans
8126 \bar under
8127 E
8128 \bar default
8129 dit\SpecialChar \menuseparator
8130
8131 \bar under
8132 P
8133 \bar default
8134 aragraph\InsetSpace ~
8135 Settings
8136 \family default
8137  dialog can be set when initializing a paragraph with this layout
8138 \begin_inset Foot
8139 status collapsed
8140
8141 \begin_layout Standard
8142
8143 \emph on
8144 Note from Jean-Marc:
8145 \emph default
8146  I'm not sure that this setting has much use, and it should probably be
8147  removed in later versions.
8148 \end_layout
8149
8150 \end_inset
8151
8152 .
8153  
8154 \end_layout
8155
8156 \begin_layout Description
8157
8158 \family typewriter
8159 \series medium
8160 Fill_Bottom
8161 \family default
8162 \series default
8163  [
8164 \family typewriter
8165 \emph on
8166 0
8167 \emph default
8168 ,1
8169 \family default
8170 ] Similar to 
8171 \family typewriter
8172 Fill_Top
8173 \family default
8174 .
8175 \end_layout
8176
8177 \begin_layout Description
8178
8179 \family typewriter
8180 \series medium
8181 NeedProtect
8182 \family default
8183 \series default
8184  [
8185 \family typewriter
8186 \emph on
8187 0
8188 \emph default
8189 ,1
8190 \family default
8191 ] Whether fragile commands in this layout should be 
8192 \family typewriter
8193
8194 \backslash
8195 protect
8196 \family default
8197 'ed.
8198 \end_layout
8199
8200 \begin_layout Description
8201
8202 \family typewriter
8203 \series medium
8204 Newline
8205 \family default
8206 \series default
8207  [
8208 \family typewriter
8209 0,
8210 \family default
8211  
8212 \family typewriter
8213 \emph on
8214 1
8215 \family default
8216 \emph default
8217 ] Whether newlines are translated into LaTeX newlines (
8218 \family typewriter
8219
8220 \backslash
8221
8222 \backslash
8223
8224 \family default
8225 ) or not.
8226  The translation can be switched off to allow more comfortable LaTeX editing
8227  inside LyX.
8228 \end_layout
8229
8230 \begin_layout Description
8231
8232 \family typewriter
8233 \series medium
8234 PassThru
8235 \family default
8236 \series default
8237  [
8238 \family typewriter
8239 \emph on
8240 0
8241 \emph default
8242 , 1
8243 \family default
8244 ] Whether the contents of this paragraph should be output in raw form, meaning
8245  without special translations that LaTeX would require.
8246  This somehow replaces the older 
8247 \family typewriter
8248 Latex
8249 \family default
8250  font property.
8251 \end_layout
8252
8253 \begin_layout Description
8254
8255 \family typewriter
8256 \series medium
8257 FreeSpacing
8258 \family default
8259 \series default
8260  [
8261 \family typewriter
8262 \emph on
8263 0
8264 \emph default
8265 , 1
8266 \family default
8267 ] Usually LyX doesn't allow you to insert more than one space between words,
8268  since a space is considered as the separation between two words, not a
8269  character or symbol of its own.
8270  This is a very fine thing but sometimes annoying, for example when typing
8271  program code or plain LaTeX code.
8272  For this reason, 
8273 \family typewriter
8274 FreeSpacing
8275 \family default
8276  can be enabled.
8277  Note that LyX will create protected blanks for the additional blanks when
8278  in another mode than LaTeX-mode.
8279 \end_layout
8280
8281 \begin_layout Description
8282
8283 \family typewriter
8284 \series medium
8285 KeepEmpty
8286 \family default
8287 \series default
8288  [
8289 \family typewriter
8290 \emph on
8291 0
8292 \emph default
8293 , 1
8294 \family default
8295 ] Usually LyX does not allow you to leave a paragraph empty, since it would
8296  lead to empty LaTeX output.
8297  There are some cases where this could be desirable however: in a letter
8298  template, the required fields can be provided as empty fields, so that
8299  people do not forget them; in some special classes, a layout can be used
8300  as some kind of break, which does not contain actual text.
8301 \end_layout
8302
8303 \begin_layout Description
8304
8305 \family typewriter
8306 \series medium
8307 Spacing
8308 \family default
8309 \series default
8310  [
8311 \family typewriter
8312 \emph on
8313 single
8314 \emph default
8315 , onehalf, double, other
8316 \family default
8317  
8318 \emph on
8319 value
8320 \emph default
8321 ] This defines what the default spacing should be in the layout.
8322  The arguments 
8323 \family typewriter
8324 single
8325 \family default
8326
8327 \family typewriter
8328 onehalf
8329 \family default
8330  and 
8331 \family typewriter
8332 double
8333 \family default
8334  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
8335  If you specify the argument 
8336 \family typewriter
8337 other
8338 \family default
8339 , then you should also provide a numerical argument which will be the actual
8340  multiplier value.
8341  Note that, contrary to other parameters, 
8342 \family typewriter
8343 Spacing
8344 \family default
8345  implies the generation of specific LaTeX code, using the package 
8346 \family typewriter
8347 setspace.sty
8348 \family roman
8349 .
8350 \end_layout
8351
8352 \begin_layout Description
8353
8354 \family typewriter
8355 \series medium
8356 Font
8357 \family default
8358 \series default
8359  The font used for both the text body 
8360 \emph on
8361 and
8362 \emph default
8363  the label.
8364  See section\InsetSpace ~
8365
8366 \begin_inset CommandInset ref
8367 LatexCommand ref
8368 reference "sec:fonts"
8369
8370 \end_inset
8371
8372 .
8373  Note that defining this font automatically defines the 
8374 \family typewriter
8375 LabelFont
8376 \family default
8377  to the same value.
8378 \end_layout
8379
8380 \begin_layout Description
8381
8382 \family typewriter
8383 \series medium
8384 TextFont
8385 \family default
8386 \series default
8387  The font used for the text body .
8388  See section\InsetSpace ~
8389
8390 \begin_inset CommandInset ref
8391 LatexCommand ref
8392 reference "sec:fonts"
8393
8394 \end_inset
8395
8396 .
8397 \end_layout
8398
8399 \begin_layout Description
8400
8401 \family typewriter
8402 \series medium
8403 LabelFont
8404 \family default
8405 \series default
8406  The font used for the label.
8407  See section\InsetSpace ~
8408
8409 \begin_inset CommandInset ref
8410 LatexCommand ref
8411 reference "sec:fonts"
8412
8413 \end_inset
8414
8415 .
8416 \end_layout
8417
8418 \begin_layout Description
8419
8420 \family typewriter
8421 \series medium
8422 Preamble\SpecialChar \ldots{}
8423 EndPreamble
8424 \family default
8425 \series default
8426  A set of macro definitions that will be output at the beginning of the
8427  LaTeX files when the layout is used.
8428  Use this to define the macros needed by this particular layout.
8429 \end_layout
8430
8431 \begin_layout Description
8432
8433 \family typewriter
8434 \series medium
8435 Requires 
8436 \family default
8437 \series default
8438 [
8439 \family typewriter
8440 string
8441 \family default
8442 ] Whether the layout requires the feature
8443 \family typewriter
8444  string
8445 \family default
8446 .
8447  A feature is in general the name of a package (amsmath, makeidx, \SpecialChar \ldots{}
8448 ) or a
8449  macro (url, boldsymbol,\SpecialChar \ldots{}
8450 ).
8451  Multiple features must be separated by commas.
8452  Note that you can only request supported features; unfortunately, the complete
8453  list of supported features is not documented (however, 
8454 \family sans
8455 \bar under
8456 H
8457 \bar default
8458 elp\SpecialChar \menuseparator
8459
8460 \bar under
8461 L
8462 \bar default
8463 aTeX Configuration
8464 \family default
8465  gives an overview of the supported packages).
8466 \end_layout
8467
8468 \begin_layout Description
8469
8470 \family typewriter
8471 \series medium
8472 DependsOn
8473 \family default
8474 \series default
8475  the name of a style which preamble should be output 
8476 \emph on
8477 before
8478 \emph default
8479  the one mentionned above.
8480  This allows to ensure some ordering of the preamble snippets when macros
8481  definitions depend on one another
8482 \begin_inset Foot
8483 status collapsed
8484
8485 \begin_layout Standard
8486 Note that, besides that functionality, there is no way to ensure any ordering
8487  of preambles.
8488  The ordering that you see in a given version of LyX may change without
8489  warning in later versions.
8490 \end_layout
8491
8492 \end_inset
8493
8494 .
8495 \end_layout
8496
8497 \begin_layout Standard
8498 \begin_inset ERT
8499 status open
8500
8501 \begin_layout Standard
8502
8503
8504 \backslash
8505 end{sloppypar}
8506 \end_layout
8507
8508 \end_inset
8509
8510
8511 \end_layout
8512
8513 \begin_layout Subsection
8514 Floats
8515 \end_layout
8516
8517 \begin_layout Standard
8518 \begin_inset CommandInset label
8519 LatexCommand label
8520 name "sec:floats"
8521
8522 \end_inset
8523
8524 Since version 1.3.0 of LyX, it is necessary to define the floats (
8525 \family sans
8526 figure
8527 \family default
8528
8529 \family sans
8530 table
8531 \family default
8532 , \SpecialChar \ldots{}
8533 ) in the text class itself.
8534  If you are looking here to learn how to upgrade an existing text class,
8535  it will probably turn out that all you have to do is to add
8536 \end_layout
8537
8538 \begin_layout LyX-Code
8539 Input stdfloats.inc
8540 \end_layout
8541
8542 \begin_layout Standard
8543 at a reasonable location of the text class.
8544 \begin_inset Foot
8545 status collapsed
8546
8547 \begin_layout Standard
8548 Don't forget to also have a look at counters in next section.
8549 \end_layout
8550
8551 \end_inset
8552
8553  If you want to implement a text class that proposes some other float types
8554  (like the AGU class bundled with LyX), the information below will hopefully
8555  help you:
8556 \end_layout
8557
8558 \begin_layout Description
8559
8560 \family typewriter
8561 \series medium
8562 Type
8563 \family default
8564 \series default
8565  [
8566 \family typewriter
8567 string
8568 \family default
8569 =
8570 \begin_inset Quotes erd
8571 \end_inset
8572
8573
8574 \begin_inset Quotes erd
8575 \end_inset
8576
8577 ] The 
8578 \begin_inset Quotes eld
8579 \end_inset
8580
8581 type
8582 \begin_inset Quotes erd
8583 \end_inset
8584
8585  of the new class of floats, like program or algorithm.
8586  After the appropriate 
8587 \family typewriter
8588
8589 \backslash
8590 newfloat
8591 \family default
8592 , commands such as 
8593 \family typewriter
8594
8595 \backslash
8596 begin{program}
8597 \family default
8598  or 
8599 \family typewriter
8600
8601 \backslash
8602 end{algorithm*}
8603 \family default
8604  will be available.
8605 \end_layout
8606
8607 \begin_layout Description
8608
8609 \family typewriter
8610 \series medium
8611 GuiName
8612 \family default
8613 \series default
8614  [
8615 \family typewriter
8616 string
8617 \family default
8618 =
8619 \begin_inset Quotes erd
8620 \end_inset
8621
8622
8623 \begin_inset Quotes erd
8624 \end_inset
8625
8626 ] The string that will be used in the menus and also for the caption.
8627 \end_layout
8628
8629 \begin_layout Description
8630
8631 \family typewriter
8632 \series medium
8633 LaTeXBuiltin
8634 \family default
8635 \series default
8636  [
8637 \family typewriter
8638 \emph on
8639 0
8640 \family default
8641 \emph default
8642
8643 \family typewriter
8644 1
8645 \family default
8646 ] Set to 
8647 \family typewriter
8648 1
8649 \family default
8650  if the float is already defined by the documentclass.
8651  If this is set to 
8652 \family typewriter
8653 0
8654 \family default
8655 , the float will be defined using the LaTeX package 
8656 \family typewriter
8657 float
8658 \family default
8659 .
8660 \end_layout
8661
8662 \begin_layout Description
8663
8664 \family typewriter
8665 \series medium
8666 NumberWithin
8667 \family default
8668 \series default
8669  [
8670 \family typewriter
8671 string
8672 \family default
8673 =
8674 \begin_inset Quotes erd
8675 \end_inset
8676
8677
8678 \begin_inset Quotes erd
8679 \end_inset
8680
8681 ] This (optional) argument determines whether floats of this class will
8682  be numbered within some sectional unit of the document.
8683  For example, if within is equal to 
8684 \family typewriter
8685 chapter
8686 \family default
8687 , the floats will be numbered within chapters.
8688  
8689 \end_layout
8690
8691 \begin_layout Description
8692
8693 \family typewriter
8694 \series medium
8695 Style
8696 \family default
8697 \series default
8698  [
8699 \family typewriter
8700 string
8701 \family default
8702 =
8703 \begin_inset Quotes erd
8704 \end_inset
8705
8706
8707 \begin_inset Quotes erd
8708 \end_inset
8709
8710 ] The style used when defining the float using 
8711 \family typewriter
8712
8713 \backslash
8714 newfloat
8715 \family default
8716 .
8717 \end_layout
8718
8719 \begin_layout Description
8720
8721 \family typewriter
8722 \series medium
8723 Placement
8724 \family default
8725 \series default
8726  [
8727 \family typewriter
8728 string
8729 \family default
8730 =
8731 \begin_inset Quotes erd
8732 \end_inset
8733
8734
8735 \begin_inset Quotes erd
8736 \end_inset
8737
8738 ] The default placement for the given class of floats.
8739  They are like in standard LaTeX: 
8740 \family typewriter
8741 t
8742 \family default
8743
8744 \family typewriter
8745 b
8746 \family default
8747
8748 \family typewriter
8749 p
8750 \family default
8751  and 
8752 \family typewriter
8753 h
8754 \family default
8755  for top, bottom, page, and here, respectively.
8756 \begin_inset Foot
8757 status collapsed
8758
8759 \begin_layout Standard
8760 Note that the order of these letters in the string is irrelevant, like in
8761  LaTeX.
8762 \end_layout
8763
8764 \end_inset
8765
8766  On top of that there is a new type, 
8767 \family typewriter
8768 H
8769 \family default
8770 , which does not really correspond to a float, since it means: put it 
8771 \begin_inset Quotes eld
8772 \end_inset
8773
8774 here
8775 \begin_inset Quotes erd
8776 \end_inset
8777
8778  and nowhere else.
8779  Note, however that the 
8780 \family typewriter
8781 H
8782 \family default
8783  specifier is special and, because of implementation details cannot be used
8784  in non-builtin float types.
8785  If you do not understand what this means, just use 
8786 \family typewriter
8787 "tbp"
8788 \family default
8789 .
8790 \end_layout
8791
8792 \begin_layout Description
8793
8794 \family typewriter
8795 \series medium
8796 Extension
8797 \family default
8798 \series default
8799  [
8800 \family typewriter
8801 string
8802 \family default
8803 =
8804 \begin_inset Quotes erd
8805 \end_inset
8806
8807
8808 \begin_inset Quotes erd
8809 \end_inset
8810
8811 ] The file name extension of an auxiliary file for the list of figures (or
8812  whatever).
8813  LaTeX writes the captions to this file.
8814 \end_layout
8815
8816 \begin_layout Description
8817
8818 \family typewriter
8819 \series medium
8820 ListName
8821 \family default
8822 \series default
8823  [
8824 \family typewriter
8825 string
8826 \family default
8827 =
8828 \begin_inset Quotes erd
8829 \end_inset
8830
8831
8832 \begin_inset Quotes erd
8833 \end_inset
8834
8835 ] The heading used for the list of floats.
8836 \end_layout
8837
8838 \begin_layout Standard
8839 Note that defining a float with type 
8840 \family typewriter
8841 \emph on
8842 type
8843 \family default
8844 \emph default
8845  automatically defines the corresponding counter with name 
8846 \family typewriter
8847 \emph on
8848 type
8849 \family default
8850 \emph default
8851 .
8852 \end_layout
8853
8854 \begin_layout Subsection
8855 Inset layouts and Flex insets
8856 \end_layout
8857
8858 \begin_layout Standard
8859 \begin_inset CommandInset label
8860 LatexCommand label
8861 name "sec:charstyle"
8862
8863 \end_inset
8864
8865 You can define character styles since version 1.4.0 of LyX; since version
8866  1.6.0 these are called Flex insets.
8867  
8868 \end_layout
8869
8870 \begin_layout Standard
8871 Furthermore it is possible to define the general layout of many different
8872  types of insets.
8873  Currently layout parameters can be defined for footnotes, marginal notes,
8874  note insets, ERT insets, branch insets, and Flex insets.
8875  The latter are definable from the user GUI and come in three different
8876  kinds: character style (
8877 \family typewriter
8878 CharStyle
8879 \family default
8880 ) , user custom (
8881 \family typewriter
8882 Custom
8883 \family default
8884 ), and XML element (
8885 \family typewriter
8886 Element
8887 \family default
8888 ) insets.
8889  
8890 \end_layout
8891
8892 \begin_layout Standard
8893 The 
8894 \family typewriter
8895 InsetLayout
8896 \family default
8897  definition starting line is of the form
8898 \end_layout
8899
8900 \begin_layout LyX-Code
8901 InsetLayout <Type> <Name>
8902 \end_layout
8903
8904 \begin_layout Standard
8905 where
8906 \end_layout
8907
8908 \begin_layout Standard
8909
8910 \family typewriter
8911 <type>
8912 \family default
8913  can be 
8914 \family typewriter
8915 Foot, Margin, Note, Flex
8916 \family default
8917 , and 
8918 \end_layout
8919
8920 \begin_layout Standard
8921
8922 \family typewriter
8923 <Name>
8924 \family default
8925  can be empty (for foot- and marginal notes, branches and ERT) or one of
8926  types 
8927 \family typewriter
8928 CharStyle:Noun
8929 \family default
8930
8931 \family typewriter
8932 Note:Comment
8933 \family default
8934
8935 \family typewriter
8936 Custom:Endnote
8937 \family default
8938
8939 \family typewriter
8940 Element:Filename
8941 \family default
8942 , etc.
8943  Here, the second part of the name can be chosen freely (for CharStyle,
8944  Custom and Element), or from a predefined list (for Note).
8945 \end_layout
8946
8947 \begin_layout Standard
8948 The following 
8949 \family typewriter
8950 InsetLayout
8951 \family default
8952  section can contain the following entries:
8953 \end_layout
8954
8955 \begin_layout Description
8956
8957 \family typewriter
8958 \series medium
8959 LyxType 
8960 \family default
8961 \series default
8962 can be 
8963 \family typewriter
8964 charstyle
8965 \family default
8966
8967 \family typewriter
8968 custom
8969 \family default
8970
8971 \family typewriter
8972 element
8973 \family default
8974
8975 \family typewriter
8976 end
8977 \family default
8978  (indicating a dummy definition ending definitions of charstyles etc.).
8979  This entry is only meaningful for Flex (user definable) insets, the three
8980  types of which are CharStyle, Custom and Element.
8981 \end_layout
8982
8983 \begin_layout Description
8984
8985 \family typewriter
8986 \series medium
8987 Decoration
8988 \family default
8989 \series default
8990  can be 
8991 \family typewriter
8992 \series medium
8993 Classic
8994 \family default
8995 \series default
8996 ,
8997 \family typewriter
8998 \series medium
8999  Minimalistic or Conglomerate
9000 \family default
9001 \series default
9002 , describing the rendering style used for the inset's frame and buttons.
9003 \end_layout
9004
9005 \begin_layout Description
9006
9007 \family typewriter
9008 \series medium
9009 LabelString
9010 \family default
9011 \series default
9012  defines what will be displayed on the button or elsewhere as the inset
9013  label.
9014  Some inset types (ERT and Branch) modify this label on the fly.
9015 \end_layout
9016
9017 \begin_layout Description
9018
9019 \family typewriter
9020 \series medium
9021 Font
9022 \family default
9023 \series default
9024  The font used for both the text body 
9025 \emph on
9026 and
9027 \emph default
9028  the label.
9029  See section\InsetSpace ~
9030
9031 \begin_inset CommandInset ref
9032 LatexCommand ref
9033 reference "sec:fonts"
9034
9035 \end_inset
9036
9037 .
9038  Note that defining this font automatically defines the 
9039 \family typewriter
9040 LabelFont
9041 \family default
9042  to the same value.
9043 \end_layout
9044
9045 \begin_layout Description
9046
9047 \family typewriter
9048 \series medium
9049 LabelFont
9050 \family default
9051 \series default
9052  The font used for the label.
9053  See section\InsetSpace ~
9054
9055 \begin_inset CommandInset ref
9056 LatexCommand ref
9057 reference "sec:fonts"
9058
9059 \end_inset
9060
9061 .
9062  Note that this definition can never appear before 
9063 \family typewriter
9064 Font
9065 \family default
9066 , lest it be ineffective (see above)
9067 \end_layout
9068
9069 \begin_layout Description
9070
9071 \family typewriter
9072 \series medium
9073 LatexName
9074 \family default
9075 \series default
9076  The name of the corresponding LaTeX stuff.
9077  Either the environment or command name.
9078 \end_layout
9079
9080 \begin_layout Description
9081
9082 \family typewriter
9083 \series medium
9084 LatexParam
9085 \family default
9086 \series default
9087  The optional parameter for the corresponding 
9088 \family typewriter
9089 \series medium
9090 LatexName
9091 \family default
9092 \series default
9093  stuff, including possible bracket pairs like 
9094 \family typewriter
9095 []
9096 \family default
9097 .
9098  This parameter cannot be changed from within LyX.
9099 \end_layout
9100
9101 \begin_layout Description
9102
9103 \family typewriter
9104 \series medium
9105 LatexType
9106 \family default
9107 \series default
9108  See section\InsetSpace ~
9109
9110 \begin_inset CommandInset ref
9111 LatexCommand ref
9112 reference "sec:style"
9113
9114 \end_inset
9115
9116 .
9117 \end_layout
9118
9119 \begin_layout Description
9120
9121 \family typewriter
9122 \series medium
9123 Preamble\SpecialChar \ldots{}
9124 EndPreamble
9125 \family default
9126 \series default
9127  See section\InsetSpace ~
9128
9129 \begin_inset CommandInset ref
9130 LatexCommand ref
9131 reference "sec:style"
9132
9133 \end_inset
9134
9135 .
9136 \end_layout
9137
9138 \begin_layout Description
9139
9140 \family typewriter
9141 \series medium
9142 Requires 
9143 \family default
9144 \series default
9145 [
9146 \family typewriter
9147 string
9148 \family default
9149 ] See section\InsetSpace ~
9150
9151 \begin_inset CommandInset ref
9152 LatexCommand ref
9153 reference "sec:style"
9154
9155 \end_inset
9156
9157 .
9158 \end_layout
9159
9160 \begin_layout Subsection
9161 Counters
9162 \end_layout
9163
9164 \begin_layout Standard
9165 \begin_inset CommandInset label
9166 LatexCommand label
9167 name "sec:counter"
9168
9169 \end_inset
9170
9171 Since version 1.3.0 of LyX, it is necessary to define the counters (
9172 \family sans
9173 chapter
9174 \family default
9175
9176 \family sans
9177 figure
9178 \family default
9179 , \SpecialChar \ldots{}
9180 ) in the text class itself.
9181  If you are looking here to learn how to upgrade an existing text class,
9182  it will probably turn out that all you have to do is to add
9183 \end_layout
9184
9185 \begin_layout LyX-Code
9186 Input stdcounters.inc
9187 \end_layout
9188
9189 \begin_layout Standard
9190 The following parameters can be used:
9191 \end_layout
9192
9193 \begin_layout Description
9194
9195 \family typewriter
9196 \series medium
9197 Name
9198 \family default
9199 \series default
9200  [
9201 \family typewriter
9202 string
9203 \family default
9204 =
9205 \begin_inset Quotes erd
9206 \end_inset
9207
9208
9209 \begin_inset Quotes erd
9210 \end_inset
9211
9212 ] The name of the counter.
9213 \end_layout
9214
9215 \begin_layout Description
9216
9217 \family typewriter
9218 \series medium
9219 Within
9220 \family default
9221 \series default
9222  [
9223 \family typewriter
9224 string
9225 \family default
9226 =
9227 \begin_inset Quotes erd
9228 \end_inset
9229
9230
9231 \begin_inset Quotes erd
9232 \end_inset
9233
9234 ] If this is set to the name of another counter, the present counter will
9235  be reset everytime the other one is increased.
9236  For example, 
9237 \family typewriter
9238 subsection
9239 \family default
9240  is numbered inside 
9241 \family typewriter
9242 section
9243 \family default
9244 .
9245 \end_layout
9246
9247 \begin_layout Description
9248
9249 \family typewriter
9250 \series medium
9251 LabelString [string=""]
9252 \family default
9253 \series default
9254  when this is defined, this string defines how the counter is displayed.
9255  Setting this value resets 
9256 \family typewriter
9257 LabelStringAppendix
9258 \family default
9259  to the same value.
9260  The following special constructs can be used in the string:
9261 \end_layout
9262
9263 \begin_deeper
9264 \begin_layout Itemize
9265
9266 \family typewriter
9267
9268 \backslash
9269 thecounter
9270 \family default
9271  will be replaced by the expansion of the 
9272 \family typewriter
9273 LabelString
9274 \family default
9275  (or 
9276 \family typewriter
9277 LabelStringAppendix
9278 \family default
9279 ) of the counter 
9280 \family typewriter
9281 counter
9282 \family default
9283 .
9284  If these are empty, a default value is constructed as follows: if the counter
9285  has a master counter 
9286 \family typewriter
9287 master
9288 \family default
9289 , the string 
9290 \family typewriter
9291
9292 \backslash
9293 themaster.
9294 \backslash
9295 arabic{counter}
9296 \family default
9297  is used; otherwise the string 
9298 \family typewriter
9299
9300 \backslash
9301 arabic{counter}
9302 \family default
9303  is used.
9304 \end_layout
9305
9306 \begin_layout Itemize
9307 counter values can be expressed using LaTeX-like macros 
9308 \family typewriter
9309
9310 \backslash
9311
9312 \emph on
9313 numbertype
9314 \emph default
9315 {
9316 \emph on
9317 counter
9318 \emph default
9319 }
9320 \family default
9321 , where 
9322 \family typewriter
9323 \emph on
9324 numbertype
9325 \family default
9326 \emph default
9327  can be:
9328 \end_layout
9329
9330 \begin_deeper
9331 \begin_layout Description
9332
9333 \family typewriter
9334 \series medium
9335 arabic
9336 \family default
9337 \series default
9338  to translate 
9339 \family typewriter
9340 counter
9341 \family default
9342  to arabic numerals, like 1, 2, 3\SpecialChar \ldots{}
9343
9344 \begin_inset Foot
9345 status collapsed
9346
9347 \begin_layout Standard
9348
9349 \family roman
9350 \series medium
9351 \shape up
9352 \size normal
9353 \emph off
9354 \bar no
9355 \noun off
9356 \color none
9357 Actually, the situation is a bit more complicated than that: any
9358 \family default
9359 \series default
9360 \shape default
9361 \emph default
9362 \bar default
9363  
9364 \family typewriter
9365 \size default
9366 \emph on
9367 \noun default
9368 numbertype
9369 \family roman
9370 \series medium
9371 \shape up
9372 \size normal
9373 \emph off
9374 \bar no
9375 \noun off
9376  other than those descibed below will produce arabic numerals.
9377  It would not be surprising to see this change in the future.
9378 \end_layout
9379
9380 \end_inset
9381
9382
9383 \end_layout
9384
9385 \begin_layout Description
9386
9387 \family typewriter
9388 \series medium
9389 alph
9390 \family default
9391 \series default
9392  for lower-case letters: a, b, c, \SpecialChar \ldots{}
9393
9394 \end_layout
9395
9396 \begin_layout Description
9397
9398 \family typewriter
9399 \series medium
9400 Alph
9401 \family default
9402 \series default
9403  for upper-case letters: A, B, C, \SpecialChar \ldots{}
9404
9405 \end_layout
9406
9407 \begin_layout Description
9408
9409 \family typewriter
9410 \series medium
9411 roman
9412 \family default
9413 \series default
9414  for lower-case roman numerals: i, ii, iii, \SpecialChar \ldots{}
9415
9416 \end_layout
9417
9418 \begin_layout Description
9419
9420 \family typewriter
9421 \series medium
9422 Roman
9423 \family default
9424 \series default
9425  for upper-case roman numerals: I, II, III\SpecialChar \ldots{}
9426
9427 \end_layout
9428
9429 \begin_layout Description
9430
9431 \family typewriter
9432 \series medium
9433 hebrew
9434 \family default
9435 \series default
9436  for hebrew numerals.
9437 \end_layout
9438
9439 \end_deeper
9440 \end_deeper
9441 \begin_layout Description
9442
9443 \family typewriter
9444 \series medium
9445 LabelStringAppendix [string=""]
9446 \family default
9447 \series default
9448  the same as 
9449 \family typewriter
9450 LabelString
9451 \family default
9452 , for use in appendix.
9453 \end_layout
9454
9455 \begin_layout Subsection
9456 Font description
9457 \end_layout
9458
9459 \begin_layout Standard
9460 \begin_inset CommandInset label
9461 LatexCommand label
9462 name "sec:fonts"
9463
9464 \end_inset
9465
9466 A font description looks like that:
9467 \end_layout
9468
9469 \begin_layout LyX-Code
9470 Font 
9471 \family roman
9472 \emph on
9473 or
9474 \family default
9475 \emph default
9476  LabelFont
9477 \end_layout
9478
9479 \begin_layout LyX-Code
9480  ...
9481 \end_layout
9482
9483 \begin_layout LyX-Code
9484 EndFont
9485 \end_layout
9486
9487 \begin_layout Standard
9488 and the following commands are available:
9489 \end_layout
9490
9491 \begin_layout Description
9492
9493 \family typewriter
9494 \series medium
9495 Family
9496 \family default
9497 \series default
9498  [
9499 \family typewriter
9500 \emph on
9501 Roman
9502 \emph default
9503 , Sans, Typewriter
9504 \family default
9505
9506 \end_layout
9507
9508 \begin_layout Description
9509
9510 \family typewriter
9511 \series medium
9512 Series
9513 \family default
9514 \series default
9515  [
9516 \family typewriter
9517 \emph on
9518 Medium
9519 \emph default
9520 , Bold
9521 \family default
9522
9523 \end_layout
9524
9525 \begin_layout Description
9526
9527 \family typewriter
9528 \series medium
9529 Shape
9530 \family default
9531 \series default
9532  [
9533 \family typewriter
9534 \emph on
9535 Up
9536 \emph default
9537 , Italic, SmallCaps, Slanted
9538 \family default
9539
9540 \end_layout
9541
9542 \begin_layout Description
9543
9544 \family typewriter
9545 \series medium
9546 Size
9547 \family default
9548 \series default
9549  [
9550 \family typewriter
9551 tiny, small,
9552 \family default
9553  
9554 \family typewriter
9555 \emph on
9556 normal
9557 \emph default
9558 , large, larger, largest, huge, giant
9559 \family default
9560 ]
9561 \end_layout
9562
9563 \begin_layout Description
9564
9565 \family typewriter
9566 \series medium
9567 Color
9568 \family default
9569 \series default
9570  [
9571 \family typewriter
9572 \emph on
9573 none
9574 \emph default
9575 , black, white, red, green, blue, cyan, magenta, yellow
9576 \family default
9577 ]
9578 \end_layout
9579
9580 \begin_layout Subsection
9581 Upgrading old layout files
9582 \end_layout
9583
9584 \begin_layout Standard
9585 The file format of layout files changes from time to time, so old layout
9586  files need to be converted.
9587  This process has been automated in LyX 1.4.0: If LyX reads an old format
9588  layout file it will call the conversion tool 
9589 \family typewriter
9590 $LyXDir/scripts/layout2layout.py
9591 \family default
9592  and convert it to a temporary file in current format.
9593  The original file is left untouched, so that you can still use it with
9594  LyX 1.3.x.
9595  If you want to convert the layout file permanently, just call the converter
9596  by hand:
9597 \end_layout
9598
9599 \begin_layout LyX-Code
9600 python $LyXDir/scripts/layout2layout.py myclass.layout myclassnew.layout
9601 \end_layout
9602
9603 \begin_layout Standard
9604 Then copy 
9605 \family typewriter
9606 myclassnew.layout
9607 \family default
9608  to 
9609 \family typewriter
9610 $UserDir/layouts/
9611 \family default
9612 .
9613 \end_layout
9614
9615 \begin_layout Standard
9616 The automatic conversion does only handle syntax changes.
9617  It cannot handle the case where the contents of included files was changed.
9618  For example, layout files based on 
9619 \family typewriter
9620 book.layout
9621 \family default
9622  need to include 
9623 \family typewriter
9624 numreport.inc
9625 \family default
9626  in addition to 
9627 \family typewriter
9628 stdclass.inc
9629 \family default
9630 .
9631  If you get error messages about undefined counters, try to convert your
9632  file with 
9633 \family typewriter
9634 layout2layout.py
9635 \family default
9636  and then add one of 
9637 \family typewriter
9638 numarticle.inc
9639 \family default
9640
9641 \family typewriter
9642 numreport.inc
9643 \family default
9644  and 
9645 \family typewriter
9646 numrevtex.inc
9647 \family default
9648 .
9649 \end_layout
9650
9651 \begin_layout Section
9652 Creating Templates
9653 \begin_inset CommandInset label
9654 LatexCommand label
9655 name "sec:templates"
9656
9657 \end_inset
9658
9659
9660 \end_layout
9661
9662 \begin_layout Standard
9663 Templates are created just like usual documents.
9664  The only difference is that usual documents contain all possible settings,
9665  including the fontscheme and the papersize.
9666  Usually a user doesn't want a template to overwrite his defaults in these
9667  cases.
9668  For that reason, the designer of a template should remove the corresponding
9669  commands like 
9670 \family typewriter
9671
9672 \backslash
9673 fontscheme
9674 \family default
9675  or 
9676 \family typewriter
9677
9678 \backslash
9679 papersize
9680 \family default
9681  from the template LyX file.
9682  This can be done with any simple text-editor, for example 
9683 \family typewriter
9684 vi
9685 \family default
9686  or 
9687 \family typewriter
9688 xedit
9689 \family default
9690 .
9691  
9692 \end_layout
9693
9694 \begin_layout Standard
9695 Put the edited template files you create in 
9696 \family typewriter
9697 $UserDir/templates/
9698 \family default
9699 , copy the ones you use from the global template directory in 
9700 \family typewriter
9701 $LyXDir/templates/
9702 \family default
9703  to the same place, and redefine the template path in the 
9704 \family sans
9705 \bar under
9706 E
9707 \bar default
9708 dit\SpecialChar \menuseparator
9709
9710 \bar under
9711 P
9712 \bar default
9713 references
9714 \family default
9715  dialog (tabs 
9716 \family sans
9717 Input
9718 \family default
9719
9720 \family sans
9721 Path
9722 \family default
9723 ).
9724  
9725 \end_layout
9726
9727 \begin_layout Standard
9728 Note that there is a template which has a particular meaning: 
9729 \family typewriter
9730 defaults.lyx
9731 \family default
9732 .
9733  This template is loaded everytime you create a new document with 
9734 \family sans
9735 \bar under
9736 F
9737 \bar default
9738 ile
9739 \family default
9740 \SpecialChar \menuseparator
9741
9742 \family sans
9743 \bar under
9744 N
9745 \bar default
9746 ew
9747 \family default
9748  in order to provide useful defaults.
9749  To create this template from inside LyX, all you have to do is to open
9750  a document with the correct settings, and use the 
9751 \family sans
9752 Sa
9753 \bar under
9754 v
9755 \bar default
9756 e as Document Defaults
9757 \family default
9758  button.
9759 \end_layout
9760
9761 \begin_layout Chapter
9762 Including External Material
9763 \end_layout
9764
9765 \begin_layout Section
9766 Background
9767 \end_layout
9768
9769 \begin_layout Standard
9770 \begin_inset Note Note
9771 status collapsed
9772
9773 \begin_layout Standard
9774 This section is completely outdated.
9775 \end_layout
9776
9777 \end_inset
9778
9779 One often requested feature from LyX users is to be able to interface LyX
9780  with Xfig, Dia, or other similar applications that specialize in producing
9781  a certain kind of diagram, figure, schematic or whatever material might
9782  be relevant to include in your document.
9783  Previously, it was only possible to include boring, static, fixed images
9784  in LyX documents with the graphics feature, but there are several limitations
9785  attached to this approach:
9786 \end_layout
9787
9788 \begin_layout Itemize
9789 If you want to change the figure, you have to invoke an external program
9790  by hand
9791 \end_layout
9792
9793 \begin_layout Itemize
9794 LyX does not notice that the referenced files change, so the on-screen display
9795  can fast become obsolete, and this is aggravated by the lack of a means
9796  of updating the display
9797 \end_layout
9798
9799 \begin_layout Itemize
9800 The graphics stuff does not provide any mechanisms for coping with different
9801  exported formats such as DocBook, HTML or plain text
9802 \end_layout
9803
9804 \begin_layout Standard
9805 The external material facility attempts to solve all of these problems
9806 \begin_inset Foot
9807 status collapsed
9808
9809 \begin_layout Standard
9810 Even if the graphics facility can't solve all problems, it is still valuable
9811  because it does provide in-line preview of the graphics, and supports advanced
9812  geometric transformations with a comfortable user interface.
9813 \end_layout
9814
9815 \end_inset
9816
9817 .
9818  It does this by offering a general method to interface LyX to external
9819  applications.
9820  Instead of introducing a long list of different constructs tailored for
9821  each specific application, we chose to sacrifice the in-line displaying
9822  of the included material in order to provide a general construct to cover
9823  a wide range of applications.
9824  The result is the external material construct.
9825  External material presents itself in the document simply as a button, but
9826  don't let this fool you.
9827  When you click on it, a dialog will appear that allows you to chose exactly
9828  what material to include, and in the following sections you will learn
9829  that this is indeed a powerful mechanism that can solve all of the above
9830  problems, and more.
9831 \end_layout
9832
9833 \begin_layout Section
9834 How does it work?
9835 \end_layout
9836
9837 \begin_layout Standard
9838 The external material feature is based on the concept of a 
9839 \emph on
9840 template
9841 \emph default
9842 .
9843  A template is a specification of how LyX should interface with a certain
9844  kind of material.
9845  As bundled, LyX comes with predefined templates for Xfig figures, Dia diagrams,
9846  various raster format images, gnuplot, and more.
9847  You can check the actual list by using the menu 
9848 \family sans
9849 Insert\SpecialChar \menuseparator
9850 File\SpecialChar \menuseparator
9851 External
9852 \family default
9853 \InsetSpace ~
9854
9855 \family sans
9856 Material
9857 \family default
9858 .
9859  Furthermore, it is possible to roll your own template to support a specific
9860  kind of material.
9861  Later we'll describe in more detail what is involved, and hopefully you
9862  will submit all the templates you create so we can include them in a later
9863  LyX version.
9864 \end_layout
9865
9866 \begin_layout Standard
9867 Another basic idea of the external material feature is to distinguish between
9868  the original file that serves as a base for final material and the produced
9869  file that is included in your exported or printed document.
9870  For example, consider the case of a figure produced with 
9871 \family typewriter
9872 Xfig
9873 \family default
9874 .
9875  The Xfig application itself works on an original file with the 
9876 \family typewriter
9877 .fig
9878 \family default
9879  extension.
9880  Within XFig, you create and change your figure, and when you are done,
9881  you save the 
9882 \family typewriter
9883 fig
9884 \family default
9885 -file.
9886  When you want to include the figure in your document, you invoke 
9887 \family typewriter
9888 transfig
9889 \family default
9890  in order to create a PostScript file that can readily be included in your
9891  LaTeX file.
9892  In this case, the 
9893 \family typewriter
9894 .fig
9895 \family default
9896  file is the original file, and the PostScript file is the produced file.
9897 \end_layout
9898
9899 \begin_layout Standard
9900 This distinction is important in order to allow updating of the material
9901  while you are in the process of writing the document.
9902  Furthermore, it provides us with the flexibility that is needed to support
9903  multiple export formats.
9904  For instance, in the case of a plain text file, it is not exactly an award-winn
9905 ing idea to include the figure as raw PostScript.
9906  Instead, you'd either prefer to just include a reference to the figure,
9907  or try to invoke some graphics to Ascii converter to make the final result
9908  look similar to the real graphics.
9909  The external material management allows you to do this, because it is parameter
9910 ized on the different export formats that LyX supports.
9911 \end_layout
9912
9913 \begin_layout Standard
9914 Besides supporting the production of different products according to the
9915  exported format, it supports tight integration with editing and viewing
9916  applications.
9917  In the case of an XFig figure, you are able to invoke 
9918 \family typewriter
9919 Xfig
9920 \family default
9921  on the original file with a single click from within the external material
9922  dialog in LyX, and also preview the produced PostScript file with 
9923 \family typewriter
9924 ghostview
9925 \family default
9926  with another click.
9927  No more fiddling around with the command line and/or file browsers to locate
9928  and manipulate the original or produced files.
9929  In this way, you are finally able to take full advantage of the many different
9930  applications that are relevant to use when you write your documents, and
9931  ultimately be more productive.
9932 \end_layout
9933
9934 \begin_layout Section
9935 External material dialog
9936 \end_layout
9937
9938 \begin_layout Standard
9939 The 
9940 \family sans
9941 External Material
9942 \family default
9943  dialog is described in the 
9944 \family sans
9945 \emph on
9946 EmbeddedObjects
9947 \family default
9948 \emph default
9949  manual.
9950 \end_layout
9951
9952 \begin_layout Section
9953 Examples
9954 \end_layout
9955
9956 \begin_layout Standard
9957 In this section, we should include some examples of use of the external
9958  material.
9959  Those examples could include:
9960 \end_layout
9961
9962 \begin_layout Itemize
9963 External raster images
9964 \end_layout
9965
9966 \begin_layout Itemize
9967 External XFig figures
9968 \end_layout
9969
9970 \begin_layout Itemize
9971 Chess diagrams
9972 \end_layout
9973
9974 \begin_layout Itemize
9975 Sound samples
9976 \end_layout
9977
9978 \begin_layout Itemize
9979 The use of makefiles
9980 \end_layout
9981
9982 \begin_layout Itemize
9983 Recursive external LyX templates
9984 \end_layout
9985
9986 \begin_layout Section
9987 The external template configuration file
9988 \end_layout
9989
9990 \begin_layout Standard
9991 It is relatively easy to add custom external template definitions to LyX.
9992  However, be aware this doing this in an careless manner most probably 
9993 \emph on
9994 will
9995 \emph default
9996  introduce an easily exploitable security hole.
9997  So before you do this, please read the discussion about security which
9998  will follow later.
9999 \end_layout
10000
10001 \begin_layout Standard
10002 Having said that, we encourage you to submit any interesting templates that
10003  you create.
10004  
10005 \end_layout
10006
10007 \begin_layout Standard
10008 The external templates are defined in the 
10009 \family typewriter
10010 lib/external_templates
10011 \family default
10012  file.
10013  You can place your own version in 
10014 \family typewriter
10015 .lyx/external_templates
10016 \family default
10017 .
10018 \end_layout
10019
10020 \begin_layout Standard
10021 A typical template looks like this:
10022 \end_layout
10023
10024 \begin_layout LyX-Code
10025 Template XFig
10026 \end_layout
10027
10028 \begin_layout LyX-Code
10029 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
10030 \end_layout
10031
10032 \begin_layout LyX-Code
10033 HelpText
10034 \end_layout
10035
10036 \begin_layout LyX-Code
10037 An XFig figure.
10038 \end_layout
10039
10040 \begin_layout LyX-Code
10041 HelpTextEnd
10042 \end_layout
10043
10044 \begin_layout LyX-Code
10045 InputFormat fig
10046 \end_layout
10047
10048 \begin_layout LyX-Code
10049 FileFilter "*.fig"
10050 \end_layout
10051
10052 \begin_layout LyX-Code
10053 AutomaticProduction true
10054 \end_layout
10055
10056 \begin_layout LyX-Code
10057 Transform Rotate
10058 \end_layout
10059
10060 \begin_layout LyX-Code
10061 Transform Resize
10062 \end_layout
10063
10064 \begin_layout LyX-Code
10065 Format LaTeX
10066 \end_layout
10067
10068 \begin_layout LyX-Code
10069 TransformCommand Rotate RotationLatexCommand
10070 \end_layout
10071
10072 \begin_layout LyX-Code
10073 TransformCommand Resize ResizeLatexCommand
10074 \end_layout
10075
10076 \begin_layout LyX-Code
10077 Product "$$RotateFront$$ResizeFront
10078 \end_layout
10079
10080 \begin_layout LyX-Code
10081          
10082 \backslash
10083
10084 \backslash
10085 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
10086 \end_layout
10087
10088 \begin_layout LyX-Code
10089          $$ResizeBack$$RotateBack"
10090 \end_layout
10091
10092 \begin_layout LyX-Code
10093 UpdateFormat pstex
10094 \end_layout
10095
10096 \begin_layout LyX-Code
10097 UpdateResult "$$AbsPath$$Basename.pstex_t"
10098 \end_layout
10099
10100 \begin_layout LyX-Code
10101 Requirement "graphicx"
10102 \end_layout
10103
10104 \begin_layout LyX-Code
10105 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
10106 \end_layout
10107
10108 \begin_layout LyX-Code
10109 ReferencedFile latex "$$AbsPath$$Basename.eps"
10110 \end_layout
10111
10112 \begin_layout LyX-Code
10113 ReferencedFile dvi "$$AbsPath$$Basename.eps"
10114 \end_layout
10115
10116 \begin_layout LyX-Code
10117 FormatEnd
10118 \end_layout
10119
10120 \begin_layout LyX-Code
10121 Format PDFLaTeX
10122 \end_layout
10123
10124 \begin_layout LyX-Code
10125 TransformCommand Rotate RotationLatexCommand
10126 \end_layout
10127
10128 \begin_layout LyX-Code
10129 TransformCommand Resize ResizeLatexCommand
10130 \end_layout
10131
10132 \begin_layout LyX-Code
10133 Product "$$RotateFront$$ResizeFront
10134 \end_layout
10135
10136 \begin_layout LyX-Code
10137          
10138 \backslash
10139
10140 \backslash
10141 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
10142 \end_layout
10143
10144 \begin_layout LyX-Code
10145          $$ResizeBack$$RotateBack"
10146 \end_layout
10147
10148 \begin_layout LyX-Code
10149 UpdateFormat pdftex
10150 \end_layout
10151
10152 \begin_layout LyX-Code
10153 UpdateResult "$$AbsPath$$Basename.pdftex_t"
10154 \end_layout
10155
10156 \begin_layout LyX-Code
10157 Requirement "graphicx"
10158 \end_layout
10159
10160 \begin_layout LyX-Code
10161 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
10162 \end_layout
10163
10164 \begin_layout LyX-Code
10165 ReferencedFile latex "$$AbsPath$$Basename.pdf"
10166 \end_layout
10167
10168 \begin_layout LyX-Code
10169 FormatEnd
10170 \end_layout
10171
10172 \begin_layout LyX-Code
10173 Format Ascii
10174 \end_layout
10175
10176 \begin_layout LyX-Code
10177 Product "$$Contents(
10178 \backslash
10179 "$$AbsPath$$Basename.asc
10180 \backslash
10181 ")"
10182 \end_layout
10183
10184 \begin_layout LyX-Code
10185 UpdateFormat asciixfig
10186 \end_layout
10187
10188 \begin_layout LyX-Code
10189 UpdateResult "$$AbsPath$$Basename.asc"
10190 \end_layout
10191
10192 \begin_layout LyX-Code
10193 FormatEnd
10194 \end_layout
10195
10196 \begin_layout LyX-Code
10197 Format DocBook
10198 \end_layout
10199
10200 \begin_layout LyX-Code
10201 Product "<graphic fileref=
10202 \backslash
10203 "$$AbsOrRelPathMaster$$Basename.eps
10204 \backslash
10205 ">
10206 \end_layout
10207
10208 \begin_layout LyX-Code
10209          </graphic>"
10210 \end_layout
10211
10212 \begin_layout LyX-Code
10213 UpdateFormat eps
10214 \end_layout
10215
10216 \begin_layout LyX-Code
10217 UpdateResult "$$AbsPath$$Basename.eps"
10218 \end_layout
10219
10220 \begin_layout LyX-Code
10221 ReferencedFile docbook "$$AbsPath$$Basename.eps"
10222 \end_layout
10223
10224 \begin_layout LyX-Code
10225 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
10226 \end_layout
10227
10228 \begin_layout LyX-Code
10229 FormatEnd
10230 \end_layout
10231
10232 \begin_layout LyX-Code
10233 Product "[XFig: $$FName]"
10234 \end_layout
10235
10236 \begin_layout LyX-Code
10237 FormatEnd
10238 \end_layout
10239
10240 \begin_layout LyX-Code
10241 TemplateEnd
10242 \end_layout
10243
10244 \begin_layout Standard
10245 As you can see, the template is enclosed in 
10246 \family typewriter
10247 Template
10248 \family default
10249  \SpecialChar \ldots{}
10250  
10251 \family typewriter
10252 TemplateEnd
10253 \family default
10254 .
10255  It contains a header specifying some general settings, and for each supported
10256  primary document file format a section 
10257 \family typewriter
10258 Format
10259 \family default
10260  \SpecialChar \ldots{}
10261  
10262 \family typewriter
10263 FormatEnd
10264 \family default
10265 .
10266 \end_layout
10267
10268 \begin_layout Subsection
10269 The template header
10270 \end_layout
10271
10272 \begin_layout Description
10273
10274 \family typewriter
10275 \series medium
10276 Template\InsetSpace ~
10277 <id>
10278 \family default
10279 \series default
10280  A unique name for the template.
10281  It must not contain substitution macros (see below).
10282 \end_layout
10283
10284 \begin_layout Description
10285
10286 \family typewriter
10287 \series medium
10288 GuiName\InsetSpace ~
10289 <guiname>
10290 \family default
10291 \series default
10292  The text that is displayed on the button.
10293  This command must occur exactly once.
10294 \end_layout
10295
10296 \begin_layout Description
10297
10298 \family typewriter
10299 \series medium
10300 HelpText\InsetSpace ~
10301 <text>\InsetSpace ~
10302 HelpTextEnd
10303 \family default
10304 \series default
10305  The help text that is used in the External dialog.
10306  Provide enough information to explain to the user just what the template
10307  can provide him with.
10308  This command must occur exactly once.
10309 \end_layout
10310
10311 \begin_layout Description
10312
10313 \family typewriter
10314 \series medium
10315 InputFormat\InsetSpace ~
10316 <format>
10317 \family default
10318 \series default
10319  The file format of the original file.
10320  This must be the name of a format that is known to LyX (see the 
10321 \family sans
10322 \bar under
10323 T
10324 \bar default
10325 ools\SpecialChar \menuseparator
10326
10327 \bar under
10328 P
10329 \bar default
10330 references:Conversion
10331 \family default
10332  dialog).
10333  Use 
10334 \family typewriter
10335 "*"
10336 \family default
10337  if the template can handle original files of more than one format.
10338  LyX will attempt to interrogate the file itself in order to deduce its
10339  format in this case.
10340  This command must occur exactly once.
10341 \end_layout
10342
10343 \begin_layout Description
10344
10345 \family typewriter
10346 \series medium
10347 FileFilter\InsetSpace ~
10348 <pattern>
10349 \family default
10350 \series default
10351  A glob pattern that is used in the file dialog to filter out the desired
10352  files.
10353  If there is more than one possible file extension (e.g.\InsetSpace ~
10354 tgif has 
10355 \family typewriter
10356 .obj
10357 \family default
10358  and 
10359 \family typewriter
10360 .tgo
10361 \family default
10362 ), use something like 
10363 \family typewriter
10364 "*.{obj,tgo}"
10365 \family default
10366 .
10367  This command must occur exactly once.
10368 \end_layout
10369
10370 \begin_layout Description
10371
10372 \family typewriter
10373 \series medium
10374 AutomaticProduction\InsetSpace ~
10375 true|false
10376 \family default
10377 \series default
10378  Wether the file represented by the template must be generated by LyX.
10379  This command must occur exactly once.
10380 \end_layout
10381
10382 \begin_layout Description
10383
10384 \family typewriter
10385 \series medium
10386 Transform\InsetSpace ~
10387 Rotate|Resize|Clip|Extra
10388 \family default
10389 \series default
10390  This command specifies which transformations are supported by this template.
10391  It may occur zero or more times.
10392  This command enables the corresponding tabs in the external dialog.
10393  Each 
10394 \family typewriter
10395 Transform
10396 \family default
10397  command must have either a corresponding 
10398 \family typewriter
10399 TransformCommand
10400 \family default
10401  or a 
10402 \family typewriter
10403 TransformOption
10404 \family default
10405  command in the 
10406 \family typewriter
10407 Format
10408 \family default
10409  section.
10410  Otherwise the transformation will not be supported by that format.
10411 \end_layout
10412
10413 \begin_layout Subsection
10414 The Format section
10415 \end_layout
10416
10417 \begin_layout Description
10418
10419 \family typewriter
10420 \series medium
10421 Format\InsetSpace ~
10422 LaTeX|PDFLaTeX|PlainText|DocBook
10423 \family default
10424 \series default
10425  The primary document file format that this format definition is for.
10426  Not every template has a sensible representation in all document file formats.
10427  Please define nevertheless a 
10428 \family typewriter
10429 Format
10430 \family default
10431  section for all formats.
10432  Use a dummy text when no representation is available.
10433  Then you can at least see a reference to the external material in the exported
10434  document.
10435 \end_layout
10436
10437 \begin_layout Description
10438
10439 \family typewriter
10440 \series medium
10441 TransformCommand\InsetSpace ~
10442 Rotate\InsetSpace ~
10443 RotationLatexCommand
10444 \family default
10445 \series default
10446  This command specifies that the built in LaTeX command should be used for
10447  rotation.
10448  This command may occur once or not at all.
10449 \end_layout
10450
10451 \begin_layout Description
10452
10453 \family typewriter
10454 \series medium
10455 TransformCommand\InsetSpace ~
10456 Resize\InsetSpace ~
10457 ResizeLatexCommand
10458 \family default
10459 \series default
10460  This command specifies that the built in LaTeX command should be used for
10461  resizing.
10462  This command may occur once or not at all.
10463 \end_layout
10464
10465 \begin_layout Description
10466
10467 \family typewriter
10468 \series medium
10469 TransformOption\InsetSpace ~
10470 Rotate\InsetSpace ~
10471 RotationLatexOption
10472 \family default
10473 \series default
10474  This command specifies that rotation is done via an optional argument.
10475  This command may occur once or not at all.
10476 \end_layout
10477
10478 \begin_layout Description
10479
10480 \family typewriter
10481 \series medium
10482 TransformOption\InsetSpace ~
10483 Resize\InsetSpace ~
10484 ResizeLatexOption
10485 \family default
10486 \series default
10487  This command specifies that resizing is done via an optional argument.
10488  This command may occur once or not at all.
10489 \end_layout
10490
10491 \begin_layout Description
10492
10493 \family typewriter
10494 \series medium
10495 TransformOption\InsetSpace ~
10496 Clip\InsetSpace ~
10497 ClipLatexOption
10498 \family default
10499 \series default
10500  This command specifies that clipping is done via an optional argument.
10501  This command may occur once or not at all.
10502 \end_layout
10503
10504 \begin_layout Description
10505
10506 \family typewriter
10507 \series medium
10508 TransformOption\InsetSpace ~
10509 Extra\InsetSpace ~
10510 ExtraLatexOption
10511 \family default
10512 \series default
10513  This command specifies that an extra optional argument is used.
10514  This command may occur once or not at all.
10515 \end_layout
10516
10517 \begin_layout Description
10518
10519 \family typewriter
10520 \series medium
10521 Product\InsetSpace ~
10522 <text>
10523 \family default
10524 \series default
10525  The text that is inserted in the exported document.
10526  This is actually the most important command and can be quite complex.
10527  This command must occur exactly once.
10528 \end_layout
10529
10530 \begin_layout Description
10531
10532 \family typewriter
10533 \series medium
10534 UpdateFormat\InsetSpace ~
10535 <format>
10536 \family default
10537 \series default
10538  The file format of the converted file.
10539  This must be the name of a format that is known to LyX (see the 
10540 \family sans
10541 \bar under
10542 T
10543 \bar default
10544 ools\SpecialChar \menuseparator
10545
10546 \bar under
10547 P
10548 \bar default
10549 references:Conversion
10550 \family default
10551  dialog).
10552  This command must occur exactly once.
10553 \end_layout
10554
10555 \begin_layout Description
10556
10557 \family typewriter
10558 \series medium
10559 UpdateResult\InsetSpace ~
10560 <filename>
10561 \family default
10562 \series default
10563  The file name of the converted file.
10564  The file name must be absolute.
10565  This command must occur exactly once.
10566 \end_layout
10567
10568 \begin_layout Description
10569
10570 \family typewriter
10571 \series medium
10572 ReferencedFile\InsetSpace ~
10573 <format>\InsetSpace ~
10574 <filename>
10575 \family default
10576 \series default
10577  This command denotes files that are created by the conversion process and
10578  are needed for a particular export format.
10579  If the filename is relative, it is interpreted relative to the master document.
10580  This command may be given zero or more times.
10581 \end_layout
10582
10583 \begin_layout Description
10584
10585 \family typewriter
10586 \series medium
10587 Requirement\InsetSpace ~
10588 <package>
10589 \family default
10590 \series default
10591  The name of a required LaTeX package.
10592  The package is included via 
10593 \family typewriter
10594
10595 \backslash
10596 usepackage{}
10597 \family default
10598  in the LaTeX preamble.
10599  This command may occur zero or more times.
10600 \end_layout
10601
10602 \begin_layout Description
10603
10604 \family typewriter
10605 \series medium
10606 Preamble\InsetSpace ~
10607 <name>
10608 \family default
10609 \series default
10610  This command specifies a preamble snippet that will be included in the
10611  LaTeX preamble.
10612  It has to be defined using 
10613 \family typewriter
10614 PreambleDef
10615 \family default
10616  \SpecialChar \ldots{}
10617  
10618 \family typewriter
10619 PreambleDefEnd
10620 \family default
10621 .
10622  This command may occur zero or more times.
10623 \end_layout
10624
10625 \begin_layout Description
10626
10627 \family typewriter
10628 \series medium
10629 Option\InsetSpace ~
10630 <name>\InsetSpace ~
10631 <value>
10632 \family default
10633 \series default
10634  This command defines an additional macro 
10635 \family typewriter
10636 $$<name>
10637 \family default
10638  for substitution in 
10639 \family typewriter
10640 Product
10641 \family default
10642 .
10643  
10644 \family typewriter
10645 <value>
10646 \family default
10647  itself may contain substitution macros.
10648  The advantage over using 
10649 \family typewriter
10650 <value>
10651 \family default
10652  directly in 
10653 \family typewriter
10654 Product
10655 \family default
10656  is that the substituted value of 
10657 \family typewriter
10658 $$<name>
10659 \family default
10660  is sanitized so that it is a valid optional argument in the document format.
10661  This command may occur zero or more times.
10662 \end_layout
10663
10664 \begin_layout Subsection
10665 Preamble definitions
10666 \end_layout
10667
10668 \begin_layout Standard
10669 The external template configuration file may contain additional preamble
10670  definitions enclosed by 
10671 \family typewriter
10672 PreambleDef
10673 \family default
10674  \SpecialChar \ldots{}
10675  
10676 \family typewriter
10677 PreambleDefEnd
10678 \family default
10679 .
10680  They can be used by the templates in the 
10681 \family typewriter
10682 Format
10683 \family default
10684  section.
10685 \end_layout
10686
10687 \begin_layout Section
10688 The substitution mechanism
10689 \end_layout
10690
10691 \begin_layout Standard
10692 When the external material facility invokes an external program, it is done
10693  on the basis of a command defined in the template configuration file.
10694  These commands can contain various macros that are expanded before execution.
10695  Execution always take place in the directory of the containing document.
10696 \end_layout
10697
10698 \begin_layout Standard
10699 Also, whenever external material is to be displayed, the name will be produced
10700  by the substitution mechanism, and most other commands in the template
10701  definition support substitution as well.
10702 \end_layout
10703
10704 \begin_layout Standard
10705 The available macros are the following:
10706 \end_layout
10707
10708 \begin_layout Description
10709 $$FName The filename of the file specified in the external material dialog.
10710  This is either an absolute name, or it is relative to the LyX document.
10711 \end_layout
10712
10713 \begin_layout Description
10714 $$Basename The filename without path and without the extension.
10715 \end_layout
10716
10717 \begin_layout Description
10718 $$Extension The file extension (including the dot).
10719 \end_layout
10720
10721 \begin_layout Description
10722 $$FPath The path part of 
10723 \family typewriter
10724 $$FName
10725 \family default
10726  (absolute name or relative to the LyX document).
10727 \end_layout
10728
10729 \begin_layout Description
10730 $$AbsPath The absolute file path.
10731 \end_layout
10732
10733 \begin_layout Description
10734 $$RelPathMaster The file path, relative to the master LyX document.
10735 \end_layout
10736
10737 \begin_layout Description
10738 $$RelPathParent The file path, relative to the LyX document.
10739 \end_layout
10740
10741 \begin_layout Description
10742 $$AbsOrRelPathMaster The file path, absolute or relative to the master LyX
10743  document.
10744 \end_layout
10745
10746 \begin_layout Description
10747 $$AbsOrRelPathParent The file path, absolute or relative to the LyX document.
10748 \end_layout
10749
10750 \begin_layout Description
10751 $$Tempname A name and full path to a temporary file which will be automatically
10752  deleted whenever the containing document is closed, or the external material
10753  insertion deleted.
10754 \end_layout
10755
10756 \begin_layout Description
10757 $$Contents(
10758 \begin_inset Quotes eld
10759 \end_inset
10760
10761 filename.ext
10762 \begin_inset Quotes erd
10763 \end_inset
10764
10765 ) This macro will expand to the contents of the file with the name 
10766 \family typewriter
10767 filename.ext
10768 \family default
10769 .
10770 \end_layout
10771
10772 \begin_layout Description
10773 $$Sysdir This macro will expand to the absolute path of the system directory.
10774  This is typically used to point to the various helper scripts that are
10775  bundled with LyX.
10776 \end_layout
10777
10778 \begin_layout Standard
10779 All path macros contain a trailing directory separator, so you can construct
10780  e.g.
10781  the absolute filename with 
10782 \family typewriter
10783 $$AbsPath$$Basename$$Extension
10784 \family default
10785 .
10786 \end_layout
10787
10788 \begin_layout Standard
10789 The macros above are substituted in all commands unless otherwise noted.
10790  The command 
10791 \family typewriter
10792 Product
10793 \family default
10794  supports additionally the following substitutions if they are enabled by
10795  the 
10796 \family typewriter
10797 Transform
10798 \family default
10799  and 
10800 \family typewriter
10801 TransformCommand
10802 \family default
10803  commands:
10804 \end_layout
10805
10806 \begin_layout Description
10807 $$ResizeFront The front part of the resize command.
10808 \end_layout
10809
10810 \begin_layout Description
10811 $$ResizeBack The back part of the resize command.
10812 \end_layout
10813
10814 \begin_layout Description
10815 $$RotateFront The front part of the rotation command.
10816 \end_layout
10817
10818 \begin_layout Description
10819 $$RotateBack The back part of the rotation command.
10820 \end_layout
10821
10822 \begin_layout Standard
10823 The value string of the 
10824 \family typewriter
10825 Option
10826 \family default
10827  command supports additionally the following substitutions if they are enabled
10828  by the 
10829 \family typewriter
10830 Transform
10831 \family default
10832  and 
10833 \family typewriter
10834 TransformOption
10835 \family default
10836  commands:
10837 \end_layout
10838
10839 \begin_layout Description
10840 $$Clip The clip option.
10841 \end_layout
10842
10843 \begin_layout Description
10844 $$Extra The extra option.
10845 \end_layout
10846
10847 \begin_layout Description
10848 $$Resize The resize option.
10849 \end_layout
10850
10851 \begin_layout Description
10852 $$Rotate The rotation option.
10853 \end_layout
10854
10855 \begin_layout Standard
10856 You may ask why there are so many path macros.
10857  There are mainly two reasons:
10858 \end_layout
10859
10860 \begin_layout Standard
10861 First, relative and absolute file names should remain relative or absolute,
10862  respectively.
10863  Users may have reasons to prefer either form.
10864  Relative names are useful for portable documents that should work on different
10865  machines, for example.
10866  Absolute names may be required by some programs.
10867 \end_layout
10868
10869 \begin_layout Standard
10870 Second, LaTeX treats relative file names differently than LyX and other
10871  programs in nested included files.
10872  For LyX, a relative file name is always relative to the document that contains
10873  the file name.
10874  For LaTeX, it is always relative to the master document.
10875  These two definitions are identical if you have only one document, but
10876  differ if you have a master document that includes part documents.
10877  That means that relative filenames must be transformed when presented to
10878  LaTeX.
10879  Fortunately LyX does this automatically for you if you choose the right
10880  macros.
10881 \end_layout
10882
10883 \begin_layout Standard
10884 So which path macro should be used in new template definitions? The rule
10885  is not difficult:
10886 \end_layout
10887
10888 \begin_layout Itemize
10889 Use 
10890 \family typewriter
10891 $$AbsPath
10892 \family default
10893  if an absolute path is required.
10894 \end_layout
10895
10896 \begin_layout Itemize
10897 Use 
10898 \family typewriter
10899 $$AbsOrRelPathMaster
10900 \family default
10901  if the substituted string is some kind of LaTeX input.
10902 \end_layout
10903
10904 \begin_layout Itemize
10905 Else use 
10906 \family typewriter
10907 $$AbsOrRelPathParent
10908 \family default
10909  in order to preserve the user's choice.
10910 \end_layout
10911
10912 \begin_layout Standard
10913 There are special cases where this rule does not work and e.g.\InsetSpace ~
10914 relative names
10915  are needed, but normally it will work just fine.
10916  One example for such a case is the command 
10917 \family typewriter
10918 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
10919 \family default
10920  in the XFig template above: We can't use the absolute name because the
10921  copier for 
10922 \family typewriter
10923 .pstex_t
10924 \family default
10925  files needs the relative name in order to rewrite the file content.
10926 \end_layout
10927
10928 \begin_layout Section
10929 Security discussion
10930 \end_layout
10931
10932 \begin_layout Standard
10933 \begin_inset Note Note
10934 status collapsed
10935
10936 \begin_layout Standard
10937 This section is outdated
10938 \end_layout
10939
10940 \end_inset
10941
10942 The external material feature interfaces with a lot of external programs
10943  and does so automatically, so we have to consider the security implications
10944  of this.
10945  In particular, since you have the option of including your own filenames
10946  and/or parameter strings and those are expanded into a command, it seems
10947  that it would be possible to create a malicious document which executes
10948  arbitrary commands when a user views or prints the document.
10949  This is something we definately want to avoid.
10950 \end_layout
10951
10952 \begin_layout Standard
10953 However, since the external program commands are specified in the template
10954  configuration file only, there are no security issues if LyX is properly
10955  configured with safe templates only.
10956  This is so because the external programs are invoked with the 
10957 \family typewriter
10958 execvp
10959 \family default
10960 -system call rather than the 
10961 \family typewriter
10962 system
10963 \family default
10964  system-call, so it's not possible to execute arbitrary commands from the
10965  filename or parameter section via the shell.
10966 \end_layout
10967
10968 \begin_layout Standard
10969 This also implies that you are restricted in what command strings you can
10970  use in the external material templates.
10971  In particular, pipes and redirection are not readily available.
10972  This has to be so if LyX should remain safe.
10973  If you want to use some of the shell features, you should write a safe
10974  script to do this in a controlled manner, and then invoke the script from
10975  the command string.
10976  In the 
10977 \family typewriter
10978 lib/scripts
10979 \family default
10980  directory of the LyX installation, you can find a safe wrapper script 
10981 \family typewriter
10982 general_command_wrapper.py
10983 \family default
10984  that supports redirection of input and output.
10985  That can serve as an example for how to write safe template scripts.
10986  For a more advanced example that uses 
10987 \family typewriter
10988 fork
10989 \family default
10990  and friends, take a look at the 
10991 \family typewriter
10992 pic2ascii.py
10993 \family default
10994  converter script.
10995 \end_layout
10996
10997 \begin_layout Standard
10998 It is possible to design a template that interacts directly with the shell,
10999  but since this would allow a malicious user to execute arbitrary commands
11000  by writing clever filenames and/or parameters, we generally recommend that
11001  you only use safe scripts that work with the 
11002 \family typewriter
11003 execvp
11004 \family default
11005  system call in a controlled manner.
11006  Of course, for use in a controlled environment, it can be tempting to just
11007  fall back to use ordinary shell scripts.
11008  If you do so, be aware that you 
11009 \emph on
11010 will
11011 \emph default
11012  provide an easily exploitable security hole in your system.
11013  Of course it stands to reason that such unsafe templates will never be
11014  included in the standard LyX distribution, although we do encourage people
11015  to submit new templates in the open source tradition.
11016  But LyX as shipped from the official distribution channels will never have
11017  unsafe templates.
11018 \end_layout
11019
11020 \begin_layout Standard
11021 Including external material provides a lot of power, and you have to be
11022  careful not to introduce security hazards with this power.
11023  A subtle error in a single line in an innocent looking script can open
11024  the door to huge security problems.
11025  So if you do not fully understand the issues, we recommend that you consult
11026  a knowledgable security professional or the LyX development team if you
11027  have any questions about whether a given template is safe or not.
11028  And do this before you use it in an uncontrolled environment.
11029 \end_layout
11030
11031 \begin_layout Chapter
11032 The LyX Server
11033 \end_layout
11034
11035 \begin_layout Section
11036 Introduction
11037 \end_layout
11038
11039 \begin_layout Standard
11040 The LyX server is a method implemented in LyX that will enable other programs
11041  to talk to LyX, invoke LyX commands, and retrieve information about the
11042  LyX internal state.
11043  This is only intended for advanced users, but they should find it useful.
11044 \end_layout
11045
11046 \begin_layout Section
11047 Starting the LyX Server
11048 \end_layout
11049
11050 \begin_layout Standard
11051 The LyX server works through the use of a pair of named pipes.
11052  These are usually located in your home directory and have the names 
11053 \begin_inset Quotes eld
11054 \end_inset
11055
11056
11057 \family typewriter
11058 .lyxpipe.in
11059 \family default
11060
11061 \begin_inset Quotes erd
11062 \end_inset
11063
11064  and 
11065 \begin_inset Quotes eld
11066 \end_inset
11067
11068
11069 \family typewriter
11070 .lyxpipe.out
11071 \family default
11072
11073 \begin_inset Quotes erd
11074 \end_inset
11075
11076 .
11077  External programs write into 
11078 \family typewriter
11079 .lyxpipe.in
11080 \family default
11081  and read back data from 
11082 \family typewriter
11083 .lyxpipe.out
11084 \family default
11085 .
11086  The stem of the pipe names can be defined in the 
11087 \family sans
11088 \bar under
11089 T
11090 \bar default
11091 ools\SpecialChar \menuseparator
11092
11093 \bar under
11094 P
11095 \bar default
11096 references
11097 \family default
11098  dialog, for example 
11099 \family typewriter
11100 "/home/myhome/.lyxpipe"
11101 \family default
11102 .
11103 \end_layout
11104
11105 \begin_layout Standard
11106 LyX will add the '
11107 \family typewriter
11108 .in
11109 \family default
11110 ' and '
11111 \family typewriter
11112 .out
11113 \family default
11114 ' to create the pipes.
11115  The above setting also has the effect of activating the LyX server.
11116  If one of the pipes already exists, LyX will assume that another LyX process
11117  is already running and will not start the server.
11118  To have several LyX processes with servers at the same time, you have to
11119  change the configuration between the start of the programs.
11120 \end_layout
11121
11122 \begin_layout Standard
11123 If you are developing a client program, you might find it useful to enable
11124  debugging information from the LyX server.
11125  Do this by starting LyX as 
11126 \family typewriter
11127 lyx -dbg lyxserver.
11128 \end_layout
11129
11130 \begin_layout Standard
11131 Warning: if LyX crashes, it may not manage to remove the pipes; in this
11132  case you must remove them manually.
11133  If LyX starts and the pipes exist already, it will not start any server.
11134 \end_layout
11135
11136 \begin_layout Standard
11137 Other than this, there are a few points to consider:
11138 \end_layout
11139
11140 \begin_layout Itemize
11141 Both server and clients must run on UNIX or OS/2 machines.
11142  Communications between LyX on UNIX and clients on OS/2 or vice versa is
11143  not possible right now.
11144 \end_layout
11145
11146 \begin_layout Itemize
11147 On OS/2, only one client can connect to LyXServer at a time.
11148 \end_layout
11149
11150 \begin_layout Itemize
11151 On OS/2, clients must open inpipe with 
11152 \family typewriter
11153 O_WRONLY
11154 \family default
11155  mode.
11156 \end_layout
11157
11158 \begin_layout Standard
11159 You can find a complete example client written in C in the source distribution
11160  as 
11161 \family typewriter
11162 development/server_monitor.c
11163 \family default
11164 .
11165 \end_layout
11166
11167 \begin_layout Section
11168 Normal communication
11169 \end_layout
11170
11171 \begin_layout Standard
11172 To issue a LyX call, the client writes a line of ASCII text into the input
11173  pipe.
11174  This line has the following format:
11175 \end_layout
11176
11177 \begin_layout Quote
11178 LYXCMD:
11179 \emph on
11180 clientname
11181 \emph default
11182 :
11183 \emph on
11184 function
11185 \emph default
11186 :
11187 \emph on
11188 argument
11189 \end_layout
11190
11191 \begin_layout Standard
11192 Here 
11193 \emph on
11194 clientname
11195 \emph default
11196  is a name that the client can choose arbitrarily.
11197  Its only use is that LyX will echo it if it sends an answer - so a client
11198  can dispatch results from different requesters.
11199 \end_layout
11200
11201 \begin_layout Standard
11202
11203 \emph on
11204 function
11205 \emph default
11206  is the function you want LyX to perform.
11207  It is the same as the commands you'd use in the minibuffer.
11208 \end_layout
11209
11210 \begin_layout Standard
11211
11212 \emph on
11213 argument
11214 \emph default
11215  is an optional argument which is meaningful only to some functions (for
11216  instance 
11217 \begin_inset Quotes eld
11218 \end_inset
11219
11220 self-insert
11221 \begin_inset Quotes erd
11222 \end_inset
11223
11224  which will insert the argument as text at the cursor position.)
11225 \end_layout
11226
11227 \begin_layout Standard
11228 The answer from LyX will arrive in the output pipe and be of the form
11229 \end_layout
11230
11231 \begin_layout Quote
11232 INFO:
11233 \emph on
11234 clientname
11235 \emph default
11236 :
11237 \emph on
11238 function
11239 \emph default
11240 :
11241 \emph on
11242 data
11243 \end_layout
11244
11245 \begin_layout Standard
11246 where 
11247 \emph on
11248 clientname
11249 \emph default
11250  and 
11251 \emph on
11252 function
11253 \emph default
11254  are just echoed from the command request, while 
11255 \emph on
11256 data
11257 \emph default
11258  is more or less useful information filled according to how the command
11259  execution worked out.
11260  Some commands will return information about the internal state of LyX,
11261  such as 
11262 \begin_inset Quotes eld
11263 \end_inset
11264
11265 font-state
11266 \begin_inset Quotes erd
11267 \end_inset
11268
11269 , while other will return an empty data-response.
11270  This means that the command execution went fine.
11271 \end_layout
11272
11273 \begin_layout Standard
11274 In case of errors, the response from LyX will have this form
11275 \end_layout
11276
11277 \begin_layout Quote
11278 ERROR:
11279 \emph on
11280 clientname
11281 \emph default
11282 :
11283 \emph on
11284 function
11285 \emph default
11286 :
11287 \emph on
11288 error message
11289 \end_layout
11290
11291 \begin_layout Standard
11292 where the 
11293 \emph on
11294 error message
11295 \emph default
11296  should contain an explanation of why the command failed.
11297 \end_layout
11298
11299 \begin_layout Standard
11300 Examples:
11301 \end_layout
11302
11303 \begin_layout LyX-Code
11304 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
11305 \end_layout
11306
11307 \begin_layout LyX-Code
11308 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
11309 \newline
11310 read a <~/.lyxpipe.out
11311 \newline
11312 echo $a
11313 \end_layout
11314
11315 \begin_layout Section
11316 Notification
11317 \end_layout
11318
11319 \begin_layout Standard
11320 LyX can notify clients of events going on asynchronously.
11321  Currently it will only do this if the user binds a key sequence with the
11322  function 
11323 \begin_inset Quotes eld
11324 \end_inset
11325
11326 notify
11327 \begin_inset Quotes erd
11328 \end_inset
11329
11330 .
11331  The format of the string LyX sends is as follows:
11332 \end_layout
11333
11334 \begin_layout Quote
11335
11336 \family typewriter
11337 NOTIFY:
11338 \family default
11339 \emph on
11340 key-sequence
11341 \end_layout
11342
11343 \begin_layout Standard
11344 where 
11345 \emph on
11346 key-sequence
11347 \emph default
11348  is the printed representation of the key sequence that was actually typed
11349  by the user.
11350 \end_layout
11351
11352 \begin_layout Standard
11353 This mechanism can be used to extend LyX's command set and implement macros:
11354  bind some key sequence to 
11355 \begin_inset Quotes eld
11356 \end_inset
11357
11358 notify
11359 \begin_inset Quotes erd
11360 \end_inset
11361
11362 , start a client that listens on the out pipe, dispatches the command according
11363  to the sequence and starts a function that may use LyX calls and LyX requests
11364  to issue a command or a series of commands to LyX.
11365 \end_layout
11366
11367 \begin_layout Section
11368 The simple LyX Server Protocol
11369 \end_layout
11370
11371 \begin_layout Standard
11372 LyX implements a simple protocol that can be used for session management.
11373  All messages are of the form
11374 \end_layout
11375
11376 \begin_layout Quote
11377 LYXSRV:
11378 \emph on
11379 clientname
11380 \emph default
11381 :
11382 \emph on
11383 protocol message
11384 \end_layout
11385
11386 \begin_layout Standard
11387 where 
11388 \emph on
11389 protocol message
11390 \emph default
11391  can be 
11392 \begin_inset Quotes eld
11393 \end_inset
11394
11395 hello
11396 \begin_inset Quotes erd
11397 \end_inset
11398
11399  or 
11400 \begin_inset Quotes eld
11401 \end_inset
11402
11403 bye
11404 \begin_inset Quotes erd
11405 \end_inset
11406
11407 .
11408  If 
11409 \begin_inset Quotes eld
11410 \end_inset
11411
11412 hello
11413 \begin_inset Quotes erd
11414 \end_inset
11415
11416  is received from a client, LyX will report back to inform the client that
11417  it's listening to it's messages, while 
11418 \begin_inset Quotes eld
11419 \end_inset
11420
11421 bye
11422 \begin_inset Quotes erd
11423 \end_inset
11424
11425  sent from LyX will inform clients that LyX is closing.
11426 \end_layout
11427
11428 \begin_layout Chapter
11429 \start_of_appendix
11430 Bindings
11431 \end_layout
11432
11433 \begin_layout Standard
11434 This appendix is a huge cross-reference to all the English language keybindings.
11435  Originally, we simply wanted to list all of the key bindings followed by
11436  the function it's bound to.
11437  That way, a user can look up a key to find out what it does.
11438  We then decided, what the hey, why not include the default toolbar and
11439  menu bindings, too.
11440  Please note this section is likely to be very out of date.
11441 \end_layout
11442
11443 \begin_layout Standard
11444 The form is really self-explanatory, but here are a few tips: all entries
11445  are arranged roughly alphabetically for a given modifier (
11446 \family sans
11447 C-a
11448 \family default
11449
11450 \family sans
11451 C-b
11452 \family default
11453 , etc.).
11454  For the general keyboard layout, simpler prefixes precede the more complex
11455  (
11456 \family sans
11457 C-s
11458 \family default
11459  before 
11460 \family sans
11461 C-S-c
11462 \family default
11463 ).
11464  All entries were gleaned from the default user interface and binding files
11465  located in the directories 
11466 \family typewriter
11467 \SpecialChar \ldots{}
11468 /share/lyx/ui
11469 \family default
11470  and 
11471 \family typewriter
11472 \SpecialChar \ldots{}
11473 /share/lyx/bind
11474 \family default
11475 ; they should be treated as the final word on the bindings.
11476 \end_layout
11477
11478 \begin_layout Standard
11479 As a final note, be aware that some window managers (such as FVWM) take
11480  control of some of the function keys or motion keys.
11481  
11482 \family sans
11483 C-right
11484 \family default
11485  is listed here as generating 
11486 \family typewriter
11487 word-forward
11488 \family default
11489 , but FVWM grabs it and uses it to change virtual desktops instead.
11490  Very annoying unless you instruct your window manager to stop intercepting
11491  such sequences.
11492 \end_layout
11493
11494 \begin_layout Section
11495 Toolbar
11496 \end_layout
11497
11498 \begin_layout LyX-Code
11499 Toolbar
11500 \end_layout
11501
11502 \begin_layout LyX-Code
11503     Layouts
11504 \end_layout
11505
11506 \begin_layout LyX-Code
11507     Icon "buffer-open"
11508 \end_layout
11509
11510 \begin_layout LyX-Code
11511     Icon "buffer-write"
11512 \end_layout
11513
11514 \begin_layout LyX-Code
11515     Icon "buffer-print"
11516 \end_layout
11517
11518 \begin_layout LyX-Code
11519     Separator
11520 \end_layout
11521
11522 \begin_layout LyX-Code
11523     Icon "cut"
11524 \end_layout
11525
11526 \begin_layout LyX-Code
11527     Icon "copy"
11528 \end_layout
11529
11530 \begin_layout LyX-Code
11531     Icon "paste"
11532 \end_layout
11533
11534 \begin_layout LyX-Code
11535     Separator
11536 \end_layout
11537
11538 \begin_layout LyX-Code
11539     Icon "font-emph"
11540 \end_layout
11541
11542 \begin_layout LyX-Code
11543     Icon "font-noun"
11544 \end_layout
11545
11546 \begin_layout LyX-Code
11547     Icon "font-free"
11548 \end_layout
11549
11550 \begin_layout LyX-Code
11551     Separator
11552 \end_layout
11553
11554 \begin_layout LyX-Code
11555     Icon "tex-mode"
11556 \end_layout
11557
11558 \begin_layout LyX-Code
11559     Icon "math-mode"
11560 \end_layout
11561
11562 \begin_layout LyX-Code
11563     Separator
11564 \end_layout
11565
11566 \begin_layout LyX-Code
11567     Icon "footnote-insert"
11568 \end_layout
11569
11570 \begin_layout LyX-Code
11571     Icon "marginpar-insert"
11572 \end_layout
11573
11574 \begin_layout LyX-Code
11575     Icon "depth-next"
11576 \end_layout
11577
11578 \begin_layout LyX-Code
11579     Separator
11580 \end_layout
11581
11582 \begin_layout LyX-Code
11583     Icon "figure-insert"
11584 \end_layout
11585
11586 \begin_layout LyX-Code
11587     Icon "dialog-tabular-insert"
11588 \end_layout
11589
11590 \begin_layout LyX-Code
11591 End
11592 \end_layout
11593
11594 \begin_layout Section
11595 Menu
11596 \end_layout
11597
11598 \begin_layout Standard
11599 Note that the following bindings are for LyX with English menus.
11600  The second character of the binding depends on the menu language.
11601  For example 
11602 \begin_inset Quotes eld
11603 \end_inset
11604
11605
11606 \family sans
11607 M-i r
11608 \family default
11609
11610 \begin_inset Quotes erd
11611 \end_inset
11612
11613  is with German menus 
11614 \begin_inset Quotes eld
11615 \end_inset
11616
11617
11618 \family sans
11619 M-e q
11620 \family default
11621
11622 \begin_inset Quotes erd
11623 \end_inset
11624
11625 .
11626  To find out the shortcuts of your language press the Meta (Alt)-key and
11627  press then the keys of the underlined characters of the menu names.
11628 \end_layout
11629
11630 \begin_layout Subsection
11631 File
11632 \end_layout
11633
11634 \begin_layout List
11635 \labelwidthstring 00.00.0000
11636
11637 \family sans
11638 M-f\InsetSpace ~
11639 a
11640 \family default
11641  
11642 \family typewriter
11643 buffer-write-as
11644 \end_layout
11645
11646 \begin_layout List
11647 \labelwidthstring 00.00.0000
11648
11649 \family sans
11650 M-f\InsetSpace ~
11651 c
11652 \family default
11653  
11654 \family typewriter
11655 buffer-close
11656 \end_layout
11657
11658 \begin_layout List
11659 \labelwidthstring 00.00.0000
11660
11661 \family sans
11662 M-f\InsetSpace ~
11663 d
11664 \family default
11665  
11666 \family typewriter
11667 buffer-reload
11668 \end_layout
11669
11670 \begin_layout List
11671 \labelwidthstring 00.00.0000
11672
11673 \family sans
11674 M-f\InsetSpace ~
11675 e
11676 \family default
11677  
11678 \family typewriter
11679 file_export
11680 \family default
11681  submenu
11682 \end_layout
11683
11684 \begin_layout List
11685 \labelwidthstring 00.00.0000
11686
11687 \family sans
11688 M-f\InsetSpace ~
11689 f
11690 \family default
11691  
11692 \family typewriter
11693 buffer-export fax
11694 \end_layout
11695
11696 \begin_layout List
11697 \labelwidthstring 00.00.0000
11698
11699 \family sans
11700 M-f\InsetSpace ~
11701 i
11702 \family default
11703  
11704 \family typewriter
11705 file_import
11706 \family default
11707  submenu
11708 \end_layout
11709
11710 \begin_layout List
11711 \labelwidthstring 00.00.0000
11712
11713 \family sans
11714 M-f\InsetSpace ~
11715 n
11716 \family default
11717  
11718 \family typewriter
11719 buffer-new
11720 \end_layout
11721
11722 \begin_layout List
11723 \labelwidthstring 00.00.0000
11724
11725 \family sans
11726 M-f\InsetSpace ~
11727 o
11728 \family default
11729  
11730 \family typewriter
11731 buffer-open
11732 \end_layout
11733
11734 \begin_layout List
11735 \labelwidthstring 00.00.0000
11736
11737 \family sans
11738 M-f\InsetSpace ~
11739 p
11740 \family default
11741  
11742 \family typewriter
11743 buffer-print
11744 \end_layout
11745
11746 \begin_layout List
11747 \labelwidthstring 00.00.0000
11748
11749 \family sans
11750 M-f\InsetSpace ~
11751 s
11752 \family default
11753  
11754 \family typewriter
11755 buffer-write
11756 \end_layout
11757
11758 \begin_layout List
11759 \labelwidthstring 00.00.0000
11760
11761 \family sans
11762 M-f\InsetSpace ~
11763 t
11764 \family default
11765  
11766 \family typewriter
11767 buffer-new-template
11768 \end_layout
11769
11770 \begin_layout List
11771 \labelwidthstring 00.00.0000
11772
11773 \family sans
11774 M-f\InsetSpace ~
11775 v
11776 \family default
11777  
11778 \family typewriter
11779 file_vc
11780 \family default
11781  submenu 
11782 \end_layout
11783
11784 \begin_deeper
11785 \begin_layout List
11786 \labelwidthstring 00.00.0000
11787
11788 \family sans
11789 h
11790 \family default
11791  
11792 \family typewriter
11793 vc-history 
11794 \end_layout
11795
11796 \begin_layout List
11797 \labelwidthstring 00.00.0000
11798
11799 \family sans
11800 i
11801 \family default
11802  
11803 \family typewriter
11804 vc-check-in
11805 \end_layout
11806
11807 \begin_layout List
11808 \labelwidthstring 00.00.0000
11809
11810 \family sans
11811 l
11812 \family default
11813  
11814 \family typewriter
11815 vc-revert
11816 \end_layout
11817
11818 \begin_layout List
11819 \labelwidthstring 00.00.0000
11820
11821 \family sans
11822 o
11823 \family default
11824  
11825 \family typewriter
11826 vc-check-out
11827 \end_layout
11828
11829 \begin_layout List
11830 \labelwidthstring 00.00.0000
11831
11832 \family sans
11833 r
11834 \family default
11835  
11836 \family typewriter
11837 vc-register
11838 \end_layout
11839
11840 \begin_layout List
11841 \labelwidthstring 00.00.0000
11842
11843 \family sans
11844 u
11845 \family default
11846  
11847 \family typewriter
11848 vc-undo-last
11849 \end_layout
11850
11851 \end_deeper
11852 \begin_layout List
11853 \labelwidthstring 00.00.0000
11854
11855 \family sans
11856 M-f\InsetSpace ~
11857 x
11858 \family default
11859  
11860 \family typewriter
11861 lyx-quit
11862 \end_layout
11863
11864 \begin_layout Subsection
11865 Edit
11866 \end_layout
11867
11868 \begin_layout List
11869 \labelwidthstring 00.00.0000
11870
11871 \family sans
11872 M-e\InsetSpace ~
11873 a
11874 \family default
11875  
11876 \family typewriter
11877 paste
11878 \end_layout
11879
11880 \begin_layout List
11881 \labelwidthstring 00.00.0000
11882
11883 \family sans
11884 M-e\InsetSpace ~
11885 c
11886 \family default
11887  
11888 \family typewriter
11889 cut
11890 \end_layout
11891
11892 \begin_layout List
11893 \labelwidthstring 00.00.0000
11894
11895 \family sans
11896 M-e\InsetSpace ~
11897 d
11898 \family default
11899  
11900 \family typewriter
11901 redo
11902 \end_layout
11903
11904 \begin_layout List
11905 \labelwidthstring 00.00.0000
11906
11907 \family sans
11908 M-e\InsetSpace ~
11909 e
11910 \family default
11911  
11912 \family typewriter
11913 error-remove-all
11914 \end_layout
11915
11916 \begin_layout List
11917 \labelwidthstring 00.00.0000
11918
11919 \family sans
11920 M-e\InsetSpace ~
11921 f
11922 \family default
11923  
11924 \family typewriter
11925 find-replace
11926 \end_layout
11927
11928 \begin_layout List
11929 \labelwidthstring 00.00.0000
11930
11931 \family sans
11932 M-e\InsetSpace ~
11933 h
11934 \family default
11935  
11936 \family typewriter
11937 buffer-chktex
11938 \end_layout
11939
11940 \begin_layout List
11941 \labelwidthstring 00.00.0000
11942
11943 \family sans
11944 M-e\InsetSpace ~
11945 i
11946 \family default
11947  
11948 \family typewriter
11949 edit_floats
11950 \family default
11951  submenu
11952 \end_layout
11953
11954 \begin_deeper
11955 \begin_layout List
11956 \labelwidthstring 00.00.0000
11957
11958 \family sans
11959 a
11960 \family default
11961  
11962 \family typewriter
11963 tabular-feature append-row
11964 \end_layout
11965
11966 \begin_layout List
11967 \labelwidthstring 00.00.0000
11968
11969 \family sans
11970 b
11971 \family default
11972  
11973 \family typewriter
11974 tabular-feature toggle-line-bottom
11975 \end_layout
11976
11977 \begin_layout List
11978 \labelwidthstring 00.00.0000
11979
11980 \family sans
11981 c
11982 \family default
11983  
11984 \family typewriter
11985 tabular-feature align-center
11986 \end_layout
11987
11988 \begin_layout List
11989 \labelwidthstring 00.00.0000
11990
11991 \family sans
11992 d
11993 \family default
11994  
11995 \family typewriter
11996 tabular-feature delete-column
11997 \end_layout
11998
11999 \begin_layout List
12000 \labelwidthstring 00.00.0000
12001
12002 \family sans
12003 e
12004 \family default
12005  
12006 \family typewriter
12007 tabular-feature align-left
12008 \end_layout
12009
12010 \begin_layout List
12011 \labelwidthstring 00.00.0000
12012
12013 \family sans
12014 i
12015 \family default
12016  
12017 \family typewriter
12018 tabular-feature align-right
12019 \end_layout
12020
12021 \begin_layout List
12022 \labelwidthstring 00.00.0000
12023
12024 \family sans
12025 l
12026 \family default
12027  
12028 \family typewriter
12029 tabular-feature toggle-line-left
12030 \end_layout
12031
12032 \begin_layout List
12033 \labelwidthstring 00.00.0000
12034
12035 \family sans
12036 m
12037 \family default
12038  
12039 \family typewriter
12040 tabular-feature multicolumn
12041 \end_layout
12042
12043 \begin_layout List
12044 \labelwidthstring 00.00.0000
12045
12046 \family sans
12047 n
12048 \family default
12049  
12050 \family typewriter
12051 tabular-feature valign-center
12052 \end_layout
12053
12054 \begin_layout List
12055 \labelwidthstring 00.00.0000
12056
12057 \family sans
12058 o
12059 \family default
12060  
12061 \family typewriter
12062 tabular-feature valign-top
12063 \end_layout
12064
12065 \begin_layout List
12066 \labelwidthstring 00.00.0000
12067
12068 \family sans
12069 r
12070 \family default
12071  
12072 \family typewriter
12073 tabular-feature toggle-line-right
12074 \end_layout
12075
12076 \begin_layout List
12077 \labelwidthstring 00.00.0000
12078
12079 \family sans
12080 t
12081 \family default
12082  
12083 \family typewriter
12084 tabular-feature toggle-line-top
12085 \end_layout
12086
12087 \begin_layout List
12088 \labelwidthstring 00.00.0000
12089
12090 \family sans
12091 u
12092 \family default
12093  
12094 \family typewriter
12095 tabular-feature append-column
12096 \end_layout
12097
12098 \begin_layout List
12099 \labelwidthstring 00.00.0000
12100
12101 \family sans
12102 v
12103 \family default
12104  
12105 \family typewriter
12106 tabular-feature valign-bottom
12107 \end_layout
12108
12109 \begin_layout List
12110 \labelwidthstring 00.00.0000
12111
12112 \family sans
12113 w
12114 \family default
12115  
12116 \family typewriter
12117 tabular-feature delete-row
12118 \end_layout
12119
12120 \end_deeper
12121 \begin_layout List
12122 \labelwidthstring 00.00.0000
12123
12124 \family sans
12125 M-e\InsetSpace ~
12126 l
12127 \family default
12128  
12129 \family typewriter
12130 math-panel
12131 \end_layout
12132
12133 \begin_deeper
12134 \begin_layout List
12135 \labelwidthstring 00.00.0000
12136
12137 \family sans
12138 a
12139 \family default
12140  
12141 \family typewriter
12142 floats-operate openfoot
12143 \end_layout
12144
12145 \begin_layout List
12146 \labelwidthstring 00.00.0000
12147
12148 \family sans
12149 c
12150 \family default
12151  
12152 \family typewriter
12153 floats-operate closefoot
12154 \end_layout
12155
12156 \begin_layout List
12157 \labelwidthstring 00.00.0000
12158
12159 \family sans
12160 f
12161 \family default
12162  
12163 \family typewriter
12164 floats-operate openfig
12165 \end_layout
12166
12167 \begin_layout List
12168 \labelwidthstring 00.00.0000
12169
12170 \family sans
12171 m
12172 \family default
12173  
12174 \family typewriter
12175 melt
12176 \end_layout
12177
12178 \begin_layout List
12179 \labelwidthstring 00.00.0000
12180
12181 \family sans
12182 o
12183 \family default
12184  
12185 \family typewriter
12186 open-stuff
12187 \end_layout
12188
12189 \begin_layout List
12190 \labelwidthstring 00.00.0000
12191
12192 \family sans
12193 t
12194 \family default
12195  
12196 \family typewriter
12197 floats-operate closefig
12198 \end_layout
12199
12200 \end_deeper
12201 \begin_layout List
12202 \labelwidthstring 00.00.0000
12203
12204 \family sans
12205 M-e\InsetSpace ~
12206 o
12207 \family default
12208  
12209 \family typewriter
12210 copy
12211 \end_layout
12212
12213 \begin_layout List
12214 \labelwidthstring 00.00.0000
12215
12216 \family sans
12217 M-e\InsetSpace ~
12218 p
12219 \family default
12220  
12221 \family typewriter
12222 dialog-preferences
12223 \family default
12224  
12225 \end_layout
12226
12227 \begin_layout List
12228 \labelwidthstring 00.00.0000
12229
12230 \family sans
12231 M-e\InsetSpace ~
12232 r
12233 \family default
12234  
12235 \family typewriter
12236 reconfigure
12237 \end_layout
12238
12239 \begin_layout List
12240 \labelwidthstring 00.00.0000
12241
12242 \family sans
12243 M-e\InsetSpace ~
12244 s
12245 \family default
12246  
12247 \family typewriter
12248 spellchecker
12249 \end_layout
12250
12251 \begin_layout List
12252 \labelwidthstring 00.00.0000
12253
12254 \family sans
12255 M-e\InsetSpace ~
12256 t
12257 \family default
12258  
12259 \family typewriter
12260 edit_tabular
12261 \family default
12262  submenu
12263 \end_layout
12264
12265 \begin_layout List
12266 \labelwidthstring 00.00.0000
12267
12268 \family sans
12269 M-e\InsetSpace ~
12270 u
12271 \family default
12272  
12273 \family typewriter
12274 undo
12275 \end_layout
12276
12277 \begin_layout List
12278 \labelwidthstring 00.00.0000
12279
12280 \family sans
12281 M-e\InsetSpace ~
12282 x
12283 \family default
12284  
12285 \family typewriter
12286 edit_paste
12287 \family default
12288  submenu
12289 \end_layout
12290
12291 \begin_deeper
12292 \begin_layout List
12293 \labelwidthstring 00.00.0000
12294
12295 \family sans
12296 l
12297 \family default
12298  
12299 \family typewriter
12300 primary-selection-paste
12301 \end_layout
12302
12303 \begin_layout List
12304 \labelwidthstring 00.00.0000
12305
12306 \family sans
12307 p
12308 \family default
12309  
12310 \family typewriter
12311 primary-selection-paste paragraph
12312 \end_layout
12313
12314 \end_deeper
12315 \begin_layout Subsection
12316 Insert
12317 \end_layout
12318
12319 \begin_layout List
12320 \labelwidthstring 00.00.0000
12321
12322 \family sans
12323 M-i\InsetSpace ~
12324 a
12325 \family default
12326  
12327 \family typewriter
12328 insert_floats
12329 \family default
12330  submenu
12331 \end_layout
12332
12333 \begin_deeper
12334 \begin_layout List
12335 \labelwidthstring 00.00.0000
12336
12337 \family sans
12338 a
12339 \family default
12340  
12341 \family typewriter
12342 buffer-float-insert algorithm
12343 \end_layout
12344
12345 \begin_layout List
12346 \labelwidthstring 00.00.0000
12347
12348 \family sans
12349 d
12350 \family default
12351  
12352 \family typewriter
12353 buffer-float-insert wide-tab
12354 \end_layout
12355
12356 \begin_layout List
12357 \labelwidthstring 00.00.0000
12358
12359 \family sans
12360 f
12361 \family default
12362  
12363 \family typewriter
12364 buffer-float-insert figure
12365 \end_layout
12366
12367 \begin_layout List
12368 \labelwidthstring 00.00.0000
12369
12370 \family sans
12371 t
12372 \family default
12373  
12374 \family typewriter
12375 buffer-float-insert table
12376 \end_layout
12377
12378 \begin_layout List
12379 \labelwidthstring 00.00.0000
12380
12381 \family sans
12382 w
12383 \family default
12384  
12385 \family typewriter
12386 buffer-float-insert wide-fig
12387 \end_layout
12388
12389 \end_deeper
12390 \begin_layout List
12391 \labelwidthstring 00.00.0000
12392
12393 \family sans
12394 M-i\InsetSpace ~
12395 b
12396 \family default
12397  
12398 \family typewriter
12399 dialog-tabular-insert
12400 \end_layout
12401
12402 \begin_layout List
12403 \labelwidthstring 00.00.0000
12404
12405 \family sans
12406 M-i\InsetSpace ~
12407 c
12408 \family default
12409  
12410 \family typewriter
12411 citation-insert
12412 \end_layout
12413
12414 \begin_layout List
12415 \labelwidthstring 00.00.0000
12416
12417 \family sans
12418 M-i\InsetSpace ~
12419 d
12420 \family default
12421  
12422 \family typewriter
12423 math-display
12424 \end_layout
12425
12426 \begin_layout List
12427 \labelwidthstring 00.00.0000
12428
12429 \family sans
12430 M-i\InsetSpace ~
12431 e
12432 \family default
12433  
12434 \family typewriter
12435 buffer-child-insert
12436 \end_layout
12437
12438 \begin_layout List
12439 \labelwidthstring 00.00.0000
12440
12441 \family sans
12442 M-i\InsetSpace ~
12443 f
12444 \family default
12445  
12446 \family typewriter
12447 footnote-insert
12448 \end_layout
12449
12450 \begin_layout List
12451 \labelwidthstring 00.00.0000
12452
12453 \family sans
12454 M-i\InsetSpace ~
12455 g
12456 \family default
12457  
12458 \family typewriter
12459 figure-insert
12460 \end_layout
12461
12462 \begin_layout List
12463 \labelwidthstring 00.00.0000
12464
12465 \family sans
12466 M-i\InsetSpace ~
12467 h
12468 \family default
12469  
12470 \family typewriter
12471 math-mode
12472 \end_layout
12473
12474 \begin_layout List
12475 \labelwidthstring 00.00.0000
12476
12477 \family sans
12478 M-i\InsetSpace ~
12479 i
12480 \family default
12481  
12482 \family typewriter
12483 index-insert
12484 \end_layout
12485
12486 \begin_layout List
12487 \labelwidthstring 00.00.0000
12488
12489 \family sans
12490 M-i\InsetSpace ~
12491 l
12492 \family default
12493  
12494 \family typewriter
12495 label-insert
12496 \end_layout
12497
12498 \begin_layout List
12499 \labelwidthstring 00.00.0000
12500
12501 \family sans
12502 M-i\InsetSpace ~
12503 m
12504 \family default
12505  
12506 \family typewriter
12507 marginpar-insert
12508 \end_layout
12509
12510 \begin_layout List
12511 \labelwidthstring 00.00.0000
12512
12513 \family sans
12514 M-i\InsetSpace ~
12515 n
12516 \family default
12517  
12518 \family typewriter
12519 note-insert
12520 \end_layout
12521
12522 \begin_layout List
12523 \labelwidthstring 00.00.0000
12524
12525 \family sans
12526 M-i\InsetSpace ~
12527 o
12528 \family default
12529  
12530 \family typewriter
12531 insert_toc
12532 \family default
12533  submenu
12534 \end_layout
12535
12536 \begin_deeper
12537 \begin_layout List
12538 \labelwidthstring 00.00.0000
12539
12540 \family sans
12541 a
12542 \family default
12543  
12544 \family typewriter
12545 loa-insert
12546 \end_layout
12547
12548 \begin_layout List
12549 \labelwidthstring 00.00.0000
12550
12551 \family sans
12552 b
12553 \family default
12554  
12555 \family typewriter
12556 bibtex-insert
12557 \end_layout
12558
12559 \begin_layout List
12560 \labelwidthstring 00.00.0000
12561
12562 \family sans
12563 c
12564 \family default
12565  
12566 \family typewriter
12567 toc-insert
12568 \end_layout
12569
12570 \begin_layout List
12571 \labelwidthstring 00.00.0000
12572
12573 \family sans
12574 f
12575 \family default
12576  
12577 \family typewriter
12578 lof-insert
12579 \end_layout
12580
12581 \begin_layout List
12582 \labelwidthstring 00.00.0000
12583
12584 \family sans
12585 i
12586 \family default
12587  
12588 \family typewriter
12589 index-print
12590 \end_layout
12591
12592 \begin_layout List
12593 \labelwidthstring 00.00.0000
12594
12595 \family sans
12596 t
12597 \family default
12598  
12599 \family typewriter
12600 lot-insert
12601 \end_layout
12602
12603 \end_deeper
12604 \begin_layout List
12605 \labelwidthstring 00.00.0000
12606
12607 \family sans
12608 M-i\InsetSpace ~
12609 r
12610 \family default
12611  
12612 \family typewriter
12613 reference-insert
12614 \end_layout
12615
12616 \begin_layout List
12617 \labelwidthstring 00.00.0000
12618
12619 \family sans
12620 M-i\InsetSpace ~
12621 s
12622 \family default
12623  
12624 \family typewriter
12625 insert_special
12626 \family default
12627  submenu
12628 \end_layout
12629
12630 \begin_deeper
12631 \begin_layout List
12632 \labelwidthstring 00.00.0000
12633
12634 \family sans
12635 b
12636 \family default
12637  
12638 \family typewriter
12639 protected-space-insert
12640 \end_layout
12641
12642 \begin_layout List
12643 \labelwidthstring 00.00.0000
12644
12645 \family sans
12646 e
12647 \family default
12648  
12649 \family typewriter
12650 end-of-sentence-period-insert
12651 \end_layout
12652
12653 \begin_layout List
12654 \labelwidthstring 00.00.0000
12655
12656 \family sans
12657 h
12658 \family default
12659  
12660 \family typewriter
12661 hfill-insert
12662 \end_layout
12663
12664 \begin_layout List
12665 \labelwidthstring 00.00.0000
12666
12667 \family sans
12668 i
12669 \family default
12670  
12671 \family typewriter
12672 dots-insert
12673 \end_layout
12674
12675 \begin_layout List
12676 \labelwidthstring 00.00.0000
12677
12678 \family sans
12679 l
12680 \family default
12681  
12682 \family typewriter
12683 break-line
12684 \end_layout
12685
12686 \begin_layout List
12687 \labelwidthstring 00.00.0000
12688
12689 \family sans
12690 m
12691 \family default
12692  
12693 \family typewriter
12694 menu-separator-insert
12695 \end_layout
12696
12697 \begin_layout List
12698 \labelwidthstring 00.00.0000
12699
12700 \family sans
12701 p
12702 \family default
12703  
12704 \family typewriter
12705 hyphenation-point-insert
12706 \end_layout
12707
12708 \begin_layout List
12709 \labelwidthstring 00.00.0000
12710
12711 \family sans
12712 q
12713 \family default
12714  
12715 \family typewriter
12716 quote-insert
12717 \end_layout
12718
12719 \begin_layout List
12720 \labelwidthstring 00.00.0000
12721
12722 \family sans
12723 s
12724 \family default
12725  
12726 \family typewriter
12727 command-sequence math-insert ^;math-mode;
12728 \end_layout
12729
12730 \begin_layout List
12731 \labelwidthstring 00.00.0000
12732
12733 \family sans
12734 u
12735 \family default
12736  
12737 \family typewriter
12738 command-sequence math-insert _;math-mode;
12739 \end_layout
12740
12741 \end_deeper
12742 \begin_layout List
12743 \labelwidthstring 00.00.0000
12744
12745 \family sans
12746 M-i\InsetSpace ~
12747 t
12748 \family default
12749  
12750 \family typewriter
12751 insert_file
12752 \family default
12753  submenu
12754 \end_layout
12755
12756 \begin_deeper
12757 \begin_layout List
12758 \labelwidthstring 00.00.0000
12759
12760 \family sans
12761 l
12762 \family default
12763  
12764 \family typewriter
12765 file-insert-plaintext lines
12766 \end_layout
12767
12768 \begin_layout List
12769 \labelwidthstring 00.00.0000
12770
12771 \family sans
12772 p
12773 \family default
12774  
12775 \family typewriter
12776 file-insert-plaintext paragraphs
12777 \end_layout
12778
12779 \begin_layout List
12780 \labelwidthstring 00.00.0000
12781
12782 \family sans
12783 x
12784 \family default
12785  
12786 \family typewriter
12787 file-insert
12788 \end_layout
12789
12790 \end_deeper
12791 \begin_layout List
12792 \labelwidthstring 00.00.0000
12793
12794 \family sans
12795 M-i\InsetSpace ~
12796 u
12797 \family default
12798  
12799 \family typewriter
12800 url-insert
12801 \end_layout
12802
12803 \begin_layout List
12804 \labelwidthstring 00.00.0000
12805
12806 \family sans
12807 M-i\InsetSpace ~
12808 w
12809 \family default
12810  
12811 \family typewriter
12812 index-insert-last
12813 \end_layout
12814
12815 \begin_layout List
12816 \labelwidthstring 00.00.0000
12817
12818 \family sans
12819 M-i\InsetSpace ~
12820 x
12821 \family default
12822  
12823 \family typewriter
12824 external-insert
12825 \end_layout
12826
12827 \begin_layout Subsection
12828 Layout
12829 \end_layout
12830
12831 \begin_layout List
12832 \labelwidthstring 00.00.0000
12833
12834 \family sans
12835 M-l\InsetSpace ~
12836 a
12837 \family default
12838  
12839 \family typewriter
12840 appendix
12841 \end_layout
12842
12843 \begin_layout List
12844 \labelwidthstring 00.00.0000
12845
12846 \family sans
12847 M-l\InsetSpace ~
12848 b
12849 \family default
12850  
12851 \family typewriter
12852 font-bold
12853 \end_layout
12854
12855 \begin_layout List
12856 \labelwidthstring 00.00.0000
12857
12858 \family sans
12859 M-l\InsetSpace ~
12860 c
12861 \family default
12862  
12863 \family typewriter
12864 layout-character
12865 \end_layout
12866
12867 \begin_layout List
12868 \labelwidthstring 00.00.0000
12869
12870 \family sans
12871 M-l\InsetSpace ~
12872 d
12873 \family default
12874  
12875 \family typewriter
12876 layout-document
12877 \end_layout
12878
12879 \begin_layout List
12880 \labelwidthstring 00.00.0000
12881
12882 \family sans
12883 M-l\InsetSpace ~
12884 e
12885 \family default
12886  
12887 \family typewriter
12888 font-emph
12889 \end_layout
12890
12891 \begin_layout List
12892 \labelwidthstring 00.00.0000
12893
12894 \family sans
12895 M-l\InsetSpace ~
12896 l
12897 \family default
12898  
12899 \family typewriter
12900 layout-preamble
12901 \end_layout
12902
12903 \begin_layout List
12904 \labelwidthstring 00.00.0000
12905
12906 \family sans
12907 M-l\InsetSpace ~
12908 n
12909 \family default
12910  
12911 \family typewriter
12912 font-noun
12913 \end_layout
12914
12915 \begin_layout List
12916 \labelwidthstring 00.00.0000
12917
12918 \family sans
12919 M-l\InsetSpace ~
12920 p
12921 \family default
12922  
12923 \family typewriter
12924 layout-paragraph
12925 \end_layout
12926
12927 \begin_layout List
12928 \labelwidthstring 00.00.0000
12929
12930 \family sans
12931 M-l\InsetSpace ~
12932 s
12933 \family default
12934  
12935 \family typewriter
12936 layout-save-default
12937 \end_layout
12938
12939 \begin_layout List
12940 \labelwidthstring 00.00.0000
12941
12942 \family sans
12943 M-l\InsetSpace ~
12944 t
12945 \family default
12946  
12947 \family typewriter
12948 layout-tabular
12949 \end_layout
12950
12951 \begin_layout List
12952 \labelwidthstring 00.00.0000
12953
12954 \family sans
12955 M-l\InsetSpace ~
12956 v
12957 \family default
12958  
12959 \family typewriter
12960 depth-increment
12961 \end_layout
12962
12963 \begin_layout List
12964 \labelwidthstring 00.00.0000
12965
12966 \family sans
12967 M-l\InsetSpace ~
12968 x
12969 \family default
12970  
12971 \family typewriter
12972 tex-mode
12973 \end_layout
12974
12975 \begin_layout Subsubsection
12976
12977 \family sans
12978 Layout\SpecialChar \menuseparator
12979 Character
12980 \family default
12981  
12982 \end_layout
12983
12984 \begin_layout List
12985 \labelwidthstring 00.00.0000
12986
12987 \family sans
12988 M-c\InsetSpace ~
12989 b
12990 \family default
12991  
12992 \family typewriter
12993 font-bold
12994 \end_layout
12995
12996 \begin_layout List
12997 \labelwidthstring 00.00.0000
12998
12999 \family sans
13000 M-c\InsetSpace ~
13001 c
13002 \family default
13003  
13004 \family typewriter
13005 font-noun
13006 \end_layout
13007
13008 \begin_layout List
13009 \labelwidthstring 00.00.0000
13010
13011 \family sans
13012 M-c\InsetSpace ~
13013 e
13014 \family default
13015  
13016 \family typewriter
13017 font-emph
13018 \end_layout
13019
13020 \begin_layout List
13021 \labelwidthstring 00.00.0000
13022
13023 \family sans
13024 M-c\InsetSpace ~
13025 m
13026 \family default
13027  
13028 \family typewriter
13029 math-mode
13030 \end_layout
13031
13032 \begin_layout List
13033 \labelwidthstring 00.00.0000
13034
13035 \family sans
13036 M-c\InsetSpace ~
13037 p
13038 \family default
13039  
13040 \family typewriter
13041 font-code
13042 \end_layout
13043
13044 \begin_layout List
13045 \labelwidthstring 00.00.0000
13046
13047 \family sans
13048 M-c\InsetSpace ~
13049 r
13050 \family default
13051  
13052 \family typewriter
13053 font-roman
13054 \end_layout
13055
13056 \begin_layout List
13057 \labelwidthstring 00.00.0000
13058
13059 \family sans
13060 M-c\InsetSpace ~
13061 s
13062 \family default
13063  
13064 \family typewriter
13065 font-sans
13066 \end_layout
13067
13068 \begin_layout List
13069 \labelwidthstring 00.00.0000
13070
13071 \family sans
13072 M-c\InsetSpace ~
13073 u
13074 \family default
13075  
13076 \family typewriter
13077 font-underline
13078 \end_layout
13079
13080 \begin_layout List
13081 \labelwidthstring 00.00.0000
13082
13083 \family sans
13084 M-c\InsetSpace ~
13085 space
13086 \family default
13087  
13088 \family typewriter
13089 font-default
13090 \end_layout
13091
13092 \begin_layout List
13093 \labelwidthstring 00.00.0000
13094
13095 \family sans
13096 M-c\InsetSpace ~
13097 Down
13098 \family default
13099  
13100 \family typewriter
13101 word-lowcase
13102 \end_layout
13103
13104 \begin_layout List
13105 \labelwidthstring 00.00.0000
13106
13107 \family sans
13108 M-c\InsetSpace ~
13109 Up
13110 \family default
13111  
13112 \family typewriter
13113 word-upcase
13114 \end_layout
13115
13116 \begin_layout List
13117 \labelwidthstring 00.00.0000
13118
13119 \family sans
13120 M-c\InsetSpace ~
13121 Right
13122 \family default
13123  
13124 \family typewriter
13125 word-capitalize
13126 \end_layout
13127
13128 \begin_layout List
13129 \labelwidthstring 00.00.0000
13130
13131 \family sans
13132 M-s\InsetSpace ~
13133 h
13134 \family default
13135  
13136 \family typewriter
13137 font-size huge
13138 \end_layout
13139
13140 \begin_layout List
13141 \labelwidthstring 00.00.0000
13142
13143 \family sans
13144 M-s\InsetSpace ~
13145 l
13146 \family default
13147  
13148 \family typewriter
13149 font-size large
13150 \end_layout
13151
13152 \begin_layout List
13153 \labelwidthstring 00.00.0000
13154
13155 \family sans
13156 M-s\InsetSpace ~
13157 n
13158 \family default
13159  
13160 \family typewriter
13161 font-size normal
13162 \end_layout
13163
13164 \begin_layout List
13165 \labelwidthstring 00.00.0000
13166
13167 \family sans
13168 M-s\InsetSpace ~
13169 s
13170 \family default
13171  
13172 \family typewriter
13173 font-size small
13174 \end_layout
13175
13176 \begin_layout List
13177 \labelwidthstring 00.00.0000
13178
13179 \family sans
13180 M-s\InsetSpace ~
13181 t
13182 \family default
13183  
13184 \family typewriter
13185 font-size tiny
13186 \end_layout
13187
13188 \begin_layout List
13189 \labelwidthstring 00.00.0000
13190
13191 \family sans
13192 M-s\InsetSpace ~
13193 0
13194 \family default
13195  
13196 \family typewriter
13197 font-size huger
13198 \end_layout
13199
13200 \begin_layout List
13201 \labelwidthstring 00.00.0000
13202
13203 \family sans
13204 M-s\InsetSpace ~
13205 1
13206 \family default
13207  
13208 \family typewriter
13209 font-size tiny
13210 \end_layout
13211
13212 \begin_layout List
13213 \labelwidthstring 00.00.0000
13214
13215 \family sans
13216 M-s\InsetSpace ~
13217 2
13218 \family default
13219  
13220 \family typewriter
13221 font-size smallest
13222 \end_layout
13223
13224 \begin_layout List
13225 \labelwidthstring 00.00.0000
13226
13227 \family sans
13228 M-s\InsetSpace ~
13229 3
13230 \family default
13231  
13232 \family typewriter
13233 font-size smaller
13234 \end_layout
13235
13236 \begin_layout List
13237 \labelwidthstring 00.00.0000
13238
13239 \family sans
13240 M-s\InsetSpace ~
13241 4
13242 \family default
13243  
13244 \family typewriter
13245 font-size small
13246 \end_layout
13247
13248 \begin_layout List
13249 \labelwidthstring 00.00.0000
13250
13251 \family sans
13252 M-s\InsetSpace ~
13253 5
13254 \family default
13255  
13256 \family typewriter
13257 font-size normal
13258 \end_layout
13259
13260 \begin_layout List
13261 \labelwidthstring 00.00.0000
13262
13263 \family sans
13264 M-s\InsetSpace ~
13265 6
13266 \family default
13267  
13268 \family typewriter
13269 font-size large
13270 \end_layout
13271
13272 \begin_layout List
13273 \labelwidthstring 00.00.0000
13274
13275 \family sans
13276 M-s\InsetSpace ~
13277 7
13278 \family default
13279  
13280 \family typewriter
13281 font-size larger
13282 \end_layout
13283
13284 \begin_layout List
13285 \labelwidthstring 00.00.0000
13286
13287 \family sans
13288 M-s\InsetSpace ~
13289 8
13290 \family default
13291  
13292 \family typewriter
13293 font-size largest
13294 \end_layout
13295
13296 \begin_layout List
13297 \labelwidthstring 00.00.0000
13298
13299 \family sans
13300 M-s\InsetSpace ~
13301 9
13302 \family default
13303  
13304 \family typewriter
13305 font-size huge
13306 \end_layout
13307
13308 \begin_layout List
13309 \labelwidthstring 00.00.0000
13310
13311 \family sans
13312 M-s\InsetSpace ~
13313 S-H
13314 \family default
13315  
13316 \family typewriter
13317 font-size huger
13318 \end_layout
13319
13320 \begin_layout List
13321 \labelwidthstring 00.00.0000
13322
13323 \family sans
13324 M-s\InsetSpace ~
13325 S-L
13326 \family default
13327  
13328 \family typewriter
13329 font-size larger
13330 \end_layout
13331
13332 \begin_layout List
13333 \labelwidthstring 00.00.0000
13334
13335 \family sans
13336 M-s\InsetSpace ~
13337 S-S
13338 \family default
13339  
13340 \family typewriter
13341 font-size smaller
13342 \end_layout
13343
13344 \begin_layout List
13345 \labelwidthstring 00.00.0000
13346
13347 \family sans
13348 M-s\InsetSpace ~
13349 plus
13350 \family default
13351  
13352 \family typewriter
13353 font-size increase
13354 \end_layout
13355
13356 \begin_layout List
13357 \labelwidthstring 00.00.0000
13358
13359 \family sans
13360 M-s\InsetSpace ~
13361 minus
13362 \family default
13363  
13364 \family typewriter
13365 font-size decrease
13366 \end_layout
13367
13368 \begin_layout Subsection
13369 View
13370 \end_layout
13371
13372 \begin_layout Subsection
13373 Navigate
13374 \end_layout
13375
13376 \begin_layout Subsection
13377 Help
13378 \end_layout
13379
13380 \begin_layout Subsection
13381 Paragraph Style
13382 \end_layout
13383
13384 \begin_layout List
13385 \labelwidthstring 00.00.0000
13386
13387 \family sans
13388 M-p\InsetSpace ~
13389 a
13390 \family default
13391  
13392 \family typewriter
13393 layout Abstract
13394 \end_layout
13395
13396 \begin_layout List
13397 \labelwidthstring 00.00.0000
13398
13399 \family sans
13400 M-p\InsetSpace ~
13401 b
13402 \family default
13403  
13404 \family typewriter
13405 layout Itemize
13406 \end_layout
13407
13408 \begin_layout List
13409 \labelwidthstring 00.00.0000
13410
13411 \family sans
13412 M-p\InsetSpace ~
13413 c
13414 \family default
13415  
13416 \family typewriter
13417 layout LyX-Code
13418 \end_layout
13419
13420 \begin_layout List
13421 \labelwidthstring 00.00.0000
13422
13423 \family sans
13424 M-p\InsetSpace ~
13425 d
13426 \family default
13427  
13428 \family typewriter
13429 layout Description
13430 \end_layout
13431
13432 \begin_layout List
13433 \labelwidthstring 00.00.0000
13434
13435 \family sans
13436 M-p\InsetSpace ~
13437 e
13438 \family default
13439  
13440 \family typewriter
13441 layout Enumerate
13442 \end_layout
13443
13444 \begin_layout List
13445 \labelwidthstring 00.00.0000
13446
13447 \family sans
13448 M-p\InsetSpace ~
13449 f
13450 \family default
13451  
13452 \family typewriter
13453 layout ShortFoilhead
13454 \end_layout
13455
13456 \begin_layout List
13457 \labelwidthstring 00.00.0000
13458
13459 \family sans
13460 M-p\InsetSpace ~
13461 i
13462 \family default
13463  
13464 \family typewriter
13465 layout Itemize
13466 \end_layout
13467
13468 \begin_layout List
13469 \labelwidthstring 00.00.0000
13470
13471 \family sans
13472 M-p\InsetSpace ~
13473 l
13474 \family default
13475  
13476 \family typewriter
13477 layout List
13478 \end_layout
13479
13480 \begin_layout List
13481 \labelwidthstring 00.00.0000
13482
13483 \family sans
13484 M-p\InsetSpace ~
13485 n
13486 \family default
13487  
13488 \family typewriter
13489 layout Enumerate
13490 \end_layout
13491
13492 \begin_layout List
13493 \labelwidthstring 00.00.0000
13494
13495 \family sans
13496 M-p\InsetSpace ~
13497 q
13498 \family default
13499  
13500 \family typewriter
13501 layout Quote
13502 \end_layout
13503
13504 \begin_layout List
13505 \labelwidthstring 00.00.0000
13506
13507 \family sans
13508 M-p\InsetSpace ~
13509 r
13510 \family default
13511  
13512 \family typewriter
13513 layout ShortRotatefoilhead
13514 \end_layout
13515
13516 \begin_layout List
13517 \labelwidthstring 00.00.0000
13518
13519 \family sans
13520 M-p\InsetSpace ~
13521 s
13522 \family default
13523  
13524 \family typewriter
13525 layout Standard
13526 \end_layout
13527
13528 \begin_layout List
13529 \labelwidthstring 00.00.0000
13530
13531 \family sans
13532 M-p\InsetSpace ~
13533 t
13534 \family default
13535  
13536 \family typewriter
13537 layout Title
13538 \end_layout
13539
13540 \begin_layout List
13541 \labelwidthstring 00.00.0000
13542
13543 \family sans
13544 M-p\InsetSpace ~
13545 v
13546 \family default
13547  
13548 \family typewriter
13549 layout Verse
13550 \end_layout
13551
13552 \begin_layout List
13553 \labelwidthstring 00.00.0000
13554
13555 \family sans
13556 M-p\InsetSpace ~
13557 space
13558 \family default
13559  
13560 \family typewriter
13561 drop-layouts-choice
13562 \end_layout
13563
13564 \begin_layout List
13565 \labelwidthstring 00.00.0000
13566
13567 \family sans
13568 M-p
13569 \noun on
13570 \InsetSpace ~
13571 0
13572 \family default
13573 \noun default
13574  
13575 \family typewriter
13576 layout Part
13577 \end_layout
13578
13579 \begin_layout List
13580 \labelwidthstring 00.00.0000
13581
13582 \family sans
13583 M-p
13584 \noun on
13585 \InsetSpace ~
13586 1
13587 \family default
13588 \noun 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 2
13600 \family default
13601  
13602 \family typewriter
13603 layout Section
13604 \end_layout
13605
13606 \begin_layout List
13607 \labelwidthstring 00.00.0000
13608
13609 \family sans
13610 M-p\InsetSpace ~
13611 3
13612 \family default
13613  
13614 \family typewriter
13615 layout Subsection
13616 \end_layout
13617
13618 \begin_layout List
13619 \labelwidthstring 00.00.0000
13620
13621 \family sans
13622 M-p\InsetSpace ~
13623 4
13624 \family default
13625  
13626 \family typewriter
13627 layout Subsubsection
13628 \end_layout
13629
13630 \begin_layout List
13631 \labelwidthstring 00.00.0000
13632
13633 \family sans
13634 M-p\InsetSpace ~
13635 5
13636 \family default
13637  
13638 \family typewriter
13639 layout Paragraph
13640 \end_layout
13641
13642 \begin_layout List
13643 \labelwidthstring 00.00.0000
13644
13645 \family sans
13646 M-p\InsetSpace ~
13647 6
13648 \family default
13649  
13650 \family typewriter
13651 layout Subparagraph
13652 \end_layout
13653
13654 \begin_layout List
13655 \labelwidthstring 00.00.0000
13656
13657 \family sans
13658 M-p\InsetSpace ~
13659 asterisk\InsetSpace ~
13660 0
13661 \family default
13662  
13663 \family typewriter
13664 layout Part*
13665 \end_layout
13666
13667 \begin_layout List
13668 \labelwidthstring 00.00.0000
13669
13670 \family sans
13671 M-p\InsetSpace ~
13672 asterisk\InsetSpace ~
13673 1
13674 \family default
13675  
13676 \family typewriter
13677 layout Chapter*
13678 \end_layout
13679
13680 \begin_layout List
13681 \labelwidthstring 00.00.0000
13682
13683 \family sans
13684 M-p\InsetSpace ~
13685 asterisk\InsetSpace ~
13686 2
13687 \family default
13688  
13689 \family typewriter
13690 layout Section*
13691 \end_layout
13692
13693 \begin_layout List
13694 \labelwidthstring 00.00.0000
13695
13696 \family sans
13697 M-p\InsetSpace ~
13698 asterisk\InsetSpace ~
13699 3
13700 \family default
13701  
13702 \family typewriter
13703 layout Subsection*
13704 \end_layout
13705
13706 \begin_layout List
13707 \labelwidthstring 00.00.0000
13708
13709 \family sans
13710 M-p\InsetSpace ~
13711 asterisk\InsetSpace ~
13712 4
13713 \family default
13714  
13715 \family typewriter
13716 layout Subsubsection*
13717 \end_layout
13718
13719 \begin_layout List
13720 \labelwidthstring 00.00.0000
13721
13722 \family sans
13723 M-p\InsetSpace ~
13724 asterisk\InsetSpace ~
13725 5
13726 \family default
13727  
13728 \family typewriter
13729 layout Paragraph*
13730 \end_layout
13731
13732 \begin_layout List
13733 \labelwidthstring 00.00.0000
13734
13735 \family sans
13736 M-p\InsetSpace ~
13737 asterisk\InsetSpace ~
13738 6
13739 \family default
13740  
13741 \family typewriter
13742 layout Subparagraph*
13743 \end_layout
13744
13745 \begin_layout List
13746 \labelwidthstring 00.00.0000
13747
13748 \family sans
13749 M-p\InsetSpace ~
13750 S-A
13751 \family default
13752  
13753 \family typewriter
13754 layout Author
13755 \end_layout
13756
13757 \begin_layout List
13758 \labelwidthstring 00.00.0000
13759
13760 \family sans
13761 M-p\InsetSpace ~
13762 S-B
13763 \family default
13764  
13765 \family typewriter
13766 layout Bibliography
13767 \end_layout
13768
13769 \begin_layout List
13770 \labelwidthstring 00.00.0000
13771
13772 \family sans
13773 M-p\InsetSpace ~
13774 S-C
13775 \family default
13776  
13777 \family typewriter
13778 layout Comment
13779 \end_layout
13780
13781 \begin_layout List
13782 \labelwidthstring 00.00.0000
13783
13784 \family sans
13785 M-p\InsetSpace ~
13786 S-D
13787 \family default
13788  
13789 \family typewriter
13790 layout Date
13791 \end_layout
13792
13793 \begin_layout List
13794 \labelwidthstring 00.00.0000
13795
13796 \family sans
13797 M-p\InsetSpace ~
13798 S-F
13799 \family default
13800  
13801 \family typewriter
13802 layout Foilhead
13803 \end_layout
13804
13805 \begin_layout List
13806 \labelwidthstring 00.00.0000
13807
13808 \family sans
13809 M-p\InsetSpace ~
13810 S-L
13811 \family default
13812  
13813 \family typewriter
13814 layout LaTeX
13815 \end_layout
13816
13817 \begin_layout List
13818 \labelwidthstring 00.00.0000
13819
13820 \family sans
13821 M-p\InsetSpace ~
13822 S-Q
13823 \family default
13824  
13825 \family typewriter
13826 layout Quotation
13827 \end_layout
13828
13829 \begin_layout List
13830 \labelwidthstring 00.00.0000
13831
13832 \family sans
13833 M-p\InsetSpace ~
13834 S-R
13835 \family default
13836  
13837 \family typewriter
13838 layout Rotatefoilhead
13839 \end_layout
13840
13841 \begin_layout List
13842 \labelwidthstring 00.00.0000
13843
13844 \family sans
13845 M-p\InsetSpace ~
13846 C-a
13847 \family default
13848  
13849 \family typewriter
13850 layout RightAddress
13851 \end_layout
13852
13853 \begin_layout List
13854 \labelwidthstring 00.00.0000
13855
13856 \family sans
13857 M-p\InsetSpace ~
13858 M-a
13859 \family default
13860  
13861 \family typewriter
13862 layout Address
13863 \end_layout
13864
13865 \begin_layout List
13866 \labelwidthstring 00.00.0000
13867
13868 \family sans
13869 M-p\InsetSpace ~
13870 M-c
13871 \family default
13872  
13873 \family typewriter
13874 layout Caption
13875 \end_layout
13876
13877 \begin_layout List
13878 \labelwidthstring 00.00.0000
13879
13880 \family sans
13881 M-p\InsetSpace ~
13882 Left
13883 \family default
13884  
13885 \family typewriter
13886 depth-decrement
13887 \end_layout
13888
13889 \begin_layout List
13890 \labelwidthstring 00.00.0000
13891
13892 \family sans
13893 M-p\InsetSpace ~
13894 Right
13895 \family default
13896  
13897 \family typewriter
13898 depth-increment
13899 \end_layout
13900
13901 \begin_layout Standard
13902 These ones are kept for backwards compatibility, but only make sense on
13903  a qwerty keyboard:
13904 \end_layout
13905
13906 \begin_layout List
13907 \labelwidthstring 00.00.0000
13908
13909 \family sans
13910 M-p\InsetSpace ~
13911 S-at
13912 \family default
13913  
13914 \family typewriter
13915 layout Section*
13916 \end_layout
13917
13918 \begin_layout List
13919 \labelwidthstring 00.00.0000
13920
13921 \family sans
13922 M-p\InsetSpace ~
13923 S-dollar
13924 \family default
13925  
13926 \family typewriter
13927 layout Subsubsection*
13928 \end_layout
13929
13930 \begin_layout List
13931 \labelwidthstring 00.00.0000
13932
13933 \family sans
13934 M-p\InsetSpace ~
13935 S-numbersign
13936 \family default
13937  
13938 \family typewriter
13939 layout Subsection*
13940 \end_layout
13941
13942 \begin_layout Section
13943 Keyboard
13944 \end_layout
13945
13946 \begin_layout Subsection
13947 Specific to 
13948 \family typewriter
13949 emacs.bind
13950 \end_layout
13951
13952 \begin_layout List
13953 \labelwidthstring 00.00.0000
13954
13955 \family sans
13956 C-a
13957 \family default
13958  
13959 \family typewriter
13960 line-begin
13961 \end_layout
13962
13963 \begin_layout List
13964 \labelwidthstring 00.00.0000
13965
13966 \family sans
13967 C-b
13968 \family default
13969  
13970 \family typewriter
13971 char-backward
13972 \end_layout
13973
13974 \begin_layout List
13975 \labelwidthstring 00.00.0000
13976
13977 \family sans
13978 C-d
13979 \family default
13980  
13981 \family typewriter
13982 delete-forward
13983 \end_layout
13984
13985 \begin_layout List
13986 \labelwidthstring 00.00.0000
13987
13988 \family sans
13989 C-e
13990 \family default
13991  
13992 \family typewriter
13993 line-end
13994 \end_layout
13995
13996 \begin_layout List
13997 \labelwidthstring 00.00.0000
13998
13999 \family sans
14000 C-f
14001 \family default
14002  
14003 \family typewriter
14004 char-forward
14005 \end_layout
14006
14007 \begin_layout List
14008 \labelwidthstring 00.00.0000
14009
14010 \family sans
14011 C-g
14012 \family default
14013  
14014 \family typewriter
14015 cancel
14016 \end_layout
14017
14018 \begin_layout List
14019 \labelwidthstring 00.00.0000
14020
14021 \family sans
14022 C-h
14023 \family default
14024  
14025 \family typewriter
14026 hyphenation-point-insert
14027 \end_layout
14028
14029 \begin_layout List
14030 \labelwidthstring 00.00.0000
14031
14032 \family sans
14033 C-i
14034 \family default
14035  
14036 \family typewriter
14037 hfill-insert
14038 \end_layout
14039
14040 \begin_layout List
14041 \labelwidthstring 00.00.0000
14042
14043 \family sans
14044 C-k
14045 \family default
14046  
14047 \family typewriter
14048 line-delete-forward
14049 \end_layout
14050
14051 \begin_layout List
14052 \labelwidthstring 00.00.0000
14053
14054 \family sans
14055 C-l
14056 \family default
14057  
14058 \family typewriter
14059 screen-recenter
14060 \end_layout
14061
14062 \begin_layout List
14063 \labelwidthstring 00.00.0000
14064
14065 \family sans
14066 C-m
14067 \family default
14068  
14069 \family typewriter
14070 mark-toggle
14071 \end_layout
14072
14073 \begin_layout List
14074 \labelwidthstring 00.00.0000
14075
14076 \family sans
14077 C-n
14078 \family default
14079  
14080 \family typewriter
14081 down
14082 \end_layout
14083
14084 \begin_layout List
14085 \labelwidthstring 00.00.0000
14086
14087 \family sans
14088 C-o
14089 \family default
14090  
14091 \family typewriter
14092 open-stuff
14093 \end_layout
14094
14095 \begin_layout List
14096 \labelwidthstring 00.00.0000
14097
14098 \family sans
14099 C-p
14100 \family default
14101  
14102 \family typewriter
14103 up
14104 \end_layout
14105
14106 \begin_layout List
14107 \labelwidthstring 00.00.0000
14108
14109 \family sans
14110 C-q
14111 \family default
14112  
14113 \family typewriter
14114 quote-insert 
14115 \end_layout
14116
14117 \begin_layout List
14118 \labelwidthstring 00.00.0000
14119
14120 \family sans
14121 C-s
14122 \family default
14123  
14124 \family typewriter
14125 find-replace
14126 \end_layout
14127
14128 \begin_layout List
14129 \labelwidthstring 00.00.0000
14130
14131 \family sans
14132 C-u
14133 \family default
14134  
14135 \family typewriter
14136 font-underline 
14137 \end_layout
14138
14139 \begin_layout List
14140 \labelwidthstring 00.00.0000
14141
14142 \family sans
14143 C-v
14144 \family default
14145  
14146 \family typewriter
14147 screen-down 
14148 \end_layout
14149
14150 \begin_layout List
14151 \labelwidthstring 00.00.0000
14152
14153 \family sans
14154 C-w
14155 \family default
14156  
14157 \family typewriter
14158 cut
14159 \end_layout
14160
14161 \begin_layout List
14162 \labelwidthstring 00.00.0000
14163
14164 \family sans
14165 C-y
14166 \family default
14167  
14168 \family typewriter
14169 paste
14170 \end_layout
14171
14172 \begin_layout List
14173 \labelwidthstring 00.00.0000
14174
14175 \family sans
14176 C-S-Y
14177 \family default
14178  
14179 \family typewriter
14180 layout-paste
14181 \end_layout
14182
14183 \begin_layout List
14184 \labelwidthstring 00.00.0000
14185
14186 \family sans
14187 C-x\InsetSpace ~
14188 a
14189 \family default
14190  
14191 \family typewriter
14192 buffer-auto-save
14193 \end_layout
14194
14195 \begin_layout List
14196 \labelwidthstring 00.00.0000
14197
14198 \family sans
14199 C-x\InsetSpace ~
14200 b
14201 \family default
14202  
14203 \family typewriter
14204 buffer-previous
14205 \end_layout
14206
14207 \begin_layout List
14208 \labelwidthstring 00.00.0000
14209
14210 \family sans
14211 C-x\InsetSpace ~
14212 c
14213 \family default
14214  
14215 \family typewriter
14216 lyx-quit
14217 \end_layout
14218
14219 \begin_layout List
14220 \labelwidthstring 00.00.0000
14221
14222 \family sans
14223 C-x\InsetSpace ~
14224 d
14225 \family default
14226  
14227 \family typewriter
14228 buffer-new
14229 \end_layout
14230
14231 \begin_layout List
14232 \labelwidthstring 00.00.0000
14233
14234 \family sans
14235 ?\InsetSpace ~
14236 C-x\InsetSpace ~
14237 f
14238 \family default
14239  
14240 \family typewriter
14241 buffer-open
14242 \end_layout
14243
14244 \begin_layout List
14245 \labelwidthstring 00.00.0000
14246
14247 \family sans
14248 C-x\InsetSpace ~
14249 g
14250 \family default
14251  
14252 \family typewriter
14253 buffer-view-ps
14254 \end_layout
14255
14256 \begin_layout List
14257 \labelwidthstring 00.00.0000
14258
14259 \family sans
14260 C-x\InsetSpace ~
14261 k
14262 \family default
14263  
14264 \family typewriter
14265 buffer-close
14266 \end_layout
14267
14268 \begin_layout List
14269 \labelwidthstring 00.00.0000
14270
14271 \family sans
14272 C-x\InsetSpace ~
14273 p
14274 \family default
14275  
14276 \family typewriter
14277 buffer-view
14278 \end_layout
14279
14280 \begin_layout List
14281 \labelwidthstring 00.00.0000
14282
14283 \family sans
14284 C-x\InsetSpace ~
14285 r
14286 \family default
14287  
14288 \family typewriter
14289 buffer-typeset
14290 \end_layout
14291
14292 \begin_layout List
14293 \labelwidthstring 00.00.0000
14294
14295 \family sans
14296 ?\InsetSpace ~
14297 C-x\InsetSpace ~
14298 s
14299 \family default
14300  
14301 \family typewriter
14302 buffer-write
14303 \end_layout
14304
14305 \begin_layout List
14306 \labelwidthstring 00.00.0000
14307
14308 \family sans
14309 C-x\InsetSpace ~
14310 t
14311 \family default
14312  
14313 \family typewriter
14314 buffer-typeset
14315 \end_layout
14316
14317 \begin_layout List
14318 \labelwidthstring 00.00.0000
14319
14320 \family sans
14321 C-x\InsetSpace ~
14322 u
14323 \family default
14324  
14325 \family typewriter
14326 undo
14327 \end_layout
14328
14329 \begin_layout List
14330 \labelwidthstring 00.00.0000
14331
14332 \family sans
14333 C-x\InsetSpace ~
14334 v\InsetSpace ~
14335 c
14336 \family default
14337  
14338 \family typewriter
14339 vc-undo-last
14340 \end_layout
14341
14342 \begin_layout List
14343 \labelwidthstring 00.00.0000
14344
14345 \family sans
14346 C-x\InsetSpace ~
14347 v\InsetSpace ~
14348 h
14349 \family default
14350  
14351 \family typewriter
14352 vc-history
14353 \end_layout
14354
14355 \begin_layout List
14356 \labelwidthstring 00.00.0000
14357
14358 \family sans
14359 C-x\InsetSpace ~
14360 v\InsetSpace ~
14361 i
14362 \family default
14363  
14364 \family typewriter
14365 vc-register
14366 \end_layout
14367
14368 \begin_layout List
14369 \labelwidthstring 00.00.0000
14370
14371 \family sans
14372 C-x\InsetSpace ~
14373 v\InsetSpace ~
14374 u
14375 \family default
14376  
14377 \family typewriter
14378 vc-revert
14379 \end_layout
14380
14381 \begin_layout List
14382 \labelwidthstring 00.00.0000
14383
14384 \family sans
14385 C-x\InsetSpace ~
14386 v\InsetSpace ~
14387 v
14388 \family default
14389  
14390 \family typewriter
14391 vc-check-in
14392 \end_layout
14393
14394 \begin_layout List
14395 \labelwidthstring 00.00.0000
14396
14397 \family sans
14398 ?\InsetSpace ~
14399 C-x\InsetSpace ~
14400 w
14401 \family default
14402  
14403 \family typewriter
14404 buffer-write-as
14405 \end_layout
14406
14407 \begin_layout List
14408 \labelwidthstring 00.00.0000
14409
14410 \family sans
14411 C-x\InsetSpace ~
14412 bracketleft
14413 \family default
14414  
14415 \family typewriter
14416 screen-up
14417 \end_layout
14418
14419 \begin_layout List
14420 \labelwidthstring 00.00.0000
14421
14422 \family sans
14423 C-x\InsetSpace ~
14424 bracketright
14425 \family default
14426  
14427 \family typewriter
14428 screen-down
14429 \end_layout
14430
14431 \begin_layout List
14432 \labelwidthstring 00.00.0000
14433
14434 \family sans
14435 C-x\InsetSpace ~
14436 C-a
14437 \family default
14438  
14439 \family typewriter
14440 buffer-auto-save
14441 \end_layout
14442
14443 \begin_layout List
14444 \labelwidthstring 00.00.0000
14445
14446 \family sans
14447 C-x\InsetSpace ~
14448 C-b
14449 \family default
14450  
14451 \family typewriter
14452 menu-open Documents
14453 \end_layout
14454
14455 \begin_layout List
14456 \labelwidthstring 00.00.0000
14457
14458 \family sans
14459 C-x\InsetSpace ~
14460 C-c
14461 \family default
14462  
14463 \family typewriter
14464 lyx-quit
14465 \end_layout
14466
14467 \begin_layout List
14468 \labelwidthstring 00.00.0000
14469
14470 \family sans
14471 C-x\InsetSpace ~
14472 C-d
14473 \family default
14474  
14475 \family typewriter
14476 buffer-new
14477 \end_layout
14478
14479 \begin_layout List
14480 \labelwidthstring 00.00.0000
14481
14482 \family sans
14483 C-x\InsetSpace ~
14484 C-f
14485 \family default
14486  
14487 \family typewriter
14488 buffer-open
14489 \end_layout
14490
14491 \begin_layout List
14492 \labelwidthstring 00.00.0000
14493
14494 \family sans
14495 C-x\InsetSpace ~
14496 C-g
14497 \family default
14498  
14499 \family typewriter
14500 buffer-view-ps
14501 \end_layout
14502
14503 \begin_layout List
14504 \labelwidthstring 00.00.0000
14505
14506 \family sans
14507 C-x\InsetSpace ~
14508 C-p
14509 \family default
14510  
14511 \family typewriter
14512 buffer-view
14513 \end_layout
14514
14515 \begin_layout List
14516 \labelwidthstring 00.00.0000
14517
14518 \family sans
14519 C-x\InsetSpace ~
14520 C-q
14521 \family default
14522  
14523 \family typewriter
14524 buffer-toggle-read-only
14525 \end_layout
14526
14527 \begin_layout List
14528 \labelwidthstring 00.00.0000
14529
14530 \family sans
14531 C-x\InsetSpace ~
14532 C-s
14533 \family default
14534  
14535 \family typewriter
14536 buffer-write
14537 \end_layout
14538
14539 \begin_layout List
14540 \labelwidthstring 00.00.0000
14541
14542 \family sans
14543 C-x\InsetSpace ~
14544 C-t
14545 \family default
14546  
14547 \family typewriter
14548 buffer-typeset
14549 \end_layout
14550
14551 \begin_layout List
14552 \labelwidthstring 00.00.0000
14553
14554 \family sans
14555 C-x\InsetSpace ~
14556 C-w
14557 \family default
14558  
14559 \family typewriter
14560 buffer-write-as
14561 \end_layout
14562
14563 \begin_layout List
14564 \labelwidthstring 00.00.0000
14565
14566 \family sans
14567 Home
14568 \family default
14569  
14570 \family typewriter
14571 buffer-begin
14572 \end_layout
14573
14574 \begin_layout List
14575 \labelwidthstring 00.00.0000
14576
14577 \family sans
14578 End
14579 \family default
14580  
14581 \family typewriter
14582 buffer-end
14583 \end_layout
14584
14585 \begin_layout List
14586 \labelwidthstring 00.00.0000
14587
14588 \family sans
14589 S-Home
14590 \family default
14591  
14592 \family typewriter
14593 line-begin-select
14594 \end_layout
14595
14596 \begin_layout List
14597 \labelwidthstring 00.00.0000
14598
14599 \family sans
14600 S-End
14601 \family default
14602  
14603 \family typewriter
14604 line-end-select
14605 \end_layout
14606
14607 \begin_layout List
14608 \labelwidthstring 00.00.0000
14609
14610 \family sans
14611 S-Up
14612 \family default
14613  
14614 \family typewriter
14615 up-select
14616 \end_layout
14617
14618 \begin_layout List
14619 \labelwidthstring 00.00.0000
14620
14621 \family sans
14622 S-Down
14623 \family default
14624  
14625 \family typewriter
14626 down-select
14627 \end_layout
14628
14629 \begin_layout List
14630 \labelwidthstring 00.00.0000
14631
14632 \family sans
14633 S-Next
14634 \family default
14635  
14636 \family typewriter
14637 screen-down-select
14638 \end_layout
14639
14640 \begin_layout List
14641 \labelwidthstring 00.00.0000
14642
14643 \family sans
14644 S-Prior
14645 \family default
14646  
14647 \family typewriter
14648 screen-up-select
14649 \end_layout
14650
14651 \begin_layout List
14652 \labelwidthstring 00.00.0000
14653
14654 \family sans
14655 S-Left
14656 \family default
14657  
14658 \family typewriter
14659 backward-select
14660 \end_layout
14661
14662 \begin_layout List
14663 \labelwidthstring 00.00.0000
14664
14665 \family sans
14666 S-Right
14667 \family default
14668  
14669 \family typewriter
14670 forward-select
14671 \end_layout
14672
14673 \begin_layout List
14674 \labelwidthstring 00.00.0000
14675
14676 \family sans
14677 C-Up
14678 \family default
14679  
14680 \family typewriter
14681 paragraph-up
14682 \end_layout
14683
14684 \begin_layout List
14685 \labelwidthstring 00.00.0000
14686
14687 \family sans
14688 C-Down
14689 \family default
14690  
14691 \family typewriter
14692 paragraph-down
14693 \end_layout
14694
14695 \begin_layout List
14696 \labelwidthstring 00.00.0000
14697
14698 \family sans
14699 C-Left
14700 \family default
14701  
14702 \family typewriter
14703 word-backward
14704 \end_layout
14705
14706 \begin_layout List
14707 \labelwidthstring 00.00.0000
14708
14709 \family sans
14710 C-Right
14711 \family default
14712  
14713 \family typewriter
14714 word-forward
14715 \end_layout
14716
14717 \begin_layout List
14718 \labelwidthstring 00.00.0000
14719
14720 \family sans
14721 C-Delete
14722 \family default
14723  
14724 \family typewriter
14725 word-delete-forward
14726 \end_layout
14727
14728 \begin_layout List
14729 \labelwidthstring 00.00.0000
14730
14731 \family sans
14732 C-BackSpace
14733 \family default
14734  
14735 \family typewriter
14736 word-delete-backward
14737 \end_layout
14738
14739 \begin_layout List
14740 \labelwidthstring 00.00.0000
14741
14742 \family sans
14743 C-Return
14744 \family default
14745  
14746 \family typewriter
14747 break-line
14748 \end_layout
14749
14750 \begin_layout List
14751 \labelwidthstring 00.00.0000
14752
14753 \family sans
14754 C-period
14755 \family default
14756  
14757 \family typewriter
14758 end-of-sentence-period-insert
14759 \end_layout
14760
14761 \begin_layout List
14762 \labelwidthstring 00.00.0000
14763
14764 \family sans
14765 C-space
14766 \family default
14767  
14768 \family typewriter
14769 protected-space-insert
14770 \end_layout
14771
14772 \begin_layout List
14773 \labelwidthstring 00.00.0000
14774
14775 \family sans
14776 C-S-at
14777 \family default
14778  
14779 \family typewriter
14780 mark-on
14781 \end_layout
14782
14783 \begin_layout List
14784 \labelwidthstring 00.00.0000
14785
14786 \family sans
14787 C-S-greater
14788 \family default
14789  
14790 \family typewriter
14791 label-goto
14792 \end_layout
14793
14794 \begin_layout List
14795 \labelwidthstring 00.00.0000
14796
14797 \family sans
14798 C-S-less
14799 \family default
14800  
14801 \family typewriter
14802 reference-back
14803 \end_layout
14804
14805 \begin_layout List
14806 \labelwidthstring 00.00.0000
14807
14808 \family sans
14809 C-S-slash
14810 \family default
14811  
14812 \family typewriter
14813 undo
14814 \end_layout
14815
14816 \begin_layout List
14817 \labelwidthstring 00.00.0000
14818
14819 \family sans
14820 C-S-underscore
14821 \family default
14822  
14823 \family typewriter
14824 undo
14825 \end_layout
14826
14827 \begin_layout List
14828 \labelwidthstring 00.00.0000
14829
14830 \family sans
14831 C-S-quotedbl
14832 \family default
14833  
14834 \family typewriter
14835 quote-insert
14836 \end_layout
14837
14838 \begin_layout List
14839 \labelwidthstring 00.00.0000
14840
14841 \family sans
14842 C-S-Home
14843 \family default
14844  
14845 \family typewriter
14846 buffer-begin-select
14847 \end_layout
14848
14849 \begin_layout List
14850 \labelwidthstring 00.00.0000
14851
14852 \family sans
14853 C-S-End
14854 \family default
14855  
14856 \family typewriter
14857 buffer-end-select
14858 \end_layout
14859
14860 \begin_layout List
14861 \labelwidthstring 00.00.0000
14862
14863 \family sans
14864 C-S-Up
14865 \family default
14866  
14867 \family typewriter
14868 paragraph-up-select
14869 \end_layout
14870
14871 \begin_layout List
14872 \labelwidthstring 00.00.0000
14873
14874 \family sans
14875 C-S-Down
14876 \family default
14877  
14878 \family typewriter
14879 paragraph-down-select
14880 \end_layout
14881
14882 \begin_layout List
14883 \labelwidthstring 00.00.0000
14884
14885 \family sans
14886 C-S-Left
14887 \family default
14888  
14889 \family typewriter
14890 word-backward-select
14891 \end_layout
14892
14893 \begin_layout List
14894 \labelwidthstring 00.00.0000
14895
14896 \family sans
14897 C-S-Right
14898 \family default
14899  
14900 \family typewriter
14901 word-forward-select
14902 \end_layout
14903
14904 \begin_layout List
14905 \labelwidthstring 00.00.0000
14906
14907 \family sans
14908 Escape
14909 \family default
14910  
14911 \family typewriter
14912 meta-prefix
14913 \end_layout
14914
14915 \begin_layout List
14916 \labelwidthstring 00.00.0000
14917
14918 \family sans
14919 M-d
14920 \family default
14921  
14922 \family typewriter
14923 word-delete-forward
14924 \end_layout
14925
14926 \begin_layout List
14927 \labelwidthstring 00.00.0000
14928
14929 \family sans
14930 M-w
14931 \family default
14932  
14933 \family typewriter
14934 copy
14935 \end_layout
14936
14937 \begin_layout List
14938 \labelwidthstring 00.00.0000
14939
14940 \family sans
14941 M-x
14942 \family default
14943  
14944 \family typewriter
14945 command-execute
14946 \end_layout
14947
14948 \begin_layout List
14949 \labelwidthstring 00.00.0000
14950
14951 \family sans
14952 M-S-W
14953 \family default
14954  
14955 \family typewriter
14956 layout-copy
14957 \end_layout
14958
14959 \begin_layout List
14960 \labelwidthstring 00.00.0000
14961
14962 \family sans
14963 M-period
14964 \family default
14965  
14966 \family typewriter
14967 dots-insert
14968 \end_layout
14969
14970 \begin_layout List
14971 \labelwidthstring 00.00.0000
14972
14973 \family sans
14974 M-Return
14975 \family default
14976  
14977 \family typewriter
14978 break-paragraph-keep-layout
14979 \end_layout
14980
14981 \begin_layout List
14982 \labelwidthstring 00.00.0000
14983
14984 \family sans
14985 M-S-percent
14986 \family default
14987  
14988 \family typewriter
14989 find-replace
14990 \end_layout
14991
14992 \begin_layout Subsection
14993 Specific to 
14994 \family typewriter
14995 cua.bind
14996 \end_layout
14997
14998 \begin_layout List
14999 \labelwidthstring 00.00.0000
15000
15001 \family sans
15002 C-b
15003 \family default
15004  
15005 \family typewriter
15006 font-bold
15007 \end_layout
15008
15009 \begin_layout List
15010 \labelwidthstring 00.00.0000
15011
15012 \family sans
15013 C-c
15014 \family default
15015  
15016 \family typewriter
15017 copy
15018 \end_layout
15019
15020 \begin_layout List
15021 \labelwidthstring 00.00.0000
15022
15023 \family sans
15024 C-d
15025 \family default
15026  
15027 \family typewriter
15028 buffer-view 
15029 \end_layout
15030
15031 \begin_layout List
15032 \labelwidthstring 00.00.0000
15033
15034 \family sans
15035 C-e
15036 \family default
15037  
15038 \family typewriter
15039 font-emph
15040 \end_layout
15041
15042 \begin_layout List
15043 \labelwidthstring 00.00.0000
15044
15045 \family sans
15046 C-f
15047 \family default
15048  
15049 \family typewriter
15050 find-replace
15051 \end_layout
15052
15053 \begin_layout List
15054 \labelwidthstring 00.00.0000
15055
15056 \family sans
15057 C-g
15058 \family default
15059  
15060 \family typewriter
15061 error-next
15062 \end_layout
15063
15064 \begin_layout List
15065 \labelwidthstring 00.00.0000
15066
15067 \family sans
15068 C-i
15069 \family default
15070  
15071 \family typewriter
15072 open-stuff 
15073 \end_layout
15074
15075 \begin_layout List
15076 \labelwidthstring 00.00.0000
15077
15078 \family sans
15079 C-k
15080 \family default
15081  
15082 \family typewriter
15083 font-noun 
15084 \end_layout
15085
15086 \begin_layout List
15087 \labelwidthstring 00.00.0000
15088
15089 \family sans
15090 C-l
15091 \family default
15092  
15093 \family typewriter
15094 tex-mode 
15095 \end_layout
15096
15097 \begin_layout List
15098 \labelwidthstring 00.00.0000
15099
15100 \family sans
15101 C-m
15102 \family default
15103  
15104 \family typewriter
15105 math-mode
15106 \end_layout
15107
15108 \begin_layout List
15109 \labelwidthstring 00.00.0000
15110
15111 \family sans
15112 C-n
15113 \family default
15114  
15115 \family typewriter
15116 buffer-new
15117 \end_layout
15118
15119 \begin_layout List
15120 \labelwidthstring 00.00.0000
15121
15122 \family sans
15123 C-o
15124 \family default
15125  
15126 \family typewriter
15127 buffer-open
15128 \end_layout
15129
15130 \begin_layout List
15131 \labelwidthstring 00.00.0000
15132
15133 \family sans
15134 C-p
15135 \family default
15136  
15137 \family typewriter
15138 buffer-print
15139 \end_layout
15140
15141 \begin_layout List
15142 \labelwidthstring 00.00.0000
15143
15144 \family sans
15145 C-q
15146 \family default
15147  
15148 \family typewriter
15149 lyx-quit
15150 \end_layout
15151
15152 \begin_layout List
15153 \labelwidthstring 00.00.0000
15154
15155 \family sans
15156 C-r
15157 \family default
15158  
15159 \family typewriter
15160 buffer-reload
15161 \end_layout
15162
15163 \begin_layout List
15164 \labelwidthstring 00.00.0000
15165
15166 \family sans
15167 C-s
15168 \family default
15169  
15170 \family typewriter
15171 buffer-write
15172 \end_layout
15173
15174 \begin_layout List
15175 \labelwidthstring 00.00.0000
15176
15177 \family sans
15178 C-t
15179 \family default
15180  
15181 \family typewriter
15182 buffer-view-ps
15183 \end_layout
15184
15185 \begin_layout List
15186 \labelwidthstring 00.00.0000
15187
15188 \family sans
15189 C-u
15190 \family default
15191  
15192 \family typewriter
15193 font-underline
15194 \end_layout
15195
15196 \begin_layout List
15197 \labelwidthstring 00.00.0000
15198
15199 \family sans
15200 C-v
15201 \family default
15202  
15203 \family typewriter
15204 paste
15205 \end_layout
15206
15207 \begin_layout List
15208 \labelwidthstring 00.00.0000
15209
15210 \family sans
15211 C-w
15212 \family default
15213  
15214 \family typewriter
15215 buffer-close
15216 \end_layout
15217
15218 \begin_layout List
15219 \labelwidthstring 00.00.0000
15220
15221 \family sans
15222 C-x
15223 \family default
15224  
15225 \family typewriter
15226 cut
15227 \end_layout
15228
15229 \begin_layout List
15230 \labelwidthstring 00.00.0000
15231
15232 \family sans
15233 C-z
15234 \family default
15235  
15236 \family typewriter
15237 undo
15238 \end_layout
15239
15240 \begin_layout List
15241 \labelwidthstring 00.00.0000
15242
15243 \family sans
15244 C-space
15245 \family default
15246  
15247 \family typewriter
15248 protected-space-insert
15249 \end_layout
15250
15251 \begin_layout List
15252 \labelwidthstring 00.00.0000
15253
15254 \family sans
15255 C-S-C
15256 \family default
15257  
15258 \family typewriter
15259 layout-copy
15260 \end_layout
15261
15262 \begin_layout List
15263 \labelwidthstring 00.00.0000
15264
15265 \family sans
15266 C-S-D
15267 \family default
15268  
15269 \family typewriter
15270 buffer-typeset
15271 \end_layout
15272
15273 \begin_layout List
15274 \labelwidthstring 00.00.0000
15275
15276 \family sans
15277 C-S-M
15278 \family default
15279  
15280 \family typewriter
15281 math-display
15282 \end_layout
15283
15284 \begin_layout List
15285 \labelwidthstring 00.00.0000
15286
15287 \family sans
15288 C-S-N
15289 \family default
15290  
15291 \family typewriter
15292 buffer-new-template
15293 \end_layout
15294
15295 \begin_layout List
15296 \labelwidthstring 00.00.0000
15297
15298 \family sans
15299 C-S-P
15300 \family default
15301  
15302 \family typewriter
15303 font-code 
15304 \end_layout
15305
15306 \begin_layout List
15307 \labelwidthstring 00.00.0000
15308
15309 \family sans
15310 C-S-S
15311 \family default
15312  
15313 \family typewriter
15314 buffer-write-as
15315 \end_layout
15316
15317 \begin_layout List
15318 \labelwidthstring 00.00.0000
15319
15320 \family sans
15321 C-S-T
15322 \family default
15323  
15324 \family typewriter
15325 buffer-typeset-ps
15326 \end_layout
15327
15328 \begin_layout List
15329 \labelwidthstring 00.00.0000
15330
15331 \family sans
15332 C-S-V
15333 \family default
15334  
15335 \family typewriter
15336 layout-paste
15337 \end_layout
15338
15339 \begin_layout List
15340 \labelwidthstring 00.00.0000
15341
15342 \family sans
15343 C-S-Z
15344 \family default
15345  
15346 \family typewriter
15347 redo
15348 \end_layout
15349
15350 \begin_layout List
15351 \labelwidthstring 00.00.0000
15352
15353 \family sans
15354 S-Insert
15355 \family default
15356  
15357 \family typewriter
15358 paste
15359 \end_layout
15360
15361 \begin_layout List
15362 \labelwidthstring 00.00.0000
15363
15364 \family sans
15365 S-Delete
15366 \family default
15367  
15368 \family typewriter
15369 cut
15370 \end_layout
15371
15372 \begin_layout List
15373 \labelwidthstring 00.00.0000
15374
15375 \family sans
15376 C-period
15377 \family default
15378  
15379 \family typewriter
15380 end-of-sentence-period-insert
15381 \end_layout
15382
15383 \begin_layout List
15384 \labelwidthstring 00.00.0000
15385
15386 \family sans
15387 C-S-greater
15388 \family default
15389  
15390 \family typewriter
15391 label-goto
15392 \end_layout
15393
15394 \begin_layout List
15395 \labelwidthstring 00.00.0000
15396
15397 \family sans
15398 C-S-less
15399 \family default
15400  
15401 \family typewriter
15402 reference-back
15403 \end_layout
15404
15405 \begin_layout List
15406 \labelwidthstring 00.00.0000
15407
15408 \family sans
15409 C-minus
15410 \family default
15411  
15412 \family typewriter
15413 hyphenation-point-insert
15414 \end_layout
15415
15416 \begin_layout List
15417 \labelwidthstring 00.00.0000
15418
15419 \family sans
15420 C-S-quotedbl
15421 \family default
15422  
15423 \family typewriter
15424 quote-insert
15425 \end_layout
15426
15427 \begin_layout List
15428 \labelwidthstring 00.00.0000
15429
15430 \family sans
15431 C-S-space
15432 \family default
15433  
15434 \family typewriter
15435 protected-space-insert
15436 \end_layout
15437
15438 \begin_layout List
15439 \labelwidthstring 00.00.0000
15440
15441 \family sans
15442 M-x
15443 \family default
15444  
15445 \family typewriter
15446 command-execute
15447 \end_layout
15448
15449 \begin_layout List
15450 \labelwidthstring 00.00.0000
15451
15452 \family sans
15453 S-Home
15454 \family default
15455  
15456 \family typewriter
15457 line-begin-select
15458 \end_layout
15459
15460 \begin_layout List
15461 \labelwidthstring 00.00.0000
15462
15463 \family sans
15464 S-End
15465 \family default
15466  
15467 \family typewriter
15468 line-end-select
15469 \end_layout
15470
15471 \begin_layout List
15472 \labelwidthstring 00.00.0000
15473
15474 \family sans
15475 S-Up
15476 \family default
15477  
15478 \family typewriter
15479 up-select
15480 \end_layout
15481
15482 \begin_layout List
15483 \labelwidthstring 00.00.0000
15484
15485 \family sans
15486 S-Down
15487 \family default
15488  
15489 \family typewriter
15490 down-select
15491 \end_layout
15492
15493 \begin_layout List
15494 \labelwidthstring 00.00.0000
15495
15496 \family sans
15497 S-Delete
15498 \family default
15499  
15500 \family typewriter
15501 cut
15502 \end_layout
15503
15504 \begin_layout List
15505 \labelwidthstring 00.00.0000
15506
15507 \family sans
15508 S-Insert
15509 \family default
15510  
15511 \family typewriter
15512 paste
15513 \end_layout
15514
15515 \begin_layout List
15516 \labelwidthstring 00.00.0000
15517
15518 \family sans
15519 S-Next
15520 \family default
15521  
15522 \family typewriter
15523 screen-down-select
15524 \end_layout
15525
15526 \begin_layout List
15527 \labelwidthstring 00.00.0000
15528
15529 \family sans
15530 S-Prior
15531 \family default
15532  
15533 \family typewriter
15534 screen-up-select
15535 \end_layout
15536
15537 \begin_layout List
15538 \labelwidthstring 00.00.0000
15539
15540 \family sans
15541 S-Left
15542 \family default
15543  
15544 \family typewriter
15545 backward-select
15546 \end_layout
15547
15548 \begin_layout List
15549 \labelwidthstring 00.00.0000
15550
15551 \family sans
15552 S-Right
15553 \family default
15554  
15555 \family typewriter
15556 forward-select
15557 \end_layout
15558
15559 \begin_layout List
15560 \labelwidthstring 00.00.0000
15561
15562 \family sans
15563 C-Home
15564 \family default
15565  
15566 \family typewriter
15567 buffer-begin
15568 \end_layout
15569
15570 \begin_layout List
15571 \labelwidthstring 00.00.0000
15572
15573 \family sans
15574 C-End
15575 \family default
15576  
15577 \family typewriter
15578 buffer-end
15579 \end_layout
15580
15581 \begin_layout List
15582 \labelwidthstring 00.00.0000
15583
15584 \family sans
15585 C-Up
15586 \family default
15587  
15588 \family typewriter
15589 paragraph-up
15590 \end_layout
15591
15592 \begin_layout List
15593 \labelwidthstring 00.00.0000
15594
15595 \family sans
15596 C-Down
15597 \family default
15598  
15599 \family typewriter
15600 paragraph-down
15601 \end_layout
15602
15603 \begin_layout List
15604 \labelwidthstring 00.00.0000
15605
15606 \family sans
15607 C-Delete
15608 \family default
15609  
15610 \family typewriter
15611 word-delete-forward
15612 \end_layout
15613
15614 \begin_layout List
15615 \labelwidthstring 00.00.0000
15616
15617 \family sans
15618 C-BackSpace
15619 \family default
15620  
15621 \family typewriter
15622 word-delete-backward
15623 \end_layout
15624
15625 \begin_layout List
15626 \labelwidthstring 00.00.0000
15627
15628 \family sans
15629 C-Insert
15630 \family default
15631  
15632 \family typewriter
15633 copy
15634 \end_layout
15635
15636 \begin_layout List
15637 \labelwidthstring 00.00.0000
15638
15639 \family sans
15640 C-Return
15641 \family default
15642  
15643 \family typewriter
15644 break-line
15645 \end_layout
15646
15647 \begin_layout List
15648 \labelwidthstring 00.00.0000
15649
15650 \family sans
15651 C-Left
15652 \family default
15653  
15654 \family typewriter
15655 word-backward
15656 \end_layout
15657
15658 \begin_layout List
15659 \labelwidthstring 00.00.0000
15660
15661 \family sans
15662 C-Right
15663 \family default
15664  
15665 \family typewriter
15666 word-forward
15667 \end_layout
15668
15669 \begin_layout List
15670 \labelwidthstring 00.00.0000
15671
15672 \family sans
15673 C-S-Down
15674 \family default
15675  
15676 \family typewriter
15677 paragraph-down-select
15678 \end_layout
15679
15680 \begin_layout List
15681 \labelwidthstring 00.00.0000
15682
15683 \family sans
15684 C-S-End
15685 \family default
15686  
15687 \family typewriter
15688 buffer-end-select
15689 \end_layout
15690
15691 \begin_layout List
15692 \labelwidthstring 00.00.0000
15693
15694 \family sans
15695 C-S-Home
15696 \family default
15697  
15698 \family typewriter
15699 buffer-begin-select
15700 \end_layout
15701
15702 \begin_layout List
15703 \labelwidthstring 00.00.0000
15704
15705 \family sans
15706 C-S-Left
15707 \family default
15708  
15709 \family typewriter
15710 word-backward-select
15711 \end_layout
15712
15713 \begin_layout List
15714 \labelwidthstring 00.00.0000
15715
15716 \family sans
15717 C-S-Right
15718 \family default
15719  
15720 \family typewriter
15721 word-forward-select
15722 \end_layout
15723
15724 \begin_layout List
15725 \labelwidthstring 00.00.0000
15726
15727 \family sans
15728 C-S-Up
15729 \family default
15730  
15731 \family typewriter
15732 paragraph-up-select
15733 \end_layout
15734
15735 \begin_layout List
15736 \labelwidthstring 00.00.0000
15737
15738 \family sans
15739 C-S-quotedbl
15740 \family default
15741  
15742 \family typewriter
15743 quote-insert
15744 \end_layout
15745
15746 \begin_layout List
15747 \labelwidthstring 00.00.0000
15748
15749 \family sans
15750 M-Return
15751 \family default
15752  
15753 \family typewriter
15754 break-paragraph-keep-layout
15755 \end_layout
15756
15757 \begin_layout List
15758 \labelwidthstring 00.00.0000
15759
15760 \family sans
15761 M-period
15762 \family default
15763  
15764 \family typewriter
15765 dots-insert
15766 \end_layout
15767
15768 \begin_layout List
15769 \labelwidthstring 00.00.0000
15770
15771 \family sans
15772 M-S-Right
15773 \family default
15774  
15775 \family typewriter
15776 depth-increment
15777 \end_layout
15778
15779 \begin_layout List
15780 \labelwidthstring 00.00.0000
15781
15782 \family sans
15783 M-S-Left
15784 \family default
15785  
15786 \family typewriter
15787 depth-decrement
15788 \end_layout
15789
15790 \begin_layout List
15791 \labelwidthstring 00.00.0000
15792
15793 \family sans
15794 Escape
15795 \family default
15796  
15797 \family typewriter
15798 cancel
15799 \end_layout
15800
15801 \begin_layout List
15802 \labelwidthstring 00.00.0000
15803
15804 \family sans
15805 F2
15806 \family default
15807  
15808 \family typewriter
15809 buffer-write
15810 \end_layout
15811
15812 \begin_layout List
15813 \labelwidthstring 00.00.0000
15814
15815 \family sans
15816 F3
15817 \family default
15818  
15819 \family typewriter
15820 buffer-open
15821 \end_layout
15822
15823 \begin_layout List
15824 \labelwidthstring 00.00.0000
15825
15826 \family sans
15827 F5
15828 \family default
15829  
15830 \family typewriter
15831 screen-recenter
15832 \end_layout
15833
15834 \begin_layout List
15835 \labelwidthstring 00.00.0000
15836
15837 \family sans
15838 F7
15839 \family default
15840  
15841 \family typewriter
15842 spellchecker
15843 \end_layout
15844
15845 \begin_layout List
15846 \labelwidthstring 00.00.0000
15847
15848 \family sans
15849 F9
15850 \family default
15851  
15852 \family typewriter
15853 meta-prefix
15854 \end_layout
15855
15856 \begin_layout List
15857 \labelwidthstring 00.00.0000
15858
15859 \family sans
15860 C-F4
15861 \family default
15862  
15863 \family typewriter
15864 buffer-close
15865 \end_layout
15866
15867 \begin_layout List
15868 \labelwidthstring 00.00.0000
15869
15870 \family sans
15871 M-F4
15872 \family default
15873  
15874 \family typewriter
15875 lyx-quit
15876 \end_layout
15877
15878 \begin_layout Subsection
15879 Specific to 
15880 \family typewriter
15881 sciword.bind
15882 \end_layout
15883
15884 \begin_layout Standard
15885 These are LyX keyboard definitions for mathematics, similar to those of
15886  Scientific Word.
15887 \end_layout
15888
15889 \begin_layout Standard
15890 The bindings file and the present documentation were prepared by Serge Winitzki
15891  with assistance from Jean-Marc Lasgouttes.
15892  Version 1.3, for LyX 1.2.x and 1.3.x.
15893 \end_layout
15894
15895 \begin_layout Standard
15896 These definitions make it a lot easier to type equations without using the
15897  mouse, especially for people familiar with Scientific Word.
15898  The standard LyX bindings such as 
15899 \family typewriter
15900 M-m
15901 \family default
15902  or 
15903 \family typewriter
15904 M-o
15905 \family default
15906  are unmodified.
15907 \end_layout
15908
15909 \begin_layout Standard
15910 Tip: to find the "LyX bind name" for a key, look at the status bar after
15911  typing some non-existent key combination.
15912  E.g.
15913  to find how "Ctrl-&" is referenced, press Ctrl-S and then Ctrl-&: the status
15914  bar shows "C-s S-C-ampersand." (This does not work in LyX 1.3.0!)
15915 \end_layout
15916
15917 \begin_layout List
15918 \labelwidthstring 00.00.0000
15919
15920 \family sans
15921 C-c
15922 \family default
15923  
15924 \family typewriter
15925 copy
15926 \family default
15927  -- Copy, cut, paste is as in Sciword, 
15928 \family typewriter
15929 C-c
15930 \family default
15931
15932 \family typewriter
15933 C-x
15934 \family default
15935 , and 
15936 \family typewriter
15937 C-v
15938 \family default
15939 .
15940 \end_layout
15941
15942 \begin_layout List
15943 \labelwidthstring 00.00.0000
15944
15945 \family sans
15946 C-d
15947 \family default
15948  
15949 \family typewriter
15950 math-display
15951 \family default
15952  -- Display equation toggle: type 
15953 \family typewriter
15954 C-d
15955 \family default
15956  to insert a displayed formula (
15957 \family typewriter
15958 d
15959 \family default
15960  for 
15961 \begin_inset Quotes eld
15962 \end_inset
15963
15964 displayed
15965 \begin_inset Quotes erd
15966 \end_inset
15967
15968 ).
15969  You can also type 
15970 \family typewriter
15971 C-d
15972 \family default
15973  in a displayed formula to convert it back to an inline formula.
15974 \end_layout
15975
15976 \begin_layout List
15977 \labelwidthstring 00.00.0000
15978
15979 \family sans
15980 C-f
15981 \family default
15982  
15983 \family typewriter
15984 math-insert 
15985 \backslash
15986 frac
15987 \family default
15988  -- Fractions: type 
15989 \family typewriter
15990 C-f
15991 \family default
15992  to insert a fraction (
15993 \family typewriter
15994 f
15995 \family default
15996  for 
15997 \begin_inset Quotes eld
15998 \end_inset
15999
16000 fraction
16001 \begin_inset Quotes erd
16002 \end_inset
16003
16004 ).
16005  You can also select an expression and type 
16006 \family typewriter
16007 C-f
16008 \family default
16009  to convert it to the numerator of a fraction.
16010  Note: pressing 
16011 \family typewriter
16012 Backspace
16013 \family default
16014  at the 
16015 \emph on
16016 left
16017 \emph default
16018  end of the denominator will delete the numerator and convert the denominator
16019  to a non-fraction.
16020 \end_layout
16021
16022 \begin_layout List
16023 \labelwidthstring 00.00.0000
16024
16025 \family sans
16026 C-i
16027 \family default
16028  
16029 \family typewriter
16030 math-insert 
16031 \backslash
16032 int
16033 \family default
16034  -- Inserts 
16035 \begin_inset Formula $\int$
16036 \end_inset
16037
16038  (
16039 \family typewriter
16040 i
16041 \family default
16042  for 
16043 \begin_inset Quotes eld
16044 \end_inset
16045
16046 integral
16047 \begin_inset Quotes erd
16048 \end_inset
16049
16050 )
16051 \end_layout
16052
16053 \begin_layout List
16054 \labelwidthstring 00.00.0000
16055
16056 \family sans
16057 C-k
16058 \family default
16059  
16060 \family typewriter
16061 line-delete-forward
16062 \family default
16063  -- Emacs-like binding: delete forward of cursor to end of line.
16064 \end_layout
16065
16066 \begin_layout List
16067 \labelwidthstring 00.00.0000
16068
16069 \family sans
16070 C-m
16071 \family default
16072  
16073 \family typewriter
16074 math-mode
16075 \family default
16076  -- A text/math toggle (
16077 \family typewriter
16078 m
16079 \family default
16080  for 
16081 \begin_inset Quotes eld
16082 \end_inset
16083
16084 math
16085 \begin_inset Quotes erd
16086 \end_inset
16087
16088 ): switches to math in text mode, and also inserts roman text in math mode.
16089  Also bound to 
16090 \family typewriter
16091 C-t
16092 \family default
16093  (
16094 \family typewriter
16095 t
16096 \family default
16097  for 
16098 \begin_inset Quotes eld
16099 \end_inset
16100
16101 text
16102 \begin_inset Quotes erd
16103 \end_inset
16104
16105 ).
16106 \end_layout
16107
16108 \begin_layout List
16109 \labelwidthstring 00.00.0000
16110
16111 \family sans
16112 C-n
16113 \family default
16114  
16115 \family typewriter
16116 math-number
16117 \family default
16118  -- Add/remove numbering in a single equation.
16119 \end_layout
16120
16121 \begin_layout List
16122 \labelwidthstring 00.00.0000
16123
16124 \family sans
16125 S-C-N
16126 \family default
16127  
16128 \family typewriter
16129 math-nonumber
16130 \family default
16131  -- Add/remove numbering at a line in equation arrays.
16132 \end_layout
16133
16134 \begin_layout Standard
16135 The above commands are toggles that control the numbering of equations (
16136 \family typewriter
16137 N
16138 \family default
16139  for 
16140 \begin_inset Quotes eld
16141 \end_inset
16142
16143 number
16144 \begin_inset Quotes erd
16145 \end_inset
16146
16147 ).
16148  Note: when deleting a number in a labeled eqnarray, the label is not really
16149  removed (the TeX code becomes 
16150 \begin_inset Quotes eld
16151 \end_inset
16152
16153
16154 \family typewriter
16155
16156 \backslash
16157 label{} 
16158 \backslash
16159 nonumber
16160 \family default
16161
16162 \begin_inset Quotes erd
16163 \end_inset
16164
16165  ) and this generates a (harmless) LaTeX warning.
16166 \end_layout
16167
16168 \begin_layout List
16169 \labelwidthstring 00.00.0000
16170
16171 \family sans
16172 C-o
16173 \family default
16174  
16175 \family typewriter
16176 file-open
16177 \family default
16178  -- Open a new document.
16179  (W*ndows)
16180 \end_layout
16181
16182 \begin_layout List
16183 \labelwidthstring 00.00.0000
16184
16185 \family sans
16186 C-q
16187 \family default
16188  
16189 \family typewriter
16190 quote-insert
16191 \family default
16192  -- Insert a quote character " (
16193 \family typewriter
16194 q
16195 \family default
16196  for 
16197 \begin_inset Quotes eld
16198 \end_inset
16199
16200 quote
16201 \begin_inset Quotes erd
16202 \end_inset
16203
16204 ).
16205  This is not the 
16206 \begin_inset Quotes eld
16207 \end_inset
16208
16209 smart
16210 \begin_inset Quotes erd
16211 \end_inset
16212
16213  double quote character that you get by default.
16214 \end_layout
16215
16216 \begin_layout List
16217 \labelwidthstring 00.00.0000
16218
16219 \family sans
16220 C-r
16221 \family default
16222  
16223 \family typewriter
16224 math-insert 
16225 \backslash
16226 sqrt
16227 \family default
16228  -- Square root sign 
16229 \begin_inset Formula $\sqrt{x}$
16230 \end_inset
16231
16232  (
16233 \family typewriter
16234 r
16235 \family default
16236  for 
16237 \begin_inset Quotes eld
16238 \end_inset
16239
16240 root
16241 \begin_inset Quotes erd
16242 \end_inset
16243
16244 ).
16245 \end_layout
16246
16247 \begin_layout List
16248 \labelwidthstring 00.00.0000
16249
16250 \family sans
16251 S-C-R
16252 \family default
16253  
16254 \family typewriter
16255 math-insert 
16256 \backslash
16257 root
16258 \family default
16259  -- root sign 
16260 \begin_inset Formula $\sqrt[n]{x}$
16261 \end_inset
16262
16263 .
16264 \end_layout
16265
16266 \begin_layout List
16267 \labelwidthstring 00.00.0000
16268
16269 \family sans
16270 C-t
16271 \family default
16272  
16273 \family typewriter
16274 math-mode
16275 \family default
16276  -- Another binding for a switch between the text and the math mode (
16277 \family typewriter
16278 t
16279 \family default
16280  is for 
16281 \begin_inset Quotes eld
16282 \end_inset
16283
16284 text
16285 \begin_inset Quotes erd
16286 \end_inset
16287
16288 ).
16289  Note that the roman text inserted in math mode is special.
16290 \end_layout
16291
16292 \begin_layout List
16293 \labelwidthstring 00.00.0000
16294
16295 \family sans
16296 C-u
16297 \family default
16298  
16299 \family typewriter
16300 font-underline
16301 \family default
16302  -- 
16303 \bar under
16304 Underline
16305 \bar default
16306  the selected text (text mode only, use things like 
16307 \family typewriter
16308
16309 \backslash
16310 overline
16311 \family default
16312  or 
16313 \family typewriter
16314
16315 \backslash
16316 underbar
16317 \family default
16318  for math ).
16319 \end_layout
16320
16321 \begin_layout List
16322 \labelwidthstring 00.00.0000
16323
16324 \family sans
16325 C-v
16326 \family default
16327  
16328 \family typewriter
16329 paste
16330 \family default
16331  -- W*ndows heritage.
16332 \end_layout
16333
16334 \begin_layout List
16335 \labelwidthstring 00.00.0000
16336
16337 \family sans
16338 C-w
16339 \family default
16340  
16341 \family typewriter
16342 buffer-close
16343 \family default
16344  -- Close the current document (again, a W*ndows heritage).
16345 \end_layout
16346
16347 \begin_layout List
16348 \labelwidthstring 00.00.0000
16349
16350 \family sans
16351 C-x
16352 \family default
16353  
16354 \family typewriter
16355 cut
16356 \end_layout
16357
16358 \begin_layout List
16359 \labelwidthstring 00.00.0000
16360
16361 \family sans
16362 C-z
16363 \family default
16364  
16365 \family typewriter
16366 undo
16367 \end_layout
16368
16369 \begin_layout List
16370 \labelwidthstring 00.00.0000
16371
16372 \family sans
16373 S-C-Z
16374 \family default
16375  
16376 \family typewriter
16377 redo
16378 \family default
16379  -- the 
16380 \begin_inset Quotes eld
16381 \end_inset
16382
16383 Redo
16384 \begin_inset Quotes erd
16385 \end_inset
16386
16387  operation, or 
16388 \begin_inset Quotes eld
16389 \end_inset
16390
16391 undo the undo
16392 \begin_inset Quotes erd
16393 \end_inset
16394
16395 .
16396 \end_layout
16397
16398 \begin_layout Standard
16399 Bracket delimiters: press 
16400 \family typewriter
16401 Ctrl
16402 \family default
16403 -<bracket key> to insert a matching pair of delimiters.
16404  For example, 
16405 \family typewriter
16406 Ctrl-[
16407 \family default
16408  inserts a pair of parentheses 
16409 \begin_inset Formula $\left[\right]$
16410 \end_inset
16411
16412 .
16413  (Note: 
16414 \family typewriter
16415 Ctrl-]
16416 \family default
16417  does the same thing.) It will switch to math mode if needed.
16418  The supported characters are ( [ { < |.
16419  It is the same to press the right or the left bracket.
16420  The corresponding delimiters are 
16421 \begin_inset Formula $\left(\right)$
16422 \end_inset
16423
16424  
16425 \begin_inset Formula $\left[\right]$
16426 \end_inset
16427
16428  
16429 \begin_inset Formula $\left\{ \right\} $
16430 \end_inset
16431
16432  
16433 \begin_inset Formula $\left\langle \right\rangle $
16434 \end_inset
16435
16436  
16437 \begin_inset Formula $\left|\right|$
16438 \end_inset
16439
16440 .
16441  The delimiters are 
16442 \begin_inset Quotes eld
16443 \end_inset
16444
16445 smart
16446 \begin_inset Quotes erd
16447 \end_inset
16448
16449  and resize with their contents.
16450  Use Math Panel to get other or non-matching delimiters.
16451  Press backspace on the 
16452 \emph on
16453 left
16454 \emph default
16455  delimiter to remove both 
16456 \begin_inset Quotes eld
16457 \end_inset
16458
16459 smart
16460 \begin_inset Quotes erd
16461 \end_inset
16462
16463  delimiters without removing their contents.
16464 \end_layout
16465
16466 \begin_layout List
16467 \labelwidthstring 00.00.0000
16468
16469 \family sans
16470 C-9
16471 \family default
16472  
16473 \family typewriter
16474 math-delim ( )
16475 \family default
16476  -- for convenience, pressing 
16477 \family typewriter
16478 Ctrl-9
16479 \family default
16480  is the same as 
16481 \family typewriter
16482 Ctrl-(
16483 \family default
16484  or 
16485 \family typewriter
16486 Ctrl-)
16487 \end_layout
16488
16489 \begin_layout List
16490 \labelwidthstring 00.00.0000
16491
16492 \family sans
16493 S-C-parenleft
16494 \family default
16495  
16496 \family typewriter
16497 math-delim ( )
16498 \end_layout
16499
16500 \begin_layout List
16501 \labelwidthstring 00.00.0000
16502
16503 \family sans
16504 C-0
16505 \family default
16506  
16507 \family typewriter
16508 math-delim ( )
16509 \end_layout
16510
16511 \begin_layout List
16512 \labelwidthstring 00.00.0000
16513
16514 \family sans
16515 S-C-parenright
16516 \family default
16517  
16518 \family typewriter
16519 math-delim ( )
16520 \end_layout
16521
16522 \begin_layout List
16523 \labelwidthstring 00.00.0000
16524
16525 \family sans
16526 C-bracketleft
16527 \family default
16528  
16529 \family typewriter
16530 math-delim [ ]
16531 \end_layout
16532
16533 \begin_layout List
16534 \labelwidthstring 00.00.0000
16535
16536 \family sans
16537 C-bracketright
16538 \family default
16539  
16540 \family typewriter
16541 math-delim [ ]
16542 \end_layout
16543
16544 \begin_layout List
16545 \labelwidthstring 00.00.0000
16546
16547 \family sans
16548 C-S-less
16549 \family default
16550  
16551 \family typewriter
16552 math-delim langle rangle
16553 \family default
16554  -- angular delimiters 
16555 \begin_inset Formula $\left\langle \right\rangle $
16556 \end_inset
16557
16558 , not to confuse with ordinary < > signs.
16559 \end_layout
16560
16561 \begin_layout List
16562 \labelwidthstring 00.00.0000
16563
16564 \family sans
16565 C-S-greater
16566 \family default
16567  
16568 \family typewriter
16569 math-delim langle rangle
16570 \end_layout
16571
16572 \begin_layout Standard
16573 The bar bracket: on some keyboards (e.g.\InsetSpace ~
16574 some British ones), the bar character
16575  is bound to an 
16576 \family typewriter
16577 Alt
16578 \family default
16579 -something and on some wayward Unices to "brokenbar".
16580  So we define all of these keys as well.
16581 \end_layout
16582
16583 \begin_layout List
16584 \labelwidthstring 00.00.0000
16585
16586 \family sans
16587 C-S-bar
16588 \family default
16589  
16590 \family typewriter
16591 math-delim | |
16592 \end_layout
16593
16594 \begin_layout List
16595 \labelwidthstring 00.00.0000
16596
16597 \family sans
16598 C-S-brokenbar
16599 \family default
16600  
16601 \family typewriter
16602 math-delim | |
16603 \end_layout
16604
16605 \begin_layout List
16606 \labelwidthstring 00.00.0000
16607
16608 \family sans
16609 C-M-bar
16610 \family default
16611  
16612 \family typewriter
16613 math-delim | |
16614 \end_layout
16615
16616 \begin_layout List
16617 \labelwidthstring 00.00.0000
16618
16619 \family sans
16620 S-C-braceleft
16621 \family default
16622  
16623 \family typewriter
16624 math-delim { }
16625 \end_layout
16626
16627 \begin_layout List
16628 \labelwidthstring 00.00.0000
16629
16630 \family sans
16631 S-C-braceright
16632 \family default
16633  
16634 \family typewriter
16635 math-delim { }
16636 \end_layout
16637
16638 \begin_layout Standard
16639 Accents are in most cases 
16640 \family typewriter
16641 Ctrl
16642 \family default
16643 -<accent key>, e.g.\InsetSpace ~
16644
16645 \family typewriter
16646 Ctrl-.
16647
16648 \family default
16649  for overdot, 
16650 \family typewriter
16651 Ctrl-'
16652 \family default
16653  for acute accent, 
16654 \family typewriter
16655 Ctrl-~
16656 \family default
16657  for tilde (you also need to press 
16658 \family typewriter
16659 Shift
16660 \family default
16661  here) etc.
16662  For example, 
16663 \begin_inset Quotes eld
16664 \end_inset
16665
16666
16667 \family typewriter
16668 Ctrl-'
16669 \family default
16670  
16671 \family typewriter
16672 a
16673 \family default
16674
16675 \begin_inset Quotes erd
16676 \end_inset
16677
16678  inserts á.
16679  Some accents work only in math mode and others only in text mode.
16680 \end_layout
16681
16682 \begin_layout List
16683 \labelwidthstring 00.00.0000
16684
16685 \family sans
16686 C-period
16687 \family default
16688  
16689 \family typewriter
16690 accent-dot
16691 \family default
16692  -- overdot accent, ȧ (text mode only).
16693 \end_layout
16694
16695 \begin_layout List
16696 \labelwidthstring 00.00.0000
16697
16698 \family sans
16699 C-comma
16700 \family default
16701  
16702 \family typewriter
16703 math-insert 
16704 \backslash
16705 dot
16706 \family default
16707  -- overdot accent, 
16708 \begin_inset Formula $\dot{a}$
16709 \end_inset
16710
16711  (math mode only -- in physics this denotes a first derivative).
16712 \end_layout
16713
16714 \begin_layout List
16715 \labelwidthstring 00.00.0000
16716
16717 \family sans
16718 C-equals
16719 \family default
16720  
16721 \family typewriter
16722 math-insert 
16723 \backslash
16724 overrightarrow
16725 \family default
16726  -- Vector accent over math 
16727 \begin_inset Formula $\overrightarrow{x}$
16728 \end_inset
16729
16730 .
16731 \end_layout
16732
16733 \begin_layout List
16734 \labelwidthstring 00.00.0000
16735
16736 \family sans
16737 S-C-quotedbl
16738 \family default
16739  
16740 \family typewriter
16741 accent-umlaut
16742 \family default
16743  -- umlaut accent, ä (text mode only)
16744 \end_layout
16745
16746 \begin_layout List
16747 \labelwidthstring 00.00.0000
16748
16749 \family sans
16750 S-C-colon
16751 \family default
16752  
16753 \family typewriter
16754 math-insert 
16755 \backslash
16756 ddot
16757 \family default
16758  -- double dot accent, 
16759 \begin_inset Formula $\ddot{a}$
16760 \end_inset
16761
16762  (math mode only -- in physics this denotes a second derivative).
16763  To get a triple dot in math mode, use 
16764 \family typewriter
16765
16766 \backslash
16767 dddot
16768 \end_layout
16769
16770 \begin_layout List
16771 \labelwidthstring 00.00.0000
16772
16773 \family sans
16774 C-quoteleft
16775 \family default
16776  
16777 \family typewriter
16778 accent-grave
16779 \family default
16780  -- grave accent à (text mode only, use 
16781 \family typewriter
16782
16783 \backslash
16784 grave
16785 \family default
16786  for math)
16787 \end_layout
16788
16789 \begin_layout List
16790 \labelwidthstring 00.00.0000
16791
16792 \family sans
16793 S-C-asciitilde
16794 \family default
16795  
16796 \family typewriter
16797 accent-tilde
16798 \family default
16799  -- tilde accent ã (text mode only, use 
16800 \family typewriter
16801
16802 \backslash
16803 tilde
16804 \family default
16805  for math)
16806 \end_layout
16807
16808 \begin_layout List
16809 \labelwidthstring 00.00.0000
16810
16811 \family sans
16812 C-apostrophe
16813 \family default
16814  
16815 \family typewriter
16816 accent-acute
16817 \family default
16818  -- acute accent á (text mode only, use 
16819 \family typewriter
16820
16821 \backslash
16822 acute
16823 \family default
16824  for math)
16825 \end_layout
16826
16827 \begin_layout List
16828 \labelwidthstring 00.00.0000
16829
16830 \family sans
16831 S-C-asciicircum
16832 \family default
16833  
16834 \family typewriter
16835 accent-circumflex
16836 \family default
16837  -- circumflex (caret) accent â (text mode only, use 
16838 \family typewriter
16839
16840 \backslash
16841 hat
16842 \family default
16843  for math).
16844 \end_layout
16845
16846 \begin_layout Standard
16847 Function keys.
16848  The new key S-F2 for creating a LaTeX file seems handy.
16849 \end_layout
16850
16851 \begin_layout List
16852 \labelwidthstring 00.00.0000
16853
16854 \family sans
16855 F2
16856 \family default
16857  
16858 \family typewriter
16859 buffer-write
16860 \family default
16861  -- Save current document.
16862 \end_layout
16863
16864 \begin_layout List
16865 \labelwidthstring 00.00.0000
16866
16867 \family sans
16868 S-F2
16869 \family default
16870  
16871 \family typewriter
16872 buffer-export latex
16873 \family default
16874  -- Write a LaTeX file for the current document.
16875 \end_layout
16876
16877 \begin_layout List
16878 \labelwidthstring 00.00.0000
16879
16880 \family sans
16881 F3
16882 \family default
16883  
16884 \family typewriter
16885 find-replace
16886 \family default
16887  -- Find and replace dialog.
16888 \end_layout
16889
16890 \begin_layout List
16891 \labelwidthstring 00.00.0000
16892
16893 \family sans
16894 C-F4
16895 \family default
16896  
16897 \family typewriter
16898 buffer-close
16899 \family default
16900  -- same as 
16901 \family typewriter
16902 C-w
16903 \family default
16904 .
16905 \end_layout
16906
16907 \begin_layout List
16908 \labelwidthstring 00.00.0000
16909
16910 \family sans
16911 M-F4
16912 \family default
16913  
16914 \family typewriter
16915 lyx-quit
16916 \family default
16917  -- 
16918 \family typewriter
16919 Alt-F4
16920 \family default
16921  to quit LyX is the W*ndows w*ndow manager's mnemonic.
16922 \end_layout
16923
16924 \begin_layout Standard
16925
16926 \family typewriter
16927 F4
16928 \family default
16929  to 
16930 \family typewriter
16931 F8
16932 \family default
16933  are used to switch fonts.
16934  Use 
16935 \family typewriter
16936 F4
16937 \family default
16938  to switch back to the normal font.
16939  The non-default font switches 
16940 \family typewriter
16941 F5
16942 \family default
16943  - 
16944 \family typewriter
16945 F8
16946 \family default
16947  all work as toggles.
16948  They also work on the whole word if you put the cursor in the middle of
16949  the word, or if you select some text.
16950 \end_layout
16951
16952 \begin_layout List
16953 \labelwidthstring 00.00.0000
16954
16955 \family sans
16956 F4
16957 \family default
16958  
16959 \family typewriter
16960 font-default
16961 \family default
16962  -- stop using any special font
16963 \end_layout
16964
16965 \begin_layout List
16966 \labelwidthstring 00.00.0000
16967
16968 \family sans
16969 F5
16970 \family default
16971  
16972 \family typewriter
16973 font-bold
16974 \family default
16975  -- make 
16976 \series bold
16977 bold
16978 \series default
16979  text.
16980 \end_layout
16981
16982 \begin_layout List
16983 \labelwidthstring 00.00.0000
16984
16985 \family sans
16986 F6
16987 \family default
16988  
16989 \family typewriter
16990 font-emph
16991 \family default
16992  -- make 
16993 \emph on
16994 emphasized
16995 \emph default
16996  text.
16997 \end_layout
16998
16999 \begin_layout List
17000 \labelwidthstring 00.00.0000
17001
17002 \family sans
17003 F7
17004 \family default
17005  
17006 \family typewriter
17007 font-code
17008 \family default
17009  -- make 
17010 \family typewriter
17011 typewritten
17012 \family default
17013  text.
17014 \end_layout
17015
17016 \begin_layout List
17017 \labelwidthstring 00.00.0000
17018
17019 \family sans
17020 F8
17021 \family default
17022  
17023 \family typewriter
17024 font-noun
17025 \family default
17026  -- make 
17027 \noun on
17028 Caps/small caps
17029 \noun default
17030  text.
17031  (Used sometimes for people's names.)
17032 \end_layout
17033
17034 \begin_layout Standard
17035
17036 \family typewriter
17037 F9
17038 \family default
17039  is bound as 
17040 \begin_inset Quotes eld
17041 \end_inset
17042
17043 meta-prefix
17044 \begin_inset Quotes erd
17045 \end_inset
17046
17047 , same as the 
17048 \family typewriter
17049 Alt
17050 \family default
17051  key (useful e.g.\InsetSpace ~
17052 if the keyboard has no working 
17053 \family typewriter
17054 Alt
17055 \family default
17056 ).
17057 \end_layout
17058
17059 \begin_layout Standard
17060 Here are some Sciword-inspired mnemonics for frequently used math symbols.
17061  Many symbols start with a 
17062 \family typewriter
17063 C-s
17064 \family default
17065  sequence.
17066  Therefore 
17067 \family typewriter
17068 C-s
17069 \family default
17070  cannot be itself bound to anything.
17071 \end_layout
17072
17073 \begin_layout List
17074 \labelwidthstring 00.00.0000
17075
17076 \family sans
17077 M-apostrophe
17078 \family default
17079  
17080 \family typewriter
17081 math-insert 
17082 \backslash
17083 prime
17084 \family default
17085  -- The 
17086 \begin_inset Quotes eld
17087 \end_inset
17088
17089 prime
17090 \begin_inset Quotes erd
17091 \end_inset
17092
17093  symbol 
17094 \begin_inset Formula $\prime$
17095 \end_inset
17096
17097  in math mode.
17098  This is frequently unnecessary: in most cases the normal apostrophe works
17099  just fine, e.g.
17100  
17101 \begin_inset Formula $x'+2x=0$
17102 \end_inset
17103
17104 , but in some cases this would generate a double superscript error in LaTeX.
17105  For example: 
17106 \begin_inset Formula $x^{\prime2}$
17107 \end_inset
17108
17109  (
17110 \begin_inset Formula $x$
17111 \end_inset
17112
17113  prime squared) must be entered with the prime character.
17114 \end_layout
17115
17116 \begin_layout List
17117 \labelwidthstring 00.00.0000
17118
17119 \family sans
17120 C-s\InsetSpace ~
17121 apostrophe
17122 \family default
17123  
17124 \family typewriter
17125 command-sequence math-superscript; math-insert 
17126 \backslash
17127 prime;
17128 \family default
17129  -- Insert a prime as a superscript (see example above).
17130 \end_layout
17131
17132 \begin_layout List
17133 \labelwidthstring 00.00.0000
17134
17135 \family sans
17136 C-Up
17137 \family default
17138  
17139 \family typewriter
17140 math-insert ^
17141 \family default
17142  -- Insert an upper index.
17143  Also, 
17144 \family typewriter
17145
17146 \end_layout
17147
17148 \begin_layout List
17149 \labelwidthstring 00.00.0000
17150
17151 \family sans
17152 C-Down
17153 \family default
17154  
17155 \family typewriter
17156 math-insert _
17157 \family default
17158  -- Insert a lower index.
17159  Also, 
17160 \family typewriter
17161 _
17162 \end_layout
17163
17164 \begin_layout List
17165 \labelwidthstring 00.00.0000
17166
17167 \family sans
17168 C-s\InsetSpace ~
17169 d
17170 \family default
17171  
17172 \family typewriter
17173 math-insert 
17174 \backslash
17175 partial
17176 \family default
17177  -- Partial derivative symbol 
17178 \begin_inset Formula $\partial$
17179 \end_inset
17180
17181 .
17182 \end_layout
17183
17184 \begin_layout List
17185 \labelwidthstring 00.00.0000
17186
17187 \family sans
17188 C-s\InsetSpace ~
17189 e
17190 \family default
17191  
17192 \family typewriter
17193 math-insert 
17194 \backslash
17195 sum
17196 \family default
17197  -- Summation symbol 
17198 \begin_inset Formula $\sum$
17199 \end_inset
17200
17201  (not the same as the Greek letter uppercase Sigma 
17202 \begin_inset Formula $\Sigma$
17203 \end_inset
17204
17205  because it can resize and allows smart upper/lower limits).
17206 \end_layout
17207
17208 \begin_layout List
17209 \labelwidthstring 00.00.0000
17210
17211 \family sans
17212 C-s\InsetSpace ~
17213 p
17214 \family default
17215  
17216 \family typewriter
17217 math-insert 
17218 \backslash
17219 prod
17220 \family default
17221  -- Product symbol 
17222 \begin_inset Formula $\prod$
17223 \end_inset
17224
17225  (not the same as the Greek letter uppercase Pi, 
17226 \begin_inset Formula $\Pi$
17227 \end_inset
17228
17229 ).
17230 \end_layout
17231
17232 \begin_layout List
17233 \labelwidthstring 00.00.0000
17234
17235 \family sans
17236 C-s\InsetSpace ~
17237 i
17238 \family default
17239  
17240 \family typewriter
17241 math-insert 
17242 \backslash
17243 infty
17244 \family default
17245  -- Infinity 
17246 \begin_inset Formula $\infty$
17247 \end_inset
17248
17249 .
17250 \end_layout
17251
17252 \begin_layout List
17253 \labelwidthstring 00.00.0000
17254
17255 \family sans
17256 C-s\InsetSpace ~
17257 x
17258 \family default
17259  
17260 \family typewriter
17261 math-insert 
17262 \backslash
17263 times
17264 \family default
17265  -- Cross product 
17266 \begin_inset Formula $\times$
17267 \end_inset
17268
17269 .
17270 \end_layout
17271
17272 \begin_layout List
17273 \labelwidthstring 00.00.0000
17274
17275 \family sans
17276 C-s\InsetSpace ~
17277 v
17278 \family default
17279  
17280 \family typewriter
17281 math-matrix 1 2
17282 \family default
17283  -- Insert a stacked array 
17284 \begin_inset Formula $\begin{array}{c}
17285 \begin{array}{c}
17286 \end{array}\end{array}$
17287 \end_inset
17288
17289 .
17290  (Frequently useful in formulae.)
17291 \end_layout
17292
17293 \begin_layout List
17294 \labelwidthstring 00.00.0000
17295
17296 \family sans
17297 C-s\InsetSpace ~
17298 m
17299 \family default
17300  
17301 \family typewriter
17302 math-matrix 3 3
17303 \family default
17304  -- Insert a 3
17305 \begin_inset Formula $\times$
17306 \end_inset
17307
17308 3 matrix 
17309 \begin_inset Formula $\begin{array}{ccc}
17310 \\\\\end{array}$
17311 \end_inset
17312
17313 .
17314  (Then you can modify its size using the 
17315 \family sans
17316 Edit\SpecialChar \menuseparator
17317 Math
17318 \family default
17319  menu.)
17320 \end_layout
17321
17322 \begin_layout List
17323 \labelwidthstring 00.00.0000
17324
17325 \family sans
17326 C-s\InsetSpace ~
17327 S-plus
17328 \family default
17329  
17330 \family typewriter
17331 math-insert 
17332 \backslash
17333 dagger
17334 \family default
17335  -- The 
17336 \begin_inset Quotes eld
17337 \end_inset
17338
17339 dagger
17340 \begin_inset Quotes erd
17341 \end_inset
17342
17343  
17344 \begin_inset Formula $\dagger$
17345 \end_inset
17346
17347 .
17348 \end_layout
17349
17350 \begin_layout List
17351 \labelwidthstring 00.00.0000
17352
17353 \family sans
17354 C-s\InsetSpace ~
17355 equal
17356 \family default
17357  
17358 \family typewriter
17359 math-insert 
17360 \backslash
17361 equiv
17362 \family default
17363  -- 
17364 \begin_inset Quotes eld
17365 \end_inset
17366
17367 Identical equality
17368 \begin_inset Quotes erd
17369 \end_inset
17370
17371  
17372 \begin_inset Formula $\equiv$
17373 \end_inset
17374
17375 .
17376 \end_layout
17377
17378 \begin_layout List
17379 \labelwidthstring 00.00.0000
17380
17381 \family sans
17382 M-equal
17383 \family default
17384  
17385 \family typewriter
17386 math-insert 
17387 \backslash
17388 approx
17389 \family default
17390  -- 
17391 \begin_inset Quotes eld
17392 \end_inset
17393
17394 Approximate equality
17395 \begin_inset Quotes erd
17396 \end_inset
17397
17398  
17399 \begin_inset Formula $\approx$
17400 \end_inset
17401
17402 .
17403 \end_layout
17404
17405 \begin_layout List
17406 \labelwidthstring 00.00.0000
17407
17408 \family sans
17409 M-minus
17410 \family default
17411  
17412 \family typewriter
17413 math-insert 
17414 \backslash
17415 sim
17416 \family default
17417  -- The 
17418 \begin_inset Quotes eld
17419 \end_inset
17420
17421 of order
17422 \begin_inset Quotes erd
17423 \end_inset
17424
17425  sign 
17426 \begin_inset Formula $\sim$
17427 \end_inset
17428
17429 .
17430 \end_layout
17431
17432 \begin_layout List
17433 \labelwidthstring 00.00.0000
17434
17435 \family sans
17436 C-minus
17437 \family default
17438  
17439 \family typewriter
17440 math-insert 
17441 \backslash
17442 rightarrow
17443 \family default
17444  -- The arrow 
17445 \begin_inset Formula $\rightarrow$
17446 \end_inset
17447
17448  as in 
17449 \begin_inset Formula $\lim_{x\rightarrow0}$
17450 \end_inset
17451
17452 .
17453 \end_layout
17454
17455 \begin_layout List
17456 \labelwidthstring 00.00.0000
17457
17458 \family sans
17459 S-M-less
17460 \family default
17461  
17462 \family typewriter
17463 math-insert 
17464 \backslash
17465 leq
17466 \family default
17467  -- Less-or-equal 
17468 \begin_inset Formula $\leq$
17469 \end_inset
17470
17471 .
17472 \end_layout
17473
17474 \begin_layout List
17475 \labelwidthstring 00.00.0000
17476
17477 \family sans
17478 S-M-greater
17479 \family default
17480  
17481 \family typewriter
17482 math-insert 
17483 \backslash
17484 geq
17485 \family default
17486  -- Greater-or-equal 
17487 \begin_inset Formula $\geq$
17488 \end_inset
17489
17490 .
17491 \end_layout
17492
17493 \begin_layout List
17494 \labelwidthstring 00.00.0000
17495
17496 \family sans
17497 C-s\InsetSpace ~
17498 S-less
17499 \family default
17500  
17501 \family typewriter
17502 math-insert 
17503 \backslash
17504 ll
17505 \family default
17506  -- 
17507 \begin_inset Quotes eld
17508 \end_inset
17509
17510 Much less than
17511 \begin_inset Quotes erd
17512 \end_inset
17513
17514  
17515 \begin_inset Formula $\ll$
17516 \end_inset
17517
17518  (useful in physics)
17519 \end_layout
17520
17521 \begin_layout List
17522 \labelwidthstring 00.00.0000
17523
17524 \family sans
17525 C-s\InsetSpace ~
17526 S-greater
17527 \family default
17528  
17529 \family typewriter
17530 math-insert 
17531 \backslash
17532 gg
17533 \family default
17534  -- 
17535 \begin_inset Quotes eld
17536 \end_inset
17537
17538 Much greater than
17539 \begin_inset Quotes erd
17540 \end_inset
17541
17542  sign 
17543 \begin_inset Formula $\gg$
17544 \end_inset
17545
17546 .
17547 \end_layout
17548
17549 \begin_layout Subsection
17550 Standard math bindings
17551 \end_layout
17552
17553 \begin_layout List
17554 \labelwidthstring 00.00.0000
17555
17556 \family sans
17557 M-m\InsetSpace ~
17558 b
17559 \family default
17560  
17561 \family typewriter
17562 math-insert 
17563 \backslash
17564 overline
17565 \end_layout
17566
17567 \begin_layout List
17568 \labelwidthstring 00.00.0000
17569
17570 \family sans
17571 M-m\InsetSpace ~
17572 d
17573 \family default
17574  
17575 \family typewriter
17576 math-display
17577 \end_layout
17578
17579 \begin_layout List
17580 \labelwidthstring 00.00.0000
17581
17582 \family sans
17583 M-m\InsetSpace ~
17584 e
17585 \family default
17586  
17587 \family typewriter
17588 math-insert ^
17589 \end_layout
17590
17591 \begin_layout List
17592 \labelwidthstring 00.00.0000
17593
17594 \family sans
17595 M-m\InsetSpace ~
17596 f
17597 \family default
17598  
17599 \family typewriter
17600 math-insert 
17601 \backslash
17602 frac
17603 \end_layout
17604
17605 \begin_layout List
17606 \labelwidthstring 00.00.0000
17607
17608 \family sans
17609 M-m\InsetSpace ~
17610 g
17611 \family default
17612  
17613 \family typewriter
17614 math-greek
17615 \end_layout
17616
17617 \begin_layout List
17618 \labelwidthstring 00.00.0000
17619
17620 \family sans
17621 M-m\InsetSpace ~
17622 h
17623 \family default
17624  
17625 \family typewriter
17626 accent-circumflex
17627 \end_layout
17628
17629 \begin_layout List
17630 \labelwidthstring 00.00.0000
17631
17632 \family sans
17633 M-m\InsetSpace ~
17634 i
17635 \family default
17636  
17637 \family typewriter
17638 math-insert 
17639 \backslash
17640 int
17641 \end_layout
17642
17643 \begin_layout List
17644 \labelwidthstring 00.00.0000
17645
17646 \family sans
17647 M-m\InsetSpace ~
17648 l
17649 \family default
17650  
17651 \family typewriter
17652 math-limits
17653 \end_layout
17654
17655 \begin_layout List
17656 \labelwidthstring 00.00.0000
17657
17658 \family sans
17659 M-m\InsetSpace ~
17660 m
17661 \family default
17662  
17663 \family typewriter
17664 math-mode
17665 \end_layout
17666
17667 \begin_layout List
17668 \labelwidthstring 00.00.0000
17669
17670 \family sans
17671 M-m\InsetSpace ~
17672 n
17673 \family default
17674  
17675 \family typewriter
17676 math-number
17677 \end_layout
17678
17679 \begin_layout List
17680 \labelwidthstring 00.00.0000
17681
17682 \family sans
17683 M-m\InsetSpace ~
17684 o
17685 \family default
17686  
17687 \family typewriter
17688 math-insert 
17689 \backslash
17690 oint
17691 \end_layout
17692
17693 \begin_layout List
17694 \labelwidthstring 00.00.0000
17695
17696 \family sans
17697 M-m\InsetSpace ~
17698 p
17699 \family default
17700  
17701 \family typewriter
17702 math-insert 
17703 \backslash
17704 partial
17705 \end_layout
17706
17707 \begin_layout List
17708 \labelwidthstring 00.00.0000
17709
17710 \family sans
17711 M-m\InsetSpace ~
17712 r
17713 \family default
17714  
17715 \family typewriter
17716 math-insert 
17717 \backslash
17718 sqrt
17719 \end_layout
17720
17721 \begin_layout List
17722 \labelwidthstring 00.00.0000
17723
17724 \family sans
17725 M-m\InsetSpace ~
17726 s
17727 \family default
17728  
17729 \family typewriter
17730 math-insert 
17731 \backslash
17732 sqrt
17733 \end_layout
17734
17735 \begin_layout List
17736 \labelwidthstring 00.00.0000
17737
17738 \family sans
17739 M-m\InsetSpace ~
17740 u
17741 \family default
17742  
17743 \family typewriter
17744 math-insert 
17745 \backslash
17746 sum
17747 \end_layout
17748
17749 \begin_layout List
17750 \labelwidthstring 00.00.0000
17751
17752 \family sans
17753 M-m\InsetSpace ~
17754 v
17755 \family default
17756  
17757 \family typewriter
17758 math-insert 
17759 \backslash
17760 vec
17761 \end_layout
17762
17763 \begin_layout List
17764 \labelwidthstring 00.00.0000
17765
17766 \family sans
17767 M-m\InsetSpace ~
17768 x
17769 \family default
17770  
17771 \family typewriter
17772 math-insert _
17773 \end_layout
17774
17775 \begin_layout List
17776 \labelwidthstring 00.00.0000
17777
17778 \family sans
17779 M-m\InsetSpace ~
17780 8
17781 \family default
17782  
17783 \family typewriter
17784 math-insert 
17785 \backslash
17786 infty
17787 \end_layout
17788
17789 \begin_layout List
17790 \labelwidthstring 00.00.0000
17791
17792 \family sans
17793 M-m\InsetSpace ~
17794 S-G
17795 \family default
17796  
17797 \family typewriter
17798 math-greek-toggle
17799 \end_layout
17800
17801 \begin_layout List
17802 \labelwidthstring 00.00.0000
17803
17804 \family sans
17805 M-m\InsetSpace ~
17806 S-N
17807 \family default
17808  
17809 \family typewriter
17810 math-nonumber
17811 \end_layout
17812
17813 \begin_layout List
17814 \labelwidthstring 00.00.0000
17815
17816 \family sans
17817 M-m\InsetSpace ~
17818 S-period
17819 \family default
17820  
17821 \family typewriter
17822 accent-dot
17823 \end_layout
17824
17825 \begin_layout List
17826 \labelwidthstring 00.00.0000
17827
17828 \family sans
17829 M-m\InsetSpace ~
17830 S-asciitilde
17831 \family default
17832  
17833 \family typewriter
17834 accent-tilde
17835 \end_layout
17836
17837 \begin_layout List
17838 \labelwidthstring 00.00.0000
17839
17840 \family sans
17841 M-m\InsetSpace ~
17842 S-apostrophe
17843 \family default
17844  
17845 \family typewriter
17846 math-insert 
17847 \backslash
17848 prime
17849 \end_layout
17850
17851 \begin_layout List
17852 \labelwidthstring 00.00.0000
17853
17854 \family sans
17855 M-m\InsetSpace ~
17856 S-parenleft
17857 \family default
17858  
17859 \family typewriter
17860 math-delim ( )
17861 \end_layout
17862
17863 \begin_layout List
17864 \labelwidthstring 00.00.0000
17865
17866 \family sans
17867 M-m\InsetSpace ~
17868 S-bracketleft
17869 \family default
17870  
17871 \family typewriter
17872 math-delim [ ]
17873 \end_layout
17874
17875 \begin_layout List
17876 \labelwidthstring 00.00.0000
17877
17878 \family sans
17879 M-m\InsetSpace ~
17880 S-braceleft
17881 \family default
17882  
17883 \family typewriter
17884 math-delim { }
17885 \end_layout
17886
17887 \begin_layout List
17888 \labelwidthstring 00.00.0000
17889
17890 \family sans
17891 M-m\InsetSpace ~
17892 S-less
17893 \family default
17894  
17895 \family typewriter
17896 math-delim langle rangle
17897 \end_layout
17898
17899 \begin_layout List
17900 \labelwidthstring 00.00.0000
17901
17902 \family sans
17903 M-m\InsetSpace ~
17904 S-greater
17905 \family default
17906  
17907 \family typewriter
17908 math-delim rangle langle
17909 \end_layout
17910
17911 \begin_layout List
17912 \labelwidthstring 00.00.0000
17913
17914 \family sans
17915 M-m\InsetSpace ~
17916 S-bar
17917 \family default
17918  
17919 \family typewriter
17920 math-delim | |
17921 \end_layout
17922
17923 \begin_layout List
17924 \labelwidthstring 00.00.0000
17925
17926 \family sans
17927 M-m\InsetSpace ~
17928 S-plus
17929 \family default
17930  
17931 \family typewriter
17932 math-insert 
17933 \backslash
17934 pm
17935 \end_layout
17936
17937 \begin_layout List
17938 \labelwidthstring 00.00.0000
17939
17940 \family sans
17941 M-m\InsetSpace ~
17942 S-equal
17943 \family default
17944  
17945 \family typewriter
17946 math-insert 
17947 \backslash
17948 neq
17949 \end_layout
17950
17951 \begin_layout Subsection
17952 Other Accelerators
17953 \end_layout
17954
17955 \begin_layout List
17956 \labelwidthstring 00.00.0000
17957
17958 \family sans
17959 M-k\InsetSpace ~
17960 o
17961 \family default
17962  
17963 \family typewriter
17964 keymap-off
17965 \end_layout
17966
17967 \begin_layout List
17968 \labelwidthstring 00.00.0000
17969
17970 \family sans
17971 M-k\InsetSpace ~
17972 t
17973 \family default
17974  
17975 \family typewriter
17976 keymap-toggle
17977 \end_layout
17978
17979 \begin_layout List
17980 \labelwidthstring 00.00.0000
17981
17982 \family sans
17983 M-k\InsetSpace ~
17984 x
17985 \family default
17986  
17987 \family typewriter
17988 keymap-off
17989 \end_layout
17990
17991 \begin_layout List
17992 \labelwidthstring 00.00.0000
17993
17994 \family sans
17995 M-k\InsetSpace ~
17996 1
17997 \family default
17998  
17999 \family typewriter
18000 keymap-primary
18001 \end_layout
18002
18003 \begin_layout List
18004 \labelwidthstring 00.00.0000
18005
18006 \family sans
18007 M-k\InsetSpace ~
18008 2
18009 \family default
18010  
18011 \family typewriter
18012 keymap-secondary
18013 \end_layout
18014
18015 \end_body
18016 \end_document