From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Mason Subject: Re: LaTeX export: images in margin Date: Fri, 16 Aug 2013 11:34:09 -0230 Message-ID: <520E3159.1050300@mun.ca> References: <520E143E.3090007@mun.ca> <20130816124707.GC10615@kuru.dyndns-at-home.com> <20130816131559.GD10615@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAKdW-0004IA-5R for emacs-orgmode@gnu.org; Fri, 16 Aug 2013 10:04:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAKdP-0004OE-Em for emacs-orgmode@gnu.org; Fri, 16 Aug 2013 10:04:18 -0400 Received: from nina.ucs.mun.ca ([134.153.232.76]:40309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAKdP-0004Ns-98 for emacs-orgmode@gnu.org; Fri, 16 Aug 2013 10:04:11 -0400 Received: from [134.153.37.33] (cryptoperthite.esd.mun.ca [134.153.37.33]) (authenticated bits=0) by nina.ucs.mun.ca (8.13.1/8.13.1) with ESMTP id r7GE49ZA029285 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 16 Aug 2013 11:34:10 -0230 In-Reply-To: <20130816131559.GD10615@kuru.dyndns-at-home.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello again, On 08/16/2013 10:45 AM, Suvayu Ali wrote: >> You can adapt this to your needs: >> > It's in the FAQ now: > > Cheers, > Thanks for your response. I have it working somewhat: (defun margin-graphics (contents backend info) (when (eq backend 'latex) (replace-regexp-in-string "\\`\\\\includegraphics.+\\({.+}\\)" "\\\\marginpar{\\\\includegraphics\1} " contents))) (add-to-list 'org-export-filter-link-functions 'margin-graphics) However, the LaTeX file contains this: \marginpar{\includegraphics^A} rather than the expected \marginpar{\includegraphics[]{filename}} Something is wrong with my regexp, but what? Thanks, Roger This electronic communication is governed by the terms and conditions at http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php