emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#57712: closed (29.0.50; bibtex.el: Should `bibtex-parse-entry' handl


From: GNU bug Tracking System
Subject: bug#57712: closed (29.0.50; bibtex.el: Should `bibtex-parse-entry' handle curly braces inside fields?)
Date: Fri, 30 Dec 2022 06:40:02 +0000

Your message dated Fri, 30 Dec 2022 00:39:18 -0600
with message-id <874jtde6p5.fsf@gnu.org>
and subject line Re: bug#57712: 29.0.50; bibtex.el: Should `bibtex-parse-entry' 
handle curly braces inside fields?
has caused the debbugs.gnu.org bug report #57712,
regarding 29.0.50; bibtex.el: Should `bibtex-parse-entry' handle curly braces 
inside fields?
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
57712: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57712
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 29.0.50; bibtex.el: Should `bibtex-parse-entry' handle curly braces inside fields? Date: Sat, 10 Sep 2022 12:32:57 +0800
Hello,

Org mode is relying upon bibtex.el to parse BibTeX bibliographies.

Recently, we have got a bug report where curly braces are used inside
title field:

https://orgmode.org/list/CAF+0kSg8O3RQBG1wXoHjMEHwnGFz0gaDkTTSGv+ZaOt4d4myCA@mail.gmail.com

@InCollection{Geyer2011,
  author          = {Geyer, Charles J},
  title           = {{Introduction to Markov Chain Monte Carlo}},
                     ^                                        ^
  year            = 2011,
  booktitle       = {{Handbook of Markov Chain Monte Carlo}},
  editor          = {Brooks, Steve and Gelman, Andrew and Jones, Galin and Meng,
                  Xiao-Li},
  publisher       = {CRC press},
  pages           = 45,
}

The curly braces inside fields are a part of BibTeX specification:
http://www.bibtex.org/SpecialSymbols/

Yet, bibtex-parse-entry simply ignores all the curly braces inside the
field and returns the field as is:

(("=type=" . "InCollection")
... ("title" . "{Introduction to Mark\\.{o}v Chain Monte Carlo}") ...)

The same goes for the \.{o} special symbol.

It would be useful if bibtex-parse-entry could process the escapes when,
say, its first optional argument CONTENT is set to 'parse.

Would it be possible?

-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92



--- End Message ---
--- Begin Message --- Subject: Re: bug#57712: 29.0.50; bibtex.el: Should `bibtex-parse-entry' handle curly braces inside fields? Date: Fri, 30 Dec 2022 00:39:18 -0600
On Wed, Sep 14 2022, Roland Winkler wrote:
> As I said before: if this doesn't fit your needs for org mode, I
> suggest you develop a LaTeX parser that can process LaTeX code
> according to your needs.  Then you can feed it with any valid LaTeX
> code including the return values of bibtex-text-in-field.

Closing.


--- End Message ---

reply via email to

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