Compare commits
31 Commits
assignment
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 23c5c26472 | |||
| b27c0d1872 | |||
| b92d0a5a97 | |||
| 7fbca3031a | |||
| 12ba818631 | |||
| bc10cf8736 | |||
| 83c9218b81 | |||
| a7ec28cf5c | |||
| 9ea1970fcf | |||
| adcf470b30 | |||
| 108ef1755a | |||
| d2b0965281 | |||
| ad278c6e66 | |||
| 40e3f57f5e | |||
| 1bb9abb8cf | |||
| b1d3f25d48 | |||
| 029f0fe6d6 | |||
| 85bdd56b1c | |||
| cdbf024243 | |||
| 4b69b4ed5d | |||
| 2f080802fb | |||
| 0bf782be40 | |||
| 2665c4b0c1 | |||
| 13455b406d | |||
| 81586f7f19 | |||
| d371820b74 | |||
| 9e486162f7 | |||
| 13069e68ea | |||
| 559d27267c | |||
| 3e210ca9ba | |||
| 603241fce5 |
2
.gitmodules
vendored
2
.gitmodules
vendored
@@ -1,4 +1,4 @@
|
|||||||
[submodule "latex-homework"]
|
[submodule "latex-homework"]
|
||||||
path = assignments/template
|
path = src/template
|
||||||
url = https://github.com/gijs-pennings/latex-homework.git
|
url = https://github.com/gijs-pennings/latex-homework.git
|
||||||
branch = master
|
branch = master
|
||||||
|
|||||||
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@@ -1,10 +1,12 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {label 'linux'}
|
agent any
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Starting build step...'
|
echo 'Starting build step...'
|
||||||
sh './scripts/build.sh'
|
sh 'latexmk -pdf -outdir=out main_text.tex'
|
||||||
|
|
||||||
|
archiveArtifacts artifacts: 'out/main_text.pdf'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -13,8 +15,13 @@ pipeline {
|
|||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps{
|
steps{
|
||||||
echo 'Starting deploy step...'
|
echo 'Starting deploy step...'
|
||||||
sh 'cp assignments/main_text.pdf /var/www/zwietering.eu/pdfs/real_analysis.pdf'
|
sh 'cp out/main_text.pdf /var/www/zwietering.eu/pdfs/real_analysis.pdf'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
post {
|
||||||
|
cleanup {
|
||||||
|
cleanWs()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Submodule assignments/template deleted from de9419d4cc
@@ -1,4 +1,4 @@
|
|||||||
\documentclass{template/homework}
|
\documentclass{src/template/homework}
|
||||||
|
|
||||||
\usepackage{enumitem} % Gives access to better enumeration items
|
\usepackage{enumitem} % Gives access to better enumeration items
|
||||||
\usepackage{tcolorbox} % Gives boxes
|
\usepackage{tcolorbox} % Gives boxes
|
||||||
@@ -6,15 +6,15 @@
|
|||||||
|
|
||||||
\title{MIT OCW Real Analysis}
|
\title{MIT OCW Real Analysis}
|
||||||
\author{Philippe H. Zwietering}
|
\author{Philippe H. Zwietering}
|
||||||
\date{}
|
\date{\today}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\maketitle
|
\maketitle
|
||||||
\tableofcontents
|
\tableofcontents
|
||||||
\clearpage
|
\clearpage
|
||||||
\subfile{week1/main.tex}
|
\subfile{./src/week1.tex}
|
||||||
\clearpage
|
\clearpage
|
||||||
\subfile{week2/main.tex}
|
\subfile{./src/week2.tex}
|
||||||
\clearpage
|
\clearpage
|
||||||
\subfile{week3/main.tex}
|
\subfile{./src/week3.tex}
|
||||||
\end{document}
|
\end{document}
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Build all directories
|
|
||||||
subdirectory_file_name=main
|
|
||||||
|
|
||||||
cd assignments
|
|
||||||
|
|
||||||
for D in *; do
|
|
||||||
if [ "${D}" != "template" ] && [ -d "${D}" ]; then
|
|
||||||
echo "Building ${D}..."
|
|
||||||
cd "${D}"
|
|
||||||
pdflatex -interaction=batchmode -halt-on-error "${subdirectory_file_name}.tex"
|
|
||||||
pdflatex -interaction=batchmode -halt-on-error "${subdirectory_file_name}.tex"
|
|
||||||
cd ..
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Build main PDF
|
|
||||||
main_file_name=main_text
|
|
||||||
|
|
||||||
echo "Building main PDF..."
|
|
||||||
pdflatex -interaction=batchmode -halt-on-error "${main_file_name}.tex"
|
|
||||||
pdflatex -interaction=batchmode -halt-on-error "${main_file_name}.tex"
|
|
||||||
|
|
||||||
# Clean up
|
|
||||||
rm -rf *.aux *.log *.out *.toc
|
|
||||||
for D in *; do
|
|
||||||
if [ "${D}" != "template" ] && [ -d "${D}" ]; then
|
|
||||||
cd "${D}"
|
|
||||||
rm -rf *.aux *.log *.out *.toc
|
|
||||||
cd ..
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
1
src/template
Submodule
1
src/template
Submodule
Submodule src/template added at bb25980b30
Reference in New Issue
Block a user