ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan Tosovsky" <j.tosovsky@email.cz>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Divider in grid environment
Date: Sat, 8 Feb 2014 13:27:42 +0100	[thread overview]
Message-ID: <37207.542526494$1391862481@news.gmane.org> (raw)

Dear All,

I'd like to use a divider between certain paragraphs. As I want to keep all
the lines on the grid so it should have a height = N x line height.

As \hl renders the line on baseline, I have to tweek the space before/after
using the 'blank' command to keep the horizontal line in the +/- middle:

\setuplayout[grid=yes]
\showgrid
\showlayoutcomponents

\starttext
\input{ward}
\blank[4mm]\middlealigned{\hl[4]}\blank[6mm]
\input{ward}
\stoptext

But this solution requires adjustments for different fonts or font sizes...

Is there a more efficient way how to accomplish this?

Thanks, Jan

___________________________________________________________________________________
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
___________________________________________________________________________________


             reply	other threads:[~2014-02-08 12:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-08 12:27 Jan Tosovsky [this message]
     [not found] <007401cf24c9$29d030d0$7d709270$@tosovsky@email.cz>
2014-02-08 16:32 ` Jan Tosovsky
     [not found] ` <001801cf24eb$60de9c70$229bd550$@tosovsky@email.cz>
2014-02-13 17:13   ` Jan Tosovsky

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='37207.542526494$1391862481@news.gmane.org' \
    --to=j.tosovsky@email.cz \
    --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).