我在第一页的末尾有一些介绍文字和一张图。现在我想在这些部分之间放置一个带框的注释框,这可能会转到下一页。但我希望框架填满整个页面的剩余部分
\documentclass[a4paper,10pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{framed}
\begin{document}
\fbox{\parbox{7cm}{%
Eingangsdatum:\hfill 19.03.2018\\
Bearbeiter:\hfill\textbf{PMI}
}}
\begin{figure}[b]
\fbox{\parbox{9cm}{%
Ergebnis
}}
\end{figure}
\begin{framed}
\textbf{Anmerkungen:}\\
%% what to do to expand the frame to the top of the figure-box?
%% or, if the notes are longer than one page, expand to the
%% bottom of the page
\end{framed}
\end{document}
答案1
\documentclass[a4paper,10pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[breakable]{tcolorbox}
\usepackage{lipsum}
\newtcolorbox{stretchbox}[1][]{
sharp corners,
breakable,
height fixed for=all,
height fill,
colback=white,
#1}
\begin{document}
\fbox{\parbox{7cm}{%
Eingangsdatum:\hfill 19.03.2018\\
Bearbeiter:\hfill\textbf{PMI}
}}
\begin{figure}[b]
\fbox{\parbox{9cm}{%
Ergebnis
}}
\end{figure}
\begin{stretchbox}
\textbf{Anmerkungen:}
\lipsum[20-25]
\end{stretchbox}
\end{document}
跨页分页
单页