如何將重點放在定理/證明/範例/等之前。在 Beamer 投影片的逐項清單中

如何將重點放在定理/證明/範例/等之前。在 Beamer 投影片的逐項清單中

我在 Ubuntu 20.04 上使用 LaTeX。我讓一切正常工作,然後卸載了一些東西,這導致部分 LaTeX 軟體包被卸載,我重新安裝了 LaTeX 軟體包,現在當我在 Beamer 中做一個示例(或定義或定理或證明等)時,項目符號位於範例之後,而不是同一行之前。

我可以做些什麼來讓子彈出現在範例之前嗎?

\documentclass{beamer}

\usepackage{amsmath,amsfonts,amssymb,amscd,enumerate,url,graphicx,wasysym}
\usepackage{movie15,MnSymbol}
\usepackage{mathrsfs}
\usepackage{diagrams}
\usepackage{beamerthemesplit}
\usepackage{accents}
\usepackage{kbordermatrix}
\usepackage{hyperref}

\beamertemplateshadingbackground{red!10}{blue!10}
\beamertemplateboldtitlepage \beamertemplatenavigationsymbolsempty
\beamertemplateboldcenterframetitle
\renewcommand{\raggedright}{\leftskip=0pt \rightskip=0pt plus 0cm }

\newenvironment{Def}{\begin{block}{Definition}}{\end{block}}
\newenvironment{Claim}{\begin{block}{Claim}}{\end{block}}
\newenvironment{Fact}{\begin{block}{Fact}}{\end{block}}
\newenvironment{Result}{\begin{block}{Result}}{\end{block}}
\newenvironment{Solution}{\begin{block}{Solution}}{\end{block}}

\renewenvironment{proof}{\begin{block}{Proof}}{\end{block}}

\renewcommand\qedsymbol{$\blacksquare$}

\newcommand{\none}[1]{}

\none{
\theoremstyle{definition}
%\newtheorem{Theorem}[theorem]{Theorem} 
\newtheorem{Thm}[theorem]{Theorem}
\newtheorem{Prop}[theorem]{Proposition}
\newtheorem{Proposition}[theorem]{Proposition}
\newtheorem{Cor}[theorem]{Corollary}
\newtheorem{Lem}[theorem]{Lemma}
\newtheorem{Conj}[theorem]{Conjecture}

\theoremstyle{definition}
\newtheorem{Def}[theorem]{Definition}
\newtheorem{Remark}[theorem]{Remark}
\newtheorem{Ex}[theorem]{Example}
\newtheorem{Claim}[theorem]{Claim}
\newtheorem{Fact}[theorem]{Fact}
}

\bibliographystyle{amsalpha}
\numberwithin{equation}{section}
\setcounter{section}{0}

\author{Dr. Jeffrey Rolland}
\institute{Math 001 - Intro to Counting \\
Department of Mathematics \\
My School}
\date{Fall, 2020}

\begin{document}

\title{Test Section}

\frame{\titlepage}

\frame
{

\frametitle{Test Frame} 

\begin{itemize}
    
    \item<+-> \begin{Example} This is an example; the bulletpoint appears after and a line below. \end{Example} 
    \item<+-> Here, the bulletpoint appears before and on the same line. I would like all bulletpoints like this one.
    
\end{itemize}
}

\end{document}

投影機框架

(對所有包感到抱歉,我複製/貼上了。)有沒有辦法讓範例的項目符號出現在範例之前並與範例在同一行?

答案1

Example用a包圍minipage並加入一些\vspace指令來調整位置和間距,得到以下更簡單的範例:

在此輸入影像描述

\documentclass{beamer}

\usepackage{amsmath}
\theoremstyle{definition}
\newtheorem{Ex}[theorem]{Example}

\begin{document}

\begin{frame}
\frametitle{Test Frame} 

\begin{itemize}
    \item \begin{minipage}[t]{\linewidth}
            \vspace*{-1\baselineskip}
            \begin{Example} 
              This is an example; the bulletpoint appears after and a line below. 
            \end{Example}
            \vspace{0.25\baselineskip}
          \end{minipage}
    \item Here, the bulletpoint appears before and on the same line. I would like all bulletpoints like this one.
    \item the next item
\end{itemize}
\end{frame}

\end{document}

相關內容