我试图为课堂制作幻灯片。但是在文本右侧插入方程式时遇到了问题。
我的幻灯片的代码:
\documentclass{beamer}
%\documentclass[mathserif]{beamer}
\usefonttheme[onlymath]{serif}
%\usepackage[utf8]{inputenc}
\usepackage{kotex}
\usepackage{mathtools}
\usepackage{paracol}
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg}
\begin{document}
\begin{frame}{Chapter 2: Introduction}
\begin{itemize}
\item Notion of a State
\begin{itemize}
\item All the information required at $t = t_{0}$ which, together with $u(t),\, t\geq t_{0}$, determines uniquely the output $y(t)$ for $t\geq t_{0}$. \break
\end{itemize}
\item Definition of a state (Definition 2.1 Chen p6)
\begin{definition}
The state $x(t_{0})$ of a system at time $t_{0}$ is the information at $t_{0}$ that, together with the input $u(t)$, for $t\geq t_{0}$, determines uniquely the output $y(t)$ for all $t\geq t_{0}$.
\end{definition}
\begin{itemize}
\item State vector $x\in R^n$, input vector $u \in R^m$, output vector $y \in R^p$
\end{itemize}
\begin{paracol}{2}
\item State equation: $\dot{x} = f(x, u, t)$
\item Output equation: $y = g(x, u, t)$
\switchcolumn
$$\begin{rcases*}
x(t_{0}) \\
u(t), \, t\geq t_{0}
\end{rcases*} \xrightarrow{} y(t), \, t\geq t_{0}$$
\end{paracol}
\end{itemize}
\end{frame}
\end{document}
然后公式就放在文本下方,而不是右侧。当我复制该paracol
部分并将其粘贴到新的 tex 文件中时,它工作正常。我不知道为什么它有问题。
还会出现错误:不在外部 par 模式下。这会影响吗paracol
?
答案1
借助 的beamer
内置column
环境:
\documentclass{beamer}
\usefonttheme[onlymath]{serif}
\usepackage{mathtools}
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg}
\begin{document}
\begin{frame}{Chapter 2: Introduction}
\begin{itemize}
\item Notion of a State
\begin{itemize}
\item All the information required at $t = t_{0}$ which, together with $u(t),\, t\geq t_{0}$, determines uniquely the output $y(t)$ for $t\geq t_{0}$.
\end{itemize}
\item Definition of a state (Definition 2.1 Chen p6)
\begin{definition}
The state $x(t_{0})$ of a system at time $t_{0}$ is the information at $t_{0}$ that, together with the input $u(t)$, for $t\geq t_{0}$, determines uniquely the output $y(t)$ for all $t\geq t_{0}$.
\end{definition}
\begin{itemize}
\item State vector $x\in R^n$, input vector $u \in R^m$, output vector $y \in R^p$
\end{itemize}
\end{itemize}
\begin{columns}
\begin{column}{0.55\textwidth}
\begin{itemize}
\item State equation: $\dot{x} = f(x, u, t)$
\item Output equation: $y = g(x, u, t)$
\end{itemize}
\end{column}
\begin{column}{0.45\textwidth}
\[\begin{rcases*}
x(t_{0}) \\
u(t), \, t\geq t_{0}
\end{rcases*} \xrightarrow{} y(t), \, t\geq t_{0}\]
\end{column}
\end{columns}
\end{frame}
\end{document}
答案2
问题似乎出在paracol
环境内部frame
,你可以通过将示例简化到最小来轻松测试
\begin{document}
\begin{frame}{Intro}
\begin{paracol}{2}
A
\switchcolumn
B
\end{paracol}
\end{frame}
\end{document}
我不知道如何解决这个问题paracol
,但既然您的列比是 50:50,那么使用multicol
对您有用吗?
\documentclass{beamer}
\usefonttheme[onlymath]{serif}
\usepackage{kotex}
\usepackage{mathtools}
\usepackage{multicol}
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!10!bg}
\begin{document}
\begin{frame}{Chapter 2: Introduction}
\begin{itemize}
\item Notion of a State
\begin{itemize}
\item All the information required at $t = t_{0}$ which, together with $u(t),\, t\geq t_{0}$, determines uniquely the output $y(t)$ for $t\geq t_{0}$. \break
\end{itemize}
\item Definition of a state (Definition 2.1 Chen p6)
\begin{definition}
The state $x(t_{0})$ of a system at time $t_{0}$ is the information at $t_{0}$ that, together with the input $u(t)$, for $t\geq t_{0}$, determines uniquely the output $y(t)$ for all $t\geq t_{0}$.
\end{definition}
\begin{itemize}
\item State vector $x\in R^n$, input vector $u \in R^m$, output vector $y \in R^p$
\end{itemize}
\begin{multicols}{2}
\item State equation: $\dot{x} = f(x, u, t)$
\item Output equation: $y = g(x, u, t)$
$$\begin{rcases*}
x(t_{0}) \\
u(t), \, t\geq t_{0}
\end{rcases*} \xrightarrow{} y(t), \, t\geq t_{0}$$
\end{multicols}
\end{itemize}
\end{frame}
\end{document}