[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Filter not working (org 8.0.3)
From: |
Roger Mason |
Subject: |
[O] Filter not working (org 8.0.3) |
Date: |
Thu, 05 Sep 2013 13:23:03 -0230 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
Hello,
I have this at the top of an org file in order to put graphics in the
margin:
#+LATEX_HEADER: \usepackage[right=2in,left=0.5in]{geometry}
\usepackage{parskip}
#+BEGIN_SRC emacs-lisp
(defun margin-graphics (contents backend info)
(when (eq backend 'latex)
(replace-regexp-in-string "\\`\\\\includegraphics.+\\({.+}\\)"
"\\\\marginpar{\\\\includegraphics[width=0.9\\\\marginparwidth]\\1} "
contents)))
(add-to-list 'org-export-filter-link-functions 'margin-graphics)
#+END_SRC
C-e lp produces a pdf document, but the filter is not applied (org 8.0.3).
Can someone show me what I'm doing wrong?
Thanks,
Roger
This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php
- [O] Filter not working (org 8.0.3),
Roger Mason <=