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 <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150917/d9453cc7/attachment-0001.html>
------------------------------
Message: 2
Date: Thu, 17 Sep 2015 19:29:20 +0200
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [NTG-context] suppress header-footers
Message-ID: <55FAF870.1020107@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
> Pablo Rodriguez <mailto:oinos@gmx.es>
> 17. September 2015 17:55
>
> Many thanks for your reply, Wolfgang.
>
> I thought that blank implied the how the next page would look like, but
> not the insertion of a new page.
The blank keyword doesn’t insert a new page, it sets only a flag which
hides all page backgrounds
(colors, overlays or headers) on the given page but the flag lasts only
for a single page.
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150917/4381038e/attachment-0001.html>
------------------------------
Message: 3
Date: Thu, 17 Sep 2015 19:51:14 +0200
From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [NTG-context] comparing strings
Message-ID: <55FAFD92.10606@gmx.es>
Content-Type: text/plain; charset=utf-8
On 09/17/2015 07:26 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 17. September 2015 18:47
>> [...]
>> \unexpanded\def\MyUpper#1%
>> {\ctxlua{document.gouppercase("#1")}}
>>
>> \starttext
>> \doif{\MyUpper{adfalkjfaeñf}}{\MyUpper{aDFAlkjfaeñf}}{equal}{unequal}
>>
>> Why are are the first two strings unequal?
>
> You can’t use a unexpandable (which you created with \unexpanded) in
> ConTeXts \doifXXX commands.
Many thanks for your reply, Wolfgang.
I see. I thought it was better to add \unexpanded before a pure \def.
Is it \unexpaded required before a \def with more than one argument?
(Sorry, but expansion is a concept which I’m not familiar with.)
> PS. You need \doifelse and not \doif.
I realized this too sending the message to the list.
Pablo
--
http://www.ousia.tk
------------------------------
Message: 4
Date: Fri, 18 Sep 2015 09:56:31 +0600
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [NTG-context] formatting of reference links
Message-ID: <E8F4E533-7123-4D2E-A7DB-40E156AA400B@fiee.net>
Content-Type: text/plain; charset=windows-1252
Am 2015-09-17 um 16:32 schrieb Wolfgang Schuster <schuster.wolfgang@gmail.com>:
>> Henning Hraban Ramm 17. September 2015 07:49
>>
>> Thank you, I had only tried style=normal
> This is wrong because “style=normal” is in most cases the same as "style=\tf” which is not what
> you want when the surrounding text is italic or bold.
Maybe, but it didn’t do anything. The surroundings were upright not-bold, the reference links were still upright bold.
> The example below shows why "style=NAME” is not always the same as “style=\COMMAND”.
Thank you!
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)
------------------------------
Message: 5
Date: Fri, 18 Sep 2015 08:34:49 +0200
From: Christoph Reller <christoph.reller@gmail.com>
To: ntg-context <ntg-context@ntg.nl>
Subject: Re: [NTG-context] \reference and \setupinteraction[focus=...]
not working
Message-ID:
<CAO8LnPGjn5U+UNKS8Dczc6RhnVRNCMvO3ArDhSC4jSEnFRNQ3w@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi,
Any news on this? Is this a luatex problem or a ConTeXt problem? I am glad
to help if you can point me to the location in the source code where things
go astray.
Cheers,
Christoph
On Mon, 14 Sep 2015 14:40:43 +0200, <christoph.reller@gmail.com> wrote:
> Hi,
>
> In the following MWE, the interactive link work only when setting
> focus=fit.
>
> The resulting PDF differs as follows:
>
> - focus=fit: This PDF has no named destinations. The link annotations on
> page 3 include destinations directly, and these destinations are correct.
>
> - focus=<something else>: This PDF has named destinations in Root->Names
> with names (#2) and (#3) and these named destinations are completely
> correct. The problem is that the link annotations on page 3 reference named
> destinations by the names (tuf) and (knu).
>
> \setupinteraction[state=start,focus=standard] %focus=fit
> \starttext
> \startsection[title=Hi There]
> \reference[tuf]{Tufte}%
> \input tufte
> \page
> \reference[knu]{Knuth}%
> \input knuth
> \page
> \about[tuf] and \about[knu].
> \stopsection
> \stoptext
>
> This seems to be a bug. If so, then please confirm and tell if you intend
> to fix this.
>
> Interestingly, with focus=standard, automatically generated links (e.g.
> with sections and \about) work as expected.
>
> Regards,
> Christoph
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150918/0a7dc286/attachment-0001.html>
------------------------------
Message: 6
Date: Fri, 18 Sep 2015 11:25:38 +0200
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [NTG-context] formatting of reference links
Message-ID: <55FBD892.6070306@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
> Henning Hraban Ramm <mailto:texml@fiee.net>
> 18. September 2015 05:56
> Am 2015-09-17 um 16:32 schrieb Wolfgang Schuster<schuster.wolfgang@gmail.com>:
>
>>> Henning Hraban Ramm 17. September 2015 07:49
>>>
>>> Thank you, I had only tried style=normal
>> This is wrong because “style=normal” is in most cases the same as "style=\tf” which is not what
>> you want when the surrounding text is italic or bold.
>
> Maybe, but it didn’t do anything. The surroundings were upright not-bold, the reference links were still upright bold.
Can you make a example for this because I get a normal upright number
when I use style=normal.
\setupinteraction[state=start,contrastcolor=,color=,style=normal]
\starttext
\section[test]{Section}
There is a section on \at{page}[test].
{\bf There is a section on \at{page}[test].}
\stoptext
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150918/3286b879/attachment.html>
------------------------------
Subject: Digest Footer
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
------------------------------
End of ntg-context Digest, Vol 135, Issue 34
********************************************