biblatex
我需要在所有标题(书籍标题除外)周围加上德文引号(“,,text”) 。
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{darwin,
Author = {Charles Darwin},
Publisher = {Cambridge University Press},
Title = {The Correspondence of Charles Darwin, 1821-1836},
Year = {1985}}
@Electronic{wade,
title = {Darwin, Ahead of His Time, Is Still Influential},
author = {Nicholas Wade},
date = {2009-02-09}
url = {https://www.nytimes.com/2009/02/10/science/10evolution.html?ref=sciencespecial2},
urldate = {2018-10-08}
}
\end{filecontents*}
\documentclass{article}
\usepackage[style=verbose]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
Bla Bla Bla Bla Bla Bla \autocite{darwin} \autocite{wade}
\printbibliography
\end{document}
我只发现了有关标题内引号的问题。但是,我需要标题外的引号。我该怎么做?
答案1
biblatex
正如我在评论中所解释的那样,在为某些条目类型格式化s 的方式上有某种方法title
:独立作品的标题(@book
s、@collection
s、整个期刊,...;基本上是您在图书馆中漫步时可以在书脊或封面上阅读的任何内容)用斜体表示,而仅构成整体一部分的依赖作品(@inbook
、@incollection
、@article
、...;这些主要是您只有打开书籍或卷并查阅目录时才能找到的标题)的标题用引号格式化。
您可以在以下位置找到默认设置的解释从样式中删除引号. 你可能想尝试
\DeclareFieldFormat[online]{title}{\mkbibquote{#1\isdot}}
如果你真的想要仅有的书名用斜体,其余用引号,你可以尝试
\DeclareFieldFormat*{title}{\mkbibquote{#1\isdot}}
\DeclareFieldFormat[book]{title}{\mkbibemph{#1\isdot}}
babel
对于德语风格的引号,加载并作为加载选项传递ngerman
,然后加载与语言相关的引号就足够了csquotes
。当然,这是假设文档的其余部分是德语的,但我认为如果您正在寻找德语引号,这是一个合理的假设。
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{darwin,
author = {Charles Darwin},
publisher = {Cambridge University Press},
title = {The Correspondence of Charles Darwin, 1821--1836},
year = {1985},
}
@electronic{wade,
title = {Darwin, Ahead of His Time, Is Still Influential},
author = {Nicholas Wade},
date = {2009-02-09},
url = {https://www.nytimes.com/2009/02/10/science/10evolution.html},
urldate = {2018-10-08},
}
\end{filecontents*}
\documentclass[ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=verbose]{biblatex}
\DeclareFieldFormat[online]{title}{\mkbibquote{#1\isdot}}
\addbibresource{\jobname.bib}
\begin{document}
Lorem \autocite{darwin} ipsum \autocite{wade}
\printbibliography
\end{document}