[Tex/LaTex] Tabs in a Beamer Presentation

beamerhorizontal alignmentindentation

I am putting together a beamer presentation with some programming code. However, the verbatim package by default places the code on the left most fringe of the slide. I want the slide to be a little closer to the center of the slide, but still left alligned. How can I do this? can't find anything on google

\begin{frame}[fragile]
\begin{center}
\begin{verbatim}
> library(memisc)
> x <- round(rnorm(3),1)
> y <- round(rnorm(3)*2,1)
> mytable <- genTable(y ~ x)
> toLatex( mytable )
\end{verbatim}
\end{center}
\end{frame}

Best Answer

\documentclass{beamer}

\begin{document}
\begin{frame}[fragile]
\begin{center}
\begin{minipage}{0.5\linewidth}
\begin{verbatim}
> library(memisc)
> x <- round(rnorm(3),1)
> y <- round(rnorm(3)*2,1)
> mytable <- genTable(y ~ x)
> toLatex( mytable )
\end{verbatim}
\end{minipage}
\end{center}
\end{frame}
\end{document}

enter image description here