alpaylan/LaTeX Diff Viewer
Build a git-latexdiff PDF between two commits and share it as a PR comment + artifact.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 10, 2026
- License
- MIT
Pinned Snippet
uses: alpaylan/latex-diff-viewer@dcf8684e82c98a72d23ea84e281d59f267523255 # v1.1.11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| main | Main LaTeX file (overrides difftool.toml). | no | "" |
| build_command | Full-build command (overrides difftool.toml). | no | "" |
| build_dir | latexmk output directory (overrides difftool.toml). | no | "" |
| latexdiff_options | Extra flags passed to git-latexdiff (space separated). | no | "" |
| assets | Untracked asset globs to mirror into checkouts (comma/newline separated). | no | "" |
| config | Path to a difftool.toml/json (relative to the repo). | no | difftool.toml |
| base | Base ref to diff FROM. Defaults to the PR base. | no | "" |
| head | Compare ref to diff TO. Defaults to the PR head / current SHA. | no | "" |
| full | Also build a plain (no-diff) full PDF of the head commit. | no | true |
| comment | Post/update a comment on the PR with the result. | no | true |
| artifact_name | Name of the uploaded artifact. | no | latex-diff |
| image | Prebuilt tool image to run. | no | ghcr.io/alpaylan/latex-diff-viewer:v1 |
| github_token | Token used to post the PR comment. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| diff_pdf | Path to the generated diff PDF. |
| full_pdf | Path to the generated full PDF (if built). |
| changed_pages | Number of changed pages in the diff. |