[texworks] Possible bug in TeXworks previewer
Philip Taylor (Hellenic Institute)
P.Taylor at Hellenic-Institute.Uk
Sun Oct 2 10:49:49 CEST 2022
TeXworks (version and environment as per preceding recent possible bug
reports) routinely displays "actual size" incorrectly when a document is
first previewed.
If, however, one uses Edit/Preferences/Preview to (a) /increase /the
screen resolution by one notch — e.g., from 81.40 dpi to 82.40 dpi — and
clicks on [OK], and (b) to /decrease /the screen resolution by one notch
and clicks on [OK], the document then renders at actual size — also true
if the steps are taken in the reverse order. Found to be the case for
two recent projects, the smaller of which was typesetting a score card
with dimensions 8cm x 21cm (attached, in case relevant).
--
/Philip Taylor/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texworks/attachments/20221002/e9442e20/attachment.html>
-------------- next part --------------
% !TeX Program=XeTeX
\pdfpagewidth = 8 cm
\pdfpageheight = 21 cm
\hsize = 18 pc
\vsize = 47.5 pc
\advance \hoffset by 0,5 \dimexpr \pdfpagewidth - \hsize \relax
\advance \voffset by 0,5 \dimexpr \pdfpageheight - \vsize \relax
\output = {\advance \hoffset by -1 in \advance \voffset by -1 in \shipout \box 255 \relax}
\parindent = 0 pt
\parskip = 0 pt
\font \fa = "Arial Black" at 17,5 pt
\font \fb = "Arial"
\font \fc = "Arial":color=999999
\fb
\newdimen \units
\units = 0,98 ex
\def \stretch {\tabskip = 0 pt plus 0,2 \hsize \relax}
\def \nostretch {\tabskip = 0 pt \relax}
\topskip = 12 pt
\centerline {\fa BODMIN BOWLS CLUB}
\vfill
\vbox
\bgroup
\fc
\baselineskip = 4 ex
\special {color push rgb 0.8 0.8 0.8}
\line {\kern 3 em Date: \hrulefill \kern 3 em}
\line {\kern 3 em Time: \hrulefill \kern 3 em}
\line {\kern 3 em Match: \hrulefill \kern 3 em}
\special {color pop}
\egroup
\vfill
\nostretch
\newtoks \ends
\newcount \endscount \endscount = 0
\def \addtoends #1{\ends = \expandafter {\the \ends #1}}
\def \addleftnumber #1{\addtoends {\Line {}{}{\Left {#1}}{}{}}}
\def \addrightnumber #1{\addtoends {\Line {}{}{\Right {#1}}{}{}}}
\def \addleft {\expandafter \expandafter \expandafter \addleftnumber \expandafter {\the \endscount}}
\def \addright {\expandafter \expandafter \expandafter \addrightnumber \expandafter {\the \endscount}}
\loop
\advance \endscount by 1
\ifodd \endscount
\ifnum \endscount = 1 \addtoends \Hrule \fi
\addleft
\else
\addright
\fi
\addtoends \Hrule
\ifnum \endscount < 21
\repeat
\def \column {\hss ##\hss}
\def \vhdrule {\vrule height 2,5 \units depth 0,5 \units}
\def \Hrule {\noalign {\vrule height 0,2 pt depth 0,2 pt width \hsize}}
\def \Vrule {##\vhdrule}
\def \Line #1#2#3#4#5{&&&&&\cr}
\def \Left #1{\hbox to 3 em { #1\hss}}
\def \Right #1{\hbox to 3 em {\hss #1 }}
\def \Centered #1{\noalign {\line {\vhdrule width 0 pt \hrulefill \quad #1\quad \hrulefill \vhdrule width 0 pt }}}
\offinterlineskip
\halign to \hsize
\bgroup
\vrule \span \stretch #&
\span \column & \span \Vrule & \span \column &\span \Vrule \span \nostretch & \span \column &\span \Vrule \span \stretch & \span \column &\span \Vrule & \span \column &
#\vrule \span \nostretch \cr
\Centered 1
\Centered 2
\Centered 3
\Centered 4
\noalign {\kern 3 ex}
\the \ends
\egroup
\eject
\end
More information about the texworks
mailing list.