How to include graphics in a Texshop doc, pls?

Discussion in 'macOS' started by 1365281, May 5, 2011.

  1. 1365281 Suspended

    Joined:
    Oct 27, 2006
    #1
    Hello all,

    I am trying to find a way of including graphics into TexShop (latex) document.
    Used the 2 following command lines but no success:
    Code:
    \usepackage{graphicx}
    \includegraphics[width=2in]{Weibull}
    
    I have Image Magic and ghostcript 8 installed. Any suggestions, please?
     
  2. ergdegdeg Moderator emeritus

    ergdegdeg

    Joined:
    Oct 13, 2007
    #2
    Do you get any error messages?
    What is the name of the file you want to include and where is it in relation to the .tex file?

    (If you haven't seen this, it may be helpful)
     
  3. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #3
    The image has to be an .eps file (encapsulated postscript).
     
  4. ergdegdeg Moderator emeritus

    ergdegdeg

    Joined:
    Oct 13, 2007
    #4
    Only if he's using straight latex. If he's using pdflatex etc. he can use more common formats.
     
  5. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #5
    If he's using pdflatex, he shouldn't be specifying \usepackage{graphicsx} in the first place...
     
  6. 1365281 thread starter Suspended

    Joined:
    Oct 27, 2006
    #6
    I have more command lines now but that's about it

    I have followed the link indicated by ergdegdeg and added [final] in documentclass, plus DeclareGraphicsExtensions because I thought I was compiling with pdflatex (a pdf document appears when I typeset). For the same reason I thought I didn't need to have my graphics in eps format.

    Code:
    \documentclass[final]{amsart}
    ...
    \usepackage{graphicx}
    \DeclareGraphicsExtensions{.pdf}
    \includegraphics[scale=0.2]{Weibull}
    the error message is that my command was ignored.
     
  7. 1365281 thread starter Suspended

    Joined:
    Oct 27, 2006
    #7
    At this point there is some progress and an issue with finding the graphics containing pdf file. Is there some particular rule to follow about where the graphic files should be located?
     
  8. latogoga macrumors member

    Joined:
    Jan 8, 2009
    #8
    should be in the same folder as the .tex file
     
  9. 1365281 thread starter Suspended

    Joined:
    Oct 27, 2006
    #9
    Great it worked!!! Thank you all!!!
     

Share This Page