ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: Bruce Horrocks via ntg-context <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: A corner case relating to corners!
Date: Sun, 5 Feb 2023 12:48:38 +0100	[thread overview]
Message-ID: <79a7deab-d1e5-d477-df9c-4270ccfc7748@freedom.nl> (raw)
In-Reply-To: <052A2197-C7E4-4921-928D-D0227B995230@scorecrow.com>

On 2/4/2023 1:42 PM, Bruce Horrocks via ntg-context wrote:
> In the Wiki <https://wiki.contextgarden.net/Command/setupframed> the examples for corner styles 00 - 09 no longer work and the single digit values 0 - 9 need to be used instead. (Styles 10 upwards continue to work as per the page.)
> 
> Is this a deliberate change and the Wiki needs to be updated or should the change be reverted for backwards compatibility?
yes and no ... we not handle them as strings (because we have more 
variants) but i can catch it

(i'll send you a test)

% corners-001.tex

\setupbodyfont[dejavu]

\starttext

% corner options (with radius=0pt rectangular):
%
%  0 round ltrb trbl rblt bltr
%  1 2 3 4 5 6 7 8 ltrb
%  9 lbr rbl / 10 tlb blt / 11 ltr rtl / 12 lbr rbl
% 13 rt tr / 14 rb br / 15 bl lb / 16 tl lt
% 32 lr rl / 33 tb bt
% 28 l / 29 r / 30 b / 31 t

\dostepwiserecurse{0}{33}{1}{
     \startTEXpage[offset=1dk]
         \dontleavehmode\ruledhbox{\framed
           [framecolor=red,
            framecorner=#1,
            frameradius=\zeropoint]
           {TEST #1}}
         \ruledhbox{\framed
           [framecolor=red,
            framecorner=#1,
            frameradius=5pt]
           {TEST #1}}
     \stopTEXpage
}

\stoptext


esp the tb and lr ones are more efficient than using the other frame 
methods (off + l/r on)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2023-02-05 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-04 12:42 Bruce Horrocks via ntg-context
2023-02-05 11:48 ` Hans Hagen via ntg-context [this message]

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=79a7deab-d1e5-d477-df9c-4270ccfc7748@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.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).