blob: a8c5cb1300d668563d58f6191766fdb747a105da (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
%%
%% This is file `rule-D.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% rule-D.dtx (with options: `package')
%%
%% EXPERIMENTAL CODE
%%
%% This Work depends on the correct version of expl3 release. If
%% you'll update expl3 you may need a update of this this Work too.
%%
%% Do not distribute this file without also distributing the
%% source files specified above.
%%
%% Do not distribute modified version of this file.
%%
%% File: rule-D.dtx Copyright (C) 2012 Markus Kohm
%%
%% It may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License (LPPL), either version 1.3c of this
%% license or (at your option) any later version. The latest version
%% of this license is in the file
%%
%% http://www.latex-project.org/lppl.txt
%%
%% This file is part of the "GS1 bundle" (The Work in LPPL)
%% and all files in that bundle must be distributed together.
%%
%% The released version of this bundle is available from CTAN.
%%
%% -------------------------------------------------------------------------
\RequirePackage{expl3}[2017/05/29]
\GetIdInfo$Id: rule-D.dtx 22 2017-07-15 18:03:18Z mjk $
{rule functions for LaTeX3}
\ProvidesExplPackage
{rule-D} {\ExplFileDate} {\ExplFileVersion}
{experimental~L3~rule~functions}
\cs_new:Npn \rule:nn #1#2
{
\rule:nnn { \c_zero_dim } { #1 } { #2 }
}
\cs_new:Npn \rule:nnn #1#2#3
{
\hbox_unpack_clear:N \c_empty_box
\hbox:n
{
\tex_vrule:D width \dim_eval:n { #2 }
height \dim_eval:n { #1 + #3 }
depth -\dim_eval:n { #1 }
}
}
%%
%%
%% End of file `rule-D.sty'.
|