chore: Update template to current used one

This commit is contained in:
2025-03-01 00:20:37 +01:00
parent 97347a2114
commit 3e35724546
16 changed files with 270 additions and 67 deletions

20
.gitignore vendored
View File

@@ -1,9 +1,13 @@
# LaTeX build files
**/tex/**/*.aux
**/tex/**/*.bbl
**/tex/**/*.blg
**/tex/**/*.fdb_latexmk
**/tex/**/*.fls
**/tex/**/*.log
**/tex/**/*.out
**/tex/**/*.toc
**/tex/**/*.synctex.*
**/tmp/*
!.gitkeep
tmp/
src/tmp
node_modules/
obj/
out/

31
.vscode/LaTeX.code-snippets vendored Normal file
View File

@@ -0,0 +1,31 @@
{
"Create Table": {
"prefix": "tbl",
"body": [
"\\begin{table}[ht]",
" \\centering",
" \\begin{threeparttable}",
" \\begin{tabular}{p{2.5cm}|p{8.5cm}}",
" \\toprule",
" $1 & $2 \\\\\\\\",
" \\hline",
" $3 & $4 \\\\\\\\",
" \\bottomrule",
" \\end{tabular}",
" \\end{threeparttable}",
"\\end{table}"
],
"description": "Create a table with two columns",
},
"Create Figure": {
"prefix": "fig",
"body": [
"\\begin{figure}[H]",
" \\includegraphics[width=1\\textwidth]{../img/$1}",
" \\caption{$2}",
" \\label{fig:$3}",
"\\end{figure}"
],
"description": "Create a figure ",
}
}

112
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,112 @@
{
"latex-workshop.latex.autoBuild.cleanAndRetry.enabled": true,
"latex-workshop.latex.clean.subfolder.enabled": true,
"latex-workshop.latex.external.build.args": [ "--shell-escape" ],
"latex-workshop.latex.outDir": "tmp",
"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"-outdir=%OUTDIR%",
"%DOC%",
"--shell-escape",
],
"env": {}
},
{
"name": "lualatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-lualatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "xelatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-xelatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "latexmk_rconly",
"command": "latexmk",
"args": [
"%DOC%"
],
"env": {}
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
],
"env": {}
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
],
"env": {}
},
{
"name": "rnw2tex",
"command": "Rscript",
"args": [
"-e",
"knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')"
],
"env": {}
},
{
"name": "jnw2tex",
"command": "julia",
"args": [
"-e",
"using Weave; weave(\"%DOC_EXT%\", doctype=\"tex\")"
],
"env": {}
},
{
"name": "jnw2texmintex",
"command": "julia",
"args": [
"-e",
"using Weave; weave(\"%DOC_EXT%\", doctype=\"texminted\")"
],
"env": {}
},
{
"name": "tectonic",
"command": "tectonic",
"args": [
"--synctex",
"--keep-logs",
"%DOC%.tex"
],
"env": {}
}
]
}

View File

@@ -1,54 +0,0 @@
\documentclass[10pt]{article}
%/ Use case: margins
\usepackage[letterpaper,
top=2cm,
bottom=2cm,
left=2cm,
right=2cm,
marginparwidth=1.75cm]{geometry}
%/ Use case: language and spell checking
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
%/ Use case: uppercase headers
\usepackage{titlecaps}
\usepackage{sectsty}
%/ Use case: text formatting
\usepackage{url}
\usepackage[outputdir=tmp]{minted}
\usepackage[colorlinks=true, allcolors=teal]{hyperref}
\usepackage{textcomp}
\usepackage{amsmath}
%/ Use case: images
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage[font=small,labelfont=bf]{caption}
%/ Use case: tables
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.18}
\allsectionsfont{\mdseries\scshape}
\title{\titlecap{\scshape Title}}\normalfont
\author{Wessel Tip $<$contact@wessel.gg$>$ (Student number 696770, \url{https://wessel.gg/})}
\date{Computer Engineering at InHolland (Year 1, Semester x, Month. year - Month. year)}
\begin{document}
\maketitle
\begin{abstract}
\end{abstract}
\tableofcontents
\input{sections/1 introduction}
\bibliographystyle{IEEEtran}
\bibliography{references.bib}
\end{document}

View File

@@ -1 +0,0 @@

1
tex/doc/.gitkeep Normal file
View File

@@ -0,0 +1 @@
Contains any external documents such as PDFs

1
tex/img/.gitkeep Normal file
View File

@@ -0,0 +1 @@
Contains any images used in the sections

37
tex/main.tex Normal file
View File

@@ -0,0 +1,37 @@
\documentclass{IEEEconf}
\input{packages.tex}
\input{variables.tex}
\begin{document}
\sffamily
% Front page containing title, author and date
\pagenumbering{gobble}
\input{sec/0 frontpage.tex}
\newpage
% Set page numbering to arabic and show the table of contents, toc should not contain page number
\pagenumbering{arabic}
\thispagestyle{empty}
\tableofcontents
\newpage
% Enable two column layout for the rest of the document
\twocolumn
% Dictionary containing all the terms used in the document
\input{sec/0 dictionairy.tex}
\newpage
% Abstract of the document
\input{sec/0 abstract.tex}
% Sections of the document
\input{sec/1 introduction.tex}
\label{sec:referenties}
\bibliography{references}
% Appendices
% \input{sections/8 attachments.tex}
\end{document}

27
tex/packages.tex Normal file
View File

@@ -0,0 +1,27 @@
%/ Use case: language and spell checking
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{caption}
%/ Use case: uppercase headers
\usepackage{titlecaps}
\usepackage{sectsty}
%/ Use case: text formatting
\usepackage{url}
% \usepackage[newfloat,outputdir=tmp]{minted}
\usepackage[colorlinks=true, allcolors=teal]{hyperref}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{float}
%/ Use case: images
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage[font=small,labelfont=bf]{caption}
%/ Use case: tables
\usepackage{booktabs}
\usepackage[flushleft]{threeparttable}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
%/ Use case: paragraph indentation
\usepackage{parskip}
\usepackage{float}

0
tex/references.bib Normal file
View File

3
tex/sec/0 abstract.tex Normal file
View File

@@ -0,0 +1,3 @@
\begin{abstract}
\end{abstract}

15
tex/sec/0 dictionairy.tex Normal file
View File

@@ -0,0 +1,15 @@
\onecolumn
% todo(wessel)
\section*{Dictionairy}
\begin{table}[ht]
\raggedright
\begin{threeparttable}
\begin{tabular}{p{4cm}|p{11.5cm}}
\toprule
\textbf{Term} & \textbf{Meaning} \\
\hline
\bottomrule
\end{tabular}
\end{threeparttable}
\end{table}
\twocolumn

5
tex/sec/0 frontpage.tex Normal file
View File

@@ -0,0 +1,5 @@
\onecolumn
\maketitle
% Push the content below to the bottom of the page
\vfill

View File

@@ -1,6 +1,2 @@
\newpage
\section{Introduction}
\label{sec:introduction}

1
tex/tmp/.gitkeep Normal file
View File

@@ -0,0 +1 @@
Contains build files

25
tex/variables.tex Normal file
View File

@@ -0,0 +1,25 @@
\graphicspath{ {./img/} }
\pgfplotsset{compat=1.18}
% Sets the default font
% \allsectionsfont{\mdseries\scshape}
\title{\titlecap{\scshape Title}\normalfont}
\author{Wessel Tip $<$contact@wessel.gg$>$ (\url{https://wessel.gg/})}
% Empty date
\date{\today}
% Sets the description name of code blocks to "Source Code"
% \newenvironment{code}{\captionsetup{type=listing}}{}
% \SetupFloatingEnvironment{listing}{name=Source Code}
% \renewcommand{\theFancyVerbLine}{\sffamily
% \textcolor[rgb]{0.5,0.5,1.0}{\scriptsize
% \oldstylenums{\arabic{FancyVerbLine}}}}
% Sets the bibliography style to IEEE
\bibliographystyle{IEEEtran}
% Disables the no citations error
\nocite{*}