4

I am using the document class Beamer. When I type

\begin{definition}

This is a definition. 

\end{definition}

it returns something like

Definition

This is a definition.

But this waste an entire line. I would like something like

Definition. This is a definition.

Is there an easy way of doing this? I have some experience with LaTeX, but I'm completely new to Beamer document class...

  • 1
    In a presentation lines are not "wasted". If you try and cram as much on the slide as you can you will produce a difficult to read slide. Space your information out more! – Jack Aidley Feb 11 '17 at 19:57
10

The "wasted" line is in reality the title of a block, with a suitable colour theme your definition looks like

enter image description here

Now if you want to remove the title, maybe the following quick hack could be a solution (There might be some features of definitions that won't work any more).

\documentclass{beamer}
\usetheme{Warsaw}

\renewenvironment{definition}{\begin{block}{}\translate{Definition}.}{\end{block}}

\begin{document}

\begin{frame}
    bla

    \begin{definition}
        This is a definition.
    \end{definition}
\end{frame} 

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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