ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <darnold@northcoast.com>
Subject: \def\vec#1
Date: Sun, 31 Oct 2004 11:49:51 -0800	[thread overview]
Message-ID: <3.0.5.32.20041031114951.008dede0@mail.northcoast.com> (raw)

All,

This is fine.

\starttext

\startformula
\left(\matrix{y_1\cr y_2\cr \vdots\cr y_n}\right)=
\left(\matrix{x_1^2\cr x_2^2\cr \vdots\cr x_n^2}\right)
-2\left(\matrix{x_1\cr x_2\cr \vdots\cr x_n}\right)
-\left(\matrix{3\cr 3\cr \vdots\cr 3}\right).
\stopformula
If
\startformula
\vec x =\left(\matrix{x_1\cr x_2\cr \vdots\cr
  x_n}\right)\quad\hbox{and}\quad
\vec y =\left(\matrix{y_1\cr y_2\cr \vdots\cr y_n}\right),
\stopformula

\stoptext

But when I redefine \vec, I get a problem.

\def\vec#1{\bf #1}

\starttext

\startformula
\left(\matrix{y_1\cr y_2\cr \vdots\cr y_n}\right)=
\left(\matrix{x_1^2\cr x_2^2\cr \vdots\cr x_n^2}\right)
-2\left(\matrix{x_1\cr x_2\cr \vdots\cr x_n}\right)
-\left(\matrix{3\cr 3\cr \vdots\cr 3}\right).
\stopformula
If
\startformula
\vec x =\left(\matrix{x_1\cr x_2\cr \vdots\cr
  x_n}\right)\quad\hbox{and}\quad
\vec y =\left(\matrix{y_1\cr y_2\cr \vdots\cr y_n}\right),
\stopformula

\stoptext

I thought \vec in this case should just chew up the very next symbol, but
the bold seems to continue into the display in the second formula.

I'm missing something here. What is it?

             reply	other threads:[~2004-10-31 19:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-31 19:49 David Arnold [this message]
2004-10-31 19:57 ` \def\vec#1 Matthias Weber
2004-10-31 20:12   ` \def\vec#1 David Arnold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3.0.5.32.20041031114951.008dede0@mail.northcoast.com \
    --to=darnold@northcoast.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).