Skip to content

Commit

Permalink
Simplify pageseq option definition
Browse files Browse the repository at this point in the history
Also add warning on invalid value
  • Loading branch information
jspitz committed Nov 3, 2024
1 parent b660bd5 commit f992ac3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tex/latex/biblatex/biblatex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -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.}}}%
}%
}%
}
Expand Down

0 comments on commit f992ac3

Please sign in to comment.