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