From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17013 Path: main.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: \presentationstep Date: Wed, 10 Nov 2004 19:25:23 +0100 Message-ID: <41925D13.2050000@seznam.cz> References: <1099728440.7428.19.camel@tempete.lac.qc.ca> <1099875456.24313.8.camel@tempete.lac.qc.ca> <1099936891.9341.7.camel@m51.ASTRO.UMontreal.CA> <1099948238.6378.3.camel@tempete.lac.qc.ca> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1100148656 594 80.91.229.6 (11 Nov 2004 04:50:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Nov 2004 04:50:56 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 10 19:26:54 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CRxBG-0006RA-00 for ; Wed, 10 Nov 2004 19:26:54 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D3559127C8; Wed, 10 Nov 2004 19:26:53 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32355-03; Wed, 10 Nov 2004 19:26:53 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BB9EB127C5; Wed, 10 Nov 2004 19:25:08 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AD506127C5 for ; Wed, 10 Nov 2004 19:25:07 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32376-01 for ; Wed, 10 Nov 2004 19:25:06 +0100 (CET) Original-Received: from smtp.seznam.cz (unknown [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 7A773127C3 for ; Wed, 10 Nov 2004 19:25:06 +0100 (CET) Original-Received: (qmail 25709 invoked from network); 10 Nov 2004 18:25:05 -0000 Original-Received: from unknown (HELO ?192.168.1.45?) (vit.zyka@82.142.74.35) by smtp.seznam.cz with SMTP; 10 Nov 2004 18:25:05 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: cs, en-us, en, sk, ru Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17013 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17013 > 1) Somehow the \FromStep[n][reserve] changes the internal mechanism of=20 > glue or spaces in displayed formulas. So one needs (as you do in your=20 > example) to add \; around operators such as +, -, =3D. Can one avoid th= is? Hi Otared, I can give only explanation but in the moment i do not know the=20 automatic solution. Mathematical material are processed in a pieces called atoms. There are=20 13 different atoms types (ord, op, bin, rel, open, close, punc, ...). Mathematical characters (+, =3D, ...) have implicit types (bin, rel; in=20 the case) or they can be set explicitly (\mathrel{<}, \mathop{\hbox{sin}}= ). Spacing in mathematical mode is done according to types of neighbour=20 atoms. TeX can add A) no space B) \mskip\thinmuskip C) \mskip\medmuskip D) \mskip\thickmuskip between atoms if it is surrounded from left or right with ord op close inner D) REL D) ord op open inner ord close inner C) BIN C) ord op close inner PUNCT B) ord op rel open close punct inner ord close inner B) OP B) ord op ord op close B) INNER B) ord open punct inner If no pair is in this table (ord-ord) no space is added. (Read the table as left-pair and right-pair not as triples.) Example: 1+1=3D2 expands like \mathord{1}\mathbin{+}\mathord{1}\mathrel{=3D}\mathord{2} and typeset like \mathord{1}\C\mathbin{+}\C\mathord{1}\D\mathrel{=3D}\D\mathord{2} (abbreviated by \def\B{\mskip\thinmuskip} etc.) But there are some exceptions (e.g. bin is changed to ord if nothing bin op rel open punct BIN rel close punct ). It makes things more difficult. So in your case the math is broken (by steps) into several separates=20 that is why the atom neighbourhood is lost. Example. Our 1+1=3D2 equation can be split to $1$$+1=3D2$ and mathbin + changes to ord and we lose space before (beginning of=20 math) and after (will be ord-ord pair). In this trivial example it can be solved by $1$$\mathord{}+1=3D2$ According to me, mathematical text has to be tuned manually in the=20 normal case; this spacial one is not a exception ;-( Vit Zyka 2. bin 3. >=20 > 2) When one refers (see example below) with the command (\in[eq:NS]) to= =20 > an equation which has been introduced with \placeformula[eq:NS] the=20 > interaction makes appear the first instance of that formula, which may=20 > be incomplete. Could one have a control over this, that is for instance= ,=20 > in this particular case, make appear the completed equation at the end=20 > of the slide made with \StartSteps[Navier||Stokes equation]? >=20 > Best regards: OK >=20 > %%%% file steps-david-3.tex > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > % usage example > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >=20 > \usemodule [pre-original] > \usemodule [rsteps] >=20 > \starttext > \StartSteps[Slide Title] % the title is passed to > % the \Subject macro >=20 > \startitemize > \item Item 1 > \OnlyStep[2] {\item (oops!)} > \UntilStep[4] {\item Item 2*} > \FromStep[4] {\item Item 2} > \HighlightStep[3]{\item > Here is another version of Navier-Stokes equation} > \stopitemize >=20 > \StopSteps >=20 >=20 > \StartSteps[Navier||Stokes equation] >=20 > \placeformula[eq:incompressibility] > \startformula > \vec\nabla\cdot\vec u =3D 0 > \stopformula >=20 > \placeformula[eq:NS] > \startformula > \frac{D\vec u}{Dt} =3D > \FromStep[2][reserve]{-{\red \frac1\rho \vec\nabla p}} > \FromStep[3][reserve]{+\;{\green \vec g}} > \FromStep[4][reserve]{+\;{\blue \frac1\rho \vec\nabla\cdot S}} > \stopformula >=20 > Momentum transport: \NextStep > \item {\red Pressure gradient} \par\NextStep > \item {\green Gravity} \par\NextStep > \item {\blue Stress (viscous, turbulent, Maxwell)} >=20 >=20 > \StopSteps >=20 > \StartSteps[Navier Stokes equation] >=20 >=20 > \placeformula[eq:div-nul] > \startformula > \vec\nabla\cdot\vec u =3D 0 > \stopformula >=20 >=20 > \placeformula[eq:NStokes] > \startformula > { \partial u \over \partial t} - \Delta u > \FromStep[1][reserve]{{\red \; +\; (u\cdot \nabla)u}} > \FromStep[2][reserve]{{\green \; +\; \nabla p}} > \FromStep[3][reserve]{{\blue \; =3D\; f(t,x)}} > \stopformula >=20 > Comments: > \NextStep \item Nonlinear equation (same is true for equation=20 > (\in[eq:NS]) \par\NextStep > \item One should add initial conditions \par\NextStep > \item and boundary conditions >=20 > \StopSteps > \stoptext > %%%%%% end file steps-david-3.tex > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >=20 --=20 V=EDt Z=FDka --- http://typokvitek.com Automatic document typesetting Automaticka sazba dokumentu -- --