[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] RFC: Revisit org-export-content-div (in the context of org-s5)
From: |
Bastien |
Subject: |
Re: [O] RFC: Revisit org-export-content-div (in the context of org-s5) |
Date: |
Mon, 11 Jul 2011 13:44:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Jambunathan,
Jambunathan K <address@hidden> writes:
> Couple of comments wrt org-export-content-div:
>
> 1. Should be renamed to org-export-html-content-div
Done.
> 2. If we look at org-s5.el[1], we see the following usage where
> apparently <div id="content"> is essentially replaced by "<div
> class="presentation"> with a bunch of leading and trailing stuff.
>
> #+begin_src emacs-lisp
> (lambda ()
> (save-excursion
> (replace-regexp
> (regexp-quote "<div id=\"content\">")
> (let ((info `(("author" . ,author)
> ("title" . ,title)
> ("date" . ,(substring date 0 10)))))
> (join `("<div class=\"layout\">"
> "<div id=\"controls\"><!-- no edit --></div>"
> "<div id=\"currentSlide\"><!-- no edit --></div>"
> "<div id=\"header\"></div>"
> "<div id=\"footer\">"
> ,(org-fill-template org-s5-title-string-fmt info)
> "</div>"
> "</div>"
> ""
> "<div class=\"presentation\">"
> ,(org-fill-template org-s5-title-page-fmt info)))))))
> #+end_src
>
> 3. Considering (2) above it might be worthwhile defining the
> customization as below (for a first cut)
>
> #+begin_src emacs-lisp
> (defcustom org-export-html-content-div "%s <div %s> %s" ; note the html in
> prefix
> "The name of the container DIV that holds all the page contents."
> :group 'org-export-htmlize
> :type 'string)
> #+end_src
This looks to complicated to me.
I've introduced a new defcustom `org-export-html-before-content-div'
which lets the user place arbitrary HTML code before the main container.
org-s5.el could you this instead of replacing the "<div id=content>".
--
Bastien
- Re: [O] Using org-mode for Research and Notetaking, (continued)
- Re: [O] Using org-mode for Research and Notetaking, Bastien, 2011/07/18
- Re: [O] Using org-mode for Research and Notetaking, Florian Beck, 2011/07/14
- Re: [O] Using org-mode for Research and Notetaking, Thomas S. Dye, 2011/07/14
- Re: [O] Using org-mode for Research and Notetaking, Bastien, 2011/07/18
- Re: [O] Using org-mode for Research and Notetaking, Thomas S. Dye, 2011/07/18
- Re: [O] Using org-mode for Research and Notetaking, Florian Beck, 2011/07/18
- Re: [O] Using org-mode for Research and Notetaking, Bastien, 2011/07/26
- Re: [O] Using org-mode for Research and Notetaking, Florian Beck, 2011/07/26
- Re: [O] Using org-mode for Research and Notetaking, Thomas S. Dye, 2011/07/26
- Re: [O] Using org-mode for Research and Notetaking, Christian Moe, 2011/07/26
Re: [O] RFC: Revisit org-export-content-div (in the context of org-s5),
Bastien <=