0

Could someone please provide me a clue, why the following minimal working example produces the output

Theorem 1 ( [1]). Lorem ipsum.

instead of

Theorem 1 ([1]). Lorem ipsum.

(notice the unwanted space before the citation).

\documentclass[11pt]{article}

\usepackage{amsmath}
\usepackage{cite}
\usepackage{amsthm}

\newtheorem{theorem}{Theorem}
    \newtheorem{lemma}[theorem]{Lemma}



\begin{document}

\title{Title}
\maketitle

\begin{theorem}[\cite{articlexy}]
    Lorem ipsum.
\end{theorem}


\begin{lemma}[Text]
    Bla bla.
\end{lemma}


\bibliography{refArticlesAndBooks}

\end{document}

The bib-File is the following:

@article{articlexy,
 author = {Author Name},
 title = {Title of Paper},
 journal = {Journal},
 volume = {837},
 number = {6},
 year = {2003},
 pages = {255\nobreakdash--354},
 }

Thank you for your help.

  • 2
    Duplicate, see tex.stackexchange.com/a/164853/3929 – daleif Jul 3 '19 at 15:06
  • Welcome to tex.sx. – barbara beeton Jul 3 '19 at 15:09
  • Your code isn't fully compilable since it lacks \bibliographystyle directive. Please inidicate which bib style you employ. – Mico Jul 3 '19 at 15:24
  • Can you consider using biblatex? – Bernard Jul 3 '19 at 15:32

Browse other questions tagged or ask your own question.