This repository has been archived on 2022-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
cours_latex/main.tex

111 lines
4.7 KiB
TeX

\documentclass{article}
\usepackage{cours}
\usepackage{lipsum}
\title{\bfseries Cours}
\author{Edgar P. Burkhart}
\begin{document}
\maketitle
\tableofcontents
\section{AH}
\subsection{Ah}
\subsubsection{ah}
\paragraph{Paragraphe §1} \lipsum[1]{} On a donc $L=\SI{23.556}{\kg\per\square\m\s}$, soit \SI{+3.14e2}{\newton\meter\per\watt} de \ce{CO2}, comme démontré en \autoref{eq:1} (Cf \autoref{fig:case}).
\begin{equation}
\int\sum x^n\sin y-1\label{eq:1}
\end{equation}
\begin{lstlisting}[language=python]
def f(x, n, y):
if x>=0:
return int(sum(x**n*sin(y)))-1
return 0
\end{lstlisting}
\begin{figure}
\centering
\begin{subfigure}{\linewidth}
\centering
\begin{tikzpicture}[scale=2,
cote/.style={|<->|, gray},
mesh/.style={dashed, gray},
]
\fill[blue!20] (0,0) rectangle (1,0.4);
\fill[blue!20] (1.05,0.2) rectangle (2.55,0) rectangle (6,0.1);
\draw (0,0) node[below left]{0} -- (1,0) node[below left]{1} -- (1,0.4) node[below left]{5} -- (1.05,0.4) node[below right]{6} -- (1.05,0) node[below right]{2} -- (6,0) node[below right]{3} -- (6,0.4) node[right]{7} -- (6,0.6) node[above right]{11} -- (1.05,0.6) node[above right]{10} -- (1,0.6) node[above left]{9} -- (0,0.6) node[above left]{8} -- (0,0.4) node[left]{4} -- cycle;
\draw[mesh] (0,0.4) -- (1,0.4) -- (1,0.6);
\draw[mesh] (6,0.4) -- (1.05,0.4) -- (1.05,0.6);
\draw[cote] (0,-0.35) -- ++(1,0) node[midway, below]{\SI{1}{\m}};
\draw[gray, |-|] (1,-0.35) -- ++(0.05,0) node[midway, below]{\SI{5}{\cm}};
\draw[cote] (1.05,-0.35) -- ++(1.5,0) node[midway, below]{\SI{1.5}{\m}};
\draw[cote] (0,-0.25) -- ++(6,0) node[midway, below]{\SI{6}{\m}};
\draw[cote] (0.3,0) -- ++(0,.4) node[midway, left]{$h_0$} node[midway, right]{\SI{40}{\cm}};
\draw[cote] (2,0) -- ++(0,.2) node[midway, left]{\SI{20}{\cm}};
\draw[cote] (4,0) -- ++(0,.1) node[midway, above left]{\SI{10}{\cm}};
\draw[cote] (-0.25,0) -- ++(0,.6) node[midway, left]{\SI{60}{\cm}};
\end{tikzpicture}
\caption{Initial configuration.}\label{fig:dbd}
\end{subfigure}
\begin{subfigure}{\linewidth}
\centering
\begin{tikzpicture}[scale=2,
cote/.style={|<->|, gray},
mesh/.style={dashed, gray},
]
\fill[blue!20] (0,0) rectangle (1,0.6);
\fill[blue!20] (1.01,0.2) rectangle (2.51,0) rectangle (6,0.1);
\draw (0,0) node[below left]{0} -- (1,0) node[below left]{1} -- (1,0.6) node[below left]{5} -- (1.01,0.6) node[below right]{6} -- (1.01,0) node[below right]{2} -- (6,0) node[below right]{3} -- (6,0.6) node[right]{7} -- (6,0.8) node[above right]{11} -- (1.01,0.8) node[above right]{10} -- (1,0.8) node[above left]{9} -- (0,0.8) node[above left]{8} -- (0,0.6) node[left]{4} -- cycle;
\draw[mesh] (0,0.6) -- (1,0.6) -- (1,0.8);
\draw[mesh] (6,0.6) -- (1.01,0.6) -- (1.01,0.8);
\draw[cote] (0,-0.35) -- ++(1,0) node[midway, below]{\SI{1}{\m}};
\draw[gray, |-|] (1,-0.35) -- ++(0.01,0) node[midway, below]{\SI{1}{\cm}};
\draw[cote] (1.01,-0.35) -- ++(1.5,0) node[midway, below]{\SI{1.5}{\m}};
\draw[cote] (0,-0.25) -- ++(6,0) node[midway, below]{\SI{6}{\m}};
\draw[cote] (0.3,0) -- ++(0,.6) node[midway, left]{$h_0$} node[midway, right]{\SI{60}{\cm}};
\draw[cote] (2,0) -- ++(0,.2) node[midway, left]{\SI{20}{\cm}};
\draw[cote] (4,0) -- ++(0,.1) node[midway, above left]{\SI{10}{\cm}};
\draw[cote] (-0.25,0) -- ++(0,.8) node[midway, left]{\SI{80}{\cm}};
\end{tikzpicture}
\caption{Adjusted configuration.}\label{fig:dbda}
\end{subfigure}
\caption{Studied case.}\label{fig:case}
\end{figure}
$$\scriptsize
\begin{bmatrix}
\ddot q_1 & sin(q_2)^2\ddot q_1 + \frac{1}{2}(\dot q_2\dot q_1 sin(2q_2)+q_1 sin(2q_2)\dot q_2) & cos(q_2) \ddot q_2- \dot q_2^2 sin(q_2) & 0 & 0 & \dot q_1 & 0 & tanh(1000 \dot q_1) & 0 \\
0 &
- \frac{1}{2} \dot q_1^2 sin(2 q_2) &
cos(q_2) \ddot q_1 &
\ddot q_2 & -sin(q_2) &
0 &
\dot q_2 &
0 &
tanh(1000 \dot q_2)
\end{bmatrix}
$$
$$
\text{GridSWAN}=\begin{bmatrix}
x_{11} & x_{12} & \dots & x_{1m} & y_{11} & y_{12} & \dots & y_{1m} \\
x_{21} & x_{22} & \dots & x_{2m} & y_{21} & y_{22} & \dots & y_{2m} \\
\dots & & & & & & & \dots \\
x_{n1} & x_{n2} & \dots & x_{nm} & y_{n1} & y_{n2} & \dots & y_{nm} \\
\end{bmatrix}
$$
$$
\text{BathySWAN}=\begin{bmatrix}
z_{11} & z_{12} & \dots & z_{1m} \\
z_{21} & z_{22} & \dots & z_{2m} \\
\dots & & & \dots \\
z_{n1} & z_{n2} & \dots & z_{nm} \\
\end{bmatrix}
$$
\listoffigures
\end{document}