From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39069 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Adding whitespace equivalent to a -ve sign Date: Mon, 11 Feb 2008 13:38:00 -0500 (EST) Message-ID: References: <7a884c7c0802110951h71800bbdtdaeea9c7025c176c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202755148 21386 80.91.229.12 (11 Feb 2008 18:39:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Feb 2008 18:39:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 11 19:39:30 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 1JOdYv-00008D-4o for gctc-ntg-context-518@m.gmane.org; Mon, 11 Feb 2008 19:39:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5A40B1FC00; Mon, 11 Feb 2008 19:38:58 +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 02490-02-4; Mon, 11 Feb 2008 19:38:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 11AD71FB95; Mon, 11 Feb 2008 19:38:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D38AE1FB95 for ; Mon, 11 Feb 2008 19:38:15 +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 02330-03-2 for ; Mon, 11 Feb 2008 19:37:42 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with ESMTP id 973671FB30 for ; Mon, 11 Feb 2008 19:37:42 +0100 (CET) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY tombraider.mr.itd.umich.edu ID 47B095F3.5F47F.26822 ; 11 Feb 2008 13:37:40 -0500 X-X-Sender: adityam@adi-laptop In-Reply-To: <7a884c7c0802110951h71800bbdtdaeea9c7025c176c@mail.gmail.com> User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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:39069 Archived-At: On Mon, 11 Feb 2008, Dave wrote: > Hi all, > > I am trying to line up some equations on a page and I'd like to insert > some whitespace that has the same width as a -ve sign in an equation. > An example would be trying to ensure the cosine and sine and on the > first and second rows (second column) in the matrix below: > > \startpmatrix > % Row 1 > \NC - \cos \theta_{\text{el}} \, \sin \theta_{\text{az}} > \NC \cos \theta_{\text{az}} change this to \NC \hphantom{-} \cos \theta .... > \NC \sin \theta_{\text{el}} \, \sin \theta_{\text{el}} \NR > % Row 2 > \NC - \cos \theta_{\text{el}} \, \cos \theta_{\text{az}} > \NC - \sin \theta_{\text{az}} > \NC \sin \theta_{\text{el}} \, \cos \theta_{\text{el}} \NR > % Row 3 > \NC - \sin \theta_{\text{el}} > \NC 0 > \NC \cos \theta_{\text{el}} \NR > \stoppmatrix > > Any ideas? Normally you have to be a bit careful with minus as it is both a uniary and binary operator. To get the space equal to a uniary operator \hphantom{-} should be ok, to get space equal to binary operator, you can try \hphantom{{}-} or \hphantom{{}-{}} Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________