# Stix/Stix2 with amsmath/amsfonts: \lvert, \rvert not rendering properly

I'm trying to use the stix2 package, but for some reason it isn't rendering vertical bars (e.g., absolute value, etc.) using \lvert and \rvert correctly.

Using:

\documentclass[letterpaper,12pt]{article}

\usepackage[T1]{fontenc}
\usepackage{stix2}
\usepackage{amsmath,amsfonts}

\begin{document}

Consider the equation
\begin{equation*}
y = \lvert x \rvert
\end{equation*}

\end{document}



gives me this:

I'm using Overleaf if that matters.

• Welcome to TeX.SX! Your document compiles fine for me, both on my computer and on Overleaf. May 9, 2020 at 21:01
• I confirm the good result on my machine. May 9, 2020 at 21:05
• Interesting, thank you both. I'm perplexed, though. Does that mean I have to separately install the font somehow on my computer? I'm afraid I'm new to using anything other than the default CM font in LaTex. May 9, 2020 at 21:13
• Never mind. I solved my problem by loading stix2 package after amsmath/amsfonts May 9, 2020 at 21:27

It seems I just answered my own question. The solution for me was to load the stix2 package after amsmath, as in

\documentclass[letterpaper,12pt]{article}

\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{stix2} %load this *after* amsmath

\begin{document}

Consider the equation
\begin{equation*}
y = \lvert x \rvert
\end{equation*}

\end{document}

• Actually, stix2 already contains the symbols covered by amsfonts. So technically you should only load one of the two. Either stix2 or amsfonts, but not both. May 10, 2020 at 0:13
• Thanks @RuixiZhang. I have removed. May 10, 2020 at 1:14