I am trying to compile a document on TeXShop (on a mac). I get an error when I insert a picture from a pdf file. I get the error that bounding box cannot be determined. I looked at other answers. Somebody suggested to compile pdfLatex instead of Latex, but on TexShop I do not see how to do it.

I also tried to fix a bounding box on LaTeX, as in the following:

\includegraphics[width=1\columnwidth][bb=0 0 100 100]{nameFileFigure}

but it does not work.

How can I solve this problem?

  • Welcome to TeX.SX! Your post was migrated here from another Stack Exchange site. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Herr K. Dec 9 '13 at 2:53
  • At the top of the TeXShop Window, there are several dropdown menus. One of them (the second from the left) states “LaTeX” and can be changed to “pdflatexmk”. That's what you want to try, if you include a pdf. You could also change your PDF into an eps, if you really want to work with LaTeX further on. – Ronny Dec 9 '13 at 5:10
  • The syntax for includegraphics has only one optional argument, different options should be separated by commas: \includegraphics[width=1\columnwidth,bb=0 0 100 100]{nameFileFigure} – Andrew Swann Dec 10 '13 at 11:31

In TeXShop, the Typeset menu includes a line Pdftex. Make sure that is ticked to run pdflatex instead of latex.

Screen shot

If you wish to supply a bounding box explicitly to an \includegraphics command whilst specifying the width the syntax is

\includegraphics[width=0.8\linewdith,bb=0 0 100 100]{figurefile}

with options one set of square brackets and separated by commas.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy