From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98462 Path: news.gmane.org!.POSTED!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: fixed spacing Date: Mon, 17 Jul 2017 16:05:06 -0400 Message-ID: <87f44273-a287-dd4f-3e48-50729be059b0@rik.users.panix.com> References: <85383798-5D79-40B2-B54F-82FB5C2E8988@klankschap.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3997707920371253576==" X-Trace: blaine.gmane.org 1500321951 11482 195.159.176.226 (17 Jul 2017 20:05:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Jul 2017 20:05:51 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 17 22:05:45 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dXCH0-0002Yz-Kb for gctc-ntg-context-518@m.gmane.org; Mon, 17 Jul 2017 22:05:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D624A104936; Mon, 17 Jul 2017 22:05:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zYe3hvuGo4s6; Mon, 17 Jul 2017 22:05:23 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8ADB9104599; Mon, 17 Jul 2017 22:05:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C2615104599 for ; Mon, 17 Jul 2017 22:05:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l151T2O-LmDv for ; Mon, 17 Jul 2017 22:05:21 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2A2831011A9 for ; Mon, 17 Jul 2017 22:05:10 +0200 (CEST) Original-Received: from [192.168.201.10] (cpe-24-194-22-135.nycap.res.rr.com [24.194.22.135]) by mailbackend.panix.com (Postfix) with ESMTPSA id AE30E107FB for ; Mon, 17 Jul 2017 16:05:09 -0400 (EDT) In-Reply-To: <85383798-5D79-40B2-B54F-82FB5C2E8988@klankschap.nl> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:98462 Archived-At: This is a multi-part message in MIME format. --===============3997707920371253576== Content-Type: multipart/alternative; boundary="------------623B9149C67E539961524B92" Content-Language: en-US This is a multi-part message in MIME format. --------------623B9149C67E539961524B92 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 2017-07-17 15:23, Floris van Manen wrote: > dear List, > > I try to put a set of numbers into a block text. > I want to keep the spacing within the items fixed > x-y:~z, > How do i do that? > The attached code does not seem to treat the fixed space as fixed. > > Thanks > .Floris > > > \definepapersize[iiwii][width=125mm, height=125mm] > \setuppapersize[iiwii] > \setupbodyfont[7pt] > \setuplayout[backspace=3mm, > topspace=3mm, > width=70mm, > header=0mm, > footer=0mm, > height=119mm] > \starttext > > \starttext > {\tfxx\framed[width=42mm,align={width,nothyphenated,verytolerant},frame=off] > {0-1:~28, 1-2:~1686, 0-2:~1710, 8-9:~3484, 7-8:~15862, 7-9:~17152, 1-3:~90632, 0-3:~90645, 2-3:~90840, 7-6:~98762, 6-8:~100082, 6-9:~103544, 4-0:~106926, 4-1:~106949, 4-2:~107546, 4-3:~192211, 3-6:~990165, 2-6:~1040810, 3-7:~1041891, 1-6:~1042032, 0-6:~1042060, 3-8:~1055123, 3-9:~1057765, 2-7:~1086097, 1-7:~1087411, 0-7:~1087439, 2-8:~1099942, 1-8:~1101249, 0-8:~1101277, 2-9:~1102409, 1-9:~1103718, 0-9:~1103746, 4-6:~1138989, 4-7:~1180436, 4-8:~1194617, 4-9:~1196971, 5-3:~1729640, 4-5:~1756438, 5-0:~1761922, 5-1:~1761941, 5-2:~1763565, 5-6:~2459757, 5-7:~2548510, 5-8:~2555440, 5-9:~2558871 > }} > > {\tfxx\framed[width=42mm,align={width,nothyphenated},frame=off] > {0-1:~28, 1-2:~1686, 0-2:~1710, 8-9:~3484, 7-8:~15862, 7-9:~17152, 1-3:~90632, 0-3:~90645, 2-3:~90840, 7-6:~98762, 6-8:~100082, 6-9:~103544, 4-0:~106926, 4-1:~106949, 4-2:~107546, 4-3:~192211, 3-6:~990165, 2-6:~1040810, 3-7:~1041891, 1-6:~1042032, 0-6:~1042060, 3-8:~1055123, 3-9:~1057765, 2-7:~1086097, 1-7:~1087411, 0-7:~1087439, 2-8:~1099942, 1-8:~1101249, 0-8:~1101277, 2-9:~1102409, 1-9:~1103718, 0-9:~1103746, 4-6:~1138989, 4-7:~1180436, 4-8:~1194617, 4-9:~1196971, 5-3:~1729640, 4-5:~1756438, 5-0:~1761922, 5-1:~1761941, 5-2:~1763565, 5-6:~2459757, 5-7:~2548510, 5-8:~2555440, 5-9:~2558871 > }} > > \stoptext 1. Use tabular numbers and hard-code all of the spaces you need: \definefontfeature[default][default][tnum=yes] or \definefontfeature[ff:tnum][tnum=yes] ... \addff{ff:tnum} or \feature[+][ff:tnum] where appropriate. 2. Put the numbers in a table and right-align the number columns (see http://wiki.contextgarden.net/TABLE#Using_character_alignment if you need decimal alignment). -- Rik 1. Both = --------------623B9149C67E539961524B92 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit
On 2017-07-17 15:23, Floris van Manen wrote:
dear List,

I try to put a set of numbers into a block text.
I want to keep the spacing within the items fixed
x-y:~z,
How do i do that?
The attached code does not seem to treat the fixed space as fixed.

Thanks
.Floris


\definepapersize[iiwii][width=125mm, height=125mm]
\setuppapersize[iiwii]
\setupbodyfont[7pt]
\setuplayout[backspace=3mm,
    topspace=3mm,
    width=70mm,
    header=0mm,
    footer=0mm,
    height=119mm]
\starttext

\starttext
{\tfxx\framed[width=42mm,align={width,nothyphenated,verytolerant},frame=off]
{0-1:~28, 1-2:~1686, 0-2:~1710, 8-9:~3484, 7-8:~15862, 7-9:~17152, 1-3:~90632, 0-3:~90645, 2-3:~90840, 7-6:~98762, 6-8:~100082, 6-9:~103544, 4-0:~106926, 4-1:~106949, 4-2:~107546, 4-3:~192211, 3-6:~990165, 2-6:~1040810, 3-7:~1041891, 1-6:~1042032, 0-6:~1042060, 3-8:~1055123, 3-9:~1057765, 2-7:~1086097, 1-7:~1087411, 0-7:~1087439, 2-8:~1099942, 1-8:~1101249, 0-8:~1101277, 2-9:~1102409, 1-9:~1103718, 0-9:~1103746, 4-6:~1138989, 4-7:~1180436, 4-8:~1194617, 4-9:~1196971, 5-3:~1729640, 4-5:~1756438, 5-0:~1761922, 5-1:~1761941, 5-2:~1763565, 5-6:~2459757, 5-7:~2548510, 5-8:~2555440, 5-9:~2558871
}}

{\tfxx\framed[width=42mm,align={width,nothyphenated},frame=off]
{0-1:~28, 1-2:~1686, 0-2:~1710, 8-9:~3484, 7-8:~15862, 7-9:~17152, 1-3:~90632, 0-3:~90645, 2-3:~90840, 7-6:~98762, 6-8:~100082, 6-9:~103544, 4-0:~106926, 4-1:~106949, 4-2:~107546, 4-3:~192211, 3-6:~990165, 2-6:~1040810, 3-7:~1041891, 1-6:~1042032, 0-6:~1042060, 3-8:~1055123, 3-9:~1057765, 2-7:~1086097, 1-7:~1087411, 0-7:~1087439, 2-8:~1099942, 1-8:~1101249, 0-8:~1101277, 2-9:~1102409, 1-9:~1103718, 0-9:~1103746, 4-6:~1138989, 4-7:~1180436, 4-8:~1194617, 4-9:~1196971, 5-3:~1729640, 4-5:~1756438, 5-0:~1761922, 5-1:~1761941, 5-2:~1763565, 5-6:~2459757, 5-7:~2548510, 5-8:~2555440, 5-9:~2558871
}}

\stoptext

  1. Use tabular numbers and hard-code all of the spaces you need:
        \definefontfeature[default][default][tnum=yes]
    or
        \definefontfeature[ff:tnum][tnum=yes] ... \addff{ff:tnum} or \feature[+][ff:tnum] where appropriate.

  2. Put the numbers in a table and right-align the number columns (see http://wiki.contextgarden.net/TABLE#Using_character_alignment if you need decimal alignment).
--
Rik
  1. Both

=
--------------623B9149C67E539961524B92-- --===============3997707920371253576== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============3997707920371253576==--