Results 1 to 6 of 6

Thread: question about putting images in my tex file in Texmaker

  1. #1
    Join Date
    Oct 2008
    Beans
    62

    question about putting images in my tex file in Texmaker

    I'm sure that I'm not the first person to ask this (couldn't find an answer either), but how does one put an image in a tex file. Now let me be a bit more specific. I know you need to use \usepackage{graphicx}, and the command is \includegraphics[scale=#]{image} but where do I put the image file? Furthermore, I'm using Ubuntu 10.04. Any help is appreciated!!!

  2. #2
    Join Date
    May 2009
    Beans
    113

    Re: question about putting images in my tex file in Texmaker

    You are on the right path! Place the graphics file in the same path with your .tex document. Also, see this excellent link:

    http://en.wikibooks.org/wiki/LaTeX/Importing_Graphics

    Regards.

  3. #3
    Join Date
    Jan 2008
    Location
    Coventry, England
    Beans
    484
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: question about putting images in my tex file in Texmaker

    In principle the image file can go anywhere. For my thesis, I had individual chapter directories with subdirectories containing the figures. So for instance:

    Code:
    \begin{figure}[t!]
    \begin{center}
    	\includegraphics[scale=0.7]{figures/Figure.eps}
    	\caption{A caption}
    	\label{a:label}
    	\end{center}
    \end{figure}
    The path in parentheses could be either relative (as in this case) or absolute. The choice is yours.

  4. #4
    Join Date
    Oct 2008
    Beans
    62

    Re: question about putting images in my tex file in Texmaker

    Awesome! thanks a bunch!

  5. #5
    Join Date
    Mar 2009
    Location
    the 'Lowlands'
    Beans
    70
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: question about putting images in my tex file in Texmaker

    I recommend .eps for figures, it gives the best quality!!

  6. #6
    Join Date
    Jan 2008
    Location
    Coventry, England
    Beans
    484
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: question about putting images in my tex file in Texmaker

    Yes. .eps files are vector graphics images, so they scale properly. Raster images and bitmaps suffer from pixelation when scaled without any care.

    I also recommend using Inkscape for vector diagrams and pictures. Very powerful, relatively simple but makes nice figures with a small file size compared to other programs. In my experience anyway! Most of my thesis diagrams were done in Inkscape.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •