Skip to content

Improve fragile macro support (textcase.sty) #932

Description

@Grief

When textcase.sty is included with --includestyles option, conversion fails with the following errors:

Error:expected:{ Expected <general text> here
	at textcase.sty; line 49 col 59
	Next token is T_OTHER[1]
	In Core::Definition::Expandable[\upperca... from TeX.pool.ltxml line 2097
	 <= Core::Gullet[@0x55e35ac94910] <= Core::Definition::Primitive[\edef Ski... <= Core::Stomach[@0x55e35a917868] <= ...

Fatal:misdefined:\MakeTextUppercase Expansion of '\MakeTextUppercase' has unbalanced {}
	at textcase.sty; line 49 col 59
	Expansion is \begingroup\def\i{I}\def\j{J}\def\({$}\let\)\(\def#1{\NoCaseChange{#1}}
	\def\label#1{\label{#1}}\def\ref#1{\ref{#1}}\def\protect\@ensuremath#1{\protect\@ensuremath{#1}}\def\@@cite[cite]{[\@@bibref{Refnum}{#}{}{}]}1#{\toks@{\cite#1}\@citex}\def\@citex#1{{#1}}\def\reserved@a#1#2{\let#1#2\reserved@a}\reserved@a\oe\OE\o\O\ae\AE\dh\DH\dj\DJ\l\L\ng\NG\ss\SS\th\TH\reserved@b{\reserved@b\let\@@protect\protect\let\protect\@unexpandable@protect\afterassignment\let\protect\@@protect\edef\reserved@a{\endgroup\@skipmath#1$\valign$}\reserved@a
	In Core::Definition::Primitive[\edef Ski... from TeX.pool.ltxml line 1142
	 <= Core::Stomach[@0x55e35a917868] <= Core::Gullet[@0x55e35ac94910] <= Core::Definition::Constructor[\Requir... <= Core::Stomach[@0x55e35a917868] <= Core::Gullet[@0x55e35ac94910] <= Core::Definition::Constructor[\docume... <= Core::Stomach[@0x55e35a917868]
1 error; 1 fatal error

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions