Fixed structure of regression files

This commit is contained in:
Jan Benda 2015-11-02 11:07:23 +01:00
parent 90eff6e2f8
commit 8f0a7cd420
6 changed files with 22 additions and 6 deletions

View File

@ -1,10 +1,10 @@
BASENAME=linear_regression BASENAME=regression
PYFILES=$(wildcard *.py) PYFILES=$(wildcard *.py)
PYPDFFILES=$(PYFILES:.py=.pdf) PYPDFFILES=$(PYFILES:.py=.pdf)
pdf : $(BASENAME).pdf $(PYPDFFILES) pdf : $(BASENAME).pdf $(PYPDFFILES)
$(BASENAME).pdf : $(BASENAME).tex $(BASENAME).pdf : $(BASENAME)-chapter.tex
pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true pdflatex -interaction=scrollmode $< | tee /dev/stderr | fgrep -q "Rerun to get cross-references right" && pdflatex -interaction=scrollmode $< || true
$(PYPDFFILES) : %.pdf : %.py $(PYPDFFILES) : %.pdf : %.py

View File

@ -1,3 +0,0 @@
\chapter{\tr{Optimization and Gradient Descent}{Parameteroptimierung und Gradientenabstiegsverfahren}}

View File

@ -0,0 +1,16 @@
\documentclass[12pt]{report}
\input{../../header}
\lstset{inputpath=../code}
\graphicspath{{figures/}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\include{regression}
\end{document}

View File

@ -0,0 +1,3 @@
\chapter{\tr{Optimization and Gradient Descent}{Optimierung und Gradientenabstiegsverfahren}}

View File

@ -26,7 +26,7 @@
\graphicspath{{regression/lecture/}{regression/lecture/figures/}} \graphicspath{{regression/lecture/}{regression/lecture/figures/}}
\lstset{inputpath=regression/code} \lstset{inputpath=regression/code}
\include{regression/lecture/linear_regression} %\include{regression/lecture/linear_regression}
\graphicspath{{likelihood/lecture/}{likelihood/lecture/figures/}} \graphicspath{{likelihood/lecture/}{likelihood/lecture/figures/}}
\lstset{inputpath=likelihood/code} \lstset{inputpath=likelihood/code}