On Thursday, July 24th, 2025 at 11:09 PM, Paul Nelson <ultr...@gmail.com> wrote: > > > On Thu, 24 Jul 2025 at 05:50, Kai Bagley <kaibag...@pm.me> wrote: > > > > > When TeX-fold--bib-abbrev-entry-at-point is called from > > TeX-fold--bib-abbrev, it tries to find the "year" field, but biblatex > > appears to prefer the "date" over "year", so Zotero at some point updated > > the file accordingly and stopped the function working (it exits the > > when-let* when year becomes nil). Deleting the bib file and recreating with > > Zotero as a better bibtex file solves the problem completely. > > > > Is there a way to set tex-fold to use biblatex fields? I know there's a > > bibtex-dialect that can be set to biblatex, however > > TeX-fold--bib-abbrev-entry-at-point evaluates specifically (year > > (bibtex-text-in-field "year" entry)). > > > > > Not at the moment, but I assume this should be easy if the formats are > similar enough, although I’m not familiar with biblatex. Could you please > share a working example, eg, small sample tex and bib files? Sure thing, test.bib (biblatex format): @article{fotheringhamMultiscaleGeographicallyWeighted2017, title = {Multiscale {{Geographically Weighted Regression}} ({{MGWR}})}, author = {Fotheringham, A. Stewart and Yang, Wenbai and Kang, Wei}, date = {2017-11-02}, journaltitle = {Annals of the American Association of Geographers}, volume = {107}, number = {6}, pages = {1247--1265}, publisher = {Taylor \& Francis}, issn = {2469-4452}, doi = {10.1080/24694452.2017.1352480}, url = {https://doi.org/10.1080/24694452.2017.1352480}, urldate = {2024-08-19}, abstract = {this is an abstract}, keywords = {coeficientes espacialmente variados,espacialidad no estacionaria,geographically weighted regression,multiescala,multiscale,regresión geográficamente ponderada,spatial nonstationarity,spatially varying coefficients,地理加权迴归,多重尺度,空间变异系数,空间非静止性。} } test.tex: \documentclass[10pt]{article} \usepackage[url=false, isbn=false, eprint=false, backref=false, style=numeric, backend=biber, maxcitenames=2, giveninits=true, maxbibnames=100, uniquename=init]{biblatex} \addbibresource{test.bib} \begin{document} \cite{fotheringhamMultiscaleGeographicallyWeighted2017} \end{document} The above 2 files results in the "[c]" folded cite, instead of the ideal "[FYK17]". All I need to do is change "date" to "year", and shorten the date to just the year, restart emacs, reread the test.tex file into a buffer, and TeX-fold-buffer to get "[FYK17]" _______________________________________________ bug-auctex mailing list bug-auctex@gnu.org https://lists.gnu.org/mailman/listinfo/bug-auctex
bug#79076: 14.1.0; TeX-fold-* folding \cite as "[c]"
Kai Bagley via bug-auctex via Bug reporting list for AUCTeX Thu, 24 Jul 2025 22:46:13 -0700
- bug#79076: 14.... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
- bug#79076... Paul Nelson
- bug#7... Paul Nelson
- b... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
- ... Paul Nelson
- ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
- ... Paul Nelson
- ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
- ... Paul D. Nelson
- ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
- ... Paul D. Nelson
- ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
- ... Paul D. Nelson
- ... Kai Bagley via bug-auctex via Bug reporting list for AUCTeX
- ... Paul D. Nelson