From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Krehel Subject: Conditional link export? Date: Fri, 06 Nov 2015 14:02:47 +0100 Message-ID: <87ziyri8lk.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZugfA-0003aJ-Kh for emacs-orgmode@gnu.org; Fri, 06 Nov 2015 08:02:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zugf6-0005ZB-KY for emacs-orgmode@gnu.org; Fri, 06 Nov 2015 08:02:40 -0500 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:37609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zugf6-0005Z6-FC for emacs-orgmode@gnu.org; Fri, 06 Nov 2015 08:02:36 -0500 Received: by wicfv8 with SMTP id fv8so28402988wic.0 for ; Fri, 06 Nov 2015 05:02:35 -0800 (PST) Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id ee5sm60537wjd.17.2015.11.06.05.02.34 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 06 Nov 2015 05:02:34 -0800 (PST) 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@gnu.org Hi all, I'm writing a manual in Org-mode, with the intent to export both to Texinfo and HTML. And I'd like to use this link for Texinfo: info:emacs#Packages and this link for HTML: https://www.gnu.org/software/emacs/manual/html_node/emacs/Packages.html They both link to the same information, but in different browsers basically. How could this be done? I'm thinking of something like: #ifdef TEXINFO [[info:emacs#Packages]] #else [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Packages.html]] #endif Oleh