From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66836 Path: news.gmane.org!not-for-mail From: Ian Lawrence Newsgroups: gmane.comp.tex.context Subject: writing physical quantities in maths mode Date: Fri, 11 Mar 2011 09:14:58 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299834914 20283 80.91.229.12 (11 Mar 2011 09:15:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2011 09:15:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 11 10:15:10 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PxyRB-000409-Qs for gctc-ntg-context-518@m.gmane.org; Fri, 11 Mar 2011 10:15:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E5A1CAADD; Fri, 11 Mar 2011 10:15:06 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6CpcfC+6pUO4; Fri, 11 Mar 2011 10:15:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2A8C6CAAD4; Fri, 11 Mar 2011 10:15:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25F3CCAAD4 for ; Fri, 11 Mar 2011 10:15:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qddnqYRmpYZg for ; Fri, 11 Mar 2011 10:15:00 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 0B749CAAD0 for ; Fri, 11 Mar 2011 10:15:00 +0100 (CET) Original-Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2B9Ew68001228 for ; Fri, 11 Mar 2011 10:14:59 +0100 Original-Received: by iyf13 with SMTP id 13so3370309iyf.14 for ; Fri, 11 Mar 2011 01:14:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=JfNmYttOMYH1PeFHEK+sakIvawmd5MTTj8qZuFZgB7w=; b=kSYuMkWQJ6/HI+PBXGsUQBahcZqsH3hXi2aVQbHOuVXDBTstBJheSV7nWo2srs49x0 Cg5Jc4RKw9nf21JvQyu8UKz25owQ1c/U/31I9/fT0G3TBOxJMNhfcrl1CGszMmxjyVNn JWtG/gTx4b4S3kfnJ1IMvVLpgseoFc5OuHlmI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=uZsKEfOgr/TmcVZx/rCIGzWBCgngRtxGlhgyPFV4iqr1vGuAiR7mS1PEDMdgt879p8 zGa1bYhJAc57RrkFeaphOorxTR5O59n8s6kDpk7Ow5anb9OnUVbLtbm2MOnsiTM4NVZc nJhXV56nJF+vIvCtXpGTJQIuLsgsUuEf/wdIM= Original-Received: by 10.231.186.85 with SMTP id cr21mr6696986ibb.164.1299834898186; Fri, 11 Mar 2011 01:14:58 -0800 (PST) Original-Received: by 10.231.34.198 with HTTP; Fri, 11 Mar 2011 01:14:58 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.210.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08EhJeWVL - 20c5f89b02e9 - 20110311 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:66836 Archived-At: Morning all, I have a need to write a lot of physical quantities - these should be in text mode. Mostly I can manage, but subscripts are causing me grief Eg \startformula \startmathalignment[n=3D3] \NC \text{F}\NC =3D\NC {\text{GMm} \over \text r^2}\NR \NC \text {force}_G \NC =3D\NC {\text{G} \times \text m_1 \times \text m_2 \over \text r^2}\NR \NC \text {force \low G} \NC =3D\NC {\text{G} \times \text m_1 \times \text m_2 \over \text r^2}\NR \stopmathalignment \stopformula In the second and third equantions I'd like force subscript G all in roman, not italic, to follow the standard conventin. The first one puts the G in the correct place, but in italic The second one manages roman, but it's offset. I suspect I could kludge this with hskips, but I think there should be a more elegant solution. If there is a paper on writing physics in ConTEXt (not maths... I have found the helpful couple by=A0Aditya Mahajan) that would save me time. For most relationships I am planning to use predefine quantities, then slot these in Like this in the header \define \forceQA {{\sl F}/\Newton} \define \forceQU {{\tf force}/{\tf newton}} \define \forceQ {{\tf force}} (etc) And this in the body \startformula {\forceQA \over \massQA} =3D \accelerationQA \stopformula \startformula {\forceQU \over \massQU} =3D \accelerationQU \stopformula \startformula {\forceQ \over \massQ} =3D \accelerationQ \stopformula Any more elegant solutions out there? Thanks Ian ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________