ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Eckhart Guthöhrlein" <eckhart.guthoehrlein@uni-bielefeld.de>
Subject: Re: Converting math from LaTeX to ConTeXt
Date: Tue, 27 Jul 2004 13:42:51 +0200	[thread overview]
Message-ID: <20040727114251.GG25818@cebitec.uni-bielefeld.de> (raw)
In-Reply-To: <4.3.1.2.20040725215940.01876a88@cits1.stanford.edu>

On Sun, Jul 25, 2004 at 10:31:24PM -0700, Brooks Moses wrote:
> First, by way of introduction: I've been using LaTeX for about five years 
> now, but am quite new to ConTeXt.  I'm a grad student in mechanical 
> engineering, so my primary uses of ConTeXt in the near future are likely to 
> be for my thesis and associated presentations, all of which will likely 
> have lots of complicated equations in them.

In general, it will be very helpful to know how things can be done in
plain tex. This should always work in context.

> After looking at what documentation is available for this, I think I have a 
> fair handle on the basics of including math in ConTeXt.  However, I do have 
> some questions about things beyond the basics that I use rather frequently, 
> and I haven't been able to find useful answers in the documentation or the 
> list archives.
> 
> To begin with, I have the following sets of definitions in my standard 
> LaTeX preamble.  I know that \newcommand and \renewcommand are 
> LaTeX-specific; what's the appropriate ConTeXt equivalent?  Also, do \hat, 
> \vec, and \overline work as I would expect?  And is there a direct 
> equivalent to \boldsymbol from the amsmath package?  (I need something that 
> will handle both roman and greek letters.)

I have been away from context for some time, but I know that Giuseppe
Bilotta has spent much effort on extending its math capabilities. I
think he has written some modules providing amsmath features. But he
will probably comment on this in more detail and in a more qualified way
than I can.

>   \renewcommand{\vec}[1]{{\boldsymbol{#1}}}
>   \renewcommand{\hatn}{\hat{\vec{n}}}
>   \newcommand{\filter}[1]{\overline{#1}}

You can use the tex primitve
\def\vec#1{{\boldsymbol{#1}}
or the context way
\define[1]\vec{{\boldsymbol{#1}}

But afaik there is no checking if a command is already defined?

-- 
Eckhart

  reply	other threads:[~2004-07-27 11:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-26  5:31 Brooks Moses
2004-07-27 11:42 ` Eckhart Guthöhrlein [this message]
2004-07-29 16:46   ` Brooks Moses
2004-08-07 15:12 ` Giuseppe Bilotta

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=20040727114251.GG25818@cebitec.uni-bielefeld.de \
    --to=eckhart.guthoehrlein@uni-bielefeld.de \
    --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).