From a687d43a86418c59b4d8aaba51693a44338c7eb7 Mon Sep 17 00:00:00 2001 From: Joel von der Weid Date: Thu, 27 Apr 2023 15:53:30 +0200 Subject: [PATCH] Add statement template --- .gitignore | 46 ++++++++++++++++++++++++ statement/statement.tex | 80 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 .gitignore create mode 100644 statement/statement.tex diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76ba72c --- /dev/null +++ b/.gitignore @@ -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 + diff --git a/statement/statement.tex b/statement/statement.tex new file mode 100644 index 0000000..3dc81f5 --- /dev/null +++ b/statement/statement.tex @@ -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{} +\author{Joël von der Weid } +\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}