[tex-k] Can't reproduce the illustrations on page 201 of The METAFONTbook

胡亚捷 (Hu Yajie) 2500418497 at qq.com
Thu Aug 27 15:42:42 CEST 2020


I tried to reproduce the six illustrations on page 201 of The METAFONTbook
with MiKTeX. I succeeded with the first three, but can't reproduce the rest.
For example, the fifth illustration is supposed to be drawn by the program
---------------------------------------------------------------------
autorounding := smoothing := 0; % page 195, first dangerous paragraph
mode=lowres; mag=3; mode_setup; % page 201
u# := 10/18pt#; define_pixels(u);  % page 200
beginchar(0,15u#,250/36pt#,70/36pt#);
pickup pencircle
  scaled (.4pt + blacker);
lft x1 = round u - eps;
x3 = x1;
x2 = x4 = w - x1;
y1 = y2 = good.y(.5[-d,h] + pt);
y3 = y4 = h - d - y1;
draw z1--z2; draw z3--z4;
lft x6 = round 3u;
x7 = w - x6;
x8 = good.x .5w;
x5 - x6 = x7 - x8;
top y5 = top y7 = h + eps;
bot y6 = bot y8 = -d - eps;
draw z5--z6; draw z7--z8;
labels(range 1 thru 8);
endchar;
% currentpicture:=currentpicture scaled 4; showit;
---------------------------------------------------------------------
But this program draws a "#" whose uppermost five rows are
---------------------------------------------------------------------
                                 **                 **
                                ****               ****
                                ****               ****
                                ****               ****
                               ****               ****
---------------------------------------------------------------------
while the book gives
---------------------------------------------------------------------
                                 **                 **
                                ****               ****
                                ****               ****
                               *****              *****
                               ****               ****
---------------------------------------------------------------------
What am I missing?

By the way:

Page C195, line 8
Should "autorounding := smoothing := 0" be "autorounding = smoothing = 0"?
Generally, the word "with" applies to facts and the word "set" applies to
actions, so the former calls for equal signs and the latter calls for :='s.
There are lots of examples like "with autorounding = 0" in The METAFONTbook.



More information about the tex-k mailing list.