Is there a nice way to do long division in Math?

Is there a pretty way to do long division in Math? I’m imagining something like

4 longdiv 324 81

As it is, I’m using the | in quotes (otherwise it turns into an or) and an overline for the dividend numbers (324 in this example). The result is kind of clunky, though.

Disagree that this question “not relevant or outdated”.

Not that I know of. The best I can come up with is:

stack { 4 # {} }
stack { ")" overline 324 #
alignr 81 }

… which displays as:

long division

As you say, “clunky.”