我目前正在撰写论文,DOI 编号和我喜欢的引用样式存在问题unsrtdin
。
问题是每本带有 DOI 的书都会在书目中产生双重链接。当我使用时,article
我得到一个链接,而 DOI 则单独打印出来。
我也很欣赏这本书的“文章”行为。
我该怎么做才能避免这种情况?这似乎是这种风格的普遍问题。它不依赖于机器、文档或其他任何东西。
这里:https://www.ctan.org/tex-archive/biblio/bibtex/contrib/german/din1505
希望你能帮我!
祝好,迈克
梅威瑟:
\documentclass[
a4paper,
12pt,
]{article}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman,english]{babel}
\usepackage{amsmath}
\usepackage{blindtext}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\bibliography{literatur}
\bibliographystyle{unsrtdin}
\blindtext
\cite{chemie-basiswissen}
\cite{euv-tomie-tin}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
围兜:
@BOOK{chemie-basiswissen,
author = {H. P. Latscha and M. Mutz},
title = {Chemie der Elemente, Chemie-Basiswissen IV},
edition = {},
editor = {},
publisher = {Springer Verlag},
howpublished = {},
organization = {},
year = {2011},
pages = {188-190},
note = {},
isbn = {978-3-642-16914-4},
doi = {10.1007/978-3-642-16915-1}
},
@ARTICLE{euv-tomie-tin,
author = {T. Tomie},
title = {Tin laser-produced plasma as the light source for extreme ultraviolet lithography high-volume manufacturing: history, ideal plasma, present status, and prospects},
journal = {Journal of Micro/Nanolithography, MEMS, and MOEMS},
volume = {11},
organization = {},
year = {2012},
number = {2},
pages = {021109-1-021109-9},
url = {http://stacks.iop.org/0741-3335/46/i=12B/a=047},
issn = {1932-5150},
doi = {10.1117/1.JMM.11.2.021109}
},
我希望至少书籍文章也能有同样的行为。如果不可能或太复杂,我希望书籍只显示一个 DOI 链接。有人能帮我吗?
答案1
提及匿名文件来自此链接,我在函数下发现了类似的URL
&定义。DOI
BOOK
定义book
:
FUNCTION {book}
{ output.bibitem
...
format.doi output
format.url output
...
}
两个format.doi
&format.url
的定义都转化为。 & 的\URL
展开如下:format.doi
format.url
FUNCTION {format.doi}
{ doi empty$
{ "" }
{ new.block "\url{http://dx.doi.org/" doi * "}" * }
if$
}
FUNCTION {format.url}
{ urn missing$
{ doi missing$
{ url empty$
{ "" }
{ type empty$ NOT
{ type #-1 #4 substring$ "mail" =
type #1 #4 substring$ "Mail" =
OR
{ type$ "incollection" =
{ "" }
{ "\,Absenderadresse: \url{" url * "}" * }
if$ }
{ "\url{" url * "}" * }%% evtl. "URL" oder "<...>"
if$ }
{ "\url{" url * "}" * } %% evtl. "URL" oder "<...>"
if$ }
if$ }
{ format.doi }
if$ }
{ "\url{http://nbn-resolving.de/urn/resolver.pl?urn=" urn * "}" *}
if$
}
由于这个原因,您将获得双倍URL
的book
。
希望booklet
类型可以满足您的要求。
修改后的 BIB:
@BOOKLET{chemie-basiswissen,
author = {H. P. Latscha and M. Mutz},
title = {Chemie der Elemente, Chemie-Basiswissen IV},
edition = {},
editor = {},
publisher = {Springer Verlag},
howpublished = {},
organization = {},
year = {2011},
pages = {188-190},
note = {},
isbn = {978-3-642-16914-4},
doi = {10.1007/978-3-642-16915-1}
},
BBL 输出:
\bibitem[2]{chemie-basiswissen}
\textsc{Latscha}, H.~P. ; \textsc{Mutz}, M.:
\newblock \emph{Chemie der Elemente, Chemie-Basiswissen IV}.
\newblock \,Version:\,2011.
\newblock \url{http://dx.doi.org/10.1007/978-3-642-16915-1}. --
\newblock 188--190 S. --
\newblock DOI 10.1007/978--3--642--16915--1.
\newblock ISBN 978--3--642--16914--4
编辑2017年7月14日:
FUNCTION {book}
{ output.bibitem
...
%%format.doi output%%Commented
format.doi.urn output%%Modified to bring the requested DOI for Reference BOOK.
format.url output
...
}
编辑2017年7月17日:
FUNCTION {book}
{ output.bibitem
...
format.url output
format.doi.urn output
...
}
希望这可以帮助。