* Macros for paper feedback form
@ 2010-09-06 23:00 Cecil Westerhof
0 siblings, 0 replies; only message in thread
From: Cecil Westerhof @ 2010-09-06 23:00 UTC (permalink / raw)
To: NTG ConTeXt mailing list
I am trying to make a set of macros for a paper feedback form. The
first part is:
\setuplayout
[backspace=20mm,footer=5mm,header=5mm,height=middle,margin=1cm,topspace=0mm,width=middle]
\setupindenting[yes,none]
\enableregime[utf-8]
\mainlanguage[nl]
\setupbodyfont[roman, 12pt]
\setuppagenumbering[state=stop]
\setupoutput[pdf]
\def\CheckBoxes[#1,#2]%
{\blank
#1\par
\processcommalist[#2]\doCheckBoxes
\blank
\crlf
}
\def\doCheckBoxes#1%
{\hskip2.5em[\hskip1em] #1\par
}
\def\GetComment[#1]{
\blank
#1\par
\thinrules[n=4]
\blank
\crlf
}
\def\Title[#1]{
\par
\startalignment[center]
{\switchtobodyfont[18pt]\bf\em#1}
\stopalignment
\blank
}
But I would like to have also a macro for the following:
{\bf Contact gegevens:}
\setupfillinrules[width=3cm]
\fillinrules{Bedrijf:}
\fillinrules{Naam:}
\fillinrules{Adres:}
\fillinrules{PC Woonplaats:}
\fillinrules{E-mail}
\fillinrules{Telefoon:}
\fillinrules{GSM:}
\blank
\crlf
The biggest problem is that the width is dependent on the longest text
that is given here. In this case PC Woonplaats. Is there a smart way
to calculate the right value?
Another problem is that the distance between lines with fillinrules is
about twice as big as with normal lines. How can I get the distance
the same as with normal lines?
--
Cecil Westerhof
M CLDWesterhof@gmail.com
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-09-06 23:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-06 23:00 Macros for paper feedback form Cecil Westerhof
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).