From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: latex checkboxes Date: Fri, 17 Jun 2011 09:39:35 -0400 Message-ID: <24011.1308317975@alphaville.dokosmarshall.org> References: <16524.1308266941@alphaville.dokosmarshall.org> <87sjr87g09.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXZHB-0001oY-Bq for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 09:39:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXZH9-0001u0-B4 for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 09:39:57 -0400 Received: from vms173007pub.verizon.net ([206.46.173.7]:32848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXZH8-0001tW-PP for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 09:39:55 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LMX00B5OSLZSF00@vms173007.mailsrvcs.net> for emacs-orgmode@gnu.org; Fri, 17 Jun 2011 08:39:41 -0500 (CDT) In-reply-to: Message from Nicolas Goaziou of "Fri, 17 Jun 2011 15:18:46 +0200." <87sjr87g09.fsf@gmail.com> 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: "Thomas S. Dye" , Skip Collins , emacs-orgmode@gnu.org Cc: nicholas.dokos@hp.com Nicolas Goaziou wrote: > Hello, > > Nick Dokos writes: > > > Yes, you can indeed - except for the [-] which is hardcoded. Try the > > following: > > > > #LATEX_HEADER: \setbox0=\hbox{\large$\square$} > > > > #+BIND: org-export-latex-list-parameters (:cbon "[{\\parbox[][][c]{\\wd0}{\\large$\\boxtimes$}}]" :cboff "[{\\parbox[][][c]{\\wd0}{\\large$\\square$}}]") > > > > * DONE Organize party [3/4] > > - [ ] call people > > - [X] order food > > - [-] think about what music to play > > - [X] talk to the neighbors > > > > So the question is: why is the [-] hardcoded? > > Historical reasons, I guess. > > I've now pushed a patch introducing the new property `:cbtrans' for > those check-boxes. As expected :-) Thanks. > Sadly, it will only work with exporters making use of > list parsing, that is only the LaTeX exporter so far. > > Btw, is there any consensus on better default values for :cbon, :cboff > and :cbtrans? Configurability isn't an excuse for ugly standards. > I don't think so - not yet in any case. I didn't even know about the box stuff until Skip brought it up. I would have thought that the default ones should be the simplest thing possible: [ ], [X] and [-] in a monospaced font, something that does not need any help from additional LaTeX packages, the kind of thing that org-list-to-latex does. Nick