Add statement template

This commit is contained in:
Joel von der Weid 2023-04-27 15:53:30 +02:00
commit a687d43a86
2 changed files with 126 additions and 0 deletions

46
.gitignore vendored Normal file
View File

@ -0,0 +1,46 @@
# Latex intermediary files
*.acn
*.acr
*.alg
*.aux
*.bbl
*.blg
*.dvi
*.fdb_latexmk
*.glg
*.glo
*.gls
*.idx
*.ilg
*.ind
*.ist
*.lof
*.log
*.lot
*.maf
*.mtc
*.mtc0
*.nav
*.nlo
*.out
*.pdfsync
*.ps
*.snm
*.synctex.gz
*.toc
*.vrb
*.xdy
*.tdo
*.run.xml
*.bcf
*.pyg
*.mtc*
*.lol
svg-inkscape/
# Minted
_minted*
# Generated pdf
*.pdf

80
statement/statement.tex Normal file
View File

@ -0,0 +1,80 @@
%++++++++++++++++++++++++++++++++++++++++
\documentclass[a4paper,12pt]{article}
\usepackage{newfloat,parskip,tabularx,amsmath,graphicx,cite,sourcecodepro}
\usepackage[dvipsnames]{xcolor}
\usepackage[margin=2.5cm,a4paper]{geometry}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[autolanguage]{numprint}
% Define default style for code blocks
\usepackage[newfloat]{minted}
\setminted{
linenos=false,
breaklines=true,
escapeinside=||,
mathescape=true,
framesep=3mm,
tabsize=4
}
% Set link colors
\usepackage[final]{hyperref}
\hypersetup{
colorlinks=false,
linkcolor=blue,
citecolor=blue,
filecolor=magenta,
urlcolor=blue
}
\graphicspath{{img/}}
% remove section number in front of subsection numbers (to avoid section 0.1)
\renewcommand{\thesubsection}{\arabic{subsection}}
\setlength{\parindent}{0pt} % Remove alinea
%++++++++++++++++++++++++++++++++++++++++
% Provide \correction command to show corrections in the pdf if enabled
\newif\ifcorrected
\correctedtrue % Set \correctedtrue to see corrections in the pdf
\newcommand{\correction}[1]{\ifcorrected {\color{Mahogany} #1} \fi }
%++++++++++++++++++++++++++++++++++++++++
\title{<Document Title>}
\author{Joël von der Weid <joel.von-der-weid@hesge.ch>}
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
This is an abstract
\end{abstract}
\section*{Section}
This is a section.
%\begin{figure}[ht!]
%\center
%\includegraphics[width=0.95\textwidth]{schema}
%\caption{Schema relationnel de la base de données}
%\label{fig:schema}
%\end{figure}
\subsection*{Subsection}
\begin{minted}{sql}
SELECT * FROM t1, t2
WHERE t1.id = t2.id;
\end{minted}
\mintinline{sql}|SELECT * FROM t1, t2;|
\subsubsection*{Subsubsection}
\correction{Voici une correction : \texttt{SELECT * FROM t1;}}
\end{document}