summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/textpath
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-12-08 23:41:43 +0000
committerKarl Berry <karl@freefriends.org>2006-12-08 23:41:43 +0000
commit07f57f0989b2d8ce23bbd08ca8e5d7ed793dcfd8 (patch)
tree98c6acc01940ef85d7201427e7f6e7787936a689 /Master/texmf-dist/tex/latex/textpath
parente2075366cc07edd608fc1018ce240b412e7c834e (diff)
metapost package textpath 1.5
git-svn-id: svn://tug.org/texlive/trunk@2643 c570f23f-e606-0410-a88d-b1316a301751
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}%
+}