如何在参考文献部分设置“parindent”?

如何在参考文献部分设置“parindent”?

有人能帮帮我吗?我希望我的参考文献符合以下文章标准:

\textbf{References}

{\leftskip=2em\parindent=-2em

Anderson, C. A., Gentile, D. A., {\&} Buckley, K. E. (2007).
\emph{Violent video game effects on children and adolescents:
Theory, research and public policy.}
https://doi.org/10.1093/acprof:oso/9780195309836.001.0001

}

在此处输入图片描述

但我不知道如何通过我的序言来设置它

\usepackage{csquotes}
\usepackage[backend=biber,style=apa]{biblatex}

.....

\addbiresource{myfile.bib}

.....

@Article{siraj,
author = {{Siraj-ul-Islam} and I. Aziz and B. Sarler},
title = {The numerical solution of second-order boundary-value problems by collocation method with the Haar wavelets},
journal = {Mathematical and Computer Modelling},
year = {2010},
volume = {52},
pages = {1577-1590},
doi = {10.1016/j.mcm.2010.06.023}
}

参考文献中的结果不符合第二行所要求的缩进。

这是全部代码


\documentclass[twoside,10.5pt]{article}%                        *
\usepackage{mathrsfs}%                                          *
\usepackage{pifont}%                                            *
\usepackage{amsmath}%                                           *
\usepackage{amsthm}%                                            *
\usepackage{txfonts}%                                           *
 \usepackage{geometry}%                                         *
\usepackage{latexsym}%                                          *
\usepackage{amssymb}%                                           *
\usepackage{graphicx}%                                          *
\usepackage{geometry}%                                          *
\usepackage{enumitem}%
\usepackage{ifthen}%                                            *
\usepackage{fancyhdr}%                                          *
\usepackage{afterpage}%                                         *
\usepackage[table]{xcolor}%                                            *
\setlength{\parindent}{0pt} \setlength{\parskip}{5pt}%          *
\renewcommand{\baselinestretch}{1.0}%                           *
\usepackage{ifthen}%                                            *
\geometry{paperheight=28.5cm,paperwidth=21cm,top=2.5cm,%        *
bottom=2cm,left=2cm,right=2cm,headsep=0.4cm,headheight=1.5cm,%  *
footskip=1.1cm}%                                                *
%%***************************************************************
\usepackage{titlesec}%                                          *
\titleformat{\section}{\bfseries}{\thesection.}{0.3em}{}%       *
\titlespacing{\section}{0pt}{0pt}{0pt}%                         *
\titleformat{\subsection}{\itshape}{\thesubsection}{0.3em}{}%   *
\titlespacing{\subsection}{0pt}{0pt}{0pt}%                      *
\titleformat{\subsubsection}{\rmfamily}%                        *
{\thesubsubsection}{0.3em}{}%                                   *
\titlespacing{\subsubsection}{0pt}{0pt}{0pt}%                   *
%%***************************************************************

\usepackage{csquotes}
\usepackage[backend=biber,style=apa]{biblatex}
\usepackage{multirow}
\NewExpandableDocumentCommand\mcc{O{1}m}
    {\multicolumn{#1}{c}{#2}}
\usepackage{tikz}
\newcommand{\bfx}{{\bf x}}
\def\ds{\displaystyle}
\DeclareMathOperator{\rand}{rand}

\addbibresource{biblio.bib}

\begin{document}
 bla bla bla .....

\printbibliography 

\end{document}

参考是像这样手动设置的

\textbf{References}

{\leftskip=2em\parindent=-2em
....
}

但由于我有一个巨大的.bib 文件,我可以轻松地将其自动替换为在任何地方引用任何文章。

答案1

在作者年份之类的参考书目样式中,条目后续行的缩进由 控制\bibhang。看起来您想将该长度设置为2em

条目之间的间距由 控制\bibitemsep。根据屏幕截图判断,您可能还想将其从其(作者年份)默认值 增加0pt

\documentclass[twoside,10.5pt]{article}
\setlength{\parindent}{0pt}
\setlength{\parskip}{5pt}
\renewcommand{\baselinestretch}{1.0}

\usepackage{csquotes}
\usepackage[backend=biber,style=apa]{biblatex}

\setlength{\bibhang}{2em}
\setlength{\bibitemsep}{\itemsep}

\addbibresource{biblatex-examples.bib}

\begin{document}
Lorem \autocite{sigfridsson,worman,geer,nussbaum}

\printbibliography
\end{document}

缩进并分隔参考书目。

相关内容