[NTG-context] old style factorial symbol and theorems
Hi, How can I typeset old style factorial symbol and theorems in ConTeXt. I found https://www.ntg.nl/maps/36/09.pdf but it does not work. What adaptation should I do for it to work? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
I use following in Latex to generate old factorial symbol: \newcommand{\oldfact}[1]{% \tikz[baseline]{\node[anchor=base,inner sep=0.3ex](mynode){\ensuremath{#1}};\draw(mynode.north west)--(mynode.south west)--(mynode.south east);\path[use as bounding box]($(mynode.south west)+(-0.3ex,-0.3ex)$)rectangle($(mynode.north east)+(0.3ex,0.3ex)$);} } But I do not know how to make it work in ConTeXt as I am not very familiar with ConTeXt. If you see https://www.ntg.nl/maps/36/09.pdf page no. 28 then proof is defined as \defineenumeration [proof] [ text=Proof, number=no, headstyle=italic, title=no, %this is the default closesymbol={\mathematics{\square}}, style=normal] But the closessymbol does not work. I will create a minimum working example and post it as soon as possible. On Wed, Dec 27, 2023 at 5:44 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Shiv Shankar Dayal schrieb am 27.12.2023 um 13:01: > > Hi, > > > > How can I typeset old style factorial symbol and theorems in ConTeXt. > > I found https://www.ntg.nl/maps/36/09.pdf but it does not work. What > > adaptation should I do for it to work? > > Can you be more precise what you have tried and doesn't work, a complete > minimal example would be perfect. > > Wolfgang > > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
What do you expect here to pass as argument to the oldfact command? > I will pass something like n, 5, 10 etc. > > This works here: > > \defineenumeration > [proof] > [closesymbol={\mathematics{\square}}] > > \starttext > > \startproof > \samplefile{lorem} > \stopproof > > \stoptext > Thanks. I will test this again. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
A simple alternative to tikz is the usage of \framed. > > \define[1]\oldfact > {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} > > \starttext > > \m{\oldfact{n}} > > \stoptext > > Wolfgang > > Thanks a lot. It should work nicely. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: old style factorial symbol and theorems
I tried this for old style factorial, but it appears much below the line in which it is used. How can I bring it up? On Wed, Dec 27, 2023 at 6:18 PM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > > > A simple alternative to tikz is the usage of \framed. >> >> \define[1]\oldfact >> {\inmframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} >> >> \starttext >> >> \m{\oldfact{n}} >> >> \stoptext >> >> Wolfgang >> >> Thanks a lot. It should work nicely. > > -- > Respect, > Shiv Shankar Dayal > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Equivalent for hdots and hdotsfor
In LaTeX, I can use \hdots for horizontal dots and \hdotsfor{n} to fill for several columns in a determinant. But these do not work in ConTeXt. What is the equivalent for these in ConTeXt? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Equivalent for hdots and hdotsfor
Never mind, I found the solution on list that we can use \dotfill and \multispan{n}{\dotfill} as a substitute for what I have asked for. On Sat, Dec 30, 2023 at 2:11 PM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > In LaTeX, I can use \hdots for horizontal dots and \hdotsfor{n} to fill > for several columns in a determinant. But these do not work in ConTeXt. > What is the equivalent for these in ConTeXt? > > -- > Respect, > Shiv Shankar Dayal > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Status of Asymptote
Hi all, It would be nice to either support Metapost 3D or Asymptote. Right now I generate images separately and embed them in PDF using externalfigure command which works but I have to maintain all the graphics separately. Respect, Shiv ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Metapost docs
I see many libraries for Metapost in Context source. Where are these documented? I see Metafun manual as well, but I do not find all the included libraries described. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Metapost docs
Dear Gavin, I am aware of these resources. My question is about docs of those Metapost libs which are in the distribution in Metapost directory. On Thu, Jan 11, 2024 at 9:12 PM Gavin via ntg-context wrote: > Hi Shiv, > > I am working with MetaPost in ConTeXt. Here are the resources I use, > roughly in the order I search when trying to solve a problem. > > - MetaFun Manual (http://www.pragma-ade.nl/general/manuals/metafun-p.pdf) > This is most comprehensive and helpful source. > - MetaPost Manual (http://mirrors.ctan.org/systems/doc/metapost/mpman.pdf) > This is not specific to ConTeXt, but it is very useful. > - The MetaFun page on the ConTeXt wiki ( > https://wiki.contextgarden.net/MetaFun_-_MetaPost_in_ConTeXt) Other pages > in the wiki’s graphics area are also helpful. ( > https://wiki.contextgarden.net/Graphics) Searching the wiki for specific > documentation on things like chemical structures is a little hit-or-miss, > but often quite useful. > -The mailing list. I have the most luck with very specific questions that > include a minimal working example. It should include the appropriate > \starttext…\stoptext or \startMPpage…\stopMPpage, so that it can be typeset > as-is. > > If you want to do 3D, you may want to get Lua involved for calculations. I > use > > - Programming in LuaTeX page on the wiki ( > https://wiki.contextgarden.net/Programming_in_LuaTeX) > - Programming in Lua, 4th ed. > by Roberto Ierusalimschy (https://www.amazon.com/gp/product/8590379868) > > If you provide an example of what you hope to accomplish with MetaPost, we > might have more specific recommendations. Below are two graphs that I made > in TikZ, which I hope to convert to MetaPost (actually LMTX). These are > from my chapter on elliptical orbits. > > I hope that helps you get started. > > Gavin > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Do we have a geometry library for Metafun?
Do we have a geometry library for common operations like finding tangents, perpendiculars, circumcircle, orthocenters and such? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Do we have a geometry library for Metafun?
Dear Gavin, I have managed to create an implementation for these operations which I think I can convert into functions and put in startMPinclusions and then use them from. there. On Fri, Jan 12, 2024 at 9:42 PM Gavin via ntg-context wrote: > Hi Shiv, > > > Do we have a geometry library for common operations like finding > tangents, perpendiculars, circumcircle, orthocenters and such? > > I don’t think we have anything like that specifically in the MetaFun > world, but if there is a MetaPost package you like, you can use it with > MetaFun. For example, the TeX Live installation includes both ConTeXt and > 3dgeom.mp, so you should be able to use the 3dgeom package in MetaFun > simply with "input 3dgeom" in your MetaPost code. (I did a quick check, > successfully drawing a drawing a cube with 3dgeom. I have not tested it > beyond than that.) > > If there isn’t a MetaPost package for what you want, Lua may be useful for > doing the calculations. > > Gavin > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > _______ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Do we have a geometry library for Metafun?
> No library that I know of, but drawing tangents (and therefore, > perpendiculars) is straight-forward: > >https://tex.stackexchange.com/a/108060/323 > > Circumcircle, orthocenter, etc... are you thinking of triangles or general > polynomails? > Triangles. I understand that most of it is very easy, but still a library will help new users. Tikz has Tikz-Euclide and Asymptote has a Geometry package. A similar library for Metafun will be very useful. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Do we have a geometry library for Metafun?
The fiziko library by the same author is also very interesting: > https://github.com/jemmybutton/fiziko > Since it has some pseudo-3D features, maybe you can learn from it. > Thanks for all this info. I will look into this and perhaps come up with a Metapost file, and then we can possibly add that in Wiki. I do not know Lua, and I am too old to learn another programming language. These days, I program only in Rust/Javascript. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Do we have a geometry library for Metafun?
Can we please add https://github.com/jemmybutton/byrne-euclid/blob/master/byrne.mp to Wiki because files have a tendency to disappear? Similarly, can we please add https://github.com/thruston/Drawing-with-Metapost/blob/main/Drawing-with-Metapost.pdf file to Wiki? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Spacing problem in formula
Suppose I want to typeset the formula: 1 - {}^nC_2\tan^2\theta + {}^nC_4 then it appears as if n is power of - and +. The same formula in LaTeX comes out nicely. Is there something I need to change? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Spacing problem in formula
Thanks a lot Mikael. On Mon, Jan 15, 2024 at 12:24 PM Mikael Sundqvist wrote: > Hi, > > ConTeXt supports prescripts: > > \startTEXpage[offset=1DK] > > \m{1 - {}^nC_2\tan^2\theta + {}^nC_4 } > > \m{1 - C_2^^n \tan^2\theta + C_4^^n } > > \stopTEXpage > > If you want them below, use double _. > > /Mikael > > On Mon, Jan 15, 2024 at 7:45 AM Shiv Shankar Dayal > wrote: > > > > Suppose I want to typeset the formula: 1 - {}^nC_2\tan^2\theta + {}^nC_4 > then it appears as if n is power of - and +. The same formula in LaTeX > comes out nicely. Is there something I need to change? > > > > -- > > Respect, > > Shiv Shankar Dayal > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > > webpage : https://www.pragma-ade.nl / https://context.aanhet.net > (mirror) > > archive : https://github.com/contextgarden/context > > wiki : https://wiki.contextgarden.net > > > ___ > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Linebreak in formual
I have following formula \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not break the line below Sigma. How can I achieve this because AFAIK it will work in LaTeX? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Linebreak in formual
It works nicely. You are a lifesaver. Thanks a lot. On Mon, Jan 15, 2024 at 7:30 PM Mikael Sundqvist wrote: > Hi, > > you can try something like > > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} > > but it will not be too pretty with such a large sub-index to the sum. > > /Mikael > > On Mon, Jan 15, 2024 at 2:41 PM Shiv Shankar Dayal > wrote: > > > > I have following formula > > \sum_{k=0\\ k\equiv p + 1(\mathrm{mod}\;2)}^{p -1} but the \\ does not > break the line below Sigma. How can I achieve this because AFAIK it will > work in LaTeX? > > > > -- > > Respect, > > Shiv Shankar Dayal > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > > webpage : https://www.pragma-ade.nl / https://context.aanhet.net > (mirror) > > archive : https://github.com/contextgarden/context > > wiki : https://wiki.contextgarden.net > > > ___ > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Linebreak in formual
Thanks a lot, Aditya. On Mon, Jan 15, 2024 at 8:41 PM Aditya Mahajan wrote: > On Mon, 15 Jan 2024, Mikael Sundqvist wrote: > > > Hi, > > > > you can try something like > > > > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} > > > > but it will not be too pretty with such a large sub-index to the sum. > > There is also > > \sum_{\startsubstack \NC a \NR \NC b \NR \stopsubstack} > > which imitates the \substack command from latex. > > OT but it is better to use one of \mod, \pmod, \bmod, rather than explicit > \mtext{mod }. > > Aditya > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
Please paste line no. 238 of your input file. On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann wrote: > Dear List, > > > > After Compiling in the Folder: > > > > This is LuaMetaTeX, Version 2.10.11 initex > > (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- > en.mkxl(context.mkxl(syst-ini.mkxl > ! Undefined control sequence. > > \immutable\defcsname\tocharacter > \tabasciicode \endcsname {\ } % \def\^^I{\ } tab > > > ! Missing \endcsname inserted. > > > > > I wanted also do a new installation of ConTeXt LMTX, but if I want to do > it, the is a report, that the page cannot be found. > > > > Many thanks > > Uschi > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
I just updated my ConTeXt distribution and it is working fine for me. Try processing the following file: \starttext \input knuth \stoptext On Tue, Jan 16, 2024 at 5:30 PM luigi scarso wrote: > > > On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > >> Please paste line no. 238 of your input file. >> >> On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann < >> ursula.herm...@univie.ac.at> wrote: >> >>> Dear List, >>> >>> >>> >>> After Compiling in the Folder: >>> >>> >>> >>> This is LuaMetaTeX, Version 2.10.11 initex >>> >>> (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- >>> en.mkxl(context.mkxl(syst-ini.mkxl >>> ! Undefined control sequence. >>> >>> \immutable\defcsname\tocharacter >>> \tabasciicode \endcsname {\ } % \def\^^I{\ } tab >>> >> > maybe I am wrong, but this looks like an error of syst-ini.mkxl > around line 3238 > (I cannot update now ) > > -- > luigi > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Why LuaMetaTex is so slow?
I can process TeXBook in almost an instant using PDFTeX which is about 450+ pages but my math book takes around 30 seconds averaging ~40 pages/second. Why LuaMetaTeX is so slow? How can I speed it up? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why LuaMetaTex is so slow?
In comparison to LaTeX with LuaHBTeX, ConTeXt with LuaMetaTeX is > lightning fast. > > pdfTeX is 8bit, and Knuth’s plain TeX is very low level – for a fairer > comparison, try the TeXbook on LuaMetaTeX (I don’t know if “plain” works > though). > I understand that why it is slow, but the problem is that the difference is too high. My book has lots of math, so perhaps that is the reason. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] LuaMetaTeX code
Dear Hans, I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good coding practice. These potions of code which have goto should be refactored. I am a C programmer, but I know very little of TeX. If you can point me towards where should I start for TeX(perhaps TeX Book or TeX for the Impatient), I can help with refactoring of code to make is more efficient/easier. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LuaMetaTeX code
I see code like # define luametatex_version 210 # define luametatex_revision 10 # define luametatex_release 10 # define luametatex_version_string "2.10.10" starting with C99 these become unnecessary. Rather they should be like const int luametatex_version=210; const char* luametatex_version_string="2.10.10"; These ensure type-safety in the code and are good coding practice. On Fri, Jan 19, 2024 at 1:56 PM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good > coding practice. These potions of code which have goto should be refactored. > > I am a C programmer, but I know very little of TeX. If you can point me > towards where should I start for TeX(perhaps TeX Book or TeX for the > Impatient), I can help with refactoring of code to make is more > efficient/easier. > > -- > Respect, > Shiv Shankar Dayal > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LuaMetaTeX code
Dear Taco, I will send new messages to dev mailing lists. Let me join it first. On Fri, Jan 19, 2024 at 2:11 PM Taco Hoekwater wrote: > > Hi Shiv, > > Can you move this discussion to the dev-context list, please? > https://mailman.ntg.nl/mailman3/lists/dev-context.ntg.nl/ > > Best wishes, > Taco > > > > On 19 Jan 2024, at 09:31, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > > > I see code like > > > > # define luametatex_version 210 > > # define luametatex_revision 10 > > # define luametatex_release 10 > > # define luametatex_version_string "2.10.10" > > > > starting with C99 these become unnecessary. Rather they should be like > const int luametatex_version=210; const char* > luametatex_version_string="2.10.10"; > > > > These ensure type-safety in the code and are good coding practice. > > > > On Fri, Jan 19, 2024 at 1:56 PM Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > Dear Hans, > > > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not > good coding practice. These potions of code which have goto should be > refactored. > > > > I am a C programmer, but I know very little of TeX. If you can point me > towards where should I start for TeX(perhaps TeX Book or TeX for the > Impatient), I can help with refactoring of code to make is more > efficient/easier. > > > > -- > > Respect, > > Shiv Shankar Dayal > > > > > > -- > > Respect, > > Shiv Shankar Dayal > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > > webpage : https://www.pragma-ade.nl / https://context.aanhet.net > (mirror) > > archive : https://github.com/contextgarden/context > > wiki : https://wiki.contextgarden.net > > > ___ > > — > Taco Hoekwater E: t...@bittext.nl > genderfluid (all pronouns) > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
64-bit ConTeXt(or any other executable) won't work on 32-bit systems. On Mon, Jan 22, 2024 at 6:49 PM Ursula Hermann wrote: > Dear List, > > > > I have now another problem: > > I have downloaded context-win64. But the problem is now, that ConTeXt is > not executable on WinEdt11, which is my TextEditor. It worked well with > context-mswin. There was no problem. I found context.exe now on > context-win64\text\texmf-win64\bin\context.exe, and have Windows 32 System > at work. > > After trying to compile the test at work, I got in the Folder: > > Command Line: > C:\Users\Hermann\Downloads\context-win64\text\texmf-win64\bin\context.exe > --synctex=-1 "context-test.tex" > > Startup Folder: > C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv > > > > > > Error Launching Console Application ConTeXt ... > > Command Line: > C:\Users\Hermann\Downloads\context-win64\text\texmf-win64\bin\context.exe > --synctex=-1 "context-test.tex" > > Startup Folder: > C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv > > > > Das System kann die angegebene Datei nicht finden. > > > > What should I do? > > > > Uschi > > > > *Von:* Ursula Hermann > *Gesendet:* Dienstag, 16. Jänner 2024 15:33 > *An:* 'mailing list for ConTeXt users' > *Betreff:* AW: [NTG-context] Re: After Compiling the Context test, there > was no PDF. > > > > Dear, Shiv Shankar Dayal, > > > > > > I have tried your example. Did not work. > > > > Uschi > > *Von:* Shiv Shankar Dayal > *Gesendet:* Dienstag, 16. Jänner 2024 13:42 > *An:* mailing list for ConTeXt users > *Betreff:* [NTG-context] Re: After Compiling the Context test, there was > no PDF. > > > > I just updated my ConTeXt distribution and it is working fine for me. > > > > Try processing the following file: > > > > \starttext > \input knuth > \stoptext > > > > On Tue, Jan 16, 2024 at 5:30 PM luigi scarso > wrote: > > > > > > On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > Please paste line no. 238 of your input file. > > > > On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann < > ursula.herm...@univie.ac.at> wrote: > > Dear List, > > > > After Compiling in the Folder: > > > > This is LuaMetaTeX, Version 2.10.11 initex > > (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- > en.mkxl(context.mkxl(syst-ini.mkxl > ! Undefined control sequence. > > \immutable\defcsname\tocharacter > \tabasciicode \endcsname {\ } % \def\^^I{\ } tab > > > > maybe I am wrong, but this looks like an error of syst-ini.mkxl > around line 3238 > > (I cannot update now ) > > > > -- > > luigi > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > > > > -- > > Respect, > > Shiv Shankar Dayal > > ___________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
Can you please give the link from where you downloaded it? I will test it on my Windows because on Linux it is producing the PDF. On Wed, Jan 24, 2024 at 2:29 PM Ursula Hermann wrote: > Dear List, > > > > I am sorry, but once again me: I downloaded the last upload from Hans > yesterday, I downloaded context-win64, and tried the test today . > > > > Here is the test: > > \starttext > > > > \startmode[mkiv] > > > > \startluacode > > tex.sprint("hello") > > \stopluacode > > > > \startMPcode > > draw textext("hello") rotated 45 ; > > \stopMPcode > > > > \framed{hello} > > > > \stopmode > > > > \startnotmode[mkiv] > > > > \startMPcode > > draw textext("hello") rotated -45 ; > > \stopMPcode > > > > \framed{hello} > > > > \stopnotmode > > > > \stoptext > > > > After compiling in the folder: > > Is this because I am the user? > > > > Command Line: context.exe --synctex=-1 "context-test.tex" > > Startup Folder: > C:\Users\Hermann\Downloads\context-win64\tex\texmf-context\tex\context\test\mkiv > > > > startup error : no format file given, quitting > > > > Uschi > > > > > > _ > > > > ConTeXt Compilation Report (Pages: 0) > > > > Errors: 0 Warnings: 0 Bad Boxes: 0 > > > > > > > > > > > > *Von:* Ursula Hermann > *Gesendet:* Dienstag, 16. Jänner 2024 15:33 > *An:* 'mailing list for ConTeXt users' > *Betreff:* AW: [NTG-context] Re: After Compiling the Context test, there > was no PDF. > > > > Dear, Shiv Shankar Dayal, > > > > > > I have tried your example. Did not work. > > > > Uschi > > *Von:* Shiv Shankar Dayal > *Gesendet:* Dienstag, 16. Jänner 2024 13:42 > *An:* mailing list for ConTeXt users > *Betreff:* [NTG-context] Re: After Compiling the Context test, there was > no PDF. > > > > I just updated my ConTeXt distribution and it is working fine for me. > > > > Try processing the following file: > > > > \starttext > \input knuth > \stoptext > > > > On Tue, Jan 16, 2024 at 5:30 PM luigi scarso > wrote: > > > > > > On Tue, 16 Jan 2024 at 12:49, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > Please paste line no. 238 of your input file. > > > > On Tue, Jan 16, 2024 at 4:11 PM Ursula Hermann < > ursula.herm...@univie.ac.at> wrote: > > Dear List, > > > > After Compiling in the Folder: > > > > This is LuaMetaTeX, Version 2.10.11 initex > > (C:/Users/Hermann/Downloads/context-mswin/tex/texmf-context/tex/context/base/mkxl/cont- > en.mkxl(context.mkxl(syst-ini.mkxl > ! Undefined control sequence. > > \immutable\defcsname\tocharacter > \tabasciicode \endcsname {\ } % \def\^^I{\ } tab > > > > maybe I am wrong, but this looks like an error of syst-ini.mkxl > around line 3238 > > (I cannot update now ) > > > > -- > > luigi > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > > > > -- > > Respect, > > Shiv Shankar Dayal > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: After Compiling the Context test, there was no PDF.
On Wed, Jan 24, 2024 at 2:47 PM Ursula Hermann wrote: > Yes, > > I always go to: > > > > pragma-ade.nl/install.htm > > > > I have Windows 10. > Dear Ursula, I just downloaded and compiled the same file on Windows 11 64-bit and it works. I got the PDF output. I am not sure why it is not working for you. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Using plain TeX commands in ConTeXt
Dear List, Can we use plain TeX commands which are available in LuaMetaTeX in an arbitrary manner or are there any restrictions? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Using plain TeX commands in ConTeXt
For example: \kern, \parindent and so on. Rephrasing the question, can LuaMetaTeX/ConTeXt compile plain TeX files. If yes, how can I do that? On Wed, Jan 24, 2024 at 9:02 PM Hans Hagen wrote: > On 1/24/2024 2:55 PM, Shiv Shankar Dayal wrote: > > Dear List, > > > > Can we use plain TeX commands which are available in LuaMetaTeX in an > > arbitrary manner or are there any restrictions? > what do you mean with arbitrary plain tex commands > > - >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 / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___________ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Using plain TeX commands in ConTeXt
Thanks for correcting me, Wolfgang. I meant only TeX commands not plan TeX macros. On Wed, Jan 24, 2024 at 9:20 PM Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> wrote: > Shiv Shankar Dayal schrieb am 24.01.2024 um 16:37: > > For example: \kern, \parindent and so on. Rephrasing the question, can > > LuaMetaTeX/ConTeXt compile > > plain TeX files. If yes, how can I do that? > > You mix up two different things here. > > 1. Plain TeX is a collection of TeX macros like ConTeXt or LaTeX. > > 2. LuaMetaTeX is a program like pdfTeX or LuaTeX which provides commands > which are used by above mentioned collections to create macros. > > Even though ConTeXt provides some commands which available in plain TeX > not all of the are supported which means you can't process plain TeX > documents. > > On the other hand commands which are provided by the engine like > \parindent can be used in a ConTeXt document but higher level mechanism > like \setupindenting are the better choice. > > Wolfgang > > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Caching Metafun images and VIM Syntax highlighted code
I am writing two books. One is on Rust programming and another is on geometry, so I have syntax highlighted code and in second has lost of diagrams. Perhaps Aditya Mahajan can tell me how can I cache code snippets. Invoking VIM will have heavy penalty on highlighting the code otherwise. Other than that, how can I cache Metafun images so that they are not recomputed on every processing of file. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Using plain TeX commands in ConTeXt
Yes. On Wed, Jan 24, 2024 at 10:08 PM luigi scarso wrote: > > > On Wed, 24 Jan 2024 at 16:55, Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > >> Thanks for correcting me, Wolfgang. I meant only TeX commands not plan >> TeX macros. >> >> > TeX primitives ? > > -- > luigi > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > _______ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code
Dear Hans, Aditya, Thanks for clarifying. In any case, I will process chapter-by-chapter, so runtime should be manageable. On Wed, Jan 24, 2024 at 10:32 PM Hans Hagen wrote: > On 1/24/2024 5:50 PM, Aditya Mahajan wrote: > > On Wed, 24 Jan 2024, Shiv Shankar Dayal wrote: > > > >> Perhaps Aditya Mahajan can tell me how can I cache code snippets. > Invoking > >> VIM will have heavy penalty on highlighting the code otherwise. > > > > Have you tried the vim module: > > > > https://github.com/adityam/filter/blob/dev/vim-README.md > > > > Caching is enabled out of the box, so you don't need to configure > anything. > > > >> Other than that, how can I cache Metafun images so that they are not > >> recomputed on every processing of file. > > > > There used to a command for caching metafun images in MkII, but I don't > know if that is really needed in LMTX. In most cases, metapost processing > does not have a significant processing delay. > if images are the same one can use the reuseMPgraphic or uniqueMPgraphic > features .. plenty of examples can be found, but as Aditya poined out mp > is quite fast (but reuse saves on file size) > > 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 / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: An announcement of my new book.
Please write one. More documentation is needed. On Wed, Feb 14, 2024 at 3:55 AM Sir Coleman via ntg-context < ntg-context@ntg.nl> wrote: > I'm glad to know there's a demand for this book. > > Hopefully soon I'll upload a draft of it to GitLab, so if there's anything > that you learned that you would like to contribute to this book, you would > be able to do so. I personally would be very happy if someone would give me > examples of things a user would like to do, because my own use cases can > only go that far. > > I'll make sure to make finding information in this book as direct as > possible. If you find that some information in this book isn't clear or > easy to learn from (or locate in the first place), then I'll expect a > complaint about it. > > I'll post here a link to the GitLab repository when part of the book has > been written and ready for feedback. Should take some time, but not too > long. > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Memory consumption in new upload
Thanks for new upload. I see that memory consumption is much less than previous version. So once again, thanks a lot. I am curious about what has changed in recent upload, that memory consumption is about 60% of earlier versions. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Memory consumption in new upload
The only change I made was that I started using a 9pt modern font than a 10 pt modern font. My document decreased from 580+ pages to 500 pages after that. About your document, I assume you had a lot of Graphics because text only 180MB is too high. I have only few diagrams and my file size is only 3MB. On Sun, Feb 18, 2024 at 2:13 AM Hans Hagen wrote: > On 2/17/2024 6:17 PM, Shiv Shankar Dayal wrote: > > Thanks for new upload. I see that memory consumption is much less than > > previous version. So > > once again, thanks a lot. > > > > I am curious about what has changed in recent upload, that memory > > consumption is about 60% of earlier versions. > it's hard to tell what exact consumpiton is becaue for instance when lua > creates tables, they grow by factors two when then have to (maybe 5.5 is > a bit less consuming) > > on the one hand luametatex is more efficient than luatex due to all kind > of ímprovements' but some nodes are larger so that takes more memory, > which is only noticed when one has lots of text on a page (or keeps > boxes stuff around) > > anyway, not that much changed since the previous upload, so maybe you > just stay below a threshold > > I recently generated a 180MB document with 2500 fonts + metapost > outlines of them and that could bump mem usage (with empty cache) to 30 > GB (less after fonts were cached) but normally we stay around 125 MB for > a document. Anyway, tex mem consumption can often be neglected compared > to other applications. > > 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 / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Memory consumption in new upload
I assume you would have created typescripts for those fonts. Can you please add them to ConTeXt distribution, at least for the popular fonts? On Sun, Feb 18, 2024 at 3:12 AM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > The only change I made was that I started using a 9pt modern font than a > 10 pt modern font. > > My document decreased from 580+ pages to 500 pages after that. > > About your document, I assume you had a lot of Graphics because text only > 180MB is too high. > I have only few diagrams and my file size is only 3MB. > > On Sun, Feb 18, 2024 at 2:13 AM Hans Hagen wrote: > >> On 2/17/2024 6:17 PM, Shiv Shankar Dayal wrote: >> > Thanks for new upload. I see that memory consumption is much less than >> > previous version. So >> > once again, thanks a lot. >> > >> > I am curious about what has changed in recent upload, that memory >> > consumption is about 60% of earlier versions. >> it's hard to tell what exact consumpiton is becaue for instance when lua >> creates tables, they grow by factors two when then have to (maybe 5.5 is >> a bit less consuming) >> >> on the one hand luametatex is more efficient than luatex due to all kind >> of ímprovements' but some nodes are larger so that takes more memory, >> which is only noticed when one has lots of text on a page (or keeps >> boxes stuff around) >> >> anyway, not that much changed since the previous upload, so maybe you >> just stay below a threshold >> >> I recently generated a 180MB document with 2500 fonts + metapost >> outlines of them and that could bump mem usage (with empty cache) to 30 >> GB (less after fonts were cached) but normally we stay around 125 MB for >> a document. Anyway, tex mem consumption can often be neglected compared >> to other applications. >> >> 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 / >> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >> webpage : https://www.pragma-ade.nl / https://context.aanhet.net >> (mirror) >> archive : https://github.com/contextgarden/context >> wiki : https://wiki.contextgarden.net >> >> ___ >> > > > -- > Respect, > Shiv Shankar Dayal > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Problem with wiki example
I found following on Wiki to produce PDF out of standalone type( https://wiki.contextgarden.net/Sharing_graphics): \starttext \startMPpage draw fullcircle scaled 10cm ; \stopMPPage \stoptext It generates a PDF but when I open it with Evince, Evince complains that no page was found and does not show anything. Any help would be much appreciated. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Problem with wiki example
Never mind it was my idiocy. On Sun, Feb 18, 2024 at 3:29 AM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > I found following on Wiki to produce PDF out of standalone type( > https://wiki.contextgarden.net/Sharing_graphics): > > \starttext > \startMPpage > draw fullcircle scaled 10cm ; > \stopMPPage > \stoptext > > It generates a PDF but when I open it with Evince, Evince complains that > no page was found > and does not show anything. Any help would be much appreciated. > > -- > Respect, > Shiv Shankar Dayal > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Best way to input UTF-8
Hi all, What is the best way to input UTF-8 in LuaMetaTex? If I use the UTF-8 characters then do not come out in text with Modern font. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] How to use fonts without typescripts?
Hi, Defining typescripts to use a font is very painful. How can I use a font without using a typescript? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Extra space in numbers
Dear Lits, Suppose I have $10,000$ then in the output there is extra space after comma. How can I get rid of it? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Extra space in numbers
Much thanks, Hans. I am curious why this is not default behavior? On Tue, Jul 16, 2024 at 6:20 AM Hans Hagen wrote: > On 7/16/2024 7:01 AM, Shiv Shankar Dayal wrote: > > Dear Lits, > > > > Suppose I have $10,000$ then in the output there is extra space after > > comma. How can I get rid of it? > \setupmathematics[autopunctuation=yes] > > $10,000$ > > $10, 000$ > > no | yes | all | comma | {yes,semicolon} | {all,semicolon} > > see math manual for all kinds of control > > 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 / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > ___ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Emacs and spell check
Hi, Does anyone use Emacs with ConTeXt with spell check? Can you please share your Emacs config for this? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Emacs and spell check
Dear Peter, Thanks. I tried and it works pretty well. On Thu, Jul 25, 2024 at 1:44 AM Peter Münster wrote: > On Thu, Jul 25 2024, Shiv Shankar Dayal wrote: > > > Can you please share your Emacs config for this? > > Hi, > > I use hunspell. Works very nicely: > > (setq-default ispell-program-name "hunspell") > > -- >Peter > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > _______ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Emacs and spell check
I came across https://github.com/PillFall/languagetool.el, which also checks grammar. On Thu, Jul 25, 2024 at 2:09 AM Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > Dear Peter, > > Thanks. I tried and it works pretty well. > > On Thu, Jul 25, 2024 at 1:44 AM Peter Münster wrote: > >> On Thu, Jul 25 2024, Shiv Shankar Dayal wrote: >> >> > Can you please share your Emacs config for this? >> >> Hi, >> >> I use hunspell. Works very nicely: >> >> (setq-default ispell-program-name "hunspell") >> >> -- >>Peter >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >> webpage : https://www.pragma-ade.nl / https://context.aanhet.net >> (mirror) >> archive : https://github.com/contextgarden/context >> wiki : https://wiki.contextgarden.net >> >> ___ >> > > > -- > Respect, > Shiv Shankar Dayal > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Customizing chapter and page no. styles
Hi, I was going through the Metafun manual, the print version, which comes with distribution. I see how page no. and chapters are styles. How can I customize for that kind of output in the current version of ConTeXt? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Metapost logo typesetting
Hi, I believe that there is a LaTeX package which typesets the METAPOST text in a certain font, I do not remember which. How can I typeset same Metapost logo in ConTeXt. It looks like below; [image: image.png] -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Metapost logo typesetting
Many thanks. It worked like a charm. On Sun, Aug 4, 2024 at 11:44 AM Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> wrote: > On 8/4/24 06:45, Shiv Shankar Dayal wrote: > > Hi, > > > > I believe that there is a LaTeX package which typesets the METAPOST text > > in a certain font, I do not remember which. How can I typeset same > > Metapost logo in ConTeXt. It looks like below; > > These are the right commands for both (according to cont-log.mkxl or > cont-log.mkiv): > >\MetaFontLogo >\MetaPostLogo > > Just in case it helps, > > Pablo > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > _______ > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Error after latest update
I have defined a determinant environment like below: \definemathmatrix[determinant] [matrix:bars] [simplecommand=thedeterminant] and I create a determinant like below: \startformula \startdeterminant\NC a_{11} \NC a_{12} \NC a_{13} \NC \cdots \NC a_{1n}\NR \NC a_{21} \NC a_{22} \NC a_{23} \NC \cdots \NC a_{2n}\NR \NC a_{31} \NC a_{32} \NC a_{33} \NC \cdots \NC a_{3n}\NR \multispan{9}{\dotfill}\NR \NC a_{n1} \NC a_{n2} \NC a_{n3} \NC \cdots \NC a_{nn} \NR\stopdeterminant This was working before today but I updated ConTeXt and it has stopped working. The error it gives me now is: tex error > tex error on line 277 in file determinants.tex: You can't use '\Ustopmath' in restricted horizontal mode How can I get it working again? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Error after latest update
Hi, I do not remember where it came from, probably AMS Math or something like that. Many thanks. It works but I am curious as to why the working code broke. On Tue, Aug 6, 2024 at 9:58 PM Mikael Sundqvist wrote: > > Hi, > > On Tue, Aug 6, 2024 at 5:57 PM Shiv Shankar Dayal > wrote: > > > > I have defined a determinant environment like below: > > > > \definemathmatrix[determinant] > > [matrix:bars] > > [simplecommand=thedeterminant] > > > > and I create a determinant like below: > > > > \startformula \startdeterminant\NC a_{11} \NC a_{12} \NC a_{13} \NC > > \cdots \NC a_{1n}\NR > > \NC a_{21} \NC a_{22} \NC a_{23} \NC \cdots \NC a_{2n}\NR > > \NC a_{31} \NC a_{32} \NC a_{33} \NC \cdots \NC a_{3n}\NR > > \multispan{9}{\dotfill}\NR > > \NC a_{n1} \NC a_{n2} \NC a_{n3} \NC \cdots \NC a_{nn} > > \NR\stopdeterminant > > > > This was working before today but I updated ConTeXt and it has stopped > > working. The error it gives me now is: > > > > tex error > tex error on line 277 in file determinants.tex: You > > can't use '\Ustopmath' in restricted horizontal mode > > > > How can I get it working again? > > > > -- > > Respect, > > Shiv Shankar Dayal > > I never seen \multispan before. But this seems to work: > > \definemathmatrix > [determinant] > [matrix:bars] > [simplecommand=thedeterminant] > > \starttext > > \startformula > \startdeterminant > \NC a_{11} \NC a_{12} \NC a_{13} \NC \cdots \NC a_{1n}\NR > \NC a_{21} \NC a_{22} \NC a_{23} \NC \cdots \NC a_{2n}\NR > \NC a_{31} \NC a_{32} \NC a_{33} \NC \cdots \NC a_{3n}\NR > \HF\NR > % \multispan{9}{\dotfill}\NR > \NC a_{n1} \NC a_{n2} \NC a_{n3} \NC \cdots \NC a_{nn}\NR > \stopdeterminant > \stopformula > > \stoptext > > I hope it gives you what you want. > > /Mikael > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Error after latest update
Hi, I still do not know why it stopped working after the latest update. On Tue, Aug 6, 2024 at 10:54 PM Wolfgang Schuster wrote: > > Mikael Sundqvist schrieb am 06.08.2024 um 18:27: > > Hi, > > > > On Tue, Aug 6, 2024 at 5:57 PM Shiv Shankar Dayal > > wrote: > >> I have defined a determinant environment like below: > >> > >> \definemathmatrix[determinant] > >>[matrix:bars] > >>[simplecommand=thedeterminant] > >> > >> and I create a determinant like below: > >> > >> \startformula \startdeterminant\NC a_{11} \NC a_{12} \NC a_{13} \NC > >> \cdots \NC a_{1n}\NR > >> \NC a_{21} \NC a_{22} \NC a_{23} \NC \cdots \NC a_{2n}\NR > >> \NC a_{31} \NC a_{32} \NC a_{33} \NC \cdots \NC a_{3n}\NR > >> \multispan{9}{\dotfill}\NR > >> \NC a_{n1} \NC a_{n2} \NC a_{n3} \NC \cdots \NC a_{nn} > >> \NR\stopdeterminant > >> > >> This was working before today but I updated ConTeXt and it has stopped > >> working. The error it gives me now is: > >> > >> tex error > tex error on line 277 in file determinants.tex: You > >> can't use '\Ustopmath' in restricted horizontal mode > >> > >> How can I get it working again? > >> > >> -- > >> Respect, > >> Shiv Shankar Dayal > > I never seen \multispan before. But this seems to work: > > \multispan is a plain TeX command to create cells which span multiple > columns > and makes only sense when you create tables with the \halign primitive > because > tables in context use hidden cells for padding on the left and right etc. > > Wolfgang > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Error after latest update
LuaMetaTeX 2.11.03 20240517 + ConTeXt LMTX 2024.05.17 16:32 On Wed, Aug 7, 2024 at 12:40 AM Wolfgang Schuster wrote: > > Shiv Shankar Dayal schrieb am 06.08.2024 um 19:30: > > Hi, > > > > I still do not know why it stopped working after the latest update. > > Which version was your last one you used? > > Just because it worked without an error message before doesn't mean your > input is the right way. > Especially when you have to pass 9 as argument to \multispan even though > you have only 5 columns > should be alarming. > > The reason for the error here is that Context creates a template for > each matrix cell which enables > and disable math mode at the begin of each cell but when you use > \multispan the template is ignored > and you have to provide your own settings. The problem no is that no > math mode is entered at > the begin of your new marge cell but Context always adds a end of math > mode trigger when it reaches > the \NR command at the end of the row. > > Wolfgang > -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Customizing chapter titles
Hi, What is the general method of customizing chapter titles? For example, I would like something like the attachment. Is it achievable without using Metapost? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Customizing chapter titles
This is what I came up with: \setupcolors[state=start] \definecolor [maincolor] [r=, g=.5, b=.7] \setupinteraction [ state=start, color=maincolor, contrastcolor=maincolor, style=, ] \define[2]\MyChapterCommand% {\rotate[rotation=90]{\rm\small\sc \headtext{chapter}} \framed[backgroundcolor=maincolor, background=color, frame=off, foregroundcolor=white, foreground=color, style=\bfd]{#1} \blank#2} \setuphead[chapter][command=\MyChapterCommand] \setupheadtext[chapter=Chapter] \starttext \chapter{Hello world} \stoptext The size of chapter no. is too small and I would like the title on new line. I do not know how to do it. On Wed, Aug 7, 2024 at 1:01 AM Henning Hraban Ramm wrote: > > Am 06.08.24 um 21:26 schrieb Shiv Shankar Dayal: > > What is the general method of customizing chapter titles? For example, > > I would like something like the attachment. Is it achievable without > > using Metapost? > > If you can create it with a macro, you can use it for a title. > > This looks just like \framed and \rotate with \offset. > > Hraban > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > _______ -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Customizing chapter titles
Hi, My final version is below: \setupcolors[state=start] \definecolor [maincolor] [r=, g=.5, b=.7] \define[2]\MyChapterCommand {\framed[align=flushright, frame=off]{\rotate[rotation=90]{\rm\small\sc \headtext{chapter}} \framed[backgroundcolor=maincolor, background=color, frame=off, foregroundcolor=white, foreground=color, loffset=-20pt]{\setupbodyfont[60pt] \ss#1} \blank[force,4*medium] #2}} \setuphead[chapter][command=\MyChapterCommand] \setupheadtext[chapter=Chapter] \setupbodyfont[10pt] \starttext \chapter{Hello world} Hello \stoptext This is what will work but I want all of it to have right alignment but it does not go to right. On Wed, Aug 7, 2024 at 1:50 AM Shiv Shankar Dayal wrote: > > This is what I came up with: > > \setupcolors[state=start] > \definecolor [maincolor] [r=, g=.5, b=.7] > \setupinteraction >[ > state=start, > color=maincolor, > contrastcolor=maincolor, > style=, >] > > \define[2]\MyChapterCommand% > {\rotate[rotation=90]{\rm\small\sc \headtext{chapter}} > \framed[backgroundcolor=maincolor, background=color, > frame=off, foregroundcolor=white, foreground=color, style=\bfd]{#1} > \blank#2} > \setuphead[chapter][command=\MyChapterCommand] > \setupheadtext[chapter=Chapter] > \starttext > \chapter{Hello world} > \stoptext > > The size of chapter no. is too small and I would like the title on new > line. I do not know how to do it. > > On Wed, Aug 7, 2024 at 1:01 AM Henning Hraban Ramm wrote: > > > > Am 06.08.24 um 21:26 schrieb Shiv Shankar Dayal: > > > What is the general method of customizing chapter titles? For example, > > > I would like something like the attachment. Is it achievable without > > > using Metapost? > > > > If you can create it with a macro, you can use it for a title. > > > > This looks just like \framed and \rotate with \offset. > > > > Hraban > > ___ > > If your question is of interest to others as well, please add an entry to > > the Wiki! > > > > maillist : ntg-context@ntg.nl / > > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > > archive : https://github.com/contextgarden/context > > wiki : https://wiki.contextgarden.net > > ___ > > > > -- > Respect, > Shiv Shankar Dayal -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Customizing chapter titles
Hi, Finally got it working with:; \setupcolors[state=start] \definecolor [maincolor] [r=, g=.5, b=.7] \define[2]\MyChapterCommand {\framed[align=flushright, width=\textwidth, frame=off]{\rotate[rotation=90]{\rm\small\sc \headtext{chapter}} \framed[backgroundcolor=maincolor, background=color, frame=off, foregroundcolor=white, foreground=color, loffset=-20pt]{\setupbodyfont[60pt] \ss#1} \blank[force,4*medium]\ss\setupbodyfont[20pt] #2}} \setuphead[chapter][command=\MyChapterCommand] \setupheadtext[chapter=Chapter] \setupbodyfont[10pt] \starttext \chapter{Hello world} Hello \stoptext On Wed, Aug 7, 2024 at 2:35 AM Shiv Shankar Dayal wrote: > > Hi, > > My final version is below: > > \setupcolors[state=start] > \definecolor [maincolor] [r=, g=.5, b=.7] > \define[2]\MyChapterCommand > {\framed[align=flushright, > frame=off]{\rotate[rotation=90]{\rm\small\sc \headtext{chapter}} > \framed[backgroundcolor=maincolor, background=color, > frame=off, foregroundcolor=white, foreground=color, > loffset=-20pt]{\setupbodyfont[60pt] \ss#1} > \blank[force,4*medium] #2}} > \setuphead[chapter][command=\MyChapterCommand] > \setupheadtext[chapter=Chapter] > \setupbodyfont[10pt] > \starttext > \chapter{Hello world} > Hello > \stoptext > > This is what will work but I want all of it to have right alignment > but it does not go to right. > > On Wed, Aug 7, 2024 at 1:50 AM Shiv Shankar Dayal > wrote: > > > > This is what I came up with: > > > > \setupcolors[state=start] > > \definecolor [maincolor] [r=, g=.5, b=.7] > > \setupinteraction > >[ > > state=start, > > color=maincolor, > > contrastcolor=maincolor, > > style=, > >] > > > > \define[2]\MyChapterCommand% > > {\rotate[rotation=90]{\rm\small\sc \headtext{chapter}} > > \framed[backgroundcolor=maincolor, background=color, > > frame=off, foregroundcolor=white, foreground=color, style=\bfd]{#1} > > \blank#2} > > \setuphead[chapter][command=\MyChapterCommand] > > \setupheadtext[chapter=Chapter] > > \starttext > > \chapter{Hello world} > > \stoptext > > > > The size of chapter no. is too small and I would like the title on new > > line. I do not know how to do it. > > > > On Wed, Aug 7, 2024 at 1:01 AM Henning Hraban Ramm wrote: > > > > > > Am 06.08.24 um 21:26 schrieb Shiv Shankar Dayal: > > > > What is the general method of customizing chapter titles? For example, > > > > I would like something like the attachment. Is it achievable without > > > > using Metapost? > > > > > > If you can create it with a macro, you can use it for a title. > > > > > > This looks just like \framed and \rotate with \offset. > > > > > > Hraban > > > ___ > > > If your question is of interest to others as well, please add an entry to > > > the Wiki! > > > > > > maillist : ntg-context@ntg.nl / > > > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > > > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > > > archive : https://github.com/contextgarden/context > > > wiki : https://wiki.contextgarden.net > > > ___ > > > > > > > > -- > > Respect, > > Shiv Shankar Dayal > > > > -- > Respect, > Shiv Shankar Dayal -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Steps to become a ConTeXt developer
Hi, I am not sure if this is the best place to ask this question but here it goes. Suppose a C programmer wants to become a core ConTeXt developer then what steps one should follow. Assume that the programmer knows only the basics of LaTeX and never wrote macros etc using TeX or ConTeXt. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Help with Metapopst code
Hi, Consider following code: vardef polygon_with_side(expr n, s) = save a, b, r; numeric a, b, r; a * n = 360; a + 2b = 180; r = s * sind(b) / sind(a); for i = 0 upto n-1: (0, r) rotated (a * i) -- endfor cycle enddef; beginfig(1); path p; p = polygon_with_side(21, 20); draw p; endfig; bye; It draws a polygon with 21 sides with radius 20. I understand all of it except the for loop. What is (0, r) rotated (a *i) doing? -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Steps to become a ConTeXt developer
On Wed, Aug 28, 2024 at 8:17 AM Jethro Djan wrote: > > Hi, > > Not sure what you mean by a core ConTeXt developer. I think, as with > anything, you get better at it by using it extensively. I would focus on a > use case of interest and take advantage of ConTeXt’s unmatched extensibility > to automate much of it as possible. Then you ask for help when you get stuck. > > If you want to contribute to ConTeXt, maybe start by having a look at the > source and try to understand what’s going on (should be accessible to you > since you are a C developer). If you identify a bug, or want to propose a > feature, I am sure the community will support you however it can. > > Jethro I want to contribute to ConTeXt. I think that the steps for me should be: 1. Learn TeX 2. Learn LuaMetaTeX and then I can approach the C code. It won't make any sense if I just start reading the LuaMetaTeX code. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Help with Metapopst code
I think it works like (0, r) rotated (a) -- (0, r) rotated (a * 2) -- ... (0, r) rotated (a*20) -- cycle Is my understanding correct? Also, how can I label these vertices in a for loop? On Wed, Aug 28, 2024 at 2:25 PM Shiv Shankar Dayal wrote: > > Hi, > > Consider following code: > > vardef polygon_with_side(expr n, s) = > save a, b, r; numeric a, b, r; > a * n = 360; a + 2b = 180; r = s * sind(b) / sind(a); > for i = 0 upto n-1: (0, r) rotated (a * i) -- endfor cycle > enddef; > > beginfig(1); > path p; p = polygon_with_side(21, 20); > draw p; > endfig; > bye; > > It draws a polygon with 21 sides with radius 20. I understand all of > it except the for loop. > > What is (0, r) rotated (a *i) doing? > > -- > Respect, > Shiv Shankar Dayal -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Steps to become a ConTeXt developer
> Development of LuaMetaTeX (the engine) is mostly finished. We now > entered the stage where we conduct experiment with the more difficult > aspects (often unsolvable due to constraints). For that one needs to be > quite a bit experienced in tex and the way context approaches things. > > As an example, project like updating math took many man-years and > intense testing, discussion and experimenting (so also quite some long > term commitment). In a similar fashion (and related) we now are playing > with the par and pagebuilder where user input and testing is required. > Things like that get discussed at meetings and personal cummunication. > > The source code is under rather stict dev regime. We don't want to break > compatibility, all has to fit into the user interface, performance might > not be impacted significantly. We don't have an official dev team but > everone knows what the de-facto team is (last week those that had time > and were within reasonable traveling distance met at the context > meeting) and it's also a kind of friends and fun thing where everyone > brings in competence and inspiration. At such meetings we also set the > objectives for the next year. > > That said, the usual way to come up with something that a user needs is > to use a mix of lua, tex and metapost and wrap that in a module. That > way the core is not crippled. Also, no all has to go into the engine but > is done in Lua. > > Hans So I guess I need to learn TeX, Metapost and Lua. I know a bit of these but will go a bit deeper. Once I have learned these I will try to help by updating the Wiki documentation. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Steps to become a ConTeXt developer
> You have been following this mailing list for a very very long time > already, so you should be to some extent familiar with ConTeXt and > what you would like to achieve. Be more specific. > > Mojca I have two specific interests. I want to make asymptote work with ConTeXt but I can live with including generated images and use PDFs. The second interest is in Aditya Mahajan's syntax highlighting module. It is very nice but it invokes VI making the entire thing slow. I understand the advantage of using VI is that we do not have to implement anything when a new language comes. VI will have syntax highlighting and it will be automatically done for us. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Help with Metapopst code
> I don't know where you found the code, but the answer to "What is (0, > r) rotated (a *i) doing?" is that it takes the point (0,r) and rotates > it a*i degrees. I do not understand the concept of rotating a point. It is rotated with respect to what reference? > > For your labeling problem, see the last example of section 2.9 of > > https://www.pragma-ade.com/general/manuals/metafun-p.pdf > Thanks, I am reading that. > /Mikael > > PS Please do not cross post here and on stackexchange (at least not > without telling). > I will keep this in mind. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] for loop not working in metapost
Hi, I have plotted a log function and I want to draw an xy axis grid. Below is the code \starttext \startMPcode draw function(1,"x", "log(x)", .1, 10, .01) scaled 1cm; for i = 0 upto 10: draw (i*cm, -5cm) -- (i*cm, 5cm) dashed; endfor; for i = -5 upto 5: draw (0, i*cm) -- (10cm, i*cm) dashed; endfor; \stopMPcode \stoptext My first for loop draws lines but the second gives me an error. Please help. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: for loop not working in metapost
> try "dashed evenly" instead of just "dashed". > Thanks. It works nicely. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] \m vs $ for math mode
Hi all, I had been using $ for math mode. Then I read the new manual that \m is better for math mode. Can you please give some examples to see this in action? BTW, I have started using \m but changing all existing formulas is very tedious. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Same font for metafun as document
Suppose I use dejavu fonts for the main document then how can I have metafun use the same fonts for labelling. All the metafun code is inline. -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Same font for metafun as document
Yes, you are correct. I got confused with the font shapes and did not look close enough. Thanks a bunch. On Tue, Sep 17, 2024 at 11:45 AM Henning Hraban Ramm wrote: > > Am 17.09.24 um 08:05 schrieb Shiv Shankar Dayal: > > Suppose I use dejavu fonts for the main document then how can I have > > metafun use the same fonts for labelling. All the metafun code is > > inline. > > MetaFun usually uses the main font. If it doesn’t, check if you set it > up before you create your graphics. > > If there’s a problem, make a minimal example (MWE). > > Hraban > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > _______ -- Respect, Shiv Shankar Dayal ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Need help
Hi, Mu current chapter setup is as below: \def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=.5em,frame=off] \tbox{\framed[width=3cm,align=left]{#1}}% \tbox{\framed[width=4cm,align=right,leftframe=on]{#2}}% \egroup} \setuphead [chapter] [color=green1, textstyle=, align=normal, continue=no, page=right, style=\tfc, before={\blank[2*big]}, after={\blank[2*big]}, command=\HeadTitle] I want a local TOC after each chapter title. If I manually put \placelist[section][criterium=chapter] immediately after \chapter command then it does not work. Please help. -- Best regards, Shiv Shankar Dayal ___ 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] syntax highlighting problem with vim module
Hi, If I have a product name xyz and I have following things set up. \usemodule[vim] \setuptyping[option=color] \definevimtyping [C] [syntax=c] then I have following .. \startC #include using namespace std; \stopC . I get the error : I can't find file xyz-vimsyntax.tmp-vimsyntax.tmp" temmfstart bin:vim starts vim. vim is in the path. I am using Windows Vista with Texlive 2008. I would also like to know the syntax for C++. -- Best regards, Shiv Shankar Dayal ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
Hi, I tried on both windows as well as on linux but I fail with the new module as well. The error being the same. I can't find file `xyz-vimsyntax.tmp-vimsyntax.tmp'. One thing I noticed that there is t-vim.tpm file. Where to put it? I have installed texlive 2008 in C\texlive on Windows and /usr/local/texlive/ on Linux. -- Best regards, Shiv Shankar Dayal ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
Hi, I am running MarkIV and "luatools t-vim.tex" shows me the path of t-vim.tex. The version does say version=2008.07.15. I tried to execute the same command which t-vim.tex executes for vim but it says that command line is not correct. I switched on the logging and then I read the log and it says tabstop=8 is a new file. I doubt that something may be wrong with the command line for vim. -- Best regards, Shiv Shankar Dayal ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
Hi, I updated context and grepped mtxrun for noquotes and the output is same as yours. I have a query. Line 270 of t-vim says \runvimsyntax{#2} Line275: \input #2-vimsyntax.tmp\relax where #2 is product_name-vimsyntax.tmp. This means that if the product name is xyz then \runvimsyntax{#2} which is basically a run of vim over #2 and it generates the #2-vimsyntax.tmp. -- Best regards, Shiv Shankar Dayal ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
Hi, Finally some success. I get product-name-vimsyntax.tmp when I run context. It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp. I kill the compilation and run the command for vim manually which generates product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I get pretty printing. I am somewhat happy but I do not know why this is happening. -- Best regards, Shiv Shankar Dayal ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] syntax highlighting problem with vim module
>> Finally some success. I get product-name-vimsyntax.tmp when I run context. >> It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp. >> >> I kill the compilation and run the command for vim manually which generates >> product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I >> get pretty printing. I am somewhat happy but I do not know why this is >> happening. >Do you have write18 enabled? see http://wiki.contextgarden.net/write18 >Aditya Yes. write18 is enabled. -- Best regards, Shiv Shankar Dayal ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] underscore in index entry
Hi, I tried to put _ in index entry and am unable to do it. I tried following 1. \index{_shiv} 2. \index{\type{_shiv}} 3. \index{\textunderscore{} shiv} Please help. -- Best regards, Shiv Shankar Dayal ___ 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] context vs texinfo
Hi, I was using context and I had to wait for 16 seconds for one run approximately. I switched to texinfo and it barely takes 2 seconds. Can you please explain the diffrence? I know context is complex but still? -- Best regards, Shiv Shankar Dayal ___ 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] compiling cont-eni
Hi, I have sources of context cont-eni.pdf. When I try to compile them I get lots of errors. I am using Mark IV. However, I am successfully able to compile Metafun manual using texexec. Any clues? -- Best regards, Shiv Shankar Dayal ___ 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] compiling cont-eni
>> Hi, >> >> I have sources of context cont-eni.pdf. When I try to compile them I >> get lots of errors. I am using Mark IV. However, I am successfully >> able to compile Metafun manual using texexec. Any clues? >> > #markii > $>texexec test.tex > > #markiv > $>context test.tex > > > Maybe you are able to compile cont-eni with markii ie, something like > $>texexec cont-eni.tex > This is the error I get with MarkII. ! Undefined control sequence. *\v!headertext \cleanuplabel ...lettercolon \xdef \cleanlabel {#1 }\endgroup \docheckformode #1#2#3->\cleanuplabel {#3} \protect \checkedmodefalse \rawpro... ...med {\doifmodeelse {*\v!headertext } {\doifmodeelse {chapterpa... \executeamboxcommands ... {#1}{#4}\ignorespaces #2 \unskip \getvalue {\??am #... \@@amvbox ...}{#4}\c!before \c!inbetween \c!after }\setbox \scratchbox \vbox... ... l.7 \titelbladen ? ! Undefined control sequence. \plaatslijst [\v!chapter ][\c!criterium =\v!all ] \secondoftwoarguments #1#2->#2 ...\v!chapter ][\c!criterium =\v!all ]} } \vfill \framed {\hbox to... \executeamboxcommands ... {#1}{#4}\ignorespaces #2 \unskip \getvalue {\??am #... \@@amvbox ...}{#4}\c!before \c!inbetween \c!after }\setbox \scratchbox \vbox... ...ght\c!left }\interactionmenu [right] \getvalue {\??am right\c!r... ... l.7 \titelbladen Best regards, Shiv Shankar Dayal ___ 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] compiling cont-eni
>>> Hi, >>> >>> I have sources of context cont-eni.pdf. When I try to compile them I >>> get lots of errors. I am using Mark IV. However, I am successfully >>> able to compile Metafun manual using texexec. Any clues? >>> >> #markii >> $>texexec test.tex >> >> #markiv >> $>context test.tex >> >> >> Maybe you are able to compile cont-eni with markii ie, something like >> $>texexec cont-eni.tex >> > > This is the error I get with MarkII. > > ! Undefined control sequence. > *\v!headertext > > \cleanuplabel ...lettercolon \xdef \cleanlabel {#1 > }\endgroup > \docheckformode #1#2#3->\cleanuplabel {#3} > \protect \checkedmodefalse \rawpro... > ...med {\doifmodeelse {*\v!headertext } > {\doifmodeelse {chapterpa... > > \executeamboxcommands ... {#1}{#4}\ignorespaces #2 > \unskip \getvalue {\??am #... > > \@@amvbox ...}{#4}\c!before \c!inbetween \c!after > }\setbox \scratchbox \vbox... > ... > l.7 \titelbladen > > ? > ! Undefined control sequence. > \plaatslijst > [\v!chapter ][\c!criterium =\v!all ] > \secondoftwoarguments #1#2->#2 > > ...\v!chapter ][\c!criterium =\v!all ]} > } \vfill \framed {\hbox to... > > \executeamboxcommands ... {#1}{#4}\ignorespaces #2 > \unskip \getvalue {\??am #... > > \@@amvbox ...}{#4}\c!before \c!inbetween \c!after > }\setbox \scratchbox \vbox... > ...ght\c!left }\interactionmenu [right] > \getvalue {\??am right\c!r... > ... > l.7 \titelbladen > I got another interesting point. Adobe Reader reports that the application which generated original cont-eni.pdf is TeX. But for my compiled cont-eni.pdf it is ConTeXt - 2009.10.2 13:14. Why it is different? -- Best regards, Shiv Shankar Dayal ___ 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] compiling cont-eni
>> I got another interesting point. Adobe Reader reports that the >> application which generated original cont-eni.pdf is TeX. But for my >> compiled cont-eni.pdf it is ConTeXt - 2009.10.2 13:14. Why it is >> different? >> > what about > $> pdfinfo cont-eni.pdf > ? For the original file it says "ConTeXt/www.pragma-ade.com/cont-en.tex" as creator. I wonder how is that possible. :) Best regards, Shiv Shankar Dayal ___ 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] compiling cont-eni
Hi, Thanks for being so patient and helping me. But we should not get diverted from the original problem. What do you think is the reason for that error? Also, I am getting tex size exceeded[parameter stack size=6000] with MarkIV. In mailing list there is a thread which mentions about tex.ch but I cant find it. I have installed using rsync. -- Best regards, Shiv Shankar Dayal ___ 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] compiling cont-eni
I do not remember exactly when I got the source but I remember it was through some link of wiki.contextgarden.net. If you recall Aditya we had a discussion regarding vim syntax highlighting. It is of that time. Also, I have a fresh setup of context and I found that you t-vim.tex has a line "source kpse:2context.vim" which I had to modify to "source kpsewhich:2context.vim". >> Hi, >> >> I have sources of context cont-eni.pdf. When I try to compile them I >> get lots of errors. I am using Mark IV. However, I am successfully >> able to compile Metafun manual using texexec. Any clues? > > cont-eni was written in 2001. It will not compile with MKIV. There has been > many changes in the internals since 2001, so it is not surprising that it > does not compile even with MKII. Usually, such errors can be corrected with > a few changes. Where did you get the source files that you are testing on? > > Aditya > _______ Best regards, Shiv Shankar Dayal ___ 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] How to learn context?
Hi, I am a C++ programmer by profession. Typesetting is my hobby. I used to use LaTeX and Groff with ms macro package. Then I found ConTeXt and I find pdfs created mostly by Hans Hagen awesome. How to learn ConTeXt so that I can create documents of similar complexity. As a programmer I find most of the information with google when I face problem with LaTeX. But for ConTeXt I find very little information. All I know is wiki.contextgarden.net and manuals written by Hans. -- Best regards, Shiv Shankar Dayal ___ 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] installing metauml in context
Hi, I am running ConTeXt mark IV. I need to use metauml for my work. However, I could not get it installed. Please help. The install file which comes with it does not work for context. -- Best regards, Shiv Shankar Dayal ___ 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] installing metauml in context
Hi, >> I am running ConTeXt mark IV. I need to use metauml for my work. >> However, I could not get it installed. Please help. The install file >> which comes with it does not work for context. > > more info needed .. test file and so > > Hans Sorry about this. Following is from a file for which I took the code from mailing list itself. \chapter{Diameter Finite State Machine} The state machine of the diameter base protocol implementation will observer following state machine. \startMPinclusions input metauml; \stopMPinclusions \startuseMPgraphic{xx} save A; save B; Class.A("Point") ("+x: int", "+y: int") (); Class.B("Circle") ("radius: int") ("+getRadius(): int", "+setRadius(r: int):void"); topToBottom(45)(A, B); drawObjects(A, B); clink(aggregationUni)(A, B); \stopuseMPgraphic \placefigure[here][fig:xx]{xx}{\useMPgraphic{xx}} This is included in starttext block. For verbosity I am also giving you some errors. Isolated expression. ( <*> save A; save B; Class.A( "Point") ("+x: int", "+y: int") (); Class.B("Ci... ! Extra tokens will be flushed. ( <*> save A; save B; Class.A( "Point") ("+x: int", "+y: int") (); Class.B("Ci... >> Class.B ! Isolated expression. Best regards, Shiv Shankar Dayal ___ 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] installing metauml in context
Hi, >>> I am running ConTeXt mark IV. I need to use metauml for my work. >>> However, I could not get it installed. Please help. The install file >>> which comes with it does not work for context. >> >> more info needed .. test file and so >> >> Hans > > Sorry about this. Following is from a file for which I took the code from > mailing list itself. Sorry to bother you people. It is a pain to waste time like this. Since metaobj works with context I will extend and use it to draw UML diagrams. I just thought that since it is mentioned as a package at contextgarden I was hoping that it will work out of the box. -- Best regards, Shiv Shankar Dayal ___ 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] installing metauml in context
Hi all, Thanks a lot for this help. I tried again with modifications and it is working with wrong alignment. I am tried using simplefonts like \usemodule[simplefonts,vim,mathml] \setmainfont[LucidaStd] \setmonofont[CourierNew] If I add the above code then it overrides Hanss' suggestion but still the alignment is wrong. I am going to try more fonts to get the alignment right. > \startMPinclusions > string metauml_defaultFont ; metauml_defaultFont := > "\truefontname{Serif}" ; > string metauml_defaultFontOblique ; metauml_defaultFontOblique := > "\truefontname{SerifItalic}" ; > string metauml_defaultFontBold ; metauml_defaultFontBold := > "\truefontname{SerifBold}" ; > string metauml_defaultFontBoldOblique ; metauml_defaultFontBoldOblique := > "\truefontname{SerifBoldItalic}" ; > > input metauml; > \stopMPinclusions > > At least prevents the error but alignment is weird. Some pseudo typesetting > is going on and the quality is suboptimal then (after all mp just pastes > glyphs then). Take this: > > Class.A ("Point") ("+x: int", "+y: int") (); > > It's probably no big deal for the author to support pictures instead of > strings > > Class.A ("Point") (btex +x: int etex, "+y: int") (); > > Class.A ("Point") (textext("+x: int"), "+y: int") (); > > It's probabaly already possible somehow but i have no time to look into the > code in detail now. > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > - > -- Best regards, Shiv Shankar Dayal ___ 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] metaobj problem
Hi, I was trying to run following code from its manual i.e. metaobj's manual. newCircle.a(btex A etex); newCircle.b(btex B etex); newCircle.c(btex C etex); newCircle.d(btex D etex); newCircle.e(btex E etex); verbatimtex \small etex; newMatrix.mat(3,3)(nb,a,nb,b,e,c,nb,d,nb) "hsep(2cm)", "vsep(2cm)"; mcline.mat(2,2,2,3) "name(a)"; ObjLabel.mat(btex a etex) "labpathname(a)","labpos(0.75)", "labdir(top)"; mcline.mat(2,2,2,1) "name(b)"; ObjLabel.mat(btex b etex) "labpathname(b)","labdir(bot)"; mcline.mat(3,2,2,1) "name(c)"; ObjLabel.mat(btex c etex) "labpathname(c)","labdir(llft)"; mcarc.mat(3,2,1,2) "arcangleA(-40)","arcangleB(-40)", "border(3pt)", "name(d)"; ObjLabel.mat(btex d etex) "labpathname(d)","labdir(lrt)", "labpos(0.3)"; ObjLabel.mat(btex e etex) "labpathname(d)","labdir(llft)", "labpos(0.7)"; mcarc.mat(1,2,2,1) "arcangleA(12)","arcangleB(12)", "name(f)"; ObjLabel.mat(btex f etex) "labpathname(f)","labdir(lrt)"; mcarc.mat(2,1,1,2) "arcangleA(12)","arcangleB(12)", "name(g)"; ObjLabel.mat(btex g etex) "labpathname(g)","labdir(ulft)"; mat.c=origin; drawObj(mat); The problem is that the computer kind of stops processing. I mean it is taking too long. My pool_size is 100MB. I have increased it. -- Best regards, Shiv Shankar Dayal ___ 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] POV-Ray
Hi, I have needs of graphics which is very heavy and I am using metapost, metaobj and metauml. However, as you may know the problems which I have reported I think that it would be better if I use POV-Ray for images. Sure the file size is going to be blown up by a margin but I think metapost can not beat POV-Ray in terms of power. Please advice. -- Best regards, Shiv Shankar Dayal ___ 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] Lua and metapost
Hi all, Since ConTeXt has LuaTeX and it contains Lua interpreter so I wonder if it is possible to write Lua code which can generate Metapost code for graphics. MetaLua can also help here. However, I do not know how to develop a Lua library which can be integrated with ConTeXt but then again I have not looked in this matter. As you people may be knowing Prof. John Hobby has written a Haskell frontend for Metapost which generates Metapost code. Having a Lua version of same will help a lot. My only concern is using MetaLua with ConTeXt. -- Best regards, Shiv Shankar Dayal ___ 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] Lua and metapost
Hi, Please discard previous mail as I did not know about MPlib. On Fri, May 21, 2010 at 12:48 AM, Shiv Shankar Dayal < shivshankar.da...@gmail.com> wrote: > Hi all, > > Since ConTeXt has LuaTeX and it contains Lua interpreter so I wonder if it > is possible to write Lua code which can generate Metapost code for graphics. > MetaLua can also help here. However, I do not know > how to develop a Lua library which can be integrated with ConTeXt but then > again I have not looked in this matter. > > As you people may be knowing Prof. John Hobby has written a Haskell > frontend for Metapost which generates Metapost code. > > Having a Lua version of same will help a lot. My only concern is using > MetaLua with ConTeXt. > > -- > Best regards, > Shiv Shankar Dayal > -- Best regards, Shiv Shankar Dayal ___ 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 ___