From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: References with forms
Date: Thu, 04 Feb 1999 12:22:23 +0100 [thread overview]
Message-ID: <36B982EF.5F87F04F@wxs.nl> (raw)
In-Reply-To: <000901be4fab$f126b400$0c01a8c1@gilbert.login-bv.com>
Gilbert van den Dobbelsteen wrote:
> I am having trouble with fields and references. I want to do this:
>
> \definefield[test] [..... the usual blabla]
>
> \setupfield[test][clickin=PrintDocument]
>
> \field[test]
>
> But context complains:
>
> Unknown reference PrintDocument
>
> Why? PrintDocument can normally be used:
>
> \goto{Print this lovely document}[PrintDocument]
>
> and the docu says that `clickin' expects a reference (like JS(printit) or
> something like that). O yeah, the javascript stuff works fine, but the
> finally generated document **must** be compatible with the old forms
> plug-in.
The clickin etc keys concern events, so it must be something JavaScript
and not some named action. So, you have to use javascripts here.
You can take a look at java-fil.tex, which shows you how to print only
the current page or a page range. That file also shows you some tricks,
like logical references (you can change the meaning halfway a document)
and the feature that context automatically picks up function definitions
from preambles. Saves some typing.
> Note: I do not wish to use the \goto syntax, because the \field stuff allows
> me to put a field *out-side* my page border which is visible (though the
> ConTeXt generated text and graphics is clipped away).
(I'm not sure what you mean, but beware of tricky undocumented pdf
things.)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl
ConTeXt and PPCHTeX site: www.ntg.nl/context
-----------------------------------------------------------------
prev parent reply other threads:[~1999-02-04 11:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-03 19:32 Gilbert van den Dobbelsteen
1999-02-04 11:22 ` Hans Hagen [this message]
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=36B982EF.5F87F04F@wxs.nl \
--to=pragma@wxs.nl \
--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).