Package: gv
Version: 1:3.7.4-2+b1
Let's create mwe.tex containing
\documentclass{article}
\usepackage[paperwidth=1cm,paperheight=1.25cm,margin=0cm]{geometry}
\pagestyle{empty}
\usepackage{tikz}
\begin{document}\noindent \begin{tikzpicture}
  \node[draw](A){};
  \node[draw,below of=A]{};
\end{tikzpicture}% \end{document} and run latex mwe && pdflatex mwe && dvips -o 
mwe.ps mwe.dvi && dvipdf mwe.dvi mwe.dvi.pdf && ps2pdf mwe.ps mwe.ps.pdf.
In https://i.stack.imgur.com/DSm4L.png https://i.stack.imgur.com/DSm4L.png 
(attached screenshot_2_nodes.png), we see the generated mwe.ps, mwe.pdf, 
mwe.dvi.pdf, and mwe.ps.pdf (from left to right), as shown by the viewer gv. 
Notice that in the view of the PostScript file, the upper box is fully visible, 
whereas in views of the PDF files, the upper line of the upper box is cut off.
If we remove the lower \nodeā€¦ command from the input, the upper box becomes 
fully visible, but the views of the Postscript and PDF outputs are still 
different, as shown in https://i.stack.imgur.com/5CS8n.png 
https://i.stack.imgur.com/5CS8n.png (attached screenshot_1_node.png). In the 
view of the Postscript file, the remaining box is lower than in the view of the 
PDF file.
Clearly, cutting off stuff is bad as well as the discrepancies between the 
views of the Postscript and PDF files that should depict the same stuff. 
According to 
https://tex.stackexchange.com/questions/685761/gv-the-outputs-of-pdflatex-latexdvipdf-and-latexps2pdf-are-slightly-shifted#comment1701532_685761
 
https://tex.stackexchange.com/questions/685761/gv-the-outputs-of-pdflatex-latexdvipdf-and-latexps2pdf-are-slightly-shifted#comment1701532_685761,
 the viewers Adobe Reader, sumatra, and the pdf viewer from winedt show the 
boxes exactly in the corner, and the problem here is probably due to gv.
On the machine in question, ghostscript 9.55.0~dfsg-3 on Debian stable with a 
few updated packages from testing is installed. I kindly ask to check the issue 
and fix it.
Gratefully,
AlMa

Reply via email to