File: textpathmp.sty

package info (click to toggle)
texlive-base 2022.20230122-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 943,248 kB
  • sloc: perl: 43,776; sh: 5,749; makefile: 3,870; javascript: 3,034; ruby: 2,266; tcl: 2,130; xml: 1,874; python: 1,025; awk: 606; cpp: 549; lisp: 447; ansic: 103; 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}%
}