3

When writing a biblatex style, Is there a way to prepopulate fields for some entries?

More specifically, the bookpagination field. The norms I have to follow require that I use "sheets" for theses, so I declared sheet and sheets bibliography strings and it works great. But it would be even better to have thesis entries use sheet for the bookpagination automatically if the user didn't fill in that field. Is there a way to do that?

4

Biber's sourcemapping is probably the easiest way. With \pertype it can even be restricted to certain types only, with overwrite=false we make sure that existing contents are not overwritten.

\DeclareSourcemap{
  \maps[datatype=bibtex]{
    \map[overwrite=false]{
      \pertype{thesis}
      \step[fieldset=pagination, fieldvalue={sheet}]
    }
  }
}
0

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.