Commit 9d84f171 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby

test

parent 780084b1
compile_pdf:
stage: build
image: timnn/texlive # use a Docker image for LaTeX from https://hub.docker.com/
script: pdflatex main.tex # build the pdf just as you would on your computer
artifacts:
paths:
- main.pdf # instruct GitLab to keep the main.pdf file
image: aergus/latex # use a Docker image for LaTeX from https://hub.docker.com/
pages:
stage: deploy
variables:
USER: "gitlab-runner"
script:
- mkdir public # create a folder called public
- cp main.pdf public # copy the pdf file into the public folder
- ./compile.sh # build the pdf
artifacts:
paths:
- public # instruct GitLab to keep the public folder
......
......@@ -2,9 +2,13 @@
# Pour compiler tous les fichiers sources du dépot:
find . -name "main.tex" -execdir sh -c " pwd && latexmk {} -pdf main.tex -e '$latex=q/latex %O -shell-escape %S/' -quiet | grep 'Latexmk'" \;
find . -name "main.tex" -execdir sh -c "pwd && latexmk {} -pdf main.tex -e '$latex=q/latex %O -shell-escape %S/' -quiet | grep 'Latexmk'" \;
mkdir "public"
for i in `find . -maxdepth 1 -type d -regex \.\/[0-9].*?`;do
cp $i/Cours/main.pdf ./public/${i:2}.pdf;
done;
#clean up :
shopt -s globstar
rm -f **/*.aux **/*.log **/*.out
#rm -f **/*.aux **/*.log **/*.out
#**/*.fls **/*.fdb_latexmk **/*.toc
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cours}[2019/01/09 LaTeX class for Lessons]
\ProvidesClass{../../cours}[2019/01/09 LaTeX class for Lessons]
\makeatletter
% Base Class
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment