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