summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/textpath
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/textpath')
-rw-r--r--Master/texmf-dist/tex/latex/textpath/textpathmp.sty14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/textpath/textpathmp.sty b/Master/texmf-dist/tex/latex/textpath/textpathmp.sty
new file mode 100644
index 00000000000..1dc4d52008a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/textpath/textpathmp.sty
@@ -0,0 +1,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}%
+}