由于某种原因,revtex4-1(APL)中的从属关系中有一个不必要的换行符。以下是一个例子:
如您所见,隶属关系 #1 比隶属关系 #2 多出约 2 厘米。有如此多的额外空间,以至于我可以在空间中用大字母划出“USA”。但是 - 如您在左侧的圆圈中看到的 - 它会打破这条线!
为什么它会这样做?更重要的是,我该如何阻止它?
这是 mwe 代码:
\documentclass[aip,apl,reprint,amsmath,amssymb,amsfonts, floatfix, showpacs,intlimits]{revtex4-1}
\begin{document}
\title{Excellent Title - Short, Concise, and to the Point}
\author{Author 1}
\email[]{[email protected]}
\affiliation{Really really really really long department name, University of really long name, really long city name, really long province name, 12345, PikuPikuPik}
\author{Author 2}
\affiliation{Department of Psychics, University of Coolness State, Fake City, Emu Emu, 12345, USA}
\date{\today}
\begin{abstract}
Abstract abstract abstract abstract abstract abstract abstract abstract abstract abstract abstract abstract abstract abstract abstract abstract abstract
\end{abstract}
\maketitle
\end{document}
再次,最大的问题是:我如何抑制换行符?
答案1
班上revtex4-1
发生了一些奇怪的事情。这是其中之一。
他们的想法是,从属关系行只在逗号处分割,因此当从属关系被吸收时,逗号将成为活动字符,其含义是
排版一个逗号并插入 -300 惩罚
这种惩罚会让 TeX 更倾向于使用逗号来分割行(在不规则的右侧上下文中)。然而,这会产生一些不良影响,就像你的情况一样。
解决方案:附加\looseness=-1
,因此在这种情况下处罚不会产生实际效果。
\documentclass[aip,apl,reprint,amsmath,amssymb,amsfonts, floatfix, showpacs,intlimits]{revtex4-1}
\begin{document}
\title{Excellent Title - Short, Concise, and to the Point}
\author{Author 1}
\email[]{[email protected]}
\affiliation{Really really really really long department name,
University of really long name, really long city name,
really long province name, 12345, PikuPikuPik}
\author{Author 2}
\affiliation{Department of Psychics, University of Coolness State, Fake City, Emu Emu, 12345, USA\looseness=-1}
\date{\today}
\begin{abstract}
Abstract abstract abstract abstract abstract abstract abstract abstract
abstract abstract abstract abstract abstract abstract abstract abstract abstract
\end{abstract}
\maketitle
\end{document}