From 746f4671c55b2c0db2984c707bd6152a529b5f6d Mon Sep 17 00:00:00 2001 From: martijn Date: Mon, 7 Feb 2022 15:32:41 +0000 Subject: [PATCH 1/5] Initial commit --- .gitignore | 303 +++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 + 2 files changed, 305 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..747d42e --- /dev/null +++ b/.gitignore @@ -0,0 +1,303 @@ +# ---> TeX +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 +.*.lb + +## Intermediate documents: +*.dvi +*.xdv +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Build tool directories for auxiliary files +# latexrun +latex.out/ + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# comment +*.cut + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs +*.lzo +*.lzs +*.slg +*.slo +*.sls + +# uncomment this for glossaries-extra (will ignore makeindex's style files!) +# *.ist + +# gnuplot +*.gnuplot +*.table + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.glog +*.gtex + +# htlatex +*.4ct +*.4tc +*.idv +*.lg +*.trc +*.xref + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files +# *.tikz +*-tikzDictionary + +# listings +*.lol + +# luatexja-ruby +*.ltjruby + +# makeidx +*.idx +*.ilg +*.ind + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# newpax +*.newpax + +# nomencl +*.nlg +*.nlo +*.nls + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# svg +svg-inkscape/ + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# tcolorbox +*.listing + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# titletoc +*.ptc + +# todonotes +*.tdo + +# vhistory +*.hst +*.ver + +# easy-todo +*.lod + +# xcolor +*.xcp + +# xmpincl +*.xmpi + +# xindy +*.xdy + +# xypic precompiled matrices and outlines +*.xyc +*.xyd + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# LyX +*.lyx~ + +# Kile +*.backup + +# gummi +.*.swp + +# KBibTeX +*~[0-9]* + +# TeXnicCenter +*.tps + +# auto folder when using emacs and auctex +./auto/* +*.el + +# expex forward references with \gathertags +*-tags.tex + +# standalone packages +*.sta + +# Makeindex log files +*.lpz + +# xwatermark package +*.xwm + +# REVTeX puts footnotes in the bibliography by default, unless the nofootinbib +# option is specified. Footnotes are the stored in a file with suffix Notes.bib. +# Uncomment the next line to have this generated file ignored. +#*Notes.bib + diff --git a/README.md b/README.md new file mode 100644 index 0000000..5b42e54 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# template + From 2ff723272df8faf6f3e0bfcea481f14c2be71d5c Mon Sep 17 00:00:00 2001 From: martijn Date: Tue, 8 Feb 2022 15:59:09 +0100 Subject: [PATCH 2/5] Initiele template toegevoegd --- README.md | 19 ++++++++++- bibliography.bib | 38 ++++++++++++++++++++++ chapters/1 - voorbeeld.tex | 4 +++ coverpage.tex | 27 ++++++++++++++++ main.tex | 64 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 151 insertions(+), 1 deletion(-) create mode 100644 bibliography.bib create mode 100644 chapters/1 - voorbeeld.tex create mode 100644 coverpage.tex create mode 100644 main.tex diff --git a/README.md b/README.md index 5b42e54..5aba7f3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,19 @@ -# template +# Latex template voor studie Zuyd +## Requirements + * `texlive` Voor het algemene pakket (pdflatex) + * `texlive-lang-european` Voor de nederlandse taal (voor babel) + * `texlive-bibtex-extra` Voor biblatex + * `biber` Ook voor biblatex + * *Optioneel*`latexmk` voor eenvoudigere compilatie + +## Compilen project + +1. `pdflatex main.tex` +2. *Optioneel voor bibliografie* `biber main` +3. *Optioneel voor bibliografie* `pdflatex main` + +Of met `latexmk`: + +1. `latexmk -pdf main.tex` +2. *Cleanup* `latexmk -c` \ No newline at end of file diff --git a/bibliography.bib b/bibliography.bib new file mode 100644 index 0000000..243bd1d --- /dev/null +++ b/bibliography.bib @@ -0,0 +1,38 @@ +@article{einstein, + author = "Albert Einstein", + title = "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German}) + [{On} the electrodynamics of moving bodies]", + journal = "Annalen der Physik", + volume = "322", + number = "10", + pages = "891--921", + year = "1905", + DOI = "http://dx.doi.org/10.1002/andp.19053221004", + keywords = "physics" +} + +@book{dirac, + title={The Principles of Quantum Mechanics}, + author={Paul Adrien Maurice Dirac}, + isbn={9780198520115}, + series={International series of monographs on physics}, + year={1981}, + publisher={Clarendon Press}, + keywords = {physics} +} + +@online{knuthwebsite, + author = "Donald Knuth", + title = "Knuth: Computers and Typesetting", + url = "http://www-cs-faculty.stanford.edu/~uno/abcde.html", + keywords = "latex,knuth" +} + +@inbook{knuth-fa, + author = "Donald E. Knuth", + title = "Fundamental Algorithms", + publisher = "Addison-Wesley", + year = "1973", + chapter = "1.2", + keywords = "knuth,programming" +} \ No newline at end of file diff --git a/chapters/1 - voorbeeld.tex b/chapters/1 - voorbeeld.tex new file mode 100644 index 0000000..b4e62f8 --- /dev/null +++ b/chapters/1 - voorbeeld.tex @@ -0,0 +1,4 @@ +\chapter{Een test} +Test \cite{dirac} + +\lipsum{10} \ No newline at end of file diff --git a/coverpage.tex b/coverpage.tex new file mode 100644 index 0000000..d731aab --- /dev/null +++ b/coverpage.tex @@ -0,0 +1,27 @@ +\begin{titlepage} + + \hspace{0pt} + \vfill + + \center + \sffamily + \fontsize{40pt}{42pt}\selectfont\project\\ + \vspace{10pt} + \huge\titel + + \vfill + \hspace{0pt} + + \rmfamily + \begin{table}[b] + \begin{tabular}{l l} + \makecell[tl]{Titel} & \makecell[tl]{\titel}\\ + \makecell[tl]{Versie} & \makecell[tl]{\versie}\\ + \makecell[tl]{Project} & \makecell[tl]{\project}\\ + \makecell[tl]{Auteur(s)} & \makecell[tl]{\auteur}\\ + \makecell[tl]{Datum} & \makecell[tl]{\datum}\\ + \makecell[tl]{Opdrachtgever} & \makecell[tl]{\opdrachtgever} + \end{tabular} + \end{table} + +\end{titlepage} \ No newline at end of file diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..85bf258 --- /dev/null +++ b/main.tex @@ -0,0 +1,64 @@ +\documentclass[a4paper, 11pt]{report} + +\usepackage[a4paper,total={170mm,257mm},left=2cm,top=2cm]{geometry} + +\usepackage[dutch]{babel} +\usepackage{csquotes} + +\usepackage{booktabs} + +\usepackage[hybrid]{markdown} + +\usepackage{biblatex} +\addbibresource{bibliography.bib} + +\usepackage{FiraMono} +\usepackage{FiraSans} +\usepackage{DejaVuSerifCondensed} +\usepackage[T1]{fontenc} + +\usepackage{titlesec} + +\usepackage{makecell} + +\usepackage{lipsum} + +%% For code snippets +\usepackage{listings} +\lstset{basicstyle=\ttfamily\footnotesize,breaklines=true} + +\setlength{\parindent}{0pt} +\setlength{\parskip}{1em} + +%% Verander dit { +\newcommand{\titel}{Titel hier} +\newcommand{\project}{Projectnaam hier} +\newcommand{\auteur}{ +Martijn Remmen +} +\newcommand{\datum}{\today} +\newcommand{\opdrachtgever}{KEMBIT Services} +\newcommand{\versie}{v0.0} +%% } + + +\titleformat{\chapter}[hang] + {\Huge\bfseries}{\thechapter}{20pt}{}{\Huge\bfseries} + + +\author{\auteur} +\date{\datum} +\title{\titel} + +\begin{document} + + \input{coverpage} + \tableofcontents + \pagebreak + + \input{chapters/1 - voorbeeld.tex} + + + \printbibliography + +\end{document} From a58b286f42e01a5ee6b0a78fcb3293a27850bf0c Mon Sep 17 00:00:00 2001 From: martijn Date: Tue, 8 Feb 2022 16:03:58 +0100 Subject: [PATCH 3/5] Hyperref toegevoegd voor PDF metadata --- main.tex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.tex b/main.tex index 85bf258..8042907 100644 --- a/main.tex +++ b/main.tex @@ -42,6 +42,12 @@ Martijn Remmen %% } + +\usepackage[pdftex, + pdfauthor=\auteur, + pdftitle=\titel, + pdfsubject=\project]{hyperref} + \titleformat{\chapter}[hang] {\Huge\bfseries}{\thechapter}{20pt}{}{\Huge\bfseries} From f55c347ca82d9ce672a23a3550a279f43c9f8a96 Mon Sep 17 00:00:00 2001 From: martijn Date: Tue, 8 Feb 2022 16:05:42 +0100 Subject: [PATCH 4/5] Versienummer standaard op CONCEPT gezet --- main.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tex b/main.tex index 8042907..d93153a 100644 --- a/main.tex +++ b/main.tex @@ -38,7 +38,7 @@ Martijn Remmen } \newcommand{\datum}{\today} \newcommand{\opdrachtgever}{KEMBIT Services} -\newcommand{\versie}{v0.0} +\newcommand{\versie}{CONCEPT} %% } From 3b745eac6d68f5c76bcfdb0399864b5e1c90d639 Mon Sep 17 00:00:00 2001 From: martijn Date: Tue, 8 Feb 2022 16:14:34 +0100 Subject: [PATCH 5/5] Instructies toegevoegd voor mergen van template commits --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5aba7f3..2e53788 100644 --- a/README.md +++ b/README.md @@ -16,4 +16,10 @@ Of met `latexmk`: 1. `latexmk -pdf main.tex` -2. *Cleanup* `latexmk -c` \ No newline at end of file +2. *Cleanup* `latexmk -c` + +## Ophalen veranderingen in template + +1. `git remote add upstream