MartinThoma / write-math

On-line recognition of mathematical formulae
MIT License
46 stars 5 forks source link

Improve pagination with ... for many pages #7

Closed MartinThoma closed 10 years ago

MartinThoma commented 10 years ago

Pagination got a little bit out of control:

fix-pagination

MartinThoma commented 10 years ago

If there are more than n pages (e.g. n=12) then you should no longer have

< 1 2 3 4 5 6 7 8 9 10 11 12 13 >

but instead

<< < 2 3 4 5 6 7 8 9 10 11 12 > >>

when 7 is the current page. So you have an environment d=5 around the current page. All other pages don't get an own number, but you can always jump to the first page with << and to the last page with >>.