emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] #+HTML blocks


From: Eddward DeVilla
Subject: Re: [Orgmode] #+HTML blocks
Date: Mon, 21 May 2007 21:31:45 -0500

For some reason this reminds me of a feature from the outliner hnb.
If you used it as an xml editor you could do something like the
following.

 - <div style="float: right;">
   content in tag

The close tag was implied by the outline structure.  I don't know if
something similar would work well with how folks use org-mode.  I
don't do much publishing, so I don't have a feel for good technique.

Edd

On 5/21/07, Bastien <address@hidden> wrote:
Hi again,

,----
| #+HTML:<div style="float: right;">
| [[file:image.jpg][file:image.jpg]]
| #+HTML:</div>
`----

is converted like this :

,----
| <div style="float: right;">
| <p>
| <img src="images/bentolila.jpg"/>
| </div>
| </p>
`----

... mixing <div> and <p> in the wrong order.

An easy (but not obvious) way to circumvent this is to insert a blank
line after and before the #+HTML line.  For example:

,----
| #+HTML:<div style="float: right;">
|
| [[file:images/bentolila.jpg][file:images/bentolila.jpg]]
|
| #+HTML:</div>
`----

... is gets converted as :

,----
| <div style="float: right;">
|
| <p>
| <img src="images/bentolila.jpg"/>
| </p>
|
|
| </div>
`----

... where the tags order is correct.

--
Bastien


_______________________________________________
Emacs-orgmode mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

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