View Issue Details

IDProjectCategoryView StatusLast Update
0000429contextpublic2010-08-03 23:15
ReporterPeter Assigned ToHans Hagen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000429: incrementnumber and bookmark
DescriptionHello,

What is the relationship between "incrementnumber" and bookmarks?

I don't get the desired bookmark here:

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks[title]
\starttext
\starttitle[title=Test title]
bla
\stoptitle
\stoptext

But with "\setuphead[title][incrementnumber=list]" it works.

Is this behaviour wanted? If yes, then why?

Cheers, Peter
TagsNo tags attached.

Activities

Hans Hagen

2010-08-02 15:15

manager   ~0000573

it's intended because for titles lists are disabled (although data is written to the tuc file) .. it's the whole idea behind numbered and unnumbered lists .. you can always create another kind of title that does get shown in lists

this won't change as i've used it in numerous styles

Peter

2010-08-02 23:25

reporter   ~0000586

Hello Hans,

My explanation of the issue was perhaps not good enough...

The problem is, that we should get a bookmark here, IMHO:

\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks[title]
\starttext
\starttitle[title=Test title, bookmark=Where is my bookmark?]
bla
\stoptitle
\stoptext

Lists should be independent of the fact, that we want a bookmark here.

Peter

Hans Hagen

2010-08-03 02:07

manager   ~0000590

Bookmarks are lists. Also, it has always been this way. I made an [force=yes] option. Maybe at some point we can have specific options when setting up a head but the incrementnumber is already complex and it gets more and more tricky to document all that. One can make this a default and then ends up with that as an exception.

Peter

2010-08-03 23:01

reporter   ~0000593

It's perhaps more a documentation issue.

The easiest way to tell a user how to add bookmarks for an unnumbered head
(such as "title") would be (but it does not work):
Put "\setupinteraction[state=start]" into the preamble and also
\placebookmarks[list-of-heads] with the list of heads you want bookmarks for.

Now we have 2 options to document how to add bookmarks:
1.) For unnumbered heads you need to set
    "\setuphead[head][incrementnumber=list]" to get the bookmarks.

or

2.) For unnumbered heads you need to add "force=yes" to \placebookmarks.

How should I wikify that?

Also, I don't understand why we need options to prevent bookmarks, isn't it
enough, just to omit the \placebookmarks command?

Peter

Hans Hagen

2010-08-03 23:14

manager   ~0000595

indeed there is a relation between incrementnumber and lists .. but as i mentioned, in the styles that i have to write we often end up with tens of head types that either or not go to lists

anyway, i consider bookmarks a backend related feature and as such it does not need control at the head definition level

so: your variant (1) turns a head in a numbered one and as such lists are activated and as a side effect you get bookmarks (as they use the list mechanism) ..., however, (2) controls bookmarks (the backend feature) independent of that

it all depends on what you want to achieve but i think that (2) is probably better as it related to bookmarks while (1) relates to list

also, keep in mind that if someone wants to have no titles in the toc, but still bookmarks, (2) is the only option

Hans Hagen

2010-08-03 23:15

manager   ~0000596

closed as we have a configuration option in \placebookmarks as well as \setupbookmarks (new command)

Issue History

Date Modified Username Field Change
2010-07-16 14:52 Peter New Issue
2010-08-02 15:15 Hans Hagen Note Added: 0000573
2010-08-02 15:15 Hans Hagen Status new => closed
2010-08-02 15:15 Hans Hagen Assigned To => Hans Hagen
2010-08-02 15:15 Hans Hagen Resolution open => fixed
2010-08-02 23:25 Peter Note Added: 0000586
2010-08-02 23:25 Peter Status closed => feedback
2010-08-02 23:25 Peter Resolution fixed => reopened
2010-08-03 02:07 Hans Hagen Note Added: 0000590
2010-08-03 23:01 Peter Note Added: 0000593
2010-08-03 23:01 Peter Status feedback => assigned
2010-08-03 23:14 Hans Hagen Note Added: 0000595
2010-08-03 23:15 Hans Hagen Note Added: 0000596
2010-08-03 23:15 Hans Hagen Status assigned => closed
2010-08-03 23:15 Hans Hagen Resolution reopened => fixed