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