| 1 |
|
| 2 |
Copyright (C) 2004 by Robert J Lee <[email protected]> |
| 3 |
-------------------------------------------------------------- |
| 4 |
|
| 5 |
This file may be distributed and/or modified under the |
| 6 |
conditions of the LaTeX Project Public License, either version 1.2 |
| 7 |
of this license or (at your option) any later version. |
| 8 |
The latest version of this license is in: |
| 9 |
|
| 10 |
http://www.latex-project.org/lppl.txt |
| 11 |
|
| 12 |
and version 1.2 or later is part of all distributions of LaTeX |
| 13 |
version 1999/12/01 or later. |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
Parshape macros for LaTeX2e |
| 18 |
--------------------------- |
| 19 |
|
| 20 |
Provides a front-end to the standard TeX \parshape macro. Allows |
| 21 |
length registers to be reused, and \parshape commands to be generated |
| 22 |
using loops and other TeX and LaTeX constructs. |
| 23 |
|
| 24 |
|
| 25 |
Example usage: |
| 26 |
|
| 27 |
\newlength{\len} |
| 28 |
|
| 29 |
\begin{parshapecollect} |
| 30 |
\setlength{\len}{1em} |
| 31 |
\parshapelenout{\len} \parshapelenout{15em} |
| 32 |
\addtolength{\len}{6em} |
| 33 |
\parshapelenout{\len} \parshapelenout{9em} |
| 34 |
\addtolength{\len}{1em} |
| 35 |
\parshapelenout{0em} \parshapelenout{\len} |
| 36 |
\end{parshapecollect} |
| 37 |
\texttt{The quick brown fox jumps over the lazy dog.} |
| 38 |
|
| 39 |
|
| 40 |
Produces (assuming a tt font with 1em per character): |
| 41 |
|
| 42 |
The quick brown |
| 43 |
fox jumps |
| 44 |
over the |
| 45 |
lazy dog |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
Commands are also available to process arrays of lengths in various |
| 50 |
different ways; see PDF documentation for details. |