From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Export to Latex - Incorrect output for list items starting with left bracket [8.2.3c (8.2.3c-elpa @ /Users/jdegenhardt/.emacs.d/elpa/org-20131115/)] Date: Thu, 16 Jan 2014 16:15:32 +0100 Message-ID: <87ha94vtyj.fsf@gmail.com> References: <1389475109.23348.YahooMailNeo@web184706.mail.ne1.yahoo.com> <87sisrkepy.fsf@gmail.com> <87lhyiv7pt.fsf@ucl.ac.uk> <87zjmyl80v.fsf@gmail.com> <87d2jubaqg.fsf@ucl.ac.uk> <87mwiyl20n.fsf@gmail.com> <87vbxltzg0.fsf@ucl.ac.uk> <8738kps7r0.fsf@gmail.com> <87bnzc45fm.fsf@ucl.ac.uk> <8638koqgk1.fsf@somewhere.org> <87fvoo55ei.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3of7-0000W5-40 for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 10:15:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3of2-0002NJ-EM for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 10:15:17 -0500 Received: from mail-wg0-x231.google.com ([2a00:1450:400c:c00::231]:43872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3of2-0002N7-7t for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 10:15:12 -0500 Received: by mail-wg0-f49.google.com with SMTP id a1so3234489wgh.4 for ; Thu, 16 Jan 2014 07:15:11 -0800 (PST) In-Reply-To: <87fvoo55ei.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 16 Jan 2014 15:10:29 +0000") 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org Eric S Fraga writes: > Sebastien Vauban writes: > >> Hello Eric, >> >> Eric S Fraga wrote: >>> Seems to work fine. I've tried using the export snippets together with >>> the filter for checkboxes and my lists come out looking as they >>> should. Changing my documents won't be too onerous. >> >> Would you mind sharing your filter (or put it on Worg hacks, maybe)? > > Sure: > > #+begin_src emacs-lisp > (defun esf/filter-checkbox-list-items (line backend channel) > (if (eq backend 'latex) > (replace-regexp-in-string "\\\\item \\$\\\\\\(square\\|boxtimes\\)\\$" "\\\\item [$\\\\\\1$]" line))) > > (add-to-list 'org-export-filter-plain-list-functions 'esf/filter-checkbox-list-items) > #+end_src > > It took a while to suss out the number of backslashes... :) The question is still open, though: should it be the default? Regards, -- Nicolas Goaziou