Re: [NTG-context] [Math in ConTeXt]
Thanks Otared for the offer to look into math issues. Here are a few I noticed when TeXing an MK2 set of notes with MK4. Matthias \starttext \startformula \text{\bf R}^n = R^n ={\bf R}^n= \mathbb{R}^n \stopformula %spacing of exponent is in Mk4 wider than in Mk2 \startformula \left| \int_{a_{i-1}}^b e^x\, dx \right| \stopformula % lower bound runs into \left| % space between integral sign and integrand too wide \startformula r'=r'' \stopformula This $\int_{a}^b e^x\, dx $ is not good. % Inline math integrals need limits at the side. Spacing with lines below and above is awkward otherwise. \startformula area(f) = \iint_{\Omega} |{f_u\times f_v}|\, du dv \stopformula % limit not centered over double integral \placeformula[-] \stoptext On Feb 16, 2014, at 5:30 AM, Otared Kavian ota...@gmail.com wrote: Hi all, After a series of exchanges on the list, on the topic of how mathematics typesetting is and should be in ConTeXt, I am writing you this message to ask all those who use ConTeXt to typeset mathematics and who encounter various types of difficulties, or shortcomings, to send me their remarks, either on list or off list. I will check the problems with Aditya Mahajan and Mikael Sundqvist, and then submit feature requests or bug reports to Hans and Aditya who will try to fix the issues (I have asked these people about this, and they all agree…). In order to help me manage efficiently the task, please add the following tag [Math on ConTeXt] to the Subject field of your message. The issues which may be addressed are of the following categories: 1. Differences in the output of ConTeXt mkiv vs mkii (due to differences in engine) 2. Differences in the output of ConTeXt mkiv vs LuaLaTeX + Opentype math fonts (due to differences in macro package) 3. Differences in the output of ConTeXt mkiv vs PDFLaTeX + AMSMath (due to differences in expectation) 4. Bug reports (regarding commands of plain TeX missing in ConTeXt, the position of math accents, etc…) Indeed some of the issues may have their origin in the fonts (therefore not easy to fix thouroughly), but others may be fixed once the expectations are clearly expressed. As usual, please give minimal examples imbedded in \starttext ……… \stoptext so that we can test the issue you are reporting. Thanks for your attention and cooperation, Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] [Math in ConTeXt]
Hi all, After a series of exchanges on the list, on the topic of how mathematics typesetting is and should be in ConTeXt, I am writing you this message to ask all those who use ConTeXt to typeset mathematics and who encounter various types of difficulties, or shortcomings, to send me their remarks, either on list or off list. I will check the problems with Aditya Mahajan and Mikael Sundqvist, and then submit feature requests or bug reports to Hans and Aditya who will try to fix the issues (I have asked these people about this, and they all agree…). In order to help me manage efficiently the task, please add the following tag [Math on ConTeXt] to the Subject field of your message. The issues which may be addressed are of the following categories: 1. Differences in the output of ConTeXt mkiv vs mkii (due to differences in engine) 2. Differences in the output of ConTeXt mkiv vs LuaLaTeX + Opentype math fonts (due to differences in macro package) 3. Differences in the output of ConTeXt mkiv vs PDFLaTeX + AMSMath (due to differences in expectation) 4. Bug reports (regarding commands of plain TeX missing in ConTeXt, the position of math accents, etc…) Indeed some of the issues may have their origin in the fonts (therefore not easy to fix thouroughly), but others may be fixed once the expectations are clearly expressed. As usual, please give minimal examples imbedded in \starttext ……… \stoptext so that we can test the issue you are reporting. Thanks for your attention and cooperation, Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math Sets (ConTeXt port of braket.sty)
I uploaded the module to garden. I have only implemented scaling of single vertical bar (|). braket.sty also allows scaling of double vertical bar (||) and only treating the first | to be special. These are not implemented right now. In case someone needs them, let me know. The module is available from http://modules.contextgarden.net/mathsets Aditya I also need that. Thank you. Zulkifli ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Math Sets (ConTeXt port of braket.sty)
On Sun, 25 Feb 2007, Zulkifli Hidayat wrote: Hi, I find myself writing a lot of probability expressions where I want the delimiters to scale automatically, and | (conditional sign) to scale automatically, and the spacing around | to be correct. In LaTeX, I used to use braket package to do this. Since moving to ConTeXt, I was doing this by hand, but wring a lot of I think I will need it near in the future. Thanks for nice the nice works. I uploaded the module to garden. I have only implemented scaling of single vertical bar (|). braket.sty also allows scaling of double vertical bar (||) and only treating the first | to be special. These are not implemented right now. In case someone needs them, let me know. The module is available from http://modules.contextgarden.net/mathsets Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Math Sets (ConTeXt port of braket.sty)
Hi, I find myself writing a lot of probability expressions where I want the delimiters to scale automatically, and | (conditional sign) to scale automatically, and the spacing around | to be correct. In LaTeX, I used to use braket package to do this. Since moving to ConTeXt, I was doing this by hand, but wring a lot of \EXP\left\{ ... \,\middle\, ...\right\} and \Pr( ... \mid ...) soon became a pain to read and write. So (thanks to Taco's first hand knowledge of why TeX is Turing complete), I have written the following macros: \unprotect \definesystemvariable {ms} % Math Set \def\mathsetmiddle{\,\middle\mathsetparameter\c!middle\,} \let\currentmathset\empty \def\mathsetparameter#1% {\executeifdefined{\??ms\currentmathset#1}{\executeifdefined{\??ms#1}\empty}} \def\definemathset {\dodoubleargument\dodefinemathset} \def\dodefinemathset[#1][#2]% {\getparameters[\??ms#1] [\c!text=,\c!left={\{},\c!right={\}},\c!middle=\vert,#2] \setvalue{#1}{\dododefinemathset[#1]}} \def\dododefinemathset[#1]#2#% {\begingroup \def\currentmathset{#1} \mathcode`\|32768 \let|\mathsetmiddle \def\mathsetarguments{#2} \dodododefinemathset} \def\dodododefinemathset#1% {\doifsomething{\mathsetparameter\c!text} {\mathop{\mathsetparameter\c!text\mathsetarguments}} \left\mathsetparameter\c!left#1\right\mathsetparameter\c!right \endgroup} \protect which allows me to do \definemathset[EXP][text={\mfunction{E}}] \definemathset[PR][text={\mfunction{Pr}},left=(,right=)] \starttext Correct spacing around the vertical bar. \startformula \EXP{f(X) | Y} = \sum_{x} f(x) \PR{x|Y} \stopformula Correct scaling of delimiters (as correct as left and right give you) \startformula \EXP{\sum_z f(X,z) | Y} = \sum_{x,z} f(x,z) \PR{x,z|Y} \stopformula Correct handling of sub|/|super scripts \startformula \EXP_X{f(X) | Y} = \sum_{x} f(x) \PR{x|Y} \stopformula Is there anyone else interested in this kind of stuff? I have not ported all the features of braket.sty, but only those that I needed. Other should not be too difficult to port. Hans and Taco: Does it make sense to add these to the core? If so, I can polish the macros a bit (add a \setupmathsets command). Aditya I think I will need it near in the future. Thanks for nice the nice works. Zulkifli ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] math in ConTeXt
is ConTeXt prepared for math? I mean...can I do... $\sum_{i=1}^{n}{x_{i}}$ as I used to in LaTeX ? I don't make the \Sigma to be under and over characterised by i=1 and n. Jose ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] math in ConTeXt
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 \startformula \stopfromula (LaTeX's \[ ... \] doesn't work.) I don't make the \Sigma to be under and over characterised by i=1 and n. In inline math you need \limits\sum if you want to have the i=1 below and the n above the sum sign. If I'm not mistaken, LaTeX does the same. Regards, Tobias ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] math in ConTeXt
is ConTeXt prepared for math? I mean...can I do... $\sum_{i=1}^{n}{x_{i}}$ as I used to in LaTeX ? I don't make the \Sigma to be under and over characterised by i=1 and n. Jose Hi Jose, Indeed ConTeXt contains all the plain TeX commands and you can use them (in this case \sum). So these formulas give what you want $\sum_{i=1}^n x_i$ (for the summation) $\prod_{i=1}^{i=n} (1+x_i)$ (for the product), and so on. For the displayed version you can use either $$\sum_{i=1}^n x_i$$ or \startformula \sum_{i=1}^n x_i \stopformula Best regards: OK ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] math in context
I woul like to know where I may find a complete list of symbols like $\Bbb{R}$ to use in context while I am typing maths. The main hurdle that I have today in change my personal typset work from latex to context is a lack of a reference manual in this area. Do you know where I may find one? Thanks in advance Gonçalo Morais ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Math in context
Giuseppe, Hans tells me you have developed the math mode into something special. Is their documentation or instructions anywhere on how to use it? I'd like to experiment. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context