当前位置: 首页 > news >正文

IEEE LaTeX会议模板作者对齐、部门长名称换行

第二行作者对齐

参考链接:

  • https://tex.stackexchange.com/questions/458204/ieeetran-document-class-how-to-align-five-authors-properly/458208#458208
  • https://tex.stackexchange.com/questions/582487/how-to-align-four-author-names-in-the-ieee-conference-format

IEEE 提供的LaTeX会议模板在作者数量多于三个时对不齐
在这里插入图片描述
在这里插入图片描述
解决方案如下。
在导言区定义新的命令如下

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

在第三个作者和第四个作者之间使用\linebreakand连接,而不是and连接。
如五个作者时完整代码为

\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.
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08emT\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\makeatletter
\newcommand{\linebreakand}{%\end{@IEEEauthorhalign}\hfill\mbox{}\par\mbox{}\hfill\begin{@IEEEauthorhalign}
}
\makeatother\begin{document}\title{Conference Paper Title*\\
{\footnotesize \textsuperscript{*}Note: Sub-titles are not captured in Xplore and
should not be used}
\thanks{Identify applicable funding agency here. If none, delete this.}
}\author{\IEEEauthorblockN{1\textsuperscript{st} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
\and
\IEEEauthorblockN{2\textsuperscript{nd} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
\and
\IEEEauthorblockN{3\textsuperscript{rd} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
% \and
\linebreakand
\IEEEauthorblockN{4\textsuperscript{th} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
\and
\IEEEauthorblockN{5\textsuperscript{th} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
% \and
% \IEEEauthorblockN{6\textsuperscript{th} Given Name Surname}
% \IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
% \textit{name of organization (of Aff.)}\\
% City, Country \\
% email address or ORCID}
}\maketitle\begin{abstract}
This document is a model and instructions for \LaTeX.
This and the IEEEtran.cls file define the components of your paper [title, text, heads, etc.]. *CRITICAL: Do Not Use Symbols, Special Characters, Footnotes, 
or Math in Paper Title or Abstract.
\end{abstract}\begin{IEEEkeywords}
component, formatting, style, styling, insert
\end{IEEEkeywords}\section{Introduction}
This document is a model and instructions for \LaTeX.
Please observe the conference page limits. \end{document}

实现效果为
在这里插入图片描述

长部门换行

有的作者单位名称很长,可以尝试使用\shortstack命令将之折叠,示例如下

\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.
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08emT\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}\begin{document}\title{Conference Paper Title*\\
{\footnotesize \textsuperscript{*}Note: Sub-titles are not captured in Xplore and
should not be used}
\thanks{Identify applicable funding agency here. If none, delete this.}
}\author{\IEEEauthorblockN{1\textsuperscript{st} Given Name Surname}
\IEEEauthorblockA{\textit{\shortstack{long long long dept. name \\ of organization (of Aff.)}} \\
\textit{name of organization (of Aff.)}\\
City, Country \\
email address or ORCID}
\and
\IEEEauthorblockN{2\textsuperscript{nd} Given Name Surname}
\IEEEauthorblockA{\textit{dept. name of organization (of Aff.)} \\
\textit{\shortstack{long long long name of \\ organization (of Aff.)}}\\
City, Country \\
email address or ORCID}
}\maketitle\begin{abstract}
This document is a model and instructions for \LaTeX.
This and the IEEEtran.cls file define the components of your paper [title, text, heads, etc.]. *CRITICAL: Do Not Use Symbols, Special Characters, Footnotes, 
or Math in Paper Title or Abstract.
\end{abstract}\begin{IEEEkeywords}
component, formatting, style, styling, insert
\end{IEEEkeywords}\section{Introduction}
This document is a model and instructions for \LaTeX.
Please observe the conference page limits. \end{document}

实现效果为
在这里插入图片描述

相关文章:

  • 5.3刷题
  • 多元随机变量协方差矩阵
  • HTTP基础介绍+OSI七层参考模型+HTTP协议介绍
  • linux的时间轮
  • STM32部分:2-1、STM32CubeMX介绍
  • Spring Cache使用
  • Python表达式全解析:从基础到高级
  • Java多语言DApp质押挖矿盗U源码(前端UniApp纯源码+后端Java)
  • 算法每日一题 | 入门-顺序结构-数字反转
  • c++回调函数
  • Python 线程安全机制:Lock、RLock、Semaphore 的使用场景与最佳实践
  • PyTorch_创建01张量
  • Java虚拟线程基础介绍
  • 突破认知边界:神经符号AI的未来与元认知挑战
  • JAVA刷题记录: 递归,搜索与回溯
  • 纯Java实现STDIO通信的MCP Server与客户端验证
  • 普通 html 项目引入 tailwindcss
  • Go小技巧易错点100例(二十八)
  • 应用层自定义协议序列与反序列化
  • 数据赋能(209)——质量管理——时效性原则
  • 巴菲特股东大会精华版:批评拿贸易当武器,宣布年底交班
  • 五一假期旅游大市党政领导靠前调度,重视解决游客反映的问题
  • 出现这几个症状,说明你真的老了
  • 17家A股城商行一季报扫描:青岛银行营收增速领跑,杭州银行净利增速领跑
  • 格桑花盛放上海,萨迦艺术团襄阳公园跳起藏族舞
  • 11家券商一季度净利翻番:9家利润超20亿,国泰海通居首