From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15833 Path: main.gmane.org!not-for-mail From: Eckhart =?iso-8859-1?Q?Guth=F6hrlein?= Newsgroups: gmane.comp.tex.context Subject: Re: Converting math from LaTeX to ConTeXt Date: Tue, 27 Jul 2004 13:42:51 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <20040727114251.GG25818@cebitec.uni-bielefeld.de> References: <4.3.1.2.20040725215940.01876a88@cits1.stanford.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1090928582 32501 80.91.224.253 (27 Jul 2004 11:43:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2004 11:43:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 27 13:42:57 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BpQMD-0002pJ-00 for ; Tue, 27 Jul 2004 13:42:57 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AD3AE127A8; Tue, 27 Jul 2004 13:42:56 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10624-04-2; Tue, 27 Jul 2004 13:42:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 92346127A3; Tue, 27 Jul 2004 13:42:55 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8E576127A3 for ; Tue, 27 Jul 2004 13:42:54 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10624-04 for ; Tue, 27 Jul 2004 13:42:54 +0200 (CEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE (unknown [129.70.160.28]) by ronja.ntg.nl (Postfix) with ESMTP id 0FF551279D for ; Tue, 27 Jul 2004 13:42:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id BE2DF2D606 for ; Tue, 27 Jul 2004 13:42:53 +0200 (MEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (sauron [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08851-01-7 for ; Tue, 27 Jul 2004 13:42:52 +0200 (MEST) Original-Received: from bagheera.Genetik.Uni-Bielefeld.DE (bagheera.CeBiTec.Uni-Bielefeld.DE [129.70.160.62]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 614F02D605 for ; Tue, 27 Jul 2004 13:42:52 +0200 (MEST) Original-Received: by bagheera.Genetik.Uni-Bielefeld.DE (Postfix, from userid 13119) id 27673C1F; Tue, 27 Jul 2004 13:42:52 +0200 (MEST) Original-To: mailing list for ConTeXt users Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: <4.3.1.2.20040725215940.01876a88@cits1.stanford.edu> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at cebitec.uni-bielefeld.de X-Virus-Scanned: by 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15833 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15833 On Sun, Jul 25, 2004 at 10:31:24PM -0700, Brooks Moses wrote: > First, by way of introduction: I've been using LaTeX for about five years > now, but am quite new to ConTeXt. I'm a grad student in mechanical > engineering, so my primary uses of ConTeXt in the near future are likely to > be for my thesis and associated presentations, all of which will likely > have lots of complicated equations in them. In general, it will be very helpful to know how things can be done in plain tex. This should always work in context. > After looking at what documentation is available for this, I think I have a > fair handle on the basics of including math in ConTeXt. However, I do have > some questions about things beyond the basics that I use rather frequently, > and I haven't been able to find useful answers in the documentation or the > list archives. > > To begin with, I have the following sets of definitions in my standard > LaTeX preamble. I know that \newcommand and \renewcommand are > LaTeX-specific; what's the appropriate ConTeXt equivalent? Also, do \hat, > \vec, and \overline work as I would expect? And is there a direct > equivalent to \boldsymbol from the amsmath package? (I need something that > will handle both roman and greek letters.) I have been away from context for some time, but I know that Giuseppe Bilotta has spent much effort on extending its math capabilities. I think he has written some modules providing amsmath features. But he will probably comment on this in more detail and in a more qualified way than I can. > \renewcommand{\vec}[1]{{\boldsymbol{#1}}} > \renewcommand{\hatn}{\hat{\vec{n}}} > \newcommand{\filter}[1]{\overline{#1}} You can use the tex primitve \def\vec#1{{\boldsymbol{#1}} or the context way \define[1]\vec{{\boldsymbol{#1}} But afaik there is no checking if a command is already defined? -- Eckhart