summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/gridslides/README.md
blob: 5b286c44e2d9cd86e167c083bcf6833713f04bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# gridslides: LaTeX package to create free form slides with blocks placed on a grid

This package allows to create free form slides with blocks placed on a grid.
The blocks can be filled with text, equations, figures etc.
This allows more flexible slides similar compared to LaTeX beamer.
Sequential unconvering of elements is supported.
A compiler script is provided which compiles each slide separately, avoiding long compile times this way.

## Example

See the file `example.tex` and `example.pdf`. Each slide is compiled separately using `compile.pl example.tex`.

## Supported commands

This package provides only a handful of commands, which
allow to create slides and with blocks at fixed positions.

### Slides/Pages

```latex
\begin{slide}{Slide title}
  Slide content
\end{slide}

\begin{rawslide}
  Raw slide without title and style
\end{rawslide}

\begin{style}
  Define style which underlies all slides.
  Best used together with \bg{filename}!
\end{style}

\begin{style}
  \bg{figure-filename}
\end{style}
```

### Slide content blocks

The slide is divided in a 32x24 grid.

```latex
\bg{figure-filename}
\txt(x,y){Text content}
\block(x,y,w){Arbitrary content}
\fig(x,y,w){figure-filename}
\eq(x,y){a^2 + b^2 = c^2}
```

### Sequential uncovering

Each slide can be split in multiple steps by defining blocks with `<n-m>` annotations.

```latex
\txt<1->(x,y){On slide step 1 to n}
\block<2>(x,y,w){Only on step 2}
\only<2-3>{
  \block(x,y){Block content}
}
```

### Metadata

```latex
\author{Author}            defines \theauthor
\title{Presentation Title} defines \thetitle
\date{Date}                defines \thedate
\institute{Institute}      defines \theinstitute
\theheadline defined by slide title
\theslide defined by slide number
```

## Alternatives

* beamer
* ffslides
* prosper
* pure tikz or pstricks

## License

Copyright (c) 2017 Daniel Mendler. The package is dual-licensed
under the GNU General Public License, version 2 and
the LaTeX Project Public License 1.3 at your option.