Re: image from URL?
Alan G Isaac <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <[email protected]> |
> On 2014-09-15, Alan G Isaac wrote: >> The URL >> ``http://research.stlouisfed.org/fred2/graph/fredgraph.png?g=KlW`` >> serves an image in PNG format, but I cannot simple provide it to the >> ``image`` directive. Is there a good way to proceed within docutils? Guenter Milde <[email protected]> wrote: > The image directive expects an URL as argument. > What is the problem? > What do you want to achieve, what is your output format? > What is the result you get? Hi Günter, Thank you for your patient reply to my appallingly incomplete inquiry. (Excuse: I was hurriedly revising some slides using rst2beamer.) Here's the issue: if I provide that URL, then the LaTeX generated is an \includegraphics command referring to: P:/research.stlouisfed.org/fred2/graph/fredgraph.png?g=KlW (The ``P:/`` presumably derives from the ``http://``.) So this has two problems: 1. it refers to the wrong location, and 2. LaTeX cannot handle URLs for graphics inclusion In principle the second problem could be addressed by using the \externalfigure command with ConTeXt, but I am not a ConTeXt user, and in any case that would still leave the first problem. So I think (?) this report has become both a bug report (problem 1) and a possible enhancement request (problem 2). I am not sure about the enhancement request, because it is not clear to me whose responsibility this should be: docutils, or LaTeX. Given the current limitations of LaTeX, I am inclined to think that the right solution is for the LaTeX writer to write a hyperlink. However one could imagine allowing docutils users to specify an imagecache directory for storing images referred to by URL. fwiw, Alan ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Docutils-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/docutils-users Please use "Reply All" to reply to the list.