footnotes in tabular. multicol. adjustwidth. lstlisting. (examples)

This commit is contained in:
random-toto@localhost 2016-04-20 11:30:53 +02:00
parent 3ad03fc99f
commit 0195ff835a
1 changed files with 98 additions and 5 deletions

View File

@ -25,13 +25,23 @@
\usepackage[stable]{footmisc} % footnotes in titles
\usepackage{capt-of} % captions with \captionof{figure}{caption}\label{fig:a}
\usepackage{eurosym} %
\usepackage{textcomp} %
\usepackage{bookmark} %
\usepackage{textcomp} %
\usepackage{bookmark} %
\usepackage{footnote} % \footnote in tabular
\usepackage{capt-of} % \ caption
\usepackage{listings} % blue typewriter
%~ \usepackage{fancyvrb} %
%\selectlanguage{english}
% listings : \begin,end : lstlisting in blue
\lstset{basicstyle=\ttfamily\color{blue}}
% save footnotes
\makesavenoteenv{tabular}
% format de la page
\geometry{a4paper, margin=2.2cm}
\pagestyle{fancy}
@ -158,20 +168,22 @@ Prénom4 \textsc{Nom4}
\end{abstract}
\part{Exemples 1}
% uncomment following to reset section numbering (switch from \part 1 - 2)
%\setcounter{section}{0}
%\renewcommand*{\theHsection}{chX.\the\value{section}}
\section{Ma section 1}
\section{Du texte simple}
\subsection{ma sous-section 1}
\subsection{du texte}
\subsubsection*{ma ssss-section 1 sans numéro}
\subsubsection*{sans contours}
Du texte
\lipsum[1]
\subsubsection{avec une boite exemple}
\begin{center}
\begin{mdframed}[backgroundcolor=myGrey,userdefinedwidth=15.55cm,align=center]
@ -185,8 +197,11 @@ Du texte
\end{center}
\subsection{le même texte}
\lipsum[2]
\subsection{dans une remarque}
\begin{center}
\begin{tabular}{|>{\columncolor{myBlue}} p{.75cm} | p{15cm} |}
@ -198,6 +213,84 @@ Du texte
\stepcounter{rq}
\part{Exemples 2}
% renumérotage des sections
\setcounter{section}{0}
\renewcommand*{\theHsection}{chX.\the\value{section}}
\section{Encore des exemples !}
\subsection{avec des marges plus grandes}
\begin{adjustwidth}{3cm}{3cm}
\lipsum[3]
\end{adjustwidth}
\subsection{sur trois colonnes}
\begin{multicols}{3}
\lipsum[4]
\end{multicols}
%
\begingroup
\begin{center}
\begin{tabular}{| p {1.8cm} | p {1.2cm} | p{1.2cm} |}
\hline
\cellcolor{blue!25}\bfseries{Foo} & \cellcolor{blue!15} bar1 & \cellcolor{blue!15} bar 2 \\
\hline
\cellcolor{blue!15} toto1 & 1 & 2\footnote{Du texte en pied de page.} \\
\hline
\cellcolor{blue!15} toto2\footnote{Encore du texte.} & 3 &\cellcolor{green!10} 4 \\
\hline
\end{tabular}
\end{center}
\captionof{figure}{Foos --- bar/toto}\label{fig:foobar}
\endgroup
%
%~ \begin{center}
%~ \begin{tabular}{| p {1.8cm} | p {1.2cm} | p{1.2cm} |}
%~ \hline
%~
%~ \cellcolor{blue!25}\bfseries{Foo} & \cellcolor{blue!15} bar1 & \cellcolor{blue!15} bar 2 \\
%~ \hline
%~ \cellcolor{blue!15} toto1 & 1 & 2\footnote{Blabla !} \\
%~ \hline
%~ \cellcolor{blue!15} toto2 & 3 &\cellcolor{green!10} 4 \\
%~
%~ \hline
%~ \end{tabular}
%~ \end{center}
\begin{lstlisting}
Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi.
Morbi auctor lorem non justo. Nam lacus libero, pretium at, lobortis
vitae, ultricies et, tellus. Donec aliquet, tortor sed accumsan bibendum,
erat ligula aliquet magna, vitae ornare odio metus a mi. Morbi ac orci et
nisl hendrerit mollis. Suspendisse ut massa. Cras nec ante. Pellentesque
a nulla. Cum sociis natoque penatibus et magnis dis parturient montes,
nascetur ridiculus mus. Aliquam tincidunt urna. Nulla ullamcorper
vestibulum turpis. Pellentesque cursus luctus mauris.
\end{lstlisting}
\mttt{