emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [RFC] Overlay specification for includegraphics
@ 2013-10-27 13:23 Suvayu Ali
  2013-10-27 14:09 ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Suvayu Ali @ 2013-10-27 13:23 UTC (permalink / raw)
  To: Emacs Org mode

Hi,

While working on a presentation recently, I realised there was no easy
way to specify overlay specifications for images during beamer export.
Since this is already supported for lists, e.g. by adding
`#+attr_latex :overlay +-'.  I was wondering if it is possible to add
this for images?

Something like this would be amazing:

  #+attr_latex: :overlay 1 :width 0.9\textwidth
  [[file:graphics/test.pdf]]

is exported as,

  \includegraphics<1>[width=0.9\textwidth]{graphics/test.pdf}

What do you think?

PS: I noticed if I use #+attr_beamer: instead of #+attr_latex:,
    the :options property is ignored, and :width is overwritten with
    "0.9\linewidth".  Is that intended

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] Overlay specification for includegraphics
  2013-10-27 13:23 [RFC] Overlay specification for includegraphics Suvayu Ali
@ 2013-10-27 14:09 ` Carsten Dominik
  2013-10-27 18:44   ` Suvayu Ali
  0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2013-10-27 14:09 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: Emacs Org mode


On 27.10.2013, at 14:23, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:

> Hi,
> 
> While working on a presentation recently, I realised there was no easy
> way to specify overlay specifications for images during beamer export.
> Since this is already supported for lists, e.g. by adding
> `#+attr_latex :overlay +-'.  I was wondering if it is possible to add
> this for images?
> 
> Something like this would be amazing:
> 
>  #+attr_latex: :overlay 1 :width 0.9\textwidth
>  [[file:graphics/test.pdf]]
> 
> is exported as,
> 
>  \includegraphics<1>[width=0.9\textwidth]{graphics/test.pdf}
> 
> What do you think?
> 
> PS: I noticed if I use #+attr_beamer: instead of #+attr_latex:,
>    the :options property is ignored, and :width is overwritten with
>    "0.9\linewidth".  Is that intended

I am not sure about this problem, but clearly, your request of the overlay property need to use attr_beamer, not attr_latex.

- Carsten


> 
> -- 
> Suvayu
> 
> Open source is the future. It sets us free.
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] Overlay specification for includegraphics
  2013-10-27 14:09 ` Carsten Dominik
@ 2013-10-27 18:44   ` Suvayu Ali
  2013-10-27 22:16     ` Suvayu Ali
  0 siblings, 1 reply; 5+ messages in thread
From: Suvayu Ali @ 2013-10-27 18:44 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Emacs Org mode

On Sun, Oct 27, 2013 at 03:09:38PM +0100, Carsten Dominik wrote:
> 
> On 27.10.2013, at 14:23, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> 
> > Hi,
> > 
> > While working on a presentation recently, I realised there was no easy
> > way to specify overlay specifications for images during beamer export.
> > Since this is already supported for lists, e.g. by adding
> > `#+attr_latex :overlay +-'.  I was wondering if it is possible to add
> > this for images?
> > 
> > Something like this would be amazing:
> > 
> >  #+attr_latex: :overlay 1 :width 0.9\textwidth
> >  [[file:graphics/test.pdf]]
> > 
> > is exported as,
> > 
> >  \includegraphics<1>[width=0.9\textwidth]{graphics/test.pdf}
> > 
> > What do you think?
> > 
> > PS: I noticed if I use #+attr_beamer: instead of #+attr_latex:,
> >    the :options property is ignored, and :width is overwritten with
> >    "0.9\linewidth".  Is that intended
> 
> I am not sure about this problem, but clearly, your request of the overlay property need to use attr_beamer, not attr_latex.
> 

I tried attr_latex because attr_beamer was overwriting everything.  I
will investigate why attr_beamer is not working on a minimal instance
tomorrow.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] Overlay specification for includegraphics
  2013-10-27 18:44   ` Suvayu Ali
@ 2013-10-27 22:16     ` Suvayu Ali
  2013-10-28  8:20       ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Suvayu Ali @ 2013-10-27 22:16 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Emacs Org mode

On Sun, Oct 27, 2013 at 07:44:09PM +0100, Suvayu Ali wrote:
> On Sun, Oct 27, 2013 at 03:09:38PM +0100, Carsten Dominik wrote:
> > 
> > On 27.10.2013, at 14:23, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> > 
> > > Hi,
> > > 
> > > While working on a presentation recently, I realised there was no easy
> > > way to specify overlay specifications for images during beamer export.
> > > Since this is already supported for lists, e.g. by adding
> > > `#+attr_latex :overlay +-'.  I was wondering if it is possible to add
> > > this for images?
> > > 
> > > Something like this would be amazing:
> > > 
> > >  #+attr_latex: :overlay 1 :width 0.9\textwidth
> > >  [[file:graphics/test.pdf]]
> > > 
> > > is exported as,
> > > 
> > >  \includegraphics<1>[width=0.9\textwidth]{graphics/test.pdf}
> > > 
> > > What do you think?
> > > 
> > > PS: I noticed if I use #+attr_beamer: instead of #+attr_latex:,
> > >    the :options property is ignored, and :width is overwritten with
> > >    "0.9\linewidth".  Is that intended
> > 
> > I am not sure about this problem, but clearly, your request of the overlay property need to use attr_beamer, not attr_latex.
> > 
> 
> I tried attr_latex because attr_beamer was overwriting everything.  I
> will investigate why attr_beamer is not working on a minimal instance
> tomorrow.

I tested with a minimal setup.  Same issue.  The following:

  #+attr_beamer: :overlay 1 :width 0.8\linewidth
  [[file:bla.png]]

exports as,

  \includegraphics[width=.9\linewidth]{bla.png}

Something is off.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC] Overlay specification for includegraphics
  2013-10-27 22:16     ` Suvayu Ali
@ 2013-10-28  8:20       ` Nicolas Goaziou
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Goaziou @ 2013-10-28  8:20 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: Emacs Org mode, Carsten Dominik

Hello,

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> I tested with a minimal setup.  Same issue.  The following:
>
>   #+attr_beamer: :overlay 1 :width 0.8\linewidth
>   [[file:bla.png]]
>
> exports as,
>
>   \includegraphics[width=.9\linewidth]{bla.png}
>
> Something is off.

Beamer back-end delegates external link handling to the LaTeX back-end
(see l. 723 in "ox-beamer.el"). The latter ignores everything about
Beamer and its attributes.

In most cases, you can specify an overlay attribute to a link using
export snippets (see "Beamer specific syntax" in section 12.5 of the
manual). But it requires adding contents to the link, which is
impossible for image links, as the must have no contents.

Therefore, in this case, Someone needs to copy image handling in
"ox-beamer.el" and add "ATTR_BEAMER" support there.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-28  8:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-27 13:23 [RFC] Overlay specification for includegraphics Suvayu Ali
2013-10-27 14:09 ` Carsten Dominik
2013-10-27 18:44   ` Suvayu Ali
2013-10-27 22:16     ` Suvayu Ali
2013-10-28  8:20       ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).