我正在使用 revtex 4.2(带有 overleaf),我想在地址中写入逗号。
例如:
\documentclass[sor,jor,amsmath,amssymb,reprint,]{revtex4-2}
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
\begin{document}
\title[Sample title]{Title}
\author{A. Author}
\affiliation{Authors' institution and/or address}
\maketitle
\end{document}
如果我在隶属关系中写逗号,它会写在下一行。
答案1
\documentclass[sor,jor,amsmath,amssymb,reprint,]{revtex4-2}
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
\begin{document}
\title[Sample title]{Title}
\author{A. Author}
\affiliation{Authors' institution and/or address\char`,{} next part}
\maketitle
\end{document}
这是另一种方法
\documentclass[sor,jor,amsmath,amssymb,reprint,]{revtex4-2}
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
\begin{document}
\title[Sample title]{Title}
\author{A. Author}
\let\comma,
\affiliation{Authors' institution and/or address\comma{} next part}
\maketitle
\end{document}
答案2
要停用里面的逗号\affiliation
:
\def\cat@comma@active{\catcode`\,12}%
注意,\cat@comma@active
仅在内部使用\affiliation
,因此重新定义它不会在其他地方引起问题。
平均能量损失
\documentclass[sor,jor,amsmath,amssymb,reprint,]{revtex4-2}
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
\makeatletter
\def\cat@comma@active{\catcode`\,12}%
\makeatother
\begin{document}
\title[Sample title]{Title}
\author{A. Author}
\affiliation{Authors' institution, and/or address\\
Another institution}
\maketitle
\end{document}