From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84017 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 19:39:47 +0200 Message-ID: References: <6DCA7FDF-0D43-47A5-AC1C-8DB6A82DDDAD@gmail.com> <94DA4D6E-E254-4E13-9D4A-BE8147F5B147@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1502620526==" X-Trace: ger.gmane.org 1377884419 30145 80.91.229.3 (30 Aug 2013 17:40:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Aug 2013 17:40:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 30 19:40: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 1VFSgJ-0005OB-4f for gctc-ntg-context-518@m.gmane.org; Fri, 30 Aug 2013 19:40:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C3DBF1022D; Fri, 30 Aug 2013 19:38:58 +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 nyuLuDroCd1n; Fri, 30 Aug 2013 19:38:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 196CD1022E; Fri, 30 Aug 2013 19:38:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 111CD1022E for ; Fri, 30 Aug 2013 19:38:46 +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 dQc-YG5hWvsW for ; Fri, 30 Aug 2013 19:38:25 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id B14681022D for ; Fri, 30 Aug 2013 19:38:25 +0200 (CEST) Original-Received: from mail-la0-x22e.google.com (mail-la0-x22e.google.com [IPv6:2a00:1450:4010:c03::22e]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7UHeNuo008081 for ; Fri, 30 Aug 2013 19:40:23 +0200 Original-Received: by mail-la0-f46.google.com with SMTP id eh20so1779808lab.33 for ; Fri, 30 Aug 2013 10:39:48 -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=St6sRu4sSY9LU2LGY/uXCYSXwmvkdZF6L1OD7Bu8teQ=; b=hV/GoXPVCdVScLF3UQV6Hf0hOxAKdzyze5rKsKD9unJJVOnbgYu4yojM7txiXhmfpo KgYuyGrOlFi6UvjWDrT+W1BLoonKZXTDCepO0gB6J7U9Av9ah49Mh5uIudISitCG1W83 ATRDozSh8kwL4EDxueTot5f4x+ne2B86QMX22GxTxMLh6Cv44ijloxwe1LEGwKq0gbpn FOAYkqo5xEi7Uhny4DKlbAUKq+vWuetHN8pJBAiYnFLRJyllYZlmlaE8CqW3s5PViN9G LN6mEdtakoFesQk+AR3WkJYtJ4B92cekPSFo2Hlizb3I04d9gjQ1eGnPjlnUzQRGrQiy 4/tw== X-Received: by 10.152.37.103 with SMTP id x7mr8790335laj.28.1377884387927; Fri, 30 Aug 2013 10:39:47 -0700 (PDT) Original-Received: by 10.112.181.1 with HTTP; Fri, 30 Aug 2013 10:39:47 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: OuxbbAzuMpqdYQN6UdkLpeK7BMA X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Kj5EnjR - dd87e62ec625 - 20130830 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:84017 Archived-At: --===============1502620526== Content-Type: multipart/alternative; boundary=089e0160b5e47bf04d04e52db537 --089e0160b5e47bf04d04e52db537 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Sorry I still have a problem with \startfiguretext .... \stopfiguretext. There ist no \setupfiguretext nor \setupfloattext to enter the align=3D.... keypairs. Where must I enter "align=3D{normal,hanging,hz,stretch}" to make the text around these figures aligned like the rest of the document? Thanks Christian PS.: My minimal (not) working example: \definefontfeature[default][default][expansion=3Dquality,protrusion=3Dquali= ty] %\setup?figure?text[align=3D{normal,hanging,hz,stretch}] \setupalign[hz,hanging,stretch] \showframe \starttext Correct Text \input knuth \startfiguretext[right,none]{}{\externalfigure[cow][width=3D0.5\textwidth]} Wrong alignment! \input knuth \stopfiguretext \stoptext 2013/8/30 Christian Prim > Thanks Wolfgang! Now everything is clear and fine. > > Christian > > > 2013/8/30 Wolfgang Schuster > >> >> Am 30.08.2013 um 17:55 schrieb Christian Prim : >> >> > 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? >> >> The \setupalign command does also accepts =93tolerant=94, =93verytoleran= t=94 and >> =93stretch=94 as keyword which means you don=92t need the \setuptoleranc= e >> command. This is important because the value of the align key is passed = to >> the \setupalign command. >> >> > - What about tabulate-environment? >> >> I=92m sorry but I was wrong about the setting for the tabulate environme= nt, >> the align value of \setuptabulate accepts only =93left=94, =93middle=94,= =93right=94 >> and =93normal=94 as arguments. There is also no way to change the format= of the >> default tabulation environment, only local changes are possible, e.g. >> >> \starttabulate[|l|pA{normal,hanging,hz,stretch}|] >> \NC align/tolerance not working \NC \input knuth \NC\NR >> \NC align/tolerance working \NC \input knuth \NC\NR >> \stoptabulate >> >> When you want a different default alignment you have to create your own >> tabulation environment with the \definetabulate command. >> >> Wolfgang >> >> >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o >> 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 >> >> ________________________________________________________________________= ___________ >> > > --089e0160b5e47bf04d04e52db537 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Sorry

I still have a problem with \star= tfiguretext .... \stopfiguretext.

There ist no \se= tupfiguretext nor \setupfloattext to enter the align=3D.... keypairs. Where= must I enter "align=3D{normal,hanging,hz,stretch}" to make the text around these figure= s aligned like the rest of the document?

Tha= nks
Christian

PS.= : My minimal (not) working example:

\definefontfeature[= default][default][expansion=3Dquality,protrusion=3Dquality]

%\setup?figure?text[align=3D{normal,hanging,hz,stretch}]
\setupalign[hz,hanging,stretch]
\showframe

\starttext
Correct Text

\input knuth
\start= figuretext[right,none]{}{\externalfigure[cow][width=3D0.5\textwidth]}
Wrong alignment!

\input knuth
\s= topfiguretext
\stoptext


2013/8/30 Christ= ian Prim <christian.prim@gmx.ch>
Thanks Wolfgang! Now everyt= hing is clear and fine.
=
Christian


2013/8/3= 0 Wolfgang Schuster <schuster.wolfgang@gmail.com><= br>

Am 30.08.2013 um 17:55 schrieb Christian Prim <christian.prim@gmx.ch>:

> 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?

The \setupalign command does also accepts =93tolerant=94, =93verytole= rant=94 and =93stretch=94 as keyword which means you don=92t need the \setu= ptolerance command. This is important because the value of the align key is= passed to the \setupalign command.

> - What about tabulate-environment?

I=92m sorry but I was wrong about the setting for the tabulate environment,= the align value of \setuptabulate accepts only =93left=94, =93middle=94, = =93right=94 and =93normal=94 as arguments. There is also no way to change t= he format of the default tabulation environment, only local changes are pos= sible, e.g.

\starttabulate[|l|pA{normal,hanging,hz,stretch}|]
\NC align/tolerance not working \NC \input knuth \NC\NR
\NC align/tolerance working =A0 =A0 \NC \input knuth \NC\NR
\stoptabulate

When you want a different default alignment you have to create your own tab= ulation environment with the \definetabulate command.

Wolfgang

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

maillist : ntg-cont= ext@ntg.nl / 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
___________________________________________________________________________= ________


--089e0160b5e47bf04d04e52db537-- --===============1502620526== 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 ___________________________________________________________________________________ --===============1502620526==--