diff --git a/lh-lecture/lh-lecture-presentation.sty b/lh-lecture/lh-lecture-presentation.sty index 19954f3..5b0b1db 100644 --- a/lh-lecture/lh-lecture-presentation.sty +++ b/lh-lecture/lh-lecture-presentation.sty @@ -9,6 +9,9 @@ %% The 2-clause BSD-style license. %% \NeedsTeXFormat{LaTeX2e}[1994/06/01] +\RequirePackage{etoolbox} +\RequirePackage{graphicx} + \ProvidesPackage{lh-lecture-presentation} [2017/02/08 v0.0 LaTeX style for lectures (add-on to lh-presentation)] @@ -58,5 +61,18 @@ } +\newcommand\appendtographicspath[1]{% + \gappto\Ginput@path{{#1}}% +} +\newcommand\prependtographicspath[1]{% + \gpreto\Ginput@path{{#1}}% +} + +\newcommand{\includelecture}[2]{ + \prependtographicspath{#1-#2/figures/} + \include{#1-#2/#2} +} + + \endinput