This is a kind of Newbie problem, for I am using PSTricks the first
time.
I have the following simple LaTeX code:
\documentclass{article}
\usepackage{pstricks}
\begin{document}
\pspicture(0,0)(1,1)
\rput(0.5,0.5){This is a\\linebreak test}
\endpspicture
\end{document}
The \rput command in PSTricks ignores the \\ (as well as \linebreak)
and prints out "This is alinebreak test".
Can someone help me on that?
Many thanks in advance,
Malte
On 6 Nov 2001 08:01:01 -0800, Malte Persike wrote:
> The \rput command in PSTricks ignores the \\ (as well as \linebreak)
> and prints out "This is alinebreak test".
> Can someone help me on that?
You must put a parbox inside the rput command.
Olivier.
--
Olivier Crouzet
Human and Machine Perception Research Centre
Keele University
You don't have \linebreak, you have \\ followed by the word
"linebreak". I don't believe \linebreak would work anyway.
Try this:
\rput(0.5,0.5){\shortstack[l]{this is a\\test}}
(That's an ell in the optional parameter.) \shortstack works
in the latex picture environment; it ought to work here, too.
\shortstack takes an optional argument of c, r, or l, determining
which way to align the lines.
Dan Luecking