66

I'd like to typeset documents using the 'Grid system' of page layout. Good examples are on pages 40-53 of this document. The textpos package is helpful for this, but two additional features would be useful:

  1. Automatic flow of text across (arbitrarily placed) columns / textpos blocks.
  2. Vertical line spacing enforced to be an integer multiple of a base line spacing, even when interrupted (for example) by an equation of arbitrary height.

Any ideas as to how either or both of these could be accomplished?

4
  • +1 for the link to The Vignelli Canon -- interesting document. Aug 9, 2010 at 19:56
  • Are non-Latex answers (i.e., Context answers) acceptable? Aug 9, 2010 at 20:09
  • It looks as though there is no neat solution (to point 2 at least) in LaTeX, so ConTeXt (etc.) answers would also be interesting. Aug 9, 2010 at 22:19
  • 2
    The link is outdated, could you upload a screenshot to keep the question relevant? Would be great! Mar 7, 2017 at 19:28

4 Answers 4

35

Your requirement 2 is very difficult in latex (and a frequent topic of discussion when people get together to talk about future versions). As well as the grid package there is the gridset package. The grid package tries to make all vertical spaces a multiple of the baselineskip (or pairs of pre-/post-spacing that sum to a multiple of baselineskip), and removes vertical glue. The gridset package tries to "reset" the text back onto the grid after an odd-sized equation or floating figure or table, but it doesn't necessarily do it in the most aesthetic way, and it may take many compilation passes before convergence.

For your requirement 1, check out the flowfram package. It seems to do what you want.

1
  • Aha! flowfram looks like it handles point 1 rather well. Aug 10, 2010 at 7:48
23

If you would consider using ConTeXt: First, I don't know if I fully understand your question, but re.1 if you mean a DTP like flow of text across chained boxes it's not possible in ConTeXt. However you can take a look at the possibilities offered by columnsets and see if they fit your needs. Obviously you can also try using layers to obtain really complicated layouts.

re.2

\setuplayout[grid=yes]

and see options for

\setupinterlinspacing

in ConTeXt manual, for more of grid trickery see Details

8

Commercial Plug

Just for completeness, there is a commercial TeX-based data-based publishing system named DocScape which is very much geared towards this kind of layout. See a product catalogue (62 MB!) as an example.

In practise, it mostly handles only question 1 (apart from setting \lineskiplimit and allowing to grid-aligned table rows), but being made for catalogs and such, it currently doesn't handle maths anyway ;-)

DISCLAIMER: I'm the author.

2
  • Can you please update the link to the product catalog, it doesn't work anymore. English will be welcome too, your website is only available in German...
    – codepoet
    Apr 23, 2020 at 6:13
  • The particular page wasn't captured and the other related stuff also seems to be gone. Wasn't able to find any PDF that large on archive.org. May 10, 2023 at 22:43
3

See the grid package http://ctan.org/pkg/grid.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .