| 1 |
%% |
| 2 |
%% This is file `slant-angle.mp', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% typog.dtx (with options: `slantangle') |
| 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 |
input TEX; |
| 39 |
TEXPRE("%&latex" & char(10) & "\documentclass{article}\begin{document}"); |
| 40 |
TEXPOST("\end{document}"); |
| 41 |
|
| 42 |
string roman_font; |
| 43 |
roman_font := "pplr8r"; % URW Palladio L - Roman |
| 44 |
|
| 45 |
string italic_font; |
| 46 |
italic_font := "pplri8r"; % URW Palladio L - Italic |
| 47 |
|
| 48 |
u := 360; |
| 49 |
|
| 50 |
font_scale := 10; |
| 51 |
|
| 52 |
pair loc[]; |
| 53 |
loc[1] := .2[origin, (u, 0)]; |
| 54 |
loc[2] := .5[origin, (u, 0)]; |
| 55 |
loc[3] := .8[origin, (u, 0)]; |
| 56 |
|
| 57 |
picture letter_H; |
| 58 |
letter_H := thelabel.top("H" infont italic_font scaled font_scale, loc[1]); |
| 59 |
|
| 60 |
picture letter_L; |
| 61 |
letter_L := thelabel.top("L" infont italic_font scaled font_scale, loc[2]); |
| 62 |
|
| 63 |
picture letter_a; |
| 64 |
letter_a := thelabel.top("a" infont italic_font scaled font_scale, loc[3]); |
| 65 |
|
| 66 |
path slant_angle; |
| 67 |
slant_angle := lrcorner letter_H + (14, 0) -- lrcorner letter_H + (-6, 0) -- urcorner letter_H + (3.5, 0); |
| 68 |
|
| 69 |
pair base_point; |
| 70 |
base_point := (xpart point 2 of slant_angle, ypart point 0 of slant_angle) ; |
| 71 |
|
| 72 |
pair angle_label; |
| 73 |
angle_label := point 2 of slant_angle + (0, -12); |
| 74 |
|
| 75 |
beginfig(1); |
| 76 |
draw letter_H; |
| 77 |
draw slant_angle; |
| 78 |
draw point 2 of slant_angle -- base_point dashed evenly; |
| 79 |
draw point 1 of slant_angle -- base_point withpen pencircle scaled 2pt; |
| 80 |
|
| 81 |
label.rt(TEX("$\alpha$"), angle_label); |
| 82 |
|
| 83 |
draw letter_L; |
| 84 |
draw slant_angle shifted (xpart lrcorner letter_L - xpart lrcorner letter_H + 2, 0); |
| 85 |
|
| 86 |
draw letter_a; |
| 87 |
draw slant_angle shifted (xpart lrcorner letter_a - xpart lrcorner letter_H - 3, 0); |
| 88 |
endfig; |
| 89 |
end |