ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* encouraging line breaks
@ 2005-05-13 23:01 Stuart Jansen
  2005-05-13 23:51 ` Adam Lindsay
  0 siblings, 1 reply; 2+ messages in thread
From: Stuart Jansen @ 2005-05-13 23:01 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 887 bytes --]

What is the best way to encourage line breaks without hyphenation? I've
tried many combinations of \setuptolerances, \clubpenalty, \widowpenalty
\emergencystretch, etc. All to no avail. 

Basically, I've got XML content that is being rendered. Part of that
content needs to fit inside a small box at a large font size. (It's a
custom command tied to \chapter.) Although a line consisting of a single
word followed by copious white space would normally be very bad, in this
case it is fine. Below is an example situation where I want the text to
be rendered on two lines instead of one. I'm hoping I can do it without
adding manual breaks to the XML, however.

\definefont [GiantFont] [SansBold at 48pt]
\setupalign[nothyphenated]
\starttext
\framed[width=3in,align=right]{\GiantFont Foobar Bazqux}
\stoptext

-- 
Stuart Jansen <sjansen@gurulabs.com>
Guru Labs, L.C.

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: 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] 2+ messages in thread

* Re: encouraging line breaks
  2005-05-13 23:01 encouraging line breaks Stuart Jansen
@ 2005-05-13 23:51 ` Adam Lindsay
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Lindsay @ 2005-05-13 23:51 UTC (permalink / raw)


Hi, Stuart.

This is a tricky one, using a second non-obvious keyword as a parameter.
I asked about this on-list a couple years ago. If you want to follow the
thread, the messages are here:
<http://archive.contextgarden.net/search/20050101.000000.00000000@sb:
suppressing,sb:hyphenation.html>

Short answer:

\framed[width=3in,align={right,broad}]{\GiantFont Foobar Bazqux}

Stuart Jansen said this at Fri, 13 May 2005 17:01:53 -0600:

> Below is an example situation where I want the text to
>be rendered on two lines instead of one. I'm hoping I can do it without
>adding manual breaks to the XML, however.
>
>\definefont [GiantFont] [SansBold at 48pt]
>\setupalign[nothyphenated]
>\starttext
>\framed[width=3in,align=right]{\GiantFont Foobar Bazqux}
>\stoptext

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 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] 2+ messages in thread

end of thread, other threads:[~2005-05-13 23:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-13 23:01 encouraging line breaks Stuart Jansen
2005-05-13 23:51 ` Adam Lindsay

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