ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: wwl@musensturm.de
Subject: grid and \textrule
Date: Tue, 01 Aug 2006 00:14:33 +0200	[thread overview]
Message-ID: <44CE9CE9.11710.1FF688E@wwl.musensturm.de> (raw)

Hallo!

I use 

\setuplayout[grid=yes]

and a chapterdefinition which looks like:

Author
-------------------------------------------------

                                            Title

Text text text ...

The hor. Line above is a \textrule
and the vert. spacing between author and line and line and Title 
resp. should not depent on the grid. So I can not use 
\placeongrid{textrule} in my chapterdefinition. I have to do this
afterwards.

\blank[force,3.9pt]

In short:

\setuplayout[grid=yes]
\def\Sync{...}
\showgrid
\starttext
Bla Blub
\textrule
\Sync
Bla Blub
\stoptext

How should \Sync be defined to snap on the next gridline?

My solution is 

\def\Sync{\blank[force,7.4pt]}% try and error

isn't there a better solution?


Wolfgang

             reply	other threads:[~2006-07-31 22:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31 22:14 wwl [this message]
2006-08-01  8:25 ` Taco Hoekwater

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=44CE9CE9.11710.1FF688E@wwl.musensturm.de \
    --to=wwl@musensturm.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).