• No results found

The grid will use \baselineskip as the line height

N/A
N/A
Protected

Academic year: 2021

Share "The grid will use \baselineskip as the line height"

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

.

The vgrid package

Scott Lawrence bytbox@gmail.com 0.1 from 2013/12/20

1 Introduction

The vgrid package overlays a grid intended to help the author enforce vertical rhythm on each page. The spacing of the grid is taken from \baselineskip, with the first line at the top of the text area.

Note that vgrid itself does not change any spacing – other packages (or care- ful font settings) must be used to achieve vertical rhythm. This document, for example, can be clearly seen to not have vertical rhythm.

2 Usage

To add a grid to each page, just place \usepackage{vgrid} in your document’s preamble. As of this version, there is no fine-grained control to allow grids to be excluded from certain pages. The grid will use \baselineskip as the line height.

3 Implementation

1\RequirePackage{everypage}

2\RequirePackage{tikz}

3\RequirePackage{ifoddpage}

4\newlength\vgrid@l \setlength\vgrid@l{\baselineskip}

5\newlength\vgrid@y

6\AddEverypageHook{

For every page, we need to re-calculate the coordinates of the grid.

7\def\@csm{\ifoddpageoroneside\oddsidemargin\else\evensidemargin\fi}

8\def\@left{\hoffset+\@csm}

9\def\@right{\@left+\textwidth}

10\def\@top{-\voffset-\topmargin-\headheight-\headsep}

11\def\@gridline{\draw [thin, gray]}

12\begin{tikzpicture}[overlay]

13\def\y{\@top-\vgrid@y}

14\@gridline (\@left, \@top) -- (\@left, \@top-\textheight);

15\@gridline (\@right, \@top) -- (\@right, \@top-\textheight);

1

(2)

.

16\setlength\vgrid@y{0pt}

17\@whiledim\vgrid@y<\textheight\do{

18\@gridline (\@left, \y) -- (\@right, \y);

19\addtolength{\vgrid@y}{\vgrid@l}

20}

21\@gridline (\@left, \y) -- (\@right, \y);

22\end{tikzpicture}

23}

2

Referenties

GERELATEERDE DOCUMENTEN

( 2007 ) sample spectrum were unambiguously detected and indi- cated that the wavelength scale is very accurate, i.e. a possible shift is smaller than the statistical uncertainties

Financial analyses 1 : Quantitative analyses, in part based on output from strategic analyses, in order to assess the attractiveness of a market from a financial

• You must not create a unit name that coincides with a prefix of existing (built-in or created) units or any keywords that could be used in calc expressions (such as plus, fil,

In deze scriptie zal worden getracht dit soort vragen te beantwoorden door de achttiende-eeuwse kardinaal- nepoot centraal te stellen: welke functies en rol

Replacing missing values with the median of each feature as explained in Section 2 results in a highest average test AUC of 0.7371 for the second Neural Network model fitted

Olivier is intrigued by the links between dramatic and executive performance, and ex- plores the relevance of Shakespeare’s plays to business in a series of workshops for senior

Als we er klakkeloos van uitgaan dat gezondheid voor iedereen het belangrijkste is, dan gaan we voorbij aan een andere belangrijke waarde in onze samenleving, namelijk die van

• Several new mining layouts were evaluated in terms of maximum expected output levels, build-up period to optimum production and the equipment requirements