I'd like to make all my math blue. So far I only use the $, equation and align environment, so it'd we nice it it worked for those. If it works for others, that'd be even greater.
\documentclass{article}
\usepackage{amsmath}
\usepackage{xcolor}
\everymath{\color{blue}}
\everydisplay{\color{blue}}
\begin{document}
Let $\vec{v}$ be some vector. A fancy one.
\begin{align}
\vec{v} = \vec{a} \\
&= + \vec{b}
\end{align}
\begin{equation}
\vec{v} = \vec{a} + \vec{b}
\end{equation}
\end{document}
I get
untitled.tex|14 error| Improper \halign inside $$'s
I know I could just write my own environments but I really would love to just tell it: Make everything blue no matter what.


font-specorunicode-math, so not a pdflatex solution. You only want specified environments to apply blue text/maths, elsewhere is unchanged, is that correct? Some solution sets will be engine-specific. – Cicada Jul 14 '21 at 16:00\everymath. Rather, it's that XeLaTeX and LuaLaTeX -- more precisely, thefontspecpackage which runs only under XeLaTeX or LuaLaTeX -- offer a solution that isn't available under pdfLaTeX. To wit, if theunicode-mathpackage (which loadsfontspecautomatically) is loaded, then the optionColor=0000FFwhile executing\setmathfontwill render all inline math and display math material in blue; no need for\everydisplay. – Mico Jul 14 '21 at 16:42