ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* extra space after  variant
@ 2005-12-01 14:04 Hans van der Meer
  2005-12-02 13:57 ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Hans van der Meer @ 2005-12-01 14:04 UTC (permalink / raw)


When I code:
      abc {\variant[xyz] pqr}
I find extra space typeset between "abc" and "pqr".

This extra space is absent when I code
       abc {\variant[xyz]pqr}
Thus the space in the source between ] and pqr makes a difference in  
the result.

Clearly visible in:
abc {\variant[xyz] pqr} abc {\variant[xyz]pqr}\crlf
abc {\Var[xyz]pqr} abc {\Var[xyz] pqr}\crlf

I would think that this should not happen.

The whitespace goes away by inserting an \ignorespaces in the variant- 
definition.
\def\variant[#1]% slow
   {\dosetscaledfont
    \expanded{\definedfont
      [\truefontname{\fontstringA\fontstylesuffix\fontvariant 
\fontstringA{#1}}
         at \scaledfont]}\ignorespaces}


Still using version 2005-11-14, forget this if already corrected in  
the latest version of the 30th.

yours sincerely,
dr. H. van der Meer

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-12-05 12:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-01 14:04 extra space after variant Hans van der Meer
2005-12-02 13:57 ` Hans Hagen
2005-12-02 18:35   ` Taco Hoekwater
2005-12-02 19:22     ` Adam Lindsay
2005-12-02 20:13       ` Taco Hoekwater
2005-12-04 21:03     ` Hans Hagen
2005-12-05 12:36       ` Adam Lindsay
2005-12-02 18:48   ` Adam Lindsay
2005-12-04 21:05     ` Hans Hagen

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).