Skip to content

Commit debdd31

Browse files
author
Moritz Jörg
committed
feat: add latexmk config and readme
1 parent 83cdd87 commit debdd31

File tree

4 files changed

+45
-16
lines changed

4 files changed

+45
-16
lines changed

.latexmkrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
### -- Custom Template --------------------------------------------------------
2-
$ENV{'TEXINPUTS'}='./IEEEtran//:' . $ENV{'TEXINPUTS'};
2+
# $ENV{'TEXINPUTS'}='./IEEEtran//:' . $ENV{'TEXINPUTS'};
33
# $ENV{'TEXINPUTS'}='../uit-thesis//:' . $ENV{'TEXINPUTS'};
44

55
### -- Output options --------------------------------------------------------
66

7-
$quiet = 1;
8-
$silent = 1;
7+
#$quiet = 1;
8+
#$silent = 1;
99

1010
# -- Build options -----------------------------------------------------------
1111

@@ -17,4 +17,4 @@ $silent = 1;
1717
# $pretex = '\pdfvariable suppressoptionalinfo 512\relax';
1818
# $usepretex = 1;
1919

20-
$max_repeat = 5; # Try 5 times at maximum then give up
20+
$max_repeat = 5; # Try 5 times at maximum then give up

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@
33

44
TEXSRC = $(shell find . -name "*.tex")
55
TEXSRC += $(shell find . -name "*.bib")
6-
TARGET := $(patsubst %.tex,%.pdf,$(SRC))
76
TEXBUILD := build
87
TEXCOMPILE := latexmk -pdf
98
BIBCOMPILE := bibtex
109
TEXNAME := template
1110
OUTNAME := template
12-
TEXFLAGS := -shell-escape -interaction=nonstopmode -output-directory=$(TEXBUILD) -file-line-error
11+
TEXFLAGS := -interaction=nonstopmode -output-directory=$(TEXBUILD) -file-line-error
1312
TEXFILES := acn acr alg aux bbl blg def defdvi fdb_latexmk fls glg glo gls ist lof log lot out synctex.gz toc
1413

1514
.PHONY: all clean
1615
all: $(TEXSRC)
1716
@mkdir -p $(TEXBUILD)
1817
@$(TEXCOMPILE) $(TEXFLAGS) $(TEXNAME).tex
1918
@for aux in $(shell find . -name "*.aux"); do $(BIBCOMPILE) $$aux; done
20-
@$(TEXCOMPILE) $(TEXFLAGS) $(TEXNAME).tex
21-
@$(TEXCOMPILE) $(TEXFLAGS) $(TEXNAME).tex
2219
@mv $(TEXBUILD)/$(TEXNAME).pdf $(OUTNAME).pdf
2320

2421
clean:

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## assignment-template-latex
2+
3+
This repository provides a simple LaTeX template for writing your Assignments at UiT (The Arctic University of Norway).
4+
5+
> [!NOTE]
6+
> This is only a template. You have to adapt the template to your current assignment!
7+
8+
## Usage
9+
10+
### Build PDFs locally
11+
12+
Once you have installed [LaTeX](https://www.latex-project.org/) and [Inkscape](https://inkscape.org/), you can use it like this:
13+
14+
```console
15+
# Creates `template.pdf` in working directory.
16+
make all
17+
```
18+
19+
Clean temp files:
20+
21+
```console
22+
# Removes the temp files inside `build/`
23+
make clean
24+
```
25+
26+
## Build and release a PDF automatically
27+
28+
The project uses GitHub Actions to build the LaTeX document and create a release on GitHub automatically. To trigger a build, create a new release. The release will be tagged with the version number, and the PDF will be attached to the release.
29+
30+
## Credits
31+
32+
This template is using the [IEEE-Tran](https://www.ieee.org/conferences/publishing/templates.html) `cls` file.

template.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
\usepackage{url}
1010
\usepackage{verbatim}
1111
\usepackage{graphicx}
12-
\usepackage{svg}
12+
% \usepackage{svg}
1313
\usepackage{booktabs,threeparttable}
1414
\hyphenation{op-tical net-works semi-conduc-tor IEEE-Xplore}
1515
% updated with editorial comments 8/9/2021
@@ -146,7 +146,7 @@ \subsection{Virtual memory}
146146
physical address in physical memory. This means that two processes can access the same virtual address
147147
in their address space but get two different results since the addresses point to different
148148
places in the physical memory. This again means that each process can use all of its 32-bit
149-
address space while still ensuring that no other processes can access its data \cite{TanenbaumAndrewS.2024Mos}
149+
address space while still ensuring that no other processes can access its data~\cite{TanenbaumAndrewS.2024Mos}
150150

151151
\bigskip
152152

@@ -160,12 +160,12 @@ \subsection{Virtual memory}
160160
\label{fig:block_diagram}
161161
\end{figure}
162162

163-
\begin{figure}[htbp]
164-
\centering
165-
\includesvg[scale=0.5]{figures/NVSD_VDD_IN.svg}
166-
\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}
167-
\label{fig:local_nas_sd_compare}
168-
\end{figure}
163+
% \begin{figure}[htbp]
164+
% \centering
165+
% \includegraphics[scale=0.5]{figures/NVSD_VDD_IN.svg}
166+
% \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}
167+
% \label{fig:local_nas_sd_compare}
168+
% \end{figure}
169169

170170
\begin{figure}[htbp]
171171
\begin{center}

0 commit comments

Comments
 (0)