arXiv / html_feedback

Supports a student project developing a UI for feedback on arXiv articles rendered as html.
MIT License
18 stars 3 forks source link

Configuring Biblatex gives error #2451

Open ankitp94 opened 1 month ago

ankitp94 commented 1 month ago

Description

Configuring biblatex in the Latex code seems break the html preview. The error message on the html version is the following

\addbibresource

ref.bib \DefineBibliographyStringsenglish backrefpage = , backrefpages = , \DeclareFieldFormatbracketswithperiod\mkbibbrackets#1 \renewbibmacro*pageref

The relevant code in Tex is the following:

\usepackage[
backend=biber,
style=alphabetic,
maxbibnames=15,
maxalphanames=10,
minalphanames=6,
doi=false,
isbn=false,
url=true,
eprint=false,
backref=true,
]{biblatex}
\addbibresource{ref.bib}

\DefineBibliographyStrings{english}{
  backrefpage  = {},
  backrefpages = {},
}

\renewcommand*{\bibpagerefpunct}{%
  \finentrypunct\space}

\DeclareFieldFormat{bracketswithperiod}{\mkbibbrackets{#1}}

\renewbibmacro*{pageref}{%
  \iflistundef{pageref}
    {}
    {\printtext[bracketswithperiod]{%
       \ifnumgreater{\value{pageref}}{1}
         {\bibstring{backrefpages}}
         {\bibstring{backrefpage}}%
       \printlist[pageref][-\value{listtotal}]{pageref}}%
     \renewcommand*{\finentrypunct}{}}
 }

\renewbibmacro{in:}{}
\AtEveryBibitem{\clearfield{pages}} 

The link to the arxiv paper is https://arxiv.org/html/2410.17230v1.

(Optional:) Please add any files, screenshots, or other information here.

No response

(Required) What is this issue most closely related to? Select one.

References

Internal issue ID

e811cd77-91c9-4284-9363-2b7024c55b65

Paper URL

https://arxiv.org/html/2410.17230v1

Browser

Chrome/129.0.0.0

Device Type

Desktop

github-actions[bot] commented 1 month ago

Hello @ankitp94, thanks for the issue report! We are reviewing your report and will address it as soon as possible.