From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: how can I html export a relative link to an org file? Date: Wed, 03 Dec 2014 15:52:49 +0100 Message-ID: References: <87ppc0kev5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwBIh-0004hK-TJ for emacs-orgmode@gnu.org; Wed, 03 Dec 2014 09:53:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwBIc-0005x8-6r for emacs-orgmode@gnu.org; Wed, 03 Dec 2014 09:53:07 -0500 Received: from mx1.polytechnique.org ([129.104.30.34]:59741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwBIb-0005wh-Tj for emacs-orgmode@gnu.org; Wed, 03 Dec 2014 09:53:02 -0500 Received: from charm-wifi.irisa.fr (charm-wifi.irisa.fr [131.254.66.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 8E6B9140E15E3 for ; Wed, 3 Dec 2014 15:52:53 +0100 (CET) In-Reply-To: <87ppc0kev5.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 03 Dec 2014 15:05:50 +0100") 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: emacs-orgmode --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2014-12-03 15:05, Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> I'm writing a web site in org mode where some results are made available >> in an org file. If I put a fully qualified http link to that file, all >> goes well, but if I use a relative link, then the link is done to an >> html file instead. >> >> This is to be expected according to the documentation >> (http://orgmode.org/manual/Links-in-HTML-export.html): >> >> ,---- >> | Links to other .org files will be translated into HTML links under the >> | assumption that an HTML version also exists of the linked file, at the >> | same relative path. >> `---- >>=20=20 >> What I don't see is how to disable this, and have a link to the real org >> file. >> >> Is there a way? > > See `org-html-link-org-files-as-html'. Thank you. Here is a manual patch to mention this option as that point. Best, Alan --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org.texi-Document-org-html-link-org-files-as-html.patch Content-Transfer-Encoding: quoted-printable From=2009b34f73ad042194efbed8969a1b7fd9010b2bee Mon Sep 17 00:00:00 2001 From: Alan Schmitt Date: Wed, 3 Dec 2014 15:40:50 +0100 Subject: [PATCH] org.texi: Document `org-html-link-org-files-as-html' * doc/org.texi: Document `org-html-link-org-files-as-html' in the "Links in HTML export" section. =2D-- doc/org.texi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/org.texi b/doc/org.texi index 15830fc..5316ee6 100644 =2D-- a/doc/org.texi +++ b/doc/org.texi @@ -11331,9 +11331,10 @@ targets}). Links to external files will still wor= k if the target file is on the same @i{relative} path as the published Org file. Links to other @file{.org} files will be translated into HTML links under the assumption that an HTML version also exists of the linked file, at the same relative =2Dpath. @samp{id:} links can then be used to jump to specific entries acr= oss =2Dfiles. For information related to linking files while publishing them t= o a =2Dpublishing directory see @ref{Publishing links}. +path; setting @code{org-html-link-org-files-as-html} to @code{nil} disables +this translation. @samp{id:} links can then be used to jump to specific +entries across files. For information related to linking files while +publishing them to a publishing directory see @ref{Publishing links}. =20 If you want to specify attributes for links, you can do so using a special @code{#+ATTR_HTML} line to define attributes that will be added to the =2D-=20 2.2.0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 OpenPGP Key ID : 040D0A3B4ED2E5C7 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBCgAGBQJUfyPGAAoJEAQNCjtO0uXHgxQIAMfF0Q4dwAyVu2iitTf9+zg6 /+7DnSpV+fqe06iJGB/kcpQ1dp3H5OjDqjx/SuSXtAAR1b4zWFb9n90CRVsHLHzT IsE8emQ1QtRMs8qPuVq3VABA3rWFvadzHQNwXqY+fJ21f3sV29qbu5LvG2u+dC4A koETPX7E81+9Z6maJL52erkQ9r9SgpQJpoecO6N4cIRdPXMGHDJBp9KUA87SJseX CyK6psVlOWWAskpe0UdmOy6ZXfosI7dmQqggr1Z6oDuTpJdxEL9FDYql3kQi6KFJ Eri7PWn8Zsrdz6FbC8QyoZB0TsjRRnwAjYpUXXpDldMa4JlEsn7DTU3JLkEwAmw= =MVVO -----END PGP SIGNATURE----- --==-=-=--