summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/leading/leading.sty
blob: b060bf54f73df1ad84867c84aa8a0c5705cdb27d (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
%%
%% This is file `leading.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% leading.dtx  (with options: `package')
%%   _______________________________________
%%   Copyright (C) 2007-2008  Will Robertson
%%   License information appended.
\ProvidesPackage{leading}
  [2008/12/11 v0.3 Define leading length]
\RequirePackage{calc}
\newcommand\leading[1]{%
  \begingroup
    \@tempdima=\f@baselineskip\relax
    \@tempdimb=#1\relax
    \setlength\@tempdimc{1pt*\ratio{\@tempdimb}{\@tempdima}}%
    \global\@tempdimc=\@tempdimc
  \endgroup
  \linespread{\strip@pt\@tempdimc}\selectfont\ignorespaces}
%% 
%% Copyright (C) 2007-2008 by Will Robertson <wspr81@gmail.com>
%% 
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
%% this license is at: http://www.latex-project.org/lppl.txt
%% 
%% This work is "maintained" (as per LPPL maintenance status)
%% by Will Robertson.
%% 
%% This work consists of the file  leading.dtx
%%           and the derived files leading.sty and leading.pdf.
%% 
%%
%% End of file `leading.sty'.