Text this: Gauge theory and variational principles /