ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@xs4all.nl>,
	Jack Hill <jackhill3103@gmail.com>,
	Taco Hoekwater <taco@bittext.nl>
Subject: Re: Nested $$ in inline math
Date: Mon, 13 Dec 2021 17:48:26 +0100	[thread overview]
Message-ID: <f7b7dbaf-4004-90b9-6492-fdb70f1032a1@xs4all.nl> (raw)
In-Reply-To: <9421B6E2-879C-4195-827C-3CDB8D315FD5@bittext.nl>

On 12/13/2021 4:35 PM, Taco Hoekwater via ntg-context wrote:
> 
> 
>> On 13 Dec 2021, at 16:15, Jack Hill via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> Dear list,
>>
>> I was playing around and found that nesting $$s inside of \m blocks typesets the code as text.
>> I can't find anything about this on the wiki or in the math-mkiv manual, so I'm asking whether this is supported behaviour or just a bug?
> 
> I would say that this is unsupported expected behaviour ;)
> 
> It is better not to use $ at all (except when using it as a dollar sign when \asciimode is active).
> 
>>
>> \starttext
>> % All the same
>> \mathematics{math $text here$ math} \\
>> \math{math $text here$ math} \\
>> \m{math $text here$ math} \\
>> \m{math \text{text here} math} \\
> 
> A bit over-precise maybe, but while the first three are the same, the last line is
> actually very subtly different.
> 
> The first three lines are essentially this in TeX82 :
> 
>    $math $text here$ math\hfill\break
> 
> while that last line is
> 
>    $math \hbox{text here} math\hfill\break
which indeed makes

\starttext
     \mathematics{$text$}
\stoptext

a puzzle

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2021-12-13 16:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-13 15:15 Jack Hill via ntg-context
2021-12-13 15:35 ` Taco Hoekwater via ntg-context
2021-12-13 16:48   ` Hans Hagen via ntg-context [this message]
2021-12-13 17:57     ` Aditya Mahajan via ntg-context
2021-12-13 19:07       ` Hans Hagen via ntg-context

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=f7b7dbaf-4004-90b9-6492-fdb70f1032a1@xs4all.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@xs4all.nl \
    --cc=jackhill3103@gmail.com \
    --cc=taco@bittext.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).