ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andreas Mang <mang@imt.uni-luebeck.de>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: spacing: units in math
Date: Fri, 21 Dec 2012 19:36:56 +0100	[thread overview]
Message-ID: <35FA66AF-F284-41CA-BD5C-C63806A9937F@imt.uni-luebeck.de> (raw)
In-Reply-To: <50D4A33E.6060402@wxs.nl>

Dear Hans,

> On 12/19/2012 7:18 PM, Andreas Mang wrote:
>> Hi there,
>> 
>> sorry for being such a pain in the neck.
>> 
>> Is there going to be a solution considering the spacing problems with the use of units (native mkiv command) in near future (within 2-3 weeks)? If there is none and I am not doing something wrong, I'll add a local work around every time I use units. As this is much work, I'd appreciate if someone told me if this is something that might be fixed soon. If not I'm good - I just need to know.
>> 
>> Explanation of my problem: Maybe I am doing something wrong, but in the resulting document the spacing is bigger in math mode then in the text mode in case I use \units{...}. In particular, the distance for the decimal separator is as if I would type $1,2$ instead of $1{,}2$ (example: $\units{1,2}$)..
> 
> can you try
> 
> \appendtoks
>     \disablemathpunctuation
> \to \everyunits

Thanks for looking into this. The problem with the decimal separator is solved. You made my day with just 4 commands!

Just that you know: I still observe a tiny difference in the blank space between numbers and times symbol (\times) when comparing math mode to standard text mode (minimal example below). AFAIK this does not make a difference. If I find the time i might just put every unit stuff into math mode (for consistency reasons). So my document is ready for being published (in this respect). It just still lacks content :)

Happy holidays to all of you.

Andreas


% MINIMAL EXAMPLE

\appendtoks
\disablemathpunctuation
\to \everyunits

\starttext 
\unit{1,2e3 meter}

$\unit{1,2e3 meter}$
\stoptext

% MINIMAL EXAMPLE
___________________________________________________________________________________
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:[~2012-12-21 18:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 22:43 problems with units Andreas Mang
2012-11-30 19:43 ` Romain Diss
2012-12-11 12:49   ` spacing: units in math Andreas Mang
2012-12-19 18:18     ` Andreas Mang
2012-12-21 17:58       ` Hans Hagen
2012-12-21 18:36         ` Andreas Mang [this message]
2012-12-21 21:49           ` 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=35FA66AF-F284-41CA-BD5C-C63806A9937F@imt.uni-luebeck.de \
    --to=mang@imt.uni-luebeck.de \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).