Text this: Duality models for some nonclassical problems in the calculus of variations