From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Eckl Subject: Re: New Exporter html - latex - beamer Date: Mon, 25 Mar 2013 23:39:11 +0100 Message-ID: <87sj3jksts.fsf@sachwertpartner.de> References: <87a9q217wp.fsf@ucl.ac.uk> <87620nc68j.fsf@tajo.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKG30-0002kb-6N for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:39:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKG2u-0001TQ-VC for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:39:22 -0400 Received: from web22.dogado.de ([93.90.176.110]:46242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKG2u-0001T4-Pu for emacs-orgmode@gnu.org; Mon, 25 Mar 2013 18:39:16 -0400 Received: from relinux (mnch-5d87b7ba.pool.mediaWays.net [93.135.183.186]) by web22.dogado.de (Postfix) with ESMTP id ED62A56249B8 for ; Mon, 25 Mar 2013 23:36:07 +0100 (CET) In-Reply-To: (Charles Berry's message of "Wed, 20 Mar 2013 14:16:34 +0000 (UTC)") 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 Charles Berry writes: > ucsd.edu> writes: > >> >> Robert Eckl gmx.de> writes: >> > [snip] >> > > I said > >> You might be able to do what you want with filter functions. >> > >> >> You can do that with this filter: >> > > But you will want to add something to it to treat links without the :windowenv: > tag in the normal way > >> ,---- >> | #+BEGIN_SRC emacs-lisp >> | (defun filter-links-windowized (link backend info) >> | "Rid :windowenv: from LINK desc and format per BACKEND. Ignore INFO." >> | (let ((clean-string (replace-regexp-in-string ":windowenv:" "" link))) > > Replace this line: > >> | (if (eq backend 'latex) > > with these: > > (if (and > (eq backend 'latex) > (string-match ":windowenv:" link)) > > > >> | (let ((wprefix "\\begin{window}[0,r,") >> | (wpostfix"}},{}]\n\\parbox{0.7\\textwidth}{") >> | (repstrng >> | "\\1{\\\\includegraphics[width=0.28\\\\textwidth]\\2}")) >> | (concat wprefix >> | (file-name-sans-extension >> | (replace-regexp-in-string >> | "\\([^}]*}\\)\\({.*}\\)" >> | repstrng >> | clean-string)) >> | wpostfix)) >> | clean-string))) >> | #+end_src >> `---- > > then ordinary links like > > [[http://good.place.com][See good place]] > > will be handled in the usual manner by the latex backend My response is very late, sorry. Thank you for your effort and the code. I'll try to use it, sounds good. Reading from filters on worg didn't give me any idea how to use it, but your code and explanations seems a good entry. Perhaps later i'll try to adapt that functionality to the parallel beamer/html-export. Cu, Robert