help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: citation separation in reftex


From: Tyler Smith
Subject: Re: citation separation in reftex
Date: Fri, 16 Feb 2007 03:15:13 GMT
User-agent: slrn/0.9.8.1pl1 (Debian)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]