summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/grid-system/README
blob: 887fd6b239592e58b048ab509e9704a09a8a6c0b (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
latex-grid-system
=================

latex-grid-system is a package for the LaTeX typesetting system implementing a grid system as known from CSS grid systems. This is useful for creating box layouts as used in brochures.

Usage:

```latex
\begin{Row}
    \begin{Cell}{<Columns for this cell>}
    Some text using 2/3 of the width.
    \end{Cell}
    \begin{Cell}{<Columns for this cell>}
    Some text using 1/3 of the width.
    \end{Cell}
\end{Row}

\begin{row}{<Total columns>}{<Cells in row>}%
    \begin{cell}{<Columns for this cell>}
    Some text using 2/3 of the width.
    \end{cell}
    \begin{cell}{<Columns for this cell>}
    Some text using 1/3 of the width.
    \end{cell}
\end{row}
```


Example:

```latex
\begin{Row}%
    \begin{Cell}{2}
    Some text using 2/3 of the width.
    \end{Cell}
    \begin{Cell}{1}
    Some text using 1/3 of the width.
    \end{Cell}
\end{Row}

\begin{row}{3}{2}%
    \begin{cell}{2}
    Some text using 2/3 of the width.
    \end{cell}
    \begin{cell}{1}
    Some text using 1/3 of the width.
    \end{cell}
\end{row}
````

Contribute
==========

This package is developed on GitHub:

	https://github.com/bitzl/latex-grid-system

Please feel free to fork and contribute.