| Camille Dominique on Fri, 28 Dec 2001 06:23:05 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| can't print latex source code |
Hi again,
I can't get to print a LaTeX source file as such.
Reading the manpage, I assume I'd be using the option 'ascii' for that,
right ? However, what I get is still a dvi or ps output or something.
Isn't it supposed to skip the latex interpretation if I give 'ascii' as an
option ?
here is the aps2file debug output (just in case ;-)
**** start
+ PATH=/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin
+ umask 077
+ trap '' 1 13
+ trap 'rm -rf "$APS_TMPDIR"; exit $return_code;' 0
+ trap 'exit 9' 1 5 7 10 12 15
+ '[' 4 -gt 0 ']'
+ variable=
+ variable=HOST
+ '[' HOST ']'
+ value=(my_hostname)
+ '[' '!' (my_hostname) ']'
+ eval 'HOST="$value"'
++ HOST=(my_hostname)
+ shift
+ '[' 3 -gt 0 ']'
+ variable=
+ variable=USER
+ '[' USER ']'
+ value=(my_username)
+ '[' '!' (my_username) ']'
+ eval 'USER="$value"'
++ USER=(my_username)
+ shift
+ '[' 2 -gt 0 ']'
+ variable=
+ variable=JOB
+ '[' JOB ']'
+ value=main.tex
+ '[' '!' main.tex ']'
+ eval 'JOB="$value"'
++ JOB=main.tex
+ shift
+ '[' 1 -gt 0 ']'
+ variable=
+ variable=Z_OPTS
+ '[' Z_OPTS ']'
+ value=ascii
+ '[' '!' ascii ']'
+ eval 'Z_OPTS="$value"'
++ Z_OPTS=ascii
+ shift
+ '[' 0 -gt 0 ']'
+ unset variable value
+ echo dummy
+ read -r dummy
+ read_r=-r
++++ dirname /usr/local/etc/apsfilter/basedir/bin/apsfilter
+++ dirname /usr/local/etc/apsfilter/basedir/bin
++ dirname /usr/local/etc/apsfilter/basedir
+ CONF_DIR=/usr/local/etc/apsfilter
+ '[' -d /usr/local/etc/apsfilter/basedir ']'
++ eval echo '~(my_username)'
+++ echo /home/(my_username)
+ HOMEDIR=/home/(my_username)
+ SPOOLDIR=/var/spool/lpd/(my_queue)
+ '[' /var/spool/lpd/(my_queue) ']'
++ basename /var/spool/lpd/(my_queue)
+ QUEUE=(my_queue)
+ '[' -f /usr/local/etc/apsfilter/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/apsfilterrc
+ '[' -f /usr/local/etc/apsfilter/(my_queue)/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/(my_queue)/apsfilterrc
++ PRINTER=PS
++ PAPERSIZE=a4
++ METHOD=auto
++ QUALITY=medium
++ COLOR=gray
++ RESOLUTION=600x600
++ HARDWARE_DUPLEX=set
++ MAXCOPIES=20
++ ASCII_HEADER=set
++ PS_NUP=2
++ DUPLEX=set
+ '[' -f /usr/local/etc/apsfilter/(my_queue)/apsfilterrc.(my_username) ']'
+ '[' -n '' -a -f /home/(my_username)/.apsfilter/apsfilterrc.(my_queue) ']'
+ export PATH
+ : /tmp
+ APS_TMPDIR=/tmp/apsfilter28326
+ rm -rf /tmp/apsfilter28326
+ mkdir -m 711 /tmp/apsfilter28326
+ '[' 0 -ne 0 ']'
+ export TEMP=/tmp/apsfilter28326 TMPDIR=/tmp/apsfilter28326
+ TEMP=/tmp/apsfilter28326
+ TMPDIR=/tmp/apsfilter28326
+ : /usr/bin/mawk
+ : medium bi plain gray
+ '[' '' ']'
+ '[' '!' dummy ']'
+ '[' main.tex = stdin -o main.tex = '(stdin)' -o main.tex = '(STDIN)' ']'
+ '[' ascii ']'
+ old_ifs=
+ IFS=:,
+ set -- ascii
+ IFS=
+ unset old_ifs
+ METHOD=ascii
+ unset option
+ : 20
+ '[' '' ']'
+ COPIES=1
+ '[' 1 -gt 20 ']'
+ '[' 1 = 0 ']'
+ '[' '' ']'
+ LANDSCAPE=
+ PORTRAIT=set
+ '[' '' = short ']'
+ BINDING=long
+ '[' '' ']'
+ : 2
+ '[' -e /usr/local/etc/apsfilter/restrictions ']'
+ '[' -e /usr/local/etc/apsfilter/(my_queue)/restrictions ']'
+ WIDTH_POINTS=595
+ HEIGHT_POINTS=842
+ WIDTH_INCHES=8.26
+ HEIGHT_INCHES=11.69
+ DRIVER_SCRIPT=PS
+ '[' '!' -e /usr/local/etc/apsfilter/basedir/driver/PS ']'
+ '[' -z PS ']'
+ '[' -e /usr/local/etc/apsfilter/basedir/driver/PS ']'
+ . /usr/local/etc/apsfilter/basedir/driver/PS
+ '[' PS '!=' PS ']'
+ unpack print_ascii
+ local HEADER FILE_TYPE unpacker unpacker_opts
+ DEPTH=1
+ HEADER=/tmp/apsfilter28326/header1
+ dd bs=1k count=16
++ file /tmp/apsfilter28326/header1
+ FILE_TYPE=/tmp/apsfilter28326/header1: LaTeX 2e document text
++ echo LaTeX 2e document text
++ tr A-Z a-z
+ FILE_TYPE=latex 2e document text
+ unpacker=
+ '[' '' ']'
+ cat /tmp/apsfilter28326/header1 -
+ eval print_ascii
++ print_ascii
++ local features jobname lang
++ jobname=main.tex
+++ echo main.tex
+++ wc -c
++ '[' 9 -gt 40 ']'
++ find_filter a2ps
++ type a2ps
++ '[' '' ']'
++ : a4
++ features=-2
++ unset LANDSCAPE PS_NUP
++ '[' '' ']'
++ features=-2 --borders=no
++ '[' set ']'
++ : -X iso1 -g --prologue=gray
++ eval a2ps -M a4 '--center-title="$jobname"' -b -2 --borders=no -q -o -
+++ a2ps -M a4 --center-title=main.tex -b -2 --borders=no -q -o -
++ print_ps
++ local paper gs_cmd
++ '[' set ']'
++ '[' PS '!=' PS -o -z set ']'
++ '[' PS = PS ']'
++ ps_postprocessing
++ '[' '' ']'
++ eval ps_set_duplex
+++ ps_set_duplex
+++ local tumble duplex
+++ '[' long = short ']'
+++ tumble=false
+++ '[' set ']'
+++ duplex=true
+++ /usr/bin/mawk '{ print } /^%%EndProlog/ { print "countdictstack\n/psset_mark\n{\n%%BeginFeature: *Duplex true\n (<<) cvx exec /Duplex (true) cvx exec (>>) cvx exec\n systemdict /setpagedevice get exec\n%%EndFeature\n%%BeginFeature: *Tumble false\n (<<) cvx exec /Tumble (false) cvx exec (>>) cvx exec\n systemdict /setpagedevice get exec\n%%EndFeature\n} stopped\n{ /psset_mark eq { exit } if } loop\ncountdictstack exch sub dup 0 gt\n{\n { end } repeat\n}{\n pop\n} ifelse" }'
++ print_data
++ local c
++ '[' '' ']'
++ '[' 1 = 1 ']'
++ print_copy
++ '[' dummy ']'
++ cat
++ return
+ rm -f /tmp/apsfilter28326/header1
+ rm -rf /tmp/apsfilter28326
+ exit
**** the end
--
Camille