No Bounding Box Latex Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting latex no bounding box jpg ads with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX
Latex Error Cannot Determine Size Of Graphic No Boundingbox
Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: pdf bounding box Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top No BoundingBox error message up vote 8 down vote favorite 1 I want to include an eps file
Latex Figure Show Bounding Box
in LaTeX. I typed the following in Texmaker \begin{document} \begin{figure}[!ht] \centering \includegraphics[scale=1]{figure} \end{figure} \end{document} The error I get is ! LaTeX Error: Cannot determine size of graphic in figure.eps (no BoundingBox). Please help! graphics share|improve this question edited Sep 17 '13 at 19:20 Mico 176k17235533 asked Sep 17 '13 at 19:07 Vishal Upadhyay 41112 Welcome to TeX.SE! What is the filename extension of your graphics file? Is it .eps, or something else? Please advise. –Mico Sep 17 '13 at 19:20 2 does convert png to eps you figure have a bounding box (a line like %%BoundingBox: 1 2 3 4) It should have if it is a valid EPS file. –David Carlisle Sep 17 '13 at 19:24 As @David Carlisle is saying; try opening your figure.eps in a text_editor and search for the word: BoundingBox. If it is not there, then something is wrong. What is the source of your figure? –Hans-Peter E. Kristiansen Sep 17 '13 at 19:29 in some .eps files, the bounding box information is at the end, rather than at the beginning where it really belongs. (and latex won't find it at the end.) with more specific information, someone here can give instructions on how to repair it. –barbara beeton Sep 17 '13 at 20:11 1 @DavidCarlisle -- we've had problems here in production with the bounding box at the end; maybe it's dvips that can't find it properly, but in any case, we always have to make repairs. so i made an assumption ... –barbara beeton Sep 17 '13 at 21:14 | show 2 more comments 1 Answer 1 active oldest votes up vote 8 down vote Although the question has been answered by @DavidCarlisle in the comment, I'll try to complete the answer here. This is not supposed to happen for valid eps files, as they should contain a BoundingBox comment and the graphicx package should be able to read it. The error message is typical when including bitmap graphics, e.g. jpg, as explained here. In case yo
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more
Pdf To Eps
about Stack Overflow the company Business Learn more about hiring developers or posting ads
\includegraphics
with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question graphicx latex and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best http://tex.stackexchange.com/questions/133786/no-boundingbox-error-message answers are voted up and rise to the top Cannot determine size of graphic up vote 76 down vote favorite 22 I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic" My graphic is exported from PowerPoint, so I have tried both .pdf and .png. I get the same errors for both. Sample code that doesn't http://tex.stackexchange.com/questions/17734/cannot-determine-size-of-graphic work: \begin{figure}[htb] \begin{center} \leavevmode \includegraphics[width=0.8\textwidth]{graph.png} \end{center} \end{figure} If I have to manually set some measurements of the image, please tell me how I can find out those measurements. I need the image to take up about 80% of text width and be centered. Thanks. graphics errors png share|improve this question edited Jan 22 '13 at 15:55 Martin Schröder 11.1k43194 asked May 8 '11 at 11:56 user5371 possible duplicate of: tex.stackexchange.com/questions/11193/… (untagged) –Ciro Santilli 烏坎事件2016六四事件 法轮功 Aug 15 '14 at 20:20 add a comment| 3 Answers 3 active oldest votes up vote 84 down vote accepted The DVI producing latex doesn't support reading the size of PNG, JPG or PDF images. You need to use pdflatex for this. Actually latex is pdflatex in DVI mode in modern distributions, but it can read the sizes only in PDF mode for some reason. You are however able to state the natural size of the images using natwidth and natheight which will make latex compile without error. The produced DVI file will only link to the PDF and the DVI-to-PDF converter will need to include it in the final PDF. AFAIK dvpdf doesn't support this but dvipdfm does. \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure} \centering \includegraphics[width=0.8\textwidth,natwidth=610,natheight=642]{tiger.pdf} \end{figure} \end{document} Compile with either pdflatex
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://tex.stackexchange.com/questions/97601/no-boundingbox-error-in-latex of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us TeX - LaTeX Questions Tags Users Badges Unanswered Ask Question _ TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute: Sign up Here's how bounding box it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top “No BoundingBox” error in latex [closed] up vote 3 down vote favorite This is my preamble \documentclass[12pt,a4paper,twoside,french]{article} \usepackage{mathptmx} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage[left=3.17cm,right=3.17cm,top=2.54cm,bottom=2.54cm]{geometry} \usepackage{tabularx} \usepackage{caption} This is how the image is inserted in the document \begin{figure} \center \includegraphics[scale=1]{figures/liver-foci-bioassay-01.png} \caption{Protocole expérimental pour l'essai décrit par no bounding box pour l'étude de la carcinogénicité du foie à moyen-terme \citep{Ito:1995vn}} \label{fig:ito1} \end{figure} This error appears every time I try to compile in Latex ! LaTeX Error: Cannot determine size of graphic in figures/liver-foci-bioassay- 01.png (no BoundingBox). See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. How can I solve this problem? graphics include bounding-box share|improve this question asked Feb 10 '13 at 18:06 esmitex 4081820 closed as too localized by lockstep, Stefan Kottwitz♦ Apr 10 '13 at 10:41 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question. 1 Are you compiling with latex.exe? If so, please switch to pdflatex.exe as you are importing PNG file. –kiss my armpit Feb 10 '13 at 18:16 Well, I am using TexMaker and I usually compile with a "quick compilation" option