2

My problem is the following: I would like to have a numeric citation style; similar to the one in common papers, so in such a way that the citation is printed in form of a number as [1]. I use \usepackage[backend=biber, style=numeric, sortcites, sorting=nty, backref, natbib, hyperref]{biblatex} and \cite{} for citations, but still I get an Author-year-style citation... What could be wrong there?

\documentclass[11pt,a4paper]{report} 
\usepackage[backend=biber,style=numeric,sortcites,sorting=nty,backref,natbib,hyperref]{biblatex}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[ngerman,english]{babel}


\begin{document}
This theory fails to describe the phenomenon of superconductivity.\cite{PhysRev.108.1175}

\addcontentsline{toc}{chapter}{References}
\printbibliography[title=References]
\end{document}
6
  • 2
    As far as the information you gave us goes, the behavior is unexpected, so there's probably something else you are not telling us. Could you provide a minimal working example (MWE)/(MWEB) that reproduces the issue?
    – gusbrs
    May 22, 2018 at 18:38
  • 2
    Please follow the link provided above. A MWE should be a short but complete piece of code that illustrates the problem, beginning with \documentclass and ending with \end{document}. You can edit your question to include it.
    – gusbrs
    May 22, 2018 at 18:50
  • For example: ´This theory fails to describe the phenomenon of superconductivity.\autocite{PhysRev.108.1175}´ which gives "This theory fails to describe the phenomenon of superconductivity.[PhysRev.108.1175]". What I would like to get is "This theory fails to describe the phenomenon of superconductivity. [1]" where the number (in this case 1) should be the number of the (sorted) bibliography-entry...
    – quertzy37
    May 22, 2018 at 18:51
  • As described elsewhere, this could be a result of not deleting intermediate files during compilation, if you switched from an author-year style. You may want to double-check that you are actually compiling from scratch.
    – Coby Viner
    May 22, 2018 at 18:54
  • 1
    You still did not provide a MWE... But I assume Question mark instead of citation number and Biblatex with Biber: Configuring my editor to avoid undefined citations might help you.
    – gusbrs
    May 22, 2018 at 18:54

1 Answer 1

0

Assuming that the bib file contains the available BibTeX, the MWE you provided does indeed result in a numeric citation ("[1]").

Please compare your own code with this example (rendered on Overleaf).

You may also want to ensure that you have removed any intermediate files and are compiling from scratch.

1
  • 1
    Now it worked, thanks! I had to remove the intermediate files!
    – quertzy37
    May 22, 2018 at 20:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .