Re: [NTG-context] \reference and \setupinteraction[focus=...] not working
Hi everybody,
An even more minimal example
\setupinteraction[state=start,focus=standard] % <- defect
%\setupinteraction[state=start, focus=fit] % <- works
\starttext
\reference[tuf]{Tufte}
\input tufte
\page
\about[tuf].
\stoptext
The resulting PDF has an annotation that points to a named destination
"(tuf)". But "Names" in the PDF root contains then key "(#1)" and a correct
destination as value. It is only the key in the Names tree that is wrong.
Unfortunately, I cannot locate the code where this is written (maybe
strc-ref.lua?).
Any help is welcome.
Regards,
Christoph
On Fri, Sep 18, 2015 at 11:25 AM,
Send ntg-context mailing list submissions to ntg-context@ntg.nl
To subscribe or unsubscribe via the World Wide Web, visit http://www.ntg.nl/mailman/listinfo/ntg-context or, via email, send a message with subject or body 'help' to ntg-context-request@ntg.nl
You can reach the person managing the list at ntg-context-owner@ntg.nl
When replying, please edit your Subject line so it is more specific than "Re: Contents of ntg-context digest..."
Today's Topics:
1. Re: comparing strings (Wolfgang Schuster) 2. Re: suppress header-footers (Wolfgang Schuster) 3. Re: comparing strings (Pablo Rodriguez) 4. Re: formatting of reference links (Henning Hraban Ramm) 5. Re: \reference and \setupinteraction[focus=...] not working (Christoph Reller) 6. Re: formatting of reference links (Wolfgang Schuster)
----------------------------------------------------------------------
Message: 1 Date: Thu, 17 Sep 2015 19:26:45 +0200 From: Wolfgang Schuster
To: mailing list for ConTeXt users Subject: Re: [NTG-context] comparing strings Message-ID: <55FAF7D5.8080409@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Pablo Rodriguez mailto:oinos@gmx.es 17. September 2015 18:47 Dear list,
I have the following sample:
\startluacode function document.gouppercase(str) tex.print(str:upper()) end \stopluacode
\unexpanded\def\MyUpper#1% {\ctxlua{document.gouppercase("#1")}}
\starttext \doif{\MyUpper{adfalkjfaeñf}}{\MyUpper{aDFAlkjfaeñf}}{equal}{unequal}
\ctxlua{if string.upper("adfalkjfaeñf") == string.upper("aDFAlkjfaeñf") then tex.print("equal") else tex.print("unequal") end} \stoptext
Why are are the first two strings unequal? You can’t use a unexpandable (which you created with \unexpanded) in ConTeXts \doifXXX commands.
PS. You need \doifelse and not \doif.
Wolfgang
participants (1)
-
Christoph Reller