[NTG-context] PDF bookmarks issue with heads

2014-03-29 Thread Pablo Rodriguez
Hans,

just accidentally, I discovered that adding a head (the content list
itself) before the front matter disorders PDF bookmarks (bodymatter is
before frontmatter).

Here is a sample

\setupinteraction[state=start]
\placebookmarks[chapter,section]

\starttext
\completecontent
%~ \title{Contents}
%~ \chapter{Contents}

\startfrontmatter
\dorecurse{3}{\chapter{Chapter in frontmatter}
\section{Section in frontmatter}}
\stopfrontmatter

\startbodymatter
\dorecurse{3}{\chapter{Chapter in bodymatter}
\section{Section in bodymatter}}
\stopbodymatter
\stoptext

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
___


[NTG-context] PDF bookmarks don’t follow sectionconversionset

2014-03-29 Thread Pablo Rodriguez
Hans,

I’m afraid that PDF bookmarks don’t follow sectionconversionset option
from \setuphead.

Here is the sample:

\setupinteraction[state=start]
\placebookmarks[chapter,section]
\definestructureconversionset[sectionnumbers][0,I,A,n,g][n]
\definestructureconversionset[appendix:sectionnumbers][0,A,n,g,a][n]
\setupheads[sectionconversionset=sectionnumbers]

\starttext
\startbodymatter
\chapter{Chapter in bodymatter}
\section{Section in bodymatter}
\stopbodymatter

\startappendices
\chapter{Chapter in appendices}
\section{Section in appendices}
\stopappendices
\stoptext

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
___


Re: [NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-26 Thread Hans Hagen

On 11/26/2013 8:11 PM, Hans Hagen wrote:


as titles can be anything and bookmarks are limited, we need to have
some protection in place ... unexpandable macros are simply dropped so
\labeltext{index} becomes index


btw, using \complete... is just a compatibility command, if you use a 
normal title + \place... you have no such problems and the effort 
involved in adding two commands instead of one is neglectable on a document


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
___


Re: [NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-26 Thread Hans Hagen

On 11/26/2013 8:30 PM, Jan Tosovsky wrote:


Thanks for this detailed explanation. If I understand correctly, this switch
is intentional and won't be applied automatically even for registers or
other peculiar cases where title is specified differently/unexpectedly.


the bookmark setting defaults to the title itself but you can always set 
a bookmark title explicitly with bookmark=



When it is added to the beginning of my example, it returns an error:
attempt to call field 'boxtostring' (a nil value)


ah, only in my experimental tree, i'll add it to the beta


Thanks, but this one is not so urgent.


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
___


Re: [NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-26 Thread Jan Tosovsky
On 2013-11-26 Hans Hagen wrote:
> On 11/26/2013 8:03 PM, Jan Tosovsky wrote:
> > On 2013-11-18 Jan Tosovsky wrote:
> >>
> >> when I specify custom titles for my registers, they are ignored in
> >> bookmarks:
> >>
> >> \setupinteraction[state=start]
> >> \placebookmarks[chapter]
> >> \setupinteractionscreen[option=bookmark]
> >>
> >> \defineregister[indexname][indexnames]
> >> \defineregister[indexsubject][indexsubjects]
> >> \setupheadtext[indexname=Name Index]
> >> \setupheadtext[indexsubject=Subject Index]
> >>
> >> \starttext
> >> \completecontent
> >> \chapter{Chapter}text\indexname{primary}\indexsubject{primary}
> >> \startbackmatter
> >> \completeindexname
> >> \completeindexsubject
> >> \stopbackmatter
> >> \stoptext
> >>
> >> Is it necessary to switch something else on?
> >
> > According to the proposed solution at
> > http://tracker.luatex.org/view.php?id=865
> >
> > it can be switched on using this magic formula
> > \enabledirectives[references.bookmarks.preroll]
> >
> > What is the correct usage of this? And are there any details why it
> > is required and what exactly it does?
> 
> as titles can be anything and bookmarks are limited, we need to have
> some protection in place ... unexpandable macros are simply dropped so
> \labeltext{index} becomes index
>
> by default the title is set to a label which is not expandable
> 
> the directive will convert the typeset title into a bookmark
>

Thanks for this detailed explanation. If I understand correctly, this switch
is intentional and won't be applied automatically even for registers or
other peculiar cases where title is specified differently/unexpectedly.

> > When it is added to the beginning of my example, it returns an error:
> > attempt to call field 'boxtostring' (a nil value)
> 
> ah, only in my experimental tree, i'll add it to the beta

Thanks, but this one is not so urgent.

Jan

___
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
___


Re: [NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-26 Thread Hans Hagen

On 11/26/2013 8:03 PM, Jan Tosovsky wrote:

On 2013-11-18 Jan Tosovsky wrote:


when I specify custom titles for my registers, they are ignored in
bookmarks:

\setupinteraction[state=start]
\placebookmarks[chapter]
\setupinteractionscreen[option=bookmark]

\defineregister[indexname][indexnames]
\defineregister[indexsubject][indexsubjects]
\setupheadtext[indexname=Name Index]
\setupheadtext[indexsubject=Subject Index]

\starttext
\completecontent
\chapter{Chapter}text\indexname{primary}\indexsubject{primary}
\startbackmatter
\completeindexname
\completeindexsubject
\stopbackmatter
\stoptext

Is it necessary to switch something else on?


According to the proposed solution at
http://tracker.luatex.org/view.php?id=865

it can be switched on using this magic formula
\enabledirectives[references.bookmarks.preroll]

What is the correct usage of this? And are there any details why it is
required and what exactly it does?


by default the title is set to a label which is not expandable

the directive will convert the typeset title into a bookmark


When it is added to the beginning of my example, it returns an error:
attempt to call field 'boxtostring' (a nil value)


ah, only in my experimental tree, i'll add it to the beta


But to be honest, I'd expect setting this flag internally by default as I
cannot imagine any use case where the index ID should be preferred in favor
of the title...


as titles can be anything and bookmarks are limited, we need to have 
some protection in place ... unexpandable macros are simply dropped so 
\labeltext{index} becomes index


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
___


Re: [NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-26 Thread Jan Tosovsky
On 2013-11-18 Jan Tosovsky wrote:
> 
> when I specify custom titles for my registers, they are ignored in
> bookmarks:
> 
> \setupinteraction[state=start]
> \placebookmarks[chapter]
> \setupinteractionscreen[option=bookmark]
> 
> \defineregister[indexname][indexnames]
> \defineregister[indexsubject][indexsubjects]
> \setupheadtext[indexname=Name Index]
> \setupheadtext[indexsubject=Subject Index]
> 
> \starttext
> \completecontent
> \chapter{Chapter}text\indexname{primary}\indexsubject{primary}
> \startbackmatter
> \completeindexname
> \completeindexsubject
> \stopbackmatter
> \stoptext
> 
> Is it necessary to switch something else on?

According to the proposed solution at
http://tracker.luatex.org/view.php?id=865

it can be switched on using this magic formula
\enabledirectives[references.bookmarks.preroll]

What is the correct usage of this? And are there any details why it is
required and what exactly it does?

When it is added to the beginning of my example, it returns an error:
attempt to call field 'boxtostring' (a nil value)

But to be honest, I'd expect setting this flag internally by default as I
cannot imagine any use case where the index ID should be preferred in favor
of the title...

Jan

___
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
___


[NTG-context] PDF bookmarks - incorrect titles for registers

2013-11-18 Thread Jan Tosovsky
Dear All,

when I specify custom titles for my registers, they are ignored in
bookmarks:

\setupinteraction[state=start]
\placebookmarks[chapter]
\setupinteractionscreen[option=bookmark]

\defineregister[indexname][indexnames]
\defineregister[indexsubject][indexsubjects]
\setupheadtext[indexname=Name Index]
\setupheadtext[indexsubject=Subject Index]

\starttext
\completecontent
\chapter{Chapter}text\indexname{primary}\indexsubject{primary}
\startbackmatter
\completeindexname
\completeindexsubject
\stopbackmatter
\stoptext

Is it necessary to switch something else on?

Thanks, Jan

ConTeXt 2013.11.14 & Win 7

___
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
___


Re: [NTG-context] PDF bookmarks - missing interactivity of some items

2013-11-16 Thread Hans Hagen

On 11/16/2013 3:41 PM, honyk wrote:

Dear All,

when bookmarks are placed to my file, only several of them are interactive.
I cannot find any rule for this behaviour nor to reproduce it on a
simplified example.

\setupinteraction[state=start]
\placebookmarks[chapter]
\setupinteractionscreen[option=bookmark]


\chapter{Chapter A}

\chapter{Chapter B}


Is there any known issue related to this?
ConTeXt 2013.11.14 (Mark IV), Windows 7 64-bit.

I can provide my file for testing (off the list).


indeed .. without a minimal test i won't look into it

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
___


Re: [NTG-context] PDF bookmarks - missing interactivity of some items

2013-11-16 Thread Alan Braslau
On Sat, 16 Nov 2013 15:41:12 +0100
honyk  wrote:

> Dear All,
> 
> when bookmarks are placed to my file, only several of them are
> interactive. I cannot find any rule for this behaviour nor to
> reproduce it on a simplified example.

Indeed, I find that the interaction does not always work on some
bookmarks. My impression was that, for example, a chapter title might
not be interactive whereas its first section title would be interactive.
However, I have not been able to produce a minimal example
demonstrating the behavior (nor have I really tried very hard yet).

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
___


[NTG-context] PDF bookmarks - missing interactivity of some items

2013-11-16 Thread honyk
Dear All,

when bookmarks are placed to my file, only several of them are interactive.
I cannot find any rule for this behaviour nor to reproduce it on a
simplified example.

\setupinteraction[state=start]
\placebookmarks[chapter]
\setupinteractionscreen[option=bookmark]

...
\chapter{Chapter A}
...
\chapter{Chapter B}
...

Is there any known issue related to this?
ConTeXt 2013.11.14 (Mark IV), Windows 7 64-bit.

I can provide my file for testing (off the list).

Thanks, Jan

___
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
___


Re: [NTG-context] Pdf bookmarks with meta-structure (frontmatter, bodymatter etc)

2013-11-05 Thread Pol Stra
Le lundi 4 novembre 2013, 20:11:25 Hans Hagen a écrit :
> On 10/21/2013 6:45 PM, pol stra wrote:
> > Hello,
> > 
> > In my document, when I use a meta-structure, I only get "introduction"
> > and "content" bookmarks, while not using a meta-structure, I have my
> > part and chapter (which is the desired behaviour). How can I get the
> > same behaviour in both structures?
> > (by the way, how can I change the bookmarks of the table of contents, I
> > tried \completecontent[bookmark=mytitle] and \setupcombinedlist[mytitle]
> > without success).
> > 
> > Thank you all
> > 
> > Here is my sample code:
> > 
> > \setupinteraction [state=start]
> > 
> > \placebookmarks[part, chapter, section, title, subject][force=yes]
> > 
> > \setupcombinedlist[content][
> > 
> >  list={title, part, chapter, subject, subsubject, section,
> >  subsection},
> >  alternative=c]
> > 
> > \setuphead[part][placehead=yes, bodypartlabel=part]
> > 
> > \startmode[meta]
> > 
> >  \startfrontmatter
> >  
> >  \startchapter[title={Introduction}]
> >  
> >  % \component c_introduction
> >  \stopchapter
> >  
> >  \completecontent[criterium=all]
> >  
> >  \stopfrontmatter
> >  
> >  \startbodymatter
> >  
> >  \startpart[title={part}]
> >  
> >  \startchapter[title={chapter1}]
> >  \stopchapter
> >  
> >  \stoppart
> >  
> >  \stopbodymatter
> > 
> > \stopmode
> > 
> > \startmode[nonmeta]
> > 
> >  \startchapter[title={Introduction}]
> >  
> >  % \component c_introduction
> >  \stopchapter
> >  
> >  \completecontent[criterium=all]
> >  
> >  \startpart[title={part}]
> >  
> >  \startchapter[title={chapter1}]
> >  \stopchapter
> >  
> >  \stoppart
> > 
> > \stopmode
> 
> If you want to influence the bookmark title you should explicitly set if
> (and then not use \complete ... but \place...). Anyhow, I've added an
> extra level to the bookmarks where you can also set the block titles.
> 
> \setupinteraction
>[state=start]
> 
> \placebookmarks
>[part,chapter,section,title,subject]
>[force=yes]
> 
> \setupcombinedlist
>[content]
>[list={part,chapter,section,subsection},
> alternative=c]
> 
> \setuphead
>[part]
>[placehead=yes,
> bodypartlabel=part]
> 
> \starttext
> 
>  \startfrontmatter[bookmark=A fancy title]
>  \startchapter[title={The introduction}]
>  \stopchapter
>  \startchapter[title=Contents]
>  \placecontent[criterium=all]
>  \stopchapter
>  \stopfrontmatter
> 
>  \startbodymatter
>  \startpart[title={part}]
>  \startchapter[title={Some chapter}]
>  \stopchapter
>  \stoppart
>  \stopbodymatter
> 
> \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
> 
> -

Thank you for the job Hans!

___
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
___


Re: [NTG-context] Pdf bookmarks with meta-structure (frontmatter, bodymatter etc)

2013-11-04 Thread Hans Hagen

On 10/21/2013 6:45 PM, pol stra wrote:

Hello,

In my document, when I use a meta-structure, I only get "introduction"
and "content" bookmarks, while not using a meta-structure, I have my
part and chapter (which is the desired behaviour). How can I get the
same behaviour in both structures?
(by the way, how can I change the bookmarks of the table of contents, I
tried \completecontent[bookmark=mytitle] and \setupcombinedlist[mytitle]
without success).

Thank you all

Here is my sample code:

\setupinteraction [state=start]

\placebookmarks[part, chapter, section, title, subject][force=yes]

\setupcombinedlist[content][
 list={title, part, chapter, subject, subsubject, section, subsection},
 alternative=c]

\setuphead[part][placehead=yes, bodypartlabel=part]

\startmode[meta]
 \startfrontmatter
 \startchapter[title={Introduction}]
 % \component c_introduction
 \stopchapter

 \completecontent[criterium=all]
 \stopfrontmatter

 \startbodymatter
 \startpart[title={part}]
 \startchapter[title={chapter1}]
 \stopchapter
 \stoppart
 \stopbodymatter
\stopmode

\startmode[nonmeta]
 \startchapter[title={Introduction}]
 % \component c_introduction
 \stopchapter

 \completecontent[criterium=all]

 \startpart[title={part}]
 \startchapter[title={chapter1}]
 \stopchapter
 \stoppart
\stopmode


If you want to influence the bookmark title you should explicitly set if 
(and then not use \complete ... but \place...). Anyhow, I've added an 
extra level to the bookmarks where you can also set the block titles.


\setupinteraction
  [state=start]

\placebookmarks
  [part,chapter,section,title,subject]
  [force=yes]

\setupcombinedlist
  [content]
  [list={part,chapter,section,subsection},
   alternative=c]

\setuphead
  [part]
  [placehead=yes,
   bodypartlabel=part]

\starttext

\startfrontmatter[bookmark=A fancy title]
\startchapter[title={The introduction}]
\stopchapter
\startchapter[title=Contents]
\placecontent[criterium=all]
\stopchapter
\stopfrontmatter

\startbodymatter
\startpart[title={part}]
\startchapter[title={Some chapter}]
\stopchapter
\stoppart
\stopbodymatter

\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
___


[NTG-context] Pdf bookmarks with meta-structure (frontmatter, bodymatter etc)

2013-10-21 Thread pol stra
Hello,

In my document, when I use a meta-structure, I only get "introduction" and 
"content" bookmarks, while not using a meta-structure, I have my part and 
chapter (which is the desired behaviour). How can I get the same behaviour in 
both structures?
(by the way, how can I change the bookmarks of the table of contents, I tried 
\completecontent[bookmark=mytitle] and \setupcombinedlist[mytitle] without 
success).

Thank you all

Here is my sample code:

\setupinteraction [state=start]

\placebookmarks[part, chapter, section, title, subject][force=yes]

\setupcombinedlist[content][
list={title, part, chapter, subject, subsubject, section, subsection},
alternative=c]

\setuphead[part][placehead=yes, bodypartlabel=part]

\startmode[meta]
\startfrontmatter
\startchapter[title={Introduction}]
% \component c_introduction
\stopchapter

\completecontent[criterium=all]
\stopfrontmatter

\startbodymatter
\startpart[title={part}]
\startchapter[title={chapter1}]
\stopchapter
\stoppart
\stopbodymatter
\stopmode

\startmode[nonmeta]
\startchapter[title={Introduction}]
% \component c_introduction
\stopchapter

\completecontent[criterium=all]

\startpart[title={part}]
\startchapter[title={chapter1}]
\stopchapter
\stoppart
\stopmode

  ___
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
___

Re: [NTG-context] PDF Bookmarks

2013-01-26 Thread Rogers, Michael K
On Jan 26, 2013, at 4:21 PM, Troy Henderson 
 wrote:

> \chapter{Foo}\page[no]
> \copypages[path/to/file.pdf]
>
> did the trick.
>
> Troy

This should work, too:

\setuphead[chapter,section,subsection][number=no,placehead=no,page=no]





This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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
___


Re: [NTG-context] PDF Bookmarks

2013-01-26 Thread Troy Henderson
\chapter{Foo}\page[no]
\copypages[path/to/file.pdf]

did the trick.

Troy
___
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
___

Re: [NTG-context] PDF Bookmarks

2013-01-26 Thread Troy Henderson
>
> \setuphead[chapter,section,subsection][number=no,placehead=no]
>

Outstanding.  The only problem that I have now is that issuing

\chapther{Foo}

immediately before

\copypages[path/to/file.pdf]

forces a new (blank) page before the external page is inserted.  Without
the \chapter{Foo} command, this new page is not inserted.

Troy
___
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
___

Re: [NTG-context] PDF Bookmarks

2013-01-26 Thread Rogers, Michael K
On Jan 26, 2013, at 1:01 PM, Troy Henderson 
 wrote:

> I would like to create PDF bookmarks in my ConTeXt document, but I do not 
> want my document arranged in "normal" chapter/sections.  I know that I can do
>
> \setupinteraction[state=start]
> \placebookmarks[chapter,section,subsection][chapter,section]
> \setupinteractionscreen[option=bookmark]
>
> and then in my document I can do
>
> \chapter{Foo}
>
> In this case, my PDF bookmark appears as "1 Foo".  Furthermore, in the 
> document itself, the chapter heading shows as "1 Foo".  I would like the 
> bookmark to just appear as "Foo" and I do not want ANY chapter/section 
> headings when I issue the \chapter{Foo} or \section{Bar} commands.  That is, 
> in the document, I would like those commands to basically JUST create the 
> bookmarks and have the bookmarks omit the chapter/section number.
>
> Troy

Try this:

\setuphead[chapter,section,subsection][number=no,placehead=no]





This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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
___


[NTG-context] PDF Bookmarks

2013-01-26 Thread Troy Henderson
I would like to create PDF bookmarks in my ConTeXt document, but I do not
want my document arranged in "normal" chapter/sections.  I know that I can
do

\setupinteraction[state=start]
\placebookmarks[chapter,section,subsection][chapter,section]
\setupinteractionscreen[option=bookmark]

and then in my document I can do

\chapter{Foo}

In this case, my PDF bookmark appears as "1 Foo".  Furthermore, in the
document itself, the chapter heading shows as "1 Foo".  I would like the
bookmark to just appear as "Foo" and I do not want ANY chapter/section
headings when I issue the \chapter{Foo} or \section{Bar} commands.  That
is, in the document, I would like those commands to basically JUST create
the bookmarks and have the bookmarks omit the chapter/section number.

Troy
___
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
___

Re: [NTG-context] PDF Bookmarks on unnumbered subjects/titles etc

2011-01-09 Thread Florian Wobbe
Dear Wolfgang,

3 years ago, you wrote:

>> [...]
>> \setupinteraction[state=start]
>> \placebookmarks[chapter]
>> \setupinteractionscreen[option=bookmark]
>> \starttext
>> \chapter{some chapter}
>> \bookmark{a title}
>> some text
>> \stoptext
>>
>> The above example correctly generates bookmarks in the PDF.
>>
>> I can't, however, get the same thing to work when using
>> \subject. [...]
>
>You can to play with the following code, I don't know why it produce multiple
>bookmark entries and even more with text between the headers but it's funny.
>
>\setupinteraction[state=start]
>\def\sectionbookmark#1{\bookmark[section]{#1}#1}
>\def\subjectbookmark#1{\bookmark[subject]{#1}#1}
>\setuphead[section][deeptextcommand=\sectionbookmark]
>\setuphead[subject][deeptextcommand=\subjectbookmark]
>\placebookmarks[chapter,section,subject]
>\setupinteractionscreen[option=bookmark]
>\starttext
>\chapter{Chapter}
>\section{Section}
>\subject{Subject}
>\section{Another section}
>\chapter{Second Chapter}
>text
>\section{First section in second chapter}
>text
>\subject{Another Subject}
>text
>\section{Last section}
>text
>\stoptext

This minimal example gives me an error. Are there other/better means to achieve 
the same thing today?

Best,
Florian

___
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
___


[NTG-context] PDF bookmarks appear twice

2008-12-31 Thread Andrey Riabushenko
I have found similar issue was discussed in this list, but it doesn't contain 
a suitable solution for me


These command work just fine to add bookmark for every part, chapter and etc.
\setupinteraction [state=start]
\setupinteractionscreen [option=bookmark]
\placebookmarks [part,chapter,section,subsection] [chapter]


But I want to add three additional bookmarks (without adding them to the 
contents): title page, resume(second page), contents.

I have defined it the following way:


\definemakeup[Titlepage][pagestate=start, page=right]
\definemakeup[Resume][pagestate=start, page=right]

\definestartstop[Abstract][before={\page[blank,right] \midaligned{\bf 
Abstract}\startnarrower[2*middle]}, after={\stopnarrower\blank[big] }]


\starttext
\startTitlepagemakeup
\bookmark[chapter]{Title  page}
\tfd Title page \\
\stopTitlepagemakeup

\startResumemakeup
  \bookmark[chapter]{Resume}
  \startAbstract
Abstract paragraph full of text
  \stopAbstract
  Author name
\stopResumemakeup

\title{Contents}
\bookmark[chapter]{Contents}
\placecontent[interaction=all]
\stoptext

In this case bookmarks appear twice in the bookmark menu. If I use \bookmark{} 
without [chapter] the bookmarks do not appear at all. I have tried to put 
bookmarks out of start/stop environments but it didn't help.

How to work around this issue?
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] PDF Bookmarks on unnumbered subjects/titles etc

2007-12-12 Thread Wolfgang Schuster
2007/12/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> Has anyone managed to get ConTeXt to generate PDF bookmarks for
> the unnumbered headings such as \title, \subject, etc?
>
> I saw the examples on the wiki page but unfortunately they
> did nothing.
>
> http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers
>
> \setupinteraction[state=start]
> \placebookmarks[chapter]
> \setupinteractionscreen[option=bookmark]
> \starttext
> \chapter{some chapter}
> \bookmark{a title}
> some text
> \stoptext
>
> The above example correctly generates bookmarks in the PDF.
>
> I can't, however, get the same thing to work when using
> \subject. Even explicitly placing bookmarks with \bookmark
> doesn't work:
>
> \setupinteraction[state=start]
> \placebookmarks[chapter] % didn't add subject here as the wiki
>  % says it doesn't work, and it's correct
> \setupinteractionscreen[option=bookmark]
> \starttext
> \subject{some chapter}
> \bookmark{a title}
> some text
> \stoptext

You can to play with the following code, I don't know why it produce multiple
bookmark entries and even more with text between the headers but it's funny.

\setupinteraction[state=start]
\def\sectionbookmark#1{\bookmark[section]{#1}#1}
\def\subjectbookmark#1{\bookmark[subject]{#1}#1}
\setuphead[section][deeptextcommand=\sectionbookmark]
\setuphead[subject][deeptextcommand=\subjectbookmark]
\placebookmarks[chapter,section,subject]
\setupinteractionscreen[option=bookmark]
\starttext
\chapter{Chapter}
\section{Section}
\subject{Subject}
\section{Another section}
\chapter{Second Chapter}
text
\section{First section in second chapter}
text
\subject{Another Subject}
text
\section{Last section}
text
\stoptext

> The wiki page also has this:
>
> \definehead[Title][Chapter]
> \setuphead[Title][number=no]
>
> But that doesn't make the slightest difference.
>
> Anybody got any ideas how to get this to work? I'm using:
>
> pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
> TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
> texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
> tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
> context : ver: 2005.01.31
> cont-en : ver: 2005.01.31 fmt: 2007.5.21 mes: english

You ConTeXt is ancient and you should update to the current version.

> Apologies if my replies to this list are apparently nonexistent.
> So far it seems as if most of them have bounced with a strange
> "unrouteable address" error.

Wolfgang
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] PDF Bookmarks on unnumbered subjects/titles etc

2007-12-11 Thread mir_ctx
Has anyone managed to get ConTeXt to generate PDF bookmarks for
the unnumbered headings such as \title, \subject, etc?

I saw the examples on the wiki page but unfortunately they
did nothing.

http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers

\setupinteraction[state=start]
\placebookmarks[chapter]
\setupinteractionscreen[option=bookmark]
\starttext
\chapter{some chapter}
\bookmark{a title}
some text
\stoptext

The above example correctly generates bookmarks in the PDF.

I can't, however, get the same thing to work when using
\subject. Even explicitly placing bookmarks with \bookmark
doesn't work:

\setupinteraction[state=start]
\placebookmarks[chapter] % didn't add subject here as the wiki
 % says it doesn't work, and it's correct
\setupinteractionscreen[option=bookmark]
\starttext
\subject{some chapter}
\bookmark{a title}
some text
\stoptext

The wiki page also has this:

\definehead[Title][Chapter]
\setuphead[Title][number=no]

But that doesn't make the slightest difference.

Anybody got any ideas how to get this to work? I'm using:

pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4)
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
context : ver: 2005.01.31
cont-en : ver: 2005.01.31 fmt: 2007.5.21 mes: english

Apologies if my replies to this list are apparently nonexistent.
So far it seems as if most of them have bounced with a strange
"unrouteable address" error.
-- 
  
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] PDF bookmarks problem

2006-07-17 Thread Richard Gabriel




Hello Hans,I've noticed a problem with PDF bookmarks when the particular chapter/section titles contain non-ascii characters and/or XML entities. I suppose some "expansion" mechanism should be added (like for the index entries)...Attached you'll find two test files demonstrating this problem.Thanks,Richard

test-001.tex
Description: TeX document


test-002.tex
Description: TeX document
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] pdf bookmarks

2005-05-05 Thread John R. Culleton
On Sunday 13 March 2005 09:31 pm, h h extern wrote:
> VnPenguin wrote:
> > On Tue, 8 Mar 2005 20:56:06 +, David Waller <[EMAIL PROTECTED]> 
wrote:
> >>Hello,
> >>
> >>I am trying to produce bookmarks in the PDF file produced with context.
> >>
> >> I can produce bookmarks but I am unable to get any hierarchy of
> >> bookmarks such that chapters can just be displayed initially and then
> >> the
> >>sections open up.
> >
> > With
> >
> > \placebookmarks[chapter,section,subsection]
> >
> > I got a perfect bookmark :)
>
> \placebookmarks [chapter,section,subsection]
>  [chapter]
>
> will do the same but open only chapter ones by default
>
> Hans

As it happens, on my computer, using Linux, both xpdf and
Acrobat Reader 7.0 display all bookmarks by default. Here is my
line:

 \placebookmarks [chapter,section] [chapter]

If I change the line to 
 \placebookmarks [chapter,section] [chap]

It works as described by Hans above.

But I can live with that. My real problem is with bookmarking
the table of contents. If I use this configuration:
---
\bookmark[chapter]{Contents}
\completecontent

I get a double bookmark. All other combinations yield no bookmark
at all. I tried changing the name from Contents to Contenzz and
I got two occurrences of Contentzz in the bookmarks.

Messing with the first parameter [chapter] yields either no
bookmark or a double bookmark.
 
Also, on the TOC proper, the word Contents (or Contentzz) is repeated twice,
in body font, ahead of the bold faced and larger title generated
by \completecontent. 
 
The documentation on this feature is a bit sparse. I looked at
the source but the comments there did not address this
situation. 

-- 

John Culleton
The answers to all your publishing questions are found 
in the excellent books listed in the word-famous shortlist!
http://wexfordpress.com/tex/shortlist.pdf

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] pdf bookmarks

2005-03-13 Thread h h extern
VnPenguin wrote:
On Tue, 8 Mar 2005 20:56:06 +, David Waller <[EMAIL PROTECTED]> wrote:
Hello,
I am trying to produce bookmarks in the PDF file produced with context.
I can produce bookmarks but I am unable to get any hierarchy of bookmarks
such that chapters can just be displayed initially and then the
sections open up.

With 

\placebookmarks[chapter,section,subsection]
I got a perfect bookmark :)
\placebookmarks [chapter,section,subsection]
[chapter]
will do the same but open only chapter ones by default
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] pdf bookmarks

2005-03-08 Thread VnPenguin
On Tue, 8 Mar 2005 20:56:06 +, David Waller <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I am trying to produce bookmarks in the PDF file produced with context.
> 
>  I can produce bookmarks but I am unable to get any hierarchy of bookmarks
> such that chapters can just be displayed initially and then the
> sections open up.

With 

\placebookmarks[chapter,section,subsection]

I got a perfect bookmark :)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] pdf bookmarks

2005-03-08 Thread David Waller
Hello,

I am trying to produce bookmarks in the PDF file produced with context. 

 I can produce bookmarks but I am unable to get any hierarchy of bookmarks
such that chapters can just be displayed initially and then the
sections open up.

 I am able to do this in latex, with hyperref, and am looking for a
list of commands, or guidance, which would allow me to do the same in
context.

Thanks

 

David Waller
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context