Skip to content

Instantly share code, notes, and snippets.

View jiyometrik's full-sized avatar
💭
ka ti rupne unna ter?

Darren Yap jiyometrik

💭
ka ti rupne unna ter?
View GitHub Profile
@concHNO3
concHNO3 / gist:2923266
Created June 13, 2012 10:22
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}
@jiyometrik
jiyometrik / latex-fonts.tex
Last active April 24, 2022 04:35
a short LaTeX file demonstrating common fonts used when writing in LaTeX and how to apply them.
\documentclass[11pt]{article}
\usepackage{blindtext}
\usepackage[parfill]{parskip}
% baskervaldx
\usepackage[lf]{Baskervaldx} % lining figures
\usepackage[bigdelims,vvarbb]{newtxmath} % math italic letters from Nimbus Roman
\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit
\renewcommand*\oldstylenums[1]{\textosf{#1}}
@jiyometrik
jiyometrik / urw-garamond.org
Last active April 3, 2022 10:33
A guide to installing the URW Garamond / MathDesign font if it isn't included in your LaTeX distribution..

How To Get urw-garamond And mathdesign Working in LaTeX

URW Garamond and MathDesign

Many people adore the Garamond font and its many variations. With that, LaTeX has also introduced its own version, with a complimentary math-mode font, inside the mathdesign package.

The most common way to use it is as follows: