Motivated by the formula of partial integration, we introduce the concept of [Formula: see text]-Rota–Baxter algebras, which generalizes the Rota–Baxter algebras introduced by Baxter. We then construct free objects in the category of [Formula: see text]-Rota–Baxter algebras, via a method of Gröbner–Shirshov bases.