From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95762 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Dotted box in a form Date: Wed, 10 Aug 2016 13:09:15 +0200 Message-ID: <57AB0B5B.9080702@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2224100240453924648==" X-Trace: blaine.gmane.org 1470827396 9874 195.159.176.226 (10 Aug 2016 11:09:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Aug 2016 11:09:56 +0000 (UTC) User-Agent: Postbox 4.0.8 (Macintosh/20151105) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 10 13:09:51 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXROR-0002QG-4C for gctc-ntg-context-518@m.gmane.org; Wed, 10 Aug 2016 13:09:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A800A1386D; Wed, 10 Aug 2016 13:09:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t1Abv7EUW32z; Wed, 10 Aug 2016 13:09:31 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id EEE73145D1; Wed, 10 Aug 2016 13:09:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 55BA9144B7 for ; Wed, 10 Aug 2016 13:09:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WGnciLf9opJq for ; Wed, 10 Aug 2016 13:09:30 +0200 (CEST) Original-Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0773B1386D for ; Wed, 10 Aug 2016 13:09:19 +0200 (CEST) Original-Received: by mail-wm0-f52.google.com with SMTP id i5so96052805wmg.0 for ; Wed, 10 Aug 2016 04:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=XXbrRl8YVTDVaM1C5WOXeTfidiUd+EtNjwo3NqbK+ww=; b=X2KUk6m4ScJW63KuXrOzNE4R+pEaPxH7/SiCBDnXANGx7JJ54rBAzFTgi2F5N1wO6c 62RfsiowfnsSuWdg3KAgF/C/63FhoJBGSU6seHO14CBpKCQz2aprpxs6C6F5Hzr2PtiE qPpQMgOC/TaC+kHrUdQNqccc2F3jZGZYsBJES9oZItrRIZa4EHzcj+1Iv3HCQKoovk9l 3xrWFCV4gVSf6YbP2RFdwu9tqeY+hhy+vP4VYsAOkhzCv7Q9Q16Vfx7qR98W3vy0G+Vu 4hXdODGHURht3z7qOXymwycMAvdFM+48G3wO4739VFQBCjnrQxfS8+wIagF9+XMpVNCS rYRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=XXbrRl8YVTDVaM1C5WOXeTfidiUd+EtNjwo3NqbK+ww=; b=IC8lK26eCVGFO9VKiVW4ZEt4fMp8FBl+7ntrRs0PmwPopWNDbN+u4vVmLYHhA0KD12 /6lYeAJp83GWT5nPmh3s9QhZXqMj0UjQWr8O85g0lR2lRtQ6X+AqXNxTDQQ8Zp4fUPfo uAz4wjuF6yZq+LRMI8e6vPhlUyaJOLRSIBW+iS/+6qGY1nJU1UFMd5U6V3WXEOkk7oiB zlm9NfB+zx7CnbE30plhaQjAP75/Jpn9dL3gYhxBUnD4Nq+CYMYirjotO6SjXWa437cJ uH8ryEgYIiroj+ScQged9drA06/iI18PDkjOP6gRSQfXcA08Niqgyep0w0/w/J9MyHyO 21oA== X-Gm-Message-State: AEkoouu257qXM4nDkQsaqkWDLbLJqeLpymLOnJyad2aMFQfXuKxt9/gY/S++aGvqjenkIg== X-Received: by 10.28.111.4 with SMTP id k4mr2901418wmc.94.1470827358836; Wed, 10 Aug 2016 04:09:18 -0700 (PDT) Original-Received: from keima.localdomain (x2f2864a.dyn.telefonica.de. [2.242.134.74]) by smtp.gmail.com with ESMTPSA id x6sm42538550wjk.26.2016.08.10.04.09.17 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Aug 2016 04:09:18 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:95762 Archived-At: This is a multi-part message in MIME format. --===============2224100240453924648== Content-Type: multipart/alternative; boundary="------------060604050905090609070102" This is a multi-part message in MIME format. --------------060604050905090609070102 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit > Procházka Lukáš Ing. > 10. August 2016 um 09:04 > Hello, > > I need to create a double "sign-here" form, with the space for the > signature underlined with dots. > > The code bellow works fine and does exactly what I need. > The potential question is whether there is a simpler way to achieve > this, even without MP code, e.g. with only \leaders or what. > > ---- > \installbottomframerenderer{dot} > { > \startMPcode > picture p; p := dashpattern(on 0.1mm off 0.9mm); > draw (0,0) -- (OverlayWidth,0) dashed p withpen pencircle scaled > 0.1mm; > \stopMPcode > } > > \def\T{\framed[height=15mm,width=.4\textwidth,frame=off,bottomframe=dot]{}} > > > \starttext > Some text > > \noindent > \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|] > \NC\T\NC\T\NC\NR > \NC Pepa \NC Depa \NC\NR > \stoptabulate > \stoptext > ---- \definefiller [DotFill] [alternative=symbol, symbol=., width=.5em, style=\txx] \define\DotFill {\simplealignedbox{.4\textwidth}{flushleft}{\filler[DotFill]}} %\showframe[text][text] \starttext \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|] \NC \DotFill \NC \DotFill \NC\NR \NC Pepa \NC Depa \NC\NR \stoptabulate \stoptext Wolfgang --------------060604050905090609070102 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit
10. August 2016 um 09:04
Hello,

I need to create a double "sign-here" form, with the space for the signature underlined with dots.

The code bellow works fine and does exactly what I need.
The potential question is whether there is a simpler way to achieve this, even without MP code, e.g. with only \leaders or what.

----
\installbottomframerenderer{dot}
{
  \startMPcode
    picture p; p := dashpattern(on 0.1mm off 0.9mm);
    draw (0,0) -- (OverlayWidth,0) dashed p withpen pencircle scaled 0.1mm;
  \stopMPcode
}

\def\T{\framed[height=15mm,width=.4\textwidth,frame=off,bottomframe=dot]{}}

\starttext
  Some text

  \noindent
  \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|]
    \NC\T\NC\T\NC\NR
    \NC Pepa \NC Depa \NC\NR
  \stoptabulate
\stoptext
----
\definefiller
  [DotFill]
  [alternative=symbol,
   symbol=.,
   width=.5em,
   style=\txx]

\define\DotFill
  {\simplealignedbox{.4\textwidth}{flushleft}{\filler[DotFill]}}

%\showframe[text][text]

\starttext

\starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|]
\NC \DotFill \NC \DotFill \NC\NR
\NC Pepa     \NC Depa     \NC\NR
\stoptabulate

\stoptext

Wolfgang
--------------060604050905090609070102-- --===============2224100240453924648== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2224100240453924648==--