Re: [NTG-context] \appendtoks for options

2015-07-06 Thread Pablo Rodriguez
On 07/06/2015 10:11 AM, Hans Hagen wrote:
> On 7/5/2015 11:12 AM, Pablo Rodriguez wrote:
>> [...]
>> Is there a way that I can add the whole
>> "\sethyphenationfeatures[underscore]" to \simplifiedcommands?
>>
>> All I want is to have the whole command removed from the PDF bookmarks.
> 
> you can test:
> 
> \unexpanded\def\resethyphenationfeatures
>{\hyphenationattribute\attributeunsetvalue}
> 
> \resethyphenationfeatures
> 
> and
> 
> \appendtoks
>\resethyphenationfeatures
> \to \simplifiedcommands
> 
> untested of course

Many thanks for your help, Hans.

I’m not sure I’m doing it right, but I’m afraid it doesn’t work.


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] \appendtoks for options

2015-07-06 Thread Hans Hagen

On 7/5/2015 11:12 AM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \appendtoks
 \let\sethyphenationfeatures[underscore]\space
 \to \simplifiedcommands
 \setupinteraction[state=start]
 \placebookmarks[chapter]
 \starttext
 \chapter{\sethyphenationfeatures[underscore] code}
 \stoptext

Is there a way that I can add the whole
"\sethyphenationfeatures[underscore]" to \simplifiedcommands?

All I want is to have the whole command removed from the PDF bookmarks.


you can test:

\unexpanded\def\resethyphenationfeatures
  {\hyphenationattribute\attributeunsetvalue}

\resethyphenationfeatures

and

\appendtoks
  \resethyphenationfeatures
\to \simplifiedcommands

untested of course

-
  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] \appendtoks for options

2015-07-05 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\appendtoks
\let\sethyphenationfeatures[underscore]\space
\to \simplifiedcommands
\setupinteraction[state=start]
\placebookmarks[chapter]
\starttext
\chapter{\sethyphenationfeatures[underscore] code}
\stoptext

Is there a way that I can add the whole
"\sethyphenationfeatures[underscore]" to \simplifiedcommands?

All I want is to have the whole command removed from the PDF bookmarks.

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
___