Debian Codegraph @

texmf-dist/doc/latex/typog/title.mp

raw
1 %%
2 %% This is file `title.mp',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% typog.dtx (with options: `title')
8 %%
9 %% This is a generated file.
10 %%
11 %% Copyright (C) 2024, 2025 by Ch. L. Spiel
12 %%
13 %% This work may be distributed and/or modified under the conditions
14 %% of the LaTeX Project Public License, either version 1.3c of this
15 %% license or (at your option) any later version. The latest version
16 %% of this license is in
17 %% https://www.latex-project.org/lppl.txt
18 %% and version 1.3c or later is part of all distributions of LaTeX
19 %% version 2003/12/01 or later.
20 %%
21 %% This work has the LPPL maintenance status `maintained'.
22 %%
23 %% The Current Maintainer of this work is Ch. L. Spiel.
24 %%
25 %% This work consists of the files typog.dtx and typog.ins
26 %% and the derived files typog.sty, slant-angle.mp, invertedmarks.mp,
27 %% crooked-paragraphs.mp, smooth-parshapes.mp, title.mp,
28 %% typog-example.tex, typog-minimal-test.tex,
29 %% typog-without-microtype-test.tex
30 %% typog-grep.pl.in, typog-grep.pl,
31 %% typog-grep.pod, and teximan2latex.sed.
32 %%
33 %%
34 prologues := 3;
35 truecorners := 1;
36 linecap := butt;
37
38 string roman_font;
39 roman_font := "pplr8r"; % URW Palladio L - Roman
40
41 string italic_font;
42 italic_font := "pplri8r"; % URW Palladio L - Italic
43
44 picture dash_dotted;
45 dash_dotted := dashpattern(on 3 off 3 on 0 off 3);
46
47 u := 280;
48
49 font_scale := 20;
50
51 pair loc[];
52 loc[1] := .2[origin, (u, 0)];
53 loc[2] := .5[origin, (u, 0)];
54 loc[3] := .8[origin, (u, 0)];
55
56 pair slant_vector;
57 slant_vector := (63, 150);
58
59 pair raise_vector[];
60 raise_vector[0] := (0, 44);
61 raise_vector[1] := (0, 61);
62 raise_vector[2] := (0, 54);
63 raise_vector[3] := (0, 71);
64
65 picture letter_V;
66 letter_V := thelabel.top("V" infont roman_font scaled font_scale, loc[1]);
67
68 picture normal_hyphen;
69 normal_hyphen := thelabel.top("-" infont roman_font scaled font_scale, loc[2] + raise_vector[0]);
70
71 picture raised_hyphen;
72 raised_hyphen := thelabel.top("-" infont roman_font scaled font_scale, loc[2] + raise_vector[1]);
73
74 picture letter_A;
75 letter_A := thelabel.top("A" infont roman_font scaled font_scale, loc[3]);
76
77 beginfig(1);
78 draw letter_V;
79 draw normal_hyphen withcolor .9 white;
80 draw raised_hyphen;
81 draw letter_A;
82
83 pickup pencircle scaled .4pt;
84 draw (loc[1] -- loc[1] + slant_vector) shifted (7, 0) dashed evenly;
85 draw (loc[1] -- loc[1] + slant_vector) shifted (27, 0) dashed evenly;
86 draw (loc[1] -- loc[1] + slant_vector) shifted (80, 0) dashed evenly;
87 draw (loc[3] -- loc[3] + slant_vector) shifted (-68, 0) dashed evenly;
88
89 draw .35[origin, (u, 0)] + raise_vector[2] -- .8[origin, (u, 0)] + raise_vector[2]
90 dashed dash_dotted withcolor .6white;
91 draw .35[origin, (u, 0)] + raise_vector[3] -- .8[origin, (u, 0)] + raise_vector[3]
92 dashed dash_dotted;
93 endfig;
94 end