emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Links in tables and LaTeX export
Date: Mon, 04 Jul 2011 15:58:04 -1000	[thread overview]
Message-ID: <m17h7xqyj7.fsf@tsdye.com> (raw)

Aloha all,

Links in tables have changed recently.

I have this link definition:

#+source: define-citep-link
#+begin_src emacs-lisp :results silent
    (org-add-link-type 
     "citep" 'ebib
     (lambda (path desc format)
       (cond
        ((eq format 'html)
         (format "(<cite>%s</cite>)" path))
        ((eq format 'latex)
         (if (or (not desc) (equal 0 (search "citep:" desc)))
               (format "\\citep{%s}" path)
               (format "\\citep[%s]{%s}" desc path)
  )))))
#+end_src

Links outside of a table export correctly:

[[citep:wagner90][598]] exports to \citep[598]{wagner}

Inside a table the same link exports like this:

[[citep:wagner90]\footnote{DEFINITION NOT FOUND: 598}] 

I'm using Org-mode version 7.5 (release_7.5.566.g8d45).

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com

             reply	other threads:[~2011-07-05  1:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-05  1:58 Thomas S. Dye [this message]
2011-07-05  3:10 ` Links in tables and LaTeX export Nick Dokos
2011-07-05 10:07   ` Bastien
2011-07-05 10:10     ` Nicolas Goaziou
2011-07-05 12:03 ` Nicolas Goaziou
2011-07-05 15:06   ` Nick Dokos
2011-07-05 15:18   ` Thomas S. Dye
2011-07-05 17:03     ` Nick Dokos
2011-07-05 22:58       ` Bernt Hansen
2011-07-05 23:26         ` Nick Dokos
2011-07-05 23:36           ` Bernt Hansen
2011-07-05 23:46             ` Nick Dokos
2011-07-06  0:26               ` Thomas S. Dye

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=m17h7xqyj7.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --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).