ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] old style factorial symbol and theorems
@ 2023-12-27 12:01 Shiv Shankar Dayal
  2023-12-27 12:14 ` [NTG-context] " Wolfgang Schuster
  2023-12-27 17:10 ` lynx
  0 siblings, 2 replies; 11+ messages in thread
From: Shiv Shankar Dayal @ 2023-12-27 12:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 216 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 498 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-27 12:01 [NTG-context] old style factorial symbol and theorems Shiv Shankar Dayal
@ 2023-12-27 12:14 ` Wolfgang Schuster
  2023-12-27 12:19   ` Shiv Shankar Dayal
  2023-12-27 17:10 ` lynx
  1 sibling, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2023-12-27 12:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users, 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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-27 12:14 ` [NTG-context] " Wolfgang Schuster
@ 2023-12-27 12:19   ` Shiv Shankar Dayal
  2023-12-27 12:26     ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Shiv Shankar Dayal @ 2023-12-27 12:19 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1347 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2203 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-27 12:19   ` Shiv Shankar Dayal
@ 2023-12-27 12:26     ` Wolfgang Schuster
  2023-12-27 12:31       ` Shiv Shankar Dayal
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2023-12-27 12:26 UTC (permalink / raw)
  To: Shiv Shankar Dayal; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1127 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 2022 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-27 12:26     ` Wolfgang Schuster
@ 2023-12-27 12:31       ` Shiv Shankar Dayal
  2023-12-27 12:40         ` Wolfgang Schuster
  0 siblings, 1 reply; 11+ messages in thread
From: Shiv Shankar Dayal @ 2023-12-27 12:31 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 356 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 952 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-27 12:31       ` Shiv Shankar Dayal
@ 2023-12-27 12:40         ` Wolfgang Schuster
  2023-12-27 12:48           ` Shiv Shankar Dayal
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster @ 2023-12-27 12:40 UTC (permalink / raw)
  To: Shiv Shankar Dayal; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 366 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 935 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-27 12:40         ` Wolfgang Schuster
@ 2023-12-27 12:48           ` Shiv Shankar Dayal
  2023-12-27 13:02             ` Mikael Sundqvist
  2023-12-30  8:40             ` Shiv Shankar Dayal
  0 siblings, 2 replies; 11+ messages in thread
From: Shiv Shankar Dayal @ 2023-12-27 12:48 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 282 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 726 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-27 12:48           ` Shiv Shankar Dayal
@ 2023-12-27 13:02             ` Mikael Sundqvist
  2023-12-30  8:40             ` Shiv Shankar Dayal
  1 sibling, 0 replies; 11+ messages in thread
From: Mikael Sundqvist @ 2023-12-27 13:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1100 bytes --]

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 <shivshankar.dayal@gmail.com>
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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2453 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-27 12:01 [NTG-context] old style factorial symbol and theorems Shiv Shankar Dayal
  2023-12-27 12:14 ` [NTG-context] " Wolfgang Schuster
@ 2023-12-27 17:10 ` lynx
  1 sibling, 0 replies; 11+ messages in thread
From: lynx @ 2023-12-27 17:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 912 bytes --]

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
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 2006 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-27 12:48           ` Shiv Shankar Dayal
  2023-12-27 13:02             ` Mikael Sundqvist
@ 2023-12-30  8:40             ` Shiv Shankar Dayal
  2023-12-30 15:28               ` Wolfgang Schuster
  1 sibling, 1 reply; 11+ messages in thread
From: Shiv Shankar Dayal @ 2023-12-30  8:40 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 585 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1404 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [NTG-context] Re: old style factorial symbol and theorems
  2023-12-30  8:40             ` Shiv Shankar Dayal
@ 2023-12-30 15:28               ` Wolfgang Schuster
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2023-12-30 15:28 UTC (permalink / raw)
  To: Shiv Shankar Dayal; +Cc: mailing list for ConTeXt users

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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-12-30 15:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-27 12:01 [NTG-context] old style factorial symbol and theorems Shiv Shankar Dayal
2023-12-27 12:14 ` [NTG-context] " Wolfgang Schuster
2023-12-27 12:19   ` Shiv Shankar Dayal
2023-12-27 12:26     ` Wolfgang Schuster
2023-12-27 12:31       ` Shiv Shankar Dayal
2023-12-27 12:40         ` Wolfgang Schuster
2023-12-27 12:48           ` Shiv Shankar Dayal
2023-12-27 13:02             ` Mikael Sundqvist
2023-12-30  8:40             ` Shiv Shankar Dayal
2023-12-30 15:28               ` Wolfgang Schuster
2023-12-27 17:10 ` lynx

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).