unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tyler Smith <tyler.smith@mail.mcgill.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: citation separation in reftex
Date: Fri, 16 Feb 2007 03:15:13 GMT	[thread overview]
Message-ID: <slrneta8e1.tjg.tyler.smith@blackbart.mynetwork> (raw)
In-Reply-To: mailman.4566.1171571649.2155.help-gnu-emacs@gnu.org

On 2007-02-15, Jim Ottaway <j.ottaway@lse.ac.uk> wrote:
> On 15 Feb 2007, Tyler Smith wrote:

>> I'm having a small problem with Auctex/Reftex. I often have multiple
>> citations to include, and since the default separation is a comma with
>> no space, the citation extends beyond the limits of the paragraph and
>> autofill can't deal with it. How can I set reftex to insert citations
>> separated by ', ' instead of ',' ?
>>
>> I tried the info manuals, but I couldn't find the answer there.
>
> Unfortunately, it appears to be hard-coded that way in reftex-cite.el in
> the function reftex-citation and passim.  
>

Thanks! I found the relevant section in reftex-do-citation:

      (let ((concat-keys (mapconcat 'car selected-entries ",")))

and switched it to:

      (let ((concat-keys (mapconcat 'car selected-entries ", ")))

I put the modified function in scratch and c-x c-e to run it, and now
the function works as I want. How do I get the modifed code to run
automatically? I tried putting it in .emacs but that doesn't work. 

-- 
Regards,

Tyler Smith

  parent reply	other threads:[~2007-02-16  3:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-15 16:10 citation separation in reftex Tyler Smith
2007-02-15 20:33 ` Jim Ottaway
     [not found] ` <mailman.4566.1171571649.2155.help-gnu-emacs@gnu.org>
2007-02-16  3:15   ` Tyler Smith [this message]
2007-02-16  7:50     ` Kevin Rodgers
2007-02-16  9:44     ` Jim Ottaway
     [not found]     ` <mailman.4580.1171612232.2155.help-gnu-emacs@gnu.org>
2007-02-16 13:12       ` Tyler Smith
2007-02-21  3:04         ` Kevin Rodgers
     [not found]         ` <mailman.4828.1172027079.2155.help-gnu-emacs@gnu.org>
2007-02-21 15:49           ` Tyler Smith
2007-02-21 17:00             ` Jim Ottaway
     [not found]             ` <mailman.4855.1172077233.2155.help-gnu-emacs@gnu.org>
2007-02-21 20:38               ` Tyler Smith
2007-02-22  4:44                 ` Kevin Rodgers

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=slrneta8e1.tjg.tyler.smith@blackbart.mynetwork \
    --to=tyler.smith@mail.mcgill.ca \
    --cc=help-gnu-emacs@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.
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).