From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" 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:24:46 +0100 Message-ID: <86r488gda9.fsf@somewhere.org> 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> <87ha94vtyj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <87ha94vtyj.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> (Nicolas Goaziou's message of "Thu, 16 Jan 2014 16:15:32 +0100") 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: Nicolas Goaziou Cc: emacs-orgmode-mXXj517/zsQ@public.gmane.org Nicolas Goaziou wrote: > Eric S Fraga writes: >> Sebastien Vauban writes: >>> 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... :) I can imagine ;-) > The question is still open, though: should it be the default? I'd vote for it, for both LaTeX and HTML. Best regards, Seb -- Sebastien Vauban