
С использованием:
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
Мы получаем
Как можно получить одинаковый интервал между элементами в Compactenum и в библиографии без ручной настройки \baselinestretch
и т. д.?
Использование 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}
Выход: