embrac doesn't apply to source of \dictum{}

Issue #7 wontfix
Anonymous created an issue

Thank you for your wonderful packages and especially their documentation first. I use acro and embrac in all of my documents and I'm looking forward to starting with xsim in the future.

When using the \dictum{} function of KOMA Script, embrac does not apply to the standardly put parentheses in the source of the quote:

\documentclass{scrartcl}
\usepackage{embrac}

\begin{document}
\dictum[William Shakespeare]{To be, or not to be}
\end{document}

"William Shakespeare" is automatically italicised and put in parentheses. Those don't change to upright when loading embrac.

Comments (2)

  1. Clemens Niederberger repo owner

    That is not embrac's fault: the dictum author doesn't use \textit or \emph but instead sets the KOMA font dictumauthor to \itshape. But you can change the KOMA font and the definition of \dictumauthorformat so embrac can do its job:

    \documentclass{scrartcl}
    \usepackage{embrac}
    \renewcommand*\dictumauthorformat[1]{\textit{(#1)}}
    \setkomafont{dictumauthor}{}
    
    \begin{document}
    \dictum[William Shakespeare]{To be, or not to be}
    \end{document}
    
  2. nsemrau

    Ah, yes, after reading chapter 9 of the documentation I already thought that this probably has rather to do with KOMA's peculiarities than an oversight on your end. I just thought a change in embracs codebase could possibly rectify this without manual intervention by the user. But introducing code or documentation for quirks on a per-package basis is definitely too much.

    Thank you for the quick and easy fix. The problem is solved and now my document looks perfect to the microtypographic level in every aspect.

  3. Log in to comment