[NTG-context] framedtext is (still) broken in LMTX

Rik Kabel ConTeXt at rik.users.panix.com
Mon Nov 30 18:15:40 CET 2020

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]
    \setlayer         [HRule]
    %setupframedtext  [offset=0pt]
    \definelayer      [VRule]
    \setlayer         [VRule]
    \setupbackgrounds [text]
    \setupframedtext  [offset=0pt]
    \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
    \framedtext[width=fit]{{\tt fit} width for \tex{framedtext} now


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201130/a35ce26d/attachment.htm>

More information about the ntg-context mailing list