Skip to content

Commit e95b14e

Browse files
mrtz-jMoritz Jörg
andauthored
fix: shorten Makefile and cleanup *.tex (#1)
* fix: shorten Makefile and cleanup *.tex * fix: Typo graphics -> svg --------- Co-authored-by: Moritz Jörg <[email protected]>
1 parent 0775c16 commit e95b14e

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

Makefile

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
# Makefile for compiling assignment latex template \
2-
Dependencies: [texlive(full),inkscape]
2+
Dependencies: [texlive(full)]
33

4-
TEXSRC = $(shell find . -name "*.tex")
5-
TEXSRC += $(shell find . -name "*.bib")
6-
TEXBUILD := build
7-
TEXCOMPILE := latexmk -pdf
8-
BIBCOMPILE := bibtex
9-
TEXNAME := template
10-
OUTNAME := template
11-
TEXFLAGS := -interaction=nonstopmode -output-directory=$(TEXBUILD) -file-line-error
12-
TEXFILES := acn acr alg aux bbl blg def defdvi fdb_latexmk fls glg glo gls ist lof log lot out synctex.gz toc
4+
SRC := $(shell find . -name '*.tex')
5+
TARGET := $(patsubst %.tex,%.pdf,$(SRC))
6+
BUILD_DIR := ./build
137

148
.PHONY: all clean
15-
all: $(TEXSRC)
16-
@mkdir -p $(TEXBUILD)
17-
@$(TEXCOMPILE) $(TEXFLAGS) $(TEXNAME).tex
18-
@for aux in $(shell find . -name "*.aux"); do $(BIBCOMPILE) $$aux; done
19-
@mv $(TEXBUILD)/$(TEXNAME).pdf $(OUTNAME).pdf
9+
all:
10+
@mkdir -p $(BUILD_DIR)
11+
latexmk -pdf -interaction=nonstopmode -output-directory=$(BUILD_DIR) -file-line-error $(SRC)
12+
@mv $(BUILD_DIR)/$(notdir $(TARGET)) $(TARGET)
2013

2114
clean:
22-
@rm -rf $(TEXBUILD) $(addsuffix .pdf, ${TEXNAME} ${OUTNAME}) $(addprefix *., ${TEXFILES})
15+
latexmk -c $(SRC)
16+

template.tex

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
\usepackage{url}
1010
\usepackage{verbatim}
1111
\usepackage{graphicx}
12-
% \usepackage{svg}
1312
\usepackage{booktabs,threeparttable}
1413
\hyphenation{op-tical net-works semi-conduc-tor IEEE-Xplore}
1514
% updated with editorial comments 8/9/2021
@@ -160,9 +159,10 @@ \subsection{Virtual memory}
160159
\label{fig:block_diagram}
161160
\end{figure}
162161

162+
% NOTE: Requires \usepackage{svg} and Inkscape installed
163163
% \begin{figure}[htbp]
164164
% \centering
165-
% \includegraphics[scale=0.5]{figures/NVSD_VDD_IN.svg}
165+
% \includesvg[scale=0.5]{figures/NVSD_VDD_IN.svg}
166166
% \caption{Total power consumption compared between NAS and SD-Card\newline \emph{Note} the NAS-experiment did not complete in time, and the measurements for the NAS fit to the SD-card measurements}
167167
% \label{fig:local_nas_sd_compare}
168168
% \end{figure}
@@ -273,8 +273,6 @@ \section{Conclusion}
273273
You must declare a $\backslash${\tt{section}} before using any $\backslash${\tt{subsection}} or using $\backslash${\tt{label}} ($\backslash${\tt{appendices}} by itself
274274
starts a section numbered zero.)}
275275

276-
277-
278276
%{\appendices
279277
%\section*{Proof of the First Zonklar Equation}
280278
%Appendix one text goes here.
@@ -283,4 +281,4 @@ \section{Conclusion}
283281
%Appendix two text goes here.}
284282

285283

286-
\end{document}
284+
\end{document}

0 commit comments

Comments
 (0)