2

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.

enter image description here

While same code seems working fine in overleaf.com documents:

enter image description here

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
 ***********
  • I can confirm the issue. Just for completeness please add \listfiles in your preamble and post the output. – campa Feb 20 '21 at 16:04
  • @campa edited the question with the output from \listfiles – LustForLove Feb 20 '21 at 16:15
  • You should contact the package author, it was broken with the update at the end of 2019. It fails also on Overleaf in new projects (which use texlive 2020) It also fails in a fully updated texlive 2019, but if you use a texlive 2019 project on overleaf you do get the previous version and it works as overleaf is using an early texlive 2019 release. – David Carlisle Feb 20 '21 at 16:17
  • 2
    The last embrac version 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 in expl3 so 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
  • 1
    @campa ah. yes. I'd better divert the blame then... – David Carlisle Feb 20 '21 at 16:19
  • 1
    see https://tex.stackexchange.com/a/554746/2388 – Ulrike Fischer Feb 20 '21 at 16:26
  • 3
    I added now an issue at embrac: https://github.com/cgnieder/embrac/issues/13 – Ulrike Fischer Feb 20 '21 at 16:33
  • @UlrikeFischer thanks, I guess for now I can use redefinition from the issue ! Hopefully it gets fixed soon though. – LustForLove Feb 20 '21 at 16:37
  • The bug should've been fixed; the updated version should be available soon (it might take a while before the distributions sweep CTAN fur updates). – campa Feb 20 '21 at 19:56

0 Answers0