Block of text with natrual width but right-aligned
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
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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
participants (2)
-
Adam Lindsay
-
Giuseppe Bilotta