Skip to main content

How to use custom styles in LaTeX

How to use custom styles with LateX.

In general, you need to compile your .tex with XeLaTeX or LuaLaTeX. I prefer XeLaTeX because it seems to get the font weight correct when using Segoe UI.

Custom Fonts#

How to use custom fonts in LaTeX.

\usepackage{fontspec}
\setmainfont{SegoeUI}

Custom Colors#

How to use custom colors in LaTeX.

\usepackage{xcolor}
\definecolor{StandardNotesBlue}{HTML}{086DD6}
\definecolor{GitHubBlue}{HTML}{0366d6}

Custom Colors for Links#

How to use custom colors for your hyperlinks in LaTeX.

\usepackage{xcolor}
\definecolor{StandardNotesBlue}{HTML}{086DD6}
\definecolor{GitHubBlue}{HTML}{0366d6}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
urlcolor=GitHubBlue,
}
Last updated on