From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27503 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: \to broken in figure captions Date: Wed, 26 Apr 2006 14:28:39 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1146078489 12488 80.91.229.2 (26 Apr 2006 19:08:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Apr 2006 19:08:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 26 21:08:08 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYpMX-0002uj-9N for gctc-ntg-context-518@m.gmane.org; Wed, 26 Apr 2006 21:07:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DF5BF1276C; Wed, 26 Apr 2006 21:07:44 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08182-01; Wed, 26 Apr 2006 21:07:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8A841127A5; Wed, 26 Apr 2006 20:44:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 15119127A5 for ; Wed, 26 Apr 2006 20:44:55 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02375-03-2 for ; Wed, 26 Apr 2006 20:44:53 +0200 (CEST) Original-Received: from elasmtp-banded.atl.sa.earthlink.net (elasmtp-banded.atl.sa.earthlink.net [209.86.89.70]) by ronja.ntg.nl (Postfix) with SMTP id 7011C12798 for ; Wed, 26 Apr 2006 20:44:53 +0200 (CEST) Original-Received: from [24.41.6.91] (helo=approximate.corpus.cam.ac.uk) by elasmtp-banded.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1FYokn-0004Tg-IE; Wed, 26 Apr 2006 14:28:45 -0400 Original-Received: from sanjoy by approximate.corpus.cam.ac.uk with local (Exim 4.60) (envelope-from ) id 1FYokh-00024e-5R; Wed, 26 Apr 2006 14:28:39 -0400 Original-To: ntg-context@ntg.nl X-Mailer: MH-E 7.93; nmh 1.1; GNU Emacs 21.4.1 X-ELNK-Trace: dcd19350f30646cc26f3bd1b5f75c9f474bf435c0eb9d4782088ab7387351386852952782f074e102ffe657be2d6946c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.41.6.91 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:27503 Archived-At: In inline math, \to works fine (produces a right arrow), but in a figure caption all hell breaks loose. The culprit may be this redefinition of \to in enco-ini.tex: $ find texmf -name '*.tex' |xargs egrep -n '\\((e|g|)def|let)\\to\b' texmf/tex/context/base/core-pos.tex:642: %\edef\to {\POSprefix#1}% texmf/tex/context/base/enco-ini.tex:1565: {\appendtoks\let\to\everylowercase texmf/tex/context/base/enco-ini.tex:1570: {\appendtoks\let\to\everyuppercase [context : ver: 2006.04.17 23:14] This test file: \starttext \placefigure[abc]{ABC $n\to1$.}{} \input tufte \stoptext produces lots of errors beginning with ERROR: Missing control sequence inserted. --- TeX said --- \inaccessible 1 \convertargument #1\to #2->\dodoglobal \edef #2 {\detokenize {#1}} ABC $n\to 1 $. \docompletefloat ... \doglobal \convertargument #6 \to \asciititle \ifnofloat... ...abc}{figure}{ABC $n\to 1$.}\nextbox \else \docompletefloat {fi... ... l.2 \placefigure[abc]{ABC $n\to1$.}{} \input tufte