biblatex-chem again

Another day, another biblatex-chem update. I’ve added the ability to only use the first page of a range to all of the styles. Some journals require this, and I’d prefer to keep the total number of styles down with appropriate options. This is such a trivial variation it seems to be the best way to me.

2 thoughts on “biblatex-chem again

  1. I tried stealing your page range solution from biblatex-chem and sticking the following in the preamble:

    DeclareFieldFormat{pages}{bbx@range@to@page{#1}}
    newcommand*bbx@range@to@page[1]{bbx@range@to@page@aux#1bibrangedash@nil}

    defbbx@range@to@page@aux#1bibrangedash#2@nil{#1}

    but I get the following error message:

    ! LaTeX Error: Missing begin{document}.

    See the LaTeX manual or LaTeX Companion for explanation.
    Type H for immediate help.

    l.69 {newcommand*bbx@r
    ange@to@page[1]{bbx@range@to@page@aux#1bibrangedas…

    ?
    ! You can’t use `macro parameter character #’ in horizontal mode.
    l.69 …x@range@to@page[1]{bbx@range@to@page@aux#
    1bibrangedash@nil}

    I don’t really know what I’m doing here, but I wanted to ask whether you had any ideas as to what’s going wrong.

Leave a Reply