French style long arithmetic operations

📅 February 08, 2026   |   👁️ Views: 65



    

\documentclass[12pt,a4paper]{article}
\usepackage[left=1cm,right=1cm,top=1cm,bottom=1cm]{geometry}
\usepackage{xlop} % french style long division
\newcommand\hole[1]{\texttt{\_}}
\usepackage{xcolor}

\begin{document}
\noindent
the addition : \opadd[voperation=bottom]{4825}{5307}
\hspace*{1.25cm}
the Substraction : \opadd[voperation=bottom]{-45,05}{78,4}
\hspace*{1.25cm}
the Substraction : \opsub[voperation=bottom]{145,05}{78,4}\\[0.5cm]
the multiplication:
\opmul[intermediarystyle=\hole,
  voperation=bottom,
  resultstyle=\hole,
  resultstyle.d=\color{white}
]{2.46}{35.7}%\\[0.5cm]
\hspace*{1.25cm}
the division:
\opidiv[displayintermediary=all, voperation=bottom]{1357}{13}%\\[0.5cm]
\hspace*{1.25cm}
\opdiv[displayintermediary=all, voperation=bottom, period=true, maxdivstep=3]{1357}{3}
\end{document}



    

Related Courses, Exams, and Exercises


if you find this content helpful, Please consider supporting me with a small donation
إن وجدت هذا المحتوى مفيدا، من فضلك إدعمني بمبلغ بسيط كتبرع

Buy me a coffee — إشتر لي قهوة

PayPal.me • عبر بايبال

Or bank transfer • أو حوالة بنكية

Titulaire : RADOUAN MOSAID
RIB : 230 090 6501953211022000 65
IBAN : MA64 2300 9065 0195 3211 0220 0065
BIC / SWIFT : CIHMMAMC