如何在参考书目部分插入双倍空格?

如何在参考书目部分插入双倍空格?

我正在撰写一篇论文apacite,我确实需要在参考书目部分插入双倍行距,但我无法做到这一点,因为我的文档\onehalfspacing在序言中包含。我该如何更改?

这是我的母亲:

\documentclass[fontsize=12pt,%
               twoside=semi,%
               headings=small,%
               chapterprefix=true,%
               listof=flat]%
{scrbook}
%\onehalfspacing
\usepackage[numberedbib,nosectionbib]{apacite}
\usepackage[utf8]{inputenc}
\usepackage [french]{babel}
\usepackage[T1]{fontenc}

\bibnewpage 
{\raggedright 
\nocite{}
\bibliographystyle{apacite} 
\bibliography{mabiblio}}

\end{document}

答案1

嗯,你给出的代码有一些问题。在接下来的 MWE 中我纠正了它们。

  • 要消除错误消息,只需将命令\onehalfspacing从序言移至文档。
  • 您错过了setspace序言中的呼吁。
  • 我加入了\doublespacing建立书目的小组(见评论)
  • 我添加了一个带有包的 bib 文件filecontents

使用以下 MWE

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
@article{feynman,
  title     = {Very High-Energy Collisions of Hadrons},
  author    = {Richard P. Feynman},
  journal   = {Phys. Rev. Lett.},
  volume    = {23},
  issue     = {24},
  pages     = {1415--1417},
  year      = {1969},
  month     = {Dec},
  doi       = {10.1103/PhysRevLett.23.1415},
  url       = {http://link.aps.org/doi/10.1103/PhysRevLett.23.1415},
  publisher = {American Physical Society},
}
\end{filecontents*}


\documentclass[%
  fontsize=12pt,%
  twoside=semi,%
  headings=small,%
  chapterprefix=true,%
  listof=flat
]{scrbook}

\usepackage[utf8]{inputenc}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}

\usepackage[numberedbib,nosectionbib]{apacite} 

\usepackage{setspace} % <===============================================
\usepackage{blindtext}


\begin{document}
\onehalfspacing % <=====================================================
\blindtext

\bibnewpage 
{%start grouping
  \doublespacing % <====================================================
  \raggedright 
  \nocite{*}
  \bibliographystyle{apacite} 
  \bibliography{\jobname}
}%end grouping

\end{document}

您将获得以下页面。首先是普通文本:

在此处输入图片描述

第二、参考书目:

参考书目

相关内容