* HTML / Site export: syntax to assign a class to a div
@ 2010-01-30 22:54 Ben
2010-02-01 9:42 ` Carsten Dominik
0 siblings, 1 reply; 2+ messages in thread
From: Ben @ 2010-01-30 22:54 UTC (permalink / raw)
To: emacs-orgmode
Dear orgmode users,
I'm slowly (but firmly) getting my workflows and documents fitting in
orgmode. That's great. The agenda and notes-taking part is done and
I'm now migrating a few websites into org as well.
I've a pretty simple question which puzzles me though pretty
intensely. I've crawled the mailing list archives in vain -- the topic
is sometimes mentioned without an apparent solution.
I would very simply like to assign to an orgmode document section (or
subsection) a parameter which will be translated as a class attribute
in the corresponding div in the HTML output.
Example:
* Important section
** Serious Stuff
blah
** More serious Stuff
* Note
:CLASS: rightbox
a silly comment
* Conclusion
orgmode would then name the div sections as usual, I would like to get
for the 'Note' section another attribute which would be
class="rightbox".
I've tried the #+HTML hacks, the html_attr, the drawers and even the
#+anchor tag. In vain. I'm sure I'm missing something obvious.
Any help would be really really much appreciated!
-- Ben
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: HTML / Site export: syntax to assign a class to a div
2010-01-30 22:54 HTML / Site export: syntax to assign a class to a div Ben
@ 2010-02-01 9:42 ` Carsten Dominik
0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-02-01 9:42 UTC (permalink / raw)
To: Ben; +Cc: emacs-orgmode
Hi Ben,
I like this idea, and I have implemented it. Please use the property
HTML_CONTAINER_CLASS. And let me know if it works!
- Carsten
On Jan 30, 2010, at 11:54 PM, Ben wrote:
> Dear orgmode users,
>
> I'm slowly (but firmly) getting my workflows and documents fitting in
> orgmode. That's great. The agenda and notes-taking part is done and
> I'm now migrating a few websites into org as well.
> I've a pretty simple question which puzzles me though pretty
> intensely. I've crawled the mailing list archives in vain -- the topic
> is sometimes mentioned without an apparent solution.
>
> I would very simply like to assign to an orgmode document section (or
> subsection) a parameter which will be translated as a class attribute
> in the corresponding div in the HTML output.
>
> Example:
>
> * Important section
> ** Serious Stuff
> blah
> ** More serious Stuff
> * Note
> :CLASS: rightbox
> a silly comment
> * Conclusion
>
> orgmode would then name the div sections as usual, I would like to get
> for the 'Note' section another attribute which would be
> class="rightbox".
>
> I've tried the #+HTML hacks, the html_attr, the drawers and even the
> #+anchor tag. In vain. I'm sure I'm missing something obvious.
> Any help would be really really much appreciated!
>
> -- Ben
>
>
> _______________________________________________
> 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
- Carsten
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-01 9:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 22:54 HTML / Site export: syntax to assign a class to a div Ben
2010-02-01 9:42 ` Carsten Dominik
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.