Animate a version-controlled PDF/LaTeX paper!
Project description
paper-animator
Animate the progression of your version-controlled paper <3
Installation
pip install paper-animator
or from source, with poetry
git clone https://github.com/sneakers-the-rat/paper-animator
cd paper-animator
poetry install
Usage
Simplest case, just point it to a .pdf file in some git repository :)
paper-animator /some/repo/paper.pdf
That method uses the .pdf checked in for each commit in the main
branch.
If you point it to a .tex file, it will attempt to build it for you! (experimental)
paper-animator /some/repo/paper.tex --latex_builder pdflatex
Use a repo that's not local! Give the file as a path relative to the root
paper-animator subdirectory/paper.pdf --repo https://github.com/username/example_repo --branch main
See paper-animator --help
for all options
$ paper-animator --help
usage: paper-animator [-h] [--output OUTPUT] [--repo REPO] [--branch BRANCH] [--tmp_dir TMP_DIR] [--latex_builder {pdflatex,xetex}] [--frame_duration FRAME_DURATION] [--video_fps VIDEO_FPS]
[--resolution RESOLUTION] [--grid_shape GRID_SHAPE] [--dont_cleanup]
input
Convert a version controlled paper to a video!
positional arguments:
input Input file, a .pdf or .tex file!
optional arguments:
-h, --help show this help message and exit
--output OUTPUT Output video file, if absent, input with .mp4 extension, default: None
--repo REPO URL to a git repository to clone, if absent, get repo from input file, default: None
--branch BRANCH Which branch to use, default: main
--tmp_dir TMP_DIR Temporary directory to use, otherwise create one in ~/, default: None
--latex_builder {pdflatex,xetex}
if input is a latex file, which builder to use with latexmk, default: pdflatex
--frame_duration FRAME_DURATION
Duration (in s) to show each commit, default: 1
--video_fps VIDEO_FPS
fps of output video, default: 30
--resolution RESOLUTION
Resolution of plots, default: (1920, 1080)
--grid_shape GRID_SHAPE
Manually override (rows,cols) of figure layout, default: None
--dont_cleanup Delete temporary folder after completion
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
paper-animator-0.0.1.tar.gz
(1.6 MB
view hashes)
Built Distribution
Close
Hashes for paper_animator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d640cfbaa92defb29f79dafdf346ff9bfdd55b21a841847d50d4d9f9a7821559 |
|
MD5 | 4f1cdb6d62e16f758aab7970103e292a |
|
BLAKE2b-256 | 7d6ba5d3fb1063f1b89c8d4abe071b5af4e8dfe208131d4bb25cd38b4c6e7c0a |