- 9,621
- 9
I've got an image, GIF, JPEG or other ( I can easily convert between most formats) and I want to insert it into a Latex document. Could someone please give me instructions on how to use this. I'm using TeXnicCenter on a Windows system.
You have to convert them to postscript format to use them (at least, I only know how to include postscript images).Hootenanny said:I've got an image, GIF, JPEG or other ( I can easily convert between most formats) and I want to insert it into a Latex document. Could someone please give me instructions on how to use this. I'm using TeXnicCenter on a Windows system.
\usepackage{graphicx}
\usepackage{rotating}
\begin{center}
\rotatebox{0}{\scalebox{1}[1]{\includegraphics[width=4cm,height=5cm]{sphericalcoordinates.eps}}}
\end{center}
imabug said:If you use PDFLaTeX, JPEG files can be included as described by franz.
For regular LaTeX you're stuck with using something like jpeg2ps to convert your JPEG files to encapsulated PS format.
An extra package is not nessesary (atleast not with .jpg files). The following minimal example compiles fine with pdfLaTeX, under MiKTeX.franznietzsche said:I think you need an extra package to do that with pdflatex. Something in place of the \usepackage{graphicx}. I think.
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{stone} % stone.jpg <--!
\end{document}
Triss said:An extra package is not nessesary (atleast not with .jpg files). The following minimal example compiles fine with pdfLaTeX, under MiKTeX.
Code:\documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics{stone} % stone.jpg <--! \end{document}
Hootenanny said:Thanks for your help guys, just to check the image needs to be in the same folder as the LaTex document? Apologies for double posting on the boards.
I think you can usee adobe's acrobat reader to change your word document into a pdf file, that is much faster, you can include everything everything in word document.Hootenanny said:I've got an image, GIF, JPEG or other ( I can easily convert between most formats) and I want to insert it into a Latex document. Could someone please give me instructions on how to use this. I'm using TeXnicCenter on a Windows system.
There are good reasons to keep your graphics in your working directory, see http://www.tex.ac.uk/cgi-bin/texfaq2html?label=graphicspath but it can surely be done:Hootenanny said:Thanks for your help guys, just to check the image needs to be in the same folder as the LaTex document? Apologies for double posting on the boards.
\graphicspath{{../}} % looks for graphic files in the parent directory
\graphicspath{{./figs/}} % looks for graphic files in the sub directory "figs"
You need Adobe Acrobat to do that. Acrobat Reader doesn't give you that capability.dumbobie said:I think you can usee adobe's acrobat reader to change your word document into a pdf file, that is much faster, you can include everything everything in word document.
dumbobie said:I think you can usee adobe's acrobat reader to change your word document into a pdf file, that is much faster, you can include everything everything in word document.
Hootenanny said:I used to use MS Word with equation editor, I've recently switched to Latex and found it much more intuitive once you've learned the code.