重新定义 \author

重新定义 \author

你能帮我吗?我想重新定义 \author,让名字采用小写字母,名字采用罗马字母

\newcommand{\np}[2]{\textrm{#1}\textsc{#2}}

我怎样才能让它\def\@author影响所有文档的样式

对不起,我的英语不好

答案1

如果论文只有一位作者,而你只使用姓名,没有所属机构和其他信息,你可以这样做

\documentclass{article}

\makeatletter
\renewcommand{\author}[1]{\@breakauthor#1\@breakauthor}
\def\@breakauthor#1 #2\@breakauthor{%
  \gdef\@author{#1 \textsc{#2}}%
}
\makeatother

\begin{document}

\author{Adam Uthor}
\title{A nice paper}
\maketitle

\end{document}

在此处输入图片描述

但是,在你的每篇论文上加上代码比\textsc{...}在姓氏周围加上代码要沉重得多。

相关内容