sasozivanovic / memoize

A cross-format package for externalization of graphics and memoization of compilation results in general
LaTeX Project Public License v1.3c
16 stars 3 forks source link

Error if cited bib entry includes verbatim field (e.g. url or file) even if nothing is memoized #13

Closed cfr42 closed 7 months ago

cfr42 commented 8 months ago

Minimal Non-Working Example:

\documentclass{article}
\usepackage{memoize}
\mmzset{prefix=memos/}
\usepackage{biblatex}
\bibliography{biblatex-examples}
\begin{document}
  \cite{padhye}
\end{document}

Compilation sequence:

TEXMFHOME=/d pdflatex <filename>
TEXMFHOME=/d biber <filename>
TEXMFHOME=/d pdflatex <filename>

Compilation fails with the error

! Use of \blx@bbl@verbadd@i doesn't match its definition.
<argument> ...d {dateera}{ce} \verb {file} \verb f
                                                  tp://gaia.cs.umass.edu/pub...
l.69     \endentry

? 

Similarly,

\documentclass{article}
\usepackage{memoize}
\mmzset{prefix=memos/}
\usepackage{biblatex}
\bibliography{biblatex-examples}
\begin{document}
  \cite{markey}
\end{document}

yields

! Use of \blx@bbl@verbadd@i doesn't match its definition.
<argument> ...ldateera}{ce} \verb {urlraw} \verb h
                                                  ttp://mirror.ctan.org/info...
l.60     \endentry

? 

I'm assuming any field requiring verbatim handling will produce a similar error.

[I'm really sorry; you must be cursing me for ever mentioning Biblatex.]

sasozivanovic commented 7 months ago

Entries in .bbl files are now (424aaf7) read verbatim. Can you please test whether this works for you as well?

Thanks for reporting this, and sorry for the late response!

cfr42 commented 7 months ago

Very minimal testing suggests this now works - and so does automemoising \citelist, \citefield et al. Thanks!

Off-topic: I can't compile everything from your source, but I'm not sure this isn't due to my unfamiliarity with git, make etc. It looks like trying to compile the documentation fails. If you want me to file a bug, let me know.

sasozivanovic commented 7 months ago

Happy it works! Incidentally, I realized there's also \volcite and friends. For the sake of completeness, I'll make those work as well.

Yeah, compiling the docs has a couple of issues, I'll work on that at some point, no need to file a bug report.