![在 beamer 中输入文本](https://linux22.com/image/450099/%E5%9C%A8%20beamer%20%E4%B8%AD%E8%BE%93%E5%85%A5%E6%96%87%E6%9C%AC.png)
下载最新版本的 MikTex 后,我输入数学运算,它给出了令人满意的结果。但当我第一次输入标题、作者等时……它什么也没给出!我必须使用另一个 \usepackage 或 \usetheme 命令吗?这是我使用的代码:
\documentclass{beamer}
\usepackage{graphicx}
\usepackage{bm}
\usepackage{multirow}
\usepackage{amssymb}
\usepackage{amsmath}
\usetheme{Warsaw}
\title{Asymptotic Safety and Reduction of Couplings}
\author{I.Sklavounos}
\institute{National Technical University of Athens}
\date{\today}
\begin{document}
\begin{frame}
\frametitle{outline}
Asymptotic Safety\\
Standard Model with Gravity Contributions\\
Reduction of Couplings\\
Conclusion
\end{frame}
\begin{frame}
$$\mu\frac{\partial g_i}{\partial \mu}=\beta_{i}(g)$$
\end{frame}
\end{document}
答案1
之前的所有内容都称为前言。在\begin{document}
此之前输入的所有内容都不会在文档中输出。正如我在评论中所说,这些命令\title
、\author
、只是定义变量。要将这些变量输出到文档中,您需要使用after 。根据@Zarko 的评论,我评论了不需要在 beamer 中明确加载的包:\institute
\date
\maketitle
begin{document}
\documentclass{beamer}
%\usepackage{graphicx}% already include in beamer
\usepackage{bm}
\usepackage{multirow}
%\usepackage{amssymb}% already include in beamer
%\usepackage{amsmath}% already include in beamer
\usetheme{Warsaw}
\title{Asymptotic Safety and Reduction of Couplings}
\author{I.Sklavounos}
\institute{National Technical University of Athens}
\date{\today}
\begin{document}
\maketitle
\begin{frame}
\frametitle{outline}
Asymptotic Safety\\
Standard Model with Gravity Contributions\\
Reduction of Couplings\\
Conclusion
\end{frame}
\begin{frame}
$$\mu\frac{\partial g_i}{\partial \mu}=\beta_{i}(g)$$
\end{frame}
\end{document}