JYL
November 14, 2025, 12:33am
1
How can I replicate this multiline math sentence? (It describes a Turing Machine). It has multiple lines, plain text and I want to align the numbered steps.
$N= "\"On input" x: \
1. "Compute" f(w). \
2. "Run" M "on input" f(w) "and output whatever" M "outputs."\"$
bluss
November 14, 2025, 8:06am
2
It can be done using & for alignment - and for alignment I’d default to a display equation (the $ ... $ kind of equation), but both kinds work.
$ N= “&"On input" x: \
& 1. "Compute" f(w). \
& 2. "Run" M "on input" f(w) "and output whatever" M "outputs."” $
and to fix the spacing of the : you can do this:
#let normal = math.class.with("normal")
// use `normal(:)` in the equation