Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a preprocessor to write slides in beamer more easily
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENCE
README
README.md
butteur
requirements.txt
setup.py

README.md

Introduction

Butteur is a preprocessor to write beamers slides more easily by allowing you to use a more concise syntax. It was also an excuse for me to learn lex/yacc

Installation

In a virtualenv or as root:

pip install butteur

You'll need to have the command "pdflatex" available.

Usage

butteur file.butt

Example

theme Berlin
title the title of the document
author Myself master of the world

slide
    this is the first line
    you don't need to put a blank line between 2 lines
    you can put \emph{raw latex here}

slide this slide has a title
    and some content

Result in .tex

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{verbatim}
\usepackage{ulem}
\usepackage{fancyvrb}
\usepackage{color}
\usepackage{tikz}
\usetheme{Berlin}
\begin{document}
\title{the title of the document}
\author{Myself master of the world}
\maketitle{}
\begin{frame}[fragile]{}
    this is the first line

    you don't need to put a blank line between 2 lines

    you can put \emph{raw latex here}

\end{frame}
\begin{frame}[fragile]{this slide has a title}
    and some content

\end{frame}
\end{document}
Something went wrong with that request. Please try again.