chapter only in bookmarks (not in text or in TOC)
Dear list, I have the following sample: \showframe \setupinteraction[state=start] \placebookmarks[chapter] \definehead[hiddentitle][chapter] \setuphead[hiddentitle][incrementnumber=no] \starttext \completecontent \hiddentitle{Prologue} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext I would like to have a \hiddentitle command that doesn’t display the heading in text (and adds no extra space), that it doesn’t add it to the table of contents, but that it adds it as a bookmark. How should I define \hiddentitle to get that? Many thanks for your help, Pablo -- http://www.ousia.tk
On 7/5/2015 7:54 PM, Pablo Rodriguez wrote:
Dear list,
I have the following sample:
\showframe \setupinteraction[state=start] \placebookmarks[chapter] \definehead[hiddentitle][chapter] \setuphead[hiddentitle][incrementnumber=no] \starttext \completecontent \hiddentitle{Prologue} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext
I would like to have a \hiddentitle command that doesn’t display the heading in text (and adds no extra space), that it doesn’t add it to the table of contents, but that it adds it as a bookmark.
How should I define \hiddentitle to get that?
something \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \starttext \completecontent \writetolist[hiddentitle]{!!}{xxx} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext or \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \setuphead[hiddentitle][incrementnumber=list] \starttext \completecontent \hiddentitle{Prologue} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 07/06/2015 05:56 PM, Hans Hagen wrote:
[...] \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \setuphead[hiddentitle][incrementnumber=list] \starttext \completecontent \hiddentitle{Prologue} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext
[Sorry if this message is duplicated, but I’m afraid my email client is misbehaving.] Many thanks for your reply, Hans. Only the second solution worked fine (the first solution had a problem similar to a one I reported before [I don’t remember which one :-(]). I need that there is no \hiddentile in the text itself, so I removed all space after and before. But I cannot make vertical spaces in makeups work: \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \setuphead [hiddentitle] [placehead=empty, incrementnumber=list, number=no, before=, after=] \starttext \completecontent \startmakeup[copyright][top=] \hiddentitle{[Copyright]} This document is released to the public... \stopmakeup \chapter{Foreword} aa \chapter{Introduction} \stoptext Is there any way to remove all spaces in \hiddentitle, so that makeups work fine? Many thanks for your help, Pablo -- http://www.ousia.tk
On 7/6/2015 9:10 PM, Pablo Rodriguez wrote:
On 07/06/2015 05:56 PM, Hans Hagen wrote:
[...] \setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \setuphead[hiddentitle][incrementnumber=list] \starttext \completecontent \hiddentitle{Prologue} aa\page aa \chapter{Foreword} aa \chapter{Introduction} \stoptext
[Sorry if this message is duplicated, but I’m afraid my email client is misbehaving.]
Many thanks for your reply, Hans.
Only the second solution worked fine (the first solution had a problem similar to a one I reported before [I don’t remember which one :-(]).
I need that there is no \hiddentile in the text itself, so I removed all space after and before. But I cannot make vertical spaces in makeups work:
\setupinteraction[state=start] \placebookmarks[chapter,hiddentitle] \definehead[hiddentitle][chapter] \setuphead [hiddentitle] [placehead=empty, incrementnumber=list, number=no, before=, after=] \starttext \completecontent \startmakeup[copyright][top=] \hiddentitle{[Copyright]} This document is released to the public... \stopmakeup \chapter{Foreword} aa \chapter{Introduction} \stoptext
Is there any way to remove all spaces in \hiddentitle, so that makeups work fine?
add page= \setuphead [hiddentitle] [placehead=empty, incrementnumber=list, number=no, page=, before=, after=]
Many thanks for your help,
Pablo
-- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 07/24/2015 02:14 PM, Hans Hagen wrote:
On 7/6/2015 9:10 PM, Pablo Rodriguez wrote:
On 07/06/2015 05:56 PM, Hans Hagen wrote: [...] I need that there is no \hiddentile in the text itself, so I removed all space after and before. But I cannot make vertical spaces in makeups work: [...] \setuphead [hiddentitle] [placehead=empty, incrementnumber=list, number=no, before=, after=] [...] Is there any way to remove all spaces in \hiddentitle, so that makeups work fine?
add page=
It works fine, Hans. Many thanks for your help, Pablo -- http://www.ousia.tk
participants (2)
-
Hans Hagen
-
Pablo Rodriguez