From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: org-ref code Date: Wed, 14 May 2014 09:14:18 -0400 Message-ID: References: <878uql7r7p.fsf@ucl.ac.uk> <87eh0d62ys.fsf@ucl.ac.uk> <87lhu9ofqa.fsf@ucl.ac.uk> <871tvzm859.fsf@pinto.chemeng.ucl.ac.uk> <87zjimnccb.fsf@a-rx.info> <87tx8uc59f.fsf@ucl.ac.uk> <87ha4tmexn.fsf@a-rx.info> <878uq5m3k6.fsf@a-rx.info> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f50309e3b556604f95bf5cb Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkZ0n-0000Fc-Ou for emacs-orgmode@gnu.org; Wed, 14 May 2014 09:14:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkZ0m-0003by-Gh for emacs-orgmode@gnu.org; Wed, 14 May 2014 09:14:21 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:58574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkZ0m-0003bo-6o for emacs-orgmode@gnu.org; Wed, 14 May 2014 09:14:20 -0400 Received: by mail-wg0-f43.google.com with SMTP id l18so1899234wgh.14 for ; Wed, 14 May 2014 06:14:18 -0700 (PDT) In-Reply-To: <878uq5m3k6.fsf@a-rx.info> 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: Andreas Reuleaux Cc: "emacs-orgmode@gnu.org" --e89a8f50309e3b556604f95bf5cb Content-Type: text/plain; charset=UTF-8 I think you are restricted to single characters. That key is used by reftex, so it would be a limitation in reftex. You can always define your own function with a key-binding for something specific. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Tue, May 13, 2014 at 11:39 PM, Andreas Reuleaux wrote: > John Kitchin writes: > > > with the most recent org-ref, it should be sufficient to put this in your > > init file: > > > > (org-ref-define-citation-link "textcite" ?I) > > (org-ref-define-citation-link "citeauthorfull" ?F) > > > > this will create a textcite link and create a reftex menu you select with > > the key I, and the other link with the key F. these should automatically > be > > links, and have completion functions. These will get exported as > > \textcite{label} and \citeauthorfull{label}. The > > org-ref-define-citation-link function adds the link, creates the > functions > > necessary, and adds the types to the right places. > > > > You do not need to do the manual additions unless you manually define the > > link like you did with org-add-link-type. > > > > > OK, I see, and works fine, thanks. > > One minor thing: Am I restricted to single-letter keystrokes > above ? like: > > I ---- (...?I) > F ---- (... ?F) > C-t ---- (... ?\C-t) > > I tried to get working something like > > C-r C-t > > with something like this > > (... ?(kbd "C-r C-t")) > > with no success, but I am unsure, if there is just something simple > missing like a quote or a backslash, or if it's just not possible > at this point. > > -Andreas > > > --e89a8f50309e3b556604f95bf5cb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I think you are restricted to single characters. That key = is used by reftex, so it would be a limitation in reftex. You can always de= fine your own function with a key-binding for something specific.

John

-------------= ----------------------
John Kitchin
Associate Professor
Doherty Ha= ll A207F
Department of Chemical Engineering
Carnegie Mellon Universit= y
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>

On Tue, May 13, 2014 at 11:39 PM, Andrea= s Reuleaux <andreas@a-rx.info> wrote:
John Kitchin <jkitchin@andrew.cmu.edu> writes:

> with the most recent org-ref, it should be sufficient to put this in y= our
> init file:
>
> (org-ref-define-citation-link "textcite" ?I)
> (org-ref-define-citation-link "citeauthorfull" ?F)
>
> this will create a textcite link and create a reftex menu you select w= ith
> the key I, and the other link with the key F. these should automatical= ly be
> links, and have completion functions. These will get exported as
> \textcite{label} and \citeauthorfull{label}. The
> org-ref-define-citation-link function adds the link, creates the funct= ions
> necessary, and adds the types to the right places.
>
> You do not need to do the manual additions unless you manually define = the
> link like you did with org-add-link-type.
>


OK, I see, and works fine, thanks.

One minor thing: Am I restricted to single-letter keystrokes
above ? like:

=C2=A0 I =C2=A0 =C2=A0---- (...?I)
=C2=A0 F =C2=A0 =C2=A0---- (... ?F)
=C2=A0 C-t =C2=A0---- (... ?\C-t)

I tried to get working something like

=C2=A0C-r C-t

with something like this

=C2=A0 (... ?(kbd "C-r C-t"))

with no success, but I am unsure, if there is just something simple
missing like a quote or a backslash, or if it's just not possible
at this point.

-Andreas



--e89a8f50309e3b556604f95bf5cb--