在致谢部分的末尾,我希望我的名字右对齐。然后,在下一行,我希望日期与我的名字水平对齐。我该怎么做?
这是我的 MWE:
\documentclass[oneside,11pt]{book}
\usepackage[semibold,tt=false]{libertine}
\usepackage{libertinust1math}
\usepackage[
expansion = false ,
tracking = smallcaps ,
letterspace = 40 ,
]{microtype}
\usepackage{enumitem}
\usepackage{lipsum}
\begin{document}
\section*{Acknowledgments}
\lipsum[1]
\hspace*{\fill} J.\ J.\ Jingleheimer Schmidt\\
\hspace*{\fill} December 2020
\end{document}
答案1
将姓名和日期放入tabular
:
\documentclass[oneside,11pt]{book}
\usepackage[semibold,tt=false]{libertine}
\usepackage[
expansion = false ,
tracking = smallcaps ,
letterspace = 40 ,
]{microtype}
\usepackage{lipsum}
\begin{document}
\section*{Acknowledgments}
\lipsum[1]
\hspace*{\fill}
\begin{tabular}{l@{}}
J.\ J.\ Jingleheimer Schmidt\\
December 2020
\end{tabular}
\end{document}