0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LaTeXで同値変形をきれいに書く

Last updated at Posted at 2025-05-07

1. はじめに

\begin{alignat}{3}
  &                      & x         &= 1 + 1       \\
  &                      &           &= 2           \\
  & \Leftrightarrow\quad & x + 2     &= 2 + 2       \\
  &              &         &= 4           \\
  & \Leftrightarrow\quad & 3 (x + 2) &= 3 \times 4
\end{alignat}

こういう感じの同値変形をきれいに書きたかったのですが,LaTeXのことをあまり知らず苦戦したので共有します。これが一般的な方法なのか分かりませんが,参考になれば幸いです。

2. 結論

alignat環境を使えばよいです。

\begin{alignat}{3}
  &                      & x         &= 1 + 1       \\
  &                      &           &= 2           \\
  & \Leftrightarrow\quad & x + 2     &= 2 + 2       \\
  &              &         &= 4           \\
  & \Leftrightarrow\quad & 3 (x + 2) &= 3 \times 4
  ⋮
\end{alignat}

コピペ用テンプレート

\begin{alignat}{3}
  &                      & LHS  &= RHS \\
  & \Leftrightarrow\quad &      &=     \\
  & \Leftrightarrow\quad &      &=     \\
\end{alignat}

3. おわりに

もっとよい方法があるという方は教えていただけると幸いです。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?