Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\DeclareEmphSequence #2499

Open
xworld21 opened this issue Jan 26, 2025 · 0 comments
Open

\DeclareEmphSequence #2499

xworld21 opened this issue Jan 26, 2025 · 0 comments

Comments

@xworld21
Copy link
Contributor

LaTeX >= 2020-02-02 supports changing the typestting of \emph{} via \DeclareEmphSequence. It's tricky to replicate it in LaTeXML, because the behaviour of emph is hardcoded in (at least) two places:

if ($options{emph}) {
$shape = ($shape eq 'italic' ? 'upright' : 'italic');
$flags |= $FLAG_EMPH; }

beforeDigest => sub {
DefMacroI('\f@shape', undef,
(ToString(Tokens(Expand(T_CS('\f@shape')))) eq 'it' ? 'n' : 'it')); });

I guess this will be automatically resolved by reading latex.ltx raw, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants