Debian Codegraph @

texmf-dist/doc/latex/pdfpc/pdfpc-doc.tex

raw
1 % This file is part of pdfpc.
2 % Copyright (C) 2023 Evgeny Stambulchik
3 %
4 % This program is free software; you can redistribute it and/or modify
5 % it under the terms of the GNU General Public License as published by
6 % the Free Software Foundation; either version 3 of the License, or
7 % (at your option) any later version.
8 %
9 % This program is distributed in the hope that it will be useful,
10 % but WITHOUT ANY WARRANTY; without even the implied warranty of
11 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 % GNU General Public License for more details.
13 %
14 % You should have received a copy of the GNU General Public License along
15 % with this program; if not, write to the Free Software Foundation, Inc.,
16 % 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 % -----------------------------------------------------------------------------
18 %
19 % Allow for defining some meta data and simple textual notes for use
20 % with the pdfpc presentation application <https://pdfpc.github.io>.
21 %
22 % -----------------------------------------------------------------------------
23 %
24 % Inspired by Carsten Brandt's <https://github.com/cebe/pdfpc-latex-notes>.
25 %
26 % -----------------------------------------------------------------------------
27 %
28 % Please report bugs and other problems as well as suggestions for improvements
29 % to the issue tracker at github <https://github.com/pdfpc/pdfpc/>
30 %
31 % -----------------------------------------------------------------------------
32 \documentclass[11pt]{ltxdoc}
33
34 \usepackage{iftex}
35
36 \usepackage[english]{babel}
37
38 \usepackage{hyperref}
39
40 \usepackage{enumitem}
41
42 \newcommand*{\sty}[1]{\textsf{#1}}
43 \def\param#1%
44 {\textit{\rmfamily\mdseries\ensuremath{\langle}#1\ensuremath{\rangle}}}
45
46
47 \title{The \sty{pdfpc} package \\
48 {\large\url{https://github.com/pdfpc/latex-pdfpc}}}
49 \author{Evgeny Stambulchik}
50 \date{2023/10/21 (v0.7.1)}
51
52 \hypersetup{pdftitle={The pdfpc package}, pdfauthor={Evgeny Stambulchik}}
53
54 \setlist{noitemsep}
55
56 \begin{document}
57 \maketitle
58 \thispagestyle{empty}
59
60 \begin{abstract}
61 This package provides a convenient way to specify notes and to define certain meta properties of the presentation when used with \href{https://pdfpc.github.io}{PDF Presenter Console (\texttt{pdfpc})}, a GPLv3+ licensed multi-monitor PDF presentation viewer application available on GitHub\footnote{\url{https://pdfpc.github.io}}.
62 \end{abstract}
63
64
65 \clearpage
66
67 \section*{Dependencies and other requirements}
68
69 \sty{pdfpc} requires the use of \LaTeXe.
70
71 It depends on the following packages:
72
73 \begin{itemize}
74 \sffamily
75 \item kvoptions
76 \item xstring
77 \item iftex
78 \item hyperxmp
79 \end{itemize}
80
81 When using LuaTeX, it additionally depends on these packages:
82
83 \begin{itemize}
84 \sffamily
85 \item stringenc
86 \item pdftexcmds
87 \end{itemize}
88
89
90 \section*{License}
91
92 \textcopyright\ 2020--2023 Evgeny Stambulchik
93
94 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.
95
96 This work consists of the following files:
97
98 \begin{itemize}
99 \item ``pdfpc.sty''
100 \item ``pdfpc-doc.tex''
101 \item ``pdfpc-doc.pdf'' \emph{(compiled)}
102 \end{itemize}
103
104
105 \clearpage
106
107 \part{The documentation}
108 \section*{Loading \sty{pdfpc}}
109
110 Load \sty{pdfpc} by adding \cmd{\usepackage[\param{options}]\{pdfpc\}} to your preamble.
111 The following options may be given as comma-separated list:
112
113 \begin{table}[h]
114 \centering
115 \begin{tabular}{ l l }
116 \hline
117 Package option & Equivalent \texttt{pdfpc} flag \\
118 \hline
119 \texttt{duration=\textit{value}} & \texttt{--duration=\textit{value}} \\
120 \texttt{starttime=\textit{value}} & \texttt{--start-time=\textit{value}} \\
121 \texttt{endtime=\textit{value}} & \texttt{--end-time=\textit{value}} \\
122 \texttt{lastminutes=\textit{value}} & \texttt{--last-minutes=\textit{value}} \\
123 \texttt{enduserslide=\textit{value}} & \\
124 \texttt{notesposition=\textit{value}} & \texttt{--notes=\textit{value}} \\
125 \texttt{disablemarkdown} & \texttt{--note-format=plain} \\
126 \texttt{hidenotes} & \\
127 \texttt{overridenote} & \\
128 \texttt{defaulttransition=\textit{value}} & \texttt{--page-transition=\textit{value}} \\
129 \hline
130 \end{tabular}
131 \end{table}
132
133 Options should be given as a comma-separated list.
134 All options, aside from \texttt{overridenote}, can alternatively be set via a command of the form \cmd{\pdfpcsetup\{\param{option1=value1}[,~\ldots]\}}.
135
136 The meaning and possible values of most of these options are documented in the \textit{pdfpc(1)} man page, provided by the \texttt{pdfpc} program.
137 The rest are explained below.
138
139 To add a note to a slide, use \cmd{\pdfpcnote\{Text of a note\}}, which also supports Beamer's overlay specifications\footnote{See sections 3.10 and 9.2 of the \texttt{beamer} package documentation.}.
140 A line break in the body of the note can be inserted with \cmd{\\}.
141 To preserve a whitespace, e.g., to indent a nested list, preceed it by a backslash.
142 The notes are rendered according to the Markdown syntax by default.
143 If you prefer the plain text format (which was the case with \texttt{pdfpc}-4.4 and below), use the \texttt{disablemarkdown} option.
144
145 The pdfpc package can be used standalone or together with Beamer.
146 In the later case, it may be desirable to continue using the \cmd{\note} command.
147 To this end, the \texttt{overridenote} option should be provided.
148 Note, however, that this will work only in simple cases.
149
150 If you prefer full-featured Beamer notes rendered alongside the presentation (as with \cmd{\setbeameroption\{show notes on second screen\}}), the pdfpc package will autodetect this, so using the \texttt{--notes} command-line option is unnecessary.
151 To override the autodetection, use the \texttt{notesposition} option, accepting the same values (right/left/top/bottom/none) that Beamer natively supports.
152
153 When sharing slides, one may want to omit the (potentially private) notes, by using the \texttt{hidenotes} option.
154 Enabling it will disable notes, including Beamer notes if \texttt{overridenote} was specified.
155
156 Finally, be aware that some features are unsupported by old versions of the \texttt{pdfpc} console.
157 In particular, the \texttt{defaulttransition} option requires version 4.5 or later.
158
159 \StopEventually{%
160 \clearpage
161 \PrintChanges}
162 \clearpage
163
164 \Finale
165 \end{document}