ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <context@boede.nl>
To: NTG-Context ConTeXt users <ntg-context@ntg.nl>
Subject: Fields
Date: Sun, 8 Jan 2012 15:20:01 +0100	[thread overview]
Message-ID: <0DD14DC9-A493-463E-93F5-4B28AD5B1555@boede.nl> (raw)

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

Hi all,

With Context MKIV 2012.01.02 21:59 the field mechanism is broken. It works with MKII.
...
interactions    > javascripts > loaded: library 'fld'
! LuaTeX error ...ua70/tex/texmf-context/tex/context/base/scrn-fld.lua:43: incorrect index value -1 for tex.setbox()
stack traceback:
	[C]: ?
	...ua70/tex/texmf-context/tex/context/base/scrn-fld.lua:43: in function 'insertfield'
	<main ctx instance>:1: in main chunk.

system          > tex > error on line 232 in file /Users/willi/Documents/TEXdata/Giuanna/etikettenformular.tex: LuaTeX error  ...
...

Secondly I would like to know whether it is possible to configure the form in such a way, that a specific font is used when the form is filled.

Sample file attached.


[-- Attachment #2: test-form-field.tex --]
[-- Type: application/octet-stream, Size: 1070 bytes --]

% Context file
% Filename: test-form-field.tex
% 
% 08-01-2012
% Copyright (c) 2012 BOEDE. All rights reserved.
%
% \nopdfcompression
% \enabletrackers[context.trace]
% \enabletrackers[system.jobfiles]


\setupbodyfont[palatino,rm,10pt]
\setupinteraction[state=start]

\definefield
   [EtiketteA]
   [text]
   [etikettensetup]
   []
   
\definepapersize[Etiket][height=37.1mm,width=70mm]
\setuppapersize [Etiket][A4,portrait]
\setuppaper
    [topspace=0mm,
    backspace=0mm,
    dx=0.1mm,
    dy=0.1mm,
    nx=3,
    ny=8,
    margin=0pt,
    width=210mm,
    height=297mm]
\setuplayout
    [topspace=5mm,
    backspace=5mm,
    margin=0mm,
    width=middle,
    height=middle,
    header=0mm,
    footer=0mm]
    
% \setuparranging[XY]

\definelayer[Etiket][width=\textwidth, height=\textheight]

\setupfield
   [etikettensetup]
   [offset=0pt,width=60mm,height=27mm, background=,frame=off,style=\ss]
\starttext
 \setlayer
    [Etiket]
    [preset=lefttop]
    {\field[EtiketteA]}
   \startstandardmakeup
           \placelayer[Etiket]
   \stopstandardmakeup
\stoptext

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



Kind regards

Willi



[-- Attachment #4: Type: text/plain, Size: 485 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:[~2012-01-08 14:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-08 14:20 Willi Egger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-11-29 10:28 Fields Willi Egger
2011-11-29 10:55 ` Fields Wolfgang Schuster
2011-11-29 11:38   ` Fields Willi Egger

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=0DD14DC9-A493-463E-93F5-4B28AD5B1555@boede.nl \
    --to=context@boede.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).