From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: Org can't export inline image link to PDF Date: Tue, 26 Feb 2019 12:35:21 +0800 Message-ID: <87lg236uba.fsf@gmail.com> 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> <20190225133838.GE904@smoon.vl-lomov.ru> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyUSy-0002Yy-KI for emacs-orgmode@gnu.org; Mon, 25 Feb 2019 23:35:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyUSx-0005uZ-GE for emacs-orgmode@gnu.org; Mon, 25 Feb 2019 23:35:40 -0500 Received: from [61.175.244.13] (port=41277 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyUSw-0005nU-3f for emacs-orgmode@gnu.org; Mon, 25 Feb 2019 23:35:39 -0500 In-reply-to: <20190225133838.GE904@smoon.vl-lomov.ru> 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: Vladimir Lomov Cc: emacs-orgmode@gnu.org Vladimir Lomov writes: > Hello, > > ** stardiviner [2019-02-23 18:19:05 +0800]: > > [...] > >>>> I checked the =Resume.tex= file. The raw latex is this: >>>> >>>> #+begin_src latex >>>> \begin{center} >>>> \includegraphics[width=2.0in]{data/images/me_picture 23.jpg} >>>> \end{center} >>>> #+end_src >>>> >>>> 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 variable >> ~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. I see, thanks for explanation, now I understand why. using 'grffile' did fixed this problem. > > --- > WBR, Vladimir Lomov -- [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3