From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga 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 15:10:29 +0000 Message-ID: <87fvoo55ei.fsf@ucl.ac.uk> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3oan-0006sF-QU for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 10:10:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3oag-0000th-6a for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 10:10:49 -0500 Received: from am1outboundsmtppool1.messaging.microsoft.com ([213.199.180.165]:34162 helo=AM1EHSNDR001.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3oaf-0000tQ-LV for emacs-orgmode@gnu.org; Thu, 16 Jan 2014 10:10:42 -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: Sebastien Vauban Cc: emacs-orgmode@gnu.org 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... :) -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.5d-479-g8694aa.dirty