From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67658 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: dashed underbar Date: Tue, 5 Apr 2011 22:29:50 +0200 Message-ID: References: <4D9B7673.1090608@aon.at> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1302035417 16925 80.91.229.12 (5 Apr 2011 20:30:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2011 20:30:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 05 22:30:12 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q7Ct9-0001D6-T2 for gctc-ntg-context-518@m.gmane.org; Tue, 05 Apr 2011 22:30:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E904ECABE8; Tue, 5 Apr 2011 22:30:10 +0200 (CEST) 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 iZgXNOGENo2w; Tue, 5 Apr 2011 22:30:08 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 45B25CABDF; Tue, 5 Apr 2011 22:30:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 100E9CABDF for ; Tue, 5 Apr 2011 22:30:07 +0200 (CEST) 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 5A8TJ2fidYJI for ; Tue, 5 Apr 2011 22:29:55 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id B70B0CABD4 for ; Tue, 5 Apr 2011 22:29:55 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p35KTs7b022663 for ; Tue, 5 Apr 2011 22:29:55 +0200 Original-Received: by fxm18 with SMTP id 18so800782fxm.14 for ; Tue, 05 Apr 2011 13:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=cK60FAqLoK08AUlJP+vrzZGk104ZBEAupwK9xWum45g=; b=MKSVcyE/OulQiLAK/FcFcJcx8a85WDqx7beLltcUZUJFLnb3eNqPFTCAMH6Fm6y9GP Q2Mh3s9QR7pyclVe2MO7RsUoZ4seohwgTlWzsdDOMtYx85GoD8bsriKhwdqbEpH5jisI XWOEAetxnsaSEgh+xjOf5pOMNiuZogjRSrfEs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=gA3yUwirgoOzJRtrL9gzgQzIFukRaNnAK0KVpK2DwhnEuPV1lpuqBPYHClvMxUup43 tOQTj/+y23GMDJNtVsOehV4W1bxME23eBAQkfZzf2vgRhWsjwL9Xk9W7gVz2YBCYPGQs 5+P6vRuMFE1hq/9TYx3/iXF5qk95tJ5U+gjlk= Original-Received: by 10.223.2.2 with SMTP id 2mr151964fah.47.1302035394630; Tue, 05 Apr 2011 13:29:54 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B294A27.dip.t-dialin.net [91.41.74.39]) by mx.google.com with ESMTPS id f21sm209083faa.6.2011.04.05.13.29.52 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2011 13:29:53 -0700 (PDT) In-Reply-To: <4D9B7673.1090608@aon.at> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07ErUtS9X - 494a471f5606 - 20110405 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:67658 Archived-At: Am 05.04.2011 um 22:07 schrieb Daniel Schopper: > Dear all, > I'm looking for a solution for dashed underlining. Hacking around I've come quite close, with the only problem that when the underlining begins at the start of a paragraph there gets an empty (grid) line inserted before it. See: > > \defineoverlay [backgraphics] [\positionoverlay{backgraphics}] > \setupbackgrounds > [page] > [background={backgraphics}] > > \setupMPvariables[mpos:par][gridtype=1,gridshift=-0.5ex,gridwidth=0.1ex, gridcolor=black,fillcolor=white,linecolor=white] > > \newcount\dashulinecounter \dashulinecounter=1 > > \definestartstop[dashuline][before={\dostartdashuline},after={\dostopdashuline}] > \def\dostartdashuline{% > \startpositionoverlay{backgraphics}% > \setMPpositiongraphic{b:uline:\the\dashulinecounter}{mpos:par}{self=uline:\the\dashulinecounter}% > \stoppositionoverlay > \fpos{uline:\the\dashulinecounter}% > } > \def\dostopdashuline{% > \tpos{uline:\the\dashulinecounter}% > \advance\dashulinecounter by 1% > } > > > \starttext > No Line \startdashuline \dorecurse{20}{This is just a test. }\stopdashuline \par > \startdashuline \dorecurse{20}{This is just a test. }\stopdashuline > \stoptext > > I'm sure some of you know a simpler and more elegant solution that maybe allows even dotted underlining?! Or does anyone have a hint how to get rid of the empty line? \definetextbackground [dashed] [ location=text, framecolor=black, alternative=1, voffset=-\strutdp, background=, frame=off, dash=1] \starttext \startdashed\input ward \stopdashed \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________