From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: closesymbol on same line as displayed formula
Date: Mon, 27 Aug 2018 10:41:04 -0400 (EDT) [thread overview]
Message-ID: <nycvar.YAK.7.76.44.1808271038230.13266@ervasbepr.pvz.zptvyy.pn> (raw)
In-Reply-To: <E2DC9438-F585-4956-A76A-07BB5F0EF1C6@me.com>
On Mon, 27 Aug 2018, Jeong Dal wrote:
>
> Hi,
>
> The same thing happens after the itemization as in the following MWE.
>
> \defineenumeration[proof][text=Proof.]
>
> \setupenumeration[proof]
> [number=no,
> closesymbol=\mathematics{\square},
> closecommand=\ifmmode\eqno\else\wordright\fi]
>
>
> \starttext
> \startproof
> This is a simple proof.
> \stopproof
>
> \startproof
> This is another simple proof that ends with a formula
> \startformula
> 1+1=2.
> \stopformula
> \stopproof
> \startproof
> \startitemize[n]
> \item first line.
> \item second line
Add: \placeclosesymbol here
> \stopitemize
> \stopproof
>
> \stoptext
For display equations, there is not easy solution. (What should happen if
there is an equation number; what should happen if the display equation
overflows hsize, etc.). The latex package `ntheorem` implements a two pass
solution (measures where the equation number box gets placed, and then add
the close symbol below it). I am not sure how easy it is to implement such
an approach in ConTeXt.
Aditya
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2018-08-27 14:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.500.1490091956.2050.ntg-context@ntg.nl>
2018-08-26 23:25 ` Jeong Dal
2018-08-27 14:41 ` Aditya Mahajan [this message]
[not found] <mailman.2600.1535395627.2042.ntg-context@ntg.nl>
2018-08-28 15:58 ` Jeong Dal
2017-03-14 18:23 Mikael P. Sundqvist
2017-03-20 13:59 ` Mikael P. Sundqvist
2017-03-20 21:20 ` Otared Kavian
2017-03-20 22:46 ` Aditya Mahajan
2017-03-21 6:30 ` Otared Kavian
2017-03-21 6:51 ` Mikael P. Sundqvist
2017-03-21 10:25 ` Mohammad Hossein Bateni
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=nycvar.YAK.7.76.44.1808271038230.13266@ervasbepr.pvz.zptvyy.pn \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/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).