From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Export Org checkboxes in ox-html using UTF-8 symbols Date: Thu, 27 Mar 2014 09:43:51 +0100 Message-ID: <8738i4t4jc.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT5uK-0000Im-B4 for emacs-orgmode@gnu.org; Thu, 27 Mar 2014 04:43:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WT5uF-0000Gv-D7 for emacs-orgmode@gnu.org; Thu, 27 Mar 2014 04:43:28 -0400 Received: from mail-we0-x22b.google.com ([2a00:1450:400c:c03::22b]:51119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT5uF-0000Gl-6I for emacs-orgmode@gnu.org; Thu, 27 Mar 2014 04:43:23 -0400 Received: by mail-we0-f171.google.com with SMTP id t61so1552343wes.16 for ; Thu, 27 Mar 2014 01:43:22 -0700 (PDT) In-Reply-To: (Grant Rettke's message of "Wed, 26 Mar 2014 20:56:51 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Grant Rettke Cc: "emacs-orgmode@gnu.org" Hello, Grant Rettke writes: > 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 "") ; > checkbox (checked) > (off "") > (trans "[-]") > (t ""))) > (defadvice org-html-checkbox (around sacha activate) > (setq ad-return-value (sacha/org-html-checkbox (ad-get-arg 0)))) > > Thanks Sacha. There is also: (setq org-html-checkbox-type 'unicode) You need a recent Org, though (maybe development version, I didn't check). Regards, -- Nicolas Goaziou