如果\usepackage[T1]{fontenc}
使用并parskip=half
设置:
否则(\usepackage[T1]{fontenc}
未使用或未parskip=half
设置):
我认为第二种是正确的风格。为什么使用 会出现问题parskip
?更重要的是,为什么 会对fontenc
这里产生影响?
\documentclass[
parskip=half
]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{lmodern}
\usepackage[style=authoryear]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{biblatextest.bib}
@misc{A01,
author = {Author, A. and Buthor, B.},
year = {2001},
title = {Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha },
}
@misc{A02,
author = {Authora, A. and Buthora, B.},
year = {2002},
title = {Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta },
}
\end{filecontents}
\addbibresource{biblatextest.bib}
\begin{document}
Some text \cite{A01}. More... \cite{A02}.
\printbibliography
\end{document}
答案1
使用 时biblatex
,参考书目的悬挂缩进由长度控制,该长度在加载时\bibhang
初始化为 的值。原则上,类选项设置为 0pt,因此 也变为 0pt。补救措施是在加载后设置选项(使用)或手动设置为合适的值。\parindent
biblatex
parskip=half
\parindent
\bibhang
parskip=half
biblatex
\KOMAoptions
\bibhang
为什么fontenc
重要?实际上,选项的设置只有在发出parskip
后才会生效。如果没有,在文档主体开头隐式发出将调用,但具有自己的调用。\selectfont
fontenc
\normalsize
\selectfont
fontenc
\selectfont
答案2
我不完全知道为什么会发生这种情况,但我有一个解决方法:
使用\KOMAoption{parskip}{half}
而不是类选项parskip=half
,它对我来说有效(MiKTeX 2.9)。
使用以下内容进行测试,稍微改变了 MWE:
%http://tex.stackexchange.com/questions/76029/why-doesnt-parskip-half-work-together-with-fontenc-in-bibliographies
\documentclass[%
paper=a4
%,parskip=half
]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{lmodern}
\usepackage[style=authoryear,natbib]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A. and Buthor, B.},
year = {2001},
title = {Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha Alpha },
}
@misc{A02,
author = {Authora, A. and Buthora, B.},
year = {2002},
title = {Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta },
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\KOMAoption{parskip}{half}
%\KOMAoptions{parskip=half}
Some text \cite{A01}. More... \cite{A02}. More text. More text. More text. More text. More text.
More text. More text. More text. More text. More text. More text. More text. More text. More text.
More text. More text. More text. More text. More text. More text. More text. More text. More text.
More text. More text. More text. More text. More text. More text. More text. More text. More text.
More text. More text. More text. More text. More text. More text. More text. More text. More text.
\printbibliography
\end{document}