From: "Rob Heusdens" <robheus@xs4all.nl>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Interactive table of content -- jumps always 1 page too far
Date: Sat, 31 Jan 2015 17:42:40 +0100 [thread overview]
Message-ID: <25c2e51821d5cfdf0eaafd786dd0cb29.squirrel@webmail.xs4all.nl> (raw)
In-Reply-To: <54CCC6AA.9090700@gmx.es>
> Hi Rob,
>
> there is a minimal sample:
>
> \setupcolors[state=start]
> \setupinteraction[state=start, focus=standard]
> \setupinteractionscreen[width=fit]
> \definecombinedlist[content][all]
> \setuphead[part][placehead=yes]
> \starttext
> \completecontent
> \dorecurse{5}
> {\part{Part}
> \input zapf
> \chapter{Chapter}
> \input zapf
> \section{Section}
> \input zapf
> \subsection{Subsection}
> \input zapf}
> \stoptext
>
> It doesnât show what you meant, the link destination is not on the
> heading itself, but on the next paragraph.
>
> I think this should be improved. And I guess it goes unnoticed, because
> after clicking on a link, the browser fits view to page.
>
>> Can anyone guid me on where to look or what to try to solve this nasty
>> problem?
>
> All you can do is to copy your file to a temporary version and start
> commenting commands from the preamble in that temporary version.
>
> This is trial and error. Remove individual commands from preamble,
> compile the document and check the error.
>
> When the error dissapeared, you have probably found its cause. If you
> report it to the mailing list, people will tell whether it is a bug or
> your code needs improvements.
>
> Donât do any other changes to that temporary file. After the bug
> hunting, you should delete that file.
>
> Sorry, but (Iâm afraid) this is the best way I know to hunt undefined
> bugs.
>
> I hope it helps,
>
>
> Pablo
> --
> http://www.ousia.tk
> ____
The code looks likes this, but this examples does not exhibit the same
faulty off-by-1-page interactive page jump behaviour. In the chapters in
the body matter, always directly after a new chapter a section begins (in
this example omitted).
\setupinteraction[state=start]
\setuppagenumbering[location=,alternative=doublesided]
\definemakeup
[titlepage]
[align=middle,style=\bf]
\starttext
\startfrontmatter
Small title
\page
\phantom{x}\vfill
Colofon
\page
\starttitlepagemakeup
BIG TITLE
\stoptitlepagemakeup % <- empty page inserted after here, so page number
becomes 5
\setcounter[userpage][5] % <- without this, the page number = 3
\setuppagenumbering[location={footer,middle}]
\completecontent
\chapter{Introduction} \dorecurse{4}{\input zapf}
\stopfrontmatter
\startbodymatter
\setuppagenumbering[location={header,middle}]
\dorecurse{21}{\chapter{Knuth} \dorecurse{10}{\input knuth}}
\stopbodymatter
\startappendices
\chapter{Appendix} \dorecurse{4}{\input zapf}
\stopappendices
\startbackmatter
\chapter{Notes} \dorecurse{4}{\input zapf}
\stopbackmatter
\stoptext
I'ĺl start trying \enabletrackers...
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-01-31 16:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-31 0:16 Rob Heusdens
2015-01-31 9:54 ` Hans Hagen
2015-01-31 17:53 ` Rob Heusdens
2015-01-31 12:12 ` Pablo Rodriguez
2015-01-31 12:36 ` Hans Hagen
2015-01-31 14:50 ` Pablo Rodriguez
2015-01-31 18:58 ` Rob Heusdens
2015-01-31 22:39 ` Hans Hagen
2015-01-31 16:42 ` Rob Heusdens [this message]
2015-01-31 18:04 ` Wolfgang Schuster
2015-01-31 18:16 ` Rob Heusdens
2015-01-31 18:13 ` Pablo Rodriguez
2015-01-31 18:28 ` Rob Heusdens
2015-01-31 19:02 ` Pablo Rodriguez
2015-01-31 19:11 ` Rob Heusdens
2015-01-31 19:32 ` Pablo Rodriguez
2015-01-31 19:51 ` Rob Heusdens
2015-01-31 20:23 ` Rob Heusdens
2015-01-31 20:31 ` Pablo Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=25c2e51821d5cfdf0eaafd786dd0cb29.squirrel@webmail.xs4all.nl \
--to=robheus@xs4all.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).