How can I reproduce the figure below?

The figure is from an old Knuth paper, which you can get at http://www.math.lsa.umich.edu/~millerpd/docs/501_Winter08/Knuth79.pdf (page 364)
|
How can I reproduce the figure below?
The figure is from an old Knuth paper, which you can get at http://www.math.lsa.umich.edu/~millerpd/docs/501_Winter08/Knuth79.pdf (page 364) |
|||
|
|
|
http://www.tug.org/texshowcase/, search for "diminuendo.tex" |
|||
|
|
|
with LaTeX instead of plain TeX:
|
|||
|
|
|
This code iterates over each token in a string and scales them according to a user-defined function:
Here is the result such that token i is scaled by a factor of 6/(i+2):
|
|||
|
|
|
An eTeX based solution
|
|||||
|