Created
August 31, 2021 14:51
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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