udpate Prez

This commit is contained in:
2024-04-16 22:58:44 +02:00
parent a46c169ae6
commit 9f76497d4d
4 changed files with 9 additions and 1 deletions
-1
View File
@@ -12,7 +12,6 @@ RUN wget https://github.com/jgm/pandoc/releases/download/3.1.13/pandoc-3.1.13-1-
RUN dpkg -i /tmp/pandoc.deb
RUN apt install texlive-lang-french -y
RUN echo coucou.
COPY pandoc-fonts.tar /tmp/
RUN tar xf /tmp/pandoc-fonts.tar -C /usr/share/fonts/
RUN fc-cache -v -f
+6
View File
@@ -21,6 +21,12 @@ for File in $(find . -name "*.md")
cat ./${InFile} >> ./${InFile}.better
pandoc --from markdown --pdf-engine=xelatex --template "${ThemePDFNameCours}" --toc-depth 2 --listings --toc -o ../OUT/${OutFile} ./${InFile}.better &> /dev/null
[[ $? -eq 0 ]] && echo OK || echo FAILED
echo -n "$Title Prez : "
sed -i 's/^titlepage:.*//g' ./${InFile}.better
pandoc -s -i -t beamer --pdf-engine=xelatex --toc --template "${ThemePDFNameCours}" -o ../OUT/prez_${OutFile} --slide-level 2 -V classoption:aspectratio=1610 --toc ./${InFile}.better &> /dev/null
[[ $? -eq 0 ]] && echo OK || echo FAILED
done
echo -n "Clean environement : "