From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: HTML / Site export: syntax to assign a class to a div Date: Mon, 1 Feb 2010 10:42:29 +0100 Message-ID: <39B1014E-72A0-4332-AA98-17CAC64D2955@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nbsnj-0004fX-5Y for emacs-orgmode@gnu.org; Mon, 01 Feb 2010 04:42:35 -0500 Received: from [199.232.76.173] (port=47485 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nbsni-0004fJ-PH for emacs-orgmode@gnu.org; Mon, 01 Feb 2010 04:42:34 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nbsnh-0002Lk-Ah for emacs-orgmode@gnu.org; Mon, 01 Feb 2010 04:42:34 -0500 Received: from mail-ew0-f213.google.com ([209.85.219.213]:50665) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nbsng-0002La-Vb for emacs-orgmode@gnu.org; Mon, 01 Feb 2010 04:42:33 -0500 Received: by ewy5 with SMTP id 5so7388567ewy.32 for ; Mon, 01 Feb 2010 01:42:31 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ben Cc: emacs-orgmode@gnu.org 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