* Inline images in exported HTML
@ 2009-01-12 20:03 Graham Smith
2009-01-12 20:14 ` Bernt Hansen
0 siblings, 1 reply; 13+ messages in thread
From: Graham Smith @ 2009-01-12 20:03 UTC (permalink / raw)
To: emacs-orgmode
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,
Graham
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Inline images in exported HTML
2009-01-12 20:03 Inline images in exported HTML Graham Smith
@ 2009-01-12 20:14 ` Bernt Hansen
2009-01-12 20:35 ` Graham Smith
2009-01-14 7:39 ` Carsten Dominik
0 siblings, 2 replies; 13+ messages in thread
From: Bernt Hansen @ 2009-01-12 20:14 UTC (permalink / raw)
To: Graham Smith; +Cc: emacs-orgmode
"Graham Smith" <myotisone@gmail.com> 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.
-Bernt
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Inline images in exported HTML
2009-01-12 20:14 ` Bernt Hansen
@ 2009-01-12 20:35 ` Graham Smith
2009-01-14 7:39 ` Carsten Dominik
1 sibling, 0 replies; 13+ messages in thread
From: Graham Smith @ 2009-01-12 20:35 UTC (permalink / raw)
To: emacs-orgmode
Bernt,
> I was under the impression that only graphic files (PNG/JPG, etc) were
> inlined - I didn't think inlining a PDF was possible.
Ah that would explain it then, maybe I need to go the Latex route, but
I was looking for a quick route to get a printed output.
Thank,
Graham
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Inline images in exported HTML
2009-01-12 20:14 ` Bernt Hansen
2009-01-12 20:35 ` Graham Smith
@ 2009-01-14 7:39 ` Carsten Dominik
2009-01-14 8:02 ` Manish Sharma
` (2 more replies)
1 sibling, 3 replies; 13+ messages in thread
From: Carsten Dominik @ 2009-01-14 7:39 UTC (permalink / raw)
To: Bernt Hansen; +Cc: emacs-orgmode
On Jan 12, 2009, at 9:14 PM, Bernt Hansen wrote:
> "Graham Smith" <myotisone@gmail.com> 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.
- Carsten
>
>
> -Bernt
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Inline images in exported HTML
2009-01-14 7:39 ` Carsten Dominik
@ 2009-01-14 8:02 ` Manish Sharma
2009-01-14 9:12 ` Graham Smith
2009-01-20 18:31 ` Graham Smith
2 siblings, 0 replies; 13+ messages in thread
From: Manish Sharma @ 2009-01-14 8:02 UTC (permalink / raw)
To: emacs-orgmode
Carsten Dominik <dominik@science.uva.nl> writes:
> On Jan 12, 2009, at 9:14 PM, Bernt Hansen wrote:
>
[snip: about inlining PDF images in HTML export (42 lines)]>
> I am not sure if HTML allows to *inline* pdf, probably not.
>
> Hmm, I welcome suggestions on a strategy for this.
Two cents.
Image files in PDF format can be processes with pdfimages(1) and
extracted into jpg format for inclusion in HTML.
--
Manish
Life is beautiful.*
* Conditions apply.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Inline images in exported HTML
2009-01-14 7:39 ` Carsten Dominik
2009-01-14 8:02 ` Manish Sharma
@ 2009-01-14 9:12 ` Graham Smith
2009-01-14 9:48 ` Manish
2009-01-15 3:11 ` Austin Frank
2009-01-20 18:31 ` Graham Smith
2 siblings, 2 replies; 13+ messages in thread
From: Graham Smith @ 2009-01-14 9:12 UTC (permalink / raw)
To: Carsten Dominik; +Cc: Bernt Hansen, emacs-orgmode
Carsten,
2009/1/14 Carsten Dominik <dominik@science.uva.nl>:
>
> On Jan 12, 2009, at 9:14 PM, Bernt Hansen wrote:
>
>> "Graham Smith" <myotisone@gmail.com> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Inline images in exported HTML
2009-01-14 9:12 ` Graham Smith
@ 2009-01-14 9:48 ` Manish
2009-01-14 10:50 ` Graham Smith
2009-01-15 3:11 ` Austin Frank
1 sibling, 1 reply; 13+ messages in thread
From: Manish @ 2009-01-14 9:48 UTC (permalink / raw)
To: Graham Smith; +Cc: Bernt Hansen, emacs-orgmode
On Wed, Jan 14, 2009 at 2:42 PM, Graham Smith wrote:
[snip: Discussion on inlining PDF in HTML (53 lines)]
> 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"
Saw this wonder a while ago
http://tsdh.wordpress.com/2007/08/22/view-documents-pdfpostscriptdvi-inside-emacs/
Who knows someday doc-view.el's facilities can be called by Orgmode to
achieve this.
--
Manish
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Inline images in exported HTML
2009-01-14 9:48 ` Manish
@ 2009-01-14 10:50 ` Graham Smith
2009-01-14 11:59 ` Manish
0 siblings, 1 reply; 13+ messages in thread
From: Graham Smith @ 2009-01-14 10:50 UTC (permalink / raw)
To: Manish; +Cc: Bernt Hansen, emacs-orgmode
Manish
> Saw this wonder a while ago
> http://tsdh.wordpress.com/2007/08/22/view-documents-pdfpostscriptdvi-inside-emacs/
>
> Who knows someday doc-view.el's facilities can be called by Orgmode to
> achieve this.
I don't know enough about emacs/Org-mode to comment but it says it is
already part of Emacs.
Graham
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Inline images in exported HTML
2009-01-14 10:50 ` Graham Smith
@ 2009-01-14 11:59 ` Manish
2009-01-14 17:57 ` Graham Smith
0 siblings, 1 reply; 13+ messages in thread
From: Manish @ 2009-01-14 11:59 UTC (permalink / raw)
To: Graham Smith; +Cc: Bernt Hansen, emacs-orgmode
On Wed, Jan 14, 2009 at 4:20 PM, Graham Smith wrote:
> Manish
>
>> Saw this wonder a while ago
>> http://tsdh.wordpress.com/2007/08/22/view-documents-pdfpostscriptdvi-inside-emacs/
>>
>> Who knows someday doc-view.el's facilities can be called by Orgmode to
>> achieve this.
>
> I don't know enough about emacs/Org-mode to comment but it says it is
> already part of Emacs.
Emacs23, I think. And I recall watching a video demonstration of
it... it was quite slow. It converts the PDF pages into images for
display.
--
Manish
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Inline images in exported HTML
2009-01-14 11:59 ` Manish
@ 2009-01-14 17:57 ` Graham Smith
0 siblings, 0 replies; 13+ messages in thread
From: Graham Smith @ 2009-01-14 17:57 UTC (permalink / raw)
To: emacs-orgmode
> Emacs23, I think. And I recall watching a video demonstration of
> it... it was quite slow. It converts the PDF pages into images for
> display.
I see, thanks.
Graham
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Inline images in exported HTML
2009-01-14 9:12 ` Graham Smith
2009-01-14 9:48 ` Manish
@ 2009-01-15 3:11 ` Austin Frank
2009-01-15 7:44 ` Graham Smith
1 sibling, 1 reply; 13+ messages in thread
From: Austin Frank @ 2009-01-15 3:11 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 709 bytes --]
On Wed, Jan 14 2009, Graham Smith wrote:
> Carsten,
>
> 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"
Graham--
As another option, you might consider svg() from the RSvgDevice
package. SVG images display in some modern web browsers.
HTH,
/au
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 193 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Inline images in exported HTML
2009-01-15 3:11 ` Austin Frank
@ 2009-01-15 7:44 ` Graham Smith
0 siblings, 0 replies; 13+ messages in thread
From: Graham Smith @ 2009-01-15 7:44 UTC (permalink / raw)
To: emacs-orgmode
Austin
>
> As another option, you might consider svg() from the RSvgDevice
> package. SVG images display in some modern web browsers.
I didn't know about the SVG device, but it hasn't helped, unless its a
firefox setting (which I can't find) PNGs appear inlne as they should,
but not SVG (which from my gogling Firefox has supported since 2006).
Thanks,
Graham
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: Inline images in exported HTML
2009-01-14 7:39 ` Carsten Dominik
2009-01-14 8:02 ` Manish Sharma
2009-01-14 9:12 ` Graham Smith
@ 2009-01-20 18:31 ` Graham Smith
2 siblings, 0 replies; 13+ messages in thread
From: Graham Smith @ 2009-01-20 18:31 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Carsten,
Just to say many thanks for version 6.18 as this solves this problem
of a quick preview with inline PDFs via Latex.
Graham
2009/1/14 Carsten Dominik <dominik@science.uva.nl>:
>
> On Jan 12, 2009, at 9:14 PM, Bernt Hansen wrote:
>
>> "Graham Smith" <myotisone@gmail.com> 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.
>
> - Carsten
>
>
>>
>>
>> -Bernt
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-01-20 18:31 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 20:03 Inline images in exported HTML Graham Smith
2009-01-12 20:14 ` Bernt Hansen
2009-01-12 20:35 ` Graham Smith
2009-01-14 7:39 ` Carsten Dominik
2009-01-14 8:02 ` Manish Sharma
2009-01-14 9:12 ` Graham Smith
2009-01-14 9:48 ` Manish
2009-01-14 10:50 ` Graham Smith
2009-01-14 11:59 ` Manish
2009-01-14 17:57 ` Graham Smith
2009-01-15 3:11 ` Austin Frank
2009-01-15 7:44 ` Graham Smith
2009-01-20 18:31 ` Graham Smith
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).