[NTG-context] How to implement word corrections
Hi, list! I'm writing a small module to print word corrections, e.g., things like "irregardless" > "regardless"or "alverja" > "arveja" ('pea' in Spanish) with overstrikes and underlines, but I want feedback to make a module in the ConTeXt fashion. I hope the PDF attached explains better what I mean. Just in case, I want to know if anyone else in the mailing list is acquainted with grammar and orthography quizzes/exercises/exams in ConTeXt. Merry Christmas and Happy New Year! Best regards, Jairo correction_draft.tex Description: Binary data correction_draft.pdf Description: Adobe PDF document ___ 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] Question about drawing flowchart using chart module
Dear all, I tried to draw a flow chart using the module[chart]. Following the examples, I draw one. The problem is that the size of the chart is not changed even though I changed the numbers dx,dy, width, height, and maxwidth in the \setupFLOWcharts Please tell me how to resize the chart. Thank you. Dalyoung %% \usemodule[chart] \starttext \startFLOWchart[bigger] \setupFLOWcharts [option=test, nx=3, ny=6, dx=\bodyfontsize, dy=\bodyfontsize, width=6cm,%.5\bodyfontsize, height=10cm,%.3\bodyfontsize, maxwidth=.5\textwidth ] \startFLOWcell \name{a} \location{2,1} \shape{loop} \text{start} \connection[bt]{b} \stopFLOWcell \startFLOWcell \name{b} \location{2,2} \shape{79} \text{input $a,b$} \connection[bt]{c} \stopFLOWcell \startFLOWcell \name{c} \location{2,3} \shape{decision} \text{$a-b > 0$} \connection[lt]{d} \comment[l]{Yes} \connection[rt]{g} \comment[r]{No} \stopFLOWcell \startFLOWcell \name{d} \location{1,5} \shape{76} \text{$a$ is bigger \\ than $b$} \connection[bt]{f} \stopFLOWcell \startFLOWcell \name{e} \location{2,5} \shape{76} \text{$b$ is bigger \\ than $a$} \connection[bt]{f} \stopFLOWcell \startFLOWcell \name{g} \location{3,4} \shape{decision} \text{$a - b < 0$} \connection[lt]{e}\comment[l]{Yes} \connection[bt]{h}\comment[b]{No} \stopFLOWcell \startFLOWcell \name{h} \location{3,5} \shape{76} \text{$a$ is equal \\ to $b$} \connection[bt]{f} \stopFLOWcell \startFLOWcell \name{f} \location{2,6} \shape{loop} \text{stop} \stopFLOWcell \stopFLOWchart \placefigure [here][fig:bigger] {Which is bigger?} {\tx\setupFLOWcharts\FLOWchart[bigger]} \stoptext___ 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
By "old style" factorial, do you mean the inside corner notation (shaped like an L )? If so, Why? On 2023-12-27 05:01, Shiv Shankar Dayal wrote: > 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 > __ 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
Hi! Not by computer, and I'm sure Hans (or Wolfgang) has already shown a way to do the old factorial with the actuarian mechanism when I'm back to the computer... /Mikael Den ons 27 dec. 2023 13:49Shiv Shankar Dayal skrev: > > > 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 > > ___ > ___ 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
Shiv Shankar Dayal schrieb am 27.12.2023 um 13:31: What do you expect here to pass as argument to the oldfact command? I will pass something like n, 5, 10 etc. 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 ___ 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
Shiv Shankar Dayal schrieb am 27.12.2023 um 13:19: 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)$);} } What do you expect here to pass as argument to the oldfact command? 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. This works here: \defineenumeration [proof] [closesymbol={\mathematics{\square}}] \starttext \startproof \samplefile{lorem} \stopproof \stoptext 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 ___
[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
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 ___ 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] 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 ___