From f992ac3a2831e608caa47e0cd00f1ba816c65c9a Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 3 Nov 2024 08:07:01 +0100 Subject: [PATCH] Simplify pageseq option definition Also add warning on invalid value --- tex/latex/biblatex/biblatex.sty | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tex/latex/biblatex/biblatex.sty b/tex/latex/biblatex/biblatex.sty index 2a88b29d..c9cece59 100644 --- a/tex/latex/biblatex/biblatex.sty +++ b/tex/latex/biblatex/biblatex.sty @@ -15165,13 +15165,16 @@ \def\blx@minxrefs{2} \DeclareBibliographyOption[string]{pageseq}{% + \togglefalse{blx@seq}\togglefalse{blx@allsq}\togglefalse{blx@twosq}% \ifstrequal{#1}{all+} - {\toggletrue{blx@seq}\toggletrue{blx@allsq}\togglefalse{blx@twosq}}% all+ + {\toggletrue{blx@seq}\toggletrue{blx@allsq}}% all+ {\ifstrequal{#1}{three+} - {\toggletrue{blx@seq}\togglefalse{blx@allsq}\togglefalse{blx@twosq}}% three+ + {\toggletrue{blx@seq}}% three+ {\ifstrequal{#1}{two+} - {\toggletrue{blx@seq}\togglefalse{blx@allsq}\toggletrue{blx@twosq}}% two+ - {\togglefalse{blx@seq}\togglefalse{blx@allsq}\togglefalse{blx@twosq}}% none + {\toggletrue{blx@seq}\toggletrue{blx@twosq}}% two+ + {\ifstrequal{#1}{none}{}{% none + \blx@warning{Invalid pageseq value `#1'\MessageBreak + Falling back to default.}}}% }% }% }