在参考书目中使用 paralist

在参考书目中使用 paralist

使用:

compactbiblio.tex

\documentclass{article}
\usepackage{paralist,lipsum}
\begin{document}
\begin{compactenum}
\item Lorem ipsum dolor sit amet\cite{Master14}.
\item Nam dui ligula\cite{Lord14}.
\end{compactenum}

\bibliographystyle{plain}
\bibliography{compactbiblio}
\end{document}

compactbiblio.bib

@Article{Master14,
  author = "J. Master",
  title = "Compaction of enumerations",
  journal = "The basis for tree saving",
  year = "2014"
}

@Article{Lord14,
  author = "K. Lord",
  title = "Streamlining in typesetting",
  journal = "Patterns before substance",
  year = "2014"
}

并运行四轮车

pdflatex compactbiblio
bibtex compactbiblio
pdflatex compactbiblio
pdflatex compactbiblio

我们获得

大型书目项目间距

如何在不手动调整\baselinestretch等的情况下在 compactenum 和参考书目中获得相同的 iter-item 间距?

使用 enumitem 代替 paralist 也不错。

答案1

您可以重新定义thebibliography环境以具有\parskip\itemsep等于,0pt从而得到一个“紧凑”列表:

\let\oldthebibliography\thebibliography
\renewcommand\thebibliography[1]{%
  \oldthebibliography{#1}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt}
}

梅威瑟:

\documentclass{article}

\usepackage{paralist}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{auth00a,
  author = {Author, A},
  journal = {Journal A},
  title = {MyBook A},
  year = {2000}
}
@article{auth00b,
  author = {Author, B},
  journal = {Journal B},
  title = {MyBook B},
  year = {2000}
}
\end{filecontents*}

\let\oldthebibliography\thebibliography
\renewcommand\thebibliography[1]{%
  \oldthebibliography{#1}
  \setlength{\parskip}{0pt}
  \setlength{\itemsep}{0pt}
}

\begin{document}
\section{first section}
\begin{compactitem}
  \item first
  \item second
\end{compactitem}
\nocite{*}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document} 

输出:

在此处输入图片描述

相关内容