I want to minimize conversion error when working with PSTricks and (La)TeX. The conversion error really affects the accuracy of bounding box, the thickness of LaTeX's \fbox
and the thickness of PSTricks stroke.
When I specify a length for
- page layout dimension:
\paperwidth
,\paperheight
,\voffset
,\hoffset
,\topskip
,\parindent
- TeX box dimension:
\fboxrule
,\fboxsep
,\arrayrulewidth
, etc - PSTricks object dimension:
\unit
,\linewidth
, etc
which unit should we use to minimize the conversion? Should we use a single unit throughout the document?
Because the existing answers don't explain how to minimize the conversion error, I will emphasize and rephrase my questions above. Based on the existing answers, my understanding is as follows.
TeX naturally works in sp
and PostScript works naturally in bp
. If I want to avoid conversion in TeX block, provide the lengths in sp
. But if I work in PSTricks block, I must provide the length in bp
.
However, I have one question:
If I define a \pspicture
dimension in bp
, how does PSTricks ask TeX to reserve the space without making a conversion error from bp
to sp
?
sp
(integer) values, I assume?pt
/sp
, technically the same thing, just presented differently). However, most of the PSTricks magic is done in PostScript which usesbp
.bp
(72 points per inch).pt
anbp
are almost but not quite identical, it's not possible to represent both as floating point machine numbers.