This MWE
\documentclass{article}
\usepackage{embrac}
\begin{document}
\textit{some $f(x)$ function}
\end{document}
gives me the output below on my two local PCs even after I reinstalled TexLive2020/TexStudio from the scratch on them (Windows 10 user). As we can see it prints some em distances instead of brackets while the package is supposed to print brackets in non-italics inside \textit{} and similar environments.
While same code seems working fine in overleaf.com documents:
I know it is a bit weird to ask people online about what's wrong with my local PCs but maybe somebody knows/can advice/can guess something or check MWE on their windows texlive installations.
So what might be wrong there with math mode and package embrac on my installation ? iircembrac shouldn't even touch math mode which makes this issue even weirder.
Edit adressing @campa comment: with \listfiles enabled log file shows this:
*File List*
article.cls 2019/12/20 v1.4l Standard LaTeX document class
size10.clo 2019/12/20 v1.4l Standard LaTeX file (size option)
embrac.sty 2019/12/31 v0.9 Upright Brackets in Emphasized Text
expl3.sty 2020-08-07 L3 programming layer (loader)
l3backend-pdfmode.def 2020-08-07 L3 backend support: PDF mode
xparse.sty 2020-05-15 L3 Experimental document command parser
xparse-generic.tex
l3keys2e.sty 2020-05-15 LaTeX2e option processing using LaTeX3 keys
***********


\listfilesin your preamble and post the output. – campa Feb 20 '21 at 16:04\listfiles– LustForLove Feb 20 '21 at 16:15embracversion is 2019/12/31, but the LaTeX kernel changed the handling of nested emphasis in the spring 2020 release. I assume something there went wrong. I'm not proficient inexpl3so I have no idea. Clemens is a member of the site and will probably spot this question, otherwise you could open an issue at https://github.com/cgnieder/embrac/issues – campa Feb 20 '21 at 16:18