Re: [NTG-context] [DKIM Failure] Re: reference containing parentheses causes trouble

2019-07-10 Thread Peter Rolf
Am 10.07.2019 um 13:36 schrieb Sanjoy Mahajan:
> On 2019-07-10 13:04, Peter Rolf  wrote:
>
>> Hi Sanjoy,
>>
>> I think it's just the 'normal' limitations you have when setting a
>> variable/id name. Special characters, like parenthesis, are not allowed
>> here.
>
> Peter,
>
> I think that's right, but there are small differences.  For example,
> variables in most languages don't allow hyphens, because they are
> interpreted as minus signs.  But ConTeXt references do allow them (and I
> use them all the time).  That may be why I expected free reign to use
> any characters in the reference (except, as you say, for whitespace!)
> and wrote my script accordingly to turn problem titles into references
> (by replacing whitespace with a hyphen).
>

I agree (I always use the underscore instead of space). In general it's
best to avoid problems if you can.
If you use messy third party data as reference things are totally
different. In my current project I have one dead link out of 1275 (also
caused by parenthesis). Not enough to make me write some extra code to
deal with it.

Peter
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-10 Thread Wolfgang Schuster

Sanjoy Mahajan schrieb am 10.07.2019 um 04:15:

Dear List,

Warning: The following may be a bug or feature or just my
misunderstanding!  It seems that parentheses cause trouble in
references.

Braces are used for the argument of reference actions.

\setupinteraction[state=start]

\starttext

\goto{Second page}[page(2)]

\page

\goto{ConTeXt garden}[url(http://wiki.contextgarden.net)]

\stoptext

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Strange error updatng LMTX

2019-07-10 Thread Andres Conrado
When updating my LMTX installation today, I got this:

tex error   > tex error on line 179 in file
/home/conrado/Apps/lmtx/tex/texmf-context/tex/context/base/mkiv/strc-flt.mkvi:
! Undefined control sequence

 \c!compressdistance
=\emwidth
\mult_interfaces_get_parameters_item ...2->\if ,#1
  ,\expandafter \mult_interf...
\mult_interfaces_get_parameters_indeed ...tem #1,]
  ,
\setup_float ...es_get_parameters {\??float :}[#1]
  \the \everysetupfloat \fi ...
 \syst_helpers_double_empty_two_nop
\par
l.179


169\c!bottomoffset=\zeropoint,
170\c!freeregion=\v!yes,
171   %\c!local=,
172   %\c!bottombefore=, % e.g. \vfill
173   %\c!bottomafter=,
174   %\c!default=, % default location
175\c!sidethreshold=.5\strutdp, % set to "old" to check with old method
176\c!numbering=\v!yes,
177\c!compress=\v!yes, % when possible pack floats when flushing
178\c!compressdistance=\emwidth]
179 >>
180 \setupfloatframed
181   [\c!frame=\v!off,
182\c!offset=\v!overlay,
183\c!strut=\v!no]
184
185 \appendtoks
186 
\doifelse{\floatparameter\c!compress}\v!yes\settrue\setfalse\c_page_floats_pack_flushed
187 
\d_page_floats_compress_distance\floatparameter\c!compressdistance\relax
188 \to \everysetupfloat
189


The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., '\hobx'), type 'I' and the correct
spelling (e.g., 'I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Seems to affect the floats mechanism.

Andrés Conrado Montoya
http://chiquitico.org
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Split extreme tables across tables

2019-07-10 Thread Thangalin
The following document does not split across tables, which is a little
surprising:

\starttext
\startplacetable[title={Average Annual Temperatures}]
\startxtable
\startxtablehead[head]
\startxrow
\startxcell[align=middle,width={0.10\textwidth}] Year \stopxcell
\startxcell[align=middle,width={0.14\textwidth}] Value \stopxcell
\stopxrow
\stopxtablehead
\startxtablebody[body]
\dorecurse{100}{%
\startxrow
\startxcell[align=middle,width={0.10\textwidth}] 1880 \stopxcell
\startxcell[align=middle,width={0.14\textwidth}] 0.1146 \stopxcell
\stopxrow}
\stopxtablebody
\startxtablefoot[foot]
\startxrow
\startxcell[align=middle,width={0.10\textwidth}] 2018 \stopxcell
\startxcell[align=middle,width={0.14\textwidth}] 1.014 \stopxcell
\stopxrow
\stopxtablefoot
\stopxtable
\stopplacetable
\stoptext

I'd have thought the default behaviour would be to split because the
alternative is for the table content to scroll into the footer and off
the page.

A fix is to use:

\startplacetable[title={Average Annual Temperatures}, location={split}]

However, when the document is generated using pandoc, injecting
location={split} is not feasible.

It would be convenient if there was a way to use setups to override
the location option for \startplacetable. Henri Menke provided a work
around:

let\oldstartplacetable\startplacetable
\unexpanded\def\startplacetable{\dosingleempty\newstartplacetable}
\def\newstartplacetable[#1]{\oldstartplacetable[#1,location={split}]}

See: https://tex.stackexchange.com/a/499453/2148

This does the job, but it doesn't feel like the ConTeXt way.

How would you use setups to enable page splitting on extreme tables?

Thank you!
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Split extreme tables across pages

2019-07-10 Thread Thangalin
Sorry! The subject line should be, "Split extreme tables across pages"...

> This does the job, but it doesn't feel like the ConTeXt way.
>
> How would you use setups to enable page splitting on extreme tables?
>
> Thank you!
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange error updatng LMTX

2019-07-10 Thread Henri Menke
\c!compressdistance is defined in strc-lnt.mkvi which is loaded *after*
strc-flt.mkvi (where it is used) in context.mkiv.  This has to be fixed
by Hans.

Cheers, Henri

On 11/07/19 2:45 PM, Andres Conrado wrote:
> When updating my LMTX installation today, I got this:
> 
> tex error   > tex error on line 179 in file
> /home/conrado/Apps/lmtx/tex/texmf-context/tex/context/base/mkiv/strc-flt.mkvi:
> ! Undefined control sequence
> 
>  \c!compressdistance
> =\emwidth
> \mult_interfaces_get_parameters_item ...2->\if ,#1
>   ,\expandafter 
> \mult_interf...
> \mult_interfaces_get_parameters_indeed ...tem #1,]
>   ,
> \setup_float ...es_get_parameters {\??float :}[#1]
>   \the \everysetupfloat \fi 
> ...
>  \syst_helpers_double_empty_two_nop
> \par
> l.179
> 
> 
> 169\c!bottomoffset=\zeropoint,
> 170\c!freeregion=\v!yes,
> 171   %\c!local=,
> 172   %\c!bottombefore=, % e.g. \vfill
> 173   %\c!bottomafter=,
> 174   %\c!default=, % default location
> 175\c!sidethreshold=.5\strutdp, % set to "old" to check with old 
> method
> 176\c!numbering=\v!yes,
> 177\c!compress=\v!yes, % when possible pack floats when flushing
> 178\c!compressdistance=\emwidth]
> 179 >>
> 180 \setupfloatframed
> 181   [\c!frame=\v!off,
> 182\c!offset=\v!overlay,
> 183\c!strut=\v!no]
> 184
> 185 \appendtoks
> 186 
> \doifelse{\floatparameter\c!compress}\v!yes\settrue\setfalse\c_page_floats_pack_flushed
> 187 
> \d_page_floats_compress_distance\floatparameter\c!compressdistance\relax
> 188 \to \everysetupfloat
> 189
> 
> 
> The control sequence at the end of the top line
> of your error message was never \def'ed. If you have
> misspelled it (e.g., '\hobx'), type 'I' and the correct
> spelling (e.g., 'I\hbox'). Otherwise just continue,
> and I'll forget about whatever was undefined.
> 
> Seems to affect the floats mechanism.
> 
> Andrés Conrado Montoya
> http://chiquitico.org
> 
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Split extreme tables across pages

2019-07-10 Thread Thangalin
Got it.

\setupfloat[table][default={here,split}]

See: https://wiki.contextgarden.net/Command/setupfloat#Example

On Wed, Jul 10, 2019 at 7:32 PM Thangalin  wrote:
>
> Sorry! The subject line should be, "Split extreme tables across pages"...
>
> > This does the job, but it doesn't feel like the ConTeXt way.
> >
> > How would you use setups to enable page splitting on extreme tables?
> >
> > Thank you!
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] an object representation of the node list of a paragraph: a lua table or a JSON

2019-07-10 Thread mf

Hello list,
i'd like having an object representation of a typeset paragraph or even 
a page, preferably as a JSON object, but a Lua table is equally good.


My reference is section "4.4 Node lists" of the CLD manual.

Before writing an iterator over the list of nodes of a paragraph, 
figuring out all the possible nodes and their fields, i'm wondering if 
there's some hidden tool in the ConTeXt coffer to simplify the task.


Best wishes,
Massimiliano
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Fwd: [garden] debug getinfo error

2019-07-10 Thread Taco Hoekwater


> Begin forwarded message:
> 
> From: husu...@t-online.de
> Subject: [garden] debug getinfo error
> Date: 10 July 2019 at 11:52:55 CEST
> To: garden...@contextgarden.net
> 
> 
> There is a lua error after "debug.getinfo()". Why?
> 
> Thanks for help
> G.Lauber
> 
> -
> mtx-context | run 1: luatex 
> --fmt="/opt/context/beta-2018.09.01/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
>  --jobname="texweb" 
> --lua="/opt/context/beta-2018.09.01/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
>  --c:currentrun=1 --c:fulljobname="./texweb.tex" --c:input="./texweb.tex" 
> --c:kindofrun=1 --c:maxnofruns=9 
> --c:texmfbinpath="/opt/context/beta-2018.09.01/tex/texmf-linux-64/bin" 
> "cont-yes.mkiv"
> 
> This is LuaTeX, Version 1.10.1 (TeX Live 2019) 
> system commands enabled.
> open source > level 1, order 1, name 
> '/opt/context/beta-2018.09.01/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system  > 
> system  > ConTeXt  ver: 2019.07.04 12:29 MKIV beta  fmt: 2019.7.10  
> int: english/english
> system  > 
> system  > 'cont-new.mkiv' loaded
> open source > level 2, order 2, name 
> '/opt/context/beta-2018.09.01/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system  > beware: some patches loaded from cont-new.mkiv
> close source> level 2, order 2, name 
> '/opt/context/beta-2018.09.01/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system  > files > jobname 'texweb', input './texweb', result 'texweb'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > level 2, order 3, name '/tmp/uhd8RE/texweb.tex'
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> 
> lua error   > lua error on line 6 in file /tmp/uhd8RE/texweb.tex:
> 
> [ctxlua]:1: attempt to call a nil value (field 'getinfo')
> 
> 1 % generated by live script
> 2 \setupexternalfigures[location={local,global,default}]
> 3 \starttext
> 4 \startlua
> 5 debug.getinfo(2)
> 6 >>  \stoplua
> 7 \stoptext
> 8 
> 
> mtx-context | fatal error: return code: 256
> 
> 

Taco Hoekwater
Elvenkind BV




___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] preventing page break

2019-07-10 Thread Floris van Manen
Hello List,

What is the preferred way in context to prevent a page break happening
between the heading(s) of a section and, for instance, the first 3 lines
of the following paragraph?

\section(one)
\subsection(one two}
%--- no page break here
One two three for ...
One two three for ...
One two three for ...
%- from here page breaks allowed




Thanks
.Floris


pEpkey.asc
Description: application/pgp-keys
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-10 Thread Peter Rolf
Hi Sanjoy,

I think it's just the 'normal' limitations you have when setting a
variable/id name. Special characters, like parenthesis, are not allowed
here.

Even whitespace can be problematic. Yesterday I had a problem with a
reference (data driven) that has a trailing space (obviously a typo).
This space was 'eaten' by TeX, resulting in a broken link. Embracing the
argument helped here, but I haven't tested what happens, if you use
multiple spaces in a row...


Greetings,  Peter


Am 10.07.2019 um 04:15 schrieb Sanjoy Mahajan:
> Dear List,
>
> Warning: The following may be a bug or feature or just my
> misunderstanding!  It seems that parentheses cause trouble in
> references. MNWE:
>
>   \starttext
>   \section[sec:one(two)]{One}
>
>   As you see in sec.~\in[sec:one(two)],
>
>   \stoptext
>
> The "in sec.~\in[sec:one(two)]" typesets as "in sec. ??" and the log
> shows:
>
>   references  > start missing references
>
>   references  >1  [][sec:one(two)]
>
>   references  > stop missing references
>
> (It all works fine upon deleting "(two)" throughout.)
>
> Is this behavior known and expected?  If it is, I'll add a note to the
> "References" page on the wiki.
>
> -Sanjoy
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Fwd: [garden] debug getinfo error

2019-07-10 Thread Hans Hagen


context --debug 



Begin forwarded message:

*From: *husu...@t-online.de 
*Subject: **[garden] debug getinfo error*
*Date: *10 July 2019 at 11:52:55 CEST
*To: *garden...@contextgarden.net 


There is a lua error after "debug.getinfo()". Why?

Thanks for help
G.Lauber

-
mtx-context | run 1: luatex 
--fmt="/opt/context/beta-2018.09.01/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="texweb" 
--lua="/opt/context/beta-2018.09.01/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" 
--c:currentrun=1 --c:fulljobname="./texweb.tex" 
--c:input="./texweb.tex" --c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/opt/context/beta-2018.09.01/tex/texmf-linux-64/bin" 
"cont-yes.mkiv"


This is LuaTeX, Version 1.10.1 (TeX Live 2019)
system commands enabled.
open source > level 1, order 1, name 
'/opt/context/beta-2018.09.01/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

system  >
system  > ConTeXt  ver: 2019.07.04 12:29 MKIV beta  fmt: 
2019.7.10  int: english/english

system  >
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'/opt/context/beta-2018.09.01/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system  > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name 
'/opt/context/beta-2018.09.01/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'texweb', input './texweb', result 
'texweb'

fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/tmp/uhd8RE/texweb.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded

lua error   > lua error on line 6 in file /tmp/uhd8RE/texweb.tex:

[ctxlua]:1: attempt to call a nil value (field 'getinfo')

1 % generated by live script
2 \setupexternalfigures[location={local,global,default}]
3 \starttext
4 \startlua
5 debug.getinfo(2)
6 >>  \stoplua
7 \stoptext
8

mtx-context | fatal error: return code: 256




Taco Hoekwater
Elvenkind BV





___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] an object representation of the node list of a paragraph: a lua table or a JSON

2019-07-10 Thread Hans Hagen

On 7/10/2019 12:02 PM, mf wrote:

Hello list,
i'd like having an object representation of a typeset paragraph or even 
a page, preferably as a JSON object, but a Lua table is equally good.


My reference is section "4.4 Node lists" of the CLD manual.

Before writing an iterator over the list of nodes of a paragraph, 
figuring out all the possible nodes and their fields, i'm wondering if 
there's some hidden tool in the ConTeXt coffer to simplify the task.

\starttext
\setbox0\vbox{\input tufte }
\ctxlua{inspect(nodes.totable(tex.box[0]))}
\stoptext

\starttext
\setbox0\vbox{\input tufte }
\ctxlua{
require("util-jsn")
inspect(utilities.json.tojson(nodes.totable(tex.box[0])))
}
\stoptext


(or use the export)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] [DKIM Failure] Re: reference containing parentheses causes trouble

2019-07-10 Thread Sanjoy Mahajan
On 2019-07-10 13:04, Peter Rolf  wrote:

> Hi Sanjoy,
>
> I think it's just the 'normal' limitations you have when setting a
> variable/id name. Special characters, like parenthesis, are not allowed
> here.

Peter,

I think that's right, but there are small differences.  For example,
variables in most languages don't allow hyphens, because they are
interpreted as minus signs.  But ConTeXt references do allow them (and I
use them all the time).  That may be why I expected free reign to use
any characters in the reference (except, as you say, for whitespace!)
and wrote my script accordingly to turn problem titles into references
(by replacing whitespace with a hyphen).

-Sanjoy
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] reference containing parentheses causes trouble

2019-07-10 Thread Hans Hagen

On 7/10/2019 1:04 PM, Peter Rolf wrote:

Hi Sanjoy,

I think it's just the 'normal' limitations you have when setting a
variable/id name. Special characters, like parenthesis, are not allowed
here.

Even whitespace can be problematic. Yesterday I had a problem with a
reference (data driven) that has a trailing space (obviously a typo).
This space was 'eaten' by TeX, resulting in a broken link. Embracing the
argument helped here, but I haven't tested what happens, if you use
multiple spaces in a row...
indeed, references are actually a little language in their own (always 
have been)


\enabletrackers[structures.referencing.analyzing]

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___