ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \raggedright?
@ 2005-03-12 23:42 Gerben Wierda
  2005-03-13  0:27 ` \raggedright? Nikolai Weibull
  2005-03-13 11:02 ` \raggedright? Willi Egger
  0 siblings, 2 replies; 4+ messages in thread
From: Gerben Wierda @ 2005-03-12 23:42 UTC (permalink / raw)


I tried to get one piece in a justified text to behave as follows: 
right aligned and with a jagged left edge. But what I tried influenced 
my entire document.

Can someone explain me how to do this?

G

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \raggedright?
  2005-03-12 23:42 \raggedright? Gerben Wierda
@ 2005-03-13  0:27 ` Nikolai Weibull
  2005-03-13 11:24   ` \raggedright? Taco Hoekwater
  2005-03-13 11:02 ` \raggedright? Willi Egger
  1 sibling, 1 reply; 4+ messages in thread
From: Nikolai Weibull @ 2005-03-13  0:27 UTC (permalink / raw)


* Gerben Wierda (Mar 13, 2005 00:50):
> I tried to get one piece in a justified text to behave as follows:
> right aligned and with a jagged left edge. But what I tried influenced
> my entire document.

\starttext
\startalignment[left]
Blah blah blah
\stopalignment
\stoptext

Don't ask why the parameter to \startalignment is left, not right.  Look
at the context wiki [1] for information on why this is so,
	nikolai

[1] http://contextgarden.net/Main_Page

-- 
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \raggedright?
  2005-03-12 23:42 \raggedright? Gerben Wierda
  2005-03-13  0:27 ` \raggedright? Nikolai Weibull
@ 2005-03-13 11:02 ` Willi Egger
  1 sibling, 0 replies; 4+ messages in thread
From: Willi Egger @ 2005-03-13 11:02 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

Hi Gerben,

with \raggedright one needs to use {}. May be a better approach is to 
use \framedtext[align=left,width=xxcm,frame=off]{your text}
Pease refer to the attached file.

Kind regards

Willi

Gerben Wierda wrote:
> I tried to get one piece in a justified text to behave as follows: right 
> aligned and with a jagged left edge. But what I tried influenced my 
> entire document.
> 
> Can someone explain me how to do this?
> 
> G
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

[-- Attachment #2: ragged-Wierda.tex --]
[-- Type: text/plain, Size: 546 bytes --]

% Ragged right text
% Gerben Wierda
% Context file
% filename: ragged-Wierda.ex
% Willi Egger
% 13-03-2005

\setupoutput[pdftex]
\mainlanguage[en]
\setuptolerance[tolerant,stretch]
\startbuffer[Ward]
	\input ward
\stopbuffer

\startbuffer[Knuth]
	\input knuth
\stopbuffer

\startbuffer[Zapf]
	\input zapf
\stopbuffer

\starttext

{\raggedright{ \getbuffer[Knuth]}}
\blank[2*big]
{\raggedleft {\getbuffer[Ward]}}
\blank[2*big]
{\raggedright {\getbuffer[Zapf]}}

\framedtext[align=left,width=9cm,fram=on,offset=.5cm]{
	\getbuffer[Zapf]}

\stoptext

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: \raggedright?
  2005-03-13  0:27 ` \raggedright? Nikolai Weibull
@ 2005-03-13 11:24   ` Taco Hoekwater
  0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2005-03-13 11:24 UTC (permalink / raw)


Nikolai Weibull wrote:

> Don't ask why the parameter to \startalignment is left, not right.  Look
> at the context wiki [1] for information on why this is so,

This also works, and is a bit more natural:

\startalignment[flushright]
Blah blah blah
\stopalignment

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-03-13 11:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-12 23:42 \raggedright? Gerben Wierda
2005-03-13  0:27 ` \raggedright? Nikolai Weibull
2005-03-13 11:24   ` \raggedright? Taco Hoekwater
2005-03-13 11:02 ` \raggedright? Willi Egger

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).