emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [New exporter] org-export-latex-verbatim-wrap


From: Nicolas Goaziou
Subject: Re: [O] [New exporter] org-export-latex-verbatim-wrap
Date: Fri, 11 Jan 2013 23:30:17 +0100

Hello,

Ista Zahn <address@hidden> writes:

> Does the new exporter have any equivalent of
> org-export-latex-verbatim-wrap? I've looked but don't see anything.
> How can I format verbatim output when using the new exporter?

Add a filter to `org-export-filter-fixed-width-functions'. E.g.:

#+begin_src emacs-lisp
(defun my-latex-fixed-width-filter (fixed-width backend info)
  (when (org-export-derived-backend-p backend 'e-latex)
    (replace-regexp-in-string
     "\\(begin\\|end\\){\\(verbatim\\)}"
     "something" fixed-width nil nil 2)))

(add-to-list 'org-export-filter-fixed-width-functions
             'my-latex-fixed-width-filter)
#+end_src


Regards,

-- 
Nicolas Goaziou



reply via email to

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