tcolorbox: 高さを指定された寸法の次の倍数に切り上げます

tcolorbox: 高さを指定された寸法の次の倍数に切り上げます

非常に強力なパッケージを使い始めましたtcolorbox。実現したいことの 1 つは、学校の練習問題用紙用のグリッドを作成することです。ほぼ完成していると思います。ただし、高さが次のように計算されるボックスを作成できれば便利です。

利用可能なコンテンツに対するボックスの自然な高さを計算する必要があります。次に、その寸法を、指定された長さの次の整数倍に切り上げます。次に、ボックスの高さをその結果に設定します。

グリッドが上部と下部で対称に見えるというアイデアです。

これまでのところ、次のものがあります:

\documentclass{article}

\usepackage[most]{tcolorbox}
\usetikzlibrary{calc}

\newtcolorbox{mygrid}{breakable, colback=white, enhanced, 
    boxrule=0pt, arc=0pt, outer arc=0pt,
    boxsep=0pt, top=9pt, left=13pt, right=13pt, bottom=10pt,
    underlay={\begin{tcbclipinterior}
        \filldraw[help lines, black!15, step=0.04\linewidth,
                shift={($0.5*(interior.north west)+0.5*(interior.north east)
                    -0.02*(0,\linewidth)$)}]
            (interior.south west) grid (interior.north east);
        \end{tcbclipinterior}}}

\begin{document}
\begin{mygrid}
Some content. Some content. Some content. Some content. Some content. Some content. 
Some content. Some content. Some content. Some content. Some content. Some content. 
Some content. Some content. Some content. Some content. Some content. Some content. 
Some content. Some content. Some content. Some content. Some content.  
\end{mygrid}
\end{document}

これは可能ですか?

関連情報