projprog/Latex11.2.tex
2021-10-08 17:49:24 +02:00

48 lines
938 B
TeX

\documentclass{article}
\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[margin=6em, a4paper]{geometry}
\usepackage{lipsum}
\usepackage{array}
\usepackage{multirow}
\usepackage{hhline}
\newcommand{\txt}{Voici un paragraphe un peu long pour notre bel exemple}
\title{Ce document a un titre}
\date{20444}
% Fin du préambule.
\begin{document}
\begin{tabular}{|c|b{4cm}|p{4cm}|m{4cm}|}
\hline
Coucou ! & \txt & \txt & \txt \\
\hline
\end{tabular}
\vspace{10ex}
\begin{tabular}{>{$}c<{$}!{est}>{\it}c}
\sum_{i=0}^n 2i+1 & une somme \\\hline
\prod_{j=1}^7 \ln j & un produit \\\hline
\bigcup_{A\in E}A & une union
\end{tabular}
\vspace{10ex}
\begin{tabular}{||c|c|c||}
\hhline{#=:=:=#}
un & deux & trois \\
\hhline{:=:-:=||}
\multicolumn{2}{||r|}{qqquatre} & \multirow{2}{*}{cinq} \\
\hhline{--~}
six & sept &\\
\hhline{~--}
huit & neuf & dix \\
\hhline{|b:=:=:=:b|}
\end{tabular}
\end{document}