Re: [O] [patch] ox-latex.el to allow customization of verbatim environments (e.g., to use fancyvrb)

2013-04-14 Thread Nicolas Goaziou
Hello, Eric Schulte writes: > Here's my fancyvrb filter for when such a place is created. > > (defun org-latex-filter-fancyvrb (text backend info) > "Convert begin/end{verbatim} to begin/end{Verbatim}. > Allows use of the fancyvrb latex package." > (when (or (org-export-deriv

Re: [O] [patch] ox-latex.el to allow customization of verbatim environments (e.g., to use fancyvrb)

2013-04-14 Thread Eric Schulte
Bastien writes: > Nicolas Goaziou writes: > >> I'm not sure a new variable is needed here. After all, that's what >> filters are for. > > Filters are for advanced Emacs users, not normal Emacs users. > > A "normal" Emacs users is someone who knows how to set an option > but who doesn't know how

Re: [O] [patch] ox-latex.el to allow customization of verbatim environments (e.g., to use fancyvrb)

2013-04-14 Thread Thomas S. Dye
Bastien writes: > Nicolas Goaziou writes: > >> I'm not sure a new variable is needed here. After all, that's what >> filters are for. > > Filters are for advanced Emacs users, not normal Emacs users. > > A "normal" Emacs users is someone who knows how to set an option > but who doesn't know how

Re: [O] [patch] ox-latex.el to allow customization of verbatim environments (e.g., to use fancyvrb)

2013-04-14 Thread Bastien
Nicolas Goaziou writes: > I'm not sure a new variable is needed here. After all, that's what > filters are for. Filters are for advanced Emacs users, not normal Emacs users. A "normal" Emacs users is someone who knows how to set an option but who doesn't know how to write a function. This is a

Re: [O] [patch] ox-latex.el to allow customization of verbatim environments (e.g., to use fancyvrb)

2013-04-14 Thread Daimrod
Eric Schulte writes: > -(concat (format "\\begin{verbatim}\n%s\\end{verbatim}" > -(org-export-format-code-default src-block info)) > +(concat (format "\\begin{%s}\n%s\\end{%s}" > +org-latex-verbatim-env > +

Re: [O] [patch] ox-latex.el to allow customization of verbatim environments (e.g., to use fancyvrb)

2013-04-14 Thread Nicolas Goaziou
Eric Schulte writes: > Please see the attached patch, I'd love for this to be applied. You can use a filter function that will replace default "verbatim" with whatever you want: #+begin_src emacs-lisp (defun my-latex-custom-verbatim (element backend info) (when (org-export-derived-backend-p b

[O] [patch] ox-latex.el to allow customization of verbatim environments (e.g., to use fancyvrb)

2013-04-14 Thread Eric Schulte
Please see the attached patch, I'd love for this to be applied. Cheers, >From 04358f2eecf99e43f79956f0d3bc66aa0ab4b95d Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 14 Apr 2013 11:43:30 -0600 Subject: [PATCH 3/3] customizable verbatim export for LaTeX (fancyvrb) This patch allows cus