ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Giuseppe Bilotta <bourbaki@bigfoot.com>
Cc: ntg-context@ntg.nl
Subject: Re: bookmarks
Date: Sun, 3 Feb 2002 15:24:46 +0100	[thread overview]
Message-ID: <1197567087.20020203152446@bigfoot.com> (raw)
In-Reply-To: <5.1.0.14.1.20020201100601.0395b2e8@server-1>

Friday, February 01, 2002 Hans Hagen wrote:

>>i want to bookmark
>>
>>   \def\mycs{Abbreviation}
>>
>>   \chapter{\mycs\ Heading}
>>
>>but it fails while processing file.tuo.  \sanitizePDFdocencoding is not happy
>>about something, it says "! Undefined control sequence." when it hits \mycs.

HH> the \def\my... needs to go before the \placebookmarks, otherwise it is 
HH> indeed unknown; tex works top-bottom

[snip]

HH> [alternatively you can do things like

HH>    \appendtoks\def\mycs{WHOW}\to\everysanitize

HH> to get your own clean up in bookmarks]

This solution doesn't seem to work (either because \everysanitize
is not issued by the PDF bookmark sanitizer or because it does not
become effective soon enough). I found that a possible alternative
is

\immediate\writeutility{%
    c \string\def\string\mycs{whatever we want}%
}

--
Giuseppe "Oblomov" Bilotta


  reply	other threads:[~2002-02-03 14:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200201312002.VAA20337@smail.let.uu.nl>
2002-02-01  9:11 ` bookmarks Hans Hagen
2002-02-03 14:24   ` Giuseppe Bilotta [this message]
2002-02-04 11:18     ` bookmarks Hans Hagen
2002-02-04 11:58       ` Re[2]: bookmarks Giuseppe Bilotta
2002-02-04 18:57         ` Berend de Boer
2010-05-21 10:17 Bookmarks Andreas Harder
  -- strict thread matches above, loose matches on Subject: below --
2001-04-05  5:39 bookmarks James H. Cloos Jr.
2001-04-05 22:57 ` bookmarks Pierre Goossens
2001-04-09 14:11   ` bookmarks Hans Hagen
     [not found] <3.0.6.32.20000610202648.017bd970@pop.wxs.nl>
     [not found] ` <Pine.LNX.4.10.10006122142090.1706-100000@AMath8.amt.ac.cn>
2000-06-13 19:52   ` Bookmarks Hans Hagen
2000-06-23  9:11     ` Bookmarks Mr. Wang Lei

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=1197567087.20020203152446@bigfoot.com \
    --to=bourbaki@bigfoot.com \
    --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).