framedtext is (still) broken in LMTX
With ConTeXt ver: 2020.11.28 13:18 LMTX fmt: 2020.11.29 the *\framedtext* output is consistently *0.8\textwidth*. MkiV gives the expected result. \starttext \framedtext{Fail}\par \framedtext[width=fit]{Fail}\par \framedtext[width=3cm]{Fail}\par \framedtext[width=0.8\textwidth]{Fine by accident}\par \framedtext[width=\textwidth]{Fail}\par \framed{Fine}\par \framed[width=fit]{Fine}\par \framed[width=3cm]{Fine}\par \framed[width=0.8\textwidth]{Fine}\par \framed[width=\textwidth]{Fine}\par \stoptext -- Rik
On 11/29/2020 10:33 PM, Rik Kabel wrote:
With ConTeXt ver: 2020.11.28 13:18 LMTX fmt: 2020.11.29 the *\framedtext* output is consistently *0.8\textwidth*. MkiV gives the expected result.
\starttext \framedtext{Fail}\par \framedtext[width=fit]{Fail}\par \framedtext[width=3cm]{Fail}\par \framedtext[width=0.8\textwidth]{Fine by accident}\par \framedtext[width=\textwidth]{Fail}\par \framed{Fine}\par \framed[width=fit]{Fine}\par \framed[width=3cm]{Fine}\par \framed[width=0.8\textwidth]{Fine}\par \framed[width=\textwidth]{Fine}\par \stoptext fixed in next upload (tomorrow)
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 11/29/2020 17:15, Hans Hagen wrote:
On 11/29/2020 10:33 PM, Rik Kabel wrote:
With ConTeXt ver: 2020.11.28 13:18 LMTX fmt: 2020.11.29 the *\framedtext* output is consistently *0.8\textwidth*. MkiV gives the expected result.
\starttext \framedtext{Fail}\par \framedtext[width=fit]{Fail}\par \framedtext[width=3cm]{Fail}\par \framedtext[width=0.8\textwidth]{Fine by accident}\par \framedtext[width=\textwidth]{Fail}\par \framed{Fine}\par \framed[width=fit]{Fine}\par \framed[width=3cm]{Fine}\par \framed[width=0.8\textwidth]{Fine}\par \framed[width=\textwidth]{Fine}\par \stoptext fixed in next upload (tomorrow)
Sadly, *\framedtext* still appears to have a problem with the default width, although with today's update one can now explicitly set the width. (Nothing I can find in the docs suggests that *\framedtext* has a different default width than *\framed*. Perhaps I missed it.) New overwrought example: \definelayer [HRule] [x=0mm,y=0pt,width=\textwidth,height=\textheight] \setlayer [HRule] [hoffset=0pt,voffset=10em] {\blackrule[color=green,height=1pt,width=10cm]} %setupframedtext [offset=0pt] \definelayer [VRule] [x=0mm,y=0pt,width=\textwidth,height=\textheight] \setlayer [VRule] [hoffset=0.75\textwidth,voffset=0pt] {\blackrule[color=red,height=10em,width=1pt]} \setupbackgrounds [text] [background={HRule,VRule}] \setupframedtext [offset=0pt] \starttext \framed{default width for \tex{framed} is {\tt fit}}\par \framedtext{default width for \tex{framedtext} is not {\tt fit}. It appears to be 0.75\tex{textwidth}}\par \framedtext[width=10cm]{explicit width for \tex{framedtext} now works}\par \framedtext[width=fit]{{\tt fit} width for \tex{framedtext} now works}\par \stoptext -- Rik
Rik Kabel schrieb am 30.11.2020 um 18:15:
On 11/29/2020 17:15, Hans Hagen wrote:
On 11/29/2020 10:33 PM, Rik Kabel wrote:
With ConTeXt ver: 2020.11.28 13:18 LMTX fmt: 2020.11.29 the *\framedtext* output is consistently *0.8\textwidth*. MkiV gives the expected result.
\starttext \framedtext{Fail}\par \framedtext[width=fit]{Fail}\par \framedtext[width=3cm]{Fail}\par \framedtext[width=0.8\textwidth]{Fine by accident}\par \framedtext[width=\textwidth]{Fail}\par \framed{Fine}\par \framed[width=fit]{Fine}\par \framed[width=3cm]{Fine}\par \framed[width=0.8\textwidth]{Fine}\par \framed[width=\textwidth]{Fine}\par \stoptext fixed in next upload (tomorrow)
Sadly, *\framedtext* still appears to have a problem with the default width, although with today's update one can now explicitly set the width. (Nothing I can find in the docs suggests that *\framedtext* has a different default width than *\framed*. Perhaps I missed it.)
There is nothing wrong with framedtext, the command always used a fixed width as default setting. Wolfgang
On 11/30/2020 15:05, Wolfgang Schuster wrote:
Rik Kabel schrieb am 30.11.2020 um 18:15:
On 11/29/2020 17:15, Hans Hagen wrote:
On 11/29/2020 10:33 PM, Rik Kabel wrote:
With ConTeXt ver: 2020.11.28 13:18 LMTX fmt: 2020.11.29 the *\framedtext* output is consistently *0.8\textwidth*. MkiV gives the expected result.
\starttext \framedtext{Fail}\par \framedtext[width=fit]{Fail}\par \framedtext[width=3cm]{Fail}\par \framedtext[width=0.8\textwidth]{Fine by accident}\par \framedtext[width=\textwidth]{Fail}\par \framed{Fine}\par \framed[width=fit]{Fine}\par \framed[width=3cm]{Fine}\par \framed[width=0.8\textwidth]{Fine}\par \framed[width=\textwidth]{Fine}\par \stoptext fixed in next upload (tomorrow)
Sadly, *\framedtext* still appears to have a problem with the default width, although with today's update one can now explicitly set the width. (Nothing I can find in the docs suggests that *\framedtext* has a different default width than *\framed*. Perhaps I missed it.)
There is nothing wrong with framedtext, the command always used a fixed width as default setting.
Wolfgang
Wikified.
participants (3)
-
Hans Hagen
-
Rik Kabel
-
Wolfgang Schuster