How do you change the document font in LaTeX?

nickf picture nickf · May 18, 2009 · Viewed 372.4k times · Source

How do you change the font for the whole document to sans-serif (or anything else)?

Answer

nickf picture nickf · May 18, 2009

I found the solution thanks to the link in Vincent's answer.

 \renewcommand{\familydefault}{\sfdefault}

This changes the default font family to sans-serif.