* link to pdf in latex export
@ 2012-03-26 18:28 Andreas Leha
2012-03-26 23:57 ` suvayu ali
2012-03-27 7:32 ` Christian Moe
0 siblings, 2 replies; 6+ messages in thread
From: Andreas Leha @ 2012-03-26 18:28 UTC (permalink / raw
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: link to pdf in latex export
2012-03-26 18:28 link to pdf in latex export Andreas Leha
@ 2012-03-26 23:57 ` suvayu ali
2012-03-27 8:42 ` Andreas Leha
2012-03-27 7:32 ` Christian Moe
1 sibling, 1 reply; 6+ messages in thread
From: suvayu ali @ 2012-03-26 23:57 UTC (permalink / raw
To: Andreas Leha; +Cc: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: link to pdf in latex export
2012-03-26 18:28 link to pdf in latex export Andreas Leha
2012-03-26 23:57 ` suvayu ali
@ 2012-03-27 7:32 ` Christian Moe
2012-03-27 8:27 ` Christian Moe
1 sibling, 1 reply; 6+ messages in thread
From: Christian Moe @ 2012-03-27 7:32 UTC (permalink / raw
To: Andreas Leha; +Cc: emacs-orgmode
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
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: link to pdf in latex export
2012-03-27 7:32 ` Christian Moe
@ 2012-03-27 8:27 ` Christian Moe
2012-03-27 8:43 ` Andreas Leha
0 siblings, 1 reply; 6+ messages in thread
From: Christian Moe @ 2012-03-27 8:27 UTC (permalink / raw
To: mail; +Cc: Andreas Leha, emacs-orgmode
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".
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: link to pdf in latex export
2012-03-26 23:57 ` suvayu ali
@ 2012-03-27 8:42 ` Andreas Leha
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Leha @ 2012-03-27 8:42 UTC (permalink / raw
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: link to pdf in latex export
2012-03-27 8:27 ` Christian Moe
@ 2012-03-27 8:43 ` Andreas Leha
0 siblings, 0 replies; 6+ messages in thread
From: Andreas Leha @ 2012-03-27 8:43 UTC (permalink / raw
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-03-27 8:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26 18:28 link to pdf in latex export Andreas Leha
2012-03-26 23:57 ` suvayu ali
2012-03-27 8:42 ` Andreas Leha
2012-03-27 7:32 ` Christian Moe
2012-03-27 8:27 ` Christian Moe
2012-03-27 8:43 ` Andreas Leha
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.