[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] HTML5 presentations

From: Tassilo Horn
Subject: Re: [O] HTML5 presentations
Date: Wed, 08 Jun 2011 15:45:33 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Rainer M Krug <address@hidden> writes:

>> >> The only thing that it doesn't do now and stops me from using it
>> >> directly is the missing support for image scaling.  I tried using
>> >>
>> >>    #+ATTR_HTML: title="Beer!" width="90%"
>> >>    [[file:~/Desktop/Pictures/beer-bunny.jpg]]
>> >>
>> >> but the image is shown in original size which is much larger than the
>> >> slide.
>> >
>> > Works for me - although my image is actually smaller, but I can change
>> > it's size.
> I am using the one from:
> https://gist.github.com/509761


> Org-mode version 7.5
> also tried with
> Org-mode version 7.5 (release_7.5.358.g5194)

I also use the latter.

> GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)

Ok, I use the bzr trunk from yesterday.  So that's a difference.

I've just edebugged `org-export-html5presentation-format-image' and in
the let...

 (let* ((caption (org-find-text-property-in-string 'org-caption src))
        (attr (org-find-text-property-in-string 'org-attributes src)) ; HERE!
        (label (org-find-text-property-in-string 'org-label src)))

... I guess there should be something set.  But the call returns nil.
The same applies to

  #+CAPTION: This is the caption
  #+LABEL: img1
  #+ATTR_HTML: title="Beer" width="50%"

where neither caption, label, nor attr are set.  When I set point on the
link in the org-file and do

  M-x describe-text-properties RET

I get

| Text content at position 690:
| There is an overlay here:
|  From 686 to 731
|   face                 hl-line
|   window               nil
| There are text properties here:
|   face                 org-link
|   font-lock-multiline  t
|   fontified            t
|   help-echo            "LINK: file:~/Desktop/Pictures/beer-bunny.jpg"
|   keymap               [Show]
|   mouse-face           highlight
|   org-no-flyspell      t


reply via email to

[Prev in Thread] Current Thread [Next in Thread]