* Block of text with natrual width but right-aligned
@ 2005-09-22 9:39 Giuseppe Bilotta
2005-09-22 10:22 ` Adam Lindsay
0 siblings, 1 reply; 4+ messages in thread
From: Giuseppe Bilotta @ 2005-09-22 9:39 UTC (permalink / raw)
I have a few lines that I need to push towards the right
maring. The lines should all have their natural width, and
be all left-aligned to the left of the block, but the block
itself should be right aligned. Like the following
First line of text |
Second line of text |
One more line of text|
How do I achieve this?
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Block of text with natrual width but right-aligned
2005-09-22 9:39 Block of text with natrual width but right-aligned Giuseppe Bilotta
@ 2005-09-22 10:22 ` Adam Lindsay
2005-09-22 10:35 ` Adam Lindsay
0 siblings, 1 reply; 4+ messages in thread
From: Adam Lindsay @ 2005-09-22 10:22 UTC (permalink / raw)
Giuseppe Bilotta said this at Thu, 22 Sep 2005 11:39:32 +0200:
> First line of text |
> Second line of text |
> One more line of text|
>
>
>How do I achieve this?
One quick and easy way, without worrying about low-level commands, is
with two nested \framed's:
\framed[width=broad,align=left,frame=off,offset=0pt]
{\framed[align=raggedright,frame=off,offset=0pt]
{First line of text\\
Second line of text\\
One more line of text}}
(I played with location= in \framedtext, but it didn't have the results
I expected.)
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk
Lancaster University, InfoLab21 +44(0)1524/510.514
Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Block of text with natrual width but right-aligned
2005-09-22 10:22 ` Adam Lindsay
@ 2005-09-22 10:35 ` Adam Lindsay
2005-09-22 15:23 ` Re[2]: " Giuseppe Bilotta
0 siblings, 1 reply; 4+ messages in thread
From: Adam Lindsay @ 2005-09-22 10:35 UTC (permalink / raw)
Talking to myself...
Adam Lindsay said this at Thu, 22 Sep 2005 11:22:18 +0100:
>(I played with location= in \framedtext, but it didn't have the results
>I expected.)
(Silly mistake...)
\defineframedtext[Giuseppe]
[align=raggedright,width=fit,offset=0pt,
frame=off,location=right]
\startGiuseppe
One line\\
Two lines\\
And a couple more
\stopGiuseppe
\input ward \par
\startGiuseppe
Here is\\
another short text to demonstrate things.
\stopGiuseppe
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk
Lancaster University, InfoLab21 +44(0)1524/510.514
Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re[2]: Block of text with natrual width but right-aligned
2005-09-22 10:35 ` Adam Lindsay
@ 2005-09-22 15:23 ` Giuseppe Bilotta
0 siblings, 0 replies; 4+ messages in thread
From: Giuseppe Bilotta @ 2005-09-22 15:23 UTC (permalink / raw)
Thursday, September 22, 2005 Adam Lindsay wrote:
> Talking to myself...
> Adam Lindsay said this at Thu, 22 Sep 2005 11:22:18 +0100:
>>(I played with location= in \framedtext, but it didn't have the results
>>I expected.)
> (Silly mistake...)
> \defineframedtext[Giuseppe]
> [align=raggedright,width=fit,offset=0pt,
> frame=off,location=right]
> \startGiuseppe
> One line\\
> Two lines\\
> And a couple more
> \stopGiuseppe
> \input ward \par
> \startGiuseppe
> Here is\\
> another short text to demonstrate things.
> \stopGiuseppe
Thank you very much.
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-22 15:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-22 9:39 Block of text with natrual width but right-aligned Giuseppe Bilotta
2005-09-22 10:22 ` Adam Lindsay
2005-09-22 10:35 ` Adam Lindsay
2005-09-22 15:23 ` Re[2]: " Giuseppe Bilotta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).