ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems with inner products
@ 2009-09-05  0:10 Guilherme P. de Freitas
  2009-09-05  7:35 ` Mojca Miklavec
  0 siblings, 1 reply; 2+ messages in thread
From: Guilherme P. de Freitas @ 2009-09-05  0:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi everybody,

I am trying to define a command for inner products. I would like to
type $\innerprod{x, y}$ and obtain in the output <x, y>. Now, I
defined

\define[2]\innerprod
  {\langle #1, #2 \rangle}

but then, when I used the command, I got some weird behavior: the next
character after "y" would "jump in" the inner product. For example,
when writing

$\innerprod{x, y} + z$

I was hoping to obtain as an output

<x, y> + z

But I got as an output

<x, y +> z

I am using the ConTeXt that came with MacTeX 2008 (I downloaded it a
few days ago).

Best,

Guilherme

-- 
Guilherme P. de Freitas
http://www.gpfreitas.com
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-05  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-05  0:10 Problems with inner products Guilherme P. de Freitas
2009-09-05  7:35 ` Mojca Miklavec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).