From 07f57f0989b2d8ce23bbd08ca8e5d7ed793dcfd8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 8 Dec 2006 23:41:43 +0000 Subject: metapost package textpath 1.5 git-svn-id: svn://tug.org/texlive/trunk@2643 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/textpath/textpathmp.sty | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/textpath/textpathmp.sty (limited to 'Master/texmf-dist/tex/latex/textpath') 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}% +} -- cgit v1.2.3