Re: [NTG-context] Dotted box in a form

2016-08-10 Thread Wolfgang Schuster

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

[NTG-context] Dotted box in a form

2016-08-10 Thread Procházka Lukáš Ing .

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


Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

DotLi2.mkiv
Description: Binary data


DotLi2.pdf
Description: Adobe PDF document
___
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
___