microtype icon indicating copy to clipboard operation
microtype copied to clipboard

Failure to compile a document with microtype v3.0e

Open scottkosty opened this issue 2 years ago • 2 comments

Description

I received an error after the new version, when using pdfTeX.

Minimal example demonstrating the issue

The following document compiled successfully before the update of microtype to v3.0e.

\documentclass[english,hebrew]{scrartcl}
\usepackage[HE8,T1]{fontenc}
\usepackage[latin9,cp1255]{inputenc}
\usepackage{microtype}

\makeatletter
\providecommand{\l@chapter}{\relax}
\makeatother
\usepackage{babel}
\begin{document}
\title{}\maketitle

\end{document}

Here is my log with the error: bad.log

Unfortunately, I don't know much about LaTeX, Hebrew, or microtype :). This is not a document I wrote. I am just running a bunch of tests after tlmgr update and this one happened to fail. If the document was compiling just by luck before the microtype update, no problem if you want to close this as "wontfix".

Thanks for all of your work on microtype!

scottkosty avatar Jun 25 '22 01:06 scottkosty

Hm, babel-hebrew redefines \everypar in a very bad way (\def\everypar#1{...}), which should also fail in many other cases, so I'm quite tempted to just say "report elsewhere" (however, that package has been last updated in 2005, so it's unsure whether it's even still maintained). I'll check if microtype can do anything about this to at least die gracefully though.

schlcht avatar Jun 26 '22 22:06 schlcht

Thanks for taking the time to take a deep look at it! I don't understand the technical issue at all, but I really appreciate you opening the latex2e report even though this does not seem to be microtype's responsibility.

scottkosty avatar Jun 27 '22 01:06 scottkosty

@schlcht I just tried the minimal example on an updated TeX Live 2023 system and it compiles without error. babel-hebrew seems to have not been updated, and the latex2e issue you opened hasn't had any movement. Any idea if the core issue has been fixed?

scottkosty avatar Apr 04 '23 19:04 scottkosty

what a nice surprise... It seems this has been fixed with version 3.1, albeit inadvertently (I'm not even sure how, I suppose \leftprotrusion has become a bit more careful). Though I still think babel-hebrew's \everypar redefinition is deeply flawed, and the \noindent/\RawNoindent issue also remains to be sorted out, so other problems may be lurking, I'm happy to be able to close this issue at least for now. So thanks for your comment!

schlcht avatar Apr 05 '23 01:04 schlcht

Great, thank you for your careful attention and explanations! Sounds like we should leave #880 open.

scottkosty avatar Apr 05 '23 03:04 scottkosty

yes, that should remain open as it concerns other situations and packages, too.

schlcht avatar Apr 05 '23 23:04 schlcht