![如何将tcolorbox内部未使用的空间扩大到页面底部?](https://linux22.com/image/479463/%E5%A6%82%E4%BD%95%E5%B0%86tcolorbox%E5%86%85%E9%83%A8%E6%9C%AA%E4%BD%BF%E7%94%A8%E7%9A%84%E7%A9%BA%E9%97%B4%E6%89%A9%E5%A4%A7%E5%88%B0%E9%A1%B5%E9%9D%A2%E5%BA%95%E9%83%A8%EF%BC%9F.png)
如何将tcolorbox内部未使用的空间扩大到页面底部?
\documentclass[]{article}
\usepackage[most, many]{tcolorbox}
\usepackage{lipsum}
\usepackage[showframe]{geometry}
\NewTColorBox{solution}{+O{}}{%
breakable, enhanced,sharpish corners, colframe=blue!50,colback=white,coltitle=blue!50!black,
fonttitle=\itshape\bfseries, parbox = false,
boxrule=0.5mm,top=0mm,bottom=0mm,
code={\if@twoside\tcbset{check odd page, toggle enlargement, toggle left and right}\fi},
left=1mm,
right=\dimexpr(\marginparsep+\marginparwidth)\relax,
grow to right by=\dimexpr(\marginparsep+\marginparwidth)\relax,
title={},
label={},
attach title to upper=\quad,
after upper={\par\hfill%
{}},
lowerbox=ignored,
#1
}
\begin{document}
\begin{solution}
\lipsum[1-10]
\end{solution}
\end{document}
答案1
使用密钥height fixed for=last