From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Graham Smith" Subject: Re: Re: Inline images in exported HTML Date: Wed, 14 Jan 2009 09:12:58 +0000 Message-ID: <2c75873c0901140112r1607c03t67ee957378c4d396@mail.gmail.com> References: <2c75873c0901121203i14b4a93am718de2913fa32d9c@mail.gmail.com> <87bpucp9i9.fsf@gollum.intra.norang.ca> <63F44A1C-0C41-4DCF-A498-1BEC6414B9B2@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LN1o5-0001Zk-Ud for emacs-orgmode@gnu.org; Wed, 14 Jan 2009 04:13:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LN1o5-0001Yk-8i for emacs-orgmode@gnu.org; Wed, 14 Jan 2009 04:13:01 -0500 Received: from [199.232.76.173] (port=49723 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LN1o5-0001YR-3o for emacs-orgmode@gnu.org; Wed, 14 Jan 2009 04:13:01 -0500 Received: from fg-out-1718.google.com ([72.14.220.156]:61311) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LN1o4-0007Vk-An for emacs-orgmode@gnu.org; Wed, 14 Jan 2009 04:13:00 -0500 Received: by fg-out-1718.google.com with SMTP id l26so237264fgb.30 for ; Wed, 14 Jan 2009 01:12:59 -0800 (PST) In-Reply-To: <63F44A1C-0C41-4DCF-A498-1BEC6414B9B2@uva.nl> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Bernt Hansen , emacs-orgmode@gnu.org Carsten, 2009/1/14 Carsten Dominik : > > On Jan 12, 2009, at 9:14 PM, Bernt Hansen wrote: > >> "Graham Smith" writes: >> >>> I am exporting to HTML with a lnk to a pdf with instant opening in >>> Firefox on a Mac. >>> >>> Originally, I had a description on the link, and as the manual says, >>> in the browser, I get the description in the browser which opens the >>> pdf when I click on it. >>> >>> But I want the image to appear without clicking on it, so I can print >>> out the file with the images visible >>> >>> After reading the manual, I have edited the link to remove the >>> description, but it still needs me to click on the link in the >>> browser to open the pdf. >>> >>> I have now added "file:" to the front of the link and I still need to >>> click on it to see the pdf in the browser. >>> >>> The link is now: >>> >>> >>> [[file:/Users/graham/Dropbox/Jacobs/GQ3/Analysis/Graphics/Hazard1aBootsrappedMedianProbabilityPlot.pdf]] >>> >>> Which still works fine when I click on it, but doesn't automatically >>> open. >>> >>> Can someone tell me what I am doing wrong. >>> >>> Many thanks, >> >> I was under the impression that only graphic files (PNG/JPG, etc) were >> inlined - I didn't think inlining a PDF was possible. > > Unfortunately, the right thing to do here depends on the LaTeX > processor you use. > > If you use latex and then something like dvips to process to postscript, > only .ps and .eps files can be inlined in LaTeX output. On the other > hand, if you use pdflatex to process the files, only .jpg and .pdf files > cab be included. > > I am not sure if HTML allows to *inline* pdf, probably not. > > Hmm, I welcome suggestions on a strategy for this. It does seem that HTML doesn't allow inline PDFs. I think it worth while mentioning that I am looking for a "quick preview" of my document, that also shows the images. These are natively produced by R on the Mac as PDFs. I want to keep them in vector format for the final report, so a) don't really want to change the output from R, Or b) convert them to PNGs just to allow me a quick Preview, which would no longer be "quick" So the "strategy" is likely to be different depending on the needs of the final graphic to be part of finished document (eg a web page) or a workaround to give a quick preview. It has to be said that I can't get it to work via Latex either as the graphic component throws up errors during compile, If you ignore the errors and still preview the output, the text is all there, but no graphics. I haven't spent any time trying to sort out the errors yet. Graham Graham