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