Re: [NTG-context] Problem of installation of ConTeXt LMTX
Dear Hans and all, I tried to check Linux 32 bits and accessed http://www.pragma-ade.nl/install.htm and click "Linux 32 bits" yesterday and today but it failed as follows: --- Not Found The requested URL /install-lmtx/context-linux-32.zip was not found on this server. -- Is there any problem? Thanks for your maintenance. Best regards, Atsuhito Kohda 2019年9月2日(月) 16:38 Hans Hagen : > ... > i see, so i need to fix that (no -32 for linux) ... i'll adapt it so > next time you need to check > > > > - >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 ___
Re: [NTG-context] mathring circle above a letter
Dear Otared, Sorry for my mistake. Of course you will need more fine tuning but \unexpanded\def\dotlessring#1{\tfb\normalring{\tfx\mathdotless#1}} might help you a bit. But if not please ignore this. Best regards, Atsuhito Kohda 2019年9月14日(土) 20:51 Otared Kavian : > > Thanks for your attention, but in fact \mathring and what you suggest, > that is \dotlessring, give the same result. What I am looking for is to > replace the small circle used by \mathring by a slightly bigger circle > > > ___ > 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 > > ___ > ___ 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] mathring circle above a letter
Dear Otared and all, This is very naive idea but anyway please try this. Just before the \starttext insert the following line: \unexpanded\def\dotlessring#1{\tfa\normalring{\mathdotless#1}} Best regards, Atsuhito Kohda 2019年9月14日(土) 18:37 Otared Kavian : > > Can someone tell me please whether it is possible to modify the \mathring > command so that th ecircle is a little bit larger, or the one I define > below as > > ___ > 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 > > ___ > ___ 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] Math \not
Dear Aditya and all, > Is \nequiv defined as a binary operator when used in math Sorry not binary but binomial. 2019年9月12日(木) 22:20 Aditya Mahajan : > > char-def.lua Ah I should grep not "\nequiv" but "nequiv". Is there any document or wiki which explains math characters definition of ConTeXt? Thanks for your help. 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 > > ___ > ___ 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] Math \not
Dear all, \nequiv seems to work both in a math mode and in an ordinary text mode so I'd like to clarify the situation. Is \nequiv defined as a binary operator when used in math mode (that is \math{A\nequiv B})? When I grepped \nequiv in /usr/share/texmf/tex/context, it hitted nothing at all. Where \nequiv is defined? Thanks in advance. Best regards, Atsuhito Kohda 2019年9月8日(日) 2:00 Otared Kavian : > Hi you should use \nequiv as in > > > ___ > 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 > > ___ > ___ 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] Problem of installation of ConTeXt LMTX
Dear Hans and all, I guess that the reason of failure is mtx-install | invalid database ' http://lmtx.pragma-ade.com/install-lmtx//tex/texmf-linux.tma' and it seems texmf-linux-32.tma is correct name. So I modified bin/mtx-install.lua, mtxrun.lua as follows: --- mtx-install.lua.orig2019-09-02 10:19:28.387977529 +0900 +++ mtx-install.lua 2019-09-02 08:47:18.572271109 +0900 @@ -79,9 +79,9 @@ ["windows-64"] = "win64", ["win64"] = "win64", -- -["linux"] = "linux", -["linux-32"] = "linux", -["linux32"]= "linux", +["linux"] = "linux-32", +["linux-32"] = "linux-32", +["linux32"]= "linux-32", -- ["linux-64"] = "linux-64", ["linux64"]= "linux-64", --- mtxrun.lua.orig 2019-09-02 10:11:25.463821836 +0900 +++ mtxrun.lua 2019-09-02 08:46:40.695396705 +0900 @@ -4047,7 +4047,7 @@ end else function resolvers.platform(t,k) - local platform="linux" + local platform="linux-32" os.setenv("MTX_PLATFORM",platform) os.platform=platform return platform (but it seems they are overwritten during installation so I copy them in /data/context then modify them as above and copy them in bin/ by install.sh at an appropriate time.) It looks installation goes fine with these modification. I don't understand the installation process so I know these are not correct fix but I hope this info helps to fix the problem correctly. Thanks for your effort. Best regards. Atsuhito Kohda >> >> - >>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 ___
Re: [NTG-context] Problem of installation of ConTeXt LMTX
Dear Hans and all, I patched install.sh but the installation failed in the same way. The patch is the follwing. --- install.sh~ 2019-08-25 05:56:07.0 +0900 +++ install.sh 2019-08-31 06:50:40.491584829 +0900 @@ -21,7 +21,7 @@ i*86) case "$libc" in glibc) -PLATFORM="linux" ;; +PLATFORM="linux-32" ;; musl) PLATFORM="linuxmusl" ;; esac ;; Thanks for your time. Best regards, Atsuhito Kohda 2019年8月30日(金) 23:27 Hans Hagen : > > What is wrong here? > can you patch install.sh: > > PLATFORM="linux" ;; > > to > > PLATFORM="linux-32" ;; > > and see if that works? (i have no 32 bit linux to test) > > 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] Problem of installation of ConTeXt LMTX
Hi all, I try to install ConTeXt LMTX on (32 bit) Debian stable. Downloading context-linux-32.zip, I unzip it in /data/context (following the instruction of installation.pdf). Then I do ./install.sh but it seems the installation failed. The messages are as follows: mtx-install | invalid database ' http://lmtx.pragma-ade.com/install-lmtx//tex/texmf-linux.tma' mtx-install | current : %S ... mtx-install | running: /data/context/tex/texmf-linux/bin/mtxrun --generate sh: 1: /data/context/tex/texmf-linux/bin/mtxrun: not found mtx-install | running: /data/context/tex/texmf-linux/bin/context --make en sh: 1: /data/context/tex/texmf-linux/bin/context: not found mtx-install | mtx-install | tex/texmf:0 files with 0 bytes installed mtx-install | tex/texmf-context:0 files with 0 bytes installed mtx-install | mtx-install | update, done cp: '/data/context/tex/texmf-linux/bin/mtxrun' を stat できません: そのようなファイルやディレクトリはありません (this japanese sentence means, there is no such file or directory.) What is wrong here? Thanks in advance. 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] XML/HTML output of Math
Hi all, I will attach a screenshot of firefox on Ubuntu 10.04 but I'm not familiar with Gmail so I'm uncertain if it goes well or not. Thanks for your help. 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 > > ___ > ___ 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] XML/HTML output of Math
Dear Taco, thanks for your reply. > I opened the xhtml with firefox and the only problem I see > is the ignored \displaystyle (which is why the integral looks small). > Inline looks fine otherwise, no interchanging of limits. Hmm, I use firefox 68.0.1 of Ubuntu 19.04 and firefox 60.8.0 of Debian/unstable. I see the interchanging of limits with both firefoxes. BTW, it seems Chromium doesn't support MathML. If any Linux users could test the xhtml with firefox (or any browsers) I believe it would help us much. > Well, as fine as it can be in firefox, which is pretty bad. I'm not sure if I understand you correctly but I think MathJax might be much better than MathML. > ConTeXt outputs b_a^\int in display mode; the order of the objects > inside the generated is wrong, which is clearly a bug. > And it seems to do this for all large operators. I see. > I think this somehow triggered by the nested mode switch (\text{\math{}}) in the \vsym. > If I change that definition to the more simple: > \define[1]\vsym{{\textstyle\bi #1}} > it works ok. Whether that helps you ... It helps me to some extent but with the original definition, we can use \vI in both math mode (\math{\vI}) and text mode like "vector \vI". So if ConTeXt could convert the nested mode switch correctly it would be very nice. Thanks for your info. 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 > > ___ > ___ 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] 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 ___
[NTG-context] about SimpleSlides
Hi all, SimpleSlides is very useful for novice users so I do use it. But I encountered few problems which, I'm afraid, might be known. When we use a style BigNumber (or Embossed), an error occured: - tex error > tex error on line 87 in file /usr/share/texmf/tex/context/third/simpleslides/s-simpleslides-BigNumber.tex: ! Undefined control sequence l.87 \beginOLDTEX - I modified s-simpleslides-BigNumber.tex as follows: comment out from line #87 to #99 % \beginOLDTEX ... % \endLUATEX except line #98 \definefontsynonym [BigNumberFont] [name:texgyreherosbold] then it seems to work fine. But I suspect unconditional definition is not good so I'd like to know the correct fix. Another problem is with style Split. Browsing simpleslides.pdf, I think date, author, title and page number should be displayed on each slide but, in fact, we can't see them except page number. It seems, e.g. the following in s-simpleslides-Split.tex fails to get the "date". draw \sometxt[simpleslides:sometxt:left]{\getvariable{simpleslides:title}{date}} I think it is very helpful to see date, title on a slide so I'd like to know the fix. 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 ___
[NTG-context] about SimpleSlide
Hi all, SimpleSlide is very useful for novice users so I do use it. I'm afraid these might be known but I encountered few problems. When we use a style BigNumber or Embossed, an error occured: - tex error > tex error on line 87 in file /usr/share/texmf/tex/context/third/simpleslides/s-simpleslides-BigNumber.tex: ! Undefined control sequence l.87 \beginOLDTEX - I modified s-simpleslides-BigNumber.tex as follows: comment out from line #87 to #99 % \beginOLDTEX ... % \endLUATEX except line #98 \definefontsynonym [BigNumberFont] [name:texgyreherosbold] then it seems to work fine. But I suspect unconditional definition is not good so I'd like to know the correct fix. Another problem is with style Split. Browsing simpleslides.pdf, date, author, title and page number would be displayed on each slide but we can't see them in fact except page number. It seems, e.g. the following in s-simpleslides-Split.tex fails to get the "date". draw \sometxt[simpleslides:sometxt:left]{\getvariable{simpleslides:title}{date}} I think it is very helpful to see date, title on a slide so I'd like to know the fix. 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] font switching commands
Hi Wolfgang, thanks for detailed explanation. I'm very sorry for taking your time. 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] Quotation marks
Hi Wolfgang, thanks for your reply. You are right. I shoud say "looks correct" or something like that. 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] Quotation marks
Hi all, thanks for all replies. > indeed. `` and '' are (in tex) pseudo ligatures and not really a > portable standard, certainly not now that we have utf8 as input (in a > similar fashion users who need accented characters will not use \"u and > \'a any more) In fact, I don't know how to input left, right double quotation marks and accented characters directly with keyboard. It is easier for me to input {``}, {''} and \"u etc than to input utf8 characters with keyboard. I don't say to make tex-style ligature available by default but only to make it available under an appropriate setup. Even this is not suitable for ConTeXt? 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] Quotation marks
Hi all, I think in the same way as Dmitry. It might be obsolete but, as far as I searched, under the setup \definefontfeature [texligatures] [tlig=yes] \feature[+][texligatures] {''} produces right quotation correctly but left quotation seems not correct (I don't know why). It is true quotes are language dependent but sometime we need language independent quotes. So it will be nice if we can use {``}, {''} and \quotation at the same time. 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-contextwebpage : http://www.pragma-ade.nl / http://context.aanhet.netarchive : https://bitbucket.org/phg/context-mirror/commits/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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font switching commands
Hi Wolfgang, thanks for your information. It is a bit difficult for me to understand the difference among \switchtobodyfont, \vii etc. and \tfa etc. with the explanation of cont-eni.pdf precisely and unfortunately \vii etc. are no more available. Thanks again. 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 > > ___ > ___ 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] font switching commands
Hi Henri, thanks for your clarification. 2019年7月19日(金) 8:57 Henri Menke: > This manual is for MKII (it is dated 2001). The new font size switches > are \tfa, \tfb, \tfc, and so on (or \bfa for bold etc.). OK, so now they are obsolete already. I've found \tfa etc. before the post because they were explained in the next page p.114 of cont-eni.pdf Then I'd like to know what is \vi ? I defined \vi personally in my tex file and when I compiled it with context, then I got a message "command '\vi' is already defined" so I began to search \vi command. This is the origin of my question. 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 > > ___ > ___ 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] font switching commands
Hi all "Manuals-ConTeXt wiki" provides us very important and useful information and we find cont-eni.pdf in "overview". In the manual, font switching commands \vi, \vii, \viii, \ix, \x, \xi, \xii are explained in p.113 but it seems they don't work except \vi and \xi. >From my simple test with ConTeXt, \xi produces a greek letter "ξ" as in traditional TeX and \vi seems to do nothing. Is the above explanation obsolete or is additional setup necessary? I'd like to know what is the real situation of these commands. 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] feature request
Hi Alan, > 1) when new to Context, coming from LaTeX and learning a new system; ... > One gets over the first case rather quickly and then there is no > going back: the philosophies are so different. Hmm, I'll make an effort to be a LaTeX user and also ConTeXt user. Best regards, Atsuhito Kohda 2019年7月5日(金) 0:56 Alan Braslau : > On Thu, 4 Jul 2019 11:16:22 -0400 (EDT) > Aditya Mahajan wrote: > > > > BTW, I constantly convert Beamer documents into ConTeXt's > > > simpleslide documents recently and it is very convenient > > > if I can use \pmatrix{a&b\cr c&d\cr} style because it is similar > > > to LaTeX documents. > > > > You can create a private module with the definitions that you need. > > If these are general enough, then you can also release it as a third > > party module for others to use. I don't see the value of adding (and > > maintaining!) a module that provides LaTeX compatibility as part of > > the core. > > LaTeX compatibility is desired (by some) > 1) when new to Context, coming from LaTeX and learning a new system; > 2) for ConTeXt users who are *required* to sometimes use LaTeX, >for example in submissions to journals etc. that accept LaTeX but >cannot handle Context sources. > > One gets over the first case rather quickly and then there is no > going back: the philosophies are so different. > > In the second case, I restrict myself to a strict use of the journal's > own template (for example with revtex), never asking for anything more > nor anything less. > > In a third situation of editors who give lip service to accepting TeX > submissions, I give them plain text for they are going to re-key in > everything in any case. I provide them with a pdf that they can use > to correct their markup. > > Alan > > ___ > 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 > > ___ > ___ 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] feature request
Hi Aditya, > You can create a private module with the definitions that you need. If > these are general enough, then you can also release it as a third party > module for others to use. I don't see the value of adding (and > maintaining!) a module that provides LaTeX compatibility as part of the > core. I began to learn ConTeXt since april and begin to write real ConTeXt documents (mostly presentations) since june. Please don't ask me too much. My main request is not to provide LaTeX compatibility but to provide not only one command of matrix but full set of commands for various kind of matrices if possible. Personally, it is true that I think LaTeX compatibility is useful but it is not main issue. Best regards, Atsuhito Kohda 2019年7月5日(金) 0:18 Aditya Mahajan : > On Thu, 4 Jul 2019, Atsuhito Kohda wrote: > > > Hi Henri, > > Thanks for your suggestions, they are very instructive. > > However, my request is not a smart way of displaying matrices > > but to know why \bmatrix and \vmatrix are not provided > > in core part of ConTeXt although \pmatrix is provided already > > in math-pln.mkiv > > Henri has already answered this. > > [ ... ] > > > One might say ConTeXt is flexible but I've an impression > > that ConTeXt is in a state of confusion/disorder. > > > > I think it is better if a standard command is provided > > by core ConTeXt or by a module etc. > > > > Or is it ConTeXt way that each user defines his/her own commands > > in setup area and uses them in text area? > > I'm afraid consistency and/or portability is lost in such scenario. > > Let me provide an alternative point of view. The commands that you are > suggesting are encode the _visual_ meaning: pmatrix is a matrix with > parenthesis, bmatrix is a matrix with brackets, vmatrix is a matrix with > vertical bars, and so on. One could also use _semantic_ commands: in my > documents, I define a command called MATRIX for typesetting matrices, and > DET for determinant of a matrix. So, I simply type > > \MATRIX{1, 2; 5, 6} and \DET{1, 2; 5, 6}, etc. > > Now, depending on the audience, I sometimes map \MATRIX to pmatrix and > sometimes to bmatrix. I can simply copy paste the code without worrying > about notation. > > If you take this view, then the predefined matrix:parentheses, > matrix:brackets, and matrix:bars are sufficient. > > > BTW, I constantly convert Beamer documents into ConTeXt's > > simpleslide documents recently and it is very convenient > > if I can use \pmatrix{a&b\cr c&d\cr} style because it is similar > > to LaTeX documents. > > You can create a private module with the definitions that you need. If > these are general enough, then you can also release it as a third party > module for others to use. I don't see the value of adding (and > maintaining!) a module that provides LaTeX compatibility as part of the > core. > > Aditya > > > ___ > 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 > > ___ > ___ 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] feature request
Hi Henri, Thanks for your kind explanation. Generally I understand your point and the ConTeXt philosophy. > bmatrix, vmatrix, etc. are not defined by default, but > as you saw from my last message it is trivial to define these, > especially because templates (matrix:parentheses, etc.) > for them already exist in the core. If it is trivial to define bmatrix etc., then I think it is not bad to provide them in ConTeXt itself but it seems it violates the ConTeXt philosophy. I feel it is too strict or too formalism, but this is only my, very novice user's, naive impression. Best regards, Atsuhito Kohda PS. I'm a Japanese and it takes a bit long time to write an idea in English. Sorry for delay. 2019年7月4日(木) 14:48 Henri Menke : > The existing definition of \pmatrix in math-pln.mkiv is the original > Plain TeX definition, because in the very early days ConTeXt used to be > compatible with Plain. This tradition has prevailed until today. You > will find other remnants of Plain TeX in ConTeXt, e.g. \eqalign, but it > is better not to use them. > > Just like Plain TeX, ConTeXt does not provide \bmatrix and \vmatrix. > One reason is that they didn't exist in Plain, but another important > reason is that Hans is not a mathematician. If I remember correctly > ConTeXt was originally developed for typesetting of primary school > textbooks and last I checked matrix algebra was not part of the > curriculum. > > Other developers (Alan, Aditya, and others) have contributed math > typesetting macros over time, but these follow the ConTeXt philosophy of > providing strong defaults but trying to avoid feature creep. Therefore > bmatrix, vmatrix, etc. are not defined by default, but as you saw from > my last message it is trivial to define these, especially because > templates (matrix:parentheses, etc.) for them already exist in the core. > > It would sometimes be nice if you could just copy and paste LaTeX code > into a ConTeXt document and it just works™, but after all ConTeXt is not > LaTeX. > > Cheers, Henri > > > > ___ > 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 > > ___ > ___ 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] feature request
Hi Henri, Thanks for your suggestions, they are very instructive. However, my request is not a smart way of displaying matrices but to know why \bmatrix and \vmatrix are not provided in core part of ConTeXt although \pmatrix is provided already in math-pln.mkiv About matrices, I first found commands in your first email in http://dl.contextgarden.net/myway/context-latex-math.pdf (like \startpmatrix \NC A\NC B\NR \NC C\NC D\NR\stoppmatrix) and then browsing ma-cb-en.pdf I noticed another command like \pmatrix{A&B\cr C&D\cr}. Now by your email, I know a command \pmatrix{A, B; C, D} One might say ConTeXt is flexible but I've an impression that ConTeXt is in a state of confusion/disorder. I think it is better if a standard command is provided by core ConTeXt or by a module etc. Or is it ConTeXt way that each user defines his/her own commands in setup area and uses them in text area? I'm afraid consistency and/or portability is lost in such scenario. BTW, I constantly convert Beamer documents into ConTeXt's simpleslide documents recently and it is very convenient if I can use \pmatrix{a&b\cr c&d\cr} style because it is similar to LaTeX documents. 2019年7月3日(水) 15:42 Henri Menke : > > > On 3/07/19 6:00 PM, Atsuhito Kohda wrote: > > I've used LaTeX quite a long time but recently I begin to use ConTeXt > too. > > So I'm very sorry if the following is well-known issue. > > > > I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" > > (ma-cb-en.pdf). And I notice it is defined in > > /usr/share/texmf/tex/context/base/mkiv/math-pln.mkiv (in Debian). > > But it seems \bmatrix, \vmatrix are not defined yet. > > Is there any reason why they are not defined? > > Similar commands or environments \begin{bmatrix}...\end{bmatrix}, > > \begin{vmatrix}...\end{vmatrix} are very often used in mathematical > > LaTeX documents. > > It is very useful if we can use \bmatrix and \vmatrix in ConTeXt > > documents, so please add > > \unexpanded\def\bmatrix#1% > > {\left[\matrix{#1}\right]} > > \unexpanded\def\vmatrix#1% > > {\left|\matrix{#1}\right|} > > in math-pln.mkiv or somewhere. > > Ignore my other message, this is even better: > > \definemathmatrix > [pmatrix] > [matrix:parentheses] > [simplecommand=pmatrix] > > \definemathmatrix > [bmatrix] > [matrix:brackets] > [simplecommand=bmatrix] > > \definemathmatrix > [vmatrix] > [matrix:bars] > [simplecommand=vmatrix] > > \definemathmatrix > [Vmatrix] > [left={\left\lVert\mskip\thinmuskip}, >right={\mskip\thinmuskip\right\rVert}, >align=middle, >simplecommand=Vmatrix] > > \starttext > > \startformula > \startpmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stoppmatrix > \quad > \startbmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stopbmatrix > \quad > \startvmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stopvmatrix > \quad > \startVmatrix > \NC A \NC B \NR > \NC C \NC D \NR > \stopVmatrix > \stopformula > > \startformula > \pmatrix{A, B; C, D} > \quad > \bmatrix{A, B; C, D} > \quad > \vmatrix{A, B; C, D} > \quad > \Vmatrix{A, B; C, D} > \stopformula > > \stoptext > > > > > By the way, I think it is critical to set > > \setupmathematics[ampersand=normal] > > to use \matrix above but I can't find this setting in ma-cb-en.pdf > > It is great if this is added in ma-cb-en.pdf > > > > > > > ___ > > 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 > > > ___ > > > > > ___ > 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 > > ___ > ___ 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] feature request
I've used LaTeX quite a long time but recently I begin to use ConTeXt too. So I'm very sorry if the following is well-known issue. I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" (ma-cb-en.pdf). And I notice it is defined in /usr/share/texmf/tex/context/base/mkiv/math-pln.mkiv (in Debian). But it seems \bmatrix, \vmatrix are not defined yet. Is there any reason why they are not defined? Similar commands or environments \begin{bmatrix}...\end{bmatrix}, \begin{vmatrix}...\end{vmatrix} are very often used in mathematical LaTeX documents. It is very useful if we can use \bmatrix and \vmatrix in ConTeXt documents, so please add \unexpanded\def\bmatrix#1% {\left[\matrix{#1}\right]} \unexpanded\def\vmatrix#1% {\left|\matrix{#1}\right|} in math-pln.mkiv or somewhere. By the way, I think it is critical to set \setupmathematics[ampersand=normal] to use \matrix above but I can't find this setting in ma-cb-en.pdf It is great if this is added in ma-cb-en.pdf ___ 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 ___