Add fix for latexpdf build in docs