summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/textpath/textpathmp.sty
blob: 1dc4d52008a8426ae8805570cdd82b55e2818de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%%% 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}%
}