* Fields
@ 2012-01-08 14:20 Willi Egger
0 siblings, 0 replies; 4+ messages in thread
From: Willi Egger @ 2012-01-08 14:20 UTC (permalink / raw)
To: NTG-Context ConTeXt users
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fields...
2011-11-29 10:55 ` Fields Wolfgang Schuster
@ 2011-11-29 11:38 ` Willi Egger
0 siblings, 0 replies; 4+ messages in thread
From: Willi Egger @ 2011-11-29 11:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello Wolfgang,
great thank you for the immediate fix!
Willi
On 29 Nov 2011, at 11:55, Wolfgang Schuster wrote:
> return makelinechild(name,enhance(specification,"MultiLine"))
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Fields...
2011-11-29 10:28 Fields Willi Egger
@ 2011-11-29 10:55 ` Wolfgang Schuster
2011-11-29 11:38 ` Fields Willi Egger
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2011-11-29 10:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 29.11.2011 um 11:28 schrieb Willi Egger:
> Hi Hans,
>
> I tried to build a form with fields. However at this moment it looks likely, that there is a problem with fields. I get the following error:
>
> interactions > javascripts > loaded: library 'fld'
> ! LuaTeX error .../base/lpdf-fld.lua:823: attempt to call global 'makelinechine' (a nil value)
> stack traceback:
> .../base/lpdf-fld.lua:823: in function <.../base/lpdf-fld.lua:822>
> (tail call): ?
> (tail call): ?
> .../base/scrn-fld.lua:43: in function 'insertfield'
> <main ctx instance>:1: in main chunk.
>
> I attach a minimal example.
lpdf-fld.lua (line 822):
function methods.text(name,specification)
-- return makelinechine(name,enhance(specification,"MultiLine"))
return makelinechild(name,enhance(specification,"MultiLine"))
end
Wolfgang
___________________________________________________________________________________
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] 4+ messages in thread
* Fields...
@ 2011-11-29 10:28 Willi Egger
2011-11-29 10:55 ` Fields Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Willi Egger @ 2011-11-29 10:28 UTC (permalink / raw)
To: NTG-Context ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 580 bytes --]
Hi Hans,
I tried to build a form with fields. However at this moment it looks likely, that there is a problem with fields. I get the following error:
interactions > javascripts > loaded: library 'fld'
! LuaTeX error .../base/lpdf-fld.lua:823: attempt to call global 'makelinechine' (a nil value)
stack traceback:
.../base/lpdf-fld.lua:823: in function <.../base/lpdf-fld.lua:822>
(tail call): ?
(tail call): ?
.../base/scrn-fld.lua:43: in function 'insertfield'
<main ctx instance>:1: in main chunk.
I attach a minimal example.
Kind regards
Willi
[-- Attachment #2: test-fields.tex --]
[-- Type: application/octet-stream, Size: 466 bytes --]
% Context file
% Filename: test-fields.tex
%
% 29-11-2011
% Copyright (c) 2011 BOEDE. All rights reserved.
%
% \nopdfcompression
% \enabletrackers[context.trace]
% \enabletrackers[system.jobfiles]
\setupinteraction[state=start]
\showframe
\definefield
[Myfield]
[text]
[Myfieldsetup]
[Paste your text]
\setupfield
[Myfieldsetup]
[offset=4pt,width=70mm,height=30mm,framecolor=blue]
\starttext
Here appears the field: \field[Myfield]
\stoptext
[-- Attachment #3: 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-08 14:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-08 14:20 Fields Willi Egger
-- 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
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).