Gnus development mailing list
 help / color / mirror / Atom feed
* Gnus and RefTeX
@ 2013-04-11 22:06 Sebastian P. Luque
  2013-04-12  0:14 ` Sebastian P. Luque
  2013-04-15  9:52 ` Uwe Brauer
  0 siblings, 2 replies; 4+ messages in thread
From: Sebastian P. Luque @ 2013-04-11 22:06 UTC (permalink / raw)
  To: ding

Hi,

Hopefully somebody in the list uses RefTeX and has encountered this
problem.  The manual suggests that we can cite in Gnus via RefTeX:

╭───── [ (info "(reftex)Citations Outside LaTeX") ]
│      (add-hook 'mail-setup-hook
│                (lambda () (define-key mail-mode-map "\C-c["
│                             (lambda ()
│                               (interactive)
│                               (let ((reftex-cite-format 'locally))
│                                 (reftex-citation))))))
╰─────

It used to work until Emacs 23.1 (I think), but is currently failing
with the message:

"The mode `Message' does not support Imenu"

in GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of
2013-04-10 on dex, modified by Debian, which ships with Gnus v5.13.  I
really miss this functionality, so any tips would be welcome.

Cheers,

-- 
Seb



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Gnus and RefTeX
  2013-04-11 22:06 Gnus and RefTeX Sebastian P. Luque
@ 2013-04-12  0:14 ` Sebastian P. Luque
  2013-04-15  9:52 ` Uwe Brauer
  1 sibling, 0 replies; 4+ messages in thread
From: Sebastian P. Luque @ 2013-04-12  0:14 UTC (permalink / raw)
  To: ding

On Thu, 11 Apr 2013 17:06:30 -0500,
"Sebastian P. Luque" <spluque@gmail.com> wrote:

> Hi, Hopefully somebody in the list uses RefTeX and has encountered
> this problem.  The manual suggests that we can cite in Gnus via
> RefTeX:

> ╭───── [ (info "(reftex)Citations Outside LaTeX") ] │ (add-hook
> 'mail-setup-hook │ (lambda () (define-key mail-mode-map "\C-c[" │
> (lambda () │ (interactive) │ (let ((reftex-cite-format 'locally)) │
> (reftex-citation)))))) ╰─────

> It used to work until Emacs 23.1 (I think), but is currently failing
> with the message:

> "The mode `Message' does not support Imenu"

> in GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of
> 2013-04-10 on dex, modified by Debian, which ships with Gnus v5.13.  I
> really miss this functionality, so any tips would be welcome.

Should have checked my AUCTeX setup, where I had
`imenu-add-menubar-index' in `reftex-load-hook'.  In fact, everything is
fine if reftex has already loaded before e.g. while editing a *.tex
file, but not if it's first loaded while writing a message.  So a
solution was to `let'-bind the hook to nil in the lambda function.


-- 
Seb



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Gnus and RefTeX
  2013-04-11 22:06 Gnus and RefTeX Sebastian P. Luque
  2013-04-12  0:14 ` Sebastian P. Luque
@ 2013-04-15  9:52 ` Uwe Brauer
  2013-04-15 18:41   ` Sebastian P. Luque
  1 sibling, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2013-04-15  9:52 UTC (permalink / raw)
  To: ding

>> "Sebastian" == Sebastian P Luque <spluque@gmail.com> writes:

   > Hi,
   > Hopefully somebody in the list uses RefTeX and has encountered this
   > problem.  The manual suggests that we can cite in Gnus via RefTeX:

   > ╭───── [ (info "(reftex)Citations Outside LaTeX") ]
   > │      (add-hook 'mail-setup-hook
   > │                (lambda () (define-key mail-mode-map "\C-c["
   > │                             (lambda ()
   > │                               (interactive)
   > │                               (let ((reftex-cite-format 'locally))
   > │                                 (reftex-citation))))))
   > ╰─────


This sounds very interesting never heard about it. I just tried it out
(Xemacs 21.5.32 Mule) but can you give my an example how it is supposed
to work, because I obtain the following message when executing \C-c[

"No valid bibliography in this document, and no default available"


So I added
\bibliographystyle{amsplain}
\bibliography{/home/oub/tex/bib/bibgraf}


But it did not help neither (I opened a Latex file with bib and refs)

thanks

Uwe Brauer 




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Gnus and RefTeX
  2013-04-15  9:52 ` Uwe Brauer
@ 2013-04-15 18:41   ` Sebastian P. Luque
  0 siblings, 0 replies; 4+ messages in thread
From: Sebastian P. Luque @ 2013-04-15 18:41 UTC (permalink / raw)
  To: ding

On Mon, 15 Apr 2013 11:52:13 +0200,
Uwe Brauer <oub@mat.ucm.es> wrote:

>>> "Sebastian" == Sebastian P Luque <spluque@gmail.com> writes:
>> Hi, Hopefully somebody in the list uses RefTeX and has encountered
>> this problem.  The manual suggests that we can cite in Gnus via
>> RefTeX:

>> ╭───── [ (info "(reftex)Citations Outside LaTeX") ] │ (add-hook
>> 'mail-setup-hook │ (lambda () (define-key mail-mode-map "\C-c[" │
>> (lambda () │ (interactive) │ (let ((reftex-cite-format 'locally)) │
>> (reftex-citation)))))) ╰─────


> This sounds very interesting never heard about it. I just tried it out
> (Xemacs 21.5.32 Mule) but can you give my an example how it is
> supposed to work, because I obtain the following message when
> executing \C-c[

> "No valid bibliography in this document, and no default available"

Perhaps you need to set `reftex-default-bibliography'.  The function
above prompts you to search for a reference there in the minibuffer and
inserts a full citation in your messages, as this: "Venables \& Ripley
2002, Springer".  It's limited to one at a time.

-- 
Seb



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-15 18:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-11 22:06 Gnus and RefTeX Sebastian P. Luque
2013-04-12  0:14 ` Sebastian P. Luque
2013-04-15  9:52 ` Uwe Brauer
2013-04-15 18:41   ` Sebastian P. Luque

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 NNTP newsgroup(s).