From 97040600418a1abb4da977342e3442355d553af6 Mon Sep 17 00:00:00 2001 From: Domipoke <42298508+Domipoke@users.noreply.github.com> Date: Tue, 28 Jul 2026 21:30:22 +0200 Subject: [PATCH] 01 --- .gitea/workflows/build-xelatex.yml | 3 +-- LearnLaTeX.tex | 1 + dyslexic.tex | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-xelatex.yml b/.gitea/workflows/build-xelatex.yml index e4d3764..dd0a73d 100644 --- a/.gitea/workflows/build-xelatex.yml +++ b/.gitea/workflows/build-xelatex.yml @@ -17,9 +17,8 @@ jobs: - name: Find all root .tex files id: roots - #ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ') run: | - ROOTS=$(awk '/\\begin\{/{if (!dc) exit} /\\documentclass/{dc=1; print FILENAME; exit}' $(find . -name "*.tex") | sed 's|^\./||' | tr '\n' ' ') + ROOTS=$(grep -rlzP '%ROOT\\s*\\n\\\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ') echo "roots=$ROOTS" >> "$GITHUB_OUTPUT" echo "Root files to build: $ROOTS" diff --git a/LearnLaTeX.tex b/LearnLaTeX.tex index cb4992c..dc8311b 100644 --- a/LearnLaTeX.tex +++ b/LearnLaTeX.tex @@ -1,3 +1,4 @@ +%ROOT \documentclass{scrbook} \usepackage{myformat} \title{LearnLaTeX} diff --git a/dyslexic.tex b/dyslexic.tex index 5ad974f..95dc18a 100644 --- a/dyslexic.tex +++ b/dyslexic.tex @@ -1,3 +1,4 @@ +%ROOT \documentclass{scrbook} \usepackage{myformat} \setmainfont{OpenDyslexic}[