From 27dbd4f0b15a83b8507d957a63759a32ec4356ca Mon Sep 17 00:00:00 2001 From: "Achim D. Brucker" Date: Wed, 8 Feb 2017 18:01:25 +0000 Subject: [PATCH] Added includelecture command. --- lh-lecture/lh-lecture-presentation.sty | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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