From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: Org can't export inline image link to PDF Date: Mon, 25 Feb 2019 21:38:38 +0800 Message-ID: <20190225133838.GE904@smoon.vl-lomov.ru> References: <87bm37cdic.fsf@gmail.com> <877edudipw.fsf@gmail.com> <87tvgysf8f.fsf@nicolasgoaziou.fr> <8736oiwjkt.fsf@gmail.com> <87bm352oh8.fsf@nicolasgoaziou.fr> <87h8cwmbd2.fsf@gmail.com> <20190223015637.GA873@smoon.vl-lomov.ru> <87va1au7s6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VdOwlNaOFKGAtAAV" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyGT0-0005S1-VH for emacs-orgmode@gnu.org; Mon, 25 Feb 2019 08:38:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyGT0-0001DC-2A for emacs-orgmode@gnu.org; Mon, 25 Feb 2019 08:38:46 -0500 Received: from forward106j.mail.yandex.net ([5.45.198.249]:41091) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyGSy-0001Al-QS for emacs-orgmode@gnu.org; Mon, 25 Feb 2019 08:38:45 -0500 Content-Disposition: inline In-Reply-To: <87va1au7s6.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: stardiviner Cc: emacs-orgmode@gnu.org --VdOwlNaOFKGAtAAV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, ** stardiviner [2019-02-23 18:19:05 +0800]: [...] >>> I checked the =3DResume.tex=3D file. The raw latex is this: >>>=20 >>> #+begin_src latex >>> \begin{center} >>> \includegraphics[width=3D2.0in]{data/images/me_picture 23.jpg} >>> \end{center} >>> #+end_src >>>=20 >>> No "23.bb", I search over the whole TeX file, nothing found. But the >>> compiled PDF file still have "23.bb". >> >> May be you find what '.bb' file is if you look into the 'graphics' >> package documentation (assuming that you use TeX Live run 'texdoc >> graphicx', in my local copy on page 13 there is example of .bb file, >> search the document for .ps.bb). >> >> As for spaces in file name, if you cannot avoid them use 'grffile' >> package with 'graphicx' package. > > I have not found '.bb' files. Neither '.ps.bb' files. I checked out varia= ble > ~org-latex-packages-alist~, it have 'grffile' and 'graphicx' packages. >> P.S. The question how the .bb file comes on scene completely related how >> LaTeX works with graphic file. Look into documentation or ask question >> on TeX.SO or on texhax mailing list. The LaTeX cannot work directly with graphic files. In past when only latex and dvips were existed a user was able to use only PS/EPS graphic files. latex can work with any graphic files using graphics/graphicx package. One of the purpose of the package is to provide to latex information about the size of a figure (Bounding Box) what is found in EPS file. Sometimes EPS files were gzipped but latex was unable on-fly decompress them and extract BB information. The workaround for this situation is to either provide bb keyword for '\includegraphics' command or create file with extension .eps.bb which will hold necessary information. Actual inclusion of graphic file was done by dvips program. Nowadays almost everyone uses pdflatex/xelatex/luatex engines. They use graphic files in format PDF (native), PNG, JPEG. In most situations the engine could determine the size of a figure but when it fails it will include the figure with wrong size. The problem that you faced is a bit another, while it is looked as being related to missing BB (bounding box): the latex engine don't like the space in file name. pdflatex engine being run in special mode don't stop on missing file but show you information about missing .bb file. A workaround to use graphic files with spaces in file name is to use package 'grffile'. Note, however, this workaround is only for graphic files and don't work to input other LaTeX files with spaces in they filenames into current one. --- WBR, Vladimir Lomov --=20 Sales tax applies. --VdOwlNaOFKGAtAAV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQaopaKwcQWyz7yQfAHGfInzJc4BQUCXHPv3gAKCRAHGfInzJc4 BdzyAQDnMvWIIjBeZ3yzWXuc+NctbNlrA0TfxW4vst4TK9Gp6gD/fJ+9rwxBAlbT fkJliNmbv075fM0RTYMlqCaKMDjunQU= =BdHQ -----END PGP SIGNATURE----- --VdOwlNaOFKGAtAAV--