emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Charles Berry <ccberry@ucsd.edu>
To: emacs-orgmode@gnu.org
Subject: Re: New Exporter html - latex - beamer
Date: Wed, 20 Mar 2013 14:16:34 +0000 (UTC)	[thread overview]
Message-ID: <loom.20130320T150435-767@post.gmane.org> (raw)
In-Reply-To: 87620nc68j.fsf@tajo.ucsd.edu

 <cberry <at> ucsd.edu> writes:

> 
> Robert Eckl <eckl.r <at> 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

Chuck

  reply	other threads:[~2013-03-20 14:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-15 20:55 New Exporter html - latex - beamer Robert Eckl
2013-03-15 21:21 ` Marcin Borkowski
2013-03-17 13:18 ` Eric S Fraga
2013-03-19 19:09   ` Robert Eckl
2013-03-19 23:36     ` cberry
2013-03-20 14:16       ` Charles Berry [this message]
2013-03-25 22:39         ` Robert Eckl
2013-03-20  8:43     ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20130320T150435-767@post.gmane.org \
    --to=ccberry@ucsd.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).