From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84013 Path: news.gmane.org!not-for-mail From: Christian Prim Newsgroups: gmane.comp.tex.context Subject: Re: question concerning \setupalign \setuptolerance Date: Fri, 30 Aug 2013 17:55:43 +0200 Message-ID: References: <6DCA7FDF-0D43-47A5-AC1C-8DB6A82DDDAD@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1207263552==" X-Trace: ger.gmane.org 1377878179 23155 80.91.229.3 (30 Aug 2013 15:56:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Aug 2013 15:56:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 30 17:56:23 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VFR3f-0003cg-Ac for gctc-ntg-context-518@m.gmane.org; Fri, 30 Aug 2013 17:56:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 35A0410238; Fri, 30 Aug 2013 17:54:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EcGh9-oXHSP4; Fri, 30 Aug 2013 17:54:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BD94D10228; Fri, 30 Aug 2013 17:54:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7F5B10228 for ; Fri, 30 Aug 2013 17:54:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WRiUVcjN6GX7 for ; Fri, 30 Aug 2013 17:54:21 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id E47A110222 for ; Fri, 30 Aug 2013 17:54:21 +0200 (CEST) Original-Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7UFtigd017625 for ; Fri, 30 Aug 2013 17:55:44 +0200 Original-Received: by mail-lb0-f170.google.com with SMTP id w7so1865244lbi.15 for ; Fri, 30 Aug 2013 08:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=6gYYZn41qEsYJzlAIV6MmZrSzj8XQhtddseS5kJFkzo=; b=czFywphmuJQdferNF+DlmlTQKtCUOYm5mhlqrkEEzA5QuSdPA1l9iX+YbZ4UjCdOuI Jk/XxFuCbxhPepzUiLl6BvyUP7H3mIybXCzSUFaPnIS3CYI+k0/N/NP/x0qY1F0VK62L Gh5ntQ/WJXcOE2MxNqZx8gzsNFhsSb4ueRyVtwu8zpeokti5g2r2RDaS860yHupXS2n+ LtM077kld+haMO0Xa25b3npIPBnJVeVQKY/LyywWd98WBzf5oE83PllMhC18RxqHAsep ni1c7qD/mvKWURxk2HMVSaoloB8keV7FTeuPLnJ8U2bSgArcFn/XnDLd5/u7P8ijZH1F BM0g== X-Received: by 10.112.64.36 with SMTP id l4mr8409126lbs.15.1377878143893; Fri, 30 Aug 2013 08:55:43 -0700 (PDT) Original-Received: by 10.112.181.1 with HTTP; Fri, 30 Aug 2013 08:55:43 -0700 (PDT) In-Reply-To: <6DCA7FDF-0D43-47A5-AC1C-8DB6A82DDDAD@gmail.com> X-Google-Sender-Auth: LD2I4iDyJ5xmVxdj3ehAwf5_CAA X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c04::22a; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RKj3TIqQ - 1f9d3d8d3c1b - 20130830 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84013 Archived-At: --===============1207263552== Content-Type: multipart/alternative; boundary=001a11c3eee44f86e804e52c4106 --001a11c3eee44f86e804e52c4106 Content-Type: text/plain; charset=ISO-8859-1 Thanks Wolfgang I have tested it (on new beta) but the alignment is still wrong in the tabulate-environment. It's correct in the framedtext-environment, but tolerance is still missing, so that a line is still too long. My new questions: - What about tolerance? Where must I add the keys? - What about tabulate-environment? Thanks! Christian My new MWE is: \definefontfeature[default][default][expansion=quality,protrusion=quality] \usetypescript[palatino] \setupbodyfont[palatino,11pt] \setupbodyfontenvironment[default][em=italic] \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] \setupframedtext[align={normal,hanging,hz}] %NEW \setuptabulate[align={normal,hanging,hz}] %NEW \showframe %NEW, for better seeing \starttext \subject{Normal Text} align working, tolerance working. \input knuth \subject{Table} Table resets align/tolerance: \starttabulate \NC align/tolerance not working \NC \input knuth \NC\NR \NC align/tolerance working \NC \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] \input knuth \NC\NR \stoptabulate \subject{Frame} Framedtext resets align/tolerance: \startframedtext[width=0.6\textwidth] align working, tolerance not working \input tufte \stopframedtext \startframedtext[width=0.6\textwidth] \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] align/tolerance working \input tufte \stopframedtext \stoptext 2013/8/30 Wolfgang Schuster > > Am 30.08.2013 um 14:23 schrieb Christian Prim : > > > Dear list > > > > is there a way to \setupalign and \setuptolerance globaly? > > > > In tabulate- or frameenvironement for example they are reseted. > > Environments which have a align key use the settings of the key and ignore > global values, to enable protrusion and font expansion for these > environment > you have to change their align values. > > \setupframedtext > [align={normal,hanging,hz}] > > \setuptabulate > [align={normal,hanging,hz}] > > Wolfgang > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --001a11c3eee44f86e804e52c4106 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks Wolfgang

I have tested it (on ne= w beta) but the alignment is still wrong in the tabulate-environment. It= 9;s correct in the framedtext-environment, but tolerance is still missing, = so that a line is still too long.

My new questions:
- What about tolerance? Whe= re must I add the keys?
- What about tabulate-environment?
<= div>
Thanks!
Christian

My new MWE is:

\definefontfeature[default][de= fault][expansion=3Dquality,protrusion=3Dquality]
\usetypescript[p= alatino]
\setupbodyfont[palatino,11pt]
\setupbodyfonten= vironment[default][em=3Ditalic]
\setupalign[hz,hanging]
\setuptolerance[horizontal,stretch]<= /div>

\setupframedtext[align=3D{normal,hanging,hz}] %NEW=
\setuptabulate[align=3D{normal,hanging,hz}] %NEW
\show= frame %NEW, for better seeing

\starttext
\subject{Normal Text}
al= ign working, tolerance working.

\input knuth
=

\subject{Table}
Table resets align/tolerance:=
\starttabulate
\NC align/tolerance not working \NC \input kn= uth \NC\NR
\NC align/tolerance working \NC \setupalign[hz,hanging= ]
\setuptolerance[horizontal,stretch] \input knuth \NC\NR
\stoptabulate

\subject{Frame}
Frame= dtext resets align/tolerance:
\startframedtext[width=3D0.6\textwi= dth]
align working, tolerance not working

\input tufte
\stopframedtext

\startframe= dtext[width=3D0.6\textwidth]
\setupalign[hz,hanging]
\s= etuptolerance[horizontal,stretch]
align/tolerance working

\input tufte
\stopframedtext

\stoptext


2013/8/30 Wolfgang Schuster <schuster.wol= fgang@gmail.com>

Am 30.08.2013 um 14:23 schrieb Christian Prim <christian.prim@gmx.ch>:

> Dear list
>
> is there a way to \setupalign and \setuptolerance globaly?
>
> In tabulate- or frameenvironement for example they are reseted.

Environments which have a align key use the settings of the key and i= gnore
global values, to enable protrusion and font expansion for these environmen= t
you have to change their align values.

\setupframedtext
=A0 [align=3D{normal,hanging,hz}]

\setuptabulate
=A0 [align=3D{normal,hanging,hz}]

Wolfgang
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--001a11c3eee44f86e804e52c4106-- --===============1207263552== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1207263552==--