如何在 Latex 中仅将一位作者与其他三位作者居中对齐

Posted

技术标签:

【中文标题】如何在 Latex 中仅将一位作者与其他三位作者居中对齐【英文标题】:How can I center align only one author amongst three other authors in Latex 【发布时间】:2020-08-25 22:54:42 【问题描述】:

如果我在一篇会议 (IEEETran) 论文中有四位作者,我如何才能仅将他们中的最后一位居中对齐?

\documentclass[conference]IEEEtran
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackagecite
\usepackageamsmath,amssymb,amsfonts
\usepackagealgorithmic
\usepackagegraphicx
\usepackagetextcomp
\usepackagexcolor
\def\BibTeX\rm B\kern-.05em\sc i\kern-.025em b\kern-.08em
    T\kern-.1667em\lower.7ex\hboxE\kern-.125emX
\begindocument

\titleTitle*\\
\footnotesize \textsuperscript*Note: Sub-titles are not captured in Xplore and
should not be used
\thanksIdentify applicable funding agency here. If none, delete this.


\author\IEEEauthorblockN1\textsuperscriptst Given Name Surname
\IEEEauthorblockA\textitdept. name of organization (of Aff.) \\
\textitname of organization (of Aff.)\\
City, Country \\
email address
\and
\IEEEauthorblockN2\textsuperscriptnd Given Name Surname
\IEEEauthorblockA\textitdept. name of organization (of Aff.) \\
\textitname of organization (of Aff.)\\
City, Country \\
email address
\and
\IEEEauthorblockN3\textsuperscriptrd Given Name Surname
\IEEEauthorblockA\textitdept. name of organization (of Aff.) \\
\textitname of organization (of Aff.)\\
City, Country \\
email address
\and
\IEEEauthorblockN3\textsuperscriptrd Given Name Surname
\IEEEauthorblockA\textitdept. name of organization (of Aff.) \\
\textitname of organization (of Aff.)\\
City, Country \\
email address


\maketitle
\enddocument

【问题讨论】:

【参考方案1】:

您可以使用与https://tex.stackexchange.com/a/458208中相同的方法

\documentclass[conference]IEEEtran
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackagecite
\usepackageamsmath,amssymb,amsfonts
\usepackagealgorithmic
\usepackagegraphicx
\usepackagetextcomp
\usepackagexcolor
\def\BibTeX\rm B\kern-.05em\sc i\kern-.025em b\kern-.08em
    T\kern-.1667em\lower.7ex\hboxE\kern-.125emX

\makeatletter
\newcommand\linebreakand%
  \end@IEEEauthorhalign
  \hfill\mbox\par
  \mbox\hfill\begin@IEEEauthorhalign

\makeatother

\begindocument

\titleTitle*\\
\footnotesize \textsuperscript*Note: Sub-titles are not captured in Xplore and
should not be used
\thanksIdentify applicable funding agency here. If none, delete this.


\author\IEEEauthorblockN1\textsuperscriptst Given Name Surname
\IEEEauthorblockA\textitdept. name of organization (of Aff.) \\
\textitname of organization (of Aff.)\\
City, Country \\
email address
\and
\IEEEauthorblockN2\textsuperscriptnd Given Name Surname
\IEEEauthorblockA\textitdept. name of organization (of Aff.) \\
\textitname of organization (of Aff.)\\
City, Country \\
email address
\and
\IEEEauthorblockN3\textsuperscriptrd Given Name Surname
\IEEEauthorblockA\textitdept. name of organization (of Aff.) \\
\textitname of organization (of Aff.)\\
City, Country \\
email address
\linebreakand 
\IEEEauthorblockN3\textsuperscriptrd Given Name Surname
\IEEEauthorblockA\textitdept. name of organization (of Aff.) \\
\textitname of organization (of Aff.)\\
City, Country \\
email address


\maketitle
\enddocument

【讨论】:

非常感谢。您的回答非常有帮助且准确。我还想问一下,有没有什么好的教程或文档可以让我学习如何使用你在答案中提到的乳胶命令。 @KrishnNand 不客气!对于一般的乳胶教程,我强烈推荐来自dickimaw-books.com/latex 的书籍(在线版本免费提供)。至于解决像你这样的问题,恐怕任何教程都不会涉及 - 这通常需要查看类/包源或一些有根据的猜测在哪里搜索这些东西。 再次感谢@samcarter_is_at_topanswers.xyz 非常准确。我简要查看了链接中提供的图库示例,我相信它们将对未来的乳胶代码非常有益。

以上是关于如何在 Latex 中仅将一位作者与其他三位作者居中对齐的主要内容,如果未能解决你的问题,请参考以下文章

如何在 SQL Alchemy 中仅将 Python 表达式用作混合属性

Latex:在同一位置引用同名作者的两篇参考文献时如何避免省略作者姓名

如何在颤动的 5 个元素的列中仅将一个元素居中

在 ListView 中仅将标题设为粗体

如何在Oracle中仅将列用作1行到1行返回pl / sql函数中的参数

Latex elsarticle 作者与单位角标不一致