]> git.lyx.org Git - lyx.git/blob - lib/lyxrc.example
Search for "gswin32" also when looking for ghostscript.
[lyx.git] / lib / lyxrc.example
1 # -*- text -*-
2
3 # file lyxrc.example
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
6
7 # author Lars Gullik Bjønnes
8 # author Jean-Marc Lasgouttes
9 # author José Matos
10 # author Asger Alstrup Nielsen
11 # author Ed Scott
12 # author Lior Silberman
13 # author Dekel Tsur
14
15 # Full author contact details are available in file CREDITS.
16
17 # The file lyxrc.example is a template to write your own lyxrc file.
18 # If you copy/rename it to lyxrc in the current directory, it will
19 # give global options for all LyX users. It is also possible to copy
20 # this file to $HOME/.lyx/lyxrc so that the configuration applies to a
21 # particular user.
22 #
23 # Several of these settings have defaults that are auto-detected when you use
24 # the menu option Options->Reconfigure.  You can see their value by looking at
25 # the file $HOME/.lyx/lyxrc.defaults. Any setting in this file will override
26 # the defaults.
27
28 #
29 # BIND SECTION ###########################################################
30 #
31
32 # Before defining your own key-bindings, select one of the available default
33 # binding sets. These are resource files (like this one) that define a
34 # large set of (keyboard) bindings. These files live in bind directory of
35 # the LyX system directory and have in general the .bind suffix.
36 # Currently, you can choose from the following flavors:
37 #
38 # cua.bind            for Windows-, Mac- and Motif-like bindings
39 # emacs.bind          for Emacs-like bindings.
40 #
41 # The \bind_file command looks in the LyX bind directory for a file
42 # of the given name, but a full path can also be given. If you have
43 # a bind file in your ~/.lyx/bind/ directory, it will be preferred
44 # over a system wide bind file. Default is `cua'.
45
46 #\bind_file cua
47 #\bind_file emacs
48
49 # Based on the default, you can now change part or all of it with the
50 # \bind command. For example, when you want the delete key to do the
51 # backspace action, uncomment the following line:
52 #\bind "Delete" "delete-backward"
53
54 # However, if you're not at all happy with the default bindings,
55 # the most logical thing to do would be to use one of the system
56 # wide bind files as a template and place your own version in
57 # ~/.lyx/bind/mine_is_best.bind and change the above \bind_file
58 # to this instead:
59 #\bind_file mine_is_best
60
61 # By default, LyX takes over the handling of the dead keys (or accent
62 # keys) that may be defined for your keyboard. While this allows you
63 # to enter characters that would not be normally available, some
64 # people dislike the different behaviour. You can use raw dead keys by
65 # just uncommenting the next line
66 #\override_x_deadkeys false
67
68 # Tip: Use "lyx -dbg 4" to survey how LyX interprets your keybindings.
69
70
71 #
72 # MISC SECTION ###########################################################
73 #
74
75 # Set this to false if you don't want the startup banner.
76 # Default is true.
77 #\show_banner true
78
79 # Set to false if you don't want the current selection to be replaced
80 # automatically by what you type. Default is true.
81 #\auto_region_delete false
82
83 # This is the time interval between auto-saves (in seconds).
84 # 0 means no auto-save, default is 300 for five minutes.
85 #\autosave 600
86
87 # LyX asks for a second confirmation to exit if you exit with changed
88 # documents that you don't want to save.  You can turn this confirmation off
89 # (LyX will still ask to save changed documents) with the following line.
90 # We recommend to keep the confirmation, though.
91 #\exit_confirmation false
92
93 # This sets the behaviour if you want to be asked for a filename when
94 # creating a new document or wait until you save it and be asked then.
95 # The default for now is ask on save.
96 # \new_ask_filename false
97
98 # LyX continously displays names of last command executed, along with a list
99 # of defined short-cuts for it in the minibuffer.
100 # It requires some horsepower to function, so you can turn it off, if LyX
101 # seems slow to you, by uncommenting this line:
102 #\display_shortcuts false
103
104 # \view_dvi_paper_option allows to specify a paper option to the dvi
105 # viewer. By default LyX specifies the paper size of the document to
106 # the dvi viewer via the command line option -paper size, where size
107 # is one of "us","letter","a3","a4" and so on. The command
108 # \view_dvi_paper_option allows the user to overwrite the name of the
109 # command line flag, i.e. replace -paper with something else. If
110 # specified and left empty, i.e. \view_dvi_paper_option "", LyX does
111 # not append the -paper option to the dvi command at all. This case is
112 # especially useful when viewing your documents on Windows with yap,
113 # because yap does not allow a command line option for the paper size.
114 #\view_dvi_paper_option ""
115
116 # LyX assumes that the default papersize should be usletter.  If this is not
117 # true for your site, use the next line to specify usletter, legal,
118 # executive, a3, a4, a5, or b5 as the default papersize.
119 #\default_papersize "a4"
120
121 # Define which program to use to run "chktex".
122 # You should include options that turn different warnings on and off.
123 # Default is "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"
124 # Check the ChkTeX documentation for info on what the flags mean.
125 # Example: use this to ignore warnings about using "\ldots" instead of "..."
126 #\chktex_command "chktex -n11 -n1 -n3 -n6 -n9 -22 -n25 -n30 -n38"
127
128 # Keyboard Mapping. Use this to set the correct mapping file for your
129 # keyboard, that is if you need one. You'll need one if you for instance
130 # want to type German documents on an American keyboard. In that case,
131 # uncomment these three lines:
132 #\kbmap true
133 #\kbmap_primary german
134 #\kbmap_secondary american
135 # The following keyboards are supported: american, czech, francais,
136 # french, german, german-2, magyar, magyar-2, portuges, romanian,
137 # slovak, slovene, transilvanian, turkish and turkish-f. Check
138 # the lib/kbd directory if you want to write support for your language.
139 # If you do, please submit it to lyx-devel@lists.lyx.org.
140
141 # The Pause button is defined to be a three-way switch between primary
142 # keyboard, secondary keyboard, and no keyboard mapping with the
143 # following command. It is useful if you want to write in a language
144 # not directly supported by your keyboard and you have defined a
145 # custom keyboard mapping above.
146 #\bind "Pause" "keymap-toggle"
147
148 # This starts the lyxserver. The pipes get an additional extension
149 # '.in' and '.out'. Only for advanced users.
150 # \serverpipe "/home/chb/.lyxpipe"
151
152 # Default format string for the date-insert command
153 #
154 # This accepts the normal strftime formats; see man strftime for full
155 # details of the format.
156 #
157 #\date_insert_format "%A, %e. %B %Y"
158
159
160 # Maximum number of words in the initialization string for a new label.
161 # If it is set to 0, then the init. string will only contain the prefix
162 # (e.g. "sec:"). If it is set to -1, the init. string will be empty.
163 # This feature is disabled in 1.1.6.
164 #
165 #\label_init_length 0
166
167 #
168 # SCREEN & FONTS SECTION #################################################
169 #
170
171 # DPI (dots per inch) of your monitor is auto-detected by LyX. If that goes
172 # wrong, you can override the setting here:
173 #\screen_dpi 100
174
175 # The zoom percentage for screen fonts.
176 # A setting of 100% will make the fonts roughly the same size as on paper.
177 # However, since a screen is wider than a piece of paper, the default setting
178 # is 150%.
179 #\screen_zoom 100
180
181 # The wheel movement factor (for mice with wheels or five button mice)
182 # Default is 100, about a page down. A value of 10 give me about a line and
183 # a half
184 #\wheel_jump 10
185
186 # LyX normally doesn't update the cursor position if you move the scrollbar.
187 # If you scroll the cursor off the screen and then start typing LyX will
188 # move you back to where the cursor was. If you'd prefer to always have the
189 # cursor on screen, bounded by the topmost and bottommost visible lines
190 # -- much like XEmacs for example -- then uncomment the next line.
191 #\cursor_follows_scrollbar true
192
193 # The screen fonts used to display the text while editing
194 # The defaults are:
195 #\screen_font_roman "-*-times"
196 #\screen_font_sans "-*-helvetica"
197 #\screen_font_typewriter "-*-courier"
198
199 # For some, this font looks better:
200 #\screen_font_roman "-*-utopia"
201
202 # Allow the use of scalable screen fonts? Default is true.
203 # If you choose "false", LyX will use the closest existing size for a match.
204 # Use this if the scalable fonts look bad and you have many fixed size fonts.
205 #\screen_font_scalable false
206
207 # Tip: Run lyx as "lyx -dbg 512" to learn which fonts are used.
208
209 # The norm for the screen fonts. The default is iso8859-1, which is
210 # the same as what LaTeX calls latin1.
211 #\screen_font_encoding iso8859-2
212
213 # The norm for the popup fonts. The default is an empty string, which
214 # causes to use the screen fonts norm (defined by \screen_font_encoding).
215 #\popup_font_encoding iso8859-2
216
217
218 # The normal font for popups. It is set to
219 #    <font_popup>-*-*-*-?-*-*-*-*-<font_encoding>.
220 # The default  is:
221 #\popup_font_name "-*-helvetica-medium-r"
222
223 # The bold font for popups. It is set to
224 #    <font_menu>-*-*-*-?-*-*-*-*-<font_encoding>.
225 # The default  is:
226 #\popup_bold_font "-*-helvetica-bold-r"
227
228 # The font sizes used for calculating the scaling of the screen fonts.
229 # You should only have to change these if the fonts on your screen look bad,
230 # in which case you can fine tune the font selection size by size. LyX selects
231 # font size according to this table, the monitor DPI setting and the current
232 # zoom setting.
233 # The format is:
234 #\screen_font_sizes tiny smallest smaller small normal large larger largest huge huger
235 #
236 # This is the default in LyX (exactly what LaTeX does):
237 #\screen_font_sizes 5.0 7.0 8.0 9.0 10.0 12.0 14.4 17.28 20.74 24.88
238
239 # To change the colors for footnotes:
240 #\set_color footnote green
241 # for mathed you may also want to change the coloring of lines and brackets:
242 #\set_color math yellow
243 #\set_color mathlines yellow
244
245 #
246 # UI SECTION ########################################################
247 #
248
249 # Choose your UI (user interface) definition here. The .ui files are in the
250 # directory "lib/ui" and contains the definition of the menu and the toolbar.
251 #\ui_file "default"
252
253 #
254 # PRINTER SECTION ########################################################
255 #
256
257 # The default printer to print on. If none is specified, LyX will use
258 # the environment variable PRINTER. If that fails, the default is empty.
259 #\printer ""
260
261 # If you have setup (as we recommend you to do) your print program
262 # (e.g. dvips) to take advantage of the particularities of the various
263 # printers you have access to, then you should set the following to
264 # true. Then LyX will pass the name of the destination printer to your
265 # print command.
266 # The default is false, because we have unfortunately to cope with
267 # people who refuse to take the time to configure their system.
268 # Note that you will probably have to change \print_spool_command below.
269 #\print_adapt_output true
270
271 # If you don't use dvips, you may specify your favorite print program
272 # here. See other options at the end of this section to adapt LyX to
273 # your print program.
274 #\print_command dvips
275
276 # Extra options to pass to printing program after everything
277 # else, but before the filename of the DVI file to be printed.
278 #\print_extra_options ""
279
280 # When set, this printer option automatically prints to a file
281 # and then calls a separate print spooling program on that file
282 # with the given name and arguments.
283 # This is set by default to 'lp' or 'lpr', depending on what your
284 # system uses.
285 # Set this to "" if you have set up dvips so that it sends
286 # output to the right printer (remember to also use \print_adapt_output).
287 #\print_spool_command ""
288
289 # If you specify a printer name in the print dialog,
290 # the following argument is prepended along with the printer name
291 # after the spool command. The default is autodetected, along with
292 # \print_spool_command determination.
293 #\print_spool_printerprefix ""
294
295 # Other print related options
296
297 # The following options are only of interest to people who do not
298 # use dvips as print command. You may safely skip to the end of this
299 # section otherwise.
300
301 # These specify the options to pass to the printer program to select the
302 # corresponding features. These default to the options used for the dvips
303 # program. Look at the man page for your favorite print program to learn
304 # which options to use.
305 # Normally you don't need to change this unless you use something other
306 # than dvips.
307 #\print_evenpage_flag -B
308 #\print_oddpage_flag -A
309 #\print_reverse_flag -r
310 #\print_landscape_flag "-t landscape"
311 #\print_pagerange_flag -pp
312 #\print_copies_flag -c
313 #\print_collcopies_flag -C
314 #\print_paper_flag -t
315 #\print_paper_dimension_flag -T
316
317 # Option to pass to the print program to print on a specific printer.
318 #\print_to_printer -P
319
320 # Option to pass to the print program to print to a file.
321 #\print_to_file -o
322
323 # Extension of printer program output file. Usually .ps
324 #\print_file_extension .ps
325
326 # Sample configuration to use with dvilj4 for a HP Laserjet IV (or
327 # better) printer [provided by Reuben Thomas <rrt@sc3d.org>]:
328 #\print_command dvilj4
329 #\print_extra_options -q
330 #\print_evenpage_flag "-D2 -r"
331 #\print_oddpage_flag -D1
332 #\print_reverse_flag -r
333 #\print_landscape_flag -l
334 #\print_pagerange_flag -p
335 #\print_to_file -e
336 #\print_file_extension .lj
337 #\print_copies_flag -c
338 #\print_collcopies_flag -c
339 #\print_adapt_output false
340
341 #
342 # EXPORT SECTION ########################################################
343 #
344
345 # The \converter command defines a converter between two formats.
346 # LyX uses the defined converters for generating output in various formats,
347 # or for importing.
348 # The converter command has 4 arguments: The source format, the target format,
349 # the command, and additional flags.
350 # For example, the following defines a DVI->Postscript converter:
351 #\converter dvi ps "dvips -o $$o $$i" ""
352 # The variable name $$i is replaced with the name of the source file,
353 # and $$o is replaced with the name of the target file.
354 # The flags argument is a list of comma separated flags.
355 # Known flags are
356 # - * : copy the previously defined flags
357 # - latex : The converter is latex or its derivatives (pdflatex).
358 # - originaldir : The converter must be invoked in the directory of the lyx
359 #   file and not in the temporary directory. This is needed for tex->html
360 #   converters in order to be able to read the eps files.
361 # - needaux : The converted uses the .aux file, so we need to call latex
362 #   before running the converter.
363 # - resultdir=dir : The converter put all the files in dir.
364 #   Using "resultdir" is same as "resultdir=$$b".
365 #   Note: When exporting, the whole directory will be moved from the temporary
366 #   directory to the target directory.
367 # - resultfile=file : Name of main file in the result directory, for example
368 #  "index.html" or "$$b.html"
369 #   If "resultfile" is omitted, the name of this file is assumed to be
370 #   "index.format"
371 # - parselog=filtername : filtername is a name of a filter command that takes
372 #   the converter error log (from stderr), and converts it to a fake latex .log
373 #   file.
374 # For example:
375 #\converter latex html "latex2html -split 0 $$i"
376 #           "originaldir,needaux,resultdir"
377 #
378 # For literate programming, use something like
379 #\converter literate latex "noweave -delay -index $$i >$$o"
380 #                          "parselog=listerrors g"
381 #\converter literate program "build-script $$i"
382 #                            "originaldir,parselog=listerrors g"
383
384 # The format command is used to define file formats. It has 4 arguments:
385 # the format name, the extension, and "pretty name" and menu shortcut.
386 # For example
387 #\Format latex tex LaTeX L
388
389 # The \viewer command is used to define viewers for new formats,
390 # or to change the already defined viewers.
391 # For example, to use xdvi as the viewer to dvi files use
392 #\viewer dvi "xdvi"
393 # It can get more involved. Expert users might prefer something like:
394 #\viewer dvi "xdvi -s 2 -expert -geometry 1014x720+0+0 -keep -margins 1.5"
395
396 #
397 # TEX SECTION  ###########################################################
398 #
399
400 # The font encoding used for the LaTeX2e fontenc package.
401 # T1 is highly recommended for non-English languages. LyX uses T1 as a
402 # default if you have the ec fonts installed on your system.
403 #\font_encoding T1
404 # Choose "default" if T1 doesn't work for you for some reason:
405 #\font_encoding default
406
407 #
408 # FILE SECTION  ##########################################################
409 #
410
411 # The default path for your documents.
412 # Default is $HOME
413 #\document_path ~/Documents/
414
415 # The file where the last-files information should be stored.
416 # Default is ~/.lyx/lastfiles
417 #\lastfiles ~/.lyx_lastfiles
418
419 # Maximal number of lastfiles. Up to nine can appear in the file menu.
420 # Default is four.
421 #\num_lastfiles 9
422
423 # Flag telling whether the lastfiles should be checked for existence.
424 # Files that does not exist are left out of the lastfiles entries.
425 # Default is true. If you use slow or removable media, such as networks
426 # or floppy disks, you can speed up the starting time of LyX by disabling
427 # this feature.
428 #\check_lastfiles false
429
430 # The path that LyX will set when offering you to choose a template.
431 # Default is (System LyX dir)/templates
432 #\template_path ~/.lyx/templates
433
434 # The path that LyX will use to put temporary TeX outputs.
435 # Default is /tmp/<unique directory for each instance of LyX>
436 # containing <unique subdirectory for each buffer>
437 # If you set it, it will be /directory/<unique subdirectory for each buffer>
438 # (unless set to /tmp).
439 #\tempdir_path /usr/tmp
440
441 # If you set this flag, LyX will always use a temporary directory
442 # to put TeX outputs into. It is enabled by default.
443 # This directory is deleted when you quit LyX.
444 # You might want to avoid using a temporary directory in several
445 # cases:
446 # - LaTeX cannot find some files it needs;
447 # - you have a large number of include files, and you get messages
448 #   saying that some LaTeX buffers overflow.
449 # Note that, even if tell LyX not to use a temporary directory, there
450 # will be cases where it will be forced to: this happens for example
451 # when typesetting a file in a read-only directory (documentation).
452 #\use_tempdir false
453
454 # This is the maximum line length of an exported ASCII file (LaTeX,
455 # SGML or plain text). Default is 75.
456 #\ascii_linelen 80
457
458 # Set to false if you don't want LyX to create backup files.
459 # Default is true.
460 #\make_backup true
461
462 # The path for storing backup files. If it is the empty string, LyX will
463 # store the backup file in the same directory of the original file.
464 # Default is "".
465 #\backupdir_path "~/Desktop/Trash/"
466
467 #
468 # ASCII EXPORT SECTION ###################################################
469 #
470
471 # The following entry can be used to define an external program to
472 # render tables in the ASCII output. If you specify "none", a simple
473 # internal routine is used. The default is auto-detected.
474 # The following line will use groff and output using latin-1 encoding
475 # (here $$FName is the input file and the output goes to stdout):
476 #\ascii_roff_command "groff -t -Tlatin1 $$FName"
477
478 #
479 # SPELLCHECKER SECTION ####################################################
480 #
481
482 # What command runs the spell checker? Default is "ispell" if it is
483 # installed, "none" otherwise.
484 # If you have aspell (http://metalab.unc.edu/kevina/aspell/)
485 # installed and configured, you might want to uncomment the line below.
486 #\spell_command aspell
487
488 # Consider run-together words, such as "notthe" for "not the", as legal
489 # words? Default is false.
490 #\accept_compound true
491
492 # Specify an alternate language. The default is to use the language of
493 # document. Uncomment both to enable.
494 #\use_alt_language true
495 #\alternate_language dansk
496
497 # Specify additional chars that can be part of a word.
498 #\use_escape_chars true
499 #\escape_chars "æøåÆØÅ"
500
501 # Specify an alternate personal dictionary file. If the file name does not
502 # begin with "/", $HOME is prefixed. The default is to search for a personal
503 # dictionary in both the current directory and $HOME, creating one in $HOME
504 # if none is found. The preferred name is constructed by appending ".ispell_"
505 # to the base name of the hash file. For example, if you use the English
506 # dictionary, your personal dictionary would be named ".ispell_english".
507 #\use_personal_dictionary true
508 #\personal_dictionary .ispell_dansk
509
510 # Specify whether to pass the -T input encoding option to ispell (only if the
511 # language is different than "default".) Enable this if you can't spellcheck
512 # words with international letters in them. There have been reports that this
513 # does not work with all dictionaries, so this is disabled by default.
514 #\use_input_encoding true
515
516
517 #
518 # LANGUAGE SUPPORT SECTION ####################################################
519 #
520
521 # Set to true to enable support of right-to-left languages (e.g. Hebrew,
522 # Arabic). Default is false.
523 #\rtl true
524
525 # The latex command for loading the language package.
526 # Default is \usepackage{babel}.
527 #\language_package "\usepackage{omega}"
528
529 # The latex command for changing the from the language of the document
530 # to another language. $$lang is substituted by the name of the second
531 # language. Default is \selectlanguage{$$lang}.
532 #\language_command_begin "\begin{otherlanguage}{$$lang}"
533
534 # The latex command for changing back the language to the language of
535 # the document. Default is \selectlanguage{$$lang}.
536 #\language_command_end "\end{otherlanguage}"
537
538 # Set to false if a language switching command is needed at the beginning of
539 # the document. Default is true.
540 #\language_auto_begin false
541
542 # Set to false if a language switching command is needed at the end of
543 # the document. Default is true.
544 #\language_auto_end false
545
546 # Set mark_foreign_language to "false" to disable the highlighting of words
547 # with a foreign language to the language of the documet.
548 # Default is "true"
549 #\mark_foreign_language false
550
551 # It is possible to bind keys for changing the language inside a document.
552 # For example, the following command will cause F12 to switch between French
553 # and English in a French document, and in a document of other language it will
554 # switch between that language and French.
555 #\bind "F12" "language french"
556
557 #
558 # HEBREW SUPPORT SECTION ####################################################
559 #
560
561 # To enable the Hebrew support, uncommnet the following lines:
562 #\rtl true
563 #\kbmap true
564 #\kbmap_primary null
565 #\kbmap_secondary hebrew
566 #\converter tex dvi elatex ""
567 #\converter tex pdf pdfelatex ""
568 #\font_encoding default
569
570 # You also need to bind a key for switching between Hebrew and English.
571 # For example,
572 #\bind "F12" "language hebrew"
573
574 # You might want ot disable the foreign language marking:
575 #\mark_foreign_language false
576
577 # Finally, you need to select iso8859-8 font encoding, and select screen fonts
578 # (below are the default fonts. You need to replace them by Hebrew fonts)
579 #\screen_font_encoding iso8859-8
580 #\screen_font_roman "-*-times"
581 #\screen_font_sans "-*-helvetica"
582 #\screen_font_typewriter "-*-courier"
583 #\screen_font_popup "-*-helvetica-medium-r"
584 #\screen_font_menu "-*-helvetica-bold-r"
585
586 #
587 # ARABIC SUPPORT SECTION ####################################################
588 #
589
590 # To enable the Arabic support, uncommnet the following lines:
591 #\rtl true
592 #\kbmap true
593 #\kbmap_primary null
594 #\kbmap_secondary arabic
595
596 # You also need to bind a key for switching between Arabic and English.
597 # For example,
598 #\bind "F12" "language arabic"
599
600 # If you use arabtex, uncomment the following lines
601 #\language_auto_begin false
602 #\language_auto_end false
603 #\language_command_begin "\begin{arabtext}"
604 #\language_command_end "\end{arabtext}"
605 #\language_package "\usepackage{arabtex,iso88596}\setcode{iso8859-6}"
606
607 # Finally, you need to select iso8859-6.8x font encoding,
608 # and select screen fonts.
609 # iso8859-6.8x fonts can be found at
610 #   http://www.langbox.com/AraMosaic/mozilla/fontXFE/
611 #\screen_font_encoding iso8859-6.8x
612 #\screen_font_encoding_menu iso8859-1
613 #\screen_font_roman "-*-naskhi"