ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: formula, bookmarks and misc
Date: Thu, 2 Nov 2006 12:22:49 -0500 (EST)	[thread overview]
Message-ID: <Pine.WNT.4.63.0611021216130.1564@nqvgln> (raw)
In-Reply-To: <20061102092346.ca0d2f07.schuster.wolfgang@googlemail.com>

On Thu, 2 Nov 2006, Wolfgang Schuster wrote:

> On Tue, 31 Oct 2006 15:55:08 -0500 (EST)
> Aditya Mahajan <adityam@umich.edu> wrote:
>
>> On Tue, 31 Oct 2006, Wolfgang Schuster wrote:
>>
>>> 2006/10/29, Sebastian Rooks <sebastian.rooks@free.fr>:
>>>>
>>>> 2/ I'm using bookmarks but abbreviations in heads do not work properly.
>>>> I've used a workaround some 3 years ago but I cannot remember which. Any
>>>> suggestion ? (see test file below)
>>>
>>> \appendtoks \def\UK{UK} \to \simplifiedcommands
>>
>>
>> Why doesn't
>>
>> \doglobal\appendtoks\setvalue{#2}{#2}\to\simplifiedcommands
>>
>> line in the definition of dodocomplexsynonym do this automatically?
>>
>
> Hi Aditya,
>
> this was new to me.
>
> You are right, this did work as expected  but only when you place the
> definition of the abbreviation and the \placebookmarks command in the
> right order.
>
> The following order in the souce works.
>
> \abbreviation [UK] {UK} {United Kingdom of Great Britain and Northern
> Ireland}
>
> \placebookmarks[chapter,section,subsection]
>
> The problems is, the token register \simplifiedcommands is called by
> the \placebookmarks command and every abbreviations, that follows after
> the command is ignored.

I will call this a bug. Typically, in my workflow, \placebookmark will 
go in the environment file (or the module) and \abbreviation will be 
in the main file.

Hans, is there someway to make sure that this works even when 
abbreviations are defined after \placebookmark. Postponing to 
processing to everystarttext comes to mind, but I do not know how 
rugged that will be.

Aditya

  reply	other threads:[~2006-11-02 17:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-29  1:09 Sebastian Rooks
2006-10-29  6:38 ` Aditya Mahajan
2006-10-29 16:47   ` Sebastian Rooks
2006-10-29 17:18     ` Aditya Mahajan
2006-10-31  8:45 ` Wolfgang Schuster
2006-10-31 20:55   ` Aditya Mahajan
2006-11-02  8:23     ` Wolfgang Schuster
2006-11-02 17:22       ` Aditya Mahajan [this message]
2006-11-01 23:57   ` Sebastian Rooks
2006-11-03 10:52     ` Wolfgang Schuster

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=Pine.WNT.4.63.0611021216130.1564@nqvgln \
    --to=adityam@umich.edu \
    --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).