Lets consider two silimar boxed environments using mdframed
and tcolorbox
, processed by xelatex/pdflatex:
\documentclass{article}
\usepackage{tcolorbox}
\usepackage{mdframed}
\usepackage{lipsum}
\begin{document}
\begin{tcolorbox}[colback=white,colframe=black,sharp corners=all,boxrule=0.7pt,top=0.2in]
\lipsum[3]
\end{tcolorbox}
\begin{mdframed}[linewidth=0.7pt,innertopmargin=0.2in,innerbottommargin=0.2in]
\lipsum[3]
\end{mdframed}
\end{document}
On zoom 100% or greater we see two equivalent boxes in all PDF viewers (Evince, Okular, Adobe Acrobat, …)
But on zoom below 75% tcolorbox
starts to loose frame borders on Okular and Adobe Acrobat.
Yes, questions already discussed [Box border lines not showing properly on PDF ], (about incorrect rasterization in Evince, guilty PDF viewers, etc).
But I see, that mdframed hacked somehow this problem and "mdframed borders" OK in all PDF Viewers (even without "[framemethod=tikz]").
Is it possible to specify some magic options/hack/workaround to make tcolorbox
behave "like mdframed"?
("save borders in all zoom levels even in Okular and Adobe Reader")
mdframed
boxes at the same resolution where borders fromtcolorbox
are visible – user31729 Jan 30 '17 at 19:10colback=whit
you get a default fill... – David Carlisle Jan 30 '17 at 19:14