emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [ANN] e-latex back-end: changes to attributes syntax


From: Nicolas Goaziou
Subject: Re: [O] [ANN] e-latex back-end: changes to attributes syntax
Date: Wed, 21 Nov 2012 19:00:30 +0100

Rasmus <address@hidden> writes:

> BTW: on the lists:  very good idea.  I have often been bothered by
> only having one type of (LaTeX) lists.  Can I set it per list type?
> I.e. plain lists are inlined and enumerated are 'normal'?

No. Attributes only apply on a single list not on a whole list type.
Though, it's easy to implement with filters. For example:

#+begin_src emacs-lisp
(defun my-latex-inline-plain-lists (plain-list backend info)
  (when (org-export-derived-backend-p backend 'e-latex)
    (replace-regexp-in-string
     "\\`\\\\begin{\\(itemize\\)}" "inparaitem"
     (replace-regexp-in-string
      "\\\\end{\\(itemize\\)}\\'" "inparaitem" plain-list nil nil 1)
     nil nil 1)))

(add-to-list 'org-export-filter-plain-list-functions
             'my-latex-inline-plain-lists)
#+end_src


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]