summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pdfpc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-11-16 03:02:30 +0000
committerNorbert Preining <norbert@preining.info>2020-11-16 03:02:30 +0000
commit1e974f97ab28af897be376bdbd15593048fa45ea (patch)
treef34ade99edfdeb83ad202d99e7406b066c2e6a6e /macros/latex/contrib/pdfpc
parentf23cf64aec54b58502f0f334eab0ea486a317586 (diff)
CTAN sync 202011160302
Diffstat (limited to 'macros/latex/contrib/pdfpc')
-rw-r--r--macros/latex/contrib/pdfpc/README.md1
-rw-r--r--macros/latex/contrib/pdfpc/pdfpc-doc.pdfbin172285 -> 173566 bytes
-rw-r--r--macros/latex/contrib/pdfpc/pdfpc-doc.tex17
-rw-r--r--macros/latex/contrib/pdfpc/pdfpc.sty20
4 files changed, 25 insertions, 13 deletions
diff --git a/macros/latex/contrib/pdfpc/README.md b/macros/latex/contrib/pdfpc/README.md
index 15d8df9ba3..36c6a8bb65 100644
--- a/macros/latex/contrib/pdfpc/README.md
+++ b/macros/latex/contrib/pdfpc/README.md
@@ -9,7 +9,6 @@ console (pdfpc) program.
`pdfpc` depends on these packages:
[`kvoptions`](https://ctan.org/pkg/kvoptions),
[`xstring`](https://ctan.org/pkg/xstring),
-[`pdfcomment`](https://ctan.org/pkg/pdfcomment),
[`hyperxmp`](https://ctan.org/pkg/hyperxmp)
## Usage
diff --git a/macros/latex/contrib/pdfpc/pdfpc-doc.pdf b/macros/latex/contrib/pdfpc/pdfpc-doc.pdf
index 9929c83f28..775bed9e12 100644
--- a/macros/latex/contrib/pdfpc/pdfpc-doc.pdf
+++ b/macros/latex/contrib/pdfpc/pdfpc-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/pdfpc/pdfpc-doc.tex b/macros/latex/contrib/pdfpc/pdfpc-doc.tex
index 3130ff0e80..59d80c4447 100644
--- a/macros/latex/contrib/pdfpc/pdfpc-doc.tex
+++ b/macros/latex/contrib/pdfpc/pdfpc-doc.tex
@@ -43,7 +43,7 @@
\title{The \sty{pdfpc} package \\ {\large\url{https://github.com/pdfpc/pdfpc}}}
\author{Evgeny Stambulchik}
-\date{2020/06/10 (v0.4.0)}
+\date{2020/06/19 (v0.5.0)}
\hypersetup{pdftitle={The pdfpc package}, pdfauthor={Evgeny Stambulchik}}
@@ -66,8 +66,8 @@ GitHub}\footnote{\url{https://pdfpc.github.io/}}.
It depends on the following packages:
-\begin{multicols}{4}\sffamily\centering
-kvoptions \\ xstring \\ pdfcomment \\ hyperxmp
+\begin{multicols}{3}\sffamily\centering
+kvoptions \\ xstring \\ hyperxmp
\end{multicols}
\section*{License}
@@ -104,17 +104,18 @@ The following \param{options} may be given as comma-separated list:
\item \texttt{lastminutes}
\item \texttt{hidenotes}
\item \texttt{overridenote}
+\item \texttt{disablemarkdown}
\item \texttt{defaulttransition} (needs pdfpc v4.5 or higher)
\end{itemize}
The meaning and possible values of most of these options are documented in
\textit{pdfpcrc(5)} man page of the pdfpc program. The rest are explained below.
-To add a note to a slide (must not be longer than one paragraph):
-
-{\leftskip2.5em%
-\cmd{\pdfpcnote\{Text of a note\}}
-}\par
+To add a note to a slide, use \cmd{\pdfpcnote\{Text of a note\}}. A line break
+in the body of the note can be inserted with \cmd{\\}. The notes are rendered
+according to the Markdown syntax by default. If you prefer the plain text format
+(which was the case with \texttt{pdfpc}-4.4 and below), use the
+\texttt{disablemarkdown} option.
The pdfpc package can be used standalone or together with beamer. In
the later case, it may be desirable to continue using the \cmd{\note}
diff --git a/macros/latex/contrib/pdfpc/pdfpc.sty b/macros/latex/contrib/pdfpc/pdfpc.sty
index 8a7c357063..ad0735deb5 100644
--- a/macros/latex/contrib/pdfpc/pdfpc.sty
+++ b/macros/latex/contrib/pdfpc/pdfpc.sty
@@ -30,13 +30,12 @@
%
% -------------------------------------------------------------------------------------------
%
-\ProvidesPackage{pdfpc}[2020/06/10 v0.4.0 PDFPC]
+\ProvidesPackage{pdfpc}[2020/06/19 v0.5.0 PDFPC]
\NeedsTeXFormat{LaTeX2e}
%
% Require additional packages needed by \sty{pdfpc}:
\RequirePackage{kvoptions}
\RequirePackage{xstring}
-\RequirePackage{pdfcomment}
\RequirePackage{hyperxmp}
%
\SetupKeyvalOptions{
@@ -52,6 +51,7 @@
\DeclareBoolOption{hidenotes}
\DeclareBoolOption{overridenote}
\DeclareStringOption{notesposition}
+\DeclareBoolOption[false]{disablemarkdown}
\DeclareStringOption{defaulttransition}
\DeclareDefaultOption{\@unknownoptionerror}
%
@@ -129,6 +129,11 @@ ______<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}%
+ \ifPDFPC@disablemarkdown%
+ \hyxmp@add@simple{pdfpc:EnableMarkdown}{false}%
+ \else%
+ \hyxmp@add@simple{pdfpc:EnableMarkdown}{true}%
+ \fi
\hyxmp@add@simple{pdfpc:DefaultTransition}{\PDFPC@defaulttransition}%
\hyxmp@add@to@xml{%
______</rdf:Description>^^J%
@@ -141,9 +146,16 @@ ______</rdf:Description>^^J%
%
% Note command
\ifPDFPC@hidenotes%
- \newcommand{\pdfpcnote}[1]{}
+ \newcommand{\pdfpcnote}[1]{}%
\else%
- \newcommand{\pdfpcnote}[1]{\pdfmargincomment{#1}}
+ \newcommand{\pdfpcnote}[1]{%
+ \edef\\{\string\n}%
+ \pdfannot width 0pt height 0pt depth 0pt {%
+ /Subtype /Text%
+ /Contents (#1)%
+ }%
+ \relax%
+ }%
\fi%
%
\endinput