作者姓名不一致

作者姓名不一致

我想放一个来自网站的文章以 pdf 形式呈现,使其更易于阅读和打印。

它几乎已经完成并且结果看起来正确,但我对作者姓名的对齐存在问题,正如您在此处看到的:

PDF 捕获

我不确定是什么原因导致第一作者向右移动,你能帮我解决这个问题吗?这是我的实际标题:

\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{lastpage}
\usepackage{fancyhdr}
\usepackage{fancyvrb}
\usepackage{float}
\pagestyle{fancy} 
\usepackage{graphicx}

\fancyhead{}
\fancyhead[L]{Characteristics of UDP Packet Loss - Effect of TCP Traffic}
\cfoot{\hfill \thepage\ sur \pageref{LastPage}}

\author{
    Hidenari, Sawashima\\ \texttt{<[email protected]>}\\ Nara Institute of Science and Technology\\ Japan\\~
\and
    Yoshiaki, Hori\\ \texttt{<[email protected]>} \\ Kyushu Institute of Design\\ Japan\\~
\and
    Hideki Sunahara\\ \texttt{<[email protected]>}\\ Nara Institute of Science and Technology\\ Japan
\and
    Yuji Oie\\ \texttt{<[email protected]>}\\ Nara Institute of Science and Technology\\ Japan
}

\date{}

\title{\textbf{\huge Characteristics of UDP Packet Loss \\Effect of TCP Traffic}\\~\\~\texttt{\normalsize https://www.isoc.org/inet97/proceedings/F3/F3\_1.HTM\\~}}

\begin{document}

    \maketitle

    \vspace{40pt}
    \begin{abstract}
    ...

答案1

它只是好像第一位作者的文本块向右移动。实际上,第一行的两位作者共同水平居中,并且与下一行的两位作者(在可用文本块中也共同水平居中)独立排版

为了获得跨行的垂直对齐,需要将作者信息放入嵌套tabular环境中。

在此处输入图片描述

\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[margin=2cm]{geometry}
\usepackage{lastpage}
\usepackage{fancyhdr,fancyvrb,float}
\pagestyle{fancy} 
\usepackage{graphicx}
\usepackage{booktabs} % for '\addlinespace' macro

\fancyhead{}
\fancyhead[L]{Characteristics of UDP Packet Loss - Effect of TCP Traffic}
\cfoot{\hfill \thepage\ sur \pageref{LastPage}}

\title{Characteristics of UDP Packet Loss \\Effect of TCP Traffic\\~\\ 
\normalsize \texttt{https://www.isoc.org/inet97/proceedings/F3/F3\_1.HTM\\~}}

\author{%
\begin{tabular}{cc}
\begin{tabular}[t]{c}
Hidenari, Sawashima\\ \texttt{<[email protected]>}\\ Nara Institute of Science and Technology\\ Japan
\end{tabular} &
\begin{tabular}[t]{c}
Yoshiaki, Hori\\ \texttt{<[email protected]>} \\ Kyushu Institute of Design\\ Japan
\end{tabular} \\ \addlinespace[4ex] % create some vertical separation
\begin{tabular}[t]{c}
Hideki Sunahara\\ \texttt{<[email protected]>}\\ Nara Institute of Science and Technology\\ Japan
\end{tabular} &
\begin{tabular}[t]{c}
Yuji Oie\\ \texttt{<[email protected]>}\\ Nara Institute of Science and Technology\\ Japan
\end{tabular}
\end{tabular}
}
\date{}

\begin{document}
\maketitle
\end{document}

相关内容