@@ -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"
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
\usepackage{myformat}
|
||||
\title{LearnLaTeX}
|
||||
\author{Domipoke}
|
||||
%
|
||||
%2
|
||||
\begin{document}
|
||||
\input{./book/copertina.tex}
|
||||
\input{./book/00_premessa.tex}
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
]
|
||||
\title{LearnLaTeX}
|
||||
\author{Domipoke}
|
||||
% 3
|
||||
% 4
|
||||
\begin{document}
|
||||
\input{./book/copertina.tex}
|
||||
\input{./book/00_premessa.tex}
|
||||
|
||||
Reference in New Issue
Block a user