ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: tnum and aligncharacter=yes
Date: Mon, 21 Oct 2013 01:04:41 +0200	[thread overview]
Message-ID: <2263582C-3B2A-4BAD-A306-D3DF765C570D@gmail.com> (raw)
In-Reply-To: <52645F6B.1020904@wxs.nl>


Am 21.10.2013 um 00:55 schrieb Hans Hagen <pragma@wxs.nl>:

> On 10/21/2013 7:44 AM, Peter Münster wrote:
>> Hi,
>> 
>> aligncharacter=yes does not work with \addfeature[with-tnum]:
>> 
>> --8<---------------cut here---------------start------------->8---
>> \definefontfeature[with-tnum][default][tnum=yes]
>> \definefontfamily[mainface][sans][Alwyn New]
>> \setupbodyfont[mainface]
>> \setupTABLE[alignmentcharacter=., aligncharacter=yes]
>> \starttext
>> \startbuffer
>>   \bTABLE \bTR \bTD 111.111 \eTD \eTR \bTR \bTD 444.444 \eTD \eTR \eTABLE
>> \stopbuffer
>> \getbuffer\addfeature[with-tnum]\getbuffer
>> \stoptext
>> --8<---------------cut here---------------end--------------->8---
>> 
>> Please find attached the pdf file.
>> 
>> How could I solve this problem please?
> 
> when making examples, use fonts that are available ... (as I have no time to find a variant on my system that has a similar problem as the font used by you)


You can use Constantia for the example.

\definefontfeature[tnum][tnum=yes]

\definefontfamily[mainface][sans][Constantia]

\setupbodyfont[mainface]

\startbuffer
\bTABLE[alignmentcharacter=., aligncharacter=yes]
	\bTR
		\bTD 111.111 \eTD
	\eTR
	\bTR
		\bTD 444.444 \eTD
	\eTR
\eTABLE
\stopbuffer

\starttext

\getbuffer

\feature[+][tnum]

\getbuffer

\stoptext

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
___________________________________________________________________________________


  reply	other threads:[~2013-10-20 23:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-20 22:44 Peter Münster
2013-10-20 22:55 ` Hans Hagen
2013-10-20 23:04   ` Wolfgang Schuster [this message]
2013-10-21 12:13     ` Hans Hagen
2013-10-21 13:03       ` Peter Münster
2013-10-21 23:47         ` Hans Hagen
2013-10-22  4:57           ` Peter Münster
2013-11-04 22:14             ` Peter Münster
2013-11-05 12:17               ` Hans Hagen
2013-11-05 20:56                 ` Peter Münster
2013-11-06 11:17                   ` Hans Hagen
2013-11-06 23:07                     ` Peter Münster
2013-11-08 11:49                       ` Hans Hagen
2013-11-08 12:09                         ` Peter Münster
2013-10-21 23:55         ` Hans Hagen

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=2263582C-3B2A-4BAD-A306-D3DF765C570D@gmail.com \
    --to=schuster.wolfgang@gmail.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).