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.

  • 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] (imgur.com/a/oMBKXnQ) I want it like that, those packages does offer different things. – Simeon Simeonov Nov 15 '18 at 15:31
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

  • That was fast. There seem, though, to be two columns of info. – Saphar Koshet Nov 15 '18 at 15:57
  • 1
    @SapharKoshet Not sure what you mean. I just was demonstrating how to build the division. There are various ways (using tabular for example) to array them in rows by columns format. – Steven B. Segletes Nov 15 '18 at 16:02
  • And, that you've done, and quickly. In the example given, there's the stack segment (on the left), and what appears to be additional answer-checking in a "right column." Didn't know whether you wanted also to include that or not. – Saphar Koshet Nov 15 '18 at 16:06
  • @SapharKoshet Please see revision to see how it can be done. – Steven B. Segletes Nov 15 '18 at 16:07
  • Yes. That's the "right column" info. It's possible the whole of the code you provided wasn't absorbed by the web page when the note came in. – Saphar Koshet Nov 15 '18 at 16:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.