%++++++++++++++++++++++++++++++++++++++++ \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}