all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Export Org checkboxes in ox-html using UTF-8 symbols
@ 2014-03-27  1:56 Grant Rettke
  2014-03-27  8:43 ` Nicolas Goaziou
  0 siblings, 1 reply; 10+ messages in thread
From: Grant Rettke @ 2014-03-27  1:56 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi,

Sacha Chua made a nice hack to export checkboxes as unicode symbols to
HTML here:

http://sachachua.com/blog/2014/03/emacs-tweaks-export-org-checkboxes-using-utf-8-symbols/?shareadraft=baba27119_533313c944f64

(defun sacha/org-html-checkbox (checkbox)
  "Format CHECKBOX into HTML."
  (case checkbox (on "<span class=\"check\">&#x2611;</span>") ;
checkbox (checked)
        (off "<span class=\"checkbox\">&#x2610;</span>")
        (trans "<code>[-]</code>")
        (t "")))
(defadvice org-html-checkbox (around sacha activate)
  (setq ad-return-value (sacha/org-html-checkbox (ad-get-arg 0))))

Thanks Sacha.

Regards,

Grant Rettke | AAAS, ACM, AMA, COG, IEEE, Sigma Xi
grettke@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-17  9:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27  1:56 Export Org checkboxes in ox-html using UTF-8 symbols Grant Rettke
2014-03-27  8:43 ` Nicolas Goaziou
2014-03-28 13:55   ` Rick Frankel
2014-03-28 14:01     ` Sebastien Vauban
2014-03-28 14:59       ` Rick Frankel
2014-03-28 15:27         ` Sebastien Vauban
2014-03-29 14:12         ` Marcin Borkowski
2014-04-02 16:59           ` Rick Frankel
2014-04-17  1:15           ` Rick Frankel
2014-04-17  9:45             ` Nicolas Goaziou

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.