From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: How to export to pdf and link to other pdf-files? Date: Wed, 20 May 2015 11:51:01 +0200 Message-ID: <20150520095101.GA8817@chitra.no-ip.org> References: <87iobnmvny.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv0eZ-0003TZ-CM for emacs-orgmode@gnu.org; Wed, 20 May 2015 05:51:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv0eX-0003ve-HJ for emacs-orgmode@gnu.org; Wed, 20 May 2015 05:51:07 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:36467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv0eX-0003v9-Al for emacs-orgmode@gnu.org; Wed, 20 May 2015 05:51:05 -0400 Received: by wizk4 with SMTP id k4so148566274wiz.1 for ; Wed, 20 May 2015 02:51:04 -0700 (PDT) Received: from chitra.no-ip.org ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by mx.google.com with ESMTPSA id k2sm2555768wif.3.2015.05.20.02.51.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 May 2015 02:51:03 -0700 (PDT) Content-Disposition: inline In-Reply-To: <87iobnmvny.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Wed, May 20, 2015 at 11:43:13AM +0200, Rasmus wrote: > Dov Grobgeld 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.