Code: Select all
\begin{align*}
\mathrm{ABBABA_{16}}&\\
+ \quad \quad \mathrm{981CD_{16}}&\\
\line(1,0){80}\\
\mathrm{B64C98_{16}}&
\end{align*}
Code: Select all
\begin{align*}
\mathrm{ABBABA_{16}}&\\
+ \quad \quad \mathrm{981CD_{16}}&\\
\line(1,0){80}\\
\mathrm{B64C98_{16}}&
\end{align*}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass[11pt]{article}
\usepackage{mathtools}
\begin{document}
\begin{alignat*}{2}
&&\text{ABBABA}_{16} \\
&+\quad& \text{981CD}_{16} \\[-2\jot] \cline{1-3}
&&\text{B64C98}_{16}
\end{alignat*}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis