[NTG-context] XML/HTML output of Math
Hi all, I used to compile a beamer file with LuaLaTeX to generate a PDF for presentation then convert the beamer file to XHTML with LaTeXML for Web page. Recently I begin to use ConTeXt so I try to get a PDF for presentation and also XML/HTML output from a single ConTeXt file. I have a few questions about XML/HTML output of Math. 1. In case inline math mode with \displaystyle, we get wrong output of "\int_a^b"; lower limit and upper limit are interchanged and further "b" is a bit larger and an integral symbol is rather small. (It looks "\displaystyle" is not effective, e.g see "\frac".) In case display math mode, we get very weird output of "\int_a^b". It is difficult to explain how weird it is but something like an output of "b_{\int}^a". Please check an attatched sample. We get the similar kind of weird output of "\sum_{n=0}^{\infty}". Due to these, it is impossible to use XML/HTML output of ConTeXt in real use. 2. \math{\Vmatrix{\vI, \vj, \vk; a_{1}, a_{2}, a_{3}; b_{1}, b_{2}, b_{3}}} \vI, \vj, \vk are disappeared in xml/html output. What happend? BTW, if we put "a" (or any alphabet?) in fron of \vI, then we get every elements (but of course we get unnecessary "a" also). - bSample \setupbackend[export=yes] \definemathmatrix[vmatrix][matrix:bars] [simplecommand=Vmatrix] \define[1]\vsym{\text{\math{\bi #1}}} \define\vI{\vsym{i}} % \define\vi{\vsym{i}} \define\vj{\vsym{j}} \define\vk{\vsym{k}} \starttext A simple math. \m{y=\sin x}, \m{\displaystyle y=\frac{\log x}{x}}, \m{\mathbf{A+B=C}}, \m{\mathbb{R}}, \m{\mathfrak{A}}, \m{\mathcal{S}}, A bit complex math. \m{\displaystyle\int_{a}^{b}x\sin x\,dx=-[x\cos x]_{a}^{b}+\int_{a}^{b}\cos x\,dx} \startformula \int_{a}^{b}x\sin x\,dx=-[x\cos x]_{a}^{b}+\int_{a}^{b}\cos x\,dx \stopformula \m{\displaystyle\sum_{n=0}^{\infty}\frac{x^n}{n!}} \startformula \sum_{n=0}^{\infty}\frac{x^n}{n!} \stopformula \math{\Vmatrix{\vI, \vj, \vk; a_{1}, a_{2}, a_{3}; b_{1}, b_{2}, b_{3}}} \math{\Vmatrix{a\vI, \vj, \vk; a_{1}, a_{2}, a_{3}; b_{1}, b_{2}, b_{3}}} \stoptext - eSample Thanks in advance. Best regards, Atsuhito Kohda ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Question to a table
Ursula Hermann schrieb am 07.08.2019 um 11:22: Hello list! I have: \starttext \setupcombination [location=top, distance=\spaceamount] \bTABLE[align=flushleft,columndistance=0.1em] \bTR \bTD[width=2cm] Small \eTD \bTD[width=0.05\textwidth] \eTD \eTR \eTABLE \stoptext I have a question tot he sencond bTD [with 0.05\textwidth] \eTD, because: I would like to know: how can I put two different colors in this second bTD, should I do this like an overlay? There is not any text there. So that i have as an example to the list, pink and mystirose together, in one peace of the table without any text. Can you be more concrete what you try to achieve. Do want different colors for the borders or just two rules with different colors, the first can be achieved with a background graphics while the second can be done with the \blackrule command. Wolfgang ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug in LMTX: Color is lost after linebreak
On 8/7/2019 12:36 PM, Henri Menke wrote: Dear devs, there seems to be a bug in LMTX. In the MWE below, the letter right after the linebreak is black instead of gray. I'm using the latest beta. fixed in next lmtx update Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Bug in LMTX: Color is lost after linebreak
Dear devs, there seems to be a bug in LMTX. In the MWE below, the letter right after the linebreak is black instead of gray. I'm using the latest beta. mtx-context | main context file: /opt/context-lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2019.07.24 11:31 mtx-context | main context file: /opt/context-lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2019.08.02 19:50 Cheers, Henri --- \starttext \startstandardmakeup[align=middle] \tfd\setupinterlinespace \color[middlegray]{% Why is the letter right after the linebreak not gray?} \stopstandardmakeup \stoptext ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Question to a table
Hello list! I have: \starttext \setupcombination [location=top, distance=\spaceamount] \bTABLE[align=flushleft,columndistance=0.1em] \bTR \bTD[width=2cm] Small \eTD \bTD[width=0.05\textwidth] \eTD \eTR \eTABLE \stoptext I have a question tot he sencond bTD [with 0.05\textwidth] \eTD, because: I would like to know: how can I put two different colors in this second bTD, should I do this like an overlay? There is not any text there. So that i have as an example to the list, pink and mystirose together, in one peace of the table without any text. Many thanks to the list Uschi ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___