On Wed, 14 Dec 2011 07:57:09 +0000
Robin Fairbairns <
rf...@cl.cam.ac.uk> wrote:
> really? there is a problem with dvips snapping to grid (which is why
> -Ppdf used to set resolution 8000dpi), but there would have been little
> point in bothering if there was a pdf limitation also getting in the
> way.
I wanted to better understand the problem because I really don't know
anything about how TeX "joins" such objects. Before we consider what
happens with dvips, I wanted to know if there is any related issue here
with respect to direct PDF output under pdftex. If we are joining objects
whose intersect points (i.e. "critical area") we can perfectly specify
under the coordinate system in question (e.g., 72dpi for PDF), then I
would not expect there to be a problem (and if there is any "onscreen"
issue in that case, I would think that the problem lies with the
screen rendering algorithm).
On the other hand, if we cannot precisely specify these intersect points
in the same point coordinate system used to define the objects (such as,
say, "the end of a line is at the point that is 30 degrees up a circle")
and have to make some assumptions about the final rendering resolution
to subtly alter the objects to ensure overlap at the intersect area,
then I would expect there to be a constant threat of problems like this
depending on the coordinate system being used (and for on-screen display,
the screen resolution and magnification).
Anyway, from a more practical standpoint, I ran some *printing* tests of
my own on what I think may be the same type of problem in a different form:
\documentclass{minimal}
\begin{document}
\begin{displaymath}
\sqrt{\phantom{\rule{72pt}{48pt}}}
\end{displaymath}
\end{document}
Which involves a simple square root symbol rather than an underbrace.
The reason I got interested in this example is because the original
poster of this thread (who did send me some test files to look at, but
I think he is busy with other things now) noticed this square root
issue in addition to his underbrace woes.
The anomaly (which, admittedly, even if present will be somewhat hard to
see) is with respect to the connection of the long horizontal line of
the square root to its left part.
My printing tests were to my Postscript 600dpi HP Laserjet 4si MX.
Pdflatex did very good.
"Standard/default" dvips settings (using -D 600) did have a faint anomaly
when printing from acroread 7.0 and xpdf.
Enabling -D 7200 did not have much effect (and in fact it actually
makes it a tad worse under the older acroreads).
However, enabling Timothy Van Zandt's
alt-rule.pro dvips drawing
algorithm (see the docs of my testflow package for details) did seem
to fix the problem (in print that is), even for -D 7200.
My conclusion so far is that the use of Timothy Van Zandt's
alt-rule.pro is the single most important factor in dvips' alignment
quality when printing.
I suspect that the system of the original poster has another contributing
problem. Namely, PCL conversion which will happen under printer drivers
that output to a PCL printer. If a PS file is converted to a PCL of
lower/different resolution than that of the target printer:
gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ljet4d -r300 -sOutputFile=-
file.ps > file_r300.pcl
the problem shows up, but is fine when using say, -r600 for a 600 dpi
printer.
So, my overall practical recommendation at this point is to use
Van Zandt's
alt-rule.pro under dvips and verify that any PCL print
driver conversions are correct for the printer at hand.
For *onscreen* display, on my system this example shows an artifact even
for pdflatex produced files (Acrobat Reader 7.0 and xpdf 3.02 on linux).
However, because the artifact is "clearly not there" at higher
magnifications, I consider it to be a problem with the onscreen rendering
algorithms rather than with pdflatex's output.
Cheers,
Mike Shell