all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* adding a style to individual images
@ 2011-02-28  0:56 ishi soichi
  2011-02-28  6:26 ` Aankhen
  0 siblings, 1 reply; 6+ messages in thread
From: ishi soichi @ 2011-02-28  0:56 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 362 bytes --]

Hi.  I would like to specify the widths and heights of images inserted in
org-file, which will be exported as html.

There are several images in the original org-file, and each of those needs
to be shown differently.
So I tried putting

#+ATTR_HTML: alt="..." width="100px"
[[imageURL]]

But it does not do anything.

Changing

Could anyone help me out?

soichi

[-- Attachment #1.2: Type: text/html, Size: 554 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: adding a style to individual images
  2011-02-28  0:56 adding a style to individual images ishi soichi
@ 2011-02-28  6:26 ` Aankhen
  2011-02-28  6:30   ` ishi soichi
  0 siblings, 1 reply; 6+ messages in thread
From: Aankhen @ 2011-02-28  6:26 UTC (permalink / raw)
  To: ishi soichi; +Cc: emacs-orgmode

Hi soichi,

On Mon, Feb 28, 2011 at 06:26, ishi soichi <soichi777@gmail.com> wrote:
> So I tried putting
> #+ATTR_HTML: alt="..." width="100px"
> [[imageURL]]
> But it does not do anything.
> Changing
> Could anyone help me out?

With Org from git (2–3 days old) on Emacs 24, given this text in my Org file:

 ,----
 | #+ATTR_HTML: alt="Gogola!" width="100"
 | [[./Gogola.gif]]
 `----

I get this in the exported version:

 ,----
 | <img src="./Gogola.gif" alt="Gogola!" width="100" />
 `----

Which versions of Emacs & Org are you using?  Could you give an
example of the text in your Org file and the resultant HTML?

Aankhen

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

* Re: adding a style to individual images
  2011-02-28  6:26 ` Aankhen
@ 2011-02-28  6:30   ` ishi soichi
  2011-02-28  6:46     ` Aankhen
  2011-02-28  6:55     ` Aankhen
  0 siblings, 2 replies; 6+ messages in thread
From: ishi soichi @ 2011-02-28  6:30 UTC (permalink / raw)
  To: Aankhen; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1044 bytes --]

My org is 7.01 and Emacs23.2

#+ATTR_HTML: alt="apples image" title="How many?" align="right"
width="100px"
[[images/apples6.jpeg]]

produced this.

<a href="#sec-1_1"alt="apples image" title="How many?" align="right"
width="100px"><img src="images/apples6.jpeg"/></a>

soichi



2011/2/28 Aankhen <aankhen@gmail.com>

> Hi soichi,
>
> On Mon, Feb 28, 2011 at 06:26, ishi soichi <soichi777@gmail.com> wrote:
> > So I tried putting
> > #+ATTR_HTML: alt="..." width="100px"
> > [[imageURL]]
> > But it does not do anything.
> > Changing
> > Could anyone help me out?
>
> With Org from git (2–3 days old) on Emacs 24, given this text in my Org
> file:
>
>  ,----
>  | #+ATTR_HTML: alt="Gogola!" width="100"
>  | [[./Gogola.gif]]
>  `----
>
> I get this in the exported version:
>
>  ,----
>  | <img src="./Gogola.gif" alt="Gogola!" width="100" />
>  `----
>
> Which versions of Emacs & Org are you using?  Could you give an
> example of the text in your Org file and the resultant HTML?
>
> Aankhen
>

[-- Attachment #1.2: Type: text/html, Size: 1772 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: adding a style to individual images
  2011-02-28  6:30   ` ishi soichi
@ 2011-02-28  6:46     ` Aankhen
  2011-02-28  6:56       ` soichi i
  2011-02-28  6:55     ` Aankhen
  1 sibling, 1 reply; 6+ messages in thread
From: Aankhen @ 2011-02-28  6:46 UTC (permalink / raw)
  To: ishi soichi; +Cc: emacs-orgmode

On Mon, Feb 28, 2011 at 12:00, ishi soichi <soichi777@gmail.com> wrote:
> My org is 7.01 and Emacs23.2
> #+ATTR_HTML: alt="apples image" title="How many?" align="right"
> width="100px"
> [[images/apples6.jpeg]]
> produced this.
> <a href="#sec-1_1"alt="apples image" title="How many?" align="right"
> width="100px"><img src="images/apples6.jpeg"/></a>

Try changing that to ‘[[./images/apples6.jpeg]]’ (add ./ to the
beginning).  Not sure what else it might be—my Org experience is still
in a nascent stage.

By the way, the ‘width’ attribute already uses pixels for its units,
so ‘width="100"’ would be enough.

Aankhen

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

* Re: adding a style to individual images
  2011-02-28  6:30   ` ishi soichi
  2011-02-28  6:46     ` Aankhen
@ 2011-02-28  6:55     ` Aankhen
  1 sibling, 0 replies; 6+ messages in thread
From: Aankhen @ 2011-02-28  6:55 UTC (permalink / raw)
  To: ishi soichi; +Cc: emacs-orgmode

On Mon, Feb 28, 2011 at 12:00, ishi soichi <soichi777@gmail.com> wrote:
> My org is 7.01 and Emacs23.2

You might also want to try a newer version.  If you don’t want to use
the development version, you should probably at least upgrade to 7.4
(the most recent release).  See <http://orgmode.org/index.html#sec-3>
for more.

Aankhen

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

* Re: adding a style to individual images
  2011-02-28  6:46     ` Aankhen
@ 2011-02-28  6:56       ` soichi i
  0 siblings, 0 replies; 6+ messages in thread
From: soichi i @ 2011-02-28  6:56 UTC (permalink / raw)
  To: Aankhen; +Cc: emacs-orgmode, ishi soichi

It did work as I wished!  Thanks!

soichi

2011/2/28 Aankhen <aankhen@gmail.com>:
> On Mon, Feb 28, 2011 at 12:00, ishi soichi <soichi777@gmail.com> wrote:
>> My org is 7.01 and Emacs23.2
>> #+ATTR_HTML: alt="apples image" title="How many?" align="right"
>> width="100px"
>> [[images/apples6.jpeg]]
>> produced this.
>> <a href="#sec-1_1"alt="apples image" title="How many?" align="right"
>> width="100px"><img src="images/apples6.jpeg"/></a>
>
> Try changing that to ‘[[./images/apples6.jpeg]]’ (add ./ to the
> beginning).  Not sure what else it might be—my Org experience is still
> in a nascent stage.
>
> By the way, the ‘width’ attribute already uses pixels for its units,
> so ‘width="100"’ would be enough.
>
> Aankhen
>

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

end of thread, other threads:[~2011-02-28  6:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28  0:56 adding a style to individual images ishi soichi
2011-02-28  6:26 ` Aankhen
2011-02-28  6:30   ` ishi soichi
2011-02-28  6:46     ` Aankhen
2011-02-28  6:56       ` soichi i
2011-02-28  6:55     ` Aankhen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.