Math & ScienceNewbie Question

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
basem2502
Posts: 2
Joined: Wed Jul 16, 2014 1:29 pm

Newbie Question

Post by basem2502 »

Hi,
I'm new Latex and considering to use Latex for a project I have.

Can anyone let me know the Latex code to show the formula attached? (it's the an example for teaching division)

Thanks
Attachments
test.png
test.png (5.8 KiB) Viewed 3978 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Newbie Question

Post by Johannes_B »

You'll be surprised:

Code: Select all

\documentclass{article}
\input{longdiv}
\begin{document}
\longdiv{715}{55}
\end{document}
Hint: Click on »Open in writelatex« just above the code to see the output.

Please also have a look at the documentations of packages xlop, polynom and physics.

There is also a cool MathML feature for long division, you should check it out.

If you want to do whole excercise sheets, have a look at exsheets.

Code: Select all

\documentclass{article}
\usepackage{exsheets}
\SetupExSheets{solution/print=true}%Only if you want to print
%solutions
\input{longdiv}
\begin{document}
\begin{question}
	$715 \div 55 = \frac{715}{55}$\par
\[715 \div 55 = \frac{715}{55}\]
\end{question}
\begin{solution}
\longdiv{715}{55}
\end{solution}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
basem2502
Posts: 2
Joined: Wed Jul 16, 2014 1:29 pm

Re: Newbie Question

Post by basem2502 »

Johannes,

Thank you!!!!!! You're a life saver :D
Post Reply