0

Due to my disability, I cannot write without the use of a computer. When working with numbers it is often helpful to write arithmetic problems in column format, e.g.

enter image description here

I have never been able to do this without assistance from an able-bodied person.

I recently began looking for a solution to this issue and found LaTeX. Is it possible to write a sum in column format in LaTeX, or is there some other more appropriate tool for this?

Note that I'm not interested in solving the sums with software, I just need to display them in a way which makes them easier for me to work with.

2

2 Answers 2

0

I use LaTeX regularly to write papers. It is a very powerful piece of software, but I'm not sure how useful it would be for your needs. Here is the minimum amount of code to write your example:

 \documentclass[]{article}   

 \begin{document}

 \begin{tabular}{r}
     5 \\ 
     + 12 \\ 
     \hline
     17
 \end{tabular}

 \end{document}

And the (cropped from A4/Letter) output:

alt text

There are some WYSIWYG editors for LaTeX such as LyX which might make it easier.

1
  • Thanks for your answer. That looks like exactly what I was after :) Aug 27, 2010 at 4:27
1

Another option is to use the multirow package:

\documentclass[]{article} 
\usepackage{multirow}


\begin{document}

\begin{tabular}{rr}
\multirow{2}{*}{+} & $5$ \\ 
           & $12$ \\ 
\cline{2-2}
    & 17
\end{tabular}

\end{document}

which produces:

enter image description here

You must log in to answer this question.

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