AV-differential geometry and calculus of variations
  The calculus of variations for lagrangians which are not functions on the tangent bundle, but sections certain affine bundles is developed. We follow a general approach to variational principles which admits boundary terms of variations. 
Katarzyna Grabowska, Pawel Urbanski