summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty')
-rw-r--r--Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty109
1 files changed, 60 insertions, 49 deletions
diff --git a/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty b/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty
index 59d38283cb5..8a7c3570631 100644
--- a/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty
+++ b/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty
@@ -1,81 +1,80 @@
-%%
-%% This is file `pdfpc.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% pdfpc.dtx (with options: `pdfpc.sty,package')
-%% pdfpc.dtx
-%% Copyright (C) 2020 Evgeny Stambulchik
-%%
-%% This file is part of pdfpc.
-%%
-%% This program is free software; you can redistribute it and/or modify
-%% it under the terms of the GNU General Public License as published by
-%% the Free Software Foundation; either version 3 of the License, or
-%% (at your option) any later version.
-%%
-%% This program is distributed in the hope that it will be useful,
-%% but WITHOUT ANY WARRANTY; without even the implied warranty of
-%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-%% GNU General Public License for more details.
-%%
-%% You should have received a copy of the GNU General Public License along
-%% with this program; if not, write to the Free Software Foundation, Inc.,
-%% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-%%
-%% This work consists of the files pdfpc.dtx, pdfpc.ins, and the derived file
-%% pdfpc.sty
-%%
-%% \CharacterTable
-%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-%% Digits \0\1\2\3\4\5\6\7\8\9
-%% Exclamation \! Double quote \" Hash (number) \#
-%% Dollar \$ Percent \% Ampersand \&
-%% Acute accent \' Left paren \( Right paren \)
-%% Asterisk \* Plus \+ Comma \,
-%% Minus \- Point \. Solidus \/
-%% Colon \: Semicolon \; Less than \<
-%% Equals \= Greater than \> Question mark \?
-%% Commercial at \@ Left bracket \[ Backslash \\
-%% Right bracket \] Circumflex \^ Underscore \_
-%% Grave accent \` Left brace \{ Vertical bar \|
-%% Right brace \} Tilde \~}
-\ProvidesPackage{pdfpc}[2019/12/03 v0.2.1 PDFPC]
+% This file is part of pdfpc.
+% Copyright (C) 2020 Evgeny Stambulchik
+%
+% This program is free software; you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation; either version 3 of the License, or
+% (at your option) any later version.
+%
+% This program is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License along
+% with this program; if not, write to the Free Software Foundation, Inc.,
+% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+% -------------------------------------------------------------------------------------------
+%
+% Allow for defining some meta data and simple textual notes for use
+% with the pdfpc presentation application <https://pdfpc.github.io>.
+%
+% -------------------------------------------------------------------------------------------
+%
+% Inspired by Carsten Brandt's <https://github.com/cebe/pdfpc-latex-notes>.
+%
+% -------------------------------------------------------------------------------------------
+%
+% Please report bugs and other problems as well as suggestions for improvements
+% to the issue tracker at github <https://github.com/pdfpc/pdfpc/>
+%
+% -------------------------------------------------------------------------------------------
+%
+\ProvidesPackage{pdfpc}[2020/06/10 v0.4.0 PDFPC]
\NeedsTeXFormat{LaTeX2e}
+%
+% Require additional packages needed by \sty{pdfpc}:
\RequirePackage{kvoptions}
\RequirePackage{xstring}
\RequirePackage{pdfcomment}
\RequirePackage{hyperxmp}
+%
\SetupKeyvalOptions{
family=PDFPC,
prefix=PDFPC@
}
+%
\DeclareStringOption{duration}
\DeclareStringOption{starttime}
\DeclareStringOption{endtime}
\DeclareStringOption{enduserslide}
\DeclareStringOption{lastminutes}
+\DeclareBoolOption{hidenotes}
\DeclareBoolOption{overridenote}
\DeclareStringOption{notesposition}
+\DeclareStringOption{defaulttransition}
\DeclareDefaultOption{\@unknownoptionerror}
+%
\ProcessKeyvalOptions*
+%
\ifx\PDFPC@duration\@empty
\else
\IfInteger{\PDFPC@duration}{}
{\PackageWarningNoLine{pdfpc}{`duration' should be an integer}}%
\fi
+%
\ifx\PDFPC@enduserslide\@empty
\else
\IfInteger{\PDFPC@enduserslide}{}
{\PackageWarningNoLine{pdfpc}{`enduserslide' should be an integer}}%
\fi
+%
\ifx\PDFPC@lastminutes\@empty
\else
\IfInteger{\PDFPC@lastminutes}{}
{\PackageWarningNoLine{pdfpc}{`lastminutes' should be an integer}}%
\fi
+%
\ifPDFPC@overridenote
\renewcommand{\note}[2][]{%
\IfStrEq{#1}{item}%
@@ -84,10 +83,13 @@
{\pdfpcnote{#2}}%
}%
\fi
+%
\def\pdfpc@notespositionauto{auto}%
\ifx\PDFPC@notesposition\@empty%
\def\PDFPC@notesposition{auto}%
\fi%
+%
+% Guesswork for beamer/pgfpages notes
\ifx\PDFPC@notesposition\pdfpc@notespositionauto%
\def\PDFPC@notesposition{none}%
\def\pdfpc@onepaperheight{\paperheight}%
@@ -115,6 +117,8 @@
\fi%
\fi%
\fi%
+%
+% Our schema
\newcommand*{\pdfpc@schema}{%
\hyxmp@add@to@xml{%
______<rdf:Description xmlns:pdfpc="https://github.com/pdfpc/pdfpc">^^J%
@@ -125,14 +129,21 @@ ______<rdf:Description xmlns:pdfpc="https://github.com/pdfpc/pdfpc">^^J%
\hyxmp@add@simple{pdfpc:EndUserSlide}{\PDFPC@enduserslide}%
\hyxmp@add@simple{pdfpc:LastMinutes}{\PDFPC@lastminutes}%
\hyxmp@add@simple{pdfpc:NotesPosition}{\PDFPC@notesposition}%
+ \hyxmp@add@simple{pdfpc:DefaultTransition}{\PDFPC@defaulttransition}%
\hyxmp@add@to@xml{%
______</rdf:Description>^^J%
}%
}
+%
+% Piggybacking on the hyperxmp schema...
\let\oldhyxmp@pdf@schema\hyxmp@pdf@schema
\renewcommand{\hyxmp@pdf@schema}{{\oldhyxmp@pdf@schema}{\pdfpc@schema}}
-
-\newcommand{\pdfpcnote}[1]{\pdfmargincomment{#1}}
+%
+% Note command
+\ifPDFPC@hidenotes%
+ \newcommand{\pdfpcnote}[1]{}
+\else%
+ \newcommand{\pdfpcnote}[1]{\pdfmargincomment{#1}}
+\fi%
+%
\endinput
-%%
-%% End of file `pdfpc.sty'.