199 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			TeX
		
	
	
	
	
	
			
		
		
	
	
			199 lines
		
	
	
		
			3.8 KiB
		
	
	
	
		
			TeX
		
	
	
	
	
	
\chapter{LaTeX}
 | 
						|
%TODO Complete chapter
 | 
						|
 | 
						|
\langsection{Méta-données}{Metadata}
 | 
						|
%TODO Complete section
 | 
						|
 | 
						|
\begin{verbatim}
 | 
						|
\maketitle
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\langsubsection{Titre}{Title}
 | 
						|
\begin{verbatim}
 | 
						|
	\title{Sections and Chapters}
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\langsubsection{Auteur(es)}{Author(s)}
 | 
						|
\begin{verbatim}
 | 
						|
	\author{Pierre Saunders}
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\subsection{Date}
 | 
						|
\begin{verbatim}
 | 
						|
	\date{\today}
 | 
						|
	\date{\tomorrow}
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\langsubsection{Table des matières}{Contents}
 | 
						|
 | 
						|
\begin{verbatim}
 | 
						|
\tableofcontents
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\langsection{Segmentation du document}{Document sectioning}
 | 
						|
%TODO Complete section
 | 
						|
 | 
						|
\lang{Ces parties seront répertoriées dans la table des matières}{These part will be linked to the contents}.
 | 
						|
 | 
						|
\begin{itemize}
 | 
						|
	\item{-1 part}
 | 
						|
	\item{0 chapter}
 | 
						|
	\item{1 section}
 | 
						|
	\item{2 subsection}
 | 
						|
	\item{3 subsubsection}
 | 
						|
	\item{4 paragraph}
 | 
						|
	\item{5 subparagraph}
 | 
						|
\end{itemize}
 | 
						|
 | 
						|
\langsubsection{Ajouter une partie numéroté}{Add a labeled part}
 | 
						|
 | 
						|
% TODO Find a way to localize verbatim
 | 
						|
\begin{verbatim}
 | 
						|
	\part{Nom de la partie}
 | 
						|
	\chapter{Nom du chapitre}
 | 
						|
	etc.
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\langsubsection{Ajouter une partie non-numéroté}{Add a non labeled part}
 | 
						|
 | 
						|
\begin{verbatim}
 | 
						|
	\part*{Nom de la partie}
 | 
						|
	\chapter*{Nom du chapitre}
 | 
						|
	etc.
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\langsection{Listes}{Lists}
 | 
						|
%TODO Complete section
 | 
						|
 | 
						|
\begin{verbatim}
 | 
						|
	\begin{enumerate}
 | 
						|
	    \item{Item 1}
 | 
						|
	    \item{Item 2}
 | 
						|
	    \item{Item 3}
 | 
						|
	\end{enumerate}
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\begin{mdframed}
 | 
						|
	\begin{enumerate}
 | 
						|
	    \item{Item 1}
 | 
						|
	    \item{Item 2}
 | 
						|
	    \item{Item 3}
 | 
						|
	\end{enumerate}
 | 
						|
\end{mdframed}
 | 
						|
 | 
						|
\begin{verbatim}
 | 
						|
	\begin{itemize}
 | 
						|
	    \item{Item 1}
 | 
						|
	    \item{Item 2}
 | 
						|
	    \item{Item 3}
 | 
						|
	\end{itemize}
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\begin{mdframed}
 | 
						|
\begin{itemize}
 | 
						|
	\item{Item 1}
 | 
						|
	\item{Item 2}
 | 
						|
	\item{Item 3}
 | 
						|
\end{itemize}
 | 
						|
\end{mdframed}
 | 
						|
 | 
						|
\langsection{Paquets additionnels}{Additional packages}
 | 
						|
%TODO Complete section
 | 
						|
 | 
						|
\langsection{Mathématiques}{Mathematics}
 | 
						|
%TODO Complete section
 | 
						|
 | 
						|
\subsection{Matrices}
 | 
						|
%TODO Complete subsection
 | 
						|
 | 
						|
\begin{verbatim}
 | 
						|
	\begin{matrix} a & b \\ c & d \end{matrix}
 | 
						|
	\begin{pmatrix} a & b \\ c & d \end{pmatrix}
 | 
						|
	\begin{bmatrix} a & b \\ c & d \end{bmatrix}
 | 
						|
	\begin{Bmatrix} a & b \\ c & d \end{Bmatrix}
 | 
						|
	\begin{vmatrix} a & b \\ c & d \end{vmatrix}
 | 
						|
	\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
$\begin{matrix} a & b \\ c & d \end{matrix}$
 | 
						|
$\begin{pmatrix} a & b \\ c & d \end{pmatrix}$
 | 
						|
$\begin{bmatrix} a & b \\ c & d \end{bmatrix}$
 | 
						|
$\begin{Bmatrix} a & b \\ c & d \end{Bmatrix}$
 | 
						|
$\begin{vmatrix} a & b \\ c & d \end{vmatrix}$
 | 
						|
$\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}$
 | 
						|
 | 
						|
 | 
						|
\langsection{Informatique}{Computer science}
 | 
						|
%TODO Complete section
 | 
						|
 | 
						|
\subsection{LaTeX}
 | 
						|
 | 
						|
\begin{verbatim}
 | 
						|
	\begin{verbatim}
 | 
						|
	\title{Sections and Chapters}
 | 
						|
	\end{verbatim }
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\langsubsection{Algorithmes}{Algorithms}
 | 
						|
%TODO Complete subsection
 | 
						|
 | 
						|
\begin{verbatim}
 | 
						|
	\begin{algorithm}[H]
 | 
						|
	\KwIn{This is some input}
 | 
						|
	\KwOut{This is some output}
 | 
						|
	\SetAlgoLined
 | 
						|
	\SetNoFillComment
 | 
						|
	\tcc{This is a comment}
 | 
						|
	\vspace{3mm}
 | 
						|
	some code here\;
 | 
						|
	$x \leftarrow 0$\;
 | 
						|
	$y \leftarrow 0$\;
 | 
						|
	\uIf{$ x > 5$} {
 | 
						|
	    x is greater than 5 \tcp*{This is also a comment}
 | 
						|
	}
 | 
						|
	\Else {
 | 
						|
	    x is less than or equal to 5\;
 | 
						|
	}
 | 
						|
	\ForEach{y in 0..5} {
 | 
						|
	    $y \leftarrow y + 1$\;
 | 
						|
	}
 | 
						|
	\For{$y$ in $0..5$} {
 | 
						|
	    $y \leftarrow y - 1$\;
 | 
						|
	}
 | 
						|
	\While{$x > 5$} {
 | 
						|
	    $x \leftarrow x - 1$\;
 | 
						|
	}
 | 
						|
	\Return Return something here\;
 | 
						|
	\caption{what}
 | 
						|
	\end{algorithm}
 | 
						|
\end{verbatim}
 | 
						|
 | 
						|
\begin{algorithm}[H]
 | 
						|
\KwIn{This is some input}
 | 
						|
\KwOut{This is some output}
 | 
						|
\SetAlgoLined
 | 
						|
\SetNoFillComment
 | 
						|
\tcc{This is a comment}
 | 
						|
\vspace{3mm}
 | 
						|
some code here\;
 | 
						|
$x \leftarrow 0$\;
 | 
						|
$y \leftarrow 0$\;
 | 
						|
\uIf{$ x > 5$} {
 | 
						|
	x is greater than 5 \tcp*{This is also a comment}
 | 
						|
}
 | 
						|
\Else {
 | 
						|
	x is less than or equal to 5\;
 | 
						|
}
 | 
						|
\ForEach{y in 0..5} {
 | 
						|
	$y \leftarrow y + 1$\;
 | 
						|
}
 | 
						|
\For{$y$ in $0..5$} {
 | 
						|
	$y \leftarrow y - 1$\;
 | 
						|
}
 | 
						|
\While{$x > 5$} {
 | 
						|
	$x \leftarrow x - 1$\;
 | 
						|
}
 | 
						|
\Return Return something here\;
 | 
						|
\caption{what}
 | 
						|
\end{algorithm}
 |