如何在latex中写代码,使得作者的信息显示在名字下一行
时间: 2024-11-27 18:24:43 浏览: 291
在LaTeX中编写论文时,如果希望作者的详细信息(如单位、邮箱等)显示在作者姓名的下一行,可以使用`IEEEtran`类提供的命令来实现。具体步骤如下:
1. **引入必要的包**:确保在导言区加载了`IEEEtran`类。
```latex
\documentclass[journal]{IEEEtran}
```
2. **定义作者和 affiliations**:使用`\author`命令,并通过`\thanks`命令添加详细的联系信息。
```latex
\author{Author~Name% <-this % stops a space
\thanks{Author Name is with Department, University, City, Country (e-mail: email@example.com).}}
```
3. **编译文档**:确保使用适当的编译器(如pdflatex或xelatex)编译文档。
以下是一个完整的示例:
```latex
\documentclass[journal]{IEEEtran}
\begin{document}
\title{Sample Title}
\author{Author~Name% <-this % stops a space
\thanks{Author Name is with Department, University, City, Country (e-mail: email@example.com).}}
\maketitle
\begin{abstract}
This is the abstract.
\end{abstract}
\begin{keywords}
Keyword1, Keyword2, Keyword3
\end{keywords}
\section{Introduction}
This is the introduction.
\end{document}
```
在这个示例中,`Author~Name`是作者的名字,`\thanks`命令中的内容会出现在作者名字的下方,作为脚注形式显示。这样可以确保作者的详细信息紧随其后显示。
阅读全文
相关推荐


















