[NTG-context] Text style in bookmarks

Hans Hagen pragma at wxs.nl
Sun May 21 23:18:21 CEST 2006


Aditya Mahajan wrote:
> On Sun, 21 May 2006, Hans Hagen wrote:
>
>   
>> nico wrote:
>>     
>>> Hello,
>>>
>>> Is there a trick so that I can put styles like {\bf ...} or {\tt ...} in
>>> the headings without having any weird text in the bookmarks?
>>>
>>> Adding \bf or \tt as empty macros to the simplifiedcommands doesn't avoid
>>> the curly braces to appear (which is normal). Do I need to use something
>>> like \def\textbf#1{\def\textbf#1{\bgroup\bf #1\egroup} to have this
>>> working?
>>>
>>>       
>> \setupinteraction[state=start]
>>
>> \appendtoks
>>  \let\groupedcommand\thirdofthreearguments
>> \to \simplifiedcommands
>>
>> % no command for monospaced yet
>>
>> \unprotected \definealternativestyle [\v!mono] [\tt]  []
>>     
>
> Isn't this same as type? In font-ini.tex you have
>
> \definealternativestyle [\v!type]      [\tt]  []
>
>   
thit will not turn into a command since \type is already a defined 
command, but type is recognizes as keyword in 
style=whateverisdefinedasalternativestyle

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



More information about the ntg-context mailing list