ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bookmark expansion again
@ 2019-05-27 18:33 Pablo Rodriguez
  2019-05-27 18:46 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2019-05-27 18:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Hans,

I have the following sample:

    \def\eap{expansion}
    \def\MyContent{Expanded \eap}
    %~ \enabledirectives[references.bookmarks.preroll]
    \setupinteraction[state=start, title={\MyContent}]
    \placebookmarks[section]
    \starttext
    \section{\MyContent}
    \startsection[title=\MyContent, bookmark=\MyContent]
    \stopsection
    \stoptext

I see that now PDF contents are prerolled by default (which I think it
is a great idea [I hope it isn’t a bug]).

But bookmarks alone (when aren’t prerolled. From strc-sec.mkiv, I see
that prerolling is only applied to \currentstructuretitle when
\currentstructurebookmark is empty.

Would it be possible that \currentstructurebookmark could have
prerolling when it is different from \currentstructuretitle?

Sorry for insisting, but I need this to avoid having "main:345{/h2}" as
bookmark for some chapters.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bookmark expansion again
  2019-05-27 18:33 bookmark expansion again Pablo Rodriguez
@ 2019-05-27 18:46 ` Wolfgang Schuster
  2019-05-28 19:15   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2019-05-27 18:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

Pablo Rodriguez schrieb am 27.05.2019 um 20:33:
> Hi Hans,
>
> I have the following sample:
>
>      \def\eap{expansion}
>      \def\MyContent{Expanded \eap}
>      %~ \enabledirectives[references.bookmarks.preroll]
>      \setupinteraction[state=start, title={\MyContent}]
>      \placebookmarks[section]
>      \starttext
>      \section{\MyContent}
>      \startsection[title=\MyContent, bookmark=\MyContent]
>      \stopsection
>      \stoptext
>
> I see that now PDF contents are prerolled by default (which I think it
> is a great idea [I hope it isn’t a bug]).
>
> But bookmarks alone (when aren’t prerolled. From strc-sec.mkiv, I see
> that prerolling is only applied to \currentstructuretitle when
> \currentstructurebookmark is empty.
>
> Would it be possible that \currentstructurebookmark could have
> prerolling when it is different from \currentstructuretitle?
>
> Sorry for insisting, but I need this to avoid having "main:345{/h2}" as
> bookmark for some chapters.
You can try

     \setuphead[section][expansion=yes]

or (for documents which use XML as input format)

     \setuphead[section][expansion=xml]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: bookmark expansion again
  2019-05-27 18:46 ` Wolfgang Schuster
@ 2019-05-28 19:15   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2019-05-28 19:15 UTC (permalink / raw)
  To: ntg-context

On 5/27/19 8:46 PM, Wolfgang Schuster wrote:
> [...]
> You can try
>      \setuphead[section][expansion=yes]

Many thanks for your reply, Wolfgang.

This is exactly what I needed.

I promise I checked it (with "expansion=xml" mainly) and I saw no real
expansion.

But I missed something, since it works perfectly fine now.

> or (for documents which use XML as input format)
>      \setuphead[section][expansion=xml]

With "expansion=xml" I don’t get titles in text and bookmarks are wrong.

"expansion=xml" must be needed for something different (I wonder what
could be).

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-28 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27 18:33 bookmark expansion again Pablo Rodriguez
2019-05-27 18:46 ` Wolfgang Schuster
2019-05-28 19:15   ` 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).