如何將投影機中的逐項部分置中?

如何將投影機中的逐項部分置中?

我將一個框架分為兩列,我想將項目放在左列的水平中心。在這種情況下似乎\begin{center}不起作用。

這是我的程式碼:

\begin{frame}{1D Stefan Problem}
\color{red}\rule{.5\linewidth}{4pt}\color{blue}\rule{.5\linewidth}{4pt}
\begin{columns}[c]
    \column{.5\textwidth}
    \begin{center}
        \begin{itemize}
        \item $u_{t}=k_{L}u_{xx}$
    \end{itemize}
    \end{center}
    \column{.5\textwidth}
\end{columns}
\end{frame}

和輸出: 在此輸入影像描述

答案1

我不確定是否有比將清單放入適當大小的小型頁或 parbox 中更好的方法。您需要調整寬度以適合列表,甚至可能添加一些額外的內容以與逐項項目符號的左側縮排保持平衡。 (它嘗試了 varwidth 環境,因此您不必手動猜測寬度,但它似乎不適用於列表。)

\documentclass[12pt]{beamer}

\begin{document}

\begin{frame}{1D Stefan Problem}


\begin{columns}[c]

    \column{.5\textwidth}

    \color{red}\rule{\linewidth}{4pt}
    \begin{center}
        \begin{minipage}{3.1cm}
            \noindent\begin{itemize}
                \item $u_{t}=k_{L}u_{xx}$
                \item $x^2  + y^2 = z^2$
            \end{itemize}
        \end{minipage}
    \end{center}
    \column{.5\textwidth}

    \color{blue}\rule{\linewidth}{4pt}

    \begin{center}
        \begin{minipage}{2.6cm}
            \noindent\begin{itemize}
                \item $E = mc^2$
                \item $1+1=2$
            \end{itemize}
        \end{minipage}
    \end{center}

\end{columns}
\end{frame}

\end{document}

投影機居中列表

(請注意,我移動了紅色和藍色條,因為它們的位置有點誤導。列環境更改了邊距並增加了列之間的空間。)

但可能還有更好的方法。

相關內容