From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ista Zahn Subject: Re: [bug?] Link to be exported only in HTML Date: Wed, 4 Feb 2015 10:38:45 -0500 Message-ID: References: <86wq3xso6m.fsf@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ22m-0000TA-7U for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 10:39:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJ22k-0002nc-P4 for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 10:39:08 -0500 Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:50617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJ22k-0002nV-Ks for emacs-orgmode@gnu.org; Wed, 04 Feb 2015 10:39:06 -0500 Received: by mail-oi0-f49.google.com with SMTP id a3so1790310oib.8 for ; Wed, 04 Feb 2015 07:39:05 -0800 (PST) In-Reply-To: <86wq3xso6m.fsf@example.com> 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: Sebastien Vauban Cc: emacs-orgmode Mailinglist On Wed, Feb 4, 2015 at 10:15 AM, Sebastien Vauban wrote: > > #+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". You need to write the link in html, not org: #+begin_html :license-gpl-blue.svg #+end_html > > > 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. I can't replicate that, for me it exports to \href{http://opensource.org/licenses/GPL-3.0}{\url{http://img.shields.io/:license-gpl-blue.svg}} and compiles just fine. > > Is this a bug? Is there an alternative? > > Best regards, > Seb > > -- > Sebastien Vauban > >