ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Text style in bookmarks
Date: Sun, 21 May 2006 19:20:38 +0200	[thread overview]
Message-ID: <4470A166.2010604@wxs.nl> (raw)
In-Reply-To: <ops9u2g6eb9niby6@localhost>

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

\placebookmarks

\starttext

\chapter{test \mono{test} \bold{test}}

\stoptext

(i will add the extra definitions to the core) 


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

  parent reply	other threads:[~2006-05-21 17:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-20 17:49 nico
2006-05-20 18:14 ` Willi Egger
2006-05-20 18:38   ` nico
2006-05-20 19:17     ` Johannes Graumann
2006-05-20 20:44       ` nico
2006-05-21  6:38 ` Peter Münster
2006-05-21 16:42   ` Hans Hagen
2006-05-21 17:20 ` Hans Hagen [this message]
2006-05-21 19:21   ` Aditya Mahajan
2006-05-21 21:18     ` Hans Hagen
2006-05-22  9:43   ` nico

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4470A166.2010604@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).