TransWikia.com

Trouble with xcoffins in TL2020

TeX - LaTeX Asked by cfr on December 14, 2020

Consider the following MWE:

documentclass[11pt,a4paper]{article}
usepackage{xcoffins}
NewCoffinlcoffin
NewCoffinfcoffin
parindent=0pt
begin{document}
fbox{parbox{.25textwidth}{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}}}

SetVerticalCoffinlcoffin{.25textwidth}{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}}%
SetVerticalCoffinfcoffin{.48textwidth}{centering [a]par}%
JoinCoffinslcoffin[r,vc]fcoffin[l,vc](.02textwidth,0pt)%
TypesetCoffinlcoffin[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}    

With pdflatex from TL 2019, the result is as expected:

2019 output

With pdflatex from TL 2020, the result is rather different:

2020 output

The documentation for xcoffins indicates an update in October, but there’s no list of changes/revisions and I can’t see anything obviously different in the definition for vertical coffins.

Is this a bug or user error? If the latter, what’s the mistake?

One Answer

This is a bug we will push out an update but as a workaround you can set linewidth to the right value

SetVerticalCoffinlcoffin{.25textwidth}{linewidth=hsizebegin{enumerate}

The difference in behaviour is hard to spot in the diffs or changelog as it is due to expl3 being loaded earlier in 2020 which had an unintended effect here as it is loaded before linewidth is defined which caused it to use a definition intended for plain tex that doesn't set linewidth.....

Correct answer by David Carlisle on December 14, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP