Skip to content

Instantly share code, notes, and snippets.

@wtsnjp
Last active April 21, 2018 05:04
Show Gist options
  • Select an option

  • Save wtsnjp/08539c7587d969f8eda0623354a6b7db to your computer and use it in GitHub Desktop.

Select an option

Save wtsnjp/08539c7587d969f8eda0623354a6b7db to your computer and use it in GitHub Desktop.
%#!lualatex
\documentclass[12pt]{beamer}
\usepackage{arev}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
% hack
\IfFileExists{self.pdf}{%
\directlua{os.rename("self.pdf", "self2.pdf")}
}{%
% nothing
}
\begin{document}
\begin{frame}{Including myself}
\IfFileExists{self2.pdf}{%
\centering
\fbox{\includegraphics[width=0.9\textwidth]{self2.pdf}}
}{%
% nothing
}
\end{frame}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment