ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik Kabel via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Rik Kabel <rik@panix.com>
Subject: Re: Chapter number and titles in separate lines with grid layout
Date: Wed, 15 Feb 2023 13:10:46 -0500	[thread overview]
Message-ID: <90fbb4e2-c3a7-72cd-cc9e-de1dd2b983e0@panix.com> (raw)
In-Reply-To: <2738434a-0a2d-b4ec-373d-d994e0813b46@stdin.fr>


On 2023-02-15 08:44, Alex Leray via ntg-context wrote:
>
> \showframe
> \showlayout
> \showgrid
>
> \setuplayout[
>     grid=yes,
> ]
>
> \define[2]\MySection{\framed[
>     location=keep,
>     frame=on,
>     width=broad,
>     % height=22pt,
>     align=middle
> ]{{#1.\\#2}}}
>
> \setuphead[section][
>     strut=no,
>     conversion=Romannumerals,
>     style={\bf\WORDS},
>     align=middle,
>     command=\MySection,
> ]
>
> \starttext
> \startsection[title={First section}]
> this is the text
> \stopsection
> \stoptext


Have you tried it with \framedtext in the place of \framed ?

-- 
Rik

___________________________________________________________________________________
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-15 18:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-15 13:44 Alex Leray via ntg-context
2023-02-15 18:10 ` Rik Kabel via ntg-context [this message]
2023-02-15 18:11 ` Rik Kabel via ntg-context
2023-02-15 22:19   ` Alex Leray via ntg-context

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=90fbb4e2-c3a7-72cd-cc9e-de1dd2b983e0@panix.com \
    --to=ntg-context@ntg.nl \
    --cc=rik@panix.com \
    /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).