![签名行上方的空间](https://linux22.com/image/406933/%E7%AD%BE%E5%90%8D%E8%A1%8C%E4%B8%8A%E6%96%B9%E7%9A%84%E7%A9%BA%E9%97%B4.png)
我正在尝试制作一个签名块,该签名块在签名行上方有足够的空间来盖章。但指示\vspace
似乎没有效果。
如何才能保留上面3cm呢\hline
?
\documentclass[a4paper]{article}
\usepackage{tabularx}
\newcommand{\signatureline}[1]{%
\begin{tabular}{@{}p{6cm}@{}}
\vspace{3cm} % Increasing this seems to have no effect
\\ \hline \\[-.75\normalbaselineskip]
#1
\end{tabular}
\hspace{2cm}
\begin{tabular}{@{}p{4cm}@{}}
\vspace{3cm} % Increasing this seems to have no effect
\\ \hline \\[-.75\normalbaselineskip]
Date
\end{tabular}
\\
}
\newcommand{\approval}{%
\par\vspace*{\fill} % Puts signature lines in the same spot of each page for easy stamping
\section*{Approvals}
\signatureline{Operator} % Putting \vspace after this doesn't put space between these signaturelines
\signatureline{Authority}
\clearpage
}
\begin{document}
Some text
\approval
\end{document}
答案1
使用具有所需高度的不可见物体。
我还添加了\par
“\\
这不适合这份工作”和\hfill
“而不是” \hspace{2cm}
。
\documentclass[a4paper]{article}
\usepackage{tabularx}
\newcommand{\signatureline}[1]{%
\par\noindent
\begin{tabular}{@{}p{6cm}@{}}
\rule{0pt}{3cm}
\\ \hline \\[-.75\normalbaselineskip]
#1
\end{tabular}\hfill
\begin{tabular}{@{}p{4cm}@{}}
\rule{0pt}{3cm}
\\ \hline \\[-.75\normalbaselineskip]
Date
\end{tabular}\par
}
\newcommand{\approval}{%
\par\vspace*{\fill} % Puts signature lines in the same spot of each page for easy stamping
\section*{Approvals}
\signatureline{Operator} % Putting \vspace after this doesn't put space between these signaturelines
\signatureline{Authority}
\clearpage
}
\begin{document}
Some text
\approval
\end{document}
答案2
另一个解决方案是将您所做的相同操作添加到 hline。\\[3cm]
\documentclass[a4paper]{article}
\usepackage{tabularx}
\newcommand{\signatureline}[1]{%
\begin{tabular}{@{}p{6cm}@{}}
% \vspace{3cm} % Increasing this seems to have no effect
\\[3cm]
\hline \\[-.75\normalbaselineskip]
#1
\end{tabular}
\hspace{2cm}
\begin{tabular}{@{}p{4cm}@{}}
% \vspace{3cm} % Increasing this seems to have no effect
\\[3cm]
\hline \\[-.75\normalbaselineskip]
Date
\end{tabular}
\\
}
\newcommand{\approval}{%
\par\vspace*{\fill} % Puts signature lines in the same spot of each page for easy stamping
\section*{Approvals}
\signatureline{Operator} % Putting \vspace after this doesn't put space between these signaturelines
\signatureline{Authority}
\clearpage
}
\begin{document}
Some text
\approval
\end{document}