{"id":16,"date":"2007-02-21T22:45:34","date_gmt":"2007-02-21T21:45:34","guid":{"rendered":"http:\/\/www.miscdebris.net\/blog\/?p=16"},"modified":"2007-02-21T22:45:34","modified_gmt":"2007-02-21T21:45:34","slug":"using-subref-in-the-caption-of-a-figure-latex","status":"publish","type":"post","link":"https:\/\/www.miscdebris.net\/blog\/2007\/02\/21\/using-subref-in-the-caption-of-a-figure-latex\/","title":{"rendered":"Using \\subref in the caption of a figure (LaTeX)"},"content":{"rendered":"<p>I use the subfig package and when I compiled my thesis in Linux I encountered a problem, when I used the \\subref command in the caption of a figure. The compilation was stopped with the error message &#8220;Argument of \\@tempf has an extra }.&#8221;<\/p>\n<p>Scanning the internet I found this <a href=\"http:\/\/www.mrunix.de\/forums\/showthread.php?t=47902\" target=\"_blank\">forum entry<\/a> in German where it was proposed to add the command &#8220;\\protect&#8221; before &#8220;\\subref{fig:1}, which actually did the trick for me. I didn&#8217;t have this problem though with MikTeX.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use the subfig package and when I compiled my thesis in Linux I encountered a problem, when I used the \\subref command in the caption of a figure. The compilation was stopped with the error message &#8220;Argument of \\@tempf has an extra }.&#8221; Scanning the internet I found this forum entry in German where &hellip; <a href=\"https:\/\/www.miscdebris.net\/blog\/2007\/02\/21\/using-subref-in-the-caption-of-a-figure-latex\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using \\subref in the caption of a figure (LaTeX)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[4],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","hentry","category-research"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6pnj-g","_links":{"self":[{"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/16"}],"collection":[{"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/comments?post=16"}],"version-history":[{"count":0,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/16\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/media?parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/categories?post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/tags?post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}