ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Patrick Gundlach" <patrick@gundla.ch>
Subject: Re: Wrong text alignment within Context.
Date: 3 Dec 2004 11:24:42 +0100	[thread overview]
Message-ID: <m2u0r31xxx.fsf@levana.de> (raw)
In-Reply-To: <BAY23-F625C7411F73DB93178B32FBBF0@phx.gbl> (Dirar BOUGATEF's message of "Wed, 01 Dec 2004 21:01:43 +0000")

Hi Dirar and others,

the sample pdf has the following problem:

                   |
                   |
                   |
             l’expression
                   |
                   |
                   |

th word(s) "l'expression" stick into the right margin. This is (I
guess) due to the following facts:

1) TeX will use the right margin for words if the other solution for a
   line breaking problem would be to stretch the innerword spacing.
   TeX has complicated rules for determining the "badness" of a
   solution, the badness of stretching in your case is obviously
   higher then the badness of sticking into the margin. You have to
   play with TeX's parameters to decrease the badness of interword
   spacing (but see also 2)). In your case you set \tolerance to 200,
   which is very intolerant :-) So, for an example, say \tolerance
   8000 (or use the ConTeXt way like \setuptolerance[verytolerant] --
   never do this in a real world text!). Then your text should
   look ugly again, but in another way. There are quite few parameters
   for interfering TeXs paragraph builder.

2) TeX should hyphenate the word "expression" in some way, but doesn't
   do it. I am not sure where the allowed breakpoints are, but you
   might want to tell TeX. Perhaps "expression" can be hyphenated but
   "l'expression" not. But I don't know what to do here, other french
   writers should help you with that problem. Use \showhypens{....} to
   find out about the hypenation places.

There is no magic to your problem :-)

Patrick
--
ConTeXt wiki: http://contextgarden.net

      parent reply	other threads:[~2004-12-03 10:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-01 21:01 Dirar BOUGATEF
2004-12-01 21:58 ` Patrick Gundlach
2004-12-03 10:24 ` Patrick Gundlach [this message]

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=m2u0r31xxx.fsf@levana.de \
    --to=patrick@gundla.ch \
    --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).