我想在合同底部添加签名部分。左侧为第三方签名,右侧为公司签名。
不幸的是,multicols
左列被刷新了。签名框被放在了环境的底部。我该如何防止这种情况发生?
\documentclass{article}
\usepackage{xcolor}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{multicol}
\usepackage{parskip}
\newcommand{\signature}{
\begin{mdframed}[roundcorner=4pt,linewidth=0pt,backgroundcolor=gray!20]
\vskip 1.5cm
\tiny \textsf{Signature}
\end{mdframed}}
\begin{document}
Here is the contract\dots
\vfill
\begin{multicols}{2}
John G Baldwin \\ 4323 Traders Alley \\ 61105 Kansas City \\
\signature
\columnbreak
Nathaniel S Bennett \\ 2166 Lighthouse Drive \\ 65616 Branson \\
\signature
Romeo B Walker \\ 4402 Snider Street \\ 81003 Pueblo Colorado \\
+1 719 937 78 78 \\
\signature
\end{multicols}
\end{document}
答案1
您可以使用 来实现这一点\vfill\null
,\null
放置另一个框,以防止multicols
忽略\vfill
之前的\columnbreak
:
\documentclass{article}
\usepackage{xcolor}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{multicol}
\usepackage{parskip}
\newcommand{\signature}{
\begin{mdframed}[roundcorner=4pt,linewidth=0pt,backgroundcolor=gray!20]
\vskip 1.5cm
\tiny \textsf{Signature}
\end{mdframed}}
\begin{document}
Here is the contract\dots
\vfill
\begin{multicols}{2}
John G Baldwin \\ 4323 Traders Alley \\ 61105 Kansas City \\
\signature
\vfill
\null
\columnbreak
Nathaniel S Bennett \\ 2166 Lighthouse Drive \\ 65616 Branson \\
\signature
Romeo B Walker \\ 4402 Snider Street \\ 81003 Pueblo Colorado \\
+1 719 937 78 78 \\
\signature
\end{multicols}
\end{document}