ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Jeroen <contextntg@gmail.com>
Subject: [NTG-context] Re: Adjusted Chapter Headings
Date: Tue, 19 Mar 2024 20:09:14 +0100	[thread overview]
Message-ID: <729fd6b3-c694-3d93-997e-35f5e6f6e095@gmail.com> (raw)
In-Reply-To: <CAPtmdbMJcPpY3sPYkRDeTYnFqPEVa=9TBgsKXNj+7g0=uwHeRw@mail.gmail.com>

Jeroen schrieb am 19.03.2024 um 12:59:
> I have some style adjustments for the chapters. The chapter "numbers" 
> need to be Boek I, Boek II, etc. A vertical separator was introduced 
> with an inframe. The chapter title at the right side does not vertically 
> align properly with the chapter number in the frame (inside the frame is 
> vertically centered, the title not). Is there a way to align the chapter 
> title with the chapter number?
> 
> 
> 
> \starttexdefinition MyNumberChapterCommand #1
>      \inframed[frame=off,rightframe=on,framecolor=black,
>       rulethickness=1px,height=30pt]{#1\enspace}
> \stoptexdefinition
> 
> \setuphead[chapter][style={\bfc},numbercommand=\MyNumberChapterCommand,
>      page=no]

\define[2]\MyNumberChapterCommand
   {#1\space\blackrule[width=1pt,height=22pt,depth=8pt]\space#2}

\setuphead
   [chapter]
   [   page=no,
    command=\MyNumberChapterCommand,
      style=\bfc]

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2024-03-19 19:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19 11:59 [NTG-context] " Jeroen
2024-03-19 14:45 ` [NTG-context] " Hraban Ramm
2024-03-19 18:51   ` Jeroen
2024-03-19 19:09 ` Wolfgang Schuster [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=729fd6b3-c694-3d93-997e-35f5e6f6e095@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=contextntg@gmail.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).