I'm relatively new to LaTeX. I'm trying to include figures in my documents for the first time.
I'm using TexShop with Pdftex as a composer.
Here's my problem :
When I type a document empty but for an image, everything works and the image appears.
Code: Select all
\documentclass{article}
\usepackage[applemac]{inputenc} %sur pc remplacer applemac par latin1
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage[pdftex]{graphicx} %manipulation des images
\begin{document}
\begin{figure}[H]
\center
\includegraphics[width = 100 mm]{transversal}
\label{fig1}
\caption{Vibration transversale d'une corde.}
\end{figure}
\end{document}
Code: Select all
\documentclass{article}
\usepackage[applemac]{inputenc} %sur pc remplacer applemac par latin1
\usepackage[T1]{fontenc}
\usepackage[francais]{babel}
\usepackage[pdftex]{graphicx} %manipulation des images
\begin{document}
\subsection{l'oscillation transversale.}
L'oscillation transversale est due au déplacement des points de la corde perpendiculairement par rapport a la position d'équilibre.
\begin{figure}[H]
\center
\includegraphics[width = 100 mm]{transversal}
\label{fig1}
\caption{Vibration transversale d'une corde.}
\end{figure}
\end{document}
It is probably a dumb mistake I made or a tag I forgot to add but I can't find it and I couldn't find anyone with a similar problem on Google.
Please help me
