From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank Chang Subject: [WISH] LaTeX Export: Expand link abbreviations first before exporting LaTeX links Date: Fri, 4 Jul 2008 11:25:44 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEjQS-00084F-Dh for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 07:26:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEjQP-00082K-Af for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 07:26:02 -0400 Received: from [199.232.76.173] (port=43896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEjQO-000820-Sp for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 07:26:00 -0400 Received: from main.gmane.org ([80.91.229.2]:60466 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEjQO-0001sv-Ln for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 07:26:00 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KEjQH-0001qd-VF for emacs-orgmode@gnu.org; Fri, 04 Jul 2008 11:25:57 +0000 Received: from g1pc3n108.g1.ntu.edu.tw ([140.112.230.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2008 11:25:53 +0000 Received: from frank.nevermind by g1pc3n108.g1.ntu.edu.tw with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2008 11:25:53 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Carsten Thank you for fixing the tag problem in headline. It's really amazing that the problem can be fixed so quick (just few hours)! Now I have another problem:) Since I put all image files in one directory called, for example, ~/notes/img. And I want it to be a link abbreviation, #+LINK: image file:~/notes/img/ so the image link will be easy to write: [[image:demo.jpg]] and also easy to maintain. But when I export the file, LaTeX exporter doesn't take it as a valid image link (\includegraphics[...]{~/notes/img/demo.jpg}). In function org-export-latex-links(), it seems that only the links beginning with 'file:' can be valid image links, and the link abbreviations are not replaced first. So is it possible to expand link abbreviations first before exporting LaTeX links (maybe apply the function org-link-expand-abbrev() in org.el)? Thanks. Best regards, Frank