1

I need to make equations like this with 'check'. Here is my example with strange spacing. enter image description here The long division is from PageMaker. I am making excel tables then I copy them in Pagemaker but its very hard to do.

Simeon Simeonov
  • 819
  • 5
  • 11
  • 2
    Can you please provide code of what you've tried so far? – Skillmon Nov 15 '18 at 13:46
  • The long division is from PageMaker. I am making excel tables then I copy them in Pagemaker but its very hard to do. – Simeon Simeonov Nov 15 '18 at 14:17
  • So you didn't create those with TeX? Please note that this page is not a do-it-for-me service. Questions about more specific things tend to get answered quicker and better. There are packages tackling that. One example could be longdivision, with it you can do \longdivision{402}{3}, but I personally dislike the output of that package. Another example would be polynom which adds \longdiv. – Skillmon Nov 15 '18 at 15:23
  • I have used xlop, longdiv, but it's just other kind of long division. – Simeon Simeonov Nov 15 '18 at 15:28
  • [link] (https://imgur.com/a/oMBKXnQ) I want it like that, those packages does offer different things. – Simeon Simeonov Nov 15 '18 at 15:31
  • If there's more to so, saying so is good. If Segletes has solved this one for you, a fitting thing to do is click the "check mark" for his answer. – Saphar Koshet Nov 15 '18 at 16:13

1 Answers1

2

Here is a way, if you prefer to retain column gaps:

\documentclass{article}
\usepackage[TABcline]{tabstackengine}
\TABstackMath
\renewcommand\stackalignment{l}
\newcommand\lminus{\llap{$-$}}
{\catcode`-=\active
\gdef -{\lminus}}
\newcommand\minusactive{\phantom{-}\catcode`-=\active}
\setstacktabbedgap{3pt}
\begin{document}
$
\minusactive
\tabbedShortunderstack[r]{
 &3&7&0&5&:5=741\\
-&3&5& &&\\
\TABcline{2,3}
 & &2&0&&\\
 &-&2&0&&\\
\TABcline{3,4} 
 & & & &5&\\
 & & &-&5&\\
\TABcline{5}
 & & & &0&
}
$
\end{document}

enter image description here

Naturally, the method works inside a tabular:

\documentclass{article}
\usepackage[TABcline]{tabstackengine}
\TABstackMath
\renewcommand\stackalignment{l}
\newcommand\lminus{\llap{$-$}}
{\catcode`-=\active
\gdef -{\lminus}}
\newcommand\minusactive{\phantom{-}\catcode`-=\active}
\setstacktabbedgap{3pt}
\begin{document}
\begin{tabular}{ll@{\hspace{10ex}}c}
1)&
$
\minusactive
\tabbedShortunderstack[r]{
 &3&7&0&5&:5=741\\
-&3&5& &&\\
\TABcline{2,3}
 & &2&0&&\\
 &-&2&0&&\\
\TABcline{3,4} 
 & & & &5&\\
 & & &-&5&\\
\TABcline{5}
 & & & &0&
}
$
&
$741\cdot5 = 3705$\\
\end{tabular}
\end{document}

enter image description here