中央揃えの問題

中央揃えの問題

itemリスト番号を中央揃えにせずに、リスト内の1 つを中央揃えにしたい。

\section*{Redovisning}
\begin{enumerate}
    \item  \begin{equation}
        f(x) = x(x-2)\end{equation}
    \vspace{0.3cm}  
    \begin{equation}
        g(x) = x(2-x)\end{equation}
    \vspace{0.3cm}
    \item {$\frac{8}{3}$ a.e.}
    \item  \begin{equation}
    \int\limits_a^b f(x) \, \mathrm{d} x
    \end{equation}
    \vspace{0.3cm}      
    \item 
\end{enumerate}

を除いてすべて正常に見えます\item {$\frac{8}{3}$ a.e.}。私が試したことはすべて、すべてを中央揃えにするか、アイテム番号を削除するかのいずれかでした。

答え1

リスト番号を中央揃えにせずに、リスト内の 1 つの項目を中央揃えにしたい。

サンプル コードの残りの部分から判断すると、項を中央揃えにするだけでなく、(a) 表示数式モードでタイプセットし、(b) 単独で 1 行に表示することも希望していると想定します。これらの想定が正しい場合は、 で始まりで終わる$\frac{8}{3}$ a.e.番号なしの表示数式グループを使用することをお勧めします。\[\]

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

\documentclass{article} % remove "demo" 
\usepackage{amsmath}
\begin{document}
\section*{Redovisning}
\begin{enumerate}
    \item  
        \begin{align}
        f(x) &= x(x-2)\\
        g(x) &= x(2-x)
        \end{align}
    \item
        \[
        \frac{8}{3}\ \text{a.e.}
        \]
    \item  
        \begin{equation}
        \int_a^b f(x) \, \mathrm{d}x
        \end{equation}
\end{enumerate}
\end{document}

関連情報