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