Pdflatex (not Biber) complains in the howpublished line in the bbl about the hastag sign. It does compile when I delete the hastag, but whats wrong, how to prevent this in the first place?

Illegal parameter number in definition of \NewValue. ...s://tools.ietf.org/html/rfc3168#page-11}}


%   BCOR=20mm
%NOTE Packages, my Macros und Formatdefinitions
\usepackage[english,ngerman]{babel} % Multilingual support -> ctan.org/pkg/babel
\usepackage[T1]{fontenc}            % Allows different font encodings and hyphenation -> ctan.org/pkg/fontenc
\usepackage[utf8]{inputenc}         % Translates input encodings into LaTeX internal language

    \usepackage[                % stuff in case of biber: .bib file, style etc.
        \defbibfilter{papers}{  type=article or type=book}  % Can seperate books/eBooks and links

    This is the mwe \cite{Floyd_undated-cb}

This is the entry:

       given={K\bibnamedelima K},
       given_i={K\bibinitperiod\bibinitdelim K\bibinitperiod}}}%
       given={David\bibnamedelima L},
       given_i={D\bibinitperiod\bibinitdelim L\bibinitperiod}}}%
  \field{title}{The Addition of Explicit Congestion Notification ({ECN}) to {IP}}
  \verb https://tools.ietf.org/html/rfc3168#page-11

Biber version:

Package: biblatex_ 2016/03/03 v3.3 programmable bibliographies (biber) (PK/JW/A
  • Thank you for the edit, please note though that the code is next to useless for us since we don't have you .bib file, so we will still have to type that up ourselves. See here for hints on MWEs for bibliography questions. – moewe May 25 '16 at 16:06
  • 1
    Please post the entry from the bib file, not the one from the bbl file. – Mico May 25 '16 at 16:07
  • 3
    It can't work. The url with the # is in the argument of another command (\field) and so can't change the catcodes. Beside this: You have the same url already in the url field (where it works) so why did you add it to howpublished a second time? – Ulrike Fischer May 25 '16 at 16:08
  • 1
    @AndrewSwann: The url is wrapped in a \url command. See \field{howpublished}{\url{https://tools.ietf.org/html/rfc3168#page-11}} but in biblatex this doesn't help. url's with special chars must go in verbatim fields. – Ulrike Fischer May 25 '16 at 16:11
  • 1
    Your url is in the wrong field: it should be as a url in the .bib file, not in howublished. The url field is handled verbatim, howpublsihed is not. – Joseph Wright May 25 '16 at 16:21

You can't have an unescaped hash sign in non-verbatim fields in your .bib file even if you hide it in a \url command, where normally it does not cause harm.

URLs should best be given in the dedicated url field (which you seem to have done anyway), which can handle evil characters such as # and friends, because it uses a special verbatim mode.

You can then delete the howpublished with Biber's sourcemapping before it causes any harm. We can even try and recover the URL from the howpsublished field if we don't already have a url field.

      \step[fieldsource=howpublished, match=\regexp{\A\\url\{(.+)\}\Z}, final]
      \step[fieldset=url, fieldvalue={$1}]
      \step[fieldset=howpublished, null]

Full MWE


      \step[fieldsource=howpublished, match=\regexp{\A\\url\{(.+)\}\Z}, final]
      \step[fieldset=url, fieldvalue={$1}]
      \step[fieldset=howpublished, null]

  title        = {A Theory on Brontosauruses},
  author       = {Anne Elk},
  howpublished = {\url{https://example.edu/~elk/bronto.html#page11}},
  title        = {A Theory on Triceratops},
  author       = {Anne Elk},
  url          = {https://example.edu/~elk/tric.html#page11},
  howpublished = {\url{https://example.edu/~elk/tric.html#page12}},



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.