-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(content): add & replace TeX sample of code in content
- Loading branch information
1 parent
614db68
commit 27db9bd
Showing
3 changed files
with
154 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,72 @@ | ||
\chapter{second chapitre} | ||
|
||
\section{sous-titre} | ||
\section{exemples avancés} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
\subsection{équations} | ||
|
||
\subsection{sous-titre} | ||
\begin{equation} | ||
\label{eq:eq_1} | ||
E=mc^2 | ||
\end{equation} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
Il est possible de référencer l'Équation \ref{eq:eq_1} dans le texte. | ||
|
||
\subsection{sous-titre} | ||
\subsection{théorèmes et preuves} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
\begin{theorem} | ||
\label{theo:theo_1} | ||
Let $f$ be a function whose derivative exists in every point, then $f$ is | ||
a continuous function. | ||
\end{theorem} | ||
|
||
\begin{table}[H] | ||
\begin{center} | ||
\caption{Titre du tableau.} | ||
\label{tab:tableau2} | ||
\begin{tabular}{l|c|r} | ||
\textbf{Value 1} & \textbf{Value 2} & \textbf{Value 3}\\ | ||
$\alpha$ & $\beta$ & $\gamma$ \\ | ||
\hline | ||
1 & 1110.1 & a\\ | ||
2 & 10.1 & b\\ | ||
3 & 23.113231 & c\\ | ||
\end{tabular} | ||
\end{center} | ||
\end{table} | ||
\begin{theorem}[Pythagorean theorem] | ||
\label{theo:theo_2} | ||
This is a theorema about right triangles and can be summarised in the next | ||
equation | ||
\[ x^2 + y^2 = z^2 \] | ||
\end{theorem} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
\begin{corollary} | ||
\label{coro:coro_1} | ||
There's no right rectangle whose sides measure 3cm, 4cm, and 6cm. | ||
\end{corollary} | ||
|
||
\section{sous-titre} | ||
\begin{lemma} | ||
\label{lem:lem_1} | ||
Given two line segments whose lengths are $a$ and $b$ respectively there | ||
is a real number $r$ such that $b=ra$. | ||
\end{lemma} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
\begin{definition}[Fibration] | ||
\label{def:def_1} | ||
A fibration is a mapping between two topological spaces that has the homotopy lifting property for every space $X$. | ||
\end{definition} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
\begin{proof} | ||
\label{proof:proof_1} | ||
To prove it by contradiction try and assume that the statement is false, | ||
proceed from there and at some point you will arrive to a contradiction. | ||
\end{proof} | ||
|
||
Vous pouvez ensuite référencer les Théorèmes \ref{theo:theo_1} et \ref{theo:theo_2}, ainsi que le Corollaire \ref{coro:coro_1} et le Lemme \ref{lem:lem_1} dans votre texte. De plus, la Définition \ref{def:def_1} et la Démonstration \ref{proof:proof_1} peuvent également être référencées dans le texte. | ||
|
||
\subsection{algorithmes} | ||
|
||
\begin{algorithm}[H] | ||
\KwData{input} | ||
\KwResult{output} | ||
initialization\; | ||
\While{predicat}{ | ||
instructions\; | ||
\eIf{condition}{ | ||
instructions1\; | ||
instructions2\; | ||
}{ | ||
instructions3\; | ||
} | ||
} | ||
\caption{Titre de l'algorithme.} | ||
\label{algo:algo_1} | ||
\end{algorithm} | ||
|
||
L'algorithme \ref{algo:algo_1} peut ensuite être référencé dans le texte. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,72 @@ | ||
\chapter{troisième chapitre} | ||
|
||
\section{sous-titre} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
|
||
\subsection{sous-titre} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
\section{Informatique} | ||
|
||
Vous pouvez inclure du code de la manière suivante : | ||
|
||
\begin{minted}[frame=single,framesep=2mm,baselinestretch=1,fontsize=\footnotesize,linenos]{cpp} | ||
{ | ||
#include <iostream> | ||
|
||
int main() { | ||
std::cout << "Hello World!"; | ||
return 0; | ||
} | ||
} | ||
\end{minted} | ||
|
||
\section{Chimie} | ||
|
||
Vous pouvez inclure des formules chimiques de la manière suivante : | ||
|
||
\begin{figure}[H] | ||
\centering | ||
\chemfig{-[:30](=[:90]O)-[:-30]OH} | ||
\caption{La formule de l'Éthanol.} | ||
\label{fig:ethanol} | ||
\end{figure} | ||
|
||
\noindent La formule de l'Éthanol est représentée en Figure \ref{fig:ethanol}. | ||
|
||
\section{Ingénierie} | ||
|
||
Vous pouvez inclure des schémas électriques de la manière suivante : | ||
|
||
\begin{figure}[H] | ||
\centering | ||
\includegraphics[width=7cm]{lenna.png} | ||
\caption{Titre de la figure.} | ||
\label{fig:figure_chap_3} | ||
\centering | ||
\begin{circuitikz}[american voltages] | ||
\draw | ||
(0,0) to [short, *-] (6,0) | ||
to [V, l_=$\mathrm{j}{\omega}_m \underline{\psi}^s_R$] (6,2) | ||
to [R, l_=$R_R$] (6,4) | ||
to [short, i_=$\underline{i}^s_R$] (5,4) | ||
|
||
(0,0) to [open, v^>=$\underline{u}^s_s$] (0,4) | ||
to [short, *- ,i=$\underline{i}^s_s$] (1,4) | ||
to [R, l=$R_s$] (3,4) | ||
to [L, l=$L_{\sigma}$] (5,4) | ||
to [short, i_=$\underline{i}^s_M$] (5,3) | ||
to [L, l_=$L_M$] (5,0); | ||
\end{circuitikz} | ||
\caption{Exemple d'un schéma électriques.} | ||
\label{fig:elec} | ||
\end{figure} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse | ||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non | ||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | ||
\noindent La Figure \ref{fig:elec} montre un exemple de schéma électriques. | ||
|
||
\subsection{sous-titre} | ||
\section{Physique} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. | ||
Vous pouvez inclure des diagrammes de Feynman de la manière suivante : | ||
|
||
\section{sous-titre} | ||
\begin{figure}[H] | ||
\centering | ||
\feynmandiagram [small, horizontal=a to t1] { | ||
a [particle=\(\pi^{0}\)] -- [scalar] t1 -- t2 -- t3 -- t1, | ||
t2 -- [photon] p1 [particle=\(\gamma\)], | ||
t3 -- [photon] p2 [particle=\(\gamma\)], | ||
}; | ||
\caption{Exemple d'un diagramme de Feynman.} | ||
\label{fig:feynman} | ||
\end{figure} | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. | ||
\noindent La Figure \ref{fig:feynman} montre l'exemple d'un diagramme de Feynman. |