Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-13 Thread Hans Hagen
redox wrote:
 Hi, Mikael,
 
 Thanks for your kindness, and sorry for my bad English ^_^
 
 I mean I want to type some math formulas with ConTeXt. Since i don't
 know too much about ConTeXt/TeX, i want to find a manual about this
 subject and to learn by myself.
 
 In the ConTeXt an excursion(page 15), it says,
 
 We advise you to do some further reading on typesetting formula in TeX.
 See for example:
 The TeXBook by D.E. Kunth
 The Beginners Book of TeX by S. Levy and R.Seroul
 
 
 I know that LaTeX(and AMS-LaTeX) has made some extensions to TeX in math
 typesetting, so I'm wondering if ConTeXt has also made extensions to
 TeX, or I can only type math formula in the way of basic TeX ?

\usemodule[math]

or

\usemodule[newmat]

or

\usemodule[nath]

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-13 Thread Maurice Diamantini
Le 13 mai 05 à 05:18, redox a écrit :
I mean I want to type some math formulas with ConTeXt. Since i don't
know too much about ConTeXt/TeX, i want to find a manual about this
subject and to learn by myself.
In the ConTeXt an excursion(page 15), it says,
We advise you to do some further reading on typesetting formula in  
TeX.
See for example:
The TeXBook by D.E. Kunth
The Beginners Book of TeX by S. Levy and R.Seroul


I know that LaTeX(and AMS-LaTeX) has made some extensions to TeX in  
math
typesetting, so I'm wondering if ConTeXt has also made extensions to
TeX, or I can only type math formula in the way of basic TeX ?
The first (only) starting point about math and context is
   http://contextgarden.net/Math
The main AMS environnements are available with amsl module
(should be in the recent context distribution, but not with the
TeXlive-2004)
   http://contextgarden.net/Math_with_amsl
Giuseppe Bilotta has also port the NATH LaTeX package
(NAtural maTHematics) :
   http://contextgarden.net/Math_with_nath
There is not yet documentation and sample about using thes module,
but the documentation of there LaTeX LaTeX version is very
usefull,
Cordialement,
Maurice Diamantini,
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Math startarray and \cases{xxx} bug?

2005-05-13 Thread Maurice Diamantini
Bonjour à tous,
I'm using amsl module, but it seems there is a probleme
with the startarray/stoparray environment which apear with the t
type of column (t for text).
So the basic cases commande doesn't work.
Also the \startcases/stopcases should have the same meaning thas
\cases{xxx} has, but it doen't.
I use textlive distrib with a copy og t-amsl.tex version 2004.11.18
Thank you for any help!
-- Maurice Diamantini
%%
\usemodule[amsl]
\starttext
\startformula
{\bf f(x)} =
\cases{
\sum_{x=1}^n x   if I am false
\\
\displaystyle% just to see the difference
\sum_{x=1}^n x^2 \text{if I am true}
   }
\stopformula
% This formala works as expected, but if I replace
% the forth column of type l which contains some \text{xxx} stuffs
% with a column of type t without using the \text command,
% there is an error.
\startformula
{\bf e_u(t)} =
\left\{
\startarray{dlll}% ou bien : \startarray{| d | l | r | l}
\displaystyle
\sum_{x=1}^n f(x)
 = ax^2 + b.x + c,
 = a
 \text{Here some text}
\\
\hfil y_2% just to center stuff within a d column
 = 3ax^3 + 3ax^2 + b.x + c,
 = b

\\
\sum_{x=1}^n h(x)
 = y_2,
 = a + b
  \text{encore du $(x^2)$ texte}
\stoparray
\right.
\stopformula
\startformula
{\bf e_u(t)} =
\startcases
\sum_{x=1}^n f(x)
 if I am true
\\
\displaystyle
\sum_{x=1}^n h(x)
 if I am false
\stopcases
\stopformula
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] encouraging line breaks

2005-05-13 Thread Stuart Jansen
What is the best way to encourage line breaks without hyphenation? I've
tried many combinations of \setuptolerances, \clubpenalty, \widowpenalty
\emergencystretch, etc. All to no avail. 

Basically, I've got XML content that is being rendered. Part of that
content needs to fit inside a small box at a large font size. (It's a
custom command tied to \chapter.) Although a line consisting of a single
word followed by copious white space would normally be very bad, in this
case it is fine. Below is an example situation where I want the text to
be rendered on two lines instead of one. I'm hoping I can do it without
adding manual breaks to the XML, however.

\definefont [GiantFont] [SansBold at 48pt]
\setupalign[nothyphenated]
\starttext
\framed[width=3in,align=right]{\GiantFont Foobar Bazqux}
\stoptext

-- 
Stuart Jansen [EMAIL PROTECTED]
Guru Labs, L.C.


signature.asc
Description: This is a digitally signed message part
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] encouraging line breaks

2005-05-13 Thread Adam Lindsay
Hi, Stuart.

This is a tricky one, using a second non-obvious keyword as a parameter.
I asked about this on-list a couple years ago. If you want to follow the
thread, the messages are here:
http://archive.contextgarden.net/search/[EMAIL PROTECTED]:
suppressing,sb:hyphenation.html

Short answer:

\framed[width=3in,align={right,broad}]{\GiantFont Foobar Bazqux}

Stuart Jansen said this at Fri, 13 May 2005 17:01:53 -0600:

 Below is an example situation where I want the text to
be rendered on two lines instead of one. I'm hoping I can do it without
adding manual breaks to the XML, however.

\definefont [GiantFont] [SansBold at 48pt]
\setupalign[nothyphenated]
\starttext
\framed[width=3in,align=right]{\GiantFont Foobar Bazqux}
\stoptext

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-13 Thread redox
Hans Hagen wrote:

redox wrote:
  

Hi, Mikael,

Thanks for your kindness, and sorry for my bad English ^_^

I mean I want to type some math formulas with ConTeXt. Since i don't
know too much about ConTeXt/TeX, i want to find a manual about this
subject and to learn by myself.

In the ConTeXt an excursion(page 15), it says,

We advise you to do some further reading on typesetting formula in TeX.
See for example:
The TeXBook by D.E. Kunth
The Beginners Book of TeX by S. Levy and R.Seroul


I know that LaTeX(and AMS-LaTeX) has made some extensions to TeX in math
typesetting, so I'm wondering if ConTeXt has also made extensions to
TeX, or I can only type math formula in the way of basic TeX ?



\usemodule[math]

or

\usemodule[newmat]

or

\usemodule[nath]

Hans
  

In the ConTeXt an excursion(page 92)(mp-cb-en.pdf), it says,

 At this moment you can load the following modules:
  chemic
  units
  pictex

I noted that the version of ConTeXt an excursion is May 27, 1999, so I 
think it's also a little out-of-date. 

Now my question is, what modules can I use in ConTeXt ? And where can I find 
detailed descriptions of these modules ?

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


  


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-13 Thread Tobias Burnus
Ni hao and hello,


redox wrote:

\usemodule[math]
  or
\usemodule[newmat]
  or
\usemodule[nath]


For most equation, the plain TeX commands incl. \eqalign and \eqalignno
should be enough. (For the latter: \formulanumber{} and
\formulasubnumber are useful.)

For nath, one should use the LaTeX documentation; for details see:
http://contextgarden.net/Math_with_nath

Analogously for AMS math functionality, see
http://contextgarden.net/Math_with_amsl


 At this moment you can load the following modules:
  units

I noted that the version of ConTeXt an excursion is May 27, 1999, so I 
think it's also a little out-of-date.
  

True, but all documentation is soon out of date. For the modules, you
quoted, see also:
http://contextgarden.net/Math

For bold math symbols:
http://contextgarden.net/Bold_Math

For m-newmat, read the source code; m-newmat is based on/inspired by
AMS's macropackage.
http://source.contextgarden.net/tex/context/base/m-newmat.tex


(I have to admit, I cannot find m-math.tex/t-math.tex anywhere.)

Regards,

Tobias
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context