[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [bug?] Link to be exported only in HTML
From: |
Ista Zahn |
Subject: |
Re: [O] [bug?] Link to be exported only in HTML |
Date: |
Wed, 4 Feb 2015 10:38:45 -0500 |
On Wed, Feb 4, 2015 at 10:15 AM, Sebastien Vauban
<address@hidden> 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
<a href="http://opensource.org/licenses/GPL-3.0"><img
src="http://img.shields.io/:license-gpl-blue.svg"
alt=":license-gpl-blue.svg" /></a>
#+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
>
>