Sfns Font ⇒

% Additional useful packages \usepackage[utf8]{inputenc} \usepackage{microtype} % Better typography \usepackage{geometry} % Page margins \geometry{margin=1in} \usepackage{graphicx} % For figures \usepackage{amsmath, amssymb} % Math \usepackage{enumitem} % Custom lists \usepackage{hyperref} % Clickable links

We can also write matrices: \[ \mathbf{A} = \begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix}. \]

\begin{document}

One key advantage of the \texttt{sfns} package is that it sets both text and math fonts to match. Below is an example of inline mathematics: $E = mc^2$. A displayed equation: \[ \int_{0}^{\infty} e^{-x^2} dx = \frac{\sqrt{\pi}}{2}. \]

\section{Typography and Math}

% !TEX program = xelatex \documentclass[11pt, a4paper]{article}

\subsection*{Acknowledgments} Thanks to the maintainers of the \texttt{sfns} package for enabling easy access to this font in \LaTeX. sfns font

The \texttt{sfns} package is designed for documents that require a contemporary, highly legible sans-serif typeface. San Francisco is the system font on macOS, iOS, and iPadOS, and its use in documents ensures visual consistency with Apple platforms.