这是最少的代码:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{fullpage}
\usepackage{setspace}
\usepackage{multicol}
\onehalfspacing
\begin{document}
\begin{multicols}{2}
\noindent Author A \newline
Department Name, \newline
University Name, \newline
City, Country. \newline
Email: [email protected]
\columnbreak
\noindent Author B \newline
Department Name, \newline
University Name, \newline
City, Country. \newline
Email: [email protected]
\end{multicols}
\end{document}
输出如下:
我怎样才能使右列右缩进,就像左列左缩进一样,以确保右列中的文本与右侧页面末尾的小黑线对齐。
答案1
我不太确定我是否理解了您想要获得的对齐方式。如果第二作者不应设置为右侧对齐,请将表格列类型从 更改r
为l
。
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{fullpage}
\usepackage{setspace}
\usepackage{lipsum}
\onehalfspacing
\begin{document}
\noindent\begin{tabular}[t]{@{}l}
Author A \\
Department Name, \\
University Name, \\
City, Country. \\
Email: [email protected]
\end{tabular}
\hfill
\begin{tabular}[t]{r@{}}
Author B \\
Department Name, \\
University Name, \\
City, Country. \\
Email: [email protected]
\end{tabular}
\bigskip
\lipsum[1]
\end{document}
第二\begin{tabular}[t]{l@{}}
作者: