* list not following "focus=standard"?
@ 2023-01-30 11:18 Pablo Rodriguez via ntg-context
2023-01-31 11:29 ` Pablo Rodriguez via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-01-30 11:18 UTC (permalink / raw)
To: ConTeXt users; +Cc: Pablo Rodriguez
Dear list,
I have the following sample:
\setupinteraction[state=start, focus=standard]
\starttext
\completecontent
\dorecurse{25}
{\section{Section}
a\footnote{b}}
\stoptext
Using current latest (from 2023.01.26 18:34), destinations for TOC are
pages (/D [ 7 0 R /Fit ]) and destinations for footnotes are named
destinations (/D [ 1 0 R /XYZ 61.900625 141.0443 null ]).
Compare https://pdf.ousia.tk/lst-fnt.pdf#_3 with any link from the TOC.
I‘m afraid this might be a regression from a recently fixed issue.
Could anyone confirm this issue?
Many thanks for your help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list not following "focus=standard"?
2023-01-30 11:18 list not following "focus=standard"? Pablo Rodriguez via ntg-context
@ 2023-01-31 11:29 ` Pablo Rodriguez via ntg-context
0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-01-31 11:29 UTC (permalink / raw)
To: Pablo Rodriguez via ntg-context; +Cc: Pablo Rodriguez
[-- Attachment #1: Type: text/plain, Size: 599 bytes --]
On 1/30/23 12:18, Pablo Rodriguez via ntg-context wrote:
> […]
> I‘m afraid this might be a regression from a recently fixed issue.
Hans,
I see there is a new strc-lst.lmt. So comparing it with strc-lst.lmt, I
saw what is missing:
- if cheat and references then
+ local v = usedviews[i]
+ if cheat and cheats[v] and references then
-- this permits runs=2 with interactivity
local internal = references.internal
usedinternals[internal] = true
Proper diff attached.
Many thanks for your help,
Pablo
[-- Attachment #2: fix-lst.diff --]
[-- Type: text/x-patch, Size: 660 bytes --]
--- strc-lst.lmt 2023-01-31 12:23:12.240689092 +0100
+++ mkxl/strc-lst.lmt 2023-01-31 12:23:32.170871203 +0100
@@ -962,7 +962,8 @@
local numberdata = listentry.numberdata
local references = listentry.references
local special = specials and numberdata and specials[zerostrippedconcat(numberdata.numbers,".")] or ""
- if cheat and references then
+ local v = usedviews[i]
+ if cheat and cheats[v] and references then
-- this permits runs=2 with interactivity
local internal = references.internal
usedinternals[internal] = true
[-- Attachment #3: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list not following "focus=standard"
2022-10-16 11:28 ` Pablo Rodriguez via ntg-context
@ 2022-10-16 11:48 ` Pablo Rodriguez via ntg-context
0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-10-16 11:48 UTC (permalink / raw)
To: Pablo Rodriguez via ntg-context; +Cc: Pablo Rodriguez
On 10/16/22 13:28, Pablo Rodriguez via ntg-context wrote:
> [...]
> So, line 40 of that file ("local cheat = true") needs a conditional that
> I’m not able to provide (I have no idea how it would read).
>
> Basically, if \setupinteraction[focus=standard], please don’t cheat 😅.
Or even more accurate, cheat only if focus in \setupinteraction is fit
or tight (other options include positions inside pages).
Pab
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: list not following "focus=standard"
2022-10-14 21:24 list not following "focus=standard" Pablo Rodriguez via ntg-context
@ 2022-10-16 11:28 ` Pablo Rodriguez via ntg-context
2022-10-16 11:48 ` Pablo Rodriguez via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-10-16 11:28 UTC (permalink / raw)
To: Pablo Rodriguez via ntg-context; +Cc: Pablo Rodriguez
On 10/14/22 23:24, Pablo Rodriguez via ntg-context wrote:
> Hi Hans,
>
> I have the following sample:
>
> \setupinteraction[state=start,
> focus=standard]
> \starttext
> \completecontent
> \section{section}
> a\footnote{\contextversion}
> \stoptext
Hans,
I have found the cause of the misbehavior in strc-lst.lua, lines 898-903:
if cheat and references then
-- this permits runs=2 with interactivity
local internal = references.internal
usedinternals[internal] = true
usedviews [internal] = references.view
end
So, line 40 of that file ("local cheat = true") needs a conditional that
I’m not able to provide (I have no idea how it would read).
Basically, if \setupinteraction[focus=standard], please don’t cheat 😅.
Sorry, but I don’t even know which file (strc-lst.lua or lpdf-ano) has
to be modified.
I hope the issue is clearer now.
Many thanks for your help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* list not following "focus=standard"
@ 2022-10-14 21:24 Pablo Rodriguez via ntg-context
2022-10-16 11:28 ` Pablo Rodriguez via ntg-context
0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-10-14 21:24 UTC (permalink / raw)
To: ConTeXt users; +Cc: Pablo Rodriguez
Hi Hans,
I have the following sample:
\setupinteraction[state=start,
focus=standard]
\starttext
\completecontent
\section{section}
a\footnote{\contextversion}
\stoptext
With version from 2022.09.11 20:44, the link from the TOC reads in the
PDF file:
4 0 obj
<<
/D [ 1 0 R /Fit ]
/S /GoTo
>>
endobj
Instead of being a named destination, such as in:
5 0 obj
<<
/D (#3)
/S /GoTo
>>
endobj
11 0 obj
<<
/D [ 1 0 R /XYZ 61.65861 129.0214 null ]
>>
endobj
40 0 obj
<<
/Limits [ (#3) (content) ]
/Names [ (#3) 11 0 R (*3) 10 0 R (content) 7 0 R ]
>>
endobj
This is the problem originally reported by Sylvain
(https://mailman.ntg.nl/pipermail/ntg-context/2022/106836.html).
I apologize, but I’m afraid I cannot provide a patch.
Could you take a look at it?
Many thanks for your help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-31 11:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30 11:18 list not following "focus=standard"? Pablo Rodriguez via ntg-context
2023-01-31 11:29 ` Pablo Rodriguez via ntg-context
-- strict thread matches above, loose matches on Subject: below --
2022-10-14 21:24 list not following "focus=standard" Pablo Rodriguez via ntg-context
2022-10-16 11:28 ` Pablo Rodriguez via ntg-context
2022-10-16 11:48 ` Pablo Rodriguez via ntg-context
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).