ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* chapter only in bookmarks (not in text or in TOC)
@ 2015-07-05 17:54 Pablo Rodriguez
  2015-07-06 15:56 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2015-07-05 17:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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] 5+ messages in thread

* Re: chapter only in bookmarks (not in text or in TOC)
  2015-07-05 17:54 chapter only in bookmarks (not in text or in TOC) Pablo Rodriguez
@ 2015-07-06 15:56 ` Hans Hagen
  2015-07-06 19:10   ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2015-07-06 15:56 UTC (permalink / raw)
  To: ntg-context

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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 5+ messages in thread

* Re: chapter only in bookmarks (not in text or in TOC)
  2015-07-06 15:56 ` Hans Hagen
@ 2015-07-06 19:10   ` Pablo Rodriguez
  2015-07-24 12:14     ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2015-07-06 19:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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] 5+ messages in thread

* Re: chapter only in bookmarks (not in text or in TOC)
  2015-07-06 19:10   ` Pablo Rodriguez
@ 2015-07-24 12:14     ` Hans Hagen
  2015-07-24 19:10       ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2015-07-24 12:14 UTC (permalink / raw)
  To: ntg-context

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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 5+ messages in thread

* Re: chapter only in bookmarks (not in text or in TOC)
  2015-07-24 12:14     ` Hans Hagen
@ 2015-07-24 19:10       ` Pablo Rodriguez
  0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2015-07-24 19:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2015-07-24 19:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-05 17:54 chapter only in bookmarks (not in text or in TOC) Pablo Rodriguez
2015-07-06 15:56 ` Hans Hagen
2015-07-06 19:10   ` Pablo Rodriguez
2015-07-24 12:14     ` Hans Hagen
2015-07-24 19:10       ` Pablo Rodriguez

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).