| 1 |
%%% Support package for the textpath.mp package for MetaPost. |
| 2 |
%%% This package provides the \spaced command that is used |
| 3 |
%%% by textpath and has to be inserted in your LaTeX preamble. |
| 4 |
\RequirePackage{soul} |
| 5 |
\newlength{\textpath@inter} |
| 6 |
\newlength{\textpath@inner} |
| 7 |
\newcommand*{\spaced}[2][]{% |
| 8 |
#1% |
| 9 |
\setlength{\textpath@inter}{10bp}% |
| 10 |
\settowidth{\textpath@inner}{\ }% |
| 11 |
\addtolength{\textpath@inner}{\textpath@inter}% |
| 12 |
\sodef\textpath@spacedText{}{\textpath@inter}{\textpath@inner}{2\textpath@inner}% |
| 13 |
\textpath@spacedText{#2}% |
| 14 |
} |