我希望在参考文献部分有半英寸的悬挂缩进。也就是说,除了第一行之外,每个条目的后续行都应从左侧 0.5 英寸处开始。
我的 MWE 由三个文件组成:
主文档(文本文件):
\documentclass{report} \usepackage{natbib} \begin{document} \include{chapterOne} \bibliography{referenceList} \bibliographystyle{agsm} \end{document}
章节(tex 文件)
Please assist on this\cite{sorensen2012health}. I can cite this \cite{cipriani2003comparison}
参考文献(bib 文件)
@article{sorensen2012health, author = {S{\o}rensen, Kristine and den Broucke, Stephan and Fullam, James and Doyle, Gerardine and Pelikan, J{\"{u}}rgen and Slonska, Zofia and Brand, Helmut}, journal = {BMC public health}, number = {1}, pages = {80}, publisher = {BioMed Central}, title = {{Health literacy and public health: a systematic review and integration of definitions and models}}, volume = {12}, year = {2012} } @article{cipriani2003comparison, author = {Cipriani, Andrea and Geddes, John}, journal = {Epidemiology and psychiatric sciences}, number = {3}, pages = {146--153}, publisher = {Cambridge University Press}, title = {{Comparison of systematic and narrative reviews: the example of the atypical antipsychotics}}, volume = {12}, year = {2003} }
输出:
生成的列表默认挂起小于 0.5 英寸。我尝试在文档末尾(就在 \end{document} 之前)使用以下建议,但并未产生预期结果。
\setlength{\parindent}{-0.5in}
\setlength{\leftskip}{0.5in}
\setlength{\parskip}{8pt}
\noindent
答案1
该natbib
包提供了长度参数\bibhang
。如果您希望它是半英寸,请发出指令
\setlength\bibhang{0.5in}
在序言中,加载natbib
包之后。
完整的 MWE(请注意,我建议har2nat
也加载包,因为对于参考书目样式,例如agsm
和dcu
,它们是harvard
包的一部分):
\RequirePackage{filecontents}
\begin{filecontents}{referenceList.bib}
@article{sorensen2012health,
author = {S{\o}rensen, Kristine and den Broucke,
Stephan and Fullam, James and Doyle,
Gerardine and Pelikan, J{\"u}rgen
and Slonska, Zofia and Brand, Helmut},
journal = {BMC Public Health},
number = {1},
pages = {80},
publisher= {BioMed Central},
title = {Health literacy and public health: a
systematic review and integration of
definitions and models},
volume = {12},
year = {2012}
}
@article{cipriani2003comparison,
author = {Cipriani, Andrea and Geddes, John},
journal = {Epidemiology and Psychiatric Sciences},
number = {3},
pages = {146--153},
publisher= {Cambridge University Press},
title = {Comparison of systematic and narrative
reviews: the example of the atypical
antipsychotics},
volume = {12},
year = {2003}
}
\end{filecontents}
\documentclass{report}
\usepackage[authoryear,round]{natbib}
\usepackage{har2nat} % <-- new
\setlength\bibhang{0.5in} % <-- new
\bibliographystyle{agsm}
\begin{document}
\citet{sorensen2012health}, \citep{cipriani2003comparison}
\bibliography{referenceList}
\end{document}
答案2
您正在使用该natbib
软件包,请参阅其手册
缩进受natbib
控制\bibhang
,因此
\setlength\bibhang{3cm}
很好用