你好,我正在处理一个文档,我不想在参考书目开始前有任何空白。甚至不想要参考书目标题。现在我删除了标题,但仍然有空白。有人能建议我如何摆脱这个空白吗?
这就是我尝试过的。
\documentclass[11pt, twoside]{report}
%All the packages that I needed.
\renewcommand{\bibname}{} %The heading Bibliography gone
\begin{document}
%%%%%%%%%%%%%%%%
%%All text
{{\footnotesize}
\bibliographystyle{plain}
% Style BST file % or add {bmc_article}
\bibliography{compbio2014} }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
基本上,我希望引用在最后一节文本之后以新行开始。但没有分节符。到目前为止,我一直在使用普通文件或 bmc_article bst 文件。任何帮助都将非常有用。谢谢,Mitra。
答案1
您基本上需要重写thebibliography
环境以删除已完成的分段。默认是使用\chapter*
带有报告类的分段。通过重新定义,您最终基本上只是开始一个新段落。
下面的代码演示了:
\documentclass[11pt, twoside]{report}
%All the packages that I needed.
% This is not strictly necessary with the modification given
\renewcommand{\bibname}{} %The heading Bibliography gone
\makeatletter
\renewenvironment{thebibliography}[1]
{%\chapter*{\bibname}% <-- this line was commented to remove any sectioning that occurs
\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
\usepackage{lipsum} % For dummy text
\usepackage{filecontents} % Just for illustration
\begin{filecontents}{\jobname.bib}
@article{paperOne,
author = "Abedon, S. T. and Hyman, P. and Thomas, C.",
year = "2003",
title = "Experimental examination of bacteriophage latent-period evolution as a response to bacterial availability",
journal = "Applied and Environmental Microbiology",
volume = "69",
pages = "7499--7506"
}
@incollection{paperTwo,
author = "Abedon, S. T.",
title = "Lysis and the interaction between free phages and infected cells",
pages = "397--405",
booktitle = "Molecular biology of bacteriophage T4",
editor = "Karam, Jim D. Karam and Drake, John W. and Kreuzer, Kenneth N. and Mosig, Gisela
and Hall, Dwight and Eiserling, Frederick A. and Black, Lindsay W. and Kutter, Elizabeth
and Carlson, Karin and Miller, Eric S. and Spicer, Eleanor",
publisher = "ASM Press, Washington DC",
year = "1994"
}
\end{filecontents}
\begin{document}
%%%%%%%%%%%%%%%%
%%All text
\lipsum[1] % Add some dummy text
\nocite{*} % Cite the references you want to include...
% Call bibliography as normal
{{\footnotesize}
\bibliographystyle{plain}
% Style BST file % or add {bmc_article}
\bibliography{\jobname} }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
这将给出: