emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [WISH] LaTeX Export: Expand link abbreviations first before exporting LaTeX links
@ 2008-07-04 11:25 Frank Chang
  2008-07-05 15:07 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Chang @ 2008-07-04 11:25 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [WISH] LaTeX Export: Expand link abbreviations first before exporting LaTeX links
  2008-07-04 11:25 [WISH] LaTeX Export: Expand link abbreviations first before exporting LaTeX links Frank Chang
@ 2008-07-05 15:07 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2008-07-05 15:07 UTC (permalink / raw)
  To: Frank Chang; +Cc: emacs-orgmode

Fixed, thanks.

- Carsten

On Jul 4, 2008, at 4:25 AM, Frank Chang wrote:

> 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
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-05 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-04 11:25 [WISH] LaTeX Export: Expand link abbreviations first before exporting LaTeX links Frank Chang
2008-07-05 15:07 ` Carsten Dominik

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).