Text this: Optimal control via nonsmooth analysis /