Skip to content

Instantly share code, notes, and snippets.

@v1nc
Created August 31, 2021 14:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v1nc/faa23baa50afa173a8d959b17bb55edc to your computer and use it in GitHub Desktop.
Save v1nc/faa23baa50afa173a8d959b17bb55edc to your computer and use it in GitHub Desktop.
Latex Lecture Overview - collect index pages in one PDF to quickly navigate your lectures
\documentclass{beamer}
\usepackage{graphicx}
\usepackage{hyperref}
\usetheme{Boadilla}
\title{Latex Lecture Overview}
\subtitle{Using Beamer}
\author{v1nc}
\institute{TU-Dortmund}
\date{\today}
% custom index page #1: Scale(default 0.4), #2: Title, #3: PDF Name, 4: Page Number
\newcommand{\ip}[4][0.4] {
\section{#2}
\begin{frame}
\frametitle{#2}
\pagecolor{white}
% modify this line if PDFs are located at a different place
\href{run:./#3.pdf}{\includegraphics[scale=#1,page=#4]{#3.pdf}}
\end{frame}
}
\begin{document}
\pagecolor{white}
\begin{frame}
\frametitle{Outline}
\tableofcontents
\end{frame}
%%%%%%%%%% Add slides here
\ip{Title}{pdf-name-without-the-pdf-ending}{1337}
\ip[0.6]{Title Two}{another-pdf}{2}
%%%%%%%%%%
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment