Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using beamer I have prepared the following slide. I want to display the theorem in a box or like that for better presentation. Also title heading is left align. Is it ok or not?

\begin{frame}{Chinese Remainder Theorem(CRT)}

\begin{theorem}

 Let $r, s$ be integers such that gcd$(r, s)=1$. 
Given integers $a,b$, there exists unique 
$x <rs$ such that 

\vspace*{5pt}
\begin{enumerate}
\item $x \equiv a \bmod r$ 
\item $x \equiv b \bmod s$
\end{enumerate}

\end{theorem} 

\end{frame}
share|improve this question
    
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with {} on it). –  Werner Feb 9 '12 at 17:30
    
You could use the block-environment for the box. But the outcome does strongly depend on your chosen beamertheme. Without any there is no box with block –  Matz Feb 9 '12 at 17:36
    
You really should consider changing your subject. It is not specific enough and won't draw attention of those who may be able to help you. –  Marc van Dongen Feb 12 '12 at 0:19

1 Answer 1

up vote 5 down vote accepted

Do you mean something like this?

\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usetheme{Madrid}
\title{You slide ready}
\author{Yourself}
\date{today}

\begin{document}
\begin{frame}[shrink=-50]{A theorem in a box}

\begin{theorem}

 Let $r, s$ be integers such that gcd$(r, s)=1$. 
Given integers $a,b$, there exists unique 
$x <rs$ such that 

\begin{enumerate}
\item <+-> Wait to the next slide ...
\item <+-> $x \equiv a \bmod r$ 
\item <+-> $x \equiv b \bmod s$
\end{enumerate}

\end{theorem} 
\end{frame} 
\end{document}

Well, without theme and without theorem environment, you can use, for example, fancybox and minipage:

\documentclass{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{fancybox}
\title{You slide ready}
\author{Yourself}
\date{today}
\begin{document}
\begin{frame}[shrink=-50]{A theorem in a box}

 Let $r, s$ be integers such that gcd$(r, s)=1$. 
Given integers $a,b$, there exists unique 
$x <rs$ such that 

\Ovalbox{\begin{minipage}[t]{0.5\columnwidth}%

\begin{enumerate}
\item <+-> Wait to the next slide ...
\item <+-> $x \equiv a \bmod r$ 
\item <+-> $x \equiv b \bmod s$
\end{enumerate}

\end{minipage}}
\end{frame} 
\end{document}
share|improve this answer
    
Thanks. But I do not want to use any kind of theme. –  user12290 Feb 10 '12 at 15:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.