[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context
themselves. Basically one can sign (with some certificate) and then validate. % sign-001.tex \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed

[NTG-context] Re: checkbox in fields show the word yes

2023-10-05 Thread juh via ntg-context
sn't show the "yes", nor Acrobat X, but SumatraPDF does. I > > modified your definition as: > > > > \definefield[test][check][cbox][][] > > > > And now the "yes" doesn't appear. However, I don't know how this affects > > the functionality of the for

[NTG-context] digitally sign fields with MuPDF-GL

2023-07-13 Thread Pablo Rodriguez
Dear list, having the following sample code: \setuppapersize[A4, landscape] \setuplayout[page] \setupinteraction[state=start] \starttext \setupfield[sl][horizontal] [frame=off, width=\textwidth, height=\textheight] \definefield[x][signature][sl] \field[x] I also attach

[NTG-context] Radiobuttons again...

2022-06-25 Thread Henning Hraban Ramm via ntg-context
in \definesubfield, all subfields are activated together, which is clearly wrong. I hope that’s an easy fix. Hraban """ \setupinteraction[state=start] \setuppaper[a6,landscape] \setupfield[CGradio][frame=off, height=1em, width=1em] \definefield[CGjoin][radio][CGradio][CGPerson,CGCo

Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-24 Thread Jan-Erik Hägglöf via ntg-context
pinteraction[state=start] > > \definesymbol[yes][{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}] > \definesymbol[no][] > > \newcount\chk > \def\checkmark{% > \global\advance\chk by 1 > \setupfield[setup1][width=0.5cm, height=0.5cm,rulethickness=1pt, > co

Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-24 Thread Pablo Rodriguez via ntg-context
onversion=mp]}] \definesymbol [no] [{\externalfigure[off.svg][conversion=mp]}] \setupfield[setup3][width=2ex, height=2ex] \dorecurse{3} {\definefield [check-\recurselevel] [check] [setup3] [yes,no] [no]} \setupbodyfont[sans, 30pt] \starttext \startTEXpage[offset=1em, foregroun

Re: [NTG-context] Issue with interactive checkboxes[solved]

2022-05-24 Thread Jan-Erik Hägglöf via ntg-context
[setup1][width=0.5cm, height=0.5cm,rulethickness=1pt, corner=round, framecolor=red]% \definefield[checkme\the\chk][check][setup1][yes,no][no]% \field[checkme\the\chk]% } \starttext \checkmark\ \checkmark\ \checkmark\ \stoptext Sorry to bother the list but maybe it is helpful for someone

Re: [NTG-context] Issue with interactive checkboxes

2022-05-24 Thread Jan-Erik Hägglöf via ntg-context
]% \definefield[checkme\the\chk][check][setup1][yes,no][no]% \field[checkme\the\chk]% } \starttext \chk \chk \chk \stoptext But it gives the error ” You can’t use \global after \advance” But this example works fine \setupinteraction[state=start] \newcount\clozecount \def\mycloze{% \global

Re: [NTG-context] Issue with interactive checkboxes

2022-05-23 Thread Jan-Erik Hägglöf via ntg-context
ist in an interactive document. >> >> The problem seems to be that all checks/uncecks in same click, not each >> individually. >> >> Is there something wrong with my code? > > Hi Jan-Erik, > > you basically put the same field twice. >

Re: [NTG-context] Issue with interactive checkboxes

2022-05-23 Thread Pablo Rodriguez via ntg-context
u basically put the same field twice. Add something like: \definefield [check-you] [check] [setup 3] [yes,no] [no] \define\chka{\field[check-you]} \chka Checks will be different then. I hope it helps, Pablo

[NTG-context] Issue with interactive checkboxes

2022-05-23 Thread Jan-Erik Hägglöf via ntg-context
[yes] [{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}]\definesymbol [no] []\setupfield[setup 3][width=0.5cm, height=0.5cm,rulethickness=1pt, corner=round, framecolor=red]\definefield [check-me] [check] [setup 3] [yes,no] [no]\define\chk{\field[check-me]}\starttext\chk\blank[3cm]\chk

Re: [NTG-context] Interactive checkbox in ConTeXt

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
] [width=0.5cm, height=0.5cm, rulethickness=1pt, corner=round, framecolor=red] \definefield [check-me] [check] [setup 3] [yes,no] [no] \define\chk{\field[check-me]} \starttext \chkgfgkfgfghjl \chkdfdffdfff \stoptext > 22 maj 2022 kl. 10:47 skrev Jan-Erik Hägglöf : > >

Re: [NTG-context] Interactive checkbox in ConTeXt

2022-05-22 Thread Jan-Erik Hägglöf via ntg-context
] \definesymbol [yes] [{\externalfigure[mp-cont.502]}] \definesymbol [no] [] \setupfield [setup 3] [width=2cm, height=2cm, rulethickness=3pt, corner=round, framecolor=red] \definefield [check-me] [check] [setup 3] [yes,no] [no] \starttext \field[check-me] \stoptext > 20 maj 2022 kl. 12:28 skrev Henn

[NTG-context] issue with signature fields in Acrobat

2021-08-03 Thread Pablo Rodriguez via ntg-context
Hi Hans, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=2em] \setupfield[ShortLine][horizontal][width=5cm,height=5em] \definefield [Email] [signature] [ShortLine] \field [Email] [your email] \stopTEXpage \stoptext If I sign

Re: [NTG-context] PDF forms not creating proper children

2021-06-09 Thread Leonard Janis Robert König
(?) > > But you might check yourself with the following sample: > >   \setuppapersize[A10, landscape] >   \setuplayout[page] >   \setupinteraction[state=start] >   \starttext >   \setupfield[sl][horizontal] >     [frame=on, width=\textwidth, height=\textheight] &g

Re: [NTG-context] PDF forms not creating proper children

2021-06-09 Thread Pablo Rodriguez
ersize[A10, landscape] \setuplayout[page] \setupinteraction[state=start] \starttext \setupfield[sl][horizontal] [frame=on, width=\textwidth, height=\textheight] \definefield[x][signature][sl] \field[x] \stoptext The attached certificate has the password 123456. Only mupdf-gl s

Re: [NTG-context] PDF forms not creating proper children

2021-06-07 Thread Leonard Janis Robert König
natures into one, however Okular doesn't. I could, however, isolate the original issue I posted on the ML: Actually forms still work, but they don't, if embedded into TABLEs. Here's a MWE: \setupinteraction[state=start] \definefield[lineField][line][][][] \starttext \bTABLE[] \bTR

Re: [NTG-context] PDF forms not creating proper children

2021-05-01 Thread Adam Reviczky
Hi, I cannot get the signature working either, but almost certain it did work in February this year, as I have done some with MKIV. >From the test suite: fields-007.tex \nopdfcompression \setupinteraction[state=start] \starttext \definefield[x][signature] \field[x] \stoptext Using the ht

Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Hans Hagen
On 12/11/2020 6:13 PM, Andres Conrado Montoya wrote: Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I modified your definition as: \definefield[test][check][cbox][][] And now the "yes" doesn't appear. However, I don't know how this affects the funct

Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Andres Conrado Montoya
Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I modified your definition as: \definefield[test][check][cbox][][] And now the "yes" doesn't appear. However, I don't know how this affects the functionality of the form. -- Andrés Conrado Montoy

Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Jan U. Hasecke
height=1em,option=printable,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black] > \definefield[test][check][cbox][yes][no] > > \starttext > \field[test] \space Do you see the word »yes«? > \stoptext > > Unfortunately in Firefox and some other PDF Viewer there is th

[NTG-context] checkbox in fields show the word yes

2020-11-17 Thread Jan U. Hasecke
,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black] \definefield[test][check][cbox][yes][no] \starttext \field[test] \space Do you see the word »yes«? \stoptext Unfortunately in Firefox and some other PDF Viewer there is the word "yes" written in the checkbox. This make

[NTG-context] problems with signature fields

2020-11-11 Thread Pablo Rodriguez
Hans, I have the following sample: \setupinteraction[state=start] \starttext \startTEXpage[offset=1em] \definefield[x][signature] \field[x] \stopTEXpage \stoptext I can only use Acrobat to sign PDF documents with signature fields generated by ConTeXt. Other tools sign

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-18 Thread Henning Hraban Ramm
ickness=1pt,framecolor=lightgrey] > > \setupfield[totalField][reset,horizontal] >[ >height=2pc, >rulethickness=1pt, >framecolor=lightgrey, >option=readonly, >calculate=JS(tallyUp),

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-18 Thread Hans Hagen
true; } \stopJSpreamble \setupfield [numField] [reset,horizontal] [height=2pc, rulethickness=1pt, afterkey=JS(recalculate{}), focusout=JS(recalculate{}), framecolor=lightgrey] \setupfield [totalField] [reset,horizontal] [height=2pc, rulethickness=1pt, option=r

Re: [NTG-context] Widgets: Any good examples for developing JS-enabled PDFs that calculate?

2019-11-17 Thread Paul Mazaitis
[height=2pc,rulethickness=1pt,framecolor=lightgrey] \setupfield[totalField][reset,horizontal] [ height=2pc, rulethickness=1pt, framecolor=lightgrey, option=readonly, calculate=JS(tallyUp), ] \definefield[A][line][numField][] \definefie

Re: [NTG-context] radiobuttons

2019-08-15 Thread Hans Hagen
t file --- \setupinteraction [state=start] \definesymbol[yes][1] \definesymbol[nop][0] \setupfield[whatever][width=20mm,height=20mm,frame=off] \definefield[what][radio][whatever][whatone,whattwo][whatone] \definesubfield[whatone][][yes,nop] \definesubfield[whattwo][][yes,nop] \startuniqueMPgra

Re: [NTG-context] radiobuttons

2019-08-14 Thread Hans Hagen
\setupinteraction [state=start] \definesymbol[yes][1] \definesymbol[nop][0] \setupfield[whatever][width=20mm,height=20mm,frame=off] \definefield[what][radio][whatever][whatone,whattwo][whatone] \definesubfield[whatone][][yes,nop] \definesubfield[whattwo][][yes,nop] \setupfield[textstuff

Re: [NTG-context] radiobuttons

2019-08-13 Thread Henning Hraban Ramm
le all > other fields’ contents get copied, it doesn’t work for radiobuttons; my > minimal example unfortunately can’t show that. > > > \setupinteraction[state=start] > > \setupfield[MMradio][ > option=printable, > frame=overlay, corner=round, > height=1em,

Re: [NTG-context] radiobuttons and other widgets

2019-08-05 Thread Henning Hraban Ramm
This is a feature request or wish: I would be glad to have a module (e.g. "fakefields") as a drop-in replacement that overwrites the field commands (\setupfield, \definefield, \definesubfield, \field) with a version that doesn’t create form fields but just \inframeds that loo

Re: [NTG-context] radiobuttons

2019-08-05 Thread Henning Hraban Ramm
can’t show that. > > > \setupinteraction[state=start] > > \setupfield[MMradio][ > option=printable, > frame=overlay, corner=round, > height=1em, width=1em, > align=bottom, > ] > > \definefield[chooseTeX][radio][MMradio][rbContext,rbLatex,

[NTG-context] radiobuttons

2019-08-05 Thread Henning Hraban Ramm
, frame=overlay, corner=round, height=1em, width=1em, align=bottom, ] \definefield[chooseTeX][radio][MMradio][rbContext,rbLatex,rbOther][rbContext] \definesubfield[rbContext][][] \definesubfield[rbLatex][][] \definesubfield[rbOther][][] \starttext I want to use \field[rbContext] \CONTEXT

Re: [NTG-context] full expansion in widgets

2017-06-22 Thread Henri Menke
\startbuffer[abc] > buffer contents > \stopbuffer > Just an attachment.\attachment[name=buffer.txt, author={Me}, > title={\MyContent\ \input knuth}, buffer=abc] > > \setupfield [TextSetup][width=.5\textwidth, height=.5\textwidth, >  frame=off]

[NTG-context] full expansion in widgets

2017-06-22 Thread Pablo Rodriguez
={\MyContent\ \input knuth}, buffer=abc] \setupfield [TextSetup][width=.5\textwidth, height=.5\textwidth, frame=off] \definefield [SomeField] [text] [TextSetup] [\MyContent\ \input knuth] \field[SomeField] \stoptext Would it be possible to have full expansion in PDF

Re: [NTG-context] issue with signature field

2017-05-25 Thread Pablo Rodriguez
On 05/24/2017 11:57 AM, luigi scarso wrote: > On Sun, May 21, 2017 at 9:17 PM, Pablo Rodriguez <oi...@gmx.es> wrote: >> Dear list, >> >> some time ago, Hans implemented signature fields: >> >> \setupinteraction[state=start] >> \starttext >

Re: [NTG-context] issue with signature field

2017-05-25 Thread Pablo Rodriguez
On 05/24/2017 11:00 AM, Hans Hagen wrote: > On 5/21/2017 9:17 PM, Pablo Rodriguez wrote: >> \setupinteraction[state=start] >> \starttext >> \definefield[x][signature] >> \field[x] >> \stoptext >> >> I’m afraid I’m n

Re: [NTG-context] issue with signature field

2017-05-24 Thread luigi scarso
On Sun, May 21, 2017 at 9:17 PM, Pablo Rodriguez <oi...@gmx.es> wrote: > Dear list, > > some time ago, Hans implemented signature fields: > > \setupinteraction[state=start] > \starttext > \definefield[x][signature] > \field[x] > \stoptext &g

Re: [NTG-context] issue with signature field

2017-05-24 Thread Hans Hagen
On 5/21/2017 9:17 PM, Pablo Rodriguez wrote: Dear list, some time ago, Hans implemented signature fields: \setupinteraction[state=start] \starttext \definefield[x][signature] \field[x] \stoptext I’m afraid I’m not able to sign it using Acrobat 9.5.5, which

[NTG-context] issue with signature field

2017-05-21 Thread Pablo Rodriguez
Dear list, some time ago, Hans implemented signature fields: \setupinteraction[state=start] \starttext \definefield[x][signature] \field[x] \stoptext I’m afraid I’m not able to sign it using Acrobat 9.5.5, which is the latest version released for Linux. Acrobat Reader 9.5.5

[NTG-context] expansion in widgets

2017-05-04 Thread Pablo Rodriguez
Hans, I have the following sample: \setupinteraction[state=start] \starttext \setupfield [TextSetup] [width=.5\textwidth, height=.5\textwidth, frame=off] \definefield [SomeField] [text] [TextSetup] [\input knuth] \field[SomeField] \stoptext Would

Re: [NTG-context] Multiple Choice Quiz with self marking funciton

2016-10-25 Thread B.A.Lee
Thanks Wolfgang for pointing the direction. My effort so far gave the following: \setuppapersize[S4][S4]\setupinteraction[state=start,click=no] \definefield     [Choice][radio][ChoiceSetup]    [yes,no] \definesymbol [YesS] [Y] %[\ding{52},color=red] %% Not successful in getting the symbols I

Re: [NTG-context] PDF Signature Fields

2016-03-14 Thread Andreas Schneider
Am 2016-03-10 16:56, schrieb Hans Hagen: next beta: \setupinteraction[state=start] \starttext \definefield[x][signature] \field[x] \stoptext It's working; thank you very much :-) ___ If your question

Re: [NTG-context] PDF Signature Fields

2016-03-10 Thread Hans Hagen
[...] /Subtype /Widget [...] /T (Einrichter Name) "Einrichters Unterschrift" is another Signature Field) next beta: \setupinteraction[state=start] \starttext \definefield[x][signature] \field[x] \stoptext Am 2016-03-09 16:16, schrieb Hans Hagen: On 3/9/2016 2:11 P

[NTG-context] Forms and JavaScript

2015-04-02 Thread Henning Hraban Ramm
); df.value = CurDate; function toggleField(){ var f = this.getField(Datum); f.display = ! f.display; } \stopJSpreamble %\goto{toggle}[JS(toggleField)] \blank \setupfield[MMshortString][reset,horizontal][height=5mm, width=50mm, frame=off, bottomframe=on] \definefield[Datum][line

Re: [NTG-context] Forms and JavaScript

2015-04-02 Thread Rik Kabel
=off, bottomframe=on] \definefield[Datum][line][MMshortString][][JS(CurDate)] % JS(CurDate) ends up verbatim in the field Date: \field[Datum] \stoptext Greetlings, Hraban Greetlings Hraban, This appears to be a pdf reader problem. On Win 8.1, Windows Reader and Chrome both show an editable

[NTG-context] Resizing multi-line fill-in field

2014-07-01 Thread Michael Guravage
[state=start] \setupfield [TextSetup] [width=\textwidth, height=10em, background=screen, backgroundscreen=.97, frame=off] \definefield [Block] [text] [TextSetup] [] [What's on your mind?] \starttext \field [Block] [type here] \stoptext I have a situation where the amount of text typed

Re: [NTG-context] Resizing multi-line fill-in field

2014-07-01 Thread Hans Hagen
in 10em. \usemodule[fields] \setupinteraction[state=start] \setupfield [TextSetup] [width=\textwidth, height=10em, background=screen, backgroundscreen=.97, frame=off] \definefield [Block] [text] [TextSetup] [] [What's on your mind?] \starttext \field [Block] [type here] \stoptext I have

[NTG-context] PDF Forms - expanding multi-line text fields

2014-06-17 Thread Michael Guravage
=screen,backgroundscreen=.97,frame=off] \definefield [Block] [text] [TextSetup] \starttext \field [Block] \stoptext In this example the height is 5em. The field will scroll lines up when the height of the lines typed exceeds the height of the field. Click outside the field and the field displays

[NTG-context] Widgets getting check marks instead of colors when the next one is clicked.

2012-03-23 Thread Mikael P. Sundqvist
,background=color,backgroundcolor=darkgreen]{ }}] \definesymbol [rno] [] \definesymbol [wyes] [{\framed[frame=off,width=2em,height=2em,background=color,backgroundcolor=darkred]{ }}] \definesymbol [wno] [] \definefield [rcheckme][check] [setup 3] [ryes,rno] [rno] \definefield [wcheckme][check] [setup 3

Re: [NTG-context] Widgets getting check marks instead of colors when the next one is clicked.

2012-03-23 Thread Mikael P. Sundqvist
] [] \definefield [rcheckme][check] [setup 3] [ryes,rno] [rno] \definefield [wcheckme][check] [setup 3] [wyes,wno] [wno] \starttext \field[rcheckme] Germany is a country in Europe. \field[wcheckme] All germans are men. \goto{Reset}[ResetForm] \stoptext %%% END OF FILE 2) In the example file above I

[NTG-context] more missing or ungrouped '=' after

2011-03-20 Thread Reviczky, Adam
,align=middle,background=screen,backgroundscreen=.90,frame=off] [height=40pt,width=100pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off] \setupfield[widget][] \definefield [Emaila] [line] [widget] [] [pragma@wxs.nl] \field [Emaila] [your email] \stoptext

[NTG-context] JS in widgets still not working with mkiv

2011-02-02 Thread Reviczky, Adam
,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off,regionin=JS(Initialize_TeX_Key),afterkey=JS(Convert_TeX_Key),validate=JS(Convert_TeX_String)] \definefield [Email] [line] [ShortLine] [] [pragma at wxs.nl] \field [Email] [your email] \stoptext

Re: [NTG-context] Widgets color option not working with Mark IV

2011-01-28 Thread Reviczky, Adam
] [height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off] \definefield [Email] [line] [ShortLine] [] [pragma at wxs.nl] \startalignment[middle] \field [Email] [your email] \par \field [Email] [your email] \stopalignment \stoptext % end of example

Re: [NTG-context] Widgets color option not working with Mark IV

2011-01-26 Thread Hans Hagen
,backgroundscreen=.90,frame=off] \setupfield [sizea] [horizontal] [style={\switchtobodyfont[20pt]}] \setupfield [sizeb] [horizontal] [style={\switchtobodyfont[28pt]}] \setupfield [sizec] [horizontal] [style={\switchtobodyfont[20pt]}] \definefield [Emaila] [line] [sizea] [] [pra...@wxs.nl

[NTG-context] field alignment bug in latest beta

2011-01-25 Thread Reviczky, Adam
=80pt,align=middle,background=screen,backgroundscreen=.90,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,background=screen,backgroundscreen=.90,frame=off] \definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl] \startalignment[middle] \field [Email] [your email] \par \field

[NTG-context] Widgets color option not working with Mark IV

2011-01-25 Thread Reviczky, Adam
[sizea] [horizontal] [style={\switchtobodyfont[20pt]}] \setupfield [sizeb] [horizontal] [style={\switchtobodyfont[28pt]}] \setupfield [sizec] [horizontal] [style={\switchtobodyfont[20pt]}] \definefield [Emaila] [line] [sizea] [] [pra...@wxs.nl] \definefield [Emailb] [line] [sizeb] [] [pra...@wxs.nl

Re: [NTG-context] SubmitForm interaction

2010-11-29 Thread Daniel Grycman
=JS(Convert_TeX_String)] \definefield [Kommentar] [text] [TextSetup] [Ihr Veranstaltungskommentar...] \starttext \bTABLE \bTR \bTD Kommentar: \eTD \bTD \field [Kommentar] [Ihr Kommentar...] \eTD \eTR \eTABLE \button{Absenden}[SubmitForm{mailto::daniel.gryc...@rub.de,Kommentar}] \stoptext

Re: [NTG-context] SubmitForm interaction

2010-11-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
=JS(Convert_TeX_key), validate=JS(Convert_TeX_String)] \definefield [Kommentar] [text] [TextSetup] [Ihr Veranstaltungskommentar...] \starttext \bTABLE \bTR \bTD Kommentar: \eTD \bTD \field [Kommentar] [Ihr Kommentar...] \eTD \eTR \eTABLE \button{Absenden}[SubmitForm{mailto::daniel.gryc...@rub.de

Re: [NTG-context] PDF fields

2010-08-31 Thread Lutz Haseloff
}{\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

Re: [NTG-context] PDF fields

2010-08-31 Thread Andreas Harder
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

Re: [NTG-context] Change Font in PDF-fields

2010-02-20 Thread Andreas Harder
Am 19.02.2010 um 14:20 schrieb Hans Hagen: On 19-2-2010 10:40, Andreas Harder wrote: \setupfield [ShortLine] [label,frame,horizontal] [height=fit,framecolor=green] [] [height=18pt,style=rmtf] % - still mono \definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl

[NTG-context] Change Font in PDF-fields

2010-02-19 Thread Andreas Harder
Hi all, if I use the following setup \setupfield [ShortLine] [label,frame,horizontal] [height=fit,framecolor=green] [] [height=18pt,type=normal] % - is mono \definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl] \starttext \startTEXpage[offset=1ex] \field [Email] [E-Mail

Re: [NTG-context] Change Font in PDF-fields

2010-02-19 Thread Hans Hagen
On 19-2-2010 10:40, Andreas Harder wrote: \setupfield [ShortLine] [label,frame,horizontal] [height=fit,framecolor=green] [] [height=18pt,type=normal] %- is mono \definefield [Email] [line] [ShortLine] [] [pra...@wxs.nl] \starttext \startTEXpage[offset=1ex] \field [Email] [E

Re: [NTG-context] Fields and JS Calculations

2009-11-23 Thread Hans Hagen
] [height=18pt,width=15em,align=middle,frame=off] [height=18pt,width=20em,align=right,style=\tfx,frame=on] \definefield[textA] [line] [lineABC] [] [] \definefield[textB] [line] [lineABC] [] [] \definefield[textC] [line] [lineABC] [] [] \starttext Calculate the addition: A + B = C\par

Re: [NTG-context] Fields and JS Calculations

2009-11-22 Thread jeroen muskee
=18pt,width=20em,align=right,style=\tfx,,frame=on] \definefield[textA] [line] [lineABC] [] [] \definefield[textB] [line] [lineABC] [] [] \definefield[textC] [line] [lineABC] [] [] \startJScode{Calculate} AFSimple_Calculate(SUM, new Array (textA, textB)); \stopJScode Calculate

[NTG-context] Fields and JS Calculations

2009-11-21 Thread jeroen muskee
value to JS caluclation and show the result into another field. Thanks Jeroen \setupcolors[state=start] \setupinteraction[state=start] \starttext \definefield[textdensity] [line] [linedensity] [] [] \definefield[textdepth] [line] [linedepth] [] [] \definefield[textpressure

[NTG-context] Howto add a # sign to a \button URL?

2009-05-12 Thread Oliver Heins
not work. I also tried some extensive use of \noexpand and \expandafter, but it failed, too. Obviously, there's some \csname...\endcsname stuff going on when creating the URL. TIA, olli Here's a minimal example: \setupcolors[state=start] \setupinteraction[state=start] \starttext \definefield

[NTG-context] MP color and interaction (alpha)

2009-01-08 Thread Peter Rolf
Hi, seems that color support is also broken in case of interaction. I get no red frame for the attached example. Best wishes, Peter \setupcolors[state=start] \setupinteraction[state=start] \starttext \definesymbol[no][] \definefield[check-me][check][setup3][yes,no][no] \setupfield[setup3][n

[NTG-context] pdf forms

2008-05-30 Thread Bernhard Boser
field length} \definefield [Email] [line] [ShortLine] [] [EMAIL PROTECTED] Field 2: \field [Email] [your email] \stoptext Thanks! Bernhard ___ If your question is of interest to others as well, please add

Re: [NTG-context] pdf forms

2008-05-30 Thread Lutz Haseloff
: % interface=en tex=pdfetex output=pdftex \starttext Field 1: \fillinfield[name]{text that defines field length} \definefield [Email] [line] [ShortLine] [] [EMAIL PROTECTED] Field 2: \field [Email] [your email] \stoptext Thanks! Bernhard

[NTG-context] Widgets with luatex

2008-04-08 Thread Lutz Haseloff
\setupinteraction[state=start] \starttext \setupfield [UglySetup] [width=6em, height=1.2\lineheight, location=low] \definefield [Ugly] [choice] [UglySetup] [ugly,awful,bad] [ugly] Text text \field[Ugly] text text. \stoptext I use ConTeXt ver: 2008.03.24 23:24 MKIV fmt: 2008.4.2 int: english/english

[NTG-context] JavaScript conflicts

2008-01-22 Thread Zhichu Chen
= font.Digital ; this.dirty = false } var timeout = app.setInterval(start_clock(),1000); \stopJSpreamble % Field of clock \useJSscripts[fld] \definefield [time.clock] [line] [TimeLogo] \setupfield [TimeLogo] [horizontal,frame] [width=fit,height=25pt,background=, backgroundcolor=,frame

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
] \definedescription[name][settings] # \definedfont \defineenumeration[names][name][settings] # \defineexternalfigure \definefield[reference][widget type][setup name][names][initial content] \definefieldstack[name][names][settings] \definefiguresymbol[name][text][settings] \definefloat[singular

Re: [NTG-context] Interactive slides---hidden field on every page

2007-09-17 Thread Peter Rolf
. I've got the navigation buttons in the bottom. Now I'd like to add one more button that would open a field on the current page---a field containing the list of content. I'd like it to go to the \Topic I want to discuss and disappear. I tried this: \definefield[Content][check][HelpSetup

[NTG-context] Interactive slides---hidden field on every page

2007-09-12 Thread Michal Kvasnička
containing the list of content. I'd like it to go to the \Topic I want to discuss and disappear. I tried this: \definefield[Content][check][HelpSetup][content][content] \setupfields[reset] \setupfield[HelpSetup] [width=fit,height=fit,frame=off,option={readonly,hidden}] % \definesymbol[content

Re: [NTG-context] luatex and interaction

2007-08-07 Thread Peter Rolf
=JS(Walk_Field{sequence})] \definefield[Walk][check][interaction][empty][empty] \definefieldstack[sequence] [one,two,three,four,five] [frame=off, offset=none,% default offset causes different positioning of walk button and fieldstack ] \defineproperty[interaction][layer][title

Re: [NTG-context] using of field failed when arrange subpages

2007-04-16 Thread Zhichu Chen
=off,option={readonly,hidden}] \def\currenthelp{Help::\abc} \definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc] [helpinfo\abc] \definesymbol [helpinfo\abc] [\SomeHelpText] \def\SomeHelpText% {\framed [width=1.2em,height=fit,align=middle,style=small, frame=on,background=color

[NTG-context] using of field failed when arrange subpages

2007-04-15 Thread Zhichu Chen
,height=fit,frame=off,option={readonly,hidden}] \def\currenthelp{Help::\abc} \definefield [\currenthelp] [check] [HelpSetup] [helpinfo\abc] [helpinfo\abc] \definesymbol [helpinfo\abc] [\SomeHelpText] \def\SomeHelpText% {\framed [width=1.2em,height=fit,align=middle,style=small, frame=on,background

Re: [NTG-context] Still have no idea about how to specify fonts in JavaScript fields.

2006-11-22 Thread Hans Hagen
} var f = this.getField(TestField) ; if (f) { if (f.textFont == Times-Roman) { f.textFont = LMRoman12-Regular; } else { f.textFont = Times-Roman; } } \stopJScode \setupinteraction[state=start] \pdfcompresslevel=0 \starttext \definefield

[NTG-context] beta: bug with transparent colors in fields

2006-11-13 Thread Peter Rolf
on that \setupfield[notes][offset=overlay,frame=off,option={readonly,hidden},% %regionin=JS(Hide_Note), regionout=JS(Hide_Note), username={Test!}, %clickin=JS(Hide_Note), %clickout=JS(Hide_Note), ] \definefield[note

Re: [NTG-context] goto framed

2006-10-17 Thread Peter Rolf
and fieldstack clickin=JS(Walk_Field{sequence})] \definefield[Walk][check][interaction][empty][empty] \definefieldstack[sequence] [one,two,three,four,five] [frame=off, offset=none,% default offset causes different positioning of walk button and fieldstack ] \defineproperty[interaction

Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-06 Thread Peter Rolf
-- \setupinteraction[state=start] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results

Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-05 Thread Peter Rolf
\startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red,align=right,style=type,frame

Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-05 Thread Zhichu Chen
] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit

Re: [NTG-context] How to display JavaScript's values in ConTeXt

2006-09-05 Thread Zhichu Chen
] \startJSpreamble functions used now function do_digit(d) { Stack[Level] += String(d); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit

[NTG-context] How to display JavaScript's values in ConTeXt

2006-09-04 Thread Zhichu Chen
); do_refresh(Level) } \stopJSpreamble \startJScode{digit} do_digit(JS_S_1); \stopJScode \definefield[Stack.1][line][Results][][ \setupfield [Results] [horizontal,frame] [width=fit, height=2cm, frame=on] [height=18pt,width=80pt,align=middle,frame=off] [height=18pt,width=80pt,color=red

Re: [NTG-context] Fieldstack Walk

2006-04-22 Thread Peter Rolf
, framecolor=blue, offset=none,% default offset causes different positioning of walk button and fieldstack clickin=JS(Walk_Field{sequence})] \definefield[Walk][check][interaction][empty][empty] \definefieldstack[sequence] [one,two,three,four,five] [frame=off, offset=none,% default offset

Re: [NTG-context] Fieldstack Walk

2006-04-18 Thread Peter Rolf
}] \definesymbol[sgolds3][\FS{E}] \setupfield[hidden][width=4cm,height=4cm, % frame=off, framecolor=blue, clickin=JS(Walk_Field{fgolds3})] \definefield[Walk][check][hidden][empty][empty] \definefieldstack[fgolds3] [sgolds1,sgolds3a,sgolds3b,sgolds3c,sgolds3] [frame=off,clickin=JS

Re: [NTG-context] Support for FormCalc ?

2006-04-11 Thread Hans Hagen
/numberSymbolscurrencySymbolscurrencySymbol name=symbol€/currencySymbolcurrencySymbol name=isonameEUR/currencySymbolcurrencySymbol name=decimal,/currencySymbol/currencySymbols/locale/localeSet \stopembed \startembed[xfa][postamble] /xdp:xdp \stopembed \setupinteraction[state=start] \starttext \definefield[whatever

Re: [NTG-context] Problem with \mainlanguage[fr] and javascript

2005-05-09 Thread Denis Pinsard
[fr] \setupinteraction[state=start] \definefield [Help] [check] [HelpSetup] [helpinfo] [helpinfo] \setupfields[reset] \setupfield[HelpSetup][option={readonly,hidden}] \definesymbol [helpinfo] [SomeHelpText] \starttext \fitfield[Help] \goto {Help} [JS(Toggle_Hide{Help})]. \stoptext this works ok

Re: [NTG-context] Problem with \mainlanguage[fr] and javascript

2005-05-08 Thread Hans Hagen
Denis Pinsard wrote: Hello, The following code doesn't work with the fr option. It seems that there is interferences with javascript features. Any idea to solve this problem is welcome. Thank you in advance. \mainlanguage[fr] \setupinteraction[state=start] \definefield [Help] [check] [HelpSetup

[NTG-context] Problem with \mainlanguage[fr] and javascript

2005-04-28 Thread Denis Pinsard
Hello, The following code doesn't work with the fr option. It seems that there is interferences with javascript features. Any idea to solve this problem is welcome. Thank you in advance. \mainlanguage[fr] \setupinteraction[state=start] \definefield [Help] [check] [HelpSetup] [helpinfo] [helpinfo

Re: [NTG-context] function that purges 8 bit text?

2005-01-07 Thread Hans Hagen
Henning Hraban Ramm wrote: Will this also work with field names ( \definefield[Übelkübel]... )? no, what happens when you do that? (i can of course add such code in more places) Hans - Hans

Re: [NTG-context] optional arguments, if(nth)argument

2005-01-07 Thread Taco Hoekwater
\definefield[#2][line][Skill][#1]\field[#2] \else % if no second optional arg \definefield[#3][line][Skill][#3]\field[#3] \fi \eTD\eTR} e.g. \SkillField[+8][Aergern]{Ärgern} % works \SkillField[+1]{Labern} % does nothing instead of else \SkillField{Testen

[NTG-context] recursion/loop with counter?

2005-01-06 Thread Henning Hraban Ramm
Hello again! In a form I need a lot of empty, but numbered fields. Can I access the counter of \dorecurse somehow, or is there another loop command? e.g. \dorecurse{20}{\bTR \bTD \LoopCounter bottles of beer \eTD \bTD{\strut} \eTD \eTR} or \dorecurse{20}{\definefield[Fld\LoopCounter][line

Re: [NTG-context] function that purges 8 bit text?

2005-01-06 Thread Henning Hraban Ramm
]{RÄtsch} test \placeindex \stoptext Thank you! Will this also work with field names ( \definefield[Übelkübel]... )? Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http

[NTG-context] optional arguments, if(nth)argument

2005-01-06 Thread Henning Hraban Ramm
\ifsecondargument % if second optional arg is provided \definefield[#2][line][Skill][#1]\field[#2] \else % if no second optional arg \definefield[#3][line][Skill][#3]\field[#3] \fi \eTD\eTR} e.g. \SkillField[+8][Aergern]{Ärgern} % works

[NTG-context] function that purges 8 bit text?

2005-01-05 Thread Henning Hraban Ramm
Hi there! I try to typeset a roleplaying character sheet as PDF form; it contains a table of skills, each line is a \SkillField after this def: \def\SkillField#1#2{\bTR\bTD #1\hfill (#2) \eTD \bTD \definefield[#1][line][SkillSetup][#2]\field[#3]\eTD\eTR} e.g. \SkillField{Climbing}{+8} becomes

[NTG-context] first element in radio field

2004-10-05 Thread Peter Rolf
[radiofield][vertical] % same for horizontal+\hbox [align=right, distance=0mm, offset=none, strut=no, fieldoffset=0mm, frame=on, empty=yes, option=empty, ] \definefield[Radio1][radio][radiofield][Button1,Button2,Button3][Button1] \definesubfield[Button1] [button

Re: [NTG-context] first element in radio field

2004-10-05 Thread Hans Hagen
=on, ] \setupfield[radiofield][vertical] % same for horizontal+\hbox [align=right, distance=0mm, offset=none, strut=no, fieldoffset=0mm, frame=on, empty=yes, option=empty, ] \definefield[Radio1][radio][radiofield][Button1,Button2,Button3][Button1] \definesubfield[Button1] [button

  1   2   >