From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: using lightbox plugins in HTML export Date: Wed, 15 Jan 2014 01:32:42 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b10cfefe1810a04effc7978 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3K1s-0003Ow-R2 for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 01:32:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3K1r-0000oJ-Qj for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 01:32:44 -0500 Received: from mail-pb0-x22a.google.com ([2607:f8b0:400e:c01::22a]:44251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3K1r-0000na-IS for emacs-orgmode@gnu.org; Wed, 15 Jan 2014 01:32:43 -0500 Received: by mail-pb0-f42.google.com with SMTP id uo5so712851pbc.15 for ; Tue, 14 Jan 2014 22:32:42 -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: org-mode --047d7b10cfefe1810a04effc7978 Content-Type: text/plain; charset=ISO-8859-1 Does anyone know of a lightbox-style plug-in that will work with org-mode HTML export that will automatically, on click, expand images to fill the screen, i.e. one doesn't require me to manually add an "href" and "rel=lightbox" manually to each image? (Most lightbox-style plugins require you to not just include IMG tags, but to wrap them in something like ) Alternatively, is there a way to direct org to automatically add href and rel="lightbox" to all images on HTML export in a way that won't break LaTeX export? Thanks! --047d7b10cfefe1810a04effc7978 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Does anyone know of a lightbox-style plug-in that wil= l work with org-mode HTML export that will automatically, on click, expand = images to fill the screen, =A0i.e. one doesn't require me to manually a= dd an "href" and "rel=3Dlightbox" manually to each imag= e?

(Most lightbox-style plugins require you to not just in= clude IMG tags, but to wrap them in something like <a href=3D"img/i= mage-1.jpg" rel=3Dlightbox></a>)

Alt= ernatively, is there a way to direct org to automatically add href and rel= =3D"lightbox" to all images on HTML export in a way that won'= t break LaTeX export?=A0

Thanks!

--047d7b10cfefe1810a04effc7978-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: using lightbox plugins in HTML export Date: Thu, 16 Jan 2014 04:58:21 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b10cc8536b29404f0137719 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3jiS-00012j-Lp for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 04:58:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3jiR-0000jo-LO for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 04:58:24 -0500 Received: from mail-pb0-x22c.google.com ([2607:f8b0:400e:c01::22c]:53892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3jiR-0000jg-EX for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 04:58:23 -0500 Received: by mail-pb0-f44.google.com with SMTP id rq2so2438174pbb.31 for ; Thu, 16 Jan 2014 01:58:22 -0800 (PST) In-Reply-To: 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: org-mode --047d7b10cc8536b29404f0137719 Content-Type: text/plain; charset=ISO-8859-1 Alternatively, how do I specify the LaTeX image on one line, and the HTML image as an on a different line, such that the link doesn't appear in the LaTeX export and the image doesn't get duplicated in the HTML export? Thanks! On Wed, Jan 15, 2014 at 1:32 AM, Peter Salazar wrote: > Does anyone know of a lightbox-style plug-in that will work with org-mode > HTML export that will automatically, on click, expand images to fill the > screen, i.e. one doesn't require me to manually add an "href" and > "rel=lightbox" manually to each image? > > (Most lightbox-style plugins require you to not just include IMG tags, but > to wrap them in something like ) > > Alternatively, is there a way to direct org to automatically add href and > rel="lightbox" to all images on HTML export in a way that won't break LaTeX > export? > > Thanks! > > --047d7b10cc8536b29404f0137719 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Alternatively, how do I specify the LaTeX image on one lin= e, and the HTML image as an <a href rel=3Dlightbox> on a different li= ne, such that the link doesn't appear in the LaTeX export and the image= doesn't get duplicated in the HTML export?=A0

Thanks!



On Wed, Jan 15, 2014 at 1:32 AM, Pe= ter Salazar <cycleofsong@gmail.com> wrote:
Does anyone know of a = lightbox-style plug-in that will work with org-mode HTML export that will a= utomatically, on click, expand images to fill the screen, =A0i.e. one doesn= 't require me to manually add an "href" and "rel=3Dlight= box" manually to each image?

(Most lightbox-style plugins require you to not just in= clude IMG tags, but to wrap them in something like <a href=3D"img/i= mage-1.jpg" rel=3Dlightbox></a>)

Alt= ernatively, is there a way to direct org to automatically add href and rel= =3D"lightbox" to all images on HTML export in a way that won'= t break LaTeX export?=A0

Thanks!


--047d7b10cc8536b29404f0137719-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: using lightbox plugins in HTML export Date: Mon, 20 Jan 2014 12:19:36 +0100 Message-ID: <87r482yk6v.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5CtR-0002Qv-5N for emacs-orgmode@gnu.org; Mon, 20 Jan 2014 06:19:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5CtI-0001TP-P5 for emacs-orgmode@gnu.org; Mon, 20 Jan 2014 06:19:49 -0500 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:59604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5CtI-0001TJ-Go for emacs-orgmode@gnu.org; Mon, 20 Jan 2014 06:19:40 -0500 Received: by mail-wi0-f179.google.com with SMTP id hr1so3016056wib.12 for ; Mon, 20 Jan 2014 03:19:39 -0800 (PST) In-Reply-To: (Peter Salazar's message of "Thu, 16 Jan 2014 04:58:21 -0500") 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: Peter Salazar Cc: org-mode Hi Peter, Peter Salazar writes: > Alternatively, how do I specify the LaTeX image on one line, and the > HTML image as an on a different line, such that > the link doesn't appear in the LaTeX export and the image doesn't get > duplicated in the HTML export? #+ATTR_LaTeX: :width 300px #+ATTR_HTML: :rel lightbox [[file:image.png]] HTH, -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: using lightbox plugins in HTML export Date: Wed, 22 Jan 2014 23:34:11 -0500 Message-ID: References: <87r482yk6v.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bf0c922c8fa8304f09bc0e1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6Bzd-0004yW-RE for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 23:34:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6Bzd-0002Dj-1J for emacs-orgmode@gnu.org; Wed, 22 Jan 2014 23:34:17 -0500 In-Reply-To: <87r482yk6v.fsf@bzg.ath.cx> 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: Bastien Cc: org-mode --047d7bf0c922c8fa8304f09bc0e1 Content-Type: text/plain; charset=ISO-8859-1 Hey Bastien, Thanks for the response. That ATTR_HTML comes in very handy. I made one adjustment to your code, and it totally worked! Amazing! Here it is in full: #+ATTR_LaTeX: :width 300px #+ATTR_HTML: :rel lightbox :href image.png [[file:image.png]] Thanks! On Mon, Jan 20, 2014 at 6:19 AM, Bastien wrote: > Hi Peter, > > Peter Salazar writes: > > > Alternatively, how do I specify the LaTeX image on one line, and the > > HTML image as an on a different line, such that > > the link doesn't appear in the LaTeX export and the image doesn't get > > duplicated in the HTML export? > > #+ATTR_LaTeX: :width 300px > #+ATTR_HTML: :rel lightbox > [[file:image.png]] > > HTH, > > -- > Bastien > --047d7bf0c922c8fa8304f09bc0e1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hey Bastien,

Thanks for the response. T= hat ATTR_HTML comes in very handy. I made one adjustment to your code, and = it totally worked! Amazing!=A0

Here it is in full:=

#+ATTR_LaTeX: :width 300px
#+ATTR_HTML: :rel lightbox :href image.png
[[file:image.pn= g]]

Thanks!




On = Mon, Jan 20, 2014 at 6:19 AM, Bastien <bzg@gnu.org> wrote:
Hi Peter,

Peter Salazar <cycleofsong@gmai= l.com> writes:

> Alternatively, how do I specify the LaTeX image on one line, and the > HTML image as an <a href rel=3Dlightbox> on a different line, su= ch that
> the link doesn't appear in the LaTeX export and the image doesn= 9;t get
> duplicated in the HTML export?

#+ATTR_LaTeX: :width 300px
#+ATTR_HTML: :rel lightbox
[[file:image.png]]

HTH,

--
=A0Bastien

--047d7bf0c922c8fa8304f09bc0e1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: using lightbox plugins in HTML export Date: Thu, 23 Jan 2014 08:33:36 +0100 Message-ID: <87y527nodr.fsf@bzg.ath.cx> References: <87r482yk6v.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6EnM-0005u1-Nq for emacs-orgmode@gnu.org; Thu, 23 Jan 2014 02:33:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6EnE-0008Tg-Bf for emacs-orgmode@gnu.org; Thu, 23 Jan 2014 02:33:48 -0500 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:47248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6EnE-0008Tc-51 for emacs-orgmode@gnu.org; Thu, 23 Jan 2014 02:33:40 -0500 Received: by mail-wg0-f41.google.com with SMTP id n12so290742wgh.2 for ; Wed, 22 Jan 2014 23:33:39 -0800 (PST) In-Reply-To: (Peter Salazar's message of "Wed, 22 Jan 2014 23:34:11 -0500") 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: Peter Salazar Cc: org-mode Hi Peter, Peter Salazar writes: > Thanks for the response. That ATTR_HTML comes in very handy. I made > one adjustment to your code, and it totally worked! Amazing! > > Here it is in full: > > #+ATTR_LaTeX: :width 300px > #+ATTR_HTML: :rel lightbox :href image.png > [[file:image.png]] Glad it works. Actually, it would be nice to have org-html-images-default-attributes the same way we have org-html-table-default-attributes (And for other backends too, why not.) -- Bastien From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: using lightbox plugins in HTML export Date: Fri, 24 Jan 2014 03:40:49 -0500 Message-ID: References: <87r482yk6v.fsf@bzg.ath.cx> <87y527nodr.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b15a1d19f610704f0b35022 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44733) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6cJn-0001Yo-VZ for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 03:40:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6cJm-0001fs-Mm for emacs-orgmode@gnu.org; Fri, 24 Jan 2014 03:40:51 -0500 In-Reply-To: <87y527nodr.fsf@bzg.ath.cx> 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: Bastien Cc: org-mode --047d7b15a1d19f610704f0b35022 Content-Type: text/plain; charset=ISO-8859-1 Good idea, that would be great! On Thu, Jan 23, 2014 at 2:33 AM, Bastien wrote: > Hi Peter, > > Peter Salazar writes: > > > Thanks for the response. That ATTR_HTML comes in very handy. I made > > one adjustment to your code, and it totally worked! Amazing! > > > > Here it is in full: > > > > #+ATTR_LaTeX: :width 300px > > #+ATTR_HTML: :rel lightbox :href image.png > > [[file:image.png]] > > Glad it works. Actually, it would be nice to have > > org-html-images-default-attributes > > the same way we have > > org-html-table-default-attributes > > (And for other backends too, why not.) > > -- > Bastien > --047d7b15a1d19f610704f0b35022 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Good idea, that would be great!


On Thu, Jan 23, 2014 at 2:33 AM, B= astien <bzg@gnu.org> wrote:
Hi Peter,

Peter Salazar <cycleofsong@gmai= l.com> writes:

> Thanks for the response. That ATTR_HTML comes = in very handy. I made
> one adjustment to your code, and it totally worked! Amazing!
>
> Here it is in full:
>
> #+ATTR_LaTeX: :width 300px
> #+ATTR_HTML: :rel lightbox :href image.png
> [[file:image.png]]

Glad it works. =A0Actually, it would be nice to have

=A0 org-html-images-default-attributes

the same way we have

=A0 org-html-table-default-attributes

(And for other backends too, why not.)

--
=A0Bastien

--047d7b15a1d19f610704f0b35022--