From 9fc35d6828279b35ef3f8e3925039a18176ec330 Mon Sep 17 00:00:00 2001 From: Domipoke <42298508+Domipoke@users.noreply.github.com> Date: Tue, 28 Jul 2026 21:08:20 +0200 Subject: [PATCH] 01 --- .gitea/workflows/build-xelatex.yml | 3 ++- LearnLaTeX.tex | 2 +- dyslexic.tex | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-xelatex.yml b/.gitea/workflows/build-xelatex.yml index e15c09e..e4d3764 100644 --- a/.gitea/workflows/build-xelatex.yml +++ b/.gitea/workflows/build-xelatex.yml @@ -17,8 +17,9 @@ jobs: - name: Find all root .tex files id: roots + #ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ') run: | - ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ') + ROOTS=$(awk '/\\begin\{/{if (!dc) exit} /\\documentclass/{dc=1; print FILENAME; exit}' $(find . -name "*.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 9ac5fd2..3e775c5 100644 --- a/LearnLaTeX.tex +++ b/LearnLaTeX.tex @@ -2,7 +2,7 @@ \usepackage{myformat} \title{LearnLaTeX} \author{Domipoke} -% +%2 \begin{document} \input{./book/copertina.tex} \input{./book/00_premessa.tex} diff --git a/dyslexic.tex b/dyslexic.tex index ef3e482..287ee53 100644 --- a/dyslexic.tex +++ b/dyslexic.tex @@ -10,7 +10,7 @@ ] \title{LearnLaTeX} \author{Domipoke} -% 3 +% 4 \begin{document} \input{./book/copertina.tex} \input{./book/00_premessa.tex}