Is there a way to increase the number of steps for the fuzzy-shadow option of tcolorbox?
The shadow has about the size and feather-range I am looking for but seems a bit ragged.
Can the number of steps the fuzzy shadow uses be increased?
MWE:
\documentclass[10pt,twoside]{article}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}
\usepackage[most]{tcolorbox}
\usepackage{tikz}
\definecolor{bgtan}{HTML}{F7F2E5}
\pagecolor{bgtan}
\newtcolorbox{paperbox}[1][]{
frame hidden,
enhanced,
boxrule=0pt,
boxsep=0.25ex,
arc=0mm,
borderline north={1pt}{-0.5pt}{black},
borderline south={1pt}{-0.5pt}{black},
colback=black!20!white,
colframe=black!20!white,
fuzzy shadow={0mm}{-4pt}{-0.5pt}{0.4mm}{black!60!white},
#1
}
\begin{document}
\begin{paperbox}
\lipsum[1]
\end{paperbox}
\end{document}
0.2mm
instead of0.4mm
is no option? You're using-4pt
as vertical size, perhaps you should switch to0.4pt
as step size to get 10 'shadows'fuzzy shadow
consists of a fixed number of 10 simpleshadow
entities. As Christian Hupfer wrote, the step size can be made smaller to get a more smooth (but smaller) appearance. Another possibility would be to use a combination of severalshadow
options (more than 10) to create a smoother shadow.