Problem with parentheses and mathastext

bracketsfouriermathastext

I'll motivate my problem quickly: I make flashcards on my computer using latex, and am in need of certain formatting for this. I've wanted a. computer-readable unified look, which uses non-slanted symbols (so no italic) and preferably has a bold version of all special symbols (greek symbols, the reals and rationals, etc..). I use pdflatex for compiling.

One thing which seemed to accomplish this was \usepackage[upright]{fourier} and \usepackage{mathastext}. This gives me upright greek symbols, no italic in my math-environment, and a font bolder than cm (thus nicer to read on a screen). However this doesn't work with \left and \right when using parentheses. One such example is given:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[upright]{fourier}
\usepackage{mathastext}
\begin{document}
$\left(\int \frac{1}{x^2+12}dx\right)$
\end{document}

enter image description here

Forgive me if I'm being ignorant. I'm new to this forum, so any help is appreciated:)
Any comments on alternatives to the upright fourier font or ways to write upright in math-environments, that seem applicable for my use case, is very welcome.

Best Answer

enter image description here

you can restore the delcode of ()

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[upright]{fourier}
\edef\tmp{\delcode`(\the\delcode`(\relax\delcode`)\the\delcode`)\relax}
\usepackage{mathastext}
\tmp

\begin{document}
$\left(\int \frac{1}{x^2+12}dx\right)$
\end{document}
Related Question