ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthias Weber <matweber@indiana.edu>
Subject: Re: \def\vec#1
Date: Sun, 31 Oct 2004 14:57:41 -0500	[thread overview]
Message-ID: <1F5EC19E-2B77-11D9-A68F-0003934F9514@indiana.edu> (raw)
In-Reply-To: <3.0.5.32.20041031114951.008dede0@mail.northcoast.com>

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

Matthias

On Oct 31, 2004, at 2:49 PM, David Arnold wrote:

> 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?
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-31 19:49 \def\vec#1 David Arnold
2004-10-31 19:57 ` Matthias Weber [this message]
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=1F5EC19E-2B77-11D9-A68F-0003934F9514@indiana.edu \
    --to=matweber@indiana.edu \
    --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).