From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: [bug?] Link to be exported only in HTML Date: Wed, 04 Feb 2015 08:12:07 -0800 Message-ID: <87r3u5k65k.fsf@berkeley.edu> References: <86wq3xso6m.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ2Za-0003vF-W6 for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 11:13:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ2ZV-00071z-SY for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 11:13:02 -0500 Received: from plane.gmane.org ([80.91.229.3]:40122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ2ZV-00071W-MN for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 11:12:57 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YJ2ZU-0004co-D6 for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 17:12:56 +0100 Received: from c-67-169-117-151.hsd1.ca.comcast.net ([67.169.117.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2015 17:12:56 +0100 Received: from richard.lawrence by c-67-169-117-151.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Feb 2015 17:12:56 +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@gnu.org Hi Sebastien, Sebastien Vauban writes: > #+TITLE: ECM Links for HTML only > > * Test > > If I want to include a link (GPL logo, here) to the HTML export, I should put it > in a block, right? > > #+begin_html > [[http://opensource.org/licenses/GPL-3.0][http://img.shields.io/:license-gpl-blue.svg]] > #+end_html > > Well, that does not work: the link is not rendered as a link; it's copied > "verbatim". > > OTOH, the link on its own is correctly exported to HTML: > > [[http://opensource.org/licenses/GPL-3.0][http://img.shields.io/:license-gpl-blue.svg]] > > ... but it fails to be exported to LaTeX (causing a "TeX capacity exceeded" > error), reason why I must not have the link when exporting to LaTeX. > > Is this a bug? Is there an alternative? As far as I understand, this is not a bug: #+begin_html ... #+end_html is for writing literal HTML that will be included in HTML output. Thus, if you only care about the link appearing in HTML output, just use literal HTML: #+begin_html #+end_html (That is hand-translated...you should check whether it is the right HTML for your document.) Best, Richard