File: textpathmp.sty

package info (click to toggle)
texlive-base 2012.20120611-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 403,288 kB
  • sloc: perl: 37,753; ruby: 4,714; sh: 4,212; makefile: 3,659; xml: 2,387; ansic: 1,731; python: 1,029; tcl: 631; awk: 603; cpp: 549; lisp: 428; java: 32; sed: 8
file content (14 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (12)
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}%
}