ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug with setupinteraction and footnote
@ 2012-08-05  6:01 Otared Kavian
  2012-08-05  7:52 ` Sietse Brouwer
  0 siblings, 1 reply; 2+ messages in thread
From: Otared Kavian @ 2012-08-05  6:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

With the latest beta (ConTeXt  ver: 2012.08.04 14:00 MKIV  fmt: 2012.8.5) the following use of \setupinteraction[state=start] and \footnote causes a luatex error:

%%%%%%
\setupinteraction[state=start]
\starttext
While testing footnotes\footnote{This is a footnote.} we encounter a bug with \type{\setupinteraction}.
\stoptext
%%%%%%

The error message starts with:
> ! LuaTeX error ...imal/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value)
> stack traceback:
> 	...imal/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage'
> 	<main ctx instance>:1: in main chunk.

and finishes with:

> \ctxcommand ...\directlua \zerocount {commands.#1}
>                                                   
> \strc_notes_set_style_color_special ...tenumber )}
>                                                   \relax \setlocationcolorsp...
> \strc_notes_set_style_color_inline ...lor_special 
>                                                   \fi 
> \strc_notes_inject_symbol ...xtstyle \c!textcolor 
>                                                   \hbox \strc_notes_get_refe...
> \195>notation:note ...l \strc_notes_inject_symbol 
>                                                   \else \unskip \unskip \glo...
> \strc_notations_command_nop ...handler \endcsname 
>                                                   \strc_constructions_finali...
> l.6 ...ing footnotes\footnote{This is a footnote.}
>                                                    we encounter a bug with \...
> ? 
> Process aborted
> 


By the way just before line 351 of strc-not.lua, on lines 345--347 are the equalities written in this way on purpose?
Best regards: OK

___________________________________________________________________________________
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] 2+ messages in thread

* Re: Bug with setupinteraction and footnote
  2012-08-05  6:01 Bug with setupinteraction and footnote Otared Kavian
@ 2012-08-05  7:52 ` Sietse Brouwer
  0 siblings, 0 replies; 2+ messages in thread
From: Sietse Brouwer @ 2012-08-05  7:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Otared,

This is the same error as in the "Luatex error in latest beta
(standalone)" thread.

In line 317 of strc-not.lua, change this:
     function notes.deltapage(tag,n)
into this:
     local function getdeltapage(tag,n)

Cheers,
Sietse
___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2012-08-05  7:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-05  6:01 Bug with setupinteraction and footnote Otared Kavian
2012-08-05  7:52 ` Sietse Brouwer

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).