使用 flushend 时参考书目条目之间的间距不均匀

使用 flushend 时参考书目条目之间的间距不均匀

我遇到了参考书目条目间距不均匀的问题。如所附屏幕截图所示,条目 4 和 5 之间的间距比其他间距小得多。这导致布局非常不平衡。

如果我删除左列(或更早的)文本,将参考部分推到左列开始,问题就会消失。如果我增加其中一个参考中的文本,问题也会消失。

我使用这个flushend包让最后一列的长度相等。不均匀的空间出现在列分隔符所在的空间,如果没有flushend使用的话(感谢评论中的 David 指出了这一点)。

我该如何在不编辑文本的情况下修复此问题?

最小工作示例

\documentclass[DIV=calc, paper=a4, fontsize=11pt, twocolumn]{scrartcl}

\usepackage[utf8]{inputenc}
\usepackage[round]{natbib}
\usepackage{csquotes}
\usepackage[format=plain,small,labelfont=bf,up,textfont=it,up]{caption} % Custom captions under/above floats

\usepackage{flushend}

% Package for typesetting URL:s
\usepackage[hyphens]{url}
\urlstyle{same}

\usepackage[english]{babel}

\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}

%%% Begin document
\begin{document}

\section*{Conclusion}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean et congue velit \citep{WHO2004}. Fusce eget lacus at ipsum vestibulum semper in eleifend eros \citep{wilson2013}. Pellentesque metus velit, placerat vel aliquam quis, mattis varius nisi. \citet{sarmah2006} Sed interdum neque dui, quis rhoncus est iaculis sit amet. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; \citet{Andersson2012} Phasellus malesuada felis enim, non adipiscing urna placerat et. Ut venenatis \citep{hughes2011} pretium est eu tempus. Maecenas ornare magna imperdiet viverra commodo. Sed posuere mattis nisl, in interdum ligula \citet{butler2013}.

Donec augue quam, tincidunt at pharetra eu, venenatis eu metus. Nam aliquet imperdiet dolor, ac sollicitudin quam elementum sit amet. In hac habitasse platea dictumst. Nunc vulputate, magna vitae adipiscing interdum, orci velit pellentesque neque, non accumsan purus nunc vel velit. Nulla consectetur, dui sit amet fermentum consectetur.

Donec in euismod massa. Mauris sit amet condimentum magna. Donec dolor dui, consequat in ligula nec, consequat egestas justo. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla ac suscipit sapien, id euismod sem. Sed varius pharetra libero.

\raggedright
\small
\bibliographystyle{plainnat}
\bibliography{ref-antibiotics}

\end{document}

参考书目

@article{Butler2013,
author = {Butler, Mark S and Blaskovich, Mark A and Cooper, Matthew A},
doi = {10.1038/ja.2013.86},
issn = {0021-8820},
journal = {The Journal of antibiotics},
month = oct,
number = {10},
pages = {571--91},
pmid = {24002361},
publisher = {Japan Antibiotics Research Association},
shorttitle = {J Antibiot},
title = {{Antibiotics in the clinical pipeline in 2013.}},
volume = {66},
year = {2013}
}

@article{WHO2004,
author = {{World Health Organisation}},
file = {:Users/per/Dropbox/University/Molecular and Cellular Aspects of HIV Infection/Essay/Reports/GBD\_report\_2004update\_full.pdf:pdf},
journal = {The global burden of disease 2004},
year = {2004},
note = {\url{[http://www.who.int/healthinfo/global_burden_disease/GBD_report_2004update_full.pdf]}}
}

@article{Hughes2011,
author = {Hughes, James M},
doi = {10.1001/jama.2011.279},
file = {:Users/per/Dropbox/University/Biotechnology 3/Essay/Papers/Hughes - 2011 - Preserving the lifesaving power of antimicrobial agents.pdf:pdf},
issn = {1538-3598},
journal = {JAMA : the journal of the American Medical Association},
month = mar,
number = {10},
pages = {1027--8},
pmid = {21343545},
publisher = {American Medical Association},
title = {{Preserving the lifesaving power of antimicrobial agents.}},
volume = {305},
year = {2011}
}

@article{Wilson2013,
author = {Wilson, Daniel N},
doi = {10.1038/nrmicro3155},
file = {:Users/per/Dropbox/University/Biotechnology 3/Essay/Papers/Wilson - 2014 - Ribosome-targeting antibiotics and mechanisms of bacterial resistance.pdf:pdf},
issn = {1740-1534},
journal = {Nature reviews. Microbiology},
month = dec,
number = {1},
pages = {35--48},
pmid = {24336183},
publisher = {Nature Publishing Group, a division of Macmillan Publishers Limited. All Rights Reserved.},
shorttitle = {Nat Rev Micro},
title = {{Ribosome-targeting antibiotics and mechanisms of bacterial resistance.}},
volume = {12},
year = {2013}
}

@article{Sarmah2006,
author = {Sarmah, Ajit K and Meyer, Michael T and Boxall, Alistair B A},
doi = {10.1016/j.chemosphere.2006.03.026},
issn = {0045-6535},
journal = {Chemosphere},
month = oct,
number = {5},
pages = {725--59},
pmid = {16677683},
title = {{A global perspective on the use, sales, exposure pathways, occurrence, fate and effects of veterinary antibiotics (VAs) in the environment.}},
volume = {65},
year = {2006}
}

@article{Andersson2012,
author = {Andersson, Dan I and Hughes, Diarmaid},
doi = {10.1016/j.drup.2012.03.005},
file = {:Users/per/Dropbox/University/Biotechnology 3/Essay/Papers/Andersson, Hughes - 2012 - Evolution of antibiotic resistance at non-lethal drug concentrations.pdf:pdf},
issn = {1532-2084},
journal = {Drug resistance updates : reviews and commentaries in antimicrobial and anticancer chemotherapy},
month = jun,
number = {3},
pages = {162--72},
pmid = {22516308},
title = {{Evolution of antibiotic resistance at non-lethal drug concentrations.}},
volume = {15},
year = {2012}
}

最后一页的右栏中有不一致的参考书目段落。

答案1

背景和说明

问题确实出在flushend包中。这会使最后一列的长度相等,这对某些人来说是有利的。当一列达到其完整长度而没有flushend插入列分隔符并删除任何空格时。

如果这个断点发生在两个段落之间,而不是一个段落的中间,那么它会删除这两个段落之间的空格。当flushend它施展魔法时,它无法解释这种情况,结果是两个段落之间没有空格。

联系了软件包的作者后flushend,我得到了以下答复和建议的解决方案。简而言之,这个“错误”是由于事件的顺序造成的。解决方案是找到分栏符并添加手动空格以匹配其他段落之间的段落间距。

您是否尝试过类似以下操作:\atColsBreak{\vskip5pt}靠近文档末尾?在当前软件包的实现中,这更像是一个功能,而不是一个错误。在列分隔符处,该位置的所有 glue/kern 元素在页面格式化(leftcolumn生成器)期间都会丢失。在文档末尾获取已删除的跳过内容为时已晚。

问候,Sigitas Tolusis

解决方案

在文档末尾附近添加以下内容,并更改大小直到其与段落之间的其他空格相匹配。

\atColsBreak{\vskip5pt}

答案2

\begingroup
\raggedright
\small
\def\addvspace#1{\vspace{4pt}}
\bibliographystyle{plainnat}
\bibliography{ref-antibiotics}
\endgroup 

我得到:

在此处输入图片描述

相关内容