Quelques éléments de LaTeX ...




LaTeX

Ce document bla bla bla ...

© G. Landa, LAAS - CNRS

<georges.landa@laas.fr>

Exemples d'utilisation de LaTeX

Georges Landa Date: 24 juin 2014

Exemples d'utilisation de LaTeX

Table des matières

Généralités

Structure d'un document LATEX

% un commentaire commence toujours par le caractère %
%Facteur de magnification : 1000 signifie “multiplié par 1” 
\mag=1000
% déclaration de la classe : article, report, book, 
% et taille par défaut des caractères et format de page
\documentclass[12pt,a4]{report}
% chargement des packages utilisés
\usepackage[latin1]{inputenc}
\usepackage[francais]{babel}
\usepackage{graphicx,amsmath,amssymb}
\usepackage{eurosym,multirow}
\usepackage{epstopdf}
% modification de la page et mise-en-page
\textwidth=16cm
\textheight 24cm
\oddsidemargin -10mm
\topmargin -15mm
% élimination du numéro de page sur la première page
\pagestyle{empty}
% Titre du document, auteur \dots
\title{Exemples d'utilisation de \LaTeX{}}
\author{Georges Landa}
\date{24 juin 2014}
\input{epsf.sty}
\begin{document}
\maketitle
% table des matières (prévoir 2 compilations)
\tableofcontents
\newpage
\chapter{Titre du chapitre 1}
\section{Titre de la section 1 du chapitre 1}
\end{document}

Formattage du texte

On peut écrire en texte normal ou en italique ou en gras ou en Terminal Type.
On peut écrire en texte normal ou en {\it italique} 
ou en {\bf gras} ou en {\tt Terminal Type}.
On peut mettre une partie en retrait :

ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait,

\begin{quote}
	ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, 
\end{quote}

ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait,

\begin{quotation}
	ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, 
	ceci est un petit paragraphe en retrait, ceci est un petit paragraphe en retrait, 
\end{quotation}

Listes à puces et énumérations

Listes à puces

  • première ligne
  • deuxième ligne
  • troisième ligne
    • troisième - un
    • troisième - deux
    • troisième - trois
\begin{itemize}
\item première ligne
\item deuxième ligne
\item troisième ligne
	\begin{itemize}
	\item troisième - un
	\item troisième - deux
	\item troisième - trois
	\end{itemize}
\end{itemize}

Enumérations




  1. un éléphant
  2. deux éléphants
  3. trois éléphants

\begin{enumerate}
	\item un éléphant
	\item deux éléphants
	\item trois éléphants
\end{enumerate}
			

Figures

Une figure avec sa légende :
Figure: Molécule $CCl_4$
\begin{figure}[!h]
\centerline{    
\includegraphics[width=10cm]{./ccl4_2.eps}
}
\caption{Molécule $CCl_4$}
\label{fig:ccl4}
\end{figure}
				
\includegraphics[width=10cm]{.././ccl4_2.eps}

Equations et objets mathématiques

Une équation :




\[
|I_2|=\left| \int_{0}^T \psi(t)
\left\{
u(a,t)-
\int_{\gamma(t)}^a
\frac{d\theta}{k(\theta,t)}
\int_{a}^\theta c(\xi)u_t(\xi,t)\,d\xi
\right\} dt
\right|
\]
\[
|I_2|=\left| \int_{0}^T \psi(t)
\left\{ 
u(a,t)-
\int_{\gamma(t)}^a 
\frac{d\theta}{k(\theta,t)}
\int_{a}^\theta c(\xi)u_t(\xi,t)\,d\xi
\right\} dt
\right|
\]
Ecriture d'une matrice :







\[
\mathbf{R^{'}}= \left( \begin{array}{ccc} \cos\theta + l_{13}^{2}(1-\cos\theta) & l_{23}l_{13}(1-\cos\theta)-l_{33}\sin\theta & l_{33}l_{13}(1-\cos\theta)+l_{23}\sin\theta \\ l_{13}l_{23}(1-\cos\theta)+l_{33}\sin\theta & \cos\theta + l_{23}^{2}(1-\cos\theta) & l_{33}l_{23}(1-\cos\theta)-l_{13}\sin\theta \\ l_{13}l_{33}(1-\cos\theta)-l_{23}\sin\theta & l_{23}l_{33}(1-\cos\theta)+l_{13}\sin\theta & \cos\theta + l_{33}^{2}(1-\cos\theta)\\ \end{array} \right)
\]
\begin{displaymath} 
\mathbf{R^{'}}= \left( \begin{array}{ccc} \cos\theta + l_{13}^{2}(1-\cos\theta) & l_{23}l_{13}(1-\cos\theta)-l_{33}\sin\theta & l_{33}l_{13}(1-\cos\theta)+l_{23}\sin\theta \\ l_{13}l_{23}(1-\cos\theta)+l_{33}\sin\theta & \cos\theta + l_{23}^{2}(1-\cos\theta) & l_{33}l_{23}(1-\cos\theta)-l_{13}\sin\theta \\ l_{13}l_{33}(1-\cos\theta)-l_{23}\sin\theta & l_{23}l_{33}(1-\cos\theta)+l_{13}\sin\theta & \cos\theta + l_{33}^{2}(1-\cos\theta)\\ \end{array} \right) 
\end{displaymath}
				

On peut introduire des objets mathématiques dans le texte : $\alpha$ ou $\sum_{i=0}^{N}$

Quelques tableaux

Un exemple de tableau avec sa légende.
Tableau: Légende du tableau
un deux
trois quatre
cinq six





begin{table}[h!]
	\centering
	\begin{tabular}{||c|c||}
	\hline
	un& deux \\
	\hline
	trois& quatre\\
	\cline{2-2}
	cinq&six\\
	\hline
	\end{tabular}
	\caption{Légende du tableau}
	\label{tab:tableauXX}
\end{table}
			

texte à suivre .... Un autre type de tableau :
Jour		 Semaine		Résultat 

123 		 24		 rien

orange		 banane		plus


 
Jour Matin Après-Midi

\rotatebox{90}{Lundi 10 octobre 2005}

Matin  
  Peut-on contrôler le climat ?
  Serge Planton, Centre National de Recherches Météorologiques
  Le soleil : une étoile parmi tant d'autres
  Dr Didier Barret, CESR
Après-Midi  
  Bilan de l'exploration du Système Solaire
  Sylvestre Maurice, Centre d'Etude Spatiale du Rayonnement
  La nanophysique
  Jean-Claude Ousset, Professeur INSAT, Centre d'Elaboration de Matériaux et d'Etudes Structurales

Utilisation des références bibliographiques

On peut citer des journaux [1] ou des ouvrages [2] ...

Bibliographie

1 G. Landa and M. Djafari-Rouhani.
La publi du siècle sur LaTeX !
In , editor, Phys. Stat. Solidi (c), volume1 of , page 2851, , 2003. , . 2 G.Landa.
Ceci est mon travail.
Masson, 2006.
 À propos de ce document...
Exemples d'utilisation de LATEX This document was generated using the LaTeX2HTML translator Version 2021 (Released January 1, 2021) The command line arguments were:
latex2html -split 0 -nonavigation latex_jojo.tex The translation was initiated on 2021-04-08