108 votes
Accepted

How to remove conference information from the ACM 2017 SIGCONF template?

Add the following lines below the \documentclass line. \settopmatter{printacmref=false} % Removes citation information below abstract \renewcommand\footnotetextcopyrightpermission[1]{} % removes ...
gernot's user avatar
  • 49.6k
76 votes

Missing $ inserted issue

\usepackage[strings]{underscore}
Roly's user avatar
  • 4,221
21 votes

Automatically adding DOI fields to a hand-made bibliography

I followed user13348's suggestion, and using his request function, I wrote a python3 script that takes a bib file and outputs a new bibfile with the DOIs it finds. I'm not using bibtool or taking any ...
SachaB's user avatar
  • 311
17 votes

Print url only if doi not present

Your MWE uses BibTeX, but if you are willing to switch to Biber (you really should look into it, Biber offers more features and BibTeX is officially considered a legacy backend now), you can use Biber'...
moewe's user avatar
  • 176k
13 votes

Automatically dereference DOI to .bib?

There's also doi-to-bibtex from betterbib (a pet project of mine), betterbib doi-to-bibtex 10.1038/nrd842 @article{atkins2002, author = {Atkins, Joshua H. and Gershell, Leland J.}, doi = {10.1038/...
Nico Schlömer's user avatar
12 votes
Accepted

Print url only if doi not present

To conditionally print the URL you could use the following: \documentclass{article} \usepackage[backend=bibtex, style=authoryear-comp, natbib=true,url=false]{biblatex} %for digital version \...
samcarter_is_at_topanswers.xyz's user avatar
11 votes
Accepted

DOI in reference

You need to (a) change the label of the doi field to note and (b) encase the doi string in a \url{...} directive. (The IEEEtran document class loads the url package automatically.) A full MWE: \...
Mico's user avatar
  • 507k
10 votes

tikzposter and doi package conflict?

Looks like a hyperref or tikz bug (not fully tracked it down) but you can do this: \documentclass{tikzposter} \usepackage{doi} \def\HyperFirstAtBeginDocument#1{#1} \begin{document} \end{document} ...
David Carlisle's user avatar
10 votes
Accepted

Biblatex: redefine doi to display the full URL

Add the following to your preamble after loading biblatex: \DeclareFieldFormat{doi}{% \mkbibacro{DOI}\addcolon\space \ifhyperref {\href{https://doi.org/#1}{\nolinkurl{https://doi.org/#1}}} ...
Alan Munn's user avatar
  • 218k
9 votes
Accepted

Formatting only the DOI using biblatex

You could adjust the doi+eprint+url macro: \documentclass[a4paper]{article} \usepackage{libertine} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{filecontents} \begin{...
samcarter_is_at_topanswers.xyz's user avatar
8 votes
Accepted

Bibliography style elsarticle-num-names with DOI and hyperlinks but no explicit url

This problem occurs because elsarticle does not define a \doi macro that hyperref requires. Hyperref calls \doi{\bibinfo{doi}{XXX}} to produce the URL for the DOI in the reference XXX. If the \doi ...
Jaime's user avatar
  • 646
8 votes

Citation with DOI that has underscore breaks functionality in BibDesk

There is a nice solution to similar issue by Roly in Missing $ inserted issue, who recommends to use \usepackage[strings]{underscore}. The package arranges that, while in text, ‘_’ itself behaves as \...
Peter Mukhachev's user avatar
8 votes

Including DOI field in bibliography while using multibib package

As @MarcoDaniel has already pointed out in a comment, the bibliography styles unsrt and ieeetr are both quite ancient. In fact, neither bib style has been updated materially since about 1986, i.e., ...
Mico's user avatar
  • 507k
8 votes

Biblatex: redefine doi to display the full URL

Use \DeclareFieldFormat{doi}{\mkbibacro{DOI}\addcolon\space\url{https://doi.org/#1}}
moewe's user avatar
  • 176k
8 votes

When using splncs.bst style from Springer lncs template, Bibtex does not compile well doi fields that contains "_"

(I've updated this answer to reflect the fact that Springer has recently updated the llncs document class to version 2.21. The upshot is that it's no longer necessary to define a replacement for the \...
Mico's user avatar
  • 507k
8 votes
Accepted

Underscore in Doi in bibtex file

The llncs class defines a very rudimentary \doi command that cannot deal with special characters. We can define our own slightly more robust version of \doi by going back to url's \url command. Since ...
moewe's user avatar
  • 176k
7 votes
Accepted

biblatex: Hyperlink entire bib entry to DOI, URL or ISBN if available

Here is one solution that tries to link the entire entry (minus the label). string+doiurl is a simplified version of lockstep's string+doiurlisbn from biblatex: make title hyperlink to DOIs, URL or ...
moewe's user avatar
  • 176k
7 votes
Accepted

Why does this DOI end up on a new line when there is lots and lots of room left?

You ran into this problem: https://tex.stackexchange.com/a/523832/2388. There is a hyphenation in the line before and TeX tries to avoid that such hyphenations in the last line and so produce one line ...
Ulrike Fischer's user avatar
6 votes

Omitting fields in Bibliography

You should use biblatex with this in your preamble (remove \bibliographystyle{plainnat}) \usepackage[style=authoryear-comp,firstinits=true,citestyle=authoryear,natbib=true,backend=bibtex]{biblatex} \...
Fredrik Erlandsson's user avatar
6 votes

Automatically adding DOI fields to a hand-made bibliography

Building on the work of XaraB, here is a working implementation that uses the crossref API to get JSON objects directly. It also has some basic error handling and some retry logic to work around a ...
Matthew Lawson's user avatar
6 votes

How to get DOI links in bibliography

Just adding my piece, I have myself revised the .bst style I wanted (apalike) to include ISBN, ISSN, DOI, and URL. I did not find any "apalikeurl" version so far, so I did it myself. It builds links ...
Matthieu Vergne's user avatar
5 votes

Redundancy in bib file: conditionally suppress url if same as doi?

When using BibLaTeX, this can be very easily done on the data level, without fuddling with output templates or even changing the .bib file. Just use the \iffieldundef{field name}{undefined case}{...
Marian's user avatar
  • 311
5 votes
Accepted

Suppress URL if DOI is present in biblatex-chicago

Unless I misunderstand the question, wouldn't adding the option \usepackage[doi=only]{biblatex-chicago} or \usepackage[url=false]{biblatex-chicago} work (the latter would suppress all URLs)? See 4....
zoned post meridiem's user avatar
5 votes
Accepted

Why does hyperref break natbib?

This seems to work, making \bibinfo work by expansion. \documentclass{elsarticle} \usepackage{filecontents} \begin{filecontents}{mwe.bib} @article{Ashburner2005, author = {Ashburner, John and ...
David Carlisle's user avatar
5 votes

doi hyperlinks show up as "doi:doi" in my references

There are several ways to deal with this. Tell the doi package to drop its "doi:" prefix, which is saved in \doitext. \documentclass[british]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{...
moewe's user avatar
  • 176k
5 votes
Accepted

biber+biblatex+biblatex-chem: when the DOI misteriously decides not to be printed!

You can use \ExecuteBibliographyOptions { doi = true , } to force the printing of the doi.
Ulrike Fischer's user avatar
5 votes
Accepted

Move entire DOI to the next line rather then sticking into the margin

I think you want \DeclareFieldFormat{doi}{% \hfil\penalty90\hfilneg\space DOI\addcolon\addnbspace \ifhyperref {\href{https://doi.org/#1}{\nolinkurl{#1}}} {\nolinkurl{#1}}} If the ...
David Carlisle's user avatar
4 votes

Automatically adding DOI fields to a hand-made bibliography

Building on the work of XaraB, I changed the Httplib library to requests library which solve the redirect problem I was facing with Httplib. Previosly, the script looks for DOI by trying every author ...
arman's user avatar
  • 411
4 votes
Accepted

LNCS: remove URLs and DOIs from reference

as daleif pointed out, the only option is to do what Mico suggested. Thank you daleif and Mico. For anyone interested, below is a simple Python script for accomplishing this. If your bib file ...
Daniel's user avatar
  • 225
4 votes
Accepted

How to add DOI to latex references?

Do not use the ancient bibtex. Use instead biber which is already installed with your tex distribution: \RequirePackage{filecontents}% Only for demo here \begin{filecontents*}{library.bib} @article{...
user187802's user avatar
  • 16.9k

Only top scored, non community-wiki answers of a minimum length are eligible