在我的申报表中,我喜欢写一个 latex 小页面,在页面底部包含签名、姓名、注册号、地点和日期。但是,它们以分散的方式出现。
\documentclass{article}
\begin{document}
\begin{center}
\large \textbf{Declaration}
\end{center}
I hereby declare that this dissertation is the product of my own work, and I attest that it contains no material that resulted from collaboration, except where explicitly acknowledged in the text. Furthermore, I confirm that this dissertation has not been previously submitted, either in part or in its entirety, to any other University or Institution for the purpose of obtaining any degree, diploma, or other qualification. All sources used and referenced in this dissertation are duly credited, and any borrowed ideas or information are appropriately cited in accordance with academic standards and guidelines.
\vspace{2cm}
\begin{tabular}{p{7cm}p{5cm}}
\dotfill & \dotfill \\
Signature & Date \\
& \\
\dotfill & \dotfill \\
Name & Place \\
& \\
\dotfill & \dotfill \\
Registration Number &
\end{tabular}
\end{document}
不强制使用 minipage,欢迎使用任何其他可以提供所需输出的方法(如子图或表格等)。此外,如果虚线看起来很奇怪,可以删除并进行硬编码(签名部分除外)。
答案1
您希望它tabular
具有与文本块相同的宽度。
\documentclass{article}
\begin{document}
\begin{center}
\large \textbf{Declaration}
\end{center}
\noindent
I hereby declare that this dissertation is the product of my own work,
and I attest that it contains no material that resulted from collaboration,
except where explicitly acknowledged in the text. Furthermore, I confirm
that this dissertation has not been previously submitted, either in part
or in its entirety, to any other University or Institution for the purpose
of obtaining any degree, diploma, or other qualification. All sources used
and referenced in this dissertation are duly credited, and any borrowed
ideas or information are appropriately cited in accordance with academic
standards and guidelines.
\vspace{2cm}
\noindent
\begin{tabular}{
@{}p{\dimexpr0.55\textwidth}
@{\hspace{0.05\textwidth}}
p{\dimexpr0.40\textwidth}@{}
}
\dotfill & \dotfill \\
Signature & Date \\
& \\
\dotfill & \dotfill \\
Name & Place \\
& \\
\dotfill & \dotfill \\
Registration Number &
\end{tabular}
\end{document}
注意\noindent
避免标准段落缩进。