Files that used to process are now getting this error message: ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value) stack traceback: ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage' <main ctx instance>:1: in main chunk. system > tex > error on line 24 in file c_2012-01_Johnson.tex: LuaTeX error … 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... I am running ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english (standalone) Is there fix for this? Many thanks. Alan
Hi Alan,
I do not know if this helps. As I do not have the source, but I assume that should be notegetdeltapage.
There are other possiblities.
If that does not help. start looking for getdeltapage. Maybe, it was not hook in correct. at one point,
or somebody for to use a dummy function.
regards
Keith.
Am 03.08.2012 um 15:04 schrieb Alan Bowen
Files that used to process are now getting this error message:
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value) stack traceback: ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage' <main ctx instance>:1: in main chunk.
system > tex > error on line 24 in file c_2012-01_Johnson.tex: LuaTeX error … 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...
I am running ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english (standalone)
Is there fix for this?
Many thanks.
Alan
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hi, Keith—
the relevant lines in strc-not.lua are:
notes.getsymbolpage = getsymbolpage
notes.getnumberpage = getnumberpage
notes.getdeltapage = getdeltapage
function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end
function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end
function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end
In strc-not.mkiv, the lines are:
\def\strc_notes_set_style_color_special
{\iftrialtypesetting
% keep
\else\ifx\currentcolorparameter\empty
\scratchcounter\ctxcommand{notedeltapage("\currentnote",\currentnotenumber)}\relax
% todo calculate once
\setlocationcolorspecified\scratchcounter
\fi\fi}
\unexpanded\def\strc_notes_inject_pointer % todo calculate once
{\ifcase\ctxcommand{notedeltapage("\currentnote",\currentnotenumber)}\relax
% unknown
\or
% same page
\or
\noteparameter\c!symbolcommand{\symbol[\v!note:\v!nextpage]}%
\or
\noteparameter\c!symbolcommand{\symbol[\v!note:\v!previouspage]}%
\fi}
But I have no idea what to make of this.
Alan
On Fri, Aug 3, 2012 at 10:04 AM, Keith J. Schultz
Hi Alan,
I do not know if this helps. As I do not have the source, but I assume that should be notegetdeltapage. There are other possiblities.
If that does not help. start looking for getdeltapage. Maybe, it was not hook in correct. at one point, or somebody for to use a dummy function.
regards Keith.
Am 03.08.2012 um 15:04 schrieb Alan Bowen
: Files that used to process are now getting this error message:
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value) stack traceback: ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage' <main ctx instance>:1: in main chunk.
system > tex > error on line 24 in file c_2012-01_Johnson.tex: LuaTeX error …
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...
I am running ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english (standalone)
Is there fix for this?
Many thanks.
Alan
___________________________________________________________________________________ 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
___________________________________________________________________________________
___________________________________________________________________________________ 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
___________________________________________________________________________________
Alan wrote:
the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage
function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end
Three functions are defined directly above:
L297: local function getsymbolpage(tag,n)
L307: local function getnumberpage(tag,n)
L317: function notes.deltapage(tag,n)
There is no reference to /\
Hi, Keith—
the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage
function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end
In strc-not.mkiv, the lines are:
\def\strc_notes_set_style_color_special
{\iftrialtypesetting
% keep
\else\ifx\currentcolorparameter\empty
\scratchcounter\ctxcommand{notedeltapage("\currentnote",\currentnotenumber)}\relax % todo calculate once
\setlocationcolorspecified\scratchcounter
\fi\fi}
\unexpanded\def\strc_notes_inject_pointer % todo calculate once
{\ifcase\ctxcommand{notedeltapage("\currentnote",\currentnotenumber)}\relax
% unknown
\or
% same page
\or
\noteparameter\c!symbolcommand{\symbol[\v!note:\v!nextpage]}%
\or
\noteparameter\c!symbolcommand{\symbol[\v!note:\v!previouspage]}%
\fi}
But I have no idea what to make of this.
Alan
On Fri, Aug 3, 2012 at 10:04 AM, Keith J. Schultz
wrote: Hi Alan,
I do not know if this helps. As I do not have the source, but I assume that should be notegetdeltapage. There are other possiblities.
If that does not help. start looking for getdeltapage. Maybe, it was not hook in correct. at one point, or somebody for to use a dummy function.
regards Keith.
Am 03.08.2012 um 15:04 schrieb Alan Bowen
: Files that used to process are now getting this error message:
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value) stack traceback: ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage' <main ctx instance>:1: in main chunk.
system > tex > error on line 24 in file c_2012-01_Johnson.tex: LuaTeX error …
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...
I am running ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english (standalone)
Is there fix for this?
Many thanks.
Alan
___________________________________________________________________________________ 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
___________________________________________________________________________________
___________________________________________________________________________________ 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
___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Thanks, Sietse, but
local function getdeltapage(tag,n)
seems to mess up \definenote (the error appears when running context
--make).
And if one plows ahead anyway, the original error remains.
Alan
On Fri, Aug 3, 2012 at 11:01 AM, Sietse Brouwer
Alan wrote:
the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage
function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end
Three functions are defined directly above:
L297: local function getsymbolpage(tag,n) L307: local function getnumberpage(tag,n) L317: function notes.deltapage(tag,n)
There is no reference to /\
Cheers, Sietse
On Fri, Aug 3, 2012 at 4:36 PM, Alan Bowen
wrote: Hi, Keith—
the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage
function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end
In strc-not.mkiv, the lines are:
\def\strc_notes_set_style_color_special
{\iftrialtypesetting
% keep
\else\ifx\currentcolorparameter\empty
\scratchcounter\ctxcommand{notedeltapage("\currentnote",\currentnotenumber)}\relax
% todo calculate once
\setlocationcolorspecified\scratchcounter
\fi\fi}
\unexpanded\def\strc_notes_inject_pointer % todo calculate once
{\ifcase\ctxcommand{notedeltapage("\currentnote",\currentnotenumber)}\relax
% unknown
\or
% same page
\or
\noteparameter\c!symbolcommand{\symbol[\v!note:\v!nextpage]}%
\or
\noteparameter\c!symbolcommand{\symbol[\v!note:\v!previouspage]}%
\fi}
But I have no idea what to make of this.
Alan
On Fri, Aug 3, 2012 at 10:04 AM, Keith J. Schultz
wrote: Hi Alan,
I do not know if this helps. As I do not have the source, but I assume that should be notegetdeltapage. There are other possiblities.
If that does not help. start looking for getdeltapage. Maybe, it was not hook in correct. at one point, or somebody for to use a dummy function.
regards Keith.
Am 03.08.2012 um 15:04 schrieb Alan Bowen
: Files that used to process are now getting this error message:
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to
call
global 'getdeltapage' (a nil value) stack traceback: ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage' <main ctx instance>:1: in main chunk.
system > tex > error on line 24 in file c_2012-01_Johnson.tex: LuaTeX error …
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...
I am running ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english (standalone)
Is there fix for this?
Many thanks.
Alan
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
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
___________________________________________________________________________________
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
___________________________________________________________________________________
___________________________________________________________________________________ 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
___________________________________________________________________________________
Sietse wrote (at 17:00):
so I suggest turning L317 into local function getdeltapage(tag,n)
Alan Bowen
local function getdeltapage(tag,n) seems to mess up \definenote (the error appears when running context --make). And if one plows ahead anyway, the original error remains.
No error here. What \definenote-related error do you get when running context --make? Cheers, Sietse
When I change line 317 in strc-not.lua to read
local function notes.deltapage(tag,n)
and run context --make,
I get
system > tex > error on line 1701 in file
/Applications/ConTeXt/tex/texmf-context/tex/context/base/strc-not.mkvi:
LuaTeX error ...
1691 {\let\strc_notes_set_bodyfont\relax
1692 \restoreglobalbodyfont
1693 \switchtobodyfont[\noteparameter\c!bodyfont]%
1694 \setupalign[\noteparameter\c!align]}
1695
1696 %D The footnote mechanism defaults to a traditional one
1697 %D column way of showing them. By default we precede them by
1698 %D a small line.
1699
1700 \definenote [\v!footnote]
1701 >> \definenote [\v!endnote ] [\c!location=\v!none] % else no break
1702
1703 %D Compatibility macros:
1704
1705 \unexpanded\def\setupfootnotedefinition{\setupnotedefinition
[\v!footnote]}
1706 \unexpanded\def\setupfootnotes {\setupnote
[\v!footnote]}
1707 \def\footnotetext {\setnotetext
[\v!footnote]}
1708 \unexpanded\def\placefootnotes
{\dodoubleempty\strc_notes_place_footnotes [\v!footnote]}
1709 \unexpanded\def\placelocalfootnotes
{\dodoubleempty\strc_notes_place_local_footnotes[\v!footnote]}
1710 \unexpanded\def\startlocalfootnotes {\startlocalnotes
[\v!footnote]} % alleen footnote
1711 \unexpanded\def\stoplocalfootnotes {\stoplocalnotes }
\ctxcommand ...\directlua \zerocount {commands.#1}
<inserted text> ...insertionnumber \currentnote )}
\ifx \currentnoteparent
\e...
\define_note ...te }\fi \fi \the \everydefinenote
\let \currentnote
\saved_d...
\syst_helpers_triple_empty_two_spaced ...{#2}][][]
<to be read again>
\definenote
l.1701 \definenote
[\v!endnote ] [\c!location=\v!none] % else no break
?
Alan
On Fri, Aug 3, 2012 at 1:03 PM, Sietse Brouwer
Sietse wrote (at 17:00):
so I suggest turning L317 into local function getdeltapage(tag,n)
Alan Bowen
wrote (at 17:42): local function getdeltapage(tag,n) seems to mess up \definenote (the error appears when running context --make). And if one plows ahead anyway, the original error remains.
No error here. What \definenote-related error do you get when running context --make?
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
___________________________________________________________________________________
I think you accidentally misread my fix. Happens to the best of us. Original text: function notes.deltapage(tag,n) You tried: local function notes.deltapage(tag,n) You should try: local function getdeltapage(tag,n) That should work. Cheers, Sietse
And it does indeed, Sietse! I had misread your suggestion. My apologies and
many thanks for your help and patience.
All best, Alan
On Fri, Aug 3, 2012 at 5:20 PM, Sietse Brouwer
I think you accidentally misread my fix. Happens to the best of us. Original text: function notes.deltapage(tag,n) You tried: local function notes.deltapage(tag,n) You should try: local function getdeltapage(tag,n)
That should work.
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
___________________________________________________________________________________
On 3-8-2012 17:01, Sietse Brouwer wrote:
boundary), so I suggest turning L317 into local function getdeltapage(tag,n)
indeed ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, 3 Aug 2012, Alan Bowen wrote:
Files that used to process are now getting this error message:
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value)
This bug is still present in the latest beta. Aditya
On 9-8-2012 23:25, Aditya Mahajan wrote:
On Fri, 3 Aug 2012, Alan Bowen wrote:
Files that used to process are now getting this error message:
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value)
This bug is still present in the latest beta.
Ah ... name typo .. I'll fix it (you can fix the function name a few lines above where you grep it). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Aditya Mahajan
-
Alan Bowen
-
Hans Hagen
-
Keith J. Schultz
-
Sietse Brouwer