Relations between text and mathematics across disciplines