Hi all, I have a question concerning the latex export. Suppose, I have a pdf, that I want to have a link to in the exported latex doc, not embedded as graphic: Example: #+name: produce_plot #+begin_src R :exports none :results graphics :file sth.pdf plot(1:10) plot(1:20) #+end_src The following is embedded as graphic, but I'd like to just have a link to the pdf. The plots can be found in the additional file call_produce_plot[ :results graphics :file sth.pdf]()[:results file]. How do I do that? Best, Andreas
On Mon, Mar 26, 2012 at 20:28, Andreas Leha
<andreas.leha@med.uni-goettingen.de> wrote:
> The plots can be found in the additional file
> call_produce_plot[ :results graphics :file sth.pdf]()[:results file].
>
> How do I do that?
I don't know about output from babel blocks, but I think you can link
to a normal pdf by providing a description to the link.
--
Suvayu
Open source is the future. It sets us free.
Hi,
Try customizing org-export-latex-inline-image-extension and leaving
out "pdf".
Yours,
Christian
On 3/26/12 8:28 PM, Andreas Leha wrote:
> Hi all,
>
> I have a question concerning the latex export.
>
> Suppose, I have a pdf, that I want to have a link to in the exported
> latex doc, not embedded as graphic:
>
> Example:
> #+name: produce_plot
> #+begin_src R :exports none :results graphics :file sth.pdf
> plot(1:10)
> plot(1:20)
> #+end_src
>
> The following is embedded as graphic, but I'd like to just have a
> link to the pdf.
>
> The plots can be found in the additional file
> call_produce_plot[ :results graphics :file sth.pdf]()[:results file].
>
> How do I do that?
>
> Best,
> Andreas
>
>
>
On second thought, not a very good solution. It only solves your
problem if you always want to link to a certain file type (here PDFs)
and not sometimes inline it as a graphic.
I usually just fix this manually, by evaluating the source once,
removing the #+RESULT line and adding a description part to the
resulting link so it is exported as a link hereafter.
Yours,
Christian
On 3/27/12 9:32 AM, Christian Moe wrote:
> Hi,
>
> Try customizing org-export-latex-inline-image-extension and leaving
> out "pdf".
suvayu ali <fatkasuvayu+linux@gmail.com> writes:
> On Mon, Mar 26, 2012 at 20:28, Andreas Leha
> <andreas.leha@med.uni-goettingen.de> wrote:
>> The plots can be found in the additional file
>> call_produce_plot[ :results graphics :file sth.pdf]()[:results file].
>>
>> How do I do that?
>
> I don't know about output from babel blocks, but I think you can link
> to a normal pdf by providing a description to the link.
Hi suvayu ali,
thanks. This works.
Cheers,
Andreas
Christian Moe <mail@christianmoe.com> writes:
> On second thought, not a very good solution. It only solves your
> problem if you always want to link to a certain file type (here PDFs)
> and not sometimes inline it as a graphic.
>
> I usually just fix this manually, by evaluating the source once,
> removing the #+RESULT line and adding a description part to the
> resulting link so it is exported as a link hereafter.
>
> Yours,
> Christian
>
> On 3/27/12 9:32 AM, Christian Moe wrote:
>> Hi,
>>
>> Try customizing org-export-latex-inline-image-extension and leaving
>> out "pdf".
Hi Christian,
thanks for your answer. I am just preparing a patch to automate this
(for my use-case at least)
Cheers,
Andreas