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
|
\documentclass[border=5mm]{standalone}
\usepackage{luamplib}
\def\tll#1{$\vcenter{\let\\\cr\halign{\hss\textsf{##}\hss\cr#1\cr}}$}
\begin{document}
\mplibtextextlabel{enable}
\begin{mplibcode}
path paper; paper = origin {dir -16} .. (55, 0) {dir -13} -- (55,34) -- (0, 34) -- cycle;
path source, pdf;
source = paper;
pdf = paper shifted 210 right;
beginfig(1);
fill source withcolor (1,1,7/8);
draw source;
label("\tll{MP source\\in wrapper}", center source);
label.bot("\tll{Edit with\\MacVim}", point 1/2 of source shifted 8 down);
fill pdf withcolor (7/8, 7/8, 1);
draw pdf; label("\textsf{PDF}", center pdf);
label.bot("\tll{Preview with\\Skim.app}", point 1/2 of pdf shifted 8 down);
label.top("\tll{Use in \LaTeX with\\\texttt{\textbackslash includegraphics}}", point 5/2 of pdf shifted 34 up);
interim ahangle := 30;
drawarrow (origin -- 34 up) shifted point 5/2 of pdf dashed evenly scaled 1/2;
drawarrow point 3/2 of bbox source -- point 7/2 of bbox pdf;
label.top("\texttt{lualatex}", 1/2[center source, center pdf]);
endfig;
\end{mplibcode}
\end{document}
|