]> git.lyx.org Git - lyx.git/blob - lib/lyxrc.example
e0395a1cb510fa2200bbffdc847aaf7a89ef9225
[lyx.git] / lib / lyxrc.example
1 ### This file is part of
2 ### =====================================================
3 ###
4 ###           LyX, the High Level Word Processor
5 ###
6 ###  Copyright 1995-1997 Matthias Ettrich & the LyX Team
7 ###
8 ### =====================================================
9
10 # The file lyxrc.example is a template to write your own lyxrc file. 
11 # If you copy/rename it to lyxrc in the current directory, it will
12 # give global options for all LyX users. It is also possible to copy
13 # this file to $HOME/.lyx/lyxrc so that the configuration applies to a
14 # particular user.
15 #
16 # Several of these settings have defaults that are auto-detected when you use
17 # the menu option Options->Reconfigure.  You can see their value by looking at
18 # the file $HOME/.lyx/lyxrc.defaults. Any setting in this file will override
19 # the defaults.
20
21 #
22 # BIND SECTION ###########################################################
23 #
24
25 # Before defining your own key-bindings, select one of the available default
26 # binding sets. These are resource files (like this one) that define a
27 # large set of (keyboard) bindings. These files live in bind directory of
28 # the LyX system directory and have in general the .bind suffix.
29 # Currently, you can choose from the following flavors:
30 #
31 # cua.bind            for Windows-, Mac- and Motif-like bindings
32 # emacs.bind          for Emacs-like bindings.
33 #
34 # The \bind_file command looks in the LyX bind directory for a file 
35 # of the given name, but a full path can also be given. If you have
36 # a bind file in your ~/.lyx/bind/ directory, it will be preferred
37 # over a system wide bind file. Default is `cua'.
38
39 #\bind_file cua
40 #\bind_file emacs
41
42 # Based on the default, you can now change part or all of it with the
43 # \bind command. For example, when you want the delete key to do the
44 # backspace action, uncomment the following line:
45 #\bind "Delete" "delete-backward"
46
47 # However, if you're not at all happy with the default bindings,
48 # the most logical thing to do would be to use one of the system
49 # wide bind files as a template and place your own version in
50 # ~/.lyx/bind/mine_is_best.bind and change the above \bind_file 
51 # to this instead:
52 #\bind_file mine_is_best
53
54 # Tip: Use "lyx -dbg 4" to survey how LyX interprets your keybindings.
55
56
57 #
58 # MISC SECTION ###########################################################
59 #
60
61 # Set to false if you don't want the current selection to be replaced
62 # automatically by what you type. Default is true.
63 #\auto_region_delete false
64
65 # This is the time interval between auto-saves (in seconds).
66 # 0 means no auto-save, default is 300 for five minutes.
67 #\autosave 600
68
69 # LyX asks for a second confirmation to exit if you exit with changed 
70 # documents that you don't want to save.  You can turn this confirmation off 
71 # (LyX will still ask to save changed documents) with the following line.
72 # We recommend to keep the confirmation, though.
73 #\exit_confirmation false
74
75 # LyX continously displays names of last command executed, along with a list 
76 # of defined short-cuts for it in the minibuffer.
77 # It requires some horsepower to function, so you can turn it off, if LyX
78 # seems slow to you, by uncommenting this line:
79 #\display_shortcuts false
80
81 # Define which program to use to view dvi files here.
82 # You can include any options you need by "quoting" the entire command.
83 # The default is "xdvi".
84 # Example: the next line would use xdvi and display with shrink 2:
85 #\view_dvi_command "xdvi -s 2"
86 # It can get more involved. Expert users might prefer something like:
87 #\view_dvi_command "xdvi -s 2 -expert -geometry 1014x720+0+0 -keep -margins 1.5"
88
89 # \view_dvi_paper_option allows to specify a paper option to the dvi
90 # viewer. By default LyX specifies the paper size of the document to
91 # the dvi viewer via the command line option -paper size, where size
92 # is one of "us","letter","a3","a4" and so on. The command
93 # \view_dvi_paper_option allows the user to overwrite the name of the
94 # command line flag, i.e. replace -paper with something else. If
95 # specified and left empty, i.e. \view_dvi_paper_option "", LyX does
96 # not append the -paper option to the dvi command at all. This case is
97 # especially useful when viewing your documents on Windows with yap,
98 # because yap does not allow a command line option for the paper size.
99 #\view_dvi_paper "" 
100
101 # LyX assumes that the default papersize should be usletter.  If this is not
102 # true for your site, use the next line to specify usletter, legal,
103 # executive, a3, a4, a5, or b5 as the default papersize.
104 #\default_papersize "a4"
105
106 # Define which program to use to view pdf files here.
107 # You can include any options you need by "quoting" the entire command
108 # The default is auto-detected, but you might want to override it.
109 # Usual values are: xpdf, acroread, gv, ghostscript.
110 #\view_pdf_command "xpdf"
111
112 # Define which program to use to view postscript files here.
113 # You can include any options you need by "quoting" the entire command
114 # The default is auto-detected, but you might want to override it.
115 # It is possible to get nice anti-aliased text (slower, but as nice as
116 # xdvi) by using something like
117 #\view_ps_command "ghostview -swap -sDEVICE=x11alpha"
118
119 # Define which program to use to full screen view included postscript
120 # pictures. You can not include any options. The default is auto-detected.
121 #\view_pspic_command ghostview
122
123 # Define which program to use to use as postscript interpreter for included
124 # images.
125 # You can not include any options. The default is "gs" if it can be found.
126 # If you have a slow computer, you should consider turning off the WYSIWYG 
127 # display of includes images, by using this command:
128 #\ps_command ""
129
130 # Define which program to use to run "chktex".
131 # You should include options that turn different warnings on and off.
132 # Default is "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"
133 # Check the ChkTeX documentation for info on what the flags mean.
134 # Example: use this to ignore warnings about using "\ldots" instead of "..."
135 #\chktex_command "chktex -n11 -n1 -n3 -n6 -n9 -22 -n25 -n30 -n38"
136
137 # Define which program to use to translate latex to HTML.
138 # You should include options. The default is autodetected: the programs 
139 # checked are tth, latex2html and hevea, and the default command lines
140 # used are:  
141 #\html_command "tth -t < '$$FName' > '$$OutName'"
142 #\html_command "latex2html -no_subdir -split 0 -show_section_numbers '$$FName'"
143 #\html_command "hevea -s '$$FName'"
144 # The variable name $$FName is replaced with the name of the .tex
145 # file, and $$OutName is replaced with the name of the html file.
146 # Example: use this to let math be italic with tth.
147 #\html_command "tth -t -i < '$$FName' > '$$OutName'"
148
149 # If you want to pass extra flags to the LinuxDoc sgml scripts, insert them
150 # here. 
151 # Example: the next line activates iso-latin1 support:
152 #\sgml_extra_options -l
153
154 # Keyboard Mapping. Use this to set the correct mapping file for your
155 # keyboard, that is if you need one. You'll need one if you for instance
156 # want to type German documents on an American keyboard. In that case,
157 # uncomment these three lines:
158 #\kbmap true
159 #\kbmap_primary german
160 #\kbmap_secondary american
161 # The following keyboards are supported: american, czech, francais,
162 # french, german, german-2, magyar, magyar-2, portuges, romanian,
163 # slovak, slovene, transilvanian, turkish and turkish-f. Check
164 # the lib/kbd directory if you want to write support for your language.
165 # If you do, please submit it to lyx-devel@lists.lyx.org.
166
167 # The Pause button is defined to be a three-way switch between primary 
168 # keyboard, secondary keyboard, and no keyboard mapping with the
169 # following command. It is useful if you want to write in a language
170 # not directly supported by your keyboard and you have defined a
171 # custom keyboard mapping above.
172 #\bind "Pause" "keymap-toggle"
173
174 # This starts the lyxserver. The pipes get an additional extension
175 # '.in' and '.out'. Only for advanced users.
176 # \serverpipe "/home/chb/.lyxpipe"
177
178 # Which command to use to invoke the reLyX script to convert
179 # LaTeX files to LyX files.  This setting is automatically
180 # disabled if you do not have the appropriate Perl version
181 # installed.  In that case, the File->Import LaTeX command
182 # will be disabled.  If the reLyX command does work for you,
183 # you can override that here by uncommenting this line:
184 #\relyx_command "reLyX"
185 #
186 # If it doesn't work, you can disable the command by uncommenting
187 # this line:
188 #\relyx_command "none"
189
190 #
191 # SCREEN & FONTS SECTION #################################################
192 #
193
194 # DPI (dots per inch) of your monitor is auto-detected by LyX. If that goes 
195 # wrong, you can override the setting here:
196 #\screen_dpi 100
197
198 # The zoom percentage for screen fonts.
199 # A setting of 100% will make the fonts roughly the same size as on paper. 
200 # However, since a screen is wider than a piece of paper, the default setting
201 # is 150%.
202 #\screen_zoom 100
203
204 # LyX offers a faster method for drawing selected text if you uncomment the 
205 # following line. The trick is to invert the color-information. This will 
206 # switch between white and black and give almost random results for
207 # other colors, so a white background is necessary. Any other settings of 
208 # the background color will be ignored for this reason. This setting
209 # is useful on monochrome screens and on slow systems. Fast selection
210 # can cause cosmetic problems with a few broken X servers.
211 #\fast_selection true
212
213 # If you don't like the default background or selection color, you can
214 # set your own here:
215 #\background_color white
216 #\background_color lightyellow
217 #
218 # For reference, the defaults are:
219 #\background_color linen
220 #\selection_color lightblue
221
222 # LyX normally doesn't update the cursor position if you move the scrollbar.
223 # If you scroll the cursor off the screen and then start typing LyX will
224 # move you back to where the cursor was. If you'd prefer to always have the 
225 # cursor on screen, bounded by the topmost and bottommost visible lines 
226 # -- much like XEmacs for example -- then uncomment the next line.
227 #\cursor_follows_scrollbar true
228
229 # The screen fonts used to display the text while editing
230 # The defaults are:
231 #\screen_font_roman "-*-times"
232 #\screen_font_sans "-*-helvetica"
233 #\screen_font_typewriter "-*-courier"
234
235 # For some, this font looks better:
236 #\screen_font_roman "-*-utopia"
237
238 # Allow the use of scalable screen fonts? Default is true.
239 # If you choose "false", LyX will use the closest existing size for a match.
240 # Use this if the scalable fonts look bad and you have many fixed size fonts.
241 #\screen_font_scalable false
242
243 # Tip: Run lyx as "lyx -dbg 512" to learn which fonts are used.
244
245 # The norm for the screen fonts. The default is iso8859-1, which is
246 # the same as what LaTeX calls latin1.
247 #\screen_font_encoding iso8859-2
248
249 # The font for popups. It is set to 
250 #    <font_popup>-*-*-*-?-*-*-*-*-<font_encoding>.
251 # The default  is:
252 #\screen_font_popup "-*-helvetica-medium-r"
253
254 # The font for menus (and groups titles in popups). It is set to 
255 #    <font_menu>-*-*-*-?-*-*-*-*-<font_encoding>.
256 # The default  is:
257 #\screen_font_menu "-*-helvetica-bold-r"
258
259 # The font sizes used for calculating the scaling of the screen fonts.
260 # You should only have to change these if the fonts on your screen look bad,
261 # in which case you can fine tune the font selection size by size. LyX selects
262 # font size according to this table, the monitor DPI setting and the current
263 # zoom setting. 
264 # The format is:
265 #\screen_font_sizes tiny smallest smaller small normal large larger largest huge huger
266 #
267 # This is the default in LyX (exactly what LaTeX does):
268 #\screen_font_sizes 5.0 7.0 8.0 9.0 10.0 12.0 14.4 17.28 20.74 24.88
269
270 #
271 # TOOLBAR SECTION ########################################################
272 #
273
274 # Setup your favorite Toolbar here:
275 # Only three commands are allowed inside the begin_toolbar and end_toolbar
276 # directives: 
277 #   \add <action> [<parameter>] adds an icon to the toolbar performing
278 #          "<action> <parameter>"
279 #      Examples:
280 #      \add font-size small
281 #      \add set-emph
282 #
283 #   \layouts adds the layouts combo-box to the toolbar
284 #
285 #   \separator adds some spacing to the toolbar
286 #
287 # These actions have icons (please give us more :-):
288 #   buffer-open, buffer-close, buffer-print, buffer-write, font-emph,
289 #   font-noun, font-free, footnote-insert, depth-next, copy, cut, paste,
290 #   tex-mode, math-mode, marginpar-insert, figure-insert, table-insert,
291 #   melt, lyx-quit, buffer-export ascii|latex, font-bold, font-sans, 
292 #   buffer-typeset, buffer-view, buffer-view-ps, symbol_insert [parameter]
293 #
294 #  All other lyx commands will get a "unknown" icon.
295 #
296 # This is the default toolbar:
297 #\begin_toolbar
298 #\layouts
299 #\add buffer-open
300 #\add buffer-write
301 #\add buffer-print
302 #\separator
303 #\add cut
304 #\add copy
305 #\add paste
306 #\separator
307 #\add font-emph
308 #\add font-noun
309 #\add font-free
310 #\separator
311 #\add footnote-insert
312 #\add marginpar-insert
313 #\add depth-next
314 #\separator
315 #\add tex-mode
316 #\add math-mode
317 #\separator
318 #\add figure-insert
319 #\add table-insert
320 #\end_toolbar
321
322 #
323 # PRINTER SECTION ########################################################
324 #
325
326 # The default printer to print on. If none is specified, LyX will use
327 # the environment variable PRINTER. If that fails, the default is empty.
328 #\printer ""
329
330 # If you have setup (as we recommend you to do) your print program
331 # (e.g. dvips) to take advantage of the particularities of the various
332 # printers you have access to, then you should set the following to
333 # true. Then LyX will pass the name of the destination printer to your
334 # print command.
335 # The default is false, because we have unfortunately to cope with
336 # people who refuse to take the time to configure their system.
337 # Note that you will probably have to change \print_spool_command below.
338 #\print_adapt_output true
339
340 # If you don't use dvips, you may specify your favorite print program
341 # here. See other options at the end of this section to adapt LyX to
342 # your print program.
343 #\print_command dvips
344
345 # Extra options to pass to printing program after everything 
346 # else, but before the filename of the DVI file to be printed.
347 #\print_extra_options ""
348
349 # When set, this printer option automatically prints to a file 
350 # and then calls a separate print spooling program on that file
351 # with the given name and arguments.
352 # This is set by default to 'lp' or 'lpr', depending on what your
353 # system uses. 
354 # Set this to "" if you have set up dvips so that it sends
355 # output to the right printer (remember to also use \print_adapt_output).
356 #\print_spool_command ""
357
358 # If you specify a printer name in the print dialog,
359 # the following argument is prepended along with the printer name
360 # after the spool command. The default is autodetected, along with
361 # \print_spool_command determination. 
362 #\print_spool_printerprefix ""
363
364 # Other print related options
365
366 # The following options are only of interest to people who do not
367 # use dvips as print command. You may safely skip to the end of this
368 # section otherwise.
369
370 # These specify the options to pass to the printer program to select the
371 # corresponding features. These default to the options used for the dvips
372 # program. Look at the man page for your favorite print program to learn
373 # which options to use.
374 # Normally you don't need to change this unless you use something other
375 # than dvips. 
376 #\print_evenpage_flag -B
377 #\print_oddpage_flag -A
378 #\print_reverse_flag -r 
379 #\print_landscape_flag "-t landscape"
380 #\print_pagerange_flag -pp
381 #\print_copies_flag -c
382 #\print_collcopies_flag -C
383 #\print_paper_flag -t
384 #\print_paper_dimension_flag -T
385
386 # Option to pass to the print program to print on a specific printer.
387 #\print_to_printer -P
388
389 # Option to pass to the print program to print to a file.
390 #\print_to_file -o 
391
392 # Extension of printer program output file. Usually .ps
393 #\print_file_extension .ps
394
395 # Sample configuration to use with dvilj4 for a HP Laserjet IV (or
396 # better) printer [provided by Reuben Thomas <rrt@sc3d.org>]:
397 #\print_command dvilj4
398 #\print_extra_options -q
399 #\print_evenpage_flag "-D2 -r"
400 #\print_oddpage_flag -D1
401 #\print_reverse_flag -r 
402 #\print_landscape_flag -l
403 #\print_pagerange_flag -p
404 #\print_to_file -e
405 #\print_file_extension .lj
406 #\print_copies_flag -c
407 #\print_collcopies_flag -c
408 #\print_adapt_output false
409
410
411 #
412 # EXPORT SECTION ########################################################
413 #
414
415
416 # With this you can send a LyX-Document to a User-defined program. You
417 # can specify by adding the tag $$FName where the filename should be
418 # put on the defined command. if no $$FName is specified the file is
419 # sent in standard input (stdin). There is no default command
420 # specified.  Example: 
421 #\custom_export_command "kghostview $$FName"
422 #
423 # A more elaborate example to create pdf files with ps2pdf would be: 
424 #\custom_export_command "ps2pdf '$$FName' `basename '$$FName' .ps_tmp`.pdf"  
425
426
427 # This is the default for the type of contents to be sent to the export
428 # command: possible values are lyx, dvi, tex, ps and ascii.
429 #\custom_export_format ps
430
431 #
432 # TEX SECTION  ###########################################################
433 #
434
435 # LyX tries to auto-detect which command to use to invoke LaTeX(2e).
436 # If the auto-detection for some reasons fail, you can override it
437 # here:
438 #\latex_command latex2e
439
440 # The command used to generate pdf files directly from a latex file.
441 # A program that works in anyother way is not guarantied to work.
442 #\pdflatex_command pdflatex
443
444 # The command used to generate postscript files from pdf files.
445 #\pdf_to_ps_command pdf2ps
446
447 # If to use pdf as native export format instead of dvi. This makes LyX use
448 # pdflatex, pdf2ps and other utility programs. Default is false.
449 #\pdf_mode false
450
451 # The font encoding used for the LaTeX2e fontenc package.
452 # T1 is highly recommended for non-English languages. LyX uses T1 as a
453 # default if you have the ec fonts installed on your system.
454 #\font_encoding T1
455 # Choose "default" if T1 doesn't work for you for some reason:
456 #\font_encoding default
457
458
459 #
460 # FILE SECTION  ##########################################################
461 #
462
463 # The default path for your documents.
464 # Default is $HOME
465 #\document_path ~/Documents/
466
467 # The file where the last-files information should be stored.
468 # Default is ~/.lyx/lastfiles
469 #\lastfiles ~/.lyx_lastfiles
470
471 # Maximal number of lastfiles. Up to nine can appear in the file menu.
472 # Default is four.
473 #\num_lastfiles 9
474
475 # Flag telling whether the lastfiles should be checked for existence.
476 # Files that does not exist are left out of the lastfiles entries.
477 # Default is true. If you use slow or removable media, such as networks
478 # or floppy disks, you can speed up the starting time of LyX by disabling 
479 # this feature.
480 #\check_lastfiles false
481
482 # The path that LyX will set when offering you to choose a template.
483 # Default is (System LyX dir)/templates
484 #\template_path ~/.lyx/templates
485
486 # The path that LyX will use to put temporary TeX outputs.
487 # Default is /tmp/<unique directory for each instance of LyX>
488 # containing <unique subdirectory for each buffer>
489 # If you set it, it will be /directory/<unique subdirectory for each buffer>
490 # (unless set to /tmp).
491 #\tempdir_path /usr/tmp
492
493 # If you set this flag, LyX will always use a temporary directory
494 # to put TeX outputs into. It is enabled by default.
495 # This directory is deleted when you quit LyX.
496 # You might want to avoid using a temporary directory in several
497 # cases:
498 # - LaTeX cannot find some files it needs;
499 # - you have a large number of include files, and you get messages
500 #   saying that some LaTeX buffers overflow.
501 # Note that, even if tell LyX not to use a temporary directory, there
502 # will be cases where it will be forced to: this happens for example
503 # when typesetting a file in a read-only directory (documentation).
504 #\use_tempdir false
505
506 # This is the maximum line length of an exported ASCII file (LaTeX,
507 # SGML or plain text). Default is 75. 
508 #\ascii_linelen 80
509
510
511 #
512 # FAX SECTION #############################################################
513 #
514
515 # In the following, the <$$something> strings are substituted by
516 # reasonable values by LyX. The 's are important as there may be spaces in 
517 # the string. The default is auto-detected.
518 # This one is what is used with HylaFax:
519 #\fax_command "sendfax -n -h '$$Host' -c '$$Comment' -x '$$Enterprise' -d '$$Name'@'$$Phone' '$$FName'"
520 # Use this for the efax-command:
521 #\fax_command "faxsend '$$Phone' '$$FName'"
522
523 # This is the name of your phone book. It's per default situated in ~/.lyx/,
524 # but you can override that with an absolute path.
525 #\phone_book phonebook
526
527 # This is how to call an external FAX-program instead of the built-in.
528 # You may also insert $$FName to reference the PostScript file.
529 #\fax_program "myfaxprg '$$FName'"
530 #\fax_program tkhylafax
531
532 #
533 # ASCII EXPORT SECTION ###################################################
534 #
535
536 # The following entry can be used to define an external program to
537 # render tables in the ASCII output. If you specify "none", a simple 
538 # internal routine is used. The default is auto-detected.
539 # The following line will use groff and output using latin-1 encoding
540 # (here $$FName is the input file and the output goes to stdout):
541 #\ascii_roff_command "groff -t -Tlatin1 $$FName"
542
543 #
544 # SPELLCHECKER SECTION ####################################################
545 #
546
547 # What command runs the spell checker? Default is "ispell" if it is
548 # installed, "none" otherwise.
549 # If you have aspell (http://metalab.unc.edu/kevina/aspell/)
550 # installed and configured, you might want to uncomment the line below.
551 #\spell_command aspell
552
553 # Consider run-together words, such as "notthe" for "not the", as legal 
554 # words? Default is false. 
555 #\accept_compound true
556
557 # Specify an alternate language. The default is to use the language of 
558 # document. Uncomment both to enable.
559 #\use_alt_language true
560 #\alternate_language dansk
561
562 # Specify additional chars that can be part of a word.
563 #\use_escape_chars true
564 #\escape_chars "æøåÆØÅ"
565
566 # Specify an alternate personal dictionary file. If the file name does not
567 # begin with "/", $HOME is prefixed. The default is to search for a personal 
568 # dictionary in both the current directory and $HOME, creating one in $HOME 
569 # if none is found. The preferred name is constructed by appending ".ispell_" 
570 # to the base name of the hash file. For example, if you use the English 
571 # dictionary, your personal dictionary would be named ".ispell_english". 
572 #\use_personal_dictionary true
573 #\personal_dictionary .ispell_dansk
574
575 # Specify whether to pass the -T input encoding option to ispell (only if the 
576 # language is different than "default".) Enable this if you can't spellcheck
577 # words with international letters in them. There have been reports that this
578 # does not work with all dictionaries, so this is disabled by default.
579 #\use_input_encoding true
580
581 # Default format string for the date-insert command
582 #
583 # This accepts the normal strftime formats; see man strftime for full
584 # details of the format.
585 #
586 #\date_insert_format "%A, %e. %B %Y"