From: Joost Kremers <joostkremers@fastmail.fm>
To: emacs-devel@gnu.org
Subject: BibTeX issues
Date: Tue, 27 Aug 2019 10:40:04 +0200 [thread overview]
Message-ID: <87mufv2e9s.fsf@uni-bielefeld.de> (raw)
Hi all,
I'm running into some issues with bibtex.el (specifically
`bibtex-generate-autokey`), but before I report them as bugs, I
wanted to ask about them here first, mainly because I'm not sure
whether to report them as one single bug or as separate bugs.
First, `bibtex-generate-autokey` does not strip accents from
characters when creating a key. So if you have an author
`Fernández`, the key will contain the á. This is not a problem if
you use XeLaTeX or LuaLaTeX as LaTeX engine, but it is if you use
pdflatex.
I know that stripping accents is more easily said than done, so
perhaps this is not really a bug at all but intended behaviour,
which I would understand.
The other issues seem to be real problems though:
First, the date field does not seem to be recognised at all. In
biblatex, the date field replaces the year field, in that it is
considered the preferred way of providing the year of publication
for an entry. However, even with `bibtex-dialect` set to
`biblatex`, only the year field is considered for the year part of
the autogenerated key.
Second, it isn't clear to me how `bibtex-generate-autokey` handles
macros in titles, specifically \emph. For example, the following
two entries seem to be handled differently. First:
@InCollection{arévalo13:_pa_marion,
chapter = 2,
pages = {49--86},
subtitle = {La Cumbiamba Eneyé Returns to San Jacinto},
crossref = {fernández13:_cumbia},
title = {\emph{¿Pa' dónde vas Marioneta? ¿Pa' dónde va la
gaita?}},
author = {Arévalo Mateus, Jorge and Martín Vejarano}
}
Here, `bibtex-generate-autokey` does seem to read the contents of
\emph, since the autogenerated key contains "pa_marion", which is
taken from the title. But consider the following entry:
@InCollection{alarcón13,
year = 2013,
crossref = {fernández13:_cumbia},
pages = {213--225},
chapter = 9,
title = {\emph{Feliz}, \emph{feliz}},
author = {Cristian Alarcón}
}
Here, the autogenerated key does not contain any title part.
Reducing the two \emph's to one does not change it, but deleting
it (so that the title is just {Feliz, feliz}), does. Then the
autogenerated key is "alarcón13:_feliz".
Last, but certainly not least, doing `bibtex-clean-entry` in an
entry with a valid `crossref' field doesn't seem to work. Instead,
I get the following error:
bibtex-format-entry: Alternative mandatory field ‘(date year)’ is
missing
Obviously, I made sure the cross-referenced entry does have a year
field.
I've included the file test.bib below. Note that the first three
entries cross-reference the fourth entry, but they contain a year
field nonetheless, because, as just mentioned,
`bibtex-cleanup-entry' won't work without it.
All this was tested on Emacs 26.1.91 with `emacs -Q'.
Thank for any comments, suggestions,
Joost
========================================
@InCollection{damico13:_cumbia_music_colom,
year = 2013,
chapter = 1,
subtitle = {Origins, Transformations, and Evolution of a
Coastal
Music Genre},
pages = {29--48},
crossref = {fernández13:_cumbia},
title = {Cumbia Music in Colombia},
author = {Leonardo D'Amico}
}
@InCollection{arévalo13:_pa_marion,
chapter = 2,
pages = {49--86},
subtitle = {La Cumbiamba Eneyé Returns to San Jacinto},
crossref = {fernández13:_cumbia},
title = {\emph{¿Pa' dónde vas Marioneta? ¿Pa' dónde va la
gaita?}},
author = {Arévalo Mateus, Jorge and Martín Vejarano}
}
@InCollection{alarcón13,
year = 2013,
crossref = {fernández13:_cumbia},
pages = {213--225},
chapter = 9,
title = {\emph{Feliz}, \emph{feliz}},
author = {Cristian Alarcón}
}
@Collection{fernández13:_cumbia,
editor = {Fernández L'Hoeste, Héctor and Pablo Vila},
title = {Cumbia!},
year = 2013,
subtitle = {scenes of a migrant Latin American music genre},
publisher = {Duke University Press},
location = {Durham},
isbn = {978-0-8223-5433-8},
pagetotal = 312
}
@Comment Local Variables:
@Comment bibtex-dialect: biblatex
@Comment End:
========================================
--
Joost Kremers
Life has its moments
next reply other threads:[~2019-08-27 8:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-27 8:40 Joost Kremers [this message]
2019-08-28 17:45 ` BibTeX issues Roland Winkler
2019-08-28 18:45 ` Eli Zaretskii
2019-08-29 3:26 ` strip accents and sorting [was: BibTeX issues] Roland Winkler
2019-08-29 6:15 ` martin rudalics
2019-08-30 16:27 ` Roland Winkler
2019-08-30 17:51 ` Eli Zaretskii
2019-08-30 18:38 ` Eli Zaretskii
2019-08-30 19:09 ` Roland Winkler
2019-08-30 19:19 ` Eli Zaretskii
2019-08-30 19:49 ` Roland Winkler
2019-08-31 6:45 ` Eli Zaretskii
2019-08-29 7:10 ` Eli Zaretskii
2019-08-30 16:29 ` Roland Winkler
2019-08-29 7:49 ` BibTeX issues Joost Kremers
2019-08-30 19:18 ` Roland Winkler
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mufv2e9s.fsf@uni-bielefeld.de \
--to=joostkremers@fastmail.fm \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.