当我对以下内容进行文本处理时,线条具有不同的高度(如果位于两个框之间,则尺寸加倍)
\documentclass[12pt]{article}
\usepackage[fitting,raster]{tcolorbox}
\begin{document}
The brown Fox jumps
\tcbset{colframe=black,colback=white,
sharp corners,
boxsep=0pt,top=1mm,bottom=1mm,left=1mm,right=1mm,
fit algorithm=hybrid*,raster equal skip=0mm}
\begin{tcbraster}[raster rows=4,width=75mm]
\begin{tcbraster}[raster columns=3,height=8mm]
\tcboxfit{Test1}
\tcboxfit{Test1}
\tcboxfit{Test1}
\end{tcbraster}
\begin{tcbraster}[raster columns=3,height=8mm]
\tcboxfit{Test1}
\tcboxfit{Test1}
\tcboxfit{Test1}
\end{tcbraster}
\end{tcbraster}
\end{document}
我没有找到用来使所有线条具有相同高度的参数。
答案1
设置raster equal skip
为负值:
\documentclass[12pt]{article}
\usepackage[fitting,raster]{tcolorbox}
\begin{document}\
\tcbset{colframe=black,colback=white,
sharp corners,
boxsep=0pt,top=1mm,bottom=1mm,left=1mm,right=1mm,
fit algorithm=hybrid*,raster equal skip=-0.5mm,}
\begin{tcbraster}[raster rows=4,width=75mm]
\begin{tcbraster}[raster columns=3,height=8mm]
\tcboxfit{Test1}
\tcboxfit{Test1}
\tcboxfit{Test1}
\end{tcbraster}
\begin{tcbraster}[raster columns=3,height=8mm]
\tcboxfit{Test1}
\tcboxfit{Test1}
\tcboxfit{Test1}
\end{tcbraster}
\end{tcbraster}
\end{document}