summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-28 21:05:14 +0000
committerKarl Berry <karl@freefriends.org>2022-02-28 21:05:14 +0000
commitccfe55fbce1b088d74d031703078e087efffa483 (patch)
tree155427bfaa0fa04fbb56f373cdcc1530c01d1d85 /Master/texmf-dist/tex/latex
parent47b11301be338c7faaf09e7a692102606959db1d (diff)
lectureslides (28feb22)
git-svn-id: svn://tug.org/texlive/trunk@62292 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/lectureslides/lectureslides.sty50
1 files changed, 27 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/lectureslides/lectureslides.sty b/Master/texmf-dist/tex/latex/lectureslides/lectureslides.sty
index 8c9cfc4899f..3bfff0dedb9 100644
--- a/Master/texmf-dist/tex/latex/lectureslides/lectureslides.sty
+++ b/Master/texmf-dist/tex/latex/lectureslides/lectureslides.sty
@@ -1,10 +1,10 @@
%
% lectureslides
-% version 0.1
-% 2021/03/15
+% version 1.0
+% 2022/03/01
%
% Taihao Zhang (taihao.de)
-% 15 March, 2021
+% 1 March, 2022
%
% This work is licensed under the Creative Commons Attribution 4.0 International License.
% To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/
@@ -16,14 +16,14 @@
\newcommand{\thispackage}{lectureslides}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{\thispackage}[2021/03/14 \thispackage]
+\ProvidesPackage{\thispackage}[2022/03/01 \thispackage]
\RequirePackage{xparse}
\RequirePackage{pdfpages
- % , parskip
, tocloft
- % , tikz
- , hyperref}
+ , hyperref
+ , babel
+}
\renewcommand{\cftdot}{}
\renewcommand{\cftsecfont}{\mdseries}
\renewcommand{\cftsecafterpnum}{\vspace{-3.25mm}}
@@ -37,14 +37,23 @@
\DeclareOption*{\PackageWarning{\thispackage}{Unknown option ‘\CurrentOption’}}
\ProcessOptions\relax
-\newcommand{\createdby}[1]{Zusammengestellt von #1 am \today.}
+\newcommand{\createdAt}[1]{Compiled \today.}
\NewDocumentCommand{\course}{o m}{%
{%
\noindent\LARGE\bfseries\sffamily #2%
- \IfNoValueTF{#1}%
- {}%
- {\footnote{\createdby{#1}}}%
+ \footnote{
+ \IfNoValueTF{#1}%
+ {
+ % No optional argument passed
+ \iflanguage{ngerman}{
+ Zusammengestellt am \today.
+ }{
+ Compiled \today.
+ }
+ }%
+ {#1}%
+ }%
\par%
}%
}
@@ -57,18 +66,13 @@
\addcontentsline{toc}{\toclevel}{\tocline{#1}}%
}
-\NewDocumentCommand{\lectureslides}{o m}{%
- \IfNoValueTF{#1}%
- {\includepdf[pages=- \orientation]{#2}}%
- {\includepdf[pages=-#1 \orientation]{#2}}%
-}
-
-\NewDocumentCommand{\lecture}{m o m}{%
- \lecturetitle{#1}\lectureslides[#2]{#3}%
+\NewDocumentCommand{\lectureslides}{o o m}{%
+ \includepdf[pages=#1-#2 \orientation]{#3}
+ % \IfNoValueTF{#1}%
+ % {\includepdf[pages=- \orientation]{#2}}%
+ % {\includepdf[pages=-#1 \orientation]{#2}}%
}
-\newcommand{\infotext}{%
-Diese PDF mit Inhaltsverzeichnis und PDF-Kapiteln wurde erstellt, um ein einfacheres Lernen zu ermöglichen indem alle Folien übersichtlich an einem Ort organisiert sind.%
-\par%
-In geeigneten PDF-Readern wird ein Navigationsbereich angezeigt, sodass einfach zwischen den Kapiteln gewechselt werden kann. Alternativ sind die Überschriften im Inhaltsverzeichnis auch anklickbar.%
+\NewDocumentCommand{\lecture}{m o o m}{%
+ \lecturetitle{#1}\lectureslides[#2][#3]{#4}%
}