# Column Wise Operators Usage [closed]

I have been looking for a latex feature which can show operations in a columnwise fashion. For example:-

If I would want to show $$19 * 5$$ to a $$1$$st grader, I would love to show it like this :-

$$1 9$$

x $$5$$

__

$$9 5$$

Now obviously this isn't latexed and it looks ugly like this. I have searched for this feature in MathJax basic tutorial and quick reference, but I couldn't find it.

So is there a way to express this multiplication, or any operation in a column wise way?

I would appreciate if someone could tell me a way which also takes letters instead of numbers. I would be able to use them in cryptarithmetic puzzles.

• There is a tex.stackexchange Apr 9 at 11:40
• @GerryMyerson Could u send the link for the page? Apr 9 at 11:51
• tex.stackexchange.com Apr 9 at 12:06
• @GerryMyerson I meant do you have the question or the answer which discusses the feature I am looking for? Apr 9 at 12:11
• What comes to mind is the array environment in MathJax. Apr 9 at 12:13
• And I meant that there is a website where questions about TeX and LaTeX are not off-topic. Apr 9 at 12:40

It's a pain, but it can be done using the array environment. https://math.stackexchange.com/a/1087946/25554 has an example:
$$\require{enclose}\begin{array}{rlll} & \ \ \ \,0.1\\ 17&\enclose{longdiv}{3.000\ldots} \\ & \ \ 1.7 \\ \hline & \ \ 1\ 3 \end{array}$$
$$\begin{array}{rlll} & \ \ \ \,0.17\\ 17&\enclose{longdiv}{3.000\ldots} \\ & \ \ 1.7 \\ \hline & \ \ 1\ 30 \\ & \ \ 1\ 19 \\ \hline & \ \ \ \ \ 11 \end{array}$$
$$\begin{array}{rr} & 19 \\ \times &5 \\ \hline &95 \end{array}$$