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

"item" patch + \bgroup -> "Use of \MT@prot@group doesn't match its definition." #10

Closed
urrameu opened this issue Feb 24, 2022 · 4 comments
Assignees
Labels
bug Something isn't working fixed in dev Fixed in the dev branch

Comments

@urrameu
Copy link

urrameu commented Feb 24, 2022

Description

The patches to "item" apparently cause problems if the item text starts with a \bgroup, resulting in the error "Use of \MT@prot@group doesn't match its definition." This affects pdflatex, xelatex, and lualatex.

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{microtype}
\begin{document}
\begin{itemize}
\item \bgroup Hi there!\egroup
\end{itemize}
\end{document}

As a workaround, if there is something before \bgroup (for example, \null), things work ok. Another workaround is to use \begingroup instead of \bgroup.

@schlcht
Copy link
Owner

schlcht commented Feb 25, 2022

An even simpler workaround would be to just use braces ... but of course I agree that this is a bug that needs to be fixed

@schlcht schlcht added the bug Something isn't working label Feb 25, 2022
@schlcht
Copy link
Owner

schlcht commented Feb 26, 2022

Could you try with

\def\MT@prot@group{\bgroup\afterassignment\MT@prot@get@firstchar\let\MT@temp= }

@urrameu
Copy link
Author

urrameu commented Feb 28, 2022

Could you try with

\def\MT@prot@group{\bgroup\afterassignment\MT@prot@get@firstchar\let\MT@temp= }

WorksForMe(TM) :)

However, I will create another related issue that is not solved by this :-/ .

@schlcht
Copy link
Owner

schlcht commented Feb 28, 2022

Thanks for the confirmation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in dev Fixed in the dev branch
Projects
None yet
Development

No branches or pull requests

2 participants