Text this: Optimal Control of Distributed Systems with Conjugation Conditions