From: Csikos Bela <bcsikos425@freemail.hu>
To: ntg-context@ntg.nl
Subject: controlling title head distances when grid is enabled
Date: Thu, 23 Feb 2017 15:00:15 +0100 (CET) [thread overview]
Message-ID: <freemail.20170223150015.80813.1@fmxmldata04.freemail.hu> (raw)
Dear context users:
I would like to typeset my documents to gridlines. If grid is enabled,
the distances between titles (section, subsection,subsubsection heads)
and text are too big. Here's an example:
\setuplayout[grid=yes]
\showgrid
\starttext
\section{Section One}
\input tufte
\subsection{Subsection One}
\input ward
\subsubsection{Subsubsection One}
\input tufte
\section{Section Two}
\subsection{Subsection Two}
\input davis
\subsection{Subsection Three}
\input dawkins
\stoptext
In the output there are 3 empty lines before and 2 after Subsection One.
It would be enough 2 and 1 lines, respectively. On page 2, between
Section Two and Subsection Two heads 4 empty lines are inserted,
which is to much (ugly). How can I control the empty space before
and after heads when grid is enabled?
I tried this:
\setuphead[section][before=\vskip-2.8ex,after=\vskip-2.8ex]
but it removes all spaces not only 1 line.
I also tried
\setuphead[section][before={\blank[2*line]},after={\blank[line]}]
but it doesn't have any effect.
Thank you in advance,
bcsikos
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
reply other threads:[~2017-02-23 14:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=freemail.20170223150015.80813.1@fmxmldata04.freemail.hu \
--to=bcsikos425@freemail.hu \
--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).