--- On Dec 2, Mojca Miklavec wrote ---
1. What's the best way to frame a formula like here:
\placeformula
\startformula
\mframed{x^2+y^2=z^2}
\stopformula
The problem is that:
- formula number is shifted downwards in comparison to the formula
without a number
- I don't know how to do
found
myself going {\sl round in circles}.
Not necessariy a {\sc bad} thing.
\input knuth
\placeformula[-]
\startformula
f(x)={1 \over {3-1}}\int_1^3 (x^2-2x-3)\, dx
\stopformula
\input knuth
\placeformula[-]
\startformula
f(x)=\cases{%
1/3, if $0\le x\le 1$;\cr
2/3, if $3\le x\le 4$;\cr
0
]
\setupbodyfont[david,ss,10pt]
\starttext
In attempting to {\bf explain} this {\em typesetting ritual}, I found
myself going {\sl round in circles}.
Not necessariy a {\sc bad} thing.
\input knuth
\placeformula[-]
\startformula
f(x)={1 \over {3-1}}\int_1^3 (x^2-2x-3)\, dx
\stopformula
\input knuth
Adam, Taco, Hans, et al,
This file:
%output=pdf
\startcomponent section1
\project book
\product chapter1
\section{Trinomials}
\input knuth
\placeformula[eq:1]
\startformula
f(x)=x^2+2x-3
\stopformula
We, see in \in{Equation}[eq:1], the historical use of function notation.
\stopcomponent
One more quick question. When using a grid, I gather that I
should wrap all floating content (tables figures in my case) with
\placeongrid to ensure \snaptogrid is being used. Does this also
apply to formulae? i.e. should I be using:
\placeformula
\placeongrid{%
\startformula
Olivier wrote:
Hi,
Seems like the following crashes conTeXt:
see patch below
Strangely enough, the bug doesn't seem to occur in
\placeformula[eq:A]
references get their labels cleaned up
Many thanks for hinting a fix,
\unprotect
\def\dopreventmode[#1]%
{\protect
.
However, the bug will also occur in the
\cite[Bob:A,Bob:B]
commands from the bib module, and I assume in anything that deals with
csnameS containing active colons...
Strangely enough, the bug doesn't seem to occur in
\placeformula[eq:A]
Many thanks for hinting a fix,
Olivier
+ long right-hand-side part 3
Essentially, you'd write that in an eqalign (or something like it), as:
\placeformula
\startformula
\eqalign{%
\lefteqn{long left-hand-side}\qquad \cr
= long right-hand-side part 1 \cr
\quad {}+ long right-hand-side part 2 \cr
]
\placeformula{a}
\startformula
c^2 = a^2 + b^2 \eqno{\formulanumber}
\stopformula
\stoptext
First, if I want \stopinnermath to handle the formula number, I have to
somehow turn off the \doplaceformulanumber that gets called at the
beginning of \dostopformula. Redefining the macro
I was recently going through the core-mat.tex file (the one from teTeX
3.0.whatever-it-is) and trying out some of the examples given in the
comments, and came across an odd little bug. Consider the following:
\tracemathtrue
\setupformulas[align=middle]
\placeformula \startformula
OK, not the first time I bring this up, and its not a serious issue,
but its very irritating having overfull hboxes that are in all ways
correct:
\version[temporary]
\definedescription
[test]
[location=left]
\starttext
\starttest{1 is 1}
Solution:
\placeformula[-]
$$1 = 1$$
\stoptest
\starttheorem
This is a test
\placeformula
\startformula
a = b
\stopformula
And the test continues. Notice that the equation number is in
\type{\it}
and not in \type{\upshape}.
\stoptheorem
\stoptext
Notice that the equation number is italic.
Compare
, ...).
Does any Font/TeXnician have any idea how to make \Big\updownharpoons work?
xiaojf said this at Sat, 14 May 2005 21:36:45 +0800:
Hi,
I can code the cycle in ConTeXt,but it's too ugly and I will try to
improve it.
here is my code:
\starttext
\placeformula
\startformula
\matrix{A+B{\Delta
} and
\formula{\upharpoonleft\!\downharpoonright}.
\stoptext
Do you know how you would code that cycle in (AMS)LaTeX?
Hi,
I can code the cycle in ConTeXt,but it's too ugly and I will try to improve it.
here is my code:
\starttext
\placeformula
\startformula
\matrix{A+B{\Delta G_1\atop
Monday, November 15, 2004 Nikolai Weibull wrote:
* Christopher Creutzig [EMAIL PROTECTED] [Nov 15, 2004 17:20]:
Try \startnathequation ... \stopnathequation instead.
Ah, thanks. Is there still a way to get unnumbered equations?
nikolai
Do not put \placeformula before the equation
Hallo,
Giuseppe Bilotta wrote:
Try \startnathequation ... \stopnathequation instead.
Ah, thanks. Is there still a way to get unnumbered equations?
Do not put \placeformula before the equation :)
Well, that changes a bit the spacing, how about \placeformula[-] ?
Tobias
Hello,
I'd like to typeset
[\partial,B]=0
but
\starttext
\placeformula
\startformula
0= [ A ,B ] = 0
\stopformula
gives just =0
(see below)
while
\stoptext
\starttext
\placeformula
\startformula
0= [ A ,B ]
\stopformula
\stoptext
works. What is the meaning of [ at the beginning of a formula
Matthias Weber wrote:
Hello,
I'd like to typeset
[\partial,B]=0
but
\starttext
\placeformula
\startformula
0= [ A ,B ] = 0
\stopformula
gives just =0
(see below)
while
\stoptext
\starttext
\placeformula
\startformula
0= [ A ,B ]
\stopformula
\stoptext
works. What is the meaning
Thanks!
Matthias
On Nov 16, 2004, at 4:26 PM, h h extern wrote:
Matthias Weber wrote:
Hello,
I'd like to typeset
[\partial,B]=0
but
\starttext
\placeformula
\startformula
0= [ A ,B ] = 0
\stopformula
gives just =0
(see below)
while
\stoptext
\starttext
\placeformula
\startformula
0= [ A ,B
Nikolai Weibull wrote:
\usemodule[nath]
\starttext
$A = (B, C, D, E)$
\placeformula
\startformula
A = (B, C, D, E)
\stopformula
\stoptext
! Undefined control sequence.
l.6 A = (
B, C, D, E)
? X
Try \startnathequation ... \stopnathequation instead. Or patch
Otared Kavian wrote :
Hi David and all ConTeXters,
I was away from my e-mail so I am late in answering.
Thank you for the file you put on your site. Indeed everything works
as intended (the \placeformula no longer advances with each step),
and I think one may suggest to Hans to include
get the same broken spacing as in:
\startformula
a {+ b}
\stopformula
\stoptext
eh ... are you redefining low level macros?
I'd never dare to... ;-) Just overriding \placeformula within
\begingroup/\endgroup to mangle the formula numbers.
Thank you,
David
,
it is the following:
When one uses these macros with an automatic numbering such as
\placeformula[equation-reference] (see the example below), with each
invocation of \page (that is a step) the number increases, and this
is an unwanted side result. Would it possible to freeze the
numbering
suggest a possible improvement to the t-rsteps.tex macros,
it is the following:
When one uses these macros with an automatic numbering such as
\placeformula[equation-reference] (see the example below), with each
invocation of \page (that is a step) the number increases
file: here is what I get:
% begin error report:
! Missing number, treated as zero.
to be read again
[EMAIL PROTECTED]:incompressibility
\setcounter ...ame #1\endcsname {\the \numexpr (#2
)}
\placeformula ...\csname [EMAIL
}
\usepackage{amsmath}
\begin{document}
\begin{gather*}
F(x)=\int_0^x f(t)\, dt\\
F'(x)=f(x)
\end{gather*}
\end{document}
I hope this helps those who are working on these issues.
In ConTeXt, the usual behavior of such things is to have them
unnumbered unless they are preceded by a \placeformula
are working on these issues.
In ConTeXt, the usual behavior of such things is to have them
unnumbered unless they are preceded by a \placeformula[label],
and this is the convention I'm following in the amsl module ...
should it be changed?
Not necessarily. You probably should stick with the Context Way
f(t)\, dt\\
F'(x)=f(x)
\end{aligned}
\end{equation}
\end{document}
I can get this with amsl, with:
\usemodule[amsl]
\starttext
\placeformula[fundthm]
\startalign
F(x)=\int_0^x f(t)\, dt\\
F'(x)=f(x)
\stopalign
We see in the \in{Fundamental Theorem}[fundthm] \ldots
\stoptext
I'm not sure how
]
\starttext
\placeformula[func]
\startformula
P_{r-j}=
\startcases
0, \text{if $r-j$ is odd}\\
r!(-1)^{(r-j)/2}, \text{if $r-j$ is even.}
\stopcases
\stopformula
\stoptext
You'll note that the spacing in the latter is not as good.
___
ntg-context
7.4.5).
nath seems to have trouble with $$...$$-formulas. This file won't compile:
\usemodule[nath]
\starttext
\placeformula
$$a$$
\stoptext
Error message:
Runaway argument?
\@@dollar {\to \asciiB \ExpandBothAfter \doifincsnameelse \asciiA
\asciiB \ETC.
! File ended while scanning use
Hello,
I started using context recently and have encountered
some difficulties where I need some help to get over.
(1) References in math formulas:
\placeformula [Ref]
\startformula
\eqalignno {
...
}
\stopformula
It seems that referencing to '\eqalignno'-formulas
needs some tricks
Hello,
Eeri Kask wrote:
(1) References in math formulas:
\placeformula [Ref]
\startformula
\eqalignno {
...
}
\stopformula
This should work ok. Try
\placeformula[ref]
\startformula\eqalignno{
a = b \formulanumber[refa]{a}\cr
b =c \subformulanumber[refb]{b}\cr
}\stopformula
\in[ref], \in[refa
. This file won't compile:
\usemodule[nath]
\starttext
\placeformula
$$a$$
\stoptext
Error message:
Runaway argument?
\@@dollar {\to \asciiB \ExpandBothAfter \doifincsnameelse \asciiA
\asciiB \ETC.
! File ended while scanning use of \convertargument.
Replacing $$...$$ by \startformula...\stopformula
Hi Brooks
The following simple file works fine if I comment out the
\usemodule[newmat] line, but crashes if I put it in.
\usemodule[newmat]
\starttext
\placeformula
\startformula
\eqalign{\frac{1}{2} \cr}
\stopformula
\stoptext
ah ... the alignment lookahead problem, i think we
The following simple file works fine if I comment out the
\usemodule[newmat] line, but crashes if I put it in.
\usemodule[newmat]
\starttext
\placeformula
\startformula
\eqalign{\frac{1}{2} \cr}
\stopformula
\stoptext
- Brooks
___
ntg
Hello,
[EMAIL PROTECTED] wrote:
is ConTeXt prepared for math?
With regard to mathematics ConTeXt can do all things which plain TeX can.
I mean...can I do...
$\sum_{i=1}^{n}{x_{i}}$
as I used to in LaTeX?
Yes. For displaymath you can use plain TeX's $$\sum$$ or better
\placeformula
\placeformula[form:a-prime]
\startformula
a^{'} = \frac{1,05 \times N_{s}}{q_{s}} = \frac{1,05
\times 0,246}{0,15} = 1,722 \approx \inframed{1,75 m}
\stopformula
%working
\placeformula[form:a-prime]
\startformula
\eqalignno{ %%or \leqalignno%%
a^{'} = \frac{1,05
Tuesday, January 20, 2004 David Munger wrote:
Let
\placeformula
\[
f(x) = x^2,
\]
where $x$ means nothing.
I've found that inserting
\let\startformula\startmpformula
\let\stopformula\stopmpformula
before \usemodule[nath] does the trick. But I feel it's not a very good idea.
Any
Hello,
Compiling the following results in indented text following the formula:
% interface=en tex=pdfetex output=pdftex
\usemodule [nath]
\setupindenting [medium]
\starttext
\section{Some section}
Let
\placeformula
\[
f(x) = x^2,
\]
where $x$ means nothing.
\stoptext
I'd like where $x$ means
On Tue, 13 Jan 2004, Tobias Burnus wrote:
Hi,
On Tue, Jan 13, 2004 at 01:56:55PM +0100, Albrecht Kauffmann wrote:
in a former paper I used
[...]
How about
\placeformula[one]
\startformula
\eqalignno{
a = b \formulanumber[one-a]{a}\cr
c = d \subformulanumber[one-b]{b}\cr
Monday, December 8, 2003 David Munger wrote:
\placeformula
\startgather
f(x) = x \\
g(x) = x^2 \\
h(x) = x^3
\stopgather
I will look into this. Are you using amsl only or nath too?
It works well with amsl only. Though it would be nice to have an option to
chose between
Hello Giuseppe, you've done a great work with amsl an nath modules!
Seems that there is a little bug when you try to gather more than two
formulas:
\placeformula
\startgather
f(x) = x \\
g(x) = x^2 \\
h(x) = x^3
\stopgather
When doing so, I end up with the last two equations on the same
\placeformula
\startgather
f(x) = x \\
g(x) = x^2 \\
h(x) = x^3
\stopgather
I will look into this. Are you using amsl only or nath too?
It works well with amsl only. Though it would be nice to have an option to
chose between individual numbering or one number for all equations
[Sorry if this is a repost. The first time, I posted from the wrong email
account.]
---
Hello Giuseppe, you've done a great work with amsl an nath modules!
Seems that there is a little bug when you try to gather more than two
formulas:
\placeformula
\startgather
f(x) = x
two
formulas:
\placeformula
\startgather
f(x) = x \\
g(x) = x^2 \\
h(x) = x^3
\stopgather
When doing so, I end up with the last two equations on the same line, with the
same equation number.
I will look into this. Are you using amsl only or nath too?
--
Giuseppe Oblomov Bilotta
Hello All:
At this moment i am producing a set of documents, that ocasionally have
refences among them. For eg:
document 1
\starttext
\placeformula[eq:1.1]
\startformula
e = m c^2
\stopformula
\stoptext
document 2
\starttext
In here I
of them.
For alignment I seem to be able to use \eqalign (or \startalign ...
\stopalign from the t-amsl.tex sent around here lately). But if I place a
\placeformula in front of this, the whole aligned block only gets one
number; I would need a number for every line (or even better: a possibility
Hi,
On Thu, 14 Aug 2003, Tobias Burnus wrote:
On Thu, 14 Aug 2003, Holger Schöner wrote:
Thanks, Tobias! This works for me, if I place a \placeformula before
formulas enclosed by $$. Funny, though, that I get an error if I instead
enclose the formula with \startformula ... \endformula
}
Thanks, Tobias! This works for me, if I place a \placeformula before
formulas enclosed by $$. Funny, though, that I get an error if I instead
enclose the formula with \startformula ... \endformula:
--
! You can't use `\halign' in math mode.
\eqalignno [EMAIL PROTECTED] \tabskip \centering
Hi,
On Thu, 14 Aug 2003, Tobias Burnus wrote:
On Thu, 14 Aug 2003, Holger Schöner wrote:
Thanks, Tobias! This works for me, if I place a \placeformula before
formulas enclosed by $$. Funny, though, that I get an error if I instead
enclose the formula with \startformula ... \endformula
Hi all,
On Thu, 14 Aug 2003, David Arnold wrote:
May I ask how I can reference each of these equations separately in the
text? That is, how can I give a different label to each equation in the
alignment, then reference each one independent of the other?
\placeformula[david]
\startformula
.
Have I done this the correct way?
\setupoutput[pdf]
\usetypescript[berry][texnansi]
\usetypescript[lbr]
\setupbodyfont[lbr]
\starttext
Hello. This is a {\em test} of what the {\it Lucida} {\sl Fonts} can
do at 6 {\sc am}.
\placeformula
\startformula
f(x)=\int_0^x f(t)\, dt
\stopformula
601 - 652 of 652 matches
Mail list logo