From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Sebastien Vauban <sva-news@mygooglest.com>
Cc: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <87fvoo55ei.fsf@ucl.ac.uk> (raw)
In-Reply-To: 8638koqgk1.fsf@somewhere.org
Sebastien Vauban <sva-news@mygooglest.com> 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
next prev parent reply other threads:[~2014-01-16 15:10 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-11 21:18 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/)] Jon Degenhardt
2014-01-13 0:26 ` Vladimir Lomov
2014-01-13 16:51 ` Nicolas Goaziou
2014-01-13 23:56 ` Vladimir Lomov
2014-01-14 16:39 ` Eric S Fraga
2014-01-14 18:42 ` Nicolas Goaziou
2014-01-14 19:54 ` Eric S Fraga
2014-01-14 20:52 ` Nicolas Goaziou
2014-01-15 8:35 ` Eric S Fraga
2014-01-15 13:18 ` Nicolas Goaziou
2014-01-16 9:55 ` Eric S Fraga
2014-01-16 12:03 ` Sebastien Vauban
2014-01-16 15:10 ` Eric S Fraga [this message]
2014-01-16 15:15 ` Nicolas Goaziou
[not found] ` <87ha94vtyj.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-01-16 15:24 ` Sebastien Vauban
2014-01-16 16:42 ` Eric S Fraga
2014-08-03 7:57 ` Nicolas Goaziou
2014-01-16 14:54 ` Nicolas Goaziou
2014-01-18 20:06 ` Jon Degenhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fvoo55ei.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=sva-news@mygooglest.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.