ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andreas Harder <andreas.harder@rz-online.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: PDF fields
Date: Tue, 31 Aug 2010 14:08:23 +0200	[thread overview]
Message-ID: <969F4E97-E116-4688-8314-0C685C413C19@rz-online.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 71 bytes --]

Hi all,

please have a look at my attached example. I've two problems.

[-- Attachment #2: pdf-fields.tex --]
[-- Type: application/octet-stream, Size: 861 bytes --]


\mainlanguage[de]

\setuplayout[width=middle,height=middle,header=0pt,footer=0pt]

\setupbodyfont[times]

\setupinteraction[state=start] 

\setupfields[option=printable] 

\setupfield
  [setup]
  [horizontal]
  [height=fit]
  []
  [height=\lineheight,frame=off,location=line]

\definefield [hours] [line] [setup] [] [9]


\def\Feld#1%
  {\bTR\bTD \date[d=#1,m=8,y=2010][dd,{.},mm,{.},year,~,(,weekday,)] \eTD
       \bTD \field[hours] \eTD\eTR}


\starttext  % \showframe[text]

\bTABLE
\setupTABLE[width=broad,frame=off]
\setupTABLE[row][odd] [background=color,backgroundcolor=gray:2]
\setupTABLE[row][even][background=color,backgroundcolor=gray:1]
\bTABLEhead
\bTR\bTH Datum   \eTH
    \bTH Stunden \eTH\eTR
\eTABLEhead
\bTABLEbody
\dorecurse{31}{\Feld{#1}}
\eTABLEbody
\eTABLE

\stoptext

%%% Local Variables: 
%%% mode: context
%%% TeX-master: t
%%% End: 

[-- Attachment #3: Type: text/plain, Size: 263 bytes --]


1) After I fill one field in the PDF-file all other fields inherit the text. How can I prevent this?

2) The text in the left column an the text in the field are not on the same baseline. The field-text is slightly higher. 

Thank you in advance

	Andreas

[-- Attachment #4: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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-08-31 12:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31 12:08 Andreas Harder [this message]
2010-08-31 12:30 ` Lutz Haseloff
2010-08-31 12:37   ` Andreas Harder

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=969F4E97-E116-4688-8314-0C685C413C19@rz-online.de \
    --to=andreas.harder@rz-online.de \
    --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).