Taco Hoekwater wrote:
Hans Hagen wrote:
Hans van der Meer wrote:
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.
before we do that ... do others agree (taco, adam ...)?
I can't get the example to compile. Whatever I do, context insists on creating SerifRegular.tfm through mktextfm (sigh). I'm too lazy to figure out what is going on right now, so can someone create a full minimal example, please? I'd like to check this with all tracing on, because it hints are a problem deeper down somewhere.
i simplified the code till it worked -) variants are Adam's speciality so he should provide the solution for the precize definition -) Hans