@@ -17,8 +17,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Find all root .tex files
|
- name: Find all root .tex files
|
||||||
id: roots
|
id: roots
|
||||||
|
#ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ')
|
||||||
run: |
|
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 "roots=$ROOTS" >> "$GITHUB_OUTPUT"
|
||||||
echo "Root files to build: $ROOTS"
|
echo "Root files to build: $ROOTS"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
\usepackage{myformat}
|
\usepackage{myformat}
|
||||||
\title{LearnLaTeX}
|
\title{LearnLaTeX}
|
||||||
\author{Domipoke}
|
\author{Domipoke}
|
||||||
%
|
%2
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\input{./book/copertina.tex}
|
\input{./book/copertina.tex}
|
||||||
\input{./book/00_premessa.tex}
|
\input{./book/00_premessa.tex}
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
]
|
]
|
||||||
\title{LearnLaTeX}
|
\title{LearnLaTeX}
|
||||||
\author{Domipoke}
|
\author{Domipoke}
|
||||||
% 3
|
% 4
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\input{./book/copertina.tex}
|
\input{./book/copertina.tex}
|
||||||
\input{./book/00_premessa.tex}
|
\input{./book/00_premessa.tex}
|
||||||
|
|||||||
Reference in New Issue
Block a user