1

I'd like to create a named theorem and cite it in the header like this:

Theorem 5.3 [1, Theorem 1.1][NAME]

I haven't seen a book where an author used that style, but I'd like to use that kind of reference for my thesis. (Or is there a better way to do that?)

What I tried:

 \documentclass[12pt]{scrartcl}
 \usepackage{amsthm}
 \usepackage{mathtools}
 \usepackage{cite}
 \newtheorem{theorem}{Theorem}[section]
 \usepackage{filecontents}

 \begin{filecontents*}{Literatur3.bib}
@book{GEOR,
Author = {Hans-Otto Georgii},
Publisher = {de Gruyter},
Title = {Stochastik},
Year = {2009}}

\end{filecontents*}
\bibliography{Literatur3.bib}
 \begin{document}

 \begin{theorem}[{\cite[6.30]{GEOR}}][Name]
    ...
 \end{theorem}
 \end{document}

but that produces an error "Argument of \@citex has an extra }. \begin{Theorem}[\cite[6.30]"

Is there a right way to do this?

Thanks in advance!

  • 3
    If you use optional arguments inside an optional argument, you have to use additional argument braces for the outer optional argument: \begin{Theorem}[{\cite[6.30]{bibitem}}](Name). See tex.stackexchange.com/questions/84595/… – Schweinebacke Jan 29 '17 at 12:03
  • When I try that it produces Theorem 2.2 ([1, 6.30]). (Name) with multiple spaces after the dot and (Name) is printed in italics – Nvi Jan 29 '17 at 12:13
  • The result of \cite depends on the style you are using for cites and bibliography (I hope, you are using biblatex). The style of the theorem depends on the theorem packages and definitions you are using. Please make a MWE. And describe in detail, what you want. We cannot help you without these things. – Schweinebacke Jan 29 '17 at 12:58
  • I am pretty new to all this so please excuse my lack of knowledge. I used BibDesk which produces a .bib file. So is that biblatex in the end? MEW added to the Question – Nvi Jan 29 '17 at 14:21
  • you're using amsthm. there's an example similar to what i think you want on p.4 of the documentation; take a look: texdoc amsthm'. (but i don't know whether scrartcl` makes and relevant modifications. i'm also not sure of the effect of the cite package.) – barbara beeton Jan 29 '17 at 14:29
1

Your example does not produce a bibliography. If I fix this, either using:

\documentclass[12pt]{scrartcl}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{cite}
\newtheorem{theorem}{Theorem}[section]
\usepackage{filecontents}

\begin{filecontents*}{Literatur3.bib}
@book{GEOR,
Author = {Hans-Otto Georgii},
Publisher = {de Gruyter},
Title = {Stochastik},
Year = {2009}}
\end{filecontents*}
\begin{document}

\begin{theorem}[{\cite[6.30]{GEOR}}][Name]
  ...
\end{theorem}

\bibliographystyle{plain}% the old bibtex way
\bibliography{Literatur3.bib}% the old bibtex way

\end{document}

or (I would recommend this):

\documentclass[12pt]{scrartcl}
\usepackage{amsthm}
\usepackage{mathtools}
\newtheorem{theorem}{Theorem}[section]
\usepackage{filecontents}

\begin{filecontents*}{Literatur3.bib}
@book{GEOR,
Author = {Hans-Otto Georgii},
Publisher = {de Gruyter},
Title = {Stochastik},
Year = {2009}}
\end{filecontents*}

\usepackage[style=authoryear,backend=biber]{biblatex}
\addbibresource{Literatur3.bib}

\begin{document}

\begin{theorem}[{\cite[6.30]{GEOR}}][Name]
  ...
\end{theorem}

\printbibliography

\end{document}

I get not error message. The last example produces:

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.