emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Ken Mankoff <mankoff@gmail.com>
Cc: Org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: ASCII export w/ citations
Date: Fri, 02 Jan 2015 21:42:52 +0100	[thread overview]
Message-ID: <87egrc9ann.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2lhllqlf3.fsf@gorgonzola.lan> (Ken Mankoff's message of "Fri, 02 Jan 2015 09:58:24 -0500")

Ken Mankoff <mankoff@gmail.com> writes:

> I don't see mention of custom export functions in the manual. Is there a
> page describing how I would use these, or can you provide an example
> that would stop printing of links in ASCII export?

In your initial mail, you wrote

  (org-add-link-type
   "cite"  (lambda (key) (org-open-file cby-references-file t nil key))
   (lambda (path desc format)
     (cond
      ((eq format 'latex) (format "\\autocite{%s}" path))
      ((eq format 'ascii) (format "[@%s]" path))
      )))

The second lambda is a custom export function for "cite" links.

Anyway, I think you should update Org as the behaviour is different than
in your initial mail.

BTW, if you want to remove all links from ASCII export, use an export
filter.

Regards,

  reply	other threads:[~2015-01-02 20:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01 17:08 ASCII export w/ citations Ken Mankoff
2015-01-01 18:36 ` Nicolas Goaziou
2015-01-01 18:59   ` Ken Mankoff
2015-01-01 19:32     ` Ken Mankoff
2015-01-01 20:45     ` Nicolas Goaziou
2015-01-02 14:58       ` Ken Mankoff
2015-01-02 20:42         ` Nicolas Goaziou [this message]
2015-01-02 21:52           ` Ken Mankoff

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=87egrc9ann.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=mankoff@gmail.com \
    /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).