TL2020 中的 xcoffins 问题

TL2020 中的 xcoffins 问题

考虑以下 MWE:

\documentclass[11pt,a4paper]{article}
\usepackage{xcoffins}
\NewCoffin\lcoffin
\NewCoffin\fcoffin
\parindent=0pt
\begin{document}
\fbox{\parbox{.25\textwidth}{\begin{enumerate}\item This is a sentence which needs to be more than one-quarter the width of the text block and preferably wider than the whole width.\end{enumerate}}}

\SetVerticalCoffin\lcoffin{.25\textwidth}{\begin{enumerate}\item This is a sentence which needs to be more than one-quarter the width of the text block and preferably wider than the whole width.\end{enumerate}}%
\SetVerticalCoffin\fcoffin{.48\textwidth}{\centering [a]\par}%
\JoinCoffins\lcoffin[r,vc]\fcoffin[l,vc](.02\textwidth,0pt)%
\TypesetCoffin\lcoffin[T,l]\par%

\begin{enumerate}\item This is a sentence which needs to be more than one-quarter the width of the text block and preferably wider than the whole width.\end{enumerate}
\end{document}    

从 TL 2019来看pdflatex,结果符合预期:

2019年产量

从 TL 2020来看pdflatex,结果截然不同:

2020年产量

文档xcoffins表明十月份会有更新,但没有更改/修订的列表,而且我看不出垂直棺材的定义有什么明显不同。

这是错误还是用户错误?如果是后者,错误是什么?

答案1

这是一个错误,我们将发布更新,但作为解决方法,你可以将其设置\linewidth为正确的值

\SetVerticalCoffin\lcoffin{.25\textwidth}{\linewidth=\hsize\begin{enumerate}

在差异或更改日志中很难发现行为的差异,因为这是由于 expl3 在 2020 年初加载的,这在这里产生了意想不到的影响,因为它是在\linewidth定义之前加载的,这导致它使用了未设置的用于纯文本的定义\linewidth.....

相关内容