[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-AUCTeX] Bug: reftex omits everything >= a closing } in a bib entry
From: |
Myles English |
Subject: |
[Bug-AUCTeX] Bug: reftex omits everything >= a closing } in a bib entry title |
Date: |
Fri, 13 Jul 2012 01:08:22 +0100 |
User-agent: |
mu4e 0.9.8.5; emacs 24.1.50.2 |
Hi,
I would expect that the whole of a bibtex entry would be inserted when
asked to do so but sometimes what happens is that the entry is
terminated at a closing "}", depending on what comes after it.
e.g.
expect: A critical appraisal of the {ABC}
get: A critical appraisal of the {ABC
A minimal example follows.
# starting like this:
emacs -Q -l reftexBug.el
# reftexBug.bib contains:
@article{no_work,
title = {A critical appraisal of the {ABC}}}
@article{still_no_work,
title = {A critical appraisal of the {ABC} }}
@article{this_works,
title = {A critical appraisal of the {ABC}a}}
@article{and_this_works,
title = {A critical appraisal of the {ABC}.}}
# reftexBug.el contains:
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(setq reftex-default-bibliography (quote("reftexBug.bib")))
(defun org-mode-reftex-setup ()
(setq TeX-master t)
(load-library "reftex")
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(reftex-parse-all)
(progn
(reftex-parse-all)
(reftex-set-cite-format
'((?t . "%t")))))
(define-key org-mode-map (kbd "C-c )") 'reftex-citation))
(add-hook 'org-mode-hook 'org-mode-reftex-setup)
- open a new org file 'C-x f a.org RET'
- press 'C-c )' choose 't' to insert a title
- type 'no_work RET'
results in: "A critical appraisal of the {ABC"
I would have expected: "A critical appraisal of the {ABC}"
Thanks,
Myles
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-AUCTeX] Bug: reftex omits everything >= a closing } in a bib entry title,
Myles English <=