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