[NTG-context] Re: MathML element for accents?
I wrote: (PS (Patrick) - I tried to get a minimal file working on live.contextgarden but couldn't get any maths formatting to come out. Perhaps MathML support is not enabled there?) It should work out of the box. Could you send me a small test file? I just double checked that the files from the web form get written correctly to the disc for texexec. Patrick Sorry - I forgot \usemodule[mathml]. I have it always included on my home system and had forgotten that it was needed. Apologies for the noise. Duncan ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: MathML element for accents?
Hans wrote: Normal: \startXMLdataa¯\stopXMLdata \par Accent: \startXMLdatax¯\stopXMLdata \par ... now, the problem is that this funny char between has to become a math accent, so what is the code? (name) someplace we need to handle that kind of things I think the entity is ¯ if that helps? Thanks very much for the answer! Duncan ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
At 16:10 -0500 8/11/04, David Munger wrote: Argh... It's because of the line splits in email. I just put the file on my website: http://cfd.homelinux.org/tex/ 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 this in future distributions. However, in the spirit of ConTeXters who are always asking for a step(!) towards perfectness, I let you know the following drawbacks of the macros: 1) Somehow the \FromStep[n][reserve] changes the internal mechanism of glue or spaces in displayed formulas. So one needs (as you do in your example) to add \; around operators such as +, -, =. Can one avoid this? 2) When one refers (see example below) with the command (\in[eq:NS]) to an equation which has been introduced with \placeformula[eq:NS] the interaction makes appear the first instance of that formula, which may be incomplete. Could one have a control over this, that is for instance, in this particular case, make appear the completed equation at the end of the slide made with \StartSteps[Navier||Stokes equation]? Best regards: OK file steps-david-3.tex % % usage example % \usemodule [pre-original] \usemodule [rsteps] \starttext \StartSteps[Slide Title] % the title is passed to % the \Subject macro \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 \StopSteps \StartSteps[Navier||Stokes equation] \placeformula[eq:incompressibility] \startformula \vec\nabla\cdot\vec u = 0 \stopformula \placeformula[eq:NS] \startformula \frac{D\vec u}{Dt} = \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 Momentum transport: \NextStep \item {\red Pressure gradient}\par\NextStep \item {\green Gravity} \par\NextStep \item {\blue Stress (viscous, turbulent, Maxwell)} \StopSteps \StartSteps[Navier Stokes equation] \placeformula[eq:div-nul] \startformula \vec\nabla\cdot\vec u = 0 \stopformula \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 \; =\; f(t,x)}} \stopformula Comments: \NextStep \item Nonlinear equation (same is true for equation (\in[eq:NS]) \par\NextStep \item One should add initial conditions \par\NextStep \item and boundary conditions \StopSteps \stoptext %% end file steps-david-3.tex ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
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 this in future > distributions. > > However, in the spirit of ConTeXters who are always asking for a > step(!) towards perfectness, I let you know the following drawbacks > of the macros: > > 1) Somehow the \FromStep[n][reserve] changes the internal mechanism > of glue or spaces in displayed formulas. So one needs (as you do in > your example) to add \; around operators such as +, -, =. Can one > avoid this? I'm sorry, I'm no TeX/ConTeXt guru and I really have no idea of how to achieve this. I think now we need Hans' help. I have indeed noticed that enclosing an operator between braces breaks the spacing system. Try, for instance: \startformula \vec\nabla\cdot\vec u = 0 \stopformula \startformula \vec\nabla\cdot\vec u {=} 0 \stopformula Unfortunately, using \phatom{=} results in the same broken spacing as second formula. > 2) When one refers (see example below) with the command (\in[eq:NS]) > to an equation which has been introduced with \placeformula[eq:NS] > the interaction makes appear the first instance of that formula, > which may be incomplete. Could one have a control over this, that is > for instance, in this particular case, make appear the completed > equation at the end of the slide made with \StartSteps[Navier||Stokes > equation]? Good point! Here's the fix (file updated on my website): 37c37 < \dodoubleempty\doplaceformula[##1]} --- > \dodoubleempty\doplaceformula} 50c50,54 < \dodoubleempty\doplaceformula[1]} --- > [EMAIL PROTECTED]@number% > [EMAIL PROTECTED] > \else > [EMAIL PROTECTED] > [EMAIL PROTECTED] Now we got rid of the duplicate label warnings. I also added your contribution to the usage example. Thank you. Regards, David ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
David Munger wrote: I'm sorry, I'm no TeX/ConTeXt guru and I really have no idea of how to achieve this. I think now we need Hans' help. I haven't followed the discussion so closely, what is the problem? Good point! Here's the fix (file updated on my website): 37c37 < \dodoubleempty\doplaceformula[##1]} --- \dodoubleempty\doplaceformula} 50c50,54 < \dodoubleempty\doplaceformula[1]} --- [EMAIL PROTECTED]@number% [EMAIL PROTECTED] \else [EMAIL PROTECTED] [EMAIL PROTECTED] eh ... are you redefining low level macros? Can you give a minimal example of what you're doing? 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 [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
Hans Hagen wrote : > David Munger wrote: > > > I'm sorry, I'm no TeX/ConTeXt guru and I really have no idea of how to > > achieve this. I think now we need Hans' help. > > I haven't followed the discussion so closely, what is the problem? We're trying to implement steps-without-JavaScript for slides. You can get the module here: http://cfd.homelinux.org/tex/ The current problem, in its simplest form, is that using \mframed breaks the spacing. Minimal example: \starttext We aim to get this spacing: \startformula a + b \stopformula but when using: \startformula a \mframed{+ b} \stopformula we 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 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
1) Somehow the \FromStep[n][reserve] changes the internal mechanism of glue or spaces in displayed formulas. So one needs (as you do in your example) to add \; around operators such as +, -, =. Can one avoid this? Hi Otared, I can give only explanation but in the moment i do not know the automatic solution. Mathematical material are processed in a pieces called atoms. There are 13 different atoms types (ord, op, bin, rel, open, close, punc, ...). Mathematical characters (+, =, ...) have implicit types (bin, rel; in the case) or they can be set explicitly (\mathrel{<}, \mathop{\hbox{sin}}). Spacing in mathematical mode is done according to types of neighbour 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 innerC) BIN C) ord op close inner PUNCT B) ord op rel open close punct inner ord close innerB) OPB) 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=2 expands like \mathord{1}\mathbin{+}\mathord{1}\mathrel{=}\mathord{2} and typeset like \mathord{1}\C\mathbin{+}\C\mathord{1}\D\mathrel{=}\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 that is why the atom neighbourhood is lost. Example. Our 1+1=2 equation can be split to $1$$+1=2$ and mathbin + changes to ord and we lose space before (beginning of math) and after (will be ord-ord pair). In this trivial example it can be solved by $1$$\mathord{}+1=2$ According to me, mathematical text has to be tuned manually in the normal case; this spacial one is not a exception ;-( Vit Zyka 2. bin 3. 2) When one refers (see example below) with the command (\in[eq:NS]) to an equation which has been introduced with \placeformula[eq:NS] the interaction makes appear the first instance of that formula, which may be incomplete. Could one have a control over this, that is for instance, in this particular case, make appear the completed equation at the end of the slide made with \StartSteps[Navier||Stokes equation]? Best regards: OK file steps-david-3.tex % % usage example % \usemodule [pre-original] \usemodule [rsteps] \starttext \StartSteps[Slide Title] % the title is passed to % the \Subject macro \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 \StopSteps \StartSteps[Navier||Stokes equation] \placeformula[eq:incompressibility] \startformula \vec\nabla\cdot\vec u = 0 \stopformula \placeformula[eq:NS] \startformula \frac{D\vec u}{Dt} = \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 Momentum transport: \NextStep \item {\red Pressure gradient}\par\NextStep \item {\green Gravity} \par\NextStep \item {\blue Stress (viscous, turbulent, Maxwell)} \StopSteps \StartSteps[Navier Stokes equation] \placeformula[eq:div-nul] \startformula \vec\nabla\cdot\vec u = 0 \stopformula \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 \; =\; f(t,x)}} \stopformula Comments: \NextStep \item Nonlinear equation (same is true for equation (\in[eq:NS]) \par\NextStep \item One should add initial conditions \par\NextStep \item and boundary conditions \StopSteps \stoptext %% end file steps-david-3.tex ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context -- Vít Zýka --- http://typokvitek.com Automatic document typesetting Automaticka sazba dokumentu -- -- ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
At 12:08 -0500 10/11/04, David Munger wrote: I'm sorry, I'm no TeX/ConTeXt guru and I really have no idea of how to achieve this. I think now we need Hans' help. I have indeed noticed that enclosing an operator between braces breaks the spacing system. Try, for instance: Yes you are right! This is a problem with ConTeXt. I am going to post a message for the gurus as you say. Good point! Here's the fix (file updated on my website): That's great! Everything works as expected. But let's see, are you sure you are not a guru? I doubt now... Best regards: OK ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] OT: i18n peace
Hi there! For a christmas decoration I need the word "peace" in different languages. I got enough latin-written, but I need some more "exotic". If you can speak/write a non-latin written language, it would be nice if you could send me (off list!) a PDF with the word "peace" in this language. (I need it scalable!) I already got persian, and I know how to write it russian. Thank you in advance! Grüßlis vom Hraban! --- http://www.fiee.net/texnique/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \presentationstep
At 19:25 +0100 10/11/04, Vit Zyka wrote: Hi Otared, I can give only explanation but in the moment i do not know the automatic solution. Hi Vit, Thank you for your insight. It is right that the same problem appears in Plain TeX, that is a binary operator within a pair of braces seems to loose its "binary" property. I tried the sample file I sent in the thread "bug with glue and spaces in formulas?", with other macros packages and the result is the same. Best regards: OK ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] bug with glue and spaces in formulas?
Hi Hans and all Contexters, While discussing with David Munger about the Steps macros he wrote for presentations in ConTeXt (see the thread \presentationstep), we noticed that there seems to be a problem with "white spaces" or glue around some "binary operators" such as +, - and =. Please see the result of the following sample. Best regards: OK begin file test-glue.tex \starttext This is to verify how the space, or glue, is controlled in \ConTeXt. First some binary operators ``$\in$'', ``$+$'', ``$-$'' and ``$=$'' without grouping braces: \placeformula[eq:plain] \startformula x\in \Omega \subset {\Bbb R}^N,\quad\quad -\Delta u + u -u^3 = f. \stopformula Next the same with braces \placeformula[eq:braces1] \startformula x{\in} \Omega {\subset} {\Bbb R}^N,\quad\quad {-}\Delta u {+} u {-u^3} {=} f. \stopformula Note how the spaces around the signs $\in$, $+$, $-$ and $=$ have shrinked. The problem seems to appear when these are actually binary operators (that is $+1$ and ${+}1$ give the same result, while $1+2=3$ is different from $1{+}2{=}3$). I haven't tried all such binary operators, but it seems that this happens with all of them: compare $A \cap B$ and $A{\cap}B$, or $A\cup B$ and $A{\cup}B$. \stoptext % end file test-glue.tex ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Tex or Context Editors.
Hi Idriss, I had a look at WinEdt and it is very tex oriented, but i have seen any reference to Context. Do you see some advantages for Context use (I have seen support for tex tables, project (Don't know which kind ..)) ? Thanks. Dirar. _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Tex or Context Editors.
Thanks all, Unfortunately, for the moment i wouldn't use emacs but i have tried scite. The first problem i can see is that it does not handle multiple files opening, color setup isn't straight forward (Have to deal with hexa values) .. Apart from this, looks fine. It seems like WinEdt is a lot more oriented towards Tex and friends writing (Has even grammatical correction). What about texwork then ? Thanks for your suggestions. Dirar. _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.com/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Tex or Context Editors.
On Wed, 10 Nov 2004 22:24:26 +, Dirar BOUGATEF <[EMAIL PROTECTED]> wrote: Hi Idriss, I had a look at WinEdt and it is very tex oriented, but i have seen any reference to Context. Do you see some advantages for Context use (I have seen support for tex tables, project (Don't know which kind ..)) ? For ConTeXt I just define the pdfTeX button to call texexec. There is no built-in ConTeXt capabilities, but it is almost trivial to add buttons or even create your own (I've made a few myself), define and insert environments, etc. Just look up all the options that define the LaTeX options and redefine them in ConTeXt (or just add the ConTeXt options). There is virtually no-hard-wired LaTeX support that can't be changed or augmented. It may not be open-source:-(, but for TeX/ConTeXt you won't find better (yet). Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] texmfstart and scite installation problems
All, F:\miktex\scripts\context\ruby>ver Windows 95. [Version 4.00.] F:\miktex\scripts\context\ruby>ruby --version ruby 1.8.2 (2004-11-06) [i386-mswin32] F:\miktex\scripts\context\ruby>texmfstart --version Bad command or file name F:\miktex\scripts\context\ruby>texmfstart.rb --version Bad command or file name F:\miktex\scripts\context\ruby>ruby texmfstart.rb --version texmfstart.rb:32:in `initialize': GetProcAddress: GetLongPathName or GetLongPath NameA (RuntimeError) from texmfstart.rb:32:in `new' from texmfstart.rb:32 Any suggestions? ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context