Skip to content

Instantly share code, notes, and snippets.

@concHNO3
Created June 13, 2012 10:22
Show Gist options
  • Save concHNO3/2923266 to your computer and use it in GitHub Desktop.
Save concHNO3/2923266 to your computer and use it in GitHub Desktop.
Set Helvetica Font in Text and Math in LaTeX
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Set Helvetica Font in Text and Math in LaTeX %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\familydefault}{\sfdefault}
\usepackage[scaled=1]{helvet}
\usepackage[helvet]{sfmath}
\everymath={\sf}
@GuillermoYanez
Copy link

This gist helped me a lot. I didn't know what I was doing wrong til' I found your code. Thanks!

@soypat
Copy link

soypat commented Apr 2, 2018

Such a dearie. Thanks.

@asalcedo31
Copy link

So helpful! Thank you!!! I was trying to figure out how to install latex fonts to use with font-spec before I found your post.

@Kunkin
Copy link

Kunkin commented May 27, 2018

¡Muchas gracias! ¡¡Me ha servido muchísimo!!

@samueldy
Copy link

+1. Worked for me in Matplotlib+LaTeX. Thanks for sharing!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment