{"id":2991,"date":"2015-07-08T12:55:57","date_gmt":"2015-07-08T11:55:57","guid":{"rendered":"http:\/\/www.ojdo.de\/wp\/?p=2991"},"modified":"2018-06-02T12:13:55","modified_gmt":"2018-06-02T11:13:55","slug":"the-definitive-full-frame-graphic-command-for-beamer-in-latex","status":"publish","type":"post","link":"https:\/\/www.ojdo.de\/wp\/2015\/07\/the-definitive-full-frame-graphic-command-for-beamer-in-latex\/","title":{"rendered":"The definitive full-frame graphic command for beamer in LaTeX"},"content":{"rendered":"<blockquote><p>\n2018-06-02: This content has been superseded by this newer post: <a href=\"https:\/\/www.ojdo.de\/wp\/2018\/06\/finally-the-definitive-full-frame-graphic-commands-for-beamer-in-latex\/\">Finally the definitive full-frame graphic commands for beamer in LaTeX<\/a>. Look there for an updated version.\n<\/p><\/blockquote>\n<p>After my <a href=\"https:\/\/www.ojdo.de\/wp\/2015\/03\/full-frame-graphics-on-a-latex-beamer-presentation\/\">previous post on the same topic<\/a>, I have improved upon the command considerably. This time, it is based on <a href=\"http:\/\/tex.stackexchange.com\/a\/3927\/30821\">Matthew Leingang&#8217;s answer<\/a> on the question <a href=\"http:\/\/tex.stackexchange.com\/q\/3915\/30821\">Image on full slide in beamer package<\/a>.<\/p>\n<p>Usage:<\/p>\n<pre class=\"brush: latex; light: true; title: ; notranslate\" title=\"\">\r\n\\fullframegraphic&#x5B;optional credits]{path\/to\/image}\r\n<\/pre>\n<p>To use, copy this definition in your preamble. Requires package <code>tikz<\/code>.<\/p>\n<pre class=\"brush: latex; title: ; notranslate\" title=\"\">\r\n\\newcommand{\\fullframegraphic}&#x5B;2]&#x5B;]{%\r\n\\begin{frame}&#x5B;plain]%\r\n\\begin{tikzpicture}&#x5B;remember picture,overlay]%\r\n\\node&#x5B;at=(current page.center)] {%\r\n\\includegraphics&#x5B;height=\\paperheight,width=\\paperwidth,keepaspectratio]{#2}%\r\n};%\r\n% optional argument: credits on lower-right corner\r\n\\ifx\\relax#1\\relax\\else%\r\n\\node&#x5B;at=(current page.south east), anchor=south east,font=\\tiny,text=white,fill=black,fill opacity=.5,text opacity=1,inner sep=2pt,text height=1ex,text depth=.25ex] {#1};%\r\n\\fi%\r\n\\end{tikzpicture}%\r\n\\end{frame}}\r\n<\/pre>\n<p>Visual example (for the credits overlay):<\/p>\n<p><a href=\"https:\/\/www.ojdo.de\/wp\/wp-content\/uploads\/2015\/07\/fullframegraphic-DA_Cambridge_c1937.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ojdo.de\/wp\/wp-content\/uploads\/2015\/07\/fullframegraphic-DA_Cambridge_c1937-500x312.png\" alt=\"fullframegraphic-DA_Cambridge_c1937\" width=\"500\" height=\"312\" class=\"alignnone size-large wp-image-3133\" srcset=\"https:\/\/www.ojdo.de\/wp\/wp-content\/uploads\/2015\/07\/fullframegraphic-DA_Cambridge_c1937-500x312.png 500w, https:\/\/www.ojdo.de\/wp\/wp-content\/uploads\/2015\/07\/fullframegraphic-DA_Cambridge_c1937-300x187.png 300w, https:\/\/www.ojdo.de\/wp\/wp-content\/uploads\/2015\/07\/fullframegraphic-DA_Cambridge_c1937-768x479.png 768w, https:\/\/www.ojdo.de\/wp\/wp-content\/uploads\/2015\/07\/fullframegraphic-DA_Cambridge_c1937.png 800w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>Source: <a href=\"https:\/\/commons.wikimedia.org\/wiki\/File:DA_Cambridge_c1937.jpg#file\">File:DA_Cambridge_c1937.jpg<\/a> on Wikimedia Commons<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2018-06-02: This content has been superseded by this newer post: Finally the definitive full-frame graphic commands for beamer in LaTeX. Look there for an updated version. After my previous post on the same topic, I have improved upon the command considerably. This time, it is based on Matthew Leingang&#8217;s answer on the question Image on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3133,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,92],"tags":[],"class_list":["post-2991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-tos","category-latex"],"_links":{"self":[{"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/posts\/2991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/comments?post=2991"}],"version-history":[{"count":19,"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/posts\/2991\/revisions"}],"predecessor-version":[{"id":5311,"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/posts\/2991\/revisions\/5311"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/media\/3133"}],"wp:attachment":[{"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/media?parent=2991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/categories?post=2991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ojdo.de\/wp\/wp-json\/wp\/v2\/tags?post=2991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}