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
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
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.lists@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
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
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
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
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
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
___________________________________________________________________________________
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.dayal@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
Shiv Shankar Dayal schrieb am 30.12.2023 um 09:40:
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?
Replace the \inmframed command with \mcframed. \define[1]\oldfact {\mcframed[frame=off,strut=no,leftframe=on,bottomframe=on]{#1}} Wolfgang
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 ___________________________________________________________________________________
participants (4)
-
lynx@polarcom.com
-
Mikael Sundqvist
-
Shiv Shankar Dayal
-
Wolfgang Schuster