(190816,2249 CET,根据“门施“)
190818,1332 CET,有关错误消息的更新articlein
大家好,
我试图使我的参考书目看起来像:
但目前我陷入了如下困境:
所以,我特别想知道我如何
- 删除“volume”后面的“。”
- 删除 pages 前的“,”
除此之外,我认为我已经让它看起来“应该”了。
我在下面附上我的代码:
\documentclass[english,final,twocolumn]{article}
\usepackage[utf8]{inputenc}%(only for the pdftex engine)
\usepackage[big]{dgruyter}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage[capitalize]{cleveref}
\usepackage[format=hang,singlelinecheck=0,font={sf,small},labelfont=bf]{subfig}
%% format=hang, bra veta om
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\usepackage[export]{adjustbox}
\usepackage{float}
\usepackage{textgreek}
\usepackage{multirow}
\usepackage{csquotes}
\usepackage[style=authoryear,%ext-authoryear,%authoryear,%nature,%bwl- FU,%authoryear,
citestyle=authoryear,
natbib=true,
hyperref=true,
url=false,
doi=false,
isbn=false,
sorting=nyt,
%bibstyle=authoryear,
giveninits=true,
maxcitenames=2,
uniquelist=false, % denna som gör att man får a) och b) i stället för fler efternamn
maxbibnames=99,
uniquename=false,
dashed=false,
articlein=false,
url=false,
doi=false,
isbn=false,
dashed=false,
backend=biber]{biblatex}
%\setlength\bibhang{2pt} % default value: \parindent
\DeclareFieldFormat*{title}{#1}
%\DeclareFieldFormat*{year}{#1}
\renewcommand{\labelnamepunct}{\addspace}
\DeclareFieldFormat{journaltitle}{#1}
%
\renewbibmacro{in:}{%
\ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}
%
% removes pagination (p./pp.) before page numbers
\DeclareFieldFormat{pages}{:#1}
%
\DeclareNameAlias{sortname}{last-first}
%
\DeclareFieldFormat*{volume}{#1}
\DeclareFieldFormat*{number}{(#1)}
\addbibresource{mojiref.bib}
\begin{document}
\articletype{}
\maketitle
There is one method, attributed to \citep{wilhelmy1863ueber} that is very simple to use and provides accurate, consistent, and reproducible data especially for rough, heterogeneous, and hygroscopic materials such as wood \citep{lander1993systematic}.
\printbibliography%[env=bibnumeric]
% ovanstående gör att man får radindraget borttaget. Inte bra här och nu,
\end{document}
以下是两个参考资料:
@article{lander1993systematic,
title={A systematic comparison of contact angle methods},
author={Lander, Lorraine M and Siewierski, Lisa M and Brittain, William J and Vogler, Erwin A},
journal={Langmuir},
volume={9},
number={8},
pages={2237--2239},
year={1993},
publisher={ACS Publications}
}
@article{wilhelmy1863ueber,
title={Ueber die Abh{\"a}ngigkeit der Capillarit{\"a}ts-Constanten des Alkohols von Substanz und Gestalt des benetzten festen K{\"o}rpers},
author={Wilhelmy, Ludwig},
journal={Ann. Phys.},%{Annalen der Physik},
volume={195},
number={6},
pages={177--217},
year={1863},
publisher={Wiley Online Library}
}
我希望这是有意义的,并且有人能够帮助我解决这个问题。
添加 190818:
articlein=false
从建议中添加莫威导致 Overleaf 中出现此错误消息。
/拉尔斯
答案1
如果您正在准备向期刊提交稿件,请仔细检查他们是否可以接受biblatex
稿件。与 BibTeX 相比,biblatex
出版商的工作流程截然不同,他们的工具可能无法满足biblatex
要求。此外,出版商通常不会运行最新的 LaTeX 系统,这意味着版本不兼容的风险非常大。请参阅Biblatex:向期刊投稿。
无论如何,如果您想继续,biblatex
尽管有这些警告(例如因为出版商只想要 PDF)或者您只想模仿期刊的风格,那么这应该可以帮助您开始。
MWE 使用biblatex-ext
'sext-authoryear
作为基础,因为它有一些更简单的工具可用于处理volume
和number
字段之间的标点符号。代码也已更新,以在其他地方使用侵入性较小的方法。一般来说,字段格式不应包含前导或尾随标点符号(如\DeclareFieldFormat{pages}{:#1}
)
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=ext-authoryear,
giveninits=true, uniquename=false,
maxcitenames=2, maxbibnames=99,
articlein=false,
url=false, doi=false, isbn=false, dashed=false,
]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\DeclareDelimAlias{finalnamedelim}{multinamedelim}
\DeclareDelimFormat[bib]{nameyeardelim}{\addspace}
\DeclareDelimFormat[bib]{nametitledelim}{\addspace}
\DeclareFieldFormat*{title}{#1}
\DeclareFieldFormat*{citetitle}{#1}
\DeclareFieldFormat{booktitle}{#1}
\DeclareFieldFormat{issuetitle}{#1}
\DeclareFieldFormat{journaltitle}{#1\isdot}
\DeclareFieldFormat{maintitle}{#1}
\renewcommand*{\volnumdelim}{}
\DeclareFieldFormat[article,periodical]{number}{\mkbibparens{#1}}
\renewcommand*{\bibpagespunct}{%
\ifentrytype{article}
{\addcolon}
{\addcomma}%
\space}
\DeclareFieldFormat[article]{pages}{#1}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{lande,
author = {Stig Lande and Mats Westin and Marc Schneider},
title = {Properties of Furfurylated Wood},
journal = {Scandinavian Journal of Forest Research},
volume = {19},
number = {suppl~5},
pages = {22-30},
year = {2004},
doi = {10.1080/0282758041001915},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson,lande}
\printbibliography
\end{document}