Skip to content

Commit

Permalink
Autogen flowchart try 2 (use ghostscript)
Browse files Browse the repository at this point in the history
  • Loading branch information
vEnhance committed Jul 30, 2024
1 parent 45e7432 commit b012969
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: |
latexmk asymptote imagemagick
latexmk asymptote ghostscript
- name: Restore cache
uses: actions/cache/restore@v4
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- name: Compile flowchart
run: |
latexmk -pdflatex flowchart-only.tex
convert -density 300 -background white -alpha remove -alpha off flowchart-only.pdf flowchart.png
gs -dSAFER -r600 -sDEVICE=png256 -o flowchart.png flowchart-only.pdf
- name: Create dist folder
run: |
Expand Down
5 changes: 5 additions & 0 deletions export-flowchart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euxo pipefail

latexmk -pdflatex flowchart-only
gs -dSAFER -r600 -sDEVICE=png256 -o flowchart.png flowchart-only.pdf
Empty file modified print-toc.py
100644 → 100755
Empty file.

0 comments on commit b012969

Please sign in to comment.