Or change the setup of unnumbered chapter titles...
Add a forced blank before there.


Von: Maier, Denis Christian (UB)
Gesendet: Sonntag, 8. Mai 2022 09:24:51
An: mailing list for ConTeXt users
Cc: Joel
Betreff: AW: [NTG-context] How to place "Content" and other chapter-level 
titles the same vertical distance from the top?

Maybe define your own chapter command and use a vbox.
Look at this example from the wiki:

  {\vbox to 4cm\bgroup
     {#1\hskip.75em #2}
\setuphead[chapter][header=nomarking, command=\MyChapterCommand]
\chapter{test} \input tufte

That's not exactly what you want, but you can adapt it.

Von: ntg-context <ntg-context-boun...@ntg.nl> im Auftrag von Joel via 
ntg-context <ntg-context@ntg.nl>
Gesendet: Sonntag, 8. Mai 2022 04:49:32
An: ntg-context@ntg.nl
Cc: Joel
Betreff: [NTG-context] How to place "Content" and other chapter-level titles 
the same vertical distance from the top?

I created a chapter title style with a large number telling the chapter number, 
and below it the title of the chapter.

It looks like this:

        1               <--really big chapter number
=========== <-- there is a border created by a background image between these
    How to keep  <--chapter title

This is the article <-- the article begins
about how to keep





        \input knuth

        \input knuth


The problem I'm facing, is anytime a chapter title is called, such as "Content" 
in complete content, or something in the appendix, such as one of the indexes, 
no number is printed above, so the vertical distance from the top of the page 
to the top of the chapter title changes. I need these to be consistent, as 
there is a background image, with vertical lines.

Basically, if I call \chapter{}, it appears perfectly aligned vertically on the 
page, with no other settings. But when calling \completecontent or a similar 
title that won't get a number, because the number isn't placed, it is 
vertically higher on the page, but I need it to be printed the same height, as 
it it had an invisible number.

I've tried adding strut (the code has it in two places), but don't know if I've 
used it appropriately, and it didn't solve the problem.

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

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

Reply via email to