ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Stuart Jansen <sjansen@gurulabs.com>
Subject: encouraging line breaks
Date: Fri, 13 May 2005 17:01:53 -0600	[thread overview]
Message-ID: <1116025313.8847.8.camel@localhost.localdomain> (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

             reply	other threads:[~2005-05-13 23:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-13 23:01 Stuart Jansen [this message]
2005-05-13 23:51 ` Adam Lindsay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1116025313.8847.8.camel@localhost.localdomain \
    --to=sjansen@gurulabs.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).