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