Giter Club home page Giter Club logo

Comments (3)

plk avatar plk commented on August 22, 2024

A better way to do this is by using the biber sourcemap feature. Simply always include number in your journal entries and then add this to your preamble:

\DeclareSourcemap{
  \maps[datatype=bibtex]{
    \map{
       \step[fieldsource=journaltitle,
             match=\regexp{(?:journal\stitle\sone|journal\stitle\stwo)}]
       \step[fieldset=number, null]
    }
  }
}

Where "journal title one" and "journal title two" are journals known to paginate across complete volumes. It will remove the number field where it is not necessary before biblatex sees the data. You don't need to care about the field journal as the default biblatex driver sourcemaps automatically convert this to journaltitle anyway.

I will add a note about how to do this in the next release documentation.

from biblatex-apa.

mutlusun avatar mutlusun commented on August 22, 2024

Hello,

thanks for your help and your suggestion! As I copied your example, it removed the number from all journals (regardless of the regex). But this solved my issue:

\DeclareSourcemap{
  \maps[datatype=bibtex]{
    \map{
       \step[fieldsource=journaltitle,
             notmatch=\regexp{(?:The\sAcademy\sof\sManagement\sExecutive|My\sOther\sJournal)},
             final]
       \step[fieldset=number, null]
    }
  }
}

If I got the biblatex manual right, your \step was missing a final argument to jump out of the map directive. Or I missed something else ;-)

Regards
mutlusun

from biblatex-apa.

plk avatar plk commented on August 22, 2024

You are probably right, thanks for checking.

from biblatex-apa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.