From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz?= Stelmach Subject: Re: portable absolute links in HTML export Date: Thu, 07 Oct 2010 15:13:28 +0200 Message-ID: <87mxqqb0xz.fsf@dasa3.iem.pw.edu.pl> References: <87tykyb3bu.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=49732 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P3qHz-0004qN-HG for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 09:13:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P3qHy-0007wN-CM for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 09:13:39 -0400 Received: from lo.gmane.org ([80.91.229.12]:33793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P3qHy-0007wC-4Z for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 09:13:38 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3qHx-0001cO-4f for emacs-orgmode@gnu.org; Thu, 07 Oct 2010 15:13:37 +0200 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Oct 2010 15:13:37 +0200 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 07 Oct 2010 15:13:37 +0200 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 Carsten Dominik writes: > On Oct 7, 2010, at 2:21 PM, Łukasz Stelmach wrote: > >> Is there a simple way to create hyperlinks with *absolute* paths that >> would work after both: simple file export (C-c C-e h) and publishing >> on >> a remote server (C-c C-e F). I'd like to create a _menu.org file that >> contains some navigation links and #+INCLUDE: it (BTW. M-Tab can't >> complete #+INC) in every single file I create and publish. > > Maybe you can use link abbreviations and define the abbreviation > differently for both cases. Any suggestion where/when can I automatically alter org-link-abbrev-alist for each of export procedures. Creating wrappers around org-export-as-html* and org-publish* looks easy, except I'd have to make my own copy of org-export to call them. Of course editing #+LINK is also a not so bad option. -- Miłego dnia, Łukasz Stelmach