Cannot treat curly braces upright

Issue #8 resolved
Liam Huang
created an issue

Hi there,

From the documentation, I noticed that by using \AddEmph{\{}{\}} on could treat curly braces upright. However, after giving a try, the braces remain sloped.

Could you please check this and help me?

MWE:

\documentclass{article}
\usepackage{embrac}
\begin{document}
\AddEmph{\{}[-.04em]{\}}[,-.15em]

\textit{\{[(italic)]\}}

\textsl{\{[(slant)]\}}

\emph{\{[(emphasis)]\}}
\end{document}

Environment: OS X 10.11.6, MacTeX 2017 with all packages updated.

Screenshot: screenshot.png

Comments (6)

  1. Clemens Niederberger repo owner

    That's not what I get:

    embrac.png

    But actually I don't see that embrac has a chance to do anything when using the Computer Modern Font:

    \documentclass{article}
    \begin{document}
    
    \{\} \textit{\{\}} \textup{\{\}}
    
    \end{document}
    

    braces.png

  2. Liam Huang reporter

    Thanks Clemems, thank you for the reply.

    However, both of my computer, OS X and Windows 7 yield the same problem.

    I'll trace it again later, and do you have any suggestions for trouble shooting?

  3. Liam Huang reporter

    Oh, maybe I get the point.

    \documentclass{article}
    \begin{document}
    
    \{\} \textit{\{\}} \textup{\{\}}
    
    \end{document}
    

    For this snippet of code, pdfLaTeX gives the result as you posted, while XeLaTeX makes curly braces inside \textit sloped. And my codes are compiled under XeLaTeX.

    Would you like to reproduce this?

  4. Log in to comment