Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Seri <[email protected]>
  • Loading branch information
mseri committed Sep 5, 2024
1 parent c5ee3f4 commit a62644e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/generate_pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ jobs:
# run: |
# tectonic hm.tex
# mv hm.pdf assets/hm-tg.pdf

- name: prepare sources
run: git apply hm.patch

- name: compile.sh
uses: dante-ev/latex-action@latest
Expand All @@ -84,7 +87,7 @@ jobs:
if-no-files-found: error

- name: Remove TeX Gyre font customizations, falls back to OpenDyslxic
run: sed -i.bak '11,13d' hm.tex
run: sed -i.bak '14,16d' hm.tex

# - name: Run Tectonic
# run: |
Expand All @@ -94,7 +97,10 @@ jobs:
- name: compile.sh again
uses: dante-ev/latex-action@latest
with:
entrypoint: ./compile.sh
root_file: hm.tex
compiler: lualatex
args: -interaction=nonstopmode -shell-escape
extra_system_packages: fonts-opendyslexic fonts-texgyre texlive-bibtex-extra biber

- name: rename od
run: mv hm.pdf assets/hm-od.pdf
Expand Down
17 changes: 17 additions & 0 deletions ci.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/hm.tex b/hm.tex
index 094b8dd..4402186 100644
--- a/hm.tex
+++ b/hm.tex
@@ -7,9 +7,9 @@
\usepackage[utf8]{inputenc}
\else
\usepackage{fontspec} % XeLaTeX or LuaLaTeX
- \setmainfont{OpenDyslexic}
- \setsansfont{OpenDyslexic}
- \setmonofont{OpenDyslexicMono}
+ \setmainfont[Path=/usr/share/fonts/opentype/opendyslexic/, Extension=.otf]{OpenDyslexic}
+ \setsansfont[Path=/usr/share/fonts/opentype/opendyslexic/, Extension=.otf]{OpenDyslexic}
+ \setmonofont[Path=/usr/share/fonts/opentype/opendyslexic/, Extension=.otf]{OpenDyslexicMono}

\setmainfont[Renderer=Basic, Numbers=OldStyle, Scale = 1.0]{TeX Gyre Pagella}
\setsansfont[Renderer=Basic, Scale=0.90]{TeX Gyre Heros}
3 changes: 0 additions & 3 deletions compile.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/env bash

if [ -n "$CI" ] || [ -n "$GITHUB_RUN_ID" ]; then
rm -rf /usr/share/fonts/woff/opendyslexic
fi
lualatex --interaction=nonstopmode hm.tex
bibtex hm
makeindex hm
Expand Down

0 comments on commit a62644e

Please sign in to comment.