ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Steffen Wolfrum <context@st.estfiles.de>
Subject: Re: Invalid keyword \spaceskip
Date: Sun, 27 Jun 2021 13:40:58 +0200	[thread overview]
Message-ID: <1d3ffddb-c28b-0397-fa4c-e10cd6e7854f@xs4all.nl> (raw)
In-Reply-To: <CA98BBFE-3570-4093-9D8D-CB14CD85BAA5@st.estfiles.de>

On 6/27/2021 11:36 AM, Steffen Wolfrum wrote:
> 
> 
>> Am 27.06.2021 um 09:16 schrieb Hans Hagen <j.hagen@xs4all.nl>:
>>
>> On 6/26/2021 11:56 PM, Wolfgang Schuster wrote:
>>> Steffen Wolfrum schrieb am 26.06.2021 um 23:38:
>>>>> Am 26.06.2021 um 22:43 schrieb Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>:
>>>>>
>>>>> Steffen Wolfrum schrieb am 26.06.2021 um 22:26:
>>>>>> PS: with
>>>>>>
>>>>>> % engine=luatex
>>>>>>
>>>>>> it works fine.
>>>>> Add \relax after the last skip value, i.e.
>>>>>
>>>>>   \spaceskip = 1pt plus 1pt minus 1.5pt\relax
>>>>>
>>>>> LMTX allows multiple plus and minus values for a skip value and the M in Matilda starts the scan for an additional minus value.
>>>> Wow, this sounds interesting. Is there an example of how to use multiple values?
>>> I think the only examples are in mails from Hans. When you set multiple plus or minus values (as far as i remember) only the last setting is used and all previous ones are ignored.
>> Maybe in some article. Anyway, here is an example:
>>
>> \starttext
>>   test \skip0=10pt plus 10pt minus 10pt plus 20pt
>>
>>   test \skip0=10pt plus 10pt plus 20pt minus 10pt
>>
>>   test \vrule width 10pt height 10pt depth 10pt depth 10pt height 10pt
>>
>> %  test \hbox to 10pt to 10pt {x}
>>
>> \stoptext
>>
>> compare pdftex and luametatex.
> 
> 
> ok. but why does this run fine
> 
> \starttext
> 
> Test \spaceskip = 1.0pt plus 1pt minus 1.5pt Wolfgang
> 
> \stoptext
> 
> 
> while this ends in an error message?
> 
> 
> \starttext
> 
> Test \spaceskip = 1.0pt plus 1pt minus 1.5pt Matilda
> 
> \stoptext

because scanning is case insensitive so the m triggeres the keyword 
error ... keep in mind that by omitting a \relax you've always been 
lucky so far (probably no follow up texts that had plus or minus) .. 
luametatex just warns earlier

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2021-06-27 11:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-26 20:12 Steffen Wolfrum
2021-06-26 20:26 ` Steffen Wolfrum
2021-06-26 20:43   ` Wolfgang Schuster
2021-06-26 21:38     ` Steffen Wolfrum
2021-06-26 21:56       ` Wolfgang Schuster
2021-06-27  7:16         ` Hans Hagen
2021-06-27  9:36           ` Steffen Wolfrum
2021-06-27 11:40             ` Hans Hagen [this message]

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=1d3ffddb-c28b-0397-fa4c-e10cd6e7854f@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=context@st.estfiles.de \
    --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).