# Write equations in horizontal mode

#### Mohajir

I want to write equations numbered and horizontally like this.

#### Attachments

• 13.9 KB Views: 21
Last edited:

#### greg1313

Forum Staff
Define a table that doesn't have any borders.

$$\displaystyle \begin{array}{ l c r } 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ \end{array}$$

#### Mohajir

\documentclass[12p]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}

\begin{document}
\begin{tabular}{ l c r }
$2x+3=7$ & $5x-2=3$ & $2x+7=11$\\
$6x+1=9$ & $6x+1=9$ & $-4x-5=14$ \\
$2x+3=7$ & $5x-2=3$ & $2x+7=11$ \\
\end{tabular}
\end {document}

And it produced This.

Now, How would I do to number them automatically with a bold font?
Also, how would I do to increase horizontal spaces?

#### Attachments

• 4.8 KB Views: 11

#### Mohajir

aaa

I enhanced a little the equations, but still the numbering increases vertically instead of horizontally:

\documentclass[12p]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{multicol}
\begin{document}
\begin{enumerate}
\begin{multicols}{3}
\item $2x+3=7$
\item $5x-2=3$
\item $2x+7=11$
\item $9x-1=4$
\item $6x+1=9$
\item $-4x-5=14$
\item $2x+3=7$
\item $5x-2=3$
\item $2x+7=11$

\end{multicols}
\end{enumerate}
\end{document}

#### Attachments

• 9.5 KB Views: 19
Last edited:

#### greg1313

Forum Staff
Use \textbf{...} for bold font. To increase spacing, try \quad.

Last edited:
1 person

#### Mohajir

Thank you very much for the time you dedicated to this. I really appreciate.

1 person

#### szz

You could also use the matrix structure:

Code:
\begin{document}

\begin{equation*}
\begin{matrix}
2x+3=7 & 5x-2=3 & 2x+7=11 \\
6x+1=9 & 6x+1=9 & -4x-5=14 \\
2x+3=7 & 5x-2=3 & 2x+7=11 \\
\end{matrix}
\begin{equation*}

\end{document}
Which produces:

$$\displaystyle \begin{matrix} 2x+3=7 & 5x-2=3 & 2x+7=11 \\ 6x+1=9 & 6x+1=9 & -4x-5=14 \\ 2x+3=7 & 5x-2=3 & 2x+7=11 \\ \end{matrix}$$