I am setting up my install of texlive2014 and working on my first document.
I want to insert a small graphic on a page, and have the following:
\documentclass[a4paper,12pt]{letter}
\usepackage{graphicx}
\begin{document}
\newcommand{\collegename}{TK}
\begin{figure}
\includegraphics[width=10mm]
{/home/steven/doc/app/assets/image/s-stamp.tif}
\centering
\end{figure}
When I run latex I get this error:
ERROR: LaTeX Error: Environment figure undefined.
My first suspicion was that I've made a mistake with my markup. My second suspicion is that maybe Texlive2014 doesn't come with Graphicx installed? I am not sure how to check whether I have it, but trying
tlmgr install graphicx
results in
package graphicx not present in package repository.
I'd appreciate any advice, framed at an introductory level.
figure undefinederror is caused by using theletterdocument class; tryarticleinstead. You most likely havegraphicxinstalled, but if not, it is known totlmgrasgraphics, as listed here. (Common packages are often uploaded to CTAN in lots of multiple packages which must be installed together.) – ChrisS Feb 06 '15 at 05:04letter.clsdoesn't have afigureenvironment. Do you need one? You could do\begin{center} ... \end{center}instead. (Two other things: what's with the weirdly placed\centeringcommand? and your example file is missing the\end{document}.) – jon Feb 06 '15 at 05:27tiffiles. pdflatex can handle jpeg, png and PDF. – Uwe Ziegenhagen Feb 06 '15 at 05:32tiffile from my question produced an error---I switched over to apngfile to solve that. I'm new to SE ... should I change that in the original question to prevent it being a red herring? – Steven Arntson Feb 06 '15 at 07:45\begin{figure}and\end{figure}lines which are for making a floating insert for which latex chooses a good position. The image inclusion just needs\includegraphics. So change to article if you are writing an article not a letter, do not change to article for anything related to this question. – David Carlisle Feb 06 '15 at 09:50