From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25147 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Reg. fonts and math Date: Fri, 13 Jan 2006 18:59:21 +0100 Message-ID: <43C7EA79.5020606@wxs.nl> References: <20060112005520.GA4476@localhost> <43C6113F.5070706@wxs.nl> <43C69632.1040906@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080206090106060906080401" X-Trace: sea.gmane.org 1137175220 3376 80.91.229.2 (13 Jan 2006 18:00:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2006 18:00:20 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 13 19:00:17 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 1ExTD0-0000hK-Og for gctc-ntg-context-518@m.gmane.org; Fri, 13 Jan 2006 18:59:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 38B851281D; Fri, 13 Jan 2006 18:59:30 +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 04789-05; Fri, 13 Jan 2006 18:59:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 42BBE127DA; Fri, 13 Jan 2006 18:59:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FC1F127DA for ; Fri, 13 Jan 2006 18:59:25 +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 04928-04-2 for ; Fri, 13 Jan 2006 18:59:24 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with SMTP id 3B5EB127C2 for ; Fri, 13 Jan 2006 18:59:23 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 501 for ; Fri, 13 Jan 2006 13:09:58 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:25147 Archived-At: This is a multi-part message in MIME format. --------------080206090106060906080401 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Aditya Mahajan wrote: > No, I mean the complicated math is much harder in context. Consider > > \begin{align} > a &= b \\ > c &= d \notag \\ > &= f \notag \\ > &= g > \end{align} > > which will typeset as > > a = b (1) > c = d > = f > = g (2) > > \begin{subequations} > \begin{align} > a &= b \\ > c &= d > \end{align} > \end{subequations} > > Compare this from how to do this in context (see the wiki). You have > to *manually* set the number of the subequation. Actually, for > equation numbering and refering, the context way is rather limited. > Consider something like an align environment > > a &= b\\ > c &= d\\ > e &= f > > Suppose, I want to refer to the second equation. In latex, I can > simply add \label{eq:2} and the end of c&= d and then \ref{eq:2}. For > context, the reference label goes at the top, with \placeformula[eqs]. > But I am not sure, how to give individual labels to each equations. this 'loose label' is one of the ugliest concept i can think of -) i'm willing to implement anything reasonable but since i hardly use such math i only act on 'i want to achieve this' kind of specs (i have no time to read tons of tex documents) much if this 'complicated' math is not that complicated to support,see attached file btw, defaulting to numbers and then using \notag is messy; i prefer readable code, even if it takes more bytes; inventing a formula takes more time than keying it in. Also, more structure, means more hooks for configurability Hans --------------080206090106060906080401 Content-Type: text/x-tex; name="math-ltx.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="math-ltx.tex" % some simple math constructs \unprotect \def\numberedeqalign {\doifelse\@@fmlocation\v!left\leqalignno\eqalignno} \def\doalignNR[#1][#2]% {\doifsomething{#1} {\doifelse{#1}{+} {\doformulanumber[][#2][]{}} {\doformulanumber[#1][#2][]{}}}} \long\def\startalign#1\stopalign {\def\NC{\crcr\def\NC####1{&####1}}% \def\EQ{&=} \def\NR{&\dodoubleempty\doalignNR}% % amstex compatibility mode: \def\notag{\def\\{&\crcr}}% \def\\{&\doalignNR[+][]\crcr}% % end of compatibility mode \numberedeqalign{#1\relax}} %D \startbuffer %D \placeformula \startformula \eqalignno { %D a &= b & \formulanumber \cr %D c &= d \cr %D &= e \cr %D &= f & \formulanumber %D } \stopformula %D \stopbuffer %D %D \typebuffer \getbuffer %D %D \startbuffer %D \placeformula \startformula \startalign %D \NC a \EQ b \NR[+] %D \NC c \EQ d \NR %D \NC \EQ f \NR[for:hans] %D \NC \EQ g \NR[for:whoelse][a] %D \NC \EQ h \NR[for:whomore][b] %D \NC \EQ i \NR %D \stopalign \stopformula %D \stopbuffer %D %D \typebuffer \getbuffer %D %D \startbuffer %D \placeformula \startformula \startalign %D \NC a \EQ b \NR[+] %D \NC c \EQ d \NR %D \NC \EQ f \NR %D \NC \EQ g \NR %D \NC \EQ h \NR %D \NC \EQ i \NR[+] %D \stopalign \stopformula %D \stopbuffer %D %D \typebuffer \getbuffer %D %D \startbuffer %D \placeformula \startformula \startalign %D a &= b \\ %D c &= d \notag \\ %D &= e \notag \\ %D &= f \\ %D \stopalign \stopformula %D \stopbuffer %D %D \typebuffer \getbuffer %D %D \startbuffer %D \placeformula \startformula \startalign %D a &= b \NR[+] %D c &= d \NR %D &= e \NR %D &= f \NR[+] %D \stopalign \stopformula %D \stopbuffer %D %D \typebuffer \getbuffer %D %D \startbuffer %D \placeformula \startformula \startalign %D \NC a \NC \eq b \NR[+] %D \NC c \NC \neq d \NR %D \NC \NC \neq f \NR[for:hans] %D \NC \NC \geq g \NR[for:whoelse][a] %D \NC \NC \leq h \NR[for:whomore][b] %D \NC \NC \neq i \NR %D \stopalign \stopformula %D \stopbuffer %D %D \typebuffer \getbuffer \protect \endinput --------------080206090106060906080401 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 --------------080206090106060906080401--