udpate Prez

This commit is contained in:
Prof Isen 2024-04-16 22:58:44 +02:00
parent a46c169ae6
commit 9f76497d4d
4 changed files with 9 additions and 1 deletions

2
.env Normal file
View File

@ -0,0 +1,2 @@
UID=1000
GID=1000

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

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 : "

1
run.sh
View File

@ -4,6 +4,7 @@ if [[ $1 == "gen" ]]
then
echo "it's Gonna Take a Little Bit Longer .... "
echo -e "UID=$(id -u)\nGID=$(id -g)" > .env
cd $(dirname $0)/DOCKER/
#docker build . --no-cache -t pandoc-gen-file-isen &> /dev/null
docker build . -t pandoc-gen-file-isen
[[ "$?" -ne 0 ]] && echo FAILED || echo OK