I am new to Latex and I used multibib package
and .bib file. Every thing works great except there is no DOI
at the end of entities. All my entities in the bib file have DOI
filed and url
and I use unsrt
and ieeetr
styles in my bibliography subsections. I check this post but including doi package
in Latex with multibib
results in error Option clash for package hyperref. \begin{document}
which I don't understand why? I also came up with the idea of editing biblatex.cfg
by adding doi=true
line to that file it does not work either (I don't know if i did it in correct way). I use x64 edition of MiKTeX 2.9
with BibTex
and TexStudio 2.6.6
. I want something that results in adding DOI to the end of my bib entities in the PDF with hyperlink like \newcommand*{\doi}[1]{\href{http://dx.doi.org/#1}{doi: #1}}
automatically for my doi fields in bib file for unsrt
and ieeetr
styles.
As mentioned in comments I provide a minimal sample of the paper at following:
File: Ref.bib
@article{a1,
author = {Author1},
title = {Title1},
journal = {Journal1},
issn = {xxxx-yyyy},
year = {2013},
volume = {TR},
number = {3},
pages = {52-144},
doi = {10.10.1038/nphys1170},
url = {http://dx.doi.org/10.10.1038/nphys1170}
}
@article{a2,
author = {Author2},
title = {Title2},
journal = {Journal2},
issn = {xxxx-yyyy},
year = {2012},
volume = {k-8},
number = {6},
pages = {12-17},
doi = {10.1002/0470841559.ch1},
url = {http://dx.doi.org/10.1002/0470841559.ch1}
}
@inproceedings{c1,
author = {Author3},
title = {Title3},
booktitle = {proceedings1},
year = {2012},
pages = {578-584},
numpages = {3},
doi = {10.1594/PANGAEA.726855},
url = {http://dx.doi.org/10.1594/PANGAEA.726855}
}
File: test.tex
\documentclass[]{article}
\title{Title Here}
\author{Name Here}
\usepackage{multibib}
\newcites{Articles,Proceedings}{{Journal Papers},{Conference Papers}}
\begin{document}
\maketitle
\begin{abstract}
This is the minimal abstract ever.
\end{abstract}
\section{Introduction}
Introduction here.
\section{References}
\nociteArticles{a1,a2}
\bibliographystyleArticles{unsrt}
\bibliographyArticles{Ref}
\nociteProceedings{c1}
\bibliographystyleProceedings{ieeetr}
\bibliographyProceedings{Ref}
\end{document}
I hope this could help.
Thanks and regards.
\documentclass{...}
and ending with\end{document}
.doi
isn't supported. An explanation is given here: tex.stackexchange.com/questions/36248/… -- Because you are starting with, you should switch tobiblatex
, which makes your live easier.unsrturl
instead ofunsrt
. However I couldn't find any replacement forieeetr
to support DOI. By the way, could you provide me equivalent code for the above tex so that I could switch to BibLaTex. I found that I should include\usepackage[backend=bibtex,style=numeric,sorting=none]{biblatex}
in my tex but I don't know how to use it likemultibib