ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jeong Dal <haksan@me.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: closesymbol on same line as displayed formula
Date: Wed, 29 Aug 2018 00:58:08 +0900	[thread overview]
Message-ID: <CE9F5B86-538E-4E4C-9669-E45336226718@me.com> (raw)
In-Reply-To: <mailman.2600.1535395627.2042.ntg-context@ntg.nl>


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

Dear Aditya,

Thank you for the reply.

>> \startproof
>> \startitemize[n]
>> \item first line.
>> \item second line
> 
> Add: \placeclosesymbol here
> 
>> \stopitemize
>> \stopproof
>> 
>> \stoptext
> 

It works in many cases that item content ends with words. But it is not working if the item contents end with \stopformula. If I put \placeclosesymbol before \stopformula, then it is shown just after the last word.
Anyway, it works in most cases.

Thank you again.

Best regards,

Dalyoung

%%%%%
\defineenumeration[proof][text=Proof.]

\setupenumeration[proof]
	[number=no,
	closesymbol=\mathematics{\square},
	closecommand=\ifmmode\eqno\else\wordright\fi]


\starttext
\startproof
This is a simple proof.
\startformula
1+1=2.
\stopformula
\placeclosesymbol
\stopproof

\startproof
This is another simple proof that ends with a formula
\startformula
1+1=2.
\placeclosesymbol
\stopformula
\stopproof

\startproof
\startitemize[n]
\item first line.
\item Here is an example.
        \startformula \cosh x + \sinh x = e^x,~~\cosh x - \sinh x = e^{-x}	\stopformula
The next formula is following: 
        \startformula\startalign
\NC\sinh (x + y) \NC= \frac{e^{x+y} - e^{-(x+y)}}{2} \NR
\NC 		\NC = \frac{e^x e^y - e^{-x}e^{-y}}{2}	\NR%$
\NC 	\NC = \frac{(\cosh x + \sinh x)(\cosh y + \sinh y) - (\cosh x - \sinh x)(\cosh y - \sinh y)}{2} \NR
\NC 	\NC = \sinh x \cosh y + \cosh x \sinh y         \NR
        \stopalign \stopformula
        \placeclosesymbol        
\stopitemize
\stopproof

\stoptext
%%%%%%%

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

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

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

       reply	other threads:[~2018-08-28 15:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2600.1535395627.2042.ntg-context@ntg.nl>
2018-08-28 15:58 ` Jeong Dal [this message]
     [not found] <mailman.500.1490091956.2050.ntg-context@ntg.nl>
2018-08-26 23:25 ` Jeong Dal
2018-08-27 14:41   ` Aditya Mahajan
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=CE9F5B86-538E-4E4C-9669-E45336226718@me.com \
    --to=haksan@me.com \
    --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).