Latex IEEEtran 类的最后一页列均衡?
在 IEEEtran LaTeX 类的文档中,提到最后一页上的两列需要手动调整才能平衡(具有相同的长度)。
我看到 \newpage
将允许我打破第一列,以便其余内容位于第二列上。这允许段落级均衡,并且看起来不错,但我在行级均衡方面遇到了麻烦,也就是说,按行而不是按段落打破列。
当我在段落的中间(而不是段落之间)插入 \newpage
时,LaTeX 有效地将段落一分为二。第二部分转到第二列的顶部(根据需要),第一部分保留在第一列中。我发现了两个问题,但我只解决了其中一个。
第一个问题是第二列顶部的部分段落被 LaTeX 视为新段落,因此它是缩进的。我通过在 \newpage
之后添加 \noindent
来修复此问题,这样它就不会缩进。
第二个问题是,对于第一列中的部分段落,该段落是合理的(如预期的那样),但最后一行是参差不齐的(没有合理的)。有没有办法强制证明最后一行的合理性? LaTeX 有环境和命令来禁用对齐,但我找不到任何东西来完全对齐段落,包括最后一行。
In the documentation for the IEEEtran LaTeX class, it's mentioned that the two columns on the last page need to be manually adjusted in order to be balanced (have the same length).
I see that \newpage
will allow me to break the first column so the rest of the content is on the second column. This allows for paragraph-level equalization, and looks good, but I'm having trouble with line-level equalization, that is, breaking the column by lines instead of by paragraphs.
When I insert \newpage
in the middle of a paragraph (instead of between paragraphs), LaTeX effectively splits the paragraph in two. The second part goes to the top of the second column (as desired) and the first part remains in the first column. There are two issues I've found with this, and I've only solved one of them.
The first issue is that the partial paragraph on the top of the second column is treated by LaTeX as a new paragraph, so it's indented. I fixed this by adding \noindent
after \newpage
so that it's not indented.
The second issue is that for the partial paragraph in the first column, the paragraph is justified (as expected), but the last line is ragged (no justification). Is there a way to force justification of this last line? LaTeX has environments and commands to disable justification, but I can't find anything to fully justify a paragraph, including the last line.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
两种可能性:
以
\linebreak
结束一行将强制该行对齐,无论它有多空。要执行您想要执行的操作,您可以将
\newpage \noindent
替换为\linebreak \newpage \noindent
。请注意,这将在页面末尾之前创建一个空行,这可能是问题,也可能不是问题。在某些情况下,它可能会在您的页面之间创建一个空白页面。
另一个选项是
\pagebreak
。它告诉 LaTeX 当您到达当前行末尾时开始一个新页面。您无法控制发生分页符的确切单词。Two possibilities:
Ending a line with
\linebreak
will force the line to be justified, no matter how empty it is.To do what you are trying to do you could replace
\newpage \noindent
with\linebreak \newpage \noindent
.Note this will create a blank line before the end of the page, which may or may not be a problem. In certain cases it could create an empty page between your pages.
Another option would be
\pagebreak
. It tells LaTeX to start a new page when you get to the end of the current line. You don't have control of the exact word where the page break occurs.分割如何缩短最后一页(列)
使用并强制 LaTeX 在适当的行之后 ?当然,缩短的量应该通过反复试验来猜测,并在更改文本后重新猜测。 (只是一个想法,可能无法在您的情况下实现。)
What about making the last page (column) shorter using
and maybe forcing LaTeX to split after the appropriate line? Of course the amount of shortening should be guessed by trial and error, and re-guessed after changing the text. (Just an idea, may be impossible to implement in your case.)
(为登陆此处的 Google 用户发帖)
最快的解决方案是
(包文档位于 https://ctan. org/pkg/pbalance?lang=de)
如果这不起作用,可以尝试特殊命令
\IEEEtriggeratref{10}
,它会在引用之前添加一个分栏符10.
.将10
替换为参考文献的实际编号。有关详细信息,请参阅 IEEEtran 文档,“XIV. 最后一页列均衡”部分)。(Posting for the googlers landing here)
The quickest solution is
(Package documentation at https://ctan.org/pkg/pbalance?lang=de)
In case that does not work, one can try the special command
\IEEEtriggeratref{10}
, which adds a column break before reference10
. Replace10
by the actual number of the reference. See the documentation of IEEEtran, section "XIV. Last Page Column Equalization" for more details).您可以调整以下长度以使 LaTeX 填充段落的最后一行。将其放入序言中:
然后在文档中执行以下操作:(
对于将来的 LaTeX 问题,您应该将其发布到 https://tex.stackexchange.com/ )
You can adjust the following lengths to make LaTeX fill the last line of a paragraph. Put this in your preamble:
Then in your document do this:
(For future LaTeX questions you should probable post to https://tex.stackexchange.com/)