From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Harkins Subject: Re: LaTeX beamer export: relative file links? Date: Sun, 30 Sep 2012 10:04:32 +0800 Message-ID: <87a9w81d1r.wl%jamshark70@dewdrop-world.net> References: <13070.1348936445@alphaville> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI8tc-0005DJ-6G for emacs-orgmode@gnu.org; Sat, 29 Sep 2012 22:04:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TI8ta-0005N6-Le for emacs-orgmode@gnu.org; Sat, 29 Sep 2012 22:04:40 -0400 Received: from mail-pb0-f41.google.com ([209.85.160.41]:63954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TI8ta-0005N2-EI for emacs-orgmode@gnu.org; Sat, 29 Sep 2012 22:04:38 -0400 Received: by pbbrq2 with SMTP id rq2so7103011pbb.0 for ; Sat, 29 Sep 2012 19:04:37 -0700 (PDT) In-Reply-To: <13070.1348936445@alphaville> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org At Sat, 29 Sep 2012 12:34:05 -0400, Nick Dokos wrote: > Maybe this: > > ,---- > | org-link-file-path-type is a variable defined in `org.el'. > | Its value is adaptive No. That's about storage of links, but in my org file, the links *are* relative. They become absolute during export. Less search-fatigued this morning. It seems, from the section of org-export-latex-links pasted below, that file paths are always expanded and this is not configurable. My test: # export header stuff omitted except the really critical: #+TITLE: Applied Techniques for Digital Audio \newline Introduction to Filters #+AUTHOR: H. James Harkins #+DATE: 26 September 2012 * Section ** Slide *** Bullet with [[./1346482292091_2436.mp3][inline link]] C-c C-e l produces: \item Bullet with \href{file:///media/39ED-A99A/some/folders/omitted/1346482292091_2436.mp3}{inline link} hjh (path (cond ((member type '("coderef")) raw-path) ((member type '("http" "https" "ftp")) (concat type ":" raw-path)) ((and re-radio (string-match re-radio raw-path)) (setq radiop t)) ((equal type "mailto") (concat type ":" raw-path)) ((equal type "file") (if (and (org-file-image-p (expand-file-name raw-path) org-export-latex-inline-image-extensions) (or (get-text-property 0 'org-no-description raw-path) (equal desc full-raw-path))) (setq imgp t) (progn (when (string-match "\\(.+\\)::.+" raw-path) (setq raw-path (match-string 1 raw-path))) (if (file-exists-p raw-path) ; hjh editorial comment: It's mandatory... oops! ; expand-file-name is a built-in function in `C source code'. ; (expand-file-name NAME &optional DEFAULT-DIRECTORY) ; ***Convert filename NAME to absolute***, and canonicalize it. (concat type "://" (expand-file-name raw-path)) (concat type "://" (org-export-directory :LaTeX org-export-latex-options-plist) raw-path)))))))) -- James Harkins /// dewdrop world jamshark70@dewdrop-world.net http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman blog: http://www.dewdrop-world.net/words audio clips: http://www.dewdrop-world.net/audio more audio: http://soundcloud.com/dewdrop_world/tracks