Skip to content
Snippets Groups Projects
Commit 37d53a7c authored by Joshua Fogg's avatar Joshua Fogg
Browse files

Switched from `beamernotes` to `pdfpc`

parent 4ac2ffb7
No related branches found
No related tags found
No related merge requests found
...@@ -61,30 +61,30 @@ The default theme `\usetheme{edmaths}` gives is 'UoE Blue', `#00325F`, but there ...@@ -61,30 +61,30 @@ The default theme `\usetheme{edmaths}` gives is 'UoE Blue', `#00325F`, but there
These files are bundled with an example report and presentation, as well as a bibliography file for use across both. There are also simple examples of a [report](https://github.com/Foggalong/edinburgh-math-latex/wiki/Example-Report) and [presentation](https://github.com/Foggalong/edinburgh-math-latex/wiki/Example-Presentation) in the project wiki, as well as some [further formatting suggestions](https://github.com/Foggalong/edinburgh-math-latex/wiki/Further-Suggestions). These files are bundled with an example report and presentation, as well as a bibliography file for use across both. There are also simple examples of a [report](https://github.com/Foggalong/edinburgh-math-latex/wiki/Example-Report) and [presentation](https://github.com/Foggalong/edinburgh-math-latex/wiki/Example-Presentation) in the project wiki, as well as some [further formatting suggestions](https://github.com/Foggalong/edinburgh-math-latex/wiki/Further-Suggestions).
## Beamer Notes ## Presentation Notes
If you use [pdf-presenter-console](https://pdfpc.github.io/), a It's handy to be able to add slide notes which can be viewed while presenting. While there are [various ways](https://github.com/Foggalong/edinburgh-math-latex/wiki/Beamer-Notes) of doing this, [PDFPC](https://pdfpc.github.io/) is a presenter console with multi-monitor support and an [official package](https://github.com/pdfpc/latex-pdfpc) for adding such notes.
presenter console with multi-monitor support for PDF files, you can use
To use it simply add
```latex ```latex
\usepackage{beamernotes} \usepackage[overridenote=true]{pdfpc}
``` ```
and enter slide notes as in in the document header and enter slide notes as
```latex ```latex
\bnote{my notes} \note{Some wonderful note.}
``` ```
_after_ the `frame` you want to annotate. The contents will generate a `filename.pdfpc` file containing _after_ each `frame` you want to annotate. These notes will then be included as comments with the compiled PDF. Note that the only formatting supported is using `\\` to add newlines.
all notes to be shown by pdfpc. Note that **this does not support newlines**.
## Authors ## Authors
While [Josh Fogg](https://github.com/Foggalong) maintains these versions, they would not have been possible without the work of: While [Josh Fogg](https://github.com/Foggalong) maintains these versions, they would not have been possible without the work of:
- [Thomas Köppe](https://github.com/tkoeppe), wrote the original `edmaths` style file; - [Thomas Köppe](https://github.com/tkoeppe), wrote the original `edmaths` style file;
- [Saturnino Luz](https://www.ed.ac.uk/profile/saturnino-luz), created the original `beamernotes` and Beamer template for the [Usher Institute](https://www.ed.ac.uk/usher); - [Saturnino Luz](https://www.ed.ac.uk/profile/saturnino-luz), created the Beamer template for the [Usher Institute](https://www.ed.ac.uk/usher);
- [Ben Brown](https://github.com/bencwbrown), modified the Beamer theme for general UoE usage. - [Ben Brown](https://github.com/bencwbrown), modified the Beamer theme for general UoE usage.
Issues can be flagged [on GitHub](https://github.com/Foggalong/edinburgh-math-latex/issues) by [by email](mailto:j.fogg@ed.ac.uk). The license for the Beamer files is LPPL 3c. The licenses for all other files are [unknown](https://github.com/Foggalong/edinburgh-math-latex/issues/1). Issues can be flagged [on GitHub](https://github.com/Foggalong/edinburgh-math-latex/issues) by [by email](mailto:j.fogg@ed.ac.uk). The license for the Beamer files is LPPL 3c. The licenses for all other files are [unknown](https://github.com/Foggalong/edinburgh-math-latex/issues/1).
%% Package `beamernotes' v0.97
%%
%% A package for writing speaker notes to acompany LaTeX Beamer presentations. In doc.tex
%% containing a Beamer presentation, use the \bnote{} command to write any speaker notes.
%% When the file is compiled your notes on slides get converted automatically into a notes
%% file (doc.pdfpc), readable by pdf-presenter-console.
\begingroup
\catcode`\#=12
\gdef\slidenumberprefix{### }%
\endgroup
\typeout{Starting beamer notes.}
% Buffer to write notes into
\let\BeamerNotesBuffer\empty
% Keeps track of slide number
\newcounter{BeamerNotesCounter}
% Command for taking a note and adding it to the BeamerNotesBuffer
\newcommand{\bnote}[1]{
\typeout{Creating note: #1}
\stepcounter{BeamerNotesCounter}%
\xdef\BeamerNotesBuffer{\BeamerNotesBuffer
^^J\slidenumberprefix \theBeamerNotesCounter ^^J#1}%
\mode<article>{#1}
}
% Save contents of BeamerNotesBuffer to a file
\AtEndDocument{%
% open file for writing
\newwrite\file
\immediate\openout\file=\jobname.pdfpc
\immediate\write\file{
% pdfpc header
[file]^^J%
\jobname.pdf^^J%
[end_user_slide]^^J%
\theBeamerNotesCounter^^J%
% notes contents
[notes]%
\BeamerNotesBuffer
}
% save file
\closeout\file
}
\documentclass{beamer} \documentclass[notes]{beamer}
\usetheme{edmaths} \usetheme{edmaths}
\usepackage{beamernotes}
\usepackage{lipsum} \usepackage{lipsum}
\usepackage[overridenote=true]{pdfpc}
\pdfcompresslevel=9 \pdfcompresslevel=9
\pdfobjcompresslevel=3 \pdfobjcompresslevel=3
...@@ -17,8 +17,10 @@ ...@@ -17,8 +17,10 @@
\begin{frame} \begin{frame}
\titlepage{} \titlepage{}
\end{frame} \end{frame}
\bnote{ \note{
This generates notes for pdfpc. These notes also appear This generates notes for pdfpc. \\
\\
These notes also appear
on the handout/article versions. on the handout/article versions.
} }
...@@ -34,8 +36,8 @@ ...@@ -34,8 +36,8 @@
\item \lipsum[2] \item \lipsum[2]
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\bnote{ \note{
This is a note for the first slide. Mention how This is a note for the first slide. Mention how something happens.
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment