Skip to content
w2ak edited this page Jan 31, 2017 · 24 revisions

Compiling

The polytechnique-beamer package uses a weird trick with .pdf files for its graphisms. Therefore the pictures are only available in pdf format. You would then need to use PDFLaTeX, XeLaTeX or LuaLaTeX in order to compile correctly your documents.

If you ever encounter troubles while trying to open one of your .pdf files made with PDFLaTeX, it might mean that your reader is not compliant enough. You can generally solve this by adding the following line at the very beginning of your .tex file (before \documentclass).

\pdfminorversion=4

Basic document using polytechnique-beamer

\documentclass[aspectratio=169]{beamer}

\usepackage[utf8]{inputenc}              % Only when compiling
\usepackage[T1]{fontenc}                 % with PDFLaTeX.

\usepackage{fontspec}                    % Only when not compiling
                                         % with PDFLaTeX.

\usepackage[frenchb]{babel}

\usepackage{beamerx}

\title[Subtitle]{Title}
\author{John Smith}

\company{ACME Corporation}               % To put next to
                                         % "ÉCOLE POLYTECHNIQUE".
\logo[scale]{my-logo.png}                % To add a logo to the
                                         % titlepage. Careful with
                                         % the aspect.
                                         % Scale is the size factor of
                                         % the logo.

\begin{document}
  \maketitle
\end{document}

basic.tex - basic.pdf

Commands to populate documents with content

Sections

\xsection{violet}[Short-title]{Title}
\xsection{violet}[Short-title]{Title}[my-picture]
\xsection*{violet}{Title}

section.tex - section.pdf

Sub sections

\xsubsection{violet}[Short-title]{Title}{Subtitle}
\xsubsection{violet}[Short-title]{Title}{Subtitle}[my-picture]
\xsubsection{violet}[Short-title]{Title}{}

subsection.tex - subsection.pdf

Frames

\begin{frame}{Title}
  Simple content
\end{frame}

frame.tex - frame.pdf

Picture frame

\begin{xpic}[h]{my-high-picture}
  \bf\color{white}Text
\end{xpic}
\begin{xpic}[w]{my-high-picture}
  \bf\color{white}Text
\end{xpic}
\begin{xpic}{my-high-picture}
  \bf\color{white}Text
\end{xpic}
\begin{xpic}[h]{my-wide-picture}
  \bf\color{white}Text
\end{xpic}
\begin{xpic}[w]{my-wide-picture}
  \bf\color{black}Text
\end{xpic}
\begin{xpic}{my-wide-picture}
  \bf\color{black}Text
\end{xpic}

pic.tex - pic.pdf

\begin{picframe}[darkbw]{image.jpg}{About cats}
  \begin{columns}[t,onlytextwidth]
    \begin{column}{0.25\textwidth}
      \begin{block}{Domestic}
        Cats have been domesticated for 4000 years.
      \end{block}
      \begin{block}{Speed}
        Cats can travel at speeds of up to 30km per hour.
      \end{block}
    \end{column}
    \begin{column}{0.25\textwidth}
      \begin{block}{Groups}
        While not well known, the collective nouns used for cats and kittens are a clowder of cats and a kindle of kittens.
        \vspace*{5ex}
      \end{block}
    \end{column}
    \begin{column}{0.5\textwidth-1ex}
    \end{column}
  \end{columns}
\end{picframe}

picframe.tex - picframe.pdf

Color themes for picframe :

  • darkbw
  • dark
  • lightbw
  • light

Blocks

\begin{frame}{Stacked}
  \begin{block}{First}
    Text
  \end{block}
  \begin{block}{Second}
    Text
  \end{block}
  \begin{block}{Third}
    Text
  \end{block}
\end{frame}

\begin{frame}{Adjacent}
  \begin{columns}[t]
    \begin{column}{0.4\textwidth}
      \begin{block}{First}
        Text
      \end{block}
    \end{column}
    \begin{column}{0.3\textwidth}
      \begin{block}{Second}
        Text
      \end{block}
    \end{column}
    \begin{column}{0.3\textwidth}
      \begin{block}{Third}
        Text
      \end{block}
    \end{column}
  \end{columns}
\end{frame}

blocks.tex - blocks.pdf

Available color themes

  • violet
  • grey
  • red
  • blue
  • purple
  • green
  • yellow
  • turquoise

Available options

Simple foot

I don't want to see the title in the footer.

\usepackage[simplefoot]{beamerx}

simplefoot.tex - simplefoot.pdf

Simple head

I don't want the arms in the header.

\usepackage[simplehead]{beamerx}

simplehead.tex - simplehead.pdf

I don't want the section title in the header.

\usepackage[notochead]{beamerx}

Simple blocks

I want simple blocks without decoration.

\usepackage[simplebloc]{beamerx}

simplebloc.tex - simplebloc.pdf

Old (4:3) screen

The screen ratio I'm using is 4:3.

\usepackage[oldscreen]{beamerx}