1

First-time poster here and any help is incredibly appreciated. I started a new creative job and somehow got asked to write a LaTex code snippit that depicts the following division. I've tried everything I can and I'm totally stuck. It just makes zero sense to me. I understand I'm asking for your time, and I'm not sure if this is against the community rules but I'm willing to pay for the help if anyone can do this. And yes, I will be letting my boss know this isn't something to expect from me in the future. Thank you ahead of time!

enter image description here

4
  • 1
    Welcome to TeX.SE. Offering payment is not necessary here. Can you provide the pieces of code you have so far and post it here.
    – Roland
    Commented Oct 13, 2021 at 0:42
  • See this answer here. They are dealing your problem.
    – Roland
    Commented Oct 13, 2021 at 0:46
  • Hi Roland, thanks for replying. I don't have anything so far. This is a creative editorial job and I cannot overstate this enough - I don't know how to do this. I have nothing. I took a look at that link you posted and I'm not sure where I'd plug the numbers in?
    – Maggie
    Commented Oct 13, 2021 at 0:54
  • 1
    There is even the longdivision package on CTAN.
    – vi pa
    Commented Dec 9, 2021 at 17:25

1 Answer 1

1

You can use this adaption of the code from @Bernard answer here. So credits to him.

EDIT: Added the arrow

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{array, booktabs}
\parindent=0pt
\pagestyle{empty}
\usepackage{tikz}
\usetikzlibrary{positioning,matrix, arrows.meta}


\begin{document}

    \[
    \begin{array}{ rr@{} >{\color{red}}c@{}*{6}{c@{\mkern2mu}} }
        & 7 &  & . & 9 &  &  \\ \cmidrule[0.6pt](l{-0.385em}){2-8}\\[-16.9pt]
        32\;\rlap{\Large)} &252 &  & . & 8 &  &  &  \\
        & -224 &  & &\downarrow\\ \cmidrule(l{1ex}){2-5}
        & 28 &   & &8  \\
        & -28 &  &  &8  \\ \cmidrule(l{1ex}){2-5}
        & & &  & 0 &  \\
    \end{array}
    \]

\end{document}   

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .