blob: 2745511430901416ed3930226f62d3663ab2803a (
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
|
autobreak
=========
[![CTAN](https://img.shields.io/ctan/v/autobreak.svg)](https://ctan.org/pkg/autobreak)
[![Build Status](https://img.shields.io/travis/tueda/autobreak/master.svg)](https://travis-ci.org/tueda/autobreak)
This package implements a simple mechanism of line/page breaking
within the `align` environment of the `amsmath` package; new line
characters are considered as possible candidates for the breaks and
the package tries to put breaks at adequate places. It is suitable
for computer-generated long formulae with many terms.
Example
-------
```latex
\documentclass{article}
\usepackage{amsmath}
\usepackage{autobreak}
\pagestyle{empty}
\allowdisplaybreaks
\begin{document}
\begin{align}
\begin{autobreak}
\zeta(2) =
1
+ \frac{1}{4}
+ \frac{1}{9}
+ \frac{1}{16}
+ \frac{1}{25}
+ \frac{1}{36}
+ \frac{1}{49}
+ \frac{1}{64}
+ \frac{1}{81}
+ \frac{1}{100}
+ \frac{1}{121}
+ \frac{1}{144}
+ \frac{1}{169}
+ \frac{1}{196}
+ \frac{1}{225}
+ \frac{1}{256}
+ \frac{1}{289}
+ \frac{1}{324}
+ \frac{1}{361}
+ \frac{1}{400}
+ \frac{1}{441}
+ \frac{1}{484}
+ \frac{1}{529}
+ \frac{1}{576}
+ \frac{1}{625}
+ \frac{1}{676}
+ \frac{1}{729}
+ \frac{1}{784}
+ \frac{1}{841}
+ \frac{1}{900}
+ \dots
\end{autobreak}
\end{align}
\end{document}
```
![Example](https://raw.githubusercontent.com/tueda/autobreak/images/example.png)
Licence
-------
The LaTeX Project Public License 1.3 (or any later version)
Bugs and remarks
----------------
Feedback is welcome on the Issue Tracker of GitHub:
https://github.com/tueda/autobreak/issues
|