Add :tex dependency if building with docs.