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