all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: [ox-html] Multiple wraps around sections
Date: Sun, 16 Mar 2014 11:01:53 +0100	[thread overview]
Message-ID: <878usasbqm.fsf@gmail.com> (raw)
In-Reply-To: <87eh233unt.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 16 Mar 2014 00:32:22 +0100")

Hello,

Rasmus <rasmus@gmx.us> writes:

> I'm trying to make a personal website with ox-html and ox-publish.  In
> terms of output I am looking for something like:
>
> #+begin_src html
> <section id="CUSTOM_ID" class="HTML_CONTAINER_CLASS">
>   <div class="indent-wrapper">
>     <h2>Section title</h2>
>     my text
>   </div>
> </section>
> #+end_src
>
> This seems to be how these fancy pages get colored boxes and indented
> text¹. . .
>
> I can almost get it with Org now using org-html-container-element
> (:html-container in ox-html).
>
> #+begin_src html
> <section id="outline-container-CUSTOM_ID" class="outline-2 HTML_CONTAINER_CLASS">
>   <h2 id="CUSTOM_ID"><a id="sec-2"></a>Section title</h2>
>   <div class="outline-text-2" id="text-CUSTOM_ID">
>     my text
>   </div>
> </section>
> #+end_src
>
> Is there any way I can easily get an /extra/ container around my
> sections?  Or should I try to hack together a patch for multiple
> containers myself?

Did you try using a filter (e.g., `org-export-filter-headline-functions')?


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2014-03-16 10:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-15 23:32 [ox-html] Multiple wraps around sections Rasmus
2014-03-16 10:01 ` Nicolas Goaziou [this message]
     [not found] ` <m2wqfuy2yf.fsf@uio.no>
2014-03-16 13:01   ` Rasmus
2014-03-16 13:23     ` Nicolas Goaziou
2014-03-16 14:02       ` Rasmus
2014-03-16 14:21         ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878usasbqm.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.