org-theme/index.tex
2020-12-10 23:36:33 +01:00

576 lines
19 KiB
TeX

% Created 2020-12-10 jeu. 23:33
% Intended LaTeX compiler: pdflatex
\documentclass[a4paper, 10pt, DIV=12, parskip=full]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage[most]{tcolorbox}
\usepackage{bm}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{array}
\usepackage{siunitx}
\input{preamble.tex}
\addbibresource{ref.bib}
\author{Dehaeze Thomas}
\date{\today}
\title{Test File for the Org Mode Theme\\\medskip
\large Simple set of CSS and JS files}
\hypersetup{
pdfauthor={Dehaeze Thomas},
pdftitle={Test File for the Org Mode Theme},
pdfkeywords={},
pdfsubject={},
pdfcreator={Emacs 27.1 (Org mode 9.5)},
pdflang={English}}
\begin{document}
\maketitle
\tableofcontents
\chapter{Basics}
\label{sec:org750a1c4}
\section{Normal Markup}
\label{sec:orgfd540ce}
You can make words \textbf{bold}, \emph{italic}, \uline{underlined}, \texttt{verbatim} and \texttt{code}, and, if you must, \sout{strike-through}.
Here is some inline code Matlab code: \mintinline{matlab}{[K,CL,gamma] = mixsyn(G,W1,[],W3);}.
\section{Links to Footnotes}
\label{sec:org6dfa464}
A link to a footnote\footnote{A long foot note. Lorem ipsum dolor sit amet, consectetur adipiscing elit. With a reference to Figure \ref{fig:general_control_names}.} and to another footnote\footnote{An other footnote.}.
\section{Lists}
\label{sec:org2b7929b}
\textbf{Unordered List}:
\begin{itemize}
\item Lorem ipsum dolor sit amet, consectetur adipiscing elit.
\item Nam aliquet euismod viverra.
\item Phasellus turpis nisi, faucibus a orci et, faucibus fermentum ligula.
\end{itemize}
\textbf{List with Tasks}:
\begin{itemize}
\item[{$\square$}] Task 1
\item[{$\boxtimes$}] Task 2
\item[{$\boxminus$}] Sub-tasks:
\begin{itemize}
\item[{$\square$}] Sub-task 1
\item[{$\boxtimes$}] Sub-task 2
\end{itemize}
\end{itemize}
\textbf{Ordered List}:
\begin{enumerate}
\item In libero odio, imperdiet eget ex a, vulputate suscipit tellus.
\item Etiam sed leo ex.
\item Integer eu rutrum turpis.
\end{enumerate}
\textbf{Nested Lists}:
\begin{itemize}
\item Nulla facilisi.
\item Donec vulputate risus ut lectus bibendum, vitae fringilla odio tempus.
\begin{enumerate}
\item In libero odio, imperdiet eget ex a, vulputate suscipit tellus.
\item Etiam sed leo ex.
\begin{itemize}
\item Nulla facilisi.
\item Donec vulputate risus ut lectus bibendum, vitae fringilla odio tempus.
\end{itemize}
\item Integer eu rutrum turpis.
\end{enumerate}
\item Ut porta, quam id mattis feugiat, augue mauris bibendum sapien, a pulvinar mi lorem vitae nunc.
\begin{itemize}
\item Integer eu rutrum turpis.
\begin{itemize}
\item Sed pretium mattis nibh, vel lobortis augue semper vel.
\end{itemize}
\end{itemize}
\end{itemize}
\textbf{Definition List}:
\begin{description}
\item[{Lorem ipsum}] dolor sit amet, consectetur adipiscing elit. Mauris laoreet
sollicitudin venenatis. Duis sed consequat dolor.
\item[{Etiam feugiat}] pharetra sapien et semper. Nunc ornare lacus sit amet massa
auctor, vitae aliquam eros interdum. Mauris arcu ante, imperdiet vel purus
ac, bibendum faucibus diam. Ut blandit nec mi at ultricies. Donec eget
mattis nisl. In sed nibh felis. Cras quis convallis orci.
\item[{Sed aliquam}] odio sed faucibus aliquam, arcu augue elementum justo, ut
vulputate ligula sem in augue. Maecenas ante felis, pellentesque auctor
semper non, eleifend quis ante. Fusce enim orci, suscipit ac dapibus et,
fermentum eu tortor. Duis in facilisis ante, quis faucibus dolor. Etiam
maximus lorem quis accumsan vehicula.
\end{description}
\section{Links}
\label{sec:orgd80fca4}
Here is a list of links to:
\begin{itemize}
\item Figure \ref{fig:general_control_names}
\item Table \ref{tab:table_with_equations}
\item Listing \ref{lst:matlab_figure}
\item Specific line of code
\item Equation \eqref{eq:numbered}
\item Section \ref{sec:headlines}
\item Bibliographic Reference \cite{stanisic14_effec}, and \cite{schulte11_activ_docum_with_org_mode,dominik10_org_mode_refer_manual_organ_gnu_emacs,stanisic14_effec}
\end{itemize}
\section{Maths}
\label{sec:org7433c8d}
Here is some inline mathematics: \(z = 2\).
Unumbered equation:
\[ F(x) = \int_0^x f(t) dt \]
Using the \texttt{equation} environment in Eq. \eqref{eq:numbered}.
\begin{equation}
F(s) = \int_0^\infty f(t) e^{-st} dt \label{eq:numbered}
\end{equation}
Using the \texttt{align} environment Equations \eqref{eq:align_1} and \eqref{eq:align_2}.
\begin{align}
\mathcal{F}(a) &= \frac{1}{2\pi i}\oint_\gamma \frac{f(z)}{z - a}\,dz \label{eq:align_1} \\
\int_D (\nabla\cdot \mathcal{F})\,dV &=\int_{\partial D}\mathcal{F}\cdot n\, dS \label{eq:align_2}
\end{align}
\section{Verse, Quote}
\label{sec:orgeeff8d5}
Below is a verse.
\begin{verse}
Great clouds overhead\\
Tiny black birds rise and fall\\
Snow covers Emacs\\
\vspace*{1em}
\hspace*{3em}---AlexSchroeder\\
\end{verse}
Below is a quote.
\begin{quote}
Nobody ever figures out what life is all about, and it doesn't matter.
Explore the world.
Nearly everything is really interesting if you go into it deeply enough.
---Richard P. Feynman
\end{quote}
\section{Aside}
\label{sec:org5bac25b}
An aside block can be used as shown below.
\begin{aside}
This is a note about the text using the \texttt{aside} environment.
This can be as long as wanted
\end{aside}
Cras elementum ex vel orci congue porttitor. Vestibulum scelerisque gravida mattis. Suspendisse sit amet volutpat felis. Cras luctus porta lectus eget scelerisque. Cras blandit purus vel odio malesuada pellentesque. Interdum et malesuada fames ac ante ipsum primis in faucibus. Morbi eget aliquet sapien. Nunc eu elit in ligula aliquam congue dapibus eu massa. Sed accumsan hendrerit viverra. Quisque purus enim, tristique vitae porttitor eu, feugiat non ligula. Duis vitae ipsum vel quam ultricies ornare quis vitae quam. Vivamus commodo mauris non ex rutrum, sagittis facilisis metus tincidunt. Etiam vel nibh sit amet lorem auctor volutpat vel quis nulla. Quisque nec pharetra justo.
\section{Inline Task}
\label{sec:orged6bd1b}
Some text.
\begin{center}
\fbox{
\begin{minipage}[c]{.6\textwidth}
\textbf{\textsf{\textsc{TODO}}} \framebox{\#C} This is an inline task
\rule[.8em]{\textwidth}{2pt}
\noindent\textbf{SCHEDULED:} \textit{<2020-11-26 jeu.>}\\
\end{minipage}
}
\end{center}
Some text.
\chapter{Headlines}
\label{sec:org352af02}
\label{sec:headlines}
\section{Second level Headline with tags\hfill{}\textsc{@home:@work}}
\label{sec:org205b941}
\subsection{Third level Headline}
\label{sec:orgbbbe2dd}
\subsubsection{Fourth level Headline}
\label{sec:orgc4a367d}
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
\subsection{Third level Headline}
\label{sec:org70d0554}
\subsubsection{Fourth level Headline}
\label{sec:org7ff68c2}
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
\section{{\bfseries\sffamily TODO} Second level Headline with Schedule}
\label{sec:org18a237f}
\noindent\textbf{SCHEDULED:} \textit{<2020-11-26 jeu.>}\\
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
\section{\framebox{\#B} Second level Headline with a priority}
\label{sec:orgee22187}
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna.
\section{{\bfseries\sffamily TODO} \framebox{\#C} Second level Headline with TODO State}
\label{sec:orgef3d990}
Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo.
\section{{\bfseries\sffamily DONE} \framebox{\#A} Second level Headline with DONE State}
\label{sec:org380820e}
\noindent\textbf{CLOSED:} \textit{[2020-11-26 jeu. 18:53]}\\
Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
\subsection{{\bfseries\sffamily WAIT} Third level Headline with DONE State}
\label{sec:org11d07f1}
\noindent\textbf{CLOSED:} \textit{[2020-11-26 jeu. 18:53]}\\
Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet.
\chapter{Blocks}
\label{sec:org665d3c9}
\begin{seealso}
\texttt{seealso} block.
\end{seealso}
\begin{hint}
\texttt{hint} block.
\end{hint}
\begin{definition}
\texttt{definition} block.
\end{definition}
\begin{important}
\texttt{important} block.
\end{important}
\begin{exampl}
\texttt{exampl} block.
\end{exampl}
\begin{exercice}
\texttt{exercice} block.
\end{exercice}
\begin{question}
\texttt{question} block.
\end{question}
\begin{answer}
\texttt{answer} block.
\end{answer}
\begin{summary}
\texttt{summary} block.
\end{summary}
\begin{note}
\texttt{note} block.
\end{note}
\begin{caution}
\texttt{caution} block.
\end{caution}
\begin{warning}
\texttt{warning} block.
\end{warning}
\chapter{Source Blocks}
\label{sec:org008b97a}
\section{Figures}
\label{sec:org17ae91a}
\begin{minted}[]{matlab}
t = 0:0.01:5; % Time [s]
x = sin(2*pi*t); % Output Voltage [V]
\end{minted}
\begin{minted}[]{matlab}
figure;
plot(t, x);
xlabel('Time [s]'); ylabel('Voltage [V]');
\end{minted}
\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/matlab_fig_example.png}
\caption{\label{fig:matlab_fig_example}Matlab Figure}
\end{figure}
\section{Table Result}
\label{sec:org91f0302}
\begin{minted}[]{matlab}
x = 1:10;
y = x.^2;
\end{minted}
\begin{table}[htbp]
\caption{\label{tab:table_name}Table caption}
\centering
\begin{tabular}{rr}
\(x\) & \(y = x^2\)\\
\hline
1 & 1\\
2 & 4\\
3 & 9\\
4 & 16\\
5 & 25\\
6 & 36\\
7 & 49\\
8 & 64\\
9 & 81\\
10 & 100\\
\end{tabular}
\end{table}
\section{Inline Results}
\label{sec:org92282c6}
Results can be automatically outputed as shown below.
\begin{minted}[]{matlab}
sqrt(2)
\end{minted}
\begin{verbatim}
1.4142
\end{verbatim}
\begin{minted}[]{matlab}
y
\end{minted}
\begin{verbatim}
y =
1 4 9 16 25 36 49 64 81 100
\end{verbatim}
\section{Caption and Reference}
\label{sec:orgbb8c9d6}
Captions can be added to code blocks.
Moreover, we can link to specific bode blocks (Listing \ref{lst:matlab_figure} or \ref{lst:matlab_svd}).
\begin{listing}[htbp]
\begin{minted}[]{matlab}
figure;
[X,Y,Z] = peaks;
contour(X,Y,Z,20)
\end{minted}
\caption{\label{lst:matlab_figure}Code to produce a nice contour plot}
\end{listing}
\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/matlab_logo.png}
\caption{\label{fig:matlab_logo}Obtained Contour Plot}
\end{figure}
\begin{listing}[htbp]
\begin{minted}[]{matlab}
A = [1 2; 3 4; 5 6; 7 8]
[U,S,V] = svd(A)
\end{minted}
\caption{\label{lst:matlab_svd}Code to compute the Singular Value Decomposition}
\end{listing}
\begin{verbatim}
A = [1 2; 3 4; 5 6; 7 8]
A =
1 2
3 4
5 6
7 8
[U,S,V] = svd(A)
U =
-0.152483233310201 -0.82264747222566 -0.394501022283829 -0.379959133877596
-0.349918371807964 -0.42137528768458 0.242796545704357 0.800655879510063
-0.547353510305727 -0.0201031031435029 0.697909975442776 -0.461434357387336
-0.74478864880349 0.381169081397575 -0.546205498863303 0.0407376117548695
S =
14.2690954992615 0
0 0.626828232417541
0 0
0 0
V =
-0.641423027995072 0.767187395072177
-0.767187395072177 -0.641423027995072
\end{verbatim}
\section{Source Blocks with Line Numbers}
\label{sec:orga0ef907}
The Listing \ref{lst:matlab_line_numbers} has line numbers as the \texttt{-n} option was used.
Specific lines of codes can be referenced.
For instance, the code used to specify the wanted the vertical label is on line 4.
\begin{listing}[htbp]
\begin{minted}[linenos,firstnumber=1]{matlab}
figure;
plot(t, x)
xlabel('Time [s]');
ylabel('Output [V]');
\end{minted}
\caption{\label{lst:matlab_line_numbers}Specify Labels}
\end{listing}
Numbering can be continued by using \texttt{+n} option as shown below.
\begin{minted}[linenos,firstnumber=5]{matlab}
figure;
plot(t, u)
xlabel('Time [s]');
ylabel('Input [V]');
\end{minted}
\chapter{Images}
\label{sec:org3a775d4}
Figure \ref{fig:general_control_names} shows the results of the Tikz code of listing \ref{lst:tikz_test}.
\begin{listing}[htbp]
\begin{minted}[]{latex}
\begin{tikzpicture}
% Blocs
\node[block={2.0cm}{2.0cm}] (P) {$P$};
\node[block={1.5cm}{1.5cm}, below=0.7 of P] (K) {$K$};
% Input and outputs coordinates
\coordinate[] (inputw) at ($(P.south west)!0.75!(P.north west)$);
\coordinate[] (inputu) at ($(P.south west)!0.25!(P.north west)$);
\coordinate[] (outputz) at ($(P.south east)!0.75!(P.north east)$);
\coordinate[] (outputv) at ($(P.south east)!0.25!(P.north east)$);
% Connections and labels
\draw[<-] (inputw) node[above left, align=right]{(weighted)\\exogenous inputs\\$w$} -- ++(-1.5, 0);
\draw[<-] (inputu) -- ++(-0.8, 0) |- node[left, near start, align=right]{control signals\\$u$} (K.west);
\draw[->] (outputz) node[above right, align=left]{(weighted)\\exogenous outputs\\$z$} -- ++(1.5, 0);
\draw[->] (outputv) -- ++(0.8, 0) |- node[right, near start, align=left]{sensed output\\$v$} (K.east);
\end{tikzpicture}
\end{minted}
\caption{\label{lst:tikz_test}Tikz code that is used to generate Figure \ref{fig:general_control_names}}
\end{listing}
\begin{figure}[htbp]
\centering
\includegraphics[scale=1]{figs/general_control_names.png}
\caption{\label{fig:general_control_names}General Control Configuration}
\end{figure}
\chapter{Tables}
\label{sec:org8d81fa9}
Table \ref{tab:table_with_equations} shows a table with some mathematics inside.
\begin{table}[htbp]
\caption{\label{tab:table_with_equations}A Simple table with included math}
\centering
\begin{tabular}{rrrrrr}
\(N\) & \(N^2\) & \(N^3\) & \(N^4\) & \(\sqrt n\) & \(\sqrt[4]N\)\\
\hline
1 & 1 & 1 & 1 & 1 & 1\\
2 & 4 & 8 & 16 & 1.4142136 & 1.1892071\\
3 & 9 & 27 & 81 & 1.7320508 & 1.3160740\\
\end{tabular}
\end{table}
\begin{table}[htbp]
\caption{\label{tab:table_without_head}Table without Head}
\centering
\begin{tabular}{lrrrrr}
& \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5}\\
\textbf{1} & 1 & 2 & 3 & 4 & 5\\
\textbf{2} & 2 & 4 & 6 & 8 & 10\\
\textbf{3} & 3 & 6 & 9 & 12 & 15\\
\textbf{4} & 4 & 8 & 12 & 16 & 20\\
\textbf{5} & 5 & 10 & 15 & 20 & 25\\
\end{tabular}
\end{table}
\begin{table}[htbp]
\caption{\label{tab:table_multiple_heads}Table with multiples groups}
\centering
\begin{tabular}{lccc}
& \textbf{Classical Control} & \textbf{Modern Control} & \textbf{Robust Control}\\
\hline
\textbf{Date} & 1930- & 1960- & 1980-\\
\hline
\textbf{Tools} & Transfer Functions & State Space formulation & Disk margin\\
& Nyquist Plots & Riccati Equations & Systems and Signals Norms (\(\mathcal{H}_\infty\), \(\mathcal{H}_2\) Norms)\\
& Bode Plots & & Closed Loop Transfer Functions\\
& Phase and Gain margins & & Weighting Functions\\
\hline
\textbf{Control Architectures} & Proportional, Integral, Derivative & Full State Feedback & General Control Configuration\\
& Leads, Lags & LQR, LQG & \\
& & Kalman Filters & \\
\hline
\textbf{Advantages} & Study Stability & Automatic Synthesis & Automatic Synthesis\\
& Simple & MIMO & MIMO\\
& Natural & Optimization Problem & Optimization Problem\\
& & & Guaranteed Robustness\\
& & & Easy specification of performances\\
\hline
\textbf{Disadvantages} & Manual Method & No Guaranteed Robustness & Required knowledge of specific tools\\
& Only SISO & Difficult Rejection of Perturbations & Need a reasonably good model of the system\\
\end{tabular}
\end{table}
\chapter{Details}
\label{sec:org3ed07b1}
Below is some content hidden until you click the bar.
Almost anything can be put here for instance this table below.
\begin{table}[htbp]
\caption{\label{tab:table_with_equations_bis}A Simple table with included math}
\centering
\begin{tabular}{rrrrrr}
\(N\) & \(N^2\) & \(N^3\) & \(N^4\) & \(\sqrt n\) & \(\sqrt[4]N\)\\
\hline
1 & 1 & 1 & 1 & 1 & 1\\
2 & 4 & 8 & 16 & 1.4142136 & 1.1892071\\
3 & 9 & 27 & 81 & 1.7320508 & 1.3160740\\
\end{tabular}
\end{table}
This \texttt{details} blocks can even be put in other blocks are shown below.
It is approximately \textbf{12,742 km}
\begin{question}
What is the approximate diameter of the earth?
It is approximately \textbf{12,742 km}
\end{question}
\chapter{Videos}
\label{sec:orge3827d0}
\href{https://www.youtube.com/embed/SzA2YODtgK4}{video}
\printbibliography
\end{document}