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? Jack \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} \\ \stoptext
On 13 Dec 2021, at 16:15, Jack Hill via ntg-context
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 Best wishes, Taco — Taco Hoekwater E: taco@bittext.nl genderfluid (all pronouns)
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
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 -----------------------------------------------------------------
On 12/13/2021 6:57 PM, Aditya Mahajan via ntg-context wrote:
On Mon, 13 Dec 2021, Hans Hagen via ntg-context wrote:
which indeed makes
\starttext \mathematics{$text$} \stoptext
a puzzle
Isn't that effectively:
$\relax$text$\relax$
which prevents the $$ lookup. Indeed, you solved it.
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 -----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Jack Hill
-
Taco Hoekwater