Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Text parallelogrammartig setzen

0 views
Skip to first unread message

Jens Kubieziel

unread,
Dec 19, 2002, 5:41:58 PM12/19/02
to
Hallo,

in einem Treffen der LUG kam heute eine Diskussion auf, ob es möglich
ist, mit LaTeX den Text verschoben in der Art eines Parallelogramms zu
setzen.

Beispiel:

____________________________________________
/' Erste Zeile Erste Zeile Erste Zeile Ers /'
/' Zweite Zeile Zweite Zeile Zweite Zeile /'
/' Dritte Zeile Dritte Zeile Dritte Zeile /'
/' Vierte Zeile Vierte Zeile Vierte Zeile /'
/'___________________________________________/'

Gibt es eine Möglichkeit, dies automatisch zu erstellen?

Danke für Hinweise
--
Jens Kubieziel mailto:je...@kubieziel.de
Ignorance is never out of style. It was in fashion yesterday, it is the
rage today, and it will set the pace tomorrow.
-- Franklin K. Dane

Thomas Lotze

unread,
Dec 19, 2002, 6:20:28 PM12/19/02
to
On Thu, 19 Dec 2002 23:41:58 +0100, Jens Kubieziel wrote:

> in einem Treffen der LUG kam heute eine Diskussion auf,

Ist mir das entgangen? Kann mich gar nicht erinnern - solange ist das
doch nun auch noch nicht her ;o)

> ob es möglich
> ist, mit LaTeX den Text verschoben in der Art eines Parallelogramms zu
> setzen.

[...]


> Gibt es eine Möglichkeit, dies automatisch zu erstellen?

Zwei Moeglichkeiten: Zum einen bietet TeX selbst \parshape, das die
Angabe von Beginn und Laenge der einzelnen Zeilen eines Absatzes
ermoeglicht. Das ist aber nur dann wirklich brauchbar, wenn die Anzahl
der Zeilen und ihre Hoehen vor dem Setzen des Absatzes bekannt sind und
nicht vom Umbruch abhaengen.

Zum anderen gibt es aus LaTeX2.09-Zeiten das Paket shapepar von Donald
Arseneau (CTAN:macros/latex/contrib/other/misc/shapepar.sty). Dort kannst
Du die aeussere Form des Absatzes durch Beginn und Laenge von
horizontalen Scanlines beschreiben, deren Lage in bezug auf die gesamte
Hoehe des Absatzes waehlbar ist. Der Absatz wird dann solange neu
gesetzt, bis er die beschriebene Form moeglichst vollstaendig ausfuellt.

\documentclass{article}

\usepackage{shapepar}

\begin{document}

\shapepar{{5}%
{0}b{2}\\%
{0}t{2}{8}\\%
{5}t{0}{8}\\%
{5}e{8}}
The lines in the spec are not lines of text; nor are they the lines
that you would use to draw the shape itself. They are horizontal
scans across the shape at irregular intervals. Curved shapes need
many scan lines for accurate rendering while simple shapes need only
a few. To determine the line specifications, start by drawing the
shape on paper, then draw a series of horizontal lines across it,
including lines that just touch the top and the bottom of the figure.
Each line crosses over pieces of the figure in some region.

\end{document}

Viele Gruesse,
Thomas

--
Thomas Lotze

thomas...@gmx.net http://www.thomas-lotze.de/

0 new messages