[NTG-context] Dotted box in a form

Wolfgang Schuster schuster.wolfgang at gmail.com
Wed Aug 10 13:09:15 CEST 2016


> Procházka Lukáš Ing. <mailto:LPr at pontex.cz>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160810/f0a3d792/attachment.html>


More information about the ntg-context mailing list