emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [New exporter] org-export-latex-verbatim-wrap
@ 2013-01-11 22:25 Ista Zahn
  2013-01-11 22:30 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Ista Zahn @ 2013-01-11 22:25 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

Hi all,

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?

Thanks!
Ista

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [New exporter] org-export-latex-verbatim-wrap
  2013-01-11 22:25 [New exporter] org-export-latex-verbatim-wrap Ista Zahn
@ 2013-01-11 22:30 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2013-01-11 22:30 UTC (permalink / raw)
  To: Ista Zahn; +Cc: emacs-orgmode Mailinglist

Hello,

Ista Zahn <istazahn@gmail.com> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-12  0:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 22:25 [New exporter] org-export-latex-verbatim-wrap Ista Zahn
2013-01-11 22:30 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).