这是我的代码:
\usepackage{authblk}
\title{ \vspace{-15mm}
\author[1]{Anand Shankar Singh}
\author[2]{Sukanta K Dash}
\author[3*]{Mahendra R Vanteru}
输出如下:
Anand Shankar Singh、Sukanta K Dash 和 Mahendra R Vanteru。
我想删除and
。我该如何删除它?
答案1
请参阅文档第 4 页,网址为 --http://texdoc.net/texmf-dist/doc/latex/preprint/authblk.pdf
特别是authand
平均能量损失
\documentclass{article}
\usepackage[left=3.00cm, right=3.00cm, top=2.00cm, bottom=2.00cm]{geometry}
\usepackage{authblk}
\renewcommand*{\Authsep}{, }
\renewcommand*{\Authand}{, }%<---------------remove and
\renewcommand*{\Authands}{, }
\renewcommand*{\Affilfont}{\normalsize}
%\renewcommand*{\Authfont}{\bfseries} % make author names boldface
\setlength{\affilsep}{2em} % set the space between author and affiliation
\title{Aa Article Title}
\author[1]{Anand Shankar Singh}
\author[2]{Sukanta K Dash}
\author[3*]{Mahendra R Vanteru}
\affil[1]{Department of Chemical Engineering, University of AAAAA BBBBBB, CCCCC road,
XXXXX 200021, Y Country}
\affil[2]{AAAAAA Laboratory, University of AAAAA BBBBBB, XXXXX 303939, Z Country}
\date{}
\begin{document}
\maketitle
This is an article.
\end{document}
答案2
要删除最后一位作者之前的“,和”,请包括:
\renewcommand*{\Authands}{, }
最小工作示例如下所示:
\documentclass{article} % twoside for mirrored margins
\usepackage{authblk} % author + affiliation
\title{Title}
\author[1]{Author1}
\author[1]{Author2}
\author[2]{Author3}
\affil[1]{Afil1}
\affil[2]{Afil2}
\renewcommand*{\Authands}{, }
\begin{document}
\maketitle
\end{document}
附言:我非常感谢@js bibra 的回答,其中已经包含了这个答案,否则我就无法解决这个问题。但由于它的冗长和误导性的“%<---------------remove and”注释,我一开始并没有立即理解它并误解了它。这导致我花了相当多的时间寻找替代解决方案。