comparison etc/NEWS @ 37289:a1af2574e64b

Ps-print news.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 10 Apr 2001 12:01:01 +0000
parents 343f5ea2a31c
children cf22cb863f75
comparison
equal deleted inserted replaced
37288:f7aaa73f592e 37289:a1af2574e64b
7297 calendar begins May 23, 1844, with each of the months named after a 7297 calendar begins May 23, 1844, with each of the months named after a
7298 supposed attribute of God. 7298 supposed attribute of God.
7299 7299
7300 ** ps-print changes 7300 ** ps-print changes
7301 7301
7302 There are some new user variables for customizing the page layout. 7302 There are some new user variables and subgroups for customizing the page
7303 7303 layout.
7304 *** Paper size, paper orientation, columns 7304
7305 7305 *** Headers & Footers (subgroup)
7306 The variable `ps-paper-type' determines the size of paper ps-print 7306
7307 formats for; it should contain one of the symbols: 7307 Some printer systems print a header page and force the first page to
7308 `a4' `a3' `letter' `legal' `letter-small' `tabloid' 7308 be printed on the back of the header page when using duplex. If your
7309 `ledger' `statement' `executive' `a4small' `b4' `b5' 7309 printer system has this behavior, set variable
7310 It defaults to `letter'. 7310 `ps-banner-page-when-duplexing' to t.
7311 If you need other sizes, see the variable `ps-page-dimensions-database'. 7311
7312 7312 If variable `ps-banner-page-when-duplexing' is non-nil, it prints a
7313 The variable `ps-landscape-mode' determines the orientation 7313 blank page as the very first printed page. So, it behaves as if the
7314 of the printing on the page. nil, the default, means "portrait" mode, 7314 very first character of buffer (or region) where a form feed ^L (\014).
7315 non-nil means "landscape" mode. 7315
7316 7316 The variable `ps-spool-config' specifies who is responsible for
7317 The variable `ps-number-of-columns' must be a positive integer. 7317 setting duplex mode and page size. Valid values are:
7318 It determines the number of columns both in landscape and portrait mode. 7318
7319 It defaults to 1. 7319 lpr-switches duplex and page size are configured by `ps-lpr-switches'.
7320 7320 Don't forget to set `ps-lpr-switches' to select duplex
7321 *** Horizontal layout 7321 printing for your printer.
7322 7322
7323 The horizontal layout is determined by the variables 7323 setpagedevice duplex and page size are configured by ps-print using the
7324 `ps-left-margin', `ps-inter-column', and `ps-right-margin'. 7324 setpagedevice PostScript operator.
7325 All are measured in points. 7325
7326 7326 nil duplex and page size are configured by ps-print *not* using
7327 *** Vertical layout 7327 the setpagedevice PostScript operator.
7328 7328
7329 The vertical layout is determined by the variables 7329 The variable `ps-spool-tumble' specifies how the page images on
7330 `ps-bottom-margin', `ps-top-margin', and `ps-header-offset'. 7330 opposite sides of a sheet are oriented with respect to each other. If
7331 All are measured in points. 7331 `ps-spool-tumble' is nil, ps-print produces output suitable for
7332 7332 bindings on the left or right. If `ps-spool-tumble' is non-nil,
7333 *** Headers 7333 ps-print produces output suitable for bindings at the top or bottom.
7334 7334 This variable takes effect only if `ps-spool-duplex' is non-nil.
7335 If the variable `ps-print-header' is nil, no header is printed. Then 7335 The default value is nil.
7336 `ps-header-offset' is not relevant and `ps-top-margin' represents the 7336
7337 margin above the text. 7337 The variable `ps-header-frame-alist' specifies a header frame
7338 7338 properties alist. Valid frame properties are:
7339 If the variable `ps-print-header-frame' is non-nil, a gaudy 7339
7340 framing box is printed around the header. 7340 fore-color Specify the foreground frame color.
7341 7341 Value should be a float number between 0.0 (black
7342 The contents of the header are determined by `ps-header-lines', 7342 color) and 1.0 (white color), or a string which is a
7343 `ps-show-n-of-n', `ps-left-header' and `ps-right-header'. 7343 color name, or a list of 3 float numbers which
7344 7344 correspond to the Red Green Blue color scale, each
7345 The height of the header is determined by `ps-header-line-pad', 7345 float number between 0.0 (dark color) and 1.0 (bright
7346 `ps-header-font-family', `ps-header-title-font-size' and 7346 color). The default is 0 ("black").
7347 `ps-header-font-size'. 7347
7348 7348 back-color Specify the background frame color (similar to fore-color).
7349 *** Font managing 7349 The default is 0.9 ("gray90").
7350 7350
7351 The variable `ps-font-family' determines which font family is to be 7351 shadow-color Specify the shadow color (similar to fore-color).
7352 used for ordinary text. Its value must be a key symbol in the alist 7352 The default is 0 ("black").
7353 `ps-font-info-database'. You can add other font families by adding 7353
7354 elements to this alist. 7354 border-color Specify the border color (similar to fore-color).
7355 7355 The default is 0 ("black").
7356 The variable `ps-font-size' determines the size of the font 7356
7357 for ordinary text. It defaults to 8.5 points. 7357 border-width Specify the border width.
7358 The default is 0.4.
7359
7360 Any other property is ignored.
7361
7362 Don't change this alist directly; instead use Custom, or the
7363 `ps-value', `ps-get', `ps-put' and `ps-del' functions (see there for
7364 documentation).
7365
7366 Ps-print can also print footers. The footer variables are:
7367 `ps-print-footer', `ps-footer-offset', `ps-print-footer-frame',
7368 `ps-footer-font-family', `ps-footer-font-size', `ps-footer-line-pad',
7369 `ps-footer-lines', `ps-left-footer', `ps-right-footer' and
7370 `ps-footer-frame-alist'. These variables are similar to those
7371 controlling headers.
7372
7373 *** Color management (subgroup)
7374
7375 If `ps-print-color-p' is non-nil, the buffer's text will be printed in
7376 color.
7377
7378 *** Face Management (subgroup)
7379
7380 If you need to print without worrying about face background colors,
7381 set the variable `ps-use-face-background' which specifies if face
7382 background should be used. Valid values are:
7383
7384 t always use face background color.
7385 nil never use face background color.
7386 (face...) list of faces whose background color will be used.
7387
7388 *** N-up printing (subgroup)
7389
7390 The variable `ps-n-up-printing' specifies the number of pages per
7391 sheet of paper.
7392
7393 The variable `ps-n-up-margin' specifies the margin in points (pt)
7394 between the sheet border and the n-up printing.
7395
7396 If variable `ps-n-up-border-p' is non-nil, a border is drawn around
7397 each page.
7398
7399 The variable `ps-n-up-filling' specifies how the page matrix is filled
7400 on each sheet of paper. Following are the valid values for
7401 `ps-n-up-filling' with a filling example using a 3x4 page matrix:
7402
7403 `left-top' 1 2 3 4 `left-bottom' 9 10 11 12
7404 5 6 7 8 5 6 7 8
7405 9 10 11 12 1 2 3 4
7406
7407 `right-top' 4 3 2 1 `right-bottom' 12 11 10 9
7408 8 7 6 5 8 7 6 5
7409 12 11 10 9 4 3 2 1
7410
7411 `top-left' 1 4 7 10 `bottom-left' 3 6 9 12
7412 2 5 8 11 2 5 8 11
7413 3 6 9 12 1 4 7 10
7414
7415 `top-right' 10 7 4 1 `bottom-right' 12 9 6 3
7416 11 8 5 2 11 8 5 2
7417 12 9 6 3 10 7 4 1
7418
7419 Any other value is treated as `left-top'.
7420
7421 *** Zebra stripes (subgroup)
7422
7423 The variable `ps-zebra-color' controls the zebra stripes grayscale or
7424 RGB color.
7425
7426 The variable `ps-zebra-stripe-follow' specifies how zebra stripes
7427 continue on next page. Visually, valid values are (the character `+'
7428 to the right of each column indicates that a line is printed):
7429
7430 `nil' `follow' `full' `full-follow'
7431 Current Page -------- ----------- --------- ----------------
7432 1 XXXXX + 1 XXXXXXXX + 1 XXXXXX + 1 XXXXXXXXXXXXX +
7433 2 XXXXX + 2 XXXXXXXX + 2 XXXXXX + 2 XXXXXXXXXXXXX +
7434 3 XXXXX + 3 XXXXXXXX + 3 XXXXXX + 3 XXXXXXXXXXXXX +
7435 4 + 4 + 4 + 4 +
7436 5 + 5 + 5 + 5 +
7437 6 + 6 + 6 + 6 +
7438 7 XXXXX + 7 XXXXXXXX + 7 XXXXXX + 7 XXXXXXXXXXXXX +
7439 8 XXXXX + 8 XXXXXXXX + 8 XXXXXX + 8 XXXXXXXXXXXXX +
7440 9 XXXXX + 9 XXXXXXXX + 9 XXXXXX + 9 XXXXXXXXXXXXX +
7441 10 + 10 +
7442 11 + 11 +
7443 -------- ----------- --------- ----------------
7444 Next Page -------- ----------- --------- ----------------
7445 12 XXXXX + 12 + 10 XXXXXX + 10 +
7446 13 XXXXX + 13 XXXXXXXX + 11 XXXXXX + 11 +
7447 14 XXXXX + 14 XXXXXXXX + 12 XXXXXX + 12 +
7448 15 + 15 XXXXXXXX + 13 + 13 XXXXXXXXXXXXX +
7449 16 + 16 + 14 + 14 XXXXXXXXXXXXX +
7450 17 + 17 + 15 + 15 XXXXXXXXXXXXX +
7451 18 XXXXX + 18 + 16 XXXXXX + 16 +
7452 19 XXXXX + 19 XXXXXXXX + 17 XXXXXX + 17 +
7453 20 XXXXX + 20 XXXXXXXX + 18 XXXXXX + 18 +
7454 21 + 21 XXXXXXXX +
7455 22 + 22 +
7456 -------- ----------- --------- ----------------
7457
7458 Any other value is treated as `nil'.
7459
7460
7461 *** Printer management (subgroup)
7462
7463 The variable `ps-printer-name-option' determines the option used by
7464 some utilities to indicate the printer name; it's used only when
7465 `ps-printer-name' is a non-empty string. If you're using the lpr
7466 utility to print, for example, `ps-printer-name-option' should be set
7467 to "-P".
7468
7469 The variable `ps-manual-feed' indicates if the printer requires manual
7470 paper feeding. If it's nil, automatic feeding takes place. If it's
7471 non-nil, manual feeding takes place.
7472
7473 The variable `ps-end-with-control-d' specifies whether C-d (\x04)
7474 should be inserted at end of the generated PostScript. Non-nil means
7475 do so.
7476
7477 *** Page settings (subgroup)
7478
7479 If variable `ps-warn-paper-type' is nil, it's *not* treated as an
7480 error if the PostScript printer doesn't have a paper with the size
7481 indicated by `ps-paper-type'; the default paper size will be used
7482 instead. If `ps-warn-paper-type' is non-nil, an error is signaled if
7483 the PostScript printer doesn't support a paper with the size indicated
7484 by `ps-paper-type'. This is used when `ps-spool-config' is set to
7485 `setpagedevice'.
7486
7487 The variable `ps-print-upside-down' determines the orientation for
7488 printing pages: nil means `normal' printing, non-nil means
7489 `upside-down' printing (that is, the page is rotated by 180 degrees).
7490
7491 The variable `ps-selected-pages' specifies which pages to print. If
7492 it's nil, all pages are printed. If it's a list, list elements may be
7493 integers specifying a single page to print, or cons cells (FROM . TO)
7494 specifying to print from page FROM to TO. Invalid list elements, that
7495 is integers smaller than one, or elements whose FROM is greater than
7496 its TO, are ignored.
7497
7498 The variable `ps-even-or-odd-pages' specifies how to print even/odd
7499 pages. Valid values are:
7500
7501 nil print all pages.
7502
7503 `even-page' print only even pages.
7504
7505 `odd-page' print only odd pages.
7506
7507 `even-sheet' print only even sheets.
7508 That is, if `ps-n-up-printing' is 1, it behaves like
7509 `even-page', but for values greater than 1, it'll
7510 print only the even sheet of paper.
7511
7512 `odd-sheet' print only odd sheets.
7513 That is, if `ps-n-up-printing' is 1, it behaves like
7514 `odd-page'; but for values greater than 1, it'll print
7515 only the odd sheet of paper.
7516
7517 Any other value is treated as nil.
7518
7519 If you set `ps-selected-pages' (see there for documentation), pages
7520 are filtered by `ps-selected-pages', and then by
7521 `ps-even-or-odd-pages'. For example, if we have:
7522
7523 (setq ps-selected-pages '(1 4 (6 . 10) (12 . 16) 20))
7524
7525 and we combine this with `ps-even-or-odd-pages' and
7526 `ps-n-up-printing', we get:
7527
7528 `ps-n-up-printing' = 1:
7529 `ps-even-or-odd-pages' PAGES PRINTED
7530 nil 1, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 20
7531 even-page 4, 6, 8, 10, 12, 14, 16, 20
7532 odd-page 1, 7, 9, 13, 15
7533 even-sheet 4, 6, 8, 10, 12, 14, 16, 20
7534 odd-sheet 1, 7, 9, 13, 15
7535
7536 `ps-n-up-printing' = 2:
7537 `ps-even-or-odd-pages' PAGES PRINTED
7538 nil 1/4, 6/7, 8/9, 10/12, 13/14, 15/16, 20
7539 even-page 4/6, 8/10, 12/14, 16/20
7540 odd-page 1/7, 9/13, 15
7541 even-sheet 6/7, 10/12, 15/16
7542 odd-sheet 1/4, 8/9, 13/14, 20
7543
7544 *** Miscellany (subgroup)
7545
7546 The variable `ps-error-handler-message' specifies where error handler
7547 messages should be sent.
7548
7549 It is also possible to add a user-defined PostScript prologue code in
7550 front of all generated prologue code by setting the variable
7551 `ps-user-defined-prologue'.
7552
7553 The variable `ps-line-number-font' specifies the font for line numbers.
7554
7555 The variable `ps-line-number-font-size' specifies the font size in
7556 points for line numbers.
7557
7558 The variable `ps-line-number-color' specifies the color for line
7559 numbers. See `ps-zebra-color' for documentation.
7560
7561 The variable `ps-line-number-step' specifies the interval in which
7562 line numbers are printed. For example, if `ps-line-number-step' is set
7563 to 2, the printing will look like:
7564
7565 1 one line
7566 one line
7567 3 one line
7568 one line
7569 5 one line
7570 one line
7571 ...
7572
7573 Valid values are:
7574
7575 integer an integer specifying the interval in which line numbers are
7576 printed. If it's smaller than or equal to zero, 1
7577 is used.
7578
7579 `zebra' specifies that only the line number of the first line in a
7580 zebra stripe is to be printed.
7581
7582 Any other value is treated as `zebra'.
7583
7584 The variable `ps-line-number-start' specifies the starting point in
7585 the interval given by `ps-line-number-step'. For example, if
7586 `ps-line-number-step' is set to 3, and `ps-line-number-start' is set to
7587 3, the output will look like:
7588
7589 one line
7590 one line
7591 3 one line
7592 one line
7593 one line
7594 6 one line
7595 one line
7596 one line
7597 9 one line
7598 one line
7599 ...
7600
7601 The variable `ps-postscript-code-directory' specifies the directory
7602 where the PostScript prologue file used by ps-print is found.
7603
7604 The variable `ps-line-spacing' determines the line spacing in points,
7605 for ordinary text, when generating PostScript (similar to
7606 `ps-font-size').
7607
7608 The variable `ps-paragraph-spacing' determines the paragraph spacing,
7609 in points, for ordinary text, when generating PostScript (similar to
7610 `ps-font-size').
7611
7612 The variable `ps-paragraph-regexp' specifies the paragraph delimiter.
7613
7614 The variable `ps-begin-cut-regexp' and `ps-end-cut-regexp' specify the
7615 start and end of a region to cut out when printing.
7358 7616
7359 ** hideshow changes. 7617 ** hideshow changes.
7360 7618
7361 *** now supports hiding of blocks of single line comments (like // for 7619 *** now supports hiding of blocks of single line comments (like // for
7362 C++, ; for lisp). 7620 C++, ; for lisp).