Citations within a caption in Latex

by

Citations within a caption of a table or figure can produce errors. You will need to use the “\protect” statement.

\caption{The top line shows the result by Einstein et al \protect\cite{einstein}}.

Advertisements

Tags: , ,

53 Responses to “Citations within a caption in Latex”

  1. babyt Says:

    I am really glad to have found this been searching for a fix after changing to agsm harvard bib style. I am glad I have looked.

  2. Eric Says:

    Fantastic, exactly what I was looking for.

    It would be nice if Google indexed this under some of the errors that using an unprotected \cite is a caption can cause, e.g., I get “Illegal parameter number in definition of \reserved@a. l.1726 }”.

    Thanks again.

  3. Antje Says:

    This ended an hour of struggling with bibtex. Thanks soo much.

  4. m Says:

    Here is the twist so that it works also with pdflatex:
    \caption[Foo Bar.]{Foo Bar. Redrawn from \protect\cite{Baz}.}

    From: http://ima.udg.edu/~frederic/ResearchInterest/onLatex.html#nestedLinkAnnotations

  5. Michael Says:

    I have still trouble with that 😦
    How can I use \cite[page 123]{ABC2010} in an \caption?
    …in complete context: \caption[text \cite[page 123]{ABC2010} ]{othertext}

    I always get tons of errors, when I run pdflatex the second time.
    The first time all runs fine (after deleting all files except the *.tex)

    Anyone knows a solution?

  6. Bodo Says:

    Great!

  7. Greg Colbourn Says:

    I get fatal errors when trying to cite inside a table, even with protect. Googling has come up with nothing so far. Anyone any idea?

    \begin{small}
    \begin{table}[t]
    \centering
    \begin{tabular}{lccc}
    \\
    \textbf{Reference} & \textbf{Carbonate weathering} & \textbf{Silicate weathering} & \textbf{Total} \\
    \protect \cite{Meybeck1987} & 12.0 & 12.6 & 24.6 \\
    \\
    \end{tabular}
    \caption{Estimates of global weathering rates all values in Tmol/yr}
    \label{tab:ests}
    \end{table}
    \end{small}

    Error is:
    ! Argument of \@gobbletwo has an extra }.

    \par
    l.44 …??}{ on input line 239}}{table.caption.5}}

  8. Erwin Says:

    Lovely!

  9. Amr Ellafy Says:

    perfect @

  10. Elektrische Zahnbuerste Says:

    … [Trackback]…

    […] There you will find more Infos: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  11. fencing installation North London Says:

    … [Trackback]…

    […] There you will find 64878 more Infos: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  12. barnes and noble coupons Says:

    … [Trackback]…

    […] Find More Informations here: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  13. irishboy grow journal Says:

    … [Trackback]…

    […] There you will find 61899 more Infos: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  14. indian wedding photography auckland Says:

    … [Trackback]…

    […] Informations on that Topic: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  15. green smoke coupon Says:

    … [Trackback]…

    […] Find More Informations here: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  16. icdc online degrees Says:

    … [Trackback]…

    […] There you will find 77643 more Infos: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  17. icdc college Says:

    … [Trackback]…

    […] Read More: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  18. all parking games Says:

    … [Trackback]…

    […] Find More: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  19. keratosis pilaris remedies Says:

    … [Trackback]…

    […] Read More: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  20. screencaps Says:

    … [Trackback]…

    […] Find More Informations here: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  21. Pourquoi juge de tutelle Says:

    … [Trackback]…

    […] Read More: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  22. iphone 4s cases Says:

    … [Trackback]…

    […] Find More Informations here: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  23. Fence Fitting Services in North London Says:

    … [Trackback]…

    […] Read More here: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  24. buy cake pops Says:

    … [Trackback]…

    […] Find More Informations here: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  25. xenadrine ultra reviews Says:

    … [Trackback]…

    […] There you will find 68894 more Infos: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  26. Robot Moulinex Says:

    … [Trackback]…

    […] There you will find 60892 more Infos: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  27. wuggle pets where to buy Says:

    … [Trackback]…

    […] Read More: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  28. Visiter à Prag Says:

    … [Trackback]…

    […] There you will find 78185 more Infos: lookherefirst.wordpress.com/2008/04/28/citations-within-a-caption-in-latex/ […]…

  29. iphone 4s cases Says:

    The very next time I read a blog, Hopefully it doesn’t fail me just as much as this one. After all, I know it was my choice to read, however I actually thought you’d have something interesting to talk about. All I hear is a bunch of complaining about something you could fix if you were not too busy seeking attention.

  30. Rajen Mistry Says:

    thank you

  31. Immigration Lawyer Ilford Says:

    Have you ever thought about adding a little bit more than
    just your articles? I mean, what you say is important and all.
    But imagine if you added some great graphics or video clips to give your posts more, “pop”!
    Your content is excellent but with pics and videos,
    this blog could definitely be one of the best in its field.
    Superb blog!

  32. Sebastian Says:

    Thanks! Saved me a lot of time …

  33. Paru vendu Says:

    The players would begin as members of the SCA, going to Phoenix for the Estrella War.
    Even Halloween parties with the very best Halloween costumes can get
    dry after everyone’s seen the costumes to be seen and passed out the candy to the beggars. That is the new craze in on the internet gaming, and numerous girls and teens are possessing a blast.

  34. Valentina Says:

    Thank you for every other excellent post. The place else may anyone get that
    kind of information in such a perfect approach of writing?
    I’ve a presentation subsequent week, and I’m on the look for such info.

  35. Link Building Says:

    Hello to all, the contents existing at this website are genuinely remarkable for people experience,
    well, keep up the good work fellows.

  36. Get More Information Says:

    Hi colleagues, nice piece of writing and good urging
    commented at this place, I am in fact enjoying by these.

  37. Home Loan Refinance Online Says:

    When I originally commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several e-mails with the same comment.
    Is there any way you can remove me from that service? Thanks a
    lot!

  38. Michael Kors Bags Says:

    In 2003, it acquired Michael Kors Bags’ fragrance unit for a very cheap valuation. Sales in Europe, Asia and other regions around the globe. According to retail metrics, same store sales for KORS would come in at $1. The dial is protected with a scratch-resistant mineral crystal.

  39. Christian Louboutin Says:

    Of all Louboutin’s many optical illusions, it is wise to purchase less footwear but to go for the quality ones instead. Otherwise, your esteemed patrons will wander in of an evening, expecting to hear a bit of pop to your overall looks. And people who can’t afford what are more precious to them, christian louboutin heels, they are highly decorative,
    designed with style, rather than comfort in mind. Anyone who purchases
    fakes is not getting nearly the same quality as the original.
    The kind of shoes this girl would have.

  40. smoke a blu cigarette Says:

    I know this site presents quality depending articles and additional stuff, is there any other site which presents such things in quality?

  41. viewdocsonline.com Says:

    What’s up, always i used to check webpage posts here in the early hours in the morning, because i love to learn more and more.

  42. Christian Louboutin Says:

    Christian Louboutin Discount20-year-old actress was
    clear, the Sun, wearing a great mood to feel bright, sweet
    bow decorated with pretty and wild fashion holy items. And thank goodness because it
    is a big deal? Young Miuccia, the ink barely dry on her doctorate in
    political science, was called to duty. On the net
    progress christian louboutin pumps sale really further trustworthy versus the typical
    revenue transaction, it could argue shy of dropping resources.

  43. billig el cigaret Says:

    However, nicotine, which is the main ingredient
    of the cigarette, has an immediate satisfying experience for the smoker.
    I said to myself this could not continue like this.
    I don’t really mind (although I think it’s stupid) if
    they want to harm their hearts and lungs.

  44. The Mitr Says:

    Thanks. This really helped.

  45. Mariano Says:

    Aw, this was an exceptionally good post. Spending some time and actual effort to create a superb article… but
    what can I say… I put things off a lot and don’t manage to get anything
    done.

  46. barnes and noble coupons Says:

    barnes and noble coupons

    Citations within a caption in Latex | Look here first!

  47. Odín Says:

    Great! Thank you very much!

  48. Lorene Says:

    Networks like Twitter, Facebook, and Amazon account
    for a majority of these searches. Or pay a real fee to
    get real results you dream of. By using professional article services, you
    can be sure that you can avoid these issues.

  49. bodog88 Says:

    Is it safe? . Safer than myspace?. Can you use myspace layouts for it?. How old do you how to be to have one?. . Please answer as many as possible . Thanx :].

  50. see my latest blog Says:

    see my latest blog

    Citations within a caption in Latex | Look here first!

  51. Patrick Says:

    Fantastic. Thx a lot

  52. robot xavery 123 Says:

    Hello colleagues, how is the whole thing, and what you wish for to say regarding this article, in my view its really awesome designed
    for me.

  53. Playlist Says:

    Awesome site! I enjoy this short article. I’m certainly goina to spread the word with everbody I know tech house and techno community. I also wanted to to contribute by sharing this playlist that I listen to on Spotify that is all tech house/techno http://spoti.fi/2v7a0MA Give it a look and let us know what you think.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: