summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/rjlparshap/README
blob: c834e66328153a8847c95fd7aba6ba657e4ec8f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

Copyright (C) 2004 by Robert J Lee <latex@rjlee.homelinux.org>
--------------------------------------------------------------

This file may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.2
of this license or (at your option) any later version.
The latest version of this license is in:

http://www.latex-project.org/lppl.txt

and version 1.2 or later is part of all distributions of LaTeX 
version 1999/12/01 or later.



Parshape macros for LaTeX2e
---------------------------

Provides a front-end to the standard TeX \parshape macro. Allows
length registers to be reused, and \parshape commands to be generated
using loops and other TeX and LaTeX constructs.


Example usage:

\newlength{\len}

\begin{parshapecollect}
 \setlength{\len}{1em}
 \parshapelenout{\len} \parshapelenout{15em}
 \addtolength{\len}{6em}
 \parshapelenout{\len} \parshapelenout{9em}
 \addtolength{\len}{1em}
 \parshapelenout{0em} \parshapelenout{\len}
\end{parshapecollect}
\texttt{The quick brown fox jumps over the lazy dog.}


Produces (assuming a tt font with 1em per character):

 The quick brown
       fox jumps
over the
lazy dog



Commands are also available to process arrays of lengths in various
different ways; see PDF documentation for details.