On Tue, 15 Dec 2009, Aditya Mahajan wrote:
I will update the module so that email and website work with mkiv.
Attached is a corrected version. Hans, can something like \doifdefinedurl be added to the core? I am currently using %D We need a macro to check if a url is defined using \type{\useURL} or not. \def\doifdefinedurl#1{\doifdefined{\v!file:::#1}} %D \MKIV\ uses a different internal structure to store urls, so we use a %D different method. \startmode[*mkiv] \startluacode ptj = ptj or {} function ptj.doifdefinedurl(name, action) if jobreferences.urls.data[name] and name ~= "" then tex.sprint(tex.ctxcatcodes, action) end end \stopluacode \def\doifdefinedurl#1#2{\ctxlua{ptj.doifdefinedurl("#1", \!!bs\detokenize{#2}\!!es)}} \stopmode Bookmarks are not working, but that seems to be a bug in current MKIV. Minimal example \setupinteraction[state=start] \placebookmarks[section,subsection][section] \starttext \section{One} \input tufte \subsection{two} \input knuth \stoptext In MkIV I do not get any bookmarks. Aditya