Some TeX Developments

Coding in the TeX world

biblatex-chem again

with 2 comments

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.

Written by Joseph Wright

September 18th, 2009 at 6:53 am

Posted in LaTeX,biblatex

Tagged with ,

2 Responses to 'biblatex-chem again'

Subscribe to comments with RSS or TrackBack to '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#1\bibrangedash\@nil}

    \def\bbx@range@to@page@aux#1\bibrangedash#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#1\bibrangedas…

    ?
    ! You can’t use `macro parameter character #’ in horizontal mode.
    l.69 …x@range@to@page[1]{\bbx@range@to@page@aux#
    1\bibrangedash\@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.

    Chris Hanretty

    27 Jan 10 at 12:36 am

  2. Could you e-mail me your entire source: I’ll take a look and locate the issue.

    Joseph Wright

    27 Jan 10 at 6:53 am

Leave a Reply