[NTG-context] Offseting the baseline grid, and irregular columnsets
adityam at umich.edu
Fri May 27 17:00:15 CEST 2022
On Wed, 25 May 2022, Stefan Nedeljkovic via ntg-context wrote:
> Dear list,
> My adventures into the world of grids continue. In the linked file
> (slide_grid_overlay.pdf) there are two things I cannot yet achieve:
> 1. I want the baseline grid to evenly (vertically) divide the text
> area, but my code produces a smaller height of the first line and an
> additional space at the bottom.
You did not set footerdistance to zero. So, that takes up some space.
> 2. The number of columns is 21.5, that is the first column is 0.5 units
> wide and the rest are 1 unit wide.
I believe that columns has to be an integer. Why do you want fractional columns? Columns are useful because you can say:
for absolute positioning of layers. So, you can always use:
to move everything to the right by 0.5 units.
Another option is not to use columns at all, and simply do:
which will place the layer at 3.5 units from the left edge of the text area.
> Here is what I got right now:
Currently your textwidth is not a multiple of base units. I have tweaked the code below so that it is.
% Since all distances are in terms of base units, specify the paper size in those
% terms as well.
height=middle, % Space for 20-4=16 lines
width=middle, % space for 26-4=22 col
More information about the ntg-context