I'm a beginner in LaTeX. I need some help to write LaTeX code for this: Do I have to use
{tabular}
or are there any other ways to code this?Thanks in advance for helping me out.
{tabular}
or are there any other ways to code this?NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\begin{cases}
$y=2x-5$\\
$4x-2y-10=0$
\end{cases}
\begin{tabular}{l c r}
$2x-y-5=0$ & $|\cdot (-2)|$ & $ -4x+2x+10=0$\\
$4x-2y-10=0$ &$|\cdot 1|$ & $4x-2y-10=0$\\\hline
& & $0=0$
\end{tabular}
\documentclass
and ending with \end{document}
. So readers can directly test it and help you.{array}
environment for the whole thing, because of left alignment, the horizontal line, and math mode for the cells,aligned
environment of the \left\{
and \right.
for the big braces, I guess a cases
environment is not needed here. The Code: Select all
\documentclass[a4paper,fleqn,12pt]{article}
\usepackage[english]{babel}
\usepackage{amsmath,amsfonts,amsthm}
\begin{document}
\[\left\lbrace \begin{array}{l}
y=2x-5\\
4x-2y-10=0
\end{array}\right. \Rightarrow\]
\[\begin{array}{lcr}
\Rightarrow \left\lbrace
\begin{align*}
2x-y-5=0\\
4x-2y-10=0
\end{align*}&
\begin{align*}
\left| \begin{array}{c}
\cdot (-2)\\\cdot 1
\end{array} \right|
\end{align*}&+
\begin{align*}
-4x+2y+10=0\\
4x-2y-10=0
\end{align*}
\\\cline{1-3}
&&$0=0$
\end{array} \]
\end{document}
Code: Select all
\documentclass[12pt,a4paper,fleqn]{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsfonts,amsthm}
\usepackage{booktabs,multirow}
\begin{document}
\[
\left\lbrace
\begin{aligned}
y &= 2x-5\\
4x-2y-10 &= 0
\end{aligned}
\right. \qquad\Rightarrow
\]
\[
\begin{array}{@{}r@{\,}c@{\,}lcccccr@{\,}c@{\,}l@{}}
2x-y-5 & = & 0 & & & \begin{array}{|c|}\cdot\,(-2)\end{array} & & \multirow{2}{*}{+} & -4x+2y+10 & = & 0 \\
4x-2y-10 & = & 0 & & & \begin{array}{|c|}\cdot\,1\phantom{(-)}\end{array} & & & 4x-2y-10 & = & 0 \\ \midrule
& & & & & & & & 0 & = & 0 \\
\end{array}
\]
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.