我正在尝试在引用列表中实现悬挂缩进,我通过 调用了该列表\fullcite{key1,key2}
。两个引用中的每一个都应该以换行符开头,我通过以下方式实现了\renewcommand\multicitedelim{\adddot\\}
但我无法实现对行缩进的自定义(以便于阅读列出的参考文献,特别是如果像本例中只有两个以上的参考文献)。
我现在的结果如下:
期望结果如下所示:
你看,区别在于列出的参考文献的悬挂缩进。我今天在这里发布这篇文章的原因是我无法任何缩进以与 KOMA 配合使用。我甚至无法通过使用类似这样的方法在每行开头添加空格\renewcommand\multicitedelim{\adddot\\\quad}
。KOMA 中是否有某种东西可以防止篡改缩进?(好吧,当我使用\indent
(即\renewcommand\multicitedelim{\adddot\\\indent}
)时,我确实得到了缩进,但它没有挂起......)
MWE 如下:
% !TEX TS-program = lualatexmk
\documentclass{scrartcl}
%
\usepackage[style=authortitle-comp,backend=biber,abbreviate=false,sorting=none]{biblatex}
\begin{filecontents}{\jobname.bib}
%
@article{bayer:1997,
Author = {Greg Bayer},
Journalsubtitle = {A Journal for Ancient Philosophy and Science},
Journaltitle = {Apeiron},
Number = {2},
Pages = {109--142},
Title = {Coming to Know Principles in \mkbibemph{Posterior Analytics} II 19},
Volume = {30},
Year = {1997}}
@book{bolotin:1998,
Annote = {copied only the first chapter},
Author = {David Bolotin},
Location = {Albany},
Publisher = {State University of New York Press},
Subtitle = {With Particular Attention to the Role of His Manner of Writing},
Title = {An Approach to Aristotle's Physics},
Year = {1998}}
@inproceedings{broadie:2004,
Author = {Sarah Broadie},
Pages = {123--150},
Crossref = {dehaas:mansfeld:2004},
Subtitle = {Distinguishing Alteration -- Substantial Change, Elemental Change, and First Matter in \mkbibemph{GC}},
Title = {\mkbibemph{On Generation and Corruption} I.4}}
@inproceedings{bruschnwig:2004,
Author = {Jacques Brunschwig},
Crossref = {dehaas:mansfeld:2004},
Pages = {25--63},
Subtitle = {A False Start?},
Title = {\mkbibemph{On Generation and Corruption} I.1}}
@proceedings{dehaas:mansfeld:2004,
Editor = {{Frans A.\,J.} {de Haas} and Jaap Mansfeld}, Location = {Oxford},
Publisher = {Oxford University Press},
Title = {Aristotle's \mkbibemph{On Generation and Corruption} I},
Year = {2004}}
\end{filecontents}
\addbibresource{\jobname.bib}
%
\newcommand*{\mything}[3]{\noindent\textbf{#1}\\Texts: \fullcite{#2}.\\Literature: \fullcite{#3}.\\[1em]}
%
\renewcommand\multicitedelim{\adddot\\}
%
\begin{document}
\mything{Title text foo bar}{bayer:1997,bolotin:1998}{broadie:2004,bruschnwig:2004}
\mything{Title text foo bar}{bayer:1997,bolotin:1998,broadie:2004,bruschnwig:2004}{broadie:2004,bruschnwig:2004}
\end{document}
顺便说一句:我考虑过使用biblatex
quick。但我放弃了,因为\mything
我想用上面的命令来构建我的教学文档。最后我会得到大约 12 乘以 2(=24)个参考书目。然后我想如果我直接用命令来做也许会更容易\fullcite
。但是,当然,我也会接受使用参考书目的方法,尤其是因为这也是我的第一个想法。
答案1
那这个呢(修订版):
\newcommand{\mything}[3]{%
\parindent 0pt
\textbf{#1}\par
\renewcommand\multicitedelim{\adddot\par
\parshape=2 2em\dimexpr\hsize - 2em\relax 4em\dimexpr\hsize - 4em\relax}%
\parshape=2
2em\dimexpr\hsize - 2em\relax
4em\dimexpr\hsize - 4em\relax
\hspace*{-2em}% <-- negate \parshape for first paragraph
\fullcite[Texts:][]{#2}.
\par
\parshape=2
2em\dimexpr\hsize - 2em\relax
4em\dimexpr\hsize - 4em\relax
\hspace*{-2em}% <-- negate \parshape for first paragraph
\fullcite[Literature:][]{#3}.
}
在这里,我们保留对\multicitedelim
本地的重新定义,依赖于 的可选参数“prenote” \fullcite
,并使用低级\parshape
命令。MWE:
\documentclass{scrartcl}
\usepackage[style=authortitle-comp, backend=biber, abbreviate=false,sorting=none]{biblatex}
\begin{filecontents}{\jobname.bib}
%
@article{bayer:1997,
Author = {Greg Bayer},
Journalsubtitle = {A Journal for Ancient Philosophy and Science},
Journaltitle = {Apeiron},
Number = {2},
Pages = {109--142},
Title = {Coming to Know Principles in \mkbibemph{Posterior Analytics} II 19},
Volume = {30},
Year = {1997}}
@book{bolotin:1998,
Annote = {copied only the first chapter},
Author = {David Bolotin},
Location = {Albany},
Publisher = {State University of New York Press},
Subtitle = {With Particular Attention to the Role of His Manner of Writing},
Title = {An Approach to Aristotle's Physics},
Year = {1998}}
@inproceedings{broadie:2004,
Author = {Sarah Broadie},
Pages = {123--150},
Crossref = {dehaas:mansfeld:2004},
Subtitle = {Distinguishing Alteration -- Substantial Change, Elemental Change, and First Matter in \mkbibemph{GC}},
Title = {\mkbibemph{On Generation and Corruption} I.4}}
@inproceedings{bruschnwig:2004,
Author = {Jacques Brunschwig},
Crossref = {dehaas:mansfeld:2004},
Pages = {25--63},
Subtitle = {A False Start?},
Title = {\mkbibemph{On Generation and Corruption} I.1}}
@proceedings{dehaas:mansfeld:2004,
Editor = {{Frans A.\,J.} {de Haas} and Jaap Mansfeld}, Location = {Oxford},
Publisher = {Oxford University Press},
Title = {Aristotle's \mkbibemph{On Generation and Corruption} I},
Year = {2004}}
\end{filecontents}
\addbibresource{\jobname.bib}
\newcommand{\mything}[3]{%
\parindent 0pt
\textbf{#1}\par
\renewcommand\multicitedelim{\adddot\par}
\parshape=2
2em\dimexpr\hsize - 2em\relax
4em\dimexpr\hsize - 4em\relax
\fullcite[Texts:][]{#2}.
\par
\parshape=2
2em\dimexpr\hsize - 2em\relax
4em\dimexpr\hsize - 4em\relax
\hspace*{-2em}%
\fullcite[Literature:][]{#3}.
}
\begin{document}
\mything{Title text foo bar}%
{bayer:1997,bolotin:1998}%
{broadie:2004,bruschnwig:2004,bayer:1997,bolotin:1998}
\mything{Title text foo bar}%
{bayer:1997,bolotin:1998}%
{broadie:2004,bruschnwig:2004,bayer:1997,bolotin:1998}
\end{document}