答案1
还修复了原来版本中的各种故障(主要由于不加区分地使用\left
和\right
):
\documentclass{article}
\usepackage{amsmath}
\usepackage{slashed}
\begin{document}
\begin{equation*}
\left(
\begin{aligned}
-\slashed{g}
&= y''\Bigl(\frac{dx}{ds}\Bigr)^{\!2}v^2
= \frac{y''v^2}{(ds/dx)^2}
\\
&= \frac{y''v^2}{1+(y')^2}
= \frac{y''2\slashed{g}(y_0-y)}{1+(y')^2}
\end{aligned}
\right)
\implies
2y''(y-y_0) = 1+(y')^2
\end{equation*}
\end{document}
答案2
使用数组
\documentclass[a4paper]{article}
\usepackage[left=1cm,right=1cm]{geometry}
\usepackage{amsmath,cancel}
\begin{document}
\begin{center}
$\left(
\begin{array}{llll}
-\cancel{g} & = y''\left( \dfrac{dx}{ds} \right)^{2}v^{2}&=\dfrac{y''v_{2}}{(ds/dx)^{2}}\\
&&&\\
& = \dfrac{y''v_{2}}{1+(y')^{2}}&=\dfrac{y''2\cancel{g}(y_{0}-y)}{1+(y')^{2}}\\
\end{array}
\right)$$\implies 2y''(y-y_{0})=1+(y')^{2}$.
\end{center}
\end{document}
答案3
使用array
来自amsmath
进行对齐,=
并使用cancel
包来取消一些术语。
\documentclass[12pt,a4paper]{article}
\usepackage{amsmath,cancel}
\begin{document}
\[\left(
\begin{array}{@{}r@{{}={}}l@{}}
-\cancel{g}& y''\Big(\dfrac{dx}{ds}\Big)^2 v^2=\dfrac{y''v_2}{(ds/dx)^2}\\
& \dfrac{y'' v^2}{1+(y^\prime)^2}=\dfrac{y''2\cancel{g}(y_0-y)}{1+(y')^2}
\end{array}\right) \Longrightarrow 2y''(y-y_0)=1+(y')^2.
\]
\end{document}
这也可以以稍微不同的方式来表示,因为它是一个分为两行的单一方程,而不是一个矩阵。
\[\left.
\begin{array}{r@{{}={}}l}
-\cancel{g} & y''\Big(\dfrac{dx}{ds}\Big)^2 v^2=\dfrac{y''v_2}{(ds/dx)^2}\\
& \dfrac{y'' v^2}{1+(y')^2}=\dfrac{y''2\cancel{g}(y_0-y)}{1+(y')^2}
\end{array}\right\} \Longrightarrow 2y''(y-y_0)=1+(y')^2.
\]