![将类型 @article 改为类似 @book](https://linux22.com/image/434189/%E5%B0%86%E7%B1%BB%E5%9E%8B%20%40article%20%E6%94%B9%E4%B8%BA%E7%B1%BB%E4%BC%BC%20%40book.png)
我有很多文章,通常我会使用这种@book
字体将它们放在参考文献中,因为我不喜欢这种文章字体的外观。但现在我觉得这样做有点太不妥了。
所以我的问题是,有没有一种简单的方法来调整@article
类型而不是创建自己的类型。
例如,这就是我使用类型时的样子@article
。
@article{Mooney.1940,
author = {Mooney,M.},
title = {A Theory of Large Elastic Deformation},
journal = {Journal of Applied Physics},
volume = {11},
number = {9},
pages = {582-592},
year = {1940},
}
这就是我想要的效果。
正如您所见,它发生了相当大的变化。
我添加了一个最小示例,其中包含我在参考书目中已经更改的设置。
\documentclass[12pt]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{csquotes}
\begin{filecontents}{Literatur.bib}
@article{Mooney.1940,
author = {Mooney,M.},
title = {A Theory of Large Elastic Deformation},
journal = {Journal of Applied Physics},
volume = {11},
number = {9},
pages = {582-592},
year = {1940},
}
\end{filecontents}
\usepackage[backend=biber,bibencoding=utf8,]{biblatex}
\addbibresource{Literatur.bib}
%comma instead of point
\renewcommand*{\newunitpunct}{\addcomma\space}
\usepackage[colorlinks=true]{hyperref}
\begin{document}
Test \cite[S.7]{Mooney.1940}
\printbibliography[title=Literaturverzeichnis]
\end{document}
答案1
这是一种实现此目的的方法biblatex-ext
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{lmodern}
\usepackage{csquotes}
\usepackage[
backend=biber,
style=ext-numeric,
articlein=false,
]{biblatex}
\usepackage[colorlinks=true]{hyperref}
\renewcommand*{\newunitpunct}{\addcomma\space}
\DeclareNameAlias{sortname}{family-given}
\DeclareNameAlias{author}{sortname}
\DeclareNameAlias{editor}{sortname}
\DeclareNameAlias{translator}{sortname}
\DeclareDelimFormat[bib]{nametitledelim}{\addcolon\space}
\DeclareFieldFormat[article]{title}{\mkbibemph{#1}}
\DeclareFieldFormat{journaltitle}{#1}
\renewcommand*{\jourvoldelim}{\addcomma\space}
\renewcommand*{\volnumdelim}{\addcomma\space}
\renewcommand*{\volnumdatedelim}{\addcomma\space}
\DeclareFieldFormat[article,periodical]{volume}{\bibstring{jourvol}~#1}
\DeclareFieldFormat[article,periodical]{number}{\bibstring{number}~#1}
\DeclareFieldFormat{issuedate}{#1}
\renewbibmacro*{journal+issuetitle}{%
\usebibmacro{journal}%
\setunit*{\jourvoldelim}%
\iffieldundef{series}
{}
{\setunit*{\jourserdelim}%
\printfield{series}%
\setunit{\servoldelim}}%
\usebibmacro{volume+number+eid}%
\setunit{\bibpagespunct}%
\printfield{pages}%
\setunit{\volnumdatedelim}%
\usebibmacro{issue+date}%
\setunit{\addcolon\space}%
\usebibmacro{issue}%
\newunit}
\renewbibmacro*{note+pages}{}
\begin{filecontents}{\jobname.bib}
@article{Mooney.1940,
author = {Mooney, M.},
title = {A Theory of Large Elastic Deformation},
journal = {Journal of Applied Physics},
volume = {11},
number = {9},
pages = {582-592},
year = {1940},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite[7]{Mooney.1940}
ipsum \autocite[371]{sigfridsson}
\printbibliography
\end{document}
请注意,您不必(实际上也不应该)在页面(范围)的后记参数中包含“S.”。biblatex
系统会自动添加适当的页面前缀。
您也不需要,bibencoding=utf8,
因为biblatex
可以根据代码中的其余设置(\usepackage[utf8]{inputenc}
)自动推断出这一点。