emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] LaTeX beamer export: relative file links?


From: James Harkins
Subject: Re: [O] LaTeX beamer export: relative file links?
Date: Sun, 30 Sep 2012 10:04:32 +0800
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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
address@hidden
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]