I need create a new math symbol a q with a bar just like command \hbar (h with a bar)
Thanks for your help, this is an example
\documentclass[]{article}
\usepackage{polyglossia}
\setmainlanguage{spanish}
\usepackage[dvipsnames,svgnames,x11names,]{xcolor}
\usepackage{graphicx}
\usepackage{amsmath,mathtools,calculator}
\usepackage{commath}
\usepackage{xfrac}
\usepackage{fancybox}
\usepackage{multicol}
\usepackage{nicefrac}% UNIDADES SI
\usepackage{units}% UNIDADES SI
\usepackage{pgf,tikz,tikz-3dplot}
\usepackage{pgfplots}
\usepackage[american]{circuitikz}
\usetikzlibrary{arrows,patterns}
\usetikzlibrary{decorations.text,bending}
\usepgfplotslibrary{fillbetween}
\usepgfplotslibrary{groupplots,polar} %
\usepgflibrary{arrows.meta}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{decorations.text}
\usepgfplotslibrary{fillbetween}
\usepgfplotslibrary{groupplots,polar}
\usepackage{cancel}
\usepackage{wasysym}
\usepackage{txfonts}
\usepackage{smartdiagram}
\usepackage{siunitx}
\usepackage{fourier} % math font
\usepackage{fontspec}
%\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Arial}
\begin{document}
This is the document
$\left(x+a\right)^2$, I need a $q$ command with bar
\end{document}


lambdawithq. You might want to further fine tune the height to suitq. – AboAmmar Oct 11 '20 at 01:08commath; I don't see howunitshelps as you're loadingsiunitx. Your preamble is full of contradictory calls: whytxfontsif you're later loadingfourier? And are you sure thatfouriermath fonts are compatible with Arial as the main text font? – egreg Oct 14 '20 at 21:47