emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Filters not working


From: Charles Berry
Subject: Re: [O] Filters not working
Date: Fri, 9 Aug 2013 18:29:47 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Thomas S. Dye <tsd <at> tsdye.com> writes:

> 
> Aloha all,
> 
> After an upgrade from 8.0.3 this morning I'm unable to export a large
> writing project that has kept me from reading the ML regularly for the
> last few months. It seems that filters that used to work, no longer do
> so. For example,
> 
>   #+name: tsd-parencites
>   #+BEGIN_SRC emacs-lisp 
>   (defun tsd-latex-filter-parencites (text backend info)
>     "Replace parencites placeholders in Beamer/LaTeX export."
>     (when (memq backend '(beamer latex))
>       (replace-regexp-in-string "π" "\\parencites" text nil t)))
>   (add-to-list 'org-export-filter-plain-text-functions
>                'tsd-latex-filter-parencites)
>   #+END_SRC
> 
> now lets pi slip through into the LaTeX output, giving this error:
> 
> ERROR: Package inputenc Error: Unicode char \u8:π not set up for use with
LaTeX.
> 
> My question, is whether this filter is obviously broken given recent
> changes to Org-mode?  Any pointers greatly appreciated.
> 

Did you upgrade as in 'git pull'? If not, I cannot help.

If so,

This bit of org-mode:

,----
| * headline
| 
| 
| #+BEGIN_SRC emacs-lisp :eval yes :exports both
|   (defun test-filter-final (text back-end info)
|     "What is back-end?"
|     (concat "type-of back-end: " 
|             (format "%S" (type-of back-end))
|             "\nname of back-end: "
|             (symbol-name (org-export-backend-name back-end))))
|   
|   (add-to-list 'org-export-filter-final-output-functions 'test-filter-final)
| #+END_SRC
`----

will export via 

    C-c C-e l L y

as 

,----
| type-of back-end: vector
| name of back-end: latex
`----

Take a look at "(defstruct (org-export-backend..." in ox.el


HTH,






reply via email to

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