From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109738 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: framedtext is (still) broken in LMTX Date: Mon, 30 Nov 2020 12:15:40 -0500 Message-ID: <639fc8d9-2a54-d326-f8de-22e08badd978@rik.users.panix.com> References: <6781772b-4286-01f6-b39d-72c2d126711f@rik.users.panix.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3051303080061213551==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14399"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.5.0 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 30 18:16:14 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjmma-0003ZN-72 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 30 Nov 2020 18:16:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7F4F21AA855; Mon, 30 Nov 2020 18:15:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nQ2Cn5XKNuuF; Mon, 30 Nov 2020 18:15:47 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9197A1AA849; Mon, 30 Nov 2020 18:15:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 907851AA847 for ; Mon, 30 Nov 2020 18:15:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vmX8cn7aME7X for ; Mon, 30 Nov 2020 18:15:44 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=166.84.1.89; helo=mailbackend.panix.com; envelope-from=context@rik.users.panix.com; receiver= Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id B5EFB1AA2BF for ; Mon, 30 Nov 2020 18:15:44 +0100 (CET) Original-Received: from [192.168.0.13] (cpe-24-194-28-156.nycap.res.rr.com [24.194.28.156]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4ClBhG4j0nz1HBk for ; Mon, 30 Nov 2020 12:15:42 -0500 (EST) In-Reply-To: Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109738 Archived-At: This is a multi-part message in MIME format. --===============3051303080061213551== Content-Type: multipart/alternative; boundary="------------88A7EE44CE5E8D03954B2C63" Content-Language: en-US This is a multi-part message in MIME format. --------------88A7EE44CE5E8D03954B2C63 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------88A7EE44CE5E8D03954B2C63 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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

--------------88A7EE44CE5E8D03954B2C63-- --===============3051303080061213551== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3051303080061213551==--