0

I would like to display blocks with beamer, I took a code example here

\documentclass[10pt,a4paper]{beamer}
\usepackage[utf8]{inputenc}
    \usetheme[secheader]{Boadilla}
\begin{document}

\begin{frame}{Title Frame}
    Introduction sentece
    \begin{block}{Title Block 1}
    {
        \begin{itemize}
        \item item 1
        \item item 2
        \end{itemize}
    }
    \end{block}
    \begin{exampleblock}{Title Block 2}
    {
        Text.
    }
    \end{exampleblock}
    \begin{alertblock}{Title Block 3}
    {
        You
    }
    \end{alertblock}
\end{frame}

\end{document}

However it displays this on my computer enter image description here

I tried several themes but the background blocks won't show.

1 Answer 1

1

You use .dvi files (latex file.tex) you need to use .ps or .pdf files (pdflatex file.tex)

If you convert your file or directly use pdflatex command you will see the backgound and the border of the blocks

4
  • This makes very little sense... could you elaborate?
    – Werner
    Mar 1, 2016 at 22:45
  • 1
    I think you're meaning that you shouldn't preview the DVI file, but only a PDF one. This is definitely true whenever the document uses graphic facilities.
    – egreg
    Mar 1, 2016 at 22:59
  • I mean that the fact that the background and border of the block are not visible came from the format file, I had to convert it or to directly make a pdf
    – x4rkz
    Mar 2, 2016 at 7:21
  • @x4rkz You may explicit commands: to see correct result, use the compilation chain latex->dvips->ps2pdf or, directly, pdflatex. Mar 2, 2016 at 13:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .