From: Mart Lubbers Date: Tue, 8 Dec 2015 14:22:34 +0000 (+0100) Subject: graphics, listings en algorithmen toegevoegd X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=8e36b7303c4150c8e6906d140f8347c9d54d6e11;p=linuxnijmegen-latex.git graphics, listings en algorithmen toegevoegd --- diff --git a/.gitignore b/.gitignore index 85b9c3b..46f672c 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ *.snm *.toc *.vrb +*.png diff --git a/Makefile b/Makefile index 1c78c2c..89d989d 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,21 @@ LATEX:=pdflatex DOCUMENT:=lat +IMGS:=tux.png +MISC:=broncode.c broncode.tex -.SECONDARY: $(DOCUMENT).fmt +.SECONDARY: $(DOCUMENT).fmt $(addsuffix .png,$(basename $(IMGS))) all: $(DOCUMENT).pdf -%.pdf: %.tex %.fmt +%.pdf: %.tex %.fmt $(IMGS) $(MISC) $(LATEX) $(basename $@) $(LATEX) $(basename $@) %.fmt: pre.tex $(LATEX) -ini -jobname="$(basename $@)" "&$(LATEX) $<\dump" +%.png: %.svg + convert $< $@ + clean: - $(RM) -v $(addprefix $(DOCUMENT).,fmt aux bbl blg dvi log out toc pdf snm nav vrb) + $(RM) -v $(addprefix $(DOCUMENT).,fmt aux bbl blg dvi log out toc pdf snm nav vrb) $(IMGS) diff --git a/broncode.c b/broncode.c new file mode 100644 index 0000000..8c12aa6 --- /dev/null +++ b/broncode.c @@ -0,0 +1,4 @@ +int i; // Nu zet ik i op 0 +for(i=0; i] - \item Algorithmen + \item Presentaties \item Bibliografie\"en \item Diagrammen + \item Tabellen \item Chemische structuurformules \item Linguistische symbolen \item Precompiled preamble diff --git a/pre.tex b/pre.tex index 61d6854..09321f8 100644 --- a/pre.tex +++ b/pre.tex @@ -4,6 +4,7 @@ \usepackage[labelformat=empty]{caption} \usepackage{booktabs} \usepackage{color} +\usepackage{algorithm2e} \usepackage{listings} \usepackage{textgreek} @@ -19,7 +20,10 @@ language=[LaTeX]tex, basicstyle=\small, breaklines=true, - commentstyle=\color{mygreen} + commentstyle=\color{mygreen}, + keepspaces=true, + columns=flexible, + tabsize=2 } \AtBeginSubsection[] diff --git a/tux.svg b/tux.svg new file mode 100644 index 0000000..a6ad537 --- /dev/null +++ b/tux.svg @@ -0,0 +1,71 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + +