I'm writing my first LaTeX document using Texmaker (v5.0.2) and Windows 10.

When trying to use the apacite package and bibtex to do my citations/references I get a wired output. For citations outside of figure captions, it outputs "(?, ?, p. x-y)" where "x-y" are the page numbers. For citations within figure captions I get a compile error, where the log states: -

"! Illegal parameter number in definition of \reserved@a.

You meant to type ## instead of #, right? Or maybe a } was forgotten somewhere earlier, and things are all screwed up? I'm going to assume that you meant ##."

I find this error to be particularly weird since my source code does not contain any hashtags anywhere.

Additionally, my bibliography does not appear, despite having


in my source code.

Here's my preamble:

\documentclass[11pt, twoside]{article}
\usepackage[margin = 2.5cm]{geometry}
\usepackage{amsfonts,amsmath,amssymb, amsthm}




Here's my bib file:

    author = {Boyer, Carl B. and Merzbch, Uta C.},
    year = {1991},
    title = {A history of mathematics},
    edition = {2nd},
    city = {New York},
    publisher = {Wiley} }

    author = {Kummer, J.},
    year = {n.d.},
    title = {Draw Function Graph},
    url = {https://rechneronline.de/function-graphs/},
    lastchecked = {2018-01-05} }

    title = {Paint 3d (Version 5.1806.20057.0) [Computer software]},
    year = {2017},
    address = {Redmond, Washington},
    publisher = {Author},
    url = {https://www.microsoft.com/en-us/p/paint-3d/9nblggh5fv99} }

    author = {Euclid,},
    translator = {Heath, T. L.},
    editor = {Densmore, D.},
    originalyear = {2002},
    year = {2017},
    title = {Euclid's Elements},
    address = {Santa Fe, New Mexico},
    publisher = {Green Lion Press} }

    author = {Cantor, Georg},
    translator = {Jourdain, Philip E. B.},
    originalyear = {1915},
    year = {2009},
    title = {Contributions to the Founding of the Theory of Transfinite Numbers},
    address = {London},
    publisher = {BiblioLife} }

Here's an example of one of my citations outside a figure caption:

The fraktur, lowercase $\mathfrak{c}$ referring to the continuum \cite[p.~95]{Cantor}.

Lastly, here's an example of my of my citations within a figure caption (yes, yes, I know I should be using vector graphics, not bitmap):

\begin{figure}[t] \label{fig1}
\fbox{ \includegraphics{Figures/Figure-1} }
\caption{bla bla bla. Created using \cite{DrawGraph} \cite{PaintThreeD}.}

One last thing, for some reason when I try to use the \citep{} function it outputs an error stating that \citep{} is an undefined function, despite the function appearing in the drop-down menu as I type it. This is not essential for my document, but a fix would be appreciated.


A LaTeX novice who's about to pluck his eye's out so he doesn't have to look at this crap anymore

  • Tackle one problem at the time. Remove cites from caption for now. Press F6 in your keyboard, then press F11, then F6 two times more.
    – Johannes_B
    Jul 18 '18 at 10:20
  • Have you thought about reading introductory material first? You are using a template you found somewhere or someone gave you, you are confusing several ways of bibliography and citation creation.
    – Johannes_B
    Jul 18 '18 at 10:25
  • en.m.wikibooks.org/wiki/LaTeX/Scientific_Reports and en.m.wikibooks.org/wiki/LaTeX/… for a thesis I would recommend biblatex with biber.
    – Johannes_B
    Jul 18 '18 at 10:27
  • @Johannes_B I'll take a look at the documentation. Thanks Johannes
    – Harrison O
    Jul 18 '18 at 11:22

Your Answer

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

Browse other questions tagged or ask your own question.