* PDF fields
@ 2010-08-31 12:08 Andreas Harder
2010-08-31 12:30 ` Lutz Haseloff
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Harder @ 2010-08-31 12:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PDF fields
2010-08-31 12:08 PDF fields Andreas Harder
@ 2010-08-31 12:30 ` Lutz Haseloff
2010-08-31 12:37 ` Andreas Harder
0 siblings, 1 reply; 3+ messages in thread
From: Lutz Haseloff @ 2010-08-31 12:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
2010/8/31 Andreas Harder <andreas.harder@rz-online.de>:
> Hi all,
>
> please have a look at my attached example. I've two problems.
>
>
> 1) After I fill one field in the PDF-file all other fields inherit the text. How can I prevent this?
The fields are all the same. You can:
\dorecurse{31}{\definefield [hours#1] [line] [setup] [] []}
\def\Feld#1%
{\bTR\bTD \date[d=#1,m=8,y=2010][dd,{.},mm,{.},year,~,(,weekday,)] \eTD
\bTD \field[hours#1] \eTD\eTR}
> 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
Lutz
___________________________________________________________________________________
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] 3+ messages in thread
* Re: PDF fields
2010-08-31 12:30 ` Lutz Haseloff
@ 2010-08-31 12:37 ` Andreas Harder
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Harder @ 2010-08-31 12:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 31.08.2010 um 14:30 schrieb Lutz Haseloff:
>> 1) After I fill one field in the PDF-file all other fields inherit the text. How can I prevent this?
>
> The fields are all the same. You can:
>
> \dorecurse{31}{\definefield [hours#1] [line] [setup] [] []}
>
> \def\Feld#1%
> {\bTR\bTD \date[d=#1,m=8,y=2010][dd,{.},mm,{.},year,~,(,weekday,)] \eTD
> \bTD \field[hours#1] \eTD\eTR}
Okay, I see. Thanks a lot!
Greeting
Andreas
___________________________________________________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2010-08-31 12:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-31 12:08 PDF fields Andreas Harder
2010-08-31 12:30 ` Lutz Haseloff
2010-08-31 12:37 ` Andreas Harder
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).