距离我上次使用 Latex 已经有一段时间了,所以请耐心等待。
正如标题所示,我想在医疗报告底部并排放置两个签名(各占 50%)。这就是我目前所拥有的(显然是使用轻微地更改了作者姓名):
\flushleft
\newlength\jm
\settowidth{\jm}{Luke Skywalker}
\begin{tabular}{p{\jm}}\hline
\centering\footnotesize (Luke Skywalker)
\end{tabular}
\vspace{10 mm}
The force is strong in my family
\vspace{5 mm}
\flushleft
\newlength\mb
\settowidth{\mb}{Darth Vader}
\begin{tabular}{p{\mb}}\hline
\centering\footnotesize (Darth Vader)
\end{tabular}
卢克怎么能站在他父亲旁边(卢克在左边,两者都有下划线)?
答案1
复制我的答案左右对齐在同一行,因为这更适合这里:
\documentclass{article}
\usepackage{showframe} % just to show the page boundaries
\begin{document}
whatever...
\vfill % push the rest to the bottom of the page
\noindent \parbox[t]{0.5\linewidth}{%
\underline{\textbf{Student}} \\ Mr. Studentname \\
\vspace{2cm} } % This 2cm is the space for the signature under the names
\parbox[t]{0.45\linewidth}{%
\underline{\textbf{Supervisor}} \\ Mr. Supervisorname}
\end{document}
...签名处位于姓名下方,与姓名左侧对齐。您可以更改parbox
es 的内容以适应您的喜好。
更重要的是:
\documentclass{article}
\usepackage{showframe} % just to show the page boundaries
\begin{document}
whatever...
\vfill % push the rest to the bottom of the page
\noindent
\parbox[b]{0.4\linewidth}{% size of the first signature box
\strut
Signed by: \\[2cm]% This 2cm is the space for the signature under the names
\hrule
(Luke Skywalker)}
\hspace{1cm} % distance between the two signature blocks
\parbox[b]{0.4\linewidth}{% ...and the second one
\strut
The force is strong in my family: \\[2cm]% This 2cm is the space for the signature under the names
\hrule
(Darth Vader)}
\par\vspace{1cm}
\end{document}
您可以在行前使用将名称置于行下的中心\centering
,但您会收到“水平盒子未满”的警告,对此我仍感到疑惑...