From: Rik Kabel <ConTeXt@rik.users.panix.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: framedtext is (still) broken in LMTX
Date: Mon, 30 Nov 2020 12:15:40 -0500 [thread overview]
Message-ID: <639fc8d9-2a54-d326-f8de-22e08badd978@rik.users.panix.com> (raw)
In-Reply-To: <f43cf76f-bb78-29f2-bc9c-4b681e25955f@xs4all.nl>
[-- Attachment #1.1: Type: text/plain, Size: 2146 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 3217 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2020-11-30 17:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-29 21:33 Rik Kabel
2020-11-29 22:15 ` Hans Hagen
2020-11-30 17:15 ` Rik Kabel [this message]
2020-11-30 20:05 ` Wolfgang Schuster
2020-11-30 21:10 ` Rik Kabel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=639fc8d9-2a54-d326-f8de-22e08badd978@rik.users.panix.com \
--to=context@rik.users.panix.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).