From: Cecil Westerhof <cldwesterhof@gmail.com>
To: NTG ConTeXt mailing list <ntg-context@ntg.nl>
Subject: Macros for paper feedback form
Date: Tue, 07 Sep 2010 01:00:12 +0200 [thread overview]
Message-ID: <87fwxm7a0z.fsf@linux-lqcw.site> (raw)
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
___________________________________________________________________________________
reply other threads:[~2010-09-06 23:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fwxm7a0z.fsf@linux-lqcw.site \
--to=cldwesterhof@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).