From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: Shiv Shankar Dayal <shivshankar.dayal@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: old style factorial symbol and theorems
Date: Wed, 27 Dec 2023 13:26:55 +0100 [thread overview]
Message-ID: <50c2e4ce-0971-f362-db01-e17ffc425dde@gmail.com> (raw)
In-Reply-To: <CALJ_jGQ17gW+ZbdkoHkOMfoi0aOdY_KTixC6u5AhneurqjHX9Q@mail.gmail.com>
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2023-12-27 12:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-27 12:01 [NTG-context] " 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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50c2e4ce-0971-f362-db01-e17ffc425dde@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=shivshankar.dayal@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).