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