From: "\"H. Özoguz\"" <h.oezoguz@mmnetz.de>
To: ntg-context@ntg.nl
Subject: Command only if \testpage is active
Date: Thu, 18 Apr 2013 22:19:25 +0200 [thread overview]
Message-ID: <5170554D.2060805@mmnetz.de> (raw)
> Don’t use such odd values for the spaces before/after the heading which don’t make
> sense when you use the grid. When you have a heading with more text or a bigger font
> size try to change the value for the grid-key in \setuphead.
>
> Wolfgang
Ok, I tried. Best result so far is:
\setuplayout[grid=yes]
\showgrid
\setuphead[subsection]
[before={\testpage[5]\blank[2*line]}]
\setuphead[grid=high]
\starttext
\dorecurse{15}{Linefill\\}
\input tufte
\subsection{Hallo}
\input tufte
\subsection{Hallo}
\input tufte \input tufte
\stoptext
But it is not good as my original, and the so the values make sense:
\setuplayout[grid=yes]
\showgrid
\setuphead[subsection]
[after=\vskip-1.6mm,
before={\testpage[5]\vskip1.6mm}]]
\starttext
\dorecurse{18}{Linefill\\}
\input tufte
\subsection{Hallo}
\input tufte
\subsection{Hallo}
\input tufte \input tufte
\stoptext
The second example has better (nicer) distances. The reason is: The
title should not be perfectly on the grid, only the text. Is there a way
to achieve that without those "odd" values, and so without the grid-error?
Huseyin
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2013-04-18 20:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-18 20:19 "H. Özoguz" [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-04-18 16:51 "H. Özoguz"
2013-04-18 16:56 ` Wolfgang Schuster
2013-04-18 15:44 "H. Özoguz"
2013-04-18 16:39 ` Wolfgang Schuster
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=5170554D.2060805@mmnetz.de \
--to=h.oezoguz@mmnetz.de \
--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).