ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sietse Brouwer <sbbrouwer@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Luatex error in latest beta (standalone)
Date: Fri, 3 Aug 2012 17:01:25 +0200	[thread overview]
Message-ID: <CAF=dkzxMXvGBD5cqXWPTUNLGH+GSXHQ+ZNio_J4KR+gD3yhtZQ@mail.gmail.com> (raw)
In-Reply-To: <CAFMOkGXxVGY0eKynbPFfZNyYKhu9+G=TKzsNS_B6qcFkA-+OYQ@mail.gmail.com>

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 /\<deltapage/ anywhere (`\<` is a word
boundary), so I suggest turning L317 into
    local function getdeltapage(tag,n)
and see whether that solves your problem. I can't test it myself,
lacking a minimal (non)working example. (They should be called Minimal
Illustrative Examples, really, or Minimal Complete Examples. But that
ship has long sailed.)

Cheers,
Sietse

On Fri, Aug 3, 2012 at 4:36 PM, Alan Bowen <bowenalan03@gmail.com> 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 <keithjschultz@web.de>
> 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 <bowenalan03@gmail.com>:
>>
>> 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
___________________________________________________________________________________

  reply	other threads:[~2012-08-03 15:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-03 13:04 Alan Bowen
2012-08-03 14:04 ` Keith J. Schultz
2012-08-03 14:36   ` Alan Bowen
2012-08-03 15:01     ` Sietse Brouwer [this message]
2012-08-03 15:42       ` Alan Bowen
2012-08-03 17:03         ` Sietse Brouwer
2012-08-03 18:04           ` Alan Bowen
2012-08-03 21:20             ` Sietse Brouwer
2012-08-03 22:00               ` Alan Bowen
2012-08-03 16:10       ` Hans Hagen
2012-08-09 21:25 ` Aditya Mahajan
2012-08-09 22:37   ` Hans Hagen

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='CAF=dkzxMXvGBD5cqXWPTUNLGH+GSXHQ+ZNio_J4KR+gD3yhtZQ@mail.gmail.com' \
    --to=sbbrouwer@gmail.com \
    --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).