我正在尝试制作一个签名块,该签名块在签名行上方有足够的空间来盖章。但指示\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}