From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46386 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Unescaped $ and & in texts Date: Wed, 17 Dec 2008 22:08:36 +0100 Message-ID: References: <2EC7E9B1-D2B7-49B9-A39E-999EC76A8DCF@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229550178 21022 80.91.229.12 (17 Dec 2008 21:42:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 21:42:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 17 22:44:03 2008 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 1LD4BW-0002Wi-TR for gctc-ntg-context-518@m.gmane.org; Wed, 17 Dec 2008 22:44:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6D6521FB60; Wed, 17 Dec 2008 22:42:48 +0100 (CET) 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 17934-03-4; Wed, 17 Dec 2008 22:41:36 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8058C1FB95; Wed, 17 Dec 2008 22:14:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 25EB01FB95 for ; Wed, 17 Dec 2008 22:14:20 +0100 (CET) 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 13528-06 for ; Wed, 17 Dec 2008 22:13:38 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by ronja.ntg.nl (Postfix) with ESMTP id DF3C91FB39 for ; Wed, 17 Dec 2008 22:08:44 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id l26so49600fgb.8 for ; Wed, 17 Dec 2008 13:08:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:to:in-reply-to :content-type:content-transfer-encoding:mime-version:subject:date :references:x-mailer:from; bh=hgycupCLs0slcQv3tYhPVTO3+kC93itxNS5mdjs46RM=; b=AwY+lG0l2fWeyIrbrHCcCB/oP9syr3xpFSzFwtQ5Qe/ZgRQMzHdxvoN4c7zyZq1ZXy C4YLV2MBUwTGiJvE1K0+e/pQZwJgy+jpaHBaaCzdd2dVJGFdiyE5Asic540VHu1UfcSS QJouri/9JM4ZS/Oiy+xwV8GGoAjQG91h2ZMvY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:to:in-reply-to:content-type:content-transfer-encoding :mime-version:subject:date:references:x-mailer:from; b=DWfsc41+LLXtLwVSktLzNofwLKzBviwx17aiaF1hueySoXVsPtCJqbJ62qCuTBl26C jhspJc3vQpi0Vdfsf6vXyzkjiy6xNrGYA/2B/PgGoAqjVOwF4BUXSNGyQ/9UDfaN8TXt KjX8AvV4lADPiKE1Kc7CGoUvJJ6zMrIFHsMk4= Original-Received: by 10.86.100.19 with SMTP id x19mr689816fgb.29.1229548124128; Wed, 17 Dec 2008 13:08:44 -0800 (PST) Original-Received: from ?10.70.199.87? (8.106.113.82.net.de.o2.com [82.113.106.8]) by mx.google.com with ESMTPS id d4sm4249804fga.31.2008.12.17.13.08.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Dec 2008 13:08:42 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46386 Archived-At: Am 17.12.2008 um 21:46 schrieb Aditya Mahajan: > On Wed, 17 Dec 2008, Wolfgang Schuster wrote: > >> Can't we add a new mode to ConTeXt to use $ and & in text >> without escaping them with a backslash, & is not needed >> to write tables and for inline math \formula could be used. > > Also add # to the list. Basically, we can just define a catcode > regime where only \ { and } are special. Inside math mode (activated > by \formula, \math, \mathematics, or \startformula) we can switch to > a catcode regime where _ and ^ are also set to appropriate catcodes. > I would go as far as to say that we should make this default, but I > don't think everyone will like that. So, for me a > \justwritenaturally macro will do :-) I wasn't sure if I should add # to the list bit it makes sense. \nonknuthmode takes care to tread _ and ^ as subscript and superscript in math mode and as normal chars in text mode. Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________