Package: pympress
What is Pympress?Pympress is a PDF presentation tool designed for dual-screen setups such as presentations and public talks.
Highly configurable, fully-featured, and portableIt comes with many great features (more below):supports embedded gifs (out of the box), videos, and audios (with VLC or Gstreamer integration)text annotations displayed in the presenter windownatively supports beamer'snotes on second screen, as well as Libreoffice notes pages!Pympress is a free software, distributed under the terms of the GPL license (version 2 or, at your option, any later version).Pympress was originally created and maintained bySchnouki, onhis repo.Here is what the 2 screen setup looks like, with a big notes slide next to 2 small slides (current and next) on the presenter side:UsageOpening a fileSimply start Pympress and it will ask you what file you want to open.
You can also start pympress from the command line with a file to open like so:pympress slides.pdforpython3 -m pympress slides.pdfFunctionalitiesAll functionalities are available from the menus of the window with slide previews. Don't be afraid to experiment with them!Keyboard shortcuts are also listed in these menus. Some more usual shortcuts are often available, for exampleCtrl+L, andF11also toggle fullscreen, though the main shortcut is justF.A few of the fancier functionalities are listed here:Two-screen display: See on your laptop or tablet display the current slide, the next slide, the talk time and wall-clock time, and annotations (either PDF annotations, beamer notes on second slide, or Libreoffice notes pages).
The position of the beamer or Libreoffice notes in the slide is detected automatically and can be overridden via a menu option.If you do not want to use second-slide beamer notes but prefer to have notes on their own pages, you can enable auto-detection of these notes.
Use the following snippet that prefixes the page labels withnotes:on notes pages:\addtobeamertemplate{note page}{}{\thispdfpagelabel{notes:\insertframenumber}}Media support: supports playing video, audio, and gif files embedded in (or linked from) the PDF file, with optional start/end times and looping.Highlight mode: Allows one to draw freehand on the slide currently on screen.Go To Slide: To jump to a selected slide without flashing through the whole presentation on the projector, pressGor click the "current  slide" box.
UsingJor clicking the slide label will allow you to navigate slide labels instead of page numbers, useful e.g. for multi-page slides from beamer\pause.A spin box will appear, and you will be able to navigate through your slides in the presenter window only by scrolling your mouse, with theHome/Up/Down/Endkeys,
with the + and - buttons of the spin box, or simply by typing in the number of the slide. PressEnterto validate going to the new slide orEscto cancel.Deck Overview: PressingDwill open an overview of your whole slide deck, and any slide can be opened from can simply clicking it.Software pointer: Clicking on the slide (in either window) while holdingctrldown will display a software laser pointer on the slide. Or pressLto permanently switch on the laser pointer.Talk time breakdown: ThePresentation > Timing Breakdownmenu item displays a breakdown of how much time was spent on each slide, with a hierarchical breakdown per chapters/sections/etc. if available in the PDF.Automatic file reloading: If the file is modified, pympress will reload it (and preserve the current slide, current time, etc.)Big button mode: Add big buttons (duh) for touch displays.Swap screens: If Pympress mixed up which screen is the projector and which is not, pressSAutomatic full screen: pympress will automatically put the content window fullscreen on your non-primay screen when:connecting a second screen,extending your desktop to a second screen that was mirroring your main screen,when starting pympress on a two-screen display.
To disable this behaviour, untick “Content fullscreen” under the “Starting configuration” menu.Estimated talk time: Click theTime estimationbox and set your planned talk duration. The color will allow you to see at a glance how much time you have left.Adjust screen centering: If your slides' form factor doesn't fit the projectors' and you don't want the slide centered in the window, use the "Screen Center" option in the "Presentation" menu.Resize Current/Next slide: You can drag the bar between both slides on the Presenter window to adjust their relative sizes to your liking.Caching: For efficiency, Pympress caches rendered pages (up to 200 by default). If this is too memory consuming for you, you can change this number in the configuration file.Configurability: Your preferences are saved in a configuration file, and many options are accessible there directly. These include:Customisable key bindings (or shortcuts),Configurable layout of the presenter window, with 1 to 16 next slides previewand many more.See theconfiguration file documentationfor more details,Editable PDF annotations: Annotations can be added, removed, or changed, and the modified PDF files can be savedAutomatic next slide and loopingCommand line arguments-h, --help: Shows a list of all command line arguments.-t mm[:ss], --talk-time=mm[:ss]: The estimated (intended) talk time in minutes and optionally seconds.-n position, --notes=position: Set the position of notes on the pdf page (none, left, right, top, or bottom). Overrides the detection from the file.--log=level: Set level of verbosity in log file (DEBUG, INFO, WARNING, ERROR).Media and autoplayTo enable media playback, you need to have either:Gstreamer installed (enabled by default), with its gtk plugin (libgstgtk) which is sometimes packaged separately (e.g. asgst-plugin-gtkorgstreamer1.0-gtk3), and plugins gstreamer-good/-bad/-ugly based on which codecs you need, orVLC installed (and the python-vlc module), withenabled = onunder the[vlc]section of your config file.On macOS, issues with the gstreamer brew formula may require users to setGST_PLUGIN_SYSTEM_PATHmanually. For default homebrew configurations the value should be/opt/homebrew/lib/gstreamer-1.0/. Make sure to set this environmental variable globally, or pympress might not pick it up.To produce PDFs with media inclusion, the ideal method is to use beamer’s multimedia package, always with\movie:\documentclass{beamer}\usepackage{multimedia}\begin{frame}{Just a mp4 here}\centering\movie[width=0.3\textwidth]{\includegraphics[width=0.9\textwidth]{frame1.png}}{movie.mp4}\movie[width=0.3\textwidth]{}{animation.gif}\movie[width=0.3\textwidth]{}{ding.ogg}\end{frame}If you desire autoplay, ensure you have pympress ≥ 1.7.0 and poppler ≥ 21.04, and use themovie15package as follows:\documentclass{beamer}\usepackage{movie15}\begin{document}\begin{frame}\begin{center}\includemovie[attach=false,autoplay,text={%\includegraphics{files/mailto.png}%}]{0.4\linewidth}{0.3\linewidth}{files/random.mpg}\end{center}\end{frame}\end{document}DependenciesPympress relies on:Python (version ≥ 3.4, python 2.7 is supported only until pympress 1.5.1, and 3.x < 3.4 until v1.6.4).Poppler, the PDF rendering library.Gtk+ 3, a toolkit for creating graphical user interfaces, andits dependencies, specifically:Cairo(and python bindings for cairo), the graphics library which is used to pre-render and draw over PDF pages.Gdk, a lower-level graphics library to handle icons.PyGi, the python bindings for Gtk+3. PyGi is also known aspygobject3, justpygobjectorpython3-gi.Introspection bindings for poppler may be shipped separately, ensure you have those as well (typelib-1_0-Poppler-0_18on OpenSUSE,gir1.2-poppler-0.18on Ubuntu)optionallyVLC, to play videos (with the same bitness as Python)
and thepython-vlcbindings.optionally Gstreamer to play videos (which is a Gtk library)On linux platformsThe dependencies are often installed by default, or easily available through your package or software manager.
For example, on ubuntu, you can run the following as root to make sure you have all the prerequisitesassuming you use python3:apt-getinstallpython3python3-piplibgtk-3-0libpoppler-glib8libcairo2python3-gipython3-cairopython3-gi-cairogobject-introspectionlibgirepository-1.0-1libgirepository1.0-devgir1.2-gtk-3.0gir1.2-poppler-0.18Different distributions might have different package naming conventions, for example the equivalent on OpenSUSE would be:zypperinstallpython3python3-piplibgtk-3-0libpoppler-glib8libcairo2python3-gobjectpython3-gobject-Gdkpython3-cairopython3-gobject-cairotypelib-1_0-GdkPixbuf-2_0typelib-1_0-Gtk-3_0typelib-1_0-Poppler-0_18On CentOS/RHEL/Fedora the dependencies would be:yuminstallpython36python3-pipgtk3poppler-glibcairogdk-pixbuf2python3-gobjectpython3-cairoAnd on Arch Linux:pacman-S--neededpythonpython-pipgtk3popplercairogobject-introspectionpoppler-glibpython-gobjectgst-plugin-gtkOn macOSDependencies can be installed usingHomebrew:brewinstall--only-dependenciespympressOn windowsThebinary installer for windowscomes with pympress and all its dependencies packaged.Alternately, in order to install from pypi or from source on windows, there are two ways to get the dependencies:using MSYS2 (replace x86_64 with i686 if you're using a 32 bit machine).Warning:this can take a substantial amount of disk size as it requires a full software distribution and building platform.pacman-S--neededmingw-w64-x86_64-gtk3mingw-w64-x86_64-cairomingw-w64-x86_64-popplermingw-w64-x86_64-python3mingw-w64-x86_64-vlcpython3-pipmingw-w64-x86_64-python3-pipmingw-w64-x86_64-python3-gobjectmingw-w64-x86_64-python3-cairoThis is also the strategy used to automatebuilds on appveyor.Using PyGobjectWin32.Be sure to check the supported Python versions (up to 3.4 at the time of writing), they appear in the FEATURES list in the linked page.Install nativepython for windowsGet GTK+3, Poppler and their python bindings by executingthe PyGi installer.  Be sure to tick all the necessary dependencies in the installer (Poppler, Cairo, Gdk-Pixbuf).Alternately, you can build your Gtk+3 stack from source using MSVC, seethe Gnome wikiandthis python script that compiles the whole Gtk+3 stack.
This strategy has not been used successfully yet, due to problems building Poppler with its introspection bidings (i.e. typelib) − see#109.ContributingFeel free to clone this repo and use it, modify it, redistribute it, etc, under the GPLv2+.
Anumber of contributorshave taken part in the development of pympress and submitted pull requests to improve it.Be respectful of everyone and keep this community friendly, welcoming, and harrasment-free.
Abusive behaviour will not be tolerated, and can be reported by email atme@cimba.li− wrongdoers may be permanently banned.Pympress has inline sphinx documentation (Google style, contains rst syntax), and thedocs generated from it are hosted on the github pages of this repo.TranslationsWe thank the many contributors of translations: 
Agnieszka,
atsuyaw,
Cherrywoods,
Dongwang,
Estel-f,
Fabio Pagnotta,
Ferdinand Fichtner,
Frederik. blome,
FriedrichFröbel,
GM,
He. yifan. xs,
Jaroslav Svoboda,
Jeertmans,
Kristýna,
lazycat,
Leonvincenterd,
LogCreative,
Lorenzo. pacchiardi,
Luis Sibaja,
Marcin Dohnalik,
marquitul,
Morfit,
Mzn,
Nico,
Ogawa,
Paul,
Pierre BERTHOU,
polaksta,
Saulpierotti,
Shebangmed,
Stanisław Polak,
susobaco,
Tapia,
Tejas,
Timo Zhang,
Tkoyama010,
Toton95,
Vojta Netrh,
Vulpeculus,
and  Cimbali.If you also want to add or contribute to a translation, checkpympress’ page on POEditor.
Note that old strings are kept and taggedremoved, to give context and keep continuity between translations of succcessive versions.
This meansremovedstrings are unused and do not need translating.PackagesOfficial releases are made toPyPIand withgithub releases.
The community maintains a number of other packages or recipes to install pympress (seeInstall section). Any additions welcome.