From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86227 Path: news.gmane.org!not-for-mail From: "Jan Tosovsky" Newsgroups: gmane.comp.tex.context Subject: Divider in grid environment Date: Sat, 8 Feb 2014 13:27:42 +0100 Message-ID: <37207.542526494$1391862481@news.gmane.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391862468 807 80.91.229.3 (8 Feb 2014 12:27:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 12:27:48 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 08 13:27:56 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WC70m-0008Es-ED for gctc-ntg-context-518@m.gmane.org; Sat, 08 Feb 2014 13:27:56 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0F04101F7; Sat, 8 Feb 2014 13:27:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MRSGCChZJAI3; Sat, 8 Feb 2014 13:27:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 48AD7101F2; Sat, 8 Feb 2014 13:27:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 025C7101F2 for ; Sat, 8 Feb 2014 13:27:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tfcnPhvQ+nmW for ; Sat, 8 Feb 2014 13:27:52 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 4259B101E1 for ; Sat, 8 Feb 2014 13:27:42 +0100 (CET) Original-Received: from fep11.mx.upcmail.net (fep11.mx.upcmail.net [62.179.121.31]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s18CRfM6025293 for ; Sat, 8 Feb 2014 13:27:42 +0100 Original-Received: from edge03.upcmail.net ([192.168.13.238]) by viefep11-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140208122741.BPOL13224.viefep11-int.chello.at@edge03.upcmail.net> for ; Sat, 8 Feb 2014 13:27:41 +0100 Original-Received: from emk ([78.102.140.160]) by edge03.upcmail.net with edge id PoTh1n0073Tq9wW03oThwr; Sat, 08 Feb 2014 13:27:41 +0100 X-SourceIP: 78.102.140.160 X-Mailer: Microsoft Office Outlook 12.0 Content-Language: cs Thread-Index: Ac8kxxjXuwtD/MCVSXyPbxGWCd4K5w== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=62.179.121.31; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QLnMrFeC - a51d1d6ff9ae - 20140208 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86227 Archived-At: 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 ___________________________________________________________________________________