From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34375 Path: news.gmane.org!not-for-mail From: "Zhichu Chen" Newsgroups: gmane.comp.tex.context Subject: Re: Basic TeX question, how to redefine ^^M Date: Fri, 20 Apr 2007 12:22:34 +0800 Message-ID: <769ba7780704192122y6e02a41cp597d479262331fab@mail.gmail.com> References: <769ba7780704192033w5f0b2f3do761fe9ffa120ec3b@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1276341150==" X-Trace: sea.gmane.org 1177043324 2535 80.91.229.12 (20 Apr 2007 04:28:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2007 04:28:44 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 20 06:28:37 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1Hekjc-0004dF-Pz for gctc-ntg-context-518@m.gmane.org; Fri, 20 Apr 2007 06:28:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4CCF71FFC0; Fri, 20 Apr 2007 06:28:36 +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 16895-01; Fri, 20 Apr 2007 06:28:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 146FB20048; Fri, 20 Apr 2007 06:24:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 66F9620048 for ; Fri, 20 Apr 2007 06:24:03 +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 15852-02 for ; Fri, 20 Apr 2007 06:23:59 +0200 (CEST) Original-Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.229]) by ronja.ntg.nl (Postfix) with ESMTP id B894B1FF85 for ; Fri, 20 Apr 2007 06:22:37 +0200 (CEST) Original-Received: by nz-out-0506.google.com with SMTP id n1so621833nzf for ; Thu, 19 Apr 2007 21:22:34 -0700 (PDT) Original-Received: by 10.114.170.1 with SMTP id s1mr1066466wae.1177042954366; Thu, 19 Apr 2007 21:22:34 -0700 (PDT) Original-Received: by 10.114.103.11 with HTTP; Thu, 19 Apr 2007 21:22:34 -0700 (PDT) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:34375 Archived-At: --===============1276341150== Content-Type: multipart/alternative; boundary="----=_Part_135519_10005505.1177042954287" ------=_Part_135519_10005505.1177042954287 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Aditya, Thank you for pointing out my foolish mistake. On 4/20/07, Aditya Mahajan wrote: > > On Fri, 20 Apr 2007, Zhichu Chen wrote: > > > Hi everybody, > > ===================== > > \def\^^M{\endgraf\page[yes]} > > ===================== > > nothing happened. > > > > So I'm lost. Can you tell me how to make it? > > This seems to work for me: > > \starttext > \catcode`\^^M=\active > \def^^M{\page[yes]} > > > This > > Test > > \stoptext > > Aditya > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > -- Best Regards Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ---------------------------------------------------------------- ------=_Part_135519_10005505.1177042954287 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi Aditya,
 
Thank you for pointing out my foolish mistake.

 
On 4/20/07, Aditya Mahajan <adityam@umich.edu> wrote:
On Fri, 20 Apr 2007, Zhichu Chen wrote:

> Hi everybody,
> =====================
> \def\^^M{\endgraf\page[yes]}
> =====================
> nothing happened.
>
> So I'm lost. Can you tell me how to make it?

This seems to work for me:

\starttext
\catcode`\^^M=\active
\def^^M{\page[yes]}


This

Test

\stoptext

Aditya
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context



--
Best Regards
Chen
----------------------------------------------------------------

          Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
         No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
             tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
                                               | www.sinap.ac.cn
---------------------------------------------------------------- ------=_Part_135519_10005505.1177042954287-- --===============1276341150== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1276341150==--