From: Alex Leray via ntg-context <ntg-context@ntg.nl>
To: Alex Leray via ntg-context <ntg-context@ntg.nl>
Cc: Alex Leray <alexandre@stdin.fr>
Subject: Chapter number and titles in separate lines with grid layout
Date: Wed, 15 Feb 2023 14:44:52 +0100 [thread overview]
Message-ID: <2738434a-0a2d-b4ec-373d-d994e0813b46@stdin.fr> (raw)
Hello again,
I'm having another issue: I'd like Chapter/Section number and titles in
separate lines but with grid alignement. I followed that advice:
https://wiki.contextgarden.net/Titles#Chapter_number_and_titles_in_separate_lines
I'm having an issue though: I can't get rid of the space above the
(framed) title and align the section number with the first line (it's on
the second line)
Any idea? Many thanks.
###
\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
###
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2023-02-15 13:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-15 13:44 Alex Leray via ntg-context [this message]
2023-02-15 18:10 ` Rik Kabel via ntg-context
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=2738434a-0a2d-b4ec-373d-d994e0813b46@stdin.fr \
--to=ntg-context@ntg.nl \
--cc=alexandre@stdin.fr \
/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).