1つの方程式の2つの部分の間にタブを追加する

1つの方程式の2つの部分の間にタブを追加する

以下の式のセミコロンの後にタブを追加する必要があります。

\begin{equation}
Thr =  4\sigma_n;\sigma_n = median \left(\frac{|x|}{0.6745}\right)
\end{equation}

これどうやってするの?

答え1

コメントの後:パッケージsubequationsの環境amsmathと、このパッケージで提供されるいくつかの表示数式環境を使用できます。次の例は、align(整列された式) と(整列なし) を使用した 2 つのオプションを示しています。方程式とその「親」の間にドットを取得するには、例に示すように をgather再定義します。\theequation

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{subequations} 
\renewcommand\theequation{\theparentequation.\alph{equation}}
\begin{align} 
\text{Thr} &= 4\sigma_n;  \\
\sigma_n &= \text{median} \left(\frac{|x|}{0.6745}\right) 
\end{align}
\end{subequations} 

\begin{subequations} 
\renewcommand\theequation{\theparentequation.\alph{equation}}
\begin{gather} 
\text{Thr} = 4\sigma_n;  \\
\sigma_n = \text{median} \left(\frac{|x|}{0.6745}\right) 
\end{gather}
\end{subequations} 

\end{document}

ここに画像の説明を入力してください

また、「Thr」と「median」の直立テキスト フォントを取得するために\text(パッケージから)を使用していることにも注意してください。amsmath

関連情報