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