정리/증명/예제/등 앞에 글머리 기호를 어떻게 배치합니까? 비머 슬라이드의 항목별 목록

정리/증명/예제/등 앞에 글머리 기호를 어떻게 배치합니까? 비머 슬라이드의 항목별 목록

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하고 위치와 간격을 조정하는 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}

관련 정보