[Tex/LaTex] Cite a book with unsrtdin style leads to double DOI in bib

bibliographiesbibtexcitingcross-referencing

I'm currently writing my thesis and there is a problem with DOI numbers and my preferred citation style unsrtdin.

The problem is that every book with DOI leads to a double link in the bib.
When I use articleI get one link and the DOI separately printed.

I would appreciate this "article" behavior for book as well.

What can I do to avoid this? It seems to be general problem with this style. It is not depending on the machine, document or what ever.

Here: https://www.ctan.org/tex-archive/biblio/bibtex/contrib/german/din1505

Hope, you can help me!

Wishes,
Mike

MWE:

\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}

The bib:

@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}
},

What I mean with "double links to DOI database" I mean the following shown in the pictures.
DOI link and DOI number separately shown
DOI link is shown twice

I would appreciate at least the same behavior we get for articles for books as well. If not possible or to complicated, I would appreciate only the one DOI link shown for books. Can anybody help me?

Best Answer

Upon referring unsrtdin.bst file from this link, I found the similar kind of definition for URL & DOI under function BOOK.

Definition for book:

FUNCTION {book}
{ output.bibitem
  ...
  format.doi output
  format.url output
  ...
}

Both format.doi & format.url's definition are transform into \URL. Expansion for format.doi & format.url in below:

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$
}

Due to this reason, you are getting the double URL for book.

Hope booklet type can fulfil your requirement.

Modified 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 Output:

\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

EDIT on July 14, 2017:

FUNCTION {book}
{ output.bibitem
...
  %%format.doi output%%Commented
  format.doi.urn output%%Modified to bring the requested DOI for Reference BOOK.
  format.url output
...
}

EDIT on July 17, 2017:

FUNCTION {book}
{ output.bibitem
  ...
  format.url output
  format.doi.urn output
  ...
}

Hope this helps.

Related Question