texlive[56940] Master/texmf-dist: pdfpc (15nov20)

commits+karl at tug.org commits+karl at tug.org
Sun Nov 15 23:21:18 CET 2020


Revision: 56940
          http://tug.org/svn/texlive?view=revision&revision=56940
Author:   karl
Date:     2020-11-15 23:21:18 +0100 (Sun, 15 Nov 2020)
Log Message:
-----------
pdfpc (15nov20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/pdfpc/README.md
    trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.pdf
    trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.tex
    trunk/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty

Modified: trunk/Master/texmf-dist/doc/latex/pdfpc/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pdfpc/README.md	2020-11-15 22:21:02 UTC (rev 56939)
+++ trunk/Master/texmf-dist/doc/latex/pdfpc/README.md	2020-11-15 22:21:18 UTC (rev 56940)
@@ -9,7 +9,6 @@
 `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

Modified: trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.tex	2020-11-15 22:21:02 UTC (rev 56939)
+++ trunk/Master/texmf-dist/doc/latex/pdfpc/pdfpc-doc.tex	2020-11-15 22:21:18 UTC (rev 56940)
@@ -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 @@
 
 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,6 +104,7 @@
 \item \texttt{lastminutes}
 \item \texttt{hidenotes}
 \item \texttt{overridenote}
+\item \texttt{disablemarkdown}
 \item \texttt{defaulttransition} (needs pdfpc v4.5 or higher)
 \end{itemize}
 
@@ -110,12 +111,12 @@
 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):
+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.
 
-{\leftskip2.5em%
-\cmd{\pdfpcnote\{Text of a note\}}
-}\par
-
 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}
 command. To this end, the \texttt{overridenote} option should be provided.

Modified: trunk/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty	2020-11-15 22:21:02 UTC (rev 56939)
+++ trunk/Master/texmf-dist/tex/latex/pdfpc/pdfpc.sty	2020-11-15 22:21:18 UTC (rev 56940)
@@ -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 @@
   \hyxmp at add@simple{pdfpc:EndUserSlide}{\PDFPC at enduserslide}%
   \hyxmp at add@simple{pdfpc:LastMinutes}{\PDFPC at lastminutes}%
   \hyxmp at add@simple{pdfpc:NotesPosition}{\PDFPC at notesposition}%
+  \ifPDFPC at disablemarkdown%
+    \hyxmp at add@simple{pdfpc:EnableMarkdown}{false}%
+  \else%
+    \hyxmp at add@simple{pdfpc:EnableMarkdown}{true}%
+  \fi
   \hyxmp at add@simple{pdfpc:DefaultTransition}{\PDFPC at defaulttransition}%
   \hyxmp at add@to at xml{%
 ______</rdf:Description>^^J%
@@ -141,9 +146,16 @@
 %
 % Note command
 \ifPDFPC at 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



More information about the tex-live-commits mailing list.