Presentations and PostersBoxed text in beamer

Beamer, Powerdot and KOMA-Script presentations, Conference posters (a0poster, baposter, tikzposter)
Post Reply
asafw
Posts: 37
Joined: Sun Jun 10, 2012 12:33 pm

Boxed text in beamer

Post by asafw »

Hi there,

What is the simplest way to get a centered box with text inside? I am currently using a "block" environment, but this has no frame..

Thanks a lot!
Asaf

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Boxed text in beamer

Post by Stefan Kottwitz »

H Asaf,

do you mean like this?

Code: Select all

\documentclass{beamer}
\usetheme{Warsaw}
\begin{document}
  \begin{frame}
    \begin{center}
      \begin{minipage}{4cm}
        \begin{block}{}
          This is my centered text
        \end{block}
      \end{minipage}
    \end{center}
  \end{frame}
\end{document}
beamer-block.png
beamer-block.png (8.52 KiB) Viewed 55273 times
There is a frame. It depends on the theme, of cause.

Stefan
LaTeX.org admin
Post Reply