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