Re: [NTG-context] bookmark expansion again
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 ___
Re: [NTG-context] bookmark expansion again
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 ___
[NTG-context] bookmark expansion again
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 ___