Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

note from Don Knuth

8 views
Skip to first unread message

Maggie McLoughlin

unread,
Apr 8, 2000, 3:00:00 AM4/8/00
to te...@tug.org
dvitype --help says that -output-level is a verbosity level from 0 to 4;
however, 0 doesn't work. [I simply want to see the fonts used,
as in the dvitype I wrote...]

Also, level 1 fails; it thinks characters of cmr10 are invalid, etc.

-- Don Knuth

Sebastian Rahtz

unread,
Apr 9, 2000, 3:00:00 AM4/9/00
to m...@theory.stanford.edu
looks like a pretty unarguable error in dvitype.ch:

end else if argument_is ('output-level') then begin
out_mode := atou (optarg);
if (out_mode = 0) or (out_mode > 4) then begin
write_ln (stderr, 'Value for --output-level must be >= 1 and <= 4.');
uexit (1);
end;

in clear conflict with:

@ @<Determine the desired |out_mode|@>=
1: write(term_out,'Output level (default=4, ? for help): ');
out_mode:=the_works; input_ln;
if buffer[0]<>" " then
if (buffer[0]>="0")and(buffer[0]<="4") then out_mode:=buffer[0]-"0"
else begin write(term_out,'Type 4 for complete listing,');
write(term_out,' 0 for errors and fonts only,');
write_ln(term_out,' 1 or 2 or 3 for something in between.');
goto 1;
end


hard to see any reason not to change it straightaway in the web2c
stuff

sebastian


Maggie McLoughlin

unread,
Apr 10, 2000, 3:00:00 AM4/10/00
to ol...@infovore.xs4all.nl
Olaf, Thanks for looking into this.

The problem I reported with dvitype level 1 was actually my own fault; I had
a spurious "cmr10.tfm" in the directory from which I was running dvitype.
The same behavior occurs also with levels 2, 3, and 4 when that file
is present.

The file date of cmr10.tfm was June 1999, when I first got my machine.
For some reason that tfm file has never confused dvips, which I've used
a thousand times from the same directory since June. Thus dvips and dvitype
have different conventions for accessing tfm files. Perhaps tex-k should
look into this?

I append a shell listing which explains all, in case the above is unclear.

Cordially, Don Knuth

-------------- cut here for gory details -------------------

/home/uno/tmp[1] tex
This is TeX, Version 3.14159 (Web2C 7.3)
**\relax\null\bye
[1]
Output written on texput.dvi (1 page, 196 bytes).
Transcript written on texput.log.
/home/uno/tmp[2] dvitype -output-level=1 texput.dvi
This is DVItype, Version 3.6 (Web2C 7.3)
Options selected:
Starting page = *
Maximum number of pages = 1000000
Output level = 1 (terse)
Resolution = 300.00000000 pixels per inch
numerator/denominator=25400000/473628672
magnification=1000; 0.00006334 pixels per DVI unit
' TeX output 2000.04.10:1153'

42: beginning of page 1
87: push
88: down3 -917504
92: pop
93: down4 42152922
98: down3 1572864
102: push
[ ]
108: fntdef1 0: cmr10---loaded at size 655360 DVI units
129: fntnum0
[1]
131: pop
132: eop
Postamble starts at byte 133.
maxv=43725786, maxh=30785863, maxstackdepth=2, totalpages=1
Font 0: cmr10
/home/uno/tmp[3] cd sunburn/taocp/run
~/sunburn/taocp/run
/home/uno/sunburn/taocp/run[4] dvitype -output-level=1 texput.dvi
This is DVItype, Version 3.6 (Web2C 7.3)
Options selected:
Starting page = *
Maximum number of pages = 1000000
Output level = 1 (terse)
Resolution = 300.00000000 pixels per inch
dvitype: texput.dvi: No such file or directory
/home/uno/sunburn/taocp/run[5] dvitype -output-level=1 ~/tmp/texput.dvi
This is DVItype, Version 3.6 (Web2C 7.3)
Options selected:
Starting page = *
Maximum number of pages = 1000000
Output level = 1 (terse)
Resolution = 300.00000000 pixels per inch
numerator/denominator=25400000/473628672
magnification=1000; 0.00006334 pixels per DVI unit
' TeX output 2000.04.10:1153'

42: beginning of page 1
87: push
88: down3 -917504
92: pop
93: down4 42152922
98: down3 1572864
102: push
[ ]
108: fntdef1 0: cmr10---beware: check sums do not agree!
(1274110073 vs. 737381063)
---loaded at size 655360 DVI units
129: fntnum0
[1]
130: character 49 invalid in font cmr10!
131: pop
132: eop
Postamble starts at byte 133.
maxv=43725786, maxh=30785863, maxstackdepth=2, totalpages=1
Font 0: cmr10
/home/uno/sunburn/taocp/run[6] cd ..
/home/uno/sunburn/taocp[7] !d
dvitype -output-level=1 ~/tmp/texput.dvi
This is DVItype, Version 3.6 (Web2C 7.3)
Options selected:
Starting page = *
Maximum number of pages = 1000000
Output level = 1 (terse)
Resolution = 300.00000000 pixels per inch
numerator/denominator=25400000/473628672
magnification=1000; 0.00006334 pixels per DVI unit
' TeX output 2000.04.10:1153'

42: beginning of page 1
87: push
88: down3 -917504
92: pop
93: down4 42152922
98: down3 1572864
102: push
[ ]
108: fntdef1 0: cmr10---loaded at size 655360 DVI units
129: fntnum0
[1]
131: pop
132: eop
Postamble starts at byte 133.
maxv=43725786, maxh=30785863, maxstackdepth=2, totalpages=1
Font 0: cmr10
/home/uno/sunburn/taocp[8] cd run
/home/uno/sunburn/taocp/run[9] ls -l cmr10*
-rw-r--r-- 1 uno man 27412 Jul 8 1999 cmr10.1270pk
-rw-r--r-- 1 uno uno 11656 Jun 27 1999 cmr10.2602gf
-rw-r--r-- 1 uno uno 2628 Jun 27 1999 cmr10.300gf
-rw-r--r-- 1 uno man 10892 Jun 27 1999 cmr10.600pk
-rw-r--r-- 1 uno uno 811 Jun 27 1999 cmr10.log
-rw-r--r-- 1 uno uno 192 Jun 27 1999 cmr10.tfm

Tomas G. Rokicki

unread,
Apr 11, 2000, 3:00:00 AM4/11/00
to m...@theory.stanford.edu, ol...@infovore.xs4all.nl
Correct; dvips uses the tfm widths from the PK file since it (generally)
has to read the PK file anyway.

-tom

pres...@my-deja.com

unread,
Apr 23, 2000, 3:00:00 AM4/23/00
to
I'm looking for a resource to explain Don Knuth's
book Fundamental Algorithms. Do you know of any?

In article
<2000040809...@Theory.Stanford.EDU>,
Maggie McLoughlin <m...@theory.stanford.edu>
wrote:

Sent via Deja.com http://www.deja.com/
Before you buy.

0 new messages