* Re: Problem with PDF bookmarks (outline) [not found] <mailman.248.1415111268.2277.ntg-context@ntg.nl> @ 2014-11-04 19:00 ` Robert Blackstone 2014-11-05 9:34 ` Michał Goliński 2014-11-05 11:33 ` Gareth Jones 0 siblings, 2 replies; 10+ messages in thread From: Robert Blackstone @ 2014-11-04 19:00 UTC (permalink / raw) To: ntg-context On 4 Nov 2014, at 15:27 , Michał Goliński <golinski@amu.edu.pl> wrote > > A few weeks back I've asked here about the structure of titles, as the > PDF bookmarks didn't work for me. I was given a solution, which should > work, but unfortunately it doesn't. I don't know if this is a bug or is > this expected behaviour. > > For the file: > > \setupinteraction[state=start] > \placebookmarks[part,chapter,section] > \setupinteractionscreen[option=bookmark] > \starttext > \placecontent > > \startfrontmatter > \startchapter[title=Prologue] > \input knuth > \stopchapter > \stopfrontmatter > > \startpart[title={Part A}] > \startchapter[title=One] > \input knuth > \stopchapter > \stoppart > > \startbackmatter > \startchapter[title=Epilogue] > \input knuth > \stopchapter > \stopbackmatter > \stoptext > > > ConTeXt (Mk IV) generates a PDF file which has only one item in the > bookmarks -- the Prologue. The other chapters show up only if the file > is changed with > > \placebookmarks[chapter,section] > > but then of course there is no sign of Part A in the bookmarks. > > I would expect the bookmarks to look like this: > > Prologue > Part A > One > Epilogue Hi, I think it is a very recent bug. Only the standalone I installed today gives the same wrong result that you get. My previous standalones, of which the most recent was installed two days ago, on november 2, all give the correct result. That is, the bookmarks look OK but Part A starts on empty page 3 (no head) and Chapter 1 starts on page 4. Is that really what you want? Best regards, Robert Blackstone ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with PDF bookmarks (outline) 2014-11-04 19:00 ` Problem with PDF bookmarks (outline) Robert Blackstone @ 2014-11-05 9:34 ` Michał Goliński 2014-11-05 11:36 ` Hans Hagen 2014-11-05 13:43 ` Hans Hagen 2014-11-05 11:33 ` Gareth Jones 1 sibling, 2 replies; 10+ messages in thread From: Michał Goliński @ 2014-11-05 9:34 UTC (permalink / raw) To: mailing list for ConTeXt users W dniu 2014-11-04 20:00, Robert Blackstone napisał(a): > On 4 Nov 2014, at 15:27 , Michał Goliński <golinski@amu.edu.pl> wrote >> >> A few weeks back I've asked here about the structure of titles, as the >> PDF bookmarks didn't work for me. I was given a solution, which should >> work, but unfortunately it doesn't. I don't know if this is a bug or >> is >> this expected behaviour. >> >> For the file: >> >> \setupinteraction[state=start] >> \placebookmarks[part,chapter,section] >> \setupinteractionscreen[option=bookmark] >> \starttext >> \placecontent >> >> \startfrontmatter >> \startchapter[title=Prologue] >> \input knuth >> \stopchapter >> \stopfrontmatter >> >> \startpart[title={Part A}] >> \startchapter[title=One] >> \input knuth >> \stopchapter >> \stoppart >> >> \startbackmatter >> \startchapter[title=Epilogue] >> \input knuth >> \stopchapter >> \stopbackmatter >> \stoptext >> >> >> ConTeXt (Mk IV) generates a PDF file which has only one item in the >> bookmarks -- the Prologue. The other chapters show up only if the file >> is changed with >> >> \placebookmarks[chapter,section] >> >> but then of course there is no sign of Part A in the bookmarks. >> >> I would expect the bookmarks to look like this: >> >> Prologue >> Part A >> One >> Epilogue > > Hi, > I think it is a very recent bug. Only the standalone I installed > today gives the same wrong result that you get. > My previous standalones, of which the most recent was installed two > days ago, on november 2, all give the correct result. That is, the > bookmarks look OK but Part A starts on empty page 3 (no head) and > Chapter 1 starts on page 4. > Is that really what you want? > > > Best regards, > Robert Blackstone The file I am really trying to compile has also: \setuphead[part][placehead=yes] I've stripped that when making an MWE as it doesn't change the behaviour of the bookmarks. I am quite sure, that the problem was in beta much older than few days (although I do not update daily, so it might have been ok in between). The behaviour is the same in TeXLive 2014. Tangentially related problem. The table of contents in the file differs between the two versions (beta and TeXLive), in TeXLive I get: Prologue 1 Part A 1.1 One Epilogue and in beta with the same file I get only: 1 Part A 1.1 One Regards Michał ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with PDF bookmarks (outline) 2014-11-05 9:34 ` Michał Goliński @ 2014-11-05 11:36 ` Hans Hagen 2014-11-05 13:01 ` Alan BRASLAU 2014-11-05 13:43 ` Hans Hagen 1 sibling, 1 reply; 10+ messages in thread From: Hans Hagen @ 2014-11-05 11:36 UTC (permalink / raw) To: mailing list for ConTeXt users On 11/5/2014 10:34 AM, Michał Goliński wrote: > W dniu 2014-11-04 20:00, Robert Blackstone napisał(a): >> On 4 Nov 2014, at 15:27 , Michał Goliński <golinski@amu.edu.pl> wrote >>> >>> A few weeks back I've asked here about the structure of titles, as the >>> PDF bookmarks didn't work for me. I was given a solution, which should >>> work, but unfortunately it doesn't. I don't know if this is a bug or is >>> this expected behaviour. >>> >>> For the file: >>> >>> \setupinteraction[state=start] >>> \placebookmarks[part,chapter,section] >>> \setupinteractionscreen[option=bookmark] >>> \starttext >>> \placecontent >>> >>> \startfrontmatter >>> \startchapter[title=Prologue] >>> \input knuth >>> \stopchapter >>> \stopfrontmatter >>> >>> \startpart[title={Part A}] >>> \startchapter[title=One] >>> \input knuth >>> \stopchapter >>> \stoppart >>> >>> \startbackmatter >>> \startchapter[title=Epilogue] >>> \input knuth >>> \stopchapter >>> \stopbackmatter >>> \stoptext >>> >>> >>> ConTeXt (Mk IV) generates a PDF file which has only one item in the >>> bookmarks -- the Prologue. The other chapters show up only if the file >>> is changed with >>> >>> \placebookmarks[chapter,section] >>> >>> but then of course there is no sign of Part A in the bookmarks. >>> >>> I would expect the bookmarks to look like this: >>> >>> Prologue >>> Part A >>> One >>> Epilogue >> >> Hi, >> I think it is a very recent bug. Only the standalone I installed >> today gives the same wrong result that you get. >> My previous standalones, of which the most recent was installed two >> days ago, on november 2, all give the correct result. That is, the >> bookmarks look OK but Part A starts on empty page 3 (no head) and >> Chapter 1 starts on page 4. >> Is that really what you want? >> >> >> Best regards, >> Robert Blackstone > > The file I am really trying to compile has also: > > \setuphead[part][placehead=yes] > > I've stripped that when making an MWE as it doesn't change the behaviour > of the bookmarks. > > I am quite sure, that the problem was in beta much older than few days > (although I do not update daily, so it might have been ok in between). > The behaviour is the same in TeXLive 2014. > > > > Tangentially related problem. The table of contents in the file differs > between the two versions (beta and TeXLive), in TeXLive I get: > > Prologue > 1 Part A > 1.1 One > Epilogue > > and in beta with the same file I get only: > > 1 Part A > 1.1 One bookmarks assume some hierarchical structure and the parts mixed with no parts and sections confuses it ... i can have a look at it but not today ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with PDF bookmarks (outline) 2014-11-05 11:36 ` Hans Hagen @ 2014-11-05 13:01 ` Alan BRASLAU 2014-11-05 14:36 ` Michał Goliński 0 siblings, 1 reply; 10+ messages in thread From: Alan BRASLAU @ 2014-11-05 13:01 UTC (permalink / raw) To: mailing list for ConTeXt users On Wed, 5 Nov 2014 12:36:38 +0100 Hans Hagen <pragma@wxs.nl> wrote: > bookmarks assume some hierarchical structure and the parts mixed with > no parts and sections confuses it ... i can have a look at it but not > today I use parts, not chapters in frontmatter/backmatter when using parts in bodymatter. Alan ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with PDF bookmarks (outline) 2014-11-05 13:01 ` Alan BRASLAU @ 2014-11-05 14:36 ` Michał Goliński 2014-11-05 14:53 ` Alan BRASLAU 2014-11-05 14:56 ` Hans Hagen 0 siblings, 2 replies; 10+ messages in thread From: Michał Goliński @ 2014-11-05 14:36 UTC (permalink / raw) To: mailing list for ConTeXt users W dniu 2014-11-05 14:01, Alan BRASLAU napisał(a): > On Wed, 5 Nov 2014 12:36:38 +0100 > Hans Hagen <pragma@wxs.nl> wrote: > >> bookmarks assume some hierarchical structure and the parts mixed with >> no parts and sections confuses it ... i can have a look at it but not >> today > > I use parts, not chapters in frontmatter/backmatter > when using parts in bodymatter. > > Alan Thanks to Hans's reply I am able to make it work with the current structure. I am nevertheless curious, how one could change the chapters in frontmatter/backmatter to parts without affecting the numbering of later parts (or correct the numbering, \decrementnumber[part] doesn't seem to work). I have tried to mimic the chapter style with \definehead[chapterpart][part][command=\MyFancyChapterStyle, number=no, incrementnumber=yes] And it either disrupts the numbering (incrementnumber=yes) or doesn't show up in bookmarks (incrementnumber=no). I have tried also a "ghost part" to use around chapters: \definehead[ghostpart][part][placehead=no, incrementnumber=no] but turns out it doesn't help: \startpart[title=First] \startchapter[title=A] \stopchapter \stoppart \startghostpart \startchapter[title=Epilogue] \stopchapter \stopghostpart Epilogue is still a child of the First part in the bookmarks. Regards, Michał ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with PDF bookmarks (outline) 2014-11-05 14:36 ` Michał Goliński @ 2014-11-05 14:53 ` Alan BRASLAU 2014-11-05 14:56 ` Hans Hagen 1 sibling, 0 replies; 10+ messages in thread From: Alan BRASLAU @ 2014-11-05 14:53 UTC (permalink / raw) To: Michał Goliński; +Cc: mailing list for ConTeXt users On Wed, 5 Nov 2014 15:36:38 +0100 Michał Goliński <golinski@amu.edu.pl> wrote: > W dniu 2014-11-05 14:01, Alan BRASLAU napisał(a): > > On Wed, 5 Nov 2014 12:36:38 +0100 > > Hans Hagen <pragma@wxs.nl> wrote: > > > >> bookmarks assume some hierarchical structure and the parts mixed > >> with no parts and sections confuses it ... i can have a look at it > >> but not today > > > > I use parts, not chapters in frontmatter/backmatter > > when using parts in bodymatter. > > > > Alan > > Thanks to Hans's reply I am able to make it work with the current > structure. > > I am nevertheless curious, how one could change the chapters in > frontmatter/backmatter to parts without affecting the numbering of > later parts (or correct the numbering, \decrementnumber[part] doesn't > seem to work). > I use \definestructureresetset [default] [0,0] [1] % do not reset parts and chapters \setuphead [part] [ sectionresetset=default,conversion=Romannumerals, placehead=yes, bodypartlabel=part, % strange that this must be defined... ] and in frontmatter the parts do not get numbered, in bodymatter they get Part I Title ... in backmatter they do not get numbered. Bookmarks work fine. Note that only acrobat (now defunct) is the only reader that I know that handles bookmarks. Alan ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with PDF bookmarks (outline) 2014-11-05 14:36 ` Michał Goliński 2014-11-05 14:53 ` Alan BRASLAU @ 2014-11-05 14:56 ` Hans Hagen 1 sibling, 0 replies; 10+ messages in thread From: Hans Hagen @ 2014-11-05 14:56 UTC (permalink / raw) To: ntg-context On 11/5/2014 3:36 PM, Michał Goliński wrote: > I am nevertheless curious, how one could change the chapters in > frontmatter/backmatter to parts without affecting the numbering of later > parts (or correct the numbering, \decrementnumber[part] doesn't seem to > work). the magic words is 'resetset' and you can search for it on the wiki and in the test suite .. you can control when gets reset at what level Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with PDF bookmarks (outline) 2014-11-05 9:34 ` Michał Goliński 2014-11-05 11:36 ` Hans Hagen @ 2014-11-05 13:43 ` Hans Hagen 1 sibling, 0 replies; 10+ messages in thread From: Hans Hagen @ 2014-11-05 13:43 UTC (permalink / raw) To: ntg-context On 11/5/2014 10:34 AM, Michał Goliński wrote: > W dniu 2014-11-04 20:00, Robert Blackstone napisał(a): >> On 4 Nov 2014, at 15:27 , Michał Goliński <golinski@amu.edu.pl> wrote >>> >>> A few weeks back I've asked here about the structure of titles, as the >>> PDF bookmarks didn't work for me. I was given a solution, which should >>> work, but unfortunately it doesn't. I don't know if this is a bug or is >>> this expected behaviour. >>> >>> For the file: >>> >>> \setupinteraction[state=start] >>> \placebookmarks[part,chapter,section] >>> \setupinteractionscreen[option=bookmark] >>> \starttext >>> \placecontent >>> >>> \startfrontmatter >>> \startchapter[title=Prologue] >>> \input knuth >>> \stopchapter >>> \stopfrontmatter >>> >>> \startpart[title={Part A}] >>> \startchapter[title=One] >>> \input knuth >>> \stopchapter >>> \stoppart >>> >>> \startbackmatter >>> \startchapter[title=Epilogue] >>> \input knuth >>> \stopchapter >>> \stopbackmatter >>> \stoptext >>> >>> >>> ConTeXt (Mk IV) generates a PDF file which has only one item in the >>> bookmarks -- the Prologue. The other chapters show up only if the file >>> is changed with >>> >>> \placebookmarks[chapter,section] >>> >>> but then of course there is no sign of Part A in the bookmarks. >>> >>> I would expect the bookmarks to look like this: >>> >>> Prologue >>> Part A >>> One >>> Epilogue >> >> Hi, >> I think it is a very recent bug. Only the standalone I installed >> today gives the same wrong result that you get. >> My previous standalones, of which the most recent was installed two >> days ago, on november 2, all give the correct result. That is, the >> bookmarks look OK but Part A starts on empty page 3 (no head) and >> Chapter 1 starts on page 4. >> Is that really what you want? >> >> >> Best regards, >> Robert Blackstone > > The file I am really trying to compile has also: > > \setuphead[part][placehead=yes] > > I've stripped that when making an MWE as it doesn't change the behaviour > of the bookmarks. > > I am quite sure, that the problem was in beta much older than few days > (although I do not update daily, so it might have been ok in between). > The behaviour is the same in TeXLive 2014. > > > > Tangentially related problem. The table of contents in the file differs > between the two versions (beta and TeXLive), in TeXLive I get: > > Prologue > 1 Part A > 1.1 One > Epilogue > > and in beta with the same file I get only: > > 1 Part A > 1.1 One The bookmark mechanism was largely redone so that one could control teh list in detail (in lua). It also is possible now to inherit bookmarks from included pages from pdf files. In the process some restrictions on structure were added, but also some more options. I'll try to catch this fuzzy structure case (also issuing a message), but one option is to add \setupbookmarks [sectionblock=yes] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problem with PDF bookmarks (outline) 2014-11-04 19:00 ` Problem with PDF bookmarks (outline) Robert Blackstone 2014-11-05 9:34 ` Michał Goliński @ 2014-11-05 11:33 ` Gareth Jones 1 sibling, 0 replies; 10+ messages in thread From: Gareth Jones @ 2014-11-05 11:33 UTC (permalink / raw) To: mailing list for ConTeXt users On 04/11/14 19:00, Robert Blackstone wrote: > Hi, > I think it is a very recent bug. Only the standalone I installed today gives the same wrong result that you get. The PDF index seems broken this week for me too. Last Monday’s build generated the bookmarks properly, but this week there are none. The set-ups I’m using are: \pdfcompresslevel=9 \mainlanguage [en-gb] \setupinteraction [ state=start, title={...}, author={Gareth Jones}, color=black, style=normal, ] \setupinteractionscreen [option=bookmark] \placebookmarks [all] % Some font stuff trimmed. \definehead [spec] [title] [style=\tfd, alternative=middle] \definehead [phase] [section] [style=\ss\bfc] \definehead [feature] [subsection] [style=\ss\bfb] \definehead [changes] [subsubsection] [style=\ss\tfa] \definedescription [change] [width=3.6cm] \starttext Previously all but the spec/title header were bookmarked. I’ve no idea if this is in any way related to Michał’s problem though. Thanks, Gareth ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Problem with PDF bookmarks (outline) @ 2014-11-04 12:29 Michał Goliński 0 siblings, 0 replies; 10+ messages in thread From: Michał Goliński @ 2014-11-04 12:29 UTC (permalink / raw) To: ntg-context A few weeks back I've asked here about the structure of titles, as the PDF bookmarks didn't work for me. I was given a solution, which should work, but unfortunately it doesn't. I don't know if this is a bug or is this expected behaviour. For the file: \setupinteraction[state=start] \placebookmarks[part,chapter,section] \setupinteractionscreen[option=bookmark] \starttext \placecontent \startfrontmatter \startchapter[title=Prologue] \input knuth \stopchapter \stopfrontmatter \startpart[title={Part A}] \startchapter[title=One] \input knuth \stopchapter \stoppart \startbackmatter \startchapter[title=Epilogue] \input knuth \stopchapter \stopbackmatter \stoptext ConTeXt (Mk IV) generates a PDF file which has only one item in the bookmarks -- the Prologue. The other chapters show up only if the file is changed with \placebookmarks[chapter,section] but then of course there is no sign of Part A in the bookmarks. I would expect the bookmarks to look like this: Prologue Part A One Epilogue Regards Michał ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-11-05 14:56 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <mailman.248.1415111268.2277.ntg-context@ntg.nl> 2014-11-04 19:00 ` Problem with PDF bookmarks (outline) Robert Blackstone 2014-11-05 9:34 ` Michał Goliński 2014-11-05 11:36 ` Hans Hagen 2014-11-05 13:01 ` Alan BRASLAU 2014-11-05 14:36 ` Michał Goliński 2014-11-05 14:53 ` Alan BRASLAU 2014-11-05 14:56 ` Hans Hagen 2014-11-05 13:43 ` Hans Hagen 2014-11-05 11:33 ` Gareth Jones 2014-11-04 12:29 Michał Goliński
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).