emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to export to pdf and link to other pdf-files?
Date: Wed, 20 May 2015 11:51:01 +0200	[thread overview]
Message-ID: <20150520095101.GA8817@chitra.no-ip.org> (raw)
In-Reply-To: <87iobnmvny.fsf@gmx.us>

On Wed, May 20, 2015 at 11:43:13AM +0200, Rasmus wrote:
> Dov Grobgeld <dov.grobgeld@gmail.com> writes:
> 
> > What do I need to do to inhibit the inclusion of pdf files as graphics
> > files, when exporting an org file to pdf?
> >
> > Ideally I would like to have links to referenced pdf files and not have
> > them treated as embedded graphics.
> 
> A very quick look suggests it's hardcoded in org-latex--inline-image.
> Thus, the easiest thing may be to use a filter and be sure to include the
> pdf extension.  I think you might have to use
> org-export-filter-paragraph-functions,

I think the OP can simply add a description to the links.  AFAIK, links
with descriptions are exported as links during LaTeX export.

Okay I can confirm this.  The following:

  [[file:/tmp/foo.pdf][A link]]

is exported as:

  \href{file:///tmp/foo.pdf}{A link}

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

      reply	other threads:[~2015-05-20  9:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20  2:58 How to export to pdf and link to other pdf-files? Dov Grobgeld
2015-05-20  9:43 ` Rasmus
2015-05-20  9:51   ` Suvayu Ali [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150520095101.GA8817@chitra.no-ip.org \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).