Linux-AG wrote:
Hallo Rene,
wie hast du denn deinen Drucker konfiguriert?
Würdest du evtl. deine /etc/apsfilterrc* und deine /etc/printcap mal
rundschicken, sofern das hier in der Mailingliste geht?
Linux installiert, dann mit dem YaST2-Modul konfiguriert. Ohne Besondere
Einstellungen, nur den Drucker ausgewählt und gesagt schwarzweiss, a4
usw.. Dasselbe dann noch mit der Farb-Variante.
Ich schicke hier mal die beiden Dateien.
Rene
#
# Systemwide /etc/apsfilterrc file
#
# Enables you to configure some aspects of apsfilter to fit your own needs.
# For special printer have a look into /etc/apsfilterrc.
# for configuration.
#
# NOTE: You should set this feature in /etc/apsfilterrc.
# for not overwriting other printer driver !!
#
#
##############################################################################
# (0) Configure locale apsfilter for forwarding output to a remote
# printer. This needs an remote entry in /etc/printcap.
# Most common name for such a queue is `remote'.
# If the name begins with `/' (slash) apsfilter assumes that
# the name is the name of a program or script which
# will handle the filtered output futher.
##############################################################################
#
#REMOTE_PRINTER="remote"
##############################################################################
# (1) Configuration of dvips's feature, to include Postscript pictures
# into your ".dvi" files during printing. The full description of
# this feature is too long, please read your dvips documents.
# But what you have to know comes here....
##############################################################################
# Description:
# -----------
# If you have or create a Postscript picture for inclusion into a dvi file
# during "printtime" - a special feature of dvips - then dvips has to know
# about paths, where to look for this PS-pictures.
#
# The "picture search path" has to be set in the TEXINPUTS variable.
# Since you only need this "enhanced" serch path for picture inclusion
# within apsfilter and not for your common TeX environment, you should
# define it here !
#
# Note:
# ----
# You have to define FULL path names and do not forget a colon
# at the end !!
#
# good: /usr/lib/tex-pictures:
# bad: $HOME/foobar
# bad: $HOME/foobar:
#
# Example:
# -------
#
#TEXINPUTS=/usr/lib/tex-pictures:/usr/share/dvips/pictures:
##############################################################################
# (2) Use your favourite and possibly fater print dvi program ....
# This feature is only intended for TeXnicians !!!
# People who are experts in TeX and shell hacking.
# People who know, that their dvi2xyz print program is faster
# then the way apsfilter does printing DVI documents:
# dvips -> "Postscript data" -> gs -> printer
#
# NOTE: YOU SHOULD SET THIS FEATURE IN /etc/apsfilterrc.
# FOR NOT OVERWRITING OTHER PRINTER DRIVER !!
#
##############################################################################
# Description:
# -----------
# If you have a nicer program to print dvi files, then you can
# define it here in an environment variable. If apsfilter detects
# that a dvi file has to be printed _and_ if this variable is set,
# then apsfilter uses your favourite program, for printing.
#
# Note:
# ----
# Here you are ON YOUR OWN !!!! Your nice program has to provide the
# following functionality:
#
# - Must have compiled in the correct font search path for TeX fonts,
# since user environment isn't active when apsfilter is running.
# - Has to be able to read the dvi file from a pipe (stdin)
# - Must be able to send the printer output to standard output (stdout).
# - YOU have to provide a complete working dvi2xxx commandline, that
# matches the above mentioned prerequisites. Put this complete command
# into the below mentioned environment variable.
#
# No working example here, but in general (don't forget the '''s)
#
# PRINT_DVI='/usr/local/bin/my_super_filter -X -Y -Z -'
#
# please again note:
# - it has to read dvi from stdin !
# - it has to write print data to stdout !
# - it has to be called with complete path !
# - TeX Font searchpaths have to be compiled
# in. Another possibility woud be, to try
# to set the needed environment variably
# in this file ... Try it !
#
##############################################################################
# (3) Possibility to send special printer ``escape sequences''
# to initialize the Printer before printing ``raw'' unfiltered text.
#
# NOTE: YOU SHOULD SET THIS FEATURE IN /etc/apsfilterrc.
# FOR NOT OVERWRITING OTHER PRINTER INITIAL SETUP !!
#
##############################################################################
# Description:
# -----------
# Some people reported, that printing long text's or C-Program listsing
# with apsfilter works great, but dog _slow_, since their printer isn't
# fast in printing grafik output (remember, if you print a ascii text, this
# text is first translated by a2ps into postscript, and after that it will
# be piped through gs, which translates Postscript to your printers
# grafik language .... Only printers like Deskjet 500 and such printers
# are able, to dothat Graphic output reasonably fast.
#
# So people wanted a feature, to skip file type auto recogniton, a2ps and
# gs to print listings and such with full speed.
#
# But some printer, especially HP printer, need some setup commandos,
# to do a carriage return, before the next line is printed, otherwise
# your print output looks like this (runs away to the right side 'til
# you don't see anything ...)
#
# First line: Some Text
# Next line: sdjhsdjhsd
# Next line: sdjhsdjhsd
#
# See your printers manual, what makes sense to be defined here !
# NOTE: YOU SHOULD REALLY READ THE PRINTER MANUAL!!
#
# Here an example, what is nice to use with a HP Deskjet 500:
#
# print normal text with
# - cr/nl conversion
# - letter quality
# - 66 lines/page
# - left margin
# - 12 cpi pitch
#
# LINE TERMINATION \E & k # G
# 0 = CR=CR ; LF=LF ; FF=FF (default)
# 1 = CR=CR+LF; LF=LF ; FF=FF
# ** 2 = CR=CR ; LF=CR+LF; FF=CR+FF
# 3 = CR=CR+LF; LF=CR+LF; FF=CR+FF
#
# QUALITY \E ( s # Q
# 1 = draft = 240cps
# ** 2 = letter = 120cps (default)
#
# TEXT SCALE MODE \E & k # W
# 5 = off (default)
# 6 = on
# ignored in landscape mode
#
# PERFORATION SKIP MODE \E & l # L
# 0 = off = 0.0 in Top Margin
# 1 = on = 1/2 in Top Margin (default)
#
# LEFT MARGIN \E & a # L
# # Value = column number
# default = 0 = 1/8 in left margin
# used = 7 for 1" left margin
#
# PITCH \E ( s # H
# # = cpi
# default = 10 characters per inch
# ** 12 cpi
#
# Example:
# -------
# The desired printer setup escape sequence - suitable for printf(1) !!! -
# looks like this:
#
#PRINT_RAW_SETUP_PRINTER='\033&k2G\033(s2Q\033&k5W\033&l0L\033&a7L\033(s12H'
#PRINT_RAW_RESET_PRINTER='\033E'
##############################################################################
# (4) Do you need a formfeed at the end of a print job or not ?!
# Here's a way how to suppress it !
#
# NOTE: YOU SHOULD SET THIS FEATURE IN /etc/apsfilterrc.
# FOR NOT OVERWRITING OTHER PRINTER INITIAL SETUP !!
#
##############################################################################
# Description:
# -----------
# This is only necessary when printing with lpr -Praw, since in every other
# case everything is managed by gs or a2ps on PS and non PS-printers.
#
# To suppress formfeeds simply set the variable ....
#
#PRINT_RAW_SUPPRESS_FORMFEED="yes"
##############################################################################
# (5) Some of ghostscripts printer drivers have special features.
# Heres a way of enabling this special features if you need or like.
#
# NOTE: YOU SHOULD SET THIS FEATURE IN /etc/apsfilterrc.
# FOR NOT OVERWRITING OTHER PRINTER COLOR SETUP !!
#
##############################################################################
# Description:
# -----------
# For example most of ghostscripts (gs(1)) Color Deskjet drivers
# supports additionally functionality when printing color text or pictures.
# You should read the documentation that comes with ghostscript
# /usr/doc/packages/ghostscript/ very closely.
# With GS_FEATURES it is possible to set Options and with PRELOADS
# it is possible to load a PostScript file (e.g. stcolor.ps for some
# Epson stcolor, gamma.ps (see /var/lib/apsfilter/preloads/gamma.ps)
# for a gamma value correction).
#
#if [ "$COLOR" = "mono" ] ; then
# GS_FEATURES="-dBitsPerPixel=1"
# PRELOADS=""
#else
# GS_FEATURES="-dBitsPerPixel=24"
# PRELOADS=""
#fi
#if [ "$QUEUE" = "" ] ; then
# GS_FEATURES="-sDithering=gsmono"
#fi
#if [ "$QUEUE" = "" ] ; then
# GS_FEATURES="-dUnidirectional"
#fi
#
# For color printer drivers, that offer more features like
# the stcolor driver for Epson Stylus PRO:
#
#GS_FEATURES="-dBitsPerPixel=32 -dMicroweave -sDithering=fscmyk"
#GS_FEATURES="-dBitsPerPixel=32 -dMicroweave"
#PRELOADS="stcolor.ps"
##############################################################################
# (6) Using recode or enscript for printing in ascii mode.
# This will overwrite the a2ps filter.
# Its simple a reencoding from ENCODING(13) to ibmpc for printing.
# This is done by running the filter:
# recode -q $ENCODING:$USE_RECODE_OUTCODE
##############################################################################
#
#USE_RECODE_NOT_A2PS="yes"
#USE_RECODE_OUTCODE="ibmpc"
#USE_ENSCRIPT="yes"
##############################################################################
# (7) Here you can determince, how a2ps (ascii to Postscript
# converter) formats your documents...
# here you can select between 4 predefined choices
#
# NOTE: Useless if USE_RECODE_NOT_A2PS is set to "yes"
#
##############################################################################
# Description
# -----------
# FEATURE=1 tell a2ps to print 1 page on one sheet with header
# FEATURE=2 tell a2ps to print 2 pages on one sheet with header
# FEATURE=1n tell a2ps to print 1 page on one sheet without header
# FEATURE=2n tell a2ps to print 2 pages on one sheet without header
# FEATURE=1l tell a2ps to print 1 pages in landscape with header
# FEATURE=1ln tell a2ps to print 1 pages in landscape without header
#
# Default is
FEATURE=1n
##############################################################################
# (8) Here you can determince, how a2ps or enscript (ascii to Postscript
# converter) formats your documents...
# In addition to (7) here you can overwrite the whole a2ps
# default options
#
# Out of the man page of a2ps (version 4.3 / version 4.10):
# Hint: Check your version with `a2ps -V'
#
# -p / --portrait print in portrait mode
# -l / --landscape print in landscape mode
# -nH / --no-header don't print page headers
# -nL / --no-header don't print user login ID
# -1 / -1 print one page per physical page
# -2 / -2 print two pages per physical page
# -Fnum / --font-size=num Changes font size to value num
# (e.g. -F9.0 for 9 dot font size)
# -ns / --borders=[yes|no] surrounding borders
#
# NOTE: Useless if USE_RECODE_NOT_A2PS or USE_ENSCRIPT is set to "yes"
# For enscript options read the manual of enscript.
#
##############################################################################
#
#A2PS_OPTS="-1 --portrait --no-header --font-size=12.0 --borders=no"
#ENSCRIPT_OPTS=""
##############################################################################
#
# (9) There are many way for setting up the dvips driver.
# First of all you should configure your default MetaFont mode
# of your TeX installation ... run `texconfig' for the teTeX package.
# For integration of other (non default) printers you can add
# a printer with its own MetaFont mode by using `texconfig'.
#
# NOTE: YOU SHOULD SET THIS FEATURE IN /etc/apsfilterrc.
# FOR NOT OVERWRITING OTHER PRINTER FONT SETUP !!
#
##############################################################################
#
# Example:
# --------
# You want add a printer Linotype Linotronic 300 with 2540 dpi.
# Run `texconfig', add your printer under DVIPS, choose a
# name (say linotronic) for the ADD menu, and set the MetaFont mode
# linotzzh under MODE.
# Now we can tell dvips by the option -P what printer to use.
#
#DVIPS_MODE="-Plinotronic"
##############################################################################
# (10) Let's assume you want to use ghostscripts epson driver,
# but you want test another resolution, than you have configured
# per default... Here you can set other resolutions supported by
# your printer.
#
# NOTE: YOU SHOULD SET THIS FEATURE IN /etc/apsfilterrc.
# FOR NOT OVERWRITING OTHER PRINTER RESOLUTION SETUP !!
#
# 2nd NOTE:
# The resolution is given at configuration/setup time.
# This variable OVERRIDES this value if set.
#
##############################################################################
#
#GS_RESOL=360x360
#GS_RESOL=180x360
#GS_RESOL=300x300
##############################################################################
# (11) Do you want do accounting? Here is a first solution which
# works currently only if the main filter is ghostscript (gs).
# Ghostscript uses an internal page counter which can be used
# for accounting. Note that this can be passed by by the raw
# device ... and if you're using a real postscript printer.
# Grepping for '%% Page' or line feed isn't enough ... you have
# to interpret the PostScript or the binrary information.
#
# NOTE: Accounting works only with ascii or lp on none PostScript
# printer with gs!
#
# 2nd NOTE:
# `la' must be disabled in printcap (done with :la@:)
# to avoid double accounting (apsfilter and lpd).
#
#DO_ACCOUNTING=yes
##############################################################################
# (12) Special Options for html2ps utility ...
# See html2ps manpage for a complete list of options !
##############################################################################
# two column output
#HTML2PS_OPTS="-2"
#document encoding, i.e.: ISO-8859-1 (default), EUC-JP, SHIFT-JIS, ISO-2022-JP
#HTML2PS_OPTS="-e ISO-8859-1"
# draw a frame around the text on each page
#HTML2PS_OPTS="--frame"
# the next ones are self explanatory
#HTML2PS_OPTS="--grayscale"
#HTML2PS_OPTS="--hyphenate"
#HTML2PS_OPTS="--landscape"
# turn page numbering on
#HTML2PS_OPTS="--number"
# text mode, ignore images
#HTML2PS_OPTS="--text"
# underline hypertext link
#HTML2PS_OPTS="--underline"
# single or double sided printing
# num = 0 = single sided
# num = 1 = double sided
# num = 2 = double sided, opposite page reversed
#HTML2PS_OPTS="--duplex num"
# of course you can combine these functions
#HTML2PS_OPTS="-2 -e ISO-8859-1 --frame"
##############################################################################
# (13) Encoding of the input files.
# Used by a2ps and recode in the filter/ascii
# and by ogonkify in the filter/postscript
#
# By default, the encoding is set to fit to the LANGUAGE in your
# /etc/rc.config. If your language is unknown, the ENCODING it is set
# to ISO-8859-1.
#
# NOTE: This setting does not affect the html2ps options because
# html2ps does not support other ISOs than ISO-8859-1
##############################################################################
#ENCODING=ISO-8859-1
##############################################################################
# (14) The two parameters RESET_BEFORE and RESET_AFTER are printer control
# sequences issued before each job and after each job, respectively.
# The RESET_BEFORE sequence is issued before anything else, including in
# particular PRINT_RAW_SETUP_PRINTER.
# The values given here are for the HP LaserJets.
# This was suggested by Paul Abrahams
##############################################################################
#
#RESET_BEFORE="\e%-12345X"
#RESET_AFTER="\e%-12345X\eE"
### BEGIN apsfilter: ### /etc/gs.upp/y2prn_lp.upp lp ###
# Warning: Configured for apsfilter, do not edit the labels!
# apsfilter setup Son Mai 27 20:26:41 CEST 2001
#
lp-ascii|lp1|y2prn_lp.upp--ascii-lp|y2prn_lp.upp ascii:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_lp.upp--ascii-lp:\
:lf=/var/spool/lpd/y2prn_lp.upp--ascii-lp/log:\
:af=/var/spool/lpd/y2prn_lp.upp--ascii-lp/acct:\
:if=/var/lib/apsfilter/bin/y2prn_lp.upp--ascii-lp:\
:la@:mx#0:\
:tr=:cl:sh:
#
lp|lp2|y2prn_lp.upp--auto-lp|y2prn_lp.upp auto:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_lp.upp--auto-lp:\
:lf=/var/spool/lpd/y2prn_lp.upp--auto-lp/log:\
:af=/var/spool/lpd/y2prn_lp.upp--auto-lp/acct:\
:if=/var/lib/apsfilter/bin/y2prn_lp.upp--auto-lp:\
:la@:mx#0:\
:tr=:cl:sh:
#
lp-raw|lp3|y2prn_lp.upp--raw-lp|y2prn_lp.upp raw:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_lp.upp--raw-lp:\
:lf=/var/spool/lpd/y2prn_lp.upp--raw-lp/log:\
:af=/var/spool/lpd/y2prn_lp.upp--raw-lp/acct:\
:if=/var/lib/apsfilter/bin/y2prn_lp.upp--raw-lp:\
:la@:mx#0:\
:tr=:cl:sh:
#
### END apsfilter: ### /etc/gs.upp/y2prn_lp.upp lp ###
### BEGIN apsfilter: ### /etc/gs.upp/y2prn_color.upp color ###
# Warning: Configured for apsfilter, do not edit the labels!
# apsfilter setup Sun May 27 21:43:20 CEST 2001
#
color-ascii|lp4|y2prn_color.upp--ascii-color|y2prn_color.upp ascii:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_color.upp--ascii-color:\
:lf=/var/spool/lpd/y2prn_color.upp--ascii-color/log:\
:af=/var/spool/lpd/y2prn_color.upp--ascii-color/acct:\
:if=/var/lib/apsfilter/bin/y2prn_color.upp--ascii-color:\
:la@:mx#0:\
:tr=:cl:sh:
#
color|lp5|y2prn_color.upp--auto-color|y2prn_color.upp auto:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_color.upp--auto-color:\
:lf=/var/spool/lpd/y2prn_color.upp--auto-color/log:\
:af=/var/spool/lpd/y2prn_color.upp--auto-color/acct:\
:if=/var/lib/apsfilter/bin/y2prn_color.upp--auto-color:\
:la@:mx#0:\
:tr=:cl:sh:
#
color-raw|lp6|y2prn_color.upp--raw-color|y2prn_color.upp raw:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/y2prn_color.upp--raw-color:\
:lf=/var/spool/lpd/y2prn_color.upp--raw-color/log:\
:af=/var/spool/lpd/y2prn_color.upp--raw-color/acct:\
:if=/var/lib/apsfilter/bin/y2prn_color.upp--raw-color:\
:la@:mx#0:\
:tr=:cl:sh:
#
### END apsfilter: ### /etc/gs.upp/y2prn_color.upp color ###