Diyelim ki elimde şu denklemler var
\begin{align}
f(x) = x^2
g(x) = \exp( x )
\end{align}
Bu satırlar için tek bir etiket kullanmak istiyorum ve ideal olarak denklem numarası bu iki satırın arasına dikey olarak yerleştirilecek.
Bu soru çok basit görünmesine rağmen, ne arama motorlarında ne de bu web sitesinde bir açıklama bulamadım.
Tam da istediğiniz şey amsmath
sınıfı tarafından sağlanan split
ortamıdır.
Örnek kod.
\documentclass{article}
\usepackage[paperwidth=90mm]{geometry}% <-- better demonstrates the vertical alignment
\usepackage{amsmath}
\begin{document}
Eqn.~\eqref{eqn:eqlabel} has a single label split
across the two equations, as you can see here:
\begin{align}
\label{eqn:eqlabel}
\begin{split}
f(x) &= x^2 ,
\\
g(x) &= \exp( x ) .
\end{split}
\end{align}
\end{document}
Sonuç.
Bir equation
içinde bir aligned
veya gathered
ortamı kullanabilirsiniz:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\label{eq:t}
\begin{aligned}
f(x) &= x^2\\
g(x) &= \exp(x)
\end{aligned}
\end{equation}
\begin{equation}
\label{eq:u}
\begin{gathered}
f(x) = x^2\\
g(x) = \exp(x)
\end{gathered}
\end{equation}
\end{document}