ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: \placeformula and $$ doesn't work anymore
Date: Tue, 05 Dec 2006 23:53:06 +0100	[thread overview]
Message-ID: <4575F852.5050109@elvenkind.com> (raw)
In-Reply-To: <alpine.WNT.0.8.0612051626400.3752@nqvgln>

Aditya Mahajan wrote:
> 
> This is a bug in doplaceformula. I do not know how to avoid it, but 
> the next code illustrates what is happening.
> 
> \def\dotest{
>    \def\nextnext{$}%
>    \ifx\next\nextnext
>      Inside dispplaceformula\ldots % This always fails
>    \else
>      Inside dodoplaceformula\ldots
>   \fi}
> 
> \def\test{\futurelet\next\dotest}
> 
> \test$$A = B$$
> 
> This prints "Inside dodoplaceformula" even though the next character 
> is \$.
> 
> So, the \next=\nextnext branch never matches. I do not know why this 
> happens, but a more robust check is needed in doplaceformula.

One is a macro, the other a \let character.  This would work:

   \def\dotest{
      \let\nextnext=$
      \ifx\next\nextnext
        Inside dispplaceformula\ldots % This always fails
      \else
        Inside dodoplaceformula\ldots
     \fi}

but the \ifcat is file as well, I think

Taco

  parent reply	other threads:[~2006-12-05 22:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-04 21:24 Hubertus Schmidt
2006-12-05 21:46 ` Aditya Mahajan
2006-12-05 22:09   ` Aditya Mahajan
2006-12-05 22:53   ` Taco Hoekwater [this message]
2006-12-15 20:07   ` Hubertus
2006-12-16  8:32     ` Taco Hoekwater
2006-12-21 15:48       ` Aditya Mahajan

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=4575F852.5050109@elvenkind.com \
    --to=taco@elvenkind.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).