texlive[48245] Master: pdfpc-movie (21jul18)

commits+karl at tug.org commits+karl at tug.org
Sat Jul 21 22:20:37 CEST 2018


Revision: 48245
          http://tug.org/svn/texlive?view=revision&revision=48245
Author:   karl
Date:     2018-07-21 22:20:36 +0200 (Sat, 21 Jul 2018)
Log Message:
-----------
pdfpc-movie (21jul18)

Modified Paths:
--------------
    trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/pdfpc-movie/
    trunk/Master/texmf-dist/doc/latex/pdfpc-movie/README.md
    trunk/Master/texmf-dist/doc/latex/pdfpc-movie/pdfpc-movie-doc.pdf
    trunk/Master/texmf-dist/source/latex/pdfpc-movie/
    trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie-doc.dtx
    trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie.dtx
    trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie.ins
    trunk/Master/texmf-dist/tex/latex/pdfpc-movie/
    trunk/Master/texmf-dist/tex/latex/pdfpc-movie/pdfpc-movie.sty
    trunk/Master/tlpkg/tlpsrc/pdfpc-movie.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/pdfpc-movie/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pdfpc-movie/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/pdfpc-movie/README.md	2018-07-21 20:20:36 UTC (rev 48245)
@@ -0,0 +1,36 @@
+# pdfpc-movie
+This package provides a `\pdfpcmovie` command for hyperlinking movies in a way compatible to the PDF Presenter Console (pdfpc), a GPL2 licensed multi-monitor PDF presentation viewer application [available on GitHub](http://pdfpc.github.io).
+
+
+
+### Dependencies
+`pdfpc-movie` depends on these packages:  
+[`etoolbox`](https://ctan.org/pkg/etoolbox), [`hyperref`](https://ctan.org/pkg/hyperref) and [`pgfkeys`](https://ctan.org/pkg/pgfkeys)
+
+
+### Installation
+Extract the *package* file first:
+
+  1. Run LaTeX over the file `pdfpc-movie.ins`
+  2. Move the resulting `.sty` file to `TEXMF/tex/latex/pdfpc-movie/`
+    
+Then, you can compile the *documentation* yourself by executing
+
+    lualatex pdfpc-movie-doc.dtx
+    makeindex -s gind.ist pdfpc-movie-doc.idx
+    makeindex -s gglo.ist -o pdfpc-movie-doc.gls pdfpc-movie-doc.glo
+    lualatex pdfpc-movie-doc.dtx
+    lualatex pdfpc-movie-doc.dtx
+    
+
+or just use the precompiled documentation shipped with the source files.  
+In both cases, copy the files `pdfpc-movie-doc.pdf` and `README.md` to `TEXMF/doc/latex/pdfpc-movie/`.
+
+
+
+### License
+LPPL 1.3c or any later version (available at [http://www.latex-project.org/lppl.txt](http://www.latex-project.org/lppl.txt "Show the current version of the LPPL"))
+
+This package is *maintained*. Current maintainer is [Sebastian Friedl](mailto:sfr682k at t-online.de).
+
+


Property changes on: trunk/Master/texmf-dist/doc/latex/pdfpc-movie/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/pdfpc-movie/pdfpc-movie-doc.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/pdfpc-movie/pdfpc-movie-doc.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/pdfpc-movie/pdfpc-movie-doc.pdf	2018-07-21 20:19:53 UTC (rev 48244)
+++ trunk/Master/texmf-dist/doc/latex/pdfpc-movie/pdfpc-movie-doc.pdf	2018-07-21 20:20:36 UTC (rev 48245)

Property changes on: trunk/Master/texmf-dist/doc/latex/pdfpc-movie/pdfpc-movie-doc.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie-doc.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie-doc.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie-doc.dtx	2018-07-21 20:20:36 UTC (rev 48245)
@@ -0,0 +1,265 @@
+%\iffalse
+%  Doc-Source file to use with LaTeX2e
+%  Copyright (C) 2018 Sebastian Friedl
+%
+%  This work is subject to the LaTeX Project Public License, Version 1.3c or -- at
+%  your option -- any later version of this license.
+%  This work consists of the files pdfpc-movie.dtx, pdfpc-movie.ins, pdfpc-movie-doc.dtx
+%  and the derived file pdfpc-movie.sty.
+%
+%  This work has the LPPL maintenance status 'maintained'.
+%  Current maintainer of the work is Sebastian Friedl.
+%
+%  -------------------------------------------------------------------------------------------
+%
+%  Provides a \pdfpcmovie command for linking movies in a way compatible to the
+%  PDF Presenter Console.
+%
+%  -------------------------------------------------------------------------------------------
+%
+%  Please report bugs and other problems as well as suggestions for improvements
+%  to my email address (sfr682k at t-online.de).
+%
+%  -------------------------------------------------------------------------------------------
+%\fi
+
+% !TeX spellcheck=en_US
+
+
+\documentclass[11pt]{ltxdoc}
+
+\usepackage{iftex}
+\RequireLuaTeX
+
+\usepackage[no-math]{fontspec}
+\usepackage{polyglossia}
+\setdefaultlanguage{english}
+\usepackage[english]{selnolig}
+
+\usepackage{array}
+\usepackage{csquotes}
+\usepackage{hologo}
+\usepackage[unicode, pdfborder={0 0 0}, linktoc=all, hyperindex=false]{hyperref}
+\usepackage{bookmark}
+
+
+\parindent0pt
+
+\usepackage[erewhon]{newtxmath}
+\setmainfont{erewhon}
+\setsansfont[Scale=MatchLowercase]{Source Sans Pro}
+\setmonofont[Scale=MatchLowercase]{Hack}
+
+\usepackage[a4paper,left=4.50cm,right=2.75cm,top=3.25cm,bottom=2.75cm,nohead]{geometry}
+
+
+\hyphenation{}
+
+
+\MakeShortVerb{"}
+\CheckSum{0}
+
+
+\newcommand*{\sty}[1]{\textsf{#1}}
+
+\def\param#1{\textit{\rmfamily\mdseries\ensuremath{\langle}#1\ensuremath{\rangle}}}
+    
+
+\RecordChanges
+
+
+
+
+\title{The \sty{pdfpc-movie} package \\ {\large\url{https://gitlab.com/SFr682k/pdfpc-movie}}}
+\author{Sebastian Friedl \\ \href{mailto:sfr682k at t-online.de}{\ttfamily sfr682k at t-online.de}}
+\date{2018/07/21 (v1.0)}
+
+\hypersetup{pdftitle={The pdfpc-movie package}, pdfauthor={Sebastian Friedl}}
+
+\begin{document}
+    \maketitle
+    \thispagestyle{empty}
+    
+    
+    \medskip
+    \begin{abstract}
+        \noindent%
+        This package provides a "\pdfpcmovie" command for hyperlinking movies in a way compatible to the \href{http://pdfpc.github.io/}{PDF Presenter Console (\texttt{pdfpc}), a GPL2 licensed multi-monitor PDF presentation viewer application available on GitHub}\footnote{\url{http://pdfpc.github.io/}}.
+    \end{abstract}
+    
+    
+    \tableofcontents
+    
+    
+    
+    
+    
+    \clearpage
+    \subsection*{Dependencies and other requirements}
+    \addcontentsline{toc}{subsection}{Dependencies and other requirements}
+    \sty{pdfpc-movie} requires the use of \LaTeXe. \\
+    It depends on the following packages:
+    \begin{multicols}{3}\sffamily\centering
+        etoolbox \\ hyperref \\ pgfkeys
+    \end{multicols}
+
+    
+    
+    \subsection*{Installation}
+    \addcontentsline{toc}{subsection}{Installation}
+    Extract the \textit{package} file first:
+    \begin{enumerate}
+        \item Run \LaTeX\ over the file "pdfpc-movie.ins"
+        \item Move the resulting ".sty" file to "TEXMF/tex/latex/pdfpc-movie/"
+    \end{enumerate}
+    
+    Then, you can compile the \textit{documentation} yourself by executing \\[\smallskipamount]
+    "lualatex pdfpc-movie-doc.dtx" \\
+    "makeindex -s gind.ist pdfpc-movie-doc.idx" \\
+    "makeindex -s gglo.ist -o pdfpc-movie-doc.gls pdfpc-movie-doc.glo" \\
+    "lualatex pdfpc-movie-doc.dtx" \\
+    "lualatex pdfpc-movie-doc.dtx"
+    
+    \smallskip
+    or just use the precompiled documentation shipped with the source files. \\
+    In both cases, copy the files "pdfpc-movie-doc.pdf" and "README.md" to \\
+    "TEXMF/doc/latex/pdfpc-movie/"
+    
+    
+    
+    \subsection*{License}
+    \addcontentsline{toc}{subsection}{License}
+    \textcopyright\ 2018 Sebastian Friedl
+    
+    \smallskip
+    This work may be distributed and/or modified under the conditions of the \LaTeX\ Project Public License, either version 1.3c of this license or (at your option) any later version.
+    
+    \smallskip
+    The latest version of this license is available at \url{http://www.latex-project.org/lppl.txt} and version 1.3c or later is part of all distributions of \LaTeX\ version 2008-05-04 or later.
+    
+    \smallskip
+    This work has the LPPL maintenace status \enquote*{maintained}. \\
+    Current maintainer of this work is Sebastian Friedl.
+    
+    \medskip
+    This work consists of the following files:
+    \begin{itemize}\itemsep 0pt
+        \item "pdfpc-movie.dtx",
+        \item "pdfpc-movie.ins",
+        \item "pdfpc-movie-doc.dtx" and
+        \item the derived file "pdfpc-movie.sty".
+    \end{itemize}
+
+
+
+
+
+    % DOCUMENTATION PART ----------------------------------------------------------------------
+    \clearpage
+    \part{The documentation}
+    \section*{Loading \sty{pdfpc-movie}}
+    \addcontentsline{toc}{subsection}{Loading \sty{pdfpc-movie}}
+    Load \sty{pdfpc-movie} as any other package by adding "\usepackage{pdfpc-movie}" to your preamble.
+    There are no package options available.
+    
+    
+    \section*{Including movie files}
+    \addcontentsline{toc}{subsection}{Including movie files}
+    The package provides a "\pdfpcmovie" command using the syntax
+    \begin{center}\DescribeMacro{\pdfpcmovie}%
+        "\pdfpcmovie["\param{options}"]{"\param{poster material}"}{"\param{path to movie file}"}"
+    \end{center}
+    
+    It creates a hyperlink to a movie with \param{path to movie file} being the path of the movie file relative to the PDF it is linked from. These hyperlinks are evaluated by "pdfpc", so that the movie (usually) starts playing when clicking onto \param{poster material}. \\
+    It will \emph{not} embed the movie into the PDF file in the sense that it is part of the "foo.pdf" file. Hence, the file must be copied and passed along with the PDF file in a manner allowing the viewer application to find the file at \param{path to movie file}. \\
+    As a recommendation, \param{path to movie file} should \emph{not} contain any \enquote{special} characters or spaces.
+    
+    \bigskip
+    The \param{poster material} is placed inside a "\hbox" for determining and changing the space occupied by the poster material; therefore, it is not possible to insert any line breaks or similar \LaTeX\ code not allowed inside "\hbox"es. \\
+    The movie will playback in the area taken by the \param{poster material} or set via the "width"/"height" keys. Using a frame of the movie as \param{poster material} will ensure the correct aspect ratio.
+    
+    \bigskip
+    The following \param{options} may be given as comma-separated list:
+    \begin{description}\itemsep0pt
+        \item[\texttt{width=\param{\TeX\ dimension}}]%
+            Overrides the width of \param{poster material} and sets it to the given \param{\TeX~dimension}
+        
+        \item[\texttt{height=\param{\TeX\ dimension}}]%
+            Overrides the height of \param{poster material} and sets it to the given \param{\TeX~dimension}
+        
+        \item[\texttt{depth=\param{\TeX\ dimension}}]%
+            Overrides the depth of \param{poster material} and sets it to the given \param{\TeX~dimension}
+        
+        \item[\texttt{autostart}]%
+            Causes the movie to start playing immediately when the page is shown. \\[\smallskipamount]
+            A test with version 4.1.2 of "pdfpc" lead to the result that it is possible to autostart multiple movies placed on the same page; however, it turned out that they didn't play synchronously, but slightly \enquote{shifted} (by approximately 0.25\,s).
+            
+        \item[\texttt{loop}]
+            Let the movie start again when the end has been reached. \\
+            Normally, the movie just stops there.
+        
+        \item[\texttt{noprogress}]
+            Instructs "pdfpc" to avoid showing the progress bar below the movie. \\
+            As of "pdfpc" version 4.1.2, the progress bar will still be shown when the cursor is moved across the movie's bottom margin.
+        
+        \item[\texttt{start=\param{time}}]
+            Makes the movie start at \param{time}~seconds. \\
+            \param{time} has to be an integer value without suffixes. For example, "start=2" is valid, while "start=4.2" and "start=1s" aren't.
+        
+        \item[\texttt{stop=\param{time}}]
+            Makes the movie stop (and eventually restart) when the playback position has reached \param{time}~seconds. \\
+            As above, \param{time} has to be an integer value without suffixes.
+    \end{description}
+    
+    If you don't need any options, you may omit the optional "["\param{options}"]" parameter.
+    
+    
+    \subsubsection*{Examples}
+    "\pdfpcmovie{\includegraphics[width=\textwidth]{foo}}{foo.mp4}"
+    
+    {\leftskip2.5em%
+        Creates a link to the movie "foo.mp4", using an image as poster material. \\
+        The poster image will be replaced by the movie when clicking it.
+    \par}
+    
+    
+    \medskip
+    "\pdfpcmovie[autostart, width=8cm, height=4.5cm]{Restart}{bar.avi}"
+    
+    {\leftskip2.5em%
+        Creates a link to the movie "bar.avi". \\
+        The movie is started as soon as the page is displayed and takes an area of 8\,cm width and 4.5\,cm height. \\
+        The movie stops after playing.
+    \par}
+
+
+    \medskip
+    "\pdfpcmovie[autostart, start=2, stop=5, loop]%" \\
+    "  {\includegraphics[height=3cm]{res/baz}}{res/baz.mov}"
+    
+    {\leftskip2.5em%
+        Creates a link to the movie "baz.mov" residing in the sub-directory "res/". \\
+        As soon as the page is displayed, the movie starts at 2~seconds and restarts when the playback position has reached 5~seconds.
+    \par}
+    
+    
+    
+    
+    
+    % Start determining the checksum from here
+    \StopEventually{%
+        \clearpage
+        \PrintChanges}
+    \clearpage
+    
+    
+    
+    
+    \part{The package code}
+    \CodelineNumbered
+    \DocInput{pdfpc-movie.dtx}
+    
+    
+    \Finale
+\end{document}
+


Property changes on: trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie-doc.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie.dtx	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie.dtx	2018-07-21 20:20:36 UTC (rev 48245)
@@ -0,0 +1,234 @@
+%\iffalse
+%<*package>
+%% \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         \~}
+%</package>
+%\fi
+%\iffalse
+%  Doc-Source file to use with LaTeX2e
+%  Copyright (C) 2018 Sebastian Friedl
+%
+%  This work is subject to the LaTeX Project Public License, Version 1.3c or -- at
+%  your option -- any later version of this license.
+%  This work consists of the files pdfpc-movie.dtx, pdfpc-movie.ins, pdfpc-movie-doc.dtx
+%  and the derived file pdfpc-movie.sty.
+%
+%  This work has the LPPL maintenance status 'maintained'.
+%  Current maintainer of the work is Sebastian Friedl.
+%
+%  -------------------------------------------------------------------------------------------
+%
+%  Provides a \pdfpcmovie command for hyperlinking movies in a way compatible to the
+%  PDF Presenter Console.
+%
+%  -------------------------------------------------------------------------------------------
+%
+%  Please report bugs and other problems as well as suggestions for improvements
+%  to my email address (sfr682k at t-online.de).
+%
+%  -------------------------------------------------------------------------------------------
+%\fi
+%
+%
+%
+% Identify the package and force \LaTeXe:
+%    \begin{macrocode}
+\ProvidesPackage{pdfpc-movie}%
+    [2018/07/21 v1.0 pdfpc compatible hyperlinking of movies]
+\NeedsTeXFormat{LaTeX2e}
+%    \end{macrocode}
+%
+% Require additional packages needed by \sty{pdfpc-movie}:
+%    \begin{macrocode}
+\RequirePackage{etoolbox}
+\AtEndPreamble{\RequirePackage{hyperref}}
+\RequirePackage{pgfkeys}
+%    \end{macrocode}
+%
+%
+% \subsubsection*{Variables and options}
+% Define some internal boolean variables required to assemble the URL parameters:
+%    \begin{macrocode}
+\newif\if at pdfpcmovie@autostart
+\newif\if at pdfpcmovie@loop
+\newif\if at pdfpcmovie@noprogress
+%    \end{macrocode}
+%
+% Define a counter for storing the number of non-processed options:
+%    \begin{macrocode}
+\newcount\pdfpcmovie at remopts
+%    \end{macrocode}
+%
+% Define a box and some dimensions to override the poster material's size:
+%    \begin{macrocode}
+\newbox\pdfpcmovie at posterbox
+\newdimen\pdfpcmovie at posterwd
+\newdimen\pdfpcmovie at posterht
+\newdimen\pdfpcmovie at posterdp
+%    \end{macrocode}
+%
+% Define the keys available as optional arguments of the "\pdfpcmovie" command.
+% Each key requiring additional URL parameters advances "\pdfpcmovie at remopts" by "1":
+%    \begin{macrocode}
+\pgfkeys{%
+    /pdfpc-movie/width/.cd, .value required,
+        .code={\pdfpcmovie at posterwd=#1\relax},
+    /pdfpc-movie/height/.cd, .value required,
+        .code={\pdfpcmovie at posterht=#1\relax},
+    /pdfpc-movie/depth/.cd, .value required,
+        .code={\pdfpcmovie at posterdp=#1\relax},
+    /pdfpc-movie/autostart/.cd, .value forbidden,
+        .code={%
+            \@pdfpcmovie at autostarttrue
+            \advance\pdfpcmovie at remopts 1\relax},
+    /pdfpc-movie/loop/.cd, .value forbidden,
+        .code={%
+            \@pdfpcmovie at looptrue
+            \advance\pdfpcmovie at remopts 1\relax},
+    /pdfpc-movie/noprogress/.cd, .value forbidden,
+        .code={%
+            \@pdfpcmovie at noprogresstrue
+            \advance\pdfpcmovie at remopts 1\relax},
+    /pdfpc-movie/start/.cd, .value required,
+        .code={%
+            \def\pdfpcmovie at start{#1}
+            \advance\pdfpcmovie at remopts 1\relax},
+    /pdfpc-movie/stop/.cd, .value required,
+        .code={%
+            \def\pdfpcmovie at stop{#1}
+            \advance\pdfpcmovie at remopts 1\relax},
+}
+%    \end{macrocode}
+%
+%
+%
+% \subsubsection*{The \texttt{\textbackslash pdfpcmovie} macro}
+% \begin{macro}{\pdfpcmovie}
+% First, "\def" is used to ensure that there is a "\pdfpcmovie" command to (re-)define:
+%    \begin{macrocode}
+\def\pdfpcmovie{}
+\renewcommand{\pdfpcmovie}[3][]{%
+%    \end{macrocode}
+%
+% Leave vertical mode to ensure correct placement of the movie box
+% if "\pdfpcmovie" is used at the beginning of a paragraph:
+%    \begin{macrocode}
+    \leavevmode%
+%    \end{macrocode}
+%
+% Check whether the requested movie file is present. Emit a warning if it's not:
+%    \begin{macrocode}
+    \IfFileExists{\@currdir #3}{}{\PackageWarning{pdfpc-movie}{%
+            The movie file "#3" could not be found in the current
+            directory, where it must reside for viewing.}%
+    }%
+%    \end{macrocode}
+%
+%
+% Create a box with the poster content and determine its size:
+%    \begin{macrocode}
+    \setbox\pdfpcmovie at posterbox=\hbox{#2}%
+%    \end{macrocode}
+%
+% Reset all variables to their default values. \\
+% After that, the optional argument containing all options gets processed:
+%    \begin{macrocode}
+    \@pdfpcmovie at autostartfalse%
+    \@pdfpcmovie at loopfalse%
+    \@pdfpcmovie at noprogressfalse%
+    \let\pdfpcmovie at start\@empty%
+    \let\pdfpcmovie at stop\@empty%
+    \pdfpcmovie at posterwd=\wd\pdfpcmovie at posterbox%
+    \pdfpcmovie at posterht=\ht\pdfpcmovie at posterbox%
+    \pdfpcmovie at posterdp=\dp\pdfpcmovie at posterbox%
+    %
+    \pdfpcmovie at remopts=0%
+    \pgfkeys{/pdfpc-movie/.cd, #1}%
+%    \end{macrocode}
+%
+% All hyperlink arguments appended to the file name are stored in the "\pdfpcmovie at params" variable.
+% For every specified option, the respective hyperlink code is appended. \\
+% If there are non-processed arguments remaining, an "&" separator is appended:
+%    \begin{macrocode}
+    \ifnum\pdfpcmovie at remopts>0\def\pdfpcmovie at params{?}%
+    \else\def\pdfpcmovie at params{}%
+    \fi%
+    %
+    \if at pdfpcmovie@autostart%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params autostart}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    \if at pdfpcmovie@loop%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params loop}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    \if at pdfpcmovie@noprogress%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params noprogress}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    \ifx\pdfpcmovie at start\@empty\else%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params start=\pdfpcmovie at start}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    \ifx\pdfpcmovie at stop\@empty\else%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params stop=\pdfpcmovie at stop}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    %
+    %
+%    \end{macrocode}
+%
+% Set the size of the poster material box \dots
+%    \begin{macrocode}
+    \wd\pdfpcmovie at posterbox=\pdfpcmovie at posterwd%
+    \ht\pdfpcmovie at posterbox=\pdfpcmovie at posterht%
+    \dp\pdfpcmovie at posterbox=\pdfpcmovie at posterdp%
+%    \end{macrocode}
+%
+% \dots\ and -- last but not least -- create the hyperlink:
+%    \begin{macrocode}
+    \href{run:#3\pdfpcmovie at params}{\box\pdfpcmovie at posterbox}%
+}
+%    \end{macrocode}
+% \end{macro}
+%
+%
+%
+% \subsubsection*{Famous last words}
+% Enough code for this package. "\endinput".
+%    \begin{macrocode}
+\endinput
+%    \end{macrocode}


Property changes on: trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie.dtx
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie.ins	                        (rev 0)
+++ trunk/Master/texmf-dist/source/latex/pdfpc-movie/pdfpc-movie.ins	2018-07-21 20:20:36 UTC (rev 48245)
@@ -0,0 +1,41 @@
+\input docstrip
+
+\preamble
+ pdfpc-movie.dtx
+ Copyright 2018 Sebastian Friedl
+
+ This work may be distributed and/or modified under the
+ conditions of the LaTeX Project Public License, either version 1.3c
+ of this license of (at your option) any later version.
+ The latest version of this license is in
+   http://www.latex-project.org/lppl.txt
+ and version 1.3c or later is part of all distributions of LaTeX
+ version 2008/05/04 or later.
+
+ This work has the LPPL maintenance status 'maintained'.
+ Current maintainer of the work is Sebastian Friedl
+
+ This work consists of the files pdfpc-movie.dtx, pdfpc-movie.ins,
+ pdfpc-movie-doc.dtx and the derived file pdfpc-movie.sty
+ 
+\endpreamble
+
+\askforoverwritefalse
+
+
+
+
+\generate
+{%
+  \file
+  {pdfpc-movie.sty}%
+  {%
+   \usepreamble\defaultpreamble
+   \usepostamble\defaultpostamble
+   \from{pdfpc-movie.dtx}{pdfpc-movie.sty,package}%
+  }%
+}
+
+
+\endbatchfile
+

Added: trunk/Master/texmf-dist/tex/latex/pdfpc-movie/pdfpc-movie.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/pdfpc-movie/pdfpc-movie.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/pdfpc-movie/pdfpc-movie.sty	2018-07-21 20:20:36 UTC (rev 48245)
@@ -0,0 +1,154 @@
+%%
+%% This is file `pdfpc-movie.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pdfpc-movie.dtx  (with options: `pdfpc-movie.sty,package')
+%%  pdfpc-movie.dtx
+%%  Copyright 2018 Sebastian Friedl
+%% 
+%%  This work may be distributed and/or modified under the
+%%  conditions of the LaTeX Project Public License, either version 1.3c
+%%  of this license of (at your option) any later version.
+%%  The latest version of this license is in
+%%    http://www.latex-project.org/lppl.txt
+%%  and version 1.3c or later is part of all distributions of LaTeX
+%%  version 2008/05/04 or later.
+%% 
+%%  This work has the LPPL maintenance status 'maintained'.
+%%  Current maintainer of the work is Sebastian Friedl
+%% 
+%%  This work consists of the files pdfpc-movie.dtx, pdfpc-movie.ins,
+%%  pdfpc-movie-doc.dtx and the derived file pdfpc-movie.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-movie}%
+    [2018/07/21 v1.0 pdfpc compatible hyperlinking of movies]
+\NeedsTeXFormat{LaTeX2e}
+\RequirePackage{etoolbox}
+\AtEndPreamble{\RequirePackage{hyperref}}
+\RequirePackage{pgfkeys}
+\newif\if at pdfpcmovie@autostart
+\newif\if at pdfpcmovie@loop
+\newif\if at pdfpcmovie@noprogress
+\newcount\pdfpcmovie at remopts
+\newbox\pdfpcmovie at posterbox
+\newdimen\pdfpcmovie at posterwd
+\newdimen\pdfpcmovie at posterht
+\newdimen\pdfpcmovie at posterdp
+\pgfkeys{%
+    /pdfpc-movie/width/.cd, .value required,
+        .code={\pdfpcmovie at posterwd=#1\relax},
+    /pdfpc-movie/height/.cd, .value required,
+        .code={\pdfpcmovie at posterht=#1\relax},
+    /pdfpc-movie/depth/.cd, .value required,
+        .code={\pdfpcmovie at posterdp=#1\relax},
+    /pdfpc-movie/autostart/.cd, .value forbidden,
+        .code={%
+            \@pdfpcmovie at autostarttrue
+            \advance\pdfpcmovie at remopts 1\relax},
+    /pdfpc-movie/loop/.cd, .value forbidden,
+        .code={%
+            \@pdfpcmovie at looptrue
+            \advance\pdfpcmovie at remopts 1\relax},
+    /pdfpc-movie/noprogress/.cd, .value forbidden,
+        .code={%
+            \@pdfpcmovie at noprogresstrue
+            \advance\pdfpcmovie at remopts 1\relax},
+    /pdfpc-movie/start/.cd, .value required,
+        .code={%
+            \def\pdfpcmovie at start{#1}
+            \advance\pdfpcmovie at remopts 1\relax},
+    /pdfpc-movie/stop/.cd, .value required,
+        .code={%
+            \def\pdfpcmovie at stop{#1}
+            \advance\pdfpcmovie at remopts 1\relax},
+}
+\def\pdfpcmovie{}
+\renewcommand{\pdfpcmovie}[3][]{%
+    \leavevmode%
+    \IfFileExists{\@currdir #3}{}{\PackageWarning{pdfpc-movie}{%
+            The movie file "#3" could not be found in the current
+            directory, where it must reside for viewing.}%
+    }%
+    \setbox\pdfpcmovie at posterbox=\hbox{#2}%
+    \@pdfpcmovie at autostartfalse%
+    \@pdfpcmovie at loopfalse%
+    \@pdfpcmovie at noprogressfalse%
+    \let\pdfpcmovie at start\@empty%
+    \let\pdfpcmovie at stop\@empty%
+    \pdfpcmovie at posterwd=\wd\pdfpcmovie at posterbox%
+    \pdfpcmovie at posterht=\ht\pdfpcmovie at posterbox%
+    \pdfpcmovie at posterdp=\dp\pdfpcmovie at posterbox%
+    %
+    \pdfpcmovie at remopts=0%
+    \pgfkeys{/pdfpc-movie/.cd, #1}%
+    \ifnum\pdfpcmovie at remopts>0\def\pdfpcmovie at params{?}%
+    \else\def\pdfpcmovie at params{}%
+    \fi%
+    %
+    \if at pdfpcmovie@autostart%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params autostart}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    \if at pdfpcmovie@loop%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params loop}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    \if at pdfpcmovie@noprogress%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params noprogress}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    \ifx\pdfpcmovie at start\@empty\else%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params start=\pdfpcmovie at start}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    \ifx\pdfpcmovie at stop\@empty\else%
+        \edef\pdfpcmovie at params{\pdfpcmovie at params stop=\pdfpcmovie at stop}%
+        \advance\pdfpcmovie at remopts -1\relax%
+        \ifnum\pdfpcmovie at remopts>0%
+            \edef\pdfpcmovie at params{\pdfpcmovie at params\&}%
+        \fi%
+    \fi%
+    %
+    %
+    %
+    \wd\pdfpcmovie at posterbox=\pdfpcmovie at posterwd%
+    \ht\pdfpcmovie at posterbox=\pdfpcmovie at posterht%
+    \dp\pdfpcmovie at posterbox=\pdfpcmovie at posterdp%
+    \href{run:#3\pdfpcmovie at params}{\box\pdfpcmovie at posterbox}%
+}
+\endinput
+%%
+%% End of file `pdfpc-movie.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/pdfpc-movie/pdfpc-movie.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-07-21 20:19:53 UTC (rev 48244)
+++ trunk/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc	2018-07-21 20:20:36 UTC (rev 48245)
@@ -832,6 +832,7 @@
 depend pdfmarginpar
 depend pdfoverlay
 depend pdfpagediff
+depend pdfpc-movie
 depend pdfprivacy
 depend pdfreview
 depend pdfscreen

Added: trunk/Master/tlpkg/tlpsrc/pdfpc-movie.tlpsrc
===================================================================


More information about the tex-live-commits mailing list